react-big-screen 0.0.24 → 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 (44) hide show
  1. package/es/{attributes-DRRt0HtT.mjs → attributes-B-HnT330.mjs} +1 -1
  2. package/es/{attributes-BNGJPVyh.mjs → attributes-BU4RteR4.mjs} +1 -1
  3. package/es/{attributes-DEejGpyc.mjs → attributes-BVf57pkp.mjs} +1 -1
  4. package/es/{attributes-CH9MBgiG.mjs → attributes-BbimeCWH.mjs} +1 -1
  5. package/es/{attributes-CUgbOLAh.mjs → attributes-BpbbmYhM.mjs} +1 -1
  6. package/es/{attributes-CJsbMpOn.mjs → attributes-CMthjycV.mjs} +1 -1
  7. package/es/{attributes-CfPeTY5D.mjs → attributes-CRXnxBzA.mjs} +2 -2
  8. package/es/{attributes-RjWkk9Ep.mjs → attributes-CT0FOCY5.mjs} +1 -1
  9. package/es/{attributes-DRoIzLZg.mjs → attributes-CtQvGbYt.mjs} +1 -1
  10. package/es/{attributes-2p9Zk1-n.mjs → attributes-DsE3dkzP.mjs} +1 -1
  11. package/es/{attributes-8wJNGwLE.mjs → attributes-Dz98d9lm.mjs} +1 -1
  12. package/es/{attributes-CdSoE5xJ.mjs → attributes-aebdh3-2.mjs} +1 -1
  13. package/es/{index-BaLteAvQ.mjs → index-BJWDg_cD.mjs} +2 -2
  14. package/es/{index-Df0DLqCw.mjs → index-BTio6V_c.mjs} +2 -2
  15. package/es/{index-B0NWyl8u.mjs → index-BlOuO44L.mjs} +2 -2
  16. package/es/{index-BeTrQloT.mjs → index-BoLXnAtC.mjs} +3 -3
  17. package/es/{index-CV1vqX8-.mjs → index-BuyncOQP.mjs} +2 -2
  18. package/es/{index-CQp7fz9I.mjs → index-By-60WbF.mjs} +2 -2
  19. package/es/{index-BjMdtwev.mjs → index-ByNVYAww.mjs} +2 -2
  20. package/es/{index-Dbkk-b9S.mjs → index-BydqrGsF.mjs} +92 -89
  21. package/es/{index-Bn3nDy5T.mjs → index-C1IN4HrE.mjs} +2 -2
  22. package/es/{index-Bh0co1x-.mjs → index-CCU-VzDv.mjs} +1 -1
  23. package/es/{index-ByVgagvo.mjs → index-CFg0WKFQ.mjs} +715 -704
  24. package/es/{index-DHZzVkTM.mjs → index-CIspZGHv.mjs} +2 -2
  25. package/es/{index-C9Wc2Kzs.mjs → index-COVxsHS9.mjs} +3 -3
  26. package/es/{index-DGJ8dCRu.mjs → index-CVCPzSmu.mjs} +2 -2
  27. package/es/{index-DHoxa3x_.mjs → index-CW1RuHQK.mjs} +3 -3
  28. package/es/{index-BOqgdslU.mjs → index-ChS976cJ.mjs} +2 -2
  29. package/es/{index-D9YQ4kEQ.mjs → index-D7TCGxYg.mjs} +2 -2
  30. package/es/{index-CnzZjrjU.mjs → index-D8iQUy0r.mjs} +2 -2
  31. package/es/{index-DiAdz_6L.mjs → index-DC_DhKaS.mjs} +3 -3
  32. package/es/{index-CR_TAWUR.mjs → index-DW5eZVLq.mjs} +2 -2
  33. package/es/{index-D66jJN7b.mjs → index-GzFjRCz_.mjs} +1 -1
  34. package/es/{index-4S2OXFT4.mjs → index-V6j7Zu7r.mjs} +2 -2
  35. package/es/{index-DUvmwvc8.mjs → index-gBfOXBIy.mjs} +2 -2
  36. package/es/{index-Bely-J50.mjs → index-oK1Pyk5T.mjs} +2 -2
  37. package/es/{index-COuWSAwb.mjs → index-qyKdx0SV.mjs} +2 -2
  38. package/es/{index-CS4fwJHw.mjs → index-sSfWkA8B.mjs} +2 -2
  39. package/es/index.mjs +1 -1
  40. package/es/{selectPage-BQ7Fdnqf.mjs → selectPage-BdrK7e7G.mjs} +1 -1
  41. package/es/{useCurrentPageId-6JCOgaZV.mjs → useCurrentPageId-CPdhqp51.mjs} +1 -1
  42. package/package.json +1 -1
  43. package/types/src/export/index.d.ts +2 -2
  44. package/types/src/pages/components/Header/index.d.ts +9 -0
@@ -2,21 +2,21 @@ var yn = Object.defineProperty;
2
2
  var vn = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
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 Tt, { useRef as M, useEffect as w, useMemo as A, useState as S, forwardRef as bn, useImperativeHandle as Cn, Suspense as zt, createContext as xn, useContext as In } from "react";
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
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 E, Tooltip as z, 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 B, 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 $ 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-Dbkk-b9S.mjs";
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
12
  import { createRoot as Jt } from "react-dom/client";
13
13
  import "driver.js";
14
14
  import "driver.js/dist/driver.css";
15
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-CnzZjrjU.mjs";
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
17
  import { useUpdateEffect as _t, useUnmount as Zt, useRequest as Qt } from "ahooks";
18
18
  import "react-color";
19
- import { I as p, L as Le, a as T, C as Ci, b as $e } from "./Line-CgKiUu04.mjs";
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";
21
21
  import { useTranslation as se } from "react-i18next";
22
22
  import lt from "hotkeys-js";
@@ -30,16 +30,16 @@ import "monaco-editor/esm/vs/language/typescript/monaco.contribution";
30
30
  import ft from "jszip";
31
31
  import { saveAs as pt } from "file-saver";
32
32
  import { u as en } from "./useEffectOnce-l5sUTCBG.mjs";
33
- import { u as wi, s as Re } from "./selectPage-BQ7Fdnqf.mjs";
34
- import { u as Ei } from "./useCurrentPageId-6JCOgaZV.mjs";
33
+ import { u as wi, s as Re } from "./selectPage-BdrK7e7G.mjs";
34
+ import { u as Ei } from "./useCurrentPageId-CPdhqp51.mjs";
35
35
  import { u as tn } from "./useListenRef-B01dENv0.mjs";
36
- import { I as Ce } from "./index-Bh0co1x-.mjs";
36
+ import { I as Ce } from "./index-CCU-VzDv.mjs";
37
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);
@@ -60,12 +60,12 @@ async function ln(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 = M(), i = M(null), c = M(), { 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 = Jt(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,13 +124,13 @@ 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() {
@@ -141,7 +141,7 @@ function Pi() {
141
141
  }
142
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
  });
@@ -181,7 +181,7 @@ function ji(e) {
181
181
  }), () => t.forEach((n) => n());
182
182
  }
183
183
  function Ti(e) {
184
- w(() => ji(e), []);
184
+ E(() => ji(e), []);
185
185
  }
186
186
  function at() {
187
187
  const e = k.getActiveEngine();
@@ -230,9 +230,9 @@ function Fi() {
230
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
  );
@@ -451,10 +451,10 @@ const el = "_page_1ijjl_59", tl = "_page_header_1ijjl_69", nl = "_page_body_1ijj
451
451
  tooltipButton_disabled: ul
452
452
  };
