@nuwatop/code-canvas-core 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as w, jsxs as it, Fragment as Ce } from "react/jsx-runtime";
2
2
  import { createRoot as en } from "react-dom/client";
3
3
  import { theme as Xt, ConfigProvider as Mt, Button as Zt, Input as Ne, InputNumber as Ar, Space as Ut, Select as xr, Switch as rn, DatePicker as Tr, TimePicker as nn, Radio as Me, Checkbox as ae, Rate as an, Slider as on, Cascader as cn, TreeSelect as ln, message as be, Upload as sn, Image as Qt, AutoComplete as un, Form as Ae, Transfer as fn, Segmented as dn, Modal as Cr, Tooltip as mn, Table as hn, Flex as Nr, Typography as tr, Tabs as yn, Tree as gn, Timeline as pn, Steps as vn, Statistic as We, Carousel as bn, Avatar as wn, Tag as kr, Pagination as Or, Breadcrumb as Sn, Menu as Dn, Calendar as An, Badge as _r, Masonry as xn, Alert as Tn, Drawer as Cn, Result as Nn, Card as He, Divider as cr, Dropdown as kn, Row as On, Col as _n, QRCode as En, Splitter as Re, Spin as $n, Watermark as Mn } from "antd";
4
- import { createCache as Rn, StyleProvider as jn } from "@ant-design/cssinjs";
4
+ import { StyleProvider as Rn, createCache as jn } from "@ant-design/cssinjs";
5
5
  import Bn from "antd/locale/zh_CN";
6
6
  import { create as Kn } from "zustand";
7
- import { subscribeWithSelector as zn } from "zustand/middleware";
8
- import { immer as Ln } from "zustand/middleware/immer";
9
- import Lt, { useMemo as p, useCallback as K, useEffect as Ot, useState as mt, useRef as Vt, useLayoutEffect as Er, useId as Vn, Suspense as qn } from "react";
7
+ import { subscribeWithSelector as Ln } from "zustand/middleware";
8
+ import { immer as zn } from "zustand/middleware/immer";
9
+ import zt, { useMemo as p, useCallback as K, useEffect as Ot, useState as ht, useRef as Vt, useLayoutEffect as Er, useId as Vn, Suspense as qn } from "react";
10
10
  import * as Jt from "@ant-design/icons";
11
11
  import { PlusOutlined as $r, UploadOutlined as Wn, MenuOutlined as Hn, MinusOutlined as Un, LeftOutlined as Mr, RightOutlined as Rr, UpOutlined as Pn, DownOutlined as jr, ApiOutlined as Yn, InboxOutlined as Jn } from "@ant-design/icons";
12
12
  import Gn from "clsx";
