@opentiny/tiny-engine-setting-events 2.7.0-alpha.1 → 2.7.0-alpha.2

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