453
453
  function dn(e) {
454
- return /* @__PURE__ */ l(z, { title: e == null ? void 0 : e.title, children: /* @__PURE__ */ l(
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) => {
@@ -586,7 +586,7 @@ 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}%` }),
589
+ /* @__PURE__ */ l("span", { style: { marginRight: 4 }, children: `${a}%` }),
590
590
  /* @__PURE__ */ l(kn, {})
591
591
  ] })
592
592
  }
@@ -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(Nn, {}) }),
729
- /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(tt, {}) }),
730
- /* @__PURE__ */ l(P, { children: /* @__PURE__ */ l(wn, {}) })
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-Dbkk-b9S.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-Dbkk-b9S.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,7 +852,7 @@ function Nl() {
852
852
  }
853
853
  const wl = xl();
854
854
  function El(e) {
855
- const { pageLogo: t, pageToolBar: n } = e, { engine: i, rbsEngine: c } = N(), [a, d] = se(), o = cn(), s = d.language === ci.zh, r = 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, {}),
@@ -860,34 +860,38 @@ function El(e) {
860
860
  },
861
861
  {
862
862
  key: "undo",
863
- description: a("head.undo"),
864
- disabled: !o.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: a("head.cancelUndo"),
870
- disabled: !o.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: a("head.export"), icon: /* @__PURE__ */ l(An, {}) },
874
- { key: "import", description: a("head.import"), icon: /* @__PURE__ */ l($t, {}) },
875
- { key: "clear", description: a("head.clear"), icon: /* @__PURE__ */ l(Rt, {}) },
876
- {
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 && {
877
877
  key: "language",
878
- description: a("head.language", { text: `${s ? "切换英语" : "change chinese"}` }),
878
+ description: s("head.language", { text: `${u ? "切换英语" : "change chinese"}` }),
879
879
  icon: /* @__PURE__ */ l(Ln, {})
880
880
  },
881
- { key: "save", description: a("head.save"), icon: /* @__PURE__ */ l(Q, {}) }
882
- ], [d.language, o.isCanGoForward, o.isCanGoBack]);
883
- function h() {
881
+ o && {
882
+ key: "save",
883
+ description: s("head.save"),
884
+ icon: /* @__PURE__ */ l(Q, {})
885
+ }
886
+ ].filter(Boolean), [r.language, h.isCanGoForward, h.isCanGoBack, i, o]);
887
+ function m() {
884
888
  window.open("https://github.com/tangjiahui-cn/react-big-screen.git");
885
889
  }
886
- async function u() {
887
- c == null || c.emit("startPreview", i);
890
+ async function y() {
891
+ a == null || a.emit("startPreview", d);
888
892
  }
889
- function _(I) {
890
- switch (I.key) {
893
+ function x(C) {
894
+ switch (C.key) {
891
895
  case "undo":
892
896
  bt();
893
897
  break;
@@ -895,73 +899,73 @@ function El(e) {
895
899
  ot();
896
900
  break;
897
901
  case "export":
898
- i.getJSON().then((y) => {
899
- const x = JSON.stringify(y);
900
- qt(x, "大屏看板.json");
902
+ d.getJSON().then((P) => {
903
+ const T = JSON.stringify(P);
904
+ qt(T, "大屏看板.json");
901
905
  });
902
906
  break;
903
907
  case "import":
904
- Ai().then((y) => {
905
- if (!y)
906
- return E.warn("文件内容不能为空");
908
+ Ai().then((P) => {
909
+ if (!P)
910
+ return A.warn("文件内容不能为空");
907
911
  try {
908
- const x = JSON.parse(y);
909
- i.loadJSON(x);
912
+ const T = JSON.parse(P);
913
+ d.loadJSON(T);
910
914
  } catch {
911
- E.error("请上传json格式文件");
915
+ A.error("请上传json格式文件");
912
916
  }
913
917
  });
914
918
  break;
915
919
  case "preview":
916
- u();
920
+ y();
917
921
  break;
918
922
  case "save":
919
923
  vt();
920
924
  break;
921
925
  case "clear":
922
- i.clear();
926
+ d.clear();
923
927
  break;
924
928
  case "settings":
925
929
  break;
926
930
  case "language":
927
- const f = s ? "en" : "zh";
928
- ai(f), i.config.setConfig({ language: f });
931
+ const w = u ? "en" : "zh";
932
+ ai(w), d.config.setConfig({ language: w });
929
933
  break;
930
934
  }
931
935
  }
932
- const m = /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
936
+ const b = /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
933
937
  /* @__PURE__ */ l("b", { children: "BigScreen" }),
934
- !wl && /* @__PURE__ */ l(Dn, { style: { cursor: "pointer", fontSize: 16 }, onClick: h })
935
- ] }), v = /* @__PURE__ */ g(W, { children: [
936
- r.map((I) => /* @__PURE__ */ l(
938
+ !wl && /* @__PURE__ */ l(Dn, { style: { cursor: "pointer", fontSize: 16 }, onClick: m })
939
+ ] }), I = /* @__PURE__ */ g(W, { children: [
940
+ _.map((C) => /* @__PURE__ */ l(
937
941
  dn,
938
942
  {
939
- disabled: I == null ? void 0 : I.disabled,
940
- title: I.description,
941
- onClick: () => _(I),
942
- children: I == null ? void 0 : I.icon
943
+ disabled: C == null ? void 0 : C.disabled,
944
+ title: C.description,
945
+ onClick: () => x(C),
946
+ children: C == null ? void 0 : C.icon
943
947
  },
944
- I.key
948
+ C.key
945
949
  )),
946
- /* @__PURE__ */ l(
950
+ c && /* @__PURE__ */ l(
947
951
  K,
948
952
  {
949
953
  type: "primary",
950
954
  size: "small",
951
955
  style: { fontSize: 12 },
952
956
  id: "rbs-preview",
953
- onClick: u,
957
+ onClick: y,
954
958
  children: "开始预览"
955
959
  }
956
960
  )
957
- ] }), C = "rbs-tool-bar", b = n ? typeof n == "function" ? /* @__PURE__ */ l(n, { origin: v, previewDriverId: C }) : n : v;
961
+ ] }), f = "rbs-tool-bar", v = n ? typeof n == "function" ? /* @__PURE__ */ l(n, { origin: I, previewDriverId: f }) : n : I;
958
962
  return /* @__PURE__ */ g("div", { className: Ie.header, children: [
959
- t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t : m,
963
+ t ? typeof t == "function" ? /* @__PURE__ */ l(t, {}) : t : b,
960
964
  /* @__PURE__ */ l(vl, {}),
961
965
  /* @__PURE__ */ g("div", { className: Ie.header_flex, children: [
962
966
  /* @__PURE__ */ l(Sl, {}),
963
967
  /* @__PURE__ */ l(Nl, {}),
964
- /* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: C, children: b })
968
+ /* @__PURE__ */ l("div", { className: Ie.header_flex_btnContainer, id: f, children: v })
965
969
  ] })
966
970
  ] });
967
971
  }
@@ -1001,19 +1005,19 @@ const At = new Rl();
1001
1005
  function Fl(e, t) {
1002
1006
  let n = !1;
1003
1007
  e.addEventListener("mousedown", c);
1004
- function i(o) {
1008
+ function i(a) {
1005
1009
  var s;
1006
- 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 }));
1007
1011
  }
1008
1012
  function c() {
1009
- e.addEventListener("mousemove", i), window.addEventListener("mouseup", a);
1013
+ e.addEventListener("mousemove", i), window.addEventListener("mouseup", o);
1010
1014
  }
1011
- function a(o) {
1015
+ function o(a) {
1012
1016
  var s;
1013
- (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();
1014
1018
  }
1015
1019
  function d() {
1016
- n = !1, e.removeEventListener("mousemove", i), window.removeEventListener("mouseup", a);
1020
+ n = !1, e.removeEventListener("mousemove", i), window.removeEventListener("mouseup", o);
1017
1021
  }
1018
1022
  return () => {
1019
1023
  d(), e.removeEventListener("mousedown", c);
@@ -1070,8 +1074,8 @@ class Hl {
1070
1074
  }
1071
1075
  const ce = new Hl();
1072
1076
  function rn(e, t) {
1073
- const n = M(t);
1074
- n.current = t, w(() => {
1077
+ const n = j(t);
1078
+ n.current = t, E(() => {
1075
1079
  const i = e.current;
1076
1080
  if (!i) {
1077
1081
  console.warn("dom must be set.");
@@ -1089,8 +1093,8 @@ function rn(e, t) {
1089
1093
  }, []);
1090
1094
  }
1091
1095
  function sn(e, t) {
1092
- const n = M(t);
1093
- n.current = t, w(() => {
1096
+ const n = j(t);
1097
+ n.current = t, E(() => {
1094
1098
  const { accept: i } = t;
1095
1099
  if (i && !Array.isArray(i))
1096
1100
  throw new Error("accept must be a string array.");
@@ -1099,21 +1103,21 @@ function sn(e, t) {
1099
1103
  console.warn("dom must be set.");
1100
1104
  return;
1101
1105
  }
1102
- const a = (d) => {
1106
+ const o = (d) => {
1103
1107
  var s, r, h;
1104
1108
  if (!ce.getIsDragging())
1105
1109
  return;
1106
- const o = ce.getDragOptions();
1107
- 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);
1108
1112
  };
1109
- return c.addEventListener("mouseup", a), () => {
1110
- c.removeEventListener("mouseup", a);
1113
+ return c.addEventListener("mouseup", o), () => {
1114
+ c.removeEventListener("mouseup", o);
1111
1115
  };
1112
1116
  }, []);
1113
1117
  }
1114
1118
  function xe(e) {
1115
1119
  const { src: t } = e, [n, i] = S("");
1116
- return w(() => {
1120
+ return E(() => {
1117
1121
  switch (typeof t) {
1118
1122
  case "string":
1119
1123
  i(t);
@@ -1127,7 +1131,7 @@ function xe(e) {
1127
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" });
1128
1132
  }
1129
1133
  function Kl(e) {
1130
- const { component: t } = e, n = M(null);
1134
+ const { component: t } = e, n = j(null);
1131
1135
  return rn(n, {
1132
1136
  type: "create-component",
1133
1137
  data: {
@@ -1137,7 +1141,7 @@ function Kl(e) {
1137
1141
  "div",
1138
1142
  {
1139
1143
  style: e == null ? void 0 : e.style,
1140
- className: $(Ue.componentItem, e == null ? void 0 : e.className),
1144
+ className: R(Ue.componentItem, e == null ? void 0 : e.className),
1141
1145
  ref: n,
1142
1146
  children: [
1143
1147
  /* @__PURE__ */ l("div", { className: Ue.componentItem_body, children: /* @__PURE__ */ l(xe, { src: t == null ? void 0 : t.icon, style: { maxWidth: "50%", maxHeight: "50%" } }) }),
@@ -1147,15 +1151,15 @@ function Kl(e) {
1147
1151
  );
1148
1152
  }
1149
1153
  function Ul(e) {
1150
- var a;
1151
- 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(() => ({
1152
1156
  width: `${100 / n}%`,
1153
1157
  lines: Math.ceil(t.length / n)
1154
1158
  }), [t, n]);
1155
1159
  return /* @__PURE__ */ g("div", { className: jl.componentsBlock, children: [
1156
1160
  !(t != null && t.length) && /* @__PURE__ */ l(U, { description: "暂无组件" }),
1157
- (a = t == null ? void 0 : t.map) == null ? void 0 : a.call(t, (d, o) => {
1158
- 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;
1159
1163
  return /* @__PURE__ */ l(
1160
1164
  Kl,
1161
1165
  {
@@ -1177,37 +1181,37 @@ function Lt(e, t = "") {
1177
1181
  return e.filter((i) => i.cName.toLowerCase().includes(n) || i.cId.toLowerCase().includes(n));
1178
1182
  }
1179
1183
  function ql() {
1180
- 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(() => ({
1181
1185
  base: e("menu.library.base"),
1182
1186
  charts: e("menu.library.charts"),
1183
1187
  layout: e("menu.library.layout"),
1184
1188
  nav: e("menu.library.nav"),
1185
1189
  unknown: e("menu.library.unknown")
1186
- }), [t.language]), h = A(() => ui((_, m = "") => {
1187
- const v = Lt(_, m);
1188
- s(v);
1190
+ }), [t.language]), h = L(() => ui((_, m = "") => {
1191
+ const y = Lt(_, m);
1192
+ s(y);
1189
1193
  }, 500), []);
1190
- w(() => {
1191
- s(Lt(c, a));
1194
+ E(() => {
1195
+ s(Lt(c, o));
1192
1196
  }, [c]), _t(() => {
1193
- h(c, a);
1194
- }, [a]);
1195
- const u = A(() => {
1197
+ h(c, o);
1198
+ }, [o]);
1199
+ const u = L(() => {
1196
1200
  const _ = [], m = Object.entries(
1197
- hi(o, (v) => v.category || "unknown")
1198
- ).map(([v, C]) => (_.push(v), {
1199
- key: v,
1200
- components: C,
1201
- label: r[v] || v
1201
+ hi(a, (y) => y.category || "unknown")
1202
+ ).map(([y, x]) => (_.push(y), {
1203
+ key: y,
1204
+ components: x,
1205
+ label: r[y] || y
1202
1206
  }));
1203
1207
  return i(_), m;
1204
- }, [o, r]);
1208
+ }, [a, r]);
1205
1209
  return /* @__PURE__ */ g("div", { className: Ke.library, children: [
1206
1210
  /* @__PURE__ */ l("div", { className: Ke.library_header, children: /* @__PURE__ */ l(
1207
1211
  Qn.Search,
1208
1212
  {
1209
1213
  allowClear: !0,
1210
- value: a,
1214
+ value: o,
1211
1215
  placeholder: "搜索组件",
1212
1216
  onChange: (_) => {
1213
1217
  d(_.target.value);
@@ -1239,7 +1243,7 @@ const Jl = "_componentNodes_x43ss_59", Wl = "_componentNodes_head_x43ss_63", Vl
1239
1243
  componentNodeItem_tail_operatable: pl
1240
1244
  };
1241
1245
  function ec(e) {
1242
- const { engine: t } = N(), n = M(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(() => ({
1243
1247
  component: t.component.get(i == null ? void 0 : i.cId),
1244
1248
  instance: t.instance.get(i == null ? void 0 : i.id)
1245
1249
  }), [i]);
@@ -1259,14 +1263,14 @@ function ec(e) {
1259
1263
  show: h
1260
1264
  });
1261
1265
  }
1262
- return w(() => t.componentNode.onChange(i.id, ({ payload: h }) => {
1266
+ return E(() => t.componentNode.onChange(i.id, ({ payload: h }) => {
1263
1267
  c({ ...h });
1264
1268
  }), []), /* @__PURE__ */ g(
1265
1269
  "div",
1266
1270
  {
1267
1271
  [`data-${oe.componentNodeId}`]: i.id,
1268
1272
  ref: n,
1269
- className: $(
1273
+ className: R(
1270
1274
  ne.componentNodeItem,
1271
1275
  (e == null ? void 0 : e.isSelected) && ne.componentNodeItem_selected
1272
1276
  ),
@@ -1275,11 +1279,11 @@ function ec(e) {
1275
1279
  },
1276
1280
  onMouseEnter: () => {
1277
1281
  var h;
1278
- (h = o == null ? void 0 : o.handleHover) == null || h.call(o);
1282
+ (h = a == null ? void 0 : a.handleHover) == null || h.call(a);
1279
1283
  },
1280
1284
  onMouseLeave: () => {
1281
1285
  var h;
1282
- (h = o == null ? void 0 : o.handleUnHover) == null || h.call(o);
1286
+ (h = a == null ? void 0 : a.handleUnHover) == null || h.call(a);
1283
1287
  },
1284
1288
  children: [
1285
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,9 +1295,9 @@ function ec(e) {
1291
1295
  {
1292
1296
  className: ne.componentNodeItem_tail_operatable,
1293
1297
  onMouseDown: (h) => {
1294
- h.stopPropagation(), r(!a);
1298
+ h.stopPropagation(), r(!o);
1295
1299
  },
1296
- children: a ? /* @__PURE__ */ l(On, {}) : /* @__PURE__ */ l(Pn, {})
1300
+ children: o ? /* @__PURE__ */ l(On, {}) : /* @__PURE__ */ l(Pn, {})
1297
1301
  }
1298
1302
  )
1299
1303
  ] })
@@ -1316,19 +1320,19 @@ const tc = "_renderContextMenu_vitq8_59", nc = {
1316
1320
  left: 0
1317
1321
  };
1318
1322
  function uc(e) {
1319
- 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);
1320
1324
  function h(_) {
1321
- var v, C, b;
1322
- if ((v = e == null ? void 0 : e.onMouseEnter) == null || v.call(e, _), !(i != null && i.length))
1325
+ var y, x, b;
1326
+ if ((y = e == null ? void 0 : e.onMouseEnter) == null || y.call(e, _), !(i != null && i.length))
1323
1327
  return;
1324
- const m = (b = (C = _.target) == null ? void 0 : C.getBoundingClientRect) == null ? void 0 : b.call(C);
1325
- 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));
1326
1330
  }
1327
1331
  function u(_) {
1328
1332
  var m;
1329
- (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);
1330
1334
  }
1331
- return /* @__PURE__ */ g("div", { ...a, onMouseEnter: h, onMouseLeave: u, children: [
1335
+ return /* @__PURE__ */ g("div", { ...o, onMouseEnter: h, onMouseLeave: u, children: [
1332
1336
  n,
1333
1337
  d && si(
1334
1338
  /* @__PURE__ */ l(
@@ -1358,32 +1362,32 @@ function uc(e) {
1358
1362
  function un(e) {
1359
1363
  var t, n;
1360
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) => {
1361
- var a;
1365
+ var o;
1362
1366
  const c = !(i != null && i.disabled) && ((i == null ? void 0 : i.selectable) ?? (i == null ? void 0 : i.selectable) === void 0);
1363
1367
  return /* @__PURE__ */ g(
1364
1368
  uc,
1365
1369
  {
1366
1370
  items: i == null ? void 0 : i.children,
1367
1371
  style: i == null ? void 0 : i.style,
1368
- className: $(
1372
+ className: R(
1369
1373
  ge.renderList_item,
1370
1374
  (i == null ? void 0 : i.disabled) && ge.renderList_disabled,
1371
1375
  !c && ge.renderList_item_unselectable
1372
1376
  ),
1373
- onSelect: (d, o) => {
1377
+ onSelect: (d, a) => {
1374
1378
  var s, r;
1375
- (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));
1376
1380
  },
1377
1381
  onClick: (d) => {
1378
- var o, s;
1379
- 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));
1380
1384
  },
1381
1385
  children: [
1382
1386
  /* @__PURE__ */ g("div", { className: ge.renderList_item_title, style: i == null ? void 0 : i.titleStyle, children: [
1383
1387
  i == null ? void 0 : i.icon,
1384
1388
  i == null ? void 0 : i.title
1385
1389
  ] }),
1386
- !!((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" } })
1387
1391
  ]
1388
1392
  },
1389
1393
  i == null ? void 0 : i.key
@@ -1391,11 +1395,11 @@ function un(e) {
1391
1395
  }) });
1392
1396
  }
1393
1397
  function hc(e) {
1394
- const t = M(null);
1395
- return w(() => {
1398
+ const t = j(null);
1399
+ return E(() => {
1396
1400
  function n(i) {
1397
- var c, a, d;
1398
- (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);
1399
1403
  }
1400
1404
  return window.addEventListener("click", n), () => {
1401
1405
  window.removeEventListener("click", n);
@@ -1428,27 +1432,27 @@ function hn(e, t, n, i) {
1428
1432
  return;
1429
1433
  const c = document.createElement("div");
1430
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);
1431
- const a = Jt(c);
1435
+ const o = Jt(c);
1432
1436
  let d = !1;
1433
- const o = () => {
1437
+ const a = () => {
1434
1438
  var r, h;
1435
- 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);
1436
1440
  };
1437
- return a.render(
1441
+ return o.render(
1438
1442
  /* @__PURE__ */ l(
1439
1443
  hc,
1440
1444
  {
1441
1445
  items: n,
1442
1446
  onClickOuter: () => {
1443
- o();
1447
+ a();
1444
1448
  },
1445
1449
  onSelect: (r) => {
1446
1450
  var h;
1447
- (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();
1448
1452
  }
1449
1453
  }
1450
1454
  )
1451
- ), o;
1455
+ ), a;
1452
1456
  }
1453
1457
  const gc = [
1454
1458
  {
@@ -1527,12 +1531,12 @@ function _c(e, t) {
1527
1531
  return hn(e.clientX, e.clientY, gc, {
1528
1532
  zIndex: (n = t == null ? void 0 : t.componentNode) == null ? void 0 : n.getMaxLevel(),
1529
1533
  onBeforeOpen(i) {
1530
- let c = 0, a = !1;
1531
- 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) => {
1532
1536
  const r = s.getComponentNode();
1533
- return r != null && r.lock && c++, r.groupId && (a = !0), r;
1537
+ return r != null && r.lock && c++, r.groupId && (o = !0), r;
1534
1538
  });
1535
- 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;
1536
1540
  }
1537
1541
  });
1538
1542
  }
@@ -1578,8 +1582,8 @@ function gn(e) {
1578
1582
  contextmenu(n) {
1579
1583
  var d;
1580
1584
  Dt(), n.preventDefault();
1581
- 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);
1582
- 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) {
1583
1587
  ve.push(_c(n, t));
1584
1588
  return;
1585
1589
  }
@@ -1590,13 +1594,13 @@ function gn(e) {
1590
1594
  });
1591
1595
  }
1592
1596
  function yc() {
1593
- const { engine: e } = N(), t = Gt(), n = yt(), i = M(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(
1594
1598
  ec,
1595
1599
  {
1596
- componentNode: a,
1597
- isSelected: e.instance.isSelected(a.id)
1600
+ componentNode: o,
1601
+ isSelected: e.instance.isSelected(o.id)
1598
1602
  },
1599
- a.id
1603
+ o.id
1600
1604
  )) }) : /* @__PURE__ */ l(W, {}), [t, n]);
1601
1605
  return gn(i), /* @__PURE__ */ g(
1602
1606
  "div",
@@ -1624,17 +1628,17 @@ function xc(e) {
1624
1628
  var t, n;
1625
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) => {
1626
1630
  const c = i.key === e.value;
1627
- return /* @__PURE__ */ l(z, { 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(
1628
1632
  "div",
1629
1633
  {
1630
1634
  id: i == null ? void 0 : i.domId,
1631
- className: $(
1635
+ className: R(
1632
1636
  Je.menubar_item,
1633
1637
  c && Je.menubar_item_selected
1634
1638
  ),
1635
1639
  onClick: () => {
1636
- var a;
1637
- (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);
1638
1642
  },
1639
1643
  children: i == null ? void 0 : i.icon
1640
1644
  }
@@ -1655,7 +1659,7 @@ const Ic = "_propertyItem_1r9fx_59", kc = "_propertyItem_icon_1r9fx_68", Sc = "_
1655
1659
  };
1656
1660
  function Pc(e) {
1657
1661
  var s, r, h;
1658
- 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";
1659
1663
  function d() {
1660
1664
  const u = Li(t == null ? void 0 : t.id), _ = () => {
1661
1665
  var m;
@@ -1680,10 +1684,10 @@ function Pc(e) {
1680
1684
  }
1681
1685
  });
1682
1686
  }
1683
- async function o() {
1687
+ async function a() {
1684
1688
  const u = await i.component.getPackageSourceCode(t == null ? void 0 : t.id);
1685
1689
  if (!u) {
1686
- E.warn("源码不存在");
1690
+ A.warn("源码不存在");
1687
1691
  return;
1688
1692
  }
1689
1693
  const _ = `${t == null ? void 0 : t.name}.js`;
@@ -1737,22 +1741,22 @@ function Pc(e) {
1737
1741
  de,
1738
1742
  {
1739
1743
  title: "删除",
1740
- className: $(
1744
+ className: R(
1741
1745
  J.propertyItem_icon,
1742
- !a && J.propertyItem_icon_disabled
1746
+ !o && J.propertyItem_icon_disabled
1743
1747
  ),
1744
- onClick: a ? d : void 0
1748
+ onClick: o ? d : void 0
1745
1749
  }
1746
1750
  ),
1747
1751
  /* @__PURE__ */ l(
1748
1752
  Hn,
1749
1753
  {
1750
1754
  title: "下载到本地",
1751
- className: $(
1755
+ className: R(
1752
1756
  J.propertyItem_icon,
1753
1757
  !c && J.propertyItem_icon_disabled
1754
1758
  ),
1755
- onClick: a ? o : void 0
1759
+ onClick: o ? a : void 0
1756
1760
  }
1757
1761
  )
1758
1762
  ] })
@@ -1783,9 +1787,9 @@ self.MonacoEnvironment = {
1783
1787
  }
1784
1788
  };
1785
1789
  function X(e) {
1786
- const t = M(null), n = M();
1787
- return w(() => {
1788
- var c, a;
1790
+ const t = j(null), n = j();
1791
+ return E(() => {
1792
+ var c, o;
1789
1793
  const i = Ni.editor.create(t.current, {
1790
1794
  theme: "vs-light",
1791
1795
  value: e == null ? void 0 : e.value,
@@ -1804,31 +1808,31 @@ function X(e) {
1804
1808
  },
1805
1809
  readOnlyMessage: {
1806
1810
  value: "禁止编辑",
1807
- ...(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
1808
1812
  }
1809
1813
  });
1810
1814
  return i.onDidChangeModelContent(() => {
1811
- var o;
1815
+ var a;
1812
1816
  const d = i.getValue();
1813
- (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);
1814
1818
  }), n.current = i, () => {
1815
1819
  i.dispose();
1816
1820
  };
1817
1821
  }, [e == null ? void 0 : e.language]), _t(() => {
1818
- var c, a, d, o;
1822
+ var c, o, d, a;
1819
1823
  if (!(n != null && n.current)) {
1820
1824
  console.error("monaco-editor init failed.");
1821
1825
  return;
1822
1826
  }
1823
1827
  const i = `${(e == null ? void 0 : e.value) || ""}`;
1824
- 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));
1825
1829
  }, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: We.jsonEditor, style: e == null ? void 0 : e.style, children: [
1826
1830
  /* @__PURE__ */ l("div", { ref: t, className: We.jsonEditor_render }),
1827
1831
  (e == null ? void 0 : e.loading) && /* @__PURE__ */ l("div", { className: We.jsonEditor_loading, children: /* @__PURE__ */ l(Ht, { style: { fontSize: 20 } }) })
1828
1832
  ] });
1829
1833
  }
1830
1834
  const Tc = ue((e) => {
1831
- const { params: t } = e, [n] = B.useForm(), [i, c] = S(!1), a = M("");
1835
+ const { params: t } = e, [n] = M.useForm(), [i, c] = S(!1), o = j("");
1832
1836
  function d() {
1833
1837
  n.validateFields(["url"]).then((s) => {
1834
1838
  var r;
@@ -1836,21 +1840,21 @@ const Tc = ue((e) => {
1836
1840
  var u, _;
1837
1841
  return (_ = (u = s == null ? void 0 : s.url) == null ? void 0 : u.startsWith) == null ? void 0 : _.call(u, h);
1838
1842
  })) {
1839
- E.error("地址格式不正确");
1843
+ A.error("地址格式不正确");
1840
1844
  return;
1841
1845
  }
1842
1846
  c(!0), (r = it(s == null ? void 0 : s.url)) == null || r.then((h) => {
1843
- 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({
1844
1848
  content: h
1845
1849
  });
1846
1850
  });
1847
1851
  });
1848
1852
  }
1849
- async function o() {
1853
+ async function a() {
1850
1854
  var r, h;
1851
1855
  const s = n.getFieldValue("content");
1852
- 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, {
1853
- 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,
1854
1858
  content: s
1855
1859
  }));
1856
1860
  }
@@ -1865,13 +1869,13 @@ const Tc = ue((e) => {
1865
1869
  afterClose: e == null ? void 0 : e.afterClose,
1866
1870
  onCancel: e == null ? void 0 : e.onCancel,
1867
1871
  bodyStyle: { paddingBottom: 0 },
1868
- onOk: o,
1869
- children: /* @__PURE__ */ g(B, { form: n, labelCol: { span: 2 }, children: [
1870
- /* @__PURE__ */ l(B.Item, { label: "地址", name: "url", rules: [{ required: !0, message: "请输入地址" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
1871
- /* @__PURE__ */ l(B.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(p, { size: "middle" }) }),
1872
+ onOk: a,
1873
+ children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 2 }, children: [
1874
+ /* @__PURE__ */ l(M.Item, { label: "地址", name: "url", rules: [{ required: !0, message: "请输入地址" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
1875
+ /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "url", style: { flex: 1 }, children: /* @__PURE__ */ l(p, { size: "middle" }) }),
1872
1876
  /* @__PURE__ */ l(K, { type: "primary", onClick: d, loading: i, children: "读取" })
1873
1877
  ] }) }),
1874
- /* @__PURE__ */ l(B.Item, { label: "文本", name: "content", children: /* @__PURE__ */ l(X, { readOnly: !0, language: "javascript", style: { height: 400 } }) })
1878
+ /* @__PURE__ */ l(M.Item, { label: "文本", name: "content", children: /* @__PURE__ */ l(X, { readOnly: !0, language: "javascript", style: { height: 400 } }) })
1875
1879
  ] })
1876
1880
  }
1877
1881
  );
@@ -1880,10 +1884,10 @@ const Tc = ue((e) => {
1880
1884
  { key: "remote", label: /* @__PURE__ */ l("span", { className: "theme-text", children: "远程导入" }) }
1881
1885
  ];
1882
1886
  function $c(e) {
1883
- const t = M(), n = M(""), i = Tc({
1887
+ const t = j(), n = j(""), i = Tc({
1884
1888
  onOk({ url: s }) {
1885
1889
  if (!t.current) {
1886
- E.warn("package新增失败");
1890
+ A.warn("package新增失败");
1887
1891
  return;
1888
1892
  }
1889
1893
  t.current.origin = "remote", t.current.originData = s, c(t.current, n.current);
@@ -1891,29 +1895,29 @@ function $c(e) {
1891
1895
  });
1892
1896
  function c(s, r) {
1893
1897
  var h;
1894
- if (!s) return E.warn("不包含组件包");
1898
+ if (!s) return A.warn("不包含组件包");
1895
1899
  (h = e == null ? void 0 : e.onAdd) == null || h.call(e, s, r || "");
1896
1900
  }
1897
- function a(s, r) {
1901
+ function o(s, r) {
1898
1902
  var h;
1899
- if (!(s != null && s.length)) return E.warn("不包含组件包");
1903
+ if (!(s != null && s.length)) return A.warn("不包含组件包");
1900
1904
  (h = e == null ? void 0 : e.onAddSome) == null || h.call(e, s, r);
1901
1905
  }
1902
1906
  async function d(s) {
1903
- var C;
1904
- const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], v = [];
1907
+ var x;
1908
+ const r = new Blob([s], { type: s.type }), u = await new ft().loadAsync(r), _ = (u == null ? void 0 : u.files) || {}, m = [], y = [];
1905
1909
  for (const b in _) {
1906
- if (!((C = b == null ? void 0 : b.endsWith) != null && C.call(b, ".js")))
1910
+ if (!((x = b == null ? void 0 : b.endsWith) != null && x.call(b, ".js")))
1907
1911
  continue;
1908
- const f = await _[b].async("text"), y = await Te(f);
1909
- y && (y.origin = "local", m.push(y), v.push(f));
1912
+ const f = await _[b].async("text"), v = await Te(f);
1913
+ v && (v.origin = "local", m.push(v), y.push(f));
1910
1914
  }
1911
1915
  return {
1912
1916
  pkgs: m,
1913
- codes: v
1917
+ codes: y
1914
1918
  };
1915
1919
  }
1916
- async function o(s) {
1920
+ async function a(s) {
1917
1921
  let r = "";
1918
1922
  switch (s) {
1919
1923
  case "local":
@@ -1922,23 +1926,23 @@ function $c(e) {
1922
1926
  return;
1923
1927
  if (["application/x-zip-compressed", "application/zip"].includes(h == null ? void 0 : h.type)) {
1924
1928
  const { pkgs: u, codes: _ } = await d(h);
1925
- a(u, _);
1929
+ o(u, _);
1926
1930
  return;
1927
1931
  }
1928
1932
  if ((h == null ? void 0 : h.type) === "text/javascript") {
1929
1933
  r = await ln(h);
1930
1934
  const u = await Te(r);
1931
1935
  if (!u)
1932
- return E.warn("文本内容必须为UMD或者AMD格式");
1936
+ return A.warn("文本内容必须为UMD或者AMD格式");
1933
1937
  u.origin = "local", c(u, r);
1934
1938
  return;
1935
1939
  }
1936
- E.warn("只能上传 .js 和 .zip 文件");
1940
+ A.warn("只能上传 .js 和 .zip 文件");
1937
1941
  break;
1938
1942
  case "remote":
1939
1943
  i.open({
1940
1944
  async beforeOk(u) {
1941
- return n.current = u, t.current = await Te(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;
1942
1946
  }
1943
1947
  });
1944
1948
  break;
@@ -1951,7 +1955,7 @@ function $c(e) {
1951
1955
  menu: {
1952
1956
  items: zc,
1953
1957
  onClick({ key: s }) {
1954
- o(s);
1958
+ a(s);
1955
1959
  }
1956
1960
  },
1957
1961
  children: /* @__PURE__ */ l(K, { size: "small", style: { fontSize: 12 }, type: "primary", children: e == null ? void 0 : e.children })
@@ -1975,9 +1979,9 @@ function Fc(e) {
1975
1979
  It(Pt, "测试包1.js");
1976
1980
  break;
1977
1981
  case "zip-demo":
1978
- const c = await it(Ot), a = await it(Pt), d = new ft();
1979
- d.file("测试包1.js", a), d.file("测试包2.js", c), d.generateAsync({ type: "blob" }).then(function(o) {
1980
- pt(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");
1981
1985
  });
1982
1986
  break;
1983
1987
  case "all":
@@ -2004,11 +2008,11 @@ const Hc = "_property_zt9oy_59", Kc = "_property_header_zt9oy_68", Bt = {
2004
2008
  property_header: Kc
2005
2009
  };
2006
2010
  function Uc() {
2007
- var o;
2011
+ var a;
2008
2012
  const e = Xt(), { engine: t } = N(), { loading: n, run: i } = Qt(
2009
2013
  async () => new Promise((s) => {
2010
2014
  setTimeout(() => {
2011
- E.success("刷新成功"), s();
2015
+ A.success("刷新成功"), s();
2012
2016
  }, 500);
2013
2017
  }),
2014
2018
  {
@@ -2021,7 +2025,7 @@ function Uc() {
2021
2025
  t.component.savePackageSourceCode(h[m], _);
2022
2026
  });
2023
2027
  }
2024
- function a(s, r) {
2028
+ function o(s, r) {
2025
2029
  t.component.unregisterPackage(s), t.componentNode.delete(r);
2026
2030
  }
2027
2031
  async function d() {
@@ -2031,10 +2035,10 @@ function Uc() {
2031
2035
  let u = 0;
2032
2036
  if (r.forEach((_, m) => {
2033
2037
  if (!_) return;
2034
- const v = e[m];
2035
- h.file(`${v.name}.js`, _), u++;
2038
+ const y = e[m];
2039
+ h.file(`${y.name}.js`, _), u++;
2036
2040
  }), !u) {
2037
- E.warn("暂无组件包");
2041
+ A.warn("暂无组件包");
2038
2042
  return;
2039
2043
  }
2040
2044
  h.generateAsync({ type: "blob" }).then(function(_) {
@@ -2081,12 +2085,12 @@ function Uc() {
2081
2085
  ] })
2082
2086
  ] }),
2083
2087
  !e.length && /* @__PURE__ */ l(U, {}),
2084
- (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(
2085
2089
  Pc,
2086
2090
  {
2087
2091
  data: s,
2088
2092
  onDelete: (r, h) => {
2089
- a(r, h);
2093
+ o(r, h);
2090
2094
  }
2091
2095
  },
2092
2096
  s.id
@@ -2102,7 +2106,7 @@ const qc = "_favorites_1mbr5_59", Jc = {
2102
2106
  favoriteItem_footer: Xc
2103
2107
  };
2104
2108
  function Yc(e) {
2105
- const { favorite: t } = e, n = M(null), i = M(null);
2109
+ const { favorite: t } = e, n = j(null), i = j(null);
2106
2110
  return rn(n, {
2107
2111
  type: "create-favorite",
2108
2112
  data: {
@@ -2116,15 +2120,15 @@ function Yc(e) {
2116
2120
  /* @__PURE__ */ l("div", { className: ke.favoriteItem_head, children: /* @__PURE__ */ l(dt, {}) }),
2117
2121
  /* @__PURE__ */ l("div", { className: ke.favoriteItem_name, title: t.id, children: t.name }),
2118
2122
  /* @__PURE__ */ g("div", { className: ke.favoriteItem_footer, ref: i, children: [
2119
- /* @__PURE__ */ l(z, { title: "编辑", children: /* @__PURE__ */ l(Kt, { onClick: () => {
2123
+ /* @__PURE__ */ l($, { title: "编辑", children: /* @__PURE__ */ l(Kt, { onClick: () => {
2120
2124
  var c;
2121
2125
  return (c = e == null ? void 0 : e.onEdit) == null ? void 0 : c.call(e);
2122
2126
  } }) }),
2123
- /* @__PURE__ */ l(z, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
2127
+ /* @__PURE__ */ l($, { title: "删除", children: /* @__PURE__ */ l(de, { onClick: () => {
2124
2128
  var c;
2125
2129
  return (c = e == null ? void 0 : e.onDelete) == null ? void 0 : c.call(e);
2126
2130
  } }) }),
2127
- /* @__PURE__ */ l(z, { title: "详情", children: /* @__PURE__ */ l(Kn, { onClick: () => {
2131
+ /* @__PURE__ */ l($, { title: "详情", children: /* @__PURE__ */ l(Kn, { onClick: () => {
2128
2132
  var c;
2129
2133
  return (c = e == null ? void 0 : e.onDetail) == null ? void 0 : c.call(e);
2130
2134
  } }) })
@@ -2133,17 +2137,17 @@ function Yc(e) {
2133
2137
  }
2134
2138
  const Zc = ue((e) => {
2135
2139
  var c;
2136
- const [t] = B.useForm(), n = (c = e == null ? void 0 : e.params) == null ? void 0 : c.favorite;
2140
+ const [t] = M.useForm(), n = (c = e == null ? void 0 : e.params) == null ? void 0 : c.favorite;
2137
2141
  function i() {
2138
- t.validateFields().then((a) => {
2142
+ t.validateFields().then((o) => {
2139
2143
  var d;
2140
2144
  (d = e == null ? void 0 : e.onOk) == null || d.call(e, {
2141
2145
  ...n,
2142
- name: a == null ? void 0 : a.name
2146
+ name: o == null ? void 0 : o.name
2143
2147
  });
2144
2148
  });
2145
2149
  }
2146
- return w(() => {
2150
+ return E(() => {
2147
2151
  e != null && e.visible && t.setFieldsValue({
2148
2152
  name: n == null ? void 0 : n.name
2149
2153
  });
@@ -2157,8 +2161,8 @@ const Zc = ue((e) => {
2157
2161
  afterClose: e == null ? void 0 : e.afterClose,
2158
2162
  bodyStyle: { paddingBottom: 6 },
2159
2163
  footer: null,
2160
- children: /* @__PURE__ */ l(B, { form: t, children: /* @__PURE__ */ l(B.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请填写名称" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2161
- /* @__PURE__ */ l(B.Item, { noStyle: !0, name: "name", children: /* @__PURE__ */ l(p, { size: "middle", style: { flex: 1 } }) }),
2164
+ children: /* @__PURE__ */ l(M, { form: t, children: /* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请填写名称" }], children: /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2165
+ /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "name", children: /* @__PURE__ */ l(p, { size: "middle", style: { flex: 1 } }) }),
2162
2166
  /* @__PURE__ */ l(K, { type: "primary", onClick: i, children: "保存" })
2163
2167
  ] }) }) })
2164
2168
  }
@@ -2168,7 +2172,7 @@ const Zc = ue((e) => {
2168
2172
  favoriteDetailDialog_componentNodes: pc,
2169
2173
  favoriteDetailDialog_item: ea
2170
2174
  }, ta = ue((e) => {
2171
- var i, c, a, d;
2175
+ var i, c, o, d;
2172
2176
  const { engine: t } = N(), n = (i = e == null ? void 0 : e.params) == null ? void 0 : i.favorite;
2173
2177
  return /* @__PURE__ */ g(
2174
2178
  re,
@@ -2197,8 +2201,8 @@ const Zc = ue((e) => {
2197
2201
  ),
2198
2202
  /* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_componentNodes, children: [
2199
2203
  !((c = n == null ? void 0 : n.children) != null && c.length) && /* @__PURE__ */ l(U, {}),
2200
- (d = (a = n == null ? void 0 : n.children) == null ? void 0 : a.map) == null ? void 0 : d.call(a, (o) => {
2201
- 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);
2202
2206
  return /* @__PURE__ */ g("div", { className: Ve.favoriteDetailDialog_item, children: [
2203
2207
  /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
2204
2208
  xe,
@@ -2207,8 +2211,8 @@ const Zc = ue((e) => {
2207
2211
  style: { maxWidth: "80%", maxHeight: "80%" }
2208
2212
  }
2209
2213
  ) }),
2210
- /* @__PURE__ */ l("span", { title: o.name, children: o.name })
2211
- ] }, o.id);
2214
+ /* @__PURE__ */ l("span", { title: a.name, children: a.name })
2215
+ ] }, a.id);
2212
2216
  })
2213
2217
  ] })
2214
2218
  ]
@@ -2217,32 +2221,32 @@ const Zc = ue((e) => {
2217
2221
  });
2218
2222
  function na() {
2219
2223
  const { engine: e } = N(), t = Pi(), n = ta(), i = Zc({
2220
- onOk(a) {
2221
- e.favorites.update(a.id, a);
2224
+ onOk(o) {
2225
+ e.favorites.update(o.id, o);
2222
2226
  }
2223
2227
  });
2224
- function c(a) {
2225
- e.favorites.delete(a);
2228
+ function c(o) {
2229
+ e.favorites.delete(o);
2226
2230
  }
2227
2231
  return /* @__PURE__ */ g("div", { className: Jc.favorites, children: [
2228
2232
  !(t != null && t.length) && /* @__PURE__ */ l(U, {}),
2229
- t.map((a) => /* @__PURE__ */ l(
2233
+ t.map((o) => /* @__PURE__ */ l(
2230
2234
  Yc,
2231
2235
  {
2232
- favorite: a,
2233
- onDelete: () => c(a),
2236
+ favorite: o,
2237
+ onDelete: () => c(o),
2234
2238
  onEdit: () => {
2235
2239
  i.open({
2236
- favorite: a
2240
+ favorite: o
2237
2241
  });
2238
2242
  },
2239
2243
  onDetail: () => {
2240
2244
  n.open({
2241
- favorite: a
2245
+ favorite: o
2242
2246
  });
2243
2247
  }
2244
2248
  },
2245
- a.id
2249
+ o.id
2246
2250
  ))
2247
2251
  ] });
2248
2252
  }
@@ -2251,19 +2255,19 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
2251
2255
  pages_head: la,
2252
2256
  pages_body: ca
2253
2257
  }, aa = ue((e) => {
2254
- const { params: t } = e, [n] = B.useForm();
2255
- function i(a) {
2258
+ const { params: t } = e, [n] = M.useForm();
2259
+ function i(o) {
2256
2260
  return {
2257
- name: a,
2261
+ name: o,
2258
2262
  id: ut(),
2259
2263
  parentId: t == null ? void 0 : t.parentId
2260
2264
  };
2261
2265
  }
2262
2266
  function c() {
2263
- n.validateFields().then((a) => {
2267
+ n.validateFields().then((o) => {
2264
2268
  var d;
2265
2269
  (d = e == null ? void 0 : e.onOk) == null || d.call(e, {
2266
- page: i(a.name),
2270
+ page: i(o.name),
2267
2271
  parentId: t == null ? void 0 : t.parentId
2268
2272
  });
2269
2273
  });
@@ -2281,15 +2285,15 @@ const ia = "_pages_1ty8r_59", la = "_pages_head_1ty8r_67", ca = "_pages_body_1ty
2281
2285
  bodyStyle: {
2282
2286
  padding: "12px 24px 12px 12px"
2283
2287
  },
2284
- children: /* @__PURE__ */ g(B, { form: n, labelCol: { span: 4 }, children: [
2285
- (t == null ? void 0 : t.parentName) && /* @__PURE__ */ l(B.Item, { label: "父页面", children: t == null ? void 0 : t.parentName }),
2286
- /* @__PURE__ */ l(B.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请输入名称" }], children: /* @__PURE__ */ l(p, {}) })
2288
+ children: /* @__PURE__ */ g(M, { form: n, labelCol: { span: 4 }, children: [
2289
+ (t == null ? void 0 : t.parentName) && /* @__PURE__ */ l(M.Item, { label: "父页面", children: t == null ? void 0 : t.parentName }),
2290
+ /* @__PURE__ */ l(M.Item, { label: "名称", name: "name", rules: [{ required: !0, message: "请输入名称" }], children: /* @__PURE__ */ l(p, {}) })
2287
2291
  ] })
2288
2292
  }
2289
2293
  );
2290
2294
  });
2291
2295
  function oa() {
2292
- const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [a, d, o] = oi([]), s = wi(), r = Ei(), h = aa({
2296
+ const { engine: e } = N(), [t, n] = S([]), [i, c] = S([]), [o, d, a] = oi([]), s = wi(), r = Ei(), h = aa({
2293
2297
  onOk({ page: b, parentId: I }) {
2294
2298
  if (e.page.insert(b, I), Re(b.id), I) {
2295
2299
  const f = Array.from(new Set(t).add(I));
@@ -2302,7 +2306,7 @@ function oa() {
2302
2306
  }
2303
2307
  function _(b) {
2304
2308
  var I;
2305
- return ((I = b == null ? void 0 : b.reduce) == null ? void 0 : I.call(b, (f, y) => f.concat([y.key, ..._(y == null ? void 0 : y.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)]), [])) || [];
2306
2310
  }
2307
2311
  function m(b) {
2308
2312
  h.open({
@@ -2310,50 +2314,50 @@ function oa() {
2310
2314
  parentName: b.name
2311
2315
  });
2312
2316
  }
2313
- function v(b, I = {}) {
2314
- var y, x, L, j, R, q, V;
2317
+ function y(b, I = {}) {
2318
+ var v, C, w, P, T, q, V;
2315
2319
  const f = [b.id, ..._(I[b.id].children)];
2316
- if (((y = o.current) == null ? void 0 : y.length) === 1 && (f != null && f.includes((L = (x = o.current) == null ? void 0 : x[0]) == null ? void 0 : L.key))) {
2317
- E.warn("至少保留一个顶层页");
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("至少保留一个顶层页");
2318
2322
  return;
2319
2323
  }
2320
2324
  if (f.includes(e.config.getCurrentPage())) {
2321
- let Me = (R = (j = o.current) == null ? void 0 : j[0]) == null ? void 0 : R.key;
2322
- f.includes(Me) && (Me = (V = (q = o.current) == null ? void 0 : q[1]) == null ? void 0 : V.key), Re(Me);
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);
2323
2327
  }
2324
2328
  e.page.delete(f);
2325
2329
  }
2326
- function C(b, I = {}) {
2330
+ function x(b, I = {}) {
2327
2331
  const f = [];
2328
- return b.forEach((y) => {
2329
- var j, R, q;
2330
- const x = I[y.id], L = I[y.id] = {
2331
- key: (x == null ? void 0 : x.key) || y.id,
2332
- title: (x == null ? void 0 : x.title) || /* @__PURE__ */ g("span", { children: [
2333
- /* @__PURE__ */ l("span", { children: y.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 }),
2334
2338
  /* @__PURE__ */ g("span", { style: { fontSize: 12 }, onClick: (V) => V.stopPropagation(), children: [
2335
- /* @__PURE__ */ l("a", { style: { marginLeft: 16 }, onClick: () => m(y), children: "新增" }),
2336
- /* @__PURE__ */ l("a", { style: { marginLeft: 8 }, onClick: () => v(y, 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: "删除" })
2337
2341
  ] })
2338
2342
  ] }),
2339
- children: (x == null ? void 0 : x.children) || []
2343
+ children: (C == null ? void 0 : C.children) || []
2340
2344
  };
2341
- if (y != null && y.parentId) {
2342
- (q = (R = I[j = y == null ? void 0 : y.parentId] || (I[j] = {
2345
+ if (v != null && v.parentId) {
2346
+ (q = (T = I[P = v == null ? void 0 : v.parentId] || (I[P] = {
2343
2347
  key: "",
2344
2348
  title: "",
2345
2349
  children: []
2346
- })) == null ? void 0 : R.children) == null || q.push(L);
2350
+ })) == null ? void 0 : T.children) == null || q.push(w);
2347
2351
  return;
2348
2352
  }
2349
- f.push(L);
2353
+ f.push(w);
2350
2354
  }), f;
2351
2355
  }
2352
- return w(() => {
2356
+ return E(() => {
2353
2357
  n(e.config.getConfig().expandedPageIds || []);
2354
- }, []), w(() => {
2355
- d(C(s));
2356
- }, [s]), w(() => {
2358
+ }, []), E(() => {
2359
+ d(x(s));
2360
+ }, [s]), E(() => {
2357
2361
  c([r]);
2358
2362
  }, [r]), /* @__PURE__ */ g("div", { className: Ge.pages, children: [
2359
2363
  /* @__PURE__ */ g("div", { className: Ge.pages_head, children: [
@@ -2378,7 +2382,7 @@ function oa() {
2378
2382
  multiple: !1,
2379
2383
  defaultExpandAll: !0,
2380
2384
  icon: /* @__PURE__ */ l(Un, {}),
2381
- treeData: a,
2385
+ treeData: o,
2382
2386
  selectedKeys: i,
2383
2387
  expandedKeys: t,
2384
2388
  onExpand: u,
@@ -2397,7 +2401,7 @@ const da = "_history_zo6ip_59", ra = "_history_head_zo6ip_71", sa = "_history_bo
2397
2401
  history_item_gray: ha
2398
2402
  };
2399
2403
  function ga() {
2400
- var c, a, d, o;
2404
+ var c, o, d, a;
2401
2405
  const { engine: e } = N(), t = cn(), n = (c = t.current) == null ? void 0 : c.stepId;
2402
2406
  function i(s) {
2403
2407
  e.history.isPass(s) && n === s ? bt() : Qi(s);
@@ -2408,10 +2412,10 @@ function ga() {
2408
2412
  t == null ? void 0 : t.maxSize
2409
2413
  ] }) }),
2410
2414
  /* @__PURE__ */ g("div", { className: _e.history_body, children: [
2411
- (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(
2412
2416
  "div",
2413
2417
  {
2414
- className: $(_e.history_item, !s.isPass && _e.history_item_gray),
2418
+ className: R(_e.history_item, !s.isPass && _e.history_item_gray),
2415
2419
  onClick: () => {
2416
2420
  i(s.stepId);
2417
2421
  },
@@ -2419,12 +2423,12 @@ function ga() {
2419
2423
  },
2420
2424
  s.stepId
2421
2425
  )),
2422
- !((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, {})
2423
2427
  ] })
2424
2428
  ] });
2425
2429
  }
2426
2430
  function _a() {
2427
- const { engine: e } = N(), [t, n] = se(), i = A(() => [
2431
+ const { engine: e } = N(), [t, n] = se(), i = L(() => [
2428
2432
  {
2429
2433
  key: "library",
2430
2434
  domId: "rbs-library",
@@ -2467,21 +2471,21 @@ function _a() {
2467
2471
  title: t("menu.bar.history"),
2468
2472
  children: /* @__PURE__ */ l(ga, {})
2469
2473
  }
2470
- ], [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(() => {
2471
2475
  var r;
2472
- return (r = i.find((h) => h.key === a)) == null ? void 0 : r.children;
2473
- }, [a]);
2476
+ return (r = i.find((h) => h.key === o)) == null ? void 0 : r.children;
2477
+ }, [o]);
2474
2478
  function s(r) {
2475
2479
  d(r), e.config.setConfigSilently({
2476
2480
  currentMenu: r
2477
2481
  });
2478
2482
  }
2479
- return w(() => {
2483
+ return E(() => {
2480
2484
  const { currentMenu: r } = e.config.getConfig(), h = i.find((u) => u.key === r);
2481
2485
  d((h == null ? void 0 : h.key) || i[0].key);
2482
2486
  }, [c]), /* @__PURE__ */ g("div", { className: He.menu, children: [
2483
- /* @__PURE__ */ l("div", { className: He.menu_bar, children: /* @__PURE__ */ l(xc, { value: a, list: i, onChange: s }) }),
2484
- /* @__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 })
2485
2489
  ] });
2486
2490
  }
2487
2491
  const ma = "_editor_82kko_59", fa = "_editor_render_82kko_65", Mt = {
@@ -2543,13 +2547,13 @@ function Ha(e, t, n) {
2543
2547
  function c() {
2544
2548
  i.dh = -n, i.dy = n;
2545
2549
  }
2546
- function a() {
2550
+ function o() {
2547
2551
  i.dw = -t, i.dx = t;
2548
2552
  }
2549
2553
  function d() {
2550
2554
  i.dh = n;
2551
2555
  }
2552
- function o() {
2556
+ function a() {
2553
2557
  i.dw = t;
2554
2558
  }
2555
2559
  switch (e) {
@@ -2557,25 +2561,25 @@ function Ha(e, t, n) {
2557
2561
  c();
2558
2562
  break;
2559
2563
  case "top_left":
2560
- c(), a();
2564
+ c(), o();
2561
2565
  break;
2562
2566
  case "top_right":
2563
- c(), o();
2567
+ c(), a();
2564
2568
  break;
2565
2569
  case "bottom":
2566
2570
  d();
2567
2571
  break;
2568
2572
  case "bottom_left":
2569
- d(), a();
2573
+ d(), o();
2570
2574
  break;
2571
2575
  case "bottom_right":
2572
- d(), o();
2576
+ d(), a();
2573
2577
  break;
2574
2578
  case "left":
2575
- a();
2579
+ o();
2576
2580
  break;
2577
2581
  case "right":
2578
- o();
2582
+ a();
2579
2583
  break;
2580
2584
  }
2581
2585
  return i;
@@ -2598,11 +2602,11 @@ function Ka(e, t, n) {
2598
2602
  height: e.height
2599
2603
  }, t.style.zIndex = `${c.componentNode.getMaxLevel()}`, ae.set(Fa[n]);
2600
2604
  },
2601
- onMove(a, d) {
2602
- 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;
2603
2607
  s < 0 || r < 0 || c.componentNode.update(e.id, {
2604
- x: Math.round(i.x + o.dx),
2605
- y: Math.round(i.y + o.dy),
2608
+ x: Math.round(i.x + a.dx),
2609
+ y: Math.round(i.y + a.dy),
2606
2610
  height: Math.round(Math.max(r, 0)),
2607
2611
  width: Math.round(Math.max(s, 0))
2608
2612
  });
@@ -2613,44 +2617,44 @@ function Ka(e, t, n) {
2613
2617
  };
2614
2618
  }
2615
2619
  const Ua = bn((e, t) => {
2616
- const { componentNode: n } = e, i = M(null), [c, a] = S(!1), d = Ee((o) => o.scale);
2620
+ const { componentNode: n } = e, i = j(null), [c, o] = S(!1), d = Ee((a) => a.scale);
2617
2621
  return Cn(t, () => ({
2618
2622
  // 经过实例
2619
2623
  handleHover() {
2620
- var o, s, r;
2621
- (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);
2622
2626
  },
2623
2627
  // 离开实例
2624
2628
  handleUnHover() {
2625
- var o, s, r;
2626
- (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);
2627
2631
  },
2628
2632
  // 选中实例样式
2629
2633
  handleSelected() {
2630
- a(!0);
2634
+ o(!0);
2631
2635
  },
2632
2636
  // 取消选中实例样式
2633
2637
  handleUnSelected() {
2634
- a(!1);
2638
+ o(!1);
2635
2639
  }
2636
- })), A(() => /* @__PURE__ */ l(
2640
+ })), L(() => /* @__PURE__ */ l(
2637
2641
  "div",
2638
2642
  {
2639
2643
  [`data-${oe.componentNodeId}`]: n.id,
2640
2644
  ref: i,
2641
- className: $(
2645
+ className: R(
2642
2646
  ie.moveItem_box,
2643
2647
  c && ie.moveItem_box_selected,
2644
2648
  n.lock && ie.moveItem_box_lock
2645
2649
  ),
2646
- children: c && !n.lock && Ra.map((o) => /* @__PURE__ */ l(
2650
+ children: c && !n.lock && Ra.map((a) => /* @__PURE__ */ l(
2647
2651
  "div",
2648
2652
  {
2649
2653
  style: { transform: d < 1 ? `scale(${1 / d})` : void 0 },
2650
- className: ie[`dragPoint_${o}`],
2651
- [`data-${oe.dragDirection}`]: o
2654
+ className: ie[`dragPoint_${a}`],
2655
+ [`data-${oe.dragDirection}`]: a
2652
2656
  },
2653
- o
2657
+ a
2654
2658
  ))
2655
2659
  }
2656
2660
  ), [n.lock, c, d]);
@@ -2659,18 +2663,18 @@ function qa(e) {
2659
2663
  var d;
2660
2664
  const { engine: t } = N(), [n, i] = S(
2661
2665
  e == null ? void 0 : e.componentNode
2662
- ), 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(
2663
2667
  () => t.component.get(e == null ? void 0 : e.componentNode.cId),
2664
2668
  [(d = e == null ? void 0 : e.componentNode) == null ? void 0 : d.cId, e == null ? void 0 : e.packages]
2665
2669
  );
2666
- return en(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: o }) => {
2667
- i({ ...o });
2670
+ return en(() => t.componentNode.onChange(e == null ? void 0 : e.componentNode.id, ({ payload: a }) => {
2671
+ i({ ...a });
2668
2672
  })), _t(() => {
2669
2673
  i(e == null ? void 0 : e.componentNode);
2670
- }, [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, {});
2671
2675
  }
2672
2676
  function Ja(e) {
2673
- const { component: t, componentNode: n } = e, i = tn(n), c = M(null), { dataSource: a, requestInstance: d } = gi(n), o = _i(n.id), s = mi(n.id), r = M(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({
2674
2678
  id: n.id,
2675
2679
  // 经过实例
2676
2680
  handleHover() {
@@ -2735,8 +2739,8 @@ function Ja(e) {
2735
2739
  t.component,
2736
2740
  {
2737
2741
  useExpose: s,
2738
- handleTrigger: o,
2739
- dataSource: a,
2742
+ handleTrigger: a,
2743
+ dataSource: o,
2740
2744
  options: n.options,
2741
2745
  width: n.width,
2742
2746
  height: n.height,
@@ -2757,8 +2761,8 @@ function Va(e, t) {
2757
2761
  if (!c || e.lock && n && !i)
2758
2762
  return;
2759
2763
  t.stopPropagation();
2760
- const a = Yt(t);
2761
- if (n || a) {
2764
+ const o = Yt(t);
2765
+ if (n || o) {
2762
2766
  if (c.instance.isSelected(e.id)) {
2763
2767
  i && c.instance.unselect(e.id);
2764
2768
  return;
@@ -2776,13 +2780,13 @@ function Ga(e) {
2776
2780
  if (!n)
2777
2781
  throw new Error("dom must be set.");
2778
2782
  let i = [], c = !1;
2779
- const a = n.style.pointerEvents;
2780
- let d = !1, o;
2783
+ const o = n.style.pointerEvents;
2784
+ let d = !1, a;
2781
2785
  return {
2782
2786
  onStart() {
2783
2787
  return ae.set("move"), setTimeout(() => {
2784
2788
  let { list: r, showCount: h } = Za();
2785
- i = r, c = h < 300, o = Vt(
2789
+ i = r, c = h < 300, a = Vt(
2786
2790
  (u, _) => {
2787
2791
  Xa(i, c, u, _);
2788
2792
  },
@@ -2794,30 +2798,30 @@ function Ga(e) {
2794
2798
  }), !1;
2795
2799
  },
2796
2800
  onMove(r, h) {
2797
- 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);
2798
2802
  },
2799
2803
  onEnd(r, h) {
2800
- 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);
2801
2805
  }
2802
2806
  };
2803
2807
  }
2804
2808
  function Xa(e, t, n, i) {
2805
2809
  e.forEach((c) => {
2806
2810
  if (!c.show) return;
2807
- const a = c.containerDom;
2811
+ const o = c.containerDom;
2808
2812
  if (t)
2809
- a.style.transform = `translate3d(${n}px,${i}px, 0)`;
2813
+ o.style.transform = `translate3d(${n}px,${i}px, 0)`;
2810
2814
  else {
2811
2815
  const d = c.componentNode;
2812
- 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`;
2813
2817
  }
2814
2818
  });
