@nuwatop/code-canvas-core 0.3.7 → 0.3.8

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,18 +1,18 @@
1
1
  import { jsx as b, jsxs as ct, Fragment as ge } from "react/jsx-runtime";
2
2
  import { createRoot as sr } from "react-dom/client";
3
- import { theme as Xt, ConfigProvider as $t, Button as Zt, Input as _e, InputNumber as En, Space as Yt, Select as _n, Switch as lr, DatePicker as $n, TimePicker as ur, Radio as Le, Checkbox as oe, Rate as fr, Slider as dr, Cascader as mr, TreeSelect as hr, message as xe, Upload as yr, Image as Qt, AutoComplete as gr, Form as Oe, Transfer as pr, Segmented as vr, Modal as Mn, Tooltip as br, Table as Sr, Flex as Rn, Typography as on, Tabs as wr, Tree as Dr, Timeline as xr, Steps as Ar, Statistic as Pe, Carousel as Cr, Avatar as Tr, Tag as jn, Pagination as Bn, Breadcrumb as Nr, Menu as kr, Calendar as Or, Badge as Kn, Masonry as Er, Alert as _r, Drawer as $r, Result as Mr, Card as Je, Divider as dn, Dropdown as Rr, Row as jr, Col as Br, QRCode as Kr, Splitter as Ve, Spin as zr, Watermark as Lr } from "antd";
3
+ import { theme as Xt, ConfigProvider as $t, Button as Zt, Input as $e, InputNumber as _n, Space as Yt, Select as En, Switch as lr, DatePicker as $n, TimePicker as ur, Radio as Le, Checkbox as ce, Rate as fr, Slider as dr, Cascader as mr, TreeSelect as hr, message as Ae, Upload as yr, Image as Qt, AutoComplete as gr, Form as _e, Transfer as pr, Segmented as vr, Modal as Mn, Tooltip as br, Table as Sr, Flex as Rn, Typography as on, Tabs as wr, Tree as Dr, Timeline as xr, Steps as Ar, Statistic as Pe, Carousel as Cr, Avatar as Tr, Tag as jn, Pagination as Bn, Breadcrumb as Nr, Menu as kr, Calendar as Or, Badge as Kn, Masonry as _r, Alert as Er, Drawer as $r, Result as Mr, Card as Je, Divider as dn, Dropdown as Rr, Row as jr, Col as Br, QRCode as Kr, Splitter as Ve, Spin as zr, Watermark as Lr } from "antd";
4
4
  import { StyleProvider as Vr, createCache as qr } from "@ant-design/cssinjs";
5
5
  import Wr from "antd/locale/zh_CN";
6
6
  import { create as Hr } from "zustand";
7
7
  import { subscribeWithSelector as Ur } from "zustand/middleware";
8
8
  import { immer as Yr } from "zustand/middleware/immer";
9
- import Vt, { useMemo as y, useCallback as B, useEffect as _t, createContext as Pr, useContext as $e, useState as yt, useRef as qt, useLayoutEffect as zn, useId as Jr, Suspense as Gr } from "react";
9
+ import Vt, { useMemo as y, useCallback as K, useEffect as Et, createContext as Pr, useContext as pe, useState as yt, useRef as qt, useLayoutEffect as zn, useId as Jr, Suspense as Gr } from "react";
10
10
  import * as Jt from "@ant-design/icons";
11
11
  import { CloseCircleOutlined as Qr, PlusOutlined as Ln, UploadOutlined as Xr, MenuOutlined as Zr, MinusOutlined as Fr, LeftOutlined as Vn, RightOutlined as qn, UpOutlined as Ir, DownOutlined as Wn, ApiOutlined as ti, InboxOutlined as ei } from "@ant-design/icons";
12
12
  import ni from "clsx";
13
13
  import Ut from "dayjs";
14
14
  import { Line as ri, Column as ii, Pie as ai, Area as oi, DualAxes as ci, Gauge as si, Liquid as li, Bar as ui } from "@ant-design/plots";
15
- const Ae = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap();
15
+ const Ce = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap();
16
16
  let Qe = !1;
