react-big-screen 0.0.23 → 0.0.25

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 (45) hide show
  1. package/es/{attributes-Bfbf60g8.mjs → attributes-B-HnT330.mjs} +1 -1
  2. package/es/{attributes-BL0o0sPi.mjs → attributes-BU4RteR4.mjs} +1 -1
  3. package/es/{attributes-COqeO1sM.mjs → attributes-BVf57pkp.mjs} +1 -1
  4. package/es/{attributes-C5CnEOVO.mjs → attributes-BbimeCWH.mjs} +1 -1
  5. package/es/{attributes-DrbTSAq7.mjs → attributes-BpbbmYhM.mjs} +1 -1
  6. package/es/{attributes-C64FfSI6.mjs → attributes-CMthjycV.mjs} +1 -1
  7. package/es/{attributes-xzP7st08.mjs → attributes-CRXnxBzA.mjs} +2 -2
  8. package/es/{attributes-woY1Zfl3.mjs → attributes-CT0FOCY5.mjs} +1 -1
  9. package/es/{attributes-Dp2yHpTx.mjs → attributes-CtQvGbYt.mjs} +1 -1
  10. package/es/{attributes-9sJ7OCyP.mjs → attributes-DsE3dkzP.mjs} +1 -1
  11. package/es/{attributes-B23RrL8i.mjs → attributes-Dz98d9lm.mjs} +1 -1
  12. package/es/{attributes-Di0JYz_d.mjs → attributes-aebdh3-2.mjs} +1 -1
  13. package/es/{index-CRraYtwg.mjs → index-BJWDg_cD.mjs} +2 -2
  14. package/es/{index-vk4BFyhF.mjs → index-BTio6V_c.mjs} +2 -2
  15. package/es/{index-w5Djwuhu.mjs → index-BlOuO44L.mjs} +2 -2
  16. package/es/{index-D_XJCVB-.mjs → index-BoLXnAtC.mjs} +3 -3
  17. package/es/{index-B1V_yDHb.mjs → index-BuyncOQP.mjs} +2 -2
  18. package/es/{index-DzOSmpKj.mjs → index-By-60WbF.mjs} +2 -2
  19. package/es/{index-Dqe0ts3H.mjs → index-ByNVYAww.mjs} +2 -2
  20. package/es/{index-C4z4Sjq2.mjs → index-BydqrGsF.mjs} +96 -90
  21. package/es/{index-Di6zy82j.mjs → index-C1IN4HrE.mjs} +2 -2
  22. package/es/{index-D9o0U9Ub.mjs → index-CCU-VzDv.mjs} +1 -1
  23. package/es/{index-B9wcrwqH.mjs → index-CFg0WKFQ.mjs} +819 -813
  24. package/es/{index-CXzm2s6x.mjs → index-CIspZGHv.mjs} +2 -2
  25. package/es/{index-D8pMW8U5.mjs → index-COVxsHS9.mjs} +3 -3
  26. package/es/{index-Cg9iT8Uy.mjs → index-CVCPzSmu.mjs} +2 -2
  27. package/es/{index-BEdp0lB5.mjs → index-CW1RuHQK.mjs} +3 -3
  28. package/es/{index-D2B6_fCJ.mjs → index-ChS976cJ.mjs} +2 -2
  29. package/es/{index-BhEDT1MV.mjs → index-D7TCGxYg.mjs} +2 -2
  30. package/es/{index-B8GWWFIH.mjs → index-D8iQUy0r.mjs} +2 -2
  31. package/es/{index-DG3JLNqh.mjs → index-DC_DhKaS.mjs} +3 -3
  32. package/es/{index-CTuwto2f.mjs → index-DW5eZVLq.mjs} +2 -2
  33. package/es/{index-CFTpYaN8.mjs → index-GzFjRCz_.mjs} +1 -1
  34. package/es/{index-C3rjkbw6.mjs → index-V6j7Zu7r.mjs} +2 -2
  35. package/es/{index-BkI6wVdV.mjs → index-gBfOXBIy.mjs} +2 -2
  36. package/es/{index-CG3CqHvP.mjs → index-oK1Pyk5T.mjs} +2 -2
  37. package/es/{index-DvVQnQMe.mjs → index-qyKdx0SV.mjs} +2 -2
  38. package/es/{index-XNZ9XEE4.mjs → index-sSfWkA8B.mjs} +2 -2
  39. package/es/index.mjs +1 -1
  40. package/es/{selectPage-B19KQBZQ.mjs → selectPage-BdrK7e7G.mjs} +1 -1
  41. package/es/{useCurrentPageId-BzI1Jj2f.mjs → useCurrentPageId-CPdhqp51.mjs} +1 -1
  42. package/package.json +1 -1
  43. package/types/src/export/components/RenderEditor/index.d.ts +6 -5
  44. package/types/src/export/index.d.ts +3 -7
  45. package/types/src/pages/components/Header/index.d.ts +18 -3
@@ -1,20 +1,20 @@
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);
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);
4
4
  import { jsx as l, jsxs as g, Fragment as W } from "react/jsx-runtime";
5
- import zt, { useRef as B, useEffect as w, useMemo as A, useState as S, forwardRef as Cn, useImperativeHandle as xn, Suspense as Tt, 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 $t, SaveOutlined as Q, ClearOutlined as Rt, TranslationOutlined as Dn, SettingOutlined as Ft, GithubFilled as On, LockOutlined as Ht, EyeOutlined as Pn, EyeInvisibleOutlined as Mn, RightOutlined as Bn, VerticalAlignTopOutlined as jn, UnlockOutlined as zn, BlockOutlined as Tn, 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 } from "@ant-design/icons";
7
- import { message as E, Tooltip as T, 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 qt, Tabs as ei, Empty as xt } from "antd";
8
- import $ 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 Jt, f as ht, g as it, l as ze, h as It, i as oi, j as kt, I as Te, k as di, m as ri } from "./index-C4z4Sjq2.mjs";
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";
10
10
  import "localforage";
11
11
  import { createPortal as si } from "react-dom";
12
- import { createRoot as Wt } from "react-dom/client";
12
+ import { createRoot as Jt } from "react-dom/client";
13
13
  import "driver.js";
14
14
  import "driver.js/dist/driver.css";
15
- import { cloneDeep as Vt, debounce as ui, groupBy as hi, 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 gi, e as _i, f as mi, h as fi, j as Zt, s as St, P as yi, k as vi, l as bi } from "./index-B8GWWFIH.mjs";
17
- import { useUpdateEffect as _t, useUnmount as Qt, useRequest as pt } from "ahooks";
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";
18
18
  import "react-color";
19
19
  import { I as p, L as Le, a as z, C as Ci, b as $e } from "./Line-CgKiUu04.mjs";
20
20
  import { I as mt, a as xi } from "./IInputNumber-CEotcbKL.mjs";
@@ -28,18 +28,18 @@ 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 en } from "file-saver";
32
- import { u as tn } from "./useEffectOnce-l5sUTCBG.mjs";
33
- import { u as wi, s as Re } from "./selectPage-B19KQBZQ.mjs";
34
- import { u as Ei } from "./useCurrentPageId-BzI1Jj2f.mjs";
35
- import { u as nn } from "./useListenRef-B01dENv0.mjs";
36
- import { I as Ce } from "./index-D9o0U9Ub.mjs";
37
- async function ln(e) {
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) {
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) => {
41
- var a, d;
42
- const c = (d = (a = i.target) == null ? void 0 : a.files) == null ? void 0 : d[0];
41
+ var o, d;
42
+ const c = (d = (o = i.target) == null ? void 0 : o.files) == null ? void 0 : d[0];
43
43
  if (!c)
44
44
  return console.warn("file must be selected."), t(void 0);
45
45
  t(c);
@@ -47,9 +47,9 @@ async function ln(e) {
47
47
  });
48
48
  }
49
49
  async function Ai(e) {
50
- return ln(e).then((t) => cn(t));
50
+ return nn(e).then((t) => ln(t));
51
51
  }
