react-big-screen 0.0.25 → 0.0.26

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.
Files changed (42) hide show
  1. package/es/{attributes-CtQvGbYt.mjs → attributes-BEr36PPS.mjs} +1 -1
  2. package/es/{attributes-BbimeCWH.mjs → attributes-BorgmEuq.mjs} +1 -1
  3. package/es/{attributes-CRXnxBzA.mjs → attributes-BqpzJUpw.mjs} +2 -2
  4. package/es/{attributes-CT0FOCY5.mjs → attributes-C1A9908m.mjs} +1 -1
  5. package/es/{attributes-DsE3dkzP.mjs → attributes-CF-lP4Tl.mjs} +1 -1
  6. package/es/{attributes-BVf57pkp.mjs → attributes-CLFZcWAB.mjs} +1 -1
  7. package/es/{attributes-aebdh3-2.mjs → attributes-DUaK076s.mjs} +1 -1
  8. package/es/{attributes-Dz98d9lm.mjs → attributes-DZOgwszX.mjs} +1 -1
  9. package/es/{attributes-BU4RteR4.mjs → attributes-Dfr3b13g.mjs} +1 -1
  10. package/es/{attributes-BpbbmYhM.mjs → attributes-SrukxCct.mjs} +1 -1
  11. package/es/{attributes-CMthjycV.mjs → attributes-pYXM3BGl.mjs} +1 -1
  12. package/es/{attributes-B-HnT330.mjs → attributes-zB7QAb6A.mjs} +1 -1
  13. package/es/{index-D7TCGxYg.mjs → index-B6qPIrOx.mjs} +2 -2
  14. package/es/{index-DW5eZVLq.mjs → index-BKv9EAtX.mjs} +2 -2
  15. package/es/{index-CVCPzSmu.mjs → index-BTEqUeDS.mjs} +2 -2
  16. package/es/{index-COVxsHS9.mjs → index-BmzrDQHQ.mjs} +3 -3
  17. package/es/{index-sSfWkA8B.mjs → index-BocA4dcF.mjs} +2 -2
  18. package/es/{index-ChS976cJ.mjs → index-Bs2yu7J6.mjs} +2 -2
  19. package/es/{index-CCU-VzDv.mjs → index-BvJ4xx2h.mjs} +1 -1
  20. package/es/{index-V6j7Zu7r.mjs → index-C2aQoFOi.mjs} +2 -2
  21. package/es/{index-BoLXnAtC.mjs → index-CIs39Kyq.mjs} +3 -3
  22. package/es/{index-gBfOXBIy.mjs → index-CX8Y7AOe.mjs} +2 -2
  23. package/es/{index-BydqrGsF.mjs → index-Cr2RXjtr.mjs} +34 -34
  24. package/es/{index-qyKdx0SV.mjs → index-CraAaVS_.mjs} +2 -2
  25. package/es/{index-DC_DhKaS.mjs → index-CtKpbpyM.mjs} +3 -3
  26. package/es/{index-BTio6V_c.mjs → index-D8v1cc5M.mjs} +2 -2
  27. package/es/{index-ByNVYAww.mjs → index-DHdde3-c.mjs} +2 -2
  28. package/es/{index-D8iQUy0r.mjs → index-DM0HOT8p.mjs} +2 -2
  29. package/es/{index-By-60WbF.mjs → index-DeSSSWVT.mjs} +2 -2
  30. package/es/{index-CIspZGHv.mjs → index-Dk3V3zbH.mjs} +2 -2
  31. package/es/{index-CW1RuHQK.mjs → index-DmEGqsGs.mjs} +3 -3
  32. package/es/{index-BuyncOQP.mjs → index-Dp3cAb00.mjs} +2 -2
  33. package/es/{index-C1IN4HrE.mjs → index-Qui7yLq3.mjs} +2 -2
  34. package/es/{index-CFg0WKFQ.mjs → index-YvM6Nke0.mjs} +840 -840
  35. package/es/{index-BJWDg_cD.mjs → index-_zn5qv_O.mjs} +2 -2
  36. package/es/{index-oK1Pyk5T.mjs → index-hkMT846_.mjs} +2 -2
  37. package/es/{index-GzFjRCz_.mjs → index-ycFZ60KR.mjs} +1 -1
  38. package/es/{index-BlOuO44L.mjs → index-zozSTDVn.mjs} +2 -2
  39. package/es/index.mjs +1 -1
  40. package/es/{selectPage-BdrK7e7G.mjs → selectPage-1ojYk6EF.mjs} +1 -1
  41. package/es/{useCurrentPageId-CPdhqp51.mjs → useCurrentPageId-DG0SfHzH.mjs} +1 -1
  42. package/package.json +1 -1
@@ -1,40 +1,40 @@
1
- var yn = Object.defineProperty;
2
- var vn = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ee = (e, t, n) => vn(e, typeof t != "symbol" ? t + "" : t, n);
1
+ var vn = Object.defineProperty;
2
+ var bn = (e, t, n) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var ee = (e, t, n) => bn(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as l, jsxs as g, Fragment as W } from "react/jsx-runtime";
5
- import Tt, { useRef as j, useEffect as E, useMemo as L, useState as S, forwardRef as bn, useImperativeHandle as Cn, Suspense as zt, createContext as xn, useContext as In } from "react";
6
- import { DownOutlined as kn, ReloadOutlined as Z, CloseOutlined as Sn, ArrowUpOutlined as et, ArrowRightOutlined as Nn, ArrowDownOutlined as tt, ArrowLeftOutlined as wn, QuestionCircleOutlined as En, UploadOutlined as An, VerticalAlignBottomOutlined as $t, ClearOutlined as Rt, TranslationOutlined as Ln, SaveOutlined as Q, GithubFilled as Dn, LockOutlined as Ft, EyeOutlined as On, EyeInvisibleOutlined as Pn, RightOutlined as Bn, VerticalAlignTopOutlined as Mn, UnlockOutlined as jn, BlockOutlined as Tn, DisconnectOutlined as zn, CopyOutlined as $n, DeleteOutlined as de, StarOutlined as dt, BorderOuterOutlined as Rn, BorderBottomOutlined as Fn, DownloadOutlined as Hn, LoadingOutlined as Ht, EditOutlined as Kt, BarsOutlined as Kn, FileOutlined as Un, AppstoreOutlined as qn, FileTextOutlined as Jn, ApartmentOutlined as Wn, BankOutlined as Vn, HistoryOutlined as Gn, PlusOutlined as rt, RedoOutlined as Xn, SettingOutlined as Yn } from "@ant-design/icons";
7
- import { message as A, Tooltip as $, InputNumber as le, Popover as st, Slider as Zn, Space as D, Dropdown as be, Button as K, Input as Qn, Collapse as Ct, Form as M, Modal as re, Descriptions as je, Tree as pn, Row as nt, Col as H, Checkbox as we, Switch as Ut, Tabs as ei, Empty as xt } from "antd";
8
- import R from "classnames";
9
- import { R as k, u as N, E as ti, a as ni, b as ii, c as ut, s as li, L as ci, d as ai, e as qt, f as ht, g as it, l as Te, h as It, i as oi, j as kt, I as ze, k as di, m as ri } from "./index-BydqrGsF.mjs";
5
+ import zt, { useRef as j, useEffect as E, useMemo as L, useState as N, forwardRef as Cn, useImperativeHandle as xn, Suspense as $t, createContext as In, useContext as kn } from "react";
6
+ import { DownOutlined as Sn, ReloadOutlined as Z, CloseOutlined as Nn, ArrowUpOutlined as et, ArrowRightOutlined as wn, ArrowDownOutlined as tt, ArrowLeftOutlined as En, QuestionCircleOutlined as An, UploadOutlined as Ln, VerticalAlignBottomOutlined as Rt, ClearOutlined as Ft, TranslationOutlined as Dn, SaveOutlined as Q, GithubFilled as On, LockOutlined as Ht, EyeOutlined as Pn, EyeInvisibleOutlined as Bn, RightOutlined as Mn, VerticalAlignTopOutlined as jn, UnlockOutlined as Tn, BlockOutlined as zn, DisconnectOutlined as $n, CopyOutlined as Rn, DeleteOutlined as de, StarOutlined as dt, BorderOuterOutlined as Fn, BorderBottomOutlined as Hn, DownloadOutlined as Kn, LoadingOutlined as Kt, EditOutlined as Ut, BarsOutlined as Un, FileOutlined as qn, AppstoreOutlined as Jn, FileTextOutlined as Wn, ApartmentOutlined as Vn, BankOutlined as Gn, HistoryOutlined as Xn, PlusOutlined as rt, RedoOutlined as Yn, SettingOutlined as Zn } from "@ant-design/icons";
7
+ import { message as A, Tooltip as z, InputNumber as le, Popover as st, Slider as Qn, Space as D, Dropdown as be, Button as K, Input as pn, Collapse as Ct, Form as M, Modal as re, Descriptions as je, Tree as ei, Row as nt, Col as H, Checkbox as we, Switch as qt, Tabs as ti, Empty as xt } from "antd";
8
+ import $ from "classnames";
9
+ import { R as k, u as w, E as ni, a as ii, b as li, c as ut, s as ci, L as ai, d as oi, e as Jt, f as ht, g as it, l as Te, h as It, i as di, j as kt, I as ze, k as ri, m as si } from "./index-Cr2RXjtr.mjs";
10
10
  import "localforage";
11
- import { createPortal as si } from "react-dom";
12
- import { createRoot as Jt } from "react-dom/client";
11
+ import { createPortal as ui } from "react-dom";
12
+ import { createRoot as Wt } from "react-dom/client";
13
13
  import "driver.js";
14
14
  import "driver.js/dist/driver.css";
15
- import { cloneDeep as Wt, debounce as ui, groupBy as hi, throttle as Vt } from "lodash-es";
16
- import { u as Ee, i as Ae, a as gt, b as Gt, c as Xt, g as ae, d as gi, e as _i, f as mi, h as fi, j as Yt, s as St, P as yi, k as vi, l as bi } from "./index-D8iQUy0r.mjs";
17
- import { useUpdateEffect as _t, useUnmount as Zt, useRequest as Qt } from "ahooks";
15
+ import { cloneDeep as Vt, debounce as hi, groupBy as gi, throttle as Gt } from "lodash-es";
16
+ import { u as Ee, i as Ae, a as gt, b as Xt, c as Yt, g as ae, d as _i, e as mi, f as fi, h as yi, j as Zt, s as St, P as vi, k as bi, l as Ci } from "./index-DM0HOT8p.mjs";
17
+ import { useUpdateEffect as _t, useUnmount as Qt, useRequest as pt } from "ahooks";
18
18
  import "react-color";
19
- import { I as p, L as Le, a as z, C as Ci, b as $e } from "./Line-CgKiUu04.mjs";
20
- import { I as mt, a as xi } from "./IInputNumber-CEotcbKL.mjs";
19
+ import { I as p, L as Le, a as T, C as xi, b as $e } from "./Line-CgKiUu04.mjs";
20
+ import { I as mt, a as Ii } from "./IInputNumber-CEotcbKL.mjs";
21
21
  import { useTranslation as se } from "react-i18next";
22
22
  import lt from "hotkeys-js";
23
- import Ii from "dayjs";
24
- import { I as U, i as ki, a as Si } from "./index-yEFPa0R2.mjs";
25
- import * as Ni from "monaco-editor/esm/vs/editor/editor.api";
23
+ import ki from "dayjs";
24
+ import { I as U, i as Si, a as Ni } from "./index-yEFPa0R2.mjs";
25
+ import * as wi from "monaco-editor/esm/vs/editor/editor.api";
26
26
  import "monaco-editor/esm/vs/language/json/monaco.contribution";
27
27
  import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
28
28
  import "monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution";
29
29
  import "monaco-editor/esm/vs/language/typescript/monaco.contribution";
30
30
  import ft from "jszip";