2815
2819
  }
2816
2820
  function Ya(e, t, n, i) {
2817
2821
  const c = k.getActiveEngine();
2818
- c && e.forEach((a) => {
2819
- a != null && a.show && t && a.containerDom.style.removeProperty("transform");
2820
- 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;
2821
2825
  d && c.componentNode.update(d.id, {
2822
2826
  x: Math.round(n + ((d == null ? void 0 : d.x) || 0)),
2823
2827
  y: Math.round(i + ((d == null ? void 0 : d.y) || 0))
@@ -2828,16 +2832,16 @@ function Za() {
2828
2832
  const e = k.getActiveEngine();
2829
2833
  return e ? Oe().reduce(
2830
2834
  (n, i) => {
2831
- var d, o, s, r;
2835
+ var d, a, s, r;
2832
2836
  const c = i.show ?? !0;
2833
2837
  c && n.showCount++;
2834
- const a = {
2838
+ const o = {
2835
2839
  id: i.id,
2836
2840
  componentNode: i,
2837
2841
  show: c,
2838
- 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)
2839
2843
  };
2840
- return n.list.push(a), n;
2844
+ return n.list.push(o), n;
2841
2845
  },
2842
2846
  {
2843
2847
  showCount: 0,
@@ -2853,30 +2857,30 @@ const Qa = "_rangeBox_12c3t_59", pa = {
2853
2857
  }, jt = Vt((e, t) => {
2854
2858
  const n = k.getActiveEngine();
2855
2859
  if (!n) return;
2856
- const i = n.componentNode.getAll().reduce((c, a) => {
2860
+ const i = n.componentNode.getAll().reduce((c, o) => {
2857
2861
  const d = {
2858
- x1: a.x,
2859
- y1: a.y,
2860
- x2: a.x + a.width,
2861
- y2: a.y + a.height
2862
- }, o = {
2862
+ x1: o.x,
2863
+ y1: o.y,
2864
+ x2: o.x + o.width,
2865
+ y2: o.y + o.height
2866
+ }, a = {
2863
2867
  x1: e.x,
2864
2868
  y1: e.y,
2865
2869
  x2: e.x + e.width,
2866
2870
  y2: e.y + e.height
2867
2871
  };
2868
- 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;
2869
2873
  }, []);
2870
2874
  n.instance.select(i, !0), t == null || t(i);
2871
2875
  }, 100);
2872
2876
  let F;
2873
2877
  function eo(e) {
2874
2878
  let t = { x: 0, y: 0 }, n = 1;
2875
- function i(a = 0, d = 0) {
2876
- 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 = {
2877
2881
  x: t.x,
2878
2882
  y: t.y,
2879
- width: Math.abs(a),
2883
+ width: Math.abs(o),
2880
2884
  height: Math.abs(d)
2881
2885
  };
2882
2886
  return r < u.x && (u.x = r), h < u.y && (u.y = h), u.x /= n, u.y /= n, u;
@@ -2885,25 +2889,25 @@ function eo(e) {
2885
2889
  F && (F == null || F.remove(), F = void 0);
2886
2890
  }
2887
2891
  return {
2888
- onStart(a, d, o) {
2892
+ onStart(o, d, a) {
2889
2893
  const s = k.getActiveEngine();
2890
2894
  if (!s)
2891
2895
  return;
2892
2896
  c();
2893
- const { x: r = 0, y: h = 0 } = o || {};
2897
+ const { x: r = 0, y: h = 0 } = a || {};
2894
2898
  n = s.config.getConfig().scale;
2895
2899
  const u = e.getBoundingClientRect();
2896
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");
2897
2901
  },
2898
- onMove(a, d) {
2902
+ onMove(o, d) {
2899
2903
  if (!F) return;
2900
- const o = i(a, d);
2901
- 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);
2902
2906
  },
2903
- onEnd(a, d) {
2907
+ onEnd(o, d) {
2904
2908
  c(), ae.revoke();
2905
- const o = i(a, d);
2906
- (o.width || o.height) && jt(o, (s) => {
2909
+ const a = i(o, d);
2910
+ (a.width || a.height) && jt(a, (s) => {
2907
2911
  s.length && O("范围选中组件");
2908
2912
  });
2909
2913
  }
@@ -2914,16 +2918,16 @@ function to(e, t) {
2914
2918
  onEnd(n, i, c) {
2915
2919
  setTimeout(() => {
2916
2920
  var u;
2917
- const a = k.getActiveEngine();
2918
- if (!a)
2921
+ const o = k.getActiveEngine();
2922
+ if (!o)
2919
2923
  return;
2920
- const d = a.config.getConfig().scale, o = e.getComponentNode(), s = e.getContainerDom();
2921
- 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)
2922
2926
  return;
2923
- const r = ((u = s == null ? void 0 : s.getBoundingClientRect) == null ? void 0 : u.call(s)) || { x: 0, y: 0 }, h = io(o, {
2924
- 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,
2925
2929
  // 鼠标在编辑器上的虚拟坐标
2926
- y: (c.y - r.y) / d + o.y
2930
+ y: (c.y - r.y) / d + a.y
2927
2931
  });
2928
2932
  t == null || t(h);
2929
2933
  });
@@ -2934,13 +2938,13 @@ function no(e, t) {
2934
2938
  const n = k.getActiveEngine();
2935
2939
  if (!n)
2936
2940
  return;
2937
- const i = n.componentNode.getAll().reduce((d, o) => {
2941
+ const i = n.componentNode.getAll().reduce((d, a) => {
2938
2942
  var s;
2939
- return (o.show ?? !0) && o.category === "layout" && // layout类组件
2940
- o.id !== e.id && // 不能拖拽到自身(如果自身拖拽组件是layout类型时)
2941
- Si(t, n.componentNode.getCoordinate(o)) && (d[s = `${o.level}`] || (d[s] = [])).push(o), d;
2942
- }, {}), c = Object.values(i), a = c[c.length - 1];
2943
- 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];
2944
2948
  }
2945
2949
  function io(e, t) {
2946
2950
  const n = k.getActiveEngine();
@@ -2951,52 +2955,52 @@ function io(e, t) {
2951
2955
  y: t.y
2952
2956
  });
2953
2957
  if (i) {
2954
- const a = i == null ? void 0 : i.currentPanelId;
2955
- if (!a || n.componentNode.isInPanel(a, e))
2958
+ const o = i == null ? void 0 : i.currentPanelId;
2959
+ if (!o || n.componentNode.isInPanel(o, e))
2956
2960
  return;
2957
- const d = n.componentNode.getPanelName(a) || "目标";
2961
+ const d = n.componentNode.getPanelName(o) || "目标";
2958
2962
  return kt({
2959
2963
  title: "移入提醒",
2960
2964
  content: `确定放入面板“${d}”?`,
2961
- onOk(o) {
2965
+ onOk(a) {
2962
2966
  n.instance.getAllSelected().forEach((s) => {
2963
2967
  const r = n.componentNode.get(s.id);
2964
- n.componentNode.insertPanel(a, r);
2965
- }), 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();
2966
2970
  }
2967
2971
  });
2968
2972
  }
2969
2973
  const c = e.panelId;
2970
2974
  if (c) {
2971
- const a = n.componentNode.getPanelName(c) || "目标";
2975
+ const o = n.componentNode.getPanelName(c) || "目标";
2972
2976
  return kt({
2973
2977
  title: "移出提醒",
2974
- content: `是否移出面板“${a}”?`,
2978
+ content: `是否移出面板“${o}”?`,
2975
2979
  onOk(d) {
2976
- n.instance.getAllSelected().forEach((o) => {
2977
- const s = n.componentNode.get(o.id);
2978
- 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}”`);
2979
2983
  }), d();
2980
2984
  }
2981
2985
  });
2982
2986
  }
2983
2987
  }
2984
2988
  function lo(e) {
2985
- const t = M([]), { engine: n } = N();
2989
+ const t = j([]), { engine: n } = N();
2986
2990
  function i() {
2987
- var c, a;
2988
- 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 = []);
2989
2993
  }
2990
2994
  gt(e, {
2991
2995
  mousedown(c) {
2992
2996
  var m;
2993
- const a = e.current;
2994
- if (!a) throw new Error("dom must be exist.");
2997
+ const o = e.current;
2998
+ if (!o) throw new Error("dom must be exist.");
2995
2999
  i();
2996
- const d = Ae(c), o = 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), _ = 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;
2997
3001
  if (h && u && _) {
2998
3002
  if (Va(u, c), !(u != null && u.lock) && d) {
2999
- const v = ct(
3003
+ const y = ct(
3000
3004
  c.target,
3001
3005
  oe.dragDirection
3002
3006
  );
@@ -3008,12 +3012,12 @@ function lo(e) {
3008
3012
  scale: n.config.getConfig().scale,
3009
3013
  hookQueue: [
3010
3014
  // 监听拖拽大小
3011
- v && Ka(u, c.target, v),
3015
+ y && Ka(u, c.target, y),
3012
3016
  // 监听拖拽移动
3013
- !v && Ga(h),
3017
+ !y && Ga(h),
3014
3018
  // 监听是否放置到 layout 组件
3015
- to(h, (C) => {
3016
- t.current.push(C);
3019
+ to(h, (x) => {
3020
+ t.current.push(x);
3017
3021
  })
3018
3022
  ]
3019
3023
  })
@@ -3029,7 +3033,7 @@ function lo(e) {
3029
3033
  scale: n.config.getConfig().scale,
3030
3034
  hookQueue: [
3031
3035
  // 监听创建范围多选框(左键按住范围框选)
3032
- d && eo(a)
3036
+ d && eo(o)
3033
3037
  ]
3034
3038
  })
3035
3039
  );
@@ -3046,13 +3050,13 @@ function co(e) {
3046
3050
  const c = e.current;
3047
3051
  if (!c)
3048
3052
  throw new Error("dom must be exist.");
3049
- const { data: a } = i;
3050
- if (!(a == null ? void 0 : a.component))
3053
+ const { data: o } = i;
3054
+ if (!(o == null ? void 0 : o.component))
3051
3055
  return;
3052
- const o = c.getBoundingClientRect(), s = t.config.getConfig().scale, r = t.componentNode.createFromComponent(a.component, {
3053
- 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),
3054
3058
  // 真实坐标转为编辑器坐标 (scale 越小,编辑器面积越小,真实像素变化映射到虚拟像素越大)
3055
- y: Math.round((n.y - o.y) / s),
3059
+ y: Math.round((n.y - a.y) / s),
3056
3060
  pageId: t.config.getCurrentPage()
3057
3061
  });
3058
3062
  t.componentNode.add(r), setTimeout(async () => {
@@ -3070,27 +3074,27 @@ function ao(e) {
3070
3074
  const c = e.current;
3071
3075
  if (!c)
3072
3076
  throw new Error("dom must be exist.");
3073
- const a = c.getBoundingClientRect(), d = (b = i.data) == null ? void 0 : b.favorite;
3074
- (I = d.children) != null && I.length || E.warn("收藏元素为空");
3075
- 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(
3076
- (f, y) => (f.x = Math.min(f.x, y.x), f.y = Math.min(f.y, y.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),
3077
3081
  {
3078
3082
  x: r.x,
3079
3083
  y: r.y
3080
3084
  }
3081
- ), _ = t.config.getCurrentPage(), m = [], v = t.config.getConfig().scale, C = t.componentNode.cloneComponentNodes(d.children, {
3082
- onClone(f, y) {
3083
- y.x = Math.round((o + (y.x - h)) / v), y.y = Math.round((s + (y.y - u)) / v), y.pageId = _, m.push(y.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);
3084
3088
  }
3085
3089
  });
3086
- t.componentNode.add(C), setTimeout(() => {
3090
+ t.componentNode.add(x), setTimeout(() => {
3087
3091
  t.instance.select(m, !0), O(`新增收藏组件 “${d.name}”`);
3088
3092
  });
3089
3093
  }
3090
3094
  });
3091
3095
  }
3092
3096
  const oo = () => {
3093
- const { engine: e } = N(), t = M(null), n = M(null), i = Xt(), c = Gt(), a = A(() => {
3097
+ const { engine: e } = N(), t = j(null), n = j(null), i = Xt(), c = Gt(), o = L(() => {
3094
3098
  if (i.length)
3095
3099
  return c == null ? void 0 : c.map((d) => /* @__PURE__ */ l(
3096
3100
  qa,
@@ -3101,7 +3105,7 @@ const oo = () => {
3101
3105
  d.id
3102
3106
  ));
3103
3107
  }, [c, i]);
3104
- return lo(n), gn(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) => {
3105
3109
  e.page.removeGlobalComponentNode(d);
3106
3110
  }), []), /* @__PURE__ */ l(
3107
3111
  "div",
@@ -3109,7 +3113,7 @@ const oo = () => {
3109
3113
  ref: t,
3110
3114
  className: Mt.editor,
3111
3115
  onMouseDown: () => De(),
3112
- children: /* @__PURE__ */ l(yi, { ref: n, className: Mt.editor_render, children: a })
3116
+ children: /* @__PURE__ */ l(yi, { ref: n, className: Mt.editor_render, children: o })
3113
3117
  }
3114
3118
  );
3115
3119
  }, ro = "_attributes_esabd_59", so = {
@@ -3126,18 +3130,18 @@ const oo = () => {
3126
3130
  };
3127
3131
  function vo(e) {
3128
3132
  const [t, n] = S(!1), [i, c] = S("");
3129
- function a() {
3133
+ function o() {
3130
3134
  c((e == null ? void 0 : e.value) || ""), n(!0);
3131
3135
  }
3132
3136
  function d() {
3133
- var o;
3137
+ var a;
3134
3138
  if (!i) {
3135
- E.warn(e == null ? void 0 : e.emptyMessage);
3139
+ A.warn(e == null ? void 0 : e.emptyMessage);
3136
3140
  return;
3137
3141
  }
3138
- 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);
3139
3143
  }
3140
- return w(() => {
3144
+ return E(() => {
3141
3145
  n(!1);
3142
3146
  }, [e == null ? void 0 : e.value]), /* @__PURE__ */ g("div", { className: Xe.editText, children: [
3143
3147
  t ? /* @__PURE__ */ l(
@@ -3145,7 +3149,7 @@ function vo(e) {
3145
3149
  {
3146
3150
  value: i,
3147
3151
  style: { width: "100%" },
3148
- onChange: (o) => c(o),
3152
+ onChange: (a) => c(a),
3149
3153
  onPressEnter: () => {
3150
3154
  t && d();
3151
3155
  }
@@ -3154,30 +3158,30 @@ function vo(e) {
3154
3158
  t ? /* @__PURE__ */ l(Q, { className: "icon_clickable", onClick: d }) : /* @__PURE__ */ l(
3155
3159
  Kt,
3156
3160
  {
3157
- className: $(Xe.opacity0, "icon_clickable"),
3158
- onClick: a
3161
+ className: R(Xe.opacity0, "icon_clickable"),
3162
+ onClick: o
3159
3163
  }
3160
3164
  )
3161
3165
  ] });
3162
3166
  }
3163
3167
  function bo() {
3164
- const { engine: e } = N(), { componentNode: t } = he(), [n] = B.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;
3165
- 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) {
3166
3170
  d || e.page.removeGlobalComponentNode(t == null ? void 0 : t.id);
3167
3171
  }
3168
- return w(() => {
3172
+ return E(() => {
3169
3173
  t && n.setFieldsValue({
3170
3174
  ...t,
3171
3175
  isAllPage: !!(t != null && t.isAllPage)
3172
3176
  });
3173
3177
  }, [t]), /* @__PURE__ */ g(
3174
- B,
3178
+ M,
3175
3179
  {
3176
3180
  form: n,
3177
3181
  className: Y.singleInstanceAttributesBase,
3178
3182
  onValuesChange: (d) => {
3179
- let o = "修改组件";
3180
- 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);
3181
3185
  },
3182
3186
  children: [
3183
3187
  /* @__PURE__ */ l("div", { className: Y.singleInstanceAttributesBase_description, children: /* @__PURE__ */ g(nt, { children: [
@@ -3210,17 +3214,17 @@ function bo() {
3210
3214
  /* @__PURE__ */ g("div", { children: [
3211
3215
  /* @__PURE__ */ g(nt, { gutter: [8, 8], style: { fontSize: 12 }, children: [
3212
3216
  /* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "X轴" }),
3213
- /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(B.Item, { name: "x", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3217
+ /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "x", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3214
3218
  /* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "Y轴" }),
3215
- /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(B.Item, { name: "y", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3219
+ /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "y", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3216
3220
  /* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "宽度" }),
3217
- /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(B.Item, { name: "width", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3221
+ /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "width", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3218
3222
  /* @__PURE__ */ l(H, { span: 3, className: Y.singleInstanceAttributesBase_label, children: "高度" }),
3219
- /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(B.Item, { name: "height", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) })
3223
+ /* @__PURE__ */ l(H, { span: 9, children: /* @__PURE__ */ l(M.Item, { name: "height", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) })
3220
3224
  ] }),
3221
3225
  /* @__PURE__ */ g(Le, { labelSpan: 4, children: [
3222
- /* @__PURE__ */ l(T, { label: "层级", style: { marginTop: 8 }, labelSpan: 3, children: /* @__PURE__ */ l(B.Item, { name: "level", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3223
- /* @__PURE__ */ l(T, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(B.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
3226
+ /* @__PURE__ */ l(z, { label: "层级", style: { marginTop: 8 }, labelSpan: 3, children: /* @__PURE__ */ l(M.Item, { name: "level", noStyle: !0, children: /* @__PURE__ */ l(le, { size: "small", style: { width: "100%" } }) }) }),
3227
+ /* @__PURE__ */ l(z, { label: "全页面", style: { marginTop: 8 }, labelTip: "每个页面都会显示", children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "isAllPage", valuePropName: "checked", children: /* @__PURE__ */ l(we, {}) }) })
3224
3228
  ] })
3225
3229
  ] }),
3226
3230
  t && c && /* @__PURE__ */ l("div", { style: { paddingTop: 8 }, children: /* @__PURE__ */ l(zt, { children: /* @__PURE__ */ l(
@@ -3231,9 +3235,9 @@ function bo() {
3231
3235
  e.componentNode.update(t == null ? void 0 : t.id, d), O("修改组件属性");
3232
3236
  },
3233
3237
  options: t == null ? void 0 : t.options,
3234
- onChange: (d, o) => {
3238
+ onChange: (d, a) => {
3235
3239
  e.componentNode.update(t == null ? void 0 : t.id, {
3236
- options: o ? d : {
3240
+ options: a ? d : {
3237
3241
  ...t == null ? void 0 : t.options,
3238
3242
  ...d
3239
3243
  }
@@ -3252,13 +3256,13 @@ const Co = "_dataSource_1t8uf_59", xo = {
3252
3256
  requestDataSource: Io
3253
3257
  };
3254
3258
  function So(e) {
3255
- const t = k.getActiveEngine(), { componentNode: n } = he(), i = A(() => {
3259
+ const t = k.getActiveEngine(), { componentNode: n } = he(), i = L(() => {
3256
3260
  var r, h;
3257
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);
3258
3262
  }, [n == null ? void 0 : n.id]), c = n == null ? void 0 : n.request, {
3259
- data: a,
3263
+ data: o,
3260
3264
  loading: d,
3261
- refresh: o
3265
+ refresh: a
3262
3266
  } = Qt(
3263
3267
  async () => {
3264
3268
  var r, h;
@@ -3278,7 +3282,7 @@ function So(e) {
3278
3282
  }));
3279
3283
  }
3280
3284
  return /* @__PURE__ */ g("div", { style: e == null ? void 0 : e.style, className: ko.requestDataSource, children: [
3281
- /* @__PURE__ */ l(T, { label: "请求类型", children: /* @__PURE__ */ l(
3285
+ /* @__PURE__ */ l(z, { label: "请求类型", children: /* @__PURE__ */ l(
3282
3286
  Ce,
3283
3287
  {
3284
3288
  allowClear: !1,
@@ -3295,7 +3299,7 @@ function So(e) {
3295
3299
  }
3296
3300
  }
3297
3301
  ) }),
3298
- /* @__PURE__ */ l(T, { label: "请求地址", children: /* @__PURE__ */ l(
3302
+ /* @__PURE__ */ l(z, { label: "请求地址", children: /* @__PURE__ */ l(
3299
3303
  p,
3300
3304
  {
3301
3305
  value: c == null ? void 0 : c.url,
@@ -3305,7 +3309,7 @@ function So(e) {
3305
3309
  }
3306
3310
  ) }),
3307
3311
  /* @__PURE__ */ l("b", { style: { marginTop: 12 }, children: "请求配置" }),
3308
- /* @__PURE__ */ l(T, { label: "轮循请求", children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
3312
+ /* @__PURE__ */ l(z, { label: "轮循请求", children: /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
3309
3313
  /* @__PURE__ */ l(
3310
3314
  we,
3311
3315
  {
@@ -3329,7 +3333,7 @@ function So(e) {
3329
3333
  /* @__PURE__ */ l("span", { children: "毫秒" })
3330
3334
  ] })
3331
3335
  ] }) }),
3332
- /* @__PURE__ */ l(T, { label: "初次请求", children: /* @__PURE__ */ l(
3336
+ /* @__PURE__ */ l(z, { label: "初次请求", children: /* @__PURE__ */ l(
3333
3337
  we,
3334
3338
  {
3335
3339
  checked: (c == null ? void 0 : c.first) ?? !1,
@@ -3340,12 +3344,12 @@ function So(e) {
3340
3344
  ) }),
3341
3345
  /* @__PURE__ */ g("div", { style: { marginTop: 12, display: "flex", gap: 8, alignItems: "center" }, children: [
3342
3346
  /* @__PURE__ */ l("b", { children: "数据结果" }),
3343
- /* @__PURE__ */ l(z, { title: "请求数据", children: /* @__PURE__ */ l(
3347
+ /* @__PURE__ */ l($, { title: "请求数据", children: /* @__PURE__ */ l(
3344
3348
  Z,
3345
3349
  {
3346
3350
  className: "icon_clickable",
3347
3351
  onClick: () => {
3348
- o();
3352
+ a();
3349
3353
  }
3350
3354
  }
3351
3355
  ) })
@@ -3356,7 +3360,7 @@ function So(e) {
3356
3360
  readOnly: !0,
3357
3361
  minimap: !1,
3358
3362
  language: "json",
3359
- value: d ? "" : a,
3363
+ value: d ? "" : o,
3360
3364
  style: { flex: 1, minHeight: 200, maxHeight: 400 }
3361
3365
  }
3362
3366
  )
@@ -3367,24 +3371,24 @@ const No = "_staticDataSource_1p3pl_59", wo = {
3367
3371
  };
3368
3372
  function Eo(e) {
3369
3373
  const { engine: t } = N(), { componentNode: n } = he(), [i, c] = S("");
3370
- function a() {
3374
+ function o() {
3371
3375
  if (!i)
3372
- return E.warn("json格式不正确");
3376
+ return A.warn("json格式不正确");
3373
3377
  try {
3374
3378
  const d = JSON.parse(i);
3375
3379
  t.componentNode.update(n == null ? void 0 : n.id, {
3376
3380
  staticDataSource: d
3377
- }), E.success("修改成功"), O("修改静态数据");
3381
+ }), A.success("修改成功"), O("修改静态数据");
3378
3382
  } catch {
3379
- E.warn("json格式不正确");
3383
+ A.warn("json格式不正确");
3380
3384
  }
3381
3385
  }
3382
- return w(() => {
3386
+ return E(() => {
3383
3387
  c(
3384
3388
  n != null && n.staticDataSource ? JSON.stringify((n == null ? void 0 : n.staticDataSource) || {}, null, " ") : ""
3385
3389
  );
3386
3390
  }, [n]), /* @__PURE__ */ g("div", { className: wo.staticDataSource, style: e == null ? void 0 : e.style, children: [
3387
- /* @__PURE__ */ l(T, { label: "配置数据", children: /* @__PURE__ */ l(z, { 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 }) }) }),
3388
3392
  /* @__PURE__ */ l(
3389
3393
  X,
3390
3394
  {
@@ -3407,7 +3411,7 @@ const Ao = [
3407
3411
  function Lo() {
3408
3412
  const { engine: e } = N(), { componentNode: t } = he(), n = (t == null ? void 0 : t.dataSourceType) ?? "static";
3409
3413
  return /* @__PURE__ */ l(Le, { labelSpan: 5, children: /* @__PURE__ */ g("div", { className: xo.dataSource, children: [
3410
- /* @__PURE__ */ l(T, { label: "数据源", children: /* @__PURE__ */ l(
3414
+ /* @__PURE__ */ l(z, { label: "数据源", children: /* @__PURE__ */ l(
3411
3415
  Ce,
3412
3416
  {
3413
3417
  value: n,
@@ -3429,14 +3433,14 @@ const Do = "_interactive_1j74j_59", Oo = {
3429
3433
  interactive: Do
3430
3434
  };
3431
3435
  function Po(e) {
3432
- 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(
3433
3437
  () => n.component.get(t == null ? void 0 : t.cId),
3434
3438
  [t == null ? void 0 : t.cId]
3435
3439
  );
3436
- return w(() => {
3437
- var d, o;
3440
+ return E(() => {
3441
+ var d, a;
3438
3442
  c(
3439
- ((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) => {
3440
3444
  var r;
3441
3445
  return {
3442
3446
  disabled: !!((r = t == null ? void 0 : t.events) != null && r.find((h) => h.triggerId === s.value)),
@@ -3446,15 +3450,15 @@ function Po(e) {
3446
3450
  };
3447
3451
  })) || []
3448
3452
  );
3449
- }, [a, t]), /* @__PURE__ */ l(
3453
+ }, [o, t]), /* @__PURE__ */ l(
3450
3454
  be,
3451
3455
  {
3452
3456
  trigger: ["click"],
3453
3457
  menu: {
3454
3458
  items: i,
3455
3459
  onClick: ({ key: d }) => {
3456
- var o;
3457
- (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);
3458
3462
  }
3459
3463
  },
3460
3464
  children: /* @__PURE__ */ l(K, { type: "dashed", block: !0, icon: /* @__PURE__ */ l(rt, {}), children: "组件绑定事件" })
@@ -3478,7 +3482,7 @@ const Bo = "_eventList_19gi2_59", Mo = "_eventList_head_19gi2_62", jo = "_eventL
3478
3482
  };
3479
3483
  function qo(e) {
3480
3484
  var t;
3481
- return /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ l(T, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
3485
+ return /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ l(z, { label: "组件显示", labelSpan: 3, children: /* @__PURE__ */ l(
3482
3486
  Ut,
3483
3487
  {
3484
3488
  size: "small",
@@ -3495,7 +3499,7 @@ function qo(e) {
3495
3499
  }
3496
3500
  const Jo = ue((e) => {
3497
3501
  const [t, n] = Tt.useState();
3498
- return w(() => {
3502
+ return E(() => {
3499
3503
  var i;
3500
3504
  e != null && e.visible && n((i = e == null ? void 0 : e.params) == null ? void 0 : i.text);
3501
3505
  }, [e == null ? void 0 : e.visible]), /* @__PURE__ */ g(
@@ -3553,11 +3557,11 @@ function _n(e) {
3553
3557
  var c;
3554
3558
  (c = e == null ? void 0 : e.onChange) == null || c.call(e, i);
3555
3559
  }
3556
- }), n = A(() => e != null && e.tooltip ? /* @__PURE__ */ l(z, { title: e == null ? void 0 : e.tooltip, children: /* @__PURE__ */ l("span", { children: "{}" }) }) : /* @__PURE__ */ l("span", { children: "{}" }), [e == null ? void 0 : e.tooltip]);
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]);
3557
3561
  return /* @__PURE__ */ l(W, { children: /* @__PURE__ */ l(
3558
3562
  "span",
3559
3563
  {
3560
- className: $("icon_clickable", (e == null ? void 0 : e.value) && "icon_selected"),
3564
+ className: R("icon_clickable", (e == null ? void 0 : e.value) && "icon_selected"),
3561
3565
  style: { fontSize: 14 },
3562
3566
  onClick: () => {
3563
3567
  t.open({
@@ -3573,33 +3577,33 @@ const Wo = /* @__PURE__ */ g("div", { children: [
3573
3577
  /* @__PURE__ */ l("div", { style: { whiteSpace: "pre-wrap", padding: "12px 0" }, children: JSON.stringify({ name: "tjh", age: 25 }, null, " ") })
3574
3578
  ] });
3575
3579
  function Vo(e) {
3576
- var o, s, r;
3577
- 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("");
3578
3582
  function d() {
3579
3583
  var h;
3580
3584
  try {
3581
3585
  const u = JSON.parse(c);
3582
3586
  if (typeof u != "object" || u === null) {
3583
- E.warn("只能保存对象格式数据");
3587
+ A.warn("只能保存对象格式数据");
3584
3588
  return;
3585
3589
  }
3586
3590
  (h = e == null ? void 0 : e.onChange) == null || h.call(e, {
3587
3591
  ...e == null ? void 0 : e.value,
3588
3592
  params: u
3589
- }), E.success("更新成功");
3593
+ }), A.success("更新成功");
3590
3594
  } catch {
3591
- E.warn("JSON格式不正确");
3595
+ A.warn("JSON格式不正确");
3592
3596
  }
3593
3597
  }
3594
- return w(() => {
3598
+ return E(() => {
3595
3599
  var h;
3596
- a(JSON.stringify(((h = e == null ? void 0 : e.value) == null ? void 0 : h.params) || {}, null, " "));
3597
- }, [(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(() => {
3598
3602
  var h;
3599
3603
  i((h = e == null ? void 0 : e.value) == null ? void 0 : h.parserFunc);
3600
3604
  }, [(r = e == null ? void 0 : e.value) == null ? void 0 : r.parserFunc]), /* @__PURE__ */ g("div", { className: Be.eventOptions_main, children: [
3601
3605
  /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
3602
- /* @__PURE__ */ l(T, { label: "参数类型", labelSpan: 3 }),
3606
+ /* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3 }),
3603
3607
  /* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
3604
3608
  /* @__PURE__ */ l(
3605
3609
  Ce,
@@ -3638,7 +3642,7 @@ function Vo(e) {
3638
3642
  ] })
3639
3643
  ] }),
3640
3644
  t === "json" && /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 2, children: [
3641
- /* @__PURE__ */ l(T, { label: "json对象", labelSpan: 3, labelTip: Wo, children: /* @__PURE__ */ l(z, { 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" }) }) }),
3642
3646
  /* @__PURE__ */ l(
3643
3647
  X,
3644
3648
  {
@@ -3646,7 +3650,7 @@ function Vo(e) {
3646
3650
  language: "json",
3647
3651
  style: { height: 380 },
3648
3652
  onChange: (h) => {
3649
- a(h);
3653
+ o(h);
3650
3654
  }
3651
3655
  }
3652
3656
  )
@@ -3654,23 +3658,23 @@ function Vo(e) {
3654
3658
  ] });
3655
3659
  }
3656
3660
  function Go(e) {
3657
- var a;
3661
+ var o;
3658
3662
  const [t, n] = S();
3659
3663
  function i(d) {
3660
- var o;
3661
- (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, {
3662
3666
  ...e == null ? void 0 : e.value,
3663
3667
  function: d
3664
3668
  });
3665
3669
  }
3666
3670
  function c() {
3667
- i(void 0), n(void 0), E.success("重置成功");
3671
+ i(void 0), n(void 0), A.success("重置成功");
3668
3672
  }
3669
- return w(() => {
3673
+ return E(() => {
3670
3674
  var d;
3671
3675
  n((d = e == null ? void 0 : e.value) == null ? void 0 : d.function);
3672
- }, [(a = e == null ? void 0 : e.value) == null ? void 0 : a.function]), /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 4, children: [
3673
- /* @__PURE__ */ l(T, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
3676
+ }, [(o = e == null ? void 0 : e.value) == null ? void 0 : o.function]), /* @__PURE__ */ l("div", { className: Be.eventOptions_main, children: /* @__PURE__ */ g(D, { style: { width: "100%" }, direction: "vertical", size: 4, children: [
3677
+ /* @__PURE__ */ l(z, { label: "函数内容", labelSpan: 3, children: /* @__PURE__ */ l(
3674
3678
  "div",
3675
3679
  {
3676
3680
  style: {
@@ -3679,7 +3683,7 @@ function Go(e) {
3679
3683
  alignItems: "center",
3680
3684
  justifyContent: "space-between"
3681
3685
  },
3682
- children: /* @__PURE__ */ l(z, { title: "重置", children: /* @__PURE__ */ l(Xn, { onClick: c, className: "icon_clickable" }) })
3686
+ children: /* @__PURE__ */ l($, { title: "重置", children: /* @__PURE__ */ l(Xn, { onClick: c, className: "icon_clickable" }) })
3683
3687
  }
3684
3688
  ) }),
3685
3689
  /* @__PURE__ */ l(
@@ -3702,31 +3706,31 @@ const Xo = {
3702
3706
  json: {}
3703
3707
  };
3704
3708
  function Yo(e) {
3705
- var r, h, u, _, m, v, C, b, I, f, y;
3706
- 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();
3707
3711
  function s() {
3708
- var x;
3712
+ var C;
3709
3713
  if (!d)
3710
- return E.warn("json不能为空");
3714
+ return A.warn("json不能为空");
3711
3715
  try {
3712
- const L = JSON.parse(d || "");
3713
- 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, {
3714
3718
  ...e == null ? void 0 : e.value,
3715
- value: L
3716
- }), E.success("设置成功"));
3719
+ value: w
3720
+ }), A.success("设置成功"));
3717
3721
  } catch {
3718
- E.warn("json格式不正确");
3722
+ A.warn("json格式不正确");
3719
3723
  }
3720
3724
  }
3721
- return w(() => {
3722
- var x;
3723
- a((x = e == null ? void 0 : e.value) == null ? void 0 : x.parserFunc);
3724
- }, [(u = e == null ? void 0 : e.value) == null ? void 0 : u.parserFunc]), w(() => {
3725
- var x, L;
3726
- ((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, " "));
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, " "));
3727
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: [
3728
3732
  /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
3729
- /* @__PURE__ */ l(T, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
3733
+ /* @__PURE__ */ l(z, { label: "参数类型", labelSpan: 3, labelTip: "json数据格式为数组或对象" }),
3730
3734
  /* @__PURE__ */ g(D, { children: [
3731
3735
  /* @__PURE__ */ l(
3732
3736
  Ce,
@@ -3740,10 +3744,10 @@ function Yo(e) {
3740
3744
  { label: "文本值", value: "text" },
3741
3745
  { label: "json数据", value: "json" }
3742
3746
  ],
3743
- onChange: (x) => t({
3747
+ onChange: (C) => t({
3744
3748
  ...e == null ? void 0 : e.value,
3745
- value: Xo[x],
3746
- type: x
3749
+ value: Xo[C],
3750
+ type: C
3747
3751
  })
3748
3752
  }
3749
3753
  ),
@@ -3752,19 +3756,19 @@ function Yo(e) {
3752
3756
  {
3753
3757
  tooltip: "解析函数",
3754
3758
  value: c,
3755
- onChange: (x) => {
3756
- var L;
3757
- 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, {
3758
3762
  ...e == null ? void 0 : e.value,
3759
- parserFunc: x
3763
+ parserFunc: C
3760
3764
  });
3761
3765
  }
3762
3766
  }
3763
3767
  )
3764
3768
  ] })
3765
3769
  ] }),
3766
- ((v = e == null ? void 0 : e.value) == null ? void 0 : v.type) && ((C = e == null ? void 0 : e.value) == null ? void 0 : C.type) !== "default" && /* @__PURE__ */ g(D, { direction: "vertical", size: 4, style: { width: "100%" }, children: [
3767
- /* @__PURE__ */ l(T, { label: "参数值", labelSpan: 3, children: i && /* @__PURE__ */ l(z, { 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" }) }) }),
3768
3772
  /* @__PURE__ */ g(W, { children: [
3769
3773
  ((b = e == null ? void 0 : e.value) == null ? void 0 : b.type) === "number" && /* @__PURE__ */ l(
3770
3774
  mt,
@@ -3772,10 +3776,10 @@ function Yo(e) {
3772
3776
  min: void 0,
3773
3777
  style: { width: Ne * 2 },
3774
3778
  value: (I = e == null ? void 0 : e.value) == null ? void 0 : I.value,
3775
- onChange: (x) => {
3779
+ onChange: (C) => {
3776
3780
  t({
3777
3781
  ...e == null ? void 0 : e.value,
3778
- value: x
3782
+ value: C
3779
3783
  });
3780
3784
  }
3781
3785
  }
@@ -3784,12 +3788,12 @@ function Yo(e) {
3784
3788
  xi,
3785
3789
  {
3786
3790
  style: { width: Ne * 2 },
3787
- value: (y = e == null ? void 0 : e.value) == null ? void 0 : y.value,
3791
+ value: (v = e == null ? void 0 : e.value) == null ? void 0 : v.value,
3788
3792
  autoSize: { minRows: 3, maxRows: 3 },
3789
- onChange: (x) => {
3793
+ onChange: (C) => {
3790
3794
  t({
3791
3795
  ...e == null ? void 0 : e.value,
3792
- value: x
3796
+ value: C
3793
3797
  });
3794
3798
  }
3795
3799
  }
@@ -3800,8 +3804,8 @@ function Yo(e) {
3800
3804
  language: "javascript",
3801
3805
  style: { height: 375 },
3802
3806
  value: d,
3803
- onChange: (x) => {
3804
- o(x);
3807
+ onChange: (C) => {
3808
+ a(C);
3805
3809
  }
3806
3810
  }
3807
3811
  )
@@ -3811,7 +3815,7 @@ function Yo(e) {
3811
3815
  }
3812
3816
  const Ne = 200;
3813
3817
  function Zo(e) {
3814
- var i, c, a, d, o;
3818
+ var i, c, o, d, a;
3815
3819
  const t = (i = e == null ? void 0 : e.value) == null ? void 0 : i.option;
3816
3820
  function n(s) {
3817
3821
  var r;
@@ -3820,7 +3824,7 @@ function Zo(e) {
3820
3824
  option: s
3821
3825
  }));
3822
3826
  }
3823
- return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((a = e == null ? void 0 : e.value) == null ? void 0 : a.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 }) : ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === ze.custom ? /* @__PURE__ */ l(Go, { value: t, onChange: n }) : /* @__PURE__ */ l(Yo, { value: t, onChange: n }) : /* @__PURE__ */ l(U, { description: "请选中目标操作" });
3827
+ return (c = e == null ? void 0 : e.value) != null && c.exposeId ? ((o = e == null ? void 0 : e.value) == null ? void 0 : o.exposeId) === ze.visible ? /* @__PURE__ */ l(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: "请选中目标操作" });
3824
3828
  }
3825
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 = {
3826
3830
  targetList: Qo,
@@ -3862,30 +3866,30 @@ function dd(e) {
3862
3866
  }
3863
3867
  function rd(e) {
3864
3868
  var _;
3865
- const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = M();
3866
- w(() => {
3869
+ const { engine: t } = N(), [n, i] = S(!1), [c, o] = S([]), [d, a] = S(""), s = j();
3870
+ E(() => {
3867
3871
  if (n) {
3868
3872
  s.current && (clearTimeout(s.current), s.current = null);
3869
3873
  let m = t.componentNode.getAll();
3870
- 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("");
3871
3875
  }
3872
3876
  }, [n]);
3873
- const r = A(() => {
3874
- var v;
3875
- const m = (v = d == null ? void 0 : d.toLowerCase) == null ? void 0 : v.call(d);
3876
- return c.filter((C) => {
3877
- var b, I, f, y;
3878
- return (y = (f = (I = (b = C == null ? void 0 : C.name) == null ? void 0 : b.toLowerCase) == null ? void 0 : I.call(b)) == null ? void 0 : f.includes) == null ? void 0 : y.call(f, m);
3877
+ const r = L(() => {
3878
+ var y;
3879
+ const m = (y = d == null ? void 0 : d.toLowerCase) == null ? void 0 : y.call(d);
3880
+ return c.filter((x) => {
3881
+ var b, I, f, v;
3882
+ return (v = (f = (I = (b = x == null ? void 0 : x.name) == null ? void 0 : b.toLowerCase) == null ? void 0 : I.call(b)) == null ? void 0 : f.includes) == null ? void 0 : v.call(f, m);
3879
3883
  });
3880
3884
  }, [d, c]);
3881
3885
  function h() {
3882
3886
  i(!1), s.current = setTimeout(() => {
3883
- a([]), s.current = null;
3887
+ o([]), s.current = null;
3884
3888
  }, 300);
3885
3889
  }
3886
3890
  function u(m) {
3887
- var v;
3888
- (v = e == null ? void 0 : e.onSelect) == null || v.call(e, m), h();
3891
+ var y;
3892
+ (y = e == null ? void 0 : e.onSelect) == null || y.call(e, m), h();
3889
3893
  }
3890
3894
  return /* @__PURE__ */ l(
3891
3895
  be,
@@ -3896,11 +3900,11 @@ function rd(e) {
3896
3900
  {
3897
3901
  key: "body",
3898
3902
  label: /* @__PURE__ */ g("div", { className: fe.addComponentNodeButton, children: [
3899
- /* @__PURE__ */ l(p, { placeholder: "搜索页面组件", value: d, onChange: o }),
3903
+ /* @__PURE__ */ l(p, { placeholder: "搜索页面组件", value: d, onChange: a }),
3900
3904
  /* @__PURE__ */ g("div", { className: fe.addComponentNodeButton_body, children: [
3901
3905
  !(r != null && r.length) && /* @__PURE__ */ l(U, {}),
3902
3906
  (_ = r == null ? void 0 : r.map) == null ? void 0 : _.call(r, (m) => {
3903
- const v = t.component.get(m == null ? void 0 : m.cId);
3907
+ const y = t.component.get(m == null ? void 0 : m.cId);
3904
3908
  return /* @__PURE__ */ l(
3905
3909
  st,
3906
3910
  {
@@ -3916,7 +3920,7 @@ function rd(e) {
3916
3920
  /* @__PURE__ */ l(
3917
3921
  xe,
3918
3922
  {
3919
- src: v == null ? void 0 : v.icon,
3923
+ src: y == null ? void 0 : y.icon,
3920
3924
  style: { maxHeight: 20, maxWidth: 20 }
3921
3925
  }
3922
3926
  ),
@@ -3953,9 +3957,9 @@ function rd(e) {
3953
3957
  }
3954
3958
  function sd(e) {
3955
3959
  var d;
3956
- const t = ht(), { engine: n } = N(), i = A(() => {
3957
- var o, s;
3958
- 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) => {
3959
3963
  var h;
3960
3964
  return {
3961
3965
  value: r.id,
@@ -3963,77 +3967,77 @@ function sd(e) {
3963
3967
  };
3964
3968
  });
3965
3969
  }, [e == null ? void 0 : e.targets]);
3966
- function c(o) {
3970
+ function c(a) {
3967
3971
  var r;
3968
3972
  const s = [
3969
3973
  ...(e == null ? void 0 : e.targets) || [],
3970
3974
  {
3971
- id: o.id,
3975
+ id: a.id,
3972
3976
  opts: []
3973
3977
  }
3974
3978
  ];
3975
3979
  (r = e == null ? void 0 : e.onChangeTargets) == null || r.call(e, s, "add");
3976
3980
  }
3977
- function a(o) {
3978
- var _, m, v;
3981
+ function o(a) {
3982
+ var _, m, y;
3979
3983
  let s;
3980
- 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 = ((v = s == null ? void 0 : s.opts) == null ? void 0 : v.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;
3981
3985
  function u() {
3982
- var C, b, I;
3983
- (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, (b = r == null ? void 0 : r[0]) == null ? void 0 : b.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));
3984
3988
  }
3985
3989
  if (h) {
3986
3990
  t({
3987
3991
  title: "提醒",
3988
3992
  content: `该组件已配置 ${h} 个事件操作,确定删除?`,
3989
- onOk(C) {
3990
- u(), C();
3993
+ onOk(x) {
3994
+ u(), x();
3991
3995
  }
3992
3996
  });
3993
3997
  return;
3994
3998
  }
3995
3999
  u();
3996
4000
  }
3997
- 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: [
3998
4002
  /* @__PURE__ */ l(
3999
4003
  rd,
4000
4004
  {
4001
4005
  style: { margin: -1 },
4002
- beforeVisible: (o) => o.filter((s) => {
4006
+ beforeVisible: (a) => a.filter((s) => {
4003
4007
  var r, h;
4004
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)));
4005
4009
  }),
4006
- onSelect: (o) => c(o),
4010
+ onSelect: (a) => c(a),
4007
4011
  children: "新增目标组件"
4008
4012
  }
4009
4013
  ),
4010
- /* @__PURE__ */ l("div", { className: me.targetList_body, children: (d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (o) => {
4011
- 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);
4012
4016
  return /* @__PURE__ */ g(
4013
4017
  "div",
4014
4018
  {
4015
- className: $(
4019
+ className: R(
4016
4020
  me.targetList_item,
4017
4021
  s && me.targetList_item_selected
4018
4022
  ),
4019
4023
  onClick: () => {
4020
4024
  var r;
4021
- 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);
4022
4026
  },
4023
4027
  children: [
4024
- o == null ? void 0 : o.label,
4028
+ a == null ? void 0 : a.label,
4025
4029
  /* @__PURE__ */ l(
4026
4030
  de,
4027
4031
  {
4028
4032
  className: me.targetList_item_clickable,
4029
4033
  onClick: (r) => {
4030
- a(o == null ? void 0 : o.value), r.stopPropagation();
4034
+ o(a == null ? void 0 : a.value), r.stopPropagation();
4031
4035
  }
4032
4036
  }
4033
4037
  )
4034
4038
  ]
4035
4039
  },
4036
- o == null ? void 0 : o.value
4040
+ a == null ? void 0 : a.value
4037
4041
  );
4038
4042
  }) }),
4039
4043
  !(i != null && i.length) && /* @__PURE__ */ l(U, {})
@@ -4053,30 +4057,30 @@ const ud = "_targetList_17cmb_59", hd = "_targetList_body_17cmb_66", gd = "_targ
4053
4057
  };
4054
4058
  function Cd(e) {
4055
4059
  var u;
4056
- const { engine: t } = N(), [n, i] = S(!1), [c, a] = S([]), [d, o] = S(""), s = M(), r = A(() => {
4060
+ const { engine: t } = N(), [n, i] = S(!1), [c, o] = S([]), [d, a] = S(""), s = j(), r = L(() => {
4057
4061
  var m;
4058
4062
  const _ = (m = d == null ? void 0 : d.toLowerCase) == null ? void 0 : m.call(d);
4059
- return c.filter((v) => {
4060
- var C, b, I, f;
4061
- return (f = (I = (b = (C = v == null ? void 0 : v.label) == null ? void 0 : C.toLowerCase) == null ? void 0 : b.call(C)) == null ? void 0 : I.includes) == null ? void 0 : f.call(I, _);
4063
+ return c.filter((y) => {
4064
+ var x, b, I, f;
4065
+ return (f = (I = (b = (x = y == null ? void 0 : y.label) == null ? void 0 : x.toLowerCase) == null ? void 0 : b.call(x)) == null ? void 0 : I.includes) == null ? void 0 : f.call(I, _);
4062
4066
  });
4063
4067
  }, [d, c]);
4064
4068
  function h() {
4065
4069
  i(!1);
4066
4070
  }
4067
- return w(() => {
4071
+ return E(() => {
4068
4072
  var _;
4069
4073
  if (n) {
4070
4074
  s.current && (clearTimeout(s.current), s.current = null);
4071
4075
  let m = [];
4072
4076
  if (e != null && e.cId) {
4073
- const v = t.component.get(e == null ? void 0 : e.cId);
4074
- m = (_ = (v == null ? void 0 : v.exposes) || []) == null ? void 0 : _.reduce(
4075
- (C, b) => (C.push({ label: b.label, value: b.value }), C),
4077
+ const y = t.component.get(e == null ? void 0 : e.cId);
4078
+ m = (_ = (y == null ? void 0 : y.exposes) || []) == null ? void 0 : _.reduce(
4079
+ (x, b) => (x.push({ label: b.label, value: b.value }), x),
4076
4080
  [...di]
4077
4081
  );
4078
4082
  }
4079
- 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("");
4080
4084
  }
4081
4085
  }, [n]), /* @__PURE__ */ l(
4082
4086
  Ci,
@@ -4084,7 +4088,7 @@ function Cd(e) {
4084
4088
  visible: n,
4085
4089
  onClose: h,
4086
4090
  overlayChildren: /* @__PURE__ */ g("div", { className: Se.addExposesButton, children: [
4087
- /* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange: o }),
4091
+ /* @__PURE__ */ l(p, { placeholder: "搜索组件操作", value: d, onChange: a }),
4088
4092
  /* @__PURE__ */ g("div", { className: Se.addExposesButton_body, children: [
4089
4093
  !(r != null && r.length) && /* @__PURE__ */ l(U, {}),
4090
4094
  (u = r == null ? void 0 : r.map) == null ? void 0 : u.call(r, (_) => /* @__PURE__ */ l(
@@ -4117,130 +4121,130 @@ function Cd(e) {
4117
4121
  }
4118
4122
  function xd(e) {
4119
4123
  var d;
4120
- const { engine: t } = N(), n = A(() => {
4124
+ const { engine: t } = N(), n = L(() => {
4121
4125
  var s, r;
4122
- const o = t.component.get(e == null ? void 0 : e.cId);
4126
+ const a = t.component.get(e == null ? void 0 : e.cId);
4123
4127
  return {
4124
4128
  ...ri,
4125
- ...(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), {})
4126
4130
  };
4127
- }, [e == null ? void 0 : e.cId]), i = A(() => {
4128
- var o, s;
4129
- 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) => ({
4130
4134
  value: r.operateId,
4131
4135
  label: n[r.exposeId] || "-"
4132
4136
  }));
4133
4137
  }, [e == null ? void 0 : e.opts, n]);
4134
- function c(o) {
4138
+ function c(a) {
4135
4139
  var r;
4136
4140
  const s = [
4137
4141
  ...(e == null ? void 0 : e.opts) || [],
4138
4142
  {
4139
4143
  operateId: ut(),
4140
- exposeId: o.value,
4144
+ exposeId: a.value,
4141
4145
  option: {}
4142
4146
  }
4143
4147
  ];
4144
4148
  (r = e == null ? void 0 : e.onChangeOpts) == null || r.call(e, s);
4145
4149
  }
4146
- function a(o) {
4150
+ function o(a) {
4147
4151
  var r, h, u, _, m;
4148
- const s = ((h = (r = e == null ? void 0 : e.opts) == null ? void 0 : r.filter) == null ? void 0 : h.call(r, (v) => v.operateId !== o)) || [];
4149
- (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));
4150
4154
  }
4151
- 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: [
4152
4156
  /* @__PURE__ */ l(
4153
4157
  Cd,
4154
4158
  {
4155
4159
  style: { margin: -1 },
4156
4160
  cId: e == null ? void 0 : e.cId,
4157
- onSelect: (o) => c(o),
4161
+ onSelect: (a) => c(a),
4158
4162
  children: "新增操作"
4159
4163
  }
4160
4164
  ),
4161
4165
  /* @__PURE__ */ g("div", { className: ye.targetList_body, children: [
4162
4166
  !(i != null && i.length) && /* @__PURE__ */ l(U, {}),
4163
- (d = i == null ? void 0 : i.map) == null ? void 0 : d.call(i, (o) => {
4164
- 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);
4165
4169
  return /* @__PURE__ */ g(
4166
4170
  "div",
4167
4171
  {
4168
- className: $(
4172
+ className: R(
4169
4173
  ye.targetList_item,
4170
4174
  s && ye.targetList_item_selected
4171
4175
  ),
4172
4176
  onClick: () => {
4173
4177
  var r;
4174
- 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);
4175
4179
  },
4176
4180
  children: [
4177
- o == null ? void 0 : o.label,
4181
+ a == null ? void 0 : a.label,
4178
4182
  /* @__PURE__ */ l(
4179
4183
  de,
4180
4184
  {
4181
4185
  className: ye.targetList_item_clickable,
4182
4186
  onClick: (r) => {
4183
- a(o == null ? void 0 : o.value), r.stopPropagation();
4187
+ o(a == null ? void 0 : a.value), r.stopPropagation();
4184
4188
  }
4185
4189
  }
4186
4190
  )
4187
4191
  ]
4188
4192
  },
4189
- o == null ? void 0 : o.value
4193
+ a == null ? void 0 : a.value
4190
4194
  );
4191
4195
  })
4192
4196
  ] })
4193
4197
  ] });
4194
4198
  }
4195
4199
  const Id = ue((e) => {
4196
- 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(() => {
4197
4201
  var f;
4198
- return (f = t.componentNode.get(o == null ? void 0 : o.id)) == null ? void 0 : f.cId;
4199
- }, [o]);
4202
+ return (f = t.componentNode.get(a == null ? void 0 : a.id)) == null ? void 0 : f.cId;
4203
+ }, [a]);
4200
4204
  function _(f) {
4201
- var x, L, j;
4202
- const y = (L = (x = a == null ? void 0 : a.targets) == null ? void 0 : x.find) == null ? void 0 : L.call(x, (R) => R.id === f);
4203
- s(y), h((j = y == null ? void 0 : y.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]);
4204
4208
  }
4205
4209
  function m(f) {
4206
- var y, x;
4210
+ var v, C;
4207
4211
  h(
4208
- (x = (y = o == null ? void 0 : o.opts) == null ? void 0 : y.find) == null ? void 0 : x.call(y, (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)
4209
4213
  );
4210
4214
  }
4211
- function v(f, y) {
4215
+ function y(f, v) {
4212
4216
  d({
4213
- ...a,
4217
+ ...o,
4214
4218
  targets: f
4215
- }), y && f.length === 1 && s(f[f.length - 1]);
4219
+ }), v && f.length === 1 && s(f[f.length - 1]);
4216
4220
  }
4217
- function C(f) {
4218
- var y, x;
4219
- (x = (y = a == null ? void 0 : a.targets) == null ? void 0 : y.find) == null || x.call(y, (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]);
4220
4224
  }
4221
4225
  function b(f) {
4222
- var y, x;
4223
- (x = (y = a == null ? void 0 : a.targets) == null ? void 0 : y.find) == null || x.call(y, (L) => {
4224
- var j, R;
4225
- 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);
4226
- }), d({ ...a });
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 });
4227
4231
  }
4228
4232
  function I() {
4229
4233
  var f;
4230
- (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);
4231
4235
  }
4232
- return w(() => {
4233
- var f, y, x, L;
4236
+ return E(() => {
4237
+ var f, v, C, w;
4234
4238
  if (e != null && e.visible) {
4235
4239
  if (!i) {
4236
- E.error("triggerId不存在");
4240
+ A.error("triggerId不存在");
4237
4241
  return;
4238
4242
  }
4239
- let j = (y = (f = n == null ? void 0 : n.events) == null ? void 0 : f.find) == null ? void 0 : y.call(f, (V) => (V == null ? void 0 : V.triggerId) === i);
4240
- j = Wt(j || {}), d(j);
4241
- const R = (x = j == null ? void 0 : j.targets) == null ? void 0 : x[0];
4242
- s(R);
4243
- 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];
4244
4248
  h(q);
4245
4249
  } else
4246
4250
  d(void 0), s(void 0), h(void 0);
@@ -4264,13 +4268,13 @@ const Id = ue((e) => {
4264
4268
  sd,
4265
4269
  {
4266
4270
  className: "border-right",
4267
- value: o == null ? void 0 : o.id,
4271
+ value: a == null ? void 0 : a.id,
4268
4272
  onChange: (f) => {
4269
4273
  _(f);
4270
4274
  },
4271
- targets: a == null ? void 0 : a.targets,
4272
- onChangeTargets: (f, y) => {
4273
- v(f, y === "add");
4275
+ targets: o == null ? void 0 : o.targets,
4276
+ onChangeTargets: (f, v) => {
4277
+ y(f, v === "add");
4274
4278
  }
4275
4279
  }
4276
4280
  ),
@@ -4282,9 +4286,9 @@ const Id = ue((e) => {
4282
4286
  m(f);
4283
4287
  },
4284
4288
  cId: u,
4285
- opts: o == null ? void 0 : o.opts,
4289
+ opts: a == null ? void 0 : a.opts,
4286
4290
  onChangeOpts: (f) => {
4287
- C(f);
4291
+ x(f);
4288
4292
  }
4289
4293
  }
4290
4294
  )
@@ -4304,32 +4308,32 @@ const Id = ue((e) => {
4304
4308
  });
4305
4309
  function kd(e) {
4306
4310
  var h;
4307
- 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({
4308
4312
  onOk(u) {
4309
4313
  t.componentNode.update(n == null ? void 0 : n.id, (_) => {
4310
- var m, v;
4311
- return (v = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || v.call(m, (C) => C.triggerId !== (u == null ? void 0 : u.triggerId) ? !1 : (Object.assign(C, u), !0)), {
4314
+ var m, y;
4315
+ return (y = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.find) == null || y.call(m, (x) => x.triggerId !== (u == null ? void 0 : u.triggerId) ? !1 : (Object.assign(x, u), !0)), {
4312
4316
  events: _ == null ? void 0 : _.events
4313
4317
  };
4314
4318
  });
4315
4319
  }
4316
- }), d = A(() => {
4320
+ }), d = L(() => {
4317
4321
  var u;
4318
4322
  return ((u = n == null ? void 0 : n.events) == null ? void 0 : u.map((_) => {
4319
- var v, C;
4320
- const m = (C = (v = i == null ? void 0 : i.triggers) == null ? void 0 : v.find) == null ? void 0 : C.call(v, (b) => (b == null ? void 0 : b.value) === _.triggerId);
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);
4321
4325
  return {
4322
4326
  label: `${(m == null ? void 0 : m.label) || "-"}`,
4323
4327
  value: `${_.triggerId}`
4324
4328
  };
4325
4329
  })) || [];
4326
4330
  }, [n, i]);
4327
- function o(u) {
4331
+ function a(u) {
4328
4332
  if (!(u != null && u.value)) {
4329
- E.warn("triggerId不存在");
4333
+ A.warn("triggerId不存在");
4330
4334
  return;
4331
4335
  }
4332
- a.open({
4336
+ o.open({
4333
4337
  componentNode: n,
4334
4338
  triggerId: u == null ? void 0 : u.value,
4335
4339
  triggerName: u == null ? void 0 : u.label
@@ -4337,22 +4341,22 @@ function kd(e) {
4337
4341
  }
4338
4342
  function s(u) {
4339
4343
  t.componentNode.update(n == null ? void 0 : n.id, (_) => {
4340
- var m, v;
4344
+ var m, y;
4341
4345
  return {
4342
4346
  events: [
4343
- ...((v = (m = _ == null ? void 0 : _.events) == null ? void 0 : m.filter) == null ? void 0 : v.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)) || []
4344
4348
  ]
4345
4349
  };
4346
4350
  });
4347
4351
  }
4348
4352
  function r(u) {
4349
- var m, v, C, b;
4353
+ var m, y, x, b;
4350
4354
  if (!u) {
4351
- E.warn("triggerId不存在");
4355
+ A.warn("triggerId不存在");
4352
4356
  return;
4353
4357
  }
4354
- const _ = (v = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : v.call(m, (I) => (I == null ? void 0 : I.triggerId) === u);
4355
- (C = _ == null ? void 0 : _.targets) != null && C.length ? c({
4358
+ const _ = (y = (m = n == null ? void 0 : n.events) == null ? void 0 : m.find) == null ? void 0 : y.call(m, (I) => (I == null ? void 0 : I.triggerId) === u);
4359
+ (x = _ == null ? void 0 : _.targets) != null && x.length ? c({
4356
4360
  title: "提醒",
4357
4361
  content: `已配置${((b = _ == null ? void 0 : _.targets) == null ? void 0 : b.length) || 0}个事件项,确定删除该事件?`,
4358
4362
  onOk(I) {
@@ -4371,7 +4375,7 @@ function kd(e) {
4371
4375
  Yn,
4372
4376
  {
4373
4377
  className: G.eventList_item_opt_clickable,
4374
- onClick: () => o(u)
4378
+ onClick: () => a(u)
4375
4379
  }
4376
4380
  ),
4377
4381
  /* @__PURE__ */ l(
@@ -4415,36 +4419,36 @@ const Nd = "_json_1lpul_59", wd = "_json_head_1lpul_69", Ed = "_json_body_1lpul_
4415
4419
  json_body: Ed
4416
4420
  };
4417
4421
  function Ad() {
4418
- const { engine: e } = N(), { componentNode: t } = he(), [n] = B.useForm();
4422
+ const { engine: e } = N(), { componentNode: t } = he(), [n] = M.useForm();
4419
4423
  function i() {
4420
4424
  n.setFieldsValue({
4421
4425
  code: t ? JSON.stringify(t || {}, null, " ") : ""
4422
4426
  });
4423
4427
  }
4424
4428
  function c() {
4425
- const a = n.getFieldValue("code") || "";
4429
+ const o = n.getFieldValue("code") || "";
4426
4430
  try {
4427
- const d = JSON.parse(a);
4431
+ const d = JSON.parse(o);
4428
4432
  if (!vi(d)) {
4429
4433
  console.error("must be an object.");
4430
4434
  return;
4431
4435
  }
4432
- 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("修改成功");
4433
4437
  } catch (d) {
4434
- console.error(d), E.error("json格式不正确");
4438
+ console.error(d), A.error("json格式不正确");
4435
4439
  }
4436
4440
  }
4437
- return w(() => {
4441
+ return E(() => {
4438
4442
  i();
4439
- }, [t]), /* @__PURE__ */ g(B, { className: Ze.json, form: n, children: [
4443
+ }, [t]), /* @__PURE__ */ g(M, { className: Ze.json, form: n, children: [
4440
4444
  /* @__PURE__ */ g("div", { className: Ze.json_head, children: [
4441
4445
  /* @__PURE__ */ g("span", { children: [
4442
4446
  /* @__PURE__ */ l("b", { style: { marginRight: 8 }, children: "ComponentNode数据" }),
4443
- /* @__PURE__ */ l(z, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
4447
+ /* @__PURE__ */ l($, { title: "重置", children: /* @__PURE__ */ l(Z, { className: "icon_clickable", onClick: i }) })
4444
4448
  ] }),
4445
- /* @__PURE__ */ l(z, { 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 }) })
4446
4450
  ] }),
4447
- /* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(B.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
4451
+ /* @__PURE__ */ l("div", { className: Ze.json_body, children: /* @__PURE__ */ l(M.Item, { noStyle: !0, name: "code", children: /* @__PURE__ */ l(
4448
4452
  X,
4449
4453
  {
4450
4454
  language: "json",
@@ -4465,16 +4469,16 @@ const Ld = "_singleAttributes_109pm_59", Dd = {
4465
4469
  singleAttributes: Ld
4466
4470
  }, mn = xn({}), he = () => In(mn);
4467
4471
  function fn(e) {
4468
- const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [a, d] = S(), o = tn(c);
4469
- return w(() => {
4472
+ const [t, n] = se(), { engine: i } = N(), { instance: c } = e, [o, d] = S(), a = tn(c);
4473
+ return E(() => {
4470
4474
  const s = i.componentNode.get(c.id);
4471
4475
  return s && d(s), i.componentNode.onChange(c.id, ({ payload: r }) => {
4472
4476
  d({ ...r });
4473
4477
  });
4474
- }, [c.id]), w(() => i.onJsonChange(() => {
4478
+ }, [c.id]), E(() => i.onJsonChange(() => {
4475
4479
  var s;
4476
- d(i.componentNode.get((s = o == null ? void 0 : o.current) == null ? void 0 : s.id));
4477
- }), []), A(() => a ? /* @__PURE__ */ l(mn.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(
4478
4482
  ei,
4479
4483
  {
4480
4484
  className: Dd.singleAttributes,
@@ -4499,7 +4503,7 @@ function fn(e) {
4499
4503
  }
4500
4504
  ]
4501
4505
  }
4502
- ) }) : /* @__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]);
4503
4507
  }
4504
4508
  const Od = "_multipleInstanceAttributes_1ehj2_59", Pd = "_multipleInstanceAttributes_header_1ehj2_66", Bd = "_multipleInstanceAttributes_body_1ehj2_70", Qe = {
4505
4509
  multipleInstanceAttributes: Od,
@@ -4525,7 +4529,7 @@ function Md(e) {
4525
4529
  }
4526
4530
  function jd(e) {
4527
4531
  const { instances: t } = e, [n, i] = S();
4528
- return w(() => {
4532
+ return E(() => {
4529
4533
  i(t[0]);
4530
4534
  }, [t]), /* @__PURE__ */ g("div", { className: Qe.multipleInstanceAttributes, children: [
4531
4535
  /* @__PURE__ */ l("div", { className: Qe.multipleInstanceAttributes_header, children: /* @__PURE__ */ l(
@@ -4535,7 +4539,7 @@ function jd(e) {
4535
4539
  style: { width: "100%" },
4536
4540
  value: n == null ? void 0 : n.id,
4537
4541
  onChange: (c) => {
4538
- i(t.find((a) => a.id === c));
4542
+ i(t.find((o) => o.id === c));
4539
4543
  }
4540
4544
  }
4541
4545
  ) }),
@@ -4549,7 +4553,7 @@ const Td = "_pageAttributes_u2l2i_59", zd = "_pageAttributes_description_u2l2i_6
4549
4553
  };
4550
4554
  function Rd() {
4551
4555
  const { engine: e } = N(), [t] = se(), n = bi(), { id: i, options: c } = n || {};
4552
- function a(d) {
4556
+ function o(d) {
4553
4557
  e.page.update(i, {
4554
4558
  options: {
4555
4559
  ...c,
@@ -4571,7 +4575,7 @@ function Rd() {
4571
4575
  ] }) }),
4572
4576
  /* @__PURE__ */ l("div", { className: pe.pageAttributes_body, children: /* @__PURE__ */ g(Le, { labelSpan: 5, children: [
4573
4577
  /* @__PURE__ */ g(
4574
- T,
4578
+ z,
4575
4579
  {
4576
4580
  label: "页面背景",
4577
4581
  labelTip: "设置当前页背景颜色",
@@ -4583,16 +4587,16 @@ function Rd() {
4583
4587
  style: { flex: 1 },
4584
4588
  value: c == null ? void 0 : c.background,
4585
4589
  onChange: (d) => {
4586
- a({ background: d });
4590
+ o({ background: d });
4587
4591
  }
4588
4592
  }
4589
4593
  ),
4590
- /* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
4594
+ /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4591
4595
  Z,
4592
4596
  {
4593
4597
  className: "icon_clickable",
4594
4598
  onClick: () => {
4595
- a({ background: "white" });
4599
+ o({ background: "white" });
4596
4600
  }
4597
4601
  }
4598
4602
  ) })
@@ -4600,7 +4604,7 @@ function Rd() {
4600
4604
  }
4601
4605
  ),
4602
4606
  /* @__PURE__ */ g(
4603
- T,
4607
+ z,
4604
4608
  {
4605
4609
  label: "白板背景",
4606
4610
  labelTip: "页面所处白板的背景颜色",
@@ -4612,16 +4616,16 @@ function Rd() {
4612
4616
  style: { flex: 1 },
4613
4617
  value: c == null ? void 0 : c.whiteBoardColor,
4614
4618
  onChange: (d) => {
4615
- a({ whiteBoardColor: d });
4619
+ o({ whiteBoardColor: d });
4616
4620
  }
4617
4621
  }
4618
4622
  ),
4619
- /* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
4623
+ /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4620
4624
  Z,
4621
4625
  {
4622
4626
  className: "icon_clickable",
4623
4627
  onClick: () => {
4624
- a({ whiteBoardColor: "white" });
4628
+ o({ whiteBoardColor: "white" });
4625
4629
  }
4626
4630
  }
4627
4631
  ) })
@@ -4629,7 +4633,7 @@ function Rd() {
4629
4633
  }
4630
4634
  ),
4631
4635
  /* @__PURE__ */ g(
4632
- T,
4636
+ z,
4633
4637
  {
4634
4638
  label: "边框",
4635
4639
  childrenStyle: { display: "flex", alignItems: "center", gap: 8 },
@@ -4640,7 +4644,7 @@ function Rd() {
4640
4644
  {
4641
4645
  checked: c == null ? void 0 : c.bordered,
4642
4646
  onChange: (d) => {
4643
- a({
4647
+ o({
4644
4648
  bordered: d.target.checked
4645
4649
  });
4646
4650
  }
@@ -4653,16 +4657,16 @@ function Rd() {
4653
4657
  style: { flex: 1 },
4654
4658
  value: c == null ? void 0 : c.borderColor,
4655
4659
  onChange: (d) => {
4656
- a({ borderColor: d });
4660
+ o({ borderColor: d });
4657
4661
  }
4658
4662
  }
4659
4663
  ),
4660
- /* @__PURE__ */ l(z, { title: t("reset"), children: /* @__PURE__ */ l(
4664
+ /* @__PURE__ */ l($, { title: t("reset"), children: /* @__PURE__ */ l(
4661
4665
  Z,
4662
4666
  {
4663
4667
  className: "icon_clickable",
4664
4668
  onClick: () => {
4665
- a({ borderColor: "white" });
4669
+ o({ borderColor: "white" });
4666
4670
  }
4667
4671
  }
4668
4672
  ) })
@@ -4674,7 +4678,7 @@ function Rd() {
4674
4678
  ] });
4675
4679
  }
4676
4680
  function Fd() {
4677
- 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]);
4678
4682
  return /* @__PURE__ */ l("div", { className: so.attributes, children: t ? (
4679
4683
  // 选中组件实例配置
4680
4684
  /* @__PURE__ */ g(W, { children: [
@@ -4694,7 +4698,14 @@ function Cr(e) {
4694
4698
  (c = e == null ? void 0 : e.onJSONLoad) == null || c.call(e);
4695
4699
  });
4696
4700
  }, []), /* @__PURE__ */ g("div", { className: te.page, children: [
4697
- /* @__PURE__ */ l("div", { className: te.page_header, children: /* @__PURE__ */ l(El, { pageLogo: e == null ? void 0 : e.pageLogo, pageToolBar: e == null ? void 0 : e.pageToolBar }) }),
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
+ ) }),
4698
4709
  /* @__PURE__ */ g("div", { className: te.page_body, children: [
4699
4710
  /* @__PURE__ */ l("div", { className: te.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(_a, {}) }),
4700
4711
  /* @__PURE__ */ l("div", { className: te.page_body_main, id: "rbs-editor", children: /* @__PURE__ */ l(oo, {}) }),