@@ -18,7 +18,7 @@ const ni = () => {
18
18
  Pe || (Pe = !0);
19
19
  }, ii = (e) => {
20
20
  let t = Ue.get(e);
21
- return t || (t = Rn(), Ue.set(e, t)), t;
21
+ return t || (t = jn(), Ue.set(e, t)), t;
22
22
  }, Ro = (e) => {
23
23
  e && Ue.delete(e);
24
24
  }, jo = async ({
@@ -51,7 +51,7 @@ const ni = () => {
51
51
  }
52
52
  const c = en(e);
53
53
  we.set(e, c);
54
- const s = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, b = !n && s && d && d.defaultView !== null, h = b ? s : window.document.head, m = b ? d : window.document, f = ii(m), v = (((x = window.__GLS_COMPS__) == null ? void 0 : x.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (S) => /* @__PURE__ */ w(jn, { cache: f, container: h, hashPriority: "high", children: /* @__PURE__ */ w(
54
+ const s = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, b = !n && s && d && d.defaultView !== null, h = b ? s : window.document.head, m = b ? d : window.document, f = ii(m), v = (((x = window.__GLS_COMPS__) == null ? void 0 : x.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (S) => /* @__PURE__ */ w(Rn, { cache: f, container: h, hashPriority: "high", children: /* @__PURE__ */ w(
55
55
  Mt,
56
56
  {
57
57
  locale: Bn,
@@ -143,7 +143,7 @@ function ai(e, t, r) {
143
143
  const a = t[t.length - 1];
144
144
  return n[a.key] = r, i;
145
145
  }
146
- function I(e, t) {
146
+ function tt(e, t) {
147
147
  if (t)
148
148
  return e ? `${e}_${t}` : t;
149
149
  }
@@ -157,8 +157,8 @@ const lr = {
157
157
  propsStore: {},
158
158
  validateStore: {}
159
159
  }, k = Kn()(
160
- zn(
161
- Ln((e, t) => ({
160
+ Ln(
161
+ zn((e, t) => ({
162
162
  ...lr,
163
163
  // ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
164
164
  setDataSet: (r, i, n, a = !0) => e((o) => {
@@ -263,7 +263,7 @@ function Ko(e) {
263
263
  }
264
264
  };
265
265
  }
266
- function zo(e) {
266
+ function Lo(e) {
267
267
  const t = k((r) => r.setDataSetBatch);
268
268
  return {
269
269
  get value() {
@@ -274,7 +274,7 @@ function zo(e) {
274
274
  }
275
275
  };
276
276
  }
277
- function Lo() {
277
+ function zo() {
278
278
  return k((e) => e.addCommand);
279
279
  }
280
280
  function Vo() {
@@ -383,7 +383,7 @@ function li(e, t = {}) {
383
383
  function Uo(e, t = {}) {
384
384
  return er(e, null, t);
385
385
  }
386
- function Z(e, t) {
386
+ function F(e, t) {
387
387
  return {
388
388
  actionName: e,
389
389
  arg: t,
@@ -703,7 +703,7 @@ var Kr = function(t, r, i, n, a, o) {
703
703
  o.test(r) || n.push(Bt(a.messages.pattern.mismatch, t.fullField, r, t.pattern));
704
704
  }
705
705
  }
706
- }, st = {
706
+ }, lt = {
707
707
  required: Kr,
708
708
  whitespace: bi,
709
709
  type: Si,
@@ -715,7 +715,7 @@ var Kr = function(t, r, i, n, a, o) {
715
715
  if (c) {
716
716
  if (At(r, "string") && !t.required)
717
717
  return i();
718
- st.required(t, r, n, o, a, "string"), At(r, "string") || (st.type(t, r, n, o, a), st.range(t, r, n, o, a), st.pattern(t, r, n, o, a), t.whitespace === !0 && st.whitespace(t, r, n, o, a));
718
+ lt.required(t, r, n, o, a, "string"), At(r, "string") || (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a), lt.pattern(t, r, n, o, a), t.whitespace === !0 && lt.whitespace(t, r, n, o, a));
719
719
  }
720
720
  i(o);
721
721
  }, Ci = function(t, r, i, n, a) {
@@ -723,7 +723,7 @@ var Kr = function(t, r, i, n, a, o) {
723
723
  if (c) {
724
724
  if (At(r) && !t.required)
725
725
  return i();
726
- st.required(t, r, n, o, a), r !== void 0 && st.type(t, r, n, o, a);
726
+ lt.required(t, r, n, o, a), r !== void 0 && lt.type(t, r, n, o, a);
727
727
  }
728
728
  i(o);
729
729
  }, Ni = function(t, r, i, n, a) {
@@ -731,7 +731,7 @@ var Kr = function(t, r, i, n, a, o) {
731
731
  if (c) {
732
732
  if (r === "" && (r = void 0), At(r) && !t.required)
733
733
  return i();
734
- st.required(t, r, n, o, a), r !== void 0 && (st.type(t, r, n, o, a), st.range(t, r, n, o, a));
734
+ lt.required(t, r, n, o, a), r !== void 0 && (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a));
735
735
  }
736
736
  i(o);
737
737
  }, ki = function(t, r, i, n, a) {
@@ -739,7 +739,7 @@ var Kr = function(t, r, i, n, a, o) {
739
739
  if (c) {
740
740
  if (At(r) && !t.required)
741
741
  return i();
742
- st.required(t, r, n, o, a), r !== void 0 && st.type(t, r, n, o, a);
742
+ lt.required(t, r, n, o, a), r !== void 0 && lt.type(t, r, n, o, a);
743
743
  }
744
744
  i(o);
745
745
  }, Oi = function(t, r, i, n, a) {
@@ -747,7 +747,7 @@ var Kr = function(t, r, i, n, a, o) {
747
747
  if (c) {
748
748
  if (At(r) && !t.required)
749
749
  return i();
750
- st.required(t, r, n, o, a), At(r) || st.type(t, r, n, o, a);
750
+ lt.required(t, r, n, o, a), At(r) || lt.type(t, r, n, o, a);
751
751
  }
752
752
  i(o);
753
753
  }, _i = function(t, r, i, n, a) {
@@ -755,7 +755,7 @@ var Kr = function(t, r, i, n, a, o) {
755
755
  if (c) {
756
756
  if (At(r) && !t.required)
757
757
  return i();
758
- st.required(t, r, n, o, a), r !== void 0 && (st.type(t, r, n, o, a), st.range(t, r, n, o, a));
758
+ lt.required(t, r, n, o, a), r !== void 0 && (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a));
759
759
  }
760
760
  i(o);
761
761
  }, Ei = function(t, r, i, n, a) {
@@ -763,7 +763,7 @@ var Kr = function(t, r, i, n, a, o) {
763
763
  if (c) {
764
764
  if (At(r) && !t.required)
765
765
  return i();
766
- st.required(t, r, n, o, a), r !== void 0 && (st.type(t, r, n, o, a), st.range(t, r, n, o, a));
766
+ lt.required(t, r, n, o, a), r !== void 0 && (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a));
767
767
  }
768
768
  i(o);
769
769
  }, $i = function(t, r, i, n, a) {
@@ -771,7 +771,7 @@ var Kr = function(t, r, i, n, a, o) {
771
771
  if (c) {
772
772
  if (r == null && !t.required)
773
773
  return i();
774
- st.required(t, r, n, o, a, "array"), r != null && (st.type(t, r, n, o, a), st.range(t, r, n, o, a));
774
+ lt.required(t, r, n, o, a, "array"), r != null && (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a));
775
775
  }
776
776
  i(o);
777
777
  }, Mi = function(t, r, i, n, a) {
@@ -779,7 +779,7 @@ var Kr = function(t, r, i, n, a, o) {
779
779
  if (c) {
780
780
  if (At(r) && !t.required)
781
781
  return i();
782
- st.required(t, r, n, o, a), r !== void 0 && st.type(t, r, n, o, a);
782
+ lt.required(t, r, n, o, a), r !== void 0 && lt.type(t, r, n, o, a);
783
783
  }
784
784
  i(o);
785
785
  }, Ri = "enum", ji = function(t, r, i, n, a) {
@@ -787,7 +787,7 @@ var Kr = function(t, r, i, n, a, o) {
787
787
  if (c) {
788
788
  if (At(r) && !t.required)
789
789
  return i();
790
- st.required(t, r, n, o, a), r !== void 0 && st[Ri](t, r, n, o, a);
790
+ lt.required(t, r, n, o, a), r !== void 0 && lt[Ri](t, r, n, o, a);
791
791
  }
792
792
  i(o);
793
793
  }, Bi = function(t, r, i, n, a) {
@@ -795,7 +795,7 @@ var Kr = function(t, r, i, n, a, o) {
795
795
  if (c) {
796
796
  if (At(r, "string") && !t.required)
797
797
  return i();
798
- st.required(t, r, n, o, a), At(r, "string") || st.pattern(t, r, n, o, a);
798
+ lt.required(t, r, n, o, a), At(r, "string") || lt.pattern(t, r, n, o, a);
799
799
  }
800
800
  i(o);
801
801
  }, Ki = function(t, r, i, n, a) {
@@ -803,29 +803,29 @@ var Kr = function(t, r, i, n, a, o) {
803
803
  if (c) {
804
804
  if (At(r, "date") && !t.required)
805
805
  return i();
806
- if (st.required(t, r, n, o, a), !At(r, "date")) {
806
+ if (lt.required(t, r, n, o, a), !At(r, "date")) {
807
807
  var s;
808
- r instanceof Date ? s = r : s = new Date(r), st.type(t, s, n, o, a), s && st.range(t, s.getTime(), n, o, a);
808
+ r instanceof Date ? s = r : s = new Date(r), lt.type(t, s, n, o, a), s && lt.range(t, s.getTime(), n, o, a);
809
809
  }
810
810
  }
811
811
  i(o);
812
- }, zi = function(t, r, i, n, a) {
812
+ }, Li = function(t, r, i, n, a) {
813
813
  var o = [], c = Array.isArray(r) ? "array" : typeof r;
814
- st.required(t, r, n, o, a, c), i(o);
814
+ lt.required(t, r, n, o, a, c), i(o);
815
815
  }, Ke = function(t, r, i, n, a) {
816
816
  var o = t.type, c = [], s = t.required || !t.required && n.hasOwnProperty(t.field);
817
817
  if (s) {
818
818
  if (At(r, o) && !t.required)
819
819
  return i();
820
- st.required(t, r, n, c, a, o), At(r, o) || st.type(t, r, n, c, a);
820
+ lt.required(t, r, n, c, a, o), At(r, o) || lt.type(t, r, n, c, a);
821
821
  }
822
822
  i(c);
823
- }, Li = function(t, r, i, n, a) {
823
+ }, zi = function(t, r, i, n, a) {
824
824
  var o = [], c = t.required || !t.required && n.hasOwnProperty(t.field);
825
825
  if (c) {
826
826
  if (At(r) && !t.required)
827
827
  return i();
828
- st.required(t, r, n, o, a);
828
+ lt.required(t, r, n, o, a);
829
829
  }
830
830
  i(o);
831
831
  }, de = {
@@ -844,8 +844,8 @@ var Kr = function(t, r, i, n, a, o) {
844
844
  url: Ke,
845
845
  hex: Ke,
846
846
  email: Ke,
847
- required: zi,
848
- any: Li
847
+ required: Li,
848
+ any: zi
849
849
  };
850
850
  function Qe() {
851
851
  return {
@@ -985,11 +985,11 @@ var Xe = Qe(), he = /* @__PURE__ */ function() {
985
985
  }), N = te({}, N, l.rule.fields);
986
986
  var O = {};
987
987
  Object.keys(N).forEach(function(E) {
988
- var _ = N[E], j = Array.isArray(_) ? _ : [_];
989
- O[E] = j.map(A.bind(null, E));
988
+ var _ = N[E], R = Array.isArray(_) ? _ : [_];
989
+ O[E] = R.map(A.bind(null, E));
990
990
  });
991
- var M = new e(O);
992
- M.messages(s.messages), l.rule.options && (l.rule.options.messages = s.messages, l.rule.options.error = s.error), M.validate(l.value, l.rule.options || s, function(E) {
991
+ var $ = new e(O);
992
+ $.messages(s.messages), l.rule.options && (l.rule.options.messages = s.messages, l.rule.options.error = s.error), $.validate(l.value, l.rule.options || s, function(E) {
993
993
  var _ = [];
994
994
  C && C.length && _.push.apply(_, C), E && E.length && _.push.apply(_, E), v(_.length ? _ : null);
995
995
  });
@@ -1044,7 +1044,7 @@ function Vi(e) {
1044
1044
  return null;
1045
1045
  }
1046
1046
  }
1047
- function zr(e) {
1047
+ function Lr(e) {
1048
1048
  return !e || !Array.isArray(e) ? [] : e.map((t) => {
1049
1049
  const r = { ...t };
1050
1050
  if (r.pattern && typeof r.pattern == "string" && r.pattern.trim()) {
@@ -1055,7 +1055,7 @@ function zr(e) {
1055
1055
  });
1056
1056
  }
1057
1057
  const hr = "_v";
1058
- function Lr(e, t, r, i) {
1058
+ function zr(e, t, r, i) {
1059
1059
  if (!(e != null && e.length)) {
1060
1060
  r();
1061
1061
  return;
@@ -1082,10 +1082,10 @@ function Rt(e) {
1082
1082
  return n && a ? ((D = S.propsStore[`${n}_props`]) == null ? void 0 : D[a]) ?? null : null;
1083
1083
  }
1084
1084
  ), f = k((S) => S.getDataSet), y = p(
1085
- () => I(n, r),
1085
+ () => tt(n, r),
1086
1086
  [n, r]
1087
1087
  ), l = p(
1088
- () => r ? I(n, `${r}_validateAction`) : void 0,
1088
+ () => r ? tt(n, `${r}_validateAction`) : void 0,
1089
1089
  [n, r]
1090
1090
  ), v = k(
1091
1091
  (S) => {
@@ -1103,8 +1103,8 @@ function Rt(e) {
1103
1103
  [n, r, i, a, c, s, d]
1104
1104
  ), T = K(
1105
1105
  (S) => {
1106
- const D = zr(t || []);
1107
- Lr(
1106
+ const D = Lr(t || []);
1107
+ zr(
1108
1108
  D,
1109
1109
  S,
1110
1110
  () => u(""),
@@ -1138,39 +1138,39 @@ function re(e, t) {
1138
1138
  if (Array.isArray(e))
1139
1139
  return e.find((r) => Wi(r.value, t));
1140
1140
  }
1141
- let zt = {};
1141
+ let Lt = {};
1142
1142
  function Po(e) {
1143
- zt = { ...zt, ...e };
1143
+ Lt = { ...Lt, ...e };
1144
1144
  }
1145
1145
  function Yt() {
1146
- return zt;
1146
+ return Lt;
1147
1147
  }
1148
1148
  async function ee(e) {
1149
- if (zt.request) {
1149
+ if (Lt.request) {
1150
1150
  const t = {
1151
1151
  ...e,
1152
- baseURL: e.baseURL || zt.baseURL
1152
+ baseURL: e.baseURL || Lt.baseURL
1153
1153
  };
1154
- return zt.request(t);
1154
+ return Lt.request(t);
1155
1155
  }
1156
1156
  throw new Error(
1157
1157
  "Request handler not configured. Please call setCoreConfig() first."
1158
1158
  );
1159
1159
  }
1160
1160
  async function Vr(e, t) {
1161
- if (zt.upload)
1162
- return zt.upload(e, t);
1161
+ if (Lt.upload)
1162
+ return Lt.upload(e, t);
1163
1163
  throw new Error(
1164
1164
  "Upload handler not configured. Please call setCoreConfig() first."
1165
1165
  );
1166
1166
  }
1167
1167
  async function rr(e) {
1168
- return zt.getDictOptions ? zt.getDictOptions(e) : (console.warn(
1168
+ return Lt.getDictOptions ? Lt.getDictOptions(e) : (console.warn(
1169
1169
  "Dict service not configured. Please call setCoreConfig() with getDictOptions."
1170
1170
  ), []);
1171
1171
  }
1172
1172
  function Ze() {
1173
- return zt.getAccessToken ? zt.getAccessToken() : null;
1173
+ return Lt.getAccessToken ? Lt.getAccessToken() : null;
1174
1174
  }
1175
1175
  const Yo = {
1176
1176
  post: (e, t, r) => ee({ url: e, data: t, method: "POST", ...r }),
@@ -1208,7 +1208,7 @@ function Hi() {
1208
1208
  };
1209
1209
  }
1210
1210
  function ye(e) {
1211
- const [t, r] = mt([]), [i, n] = mt(!1), [a, o] = mt(null);
1211
+ const [t, r] = ht([]), [i, n] = ht(!1), [a, o] = ht(null);
1212
1212
  return Ot(() => {
1213
1213
  if (!e) {
1214
1214
  r([]);
@@ -1227,7 +1227,7 @@ function ye(e) {
1227
1227
  }, [e]), { options: t, loading: i, error: a };
1228
1228
  }
1229
1229
  function nr(e, t) {
1230
- const [r, i] = mt([]), [n, a] = mt(!1), [o, c] = mt(null), {
1230
+ const [r, i] = ht([]), [n, a] = ht(!1), [o, c] = ht(null), {
1231
1231
  labelKey: s = "label",
1232
1232
  valueKey: d = "value",
1233
1233
  immediate: b = !0,
@@ -1635,7 +1635,7 @@ const Xo = ({
1635
1635
  dataSet: d,
1636
1636
  dataSetField: b,
1637
1637
  ...y
1638
- }), O = Z(C, N);
1638
+ }), O = F(C, N);
1639
1639
  m(n, O);
1640
1640
  }
1641
1641
  },
@@ -1691,76 +1691,76 @@ const Hr = (e) => {
1691
1691
  addonAfter: T,
1692
1692
  addonBefore: A,
1693
1693
  ...x
1694
- } = e, S = Vt(""), D = Vt(null), g = k((tt) => tt.addCommand), C = k((tt) => tt.getDataSet), N = k((tt) => tt.setDataSet), O = k((tt) => tt.getProps), M = k((tt) => tt.setProps), E = k((tt) => tt.setValidateResult), _ = p(
1695
- () => I(r, n),
1694
+ } = e, S = Vt(""), D = Vt(null), g = k((Z) => Z.addCommand), C = k((Z) => Z.getDataSet), N = k((Z) => Z.setDataSet), O = k((Z) => Z.getProps), $ = k((Z) => Z.setProps), E = k((Z) => Z.setValidateResult), _ = p(
1695
+ () => tt(r, n),
1696
1696
  [r, n]
1697
- ), j = k(
1698
- (tt) => {
1697
+ ), R = k(
1698
+ (Z) => {
1699
1699
  var J;
1700
- return r && t ? ((J = tt.propsStore[`${r}_props`]) == null ? void 0 : J[t]) ?? null : null;
1700
+ return r && t ? ((J = Z.propsStore[`${r}_props`]) == null ? void 0 : J[t]) ?? null : null;
1701
1701
  }
1702
- ), q = p(
1702
+ ), W = p(
1703
1703
  () => fe(r, n),
1704
1704
  [r, n]
1705
1705
  ), U = k(
1706
- (tt) => {
1706
+ (Z) => {
1707
1707
  var J;
1708
- return q && a ? ((J = tt.validateStore[q]) == null ? void 0 : J[a]) ?? "" : "";
1708
+ return W && a ? ((J = Z.validateStore[W]) == null ? void 0 : J[a]) ?? "" : "";
1709
1709
  }
1710
- ), V = k(
1711
- (tt) => _ && a ? tt.getDataSet(_, a) : void 0
1712
- ), z = p(
1713
- () => n ? I(r, `${n}_validateAction`) : void 0,
1710
+ ), q = k(
1711
+ (Z) => _ && a ? Z.getDataSet(_, a) : void 0
1712
+ ), L = p(
1713
+ () => n ? tt(r, `${n}_validateAction`) : void 0,
1714
1714
  [r, n]
1715
- ), R = k(
1716
- (tt) => {
1715
+ ), M = k(
1716
+ (Z) => {
1717
1717
  var J;
1718
- return z ? (J = tt.dataSets[z]) == null ? void 0 : J.validate : void 0;
1719
- }
1720
- ), P = p(() => V !== void 0 ? V : (j == null ? void 0 : j.value) !== void 0 ? j.value : s, [V, j == null ? void 0 : j.value, s]), B = p(
1721
- () => ga(x, j ?? null, { develop: i }),
1722
- [x, j, i]
1723
- ), $ = K(
1724
- (tt) => {
1725
- const J = tt ?? "";
1718
+ return L ? (J = Z.dataSets[L]) == null ? void 0 : J.validate : void 0;
1719
+ }
1720
+ ), P = p(() => q !== void 0 ? q : (R == null ? void 0 : R.value) !== void 0 ? R.value : s, [q, R == null ? void 0 : R.value, s]), j = p(
1721
+ () => ga(x, R ?? null, { develop: i }),
1722
+ [x, R, i]
1723
+ ), B = K(
1724
+ (Z) => {
1725
+ const J = Z ?? "";
1726
1726
  if (r && n && a && E(r, n, a, J), r && t) {
1727
1727
  const dt = O(r, t) || {};
1728
- M(r, t, { ...dt, validateStatus: J ? "error" : void 0, help: J });
1728
+ $(r, t, { ...dt, validateStatus: J ? "error" : void 0, help: J });
1729
1729
  }
1730
1730
  },
1731
- [r, n, a, t, E, O, M]
1732
- ), H = K(
1733
- (tt) => {
1734
- const J = zr(h || []);
1735
- Lr(
1731
+ [r, n, a, t, E, O, $]
1732
+ ), V = K(
1733
+ (Z) => {
1734
+ const J = Lr(h || []);
1735
+ zr(
1736
1736
  J,
1737
- tt,
1738
- () => $(""),
1737
+ Z,
1738
+ () => B(""),
1739
1739
  (dt) => {
1740
- var L;
1741
- return $(((L = dt[0]) == null ? void 0 : L.message) ?? "");
1740
+ var z;
1741
+ return B(((z = dt[0]) == null ? void 0 : z.message) ?? "");
1742
1742
  }
1743
1743
  );
1744
1744
  },
1745
- [h, $]
1745
+ [h, B]
1746
1746
  ), X = K(
1747
- (tt) => {
1748
- const J = tt.target.value;
1747
+ (Z) => {
1748
+ const J = Z.target.value;
1749
1749
  if (S.current = J, c) {
1750
- c(J, tt);
1750
+ c(J, Z);
1751
1751
  return;
1752
1752
  }
1753
1753
  if (_ && a && N(_, a, J), o && r) {
1754
- const { actionName: dt, arg: L } = Nt(o, J, {
1754
+ const { actionName: dt, arg: z } = Nt(o, J, {
1755
1755
  id: t,
1756
1756
  dataSet: n,
1757
1757
  dataSetField: a,
1758
- ...B
1758
+ ...j
1759
1759
  });
1760
- g(r, Z(dt, L));
1760
+ g(r, F(dt, z));
1761
1761
  }
1762
1762
  m && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
1763
- D.current = null, H(J);
1763
+ D.current = null, V(J);
1764
1764
  }, ha));
1765
1765
  },
1766
1766
  [
@@ -1771,34 +1771,34 @@ const Hr = (e) => {
1771
1771
  o,
1772
1772
  r,
1773
1773
  t,
1774
- B,
1774
+ j,
1775
1775
  g,
1776
1776
  m,
1777
- H
1777
+ V
1778
1778
  ]
1779
1779
  ), rt = K(() => {
1780
1780
  if (!f) return;
1781
- const tt = _ && a ? String(C(_, a) ?? "") : S.current;
1782
- H(tt);
1783
- }, [f, _, a, C, H]);
1781
+ const Z = _ && a ? String(C(_, a) ?? "") : S.current;
1782
+ V(Z);
1783
+ }, [f, _, a, C, V]);
1784
1784
  Ot(
1785
1785
  () => () => {
1786
1786
  D.current && clearTimeout(D.current);
1787
1787
  },
1788
1788
  []
1789
1789
  ), Ot(() => {
1790
- if (R == null || !_ || !a) return;
1791
- const tt = String(C(_, a) ?? "");
1792
- H(tt);
1793
- }, [R, _, a, C, H]);
1794
- const ft = p(() => ya(b), [b]), ot = p(
1790
+ if (M == null || !_ || !a) return;
1791
+ const Z = String(C(_, a) ?? "");
1792
+ V(Z);
1793
+ }, [M, _, a, C, V]);
1794
+ const ft = p(() => ya(b), [b]), st = p(
1795
1795
  () => ft ? { components: { Input: ft } } : void 0,
1796
1796
  [ft]
1797
- ), et = i ? void 0 : r && n && a ? U : (j == null ? void 0 : j.help) ?? "", ct = /* @__PURE__ */ it(Ce, { children: [
1797
+ ), et = i ? void 0 : r && n && a ? U : (R == null ? void 0 : R.help) ?? "", ot = /* @__PURE__ */ it(Ce, { children: [
1798
1798
  /* @__PURE__ */ w(
1799
1799
  Ne,
1800
1800
  {
1801
- ...B,
1801
+ ...j,
1802
1802
  value: P,
1803
1803
  onChange: X,
1804
1804
  onBlur: rt,
@@ -1808,10 +1808,10 @@ const Hr = (e) => {
1808
1808
  ),
1809
1809
  et && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: et })
1810
1810
  ] });
1811
- return ot ? /* @__PURE__ */ w(Mt, { theme: ot, children: ct }) : ct;
1811
+ return st ? /* @__PURE__ */ w(Mt, { theme: st, children: ot }) : ot;
1812
1812
  };
1813
1813
  Hr.displayName = "AndInput";
1814
- const Zo = Lt.memo(Hr), pa = 200, Fo = ({
1814
+ const Zo = zt.memo(Hr), pa = 200, Fo = ({
1815
1815
  id: e,
1816
1816
  sessionId: t,
1817
1817
  develop: r,
@@ -1828,16 +1828,16 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
1828
1828
  value: f,
1829
1829
  ...y
1830
1830
  }) => {
1831
- const l = k((R) => R.addCommand), v = k((R) => R.setDataSet), u = Vt(null), T = p(
1832
- () => I(t, i),
1831
+ const l = k((M) => M.addCommand), v = k((M) => M.setDataSet), u = Vt(null), T = p(
1832
+ () => tt(t, i),
1833
1833
  [t, i]
1834
1834
  ), A = k(
1835
- (R) => {
1835
+ (M) => {
1836
1836
  var P;
1837
- return t && e ? ((P = R.propsStore[`${t}_props`]) == null ? void 0 : P[e]) ?? null : null;
1837
+ return t && e ? ((P = M.propsStore[`${t}_props`]) == null ? void 0 : P[e]) ?? null : null;
1838
1838
  }
1839
1839
  ), x = k(
1840
- (R) => T && n ? R.getDataSet(T, n) : void 0
1840
+ (M) => T && n ? M.getDataSet(T, n) : void 0
1841
1841
  ), { validate: S, help: D } = Rt({
1842
1842
  rules: a,
1843
1843
  dataSet: i,
@@ -1846,28 +1846,28 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
1846
1846
  id: e,
1847
1847
  develop: r
1848
1848
  }), g = p(() => x !== void 0 ? x : (A == null ? void 0 : A.value) !== void 0 ? A.value : f, [x, A == null ? void 0 : A.value, f]), C = K(
1849
- (R, P, B) => {
1850
- R && t && l(t, Z(R, { type: P, value: B }));
1849
+ (M, P, j) => {
1850
+ M && t && l(t, F(M, { type: P, value: j }));
1851
1851
  },
1852
1852
  [t, l]
1853
1853
  ), N = K(
1854
- (R) => {
1854
+ (M) => {
1855
1855
  if (h) {
1856
- h(R);
1856
+ h(M);
1857
1857
  return;
1858
1858
  }
1859
- T && n && v(T, n, R), c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
1860
- u.current = null, S(R);
1861
- }, pa)), C(s, "change", R);
1859
+ T && n && v(T, n, M), c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
1860
+ u.current = null, S(M);
1861
+ }, pa)), C(s, "change", M);
1862
1862
  },
1863
1863
  [h, T, n, v, c, S, s, C]
1864
1864
  ), O = K(() => {
1865
1865
  o && S(g);
1866
- }, [o, S, g]), M = K(() => {
1866
+ }, [o, S, g]), $ = K(() => {
1867
1867
  C(d, "pressEnter", g);
1868
1868
  }, [d, C, g]), E = K(
1869
- (R, P) => {
1870
- C(b, "step", { value: R, type: P.type });
1869
+ (M, P) => {
1870
+ C(b, "step", { value: M, type: P.type });
1871
1871
  },
1872
1872
  [b, C]
1873
1873
  );
@@ -1882,27 +1882,27 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
1882
1882
  const _ = p(
1883
1883
  () => Gt(y, A ?? void 0),
1884
1884
  [y, A]
1885
- ), { addonBefore: j, addonAfter: q, style: U, ...V } = _, z = /* @__PURE__ */ w(
1885
+ ), { addonBefore: R, addonAfter: W, style: U, ...q } = _, L = /* @__PURE__ */ w(
1886
1886
  Ar,
1887
1887
  {
1888
- ...V,
1889
- disabled: r ? !1 : V.disabled,
1890
- readOnly: r ? !0 : V.readOnly,
1891
- className: Gn(V.className, {
1892
- "ant-input-number-disabled": r && V.disabled
1888
+ ...q,
1889
+ disabled: r ? !1 : q.disabled,
1890
+ readOnly: r ? !0 : q.readOnly,
1891
+ className: Gn(q.className, {
1892
+ "ant-input-number-disabled": r && q.disabled
1893
1893
  }),
1894
1894
  value: g,
1895
1895
  onChange: N,
1896
1896
  onBlur: O,
1897
- onPressEnter: M,
1897
+ onPressEnter: $,
1898
1898
  onStep: E,
1899
1899
  status: D ? "error" : void 0,
1900
1900
  style: { width: "100%", ...U }
1901
1901
  }
1902
1902
  );
1903
1903
  return /* @__PURE__ */ it("div", { style: { width: "100%" }, children: [
1904
- j || q ? /* @__PURE__ */ it(Ut.Compact, { style: { width: "100%" }, children: [
1905
- j && /* @__PURE__ */ w(
1904
+ R || W ? /* @__PURE__ */ it(Ut.Compact, { style: { width: "100%" }, children: [
1905
+ R && /* @__PURE__ */ w(
1906
1906
  "div",
1907
1907
  {
1908
1908
  style: {
@@ -1916,11 +1916,11 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
1916
1916
  color: "rgba(0, 0, 0, 0.88)",
1917
1917
  fontSize: 14
1918
1918
  },
1919
- children: j
1919
+ children: R
1920
1920
  }
1921
1921
  ),
1922
- z,
1923
- q && /* @__PURE__ */ w(
1922
+ L,
1923
+ W && /* @__PURE__ */ w(
1924
1924
  "div",
1925
1925
  {
1926
1926
  style: {
@@ -1934,10 +1934,10 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
1934
1934
  color: "rgba(0, 0, 0, 0.88)",
1935
1935
  fontSize: 14
1936
1936
  },
1937
- children: q
1937
+ children: W
1938
1938
  }
1939
1939
  )
1940
- ] }) : z,
1940
+ ] }) : L,
1941
1941
  D && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
1942
1942
  ] });
1943
1943
  }, { TextArea: va } = Ne, ba = 200, Io = ({
@@ -1957,12 +1957,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
1957
1957
  ...f
1958
1958
  }) => {
1959
1959
  const y = k((O) => O.addCommand), l = k((O) => O.setDataSet), v = Vt(null), u = p(
1960
- () => I(t, i),
1960
+ () => tt(t, i),
1961
1961
  [t, i]
1962
1962
  ), T = k(
1963
1963
  (O) => {
1964
- var M;
1965
- return t && e ? ((M = O.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
1964
+ var $;
1965
+ return t && e ? (($ = O.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
1966
1966
  }
1967
1967
  ), A = k(
1968
1968
  (O) => u && n ? O.getDataSet(u, n) : void 0
@@ -1975,21 +1975,21 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
1975
1975
  develop: r
1976
1976
  }), D = p(() => A !== void 0 ? A : (T == null ? void 0 : T.value) !== void 0 ? T.value : h ?? m, [A, T == null ? void 0 : T.value, h, m]), g = K(
1977
1977
  (O) => {
1978
- const M = O.target.value;
1978
+ const $ = O.target.value;
1979
1979
  if (b) {
1980
- b(M, O);
1980
+ b($, O);
1981
1981
  return;
1982
1982
  }
1983
- if (u && n && l(u, n, M), s && t) {
1984
- const { actionName: E, arg: _ } = Nt(s, M, {
1983
+ if (u && n && l(u, n, $), s && t) {
1984
+ const { actionName: E, arg: _ } = Nt(s, $, {
1985
1985
  id: e,
1986
1986
  dataSet: i,
1987
1987
  dataSetField: n
1988
1988
  });
1989
- y(t, Z(E, _));
1989
+ y(t, F(E, _));
1990
1990
  }
1991
1991
  c && (v.current && clearTimeout(v.current), v.current = setTimeout(() => {
1992
- v.current = null, x(M);
1992
+ v.current = null, x($);
1993
1993
  }, ba));
1994
1994
  },
1995
1995
  [
@@ -2013,12 +2013,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2013
2013
  return;
2014
2014
  }
2015
2015
  if (d && t && !O.shiftKey) {
2016
- const { actionName: M, arg: E } = Nt(d, D, {
2016
+ const { actionName: $, arg: E } = Nt(d, D, {
2017
2017
  id: e,
2018
2018
  dataSet: i,
2019
2019
  dataSetField: n
2020
2020
  });
2021
- y(t, Z(M, E));
2021
+ y(t, F($, E));
2022
2022
  }
2023
2023
  },
2024
2024
  [f.onPressEnter, d, t, D, e, i, n, y]
@@ -2059,7 +2059,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2059
2059
  ...m
2060
2060
  }) => {
2061
2061
  const f = k((C) => C.addCommand), y = k((C) => C.setDataSet), l = Vt(null), v = p(
2062
- () => I(t, i),
2062
+ () => tt(t, i),
2063
2063
  [t, i]
2064
2064
  ), u = k(
2065
2065
  (C) => {
@@ -2083,12 +2083,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2083
2083
  return;
2084
2084
  }
2085
2085
  if (v && n && y(v, n, N), s && t) {
2086
- const { actionName: O, arg: M } = Nt(s, N, {
2086
+ const { actionName: O, arg: $ } = Nt(s, N, {
2087
2087
  id: e,
2088
2088
  dataSet: i,
2089
2089
  dataSetField: n
2090
2090
  });
2091
- f(t, Z(O, M));
2091
+ f(t, F(O, $));
2092
2092
  }
2093
2093
  c && (l.current && clearTimeout(l.current), l.current = setTimeout(() => {
2094
2094
  l.current = null, A(N);
@@ -2143,7 +2143,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2143
2143
  ...h
2144
2144
  }) => {
2145
2145
  const m = k((x) => x.addCommand), f = k((x) => x.getDataSet), y = k((x) => x.setDataSet), l = p(
2146
- () => I(t, i),
2146
+ () => tt(t, i),
2147
2147
  [t, i]
2148
2148
  ), v = p(() => {
2149
2149
  if (l && n) return f(l, n);
@@ -2155,14 +2155,14 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2155
2155
  }
2156
2156
  if (l && n && y(l, n, S), a && t) {
2157
2157
  const { actionName: D, arg: g } = Nt(a, S, { id: e, dataSet: i, dataSetField: n });
2158
- m(t, Z(D, g));
2158
+ m(t, F(D, g));
2159
2159
  }
2160
2160
  }, [c, l, n, y, a, t, e, m]), A = K((x) => {
2161
2161
  if (s) {
2162
2162
  s(x);
2163
2163
  return;
2164
2164
  }
2165
- o && t && m(t, Z(o, x));
2165
+ o && t && m(t, F(o, x));
2166
2166
  }, [s, o, t, m]);
2167
2167
  return /* @__PURE__ */ w(Da, { ...h, disabled: r ? !1 : h.disabled, value: u, onChange: T, onSearch: A });
2168
2168
  }, Aa = 200, rc = ({
@@ -2192,65 +2192,65 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2192
2192
  dropdownMatchSelectWidth: g,
2193
2193
  ...C
2194
2194
  }) => {
2195
- const N = k((ct) => ct.addCommand), O = k((ct) => ct.setDataSet), M = Vt(null), E = p(
2196
- () => I(t, i),
2195
+ const N = k((ot) => ot.addCommand), O = k((ot) => ot.setDataSet), $ = Vt(null), E = p(
2196
+ () => tt(t, i),
2197
2197
  [t, i]
2198
2198
  ), _ = k(
2199
- (ct) => {
2200
- var tt;
2201
- return t && e ? ((tt = ct.propsStore[`${t}_props`]) == null ? void 0 : tt[e]) ?? null : null;
2199
+ (ot) => {
2200
+ var Z;
2201
+ return t && e ? ((Z = ot.propsStore[`${t}_props`]) == null ? void 0 : Z[e]) ?? null : null;
2202
2202
  }
2203
- ), j = k(
2204
- (ct) => E && n ? ct.getDataSet(E, n) : void 0
2205
- ), q = p(
2203
+ ), R = k(
2204
+ (ot) => E && n ? ot.getDataSet(E, n) : void 0
2205
+ ), W = p(
2206
2206
  () => (_ == null ? void 0 : _.optionsCfg) != null ? _.optionsCfg : c,
2207
2207
  [_ == null ? void 0 : _.optionsCfg, c]
2208
- ), { options: U, loading: V } = ye(
2208
+ ), { options: U, loading: q } = ye(
2209
2209
  D || (a ? o : void 0)
2210
- ), { options: z, loading: R } = nr(
2211
- q == null ? void 0 : q.url,
2210
+ ), { options: L, loading: M } = nr(
2211
+ W == null ? void 0 : W.url,
2212
2212
  {
2213
- valueKey: (q == null ? void 0 : q.codeKey) || "value",
2214
- labelKey: (q == null ? void 0 : q.labelKey) || "label",
2215
- immediate: !!(q != null && q.url),
2216
- params: q == null ? void 0 : q.params,
2217
- field: q == null ? void 0 : q.field
2213
+ valueKey: (W == null ? void 0 : W.codeKey) || "value",
2214
+ labelKey: (W == null ? void 0 : W.labelKey) || "label",
2215
+ immediate: !!(W != null && W.url),
2216
+ params: W == null ? void 0 : W.params,
2217
+ field: W == null ? void 0 : W.field
2218
2218
  }
2219
- ), P = V || R, { validate: B, help: $ } = Rt({
2219
+ ), P = q || M, { validate: j, help: B } = Rt({
2220
2220
  rules: s,
2221
2221
  dataSet: i,
2222
2222
  dataSetField: n,
2223
2223
  sessionId: t,
2224
2224
  id: e,
2225
2225
  develop: r
2226
- }), H = p(() => j != null && j !== "" ? j : (_ == null ? void 0 : _.value) !== void 0 ? _.value : l ?? y, [j, _ == null ? void 0 : _.value, l, y]), X = p(
2226
+ }), V = p(() => R != null && R !== "" ? R : (_ == null ? void 0 : _.value) !== void 0 ? _.value : l ?? y, [R, _ == null ? void 0 : _.value, l, y]), X = p(
2227
2227
  () => Gt(C, _ ?? void 0),
2228
2228
  [C, _]
2229
- ), rt = p(() => _ != null && _.options && Array.isArray(_.options) ? _.options : q != null && q.url && z.length > 0 ? z : (D || a && o) && U.length > 0 ? U : f || [], [_ == null ? void 0 : _.options, q == null ? void 0 : q.url, z, D, a, o, U, f]), ft = p(() => {
2230
- if (rt.length === 0) return H;
2231
- if (Array.isArray(H))
2232
- return H.map((tt) => {
2229
+ ), rt = p(() => _ != null && _.options && Array.isArray(_.options) ? _.options : W != null && W.url && L.length > 0 ? L : (D || a && o) && U.length > 0 ? U : f || [], [_ == null ? void 0 : _.options, W == null ? void 0 : W.url, L, D, a, o, U, f]), ft = p(() => {
2230
+ if (rt.length === 0) return V;
2231
+ if (Array.isArray(V))
2232
+ return V.map((Z) => {
2233
2233
  var J;
2234
- return ((J = re(rt, tt)) == null ? void 0 : J.value) ?? tt;
2234
+ return ((J = re(rt, Z)) == null ? void 0 : J.value) ?? Z;
2235
2235
  });
2236
- const ct = re(rt, H);
2237
- return (ct == null ? void 0 : ct.value) ?? H;
2238
- }, [H, rt]), ot = K(
2239
- (ct, tt) => {
2236
+ const ot = re(rt, V);
2237
+ return (ot == null ? void 0 : ot.value) ?? V;
2238
+ }, [V, rt]), st = K(
2239
+ (ot, Z) => {
2240
2240
  if (m) {
2241
- m(ct, tt);
2241
+ m(ot, Z);
2242
2242
  return;
2243
2243
  }
2244
- if (E && n && O(E, n, ct), b && (M.current && clearTimeout(M.current), M.current = setTimeout(() => {
2245
- M.current = null, B(ct);
2244
+ if (E && n && O(E, n, ot), b && ($.current && clearTimeout($.current), $.current = setTimeout(() => {
2245
+ $.current = null, j(ot);
2246
2246
  }, Aa)), h && t) {
2247
- const { actionName: J, arg: dt } = Nt(h, ct, {
2247
+ const { actionName: J, arg: dt } = Nt(h, ot, {
2248
2248
  id: e,
2249
2249
  dataSet: i,
2250
2250
  dataSetField: n,
2251
2251
  index: v
2252
2252
  });
2253
- N(t, Z(J, dt));
2253
+ N(t, F(J, dt));
2254
2254
  }
2255
2255
  },
2256
2256
  [
@@ -2259,7 +2259,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2259
2259
  n,
2260
2260
  O,
2261
2261
  b,
2262
- B,
2262
+ j,
2263
2263
  h,
2264
2264
  t,
2265
2265
  e,
@@ -2267,15 +2267,15 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2267
2267
  N
2268
2268
  ]
2269
2269
  ), et = K(() => {
2270
- d && B(ft);
2271
- }, [d, B, ft]);
2270
+ d && j(ft);
2271
+ }, [d, j, ft]);
2272
2272
  Ot(
2273
2273
  () => () => {
2274
- M.current && clearTimeout(M.current);
2274
+ $.current && clearTimeout($.current);
2275
2275
  },
2276
2276
  []
2277
2277
  );
2278
- const ht = K((ct, tt) => ((tt == null ? void 0 : tt.label) ?? "").toLowerCase().includes(ct.toLowerCase()), []);
2278
+ const mt = K((ot, Z) => ((Z == null ? void 0 : Z.label) ?? "").toLowerCase().includes(ot.toLowerCase()), []);
2279
2279
  return /* @__PURE__ */ it("div", { style: { width: "100%" }, children: [
2280
2280
  /* @__PURE__ */ w(
2281
2281
  xr,
@@ -2285,15 +2285,15 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2285
2285
  open: r ? !1 : void 0,
2286
2286
  value: ft,
2287
2287
  options: rt,
2288
- onChange: ot,
2288
+ onChange: st,
2289
2289
  onBlur: et,
2290
- filterOption: ht,
2290
+ filterOption: mt,
2291
2291
  loading: P,
2292
- status: $ ? "error" : void 0,
2292
+ status: B ? "error" : void 0,
2293
2293
  style: { width: "100%", ...X.style }
2294
2294
  }
2295
2295
  ),
2296
- $ && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: $ })
2296
+ B && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: B })
2297
2297
  ] });
2298
2298
  }, nc = ({
2299
2299
  id: e,
@@ -2311,7 +2311,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2311
2311
  ...m
2312
2312
  }) => {
2313
2313
  const f = k((g) => g.addCommand), y = k((g) => g.setDataSet), l = p(
2314
- () => I(t, i),
2314
+ () => tt(t, i),
2315
2315
  [t, i]
2316
2316
  ), v = k(
2317
2317
  (g) => {
@@ -2339,7 +2339,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2339
2339
  dataSet: i,
2340
2340
  dataSetField: n
2341
2341
  });
2342
- f(t, Z(C, N));
2342
+ f(t, F(C, N));
2343
2343
  }
2344
2344
  },
2345
2345
  [
@@ -2386,12 +2386,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2386
2386
  ...f
2387
2387
  }) => {
2388
2388
  const y = k((O) => O.addCommand), l = k((O) => O.setDataSet), v = p(
2389
- () => I(t, i),
2389
+ () => tt(t, i),
2390
2390
  [t, i]
2391
2391
  ), u = k(
2392
2392
  (O) => {
2393
- var M;
2394
- return t && e ? ((M = O.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
2393
+ var $;
2394
+ return t && e ? (($ = O.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
2395
2395
  }
2396
2396
  ), T = k(
2397
2397
  (O) => v && n ? O.getDataSet(v, n) : void 0
@@ -2406,27 +2406,27 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2406
2406
  if (!O) return null;
2407
2407
  if (Ht.isDayjs(O)) return O;
2408
2408
  if (typeof O == "string") {
2409
- const M = Ht(O, o);
2410
- return M.isValid() ? M : null;
2409
+ const $ = Ht(O, o);
2410
+ return $.isValid() ? $ : null;
2411
2411
  }
2412
2412
  return null;
2413
2413
  }, [o]), D = p(() => {
2414
2414
  const O = T ?? (u == null ? void 0 : u.value) ?? h ?? m;
2415
2415
  return S(O);
2416
2416
  }, [T, u == null ? void 0 : u.value, h, m, S]), g = K(
2417
- (O, M) => {
2417
+ (O, $) => {
2418
2418
  if (b) {
2419
- b(O, M);
2419
+ b(O, $);
2420
2420
  return;
2421
2421
  }
2422
- const E = Array.isArray(M) ? M[0] : M;
2422
+ const E = Array.isArray($) ? $[0] : $;
2423
2423
  if (v && n && l(v, n, E), d && A(E), a && t) {
2424
- const { actionName: _, arg: j } = Nt(a, E, {
2424
+ const { actionName: _, arg: R } = Nt(a, E, {
2425
2425
  id: e,
2426
2426
  dataSet: i,
2427
2427
  dataSetField: n
2428
2428
  });
2429
- y(t, Z(_, j));
2429
+ y(t, F(_, R));
2430
2430
  }
2431
2431
  },
2432
2432
  [b, v, n, l, d, A, a, t, e, y]
@@ -2477,7 +2477,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2477
2477
  ...f
2478
2478
  }) => {
2479
2479
  const y = k((O) => O.addCommand), l = k((O) => O.getDataSet), v = k((O) => O.setDataSet), u = p(
2480
- () => I(t, i),
2480
+ () => tt(t, i),
2481
2481
  [t, i]
2482
2482
  ), T = p(() => {
2483
2483
  if (u && n) return l(u, n);
@@ -2492,19 +2492,19 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2492
2492
  if (!O) return null;
2493
2493
  if (Ht.isDayjs(O)) return O;
2494
2494
  if (typeof O == "string") {
2495
- const M = Ht(O, o);
2496
- return M.isValid() ? M : null;
2495
+ const $ = Ht(O, o);
2496
+ return $.isValid() ? $ : null;
2497
2497
  }
2498
2498
  return null;
2499
- }, [o]), D = p(() => S(T ?? s ?? d), [T, s, d, S]), g = K((O, M) => {
2499
+ }, [o]), D = p(() => S(T ?? s ?? d), [T, s, d, S]), g = K((O, $) => {
2500
2500
  if (c) {
2501
- c(O, M);
2501
+ c(O, $);
2502
2502
  return;
2503
2503
  }
2504
- const E = M || "";
2504
+ const E = $ || "";
2505
2505
  if (u && n && v(u, n, E), h && A(E), a && t) {
2506
- const { actionName: _, arg: j } = Nt(a, E, { id: e, dataSet: i, dataSetField: n });
2507
- y(t, Z(_, j));
2506
+ const { actionName: _, arg: R } = Nt(a, E, { id: e, dataSet: i, dataSetField: n });
2507
+ y(t, F(_, R));
2508
2508
  }
2509
2509
  }, [c, u, n, v, h, A, a, t, e, y]), C = K(() => {
2510
2510
  m && A(D ? D.format(o) : "");
@@ -2542,12 +2542,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2542
2542
  ...f
2543
2543
  }) => {
2544
2544
  const y = k((O) => O.addCommand), l = k((O) => O.setDataSet), v = p(
2545
- () => I(t, i),
2545
+ () => tt(t, i),
2546
2546
  [t, i]
2547
2547
  ), u = k(
2548
2548
  (O) => {
2549
- var M;
2550
- return t && e ? ((M = O.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
2549
+ var $;
2550
+ return t && e ? (($ = O.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
2551
2551
  }
2552
2552
  ), T = k(
2553
2553
  (O) => v && n ? O.getDataSet(v, n) : void 0
@@ -2560,8 +2560,8 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2560
2560
  develop: r
2561
2561
  }), S = K((O) => {
2562
2562
  if (!O || !Array.isArray(O) || O.length !== 2) return null;
2563
- const [M, E] = O, _ = Ht.isDayjs(M) ? M : Ht(M, o), j = Ht.isDayjs(E) ? E : Ht(E, o);
2564
- return _.isValid() && j.isValid() ? [_, j] : null;
2563
+ const [$, E] = O, _ = Ht.isDayjs($) ? $ : Ht($, o), R = Ht.isDayjs(E) ? E : Ht(E, o);
2564
+ return _.isValid() && R.isValid() ? [_, R] : null;
2565
2565
  }, [o]), D = p(() => {
2566
2566
  const O = T ?? (u == null ? void 0 : u.value) ?? h ?? m;
2567
2567
  return S(O);
@@ -2569,24 +2569,24 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2569
2569
  () => Gt(f, u ?? void 0),
2570
2570
  [f, u]
2571
2571
  ), C = K(
2572
- (O, M) => {
2572
+ (O, $) => {
2573
2573
  if (b) {
2574
- b(O, M);
2574
+ b(O, $);
2575
2575
  return;
2576
2576
  }
2577
- if (v && n && l(v, n, M), d && A(M), a && t) {
2578
- const { actionName: E, arg: _ } = Nt(a, M, {
2577
+ if (v && n && l(v, n, $), d && A($), a && t) {
2578
+ const { actionName: E, arg: _ } = Nt(a, $, {
2579
2579
  id: e,
2580
2580
  dataSet: i,
2581
2581
  dataSetField: n
2582
2582
  });
2583
- y(t, Z(E, _));
2583
+ y(t, F(E, _));
2584
2584
  }
2585
2585
  },
2586
2586
  [b, v, n, l, d, A, a, t, e, y]
2587
2587
  ), N = K(() => {
2588
- var O, M;
2589
- s && A(D ? [(O = D[0]) == null ? void 0 : O.format(o), (M = D[1]) == null ? void 0 : M.format(o)] : null);
2588
+ var O, $;
2589
+ s && A(D ? [(O = D[0]) == null ? void 0 : O.format(o), ($ = D[1]) == null ? void 0 : $.format(o)] : null);
2590
2590
  }, [s, A, D, o]);
2591
2591
  return /* @__PURE__ */ it("div", { onBlur: N, children: [
2592
2592
  /* @__PURE__ */ w(
@@ -2624,16 +2624,16 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2624
2624
  remoteUrl: T,
2625
2625
  ...A
2626
2626
  }) => {
2627
- const x = k((R) => R.addCommand), S = k((R) => R.setDataSet), D = p(
2628
- () => I(t, i),
2627
+ const x = k((M) => M.addCommand), S = k((M) => M.setDataSet), D = p(
2628
+ () => tt(t, i),
2629
2629
  [t, i]
2630
2630
  ), g = k(
2631
- (R) => {
2631
+ (M) => {
2632
2632
  var P;
2633
- return t && e ? ((P = R.propsStore[`${t}_props`]) == null ? void 0 : P[e]) ?? null : null;
2633
+ return t && e ? ((P = M.propsStore[`${t}_props`]) == null ? void 0 : P[e]) ?? null : null;
2634
2634
  }
2635
2635
  ), C = k(
2636
- (R) => D && n ? R.getDataSet(D, n) : void 0
2636
+ (M) => D && n ? M.getDataSet(D, n) : void 0
2637
2637
  ), { validate: N, help: O } = Rt({
2638
2638
  rules: b,
2639
2639
  dataSet: i,
@@ -2641,34 +2641,34 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2641
2641
  sessionId: t,
2642
2642
  id: e,
2643
2643
  develop: r
2644
- }), M = p(() => C !== void 0 ? C : (g == null ? void 0 : g.value) !== void 0 ? g.value : y ?? l, [C, g == null ? void 0 : g.value, y, l]), { options: E } = ye(v), { options: _ } = nr(
2644
+ }), $ = p(() => C !== void 0 ? C : (g == null ? void 0 : g.value) !== void 0 ? g.value : y ?? l, [C, g == null ? void 0 : g.value, y, l]), { options: E } = ye(v), { options: _ } = nr(
2645
2645
  o == null ? void 0 : o.url,
2646
2646
  {
2647
2647
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
2648
2648
  labelKey: (o == null ? void 0 : o.labelKey) || "label",
2649
2649
  immediate: !!(o != null && o.url)
2650
2650
  }
2651
- ), j = p(() => g != null && g.options ? g.options : o != null && o.url && _.length > 0 ? _ : v && E.length > 0 ? E : a, [g == null ? void 0 : g.options, o == null ? void 0 : o.url, _, v, E, a]), q = p(() => {
2652
- if (j.length === 0) return M;
2653
- const R = re(j, M);
2654
- return (R == null ? void 0 : R.value) ?? M;
2655
- }, [M, j]), U = p(
2651
+ ), R = p(() => g != null && g.options ? g.options : o != null && o.url && _.length > 0 ? _ : v && E.length > 0 ? E : a, [g == null ? void 0 : g.options, o == null ? void 0 : o.url, _, v, E, a]), W = p(() => {
2652
+ if (R.length === 0) return $;
2653
+ const M = re(R, $);
2654
+ return (M == null ? void 0 : M.value) ?? $;
2655
+ }, [$, R]), U = p(
2656
2656
  () => Gt(A, g ?? void 0),
2657
2657
  [A, g]
2658
- ), V = K(
2659
- (R) => {
2660
- const P = R.target.value;
2658
+ ), q = K(
2659
+ (M) => {
2660
+ const P = M.target.value;
2661
2661
  if (f) {
2662
2662
  f(P);
2663
2663
  return;
2664
2664
  }
2665
2665
  if (D && n && S(D, n, P), m && N(P), c && t) {
2666
- const { actionName: B, arg: $ } = Nt(c, P, {
2666
+ const { actionName: j, arg: B } = Nt(c, P, {
2667
2667
  id: e,
2668
2668
  dataSet: i,
2669
2669
  dataSetField: n
2670
2670
  });
2671
- x(t, Z(B, $));
2671
+ x(t, F(j, B));
2672
2672
  }
2673
2673
  },
2674
2674
  [
@@ -2683,25 +2683,25 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2683
2683
  e,
2684
2684
  x
2685
2685
  ]
2686
- ), z = K(() => {
2687
- h && N(q);
2688
- }, [h, N, q]);
2689
- return /* @__PURE__ */ it("div", { onBlur: z, children: [
2686
+ ), L = K(() => {
2687
+ h && N(W);
2688
+ }, [h, N, W]);
2689
+ return /* @__PURE__ */ it("div", { onBlur: L, children: [
2690
2690
  /* @__PURE__ */ w(
2691
2691
  Me.Group,
2692
2692
  {
2693
2693
  ...U,
2694
2694
  disabled: r ? !1 : U.disabled,
2695
- value: q,
2696
- onChange: V,
2695
+ value: W,
2696
+ onChange: q,
2697
2697
  buttonStyle: (g == null ? void 0 : g.buttonStyle) ?? s,
2698
2698
  optionType: (g == null ? void 0 : g.optionType) ?? d,
2699
- children: d === "button" ? j.map((R) => /* @__PURE__ */ w(Me.Button, { value: R.value, disabled: R.disabled, children: R.label }, R.value)) : /* @__PURE__ */ w(
2699
+ children: d === "button" ? R.map((M) => /* @__PURE__ */ w(Me.Button, { value: M.value, disabled: M.disabled, children: M.label }, M.value)) : /* @__PURE__ */ w(
2700
2700
  Ut,
2701
2701
  {
2702
2702
  orientation: (g == null ? void 0 : g.direction) ?? u ?? "horizontal",
2703
2703
  wrap: !0,
2704
- children: j.map((R) => /* @__PURE__ */ w(Me, { value: R.value, disabled: R.disabled, children: R.label }, R.value))
2704
+ children: R.map((M) => /* @__PURE__ */ w(Me, { value: M.value, disabled: M.disabled, children: M.label }, M.value))
2705
2705
  }
2706
2706
  )
2707
2707
  }
@@ -2733,83 +2733,83 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2733
2733
  remoteUrl: x,
2734
2734
  ...S
2735
2735
  }) => {
2736
- const D = k(($) => $.addCommand), g = k(($) => $.setDataSet), C = p(
2737
- () => I(t, i),
2736
+ const D = k((B) => B.addCommand), g = k((B) => B.setDataSet), C = p(
2737
+ () => tt(t, i),
2738
2738
  [t, i]
2739
2739
  ), N = k(
2740
- ($) => {
2741
- var H;
2742
- return t && e ? ((H = $.propsStore[`${t}_props`]) == null ? void 0 : H[e]) ?? null : null;
2740
+ (B) => {
2741
+ var V;
2742
+ return t && e ? ((V = B.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
2743
2743
  }
2744
2744
  ), O = k(
2745
- ($) => C && n ? $.getDataSet(C, n) : void 0
2746
- ), { validate: M, help: E } = Rt({
2745
+ (B) => C && n ? B.getDataSet(C, n) : void 0
2746
+ ), { validate: $, help: E } = Rt({
2747
2747
  rules: d,
2748
2748
  dataSet: i,
2749
2749
  dataSetField: n,
2750
2750
  sessionId: t,
2751
2751
  id: e,
2752
2752
  develop: r
2753
- }), { options: _ } = ye(T), { options: j } = nr(
2753
+ }), { options: _ } = ye(T), { options: R } = nr(
2754
2754
  o == null ? void 0 : o.url,
2755
2755
  {
2756
2756
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
2757
2757
  labelKey: (o == null ? void 0 : o.labelKey) || "label",
2758
2758
  immediate: !!(o != null && o.url)
2759
2759
  }
2760
- ), q = p(() => {
2760
+ ), W = p(() => {
2761
2761
  if (!c)
2762
2762
  return O !== void 0 ? !!O : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : y ?? v;
2763
- }, [c, O, N == null ? void 0 : N.checked, y, v]), U = p(() => N != null && N.options ? N.options : o != null && o.url && j.length > 0 ? j : T && _.length > 0 ? _ : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, j, T, _, a]), V = p(() => {
2763
+ }, [c, O, N == null ? void 0 : N.checked, y, v]), U = p(() => N != null && N.options ? N.options : o != null && o.url && R.length > 0 ? R : T && _.length > 0 ? _ : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, R, T, _, a]), q = p(() => {
2764
2764
  if (!c) return [];
2765
- let $ = [];
2766
- return Array.isArray(O) ? $ = O : Array.isArray(N == null ? void 0 : N.values) ? $ = N.values : $ = l || [], U.length === 0 ? $ : $.map((H) => {
2765
+ let B = [];
2766
+ return Array.isArray(O) ? B = O : Array.isArray(N == null ? void 0 : N.values) ? B = N.values : B = l || [], U.length === 0 ? B : B.map((V) => {
2767
2767
  var X;
2768
- return ((X = re(U, H)) == null ? void 0 : X.value) ?? H;
2768
+ return ((X = re(U, V)) == null ? void 0 : X.value) ?? V;
2769
2769
  });
2770
- }, [c, O, N == null ? void 0 : N.values, l, U]), z = p(
2770
+ }, [c, O, N == null ? void 0 : N.values, l, U]), L = p(
2771
2771
  () => Gt(S, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
2772
2772
  [S, N]
2773
- ), R = K(($) => {
2774
- const H = $.target.checked;
2773
+ ), M = K((B) => {
2774
+ const V = B.target.checked;
2775
2775
  if (m) {
2776
- m(H);
2776
+ m(V);
2777
2777
  return;
2778
2778
  }
2779
- if (C && n && g(C, n, H), h && M(H), s && t) {
2780
- const { actionName: X, arg: rt } = Nt(s, H, { id: e, dataSet: i, dataSetField: n });
2781
- D(t, Z(X, rt));
2779
+ if (C && n && g(C, n, V), h && $(V), s && t) {
2780
+ const { actionName: X, arg: rt } = Nt(s, V, { id: e, dataSet: i, dataSetField: n });
2781
+ D(t, F(X, rt));
2782
2782
  }
2783
- }, [m, C, n, g, h, M, s, t, e, D]), P = K(($) => {
2783
+ }, [m, C, n, g, h, $, s, t, e, D]), P = K((B) => {
2784
2784
  if (f) {
2785
- f($);
2785
+ f(B);
2786
2786
  return;
2787
2787
  }
2788
- if (C && n && g(C, n, $), h && M($), s && t) {
2789
- const { actionName: H, arg: X } = Nt(s, $, { id: e, dataSet: i, dataSetField: n });
2790
- D(t, Z(H, X));
2788
+ if (C && n && g(C, n, B), h && $(B), s && t) {
2789
+ const { actionName: V, arg: X } = Nt(s, B, { id: e, dataSet: i, dataSetField: n });
2790
+ D(t, F(V, X));
2791
2791
  }
2792
- }, [f, C, n, g, h, M, s, t, e, D]), B = K(() => {
2793
- b && M(c ? V : q);
2794
- }, [b, M, c, V, q]);
2795
- return c && U.length > 0 ? /* @__PURE__ */ it("div", { onBlur: B, children: [
2796
- /* @__PURE__ */ w(ae.Group, { ...z, value: V, onChange: P, disabled: r ? !1 : z.disabled, children: /* @__PURE__ */ w(
2792
+ }, [f, C, n, g, h, $, s, t, e, D]), j = K(() => {
2793
+ b && $(c ? q : W);
2794
+ }, [b, $, c, q, W]);
2795
+ return c && U.length > 0 ? /* @__PURE__ */ it("div", { onBlur: j, children: [
2796
+ /* @__PURE__ */ w(ae.Group, { ...L, value: q, onChange: P, disabled: r ? !1 : L.disabled, children: /* @__PURE__ */ w(
2797
2797
  Ut,
2798
2798
  {
2799
- direction: z.direction ?? A,
2799
+ direction: L.direction ?? A,
2800
2800
  wrap: !0,
2801
- children: U.map(($) => /* @__PURE__ */ w(ae, { value: $.value, disabled: $.disabled, children: $.label }, $.value))
2801
+ children: U.map((B) => /* @__PURE__ */ w(ae, { value: B.value, disabled: B.disabled, children: B.label }, B.value))
2802
2802
  }
2803
2803
  ) }),
2804
2804
  E && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E })
2805
- ] }) : /* @__PURE__ */ it("div", { onBlur: B, children: [
2805
+ ] }) : /* @__PURE__ */ it("div", { onBlur: j, children: [
2806
2806
  /* @__PURE__ */ w(
2807
2807
  ae,
2808
2808
  {
2809
- ...z,
2810
- disabled: r ? !1 : z.disabled,
2811
- checked: q,
2812
- onChange: R,
2809
+ ...L,
2810
+ disabled: r ? !1 : L.disabled,
2811
+ checked: W,
2812
+ onChange: M,
2813
2813
  children: u
2814
2814
  }
2815
2815
  ),
@@ -2831,7 +2831,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2831
2831
  ...m
2832
2832
  }) => {
2833
2833
  const f = k((C) => C.addCommand), y = k((C) => C.setDataSet), l = p(
2834
- () => I(t, i),
2834
+ () => tt(t, i),
2835
2835
  [t, i]
2836
2836
  ), v = k(
2837
2837
  (C) => {
@@ -2859,7 +2859,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2859
2859
  dataSet: i,
2860
2860
  dataSetField: n
2861
2861
  });
2862
- f(t, Z(N, O));
2862
+ f(t, F(N, O));
2863
2863
  }
2864
2864
  },
2865
2865
  [d, l, n, y, s, T, a, t, e, f]
@@ -2894,7 +2894,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2894
2894
  ...d
2895
2895
  }) => {
2896
2896
  const b = k((u) => u.addCommand), h = k((u) => u.getDataSet), m = k((u) => u.setDataSet), f = p(
2897
- () => I(t, i),
2897
+ () => tt(t, i),
2898
2898
  [t, i]
2899
2899
  ), y = p(() => {
2900
2900
  if (f && n) return h(f, n);
@@ -2905,7 +2905,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2905
2905
  }
2906
2906
  if (f && n && m(f, n, u), a && t) {
2907
2907
  const { actionName: T, arg: A } = Nt(a, u, { id: e, dataSet: i, dataSetField: n });
2908
- b(t, Z(T, A));
2908
+ b(t, F(T, A));
2909
2909
  }
2910
2910
  }, [o, f, n, m, a, t, e, b]);
2911
2911
  return /* @__PURE__ */ w(on, { ...d, disabled: r ? !1 : d.disabled, value: l, onChange: v });
@@ -2951,12 +2951,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2951
2951
  remoteUrl: y,
2952
2952
  ...l
2953
2953
  }) => {
2954
- const v = k((V) => V.addCommand), u = k((V) => V.setDataSet), T = Vt(null), [A, x] = mt([]), [S, D] = mt(!1), g = p(
2955
- () => I(t, i),
2954
+ const v = k((q) => q.addCommand), u = k((q) => q.setDataSet), T = Vt(null), [A, x] = ht([]), [S, D] = ht(!1), g = p(
2955
+ () => tt(t, i),
2956
2956
  [t, i]
2957
2957
  ), C = k(
2958
- (V) => g && n ? V.getDataSet(g, n) : void 0
2959
- ), { validate: N, help: O, validateStatus: M } = Rt({
2958
+ (q) => g && n ? q.getDataSet(g, n) : void 0
2959
+ ), { validate: N, help: O, validateStatus: $ } = Rt({
2960
2960
  rules: o,
2961
2961
  dataSet: i,
2962
2962
  dataSetField: n,
@@ -2964,45 +2964,45 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
2964
2964
  id: e,
2965
2965
  develop: r
2966
2966
  }), E = p(() => (a == null ? void 0 : a.url) && A.length > 0, [a == null ? void 0 : a.url, A.length]), _ = p(() => {
2967
- let V = C ?? f ?? m ?? [];
2968
- return typeof V == "string" ? E ? yr(V).map((R) => Ca(R, A)).filter((R) => Array.isArray(R) && R.length > 0) : [V] : gr(V) && E ? V.map((R) => yr(R)).filter((R) => Array.isArray(R) && R.length > 0) : pr(V) && E ? V.filter((z) => Array.isArray(z) && z.length > 0) : V;
2969
- }, [C, f, m, E, A]), j = p(() => a != null && a.url && A.length > 0 ? A : h || [], [a == null ? void 0 : a.url, A, h]);
2967
+ let q = C ?? f ?? m ?? [];
2968
+ return typeof q == "string" ? E ? yr(q).map((M) => Ca(M, A)).filter((M) => Array.isArray(M) && M.length > 0) : [q] : gr(q) && E ? q.map((M) => yr(M)).filter((M) => Array.isArray(M) && M.length > 0) : pr(q) && E ? q.filter((L) => Array.isArray(L) && L.length > 0) : q;
2969
+ }, [C, f, m, E, A]), R = p(() => a != null && a.url && A.length > 0 ? A : h || [], [a == null ? void 0 : a.url, A, h]);
2970
2970
  Ot(() => {
2971
2971
  (async () => {
2972
2972
  if (a != null && a.url) {
2973
2973
  D(!0);
2974
2974
  try {
2975
- const z = await ee({ url: a.url, method: "GET" }), R = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], P = a.codeKey || "value", B = a.labelKey || "label", $ = a.childrenKey || "children", H = a.maxLevel || 5, X = Ur(R, {
2975
+ const L = await ee({ url: a.url, method: "GET" }), M = Array.isArray(L) ? L : L != null && L.data ? Array.isArray(L.data) ? L.data : L.data.list || L.data.records || [] : [], P = a.codeKey || "value", j = a.labelKey || "label", B = a.childrenKey || "children", V = a.maxLevel || 5, X = Ur(M, {
2976
2976
  codeKey: P,
2977
- labelKey: B,
2978
- childrenKey: $,
2979
- maxLevel: H
2977
+ labelKey: j,
2978
+ childrenKey: B,
2979
+ maxLevel: V
2980
2980
  });
2981
2981
  x(X);
2982
- } catch (z) {
2983
- console.error("Failed to load remote options:", z), x([]);
2982
+ } catch (L) {
2983
+ console.error("Failed to load remote options:", L), x([]);
2984
2984
  } finally {
2985
2985
  D(!1);
2986
2986
  }
2987
2987
  }
2988
2988
  })();
2989
2989
  }, [a == null ? void 0 : a.url, a == null ? void 0 : a.codeKey, a == null ? void 0 : a.labelKey, a == null ? void 0 : a.childrenKey, a == null ? void 0 : a.maxLevel]);
2990
- const q = K(
2991
- (V, z) => {
2990
+ const W = K(
2991
+ (q, L) => {
2992
2992
  if (b) {
2993
- b(V, z);
2993
+ b(q, L);
2994
2994
  return;
2995
2995
  }
2996
- let R = V;
2997
- if (gr(V) && E ? R = String(V[V.length - 1] || "") : pr(V) && E && (R = V.map((P) => P.join(","))), g && n && u(g, n, R), s && (T.current && clearTimeout(T.current), T.current = setTimeout(() => {
2998
- T.current = null, N(V);
2996
+ let M = q;
2997
+ if (gr(q) && E ? M = String(q[q.length - 1] || "") : pr(q) && E && (M = q.map((P) => P.join(","))), g && n && u(g, n, M), s && (T.current && clearTimeout(T.current), T.current = setTimeout(() => {
2998
+ T.current = null, N(q);
2999
2999
  }, Ta)), d && t) {
3000
- const { actionName: P, arg: B } = Nt(d, V, {
3000
+ const { actionName: P, arg: j } = Nt(d, q, {
3001
3001
  id: e,
3002
3002
  dataSet: i,
3003
3003
  dataSetField: n
3004
3004
  });
3005
- v(t, Z(P, B));
3005
+ v(t, F(P, j));
3006
3006
  }
3007
3007
  },
3008
3008
  [
@@ -3034,11 +3034,11 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3034
3034
  disabled: r ? !1 : l.disabled,
3035
3035
  open: r ? !1 : void 0,
3036
3036
  value: _,
3037
- options: j,
3038
- onChange: q,
3037
+ options: R,
3038
+ onChange: W,
3039
3039
  onBlur: U,
3040
3040
  loading: S,
3041
- status: M,
3041
+ status: $,
3042
3042
  style: { width: "100%", ...l.style }
3043
3043
  }
3044
3044
  ),
@@ -3065,16 +3065,16 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3065
3065
  validateOnBlur: u,
3066
3066
  ...T
3067
3067
  }) => {
3068
- const A = k((z) => z.addCommand), x = k((z) => z.setDataSet), S = p(
3069
- () => I(t, i),
3068
+ const A = k((L) => L.addCommand), x = k((L) => L.setDataSet), S = p(
3069
+ () => tt(t, i),
3070
3070
  [t, i]
3071
3071
  ), D = k(
3072
- (z) => {
3073
- var R;
3074
- return t && e ? ((R = z.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null : null;
3072
+ (L) => {
3073
+ var M;
3074
+ return t && e ? ((M = L.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
3075
3075
  }
3076
3076
  ), g = k(
3077
- (z) => S && n ? z.getDataSet(S, n) : void 0
3077
+ (L) => S && n ? L.getDataSet(S, n) : void 0
3078
3078
  ), { validate: C, help: N } = Rt({
3079
3079
  rules: l,
3080
3080
  dataSet: i,
@@ -3085,51 +3085,51 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3085
3085
  }), O = p(
3086
3086
  () => g ?? (D == null ? void 0 : D.value) ?? c ?? s,
3087
3087
  [g, D == null ? void 0 : D.value, c, s]
3088
- ), M = p(
3088
+ ), $ = p(
3089
3089
  () => Gt(T, D ?? void 0),
3090
3090
  [T, D]
3091
3091
  ), E = K(
3092
- (z, R, P) => {
3092
+ (L, M, P) => {
3093
3093
  if (o) {
3094
- o(z, R, P);
3094
+ o(L, M, P);
3095
3095
  return;
3096
3096
  }
3097
- if (S && n && x(S, n, z), v && C(z), a && t) {
3098
- const { actionName: B, arg: $ } = Nt(a, z, {
3097
+ if (S && n && x(S, n, L), v && C(L), a && t) {
3098
+ const { actionName: j, arg: B } = Nt(a, L, {
3099
3099
  id: e,
3100
3100
  dataSet: i,
3101
3101
  dataSetField: n
3102
3102
  });
3103
- A(t, Z(B, $));
3103
+ A(t, F(j, B));
3104
3104
  }
3105
3105
  },
3106
3106
  [o, S, n, x, v, C, a, t, e, A]
3107
3107
  ), _ = K(() => {
3108
3108
  u && C(O);
3109
- }, [u, C, O]), j = p(() => {
3109
+ }, [u, C, O]), R = p(() => {
3110
3110
  if (!y) return;
3111
- const z = {};
3112
- return Object.entries(y).forEach(([R, P]) => {
3113
- P !== "" && P !== void 0 && P !== null && (z[R] = P);
3114
- }), Object.keys(z).length > 0 ? z : void 0;
3115
- }, [y]), q = p(() => {
3116
- if (j)
3111
+ const L = {};
3112
+ return Object.entries(y).forEach(([M, P]) => {
3113
+ P !== "" && P !== void 0 && P !== null && (L[M] = P);
3114
+ }), Object.keys(L).length > 0 ? L : void 0;
3115
+ }, [y]), W = p(() => {
3116
+ if (R)
3117
3117
  return {
3118
3118
  components: {
3119
- TreeSelect: j
3119
+ TreeSelect: R
3120
3120
  }
3121
3121
  };
3122
- }, [j]), U = N ? "error" : void 0, V = /* @__PURE__ */ it("div", { onBlur: _, children: [
3122
+ }, [R]), U = N ? "error" : void 0, q = /* @__PURE__ */ it("div", { onBlur: _, children: [
3123
3123
  /* @__PURE__ */ w(
3124
3124
  ln,
3125
3125
  {
3126
- ...M,
3127
- disabled: r ? !1 : M.disabled,
3126
+ ...$,
3127
+ disabled: r ? !1 : $.disabled,
3128
3128
  open: r ? !1 : void 0,
3129
3129
  treeData: d,
3130
3130
  value: O,
3131
3131
  onChange: E,
3132
- style: { width: "100%", ...M.style },
3132
+ style: { width: "100%", ...$.style },
3133
3133
  styles: m,
3134
3134
  classNames: f,
3135
3135
  status: U
@@ -3137,7 +3137,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3137
3137
  ),
3138
3138
  N && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
3139
3139
  ] });
3140
- return q ? /* @__PURE__ */ w(Mt, { theme: q, children: V }) : V;
3140
+ return W ? /* @__PURE__ */ w(Mt, { theme: W, children: q }) : q;
3141
3141
  }, mc = ({
3142
3142
  id: e,
3143
3143
  sessionId: t,
@@ -3157,16 +3157,16 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3157
3157
  action: l,
3158
3158
  ...v
3159
3159
  }) => {
3160
- const u = k((L) => L.addCommand), T = k((L) => L.setDataSet), A = p(
3161
- () => I(t, i),
3160
+ const u = k((z) => z.addCommand), T = k((z) => z.setDataSet), A = p(
3161
+ () => tt(t, i),
3162
3162
  [t, i]
3163
3163
  ), x = k(
3164
- (L) => {
3164
+ (z) => {
3165
3165
  var Y;
3166
- return t && e ? ((Y = L.propsStore[`${t}_props`]) == null ? void 0 : Y[e]) ?? null : null;
3166
+ return t && e ? ((Y = z.propsStore[`${t}_props`]) == null ? void 0 : Y[e]) ?? null : null;
3167
3167
  }
3168
3168
  ), S = k(
3169
- (L) => A && n ? L.getDataSet(A, n) : void 0
3169
+ (z) => A && n ? z.getDataSet(A, n) : void 0
3170
3170
  ), { validate: D, help: g } = Rt({
3171
3171
  rules: c,
3172
3172
  dataSet: i,
@@ -3174,45 +3174,45 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3174
3174
  sessionId: t,
3175
3175
  id: e,
3176
3176
  develop: r
3177
- }), C = K((L) => L.map((Y) => {
3177
+ }), C = K((z) => z.map((Y) => {
3178
3178
  var ut;
3179
3179
  return ((ut = Y == null ? void 0 : Y.response) == null ? void 0 : ut.src) ?? (Y == null ? void 0 : Y.src) ?? (Y == null ? void 0 : Y.url) ?? (Y == null ? void 0 : Y.thumbUrl) ?? "";
3180
- }).filter((Y) => Y && typeof Y == "string"), []), N = K((L) => {
3181
- const Y = Yt().viewRes, ut = (F) => (Y ? Y(F) : F) || F;
3182
- return L.map((F, at) => {
3183
- const lt = ut(F);
3180
+ }).filter((Y) => Y && typeof Y == "string"), []), N = K((z) => {
3181
+ const Y = Yt().viewRes, ut = (I) => (Y ? Y(I) : I) || I;
3182
+ return z.map((I, at) => {
3183
+ const ct = ut(I);
3184
3184
  return {
3185
- uid: `src-${at}-${F}`,
3186
- name: F.split("/").pop() || F,
3187
- url: lt,
3188
- thumbUrl: lt,
3185
+ uid: `src-${at}-${I}`,
3186
+ name: I.split("/").pop() || I,
3187
+ url: ct,
3188
+ thumbUrl: ct,
3189
3189
  status: "done",
3190
- response: { src: F }
3190
+ response: { src: I }
3191
3191
  };
3192
3192
  });
3193
- }, []), O = K((L) => {
3194
- const Y = Yt().viewRes, ut = (F) => (F && Y ? Y(F) : F) || F;
3195
- return L.map((F) => {
3193
+ }, []), O = K((z) => {
3194
+ const Y = Yt().viewRes, ut = (I) => (I && Y ? Y(I) : I) || I;
3195
+ return z.map((I) => {
3196
3196
  var _t;
3197
- const at = ((_t = F == null ? void 0 : F.response) == null ? void 0 : _t.src) ?? (F == null ? void 0 : F.src) ?? (F == null ? void 0 : F.url) ?? (F == null ? void 0 : F.thumbUrl) ?? "", lt = typeof at == "string" ? ut(at) : at, wt = {};
3198
- for (const xt of Object.keys(F)) {
3199
- const Tt = F[xt];
3197
+ const at = ((_t = I == null ? void 0 : I.response) == null ? void 0 : _t.src) ?? (I == null ? void 0 : I.src) ?? (I == null ? void 0 : I.url) ?? (I == null ? void 0 : I.thumbUrl) ?? "", ct = typeof at == "string" ? ut(at) : at, wt = {};
3198
+ for (const xt of Object.keys(I)) {
3199
+ const Tt = I[xt];
3200
3200
  Tt instanceof File ? wt[xt] = Tt : Tt && typeof Tt == "object" && !Array.isArray(Tt) ? wt[xt] = { ...Tt } : wt[xt] = Tt;
3201
3201
  }
3202
- return lt && typeof lt == "string" && (wt.url = lt, wt.thumbUrl = lt), wt;
3202
+ return ct && typeof ct == "string" && (wt.url = ct, wt.thumbUrl = ct), wt;
3203
3203
  });
3204
- }, []), [M, E] = mt(null), _ = p(() => {
3205
- const L = S ?? (x == null ? void 0 : x.fileList) ?? h;
3206
- if (L != null) {
3207
- if (typeof L == "string" && L) return N([L]);
3208
- if (Array.isArray(L))
3209
- return L.length > 0 && typeof L[0] == "string" ? N(L) : O(L);
3210
- }
3211
- }, [S, x == null ? void 0 : x.fileList, h, N, O]), j = M ?? _, q = p(
3204
+ }, []), [$, E] = ht(null), _ = p(() => {
3205
+ const z = S ?? (x == null ? void 0 : x.fileList) ?? h;
3206
+ if (z != null) {
3207
+ if (typeof z == "string" && z) return N([z]);
3208
+ if (Array.isArray(z))
3209
+ return z.length > 0 && typeof z[0] == "string" ? N(z) : O(z);
3210
+ }
3211
+ }, [S, x == null ? void 0 : x.fileList, h, N, O]), R = $ ?? _, W = p(
3212
3212
  () => Gt(v, x ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
3213
3213
  [v, x]
3214
- ), U = K((L) => L.size / 1024 / 1024 < y ? !0 : (be.error(`文件大小不能超过 ${y}MB`), !1), [y]), V = K(async (L) => {
3215
- const { file: Y, onSuccess: ut, onError: F, onProgress: at } = L;
3214
+ ), U = K((z) => z.size / 1024 / 1024 < y ? !0 : (be.error(`文件大小不能超过 ${y}MB`), !1), [y]), q = K(async (z) => {
3215
+ const { file: Y, onSuccess: ut, onError: I, onProgress: at } = z;
3216
3216
  if (Yt().upload)
3217
3217
  try {
3218
3218
  at == null || at({ percent: 30 });
@@ -3224,84 +3224,84 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3224
3224
  });
3225
3225
  at == null || at({ percent: 100 }), ut == null || ut(wt, Y);
3226
3226
  } catch (wt) {
3227
- F == null || F(wt), be.error("上传失败");
3227
+ I == null || I(wt), be.error("上传失败");
3228
3228
  }
3229
3229
  else
3230
- F == null || F(new Error("Upload handler not configured")), be.warning("上传功能未配置");
3231
- }, [f]), z = K(
3232
- (L) => {
3230
+ I == null || I(new Error("Upload handler not configured")), be.warning("上传功能未配置");
3231
+ }, [f]), L = K(
3232
+ (z) => {
3233
3233
  if (b) {
3234
- b(L);
3234
+ b(z);
3235
3235
  return;
3236
3236
  }
3237
- const Y = Array.isArray(L.fileList) ? O(L.fileList) : L.fileList, ut = Array.isArray(Y) ? C(Y) : [], F = Array.isArray(Y) && Y.some((lt) => (lt == null ? void 0 : lt.status) === "uploading");
3238
- A && n && (ut.length > 0 || !Array.isArray(Y) || Y.length === 0) ? (T(A, n, ut), E(null)) : F ? E(Y) : Y.length === 0 && E(null), d && D(Y), a && t && u(t, Z(a, { file: L.file, fileList: Y, src: ut }));
3237
+ const Y = Array.isArray(z.fileList) ? O(z.fileList) : z.fileList, ut = Array.isArray(Y) ? C(Y) : [], I = Array.isArray(Y) && Y.some((ct) => (ct == null ? void 0 : ct.status) === "uploading");
3238
+ A && n && (ut.length > 0 || !Array.isArray(Y) || Y.length === 0) ? (T(A, n, ut), E(null)) : I ? E(Y) : Y.length === 0 && E(null), d && D(Y), a && t && u(t, F(a, { file: z.file, fileList: Y, src: ut }));
3239
3239
  },
3240
3240
  [b, A, n, T, d, D, a, t, u, O, C]
3241
- ), R = K(() => {
3242
- s && D(j);
3243
- }, [s, D, j]), P = K((L) => {
3244
- var lt;
3245
- const Y = L.url || L.thumbUrl;
3241
+ ), M = K(() => {
3242
+ s && D(R);
3243
+ }, [s, D, R]), P = K((z) => {
3244
+ var ct;
3245
+ const Y = z.url || z.thumbUrl;
3246
3246
  if (!Y) return "";
3247
- const ut = ((lt = L.response) == null ? void 0 : lt.src) ?? (typeof Y == "string" ? Y : ""), F = Yt().viewRes, at = ut && F ? F(ut) : Y;
3247
+ const ut = ((ct = z.response) == null ? void 0 : ct.src) ?? (typeof Y == "string" ? Y : ""), I = Yt().viewRes, at = ut && I ? I(ut) : Y;
3248
3248
  return String(at).replace(/([?&])download=1(&|$)/, (wt, _t, xt) => xt ? _t : "");
3249
- }, []), B = K((L) => {
3250
- var F, at;
3251
- const Y = ((F = L.response) == null ? void 0 : F.src) ?? L.name ?? "", ut = ((at = String(Y).split(".").pop()) == null ? void 0 : at.toLowerCase()) || "";
3252
- return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(ut) || /^data:image\//.test(P(L));
3253
- }, [P]), [$, H] = mt({
3249
+ }, []), j = K((z) => {
3250
+ var I, at;
3251
+ const Y = ((I = z.response) == null ? void 0 : I.src) ?? z.name ?? "", ut = ((at = String(Y).split(".").pop()) == null ? void 0 : at.toLowerCase()) || "";
3252
+ return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(ut) || /^data:image\//.test(P(z));
3253
+ }, [P]), [B, V] = ht({
3254
3254
  url: "",
3255
3255
  name: "",
3256
3256
  urls: [],
3257
3257
  current: 0,
3258
3258
  open: !1
3259
- }), X = K((L) => {
3260
- const Y = P(L);
3259
+ }), X = K((z) => {
3260
+ const Y = P(z);
3261
3261
  if (Y)
3262
- if (B(L) && (j != null && j.length)) {
3263
- const ut = j.filter((lt) => B(lt)), F = ut.map((lt) => P(lt)).filter(Boolean), at = ut.findIndex((lt) => (lt.uid || lt.url) === (L.uid || L.url));
3264
- H({ url: Y, name: L.name, urls: F, current: at >= 0 ? at : 0, open: !0 });
3265
- } else B(L) || window.open(Y, "_blank");
3266
- }, [P, B, j]), ft = !!Yt().upload && !l, ot = q, et = ot.buttonText ?? o, ht = ot.listType ?? v.listType, ct = ot.maxCount, tt = (j == null ? void 0 : j.length) ?? 0, J = typeof ct == "number" && tt >= ct, dt = K(
3267
- (L) => J ? (be.warning(`最多只能上传 ${ct} 个文件`), !1) : U(L),
3268
- [J, ct, U]
3262
+ if (j(z) && (R != null && R.length)) {
3263
+ const ut = R.filter((ct) => j(ct)), I = ut.map((ct) => P(ct)).filter(Boolean), at = ut.findIndex((ct) => (ct.uid || ct.url) === (z.uid || z.url));
3264
+ V({ url: Y, name: z.name, urls: I, current: at >= 0 ? at : 0, open: !0 });
3265
+ } else j(z) || window.open(Y, "_blank");
3266
+ }, [P, j, R]), ft = !!Yt().upload && !l, st = W, et = st.buttonText ?? o, mt = st.listType ?? v.listType, ot = st.maxCount, Z = (R == null ? void 0 : R.length) ?? 0, J = typeof ot == "number" && Z >= ot, dt = K(
3267
+ (z) => J ? (be.warning(`最多只能上传 ${ot} 个文件`), !1) : U(z),
3268
+ [J, ot, U]
3269
3269
  );
3270
- return /* @__PURE__ */ it("div", { onBlur: R, children: [
3270
+ return /* @__PURE__ */ it("div", { onBlur: M, children: [
3271
3271
  /* @__PURE__ */ w(
3272
3272
  sn,
3273
3273
  {
3274
- ...q,
3275
- disabled: r ? !1 : q.disabled,
3276
- fileList: j,
3277
- onChange: z,
3274
+ ...W,
3275
+ disabled: r ? !1 : W.disabled,
3276
+ fileList: R,
3277
+ onChange: L,
3278
3278
  onPreview: X,
3279
3279
  beforeUpload: dt,
3280
- customRequest: ft ? V : void 0,
3280
+ customRequest: ft ? q : void 0,
3281
3281
  action: ft ? void 0 : l || f,
3282
3282
  openFileDialogOnClick: !r,
3283
- children: !J && (m || (ht === "picture-card" || ht === "picture-circle" ? /* @__PURE__ */ it("button", { style: { border: 0, background: "none" }, type: "button", children: [
3283
+ children: !J && (m || (mt === "picture-card" || mt === "picture-circle" ? /* @__PURE__ */ it("button", { style: { border: 0, background: "none" }, type: "button", children: [
3284
3284
  /* @__PURE__ */ w($r, {}),
3285
3285
  /* @__PURE__ */ w("div", { style: { marginTop: 8 }, children: et })
3286
3286
  ] }) : /* @__PURE__ */ w(Zt, { icon: /* @__PURE__ */ w(Wn, {}), children: et })))
3287
3287
  }
3288
3288
  ),
3289
3289
  g && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: g }),
3290
- $.url && /* @__PURE__ */ w("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: $.urls.length > 1 ? /* @__PURE__ */ w(
3290
+ B.url && /* @__PURE__ */ w("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: B.urls.length > 1 ? /* @__PURE__ */ w(
3291
3291
  Qt.PreviewGroup,
3292
3292
  {
3293
3293
  preview: {
3294
- current: $.current,
3295
- onOpenChange: (L) => !L && H((Y) => ({ ...Y, open: !1 }))
3294
+ current: B.current,
3295
+ onOpenChange: (z) => !z && V((Y) => ({ ...Y, open: !1 }))
3296
3296
  },
3297
- children: $.urls.map((L, Y) => /* @__PURE__ */ w(
3297
+ children: B.urls.map((z, Y) => /* @__PURE__ */ w(
3298
3298
  Qt,
3299
3299
  {
3300
- src: L,
3300
+ src: z,
3301
3301
  style: { width: 1, height: 1 },
3302
3302
  preview: {
3303
- open: $.open && $.current === Y,
3304
- onOpenChange: (ut) => !ut && H((F) => ({ ...F, open: !1 }))
3303
+ open: B.open && B.current === Y,
3304
+ onOpenChange: (ut) => !ut && V((I) => ({ ...I, open: !1 }))
3305
3305
  }
3306
3306
  },
3307
3307
  Y
@@ -3310,12 +3310,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3310
3310
  ) : /* @__PURE__ */ w(
3311
3311
  Qt,
3312
3312
  {
3313
- src: $.url,
3314
- alt: $.name,
3313
+ src: B.url,
3314
+ alt: B.name,
3315
3315
  style: { width: 1, height: 1 },
3316
3316
  preview: {
3317
- open: $.open,
3318
- onOpenChange: (L) => !L && H((Y) => ({ ...Y, open: !1 }))
3317
+ open: B.open,
3318
+ onOpenChange: (z) => !z && V((Y) => ({ ...Y, open: !1 }))
3319
3319
  }
3320
3320
  }
3321
3321
  ) })
@@ -3339,18 +3339,18 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3339
3339
  searchAction: y,
3340
3340
  ...l
3341
3341
  }) => {
3342
- const v = k((j) => j.addCommand), u = k((j) => j.getDataSet), T = k((j) => j.setDataSet), A = p(
3343
- () => I(t, i),
3342
+ const v = k((R) => R.addCommand), u = k((R) => R.getDataSet), T = k((R) => R.setDataSet), A = p(
3343
+ () => tt(t, i),
3344
3344
  [t, i]
3345
- ), [x, S] = mt(h || []), [, D] = mt(!1), g = Lt.useRef(void 0), { get: C } = Hi(), N = p(() => {
3345
+ ), [x, S] = ht(h || []), [, D] = ht(!1), g = zt.useRef(void 0), { get: C } = Hi(), N = p(() => {
3346
3346
  if (A && n) return u(A, n);
3347
- }, [A, n, u]), O = p(() => N ?? d ?? b, [N, d, b]), M = K((j) => {
3347
+ }, [A, n, u]), O = p(() => N ?? d ?? b, [N, d, b]), $ = K((R) => {
3348
3348
  if (!(f != null && f.queryApi)) {
3349
3349
  h && S(
3350
3350
  h.filter(
3351
- (q) => {
3352
- var U, V;
3353
- return ((U = q.value) == null ? void 0 : U.toString().toLowerCase().includes(j.toLowerCase())) || ((V = q.label) == null ? void 0 : V.toString().toLowerCase().includes(j.toLowerCase()));
3351
+ (W) => {
3352
+ var U, q;
3353
+ return ((U = W.value) == null ? void 0 : U.toString().toLowerCase().includes(R.toLowerCase())) || ((q = W.label) == null ? void 0 : q.toString().toLowerCase().includes(R.toLowerCase()));
3354
3354
  }
3355
3355
  )
3356
3356
  );
@@ -3360,45 +3360,45 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3360
3360
  if (f != null && f.queryApi) {
3361
3361
  D(!0);
3362
3362
  try {
3363
- const { queryApi: q, keyWordParamName: U = "keyword", valueKey: V = "value", labelKey: z = "label", fixedParams: R = [] } = f, P = {};
3364
- U && (P[U] = j), Array.isArray(R) && R.forEach((X) => {
3363
+ const { queryApi: W, keyWordParamName: U = "keyword", valueKey: q = "value", labelKey: L = "label", fixedParams: M = [] } = f, P = {};
3364
+ U && (P[U] = R), Array.isArray(M) && M.forEach((X) => {
3365
3365
  X.key && (P[X.key] = X.value);
3366
3366
  });
3367
- const B = await C(q, P);
3368
- let $ = [];
3369
- Array.isArray(B) ? $ = B : B && Array.isArray(B.data) ? $ = B.data : B && B.data && Array.isArray(B.data.records) ? $ = B.data.records : B && B.result && Array.isArray(B.result) && ($ = B.result);
3370
- const H = $.map((X) => ({
3371
- value: X[V],
3372
- label: X[z] || X[V],
3367
+ const j = await C(W, P);
3368
+ let B = [];
3369
+ Array.isArray(j) ? B = j : j && Array.isArray(j.data) ? B = j.data : j && j.data && Array.isArray(j.data.records) ? B = j.data.records : j && j.result && Array.isArray(j.result) && (B = j.result);
3370
+ const V = B.map((X) => ({
3371
+ value: X[q],
3372
+ label: X[L] || X[q],
3373
3373
  ...X
3374
3374
  }));
3375
- S(H);
3376
- } catch (q) {
3377
- console.error("Failed to fetch remote options:", q), S([]);
3375
+ S(V);
3376
+ } catch (W) {
3377
+ console.error("Failed to fetch remote options:", W), S([]);
3378
3378
  } finally {
3379
3379
  D(!1);
3380
3380
  }
3381
3381
  }
3382
3382
  }, 500);
3383
3383
  }, [f, h, C]);
3384
- Lt.useEffect(() => {
3384
+ zt.useEffect(() => {
3385
3385
  !(f != null && f.queryApi) && h && S(h);
3386
3386
  }, [h, f == null ? void 0 : f.queryApi]);
3387
- const E = K((j) => {
3387
+ const E = K((R) => {
3388
3388
  if (c) {
3389
- c(j);
3389
+ c(R);
3390
3390
  return;
3391
3391
  }
3392
- if (A && n && T(A, n, j), a && t) {
3393
- const { actionName: q, arg: U } = Nt(a, j, { id: e, dataSet: i, dataSetField: n });
3394
- v(t, Z(q, U));
3392
+ if (A && n && T(A, n, R), a && t) {
3393
+ const { actionName: W, arg: U } = Nt(a, R, { id: e, dataSet: i, dataSetField: n });
3394
+ v(t, F(W, U));
3395
3395
  }
3396
- }, [c, A, n, T, a, t, e, v]), _ = K((j, q) => {
3396
+ }, [c, A, n, T, a, t, e, v]), _ = K((R, W) => {
3397
3397
  if (s) {
3398
- s(j, q);
3398
+ s(R, W);
3399
3399
  return;
3400
3400
  }
3401
- o && t && v(t, Z(o, { value: j, option: q }));
3401
+ o && t && v(t, F(o, { value: R, option: W }));
3402
3402
  }, [s, o, t, v]);
3403
3403
  return /* @__PURE__ */ w(
3404
3404
  un,
@@ -3410,7 +3410,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3410
3410
  value: O,
3411
3411
  onChange: E,
3412
3412
  onSelect: _,
3413
- onSearch: M,
3413
+ onSearch: $,
3414
3414
  style: { width: "100%", ...l.style }
3415
3415
  }
3416
3416
  );
@@ -3432,20 +3432,20 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3432
3432
  ...y
3433
3433
  }) => {
3434
3434
  const [l] = Ae.useForm(), v = k((S) => S.addCommand), u = k((S) => S.setDataSet), T = p(
3435
- () => I(t, i),
3435
+ () => tt(t, i),
3436
3436
  [t, i]
3437
3437
  ), A = (S) => {
3438
3438
  if (h) {
3439
3439
  h(S);
3440
3440
  return;
3441
3441
  }
3442
- T && n && u(T, n, S), a && t && v(t, Z(a, S));
3442
+ T && n && u(T, n, S), a && t && v(t, F(a, S));
3443
3443
  }, x = () => {
3444
3444
  if (l.resetFields(), m) {
3445
3445
  m();
3446
3446
  return;
3447
3447
  }
3448
- o && t && v(t, Z(o, null));
3448
+ o && t && v(t, F(o, null));
3449
3449
  };
3450
3450
  return /* @__PURE__ */ it(Ae, { ...y, form: l, onFinish: A, children: [
3451
3451
  f,
@@ -3497,46 +3497,46 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3497
3497
  onScroll: C,
3498
3498
  styles: N,
3499
3499
  token: O,
3500
- ...M
3500
+ ...$
3501
3501
  }) => {
3502
- const E = k((J) => J.addCommand), _ = k((J) => J.getDataSet), j = k((J) => J.setDataSet), q = p(
3503
- () => I(t, i),
3502
+ const E = k((J) => J.addCommand), _ = k((J) => J.getDataSet), R = k((J) => J.setDataSet), W = p(
3503
+ () => tt(t, i),
3504
3504
  [t, i]
3505
- ), U = p(() => qt(N, {}), [N]), V = p(() => qt(O, {}), [O]), z = p(() => qt(y, ["源列表", "目标列表"]), [y]), R = p(() => qt(l, [">", "<"]), [l]), P = p(() => qt(v, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [v]), B = p(() => qt(m, !1), [m]), $ = p(() => {
3506
- if (q && n) {
3507
- const J = _(q, n);
3505
+ ), U = p(() => qt(N, {}), [N]), q = p(() => qt(O, {}), [O]), L = p(() => qt(y, ["源列表", "目标列表"]), [y]), M = p(() => qt(l, [">", "<"]), [l]), P = p(() => qt(v, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [v]), j = p(() => qt(m, !1), [m]), B = p(() => {
3506
+ if (W && n) {
3507
+ const J = _(W, n);
3508
3508
  if (Array.isArray(J)) return J;
3509
3509
  }
3510
- }, [q, n, _]), H = p(() => {
3511
- if (q && n) {
3512
- const J = _(q, `${n}.dataSource`);
3510
+ }, [W, n, _]), V = p(() => {
3511
+ if (W && n) {
3512
+ const J = _(W, `${n}.dataSource`);
3513
3513
  if (Array.isArray(J)) return J;
3514
3514
  }
3515
- }, [q, n, _]), X = p(() => r ? H ?? qt(a, []) : q ? H ?? [] : qt(a, []), [r, q, H, a]), rt = p(() => r ? $ ?? qt(o, []) : q ? $ ?? [] : qt(o, []), [r, q, $, o]), ft = p(() => qt(c, []), [c]), ot = K((J, dt, L) => {
3515
+ }, [W, n, _]), X = p(() => r ? V ?? qt(a, []) : W ? V ?? [] : qt(a, []), [r, W, V, a]), rt = p(() => r ? B ?? qt(o, []) : W ? B ?? [] : qt(o, []), [r, W, B, o]), ft = p(() => qt(c, []), [c]), st = K((J, dt, z) => {
3516
3516
  if (S) {
3517
- S(J, dt, L);
3517
+ S(J, dt, z);
3518
3518
  return;
3519
3519
  }
3520
- q && n && j(q, n, J), u && t && E(t, Z(u, { targetKeys: J, direction: dt, moveKeys: L }));
3521
- }, [S, q, n, j, u, t, E]), et = K((J, dt) => {
3520
+ W && n && R(W, n, J), u && t && E(t, F(u, { targetKeys: J, direction: dt, moveKeys: z }));
3521
+ }, [S, W, n, R, u, t, E]), et = K((J, dt) => {
3522
3522
  if (D) {
3523
3523
  D(J, dt);
3524
3524
  return;
3525
3525
  }
3526
- T && t && E(t, Z(T, { sourceSelectedKeys: J, targetSelectedKeys: dt }));
3527
- }, [D, T, t, E]), ht = K((J, dt) => {
3526
+ T && t && E(t, F(T, { sourceSelectedKeys: J, targetSelectedKeys: dt }));
3527
+ }, [D, T, t, E]), mt = K((J, dt) => {
3528
3528
  if (g) {
3529
3529
  g(J, dt);
3530
3530
  return;
3531
3531
  }
3532
- A && t && E(t, Z(A, { direction: J, value: dt }));
3533
- }, [g, A, t, E]), ct = K((J, dt) => {
3532
+ A && t && E(t, F(A, { direction: J, value: dt }));
3533
+ }, [g, A, t, E]), ot = K((J, dt) => {
3534
3534
  if (C) {
3535
3535
  C(J, dt);
3536
3536
  return;
3537
3537
  }
3538
- x && t && E(t, Z(x, { direction: J }));
3539
- }, [C, x, t, E]), tt = /* @__PURE__ */ w(
3538
+ x && t && E(t, F(x, { direction: J }));
3539
+ }, [C, x, t, E]), Z = /* @__PURE__ */ w(
3540
3540
  fn,
3541
3541
  {
3542
3542
  dataSource: X,
@@ -3546,21 +3546,21 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3546
3546
  showSearch: d,
3547
3547
  showSelectAll: b,
3548
3548
  oneWay: h,
3549
- pagination: B,
3549
+ pagination: j,
3550
3550
  status: f || void 0,
3551
- titles: z,
3552
- actions: R,
3551
+ titles: L,
3552
+ actions: M,
3553
3553
  locale: P,
3554
- onChange: ot,
3554
+ onChange: st,
3555
3555
  onSelectChange: et,
3556
- onSearch: ht,
3557
- onScroll: ct,
3556
+ onSearch: mt,
3557
+ onScroll: ot,
3558
3558
  styles: U,
3559
3559
  render: (J) => J.title,
3560
- ...M
3560
+ ...$
3561
3561
  }
3562
3562
  );
3563
- return V && Object.keys(V).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Transfer: V } }, children: tt }) : tt;
3563
+ return q && Object.keys(q).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Transfer: q } }, children: Z }) : Z;
3564
3564
  }, Fe = (e, t) => {
3565
3565
  if (e == null) return t;
3566
3566
  if (typeof e == "string")
@@ -3604,20 +3604,20 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3604
3604
  ...u
3605
3605
  }) => {
3606
3606
  const T = k((_) => _.addCommand), A = k((_) => _.getDataSet), x = k((_) => _.setDataSet), S = p(
3607
- () => I(t, i),
3607
+ () => tt(t, i),
3608
3608
  [t, i]
3609
3609
  ), D = p(() => Fe(l, {}), [l]), g = p(() => Fe(v, {}), [v]), C = p(() => ka(a), [a]), O = p(() => {
3610
3610
  if (S && n) {
3611
3611
  const _ = A(S, n);
3612
3612
  if (typeof _ == "string") return _;
3613
3613
  }
3614
- }, [S, n, A]) ?? o, M = K((_) => {
3615
- const j = String(_);
3614
+ }, [S, n, A]) ?? o, $ = K((_) => {
3615
+ const R = String(_);
3616
3616
  if (y) {
3617
- y(j);
3617
+ y(R);
3618
3618
  return;
3619
3619
  }
3620
- S && n && x(S, n, j), f && t && T(t, Z(f, { value: j }));
3620
+ S && n && x(S, n, R), f && t && T(t, F(f, { value: R }));
3621
3621
  }, [y, S, n, x, f, t, T]), E = /* @__PURE__ */ w(
3622
3622
  dn,
3623
3623
  {
@@ -3630,13 +3630,13 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
3630
3630
  size: b,
3631
3631
  vertical: h,
3632
3632
  shape: m,
3633
- onChange: M,
3633
+ onChange: $,
3634
3634
  styles: D
3635
3635
  }
3636
3636
  );
3637
3637
  return g && Object.keys(g).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Segmented: g } }, children: E }) : E;
3638
3638
  }, Oa = (e, t, r) => {
3639
- const [i, n] = mt(void 0), a = t === "100%", o = Vt(0);
3639
+ const [i, n] = ht(void 0), a = t === "100%", o = Vt(0);
3640
3640
  return Er(() => {
3641
3641
  if (!a || !e.current) {
3642
3642
  n(void 0);
@@ -3693,7 +3693,7 @@ function _a(e) {
3693
3693
  return t || (t = rr(e), vr.set(e, t)), t;
3694
3694
  }
3695
3695
  const Ea = ({ dictCode: e, value: t }) => {
3696
- const [r, i] = mt(null);
3696
+ const [r, i] = ht(null);
3697
3697
  if (Ot(() => {
3698
3698
  if (!e) {
3699
3699
  i([]);
@@ -3783,7 +3783,7 @@ const Ea = ({ dictCode: e, value: t }) => {
3783
3783
  return r;
3784
3784
  }
3785
3785
  }), t;
3786
- }, ze = 15, le = 10, za = [
3786
+ }, Le = 15, le = 10, La = [
3787
3787
  { value: "small", label: "紧凑" },
3788
3788
  { value: "middle", label: "默认" },
3789
3789
  { value: "large", label: "宽松" }
@@ -3802,7 +3802,7 @@ function br(e, t, r, i) {
3802
3802
  size: i
3803
3803
  };
3804
3804
  }
3805
- function La(e, t, r, i, n) {
3805
+ function za(e, t, r, i, n) {
3806
3806
  const a = (e == null ? void 0 : e.order) ?? t.map((m) => m.key), o = (e == null ? void 0 : e.visible) ?? {}, c = (e == null ? void 0 : e.fixed) ?? {}, s = (e == null ? void 0 : e.width) ?? {}, d = new Map(t.map((m) => [m.key, m])), b = [], h = /* @__PURE__ */ new Set();
3807
3807
  for (const m of a) {
3808
3808
  const f = d.get(m);
@@ -3828,7 +3828,7 @@ function La(e, t, r, i, n) {
3828
3828
  size: (e == null ? void 0 : e.size) ?? n ?? "middle"
3829
3829
  };
3830
3830
  }
3831
- const Le = 420, wr = 440, Va = ({
3831
+ const ze = 420, wr = 440, Va = ({
3832
3832
  open: e,
3833
3833
  position: t,
3834
3834
  rowIndexVisible: r,
@@ -3842,85 +3842,85 @@ const Le = 420, wr = 440, Va = ({
3842
3842
  onSave: b,
3843
3843
  onClose: h
3844
3844
  }) => {
3845
- const [m, f] = mt(r), [y, l] = mt(i), [v, u] = mt(o), [T, A] = mt(s), [x, S] = mt(null);
3845
+ const [m, f] = ht(r), [y, l] = ht(i), [v, u] = ht(o), [T, A] = ht(s), [x, S] = ht(null);
3846
3846
  Ot(() => {
3847
3847
  e && (f(r), l([...i]), u(o), A(s));
3848
3848
  }, [e, r, i, o, s]);
3849
3849
  const D = K(
3850
- (B) => {
3851
- queueMicrotask(() => b(B));
3850
+ (j) => {
3851
+ queueMicrotask(() => b(j));
3852
3852
  },
3853
3853
  [b]
3854
3854
  ), g = K(
3855
- (B, $, H, X) => br(B, $, H ?? v, X ?? T),
3855
+ (j, B, V, X) => br(j, B, V ?? v, X ?? T),
3856
3856
  [v, T]
3857
3857
  ), C = K(() => {
3858
3858
  f(n);
3859
- const B = a.map(($) => ({ ...$ }));
3860
- l(B), u(c), A(d), D(br(n, B, c, d));
3859
+ const j = a.map((B) => ({ ...B }));
3860
+ l(j), u(c), A(d), D(br(n, j, c, d));
3861
3861
  }, [n, a, c, d, D]), N = K(
3862
- (B) => {
3863
- l(($) => {
3864
- const H = $.map((X) => X.key === B ? { ...X, visible: !X.visible } : X);
3865
- return D(g(m, H)), H;
3862
+ (j) => {
3863
+ l((B) => {
3864
+ const V = B.map((X) => X.key === j ? { ...X, visible: !X.visible } : X);
3865
+ return D(g(m, V)), V;
3866
3866
  });
3867
3867
  },
3868
3868
  [m, g, D]
3869
3869
  ), O = K(
3870
- (B, $) => {
3871
- l((H) => {
3872
- const X = H.map((rt) => rt.key === B ? { ...rt, fixed: $ } : rt);
3870
+ (j, B) => {
3871
+ l((V) => {
3872
+ const X = V.map((rt) => rt.key === j ? { ...rt, fixed: B } : rt);
3873
3873
  return D(g(m, X)), X;
3874
3874
  });
3875
3875
  },
3876
3876
  [m, g, D]
3877
- ), M = K(
3878
- (B, $) => {
3879
- l((H) => {
3880
- const X = H.map((rt) => rt.key === B ? { ...rt, width: $ } : rt);
3877
+ ), $ = K(
3878
+ (j, B) => {
3879
+ l((V) => {
3880
+ const X = V.map((rt) => rt.key === j ? { ...rt, width: B } : rt);
3881
3881
  return D(g(m, X)), X;
3882
3882
  });
3883
3883
  },
3884
3884
  [m, g, D]
3885
3885
  ), E = K(
3886
- (B, $) => {
3887
- l((H) => {
3888
- const X = H.find((et) => et.key === B);
3889
- if (!X) return H;
3890
- const rt = typeof X.width == "number" ? X.width : 80, ft = Math.max(ze, rt + $), ot = H.map((et) => et.key === B ? { ...et, width: ft } : et);
3891
- return D(g(m, ot)), ot;
3886
+ (j, B) => {
3887
+ l((V) => {
3888
+ const X = V.find((et) => et.key === j);
3889
+ if (!X) return V;
3890
+ const rt = typeof X.width == "number" ? X.width : 80, ft = Math.max(Le, rt + B), st = V.map((et) => et.key === j ? { ...et, width: ft } : et);
3891
+ return D(g(m, st)), st;
3892
3892
  });
3893
3893
  },
3894
3894
  [m, g, D]
3895
3895
  ), _ = K(
3896
- (B, $) => {
3897
- if ($ < 0 || $ >= y.length) return;
3898
- const H = [...y], [X] = H.splice(B, 1);
3899
- H.splice($, 0, X), l(H), D(g(m, H));
3896
+ (j, B) => {
3897
+ if (B < 0 || B >= y.length) return;
3898
+ const V = [...y], [X] = V.splice(j, 1);
3899
+ V.splice(B, 0, X), l(V), D(g(m, V));
3900
3900
  },
3901
3901
  [y, m, g, D]
3902
- ), j = K(
3903
- (B) => {
3904
- f(B), D(g(B, y));
3902
+ ), R = K(
3903
+ (j) => {
3904
+ f(j), D(g(j, y));
3905
3905
  },
3906
3906
  [y, g, D]
3907
- ), q = K(
3908
- (B) => {
3909
- u(B), D(g(m, y, B, T));
3907
+ ), W = K(
3908
+ (j) => {
3909
+ u(j), D(g(m, y, j, T));
3910
3910
  },
3911
3911
  [m, y, T, g, D]
3912
3912
  ), U = K(
3913
- (B) => {
3914
- A(B), D(g(m, y, v, B));
3913
+ (j) => {
3914
+ A(j), D(g(m, y, v, j));
3915
3915
  },
3916
3916
  [m, y, v, g, D]
3917
- ), V = (B) => ($) => {
3918
- S(B), $.dataTransfer.effectAllowed = "move", $.dataTransfer.setData("text/plain", String(B));
3919
- }, z = (B) => ($) => {
3920
- $.preventDefault(), $.dataTransfer.dropEffect = "move", !(x === null || x === B) && (_(x, B), S(B));
3921
- }, R = () => S(null), P = t != null ? (() => {
3922
- let B = t.y, $ = t.x;
3923
- return typeof window < "u" && ($ + Le > window.innerWidth && ($ = window.innerWidth - Le - 16), $ < 16 && ($ = 16), B + wr > window.innerHeight && (B = Math.max(16, window.innerHeight - wr - 16)), B < 16 && (B = 16)), { margin: 0, top: B, left: $ };
3917
+ ), q = (j) => (B) => {
3918
+ S(j), B.dataTransfer.effectAllowed = "move", B.dataTransfer.setData("text/plain", String(j));
3919
+ }, L = (j) => (B) => {
3920
+ B.preventDefault(), B.dataTransfer.dropEffect = "move", !(x === null || x === j) && (_(x, j), S(j));
3921
+ }, M = () => S(null), P = t != null ? (() => {
3922
+ let j = t.y, B = t.x;
3923
+ return typeof window < "u" && (B + ze > window.innerWidth && (B = window.innerWidth - ze - 16), B < 16 && (B = 16), j + wr > window.innerHeight && (j = Math.max(16, window.innerHeight - wr - 16)), j < 16 && (j = 16)), { margin: 0, top: j, left: B };
3924
3924
  })() : void 0;
3925
3925
  return /* @__PURE__ */ w(
3926
3926
  Cr,
@@ -3929,7 +3929,7 @@ const Le = 420, wr = 440, Va = ({
3929
3929
  open: e,
3930
3930
  onCancel: h,
3931
3931
  footer: null,
3932
- width: Le,
3932
+ width: ze,
3933
3933
  destroyOnHidden: !0,
3934
3934
  centered: t == null,
3935
3935
  style: P,
@@ -3941,11 +3941,11 @@ const Le = 420, wr = 440, Va = ({
3941
3941
  ae,
3942
3942
  {
3943
3943
  checked: m,
3944
- onChange: (B) => j(B.target.checked),
3944
+ onChange: (j) => R(j.target.checked),
3945
3945
  children: "序号列"
3946
3946
  }
3947
3947
  ),
3948
- /* @__PURE__ */ w(ae, { checked: v, onChange: (B) => q(B.target.checked), children: "自动滚动" }),
3948
+ /* @__PURE__ */ w(ae, { checked: v, onChange: (j) => W(j.target.checked), children: "自动滚动" }),
3949
3949
  /* @__PURE__ */ it(Ut, { align: "center", children: [
3950
3950
  /* @__PURE__ */ w("span", { className: "and-table-column-setting-label", children: "表格" }),
3951
3951
  /* @__PURE__ */ w(
@@ -3954,7 +3954,7 @@ const Le = 420, wr = 440, Va = ({
3954
3954
  size: "small",
3955
3955
  value: T,
3956
3956
  onChange: U,
3957
- options: [...za],
3957
+ options: [...La],
3958
3958
  style: { width: 80 }
3959
3959
  }
3960
3960
  )
@@ -3967,28 +3967,28 @@ const Le = 420, wr = 440, Va = ({
3967
3967
  /* @__PURE__ */ w("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
3968
3968
  /* @__PURE__ */ w("th", { className: "and-table-column-setting-th-fix", children: "固定" })
3969
3969
  ] }) }),
3970
- /* @__PURE__ */ w("tbody", { children: y.map((B, $) => {
3971
- const H = typeof B.width == "number" ? B.width : null, X = B.width === "auto" || B.width === void 0 && H === null;
3970
+ /* @__PURE__ */ w("tbody", { children: y.map((j, B) => {
3971
+ const V = typeof j.width == "number" ? j.width : null, X = j.width === "auto" || j.width === void 0 && V === null;
3972
3972
  return /* @__PURE__ */ it(
3973
3973
  "tr",
3974
3974
  {
3975
- className: `and-table-column-setting-row ${x === $ ? "and-table-column-setting-row-dragging" : ""}`,
3975
+ className: `and-table-column-setting-row ${x === B ? "and-table-column-setting-row-dragging" : ""}`,
3976
3976
  draggable: !0,
3977
- onDragStart: V($),
3978
- onDragOver: z($),
3979
- onDragEnd: R,
3977
+ onDragStart: q(B),
3978
+ onDragOver: L(B),
3979
+ onDragEnd: M,
3980
3980
  children: [
3981
3981
  /* @__PURE__ */ w("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ w("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ w(Hn, {}) }) }),
3982
3982
  /* @__PURE__ */ it("td", { className: "and-table-column-setting-td-name", children: [
3983
- /* @__PURE__ */ w(ae, { checked: B.visible, onChange: () => N(B.key) }),
3984
- /* @__PURE__ */ w("span", { className: "and-table-column-setting-title", title: B.title, children: B.title })
3983
+ /* @__PURE__ */ w(ae, { checked: j.visible, onChange: () => N(j.key) }),
3984
+ /* @__PURE__ */ w("span", { className: "and-table-column-setting-title", title: j.title, children: j.title })
3985
3985
  ] }),
3986
3986
  /* @__PURE__ */ w("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ it("div", { className: "and-table-column-setting-width", children: [
3987
3987
  /* @__PURE__ */ w(
3988
3988
  "span",
3989
3989
  {
3990
3990
  className: "and-table-column-setting-fix-btn",
3991
- onClick: () => E(B.key, -le),
3991
+ onClick: () => E(j.key, -le),
3992
3992
  title: `减 ${le}px`,
3993
3993
  children: /* @__PURE__ */ w(Un, {})
3994
3994
  }
@@ -3997,14 +3997,14 @@ const Le = 420, wr = 440, Va = ({
3997
3997
  Ar,
3998
3998
  {
3999
3999
  size: "small",
4000
- min: ze,
4000
+ min: Le,
4001
4001
  step: le,
4002
- value: X ? void 0 : H ?? 80,
4002
+ value: X ? void 0 : V ?? 80,
4003
4003
  placeholder: "auto",
4004
4004
  controls: !1,
4005
4005
  style: { width: 44 },
4006
4006
  onChange: (rt) => {
4007
- rt == null || typeof rt == "string" && rt === "" ? M(B.key, "auto") : M(B.key, Math.max(ze, Number(rt)));
4007
+ rt == null || typeof rt == "string" && rt === "" ? $(j.key, "auto") : $(j.key, Math.max(Le, Number(rt)));
4008
4008
  }
4009
4009
  }
4010
4010
  ),
@@ -4012,7 +4012,7 @@ const Le = 420, wr = 440, Va = ({
4012
4012
  "span",
4013
4013
  {
4014
4014
  className: "and-table-column-setting-fix-btn",
4015
- onClick: () => E(B.key, le),
4015
+ onClick: () => E(j.key, le),
4016
4016
  title: `加 ${le}px`,
4017
4017
  children: /* @__PURE__ */ w($r, {})
4018
4018
  }
@@ -4022,8 +4022,8 @@ const Le = 420, wr = 440, Va = ({
4022
4022
  /* @__PURE__ */ w(
4023
4023
  "span",
4024
4024
  {
4025
- className: `and-table-column-setting-fix-btn ${B.fixed === "left" ? "active" : ""}`,
4026
- onClick: () => O(B.key, B.fixed === "left" ? !1 : "left"),
4025
+ className: `and-table-column-setting-fix-btn ${j.fixed === "left" ? "active" : ""}`,
4026
+ onClick: () => O(j.key, j.fixed === "left" ? !1 : "left"),
4027
4027
  title: "固定到左侧",
4028
4028
  children: /* @__PURE__ */ w(Mr, {})
4029
4029
  }
@@ -4032,8 +4032,8 @@ const Le = 420, wr = 440, Va = ({
4032
4032
  /* @__PURE__ */ w(
4033
4033
  "span",
4034
4034
  {
4035
- className: `and-table-column-setting-fix-btn ${B.fixed === "right" ? "active" : ""}`,
4036
- onClick: () => O(B.key, B.fixed === "right" ? !1 : "right"),
4035
+ className: `and-table-column-setting-fix-btn ${j.fixed === "right" ? "active" : ""}`,
4036
+ onClick: () => O(j.key, j.fixed === "right" ? !1 : "right"),
4037
4037
  title: "固定到右侧",
4038
4038
  children: /* @__PURE__ */ w(Rr, {})
4039
4039
  }
@@ -4041,7 +4041,7 @@ const Le = 420, wr = 440, Va = ({
4041
4041
  ] }) })
4042
4042
  ]
4043
4043
  },
4044
- B.key
4044
+ j.key
4045
4045
  );
4046
4046
  }) })
4047
4047
  ] }) }),
@@ -4078,59 +4078,59 @@ const Le = 420, wr = 440, Va = ({
4078
4078
  showFooter: C,
4079
4079
  renderTitle: N,
4080
4080
  renderSummary: O,
4081
- renderFooter: M,
4081
+ renderFooter: $,
4082
4082
  children: E,
4083
4083
  token: _,
4084
- columnSettingOpenKey: j,
4085
- columnSettingsKey: q,
4084
+ columnSettingOpenKey: R,
4085
+ columnSettingsKey: W,
4086
4086
  ...U
4087
4087
  }) => {
4088
- const V = k((W) => W.addCommand), z = k((W) => W.getDataSet), R = k((W) => W.setDataSet), [P, B] = mt([]), $ = Vt(null), [H, X] = mt(void 0), rt = K((W, nt) => {
4089
- if (W == null) return nt;
4090
- if (typeof W == "string")
4088
+ const q = k((H) => H.addCommand), L = k((H) => H.getDataSet), M = k((H) => H.setDataSet), [P, j] = ht([]), B = Vt(null), [V, X] = ht(void 0), rt = K((H, nt) => {
4089
+ if (H == null) return nt;
4090
+ if (typeof H == "string")
4091
4091
  try {
4092
- return JSON.parse(W) ?? nt;
4092
+ return JSON.parse(H) ?? nt;
4093
4093
  } catch {
4094
4094
  return nt;
4095
4095
  }
4096
- return W;
4097
- }, []), ft = p(() => Array.isArray(a) ? a : [], [a]), ot = p(() => Array.isArray(o) ? o : [], [o]), et = p(
4096
+ return H;
4097
+ }, []), ft = p(() => Array.isArray(a) ? a : [], [a]), st = p(() => Array.isArray(o) ? o : [], [o]), et = p(
4098
4098
  () => ({
4099
- dataSet: I(t, i),
4100
- pagination: i ? I(t, `${i}_pagination`) : void 0,
4101
- selected: i ? I(t, `${i}_selected`) : void 0,
4102
- columnSettingOpen: i && t ? I(t, `${i}_columnSettingOpen`) : void 0,
4103
- columnSettings: i && t ? I(t, `${i}_columnSettings`) : void 0
4099
+ dataSet: tt(t, i),
4100
+ pagination: i ? tt(t, `${i}_pagination`) : void 0,
4101
+ selected: i ? tt(t, `${i}_selected`) : void 0,
4102
+ columnSettingOpen: i && t ? tt(t, `${i}_columnSettingOpen`) : void 0,
4103
+ columnSettings: i && t ? tt(t, `${i}_columnSettings`) : void 0
4104
4104
  }),
4105
4105
  [t, i]
4106
- ), ht = k(
4107
- (W) => {
4106
+ ), mt = k(
4107
+ (H) => {
4108
4108
  var nt;
4109
- return et.columnSettingOpen ? ((nt = W.dataSets[et.columnSettingOpen]) == null ? void 0 : nt.value) === !0 : !1;
4109
+ return et.columnSettingOpen ? ((nt = H.dataSets[et.columnSettingOpen]) == null ? void 0 : nt.value) === !0 : !1;
4110
4110
  }
4111
- ), ct = 420;
4111
+ ), ot = 420;
4112
4112
  Er(() => {
4113
- if (!ht || !$.current) return;
4114
- const W = $.current.querySelector(".ant-table-thead") || $.current.querySelector(".ant-table-header");
4115
- if (!W) return;
4116
- const nt = W.getBoundingClientRect();
4113
+ if (!mt || !B.current) return;
4114
+ const H = B.current.querySelector(".ant-table-thead") || B.current.querySelector(".ant-table-header");
4115
+ if (!H) return;
4116
+ const nt = H.getBoundingClientRect();
4117
4117
  X({
4118
- x: nt.right - ct,
4118
+ x: nt.right - ot,
4119
4119
  y: nt.bottom + 8
4120
4120
  });
4121
- }, [ht]);
4122
- const tt = k((W) => {
4121
+ }, [mt]);
4122
+ const Z = k((H) => {
4123
4123
  var St;
4124
- const nt = et.columnSettings ? (St = W.dataSets[et.columnSettings]) == null ? void 0 : St.value : void 0;
4124
+ const nt = et.columnSettings ? (St = H.dataSets[et.columnSettings]) == null ? void 0 : St.value : void 0;
4125
4125
  return typeof nt == "object" && nt !== null ? nt : void 0;
4126
- }), J = oi(et.dataSet, n), dt = p(() => et.dataSet ? J : (c == null ? void 0 : c.data) || [], [et.dataSet, J, c == null ? void 0 : c.data]), L = p(() => rt(_, {}), [_, rt]), Y = L && Object.keys(L).length > 0, ut = p(
4127
- () => Y ? { components: { Table: L } } : void 0,
4128
- [Y, L]
4129
- ), F = k(
4130
- (W) => et.pagination ? W.dataSets[et.pagination] : void 0
4131
- ), at = p(() => et.pagination ? z(et.pagination, "") || {} : {}, [et.pagination, z, F]), lt = p(() => !(l === !1 || typeof l == "object" && (l == null ? void 0 : l.visible) === !1), [l]), wt = p(() => {
4132
- if (!lt) return !1;
4133
- const W = typeof l == "object" ? l : {}, nt = U || {}, St = W.showSizeChanger ?? nt["pagination-showSizeChanger"] ?? !0, gt = W.showQuickJumper ?? nt["pagination-showQuickJumper"] ?? !1, vt = W.simple ?? nt["pagination-simple"] ?? !1, jt = W.defaultPageSize ?? nt["pagination-defaultPageSize"] ?? 10, Wt = W.pageSizeOptions ?? nt["pagination-pageSizeOptions"] ?? "10,20,50,100", $e = typeof Wt == "string" ? Wt.split(",").map((It) => parseInt(String(It).trim(), 10) || 10).filter((It) => !isNaN(It)) : Array.isArray(Wt) ? Wt : [10, 20, 50, 100];
4126
+ }), J = oi(et.dataSet, n), dt = p(() => et.dataSet ? J : (c == null ? void 0 : c.data) || [], [et.dataSet, J, c == null ? void 0 : c.data]), z = p(() => rt(_, {}), [_, rt]), Y = z && Object.keys(z).length > 0, ut = p(
4127
+ () => Y ? { components: { Table: z } } : void 0,
4128
+ [Y, z]
4129
+ ), I = k(
4130
+ (H) => et.pagination ? H.dataSets[et.pagination] : void 0
4131
+ ), at = p(() => et.pagination ? L(et.pagination, "") || {} : {}, [et.pagination, L, I]), ct = p(() => !(l === !1 || typeof l == "object" && (l == null ? void 0 : l.visible) === !1), [l]), wt = p(() => {
4132
+ if (!ct) return !1;
4133
+ const H = typeof l == "object" ? l : {}, nt = U || {}, St = H.showSizeChanger ?? nt["pagination-showSizeChanger"] ?? !0, gt = H.showQuickJumper ?? nt["pagination-showQuickJumper"] ?? !1, vt = H.simple ?? nt["pagination-simple"] ?? !1, jt = H.defaultPageSize ?? nt["pagination-defaultPageSize"] ?? 10, Wt = H.pageSizeOptions ?? nt["pagination-pageSizeOptions"] ?? "10,20,50,100", $e = typeof Wt == "string" ? Wt.split(",").map((It) => parseInt(String(It).trim(), 10) || 10).filter((It) => !isNaN(It)) : Array.isArray(Wt) ? Wt : [10, 20, 50, 100];
4134
4134
  return {
4135
4135
  ...at,
4136
4136
  showSizeChanger: St,
@@ -4138,34 +4138,34 @@ const Le = 420, wr = 440, Va = ({
4138
4138
  simple: vt,
4139
4139
  defaultPageSize: jt,
4140
4140
  pageSizeOptions: $e,
4141
- showTotal: (It, ne) => (W.showTotal || "共 ${total} 条").replace("${total}", String(It)).replace("${range[0]}", String(ne[0])).replace("${range[1]}", String(ne[1])).replace("${range}", `${ne[0]}-${ne[1]}`),
4141
+ showTotal: (It, ne) => (H.showTotal || "共 ${total} 条").replace("${total}", String(It)).replace("${range[0]}", String(ne[0])).replace("${range[1]}", String(ne[1])).replace("${range}", `${ne[0]}-${ne[1]}`),
4142
4142
  onChange: (It, ne) => {
4143
- et.pagination && R(et.pagination, "", { ...at, current: It, pageSize: ne }), y && t && V(t, Z(y, null));
4143
+ et.pagination && M(et.pagination, "", { ...at, current: It, pageSize: ne }), y && t && q(t, F(y, null));
4144
4144
  },
4145
4145
  hideOnSinglePage: !1
4146
4146
  };
4147
- }, [lt, l, U, at, et.pagination, R, y, t, V]), _t = K((W, nt) => {
4148
- t && V(t, Z(W.action, { ...nt }));
4149
- }, [t, V]), xt = p(() => ft.map((W) => {
4147
+ }, [ct, l, U, at, et.pagination, M, y, t, q]), _t = K((H, nt) => {
4148
+ t && q(t, F(H.action, { ...nt }));
4149
+ }, [t, q]), xt = p(() => ft.map((H) => {
4150
4150
  let nt = !1;
4151
- W.fixed === !0 || W.fixed === "left" ? nt = "left" : W.fixed === "right" && (nt = "right");
4152
- const St = W.width;
4151
+ H.fixed === !0 || H.fixed === "left" ? nt = "left" : H.fixed === "right" && (nt = "right");
4152
+ const St = H.width;
4153
4153
  return {
4154
- key: String(W.key ?? W.dataIndex ?? ""),
4155
- title: typeof W.title == "string" ? W.title : "列",
4156
- visible: W.visible !== !1,
4154
+ key: String(H.key ?? H.dataIndex ?? ""),
4155
+ title: typeof H.title == "string" ? H.title : "列",
4156
+ visible: H.visible !== !1,
4157
4157
  fixed: nt,
4158
4158
  width: typeof St == "number" ? St : "auto"
4159
4159
  };
4160
- }).filter((W) => W.key), [ft]), Tt = f === !0, Pt = !1, G = T === "small" || T === "large" ? T : "middle", { rowIndexVisible: pt, items: Et, scrollX: ge, size: Q } = p(() => La(
4161
- tt,
4160
+ }).filter((H) => H.key), [ft]), Tt = f === !0, Pt = !1, G = T === "small" || T === "large" ? T : "middle", { rowIndexVisible: pt, items: Et, scrollX: ge, size: Q } = p(() => za(
4161
+ Z,
4162
4162
  xt,
4163
4163
  Tt,
4164
4164
  Pt,
4165
4165
  G
4166
- ), [tt, xt, Tt, Pt, G]), yt = !!(i && t), kt = p(() => {
4167
- const W = [];
4168
- pt && W.push({
4166
+ ), [Z, xt, Tt, Pt, G]), yt = !!(i && t), kt = p(() => {
4167
+ const H = [];
4168
+ pt && H.push({
4169
4169
  title: "序号",
4170
4170
  key: "rowIndex",
4171
4171
  width: 60,
@@ -4180,67 +4180,67 @@ const Le = 420, wr = 440, Va = ({
4180
4180
  const vt = nt.get(gt.key);
4181
4181
  if (!vt) return;
4182
4182
  const jt = gt.fixed || void 0, Wt = gt.width === "auto" || gt.width === void 0 ? void 0 : gt.width;
4183
- W.push(Ka({
4183
+ H.push(Ka({
4184
4184
  ...vt,
4185
4185
  dataIndex: vt.dataIndex || vt.key,
4186
4186
  fixed: jt || vt.fixed,
4187
4187
  width: Wt ?? vt.width
4188
4188
  }));
4189
- }), s !== !1 && ot.length > 0 && W.push({
4189
+ }), s !== !1 && st.length > 0 && H.push({
4190
4190
  title: "操作",
4191
4191
  key: "action",
4192
- render: (gt, vt) => /* @__PURE__ */ w(Ut, { children: ot.map((jt, Wt) => /* @__PURE__ */ w(mn, { title: jt.tooltip, children: /* @__PURE__ */ w("a", { onClick: () => _t(jt, vt), style: { marginRight: 5 }, children: jt.title }) }, Wt)) })
4193
- }), W;
4192
+ render: (gt, vt) => /* @__PURE__ */ w(Ut, { children: st.map((jt, Wt) => /* @__PURE__ */ w(mn, { title: jt.tooltip, children: /* @__PURE__ */ w("a", { onClick: () => _t(jt, vt), style: { marginRight: 5 }, children: jt.title }) }, Wt)) })
4193
+ }), H;
4194
4194
  }, [
4195
4195
  ft,
4196
- ot,
4196
+ st,
4197
4197
  pt,
4198
4198
  Et,
4199
4199
  s,
4200
4200
  at,
4201
4201
  _t
4202
4202
  ]), $t = K(() => {
4203
- et.columnSettingOpen && R(et.columnSettingOpen, "", !1);
4204
- }, [et.columnSettingOpen, R]), Kt = K(
4205
- (W) => {
4206
- et.columnSettings && R(et.columnSettings, "value", W);
4203
+ et.columnSettingOpen && M(et.columnSettingOpen, "", !1);
4204
+ }, [et.columnSettingOpen, M]), Kt = K(
4205
+ (H) => {
4206
+ et.columnSettings && M(et.columnSettings, "value", H);
4207
4207
  },
4208
- [et.columnSettings, R]
4208
+ [et.columnSettings, M]
4209
4209
  ), Yr = p(() => {
4210
4210
  if (!b && d)
4211
4211
  return {
4212
4212
  selectedRowKeys: P,
4213
- onChange: (W, nt, St) => {
4214
- B(W), et.selected && R(et.selected, "", W), h != null && h.trim() && t && V(t, Z(h.trim(), {
4215
- selectedRowKeys: W,
4213
+ onChange: (H, nt, St) => {
4214
+ j(H), et.selected && M(et.selected, "", H), h != null && h.trim() && t && q(t, F(h.trim(), {
4215
+ selectedRowKeys: H,
4216
4216
  selectedRows: nt,
4217
4217
  info: St
4218
4218
  }));
4219
4219
  }
4220
4220
  };
4221
- }, [d, b, P, et.selected, R, h, t, V]), ir = K((W) => {
4221
+ }, [d, b, P, et.selected, M, h, t, q]), ir = K((H) => {
4222
4222
  if (!b) return;
4223
- const St = [W[m]];
4224
- B(St), et.selected && R(et.selected, "", St), h != null && h.trim() && t && V(t, Z(h.trim(), { record: W, selectedRowKeys: St }));
4225
- }, [b, h, t, m, et.selected, R, V]), Jr = K((W) => b && P.includes(W[m]) ? "ant-table-row-selected" : "", [b, m, P]), Gr = K((W) => b ? { onClick: () => ir(W), style: { cursor: "pointer" } } : {}, [b, ir]), { style: Qr, className: Xr, ...ce } = U, Ct = p(() => {
4223
+ const St = [H[m]];
4224
+ j(St), et.selected && M(et.selected, "", St), h != null && h.trim() && t && q(t, F(h.trim(), { record: H, selectedRowKeys: St }));
4225
+ }, [b, h, t, m, et.selected, M, q]), Jr = K((H) => b && P.includes(H[m]) ? "ant-table-row-selected" : "", [b, m, P]), Gr = K((H) => b ? { onClick: () => ir(H), style: { cursor: "pointer" } } : {}, [b, ir]), { style: Qr, className: Xr, ...ce } = U, Ct = p(() => {
4226
4226
  if (x) return x;
4227
- let W = ce["scroll-x"], nt = ce["scroll-y"];
4228
- if (String(W) === "true" ? W = !0 : String(W) === "false" ? W = void 0 : W === "max-content" && (W = "max-content"), (nt === "" || nt === null || nt === void 0) && (nt = void 0), W !== void 0 || nt !== void 0) return { x: W, y: nt };
4229
- }, [x, ce["scroll-x"], ce["scroll-y"]]), Ee = Oa($, Ct == null ? void 0 : Ct.y, lt), Zr = p(() => {
4227
+ let H = ce["scroll-x"], nt = ce["scroll-y"];
4228
+ if (String(H) === "true" ? H = !0 : String(H) === "false" ? H = void 0 : H === "max-content" && (H = "max-content"), (nt === "" || nt === null || nt === void 0) && (nt = void 0), H !== void 0 || nt !== void 0) return { x: H, y: nt };
4229
+ }, [x, ce["scroll-x"], ce["scroll-y"]]), Ee = Oa(B, Ct == null ? void 0 : Ct.y, ct), Zr = p(() => {
4230
4230
  if (!Ct && !yt) return;
4231
- const W = yt ? ge ? !0 : "max-content" : Ct == null ? void 0 : Ct.x, nt = (Ct == null ? void 0 : Ct.y) === "100%" ? Ee : Ct == null ? void 0 : Ct.y;
4232
- return W !== void 0 || nt !== void 0 ? { x: W, y: nt } : Ct ? Ct.y === "100%" ? { x: Ct.x, y: Ee } : Ct : void 0;
4231
+ const H = yt ? ge ? !0 : "max-content" : Ct == null ? void 0 : Ct.x, nt = (Ct == null ? void 0 : Ct.y) === "100%" ? Ee : Ct == null ? void 0 : Ct.y;
4232
+ return H !== void 0 || nt !== void 0 ? { x: H, y: nt } : Ct ? Ct.y === "100%" ? { x: Ct.x, y: Ee } : Ct : void 0;
4233
4233
  }, [Ct, Ee, yt, ge]), { titleSlot: pe, summarySlot: ve, footerSlot: ar, otherChildren: Fr } = p(() => {
4234
- let W = null, nt = null, St = null;
4234
+ let H = null, nt = null, St = null;
4235
4235
  const gt = [];
4236
- return Lt.Children.forEach(E, (vt) => {
4237
- if (!Lt.isValidElement(vt)) {
4236
+ return zt.Children.forEach(E, (vt) => {
4237
+ if (!zt.isValidElement(vt)) {
4238
4238
  gt.push(vt);
4239
4239
  return;
4240
4240
  }
4241
4241
  const jt = vt.props["data-slot-type"];
4242
- jt === "title" ? W = vt : jt === "summary" ? nt = vt : jt === "footer" ? St = vt : gt.push(vt);
4243
- }), { titleSlot: W, summarySlot: nt, footerSlot: St, otherChildren: gt };
4242
+ jt === "title" ? H = vt : jt === "summary" ? nt = vt : jt === "footer" ? St = vt : gt.push(vt);
4243
+ }), { titleSlot: H, summarySlot: nt, footerSlot: St, otherChildren: gt };
4244
4244
  }, [E]), Ir = p(() => {
4245
4245
  if (!pe) {
4246
4246
  if (N) return N;
@@ -4276,7 +4276,7 @@ const Le = 420, wr = 440, Va = ({
4276
4276
  return /* @__PURE__ */ it(
4277
4277
  Nr,
4278
4278
  {
4279
- ref: $,
4279
+ ref: B,
4280
4280
  vertical: !0,
4281
4281
  style: { width: "100%", height: "100%", ...Qr },
4282
4282
  className: Xr,
@@ -4284,10 +4284,10 @@ const Le = 420, wr = 440, Va = ({
4284
4284
  pe && /* @__PURE__ */ w("div", { "data-table-slot": "title", children: pe }),
4285
4285
  /* @__PURE__ */ it("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
4286
4286
  b && (() => {
4287
- const W = (L == null ? void 0 : L.rowSelectedBg) || "#e6f4ff", nt = (L == null ? void 0 : L.rowSelectedHoverBg) || (L == null ? void 0 : L.rowSelectedBg) || "#bae0ff", St = L == null ? void 0 : L.rowSelectedColor, gt = (L == null ? void 0 : L.rowSelectedLinkColor) ?? St, vt = (L == null ? void 0 : L.rowSelectedLinkHoverColor) ?? gt;
4287
+ const H = (z == null ? void 0 : z.rowSelectedBg) || "#e6f4ff", nt = (z == null ? void 0 : z.rowSelectedHoverBg) || (z == null ? void 0 : z.rowSelectedBg) || "#bae0ff", St = z == null ? void 0 : z.rowSelectedColor, gt = (z == null ? void 0 : z.rowSelectedLinkColor) ?? St, vt = (z == null ? void 0 : z.rowSelectedLinkHoverColor) ?? gt;
4288
4288
  return /* @__PURE__ */ w("style", { children: `
4289
4289
  .ant-table-row-selected > td {
4290
- background: ${W} !important;
4290
+ background: ${H} !important;
4291
4291
  ${St ? `color: ${St};` : ""}
4292
4292
  }
4293
4293
  .ant-table-row-selected:hover > td {
@@ -4305,8 +4305,8 @@ const Le = 420, wr = 440, Va = ({
4305
4305
  yt && /* @__PURE__ */ w(
4306
4306
  Va,
4307
4307
  {
4308
- open: ht,
4309
- position: H,
4308
+ open: mt,
4309
+ position: V,
4310
4310
  rowIndexVisible: pt,
4311
4311
  columnItems: Et,
4312
4312
  defaultRowIndexVisible: Tt,
@@ -4341,19 +4341,19 @@ const Le = 420, wr = 440, Va = ({
4341
4341
  clickAction: y,
4342
4342
  ...l
4343
4343
  }) => {
4344
- const v = k((z) => z.getDataSet), u = k((z) => z.getProps), T = p(
4344
+ const v = k((L) => L.getDataSet), u = k((L) => L.getProps), T = p(
4345
4345
  () => d === "selectedCount" && o && !a ? o : a,
4346
4346
  [d, o, a]
4347
4347
  ), A = p(
4348
4348
  () => d === "selectedCount" ? "selectedCount" : o,
4349
4349
  [d, o]
4350
4350
  ), x = p(
4351
- () => I(t, T),
4351
+ () => tt(t, T),
4352
4352
  [t, T]
4353
- ), S = k((z) => {
4353
+ ), S = k((L) => {
4354
4354
  if (!x) return;
4355
- const R = Te(x).baseName;
4356
- return z.dataSets[R];
4355
+ const M = Te(x).baseName;
4356
+ return L.dataSets[M];
4357
4357
  }), { options: D } = ye(d), g = p(() => t && e ? u(t, e) : null, [t, e, u]), C = p(() => {
4358
4358
  if (x && A)
4359
4359
  return v(x, A);
@@ -4366,31 +4366,31 @@ const Le = 420, wr = 440, Va = ({
4366
4366
  return {};
4367
4367
  }
4368
4368
  return h;
4369
- }, [h]), O = (z) => z == null || z === "" || typeof z == "string" && z.trim() === "", M = p(() => r ? i : C != null && C !== "" ? O(C) && m ? i : C : (g == null ? void 0 : g.content) !== void 0 ? g.content : i, [r, C, g == null ? void 0 : g.content, i, m]), E = p(() => {
4370
- if (d && D.length > 0 && M !== void 0 && M !== null) {
4371
- const z = re(D, M);
4372
- return (z == null ? void 0 : z.label) ?? M;
4369
+ }, [h]), O = (L) => L == null || L === "" || typeof L == "string" && L.trim() === "", $ = p(() => r ? i : C != null && C !== "" ? O(C) && m ? i : C : (g == null ? void 0 : g.content) !== void 0 ? g.content : i, [r, C, g == null ? void 0 : g.content, i, m]), E = p(() => {
4370
+ if (d && D.length > 0 && $ !== void 0 && $ !== null) {
4371
+ const L = re(D, $);
4372
+ return (L == null ? void 0 : L.label) ?? $;
4373
4373
  }
4374
- return M;
4375
- }, [d, D, M]), _ = p(() => {
4374
+ return $;
4375
+ }, [d, D, $]), _ = p(() => {
4376
4376
  if (r)
4377
4377
  return E;
4378
- const z = (g == null ? void 0 : g.formatType) || b;
4379
- return z && E !== void 0 && E !== null ? da(E, z, N) : E;
4380
- }, [r, E, b, N, g == null ? void 0 : g.formatType]), j = p(() => {
4381
- const z = { ...l };
4382
- return g && typeof g == "object" && Object.keys(g).forEach((R) => {
4383
- !["content", "formatType", "formatValue", "clickAction"].includes(R) && g[R] !== void 0 && g[R] !== null && (z[R] = g[R]);
4384
- }), z;
4385
- }, [l, g]), q = (g == null ? void 0 : g.color) ?? s, U = _e(q), V = p(() => {
4386
- const z = { width: "100%" }, R = (g == null ? void 0 : g.fontSize) ?? c;
4387
- if (R) {
4388
- const P = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
4389
- z.fontSize = P;
4390
- }
4391
- return U && (z.color = U), z;
4378
+ const L = (g == null ? void 0 : g.formatType) || b;
4379
+ return L && E !== void 0 && E !== null ? da(E, L, N) : E;
4380
+ }, [r, E, b, N, g == null ? void 0 : g.formatType]), R = p(() => {
4381
+ const L = { ...l };
4382
+ return g && typeof g == "object" && Object.keys(g).forEach((M) => {
4383
+ !["content", "formatType", "formatValue", "clickAction"].includes(M) && g[M] !== void 0 && g[M] !== null && (L[M] = g[M]);
4384
+ }), L;
4385
+ }, [l, g]), W = (g == null ? void 0 : g.color) ?? s, U = _e(W), q = p(() => {
4386
+ const L = { width: "100%" }, M = (g == null ? void 0 : g.fontSize) ?? c;
4387
+ if (M) {
4388
+ const P = M && !String(M).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${M}px` : M;
4389
+ L.fontSize = P;
4390
+ }
4391
+ return U && (L.color = U), L;
4392
4392
  }, [c, U, g == null ? void 0 : g.fontSize]);
4393
- return /* @__PURE__ */ w(qa, { ...j, style: { ...V, ...f, ...j.style }, children: _ != null && _ !== "" ? String(_) : n });
4393
+ return /* @__PURE__ */ w(qa, { ...R, style: { ...q, ...f, ...R.style }, children: _ != null && _ !== "" ? String(_) : n });
4394
4394
  }, { Title: Wa } = tr, Sc = ({
4395
4395
  id: e,
4396
4396
  sessionId: t,
@@ -4405,7 +4405,7 @@ const Le = 420, wr = 440, Va = ({
4405
4405
  ...b
4406
4406
  }) => {
4407
4407
  const h = k((S) => S.getDataSet), m = k((S) => S.getProps), f = p(
4408
- () => I(t, a),
4408
+ () => tt(t, a),
4409
4409
  [t, a]
4410
4410
  ), y = p(() => t && e ? m(t, e) : null, [t, e, m]), l = p(() => {
4411
4411
  if (f && o)
@@ -4433,7 +4433,7 @@ const Le = 420, wr = 440, Va = ({
4433
4433
  ...d
4434
4434
  }) => {
4435
4435
  const b = k((x) => x.getDataSet), h = k((x) => x.getProps), m = p(
4436
- () => I(t, a),
4436
+ () => tt(t, a),
4437
4437
  [t, a]
4438
4438
  ), f = p(() => t && e ? h(t, e) : null, [t, e, h]), y = p(() => {
4439
4439
  if (m && o)
@@ -4474,7 +4474,7 @@ const Le = 420, wr = 440, Va = ({
4474
4474
  ...f
4475
4475
  }) => {
4476
4476
  const y = k((N) => N.addCommand), l = k((N) => N.getDataSet), v = k((N) => N.setDataSet), u = p(
4477
- () => I(t, i),
4477
+ () => tt(t, i),
4478
4478
  [t, i]
4479
4479
  ), T = p(() => Ua(a), [a]), A = p(() => o && o.length > 0 ? r ? o.map((N) => ({ ...N, forceRender: !0 })) : o : T.length > 0 ? T.map((N, O) => ({
4480
4480
  key: N.key,
@@ -4485,7 +4485,7 @@ const Le = 420, wr = 440, Va = ({
4485
4485
  children: h ? h(N.key, O) : null
4486
4486
  })) : [], [o, T, h, r]), x = p(() => {
4487
4487
  if (u && n) return l(u, n);
4488
- }, [u, n, l]), [S, D] = Lt.useState(void 0), g = p(() => {
4488
+ }, [u, n, l]), [S, D] = zt.useState(void 0), g = p(() => {
4489
4489
  if (r && S)
4490
4490
  return S;
4491
4491
  const N = x ?? d ?? b;
@@ -4499,7 +4499,7 @@ const Le = 420, wr = 440, Va = ({
4499
4499
  s(N);
4500
4500
  return;
4501
4501
  }
4502
- u && n && v(u, n, N), c && t && y(t, Z(c, N));
4502
+ u && n && v(u, n, N), c && t && y(t, F(c, N));
4503
4503
  }, [r, s, u, n, v, c, t, y]);
4504
4504
  return /* @__PURE__ */ w(
4505
4505
  yn,
@@ -4540,82 +4540,82 @@ const Le = 420, wr = 440, Va = ({
4540
4540
  onDrop: C,
4541
4541
  onRightClick: N,
4542
4542
  onLoad: O,
4543
- treeData: M,
4543
+ treeData: $,
4544
4544
  styles: E,
4545
4545
  classNames: _,
4546
- token: j,
4547
- ...q
4546
+ token: R,
4547
+ ...W
4548
4548
  }) => {
4549
- const U = k((G) => G.addCommand), V = k((G) => G.setDataSet), z = p(
4550
- () => I(t, i),
4549
+ const U = k((G) => G.addCommand), q = k((G) => G.setDataSet), L = p(
4550
+ () => tt(t, i),
4551
4551
  [t, i]
4552
- ), R = p(
4553
- () => i ? I(t, `${i}_selected`) : void 0,
4552
+ ), M = p(
4553
+ () => i ? tt(t, `${i}_selected`) : void 0,
4554
4554
  [t, i]
4555
4555
  ), P = p(
4556
- () => i ? I(t, `${i}_checked`) : void 0,
4556
+ () => i ? tt(t, `${i}_checked`) : void 0,
4557
4557
  [t, i]
4558
- ), B = p(
4559
- () => i ? I(t, `${i}_expanded`) : void 0,
4558
+ ), j = p(
4559
+ () => i ? tt(t, `${i}_expanded`) : void 0,
4560
4560
  [t, i]
4561
- ), $ = k((G) => {
4562
- if (!z) return;
4561
+ ), B = k((G) => {
4562
+ if (!L) return;
4563
4563
  if (n)
4564
- return G.getDataSet(z, n);
4565
- const pt = G.dataSets[z];
4564
+ return G.getDataSet(L, n);
4565
+ const pt = G.dataSets[L];
4566
4566
  if (!pt) return;
4567
4567
  if (Array.isArray(pt)) return pt;
4568
4568
  const Et = pt.value;
4569
4569
  return Array.isArray(Et) ? Et : void 0;
4570
- }), H = k(
4571
- (G) => R ? G.getDataSet(R, "") : void 0
4570
+ }), V = k(
4571
+ (G) => M ? G.getDataSet(M, "") : void 0
4572
4572
  ), X = k(
4573
4573
  (G) => P ? G.getDataSet(P, "") : void 0
4574
4574
  ), rt = k(
4575
- (G) => B ? G.getDataSet(B, "") : void 0
4576
- ), ft = p(() => r ? $ ?? M ?? [] : z ? $ ?? [] : M ?? [], [r, z, $, M]), ot = H, et = X, ht = rt, ct = K(
4575
+ (G) => j ? G.getDataSet(j, "") : void 0
4576
+ ), ft = p(() => r ? B ?? $ ?? [] : L ? B ?? [] : $ ?? [], [r, L, B, $]), st = V, et = X, mt = rt, ot = K(
4577
4577
  (G, pt) => {
4578
4578
  if (v) {
4579
4579
  v(G, pt);
4580
4580
  return;
4581
4581
  }
4582
- R && V(R, "", G), a && t && U(t, Z(a, { selectedKeys: G }));
4582
+ M && q(M, "", G), a && t && U(t, F(a, { selectedKeys: G }));
4583
4583
  },
4584
- [v, R, t, V, a, U]
4585
- ), tt = K(
4584
+ [v, M, t, q, a, U]
4585
+ ), Z = K(
4586
4586
  (G, pt) => {
4587
4587
  if (u) {
4588
4588
  u(G, pt);
4589
4589
  return;
4590
4590
  }
4591
- P && V(P, "", G), o && t && U(t, Z(o, { checkedKeys: G }));
4591
+ P && q(P, "", G), o && t && U(t, F(o, { checkedKeys: G }));
4592
4592
  },
4593
- [u, P, t, V, o, U]
4593
+ [u, P, t, q, o, U]
4594
4594
  ), J = K(
4595
4595
  (G, pt) => {
4596
4596
  if (T) {
4597
4597
  T(G, pt);
4598
4598
  return;
4599
4599
  }
4600
- B && V(B, "", G), c && t && U(t, Z(c, { expandedKeys: G, expanded: pt.expanded }));
4600
+ j && q(j, "", G), c && t && U(t, F(c, { expandedKeys: G, expanded: pt.expanded }));
4601
4601
  },
4602
- [T, B, t, V, c, U]
4602
+ [T, j, t, q, c, U]
4603
4603
  ), dt = K(
4604
4604
  (G) => {
4605
4605
  if (A) {
4606
4606
  A(G);
4607
4607
  return;
4608
4608
  }
4609
- s && t && U(t, Z(s, G));
4609
+ s && t && U(t, F(s, G));
4610
4610
  },
4611
4611
  [A, s, t, U]
4612
- ), L = K(
4612
+ ), z = K(
4613
4613
  (G) => {
4614
4614
  if (x) {
4615
4615
  x(G);
4616
4616
  return;
4617
4617
  }
4618
- d && t && U(t, Z(d, G));
4618
+ d && t && U(t, F(d, G));
4619
4619
  },
4620
4620
  [x, d, t, U]
4621
4621
  ), Y = K(
@@ -4624,7 +4624,7 @@ const Le = 420, wr = 440, Va = ({
4624
4624
  S(G);
4625
4625
  return;
4626
4626
  }
4627
- b && t && U(t, Z(b, G));
4627
+ b && t && U(t, F(b, G));
4628
4628
  },
4629
4629
  [S, b, t, U]
4630
4630
  ), ut = K(
@@ -4633,16 +4633,16 @@ const Le = 420, wr = 440, Va = ({
4633
4633
  D(G);
4634
4634
  return;
4635
4635
  }
4636
- h && t && U(t, Z(h, G));
4636
+ h && t && U(t, F(h, G));
4637
4637
  },
4638
4638
  [D, h, t, U]
4639
- ), F = K(
4639
+ ), I = K(
4640
4640
  (G) => {
4641
4641
  if (g) {
4642
4642
  g(G);
4643
4643
  return;
4644
4644
  }
4645
- m && t && U(t, Z(m, G));
4645
+ m && t && U(t, F(m, G));
4646
4646
  },
4647
4647
  [g, m, t, U]
4648
4648
  ), at = K(
@@ -4651,16 +4651,16 @@ const Le = 420, wr = 440, Va = ({
4651
4651
  C(G);
4652
4652
  return;
4653
4653
  }
4654
- f && t && U(t, Z(f, G));
4654
+ f && t && U(t, F(f, G));
4655
4655
  },
4656
4656
  [C, f, t, U]
4657
- ), lt = K(
4657
+ ), ct = K(
4658
4658
  (G) => {
4659
4659
  if (N) {
4660
4660
  N(G);
4661
4661
  return;
4662
4662
  }
4663
- y && t && U(t, Z(y, G));
4663
+ y && t && U(t, F(y, G));
4664
4664
  },
4665
4665
  [N, y, t, U]
4666
4666
  ), wt = K(
@@ -4669,37 +4669,37 @@ const Le = 420, wr = 440, Va = ({
4669
4669
  O(G, pt);
4670
4670
  return;
4671
4671
  }
4672
- l && t && U(t, Z(l, { loadedKeys: G, ...pt }));
4672
+ l && t && U(t, F(l, { loadedKeys: G, ...pt }));
4673
4673
  },
4674
4674
  [O, l, t, U]
4675
4675
  ), _t = p(() => {
4676
- if (!j) return;
4676
+ if (!R) return;
4677
4677
  const G = {};
4678
- return Object.entries(j).forEach(([pt, Et]) => {
4678
+ return Object.entries(R).forEach(([pt, Et]) => {
4679
4679
  Et !== "" && Et !== void 0 && Et !== null && (G[pt] = Et);
4680
4680
  }), Object.keys(G).length > 0 ? G : void 0;
4681
- }, [j]), xt = p(() => {
4681
+ }, [R]), xt = p(() => {
4682
4682
  const G = {};
4683
4683
  return r && (G.motion = !1), _t && (G.components = { Tree: _t }), Object.keys(G).length > 0 ? G : void 0;
4684
4684
  }, [r, _t]), Pt = /* @__PURE__ */ w(
4685
4685
  gn,
4686
4686
  {
4687
- ...q,
4687
+ ...W,
4688
4688
  ...r ? { motion: !1 } : {},
4689
4689
  treeData: ft,
4690
- ...R != null ? { selectedKeys: ot ?? [] } : {},
4690
+ ...M != null ? { selectedKeys: st ?? [] } : {},
4691
4691
  ...P != null ? { checkedKeys: et ?? [] } : {},
4692
- ...B != null ? { expandedKeys: ht ?? [] } : {},
4693
- onSelect: ct,
4694
- onCheck: tt,
4692
+ ...j != null ? { expandedKeys: mt ?? [] } : {},
4693
+ onSelect: ot,
4694
+ onCheck: Z,
4695
4695
  onExpand: J,
4696
4696
  onDragEnd: dt,
4697
- onDragEnter: L,
4697
+ onDragEnter: z,
4698
4698
  onDragLeave: Y,
4699
4699
  onDragOver: ut,
4700
- onDragStart: F,
4700
+ onDragStart: I,
4701
4701
  onDrop: at,
4702
- onRightClick: lt,
4702
+ onRightClick: ct,
4703
4703
  onLoad: wt,
4704
4704
  styles: E,
4705
4705
  classNames: _
@@ -4720,7 +4720,7 @@ const Le = 420, wr = 440, Va = ({
4720
4720
  ...d
4721
4721
  }) => {
4722
4722
  const b = k((T) => T.getDataSet), h = k((T) => T.getProps), m = p(
4723
- () => I(t, a),
4723
+ () => tt(t, a),
4724
4724
  [t, a]
4725
4725
  ), f = p(() => t && e ? h(t, e) : null, [t, e, h]), y = p(() => {
4726
4726
  if (m && o) return b(m, o);
@@ -4779,17 +4779,17 @@ const Le = 420, wr = 440, Va = ({
4779
4779
  token: y,
4780
4780
  ...l
4781
4781
  }) => {
4782
- const v = k((j) => j.addCommand), u = k((j) => j.getDataSet), T = k((j) => j.setDataSet), A = p(
4783
- () => I(t, i),
4782
+ const v = k((R) => R.addCommand), u = k((R) => R.getDataSet), T = k((R) => R.setDataSet), A = p(
4783
+ () => tt(t, i),
4784
4784
  [t, i]
4785
4785
  ), x = p(() => {
4786
4786
  if (A && n) return u(A, n);
4787
- }, [A, n, u]), S = p(() => x ?? c ?? 0, [x, c]), D = p(() => b ?? d, [b, d]), g = p(() => m ?? h, [m, h]), C = p(() => Ve(s, []), [s]), N = p(() => Ve(f, {}), [f]), O = p(() => Ve(y, {}), [y]), M = K((j) => {
4787
+ }, [A, n, u]), S = p(() => x ?? c ?? 0, [x, c]), D = p(() => b ?? d, [b, d]), g = p(() => m ?? h, [m, h]), C = p(() => Ve(s, []), [s]), N = p(() => Ve(f, {}), [f]), O = p(() => Ve(y, {}), [y]), $ = K((R) => {
4788
4788
  if (o) {
4789
- o(j);
4789
+ o(R);
4790
4790
  return;
4791
4791
  }
4792
- A && n && T(A, n, j), a && t && v(t, Z(a, j));
4792
+ A && n && T(A, n, R), a && t && v(t, F(a, R));
4793
4793
  }, [o, A, n, T, a, t, v]), E = Object.keys(O).length > 0, _ = /* @__PURE__ */ w(
4794
4794
  vn,
4795
4795
  {
@@ -4799,7 +4799,7 @@ const Le = 420, wr = 440, Va = ({
4799
4799
  styles: N,
4800
4800
  orientation: D,
4801
4801
  titlePlacement: g,
4802
- onChange: M
4802
+ onChange: $
4803
4803
  }
4804
4804
  );
4805
4805
  return E ? /* @__PURE__ */ w(Mt, { theme: { components: { Steps: O } }, children: _ }) : _;
@@ -4849,7 +4849,7 @@ const Le = 420, wr = 440, Va = ({
4849
4849
  ...m
4850
4850
  }) => {
4851
4851
  const f = k((x) => x.addCommand), y = k((x) => x.setDataSet), l = p(
4852
- () => I(t, i),
4852
+ () => tt(t, i),
4853
4853
  [t, i]
4854
4854
  ), v = p(() => {
4855
4855
  if (o) return o;
@@ -4860,7 +4860,7 @@ const Le = 420, wr = 440, Va = ({
4860
4860
  d(x);
4861
4861
  return;
4862
4862
  }
4863
- l && n && y(l, n, x), s && t && f(t, Z(s, x));
4863
+ l && n && y(l, n, x), s && t && f(t, F(s, x));
4864
4864
  }, [d, l, n, y, s, t, f]), A = p(() => h || (u.length > 0 ? u.map((x, S) => {
4865
4865
  const D = b ? b(x.key, S) : null;
4866
4866
  return /* @__PURE__ */ w("div", { "data-slide-key": x.key, children: D || /* @__PURE__ */ w("div", { style: {
@@ -4899,7 +4899,7 @@ const Ga = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
4899
4899
  ...s
4900
4900
  }) => {
4901
4901
  const d = k((u) => u.getDataSet), b = k((u) => u.getProps), h = p(() => t && e ? b(t, e) : null, [t, e, b]), m = p(
4902
- () => I(t, i),
4902
+ () => tt(t, i),
4903
4903
  [t, i]
4904
4904
  ), f = p(() => {
4905
4905
  if (m && n)
@@ -4942,7 +4942,7 @@ const Ec = ({
4942
4942
  ...c
4943
4943
  }) => {
4944
4944
  const s = k((v) => v.getDataSet), d = k((v) => v.getProps), b = p(
4945
- () => I(t, n),
4945
+ () => tt(t, n),
4946
4946
  [t, n]
4947
4947
  ), h = p(() => t && e ? d(t, e) : null, [t, e, d]), m = p(() => {
4948
4948
  if (b && a) return s(b, a);
@@ -4979,7 +4979,7 @@ const Ec = ({
4979
4979
  ...b
4980
4980
  }) => {
4981
4981
  const h = k((D) => D.getDataSet), m = k((D) => D.getProps), f = p(
4982
- () => I(t, n),
4982
+ () => tt(t, n),
4983
4983
  [t, n]
4984
4984
  ), y = p(() => t && e ? m(t, e) : null, [t, e, m]), l = p(() => {
4985
4985
  if (f && a) return h(f, a);
@@ -5014,8 +5014,8 @@ const Ec = ({
5014
5014
  "textFontSizeSM",
5015
5015
  "groupOverlapping"
5016
5016
  ].includes(N)) {
5017
- const M = typeof O == "string" ? parseInt(O, 10) : O;
5018
- isNaN(M) || (C[N] = M);
5017
+ const $ = typeof O == "string" ? parseInt(O, 10) : O;
5018
+ isNaN($) || (C[N] = $);
5019
5019
  } else
5020
5020
  C[N] = O;
5021
5021
  }), Object.keys(C).length > 0 ? C : void 0;
@@ -5059,7 +5059,7 @@ const Ec = ({
5059
5059
  ...f
5060
5060
  }) => {
5061
5061
  const y = k((E) => E.getDataSet), l = k((E) => E.getProps), v = p(
5062
- () => I(t, a),
5062
+ () => tt(t, a),
5063
5063
  [t, a]
5064
5064
  ), { options: u } = ye(c), T = p(() => {
5065
5065
  if (d) {
@@ -5088,8 +5088,8 @@ const Ec = ({
5088
5088
  return A && typeof A == "object" && Object.keys(A).forEach((_) => {
5089
5089
  !["content", "color"].includes(_) && A[_] !== void 0 && A[_] !== null && (E[_] = A[_]);
5090
5090
  }), E;
5091
- }, [f, A]), N = (A == null ? void 0 : A.color) ?? b, M = _e(N) || g;
5092
- return /* @__PURE__ */ w(kr, { ...C, color: M, children: D || i });
5091
+ }, [f, A]), N = (A == null ? void 0 : A.color) ?? b, $ = _e(N) || g;
5092
+ return /* @__PURE__ */ w(kr, { ...C, color: $, children: D || i });
5093
5093
  }, Rc = ({
5094
5094
  id: e,
5095
5095
  sessionId: t,
@@ -5106,7 +5106,7 @@ const Ec = ({
5106
5106
  ...m
5107
5107
  }) => {
5108
5108
  const f = k((C) => C.addCommand), y = k((C) => C.setDataSet), l = p(
5109
- () => I(t, i),
5109
+ () => tt(t, i),
5110
5110
  [t, i]
5111
5111
  ), v = n ?? (l ? "" : void 0), u = p(() => ({}), []), T = k((C) => {
5112
5112
  if (!l) return u;
@@ -5117,13 +5117,13 @@ const Ec = ({
5117
5117
  c(C, N);
5118
5118
  return;
5119
5119
  }
5120
- l && y(l, v ?? "", { current: C, pageSize: N, total: S }), a && t && f(t, Z(a, { page: C, pageSize: N }));
5120
+ l && y(l, v ?? "", { current: C, pageSize: N, total: S }), a && t && f(t, F(a, { page: C, pageSize: N }));
5121
5121
  }, [c, l, v, y, S, a, t, f]), g = K((C, N) => {
5122
5122
  if (s) {
5123
5123
  s(C, N);
5124
5124
  return;
5125
5125
  }
5126
- l && y(l, v ?? "", { current: C, pageSize: N, total: S }), o && t && f(t, Z(o, { current: C, pageSize: N }));
5126
+ l && y(l, v ?? "", { current: C, pageSize: N, total: S }), o && t && f(t, F(o, { current: C, pageSize: N }));
5127
5127
  }, [s, l, v, y, S, o, t, f]);
5128
5128
  return /* @__PURE__ */ w(
5129
5129
  Or,
@@ -5148,13 +5148,13 @@ const Ec = ({
5148
5148
  children: n,
5149
5149
  ...a
5150
5150
  }) => /* @__PURE__ */ w(Sn, { ...a, items: i, children: n }), De = (e) => Object.entries(e).map(([t, r]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${r}`).join("; "), Fa = ({ mode: e, arrowStyle: t, arrowIconPrev: r, arrowIconNext: i, children: n }) => {
5151
- const a = Vt(null), o = Vt(null), [c, s] = mt(0), [d, b] = mt(!1), [h, m] = mt(0), [f, y] = mt(0), l = e === "horizontal";
5151
+ const a = Vt(null), o = Vt(null), [c, s] = ht(0), [d, b] = ht(!1), [h, m] = ht(0), [f, y] = ht(0), l = e === "horizontal";
5152
5152
  Ot(() => {
5153
5153
  const D = () => {
5154
5154
  if (!a.current || !o.current) return;
5155
5155
  const C = a.current, N = o.current;
5156
- let O = 0, M = 0, E = !1;
5157
- l ? (O = C.clientWidth, M = N.scrollWidth, E = M > O) : (O = C.clientHeight, M = N.scrollHeight, E = M > O), y(O), m(M), b(E), E || s(0);
5156
+ let O = 0, $ = 0, E = !1;
5157
+ l ? (O = C.clientWidth, $ = N.scrollWidth, E = $ > O) : (O = C.clientHeight, $ = N.scrollHeight, E = $ > O), y(O), m($), b(E), E || s(0);
5158
5158
  }, g = new ResizeObserver(D);
5159
5159
  return a.current && g.observe(a.current), o.current && g.observe(o.current), D(), () => g.disconnect();
5160
5160
  }, [l]);
@@ -5164,10 +5164,10 @@ const Ec = ({
5164
5164
  const D = l ? ((g = a.current) == null ? void 0 : g.clientWidth) ?? 200 : ((C = a.current) == null ? void 0 : C.clientHeight) ?? 200;
5165
5165
  s((N) => Math.max(0, N - D));
5166
5166
  }, [l, v]), A = K(() => {
5167
- var C, N, O, M, E, _;
5167
+ var C, N, O, $, E, _;
5168
5168
  if (u) return;
5169
- const D = l ? ((C = a.current) == null ? void 0 : C.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, g = l ? (((O = o.current) == null ? void 0 : O.scrollWidth) ?? 0) - (((M = a.current) == null ? void 0 : M.clientWidth) ?? 0) : (((E = o.current) == null ? void 0 : E.scrollHeight) ?? 0) - (((_ = a.current) == null ? void 0 : _.clientHeight) ?? 0);
5170
- s((j) => Math.min(g, j + D));
5169
+ const D = l ? ((C = a.current) == null ? void 0 : C.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, g = l ? (((O = o.current) == null ? void 0 : O.scrollWidth) ?? 0) - ((($ = a.current) == null ? void 0 : $.clientWidth) ?? 0) : (((E = o.current) == null ? void 0 : E.scrollHeight) ?? 0) - (((_ = a.current) == null ? void 0 : _.clientHeight) ?? 0);
5170
+ s((R) => Math.min(g, R + D));
5171
5171
  }, [l, u]), x = r || (l ? /* @__PURE__ */ w(Mr, {}) : /* @__PURE__ */ w(Pn, {})), S = i || (l ? /* @__PURE__ */ w(Rr, {}) : /* @__PURE__ */ w(jr, {}));
5172
5172
  return /* @__PURE__ */ it(
5173
5173
  "div",
@@ -5287,21 +5287,21 @@ const Ec = ({
5287
5287
  mode: C,
5288
5288
  inlineCollapsed: N,
5289
5289
  remoteUrl: O,
5290
- overflowStrategy: M = "default",
5290
+ overflowStrategy: $ = "default",
5291
5291
  paginationArrowStyle: E,
5292
5292
  paginationArrowIconPrev: _,
5293
- paginationArrowIconNext: j,
5294
- expandTrigger: q,
5293
+ paginationArrowIconNext: R,
5294
+ expandTrigger: W,
5295
5295
  // 仅设计器/业务用,不传给 DOM,避免 React 警告
5296
5296
  ...U
5297
5297
  }) => {
5298
- const V = k((Q) => Q.addCommand), z = k((Q) => Q.setDataSet), R = p(
5299
- () => I(t, i),
5298
+ const q = k((Q) => Q.addCommand), L = k((Q) => Q.setDataSet), M = p(
5299
+ () => tt(t, i),
5300
5300
  [t, i]
5301
5301
  ), P = k(
5302
5302
  (Q) => {
5303
- if (R)
5304
- return n ? Q.getDataSet(R, n) : Q.dataSets[R];
5303
+ if (M)
5304
+ return n ? Q.getDataSet(M, n) : Q.dataSets[M];
5305
5305
  }
5306
5306
  // 使用 shallow 比较确保只有通过内容变更才触发更新
5307
5307
  // 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
@@ -5309,22 +5309,22 @@ const Ec = ({
5309
5309
  // 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
5310
5310
  // 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
5311
5311
  // 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
5312
- ), B = p(() => ({}), []), $ = P ?? B, H = p(
5313
- () => ($ == null ? void 0 : $.items) ?? (Array.isArray($) ? $ : void 0) ?? (Array.isArray($ == null ? void 0 : $.value) ? $.value : void 0),
5314
- [$]
5315
- ), X = p(() => r ? H ?? f ?? [] : R ? H ?? [] : f ?? [], [r, R, H, f]), rt = p(
5316
- () => $.selectedKeys ?? y,
5317
- [$.selectedKeys, y]
5312
+ ), j = p(() => ({}), []), B = P ?? j, V = p(
5313
+ () => (B == null ? void 0 : B.items) ?? (Array.isArray(B) ? B : void 0) ?? (Array.isArray(B == null ? void 0 : B.value) ? B.value : void 0),
5314
+ [B]
5315
+ ), X = p(() => r ? V ?? f ?? [] : M ? V ?? [] : f ?? [], [r, M, V, f]), rt = p(
5316
+ () => B.selectedKeys ?? y,
5317
+ [B.selectedKeys, y]
5318
5318
  ), ft = p(
5319
- () => $.openKeys ?? (D && g ? void 0 : l),
5320
- [$.openKeys, D, g, l]
5321
- ), ot = p(
5322
- () => I(t, D),
5319
+ () => B.openKeys ?? (D && g ? void 0 : l),
5320
+ [B.openKeys, D, g, l]
5321
+ ), st = p(
5322
+ () => tt(t, D),
5323
5323
  [t, D]
5324
5324
  ), et = k((Q) => {
5325
- if (!$.openKeys && ot && g)
5326
- return Q.getDataSet(ot, g);
5327
- }), ht = p(() => {
5325
+ if (!B.openKeys && st && g)
5326
+ return Q.getDataSet(st, g);
5327
+ }), mt = p(() => {
5328
5328
  const Q = (yt) => Array.isArray(yt) ? yt.map((kt) => {
5329
5329
  const $t = { ...kt };
5330
5330
  if ($t.icon && typeof $t.icon == "string") {
@@ -5334,10 +5334,10 @@ const Ec = ({
5334
5334
  return $t.children && $t.children.length > 0 && ($t.children = Q($t.children)), $t;
5335
5335
  }) : [];
5336
5336
  return Q(X || []);
5337
- }, [X]), ct = p(
5337
+ }, [X]), ot = p(
5338
5338
  () => rt,
5339
5339
  [rt]
5340
- ), tt = p(
5340
+ ), Z = p(
5341
5341
  () => ft ?? et,
5342
5342
  [ft, et]
5343
5343
  ), J = K(
@@ -5346,66 +5346,66 @@ const Ec = ({
5346
5346
  d(Q);
5347
5347
  return;
5348
5348
  }
5349
- a && t && V(
5349
+ a && t && q(
5350
5350
  t,
5351
- Z(a, { key: Q.key, keyPath: Q.keyPath })
5351
+ F(a, { key: Q.key, keyPath: Q.keyPath })
5352
5352
  );
5353
5353
  },
5354
- [d, a, t, V]
5354
+ [d, a, t, q]
5355
5355
  ), dt = K(
5356
5356
  (Q) => {
5357
5357
  if (b) {
5358
5358
  b(Q);
5359
5359
  return;
5360
5360
  }
5361
- if (R)
5361
+ if (M)
5362
5362
  if (n) {
5363
- const yt = k.getState().getDataSet(R, n) || {};
5364
- z(R, n, { ...yt, selectedKeys: Q.selectedKeys });
5363
+ const yt = k.getState().getDataSet(M, n) || {};
5364
+ L(M, n, { ...yt, selectedKeys: Q.selectedKeys });
5365
5365
  } else
5366
- z(R, "selectedKeys", Q.selectedKeys);
5367
- o && t && V(
5366
+ L(M, "selectedKeys", Q.selectedKeys);
5367
+ o && t && q(
5368
5368
  t,
5369
- Z(o, { selectedKeys: Q.selectedKeys })
5369
+ F(o, { selectedKeys: Q.selectedKeys })
5370
5370
  );
5371
5371
  },
5372
5372
  [
5373
5373
  b,
5374
- R,
5374
+ M,
5375
5375
  n,
5376
- z,
5376
+ L,
5377
5377
  o,
5378
5378
  t,
5379
- V
5379
+ q
5380
5380
  ]
5381
- ), L = K(
5381
+ ), z = K(
5382
5382
  (Q) => {
5383
5383
  if (h) {
5384
5384
  h(Q);
5385
5385
  return;
5386
5386
  }
5387
- if (R)
5387
+ if (M)
5388
5388
  if (n) {
5389
- const yt = k.getState().getDataSet(R, n) || {};
5390
- z(R, n, { ...yt, openKeys: Q });
5389
+ const yt = k.getState().getDataSet(M, n) || {};
5390
+ L(M, n, { ...yt, openKeys: Q });
5391
5391
  } else
5392
- z(R, "openKeys", Q);
5393
- else ot && g && z(ot, g, Q);
5394
- c && t && V(
5392
+ L(M, "openKeys", Q);
5393
+ else st && g && L(st, g, Q);
5394
+ c && t && q(
5395
5395
  t,
5396
- Z(c, { openKeys: Q })
5396
+ F(c, { openKeys: Q })
5397
5397
  );
5398
5398
  },
5399
5399
  [
5400
5400
  h,
5401
- R,
5401
+ M,
5402
5402
  n,
5403
- ot,
5403
+ st,
5404
5404
  g,
5405
- z,
5405
+ L,
5406
5406
  c,
5407
5407
  t,
5408
- V
5408
+ q
5409
5409
  ]
5410
5410
  ), Y = K(
5411
5411
  (Q) => {
@@ -5413,16 +5413,16 @@ const Ec = ({
5413
5413
  m(Q);
5414
5414
  return;
5415
5415
  }
5416
- s && t && V(
5416
+ s && t && q(
5417
5417
  t,
5418
- Z(s, {
5418
+ F(s, {
5419
5419
  selectedKeys: Q.selectedKeys,
5420
5420
  key: Q.key
5421
5421
  })
5422
5422
  );
5423
5423
  },
5424
- [m, s, t, V]
5425
- ), ut = C === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, F = p(() => {
5424
+ [m, s, t, q]
5425
+ ), ut = C === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, I = p(() => {
5426
5426
  if (!A) return;
5427
5427
  const Q = {};
5428
5428
  return Object.entries(A).forEach(([yt, kt]) => {
@@ -5430,19 +5430,19 @@ const Ec = ({
5430
5430
  }), Object.keys(Q).length > 0 ? Q : void 0;
5431
5431
  }, [A]), at = r ? {
5432
5432
  motion: { motionName: "" }
5433
- } : {}, lt = p(() => {
5433
+ } : {}, ct = p(() => {
5434
5434
  if (typeof _ == "string" && _) {
5435
5435
  const Q = Jt[_];
5436
5436
  if (Q) return /* @__PURE__ */ w(Q, {});
5437
5437
  }
5438
5438
  return _;
5439
5439
  }, [_]), wt = p(() => {
5440
- if (typeof j == "string" && j) {
5441
- const Q = Jt[j];
5440
+ if (typeof R == "string" && R) {
5441
+ const Q = Jt[R];
5442
5442
  if (Q) return /* @__PURE__ */ w(Q, {});
5443
5443
  }
5444
- return j;
5445
- }, [j]), _t = p(() => M === "pagination" || M === "scroll" ? null : S, [M, S]), xt = Vn(), Tt = e || xt.replace(/:/g, "-"), Pt = p(() => {
5444
+ return R;
5445
+ }, [R]), _t = p(() => $ === "pagination" || $ === "scroll" ? null : S, [$, S]), xt = Vn(), Tt = e || xt.replace(/:/g, "-"), Pt = p(() => {
5446
5446
  var $t;
5447
5447
  if (!u || typeof u == "function") return "";
5448
5448
  const Q = ($t = u.subMenu) == null ? void 0 : $t.root;
@@ -5473,33 +5473,33 @@ const Ec = ({
5473
5473
  ...ut,
5474
5474
  ...at,
5475
5475
  mode: C,
5476
- items: ht,
5477
- selectedKeys: ct,
5478
- openKeys: tt,
5476
+ items: mt,
5477
+ selectedKeys: ot,
5478
+ openKeys: Z,
5479
5479
  defaultOpenKeys: v,
5480
5480
  onClick: J,
5481
5481
  onSelect: dt,
5482
- onOpenChange: L,
5482
+ onOpenChange: z,
5483
5483
  onDeselect: Y,
5484
5484
  styles: u,
5485
5485
  classNames: T,
5486
5486
  expandIcon: x,
5487
5487
  overflowedIndicator: _t,
5488
- disabledOverflow: M !== "default"
5488
+ disabledOverflow: $ !== "default"
5489
5489
  }
5490
- ), pt = () => M === "pagination" ? /* @__PURE__ */ w(
5490
+ ), pt = () => $ === "pagination" ? /* @__PURE__ */ w(
5491
5491
  Fa,
5492
5492
  {
5493
5493
  mode: C || "horizontal",
5494
5494
  arrowStyle: E,
5495
- arrowIconPrev: lt,
5495
+ arrowIconPrev: ct,
5496
5496
  arrowIconNext: wt,
5497
5497
  children: G
5498
5498
  }
5499
- ) : M === "scroll" ? /* @__PURE__ */ w(Ia, { mode: C || "horizontal", children: G }) : G, Et = p(() => {
5499
+ ) : $ === "scroll" ? /* @__PURE__ */ w(Ia, { mode: C || "horizontal", children: G }) : G, Et = p(() => {
5500
5500
  const Q = {};
5501
- return r && (Q.motion = !1), F && (Q.components = { Menu: F }), Object.keys(Q).length > 0 ? Q : void 0;
5502
- }, [r, F]);
5501
+ return r && (Q.motion = !1), I && (Q.components = { Menu: I }), Object.keys(Q).length > 0 ? Q : void 0;
5502
+ }, [r, I]);
5503
5503
  return (() => {
5504
5504
  const Q = pt(), yt = Pt ? /* @__PURE__ */ it("div", { "data-and-menu-id": Tt, style: { display: "contents" }, children: [
5505
5505
  /* @__PURE__ */ w("style", { children: Pt }),
@@ -5512,7 +5512,7 @@ const Ec = ({
5512
5512
  sessionId: t,
5513
5513
  develop: r,
5514
5514
  ...i
5515
- }) => /* @__PURE__ */ w(An, { ...i }), zc = ({
5515
+ }) => /* @__PURE__ */ w(An, { ...i }), Lc = ({
5516
5516
  id: e,
5517
5517
  sessionId: t,
5518
5518
  develop: r,
@@ -5532,7 +5532,7 @@ const Ec = ({
5532
5532
  ...v
5533
5533
  }) => {
5534
5534
  const u = k((C) => C.getDataSet), T = p(
5535
- () => I(t, i),
5535
+ () => tt(t, i),
5536
5536
  [t, i]
5537
5537
  ), A = p(() => {
5538
5538
  if (T && n) return u(T, n);
@@ -5570,7 +5570,7 @@ const Ec = ({
5570
5570
  )
5571
5571
  }
5572
5572
  );
5573
- }, Lc = ({
5573
+ }, zc = ({
5574
5574
  id: e,
5575
5575
  sessionId: t,
5576
5576
  develop: r,
@@ -5583,7 +5583,7 @@ const Ec = ({
5583
5583
  ...d
5584
5584
  }) => {
5585
5585
  const b = k((u) => u.getDataSet), h = p(
5586
- () => I(t, i),
5586
+ () => tt(t, i),
5587
5587
  [t, i]
5588
5588
  ), m = p(() => {
5589
5589
  if (h && n) return b(h, n);
@@ -5670,7 +5670,7 @@ const Ec = ({
5670
5670
  ...m
5671
5671
  }) => {
5672
5672
  const f = k((C) => C.addCommand), y = p(
5673
- () => I(t, i),
5673
+ () => tt(t, i),
5674
5674
  [t, i]
5675
5675
  ), l = k((C) => {
5676
5676
  var N;
@@ -5746,7 +5746,7 @@ const Ec = ({
5746
5746
  ...h
5747
5747
  }) => {
5748
5748
  const m = k((S) => S.getDataSet), f = k((S) => S.getProps), y = p(
5749
- () => I(t, a),
5749
+ () => tt(t, a),
5750
5750
  [t, a]
5751
5751
  ), l = p(() => t && e ? f(t, e) : null, [t, e, f]), v = p(() => {
5752
5752
  if (y && o) return m(y, o);
@@ -5782,7 +5782,7 @@ const Ec = ({
5782
5782
  ...h
5783
5783
  }) => {
5784
5784
  const m = k((x) => x.addCommand), f = k((x) => x.getDataSet), y = k((x) => x.setDataSet), l = p(
5785
- () => I(t, i),
5785
+ () => tt(t, i),
5786
5786
  [t, i]
5787
5787
  ), v = p(() => {
5788
5788
  if (l && n)
@@ -5823,7 +5823,7 @@ const Ec = ({
5823
5823
  ...d
5824
5824
  }) => {
5825
5825
  const b = k((u) => u.addCommand), h = k((u) => u.getDataSet), m = k((u) => u.setDataSet), f = p(
5826
- () => I(t, i),
5826
+ () => tt(t, i),
5827
5827
  [t, i]
5828
5828
  ), y = p(() => {
5829
5829
  if (f && n)
@@ -5895,52 +5895,56 @@ const Ec = ({
5895
5895
  children: x,
5896
5896
  ...S
5897
5897
  }) => {
5898
- const D = k(($) => $.addCommand), g = k(($) => $.getDataSet), C = k(($) => $.setDataSet), N = p(
5899
- () => I(t, i),
5898
+ const D = k((V) => V.addCommand), g = k((V) => V.getDataSet), C = k((V) => V.setDataSet), N = p(
5899
+ () => tt(t, i),
5900
5900
  [t, i]
5901
- ), O = p(() => Ie(l, {}), [l]), M = p(() => Ie(v, {}), [v]), E = p(() => {
5902
- const $ = no(b);
5903
- return $.length > 0 ? $ : void 0;
5904
- }, [b]), j = p(() => {
5901
+ ), O = p(() => Ie(l, {}), [l]), $ = p(() => {
5902
+ const V = no(b);
5903
+ return V.length > 0 ? V : void 0;
5904
+ }, [b]), _ = p(() => {
5905
5905
  if (N && n) {
5906
- const $ = g(N, `${n}.activeTabKey`);
5907
- if (typeof $ == "string") return $;
5906
+ const V = g(N, `${n}.activeTabKey`);
5907
+ if (typeof V == "string") return V;
5908
5908
  }
5909
- }, [N, n, g]) ?? h, q = K(($) => {
5909
+ }, [N, n, g]) ?? h, R = K((V) => {
5910
5910
  if (y) {
5911
- y($);
5911
+ y(V);
5912
5912
  return;
5913
5913
  }
5914
- N && n && C(N, `${n}.activeTabKey`, $), f && t && D(t, Z(f, { key: $ }));
5915
- }, [y, N, n, C, f, t, D]), { titleSlot: U, extraSlot: V, coverSlot: z, actionsSlot: R, otherChildren: P } = p(() => {
5916
- let $ = null, H = null, X = null, rt = [];
5917
- const ft = [];
5918
- return a && ($ = a), o && (H = o), c && (X = c), d && (rt = d), Lt.Children.forEach(x, (ot) => {
5919
- if (!Lt.isValidElement(ot)) {
5920
- ft.push(ot);
5914
+ N && n && C(N, `${n}.activeTabKey`, V), f && t && D(t, F(f, { key: V }));
5915
+ }, [y, N, n, C, f, t, D]), { titleSlot: W, extraSlot: U, coverSlot: q, actionsSlot: L, otherChildren: M, actionsFromChildren: P } = p(() => {
5916
+ let V = null, X = null, rt = null, ft = [];
5917
+ const st = [];
5918
+ let et = !1;
5919
+ return a && (V = a), o && (X = o), c && (rt = c), d && (ft = d), zt.Children.forEach(x, (mt) => {
5920
+ if (!zt.isValidElement(mt)) {
5921
+ st.push(mt);
5921
5922
  return;
5922
5923
  }
5923
- const et = ot.props, ht = et["data-slot-type"];
5924
- ht === "title" && !a ? $ = ot : ht === "extra" && !o ? H = ot : ht === "cover" && !c ? X = ot : ht === "actions" && !d ? rt = [ot] : ht === "body" && et.children ? ft.push(et.children) : ft.push(ot);
5925
- }), { titleSlot: $, extraSlot: H, coverSlot: X, actionsSlot: rt, otherChildren: ft };
5926
- }, [x, a, o, c, d]), B = /* @__PURE__ */ w(
5924
+ const ot = mt.props, Z = ot["data-slot-type"];
5925
+ Z === "title" && !a ? V = mt : Z === "extra" && !o ? X = mt : Z === "cover" && !c ? rt = mt : Z === "actions" && !d ? (ft = [mt], et = !0) : Z === "body" && ot.children ? st.push(ot.children) : st.push(mt);
5926
+ }), { titleSlot: V, extraSlot: X, coverSlot: rt, actionsSlot: ft, otherChildren: st, actionsFromChildren: et };
5927
+ }, [x, a, o, c, d]), j = p(() => {
5928
+ const V = Ie(v, {});
5929
+ return P ? { actionsLiMargin: "0px", ...V } : V;
5930
+ }, [v, P]), B = /* @__PURE__ */ w(
5927
5931
  He,
5928
5932
  {
5929
5933
  ...S,
5930
- title: U,
5931
- extra: V,
5932
- cover: z,
5934
+ title: W,
5935
+ extra: U,
5936
+ cover: q,
5933
5937
  tabBarExtraContent: s,
5934
- actions: R.length > 0 ? R : void 0,
5935
- tabList: E,
5936
- activeTabKey: j,
5938
+ actions: L.length > 0 ? L : void 0,
5939
+ tabList: $,
5940
+ activeTabKey: _,
5937
5941
  defaultActiveTabKey: m,
5938
- onTabChange: E ? q : void 0,
5942
+ onTabChange: $ ? R : void 0,
5939
5943
  styles: O,
5940
- children: P
5944
+ children: M
5941
5945
  }
5942
5946
  );
5943
- return M && Object.keys(M).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Card: M } }, children: B }) : B;
5947
+ return j && Object.keys(j).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Card: j } }, children: B }) : B;
5944
5948
  }, Yc = ({
5945
5949
  id: e,
5946
5950
  sessionId: t,
@@ -5996,7 +6000,7 @@ const Ec = ({
5996
6000
  ...y
5997
6001
  }) => {
5998
6002
  const l = k((g) => g.addCommand), v = p(
5999
- () => I(t, i),
6003
+ () => tt(t, i),
6000
6004
  [t, i]
6001
6005
  ), u = k((g) => {
6002
6006
  if (v)
@@ -6013,19 +6017,19 @@ const Ec = ({
6013
6017
  h(g, C);
6014
6018
  return;
6015
6019
  }
6016
- b && t && l(t, Z(b, { open: g, source: C.source }));
6020
+ b && t && l(t, F(b, { open: g, source: C.source }));
6017
6021
  },
6018
6022
  [h, b, t, l]
6019
6023
  ), S = p(
6020
6024
  () => ({
6021
6025
  items: Pr(A),
6022
6026
  onClick: (g) => {
6023
- c && t && l(t, Z(c, { key: g.key, keyPath: g.keyPath }));
6027
+ c && t && l(t, F(c, { key: g.key, keyPath: g.keyPath }));
6024
6028
  },
6025
6029
  onSelect: (g) => {
6026
6030
  s && t && l(
6027
6031
  t,
6028
- Z(s, {
6032
+ F(s, {
6029
6033
  key: g.key,
6030
6034
  keyPath: g.keyPath,
6031
6035
  selectedKeys: g.selectedKeys
@@ -6035,7 +6039,7 @@ const Ec = ({
6035
6039
  onDeselect: (g) => {
6036
6040
  d && t && l(
6037
6041
  t,
6038
- Z(d, {
6042
+ F(d, {
6039
6043
  key: g.key,
6040
6044
  keyPath: g.keyPath,
6041
6045
  selectedKeys: g.selectedKeys
@@ -6088,7 +6092,7 @@ const Ec = ({
6088
6092
  ...o
6089
6093
  }) => {
6090
6094
  const c = k((y) => y.getDataSet), s = k((y) => y.getProps), d = p(
6091
- () => I(t, i),
6095
+ () => tt(t, i),
6092
6096
  [t, i]
6093
6097
  ), b = p(() => t && e ? s(t, e) : null, [t, e, s]), h = p(() => {
6094
6098
  if (d && n) return c(d, n);
@@ -6103,7 +6107,7 @@ const Ec = ({
6103
6107
  if (!e) return;
6104
6108
  const t = Jt[e];
6105
6109
  if (t)
6106
- return Lt.createElement(t);
6110
+ return zt.createElement(t);
6107
6111
  }, qe = (e, t) => {
6108
6112
  if (e == null) return t;
6109
6113
  if (typeof e == "string")
@@ -6157,7 +6161,7 @@ const Ec = ({
6157
6161
  b(E);
6158
6162
  return;
6159
6163
  }
6160
- s && t && u(t, Z(s, { sizes: E }));
6164
+ s && t && u(t, F(s, { sizes: E }));
6161
6165
  },
6162
6166
  [b, s, t, u]
6163
6167
  ), g = K(
@@ -6166,22 +6170,22 @@ const Ec = ({
6166
6170
  h(E);
6167
6171
  return;
6168
6172
  }
6169
- d && t && u(t, Z(d, { sizes: E }));
6173
+ d && t && u(t, F(d, { sizes: E }));
6170
6174
  },
6171
6175
  [h, d, t, u]
6172
- ), C = () => y && Lt.Children.count(y) > 0 ? Lt.Children.map(y, (E, _) => {
6173
- const j = T[_] || {};
6176
+ ), C = () => y && zt.Children.count(y) > 0 ? zt.Children.map(y, (E, _) => {
6177
+ const R = T[_] || {};
6174
6178
  return /* @__PURE__ */ w(
6175
6179
  Re.Panel,
6176
6180
  {
6177
- defaultSize: j.defaultSize,
6178
- min: j.min,
6179
- max: j.max,
6180
- collapsible: j.collapsible,
6181
- resizable: j.resizable !== !1,
6181
+ defaultSize: R.defaultSize,
6182
+ min: R.min,
6183
+ max: R.max,
6184
+ collapsible: R.collapsible,
6185
+ resizable: R.resizable !== !1,
6182
6186
  children: E
6183
6187
  },
6184
- j.key || _
6188
+ R.key || _
6185
6189
  );
6186
6190
  }) : T.map((E, _) => /* @__PURE__ */ w(
6187
6191
  Re.Panel,
@@ -6210,7 +6214,7 @@ const Ec = ({
6210
6214
  )
6211
6215
  },
6212
6216
  E.key || _
6213
- )), { layout: N, ...O } = v, M = /* @__PURE__ */ w("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ w(
6217
+ )), { layout: N, ...O } = v, $ = /* @__PURE__ */ w("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ w(
6214
6218
  Re,
6215
6219
  {
6216
6220
  ...O,
@@ -6226,7 +6230,7 @@ const Ec = ({
6226
6230
  },
6227
6231
  n
6228
6232
  ) });
6229
- return A && Object.keys(A).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Splitter: A } }, children: M }) : M;
6233
+ return A && Object.keys(A).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Splitter: A } }, children: $ }) : $;
6230
6234
  }, Ic = ({
6231
6235
  children: e,
6232
6236
  className: t,
@@ -6270,29 +6274,29 @@ const Ec = ({
6270
6274
  "page-showLessItems": T = !1
6271
6275
  }) => {
6272
6276
  const A = k((_) => _.getDataSet), x = p(
6273
- () => I(t, i),
6277
+ () => tt(t, i),
6274
6278
  [t, i]
6275
- ), [S, D] = mt(1), [g, C] = mt(m), N = p(() => {
6279
+ ), [S, D] = ht(1), [g, C] = ht(m), N = p(() => {
6276
6280
  if (x && n) {
6277
6281
  const _ = A(x, n);
6278
6282
  return Array.isArray(_) ? _ : [];
6279
6283
  }
6280
6284
  return [];
6281
- }, [x, n, A]), O = p(() => r ? N.length > 0 ? N : c || [] : x ? N : c || [], [r, x, N, c]), M = p(() => {
6285
+ }, [x, n, A]), O = p(() => r ? N.length > 0 ? N : c || [] : x ? N : c || [], [r, x, N, c]), $ = p(() => {
6282
6286
  let _ = O;
6283
6287
  if (!h) {
6284
- const j = (S - 1) * g, q = j + g;
6285
- _ = _.slice(j, q);
6288
+ const R = (S - 1) * g, W = R + g;
6289
+ _ = _.slice(R, W);
6286
6290
  }
6287
6291
  return s ? _.slice(0, s) : _;
6288
6292
  }, [O, h, S, g, s]);
6289
6293
  if (!O || O.length === 0)
6290
6294
  return o ? /* @__PURE__ */ w(Ce, { children: o() }) : /* @__PURE__ */ w("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
6291
- const E = (_, j) => {
6292
- D(_), j && C(j);
6295
+ const E = (_, R) => {
6296
+ D(_), R && C(R);
6293
6297
  };
6294
6298
  return /* @__PURE__ */ it("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
6295
- /* @__PURE__ */ w("div", { style: { flex: 1 }, children: M.map((_, j) => /* @__PURE__ */ w(Lt.Fragment, { children: a ? a(_, j) : /* @__PURE__ */ w("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(_) }) }, _.id || j)) }),
6299
+ /* @__PURE__ */ w("div", { style: { flex: 1 }, children: $.map((_, R) => /* @__PURE__ */ w(zt.Fragment, { children: a ? a(_, R) : /* @__PURE__ */ w("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(_) }) }, _.id || R)) }),
6296
6300
  !h && O.length > 0 && /* @__PURE__ */ w("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ w(
6297
6301
  Or,
6298
6302
  {
@@ -6386,7 +6390,7 @@ const Ec = ({
6386
6390
  style: s
6387
6391
  }) => {
6388
6392
  const d = k((l) => l.addCommand), b = k((l) => l.getDataSet), h = p(
6389
- () => I(t, i),
6393
+ () => tt(t, i),
6390
6394
  [t, i]
6391
6395
  ), m = p(() => {
6392
6396
  if (h && n) {
@@ -6395,7 +6399,7 @@ const Ec = ({
6395
6399
  }
6396
6400
  return [];
6397
6401
  }, [h, n, b]), f = m.length > 0 ? m : a || [], y = (l) => {
6398
- c && t && d(t, Z(c, l));
6402
+ c && t && d(t, F(c, l));
6399
6403
  };
6400
6404
  return /* @__PURE__ */ w("div", { style: { display: "grid", gridTemplateColumns: `repeat(${o}, 1fr)`, gap: 16, ...s }, children: f.map((l) => /* @__PURE__ */ w(
6401
6405
  He,
@@ -6468,7 +6472,7 @@ const Ec = ({
6468
6472
  const h = p(() => {
6469
6473
  if (!r) return;
6470
6474
  const x = r.split(".")[0];
6471
- return I(i, x);
6475
+ return tt(i, x);
6472
6476
  }, [r, i]), m = k(
6473
6477
  (x) => h ? x.dataSets[h] : null
6474
6478
  ), f = p(() => {
@@ -6657,30 +6661,30 @@ function Ft(e, t) {
6657
6661
  animate: C,
6658
6662
  scale: N,
6659
6663
  interaction: O,
6660
- annotations: M,
6664
+ annotations: $,
6661
6665
  axis: E,
6662
6666
  scrollbar: _,
6663
- slider: j,
6664
- theme: q,
6667
+ slider: R,
6668
+ theme: W,
6665
6669
  state: U,
6666
6670
  // 事件配置
6667
- events: V,
6671
+ events: q,
6668
6672
  // 其余配置直接透传
6669
- ...z
6670
- } = o, R = Vt(null), P = k((at) => at.getDataSet), B = k((at) => at.addCommand), $ = p(() => {
6673
+ ...L
6674
+ } = o, M = Vt(null), P = k((at) => at.getDataSet), j = k((at) => at.addCommand), B = p(() => {
6671
6675
  if (m && f) {
6672
- const lt = P(m, f);
6673
- if (lt !== void 0) return lt;
6676
+ const ct = P(m, f);
6677
+ if (ct !== void 0) return ct;
6674
6678
  }
6675
6679
  const at = bt(y);
6676
6680
  return at !== void 0 ? at : d ? n : [];
6677
- }, [y, m, f, P, d]), H = (at) => {
6678
- var lt;
6679
- if (R.current = at, !d && s) {
6680
- const wt = bt(V);
6681
+ }, [y, m, f, P, d]), V = (at) => {
6682
+ var ct;
6683
+ if (M.current = at, !d && s) {
6684
+ const wt = bt(q);
6681
6685
  wt && typeof wt == "object" && Object.entries(wt).forEach(([_t, xt]) => {
6682
6686
  typeof xt == "string" && at.on(_t, (Tt) => {
6683
- B(s, {
6687
+ j(s, {
6684
6688
  actionName: xt,
6685
6689
  arg: Tt,
6686
6690
  timestamp: Date.now()
@@ -6688,9 +6692,9 @@ function Ft(e, t) {
6688
6692
  });
6689
6693
  });
6690
6694
  }
6691
- (lt = z.onReady) == null || lt.call(z, at);
6695
+ (ct = L.onReady) == null || ct.call(L, at);
6692
6696
  }, X = bt(l) || {}, rt = {
6693
- data: $,
6697
+ data: B,
6694
6698
  // 优先使用 common 中的配置,没配置则使用默认值
6695
6699
  height: X.height ?? i,
6696
6700
  autoFit: oo(X.autoFit, !0),
@@ -6698,32 +6702,32 @@ function Ft(e, t) {
6698
6702
  ...X,
6699
6703
  // 设计器模式禁用动画
6700
6704
  animate: d ? !1 : bt(C),
6701
- onReady: H,
6702
- ...z
6705
+ onReady: V,
6706
+ ...L
6703
6707
  }, ft = bt(x);
6704
6708
  ft !== void 0 && (rt.title = ft);
6705
- const ot = bt(S);
6706
- ot !== void 0 && (rt.legend = ot);
6709
+ const st = bt(S);
6710
+ st !== void 0 && (rt.legend = st);
6707
6711
  const et = bt(D);
6708
6712
  et !== void 0 && (rt.label = et);
6709
- const ht = bt(g);
6710
- ht !== void 0 && (rt.tooltip = ht);
6711
- const ct = bt(N);
6712
- ct !== void 0 && (rt.scale = ct);
6713
- const tt = bt(O);
6714
- tt !== void 0 && (rt.interaction = tt);
6715
- const J = bt(M);
6713
+ const mt = bt(g);
6714
+ mt !== void 0 && (rt.tooltip = mt);
6715
+ const ot = bt(N);
6716
+ ot !== void 0 && (rt.scale = ot);
6717
+ const Z = bt(O);
6718
+ Z !== void 0 && (rt.interaction = Z);
6719
+ const J = bt($);
6716
6720
  J !== void 0 && (rt.annotations = J);
6717
6721
  const dt = bt(E);
6718
6722
  dt !== void 0 && (rt.axis = dt);
6719
- const L = bt(_);
6720
- L !== void 0 && (rt.scrollbar = L);
6721
- const Y = bt(j);
6723
+ const z = bt(_);
6724
+ z !== void 0 && (rt.scrollbar = z);
6725
+ const Y = bt(R);
6722
6726
  Y !== void 0 && (rt.slider = Y);
6723
- const ut = bt(q);
6727
+ const ut = bt(W);
6724
6728
  ut !== void 0 && (rt.theme = ut);
6725
- const F = bt(U);
6726
- return F !== void 0 && (rt.state = F), /* @__PURE__ */ w(e, { ...rt });
6729
+ const I = bt(U);
6730
+ return I !== void 0 && (rt.state = I), /* @__PURE__ */ w(e, { ...rt });
6727
6731
  };
6728
6732
  return a.displayName = `withBaseChart(${r})`, a;
6729
6733
  }
@@ -6947,8 +6951,8 @@ export {
6947
6951
  qc as AndAlert,
6948
6952
  hc as AndAutoComplete,
6949
6953
  $c as AndAvatar,
6950
- zc as AndBadge,
6951
- Lc as AndBadgeRibbon,
6954
+ Lc as AndBadge,
6955
+ zc as AndBadgeRibbon,
6952
6956
  jc as AndBreadCrumb,
6953
6957
  Xo as AndButton,
6954
6958
  Kc as AndCalendar,
@@ -7019,14 +7023,14 @@ export {
7019
7023
  Go as COMMON_TOKENS,
7020
7024
  Bo as cleanupAllMounts,
7021
7025
  Ro as clearCssCache,
7022
- Z as createCommand,
7026
+ F as createCommand,
7023
7027
  Ho as createWatchCommands,
7024
7028
  Wi as dictValueEquals,
7025
7029
  re as findDictOptionByValue,
7026
7030
  da as formatByType,
7027
7031
  Ze as getAccessToken,
7028
7032
  Yt as getCoreConfig,
7029
- I as getDataSetStoreKey,
7033
+ tt as getDataSetStoreKey,
7030
7034
  rr as getDictOptions,
7031
7035
  Be as getNestedValue,
7032
7036
  fe as getValidateStoreKey,
@@ -7040,14 +7044,14 @@ export {
7040
7044
  li as parseClickAction,
7041
7045
  je as parseNestedPath,
7042
7046
  Uo as parseQueryAction,
7043
- zr as processValidationRules,
7047
+ Lr as processValidationRules,
7044
7048
  Yo as req,
7045
7049
  ee as request,
7046
7050
  Qo as resolveTokenColorWithToken,
7047
7051
  Po as setCoreConfig,
7048
7052
  ai as setNestedValue,
7049
7053
  Vr as upload,
7050
- Lo as useAddCommand,
7054
+ zo as useAddCommand,
7051
7055
  k as useAndStore,
7052
7056
  Hi as useApiService,
7053
7057
  Wo as useCommandsStore,
@@ -7058,9 +7062,9 @@ export {
7058
7062
  nr as useRemoteOptions,
7059
7063
  _e as useResolveTokenColor,
7060
7064
  Ko as useStore,
7061
- zo as useStoreByName,
7065
+ Lo as useStoreByName,
7062
7066
  oi as useStoreData,
7063
- Lr as validateWithSchema,
7067
+ zr as validateWithSchema,
7064
7068
  ci as watchCommands,
7065
7069
  Ft as withBaseChart
7066
7070
  };