31
- import { saveAs as pt } from "file-saver";
32
- import { u as en } from "./useEffectOnce-l5sUTCBG.mjs";
33
- import { u as wi, s as Re } from "./selectPage-BdrK7e7G.mjs";
34
- import { u as Ei } from "./useCurrentPageId-CPdhqp51.mjs";
35
- import { u as tn } from "./useListenRef-B01dENv0.mjs";
36
- import { I as Ce } from "./index-CCU-VzDv.mjs";
37
- async function nn(e) {
31
+ import { saveAs as en } from "file-saver";
32
+ import { u as tn } from "./useEffectOnce-l5sUTCBG.mjs";
33
+ import { u as Ei, s as Re } from "./selectPage-1ojYk6EF.mjs";
34
+ import { u as Ai } from "./useCurrentPageId-DG0SfHzH.mjs";
35
+ import { u as nn } from "./useListenRef-B01dENv0.mjs";
36
+ import { I as Ce } from "./index-BvJ4xx2h.mjs";
37
+ async function ln(e) {
38
38
  return new Promise((t) => {
39
39
  let n = document.createElement("input");
40
40
  n.type = "file", e != null && e.accept && (n.accept = e.accept), n.onchange = (i) => {
@@ -46,10 +46,10 @@ async function nn(e) {
46
46
  }, n.click();
47
47
  });
48
48
  }
49
- async function Ai(e) {
50
- return nn(e).then((t) => ln(t));
49
+ async function Li(e) {
50
+ return ln(e).then((t) => cn(t));
51
51
  }
52
- async function ln(e) {
52
+ async function cn(e) {
53
53
  return new Promise((t) => {
54
54
  if (!e) return "";
55
55
  const n = new FileReader();
@@ -68,7 +68,7 @@ function ct(e, t, n) {
68
68
  e = e.parentElement, i = (o = e == null ? void 0 : e.dataset) == null ? void 0 : o[t];
69
69
  return i;
70
70
  }
71
- function Li(e) {
71
+ function Di(e) {
72
72
  var i;
73
73
  const t = k.getActiveEngine();
74
74
  if (!t) return [];
@@ -78,18 +78,18 @@ function Li(e) {
78
78
  return (o = n == null ? void 0 : n.find) == null ? void 0 : o.call(n, (d) => d.cId === c.cId);
79
79
  });
80
80
  }
81
- function Di(e, t) {
82
- const n = j(), i = j(null), c = j(), { engine: o } = N();
81
+ function Oi(e, t) {
82
+ const n = j(), i = j(null), c = j(), { engine: o } = w();
83
83
  return c.current = t, E(() => () => {
84
84
  var d;
85
85
  (d = n.current) == null || d.call(n);
86
86
  }, []), L(() => {
87
87
  let d = document.createElement("div");
88
88
  document.body.appendChild(d);
89
- let a = Jt(d);
89
+ let a = Wt(d);
90
90
  return a.render(
91
- /* @__PURE__ */ l(ti.Provider, { value: { engine: o }, children: /* @__PURE__ */ l(
92
- ni,
91
+ /* @__PURE__ */ l(ni.Provider, { value: { engine: o }, children: /* @__PURE__ */ l(
92
+ ii,
93
93
  {
94
94
  ref: i,
95
95
  component: e,
@@ -119,35 +119,35 @@ function Di(e, t) {
119
119
  }
120
120
  function ue(e) {
121
121
  return function(t) {
122
- return Di(e, t);
122
+ return Oi(e, t);
123
123
  };
124
124
  }
125
- function Oi() {
126
- const e = ii((t) => t.componentMap);
125
+ function Pi() {
126
+ const e = li((t) => t.componentMap);
127
127
  return L(() => e ? Object.values(e) : [], [e]);
128
128
  }
129
129
  function yt() {
130
- const { engine: e } = N(), [t, n] = S(() => e.instance.getAllSelected());
130
+ const { engine: e } = w(), [t, n] = N(() => e.instance.getAllSelected());
131
131
  return E(() => e.instance.onSelectedChange((i) => {
132
132
  const c = Object.values(i);
133
133
  n((o) => !c.length && !o.length ? o : c);
134
134
  }), []), t;
135
135
  }
136
- function Pi() {
137
- const { engine: e } = N(), [t, n] = S([]);
138
- return en(() => (n(e.favorites.getAll()), e.favorites.onChange((i) => {
136
+ function Bi() {
137
+ const { engine: e } = w(), [t, n] = N([]);
138
+ return tn(() => (n(e.favorites.getAll()), e.favorites.onChange((i) => {
139
139
  n([...i]);
140
140
  }))), t;
141
141
  }
142
- function cn() {
143
- const { engine: e } = N(), [t, n] = S(() => e.history.getHistoryData());
142
+ function an() {
143
+ const { engine: e } = w(), [t, n] = N(() => e.history.getHistoryData());
144
144
  return E(() => {
145
145
  e.history.onChange((i) => {
146
146
  n(i);
147
147
  });
148
148
  }, []), t;
149
149
  }
150
- const Bi = `/**
150
+ const Mi = `/**
151
151
  * 转换request扩展参数函数 (必须包含主函数main)
152
152
  *
153
153
  * @params {value} 默认携带参数或json对象
@@ -158,7 +158,7 @@ const Bi = `/**
158
158
  */
159
159
  function main(value, {origin, target, option}) {
160
160
  return value
161
- }`, Mi = `/**
161
+ }`, ji = `/**
162
162
  * 修改目标componentNode (必须包含主函数main)
163
163
  *
164
164
  * @params {target} 目标componentNode
@@ -174,24 +174,24 @@ function main(target, origin, payload) {
174
174
  dragDirection: "d_dir"
175
175
  // 拖拽大小方向
176
176
  };
177
- function ji(e) {
177
+ function Ti(e) {
178
178
  const t = [];
179
179
  return Object.entries(e).forEach(([n, i]) => {
180
180
  lt(n, i), t.push(() => lt.unbind(n, i));
181
181
  }), () => t.forEach((n) => n());
182
182
  }
183
- function Ti(e) {
184
- E(() => ji(e), []);
183
+ function zi(e) {
184
+ E(() => Ti(e), []);
185
185
  }
186
186
  function at() {
187
187
  const e = k.getActiveEngine();
188
188
  e && (e.componentNode.delete(Oe()), O("删除选中组件"));
189
189
  }
190
- function an() {
190
+ function on() {
191
191
  const e = k.getActiveEngine();
192
192
  e && (e.instance.selectAll(), O("全选组件"));
193
193
  }
194
- function zi() {
194
+ function $i() {
195
195
  const e = k.getActiveEngine();
196
196
  e && (e.instance.getAllSelected().forEach((t) => {
197
197
  const n = e.componentNode.get(t.id);
@@ -200,7 +200,7 @@ function zi() {
200
200
  });
201
201
  }), O("组件左移"));
202
202
  }
203
- function $i() {
203
+ function Ri() {
204
204
  const e = k.getActiveEngine();
205
205
  e && (e.instance.getAllSelected().forEach((t) => {
206
206
  const n = e.componentNode.get(t.id);
@@ -209,7 +209,7 @@ function $i() {
209
209
  });
210
210
  }), O("组件右移动"));
211
211
  }
212
- function Ri() {
212
+ function Fi() {
213
213
  const e = k.getActiveEngine();
214
214
  e && (e.instance.getAllSelected().forEach((t) => {
215
215
  const n = e.componentNode.get(t.id);
@@ -218,7 +218,7 @@ function Ri() {
218
218
  });
219
219
  }), O("组件上移"));
220
220
  }
221
- function Fi() {
221
+ function Hi() {
222
222
  const e = k.getActiveEngine();
223
223
  e && (e.instance.getAllSelected().forEach((t) => {
224
224
  const n = e.componentNode.get(t.id);
@@ -227,7 +227,7 @@ function Fi() {
227
227
  });
228
228
  }), O("组件下移"));
229
229
  }
230
- function on() {
230
+ function dn() {
231
231
  const e = k.getActiveEngine();
232
232
  if (!e) return;
233
233
  const t = Oe(), n = new Set(e.instance.getAllSelected().map((o) => o.id)), i = [], c = e.componentNode.cloneComponentNodes(t, {
@@ -239,7 +239,7 @@ function on() {
239
239
  e.instance.select(i, !0), O("复制组件");
240
240
  });
241
241
  }
242
- function Hi() {
242
+ function Ki() {
243
243
  var t, n;
244
244
  const e = k.getActiveEngine();
245
245
  (n = (t = e == null ? void 0 : e.componentNode) == null ? void 0 : t.clear) == null || n.call(t);
@@ -254,7 +254,7 @@ function De() {
254
254
  const e = k.getActiveEngine();
255
255
  e && e.instance.getAllSelected().length && (e.instance.unselectAll(), O("取消全选组件"));
256
256
  }
257
- function Ki() {
257
+ function Ui() {
258
258
  const e = k.getActiveEngine();
259
259
  if (!e) return;
260
260
  e.instance.getAllSelected().forEach((n) => {
@@ -263,7 +263,7 @@ function Ki() {
263
263
  });
264
264
  }), e.instance.unselectAll();
265
265
  }
266
- function Ui() {
266
+ function qi() {
267
267
  const e = k.getActiveEngine();
268
268
  if (!e) return;
269
269
  e.instance.getAllSelected().forEach((n) => {
@@ -272,7 +272,7 @@ function Ui() {
272
272
  });
273
273
  });
274
274
  }
275
- function qi() {
275
+ function Ji() {
276
276
  const e = k.getActiveEngine();
277
277
  if (!e) return;
278
278
  const t = e.instance.getAllSelected();
@@ -284,7 +284,7 @@ function qi() {
284
284
  });
285
285
  e.componentNode.createGroup(n);
286
286
  }
287
- function Ji() {
287
+ function Wi() {
288
288
  const e = k.getActiveEngine();
289
289
  if (!e) return;
290
290
  const t = e.instance.getAllSelected(), n = Array.from(
@@ -295,7 +295,7 @@ function Ji() {
295
295
  );
296
296
  e.componentNode.unlinkGroup(n), e.instance.unselectAll();
297
297
  }
298
- function Wi() {
298
+ function Vi() {
299
299
  const e = k.getActiveEngine();
300
300
  if (!e) return;
301
301
  const t = e.componentNode.getMaxLevel();
@@ -305,7 +305,7 @@ function Wi() {
305
305
  });
306
306
  });
307
307
  }
308
- function Vi() {
308
+ function Gi() {
309
309
  const e = k.getActiveEngine();
310
310
  if (!e) return;
311
311
  const t = e.componentNode.getMinLevel();
@@ -315,7 +315,7 @@ function Vi() {
315
315
  });
316
316
  });
317
317
  }
318
- function Gi() {
318
+ function Xi() {
319
319
  const e = k.getActiveEngine();
320
320
  if (!e) return;
321
321
  const t = e.componentNode.getMaxLevel();
@@ -326,7 +326,7 @@ function Gi() {
326
326
  });
327
327
  });
328
328
  }
329
- function Xi() {
329
+ function Yi() {
330
330
  const e = k.getActiveEngine();
331
331
  if (!e) return;
332
332
  const t = e.componentNode.getMinLevel();
@@ -337,7 +337,7 @@ function Xi() {
337
337
  });
338
338
  });
339
339
  }
340
- function Yi() {
340
+ function Zi() {
341
341
  const e = k.getActiveEngine();
342
342
  if (!e) return;
343
343
  const t = Oe();
@@ -350,16 +350,16 @@ function Yi() {
350
350
  id: n,
351
351
  name: `收藏${i + 1}`,
352
352
  children: t,
353
- gmtCreate: Ii().format("YYYY-MM-DD HH:mm:ss")
353
+ gmtCreate: ki().format("YYYY-MM-DD HH:mm:ss")
354
354
  });
355
355
  }
356
356
  function Oe() {
357
357
  const e = k.getActiveEngine();
358
358
  if (!e) return [];
359
359
  const t = e.instance.getAllSelected();
360
- return Zi(t.map((n) => n.id));
360
+ return Qi(t.map((n) => n.id));
361
361
  }
362
- function Zi(e) {
362
+ function Qi(e) {
363
363
  const t = k.getActiveEngine();
364
364
  if (!t) return [];
365
365
  const n = Array.isArray(e) ? e : [e];
@@ -377,7 +377,7 @@ function O(e) {
377
377
  setTimeout(async () => {
378
378
  const t = k.getActiveEngine();
379
379
  if (t) {
380
- const n = await t.getJSON(), i = Wt(n);
380
+ const n = await t.getJSON(), i = Vt(n);
381
381
  t.history.add(i, e);
382
382
  }
383
383
  });
@@ -394,7 +394,7 @@ function ot() {
394
394
  const { data: t } = e.history.goForward() || {};
395
395
  t && (t.config.currentMenu = e.config.getConfig().currentMenu, e.loadJSON(t));
396
396
  }
397
- function Qi(e) {
397
+ function pi(e) {
398
398
  const t = k.getActiveEngine();
399
399
  if (!t) return;
400
400
  const { data: n } = t.history.go(e) || {};
@@ -403,8 +403,8 @@ function Qi(e) {
403
403
  function Pe(e) {
404
404
  return lt[e];
405
405
  }
406
- function pi() {
407
- Ti({
406
+ function el() {
407
+ zi({
408
408
  backspace: () => {
409
409
  at();
410
410
  },
@@ -412,21 +412,21 @@ function pi() {
412
412
  at();
413
413
  },
414
414
  "Shift + A": () => {
415
- an();
415
+ on();
416
416
  },
417
417
  left: (e) => {
418
- e.preventDefault(), zi();
418
+ e.preventDefault(), $i();
419
419
  },
420
420
  right: (e) => {
421
- e.preventDefault(), $i();
421
+ e.preventDefault(), Ri();
422
422
  },
423
423
  up: (e) => {
424
- e.preventDefault(), Ri();
424
+ e.preventDefault(), Fi();
425
425
  },
426
426
  down: (e) => {
427
- e.preventDefault(), Fi();
427
+ e.preventDefault(), Hi();
428
428
  },
429
- "Shift + C": () => on(),
429
+ "Shift + C": () => dn(),
430
430
  "Shift + S": () => vt(),
431
431
  "Shift + R": () => De(),
432
432
  "Shift + Z": () => bt(),
@@ -434,27 +434,27 @@ function pi() {
434
434
  "Shift + Ctrl + Z": () => ot()
435
435
  });
436
436
  }
437
- const el = "_page_1ijjl_59", tl = "_page_header_1ijjl_69", nl = "_page_body_1ijjl_74", il = "_page_body_left_1ijjl_79", ll = "_page_body_main_1ijjl_86", cl = "_page_body_right_1ijjl_91", te = {
438
- page: el,
439
- page_header: tl,
440
- page_body: nl,
441
- page_body_left: il,
442
- page_body_main: ll,
443
- page_body_right: cl
444
- }, al = "_header_2phks_59", ol = "_header_flex_2phks_67", dl = "_header_flex_btnContainer_2phks_68", Ie = {
445
- header: al,
446
- header_flex: ol,
447
- header_flex_btnContainer: dl
448
- }, rl = "_tooltipButton_tq7lx_59", sl = "_tooltipButton_hover_tq7lx_70", ul = "_tooltipButton_disabled_tq7lx_73", Fe = {
449
- tooltipButton: rl,
450
- tooltipButton_hover: sl,
451
- tooltipButton_disabled: ul
437
+ const tl = "_page_1ijjl_59", nl = "_page_header_1ijjl_69", il = "_page_body_1ijjl_74", ll = "_page_body_left_1ijjl_79", cl = "_page_body_main_1ijjl_86", al = "_page_body_right_1ijjl_91", te = {
438
+ page: tl,
439
+ page_header: nl,
440
+ page_body: il,
441
+ page_body_left: ll,
442
+ page_body_main: cl,
443
+ page_body_right: al
444
+ }, ol = "_header_2phks_59", dl = "_header_flex_2phks_67", rl = "_header_flex_btnContainer_2phks_68", Ie = {
445
+ header: ol,
446
+ header_flex: dl,
447
+ header_flex_btnContainer: rl
448
+ }, sl = "_tooltipButton_tq7lx_59", ul = "_tooltipButton_hover_tq7lx_70", hl = "_tooltipButton_disabled_tq7lx_73", Fe = {
449
+ tooltipButton: sl,
450
+ tooltipButton_hover: ul,
451
+ tooltipButton_disabled: hl
452
452
  };
453
- function dn(e) {
454
- return /* @__PURE__ */ l($, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
453
+ function rn(e) {
454
+ return /* @__PURE__ */ l(z, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
455
455
  "div",
456
456
  {
457
- className: R(
457
+ className: $(
458
458
  Fe.tooltipButton,
459
459
  (e == null ? void 0 : e.disabled) && Fe.tooltipButton_disabled,
460
460
  !(e != null && e.noHoverClass) && Fe.tooltipButton_hover
@@ -509,11 +509,11 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
509
509
  function Nt(e) {
510
510
  return /* @__PURE__ */ l("svg", { className: "icon", "aria-hidden": "true", children: /* @__PURE__ */ l("use", { xlinkHref: `#${e == null ? void 0 : e.type}` }) });
511
511
  }
512
- const hl = "_sizeBar_1yvet_59", gl = {
513
- sizeBar: hl
514
- }, _l = "_inputNumberWithSuffix_1pwr4_59", ml = "_inputNumberWithSuffix_suffix_1pwr4_63", wt = {
515
- inputNumberWithSuffix: _l,
516
- inputNumberWithSuffix_suffix: ml
512
+ const gl = "_sizeBar_1yvet_59", _l = {
513
+ sizeBar: gl
514
+ }, ml = "_inputNumberWithSuffix_1pwr4_59", fl = "_inputNumberWithSuffix_suffix_1pwr4_63", wt = {
515
+ inputNumberWithSuffix: ml,
516
+ inputNumberWithSuffix_suffix: fl
517
517
  };
518
518
  function Et(e) {
519
519
  const { suffix: t, containerStyle: n, containerClassName: i, ...c } = e;
@@ -521,7 +521,7 @@ function Et(e) {
521
521
  "div",
522
522
  {
523
523
  style: n,
524
- className: R(wt.inputNumberWithSuffix, i),
524
+ className: $(wt.inputNumberWithSuffix, i),
525
525
  children: [
526
526
  /* @__PURE__ */ l(le, { size: "small", style: { width: 70 }, ...c }),
527
527
  t && /* @__PURE__ */ l("div", { className: wt.inputNumberWithSuffix_suffix, children: t })
@@ -529,13 +529,13 @@ function Et(e) {
529
529
  }
530
530
  );
531
531
  }
532
- const fl = {
532
+ const yl = {
533
533
  50: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "50%" }),
534
534
  100: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "100%" }),
535
535
  150: /* @__PURE__ */ l("span", { style: { fontSize: 12 }, children: "150%" }),
536
536
  200: " "
537
537
  };
538
- function yl(e) {
538
+ function vl(e) {
539
539
  const { value: t = 1, isCustom: n } = e, i = Ee(), c = L(() => i.scaleMinZoom * 100, [i]), o = L(() => i.scaleMaxZoom * 100, [i]), d = L(() => i.scaleDefault * 100, [i]), a = L(() => Math.round(t * 100), [t]);
540
540
  function s(r) {
541
541
  var u;
@@ -547,7 +547,7 @@ function yl(e) {
547
547
  {
548
548
  content: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 16 }, children: [
549
549
  /* @__PURE__ */ l(
550
- Zn,
550
+ Qn,
551
551
  {
552
552
  style: { width: 250 },
553
553
  min: c,
@@ -555,7 +555,7 @@ function yl(e) {
555
555
  tooltip: {
556
556
  formatter: (r) => `${r}%`
557
557
  },
558
- marks: fl,
558
+ marks: yl,
559
559
  value: a,
560
560
  onChange: s
561
561
  }
@@ -574,7 +574,7 @@ function yl(e) {
574
574
  }
575
575
  }
576
576
  ),
577
- /* @__PURE__ */ l(dn, { noHoverClass: !0, title: "重置", children: /* @__PURE__ */ l(
577
+ /* @__PURE__ */ l(rn, { noHoverClass: !0, title: "重置", children: /* @__PURE__ */ l(
578
578
  Z,
579
579
  {
580
580
  className: "theme-color icon_clickable",
@@ -587,14 +587,14 @@ function yl(e) {
587
587
  ] }),
588
588
  children: /* @__PURE__ */ g("span", { style: { cursor: "pointer" }, children: [
589
589
  /* @__PURE__ */ l("span", { style: { marginRight: 4 }, children: `${a}%` }),
590
- /* @__PURE__ */ l(kn, {})
590
+ /* @__PURE__ */ l(Sn, {})
591
591
  ] })
592
592
  }
593
593
  );
594
594
  }
595
- function vl() {
596
- const e = Ee(), { engine: t } = N();
597
- return /* @__PURE__ */ g("div", { className: gl.sizeBar, id: "rbs-sizebar", children: [
595
+ function bl() {
596
+ const e = Ee(), { engine: t } = w();
597
+ return /* @__PURE__ */ g("div", { className: _l.sizeBar, id: "rbs-sizebar", children: [
598
598
  /* @__PURE__ */ l(
599
599
  Et,
600
600
  {
@@ -607,7 +607,7 @@ function vl() {
607
607
  }
608
608
  }
609
609
  ),
610
- /* @__PURE__ */ l(Sn, { style: { fontSize: 10 } }),
610
+ /* @__PURE__ */ l(Nn, { style: { fontSize: 10 } }),
611
611
  /* @__PURE__ */ l(
612
612
  Et,
613
613
  {
@@ -621,7 +621,7 @@ function vl() {
621
621
  }
622
622
  ),
623
623
  /* @__PURE__ */ l(
624
- yl,
624
+ vl,
625
625
  {
626
626
  value: e.scale,
627
627
  onChange: (n) => {
@@ -652,7 +652,7 @@ function B({ children: e }) {
652
652
  }
653
653
  );
654
654
  }
655
- function bl() {
655
+ function Cl() {
656
656
  const [e] = se();
657
657
  return /* @__PURE__ */ g(
658
658
  D,
@@ -725,9 +725,9 @@ function bl() {
725
725
  ":"
726
726
  ] }),
727
727
  /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(et, {}) }),
728
- /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(Nn, {}) }),
728
+ /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(wn, {}) }),
729
729
  /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(tt, {}) }),
730
- /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(wn, {}) })
730
+ /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(En, {}) })
731
731
  ] }),
732
732
  /* @__PURE__ */ g(D, { children: [
733
733
  /* @__PURE__ */ g("span", { children: [
@@ -790,15 +790,15 @@ function bl() {
790
790
  }
791
791
  );
792
792
  }
793
- const Cl = ["rbs-screen.top"];
794
- function xl(e = window.location.host) {
793
+ const xl = ["rbs-screen.top"];
794
+ function Il(e = window.location.host) {
795
795
  const t = e == null ? void 0 : e.toLowerCase();
796
- return Cl.some((n) => {
796
+ return xl.some((n) => {
797
797
  var i, c;
798
798
  return (c = t == null ? void 0 : t.includes) == null ? void 0 : c.call(t, (i = n == null ? void 0 : n.toLowerCase) == null ? void 0 : i.call(n));
799
799
  });
800
800
  }
801
- const Il = (e, t, n) => {
801
+ const kl = (e, t, n) => {
802
802
  const i = e[t];
803
803
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((c, o) => {
804
804
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -811,12 +811,12 @@ const Il = (e, t, n) => {
811
811
  );
812
812
  });
813
813
  };
814
- async function kl(e) {
814
+ async function Sl(e) {
815
815
  var i;
816
- const t = await Il(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-BydqrGsF.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-BydqrGsF.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
816
+ const t = await kl(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-Cr2RXjtr.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-Cr2RXjtr.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
817
817
  (i = n == null ? void 0 : n.loadJSON) == null || i.call(n, t);
818
818
  }
819
- function Sl() {
819
+ function Nl() {
820
820
  return /* @__PURE__ */ l(
821
821
  be,
822
822
  {
@@ -829,14 +829,14 @@ function Sl() {
829
829
  }
830
830
  ],
831
831
  onClick({ key: e }) {
832
- kl(e);
832
+ Sl(e);
833
833
  }
834
834
  },
835
835
  children: /* @__PURE__ */ l(K, { size: "small", style: { fontSize: 12 }, id: "rbs-choose-example-button", children: "切换示例" })
836
836
  }
837
837
  );
838
838
  }
839
- function Nl() {
839
+ function wl() {
840
840
  return /* @__PURE__ */ l(
841
841
  K,
842
842
  {
@@ -844,19 +844,19 @@ function Nl() {
844
844
  style: { fontSize: 12 },
845
845
  id: "rbs-starter-help",
846
846
  onClick: () => {
847
- li(!0);
847
+ ci(!0);
848
848
  },
849
849
  children: "新手教程"
850
850
  }
851
851
  );
852
852
  }
853
- const wl = xl();
854
- function El(e) {
855
- const { pageLogo: t, pageToolBar: n } = e, { showLanguage: i = !0, showPreview: c = !0, showSave: o = !0 } = (e == null ? void 0 : e.toolBarOptions) || {}, { engine: d, rbsEngine: a } = N(), [s, r] = se(), h = cn(), u = r.language === ci.zh, _ = L(() => [
853
+ const El = "rbs-tool-bar", At = "rbs-preview", Al = Il();
854
+ function Ll(e) {
855
+ const { pageLogo: t, pageToolBar: n } = e, { showLanguage: i = !0, showPreview: c = !0, showSave: o = !0 } = (e == null ? void 0 : e.toolBarOptions) || {}, { engine: d, rbsEngine: a } = w(), [s, r] = se(), h = an(), u = r.language === ai.zh, _ = L(() => [
856
856
  {
857
857
  key: "shortCutKeys",
858
- description: /* @__PURE__ */ l(bl, {}),
859
- icon: /* @__PURE__ */ l(En, {})
858
+ description: /* @__PURE__ */ l(Cl, {}),
859
+ icon: /* @__PURE__ */ l(An, {})
860
860
  },
861
861
  {
862
862
  key: "undo",
@@ -870,13 +870,13 @@ function El(e) {
870
870
  disabled: !h.isCanGoForward,
871
871
  icon: /* @__PURE__ */ l(Nt, { type: "icon-cancel-undo" })
872
872
  },
873
- { key: "export", description: s("head.export"), icon: /* @__PURE__ */ l(An, {}) },
874
- { key: "import", description: s("head.import"), icon: /* @__PURE__ */ l($t, {}) },
875
- { key: "clear", description: s("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
873
+ { key: "export", description: s("head.export"), icon: /* @__PURE__ */ l(Ln, {}) },
874
+ { key: "import", description: s("head.import"), icon: /* @__PURE__ */ l(Rt, {}) },
875
+ { key: "clear", description: s("head.clear"), icon: /* @__PURE__ */ l(Ft, {}) },
876
876
  i && {
877
877
  key: "language",
878
878
  description: s("head.language", { text: `${u ? "切换英语" : "change chinese"}` }),
879
- icon: /* @__PURE__ */ l(Ln, {})
879
+ icon: /* @__PURE__ */ l(Dn, {})
880
880
  },
881
881
  o && {
882
882
  key: "save",
@@ -887,11 +887,11 @@ function El(e) {
887
887
  function m() {
888
888
  window.open("https://github.com/tangjiahui-cn/react-big-screen.git");
889
889
  }
890
- async function y() {
890
+ async function v() {
891
891
  a == null || a.emit("startPreview", d);
892
892
  }
893
- function x(C) {
894
- switch (C.key) {
893
+ function C(f) {
894
+ switch (f.key) {
895
895
  case "undo":
896
896
  bt();
897
897
  break;
@@ -899,25 +899,25 @@ function El(e) {
899
899
  ot();
900
900
  break;
901
901
  case "export":
902
- d.getJSON().then((P) => {
903
- const T = JSON.stringify(P);
904
- qt(T, "大屏看板.json");
902
+ d.getJSON().then((S) => {
903
+ const P = JSON.stringify(S);
904
+ Jt(P, "大屏看板.json");
905
905
  });
906
906
  break;
907
907
  case "import":
908
- Ai().then((P) => {
909
- if (!P)
908
+ Li().then((S) => {
909
+ if (!S)
910
910
  return A.warn("文件内容不能为空");
911
911
  try {
912
- const T = JSON.parse(P);
913
- d.loadJSON(T);
912
+ const P = JSON.parse(S);
913
+ d.loadJSON(P);
914
914
  } catch {
915
915
  A.error("请上传json格式文件");
916
916
  }
917
917
  });
918
918
  break;
919
919
  case "preview":
920
- y();
920
+ v();
921
921
  break;
922
922
  case "save":
923
923
  vt();
@@ -928,24 +928,24 @@ function El(e) {
928
928
  case "settings":
929
929
  break;
930
930
  case "language":
931
- const w = u ? "en" : "zh";
932
- ai(w), d.config.setConfig({ language: w });
931
+ const x = u ? "en" : "zh";
932
+ oi(x), d.config.setConfig({ language: x });
933
933
  break;
934
934
  }
935
935
  }
936
936
  const b = /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
937
937
  /* @__PURE__ */ l("b", { children: "BigScreen" }),
938
- !wl && /* @__PURE__ */ l(Dn, { style: { cursor: "pointer", fontSize: 16 }, onClick: m })
938
+ !Al && /* @__PURE__ */ l(On, { style: { cursor: "pointer", fontSize: 16 }, onClick: m })
939
939
  ] }), I = /* @__PURE__ */ g(W, { children: [
940
- _.map((C) => /* @__PURE__ */ l(
941
- dn,
940
+ _.map((f) => /* @__PURE__ */ l(
941
+ rn,
942
942
  {
943
- disabled: C == null ? void 0 : C.disabled,
944
- title: C.description,
945
- onClick: () => x(C),
946
- children: C == null ? void 0 : C.icon
943
+ disabled: f == null ? void 0 : f.disabled,
944
+ title: f.description,
945
+ onClick: () => C(f),
946
+ children: f == null ? void 0 : f.icon
947
947
  },
948
- C.key
948
+ f.key
949
949
  )),
950
950
  c && /* @__PURE__ */ l(
951
951
  K,
@@ -953,38 +953,38 @@ function El(e) {
953
953
  type: "primary",
954
954
  size: "small",
955
955
  style: { fontSize: 12 },
956
- id: "rbs-preview",
957
- onClick: y,
956
+ id: At,
957
+ onClick: v,
958
958
  children: "开始预览"
959
959
  }
960
960
  )
961
- ] }), f = "rbs-tool-bar", v = n ? typeof n == "function" ? /* @__PURE__ */ l(n, { origin: I, previewDriverId: f }) : n : I;
961
+ ] }), y = n ? typeof n == "function" ? /* @__PURE__ */ l(n, { origin: I, previewDriverId: At }) : n : I;
962
962
  return /* @__PURE__ */ g("div", { className: Ie.header, children: [
963
963
  t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t : b,
964
- /* @__PURE__ */ l(vl, {}),
964
+ /* @__PURE__ */ l(bl, {}),
965
965
  /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
966
- /* @__PURE__ */ l(Sl, {}),
967
966
  /* @__PURE__ */ l(Nl, {}),
968
- /* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: f, children: v })
967
+ /* @__PURE__ */ l(wl, {}),
968
+ /* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: El, children: y })
969
969
  ] })
970
970
  ] });
971
971
  }
972
- const Al = "_menu_1ueks_59", Ll = "_menu_bar_1ueks_68", Dl = "_menu_main_1ueks_72", He = {
973
- menu: Al,
974
- menu_bar: Ll,
975
- menu_main: Dl
976
- }, Ol = "_library_11n9v_59", Pl = "_library_header_11n9v_72", Bl = "_library_main_11n9v_83", Ke = {
977
- library: Ol,
978
- library_header: Pl,
979
- library_main: Bl
980
- }, Ml = "_componentsBlock_mx05c_59", jl = {
981
- componentsBlock: Ml
982
- }, Tl = "_componentItem_1a82r_59", zl = "_componentItem_body_1a82r_71", $l = "_componentItem_footer_1a82r_80", Ue = {
983
- componentItem: Tl,
984
- componentItem_body: zl,
985
- componentItem_footer: $l
972
+ const Dl = "_menu_1ueks_59", Ol = "_menu_bar_1ueks_68", Pl = "_menu_main_1ueks_72", He = {
973
+ menu: Dl,
974
+ menu_bar: Ol,
975
+ menu_main: Pl
976
+ }, Bl = "_library_11n9v_59", Ml = "_library_header_11n9v_72", jl = "_library_main_11n9v_83", Ke = {
977
+ library: Bl,
978
+ library_header: Ml,
979
+ library_main: jl
980
+ }, Tl = "_componentsBlock_mx05c_59", zl = {
981
+ componentsBlock: Tl
982
+ }, $l = "_componentItem_1a82r_59", Rl = "_componentItem_body_1a82r_71", Fl = "_componentItem_footer_1a82r_80", Ue = {
983
+ componentItem: $l,
984
+ componentItem_body: Rl,
985
+ componentItem_footer: Fl
986
986
  };
987
- class Rl {
987
+ class Hl {
988
988
  constructor() {
989
989
  // style tag.
990
990
  ee(this, "style");
@@ -1001,8 +1001,8 @@ class Rl {
1001
1001
  !this.style || --this.count > 0 || (this.count = 0, this.style.remove(), this.style = void 0);
1002
1002
  }
1003
1003
  }
1004
- const At = new Rl();
1005
- function Fl(e, t) {
1004
+ const Lt = new Hl();
1005
+ function Kl(e, t) {
1006
1006
  let n = !1;
1007
1007
  e.addEventListener("mousedown", c);
1008
1008
  function i(a) {
@@ -1023,7 +1023,7 @@ function Fl(e, t) {
1023
1023
  d(), e.removeEventListener("mousedown", c);
1024
1024
  };
1025
1025
  }
1026
- class Hl {
1026
+ class Ul {
1027
1027
  constructor() {
1028
1028
  ee(this, "isDragging", !1);
1029
1029
  ee(this, "dragOptions", {
@@ -1072,8 +1072,8 @@ class Hl {
1072
1072
  return this.dragOptions;
1073
1073
  }
1074
1074
  }
1075
- const ce = new Hl();
1076
- function rn(e, t) {
1075
+ const ce = new Ul();
1076
+ function sn(e, t) {
1077
1077
  const n = j(t);
1078
1078
  n.current = t, E(() => {
1079
1079
  const i = e.current;
@@ -1081,18 +1081,18 @@ function rn(e, t) {
1081
1081
  console.warn("dom must be set.");
1082
1082
  return;
1083
1083
  }
1084
- const c = Fl(i, {
1084
+ const c = Kl(i, {
1085
1085
  onStart() {
1086
- At.mount(), document.documentElement.classList.add("is-dragging"), ce.setDragOptions(n.current), ce.setIsDragging(!0);
1086
+ Lt.mount(), document.documentElement.classList.add("is-dragging"), ce.setDragOptions(n.current), ce.setIsDragging(!0);
1087
1087
  },
1088
1088
  onEnd() {
1089
- At.unmount(), document.documentElement.classList.remove("is-dragging"), ce.setDragOptions(n.current), ce.setIsDragging(!1);
1089
+ Lt.unmount(), document.documentElement.classList.remove("is-dragging"), ce.setDragOptions(n.current), ce.setIsDragging(!1);
1090
1090
  }
1091
1091
  });
1092
1092
  return () => c();
1093
1093
  }, []);
1094
1094
  }
1095
- function sn(e, t) {
1095
+ function un(e, t) {
1096
1096
  const n = j(t);
1097
1097
  n.current = t, E(() => {
1098
1098
  const { accept: i } = t;
@@ -1116,7 +1116,7 @@ function sn(e, t) {
1116
1116
  }, []);
1117
1117
  }
1118
1118
  function xe(e) {
1119
- const { src: t } = e, [n, i] = S("");
1119
+ const { src: t } = e, [n, i] = N("");
1120
1120
  return E(() => {
1121
1121
  switch (typeof t) {
1122
1122
  case "string":
@@ -1130,9 +1130,9 @@ function xe(e) {
1130
1130
  }
1131
1131
  }, [t]), t ? /* @__PURE__ */ l("img", { style: e == null ? void 0 : e.style, src: n, draggable: !1 }) : /* @__PURE__ */ l("span", { style: { color: "#b8b8b8" }, children: "None" });
1132
1132
  }
1133
- function Kl(e) {
1133
+ function ql(e) {
1134
1134
  const { component: t } = e, n = j(null);
1135
- return rn(n, {
1135
+ return sn(n, {
1136
1136
  type: "create-component",
1137
1137
  data: {
1138
1138
  component: t
@@ -1141,7 +1141,7 @@ function Kl(e) {
1141
1141
  "div",
1142
1142
  {
1143
1143
  style: e == null ? void 0 : e.style,
1144
- className: R(Ue.componentItem, e == null ? void 0 : e.className),
1144
+ className: $(Ue.componentItem, e == null ? void 0 : e.className),
1145
1145
  ref: n,
1146
1146
  children: [
1147
1147
  /* @__PURE__ */ l("div", { className: Ue.componentItem_body, children: /* @__PURE__ */ l(xe, { src: t == null ? void 0 : t.icon, style: { maxWidth: "50%", maxHeight: "50%" } }) }),
@@ -1150,18 +1150,18 @@ function Kl(e) {
1150
1150
  }
1151
1151
  );
1152
1152
  }
1153
- function Ul(e) {
1153
+ function Jl(e) {
1154
1154
  var o;
1155
1155
  const { components: t, column: n = 3 } = e, { width: i, lines: c } = L(() => ({
1156
1156
  width: `${100 / n}%`,
1157
1157
  lines: Math.ceil(t.length / n)
1158
1158
  }), [t, n]);
1159
- return /* @__PURE__ */ g("div", { className: jl.componentsBlock, children: [
1159
+ return /* @__PURE__ */ g("div", { className: zl.componentsBlock, children: [
1160
1160
  !(t != null && t.length) && /* @__PURE__ */ l(U, { description: "暂无组件" }),
1161
1161
  (o = t == null ? void 0 : t.map) == null ? void 0 : o.call(t, (d, a) => {
1162
1162
  const s = a % n === n - 1, r = c === 1 || a > (c - 1) * n - 1;
1163
1163
  return /* @__PURE__ */ l(
1164
- Kl,
1164
+ ql,
1165
1165
  {
1166
1166
  component: d,
1167
1167
  style: {
@@ -1175,40 +1175,40 @@ function Ul(e) {
1175
1175
  })
1176
1176
  ] });
1177
1177
  }
1178
- function Lt(e, t = "") {
1178
+ function Dt(e, t = "") {
1179
1179
  if (!t) return e;
1180
1180
  const n = t.toLowerCase();
1181
1181
  return e.filter((i) => i.cName.toLowerCase().includes(n) || i.cId.toLowerCase().includes(n));
1182
1182
  }
1183
- function ql() {
1184
- const [e, t] = se(), [n, i] = S([]), c = Oi(), [o, d] = S(""), [a, s] = S([]), r = L(() => ({
1183
+ function Wl() {
1184
+ const [e, t] = se(), [n, i] = N([]), c = Pi(), [o, d] = N(""), [a, s] = N([]), r = L(() => ({
1185
1185
  base: e("menu.library.base"),
1186
1186
  charts: e("menu.library.charts"),
1187
1187
  layout: e("menu.library.layout"),
1188
1188
  nav: e("menu.library.nav"),
1189
1189
  unknown: e("menu.library.unknown")
1190
- }), [t.language]), h = L(() => ui((_, m = "") => {
1191
- const y = Lt(_, m);
1192
- s(y);
1190
+ }), [t.language]), h = L(() => hi((_, m = "") => {
1191
+ const v = Dt(_, m);
1192
+ s(v);
1193
1193
  }, 500), []);
1194
1194
  E(() => {
1195
- s(Lt(c, o));
1195
+ s(Dt(c, o));
1196
1196
  }, [c]), _t(() => {
1197
1197
  h(c, o);
1198
1198
  }, [o]);
1199
1199
  const u = L(() => {
1200
1200
  const _ = [], m = Object.entries(
1201
- hi(a, (y) => y.category || "unknown")
1202
- ).map(([y, x]) => (_.push(y), {
1203
- key: y,
1204
- components: x,
1205
- label: r[y] || y
1201
+ gi(a, (v) => v.category || "unknown")
1202
+ ).map(([v, C]) => (_.push(v), {
1203
+ key: v,
1204
+ components: C,
1205
+ label: r[v] || v
1206
1206
  }));
1207
1207
  return i(_), m;
1208
1208
  }, [a, r]);
1209
1209
  return /* @__PURE__ */ g("div", { className: Ke.library, children: [
1210
1210
  /* @__PURE__ */ l("div", { className: Ke.library_header, children: /* @__PURE__ */ l(
1211
- Qn.Search,
1211
+ pn.Search,
1212
1212
  {
1213
1213
  allowClear: !0,
1214
1214
  value: o,
@@ -1225,25 +1225,25 @@ function ql() {
1225
1225
  activeKey: n,
1226
1226
  style: { padding: 0 },
1227
1227
  onChange: (_) => i(_ || []),
1228
- children: u.map((_) => /* @__PURE__ */ l(Ct.Panel, { header: _.label, style: { padding: 0 }, children: /* @__PURE__ */ l(Ul, { components: _.components }) }, _.key))
1228
+ children: u.map((_) => /* @__PURE__ */ l(Ct.Panel, { header: _.label, style: { padding: 0 }, children: /* @__PURE__ */ l(Jl, { components: _.components }) }, _.key))
1229
1229
  }
1230
1230
  ) : /* @__PURE__ */ l(U, { style: { height: "100%", background: "white" } }) })
1231
1231
  ] });
1232
1232
  }
1233
- const Jl = "_componentNodes_x43ss_59", Wl = "_componentNodes_head_x43ss_63", Vl = "_componentNodes_block_x43ss_67", qe = {
1234
- componentNodes: Jl,
1235
- componentNodes_head: Wl,
1236
- componentNodes_block: Vl
1237
- }, Gl = "_componentNodeItem_r9mbq_59", Xl = "_componentNodeItem_selected_r9mbq_65", Yl = "_componentNodeItem_icon_r9mbq_71", Zl = "_componentNodeItem_name_r9mbq_81", Ql = "_componentNodeItem_tail_r9mbq_84", pl = "_componentNodeItem_tail_operatable_r9mbq_95", ne = {
1238
- componentNodeItem: Gl,
1239
- componentNodeItem_selected: Xl,
1240
- componentNodeItem_icon: Yl,
1241
- componentNodeItem_name: Zl,
1242
- componentNodeItem_tail: Ql,
1243
- componentNodeItem_tail_operatable: pl
1233
+ const Vl = "_componentNodes_x43ss_59", Gl = "_componentNodes_head_x43ss_63", Xl = "_componentNodes_block_x43ss_67", qe = {
1234
+ componentNodes: Vl,
1235
+ componentNodes_head: Gl,
1236
+ componentNodes_block: Xl
1237
+ }, Yl = "_componentNodeItem_r9mbq_59", Zl = "_componentNodeItem_selected_r9mbq_65", Ql = "_componentNodeItem_icon_r9mbq_71", pl = "_componentNodeItem_name_r9mbq_81", ec = "_componentNodeItem_tail_r9mbq_84", tc = "_componentNodeItem_tail_operatable_r9mbq_95", ne = {
1238
+ componentNodeItem: Yl,
1239
+ componentNodeItem_selected: Zl,
1240
+ componentNodeItem_icon: Ql,
1241
+ componentNodeItem_name: pl,
1242
+ componentNodeItem_tail: ec,
1243
+ componentNodeItem_tail_operatable: tc
1244
1244
  };
1245
- function ec(e) {
1246
- const { engine: t } = N(), n = j(null), [i, c] = S(e == null ? void 0 : e.componentNode), o = (i == null ? void 0 : i.show) ?? !0, { component: d, instance: a } = L(() => ({
1245
+ function nc(e) {
1246
+ const { engine: t } = w(), n = j(null), [i, c] = N(e == null ? void 0 : e.componentNode), o = (i == null ? void 0 : i.show) ?? !0, { component: d, instance: a } = L(() => ({
1247
1247
  component: t.component.get(i == null ? void 0 : i.cId),
1248
1248
  instance: t.instance.get(i == null ? void 0 : i.id)
1249
1249
  }), [i]);
@@ -1270,7 +1270,7 @@ function ec(e) {
1270
1270
  {
1271
1271
  [`data-${oe.componentNodeId}`]: i.id,
1272
1272
  ref: n,
1273
- className: R(
1273
+ className: $(
1274
1274
  ne.componentNodeItem,
1275
1275
  (e == null ? void 0 : e.isSelected) && ne.componentNodeItem_selected
1276
1276
  ),
@@ -1289,7 +1289,7 @@ function ec(e) {
1289
1289
  /* @__PURE__ */ l("div", { className: ne.componentNodeItem_icon, children: /* @__PURE__ */ l(xe, { src: d == null ? void 0 : d.icon, style: { height: "75%", maxWidth: "100%" } }) }),
1290
1290
  /* @__PURE__ */ l("div", { className: ne.componentNodeItem_name, children: i == null ? void 0 : i.name }),
1291
1291
  /* @__PURE__ */ g("div", { className: ne.componentNodeItem_tail, children: [
1292
- /* @__PURE__ */ l("div", { children: i != null && i.lock ? /* @__PURE__ */ l(Ft, {}) : "" }),
1292
+ /* @__PURE__ */ l("div", { children: i != null && i.lock ? /* @__PURE__ */ l(Ht, {}) : "" }),
1293
1293
  /* @__PURE__ */ l(
1294
1294
  "div",
1295
1295
  {
@@ -1297,7 +1297,7 @@ function ec(e) {
1297
1297
  onMouseDown: (h) => {
1298
1298
  h.stopPropagation(), r(!o);
1299
1299
  },
1300
- children: o ? /* @__PURE__ */ l(On, {}) : /* @__PURE__ */ l(Pn, {})
1300
+ children: o ? /* @__PURE__ */ l(Pn, {}) : /* @__PURE__ */ l(Bn, {})
1301
1301
  }
1302
1302
  )
1303
1303
  ] })
@@ -1305,27 +1305,27 @@ function ec(e) {
1305
1305
  }
1306
1306
  );
1307
1307
  }
1308
- const tc = "_renderContextMenu_vitq8_59", nc = {
1309
- renderContextMenu: tc
1310
- }, ic = "_renderList_p7203_59", lc = "_renderList_disabled_p7203_63", cc = "_renderList_item_p7203_70", ac = "_renderList_item_title_p7203_87", oc = "_renderList_item_unselectable_p7203_94", ge = {
1311
- renderList: ic,
1312
- renderList_disabled: lc,
1313
- renderList_item: cc,
1314
- renderList_item_title: ac,
1315
- renderList_item_unselectable: oc
1316
- }, dc = "_hoverItem_overlay_twv7t_59", rc = {
1317
- hoverItem_overlay: dc
1318
- }, sc = {
1308
+ const ic = "_renderContextMenu_vitq8_59", lc = {
1309
+ renderContextMenu: ic
1310
+ }, cc = "_renderList_p7203_59", ac = "_renderList_disabled_p7203_63", oc = "_renderList_item_p7203_70", dc = "_renderList_item_title_p7203_87", rc = "_renderList_item_unselectable_p7203_94", ge = {
1311
+ renderList: cc,
1312
+ renderList_disabled: ac,
1313
+ renderList_item: oc,
1314
+ renderList_item_title: dc,
1315
+ renderList_item_unselectable: rc
1316
+ }, sc = "_hoverItem_overlay_twv7t_59", uc = {
1317
+ hoverItem_overlay: sc
1318
+ }, hc = {
1319
1319
  top: 0,
1320
1320
  left: 0
1321
1321
  };
1322
- function uc(e) {
1323
- const { engine: t } = N(), { children: n, items: i, onSelect: c, ...o } = e, [d, a] = S(!1), [s, r] = S(sc);
1322
+ function gc(e) {
1323
+ const { engine: t } = w(), { children: n, items: i, onSelect: c, ...o } = e, [d, a] = N(!1), [s, r] = N(hc);
1324
1324
  function h(_) {
1325
- var y, x, b;
1326
- if ((y = e == null ? void 0 : e.onMouseEnter) == null || y.call(e, _), !(i != null && i.length))
1325
+ var v, C, b;
1326
+ if ((v = e == null ? void 0 : e.onMouseEnter) == null || v.call(e, _), !(i != null && i.length))
1327
1327
  return;
1328
- const m = (b = (x = _.target) == null ? void 0 : x.getBoundingClientRect) == null ? void 0 : b.call(x);
1328
+ const m = (b = (C = _.target) == null ? void 0 : C.getBoundingClientRect) == null ? void 0 : b.call(C);
1329
1329
  m && (r({ top: m.top, left: m.left + m.width }), a(!0));
1330
1330
  }
1331
1331
  function u(_) {
@@ -1334,18 +1334,18 @@ function uc(e) {
1334
1334
  }
1335
1335
  return /* @__PURE__ */ g("div", { ...o, onMouseEnter: h, onMouseLeave: u, children: [
1336
1336
  n,
1337
- d && si(
1337
+ d && ui(
1338
1338
  /* @__PURE__ */ l(
1339
1339
  "div",
1340
1340
  {
1341
- className: rc.hoverItem_overlay,
1341
+ className: uc.hoverItem_overlay,
1342
1342
  style: {
1343
1343
  top: s.top,
1344
1344
  left: s.left,
1345
1345
  zIndex: t.componentNode.getMaxLevel()
1346
1346
  },
1347
1347
  children: /* @__PURE__ */ l(
1348
- un,
1348
+ hn,
1349
1349
  {
1350
1350
  items: i,
1351
1351
  onSelect: (_, m) => {
@@ -1359,17 +1359,17 @@ function uc(e) {
1359
1359
  )
1360
1360
  ] });
1361
1361
  }
1362
- function un(e) {
1362
+ function hn(e) {
1363
1363
  var t, n;
1364
1364
  return /* @__PURE__ */ l("div", { className: ge.renderList, children: (n = (t = e == null ? void 0 : e.items) == null ? void 0 : t.map) == null ? void 0 : n.call(t, (i) => {
1365
1365
  var o;
1366
1366
  const c = !(i != null && i.disabled) && ((i == null ? void 0 : i.selectable) ?? (i == null ? void 0 : i.selectable) === void 0);
1367
1367
  return /* @__PURE__ */ g(
1368
- uc,
1368
+ gc,
1369
1369
  {
1370
1370
  items: i == null ? void 0 : i.children,
1371
1371
  style: i == null ? void 0 : i.style,
1372
- className: R(
1372
+ className: $(
1373
1373
  ge.renderList_item,
1374
1374
  (i == null ? void 0 : i.disabled) && ge.renderList_disabled,
1375
1375
  !c && ge.renderList_item_unselectable
@@ -1387,14 +1387,14 @@ function un(e) {
1387
1387
  i == null ? void 0 : i.icon,
1388
1388
  i == null ? void 0 : i.title
1389
1389
  ] }),
1390
- !!((o = i == null ? void 0 : i.children) != null && o.length) && /* @__PURE__ */ l(Bn, { style: { fontSize: "0.75em" } })
1390
+ !!((o = i == null ? void 0 : i.children) != null && o.length) && /* @__PURE__ */ l(Mn, { style: { fontSize: "0.75em" } })
1391
1391
  ]
1392
1392
  },
1393
1393
  i == null ? void 0 : i.key
1394
1394
  );
1395
1395
  }) });
1396
1396
  }
1397
- function hc(e) {
1397
+ function _c(e) {
1398
1398
  const t = j(null);
1399
1399
  return E(() => {
1400
1400
  function n(i) {
@@ -1409,12 +1409,12 @@ function hc(e) {
1409
1409
  {
1410
1410
  ref: t,
1411
1411
  tabIndex: 0,
1412
- className: nc.renderContextMenu,
1412
+ className: lc.renderContextMenu,
1413
1413
  onContextMenu: (n) => {
1414
1414
  n.preventDefault();
1415
1415
  },
1416
1416
  children: /* @__PURE__ */ l(
1417
- un,
1417
+ hn,
1418
1418
  {
1419
1419
  items: e == null ? void 0 : e.items,
1420
1420
  onSelect: (n) => {
@@ -1426,13 +1426,13 @@ function hc(e) {
1426
1426
  }
1427
1427
  );
1428
1428
  }
1429
- function hn(e, t, n, i) {
1429
+ function gn(e, t, n, i) {
1430
1430
  var s;
1431
1431
  if (!n || (i != null && i.onBeforeOpen && (n = ((s = i == null ? void 0 : i.onBeforeOpen) == null ? void 0 : s.call(i, n)) || n), n = n == null ? void 0 : n.filter(Boolean), !(n != null && n.length)))
1432
1432
  return;
1433
1433
  const c = document.createElement("div");
1434
1434
  c.style.position = "fixed", c.style.left = `${e}px`, c.style.top = `${t}px`, typeof (i == null ? void 0 : i.zIndex) == "number" && (c.style.zIndex = `${i == null ? void 0 : i.zIndex}`), document.body.appendChild(c);
1435
- const o = Jt(c);
1435
+ const o = Wt(c);
1436
1436
  let d = !1;
1437
1437
  const a = () => {
1438
1438
  var r, h;
@@ -1440,7 +1440,7 @@ function hn(e, t, n, i) {
1440
1440
  };
1441
1441
  return o.render(
1442
1442
  /* @__PURE__ */ l(
1443
- hc,
1443
+ _c,
1444
1444
  {
1445
1445
  items: n,
1446
1446
  onClickOuter: () => {
@@ -1454,63 +1454,63 @@ function hn(e, t, n, i) {
1454
1454
  )
1455
1455
  ), a;
1456
1456
  }
1457
- const gc = [
1457
+ const mc = [
1458
1458
  {
1459
1459
  key: "top",
1460
- icon: /* @__PURE__ */ l(Mn, {}),
1460
+ icon: /* @__PURE__ */ l(jn, {}),
1461
1461
  title: "置顶",
1462
1462
  style: { borderTop: "1px solid #e8e8e8" },
1463
- onSelect: () => Wi()
1463
+ onSelect: () => Vi()
1464
1464
  },
1465
1465
  {
1466
1466
  key: "bottom",
1467
- icon: /* @__PURE__ */ l($t, {}),
1467
+ icon: /* @__PURE__ */ l(Rt, {}),
1468
1468
  title: "置底",
1469
- onSelect: () => Vi()
1469
+ onSelect: () => Gi()
1470
1470
  },
1471
1471
  {
1472
1472
  key: "levelUp",
1473
1473
  icon: /* @__PURE__ */ l(et, {}),
1474
1474
  title: "上移一层",
1475
- onSelect: () => Gi()
1475
+ onSelect: () => Xi()
1476
1476
  },
1477
1477
  {
1478
1478
  key: "levelDown",
1479
1479
  icon: /* @__PURE__ */ l(tt, {}),
1480
1480
  title: "下移一层",
1481
1481
  style: { borderBottom: "1px solid #e8e8e8" },
1482
- onSelect: () => Xi()
1482
+ onSelect: () => Yi()
1483
1483
  },
1484
1484
  {
1485
1485
  key: "lock",
1486
- icon: /* @__PURE__ */ l(Ft, {}),
1486
+ icon: /* @__PURE__ */ l(Ht, {}),
1487
1487
  title: "锁定",
1488
- onSelect: () => Ki()
1488
+ onSelect: () => Ui()
1489
1489
  },
1490
1490
  {
1491
1491
  key: "unlock",
1492
- icon: /* @__PURE__ */ l(jn, {}),
1492
+ icon: /* @__PURE__ */ l(Tn, {}),
1493
1493
  title: "解锁",
1494
- onSelect: () => Ui()
1494
+ onSelect: () => qi()
1495
1495
  },
1496
1496
  {
1497
1497
  key: "group",
1498
- icon: /* @__PURE__ */ l(Tn, {}),
1498
+ icon: /* @__PURE__ */ l(zn, {}),
1499
1499
  title: "成组",
1500
- onSelect: () => qi()
1500
+ onSelect: () => Ji()
1501
1501
  },
1502
1502
  {
1503
1503
  key: "ungroup",
1504
- icon: /* @__PURE__ */ l(zn, {}),
1504
+ icon: /* @__PURE__ */ l($n, {}),
1505
1505
  title: "取消成组",
1506
- onSelect: () => Ji()
1506
+ onSelect: () => Wi()
1507
1507
  },
1508
1508
  {
1509
1509
  key: "copy",
1510
- icon: /* @__PURE__ */ l($n, {}),
1510
+ icon: /* @__PURE__ */ l(Rn, {}),
1511
1511
  title: "复制",
1512
1512
  style: { borderTop: "1px solid #e8e8e8" },
1513
- onSelect: () => on()
1513
+ onSelect: () => dn()
1514
1514
  },
1515
1515
  {
1516
1516
  key: "delete",
@@ -1523,12 +1523,12 @@ const gc = [
1523
1523
  key: "collect",
1524
1524
  icon: /* @__PURE__ */ l(dt, {}),
1525
1525
  title: "收藏",
1526
- onSelect: () => Yi()
1526
+ onSelect: () => Zi()
1527
1527
  }
1528
1528
  ];
1529
- function _c(e, t) {
1529
+ function fc(e, t) {
1530
1530
  var n;
1531
- return hn(e.clientX, e.clientY, gc, {
1531
+ return gn(e.clientX, e.clientY, mc, {
1532
1532
  zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel(),
1533
1533
  onBeforeOpen(i) {
1534
1534
  let c = 0, o = !1;
@@ -1540,24 +1540,24 @@ function _c(e, t) {
1540
1540
  }
1541
1541
  });
1542
1542
  }
1543
- const mc = [
1543
+ const yc = [
1544
1544
  {
1545
1545
  key: "selectAll",
1546
1546
  title: "全选",
1547
- icon: /* @__PURE__ */ l(Rn, {}),
1548
- onSelect: () => an()
1547
+ icon: /* @__PURE__ */ l(Fn, {}),
1548
+ onSelect: () => on()
1549
1549
  },
1550
1550
  {
1551
1551
  key: "unselectAll",
1552
1552
  title: "反选",
1553
- icon: /* @__PURE__ */ l(Fn, {}),
1553
+ icon: /* @__PURE__ */ l(Hn, {}),
1554
1554
  onSelect: () => De()
1555
1555
  },
1556
1556
  {
1557
1557
  key: "clear",
1558
1558
  title: "清空",
1559
- icon: /* @__PURE__ */ l(Rt, {}),
1560
- onSelect: () => Hi()
1559
+ icon: /* @__PURE__ */ l(Ft, {}),
1560
+ onSelect: () => Ki()
1561
1561
  },
1562
1562
  {
1563
1563
  key: "saveLocal",
@@ -1566,43 +1566,43 @@ const mc = [
1566
1566
  onSelect: () => vt()
1567
1567
  }
1568
1568
  ];
1569
- function fc(e, t) {
1569
+ function vc(e, t) {
1570
1570
  var n;
1571
- return hn(e.clientX, e.clientY, mc, {
1571
+ return gn(e.clientX, e.clientY, yc, {
1572
1572
  zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel()
1573
1573
  });
1574
1574
  }
1575
1575
  let ve = [];
1576
- function Dt() {
1576
+ function Ot() {
1577
1577
  ve.length && (ve.forEach((e) => e == null ? void 0 : e()), ve = []);
1578
1578
  }
1579
- function gn(e) {
1580
- const { engine: t } = N();
1579
+ function _n(e) {
1580
+ const { engine: t } = w();
1581
1581
  gt(e, {
1582
1582
  contextmenu(n) {
1583
1583
  var d;
1584
- Dt(), n.preventDefault();
1584
+ Ot(), n.preventDefault();
1585
1585
  const i = ct(n.target, oe.componentNodeId, !0), c = t.instance.get(i), o = (d = c == null ? void 0 : c.getComponentNode) == null ? void 0 : d.call(c);
1586
1586
  if (c && o) {
1587
- ve.push(_c(n, t));
1587
+ ve.push(fc(n, t));
1588
1588
  return;
1589
1589
  }
1590
- ve.push(fc(n, t));
1590
+ ve.push(vc(n, t));
1591
1591
  }
1592
- }), Zt(() => {
1593
- Dt();
1592
+ }), Qt(() => {
1593
+ Ot();
1594
1594
  });
1595
1595
  }
1596
- function yc() {
1597
- const { engine: e } = N(), t = Gt(), n = yt(), i = j(null), c = L(() => t.length ? /* @__PURE__ */ l("div", { className: qe.componentNodes_block, children: t.map((o) => /* @__PURE__ */ l(
1598
- ec,
1596
+ function bc() {
1597
+ const { engine: e } = w(), t = Xt(), n = yt(), i = j(null), c = L(() => t.length ? /* @__PURE__ */ l("div", { className: qe.componentNodes_block, children: t.map((o) => /* @__PURE__ */ l(
1598
+ nc,
1599
1599
  {
1600
1600
  componentNode: o,
1601
1601
  isSelected: e.instance.isSelected(o.id)
1602
1602
  },
1603
1603
  o.id
1604
1604
  )) }) : /* @__PURE__ */ l(W, {}), [t, n]);
1605
- return gn(i), /* @__PURE__ */ g(
1605
+ return _n(i), /* @__PURE__ */ g(
1606
1606
  "div",
1607
1607
  {
1608
1608
  ref: i,
@@ -1619,20 +1619,20 @@ function yc() {
1619
1619
  }
1620
1620
  );
1621
1621
  }
1622
- const vc = "_menubar_1ah1r_59", bc = "_menubar_item_1ah1r_67", Cc = "_menubar_item_selected_1ah1r_81", Je = {
1623
- menubar: vc,
1624
- menubar_item: bc,
1625
- menubar_item_selected: Cc
1622
+ const Cc = "_menubar_1ah1r_59", xc = "_menubar_item_1ah1r_67", Ic = "_menubar_item_selected_1ah1r_81", Je = {
1623
+ menubar: Cc,
1624
+ menubar_item: xc,
1625
+ menubar_item_selected: Ic
1626
1626
  };
1627
- function xc(e) {
1627
+ function kc(e) {
1628
1628
  var t, n;
1629
1629
  return /* @__PURE__ */ l("div", { className: Je.menubar, children: (n = (t = e == null ? void 0 : e.list) == null ? void 0 : t.map) == null ? void 0 : n.call(t, (i) => {
1630
1630
  const c = i.key === e.value;
1631
- return /* @__PURE__ */ l($, { title: i == null ? void 0 : i.title, placement: "right", children: /* @__PURE__ */ l(
1631
+ return /* @__PURE__ */ l(z, { title: i == null ? void 0 : i.title, placement: "right", children: /* @__PURE__ */ l(
1632
1632
  "div",
1633
1633
  {
1634
1634
  id: i == null ? void 0 : i.domId,
1635
- className: R(
1635
+ className: $(
1636
1636
  Je.menubar_item,
1637
1637
  c && Je.menubar_item_selected
1638
1638
  ),
@@ -1645,23 +1645,23 @@ function xc(e) {
1645
1645
  ) }, i == null ? void 0 : i.key);
1646
1646
  }) });
1647
1647
  }
1648
- const Ic = "_propertyItem_1r9fx_59", kc = "_propertyItem_icon_1r9fx_68", Sc = "_propertyItem_icon_disabled_1r9fx_75", Nc = "_propertyItemPopover_1r9fx_79", wc = "_propertyItemPopover_description_1r9fx_84", Ec = "_propertyItemPopover_statistic_1r9fx_89", Ac = "_propertyItemPopover_body_1r9fx_92", Lc = "_propertyItemPopover_body_item_1r9fx_95", Dc = "_propertyItemPopover_body_item_icon_1r9fx_105", Oc = "_propertyItemPopover_title_1r9fx_108", J = {
1649
- propertyItem: Ic,
1650
- propertyItem_icon: kc,
1651
- propertyItem_icon_disabled: Sc,
1652
- propertyItemPopover: Nc,
1653
- propertyItemPopover_description: wc,
1654
- propertyItemPopover_statistic: Ec,
1655
- propertyItemPopover_body: Ac,
1656
- propertyItemPopover_body_item: Lc,
1657
- propertyItemPopover_body_item_icon: Dc,
1658
- propertyItemPopover_title: Oc
1648
+ const Sc = "_propertyItem_1r9fx_59", Nc = "_propertyItem_icon_1r9fx_68", wc = "_propertyItem_icon_disabled_1r9fx_75", Ec = "_propertyItemPopover_1r9fx_79", Ac = "_propertyItemPopover_description_1r9fx_84", Lc = "_propertyItemPopover_statistic_1r9fx_89", Dc = "_propertyItemPopover_body_1r9fx_92", Oc = "_propertyItemPopover_body_item_1r9fx_95", Pc = "_propertyItemPopover_body_item_icon_1r9fx_105", Bc = "_propertyItemPopover_title_1r9fx_108", J = {
1649
+ propertyItem: Sc,
1650
+ propertyItem_icon: Nc,
1651
+ propertyItem_icon_disabled: wc,
1652
+ propertyItemPopover: Ec,
1653
+ propertyItemPopover_description: Ac,
1654
+ propertyItemPopover_statistic: Lc,
1655
+ propertyItemPopover_body: Dc,
1656
+ propertyItemPopover_body_item: Oc,
1657
+ propertyItemPopover_body_item_icon: Pc,
1658
+ propertyItemPopover_title: Bc
1659
1659
  };
1660
- function Pc(e) {
1660
+ function Mc(e) {
1661
1661
  var s, r, h;
1662
- const { data: t } = e, n = ht(), { engine: i } = N(), c = (t == null ? void 0 : t.origin) !== "system", o = (t == null ? void 0 : t.origin) !== "system";
1662
+ const { data: t } = e, n = ht(), { engine: i } = w(), c = (t == null ? void 0 : t.origin) !== "system", o = (t == null ? void 0 : t.origin) !== "system";
1663
1663
  function d() {
1664
- const u = Li(t == null ? void 0 : t.id), _ = () => {
1664
+ const u = Di(t == null ? void 0 : t.id), _ = () => {
1665
1665
  var m;
1666
1666
  return (m = e == null ? void 0 : e.onDelete) == null ? void 0 : m.call(e, t, u);
1667
1667
  };
@@ -1691,7 +1691,7 @@ function Pc(e) {
1691
1691
  return;
1692
1692
  }
1693
1693
  const _ = `${t == null ? void 0 : t.name}.js`;
1694
- qt(u, _);
1694
+ Jt(u, _);
1695
1695
  }
1696
1696
  return /* @__PURE__ */ l(
1697
1697
  st,
@@ -1741,7 +1741,7 @@ function Pc(e) {
1741
1741
  de,
1742
1742
  {
1743
1743
  title: "删除",
1744
- className: R(
1744
+ className: $(
1745
1745
  J.propertyItem_icon,
1746
1746
  !o && J.propertyItem_icon_disabled
1747
1747
  ),
@@ -1749,10 +1749,10 @@ function Pc(e) {
1749
1749
  }
1750
1750
  ),
1751
1751
  /* @__PURE__ */ l(
1752
- Hn,
1752
+ Kn,
1753
1753
  {
1754
1754
  title: "下载到本地",
1755
- className: R(
1755
+ className: $(
1756
1756
  J.propertyItem_icon,
1757
1757
  !c && J.propertyItem_icon_disabled
1758
1758
  ),
@@ -1764,10 +1764,10 @@ function Pc(e) {
1764
1764
  }
1765
1765
  );
1766
1766
  }
1767
- const Bc = "_jsonEditor_13vbq_59", Mc = "_jsonEditor_render_13vbq_68", jc = "_jsonEditor_loading_13vbq_72", We = {
1768
- jsonEditor: Bc,
1769
- jsonEditor_render: Mc,
1770
- jsonEditor_loading: jc
1767
+ const jc = "_jsonEditor_13vbq_59", Tc = "_jsonEditor_render_13vbq_68", zc = "_jsonEditor_loading_13vbq_72", We = {
1768
+ jsonEditor: jc,
1769
+ jsonEditor_render: Tc,
1770
+ jsonEditor_loading: zc
1771
1771
  };
1772
1772
  self.MonacoEnvironment = {
1773
1773
  getWorker: function(e, t) {
@@ -1790,7 +1790,7 @@ function X(e) {
1790
1790
  const t = j(null), n = j();
1791
1791
  return E(() => {
1792
1792
  var c, o;
1793
- const i = Ni.editor.create(t.current, {
1793
+ const i = wi.editor.create(t.current, {
1794
1794
  theme: "vs-light",
1795
1795
  value: e == null ? void 0 : e.value,
1796
1796
  language: (e == null ? void 0 : e.language) || "text",
@@ -1828,11 +1828,11 @@ function X(e) {
1828
1828
  i !== ((o = (c = n == null ? void 0 : n.current) == null ? void 0 : c.getValue) == null ? void 0 : o.call(c)) && ((a = (d = n.current) == null ? void 0 : d.setValue) == null || a.call(d, i));
1829
1829
  }, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: We.jsonEditor, style: e == null ? void 0 : e.style, children: [
1830
1830
  /* @__PURE__ */ l("div", { ref: t, className: We.jsonEditor_render }),
1831
- (e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Ht, { style: { fontSize: 20 } }) })
1831
+ (e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Kt, { style: { fontSize: 20 } }) })
1832
1832
  ] });
1833
1833
  }
1834
- const Tc = ue((e) => {
1835
- const { params: t } = e, [n] = M.useForm(), [i, c] = S(!1), o = j("");
1834
+ const $c = ue((e) => {
1835
+ const { params: t } = e, [n] = M.useForm(), [i, c] = N(!1), o = j("");
1836
1836
  function d() {
1837
1837
  n.validateFields(["url"]).then((s) => {
1838
1838
  var r;
@@ -1879,12 +1879,12 @@ const Tc = ue((e) => {
1879
1879
  ] })
1880
1880
  }
1881
1881
  );
1882
- }), zc = [
1882
+ }), Rc = [
1883
1883
  { key: "local", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "本地上传" }) },
1884
1884
  { key: "remote", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "远程导入" }) }
1885
1885
  ];
1886
- function $c(e) {
1887
- const t = j(), n = j(""), i = Tc({
1886
+ function Fc(e) {
1887
+ const t = j(), n = j(""), i = $c({
1888
1888
  onOk({ url: s }) {
1889
1889
  if (!t.current) {
1890
1890
  A.warn("package新增失败");
@@ -1904,24 +1904,24 @@ function $c(e) {
1904
1904
  (h = e == null ? void 0 : e.onAddSome) == null || h.call(e, s, r);
1905
1905
  }
1906
1906
  async function d(s) {
1907
- var x;
1908
- const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], y = [];
1907
+ var C;
1908
+ const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], v = [];
1909
1909
  for (const b in _) {
1910
- if (!((x = b == null ? void 0 : b.endsWith) != null && x.call(b, ".js")))
1910
+ if (!((C = b == null ? void 0 : b.endsWith) != null && C.call(b, ".js")))
1911
1911
  continue;
1912
- const f = await _[b].async("text"), v = await Te(f);
1913
- v && (v.origin = "local", m.push(v), y.push(f));
1912
+ const y = await _[b].async("text"), f = await Te(y);
1913
+ f && (f.origin = "local", m.push(f), v.push(y));
1914
1914
  }
1915
1915
  return {
1916
1916
  pkgs: m,
1917
- codes: y
1917
+ codes: v
1918
1918
  };
1919
1919
  }
1920
1920
  async function a(s) {
1921
1921
  let r = "";
1922
1922
  switch (s) {
1923
1923
  case "local":
1924
- const h = await nn({ accept: "text/javascript,application/zip" });
1924
+ const h = await ln({ accept: "text/javascript,application/zip" });
1925
1925
  if (!h)
1926
1926
  return;
1927
1927
  if (["application/x-zip-compressed", "application/zip"].includes(h == null ? void 0 : h.type)) {
@@ -1930,7 +1930,7 @@ function $c(e) {
1930
1930
  return;
1931
1931
  }
1932
1932
  if ((h == null ? void 0 : h.type) === "text/javascript") {
1933
- r = await ln(h);
1933
+ r = await cn(h);
1934
1934
  const u = await Te(r);
1935
1935
  if (!u)
1936
1936
  return A.warn("文本内容必须为UMD或者AMD格式");
@@ -1953,7 +1953,7 @@ function $c(e) {
1953
1953
  {
1954
1954
  trigger: ["click"],
1955
1955
  menu: {
1956
- items: zc,
1956
+ items: Rc,
1957
1957
  onClick({ key: s }) {
1958
1958
  a(s);
1959
1959
  }
@@ -1962,26 +1962,26 @@ function $c(e) {
1962
1962
  }
1963
1963
  ) });
1964
1964
  }
1965
- const Ot = "./demo.umd.js", Pt = "./demo.amd.js", Rc = [
1965
+ const Pt = "./demo.umd.js", Bt = "./demo.amd.js", Hc = [
1966
1966
  { key: "umd-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包(UMD)" }) },
1967
1967
  { key: "amd-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包(AMD)" }) },
1968
1968
  { key: "zip-demo", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载示例组件包集合(.zip)" }) },
1969
1969
  { key: "all", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "下载全部资产" }) }
1970
1970
  ];
1971
- function Fc(e) {
1971
+ function Kc(e) {
1972
1972
  async function t(n) {
1973
1973
  var i;
1974
1974
  switch (n) {
1975
1975
  case "umd-demo":
1976
- It(Ot, "测试包2.js");
1976
+ It(Pt, "测试包2.js");
1977
1977
  break;
1978
1978
  case "amd-demo":
1979
- It(Pt, "测试包1.js");
1979
+ It(Bt, "测试包1.js");
1980
1980
  break;
1981
1981
  case "zip-demo":
1982
- const c = await it(Ot), o = await it(Pt), d = new ft();
1982
+ const c = await it(Pt), o = await it(Bt), d = new ft();
1983
1983
  d.file("测试包1.js", o), d.file("测试包2.js", c), d.generateAsync({ type: "blob" }).then(function(a) {
1984
- pt(a, "组件包集合.zip");
1984
+ en(a, "组件包集合.zip");
1985
1985
  });
1986
1986
  break;
1987
1987
  case "all":
@@ -1994,7 +1994,7 @@ function Fc(e) {
1994
1994
  {
1995
1995
  trigger: ["click"],
1996
1996
  menu: {
1997
- items: Rc,
1997
+ items: Hc,
1998
1998
  onClick({ key: n }) {
1999
1999
  t(n);
2000
2000
  }
@@ -2003,13 +2003,13 @@ function Fc(e) {
2003
2003
  }
2004
2004
  ) });
2005
2005
  }
2006
- const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Bt = {
2007
- property: Hc,
2008
- property_header: Kc
2006
+ const Uc = "_property_zt9oy_59", qc = "_property_header_zt9oy_68", Mt = {
2007
+ property: Uc,
2008
+ property_header: qc
2009
2009
  };
2010
- function Uc() {
2010
+ function Jc() {
2011
2011
  var a;
2012
- const e = Xt(), { engine: t } = N(), { loading: n, run: i } = Qt(
2012
+ const e = Yt(), { engine: t } = w(), { loading: n, run: i } = pt(
2013
2013
  async () => new Promise((s) => {
2014
2014
  setTimeout(() => {
2015
2015
  A.success("刷新成功"), s();
@@ -2035,19 +2035,19 @@ function Uc() {
2035
2035
  let u = 0;
2036
2036
  if (r.forEach((_, m) => {
2037
2037
  if (!_) return;
2038
- const y = e[m];
2039
- h.file(`${y.name}.js`, _), u++;
2038
+ const v = e[m];
2039
+ h.file(`${v.name}.js`, _), u++;
2040
2040
  }), !u) {
2041
2041
  A.warn("暂无组件包");
2042
2042
  return;
2043
2043
  }
2044
2044
  h.generateAsync({ type: "blob" }).then(function(_) {
2045
- pt(_, "组件包集合.zip");
2045
+ en(_, "组件包集合.zip");
2046
2046
  });
2047
2047
  });
2048
2048
  }
2049
- return /* @__PURE__ */ g("div", { className: Bt.property, children: [
2050
- /* @__PURE__ */ g("div", { className: Bt.property_header, children: [
2049
+ return /* @__PURE__ */ g("div", { className: Mt.property, children: [
2050
+ /* @__PURE__ */ g("div", { className: Mt.property_header, children: [
2051
2051
  /* @__PURE__ */ g(D, { children: [
2052
2052
  /* @__PURE__ */ l("b", { children: "资产列表" }),
2053
2053
  /* @__PURE__ */ l(
@@ -2056,13 +2056,13 @@ function Uc() {
2056
2056
  title: "刷新资产",
2057
2057
  className: "icon_clickable",
2058
2058
  onClick: () => !n && i(),
2059
- children: n ? /* @__PURE__ */ l(Ht, {}) : /* @__PURE__ */ l(Z, {})
2059
+ children: n ? /* @__PURE__ */ l(Kt, {}) : /* @__PURE__ */ l(Z, {})
2060
2060
  }
2061
2061
  )
2062
2062
  ] }),
2063
2063
  /* @__PURE__ */ g(D, { children: [
2064
2064
  /* @__PURE__ */ l(
2065
- Fc,
2065
+ Kc,
2066
2066
  {
2067
2067
  onDownloadAll: () => {
2068
2068
  d();
@@ -2071,7 +2071,7 @@ function Uc() {
2071
2071
  }
2072
2072
  ),
2073
2073
  /* @__PURE__ */ l(
2074
- $c,
2074
+ Fc,
2075
2075
  {
2076
2076
  onAdd: (s, r) => {
2077
2077
  c(s, r);
@@ -2086,7 +2086,7 @@ function Uc() {
2086
2086
  ] }),
2087
2087
  !e.length && /* @__PURE__ */ l(U, {}),
2088
2088
  (a = e == null ? void 0 : e.map) == null ? void 0 : a.call(e, (s) => /* @__PURE__ */ l(
2089
- Pc,
2089
+ Mc,
2090
2090
  {
2091
2091
  data: s,
2092
2092
  onDelete: (r, h) => {
@@ -2097,17 +2097,17 @@ function Uc() {
2097
2097
  ))
2098
2098
  ] });
2099
2099
  }
2100
- const qc = "_favorites_1mbr5_59", Jc = {
2101
- favorites: qc
2102
- }, Wc = "_favoriteItem_1ipdv_59", Vc = "_favoriteItem_head_1ipdv_74", Gc = "_favoriteItem_name_1ipdv_83", Xc = "_favoriteItem_footer_1ipdv_93", ke = {
2103
- favoriteItem: Wc,
2104
- favoriteItem_head: Vc,
2105
- favoriteItem_name: Gc,
2106
- favoriteItem_footer: Xc
2100
+ const Wc = "_favorites_1mbr5_59", Vc = {
2101
+ favorites: Wc
2102
+ }, Gc = "_favoriteItem_1ipdv_59", Xc = "_favoriteItem_head_1ipdv_74", Yc = "_favoriteItem_name_1ipdv_83", Zc = "_favoriteItem_footer_1ipdv_93", ke = {
2103
+ favoriteItem: Gc,
2104
+ favoriteItem_head: Xc,
2105
+ favoriteItem_name: Yc,
2106
+ favoriteItem_footer: Zc
2107
2107
  };
2108
- function Yc(e) {
2108
+ function Qc(e) {
2109
2109
  const { favorite: t } = e, n = j(null), i = j(null);
2110
- return rn(n, {
2110
+ return sn(n, {
2111
2111
  type: "create-favorite",
2112
2112
  data: {
2113
2113
  favorite: t
@@ -2120,22 +2120,22 @@ function Yc(e) {
2120
2120
  /* @__PURE__ */ l("div", { className: ke.favoriteItem_head, children: /* @__PURE__ */ l(dt, {}) }),
2121
2121
  /* @__PURE__ */ l("div", { className: ke.favoriteItem_name, title: t.id, children: t.name }),
2122
2122
  /* @__PURE__ */ g("div", { className: ke.favoriteItem_footer, ref: i, children: [
2123
- /* @__PURE__ */ l($, { title: "编辑", children: /* @__PURE__ */ l(Kt, { onClick: () => {
2123
+ /* @__PURE__ */ l(z, { title: "编辑", children: /* @__PURE__ */ l(Ut, { onClick: () => {
2124
2124
  var c;
2125
2125
  return (c = e == null ? void 0 : e.onEdit) == null ? void 0 : c.call(e);
2126
2126
  } }) }),
2127
- /* @__PURE__ */ l($, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
2127
+ /* @__PURE__ */ l(z, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
2128
2128
  var c;
2129
2129
  return (c = e == null ? void 0 : e.onDelete) == null ? void 0 : c.call(e);
2130
2130
  } }) }),
2131
- /* @__PURE__ */ l($, { title: "详情", children: /* @__PURE__ */ l(Kn, { onClick: () => {
2131
+ /* @__PURE__ */ l(z, { title: "详情", children: /* @__PURE__ */ l(Un, { onClick: () => {
2132
2132
  var c;
2133
2133
  return (c = e == null ? void 0 : e.onDetail) == null ? void 0 : c.call(e);
2134
2134
  } }) })
2135
2135
  ] })
2136
2136
  ] }, t.id);
2137
2137
  }
2138
- const Zc = ue((e) => {
2138
+ const pc = ue((e) => {
2139
2139
  var c;
2140
2140
  const [t] = M.useForm(), n = (c = e == null ? void 0 : e.params) == null ? void 0 : c.favorite;
2141
2141
  function i() {
@@ -2167,13 +2167,13 @@ const Zc = ue((e) => {
2167
2167
  ] }) }) })
2168
2168
  }
2169
2169
  );
2170
- }), Qc = "_favoriteDetailDialog_title_17m9n_67", pc = "_favoriteDetailDialog_componentNodes_17m9n_73", ea = "_favoriteDetailDialog_item_17m9n_78", Ve = {
2171
- favoriteDetailDialog_title: Qc,
2172
- favoriteDetailDialog_componentNodes: pc,
2173
- favoriteDetailDialog_item: ea
2174
- }, ta = ue((e) => {
2170
+ }), ea = "_favoriteDetailDialog_title_17m9n_67", ta = "_favoriteDetailDialog_componentNodes_17m9n_73", na = "_favoriteDetailDialog_item_17m9n_78", Ve = {
2171
+ favoriteDetailDialog_title: ea,
2172
+ favoriteDetailDialog_componentNodes: ta,
2173
+ favoriteDetailDialog_item: na
2174
+ }, ia = ue((e) => {
2175
2175
  var i, c, o, d;
2176
- const { engine: t } = N(), n = (i = e == null ? void 0 : e.params) == null ? void 0 : i.favorite;
2176
+ const { engine: t } = w(), n = (i = e == null ? void 0 : e.params) == null ? void 0 : i.favorite;
2177
2177
  return /* @__PURE__ */ g(
2178
2178
  re,
2179
2179
  {
@@ -2219,8 +2219,8 @@ const Zc = ue((e) => {
2219
2219
  }
2220
2220
  );
2221
2221
  });
2222
- function na() {
2223
- const { engine: e } = N(), t = Pi(), n = ta(), i = Zc({
2222
+ function la() {
2223
+ const { engine: e } = w(), t = Bi(), n = ia(), i = pc({
2224
2224
  onOk(o) {
2225
2225
  e.favorites.update(o.id, o);
2226
2226
  }
@@ -2228,10 +2228,10 @@ function na() {
2228
2228
  function c(o) {
2229
2229
  e.favorites.delete(o);
2230
2230
  }
2231
- return /* @__PURE__ */ g("div", { className: Jc.favorites, children: [
2231
+ return /* @__PURE__ */ g("div", { className: Vc.favorites, children: [
2232
2232
  !(t != null && t.length) && /* @__PURE__ */ l(U, {}),
2233
2233
  t.map((o) => /* @__PURE__ */ l(
2234
- Yc,
2234
+ Qc,
2235
2235
  {
2236
2236
  favorite: o,
2237
2237
  onDelete: () => c(o),
@@ -2250,11 +2250,11 @@ function na() {
2250
2250
  ))
2251
2251
  ] });
2252
2252
  }
2253
- const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty8r_76", Ge = {
2254
- pages: ia,
2255
- pages_head: la,
2256
- pages_body: ca
2257
- }, aa = ue((e) => {
2253
+ const ca = "_pages_1ty8r_59", aa = "_pages_head_1ty8r_67", oa = "_pages_body_1ty8r_76", Ge = {
2254
+ pages: ca,
2255
+ pages_head: aa,
2256
+ pages_body: oa
2257
+ }, da = ue((e) => {
2258
2258
  const { params: t } = e, [n] = M.useForm();
2259
2259
  function i(o) {
2260
2260
  return {
@@ -2292,12 +2292,12 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
2292
2292
  }
2293
2293
  );
2294
2294
  });
2295
- function oa() {
2296
- const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [o, d, a] = oi([]), s = wi(), r = Ei(), h = aa({
2295
+ function ra() {
2296
+ const { engine: e } = w(), [t, n] = N([]), [i, c] = N([]), [o, d, a] = di([]), s = Ei(), r = Ai(), h = da({
2297
2297
  onOk({ page: b, parentId: I }) {
2298
2298
  if (e.page.insert(b, I), Re(b.id), I) {
2299
- const f = Array.from(new Set(t).add(I));
2300
- u(f);
2299
+ const y = Array.from(new Set(t).add(I));
2300
+ u(y);
2301
2301
  }
2302
2302
  }
2303
2303
  });
@@ -2306,7 +2306,7 @@ function oa() {
2306
2306
  }
2307
2307
  function _(b) {
2308
2308
  var I;
2309
- return ((I = b == null ? void 0 : b.reduce) == null ? void 0 : I.call(b, (f, v) => f.concat([v.key, ..._(v == null ? void 0 : v.children)]), [])) || [];
2309
+ return ((I = b == null ? void 0 : b.reduce) == null ? void 0 : I.call(b, (y, f) => y.concat([f.key, ..._(f == null ? void 0 : f.children)]), [])) || [];
2310
2310
  }
2311
2311
  function m(b) {
2312
2312
  h.open({
@@ -2314,49 +2314,49 @@ function oa() {
2314
2314
  parentName: b.name
2315
2315
  });
2316
2316
  }
2317
- function y(b, I = {}) {
2318
- var v, C, w, P, T, q, V;
2319
- const f = [b.id, ..._(I[b.id].children)];
2320
- if (((v = a.current) == null ? void 0 : v.length) === 1 && (f != null && f.includes((w = (C = a.current) == null ? void 0 : C[0]) == null ? void 0 : w.key))) {
2317
+ function v(b, I = {}) {
2318
+ var f, x, S, P, R, q, V;
2319
+ const y = [b.id, ..._(I[b.id].children)];
2320
+ if (((f = a.current) == null ? void 0 : f.length) === 1 && (y != null && y.includes((S = (x = a.current) == null ? void 0 : x[0]) == null ? void 0 : S.key))) {
2321
2321
  A.warn("至少保留一个顶层页");
2322
2322
  return;
2323
2323
  }
2324
- if (f.includes(e.config.getCurrentPage())) {
2325
- let Me = (T = (P = a.current) == null ? void 0 : P[0]) == null ? void 0 : T.key;
2326
- f.includes(Me) && (Me = (V = (q = a.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Me);
2324
+ if (y.includes(e.config.getCurrentPage())) {
2325
+ let Me = (R = (P = a.current) == null ? void 0 : P[0]) == null ? void 0 : R.key;
2326
+ y.includes(Me) && (Me = (V = (q = a.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Me);
2327
2327
  }
2328
- e.page.delete(f);
2328
+ e.page.delete(y);
2329
2329
  }
2330
- function x(b, I = {}) {
2331
- const f = [];
2332
- return b.forEach((v) => {
2333
- var P, T, q;
2334
- const C = I[v.id], w = I[v.id] = {
2335
- key: (C == null ? void 0 : C.key) || v.id,
2336
- title: (C == null ? void 0 : C.title) || /* @__PURE__ */ g("span", { children: [
2337
- /* @__PURE__ */ l("span", { children: v.name }),
2330
+ function C(b, I = {}) {
2331
+ const y = [];
2332
+ return b.forEach((f) => {
2333
+ var P, R, q;
2334
+ const x = I[f.id], S = I[f.id] = {
2335
+ key: (x == null ? void 0 : x.key) || f.id,
2336
+ title: (x == null ? void 0 : x.title) || /* @__PURE__ */ g("span", { children: [
2337
+ /* @__PURE__ */ l("span", { children: f.name }),
2338
2338
  /* @__PURE__ */ g("span", { style: { fontSize: 12 }, onClick: (V) => V.stopPropagation(), children: [
2339
- /* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(v), children: "新增" }),
2340
- /* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y(v, I), children: "删除" })
2339
+ /* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(f), children: "新增" }),
2340
+ /* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => v(f, I), children: "删除" })
2341
2341
  ] })
2342
2342
  ] }),
2343
- children: (C == null ? void 0 : C.children) || []
2343
+ children: (x == null ? void 0 : x.children) || []
2344
2344
  };
2345
- if (v != null && v.parentId) {
2346
- (q = (T = I[P = v == null ? void 0 : v.parentId] || (I[P] = {
2345
+ if (f != null && f.parentId) {
2346
+ (q = (R = I[P = f == null ? void 0 : f.parentId] || (I[P] = {
2347
2347
  key: "",
2348
2348
  title: "",
2349
2349
  children: []
2350
- })) == null ? void 0 : T.children) == null || q.push(w);
2350
+ })) == null ? void 0 : R.children) == null || q.push(S);
2351
2351
  return;
2352
2352
  }
2353
- f.push(w);
2354
- }), f;
2353
+ y.push(S);
2354
+ }), y;
2355
2355
  }
2356
2356
  return E(() => {
2357
2357
  n(e.config.getConfig().expandedPageIds || []);
2358
2358
  }, []), E(() => {
2359
- d(x(s));
2359
+ d(C(s));
2360
2360
  }, [s]), E(() => {
2361
2361
  c([r]);
2362
2362
  }, [r]), /* @__PURE__ */ g("div", { className: Ge.pages, children: [
@@ -2376,12 +2376,12 @@ function oa() {
2376
2376
  ) })
2377
2377
  ] }),
2378
2378
  /* @__PURE__ */ l("div", { className: Ge.pages_body, children: /* @__PURE__ */ l(
2379
- pn,
2379
+ ei,
2380
2380
  {
2381
2381
  showIcon: !0,
2382
2382
  multiple: !1,
2383
2383
  defaultExpandAll: !0,
2384
- icon: /* @__PURE__ */ l(Un, {}),
2384
+ icon: /* @__PURE__ */ l(qn, {}),
2385
2385
  treeData: o,
2386
2386
  selectedKeys: i,
2387
2387
  expandedKeys: t,
@@ -2393,18 +2393,18 @@ function oa() {
2393
2393
  ) })
2394
2394
  ] });
2395
2395
  }
2396
- const da = "_history_zo6ip_59", ra = "_history_head_zo6ip_71", sa = "_history_body_zo6ip_75", ua = "_history_item_zo6ip_80", ha = "_history_item_gray_zo6ip_88", _e = {
2397
- history: da,
2398
- history_head: ra,
2399
- history_body: sa,
2400
- history_item: ua,
2401
- history_item_gray: ha
2396
+ const sa = "_history_zo6ip_59", ua = "_history_head_zo6ip_71", ha = "_history_body_zo6ip_75", ga = "_history_item_zo6ip_80", _a = "_history_item_gray_zo6ip_88", _e = {
2397
+ history: sa,
2398
+ history_head: ua,
2399
+ history_body: ha,
2400
+ history_item: ga,
2401
+ history_item_gray: _a
2402
2402
  };
2403
- function ga() {
2403
+ function ma() {
2404
2404
  var c, o, d, a;
2405
- const { engine: e } = N(), t = cn(), n = (c = t.current) == null ? void 0 : c.stepId;
2405
+ const { engine: e } = w(), t = an(), n = (c = t.current) == null ? void 0 : c.stepId;
2406
2406
  function i(s) {
2407
- e.history.isPass(s) && n === s ? bt() : Qi(s);
2407
+ e.history.isPass(s) && n === s ? bt() : pi(s);
2408
2408
  }
2409
2409
  return /* @__PURE__ */ g("div", { className: _e.history, children: [
2410
2410
  /* @__PURE__ */ l("div", { className: _e.history_head, children: /* @__PURE__ */ g("b", { children: [
@@ -2415,7 +2415,7 @@ function ga() {
2415
2415
  (d = (o = t == null ? void 0 : t.list) == null ? void 0 : o.map) == null ? void 0 : d.call(o, (s) => /* @__PURE__ */ l(
2416
2416
  "div",
2417
2417
  {
2418
- className: R(_e.history_item, !s.isPass && _e.history_item_gray),
2418
+ className: $(_e.history_item, !s.isPass && _e.history_item_gray),
2419
2419
  onClick: () => {
2420
2420
  i(s.stepId);
2421
2421
  },
@@ -2427,51 +2427,51 @@ function ga() {
2427
2427
  ] })
2428
2428
  ] });
2429
2429
  }
2430
- function _a() {
2431
- const { engine: e } = N(), [t, n] = se(), i = L(() => [
2430
+ function fa() {
2431
+ const { engine: e } = w(), [t, n] = se(), i = L(() => [
2432
2432
  {
2433
2433
  key: "library",
2434
2434
  domId: "rbs-library",
2435
- icon: /* @__PURE__ */ l(qn, {}),
2435
+ icon: /* @__PURE__ */ l(Jn, {}),
2436
2436
  title: t("menu.bar.library"),
2437
- children: /* @__PURE__ */ l(ql, {})
2437
+ children: /* @__PURE__ */ l(Wl, {})
2438
2438
  },
2439
2439
  {
2440
2440
  key: "pages",
2441
2441
  domId: "rbs-pages",
2442
- icon: /* @__PURE__ */ l(Jn, {}),
2442
+ icon: /* @__PURE__ */ l(Wn, {}),
2443
2443
  title: t("menu.bar.pages"),
2444
- children: /* @__PURE__ */ l(oa, {})
2444
+ children: /* @__PURE__ */ l(ra, {})
2445
2445
  },
2446
2446
  {
2447
2447
  key: "componentNodes",
2448
2448
  domId: "rbs-componentNodes",
2449
- icon: /* @__PURE__ */ l(Wn, {}),
2449
+ icon: /* @__PURE__ */ l(Vn, {}),
2450
2450
  title: t("menu.bar.componentNodes"),
2451
- children: /* @__PURE__ */ l(yc, {})
2451
+ children: /* @__PURE__ */ l(bc, {})
2452
2452
  },
2453
2453
  {
2454
2454
  key: "property",
2455
2455
  domId: "rbs-property",
2456
- icon: /* @__PURE__ */ l(Vn, {}),
2456
+ icon: /* @__PURE__ */ l(Gn, {}),
2457
2457
  title: t("menu.bar.property"),
2458
- children: /* @__PURE__ */ l(Uc, {})
2458
+ children: /* @__PURE__ */ l(Jc, {})
2459
2459
  },
2460
2460
  {
2461
2461
  key: "favorites",
2462
2462
  domId: "rbs-favorites",
2463
2463
  icon: /* @__PURE__ */ l(dt, {}),
2464
2464
  title: t("menu.bar.favorites"),
2465
- children: /* @__PURE__ */ l(na, {})
2465
+ children: /* @__PURE__ */ l(la, {})
2466
2466
  },
2467
2467
  {
2468
2468
  key: "history",
2469
2469
  domId: "rbs-history",
2470
- icon: /* @__PURE__ */ l(Gn, {}),
2470
+ icon: /* @__PURE__ */ l(Xn, {}),
2471
2471
  title: t("menu.bar.history"),
2472
- children: /* @__PURE__ */ l(ga, {})
2472
+ children: /* @__PURE__ */ l(ma, {})
2473
2473
  }
2474
- ], [n.language]), c = Ee((r) => r.currentMenu), [o, d] = S(""), a = L(() => {
2474
+ ], [n.language]), c = Ee((r) => r.currentMenu), [o, d] = N(""), a = L(() => {
2475
2475
  var r;
2476
2476
  return (r = i.find((h) => h.key === o)) == null ? void 0 : r.children;
2477
2477
  }, [o]);
@@ -2484,41 +2484,41 @@ function _a() {
2484
2484
  const { currentMenu: r } = e.config.getConfig(), h = i.find((u) => u.key === r);
2485
2485
  d((h == null ? void 0 : h.key) || i[0].key);
2486
2486
  }, [c]), /* @__PURE__ */ g("div", { className: He.menu, children: [
2487
- /* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value: o, list: i, onChange: s }) }),
2487
+ /* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(kc, { value: o, list: i, onChange: s }) }),
2488
2488
  /* @__PURE__ */ l("div", { className: He.menu_main, children: a })
2489
2489
  ] });
2490
2490
  }
2491
- const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Mt = {
2492
- editor: ma,
2493
- editor_render: fa
2494
- }, ya = "_flexCenter_1kt3d_29", va = "_icon_clickable_1kt3d_49", ba = "_icon_selected_1kt3d_56", Ca = "_moveItem_box_1kt3d_59", xa = "_moveItem_box_lock_1kt3d_69", Ia = "_moveItem_box_selected_1kt3d_72", ka = "_moveItem_box_hover_1kt3d_79", Sa = "_dragPointCommon_1kt3d_83", Na = "_p_top_1kt3d_92", wa = "_p_left_1kt3d_95", Ea = "_p_right_1kt3d_98", Aa = "_p_bottom_1kt3d_101", La = "_p_horizontal_mid_1kt3d_104", Da = "_p_vertical_mid_1kt3d_107", Oa = "_dragPoint_top_1kt3d_110", Pa = "_dragPoint_top_left_1kt3d_123", Ba = "_dragPoint_top_right_1kt3d_136", Ma = "_dragPoint_bottom_1kt3d_149", ja = "_dragPoint_bottom_left_1kt3d_162", Ta = "_dragPoint_bottom_right_1kt3d_175", za = "_dragPoint_left_1kt3d_188", $a = "_dragPoint_right_1kt3d_201", ie = {
2495
- flexCenter: ya,
2491
+ const ya = "_editor_82kko_59", va = "_editor_render_82kko_65", jt = {
2492
+ editor: ya,
2493
+ editor_render: va
2494
+ }, ba = "_flexCenter_1kt3d_29", Ca = "_icon_clickable_1kt3d_49", xa = "_icon_selected_1kt3d_56", Ia = "_moveItem_box_1kt3d_59", ka = "_moveItem_box_lock_1kt3d_69", Sa = "_moveItem_box_selected_1kt3d_72", Na = "_moveItem_box_hover_1kt3d_79", wa = "_dragPointCommon_1kt3d_83", Ea = "_p_top_1kt3d_92", Aa = "_p_left_1kt3d_95", La = "_p_right_1kt3d_98", Da = "_p_bottom_1kt3d_101", Oa = "_p_horizontal_mid_1kt3d_104", Pa = "_p_vertical_mid_1kt3d_107", Ba = "_dragPoint_top_1kt3d_110", Ma = "_dragPoint_top_left_1kt3d_123", ja = "_dragPoint_top_right_1kt3d_136", Ta = "_dragPoint_bottom_1kt3d_149", za = "_dragPoint_bottom_left_1kt3d_162", $a = "_dragPoint_bottom_right_1kt3d_175", Ra = "_dragPoint_left_1kt3d_188", Fa = "_dragPoint_right_1kt3d_201", ie = {
2495
+ flexCenter: ba,
2496
2496
  "theme-text": "_theme-text_1kt3d_34",
2497
2497
  "theme-color": "_theme-color_1kt3d_38",
2498
2498
  "text-ellipsis": "_text-ellipsis_1kt3d_41",
2499
2499
  "border-right": "_border-right_1kt3d_46",
2500
- icon_clickable: va,
2501
- icon_selected: ba,
2502
- moveItem_box: Ca,
2503
- moveItem_box_lock: xa,
2504
- moveItem_box_selected: Ia,
2505
- moveItem_box_hover: ka,
2506
- dragPointCommon: Sa,
2507
- p_top: Na,
2508
- p_left: wa,
2509
- p_right: Ea,
2510
- p_bottom: Aa,
2511
- p_horizontal_mid: La,
2512
- p_vertical_mid: Da,
2513
- dragPoint_top: Oa,
2514
- dragPoint_top_left: Pa,
2515
- dragPoint_top_right: Ba,
2516
- dragPoint_bottom: Ma,
2517
- dragPoint_bottom_left: ja,
2518
- dragPoint_bottom_right: Ta,
2519
- dragPoint_left: za,
2520
- dragPoint_right: $a
2521
- }, Ra = [
2500
+ icon_clickable: Ca,
2501
+ icon_selected: xa,
2502
+ moveItem_box: Ia,
2503
+ moveItem_box_lock: ka,
2504
+ moveItem_box_selected: Sa,
2505
+ moveItem_box_hover: Na,
2506
+ dragPointCommon: wa,
2507
+ p_top: Ea,
2508
+ p_left: Aa,
2509
+ p_right: La,
2510
+ p_bottom: Da,
2511
+ p_horizontal_mid: Oa,
2512
+ p_vertical_mid: Pa,
2513
+ dragPoint_top: Ba,
2514
+ dragPoint_top_left: Ma,
2515
+ dragPoint_top_right: ja,
2516
+ dragPoint_bottom: Ta,
2517
+ dragPoint_bottom_left: za,
2518
+ dragPoint_bottom_right: $a,
2519
+ dragPoint_left: Ra,
2520
+ dragPoint_right: Fa
2521
+ }, Ha = [
2522
2522
  "top",
2523
2523
  "top_left",
2524
2524
  "top_right",
@@ -2527,7 +2527,7 @@ const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Mt = {
2527
2527
  "bottom_right",
2528
2528
  "left",
2529
2529
  "right"
2530
- ], Fa = {
2530
+ ], Ka = {
2531
2531
  top: "n-resize",
2532
2532
  top_left: "nw-resize",
2533
2533
  top_right: "ne-resize",
@@ -2537,7 +2537,7 @@ const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Mt = {
2537
2537
  left: "w-resize",
2538
2538
  right: "e-resize"
2539
2539
  };
2540
- function Ha(e, t, n) {
2540
+ function Ua(e, t, n) {
2541
2541
  const i = {
2542
2542
  dx: 0,
2543
2543
  dy: 0,
@@ -2584,7 +2584,7 @@ function Ha(e, t, n) {
2584
2584
  }
2585
2585
  return i;
2586
2586
  }
2587
- function Ka(e, t, n) {
2587
+ function qa(e, t, n) {
2588
2588
  let i = {
2589
2589
  x: 0,
2590
2590
  y: 0,
@@ -2600,10 +2600,10 @@ function Ka(e, t, n) {
2600
2600
  y: e.y,
2601
2601
  width: e.width,
2602
2602
  height: e.height
2603
- }, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(Fa[n]);
2603
+ }, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(Ka[n]);
2604
2604
  },
2605
2605
  onMove(o, d) {
2606
- const a = Ha(n, o, d), s = i.width + a.dw, r = i.height + a.dh;
2606
+ const a = Ua(n, o, d), s = i.width + a.dw, r = i.height + a.dh;
2607
2607
  s < 0 || r < 0 || c.componentNode.update(e.id, {
2608
2608
  x: Math.round(i.x + a.dx),
2609
2609
  y: Math.round(i.y + a.dy),
@@ -2616,9 +2616,9 @@ function Ka(e, t, n) {
2616
2616
  }
2617
2617
  };
2618
2618
  }
2619
- const Ua = bn((e, t) => {
2620
- const { componentNode: n } = e, i = j(null), [c, o] = S(!1), d = Ee((a) => a.scale);
2621
- return Cn(t, () => ({
2619
+ const Ja = Cn((e, t) => {
2620
+ const { componentNode: n } = e, i = j(null), [c, o] = N(!1), d = Ee((a) => a.scale);
2621
+ return xn(t, () => ({
2622
2622
  // 经过实例
2623
2623
  handleHover() {
2624
2624
  var a, s, r;
@@ -2642,12 +2642,12 @@ const Ua = bn((e, t) => {
2642
2642
  {
2643
2643
  [`data-${oe.componentNodeId}`]: n.id,
2644
2644
  ref: i,
2645
- className: R(
2645
+ className: $(
2646
2646
  ie.moveItem_box,
2647
2647
  c && ie.moveItem_box_selected,
2648
2648
  n.lock && ie.moveItem_box_lock
2649
2649
  ),
2650
- children: c && !n.lock && Ra.map((a) => /* @__PURE__ */ l(
2650
+ children: c && !n.lock && Ha.map((a) => /* @__PURE__ */ l(
2651
2651
  "div",
2652
2652
  {
2653
2653
  style: { transform: d < 1 ? `scale(${1 / d})` : void 0 },
@@ -2659,22 +2659,22 @@ const Ua = bn((e, t) => {
2659
2659
  }
2660
2660
  ), [n.lock, c, d]);
2661
2661
  });
2662
- function qa(e) {
2662
+ function Wa(e) {
2663
2663
  var d;
2664
- const { engine: t } = N(), [n, i] = S(
2664
+ const { engine: t } = w(), [n, i] = N(
2665
2665
  e == null ? void 0 : e.componentNode
2666
2666
  ), c = n ? (n == null ? void 0 : n.show) ?? !0 : !1, o = L(
2667
2667
  () => t.component.get(e == null ? void 0 : e.componentNode.cId),
2668
2668
  [(d = e == null ? void 0 : e.componentNode) == null ? void 0 : d.cId, e == null ? void 0 : e.packages]
2669
2669
  );
2670
- return en(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: a }) => {
2670
+ return tn(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: a }) => {
2671
2671
  i({ ...a });
2672
2672
  })), _t(() => {
2673
2673
  i(e == null ? void 0 : e.componentNode);
2674
- }, [e == null ? void 0 : e.componentNode]), o && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: o }) : /* @__PURE__ */ l(W, {});
2674
+ }, [e == null ? void 0 : e.componentNode]), o && c ? /* @__PURE__ */ l(Va, { componentNode: n, component: o }) : /* @__PURE__ */ l(W, {});
2675
2675
  }
2676
- function Ja(e) {
2677
- const { component: t, componentNode: n } = e, i = tn(n), c = j(null), { dataSource: o, requestInstance: d } = gi(n), a = _i(n.id), s = mi(n.id), r = j(null), h = fi({
2676
+ function Va(e) {
2677
+ const { component: t, componentNode: n } = e, i = nn(n), c = j(null), { dataSource: o, requestInstance: d } = _i(n), a = mi(n.id), s = fi(n.id), r = j(null), h = yi({
2678
2678
  id: n.id,
2679
2679
  // 经过实例
2680
2680
  handleHover() {
@@ -2735,7 +2735,7 @@ function Ja(e) {
2735
2735
  h.handleUnHover();
2736
2736
  },
2737
2737
  children: [
2738
- /* @__PURE__ */ l(zt, { children: /* @__PURE__ */ l(
2738
+ /* @__PURE__ */ l($t, { children: /* @__PURE__ */ l(
2739
2739
  t.component,
2740
2740
  {
2741
2741
  useExpose: s,
@@ -2747,21 +2747,21 @@ function Ja(e) {
2747
2747
  componentNode: n
2748
2748
  }
2749
2749
  ) }),
2750
- /* @__PURE__ */ l(Ua, { ref: r, componentNode: n })
2750
+ /* @__PURE__ */ l(Ja, { ref: r, componentNode: n })
2751
2751
  ]
2752
2752
  }
2753
2753
  );
2754
2754
  }
2755
- function Wa(e) {
2755
+ function Ga(e) {
2756
2756
  const t = k.getActiveEngine();
2757
2757
  t && Ae(e) && t.instance.getAllSelected().length && (t.instance.unselectAll(), O("取消选中组件"));
2758
2758
  }
2759
- function Va(e, t) {
2759
+ function Xa(e, t) {
2760
2760
  const n = Ae(t), i = Pe("shift"), c = k.getActiveEngine();
2761
2761
  if (!c || e.lock && n && !i)
2762
2762
  return;
2763
2763
  t.stopPropagation();
2764
- const o = Yt(t);
2764
+ const o = Zt(t);
2765
2765
  if (n || o) {
2766
2766
  if (c.instance.isSelected(e.id)) {
2767
2767
  i && c.instance.unselect(e.id);
@@ -2771,7 +2771,7 @@ function Va(e, t) {
2771
2771
  c.instance.select(d, !i), O("选中组件");
2772
2772
  }
2773
2773
  }
2774
- function Ga(e) {
2774
+ function Ya(e) {
2775
2775
  var s;
2776
2776
  const t = e.getComponentNode();
2777
2777
  if (!t || t != null && t.lock)
@@ -2785,10 +2785,10 @@ function Ga(e) {
2785
2785
  return {
2786
2786
  onStart() {
2787
2787
  return ae.set("move"), setTimeout(() => {
2788
- let { list: r, showCount: h } = Za();
2789
- i = r, c = h < 300, a = Vt(
2788
+ let { list: r, showCount: h } = pa();
2789
+ i = r, c = h < 300, a = Gt(
2790
2790
  (u, _) => {
2791
- Xa(i, c, u, _);
2791
+ Za(i, c, u, _);
2792
2792
  },
2793
2793
  h < 100 ? 0 : 20,
2794
2794
  {
@@ -2801,11 +2801,11 @@ function Ga(e) {
2801
2801
  d || (n.style.pointerEvents = "none", d = !0), a == null || a(r, h);
2802
2802
  },
2803
2803
  onEnd(r, h) {
2804
- ae.revoke(), d && (n.style.pointerEvents = o, Ya(i, c, r, h), i != null && i.length && O("移动组件"), d = !1, a = void 0);
2804
+ ae.revoke(), d && (n.style.pointerEvents = o, Qa(i, c, r, h), i != null && i.length && O("移动组件"), d = !1, a = void 0);
2805
2805
  }
2806
2806
  };
2807
2807
  }
2808
- function Xa(e, t, n, i) {
2808
+ function Za(e, t, n, i) {
2809
2809
  e.forEach((c) => {
2810
2810
  if (!c.show) return;
2811
2811
  const o = c.containerDom;
@@ -2817,7 +2817,7 @@ function Xa(e, t, n, i) {
2817
2817
  }
2818
2818
  });
2819
2819
  }
2820
- function Ya(e, t, n, i) {
2820
+ function Qa(e, t, n, i) {
2821
2821
  const c = k.getActiveEngine();
2822
2822
  c && e.forEach((o) => {
2823
2823
  o != null && o.show && t && o.containerDom.style.removeProperty("transform");
@@ -2828,7 +2828,7 @@ function Ya(e, t, n, i) {
2828
2828
  });
2829
2829
  });
2830
2830
  }
2831
- function Za() {
2831
+ function pa() {
2832
2832
  const e = k.getActiveEngine();
2833
2833
  return e ? Oe().reduce(
2834
2834
  (n, i) => {
@@ -2852,9 +2852,9 @@ function Za() {
2852
2852
  list: []
2853
2853
  };
2854
2854
  }
2855
- const Qa = "_rangeBox_12c3t_59", pa = {
2856
- rangeBox: Qa
2857
- }, jt = Vt((e, t) => {
2855
+ const eo = "_rangeBox_12c3t_59", to = {
2856
+ rangeBox: eo
2857
+ }, Tt = Gt((e, t) => {
2858
2858
  const n = k.getActiveEngine();
2859
2859
  if (!n) return;
2860
2860
  const i = n.componentNode.getAll().reduce((c, o) => {
@@ -2869,12 +2869,12 @@ const Qa = "_rangeBox_12c3t_59", pa = {
2869
2869
  x2: e.x + e.width,
2870
2870
  y2: e.y + e.height
2871
2871
  };
2872
- return ki(d, a) && (!o.lock || o.lock && Pe("shift")) && c.push(o.id), c;
2872
+ return Si(d, a) && (!o.lock || o.lock && Pe("shift")) && c.push(o.id), c;
2873
2873
  }, []);
2874
2874
  n.instance.select(i, !0), t == null || t(i);
2875
2875
  }, 100);
2876
2876
  let F;
2877
- function eo(e) {
2877
+ function no(e) {
2878
2878
  let t = { x: 0, y: 0 }, n = 1;
2879
2879
  function i(o = 0, d = 0) {
2880
2880
  const a = o * n, s = d * n, r = t.x + a, h = t.y + s, u = {
@@ -2897,23 +2897,23 @@ function eo(e) {
2897
2897
  const { x: r = 0, y: h = 0 } = a || {};
2898
2898
  n = s.config.getConfig().scale;
2899
2899
  const u = e.getBoundingClientRect();
2900
- t.x = r - u.x, t.y = h - u.y, F = document.createElement("div"), F.classList.add(pa.rangeBox), F.style.zIndex = `${s.componentNode.getMaxLevel()}`, e.appendChild(F), ae.set("default");
2900
+ t.x = r - u.x, t.y = h - u.y, F = document.createElement("div"), F.classList.add(to.rangeBox), F.style.zIndex = `${s.componentNode.getMaxLevel()}`, e.appendChild(F), ae.set("default");
2901
2901
  },
2902
2902
  onMove(o, d) {
2903
2903
  if (!F) return;
2904
2904
  const a = i(o, d);
2905
- F.style.top = `${a.y}px`, F.style.left = `${a.x}px`, F.style.width = `${a.width}px`, F.style.height = `${a.height}px`, F.style.borderWidth = "1px", jt(a);
2905
+ F.style.top = `${a.y}px`, F.style.left = `${a.x}px`, F.style.width = `${a.width}px`, F.style.height = `${a.height}px`, F.style.borderWidth = "1px", Tt(a);
2906
2906
  },
2907
2907
  onEnd(o, d) {
2908
2908
  c(), ae.revoke();
2909
2909
  const a = i(o, d);
2910
- (a.width || a.height) && jt(a, (s) => {
2910
+ (a.width || a.height) && Tt(a, (s) => {
2911
2911
  s.length && O("范围选中组件");
2912
2912
  });
2913
2913
  }
2914
2914
  };
2915
2915
  }
2916
- function to(e, t) {
2916
+ function io(e, t) {
2917
2917
  return {
2918
2918
  onEnd(n, i, c) {
2919
2919
  setTimeout(() => {
@@ -2924,7 +2924,7 @@ function to(e, t) {
2924
2924
  const d = o.config.getConfig().scale, a = e.getComponentNode(), s = e.getContainerDom();
2925
2925
  if (!a || a != null && a.lock || !s)
2926
2926
  return;
2927
- const r = ((u = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : u.call(s)) || { x: 0, y: 0 }, h = io(a, {
2927
+ const r = ((u = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : u.call(s)) || { x: 0, y: 0 }, h = co(a, {
2928
2928
  x: (c.x - r.x) / d + a.x,
2929
2929
  // 鼠标在编辑器上的虚拟坐标
2930
2930
  y: (c.y - r.y) / d + a.y
@@ -2934,7 +2934,7 @@ function to(e, t) {
2934
2934
  }
2935
2935
  };
2936
2936
  }
2937
- function no(e, t) {
2937
+ function lo(e, t) {
2938
2938
  const n = k.getActiveEngine();
2939
2939
  if (!n)
2940
2940
  return;
@@ -2942,15 +2942,15 @@ function no(e, t) {
2942
2942
  var s;
2943
2943
  return (a.show ?? !0) && a.category === "layout" && // layout类组件
2944
2944
  a.id !== e.id && // 不能拖拽到自身(如果自身拖拽组件是layout类型时)
2945
- Si(t, n.componentNode.getCoordinate(a)) && (d[s = `${a.level}`] || (d[s] = [])).push(a), d;
2945
+ Ni(t, n.componentNode.getCoordinate(a)) && (d[s = `${a.level}`] || (d[s] = [])).push(a), d;
2946
2946
  }, {}), c = Object.values(i), o = c[c.length - 1];
2947
2947
  return o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1];
2948
2948
  }
2949
- function io(e, t) {
2949
+ function co(e, t) {
2950
2950
  const n = k.getActiveEngine();
2951
2951
  if (!n)
2952
2952
  return;
2953
- const i = no(e, {
2953
+ const i = lo(e, {
2954
2954
  x: t.x,
2955
2955
  y: t.y
2956
2956
  });
@@ -2985,8 +2985,8 @@ function io(e, t) {
2985
2985
  });
2986
2986
  }
2987
2987
  }
2988
- function lo(e) {
2989
- const t = j([]), { engine: n } = N();
2988
+ function ao(e) {
2989
+ const t = j([]), { engine: n } = w();
2990
2990
  function i() {
2991
2991
  var c, o;
2992
2992
  t != null && t.current.length && ((o = (c = t == null ? void 0 : t.current) == null ? void 0 : c.forEach) == null || o.call(c, (d) => d == null ? void 0 : d()), t.current = []);
@@ -2997,10 +2997,10 @@ function lo(e) {
2997
2997
  const o = e.current;
2998
2998
  if (!o) throw new Error("dom must be exist.");
2999
2999
  i();
3000
- const d = Ae(c), a = Yt(c), s = Pe("shift"), r = ct(c.target, oe.componentNodeId, !0), h = n.instance.get(r), u = (m = h == null ? void 0 : h.getComponentNode) == null ? void 0 : m.call(h), _ = a ? !0 : u != null && u.lock ? d && s : d;
3000
+ const d = Ae(c), a = Zt(c), s = Pe("shift"), r = ct(c.target, oe.componentNodeId, !0), h = n.instance.get(r), u = (m = h == null ? void 0 : h.getComponentNode) == null ? void 0 : m.call(h), _ = a ? !0 : u != null && u.lock ? d && s : d;
3001
3001
  if (h && u && _) {
3002
- if (Va(u, c), !(u != null && u.lock) && d) {
3003
- const y = ct(
3002
+ if (Xa(u, c), !(u != null && u.lock) && d) {
3003
+ const v = ct(
3004
3004
  c.target,
3005
3005
  oe.dragDirection
3006
3006
  );
@@ -3012,12 +3012,12 @@ function lo(e) {
3012
3012
  scale: n.config.getConfig().scale,
3013
3013
  hookQueue: [
3014
3014
  // 监听拖拽大小
3015
- y && Ka(u, c.target, y),
3015
+ v && qa(u, c.target, v),
3016
3016
  // 监听拖拽移动
3017
- !y && Ga(h),
3017
+ !v && Ya(h),
3018
3018
  // 监听是否放置到 layout 组件
3019
- to(h, (x) => {
3020
- t.current.push(x);
3019
+ io(h, (C) => {
3020
+ t.current.push(C);
3021
3021
  })
3022
3022
  ]
3023
3023
  })
@@ -3025,7 +3025,7 @@ function lo(e) {
3025
3025
  }
3026
3026
  return;
3027
3027
  }
3028
- Wa(c), t.current.push(
3028
+ Ga(c), t.current.push(
3029
3029
  St({
3030
3030
  startX: c.x,
3031
3031
  startY: c.y,
@@ -3033,18 +3033,18 @@ function lo(e) {
3033
3033
  scale: n.config.getConfig().scale,
3034
3034
  hookQueue: [
3035
3035
  // 监听创建范围多选框(左键按住范围框选)
3036
- d && eo(o)
3036
+ d && no(o)
3037
3037
  ]
3038
3038
  })
3039
3039
  );
3040
3040
  }
3041
- }), Zt(() => {
3041
+ }), Qt(() => {
3042
3042
  i();
3043
3043
  });
3044
3044
  }
3045
- function co(e) {
3046
- const { engine: t } = N();
3047
- sn(e, {
3045
+ function oo(e) {
3046
+ const { engine: t } = w();
3047
+ un(e, {
3048
3048
  accept: ["create-component"],
3049
3049
  onDrop: (n, i) => {
3050
3050
  const c = e.current;
@@ -3065,9 +3065,9 @@ function co(e) {
3065
3065
  }
3066
3066
  });
3067
3067
  }
3068
- function ao(e) {
3069
- const { engine: t } = N();
3070
- sn(e, {
3068
+ function ro(e) {
3069
+ const { engine: t } = w();
3070
+ un(e, {
3071
3071
  accept: ["create-favorite"],
3072
3072
  onDrop: (n, i) => {
3073
3073
  var b, I;
@@ -3077,27 +3077,27 @@ function ao(e) {
3077
3077
  const o = c.getBoundingClientRect(), d = (b = i.data) == null ? void 0 : b.favorite;
3078
3078
  (I = d.children) != null && I.length || A.warn("收藏元素为空");
3079
3079
  const a = Math.round(n.x - o.x), s = Math.round(n.y - o.y), r = d.children[0], { x: h, y: u } = d.children.reduce(
3080
- (f, v) => (f.x = Math.min(f.x, v.x), f.y = Math.min(f.y, v.y), f),
3080
+ (y, f) => (y.x = Math.min(y.x, f.x), y.y = Math.min(y.y, f.y), y),
3081
3081
  {
3082
3082
  x: r.x,
3083
3083
  y: r.y
3084
3084
  }
3085
- ), _ = t.config.getCurrentPage(), m = [], y = t.config.getConfig().scale, x = t.componentNode.cloneComponentNodes(d.children, {
3086
- onClone(f, v) {
3087
- v.x = Math.round((a + (v.x - h)) / y), v.y = Math.round((s + (v.y - u)) / y), v.pageId = _, m.push(v.id);
3085
+ ), _ = t.config.getCurrentPage(), m = [], v = t.config.getConfig().scale, C = t.componentNode.cloneComponentNodes(d.children, {
3086
+ onClone(y, f) {
3087
+ f.x = Math.round((a + (f.x - h)) / v), f.y = Math.round((s + (f.y - u)) / v), f.pageId = _, m.push(f.id);
3088
3088
  }
3089
3089
  });
3090
- t.componentNode.add(x), setTimeout(() => {
3090
+ t.componentNode.add(C), setTimeout(() => {
3091
3091
  t.instance.select(m, !0), O(`新增收藏组件 “${d.name}”`);
3092
3092
  });
3093
3093
  }
3094
3094
  });
3095
3095
  }
3096
- const oo = () => {
3097
- const { engine: e } = N(), t = j(null), n = j(null), i = Xt(), c = Gt(), o = L(() => {
3096
+ const so = () => {
3097
+ const { engine: e } = w(), t = j(null), n = j(null), i = Yt(), c = Xt(), o = L(() => {
3098
3098
  if (i.length)
3099
3099
  return c == null ? void 0 : c.map((d) => /* @__PURE__ */ l(
3100
- qa,
3100
+ Wa,
3101
3101
  {
3102
3102
  componentNode: d,
3103
3103
  packages: i
@@ -3105,31 +3105,31 @@ const oo = () => {
3105
3105
  d.id
3106
3106
  ));
3107
3107
  }, [c, i]);
3108
- return lo(n), gn(t), co(n), ao(n), E(() => e.componentNode.onDelete((d) => {
3108
+ return ao(n), _n(t), oo(n), ro(n), E(() => e.componentNode.onDelete((d) => {
3109
3109
  e.page.removeGlobalComponentNode(d);
3110
3110
  }), []), /* @__PURE__ */ l(
3111
3111
  "div",
3112
3112
  {
3113
3113
  ref: t,
3114
- className: Mt.editor,
3114
+ className: jt.editor,
3115
3115
  onMouseDown: () => De(),
3116
- children: /* @__PURE__ */ l(yi, { ref: n, className: Mt.editor_render, children: o })
3116
+ children: /* @__PURE__ */ l(vi, { ref: n, className: jt.editor_render, children: o })
3117
3117
  }
3118
3118
  );
3119
- }, ro = "_attributes_esabd_59", so = {
3120
- attributes: ro
3121
- }, uo = "_singleInstanceAttributesBase_description_x66dv_59", ho = "_singleInstanceAttributesBase_body_x66dv_64", go = "_singleInstanceAttributesBase_label_x66dv_67", _o = "_singleInstanceAttributesBase_x66dv_59", Y = {
3122
- singleInstanceAttributesBase_description: uo,
3123
- singleInstanceAttributesBase_body: ho,
3124
- singleInstanceAttributesBase_label: go,
3125
- singleInstanceAttributesBase: _o
3126
- }, mo = "_opacity0_1lvzj_59", fo = "_editText_1lvzj_62", yo = "_editText_text_1lvzj_69", Xe = {
3127
- opacity0: mo,
3128
- editText: fo,
3129
- editText_text: yo
3119
+ }, uo = "_attributes_esabd_59", ho = {
3120
+ attributes: uo
3121
+ }, go = "_singleInstanceAttributesBase_description_x66dv_59", _o = "_singleInstanceAttributesBase_body_x66dv_64", mo = "_singleInstanceAttributesBase_label_x66dv_67", fo = "_singleInstanceAttributesBase_x66dv_59", Y = {
3122
+ singleInstanceAttributesBase_description: go,
3123
+ singleInstanceAttributesBase_body: _o,
3124
+ singleInstanceAttributesBase_label: mo,
3125
+ singleInstanceAttributesBase: fo
3126
+ }, yo = "_opacity0_1lvzj_59", vo = "_editText_1lvzj_62", bo = "_editText_text_1lvzj_69", Xe = {
3127
+ opacity0: yo,
3128
+ editText: vo,
3129
+ editText_text: bo
3130
3130
  };
3131
- function vo(e) {
3132
- const [t, n] = S(!1), [i, c] = S("");
3131
+ function Co(e) {
3132
+ const [t, n] = N(!1), [i, c] = N("");
3133
3133
  function o() {
3134
3134
  c((e == null ? void 0 : e.value) || ""), n(!0);
3135
3135
  }
@@ -3156,16 +3156,16 @@ function vo(e) {
3156
3156
  }
3157
3157
  ) : /* @__PURE__ */ l("b", { className: Xe.editText_text, title: `${(e == null ? void 0 : e.value) || ""}`, children: e == null ? void 0 : e.value }),
3158
3158
  t ? /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: d }) : /* @__PURE__ */ l(
3159
- Kt,
3159
+ Ut,
3160
3160
  {
3161
- className: R(Xe.opacity0, "icon_clickable"),
3161
+ className: $(Xe.opacity0, "icon_clickable"),
3162
3162
  onClick: o
3163
3163
  }
3164
3164
  )
3165
3165
  ] });
3166
3166
  }
3167
- function bo() {
3168
- const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm(), i = L(() => e.component.get(t == null ? void 0 : t.cId), [t == null ? void 0 : t.cId]), c = i == null ? void 0 : i.attributesComponent;
3167
+ function xo() {
3168
+ const { engine: e } = w(), { componentNode: t } = he(), [n] = M.useForm(), i = L(() => e.component.get(t == null ? void 0 : t.cId), [t == null ? void 0 : t.cId]), c = i == null ? void 0 : i.attributesComponent;
3169
3169
  function o(d) {
3170
3170
  d || e.page.removeGlobalComponentNode(t == null ? void 0 : t.id);
3171
3171
  }
@@ -3186,7 +3186,7 @@ function bo() {
3186
3186
  children: [
3187
3187
  /* @__PURE__ */ l("div", { className: Y.singleInstanceAttributesBase_description, children: /* @__PURE__ */ g(nt, { children: [
3188
3188
  /* @__PURE__ */ l(H, { span: 24, style: { marginBottom: 6 }, children: /* @__PURE__ */ l(
3189
- vo,
3189
+ Co,
3190
3190
  {
3191
3191
  emptyMessage: "请填写名称",
3192
3192
  value: t == null ? void 0 : t.name,
@@ -3223,11 +3223,11 @@ function bo() {
3223
3223
  /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "height", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) })
3224
3224
  ] }),
3225
3225
  /* @__PURE__ */ g(Le, { labelSpan: 4, children: [
3226
- /* @__PURE__ */ l(z, { label: "层级", style: { marginTop: 8 }, labelSpan: 3, children: /* @__PURE__ */ l(M.Item, { name: "level", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3227
- /* @__PURE__ */ l(z, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
3226
+ /* @__PURE__ */ l(T, { label: "层级", style: { marginTop: 8 }, labelSpan: 3, children: /* @__PURE__ */ l(M.Item, { name: "level", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3227
+ /* @__PURE__ */ l(T, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
3228
3228
  ] })
3229
3229
  ] }),
3230
- t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(zt, { children: /* @__PURE__ */ l(
3230
+ t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l($t, { children: /* @__PURE__ */ l(
3231
3231
  c,
3232
3232
  {
3233
3233
  componentNode: t,
@@ -3250,12 +3250,12 @@ function bo() {
3250
3250
  }
3251
3251
  );
3252
3252
  }
3253
- const Co = "_dataSource_1t8uf_59", xo = {
3254
- dataSource: Co
3255
- }, Io = "_requestDataSource_147st_59", ko = {
3256
- requestDataSource: Io
3253
+ const Io = "_dataSource_1t8uf_59", ko = {
3254
+ dataSource: Io
3255
+ }, So = "_requestDataSource_147st_59", No = {
3256
+ requestDataSource: So
3257
3257
  };
3258
- function So(e) {
3258
+ function wo(e) {
3259
3259
  const t = k.getActiveEngine(), { componentNode: n } = he(), i = L(() => {
3260
3260
  var r, h;
3261
3261
  return (h = (r = t == null ? void 0 : t.instance) == null ? void 0 : r.get) == null ? void 0 : h.call(r, n == null ? void 0 : n.id);
@@ -3263,7 +3263,7 @@ function So(e) {
3263
3263
  data: o,
3264
3264
  loading: d,
3265
3265
  refresh: a
3266
- } = Qt(
3266
+ } = pt(
3267
3267
  async () => {
3268
3268
  var r, h;
3269
3269
  return (h = (r = i == null ? void 0 : i.request) == null ? void 0 : r.call(i, void 0, !0)) == null ? void 0 : h.then((u) => typeof u == "object" && u ? JSON.stringify(u, null, " ") : `${u ?? null}`);
@@ -3281,8 +3281,8 @@ function So(e) {
3281
3281
  }
3282
3282
  }));
3283
3283
  }
3284
- return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className: ko.requestDataSource, children: [
3285
- /* @__PURE__ */ l(z, { label: "请求类型", children: /* @__PURE__ */ l(
3284
+ return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className: No.requestDataSource, children: [
3285
+ /* @__PURE__ */ l(T, { label: "请求类型", children: /* @__PURE__ */ l(
3286
3286
  Ce,
3287
3287
  {
3288
3288
  allowClear: !1,
@@ -3299,7 +3299,7 @@ function So(e) {
3299
3299
  }
3300
3300
  }
3301
3301
  ) }),
3302
- /* @__PURE__ */ l(z, { label: "请求地址", children: /* @__PURE__ */ l(
3302
+ /* @__PURE__ */ l(T, { label: "请求地址", children: /* @__PURE__ */ l(
3303
3303
  p,
3304
3304
  {
3305
3305
  value: c == null ? void 0 : c.url,
@@ -3309,7 +3309,7 @@ function So(e) {
3309
3309
  }
3310
3310
  ) }),
3311
3311
  /* @__PURE__ */ l("b", { style: { marginTop: 12 }, children: "请求配置" }),
3312
- /* @__PURE__ */ l(z, { label: "轮循请求", children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
3312
+ /* @__PURE__ */ l(T, { label: "轮循请求", children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
3313
3313
  /* @__PURE__ */ l(
3314
3314
  we,
3315
3315
  {
@@ -3333,7 +3333,7 @@ function So(e) {
3333
3333
  /* @__PURE__ */ l("span", { children: "毫秒" })
3334
3334
  ] })
3335
3335
  ] }) }),
3336
- /* @__PURE__ */ l(z, { label: "初次请求", children: /* @__PURE__ */ l(
3336
+ /* @__PURE__ */ l(T, { label: "初次请求", children: /* @__PURE__ */ l(
3337
3337
  we,
3338
3338
  {
3339
3339
  checked: (c == null ? void 0 : c.first) ?? !1,
@@ -3344,7 +3344,7 @@ function So(e) {
3344
3344
  ) }),
3345
3345
  /* @__PURE__ */ g("div", { style: { marginTop: 12, display: "flex", gap: 8, alignItems: "center" }, children: [
3346
3346
  /* @__PURE__ */ l("b", { children: "数据结果" }),
3347
- /* @__PURE__ */ l($, { title: "请求数据", children: /* @__PURE__ */ l(
3347
+ /* @__PURE__ */ l(z, { title: "请求数据", children: /* @__PURE__ */ l(
3348
3348
  Z,
3349
3349
  {
3350
3350
  className: "icon_clickable",
@@ -3366,11 +3366,11 @@ function So(e) {
3366
3366
  )
3367
3367
  ] });
3368
3368
  }
3369
- const No = "_staticDataSource_1p3pl_59", wo = {
3370
- staticDataSource: No
3369
+ const Eo = "_staticDataSource_1p3pl_59", Ao = {
3370
+ staticDataSource: Eo
3371
3371
  };
3372
- function Eo(e) {
3373
- const { engine: t } = N(), { componentNode: n } = he(), [i, c] = S("");
3372
+ function Lo(e) {
3373
+ const { engine: t } = w(), { componentNode: n } = he(), [i, c] = N("");
3374
3374
  function o() {
3375
3375
  if (!i)
3376
3376
  return A.warn("json格式不正确");
@@ -3387,8 +3387,8 @@ function Eo(e) {
3387
3387
  c(
3388
3388
  n != null && n.staticDataSource ? JSON.stringify((n == null ? void 0 : n.staticDataSource) || {}, null, " ") : ""
3389
3389
  );
3390
- }, [n]), /* @__PURE__ */ g("div", { className: wo.staticDataSource, style: e == null ? void 0 : e.style, children: [
3391
- /* @__PURE__ */ l(z, { label: "配置数据", children: /* @__PURE__ */ l($, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: o }) }) }),
3390
+ }, [n]), /* @__PURE__ */ g("div", { className: Ao.staticDataSource, style: e == null ? void 0 : e.style, children: [
3391
+ /* @__PURE__ */ l(T, { label: "配置数据", children: /* @__PURE__ */ l(z, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: o }) }) }),
3392
3392
  /* @__PURE__ */ l(
3393
3393
  X,
3394
3394
  {
@@ -3404,20 +3404,20 @@ function Eo(e) {
3404
3404
  )
3405
3405
  ] });
3406
3406
  }
3407
- const Ao = [
3407
+ const Do = [
3408
3408
  { label: "静态数据", value: "static" },
3409
3409
  { label: "请求接口", value: "request" }
3410
3410
  ];
3411
- function Lo() {
3412
- const { engine: e } = N(), { componentNode: t } = he(), n = (t == null ? void 0 : t.dataSourceType) ?? "static";
3413
- return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: xo.dataSource, children: [
3414
- /* @__PURE__ */ l(z, { label: "数据源", children: /* @__PURE__ */ l(
3411
+ function Oo() {
3412
+ const { engine: e } = w(), { componentNode: t } = he(), n = (t == null ? void 0 : t.dataSourceType) ?? "static";
3413
+ return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: ko.dataSource, children: [
3414
+ /* @__PURE__ */ l(T, { label: "数据源", children: /* @__PURE__ */ l(
3415
3415
  Ce,
3416
3416
  {
3417
3417
  value: n,
3418
3418
  allowClear: !1,
3419
3419
  style: { width: "100%" },
3420
- requestFn: async () => Ao,
3420
+ requestFn: async () => Do,
3421
3421
  onChange: (i) => {
3422
3422
  e.componentNode.update(t == null ? void 0 : t.id, {
3423
3423
  dataSourceType: i
@@ -3425,15 +3425,15 @@ function Lo() {
3425
3425
  }
3426
3426
  }
3427
3427
  ) }),
3428
- n === "static" && /* @__PURE__ */ l(Eo, { style: { flex: 1, overflow: "hidden" } }),
3429
- n === "request" && /* @__PURE__ */ l(So, { style: { flex: 1, overflow: "hidden" } })
3428
+ n === "static" && /* @__PURE__ */ l(Lo, { style: { flex: 1, overflow: "hidden" } }),
3429
+ n === "request" && /* @__PURE__ */ l(wo, { style: { flex: 1, overflow: "hidden" } })
3430
3430
  ] }) });
3431
3431
  }
3432
- const Do = "_interactive_1j74j_59", Oo = {
3433
- interactive: Do
3432
+ const Po = "_interactive_1j74j_59", Bo = {
3433
+ interactive: Po
3434
3434
  };
3435
- function Po(e) {
3436
- const { componentNode: t } = e, { engine: n } = N(), [i, c] = S([]), o = L(
3435
+ function Mo(e) {
3436
+ const { componentNode: t } = e, { engine: n } = w(), [i, c] = N([]), o = L(
3437
3437
  () => n.component.get(t == null ? void 0 : t.cId),
3438
3438
  [t == null ? void 0 : t.cId]
3439
3439
  );
@@ -3465,25 +3465,25 @@ function Po(e) {
3465
3465
  }
3466
3466
  );
3467
3467
  }
3468
- const Bo = "_eventList_19gi2_59", Mo = "_eventList_head_19gi2_62", jo = "_eventList_body_19gi2_68", To = "_eventList_item_19gi2_74", zo = "_eventList_item_body_19gi2_84", $o = "_eventList_item_opt_19gi2_90", Ro = "_eventList_item_opt_clickable_19gi2_95", G = {
3469
- eventList: Bo,
3470
- eventList_head: Mo,
3471
- eventList_body: jo,
3472
- eventList_item: To,
3473
- eventList_item_body: zo,
3474
- eventList_item_opt: $o,
3475
- eventList_item_opt_clickable: Ro
3476
- }, Fo = "_editEventDialog_11y5n_59", Ho = "_editEventDialog_menu_11y5n_63", Ko = "_editEventDialog_body_11y5n_78", Ye = {
3477
- editEventDialog: Fo,
3478
- editEventDialog_menu: Ho,
3479
- editEventDialog_body: Ko
3480
- }, Uo = "_eventOptions_main_16n1f_59", Be = {
3481
- eventOptions_main: Uo
3468
+ const jo = "_eventList_19gi2_59", To = "_eventList_head_19gi2_62", zo = "_eventList_body_19gi2_68", $o = "_eventList_item_19gi2_74", Ro = "_eventList_item_body_19gi2_84", Fo = "_eventList_item_opt_19gi2_90", Ho = "_eventList_item_opt_clickable_19gi2_95", G = {
3469
+ eventList: jo,
3470
+ eventList_head: To,
3471
+ eventList_body: zo,
3472
+ eventList_item: $o,
3473
+ eventList_item_body: Ro,
3474
+ eventList_item_opt: Fo,
3475
+ eventList_item_opt_clickable: Ho
3476
+ }, Ko = "_editEventDialog_11y5n_59", Uo = "_editEventDialog_menu_11y5n_63", qo = "_editEventDialog_body_11y5n_78", Ye = {
3477
+ editEventDialog: Ko,
3478
+ editEventDialog_menu: Uo,
3479
+ editEventDialog_body: qo
3480
+ }, Jo = "_eventOptions_main_16n1f_59", Be = {
3481
+ eventOptions_main: Jo
3482
3482
  };
3483
- function qo(e) {
3483
+ function Wo(e) {
3484
3484
  var t;
3485
- return /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ l(z, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
3486
- Ut,
3485
+ return /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ l(T, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
3486
+ qt,
3487
3487
  {
3488
3488
  size: "small",
3489
3489
  checked: (t = e == null ? void 0 : e.value) == null ? void 0 : t.visible,
@@ -3497,8 +3497,8 @@ function qo(e) {
3497
3497
  }
3498
3498
  ) }) });
3499
3499
  }
3500
- const Jo = ue((e) => {
3501
- const [t, n] = Tt.useState();
3500
+ const Vo = ue((e) => {
3501
+ const [t, n] = zt.useState();
3502
3502
  return E(() => {
3503
3503
  var i;
3504
3504
  e != null && e.visible && n((i = e == null ? void 0 : e.params) == null ? void 0 : i.text);
@@ -3543,7 +3543,7 @@ const Jo = ue((e) => {
3543
3543
  {
3544
3544
  language: "javascript",
3545
3545
  style: { height: 450 },
3546
- value: t ?? Bi,
3546
+ value: t ?? Mi,
3547
3547
  onChange: n
3548
3548
  }
3549
3549
  )
@@ -3551,17 +3551,17 @@ const Jo = ue((e) => {
3551
3551
  }
3552
3552
  );
3553
3553
  });
3554
- function _n(e) {
3555
- const t = Jo({
3554
+ function mn(e) {
3555
+ const t = Vo({
3556
3556
  onOk(i) {
3557
3557
  var c;
3558
3558
  (c = e == null ? void 0 : e.onChange) == null || c.call(e, i);
3559
3559
  }
3560
- }), n = L(() => e != null && e.tooltip ? /* @__PURE__ */ l($, { title: e == null ? void 0 : e.tooltip, children: /* @__PURE__ */ l("span", { children: "{}" }) }) : /* @__PURE__ */ l("span", { children: "{}" }), [e == null ? void 0 : e.tooltip]);
3560
+ }), n = L(() => e != null && e.tooltip ? /* @__PURE__ */ l(z, { title: e == null ? void 0 : e.tooltip, children: /* @__PURE__ */ l("span", { children: "{}" }) }) : /* @__PURE__ */ l("span", { children: "{}" }), [e == null ? void 0 : e.tooltip]);
3561
3561
  return /* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(
3562
3562
  "span",
3563
3563
  {
3564
- className: R("icon_clickable", (e == null ? void 0 : e.value) && "icon_selected"),
3564
+ className: $("icon_clickable", (e == null ? void 0 : e.value) && "icon_selected"),
3565
3565
  style: { fontSize: 14 },
3566
3566
  onClick: () => {
3567
3567
  t.open({
@@ -3572,13 +3572,13 @@ function _n(e) {
3572
3572
  }
3573
3573
  ) });
3574
3574
  }
3575
- const Wo = /* @__PURE__ */ g("div", { children: [
3575
+ const Go = /* @__PURE__ */ g("div", { children: [
3576
3576
  /* @__PURE__ */ l("div", { children: "格式参考:" }),
3577
3577
  /* @__PURE__ */ l("div", { style: { whiteSpace: "pre-wrap", padding: "12px 0" }, children: JSON.stringify({ name: "tjh", age: 25 }, null, " ") })
3578
3578
  ] });
3579
- function Vo(e) {
3579
+ function Xo(e) {
3580
3580
  var a, s, r;
3581
- const t = ((a = e == null ? void 0 : e.value) == null ? void 0 : a.type) || "default", [n, i] = S(), [c, o] = S("");
3581
+ const t = ((a = e == null ? void 0 : e.value) == null ? void 0 : a.type) || "default", [n, i] = N(), [c, o] = N("");
3582
3582
  function d() {
3583
3583
  var h;
3584
3584
  try {
@@ -3603,7 +3603,7 @@ function Vo(e) {
3603
3603
  i((h = e == null ? void 0 : e.value) == null ? void 0 : h.parserFunc);
3604
3604
  }, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Be.eventOptions_main, children: [
3605
3605
  /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
3606
- /* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3 }),
3606
+ /* @__PURE__ */ l(T, { label: "参数类型", labelSpan: 3 }),
3607
3607
  /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
3608
3608
  /* @__PURE__ */ l(
3609
3609
  Ce,
@@ -3626,7 +3626,7 @@ function Vo(e) {
3626
3626
  }
3627
3627
  ),
3628
3628
  /* @__PURE__ */ l(
3629
- _n,
3629
+ mn,
3630
3630
  {
3631
3631
  tooltip: "解析函数",
3632
3632
  value: n,
@@ -3642,7 +3642,7 @@ function Vo(e) {
3642
3642
  ] })
3643
3643
  ] }),
3644
3644
  t === "json" && /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
3645
- /* @__PURE__ */ l(z, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l($, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
3645
+ /* @__PURE__ */ l(T, { label: "json对象", labelSpan: 3, labelTip: Go, children: /* @__PURE__ */ l(z, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
3646
3646
  /* @__PURE__ */ l(
3647
3647
  X,
3648
3648
  {
@@ -3657,9 +3657,9 @@ function Vo(e) {
3657
3657
  ] })
3658
3658
  ] });
3659
3659
  }
3660
- function Go(e) {
3660
+ function Yo(e) {
3661
3661
  var o;
3662
- const [t, n] = S();
3662
+ const [t, n] = N();
3663
3663
  function i(d) {
3664
3664
  var a;
3665
3665
  (a = e == null ? void 0 : e.onChange) == null || a.call(e, {
@@ -3674,7 +3674,7 @@ function Go(e) {
3674
3674
  var d;
3675
3675
  n((d = e == null ? void 0 : e.value) == null ? void 0 : d.function);
3676
3676
  }, [(o = e == null ? void 0 : e.value) == null ? void 0 : o.function]), /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 4, children: [
3677
- /* @__PURE__ */ l(z, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
3677
+ /* @__PURE__ */ l(T, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
3678
3678
  "div",
3679
3679
  {
3680
3680
  style: {
@@ -3683,13 +3683,13 @@ function Go(e) {
3683
3683
  alignItems: "center",
3684
3684
  justifyContent: "space-between"
3685
3685
  },
3686
- children: /* @__PURE__ */ l($, { title: "重置", children: /* @__PURE__ */ l(Xn, { onClick: c, className: "icon_clickable" }) })
3686
+ children: /* @__PURE__ */ l(z, { title: "重置", children: /* @__PURE__ */ l(Yn, { onClick: c, className: "icon_clickable" }) })
3687
3687
  }
3688
3688
  ) }),
3689
3689
  /* @__PURE__ */ l(
3690
3690
  X,
3691
3691
  {
3692
- value: t ?? Mi,
3692
+ value: t ?? ji,
3693
3693
  language: "javascript",
3694
3694
  style: { height: 440 },
3695
3695
  onChange: (d) => {
@@ -3699,38 +3699,38 @@ function Go(e) {
3699
3699
  )
3700
3700
  ] }) });
3701
3701
  }
3702
- const Xo = {
3702
+ const Zo = {
3703
3703
  default: void 0,
3704
3704
  number: 0,
3705
3705
  text: "",
3706
3706
  json: {}
3707
3707
  };
3708
- function Yo(e) {
3709
- var r, h, u, _, m, y, x, b, I, f, v;
3710
- const { onChange: t } = e, n = ((r = e == null ? void 0 : e.value) == null ? void 0 : r.type) || "default", i = ((h = e == null ? void 0 : e.value) == null ? void 0 : h.type) === "json", [c, o] = S(), [d, a] = S();
3708
+ function Qo(e) {
3709
+ var r, h, u, _, m, v, C, b, I, y, f;
3710
+ const { onChange: t } = e, n = ((r = e == null ? void 0 : e.value) == null ? void 0 : r.type) || "default", i = ((h = e == null ? void 0 : e.value) == null ? void 0 : h.type) === "json", [c, o] = N(), [d, a] = N();
3711
3711
  function s() {
3712
- var C;
3712
+ var x;
3713
3713
  if (!d)
3714
3714
  return A.warn("json不能为空");
3715
3715
  try {
3716
- const w = JSON.parse(d || "");
3717
- typeof w == "object" && w && ((C = e == null ? void 0 : e.onChange) == null || C.call(e, {
3716
+ const S = JSON.parse(d || "");
3717
+ typeof S == "object" && S && ((x = e == null ? void 0 : e.onChange) == null || x.call(e, {
3718
3718
  ...e == null ? void 0 : e.value,
3719
- value: w
3719
+ value: S
3720
3720
  }), A.success("设置成功"));
3721
3721
  } catch {
3722
3722
  A.warn("json格式不正确");
3723
3723
  }
3724
3724
  }
3725
3725
  return E(() => {
3726
- var C;
3727
- o((C = e == null ? void 0 : e.value) == null ? void 0 : C.parserFunc);
3726
+ var x;
3727
+ o((x = e == null ? void 0 : e.value) == null ? void 0 : x.parserFunc);
3728
3728
  }, [(u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc]), E(() => {
3729
- var C, w;
3730
- ((C = e == null ? void 0 : e.value) == null ? void 0 : C.type) === "json" && a(JSON.stringify(((w = e == null ? void 0 : e.value) == null ? void 0 : w.value) || {}, null, " "));
3729
+ var x, S;
3730
+ ((x = e == null ? void 0 : e.value) == null ? void 0 : x.type) === "json" && a(JSON.stringify(((S = e == null ? void 0 : e.value) == null ? void 0 : S.value) || {}, null, " "));
3731
3731
  }, [(_ = e == null ? void 0 : e.value) == null ? void 0 : _.type, (m = e == null ? void 0 : e.value) == null ? void 0 : m.value]), /* @__PURE__ */ g("div", { className: Be.eventOptions_main, children: [
3732
3732
  /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
3733
- /* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
3733
+ /* @__PURE__ */ l(T, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
3734
3734
  /* @__PURE__ */ g(D, { children: [
3735
3735
  /* @__PURE__ */ l(
3736
3736
  Ce,
@@ -3744,31 +3744,31 @@ function Yo(e) {
3744
3744
  { label: "文本值", value: "text" },
3745
3745
  { label: "json数据", value: "json" }
3746
3746
  ],
3747
- onChange: (C) => t({
3747
+ onChange: (x) => t({
3748
3748
  ...e == null ? void 0 : e.value,
3749
- value: Xo[C],
3750
- type: C
3749
+ value: Zo[x],
3750
+ type: x
3751
3751
  })
3752
3752
  }
3753
3753
  ),
3754
3754
  /* @__PURE__ */ l(
3755
- _n,
3755
+ mn,
3756
3756
  {
3757
3757
  tooltip: "解析函数",
3758
3758
  value: c,
3759
- onChange: (C) => {
3760
- var w;
3761
- o(C), (w = e == null ? void 0 : e.onChange) == null || w.call(e, {
3759
+ onChange: (x) => {
3760
+ var S;
3761
+ o(x), (S = e == null ? void 0 : e.onChange) == null || S.call(e, {
3762
3762
  ...e == null ? void 0 : e.value,
3763
- parserFunc: C
3763
+ parserFunc: x
3764
3764
  });
3765
3765
  }
3766
3766
  }
3767
3767
  )
3768
3768
  ] })
3769
3769
  ] }),
3770
- ((y = e == null ? void 0 : e.value) == null ? void 0 : y.type) && ((x = e == null ? void 0 : e.value) == null ? void 0 : x.type) !== "default" && /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
3771
- /* @__PURE__ */ l(z, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l($, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
3770
+ ((v = e == null ? void 0 : e.value) == null ? void 0 : v.type) && ((C = e == null ? void 0 : e.value) == null ? void 0 : C.type) !== "default" && /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
3771
+ /* @__PURE__ */ l(T, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(z, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
3772
3772
  /* @__PURE__ */ g(W, { children: [
3773
3773
  ((b = e == null ? void 0 : e.value) == null ? void 0 : b.type) === "number" && /* @__PURE__ */ l(
3774
3774
  mt,
@@ -3776,24 +3776,24 @@ function Yo(e) {
3776
3776
  min: void 0,
3777
3777
  style: { width: Ne * 2 },
3778
3778
  value: (I = e == null ? void 0 : e.value) == null ? void 0 : I.value,
3779
- onChange: (C) => {
3779
+ onChange: (x) => {
3780
3780
  t({
3781
3781
  ...e == null ? void 0 : e.value,
3782
- value: C
3782
+ value: x
3783
3783
  });
3784
3784
  }
3785
3785
  }
3786
3786
  ),
3787
- ((f = e == null ? void 0 : e.value) == null ? void 0 : f.type) === "text" && /* @__PURE__ */ l(
3788
- xi,
3787
+ ((y = e == null ? void 0 : e.value) == null ? void 0 : y.type) === "text" && /* @__PURE__ */ l(
3788
+ Ii,
3789
3789
  {
3790
3790
  style: { width: Ne * 2 },
3791
- value: (v = e == null ? void 0 : e.value) == null ? void 0 : v.value,
3791
+ value: (f = e == null ? void 0 : e.value) == null ? void 0 : f.value,
3792
3792
  autoSize: { minRows: 3, maxRows: 3 },
3793
- onChange: (C) => {
3793
+ onChange: (x) => {
3794
3794
  t({
3795
3795
  ...e == null ? void 0 : e.value,
3796
- value: C
3796
+ value: x
3797
3797
  });
3798
3798
  }
3799
3799
  }
@@ -3804,8 +3804,8 @@ function Yo(e) {
3804
3804
  language: "javascript",
3805
3805
  style: { height: 375 },
3806
3806
  value: d,
3807
- onChange: (C) => {
3808
- a(C);
3807
+ onChange: (x) => {
3808
+ a(x);
3809
3809
  }
3810
3810
  }
3811
3811
  )
@@ -3814,7 +3814,7 @@ function Yo(e) {
3814
3814
  ] });
3815
3815
  }
3816
3816
  const Ne = 200;
3817
- function Zo(e) {
3817
+ function po(e) {
3818
3818
  var i, c, o, d, a;
3819
3819
  const t = (i = e == null ? void 0 : e.value) == null ? void 0 : i.option;
3820
3820
  function n(s) {
@@ -3824,22 +3824,22 @@ function Zo(e) {
3824
3824
  option: s
3825
3825
  }));
3826
3826
  }
3827
- return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === ze.visible ? /* @__PURE__ */ l(qo, { value: t, onChange: n }) : ((d = e == null ? void 0 : e.value) == null ? void 0 : d.exposeId) === ze.request ? /* @__PURE__ */ l(Vo, { value: t, onChange: n }) : ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) === ze.custom ? /* @__PURE__ */ l(Go, { value: t, onChange: n }) : /* @__PURE__ */ l(Yo, { value: t, onChange: n }) : /* @__PURE__ */ l(U, { description: "请选中目标操作" });
3827
+ return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === ze.visible ? /* @__PURE__ */ l(Wo, { value: t, onChange: n }) : ((d = e == null ? void 0 : e.value) == null ? void 0 : d.exposeId) === ze.request ? /* @__PURE__ */ l(Xo, { value: t, onChange: n }) : ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) === ze.custom ? /* @__PURE__ */ l(Yo, { value: t, onChange: n }) : /* @__PURE__ */ l(Qo, { value: t, onChange: n }) : /* @__PURE__ */ l(U, { description: "请选中目标操作" });
3828
3828
  }
3829
- const Qo = "_targetList_17cmb_59", po = "_targetList_body_17cmb_66", ed = "_targetList_item_17cmb_74", td = "_targetList_item_clickable_17cmb_82", nd = "_targetList_item_selected_17cmb_89", me = {
3830
- targetList: Qo,
3831
- targetList_body: po,
3832
- targetList_item: ed,
3833
- targetList_item_clickable: td,
3834
- targetList_item_selected: nd
3835
- }, id = "_addComponentNodeButton_xm0lb_59", ld = "_addComponentNodeButton_body_xm0lb_68", cd = "_addComponentNodeButton_item_xm0lb_73", ad = "_addComponentNodeButton_item_text_xm0lb_84", od = "_dropdown_overlay_xm0lb_93", fe = {
3836
- addComponentNodeButton: id,
3837
- addComponentNodeButton_body: ld,
3838
- addComponentNodeButton_item: cd,
3839
- addComponentNodeButton_item_text: ad,
3840
- dropdown_overlay: od
3829
+ const ed = "_targetList_17cmb_59", td = "_targetList_body_17cmb_66", nd = "_targetList_item_17cmb_74", id = "_targetList_item_clickable_17cmb_82", ld = "_targetList_item_selected_17cmb_89", me = {
3830
+ targetList: ed,
3831
+ targetList_body: td,
3832
+ targetList_item: nd,
3833
+ targetList_item_clickable: id,
3834
+ targetList_item_selected: ld
3835
+ }, cd = "_addComponentNodeButton_xm0lb_59", ad = "_addComponentNodeButton_body_xm0lb_68", od = "_addComponentNodeButton_item_xm0lb_73", dd = "_addComponentNodeButton_item_text_xm0lb_84", rd = "_dropdown_overlay_xm0lb_93", fe = {
3836
+ addComponentNodeButton: cd,
3837
+ addComponentNodeButton_body: ad,
3838
+ addComponentNodeButton_item: od,
3839
+ addComponentNodeButton_item_text: dd,
3840
+ dropdown_overlay: rd
3841
3841
  };
3842
- function dd(e) {
3842
+ function sd(e) {
3843
3843
  const { componentNode: t } = e;
3844
3844
  return /* @__PURE__ */ g(D, { direction: "vertical", style: { fontSize: 12 }, className: "theme-color", size: 6, children: [
3845
3845
  /* @__PURE__ */ g("div", { children: [
@@ -3860,13 +3860,13 @@ function dd(e) {
3860
3860
  /* @__PURE__ */ g("div", { children: [
3861
3861
  /* @__PURE__ */ l("b", { children: "show" }),
3862
3862
  ":",
3863
- /* @__PURE__ */ l(Ut, { disabled: !0, size: "small", checked: (t == null ? void 0 : t.show) ?? !0 })
3863
+ /* @__PURE__ */ l(qt, { disabled: !0, size: "small", checked: (t == null ? void 0 : t.show) ?? !0 })
3864
3864
  ] })
3865
3865
  ] });
3866
3866
  }
3867
- function rd(e) {
3867
+ function ud(e) {
3868
3868
  var _;
3869
- const { engine: t } = N(), [n, i] = S(!1), [c, o] = S([]), [d, a] = S(""), s = j();
3869
+ const { engine: t } = w(), [n, i] = N(!1), [c, o] = N([]), [d, a] = N(""), s = j();
3870
3870
  E(() => {
3871
3871
  if (n) {
3872
3872
  s.current && (clearTimeout(s.current), s.current = null);
@@ -3875,11 +3875,11 @@ function rd(e) {
3875
3875
  }
3876
3876
  }, [n]);
3877
3877
  const r = L(() => {
3878
- var y;
3879
- const m = (y = d == null ? void 0 : d.toLowerCase) == null ? void 0 : y.call(d);
3880
- return c.filter((x) => {
3881
- var b, I, f, v;
3882
- return (v = (f = (I = (b = x == null ? void 0 : x.name) == null ? void 0 : b.toLowerCase) == null ? void 0 : I.call(b)) == null ? void 0 : f.includes) == null ? void 0 : v.call(f, m);
3878
+ var v;
3879
+ const m = (v = d == null ? void 0 : d.toLowerCase) == null ? void 0 : v.call(d);
3880
+ return c.filter((C) => {
3881
+ var b, I, y, f;
3882
+ return (f = (y = (I = (b = C == null ? void 0 : C.name) == null ? void 0 : b.toLowerCase) == null ? void 0 : I.call(b)) == null ? void 0 : y.includes) == null ? void 0 : f.call(y, m);
3883
3883
  });
3884
3884
  }, [d, c]);
3885
3885
  function h() {
@@ -3888,8 +3888,8 @@ function rd(e) {
3888
3888
  }, 300);
3889
3889
  }
3890
3890
  function u(m) {
3891
- var y;
3892
- (y = e == null ? void 0 : e.onSelect) == null || y.call(e, m), h();
3891
+ var v;
3892
+ (v = e == null ? void 0 : e.onSelect) == null || v.call(e, m), h();
3893
3893
  }
3894
3894
  return /* @__PURE__ */ l(
3895
3895
  be,
@@ -3904,11 +3904,11 @@ function rd(e) {
3904
3904
  /* @__PURE__ */ g("div", { className: fe.addComponentNodeButton_body, children: [
3905
3905
  !(r != null && r.length) && /* @__PURE__ */ l(U, {}),
3906
3906
  (_ = r == null ? void 0 : r.map) == null ? void 0 : _.call(r, (m) => {
3907
- const y = t.component.get(m == null ? void 0 : m.cId);
3907
+ const v = t.component.get(m == null ? void 0 : m.cId);
3908
3908
  return /* @__PURE__ */ l(
3909
3909
  st,
3910
3910
  {
3911
- content: /* @__PURE__ */ l(dd, { componentNode: m }),
3911
+ content: /* @__PURE__ */ l(sd, { componentNode: m }),
3912
3912
  placement: "right",
3913
3913
  children: /* @__PURE__ */ g(
3914
3914
  "div",
@@ -3920,7 +3920,7 @@ function rd(e) {
3920
3920
  /* @__PURE__ */ l(
3921
3921
  xe,
3922
3922
  {
3923
- src: y == null ? void 0 : y.icon,
3923
+ src: v == null ? void 0 : v.icon,
3924
3924
  style: { maxHeight: 20, maxWidth: 20 }
3925
3925
  }
3926
3926
  ),
@@ -3955,9 +3955,9 @@ function rd(e) {
3955
3955
  }
3956
3956
  );
3957
3957
  }
3958
- function sd(e) {
3958
+ function hd(e) {
3959
3959
  var d;
3960
- const t = ht(), { engine: n } = N(), i = L(() => {
3960
+ const t = ht(), { engine: n } = w(), i = L(() => {
3961
3961
  var a, s;
3962
3962
  return (s = (a = e == null ? void 0 : e.targets) == null ? void 0 : a.map) == null ? void 0 : s.call(a, (r) => {
3963
3963
  var h;
@@ -3979,28 +3979,28 @@ function sd(e) {
3979
3979
  (r = e == null ? void 0 : e.onChangeTargets) == null || r.call(e, s, "add");
3980
3980
  }
3981
3981
  function o(a) {
3982
- var _, m, y;
3982
+ var _, m, v;
3983
3983
  let s;
3984
- const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (x) => x.id === a ? (s = x, !1) : !0)) || [], h = ((y = s == null ? void 0 : s.opts) == null ? void 0 : y.length) || 0;
3984
+ const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (C) => C.id === a ? (s = C, !1) : !0)) || [], h = ((v = s == null ? void 0 : s.opts) == null ? void 0 : v.length) || 0;
3985
3985
  function u() {
3986
- var x, b, I;
3987
- (x = e == null ? void 0 : e.onChangeTargets) == null || x.call(e, r, "delete"), a === (e == null ? void 0 : e.value) && ((I = e == null ? void 0 : e.onChange) == null || I.call(e, (b = r == null ? void 0 : r[0]) == null ? void 0 : b.id));
3986
+ var C, b, I;
3987
+ (C = e == null ? void 0 : e.onChangeTargets) == null || C.call(e, r, "delete"), a === (e == null ? void 0 : e.value) && ((I = e == null ? void 0 : e.onChange) == null || I.call(e, (b = r == null ? void 0 : r[0]) == null ? void 0 : b.id));
3988
3988
  }
3989
3989
  if (h) {
3990
3990
  t({
3991
3991
  title: "提醒",
3992
3992
  content: `该组件已配置 ${h} 个事件操作,确定删除?`,
3993
- onOk(x) {
3994
- u(), x();
3993
+ onOk(C) {
3994
+ u(), C();
3995
3995
  }
3996
3996
  });
3997
3997
  return;
3998
3998
  }
3999
3999
  u();
4000
4000
  }
4001
- return /* @__PURE__ */ g("div", { className: R(me.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
4001
+ return /* @__PURE__ */ g("div", { className: $(me.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
4002
4002
  /* @__PURE__ */ l(
4003
- rd,
4003
+ ud,
4004
4004
  {
4005
4005
  style: { margin: -1 },
4006
4006
  beforeVisible: (a) => a.filter((s) => {
@@ -4016,7 +4016,7 @@ function sd(e) {
4016
4016
  return /* @__PURE__ */ g(
4017
4017
  "div",
4018
4018
  {
4019
- className: R(
4019
+ className: $(
4020
4020
  me.targetList_item,
4021
4021
  s && me.targetList_item_selected
4022
4022
  ),
@@ -4043,26 +4043,26 @@ function sd(e) {
4043
4043
  !(i != null && i.length) && /* @__PURE__ */ l(U, {})
4044
4044
  ] });
4045
4045
  }
4046
- const ud = "_targetList_17cmb_59", hd = "_targetList_body_17cmb_66", gd = "_targetList_item_17cmb_74", _d = "_targetList_item_clickable_17cmb_82", md = "_targetList_item_selected_17cmb_89", ye = {
4047
- targetList: ud,
4048
- targetList_body: hd,
4049
- targetList_item: gd,
4050
- targetList_item_clickable: _d,
4051
- targetList_item_selected: md
4052
- }, fd = "_addExposesButton_1t3fz_59", yd = "_addExposesButton_body_1t3fz_68", vd = "_addExposesButton_item_1t3fz_73", bd = "_addExposesButton_item_text_1t3fz_84", Se = {
4053
- addExposesButton: fd,
4054
- addExposesButton_body: yd,
4055
- addExposesButton_item: vd,
4056
- addExposesButton_item_text: bd
4046
+ const gd = "_targetList_17cmb_59", _d = "_targetList_body_17cmb_66", md = "_targetList_item_17cmb_74", fd = "_targetList_item_clickable_17cmb_82", yd = "_targetList_item_selected_17cmb_89", ye = {
4047
+ targetList: gd,
4048
+ targetList_body: _d,
4049
+ targetList_item: md,
4050
+ targetList_item_clickable: fd,
4051
+ targetList_item_selected: yd
4052
+ }, vd = "_addExposesButton_1t3fz_59", bd = "_addExposesButton_body_1t3fz_68", Cd = "_addExposesButton_item_1t3fz_73", xd = "_addExposesButton_item_text_1t3fz_84", Se = {
4053
+ addExposesButton: vd,
4054
+ addExposesButton_body: bd,
4055
+ addExposesButton_item: Cd,
4056
+ addExposesButton_item_text: xd
4057
4057
  };
4058
- function Cd(e) {
4058
+ function Id(e) {
4059
4059
  var u;
4060
- const { engine: t } = N(), [n, i] = S(!1), [c, o] = S([]), [d, a] = S(""), s = j(), r = L(() => {
4060
+ const { engine: t } = w(), [n, i] = N(!1), [c, o] = N([]), [d, a] = N(""), s = j(), r = L(() => {
4061
4061
  var m;
4062
4062
  const _ = (m = d == null ? void 0 : d.toLowerCase) == null ? void 0 : m.call(d);
4063
- return c.filter((y) => {
4064
- var x, b, I, f;
4065
- return (f = (I = (b = (x = y == null ? void 0 : y.label) == null ? void 0 : x.toLowerCase) == null ? void 0 : b.call(x)) == null ? void 0 : I.includes) == null ? void 0 : f.call(I, _);
4063
+ return c.filter((v) => {
4064
+ var C, b, I, y;
4065
+ return (y = (I = (b = (C = v == null ? void 0 : v.label) == null ? void 0 : C.toLowerCase) == null ? void 0 : b.call(C)) == null ? void 0 : I.includes) == null ? void 0 : y.call(I, _);
4066
4066
  });
4067
4067
  }, [d, c]);
4068
4068
  function h() {
@@ -4074,16 +4074,16 @@ function Cd(e) {
4074
4074
  s.current && (clearTimeout(s.current), s.current = null);
4075
4075
  let m = [];
4076
4076
  if (e != null && e.cId) {
4077
- const y = t.component.get(e == null ? void 0 : e.cId);
4078
- m = (_ = (y == null ? void 0 : y.exposes) || []) == null ? void 0 : _.reduce(
4079
- (x, b) => (x.push({ label: b.label, value: b.value }), x),
4080
- [...di]
4077
+ const v = t.component.get(e == null ? void 0 : e.cId);
4078
+ m = (_ = (v == null ? void 0 : v.exposes) || []) == null ? void 0 : _.reduce(
4079
+ (C, b) => (C.push({ label: b.label, value: b.value }), C),
4080
+ [...ri]
4081
4081
  );
4082
4082
  }
4083
4083
  e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)), o(m), a("");
4084
4084
  }
4085
4085
  }, [n]), /* @__PURE__ */ l(
4086
- Ci,
4086
+ xi,
4087
4087
  {
4088
4088
  visible: n,
4089
4089
  onClose: h,
@@ -4119,13 +4119,13 @@ function Cd(e) {
4119
4119
  }
4120
4120
  );
4121
4121
  }
4122
- function xd(e) {
4122
+ function kd(e) {
4123
4123
  var d;
4124
- const { engine: t } = N(), n = L(() => {
4124
+ const { engine: t } = w(), n = L(() => {
4125
4125
  var s, r;
4126
4126
  const a = t.component.get(e == null ? void 0 : e.cId);
4127
4127
  return {
4128
- ...ri,
4128
+ ...si,
4129
4129
  ...(r = (s = a == null ? void 0 : a.exposes) == null ? void 0 : s.reduce) == null ? void 0 : r.call(s, (h, u) => (h[u.value] = u.label, h), {})
4130
4130
  };
4131
4131
  }, [e == null ? void 0 : e.cId]), i = L(() => {
@@ -4149,12 +4149,12 @@ function xd(e) {
4149
4149
  }
4150
4150
  function o(a) {
4151
4151
  var r, h, u, _, m;
4152
- const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (y) => y.operateId !== a)) || [];
4152
+ const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (v) => v.operateId !== a)) || [];
4153
4153
  (u = e == null ? void 0 : e.onChangeOpts) == null || u.call(e, s), a === (e == null ? void 0 : e.value) && ((m = e == null ? void 0 : e.onChange) == null || m.call(e, (_ = s == null ? void 0 : s[0]) == null ? void 0 : _.operateId));
4154
4154
  }
4155
- return /* @__PURE__ */ g("div", { className: R(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
4155
+ return /* @__PURE__ */ g("div", { className: $(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
4156
4156
  /* @__PURE__ */ l(
4157
- Cd,
4157
+ Id,
4158
4158
  {
4159
4159
  style: { margin: -1 },
4160
4160
  cId: e == null ? void 0 : e.cId,
@@ -4169,7 +4169,7 @@ function xd(e) {
4169
4169
  return /* @__PURE__ */ g(
4170
4170
  "div",
4171
4171
  {
4172
- className: R(
4172
+ className: $(
4173
4173
  ye.targetList_item,
4174
4174
  s && ye.targetList_item_selected
4175
4175
  ),
@@ -4196,55 +4196,55 @@ function xd(e) {
4196
4196
  ] })
4197
4197
  ] });
4198
4198
  }
4199
- const Id = ue((e) => {
4200
- const { engine: t } = N(), { componentNode: n, triggerId: i, triggerName: c } = (e == null ? void 0 : e.params) || {}, [o, d] = S(), [a, s] = S(), [r, h] = S(), u = L(() => {
4201
- var f;
4202
- return (f = t.componentNode.get(a == null ? void 0 : a.id)) == null ? void 0 : f.cId;
4199
+ const Sd = ue((e) => {
4200
+ const { engine: t } = w(), { componentNode: n, triggerId: i, triggerName: c } = (e == null ? void 0 : e.params) || {}, [o, d] = N(), [a, s] = N(), [r, h] = N(), u = L(() => {
4201
+ var y;
4202
+ return (y = t.componentNode.get(a == null ? void 0 : a.id)) == null ? void 0 : y.cId;
4203
4203
  }, [a]);
4204
- function _(f) {
4205
- var C, w, P;
4206
- const v = (w = (C = o == null ? void 0 : o.targets) == null ? void 0 : C.find) == null ? void 0 : w.call(C, (T) => T.id === f);
4207
- s(v), h((P = v == null ? void 0 : v.opts) == null ? void 0 : P[0]);
4204
+ function _(y) {
4205
+ var x, S, P;
4206
+ const f = (S = (x = o == null ? void 0 : o.targets) == null ? void 0 : x.find) == null ? void 0 : S.call(x, (R) => R.id === y);
4207
+ s(f), h((P = f == null ? void 0 : f.opts) == null ? void 0 : P[0]);
4208
4208
  }
4209
- function m(f) {
4210
- var v, C;
4209
+ function m(y) {
4210
+ var f, x;
4211
4211
  h(
4212
- (C = (v = a == null ? void 0 : a.opts) == null ? void 0 : v.find) == null ? void 0 : C.call(v, (w) => (w == null ? void 0 : w.operateId) === f)
4212
+ (x = (f = a == null ? void 0 : a.opts) == null ? void 0 : f.find) == null ? void 0 : x.call(f, (S) => (S == null ? void 0 : S.operateId) === y)
4213
4213
  );
4214
4214
  }
4215
- function y(f, v) {
4215
+ function v(y, f) {
4216
4216
  d({
4217
4217
  ...o,
4218
- targets: f
4219
- }), v && f.length === 1 && s(f[f.length - 1]);
4218
+ targets: y
4219
+ }), f && y.length === 1 && s(y[y.length - 1]);
4220
4220
  }
4221
- function x(f) {
4222
- var v, C;
4223
- (C = (v = o == null ? void 0 : o.targets) == null ? void 0 : v.find) == null || C.call(v, (w) => w.id !== (a == null ? void 0 : a.id) ? !1 : (w.opts = f, !0)), d({ ...o }), f.length === 1 && h(f == null ? void 0 : f[0]);
4221
+ function C(y) {
4222
+ var f, x;
4223
+ (x = (f = o == null ? void 0 : o.targets) == null ? void 0 : f.find) == null || x.call(f, (S) => S.id !== (a == null ? void 0 : a.id) ? !1 : (S.opts = y, !0)), d({ ...o }), y.length === 1 && h(y == null ? void 0 : y[0]);
4224
4224
  }
4225
- function b(f) {
4226
- var v, C;
4227
- (C = (v = o == null ? void 0 : o.targets) == null ? void 0 : v.find) == null || C.call(v, (w) => {
4228
- var P, T;
4229
- return w.id !== (a == null ? void 0 : a.id) ? !1 : ((T = (P = w.opts) == null ? void 0 : P.find) == null || T.call(P, (q) => (q == null ? void 0 : q.operateId) !== (f == null ? void 0 : f.operateId) ? !1 : (Object.assign(q, f), !0)), !0);
4225
+ function b(y) {
4226
+ var f, x;
4227
+ (x = (f = o == null ? void 0 : o.targets) == null ? void 0 : f.find) == null || x.call(f, (S) => {
4228
+ var P, R;
4229
+ return S.id !== (a == null ? void 0 : a.id) ? !1 : ((R = (P = S.opts) == null ? void 0 : P.find) == null || R.call(P, (q) => (q == null ? void 0 : q.operateId) !== (y == null ? void 0 : y.operateId) ? !1 : (Object.assign(q, y), !0)), !0);
4230
4230
  }), d({ ...o });
4231
4231
  }
4232
4232
  function I() {
4233
- var f;
4234
- (f = e == null ? void 0 : e.onOk) == null || f.call(e, o);
4233
+ var y;
4234
+ (y = e == null ? void 0 : e.onOk) == null || y.call(e, o);
4235
4235
  }
4236
4236
  return E(() => {
4237
- var f, v, C, w;
4237
+ var y, f, x, S;
4238
4238
  if (e != null && e.visible) {
4239
4239
  if (!i) {
4240
4240
  A.error("triggerId不存在");
4241
4241
  return;
4242
4242
  }
4243
- let P = (v = (f = n == null ? void 0 : n.events) == null ? void 0 : f.find) == null ? void 0 : v.call(f, (V) => (V == null ? void 0 : V.triggerId) === i);
4244
- P = Wt(P || {}), d(P);
4245
- const T = (C = P == null ? void 0 : P.targets) == null ? void 0 : C[0];
4246
- s(T);
4247
- const q = (w = T == null ? void 0 : T.opts) == null ? void 0 : w[0];
4243
+ let P = (f = (y = n == null ? void 0 : n.events) == null ? void 0 : y.find) == null ? void 0 : f.call(y, (V) => (V == null ? void 0 : V.triggerId) === i);
4244
+ P = Vt(P || {}), d(P);
4245
+ const R = (x = P == null ? void 0 : P.targets) == null ? void 0 : x[0];
4246
+ s(R);
4247
+ const q = (S = R == null ? void 0 : R.opts) == null ? void 0 : S[0];
4248
4248
  h(q);
4249
4249
  } else
4250
4250
  d(void 0), s(void 0), h(void 0);
@@ -4265,40 +4265,40 @@ const Id = ue((e) => {
4265
4265
  children: [
4266
4266
  /* @__PURE__ */ g("div", { className: Ye.editEventDialog_menu, children: [
4267
4267
  /* @__PURE__ */ l(
4268
- sd,
4268
+ hd,
4269
4269
  {
4270
4270
  className: "border-right",
4271
4271
  value: a == null ? void 0 : a.id,
4272
- onChange: (f) => {
4273
- _(f);
4272
+ onChange: (y) => {
4273
+ _(y);
4274
4274
  },
4275
4275
  targets: o == null ? void 0 : o.targets,
4276
- onChangeTargets: (f, v) => {
4277
- y(f, v === "add");
4276
+ onChangeTargets: (y, f) => {
4277
+ v(y, f === "add");
4278
4278
  }
4279
4279
  }
4280
4280
  ),
4281
4281
  /* @__PURE__ */ l(
4282
- xd,
4282
+ kd,
4283
4283
  {
4284
4284
  value: r == null ? void 0 : r.operateId,
4285
- onChange: (f) => {
4286
- m(f);
4285
+ onChange: (y) => {
4286
+ m(y);
4287
4287
  },
4288
4288
  cId: u,
4289
4289
  opts: a == null ? void 0 : a.opts,
4290
- onChangeOpts: (f) => {
4291
- x(f);
4290
+ onChangeOpts: (y) => {
4291
+ C(y);
4292
4292
  }
4293
4293
  }
4294
4294
  )
4295
4295
  ] }),
4296
4296
  /* @__PURE__ */ l("div", { className: Ye.editEventDialog_body, children: /* @__PURE__ */ l(
4297
- Zo,
4297
+ po,
4298
4298
  {
4299
4299
  value: r,
4300
- onChange: (f) => {
4301
- b(f);
4300
+ onChange: (y) => {
4301
+ b(y);
4302
4302
  }
4303
4303
  }
4304
4304
  ) })
@@ -4306,13 +4306,13 @@ const Id = ue((e) => {
4306
4306
  }
4307
4307
  );
4308
4308
  });
4309
- function kd(e) {
4309
+ function Nd(e) {
4310
4310
  var h;
4311
- const { engine: t } = N(), { componentNode: n } = e, i = L(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), o = Id({
4311
+ const { engine: t } = w(), { componentNode: n } = e, i = L(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), o = Sd({
4312
4312
  onOk(u) {
4313
4313
  t.componentNode.update(n == null ? void 0 : n.id, (_) => {
4314
- var m, y;
4315
- return (y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || y.call(m, (x) => x.triggerId !== (u == null ? void 0 : u.triggerId) ? !1 : (Object.assign(x, u), !0)), {
4314
+ var m, v;
4315
+ return (v = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || v.call(m, (C) => C.triggerId !== (u == null ? void 0 : u.triggerId) ? !1 : (Object.assign(C, u), !0)), {
4316
4316
  events: _ == null ? void 0 : _.events
4317
4317
  };
4318
4318
  });
@@ -4320,8 +4320,8 @@ function kd(e) {
4320
4320
  }), d = L(() => {
4321
4321
  var u;
4322
4322
  return ((u = n == null ? void 0 : n.events) == null ? void 0 : u.map((_) => {
4323
- var y, x;
4324
- const m = (x = (y = i == null ? void 0 : i.triggers) == null ? void 0 : y.find) == null ? void 0 : x.call(y, (b) => (b == null ? void 0 : b.value) === _.triggerId);
4323
+ var v, C;
4324
+ const m = (C = (v = i == null ? void 0 : i.triggers) == null ? void 0 : v.find) == null ? void 0 : C.call(v, (b) => (b == null ? void 0 : b.value) === _.triggerId);
4325
4325
  return {
4326
4326
  label: `${(m == null ? void 0 : m.label) || "-"}`,
4327
4327
  value: `${_.triggerId}`
@@ -4341,22 +4341,22 @@ function kd(e) {
4341
4341
  }
4342
4342
  function s(u) {
4343
4343
  t.componentNode.update(n == null ? void 0 : n.id, (_) => {
4344
- var m, y;
4344
+ var m, v;
4345
4345
  return {
4346
4346
  events: [
4347
- ...((y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : y.call(m, (x) => x.triggerId !== u)) || []
4347
+ ...((v = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : v.call(m, (C) => C.triggerId !== u)) || []
4348
4348
  ]
4349
4349
  };
4350
4350
  });
4351
4351
  }
4352
4352
  function r(u) {
4353
- var m, y, x, b;
4353
+ var m, v, C, b;
4354
4354
  if (!u) {
4355
4355
  A.warn("triggerId不存在");
4356
4356
  return;
4357
4357
  }
4358
- const _ = (y = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : y.call(m, (I) => (I == null ? void 0 : I.triggerId) === u);
4359
- (x = _ == null ? void 0 : _.targets) != null && x.length ? c({
4358
+ const _ = (v = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : v.call(m, (I) => (I == null ? void 0 : I.triggerId) === u);
4359
+ (C = _ == null ? void 0 : _.targets) != null && C.length ? c({
4360
4360
  title: "提醒",
4361
4361
  content: `已配置${((b = _ == null ? void 0 : _.targets) == null ? void 0 : b.length) || 0}个事件项,确定删除该事件?`,
4362
4362
  onOk(I) {
@@ -4372,7 +4372,7 @@ function kd(e) {
4372
4372
  /* @__PURE__ */ l("div", { className: G.eventList_item_body, children: u.label }),
4373
4373
  /* @__PURE__ */ g("div", { className: G.eventList_item_opt, children: [
4374
4374
  /* @__PURE__ */ l(
4375
- Yn,
4375
+ Zn,
4376
4376
  {
4377
4377
  className: G.eventList_item_opt_clickable,
4378
4378
  onClick: () => a(u)
@@ -4390,11 +4390,11 @@ function kd(e) {
4390
4390
  ] })
4391
4391
  ] });
4392
4392
  }
4393
- function Sd() {
4394
- const { engine: e } = N(), { componentNode: t } = he();
4395
- return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: Oo.interactive, children: [
4393
+ function wd() {
4394
+ const { engine: e } = w(), { componentNode: t } = he();
4395
+ return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: Bo.interactive, children: [
4396
4396
  /* @__PURE__ */ l(
4397
- Po,
4397
+ Mo,
4398
4398
  {
4399
4399
  componentNode: t,
4400
4400
  onSelect: (n) => {
@@ -4410,16 +4410,16 @@ function Sd() {
4410
4410
  }
4411
4411
  }
4412
4412
  ),
4413
- /* @__PURE__ */ l(kd, { componentNode: t })
4413
+ /* @__PURE__ */ l(Nd, { componentNode: t })
4414
4414
  ] }) });
4415
4415
  }
4416
- const Nd = "_json_1lpul_59", wd = "_json_head_1lpul_69", Ed = "_json_body_1lpul_76", Ze = {
4417
- json: Nd,
4418
- json_head: wd,
4419
- json_body: Ed
4416
+ const Ed = "_json_1lpul_59", Ad = "_json_head_1lpul_69", Ld = "_json_body_1lpul_76", Ze = {
4417
+ json: Ed,
4418
+ json_head: Ad,
4419
+ json_body: Ld
4420
4420
  };
4421
- function Ad() {
4422
- const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm();
4421
+ function Dd() {
4422
+ const { engine: e } = w(), { componentNode: t } = he(), [n] = M.useForm();
4423
4423
  function i() {
4424
4424
  n.setFieldsValue({
4425
4425
  code: t ? JSON.stringify(t || {}, null, " ") : ""
@@ -4429,7 +4429,7 @@ function Ad() {
4429
4429
  const o = n.getFieldValue("code") || "";
4430
4430
  try {
4431
4431
  const d = JSON.parse(o);
4432
- if (!vi(d)) {
4432
+ if (!bi(d)) {
4433
4433
  console.error("must be an object.");
4434
4434
  return;
4435
4435
  }
@@ -4444,9 +4444,9 @@ function Ad() {
4444
4444
  /* @__PURE__ */ g("div", { className: Ze.json_head, children: [
4445
4445
  /* @__PURE__ */ g("span", { children: [
4446
4446
  /* @__PURE__ */ l("b", { style: { marginRight: 8 }, children: "ComponentNode数据" }),
4447
- /* @__PURE__ */ l($, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
4447
+ /* @__PURE__ */ l(z, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
4448
4448
  ] }),
4449
- /* @__PURE__ */ l($, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
4449
+ /* @__PURE__ */ l(z, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
4450
4450
  ] }),
4451
4451
  /* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
4452
4452
  X,
@@ -4465,11 +4465,11 @@ function Ad() {
4465
4465
  ) }) })
4466
4466
  ] });
4467
4467
  }
4468
- const Ld = "_singleAttributes_109pm_59", Dd = {
4469
- singleAttributes: Ld
4470
- }, mn = xn({}), he = () => In(mn);
4471
- function fn(e) {
4472
- const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [o, d] = S(), a = tn(c);
4468
+ const Od = "_singleAttributes_109pm_59", Pd = {
4469
+ singleAttributes: Od
4470
+ }, fn = In({}), he = () => kn(fn);
4471
+ function yn(e) {
4472
+ const [t, n] = se(), { engine: i } = w(), { instance: c } = e, [o, d] = N(), a = nn(c);
4473
4473
  return E(() => {
4474
4474
  const s = i.componentNode.get(c.id);
4475
4475
  return s && d(s), i.componentNode.onChange(c.id, ({ payload: r }) => {
@@ -4478,39 +4478,39 @@ function fn(e) {
4478
4478
  }, [c.id]), E(() => i.onJsonChange(() => {
4479
4479
  var s;
4480
4480
  d(i.componentNode.get((s = a == null ? void 0 : a.current) == null ? void 0 : s.id));
4481
- }), []), L(() => o ? /* @__PURE__ */ l(mn.Provider, { value: { instance: c, componentNode: o }, children: /* @__PURE__ */ l(
4482
- ei,
4481
+ }), []), L(() => o ? /* @__PURE__ */ l(fn.Provider, { value: { instance: c, componentNode: o }, children: /* @__PURE__ */ l(
4482
+ ti,
4483
4483
  {
4484
- className: Dd.singleAttributes,
4484
+ className: Pd.singleAttributes,
4485
4485
  defaultActiveKey: "1",
4486
4486
  size: "small",
4487
4487
  items: [
4488
- { key: "1", label: t("attributes.attr.title"), children: /* @__PURE__ */ l(bo, {}) },
4488
+ { key: "1", label: t("attributes.attr.title"), children: /* @__PURE__ */ l(xo, {}) },
4489
4489
  {
4490
4490
  key: "2",
4491
4491
  label: t("attributes.dataSource.title"),
4492
- children: /* @__PURE__ */ l(Lo, {})
4492
+ children: /* @__PURE__ */ l(Oo, {})
4493
4493
  },
4494
4494
  {
4495
4495
  key: "3",
4496
4496
  label: t("attributes.interactive.title"),
4497
- children: /* @__PURE__ */ l(Sd, {})
4497
+ children: /* @__PURE__ */ l(wd, {})
4498
4498
  },
4499
4499
  {
4500
4500
  key: "4",
4501
4501
  label: "json",
4502
- children: /* @__PURE__ */ l(Ad, {})
4502
+ children: /* @__PURE__ */ l(Dd, {})
4503
4503
  }
4504
4504
  ]
4505
4505
  }
4506
4506
  ) }) : /* @__PURE__ */ l(xt, { image: xt.PRESENTED_IMAGE_SIMPLE, description: "暂无数据" }), [c, o, n.language]);
4507
4507
  }
4508
- const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66", Bd = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
4509
- multipleInstanceAttributes: Od,
4510
- multipleInstanceAttributes_header: Pd,
4511
- multipleInstanceAttributes_body: Bd
4508
+ const Bd = "_multipleInstanceAttributes_1ehj2_59", Md = "_multipleInstanceAttributes_header_1ehj2_66", jd = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
4509
+ multipleInstanceAttributes: Bd,
4510
+ multipleInstanceAttributes_header: Md,
4511
+ multipleInstanceAttributes_body: jd
4512
4512
  };
4513
- function Md(e) {
4513
+ function Td(e) {
4514
4514
  const t = yt();
4515
4515
  return /* @__PURE__ */ l(
4516
4516
  Ce,
@@ -4527,13 +4527,13 @@ function Md(e) {
4527
4527
  }
4528
4528
  );
4529
4529
  }
4530
- function jd(e) {
4531
- const { instances: t } = e, [n, i] = S();
4530
+ function zd(e) {
4531
+ const { instances: t } = e, [n, i] = N();
4532
4532
  return E(() => {
4533
4533
  i(t[0]);
4534
4534
  }, [t]), /* @__PURE__ */ g("div", { className: Qe.multipleInstanceAttributes, children: [
4535
4535
  /* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_header, children: /* @__PURE__ */ l(
4536
- Md,
4536
+ Td,
4537
4537
  {
4538
4538
  allowClear: !1,
4539
4539
  style: { width: "100%" },
@@ -4543,16 +4543,16 @@ function jd(e) {
4543
4543
  }
4544
4544
  }
4545
4545
  ) }),
4546
- /* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(fn, { instance: n }) })
4546
+ /* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(yn, { instance: n }) })
4547
4547
  ] });
4548
4548
  }
4549
- const Td = "_pageAttributes_u2l2i_59", zd = "_pageAttributes_description_u2l2i_65", $d = "_pageAttributes_body_u2l2i_70", pe = {
4550
- pageAttributes: Td,
4551
- pageAttributes_description: zd,
4552
- pageAttributes_body: $d
4549
+ const $d = "_pageAttributes_u2l2i_59", Rd = "_pageAttributes_description_u2l2i_65", Fd = "_pageAttributes_body_u2l2i_70", pe = {
4550
+ pageAttributes: $d,
4551
+ pageAttributes_description: Rd,
4552
+ pageAttributes_body: Fd
4553
4553
  };
4554
- function Rd() {
4555
- const { engine: e } = N(), [t] = se(), n = bi(), { id: i, options: c } = n || {};
4554
+ function Hd() {
4555
+ const { engine: e } = w(), [t] = se(), n = Ci(), { id: i, options: c } = n || {};
4556
4556
  function o(d) {
4557
4557
  e.page.update(i, {
4558
4558
  options: {
@@ -4575,7 +4575,7 @@ function Rd() {
4575
4575
  ] }) }),
4576
4576
  /* @__PURE__ */ l("div", { className: pe.pageAttributes_body, children: /* @__PURE__ */ g(Le, { labelSpan: 5, children: [
4577
4577
  /* @__PURE__ */ g(
4578
- z,
4578
+ T,
4579
4579
  {
4580
4580
  label: "页面背景",
4581
4581
  labelTip: "设置当前页背景颜色",
@@ -4591,7 +4591,7 @@ function Rd() {
4591
4591
  }
4592
4592
  }
4593
4593
  ),
4594
- /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4594
+ /* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
4595
4595
  Z,
4596
4596
  {
4597
4597
  className: "icon_clickable",
@@ -4604,7 +4604,7 @@ function Rd() {
4604
4604
  }
4605
4605
  ),
4606
4606
  /* @__PURE__ */ g(
4607
- z,
4607
+ T,
4608
4608
  {
4609
4609
  label: "白板背景",
4610
4610
  labelTip: "页面所处白板的背景颜色",
@@ -4620,7 +4620,7 @@ function Rd() {
4620
4620
  }
4621
4621
  }
4622
4622
  ),
4623
- /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4623
+ /* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
4624
4624
  Z,
4625
4625
  {
4626
4626
  className: "icon_clickable",
@@ -4633,7 +4633,7 @@ function Rd() {
4633
4633
  }
4634
4634
  ),
4635
4635
  /* @__PURE__ */ g(
4636
- z,
4636
+ T,
4637
4637
  {
4638
4638
  label: "边框",
4639
4639
  childrenStyle: { display: "flex", alignItems: "center", gap: 8 },
@@ -4661,7 +4661,7 @@ function Rd() {
4661
4661
  }
4662
4662
  }
4663
4663
  ),
4664
- /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4664
+ /* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
4665
4665
  Z,
4666
4666
  {
4667
4667
  className: "icon_clickable",
@@ -4677,29 +4677,29 @@ function Rd() {
4677
4677
  ] }) })
4678
4678
  ] });
4679
4679
  }
4680
- function Fd() {
4680
+ function Kd() {
4681
4681
  const e = yt(), t = L(() => !!e.length, [e]), n = L(() => e.length === 1, [e]);
4682
- return /* @__PURE__ */ l("div", { className: so.attributes, children: t ? (
4682
+ return /* @__PURE__ */ l("div", { className: ho.attributes, children: t ? (
4683
4683
  // 选中组件实例配置
4684
4684
  /* @__PURE__ */ g(W, { children: [
4685
- n && /* @__PURE__ */ l(fn, { instance: e[0] }),
4686
- !n && /* @__PURE__ */ l(jd, { instances: e })
4685
+ n && /* @__PURE__ */ l(yn, { instance: e[0] }),
4686
+ !n && /* @__PURE__ */ l(zd, { instances: e })
4687
4687
  ] })
4688
4688
  ) : (
4689
4689
  // 默认页面配置
4690
- /* @__PURE__ */ l(Rd, {})
4690
+ /* @__PURE__ */ l(Hd, {})
4691
4691
  ) });
4692
4692
  }
4693
- function Cr(e) {
4693
+ function Ir(e) {
4694
4694
  const { engine: t, json: n, pageFooter: i } = e;
4695
- return pi(), Tt.useEffect(() => {
4695
+ return el(), zt.useEffect(() => {
4696
4696
  t.loadJSON(n).then(() => {
4697
4697
  var c;
4698
4698
  (c = e == null ? void 0 : e.onJSONLoad) == null || c.call(e);
4699
4699
  });
4700
4700
  }, []), /* @__PURE__ */ g("div", { className: te.page, children: [
4701
4701
  /* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(
4702
- El,
4702
+ Ll,
4703
4703
  {
4704
4704
  pageLogo: e == null ? void 0 : e.pageLogo,
4705
4705
  pageToolBar: e == null ? void 0 : e.pageToolBar,
@@ -4707,13 +4707,13 @@ function Cr(e) {
4707
4707
  }
4708
4708
  ) }),
4709
4709
  /* @__PURE__ */ g("div", { className: te.page_body, children: [
4710
- /* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(_a, {}) }),
4711
- /* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),
4712
- /* @__PURE__ */ l("div", { className: te.page_body_right, id: "rbs-attributes", children: /* @__PURE__ */ l(Fd, {}) })
4710
+ /* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(fa, {}) }),
4711
+ /* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(so, {}) }),
4712
+ /* @__PURE__ */ l("div", { className: te.page_body_right, id: "rbs-attributes", children: /* @__PURE__ */ l(Kd, {}) })
4713
4713
  ] }),
4714
4714
  typeof i == "function" ? /* @__PURE__ */ l(i, {}) : i
4715
4715
  ] });
4716
4716
  }
4717
4717
  export {
4718
- Cr as default
4718
+ Ir as default
4719
4719
  };