52
- async function cn(e) {
52
+ async function ln(e) {
53
53
  return new Promise((t) => {
54
54
  if (!e) return "";
55
55
  const n = new FileReader();
@@ -60,12 +60,12 @@ async function cn(e) {
60
60
  });
61
61
  }
62
62
  function ct(e, t, n) {
63
- var c, a;
63
+ var c, o;
64
64
  let i = (c = e == null ? void 0 : e.dataset) == null ? void 0 : c[t];
65
65
  if (!n)
66
66
  return i;
67
67
  for (; i == null && e; )
68
- e = e.parentElement, i = (a = e == null ? void 0 : e.dataset) == null ? void 0 : a[t];
68
+ e = e.parentElement, i = (o = e == null ? void 0 : e.dataset) == null ? void 0 : o[t];
69
69
  return i;
70
70
  }
71
71
  function Li(e) {
@@ -74,21 +74,21 @@ function Li(e) {
74
74
  if (!t) return [];
75
75
  const n = (i = t.component.getPackage(e)) == null ? void 0 : i.components;
76
76
  return t.componentNode.getAll().filter((c) => {
77
- var a;
78
- return (a = n == null ? void 0 : n.find) == null ? void 0 : a.call(n, (d) => d.cId === c.cId);
77
+ var o;
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
81
  function Di(e, t) {
82
- const n = B(), i = B(null), c = B(), { engine: a } = N();
83
- return c.current = t, w(() => () => {
82
+ const n = j(), i = j(null), c = j(), { engine: o } = N();
83
+ return c.current = t, E(() => () => {
84
84
  var d;
85
85
  (d = n.current) == null || d.call(n);
86
- }, []), A(() => {
86
+ }, []), L(() => {
87
87
  let d = document.createElement("div");
88
88
  document.body.appendChild(d);
89
- let o = Wt(d);
90
- return o.render(
91
- /* @__PURE__ */ l(ti.Provider, { value: { engine: a }, children: /* @__PURE__ */ l(
89
+ let a = Jt(d);
90
+ return a.render(
91
+ /* @__PURE__ */ l(ti.Provider, { value: { engine: o }, children: /* @__PURE__ */ l(
92
92
  ni,
93
93
  {
94
94
  ref: i,
@@ -104,7 +104,7 @@ function Di(e, t) {
104
104
  }
105
105
  ) })
106
106
  ), n.current = () => {
107
- d && (o.unmount(), d.remove(), d = void 0);
107
+ d && (a.unmount(), d.remove(), d = void 0);
108
108
  }, {
109
109
  open(s) {
110
110
  var r, h;
@@ -124,30 +124,30 @@ function ue(e) {
124
124
  }
125
125
  function Oi() {
126
126
  const e = ii((t) => t.componentMap);
127
- return A(() => e ? Object.values(e) : [], [e]);
127
+ return L(() => e ? Object.values(e) : [], [e]);
128
128
  }
129
129
  function yt() {
130
130
  const { engine: e } = N(), [t, n] = S(() => e.instance.getAllSelected());
131
- return w(() => e.instance.onSelectedChange((i) => {
131
+ return E(() => e.instance.onSelectedChange((i) => {
132
132
  const c = Object.values(i);
133
- n((a) => !c.length && !a.length ? a : c);
133
+ n((o) => !c.length && !o.length ? o : c);
134
134
  }), []), t;
135
135
  }
136
136
  function Pi() {
137
137
  const { engine: e } = N(), [t, n] = S([]);
138
- return tn(() => (n(e.favorites.getAll()), e.favorites.onChange((i) => {
138
+ return en(() => (n(e.favorites.getAll()), e.favorites.onChange((i) => {
139
139
  n([...i]);
140
140
  }))), t;
141
141
  }
142
- function an() {
142
+ function cn() {
143
143
  const { engine: e } = N(), [t, n] = S(() => e.history.getHistoryData());
144
- return w(() => {
144
+ return E(() => {
145
145
  e.history.onChange((i) => {
146
146
  n(i);
147
147
  });
148
148
  }, []), t;
149
149
  }
150
- const Mi = `/**
150
+ const Bi = `/**
151
151
  * 转换request扩展参数函数 (必须包含主函数main)
152
152
  *
153
153
  * @params {value} 默认携带参数或json对象
@@ -158,7 +158,7 @@ const Mi = `/**
158
158
  */
159
159
  function main(value, {origin, target, option}) {
160
160
  return value
161
- }`, Bi = `/**
161
+ }`, Mi = `/**
162
162
  * 修改目标componentNode (必须包含主函数main)
163
163
  *
164
164
  * @params {target} 目标componentNode
@@ -180,18 +180,18 @@ function ji(e) {
180
180
  lt(n, i), t.push(() => lt.unbind(n, i));
181
181
  }), () => t.forEach((n) => n());
182
182
  }
183
- function zi(e) {
184
- w(() => ji(e), []);
183
+ function Ti(e) {
184
+ E(() => ji(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 on() {
190
+ function an() {
191
191
  const e = k.getActiveEngine();
192
192
  e && (e.instance.selectAll(), O("全选组件"));
193
193
  }
194
- function Ti() {
194
+ function zi() {
195
195
  const e = k.getActiveEngine();
196
196
  e && (e.instance.getAllSelected().forEach((t) => {
197
197
  const n = e.componentNode.get(t.id);
@@ -227,12 +227,12 @@ function Fi() {
227
227
  });
228
228
  }), O("组件下移"));
229
229
  }
230
- function dn() {
230
+ function on() {
231
231
  const e = k.getActiveEngine();
232
232
  if (!e) return;
233
- const t = Oe(), n = new Set(e.instance.getAllSelected().map((a) => a.id)), i = [], c = e.componentNode.cloneComponentNodes(t, {
234
- onClone(a, d) {
235
- n.has(a.id) && (n.delete(a.id), i.push(d.id)), d.x += 10, d.y += 10;
233
+ const t = Oe(), n = new Set(e.instance.getAllSelected().map((o) => o.id)), i = [], c = e.componentNode.cloneComponentNodes(t, {
234
+ onClone(o, d) {
235
+ n.has(o.id) && (n.delete(o.id), i.push(d.id)), d.x += 10, d.y += 10;
236
236
  }
237
237
  });
238
238
  e.componentNode.add(c), setTimeout(() => {
@@ -248,7 +248,7 @@ function vt(e) {
248
248
  const t = k.getActiveEngine();
249
249
  t && (t.getJSON().then((n) => {
250
250
  localStorage.setItem("json", JSON.stringify(n));
251
- }), E.success("保存成功"));
251
+ }), A.success("保存成功"));
252
252
  }
253
253
  function De() {
254
254
  const e = k.getActiveEngine();
@@ -289,8 +289,8 @@ function Ji() {
289
289
  if (!e) return;
290
290
  const t = e.instance.getAllSelected(), n = Array.from(
291
291
  t.reduce((i, c) => {
292
- const a = c.getComponentNode();
293
- return a.groupId && i.add(a.groupId), i;
292
+ const o = c.getComponentNode();
293
+ return o.groupId && i.add(o.groupId), i;
294
294
  }, /* @__PURE__ */ new Set())
295
295
  );
296
296
  e.componentNode.unlinkGroup(n), e.instance.unselectAll();
@@ -342,7 +342,7 @@ function Yi() {
342
342
  if (!e) return;
343
343
  const t = Oe();
344
344
  if (!t.length) {
345
- E.warn("收藏组件不能为空");
345
+ A.warn("收藏组件不能为空");
346
346
  return;
347
347
  }
348
348
  const n = ut(), i = e.favorites.getAll().length;
@@ -366,9 +366,9 @@ function Zi(e) {
366
366
  return Object.values(
367
367
  n.reduce((i, c) => {
368
368
  var d;
369
- const a = t.componentNode.get(c);
370
- return a && (i[a.id] = a, (d = a == null ? void 0 : a.panels) != null && d.length && t.componentNode.getPanelComponentNodes(a, !0).forEach((o) => {
371
- i[o.id] = o;
369
+ const o = t.componentNode.get(c);
370
+ return o && (i[o.id] = o, (d = o == null ? void 0 : o.panels) != null && d.length && t.componentNode.getPanelComponentNodes(o, !0).forEach((a) => {
371
+ i[a.id] = a;
372
372
  })), i;
373
373
  }, {})
374
374
  );
@@ -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 = Vt(n);
380
+ const n = await t.getJSON(), i = Wt(n);
381
381
  t.history.add(i, e);
382
382
  }
383
383
  });
@@ -404,7 +404,7 @@ function Pe(e) {
404
404
  return lt[e];
405
405
  }
406
406
  function pi() {
407
- zi({
407
+ Ti({
408
408
  backspace: () => {
409
409
  at();
410
410
  },
@@ -412,10 +412,10 @@ function pi() {
412
412
  at();
413
413
  },
414
414
  "Shift + A": () => {
415
- on();
415
+ an();
416
416
  },
417
417
  left: (e) => {
418
- e.preventDefault(), Ti();
418
+ e.preventDefault(), zi();
419
419
  },
420
420
  right: (e) => {
421
421
  e.preventDefault(), $i();
@@ -426,7 +426,7 @@ function pi() {
426
426
  down: (e) => {
427
427
  e.preventDefault(), Fi();
428
428
  },
429
- "Shift + C": () => dn(),
429
+ "Shift + C": () => on(),
430
430
  "Shift + S": () => vt(),
431
431
  "Shift + R": () => De(),
432
432
  "Shift + Z": () => bt(),
@@ -450,11 +450,11 @@ const el = "_page_1ijjl_59", tl = "_page_header_1ijjl_69", nl = "_page_body_1ijj
450
450
  tooltipButton_hover: sl,
451
451
  tooltipButton_disabled: ul
452
452
  };
453
- function rn(e) {
454
- return /* @__PURE__ */ l(T, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
453
+ function dn(e) {
454
+ return /* @__PURE__ */ l($, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
455
455
  "div",
456
456
  {
457
- className: $(
457
+ className: R(
458
458
  Fe.tooltipButton,
459
459
  (e == null ? void 0 : e.disabled) && Fe.tooltipButton_disabled,
460
460
  !(e != null && e.noHoverClass) && Fe.tooltipButton_hover
@@ -472,7 +472,7 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
472
472
  "data-injectcss"
473
473
  ), n = n.getAttribute("data-disable-injectsvg");
474
474
  if (!n) {
475
- var i, c, a, d, o, s = function(u, _) {
475
+ var i, c, o, d, a, s = function(u, _) {
476
476
  _.parentNode.insertBefore(u, _);
477
477
  };
478
478
  if (t && !e.__iconfont__svg__cssinject__) {
@@ -490,12 +490,12 @@ window._iconfont_svg_string_4790291 = '<svg><symbol id="icon-undo" viewBox="0 0
490
490
  _.innerHTML = e._iconfont_svg_string_4790291, (_ = _.getElementsByTagName("svg")[0]) && (_.setAttribute("aria-hidden", "true"), _.style.position = "absolute", _.style.width = 0, _.style.height = 0, _.style.overflow = "hidden", _ = _, (u = document.body).firstChild ? s(_, u.firstChild) : u.appendChild(_));
491
491
  }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(i, 0) : (c = function() {
492
492
  document.removeEventListener("DOMContentLoaded", c, !1), i();
493
- }, document.addEventListener("DOMContentLoaded", c, !1)) : document.attachEvent && (a = i, d = e.document, o = !1, h(), d.onreadystatechange = function() {
493
+ }, document.addEventListener("DOMContentLoaded", c, !1)) : document.attachEvent && (o = i, d = e.document, a = !1, h(), d.onreadystatechange = function() {
494
494
  d.readyState == "complete" && (d.onreadystatechange = null, r());
495
495
  });
496
496
  }
497
497
  function r() {
498
- o || (o = !0, a());
498
+ a || (a = !0, o());
499
499
  }
500
500
  function h() {
501
501
  try {
@@ -521,7 +521,7 @@ function Et(e) {
521
521
  "div",
522
522
  {
523
523
  style: n,
524
- className: $(wt.inputNumberWithSuffix, i),
524
+ className: R(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 })
@@ -536,11 +536,11 @@ const fl = {
536
536
  200: " "
537
537
  };
538
538
  function yl(e) {
539
- const { value: t = 1, isCustom: n } = e, i = Ee(), c = A(() => i.scaleMinZoom * 100, [i]), a = A(() => i.scaleMaxZoom * 100, [i]), d = A(() => i.scaleDefault * 100, [i]), o = A(() => Math.round(t * 100), [t]);
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;
542
542
  const h = Math.round(Number(r)) / 100;
543
- h !== o && ((u = e == null ? void 0 : e.onChange) == null || u.call(e, h));
543
+ h !== a && ((u = e == null ? void 0 : e.onChange) == null || u.call(e, h));
544
544
  }
545
545
  return /* @__PURE__ */ l(
546
546
  st,
@@ -551,12 +551,12 @@ function yl(e) {
551
551
  {
552
552
  style: { width: 250 },
553
553
  min: c,
554
- max: Math.max(a, o),
554
+ max: Math.max(o, a),
555
555
  tooltip: {
556
556
  formatter: (r) => `${r}%`
557
557
  },
558
558
  marks: fl,
559
- value: o,
559
+ value: a,
560
560
  onChange: s
561
561
  }
562
562
  ),
@@ -566,7 +566,7 @@ function yl(e) {
566
566
  {
567
567
  min: c,
568
568
  max: 1e3,
569
- value: o,
569
+ value: a,
570
570
  placeholder: "缩放值",
571
571
  style: { fontSize: 12, width: 80 },
572
572
  onChange: (r) => {
@@ -574,7 +574,7 @@ function yl(e) {
574
574
  }
575
575
  }
576
576
  ),
577
- /* @__PURE__ */ l(rn, { noHoverClass: !0, title: "重置", children: /* @__PURE__ */ l(
577
+ /* @__PURE__ */ l(dn, { noHoverClass: !0, title: "重置", children: /* @__PURE__ */ l(
578
578
  Z,
579
579
  {
580
580
  className: "theme-color icon_clickable",
@@ -586,8 +586,8 @@ function yl(e) {
586
586
  ] })
587
587
  ] }),
588
588
  children: /* @__PURE__ */ g("span", { style: { cursor: "pointer" }, children: [
589
- /* @__PURE__ */ l("span", { style: { marginRight: 4 }, children: `${o}%` }),
590
- /* @__PURE__ */ l(Sn, {})
589
+ /* @__PURE__ */ l("span", { style: { marginRight: 4 }, children: `${a}%` }),
590
+ /* @__PURE__ */ l(kn, {})
591
591
  ] })
592
592
  }
593
593
  );
@@ -607,7 +607,7 @@ function vl() {
607
607
  }
608
608
  }
609
609
  ),
610
- /* @__PURE__ */ l(Nn, { style: { fontSize: 10 } }),
610
+ /* @__PURE__ */ l(Sn, { style: { fontSize: 10 } }),
611
611
  /* @__PURE__ */ l(
612
612
  Et,
613
613
  {
@@ -633,7 +633,7 @@ function vl() {
633
633
  )
634
634
  ] });
635
635
  }
636
- function P({ children: e }) {
636
+ function B({ children: e }) {
637
637
  return /* @__PURE__ */ l(
638
638
  "div",
639
639
  {
@@ -666,36 +666,36 @@ function bl() {
666
666
  e("head.shortCutKeys.all"),
667
667
  ":"
668
668
  ] }),
669
- /* @__PURE__ */ l(P, { children: "Shift" }),
669
+ /* @__PURE__ */ l(B, { children: "Shift" }),
670
670
  /* @__PURE__ */ l("span", { children: "+" }),
671
- /* @__PURE__ */ l(P, { children: "A" })
671
+ /* @__PURE__ */ l(B, { children: "A" })
672
672
  ] }),
673
673
  /* @__PURE__ */ g(D, { children: [
674
674
  /* @__PURE__ */ g("span", { children: [
675
675
  e("head.shortCutKeys.invert"),
676
676
  ":"
677
677
  ] }),
678
- /* @__PURE__ */ l(P, { children: "Shift" }),
678
+ /* @__PURE__ */ l(B, { children: "Shift" }),
679
679
  /* @__PURE__ */ l("span", { children: "+" }),
680
- /* @__PURE__ */ l(P, { children: "R" })
680
+ /* @__PURE__ */ l(B, { children: "R" })
681
681
  ] }),
682
682
  /* @__PURE__ */ g(D, { children: [
683
683
  /* @__PURE__ */ g("span", { children: [
684
684
  e("head.shortCutKeys.copy"),
685
685
  ":"
686
686
  ] }),
687
- /* @__PURE__ */ l(P, { children: "Shift" }),
687
+ /* @__PURE__ */ l(B, { children: "Shift" }),
688
688
  /* @__PURE__ */ l("span", { children: "+" }),
689
- /* @__PURE__ */ l(P, { children: "C" })
689
+ /* @__PURE__ */ l(B, { children: "C" })
690
690
  ] }),
691
691
  /* @__PURE__ */ g(D, { children: [
692
692
  /* @__PURE__ */ g("span", { children: [
693
693
  e("head.shortCutKeys.save"),
694
694
  ":"
695
695
  ] }),
696
- /* @__PURE__ */ l(P, { children: "Shift" }),
696
+ /* @__PURE__ */ l(B, { children: "Shift" }),
697
697
  /* @__PURE__ */ l("span", { children: "+" }),
698
- /* @__PURE__ */ l(P, { children: "S" })
698
+ /* @__PURE__ */ l(B, { children: "S" })
699
699
  ] }),
700
700
  /* @__PURE__ */ g(D, { children: [
701
701
  /* @__PURE__ */ g("span", { children: [
@@ -703,7 +703,7 @@ function bl() {
703
703
  ":"
704
704
  ] }),
705
705
  /* @__PURE__ */ l("span", { children: e("head.shortCutKeys.multipleExt.ext1") }),
706
- /* @__PURE__ */ l(P, { children: "Shift" }),
706
+ /* @__PURE__ */ l(B, { children: "Shift" }),
707
707
  /* @__PURE__ */ l("span", { children: e("head.shortCutKeys.multipleExt.ext2") })
708
708
  ] }),
709
709
  /* @__PURE__ */ g(D, { children: [
@@ -711,23 +711,23 @@ function bl() {
711
711
  e("head.shortCutKeys.delete"),
712
712
  ":"
713
713
  ] }),
714
- /* @__PURE__ */ l(P, { children: "BackSpace" }),
714
+ /* @__PURE__ */ l(B, { children: "BackSpace" }),
715
715
  /* @__PURE__ */ g("span", { children: [
716
716
  " ",
717
717
  e("head.shortCutKeys.deleteExt.ext1"),
718
718
  " "
719
719
  ] }),
720
- /* @__PURE__ */ l(P, { children: "Delete" })
720
+ /* @__PURE__ */ l(B, { children: "Delete" })
721
721
  ] }),
722
722
  /* @__PURE__ */ g(D, { children: [
723
723
  /* @__PURE__ */ g("span", { children: [
724
724
  e("head.shortCutKeys.move"),
725
725
  ":"
726
726
  ] }),
727
- /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(et, {}) }),
728
- /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(wn, {}) }),
729
- /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(tt, {}) }),
730
- /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(En, {}) })
727
+ /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(et, {}) }),
728
+ /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(Nn, {}) }),
729
+ /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(tt, {}) }),
730
+ /* @__PURE__ */ l(B, { children: /* @__PURE__ */ l(wn, {}) })
731
731
  ] }),
732
732
  /* @__PURE__ */ g(D, { children: [
733
733
  /* @__PURE__ */ g("span", { children: [
@@ -735,7 +735,7 @@ function bl() {
735
735
  ":"
736
736
  ] }),
737
737
  /* @__PURE__ */ l("span", { children: e("head.shortCutKeys.forceExt.ext1") }),
738
- /* @__PURE__ */ l(P, { children: "Shift" }),
738
+ /* @__PURE__ */ l(B, { children: "Shift" }),
739
739
  /* @__PURE__ */ l("span", { children: e("head.shortCutKeys.forceExt.ext2") })
740
740
  ] }),
741
741
  /* @__PURE__ */ g(D, { children: [
@@ -743,27 +743,27 @@ function bl() {
743
743
  e("head.shortCutKeys.undo"),
744
744
  ":"
745
745
  ] }),
746
- /* @__PURE__ */ l(P, { children: "Shift" }),
746
+ /* @__PURE__ */ l(B, { children: "Shift" }),
747
747
  /* @__PURE__ */ l("span", { children: "+" }),
748
- /* @__PURE__ */ l(P, { children: "Z" })
748
+ /* @__PURE__ */ l(B, { children: "Z" })
749
749
  ] }),
750
750
  /* @__PURE__ */ g(D, { children: [
751
751
  /* @__PURE__ */ g("span", { children: [
752
752
  e("head.shortCutKeys.cancelUndo"),
753
753
  ":"
754
754
  ] }),
755
- /* @__PURE__ */ l(P, { children: "Shift" }),
755
+ /* @__PURE__ */ l(B, { children: "Shift" }),
756
756
  /* @__PURE__ */ l("span", { children: "+" }),
757
- /* @__PURE__ */ l(P, { children: "Ctrl / Command" }),
757
+ /* @__PURE__ */ l(B, { children: "Ctrl / Command" }),
758
758
  /* @__PURE__ */ l("span", { children: "+" }),
759
- /* @__PURE__ */ l(P, { children: "Z" })
759
+ /* @__PURE__ */ l(B, { children: "Z" })
760
760
  ] }),
761
761
  /* @__PURE__ */ g(D, { children: [
762
762
  /* @__PURE__ */ g("span", { children: [
763
763
  e("head.shortCutKeys.zoom"),
764
764
  ":"
765
765
  ] }),
766
- /* @__PURE__ */ l(P, { children: /* @__PURE__ */ g(D, { children: [
766
+ /* @__PURE__ */ l(B, { children: /* @__PURE__ */ g(D, { children: [
767
767
  /* @__PURE__ */ l("span", { children: e("head.shortCutKeys.zoomExt.ext1") }),
768
768
  /* @__PURE__ */ l(et, {}),
769
769
  /* @__PURE__ */ l("span", { children: "/" }),
@@ -775,7 +775,7 @@ function bl() {
775
775
  e("head.shortCutKeys.zoomReset"),
776
776
  ":"
777
777
  ] }),
778
- /* @__PURE__ */ l(P, { children: e("head.shortCutKeys.zoomResetExt.ext1") })
778
+ /* @__PURE__ */ l(B, { children: e("head.shortCutKeys.zoomResetExt.ext1") })
779
779
  ] }),
780
780
  /* @__PURE__ */ g(D, { children: [
781
781
  /* @__PURE__ */ g("span", { children: [
@@ -783,7 +783,7 @@ function bl() {
783
783
  ":"
784
784
  ] }),
785
785
  /* @__PURE__ */ l("span", { children: e("head.shortCutKeys.dragCanvasExt.ext1") }),
786
- /* @__PURE__ */ l(P, { children: "Space" }),
786
+ /* @__PURE__ */ l(B, { children: "Space" }),
787
787
  /* @__PURE__ */ l("span", { children: e("head.shortCutKeys.dragCanvas") })
788
788
  ] })
789
789
  ]
@@ -800,9 +800,9 @@ function xl(e = window.location.host) {
800
800
  }
801
801
  const Il = (e, t, n) => {
802
802
  const i = e[t];
803
- return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((c, a) => {
803
+ return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((c, o) => {
804
804
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
805
- a.bind(
805
+ o.bind(
806
806
  null,
807
807
  new Error(
808
808
  "Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
@@ -813,7 +813,7 @@ const Il = (e, t, n) => {
813
813
  };
814
814
  async function kl(e) {
815
815
  var i;
816
- const t = await Il(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-C4z4Sjq2.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-C4z4Sjq2.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
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();
817
817
  (i = n == null ? void 0 : n.loadJSON) == null || i.call(n, t);
818
818
  }
819
819
  function Sl() {
@@ -852,49 +852,46 @@ function Nl() {
852
852
  }
853
853
  const wl = xl();
854
854
  function El(e) {
855
- const { pageLogo: t } = e, { engine: n, rbsEngine: i } = N(), [c, a] = se(), d = an(), o = a.language === ci.zh, s = A(() => [
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(() => [
856
856
  {
857
857
  key: "shortCutKeys",
858
858
  description: /* @__PURE__ */ l(bl, {}),
859
- icon: /* @__PURE__ */ l(An, {})
859
+ icon: /* @__PURE__ */ l(En, {})
860
860
  },
861
861
  {
862
862
  key: "undo",
863
- description: c("head.undo"),
864
- disabled: !d.isCanGoBack,
863
+ description: s("head.undo"),
864
+ disabled: !h.isCanGoBack,
865
865
  icon: /* @__PURE__ */ l(Nt, { type: "icon-undo" })
866
866
  },
867
867
  {
868
868
  key: "cancelUndo",
869
- description: c("head.cancelUndo"),
870
- disabled: !d.isCanGoForward,
869
+ description: s("head.cancelUndo"),
870
+ disabled: !h.isCanGoForward,
871
871
  icon: /* @__PURE__ */ l(Nt, { type: "icon-cancel-undo" })
872
872
  },
873
- { key: "export", description: c("head.export"), icon: /* @__PURE__ */ l(Ln, {}) },
874
- { key: "import", description: c("head.import"), icon: /* @__PURE__ */ l($t, {}) },
875
- { key: "save", description: c("head.save"), icon: /* @__PURE__ */ l(Q, {}) },
876
- { key: "clear", description: c("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
877
- {
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, {}) },
876
+ i && {
878
877
  key: "language",
879
- description: c("head.language", { text: `${o ? "切换英语" : "change chinese"}` }),
880
- icon: /* @__PURE__ */ l(Dn, {})
878
+ description: s("head.language", { text: `${u ? "切换英语" : "change chinese"}` }),
879
+ icon: /* @__PURE__ */ l(Ln, {})
881
880
  },
882
- {
883
- key: "settings",
884
- description: c("head.settings"),
885
- disabled: !0,
886
- icon: /* @__PURE__ */ l(Ft, {})
881
+ o && {
882
+ key: "save",
883
+ description: s("head.save"),
884
+ icon: /* @__PURE__ */ l(Q, {})
887
885
  }
888
- // { key: "preview", description: t("head.preview"), icon: <DesktopOutlined /> },
889
- ], [a.language, d.isCanGoForward, d.isCanGoBack]);
890
- function r() {
886
+ ].filter(Boolean), [r.language, h.isCanGoForward, h.isCanGoBack, i, o]);
887
+ function m() {
891
888
  window.open("https://github.com/tangjiahui-cn/react-big-screen.git");
892
889
  }
893
- async function h() {
894
- i == null || i.emit("startPreview", n);
890
+ async function y() {
891
+ a == null || a.emit("startPreview", d);
895
892
  }
896
- function u(m) {
897
- switch (m.key) {
893
+ function x(C) {
894
+ switch (C.key) {
898
895
  case "undo":
899
896
  bt();
900
897
  break;
@@ -902,71 +899,73 @@ function El(e) {
902
899
  ot();
903
900
  break;
904
901
  case "export":
905
- n.getJSON().then((C) => {
906
- const v = JSON.stringify(C);
907
- Jt(v, "大屏看板.json");
902
+ d.getJSON().then((P) => {
903
+ const T = JSON.stringify(P);
904
+ qt(T, "大屏看板.json");
908
905
  });
909
906
  break;
910
907
  case "import":
911
- Ai().then((C) => {
912
- if (!C)
913
- return E.warn("文件内容不能为空");
908
+ Ai().then((P) => {
909
+ if (!P)
910
+ return A.warn("文件内容不能为空");
914
911
  try {
915
- const v = JSON.parse(C);
916
- n.loadJSON(v);
912
+ const T = JSON.parse(P);
913
+ d.loadJSON(T);
917
914
  } catch {
918
- E.error("请上传json格式文件");
915
+ A.error("请上传json格式文件");
919
916
  }
920
917
  });
921
918
  break;
922
919
  case "preview":
923
- h();
920
+ y();
924
921
  break;
925
922
  case "save":
926
923
  vt();
927
924
  break;
928
925
  case "clear":
929
- n.clear();
926
+ d.clear();
930
927
  break;
931
928
  case "settings":
932
929
  break;
933
930
  case "language":
934
- const y = o ? "en" : "zh";
935
- ai(y), n.config.setConfig({ language: y });
931
+ const w = u ? "en" : "zh";
932
+ ai(w), d.config.setConfig({ language: w });
936
933
  break;
937
934
  }
938
935
  }
939
- const _ = /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
936
+ const b = /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
940
937
  /* @__PURE__ */ l("b", { children: "BigScreen" }),
941
- !wl && /* @__PURE__ */ l(On, { style: { cursor: "pointer", fontSize: 16 }, onClick: r })
942
- ] });
938
+ !wl && /* @__PURE__ */ l(Dn, { style: { cursor: "pointer", fontSize: 16 }, onClick: m })
939
+ ] }), I = /* @__PURE__ */ g(W, { children: [
940
+ _.map((C) => /* @__PURE__ */ l(
941
+ dn,
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
947
+ },
948
+ C.key
949
+ )),
950
+ c && /* @__PURE__ */ l(
951
+ K,
952
+ {
953
+ type: "primary",
954
+ size: "small",
955
+ style: { fontSize: 12 },
956
+ id: "rbs-preview",
957
+ onClick: y,
958
+ children: "开始预览"
959
+ }
960
+ )
961
+ ] }), f = "rbs-tool-bar", v = n ? typeof n == "function" ? /* @__PURE__ */ l(n, { origin: I, previewDriverId: f }) : n : I;
943
962
  return /* @__PURE__ */ g("div", { className: Ie.header, children: [
944
- t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t : _,
963
+ t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t : b,
945
964
  /* @__PURE__ */ l(vl, {}),
946
965
  /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
947
966
  /* @__PURE__ */ l(Sl, {}),
948
967
  /* @__PURE__ */ l(Nl, {}),
949
- /* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: "rbs-tool-bar", children: s.map((m) => /* @__PURE__ */ l(
950
- rn,
951
- {
952
- disabled: m == null ? void 0 : m.disabled,
953
- title: m.description,
954
- onClick: () => u(m),
955
- children: m == null ? void 0 : m.icon
956
- },
957
- m.key
958
- )) }),
959
- /* @__PURE__ */ l(
960
- K,
961
- {
962
- type: "primary",
963
- size: "small",
964
- style: { fontSize: 12 },
965
- id: "rbs-preview",
966
- onClick: h,
967
- children: "开始预览"
968
- }
969
- )
968
+ /* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: f, children: v })
970
969
  ] })
971
970
  ] });
972
971
  }
@@ -974,15 +973,15 @@ const Al = "_menu_1ueks_59", Ll = "_menu_bar_1ueks_68", Dl = "_menu_main_1ueks_7
974
973
  menu: Al,
975
974
  menu_bar: Ll,
976
975
  menu_main: Dl
977
- }, Ol = "_library_11n9v_59", Pl = "_library_header_11n9v_72", Ml = "_library_main_11n9v_83", Ke = {
976
+ }, Ol = "_library_11n9v_59", Pl = "_library_header_11n9v_72", Bl = "_library_main_11n9v_83", Ke = {
978
977
  library: Ol,
979
978
  library_header: Pl,
980
- library_main: Ml
981
- }, Bl = "_componentsBlock_mx05c_59", jl = {
982
- componentsBlock: Bl
983
- }, zl = "_componentItem_1a82r_59", Tl = "_componentItem_body_1a82r_71", $l = "_componentItem_footer_1a82r_80", Ue = {
984
- componentItem: zl,
985
- componentItem_body: Tl,
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,
986
985
  componentItem_footer: $l
987
986
  };
988
987
  class Rl {
@@ -1006,19 +1005,19 @@ const At = new Rl();
1006
1005
  function Fl(e, t) {
1007
1006
  let n = !1;
1008
1007
  e.addEventListener("mousedown", c);
1009
- function i(o) {
1008
+ function i(a) {
1010
1009
  var s;
1011
- n || (n = !0, (s = t == null ? void 0 : t.onStart) == null || s.call(t, o, { isDragging: n }));
1010
+ n || (n = !0, (s = t == null ? void 0 : t.onStart) == null || s.call(t, a, { isDragging: n }));
1012
1011
  }
1013
1012
  function c() {
1014
- e.addEventListener("mousemove", i), window.addEventListener("mouseup", a);
1013
+ e.addEventListener("mousemove", i), window.addEventListener("mouseup", o);
1015
1014
  }
1016
- function a(o) {
1015
+ function o(a) {
1017
1016
  var s;
1018
- (s = t == null ? void 0 : t.onEnd) == null || s.call(t, o, { isDragging: n }), d();
1017
+ (s = t == null ? void 0 : t.onEnd) == null || s.call(t, a, { isDragging: n }), d();
1019
1018
  }
1020
1019
  function d() {
1021
- n = !1, e.removeEventListener("mousemove", i), window.removeEventListener("mouseup", a);
1020
+ n = !1, e.removeEventListener("mousemove", i), window.removeEventListener("mouseup", o);
1022
1021
  }
1023
1022
  return () => {
1024
1023
  d(), e.removeEventListener("mousedown", c);
@@ -1074,9 +1073,9 @@ class Hl {
1074
1073
  }
1075
1074
  }
1076
1075
  const ce = new Hl();
1077
- function sn(e, t) {
1078
- const n = B(t);
1079
- n.current = t, w(() => {
1076
+ function rn(e, t) {
1077
+ const n = j(t);
1078
+ n.current = t, E(() => {
1080
1079
  const i = e.current;
1081
1080
  if (!i) {
1082
1081
  console.warn("dom must be set.");
@@ -1093,9 +1092,9 @@ function sn(e, t) {
1093
1092
  return () => c();
1094
1093
  }, []);
1095
1094
  }
1096
- function un(e, t) {
1097
- const n = B(t);
1098
- n.current = t, w(() => {
1095
+ function sn(e, t) {
1096
+ const n = j(t);
1097
+ n.current = t, E(() => {
1099
1098
  const { accept: i } = t;
1100
1099
  if (i && !Array.isArray(i))
1101
1100
  throw new Error("accept must be a string array.");
@@ -1104,21 +1103,21 @@ function un(e, t) {
1104
1103
  console.warn("dom must be set.");
1105
1104
  return;
1106
1105
  }
1107
- const a = (d) => {
1106
+ const o = (d) => {
1108
1107
  var s, r, h;
1109
1108
  if (!ce.getIsDragging())
1110
1109
  return;
1111
- const o = ce.getDragOptions();
1112
- i && !((s = i == null ? void 0 : i.includes) != null && s.call(i, o.type || "")) || (h = (r = n.current) == null ? void 0 : r.onDrop) == null || h.call(r, d, o);
1110
+ const a = ce.getDragOptions();
1111
+ i && !((s = i == null ? void 0 : i.includes) != null && s.call(i, a.type || "")) || (h = (r = n.current) == null ? void 0 : r.onDrop) == null || h.call(r, d, a);
1113
1112
  };
1114
- return c.addEventListener("mouseup", a), () => {
1115
- c.removeEventListener("mouseup", a);
1113
+ return c.addEventListener("mouseup", o), () => {
1114
+ c.removeEventListener("mouseup", o);
1116
1115
  };
1117
1116
  }, []);
1118
1117
  }
1119
1118
  function xe(e) {
1120
1119
  const { src: t } = e, [n, i] = S("");
1121
- return w(() => {
1120
+ return E(() => {
1122
1121
  switch (typeof t) {
1123
1122
  case "string":
1124
1123
  i(t);
@@ -1132,8 +1131,8 @@ function xe(e) {
1132
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" });
1133
1132
  }
1134
1133
  function Kl(e) {
1135
- const { component: t } = e, n = B(null);
1136
- return sn(n, {
1134
+ const { component: t } = e, n = j(null);
1135
+ return rn(n, {
1137
1136
  type: "create-component",
1138
1137
  data: {
1139
1138
  component: t
@@ -1142,7 +1141,7 @@ function Kl(e) {
1142
1141
  "div",
1143
1142
  {
1144
1143
  style: e == null ? void 0 : e.style,
1145
- className: $(Ue.componentItem, e == null ? void 0 : e.className),
1144
+ className: R(Ue.componentItem, e == null ? void 0 : e.className),
1146
1145
  ref: n,
1147
1146
  children: [
1148
1147
  /* @__PURE__ */ l("div", { className: Ue.componentItem_body, children: /* @__PURE__ */ l(xe, { src: t == null ? void 0 : t.icon, style: { maxWidth: "50%", maxHeight: "50%" } }) }),
@@ -1152,15 +1151,15 @@ function Kl(e) {
1152
1151
  );
1153
1152
  }
1154
1153
  function Ul(e) {
1155
- var a;
1156
- const { components: t, column: n = 3 } = e, { width: i, lines: c } = A(() => ({
1154
+ var o;
1155
+ const { components: t, column: n = 3 } = e, { width: i, lines: c } = L(() => ({
1157
1156
  width: `${100 / n}%`,
1158
1157
  lines: Math.ceil(t.length / n)
1159
1158
  }), [t, n]);
1160
1159
  return /* @__PURE__ */ g("div", { className: jl.componentsBlock, children: [
1161
1160
  !(t != null && t.length) && /* @__PURE__ */ l(U, { description: "暂无组件" }),
1162
- (a = t == null ? void 0 : t.map) == null ? void 0 : a.call(t, (d, o) => {
1163
- const s = o % n === n - 1, r = c === 1 || o > (c - 1) * n - 1;
1161
+ (o = t == null ? void 0 : t.map) == null ? void 0 : o.call(t, (d, a) => {
1162
+ const s = a % n === n - 1, r = c === 1 || a > (c - 1) * n - 1;
1164
1163
  return /* @__PURE__ */ l(
1165
1164
  Kl,
1166
1165
  {
@@ -1182,37 +1181,37 @@ function Lt(e, t = "") {
1182
1181
  return e.filter((i) => i.cName.toLowerCase().includes(n) || i.cId.toLowerCase().includes(n));
1183
1182
  }
1184
1183
  function ql() {
1185
- const [e, t] = se(), [n, i] = S([]), c = Oi(), [a, d] = S(""), [o, s] = S([]), r = A(() => ({
1184
+ const [e, t] = se(), [n, i] = S([]), c = Oi(), [o, d] = S(""), [a, s] = S([]), r = L(() => ({
1186
1185
  base: e("menu.library.base"),
1187
1186
  charts: e("menu.library.charts"),
1188
1187
  layout: e("menu.library.layout"),
1189
1188
  nav: e("menu.library.nav"),
1190
1189
  unknown: e("menu.library.unknown")
1191
- }), [t.language]), h = A(() => ui((_, m = "") => {
1190
+ }), [t.language]), h = L(() => ui((_, m = "") => {
1192
1191
  const y = Lt(_, m);
1193
1192
  s(y);
1194
1193
  }, 500), []);
1195
- w(() => {
1196
- s(Lt(c, a));
1194
+ E(() => {
1195
+ s(Lt(c, o));
1197
1196
  }, [c]), _t(() => {
1198
- h(c, a);
1199
- }, [a]);
1200
- const u = A(() => {
1197
+ h(c, o);
1198
+ }, [o]);
1199
+ const u = L(() => {
1201
1200
  const _ = [], m = Object.entries(
1202
- hi(o, (y) => y.category || "unknown")
1203
- ).map(([y, C]) => (_.push(y), {
1201
+ hi(a, (y) => y.category || "unknown")
1202
+ ).map(([y, x]) => (_.push(y), {
1204
1203
  key: y,
1205
- components: C,
1204
+ components: x,
1206
1205
  label: r[y] || y
1207
1206
  }));
1208
1207
  return i(_), m;
1209
- }, [o, r]);
1208
+ }, [a, r]);
1210
1209
  return /* @__PURE__ */ g("div", { className: Ke.library, children: [
1211
1210
  /* @__PURE__ */ l("div", { className: Ke.library_header, children: /* @__PURE__ */ l(
1212
1211
  Qn.Search,
1213
1212
  {
1214
1213
  allowClear: !0,
1215
- value: a,
1214
+ value: o,
1216
1215
  placeholder: "搜索组件",
1217
1216
  onChange: (_) => {
1218
1217
  d(_.target.value);
@@ -1244,7 +1243,7 @@ const Jl = "_componentNodes_x43ss_59", Wl = "_componentNodes_head_x43ss_63", Vl
1244
1243
  componentNodeItem_tail_operatable: pl
1245
1244
  };
1246
1245
  function ec(e) {
1247
- const { engine: t } = N(), n = B(null), [i, c] = S(e == null ? void 0 : e.componentNode), a = (i == null ? void 0 : i.show) ?? !0, { component: d, instance: o } = A(() => ({
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(() => ({
1248
1247
  component: t.component.get(i == null ? void 0 : i.cId),
1249
1248
  instance: t.instance.get(i == null ? void 0 : i.id)
1250
1249
  }), [i]);
@@ -1264,14 +1263,14 @@ function ec(e) {
1264
1263
  show: h
1265
1264
  });
1266
1265
  }
1267
- return w(() => t.componentNode.onChange(i.id, ({ payload: h }) => {
1266
+ return E(() => t.componentNode.onChange(i.id, ({ payload: h }) => {
1268
1267
  c({ ...h });
1269
1268
  }), []), /* @__PURE__ */ g(
1270
1269
  "div",
1271
1270
  {
1272
1271
  [`data-${oe.componentNodeId}`]: i.id,
1273
1272
  ref: n,
1274
- className: $(
1273
+ className: R(
1275
1274
  ne.componentNodeItem,
1276
1275
  (e == null ? void 0 : e.isSelected) && ne.componentNodeItem_selected
1277
1276
  ),
@@ -1280,25 +1279,25 @@ function ec(e) {
1280
1279
  },
1281
1280
  onMouseEnter: () => {
1282
1281
  var h;
1283
- (h = o == null ? void 0 : o.handleHover) == null || h.call(o);
1282
+ (h = a == null ? void 0 : a.handleHover) == null || h.call(a);
1284
1283
  },
1285
1284
  onMouseLeave: () => {
1286
1285
  var h;
1287
- (h = o == null ? void 0 : o.handleUnHover) == null || h.call(o);
1286
+ (h = a == null ? void 0 : a.handleUnHover) == null || h.call(a);
1288
1287
  },
1289
1288
  children: [
1290
1289
  /* @__PURE__ */ l("div", { className: ne.componentNodeItem_icon, children: /* @__PURE__ */ l(xe, { src: d == null ? void 0 : d.icon, style: { height: "75%", maxWidth: "100%" } }) }),
1291
1290
  /* @__PURE__ */ l("div", { className: ne.componentNodeItem_name, children: i == null ? void 0 : i.name }),
1292
1291
  /* @__PURE__ */ g("div", { className: ne.componentNodeItem_tail, children: [
1293
- /* @__PURE__ */ l("div", { children: i != null && i.lock ? /* @__PURE__ */ l(Ht, {}) : "" }),
1292
+ /* @__PURE__ */ l("div", { children: i != null && i.lock ? /* @__PURE__ */ l(Ft, {}) : "" }),
1294
1293
  /* @__PURE__ */ l(
1295
1294
  "div",
1296
1295
  {
1297
1296
  className: ne.componentNodeItem_tail_operatable,
1298
1297
  onMouseDown: (h) => {
1299
- h.stopPropagation(), r(!a);
1298
+ h.stopPropagation(), r(!o);
1300
1299
  },
1301
- children: a ? /* @__PURE__ */ l(Pn, {}) : /* @__PURE__ */ l(Mn, {})
1300
+ children: o ? /* @__PURE__ */ l(On, {}) : /* @__PURE__ */ l(Pn, {})
1302
1301
  }
1303
1302
  )
1304
1303
  ] })
@@ -1321,19 +1320,19 @@ const tc = "_renderContextMenu_vitq8_59", nc = {
1321
1320
  left: 0
1322
1321
  };
1323
1322
  function uc(e) {
1324
- const { engine: t } = N(), { children: n, items: i, onSelect: c, ...a } = e, [d, o] = S(!1), [s, r] = S(sc);
1323
+ const { engine: t } = N(), { children: n, items: i, onSelect: c, ...o } = e, [d, a] = S(!1), [s, r] = S(sc);
1325
1324
  function h(_) {
1326
- var y, C, v;
1325
+ var y, x, b;
1327
1326
  if ((y = e == null ? void 0 : e.onMouseEnter) == null || y.call(e, _), !(i != null && i.length))
1328
1327
  return;
1329
- const m = (v = (C = _.target) == null ? void 0 : C.getBoundingClientRect) == null ? void 0 : v.call(C);
1330
- m && (r({ top: m.top, left: m.left + m.width }), o(!0));
1328
+ const m = (b = (x = _.target) == null ? void 0 : x.getBoundingClientRect) == null ? void 0 : b.call(x);
1329
+ m && (r({ top: m.top, left: m.left + m.width }), a(!0));
1331
1330
  }
1332
1331
  function u(_) {
1333
1332
  var m;
1334
- (m = e == null ? void 0 : e.onMouseLeave) == null || m.call(e, _), o(!1);
1333
+ (m = e == null ? void 0 : e.onMouseLeave) == null || m.call(e, _), a(!1);
1335
1334
  }
1336
- return /* @__PURE__ */ g("div", { ...a, onMouseEnter: h, onMouseLeave: u, children: [
1335
+ return /* @__PURE__ */ g("div", { ...o, onMouseEnter: h, onMouseLeave: u, children: [
1337
1336
  n,
1338
1337
  d && si(
1339
1338
  /* @__PURE__ */ l(
@@ -1346,7 +1345,7 @@ function uc(e) {
1346
1345
  zIndex: t.componentNode.getMaxLevel()
1347
1346
  },
1348
1347
  children: /* @__PURE__ */ l(
1349
- hn,
1348
+ un,
1350
1349
  {
1351
1350
  items: i,
1352
1351
  onSelect: (_, m) => {
@@ -1360,35 +1359,35 @@ function uc(e) {
1360
1359
  )
1361
1360
  ] });
1362
1361
  }
1363
- function hn(e) {
1362
+ function un(e) {
1364
1363
  var t, n;
1365
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) => {
1366
- var a;
1365
+ var o;
1367
1366
  const c = !(i != null && i.disabled) && ((i == null ? void 0 : i.selectable) ?? (i == null ? void 0 : i.selectable) === void 0);
1368
1367
  return /* @__PURE__ */ g(
1369
1368
  uc,
1370
1369
  {
1371
1370
  items: i == null ? void 0 : i.children,
1372
1371
  style: i == null ? void 0 : i.style,
1373
- className: $(
1372
+ className: R(
1374
1373
  ge.renderList_item,
1375
1374
  (i == null ? void 0 : i.disabled) && ge.renderList_disabled,
1376
1375
  !c && ge.renderList_item_unselectable
1377
1376
  ),
1378
- onSelect: (d, o) => {
1377
+ onSelect: (d, a) => {
1379
1378
  var s, r;
1380
- (s = e == null ? void 0 : e.onSelect) == null || s.call(e, d, o), d.key === i.key && ((r = i == null ? void 0 : i.onSelect) == null || r.call(i, o));
1379
+ (s = e == null ? void 0 : e.onSelect) == null || s.call(e, d, a), d.key === i.key && ((r = i == null ? void 0 : i.onSelect) == null || r.call(i, a));
1381
1380
  },
1382
1381
  onClick: (d) => {
1383
- var o, s;
1384
- d.stopPropagation(), c && ((o = e == null ? void 0 : e.onSelect) == null || o.call(e, i, d), (s = i == null ? void 0 : i.onSelect) == null || s.call(i, d));
1382
+ var a, s;
1383
+ d.stopPropagation(), c && ((a = e == null ? void 0 : e.onSelect) == null || a.call(e, i, d), (s = i == null ? void 0 : i.onSelect) == null || s.call(i, d));
1385
1384
  },
1386
1385
  children: [
1387
1386
  /* @__PURE__ */ g("div", { className: ge.renderList_item_title, style: i == null ? void 0 : i.titleStyle, children: [
1388
1387
  i == null ? void 0 : i.icon,
1389
1388
  i == null ? void 0 : i.title
1390
1389
  ] }),
1391
- !!((a = i == null ? void 0 : i.children) != null && a.length) && /* @__PURE__ */ l(Bn, { style: { fontSize: "0.75em" } })
1390
+ !!((o = i == null ? void 0 : i.children) != null && o.length) && /* @__PURE__ */ l(Bn, { style: { fontSize: "0.75em" } })
1392
1391
  ]
1393
1392
  },
1394
1393
  i == null ? void 0 : i.key
@@ -1396,11 +1395,11 @@ function hn(e) {
1396
1395
  }) });
1397
1396
  }
1398
1397
  function hc(e) {
1399
- const t = B(null);
1400
- return w(() => {
1398
+ const t = j(null);
1399
+ return E(() => {
1401
1400
  function n(i) {
1402
- var c, a, d;
1403
- (a = (c = t.current) == null ? void 0 : c.contains) != null && a.call(c, i.target) || (d = e == null ? void 0 : e.onClickOuter) == null || d.call(e);
1401
+ var c, o, d;
1402
+ (o = (c = t.current) == null ? void 0 : c.contains) != null && o.call(c, i.target) || (d = e == null ? void 0 : e.onClickOuter) == null || d.call(e);
1404
1403
  }
1405
1404
  return window.addEventListener("click", n), () => {
1406
1405
  window.removeEventListener("click", n);
@@ -1415,7 +1414,7 @@ function hc(e) {
1415
1414
  n.preventDefault();
1416
1415
  },
1417
1416
  children: /* @__PURE__ */ l(
1418
- hn,
1417
+ un,
1419
1418
  {
1420
1419
  items: e == null ? void 0 : e.items,
1421
1420
  onSelect: (n) => {
@@ -1427,38 +1426,38 @@ function hc(e) {
1427
1426
  }
1428
1427
  );
1429
1428
  }
1430
- function gn(e, t, n, i) {
1429
+ function hn(e, t, n, i) {
1431
1430
  var s;
1432
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)))
1433
1432
  return;
1434
1433
  const c = document.createElement("div");
1435
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);
1436
- const a = Wt(c);
1435
+ const o = Jt(c);
1437
1436
  let d = !1;
1438
- const o = () => {
1437
+ const a = () => {
1439
1438
  var r, h;
1440
- d || ((r = a == null ? void 0 : a.unmount) == null || r.call(a), (h = c == null ? void 0 : c.remove) == null || h.call(c), d = !0);
1439
+ d || ((r = o == null ? void 0 : o.unmount) == null || r.call(o), (h = c == null ? void 0 : c.remove) == null || h.call(c), d = !0);
1441
1440
  };
1442
- return a.render(
1441
+ return o.render(
1443
1442
  /* @__PURE__ */ l(
1444
1443
  hc,
1445
1444
  {
1446
1445
  items: n,
1447
1446
  onClickOuter: () => {
1448
- o();
1447
+ a();
1449
1448
  },
1450
1449
  onSelect: (r) => {
1451
1450
  var h;
1452
- (h = i == null ? void 0 : i.onSelect) == null || h.call(i, r == null ? void 0 : r.key, r), o();
1451
+ (h = i == null ? void 0 : i.onSelect) == null || h.call(i, r == null ? void 0 : r.key, r), a();
1453
1452
  }
1454
1453
  }
1455
1454
  )
1456
- ), o;
1455
+ ), a;
1457
1456
  }
1458
1457
  const gc = [
1459
1458
  {
1460
1459
  key: "top",
1461
- icon: /* @__PURE__ */ l(jn, {}),
1460
+ icon: /* @__PURE__ */ l(Mn, {}),
1462
1461
  title: "置顶",
1463
1462
  style: { borderTop: "1px solid #e8e8e8" },
1464
1463
  onSelect: () => Wi()
@@ -1484,13 +1483,13 @@ const gc = [
1484
1483
  },
1485
1484
  {
1486
1485
  key: "lock",
1487
- icon: /* @__PURE__ */ l(Ht, {}),
1486
+ icon: /* @__PURE__ */ l(Ft, {}),
1488
1487
  title: "锁定",
1489
1488
  onSelect: () => Ki()
1490
1489
  },
1491
1490
  {
1492
1491
  key: "unlock",
1493
- icon: /* @__PURE__ */ l(zn, {}),
1492
+ icon: /* @__PURE__ */ l(jn, {}),
1494
1493
  title: "解锁",
1495
1494
  onSelect: () => Ui()
1496
1495
  },
@@ -1502,16 +1501,16 @@ const gc = [
1502
1501
  },
1503
1502
  {
1504
1503
  key: "ungroup",
1505
- icon: /* @__PURE__ */ l($n, {}),
1504
+ icon: /* @__PURE__ */ l(zn, {}),
1506
1505
  title: "取消成组",
1507
1506
  onSelect: () => Ji()
1508
1507
  },
1509
1508
  {
1510
1509
  key: "copy",
1511
- icon: /* @__PURE__ */ l(Rn, {}),
1510
+ icon: /* @__PURE__ */ l($n, {}),
1512
1511
  title: "复制",
1513
1512
  style: { borderTop: "1px solid #e8e8e8" },
1514
- onSelect: () => dn()
1513
+ onSelect: () => on()
1515
1514
  },
1516
1515
  {
1517
1516
  key: "delete",
@@ -1529,15 +1528,15 @@ const gc = [
1529
1528
  ];
1530
1529
  function _c(e, t) {
1531
1530
  var n;
1532
- return gn(e.clientX, e.clientY, gc, {
1531
+ return hn(e.clientX, e.clientY, gc, {
1533
1532
  zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel(),
1534
1533
  onBeforeOpen(i) {
1535
- let c = 0, a = !1;
1536
- const d = t.instance.getAllSelected(), o = d.map((s) => {
1534
+ let c = 0, o = !1;
1535
+ const d = t.instance.getAllSelected(), a = d.map((s) => {
1537
1536
  const r = s.getComponentNode();
1538
- return r != null && r.lock && c++, r.groupId && (a = !0), r;
1537
+ return r != null && r.lock && c++, r.groupId && (o = !0), r;
1539
1538
  });
1540
- return o.length ? i.filter((s) => s.key === "group" ? d.length > 1 : s.key === "ungroup" ? a : s.key === "lock" ? c !== o.length : s.key === "unlock" ? !!c : !0) : i;
1539
+ return a.length ? i.filter((s) => s.key === "group" ? d.length > 1 : s.key === "ungroup" ? o : s.key === "lock" ? c !== a.length : s.key === "unlock" ? !!c : !0) : i;
1541
1540
  }
1542
1541
  });
1543
1542
  }
@@ -1545,13 +1544,13 @@ const mc = [
1545
1544
  {
1546
1545
  key: "selectAll",
1547
1546
  title: "全选",
1548
- icon: /* @__PURE__ */ l(Fn, {}),
1549
- onSelect: () => on()
1547
+ icon: /* @__PURE__ */ l(Rn, {}),
1548
+ onSelect: () => an()
1550
1549
  },
1551
1550
  {
1552
1551
  key: "unselectAll",
1553
1552
  title: "反选",
1554
- icon: /* @__PURE__ */ l(Hn, {}),
1553
+ icon: /* @__PURE__ */ l(Fn, {}),
1555
1554
  onSelect: () => De()
1556
1555
  },
1557
1556
  {
@@ -1569,7 +1568,7 @@ const mc = [
1569
1568
  ];
1570
1569
  function fc(e, t) {
1571
1570
  var n;
1572
- return gn(e.clientX, e.clientY, mc, {
1571
+ return hn(e.clientX, e.clientY, mc, {
1573
1572
  zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel()
1574
1573
  });
1575
1574
  }
@@ -1577,33 +1576,33 @@ let ve = [];
1577
1576
  function Dt() {
1578
1577
  ve.length && (ve.forEach((e) => e == null ? void 0 : e()), ve = []);
1579
1578
  }
1580
- function _n(e) {
1579
+ function gn(e) {
1581
1580
  const { engine: t } = N();
1582
1581
  gt(e, {
1583
1582
  contextmenu(n) {
1584
1583
  var d;
1585
1584
  Dt(), n.preventDefault();
1586
- const i = ct(n.target, oe.componentNodeId, !0), c = t.instance.get(i), a = (d = c == null ? void 0 : c.getComponentNode) == null ? void 0 : d.call(c);
1587
- if (c && a) {
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
+ if (c && o) {
1588
1587
  ve.push(_c(n, t));
1589
1588
  return;
1590
1589
  }
1591
1590
  ve.push(fc(n, t));
1592
1591
  }
1593
- }), Qt(() => {
1592
+ }), Zt(() => {
1594
1593
  Dt();
1595
1594
  });
1596
1595
  }
1597
1596
  function yc() {
1598
- const { engine: e } = N(), t = Xt(), n = yt(), i = B(null), c = A(() => t.length ? /* @__PURE__ */ l("div", { className: qe.componentNodes_block, children: t.map((a) => /* @__PURE__ */ l(
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(
1599
1598
  ec,
1600
1599
  {
1601
- componentNode: a,
1602
- isSelected: e.instance.isSelected(a.id)
1600
+ componentNode: o,
1601
+ isSelected: e.instance.isSelected(o.id)
1603
1602
  },
1604
- a.id
1603
+ o.id
1605
1604
  )) }) : /* @__PURE__ */ l(W, {}), [t, n]);
1606
- return _n(i), /* @__PURE__ */ g(
1605
+ return gn(i), /* @__PURE__ */ g(
1607
1606
  "div",
1608
1607
  {
1609
1608
  ref: i,
@@ -1629,17 +1628,17 @@ function xc(e) {
1629
1628
  var t, n;
1630
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) => {
1631
1630
  const c = i.key === e.value;
1632
- return /* @__PURE__ */ l(T, { title: i == null ? void 0 : i.title, placement: "right", children: /* @__PURE__ */ l(
1631
+ return /* @__PURE__ */ l($, { title: i == null ? void 0 : i.title, placement: "right", children: /* @__PURE__ */ l(
1633
1632
  "div",
1634
1633
  {
1635
1634
  id: i == null ? void 0 : i.domId,
1636
- className: $(
1635
+ className: R(
1637
1636
  Je.menubar_item,
1638
1637
  c && Je.menubar_item_selected
1639
1638
  ),
1640
1639
  onClick: () => {
1641
- var a;
1642
- (a = e == null ? void 0 : e.onChange) == null || a.call(e, i == null ? void 0 : i.key);
1640
+ var o;
1641
+ (o = e == null ? void 0 : e.onChange) == null || o.call(e, i == null ? void 0 : i.key);
1643
1642
  },
1644
1643
  children: i == null ? void 0 : i.icon
1645
1644
  }
@@ -1660,7 +1659,7 @@ const Ic = "_propertyItem_1r9fx_59", kc = "_propertyItem_icon_1r9fx_68", Sc = "_
1660
1659
  };
1661
1660
  function Pc(e) {
1662
1661
  var s, r, h;
1663
- const { data: t } = e, n = ht(), { engine: i } = N(), c = (t == null ? void 0 : t.origin) !== "system", a = (t == null ? void 0 : t.origin) !== "system";
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";
1664
1663
  function d() {
1665
1664
  const u = Li(t == null ? void 0 : t.id), _ = () => {
1666
1665
  var m;
@@ -1685,14 +1684,14 @@ function Pc(e) {
1685
1684
  }
1686
1685
  });
1687
1686
  }
1688
- async function o() {
1687
+ async function a() {
1689
1688
  const u = await i.component.getPackageSourceCode(t == null ? void 0 : t.id);
1690
1689
  if (!u) {
1691
- E.warn("源码不存在");
1690
+ A.warn("源码不存在");
1692
1691
  return;
1693
1692
  }
1694
1693
  const _ = `${t == null ? void 0 : t.name}.js`;
1695
- Jt(u, _);
1694
+ qt(u, _);
1696
1695
  }
1697
1696
  return /* @__PURE__ */ l(
1698
1697
  st,
@@ -1742,22 +1741,22 @@ function Pc(e) {
1742
1741
  de,
1743
1742
  {
1744
1743
  title: "删除",
1745
- className: $(
1744
+ className: R(
1746
1745
  J.propertyItem_icon,
1747
- !a && J.propertyItem_icon_disabled
1746
+ !o && J.propertyItem_icon_disabled
1748
1747
  ),
1749
- onClick: a ? d : void 0
1748
+ onClick: o ? d : void 0
1750
1749
  }
1751
1750
  ),
1752
1751
  /* @__PURE__ */ l(
1753
- Kn,
1752
+ Hn,
1754
1753
  {
1755
1754
  title: "下载到本地",
1756
- className: $(
1755
+ className: R(
1757
1756
  J.propertyItem_icon,
1758
1757
  !c && J.propertyItem_icon_disabled
1759
1758
  ),
1760
- onClick: a ? o : void 0
1759
+ onClick: o ? a : void 0
1761
1760
  }
1762
1761
  )
1763
1762
  ] })
@@ -1765,9 +1764,9 @@ function Pc(e) {
1765
1764
  }
1766
1765
  );
1767
1766
  }
1768
- const Mc = "_jsonEditor_13vbq_59", Bc = "_jsonEditor_render_13vbq_68", jc = "_jsonEditor_loading_13vbq_72", We = {
1769
- jsonEditor: Mc,
1770
- jsonEditor_render: Bc,
1767
+ const Bc = "_jsonEditor_13vbq_59", Mc = "_jsonEditor_render_13vbq_68", jc = "_jsonEditor_loading_13vbq_72", We = {
1768
+ jsonEditor: Bc,
1769
+ jsonEditor_render: Mc,
1771
1770
  jsonEditor_loading: jc
1772
1771
  };
1773
1772
  self.MonacoEnvironment = {
@@ -1788,9 +1787,9 @@ self.MonacoEnvironment = {
1788
1787
  }
1789
1788
  };
1790
1789
  function X(e) {
1791
- const t = B(null), n = B();
1792
- return w(() => {
1793
- var c, a;
1790
+ const t = j(null), n = j();
1791
+ return E(() => {
1792
+ var c, o;
1794
1793
  const i = Ni.editor.create(t.current, {
1795
1794
  theme: "vs-light",
1796
1795
  value: e == null ? void 0 : e.value,
@@ -1809,31 +1808,31 @@ function X(e) {
1809
1808
  },
1810
1809
  readOnlyMessage: {
1811
1810
  value: "禁止编辑",
1812
- ...(a = e == null ? void 0 : e.options) == null ? void 0 : a.readOnlyMessage
1811
+ ...(o = e == null ? void 0 : e.options) == null ? void 0 : o.readOnlyMessage
1813
1812
  }
1814
1813
  });
1815
1814
  return i.onDidChangeModelContent(() => {
1816
- var o;
1815
+ var a;
1817
1816
  const d = i.getValue();
1818
- (o = e == null ? void 0 : e.onChange) == null || o.call(e, d);
1817
+ (a = e == null ? void 0 : e.onChange) == null || a.call(e, d);
1819
1818
  }), n.current = i, () => {
1820
1819
  i.dispose();
1821
1820
  };
1822
1821
  }, [e == null ? void 0 : e.language]), _t(() => {
1823
- var c, a, d, o;
1822
+ var c, o, d, a;
1824
1823
  if (!(n != null && n.current)) {
1825
1824
  console.error("monaco-editor init failed.");
1826
1825
  return;
1827
1826
  }
1828
1827
  const i = `${(e == null ? void 0 : e.value) || ""}`;
1829
- i !== ((a = (c = n == null ? void 0 : n.current) == null ? void 0 : c.getValue) == null ? void 0 : a.call(c)) && ((o = (d = n.current) == null ? void 0 : d.setValue) == null || o.call(d, i));
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));
1830
1829
  }, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: We.jsonEditor, style: e == null ? void 0 : e.style, children: [
1831
1830
  /* @__PURE__ */ l("div", { ref: t, className: We.jsonEditor_render }),
1832
- (e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Kt, { style: { fontSize: 20 } }) })
1831
+ (e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Ht, { style: { fontSize: 20 } }) })
1833
1832
  ] });
1834
1833
  }
1835
- const zc = ue((e) => {
1836
- const { params: t } = e, [n] = M.useForm(), [i, c] = S(!1), a = B("");
1834
+ const Tc = ue((e) => {
1835
+ const { params: t } = e, [n] = M.useForm(), [i, c] = S(!1), o = j("");
1837
1836
  function d() {
1838
1837
  n.validateFields(["url"]).then((s) => {
1839
1838
  var r;
@@ -1841,21 +1840,21 @@ const zc = ue((e) => {
1841
1840
  var u, _;
1842
1841
  return (_ = (u = s == null ? void 0 : s.url) == null ? void 0 : u.startsWith) == null ? void 0 : _.call(u, h);
1843
1842
  })) {
1844
- E.error("地址格式不正确");
1843
+ A.error("地址格式不正确");
1845
1844
  return;
1846
1845
  }
1847
1846
  c(!0), (r = it(s == null ? void 0 : s.url)) == null || r.then((h) => {
1848
- c(!1), a.current = s == null ? void 0 : s.url, n.setFieldsValue({
1847
+ c(!1), o.current = s == null ? void 0 : s.url, n.setFieldsValue({
1849
1848
  content: h
1850
1849
  });
1851
1850
  });
1852
1851
  });
1853
1852
  }
1854
- async function o() {
1853
+ async function a() {
1855
1854
  var r, h;
1856
1855
  const s = n.getFieldValue("content");
1857
- s || E.warn("文本内容不能为空"), !(t != null && t.beforeOk && !await Promise.resolve((r = t == null ? void 0 : t.beforeOk) == null ? void 0 : r.call(t, s))) && ((h = e == null ? void 0 : e.onOk) == null || h.call(e, {
1858
- url: a.current,
1856
+ s || A.warn("文本内容不能为空"), !(t != null && t.beforeOk && !await Promise.resolve((r = t == null ? void 0 : t.beforeOk) == null ? void 0 : r.call(t, s))) && ((h = e == null ? void 0 : e.onOk) == null || h.call(e, {
1857
+ url: o.current,
1859
1858
  content: s
1860
1859
  }));
1861
1860
  }
@@ -1870,7 +1869,7 @@ const zc = ue((e) => {
1870
1869
  afterClose: e == null ? void 0 : e.afterClose,
1871
1870
  onCancel: e == null ? void 0 : e.onCancel,
1872
1871
  bodyStyle: { paddingBottom: 0 },
1873
- onOk: o,
1872
+ onOk: a,
1874
1873
  children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 2 }, children: [
1875
1874
  /* @__PURE__ */ l(M.Item, { label: "地址", name: "url", rules: [{ required: !0, message: "请输入地址" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
1876
1875
  /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(p, { size: "middle" }) }),
@@ -1880,15 +1879,15 @@ const zc = ue((e) => {
1880
1879
  ] })
1881
1880
  }
1882
1881
  );
1883
- }), Tc = [
1882
+ }), zc = [
1884
1883
  { key: "local", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "本地上传" }) },
1885
1884
  { key: "remote", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "远程导入" }) }
1886
1885
  ];
1887
1886
  function $c(e) {
1888
- const t = B(), n = B(""), i = zc({
1887
+ const t = j(), n = j(""), i = Tc({
1889
1888
  onOk({ url: s }) {
1890
1889
  if (!t.current) {
1891
- E.warn("package新增失败");
1890
+ A.warn("package新增失败");
1892
1891
  return;
1893
1892
  }
1894
1893
  t.current.origin = "remote", t.current.originData = s, c(t.current, n.current);
@@ -1896,54 +1895,54 @@ function $c(e) {
1896
1895
  });
1897
1896
  function c(s, r) {
1898
1897
  var h;
1899
- if (!s) return E.warn("不包含组件包");
1898
+ if (!s) return A.warn("不包含组件包");
1900
1899
  (h = e == null ? void 0 : e.onAdd) == null || h.call(e, s, r || "");
1901
1900
  }
1902
- function a(s, r) {
1901
+ function o(s, r) {
1903
1902
  var h;
1904
- if (!(s != null && s.length)) return E.warn("不包含组件包");
1903
+ if (!(s != null && s.length)) return A.warn("不包含组件包");
1905
1904
  (h = e == null ? void 0 : e.onAddSome) == null || h.call(e, s, r);
1906
1905
  }
1907
1906
  async function d(s) {
1908
- var C;
1907
+ var x;
1909
1908
  const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], y = [];
1910
- for (const v in _) {
1911
- if (!((C = v == null ? void 0 : v.endsWith) != null && C.call(v, ".js")))
1909
+ for (const b in _) {
1910
+ if (!((x = b == null ? void 0 : b.endsWith) != null && x.call(b, ".js")))
1912
1911
  continue;
1913
- const f = await _[v].async("text"), b = await ze(f);
1914
- b && (b.origin = "local", m.push(b), y.push(f));
1912
+ const f = await _[b].async("text"), v = await Te(f);
1913
+ v && (v.origin = "local", m.push(v), y.push(f));
1915
1914
  }
1916
1915
  return {
1917
1916
  pkgs: m,
1918
1917
  codes: y
1919
1918
  };
1920
1919
  }
1921
- async function o(s) {
1920
+ async function a(s) {
1922
1921
  let r = "";
1923
1922
  switch (s) {
1924
1923
  case "local":
1925
- const h = await ln({ accept: "text/javascript,application/zip" });
1924
+ const h = await nn({ accept: "text/javascript,application/zip" });
1926
1925
  if (!h)
1927
1926
  return;
1928
1927
  if (["application/x-zip-compressed", "application/zip"].includes(h == null ? void 0 : h.type)) {
1929
1928
  const { pkgs: u, codes: _ } = await d(h);
1930
- a(u, _);
1929
+ o(u, _);
1931
1930
  return;
1932
1931
  }
1933
1932
  if ((h == null ? void 0 : h.type) === "text/javascript") {
1934
- r = await cn(h);
1935
- const u = await ze(r);
1933
+ r = await ln(h);
1934
+ const u = await Te(r);
1936
1935
  if (!u)
1937
- return E.warn("文本内容必须为UMD或者AMD格式");
1936
+ return A.warn("文本内容必须为UMD或者AMD格式");
1938
1937
  u.origin = "local", c(u, r);
1939
1938
  return;
1940
1939
  }
1941
- E.warn("只能上传 .js 和 .zip 文件");
1940
+ A.warn("只能上传 .js 和 .zip 文件");
1942
1941
  break;
1943
1942
  case "remote":
1944
1943
  i.open({
1945
1944
  async beforeOk(u) {
1946
- return n.current = u, t.current = await ze(u), t.current || E.warn("文本内容必须为UMD或者AMD格式"), !!t.current;
1945
+ return n.current = u, t.current = await Te(u), t.current || A.warn("文本内容必须为UMD或者AMD格式"), !!t.current;
1947
1946
  }
1948
1947
  });
1949
1948
  break;
@@ -1954,9 +1953,9 @@ function $c(e) {
1954
1953
  {
1955
1954
  trigger: ["click"],
1956
1955
  menu: {
1957
- items: Tc,
1956
+ items: zc,
1958
1957
  onClick({ key: s }) {
1959
- o(s);
1958
+ a(s);
1960
1959
  }
1961
1960
  },
1962
1961
  children: /* @__PURE__ */ l(K, { size: "small", style: { fontSize: 12 }, type: "primary", children: e == null ? void 0 : e.children })
@@ -1980,9 +1979,9 @@ function Fc(e) {
1980
1979
  It(Pt, "测试包1.js");
1981
1980
  break;
1982
1981
  case "zip-demo":
1983
- const c = await it(Ot), a = await it(Pt), d = new ft();
1984
- d.file("测试包1.js", a), d.file("测试包2.js", c), d.generateAsync({ type: "blob" }).then(function(o) {
1985
- en(o, "组件包集合.zip");
1982
+ const c = await it(Ot), o = await it(Pt), d = new ft();
1983
+ d.file("测试包1.js", o), d.file("测试包2.js", c), d.generateAsync({ type: "blob" }).then(function(a) {
1984
+ pt(a, "组件包集合.zip");
1986
1985
  });
1987
1986
  break;
1988
1987
  case "all":
@@ -2004,16 +2003,16 @@ function Fc(e) {
2004
2003
  }
2005
2004
  ) });
2006
2005
  }
2007
- const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Mt = {
2006
+ const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Bt = {
2008
2007
  property: Hc,
2009
2008
  property_header: Kc
2010
2009
  };
2011
2010
  function Uc() {
2012
- var o;
2013
- const e = Yt(), { engine: t } = N(), { loading: n, run: i } = pt(
2011
+ var a;
2012
+ const e = Xt(), { engine: t } = N(), { loading: n, run: i } = Qt(
2014
2013
  async () => new Promise((s) => {
2015
2014
  setTimeout(() => {
2016
- E.success("刷新成功"), s();
2015
+ A.success("刷新成功"), s();
2017
2016
  }, 500);
2018
2017
  }),
2019
2018
  {
@@ -2026,7 +2025,7 @@ function Uc() {
2026
2025
  t.component.savePackageSourceCode(h[m], _);
2027
2026
  });
2028
2027
  }
2029
- function a(s, r) {
2028
+ function o(s, r) {
2030
2029
  t.component.unregisterPackage(s), t.componentNode.delete(r);
2031
2030
  }
2032
2031
  async function d() {
@@ -2039,16 +2038,16 @@ function Uc() {
2039
2038
  const y = e[m];
2040
2039
  h.file(`${y.name}.js`, _), u++;
2041
2040
  }), !u) {
2042
- E.warn("暂无组件包");
2041
+ A.warn("暂无组件包");
2043
2042
  return;
2044
2043
  }
2045
2044
  h.generateAsync({ type: "blob" }).then(function(_) {
2046
- en(_, "组件包集合.zip");
2045
+ pt(_, "组件包集合.zip");
2047
2046
  });
2048
2047
  });
2049
2048
  }
2050
- return /* @__PURE__ */ g("div", { className: Mt.property, children: [
2051
- /* @__PURE__ */ g("div", { className: Mt.property_header, children: [
2049
+ return /* @__PURE__ */ g("div", { className: Bt.property, children: [
2050
+ /* @__PURE__ */ g("div", { className: Bt.property_header, children: [
2052
2051
  /* @__PURE__ */ g(D, { children: [
2053
2052
  /* @__PURE__ */ l("b", { children: "资产列表" }),
2054
2053
  /* @__PURE__ */ l(
@@ -2057,7 +2056,7 @@ function Uc() {
2057
2056
  title: "刷新资产",
2058
2057
  className: "icon_clickable",
2059
2058
  onClick: () => !n && i(),
2060
- children: n ? /* @__PURE__ */ l(Kt, {}) : /* @__PURE__ */ l(Z, {})
2059
+ children: n ? /* @__PURE__ */ l(Ht, {}) : /* @__PURE__ */ l(Z, {})
2061
2060
  }
2062
2061
  )
2063
2062
  ] }),
@@ -2086,12 +2085,12 @@ function Uc() {
2086
2085
  ] })
2087
2086
  ] }),
2088
2087
  !e.length && /* @__PURE__ */ l(U, {}),
2089
- (o = e == null ? void 0 : e.map) == null ? void 0 : o.call(e, (s) => /* @__PURE__ */ l(
2088
+ (a = e == null ? void 0 : e.map) == null ? void 0 : a.call(e, (s) => /* @__PURE__ */ l(
2090
2089
  Pc,
2091
2090
  {
2092
2091
  data: s,
2093
2092
  onDelete: (r, h) => {
2094
- a(r, h);
2093
+ o(r, h);
2095
2094
  }
2096
2095
  },
2097
2096
  s.id
@@ -2107,8 +2106,8 @@ const qc = "_favorites_1mbr5_59", Jc = {
2107
2106
  favoriteItem_footer: Xc
2108
2107
  };
2109
2108
  function Yc(e) {
2110
- const { favorite: t } = e, n = B(null), i = B(null);
2111
- return sn(n, {
2109
+ const { favorite: t } = e, n = j(null), i = j(null);
2110
+ return rn(n, {
2112
2111
  type: "create-favorite",
2113
2112
  data: {
2114
2113
  favorite: t
@@ -2121,15 +2120,15 @@ function Yc(e) {
2121
2120
  /* @__PURE__ */ l("div", { className: ke.favoriteItem_head, children: /* @__PURE__ */ l(dt, {}) }),
2122
2121
  /* @__PURE__ */ l("div", { className: ke.favoriteItem_name, title: t.id, children: t.name }),
2123
2122
  /* @__PURE__ */ g("div", { className: ke.favoriteItem_footer, ref: i, children: [
2124
- /* @__PURE__ */ l(T, { title: "编辑", children: /* @__PURE__ */ l(Ut, { onClick: () => {
2123
+ /* @__PURE__ */ l($, { title: "编辑", children: /* @__PURE__ */ l(Kt, { onClick: () => {
2125
2124
  var c;
2126
2125
  return (c = e == null ? void 0 : e.onEdit) == null ? void 0 : c.call(e);
2127
2126
  } }) }),
2128
- /* @__PURE__ */ l(T, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
2127
+ /* @__PURE__ */ l($, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
2129
2128
  var c;
2130
2129
  return (c = e == null ? void 0 : e.onDelete) == null ? void 0 : c.call(e);
2131
2130
  } }) }),
2132
- /* @__PURE__ */ l(T, { title: "详情", children: /* @__PURE__ */ l(Un, { onClick: () => {
2131
+ /* @__PURE__ */ l($, { title: "详情", children: /* @__PURE__ */ l(Kn, { onClick: () => {
2133
2132
  var c;
2134
2133
  return (c = e == null ? void 0 : e.onDetail) == null ? void 0 : c.call(e);
2135
2134
  } }) })
@@ -2140,15 +2139,15 @@ const Zc = ue((e) => {
2140
2139
  var c;
2141
2140
  const [t] = M.useForm(), n = (c = e == null ? void 0 : e.params) == null ? void 0 : c.favorite;
2142
2141
  function i() {
2143
- t.validateFields().then((a) => {
2142
+ t.validateFields().then((o) => {
2144
2143
  var d;
2145
2144
  (d = e == null ? void 0 : e.onOk) == null || d.call(e, {
2146
2145
  ...n,
2147
- name: a == null ? void 0 : a.name
2146
+ name: o == null ? void 0 : o.name
2148
2147
  });
2149
2148
  });
2150
2149
  }
2151
- return w(() => {
2150
+ return E(() => {
2152
2151
  e != null && e.visible && t.setFieldsValue({
2153
2152
  name: n == null ? void 0 : n.name
2154
2153
  });
@@ -2173,7 +2172,7 @@ const Zc = ue((e) => {
2173
2172
  favoriteDetailDialog_componentNodes: pc,
2174
2173
  favoriteDetailDialog_item: ea
2175
2174
  }, ta = ue((e) => {
2176
- var i, c, a, d;
2175
+ var i, c, o, d;
2177
2176
  const { engine: t } = N(), n = (i = e == null ? void 0 : e.params) == null ? void 0 : i.favorite;
2178
2177
  return /* @__PURE__ */ g(
2179
2178
  re,
@@ -2202,8 +2201,8 @@ const Zc = ue((e) => {
2202
2201
  ),
2203
2202
  /* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_componentNodes, children: [
2204
2203
  !((c = n == null ? void 0 : n.children) != null && c.length) && /* @__PURE__ */ l(U, {}),
2205
- (d = (a = n == null ? void 0 : n.children) == null ? void 0 : a.map) == null ? void 0 : d.call(a, (o) => {
2206
- const s = t.component.get(o.cId);
2204
+ (d = (o = n == null ? void 0 : n.children) == null ? void 0 : o.map) == null ? void 0 : d.call(o, (a) => {
2205
+ const s = t.component.get(a.cId);
2207
2206
  return /* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_item, children: [
2208
2207
  /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2209
2208
  xe,
@@ -2212,8 +2211,8 @@ const Zc = ue((e) => {
2212
2211
  style: { maxWidth: "80%", maxHeight: "80%" }
2213
2212
  }
2214
2213
  ) }),
2215
- /* @__PURE__ */ l("span", { title: o.name, children: o.name })
2216
- ] }, o.id);
2214
+ /* @__PURE__ */ l("span", { title: a.name, children: a.name })
2215
+ ] }, a.id);
2217
2216
  })
2218
2217
  ] })
2219
2218
  ]
@@ -2222,32 +2221,32 @@ const Zc = ue((e) => {
2222
2221
  });
2223
2222
  function na() {
2224
2223
  const { engine: e } = N(), t = Pi(), n = ta(), i = Zc({
2225
- onOk(a) {
2226
- e.favorites.update(a.id, a);
2224
+ onOk(o) {
2225
+ e.favorites.update(o.id, o);
2227
2226
  }
2228
2227
  });
2229
- function c(a) {
2230
- e.favorites.delete(a);
2228
+ function c(o) {
2229
+ e.favorites.delete(o);
2231
2230
  }
2232
2231
  return /* @__PURE__ */ g("div", { className: Jc.favorites, children: [
2233
2232
  !(t != null && t.length) && /* @__PURE__ */ l(U, {}),
2234
- t.map((a) => /* @__PURE__ */ l(
2233
+ t.map((o) => /* @__PURE__ */ l(
2235
2234
  Yc,
2236
2235
  {
2237
- favorite: a,
2238
- onDelete: () => c(a),
2236
+ favorite: o,
2237
+ onDelete: () => c(o),
2239
2238
  onEdit: () => {
2240
2239
  i.open({
2241
- favorite: a
2240
+ favorite: o
2242
2241
  });
2243
2242
  },
2244
2243
  onDetail: () => {
2245
2244
  n.open({
2246
- favorite: a
2245
+ favorite: o
2247
2246
  });
2248
2247
  }
2249
2248
  },
2250
- a.id
2249
+ o.id
2251
2250
  ))
2252
2251
  ] });
2253
2252
  }
@@ -2257,18 +2256,18 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
2257
2256
  pages_body: ca
2258
2257
  }, aa = ue((e) => {
2259
2258
  const { params: t } = e, [n] = M.useForm();
2260
- function i(a) {
2259
+ function i(o) {
2261
2260
  return {
2262
- name: a,
2261
+ name: o,
2263
2262
  id: ut(),
2264
2263
  parentId: t == null ? void 0 : t.parentId
2265
2264
  };
2266
2265
  }
2267
2266
  function c() {
2268
- n.validateFields().then((a) => {
2267
+ n.validateFields().then((o) => {
2269
2268
  var d;
2270
2269
  (d = e == null ? void 0 : e.onOk) == null || d.call(e, {
2271
- page: i(a.name),
2270
+ page: i(o.name),
2272
2271
  parentId: t == null ? void 0 : t.parentId
2273
2272
  });
2274
2273
  });
@@ -2294,71 +2293,71 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
2294
2293
  );
2295
2294
  });
2296
2295
  function oa() {
2297
- const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(), h = aa({
2298
- onOk({ page: v, parentId: I }) {
2299
- if (e.page.insert(v, I), Re(v.id), I) {
2296
+ const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [o, d, a] = oi([]), s = wi(), r = Ei(), h = aa({
2297
+ onOk({ page: b, parentId: I }) {
2298
+ if (e.page.insert(b, I), Re(b.id), I) {
2300
2299
  const f = Array.from(new Set(t).add(I));
2301
2300
  u(f);
2302
2301
  }
2303
2302
  }
2304
2303
  });
2305
- function u(v) {
2306
- n(v), e.config.setConfigSilently({ expandedPageIds: v });
2304
+ function u(b) {
2305
+ n(b), e.config.setConfigSilently({ expandedPageIds: b });
2307
2306
  }
2308
- function _(v) {
2307
+ function _(b) {
2309
2308
  var I;
2310
- return ((I = v == null ? void 0 : v.reduce) == null ? void 0 : I.call(v, (f, b) => f.concat([b.key, ..._(b == null ? void 0 : b.children)]), [])) || [];
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)]), [])) || [];
2311
2310
  }
2312
- function m(v) {
2311
+ function m(b) {
2313
2312
  h.open({
2314
- parentId: v.id,
2315
- parentName: v.name
2313
+ parentId: b.id,
2314
+ parentName: b.name
2316
2315
  });
2317
2316
  }
2318
- function y(v, I = {}) {
2319
- var b, x, L, j, R, q, V;
2320
- const f = [v.id, ..._(I[v.id].children)];
2321
- if (((b = o.current) == null ? void 0 : b.length) === 1 && (f != null && f.includes((L = (x = o.current) == null ? void 0 : x[0]) == null ? void 0 : L.key))) {
2322
- E.warn("至少保留一个顶层页");
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))) {
2321
+ A.warn("至少保留一个顶层页");
2323
2322
  return;
2324
2323
  }
2325
2324
  if (f.includes(e.config.getCurrentPage())) {
2326
- let Be = (R = (j = o.current) == null ? void 0 : j[0]) == null ? void 0 : R.key;
2327
- f.includes(Be) && (Be = (V = (q = o.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Be);
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);
2328
2327
  }
2329
2328
  e.page.delete(f);
2330
2329
  }
2331
- function C(v, I = {}) {
2330
+ function x(b, I = {}) {
2332
2331
  const f = [];
2333
- return v.forEach((b) => {
2334
- var j, R, q;
2335
- const x = I[b.id], L = I[b.id] = {
2336
- key: (x == null ? void 0 : x.key) || b.id,
2337
- title: (x == null ? void 0 : x.title) || /* @__PURE__ */ g("span", { children: [
2338
- /* @__PURE__ */ l("span", { children: b.name }),
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 }),
2339
2338
  /* @__PURE__ */ g("span", { style: { fontSize: 12 }, onClick: (V) => V.stopPropagation(), children: [
2340
- /* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(b), children: "新增" }),
2341
- /* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y(b, I), children: "删除" })
2339
+ /* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(v), children: "新增" }),
2340
+ /* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => y(v, I), children: "删除" })
2342
2341
  ] })
2343
2342
  ] }),
2344
- children: (x == null ? void 0 : x.children) || []
2343
+ children: (C == null ? void 0 : C.children) || []
2345
2344
  };
2346
- if (b != null && b.parentId) {
2347
- (q = (R = I[j = b == null ? void 0 : b.parentId] || (I[j] = {
2345
+ if (v != null && v.parentId) {
2346
+ (q = (T = I[P = v == null ? void 0 : v.parentId] || (I[P] = {
2348
2347
  key: "",
2349
2348
  title: "",
2350
2349
  children: []
2351
- })) == null ? void 0 : R.children) == null || q.push(L);
2350
+ })) == null ? void 0 : T.children) == null || q.push(w);
2352
2351
  return;
2353
2352
  }
2354
- f.push(L);
2353
+ f.push(w);
2355
2354
  }), f;
2356
2355
  }
2357
- return w(() => {
2356
+ return E(() => {
2358
2357
  n(e.config.getConfig().expandedPageIds || []);
2359
- }, []), w(() => {
2360
- d(C(s));
2361
- }, [s]), w(() => {
2358
+ }, []), E(() => {
2359
+ d(x(s));
2360
+ }, [s]), E(() => {
2362
2361
  c([r]);
2363
2362
  }, [r]), /* @__PURE__ */ g("div", { className: Ge.pages, children: [
2364
2363
  /* @__PURE__ */ g("div", { className: Ge.pages_head, children: [
@@ -2382,13 +2381,13 @@ function oa() {
2382
2381
  showIcon: !0,
2383
2382
  multiple: !1,
2384
2383
  defaultExpandAll: !0,
2385
- icon: /* @__PURE__ */ l(qn, {}),
2386
- treeData: a,
2384
+ icon: /* @__PURE__ */ l(Un, {}),
2385
+ treeData: o,
2387
2386
  selectedKeys: i,
2388
2387
  expandedKeys: t,
2389
2388
  onExpand: u,
2390
- onSelect: (v) => {
2391
- v.length && Re(v == null ? void 0 : v[0]);
2389
+ onSelect: (b) => {
2390
+ b.length && Re(b == null ? void 0 : b[0]);
2392
2391
  }
2393
2392
  }
2394
2393
  ) })
@@ -2402,8 +2401,8 @@ const da = "_history_zo6ip_59", ra = "_history_head_zo6ip_71", sa = "_history_bo
2402
2401
  history_item_gray: ha
2403
2402
  };
2404
2403
  function ga() {
2405
- var c, a, d, o;
2406
- const { engine: e } = N(), t = an(), n = (c = t.current) == null ? void 0 : c.stepId;
2404
+ var c, o, d, a;
2405
+ const { engine: e } = N(), t = cn(), n = (c = t.current) == null ? void 0 : c.stepId;
2407
2406
  function i(s) {
2408
2407
  e.history.isPass(s) && n === s ? bt() : Qi(s);
2409
2408
  }
@@ -2413,10 +2412,10 @@ function ga() {
2413
2412
  t == null ? void 0 : t.maxSize
2414
2413
  ] }) }),
2415
2414
  /* @__PURE__ */ g("div", { className: _e.history_body, children: [
2416
- (d = (a = t == null ? void 0 : t.list) == null ? void 0 : a.map) == null ? void 0 : d.call(a, (s) => /* @__PURE__ */ l(
2415
+ (d = (o = t == null ? void 0 : t.list) == null ? void 0 : o.map) == null ? void 0 : d.call(o, (s) => /* @__PURE__ */ l(
2417
2416
  "div",
2418
2417
  {
2419
- className: $(_e.history_item, !s.isPass && _e.history_item_gray),
2418
+ className: R(_e.history_item, !s.isPass && _e.history_item_gray),
2420
2419
  onClick: () => {
2421
2420
  i(s.stepId);
2422
2421
  },
@@ -2424,37 +2423,37 @@ function ga() {
2424
2423
  },
2425
2424
  s.stepId
2426
2425
  )),
2427
- !((o = t == null ? void 0 : t.list) != null && o.length) && /* @__PURE__ */ l(U, {})
2426
+ !((a = t == null ? void 0 : t.list) != null && a.length) && /* @__PURE__ */ l(U, {})
2428
2427
  ] })
2429
2428
  ] });
2430
2429
  }
2431
2430
  function _a() {
2432
- const { engine: e } = N(), [t, n] = se(), i = A(() => [
2431
+ const { engine: e } = N(), [t, n] = se(), i = L(() => [
2433
2432
  {
2434
2433
  key: "library",
2435
2434
  domId: "rbs-library",
2436
- icon: /* @__PURE__ */ l(Jn, {}),
2435
+ icon: /* @__PURE__ */ l(qn, {}),
2437
2436
  title: t("menu.bar.library"),
2438
2437
  children: /* @__PURE__ */ l(ql, {})
2439
2438
  },
2440
2439
  {
2441
2440
  key: "pages",
2442
2441
  domId: "rbs-pages",
2443
- icon: /* @__PURE__ */ l(Wn, {}),
2442
+ icon: /* @__PURE__ */ l(Jn, {}),
2444
2443
  title: t("menu.bar.pages"),
2445
2444
  children: /* @__PURE__ */ l(oa, {})
2446
2445
  },
2447
2446
  {
2448
2447
  key: "componentNodes",
2449
2448
  domId: "rbs-componentNodes",
2450
- icon: /* @__PURE__ */ l(Vn, {}),
2449
+ icon: /* @__PURE__ */ l(Wn, {}),
2451
2450
  title: t("menu.bar.componentNodes"),
2452
2451
  children: /* @__PURE__ */ l(yc, {})
2453
2452
  },
2454
2453
  {
2455
2454
  key: "property",
2456
2455
  domId: "rbs-property",
2457
- icon: /* @__PURE__ */ l(Gn, {}),
2456
+ icon: /* @__PURE__ */ l(Vn, {}),
2458
2457
  title: t("menu.bar.property"),
2459
2458
  children: /* @__PURE__ */ l(Uc, {})
2460
2459
  },
@@ -2468,31 +2467,31 @@ function _a() {
2468
2467
  {
2469
2468
  key: "history",
2470
2469
  domId: "rbs-history",
2471
- icon: /* @__PURE__ */ l(Xn, {}),
2470
+ icon: /* @__PURE__ */ l(Gn, {}),
2472
2471
  title: t("menu.bar.history"),
2473
2472
  children: /* @__PURE__ */ l(ga, {})
2474
2473
  }
2475
- ], [n.language]), c = Ee((r) => r.currentMenu), [a, d] = S(""), o = A(() => {
2474
+ ], [n.language]), c = Ee((r) => r.currentMenu), [o, d] = S(""), a = L(() => {
2476
2475
  var r;
2477
- return (r = i.find((h) => h.key === a)) == null ? void 0 : r.children;
2478
- }, [a]);
2476
+ return (r = i.find((h) => h.key === o)) == null ? void 0 : r.children;
2477
+ }, [o]);
2479
2478
  function s(r) {
2480
2479
  d(r), e.config.setConfigSilently({
2481
2480
  currentMenu: r
2482
2481
  });
2483
2482
  }
2484
- return w(() => {
2483
+ return E(() => {
2485
2484
  const { currentMenu: r } = e.config.getConfig(), h = i.find((u) => u.key === r);
2486
2485
  d((h == null ? void 0 : h.key) || i[0].key);
2487
2486
  }, [c]), /* @__PURE__ */ g("div", { className: He.menu, children: [
2488
- /* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value: a, list: i, onChange: s }) }),
2489
- /* @__PURE__ */ l("div", { className: He.menu_main, children: o })
2487
+ /* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value: o, list: i, onChange: s }) }),
2488
+ /* @__PURE__ */ l("div", { className: He.menu_main, children: a })
2490
2489
  ] });
2491
2490
  }
2492
- const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Bt = {
2491
+ const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Mt = {
2493
2492
  editor: ma,
2494
2493
  editor_render: fa
2495
- }, 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", Ma = "_dragPoint_top_right_1kt3d_136", Ba = "_dragPoint_bottom_1kt3d_149", ja = "_dragPoint_bottom_left_1kt3d_162", za = "_dragPoint_bottom_right_1kt3d_175", Ta = "_dragPoint_left_1kt3d_188", $a = "_dragPoint_right_1kt3d_201", ie = {
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 = {
2496
2495
  flexCenter: ya,
2497
2496
  "theme-text": "_theme-text_1kt3d_34",
2498
2497
  "theme-color": "_theme-color_1kt3d_38",
@@ -2513,11 +2512,11 @@ const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Bt = {
2513
2512
  p_vertical_mid: Da,
2514
2513
  dragPoint_top: Oa,
2515
2514
  dragPoint_top_left: Pa,
2516
- dragPoint_top_right: Ma,
2517
- dragPoint_bottom: Ba,
2515
+ dragPoint_top_right: Ba,
2516
+ dragPoint_bottom: Ma,
2518
2517
  dragPoint_bottom_left: ja,
2519
- dragPoint_bottom_right: za,
2520
- dragPoint_left: Ta,
2518
+ dragPoint_bottom_right: Ta,
2519
+ dragPoint_left: za,
2521
2520
  dragPoint_right: $a
2522
2521
  }, Ra = [
2523
2522
  "top",
@@ -2548,13 +2547,13 @@ function Ha(e, t, n) {
2548
2547
  function c() {
2549
2548
  i.dh = -n, i.dy = n;
2550
2549
  }
2551
- function a() {
2550
+ function o() {
2552
2551
  i.dw = -t, i.dx = t;
2553
2552
  }
2554
2553
  function d() {
2555
2554
  i.dh = n;
2556
2555
  }
2557
- function o() {
2556
+ function a() {
2558
2557
  i.dw = t;
2559
2558
  }
2560
2559
  switch (e) {
@@ -2562,25 +2561,25 @@ function Ha(e, t, n) {
2562
2561
  c();
2563
2562
  break;
2564
2563
  case "top_left":
2565
- c(), a();
2564
+ c(), o();
2566
2565
  break;
2567
2566
  case "top_right":
2568
- c(), o();
2567
+ c(), a();
2569
2568
  break;
2570
2569
  case "bottom":
2571
2570
  d();
2572
2571
  break;
2573
2572
  case "bottom_left":
2574
- d(), a();
2573
+ d(), o();
2575
2574
  break;
2576
2575
  case "bottom_right":
2577
- d(), o();
2576
+ d(), a();
2578
2577
  break;
2579
2578
  case "left":
2580
- a();
2579
+ o();
2581
2580
  break;
2582
2581
  case "right":
2583
- o();
2582
+ a();
2584
2583
  break;
2585
2584
  }
2586
2585
  return i;
@@ -2603,11 +2602,11 @@ function Ka(e, t, n) {
2603
2602
  height: e.height
2604
2603
  }, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(Fa[n]);
2605
2604
  },
2606
- onMove(a, d) {
2607
- const o = Ha(n, a, d), s = i.width + o.dw, r = i.height + o.dh;
2605
+ onMove(o, d) {
2606
+ const a = Ha(n, o, d), s = i.width + a.dw, r = i.height + a.dh;
2608
2607
  s < 0 || r < 0 || c.componentNode.update(e.id, {
2609
- x: Math.round(i.x + o.dx),
2610
- y: Math.round(i.y + o.dy),
2608
+ x: Math.round(i.x + a.dx),
2609
+ y: Math.round(i.y + a.dy),
2611
2610
  height: Math.round(Math.max(r, 0)),
2612
2611
  width: Math.round(Math.max(s, 0))
2613
2612
  });
@@ -2617,45 +2616,45 @@ function Ka(e, t, n) {
2617
2616
  }
2618
2617
  };
2619
2618
  }
2620
- const Ua = Cn((e, t) => {
2621
- const { componentNode: n } = e, i = B(null), [c, a] = S(!1), d = Ee((o) => o.scale);
2622
- return xn(t, () => ({
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, () => ({
2623
2622
  // 经过实例
2624
2623
  handleHover() {
2625
- var o, s, r;
2626
- (r = (s = (o = i.current) == null ? void 0 : o.classList) == null ? void 0 : s.add) == null || r.call(s, ie.moveItem_box_hover);
2624
+ var a, s, r;
2625
+ (r = (s = (a = i.current) == null ? void 0 : a.classList) == null ? void 0 : s.add) == null || r.call(s, ie.moveItem_box_hover);
2627
2626
  },
2628
2627
  // 离开实例
2629
2628
  handleUnHover() {
2630
- var o, s, r;
2631
- (r = (s = (o = i.current) == null ? void 0 : o.classList) == null ? void 0 : s.remove) == null || r.call(s, ie.moveItem_box_hover);
2629
+ var a, s, r;
2630
+ (r = (s = (a = i.current) == null ? void 0 : a.classList) == null ? void 0 : s.remove) == null || r.call(s, ie.moveItem_box_hover);
2632
2631
  },
2633
2632
  // 选中实例样式
2634
2633
  handleSelected() {
2635
- a(!0);
2634
+ o(!0);
2636
2635
  },
2637
2636
  // 取消选中实例样式
2638
2637
  handleUnSelected() {
2639
- a(!1);
2638
+ o(!1);
2640
2639
  }
2641
- })), A(() => /* @__PURE__ */ l(
2640
+ })), L(() => /* @__PURE__ */ l(
2642
2641
  "div",
2643
2642
  {
2644
2643
  [`data-${oe.componentNodeId}`]: n.id,
2645
2644
  ref: i,
2646
- className: $(
2645
+ className: R(
2647
2646
  ie.moveItem_box,
2648
2647
  c && ie.moveItem_box_selected,
2649
2648
  n.lock && ie.moveItem_box_lock
2650
2649
  ),
2651
- children: c && !n.lock && Ra.map((o) => /* @__PURE__ */ l(
2650
+ children: c && !n.lock && Ra.map((a) => /* @__PURE__ */ l(
2652
2651
  "div",
2653
2652
  {
2654
2653
  style: { transform: d < 1 ? `scale(${1 / d})` : void 0 },
2655
- className: ie[`dragPoint_${o}`],
2656
- [`data-${oe.dragDirection}`]: o
2654
+ className: ie[`dragPoint_${a}`],
2655
+ [`data-${oe.dragDirection}`]: a
2657
2656
  },
2658
- o
2657
+ a
2659
2658
  ))
2660
2659
  }
2661
2660
  ), [n.lock, c, d]);
@@ -2664,18 +2663,18 @@ function qa(e) {
2664
2663
  var d;
2665
2664
  const { engine: t } = N(), [n, i] = S(
2666
2665
  e == null ? void 0 : e.componentNode
2667
- ), c = n ? (n == null ? void 0 : n.show) ?? !0 : !1, a = A(
2666
+ ), c = n ? (n == null ? void 0 : n.show) ?? !0 : !1, o = L(
2668
2667
  () => t.component.get(e == null ? void 0 : e.componentNode.cId),
2669
2668
  [(d = e == null ? void 0 : e.componentNode) == null ? void 0 : d.cId, e == null ? void 0 : e.packages]
2670
2669
  );
2671
- return tn(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: o }) => {
2672
- i({ ...o });
2670
+ return en(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: a }) => {
2671
+ i({ ...a });
2673
2672
  })), _t(() => {
2674
2673
  i(e == null ? void 0 : e.componentNode);
2675
- }, [e == null ? void 0 : e.componentNode]), a && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: a }) : /* @__PURE__ */ l(W, {});
2674
+ }, [e == null ? void 0 : e.componentNode]), o && c ? /* @__PURE__ */ l(Ja, { componentNode: n, component: o }) : /* @__PURE__ */ l(W, {});
2676
2675
  }
2677
2676
  function Ja(e) {
2678
- const { component: t, componentNode: n } = e, i = nn(n), c = B(null), { dataSource: a, requestInstance: d } = gi(n), o = _i(n.id), s = mi(n.id), r = B(null), h = fi({
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({
2679
2678
  id: n.id,
2680
2679
  // 经过实例
2681
2680
  handleHover() {
@@ -2736,12 +2735,12 @@ function Ja(e) {
2736
2735
  h.handleUnHover();
2737
2736
  },
2738
2737
  children: [
2739
- /* @__PURE__ */ l(Tt, { children: /* @__PURE__ */ l(
2738
+ /* @__PURE__ */ l(zt, { children: /* @__PURE__ */ l(
2740
2739
  t.component,
2741
2740
  {
2742
2741
  useExpose: s,
2743
- handleTrigger: o,
2744
- dataSource: a,
2742
+ handleTrigger: a,
2743
+ dataSource: o,
2745
2744
  options: n.options,
2746
2745
  width: n.width,
2747
2746
  height: n.height,
@@ -2762,8 +2761,8 @@ function Va(e, t) {
2762
2761
  if (!c || e.lock && n && !i)
2763
2762
  return;
2764
2763
  t.stopPropagation();
2765
- const a = Zt(t);
2766
- if (n || a) {
2764
+ const o = Yt(t);
2765
+ if (n || o) {
2767
2766
  if (c.instance.isSelected(e.id)) {
2768
2767
  i && c.instance.unselect(e.id);
2769
2768
  return;
@@ -2781,13 +2780,13 @@ function Ga(e) {
2781
2780
  if (!n)
2782
2781
  throw new Error("dom must be set.");
2783
2782
  let i = [], c = !1;
2784
- const a = n.style.pointerEvents;
2785
- let d = !1, o;
2783
+ const o = n.style.pointerEvents;
2784
+ let d = !1, a;
2786
2785
  return {
2787
2786
  onStart() {
2788
2787
  return ae.set("move"), setTimeout(() => {
2789
2788
  let { list: r, showCount: h } = Za();
2790
- i = r, c = h < 300, o = Gt(
2789
+ i = r, c = h < 300, a = Vt(
2791
2790
  (u, _) => {
2792
2791
  Xa(i, c, u, _);
2793
2792
  },
@@ -2799,30 +2798,30 @@ function Ga(e) {
2799
2798
  }), !1;
2800
2799
  },
2801
2800
  onMove(r, h) {
2802
- d || (n.style.pointerEvents = "none", d = !0), o == null || o(r, h);
2801
+ d || (n.style.pointerEvents = "none", d = !0), a == null || a(r, h);
2803
2802
  },
2804
2803
  onEnd(r, h) {
2805
- ae.revoke(), d && (n.style.pointerEvents = a, Ya(i, c, r, h), i != null && i.length && O("移动组件"), d = !1, o = void 0);
2804
+ ae.revoke(), d && (n.style.pointerEvents = o, Ya(i, c, r, h), i != null && i.length && O("移动组件"), d = !1, a = void 0);
2806
2805
  }
2807
2806
  };
2808
2807
  }
2809
2808
  function Xa(e, t, n, i) {
2810
2809
  e.forEach((c) => {
2811
2810
  if (!c.show) return;
2812
- const a = c.containerDom;
2811
+ const o = c.containerDom;
2813
2812
  if (t)
2814
- a.style.transform = `translate3d(${n}px,${i}px, 0)`;
2813
+ o.style.transform = `translate3d(${n}px,${i}px, 0)`;
2815
2814
  else {
2816
2815
  const d = c.componentNode;
2817
- a.style.left = `${d.x + n}px`, a.style.top = `${d.y + i}px`;
2816
+ o.style.left = `${d.x + n}px`, o.style.top = `${d.y + i}px`;
2818
2817
  }
2819
2818
  });
2820
2819
  }
2821
2820
  function Ya(e, t, n, i) {
2822
2821
  const c = k.getActiveEngine();
2823
- c && e.forEach((a) => {
2824
- a != null && a.show && t && a.containerDom.style.removeProperty("transform");
2825
- const d = a == null ? void 0 : a.componentNode;
2822
+ c && e.forEach((o) => {
2823
+ o != null && o.show && t && o.containerDom.style.removeProperty("transform");
2824
+ const d = o == null ? void 0 : o.componentNode;
2826
2825
  d && c.componentNode.update(d.id, {
2827
2826
  x: Math.round(n + ((d == null ? void 0 : d.x) || 0)),
2828
2827
  y: Math.round(i + ((d == null ? void 0 : d.y) || 0))
@@ -2833,16 +2832,16 @@ function Za() {
2833
2832
  const e = k.getActiveEngine();
2834
2833
  return e ? Oe().reduce(
2835
2834
  (n, i) => {
2836
- var d, o, s, r;
2835
+ var d, a, s, r;
2837
2836
  const c = i.show ?? !0;
2838
2837
  c && n.showCount++;
2839
- const a = {
2838
+ const o = {
2840
2839
  id: i.id,
2841
2840
  componentNode: i,
2842
2841
  show: c,
2843
- containerDom: (r = (s = (o = (d = e.instance) == null ? void 0 : d.get) == null ? void 0 : o.call(d, i.id)) == null ? void 0 : s.getContainerDom) == null ? void 0 : r.call(s)
2842
+ containerDom: (r = (s = (a = (d = e.instance) == null ? void 0 : d.get) == null ? void 0 : a.call(d, i.id)) == null ? void 0 : s.getContainerDom) == null ? void 0 : r.call(s)
2844
2843
  };
2845
- return n.list.push(a), n;
2844
+ return n.list.push(o), n;
2846
2845
  },
2847
2846
  {
2848
2847
  showCount: 0,
@@ -2855,33 +2854,33 @@ function Za() {
2855
2854
  }
2856
2855
  const Qa = "_rangeBox_12c3t_59", pa = {
2857
2856
  rangeBox: Qa
2858
- }, jt = Gt((e, t) => {
2857
+ }, jt = Vt((e, t) => {
2859
2858
  const n = k.getActiveEngine();
2860
2859
  if (!n) return;
2861
- const i = n.componentNode.getAll().reduce((c, a) => {
2860
+ const i = n.componentNode.getAll().reduce((c, o) => {
2862
2861
  const d = {
2863
- x1: a.x,
2864
- y1: a.y,
2865
- x2: a.x + a.width,
2866
- y2: a.y + a.height
2867
- }, o = {
2862
+ x1: o.x,
2863
+ y1: o.y,
2864
+ x2: o.x + o.width,
2865
+ y2: o.y + o.height
2866
+ }, a = {
2868
2867
  x1: e.x,
2869
2868
  y1: e.y,
2870
2869
  x2: e.x + e.width,
2871
2870
  y2: e.y + e.height
2872
2871
  };
2873
- return ki(d, o) && (!a.lock || a.lock && Pe("shift")) && c.push(a.id), c;
2872
+ return ki(d, a) && (!o.lock || o.lock && Pe("shift")) && c.push(o.id), c;
2874
2873
  }, []);
2875
2874
  n.instance.select(i, !0), t == null || t(i);
2876
2875
  }, 100);
2877
2876
  let F;
2878
2877
  function eo(e) {
2879
2878
  let t = { x: 0, y: 0 }, n = 1;
2880
- function i(a = 0, d = 0) {
2881
- const o = a * n, s = d * n, r = t.x + o, h = t.y + s, u = {
2879
+ function i(o = 0, d = 0) {
2880
+ const a = o * n, s = d * n, r = t.x + a, h = t.y + s, u = {
2882
2881
  x: t.x,
2883
2882
  y: t.y,
2884
- width: Math.abs(a),
2883
+ width: Math.abs(o),
2885
2884
  height: Math.abs(d)
2886
2885
  };
2887
2886
  return r < u.x && (u.x = r), h < u.y && (u.y = h), u.x /= n, u.y /= n, u;
@@ -2890,25 +2889,25 @@ function eo(e) {
2890
2889
  F && (F == null || F.remove(), F = void 0);
2891
2890
  }
2892
2891
  return {
2893
- onStart(a, d, o) {
2892
+ onStart(o, d, a) {
2894
2893
  const s = k.getActiveEngine();
2895
2894
  if (!s)
2896
2895
  return;
2897
2896
  c();
2898
- const { x: r = 0, y: h = 0 } = o || {};
2897
+ const { x: r = 0, y: h = 0 } = a || {};
2899
2898
  n = s.config.getConfig().scale;
2900
2899
  const u = e.getBoundingClientRect();
2901
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");
2902
2901
  },
2903
- onMove(a, d) {
2902
+ onMove(o, d) {
2904
2903
  if (!F) return;
2905
- const o = i(a, d);
2906
- F.style.top = `${o.y}px`, F.style.left = `${o.x}px`, F.style.width = `${o.width}px`, F.style.height = `${o.height}px`, F.style.borderWidth = "1px", jt(o);
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);
2907
2906
  },
2908
- onEnd(a, d) {
2907
+ onEnd(o, d) {
2909
2908
  c(), ae.revoke();
2910
- const o = i(a, d);
2911
- (o.width || o.height) && jt(o, (s) => {
2909
+ const a = i(o, d);
2910
+ (a.width || a.height) && jt(a, (s) => {
2912
2911
  s.length && O("范围选中组件");
2913
2912
  });
2914
2913
  }
@@ -2919,16 +2918,16 @@ function to(e, t) {
2919
2918
  onEnd(n, i, c) {
2920
2919
  setTimeout(() => {
2921
2920
  var u;
2922
- const a = k.getActiveEngine();
2923
- if (!a)
2921
+ const o = k.getActiveEngine();
2922
+ if (!o)
2924
2923
  return;
2925
- const d = a.config.getConfig().scale, o = e.getComponentNode(), s = e.getContainerDom();
2926
- if (!o || o != null && o.lock || !s)
2924
+ const d = o.config.getConfig().scale, a = e.getComponentNode(), s = e.getContainerDom();
2925
+ if (!a || a != null && a.lock || !s)
2927
2926
  return;
2928
- const r = ((u = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : u.call(s)) || { x: 0, y: 0 }, h = io(o, {
2929
- x: (c.x - r.x) / d + o.x,
2927
+ const r = ((u = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : u.call(s)) || { x: 0, y: 0 }, h = io(a, {
2928
+ x: (c.x - r.x) / d + a.x,
2930
2929
  // 鼠标在编辑器上的虚拟坐标
2931
- y: (c.y - r.y) / d + o.y
2930
+ y: (c.y - r.y) / d + a.y
2932
2931
  });
2933
2932
  t == null || t(h);
2934
2933
  });
@@ -2939,13 +2938,13 @@ function no(e, t) {
2939
2938
  const n = k.getActiveEngine();
2940
2939
  if (!n)
2941
2940
  return;
2942
- const i = n.componentNode.getAll().reduce((d, o) => {
2941
+ const i = n.componentNode.getAll().reduce((d, a) => {
2943
2942
  var s;
2944
- return (o.show ?? !0) && o.category === "layout" && // layout类组件
2945
- o.id !== e.id && // 不能拖拽到自身(如果自身拖拽组件是layout类型时)
2946
- Si(t, n.componentNode.getCoordinate(o)) && (d[s = `${o.level}`] || (d[s] = [])).push(o), d;
2947
- }, {}), c = Object.values(i), a = c[c.length - 1];
2948
- return a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
2943
+ return (a.show ?? !0) && a.category === "layout" && // layout类组件
2944
+ a.id !== e.id && // 不能拖拽到自身(如果自身拖拽组件是layout类型时)
2945
+ Si(t, n.componentNode.getCoordinate(a)) && (d[s = `${a.level}`] || (d[s] = [])).push(a), d;
2946
+ }, {}), c = Object.values(i), o = c[c.length - 1];
2947
+ return o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1];
2949
2948
  }
2950
2949
  function io(e, t) {
2951
2950
  const n = k.getActiveEngine();
@@ -2956,49 +2955,49 @@ function io(e, t) {
2956
2955
  y: t.y
2957
2956
  });
2958
2957
  if (i) {
2959
- const a = i == null ? void 0 : i.currentPanelId;
2960
- if (!a || n.componentNode.isInPanel(a, e))
2958
+ const o = i == null ? void 0 : i.currentPanelId;
2959
+ if (!o || n.componentNode.isInPanel(o, e))
2961
2960
  return;
2962
- const d = n.componentNode.getPanelName(a) || "目标";
2961
+ const d = n.componentNode.getPanelName(o) || "目标";
2963
2962
  return kt({
2964
2963
  title: "移入提醒",
2965
2964
  content: `确定放入面板“${d}”?`,
2966
- onOk(o) {
2965
+ onOk(a) {
2967
2966
  n.instance.getAllSelected().forEach((s) => {
2968
2967
  const r = n.componentNode.get(s.id);
2969
- n.componentNode.insertPanel(a, r);
2970
- }), n.instance.select(i.id, !0), O(`移入面板 “${d}”`), o();
2968
+ n.componentNode.insertPanel(o, r);
2969
+ }), n.instance.select(i.id, !0), O(`移入面板 “${d}”`), a();
2971
2970
  }
2972
2971
  });
2973
2972
  }
2974
2973
  const c = e.panelId;
2975
2974
  if (c) {
2976
- const a = n.componentNode.getPanelName(c) || "目标";
2975
+ const o = n.componentNode.getPanelName(c) || "目标";
2977
2976
  return kt({
2978
2977
  title: "移出提醒",
2979
- content: `是否移出面板“${a}”?`,
2978
+ content: `是否移出面板“${o}”?`,
2980
2979
  onOk(d) {
2981
- n.instance.getAllSelected().forEach((o) => {
2982
- const s = n.componentNode.get(o.id);
2983
- n.componentNode.removeFromPanel(s), O(`移出面板 “${a}”`);
2980
+ n.instance.getAllSelected().forEach((a) => {
2981
+ const s = n.componentNode.get(a.id);
2982
+ n.componentNode.removeFromPanel(s), O(`移出面板 “${o}”`);
2984
2983
  }), d();
2985
2984
  }
2986
2985
  });
2987
2986
  }
2988
2987
  }
2989
2988
  function lo(e) {
2990
- const t = B([]), { engine: n } = N();
2989
+ const t = j([]), { engine: n } = N();
2991
2990
  function i() {
2992
- var c, a;
2993
- t != null && t.current.length && ((a = (c = t == null ? void 0 : t.current) == null ? void 0 : c.forEach) == null || a.call(c, (d) => d == null ? void 0 : d()), t.current = []);
2991
+ var c, o;
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 = []);
2994
2993
  }
2995
2994
  gt(e, {
2996
2995
  mousedown(c) {
2997
2996
  var m;
2998
- const a = e.current;
2999
- if (!a) throw new Error("dom must be exist.");
2997
+ const o = e.current;
2998
+ if (!o) throw new Error("dom must be exist.");
3000
2999
  i();
3001
- const d = Ae(c), o = 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), _ = o ? !0 : u != null && u.lock ? d && s : d;
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;
3002
3001
  if (h && u && _) {
3003
3002
  if (Va(u, c), !(u != null && u.lock) && d) {
3004
3003
  const y = ct(
@@ -3017,8 +3016,8 @@ function lo(e) {
3017
3016
  // 监听拖拽移动
3018
3017
  !y && Ga(h),
3019
3018
  // 监听是否放置到 layout 组件
3020
- to(h, (C) => {
3021
- t.current.push(C);
3019
+ to(h, (x) => {
3020
+ t.current.push(x);
3022
3021
  })
3023
3022
  ]
3024
3023
  })
@@ -3034,30 +3033,30 @@ function lo(e) {
3034
3033
  scale: n.config.getConfig().scale,
3035
3034
  hookQueue: [
3036
3035
  // 监听创建范围多选框(左键按住范围框选)
3037
- d && eo(a)
3036
+ d && eo(o)
3038
3037
  ]
3039
3038
  })
3040
3039
  );
3041
3040
  }
3042
- }), Qt(() => {
3041
+ }), Zt(() => {
3043
3042
  i();
3044
3043
  });
3045
3044
  }
3046
3045
  function co(e) {
3047
3046
  const { engine: t } = N();
3048
- un(e, {
3047
+ sn(e, {
3049
3048
  accept: ["create-component"],
3050
3049
  onDrop: (n, i) => {
3051
3050
  const c = e.current;
3052
3051
  if (!c)
3053
3052
  throw new Error("dom must be exist.");
3054
- const { data: a } = i;
3055
- if (!(a == null ? void 0 : a.component))
3053
+ const { data: o } = i;
3054
+ if (!(o == null ? void 0 : o.component))
3056
3055
  return;
3057
- const o = c.getBoundingClientRect(), s = t.config.getConfig().scale, r = t.componentNode.createFromComponent(a.component, {
3058
- x: Math.round((n.x - o.x) / s),
3056
+ const a = c.getBoundingClientRect(), s = t.config.getConfig().scale, r = t.componentNode.createFromComponent(o.component, {
3057
+ x: Math.round((n.x - a.x) / s),
3059
3058
  // 真实坐标转为编辑器坐标 (scale 越小,编辑器面积越小,真实像素变化映射到虚拟像素越大)
3060
- y: Math.round((n.y - o.y) / s),
3059
+ y: Math.round((n.y - a.y) / s),
3061
3060
  pageId: t.config.getCurrentPage()
3062
3061
  });
3063
3062
  t.componentNode.add(r), setTimeout(async () => {
@@ -3068,34 +3067,34 @@ function co(e) {
3068
3067
  }
3069
3068
  function ao(e) {
3070
3069
  const { engine: t } = N();
3071
- un(e, {
3070
+ sn(e, {
3072
3071
  accept: ["create-favorite"],
3073
3072
  onDrop: (n, i) => {
3074
- var v, I;
3073
+ var b, I;
3075
3074
  const c = e.current;
3076
3075
  if (!c)
3077
3076
  throw new Error("dom must be exist.");
3078
- const a = c.getBoundingClientRect(), d = (v = i.data) == null ? void 0 : v.favorite;
3079
- (I = d.children) != null && I.length || E.warn("收藏元素为空");
3080
- const o = Math.round(n.x - a.x), s = Math.round(n.y - a.y), r = d.children[0], { x: h, y: u } = d.children.reduce(
3081
- (f, b) => (f.x = Math.min(f.x, b.x), f.y = Math.min(f.y, b.y), f),
3077
+ const o = c.getBoundingClientRect(), d = (b = i.data) == null ? void 0 : b.favorite;
3078
+ (I = d.children) != null && I.length || A.warn("收藏元素为空");
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),
3082
3081
  {
3083
3082
  x: r.x,
3084
3083
  y: r.y
3085
3084
  }
3086
- ), _ = t.config.getCurrentPage(), m = [], y = t.config.getConfig().scale, C = t.componentNode.cloneComponentNodes(d.children, {
3087
- onClone(f, b) {
3088
- b.x = Math.round((o + (b.x - h)) / y), b.y = Math.round((s + (b.y - u)) / y), b.pageId = _, m.push(b.id);
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);
3089
3088
  }
3090
3089
  });
3091
- t.componentNode.add(C), setTimeout(() => {
3090
+ t.componentNode.add(x), setTimeout(() => {
3092
3091
  t.instance.select(m, !0), O(`新增收藏组件 “${d.name}”`);
3093
3092
  });
3094
3093
  }
3095
3094
  });
3096
3095
  }
3097
3096
  const oo = () => {
3098
- const { engine: e } = N(), t = B(null), n = B(null), i = Yt(), c = Xt(), a = A(() => {
3097
+ const { engine: e } = N(), t = j(null), n = j(null), i = Xt(), c = Gt(), o = L(() => {
3099
3098
  if (i.length)
3100
3099
  return c == null ? void 0 : c.map((d) => /* @__PURE__ */ l(
3101
3100
  qa,
@@ -3106,15 +3105,15 @@ const oo = () => {
3106
3105
  d.id
3107
3106
  ));
3108
3107
  }, [c, i]);
3109
- return lo(n), _n(t), co(n), ao(n), w(() => e.componentNode.onDelete((d) => {
3108
+ return lo(n), gn(t), co(n), ao(n), E(() => e.componentNode.onDelete((d) => {
3110
3109
  e.page.removeGlobalComponentNode(d);
3111
3110
  }), []), /* @__PURE__ */ l(
3112
3111
  "div",
3113
3112
  {
3114
3113
  ref: t,
3115
- className: Bt.editor,
3114
+ className: Mt.editor,
3116
3115
  onMouseDown: () => De(),
3117
- children: /* @__PURE__ */ l(yi, { ref: n, className: Bt.editor_render, children: a })
3116
+ children: /* @__PURE__ */ l(yi, { ref: n, className: Mt.editor_render, children: o })
3118
3117
  }
3119
3118
  );
3120
3119
  }, ro = "_attributes_esabd_59", so = {
@@ -3131,18 +3130,18 @@ const oo = () => {
3131
3130
  };
3132
3131
  function vo(e) {
3133
3132
  const [t, n] = S(!1), [i, c] = S("");
3134
- function a() {
3133
+ function o() {
3135
3134
  c((e == null ? void 0 : e.value) || ""), n(!0);
3136
3135
  }
3137
3136
  function d() {
3138
- var o;
3137
+ var a;
3139
3138
  if (!i) {
3140
- E.warn(e == null ? void 0 : e.emptyMessage);
3139
+ A.warn(e == null ? void 0 : e.emptyMessage);
3141
3140
  return;
3142
3141
  }
3143
- n(!1), (o = e == null ? void 0 : e.onChange) == null || o.call(e, i);
3142
+ n(!1), (a = e == null ? void 0 : e.onChange) == null || a.call(e, i);
3144
3143
  }
3145
- return w(() => {
3144
+ return E(() => {
3146
3145
  n(!1);
3147
3146
  }, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: Xe.editText, children: [
3148
3147
  t ? /* @__PURE__ */ l(
@@ -3150,27 +3149,27 @@ function vo(e) {
3150
3149
  {
3151
3150
  value: i,
3152
3151
  style: { width: "100%" },
3153
- onChange: (o) => c(o),
3152
+ onChange: (a) => c(a),
3154
3153
  onPressEnter: () => {
3155
3154
  t && d();
3156
3155
  }
3157
3156
  }
3158
3157
  ) : /* @__PURE__ */ l("b", { className: Xe.editText_text, title: `${(e == null ? void 0 : e.value) || ""}`, children: e == null ? void 0 : e.value }),
3159
3158
  t ? /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: d }) : /* @__PURE__ */ l(
3160
- Ut,
3159
+ Kt,
3161
3160
  {
3162
- className: $(Xe.opacity0, "icon_clickable"),
3163
- onClick: a
3161
+ className: R(Xe.opacity0, "icon_clickable"),
3162
+ onClick: o
3164
3163
  }
3165
3164
  )
3166
3165
  ] });
3167
3166
  }
3168
3167
  function bo() {
3169
- const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm(), i = A(() => e.component.get(t == null ? void 0 : t.cId), [t == null ? void 0 : t.cId]), c = i == null ? void 0 : i.attributesComponent;
3170
- function a(d) {
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;
3169
+ function o(d) {
3171
3170
  d || e.page.removeGlobalComponentNode(t == null ? void 0 : t.id);
3172
3171
  }
3173
- return w(() => {
3172
+ return E(() => {
3174
3173
  t && n.setFieldsValue({
3175
3174
  ...t,
3176
3175
  isAllPage: !!(t != null && t.isAllPage)
@@ -3181,8 +3180,8 @@ function bo() {
3181
3180
  form: n,
3182
3181
  className: Y.singleInstanceAttributesBase,
3183
3182
  onValuesChange: (d) => {
3184
- let o = "修改组件";
3185
- d.hasOwnProperty("isAllPage") && (a(d.isAllPage), o = d.isAllPage ? "设置组件全页面" : "取消组件全页面"), e.componentNode.update(t == null ? void 0 : t.id, d), O(o);
3183
+ let a = "修改组件";
3184
+ d.hasOwnProperty("isAllPage") && (o(d.isAllPage), a = d.isAllPage ? "设置组件全页面" : "取消组件全页面"), e.componentNode.update(t == null ? void 0 : t.id, d), O(a);
3186
3185
  },
3187
3186
  children: [
3188
3187
  /* @__PURE__ */ l("div", { className: Y.singleInstanceAttributesBase_description, children: /* @__PURE__ */ g(nt, { children: [
@@ -3228,7 +3227,7 @@ function bo() {
3228
3227
  /* @__PURE__ */ l(z, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
3229
3228
  ] })
3230
3229
  ] }),
3231
- t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(Tt, { children: /* @__PURE__ */ l(
3230
+ t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(zt, { children: /* @__PURE__ */ l(
3232
3231
  c,
3233
3232
  {
3234
3233
  componentNode: t,
@@ -3236,9 +3235,9 @@ function bo() {
3236
3235
  e.componentNode.update(t == null ? void 0 : t.id, d), O("修改组件属性");
3237
3236
  },
3238
3237
  options: t == null ? void 0 : t.options,
3239
- onChange: (d, o) => {
3238
+ onChange: (d, a) => {
3240
3239
  e.componentNode.update(t == null ? void 0 : t.id, {
3241
- options: o ? d : {
3240
+ options: a ? d : {
3242
3241
  ...t == null ? void 0 : t.options,
3243
3242
  ...d
3244
3243
  }
@@ -3257,14 +3256,14 @@ const Co = "_dataSource_1t8uf_59", xo = {
3257
3256
  requestDataSource: Io
3258
3257
  };
3259
3258
  function So(e) {
3260
- const t = k.getActiveEngine(), { componentNode: n } = he(), i = A(() => {
3259
+ const t = k.getActiveEngine(), { componentNode: n } = he(), i = L(() => {
3261
3260
  var r, h;
3262
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
3262
  }, [n == null ? void 0 : n.id]), c = n == null ? void 0 : n.request, {
3264
- data: a,
3263
+ data: o,
3265
3264
  loading: d,
3266
- refresh: o
3267
- } = pt(
3265
+ refresh: a
3266
+ } = Qt(
3268
3267
  async () => {
3269
3268
  var r, h;
3270
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}`);
@@ -3345,12 +3344,12 @@ function So(e) {
3345
3344
  ) }),
3346
3345
  /* @__PURE__ */ g("div", { style: { marginTop: 12, display: "flex", gap: 8, alignItems: "center" }, children: [
3347
3346
  /* @__PURE__ */ l("b", { children: "数据结果" }),
3348
- /* @__PURE__ */ l(T, { title: "请求数据", children: /* @__PURE__ */ l(
3347
+ /* @__PURE__ */ l($, { title: "请求数据", children: /* @__PURE__ */ l(
3349
3348
  Z,
3350
3349
  {
3351
3350
  className: "icon_clickable",
3352
3351
  onClick: () => {
3353
- o();
3352
+ a();
3354
3353
  }
3355
3354
  }
3356
3355
  ) })
@@ -3361,7 +3360,7 @@ function So(e) {
3361
3360
  readOnly: !0,
3362
3361
  minimap: !1,
3363
3362
  language: "json",
3364
- value: d ? "" : a,
3363
+ value: d ? "" : o,
3365
3364
  style: { flex: 1, minHeight: 200, maxHeight: 400 }
3366
3365
  }
3367
3366
  )
@@ -3372,24 +3371,24 @@ const No = "_staticDataSource_1p3pl_59", wo = {
3372
3371
  };
3373
3372
  function Eo(e) {
3374
3373
  const { engine: t } = N(), { componentNode: n } = he(), [i, c] = S("");
3375
- function a() {
3374
+ function o() {
3376
3375
  if (!i)
3377
- return E.warn("json格式不正确");
3376
+ return A.warn("json格式不正确");
3378
3377
  try {
3379
3378
  const d = JSON.parse(i);
3380
3379
  t.componentNode.update(n == null ? void 0 : n.id, {
3381
3380
  staticDataSource: d
3382
- }), E.success("修改成功"), O("修改静态数据");
3381
+ }), A.success("修改成功"), O("修改静态数据");
3383
3382
  } catch {
3384
- E.warn("json格式不正确");
3383
+ A.warn("json格式不正确");
3385
3384
  }
3386
3385
  }
3387
- return w(() => {
3386
+ return E(() => {
3388
3387
  c(
3389
3388
  n != null && n.staticDataSource ? JSON.stringify((n == null ? void 0 : n.staticDataSource) || {}, null, " ") : ""
3390
3389
  );
3391
3390
  }, [n]), /* @__PURE__ */ g("div", { className: wo.staticDataSource, style: e == null ? void 0 : e.style, children: [
3392
- /* @__PURE__ */ l(z, { label: "配置数据", children: /* @__PURE__ */ l(T, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: a }) }) }),
3391
+ /* @__PURE__ */ l(z, { label: "配置数据", children: /* @__PURE__ */ l($, { title: "保存", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: o }) }) }),
3393
3392
  /* @__PURE__ */ l(
3394
3393
  X,
3395
3394
  {
@@ -3434,14 +3433,14 @@ const Do = "_interactive_1j74j_59", Oo = {
3434
3433
  interactive: Do
3435
3434
  };
3436
3435
  function Po(e) {
3437
- const { componentNode: t } = e, { engine: n } = N(), [i, c] = S([]), a = A(
3436
+ const { componentNode: t } = e, { engine: n } = N(), [i, c] = S([]), o = L(
3438
3437
  () => n.component.get(t == null ? void 0 : t.cId),
3439
3438
  [t == null ? void 0 : t.cId]
3440
3439
  );
3441
- return w(() => {
3442
- var d, o;
3440
+ return E(() => {
3441
+ var d, a;
3443
3442
  c(
3444
- ((o = (d = a == null ? void 0 : a.triggers) == null ? void 0 : d.map) == null ? void 0 : o.call(d, (s) => {
3443
+ ((a = (d = o == null ? void 0 : o.triggers) == null ? void 0 : d.map) == null ? void 0 : a.call(d, (s) => {
3445
3444
  var r;
3446
3445
  return {
3447
3446
  disabled: !!((r = t == null ? void 0 : t.events) != null && r.find((h) => h.triggerId === s.value)),
@@ -3451,40 +3450,40 @@ function Po(e) {
3451
3450
  };
3452
3451
  })) || []
3453
3452
  );
3454
- }, [a, t]), /* @__PURE__ */ l(
3453
+ }, [o, t]), /* @__PURE__ */ l(
3455
3454
  be,
3456
3455
  {
3457
3456
  trigger: ["click"],
3458
3457
  menu: {
3459
3458
  items: i,
3460
3459
  onClick: ({ key: d }) => {
3461
- var o;
3462
- (o = e == null ? void 0 : e.onSelect) == null || o.call(e, d);
3460
+ var a;
3461
+ (a = e == null ? void 0 : e.onSelect) == null || a.call(e, d);
3463
3462
  }
3464
3463
  },
3465
3464
  children: /* @__PURE__ */ l(K, { type: "dashed", block: !0, icon: /* @__PURE__ */ l(rt, {}), children: "组件绑定事件" })
3466
3465
  }
3467
3466
  );
3468
3467
  }
3469
- const Mo = "_eventList_19gi2_59", Bo = "_eventList_head_19gi2_62", jo = "_eventList_body_19gi2_68", zo = "_eventList_item_19gi2_74", To = "_eventList_item_body_19gi2_84", $o = "_eventList_item_opt_19gi2_90", Ro = "_eventList_item_opt_clickable_19gi2_95", G = {
3470
- eventList: Mo,
3471
- eventList_head: Bo,
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,
3472
3471
  eventList_body: jo,
3473
- eventList_item: zo,
3474
- eventList_item_body: To,
3472
+ eventList_item: To,
3473
+ eventList_item_body: zo,
3475
3474
  eventList_item_opt: $o,
3476
3475
  eventList_item_opt_clickable: Ro
3477
3476
  }, Fo = "_editEventDialog_11y5n_59", Ho = "_editEventDialog_menu_11y5n_63", Ko = "_editEventDialog_body_11y5n_78", Ye = {
3478
3477
  editEventDialog: Fo,
3479
3478
  editEventDialog_menu: Ho,
3480
3479
  editEventDialog_body: Ko
3481
- }, Uo = "_eventOptions_main_16n1f_59", Me = {
3480
+ }, Uo = "_eventOptions_main_16n1f_59", Be = {
3482
3481
  eventOptions_main: Uo
3483
3482
  };
3484
3483
  function qo(e) {
3485
3484
  var t;
3486
- return /* @__PURE__ */ l("div", { className: Me.eventOptions_main, children: /* @__PURE__ */ l(z, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
3487
- qt,
3485
+ return /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ l(z, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
3486
+ Ut,
3488
3487
  {
3489
3488
  size: "small",
3490
3489
  checked: (t = e == null ? void 0 : e.value) == null ? void 0 : t.visible,
@@ -3499,8 +3498,8 @@ function qo(e) {
3499
3498
  ) }) });
3500
3499
  }
3501
3500
  const Jo = ue((e) => {
3502
- const [t, n] = zt.useState();
3503
- return w(() => {
3501
+ const [t, n] = Tt.useState();
3502
+ return E(() => {
3504
3503
  var i;
3505
3504
  e != null && e.visible && n((i = e == null ? void 0 : e.params) == null ? void 0 : i.text);
3506
3505
  }, [e == null ? void 0 : e.visible]), /* @__PURE__ */ g(
@@ -3544,7 +3543,7 @@ const Jo = ue((e) => {
3544
3543
  {
3545
3544
  language: "javascript",
3546
3545
  style: { height: 450 },
3547
- value: t ?? Mi,
3546
+ value: t ?? Bi,
3548
3547
  onChange: n
3549
3548
  }
3550
3549
  )
@@ -3552,17 +3551,17 @@ const Jo = ue((e) => {
3552
3551
  }
3553
3552
  );
3554
3553
  });
3555
- function mn(e) {
3554
+ function _n(e) {
3556
3555
  const t = Jo({
3557
3556
  onOk(i) {
3558
3557
  var c;
3559
3558
  (c = e == null ? void 0 : e.onChange) == null || c.call(e, i);
3560
3559
  }
3561
- }), n = A(() => e != null && e.tooltip ? /* @__PURE__ */ l(T, { 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($, { title: e == null ? void 0 : e.tooltip, children: /* @__PURE__ */ l("span", { children: "{}" }) }) : /* @__PURE__ */ l("span", { children: "{}" }), [e == null ? void 0 : e.tooltip]);
3562
3561
  return /* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(
3563
3562
  "span",
3564
3563
  {
3565
- className: $("icon_clickable", (e == null ? void 0 : e.value) && "icon_selected"),
3564
+ className: R("icon_clickable", (e == null ? void 0 : e.value) && "icon_selected"),
3566
3565
  style: { fontSize: 14 },
3567
3566
  onClick: () => {
3568
3567
  t.open({
@@ -3578,31 +3577,31 @@ const Wo = /* @__PURE__ */ g("div", { children: [
3578
3577
  /* @__PURE__ */ l("div", { style: { whiteSpace: "pre-wrap", padding: "12px 0" }, children: JSON.stringify({ name: "tjh", age: 25 }, null, " ") })
3579
3578
  ] });
3580
3579
  function Vo(e) {
3581
- var o, s, r;
3582
- const t = ((o = e == null ? void 0 : e.value) == null ? void 0 : o.type) || "default", [n, i] = S(), [c, a] = S("");
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("");
3583
3582
  function d() {
3584
3583
  var h;
3585
3584
  try {
3586
3585
  const u = JSON.parse(c);
3587
3586
  if (typeof u != "object" || u === null) {
3588
- E.warn("只能保存对象格式数据");
3587
+ A.warn("只能保存对象格式数据");
3589
3588
  return;
3590
3589
  }
3591
3590
  (h = e == null ? void 0 : e.onChange) == null || h.call(e, {
3592
3591
  ...e == null ? void 0 : e.value,
3593
3592
  params: u
3594
- }), E.success("更新成功");
3593
+ }), A.success("更新成功");
3595
3594
  } catch {
3596
- E.warn("JSON格式不正确");
3595
+ A.warn("JSON格式不正确");
3597
3596
  }
3598
3597
  }
3599
- return w(() => {
3598
+ return E(() => {
3600
3599
  var h;
3601
- a(JSON.stringify(((h = e == null ? void 0 : e.value) == null ? void 0 : h.params) || {}, null, " "));
3602
- }, [(s = e == null ? void 0 : e.value) == null ? void 0 : s.params]), w(() => {
3600
+ o(JSON.stringify(((h = e == null ? void 0 : e.value) == null ? void 0 : h.params) || {}, null, " "));
3601
+ }, [(s = e == null ? void 0 : e.value) == null ? void 0 : s.params]), E(() => {
3603
3602
  var h;
3604
3603
  i((h = e == null ? void 0 : e.value) == null ? void 0 : h.parserFunc);
3605
- }, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Me.eventOptions_main, children: [
3604
+ }, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Be.eventOptions_main, children: [
3606
3605
  /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
3607
3606
  /* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3 }),
3608
3607
  /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
@@ -3627,7 +3626,7 @@ function Vo(e) {
3627
3626
  }
3628
3627
  ),
3629
3628
  /* @__PURE__ */ l(
3630
- mn,
3629
+ _n,
3631
3630
  {
3632
3631
  tooltip: "解析函数",
3633
3632
  value: n,
@@ -3643,7 +3642,7 @@ function Vo(e) {
3643
3642
  ] })
3644
3643
  ] }),
3645
3644
  t === "json" && /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
3646
- /* @__PURE__ */ l(z, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l(T, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
3645
+ /* @__PURE__ */ l(z, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l($, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: d, className: "icon_clickable" }) }) }),
3647
3646
  /* @__PURE__ */ l(
3648
3647
  X,
3649
3648
  {
@@ -3651,7 +3650,7 @@ function Vo(e) {
3651
3650
  language: "json",
3652
3651
  style: { height: 380 },
3653
3652
  onChange: (h) => {
3654
- a(h);
3653
+ o(h);
3655
3654
  }
3656
3655
  }
3657
3656
  )
@@ -3659,22 +3658,22 @@ function Vo(e) {
3659
3658
  ] });
3660
3659
  }
3661
3660
  function Go(e) {
3662
- var a;
3661
+ var o;
3663
3662
  const [t, n] = S();
3664
3663
  function i(d) {
3665
- var o;
3666
- (o = e == null ? void 0 : e.onChange) == null || o.call(e, {
3664
+ var a;
3665
+ (a = e == null ? void 0 : e.onChange) == null || a.call(e, {
3667
3666
  ...e == null ? void 0 : e.value,
3668
3667
  function: d
3669
3668
  });
3670
3669
  }
3671
3670
  function c() {
3672
- i(void 0), n(void 0), E.success("重置成功");
3671
+ i(void 0), n(void 0), A.success("重置成功");
3673
3672
  }
3674
- return w(() => {
3673
+ return E(() => {
3675
3674
  var d;
3676
3675
  n((d = e == null ? void 0 : e.value) == null ? void 0 : d.function);
3677
- }, [(a = e == null ? void 0 : e.value) == null ? void 0 : a.function]), /* @__PURE__ */ l("div", { className: Me.eventOptions_main, children: /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 4, children: [
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: [
3678
3677
  /* @__PURE__ */ l(z, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
3679
3678
  "div",
3680
3679
  {
@@ -3684,13 +3683,13 @@ function Go(e) {
3684
3683
  alignItems: "center",
3685
3684
  justifyContent: "space-between"
3686
3685
  },
3687
- children: /* @__PURE__ */ l(T, { title: "重置", children: /* @__PURE__ */ l(Yn, { onClick: c, className: "icon_clickable" }) })
3686
+ children: /* @__PURE__ */ l($, { title: "重置", children: /* @__PURE__ */ l(Xn, { onClick: c, className: "icon_clickable" }) })
3688
3687
  }
3689
3688
  ) }),
3690
3689
  /* @__PURE__ */ l(
3691
3690
  X,
3692
3691
  {
3693
- value: t ?? Bi,
3692
+ value: t ?? Mi,
3694
3693
  language: "javascript",
3695
3694
  style: { height: 440 },
3696
3695
  onChange: (d) => {
@@ -3707,29 +3706,29 @@ const Xo = {
3707
3706
  json: {}
3708
3707
  };
3709
3708
  function Yo(e) {
3710
- var r, h, u, _, m, y, C, v, I, f, b;
3711
- 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, a] = S(), [d, o] = S();
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();
3712
3711
  function s() {
3713
- var x;
3712
+ var C;
3714
3713
  if (!d)
3715
- return E.warn("json不能为空");
3714
+ return A.warn("json不能为空");
3716
3715
  try {
3717
- const L = JSON.parse(d || "");
3718
- typeof L == "object" && L && ((x = e == null ? void 0 : e.onChange) == null || x.call(e, {
3716
+ const w = JSON.parse(d || "");
3717
+ typeof w == "object" && w && ((C = e == null ? void 0 : e.onChange) == null || C.call(e, {
3719
3718
  ...e == null ? void 0 : e.value,
3720
- value: L
3721
- }), E.success("设置成功"));
3719
+ value: w
3720
+ }), A.success("设置成功"));
3722
3721
  } catch {
3723
- E.warn("json格式不正确");
3722
+ A.warn("json格式不正确");
3724
3723
  }
3725
3724
  }
3726
- return w(() => {
3727
- var x;
3728
- a((x = e == null ? void 0 : e.value) == null ? void 0 : x.parserFunc);
3729
- }, [(u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc]), w(() => {
3730
- var x, L;
3731
- ((x = e == null ? void 0 : e.value) == null ? void 0 : x.type) === "json" && o(JSON.stringify(((L = e == null ? void 0 : e.value) == null ? void 0 : L.value) || {}, null, " "));
3732
- }, [(_ = 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: Me.eventOptions_main, children: [
3725
+ return E(() => {
3726
+ var C;
3727
+ o((C = e == null ? void 0 : e.value) == null ? void 0 : C.parserFunc);
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, " "));
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: [
3733
3732
  /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
3734
3733
  /* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
3735
3734
  /* @__PURE__ */ g(D, { children: [
@@ -3745,42 +3744,42 @@ function Yo(e) {
3745
3744
  { label: "文本值", value: "text" },
3746
3745
  { label: "json数据", value: "json" }
3747
3746
  ],
3748
- onChange: (x) => t({
3747
+ onChange: (C) => t({
3749
3748
  ...e == null ? void 0 : e.value,
3750
- value: Xo[x],
3751
- type: x
3749
+ value: Xo[C],
3750
+ type: C
3752
3751
  })
3753
3752
  }
3754
3753
  ),
3755
3754
  /* @__PURE__ */ l(
3756
- mn,
3755
+ _n,
3757
3756
  {
3758
3757
  tooltip: "解析函数",
3759
3758
  value: c,
3760
- onChange: (x) => {
3761
- var L;
3762
- a(x), (L = e == null ? void 0 : e.onChange) == null || L.call(e, {
3759
+ onChange: (C) => {
3760
+ var w;
3761
+ o(C), (w = e == null ? void 0 : e.onChange) == null || w.call(e, {
3763
3762
  ...e == null ? void 0 : e.value,
3764
- parserFunc: x
3763
+ parserFunc: C
3765
3764
  });
3766
3765
  }
3767
3766
  }
3768
3767
  )
3769
3768
  ] })
3770
3769
  ] }),
3771
- ((y = e == null ? void 0 : e.value) == null ? void 0 : y.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: [
3772
- /* @__PURE__ */ l(z, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(T, { title: "更新", children: /* @__PURE__ */ l(Q, { onClick: s, className: "icon_clickable" }) }) }),
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" }) }) }),
3773
3772
  /* @__PURE__ */ g(W, { children: [
3774
- ((v = e == null ? void 0 : e.value) == null ? void 0 : v.type) === "number" && /* @__PURE__ */ l(
3773
+ ((b = e == null ? void 0 : e.value) == null ? void 0 : b.type) === "number" && /* @__PURE__ */ l(
3775
3774
  mt,
3776
3775
  {
3777
3776
  min: void 0,
3778
3777
  style: { width: Ne * 2 },
3779
3778
  value: (I = e == null ? void 0 : e.value) == null ? void 0 : I.value,
3780
- onChange: (x) => {
3779
+ onChange: (C) => {
3781
3780
  t({
3782
3781
  ...e == null ? void 0 : e.value,
3783
- value: x
3782
+ value: C
3784
3783
  });
3785
3784
  }
3786
3785
  }
@@ -3789,12 +3788,12 @@ function Yo(e) {
3789
3788
  xi,
3790
3789
  {
3791
3790
  style: { width: Ne * 2 },
3792
- value: (b = e == null ? void 0 : e.value) == null ? void 0 : b.value,
3791
+ value: (v = e == null ? void 0 : e.value) == null ? void 0 : v.value,
3793
3792
  autoSize: { minRows: 3, maxRows: 3 },
3794
- onChange: (x) => {
3793
+ onChange: (C) => {
3795
3794
  t({
3796
3795
  ...e == null ? void 0 : e.value,
3797
- value: x
3796
+ value: C
3798
3797
  });
3799
3798
  }
3800
3799
  }
@@ -3805,8 +3804,8 @@ function Yo(e) {
3805
3804
  language: "javascript",
3806
3805
  style: { height: 375 },
3807
3806
  value: d,
3808
- onChange: (x) => {
3809
- o(x);
3807
+ onChange: (C) => {
3808
+ a(C);
3810
3809
  }
3811
3810
  }
3812
3811
  )
@@ -3816,7 +3815,7 @@ function Yo(e) {
3816
3815
  }
3817
3816
  const Ne = 200;
3818
3817
  function Zo(e) {
3819
- var i, c, a, d, o;
3818
+ var i, c, o, d, a;
3820
3819
  const t = (i = e == null ? void 0 : e.value) == null ? void 0 : i.option;
3821
3820
  function n(s) {
3822
3821
  var r;
@@ -3825,7 +3824,7 @@ function Zo(e) {
3825
3824
  option: s
3826
3825
  }));
3827
3826
  }
3828
- return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.exposeId) === Te.visible ? /* @__PURE__ */ l(qo, { value: t, onChange: n }) : ((d = e == null ? void 0 : e.value) == null ? void 0 : d.exposeId) === Te.request ? /* @__PURE__ */ l(Vo, { value: t, onChange: n }) : ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === Te.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(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: "请选中目标操作" });
3829
3828
  }
3830
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 = {
3831
3830
  targetList: Qo,
@@ -3861,31 +3860,31 @@ function dd(e) {
3861
3860
  /* @__PURE__ */ g("div", { children: [
3862
3861
  /* @__PURE__ */ l("b", { children: "show" }),
3863
3862
  ":",
3864
- /* @__PURE__ */ l(qt, { disabled: !0, size: "small", checked: (t == null ? void 0 : t.show) ?? !0 })
3863
+ /* @__PURE__ */ l(Ut, { disabled: !0, size: "small", checked: (t == null ? void 0 : t.show) ?? !0 })
3865
3864
  ] })
3866
3865
  ] });
3867
3866
  }
3868
3867
  function rd(e) {
3869
3868
  var _;
3870
- const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = B();
3871
- w(() => {
3869
+ const { engine: t } = N(), [n, i] = S(!1), [c, o] = S([]), [d, a] = S(""), s = j();
3870
+ E(() => {
3872
3871
  if (n) {
3873
3872
  s.current && (clearTimeout(s.current), s.current = null);
3874
3873
  let m = t.componentNode.getAll();
3875
- e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)), a(m), o("");
3874
+ e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)), o(m), a("");
3876
3875
  }
3877
3876
  }, [n]);
3878
- const r = A(() => {
3877
+ const r = L(() => {
3879
3878
  var y;
3880
3879
  const m = (y = d == null ? void 0 : d.toLowerCase) == null ? void 0 : y.call(d);
3881
- return c.filter((C) => {
3882
- var v, I, f, b;
3883
- return (b = (f = (I = (v = C == null ? void 0 : C.name) == null ? void 0 : v.toLowerCase) == null ? void 0 : I.call(v)) == null ? void 0 : f.includes) == null ? void 0 : b.call(f, m);
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);
3884
3883
  });
3885
3884
  }, [d, c]);
3886
3885
  function h() {
3887
3886
  i(!1), s.current = setTimeout(() => {
3888
- a([]), s.current = null;
3887
+ o([]), s.current = null;
3889
3888
  }, 300);
3890
3889
  }
3891
3890
  function u(m) {
@@ -3901,7 +3900,7 @@ function rd(e) {
3901
3900
  {
3902
3901
  key: "body",
3903
3902
  label: /* @__PURE__ */ g("div", { className: fe.addComponentNodeButton, children: [
3904
- /* @__PURE__ */ l(p, { placeholder: "搜索页面组件", value: d, onChange: o }),
3903
+ /* @__PURE__ */ l(p, { placeholder: "搜索页面组件", value: d, onChange: a }),
3905
3904
  /* @__PURE__ */ g("div", { className: fe.addComponentNodeButton_body, children: [
3906
3905
  !(r != null && r.length) && /* @__PURE__ */ l(U, {}),
3907
3906
  (_ = r == null ? void 0 : r.map) == null ? void 0 : _.call(r, (m) => {
@@ -3958,9 +3957,9 @@ function rd(e) {
3958
3957
  }
3959
3958
  function sd(e) {
3960
3959
  var d;
3961
- const t = ht(), { engine: n } = N(), i = A(() => {
3962
- var o, s;
3963
- return (s = (o = e == null ? void 0 : e.targets) == null ? void 0 : o.map) == null ? void 0 : s.call(o, (r) => {
3960
+ const t = ht(), { engine: n } = N(), i = L(() => {
3961
+ var a, s;
3962
+ return (s = (a = e == null ? void 0 : e.targets) == null ? void 0 : a.map) == null ? void 0 : s.call(a, (r) => {
3964
3963
  var h;
3965
3964
  return {
3966
3965
  value: r.id,
@@ -3968,77 +3967,77 @@ function sd(e) {
3968
3967
  };
3969
3968
  });
3970
3969
  }, [e == null ? void 0 : e.targets]);
3971
- function c(o) {
3970
+ function c(a) {
3972
3971
  var r;
3973
3972
  const s = [
3974
3973
  ...(e == null ? void 0 : e.targets) || [],
3975
3974
  {
3976
- id: o.id,
3975
+ id: a.id,
3977
3976
  opts: []
3978
3977
  }
3979
3978
  ];
3980
3979
  (r = e == null ? void 0 : e.onChangeTargets) == null || r.call(e, s, "add");
3981
3980
  }
3982
- function a(o) {
3981
+ function o(a) {
3983
3982
  var _, m, y;
3984
3983
  let s;
3985
- const r = ((m = (_ = e == null ? void 0 : e.targets) == null ? void 0 : _.filter) == null ? void 0 : m.call(_, (C) => C.id === o ? (s = C, !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(_, (x) => x.id === a ? (s = x, !1) : !0)) || [], h = ((y = s == null ? void 0 : s.opts) == null ? void 0 : y.length) || 0;
3986
3985
  function u() {
3987
- var C, v, I;
3988
- (C = e == null ? void 0 : e.onChangeTargets) == null || C.call(e, r, "delete"), o === (e == null ? void 0 : e.value) && ((I = e == null ? void 0 : e.onChange) == null || I.call(e, (v = r == null ? void 0 : r[0]) == null ? void 0 : v.id));
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));
3989
3988
  }
3990
3989
  if (h) {
3991
3990
  t({
3992
3991
  title: "提醒",
3993
3992
  content: `该组件已配置 ${h} 个事件操作,确定删除?`,
3994
- onOk(C) {
3995
- u(), C();
3993
+ onOk(x) {
3994
+ u(), x();
3996
3995
  }
3997
3996
  });
3998
3997
  return;
3999
3998
  }
4000
3999
  u();
4001
4000
  }
4002
- return /* @__PURE__ */ g("div", { className: $(me.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
4001
+ return /* @__PURE__ */ g("div", { className: R(me.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
4003
4002
  /* @__PURE__ */ l(
4004
4003
  rd,
4005
4004
  {
4006
4005
  style: { margin: -1 },
4007
- beforeVisible: (o) => o.filter((s) => {
4006
+ beforeVisible: (a) => a.filter((s) => {
4008
4007
  var r, h;
4009
4008
  return !((h = (r = e == null ? void 0 : e.targets) == null ? void 0 : r.find) != null && h.call(r, (u) => u.id === (s == null ? void 0 : s.id)));
4010
4009
  }),
4011
- onSelect: (o) => c(o),
4010
+ onSelect: (a) => c(a),
4012
4011
  children: "新增目标组件"
4013
4012
  }
4014
4013
  ),
4015
- /* @__PURE__ */ l("div", { className: me.targetList_body, children: (d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (o) => {
4016
- const s = (o == null ? void 0 : o.value) === (e == null ? void 0 : e.value);
4014
+ /* @__PURE__ */ l("div", { className: me.targetList_body, children: (d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (a) => {
4015
+ const s = (a == null ? void 0 : a.value) === (e == null ? void 0 : e.value);
4017
4016
  return /* @__PURE__ */ g(
4018
4017
  "div",
4019
4018
  {
4020
- className: $(
4019
+ className: R(
4021
4020
  me.targetList_item,
4022
4021
  s && me.targetList_item_selected
4023
4022
  ),
4024
4023
  onClick: () => {
4025
4024
  var r;
4026
- return (r = e == null ? void 0 : e.onChange) == null ? void 0 : r.call(e, o == null ? void 0 : o.value);
4025
+ return (r = e == null ? void 0 : e.onChange) == null ? void 0 : r.call(e, a == null ? void 0 : a.value);
4027
4026
  },
4028
4027
  children: [
4029
- o == null ? void 0 : o.label,
4028
+ a == null ? void 0 : a.label,
4030
4029
  /* @__PURE__ */ l(
4031
4030
  de,
4032
4031
  {
4033
4032
  className: me.targetList_item_clickable,
4034
4033
  onClick: (r) => {
4035
- a(o == null ? void 0 : o.value), r.stopPropagation();
4034
+ o(a == null ? void 0 : a.value), r.stopPropagation();
4036
4035
  }
4037
4036
  }
4038
4037
  )
4039
4038
  ]
4040
4039
  },
4041
- o == null ? void 0 : o.value
4040
+ a == null ? void 0 : a.value
4042
4041
  );
4043
4042
  }) }),
4044
4043
  !(i != null && i.length) && /* @__PURE__ */ l(U, {})
@@ -4058,18 +4057,18 @@ const ud = "_targetList_17cmb_59", hd = "_targetList_body_17cmb_66", gd = "_targ
4058
4057
  };
4059
4058
  function Cd(e) {
4060
4059
  var u;
4061
- const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = B(), r = A(() => {
4060
+ const { engine: t } = N(), [n, i] = S(!1), [c, o] = S([]), [d, a] = S(""), s = j(), r = L(() => {
4062
4061
  var m;
4063
4062
  const _ = (m = d == null ? void 0 : d.toLowerCase) == null ? void 0 : m.call(d);
4064
4063
  return c.filter((y) => {
4065
- var C, v, I, f;
4066
- return (f = (I = (v = (C = y == null ? void 0 : y.label) == null ? void 0 : C.toLowerCase) == null ? void 0 : v.call(C)) == null ? void 0 : I.includes) == null ? void 0 : f.call(I, _);
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, _);
4067
4066
  });
4068
4067
  }, [d, c]);
4069
4068
  function h() {
4070
4069
  i(!1);
4071
4070
  }
4072
- return w(() => {
4071
+ return E(() => {
4073
4072
  var _;
4074
4073
  if (n) {
4075
4074
  s.current && (clearTimeout(s.current), s.current = null);
@@ -4077,11 +4076,11 @@ function Cd(e) {
4077
4076
  if (e != null && e.cId) {
4078
4077
  const y = t.component.get(e == null ? void 0 : e.cId);
4079
4078
  m = (_ = (y == null ? void 0 : y.exposes) || []) == null ? void 0 : _.reduce(
4080
- (C, v) => (C.push({ label: v.label, value: v.value }), C),
4079
+ (x, b) => (x.push({ label: b.label, value: b.value }), x),
4081
4080
  [...di]
4082
4081
  );
4083
4082
  }
4084
- e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)), a(m), o("");
4083
+ e != null && e.beforeVisible && (m = e == null ? void 0 : e.beforeVisible(m)), o(m), a("");
4085
4084
  }
4086
4085
  }, [n]), /* @__PURE__ */ l(
4087
4086
  Ci,
@@ -4089,7 +4088,7 @@ function Cd(e) {
4089
4088
  visible: n,
4090
4089
  onClose: h,
4091
4090
  overlayChildren: /* @__PURE__ */ g("div", { className: Se.addExposesButton, children: [
4092
- /* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange: o }),
4091
+ /* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange: a }),
4093
4092
  /* @__PURE__ */ g("div", { className: Se.addExposesButton_body, children: [
4094
4093
  !(r != null && r.length) && /* @__PURE__ */ l(U, {}),
4095
4094
  (u = r == null ? void 0 : r.map) == null ? void 0 : u.call(r, (_) => /* @__PURE__ */ l(
@@ -4122,130 +4121,130 @@ function Cd(e) {
4122
4121
  }
4123
4122
  function xd(e) {
4124
4123
  var d;
4125
- const { engine: t } = N(), n = A(() => {
4124
+ const { engine: t } = N(), n = L(() => {
4126
4125
  var s, r;
4127
- const o = t.component.get(e == null ? void 0 : e.cId);
4126
+ const a = t.component.get(e == null ? void 0 : e.cId);
4128
4127
  return {
4129
4128
  ...ri,
4130
- ...(r = (s = o == null ? void 0 : o.exposes) == null ? void 0 : s.reduce) == null ? void 0 : r.call(s, (h, u) => (h[u.value] = u.label, h), {})
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), {})
4131
4130
  };
4132
- }, [e == null ? void 0 : e.cId]), i = A(() => {
4133
- var o, s;
4134
- return (s = (o = e == null ? void 0 : e.opts) == null ? void 0 : o.map) == null ? void 0 : s.call(o, (r) => ({
4131
+ }, [e == null ? void 0 : e.cId]), i = L(() => {
4132
+ var a, s;
4133
+ return (s = (a = e == null ? void 0 : e.opts) == null ? void 0 : a.map) == null ? void 0 : s.call(a, (r) => ({
4135
4134
  value: r.operateId,
4136
4135
  label: n[r.exposeId] || "-"
4137
4136
  }));
4138
4137
  }, [e == null ? void 0 : e.opts, n]);
4139
- function c(o) {
4138
+ function c(a) {
4140
4139
  var r;
4141
4140
  const s = [
4142
4141
  ...(e == null ? void 0 : e.opts) || [],
4143
4142
  {
4144
4143
  operateId: ut(),
4145
- exposeId: o.value,
4144
+ exposeId: a.value,
4146
4145
  option: {}
4147
4146
  }
4148
4147
  ];
4149
4148
  (r = e == null ? void 0 : e.onChangeOpts) == null || r.call(e, s);
4150
4149
  }
4151
- function a(o) {
4150
+ function o(a) {
4152
4151
  var r, h, u, _, m;
4153
- const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (y) => y.operateId !== o)) || [];
4154
- (u = e == null ? void 0 : e.onChangeOpts) == null || u.call(e, s), o === (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));
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)) || [];
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));
4155
4154
  }
4156
- return /* @__PURE__ */ g("div", { className: $(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
4155
+ return /* @__PURE__ */ g("div", { className: R(ye.targetList, e == null ? void 0 : e.className), style: e == null ? void 0 : e.style, children: [
4157
4156
  /* @__PURE__ */ l(
4158
4157
  Cd,
4159
4158
  {
4160
4159
  style: { margin: -1 },
4161
4160
  cId: e == null ? void 0 : e.cId,
4162
- onSelect: (o) => c(o),
4161
+ onSelect: (a) => c(a),
4163
4162
  children: "新增操作"
4164
4163
  }
4165
4164
  ),
4166
4165
  /* @__PURE__ */ g("div", { className: ye.targetList_body, children: [
4167
4166
  !(i != null && i.length) && /* @__PURE__ */ l(U, {}),
4168
- (d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (o) => {
4169
- const s = (o == null ? void 0 : o.value) === (e == null ? void 0 : e.value);
4167
+ (d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (a) => {
4168
+ const s = (a == null ? void 0 : a.value) === (e == null ? void 0 : e.value);
4170
4169
  return /* @__PURE__ */ g(
4171
4170
  "div",
4172
4171
  {
4173
- className: $(
4172
+ className: R(
4174
4173
  ye.targetList_item,
4175
4174
  s && ye.targetList_item_selected
4176
4175
  ),
4177
4176
  onClick: () => {
4178
4177
  var r;
4179
- return (r = e == null ? void 0 : e.onChange) == null ? void 0 : r.call(e, o == null ? void 0 : o.value);
4178
+ return (r = e == null ? void 0 : e.onChange) == null ? void 0 : r.call(e, a == null ? void 0 : a.value);
4180
4179
  },
4181
4180
  children: [
4182
- o == null ? void 0 : o.label,
4181
+ a == null ? void 0 : a.label,
4183
4182
  /* @__PURE__ */ l(
4184
4183
  de,
4185
4184
  {
4186
4185
  className: ye.targetList_item_clickable,
4187
4186
  onClick: (r) => {
4188
- a(o == null ? void 0 : o.value), r.stopPropagation();
4187
+ o(a == null ? void 0 : a.value), r.stopPropagation();
4189
4188
  }
4190
4189
  }
4191
4190
  )
4192
4191
  ]
4193
4192
  },
4194
- o == null ? void 0 : o.value
4193
+ a == null ? void 0 : a.value
4195
4194
  );
4196
4195
  })
4197
4196
  ] })
4198
4197
  ] });
4199
4198
  }
4200
4199
  const Id = ue((e) => {
4201
- const { engine: t } = N(), { componentNode: n, triggerId: i, triggerName: c } = (e == null ? void 0 : e.params) || {}, [a, d] = S(), [o, s] = S(), [r, h] = S(), u = A(() => {
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(() => {
4202
4201
  var f;
4203
- return (f = t.componentNode.get(o == null ? void 0 : o.id)) == null ? void 0 : f.cId;
4204
- }, [o]);
4202
+ return (f = t.componentNode.get(a == null ? void 0 : a.id)) == null ? void 0 : f.cId;
4203
+ }, [a]);
4205
4204
  function _(f) {
4206
- var x, L, j;
4207
- const b = (L = (x = a == null ? void 0 : a.targets) == null ? void 0 : x.find) == null ? void 0 : L.call(x, (R) => R.id === f);
4208
- s(b), h((j = b == null ? void 0 : b.opts) == null ? void 0 : j[0]);
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]);
4209
4208
  }
4210
4209
  function m(f) {
4211
- var b, x;
4210
+ var v, C;
4212
4211
  h(
4213
- (x = (b = o == null ? void 0 : o.opts) == null ? void 0 : b.find) == null ? void 0 : x.call(b, (L) => (L == null ? void 0 : L.operateId) === f)
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)
4214
4213
  );
4215
4214
  }
4216
- function y(f, b) {
4215
+ function y(f, v) {
4217
4216
  d({
4218
- ...a,
4217
+ ...o,
4219
4218
  targets: f
4220
- }), b && f.length === 1 && s(f[f.length - 1]);
4219
+ }), v && f.length === 1 && s(f[f.length - 1]);
4221
4220
  }
4222
- function C(f) {
4223
- var b, x;
4224
- (x = (b = a == null ? void 0 : a.targets) == null ? void 0 : b.find) == null || x.call(b, (L) => L.id !== (o == null ? void 0 : o.id) ? !1 : (L.opts = f, !0)), d({ ...a }), f.length === 1 && h(f == null ? void 0 : f[0]);
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]);
4225
4224
  }
4226
- function v(f) {
4227
- var b, x;
4228
- (x = (b = a == null ? void 0 : a.targets) == null ? void 0 : b.find) == null || x.call(b, (L) => {
4229
- var j, R;
4230
- return L.id !== (o == null ? void 0 : o.id) ? !1 : ((R = (j = L.opts) == null ? void 0 : j.find) == null || R.call(j, (q) => (q == null ? void 0 : q.operateId) !== (f == null ? void 0 : f.operateId) ? !1 : (Object.assign(q, f), !0)), !0);
4231
- }), d({ ...a });
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);
4230
+ }), d({ ...o });
4232
4231
  }
4233
4232
  function I() {
4234
4233
  var f;
4235
- (f = e == null ? void 0 : e.onOk) == null || f.call(e, a);
4234
+ (f = e == null ? void 0 : e.onOk) == null || f.call(e, o);
4236
4235
  }
4237
- return w(() => {
4238
- var f, b, x, L;
4236
+ return E(() => {
4237
+ var f, v, C, w;
4239
4238
  if (e != null && e.visible) {
4240
4239
  if (!i) {
4241
- E.error("triggerId不存在");
4240
+ A.error("triggerId不存在");
4242
4241
  return;
4243
4242
  }
4244
- let j = (b = (f = n == null ? void 0 : n.events) == null ? void 0 : f.find) == null ? void 0 : b.call(f, (V) => (V == null ? void 0 : V.triggerId) === i);
4245
- j = Vt(j || {}), d(j);
4246
- const R = (x = j == null ? void 0 : j.targets) == null ? void 0 : x[0];
4247
- s(R);
4248
- const q = (L = R == null ? void 0 : R.opts) == null ? void 0 : L[0];
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];
4249
4248
  h(q);
4250
4249
  } else
4251
4250
  d(void 0), s(void 0), h(void 0);
@@ -4269,13 +4268,13 @@ const Id = ue((e) => {
4269
4268
  sd,
4270
4269
  {
4271
4270
  className: "border-right",
4272
- value: o == null ? void 0 : o.id,
4271
+ value: a == null ? void 0 : a.id,
4273
4272
  onChange: (f) => {
4274
4273
  _(f);
4275
4274
  },
4276
- targets: a == null ? void 0 : a.targets,
4277
- onChangeTargets: (f, b) => {
4278
- y(f, b === "add");
4275
+ targets: o == null ? void 0 : o.targets,
4276
+ onChangeTargets: (f, v) => {
4277
+ y(f, v === "add");
4279
4278
  }
4280
4279
  }
4281
4280
  ),
@@ -4287,9 +4286,9 @@ const Id = ue((e) => {
4287
4286
  m(f);
4288
4287
  },
4289
4288
  cId: u,
4290
- opts: o == null ? void 0 : o.opts,
4289
+ opts: a == null ? void 0 : a.opts,
4291
4290
  onChangeOpts: (f) => {
4292
- C(f);
4291
+ x(f);
4293
4292
  }
4294
4293
  }
4295
4294
  )
@@ -4299,7 +4298,7 @@ const Id = ue((e) => {
4299
4298
  {
4300
4299
  value: r,
4301
4300
  onChange: (f) => {
4302
- v(f);
4301
+ b(f);
4303
4302
  }
4304
4303
  }
4305
4304
  ) })
@@ -4309,32 +4308,32 @@ const Id = ue((e) => {
4309
4308
  });
4310
4309
  function kd(e) {
4311
4310
  var h;
4312
- const { engine: t } = N(), { componentNode: n } = e, i = A(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), a = Id({
4311
+ const { engine: t } = N(), { componentNode: n } = e, i = L(() => t.component.get(n == null ? void 0 : n.cId), [n]), c = ht(), o = Id({
4313
4312
  onOk(u) {
4314
4313
  t.componentNode.update(n == null ? void 0 : n.id, (_) => {
4315
4314
  var m, y;
4316
- return (y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || y.call(m, (C) => C.triggerId !== (u == null ? void 0 : u.triggerId) ? !1 : (Object.assign(C, u), !0)), {
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)), {
4317
4316
  events: _ == null ? void 0 : _.events
4318
4317
  };
4319
4318
  });
4320
4319
  }
4321
- }), d = A(() => {
4320
+ }), d = L(() => {
4322
4321
  var u;
4323
4322
  return ((u = n == null ? void 0 : n.events) == null ? void 0 : u.map((_) => {
4324
- var y, C;
4325
- const m = (C = (y = i == null ? void 0 : i.triggers) == null ? void 0 : y.find) == null ? void 0 : C.call(y, (v) => (v == null ? void 0 : v.value) === _.triggerId);
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);
4326
4325
  return {
4327
4326
  label: `${(m == null ? void 0 : m.label) || "-"}`,
4328
4327
  value: `${_.triggerId}`
4329
4328
  };
4330
4329
  })) || [];
4331
4330
  }, [n, i]);
4332
- function o(u) {
4331
+ function a(u) {
4333
4332
  if (!(u != null && u.value)) {
4334
- E.warn("triggerId不存在");
4333
+ A.warn("triggerId不存在");
4335
4334
  return;
4336
4335
  }
4337
- a.open({
4336
+ o.open({
4338
4337
  componentNode: n,
4339
4338
  triggerId: u == null ? void 0 : u.value,
4340
4339
  triggerName: u == null ? void 0 : u.label
@@ -4345,21 +4344,21 @@ function kd(e) {
4345
4344
  var m, y;
4346
4345
  return {
4347
4346
  events: [
4348
- ...((y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : y.call(m, (C) => C.triggerId !== u)) || []
4347
+ ...((y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : y.call(m, (x) => x.triggerId !== u)) || []
4349
4348
  ]
4350
4349
  };
4351
4350
  });
4352
4351
  }
4353
4352
  function r(u) {
4354
- var m, y, C, v;
4353
+ var m, y, x, b;
4355
4354
  if (!u) {
4356
- E.warn("triggerId不存在");
4355
+ A.warn("triggerId不存在");
4357
4356
  return;
4358
4357
  }
4359
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);
4360
- (C = _ == null ? void 0 : _.targets) != null && C.length ? c({
4359
+ (x = _ == null ? void 0 : _.targets) != null && x.length ? c({
4361
4360
  title: "提醒",
4362
- content: `已配置${((v = _ == null ? void 0 : _.targets) == null ? void 0 : v.length) || 0}个事件项,确定删除该事件?`,
4361
+ content: `已配置${((b = _ == null ? void 0 : _.targets) == null ? void 0 : b.length) || 0}个事件项,确定删除该事件?`,
4363
4362
  onOk(I) {
4364
4363
  s(u), I();
4365
4364
  }
@@ -4373,10 +4372,10 @@ function kd(e) {
4373
4372
  /* @__PURE__ */ l("div", { className: G.eventList_item_body, children: u.label }),
4374
4373
  /* @__PURE__ */ g("div", { className: G.eventList_item_opt, children: [
4375
4374
  /* @__PURE__ */ l(
4376
- Ft,
4375
+ Yn,
4377
4376
  {
4378
4377
  className: G.eventList_item_opt_clickable,
4379
- onClick: () => o(u)
4378
+ onClick: () => a(u)
4380
4379
  }
4381
4380
  ),
4382
4381
  /* @__PURE__ */ l(
@@ -4427,27 +4426,27 @@ function Ad() {
4427
4426
  });
4428
4427
  }
4429
4428
  function c() {
4430
- const a = n.getFieldValue("code") || "";
4429
+ const o = n.getFieldValue("code") || "";
4431
4430
  try {
4432
- const d = JSON.parse(a);
4431
+ const d = JSON.parse(o);
4433
4432
  if (!vi(d)) {
4434
4433
  console.error("must be an object.");
4435
4434
  return;
4436
4435
  }
4437
- e.componentNode.update(t == null ? void 0 : t.id, d, { cover: !0 }), E.success("修改成功");
4436
+ e.componentNode.update(t == null ? void 0 : t.id, d, { cover: !0 }), A.success("修改成功");
4438
4437
  } catch (d) {
4439
- console.error(d), E.error("json格式不正确");
4438
+ console.error(d), A.error("json格式不正确");
4440
4439
  }
4441
4440
  }
4442
- return w(() => {
4441
+ return E(() => {
4443
4442
  i();
4444
4443
  }, [t]), /* @__PURE__ */ g(M, { className: Ze.json, form: n, children: [
4445
4444
  /* @__PURE__ */ g("div", { className: Ze.json_head, children: [
4446
4445
  /* @__PURE__ */ g("span", { children: [
4447
4446
  /* @__PURE__ */ l("b", { style: { marginRight: 8 }, children: "ComponentNode数据" }),
4448
- /* @__PURE__ */ l(T, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
4447
+ /* @__PURE__ */ l($, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
4449
4448
  ] }),
4450
- /* @__PURE__ */ l(T, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
4449
+ /* @__PURE__ */ l($, { title: "保存", placement: "top", children: /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: c }) })
4451
4450
  ] }),
4452
4451
  /* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
4453
4452
  X,
@@ -4468,18 +4467,18 @@ function Ad() {
4468
4467
  }
4469
4468
  const Ld = "_singleAttributes_109pm_59", Dd = {
4470
4469
  singleAttributes: Ld
4471
- }, fn = In({}), he = () => kn(fn);
4472
- function yn(e) {
4473
- const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [a, d] = S(), o = nn(c);
4474
- return w(() => {
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);
4473
+ return E(() => {
4475
4474
  const s = i.componentNode.get(c.id);
4476
4475
  return s && d(s), i.componentNode.onChange(c.id, ({ payload: r }) => {
4477
4476
  d({ ...r });
4478
4477
  });
4479
- }, [c.id]), w(() => i.onJsonChange(() => {
4478
+ }, [c.id]), E(() => i.onJsonChange(() => {
4480
4479
  var s;
4481
- d(i.componentNode.get((s = o == null ? void 0 : o.current) == null ? void 0 : s.id));
4482
- }), []), A(() => a ? /* @__PURE__ */ l(fn.Provider, { value: { instance: c, componentNode: a }, children: /* @__PURE__ */ l(
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(
4483
4482
  ei,
4484
4483
  {
4485
4484
  className: Dd.singleAttributes,
@@ -4504,14 +4503,14 @@ function yn(e) {
4504
4503
  }
4505
4504
  ]
4506
4505
  }
4507
- ) }) : /* @__PURE__ */ l(xt, { image: xt.PRESENTED_IMAGE_SIMPLE, description: "暂无数据" }), [c, a, n.language]);
4506
+ ) }) : /* @__PURE__ */ l(xt, { image: xt.PRESENTED_IMAGE_SIMPLE, description: "暂无数据" }), [c, o, n.language]);
4508
4507
  }
4509
- const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66", Md = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
4508
+ const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66", Bd = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
4510
4509
  multipleInstanceAttributes: Od,
4511
4510
  multipleInstanceAttributes_header: Pd,
4512
- multipleInstanceAttributes_body: Md
4511
+ multipleInstanceAttributes_body: Bd
4513
4512
  };
4514
- function Bd(e) {
4513
+ function Md(e) {
4515
4514
  const t = yt();
4516
4515
  return /* @__PURE__ */ l(
4517
4516
  Ce,
@@ -4530,31 +4529,31 @@ function Bd(e) {
4530
4529
  }
4531
4530
  function jd(e) {
4532
4531
  const { instances: t } = e, [n, i] = S();
4533
- return w(() => {
4532
+ return E(() => {
4534
4533
  i(t[0]);
4535
4534
  }, [t]), /* @__PURE__ */ g("div", { className: Qe.multipleInstanceAttributes, children: [
4536
4535
  /* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_header, children: /* @__PURE__ */ l(
4537
- Bd,
4536
+ Md,
4538
4537
  {
4539
4538
  allowClear: !1,
4540
4539
  style: { width: "100%" },
4541
4540
  value: n == null ? void 0 : n.id,
4542
4541
  onChange: (c) => {
4543
- i(t.find((a) => a.id === c));
4542
+ i(t.find((o) => o.id === c));
4544
4543
  }
4545
4544
  }
4546
4545
  ) }),
4547
- /* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(yn, { instance: n }) })
4546
+ /* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_body, children: n && /* @__PURE__ */ l(fn, { instance: n }) })
4548
4547
  ] });
4549
4548
  }
4550
- const zd = "_pageAttributes_u2l2i_59", Td = "_pageAttributes_description_u2l2i_65", $d = "_pageAttributes_body_u2l2i_70", pe = {
4551
- pageAttributes: zd,
4552
- pageAttributes_description: Td,
4549
+ const Td = "_pageAttributes_u2l2i_59", zd = "_pageAttributes_description_u2l2i_65", $d = "_pageAttributes_body_u2l2i_70", pe = {
4550
+ pageAttributes: Td,
4551
+ pageAttributes_description: zd,
4553
4552
  pageAttributes_body: $d
4554
4553
  };
4555
4554
  function Rd() {
4556
4555
  const { engine: e } = N(), [t] = se(), n = bi(), { id: i, options: c } = n || {};
4557
- function a(d) {
4556
+ function o(d) {
4558
4557
  e.page.update(i, {
4559
4558
  options: {
4560
4559
  ...c,
@@ -4588,16 +4587,16 @@ function Rd() {
4588
4587
  style: { flex: 1 },
4589
4588
  value: c == null ? void 0 : c.background,
4590
4589
  onChange: (d) => {
4591
- a({ background: d });
4590
+ o({ background: d });
4592
4591
  }
4593
4592
  }
4594
4593
  ),
4595
- /* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
4594
+ /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4596
4595
  Z,
4597
4596
  {
4598
4597
  className: "icon_clickable",
4599
4598
  onClick: () => {
4600
- a({ background: "white" });
4599
+ o({ background: "white" });
4601
4600
  }
4602
4601
  }
4603
4602
  ) })
@@ -4617,16 +4616,16 @@ function Rd() {
4617
4616
  style: { flex: 1 },
4618
4617
  value: c == null ? void 0 : c.whiteBoardColor,
4619
4618
  onChange: (d) => {
4620
- a({ whiteBoardColor: d });
4619
+ o({ whiteBoardColor: d });
4621
4620
  }
4622
4621
  }
4623
4622
  ),
4624
- /* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
4623
+ /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4625
4624
  Z,
4626
4625
  {
4627
4626
  className: "icon_clickable",
4628
4627
  onClick: () => {
4629
- a({ whiteBoardColor: "white" });
4628
+ o({ whiteBoardColor: "white" });
4630
4629
  }
4631
4630
  }
4632
4631
  ) })
@@ -4645,7 +4644,7 @@ function Rd() {
4645
4644
  {
4646
4645
  checked: c == null ? void 0 : c.bordered,
4647
4646
  onChange: (d) => {
4648
- a({
4647
+ o({
4649
4648
  bordered: d.target.checked
4650
4649
  });
4651
4650
  }
@@ -4658,16 +4657,16 @@ function Rd() {
4658
4657
  style: { flex: 1 },
4659
4658
  value: c == null ? void 0 : c.borderColor,
4660
4659
  onChange: (d) => {
4661
- a({ borderColor: d });
4660
+ o({ borderColor: d });
4662
4661
  }
4663
4662
  }
4664
4663
  ),
4665
- /* @__PURE__ */ l(T, { title: t("reset"), children: /* @__PURE__ */ l(
4664
+ /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4666
4665
  Z,
4667
4666
  {
4668
4667
  className: "icon_clickable",
4669
4668
  onClick: () => {
4670
- a({ borderColor: "white" });
4669
+ o({ borderColor: "white" });
4671
4670
  }
4672
4671
  }
4673
4672
  ) })
@@ -4679,11 +4678,11 @@ function Rd() {
4679
4678
  ] });
4680
4679
  }
4681
4680
  function Fd() {
4682
- const e = yt(), t = A(() => !!e.length, [e]), n = A(() => e.length === 1, [e]);
4681
+ const e = yt(), t = L(() => !!e.length, [e]), n = L(() => e.length === 1, [e]);
4683
4682
  return /* @__PURE__ */ l("div", { className: so.attributes, children: t ? (
4684
4683
  // 选中组件实例配置
4685
4684
  /* @__PURE__ */ g(W, { children: [
4686
- n && /* @__PURE__ */ l(yn, { instance: e[0] }),
4685
+ n && /* @__PURE__ */ l(fn, { instance: e[0] }),
4687
4686
  !n && /* @__PURE__ */ l(jd, { instances: e })
4688
4687
  ] })
4689
4688
  ) : (
@@ -4693,13 +4692,20 @@ function Fd() {
4693
4692
  }
4694
4693
  function Cr(e) {
4695
4694
  const { engine: t, json: n, pageFooter: i } = e;
4696
- return pi(), zt.useEffect(() => {
4695
+ return pi(), Tt.useEffect(() => {
4697
4696
  t.loadJSON(n).then(() => {
4698
4697
  var c;
4699
4698
  (c = e == null ? void 0 : e.onJSONLoad) == null || c.call(e);
4700
4699
  });
4701
4700
  }, []), /* @__PURE__ */ g("div", { className: te.page, children: [
4702
- /* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(El, { pageLogo: e == null ? void 0 : e.pageLogo }) }),
4701
+ /* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(
4702
+ El,
4703
+ {
4704
+ pageLogo: e == null ? void 0 : e.pageLogo,
4705
+ pageToolBar: e == null ? void 0 : e.pageToolBar,
4706
+ toolBarOptions: e == null ? void 0 : e.toolBarOptions
4707
+ }
4708
+ ) }),
4703
4709
  /* @__PURE__ */ g("div", { className: te.page_body, children: [
4704
4710
  /* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(_a, {}) }),
4705
4711
  /* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),