17
17
  const fi = () => {
18
18
  Qe || (Qe = !0);
@@ -31,7 +31,7 @@ const fi = () => {
31
31
  }) => {
32
32
  var T;
33
33
  fi();
34
- const o = Ae.get(e);
34
+ const o = Ce.get(e);
35
35
  if (o) {
36
36
  if (a)
37
37
  Object.keys(e).forEach((w) => {
@@ -47,10 +47,10 @@ const fi = () => {
47
47
  } catch (w) {
48
48
  console.warn("[mountReactComponent] Unmount failed (benign if DOM was cleared):", w);
49
49
  }
50
- Ae.delete(e);
50
+ Ce.delete(e);
51
51
  }
52
52
  const c = sr(e);
53
- Ae.set(e, c);
53
+ Ce.set(e, c);
54
54
  const l = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, g = !r && l && d && d.defaultView !== null, m = g ? l : window.document.head, p = g ? d : window.document, h = di(p), v = (((T = window.__GLS_COMPS__) == null ? void 0 : T.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (w) => /* @__PURE__ */ b(Vr, { cache: h, container: m, hashPriority: "high", children: /* @__PURE__ */ b(
55
55
  $t,
56
56
  {
@@ -74,7 +74,7 @@ const fi = () => {
74
74
  root: c,
75
75
  unmount: () => {
76
76
  try {
77
- c.unmount(), Ae.delete(e);
77
+ c.unmount(), Ce.delete(e);
78
78
  } catch (w) {
79
79
  console.error("[code-canvas-core] Failed to unmount component:", w);
80
80
  }
@@ -86,7 +86,7 @@ const fi = () => {
86
86
  }, Yo = () => {
87
87
  console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Qe = !1;
88
88
  };
89
- function pe(e) {
89
+ function ve(e) {
90
90
  const t = e.match(/^(.+)\[(\d+)\]$/);
91
91
  return t ? {
92
92
  baseName: t[1],
@@ -96,7 +96,7 @@ function pe(e) {
96
96
  index: null
97
97
  };
98
98
  }
99
- function Ce(e) {
99
+ function Te(e) {
100
100
  if (!e || typeof e != "string") return [];
101
101
  const t = [], n = e.split(".").flatMap((i) => {
102
102
  const r = i.match(/^([^\[]+)(\[\d+\])(.*)$/);
@@ -158,7 +158,7 @@ const mn = {
158
158
  validateStore: {}
159
159
  };
160
160
  function hn(e, t, n, i) {
161
- const { baseName: r, index: a } = pe(t);
161
+ const { baseName: r, index: a } = ve(t);
162
162
  if (e.dataSets[r] || (e.dataSets[r] = {}), a !== null) {
163
163
  const d = e.dataSets[r];
164
164
  let g = d.value;
@@ -187,26 +187,26 @@ const O = Hr()(
187
187
  // ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
188
188
  setDataSet: (n, i, r, a = !0) => e((o) => {
189
189
  if (!n) return;
190
- const c = i ? Ce(i) : [], l = a && typeof r == "object" && r !== null && !Array.isArray(r);
190
+ const c = i ? Te(i) : [], l = a && typeof r == "object" && r !== null && !Array.isArray(r);
191
191
  hn(o, n, c, (g) => l && g != null && typeof g == "object" && !Array.isArray(g) ? { ...g, ...r } : r);
192
192
  }),
193
193
  updateDataSet: (n, i, r) => e((a) => {
194
194
  if (!n || typeof r != "function") return;
195
- const o = i ? Ce(i) : [];
195
+ const o = i ? Te(i) : [];
196
196
  hn(a, n, o, r);
197
197
  }),
198
198
  getDataSet: (n, i) => {
199
199
  if (!n) return;
200
- const r = t().dataSets, { baseName: a, index: o } = pe(n), c = r[a];
200
+ const r = t().dataSets, { baseName: a, index: o } = ve(n), c = r[a];
201
201
  if (o !== null) {
202
202
  const l = c == null ? void 0 : c.value;
203
203
  if (!Array.isArray(l) || l[o] === void 0)
204
204
  return;
205
205
  const d = l[o];
206
- return i ? Xe(d, Ce(i)) : d;
206
+ return i ? Xe(d, Te(i)) : d;
207
207
  }
208
208
  if (c)
209
- return i ? Xe(c, Ce(i)) : c;
209
+ return i ? Xe(c, Te(i)) : c;
210
210
  },
211
211
  setDataSetBatch: (n, i) => e((r) => {
212
212
  r.dataSets[n] = {
@@ -295,7 +295,7 @@ function Qo() {
295
295
  function hi(e, t) {
296
296
  const n = O((r) => {
297
297
  if (!e) return;
298
- const a = pe(e).baseName;
298
+ const a = ve(e).baseName;
299
299
  return r.dataSets[a];
300
300
  }), i = O((r) => r.getDataSet);
301
301
  return y(() => {
@@ -619,9 +619,9 @@ var Un = function(t, n, i, r, a, o) {
619
619
  t.required && (!i.hasOwnProperty(t.field) || Tt(n, o || t.type)) && r.push(Kt(a.messages.required, t.fullField));
620
620
  }, Ni = function(t, n, i, r, a) {
621
621
  (/^\s+$/.test(n) || n === "") && r.push(Kt(a.messages.whitespace, t.fullField));
622
- }, Te, ki = function() {
623
- if (Te)
624
- return Te;
622
+ }, Ne, ki = function() {
623
+ if (Ne)
624
+ return Ne;
625
625
  var e = "[a-fA-F\\d:]", t = function(T) {
626
626
  return T && T.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
627
627
  }, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", i = "[a-fA-F\\d]{1,4}", r = (`
@@ -644,7 +644,7 @@ var Un = function(t, n, i, r, a, o) {
644
644
  return D && D.exact ? c : new RegExp("" + t(D) + r + t(D), "g");
645
645
  };
646
646
  var d = "(?:(?:[a-z]+:)?//)", g = "(?:\\S+(?::\\S*)?@)?", m = l.v4().source, p = l.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", s = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", u = '(?:[/?#][^\\s"]*)?', k = "(?:" + d + "|www\\.)" + g + "(?:localhost|" + m + "|" + p + "|" + h + f + s + ")" + v + u;
647
- return Te = new RegExp("(?:^" + k + "$)", "i"), Te;
647
+ return Ne = new RegExp("(?:^" + k + "$)", "i"), Ne;
648
648
  }, bn = {
649
649
  // http://emailregex.com/
650
650
  email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
@@ -700,13 +700,13 @@ var Un = function(t, n, i, r, a, o) {
700
700
  }
701
701
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = t.type;
702
702
  o.indexOf(c) > -1 ? de[c](n) || r.push(Kt(a.messages.types[c], t.fullField, t.type)) : c && typeof n !== t.type && r.push(Kt(a.messages.types[c], t.fullField, t.type));
703
- }, Ei = function(t, n, i, r, a) {
703
+ }, _i = function(t, n, i, r, a) {
704
704
  var o = typeof t.len == "number", c = typeof t.min == "number", l = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, g = n, m = null, p = typeof n == "number", h = typeof n == "string", f = Array.isArray(n);
705
705
  if (p ? m = "number" : h ? m = "string" : f && (m = "array"), !m)
706
706
  return !1;
707
707
  f && (g = n.length), h && (g = n.replace(d, "_").length), o ? g !== t.len && r.push(Kt(a.messages[m].len, t.fullField, t.len)) : c && !l && g < t.min ? r.push(Kt(a.messages[m].min, t.fullField, t.min)) : l && !c && g > t.max ? r.push(Kt(a.messages[m].max, t.fullField, t.max)) : c && l && (g < t.min || g > t.max) && r.push(Kt(a.messages[m].range, t.fullField, t.min, t.max));
708
- }, ae = "enum", _i = function(t, n, i, r, a) {
709
- t[ae] = Array.isArray(t[ae]) ? t[ae] : [], t[ae].indexOf(n) === -1 && r.push(Kt(a.messages[ae], t.fullField, t[ae].join(", ")));
708
+ }, oe = "enum", Ei = function(t, n, i, r, a) {
709
+ t[oe] = Array.isArray(t[oe]) ? t[oe] : [], t[oe].indexOf(n) === -1 && r.push(Kt(a.messages[oe], t.fullField, t[oe].join(", ")));
710
710
  }, $i = function(t, n, i, r, a) {
711
711
  if (t.pattern) {
712
712
  if (t.pattern instanceof RegExp)
@@ -720,8 +720,8 @@ var Un = function(t, n, i, r, a, o) {
720
720
  required: Un,
721
721
  whitespace: Ni,
722
722
  type: Oi,
723
- range: Ei,
724
- enum: _i,
723
+ range: _i,
724
+ enum: Ei,
725
725
  pattern: $i
726
726
  }, Mi = function(t, n, i, r, a) {
727
727
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
@@ -913,7 +913,7 @@ function tn() {
913
913
  }
914
914
  };
915
915
  }
916
- var en = tn(), ve = /* @__PURE__ */ function() {
916
+ var en = tn(), be = /* @__PURE__ */ function() {
917
917
  function e(n) {
918
918
  this.rules = null, this._messages = en, this.define(n);
919
919
  }
@@ -993,18 +993,18 @@ var en = tn(), ve = /* @__PURE__ */ function() {
993
993
  if (u.required && !s.value)
994
994
  return u.message !== void 0 ? N = [].concat(u.message).map(pn(u, c)) : l.error && (N = [l.error(u, Kt(l.messages.required, u.field))]), v(N);
995
995
  var A = {};
996
- u.defaultField && Object.keys(s.value).map(function(E) {
997
- A[E] = u.defaultField;
996
+ u.defaultField && Object.keys(s.value).map(function(_) {
997
+ A[_] = u.defaultField;
998
998
  }), A = ee({}, A, s.rule.fields);
999
999
  var S = {};
1000
- Object.keys(A).forEach(function(E) {
1001
- var _ = A[E], R = Array.isArray(_) ? _ : [_];
1002
- S[E] = R.map(D.bind(null, E));
1000
+ Object.keys(A).forEach(function(_) {
1001
+ var R = A[_], j = Array.isArray(R) ? R : [R];
1002
+ S[_] = j.map(D.bind(null, _));
1003
1003
  });
1004
- var $ = new e(S);
1005
- $.messages(l.messages), s.rule.options && (s.rule.options.messages = l.messages, s.rule.options.error = l.error), $.validate(s.value, s.rule.options || l, function(E) {
1006
- var _ = [];
1007
- N && N.length && _.push.apply(_, N), E && E.length && _.push.apply(_, E), v(_.length ? _ : null);
1004
+ var E = new e(S);
1005
+ E.messages(l.messages), s.rule.options && (s.rule.options.messages = l.messages, s.rule.options.error = l.error), E.validate(s.value, s.rule.options || l, function(_) {
1006
+ var R = [];
1007
+ N && N.length && R.push.apply(R, N), _ && _.length && R.push.apply(R, _), v(R.length ? R : null);
1008
1008
  });
1009
1009
  }
1010
1010
  }
@@ -1040,14 +1040,14 @@ var en = tn(), ve = /* @__PURE__ */ function() {
1040
1040
  return a !== -1 && r.splice(a, 1), r.length === 1 && r[0] === "required" ? he.required : he[this.getType(i)] || void 0;
1041
1041
  }, e;
1042
1042
  }();
1043
- ve.register = function(t, n) {
1043
+ be.register = function(t, n) {
1044
1044
  if (typeof n != "function")
1045
1045
  throw new Error("Cannot register a validator by type, validator is not a function");
1046
1046
  he[t] = n;
1047
1047
  };
1048
- ve.warning = Hn;
1049
- ve.messages = en;
1050
- ve.validators = he;
1048
+ be.warning = Hn;
1049
+ be.messages = en;
1050
+ be.validators = he;
1051
1051
  function Gi(e) {
1052
1052
  if (!e || typeof e != "string") return null;
1053
1053
  try {
@@ -1074,7 +1074,7 @@ function Pn(e, t, n, i) {
1074
1074
  return;
1075
1075
  }
1076
1076
  const r = { [Sn]: e };
1077
- new ve(r).validate({ [Sn]: t }, { first: !0 }).then(() => {
1077
+ new be(r).validate({ [Sn]: t }, { first: !0 }).then(() => {
1078
1078
  n();
1079
1079
  }).catch(({ errors: o }) => {
1080
1080
  i(o || []);
@@ -1105,7 +1105,7 @@ function Rt(e) {
1105
1105
  var x;
1106
1106
  return s ? (x = w.dataSets[s]) == null ? void 0 : x.validate : void 0;
1107
1107
  }
1108
- ), u = B(
1108
+ ), u = K(
1109
1109
  (w) => {
1110
1110
  const x = w ?? "";
1111
1111
  if (r && n && i && c(r, n, i, x), r && a) {
@@ -1114,7 +1114,7 @@ function Rt(e) {
1114
1114
  }
1115
1115
  },
1116
1116
  [r, n, i, a, c, l, d]
1117
- ), k = B(
1117
+ ), k = K(
1118
1118
  (w) => {
1119
1119
  const x = Yn(t || []);
1120
1120
  Pn(
@@ -1129,7 +1129,7 @@ function Rt(e) {
1129
1129
  },
1130
1130
  [t, u]
1131
1131
  ), D = o ? void 0 : r && n && i ? m : (p == null ? void 0 : p.help) ?? "", T = !o && D ? "error" : void 0;
1132
- return _t(() => {
1132
+ return Et(() => {
1133
1133
  if (v == null || !f || !i) return;
1134
1134
  const w = h(f, i);
1135
1135
  k(w);
@@ -1144,15 +1144,15 @@ function Gt(e, t, n) {
1144
1144
  o != null && (r[a] = o);
1145
1145
  }), r;
1146
1146
  }
1147
- const ce = Pr(null);
1148
- function Ne(e) {
1147
+ const re = Pr(null);
1148
+ function ke(e) {
1149
1149
  return typeof e == "string" && e.trim() !== "";
1150
1150
  }
1151
1151
  function Me(e, t, n) {
1152
- const i = $e(ce);
1152
+ const i = pe(re);
1153
1153
  return y(() => {
1154
1154
  const r = n ?? (i == null ? void 0 : i.sessionId);
1155
- if (Ne(e))
1155
+ if (ke(e))
1156
1156
  return {
1157
1157
  dataSet: e,
1158
1158
  dataSetField: t,
@@ -1165,7 +1165,7 @@ function Me(e, t, n) {
1165
1165
  sessionId: r
1166
1166
  };
1167
1167
  const a = i.index, o = i.dataSet, c = i.dataSetFieldRoot;
1168
- if (Ne(t)) {
1168
+ if (ke(t)) {
1169
1169
  const l = t.trim();
1170
1170
  if (l.startsWith("["))
1171
1171
  return {
@@ -1173,7 +1173,7 @@ function Me(e, t, n) {
1173
1173
  dataSetField: l,
1174
1174
  sessionId: r
1175
1175
  };
1176
- if (Ne(c))
1176
+ if (ke(c))
1177
1177
  return {
1178
1178
  dataSet: o,
1179
1179
  dataSetField: `${c}[${a}].${l}`,
@@ -1186,7 +1186,7 @@ function Me(e, t, n) {
1186
1186
  sessionId: r
1187
1187
  };
1188
1188
  }
1189
- return Ne(c) ? {
1189
+ return ke(c) ? {
1190
1190
  dataSet: o,
1191
1191
  dataSetField: `${c}[${a}]`,
1192
1192
  sessionId: r
@@ -1200,7 +1200,7 @@ function Me(e, t, n) {
1200
1200
  function Xi(e, t) {
1201
1201
  return e === t ? !0 : String(e ?? "") === String(t ?? "");
1202
1202
  }
1203
- function re(e, t) {
1203
+ function ie(e, t) {
1204
1204
  if (Array.isArray(e))
1205
1205
  return e.find((n) => Xi(n.value, t));
1206
1206
  }
@@ -1243,25 +1243,25 @@ const ec = {
1243
1243
  get: (e, t, n) => ne({ url: e, params: t, method: "GET", ...n })
1244
1244
  };
1245
1245
  function Zi() {
1246
- const e = Pt(), t = B(
1246
+ const e = Pt(), t = K(
1247
1247
  async (l, d) => {
1248
1248
  const g = typeof l == "string" ? { url: l, ...d } : l;
1249
1249
  return ne(g);
1250
1250
  },
1251
1251
  []
1252
- ), n = B(
1252
+ ), n = K(
1253
1253
  async (l, d, g) => ne({ url: l, params: d, method: "GET", ...g }),
1254
1254
  []
1255
- ), i = B(
1255
+ ), i = K(
1256
1256
  async (l, d, g) => ne({ url: l, data: d, method: "POST", ...g }),
1257
1257
  []
1258
- ), r = B(
1258
+ ), r = K(
1259
1259
  async (l) => cn(l),
1260
1260
  []
1261
- ), a = B(
1261
+ ), a = K(
1262
1262
  async (l, d) => Jn(l, d),
1263
1263
  []
1264
- ), o = B(() => nn(), []), c = B(() => !!e.request, [e.request]);
1264
+ ), o = K(() => nn(), []), c = K(() => !!e.request, [e.request]);
1265
1265
  return {
1266
1266
  request: t,
1267
1267
  get: n,
@@ -1273,9 +1273,9 @@ function Zi() {
1273
1273
  baseURL: e.baseURL
1274
1274
  };
1275
1275
  }
1276
- function be(e) {
1276
+ function Se(e) {
1277
1277
  const [t, n] = yt([]), [i, r] = yt(!1), [a, o] = yt(null);
1278
- return _t(() => {
1278
+ return Et(() => {
1279
1279
  if (!e) {
1280
1280
  n([]);
1281
1281
  return;
@@ -1302,13 +1302,13 @@ function sn(e, t) {
1302
1302
  () => (t == null ? void 0 : t.params) != null ? JSON.parse(p) : void 0,
1303
1303
  // eslint-disable-next-line react-hooks/exhaustive-deps
1304
1304
  [p]
1305
- ), f = B(
1305
+ ), f = K(
1306
1306
  (v) => Array.isArray(v) ? v.map((u) => ({
1307
1307
  label: u[l],
1308
1308
  value: u[d]
1309
1309
  })) : [],
1310
1310
  [l, d]
1311
- ), s = B(async () => {
1311
+ ), s = K(async () => {
1312
1312
  if (e) {
1313
1313
  a(!0), c(null);
1314
1314
  try {
@@ -1326,7 +1326,7 @@ function sn(e, t) {
1326
1326
  }
1327
1327
  }
1328
1328
  }, [e, h, f, m]);
1329
- return _t(() => {
1329
+ return Et(() => {
1330
1330
  g && e && s();
1331
1331
  }, [g, e, s]), { options: n, loading: r, error: o, reload: s };
1332
1332
  }
@@ -1675,7 +1675,7 @@ const ac = ({
1675
1675
  dataSetField: g,
1676
1676
  ...m
1677
1677
  }) => {
1678
- const p = O((A) => A.addCommand), h = $e(ce), f = l ?? (h == null ? void 0 : h.index), s = O(
1678
+ const p = O((A) => A.addCommand), h = pe(re), f = l ?? (h == null ? void 0 : h.index), s = O(
1679
1679
  (A) => {
1680
1680
  var S;
1681
1681
  return r && e ? (S = A.propsStore[`${r}_props`]) == null ? void 0 : S[e] : null;
@@ -1688,21 +1688,21 @@ const ac = ({
1688
1688
  }, [m, s, a]), u = y(() => {
1689
1689
  const A = (s == null ? void 0 : s.iconName) || n;
1690
1690
  return A && Jt[A] ? Jt[A] : null;
1691
- }, [n, s == null ? void 0 : s.iconName]), k = B(
1691
+ }, [n, s == null ? void 0 : s.iconName]), k = K(
1692
1692
  (A) => {
1693
1693
  if (o) {
1694
1694
  o(A);
1695
1695
  return;
1696
1696
  }
1697
1697
  if (i && r) {
1698
- const { actionName: S, arg: $ } = gi(i, {
1698
+ const { actionName: S, arg: E } = gi(i, {
1699
1699
  id: e,
1700
1700
  index: f,
1701
1701
  dataSet: d,
1702
1702
  dataSetField: g,
1703
1703
  ...v
1704
- }), E = Z(S, $);
1705
- p(r, E);
1704
+ }), _ = Z(S, E);
1705
+ p(r, _);
1706
1706
  }
1707
1707
  },
1708
1708
  [
@@ -1769,46 +1769,46 @@ const Xn = (e) => {
1769
1769
  addonAfter: T,
1770
1770
  addonBefore: w,
1771
1771
  ...x
1772
- } = e, C = Me(r, a, n), N = C.dataSet, A = C.dataSetField, S = C.sessionId, $ = qt(""), E = qt(null), _ = O((L) => L.addCommand), R = O((L) => L.getDataSet), q = O((L) => L.setDataSet), U = O((L) => L.getProps), K = O((L) => L.setProps), V = O((L) => L.setValidateResult), z = y(
1772
+ } = e, C = Me(r, a, n), N = C.dataSet, A = C.dataSetField, S = C.sessionId, E = qt(""), _ = qt(null), R = O((V) => V.addCommand), j = O((V) => V.getDataSet), q = O((V) => V.setDataSet), H = O((V) => V.getProps), M = O((V) => V.setProps), L = O((V) => V.setValidateResult), z = y(
1773
1773
  () => et(S, N),
1774
1774
  [S, N]
1775
1775
  ), Y = O(
1776
- (L) => {
1776
+ (V) => {
1777
1777
  var tt;
1778
- return S && t ? ((tt = L.propsStore[`${S}_props`]) == null ? void 0 : tt[t]) ?? null : null;
1778
+ return S && t ? ((tt = V.propsStore[`${S}_props`]) == null ? void 0 : tt[t]) ?? null : null;
1779
1779
  }
1780
- ), M = y(
1780
+ ), $ = y(
1781
1781
  () => me(S, N),
1782
1782
  [S, N]
1783
- ), j = O(
1784
- (L) => {
1783
+ ), B = O(
1784
+ (V) => {
1785
1785
  var tt;
1786
- return M && A ? ((tt = L.validateStore[M]) == null ? void 0 : tt[A]) ?? "" : "";
1786
+ return $ && A ? ((tt = V.validateStore[$]) == null ? void 0 : tt[A]) ?? "" : "";
1787
1787
  }
1788
1788
  ), G = O(
1789
- (L) => z && A ? L.getDataSet(z, A) : void 0
1789
+ (V) => z && A ? V.getDataSet(z, A) : void 0
1790
1790
  ), W = y(
1791
1791
  () => N ? et(S, `${N}_validateAction`) : void 0,
1792
1792
  [S, N]
1793
- ), H = O(
1794
- (L) => {
1793
+ ), U = O(
1794
+ (V) => {
1795
1795
  var tt;
1796
- return W ? (tt = L.dataSets[W]) == null ? void 0 : tt.validate : void 0;
1796
+ return W ? (tt = V.dataSets[W]) == null ? void 0 : tt.validate : void 0;
1797
1797
  }
1798
1798
  ), rt = y(() => G !== void 0 ? G : (Y == null ? void 0 : Y.value) !== void 0 ? Y.value : d, [G, Y == null ? void 0 : Y.value, d]), it = y(
1799
1799
  () => Aa(x, Y ?? null, { develop: i }),
1800
1800
  [x, Y, i]
1801
- ), nt = B(
1802
- (L) => {
1803
- const tt = L ?? "";
1804
- if (S && N && A && V(
1801
+ ), nt = K(
1802
+ (V) => {
1803
+ const tt = V ?? "";
1804
+ if (S && N && A && L(
1805
1805
  S,
1806
1806
  N,
1807
1807
  A,
1808
1808
  tt
1809
1809
  ), S && t) {
1810
- const Q = U(S, t) || {};
1811
- K(S, t, {
1810
+ const Q = H(S, t) || {};
1811
+ M(S, t, {
1812
1812
  ...Q,
1813
1813
  validateStatus: tt ? "error" : void 0,
1814
1814
  help: tt
@@ -1820,16 +1820,16 @@ const Xn = (e) => {
1820
1820
  N,
1821
1821
  A,
1822
1822
  t,
1823
- V,
1824
- U,
1825
- K
1823
+ L,
1824
+ H,
1825
+ M
1826
1826
  ]
1827
- ), ht = B(
1828
- (L) => {
1827
+ ), ht = K(
1828
+ (V) => {
1829
1829
  const tt = Yn(p || []);
1830
1830
  Pn(
1831
1831
  tt,
1832
- L,
1832
+ V,
1833
1833
  () => nt(""),
1834
1834
  (Q) => {
1835
1835
  var lt;
@@ -1838,11 +1838,11 @@ const Xn = (e) => {
1838
1838
  );
1839
1839
  },
1840
1840
  [p, nt]
1841
- ), At = B(
1842
- (L) => {
1843
- const tt = L.target.value;
1844
- if ($.current = tt, l) {
1845
- l(tt, L);
1841
+ ), At = K(
1842
+ (V) => {
1843
+ const tt = V.target.value;
1844
+ if (E.current = tt, l) {
1845
+ l(tt, V);
1846
1846
  return;
1847
1847
  }
1848
1848
  if (z && A && q(z, A, tt), c && S) {
@@ -1852,10 +1852,10 @@ const Xn = (e) => {
1852
1852
  dataSetField: A,
1853
1853
  ...it
1854
1854
  });
1855
- _(S, Z(Q, lt));
1855
+ R(S, Z(Q, lt));
1856
1856
  }
1857
- h && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
1858
- E.current = null, ht(tt);
1857
+ h && (_.current && clearTimeout(_.current), _.current = setTimeout(() => {
1858
+ _.current = null, ht(tt);
1859
1859
  }, Da));
1860
1860
  },
1861
1861
  [
@@ -1869,25 +1869,25 @@ const Xn = (e) => {
1869
1869
  N,
1870
1870
  A,
1871
1871
  it,
1872
- _,
1872
+ R,
1873
1873
  h,
1874
1874
  ht
1875
1875
  ]
1876
- ), dt = B(() => {
1876
+ ), dt = K(() => {
1877
1877
  if (!f) return;
1878
- const L = z && A ? String(R(z, A) ?? "") : $.current;
1879
- ht(L);
1878
+ const V = z && A ? String(j(z, A) ?? "") : E.current;
1879
+ ht(V);
1880
1880
  }, [
1881
1881
  f,
1882
1882
  z,
1883
1883
  A,
1884
- R,
1884
+ j,
1885
1885
  ht
1886
- ]), I = B(
1887
- (L) => {
1886
+ ]), I = K(
1887
+ (V) => {
1888
1888
  const Q = it.onPressEnter;
1889
1889
  if (Q) {
1890
- Q(L);
1890
+ Q(V);
1891
1891
  return;
1892
1892
  }
1893
1893
  if (u && S) {
@@ -1897,7 +1897,7 @@ const Xn = (e) => {
1897
1897
  dataSetField: A,
1898
1898
  ...it
1899
1899
  });
1900
- _(S, Z(lt, ft));
1900
+ R(S, Z(lt, ft));
1901
1901
  }
1902
1902
  },
1903
1903
  [
@@ -1908,9 +1908,9 @@ const Xn = (e) => {
1908
1908
  t,
1909
1909
  N,
1910
1910
  A,
1911
- _
1911
+ R
1912
1912
  ]
1913
- ), st = B(() => {
1913
+ ), st = K(() => {
1914
1914
  const tt = it.onClear;
1915
1915
  if (tt) {
1916
1916
  tt();
@@ -1923,7 +1923,7 @@ const Xn = (e) => {
1923
1923
  dataSetField: A,
1924
1924
  ...it
1925
1925
  });
1926
- _(S, Z(Q, lt));
1926
+ R(S, Z(Q, lt));
1927
1927
  }
1928
1928
  }, [
1929
1929
  it,
@@ -1932,25 +1932,25 @@ const Xn = (e) => {
1932
1932
  t,
1933
1933
  N,
1934
1934
  A,
1935
- _
1935
+ R
1936
1936
  ]);
1937
- _t(
1937
+ Et(
1938
1938
  () => () => {
1939
- E.current && clearTimeout(E.current);
1939
+ _.current && clearTimeout(_.current);
1940
1940
  },
1941
1941
  []
1942
- ), _t(() => {
1943
- if (H == null || !z || !A)
1942
+ ), Et(() => {
1943
+ if (U == null || !z || !A)
1944
1944
  return;
1945
- const L = String(R(z, A) ?? "");
1946
- ht(L);
1947
- }, [H, z, A, R, ht]);
1945
+ const V = String(j(z, A) ?? "");
1946
+ ht(V);
1947
+ }, [U, z, A, j, ht]);
1948
1948
  const at = y(() => xa(m), [m]), Ot = y(
1949
1949
  () => at ? { components: { Input: at } } : void 0,
1950
1950
  [at]
1951
- ), kt = i ? void 0 : S && N && A ? j : (Y == null ? void 0 : Y.help) ?? "", P = /* @__PURE__ */ ct(ge, { children: [
1951
+ ), kt = i ? void 0 : S && N && A ? B : (Y == null ? void 0 : Y.help) ?? "", P = /* @__PURE__ */ ct(ge, { children: [
1952
1952
  /* @__PURE__ */ b(
1953
- _e,
1953
+ $e,
1954
1954
  {
1955
1955
  ...it,
1956
1956
  value: rt,
@@ -1991,8 +1991,8 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
1991
1991
  [t, i]
1992
1992
  ), w = O(
1993
1993
  (W) => {
1994
- var H;
1995
- return t && e ? ((H = W.propsStore[`${t}_props`]) == null ? void 0 : H[e]) ?? null : null;
1994
+ var U;
1995
+ return t && e ? ((U = W.propsStore[`${t}_props`]) == null ? void 0 : U[e]) ?? null : null;
1996
1996
  }
1997
1997
  ), x = O(
1998
1998
  (W) => T && r ? W.getDataSet(T, r) : void 0
@@ -2003,12 +2003,12 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2003
2003
  sessionId: t,
2004
2004
  id: e,
2005
2005
  develop: n
2006
- }), A = y(() => x !== void 0 ? x : (w == null ? void 0 : w.value) !== void 0 ? w.value : s, [x, w == null ? void 0 : w.value, s]), S = B(
2007
- (W, H, rt) => {
2008
- W && t && u(t, Z(W, { type: H, value: rt }));
2006
+ }), A = y(() => x !== void 0 ? x : (w == null ? void 0 : w.value) !== void 0 ? w.value : s, [x, w == null ? void 0 : w.value, s]), S = K(
2007
+ (W, U, rt) => {
2008
+ W && t && u(t, Z(W, { type: U, value: rt }));
2009
2009
  },
2010
2010
  [t, u]
2011
- ), $ = B(
2011
+ ), E = K(
2012
2012
  (W) => {
2013
2013
  if (h) {
2014
2014
  h(W);
@@ -2019,21 +2019,21 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2019
2019
  }, wn)), S(l, "change", W);
2020
2020
  },
2021
2021
  [h, T, r, k, c, C, l, S]
2022
- ), E = B(() => {
2022
+ ), _ = K(() => {
2023
2023
  o && C(A);
2024
- }, [o, C, A]), _ = B(
2024
+ }, [o, C, A]), R = K(
2025
2025
  (W) => {
2026
2026
  if (v.onPressEnter) {
2027
2027
  v.onPressEnter(W);
2028
2028
  return;
2029
2029
  }
2030
2030
  if (d && t) {
2031
- const { actionName: H, arg: rt } = gt(d, A, {
2031
+ const { actionName: U, arg: rt } = gt(d, A, {
2032
2032
  id: e,
2033
2033
  dataSet: i,
2034
2034
  dataSetField: r
2035
2035
  });
2036
- u(t, Z(H, rt));
2036
+ u(t, Z(U, rt));
2037
2037
  }
2038
2038
  },
2039
2039
  [
@@ -2046,7 +2046,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2046
2046
  r,
2047
2047
  u
2048
2048
  ]
2049
- ), R = B(() => {
2049
+ ), j = K(() => {
2050
2050
  if (h) {
2051
2051
  h(null);
2052
2052
  return;
@@ -2054,12 +2054,12 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2054
2054
  if (T && r && k(T, r, null), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
2055
2055
  D.current = null, C(null);
2056
2056
  }, wn)), S(l, "change", null), g && t) {
2057
- const { actionName: W, arg: H } = gt(g, null, {
2057
+ const { actionName: W, arg: U } = gt(g, null, {
2058
2058
  id: e,
2059
2059
  dataSet: i,
2060
2060
  dataSetField: r
2061
2061
  });
2062
- u(t, Z(W, H));
2062
+ u(t, Z(W, U));
2063
2063
  }
2064
2064
  }, [
2065
2065
  h,
@@ -2076,26 +2076,26 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2076
2076
  i,
2077
2077
  r,
2078
2078
  u
2079
- ]), q = B(
2080
- (W, H) => {
2081
- S(p, "step", { value: W, type: H.type });
2079
+ ]), q = K(
2080
+ (W, U) => {
2081
+ S(p, "step", { value: W, type: U.type });
2082
2082
  },
2083
2083
  [p, S]
2084
2084
  );
2085
- _t(
2085
+ Et(
2086
2086
  () => () => {
2087
2087
  D.current && clearTimeout(D.current);
2088
2088
  },
2089
2089
  []
2090
- ), _t(() => {
2090
+ ), Et(() => {
2091
2091
  f !== void 0 && A === void 0 && T && r && k(T, r, f);
2092
2092
  }, [f, A, T, r, k]);
2093
- const U = y(
2093
+ const H = y(
2094
2094
  () => Gt(v, w ?? void 0),
2095
2095
  [v, w]
2096
- ), { addonBefore: K, addonAfter: V, style: z, suffix: Y, ...M } = U, j = y(() => {
2096
+ ), { addonBefore: M, addonAfter: L, style: z, suffix: Y, ...$ } = H, B = y(() => {
2097
2097
  if (!(m && A !== null && A !== void 0)) return Y;
2098
- const H = /* @__PURE__ */ b(
2098
+ const U = /* @__PURE__ */ b(
2099
2099
  "span",
2100
2100
  {
2101
2101
  role: "button",
@@ -2103,37 +2103,37 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2103
2103
  style: { cursor: "pointer", marginInlineStart: 4 },
2104
2104
  onMouseDown: (rt) => rt.preventDefault(),
2105
2105
  onClick: (rt) => {
2106
- rt.stopPropagation(), R();
2106
+ rt.stopPropagation(), j();
2107
2107
  },
2108
2108
  children: /* @__PURE__ */ b(Qr, {})
2109
2109
  }
2110
2110
  );
2111
- return Y == null || Y === !1 ? H : /* @__PURE__ */ ct(ge, { children: [
2111
+ return Y == null || Y === !1 ? U : /* @__PURE__ */ ct(ge, { children: [
2112
2112
  Y,
2113
- H
2113
+ U
2114
2114
  ] });
2115
- }, [m, A, Y, R]), G = /* @__PURE__ */ b(
2116
- En,
2115
+ }, [m, A, Y, j]), G = /* @__PURE__ */ b(
2116
+ _n,
2117
2117
  {
2118
- ...M,
2119
- disabled: n ? !1 : M.disabled,
2120
- readOnly: n ? !0 : M.readOnly,
2121
- className: ni(M.className, {
2122
- "ant-input-number-disabled": n && M.disabled
2118
+ ...$,
2119
+ disabled: n ? !1 : $.disabled,
2120
+ readOnly: n ? !0 : $.readOnly,
2121
+ className: ni($.className, {
2122
+ "ant-input-number-disabled": n && $.disabled
2123
2123
  }),
2124
2124
  value: A,
2125
- onChange: $,
2126
- onBlur: E,
2127
- onPressEnter: _,
2125
+ onChange: E,
2126
+ onBlur: _,
2127
+ onPressEnter: R,
2128
2128
  onStep: q,
2129
- suffix: j,
2129
+ suffix: B,
2130
2130
  status: N ? "error" : void 0,
2131
2131
  style: { width: "100%", ...z }
2132
2132
  }
2133
2133
  );
2134
2134
  return /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
2135
- K || V ? /* @__PURE__ */ ct(Yt.Compact, { style: { width: "100%" }, children: [
2136
- K && /* @__PURE__ */ b(
2135
+ M || L ? /* @__PURE__ */ ct(Yt.Compact, { style: { width: "100%" }, children: [
2136
+ M && /* @__PURE__ */ b(
2137
2137
  "div",
2138
2138
  {
2139
2139
  style: {
@@ -2147,11 +2147,11 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2147
2147
  color: "rgba(0, 0, 0, 0.88)",
2148
2148
  fontSize: 14
2149
2149
  },
2150
- children: K
2150
+ children: M
2151
2151
  }
2152
2152
  ),
2153
2153
  G,
2154
- V && /* @__PURE__ */ b(
2154
+ L && /* @__PURE__ */ b(
2155
2155
  "div",
2156
2156
  {
2157
2157
  style: {
@@ -2165,13 +2165,13 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2165
2165
  color: "rgba(0, 0, 0, 0.88)",
2166
2166
  fontSize: 14
2167
2167
  },
2168
- children: V
2168
+ children: L
2169
2169
  }
2170
2170
  )
2171
2171
  ] }) : G,
2172
2172
  N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
2173
2173
  ] });
2174
- }, { TextArea: Ca } = _e, Ta = 200, sc = ({
2174
+ }, { TextArea: Ca } = $e, Ta = 200, sc = ({
2175
2175
  id: e,
2176
2176
  sessionId: t,
2177
2177
  develop: n,
@@ -2188,16 +2188,16 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2188
2188
  defaultValue: h,
2189
2189
  ...f
2190
2190
  }) => {
2191
- const s = Me(i, r, t), v = s.dataSet, u = s.dataSetField, k = s.sessionId, D = O((U) => U.addCommand), T = O((U) => U.setDataSet), w = qt(null), x = y(
2191
+ const s = Me(i, r, t), v = s.dataSet, u = s.dataSetField, k = s.sessionId, D = O((H) => H.addCommand), T = O((H) => H.setDataSet), w = qt(null), x = y(
2192
2192
  () => et(k, v),
2193
2193
  [k, v]
2194
2194
  ), C = O(
2195
- (U) => {
2196
- var K;
2197
- return k && e ? ((K = U.propsStore[`${k}_props`]) == null ? void 0 : K[e]) ?? null : null;
2195
+ (H) => {
2196
+ var M;
2197
+ return k && e ? ((M = H.propsStore[`${k}_props`]) == null ? void 0 : M[e]) ?? null : null;
2198
2198
  }
2199
2199
  ), N = O(
2200
- (U) => x && u ? U.getDataSet(x, u) : void 0
2200
+ (H) => x && u ? H.getDataSet(x, u) : void 0
2201
2201
  ), { validate: A, help: S } = Rt({
2202
2202
  rules: a,
2203
2203
  dataSet: v,
@@ -2205,23 +2205,23 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2205
2205
  sessionId: k,
2206
2206
  id: e,
2207
2207
  develop: n
2208
- }), $ = y(() => N !== void 0 ? N : (C == null ? void 0 : C.value) !== void 0 ? C.value : p ?? h, [N, C == null ? void 0 : C.value, p, h]), E = B(
2209
- (U) => {
2210
- const K = U.target.value;
2208
+ }), E = y(() => N !== void 0 ? N : (C == null ? void 0 : C.value) !== void 0 ? C.value : p ?? h, [N, C == null ? void 0 : C.value, p, h]), _ = K(
2209
+ (H) => {
2210
+ const M = H.target.value;
2211
2211
  if (m) {
2212
- m(K, U);
2212
+ m(M, H);
2213
2213
  return;
2214
2214
  }
2215
- if (x && u && T(x, u, K), l && k) {
2216
- const { actionName: V, arg: z } = gt(l, K, {
2215
+ if (x && u && T(x, u, M), l && k) {
2216
+ const { actionName: L, arg: z } = gt(l, M, {
2217
2217
  id: e,
2218
2218
  dataSet: v,
2219
2219
  dataSetField: u
2220
2220
  });
2221
- D(k, Z(V, z));
2221
+ D(k, Z(L, z));
2222
2222
  }
2223
2223
  c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
2224
- w.current = null, A(K);
2224
+ w.current = null, A(M);
2225
2225
  }, Ta));
2226
2226
  },
2227
2227
  [
@@ -2236,45 +2236,45 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2236
2236
  c,
2237
2237
  A
2238
2238
  ]
2239
- ), _ = B(() => {
2240
- o && A($);
2241
- }, [o, A, $]), R = B(
2242
- (U) => {
2239
+ ), R = K(() => {
2240
+ o && A(E);
2241
+ }, [o, A, E]), j = K(
2242
+ (H) => {
2243
2243
  if (f.onPressEnter) {
2244
- f.onPressEnter(U);
2244
+ f.onPressEnter(H);
2245
2245
  return;
2246
2246
  }
2247
- if (d && k && !U.shiftKey) {
2248
- const { actionName: K, arg: V } = gt(d, $, {
2247
+ if (d && k && !H.shiftKey) {
2248
+ const { actionName: M, arg: L } = gt(d, E, {
2249
2249
  id: e,
2250
2250
  dataSet: v,
2251
2251
  dataSetField: u
2252
2252
  });
2253
- D(k, Z(K, V));
2253
+ D(k, Z(M, L));
2254
2254
  }
2255
2255
  },
2256
2256
  [
2257
2257
  f.onPressEnter,
2258
2258
  d,
2259
2259
  k,
2260
- $,
2260
+ E,
2261
2261
  e,
2262
2262
  v,
2263
2263
  u,
2264
2264
  D
2265
2265
  ]
2266
- ), q = B(() => {
2266
+ ), q = K(() => {
2267
2267
  if (f.onClear) {
2268
2268
  f.onClear();
2269
2269
  return;
2270
2270
  }
2271
2271
  if (g && k) {
2272
- const { actionName: U, arg: K } = gt(g, "", {
2272
+ const { actionName: H, arg: M } = gt(g, "", {
2273
2273
  id: e,
2274
2274
  dataSet: v,
2275
2275
  dataSetField: u
2276
2276
  });
2277
- D(k, Z(U, K));
2277
+ D(k, Z(H, M));
2278
2278
  }
2279
2279
  }, [
2280
2280
  f.onClear,
@@ -2285,7 +2285,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2285
2285
  u,
2286
2286
  D
2287
2287
  ]);
2288
- return _t(
2288
+ return Et(
2289
2289
  () => () => {
2290
2290
  w.current && clearTimeout(w.current);
2291
2291
  },
@@ -2296,17 +2296,17 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2296
2296
  {
2297
2297
  ...f,
2298
2298
  disabled: n ? !1 : f.disabled,
2299
- value: $,
2300
- onChange: E,
2301
- onBlur: _,
2302
- onPressEnter: R,
2299
+ value: E,
2300
+ onChange: _,
2301
+ onBlur: R,
2302
+ onPressEnter: j,
2303
2303
  onClear: q,
2304
2304
  status: S ? "error" : void 0
2305
2305
  }
2306
2306
  ),
2307
2307
  S && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: S })
2308
2308
  ] });
2309
- }, { Password: Na } = _e, ka = 200, lc = ({
2309
+ }, { Password: Na } = $e, ka = 200, lc = ({
2310
2310
  id: e,
2311
2311
  sessionId: t,
2312
2312
  develop: n,
@@ -2323,16 +2323,16 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2323
2323
  defaultValue: h,
2324
2324
  ...f
2325
2325
  }) => {
2326
- const s = O((E) => E.addCommand), v = O((E) => E.setDataSet), u = qt(null), k = y(
2326
+ const s = O((_) => _.addCommand), v = O((_) => _.setDataSet), u = qt(null), k = y(
2327
2327
  () => et(t, i),
2328
2328
  [t, i]
2329
2329
  ), D = O(
2330
- (E) => {
2331
- var _;
2332
- return t && e ? ((_ = E.propsStore[`${t}_props`]) == null ? void 0 : _[e]) ?? null : null;
2330
+ (_) => {
2331
+ var R;
2332
+ return t && e ? ((R = _.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null : null;
2333
2333
  }
2334
2334
  ), T = O(
2335
- (E) => k && r ? E.getDataSet(k, r) : void 0
2335
+ (_) => k && r ? _.getDataSet(k, r) : void 0
2336
2336
  ), { validate: w, help: x } = Rt({
2337
2337
  rules: a,
2338
2338
  dataSet: i,
@@ -2340,23 +2340,23 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2340
2340
  sessionId: t,
2341
2341
  id: e,
2342
2342
  develop: n
2343
- }), C = y(() => T !== void 0 ? T : (D == null ? void 0 : D.value) !== void 0 ? D.value : p ?? h, [T, D == null ? void 0 : D.value, p, h]), N = B(
2344
- (E) => {
2345
- const _ = E.target.value;
2343
+ }), C = y(() => T !== void 0 ? T : (D == null ? void 0 : D.value) !== void 0 ? D.value : p ?? h, [T, D == null ? void 0 : D.value, p, h]), N = K(
2344
+ (_) => {
2345
+ const R = _.target.value;
2346
2346
  if (m) {
2347
- m(_, E);
2347
+ m(R, _);
2348
2348
  return;
2349
2349
  }
2350
- if (k && r && v(k, r, _), l && t) {
2351
- const { actionName: R, arg: q } = gt(l, _, {
2350
+ if (k && r && v(k, r, R), l && t) {
2351
+ const { actionName: j, arg: q } = gt(l, R, {
2352
2352
  id: e,
2353
2353
  dataSet: i,
2354
2354
  dataSetField: r
2355
2355
  });
2356
- s(t, Z(R, q));
2356
+ s(t, Z(j, q));
2357
2357
  }
2358
2358
  c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
2359
- u.current = null, w(_);
2359
+ u.current = null, w(R);
2360
2360
  }, ka));
2361
2361
  },
2362
2362
  [
@@ -2371,21 +2371,21 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2371
2371
  c,
2372
2372
  w
2373
2373
  ]
2374
- ), A = B(() => {
2374
+ ), A = K(() => {
2375
2375
  o && w(C);
2376
- }, [o, w, C]), S = B(
2377
- (E) => {
2376
+ }, [o, w, C]), S = K(
2377
+ (_) => {
2378
2378
  if (f.onPressEnter) {
2379
- f.onPressEnter(E);
2379
+ f.onPressEnter(_);
2380
2380
  return;
2381
2381
  }
2382
2382
  if (d && t) {
2383
- const { actionName: _, arg: R } = gt(d, C, {
2383
+ const { actionName: R, arg: j } = gt(d, C, {
2384
2384
  id: e,
2385
2385
  dataSet: i,
2386
2386
  dataSetField: r
2387
2387
  });
2388
- s(t, Z(_, R));
2388
+ s(t, Z(R, j));
2389
2389
  }
2390
2390
  },
2391
2391
  [
@@ -2398,21 +2398,21 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2398
2398
  r,
2399
2399
  s
2400
2400
  ]
2401
- ), $ = B(() => {
2401
+ ), E = K(() => {
2402
2402
  if (f.onClear) {
2403
2403
  f.onClear();
2404
2404
  return;
2405
2405
  }
2406
2406
  if (g && t) {
2407
- const { actionName: E, arg: _ } = gt(g, "", {
2407
+ const { actionName: _, arg: R } = gt(g, "", {
2408
2408
  id: e,
2409
2409
  dataSet: i,
2410
2410
  dataSetField: r
2411
2411
  });
2412
- s(t, Z(E, _));
2412
+ s(t, Z(_, R));
2413
2413
  }
2414
2414
  }, [f.onClear, g, t, e, i, r, s]);
2415
- return _t(
2415
+ return Et(
2416
2416
  () => () => {
2417
2417
  u.current && clearTimeout(u.current);
2418
2418
  },
@@ -2427,13 +2427,13 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2427
2427
  onChange: N,
2428
2428
  onBlur: A,
2429
2429
  onPressEnter: S,
2430
- onClear: $,
2430
+ onClear: E,
2431
2431
  status: x ? "error" : void 0
2432
2432
  }
2433
2433
  ),
2434
2434
  x && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
2435
2435
  ] });
2436
- }, { Search: Oa } = _e, uc = ({
2436
+ }, { Search: Oa } = $e, uc = ({
2437
2437
  id: e,
2438
2438
  sessionId: t,
2439
2439
  develop: n,
@@ -2452,7 +2452,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2452
2452
  [t, i]
2453
2453
  ), v = y(() => {
2454
2454
  if (s && r) return h(s, r);
2455
- }, [s, r, h]), u = y(() => v ?? d ?? g, [v, d, g]), k = B((T) => {
2455
+ }, [s, r, h]), u = y(() => v ?? d ?? g, [v, d, g]), k = K((T) => {
2456
2456
  const w = T.target.value;
2457
2457
  if (c) {
2458
2458
  c(w);
@@ -2462,7 +2462,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2462
2462
  const { actionName: x, arg: C } = gt(a, w, { id: e, dataSet: i, dataSetField: r });
2463
2463
  p(t, Z(x, C));
2464
2464
  }
2465
- }, [c, s, r, f, a, t, e, p]), D = B((T) => {
2465
+ }, [c, s, r, f, a, t, e, p]), D = K((T) => {
2466
2466
  if (l) {
2467
2467
  l(T);
2468
2468
  return;
@@ -2470,7 +2470,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2470
2470
  o && t && p(t, Z(o, T));
2471
2471
  }, [l, o, t, p]);
2472
2472
  return /* @__PURE__ */ b(Oa, { ...m, disabled: n ? !1 : m.disabled, value: u, onChange: k, onSearch: D });
2473
- }, Ea = 200, fc = ({
2473
+ }, _a = 200, fc = ({
2474
2474
  id: e,
2475
2475
  sessionId: t,
2476
2476
  develop: n,
@@ -2497,70 +2497,70 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2497
2497
  dropdownMatchSelectWidth: C,
2498
2498
  ...N
2499
2499
  }) => {
2500
- const A = O((I) => I.addCommand), S = O((I) => I.setDataSet), $ = qt(null), E = $e(ce), _ = y(
2500
+ const A = O((I) => I.addCommand), S = O((I) => I.setDataSet), E = qt(null), _ = pe(re), R = y(
2501
2501
  () => et(t, i),
2502
2502
  [t, i]
2503
- ), R = v ?? (E == null ? void 0 : E.index), q = O(
2503
+ ), j = v ?? (_ == null ? void 0 : _.index), q = O(
2504
2504
  (I) => {
2505
2505
  var st;
2506
2506
  return t && e ? ((st = I.propsStore[`${t}_props`]) == null ? void 0 : st[e]) ?? null : null;
2507
2507
  }
2508
- ), U = O(
2509
- (I) => _ && r ? I.getDataSet(_, r) : void 0
2510
- ), K = y(
2508
+ ), H = O(
2509
+ (I) => R && r ? I.getDataSet(R, r) : void 0
2510
+ ), M = y(
2511
2511
  () => (q == null ? void 0 : q.optionsCfg) != null ? q.optionsCfg : c,
2512
2512
  [q == null ? void 0 : q.optionsCfg, c]
2513
- ), { options: V, loading: z } = be(
2513
+ ), { options: L, loading: z } = Se(
2514
2514
  x || (a ? o : void 0)
2515
- ), { options: Y, loading: M } = sn(
2516
- K == null ? void 0 : K.url,
2515
+ ), { options: Y, loading: $ } = sn(
2516
+ M == null ? void 0 : M.url,
2517
2517
  {
2518
- valueKey: (K == null ? void 0 : K.codeKey) || "value",
2519
- labelKey: (K == null ? void 0 : K.labelKey) || "label",
2520
- immediate: !!(K != null && K.url),
2521
- params: K == null ? void 0 : K.params,
2522
- field: K == null ? void 0 : K.field
2518
+ valueKey: (M == null ? void 0 : M.codeKey) || "value",
2519
+ labelKey: (M == null ? void 0 : M.labelKey) || "label",
2520
+ immediate: !!(M != null && M.url),
2521
+ params: M == null ? void 0 : M.params,
2522
+ field: M == null ? void 0 : M.field
2523
2523
  }
2524
- ), j = z || M, { validate: G, help: W } = Rt({
2524
+ ), B = z || $, { validate: G, help: W } = Rt({
2525
2525
  rules: l,
2526
2526
  dataSet: i,
2527
2527
  dataSetField: r,
2528
2528
  sessionId: t,
2529
2529
  id: e,
2530
2530
  develop: n
2531
- }), H = y(() => U != null && U !== "" ? U : (q == null ? void 0 : q.value) !== void 0 ? q.value : s ?? f, [U, q == null ? void 0 : q.value, s, f]), rt = y(
2531
+ }), U = y(() => H != null && H !== "" ? H : (q == null ? void 0 : q.value) !== void 0 ? q.value : s ?? f, [H, q == null ? void 0 : q.value, s, f]), rt = y(
2532
2532
  () => Gt(N, q ?? void 0),
2533
2533
  [N, q]
2534
- ), it = y(() => q != null && q.options && Array.isArray(q.options) ? q.options : K != null && K.url && Y.length > 0 ? Y : (x || a && o) && V.length > 0 ? V : h || [], [q == null ? void 0 : q.options, K == null ? void 0 : K.url, Y, x, a, o, V, h]), nt = y(() => {
2535
- if (it.length === 0) return H;
2536
- if (Array.isArray(H))
2537
- return H.map((st) => {
2534
+ ), it = y(() => q != null && q.options && Array.isArray(q.options) ? q.options : M != null && M.url && Y.length > 0 ? Y : (x || a && o) && L.length > 0 ? L : h || [], [q == null ? void 0 : q.options, M == null ? void 0 : M.url, Y, x, a, o, L, h]), nt = y(() => {
2535
+ if (it.length === 0) return U;
2536
+ if (Array.isArray(U))
2537
+ return U.map((st) => {
2538
2538
  var at;
2539
- return ((at = re(it, st)) == null ? void 0 : at.value) ?? st;
2539
+ return ((at = ie(it, st)) == null ? void 0 : at.value) ?? st;
2540
2540
  });
2541
- const I = re(it, H);
2542
- return (I == null ? void 0 : I.value) ?? H;
2543
- }, [H, it]), ht = B(
2541
+ const I = ie(it, U);
2542
+ return (I == null ? void 0 : I.value) ?? U;
2543
+ }, [U, it]), ht = K(
2544
2544
  (I, st) => {
2545
2545
  if (p) {
2546
2546
  p(I, st);
2547
2547
  return;
2548
2548
  }
2549
- if (_ && r && S(_, r, I), g && ($.current && clearTimeout($.current), $.current = setTimeout(() => {
2550
- $.current = null, G(I);
2551
- }, Ea)), m && t) {
2549
+ if (R && r && S(R, r, I), g && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
2550
+ E.current = null, G(I);
2551
+ }, _a)), m && t) {
2552
2552
  const { actionName: at, arg: Ot } = gt(m, I, {
2553
2553
  id: e,
2554
2554
  dataSet: i,
2555
2555
  dataSetField: r,
2556
- index: R
2556
+ index: j
2557
2557
  });
2558
2558
  A(t, Z(at, Ot));
2559
2559
  }
2560
2560
  },
2561
2561
  [
2562
2562
  p,
2563
- _,
2563
+ R,
2564
2564
  r,
2565
2565
  S,
2566
2566
  g,
@@ -2568,22 +2568,22 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2568
2568
  m,
2569
2569
  t,
2570
2570
  e,
2571
- R,
2571
+ j,
2572
2572
  A
2573
2573
  ]
2574
- ), At = B(() => {
2574
+ ), At = K(() => {
2575
2575
  d && G(nt);
2576
2576
  }, [d, G, nt]);
2577
- _t(
2577
+ Et(
2578
2578
  () => () => {
2579
- $.current && clearTimeout($.current);
2579
+ E.current && clearTimeout(E.current);
2580
2580
  },
2581
2581
  []
2582
2582
  );
2583
- const dt = B((I, st) => ((st == null ? void 0 : st.label) ?? "").toLowerCase().includes(I.toLowerCase()), []);
2583
+ const dt = K((I, st) => ((st == null ? void 0 : st.label) ?? "").toLowerCase().includes(I.toLowerCase()), []);
2584
2584
  return /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
2585
2585
  /* @__PURE__ */ b(
2586
- _n,
2586
+ En,
2587
2587
  {
2588
2588
  ...rt,
2589
2589
  disabled: n ? !1 : rt.disabled,
@@ -2593,7 +2593,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2593
2593
  onChange: ht,
2594
2594
  onBlur: At,
2595
2595
  filterOption: dt,
2596
- loading: j,
2596
+ loading: B,
2597
2597
  status: W ? "error" : void 0,
2598
2598
  style: { width: "100%", ...rt.style }
2599
2599
  }
@@ -2632,7 +2632,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2632
2632
  sessionId: t,
2633
2633
  id: e,
2634
2634
  develop: n
2635
- }), T = y(() => u !== void 0 ? !!u : (v == null ? void 0 : v.checked) !== void 0 ? v.checked : g ?? m, [u, v == null ? void 0 : v.checked, g, m]), w = B(
2635
+ }), T = y(() => u !== void 0 ? !!u : (v == null ? void 0 : v.checked) !== void 0 ? v.checked : g ?? m, [u, v == null ? void 0 : v.checked, g, m]), w = K(
2636
2636
  (C) => {
2637
2637
  if (d) {
2638
2638
  d(C);
@@ -2659,7 +2659,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2659
2659
  e,
2660
2660
  h
2661
2661
  ]
2662
- ), x = B(() => {
2662
+ ), x = K(() => {
2663
2663
  o && k(T);
2664
2664
  }, [o, k, T]);
2665
2665
  return /* @__PURE__ */ ct("div", { style: { display: "inline-block" }, onBlur: x, children: [
@@ -2695,8 +2695,8 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2695
2695
  [t, i]
2696
2696
  ), u = O(
2697
2697
  (S) => {
2698
- var $;
2699
- return t && e ? (($ = S.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
2698
+ var E;
2699
+ return t && e ? ((E = S.propsStore[`${t}_props`]) == null ? void 0 : E[e]) ?? null : null;
2700
2700
  }
2701
2701
  ), k = O(
2702
2702
  (S) => v && r ? S.getDataSet(v, r) : void 0
@@ -2707,42 +2707,42 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2707
2707
  sessionId: t,
2708
2708
  id: e,
2709
2709
  develop: n
2710
- }), w = B((S) => {
2710
+ }), w = K((S) => {
2711
2711
  if (!S) return null;
2712
2712
  if (Ut.isDayjs(S)) return S;
2713
2713
  if (typeof S == "string") {
2714
- const $ = Ut(S, o);
2715
- return $.isValid() ? $ : null;
2714
+ const E = Ut(S, o);
2715
+ return E.isValid() ? E : null;
2716
2716
  }
2717
2717
  return null;
2718
2718
  }, [o]), x = y(() => {
2719
2719
  const S = k ?? (u == null ? void 0 : u.value) ?? m ?? p;
2720
2720
  return w(S);
2721
- }, [k, u == null ? void 0 : u.value, m, p, w]), C = B(
2722
- (S, $) => {
2721
+ }, [k, u == null ? void 0 : u.value, m, p, w]), C = K(
2722
+ (S, E) => {
2723
2723
  if (g) {
2724
- g(S, $);
2724
+ g(S, E);
2725
2725
  return;
2726
2726
  }
2727
- const E = Array.isArray($) ? $[0] : $;
2728
- if (v && r && s(v, r, E), d && D(E), a && t) {
2729
- const { actionName: _, arg: R } = gt(a, E, {
2727
+ const _ = Array.isArray(E) ? E[0] : E;
2728
+ if (v && r && s(v, r, _), d && D(_), a && t) {
2729
+ const { actionName: R, arg: j } = gt(a, _, {
2730
2730
  id: e,
2731
2731
  dataSet: i,
2732
2732
  dataSetField: r
2733
2733
  });
2734
- f(t, Z(_, R));
2734
+ f(t, Z(R, j));
2735
2735
  }
2736
2736
  },
2737
2737
  [g, v, r, s, d, D, a, t, e, f]
2738
2738
  );
2739
- _t(() => {
2739
+ Et(() => {
2740
2740
  if (p && x === null && v && r) {
2741
2741
  const S = Ut(p).format(o);
2742
2742
  s(v, r, S);
2743
2743
  }
2744
2744
  }, [p, x, v, r, s, o]);
2745
- const N = B(() => {
2745
+ const N = K(() => {
2746
2746
  if (l) {
2747
2747
  const S = x ? x.format(o) : null;
2748
2748
  D(S);
@@ -2793,25 +2793,25 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2793
2793
  sessionId: t,
2794
2794
  id: e,
2795
2795
  develop: n
2796
- }), w = B((S) => {
2796
+ }), w = K((S) => {
2797
2797
  if (!S) return null;
2798
2798
  if (Ut.isDayjs(S)) return S;
2799
2799
  if (typeof S == "string") {
2800
- const $ = Ut(S, o);
2801
- return $.isValid() ? $ : null;
2800
+ const E = Ut(S, o);
2801
+ return E.isValid() ? E : null;
2802
2802
  }
2803
2803
  return null;
2804
- }, [o]), x = y(() => w(k ?? l ?? d), [k, l, d, w]), C = B((S, $) => {
2804
+ }, [o]), x = y(() => w(k ?? l ?? d), [k, l, d, w]), C = K((S, E) => {
2805
2805
  if (c) {
2806
- c(S, $);
2806
+ c(S, E);
2807
2807
  return;
2808
2808
  }
2809
- const E = $ || "";
2810
- if (u && r && v(u, r, E), m && D(E), a && t) {
2811
- const { actionName: _, arg: R } = gt(a, E, { id: e, dataSet: i, dataSetField: r });
2812
- f(t, Z(_, R));
2809
+ const _ = E || "";
2810
+ if (u && r && v(u, r, _), m && D(_), a && t) {
2811
+ const { actionName: R, arg: j } = gt(a, _, { id: e, dataSet: i, dataSetField: r });
2812
+ f(t, Z(R, j));
2813
2813
  }
2814
- }, [c, u, r, v, m, D, a, t, e, f]), N = B(() => {
2814
+ }, [c, u, r, v, m, D, a, t, e, f]), N = K(() => {
2815
2815
  p && D(x ? x.format(o) : "");
2816
2816
  }, [p, D, x, o]), A = T ? "error" : void 0;
2817
2817
  return /* @__PURE__ */ ct(ge, { children: [
@@ -2830,7 +2830,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2830
2830
  ),
2831
2831
  T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: T })
2832
2832
  ] });
2833
- }, { RangePicker: _a } = $n, yc = ({
2833
+ }, { RangePicker: Ea } = $n, yc = ({
2834
2834
  id: e,
2835
2835
  sessionId: t,
2836
2836
  develop: n,
@@ -2851,8 +2851,8 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2851
2851
  [t, i]
2852
2852
  ), u = O(
2853
2853
  (S) => {
2854
- var $;
2855
- return t && e ? (($ = S.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
2854
+ var E;
2855
+ return t && e ? ((E = S.propsStore[`${t}_props`]) == null ? void 0 : E[e]) ?? null : null;
2856
2856
  }
2857
2857
  ), k = O(
2858
2858
  (S) => v && r ? S.getDataSet(v, r) : void 0
@@ -2863,39 +2863,39 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2863
2863
  sessionId: t,
2864
2864
  id: e,
2865
2865
  develop: n
2866
- }), w = B((S) => {
2866
+ }), w = K((S) => {
2867
2867
  if (!S || !Array.isArray(S) || S.length !== 2) return null;
2868
- const [$, E] = S, _ = Ut.isDayjs($) ? $ : Ut($, o), R = Ut.isDayjs(E) ? E : Ut(E, o);
2869
- return _.isValid() && R.isValid() ? [_, R] : null;
2868
+ const [E, _] = S, R = Ut.isDayjs(E) ? E : Ut(E, o), j = Ut.isDayjs(_) ? _ : Ut(_, o);
2869
+ return R.isValid() && j.isValid() ? [R, j] : null;
2870
2870
  }, [o]), x = y(() => {
2871
2871
  const S = k ?? (u == null ? void 0 : u.value) ?? m ?? p;
2872
2872
  return w(S);
2873
2873
  }, [k, u == null ? void 0 : u.value, m, p, w]), C = y(
2874
2874
  () => Gt(h, u ?? void 0),
2875
2875
  [h, u]
2876
- ), N = B(
2877
- (S, $) => {
2876
+ ), N = K(
2877
+ (S, E) => {
2878
2878
  if (g) {
2879
- g(S, $);
2879
+ g(S, E);
2880
2880
  return;
2881
2881
  }
2882
- if (v && r && s(v, r, $), d && D($), a && t) {
2883
- const { actionName: E, arg: _ } = gt(a, $, {
2882
+ if (v && r && s(v, r, E), d && D(E), a && t) {
2883
+ const { actionName: _, arg: R } = gt(a, E, {
2884
2884
  id: e,
2885
2885
  dataSet: i,
2886
2886
  dataSetField: r
2887
2887
  });
2888
- f(t, Z(E, _));
2888
+ f(t, Z(_, R));
2889
2889
  }
2890
2890
  },
2891
2891
  [g, v, r, s, d, D, a, t, e, f]
2892
- ), A = B(() => {
2893
- var S, $;
2894
- l && D(x ? [(S = x[0]) == null ? void 0 : S.format(o), ($ = x[1]) == null ? void 0 : $.format(o)] : null);
2892
+ ), A = K(() => {
2893
+ var S, E;
2894
+ l && D(x ? [(S = x[0]) == null ? void 0 : S.format(o), (E = x[1]) == null ? void 0 : E.format(o)] : null);
2895
2895
  }, [l, D, x, o]);
2896
2896
  return /* @__PURE__ */ ct("div", { onBlur: A, children: [
2897
2897
  /* @__PURE__ */ b(
2898
- _a,
2898
+ Ea,
2899
2899
  {
2900
2900
  ...C,
2901
2901
  disabled: n ? !1 : C.disabled,
@@ -2946,21 +2946,21 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2946
2946
  sessionId: t,
2947
2947
  id: e,
2948
2948
  develop: n
2949
- }), $ = y(() => N !== void 0 ? N : (C == null ? void 0 : C.value) !== void 0 ? C.value : f ?? s, [N, C == null ? void 0 : C.value, f, s]), { options: E } = be(v), { options: _ } = sn(
2949
+ }), E = y(() => N !== void 0 ? N : (C == null ? void 0 : C.value) !== void 0 ? C.value : f ?? s, [N, C == null ? void 0 : C.value, f, s]), { options: _ } = Se(v), { options: R } = sn(
2950
2950
  o == null ? void 0 : o.url,
2951
2951
  {
2952
2952
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
2953
2953
  labelKey: (o == null ? void 0 : o.labelKey) || "label",
2954
2954
  immediate: !!(o != null && o.url)
2955
2955
  }
2956
- ), R = y(() => C != null && C.options ? C.options : o != null && o.url && _.length > 0 ? _ : v && E.length > 0 ? E : a, [C == null ? void 0 : C.options, o == null ? void 0 : o.url, _, v, E, a]), q = y(() => {
2957
- if (R.length === 0) return $;
2958
- const z = re(R, $);
2959
- return (z == null ? void 0 : z.value) ?? $;
2960
- }, [$, R]), U = y(
2956
+ ), j = y(() => C != null && C.options ? C.options : o != null && o.url && R.length > 0 ? R : v && _.length > 0 ? _ : a, [C == null ? void 0 : C.options, o == null ? void 0 : o.url, R, v, _, a]), q = y(() => {
2957
+ if (j.length === 0) return E;
2958
+ const z = ie(j, E);
2959
+ return (z == null ? void 0 : z.value) ?? E;
2960
+ }, [E, j]), H = y(
2961
2961
  () => Gt(D, C ?? void 0),
2962
2962
  [D, C]
2963
- ), K = B(
2963
+ ), M = K(
2964
2964
  (z) => {
2965
2965
  const Y = z.target.value;
2966
2966
  if (h) {
@@ -2968,12 +2968,12 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2968
2968
  return;
2969
2969
  }
2970
2970
  if (x && r && w(x, r, Y), p && A(Y), c && t) {
2971
- const { actionName: M, arg: j } = gt(c, Y, {
2971
+ const { actionName: $, arg: B } = gt(c, Y, {
2972
2972
  id: e,
2973
2973
  dataSet: i,
2974
2974
  dataSetField: r
2975
2975
  });
2976
- T(t, Z(M, j));
2976
+ T(t, Z($, B));
2977
2977
  }
2978
2978
  },
2979
2979
  [
@@ -2988,25 +2988,25 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
2988
2988
  e,
2989
2989
  T
2990
2990
  ]
2991
- ), V = B(() => {
2991
+ ), L = K(() => {
2992
2992
  m && A(q);
2993
2993
  }, [m, A, q]);
2994
- return /* @__PURE__ */ ct("div", { onBlur: V, children: [
2994
+ return /* @__PURE__ */ ct("div", { onBlur: L, children: [
2995
2995
  /* @__PURE__ */ b(
2996
2996
  Le.Group,
2997
2997
  {
2998
- ...U,
2999
- disabled: n ? !1 : U.disabled,
2998
+ ...H,
2999
+ disabled: n ? !1 : H.disabled,
3000
3000
  value: q,
3001
- onChange: K,
3001
+ onChange: M,
3002
3002
  buttonStyle: (C == null ? void 0 : C.buttonStyle) ?? l,
3003
3003
  optionType: (C == null ? void 0 : C.optionType) ?? d,
3004
- children: d === "button" ? R.map((z) => /* @__PURE__ */ b(Le.Button, { value: z.value, disabled: z.disabled, children: z.label }, z.value)) : /* @__PURE__ */ b(
3004
+ children: d === "button" ? j.map((z) => /* @__PURE__ */ b(Le.Button, { value: z.value, disabled: z.disabled, children: z.label }, z.value)) : /* @__PURE__ */ b(
3005
3005
  Yt,
3006
3006
  {
3007
3007
  orientation: (C == null ? void 0 : C.direction) ?? u ?? "horizontal",
3008
3008
  wrap: !0,
3009
- children: R.map((z) => /* @__PURE__ */ b(Le, { value: z.value, disabled: z.disabled, children: z.label }, z.value))
3009
+ children: j.map((z) => /* @__PURE__ */ b(Le, { value: z.value, disabled: z.disabled, children: z.label }, z.value))
3010
3010
  }
3011
3011
  )
3012
3012
  }
@@ -3038,24 +3038,24 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3038
3038
  remoteUrl: T,
3039
3039
  ...w
3040
3040
  }) => {
3041
- const x = O((j) => j.addCommand), C = O((j) => j.setDataSet), N = y(
3041
+ const x = O((B) => B.addCommand), C = O((B) => B.setDataSet), N = y(
3042
3042
  () => et(t, i),
3043
3043
  [t, i]
3044
3044
  ), A = O(
3045
- (j) => {
3045
+ (B) => {
3046
3046
  var G;
3047
- return t && e ? ((G = j.propsStore[`${t}_props`]) == null ? void 0 : G[e]) ?? null : null;
3047
+ return t && e ? ((G = B.propsStore[`${t}_props`]) == null ? void 0 : G[e]) ?? null : null;
3048
3048
  }
3049
3049
  ), S = O(
3050
- (j) => N && r ? j.getDataSet(N, r) : void 0
3051
- ), { validate: $, help: E } = Rt({
3050
+ (B) => N && r ? B.getDataSet(N, r) : void 0
3051
+ ), { validate: E, help: _ } = Rt({
3052
3052
  rules: d,
3053
3053
  dataSet: i,
3054
3054
  dataSetField: r,
3055
3055
  sessionId: t,
3056
3056
  id: e,
3057
3057
  develop: n
3058
- }), { options: _ } = be(k), { options: R } = sn(
3058
+ }), { options: R } = Se(k), { options: j } = sn(
3059
3059
  o == null ? void 0 : o.url,
3060
3060
  {
3061
3061
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
@@ -3065,60 +3065,60 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3065
3065
  ), q = y(() => {
3066
3066
  if (!c)
3067
3067
  return S !== void 0 ? !!S : (A == null ? void 0 : A.checked) !== void 0 ? A.checked : f ?? v;
3068
- }, [c, S, A == null ? void 0 : A.checked, f, v]), U = y(() => A != null && A.options ? A.options : o != null && o.url && R.length > 0 ? R : k && _.length > 0 ? _ : a, [A == null ? void 0 : A.options, o == null ? void 0 : o.url, R, k, _, a]), K = y(() => {
3068
+ }, [c, S, A == null ? void 0 : A.checked, f, v]), H = y(() => A != null && A.options ? A.options : o != null && o.url && j.length > 0 ? j : k && R.length > 0 ? R : a, [A == null ? void 0 : A.options, o == null ? void 0 : o.url, j, k, R, a]), M = y(() => {
3069
3069
  if (!c) return [];
3070
- let j = [];
3071
- return Array.isArray(S) ? j = S : Array.isArray(A == null ? void 0 : A.values) ? j = A.values : j = s || [], U.length === 0 ? j : j.map((G) => {
3070
+ let B = [];
3071
+ return Array.isArray(S) ? B = S : Array.isArray(A == null ? void 0 : A.values) ? B = A.values : B = s || [], H.length === 0 ? B : B.map((G) => {
3072
3072
  var W;
3073
- return ((W = re(U, G)) == null ? void 0 : W.value) ?? G;
3073
+ return ((W = ie(H, G)) == null ? void 0 : W.value) ?? G;
3074
3074
  });
3075
- }, [c, S, A == null ? void 0 : A.values, s, U]), V = y(
3075
+ }, [c, S, A == null ? void 0 : A.values, s, H]), L = y(
3076
3076
  () => Gt(w, A ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3077
3077
  [w, A]
3078
- ), z = B((j) => {
3079
- const G = j.target.checked;
3078
+ ), z = K((B) => {
3079
+ const G = B.target.checked;
3080
3080
  if (p) {
3081
3081
  p(G);
3082
3082
  return;
3083
3083
  }
3084
- if (N && r && C(N, r, G), m && $(G), l && t) {
3085
- const { actionName: W, arg: H } = gt(l, G, { id: e, dataSet: i, dataSetField: r });
3086
- x(t, Z(W, H));
3084
+ if (N && r && C(N, r, G), m && E(G), l && t) {
3085
+ const { actionName: W, arg: U } = gt(l, G, { id: e, dataSet: i, dataSetField: r });
3086
+ x(t, Z(W, U));
3087
3087
  }
3088
- }, [p, N, r, C, m, $, l, t, e, x]), Y = B((j) => {
3088
+ }, [p, N, r, C, m, E, l, t, e, x]), Y = K((B) => {
3089
3089
  if (h) {
3090
- h(j);
3090
+ h(B);
3091
3091
  return;
3092
3092
  }
3093
- if (N && r && C(N, r, j), m && $(j), l && t) {
3094
- const { actionName: G, arg: W } = gt(l, j, { id: e, dataSet: i, dataSetField: r });
3093
+ if (N && r && C(N, r, B), m && E(B), l && t) {
3094
+ const { actionName: G, arg: W } = gt(l, B, { id: e, dataSet: i, dataSetField: r });
3095
3095
  x(t, Z(G, W));
3096
3096
  }
3097
- }, [h, N, r, C, m, $, l, t, e, x]), M = B(() => {
3098
- g && $(c ? K : q);
3099
- }, [g, $, c, K, q]);
3100
- return c && U.length > 0 ? /* @__PURE__ */ ct("div", { onBlur: M, children: [
3101
- /* @__PURE__ */ b(oe.Group, { ...V, value: K, onChange: Y, disabled: n ? !1 : V.disabled, children: /* @__PURE__ */ b(
3097
+ }, [h, N, r, C, m, E, l, t, e, x]), $ = K(() => {
3098
+ g && E(c ? M : q);
3099
+ }, [g, E, c, M, q]);
3100
+ return c && H.length > 0 ? /* @__PURE__ */ ct("div", { onBlur: $, children: [
3101
+ /* @__PURE__ */ b(ce.Group, { ...L, value: M, onChange: Y, disabled: n ? !1 : L.disabled, children: /* @__PURE__ */ b(
3102
3102
  Yt,
3103
3103
  {
3104
- direction: V.direction ?? D,
3104
+ direction: L.direction ?? D,
3105
3105
  wrap: !0,
3106
- children: U.map((j) => /* @__PURE__ */ b(oe, { value: j.value, disabled: j.disabled, children: j.label }, j.value))
3106
+ children: H.map((B) => /* @__PURE__ */ b(ce, { value: B.value, disabled: B.disabled, children: B.label }, B.value))
3107
3107
  }
3108
3108
  ) }),
3109
- E && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E })
3110
- ] }) : /* @__PURE__ */ ct("div", { onBlur: M, children: [
3109
+ _ && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: _ })
3110
+ ] }) : /* @__PURE__ */ ct("div", { onBlur: $, children: [
3111
3111
  /* @__PURE__ */ b(
3112
- oe,
3112
+ ce,
3113
3113
  {
3114
- ...V,
3115
- disabled: n ? !1 : V.disabled,
3114
+ ...L,
3115
+ disabled: n ? !1 : L.disabled,
3116
3116
  checked: q,
3117
3117
  onChange: z,
3118
3118
  children: u
3119
3119
  }
3120
3120
  ),
3121
- E && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E })
3121
+ _ && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: _ })
3122
3122
  ] });
3123
3123
  }, vc = ({
3124
3124
  id: e,
@@ -3152,7 +3152,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3152
3152
  sessionId: t,
3153
3153
  id: e,
3154
3154
  develop: n
3155
- }), T = y(() => u !== void 0 ? u : (v == null ? void 0 : v.value) !== void 0 ? v.value : g ?? m, [u, v == null ? void 0 : v.value, g, m]), w = B(
3155
+ }), T = y(() => u !== void 0 ? u : (v == null ? void 0 : v.value) !== void 0 ? v.value : g ?? m, [u, v == null ? void 0 : v.value, g, m]), w = K(
3156
3156
  (N) => {
3157
3157
  if (d) {
3158
3158
  d(N);
@@ -3168,7 +3168,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3168
3168
  }
3169
3169
  },
3170
3170
  [d, s, r, f, l, k, a, t, e, h]
3171
- ), x = B(() => {
3171
+ ), x = K(() => {
3172
3172
  c && k(T);
3173
3173
  }, [c, k, T]), C = y(
3174
3174
  () => Gt(p, v ?? void 0),
@@ -3203,7 +3203,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3203
3203
  [t, i]
3204
3204
  ), f = y(() => {
3205
3205
  if (h && r) return m(h, r);
3206
- }, [h, r, m]), s = y(() => f ?? c ?? l, [f, c, l]), v = B((u) => {
3206
+ }, [h, r, m]), s = y(() => f ?? c ?? l, [f, c, l]), v = K((u) => {
3207
3207
  if (o) {
3208
3208
  o(u);
3209
3209
  return;
@@ -3256,58 +3256,58 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3256
3256
  remoteUrl: f,
3257
3257
  ...s
3258
3258
  }) => {
3259
- const v = O((K) => K.addCommand), u = O((K) => K.setDataSet), k = qt(null), [D, T] = yt([]), [w, x] = yt(!1), C = y(
3259
+ const v = O((M) => M.addCommand), u = O((M) => M.setDataSet), k = qt(null), [D, T] = yt([]), [w, x] = yt(!1), C = y(
3260
3260
  () => et(t, i),
3261
3261
  [t, i]
3262
3262
  ), N = O(
3263
- (K) => C && r ? K.getDataSet(C, r) : void 0
3264
- ), { validate: A, help: S, validateStatus: $ } = Rt({
3263
+ (M) => C && r ? M.getDataSet(C, r) : void 0
3264
+ ), { validate: A, help: S, validateStatus: E } = Rt({
3265
3265
  rules: o,
3266
3266
  dataSet: i,
3267
3267
  dataSetField: r,
3268
3268
  sessionId: t,
3269
3269
  id: e,
3270
3270
  develop: n
3271
- }), E = y(() => (a == null ? void 0 : a.url) && D.length > 0, [a == null ? void 0 : a.url, D.length]), _ = y(() => {
3272
- let K = N ?? h ?? p ?? [];
3273
- return typeof K == "string" ? E ? Dn(K).map((z) => Ma(z, D)).filter((z) => Array.isArray(z) && z.length > 0) : [K] : xn(K) && E ? K.map((z) => Dn(z)).filter((z) => Array.isArray(z) && z.length > 0) : An(K) && E ? K.filter((V) => Array.isArray(V) && V.length > 0) : K;
3274
- }, [N, h, p, E, D]), R = y(() => a != null && a.url && D.length > 0 ? D : m || [], [a == null ? void 0 : a.url, D, m]);
3275
- _t(() => {
3271
+ }), _ = y(() => (a == null ? void 0 : a.url) && D.length > 0, [a == null ? void 0 : a.url, D.length]), R = y(() => {
3272
+ let M = N ?? h ?? p ?? [];
3273
+ return typeof M == "string" ? _ ? Dn(M).map((z) => Ma(z, D)).filter((z) => Array.isArray(z) && z.length > 0) : [M] : xn(M) && _ ? M.map((z) => Dn(z)).filter((z) => Array.isArray(z) && z.length > 0) : An(M) && _ ? M.filter((L) => Array.isArray(L) && L.length > 0) : M;
3274
+ }, [N, h, p, _, D]), j = y(() => a != null && a.url && D.length > 0 ? D : m || [], [a == null ? void 0 : a.url, D, m]);
3275
+ Et(() => {
3276
3276
  (async () => {
3277
3277
  if (a != null && a.url) {
3278
3278
  x(!0);
3279
3279
  try {
3280
- const V = await ne({ url: a.url, method: "GET" }), z = Array.isArray(V) ? V : V != null && V.data ? Array.isArray(V.data) ? V.data : V.data.list || V.data.records || [] : [], Y = a.codeKey || "value", M = a.labelKey || "label", j = a.childrenKey || "children", G = a.maxLevel || 5, W = Zn(z, {
3280
+ const L = await ne({ url: a.url, method: "GET" }), z = Array.isArray(L) ? L : L != null && L.data ? Array.isArray(L.data) ? L.data : L.data.list || L.data.records || [] : [], Y = a.codeKey || "value", $ = a.labelKey || "label", B = a.childrenKey || "children", G = a.maxLevel || 5, W = Zn(z, {
3281
3281
  codeKey: Y,
3282
- labelKey: M,
3283
- childrenKey: j,
3282
+ labelKey: $,
3283
+ childrenKey: B,
3284
3284
  maxLevel: G
3285
3285
  });
3286
3286
  T(W);
3287
- } catch (V) {
3288
- console.error("Failed to load remote options:", V), T([]);
3287
+ } catch (L) {
3288
+ console.error("Failed to load remote options:", L), T([]);
3289
3289
  } finally {
3290
3290
  x(!1);
3291
3291
  }
3292
3292
  }
3293
3293
  })();
3294
3294
  }, [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]);
3295
- const q = B(
3296
- (K, V) => {
3295
+ const q = K(
3296
+ (M, L) => {
3297
3297
  if (g) {
3298
- g(K, V);
3298
+ g(M, L);
3299
3299
  return;
3300
3300
  }
3301
- let z = K;
3302
- if (xn(K) && E ? z = String(K[K.length - 1] || "") : An(K) && E && (z = K.map((Y) => Y.join(","))), C && r && u(C, r, z), l && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
3303
- k.current = null, A(K);
3301
+ let z = M;
3302
+ if (xn(M) && _ ? z = String(M[M.length - 1] || "") : An(M) && _ && (z = M.map((Y) => Y.join(","))), C && r && u(C, r, z), l && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
3303
+ k.current = null, A(M);
3304
3304
  }, $a)), d && t) {
3305
- const { actionName: Y, arg: M } = gt(d, K, {
3305
+ const { actionName: Y, arg: $ } = gt(d, M, {
3306
3306
  id: e,
3307
3307
  dataSet: i,
3308
3308
  dataSetField: r
3309
3309
  });
3310
- v(t, Z(Y, M));
3310
+ v(t, Z(Y, $));
3311
3311
  }
3312
3312
  },
3313
3313
  [
@@ -3321,12 +3321,12 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3321
3321
  t,
3322
3322
  e,
3323
3323
  v,
3324
- E
3324
+ _
3325
3325
  ]
3326
- ), U = B(() => {
3327
- c && A(_);
3328
- }, [c, A, _]);
3329
- return _t(
3326
+ ), H = K(() => {
3327
+ c && A(R);
3328
+ }, [c, A, R]);
3329
+ return Et(
3330
3330
  () => () => {
3331
3331
  k.current && clearTimeout(k.current);
3332
3332
  },
@@ -3338,12 +3338,12 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3338
3338
  ...s,
3339
3339
  disabled: n ? !1 : s.disabled,
3340
3340
  open: n ? !1 : void 0,
3341
- value: _,
3342
- options: R,
3341
+ value: R,
3342
+ options: j,
3343
3343
  onChange: q,
3344
- onBlur: U,
3344
+ onBlur: H,
3345
3345
  loading: w,
3346
- status: $,
3346
+ status: E,
3347
3347
  style: { width: "100%", ...s.style }
3348
3348
  }
3349
3349
  ),
@@ -3370,16 +3370,16 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3370
3370
  validateOnBlur: u,
3371
3371
  ...k
3372
3372
  }) => {
3373
- const D = O((V) => V.addCommand), T = O((V) => V.setDataSet), w = y(
3373
+ const D = O((L) => L.addCommand), T = O((L) => L.setDataSet), w = y(
3374
3374
  () => et(t, i),
3375
3375
  [t, i]
3376
3376
  ), x = O(
3377
- (V) => {
3377
+ (L) => {
3378
3378
  var z;
3379
- return t && e ? ((z = V.propsStore[`${t}_props`]) == null ? void 0 : z[e]) ?? null : null;
3379
+ return t && e ? ((z = L.propsStore[`${t}_props`]) == null ? void 0 : z[e]) ?? null : null;
3380
3380
  }
3381
3381
  ), C = O(
3382
- (V) => w && r ? V.getDataSet(w, r) : void 0
3382
+ (L) => w && r ? L.getDataSet(w, r) : void 0
3383
3383
  ), { validate: N, help: A } = Rt({
3384
3384
  rules: s,
3385
3385
  dataSet: i,
@@ -3390,59 +3390,59 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3390
3390
  }), S = y(
3391
3391
  () => C ?? (x == null ? void 0 : x.value) ?? c ?? l,
3392
3392
  [C, x == null ? void 0 : x.value, c, l]
3393
- ), $ = y(
3393
+ ), E = y(
3394
3394
  () => Gt(k, x ?? void 0),
3395
3395
  [k, x]
3396
- ), E = B(
3397
- (V, z, Y) => {
3396
+ ), _ = K(
3397
+ (L, z, Y) => {
3398
3398
  if (o) {
3399
- o(V, z, Y);
3399
+ o(L, z, Y);
3400
3400
  return;
3401
3401
  }
3402
- if (w && r && T(w, r, V), v && N(V), a && t) {
3403
- const { actionName: M, arg: j } = gt(a, V, {
3402
+ if (w && r && T(w, r, L), v && N(L), a && t) {
3403
+ const { actionName: $, arg: B } = gt(a, L, {
3404
3404
  id: e,
3405
3405
  dataSet: i,
3406
3406
  dataSetField: r
3407
3407
  });
3408
- D(t, Z(M, j));
3408
+ D(t, Z($, B));
3409
3409
  }
3410
3410
  },
3411
3411
  [o, w, r, T, v, N, a, t, e, D]
3412
- ), _ = B(() => {
3412
+ ), R = K(() => {
3413
3413
  u && N(S);
3414
- }, [u, N, S]), R = y(() => {
3414
+ }, [u, N, S]), j = y(() => {
3415
3415
  if (!f) return;
3416
- const V = {};
3416
+ const L = {};
3417
3417
  return Object.entries(f).forEach(([z, Y]) => {
3418
- Y !== "" && Y !== void 0 && Y !== null && (V[z] = Y);
3419
- }), Object.keys(V).length > 0 ? V : void 0;
3418
+ Y !== "" && Y !== void 0 && Y !== null && (L[z] = Y);
3419
+ }), Object.keys(L).length > 0 ? L : void 0;
3420
3420
  }, [f]), q = y(() => {
3421
- if (R)
3421
+ if (j)
3422
3422
  return {
3423
3423
  components: {
3424
- TreeSelect: R
3424
+ TreeSelect: j
3425
3425
  }
3426
3426
  };
3427
- }, [R]), U = A ? "error" : void 0, K = /* @__PURE__ */ ct("div", { onBlur: _, children: [
3427
+ }, [j]), H = A ? "error" : void 0, M = /* @__PURE__ */ ct("div", { onBlur: R, children: [
3428
3428
  /* @__PURE__ */ b(
3429
3429
  hr,
3430
3430
  {
3431
- ...$,
3432
- disabled: n ? !1 : $.disabled,
3431
+ ...E,
3432
+ disabled: n ? !1 : E.disabled,
3433
3433
  open: n ? !1 : void 0,
3434
3434
  treeData: d,
3435
3435
  value: S,
3436
- onChange: E,
3437
- style: { width: "100%", ...$.style },
3436
+ onChange: _,
3437
+ style: { width: "100%", ...E.style },
3438
3438
  styles: p,
3439
3439
  classNames: h,
3440
- status: U
3440
+ status: H
3441
3441
  }
3442
3442
  ),
3443
3443
  A && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
3444
3444
  ] });
3445
- return q ? /* @__PURE__ */ b($t, { theme: q, children: K }) : K;
3445
+ return q ? /* @__PURE__ */ b($t, { theme: q, children: M }) : M;
3446
3446
  }, Dc = ({
3447
3447
  id: e,
3448
3448
  sessionId: t,
@@ -3467,23 +3467,23 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3467
3467
  [T, k]
3468
3468
  ), N = O(
3469
3469
  (P) => {
3470
- var L;
3471
- return T && e ? ((L = P.propsStore[`${T}_props`]) == null ? void 0 : L[e]) ?? null : null;
3470
+ var V;
3471
+ return T && e ? ((V = P.propsStore[`${T}_props`]) == null ? void 0 : V[e]) ?? null : null;
3472
3472
  }
3473
3473
  ), A = O(
3474
3474
  (P) => C && D ? P.getDataSet(C, D) : void 0
3475
- ), { validate: S, help: $ } = Rt({
3475
+ ), { validate: S, help: E } = Rt({
3476
3476
  rules: c,
3477
3477
  dataSet: k,
3478
3478
  dataSetField: D,
3479
3479
  sessionId: T,
3480
3480
  id: e,
3481
3481
  develop: n
3482
- }), E = B((P) => P.map((L) => {
3482
+ }), _ = K((P) => P.map((V) => {
3483
3483
  var tt;
3484
- return ((tt = L == null ? void 0 : L.response) == null ? void 0 : tt.src) ?? (L == null ? void 0 : L.src) ?? (L == null ? void 0 : L.url) ?? (L == null ? void 0 : L.thumbUrl) ?? "";
3485
- }).filter((L) => L && typeof L == "string"), []), _ = B((P) => {
3486
- const L = Pt().viewRes, tt = (Q) => (L ? L(Q) : Q) || Q;
3484
+ return ((tt = V == null ? void 0 : V.response) == null ? void 0 : tt.src) ?? (V == null ? void 0 : V.src) ?? (V == null ? void 0 : V.url) ?? (V == null ? void 0 : V.thumbUrl) ?? "";
3485
+ }).filter((V) => V && typeof V == "string"), []), R = K((P) => {
3486
+ const V = Pt().viewRes, tt = (Q) => (V ? V(Q) : Q) || Q;
3487
3487
  return P.map((Q, lt) => {
3488
3488
  const ft = tt(Q);
3489
3489
  return {
@@ -3495,8 +3495,8 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3495
3495
  response: { src: Q }
3496
3496
  };
3497
3497
  });
3498
- }, []), R = B((P) => {
3499
- const L = Pt().viewRes, tt = (Q) => (Q && L ? L(Q) : Q) || Q;
3498
+ }, []), j = K((P) => {
3499
+ const V = Pt().viewRes, tt = (Q) => (Q && V ? V(Q) : Q) || Q;
3500
3500
  return P.map((Q) => {
3501
3501
  var X;
3502
3502
  const lt = ((X = Q == null ? void 0 : Q.response) == null ? void 0 : X.src) ?? (Q == null ? void 0 : Q.src) ?? (Q == null ? void 0 : Q.url) ?? (Q == null ? void 0 : Q.thumbUrl) ?? "", ft = typeof lt == "string" ? tt(lt) : lt, Dt = {};
@@ -3506,45 +3506,45 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3506
3506
  }
3507
3507
  return ft && typeof ft == "string" && (Dt.url = ft, Dt.thumbUrl = ft), Dt;
3508
3508
  });
3509
- }, []), [q, U] = yt(null), K = y(() => {
3509
+ }, []), [q, H] = yt(null), M = y(() => {
3510
3510
  const P = A ?? (N == null ? void 0 : N.fileList) ?? m;
3511
3511
  if (P != null) {
3512
- if (typeof P == "string" && P) return _([P]);
3512
+ if (typeof P == "string" && P) return R([P]);
3513
3513
  if (Array.isArray(P))
3514
- return P.length > 0 && typeof P[0] == "string" ? _(P) : R(P);
3514
+ return P.length > 0 && typeof P[0] == "string" ? R(P) : j(P);
3515
3515
  }
3516
- }, [A, N == null ? void 0 : N.fileList, m, _, R]), V = q ?? K, z = y(
3516
+ }, [A, N == null ? void 0 : N.fileList, m, R, j]), L = q ?? M, z = y(
3517
3517
  () => Gt(v, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
3518
3518
  [v, N]
3519
- ), Y = B((P) => P.size / 1024 / 1024 < f ? !0 : (xe.error(`文件大小不能超过 ${f}MB`), !1), [f]), M = B(async (P) => {
3520
- const { file: L, onSuccess: tt, onError: Q, onProgress: lt } = P;
3519
+ ), Y = K((P) => P.size / 1024 / 1024 < f ? !0 : (Ae.error(`文件大小不能超过 ${f}MB`), !1), [f]), $ = K(async (P) => {
3520
+ const { file: V, onSuccess: tt, onError: Q, onProgress: lt } = P;
3521
3521
  if (Pt().upload)
3522
3522
  try {
3523
3523
  lt == null || lt({ percent: 30 });
3524
- const Dt = await Jn(L, {
3524
+ const Dt = await Jn(V, {
3525
3525
  url: h,
3526
3526
  headers: {
3527
3527
  Authorization: nn() ? `Bearer ${nn()}` : ""
3528
3528
  }
3529
3529
  });
3530
- lt == null || lt({ percent: 100 }), tt == null || tt(Dt, L);
3530
+ lt == null || lt({ percent: 100 }), tt == null || tt(Dt, V);
3531
3531
  } catch (Dt) {
3532
- Q == null || Q(Dt), xe.error("上传失败");
3532
+ Q == null || Q(Dt), Ae.error("上传失败");
3533
3533
  }
3534
3534
  else
3535
- Q == null || Q(new Error("Upload handler not configured")), xe.warning("上传功能未配置");
3536
- }, [h]), j = B(
3535
+ Q == null || Q(new Error("Upload handler not configured")), Ae.warning("上传功能未配置");
3536
+ }, [h]), B = K(
3537
3537
  (P) => {
3538
3538
  if (g) {
3539
3539
  g(P);
3540
3540
  return;
3541
3541
  }
3542
- const L = Array.isArray(P.fileList) ? R(P.fileList) : P.fileList, tt = Array.isArray(L) ? E(L) : [], Q = Array.isArray(L) && L.some((ft) => (ft == null ? void 0 : ft.status) === "uploading");
3543
- C && D && (tt.length > 0 || !Array.isArray(L) || L.length === 0) ? (x(C, D, tt), U(null)) : Q ? U(L) : L.length === 0 && U(null), d && S(L), a && T && w(
3542
+ const V = Array.isArray(P.fileList) ? j(P.fileList) : P.fileList, tt = Array.isArray(V) ? _(V) : [], Q = Array.isArray(V) && V.some((ft) => (ft == null ? void 0 : ft.status) === "uploading");
3543
+ C && D && (tt.length > 0 || !Array.isArray(V) || V.length === 0) ? (x(C, D, tt), H(null)) : Q ? H(V) : V.length === 0 && H(null), d && S(V), a && T && w(
3544
3544
  T,
3545
3545
  Z(a, {
3546
3546
  file: P.file,
3547
- fileList: L,
3547
+ fileList: V,
3548
3548
  src: tt
3549
3549
  })
3550
3550
  );
@@ -3559,20 +3559,20 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3559
3559
  a,
3560
3560
  T,
3561
3561
  w,
3562
- R,
3563
- E
3562
+ j,
3563
+ _
3564
3564
  ]
3565
- ), G = B(() => {
3566
- l && S(V);
3567
- }, [l, S, V]), W = B((P) => {
3565
+ ), G = K(() => {
3566
+ l && S(L);
3567
+ }, [l, S, L]), W = K((P) => {
3568
3568
  var ft;
3569
- const L = P.url || P.thumbUrl;
3570
- if (!L) return "";
3571
- const tt = ((ft = P.response) == null ? void 0 : ft.src) ?? (typeof L == "string" ? L : ""), Q = Pt().viewRes, lt = tt && Q ? Q(tt) : L;
3569
+ const V = P.url || P.thumbUrl;
3570
+ if (!V) return "";
3571
+ const tt = ((ft = P.response) == null ? void 0 : ft.src) ?? (typeof V == "string" ? V : ""), Q = Pt().viewRes, lt = tt && Q ? Q(tt) : V;
3572
3572
  return String(lt).replace(/([?&])download=1(&|$)/, (Dt, X, mt) => mt ? X : "");
3573
- }, []), H = B((P) => {
3573
+ }, []), U = K((P) => {
3574
3574
  var Q, lt;
3575
- const L = ((Q = P.response) == null ? void 0 : Q.src) ?? P.name ?? "", tt = ((lt = String(L).split(".").pop()) == null ? void 0 : lt.toLowerCase()) || "";
3575
+ const V = ((Q = P.response) == null ? void 0 : Q.src) ?? P.name ?? "", tt = ((lt = String(V).split(".").pop()) == null ? void 0 : lt.toLowerCase()) || "";
3576
3576
  return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(tt) || /^data:image\//.test(W(P));
3577
3577
  }, [W]), [rt, it] = yt({
3578
3578
  url: "",
@@ -3580,15 +3580,15 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3580
3580
  urls: [],
3581
3581
  current: 0,
3582
3582
  open: !1
3583
- }), nt = B((P) => {
3584
- const L = W(P);
3585
- if (L)
3586
- if (H(P) && (V != null && V.length)) {
3587
- const tt = V.filter((ft) => H(ft)), Q = tt.map((ft) => W(ft)).filter(Boolean), lt = tt.findIndex((ft) => (ft.uid || ft.url) === (P.uid || P.url));
3588
- it({ url: L, name: P.name, urls: Q, current: lt >= 0 ? lt : 0, open: !0 });
3589
- } else H(P) || window.open(L, "_blank");
3590
- }, [W, H, V]), At = !!Pt().upload && !s, dt = z, I = dt.buttonText ?? o, st = dt.listType ?? v.listType, at = dt.maxCount, Ot = (V == null ? void 0 : V.length) ?? 0, kt = typeof at == "number" && Ot >= at, jt = B(
3591
- (P) => kt ? (xe.warning(`最多只能上传 ${at} 个文件`), !1) : Y(P),
3583
+ }), nt = K((P) => {
3584
+ const V = W(P);
3585
+ if (V)
3586
+ if (U(P) && (L != null && L.length)) {
3587
+ const tt = L.filter((ft) => U(ft)), Q = tt.map((ft) => W(ft)).filter(Boolean), lt = tt.findIndex((ft) => (ft.uid || ft.url) === (P.uid || P.url));
3588
+ it({ url: V, name: P.name, urls: Q, current: lt >= 0 ? lt : 0, open: !0 });
3589
+ } else U(P) || window.open(V, "_blank");
3590
+ }, [W, U, L]), At = !!Pt().upload && !s, dt = z, I = dt.buttonText ?? o, st = dt.listType ?? v.listType, at = dt.maxCount, Ot = (L == null ? void 0 : L.length) ?? 0, kt = typeof at == "number" && Ot >= at, jt = K(
3591
+ (P) => kt ? (Ae.warning(`最多只能上传 ${at} 个文件`), !1) : Y(P),
3592
3592
  [kt, at, Y]
3593
3593
  );
3594
3594
  return /* @__PURE__ */ ct("div", { onBlur: G, children: [
@@ -3597,11 +3597,11 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3597
3597
  {
3598
3598
  ...z,
3599
3599
  disabled: n ? !1 : z.disabled,
3600
- fileList: V,
3601
- onChange: j,
3600
+ fileList: L,
3601
+ onChange: B,
3602
3602
  onPreview: nt,
3603
3603
  beforeUpload: jt,
3604
- customRequest: At ? M : void 0,
3604
+ customRequest: At ? $ : void 0,
3605
3605
  action: At ? void 0 : s || h,
3606
3606
  openFileDialogOnClick: !n,
3607
3607
  children: !kt && (p || (st === "picture-card" || st === "picture-circle" ? /* @__PURE__ */ ct("button", { style: { border: 0, background: "none" }, type: "button", children: [
@@ -3610,25 +3610,25 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3610
3610
  ] }) : /* @__PURE__ */ b(Zt, { icon: /* @__PURE__ */ b(Xr, {}), children: I })))
3611
3611
  }
3612
3612
  ),
3613
- $ && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: $ }),
3613
+ E && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E }),
3614
3614
  rt.url && /* @__PURE__ */ b("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: rt.urls.length > 1 ? /* @__PURE__ */ b(
3615
3615
  Qt.PreviewGroup,
3616
3616
  {
3617
3617
  preview: {
3618
3618
  current: rt.current,
3619
- onOpenChange: (P) => !P && it((L) => ({ ...L, open: !1 }))
3619
+ onOpenChange: (P) => !P && it((V) => ({ ...V, open: !1 }))
3620
3620
  },
3621
- children: rt.urls.map((P, L) => /* @__PURE__ */ b(
3621
+ children: rt.urls.map((P, V) => /* @__PURE__ */ b(
3622
3622
  Qt,
3623
3623
  {
3624
3624
  src: P,
3625
3625
  style: { width: 1, height: 1 },
3626
3626
  preview: {
3627
- open: rt.open && rt.current === L,
3627
+ open: rt.open && rt.current === V,
3628
3628
  onOpenChange: (tt) => !tt && it((Q) => ({ ...Q, open: !1 }))
3629
3629
  }
3630
3630
  },
3631
- L
3631
+ V
3632
3632
  ))
3633
3633
  }
3634
3634
  ) : /* @__PURE__ */ b(
@@ -3639,7 +3639,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3639
3639
  style: { width: 1, height: 1 },
3640
3640
  preview: {
3641
3641
  open: rt.open,
3642
- onOpenChange: (P) => !P && it((L) => ({ ...L, open: !1 }))
3642
+ onOpenChange: (P) => !P && it((V) => ({ ...V, open: !1 }))
3643
3643
  }
3644
3644
  }
3645
3645
  ) })
@@ -3663,18 +3663,18 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3663
3663
  searchAction: f,
3664
3664
  ...s
3665
3665
  }) => {
3666
- const v = O((R) => R.addCommand), u = O((R) => R.getDataSet), k = O((R) => R.setDataSet), D = y(
3666
+ const v = O((j) => j.addCommand), u = O((j) => j.getDataSet), k = O((j) => j.setDataSet), D = y(
3667
3667
  () => et(t, i),
3668
3668
  [t, i]
3669
3669
  ), [T, w] = yt(m || []), [, x] = yt(!1), C = Vt.useRef(void 0), { get: N } = Zi(), A = y(() => {
3670
3670
  if (D && r) return u(D, r);
3671
- }, [D, r, u]), S = y(() => A ?? d ?? g, [A, d, g]), $ = B((R) => {
3671
+ }, [D, r, u]), S = y(() => A ?? d ?? g, [A, d, g]), E = K((j) => {
3672
3672
  if (!(h != null && h.queryApi)) {
3673
3673
  m && w(
3674
3674
  m.filter(
3675
3675
  (q) => {
3676
- var U, K;
3677
- return ((U = q.value) == null ? void 0 : U.toString().toLowerCase().includes(R.toLowerCase())) || ((K = q.label) == null ? void 0 : K.toString().toLowerCase().includes(R.toLowerCase()));
3676
+ var H, M;
3677
+ return ((H = q.value) == null ? void 0 : H.toString().toLowerCase().includes(j.toLowerCase())) || ((M = q.label) == null ? void 0 : M.toString().toLowerCase().includes(j.toLowerCase()));
3678
3678
  }
3679
3679
  )
3680
3680
  );
@@ -3684,16 +3684,16 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3684
3684
  if (h != null && h.queryApi) {
3685
3685
  x(!0);
3686
3686
  try {
3687
- const { queryApi: q, keyWordParamName: U = "keyword", valueKey: K = "value", labelKey: V = "label", fixedParams: z = [] } = h, Y = {};
3688
- U && (Y[U] = R), Array.isArray(z) && z.forEach((W) => {
3687
+ const { queryApi: q, keyWordParamName: H = "keyword", valueKey: M = "value", labelKey: L = "label", fixedParams: z = [] } = h, Y = {};
3688
+ H && (Y[H] = j), Array.isArray(z) && z.forEach((W) => {
3689
3689
  W.key && (Y[W.key] = W.value);
3690
3690
  });
3691
- const M = await N(q, Y);
3692
- let j = [];
3693
- Array.isArray(M) ? j = M : M && Array.isArray(M.data) ? j = M.data : M && M.data && Array.isArray(M.data.records) ? j = M.data.records : M && M.result && Array.isArray(M.result) && (j = M.result);
3694
- const G = j.map((W) => ({
3695
- value: W[K],
3696
- label: W[V] || W[K],
3691
+ const $ = await N(q, Y);
3692
+ let B = [];
3693
+ Array.isArray($) ? B = $ : $ && Array.isArray($.data) ? B = $.data : $ && $.data && Array.isArray($.data.records) ? B = $.data.records : $ && $.result && Array.isArray($.result) && (B = $.result);
3694
+ const G = B.map((W) => ({
3695
+ value: W[M],
3696
+ label: W[L] || W[M],
3697
3697
  ...W
3698
3698
  }));
3699
3699
  w(G);
@@ -3708,21 +3708,21 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3708
3708
  Vt.useEffect(() => {
3709
3709
  !(h != null && h.queryApi) && m && w(m);
3710
3710
  }, [m, h == null ? void 0 : h.queryApi]);
3711
- const E = B((R) => {
3711
+ const _ = K((j) => {
3712
3712
  if (c) {
3713
- c(R);
3713
+ c(j);
3714
3714
  return;
3715
3715
  }
3716
- if (D && r && k(D, r, R), a && t) {
3717
- const { actionName: q, arg: U } = gt(a, R, { id: e, dataSet: i, dataSetField: r });
3718
- v(t, Z(q, U));
3716
+ if (D && r && k(D, r, j), a && t) {
3717
+ const { actionName: q, arg: H } = gt(a, j, { id: e, dataSet: i, dataSetField: r });
3718
+ v(t, Z(q, H));
3719
3719
  }
3720
- }, [c, D, r, k, a, t, e, v]), _ = B((R, q) => {
3720
+ }, [c, D, r, k, a, t, e, v]), R = K((j, q) => {
3721
3721
  if (l) {
3722
- l(R, q);
3722
+ l(j, q);
3723
3723
  return;
3724
3724
  }
3725
- o && t && v(t, Z(o, { value: R, option: q }));
3725
+ o && t && v(t, Z(o, { value: j, option: q }));
3726
3726
  }, [l, o, t, v]);
3727
3727
  return /* @__PURE__ */ b(
3728
3728
  gr,
@@ -3732,9 +3732,9 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3732
3732
  open: n ? !1 : void 0,
3733
3733
  options: T,
3734
3734
  value: S,
3735
- onChange: E,
3736
- onSelect: _,
3737
- onSearch: $,
3735
+ onChange: _,
3736
+ onSelect: R,
3737
+ onSearch: E,
3738
3738
  style: { width: "100%", ...s.style }
3739
3739
  }
3740
3740
  );
@@ -3755,7 +3755,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3755
3755
  children: h,
3756
3756
  ...f
3757
3757
  }) => {
3758
- const [s] = Oe.useForm(), v = O((w) => w.addCommand), u = O((w) => w.setDataSet), k = y(
3758
+ const [s] = _e.useForm(), v = O((w) => w.addCommand), u = O((w) => w.setDataSet), k = y(
3759
3759
  () => et(t, i),
3760
3760
  [t, i]
3761
3761
  ), D = (w) => {
@@ -3771,9 +3771,9 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3771
3771
  }
3772
3772
  o && t && v(t, Z(o, null));
3773
3773
  };
3774
- return /* @__PURE__ */ ct(Oe, { ...f, form: s, onFinish: D, children: [
3774
+ return /* @__PURE__ */ ct(_e, { ...f, form: s, onFinish: D, children: [
3775
3775
  h,
3776
- (c || l) && /* @__PURE__ */ b(Oe.Item, { children: /* @__PURE__ */ ct(Yt, { children: [
3776
+ (c || l) && /* @__PURE__ */ b(_e.Item, { children: /* @__PURE__ */ ct(Yt, { children: [
3777
3777
  c && /* @__PURE__ */ b(Zt, { type: "primary", htmlType: "submit", children: d }),
3778
3778
  l && /* @__PURE__ */ b(Zt, { onClick: T, children: g })
3779
3779
  ] }) })
@@ -3784,7 +3784,7 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3784
3784
  develop: n,
3785
3785
  children: i,
3786
3786
  ...r
3787
- }) => /* @__PURE__ */ b(Oe.Item, { ...r, children: i }), Wt = (e, t) => {
3787
+ }) => /* @__PURE__ */ b(_e.Item, { ...r, children: i }), Wt = (e, t) => {
3788
3788
  if (e == null) return t;
3789
3789
  if (typeof e == "string")
3790
3790
  try {
@@ -3821,70 +3821,70 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3821
3821
  onScroll: N,
3822
3822
  styles: A,
3823
3823
  token: S,
3824
- ...$
3824
+ ...E
3825
3825
  }) => {
3826
- const E = O((I) => I.addCommand), _ = O((I) => I.getDataSet), R = O((I) => I.setDataSet), q = y(
3826
+ const _ = O((I) => I.addCommand), R = O((I) => I.getDataSet), j = O((I) => I.setDataSet), q = y(
3827
3827
  () => et(t, i),
3828
3828
  [t, i]
3829
- ), U = y(() => Wt(A, {}), [A]), K = y(() => Wt(S, {}), [S]), V = y(() => Wt(f, ["源列表", "目标列表"]), [f]), z = y(() => Wt(s, [">", "<"]), [s]), Y = y(() => Wt(v, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [v]), M = y(() => Wt(p, !1), [p]), j = y(() => {
3829
+ ), H = y(() => Wt(A, {}), [A]), M = y(() => Wt(S, {}), [S]), L = y(() => Wt(f, ["源列表", "目标列表"]), [f]), z = y(() => Wt(s, [">", "<"]), [s]), Y = y(() => Wt(v, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [v]), $ = y(() => Wt(p, !1), [p]), B = y(() => {
3830
3830
  if (q && r) {
3831
- const I = _(q, r);
3831
+ const I = R(q, r);
3832
3832
  if (Array.isArray(I)) return I;
3833
3833
  }
3834
- }, [q, r, _]), G = y(() => {
3834
+ }, [q, r, R]), G = y(() => {
3835
3835
  if (q && r) {
3836
- const I = _(q, `${r}.dataSource`);
3836
+ const I = R(q, `${r}.dataSource`);
3837
3837
  if (Array.isArray(I)) return I;
3838
3838
  }
3839
- }, [q, r, _]), W = y(() => n ? G ?? Wt(a, []) : q ? G ?? [] : Wt(a, []), [n, q, G, a]), H = y(() => n ? j ?? Wt(o, []) : q ? j ?? [] : Wt(o, []), [n, q, j, o]), rt = y(() => Wt(c, []), [c]), it = B((I, st, at) => {
3839
+ }, [q, r, R]), W = y(() => n ? G ?? Wt(a, []) : q ? G ?? [] : Wt(a, []), [n, q, G, a]), U = y(() => n ? B ?? Wt(o, []) : q ? B ?? [] : Wt(o, []), [n, q, B, o]), rt = y(() => Wt(c, []), [c]), it = K((I, st, at) => {
3840
3840
  if (w) {
3841
3841
  w(I, st, at);
3842
3842
  return;
3843
3843
  }
3844
- q && r && R(q, r, I), u && t && E(t, Z(u, { targetKeys: I, direction: st, moveKeys: at }));
3845
- }, [w, q, r, R, u, t, E]), nt = B((I, st) => {
3844
+ q && r && j(q, r, I), u && t && _(t, Z(u, { targetKeys: I, direction: st, moveKeys: at }));
3845
+ }, [w, q, r, j, u, t, _]), nt = K((I, st) => {
3846
3846
  if (x) {
3847
3847
  x(I, st);
3848
3848
  return;
3849
3849
  }
3850
- k && t && E(t, Z(k, { sourceSelectedKeys: I, targetSelectedKeys: st }));
3851
- }, [x, k, t, E]), ht = B((I, st) => {
3850
+ k && t && _(t, Z(k, { sourceSelectedKeys: I, targetSelectedKeys: st }));
3851
+ }, [x, k, t, _]), ht = K((I, st) => {
3852
3852
  if (C) {
3853
3853
  C(I, st);
3854
3854
  return;
3855
3855
  }
3856
- D && t && E(t, Z(D, { direction: I, value: st }));
3857
- }, [C, D, t, E]), At = B((I, st) => {
3856
+ D && t && _(t, Z(D, { direction: I, value: st }));
3857
+ }, [C, D, t, _]), At = K((I, st) => {
3858
3858
  if (N) {
3859
3859
  N(I, st);
3860
3860
  return;
3861
3861
  }
3862
- T && t && E(t, Z(T, { direction: I }));
3863
- }, [N, T, t, E]), dt = /* @__PURE__ */ b(
3862
+ T && t && _(t, Z(T, { direction: I }));
3863
+ }, [N, T, t, _]), dt = /* @__PURE__ */ b(
3864
3864
  pr,
3865
3865
  {
3866
3866
  dataSource: W,
3867
- targetKeys: H,
3867
+ targetKeys: U,
3868
3868
  selectedKeys: rt,
3869
3869
  disabled: l,
3870
3870
  showSearch: d,
3871
3871
  showSelectAll: g,
3872
3872
  oneWay: m,
3873
- pagination: M,
3873
+ pagination: $,
3874
3874
  status: h || void 0,
3875
- titles: V,
3875
+ titles: L,
3876
3876
  actions: z,
3877
3877
  locale: Y,
3878
3878
  onChange: it,
3879
3879
  onSelectChange: nt,
3880
3880
  onSearch: ht,
3881
3881
  onScroll: At,
3882
- styles: U,
3882
+ styles: H,
3883
3883
  render: (I) => I.title,
3884
- ...$
3884
+ ...E
3885
3885
  }
3886
3886
  );
3887
- return K && Object.keys(K).length > 0 ? /* @__PURE__ */ b($t, { theme: { components: { Transfer: K } }, children: dt }) : dt;
3887
+ return M && Object.keys(M).length > 0 ? /* @__PURE__ */ b($t, { theme: { components: { Transfer: M } }, children: dt }) : dt;
3888
3888
  }, rn = (e, t) => {
3889
3889
  if (e == null) return t;
3890
3890
  if (typeof e == "string")
@@ -3927,22 +3927,22 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3927
3927
  token: v,
3928
3928
  ...u
3929
3929
  }) => {
3930
- const k = O((_) => _.addCommand), D = O((_) => _.getDataSet), T = O((_) => _.setDataSet), w = y(
3930
+ const k = O((R) => R.addCommand), D = O((R) => R.getDataSet), T = O((R) => R.setDataSet), w = y(
3931
3931
  () => et(t, i),
3932
3932
  [t, i]
3933
3933
  ), x = y(() => rn(s, {}), [s]), C = y(() => rn(v, {}), [v]), N = y(() => ja(a), [a]), S = y(() => {
3934
3934
  if (w && r) {
3935
- const _ = D(w, r);
3936
- if (typeof _ == "string") return _;
3935
+ const R = D(w, r);
3936
+ if (typeof R == "string") return R;
3937
3937
  }
3938
- }, [w, r, D]) ?? o, $ = B((_) => {
3939
- const R = String(_);
3938
+ }, [w, r, D]) ?? o, E = K((R) => {
3939
+ const j = String(R);
3940
3940
  if (f) {
3941
- f(R);
3941
+ f(j);
3942
3942
  return;
3943
3943
  }
3944
- w && r && T(w, r, R), h && t && k(t, Z(h, { value: R }));
3945
- }, [f, w, r, T, h, t, k]), E = /* @__PURE__ */ b(
3944
+ w && r && T(w, r, j), h && t && k(t, Z(h, { value: j }));
3945
+ }, [f, w, r, T, h, t, k]), _ = /* @__PURE__ */ b(
3946
3946
  vr,
3947
3947
  {
3948
3948
  ...u,
@@ -3954,11 +3954,11 @@ const oc = Vt.memo(Xn), wn = 200, cc = ({
3954
3954
  size: g,
3955
3955
  vertical: m,
3956
3956
  shape: p,
3957
- onChange: $,
3957
+ onChange: E,
3958
3958
  styles: x
3959
3959
  }
3960
3960
  );
3961
- return C && Object.keys(C).length > 0 ? /* @__PURE__ */ b($t, { theme: { components: { Segmented: C } }, children: E }) : E;
3961
+ return C && Object.keys(C).length > 0 ? /* @__PURE__ */ b($t, { theme: { components: { Segmented: C } }, children: _ }) : _;
3962
3962
  }, Ba = (e, t, n) => {
3963
3963
  const [i, r] = yt(void 0), a = t === "100%", o = qt(0);
3964
3964
  return zn(() => {
@@ -4018,7 +4018,7 @@ function Ka(e) {
4018
4018
  }
4019
4019
  const za = ({ dictCode: e, value: t }) => {
4020
4020
  const [n, i] = yt(null);
4021
- if (_t(() => {
4021
+ if (Et(() => {
4022
4022
  if (!e) {
4023
4023
  i([]);
4024
4024
  return;
@@ -4033,7 +4033,7 @@ const za = ({ dictCode: e, value: t }) => {
4033
4033
  return /* @__PURE__ */ b("span", {});
4034
4034
  if (!n)
4035
4035
  return /* @__PURE__ */ b("span", { children: String(t) });
4036
- const r = re(n, t);
4036
+ const r = ie(n, t);
4037
4037
  return /* @__PURE__ */ b("span", { children: (r == null ? void 0 : r.label) ?? String(t) });
4038
4038
  }, La = (e, t) => {
4039
4039
  const n = t.columnDictType || t.dictType || "";
@@ -4167,84 +4167,84 @@ const He = 420, Nn = 440, Ja = ({
4167
4167
  onClose: m
4168
4168
  }) => {
4169
4169
  const [p, h] = yt(n), [f, s] = yt(i), [v, u] = yt(o), [k, D] = yt(l), [T, w] = yt(null);
4170
- _t(() => {
4170
+ Et(() => {
4171
4171
  e && (h(n), s([...i]), u(o), D(l));
4172
4172
  }, [e, n, i, o, l]);
4173
- const x = B(
4174
- (M) => {
4175
- queueMicrotask(() => g(M));
4173
+ const x = K(
4174
+ ($) => {
4175
+ queueMicrotask(() => g($));
4176
4176
  },
4177
4177
  [g]
4178
- ), C = B(
4179
- (M, j, G, W) => Tn(M, j, G ?? v, W ?? k),
4178
+ ), C = K(
4179
+ ($, B, G, W) => Tn($, B, G ?? v, W ?? k),
4180
4180
  [v, k]
4181
- ), N = B(() => {
4181
+ ), N = K(() => {
4182
4182
  h(r);
4183
- const M = a.map((j) => ({ ...j }));
4184
- s(M), u(c), D(d), x(Tn(r, M, c, d));
4185
- }, [r, a, c, d, x]), A = B(
4186
- (M) => {
4187
- s((j) => {
4188
- const G = j.map((W) => W.key === M ? { ...W, visible: !W.visible } : W);
4183
+ const $ = a.map((B) => ({ ...B }));
4184
+ s($), u(c), D(d), x(Tn(r, $, c, d));
4185
+ }, [r, a, c, d, x]), A = K(
4186
+ ($) => {
4187
+ s((B) => {
4188
+ const G = B.map((W) => W.key === $ ? { ...W, visible: !W.visible } : W);
4189
4189
  return x(C(p, G)), G;
4190
4190
  });
4191
4191
  },
4192
4192
  [p, C, x]
4193
- ), S = B(
4194
- (M, j) => {
4193
+ ), S = K(
4194
+ ($, B) => {
4195
4195
  s((G) => {
4196
- const W = G.map((H) => H.key === M ? { ...H, fixed: j } : H);
4196
+ const W = G.map((U) => U.key === $ ? { ...U, fixed: B } : U);
4197
4197
  return x(C(p, W)), W;
4198
4198
  });
4199
4199
  },
4200
4200
  [p, C, x]
4201
- ), $ = B(
4202
- (M, j) => {
4201
+ ), E = K(
4202
+ ($, B) => {
4203
4203
  s((G) => {
4204
- const W = G.map((H) => H.key === M ? { ...H, width: j } : H);
4204
+ const W = G.map((U) => U.key === $ ? { ...U, width: B } : U);
4205
4205
  return x(C(p, W)), W;
4206
4206
  });
4207
4207
  },
4208
4208
  [p, C, x]
4209
- ), E = B(
4210
- (M, j) => {
4209
+ ), _ = K(
4210
+ ($, B) => {
4211
4211
  s((G) => {
4212
- const W = G.find((nt) => nt.key === M);
4212
+ const W = G.find((nt) => nt.key === $);
4213
4213
  if (!W) return G;
4214
- const H = typeof W.width == "number" ? W.width : 80, rt = Math.max(We, H + j), it = G.map((nt) => nt.key === M ? { ...nt, width: rt } : nt);
4214
+ const U = typeof W.width == "number" ? W.width : 80, rt = Math.max(We, U + B), it = G.map((nt) => nt.key === $ ? { ...nt, width: rt } : nt);
4215
4215
  return x(C(p, it)), it;
4216
4216
  });
4217
4217
  },
4218
4218
  [p, C, x]
4219
- ), _ = B(
4220
- (M, j) => {
4221
- if (j < 0 || j >= f.length) return;
4222
- const G = [...f], [W] = G.splice(M, 1);
4223
- G.splice(j, 0, W), s(G), x(C(p, G));
4219
+ ), R = K(
4220
+ ($, B) => {
4221
+ if (B < 0 || B >= f.length) return;
4222
+ const G = [...f], [W] = G.splice($, 1);
4223
+ G.splice(B, 0, W), s(G), x(C(p, G));
4224
4224
  },
4225
4225
  [f, p, C, x]
4226
- ), R = B(
4227
- (M) => {
4228
- h(M), x(C(M, f));
4226
+ ), j = K(
4227
+ ($) => {
4228
+ h($), x(C($, f));
4229
4229
  },
4230
4230
  [f, C, x]
4231
- ), q = B(
4232
- (M) => {
4233
- u(M), x(C(p, f, M, k));
4231
+ ), q = K(
4232
+ ($) => {
4233
+ u($), x(C(p, f, $, k));
4234
4234
  },
4235
4235
  [p, f, k, C, x]
4236
- ), U = B(
4237
- (M) => {
4238
- D(M), x(C(p, f, v, M));
4236
+ ), H = K(
4237
+ ($) => {
4238
+ D($), x(C(p, f, v, $));
4239
4239
  },
4240
4240
  [p, f, v, C, x]
4241
- ), K = (M) => (j) => {
4242
- w(M), j.dataTransfer.effectAllowed = "move", j.dataTransfer.setData("text/plain", String(M));
4243
- }, V = (M) => (j) => {
4244
- j.preventDefault(), j.dataTransfer.dropEffect = "move", !(T === null || T === M) && (_(T, M), w(M));
4241
+ ), M = ($) => (B) => {
4242
+ w($), B.dataTransfer.effectAllowed = "move", B.dataTransfer.setData("text/plain", String($));
4243
+ }, L = ($) => (B) => {
4244
+ B.preventDefault(), B.dataTransfer.dropEffect = "move", !(T === null || T === $) && (R(T, $), w($));
4245
4245
  }, z = () => w(null), Y = t != null ? (() => {
4246
- let M = t.y, j = t.x;
4247
- return typeof window < "u" && (j + He > window.innerWidth && (j = window.innerWidth - He - 16), j < 16 && (j = 16), M + Nn > window.innerHeight && (M = Math.max(16, window.innerHeight - Nn - 16)), M < 16 && (M = 16)), { margin: 0, top: M, left: j };
4246
+ let $ = t.y, B = t.x;
4247
+ return typeof window < "u" && (B + He > window.innerWidth && (B = window.innerWidth - He - 16), B < 16 && (B = 16), $ + Nn > window.innerHeight && ($ = Math.max(16, window.innerHeight - Nn - 16)), $ < 16 && ($ = 16)), { margin: 0, top: $, left: B };
4248
4248
  })() : void 0;
4249
4249
  return /* @__PURE__ */ b(
4250
4250
  Mn,
@@ -4262,22 +4262,22 @@ const He = 420, Nn = 440, Ja = ({
4262
4262
  children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-body", children: [
4263
4263
  /* @__PURE__ */ b("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-header-row", children: [
4264
4264
  /* @__PURE__ */ b(
4265
- oe,
4265
+ ce,
4266
4266
  {
4267
4267
  checked: p,
4268
- onChange: (M) => R(M.target.checked),
4268
+ onChange: ($) => j($.target.checked),
4269
4269
  children: "序号列"
4270
4270
  }
4271
4271
  ),
4272
- /* @__PURE__ */ b(oe, { checked: v, onChange: (M) => q(M.target.checked), children: "自动滚动" }),
4272
+ /* @__PURE__ */ b(ce, { checked: v, onChange: ($) => q($.target.checked), children: "自动滚动" }),
4273
4273
  /* @__PURE__ */ ct(Yt, { align: "center", children: [
4274
4274
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
4275
4275
  /* @__PURE__ */ b(
4276
- _n,
4276
+ En,
4277
4277
  {
4278
4278
  size: "small",
4279
4279
  value: k,
4280
- onChange: U,
4280
+ onChange: H,
4281
4281
  options: [...Ya],
4282
4282
  style: { width: 80 }
4283
4283
  }
@@ -4291,34 +4291,34 @@ const He = 420, Nn = 440, Ja = ({
4291
4291
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
4292
4292
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-fix", children: "固定" })
4293
4293
  ] }) }),
4294
- /* @__PURE__ */ b("tbody", { children: f.map((M, j) => {
4295
- const G = typeof M.width == "number" ? M.width : null, W = M.width === "auto" || M.width === void 0 && G === null;
4294
+ /* @__PURE__ */ b("tbody", { children: f.map(($, B) => {
4295
+ const G = typeof $.width == "number" ? $.width : null, W = $.width === "auto" || $.width === void 0 && G === null;
4296
4296
  return /* @__PURE__ */ ct(
4297
4297
  "tr",
4298
4298
  {
4299
- className: `and-table-column-setting-row ${T === j ? "and-table-column-setting-row-dragging" : ""}`,
4299
+ className: `and-table-column-setting-row ${T === B ? "and-table-column-setting-row-dragging" : ""}`,
4300
4300
  draggable: !0,
4301
- onDragStart: K(j),
4302
- onDragOver: V(j),
4301
+ onDragStart: M(B),
4302
+ onDragOver: L(B),
4303
4303
  onDragEnd: z,
4304
4304
  children: [
4305
4305
  /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(Zr, {}) }) }),
4306
4306
  /* @__PURE__ */ ct("td", { className: "and-table-column-setting-td-name", children: [
4307
- /* @__PURE__ */ b(oe, { checked: M.visible, onChange: () => A(M.key) }),
4308
- /* @__PURE__ */ b("span", { className: "and-table-column-setting-title", title: M.title, children: M.title })
4307
+ /* @__PURE__ */ b(ce, { checked: $.visible, onChange: () => A($.key) }),
4308
+ /* @__PURE__ */ b("span", { className: "and-table-column-setting-title", title: $.title, children: $.title })
4309
4309
  ] }),
4310
4310
  /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-width", children: [
4311
4311
  /* @__PURE__ */ b(
4312
4312
  "span",
4313
4313
  {
4314
4314
  className: "and-table-column-setting-fix-btn",
4315
- onClick: () => E(M.key, -ue),
4315
+ onClick: () => _($.key, -ue),
4316
4316
  title: `减 ${ue}px`,
4317
4317
  children: /* @__PURE__ */ b(Fr, {})
4318
4318
  }
4319
4319
  ),
4320
4320
  /* @__PURE__ */ b(
4321
- En,
4321
+ _n,
4322
4322
  {
4323
4323
  size: "small",
4324
4324
  min: We,
@@ -4327,8 +4327,8 @@ const He = 420, Nn = 440, Ja = ({
4327
4327
  placeholder: "auto",
4328
4328
  controls: !1,
4329
4329
  style: { width: 44 },
4330
- onChange: (H) => {
4331
- H == null || typeof H == "string" && H === "" ? $(M.key, "auto") : $(M.key, Math.max(We, Number(H)));
4330
+ onChange: (U) => {
4331
+ U == null || typeof U == "string" && U === "" ? E($.key, "auto") : E($.key, Math.max(We, Number(U)));
4332
4332
  }
4333
4333
  }
4334
4334
  ),
@@ -4336,7 +4336,7 @@ const He = 420, Nn = 440, Ja = ({
4336
4336
  "span",
4337
4337
  {
4338
4338
  className: "and-table-column-setting-fix-btn",
4339
- onClick: () => E(M.key, ue),
4339
+ onClick: () => _($.key, ue),
4340
4340
  title: `加 ${ue}px`,
4341
4341
  children: /* @__PURE__ */ b(Ln, {})
4342
4342
  }
@@ -4346,8 +4346,8 @@ const He = 420, Nn = 440, Ja = ({
4346
4346
  /* @__PURE__ */ b(
4347
4347
  "span",
4348
4348
  {
4349
- className: `and-table-column-setting-fix-btn ${M.fixed === "left" ? "active" : ""}`,
4350
- onClick: () => S(M.key, M.fixed === "left" ? !1 : "left"),
4349
+ className: `and-table-column-setting-fix-btn ${$.fixed === "left" ? "active" : ""}`,
4350
+ onClick: () => S($.key, $.fixed === "left" ? !1 : "left"),
4351
4351
  title: "固定到左侧",
4352
4352
  children: /* @__PURE__ */ b(Vn, {})
4353
4353
  }
@@ -4356,8 +4356,8 @@ const He = 420, Nn = 440, Ja = ({
4356
4356
  /* @__PURE__ */ b(
4357
4357
  "span",
4358
4358
  {
4359
- className: `and-table-column-setting-fix-btn ${M.fixed === "right" ? "active" : ""}`,
4360
- onClick: () => S(M.key, M.fixed === "right" ? !1 : "right"),
4359
+ className: `and-table-column-setting-fix-btn ${$.fixed === "right" ? "active" : ""}`,
4360
+ onClick: () => S($.key, $.fixed === "right" ? !1 : "right"),
4361
4361
  title: "固定到右侧",
4362
4362
  children: /* @__PURE__ */ b(qn, {})
4363
4363
  }
@@ -4365,7 +4365,7 @@ const He = 420, Nn = 440, Ja = ({
4365
4365
  ] }) })
4366
4366
  ]
4367
4367
  },
4368
- M.key
4368
+ $.key
4369
4369
  );
4370
4370
  }) })
4371
4371
  ] }) }),
@@ -4402,14 +4402,14 @@ const He = 420, Nn = 440, Ja = ({
4402
4402
  showFooter: N,
4403
4403
  renderTitle: A,
4404
4404
  renderSummary: S,
4405
- renderFooter: $,
4406
- children: E,
4407
- token: _,
4408
- columnSettingOpenKey: R,
4405
+ renderFooter: E,
4406
+ children: _,
4407
+ token: R,
4408
+ columnSettingOpenKey: j,
4409
4409
  columnSettingsKey: q,
4410
- ...U
4410
+ ...H
4411
4411
  }) => {
4412
- const K = O((J) => J.addCommand), V = O((J) => J.getDataSet), z = O((J) => J.setDataSet), [Y, M] = yt([]), j = qt(null), [G, W] = yt(void 0), H = B((J, ot) => {
4412
+ const M = O((J) => J.addCommand), L = O((J) => J.getDataSet), z = O((J) => J.setDataSet), [Y, $] = yt([]), B = qt(null), [G, W] = yt(void 0), U = K((J, ot) => {
4413
4413
  if (J == null) return ot;
4414
4414
  if (typeof J == "string")
4415
4415
  try {
@@ -4434,8 +4434,8 @@ const He = 420, Nn = 440, Ja = ({
4434
4434
  }
4435
4435
  ), At = 420;
4436
4436
  zn(() => {
4437
- if (!ht || !j.current) return;
4438
- const J = j.current.querySelector(".ant-table-thead") || j.current.querySelector(".ant-table-header");
4437
+ if (!ht || !B.current) return;
4438
+ const J = B.current.querySelector(".ant-table-thead") || B.current.querySelector(".ant-table-header");
4439
4439
  if (!J) return;
4440
4440
  const ot = J.getBoundingClientRect();
4441
4441
  W({
@@ -4447,14 +4447,14 @@ const He = 420, Nn = 440, Ja = ({
4447
4447
  var xt;
4448
4448
  const ot = nt.columnSettings ? (xt = J.dataSets[nt.columnSettings]) == null ? void 0 : xt.value : void 0;
4449
4449
  return typeof ot == "object" && ot !== null ? ot : void 0;
4450
- }), I = hi(nt.dataSet, r), st = y(() => nt.dataSet ? I : (c == null ? void 0 : c.data) || [], [nt.dataSet, I, c == null ? void 0 : c.data]), at = y(() => H(_, {}), [_, H]), Ot = at && Object.keys(at).length > 0, kt = y(
4450
+ }), I = hi(nt.dataSet, r), st = y(() => nt.dataSet ? I : (c == null ? void 0 : c.data) || [], [nt.dataSet, I, c == null ? void 0 : c.data]), at = y(() => U(R, {}), [R, U]), Ot = at && Object.keys(at).length > 0, kt = y(
4451
4451
  () => Ot ? { components: { Table: at } } : void 0,
4452
4452
  [Ot, at]
4453
4453
  ), jt = O(
4454
4454
  (J) => nt.pagination ? J.dataSets[nt.pagination] : void 0
4455
- ), P = y(() => nt.pagination ? V(nt.pagination, "") || {} : {}, [nt.pagination, V, jt]), L = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), tt = y(() => {
4456
- if (!L) return !1;
4457
- const J = typeof s == "object" ? s : {}, ot = U || {}, xt = J.showSizeChanger ?? ot["pagination-showSizeChanger"] ?? !0, vt = J.showQuickJumper ?? ot["pagination-showQuickJumper"] ?? !1, St = J.simple ?? ot["pagination-simple"] ?? !1, Bt = J.defaultPageSize ?? ot["pagination-defaultPageSize"] ?? 10, Ht = J.pageSizeOptions ?? ot["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Ht == "string" ? Ht.split(",").map((It) => parseInt(String(It).trim(), 10) || 10).filter((It) => !isNaN(It)) : Array.isArray(Ht) ? Ht : [10, 20, 50, 100];
4455
+ ), P = y(() => nt.pagination ? L(nt.pagination, "") || {} : {}, [nt.pagination, L, jt]), V = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), tt = y(() => {
4456
+ if (!V) return !1;
4457
+ const J = typeof s == "object" ? s : {}, ot = H || {}, xt = J.showSizeChanger ?? ot["pagination-showSizeChanger"] ?? !0, vt = J.showQuickJumper ?? ot["pagination-showQuickJumper"] ?? !1, St = J.simple ?? ot["pagination-simple"] ?? !1, Bt = J.defaultPageSize ?? ot["pagination-defaultPageSize"] ?? 10, Ht = J.pageSizeOptions ?? ot["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Ht == "string" ? Ht.split(",").map((It) => parseInt(String(It).trim(), 10) || 10).filter((It) => !isNaN(It)) : Array.isArray(Ht) ? Ht : [10, 20, 50, 100];
4458
4458
  return {
4459
4459
  ...P,
4460
4460
  showSizeChanger: xt,
@@ -4462,15 +4462,15 @@ const He = 420, Nn = 440, Ja = ({
4462
4462
  simple: St,
4463
4463
  defaultPageSize: Bt,
4464
4464
  pageSizeOptions: ze,
4465
- showTotal: (It, ie) => (J.showTotal || "共 ${total} 条").replace("${total}", String(It)).replace("${range[0]}", String(ie[0])).replace("${range[1]}", String(ie[1])).replace("${range}", `${ie[0]}-${ie[1]}`),
4466
- onChange: (It, ie) => {
4467
- nt.pagination && z(nt.pagination, "", { ...P, current: It, pageSize: ie }), f && t && K(t, Z(f, null));
4465
+ showTotal: (It, ae) => (J.showTotal || "共 ${total} 条").replace("${total}", String(It)).replace("${range[0]}", String(ae[0])).replace("${range[1]}", String(ae[1])).replace("${range}", `${ae[0]}-${ae[1]}`),
4466
+ onChange: (It, ae) => {
4467
+ nt.pagination && z(nt.pagination, "", { ...P, current: It, pageSize: ae }), f && t && M(t, Z(f, null));
4468
4468
  },
4469
4469
  hideOnSinglePage: !1
4470
4470
  };
4471
- }, [L, s, U, P, nt.pagination, z, f, t, K]), Q = B((J, ot) => {
4472
- t && K(t, Z(J.action, { ...ot }));
4473
- }, [t, K]), lt = y(() => rt.map((J) => {
4471
+ }, [V, s, H, P, nt.pagination, z, f, t, M]), Q = K((J, ot) => {
4472
+ t && M(t, Z(J.action, { ...ot }));
4473
+ }, [t, M]), lt = y(() => rt.map((J) => {
4474
4474
  let ot = !1;
4475
4475
  J.fixed === !0 || J.fixed === "left" ? ot = "left" : J.fixed === "right" && (ot = "right");
4476
4476
  const xt = J.width;
@@ -4481,13 +4481,13 @@ const He = 420, Nn = 440, Ja = ({
4481
4481
  fixed: ot,
4482
4482
  width: typeof xt == "number" ? xt : "auto"
4483
4483
  };
4484
- }).filter((J) => J.key), [rt]), ft = h === !0, Dt = !1, X = k === "small" || k === "large" ? k : "middle", { rowIndexVisible: mt, items: bt, scrollX: Se, size: F } = y(() => Pa(
4484
+ }).filter((J) => J.key), [rt]), ft = h === !0, Dt = !1, X = k === "small" || k === "large" ? k : "middle", { rowIndexVisible: mt, items: bt, scrollX: we, size: F } = y(() => Pa(
4485
4485
  dt,
4486
4486
  lt,
4487
4487
  ft,
4488
4488
  Dt,
4489
4489
  X
4490
- ), [dt, lt, ft, Dt, X]), pt = !!(i && t), Et = y(() => {
4490
+ ), [dt, lt, ft, Dt, X]), pt = !!(i && t), _t = y(() => {
4491
4491
  const J = [];
4492
4492
  mt && J.push({
4493
4493
  title: "序号",
@@ -4523,9 +4523,9 @@ const He = 420, Nn = 440, Ja = ({
4523
4523
  l,
4524
4524
  P,
4525
4525
  Q
4526
- ]), Mt = B(() => {
4526
+ ]), Mt = K(() => {
4527
4527
  nt.columnSettingOpen && z(nt.columnSettingOpen, "", !1);
4528
- }, [nt.columnSettingOpen, z]), zt = B(
4528
+ }, [nt.columnSettingOpen, z]), zt = K(
4529
4529
  (J) => {
4530
4530
  nt.columnSettings && z(nt.columnSettings, "value", J);
4531
4531
  },
@@ -4535,29 +4535,29 @@ const He = 420, Nn = 440, Ja = ({
4535
4535
  return {
4536
4536
  selectedRowKeys: Y,
4537
4537
  onChange: (J, ot, xt) => {
4538
- M(J), nt.selected && z(nt.selected, "", J), m != null && m.trim() && t && K(t, Z(m.trim(), {
4538
+ $(J), nt.selected && z(nt.selected, "", J), m != null && m.trim() && t && M(t, Z(m.trim(), {
4539
4539
  selectedRowKeys: J,
4540
4540
  selectedRows: ot,
4541
4541
  info: xt
4542
4542
  }));
4543
4543
  }
4544
4544
  };
4545
- }, [d, g, Y, nt.selected, z, m, t, K]), ln = B((J) => {
4545
+ }, [d, g, Y, nt.selected, z, m, t, M]), ln = K((J) => {
4546
4546
  if (!g) return;
4547
4547
  const xt = [J[p]];
4548
- M(xt), nt.selected && z(nt.selected, "", xt), m != null && m.trim() && t && K(t, Z(m.trim(), { record: J, selectedRowKeys: xt }));
4549
- }, [g, m, t, p, nt.selected, z, K]), tr = B((J) => g && Y.includes(J[p]) ? "ant-table-row-selected" : "", [g, p, Y]), er = B((J) => g ? { onClick: () => ln(J), style: { cursor: "pointer" } } : {}, [g, ln]), { style: nr, className: rr, ...le } = U, Nt = y(() => {
4548
+ $(xt), nt.selected && z(nt.selected, "", xt), m != null && m.trim() && t && M(t, Z(m.trim(), { record: J, selectedRowKeys: xt }));
4549
+ }, [g, m, t, p, nt.selected, z, M]), tr = K((J) => g && Y.includes(J[p]) ? "ant-table-row-selected" : "", [g, p, Y]), er = K((J) => g ? { onClick: () => ln(J), style: { cursor: "pointer" } } : {}, [g, ln]), { style: nr, className: rr, ...le } = H, Nt = y(() => {
4550
4550
  if (T) return T;
4551
4551
  let J = le["scroll-x"], ot = le["scroll-y"];
4552
4552
  if (String(J) === "true" ? J = !0 : String(J) === "false" ? J = void 0 : J === "max-content" && (J = "max-content"), (ot === "" || ot === null || ot === void 0) && (ot = void 0), J !== void 0 || ot !== void 0) return { x: J, y: ot };
4553
- }, [T, le["scroll-x"], le["scroll-y"]]), Ke = Ba(j, Nt == null ? void 0 : Nt.y, L), ir = y(() => {
4553
+ }, [T, le["scroll-x"], le["scroll-y"]]), Ke = Ba(B, Nt == null ? void 0 : Nt.y, V), ir = y(() => {
4554
4554
  if (!Nt && !pt) return;
4555
- const J = pt ? Se ? !0 : "max-content" : Nt == null ? void 0 : Nt.x, ot = (Nt == null ? void 0 : Nt.y) === "100%" ? Ke : Nt == null ? void 0 : Nt.y;
4555
+ const J = pt ? we ? !0 : "max-content" : Nt == null ? void 0 : Nt.x, ot = (Nt == null ? void 0 : Nt.y) === "100%" ? Ke : Nt == null ? void 0 : Nt.y;
4556
4556
  return J !== void 0 || ot !== void 0 ? { x: J, y: ot } : Nt ? Nt.y === "100%" ? { x: Nt.x, y: Ke } : Nt : void 0;
4557
- }, [Nt, Ke, pt, Se]), { titleSlot: we, summarySlot: De, footerSlot: un, otherChildren: ar } = y(() => {
4557
+ }, [Nt, Ke, pt, we]), { titleSlot: De, summarySlot: xe, footerSlot: un, otherChildren: ar } = y(() => {
4558
4558
  let J = null, ot = null, xt = null;
4559
4559
  const vt = [];
4560
- return Vt.Children.forEach(E, (St) => {
4560
+ return Vt.Children.forEach(_, (St) => {
4561
4561
  if (!Vt.isValidElement(St)) {
4562
4562
  vt.push(St);
4563
4563
  return;
@@ -4565,22 +4565,22 @@ const He = 420, Nn = 440, Ja = ({
4565
4565
  const Bt = St.props["data-slot-type"];
4566
4566
  Bt === "title" ? J = St : Bt === "summary" ? ot = St : Bt === "footer" ? xt = St : vt.push(St);
4567
4567
  }), { titleSlot: J, summarySlot: ot, footerSlot: xt, otherChildren: vt };
4568
- }, [E]), or = y(() => {
4569
- if (!we) {
4568
+ }, [_]), or = y(() => {
4569
+ if (!De) {
4570
4570
  if (A) return A;
4571
4571
  if (x && n) return () => /* @__PURE__ */ b("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
4572
4572
  }
4573
- }, [x, we, A, n]), cr = y(() => {
4573
+ }, [x, De, A, n]), cr = y(() => {
4574
4574
  if (S) return S;
4575
- if (C && De)
4576
- return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: Et.length, style: { padding: 0 }, children: De }) });
4575
+ if (C && xe)
4576
+ return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: _t.length, style: { padding: 0 }, children: xe }) });
4577
4577
  if (C && n)
4578
- return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: Et.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
4579
- }, [C, De, S, Et.length, n]), fn = /* @__PURE__ */ b(
4578
+ return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: _t.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
4579
+ }, [C, xe, S, _t.length, n]), fn = /* @__PURE__ */ b(
4580
4580
  Sr,
4581
4581
  {
4582
4582
  ...le,
4583
- columns: Et,
4583
+ columns: _t,
4584
4584
  dataSource: st,
4585
4585
  rowKey: p,
4586
4586
  rowSelection: In,
@@ -4600,12 +4600,12 @@ const He = 420, Nn = 440, Ja = ({
4600
4600
  return /* @__PURE__ */ ct(
4601
4601
  Rn,
4602
4602
  {
4603
- ref: j,
4603
+ ref: B,
4604
4604
  vertical: !0,
4605
4605
  style: { width: "100%", height: "100%", ...nr },
4606
4606
  className: rr,
4607
4607
  children: [
4608
- we && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: we }),
4608
+ De && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: De }),
4609
4609
  /* @__PURE__ */ ct("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
4610
4610
  g && (() => {
4611
4611
  const J = (at == null ? void 0 : at.rowSelectedBg) || "#e6f4ff", ot = (at == null ? void 0 : at.rowSelectedHoverBg) || (at == null ? void 0 : at.rowSelectedBg) || "#bae0ff", xt = at == null ? void 0 : at.rowSelectedColor, vt = (at == null ? void 0 : at.rowSelectedLinkColor) ?? xt, St = (at == null ? void 0 : at.rowSelectedLinkHoverColor) ?? vt;
@@ -4623,7 +4623,7 @@ const He = 420, Nn = 440, Ja = ({
4623
4623
  })(),
4624
4624
  kt ? /* @__PURE__ */ b($t, { theme: kt, children: fn }) : fn
4625
4625
  ] }),
4626
- De,
4626
+ xe,
4627
4627
  un && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: un }),
4628
4628
  ar,
4629
4629
  pt && /* @__PURE__ */ b(
@@ -4635,7 +4635,7 @@ const He = 420, Nn = 440, Ja = ({
4635
4635
  columnItems: bt,
4636
4636
  defaultRowIndexVisible: ft,
4637
4637
  defaultColumnItems: lt,
4638
- scrollX: Se,
4638
+ scrollX: we,
4639
4639
  defaultScrollX: Dt,
4640
4640
  size: F,
4641
4641
  defaultSize: X,
@@ -4666,7 +4666,7 @@ const He = 420, Nn = 440, Ja = ({
4666
4666
  clickAction: s,
4667
4667
  ...v
4668
4668
  }) => {
4669
- const u = O((M) => M.getDataSet), k = O((M) => M.getProps), D = y(
4669
+ const u = O(($) => $.getDataSet), k = O(($) => $.getProps), D = y(
4670
4670
  () => d === "selectedCount" && o && !a ? o : a,
4671
4671
  [d, o, a]
4672
4672
  ), T = y(
@@ -4675,11 +4675,11 @@ const He = 420, Nn = 440, Ja = ({
4675
4675
  ), w = y(
4676
4676
  () => et(t, D),
4677
4677
  [t, D]
4678
- ), x = O((M) => {
4678
+ ), x = O(($) => {
4679
4679
  if (!w) return;
4680
- const j = pe(w).baseName;
4681
- return M.dataSets[j];
4682
- }), { options: C } = be(d), N = y(() => t && e ? k(t, e) : null, [t, e, k]), A = y(() => {
4680
+ const B = ve(w).baseName;
4681
+ return $.dataSets[B];
4682
+ }), { options: C } = Se(d), N = y(() => t && e ? k(t, e) : null, [t, e, k]), A = y(() => {
4683
4683
  if (w && T)
4684
4684
  return u(w, T);
4685
4685
  }, [w, T, u, x]), S = y(() => {
@@ -4691,46 +4691,46 @@ const He = 420, Nn = 440, Ja = ({
4691
4691
  return {};
4692
4692
  }
4693
4693
  return m;
4694
- }, [m]), $ = (M) => M == null || M === "" || typeof M == "string" && M.trim() === "", E = y(() => n ? i : A != null && A !== "" ? $(A) && p ? i : A : (N == null ? void 0 : N.content) !== void 0 ? N.content : i, [n, A, N == null ? void 0 : N.content, i, p]), _ = y(() => {
4695
- if (d && C.length > 0 && E !== void 0 && E !== null) {
4696
- const M = re(C, E);
4697
- return (M == null ? void 0 : M.label) ?? E;
4694
+ }, [m]), E = ($) => $ == null || $ === "" || typeof $ == "string" && $.trim() === "", _ = y(() => n ? i : A != null && A !== "" ? E(A) && p ? i : A : (N == null ? void 0 : N.content) !== void 0 ? N.content : i, [n, A, N == null ? void 0 : N.content, i, p]), R = y(() => {
4695
+ if (d && C.length > 0 && _ !== void 0 && _ !== null) {
4696
+ const $ = ie(C, _);
4697
+ return ($ == null ? void 0 : $.label) ?? _;
4698
4698
  }
4699
- return E;
4700
- }, [d, C, E]), R = y(() => {
4699
+ return _;
4700
+ }, [d, C, _]), j = y(() => {
4701
4701
  if (n)
4702
- return _;
4703
- const M = (N == null ? void 0 : N.formatType) || g;
4704
- return M && _ !== void 0 && _ !== null ? Sa(_, M, S) : _;
4705
- }, [n, _, g, S, N == null ? void 0 : N.formatType]), q = y(() => {
4706
- const M = { ...v };
4707
- return N && typeof N == "object" && Object.keys(N).forEach((j) => {
4708
- !["content", "formatType", "formatValue", "clickAction"].includes(j) && N[j] !== void 0 && N[j] !== null && (M[j] = N[j]);
4709
- }), M;
4710
- }, [v, N]), U = (N == null ? void 0 : N.color) ?? l, K = Be(U), V = y(() => {
4702
+ return R;
4703
+ const $ = (N == null ? void 0 : N.formatType) || g;
4704
+ return $ && R !== void 0 && R !== null ? Sa(R, $, S) : R;
4705
+ }, [n, R, g, S, N == null ? void 0 : N.formatType]), q = y(() => {
4706
+ const $ = { ...v };
4707
+ return N && typeof N == "object" && Object.keys(N).forEach((B) => {
4708
+ !["content", "formatType", "formatValue", "clickAction"].includes(B) && N[B] !== void 0 && N[B] !== null && ($[B] = N[B]);
4709
+ }), $;
4710
+ }, [v, N]), H = (N == null ? void 0 : N.color) ?? l, M = Be(H), L = y(() => {
4711
4711
  if (!f) return;
4712
- let M = f;
4712
+ let $ = f;
4713
4713
  if (typeof f == "string")
4714
4714
  try {
4715
- M = JSON.parse(f);
4715
+ $ = JSON.parse(f);
4716
4716
  } catch {
4717
4717
  return;
4718
4718
  }
4719
- if (!M || typeof M != "object") return;
4720
- const j = {};
4721
- return Object.entries(M).forEach(([G, W]) => {
4722
- W !== "" && W !== void 0 && W !== null && (j[G] = W);
4723
- }), Object.keys(j).length > 0 ? j : void 0;
4719
+ if (!$ || typeof $ != "object") return;
4720
+ const B = {};
4721
+ return Object.entries($).forEach(([G, W]) => {
4722
+ W !== "" && W !== void 0 && W !== null && (B[G] = W);
4723
+ }), Object.keys(B).length > 0 ? B : void 0;
4724
4724
  }, [f]), z = y(() => {
4725
- const M = { width: "100%" }, j = (N == null ? void 0 : N.fontSize) ?? c;
4726
- if (j) {
4727
- const G = j && !String(j).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${j}px` : j;
4728
- M.fontSize = G;
4729
- }
4730
- return K && (M.color = K), M;
4731
- }, [c, K, N == null ? void 0 : N.fontSize]), Y = /* @__PURE__ */ b(Ga, { ...q, style: { ...z, ...h, ...q.style }, children: R != null && R !== "" ? String(R) : r });
4732
- return V ? /* @__PURE__ */ b($t, { theme: { token: V }, children: Y }) : Y;
4733
- }, { Title: Qa } = on, Ec = ({
4725
+ const $ = { width: "100%" }, B = (N == null ? void 0 : N.fontSize) ?? c;
4726
+ if (B) {
4727
+ const G = B && !String(B).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${B}px` : B;
4728
+ $.fontSize = G;
4729
+ }
4730
+ return M && ($.color = M), $;
4731
+ }, [c, M, N == null ? void 0 : N.fontSize]), Y = /* @__PURE__ */ b(Ga, { ...q, style: { ...z, ...h, ...q.style }, children: j != null && j !== "" ? String(j) : r });
4732
+ return L ? /* @__PURE__ */ b($t, { theme: { token: L }, children: Y }) : Y;
4733
+ }, { Title: Qa } = on, _c = ({
4734
4734
  id: e,
4735
4735
  sessionId: t,
4736
4736
  develop: n,
@@ -4759,7 +4759,7 @@ const He = 420, Nn = 440, Ja = ({
4759
4759
  }), w;
4760
4760
  }, [g, f]);
4761
4761
  return /* @__PURE__ */ b(Qa, { level: c, ...T, style: { ...D, ...d, ...T.style }, children: v || r });
4762
- }, { Paragraph: Xa } = on, _c = ({
4762
+ }, { Paragraph: Xa } = on, Ec = ({
4763
4763
  id: e,
4764
4764
  sessionId: t,
4765
4765
  develop: n,
@@ -4829,7 +4829,7 @@ const He = 420, Nn = 440, Ja = ({
4829
4829
  return w;
4830
4830
  const A = T ?? d ?? g;
4831
4831
  return !A && D.length > 0 ? D[0].key : A;
4832
- }, [n, w, T, d, g, D]), N = B((A) => {
4832
+ }, [n, w, T, d, g, D]), N = K((A) => {
4833
4833
  if (n) {
4834
4834
  x(A);
4835
4835
  return;
@@ -4879,13 +4879,13 @@ const He = 420, Nn = 440, Ja = ({
4879
4879
  onDrop: N,
4880
4880
  onRightClick: A,
4881
4881
  onLoad: S,
4882
- treeData: $,
4883
- styles: E,
4884
- classNames: _,
4885
- token: R,
4882
+ treeData: E,
4883
+ styles: _,
4884
+ classNames: R,
4885
+ token: j,
4886
4886
  ...q
4887
4887
  }) => {
4888
- const U = O((X) => X.addCommand), K = O((X) => X.setDataSet), V = y(
4888
+ const H = O((X) => X.addCommand), M = O((X) => X.setDataSet), L = y(
4889
4889
  () => et(t, i),
4890
4890
  [t, i]
4891
4891
  ), z = y(
@@ -4894,14 +4894,14 @@ const He = 420, Nn = 440, Ja = ({
4894
4894
  ), Y = y(
4895
4895
  () => i ? et(t, `${i}_checked`) : void 0,
4896
4896
  [t, i]
4897
- ), M = y(
4897
+ ), $ = y(
4898
4898
  () => i ? et(t, `${i}_expanded`) : void 0,
4899
4899
  [t, i]
4900
- ), j = O((X) => {
4901
- if (!V) return;
4900
+ ), B = O((X) => {
4901
+ if (!L) return;
4902
4902
  if (r)
4903
- return X.getDataSet(V, r);
4904
- const mt = X.dataSets[V];
4903
+ return X.getDataSet(L, r);
4904
+ const mt = X.dataSets[L];
4905
4905
  if (!mt) return;
4906
4906
  if (Array.isArray(mt)) return mt;
4907
4907
  const bt = mt.value;
@@ -4910,114 +4910,114 @@ const He = 420, Nn = 440, Ja = ({
4910
4910
  (X) => z ? X.getDataSet(z, "") : void 0
4911
4911
  ), W = O(
4912
4912
  (X) => Y ? X.getDataSet(Y, "") : void 0
4913
- ), H = O(
4914
- (X) => M ? X.getDataSet(M, "") : void 0
4915
- ), rt = y(() => n ? j ?? $ ?? [] : V ? j ?? [] : $ ?? [], [n, V, j, $]), it = G, nt = W, ht = H, At = B(
4913
+ ), U = O(
4914
+ (X) => $ ? X.getDataSet($, "") : void 0
4915
+ ), rt = y(() => n ? B ?? E ?? [] : L ? B ?? [] : E ?? [], [n, L, B, E]), it = G, nt = W, ht = U, At = K(
4916
4916
  (X, mt) => {
4917
4917
  if (v) {
4918
4918
  v(X, mt);
4919
4919
  return;
4920
4920
  }
4921
- z && K(z, "", X), a && t && U(t, Z(a, { selectedKeys: X }));
4921
+ z && M(z, "", X), a && t && H(t, Z(a, { selectedKeys: X }));
4922
4922
  },
4923
- [v, z, t, K, a, U]
4924
- ), dt = B(
4923
+ [v, z, t, M, a, H]
4924
+ ), dt = K(
4925
4925
  (X, mt) => {
4926
4926
  if (u) {
4927
4927
  u(X, mt);
4928
4928
  return;
4929
4929
  }
4930
- Y && K(Y, "", X), o && t && U(t, Z(o, { checkedKeys: X }));
4930
+ Y && M(Y, "", X), o && t && H(t, Z(o, { checkedKeys: X }));
4931
4931
  },
4932
- [u, Y, t, K, o, U]
4933
- ), I = B(
4932
+ [u, Y, t, M, o, H]
4933
+ ), I = K(
4934
4934
  (X, mt) => {
4935
4935
  if (k) {
4936
4936
  k(X, mt);
4937
4937
  return;
4938
4938
  }
4939
- M && K(M, "", X), c && t && U(t, Z(c, { expandedKeys: X, expanded: mt.expanded }));
4939
+ $ && M($, "", X), c && t && H(t, Z(c, { expandedKeys: X, expanded: mt.expanded }));
4940
4940
  },
4941
- [k, M, t, K, c, U]
4942
- ), st = B(
4941
+ [k, $, t, M, c, H]
4942
+ ), st = K(
4943
4943
  (X) => {
4944
4944
  if (D) {
4945
4945
  D(X);
4946
4946
  return;
4947
4947
  }
4948
- l && t && U(t, Z(l, X));
4948
+ l && t && H(t, Z(l, X));
4949
4949
  },
4950
- [D, l, t, U]
4951
- ), at = B(
4950
+ [D, l, t, H]
4951
+ ), at = K(
4952
4952
  (X) => {
4953
4953
  if (T) {
4954
4954
  T(X);
4955
4955
  return;
4956
4956
  }
4957
- d && t && U(t, Z(d, X));
4957
+ d && t && H(t, Z(d, X));
4958
4958
  },
4959
- [T, d, t, U]
4960
- ), Ot = B(
4959
+ [T, d, t, H]
4960
+ ), Ot = K(
4961
4961
  (X) => {
4962
4962
  if (w) {
4963
4963
  w(X);
4964
4964
  return;
4965
4965
  }
4966
- g && t && U(t, Z(g, X));
4966
+ g && t && H(t, Z(g, X));
4967
4967
  },
4968
- [w, g, t, U]
4969
- ), kt = B(
4968
+ [w, g, t, H]
4969
+ ), kt = K(
4970
4970
  (X) => {
4971
4971
  if (x) {
4972
4972
  x(X);
4973
4973
  return;
4974
4974
  }
4975
- m && t && U(t, Z(m, X));
4975
+ m && t && H(t, Z(m, X));
4976
4976
  },
4977
- [x, m, t, U]
4978
- ), jt = B(
4977
+ [x, m, t, H]
4978
+ ), jt = K(
4979
4979
  (X) => {
4980
4980
  if (C) {
4981
4981
  C(X);
4982
4982
  return;
4983
4983
  }
4984
- p && t && U(t, Z(p, X));
4984
+ p && t && H(t, Z(p, X));
4985
4985
  },
4986
- [C, p, t, U]
4987
- ), P = B(
4986
+ [C, p, t, H]
4987
+ ), P = K(
4988
4988
  (X) => {
4989
4989
  if (N) {
4990
4990
  N(X);
4991
4991
  return;
4992
4992
  }
4993
- h && t && U(t, Z(h, X));
4993
+ h && t && H(t, Z(h, X));
4994
4994
  },
4995
- [N, h, t, U]
4996
- ), L = B(
4995
+ [N, h, t, H]
4996
+ ), V = K(
4997
4997
  (X) => {
4998
4998
  if (A) {
4999
4999
  A(X);
5000
5000
  return;
5001
5001
  }
5002
- f && t && U(t, Z(f, X));
5002
+ f && t && H(t, Z(f, X));
5003
5003
  },
5004
- [A, f, t, U]
5005
- ), tt = B(
5004
+ [A, f, t, H]
5005
+ ), tt = K(
5006
5006
  (X, mt) => {
5007
5007
  if (S) {
5008
5008
  S(X, mt);
5009
5009
  return;
5010
5010
  }
5011
- s && t && U(t, Z(s, { loadedKeys: X, ...mt }));
5011
+ s && t && H(t, Z(s, { loadedKeys: X, ...mt }));
5012
5012
  },
5013
- [S, s, t, U]
5013
+ [S, s, t, H]
5014
5014
  ), Q = y(() => {
5015
- if (!R) return;
5015
+ if (!j) return;
5016
5016
  const X = {};
5017
- return Object.entries(R).forEach(([mt, bt]) => {
5017
+ return Object.entries(j).forEach(([mt, bt]) => {
5018
5018
  bt !== "" && bt !== void 0 && bt !== null && (X[mt] = bt);
5019
5019
  }), Object.keys(X).length > 0 ? X : void 0;
5020
- }, [R]), lt = y(() => {
5020
+ }, [j]), lt = y(() => {
5021
5021
  const X = {};
5022
5022
  return n && (X.motion = !1), Q && (X.components = { Tree: Q }), Object.keys(X).length > 0 ? X : void 0;
5023
5023
  }, [n, Q]), Dt = /* @__PURE__ */ b(
@@ -5028,7 +5028,7 @@ const He = 420, Nn = 440, Ja = ({
5028
5028
  treeData: rt,
5029
5029
  ...z != null ? { selectedKeys: it ?? [] } : {},
5030
5030
  ...Y != null ? { checkedKeys: nt ?? [] } : {},
5031
- ...M != null ? { expandedKeys: ht ?? [] } : {},
5031
+ ...$ != null ? { expandedKeys: ht ?? [] } : {},
5032
5032
  onSelect: At,
5033
5033
  onCheck: dt,
5034
5034
  onExpand: I,
@@ -5038,10 +5038,10 @@ const He = 420, Nn = 440, Ja = ({
5038
5038
  onDragOver: kt,
5039
5039
  onDragStart: jt,
5040
5040
  onDrop: P,
5041
- onRightClick: L,
5041
+ onRightClick: V,
5042
5042
  onLoad: tt,
5043
- styles: E,
5044
- classNames: _
5043
+ styles: _,
5044
+ classNames: R
5045
5045
  }
5046
5046
  );
5047
5047
  return lt ? /* @__PURE__ */ b($t, { theme: lt, children: Dt }) : Dt;
@@ -5118,18 +5118,18 @@ const He = 420, Nn = 440, Ja = ({
5118
5118
  token: f,
5119
5119
  ...s
5120
5120
  }) => {
5121
- const v = O((R) => R.addCommand), u = O((R) => R.getDataSet), k = O((R) => R.setDataSet), D = y(
5121
+ const v = O((j) => j.addCommand), u = O((j) => j.getDataSet), k = O((j) => j.setDataSet), D = y(
5122
5122
  () => et(t, i),
5123
5123
  [t, i]
5124
5124
  ), T = y(() => {
5125
5125
  if (D && r) return u(D, r);
5126
- }, [D, r, u]), w = y(() => T ?? c ?? 0, [T, c]), x = y(() => g ?? d, [g, d]), C = y(() => p ?? m, [p, m]), N = y(() => Ue(l, []), [l]), A = y(() => Ue(h, {}), [h]), S = y(() => Ue(f, {}), [f]), $ = B((R) => {
5126
+ }, [D, r, u]), w = y(() => T ?? c ?? 0, [T, c]), x = y(() => g ?? d, [g, d]), C = y(() => p ?? m, [p, m]), N = y(() => Ue(l, []), [l]), A = y(() => Ue(h, {}), [h]), S = y(() => Ue(f, {}), [f]), E = K((j) => {
5127
5127
  if (o) {
5128
- o(R);
5128
+ o(j);
5129
5129
  return;
5130
5130
  }
5131
- D && r && k(D, r, R), a && t && v(t, Z(a, R));
5132
- }, [o, D, r, k, a, t, v]), E = Object.keys(S).length > 0, _ = /* @__PURE__ */ b(
5131
+ D && r && k(D, r, j), a && t && v(t, Z(a, j));
5132
+ }, [o, D, r, k, a, t, v]), _ = Object.keys(S).length > 0, R = /* @__PURE__ */ b(
5133
5133
  Ar,
5134
5134
  {
5135
5135
  ...s,
@@ -5138,10 +5138,10 @@ const He = 420, Nn = 440, Ja = ({
5138
5138
  styles: A,
5139
5139
  orientation: x,
5140
5140
  titlePlacement: C,
5141
- onChange: $
5141
+ onChange: E
5142
5142
  }
5143
5143
  );
5144
- return E ? /* @__PURE__ */ b($t, { theme: { components: { Steps: S } }, children: _ }) : _;
5144
+ return _ ? /* @__PURE__ */ b($t, { theme: { components: { Steps: S } }, children: R }) : R;
5145
5145
  }, Bc = ({
5146
5146
  id: e,
5147
5147
  sessionId: t,
@@ -5194,7 +5194,7 @@ const He = 420, Nn = 440, Ja = ({
5194
5194
  if (o) return o;
5195
5195
  if (a)
5196
5196
  return Fa[a] || a;
5197
- }, [a, o]), u = y(() => Ia(c), [c]), k = B((T) => {
5197
+ }, [a, o]), u = y(() => Ia(c), [c]), k = K((T) => {
5198
5198
  if (d) {
5199
5199
  d(T);
5200
5200
  return;
@@ -5353,8 +5353,8 @@ const Vc = ({
5353
5353
  "textFontSizeSM",
5354
5354
  "groupOverlapping"
5355
5355
  ].includes(A)) {
5356
- const $ = typeof S == "string" ? parseInt(S, 10) : S;
5357
- isNaN($) || (N[A] = $);
5356
+ const E = typeof S == "string" ? parseInt(S, 10) : S;
5357
+ isNaN(E) || (N[A] = E);
5358
5358
  } else
5359
5359
  N[A] = S;
5360
5360
  }), Object.keys(N).length > 0 ? N : void 0;
@@ -5397,10 +5397,10 @@ const Vc = ({
5397
5397
  clickAction: p,
5398
5398
  ...h
5399
5399
  }) => {
5400
- const f = O((E) => E.getDataSet), s = O((E) => E.getProps), v = y(
5400
+ const f = O((_) => _.getDataSet), s = O((_) => _.getProps), v = y(
5401
5401
  () => et(t, a),
5402
5402
  [t, a]
5403
- ), { options: u } = be(c), k = y(() => {
5403
+ ), { options: u } = Se(c), k = y(() => {
5404
5404
  if (d) {
5405
5405
  if (typeof d == "string")
5406
5406
  try {
@@ -5414,21 +5414,21 @@ const Vc = ({
5414
5414
  if (v && o) return f(v, o);
5415
5415
  }, [v, o, f]), w = y(() => n ? r : T != null && T !== "" ? String(T) : (D == null ? void 0 : D.content) !== void 0 ? D.content : r, [n, T, D == null ? void 0 : D.content, r]), x = y(() => {
5416
5416
  if (c && u.length > 0 && w !== void 0 && w !== null) {
5417
- const E = re(u, w);
5418
- return (E == null ? void 0 : E.label) ?? w;
5417
+ const _ = ie(u, w);
5418
+ return (_ == null ? void 0 : _.label) ?? w;
5419
5419
  }
5420
5420
  return w;
5421
5421
  }, [c, u, w]), C = y(() => {
5422
5422
  if (!l || w === void 0 || w === null) return;
5423
- const E = String(w).toLowerCase();
5424
- return k && k[E] ? k[E] : io[E];
5423
+ const _ = String(w).toLowerCase();
5424
+ return k && k[_] ? k[_] : io[_];
5425
5425
  }, [l, w, k]), N = y(() => {
5426
- const E = { ...h };
5427
- return D && typeof D == "object" && Object.keys(D).forEach((_) => {
5428
- !["content", "color"].includes(_) && D[_] !== void 0 && D[_] !== null && (E[_] = D[_]);
5429
- }), E;
5430
- }, [h, D]), A = (D == null ? void 0 : D.color) ?? g, $ = Be(A) || C;
5431
- return /* @__PURE__ */ b(jn, { ...N, color: $, children: x || i });
5426
+ const _ = { ...h };
5427
+ return D && typeof D == "object" && Object.keys(D).forEach((R) => {
5428
+ !["content", "color"].includes(R) && D[R] !== void 0 && D[R] !== null && (_[R] = D[R]);
5429
+ }), _;
5430
+ }, [h, D]), A = (D == null ? void 0 : D.color) ?? g, E = Be(A) || C;
5431
+ return /* @__PURE__ */ b(jn, { ...N, color: E, children: x || i });
5432
5432
  }, Hc = ({
5433
5433
  id: e,
5434
5434
  sessionId: t,
@@ -5451,13 +5451,13 @@ const Vc = ({
5451
5451
  if (!s) return u;
5452
5452
  const A = N.getDataSet(s, v ?? "");
5453
5453
  return A != null && typeof A == "object" ? A : u;
5454
- }), D = k.current ?? d ?? 1, T = k.pageSize ?? g ?? 10, w = k.total ?? m ?? 0, x = B((N, A) => {
5454
+ }), D = k.current ?? d ?? 1, T = k.pageSize ?? g ?? 10, w = k.total ?? m ?? 0, x = K((N, A) => {
5455
5455
  if (c) {
5456
5456
  c(N, A);
5457
5457
  return;
5458
5458
  }
5459
5459
  s && f(s, v ?? "", { current: N, pageSize: A, total: w }), a && t && h(t, Z(a, { page: N, pageSize: A }));
5460
- }, [c, s, v, f, w, a, t, h]), C = B((N, A) => {
5460
+ }, [c, s, v, f, w, a, t, h]), C = K((N, A) => {
5461
5461
  if (l) {
5462
5462
  l(N, A);
5463
5463
  return;
@@ -5486,27 +5486,27 @@ const Vc = ({
5486
5486
  items: i,
5487
5487
  children: r,
5488
5488
  ...a
5489
- }) => /* @__PURE__ */ b(Nr, { ...a, items: i, children: r }), ke = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), ao = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
5489
+ }) => /* @__PURE__ */ b(Nr, { ...a, items: i, children: r }), Oe = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), ao = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
5490
5490
  const a = qt(null), o = qt(null), [c, l] = yt(0), [d, g] = yt(!1), [m, p] = yt(0), [h, f] = yt(0), s = e === "horizontal";
5491
- _t(() => {
5491
+ Et(() => {
5492
5492
  const x = () => {
5493
5493
  if (!a.current || !o.current) return;
5494
5494
  const N = a.current, A = o.current;
5495
- let S = 0, $ = 0, E = !1;
5496
- s ? (S = N.clientWidth, $ = A.scrollWidth, E = $ > S) : (S = N.clientHeight, $ = A.scrollHeight, E = $ > S), f(S), p($), g(E), E || l(0);
5495
+ let S = 0, E = 0, _ = !1;
5496
+ s ? (S = N.clientWidth, E = A.scrollWidth, _ = E > S) : (S = N.clientHeight, E = A.scrollHeight, _ = E > S), f(S), p(E), g(_), _ || l(0);
5497
5497
  }, C = new ResizeObserver(x);
5498
5498
  return a.current && C.observe(a.current), o.current && C.observe(o.current), x(), () => C.disconnect();
5499
5499
  }, [s]);
5500
- const v = c <= 0, u = !d || c >= m - h, k = B(() => {
5500
+ const v = c <= 0, u = !d || c >= m - h, k = K(() => {
5501
5501
  var C, N;
5502
5502
  if (v) return;
5503
5503
  const x = s ? ((C = a.current) == null ? void 0 : C.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200;
5504
5504
  l((A) => Math.max(0, A - x));
5505
- }, [s, v]), D = B(() => {
5506
- var N, A, S, $, E, _;
5505
+ }, [s, v]), D = K(() => {
5506
+ var N, A, S, E, _, R;
5507
5507
  if (u) return;
5508
- const x = s ? ((N = a.current) == null ? void 0 : N.clientWidth) ?? 200 : ((A = a.current) == null ? void 0 : A.clientHeight) ?? 200, C = s ? (((S = o.current) == null ? void 0 : S.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);
5509
- l((R) => Math.min(C, R + x));
5508
+ const x = s ? ((N = a.current) == null ? void 0 : N.clientWidth) ?? 200 : ((A = a.current) == null ? void 0 : A.clientHeight) ?? 200, C = s ? (((S = o.current) == null ? void 0 : S.scrollWidth) ?? 0) - (((E = a.current) == null ? void 0 : E.clientWidth) ?? 0) : (((_ = o.current) == null ? void 0 : _.scrollHeight) ?? 0) - (((R = a.current) == null ? void 0 : R.clientHeight) ?? 0);
5509
+ l((j) => Math.min(C, j + x));
5510
5510
  }, [s, u]), T = n || (s ? /* @__PURE__ */ b(Vn, {}) : /* @__PURE__ */ b(Ir, {})), w = i || (s ? /* @__PURE__ */ b(qn, {}) : /* @__PURE__ */ b(Wn, {}));
5511
5511
  return /* @__PURE__ */ ct(
5512
5512
  "div",
@@ -5626,15 +5626,15 @@ const Vc = ({
5626
5626
  mode: N,
5627
5627
  inlineCollapsed: A,
5628
5628
  remoteUrl: S,
5629
- overflowStrategy: $ = "default",
5630
- paginationArrowStyle: E,
5631
- paginationArrowIconPrev: _,
5632
- paginationArrowIconNext: R,
5629
+ overflowStrategy: E = "default",
5630
+ paginationArrowStyle: _,
5631
+ paginationArrowIconPrev: R,
5632
+ paginationArrowIconNext: j,
5633
5633
  expandTrigger: q,
5634
5634
  // 仅设计器/业务用,不传给 DOM,避免 React 警告
5635
- ...U
5635
+ ...H
5636
5636
  }) => {
5637
- const K = O((F) => F.addCommand), V = O((F) => F.setDataSet), z = y(
5637
+ const M = O((F) => F.addCommand), L = O((F) => F.setDataSet), z = y(
5638
5638
  () => et(t, i),
5639
5639
  [t, i]
5640
5640
  ), Y = O(
@@ -5648,24 +5648,24 @@ const Vc = ({
5648
5648
  // 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
5649
5649
  // 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
5650
5650
  // 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
5651
- ), M = y(() => ({}), []), j = Y ?? M, G = y(
5652
- () => (j == null ? void 0 : j.items) ?? (Array.isArray(j) ? j : void 0) ?? (Array.isArray(j == null ? void 0 : j.value) ? j.value : void 0),
5653
- [j]
5654
- ), W = y(() => n ? G ?? h ?? [] : z ? G ?? [] : h ?? [], [n, z, G, h]), H = y(
5655
- () => j.selectedKeys ?? f,
5656
- [j.selectedKeys, f]
5651
+ ), $ = y(() => ({}), []), B = Y ?? $, G = y(
5652
+ () => (B == null ? void 0 : B.items) ?? (Array.isArray(B) ? B : void 0) ?? (Array.isArray(B == null ? void 0 : B.value) ? B.value : void 0),
5653
+ [B]
5654
+ ), W = y(() => n ? G ?? h ?? [] : z ? G ?? [] : h ?? [], [n, z, G, h]), U = y(
5655
+ () => B.selectedKeys ?? f,
5656
+ [B.selectedKeys, f]
5657
5657
  ), rt = y(
5658
- () => j.openKeys ?? (x && C ? void 0 : s),
5659
- [j.openKeys, x, C, s]
5658
+ () => B.openKeys ?? (x && C ? void 0 : s),
5659
+ [B.openKeys, x, C, s]
5660
5660
  ), it = y(
5661
5661
  () => et(t, x),
5662
5662
  [t, x]
5663
5663
  ), nt = O((F) => {
5664
- if (!j.openKeys && it && C)
5664
+ if (!B.openKeys && it && C)
5665
5665
  return F.getDataSet(it, C);
5666
5666
  }), ht = y(() => {
5667
- const F = (pt) => Array.isArray(pt) ? pt.map((Et) => {
5668
- const Mt = { ...Et };
5667
+ const F = (pt) => Array.isArray(pt) ? pt.map((_t) => {
5668
+ const Mt = { ..._t };
5669
5669
  if (Mt.icon && typeof Mt.icon == "string") {
5670
5670
  const zt = Jt[Mt.icon];
5671
5671
  zt && (Mt.icon = /* @__PURE__ */ b(zt, {}));
@@ -5674,24 +5674,24 @@ const Vc = ({
5674
5674
  }) : [];
5675
5675
  return F(W || []);
5676
5676
  }, [W]), At = y(
5677
- () => H,
5678
- [H]
5677
+ () => U,
5678
+ [U]
5679
5679
  ), dt = y(
5680
5680
  () => rt ?? nt,
5681
5681
  [rt, nt]
5682
- ), I = B(
5682
+ ), I = K(
5683
5683
  (F) => {
5684
5684
  if (d) {
5685
5685
  d(F);
5686
5686
  return;
5687
5687
  }
5688
- a && t && K(
5688
+ a && t && M(
5689
5689
  t,
5690
5690
  Z(a, { key: F.key, keyPath: F.keyPath })
5691
5691
  );
5692
5692
  },
5693
- [d, a, t, K]
5694
- ), st = B(
5693
+ [d, a, t, M]
5694
+ ), st = K(
5695
5695
  (F) => {
5696
5696
  if (g) {
5697
5697
  g(F);
@@ -5700,10 +5700,10 @@ const Vc = ({
5700
5700
  if (z)
5701
5701
  if (r) {
5702
5702
  const pt = O.getState().getDataSet(z, r) || {};
5703
- V(z, r, { ...pt, selectedKeys: F.selectedKeys });
5703
+ L(z, r, { ...pt, selectedKeys: F.selectedKeys });
5704
5704
  } else
5705
- V(z, "selectedKeys", F.selectedKeys);
5706
- o && t && K(
5705
+ L(z, "selectedKeys", F.selectedKeys);
5706
+ o && t && M(
5707
5707
  t,
5708
5708
  Z(o, { selectedKeys: F.selectedKeys })
5709
5709
  );
@@ -5712,12 +5712,12 @@ const Vc = ({
5712
5712
  g,
5713
5713
  z,
5714
5714
  r,
5715
- V,
5715
+ L,
5716
5716
  o,
5717
5717
  t,
5718
- K
5718
+ M
5719
5719
  ]
5720
- ), at = B(
5720
+ ), at = K(
5721
5721
  (F) => {
5722
5722
  if (m) {
5723
5723
  m(F);
@@ -5726,11 +5726,11 @@ const Vc = ({
5726
5726
  if (z)
5727
5727
  if (r) {
5728
5728
  const pt = O.getState().getDataSet(z, r) || {};
5729
- V(z, r, { ...pt, openKeys: F });
5729
+ L(z, r, { ...pt, openKeys: F });
5730
5730
  } else
5731
- V(z, "openKeys", F);
5732
- else it && C && V(it, C, F);
5733
- c && t && K(
5731
+ L(z, "openKeys", F);
5732
+ else it && C && L(it, C, F);
5733
+ c && t && M(
5734
5734
  t,
5735
5735
  Z(c, { openKeys: F })
5736
5736
  );
@@ -5741,18 +5741,18 @@ const Vc = ({
5741
5741
  r,
5742
5742
  it,
5743
5743
  C,
5744
- V,
5744
+ L,
5745
5745
  c,
5746
5746
  t,
5747
- K
5747
+ M
5748
5748
  ]
5749
- ), Ot = B(
5749
+ ), Ot = K(
5750
5750
  (F) => {
5751
5751
  if (p) {
5752
5752
  p(F);
5753
5753
  return;
5754
5754
  }
5755
- l && t && K(
5755
+ l && t && M(
5756
5756
  t,
5757
5757
  Z(l, {
5758
5758
  selectedKeys: F.selectedKeys,
@@ -5760,55 +5760,55 @@ const Vc = ({
5760
5760
  })
5761
5761
  );
5762
5762
  },
5763
- [p, l, t, K]
5763
+ [p, l, t, M]
5764
5764
  ), kt = N === "inline" && A !== void 0 ? { inlineCollapsed: A } : {}, jt = y(() => {
5765
5765
  if (!D) return;
5766
5766
  const F = {};
5767
- return Object.entries(D).forEach(([pt, Et]) => {
5768
- Et !== "" && Et !== void 0 && Et !== null && (F[pt] = Et);
5767
+ return Object.entries(D).forEach(([pt, _t]) => {
5768
+ _t !== "" && _t !== void 0 && _t !== null && (F[pt] = _t);
5769
5769
  }), Object.keys(F).length > 0 ? F : void 0;
5770
5770
  }, [D]), P = n ? {
5771
5771
  motion: { motionName: "" }
5772
- } : {}, L = y(() => {
5773
- if (typeof _ == "string" && _) {
5774
- const F = Jt[_];
5775
- if (F) return /* @__PURE__ */ b(F, {});
5776
- }
5777
- return _;
5778
- }, [_]), tt = y(() => {
5772
+ } : {}, V = y(() => {
5779
5773
  if (typeof R == "string" && R) {
5780
5774
  const F = Jt[R];
5781
5775
  if (F) return /* @__PURE__ */ b(F, {});
5782
5776
  }
5783
5777
  return R;
5784
- }, [R]), Q = y(() => $ === "pagination" || $ === "scroll" ? null : w, [$, w]), lt = Jr(), ft = e || lt.replace(/:/g, "-"), Dt = y(() => {
5778
+ }, [R]), tt = y(() => {
5779
+ if (typeof j == "string" && j) {
5780
+ const F = Jt[j];
5781
+ if (F) return /* @__PURE__ */ b(F, {});
5782
+ }
5783
+ return j;
5784
+ }, [j]), Q = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), lt = Jr(), ft = e || lt.replace(/:/g, "-"), Dt = y(() => {
5785
5785
  var Mt;
5786
5786
  if (!u || typeof u == "function") return "";
5787
5787
  const F = (Mt = u.subMenu) == null ? void 0 : Mt.root;
5788
5788
  if (!F) return "";
5789
- const pt = [], Et = `[data-and-menu-id="${ft}"]`;
5789
+ const pt = [], _t = `[data-and-menu-id="${ft}"]`;
5790
5790
  if (F.item && Object.keys(F.item).length > 0) {
5791
- const zt = ke(F.item);
5792
- pt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title { ${zt} }`);
5791
+ const zt = Oe(F.item);
5792
+ pt.push(`${_t} .ant-menu-submenu > .ant-menu-submenu-title { ${zt} }`);
5793
5793
  }
5794
5794
  if (F.itemIcon && Object.keys(F.itemIcon).length > 0) {
5795
- const zt = ke(F.itemIcon);
5796
- pt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${zt} }`);
5795
+ const zt = Oe(F.itemIcon);
5796
+ pt.push(`${_t} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${zt} }`);
5797
5797
  }
5798
5798
  if (F.itemContent && Object.keys(F.itemContent).length > 0) {
5799
- const zt = ke(F.itemContent);
5800
- pt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${zt} }`);
5799
+ const zt = Oe(F.itemContent);
5800
+ pt.push(`${_t} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${zt} }`);
5801
5801
  }
5802
5802
  if (F.selected && Object.keys(F.selected).length > 0) {
5803
- const zt = ke(F.selected);
5804
- pt.push(`${Et} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${zt} }`);
5803
+ const zt = Oe(F.selected);
5804
+ pt.push(`${_t} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${zt} }`);
5805
5805
  }
5806
5806
  return pt.join(`
5807
5807
  `);
5808
5808
  }, [u, ft]), X = /* @__PURE__ */ b(
5809
5809
  kr,
5810
5810
  {
5811
- ...U,
5811
+ ...H,
5812
5812
  ...kt,
5813
5813
  ...P,
5814
5814
  mode: N,
@@ -5824,18 +5824,18 @@ const Vc = ({
5824
5824
  classNames: k,
5825
5825
  expandIcon: T,
5826
5826
  overflowedIndicator: Q,
5827
- disabledOverflow: $ !== "default"
5827
+ disabledOverflow: E !== "default"
5828
5828
  }
5829
- ), mt = () => $ === "pagination" ? /* @__PURE__ */ b(
5829
+ ), mt = () => E === "pagination" ? /* @__PURE__ */ b(
5830
5830
  ao,
5831
5831
  {
5832
5832
  mode: N || "horizontal",
5833
- arrowStyle: E,
5834
- arrowIconPrev: L,
5833
+ arrowStyle: _,
5834
+ arrowIconPrev: V,
5835
5835
  arrowIconNext: tt,
5836
5836
  children: X
5837
5837
  }
5838
- ) : $ === "scroll" ? /* @__PURE__ */ b(oo, { mode: N || "horizontal", children: X }) : X, bt = y(() => {
5838
+ ) : E === "scroll" ? /* @__PURE__ */ b(oo, { mode: N || "horizontal", children: X }) : X, bt = y(() => {
5839
5839
  const F = {};
5840
5840
  return n && (F.motion = !1), jt && (F.components = { Menu: jt }), Object.keys(F).length > 0 ? F : void 0;
5841
5841
  }, [n, jt]);
@@ -6008,36 +6008,41 @@ const Vc = ({
6008
6008
  itemRender: m,
6009
6009
  ...p
6010
6010
  }) => {
6011
- const h = Me(i, r, t), f = h.dataSet, s = h.dataSetField, v = h.sessionId, u = O((_) => _.addCommand), k = y(
6011
+ const h = Me(i, r, t), f = h.dataSet, s = h.dataSetField, v = h.sessionId, u = pe(re), k = O((M) => M.addCommand), D = y(
6012
6012
  () => et(v, f),
6013
6013
  [v, f]
6014
- ), D = O((_) => k && s ? _.getDataSet(k, s) : null), T = y(() => D && Array.isArray(D) ? D : co(a), [D, a]), w = y(() => so(o), [o]), x = y(() => lo(c), [c]), C = y(() => {
6014
+ ), T = O((M) => D && s ? M.getDataSet(D, s) : null), w = y(() => !v || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [v, e, u]), x = O(
6015
+ (M) => {
6016
+ var L;
6017
+ return w ? ((L = M.propsStore[`${v}_props`]) == null ? void 0 : L[w]) ?? null : null;
6018
+ }
6019
+ ), C = y(() => T && Array.isArray(T) ? T : co(a), [T, a]), N = (x == null ? void 0 : x.columns) !== void 0 && (x == null ? void 0 : x.columns) !== null ? x.columns : o, A = y(() => so(N), [N]), S = y(() => lo(c), [c]), E = y(() => {
6015
6020
  if (g) return g;
6016
6021
  if (d && v)
6017
- return (_) => {
6018
- u(v, {
6022
+ return (M) => {
6023
+ k(v, {
6019
6024
  actionName: d,
6020
- arg: _,
6025
+ arg: M,
6021
6026
  timestamp: Date.now()
6022
6027
  });
6023
6028
  };
6024
- }, [g, d, v, u]), N = y(() => T.length > 0 ? T : n ? [
6029
+ }, [g, d, v, k]), _ = y(() => C.length > 0 ? C : n ? [
6025
6030
  { key: "1", height: 150, data: { title: "示例项 1" } },
6026
6031
  { key: "2", height: 200, data: { title: "示例项 2" } },
6027
6032
  { key: "3", height: 120, data: { title: "示例项 3" } },
6028
6033
  { key: "4", height: 180, data: { title: "示例项 4" } },
6029
6034
  { key: "5", height: 140, data: { title: "示例项 5" } },
6030
6035
  { key: "6", height: 160, data: { title: "示例项 6" } }
6031
- ] : [], [T, n]), A = y(() => {
6036
+ ] : [], [C, n]), R = y(() => {
6032
6037
  if (m) return m;
6033
6038
  if (n)
6034
- return (_) => {
6035
- var R;
6039
+ return (M) => {
6040
+ var L;
6036
6041
  return /* @__PURE__ */ b(
6037
6042
  "div",
6038
6043
  {
6039
6044
  style: {
6040
- height: _.height || 100,
6045
+ height: M.height || 100,
6041
6046
  background: "#f0f5ff",
6042
6047
  border: "1px dashed #91caff",
6043
6048
  borderRadius: 8,
@@ -6047,41 +6052,41 @@ const Vc = ({
6047
6052
  color: "#1677ff",
6048
6053
  fontSize: 14
6049
6054
  },
6050
- children: ((R = _.data) == null ? void 0 : R.title) || `Item ${_.key}`
6055
+ children: ((L = M.data) == null ? void 0 : L.title) || `Item ${M.key}`
6051
6056
  }
6052
6057
  );
6053
6058
  };
6054
- }, [m, n]), S = y(() => {
6055
- if (A)
6056
- return !f || !s ? A : (_, R) => {
6057
- const q = typeof R == "number" ? R : typeof (_ == null ? void 0 : _.index) == "number" ? _.index : Number((_ == null ? void 0 : _.index) ?? 0);
6059
+ }, [m, n]), j = y(() => {
6060
+ if (R)
6061
+ return !f || !s ? R : (M, L) => {
6062
+ const z = typeof L == "number" ? L : typeof (M == null ? void 0 : M.index) == "number" ? M.index : Number((M == null ? void 0 : M.index) ?? 0);
6058
6063
  return /* @__PURE__ */ b(
6059
- ce.Provider,
6064
+ re.Provider,
6060
6065
  {
6061
6066
  value: {
6062
6067
  dataSet: f,
6063
- index: q,
6068
+ index: z,
6064
6069
  sessionId: v,
6065
6070
  dataSetFieldRoot: s
6066
6071
  },
6067
- children: A(_)
6072
+ children: R(M)
6068
6073
  }
6069
6074
  );
6070
6075
  };
6071
- }, [A, f, s, v]), {
6072
- layoutChangeAction: $,
6073
- ...E
6076
+ }, [R, f, s, v]), {
6077
+ layoutChangeAction: q,
6078
+ ...H
6074
6079
  } = p;
6075
6080
  return /* @__PURE__ */ b(
6076
- Er,
6081
+ _r,
6077
6082
  {
6078
- ...E,
6079
- items: N,
6080
- columns: w,
6081
- gutter: x,
6083
+ ...H,
6084
+ items: _,
6085
+ columns: A,
6086
+ gutter: S,
6082
6087
  fresh: l,
6083
- itemRender: S,
6084
- onLayoutChange: C
6088
+ itemRender: j,
6089
+ onLayoutChange: E
6085
6090
  }
6086
6091
  );
6087
6092
  }, Xc = ({
@@ -6108,11 +6113,11 @@ const Vc = ({
6108
6113
  return s && typeof s == "object" && Object.keys(s).forEach((x) => {
6109
6114
  x !== "title" && x !== "message" && s[x] !== void 0 && s[x] !== null && (w[x] = s[x]);
6110
6115
  }), w;
6111
- }, [m, l, s]), D = y(() => d ? { closeIcon: /* @__PURE__ */ b("span", { children: d }) } : g, [d, g]), T = B((w) => {
6116
+ }, [m, l, s]), D = y(() => d ? { closeIcon: /* @__PURE__ */ b("span", { children: d }) } : g, [d, g]), T = K((w) => {
6112
6117
  r && r(w);
6113
6118
  }, [r]);
6114
6119
  return /* @__PURE__ */ b(
6115
- _r,
6120
+ Er,
6116
6121
  {
6117
6122
  ...k,
6118
6123
  title: u,
@@ -6140,13 +6145,13 @@ const Vc = ({
6140
6145
  ), v = y(() => {
6141
6146
  if (s && r)
6142
6147
  return h(s, r);
6143
- }, [s, r, h]), u = v !== void 0 ? !!v : d, k = B(() => {
6148
+ }, [s, r, h]), u = v !== void 0 ? !!v : d, k = K(() => {
6144
6149
  c && c(), s && r && f(s, r, !1), a && t && p(t, {
6145
6150
  actionName: a,
6146
6151
  arg: null,
6147
6152
  timestamp: Date.now()
6148
6153
  });
6149
- }, [c, s, r, f, a, t, p]), D = B(() => {
6154
+ }, [c, s, r, f, a, t, p]), D = K(() => {
6150
6155
  l && l(), s && r && f(s, r, !1), o && t && p(t, {
6151
6156
  actionName: o,
6152
6157
  arg: null,
@@ -6181,7 +6186,7 @@ const Vc = ({
6181
6186
  ), f = y(() => {
6182
6187
  if (h && r)
6183
6188
  return m(h, r);
6184
- }, [h, r, m]), s = f !== void 0 ? !!f : c, v = B(() => {
6189
+ }, [h, r, m]), s = f !== void 0 ? !!f : c, v = K(() => {
6185
6190
  o && o(), h && r && p(h, r, !1), a && t && g(t, {
6186
6191
  actionName: a,
6187
6192
  arg: null,
@@ -6252,62 +6257,62 @@ const Vc = ({
6252
6257
  children: w,
6253
6258
  ...x
6254
6259
  }) => {
6255
- const C = O((H) => H.addCommand), N = O((H) => H.getDataSet), A = O((H) => H.setDataSet), S = y(
6260
+ const C = O((U) => U.addCommand), N = O((U) => U.getDataSet), A = O((U) => U.setDataSet), S = y(
6256
6261
  () => et(t, i),
6257
6262
  [t, i]
6258
- ), $ = T === "default" ? "medium" : T, E = y(() => {
6259
- const H = an(s, {});
6263
+ ), E = T === "default" ? "medium" : T, _ = y(() => {
6264
+ const U = an(s, {});
6260
6265
  return Object.fromEntries(
6261
- Object.entries(H).map(([rt, it]) => [
6266
+ Object.entries(U).map(([rt, it]) => [
6262
6267
  rt,
6263
6268
  fo(it)
6264
6269
  ])
6265
6270
  );
6266
- }, [s]), _ = y(() => {
6267
- const H = mo(g);
6268
- return H.length > 0 ? H : void 0;
6271
+ }, [s]), R = y(() => {
6272
+ const U = mo(g);
6273
+ return U.length > 0 ? U : void 0;
6269
6274
  }, [g]), q = y(() => {
6270
6275
  if (S && r) {
6271
- const H = N(S, `${r}.activeTabKey`);
6272
- if (typeof H == "string") return H;
6276
+ const U = N(S, `${r}.activeTabKey`);
6277
+ if (typeof U == "string") return U;
6273
6278
  }
6274
- }, [S, r, N]) ?? m, U = B((H) => {
6279
+ }, [S, r, N]) ?? m, H = K((U) => {
6275
6280
  if (f) {
6276
- f(H);
6281
+ f(U);
6277
6282
  return;
6278
6283
  }
6279
- S && r && A(S, `${r}.activeTabKey`, H), h && t && C(t, Z(h, { key: H }));
6280
- }, [f, S, r, A, h, t, C]), { titleSlot: K, extraSlot: V, coverSlot: z, actionsSlot: Y, otherChildren: M, actionsFromChildren: j } = y(() => {
6281
- let H = null, rt = null, it = null, nt = [];
6284
+ S && r && A(S, `${r}.activeTabKey`, U), h && t && C(t, Z(h, { key: U }));
6285
+ }, [f, S, r, A, h, t, C]), { titleSlot: M, extraSlot: L, coverSlot: z, actionsSlot: Y, otherChildren: $, actionsFromChildren: B } = y(() => {
6286
+ let U = null, rt = null, it = null, nt = [];
6282
6287
  const ht = [];
6283
6288
  let At = !1;
6284
- return a && (H = a), o && (rt = o), c && (it = c), d && (nt = d), Vt.Children.forEach(w, (dt) => {
6289
+ return a && (U = a), o && (rt = o), c && (it = c), d && (nt = d), Vt.Children.forEach(w, (dt) => {
6285
6290
  if (!Vt.isValidElement(dt)) {
6286
6291
  ht.push(dt);
6287
6292
  return;
6288
6293
  }
6289
6294
  const I = dt.props, st = I["data-slot-type"];
6290
- st === "title" && !a ? H = dt : st === "extra" && !o ? rt = dt : st === "cover" && !c ? it = dt : st === "actions" && !d ? (nt = [dt], At = !0) : st === "body" && I.children ? ht.push(I.children) : ht.push(dt);
6291
- }), { titleSlot: H, extraSlot: rt, coverSlot: it, actionsSlot: nt, otherChildren: ht, actionsFromChildren: At };
6295
+ st === "title" && !a ? U = dt : st === "extra" && !o ? rt = dt : st === "cover" && !c ? it = dt : st === "actions" && !d ? (nt = [dt], At = !0) : st === "body" && I.children ? ht.push(I.children) : ht.push(dt);
6296
+ }), { titleSlot: U, extraSlot: rt, coverSlot: it, actionsSlot: nt, otherChildren: ht, actionsFromChildren: At };
6292
6297
  }, [w, a, o, c, d]), G = y(() => {
6293
- const H = an(v, {});
6294
- return j ? { actionsLiMargin: "0px", ...H } : H;
6295
- }, [v, j]), W = /* @__PURE__ */ b(
6298
+ const U = an(v, {});
6299
+ return B ? { actionsLiMargin: "0px", ...U } : U;
6300
+ }, [v, B]), W = /* @__PURE__ */ b(
6296
6301
  Je,
6297
6302
  {
6298
6303
  ...x,
6299
- size: $,
6300
- title: K,
6301
- extra: V,
6304
+ size: E,
6305
+ title: M,
6306
+ extra: L,
6302
6307
  cover: z,
6303
6308
  tabBarExtraContent: l,
6304
6309
  actions: Y.length > 0 ? Y : void 0,
6305
- tabList: _,
6310
+ tabList: R,
6306
6311
  activeTabKey: q,
6307
6312
  defaultActiveTabKey: p,
6308
- onTabChange: _ ? U : void 0,
6309
- styles: E,
6310
- children: M
6313
+ onTabChange: R ? H : void 0,
6314
+ styles: _,
6315
+ children: $
6311
6316
  }
6312
6317
  );
6313
6318
  return G && Object.keys(G).length > 0 ? /* @__PURE__ */ b($t, { theme: { components: { Card: G } }, children: W }) : W;
@@ -6366,7 +6371,7 @@ const Vc = ({
6366
6371
  index: f,
6367
6372
  ...s
6368
6373
  }) => {
6369
- const v = O((S) => S.addCommand), u = $e(ce), k = f ?? (u == null ? void 0 : u.index), D = y(
6374
+ const v = O((S) => S.addCommand), u = pe(re), k = f ?? (u == null ? void 0 : u.index), D = y(
6370
6375
  () => et(t, i),
6371
6376
  [t, i]
6372
6377
  ), T = O((S) => {
@@ -6378,21 +6383,21 @@ const Vc = ({
6378
6383
  const S = T;
6379
6384
  if (Array.isArray(S == null ? void 0 : S.items)) return S.items;
6380
6385
  if (Array.isArray(S == null ? void 0 : S.value)) return S.value;
6381
- }, [T]), x = y(() => n ? w ?? kn(o) ?? [] : D ? w ?? [] : kn(o) ?? [], [n, D, w, o]), C = B(
6382
- (S, $) => {
6386
+ }, [T]), x = y(() => n ? w ?? kn(o) ?? [] : D ? w ?? [] : kn(o) ?? [], [n, D, w, o]), C = K(
6387
+ (S, E) => {
6383
6388
  if (m) {
6384
- m(S, $);
6389
+ m(S, E);
6385
6390
  return;
6386
6391
  }
6387
6392
  if (g && t) {
6388
- const { actionName: E, arg: _ } = te(g, S, {
6393
+ const { actionName: _, arg: R } = te(g, S, {
6389
6394
  id: e,
6390
6395
  dataSet: i,
6391
6396
  dataSetField: r,
6392
6397
  index: k,
6393
- source: $.source
6398
+ source: E.source
6394
6399
  });
6395
- v(t, Z(E, _));
6400
+ v(t, Z(_, R));
6396
6401
  }
6397
6402
  },
6398
6403
  [
@@ -6410,7 +6415,7 @@ const Vc = ({
6410
6415
  items: Fn(x),
6411
6416
  onClick: (S) => {
6412
6417
  if (c && t) {
6413
- const { actionName: $, arg: E } = te(c, S.key, {
6418
+ const { actionName: E, arg: _ } = te(c, S.key, {
6414
6419
  id: e,
6415
6420
  dataSet: i,
6416
6421
  dataSetField: r,
@@ -6418,12 +6423,12 @@ const Vc = ({
6418
6423
  key: S.key,
6419
6424
  keyPath: S.keyPath
6420
6425
  });
6421
- v(t, Z($, E));
6426
+ v(t, Z(E, _));
6422
6427
  }
6423
6428
  },
6424
6429
  onSelect: (S) => {
6425
6430
  if (l && t) {
6426
- const { actionName: $, arg: E } = te(l, S.key, {
6431
+ const { actionName: E, arg: _ } = te(l, S.key, {
6427
6432
  id: e,
6428
6433
  dataSet: i,
6429
6434
  dataSetField: r,
@@ -6432,12 +6437,12 @@ const Vc = ({
6432
6437
  keyPath: S.keyPath,
6433
6438
  selectedKeys: S.selectedKeys
6434
6439
  });
6435
- v(t, Z($, E));
6440
+ v(t, Z(E, _));
6436
6441
  }
6437
6442
  },
6438
6443
  onDeselect: (S) => {
6439
6444
  if (d && t) {
6440
- const { actionName: $, arg: E } = te(d, S.key, {
6445
+ const { actionName: E, arg: _ } = te(d, S.key, {
6441
6446
  id: e,
6442
6447
  dataSet: i,
6443
6448
  dataSetField: r,
@@ -6446,7 +6451,7 @@ const Vc = ({
6446
6451
  keyPath: S.keyPath,
6447
6452
  selectedKeys: S.selectedKeys
6448
6453
  });
6449
- v(t, Z($, E));
6454
+ v(t, Z(E, _));
6450
6455
  }
6451
6456
  }
6452
6457
  }),
@@ -6552,16 +6557,16 @@ const Vc = ({
6552
6557
  renderPanelContent: s,
6553
6558
  ...v
6554
6559
  }) => {
6555
- const u = O((E) => E.addCommand), k = y(
6560
+ const u = O((_) => _.addCommand), k = y(
6556
6561
  () => Ye(i, []),
6557
6562
  [i]
6558
6563
  ), D = y(() => Ye(h, {}), [h]), T = y(() => fe(o), [o]), w = y(() => {
6559
6564
  if (c) {
6560
6565
  if (typeof c == "string") {
6561
- const E = Ye(c, null);
6562
- return E && typeof E == "object" ? {
6563
- start: fe(E.start),
6564
- end: fe(E.end)
6566
+ const _ = Ye(c, null);
6567
+ return _ && typeof _ == "object" ? {
6568
+ start: fe(_.start),
6569
+ end: fe(_.end)
6565
6570
  } : void 0;
6566
6571
  }
6567
6572
  return {
@@ -6569,47 +6574,47 @@ const Vc = ({
6569
6574
  end: fe(c.end)
6570
6575
  };
6571
6576
  }
6572
- }, [c]), x = B(
6573
- (E) => {
6577
+ }, [c]), x = K(
6578
+ (_) => {
6574
6579
  if (g) {
6575
- g(E);
6580
+ g(_);
6576
6581
  return;
6577
6582
  }
6578
- l && t && u(t, Z(l, { sizes: E }));
6583
+ l && t && u(t, Z(l, { sizes: _ }));
6579
6584
  },
6580
6585
  [g, l, t, u]
6581
- ), C = B(
6582
- (E) => {
6586
+ ), C = K(
6587
+ (_) => {
6583
6588
  if (m) {
6584
- m(E);
6589
+ m(_);
6585
6590
  return;
6586
6591
  }
6587
- d && t && u(t, Z(d, { sizes: E }));
6592
+ d && t && u(t, Z(d, { sizes: _ }));
6588
6593
  },
6589
6594
  [m, d, t, u]
6590
- ), N = () => f && Vt.Children.count(f) > 0 ? Vt.Children.map(f, (E, _) => {
6591
- const R = k[_] || {};
6595
+ ), N = () => f && Vt.Children.count(f) > 0 ? Vt.Children.map(f, (_, R) => {
6596
+ const j = k[R] || {};
6592
6597
  return /* @__PURE__ */ b(
6593
6598
  Ve.Panel,
6594
6599
  {
6595
- defaultSize: R.defaultSize,
6596
- min: R.min,
6597
- max: R.max,
6598
- collapsible: R.collapsible,
6599
- resizable: R.resizable !== !1,
6600
- children: E
6600
+ defaultSize: j.defaultSize,
6601
+ min: j.min,
6602
+ max: j.max,
6603
+ collapsible: j.collapsible,
6604
+ resizable: j.resizable !== !1,
6605
+ children: _
6601
6606
  },
6602
- R.key || _
6607
+ j.key || R
6603
6608
  );
6604
- }) : k.map((E, _) => /* @__PURE__ */ b(
6609
+ }) : k.map((_, R) => /* @__PURE__ */ b(
6605
6610
  Ve.Panel,
6606
6611
  {
6607
- defaultSize: E.defaultSize || void 0,
6608
- min: E.min || void 0,
6609
- max: E.max || void 0,
6610
- collapsible: E.collapsible,
6611
- resizable: E.resizable !== !1,
6612
- children: s ? s(E.key, _) : /* @__PURE__ */ ct(
6612
+ defaultSize: _.defaultSize || void 0,
6613
+ min: _.min || void 0,
6614
+ max: _.max || void 0,
6615
+ collapsible: _.collapsible,
6616
+ resizable: _.resizable !== !1,
6617
+ children: s ? s(_.key, R) : /* @__PURE__ */ ct(
6613
6618
  "div",
6614
6619
  {
6615
6620
  style: {
@@ -6622,13 +6627,13 @@ const Vc = ({
6622
6627
  },
6623
6628
  children: [
6624
6629
  "Panel ",
6625
- _ + 1
6630
+ R + 1
6626
6631
  ]
6627
6632
  }
6628
6633
  )
6629
6634
  },
6630
- E.key || _
6631
- )), { layout: A, ...S } = v, $ = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
6635
+ _.key || R
6636
+ )), { layout: A, ...S } = v, E = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
6632
6637
  Ve,
6633
6638
  {
6634
6639
  ...S,
@@ -6644,7 +6649,7 @@ const Vc = ({
6644
6649
  },
6645
6650
  r
6646
6651
  ) });
6647
- return D && Object.keys(D).length > 0 ? /* @__PURE__ */ b($t, { theme: { components: { Splitter: D } }, children: $ }) : $;
6652
+ return D && Object.keys(D).length > 0 ? /* @__PURE__ */ b($t, { theme: { components: { Splitter: D } }, children: E }) : E;
6648
6653
  }, ss = ({
6649
6654
  children: e,
6650
6655
  className: t,
@@ -6687,37 +6692,37 @@ const Vc = ({
6687
6692
  "page-size": u = "small",
6688
6693
  "page-showLessItems": k = !1
6689
6694
  }) => {
6690
- const D = u === "default" ? "middle" : u, T = O((R) => R.getDataSet), w = y(
6695
+ const D = u === "default" ? "middle" : u, T = O((j) => j.getDataSet), w = y(
6691
6696
  () => et(t, i),
6692
6697
  [t, i]
6693
6698
  ), [x, C] = yt(1), [N, A] = yt(p), S = y(() => {
6694
6699
  if (w && r) {
6695
- const R = T(w, r);
6696
- return Array.isArray(R) ? R : [];
6700
+ const j = T(w, r);
6701
+ return Array.isArray(j) ? j : [];
6697
6702
  }
6698
6703
  return [];
6699
- }, [w, r, T]), $ = y(() => n ? S.length > 0 ? S : c || [] : w ? S : c || [], [n, w, S, c]), E = y(() => {
6700
- let R = $;
6704
+ }, [w, r, T]), E = y(() => n ? S.length > 0 ? S : c || [] : w ? S : c || [], [n, w, S, c]), _ = y(() => {
6705
+ let j = E;
6701
6706
  if (!m) {
6702
- const q = (x - 1) * N, U = q + N;
6703
- R = R.slice(q, U);
6707
+ const q = (x - 1) * N, H = q + N;
6708
+ j = j.slice(q, H);
6704
6709
  }
6705
- return l ? R.slice(0, l) : R;
6706
- }, [$, m, x, N, l]);
6707
- if (!$ || $.length === 0)
6710
+ return l ? j.slice(0, l) : j;
6711
+ }, [E, m, x, N, l]);
6712
+ if (!E || E.length === 0)
6708
6713
  return o ? /* @__PURE__ */ b(ge, { children: o() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
6709
- const _ = (R, q) => {
6710
- C(R), q && A(q);
6714
+ const R = (j, q) => {
6715
+ C(j), q && A(q);
6711
6716
  };
6712
6717
  return /* @__PURE__ */ ct("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
6713
- /* @__PURE__ */ b("div", { style: { flex: 1 }, children: E.map((R, q) => /* @__PURE__ */ b(Vt.Fragment, { children: a ? a(R, q) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(R) }) }, R.id || q)) }),
6714
- !m && $.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
6718
+ /* @__PURE__ */ b("div", { style: { flex: 1 }, children: _.map((j, q) => /* @__PURE__ */ b(Vt.Fragment, { children: a ? a(j, q) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(j) }) }, j.id || q)) }),
6719
+ !m && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
6715
6720
  Bn,
6716
6721
  {
6717
6722
  current: x,
6718
6723
  pageSize: N,
6719
- total: $.length,
6720
- onChange: _,
6724
+ total: E.length,
6725
+ onChange: R,
6721
6726
  pageSizeOptions: h,
6722
6727
  showSizeChanger: f,
6723
6728
  showQuickJumper: s,
@@ -6887,32 +6892,32 @@ const Vc = ({
6887
6892
  var C, N;
6888
6893
  const { storeBaseKey: p, arrayIndex: h } = y(() => {
6889
6894
  if (!n) return { storeBaseKey: void 0, arrayIndex: null };
6890
- const A = n.split(".")[0], { baseName: S, index: $ } = pe(A);
6891
- let E = $;
6892
- if (E === null && m !== void 0 && m !== null) {
6893
- const _ = Number(m);
6894
- E = Number.isFinite(_) ? _ : null;
6895
+ const A = n.split(".")[0], { baseName: S, index: E } = ve(A);
6896
+ let _ = E;
6897
+ if (_ === null && m !== void 0 && m !== null) {
6898
+ const R = Number(m);
6899
+ _ = Number.isFinite(R) ? R : null;
6895
6900
  }
6896
6901
  return {
6897
6902
  storeBaseKey: et(i, S),
6898
- arrayIndex: E
6903
+ arrayIndex: _
6899
6904
  };
6900
6905
  }, [n, i, m]), f = O((A) => {
6901
6906
  if (!p) return null;
6902
6907
  const S = A.dataSets[p];
6903
6908
  if (h !== null) {
6904
- const $ = S == null ? void 0 : S.value;
6905
- return Array.isArray($) ? $[h] ?? null : null;
6909
+ const E = S == null ? void 0 : S.value;
6910
+ return Array.isArray(E) ? E[h] ?? null : null;
6906
6911
  }
6907
6912
  return S ?? null;
6908
6913
  }), s = y(() => {
6909
6914
  if (!n || !f) return { componentName: "", props: {} };
6910
- const S = n.split(".")[1], $ = S ? f[S] || {} : f;
6911
- if (typeof $ == "object" && $ !== null) {
6912
- const { componentName: E, props: _, ...R } = $;
6915
+ const S = n.split(".")[1], E = S ? f[S] || {} : f;
6916
+ if (typeof E == "object" && E !== null) {
6917
+ const { componentName: _, props: R, ...j } = E;
6913
6918
  return {
6914
- componentName: E || "",
6915
- props: _ || R || {}
6919
+ componentName: _ || "",
6920
+ props: R || j || {}
6916
6921
  };
6917
6922
  }
6918
6923
  return { componentName: "", props: {} };
@@ -6969,7 +6974,7 @@ const Vc = ({
6969
6974
  );
6970
6975
  const x = u ? w(u) : null;
6971
6976
  return x ? /* @__PURE__ */ b(Gr, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(zr, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...o }, children: v && h !== null ? /* @__PURE__ */ b(
6972
- ce.Provider,
6977
+ re.Provider,
6973
6978
  {
6974
6979
  value: { dataSet: v, index: h, sessionId: i },
6975
6980
  children: /* @__PURE__ */ b(x, { ...k })
@@ -7102,30 +7107,30 @@ function Ft(e, t) {
7102
7107
  animate: N,
7103
7108
  scale: A,
7104
7109
  interaction: S,
7105
- annotations: $,
7106
- axis: E,
7107
- scrollbar: _,
7108
- slider: R,
7110
+ annotations: E,
7111
+ axis: _,
7112
+ scrollbar: R,
7113
+ slider: j,
7109
7114
  theme: q,
7110
- state: U,
7115
+ state: H,
7111
7116
  // 事件配置
7112
- events: K,
7117
+ events: M,
7113
7118
  // 其余配置直接透传
7114
- ...V
7115
- } = o, z = qt(null), Y = O((P) => P.getDataSet), M = O((P) => P.addCommand), j = y(() => {
7119
+ ...L
7120
+ } = o, z = qt(null), Y = O((P) => P.getDataSet), $ = O((P) => P.addCommand), B = y(() => {
7116
7121
  if (p && h) {
7117
- const L = Y(p, h);
7118
- if (L !== void 0) return L;
7122
+ const V = Y(p, h);
7123
+ if (V !== void 0) return V;
7119
7124
  }
7120
7125
  const P = wt(f);
7121
7126
  return P !== void 0 ? P : d ? r : [];
7122
7127
  }, [f, p, h, Y, d]), G = (P) => {
7123
- var L;
7128
+ var V;
7124
7129
  if (z.current = P, !d && l) {
7125
- const tt = wt(K);
7130
+ const tt = wt(M);
7126
7131
  tt && typeof tt == "object" && Object.entries(tt).forEach(([Q, lt]) => {
7127
7132
  typeof lt == "string" && P.on(Q, (ft) => {
7128
- M(l, {
7133
+ $(l, {
7129
7134
  actionName: lt,
7130
7135
  arg: ft,
7131
7136
  timestamp: Date.now()
@@ -7133,9 +7138,9 @@ function Ft(e, t) {
7133
7138
  });
7134
7139
  });
7135
7140
  }
7136
- (L = V.onReady) == null || L.call(V, P);
7137
- }, W = wt(s) || {}, H = {
7138
- data: j,
7141
+ (V = L.onReady) == null || V.call(L, P);
7142
+ }, W = wt(s) || {}, U = {
7143
+ data: B,
7139
7144
  // 优先使用 common 中的配置,没配置则使用默认值
7140
7145
  height: W.height ?? i,
7141
7146
  autoFit: go(W.autoFit, !0),
@@ -7144,31 +7149,31 @@ function Ft(e, t) {
7144
7149
  // 设计器模式禁用动画
7145
7150
  animate: d ? !1 : wt(N),
7146
7151
  onReady: G,
7147
- ...V
7152
+ ...L
7148
7153
  }, rt = wt(T);
7149
- rt !== void 0 && (H.title = rt);
7154
+ rt !== void 0 && (U.title = rt);
7150
7155
  const it = wt(w);
7151
- it !== void 0 && (H.legend = it);
7156
+ it !== void 0 && (U.legend = it);
7152
7157
  const nt = wt(x);
7153
- nt !== void 0 && (H.label = nt);
7158
+ nt !== void 0 && (U.label = nt);
7154
7159
  const ht = wt(C);
7155
- ht !== void 0 && (H.tooltip = ht);
7160
+ ht !== void 0 && (U.tooltip = ht);
7156
7161
  const At = wt(A);
7157
- At !== void 0 && (H.scale = At);
7162
+ At !== void 0 && (U.scale = At);
7158
7163
  const dt = wt(S);
7159
- dt !== void 0 && (H.interaction = dt);
7160
- const I = wt($);
7161
- I !== void 0 && (H.annotations = I);
7162
- const st = wt(E);
7163
- st !== void 0 && (H.axis = st);
7164
- const at = wt(_);
7165
- at !== void 0 && (H.scrollbar = at);
7166
- const Ot = wt(R);
7167
- Ot !== void 0 && (H.slider = Ot);
7164
+ dt !== void 0 && (U.interaction = dt);
7165
+ const I = wt(E);
7166
+ I !== void 0 && (U.annotations = I);
7167
+ const st = wt(_);
7168
+ st !== void 0 && (U.axis = st);
7169
+ const at = wt(R);
7170
+ at !== void 0 && (U.scrollbar = at);
7171
+ const Ot = wt(j);
7172
+ Ot !== void 0 && (U.slider = Ot);
7168
7173
  const kt = wt(q);
7169
- kt !== void 0 && (H.theme = kt);
7170
- const jt = wt(U);
7171
- return jt !== void 0 && (H.state = jt), /* @__PURE__ */ b(e, { ...H });
7174
+ kt !== void 0 && (U.theme = kt);
7175
+ const jt = wt(H);
7176
+ return jt !== void 0 && (U.state = jt), /* @__PURE__ */ b(e, { ...U });
7172
7177
  };
7173
7178
  return a.displayName = `withBaseChart(${n})`, a;
7174
7179
  }
@@ -7423,7 +7428,7 @@ export {
7423
7428
  Yc as AndMenu,
7424
7429
  Zc as AndModal,
7425
7430
  Hc as AndPagination,
7426
- _c as AndParagraph,
7431
+ Ec as AndParagraph,
7427
7432
  fs as AndProductCategory,
7428
7433
  os as AndQRCode,
7429
7434
  gc as AndRadio,
@@ -7447,7 +7452,7 @@ export {
7447
7452
  Oc as AndText,
7448
7453
  hc as AndTimePicker,
7449
7454
  Rc as AndTimeline,
7450
- Ec as AndTitle,
7455
+ _c as AndTitle,
7451
7456
  Tc as AndTransfer,
7452
7457
  Mc as AndTree,
7453
7458
  wc as AndTreeSelect,
@@ -7462,13 +7467,13 @@ export {
7462
7467
  gs as AndVPie,
7463
7468
  ms as AndWatermark,
7464
7469
  rc as COMMON_TOKENS,
7465
- ce as DataSetInheritContext,
7470
+ re as DataSetInheritContext,
7466
7471
  Yo as cleanupAllMounts,
7467
7472
  Ho as clearCssCache,
7468
7473
  Z as createCommand,
7469
7474
  Fo as createWatchCommands,
7470
7475
  Xi as dictValueEquals,
7471
- re as findDictOptionByValue,
7476
+ ie as findDictOptionByValue,
7472
7477
  Sa as formatByType,
7473
7478
  nn as getAccessToken,
7474
7479
  Pt as getCoreConfig,
@@ -7481,10 +7486,10 @@ export {
7481
7486
  Gt as mergeStoreProps,
7482
7487
  Uo as mountReactComponent,
7483
7488
  te as parseAction,
7484
- pe as parseArrayNotation,
7489
+ ve as parseArrayNotation,
7485
7490
  gt as parseChangeAction,
7486
7491
  gi as parseClickAction,
7487
- Ce as parseNestedPath,
7492
+ Te as parseNestedPath,
7488
7493
  Io as parseQueryAction,
7489
7494
  Yn as processValidationRules,
7490
7495
  ec as req,
@@ -7497,7 +7502,7 @@ export {
7497
7502
  O as useAndStore,
7498
7503
  Zi as useApiService,
7499
7504
  Zo as useCommandsStore,
7500
- be as useDictOptions,
7505
+ Se as useDictOptions,
7501
7506
  Rt as useFieldValidation,
7502
7507
  Xo as useItemStore,
7503
7508
  Qo as usePopCommand,