@opentiny/tiny-engine-setting-events 2.1.0-rc.0 → 2.2.0-beta.3

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,34 +1,34 @@
1
1
  import "./style.css";
2
- import { ref as R, reactive as W, provide as je, resolveComponent as x, openBlock as g, createBlock as B, withCtx as k, createElementVNode as i, createVNode as u, createTextVNode as L, resolveDynamicComponent as be, nextTick as ze, pushScopeId as H, popScopeId as Y, unref as P, computed as X, watchEffect as Ne, createElementBlock as N, Fragment as Z, renderList as ie, normalizeClass as z, toDisplayString as w, withDirectives as ye, createCommentVNode as K, vShow as Ee, watch as xe, inject as Ae } from "vue";
3
- import { Button as G, DialogBox as De, Form as Re, FormItem as ke, Input as se, Popover as Je, Tooltip as Fe, Collapse as Xe, CollapseItem as Ve, Checkbox as Ke, Search as He } from "@opentiny/vue";
4
- import { getMergeMeta as Pe, useLayout as we, useCanvas as S, getMetaApi as Q, META_APP as ee, getOptions as Ye, useHistory as qe, useBlock as Ze, useMaterial as Ge, useModal as We, useProperties as U } from "@opentiny/tiny-engine-meta-register";
5
- import Qe from "@opentiny/tiny-engine-common/js/i18n";
6
- import { BlockLinkEvent as eo, SvgButton as oo, VueMonaco as to } from "@opentiny/tiny-engine-common";
7
- import { iconChevronDown as no, iconYes as io } from "@opentiny/vue-icon";
8
- import { string2Ast as Ce, ast2String as so } from "@opentiny/tiny-engine-common/js/ast";
9
- import { SwitchConfigurator as ao, VariableConfigurator as lo, InputConfigurator as co, CodeConfigurator as ro } from "@opentiny/tiny-engine-configurator";
10
- import { PROP_DATA_TYPE as F } from "@opentiny/tiny-engine-common/js/constants";
11
- import { constants as po, utils as mo } from "@opentiny/tiny-engine-utils";
12
- const ae = {
2
+ import { ref as J, reactive as q, provide as Oe, resolveComponent as x, openBlock as _, createBlock as w, withCtx as k, createElementVNode as t, createVNode as p, createTextVNode as O, resolveDynamicComponent as fe, nextTick as Se, unref as B, computed as K, watchEffect as ke, createElementBlock as A, Fragment as $, renderList as ne, normalizeClass as R, toDisplayString as M, withDirectives as ge, createCommentVNode as H, vShow as _e, watch as be, inject as Ve } from "vue";
3
+ import { Button as Y, DialogBox as Ce, Form as Te, FormItem as he, Input as oe, Popover as Ue, Tooltip as je, Collapse as ze, CollapseItem as ye, Checkbox as Re, Search as Je } from "@opentiny/vue";
4
+ import { getMergeMeta as Ne, useLayout as Ae, useCanvas as L, getMetaApi as Z, META_APP as G, getOptions as Fe, useHistory as Xe, useBlock as Ke, useMaterial as He, useModal as $e, useProperties as U } from "@opentiny/tiny-engine-meta-register";
5
+ import Ye from "@opentiny/tiny-engine-common/js/i18n";
6
+ import { BlockLinkEvent as qe, SvgButton as Ze, VueMonaco as Ge } from "@opentiny/tiny-engine-common";
7
+ import { iconChevronDown as We, iconYes as Qe } from "@opentiny/vue-icon";
8
+ import { string2Ast as Ee, ast2String as en } from "@opentiny/tiny-engine-common/js/ast";
9
+ import { SwitchConfigurator as nn, VariableConfigurator as on, InputConfigurator as tn, CodeConfigurator as sn } from "@opentiny/tiny-engine-configurator";
10
+ import { PROP_DATA_TYPE as X } from "@opentiny/tiny-engine-common/js/constants";
11
+ import { constants as an, utils as ln } from "@opentiny/tiny-engine-utils";
12
+ const te = {
13
13
  id: "engine.setting.event",
14
14
  title: "高级",
15
15
  type: "setting",
16
16
  align: "left",
17
17
  name: "event",
18
18
  icon: ""
19
- }, J = (n, t) => {
20
- const r = n.__vccOpts || n;
21
- for (const [e, d] of t)
19
+ }, F = (u, o) => {
20
+ const r = u.__vccOpts || u;
21
+ for (const [e, d] of o)
22
22
  r[e] = d;
23
23
  return r;
24
- }, le = R(!1), uo = () => {
25
- le.value = !0;
26
- }, Ie = () => {
27
- le.value = !1;
28
- }, _o = {
24
+ }, ie = J(!1), dn = () => {
25
+ ie.value = !0;
26
+ }, xe = () => {
27
+ ie.value = !1;
28
+ }, rn = {
29
29
  components: {
30
- TinyButton: G,
31
- TinyDialogBox: De
30
+ TinyButton: Y,
31
+ TinyDialogBox: Ce
32
32
  },
33
33
  inheritAttrs: !1,
34
34
  props: {
@@ -37,8 +37,8 @@ const ae = {
37
37
  default: () => ({})
38
38
  }
39
39
  },
40
- setup(n) {
41
- const { BindEventsDialogSidebar: t, BindEventsDialogContent: r } = Pe(ae.id).components, { PLUGIN_NAME: e, activePlugin: d } = we(), { pageState: h } = S(), { getMethods: b, saveMethod: _, highlightMethod: p } = Q(ee.Page), s = W({
40
+ setup(u) {
41
+ const { BindEventsDialogSidebar: o, BindEventsDialogContent: r } = Ne(te.id).components, { PLUGIN_NAME: e, activePlugin: d } = Ae(), { pageState: b } = L(), { getMethods: h, saveMethod: v, highlightMethod: c } = Z(G.Page), i = q({
42
42
  editorContent: "",
43
43
  bindMethodInfo: {},
44
44
  tip: "",
@@ -46,89 +46,89 @@ const ae = {
46
46
  enableExtraParams: !1,
47
47
  isValidParams: !0
48
48
  });
49
- je("context", s);
50
- const E = (f) => {
51
- s.bindMethodInfo = f;
52
- }, o = (f) => {
53
- var D, I;
54
- if (!f)
49
+ Oe("context", i);
50
+ const E = (g) => {
51
+ i.bindMethodInfo = g;
52
+ }, n = (g) => {
53
+ var P, N;
54
+ if (!g)
55
55
  return;
56
- const m = (D = n.eventBinding) == null ? void 0 : D.eventName;
56
+ const m = (P = u.eventBinding) == null ? void 0 : P.eventName;
57
57
  if (!m)
58
58
  return;
59
- const v = (I = h == null ? void 0 : h.currentSchema) == null ? void 0 : I.props;
60
- if (!v)
59
+ const f = (N = b == null ? void 0 : b.currentSchema) == null ? void 0 : N.props;
60
+ if (!f)
61
61
  return;
62
- const { name: V, extra: A } = f;
63
- n[m] || (v[m] = {
62
+ const { name: V, extra: I } = g;
63
+ u[m] || (f[m] = {
64
64
  type: "JSExpression",
65
65
  value: ""
66
- }), A && s.enableExtraParams && (v[m].params = A), v[m].value = `this.${V}`, qe().addHistory();
67
- }, l = () => {
68
- s.tipError = !1, s.tip = "", s.isValidParams = !0;
66
+ }), I && i.enableExtraParams && (f[m].params = I), f[m].value = `this.${V}`, Xe().addHistory();
69
67
  }, a = () => {
70
- let f = "";
71
- if (s.enableExtraParams)
68
+ i.tipError = !1, i.tip = "", i.isValidParams = !0;
69
+ }, s = () => {
70
+ let g = "";
71
+ if (i.enableExtraParams)
72
72
  try {
73
- f = JSON.parse(s.editorContent), s.isValidParams = Array.isArray(f);
73
+ g = JSON.parse(i.editorContent), i.isValidParams = Array.isArray(g);
74
74
  } catch {
75
- s.isValidParams = !1;
75
+ i.isValidParams = !1;
76
76
  }
77
- return f;
78
- }, c = (f) => Array.from({ length: f.length }, (m, v) => `args${v}`).join(","), y = () => {
79
- var v, V, A, D;
80
- let f = (V = (v = b()) == null ? void 0 : v[s.bindMethodInfo.name]) == null ? void 0 : V.value, m = "{}";
81
- if (f) {
82
- let I = {};
77
+ return g;
78
+ }, l = (g) => Array.from({ length: g.length }, (m, f) => `args${f}`).join(","), y = () => {
79
+ var f, V, I, P;
80
+ let g = (V = (f = h()) == null ? void 0 : f[i.bindMethodInfo.name]) == null ? void 0 : V.value, m = "{}";
81
+ if (g) {
82
+ let N = {};
83
83
  try {
84
- I = Ce(f);
84
+ N = Ee(g);
85
85
  } catch {
86
- f = f.replace("function", `function ${s.bindMethodInfo.name}`), I = Ce(f);
86
+ g = g.replace("function", `function ${i.bindMethodInfo.name}`), N = Ee(g);
87
87
  }
88
- (D = (A = I == null ? void 0 : I.program) == null ? void 0 : A.body[0]) != null && D.body && (m = so(I.program.body[0].body));
88
+ (P = (I = N == null ? void 0 : N.program) == null ? void 0 : I.body[0]) != null && P.body && (m = en(N.program.body[0].body));
89
89
  }
90
90
  return m || `{
91
91
  }`;
92
92
  }, C = () => {
93
93
  d(e.Page).then(() => {
94
- ze(() => {
95
- var f;
96
- p && p((f = s.bindMethodInfo) == null ? void 0 : f.name);
94
+ Se(() => {
95
+ var g;
96
+ c && c((g = i.bindMethodInfo) == null ? void 0 : g.name);
97
97
  });
98
98
  });
99
99
  };
100
100
  return {
101
- BindEventsDialogSidebar: t,
101
+ BindEventsDialogSidebar: o,
102
102
  BindEventsDialogContent: r,
103
- state: s,
104
- dialogVisible: le,
103
+ state: i,
104
+ dialogVisible: ie,
105
105
  confirm: async () => {
106
- if (s.tipError)
106
+ if (i.tipError)
107
107
  return;
108
- let f = "event", m = a(), v = f;
109
- if (!s.isValidParams)
108
+ let g = "event", m = s(), f = g;
109
+ if (!i.isValidParams)
110
110
  return;
111
- m && (f = m.join(","), v = c(m)), o({ ...s.bindMethodInfo, params: f, extra: m });
112
- const V = y(), { name: A } = s.bindMethodInfo, D = {
113
- name: A,
114
- content: s.enableExtraParams ? `function ${A}(eventArgs,${v}) ${V}` : `function ${A}(${v}) ${V}`
115
- }, { beforeSaveMethod: I } = Ye(ae.id);
116
- typeof I == "function" && await I(D, s.bindMethodInfo), _ == null || _(D), C(), Ie();
111
+ m && (g = m.join(","), f = l(m)), n({ ...i.bindMethodInfo, params: g, extra: m });
112
+ const V = y(), { name: I } = i.bindMethodInfo, P = {
113
+ name: I,
114
+ content: i.enableExtraParams ? `function ${I}(eventArgs,${f}) ${V}` : `function ${I}(${f}) ${V}`
115
+ }, { beforeSaveMethod: N } = Fe(te.id);
116
+ typeof N == "function" && await N(P, i.bindMethodInfo), v == null || v(P), C(), xe();
117
117
  },
118
118
  closeDialog: () => {
119
- l(), Ie();
119
+ a(), xe();
120
120
  },
121
121
  openedDialog: () => {
122
- var f, m, v;
123
- s.enableExtraParams = !!((m = (f = n.eventBinding) == null ? void 0 : f.params) != null && m.length), s.editorContent = JSON.stringify(((v = n.eventBinding) == null ? void 0 : v.params) || [], null, 2), l();
122
+ var g, m, f;
123
+ i.enableExtraParams = !!((m = (g = u.eventBinding) == null ? void 0 : g.params) != null && m.length), i.editorContent = JSON.stringify(((f = u.eventBinding) == null ? void 0 : f.params) || [], null, 2), a();
124
124
  },
125
125
  selectMethod: E
126
126
  };
127
127
  }
128
- }, vo = (n) => (H("data-v-c1779b8d"), n = n(), Y(), n), fo = /* @__PURE__ */ vo(() => /* @__PURE__ */ i("div", { class: "bind-event-dialog-tip" }, " 选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。 ", -1)), go = { class: "bind-event-dialog-content" }, ho = { class: "bind-dialog-footer" };
129
- function bo(n, t, r, e, d, h) {
130
- const b = x("tiny-button"), _ = x("tiny-dialog-box");
131
- return g(), B(_, {
128
+ }, cn = { class: "bind-event-dialog-content" }, mn = { class: "bind-dialog-footer" };
129
+ function pn(u, o, r, e, d, b) {
130
+ const h = x("tiny-button"), v = x("tiny-dialog-box");
131
+ return _(), w(v, {
132
132
  visible: e.dialogVisible,
133
133
  title: "事件绑定",
134
134
  width: "50%",
@@ -139,38 +139,38 @@ function bo(n, t, r, e, d, h) {
139
139
  onOpened: e.openedDialog
140
140
  }, {
141
141
  footer: k(() => [
142
- i("div", ho, [
143
- u(b, { onClick: e.closeDialog }, {
144
- default: k(() => [
145
- L("取 消")
146
- ]),
142
+ t("div", mn, [
143
+ p(h, { onClick: e.closeDialog }, {
144
+ default: k(() => o[0] || (o[0] = [
145
+ O("取 消")
146
+ ])),
147
147
  _: 1
148
148
  }, 8, ["onClick"]),
149
- u(b, {
149
+ p(h, {
150
150
  type: "info",
151
151
  onClick: e.confirm
152
152
  }, {
153
- default: k(() => [
154
- L("确 定")
155
- ]),
153
+ default: k(() => o[1] || (o[1] = [
154
+ O("确 定")
155
+ ])),
156
156
  _: 1
157
157
  }, 8, ["onClick"])
158
158
  ])
159
159
  ]),
160
160
  default: k(() => [
161
- fo,
162
- i("div", go, [
163
- (g(), B(be(e.BindEventsDialogSidebar), {
161
+ o[2] || (o[2] = t("div", { class: "bind-event-dialog-tip" }, " 选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。 ", -1)),
162
+ t("div", cn, [
163
+ (_(), w(fe(e.BindEventsDialogSidebar), {
164
164
  dialogVisible: e.dialogVisible,
165
165
  eventBinding: r.eventBinding
166
166
  }, null, 8, ["dialogVisible", "eventBinding"])),
167
- (g(), B(be(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
167
+ (_(), w(fe(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
168
168
  ])
169
169
  ]),
170
170
  _: 1
171
171
  }, 8, ["visible", "onClose", "onOpened"]);
172
172
  }
173
- const yo = /* @__PURE__ */ J(_o, [["render", bo], ["__scopeId", "data-v-c1779b8d"]]), Eo = {
173
+ const un = /* @__PURE__ */ F(rn, [["render", pn], ["__scopeId", "data-v-c1779b8d"]]), vn = {
174
174
  onClick: {
175
175
  label: {
176
176
  zh_CN: "点击事件"
@@ -227,7 +227,7 @@ const yo = /* @__PURE__ */ J(_o, [["render", bo], ["__scopeId", "data-v-c1779b8d
227
227
  },
228
228
  defaultValue: ""
229
229
  }
230
- }, xo = [
230
+ }, fn = [
231
231
  "onabort",
232
232
  "onafterprint",
233
233
  "onanimationend",
@@ -337,10 +337,10 @@ const yo = /* @__PURE__ */ J(_o, [["render", bo], ["__scopeId", "data-v-c1779b8d
337
337
  "onwebkitanimationstart",
338
338
  "onwebkittransitionend",
339
339
  "onwheel"
340
- ], ko = (n) => !!xo.map((r) => {
340
+ ], gn = (u) => !!fn.map((r) => {
341
341
  let e = r[2].toUpperCase();
342
342
  return `${r.substring(0, 2)}${e}${r.substring(3)}`;
343
- }).includes(n), Vo = { class: "footer" }, Co = {
343
+ }).includes(u), _n = { class: "footer" }, bn = {
344
344
  __name: "AddEventsDialog",
345
345
  props: {
346
346
  visible: {
@@ -353,11 +353,11 @@ const yo = /* @__PURE__ */ J(_o, [["render", bo], ["__scopeId", "data-v-c1779b8d
353
353
  }
354
354
  },
355
355
  emits: ["closeDialog", "addEvent"],
356
- setup(n, { emit: t }) {
357
- const r = n, e = t, d = W({
356
+ setup(u, { emit: o }) {
357
+ const r = u, e = o, d = q({
358
358
  eventDescription: "",
359
359
  eventName: ""
360
- }), h = R(null), _ = {
360
+ }), b = J(null), v = {
361
361
  eventDescription: [
362
362
  {
363
363
  required: !0,
@@ -367,92 +367,92 @@ const yo = /* @__PURE__ */ J(_o, [["render", bo], ["__scopeId", "data-v-c1779b8d
367
367
  eventName: [
368
368
  { required: !0, message: "必填" },
369
369
  {
370
- validator: (E, o, l) => {
370
+ validator: (E, n, a) => {
371
371
  if (r.componentEvents[d.eventName]) {
372
- l(new Error("事件名已存在"));
372
+ a(new Error("事件名已存在"));
373
373
  return;
374
374
  }
375
- if (!ko(d.eventName)) {
376
- l(new Error("请输入正确的浏览器事件名"));
375
+ if (!gn(d.eventName)) {
376
+ a(new Error("请输入正确的浏览器事件名"));
377
377
  return;
378
378
  }
379
- l();
379
+ a();
380
380
  }
381
381
  }
382
382
  ]
383
- }, p = () => {
383
+ }, c = () => {
384
384
  e("closeDialog");
385
- }, s = () => {
386
- h.value && h.value.validate((E) => {
385
+ }, i = () => {
386
+ b.value && b.value.validate((E) => {
387
387
  if (!E)
388
388
  return;
389
- const { eventName: o, eventDescription: l } = d;
390
- e("addEvent", { eventName: o, eventDescription: l });
389
+ const { eventName: n, eventDescription: a } = d;
390
+ e("addEvent", { eventName: n, eventDescription: a });
391
391
  });
392
392
  };
393
- return (E, o) => (g(), B(P(De), {
394
- visible: n.visible,
393
+ return (E, n) => (_(), w(B(Ce), {
394
+ visible: u.visible,
395
395
  title: "添加新事件",
396
396
  width: "400px",
397
397
  "append-to-body": !0,
398
398
  "close-on-click-modal": !1,
399
- onClose: p
399
+ onClose: c
400
400
  }, {
401
401
  footer: k(() => [
402
- i("div", Vo, [
403
- u(P(G), { onClick: p }, {
404
- default: k(() => [
405
- L(" 取消")
406
- ]),
402
+ t("div", _n, [
403
+ p(B(Y), { onClick: c }, {
404
+ default: k(() => n[2] || (n[2] = [
405
+ O(" 取消")
406
+ ])),
407
407
  _: 1
408
408
  }),
409
- u(P(G), {
409
+ p(B(Y), {
410
410
  type: "primary",
411
- onClick: s
411
+ onClick: i
412
412
  }, {
413
- default: k(() => [
414
- L(" 确定")
415
- ]),
413
+ default: k(() => n[3] || (n[3] = [
414
+ O(" 确定")
415
+ ])),
416
416
  _: 1
417
417
  })
418
418
  ])
419
419
  ]),
420
420
  default: k(() => [
421
- u(P(Re), {
421
+ p(B(Te), {
422
422
  ref_key: "ruleForm",
423
- ref: h,
423
+ ref: b,
424
424
  model: d,
425
- rules: _,
426
- "label-width": "100px",
425
+ rules: v,
426
+ "label-width": "80px",
427
427
  "inline-message": !0,
428
428
  "validate-type": "text",
429
429
  "label-position": "left",
430
430
  class: "add-custom-event-form"
431
431
  }, {
432
432
  default: k(() => [
433
- u(P(ke), {
433
+ p(B(he), {
434
434
  label: "事件函数名",
435
435
  prop: "eventName",
436
436
  required: ""
437
437
  }, {
438
438
  default: k(() => [
439
- u(P(se), {
439
+ p(B(oe), {
440
440
  modelValue: d.eventName,
441
- "onUpdate:modelValue": o[0] || (o[0] = (l) => d.eventName = l),
441
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => d.eventName = a),
442
442
  placeholder: "小驼峰格式,如:onDrag"
443
443
  }, null, 8, ["modelValue"])
444
444
  ]),
445
445
  _: 1
446
446
  }),
447
- u(P(ke), {
447
+ p(B(he), {
448
448
  label: "事件描述",
449
449
  prop: "eventDescription",
450
450
  required: ""
451
451
  }, {
452
452
  default: k(() => [
453
- u(P(se), {
453
+ p(B(oe), {
454
454
  modelValue: d.eventDescription,
455
- "onUpdate:modelValue": o[1] || (o[1] = (l) => d.eventDescription = l)
455
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => d.eventDescription = a)
456
456
  }, null, 8, ["modelValue"])
457
457
  ]),
458
458
  _: 1
@@ -464,19 +464,19 @@ const yo = /* @__PURE__ */ J(_o, [["render", bo], ["__scopeId", "data-v-c1779b8d
464
464
  _: 1
465
465
  }, 8, ["visible"]));
466
466
  }
467
- }, Io = /* @__PURE__ */ J(Co, [["__scopeId", "data-v-c86d1239"]]), No = {
467
+ }, hn = /* @__PURE__ */ F(bn, [["__scopeId", "data-v-87e15e51"]]), yn = {
468
468
  components: {
469
- BlockLinkEvent: eo,
470
- BindEventsDialog: yo,
471
- TinyPopover: Je,
472
- TinyButton: G,
473
- IconChevronDown: no(),
474
- SvgButton: oo,
475
- AddEventsDialog: Io
469
+ BlockLinkEvent: qe,
470
+ BindEventsDialog: un,
471
+ TinyPopover: Ue,
472
+ TinyButton: Y,
473
+ IconChevronDown: We(),
474
+ SvgButton: Ze,
475
+ AddEventsDialog: hn
476
476
  },
477
477
  inheritAttrs: !1,
478
478
  setup() {
479
- const { PLUGIN_NAME: n, activePlugin: t } = we(), { pageState: r } = S(), { getBlockEvents: e, getCurrentBlock: d, removeEventLink: h } = Ze(), { getMaterial: b } = Ge(), { confirm: _ } = We(), p = Qe.global.locale.value, { highlightMethod: s } = Q(ee.Page), { commonEvents: E = {} } = Pe("engine.setting.event").options, o = W({
479
+ const { PLUGIN_NAME: u, activePlugin: o } = Ae(), { pageState: r } = L(), { getBlockEvents: e, getCurrentBlock: d, removeEventLink: b } = Ke(), { getMaterial: h } = He(), { confirm: v } = $e(), c = Ye.global.locale.value, { highlightMethod: i } = Z(G.Page), { commonEvents: E = {} } = Ne("engine.setting.event").options, n = q({
480
480
  eventName: "",
481
481
  // 事件名称
482
482
  eventBinding: null,
@@ -485,62 +485,62 @@ const yo = /* @__PURE__ */ J(_o, [["render", bo], ["__scopeId", "data-v-c1779b8d
485
485
  customEvents: E,
486
486
  bindActions: {},
487
487
  showBindEventDialog: !1
488
- }), l = X(() => !!r.isBlock), a = X(() => Object.keys(o.bindActions).length === 0), c = X(() => ({ ...o.componentEvent, ...o.customEvents }));
489
- Ne(() => {
490
- var D, I, te, de, re;
491
- const m = (D = r == null ? void 0 : r.currentSchema) == null ? void 0 : D.componentName, v = b(m);
492
- o.componentEvent = ((te = (I = v == null ? void 0 : v.content) == null ? void 0 : I.schema) == null ? void 0 : te.events) || ((de = v == null ? void 0 : v.schema) == null ? void 0 : de.events) || {};
493
- const V = ((re = r == null ? void 0 : r.currentSchema) == null ? void 0 : re.props) || {}, A = Object.keys(V);
494
- o.bindActions = {}, Object.entries(c.value).forEach(([j, Le]) => {
495
- var pe, me, ue;
496
- if (A.indexOf(j) > -1) {
497
- const Oe = V[j], { value: Te, params: _e } = Oe, Ue = !_e && ((me = (pe = Te.match(/\((.+)\)$/)) == null ? void 0 : pe[1]) == null ? void 0 : me.split(",")) || _e, O = {
498
- eventName: j,
488
+ }), a = K(() => !!r.isBlock), s = K(() => Object.keys(n.bindActions).length === 0), l = K(() => ({ ...n.componentEvent, ...n.customEvents }));
489
+ ke(() => {
490
+ var P, N, Q, se, ae;
491
+ const m = (P = r == null ? void 0 : r.currentSchema) == null ? void 0 : P.componentName, f = h(m);
492
+ n.componentEvent = ((Q = (N = f == null ? void 0 : f.content) == null ? void 0 : N.schema) == null ? void 0 : Q.events) || ((se = f == null ? void 0 : f.schema) == null ? void 0 : se.events) || {};
493
+ const V = ((ae = r == null ? void 0 : r.currentSchema) == null ? void 0 : ae.props) || {}, I = Object.keys(V);
494
+ n.bindActions = {}, Object.entries(l.value).forEach(([z, Pe]) => {
495
+ var le, de, re;
496
+ if (I.indexOf(z) > -1) {
497
+ const Be = V[z], { value: Me, params: ce } = Be, we = !ce && ((de = (le = Me.match(/\((.+)\)$/)) == null ? void 0 : le[1]) == null ? void 0 : de.split(",")) || ce, S = {
498
+ eventName: z,
499
499
  ref: "",
500
- event: V[j],
501
- params: Ue
500
+ event: V[z],
501
+ params: we
502
502
  };
503
- if (O.event.type === "JSExpression" && (O.ref = O.event.value.replace("this.", "").replace(/\(.*\)$/, "")), r.isBlock) {
504
- O.metaEvent = Le;
505
- const ve = e(d()), fe = (ue = r == null ? void 0 : r.currentSchema) == null ? void 0 : ue.id;
506
- fe && ve && Object.entries(ve).forEach(([$e, T]) => {
507
- var ge, he;
508
- fe === ((ge = T == null ? void 0 : T.linked) == null ? void 0 : ge.id) && j === ((he = T == null ? void 0 : T.linked) == null ? void 0 : he.event) && (O.linked = T.linked, O.linkedEventName = $e);
503
+ if (S.event.type === "JSExpression" && (S.ref = S.event.value.replace("this.", "").replace(/\(.*\)$/, "")), r.isBlock) {
504
+ S.metaEvent = Pe;
505
+ const me = e(d()), pe = (re = r == null ? void 0 : r.currentSchema) == null ? void 0 : re.id;
506
+ pe && me && Object.entries(me).forEach(([Le, T]) => {
507
+ var ue, ve;
508
+ pe === ((ue = T == null ? void 0 : T.linked) == null ? void 0 : ue.id) && z === ((ve = T == null ? void 0 : T.linked) == null ? void 0 : ve.event) && (S.linked = T.linked, S.linkedEventName = Le);
509
509
  });
510
510
  }
511
- o.bindActions[j] = O;
511
+ n.bindActions[z] = S;
512
512
  }
513
513
  });
514
514
  });
515
- const y = (m, v) => {
516
- v && o.bindActions[m.eventName] || (o.eventBinding = m, uo());
515
+ const y = (m, f) => {
516
+ f && n.bindActions[m.eventName] || (n.eventBinding = m, dn());
517
517
  }, C = (m) => {
518
518
  var V;
519
519
  Object.keys(((V = r == null ? void 0 : r.currentSchema) == null ? void 0 : V.props) || {}).indexOf(m.eventName) > -1 && delete r.currentSchema.props[m.eventName];
520
520
  };
521
521
  return {
522
- state: o,
523
- isBlock: l,
524
- isEmpty: a,
522
+ state: n,
523
+ isBlock: a,
524
+ isEmpty: s,
525
525
  delEvent: (m) => {
526
- _({
526
+ v({
527
527
  title: "提示",
528
528
  message: `您确定要删除事件 ${m.eventName} 吗?`,
529
529
  exec() {
530
- r.isBlock && h({ linked: m.linked }), C(m);
530
+ r.isBlock && b({ linked: m.linked }), C(m);
531
531
  }
532
532
  });
533
533
  },
534
534
  openCodePanel: (m) => {
535
- m && t(n.Page).then(() => {
536
- s && s(m.ref);
535
+ m && o(u.Page).then(() => {
536
+ i && i(m.ref);
537
537
  });
538
538
  },
539
539
  openActionDialog: y,
540
540
  handleAddEvent: (m) => {
541
- const { eventName: v, eventDescription: V } = m;
542
- Object.assign(o.customEvents, {
543
- [v]: {
541
+ const { eventName: f, eventDescription: V } = m;
542
+ Object.assign(n.customEvents, {
543
+ [f]: {
544
544
  label: {
545
545
  zh_CN: V
546
546
  },
@@ -554,22 +554,22 @@ const yo = /* @__PURE__ */ J(_o, [["render", bo], ["__scopeId", "data-v-c1779b8d
554
554
  },
555
555
  defaultValue: ""
556
556
  }
557
- }), o.showBindEventDialog = !1;
557
+ }), n.showBindEventDialog = !1;
558
558
  },
559
559
  handleToggleAddEventDialog: (m) => {
560
- o.showBindEventDialog = m;
560
+ n.showBindEventDialog = m;
561
561
  },
562
- renderEventList: c,
563
- locale: p
562
+ renderEventList: l,
563
+ locale: c
564
564
  };
565
565
  }
566
- }, ce = (n) => (H("data-v-24415a29"), n = n(), Y(), n), Ao = { class: "bind-action-list" }, Do = { class: "popover-head" }, Po = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("span", null, "绑定事件", -1)), wo = { class: "bind-event-list" }, Bo = ["onClick"], Mo = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("span", { class: "custom-event-button-text" }, "添加新事件", -1)), So = { class: "bind-actions" }, Lo = { class: "action-item bind-action-item" }, Oo = ["onClick"], To = { class: "event-bind" }, Uo = { class: "action-buttons" }, $o = { class: "empty-action" }, jo = { class: "icon" }, zo = /* @__PURE__ */ ce(() => /* @__PURE__ */ i("div", { class: "center" }, "支持添加原生DOM事件,然后点击 绑定事件 为画布所选元素增加事件", -1));
567
- function Ro(n, t, r, e, d, h) {
568
- const b = x("icon-chevron-down"), _ = x("tiny-button"), p = x("tiny-popover"), s = x("svg-icon"), E = x("block-link-event"), o = x("svg-button"), l = x("bind-events-dialog"), a = x("add-events-dialog");
569
- return g(), N(Z, null, [
570
- i("div", Ao, [
571
- i("div", Do, [
572
- u(p, {
566
+ }, En = { class: "bind-action-list" }, xn = { class: "popover-head" }, kn = { class: "bind-event-list" }, Vn = ["onClick"], Cn = { class: "bind-actions" }, Nn = { class: "action-item bind-action-item" }, An = ["onClick"], Dn = { class: "event-bind" }, In = { class: "action-buttons" }, Pn = { class: "empty-action" }, Bn = { class: "icon" };
567
+ function Mn(u, o, r, e, d, b) {
568
+ const h = x("icon-chevron-down"), v = x("tiny-button"), c = x("tiny-popover"), i = x("svg-icon"), E = x("block-link-event"), n = x("svg-button"), a = x("bind-events-dialog"), s = x("add-events-dialog");
569
+ return _(), A($, null, [
570
+ t("div", En, [
571
+ t("div", xn, [
572
+ p(c, {
573
573
  popperClass: "option-popper setting-advanced-bind-event-list",
574
574
  placement: "bottom-start",
575
575
  trigger: "hover",
@@ -578,312 +578,313 @@ function Ro(n, t, r, e, d, h) {
578
578
  "visible-arrow": !1
579
579
  }, {
580
580
  reference: k(() => [
581
- u(_, { class: "bind-event-btn" }, {
581
+ p(v, { class: "bind-event-btn" }, {
582
582
  default: k(() => [
583
- Po,
584
- u(b, { class: "icon-chevron-down bind-event-btn-icon" })
583
+ o[2] || (o[2] = t("span", null, "绑定事件", -1)),
584
+ p(h, { class: "icon-chevron-down bind-event-btn-icon" })
585
585
  ]),
586
586
  _: 1
587
587
  })
588
588
  ]),
589
589
  default: k(() => [
590
- i("ul", wo, [
591
- (g(!0), N(Z, null, ie(e.renderEventList, (c, y) => {
590
+ t("ul", kn, [
591
+ (_(!0), A($, null, ne(e.renderEventList, (l, y) => {
592
592
  var C;
593
- return g(), N("li", {
593
+ return _(), A("li", {
594
594
  key: y,
595
- class: z(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[y] }]),
596
- onClick: (M) => e.openActionDialog({ eventName: y }, !0)
595
+ class: R(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[y] }]),
596
+ onClick: (D) => e.openActionDialog({ eventName: y }, !0)
597
597
  }, [
598
- i("div", null, w(y) + "  |  " + w(((C = c == null ? void 0 : c.label) == null ? void 0 : C[e.locale]) || y), 1)
599
- ], 10, Bo);
598
+ t("div", null, M(y) + "  |  " + M(((C = l == null ? void 0 : l.label) == null ? void 0 : C[e.locale]) || y), 1)
599
+ ], 10, Vn);
600
600
  }), 128))
601
601
  ])
602
602
  ]),
603
603
  _: 1
604
604
  }),
605
- u(_, {
605
+ p(v, {
606
606
  class: "title add-custom-event-button bind-action-button-item",
607
- onClick: t[0] || (t[0] = (c) => e.handleToggleAddEventDialog(!0))
607
+ onClick: o[0] || (o[0] = (l) => e.handleToggleAddEventDialog(!0))
608
608
  }, {
609
609
  default: k(() => [
610
- u(s, {
610
+ p(i, {
611
611
  name: "add",
612
612
  class: "custom-event-button-icon"
613
613
  }),
614
- Mo
614
+ o[3] || (o[3] = t("span", { class: "custom-event-button-text" }, "添加新事件", -1))
615
615
  ]),
616
616
  _: 1
617
617
  })
618
618
  ]),
619
- ye(i("ul", So, [
620
- (g(!0), N(Z, null, ie(e.state.bindActions, (c) => {
619
+ ge(t("ul", Cn, [
620
+ (_(!0), A($, null, ne(e.state.bindActions, (l) => {
621
621
  var y, C;
622
- return g(), N("li", {
623
- key: c.eventName
622
+ return _(), A("li", {
623
+ key: l.eventName
624
624
  }, [
625
- i("div", Lo, [
626
- i("div", {
625
+ t("div", Nn, [
626
+ t("div", {
627
627
  class: "binding-name",
628
- onClick: (M) => e.openActionDialog(c)
628
+ onClick: (D) => e.openActionDialog(l)
629
629
  }, [
630
- i("div", null, [
631
- L(w(c.eventName), 1),
632
- i("span", null, w((C = (y = e.renderEventList[c.eventName]) == null ? void 0 : y.label) == null ? void 0 : C[e.locale]), 1)
630
+ t("div", null, [
631
+ O(M(l.eventName), 1),
632
+ t("span", null, M((C = (y = e.renderEventList[l.eventName]) == null ? void 0 : y.label) == null ? void 0 : C[e.locale]), 1)
633
633
  ]),
634
- i("div", {
635
- class: z({ linked: c.linked })
636
- }, w(c.linkedEventName), 3),
637
- i("span", To, w(c.ref), 1)
638
- ], 8, Oo),
639
- i("div", Uo, [
640
- e.isBlock ? (g(), B(E, {
634
+ t("div", {
635
+ class: R({ linked: l.linked })
636
+ }, M(l.linkedEventName), 3),
637
+ t("span", Dn, M(l.ref), 1)
638
+ ], 8, An),
639
+ t("div", In, [
640
+ e.isBlock ? (_(), w(E, {
641
641
  key: 0,
642
- data: c
643
- }, null, 8, ["data"])) : K("", !0),
644
- u(o, {
642
+ data: l
643
+ }, null, 8, ["data"])) : H("", !0),
644
+ p(n, {
645
645
  name: "plugin-icon-page-schema",
646
646
  tips: "定位到代码",
647
647
  placement: "top",
648
- onClick: (M) => e.openCodePanel(c)
648
+ onClick: (D) => e.openCodePanel(l)
649
649
  }, null, 8, ["onClick"]),
650
- u(o, {
650
+ p(n, {
651
651
  name: "setting",
652
652
  tips: "设置",
653
653
  placement: "top",
654
- onClick: (M) => e.openActionDialog(c, !1)
654
+ onClick: (D) => e.openActionDialog(l, !1)
655
655
  }, null, 8, ["onClick"]),
656
- u(o, {
656
+ p(n, {
657
657
  name: "delete",
658
658
  tips: "删除",
659
659
  placement: "top",
660
- onClick: (M) => e.delEvent(c)
660
+ onClick: (D) => e.delEvent(l)
661
661
  }, null, 8, ["onClick"])
662
662
  ])
663
663
  ])
664
664
  ]);
665
665
  }), 128))
666
666
  ], 512), [
667
- [Ee, !e.isEmpty]
667
+ [_e, !e.isEmpty]
668
668
  ]),
669
- ye(i("div", $o, [
670
- i("div", jo, [
671
- u(s, {
669
+ ge(t("div", Pn, [
670
+ t("div", Bn, [
671
+ p(i, {
672
672
  name: "empty-action",
673
673
  class: "empty-action-icon"
674
674
  })
675
675
  ]),
676
- zo
676
+ o[4] || (o[4] = t("div", { class: "center" }, "支持添加原生DOM事件,然后点击 绑定事件 为画布所选元素增加事件", -1))
677
677
  ], 512), [
678
- [Ee, e.isEmpty]
678
+ [_e, e.isEmpty]
679
679
  ])
680
680
  ]),
681
- u(l, {
681
+ p(a, {
682
682
  eventBinding: e.state.eventBinding
683
683
  }, null, 8, ["eventBinding"]),
684
- u(a, {
684
+ p(s, {
685
685
  visible: e.state.showBindEventDialog,
686
686
  componentEvents: e.renderEventList,
687
- onCloseDialog: t[1] || (t[1] = (c) => e.handleToggleAddEventDialog(!1)),
687
+ onCloseDialog: o[1] || (o[1] = (l) => e.handleToggleAddEventDialog(!1)),
688
688
  onAddEvent: e.handleAddEvent
689
689
  }, null, 8, ["visible", "componentEvents", "onAddEvent"])
690
690
  ], 64);
691
691
  }
692
- const Jo = /* @__PURE__ */ J(No, [["render", Ro], ["__scopeId", "data-v-24415a29"]]), { DEFAULT_LOOP_NAME: $ } = po, { string2Obj: Fo } = mo, Xo = {
692
+ const wn = /* @__PURE__ */ F(yn, [["render", Mn], ["__scopeId", "data-v-d2c5d4fa"]]), { DEFAULT_LOOP_NAME: j } = an, { string2Obj: Ln } = ln, On = {
693
693
  components: {
694
- SwitchConfigurator: ao,
695
- TinyTooltip: Fe,
696
- VariableConfigurator: lo,
697
- InputConfigurator: co,
698
- CodeConfigurator: ro
694
+ SwitchConfigurator: nn,
695
+ TinyTooltip: je,
696
+ VariableConfigurator: on,
697
+ InputConfigurator: tn,
698
+ CodeConfigurator: sn
699
699
  },
700
700
  inheritAttrs: !1,
701
701
  setup() {
702
- const { pageState: n } = S(), t = R(!1), r = X(() => {
703
- var o;
704
- return ((o = t.value) == null ? void 0 : o.type) === F.JSEXPRESSION;
702
+ const { pageState: u } = L(), o = J(!1), r = K(() => {
703
+ var n;
704
+ return ((n = o.value) == null ? void 0 : n.type) === X.JSEXPRESSION;
705
705
  }), e = () => {
706
- var o, l;
707
- return ((l = (o = U().getSchema()) == null ? void 0 : o.loopArgs) == null ? void 0 : l[1]) || $.INDEX;
708
- }, d = W({
706
+ var n, a;
707
+ return ((a = (n = U().getSchema()) == null ? void 0 : n.loopArgs) == null ? void 0 : a[1]) || j.INDEX;
708
+ }, d = q({
709
709
  loopData: {
710
- type: F.JSEXPRESSION,
710
+ type: X.JSEXPRESSION,
711
711
  value: "[]"
712
712
  },
713
713
  loopItem: "item",
714
714
  loopIndex: "index",
715
- isLoop: X(() => {
716
- var o;
717
- return ((o = d.loopData) == null ? void 0 : o.type) === F.JSEXPRESSION;
715
+ isLoop: K(() => {
716
+ var n;
717
+ return ((n = d.loopData) == null ? void 0 : n.type) === X.JSEXPRESSION;
718
718
  }),
719
719
  loopKey: "",
720
720
  shouldUpdate: !1
721
721
  });
722
- xe(
723
- () => [n == null ? void 0 : n.currentSchema, d.shouldUpdate],
724
- ([o]) => {
725
- var l, a, c, y;
726
- t.value = (o == null ? void 0 : o.condition) === void 0 ? !0 : o == null ? void 0 : o.condition, d.loopData = o == null ? void 0 : o.loop, d.loopItem = ((l = o == null ? void 0 : o.loopArgs) == null ? void 0 : l[0]) || "", d.loopIndex = ((a = o == null ? void 0 : o.loopArgs) == null ? void 0 : a[1]) || "", d.loopKey = ((y = (c = o == null ? void 0 : o.props) == null ? void 0 : c.key) == null ? void 0 : y.value) || "";
722
+ be(
723
+ () => [u == null ? void 0 : u.currentSchema, d.shouldUpdate],
724
+ ([n]) => {
725
+ var a, s, l, y;
726
+ o.value = (n == null ? void 0 : n.condition) === void 0 ? !0 : n == null ? void 0 : n.condition, d.loopData = n == null ? void 0 : n.loop, d.loopItem = ((a = n == null ? void 0 : n.loopArgs) == null ? void 0 : a[0]) || "", d.loopIndex = ((s = n == null ? void 0 : n.loopArgs) == null ? void 0 : s[1]) || "", d.loopKey = ((y = (l = n == null ? void 0 : n.props) == null ? void 0 : l.key) == null ? void 0 : y.value) || "";
727
727
  }
728
728
  );
729
- const h = (o = "") => {
730
- o = o.replace(/\s*/g, "");
731
- const { getSchema: l, setProp: a } = U(), c = l();
732
- if (!c)
729
+ const b = (n = "") => {
730
+ var D;
731
+ n = n.replace(/\s*/g, "");
732
+ const { getSchema: a, setProp: s } = U(), l = a();
733
+ if (!l)
733
734
  return;
734
- const y = Number(o).toString() !== "NaN";
735
- let C = c.props.key;
736
- o && !y && (C = {
737
- type: F.JSEXPRESSION,
738
- value: o
739
- }), o || (d.isLoop ? C = {
740
- type: F.JSEXPRESSION,
735
+ const y = Number(n).toString() !== "NaN";
736
+ let C = (D = l.props) == null ? void 0 : D.key;
737
+ n && !y && (C = {
738
+ type: X.JSEXPRESSION,
739
+ value: n
740
+ }), n || (d.isLoop ? C = {
741
+ type: X.JSEXPRESSION,
741
742
  value: e()
742
- } : C = ""), a("key", C);
743
+ } : C = ""), s("key", C);
743
744
  };
744
- xe([() => d.isLoop, () => d.loopIndex], () => {
745
- !d.loopKey && d.isLoop && h(e()), d.isLoop || h("");
745
+ be([() => d.isLoop, () => d.loopIndex], () => {
746
+ !d.loopKey && d.isLoop && b(e()), d.isLoop || b("");
746
747
  });
747
- const b = () => {
748
- var o;
749
- d.loopData = (o = U().getSchema()) == null ? void 0 : o.loop;
750
- }, _ = (o) => {
751
- const { getSchema: l } = U(), a = l();
752
- if (!a)
748
+ const h = () => {
749
+ var n;
750
+ d.loopData = (n = U().getSchema()) == null ? void 0 : n.loop;
751
+ }, v = (n) => {
752
+ const { getSchema: a } = U(), s = a();
753
+ if (!s)
753
754
  return;
754
- const { operateNode: c } = S();
755
- if (o === !1 || o != null && o.type)
756
- c({ type: "updateAttributes", id: a.id, value: { condition: o } });
755
+ const { operateNode: l } = L();
756
+ if (n === !1 || n != null && n.type)
757
+ l({ type: "updateAttributes", id: s.id, value: { condition: n } });
757
758
  else {
758
- const { condition: y, children: C, ...M } = a;
759
- c({ type: "updateAttributes", id: a.id, value: { ...M }, overwrite: !0 });
759
+ const { condition: y, children: C, ...D } = s;
760
+ l({ type: "updateAttributes", id: s.id, value: { ...D }, overwrite: !0 });
760
761
  }
761
- S().canvasApi.value.updateRect(), t.value = o;
762
- }, p = (o) => {
763
- const l = U().getSchema();
764
- let a = l.loopArgs;
765
- const { operateNode: c } = S();
766
- a ? a[1] = o || $.INDEX : a = [$.ITEM, o], c({ type: "updateAttributes", id: l.id, value: { loopArgs: a } });
762
+ L().canvasApi.value.updateRect(), o.value = n;
763
+ }, c = (n) => {
764
+ const a = U().getSchema();
765
+ let s = a.loopArgs;
766
+ const { operateNode: l } = L();
767
+ s ? s[1] = n || j.INDEX : s = [j.ITEM, n], l({ type: "updateAttributes", id: a.id, value: { loopArgs: s } });
767
768
  };
768
769
  return {
769
- condition: t,
770
- setConfig: _,
770
+ condition: o,
771
+ setConfig: v,
771
772
  isBind: r,
772
773
  state: d,
773
- setLoop: (o) => {
774
- const { operateNode: l } = S(), { getSchema: a } = U(), c = a();
775
- if (o) {
776
- const y = o != null && o.type ? o : Fo(o);
777
- l({ type: "updateAttributes", id: c.id, value: { loop: y } }), p($.INDEX);
774
+ setLoop: (n) => {
775
+ const { operateNode: a } = L(), { getSchema: s } = U(), l = s();
776
+ if (n) {
777
+ const y = n != null && n.type ? n : Ln(n);
778
+ a({ type: "updateAttributes", id: l.id, value: { loop: y } }), c(j.INDEX);
778
779
  } else {
779
- h();
780
- const { loop: y, loopArgs: C, children: M, ...oe } = c;
781
- l({ type: "updateAttributes", id: c.id, value: oe, overwrite: !0 });
780
+ b();
781
+ const { loop: y, loopArgs: C, children: D, ...W } = l;
782
+ a({ type: "updateAttributes", id: l.id, value: W, overwrite: !0 });
782
783
  }
783
784
  d.shouldUpdate = !d.shouldUpdate;
784
785
  },
785
- setLoopItem: (o) => {
786
- const l = U().getSchema();
787
- let a = l.loopArgs;
788
- const { operateNode: c } = S();
789
- a ? a[0] = o || $.ITEM : a = [o, $.INDEX], c({ type: "updateAttributes", id: l.id, value: { loopArgs: a } });
786
+ setLoopItem: (n) => {
787
+ const a = U().getSchema();
788
+ let s = a.loopArgs;
789
+ const { operateNode: l } = L();
790
+ s ? s[0] = n || j.ITEM : s = [n, j.INDEX], l({ type: "updateAttributes", id: a.id, value: { loopArgs: s } });
790
791
  },
791
- DEFAULT_LOOP_NAME: $,
792
- openEditor: b,
793
- setLoopIndex: p,
794
- setLoopKey: h,
792
+ DEFAULT_LOOP_NAME: j,
793
+ openEditor: h,
794
+ setLoopIndex: c,
795
+ setLoopKey: b,
795
796
  getIndexName: e
796
797
  };
797
798
  }
798
- }, q = (n) => (H("data-v-97aa1139"), n = n(), Y(), n), Ko = { class: "advanced-config-container" }, Ho = { class: "advnce-config" }, Yo = /* @__PURE__ */ q(() => /* @__PURE__ */ i("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)), qo = { class: "advanced-config-form-item" }, Zo = ["title"], Go = { class: "advnce-config" }, Wo = /* @__PURE__ */ q(() => /* @__PURE__ */ i("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)), Qo = { class: "advanced-config-form-item" }, et = ["title"], ot = { class: "advnce-config" }, tt = /* @__PURE__ */ q(() => /* @__PURE__ */ i("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)), nt = { class: "advanced-config-form-item" }, it = { class: "advnce-config" }, st = /* @__PURE__ */ q(() => /* @__PURE__ */ i("label", { class: "text-ellipsis-multiple" }, "索引变量名", -1)), at = { class: "advanced-config-form-item" }, lt = { class: "advnce-config" }, ct = /* @__PURE__ */ q(() => /* @__PURE__ */ i("label", { class: "text-ellipsis-multiple" }, "key", -1)), dt = { class: "advanced-config-form-item" };
799
- function rt(n, t, r, e, d, h) {
800
- var o, l;
801
- const b = x("switch-configurator"), _ = x("variable-configurator"), p = x("code-configurator"), s = x("input-configurator"), E = x("tiny-tooltip");
802
- return g(), N("div", Ko, [
803
- i("div", Ho, [
804
- Yo,
805
- i("div", qo, [
806
- e.isBind ? (g(), N("div", {
799
+ }, Sn = { class: "advanced-config-container" }, Tn = { class: "advnce-config" }, Un = { class: "advanced-config-form-item" }, jn = ["title"], zn = { class: "advnce-config loop-data-item" }, Rn = { class: "advanced-config-form-item" }, Jn = ["title"], Fn = { class: "advnce-config" }, Xn = { class: "advanced-config-form-item" }, Kn = { class: "advnce-config" }, Hn = { class: "advanced-config-form-item" }, $n = { class: "advnce-config" }, Yn = { class: "advanced-config-form-item" };
800
+ function qn(u, o, r, e, d, b) {
801
+ var n, a;
802
+ const h = x("switch-configurator"), v = x("variable-configurator"), c = x("code-configurator"), i = x("input-configurator"), E = x("tiny-tooltip");
803
+ return _(), A("div", Sn, [
804
+ t("div", Tn, [
805
+ o[6] || (o[6] = t("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)),
806
+ t("div", Un, [
807
+ e.isBind ? (_(), A("div", {
807
808
  key: 1,
808
809
  class: "binding-state text-ellipsis-multiple",
809
810
  title: e.condition.value
810
- }, " 已绑定:" + w(e.condition.value), 9, Zo)) : (g(), B(b, {
811
+ }, " 已绑定:" + M(e.condition.value), 9, jn)) : (_(), w(h, {
811
812
  key: 0,
812
813
  modelValue: e.condition,
813
814
  "onUpdate:modelValue": e.setConfig
814
815
  }, null, 8, ["modelValue", "onUpdate:modelValue"])),
815
- u(_, {
816
+ p(v, {
816
817
  modelValue: e.condition,
817
818
  "onUpdate:modelValue": [
818
- t[0] || (t[0] = (a) => e.condition = a),
819
+ o[0] || (o[0] = (s) => e.condition = s),
819
820
  e.setConfig
820
821
  ],
821
822
  name: "advance"
822
823
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
823
824
  ])
824
825
  ]),
825
- i("div", Go, [
826
- Wo,
827
- i("div", Qo, [
828
- e.state.isLoop ? (g(), N("div", {
826
+ t("div", zn, [
827
+ o[7] || (o[7] = t("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)),
828
+ t("div", Rn, [
829
+ e.state.isLoop ? (_(), A("div", {
829
830
  key: 1,
830
831
  class: "binding-state text-ellipsis-multiple",
831
- title: (o = e.state.loopData) == null ? void 0 : o.value
832
- }, " 已绑定:" + w((l = e.state.loopData) == null ? void 0 : l.value), 9, et)) : (g(), B(p, {
832
+ title: (n = e.state.loopData) == null ? void 0 : n.value
833
+ }, " 已绑定:" + M((a = e.state.loopData) == null ? void 0 : a.value), 9, Jn)) : (_(), w(c, {
833
834
  key: 0,
834
835
  modelValue: e.state.loopData,
835
836
  "onUpdate:modelValue": [
836
- t[1] || (t[1] = (a) => e.state.loopData = a),
837
+ o[1] || (o[1] = (s) => e.state.loopData = s),
837
838
  e.setLoop
838
839
  ],
839
840
  "data-type": "JSExpression",
840
841
  onOpen: e.openEditor
841
842
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onOpen"])),
842
- u(_, {
843
+ p(v, {
843
844
  modelValue: e.state.loopData,
844
845
  "onUpdate:modelValue": [
845
- t[2] || (t[2] = (a) => e.state.loopData = a),
846
+ o[2] || (o[2] = (s) => e.state.loopData = s),
846
847
  e.setLoop
847
848
  ],
848
849
  name: "advance"
849
850
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
850
851
  ])
851
852
  ]),
852
- i("div", ot, [
853
- tt,
854
- i("div", nt, [
855
- u(s, {
853
+ t("div", Fn, [
854
+ o[8] || (o[8] = t("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)),
855
+ t("div", Xn, [
856
+ p(i, {
856
857
  modelValue: e.state.loopItem,
857
858
  "onUpdate:modelValue": [
858
- t[3] || (t[3] = (a) => e.state.loopItem = a),
859
+ o[3] || (o[3] = (s) => e.state.loopItem = s),
859
860
  e.setLoopItem
860
861
  ],
861
862
  placeholder: `默认值为:${e.DEFAULT_LOOP_NAME.ITEM}`
862
863
  }, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
863
864
  ])
864
865
  ]),
865
- i("div", it, [
866
- st,
867
- i("div", at, [
868
- u(s, {
866
+ t("div", Kn, [
867
+ o[9] || (o[9] = t("label", { class: "text-ellipsis-multiple" }, "索引变量名", -1)),
868
+ t("div", Hn, [
869
+ p(i, {
869
870
  modelValue: e.state.loopIndex,
870
871
  "onUpdate:modelValue": [
871
- t[4] || (t[4] = (a) => e.state.loopIndex = a),
872
+ o[4] || (o[4] = (s) => e.state.loopIndex = s),
872
873
  e.setLoopIndex
873
874
  ],
874
875
  placeholder: `默认值为:${e.DEFAULT_LOOP_NAME.INDEX}`
875
876
  }, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
876
877
  ])
877
878
  ]),
878
- i("div", lt, [
879
- ct,
880
- i("div", dt, [
881
- u(E, { content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存" }, {
879
+ t("div", $n, [
880
+ o[10] || (o[10] = t("label", { class: "text-ellipsis-multiple" }, "key", -1)),
881
+ t("div", Yn, [
882
+ p(E, { content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存" }, {
882
883
  default: k(() => [
883
- u(s, {
884
+ p(i, {
884
885
  modelValue: e.state.loopKey,
885
886
  "onUpdate:modelValue": [
886
- t[5] || (t[5] = (a) => e.state.loopKey = a),
887
+ o[5] || (o[5] = (s) => e.state.loopKey = s),
887
888
  e.setLoopKey
888
889
  ],
889
890
  placeholder: `默认为索引名:${e.getIndexName()}`
@@ -895,30 +896,30 @@ function rt(n, t, r, e, d, h) {
895
896
  ])
896
897
  ]);
897
898
  }
898
- const pt = /* @__PURE__ */ J(Xo, [["render", rt], ["__scopeId", "data-v-97aa1139"]]), mt = {
899
+ const Zn = /* @__PURE__ */ F(On, [["render", qn], ["__scopeId", "data-v-f44b8182"]]), Gn = {
899
900
  __name: "Main",
900
- setup(n) {
901
- const t = R(["bindEvent", "advancedConfig"]);
902
- return (r, e) => (g(), B(P(Xe), {
903
- modelValue: t.value,
904
- "onUpdate:modelValue": e[0] || (e[0] = (d) => t.value = d)
901
+ setup(u) {
902
+ const o = J(["bindEvent", "advancedConfig"]);
903
+ return (r, e) => (_(), w(B(ze), {
904
+ modelValue: o.value,
905
+ "onUpdate:modelValue": e[0] || (e[0] = (d) => o.value = d)
905
906
  }, {
906
907
  default: k(() => [
907
- u(P(Ve), {
908
+ p(B(ye), {
908
909
  title: "事件绑定",
909
910
  name: "bindEvent"
910
911
  }, {
911
912
  default: k(() => [
912
- u(Jo)
913
+ p(wn)
913
914
  ]),
914
915
  _: 1
915
916
  }),
916
- u(P(Ve), {
917
+ p(B(ye), {
917
918
  title: "高级配置",
918
919
  name: "advancedConfig"
919
920
  }, {
920
921
  default: k(() => [
921
- u(pt)
922
+ p(Zn)
922
923
  ]),
923
924
  _: 1
924
925
  })
@@ -926,115 +927,115 @@ const pt = /* @__PURE__ */ J(Xo, [["render", rt], ["__scopeId", "data-v-97aa1139
926
927
  _: 1
927
928
  }, 8, ["modelValue"]));
928
929
  }
929
- }, Be = "newMethod", ut = /[^0-9a-zA-Z_$]/, _t = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, ne = {
930
+ }, De = "newMethod", Wn = /[^0-9a-zA-Z_$]/, Qn = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, ee = {
930
931
  default: "选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)",
931
932
  exist: "方法名称已存在",
932
933
  ruleInvalid: "请输入有效的方法名,可以由字母、数字、下划线、$ 符号组成,不能以数字开头",
933
934
  empty: "方法名称不能为空"
934
- }, vt = {
935
+ }, eo = {
935
936
  components: {
936
- MonacoEditor: to,
937
- TinyInput: se,
938
- TinyCheckbox: Ke
937
+ MonacoEditor: Ge,
938
+ TinyInput: oe,
939
+ TinyCheckbox: Re
939
940
  },
940
941
  props: {
941
942
  dialogVisible: Boolean
942
943
  },
943
944
  setup() {
944
- const { getMethodNameList: n } = Q(ee.Page), t = Ae("context"), r = {
945
+ const { getMethodNameList: u } = Z(G.Page), o = Ve("context"), r = {
945
946
  language: "json",
946
947
  lineNumbers: !1,
947
948
  minimap: {
948
949
  enabled: !1
949
950
  }
950
- }, e = (p) => {
951
- t.editorContent = p;
952
- }, d = (p) => !p, h = (p) => n == null ? void 0 : n().includes(p), b = (p) => !_t.test(p);
951
+ }, e = (c) => {
952
+ o.editorContent = c;
953
+ }, d = (c) => !c, b = (c) => u == null ? void 0 : u().includes(c), h = (c) => !Qn.test(c);
953
954
  return {
954
- NEW_METHOD_TYPE: Be,
955
- context: t,
955
+ NEW_METHOD_TYPE: De,
956
+ context: o,
956
957
  editorOptions: r,
957
- change: (p) => {
958
- const s = [
959
- { validator: d, tip: ne.empty },
960
- { validator: h, tip: ne.exist },
961
- { validator: b, tip: ne.ruleInvalid }
958
+ change: (c) => {
959
+ const i = [
960
+ { validator: d, tip: ee.empty },
961
+ { validator: b, tip: ee.exist },
962
+ { validator: h, tip: ee.ruleInvalid }
962
963
  ];
963
- for (let E = 0; E < s.length; E++) {
964
- const o = s[E];
965
- if (o.validator(p)) {
966
- t.tipError = !0, t.tip = o.tip;
964
+ for (let E = 0; E < i.length; E++) {
965
+ const n = i[E];
966
+ if (n.validator(c)) {
967
+ o.tipError = !0, o.tip = n.tip;
967
968
  return;
968
969
  }
969
970
  }
970
- t.tipError = !1, t.tip = "";
971
+ o.tipError = !1, o.tip = "";
971
972
  },
972
973
  editorContentChange: e
973
974
  };
974
975
  }
975
- }, Me = (n) => (H("data-v-2807a818"), n = n(), Y(), n), ft = { class: "content-right" }, gt = /* @__PURE__ */ Me(() => /* @__PURE__ */ i("div", { class: "content-right-title" }, "方法名称", -1)), ht = { class: "new-action-tip" }, bt = { class: "content-right-title" }, yt = { class: "set-params-tip" }, Et = /* @__PURE__ */ Me(() => /* @__PURE__ */ i("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)), xt = { class: "content-right-monaco" }, kt = {
976
+ }, no = { class: "content-right" }, oo = { class: "new-action-tip" }, to = { class: "content-right-title" }, io = { class: "set-params-tip" }, so = { class: "content-right-monaco" }, ao = {
976
977
  key: 1,
977
978
  class: "mark"
978
- }, Vt = {
979
+ }, lo = {
979
980
  key: 0,
980
981
  class: "params-tip"
981
982
  };
982
- function Ct(n, t, r, e, d, h) {
983
- const b = x("tiny-input"), _ = x("tiny-checkbox"), p = x("monaco-editor");
984
- return g(), N("div", ft, [
985
- i("div", {
986
- class: z(["content-right-top", { "tip-error": e.context.tipError }])
983
+ function ro(u, o, r, e, d, b) {
984
+ const h = x("tiny-input"), v = x("tiny-checkbox"), c = x("monaco-editor");
985
+ return _(), A("div", no, [
986
+ t("div", {
987
+ class: R(["content-right-top", { "tip-error": e.context.tipError }])
987
988
  }, [
988
- gt,
989
- u(b, {
989
+ o[2] || (o[2] = t("div", { class: "content-right-title" }, "方法名称", -1)),
990
+ p(h, {
990
991
  modelValue: e.context.bindMethodInfo.name,
991
992
  "onUpdate:modelValue": [
992
- t[0] || (t[0] = (s) => e.context.bindMethodInfo.name = s),
993
+ o[0] || (o[0] = (i) => e.context.bindMethodInfo.name = i),
993
994
  e.change
994
995
  ],
995
996
  disabled: e.context.bindMethodInfo.type !== e.NEW_METHOD_TYPE,
996
- class: z([{ "status-error": e.context.tipError }]),
997
+ class: R([{ "status-error": e.context.tipError }]),
997
998
  placeholder: "请从左侧选择一个方法进行绑定,或者选择添加新方法,输入自定义方法名称。"
998
999
  }, null, 8, ["modelValue", "disabled", "class", "onUpdate:modelValue"]),
999
- i("div", ht, w(e.context.tip), 1)
1000
+ t("div", oo, M(e.context.tip), 1)
1000
1001
  ], 2),
1001
- i("div", {
1002
- class: z(["content-right-bottom", { "tip-error": !e.context.isValidParams }])
1002
+ t("div", {
1003
+ class: R(["content-right-bottom", { "tip-error": !e.context.isValidParams }])
1003
1004
  }, [
1004
- i("div", bt, [
1005
- u(_, {
1005
+ t("div", to, [
1006
+ p(v, {
1006
1007
  modelValue: e.context.enableExtraParams,
1007
- "onUpdate:modelValue": t[1] || (t[1] = (s) => e.context.enableExtraParams = s),
1008
+ "onUpdate:modelValue": o[1] || (o[1] = (i) => e.context.enableExtraParams = i),
1008
1009
  name: "tiny-checkbox"
1009
1010
  }, {
1010
- default: k(() => [
1011
- L("扩展参数设置")
1012
- ]),
1011
+ default: k(() => o[3] || (o[3] = [
1012
+ O("扩展参数设置")
1013
+ ])),
1013
1014
  _: 1
1014
1015
  }, 8, ["modelValue"]),
1015
- i("div", yt, [
1016
- Et,
1017
- L(" 如: " + w(e.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
1016
+ t("div", io, [
1017
+ o[4] || (o[4] = t("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)),
1018
+ O(" 如: " + M(e.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
1018
1019
  ])
1019
1020
  ]),
1020
- i("div", xt, [
1021
- r.dialogVisible ? (g(), B(p, {
1021
+ t("div", so, [
1022
+ r.dialogVisible ? (_(), w(c, {
1022
1023
  key: 0,
1023
1024
  value: e.context.editorContent,
1024
1025
  options: e.editorOptions,
1025
1026
  onChange: e.editorContentChange,
1026
1027
  class: "monaco-editor"
1027
- }, null, 8, ["value", "options", "onChange"])) : K("", !0),
1028
- e.context.enableExtraParams ? K("", !0) : (g(), N("div", kt))
1028
+ }, null, 8, ["value", "options", "onChange"])) : H("", !0),
1029
+ e.context.enableExtraParams ? H("", !0) : (_(), A("div", ao))
1029
1030
  ]),
1030
- !e.context.isValidParams && e.context.enableExtraParams ? (g(), N("div", Vt, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : K("", !0)
1031
+ !e.context.isValidParams && e.context.enableExtraParams ? (_(), A("div", lo, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : H("", !0)
1031
1032
  ], 2)
1032
1033
  ]);
1033
1034
  }
1034
- const It = /* @__PURE__ */ J(vt, [["render", Ct], ["__scopeId", "data-v-2807a818"]]), Nt = {
1035
+ const co = /* @__PURE__ */ F(eo, [["render", ro], ["__scopeId", "data-v-2807a818"]]), mo = {
1035
1036
  components: {
1036
- TinySearch: He,
1037
- IconYes: io()
1037
+ TinySearch: Je,
1038
+ IconYes: Qe()
1038
1039
  },
1039
1040
  props: {
1040
1041
  eventBinding: {
@@ -1042,77 +1043,77 @@ const It = /* @__PURE__ */ J(vt, [["render", Ct], ["__scopeId", "data-v-2807a818
1042
1043
  default: () => ({})
1043
1044
  }
1044
1045
  },
1045
- setup(n) {
1046
- const { getMethodNameList: t } = Q(ee.Page), r = R(""), e = R([]), d = Ae("context"), h = (_, p) => {
1047
- const s = _.map((l) => {
1048
- var a;
1049
- return Number.parseInt((a = l.match(/\d+$/)) == null ? void 0 : a[0]) || 0;
1050
- }).sort((l, a) => l - a).pop();
1051
- let o = `${(p == null ? void 0 : p.replace(ut, "_")) || ""}New`;
1052
- return s > -1 && (o += `${s + 1}`), o;
1053
- }, b = (_) => {
1054
- d.bindMethodInfo = _;
1046
+ setup(u) {
1047
+ const { getMethodNameList: o } = Z(G.Page), r = J(""), e = J([]), d = Ve("context"), b = (v, c) => {
1048
+ const i = v.map((a) => {
1049
+ var s;
1050
+ return Number.parseInt((s = a.match(/\d+$/)) == null ? void 0 : s[0]) || 0;
1051
+ }).sort((a, s) => a - s).pop();
1052
+ let n = `${(c == null ? void 0 : c.replace(Wn, "_")) || ""}New`;
1053
+ return i > -1 && (n += `${i + 1}`), n;
1054
+ }, h = (v) => {
1055
+ d.bindMethodInfo = v;
1055
1056
  };
1056
- return Ne(() => {
1057
- var l, a;
1058
- const _ = (l = n.eventBinding) == null ? void 0 : l.eventName, p = (t == null ? void 0 : t().filter((c) => c.includes(_))) || [], E = {
1057
+ return ke(() => {
1058
+ var a, s;
1059
+ const v = (a = u.eventBinding) == null ? void 0 : a.eventName, c = (o == null ? void 0 : o().filter((l) => l.includes(v))) || [], E = {
1059
1060
  title: "添加新方法",
1060
- name: h(p, _),
1061
- type: Be
1061
+ name: b(c, v),
1062
+ type: De
1062
1063
  };
1063
- (a = n.eventBinding) != null && a.ref ? b({ name: n.eventBinding.ref }) : b(E);
1064
- const o = (t == null ? void 0 : t().filter((c) => c.includes(r.value)).map((c) => ({ name: c }))) || [];
1065
- e.value = [E, ...o];
1064
+ (s = u.eventBinding) != null && s.ref ? h({ name: u.eventBinding.ref }) : h(E);
1065
+ const n = (o == null ? void 0 : o().filter((l) => l.includes(r.value)).map((l) => ({ name: l }))) || [];
1066
+ e.value = [E, ...n];
1066
1067
  }), {
1067
1068
  context: d,
1068
1069
  searchValue: r,
1069
1070
  filteredMethodList: e,
1070
- selectMethod: b
1071
+ selectMethod: h
1071
1072
  };
1072
1073
  }
1073
- }, At = (n) => (H("data-v-1d973569"), n = n(), Y(), n), Dt = { class: "dialog-content-left" }, Pt = /* @__PURE__ */ At(() => /* @__PURE__ */ i("div", { class: "left-title" }, "响应方法", -1)), wt = { class: "left-list-wrap" }, Bt = { class: "left-action-list" }, Mt = { class: "action-list-wrap" }, St = ["onClick"];
1074
- function Lt(n, t, r, e, d, h) {
1075
- const b = x("tiny-search"), _ = x("icon-yes");
1076
- return g(), N("div", Dt, [
1077
- Pt,
1078
- i("div", wt, [
1079
- i("div", Bt, [
1080
- u(b, {
1074
+ }, po = { class: "dialog-content-left" }, uo = { class: "left-list-wrap" }, vo = { class: "left-action-list" }, fo = { class: "action-list-wrap" }, go = ["onClick"];
1075
+ function _o(u, o, r, e, d, b) {
1076
+ const h = x("tiny-search"), v = x("icon-yes");
1077
+ return _(), A("div", po, [
1078
+ o[1] || (o[1] = t("div", { class: "left-title" }, "响应方法", -1)),
1079
+ t("div", uo, [
1080
+ t("div", vo, [
1081
+ p(h, {
1081
1082
  modelValue: e.searchValue,
1082
- "onUpdate:modelValue": t[0] || (t[0] = (p) => e.searchValue = p),
1083
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => e.searchValue = c),
1083
1084
  placeholder: "搜索"
1084
1085
  }, null, 8, ["modelValue"]),
1085
- i("ul", Mt, [
1086
- (g(!0), N(Z, null, ie(e.filteredMethodList, (p) => (g(), N("li", {
1087
- key: p.name,
1088
- onClick: (s) => e.selectMethod(p)
1086
+ t("ul", fo, [
1087
+ (_(!0), A($, null, ne(e.filteredMethodList, (c) => (_(), A("li", {
1088
+ key: c.name,
1089
+ onClick: (i) => e.selectMethod(c)
1089
1090
  }, [
1090
- i("div", {
1091
- class: z(["action-name", { active: p.name === e.context.bindMethodInfo.name }])
1091
+ t("div", {
1092
+ class: R(["action-name", { active: c.name === e.context.bindMethodInfo.name }])
1092
1093
  }, [
1093
- L(w(p.title || p.name) + " ", 1),
1094
- p.name === e.context.bindMethodInfo.name ? (g(), B(_, {
1094
+ O(M(c.title || c.name) + " ", 1),
1095
+ c.name === e.context.bindMethodInfo.name ? (_(), w(v, {
1095
1096
  key: 0,
1096
1097
  class: "action-selected-icon"
1097
- })) : K("", !0)
1098
+ })) : H("", !0)
1098
1099
  ], 2)
1099
- ], 8, St))), 128))
1100
+ ], 8, go))), 128))
1100
1101
  ])
1101
1102
  ])
1102
1103
  ])
1103
1104
  ]);
1104
1105
  }
1105
- const Ot = /* @__PURE__ */ J(Nt, [["render", Lt], ["__scopeId", "data-v-1d973569"]]), Yt = {
1106
- ...ae,
1107
- entry: mt,
1106
+ const bo = /* @__PURE__ */ F(mo, [["render", _o], ["__scopeId", "data-v-1d973569"]]), Po = {
1107
+ ...te,
1108
+ entry: Gn,
1108
1109
  options: {
1109
- commonEvents: Eo
1110
+ commonEvents: vn
1110
1111
  },
1111
1112
  components: {
1112
- BindEventsDialogSidebar: Ot,
1113
- BindEventsDialogContent: It
1113
+ BindEventsDialogSidebar: bo,
1114
+ BindEventsDialogContent: co
1114
1115
  }
1115
1116
  };
1116
1117
  export {
1117
- Yt as default
1118
+ Po as default
1118
1119
  };