@opentiny/tiny-engine-setting-events 2.6.1 → 2.7.0-alpha.1
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 +2696 -712
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -7
package/dist/index.js
CHANGED
|
@@ -1,35 +1,955 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { ref as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { SvgButton as
|
|
7
|
-
import { iconChevronDown as
|
|
8
|
-
import { string2Ast as
|
|
9
|
-
import { CodeConfigurator as
|
|
10
|
-
import { PROP_DATA_TYPE as
|
|
11
|
-
import { constants as
|
|
12
|
-
const
|
|
2
|
+
import { ref as Ye, reactive as rt, provide as St, nextTick as Ot, resolveComponent as X, createBlock as Ce, openBlock as U, withCtx as J, createElementVNode as _, createVNode as N, resolveDynamicComponent as _t, createTextVNode as Fe, unref as Z, createElementBlock as re, Fragment as at, withDirectives as Et, renderList as pt, normalizeClass as He, toDisplayString as me, createCommentVNode as dt, vShow as yt, computed as it, watchEffect as Nt, watch as Ct, inject as At } from "vue";
|
|
3
|
+
import { callEntry as D, META_APP as O, getMetaApi as V, getOptions as ae, useLayout as z, useHistory as de, useCanvas as I, getMergeMeta as q, useBlock as Oe, useMaterial as Ve, useModal as Me, useMessage as Re, useProperties as oe } from "@opentiny/tiny-engine-meta-register";
|
|
4
|
+
import { TinyAlert as Vt, DialogBox as It, Button as ct, Form as Mt, FormItem as xt, Input as mt, Popover as Rt, Tooltip as Tt, Collapse as Ut, CollapseItem as wt, Checkbox as jt, Search as $t } from "@opentiny/vue";
|
|
5
|
+
import Te from "@opentiny/tiny-engine-common/js/i18n";
|
|
6
|
+
import { SvgButton as Ue, BlockLinkEvent as je, PluginPanel as zt, VueMonaco as Xe } from "@opentiny/tiny-engine-common";
|
|
7
|
+
import { iconChevronDown as $e } from "@opentiny/vue-icon";
|
|
8
|
+
import { string2Ast as ce } from "@opentiny/tiny-engine-common/js/ast";
|
|
9
|
+
import { CodeConfigurator as xe, InputConfigurator as we, VariableConfigurator as ke, SwitchConfigurator as De } from "@opentiny/tiny-engine-configurator";
|
|
10
|
+
import { PROP_DATA_TYPE as fe } from "@opentiny/tiny-engine-common/js/constants";
|
|
11
|
+
import { constants as Ae, utils as Ie } from "@opentiny/tiny-engine-utils";
|
|
12
|
+
const Q = {
|
|
13
13
|
id: "engine.setting.event",
|
|
14
14
|
title: "高级",
|
|
15
|
-
type: "
|
|
16
|
-
align: "rightTop",
|
|
15
|
+
type: "plugins",
|
|
17
16
|
name: "event",
|
|
18
17
|
icon: "target"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
18
|
+
};
|
|
19
|
+
var Jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
20
|
+
function Ft(h) {
|
|
21
|
+
throw new Error('Could not dynamically require "' + h + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
22
|
+
}
|
|
23
|
+
var vt = { exports: {} };
|
|
24
|
+
(function(h, e) {
|
|
25
|
+
(function(n, t, o, i) {
|
|
26
|
+
t(Ft, e, h);
|
|
27
|
+
})(Jt, function(n, t, o) {
|
|
28
|
+
var i = Object.defineProperty, l = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, a = Object.prototype.hasOwnProperty, c = (f, u) => {
|
|
29
|
+
for (var r in u)
|
|
30
|
+
i(f, r, { get: u[r], enumerable: !0 });
|
|
31
|
+
}, b = (f, u, r, p) => {
|
|
32
|
+
if (u && typeof u == "object" || typeof u == "function")
|
|
33
|
+
for (let C of d(u))
|
|
34
|
+
!a.call(f, C) && C !== r && i(f, C, { get: () => u[C], enumerable: !(p = l(u, C)) || p.enumerable });
|
|
35
|
+
return f;
|
|
36
|
+
}, s = (f) => b(i({}, "__esModule", { value: !0 }), f), m = {};
|
|
37
|
+
c(m, {
|
|
38
|
+
decode: () => W,
|
|
39
|
+
decodeGeneratedRanges: () => be,
|
|
40
|
+
decodeOriginalScopes: () => ne,
|
|
41
|
+
encode: () => ut,
|
|
42
|
+
encodeGeneratedRanges: () => pe,
|
|
43
|
+
encodeOriginalScopes: () => ve
|
|
44
|
+
}), o.exports = s(m);
|
|
45
|
+
var g = 44, v = 59, w = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", S = new Uint8Array(64), A = new Uint8Array(128);
|
|
46
|
+
for (let f = 0; f < w.length; f++) {
|
|
47
|
+
const u = w.charCodeAt(f);
|
|
48
|
+
S[f] = u, A[u] = f;
|
|
49
|
+
}
|
|
50
|
+
function y(f, u) {
|
|
51
|
+
let r = 0, p = 0, C = 0;
|
|
52
|
+
do {
|
|
53
|
+
const L = f.next();
|
|
54
|
+
C = A[L], r |= (C & 31) << p, p += 5;
|
|
55
|
+
} while (C & 32);
|
|
56
|
+
const P = r & 1;
|
|
57
|
+
return r >>>= 1, P && (r = -2147483648 | -r), u + r;
|
|
58
|
+
}
|
|
59
|
+
function E(f, u, r) {
|
|
60
|
+
let p = u - r;
|
|
61
|
+
p = p < 0 ? -p << 1 | 1 : p << 1;
|
|
62
|
+
do {
|
|
63
|
+
let C = p & 31;
|
|
64
|
+
p >>>= 5, p > 0 && (C |= 32), f.write(S[C]);
|
|
65
|
+
} while (p > 0);
|
|
66
|
+
return u;
|
|
67
|
+
}
|
|
68
|
+
function x(f, u) {
|
|
69
|
+
return f.pos >= u ? !1 : f.peek() !== g;
|
|
70
|
+
}
|
|
71
|
+
var k = 1024 * 16, B = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
|
|
72
|
+
decode(f) {
|
|
73
|
+
return Buffer.from(f.buffer, f.byteOffset, f.byteLength).toString();
|
|
74
|
+
}
|
|
75
|
+
} : {
|
|
76
|
+
decode(f) {
|
|
77
|
+
let u = "";
|
|
78
|
+
for (let r = 0; r < f.length; r++)
|
|
79
|
+
u += String.fromCharCode(f[r]);
|
|
80
|
+
return u;
|
|
81
|
+
}
|
|
82
|
+
}, $ = class {
|
|
83
|
+
constructor() {
|
|
84
|
+
this.pos = 0, this.out = "", this.buffer = new Uint8Array(k);
|
|
85
|
+
}
|
|
86
|
+
write(f) {
|
|
87
|
+
const { buffer: u } = this;
|
|
88
|
+
u[this.pos++] = f, this.pos === k && (this.out += B.decode(u), this.pos = 0);
|
|
89
|
+
}
|
|
90
|
+
flush() {
|
|
91
|
+
const { buffer: f, out: u, pos: r } = this;
|
|
92
|
+
return r > 0 ? u + B.decode(f.subarray(0, r)) : u;
|
|
93
|
+
}
|
|
94
|
+
}, he = class {
|
|
95
|
+
constructor(f) {
|
|
96
|
+
this.pos = 0, this.buffer = f;
|
|
97
|
+
}
|
|
98
|
+
next() {
|
|
99
|
+
return this.buffer.charCodeAt(this.pos++);
|
|
100
|
+
}
|
|
101
|
+
peek() {
|
|
102
|
+
return this.buffer.charCodeAt(this.pos);
|
|
103
|
+
}
|
|
104
|
+
indexOf(f) {
|
|
105
|
+
const { buffer: u, pos: r } = this, p = u.indexOf(f, r);
|
|
106
|
+
return p === -1 ? u.length : p;
|
|
107
|
+
}
|
|
108
|
+
}, le = [];
|
|
109
|
+
function ne(f) {
|
|
110
|
+
const { length: u } = f, r = new he(f), p = [], C = [];
|
|
111
|
+
let P = 0;
|
|
112
|
+
for (; r.pos < u; r.pos++) {
|
|
113
|
+
P = y(r, P);
|
|
114
|
+
const L = y(r, 0);
|
|
115
|
+
if (!x(r, u)) {
|
|
116
|
+
const H = C.pop();
|
|
117
|
+
H[2] = P, H[3] = L;
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
const M = y(r, 0), T = y(r, 0) & 1 ? [P, L, 0, 0, M, y(r, 0)] : [P, L, 0, 0, M];
|
|
121
|
+
let K = le;
|
|
122
|
+
if (x(r, u)) {
|
|
123
|
+
K = [];
|
|
124
|
+
do {
|
|
125
|
+
const H = y(r, 0);
|
|
126
|
+
K.push(H);
|
|
127
|
+
} while (x(r, u));
|
|
128
|
+
}
|
|
129
|
+
T.vars = K, p.push(T), C.push(T);
|
|
130
|
+
}
|
|
131
|
+
return p;
|
|
132
|
+
}
|
|
133
|
+
function ve(f) {
|
|
134
|
+
const u = new $();
|
|
135
|
+
for (let r = 0; r < f.length; )
|
|
136
|
+
r = ge(f, r, u, [0]);
|
|
137
|
+
return u.flush();
|
|
138
|
+
}
|
|
139
|
+
function ge(f, u, r, p) {
|
|
140
|
+
const C = f[u], { 0: P, 1: L, 2: M, 3: j, 4: F, vars: T } = C;
|
|
141
|
+
u > 0 && r.write(g), p[0] = E(r, P, p[0]), E(r, L, 0), E(r, F, 0);
|
|
142
|
+
const K = C.length === 6 ? 1 : 0;
|
|
143
|
+
E(r, K, 0), C.length === 6 && E(r, C[5], 0);
|
|
144
|
+
for (const H of T)
|
|
145
|
+
E(r, H, 0);
|
|
146
|
+
for (u++; u < f.length; ) {
|
|
147
|
+
const H = f[u], { 0: R, 1: Y } = H;
|
|
148
|
+
if (R > M || R === M && Y >= j)
|
|
149
|
+
break;
|
|
150
|
+
u = ge(f, u, r, p);
|
|
151
|
+
}
|
|
152
|
+
return r.write(g), p[0] = E(r, M, p[0]), E(r, j, 0), u;
|
|
153
|
+
}
|
|
154
|
+
function be(f) {
|
|
155
|
+
const { length: u } = f, r = new he(f), p = [], C = [];
|
|
156
|
+
let P = 0, L = 0, M = 0, j = 0, F = 0, T = 0, K = 0, H = 0;
|
|
157
|
+
do {
|
|
158
|
+
const R = r.indexOf(";");
|
|
159
|
+
let Y = 0;
|
|
160
|
+
for (; r.pos < R; r.pos++) {
|
|
161
|
+
if (Y = y(r, Y), !x(r, R)) {
|
|
162
|
+
const ue = C.pop();
|
|
163
|
+
ue[2] = P, ue[3] = Y;
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
const Ee = y(r, 0), lt = Ee & 1, Qe = Ee & 2, et = Ee & 4;
|
|
167
|
+
let bt = null, ft = le, Pe;
|
|
168
|
+
if (lt) {
|
|
169
|
+
const ue = y(r, L);
|
|
170
|
+
M = y(
|
|
171
|
+
r,
|
|
172
|
+
L === ue ? M : 0
|
|
173
|
+
), L = ue, Pe = [P, Y, 0, 0, ue, M];
|
|
174
|
+
} else
|
|
175
|
+
Pe = [P, Y, 0, 0];
|
|
176
|
+
if (Pe.isScope = !!et, Qe) {
|
|
177
|
+
const ue = j, qe = F;
|
|
178
|
+
j = y(r, j);
|
|
179
|
+
const tt = ue === j;
|
|
180
|
+
F = y(r, tt ? F : 0), T = y(
|
|
181
|
+
r,
|
|
182
|
+
tt && qe === F ? T : 0
|
|
183
|
+
), bt = [j, F, T];
|
|
184
|
+
}
|
|
185
|
+
if (Pe.callsite = bt, x(r, R)) {
|
|
186
|
+
ft = [];
|
|
187
|
+
do {
|
|
188
|
+
K = P, H = Y;
|
|
189
|
+
const ue = y(r, 0);
|
|
190
|
+
let qe;
|
|
191
|
+
if (ue < -1) {
|
|
192
|
+
qe = [[y(r, 0)]];
|
|
193
|
+
for (let tt = -1; tt > ue; tt--) {
|
|
194
|
+
const Bt = K;
|
|
195
|
+
K = y(r, K), H = y(r, K === Bt ? H : 0);
|
|
196
|
+
const Pt = y(r, 0);
|
|
197
|
+
qe.push([Pt, K, H]);
|
|
198
|
+
}
|
|
199
|
+
} else
|
|
200
|
+
qe = [[ue]];
|
|
201
|
+
ft.push(qe);
|
|
202
|
+
} while (x(r, R));
|
|
203
|
+
}
|
|
204
|
+
Pe.bindings = ft, p.push(Pe), C.push(Pe);
|
|
205
|
+
}
|
|
206
|
+
P++, r.pos = R + 1;
|
|
207
|
+
} while (r.pos < u);
|
|
208
|
+
return p;
|
|
209
|
+
}
|
|
210
|
+
function pe(f) {
|
|
211
|
+
if (f.length === 0) return "";
|
|
212
|
+
const u = new $();
|
|
213
|
+
for (let r = 0; r < f.length; )
|
|
214
|
+
r = Le(f, r, u, [0, 0, 0, 0, 0, 0, 0]);
|
|
215
|
+
return u.flush();
|
|
216
|
+
}
|
|
217
|
+
function Le(f, u, r, p) {
|
|
218
|
+
const C = f[u], {
|
|
219
|
+
0: P,
|
|
220
|
+
1: L,
|
|
221
|
+
2: M,
|
|
222
|
+
3: j,
|
|
223
|
+
isScope: F,
|
|
224
|
+
callsite: T,
|
|
225
|
+
bindings: K
|
|
226
|
+
} = C;
|
|
227
|
+
p[0] < P ? (_e(r, p[0], P), p[0] = P, p[1] = 0) : u > 0 && r.write(g), p[1] = E(r, C[1], p[1]);
|
|
228
|
+
const H = (C.length === 6 ? 1 : 0) | (T ? 2 : 0) | (F ? 4 : 0);
|
|
229
|
+
if (E(r, H, 0), C.length === 6) {
|
|
230
|
+
const { 4: R, 5: Y } = C;
|
|
231
|
+
R !== p[2] && (p[3] = 0), p[2] = E(r, R, p[2]), p[3] = E(r, Y, p[3]);
|
|
232
|
+
}
|
|
233
|
+
if (T) {
|
|
234
|
+
const { 0: R, 1: Y, 2: Ee } = C.callsite;
|
|
235
|
+
R !== p[4] ? (p[5] = 0, p[6] = 0) : Y !== p[5] && (p[6] = 0), p[4] = E(r, R, p[4]), p[5] = E(r, Y, p[5]), p[6] = E(r, Ee, p[6]);
|
|
236
|
+
}
|
|
237
|
+
if (K)
|
|
238
|
+
for (const R of K) {
|
|
239
|
+
R.length > 1 && E(r, -R.length, 0);
|
|
240
|
+
const Y = R[0][0];
|
|
241
|
+
E(r, Y, 0);
|
|
242
|
+
let Ee = P, lt = L;
|
|
243
|
+
for (let Qe = 1; Qe < R.length; Qe++) {
|
|
244
|
+
const et = R[Qe];
|
|
245
|
+
Ee = E(r, et[1], Ee), lt = E(r, et[2], lt), E(r, et[0], 0);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
for (u++; u < f.length; ) {
|
|
249
|
+
const R = f[u], { 0: Y, 1: Ee } = R;
|
|
250
|
+
if (Y > M || Y === M && Ee >= j)
|
|
251
|
+
break;
|
|
252
|
+
u = Le(f, u, r, p);
|
|
253
|
+
}
|
|
254
|
+
return p[0] < M ? (_e(r, p[0], M), p[0] = M, p[1] = 0) : r.write(g), p[1] = E(r, j, p[1]), u;
|
|
255
|
+
}
|
|
256
|
+
function _e(f, u, r) {
|
|
257
|
+
do
|
|
258
|
+
f.write(v);
|
|
259
|
+
while (++u < r);
|
|
260
|
+
}
|
|
261
|
+
function W(f) {
|
|
262
|
+
const { length: u } = f, r = new he(f), p = [];
|
|
263
|
+
let C = 0, P = 0, L = 0, M = 0, j = 0;
|
|
264
|
+
do {
|
|
265
|
+
const F = r.indexOf(";"), T = [];
|
|
266
|
+
let K = !0, H = 0;
|
|
267
|
+
for (C = 0; r.pos < F; ) {
|
|
268
|
+
let R;
|
|
269
|
+
C = y(r, C), C < H && (K = !1), H = C, x(r, F) ? (P = y(r, P), L = y(r, L), M = y(r, M), x(r, F) ? (j = y(r, j), R = [C, P, L, M, j]) : R = [C, P, L, M]) : R = [C], T.push(R), r.pos++;
|
|
270
|
+
}
|
|
271
|
+
K || Be(T), p.push(T), r.pos = F + 1;
|
|
272
|
+
} while (r.pos <= u);
|
|
273
|
+
return p;
|
|
274
|
+
}
|
|
275
|
+
function Be(f) {
|
|
276
|
+
f.sort(Ze);
|
|
277
|
+
}
|
|
278
|
+
function Ze(f, u) {
|
|
279
|
+
return f[0] - u[0];
|
|
280
|
+
}
|
|
281
|
+
function ut(f) {
|
|
282
|
+
const u = new $();
|
|
283
|
+
let r = 0, p = 0, C = 0, P = 0;
|
|
284
|
+
for (let L = 0; L < f.length; L++) {
|
|
285
|
+
const M = f[L];
|
|
286
|
+
if (L > 0 && u.write(v), M.length === 0) continue;
|
|
287
|
+
let j = 0;
|
|
288
|
+
for (let F = 0; F < M.length; F++) {
|
|
289
|
+
const T = M[F];
|
|
290
|
+
F > 0 && u.write(g), j = E(u, T[0], j), T.length !== 1 && (r = E(u, T[1], r), p = E(u, T[2], p), C = E(u, T[3], C), T.length !== 4 && (P = E(u, T[4], P)));
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return u.flush();
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
})(vt, vt.exports);
|
|
297
|
+
var qt = vt.exports;
|
|
298
|
+
class ht {
|
|
299
|
+
constructor(e) {
|
|
300
|
+
this.bits = e instanceof ht ? e.bits.slice() : [];
|
|
301
|
+
}
|
|
302
|
+
add(e) {
|
|
303
|
+
this.bits[e >> 5] |= 1 << (e & 31);
|
|
304
|
+
}
|
|
305
|
+
has(e) {
|
|
306
|
+
return !!(this.bits[e >> 5] & 1 << (e & 31));
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
class st {
|
|
310
|
+
constructor(e, n, t) {
|
|
311
|
+
this.start = e, this.end = n, this.original = t, this.intro = "", this.outro = "", this.content = t, this.storeName = !1, this.edited = !1, this.previous = null, this.next = null;
|
|
312
|
+
}
|
|
313
|
+
appendLeft(e) {
|
|
314
|
+
this.outro += e;
|
|
315
|
+
}
|
|
316
|
+
appendRight(e) {
|
|
317
|
+
this.intro = this.intro + e;
|
|
318
|
+
}
|
|
319
|
+
clone() {
|
|
320
|
+
const e = new st(this.start, this.end, this.original);
|
|
321
|
+
return e.intro = this.intro, e.outro = this.outro, e.content = this.content, e.storeName = this.storeName, e.edited = this.edited, e;
|
|
322
|
+
}
|
|
323
|
+
contains(e) {
|
|
324
|
+
return this.start < e && e < this.end;
|
|
325
|
+
}
|
|
326
|
+
eachNext(e) {
|
|
327
|
+
let n = this;
|
|
328
|
+
for (; n; )
|
|
329
|
+
e(n), n = n.next;
|
|
330
|
+
}
|
|
331
|
+
eachPrevious(e) {
|
|
332
|
+
let n = this;
|
|
333
|
+
for (; n; )
|
|
334
|
+
e(n), n = n.previous;
|
|
335
|
+
}
|
|
336
|
+
edit(e, n, t) {
|
|
337
|
+
return this.content = e, t || (this.intro = "", this.outro = ""), this.storeName = n, this.edited = !0, this;
|
|
338
|
+
}
|
|
339
|
+
prependLeft(e) {
|
|
340
|
+
this.outro = e + this.outro;
|
|
341
|
+
}
|
|
342
|
+
prependRight(e) {
|
|
343
|
+
this.intro = e + this.intro;
|
|
344
|
+
}
|
|
345
|
+
reset() {
|
|
346
|
+
this.intro = "", this.outro = "", this.edited && (this.content = this.original, this.storeName = !1, this.edited = !1);
|
|
347
|
+
}
|
|
348
|
+
split(e) {
|
|
349
|
+
const n = e - this.start, t = this.original.slice(0, n), o = this.original.slice(n);
|
|
350
|
+
this.original = t;
|
|
351
|
+
const i = new st(e, this.end, o);
|
|
352
|
+
return i.outro = this.outro, this.outro = "", this.end = e, this.edited ? (i.edit("", !1), this.content = "") : this.content = t, i.next = this.next, i.next && (i.next.previous = i), i.previous = this, this.next = i, i;
|
|
353
|
+
}
|
|
354
|
+
toString() {
|
|
355
|
+
return this.intro + this.content + this.outro;
|
|
356
|
+
}
|
|
357
|
+
trimEnd(e) {
|
|
358
|
+
if (this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
|
|
359
|
+
const n = this.content.replace(e, "");
|
|
360
|
+
if (n.length)
|
|
361
|
+
return n !== this.content && (this.split(this.start + n.length).edit("", void 0, !0), this.edited && this.edit(n, this.storeName, !0)), !0;
|
|
362
|
+
if (this.edit("", void 0, !0), this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
|
|
363
|
+
}
|
|
364
|
+
trimStart(e) {
|
|
365
|
+
if (this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
|
|
366
|
+
const n = this.content.replace(e, "");
|
|
367
|
+
if (n.length) {
|
|
368
|
+
if (n !== this.content) {
|
|
369
|
+
const t = this.split(this.end - n.length);
|
|
370
|
+
this.edited && t.edit(n, this.storeName, !0), this.edit("", void 0, !0);
|
|
371
|
+
}
|
|
372
|
+
return !0;
|
|
373
|
+
} else if (this.edit("", void 0, !0), this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
function Xt() {
|
|
377
|
+
return typeof globalThis < "u" && typeof globalThis.btoa == "function" ? (h) => globalThis.btoa(unescape(encodeURIComponent(h))) : typeof Buffer == "function" ? (h) => Buffer.from(h, "utf-8").toString("base64") : () => {
|
|
378
|
+
throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
const Gt = /* @__PURE__ */ Xt();
|
|
382
|
+
class Kt {
|
|
383
|
+
constructor(e) {
|
|
384
|
+
this.version = 3, this.file = e.file, this.sources = e.sources, this.sourcesContent = e.sourcesContent, this.names = e.names, this.mappings = qt.encode(e.mappings), typeof e.x_google_ignoreList < "u" && (this.x_google_ignoreList = e.x_google_ignoreList), typeof e.debugId < "u" && (this.debugId = e.debugId);
|
|
385
|
+
}
|
|
386
|
+
toString() {
|
|
387
|
+
return JSON.stringify(this);
|
|
388
|
+
}
|
|
389
|
+
toUrl() {
|
|
390
|
+
return "data:application/json;charset=utf-8;base64," + Gt(this.toString());
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
function Ht(h) {
|
|
394
|
+
const e = h.split(`
|
|
395
|
+
`), n = e.filter((i) => /^\t+/.test(i)), t = e.filter((i) => /^ {2,}/.test(i));
|
|
396
|
+
if (n.length === 0 && t.length === 0)
|
|
397
|
+
return null;
|
|
398
|
+
if (n.length >= t.length)
|
|
399
|
+
return " ";
|
|
400
|
+
const o = t.reduce((i, l) => {
|
|
401
|
+
const d = /^ +/.exec(l)[0].length;
|
|
402
|
+
return Math.min(d, i);
|
|
403
|
+
}, 1 / 0);
|
|
404
|
+
return new Array(o + 1).join(" ");
|
|
405
|
+
}
|
|
406
|
+
function Yt(h, e) {
|
|
407
|
+
const n = h.split(/[/\\]/), t = e.split(/[/\\]/);
|
|
408
|
+
for (n.pop(); n[0] === t[0]; )
|
|
409
|
+
n.shift(), t.shift();
|
|
410
|
+
if (n.length) {
|
|
411
|
+
let o = n.length;
|
|
412
|
+
for (; o--; ) n[o] = "..";
|
|
413
|
+
}
|
|
414
|
+
return n.concat(t).join("/");
|
|
415
|
+
}
|
|
416
|
+
const Wt = Object.prototype.toString;
|
|
417
|
+
function Zt(h) {
|
|
418
|
+
return Wt.call(h) === "[object Object]";
|
|
419
|
+
}
|
|
420
|
+
function kt(h) {
|
|
421
|
+
const e = h.split(`
|
|
422
|
+
`), n = [];
|
|
423
|
+
for (let t = 0, o = 0; t < e.length; t++)
|
|
424
|
+
n.push(o), o += e[t].length + 1;
|
|
425
|
+
return function(o) {
|
|
426
|
+
let i = 0, l = n.length;
|
|
427
|
+
for (; i < l; ) {
|
|
428
|
+
const c = i + l >> 1;
|
|
429
|
+
o < n[c] ? l = c : i = c + 1;
|
|
430
|
+
}
|
|
431
|
+
const d = i - 1, a = o - n[d];
|
|
432
|
+
return { line: d, column: a };
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
const Qt = /\w/;
|
|
436
|
+
class en {
|
|
437
|
+
constructor(e) {
|
|
438
|
+
this.hires = e, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [], this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null;
|
|
439
|
+
}
|
|
440
|
+
addEdit(e, n, t, o) {
|
|
441
|
+
if (n.length) {
|
|
442
|
+
const i = n.length - 1;
|
|
443
|
+
let l = n.indexOf(`
|
|
444
|
+
`, 0), d = -1;
|
|
445
|
+
for (; l >= 0 && i > l; ) {
|
|
446
|
+
const c = [this.generatedCodeColumn, e, t.line, t.column];
|
|
447
|
+
o >= 0 && c.push(o), this.rawSegments.push(c), this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, d = l, l = n.indexOf(`
|
|
448
|
+
`, l + 1);
|
|
449
|
+
}
|
|
450
|
+
const a = [this.generatedCodeColumn, e, t.line, t.column];
|
|
451
|
+
o >= 0 && a.push(o), this.rawSegments.push(a), this.advance(n.slice(d + 1));
|
|
452
|
+
} else this.pending && (this.rawSegments.push(this.pending), this.advance(n));
|
|
453
|
+
this.pending = null;
|
|
454
|
+
}
|
|
455
|
+
addUneditedChunk(e, n, t, o, i) {
|
|
456
|
+
let l = n.start, d = !0, a = !1;
|
|
457
|
+
for (; l < n.end; ) {
|
|
458
|
+
if (t[l] === `
|
|
459
|
+
`)
|
|
460
|
+
o.line += 1, o.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, d = !0, a = !1;
|
|
461
|
+
else {
|
|
462
|
+
if (this.hires || d || i.has(l)) {
|
|
463
|
+
const c = [this.generatedCodeColumn, e, o.line, o.column];
|
|
464
|
+
this.hires === "boundary" ? Qt.test(t[l]) ? a || (this.rawSegments.push(c), a = !0) : (this.rawSegments.push(c), a = !1) : this.rawSegments.push(c);
|
|
465
|
+
}
|
|
466
|
+
o.column += 1, this.generatedCodeColumn += 1, d = !1;
|
|
467
|
+
}
|
|
468
|
+
l += 1;
|
|
469
|
+
}
|
|
470
|
+
this.pending = null;
|
|
471
|
+
}
|
|
472
|
+
advance(e) {
|
|
473
|
+
if (!e) return;
|
|
474
|
+
const n = e.split(`
|
|
475
|
+
`);
|
|
476
|
+
if (n.length > 1) {
|
|
477
|
+
for (let t = 0; t < n.length - 1; t++)
|
|
478
|
+
this.generatedCodeLine++, this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
|
479
|
+
this.generatedCodeColumn = 0;
|
|
480
|
+
}
|
|
481
|
+
this.generatedCodeColumn += n[n.length - 1].length;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
const nt = `
|
|
485
|
+
`, Ge = {
|
|
486
|
+
insertLeft: !1,
|
|
487
|
+
insertRight: !1,
|
|
488
|
+
storeName: !1
|
|
489
|
+
};
|
|
490
|
+
class ee {
|
|
491
|
+
constructor(e, n = {}) {
|
|
492
|
+
const t = new st(0, e.length, e);
|
|
493
|
+
Object.defineProperties(this, {
|
|
494
|
+
original: { writable: !0, value: e },
|
|
495
|
+
outro: { writable: !0, value: "" },
|
|
496
|
+
intro: { writable: !0, value: "" },
|
|
497
|
+
firstChunk: { writable: !0, value: t },
|
|
498
|
+
lastChunk: { writable: !0, value: t },
|
|
499
|
+
lastSearchedChunk: { writable: !0, value: t },
|
|
500
|
+
byStart: { writable: !0, value: {} },
|
|
501
|
+
byEnd: { writable: !0, value: {} },
|
|
502
|
+
filename: { writable: !0, value: n.filename },
|
|
503
|
+
indentExclusionRanges: { writable: !0, value: n.indentExclusionRanges },
|
|
504
|
+
sourcemapLocations: { writable: !0, value: new ht() },
|
|
505
|
+
storedNames: { writable: !0, value: {} },
|
|
506
|
+
indentStr: { writable: !0, value: void 0 },
|
|
507
|
+
ignoreList: { writable: !0, value: n.ignoreList },
|
|
508
|
+
offset: { writable: !0, value: n.offset || 0 }
|
|
509
|
+
}), this.byStart[0] = t, this.byEnd[e.length] = t;
|
|
510
|
+
}
|
|
511
|
+
addSourcemapLocation(e) {
|
|
512
|
+
this.sourcemapLocations.add(e);
|
|
513
|
+
}
|
|
514
|
+
append(e) {
|
|
515
|
+
if (typeof e != "string") throw new TypeError("outro content must be a string");
|
|
516
|
+
return this.outro += e, this;
|
|
517
|
+
}
|
|
518
|
+
appendLeft(e, n) {
|
|
519
|
+
if (e = e + this.offset, typeof n != "string") throw new TypeError("inserted content must be a string");
|
|
520
|
+
this._split(e);
|
|
521
|
+
const t = this.byEnd[e];
|
|
522
|
+
return t ? t.appendLeft(n) : this.intro += n, this;
|
|
523
|
+
}
|
|
524
|
+
appendRight(e, n) {
|
|
525
|
+
if (e = e + this.offset, typeof n != "string") throw new TypeError("inserted content must be a string");
|
|
526
|
+
this._split(e);
|
|
527
|
+
const t = this.byStart[e];
|
|
528
|
+
return t ? t.appendRight(n) : this.outro += n, this;
|
|
529
|
+
}
|
|
530
|
+
clone() {
|
|
531
|
+
const e = new ee(this.original, { filename: this.filename, offset: this.offset });
|
|
532
|
+
let n = this.firstChunk, t = e.firstChunk = e.lastSearchedChunk = n.clone();
|
|
533
|
+
for (; n; ) {
|
|
534
|
+
e.byStart[t.start] = t, e.byEnd[t.end] = t;
|
|
535
|
+
const o = n.next, i = o && o.clone();
|
|
536
|
+
i && (t.next = i, i.previous = t, t = i), n = o;
|
|
537
|
+
}
|
|
538
|
+
return e.lastChunk = t, this.indentExclusionRanges && (e.indentExclusionRanges = this.indentExclusionRanges.slice()), e.sourcemapLocations = new ht(this.sourcemapLocations), e.intro = this.intro, e.outro = this.outro, e;
|
|
539
|
+
}
|
|
540
|
+
generateDecodedMap(e) {
|
|
541
|
+
e = e || {};
|
|
542
|
+
const n = 0, t = Object.keys(this.storedNames), o = new en(e.hires), i = kt(this.original);
|
|
543
|
+
return this.intro && o.advance(this.intro), this.firstChunk.eachNext((l) => {
|
|
544
|
+
const d = i(l.start);
|
|
545
|
+
l.intro.length && o.advance(l.intro), l.edited ? o.addEdit(
|
|
546
|
+
n,
|
|
547
|
+
l.content,
|
|
548
|
+
d,
|
|
549
|
+
l.storeName ? t.indexOf(l.original) : -1
|
|
550
|
+
) : o.addUneditedChunk(n, l, this.original, d, this.sourcemapLocations), l.outro.length && o.advance(l.outro);
|
|
551
|
+
}), {
|
|
552
|
+
file: e.file ? e.file.split(/[/\\]/).pop() : void 0,
|
|
553
|
+
sources: [
|
|
554
|
+
e.source ? Yt(e.file || "", e.source) : e.file || ""
|
|
555
|
+
],
|
|
556
|
+
sourcesContent: e.includeContent ? [this.original] : void 0,
|
|
557
|
+
names: t,
|
|
558
|
+
mappings: o.raw,
|
|
559
|
+
x_google_ignoreList: this.ignoreList ? [n] : void 0
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
generateMap(e) {
|
|
563
|
+
return new Kt(this.generateDecodedMap(e));
|
|
564
|
+
}
|
|
565
|
+
_ensureindentStr() {
|
|
566
|
+
this.indentStr === void 0 && (this.indentStr = Ht(this.original));
|
|
567
|
+
}
|
|
568
|
+
_getRawIndentString() {
|
|
569
|
+
return this._ensureindentStr(), this.indentStr;
|
|
570
|
+
}
|
|
571
|
+
getIndentString() {
|
|
572
|
+
return this._ensureindentStr(), this.indentStr === null ? " " : this.indentStr;
|
|
573
|
+
}
|
|
574
|
+
indent(e, n) {
|
|
575
|
+
const t = /^[^\r\n]/gm;
|
|
576
|
+
if (Zt(e) && (n = e, e = void 0), e === void 0 && (this._ensureindentStr(), e = this.indentStr || " "), e === "") return this;
|
|
577
|
+
n = n || {};
|
|
578
|
+
const o = {};
|
|
579
|
+
n.exclude && (typeof n.exclude[0] == "number" ? [n.exclude] : n.exclude).forEach((b) => {
|
|
580
|
+
for (let s = b[0]; s < b[1]; s += 1)
|
|
581
|
+
o[s] = !0;
|
|
582
|
+
});
|
|
583
|
+
let i = n.indentStart !== !1;
|
|
584
|
+
const l = (c) => i ? `${e}${c}` : (i = !0, c);
|
|
585
|
+
this.intro = this.intro.replace(t, l);
|
|
586
|
+
let d = 0, a = this.firstChunk;
|
|
587
|
+
for (; a; ) {
|
|
588
|
+
const c = a.end;
|
|
589
|
+
if (a.edited)
|
|
590
|
+
o[d] || (a.content = a.content.replace(t, l), a.content.length && (i = a.content[a.content.length - 1] === `
|
|
591
|
+
`));
|
|
592
|
+
else
|
|
593
|
+
for (d = a.start; d < c; ) {
|
|
594
|
+
if (!o[d]) {
|
|
595
|
+
const b = this.original[d];
|
|
596
|
+
b === `
|
|
597
|
+
` ? i = !0 : b !== "\r" && i && (i = !1, d === a.start || (this._splitChunk(a, d), a = a.next), a.prependRight(e));
|
|
598
|
+
}
|
|
599
|
+
d += 1;
|
|
600
|
+
}
|
|
601
|
+
d = a.end, a = a.next;
|
|
602
|
+
}
|
|
603
|
+
return this.outro = this.outro.replace(t, l), this;
|
|
604
|
+
}
|
|
605
|
+
insert() {
|
|
606
|
+
throw new Error(
|
|
607
|
+
"magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"
|
|
608
|
+
);
|
|
609
|
+
}
|
|
610
|
+
insertLeft(e, n) {
|
|
611
|
+
return Ge.insertLeft || (console.warn(
|
|
612
|
+
"magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"
|
|
613
|
+
), Ge.insertLeft = !0), this.appendLeft(e, n);
|
|
614
|
+
}
|
|
615
|
+
insertRight(e, n) {
|
|
616
|
+
return Ge.insertRight || (console.warn(
|
|
617
|
+
"magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"
|
|
618
|
+
), Ge.insertRight = !0), this.prependRight(e, n);
|
|
619
|
+
}
|
|
620
|
+
move(e, n, t) {
|
|
621
|
+
if (e = e + this.offset, n = n + this.offset, t = t + this.offset, t >= e && t <= n) throw new Error("Cannot move a selection inside itself");
|
|
622
|
+
this._split(e), this._split(n), this._split(t);
|
|
623
|
+
const o = this.byStart[e], i = this.byEnd[n], l = o.previous, d = i.next, a = this.byStart[t];
|
|
624
|
+
if (!a && i === this.lastChunk) return this;
|
|
625
|
+
const c = a ? a.previous : this.lastChunk;
|
|
626
|
+
return l && (l.next = d), d && (d.previous = l), c && (c.next = o), a && (a.previous = i), o.previous || (this.firstChunk = i.next), i.next || (this.lastChunk = o.previous, this.lastChunk.next = null), o.previous = c, i.next = a || null, c || (this.firstChunk = o), a || (this.lastChunk = i), this;
|
|
627
|
+
}
|
|
628
|
+
overwrite(e, n, t, o) {
|
|
629
|
+
return o = o || {}, this.update(e, n, t, { ...o, overwrite: !o.contentOnly });
|
|
630
|
+
}
|
|
631
|
+
update(e, n, t, o) {
|
|
632
|
+
if (e = e + this.offset, n = n + this.offset, typeof t != "string") throw new TypeError("replacement content must be a string");
|
|
633
|
+
if (this.original.length !== 0) {
|
|
634
|
+
for (; e < 0; ) e += this.original.length;
|
|
635
|
+
for (; n < 0; ) n += this.original.length;
|
|
636
|
+
}
|
|
637
|
+
if (n > this.original.length) throw new Error("end is out of bounds");
|
|
638
|
+
if (e === n)
|
|
639
|
+
throw new Error(
|
|
640
|
+
"Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
|
|
641
|
+
);
|
|
642
|
+
this._split(e), this._split(n), o === !0 && (Ge.storeName || (console.warn(
|
|
643
|
+
"The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"
|
|
644
|
+
), Ge.storeName = !0), o = { storeName: !0 });
|
|
645
|
+
const i = o !== void 0 ? o.storeName : !1, l = o !== void 0 ? o.overwrite : !1;
|
|
646
|
+
if (i) {
|
|
647
|
+
const c = this.original.slice(e, n);
|
|
648
|
+
Object.defineProperty(this.storedNames, c, {
|
|
649
|
+
writable: !0,
|
|
650
|
+
value: !0,
|
|
651
|
+
enumerable: !0
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
const d = this.byStart[e], a = this.byEnd[n];
|
|
655
|
+
if (d) {
|
|
656
|
+
let c = d;
|
|
657
|
+
for (; c !== a; ) {
|
|
658
|
+
if (c.next !== this.byStart[c.end])
|
|
659
|
+
throw new Error("Cannot overwrite across a split point");
|
|
660
|
+
c = c.next, c.edit("", !1);
|
|
661
|
+
}
|
|
662
|
+
d.edit(t, i, !l);
|
|
663
|
+
} else {
|
|
664
|
+
const c = new st(e, n, "").edit(t, i);
|
|
665
|
+
a.next = c, c.previous = a;
|
|
666
|
+
}
|
|
667
|
+
return this;
|
|
668
|
+
}
|
|
669
|
+
prepend(e) {
|
|
670
|
+
if (typeof e != "string") throw new TypeError("outro content must be a string");
|
|
671
|
+
return this.intro = e + this.intro, this;
|
|
672
|
+
}
|
|
673
|
+
prependLeft(e, n) {
|
|
674
|
+
if (e = e + this.offset, typeof n != "string") throw new TypeError("inserted content must be a string");
|
|
675
|
+
this._split(e);
|
|
676
|
+
const t = this.byEnd[e];
|
|
677
|
+
return t ? t.prependLeft(n) : this.intro = n + this.intro, this;
|
|
678
|
+
}
|
|
679
|
+
prependRight(e, n) {
|
|
680
|
+
if (e = e + this.offset, typeof n != "string") throw new TypeError("inserted content must be a string");
|
|
681
|
+
this._split(e);
|
|
682
|
+
const t = this.byStart[e];
|
|
683
|
+
return t ? t.prependRight(n) : this.outro = n + this.outro, this;
|
|
684
|
+
}
|
|
685
|
+
remove(e, n) {
|
|
686
|
+
if (e = e + this.offset, n = n + this.offset, this.original.length !== 0) {
|
|
687
|
+
for (; e < 0; ) e += this.original.length;
|
|
688
|
+
for (; n < 0; ) n += this.original.length;
|
|
689
|
+
}
|
|
690
|
+
if (e === n) return this;
|
|
691
|
+
if (e < 0 || n > this.original.length) throw new Error("Character is out of bounds");
|
|
692
|
+
if (e > n) throw new Error("end must be greater than start");
|
|
693
|
+
this._split(e), this._split(n);
|
|
694
|
+
let t = this.byStart[e];
|
|
695
|
+
for (; t; )
|
|
696
|
+
t.intro = "", t.outro = "", t.edit(""), t = n > t.end ? this.byStart[t.end] : null;
|
|
697
|
+
return this;
|
|
698
|
+
}
|
|
699
|
+
reset(e, n) {
|
|
700
|
+
if (e = e + this.offset, n = n + this.offset, this.original.length !== 0) {
|
|
701
|
+
for (; e < 0; ) e += this.original.length;
|
|
702
|
+
for (; n < 0; ) n += this.original.length;
|
|
703
|
+
}
|
|
704
|
+
if (e === n) return this;
|
|
705
|
+
if (e < 0 || n > this.original.length) throw new Error("Character is out of bounds");
|
|
706
|
+
if (e > n) throw new Error("end must be greater than start");
|
|
707
|
+
this._split(e), this._split(n);
|
|
708
|
+
let t = this.byStart[e];
|
|
709
|
+
for (; t; )
|
|
710
|
+
t.reset(), t = n > t.end ? this.byStart[t.end] : null;
|
|
711
|
+
return this;
|
|
712
|
+
}
|
|
713
|
+
lastChar() {
|
|
714
|
+
if (this.outro.length) return this.outro[this.outro.length - 1];
|
|
715
|
+
let e = this.lastChunk;
|
|
716
|
+
do {
|
|
717
|
+
if (e.outro.length) return e.outro[e.outro.length - 1];
|
|
718
|
+
if (e.content.length) return e.content[e.content.length - 1];
|
|
719
|
+
if (e.intro.length) return e.intro[e.intro.length - 1];
|
|
720
|
+
} while (e = e.previous);
|
|
721
|
+
return this.intro.length ? this.intro[this.intro.length - 1] : "";
|
|
722
|
+
}
|
|
723
|
+
lastLine() {
|
|
724
|
+
let e = this.outro.lastIndexOf(nt);
|
|
725
|
+
if (e !== -1) return this.outro.substr(e + 1);
|
|
726
|
+
let n = this.outro, t = this.lastChunk;
|
|
727
|
+
do {
|
|
728
|
+
if (t.outro.length > 0) {
|
|
729
|
+
if (e = t.outro.lastIndexOf(nt), e !== -1) return t.outro.substr(e + 1) + n;
|
|
730
|
+
n = t.outro + n;
|
|
731
|
+
}
|
|
732
|
+
if (t.content.length > 0) {
|
|
733
|
+
if (e = t.content.lastIndexOf(nt), e !== -1) return t.content.substr(e + 1) + n;
|
|
734
|
+
n = t.content + n;
|
|
735
|
+
}
|
|
736
|
+
if (t.intro.length > 0) {
|
|
737
|
+
if (e = t.intro.lastIndexOf(nt), e !== -1) return t.intro.substr(e + 1) + n;
|
|
738
|
+
n = t.intro + n;
|
|
739
|
+
}
|
|
740
|
+
} while (t = t.previous);
|
|
741
|
+
return e = this.intro.lastIndexOf(nt), e !== -1 ? this.intro.substr(e + 1) + n : this.intro + n;
|
|
742
|
+
}
|
|
743
|
+
slice(e = 0, n = this.original.length - this.offset) {
|
|
744
|
+
if (e = e + this.offset, n = n + this.offset, this.original.length !== 0) {
|
|
745
|
+
for (; e < 0; ) e += this.original.length;
|
|
746
|
+
for (; n < 0; ) n += this.original.length;
|
|
747
|
+
}
|
|
748
|
+
let t = "", o = this.firstChunk;
|
|
749
|
+
for (; o && (o.start > e || o.end <= e); ) {
|
|
750
|
+
if (o.start < n && o.end >= n)
|
|
751
|
+
return t;
|
|
752
|
+
o = o.next;
|
|
753
|
+
}
|
|
754
|
+
if (o && o.edited && o.start !== e)
|
|
755
|
+
throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);
|
|
756
|
+
const i = o;
|
|
757
|
+
for (; o; ) {
|
|
758
|
+
o.intro && (i !== o || o.start === e) && (t += o.intro);
|
|
759
|
+
const l = o.start < n && o.end >= n;
|
|
760
|
+
if (l && o.edited && o.end !== n)
|
|
761
|
+
throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);
|
|
762
|
+
const d = i === o ? e - o.start : 0, a = l ? o.content.length + n - o.end : o.content.length;
|
|
763
|
+
if (t += o.content.slice(d, a), o.outro && (!l || o.end === n) && (t += o.outro), l)
|
|
764
|
+
break;
|
|
765
|
+
o = o.next;
|
|
766
|
+
}
|
|
767
|
+
return t;
|
|
768
|
+
}
|
|
769
|
+
// TODO deprecate this? not really very useful
|
|
770
|
+
snip(e, n) {
|
|
771
|
+
const t = this.clone();
|
|
772
|
+
return t.remove(0, e), t.remove(n, t.original.length), t;
|
|
773
|
+
}
|
|
774
|
+
_split(e) {
|
|
775
|
+
if (this.byStart[e] || this.byEnd[e]) return;
|
|
776
|
+
let n = this.lastSearchedChunk;
|
|
777
|
+
const t = e > n.end;
|
|
778
|
+
for (; n; ) {
|
|
779
|
+
if (n.contains(e)) return this._splitChunk(n, e);
|
|
780
|
+
n = t ? this.byStart[n.end] : this.byEnd[n.start];
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
_splitChunk(e, n) {
|
|
784
|
+
if (e.edited && e.content.length) {
|
|
785
|
+
const o = kt(this.original)(n);
|
|
786
|
+
throw new Error(
|
|
787
|
+
`Cannot split a chunk that has already been edited (${o.line}:${o.column} – "${e.original}")`
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
const t = e.split(n);
|
|
791
|
+
return this.byEnd[n] = e, this.byStart[n] = t, this.byEnd[t.end] = t, e === this.lastChunk && (this.lastChunk = t), this.lastSearchedChunk = e, !0;
|
|
792
|
+
}
|
|
793
|
+
toString() {
|
|
794
|
+
let e = this.intro, n = this.firstChunk;
|
|
795
|
+
for (; n; )
|
|
796
|
+
e += n.toString(), n = n.next;
|
|
797
|
+
return e + this.outro;
|
|
798
|
+
}
|
|
799
|
+
isEmpty() {
|
|
800
|
+
let e = this.firstChunk;
|
|
801
|
+
do
|
|
802
|
+
if (e.intro.length && e.intro.trim() || e.content.length && e.content.trim() || e.outro.length && e.outro.trim())
|
|
803
|
+
return !1;
|
|
804
|
+
while (e = e.next);
|
|
805
|
+
return !0;
|
|
806
|
+
}
|
|
807
|
+
length() {
|
|
808
|
+
let e = this.firstChunk, n = 0;
|
|
809
|
+
do
|
|
810
|
+
n += e.intro.length + e.content.length + e.outro.length;
|
|
811
|
+
while (e = e.next);
|
|
812
|
+
return n;
|
|
813
|
+
}
|
|
814
|
+
trimLines() {
|
|
815
|
+
return this.trim("[\\r\\n]");
|
|
816
|
+
}
|
|
817
|
+
trim(e) {
|
|
818
|
+
return this.trimStart(e).trimEnd(e);
|
|
819
|
+
}
|
|
820
|
+
trimEndAborted(e) {
|
|
821
|
+
const n = new RegExp((e || "\\s") + "+$");
|
|
822
|
+
if (this.outro = this.outro.replace(n, ""), this.outro.length) return !0;
|
|
823
|
+
let t = this.lastChunk;
|
|
824
|
+
do {
|
|
825
|
+
const o = t.end, i = t.trimEnd(n);
|
|
826
|
+
if (t.end !== o && (this.lastChunk === t && (this.lastChunk = t.next), this.byEnd[t.end] = t, this.byStart[t.next.start] = t.next, this.byEnd[t.next.end] = t.next), i) return !0;
|
|
827
|
+
t = t.previous;
|
|
828
|
+
} while (t);
|
|
829
|
+
return !1;
|
|
830
|
+
}
|
|
831
|
+
trimEnd(e) {
|
|
832
|
+
return this.trimEndAborted(e), this;
|
|
833
|
+
}
|
|
834
|
+
trimStartAborted(e) {
|
|
835
|
+
const n = new RegExp("^" + (e || "\\s") + "+");
|
|
836
|
+
if (this.intro = this.intro.replace(n, ""), this.intro.length) return !0;
|
|
837
|
+
let t = this.firstChunk;
|
|
838
|
+
do {
|
|
839
|
+
const o = t.end, i = t.trimStart(n);
|
|
840
|
+
if (t.end !== o && (t === this.lastChunk && (this.lastChunk = t.next), this.byEnd[t.end] = t, this.byStart[t.next.start] = t.next, this.byEnd[t.next.end] = t.next), i) return !0;
|
|
841
|
+
t = t.next;
|
|
842
|
+
} while (t);
|
|
843
|
+
return !1;
|
|
844
|
+
}
|
|
845
|
+
trimStart(e) {
|
|
846
|
+
return this.trimStartAborted(e), this;
|
|
847
|
+
}
|
|
848
|
+
hasChanged() {
|
|
849
|
+
return this.original !== this.toString();
|
|
850
|
+
}
|
|
851
|
+
_replaceRegexp(e, n) {
|
|
852
|
+
function t(i, l) {
|
|
853
|
+
return typeof n == "string" ? n.replace(/\$(\$|&|\d+)/g, (d, a) => a === "$" ? "$" : a === "&" ? i[0] : +a < i.length ? i[+a] : `$${a}`) : n(...i, i.index, l, i.groups);
|
|
854
|
+
}
|
|
855
|
+
function o(i, l) {
|
|
856
|
+
let d;
|
|
857
|
+
const a = [];
|
|
858
|
+
for (; d = i.exec(l); )
|
|
859
|
+
a.push(d);
|
|
860
|
+
return a;
|
|
861
|
+
}
|
|
862
|
+
if (e.global)
|
|
863
|
+
o(e, this.original).forEach((l) => {
|
|
864
|
+
if (l.index != null) {
|
|
865
|
+
const d = t(l, this.original);
|
|
866
|
+
d !== l[0] && this.overwrite(l.index, l.index + l[0].length, d);
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
else {
|
|
870
|
+
const i = this.original.match(e);
|
|
871
|
+
if (i && i.index != null) {
|
|
872
|
+
const l = t(i, this.original);
|
|
873
|
+
l !== i[0] && this.overwrite(i.index, i.index + i[0].length, l);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
return this;
|
|
877
|
+
}
|
|
878
|
+
_replaceString(e, n) {
|
|
879
|
+
const { original: t } = this, o = t.indexOf(e);
|
|
880
|
+
return o !== -1 && this.overwrite(o, o + e.length, n), this;
|
|
881
|
+
}
|
|
882
|
+
replace(e, n) {
|
|
883
|
+
return typeof e == "string" ? this._replaceString(e, n) : this._replaceRegexp(e, n);
|
|
884
|
+
}
|
|
885
|
+
_replaceAllString(e, n) {
|
|
886
|
+
const { original: t } = this, o = e.length;
|
|
887
|
+
for (let i = t.indexOf(e); i !== -1; i = t.indexOf(e, i + o))
|
|
888
|
+
t.slice(i, i + o) !== n && this.overwrite(i, i + o, n);
|
|
889
|
+
return this;
|
|
890
|
+
}
|
|
891
|
+
replaceAll(e, n) {
|
|
892
|
+
if (typeof e == "string")
|
|
893
|
+
return this._replaceAllString(e, n);
|
|
894
|
+
if (!e.global)
|
|
895
|
+
throw new TypeError(
|
|
896
|
+
"MagicString.prototype.replaceAll called with a non-global RegExp argument"
|
|
897
|
+
);
|
|
898
|
+
return this._replaceRegexp(e, n);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
const We = (h, e) => {
|
|
902
|
+
const n = h.__vccOpts || h;
|
|
903
|
+
for (const [t, o] of e)
|
|
904
|
+
n[t] = o;
|
|
905
|
+
return n;
|
|
906
|
+
}, te = Ye(!1), G = D(() => {
|
|
907
|
+
te.value = !0;
|
|
908
|
+
}, {
|
|
909
|
+
metaData: {
|
|
910
|
+
id: "engine.setting.event.BindEventsDialog.open"
|
|
911
|
+
},
|
|
912
|
+
ctx: () => ({
|
|
913
|
+
string2Ast: ce,
|
|
914
|
+
getMergeMeta: q,
|
|
915
|
+
useCanvas: I,
|
|
916
|
+
useHistory: de,
|
|
917
|
+
useLayout: z,
|
|
918
|
+
getOptions: ae,
|
|
919
|
+
getMetaApi: V,
|
|
920
|
+
META_APP: O,
|
|
921
|
+
MagicString: ee,
|
|
922
|
+
meta: Q,
|
|
923
|
+
dialogVisible: te,
|
|
924
|
+
open: G,
|
|
925
|
+
close: se
|
|
926
|
+
})
|
|
927
|
+
}), se = D(() => {
|
|
928
|
+
te.value = !1;
|
|
929
|
+
}, {
|
|
930
|
+
metaData: {
|
|
931
|
+
id: "engine.setting.event.BindEventsDialog.close"
|
|
932
|
+
},
|
|
933
|
+
ctx: () => ({
|
|
934
|
+
string2Ast: ce,
|
|
935
|
+
getMergeMeta: q,
|
|
936
|
+
useCanvas: I,
|
|
937
|
+
useHistory: de,
|
|
938
|
+
useLayout: z,
|
|
939
|
+
getOptions: ae,
|
|
940
|
+
getMetaApi: V,
|
|
941
|
+
META_APP: O,
|
|
942
|
+
MagicString: ee,
|
|
943
|
+
meta: Q,
|
|
944
|
+
dialogVisible: te,
|
|
945
|
+
open: G,
|
|
946
|
+
close: se
|
|
947
|
+
})
|
|
948
|
+
}), tn = {
|
|
29
949
|
components: {
|
|
30
|
-
TinyButton:
|
|
31
|
-
TinyDialogBox:
|
|
32
|
-
TinyAlert:
|
|
950
|
+
TinyButton: ct,
|
|
951
|
+
TinyDialogBox: It,
|
|
952
|
+
TinyAlert: Vt
|
|
33
953
|
},
|
|
34
954
|
inheritAttrs: !1,
|
|
35
955
|
props: {
|
|
@@ -38,8 +958,20 @@ const de = {
|
|
|
38
958
|
default: () => ({})
|
|
39
959
|
}
|
|
40
960
|
},
|
|
41
|
-
setup(
|
|
42
|
-
const {
|
|
961
|
+
setup(h) {
|
|
962
|
+
const {
|
|
963
|
+
BindEventsDialogSidebar: e,
|
|
964
|
+
BindEventsDialogContent: n
|
|
965
|
+
} = q(Q.id).components, {
|
|
966
|
+
PLUGIN_NAME: t,
|
|
967
|
+
activePlugin: o
|
|
968
|
+
} = z(), {
|
|
969
|
+
pageState: i
|
|
970
|
+
} = I(), {
|
|
971
|
+
getMethods: l,
|
|
972
|
+
saveMethod: d,
|
|
973
|
+
highlightMethod: a
|
|
974
|
+
} = V(O.Page), c = rt({
|
|
43
975
|
editorContent: "",
|
|
44
976
|
bindMethodInfo: {},
|
|
45
977
|
tip: "",
|
|
@@ -47,146 +979,550 @@ const de = {
|
|
|
47
979
|
enableExtraParams: !1,
|
|
48
980
|
isValidParams: !0
|
|
49
981
|
});
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
|
|
982
|
+
St("context", c);
|
|
983
|
+
const b = D((x) => {
|
|
984
|
+
c.bindMethodInfo = x;
|
|
985
|
+
}, {
|
|
986
|
+
metaData: {
|
|
987
|
+
id: "engine.setting.event.BindEventsDialog.selectMethod"
|
|
988
|
+
},
|
|
989
|
+
ctx: () => ({
|
|
990
|
+
props: h,
|
|
991
|
+
BindEventsDialogSidebar: e,
|
|
992
|
+
BindEventsDialogContent: n,
|
|
993
|
+
PLUGIN_NAME: t,
|
|
994
|
+
activePlugin: o,
|
|
995
|
+
pageState: i,
|
|
996
|
+
getMethods: l,
|
|
997
|
+
saveMethod: d,
|
|
998
|
+
highlightMethod: a,
|
|
999
|
+
state: c,
|
|
1000
|
+
selectMethod: b,
|
|
1001
|
+
bindMethod: s,
|
|
1002
|
+
resetTipError: m,
|
|
1003
|
+
getExtraParams: g,
|
|
1004
|
+
getFormatParams: v,
|
|
1005
|
+
rewriteMethodParams: w,
|
|
1006
|
+
activePagePlugin: S,
|
|
1007
|
+
confirm: A,
|
|
1008
|
+
openedDialog: y,
|
|
1009
|
+
closeDialog: E,
|
|
1010
|
+
string2Ast: ce,
|
|
1011
|
+
getMergeMeta: q,
|
|
1012
|
+
useCanvas: I,
|
|
1013
|
+
useHistory: de,
|
|
1014
|
+
useLayout: z,
|
|
1015
|
+
getOptions: ae,
|
|
1016
|
+
getMetaApi: V,
|
|
1017
|
+
META_APP: O,
|
|
1018
|
+
MagicString: ee,
|
|
1019
|
+
meta: Q,
|
|
1020
|
+
dialogVisible: te,
|
|
1021
|
+
open: G,
|
|
1022
|
+
close: se
|
|
1023
|
+
})
|
|
1024
|
+
}), s = D((x) => {
|
|
1025
|
+
var le, ne;
|
|
1026
|
+
if (!x)
|
|
56
1027
|
return;
|
|
57
|
-
const
|
|
58
|
-
if (!
|
|
1028
|
+
const k = (le = h.eventBinding) == null ? void 0 : le.eventName;
|
|
1029
|
+
if (!k)
|
|
59
1030
|
return;
|
|
60
|
-
const
|
|
61
|
-
if (!
|
|
1031
|
+
const B = (ne = i == null ? void 0 : i.currentSchema) == null ? void 0 : ne.props;
|
|
1032
|
+
if (!B)
|
|
62
1033
|
return;
|
|
63
|
-
const {
|
|
64
|
-
|
|
1034
|
+
const {
|
|
1035
|
+
name: $,
|
|
1036
|
+
extra: he
|
|
1037
|
+
} = x;
|
|
1038
|
+
h[k] || (B[k] = {
|
|
65
1039
|
type: "JSExpression",
|
|
66
1040
|
value: ""
|
|
67
|
-
}),
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
1041
|
+
}), he && c.enableExtraParams && (B[k].params = he), B[k].value = `this.${$}`, de().addHistory();
|
|
1042
|
+
}, {
|
|
1043
|
+
metaData: {
|
|
1044
|
+
id: "engine.setting.event.BindEventsDialog.bindMethod"
|
|
1045
|
+
},
|
|
1046
|
+
ctx: () => ({
|
|
1047
|
+
props: h,
|
|
1048
|
+
BindEventsDialogSidebar: e,
|
|
1049
|
+
BindEventsDialogContent: n,
|
|
1050
|
+
PLUGIN_NAME: t,
|
|
1051
|
+
activePlugin: o,
|
|
1052
|
+
pageState: i,
|
|
1053
|
+
getMethods: l,
|
|
1054
|
+
saveMethod: d,
|
|
1055
|
+
highlightMethod: a,
|
|
1056
|
+
state: c,
|
|
1057
|
+
selectMethod: b,
|
|
1058
|
+
bindMethod: s,
|
|
1059
|
+
resetTipError: m,
|
|
1060
|
+
getExtraParams: g,
|
|
1061
|
+
getFormatParams: v,
|
|
1062
|
+
rewriteMethodParams: w,
|
|
1063
|
+
activePagePlugin: S,
|
|
1064
|
+
confirm: A,
|
|
1065
|
+
openedDialog: y,
|
|
1066
|
+
closeDialog: E,
|
|
1067
|
+
string2Ast: ce,
|
|
1068
|
+
getMergeMeta: q,
|
|
1069
|
+
useCanvas: I,
|
|
1070
|
+
useHistory: de,
|
|
1071
|
+
useLayout: z,
|
|
1072
|
+
getOptions: ae,
|
|
1073
|
+
getMetaApi: V,
|
|
1074
|
+
META_APP: O,
|
|
1075
|
+
MagicString: ee,
|
|
1076
|
+
meta: Q,
|
|
1077
|
+
dialogVisible: te,
|
|
1078
|
+
open: G,
|
|
1079
|
+
close: se
|
|
1080
|
+
})
|
|
1081
|
+
}), m = D(() => {
|
|
1082
|
+
c.tipError = !1, c.tip = "", c.isValidParams = !0;
|
|
1083
|
+
}, {
|
|
1084
|
+
metaData: {
|
|
1085
|
+
id: "engine.setting.event.BindEventsDialog.resetTipError"
|
|
1086
|
+
},
|
|
1087
|
+
ctx: () => ({
|
|
1088
|
+
props: h,
|
|
1089
|
+
BindEventsDialogSidebar: e,
|
|
1090
|
+
BindEventsDialogContent: n,
|
|
1091
|
+
PLUGIN_NAME: t,
|
|
1092
|
+
activePlugin: o,
|
|
1093
|
+
pageState: i,
|
|
1094
|
+
getMethods: l,
|
|
1095
|
+
saveMethod: d,
|
|
1096
|
+
highlightMethod: a,
|
|
1097
|
+
state: c,
|
|
1098
|
+
selectMethod: b,
|
|
1099
|
+
bindMethod: s,
|
|
1100
|
+
resetTipError: m,
|
|
1101
|
+
getExtraParams: g,
|
|
1102
|
+
getFormatParams: v,
|
|
1103
|
+
rewriteMethodParams: w,
|
|
1104
|
+
activePagePlugin: S,
|
|
1105
|
+
confirm: A,
|
|
1106
|
+
openedDialog: y,
|
|
1107
|
+
closeDialog: E,
|
|
1108
|
+
string2Ast: ce,
|
|
1109
|
+
getMergeMeta: q,
|
|
1110
|
+
useCanvas: I,
|
|
1111
|
+
useHistory: de,
|
|
1112
|
+
useLayout: z,
|
|
1113
|
+
getOptions: ae,
|
|
1114
|
+
getMetaApi: V,
|
|
1115
|
+
META_APP: O,
|
|
1116
|
+
MagicString: ee,
|
|
1117
|
+
meta: Q,
|
|
1118
|
+
dialogVisible: te,
|
|
1119
|
+
open: G,
|
|
1120
|
+
close: se
|
|
1121
|
+
})
|
|
1122
|
+
}), g = D(() => {
|
|
1123
|
+
let x = "";
|
|
1124
|
+
if (c.enableExtraParams)
|
|
84
1125
|
try {
|
|
85
|
-
|
|
1126
|
+
x = JSON.parse(c.editorContent), c.isValidParams = Array.isArray(x);
|
|
86
1127
|
} catch {
|
|
87
|
-
|
|
1128
|
+
c.isValidParams = !1;
|
|
88
1129
|
}
|
|
89
|
-
|
|
1130
|
+
return x;
|
|
1131
|
+
}, {
|
|
1132
|
+
metaData: {
|
|
1133
|
+
id: "engine.setting.event.BindEventsDialog.getExtraParams"
|
|
1134
|
+
},
|
|
1135
|
+
ctx: () => ({
|
|
1136
|
+
props: h,
|
|
1137
|
+
BindEventsDialogSidebar: e,
|
|
1138
|
+
BindEventsDialogContent: n,
|
|
1139
|
+
PLUGIN_NAME: t,
|
|
1140
|
+
activePlugin: o,
|
|
1141
|
+
pageState: i,
|
|
1142
|
+
getMethods: l,
|
|
1143
|
+
saveMethod: d,
|
|
1144
|
+
highlightMethod: a,
|
|
1145
|
+
state: c,
|
|
1146
|
+
selectMethod: b,
|
|
1147
|
+
bindMethod: s,
|
|
1148
|
+
resetTipError: m,
|
|
1149
|
+
getExtraParams: g,
|
|
1150
|
+
getFormatParams: v,
|
|
1151
|
+
rewriteMethodParams: w,
|
|
1152
|
+
activePagePlugin: S,
|
|
1153
|
+
confirm: A,
|
|
1154
|
+
openedDialog: y,
|
|
1155
|
+
closeDialog: E,
|
|
1156
|
+
string2Ast: ce,
|
|
1157
|
+
getMergeMeta: q,
|
|
1158
|
+
useCanvas: I,
|
|
1159
|
+
useHistory: de,
|
|
1160
|
+
useLayout: z,
|
|
1161
|
+
getOptions: ae,
|
|
1162
|
+
getMetaApi: V,
|
|
1163
|
+
META_APP: O,
|
|
1164
|
+
MagicString: ee,
|
|
1165
|
+
meta: Q,
|
|
1166
|
+
dialogVisible: te,
|
|
1167
|
+
open: G,
|
|
1168
|
+
close: se
|
|
1169
|
+
})
|
|
1170
|
+
}), v = D((x) => Array.from({
|
|
1171
|
+
length: x.length
|
|
1172
|
+
}, (k, B) => `args${B}`).join(","), {
|
|
1173
|
+
metaData: {
|
|
1174
|
+
id: "engine.setting.event.BindEventsDialog.getFormatParams"
|
|
1175
|
+
},
|
|
1176
|
+
ctx: () => ({
|
|
1177
|
+
props: h,
|
|
1178
|
+
BindEventsDialogSidebar: e,
|
|
1179
|
+
BindEventsDialogContent: n,
|
|
1180
|
+
PLUGIN_NAME: t,
|
|
1181
|
+
activePlugin: o,
|
|
1182
|
+
pageState: i,
|
|
1183
|
+
getMethods: l,
|
|
1184
|
+
saveMethod: d,
|
|
1185
|
+
highlightMethod: a,
|
|
1186
|
+
state: c,
|
|
1187
|
+
selectMethod: b,
|
|
1188
|
+
bindMethod: s,
|
|
1189
|
+
resetTipError: m,
|
|
1190
|
+
getExtraParams: g,
|
|
1191
|
+
getFormatParams: v,
|
|
1192
|
+
rewriteMethodParams: w,
|
|
1193
|
+
activePagePlugin: S,
|
|
1194
|
+
confirm: A,
|
|
1195
|
+
openedDialog: y,
|
|
1196
|
+
closeDialog: E,
|
|
1197
|
+
string2Ast: ce,
|
|
1198
|
+
getMergeMeta: q,
|
|
1199
|
+
useCanvas: I,
|
|
1200
|
+
useHistory: de,
|
|
1201
|
+
useLayout: z,
|
|
1202
|
+
getOptions: ae,
|
|
1203
|
+
getMetaApi: V,
|
|
1204
|
+
META_APP: O,
|
|
1205
|
+
MagicString: ee,
|
|
1206
|
+
meta: Q,
|
|
1207
|
+
dialogVisible: te,
|
|
1208
|
+
open: G,
|
|
1209
|
+
close: se
|
|
1210
|
+
})
|
|
1211
|
+
}), w = D((x, k, B, $, he) => {
|
|
1212
|
+
var ve, ge, be, pe, Le;
|
|
1213
|
+
const le = he && $.length ? `event,${B}` : B, ne = `function ${k} (${le}) {
|
|
1214
|
+
}
|
|
1215
|
+
`;
|
|
1216
|
+
if (!x)
|
|
1217
|
+
return ne;
|
|
1218
|
+
try {
|
|
1219
|
+
const _e = new ee(x), W = ce(x);
|
|
1220
|
+
if (((ge = (ve = W == null ? void 0 : W.program) == null ? void 0 : ve.body[0]) == null ? void 0 : ge.type) !== "FunctionDeclaration")
|
|
1221
|
+
return ne;
|
|
1222
|
+
if (((be = W == null ? void 0 : W.program) == null ? void 0 : be.body[0].params.length) === $.length + 1)
|
|
1223
|
+
return x;
|
|
1224
|
+
const Be = (pe = W == null ? void 0 : W.program) == null ? void 0 : pe.body[0].id.end, Ze = (Le = W == null ? void 0 : W.program) == null ? void 0 : Le.body[0].body.start;
|
|
1225
|
+
return _e.remove(Be, Ze), _e.appendLeft(Be, `(${le})`), _e.toString();
|
|
1226
|
+
} catch {
|
|
1227
|
+
return ne;
|
|
90
1228
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
1229
|
+
}, {
|
|
1230
|
+
metaData: {
|
|
1231
|
+
id: "engine.setting.event.BindEventsDialog.rewriteMethodParams"
|
|
1232
|
+
},
|
|
1233
|
+
ctx: () => ({
|
|
1234
|
+
props: h,
|
|
1235
|
+
BindEventsDialogSidebar: e,
|
|
1236
|
+
BindEventsDialogContent: n,
|
|
1237
|
+
PLUGIN_NAME: t,
|
|
1238
|
+
activePlugin: o,
|
|
1239
|
+
pageState: i,
|
|
1240
|
+
getMethods: l,
|
|
1241
|
+
saveMethod: d,
|
|
1242
|
+
highlightMethod: a,
|
|
1243
|
+
state: c,
|
|
1244
|
+
selectMethod: b,
|
|
1245
|
+
bindMethod: s,
|
|
1246
|
+
resetTipError: m,
|
|
1247
|
+
getExtraParams: g,
|
|
1248
|
+
getFormatParams: v,
|
|
1249
|
+
rewriteMethodParams: w,
|
|
1250
|
+
activePagePlugin: S,
|
|
1251
|
+
confirm: A,
|
|
1252
|
+
openedDialog: y,
|
|
1253
|
+
closeDialog: E,
|
|
1254
|
+
string2Ast: ce,
|
|
1255
|
+
getMergeMeta: q,
|
|
1256
|
+
useCanvas: I,
|
|
1257
|
+
useHistory: de,
|
|
1258
|
+
useLayout: z,
|
|
1259
|
+
getOptions: ae,
|
|
1260
|
+
getMetaApi: V,
|
|
1261
|
+
META_APP: O,
|
|
1262
|
+
MagicString: ee,
|
|
1263
|
+
meta: Q,
|
|
1264
|
+
dialogVisible: te,
|
|
1265
|
+
open: G,
|
|
1266
|
+
close: se
|
|
1267
|
+
})
|
|
1268
|
+
}), S = D(() => {
|
|
1269
|
+
o(t.Page).then(() => {
|
|
1270
|
+
Ot(() => {
|
|
1271
|
+
var x;
|
|
1272
|
+
a && a((x = c.bindMethodInfo) == null ? void 0 : x.name);
|
|
102
1273
|
});
|
|
103
1274
|
});
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
1275
|
+
}, {
|
|
1276
|
+
metaData: {
|
|
1277
|
+
id: "engine.setting.event.BindEventsDialog.activePagePlugin"
|
|
1278
|
+
},
|
|
1279
|
+
ctx: () => ({
|
|
1280
|
+
props: h,
|
|
1281
|
+
BindEventsDialogSidebar: e,
|
|
1282
|
+
BindEventsDialogContent: n,
|
|
1283
|
+
PLUGIN_NAME: t,
|
|
1284
|
+
activePlugin: o,
|
|
1285
|
+
pageState: i,
|
|
1286
|
+
getMethods: l,
|
|
1287
|
+
saveMethod: d,
|
|
1288
|
+
highlightMethod: a,
|
|
1289
|
+
state: c,
|
|
1290
|
+
selectMethod: b,
|
|
1291
|
+
bindMethod: s,
|
|
1292
|
+
resetTipError: m,
|
|
1293
|
+
getExtraParams: g,
|
|
1294
|
+
getFormatParams: v,
|
|
1295
|
+
rewriteMethodParams: w,
|
|
1296
|
+
activePagePlugin: S,
|
|
1297
|
+
confirm: A,
|
|
1298
|
+
openedDialog: y,
|
|
1299
|
+
closeDialog: E,
|
|
1300
|
+
string2Ast: ce,
|
|
1301
|
+
getMergeMeta: q,
|
|
1302
|
+
useCanvas: I,
|
|
1303
|
+
useHistory: de,
|
|
1304
|
+
useLayout: z,
|
|
1305
|
+
getOptions: ae,
|
|
1306
|
+
getMetaApi: V,
|
|
1307
|
+
META_APP: O,
|
|
1308
|
+
MagicString: ee,
|
|
1309
|
+
meta: Q,
|
|
1310
|
+
dialogVisible: te,
|
|
1311
|
+
open: G,
|
|
1312
|
+
close: se
|
|
1313
|
+
})
|
|
1314
|
+
}), A = D(async () => {
|
|
1315
|
+
var ge, be;
|
|
1316
|
+
if (c.tipError)
|
|
1317
|
+
return;
|
|
1318
|
+
let x = "event";
|
|
1319
|
+
const k = g();
|
|
1320
|
+
let B = x;
|
|
1321
|
+
if (!c.isValidParams)
|
|
1322
|
+
return;
|
|
1323
|
+
k && (x = k.join(","), B = v(k)), s({
|
|
1324
|
+
...c.bindMethodInfo,
|
|
1325
|
+
params: x,
|
|
1326
|
+
extra: k
|
|
1327
|
+
});
|
|
1328
|
+
const {
|
|
1329
|
+
name: $
|
|
1330
|
+
} = c.bindMethodInfo, he = (be = (ge = l()) == null ? void 0 : ge[c.bindMethodInfo.name]) == null ? void 0 : be.value, le = w(he, $, B, k, c.enableExtraParams), ne = {
|
|
1331
|
+
name: $,
|
|
1332
|
+
content: le
|
|
1333
|
+
}, {
|
|
1334
|
+
beforeSaveMethod: ve
|
|
1335
|
+
} = ae(Q.id);
|
|
1336
|
+
typeof ve == "function" && await ve(ne, c.bindMethodInfo), d == null || d(ne), S(), se();
|
|
1337
|
+
}, {
|
|
1338
|
+
metaData: {
|
|
1339
|
+
id: "engine.setting.event.BindEventsDialog.confirm"
|
|
124
1340
|
},
|
|
125
|
-
|
|
126
|
-
|
|
1341
|
+
ctx: () => ({
|
|
1342
|
+
props: h,
|
|
1343
|
+
BindEventsDialogSidebar: e,
|
|
1344
|
+
BindEventsDialogContent: n,
|
|
1345
|
+
PLUGIN_NAME: t,
|
|
1346
|
+
activePlugin: o,
|
|
1347
|
+
pageState: i,
|
|
1348
|
+
getMethods: l,
|
|
1349
|
+
saveMethod: d,
|
|
1350
|
+
highlightMethod: a,
|
|
1351
|
+
state: c,
|
|
1352
|
+
selectMethod: b,
|
|
1353
|
+
bindMethod: s,
|
|
1354
|
+
resetTipError: m,
|
|
1355
|
+
getExtraParams: g,
|
|
1356
|
+
getFormatParams: v,
|
|
1357
|
+
rewriteMethodParams: w,
|
|
1358
|
+
activePagePlugin: S,
|
|
1359
|
+
confirm: A,
|
|
1360
|
+
openedDialog: y,
|
|
1361
|
+
closeDialog: E,
|
|
1362
|
+
string2Ast: ce,
|
|
1363
|
+
getMergeMeta: q,
|
|
1364
|
+
useCanvas: I,
|
|
1365
|
+
useHistory: de,
|
|
1366
|
+
useLayout: z,
|
|
1367
|
+
getOptions: ae,
|
|
1368
|
+
getMetaApi: V,
|
|
1369
|
+
META_APP: O,
|
|
1370
|
+
MagicString: ee,
|
|
1371
|
+
meta: Q,
|
|
1372
|
+
dialogVisible: te,
|
|
1373
|
+
open: G,
|
|
1374
|
+
close: se
|
|
1375
|
+
})
|
|
1376
|
+
}), y = D(() => {
|
|
1377
|
+
var x, k, B;
|
|
1378
|
+
c.enableExtraParams = !!((k = (x = h.eventBinding) == null ? void 0 : x.params) != null && k.length), c.editorContent = JSON.stringify(((B = h.eventBinding) == null ? void 0 : B.params) || [], null, 2), m();
|
|
1379
|
+
}, {
|
|
1380
|
+
metaData: {
|
|
1381
|
+
id: "engine.setting.event.BindEventsDialog.openedDialog"
|
|
127
1382
|
},
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
1383
|
+
ctx: () => ({
|
|
1384
|
+
props: h,
|
|
1385
|
+
BindEventsDialogSidebar: e,
|
|
1386
|
+
BindEventsDialogContent: n,
|
|
1387
|
+
PLUGIN_NAME: t,
|
|
1388
|
+
activePlugin: o,
|
|
1389
|
+
pageState: i,
|
|
1390
|
+
getMethods: l,
|
|
1391
|
+
saveMethod: d,
|
|
1392
|
+
highlightMethod: a,
|
|
1393
|
+
state: c,
|
|
1394
|
+
selectMethod: b,
|
|
1395
|
+
bindMethod: s,
|
|
1396
|
+
resetTipError: m,
|
|
1397
|
+
getExtraParams: g,
|
|
1398
|
+
getFormatParams: v,
|
|
1399
|
+
rewriteMethodParams: w,
|
|
1400
|
+
activePagePlugin: S,
|
|
1401
|
+
confirm: A,
|
|
1402
|
+
openedDialog: y,
|
|
1403
|
+
closeDialog: E,
|
|
1404
|
+
string2Ast: ce,
|
|
1405
|
+
getMergeMeta: q,
|
|
1406
|
+
useCanvas: I,
|
|
1407
|
+
useHistory: de,
|
|
1408
|
+
useLayout: z,
|
|
1409
|
+
getOptions: ae,
|
|
1410
|
+
getMetaApi: V,
|
|
1411
|
+
META_APP: O,
|
|
1412
|
+
MagicString: ee,
|
|
1413
|
+
meta: Q,
|
|
1414
|
+
dialogVisible: te,
|
|
1415
|
+
open: G,
|
|
1416
|
+
close: se
|
|
1417
|
+
})
|
|
1418
|
+
}), E = D(() => {
|
|
1419
|
+
m(), se();
|
|
1420
|
+
}, {
|
|
1421
|
+
metaData: {
|
|
1422
|
+
id: "engine.setting.event.BindEventsDialog.closeDialog"
|
|
131
1423
|
},
|
|
132
|
-
|
|
1424
|
+
ctx: () => ({
|
|
1425
|
+
props: h,
|
|
1426
|
+
BindEventsDialogSidebar: e,
|
|
1427
|
+
BindEventsDialogContent: n,
|
|
1428
|
+
PLUGIN_NAME: t,
|
|
1429
|
+
activePlugin: o,
|
|
1430
|
+
pageState: i,
|
|
1431
|
+
getMethods: l,
|
|
1432
|
+
saveMethod: d,
|
|
1433
|
+
highlightMethod: a,
|
|
1434
|
+
state: c,
|
|
1435
|
+
selectMethod: b,
|
|
1436
|
+
bindMethod: s,
|
|
1437
|
+
resetTipError: m,
|
|
1438
|
+
getExtraParams: g,
|
|
1439
|
+
getFormatParams: v,
|
|
1440
|
+
rewriteMethodParams: w,
|
|
1441
|
+
activePagePlugin: S,
|
|
1442
|
+
confirm: A,
|
|
1443
|
+
openedDialog: y,
|
|
1444
|
+
closeDialog: E,
|
|
1445
|
+
string2Ast: ce,
|
|
1446
|
+
getMergeMeta: q,
|
|
1447
|
+
useCanvas: I,
|
|
1448
|
+
useHistory: de,
|
|
1449
|
+
useLayout: z,
|
|
1450
|
+
getOptions: ae,
|
|
1451
|
+
getMetaApi: V,
|
|
1452
|
+
META_APP: O,
|
|
1453
|
+
MagicString: ee,
|
|
1454
|
+
meta: Q,
|
|
1455
|
+
dialogVisible: te,
|
|
1456
|
+
open: G,
|
|
1457
|
+
close: se
|
|
1458
|
+
})
|
|
1459
|
+
});
|
|
1460
|
+
return {
|
|
1461
|
+
BindEventsDialogSidebar: e,
|
|
1462
|
+
BindEventsDialogContent: n,
|
|
1463
|
+
state: c,
|
|
1464
|
+
dialogVisible: te,
|
|
1465
|
+
confirm: A,
|
|
1466
|
+
closeDialog: E,
|
|
1467
|
+
openedDialog: y,
|
|
1468
|
+
selectMethod: b
|
|
133
1469
|
};
|
|
134
1470
|
}
|
|
135
|
-
},
|
|
136
|
-
function
|
|
137
|
-
const
|
|
138
|
-
return
|
|
139
|
-
visible:
|
|
1471
|
+
}, nn = { class: "bind-event-dialog-tip" }, on = { class: "bind-event-dialog-content" }, sn = { class: "bind-dialog-footer" };
|
|
1472
|
+
function rn(h, e, n, t, o, i) {
|
|
1473
|
+
const l = X("tiny-alert"), d = X("tiny-button"), a = X("tiny-dialog-box");
|
|
1474
|
+
return U(), Ce(a, {
|
|
1475
|
+
visible: t.dialogVisible,
|
|
140
1476
|
title: "事件绑定",
|
|
141
1477
|
width: "50%",
|
|
142
1478
|
"dialog-class": "bind-event-dialog",
|
|
143
1479
|
draggable: "",
|
|
144
1480
|
"append-to-body": !0,
|
|
145
|
-
onClose:
|
|
146
|
-
onOpened:
|
|
1481
|
+
onClose: t.closeDialog,
|
|
1482
|
+
onOpened: t.openedDialog
|
|
147
1483
|
}, {
|
|
148
|
-
footer:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
default:
|
|
152
|
-
|
|
1484
|
+
footer: J(() => [
|
|
1485
|
+
_("div", sn, [
|
|
1486
|
+
N(d, { onClick: t.closeDialog }, {
|
|
1487
|
+
default: J(() => e[0] || (e[0] = [
|
|
1488
|
+
Fe("取 消")
|
|
153
1489
|
])),
|
|
154
1490
|
_: 1,
|
|
155
1491
|
__: [0]
|
|
156
1492
|
}, 8, ["onClick"]),
|
|
157
|
-
|
|
1493
|
+
N(d, {
|
|
158
1494
|
type: "info",
|
|
159
|
-
onClick:
|
|
1495
|
+
onClick: t.confirm
|
|
160
1496
|
}, {
|
|
161
|
-
default:
|
|
162
|
-
|
|
1497
|
+
default: J(() => e[1] || (e[1] = [
|
|
1498
|
+
Fe("确 定")
|
|
163
1499
|
])),
|
|
164
1500
|
_: 1,
|
|
165
1501
|
__: [1]
|
|
166
1502
|
}, 8, ["onClick"])
|
|
167
1503
|
])
|
|
168
1504
|
]),
|
|
169
|
-
default:
|
|
170
|
-
|
|
171
|
-
|
|
1505
|
+
default: J(() => [
|
|
1506
|
+
_("div", nn, [
|
|
1507
|
+
N(l, {
|
|
172
1508
|
type: "info",
|
|
173
1509
|
description: "选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。",
|
|
174
1510
|
class: "header-alert",
|
|
175
1511
|
closable: !1
|
|
176
1512
|
})
|
|
177
1513
|
]),
|
|
178
|
-
|
|
179
|
-
(
|
|
180
|
-
dialogVisible:
|
|
181
|
-
eventBinding:
|
|
1514
|
+
_("div", on, [
|
|
1515
|
+
(U(), Ce(_t(t.BindEventsDialogSidebar), {
|
|
1516
|
+
dialogVisible: t.dialogVisible,
|
|
1517
|
+
eventBinding: n.eventBinding
|
|
182
1518
|
}, null, 8, ["dialogVisible", "eventBinding"])),
|
|
183
|
-
(
|
|
1519
|
+
(U(), Ce(_t(t.BindEventsDialogContent), { dialogVisible: t.dialogVisible }, null, 8, ["dialogVisible"]))
|
|
184
1520
|
])
|
|
185
1521
|
]),
|
|
186
1522
|
_: 1
|
|
187
1523
|
}, 8, ["visible", "onClose", "onOpened"]);
|
|
188
1524
|
}
|
|
189
|
-
const
|
|
1525
|
+
const ze = /* @__PURE__ */ We(tn, [["render", rn], ["__scopeId", "data-v-84897b97"]]), Lt = {
|
|
190
1526
|
onClick: {
|
|
191
1527
|
label: {
|
|
192
1528
|
zh_CN: "点击事件"
|
|
@@ -243,120 +1579,19 @@ const gn = /* @__PURE__ */ H(mn, [["render", vn], ["__scopeId", "data-v-070f73c9
|
|
|
243
1579
|
},
|
|
244
1580
|
defaultValue: ""
|
|
245
1581
|
}
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
"oncancel",
|
|
260
|
-
"oncanplay",
|
|
261
|
-
"oncanplaythrough",
|
|
262
|
-
"onchange",
|
|
263
|
-
"onclick",
|
|
264
|
-
"onclose",
|
|
265
|
-
"oncontextlost",
|
|
266
|
-
"oncontextmenu",
|
|
267
|
-
"oncontextrestored",
|
|
268
|
-
"oncuechange",
|
|
269
|
-
"ondblclick",
|
|
270
|
-
"ondrag",
|
|
271
|
-
"ondragend",
|
|
272
|
-
"ondragenter",
|
|
273
|
-
"ondragleave",
|
|
274
|
-
"ondragover",
|
|
275
|
-
"ondragstart",
|
|
276
|
-
"ondrop",
|
|
277
|
-
"ondurationchange",
|
|
278
|
-
"onemptied",
|
|
279
|
-
"onended",
|
|
280
|
-
"onerror",
|
|
281
|
-
"onfocus",
|
|
282
|
-
"onformdata",
|
|
283
|
-
"ongotpointercapture",
|
|
284
|
-
"onhashchange",
|
|
285
|
-
"oninput",
|
|
286
|
-
"oninvalid",
|
|
287
|
-
"onkeydown",
|
|
288
|
-
"onkeypress",
|
|
289
|
-
"onkeyup",
|
|
290
|
-
"onlanguagechange",
|
|
291
|
-
"onload",
|
|
292
|
-
"onloadeddata",
|
|
293
|
-
"onloadedmetadata",
|
|
294
|
-
"onloadstart",
|
|
295
|
-
"onlostpointercapture",
|
|
296
|
-
"onmessage",
|
|
297
|
-
"onmessageerror",
|
|
298
|
-
"onmousedown",
|
|
299
|
-
"onmouseenter",
|
|
300
|
-
"onmouseleave",
|
|
301
|
-
"onmousemove",
|
|
302
|
-
"onmouseout",
|
|
303
|
-
"onmouseover",
|
|
304
|
-
"onmouseup",
|
|
305
|
-
"onmousewheel",
|
|
306
|
-
"onoffline",
|
|
307
|
-
"ononline",
|
|
308
|
-
"onpagehide",
|
|
309
|
-
"onpageshow",
|
|
310
|
-
"onpause",
|
|
311
|
-
"onplay",
|
|
312
|
-
"onplaying",
|
|
313
|
-
"onpointercancel",
|
|
314
|
-
"onpointerdown",
|
|
315
|
-
"onpointerenter",
|
|
316
|
-
"onpointerleave",
|
|
317
|
-
"onpointermove",
|
|
318
|
-
"onpointerout",
|
|
319
|
-
"onpointerover",
|
|
320
|
-
"onpointerrawupdate",
|
|
321
|
-
"onpointerup",
|
|
322
|
-
"onpopstate",
|
|
323
|
-
"onprogress",
|
|
324
|
-
"onratechange",
|
|
325
|
-
"onrejectionhandled",
|
|
326
|
-
"onreset",
|
|
327
|
-
"onresize",
|
|
328
|
-
"onscroll",
|
|
329
|
-
"onsearch",
|
|
330
|
-
"onsecuritypolicyviolation",
|
|
331
|
-
"onseeked",
|
|
332
|
-
"onseeking",
|
|
333
|
-
"onselect",
|
|
334
|
-
"onselectionchange",
|
|
335
|
-
"onselectstart",
|
|
336
|
-
"onslotchange",
|
|
337
|
-
"onstalled",
|
|
338
|
-
"onstorage",
|
|
339
|
-
"onsubmit",
|
|
340
|
-
"onsuspend",
|
|
341
|
-
"ontimeupdate",
|
|
342
|
-
"ontoggle",
|
|
343
|
-
"ontransitioncancel",
|
|
344
|
-
"ontransitionend",
|
|
345
|
-
"ontransitionrun",
|
|
346
|
-
"ontransitionstart",
|
|
347
|
-
"onunhandledrejection",
|
|
348
|
-
"onunload",
|
|
349
|
-
"onvolumechange",
|
|
350
|
-
"onwaiting",
|
|
351
|
-
"onwebkitanimationend",
|
|
352
|
-
"onwebkitanimationiteration",
|
|
353
|
-
"onwebkitanimationstart",
|
|
354
|
-
"onwebkittransitionend",
|
|
355
|
-
"onwheel"
|
|
356
|
-
], bn = (f) => !!hn.map((a) => {
|
|
357
|
-
const e = a[2].toUpperCase();
|
|
358
|
-
return `${a.substring(0, 2)}${e}${a.substring(3)}`;
|
|
359
|
-
}).includes(f), yn = { class: "footer" }, En = {
|
|
1582
|
+
}, Dt = ["onabort", "onafterprint", "onanimationend", "onanimationiteration", "onanimationstart", "onappinstalled", "onauxclick", "onbeforeinstallprompt", "onbeforeprint", "onbeforeunload", "onbeforexrselect", "onblur", "oncancel", "oncanplay", "oncanplaythrough", "onchange", "onclick", "onclose", "oncontextlost", "oncontextmenu", "oncontextrestored", "oncuechange", "ondblclick", "ondrag", "ondragend", "ondragenter", "ondragleave", "ondragover", "ondragstart", "ondrop", "ondurationchange", "onemptied", "onended", "onerror", "onfocus", "onformdata", "ongotpointercapture", "onhashchange", "oninput", "oninvalid", "onkeydown", "onkeypress", "onkeyup", "onlanguagechange", "onload", "onloadeddata", "onloadedmetadata", "onloadstart", "onlostpointercapture", "onmessage", "onmessageerror", "onmousedown", "onmouseenter", "onmouseleave", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onmousewheel", "onoffline", "ononline", "onpagehide", "onpageshow", "onpause", "onplay", "onplaying", "onpointercancel", "onpointerdown", "onpointerenter", "onpointerleave", "onpointermove", "onpointerout", "onpointerover", "onpointerrawupdate", "onpointerup", "onpopstate", "onprogress", "onratechange", "onrejectionhandled", "onreset", "onresize", "onscroll", "onsearch", "onsecuritypolicyviolation", "onseeked", "onseeking", "onselect", "onselectionchange", "onselectstart", "onslotchange", "onstalled", "onstorage", "onsubmit", "onsuspend", "ontimeupdate", "ontoggle", "ontransitioncancel", "ontransitionend", "ontransitionrun", "ontransitionstart", "onunhandledrejection", "onunload", "onvolumechange", "onwaiting", "onwebkitanimationend", "onwebkitanimationiteration", "onwebkitanimationstart", "onwebkittransitionend", "onwheel"], ot = D((h) => !!Dt.map((n) => {
|
|
1583
|
+
const t = n[2].toUpperCase();
|
|
1584
|
+
return `${n.substring(0, 2)}${t}${n.substring(3)}`;
|
|
1585
|
+
}).includes(h), {
|
|
1586
|
+
metaData: {
|
|
1587
|
+
id: "engine.setting.event.commonjs-events.checkEvent"
|
|
1588
|
+
},
|
|
1589
|
+
ctx: () => ({
|
|
1590
|
+
commonEvents: Lt,
|
|
1591
|
+
allEvents: Dt,
|
|
1592
|
+
checkEvent: ot
|
|
1593
|
+
})
|
|
1594
|
+
}), ln = { class: "footer" }, an = {
|
|
360
1595
|
__name: "AddEventsDialog",
|
|
361
1596
|
props: {
|
|
362
1597
|
visible: {
|
|
@@ -369,108 +1604,157 @@ const gn = /* @__PURE__ */ H(mn, [["render", vn], ["__scopeId", "data-v-070f73c9
|
|
|
369
1604
|
}
|
|
370
1605
|
},
|
|
371
1606
|
emits: ["closeDialog", "addEvent"],
|
|
372
|
-
setup(
|
|
373
|
-
const
|
|
1607
|
+
setup(h, { emit: e }) {
|
|
1608
|
+
const n = h, t = e, o = rt({
|
|
374
1609
|
eventDescription: "",
|
|
375
1610
|
eventName: ""
|
|
376
|
-
}),
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
},
|
|
402
|
-
|
|
403
|
-
|
|
1611
|
+
}), i = Ye(null), l = D((b, s, m) => {
|
|
1612
|
+
if (n.componentEvents[o.eventName]) {
|
|
1613
|
+
m(new Error("事件名已存在"));
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
if (!ot(o.eventName)) {
|
|
1617
|
+
m(new Error("请输入正确的浏览器事件名"));
|
|
1618
|
+
return;
|
|
1619
|
+
}
|
|
1620
|
+
m();
|
|
1621
|
+
}, {
|
|
1622
|
+
metaData: {
|
|
1623
|
+
id: "engine.setting.event.AddEventsDialog.eventNameValidator"
|
|
1624
|
+
},
|
|
1625
|
+
ctx: () => ({
|
|
1626
|
+
checkEvent: ot,
|
|
1627
|
+
props: n,
|
|
1628
|
+
emits: t,
|
|
1629
|
+
formData: o,
|
|
1630
|
+
ruleForm: i,
|
|
1631
|
+
eventNameValidator: l,
|
|
1632
|
+
rules: d,
|
|
1633
|
+
closeDialog: a,
|
|
1634
|
+
addMethod: c
|
|
1635
|
+
})
|
|
1636
|
+
}), d = {
|
|
1637
|
+
eventDescription: [{
|
|
1638
|
+
required: !0,
|
|
1639
|
+
message: "必填"
|
|
1640
|
+
}],
|
|
1641
|
+
eventName: [{
|
|
1642
|
+
required: !0,
|
|
1643
|
+
message: "必填"
|
|
1644
|
+
}, {
|
|
1645
|
+
validator: l
|
|
1646
|
+
}]
|
|
1647
|
+
}, a = D(() => {
|
|
1648
|
+
t("closeDialog");
|
|
1649
|
+
}, {
|
|
1650
|
+
metaData: {
|
|
1651
|
+
id: "engine.setting.event.AddEventsDialog.closeDialog"
|
|
1652
|
+
},
|
|
1653
|
+
ctx: () => ({
|
|
1654
|
+
checkEvent: ot,
|
|
1655
|
+
props: n,
|
|
1656
|
+
emits: t,
|
|
1657
|
+
formData: o,
|
|
1658
|
+
ruleForm: i,
|
|
1659
|
+
eventNameValidator: l,
|
|
1660
|
+
rules: d,
|
|
1661
|
+
closeDialog: a,
|
|
1662
|
+
addMethod: c
|
|
1663
|
+
})
|
|
1664
|
+
}), c = D(() => {
|
|
1665
|
+
i.value && i.value.validate((b) => {
|
|
1666
|
+
if (!b)
|
|
404
1667
|
return;
|
|
405
|
-
const {
|
|
406
|
-
|
|
1668
|
+
const {
|
|
1669
|
+
eventName: s,
|
|
1670
|
+
eventDescription: m
|
|
1671
|
+
} = o;
|
|
1672
|
+
t("addEvent", {
|
|
1673
|
+
eventName: s,
|
|
1674
|
+
eventDescription: m
|
|
1675
|
+
});
|
|
407
1676
|
});
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
|
|
1677
|
+
}, {
|
|
1678
|
+
metaData: {
|
|
1679
|
+
id: "engine.setting.event.AddEventsDialog.addMethod"
|
|
1680
|
+
},
|
|
1681
|
+
ctx: () => ({
|
|
1682
|
+
checkEvent: ot,
|
|
1683
|
+
props: n,
|
|
1684
|
+
emits: t,
|
|
1685
|
+
formData: o,
|
|
1686
|
+
ruleForm: i,
|
|
1687
|
+
eventNameValidator: l,
|
|
1688
|
+
rules: d,
|
|
1689
|
+
closeDialog: a,
|
|
1690
|
+
addMethod: c
|
|
1691
|
+
})
|
|
1692
|
+
});
|
|
1693
|
+
return (b, s) => (U(), Ce(Z(It), {
|
|
1694
|
+
visible: h.visible,
|
|
411
1695
|
title: "添加新事件",
|
|
412
1696
|
width: "400px",
|
|
413
1697
|
"append-to-body": !0,
|
|
414
1698
|
"close-on-click-modal": !1,
|
|
415
|
-
onClose:
|
|
1699
|
+
onClose: Z(a)
|
|
416
1700
|
}, {
|
|
417
|
-
footer:
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
default:
|
|
421
|
-
|
|
1701
|
+
footer: J(() => [
|
|
1702
|
+
_("div", ln, [
|
|
1703
|
+
N(Z(ct), { onClick: Z(a) }, {
|
|
1704
|
+
default: J(() => s[2] || (s[2] = [
|
|
1705
|
+
Fe(" 取消")
|
|
422
1706
|
])),
|
|
423
1707
|
_: 1,
|
|
424
1708
|
__: [2]
|
|
425
|
-
}),
|
|
426
|
-
|
|
1709
|
+
}, 8, ["onClick"]),
|
|
1710
|
+
N(Z(ct), {
|
|
427
1711
|
type: "primary",
|
|
428
|
-
onClick:
|
|
1712
|
+
onClick: Z(c)
|
|
429
1713
|
}, {
|
|
430
|
-
default:
|
|
431
|
-
|
|
1714
|
+
default: J(() => s[3] || (s[3] = [
|
|
1715
|
+
Fe(" 确定")
|
|
432
1716
|
])),
|
|
433
1717
|
_: 1,
|
|
434
1718
|
__: [3]
|
|
435
|
-
})
|
|
1719
|
+
}, 8, ["onClick"])
|
|
436
1720
|
])
|
|
437
1721
|
]),
|
|
438
|
-
default:
|
|
439
|
-
|
|
1722
|
+
default: J(() => [
|
|
1723
|
+
N(Z(Mt), {
|
|
440
1724
|
ref_key: "ruleForm",
|
|
441
|
-
ref:
|
|
442
|
-
model:
|
|
443
|
-
rules:
|
|
1725
|
+
ref: i,
|
|
1726
|
+
model: o,
|
|
1727
|
+
rules: d,
|
|
444
1728
|
"label-width": "80px",
|
|
445
1729
|
"inline-message": !0,
|
|
446
1730
|
"validate-type": "text",
|
|
447
1731
|
"label-position": "left",
|
|
448
1732
|
class: "add-custom-event-form"
|
|
449
1733
|
}, {
|
|
450
|
-
default:
|
|
451
|
-
|
|
1734
|
+
default: J(() => [
|
|
1735
|
+
N(Z(xt), {
|
|
452
1736
|
label: "事件函数名",
|
|
453
1737
|
prop: "eventName",
|
|
454
1738
|
required: ""
|
|
455
1739
|
}, {
|
|
456
|
-
default:
|
|
457
|
-
|
|
458
|
-
modelValue:
|
|
459
|
-
"onUpdate:modelValue":
|
|
1740
|
+
default: J(() => [
|
|
1741
|
+
N(Z(mt), {
|
|
1742
|
+
modelValue: o.eventName,
|
|
1743
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => o.eventName = m),
|
|
460
1744
|
placeholder: "小驼峰格式,如:onDrag"
|
|
461
1745
|
}, null, 8, ["modelValue"])
|
|
462
1746
|
]),
|
|
463
1747
|
_: 1
|
|
464
1748
|
}),
|
|
465
|
-
|
|
1749
|
+
N(Z(xt), {
|
|
466
1750
|
label: "事件描述",
|
|
467
1751
|
prop: "eventDescription",
|
|
468
1752
|
required: ""
|
|
469
1753
|
}, {
|
|
470
|
-
default:
|
|
471
|
-
|
|
472
|
-
modelValue:
|
|
473
|
-
"onUpdate:modelValue":
|
|
1754
|
+
default: J(() => [
|
|
1755
|
+
N(Z(mt), {
|
|
1756
|
+
modelValue: o.eventDescription,
|
|
1757
|
+
"onUpdate:modelValue": s[1] || (s[1] = (m) => o.eventDescription = m)
|
|
474
1758
|
}, null, 8, ["modelValue"])
|
|
475
1759
|
]),
|
|
476
1760
|
_: 1
|
|
@@ -480,114 +1764,405 @@ const gn = /* @__PURE__ */ H(mn, [["render", vn], ["__scopeId", "data-v-070f73c9
|
|
|
480
1764
|
}, 8, ["model"])
|
|
481
1765
|
]),
|
|
482
1766
|
_: 1
|
|
483
|
-
}, 8, ["visible"]));
|
|
1767
|
+
}, 8, ["visible", "onClose"]));
|
|
484
1768
|
}
|
|
485
|
-
},
|
|
1769
|
+
}, Je = /* @__PURE__ */ We(an, [["__scopeId", "data-v-2ed7fac6"]]), dn = {
|
|
486
1770
|
components: {
|
|
487
|
-
BlockLinkEvent:
|
|
488
|
-
BindEventsDialog:
|
|
489
|
-
TinyPopover:
|
|
490
|
-
TinyButton:
|
|
491
|
-
IconChevronDown:
|
|
492
|
-
SvgButton:
|
|
493
|
-
AddEventsDialog:
|
|
1771
|
+
BlockLinkEvent: je,
|
|
1772
|
+
BindEventsDialog: ze,
|
|
1773
|
+
TinyPopover: Rt,
|
|
1774
|
+
TinyButton: ct,
|
|
1775
|
+
IconChevronDown: $e(),
|
|
1776
|
+
SvgButton: Ue,
|
|
1777
|
+
AddEventsDialog: Je
|
|
494
1778
|
},
|
|
495
1779
|
inheritAttrs: !1,
|
|
496
1780
|
setup() {
|
|
497
|
-
const {
|
|
1781
|
+
const {
|
|
1782
|
+
PLUGIN_NAME: h,
|
|
1783
|
+
activePlugin: e
|
|
1784
|
+
} = z(), {
|
|
1785
|
+
pageState: n
|
|
1786
|
+
} = I(), {
|
|
1787
|
+
getBlockEvents: t,
|
|
1788
|
+
getCurrentBlock: o,
|
|
1789
|
+
removeEventLink: i
|
|
1790
|
+
} = Oe(), {
|
|
1791
|
+
getMaterial: l
|
|
1792
|
+
} = Ve(), {
|
|
1793
|
+
confirm: d
|
|
1794
|
+
} = Me(), a = Te.global.locale.value, {
|
|
1795
|
+
highlightMethod: c
|
|
1796
|
+
} = V(O.Page), {
|
|
1797
|
+
commonEvents: b = {}
|
|
1798
|
+
} = q("engine.setting.event").options, s = rt({
|
|
498
1799
|
eventName: "",
|
|
499
1800
|
// 事件名称
|
|
500
1801
|
eventBinding: null,
|
|
501
1802
|
// 事件绑定的处理方法对象
|
|
502
1803
|
componentEvent: {},
|
|
503
|
-
customEvents:
|
|
1804
|
+
customEvents: b,
|
|
504
1805
|
bindActions: {},
|
|
505
1806
|
showBindEventDialog: !1
|
|
506
|
-
}),
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
1807
|
+
}), m = it(() => !!n.isBlock), g = it(() => Object.keys(s.bindActions).length === 0), v = it(() => ({
|
|
1808
|
+
...s.componentEvent,
|
|
1809
|
+
...s.customEvents
|
|
1810
|
+
}));
|
|
1811
|
+
Nt(() => {
|
|
1812
|
+
var le, ne, ve, ge, be;
|
|
1813
|
+
const k = (le = n == null ? void 0 : n.currentSchema) == null ? void 0 : le.componentName, B = l(k);
|
|
1814
|
+
s.componentEvent = ((ve = (ne = B == null ? void 0 : B.content) == null ? void 0 : ne.schema) == null ? void 0 : ve.events) || ((ge = B == null ? void 0 : B.schema) == null ? void 0 : ge.events) || {};
|
|
1815
|
+
const $ = ((be = n == null ? void 0 : n.currentSchema) == null ? void 0 : be.props) || {}, he = Object.keys($);
|
|
1816
|
+
s.bindActions = {}, Object.entries(v.value).forEach(([pe, Le]) => {
|
|
1817
|
+
var _e, W, Be;
|
|
1818
|
+
if (he.indexOf(pe) > -1) {
|
|
1819
|
+
const Ze = $[pe], {
|
|
1820
|
+
value: ut,
|
|
1821
|
+
params: f
|
|
1822
|
+
} = Ze, u = !f && ((W = (_e = ut.match(/\((.+)\)$/)) == null ? void 0 : _e[1]) == null ? void 0 : W.split(",")) || f, r = {
|
|
1823
|
+
eventName: pe,
|
|
517
1824
|
ref: "",
|
|
518
|
-
event:
|
|
519
|
-
params:
|
|
1825
|
+
event: $[pe],
|
|
1826
|
+
params: u
|
|
520
1827
|
};
|
|
521
|
-
if (
|
|
522
|
-
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
var
|
|
526
|
-
|
|
1828
|
+
if (r.event.type === "JSExpression" && (r.ref = r.event.value.replace("this.", "").replace(/\(.*\)$/, "")), n.isBlock) {
|
|
1829
|
+
r.metaEvent = Le;
|
|
1830
|
+
const p = t(o()), C = (Be = n == null ? void 0 : n.currentSchema) == null ? void 0 : Be.id;
|
|
1831
|
+
C && p && Object.entries(p).forEach(([P, L]) => {
|
|
1832
|
+
var M, j;
|
|
1833
|
+
C === ((M = L == null ? void 0 : L.linked) == null ? void 0 : M.id) && pe === ((j = L == null ? void 0 : L.linked) == null ? void 0 : j.event) && (r.linked = L.linked, r.linkedEventName = P);
|
|
527
1834
|
});
|
|
528
1835
|
}
|
|
529
|
-
|
|
1836
|
+
s.bindActions[pe] = r;
|
|
530
1837
|
}
|
|
531
1838
|
});
|
|
532
1839
|
});
|
|
533
|
-
const
|
|
534
|
-
|
|
535
|
-
},
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
};
|
|
539
|
-
return {
|
|
540
|
-
state: n,
|
|
541
|
-
isBlock: l,
|
|
542
|
-
isEmpty: i,
|
|
543
|
-
delEvent: (p) => {
|
|
544
|
-
c({
|
|
545
|
-
title: "提示",
|
|
546
|
-
message: `您确定要删除事件 ${p.eventName} 吗?`,
|
|
547
|
-
exec() {
|
|
548
|
-
a.isBlock && _({ linked: p.linked }), V(p);
|
|
549
|
-
}
|
|
550
|
-
});
|
|
1840
|
+
const w = D((k, B) => {
|
|
1841
|
+
B && s.bindActions[k.eventName] || (s.eventBinding = k, G());
|
|
1842
|
+
}, {
|
|
1843
|
+
metaData: {
|
|
1844
|
+
id: "engine.setting.event.BindEvents.openActionDialog"
|
|
551
1845
|
},
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
1846
|
+
ctx: () => ({
|
|
1847
|
+
PLUGIN_NAME: h,
|
|
1848
|
+
activePlugin: e,
|
|
1849
|
+
pageState: n,
|
|
1850
|
+
getBlockEvents: t,
|
|
1851
|
+
getCurrentBlock: o,
|
|
1852
|
+
removeEventLink: i,
|
|
1853
|
+
getMaterial: l,
|
|
1854
|
+
confirm: d,
|
|
1855
|
+
locale: a,
|
|
1856
|
+
highlightMethod: c,
|
|
1857
|
+
commonEvents: b,
|
|
1858
|
+
state: s,
|
|
1859
|
+
isBlock: m,
|
|
1860
|
+
isEmpty: g,
|
|
1861
|
+
renderEventList: v,
|
|
1862
|
+
openActionDialog: w,
|
|
1863
|
+
deleteAction: S,
|
|
1864
|
+
delEvent: A,
|
|
1865
|
+
openCodePanel: y,
|
|
1866
|
+
handleToggleAddEventDialog: E,
|
|
1867
|
+
handleAddEvent: x,
|
|
1868
|
+
useModal: Me,
|
|
1869
|
+
getMergeMeta: q,
|
|
1870
|
+
useCanvas: I,
|
|
1871
|
+
useLayout: z,
|
|
1872
|
+
useBlock: Oe,
|
|
1873
|
+
useMaterial: Ve,
|
|
1874
|
+
getMetaApi: V,
|
|
1875
|
+
META_APP: O,
|
|
1876
|
+
useMessage: Re,
|
|
1877
|
+
i18n: Te,
|
|
1878
|
+
BlockLinkEvent: je,
|
|
1879
|
+
SvgButton: Ue,
|
|
1880
|
+
iconChevronDown: $e,
|
|
1881
|
+
BindEventsDialog: ze,
|
|
1882
|
+
openDialog: G,
|
|
1883
|
+
AddEventsDialog: Je
|
|
1884
|
+
})
|
|
1885
|
+
}), S = D((k) => {
|
|
1886
|
+
var $;
|
|
1887
|
+
Object.keys((($ = n == null ? void 0 : n.currentSchema) == null ? void 0 : $.props) || {}).indexOf(k.eventName) > -1 && (delete n.currentSchema.props[k.eventName], Re().publish({
|
|
1888
|
+
topic: "schemaChange",
|
|
1889
|
+
data: {
|
|
1890
|
+
props: n.currentSchema.props
|
|
1891
|
+
}
|
|
1892
|
+
}));
|
|
1893
|
+
}, {
|
|
1894
|
+
metaData: {
|
|
1895
|
+
id: "engine.setting.event.BindEvents.deleteAction"
|
|
556
1896
|
},
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
1897
|
+
ctx: () => ({
|
|
1898
|
+
PLUGIN_NAME: h,
|
|
1899
|
+
activePlugin: e,
|
|
1900
|
+
pageState: n,
|
|
1901
|
+
getBlockEvents: t,
|
|
1902
|
+
getCurrentBlock: o,
|
|
1903
|
+
removeEventLink: i,
|
|
1904
|
+
getMaterial: l,
|
|
1905
|
+
confirm: d,
|
|
1906
|
+
locale: a,
|
|
1907
|
+
highlightMethod: c,
|
|
1908
|
+
commonEvents: b,
|
|
1909
|
+
state: s,
|
|
1910
|
+
isBlock: m,
|
|
1911
|
+
isEmpty: g,
|
|
1912
|
+
renderEventList: v,
|
|
1913
|
+
openActionDialog: w,
|
|
1914
|
+
deleteAction: S,
|
|
1915
|
+
delEvent: A,
|
|
1916
|
+
openCodePanel: y,
|
|
1917
|
+
handleToggleAddEventDialog: E,
|
|
1918
|
+
handleAddEvent: x,
|
|
1919
|
+
useModal: Me,
|
|
1920
|
+
getMergeMeta: q,
|
|
1921
|
+
useCanvas: I,
|
|
1922
|
+
useLayout: z,
|
|
1923
|
+
useBlock: Oe,
|
|
1924
|
+
useMaterial: Ve,
|
|
1925
|
+
getMetaApi: V,
|
|
1926
|
+
META_APP: O,
|
|
1927
|
+
useMessage: Re,
|
|
1928
|
+
i18n: Te,
|
|
1929
|
+
BlockLinkEvent: je,
|
|
1930
|
+
SvgButton: Ue,
|
|
1931
|
+
iconChevronDown: $e,
|
|
1932
|
+
BindEventsDialog: ze,
|
|
1933
|
+
openDialog: G,
|
|
1934
|
+
AddEventsDialog: Je
|
|
1935
|
+
})
|
|
1936
|
+
}), A = D((k) => {
|
|
1937
|
+
d({
|
|
1938
|
+
title: "提示",
|
|
1939
|
+
message: `您确定要删除事件 ${k.eventName} 吗?`,
|
|
1940
|
+
exec() {
|
|
1941
|
+
n.isBlock && i({
|
|
1942
|
+
linked: k.linked
|
|
1943
|
+
}), S(k);
|
|
1944
|
+
}
|
|
1945
|
+
});
|
|
1946
|
+
}, {
|
|
1947
|
+
metaData: {
|
|
1948
|
+
id: "engine.setting.event.BindEvents.delEvent"
|
|
576
1949
|
},
|
|
577
|
-
|
|
578
|
-
|
|
1950
|
+
ctx: () => ({
|
|
1951
|
+
PLUGIN_NAME: h,
|
|
1952
|
+
activePlugin: e,
|
|
1953
|
+
pageState: n,
|
|
1954
|
+
getBlockEvents: t,
|
|
1955
|
+
getCurrentBlock: o,
|
|
1956
|
+
removeEventLink: i,
|
|
1957
|
+
getMaterial: l,
|
|
1958
|
+
confirm: d,
|
|
1959
|
+
locale: a,
|
|
1960
|
+
highlightMethod: c,
|
|
1961
|
+
commonEvents: b,
|
|
1962
|
+
state: s,
|
|
1963
|
+
isBlock: m,
|
|
1964
|
+
isEmpty: g,
|
|
1965
|
+
renderEventList: v,
|
|
1966
|
+
openActionDialog: w,
|
|
1967
|
+
deleteAction: S,
|
|
1968
|
+
delEvent: A,
|
|
1969
|
+
openCodePanel: y,
|
|
1970
|
+
handleToggleAddEventDialog: E,
|
|
1971
|
+
handleAddEvent: x,
|
|
1972
|
+
useModal: Me,
|
|
1973
|
+
getMergeMeta: q,
|
|
1974
|
+
useCanvas: I,
|
|
1975
|
+
useLayout: z,
|
|
1976
|
+
useBlock: Oe,
|
|
1977
|
+
useMaterial: Ve,
|
|
1978
|
+
getMetaApi: V,
|
|
1979
|
+
META_APP: O,
|
|
1980
|
+
useMessage: Re,
|
|
1981
|
+
i18n: Te,
|
|
1982
|
+
BlockLinkEvent: je,
|
|
1983
|
+
SvgButton: Ue,
|
|
1984
|
+
iconChevronDown: $e,
|
|
1985
|
+
BindEventsDialog: ze,
|
|
1986
|
+
openDialog: G,
|
|
1987
|
+
AddEventsDialog: Je
|
|
1988
|
+
})
|
|
1989
|
+
}), y = D((k) => {
|
|
1990
|
+
k && e(h.Page).then(() => {
|
|
1991
|
+
c && c(k.ref);
|
|
1992
|
+
});
|
|
1993
|
+
}, {
|
|
1994
|
+
metaData: {
|
|
1995
|
+
id: "engine.setting.event.BindEvents.openCodePanel"
|
|
1996
|
+
},
|
|
1997
|
+
ctx: () => ({
|
|
1998
|
+
PLUGIN_NAME: h,
|
|
1999
|
+
activePlugin: e,
|
|
2000
|
+
pageState: n,
|
|
2001
|
+
getBlockEvents: t,
|
|
2002
|
+
getCurrentBlock: o,
|
|
2003
|
+
removeEventLink: i,
|
|
2004
|
+
getMaterial: l,
|
|
2005
|
+
confirm: d,
|
|
2006
|
+
locale: a,
|
|
2007
|
+
highlightMethod: c,
|
|
2008
|
+
commonEvents: b,
|
|
2009
|
+
state: s,
|
|
2010
|
+
isBlock: m,
|
|
2011
|
+
isEmpty: g,
|
|
2012
|
+
renderEventList: v,
|
|
2013
|
+
openActionDialog: w,
|
|
2014
|
+
deleteAction: S,
|
|
2015
|
+
delEvent: A,
|
|
2016
|
+
openCodePanel: y,
|
|
2017
|
+
handleToggleAddEventDialog: E,
|
|
2018
|
+
handleAddEvent: x,
|
|
2019
|
+
useModal: Me,
|
|
2020
|
+
getMergeMeta: q,
|
|
2021
|
+
useCanvas: I,
|
|
2022
|
+
useLayout: z,
|
|
2023
|
+
useBlock: Oe,
|
|
2024
|
+
useMaterial: Ve,
|
|
2025
|
+
getMetaApi: V,
|
|
2026
|
+
META_APP: O,
|
|
2027
|
+
useMessage: Re,
|
|
2028
|
+
i18n: Te,
|
|
2029
|
+
BlockLinkEvent: je,
|
|
2030
|
+
SvgButton: Ue,
|
|
2031
|
+
iconChevronDown: $e,
|
|
2032
|
+
BindEventsDialog: ze,
|
|
2033
|
+
openDialog: G,
|
|
2034
|
+
AddEventsDialog: Je
|
|
2035
|
+
})
|
|
2036
|
+
}), E = D((k) => {
|
|
2037
|
+
s.showBindEventDialog = k;
|
|
2038
|
+
}, {
|
|
2039
|
+
metaData: {
|
|
2040
|
+
id: "engine.setting.event.BindEvents.handleToggleAddEventDialog"
|
|
579
2041
|
},
|
|
580
|
-
|
|
581
|
-
|
|
2042
|
+
ctx: () => ({
|
|
2043
|
+
PLUGIN_NAME: h,
|
|
2044
|
+
activePlugin: e,
|
|
2045
|
+
pageState: n,
|
|
2046
|
+
getBlockEvents: t,
|
|
2047
|
+
getCurrentBlock: o,
|
|
2048
|
+
removeEventLink: i,
|
|
2049
|
+
getMaterial: l,
|
|
2050
|
+
confirm: d,
|
|
2051
|
+
locale: a,
|
|
2052
|
+
highlightMethod: c,
|
|
2053
|
+
commonEvents: b,
|
|
2054
|
+
state: s,
|
|
2055
|
+
isBlock: m,
|
|
2056
|
+
isEmpty: g,
|
|
2057
|
+
renderEventList: v,
|
|
2058
|
+
openActionDialog: w,
|
|
2059
|
+
deleteAction: S,
|
|
2060
|
+
delEvent: A,
|
|
2061
|
+
openCodePanel: y,
|
|
2062
|
+
handleToggleAddEventDialog: E,
|
|
2063
|
+
handleAddEvent: x,
|
|
2064
|
+
useModal: Me,
|
|
2065
|
+
getMergeMeta: q,
|
|
2066
|
+
useCanvas: I,
|
|
2067
|
+
useLayout: z,
|
|
2068
|
+
useBlock: Oe,
|
|
2069
|
+
useMaterial: Ve,
|
|
2070
|
+
getMetaApi: V,
|
|
2071
|
+
META_APP: O,
|
|
2072
|
+
useMessage: Re,
|
|
2073
|
+
i18n: Te,
|
|
2074
|
+
BlockLinkEvent: je,
|
|
2075
|
+
SvgButton: Ue,
|
|
2076
|
+
iconChevronDown: $e,
|
|
2077
|
+
BindEventsDialog: ze,
|
|
2078
|
+
openDialog: G,
|
|
2079
|
+
AddEventsDialog: Je
|
|
2080
|
+
})
|
|
2081
|
+
}), x = D((k) => {
|
|
2082
|
+
const {
|
|
2083
|
+
eventName: B,
|
|
2084
|
+
eventDescription: $
|
|
2085
|
+
} = k;
|
|
2086
|
+
Object.assign(s.customEvents, {
|
|
2087
|
+
[B]: {
|
|
2088
|
+
label: {
|
|
2089
|
+
zh_CN: $
|
|
2090
|
+
},
|
|
2091
|
+
description: {
|
|
2092
|
+
zh_CN: `${$}的回调函数`
|
|
2093
|
+
},
|
|
2094
|
+
type: "event",
|
|
2095
|
+
functionInfo: {
|
|
2096
|
+
params: [],
|
|
2097
|
+
returns: {}
|
|
2098
|
+
},
|
|
2099
|
+
defaultValue: ""
|
|
2100
|
+
}
|
|
2101
|
+
}), s.showBindEventDialog = !1;
|
|
2102
|
+
}, {
|
|
2103
|
+
metaData: {
|
|
2104
|
+
id: "engine.setting.event.BindEvents.handleAddEvent"
|
|
2105
|
+
},
|
|
2106
|
+
ctx: () => ({
|
|
2107
|
+
PLUGIN_NAME: h,
|
|
2108
|
+
activePlugin: e,
|
|
2109
|
+
pageState: n,
|
|
2110
|
+
getBlockEvents: t,
|
|
2111
|
+
getCurrentBlock: o,
|
|
2112
|
+
removeEventLink: i,
|
|
2113
|
+
getMaterial: l,
|
|
2114
|
+
confirm: d,
|
|
2115
|
+
locale: a,
|
|
2116
|
+
highlightMethod: c,
|
|
2117
|
+
commonEvents: b,
|
|
2118
|
+
state: s,
|
|
2119
|
+
isBlock: m,
|
|
2120
|
+
isEmpty: g,
|
|
2121
|
+
renderEventList: v,
|
|
2122
|
+
openActionDialog: w,
|
|
2123
|
+
deleteAction: S,
|
|
2124
|
+
delEvent: A,
|
|
2125
|
+
openCodePanel: y,
|
|
2126
|
+
handleToggleAddEventDialog: E,
|
|
2127
|
+
handleAddEvent: x,
|
|
2128
|
+
useModal: Me,
|
|
2129
|
+
getMergeMeta: q,
|
|
2130
|
+
useCanvas: I,
|
|
2131
|
+
useLayout: z,
|
|
2132
|
+
useBlock: Oe,
|
|
2133
|
+
useMaterial: Ve,
|
|
2134
|
+
getMetaApi: V,
|
|
2135
|
+
META_APP: O,
|
|
2136
|
+
useMessage: Re,
|
|
2137
|
+
i18n: Te,
|
|
2138
|
+
BlockLinkEvent: je,
|
|
2139
|
+
SvgButton: Ue,
|
|
2140
|
+
iconChevronDown: $e,
|
|
2141
|
+
BindEventsDialog: ze,
|
|
2142
|
+
openDialog: G,
|
|
2143
|
+
AddEventsDialog: Je
|
|
2144
|
+
})
|
|
2145
|
+
});
|
|
2146
|
+
return {
|
|
2147
|
+
state: s,
|
|
2148
|
+
isBlock: m,
|
|
2149
|
+
isEmpty: g,
|
|
2150
|
+
delEvent: A,
|
|
2151
|
+
openCodePanel: y,
|
|
2152
|
+
openActionDialog: w,
|
|
2153
|
+
handleAddEvent: x,
|
|
2154
|
+
handleToggleAddEventDialog: E,
|
|
2155
|
+
renderEventList: v,
|
|
2156
|
+
locale: a
|
|
582
2157
|
};
|
|
583
2158
|
}
|
|
584
|
-
},
|
|
585
|
-
function
|
|
586
|
-
const
|
|
587
|
-
return
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
2159
|
+
}, cn = { class: "bind-action-list" }, hn = { class: "popover-head" }, un = { class: "bind-event-list" }, fn = ["onClick"], gn = { class: "bind-actions" }, pn = { class: "action-item bind-action-item" }, mn = ["onClick"], vn = { class: "event-bind" }, bn = { class: "action-buttons" }, _n = { class: "empty-action" }, En = { class: "icon" };
|
|
2160
|
+
function yn(h, e, n, t, o, i) {
|
|
2161
|
+
const l = X("icon-chevron-down"), d = X("tiny-button"), a = X("tiny-popover"), c = X("svg-icon"), b = X("block-link-event"), s = X("svg-button"), m = X("bind-events-dialog"), g = X("add-events-dialog");
|
|
2162
|
+
return U(), re(at, null, [
|
|
2163
|
+
_("div", cn, [
|
|
2164
|
+
_("div", hn, [
|
|
2165
|
+
N(a, {
|
|
591
2166
|
popperClass: "option-popper setting-advanced-bind-event-list",
|
|
592
2167
|
placement: "bottom-start",
|
|
593
2168
|
trigger: "hover",
|
|
@@ -595,321 +2170,580 @@ function On(f, o, a, e, r, _) {
|
|
|
595
2170
|
width: "256",
|
|
596
2171
|
"visible-arrow": !1
|
|
597
2172
|
}, {
|
|
598
|
-
reference:
|
|
599
|
-
|
|
600
|
-
default:
|
|
601
|
-
|
|
602
|
-
|
|
2173
|
+
reference: J(() => [
|
|
2174
|
+
N(d, { class: "bind-event-btn" }, {
|
|
2175
|
+
default: J(() => [
|
|
2176
|
+
e[2] || (e[2] = _("span", null, "绑定事件", -1)),
|
|
2177
|
+
N(l, { class: "icon-chevron-down bind-event-btn-icon" })
|
|
603
2178
|
]),
|
|
604
2179
|
_: 1,
|
|
605
2180
|
__: [2]
|
|
606
2181
|
})
|
|
607
2182
|
]),
|
|
608
|
-
default:
|
|
609
|
-
|
|
610
|
-
(
|
|
611
|
-
var
|
|
612
|
-
return
|
|
613
|
-
key:
|
|
614
|
-
class:
|
|
615
|
-
onClick: (
|
|
2183
|
+
default: J(() => [
|
|
2184
|
+
_("ul", un, [
|
|
2185
|
+
(U(!0), re(at, null, pt(t.renderEventList, (v, w) => {
|
|
2186
|
+
var S;
|
|
2187
|
+
return U(), re("li", {
|
|
2188
|
+
key: w,
|
|
2189
|
+
class: He(["bind-event-list-item", { "bind-event-list-item-notallow": t.state.bindActions[w] }]),
|
|
2190
|
+
onClick: (A) => t.openActionDialog({ eventName: w }, !0)
|
|
616
2191
|
}, [
|
|
617
|
-
|
|
618
|
-
], 10,
|
|
2192
|
+
_("div", null, me(w) + " | " + me(((S = v == null ? void 0 : v.label) == null ? void 0 : S[t.locale]) || w), 1)
|
|
2193
|
+
], 10, fn);
|
|
619
2194
|
}), 128))
|
|
620
2195
|
])
|
|
621
2196
|
]),
|
|
622
2197
|
_: 1
|
|
623
2198
|
}),
|
|
624
|
-
|
|
2199
|
+
N(d, {
|
|
625
2200
|
class: "title add-custom-event-button bind-action-button-item",
|
|
626
|
-
onClick:
|
|
2201
|
+
onClick: e[0] || (e[0] = (v) => t.handleToggleAddEventDialog(!0))
|
|
627
2202
|
}, {
|
|
628
|
-
default:
|
|
629
|
-
|
|
2203
|
+
default: J(() => [
|
|
2204
|
+
N(c, {
|
|
630
2205
|
name: "add",
|
|
631
2206
|
class: "custom-event-button-icon"
|
|
632
2207
|
}),
|
|
633
|
-
|
|
2208
|
+
e[3] || (e[3] = _("span", { class: "custom-event-button-text" }, "添加新事件", -1))
|
|
634
2209
|
]),
|
|
635
2210
|
_: 1,
|
|
636
2211
|
__: [3]
|
|
637
2212
|
})
|
|
638
2213
|
]),
|
|
639
|
-
|
|
640
|
-
(
|
|
641
|
-
var
|
|
642
|
-
return
|
|
643
|
-
key:
|
|
2214
|
+
Et(_("ul", gn, [
|
|
2215
|
+
(U(!0), re(at, null, pt(t.state.bindActions, (v) => {
|
|
2216
|
+
var w, S;
|
|
2217
|
+
return U(), re("li", {
|
|
2218
|
+
key: v.eventName
|
|
644
2219
|
}, [
|
|
645
|
-
|
|
646
|
-
|
|
2220
|
+
_("div", pn, [
|
|
2221
|
+
_("div", {
|
|
647
2222
|
class: "binding-name",
|
|
648
|
-
onClick: (
|
|
2223
|
+
onClick: (A) => t.openActionDialog(v)
|
|
649
2224
|
}, [
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
2225
|
+
_("div", null, [
|
|
2226
|
+
Fe(me(v.eventName), 1),
|
|
2227
|
+
_("span", null, me((S = (w = t.renderEventList[v.eventName]) == null ? void 0 : w.label) == null ? void 0 : S[t.locale]), 1)
|
|
653
2228
|
]),
|
|
654
|
-
|
|
655
|
-
class:
|
|
656
|
-
},
|
|
657
|
-
|
|
658
|
-
], 8,
|
|
659
|
-
|
|
660
|
-
|
|
2229
|
+
_("div", {
|
|
2230
|
+
class: He({ linked: v.linked })
|
|
2231
|
+
}, me(v.linkedEventName), 3),
|
|
2232
|
+
_("span", vn, me(v.ref), 1)
|
|
2233
|
+
], 8, mn),
|
|
2234
|
+
_("div", bn, [
|
|
2235
|
+
t.isBlock ? (U(), Ce(b, {
|
|
661
2236
|
key: 0,
|
|
662
|
-
data:
|
|
663
|
-
}, null, 8, ["data"])) :
|
|
664
|
-
|
|
2237
|
+
data: v
|
|
2238
|
+
}, null, 8, ["data"])) : dt("", !0),
|
|
2239
|
+
N(s, {
|
|
665
2240
|
name: "plugin-icon-page-schema",
|
|
666
2241
|
tips: "定位到代码",
|
|
667
2242
|
placement: "top",
|
|
668
2243
|
hoverBgColor: !1,
|
|
669
|
-
onClick: (
|
|
2244
|
+
onClick: (A) => t.openCodePanel(v)
|
|
670
2245
|
}, null, 8, ["onClick"]),
|
|
671
|
-
|
|
2246
|
+
N(s, {
|
|
672
2247
|
name: "setting",
|
|
673
2248
|
hoverBgColor: !1,
|
|
674
|
-
onClick: (
|
|
2249
|
+
onClick: (A) => t.openActionDialog(v, !1)
|
|
675
2250
|
}, null, 8, ["onClick"]),
|
|
676
|
-
|
|
2251
|
+
N(s, {
|
|
677
2252
|
name: "delete",
|
|
678
2253
|
hoverBgColor: !1,
|
|
679
|
-
onClick: (
|
|
2254
|
+
onClick: (A) => t.delEvent(v)
|
|
680
2255
|
}, null, 8, ["onClick"])
|
|
681
2256
|
])
|
|
682
2257
|
])
|
|
683
2258
|
]);
|
|
684
2259
|
}), 128))
|
|
685
2260
|
], 512), [
|
|
686
|
-
[
|
|
2261
|
+
[yt, !t.isEmpty]
|
|
687
2262
|
]),
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
2263
|
+
Et(_("div", _n, [
|
|
2264
|
+
_("div", En, [
|
|
2265
|
+
N(c, {
|
|
691
2266
|
name: "empty-action",
|
|
692
2267
|
class: "empty-action-icon"
|
|
693
2268
|
})
|
|
694
2269
|
]),
|
|
695
|
-
|
|
2270
|
+
e[4] || (e[4] = _("div", { class: "center" }, "支持添加原生DOM事件,然后点击 绑定事件 为画布所选元素增加事件", -1))
|
|
696
2271
|
], 512), [
|
|
697
|
-
[
|
|
2272
|
+
[yt, t.isEmpty]
|
|
698
2273
|
])
|
|
699
2274
|
]),
|
|
700
|
-
|
|
701
|
-
eventBinding:
|
|
2275
|
+
N(m, {
|
|
2276
|
+
eventBinding: t.state.eventBinding
|
|
702
2277
|
}, null, 8, ["eventBinding"]),
|
|
703
|
-
|
|
704
|
-
visible:
|
|
705
|
-
componentEvents:
|
|
706
|
-
onCloseDialog:
|
|
707
|
-
onAddEvent:
|
|
2278
|
+
N(g, {
|
|
2279
|
+
visible: t.state.showBindEventDialog,
|
|
2280
|
+
componentEvents: t.renderEventList,
|
|
2281
|
+
onCloseDialog: e[1] || (e[1] = (v) => t.handleToggleAddEventDialog(!1)),
|
|
2282
|
+
onAddEvent: t.handleAddEvent
|
|
708
2283
|
}, null, 8, ["visible", "componentEvents", "onAddEvent"])
|
|
709
2284
|
], 64);
|
|
710
2285
|
}
|
|
711
|
-
const
|
|
2286
|
+
const Cn = /* @__PURE__ */ We(dn, [["render", yn], ["__scopeId", "data-v-64f96b67"]]), {
|
|
2287
|
+
DEFAULT_LOOP_NAME: ie
|
|
2288
|
+
} = Ae, {
|
|
2289
|
+
string2Obj: Se
|
|
2290
|
+
} = Ie, xn = {
|
|
712
2291
|
components: {
|
|
713
|
-
SwitchConfigurator:
|
|
714
|
-
TinyTooltip:
|
|
715
|
-
VariableConfigurator:
|
|
716
|
-
InputConfigurator:
|
|
717
|
-
CodeConfigurator:
|
|
2292
|
+
SwitchConfigurator: De,
|
|
2293
|
+
TinyTooltip: Tt,
|
|
2294
|
+
VariableConfigurator: ke,
|
|
2295
|
+
InputConfigurator: we,
|
|
2296
|
+
CodeConfigurator: xe
|
|
718
2297
|
},
|
|
719
2298
|
inheritAttrs: !1,
|
|
720
2299
|
setup() {
|
|
721
|
-
const {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
2300
|
+
const {
|
|
2301
|
+
pageState: h
|
|
2302
|
+
} = I(), e = Ye(!1), n = it(() => {
|
|
2303
|
+
var s;
|
|
2304
|
+
return ((s = e.value) == null ? void 0 : s.type) === fe.JSEXPRESSION;
|
|
2305
|
+
}), t = D(() => {
|
|
2306
|
+
var s, m;
|
|
2307
|
+
return ((m = (s = oe().getSchema()) == null ? void 0 : s.loopArgs) == null ? void 0 : m[1]) || ie.INDEX;
|
|
2308
|
+
}, {
|
|
2309
|
+
metaData: {
|
|
2310
|
+
id: "engine.setting.event.AdvanceConfig.getIndexName"
|
|
2311
|
+
},
|
|
2312
|
+
ctx: () => ({
|
|
2313
|
+
pageState: h,
|
|
2314
|
+
condition: e,
|
|
2315
|
+
isBind: n,
|
|
2316
|
+
getIndexName: t,
|
|
2317
|
+
state: o,
|
|
2318
|
+
setLoopKey: i,
|
|
2319
|
+
openEditor: l,
|
|
2320
|
+
setConfig: d,
|
|
2321
|
+
setLoopIndex: a,
|
|
2322
|
+
setLoop: c,
|
|
2323
|
+
setLoopItem: b,
|
|
2324
|
+
CodeConfigurator: xe,
|
|
2325
|
+
InputConfigurator: we,
|
|
2326
|
+
SwitchConfigurator: De,
|
|
2327
|
+
VariableConfigurator: ke,
|
|
2328
|
+
useProperties: oe,
|
|
2329
|
+
useCanvas: I,
|
|
2330
|
+
PROP_DATA_TYPE: fe,
|
|
2331
|
+
constants: Ae,
|
|
2332
|
+
utils: Ie,
|
|
2333
|
+
DEFAULT_LOOP_NAME: ie,
|
|
2334
|
+
string2Obj: Se
|
|
2335
|
+
})
|
|
2336
|
+
}), o = rt({
|
|
728
2337
|
loopData: {
|
|
729
|
-
type:
|
|
2338
|
+
type: fe.JSEXPRESSION,
|
|
730
2339
|
value: "[]"
|
|
731
2340
|
},
|
|
732
2341
|
loopItem: "item",
|
|
733
2342
|
loopIndex: "index",
|
|
734
|
-
isLoop:
|
|
735
|
-
var
|
|
736
|
-
return ((
|
|
2343
|
+
isLoop: it(() => {
|
|
2344
|
+
var s;
|
|
2345
|
+
return ((s = o.loopData) == null ? void 0 : s.type) === fe.JSEXPRESSION;
|
|
737
2346
|
}),
|
|
738
2347
|
loopKey: "",
|
|
739
2348
|
shouldUpdate: !1
|
|
740
2349
|
});
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
([
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
if (!
|
|
2350
|
+
Ct(() => [h == null ? void 0 : h.currentSchema, o.shouldUpdate], ([s]) => {
|
|
2351
|
+
var m, g, v, w;
|
|
2352
|
+
e.value = (s == null ? void 0 : s.condition) === void 0 ? !0 : s == null ? void 0 : s.condition, o.loopData = s == null ? void 0 : s.loop, o.loopItem = ((m = s == null ? void 0 : s.loopArgs) == null ? void 0 : m[0]) || "", o.loopIndex = ((g = s == null ? void 0 : s.loopArgs) == null ? void 0 : g[1]) || "", o.loopKey = ((w = (v = s == null ? void 0 : s.props) == null ? void 0 : v.key) == null ? void 0 : w.value) || "";
|
|
2353
|
+
});
|
|
2354
|
+
const i = D((s = "") => {
|
|
2355
|
+
var A;
|
|
2356
|
+
s = s.replace(/\s*/g, "");
|
|
2357
|
+
const {
|
|
2358
|
+
getSchema: m,
|
|
2359
|
+
setProp: g
|
|
2360
|
+
} = oe(), v = m();
|
|
2361
|
+
if (!v)
|
|
753
2362
|
return;
|
|
754
|
-
const
|
|
755
|
-
let
|
|
756
|
-
|
|
757
|
-
type:
|
|
758
|
-
value:
|
|
759
|
-
}),
|
|
760
|
-
type:
|
|
761
|
-
value:
|
|
762
|
-
} :
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
2363
|
+
const w = Number(s).toString() !== "NaN";
|
|
2364
|
+
let S = (A = v.props) == null ? void 0 : A.key;
|
|
2365
|
+
s && !w && (S = {
|
|
2366
|
+
type: fe.JSEXPRESSION,
|
|
2367
|
+
value: s
|
|
2368
|
+
}), s || (o.isLoop ? S = {
|
|
2369
|
+
type: fe.JSEXPRESSION,
|
|
2370
|
+
value: t()
|
|
2371
|
+
} : S = ""), g("key", S);
|
|
2372
|
+
}, {
|
|
2373
|
+
metaData: {
|
|
2374
|
+
id: "engine.setting.event.AdvanceConfig.setLoopKey"
|
|
2375
|
+
},
|
|
2376
|
+
ctx: () => ({
|
|
2377
|
+
pageState: h,
|
|
2378
|
+
condition: e,
|
|
2379
|
+
isBind: n,
|
|
2380
|
+
getIndexName: t,
|
|
2381
|
+
state: o,
|
|
2382
|
+
setLoopKey: i,
|
|
2383
|
+
openEditor: l,
|
|
2384
|
+
setConfig: d,
|
|
2385
|
+
setLoopIndex: a,
|
|
2386
|
+
setLoop: c,
|
|
2387
|
+
setLoopItem: b,
|
|
2388
|
+
CodeConfigurator: xe,
|
|
2389
|
+
InputConfigurator: we,
|
|
2390
|
+
SwitchConfigurator: De,
|
|
2391
|
+
VariableConfigurator: ke,
|
|
2392
|
+
useProperties: oe,
|
|
2393
|
+
useCanvas: I,
|
|
2394
|
+
PROP_DATA_TYPE: fe,
|
|
2395
|
+
constants: Ae,
|
|
2396
|
+
utils: Ie,
|
|
2397
|
+
DEFAULT_LOOP_NAME: ie,
|
|
2398
|
+
string2Obj: Se
|
|
2399
|
+
})
|
|
2400
|
+
});
|
|
2401
|
+
Ct([() => o.isLoop, () => o.loopIndex], () => {
|
|
2402
|
+
!o.loopKey && o.isLoop && i(t()), o.isLoop || i("");
|
|
766
2403
|
});
|
|
767
|
-
const
|
|
768
|
-
var
|
|
769
|
-
|
|
770
|
-
},
|
|
771
|
-
|
|
772
|
-
|
|
2404
|
+
const l = D(() => {
|
|
2405
|
+
var s;
|
|
2406
|
+
o.loopData = (s = oe().getSchema()) == null ? void 0 : s.loop;
|
|
2407
|
+
}, {
|
|
2408
|
+
metaData: {
|
|
2409
|
+
id: "engine.setting.event.AdvanceConfig.openEditor"
|
|
2410
|
+
},
|
|
2411
|
+
ctx: () => ({
|
|
2412
|
+
pageState: h,
|
|
2413
|
+
condition: e,
|
|
2414
|
+
isBind: n,
|
|
2415
|
+
getIndexName: t,
|
|
2416
|
+
state: o,
|
|
2417
|
+
setLoopKey: i,
|
|
2418
|
+
openEditor: l,
|
|
2419
|
+
setConfig: d,
|
|
2420
|
+
setLoopIndex: a,
|
|
2421
|
+
setLoop: c,
|
|
2422
|
+
setLoopItem: b,
|
|
2423
|
+
CodeConfigurator: xe,
|
|
2424
|
+
InputConfigurator: we,
|
|
2425
|
+
SwitchConfigurator: De,
|
|
2426
|
+
VariableConfigurator: ke,
|
|
2427
|
+
useProperties: oe,
|
|
2428
|
+
useCanvas: I,
|
|
2429
|
+
PROP_DATA_TYPE: fe,
|
|
2430
|
+
constants: Ae,
|
|
2431
|
+
utils: Ie,
|
|
2432
|
+
DEFAULT_LOOP_NAME: ie,
|
|
2433
|
+
string2Obj: Se
|
|
2434
|
+
})
|
|
2435
|
+
}), d = D((s) => {
|
|
2436
|
+
const {
|
|
2437
|
+
getSchema: m
|
|
2438
|
+
} = oe(), g = m();
|
|
2439
|
+
if (!g)
|
|
773
2440
|
return;
|
|
774
|
-
const {
|
|
775
|
-
|
|
776
|
-
|
|
2441
|
+
const {
|
|
2442
|
+
operateNode: v
|
|
2443
|
+
} = I();
|
|
2444
|
+
if (s === !1 || s != null && s.type)
|
|
2445
|
+
v({
|
|
2446
|
+
type: "updateAttributes",
|
|
2447
|
+
id: g.id,
|
|
2448
|
+
value: {
|
|
2449
|
+
condition: s
|
|
2450
|
+
}
|
|
2451
|
+
});
|
|
777
2452
|
else {
|
|
778
|
-
const {
|
|
779
|
-
|
|
2453
|
+
const {
|
|
2454
|
+
condition: w,
|
|
2455
|
+
children: S,
|
|
2456
|
+
...A
|
|
2457
|
+
} = g;
|
|
2458
|
+
v({
|
|
2459
|
+
type: "updateAttributes",
|
|
2460
|
+
id: g.id,
|
|
2461
|
+
value: {
|
|
2462
|
+
...A
|
|
2463
|
+
},
|
|
2464
|
+
overwrite: !0
|
|
2465
|
+
});
|
|
780
2466
|
}
|
|
781
|
-
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
2467
|
+
I().canvasApi.value.updateRect(), e.value = s;
|
|
2468
|
+
}, {
|
|
2469
|
+
metaData: {
|
|
2470
|
+
id: "engine.setting.event.AdvanceConfig.setConfig"
|
|
2471
|
+
},
|
|
2472
|
+
ctx: () => ({
|
|
2473
|
+
pageState: h,
|
|
2474
|
+
condition: e,
|
|
2475
|
+
isBind: n,
|
|
2476
|
+
getIndexName: t,
|
|
2477
|
+
state: o,
|
|
2478
|
+
setLoopKey: i,
|
|
2479
|
+
openEditor: l,
|
|
2480
|
+
setConfig: d,
|
|
2481
|
+
setLoopIndex: a,
|
|
2482
|
+
setLoop: c,
|
|
2483
|
+
setLoopItem: b,
|
|
2484
|
+
CodeConfigurator: xe,
|
|
2485
|
+
InputConfigurator: we,
|
|
2486
|
+
SwitchConfigurator: De,
|
|
2487
|
+
VariableConfigurator: ke,
|
|
2488
|
+
useProperties: oe,
|
|
2489
|
+
useCanvas: I,
|
|
2490
|
+
PROP_DATA_TYPE: fe,
|
|
2491
|
+
constants: Ae,
|
|
2492
|
+
utils: Ie,
|
|
2493
|
+
DEFAULT_LOOP_NAME: ie,
|
|
2494
|
+
string2Obj: Se
|
|
2495
|
+
})
|
|
2496
|
+
}), a = D((s) => {
|
|
2497
|
+
const m = oe().getSchema();
|
|
2498
|
+
let g = m.loopArgs;
|
|
2499
|
+
const {
|
|
2500
|
+
operateNode: v
|
|
2501
|
+
} = I();
|
|
2502
|
+
g ? g[1] = s || ie.INDEX : g = [ie.ITEM, s], v({
|
|
2503
|
+
type: "updateAttributes",
|
|
2504
|
+
id: m.id,
|
|
2505
|
+
value: {
|
|
2506
|
+
loopArgs: g
|
|
802
2507
|
}
|
|
803
|
-
|
|
2508
|
+
});
|
|
2509
|
+
}, {
|
|
2510
|
+
metaData: {
|
|
2511
|
+
id: "engine.setting.event.AdvanceConfig.setLoopIndex"
|
|
2512
|
+
},
|
|
2513
|
+
ctx: () => ({
|
|
2514
|
+
pageState: h,
|
|
2515
|
+
condition: e,
|
|
2516
|
+
isBind: n,
|
|
2517
|
+
getIndexName: t,
|
|
2518
|
+
state: o,
|
|
2519
|
+
setLoopKey: i,
|
|
2520
|
+
openEditor: l,
|
|
2521
|
+
setConfig: d,
|
|
2522
|
+
setLoopIndex: a,
|
|
2523
|
+
setLoop: c,
|
|
2524
|
+
setLoopItem: b,
|
|
2525
|
+
CodeConfigurator: xe,
|
|
2526
|
+
InputConfigurator: we,
|
|
2527
|
+
SwitchConfigurator: De,
|
|
2528
|
+
VariableConfigurator: ke,
|
|
2529
|
+
useProperties: oe,
|
|
2530
|
+
useCanvas: I,
|
|
2531
|
+
PROP_DATA_TYPE: fe,
|
|
2532
|
+
constants: Ae,
|
|
2533
|
+
utils: Ie,
|
|
2534
|
+
DEFAULT_LOOP_NAME: ie,
|
|
2535
|
+
string2Obj: Se
|
|
2536
|
+
})
|
|
2537
|
+
}), c = D((s) => {
|
|
2538
|
+
const {
|
|
2539
|
+
operateNode: m
|
|
2540
|
+
} = I(), {
|
|
2541
|
+
getSchema: g
|
|
2542
|
+
} = oe(), v = g();
|
|
2543
|
+
if (s) {
|
|
2544
|
+
const w = s != null && s.type ? s : Se(s);
|
|
2545
|
+
m({
|
|
2546
|
+
type: "updateAttributes",
|
|
2547
|
+
id: v.id,
|
|
2548
|
+
value: {
|
|
2549
|
+
loop: w
|
|
2550
|
+
}
|
|
2551
|
+
}), a(ie.INDEX);
|
|
2552
|
+
} else {
|
|
2553
|
+
i();
|
|
2554
|
+
const {
|
|
2555
|
+
loop: w,
|
|
2556
|
+
loopArgs: S,
|
|
2557
|
+
children: A,
|
|
2558
|
+
...y
|
|
2559
|
+
} = v;
|
|
2560
|
+
m({
|
|
2561
|
+
type: "updateAttributes",
|
|
2562
|
+
id: v.id,
|
|
2563
|
+
value: y,
|
|
2564
|
+
overwrite: !0
|
|
2565
|
+
});
|
|
2566
|
+
}
|
|
2567
|
+
o.shouldUpdate = !o.shouldUpdate;
|
|
2568
|
+
}, {
|
|
2569
|
+
metaData: {
|
|
2570
|
+
id: "engine.setting.event.AdvanceConfig.setLoop"
|
|
804
2571
|
},
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
2572
|
+
ctx: () => ({
|
|
2573
|
+
pageState: h,
|
|
2574
|
+
condition: e,
|
|
2575
|
+
isBind: n,
|
|
2576
|
+
getIndexName: t,
|
|
2577
|
+
state: o,
|
|
2578
|
+
setLoopKey: i,
|
|
2579
|
+
openEditor: l,
|
|
2580
|
+
setConfig: d,
|
|
2581
|
+
setLoopIndex: a,
|
|
2582
|
+
setLoop: c,
|
|
2583
|
+
setLoopItem: b,
|
|
2584
|
+
CodeConfigurator: xe,
|
|
2585
|
+
InputConfigurator: we,
|
|
2586
|
+
SwitchConfigurator: De,
|
|
2587
|
+
VariableConfigurator: ke,
|
|
2588
|
+
useProperties: oe,
|
|
2589
|
+
useCanvas: I,
|
|
2590
|
+
PROP_DATA_TYPE: fe,
|
|
2591
|
+
constants: Ae,
|
|
2592
|
+
utils: Ie,
|
|
2593
|
+
DEFAULT_LOOP_NAME: ie,
|
|
2594
|
+
string2Obj: Se
|
|
2595
|
+
})
|
|
2596
|
+
}), b = D((s) => {
|
|
2597
|
+
const m = oe().getSchema();
|
|
2598
|
+
let g = m.loopArgs;
|
|
2599
|
+
const {
|
|
2600
|
+
operateNode: v
|
|
2601
|
+
} = I();
|
|
2602
|
+
g ? g[0] = s || ie.ITEM : g = [s, ie.INDEX], v({
|
|
2603
|
+
type: "updateAttributes",
|
|
2604
|
+
id: m.id,
|
|
2605
|
+
value: {
|
|
2606
|
+
loopArgs: g
|
|
2607
|
+
}
|
|
2608
|
+
});
|
|
2609
|
+
}, {
|
|
2610
|
+
metaData: {
|
|
2611
|
+
id: "engine.setting.event.AdvanceConfig.setLoopItem"
|
|
810
2612
|
},
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
2613
|
+
ctx: () => ({
|
|
2614
|
+
pageState: h,
|
|
2615
|
+
condition: e,
|
|
2616
|
+
isBind: n,
|
|
2617
|
+
getIndexName: t,
|
|
2618
|
+
state: o,
|
|
2619
|
+
setLoopKey: i,
|
|
2620
|
+
openEditor: l,
|
|
2621
|
+
setConfig: d,
|
|
2622
|
+
setLoopIndex: a,
|
|
2623
|
+
setLoop: c,
|
|
2624
|
+
setLoopItem: b,
|
|
2625
|
+
CodeConfigurator: xe,
|
|
2626
|
+
InputConfigurator: we,
|
|
2627
|
+
SwitchConfigurator: De,
|
|
2628
|
+
VariableConfigurator: ke,
|
|
2629
|
+
useProperties: oe,
|
|
2630
|
+
useCanvas: I,
|
|
2631
|
+
PROP_DATA_TYPE: fe,
|
|
2632
|
+
constants: Ae,
|
|
2633
|
+
utils: Ie,
|
|
2634
|
+
DEFAULT_LOOP_NAME: ie,
|
|
2635
|
+
string2Obj: Se
|
|
2636
|
+
})
|
|
2637
|
+
});
|
|
2638
|
+
return {
|
|
2639
|
+
condition: e,
|
|
2640
|
+
setConfig: d,
|
|
2641
|
+
isBind: n,
|
|
2642
|
+
state: o,
|
|
2643
|
+
setLoop: c,
|
|
2644
|
+
setLoopItem: b,
|
|
2645
|
+
DEFAULT_LOOP_NAME: ie,
|
|
2646
|
+
openEditor: l,
|
|
2647
|
+
setLoopIndex: a,
|
|
2648
|
+
setLoopKey: i,
|
|
2649
|
+
getIndexName: t
|
|
816
2650
|
};
|
|
817
2651
|
}
|
|
818
|
-
},
|
|
819
|
-
function
|
|
820
|
-
var
|
|
821
|
-
const
|
|
822
|
-
return
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
2652
|
+
}, wn = { class: "advanced-config-container" }, kn = { class: "advnce-config" }, Dn = { class: "advanced-config-form-item" }, Sn = ["title"], Nn = { class: "advnce-config loop-data-item" }, An = { class: "advanced-config-form-item" }, In = ["title"], Ln = { class: "advnce-config" }, Bn = { class: "advanced-config-form-item" }, Pn = { class: "advnce-config" }, On = { class: "advanced-config-form-item" }, Vn = { class: "advnce-config" }, Mn = { class: "advanced-config-form-item" };
|
|
2653
|
+
function Rn(h, e, n, t, o, i) {
|
|
2654
|
+
var s, m;
|
|
2655
|
+
const l = X("switch-configurator"), d = X("variable-configurator"), a = X("code-configurator"), c = X("input-configurator"), b = X("tiny-tooltip");
|
|
2656
|
+
return U(), re("div", wn, [
|
|
2657
|
+
_("div", kn, [
|
|
2658
|
+
e[6] || (e[6] = _("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)),
|
|
2659
|
+
_("div", Dn, [
|
|
2660
|
+
t.isBind ? (U(), re("div", {
|
|
827
2661
|
key: 1,
|
|
828
2662
|
class: "binding-state text-ellipsis-multiple",
|
|
829
|
-
title:
|
|
830
|
-
}, " 已绑定:" +
|
|
2663
|
+
title: t.condition.value
|
|
2664
|
+
}, " 已绑定:" + me(t.condition.value), 9, Sn)) : (U(), Ce(l, {
|
|
831
2665
|
key: 0,
|
|
832
|
-
modelValue:
|
|
833
|
-
"onUpdate:modelValue":
|
|
2666
|
+
modelValue: t.condition,
|
|
2667
|
+
"onUpdate:modelValue": t.setConfig
|
|
834
2668
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])),
|
|
835
|
-
|
|
836
|
-
modelValue:
|
|
2669
|
+
N(d, {
|
|
2670
|
+
modelValue: t.condition,
|
|
837
2671
|
"onUpdate:modelValue": [
|
|
838
|
-
|
|
839
|
-
|
|
2672
|
+
e[0] || (e[0] = (g) => t.condition = g),
|
|
2673
|
+
t.setConfig
|
|
840
2674
|
],
|
|
841
2675
|
name: "advance"
|
|
842
2676
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
843
2677
|
])
|
|
844
2678
|
]),
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
2679
|
+
_("div", Nn, [
|
|
2680
|
+
e[7] || (e[7] = _("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)),
|
|
2681
|
+
_("div", An, [
|
|
2682
|
+
t.state.isLoop ? (U(), re("div", {
|
|
849
2683
|
key: 1,
|
|
850
2684
|
class: "binding-state text-ellipsis-multiple",
|
|
851
|
-
title: (
|
|
852
|
-
}, " 已绑定:" +
|
|
2685
|
+
title: (s = t.state.loopData) == null ? void 0 : s.value
|
|
2686
|
+
}, " 已绑定:" + me((m = t.state.loopData) == null ? void 0 : m.value), 9, In)) : (U(), Ce(a, {
|
|
853
2687
|
key: 0,
|
|
854
|
-
modelValue:
|
|
2688
|
+
modelValue: t.state.loopData,
|
|
855
2689
|
"onUpdate:modelValue": [
|
|
856
|
-
|
|
857
|
-
|
|
2690
|
+
e[1] || (e[1] = (g) => t.state.loopData = g),
|
|
2691
|
+
t.setLoop
|
|
858
2692
|
],
|
|
859
2693
|
"data-type": "JSExpression",
|
|
860
|
-
onOpen:
|
|
2694
|
+
onOpen: t.openEditor
|
|
861
2695
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onOpen"])),
|
|
862
|
-
|
|
863
|
-
modelValue:
|
|
2696
|
+
N(d, {
|
|
2697
|
+
modelValue: t.state.loopData,
|
|
864
2698
|
"onUpdate:modelValue": [
|
|
865
|
-
|
|
866
|
-
|
|
2699
|
+
e[2] || (e[2] = (g) => t.state.loopData = g),
|
|
2700
|
+
t.setLoop
|
|
867
2701
|
],
|
|
868
2702
|
name: "advance"
|
|
869
2703
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
870
2704
|
])
|
|
871
2705
|
]),
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
modelValue:
|
|
2706
|
+
_("div", Ln, [
|
|
2707
|
+
e[8] || (e[8] = _("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)),
|
|
2708
|
+
_("div", Bn, [
|
|
2709
|
+
N(c, {
|
|
2710
|
+
modelValue: t.state.loopItem,
|
|
877
2711
|
"onUpdate:modelValue": [
|
|
878
|
-
|
|
879
|
-
|
|
2712
|
+
e[3] || (e[3] = (g) => t.state.loopItem = g),
|
|
2713
|
+
t.setLoopItem
|
|
880
2714
|
],
|
|
881
|
-
placeholder: `默认值为:${
|
|
2715
|
+
placeholder: `默认值为:${t.DEFAULT_LOOP_NAME.ITEM}`
|
|
882
2716
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
883
2717
|
])
|
|
884
2718
|
]),
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
modelValue:
|
|
2719
|
+
_("div", Pn, [
|
|
2720
|
+
e[9] || (e[9] = _("label", { class: "text-ellipsis-multiple" }, "索引变量名", -1)),
|
|
2721
|
+
_("div", On, [
|
|
2722
|
+
N(c, {
|
|
2723
|
+
modelValue: t.state.loopIndex,
|
|
890
2724
|
"onUpdate:modelValue": [
|
|
891
|
-
|
|
892
|
-
|
|
2725
|
+
e[4] || (e[4] = (g) => t.state.loopIndex = g),
|
|
2726
|
+
t.setLoopIndex
|
|
893
2727
|
],
|
|
894
|
-
placeholder: `默认值为:${
|
|
2728
|
+
placeholder: `默认值为:${t.DEFAULT_LOOP_NAME.INDEX}`
|
|
895
2729
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
896
2730
|
])
|
|
897
2731
|
]),
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
2732
|
+
_("div", Vn, [
|
|
2733
|
+
e[10] || (e[10] = _("label", { class: "text-ellipsis-multiple" }, "key", -1)),
|
|
2734
|
+
_("div", Mn, [
|
|
2735
|
+
N(b, {
|
|
902
2736
|
content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存",
|
|
903
2737
|
effect: "light"
|
|
904
2738
|
}, {
|
|
905
|
-
default:
|
|
906
|
-
|
|
907
|
-
modelValue:
|
|
2739
|
+
default: J(() => [
|
|
2740
|
+
N(c, {
|
|
2741
|
+
modelValue: t.state.loopKey,
|
|
908
2742
|
"onUpdate:modelValue": [
|
|
909
|
-
|
|
910
|
-
|
|
2743
|
+
e[5] || (e[5] = (g) => t.state.loopKey = g),
|
|
2744
|
+
t.setLoopKey
|
|
911
2745
|
],
|
|
912
|
-
placeholder: `默认为索引名:${
|
|
2746
|
+
placeholder: `默认为索引名:${t.getIndexName()}`
|
|
913
2747
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
914
2748
|
]),
|
|
915
2749
|
_: 1
|
|
@@ -918,44 +2752,46 @@ function Wn(f, o, a, e, r, _) {
|
|
|
918
2752
|
])
|
|
919
2753
|
]);
|
|
920
2754
|
}
|
|
921
|
-
const
|
|
2755
|
+
const Tn = /* @__PURE__ */ We(xn, [["render", Rn], ["__scopeId", "data-v-275ffc6c"]]), Un = {
|
|
922
2756
|
__name: "Main",
|
|
923
2757
|
props: {
|
|
924
2758
|
fixedPanels: Array
|
|
925
2759
|
},
|
|
926
2760
|
emits: [],
|
|
927
|
-
setup(
|
|
928
|
-
const
|
|
929
|
-
|
|
2761
|
+
setup(h, { emit: e }) {
|
|
2762
|
+
const n = Ye(["bindEvent", "advancedConfig"]), {
|
|
2763
|
+
PLUGIN_NAME: t
|
|
2764
|
+
} = z(), i = rt({
|
|
2765
|
+
emitEvent: e
|
|
930
2766
|
});
|
|
931
|
-
return
|
|
2767
|
+
return St("panelState", i), (l, d) => (U(), Ce(Z(zt), {
|
|
932
2768
|
title: "高级",
|
|
933
|
-
"fixed-panels":
|
|
934
|
-
"fixed-name":
|
|
2769
|
+
"fixed-panels": h.fixedPanels,
|
|
2770
|
+
"fixed-name": Z(t).Event,
|
|
935
2771
|
"header-margin-bottom": 0,
|
|
936
|
-
onClose:
|
|
2772
|
+
onClose: d[1] || (d[1] = (a) => l.$emit("close"))
|
|
937
2773
|
}, {
|
|
938
|
-
content:
|
|
939
|
-
|
|
940
|
-
modelValue:
|
|
941
|
-
"onUpdate:modelValue":
|
|
2774
|
+
content: J(() => [
|
|
2775
|
+
N(Z(Ut), {
|
|
2776
|
+
modelValue: n.value,
|
|
2777
|
+
"onUpdate:modelValue": d[0] || (d[0] = (a) => n.value = a)
|
|
942
2778
|
}, {
|
|
943
|
-
default:
|
|
944
|
-
|
|
2779
|
+
default: J(() => [
|
|
2780
|
+
N(Z(wt), {
|
|
945
2781
|
title: "事件绑定",
|
|
946
2782
|
name: "bindEvent"
|
|
947
2783
|
}, {
|
|
948
|
-
default:
|
|
949
|
-
|
|
2784
|
+
default: J(() => [
|
|
2785
|
+
N(Cn)
|
|
950
2786
|
]),
|
|
951
2787
|
_: 1
|
|
952
2788
|
}),
|
|
953
|
-
|
|
2789
|
+
N(Z(wt), {
|
|
954
2790
|
title: "高级配置",
|
|
955
2791
|
name: "advancedConfig"
|
|
956
2792
|
}, {
|
|
957
|
-
default:
|
|
958
|
-
|
|
2793
|
+
default: J(() => [
|
|
2794
|
+
N(Tn)
|
|
959
2795
|
]),
|
|
960
2796
|
_: 1
|
|
961
2797
|
})
|
|
@@ -966,114 +2802,222 @@ const Qn = /* @__PURE__ */ H(Un, [["render", Wn], ["__scopeId", "data-v-40bd3762
|
|
|
966
2802
|
_: 1
|
|
967
2803
|
}, 8, ["fixed-panels", "fixed-name"]));
|
|
968
2804
|
}
|
|
969
|
-
},
|
|
2805
|
+
}, ye = "newMethod", gt = /[^0-9a-zA-Z_$]/, Ke = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, Ne = {
|
|
2806
|
+
default: "选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)",
|
|
970
2807
|
exist: "方法名称已存在",
|
|
971
2808
|
ruleInvalid: "请输入有效的方法名,可以由字母、数字、下划线、$ 符号组成,不能以数字开头",
|
|
972
2809
|
empty: "方法名称不能为空"
|
|
973
|
-
},
|
|
2810
|
+
}, jn = {
|
|
974
2811
|
components: {
|
|
975
|
-
MonacoEditor:
|
|
976
|
-
TinyInput:
|
|
977
|
-
TinyCheckbox:
|
|
2812
|
+
MonacoEditor: Xe,
|
|
2813
|
+
TinyInput: mt,
|
|
2814
|
+
TinyCheckbox: jt
|
|
978
2815
|
},
|
|
979
2816
|
props: {
|
|
980
2817
|
dialogVisible: Boolean
|
|
981
2818
|
},
|
|
982
2819
|
setup() {
|
|
983
|
-
const {
|
|
2820
|
+
const {
|
|
2821
|
+
getMethodNameList: h
|
|
2822
|
+
} = V(O.Page), e = At("context"), n = {
|
|
984
2823
|
language: "json",
|
|
985
2824
|
lineNumbers: !1,
|
|
986
2825
|
minimap: {
|
|
987
2826
|
enabled: !1
|
|
988
2827
|
}
|
|
989
|
-
},
|
|
990
|
-
|
|
991
|
-
},
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
2828
|
+
}, t = D((a) => {
|
|
2829
|
+
e.editorContent = a;
|
|
2830
|
+
}, {
|
|
2831
|
+
metaData: {
|
|
2832
|
+
id: "engine.setting.event.BindEventsDialogContent.editorContentChange"
|
|
2833
|
+
},
|
|
2834
|
+
ctx: () => ({
|
|
2835
|
+
getMethodNameList: h,
|
|
2836
|
+
context: e,
|
|
2837
|
+
editorOptions: n,
|
|
2838
|
+
editorContentChange: t,
|
|
2839
|
+
validMethodNameEmpty: o,
|
|
2840
|
+
validMethodNameExist: i,
|
|
2841
|
+
invalidMethodName: l,
|
|
2842
|
+
change: d,
|
|
2843
|
+
VueMonaco: Xe,
|
|
2844
|
+
getMetaApi: V,
|
|
2845
|
+
META_APP: O,
|
|
2846
|
+
METHOD_TIPS_MAP: Ne,
|
|
2847
|
+
NEW_METHOD_TYPE: ye,
|
|
2848
|
+
VALID_VARNAME_RE: Ke
|
|
2849
|
+
})
|
|
2850
|
+
}), o = D((a) => !a, {
|
|
2851
|
+
metaData: {
|
|
2852
|
+
id: "engine.setting.event.BindEventsDialogContent.validMethodNameEmpty"
|
|
2853
|
+
},
|
|
2854
|
+
ctx: () => ({
|
|
2855
|
+
getMethodNameList: h,
|
|
2856
|
+
context: e,
|
|
2857
|
+
editorOptions: n,
|
|
2858
|
+
editorContentChange: t,
|
|
2859
|
+
validMethodNameEmpty: o,
|
|
2860
|
+
validMethodNameExist: i,
|
|
2861
|
+
invalidMethodName: l,
|
|
2862
|
+
change: d,
|
|
2863
|
+
VueMonaco: Xe,
|
|
2864
|
+
getMetaApi: V,
|
|
2865
|
+
META_APP: O,
|
|
2866
|
+
METHOD_TIPS_MAP: Ne,
|
|
2867
|
+
NEW_METHOD_TYPE: ye,
|
|
2868
|
+
VALID_VARNAME_RE: Ke
|
|
2869
|
+
})
|
|
2870
|
+
}), i = D((a) => h == null ? void 0 : h().includes(a), {
|
|
2871
|
+
metaData: {
|
|
2872
|
+
id: "engine.setting.event.BindEventsDialogContent.validMethodNameExist"
|
|
2873
|
+
},
|
|
2874
|
+
ctx: () => ({
|
|
2875
|
+
getMethodNameList: h,
|
|
2876
|
+
context: e,
|
|
2877
|
+
editorOptions: n,
|
|
2878
|
+
editorContentChange: t,
|
|
2879
|
+
validMethodNameEmpty: o,
|
|
2880
|
+
validMethodNameExist: i,
|
|
2881
|
+
invalidMethodName: l,
|
|
2882
|
+
change: d,
|
|
2883
|
+
VueMonaco: Xe,
|
|
2884
|
+
getMetaApi: V,
|
|
2885
|
+
META_APP: O,
|
|
2886
|
+
METHOD_TIPS_MAP: Ne,
|
|
2887
|
+
NEW_METHOD_TYPE: ye,
|
|
2888
|
+
VALID_VARNAME_RE: Ke
|
|
2889
|
+
})
|
|
2890
|
+
}), l = D((a) => !Ke.test(a), {
|
|
2891
|
+
metaData: {
|
|
2892
|
+
id: "engine.setting.event.BindEventsDialogContent.invalidMethodName"
|
|
2893
|
+
},
|
|
2894
|
+
ctx: () => ({
|
|
2895
|
+
getMethodNameList: h,
|
|
2896
|
+
context: e,
|
|
2897
|
+
editorOptions: n,
|
|
2898
|
+
editorContentChange: t,
|
|
2899
|
+
validMethodNameEmpty: o,
|
|
2900
|
+
validMethodNameExist: i,
|
|
2901
|
+
invalidMethodName: l,
|
|
2902
|
+
change: d,
|
|
2903
|
+
VueMonaco: Xe,
|
|
2904
|
+
getMetaApi: V,
|
|
2905
|
+
META_APP: O,
|
|
2906
|
+
METHOD_TIPS_MAP: Ne,
|
|
2907
|
+
NEW_METHOD_TYPE: ye,
|
|
2908
|
+
VALID_VARNAME_RE: Ke
|
|
2909
|
+
})
|
|
2910
|
+
}), d = D((a) => {
|
|
2911
|
+
const c = [{
|
|
2912
|
+
validator: o,
|
|
2913
|
+
tip: Ne.empty
|
|
2914
|
+
}, {
|
|
2915
|
+
validator: i,
|
|
2916
|
+
tip: Ne.exist
|
|
2917
|
+
}, {
|
|
2918
|
+
validator: l,
|
|
2919
|
+
tip: Ne.ruleInvalid
|
|
2920
|
+
}];
|
|
2921
|
+
for (let b = 0; b < c.length; b++) {
|
|
2922
|
+
const s = c[b];
|
|
2923
|
+
if (s.validator(a)) {
|
|
2924
|
+
e.tipError = !0, e.tip = s.tip;
|
|
2925
|
+
return;
|
|
1008
2926
|
}
|
|
1009
|
-
|
|
2927
|
+
}
|
|
2928
|
+
e.tipError = !1, e.tip = "";
|
|
2929
|
+
}, {
|
|
2930
|
+
metaData: {
|
|
2931
|
+
id: "engine.setting.event.BindEventsDialogContent.change"
|
|
1010
2932
|
},
|
|
1011
|
-
|
|
2933
|
+
ctx: () => ({
|
|
2934
|
+
getMethodNameList: h,
|
|
2935
|
+
context: e,
|
|
2936
|
+
editorOptions: n,
|
|
2937
|
+
editorContentChange: t,
|
|
2938
|
+
validMethodNameEmpty: o,
|
|
2939
|
+
validMethodNameExist: i,
|
|
2940
|
+
invalidMethodName: l,
|
|
2941
|
+
change: d,
|
|
2942
|
+
VueMonaco: Xe,
|
|
2943
|
+
getMetaApi: V,
|
|
2944
|
+
META_APP: O,
|
|
2945
|
+
METHOD_TIPS_MAP: Ne,
|
|
2946
|
+
NEW_METHOD_TYPE: ye,
|
|
2947
|
+
VALID_VARNAME_RE: Ke
|
|
2948
|
+
})
|
|
2949
|
+
});
|
|
2950
|
+
return {
|
|
2951
|
+
NEW_METHOD_TYPE: ye,
|
|
2952
|
+
context: e,
|
|
2953
|
+
editorOptions: n,
|
|
2954
|
+
change: d,
|
|
2955
|
+
editorContentChange: t
|
|
1012
2956
|
};
|
|
1013
2957
|
}
|
|
1014
|
-
},
|
|
2958
|
+
}, $n = { class: "content-right" }, zn = { class: "new-action-tip" }, Jn = { class: "content-right-title" }, Fn = { class: "set-params-tip" }, qn = { class: "content-right-monaco" }, Xn = {
|
|
1015
2959
|
key: 1,
|
|
1016
2960
|
class: "mark"
|
|
1017
|
-
},
|
|
2961
|
+
}, Gn = {
|
|
1018
2962
|
key: 0,
|
|
1019
2963
|
class: "params-tip"
|
|
1020
2964
|
};
|
|
1021
|
-
function
|
|
1022
|
-
const
|
|
1023
|
-
return
|
|
1024
|
-
|
|
1025
|
-
class:
|
|
2965
|
+
function Kn(h, e, n, t, o, i) {
|
|
2966
|
+
const l = X("tiny-input"), d = X("tiny-checkbox"), a = X("monaco-editor");
|
|
2967
|
+
return U(), re("div", $n, [
|
|
2968
|
+
_("div", {
|
|
2969
|
+
class: He(["content-right-top", { "tip-error": t.context.tipError }])
|
|
1026
2970
|
}, [
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
modelValue:
|
|
2971
|
+
e[2] || (e[2] = _("div", { class: "content-right-title" }, "方法名称", -1)),
|
|
2972
|
+
N(l, {
|
|
2973
|
+
modelValue: t.context.bindMethodInfo.name,
|
|
1030
2974
|
"onUpdate:modelValue": [
|
|
1031
|
-
|
|
1032
|
-
|
|
2975
|
+
e[0] || (e[0] = (c) => t.context.bindMethodInfo.name = c),
|
|
2976
|
+
t.change
|
|
1033
2977
|
],
|
|
1034
|
-
disabled:
|
|
1035
|
-
class:
|
|
2978
|
+
disabled: t.context.bindMethodInfo.type !== t.NEW_METHOD_TYPE,
|
|
2979
|
+
class: He([{ "status-error": t.context.tipError }]),
|
|
1036
2980
|
placeholder: "请从左侧选择一个方法进行绑定,或者选择添加新方法,输入自定义方法名称。"
|
|
1037
2981
|
}, null, 8, ["modelValue", "disabled", "class", "onUpdate:modelValue"]),
|
|
1038
|
-
|
|
2982
|
+
_("div", zn, me(t.context.tip), 1)
|
|
1039
2983
|
], 2),
|
|
1040
|
-
|
|
1041
|
-
class:
|
|
2984
|
+
_("div", {
|
|
2985
|
+
class: He(["content-right-bottom", { "tip-error": !t.context.isValidParams }])
|
|
1042
2986
|
}, [
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
modelValue:
|
|
1046
|
-
"onUpdate:modelValue":
|
|
2987
|
+
_("div", Jn, [
|
|
2988
|
+
N(d, {
|
|
2989
|
+
modelValue: t.context.enableExtraParams,
|
|
2990
|
+
"onUpdate:modelValue": e[1] || (e[1] = (c) => t.context.enableExtraParams = c),
|
|
1047
2991
|
name: "tiny-checkbox"
|
|
1048
2992
|
}, {
|
|
1049
|
-
default:
|
|
1050
|
-
|
|
2993
|
+
default: J(() => e[3] || (e[3] = [
|
|
2994
|
+
Fe("扩展参数设置")
|
|
1051
2995
|
])),
|
|
1052
2996
|
_: 1,
|
|
1053
2997
|
__: [3]
|
|
1054
2998
|
}, 8, ["modelValue"]),
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
2999
|
+
_("div", Fn, [
|
|
3000
|
+
e[4] || (e[4] = _("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)),
|
|
3001
|
+
Fe(" 如: " + me(t.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
|
|
1058
3002
|
])
|
|
1059
3003
|
]),
|
|
1060
|
-
|
|
1061
|
-
|
|
3004
|
+
_("div", qn, [
|
|
3005
|
+
n.dialogVisible ? (U(), Ce(a, {
|
|
1062
3006
|
key: 0,
|
|
1063
|
-
value:
|
|
1064
|
-
options:
|
|
1065
|
-
onChange:
|
|
3007
|
+
value: t.context.editorContent,
|
|
3008
|
+
options: t.editorOptions,
|
|
3009
|
+
onChange: t.editorContentChange,
|
|
1066
3010
|
class: "monaco-editor"
|
|
1067
|
-
}, null, 8, ["value", "options", "onChange"])) :
|
|
1068
|
-
|
|
3011
|
+
}, null, 8, ["value", "options", "onChange"])) : dt("", !0),
|
|
3012
|
+
t.context.enableExtraParams ? dt("", !0) : (U(), re("div", Xn))
|
|
1069
3013
|
]),
|
|
1070
|
-
!
|
|
3014
|
+
!t.context.isValidParams && t.context.enableExtraParams ? (U(), re("div", Gn, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : dt("", !0)
|
|
1071
3015
|
], 2)
|
|
1072
3016
|
]);
|
|
1073
3017
|
}
|
|
1074
|
-
const
|
|
3018
|
+
const Hn = /* @__PURE__ */ We(jn, [["render", Kn], ["__scopeId", "data-v-fc0b367d"]]), Yn = {
|
|
1075
3019
|
components: {
|
|
1076
|
-
TinySearch:
|
|
3020
|
+
TinySearch: $t
|
|
1077
3021
|
},
|
|
1078
3022
|
props: {
|
|
1079
3023
|
eventBinding: {
|
|
@@ -1081,70 +3025,110 @@ const uo = /* @__PURE__ */ H(to, [["render", po], ["__scopeId", "data-v-f2c9b5af
|
|
|
1081
3025
|
default: () => ({})
|
|
1082
3026
|
}
|
|
1083
3027
|
},
|
|
1084
|
-
setup(
|
|
1085
|
-
const {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
3028
|
+
setup(h) {
|
|
3029
|
+
const {
|
|
3030
|
+
getMethodNameList: e
|
|
3031
|
+
} = V(O.Page), n = Ye(""), t = Ye([]), o = At("context"), i = D((d, a) => {
|
|
3032
|
+
const c = d.map((m) => {
|
|
3033
|
+
var g;
|
|
3034
|
+
return Number.parseInt((g = m.match(/\d+$/)) == null ? void 0 : g[0]) || 0;
|
|
3035
|
+
}).sort((m, g) => m - g).pop();
|
|
3036
|
+
let s = `${(a == null ? void 0 : a.replace(gt, "_")) || ""}New`;
|
|
3037
|
+
return c > -1 && (s += `${c + 1}`), s;
|
|
3038
|
+
}, {
|
|
3039
|
+
metaData: {
|
|
3040
|
+
id: "engine.setting.event.BindEventsDialogSidebar.generateMethodName"
|
|
3041
|
+
},
|
|
3042
|
+
ctx: () => ({
|
|
3043
|
+
props: h,
|
|
3044
|
+
getMethodNameList: e,
|
|
3045
|
+
searchValue: n,
|
|
3046
|
+
filteredMethodList: t,
|
|
3047
|
+
context: o,
|
|
3048
|
+
generateMethodName: i,
|
|
3049
|
+
selectMethod: l,
|
|
3050
|
+
getMetaApi: V,
|
|
3051
|
+
META_APP: O,
|
|
3052
|
+
INVALID_VARNAME_CHAR_RE: gt,
|
|
3053
|
+
NEW_METHOD_TYPE: ye
|
|
3054
|
+
})
|
|
3055
|
+
}), l = D((d) => {
|
|
3056
|
+
o.bindMethodInfo = d;
|
|
3057
|
+
}, {
|
|
3058
|
+
metaData: {
|
|
3059
|
+
id: "engine.setting.event.BindEventsDialogSidebar.selectMethod"
|
|
3060
|
+
},
|
|
3061
|
+
ctx: () => ({
|
|
3062
|
+
props: h,
|
|
3063
|
+
getMethodNameList: e,
|
|
3064
|
+
searchValue: n,
|
|
3065
|
+
filteredMethodList: t,
|
|
3066
|
+
context: o,
|
|
3067
|
+
generateMethodName: i,
|
|
3068
|
+
selectMethod: l,
|
|
3069
|
+
getMetaApi: V,
|
|
3070
|
+
META_APP: O,
|
|
3071
|
+
INVALID_VARNAME_CHAR_RE: gt,
|
|
3072
|
+
NEW_METHOD_TYPE: ye
|
|
3073
|
+
})
|
|
3074
|
+
});
|
|
3075
|
+
return Nt(() => {
|
|
3076
|
+
var m, g;
|
|
3077
|
+
const d = (m = h.eventBinding) == null ? void 0 : m.eventName, a = (e == null ? void 0 : e().filter((v) => v.includes(d))) || [], b = {
|
|
1098
3078
|
title: "添加新方法",
|
|
1099
|
-
name:
|
|
1100
|
-
type:
|
|
3079
|
+
name: i(a, d),
|
|
3080
|
+
type: ye
|
|
1101
3081
|
};
|
|
1102
|
-
(
|
|
1103
|
-
|
|
1104
|
-
|
|
3082
|
+
(g = h.eventBinding) != null && g.ref ? l({
|
|
3083
|
+
name: h.eventBinding.ref
|
|
3084
|
+
}) : l(b);
|
|
3085
|
+
const s = (e == null ? void 0 : e().filter((v) => v.includes(n.value)).map((v) => ({
|
|
3086
|
+
name: v
|
|
3087
|
+
}))) || [];
|
|
3088
|
+
t.value = [b, ...s];
|
|
1105
3089
|
}), {
|
|
1106
|
-
context:
|
|
1107
|
-
searchValue:
|
|
1108
|
-
filteredMethodList:
|
|
1109
|
-
selectMethod:
|
|
3090
|
+
context: o,
|
|
3091
|
+
searchValue: n,
|
|
3092
|
+
filteredMethodList: t,
|
|
3093
|
+
selectMethod: l
|
|
1110
3094
|
};
|
|
1111
3095
|
}
|
|
1112
|
-
},
|
|
1113
|
-
function
|
|
1114
|
-
const
|
|
1115
|
-
return
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
modelValue:
|
|
1121
|
-
"onUpdate:modelValue":
|
|
3096
|
+
}, Wn = { class: "dialog-content-left" }, Zn = { class: "left-list-wrap" }, Qn = { class: "left-action-list" }, eo = { class: "action-list-wrap" }, to = ["onClick"];
|
|
3097
|
+
function no(h, e, n, t, o, i) {
|
|
3098
|
+
const l = X("tiny-search");
|
|
3099
|
+
return U(), re("div", Wn, [
|
|
3100
|
+
e[1] || (e[1] = _("div", { class: "left-title" }, "响应方法", -1)),
|
|
3101
|
+
_("div", Zn, [
|
|
3102
|
+
_("div", Qn, [
|
|
3103
|
+
N(l, {
|
|
3104
|
+
modelValue: t.searchValue,
|
|
3105
|
+
"onUpdate:modelValue": e[0] || (e[0] = (d) => t.searchValue = d),
|
|
1122
3106
|
placeholder: "搜索"
|
|
1123
3107
|
}, null, 8, ["modelValue"]),
|
|
1124
|
-
|
|
1125
|
-
(
|
|
1126
|
-
key:
|
|
1127
|
-
onClick: (
|
|
3108
|
+
_("ul", eo, [
|
|
3109
|
+
(U(!0), re(at, null, pt(t.filteredMethodList, (d) => (U(), re("li", {
|
|
3110
|
+
key: d.name,
|
|
3111
|
+
onClick: (a) => t.selectMethod(d)
|
|
1128
3112
|
}, [
|
|
1129
|
-
|
|
1130
|
-
class:
|
|
1131
|
-
},
|
|
1132
|
-
], 8,
|
|
3113
|
+
_("div", {
|
|
3114
|
+
class: He(["action-name", { active: d.name === t.context.bindMethodInfo.name }])
|
|
3115
|
+
}, me(d.title || d.name), 3)
|
|
3116
|
+
], 8, to))), 128))
|
|
1133
3117
|
])
|
|
1134
3118
|
])
|
|
1135
3119
|
])
|
|
1136
3120
|
]);
|
|
1137
3121
|
}
|
|
1138
|
-
const
|
|
1139
|
-
...
|
|
1140
|
-
entry:
|
|
1141
|
-
options: { commonEvents:
|
|
3122
|
+
const oo = /* @__PURE__ */ We(Yn, [["render", no], ["__scopeId", "data-v-9bcc2645"]]), mo = {
|
|
3123
|
+
...Q,
|
|
3124
|
+
entry: Un,
|
|
3125
|
+
options: { commonEvents: Lt },
|
|
1142
3126
|
components: {
|
|
1143
|
-
BindEventsDialogSidebar:
|
|
1144
|
-
BindEventsDialogContent:
|
|
3127
|
+
BindEventsDialogSidebar: oo,
|
|
3128
|
+
BindEventsDialogContent: Hn
|
|
1145
3129
|
}
|
|
1146
3130
|
};
|
|
1147
3131
|
export {
|
|
1148
|
-
|
|
3132
|
+
mo as default
|
|
1149
3133
|
};
|
|
1150
3134
|
//# sourceMappingURL=index.js.map
|