@nuwatop/code-canvas-core 0.5.38 → 0.5.39

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,17 +1,17 @@
1
1
  import { jsx as b, jsxs as ue, Fragment as yt } from "react/jsx-runtime";
2
- import { createRoot as Dr } from "react-dom/client";
3
- import { theme as Ie, ConfigProvider as Ke, Button as et, Input as Lt, InputNumber as Ln, Space as Qe, Select as Vn, Switch as Ar, DatePicker as qn, TimePicker as xr, Radio as Ut, Checkbox as ht, Rate as Cr, Slider as kr, Cascader as Tr, TreeSelect as Nr, message as Mt, Upload as _r, Image as Xe, AutoComplete as Er, Form as Bt, Transfer as Or, Segmented as Mr, Modal as Wn, Tooltip as $r, Table as Rr, Flex as Hn, Typography as un, Tabs as jr, Tree as Kr, Timeline as Br, Steps as zr, Statistic as Zt, Carousel as Lr, Avatar as Vr, Tag as Un, Pagination as Pn, Breadcrumb as qr, Menu as Wr, Calendar as Hr, Badge as Yn, Masonry as Ur, Alert as Fn, Drawer as Pr, Result as Yr, Card as Xt, Divider as vn, Dropdown as Fr, Row as Jr, Col as Gr, QRCode as Qr, Splitter as Pt, Spin as Jn, Watermark as Zr, Empty as Xr } from "antd";
2
+ import { createRoot as Ar } from "react-dom/client";
3
+ import { theme as Ie, ConfigProvider as Ke, Button as et, Tooltip as Ln, Input as Lt, InputNumber as Vn, Space as Qe, Select as qn, Switch as xr, DatePicker as Wn, TimePicker as Cr, Radio as Ut, Checkbox as ht, Rate as kr, Slider as Tr, Cascader as Nr, TreeSelect as _r, message as Mt, Upload as Er, Image as Xe, AutoComplete as Or, Form as Bt, Transfer as Mr, Segmented as $r, Modal as Hn, Table as Rr, Flex as Un, Typography as un, Tabs as jr, Tree as Kr, Timeline as Br, Steps as zr, Statistic as Zt, Carousel as Lr, Avatar as Vr, Tag as Pn, Pagination as Yn, Breadcrumb as qr, Menu as Wr, Calendar as Hr, Badge as Fn, Masonry as Ur, Alert as Jn, Drawer as Pr, Result as Yr, Card as Xt, Divider as vn, Dropdown as Fr, Row as Jr, Col as Gr, QRCode as Qr, Splitter as Pt, Spin as Gn, Watermark as Zr, Empty as Xr } from "antd";
4
4
  import { StyleProvider as Ir, createCache as ei } from "@ant-design/cssinjs";
5
5
  import ti from "antd/locale/zh_CN";
6
6
  import { create as ni } from "zustand";
7
7
  import { subscribeWithSelector as ri } from "zustand/middleware";
8
8
  import { immer as ii } from "zustand/middleware/immer";
9
- import Ve, { useMemo as h, useCallback as j, useEffect as xe, createContext as oi, useContext as Ct, useState as ve, useRef as Me, useLayoutEffect as Gn, useId as ai, Suspense as ci } from "react";
9
+ import Ve, { useMemo as h, useCallback as K, useEffect as xe, createContext as oi, useContext as Ct, useState as ve, useRef as Me, useLayoutEffect as Qn, useId as ai, Suspense as ci } from "react";
10
10
  import * as Je from "@ant-design/icons";
11
- import { CloseCircleOutlined as si, PlusOutlined as Qn, UploadOutlined as li, MenuOutlined as ui, MinusOutlined as fi, LeftOutlined as Zn, RightOutlined as Xn, UpOutlined as di, DownOutlined as In, ApiOutlined as mi, InboxOutlined as hi, FilePdfOutlined as yi } from "@ant-design/icons";
11
+ import { CloseCircleOutlined as si, PlusOutlined as Zn, UploadOutlined as li, MenuOutlined as ui, MinusOutlined as fi, LeftOutlined as Xn, RightOutlined as In, UpOutlined as di, DownOutlined as er, ApiOutlined as mi, InboxOutlined as hi, FilePdfOutlined as yi } from "@ant-design/icons";
12
12
  import gi from "clsx";
13
13
  import Fe from "dayjs";
14
- import { pdfjs as er, Document as pi, Page as vi } from "react-pdf";
14
+ import { pdfjs as tr, Document as pi, Page as vi } from "react-pdf";
15
15
  import "react-pdf/dist/Page/TextLayer.css";
16
16
  import "react-pdf/dist/Page/AnnotationLayer.css";
17
17
  import { Line as bi, Column as Si, Pie as wi, Area as Di, DualAxes as Ai, Gauge as xi, Liquid as Ci, Bar as ki } from "@ant-design/plots";
@@ -52,7 +52,7 @@ const Ti = () => {
52
52
  }
53
53
  $t.delete(t);
54
54
  }
55
- const c = Dr(t);
55
+ const c = Ar(t);
56
56
  $t.set(t, c);
57
57
  const u = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && u && d && d.defaultView !== null, m = v ? u : window.document.head, g = v ? d : window.document, p = Ni(g), y = (((T = window.__GLS_COMPS__) == null ? void 0 : T.theme) || i) === "dark" ? Ie.darkAlgorithm : Ie.defaultAlgorithm, s = (w) => /* @__PURE__ */ b(Ir, { cache: p, container: m, hashPriority: "high", children: /* @__PURE__ */ b(
58
58
  Ke,
@@ -473,9 +473,9 @@ function nn(t) {
473
473
  }), xt(r, i);
474
474
  }, nn(t);
475
475
  }
476
- var Ki = /%[sdj%]/g, tr = function() {
476
+ var Ki = /%[sdj%]/g, nr = function() {
477
477
  };
478
- typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (tr = function(e, n) {
478
+ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (nr = function(e, n) {
479
479
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(i) {
480
480
  return typeof i == "string";
481
481
  }) && console.warn(e, n);
@@ -618,7 +618,7 @@ function xn(t, e) {
618
618
  }
619
619
  return t;
620
620
  }
621
- var nr = function(e, n, i, r, o, a) {
621
+ var rr = function(e, n, i, r, o, a) {
622
622
  e.required && (!i.hasOwnProperty(e.field) || Re(n, a || e.type)) && r.push(Le(o.messages.required, e.fullField));
623
623
  }, Hi = function(e, n, i, r, o) {
624
624
  (/^\s+$/.test(n) || n === "") && r.push(Le(o.messages.whitespace, e.fullField));
@@ -698,7 +698,7 @@ var nr = function(e, n, i, r, o, a) {
698
698
  }
699
699
  }, Pi = function(e, n, i, r, o) {
700
700
  if (e.required && n === void 0) {
701
- nr(e, n, i, r, o);
701
+ rr(e, n, i, r, o);
702
702
  return;
703
703
  }
704
704
  var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = e.type;
@@ -720,7 +720,7 @@ var nr = function(e, n, i, r, o, a) {
720
720
  }
721
721
  }
722
722
  }, be = {
723
- required: nr,
723
+ required: rr,
724
724
  whitespace: Hi,
725
725
  type: Pi,
726
726
  range: Yi,
@@ -1001,13 +1001,13 @@ var an = on(), kt = /* @__PURE__ */ function() {
1001
1001
  }), k = ot({}, k, l.rule.fields);
1002
1002
  var S = {};
1003
1003
  Object.keys(k).forEach(function(_) {
1004
- var $ = k[_], L = Array.isArray($) ? $ : [$];
1004
+ var M = k[_], L = Array.isArray(M) ? M : [M];
1005
1005
  S[_] = L.map(C.bind(null, _));
1006
1006
  });
1007
- var M = new t(S);
1008
- M.messages(u.messages), l.rule.options && (l.rule.options.messages = u.messages, l.rule.options.error = u.error), M.validate(l.value, l.rule.options || u, function(_) {
1009
- var $ = [];
1010
- E && E.length && $.push.apply($, E), _ && _.length && $.push.apply($, _), y($.length ? $ : null);
1007
+ var O = new t(S);
1008
+ O.messages(u.messages), l.rule.options && (l.rule.options.messages = u.messages, l.rule.options.error = u.error), O.validate(l.value, l.rule.options || u, function(_) {
1009
+ var M = [];
1010
+ E && E.length && M.push.apply(M, E), _ && _.length && M.push.apply(M, _), y(M.length ? M : null);
1011
1011
  });
1012
1012
  }
1013
1013
  }
@@ -1048,7 +1048,7 @@ kt.register = function(e, n) {
1048
1048
  throw new Error("Cannot register a validator by type, validator is not a function");
1049
1049
  Dt[e] = n;
1050
1050
  };
1051
- kt.warning = tr;
1051
+ kt.warning = nr;
1052
1052
  kt.messages = an;
1053
1053
  kt.validators = Dt;
1054
1054
  function uo(t) {
@@ -1060,7 +1060,7 @@ function uo(t) {
1060
1060
  return null;
1061
1061
  }
1062
1062
  }
1063
- function rr(t) {
1063
+ function ir(t) {
1064
1064
  return !t || !Array.isArray(t) ? [] : t.map((e) => {
1065
1065
  const n = { ...e };
1066
1066
  if (n.pattern && typeof n.pattern == "string" && n.pattern.trim()) {
@@ -1071,7 +1071,7 @@ function rr(t) {
1071
1071
  });
1072
1072
  }
1073
1073
  const kn = "_v";
1074
- function ir(t, e, n, i) {
1074
+ function or(t, e, n, i) {
1075
1075
  if (!(t != null && t.length)) {
1076
1076
  n();
1077
1077
  return;
@@ -1108,7 +1108,7 @@ function Be(t) {
1108
1108
  var D;
1109
1109
  return l ? (D = w.dataSets[l]) == null ? void 0 : D.validate : void 0;
1110
1110
  }
1111
- ), s = j(
1111
+ ), s = K(
1112
1112
  (w) => {
1113
1113
  const D = w ?? "";
1114
1114
  if (r && n && i && c(r, n, i, D), r && o) {
@@ -1117,10 +1117,10 @@ function Be(t) {
1117
1117
  }
1118
1118
  },
1119
1119
  [r, n, i, o, c, u, d]
1120
- ), A = j(
1120
+ ), A = K(
1121
1121
  (w) => {
1122
- const D = rr(e || []);
1123
- ir(
1122
+ const D = ir(e || []);
1123
+ or(
1124
1124
  D,
1125
1125
  w,
1126
1126
  () => s(""),
@@ -1226,7 +1226,7 @@ async function at(t) {
1226
1226
  "Request handler not configured. Please call setCoreConfig() first."
1227
1227
  );
1228
1228
  }
1229
- async function or(t, e) {
1229
+ async function ar(t, e) {
1230
1230
  if (qe.upload)
1231
1231
  return qe.upload(t, e);
1232
1232
  throw new Error(
@@ -1246,25 +1246,25 @@ const Ec = {
1246
1246
  get: (t, e, n) => at({ url: t, params: e, method: "GET", ...n })
1247
1247
  };
1248
1248
  function ho() {
1249
- const t = He(), e = j(
1249
+ const t = He(), e = K(
1250
1250
  async (u, d) => {
1251
1251
  const v = typeof u == "string" ? { url: u, ...d } : u;
1252
1252
  return at(v);
1253
1253
  },
1254
1254
  []
1255
- ), n = j(
1255
+ ), n = K(
1256
1256
  async (u, d, v) => at({ url: u, params: d, method: "GET", ...v }),
1257
1257
  []
1258
- ), i = j(
1258
+ ), i = K(
1259
1259
  async (u, d, v) => at({ url: u, data: d, method: "POST", ...v }),
1260
1260
  []
1261
- ), r = j(
1261
+ ), r = K(
1262
1262
  async (u) => fn(u),
1263
1263
  []
1264
- ), o = j(
1265
- async (u, d) => or(u, d),
1264
+ ), o = K(
1265
+ async (u, d) => ar(u, d),
1266
1266
  []
1267
- ), a = j(() => cn(), []), c = j(() => !!t.request, [t.request]);
1267
+ ), a = K(() => cn(), []), c = K(() => !!t.request, [t.request]);
1268
1268
  return {
1269
1269
  request: e,
1270
1270
  get: n,
@@ -1305,13 +1305,13 @@ function dn(t, e) {
1305
1305
  () => (e == null ? void 0 : e.params) != null ? JSON.parse(g) : void 0,
1306
1306
  // eslint-disable-next-line react-hooks/exhaustive-deps
1307
1307
  [g]
1308
- ), f = j(
1308
+ ), f = K(
1309
1309
  (y) => Array.isArray(y) ? y.map((s) => ({
1310
1310
  label: s[u],
1311
1311
  value: s[d]
1312
1312
  })) : [],
1313
1313
  [u, d]
1314
- ), l = j(async () => {
1314
+ ), l = K(async () => {
1315
1315
  if (t) {
1316
1316
  o(!0), c(null);
1317
1317
  try {
@@ -1404,7 +1404,7 @@ const pt = (t) => {
1404
1404
  } catch {
1405
1405
  return "";
1406
1406
  }
1407
- }, ar = (t, e = "YYYY-MM-DD") => {
1407
+ }, cr = (t, e = "YYYY-MM-DD") => {
1408
1408
  try {
1409
1409
  const n = Vt(t);
1410
1410
  if (!n) return "";
@@ -1413,7 +1413,7 @@ const pt = (t) => {
1413
1413
  } catch {
1414
1414
  return "";
1415
1415
  }
1416
- }, So = (t, e = "YYYY-MM-DD HH:mm:ss") => ar(t, e), wo = (t) => {
1416
+ }, So = (t, e = "YYYY-MM-DD HH:mm:ss") => cr(t, e), wo = (t) => {
1417
1417
  try {
1418
1418
  const e = Vt(t);
1419
1419
  if (!e) return "";
@@ -1564,7 +1564,7 @@ function Bo(t, e, n = {}) {
1564
1564
  case "date":
1565
1565
  return bo(t, n);
1566
1566
  case "dateCustom":
1567
- return ar(t, n.pattern);
1567
+ return cr(t, n.pattern);
1568
1568
  case "relativeTime":
1569
1569
  return wo(t);
1570
1570
  case "duration":
@@ -1642,13 +1642,13 @@ const qt = {
1642
1642
  { label: "次级文本", value: "colorTextSecondary" },
1643
1643
  { label: "链接", value: "colorLink" }
1644
1644
  ];
1645
- function cr(t) {
1645
+ function sr(t) {
1646
1646
  return qt.hasOwnProperty(t);
1647
1647
  }
1648
1648
  function Wt(t) {
1649
1649
  const { token: e } = Ie.useToken();
1650
1650
  if (t) {
1651
- if (cr(t)) {
1651
+ if (sr(t)) {
1652
1652
  const n = qt[t];
1653
1653
  return e[n] || t;
1654
1654
  }
@@ -1657,7 +1657,7 @@ function Wt(t) {
1657
1657
  }
1658
1658
  function $c(t, e) {
1659
1659
  if (t) {
1660
- if (cr(t)) {
1660
+ if (sr(t)) {
1661
1661
  const n = qt[t];
1662
1662
  return e[n] || t;
1663
1663
  }
@@ -1680,34 +1680,34 @@ const Rc = ({
1680
1680
  token: g,
1681
1681
  ...p
1682
1682
  }) => {
1683
- const f = N((O) => O.addCommand), l = Ct(ct), y = d ?? (l == null ? void 0 : l.index), s = N(
1684
- (O) => {
1685
- var z;
1686
- return o && t ? (z = O.propsStore[`${o}_props`]) == null ? void 0 : z[t] : null;
1683
+ const f = N((z) => z.addCommand), l = Ct(ct), y = d ?? (l == null ? void 0 : l.index), s = N(
1684
+ (z) => {
1685
+ var j;
1686
+ return o && t ? (j = z.propsStore[`${o}_props`]) == null ? void 0 : j[t] : null;
1687
1687
  }
1688
1688
  ), A = h(() => {
1689
- const O = { ...p };
1690
- return s && typeof s == "object" && Object.keys(s).forEach((z) => {
1691
- s[z] !== void 0 && s[z] !== null && (O[z] = s[z]);
1692
- }), a && (O.disabled = !1), O;
1689
+ const z = { ...p };
1690
+ return s && typeof s == "object" && Object.keys(s).forEach((j) => {
1691
+ s[j] !== void 0 && s[j] !== null && (z[j] = s[j]);
1692
+ }), a && (z.disabled = !1), z;
1693
1693
  }, [p, s, a]), C = h(() => {
1694
- const O = (s == null ? void 0 : s.iconName) || i;
1695
- return O && Je[O] ? Je[O] : null;
1696
- }, [i, s == null ? void 0 : s.iconName]), T = j(
1697
- (O) => {
1694
+ const z = (s == null ? void 0 : s.iconName) || i;
1695
+ return z && Je[z] ? Je[z] : null;
1696
+ }, [i, s == null ? void 0 : s.iconName]), T = K(
1697
+ (z) => {
1698
1698
  if (c) {
1699
- c(O);
1699
+ c(z);
1700
1700
  return;
1701
1701
  }
1702
1702
  if (r && o) {
1703
- const { actionName: z, arg: q } = Mi(r, {
1703
+ const { actionName: j, arg: R } = Mi(r, {
1704
1704
  id: t,
1705
1705
  index: y,
1706
1706
  dataSet: v,
1707
1707
  dataSetField: m,
1708
1708
  ...A
1709
- }), K = X(z, q);
1710
- f(o, K);
1709
+ }), P = X(j, R);
1710
+ f(o, P);
1711
1711
  }
1712
1712
  },
1713
1713
  [
@@ -1722,34 +1722,33 @@ const Rc = ({
1722
1722
  c
1723
1723
  ]
1724
1724
  ), w = (s == null ? void 0 : s.text) || e, D = (s == null ? void 0 : s.tooltip) ?? n, x = h(() => {
1725
- const O = s == null ? void 0 : s.token, z = { ...g, ...O };
1726
- if (!z || Object.keys(z).length === 0) return;
1727
- const q = {};
1728
- return Object.entries(z).forEach(([K, R]) => {
1729
- R !== "" && R !== void 0 && R !== null && (q[K] = R);
1730
- }), Object.keys(q).length > 0 ? q : void 0;
1725
+ const z = s == null ? void 0 : s.token, j = { ...g, ...z };
1726
+ if (!j || Object.keys(j).length === 0) return;
1727
+ const R = {};
1728
+ return Object.entries(j).forEach(([P, Q]) => {
1729
+ Q !== "" && Q !== void 0 && Q !== null && (R[P] = Q);
1730
+ }), Object.keys(R).length > 0 ? R : void 0;
1731
1731
  }, [g, s == null ? void 0 : s.token]), E = h(
1732
1732
  () => x ? { components: { Button: x } } : void 0,
1733
1733
  [x]
1734
1734
  ), {
1735
1735
  iconPosition: k,
1736
1736
  iconPlacement: S,
1737
- clickAction: M,
1737
+ clickAction: O,
1738
1738
  tooltip: _,
1739
- token: $,
1739
+ token: M,
1740
1740
  ...L
1741
- } = A, B = /* @__PURE__ */ b(
1741
+ } = A, q = S || k, B = !!(L != null && L.block), $ = /* @__PURE__ */ b(
1742
1742
  et,
1743
1743
  {
1744
1744
  ...L,
1745
- title: D || void 0,
1746
- iconPlacement: S || k,
1745
+ iconPlacement: q,
1747
1746
  icon: C ? /* @__PURE__ */ b(C, {}) : void 0,
1748
1747
  onClick: T,
1749
1748
  children: w || u
1750
1749
  }
1751
- );
1752
- return E ? /* @__PURE__ */ b(Ke, { theme: E, children: B }) : B;
1750
+ ), W = D ? /* @__PURE__ */ b(Ln, { title: D, children: /* @__PURE__ */ b("span", { style: { display: B ? "block" : "inline-block", width: B ? "100%" : void 0 }, children: $ }) }) : $;
1751
+ return E ? /* @__PURE__ */ b(Ke, { theme: E, children: W }) : W;
1753
1752
  }, zo = ["value", "validateStatus", "help"], Lo = 200;
1754
1753
  function Vo(t) {
1755
1754
  if (!t) return;
@@ -1768,7 +1767,7 @@ function qo(t, e, n) {
1768
1767
  }
1769
1768
  return i;
1770
1769
  }
1771
- const sr = (t) => {
1770
+ const lr = (t) => {
1772
1771
  const {
1773
1772
  id: e,
1774
1773
  sessionId: n,
@@ -1792,10 +1791,10 @@ const sr = (t) => {
1792
1791
  addonAfter: T,
1793
1792
  addonBefore: w,
1794
1793
  ...D
1795
- } = t, x = Tt(r, o, n), E = x.dataSet, k = x.dataSetField, S = x.sessionId, M = Me(""), _ = Me(null), $ = N((ae) => ae.addCommand), L = N((ae) => ae.getDataSet), W = N((ae) => ae.setDataSet), B = N((ae) => ae.getProps), O = N((ae) => ae.setProps), z = N((ae) => ae.setValidateResult), q = h(
1794
+ } = t, x = Tt(r, o, n), E = x.dataSet, k = x.dataSetField, S = x.sessionId, O = Me(""), _ = Me(null), M = N((ae) => ae.addCommand), L = N((ae) => ae.getDataSet), q = N((ae) => ae.setDataSet), B = N((ae) => ae.getProps), $ = N((ae) => ae.setProps), W = N((ae) => ae.setValidateResult), z = h(
1796
1795
  () => ee(S, E),
1797
1796
  [S, E]
1798
- ), K = N(
1797
+ ), j = N(
1799
1798
  (ae) => {
1800
1799
  var he;
1801
1800
  return S && e ? ((he = ae.propsStore[`${S}_props`]) == null ? void 0 : he[e]) ?? null : null;
@@ -1809,7 +1808,7 @@ const sr = (t) => {
1809
1808
  return R && k ? ((he = ae.validateStore[R]) == null ? void 0 : he[k]) ?? "" : "";
1810
1809
  }
1811
1810
  ), Q = N(
1812
- (ae) => q && k ? ae.getDataSet(q, k) : void 0
1811
+ (ae) => z && k ? ae.getDataSet(z, k) : void 0
1813
1812
  ), Y = h(
1814
1813
  () => E ? ee(S, `${E}_validateAction`) : void 0,
1815
1814
  [S, E]
@@ -1818,20 +1817,20 @@ const sr = (t) => {
1818
1817
  var he;
1819
1818
  return Y ? (he = ae.dataSets[Y]) == null ? void 0 : he.validate : void 0;
1820
1819
  }
1821
- ), I = h(() => Q !== void 0 ? Q : (K == null ? void 0 : K.value) !== void 0 ? K.value : d, [Q, K == null ? void 0 : K.value, d]), ne = h(
1822
- () => qo(D, K ?? null, { develop: i }),
1823
- [D, K, i]
1824
- ), de = j(
1820
+ ), I = h(() => Q !== void 0 ? Q : (j == null ? void 0 : j.value) !== void 0 ? j.value : d, [Q, j == null ? void 0 : j.value, d]), ne = h(
1821
+ () => qo(D, j ?? null, { develop: i }),
1822
+ [D, j, i]
1823
+ ), de = K(
1825
1824
  (ae) => {
1826
1825
  const he = ae ?? "";
1827
- if (S && E && k && z(
1826
+ if (S && E && k && W(
1828
1827
  S,
1829
1828
  E,
1830
1829
  k,
1831
1830
  he
1832
1831
  ), S && e) {
1833
1832
  const fe = B(S, e) || {};
1834
- O(S, e, {
1833
+ $(S, e, {
1835
1834
  ...fe,
1836
1835
  validateStatus: he ? "error" : void 0,
1837
1836
  help: he
@@ -1843,14 +1842,14 @@ const sr = (t) => {
1843
1842
  E,
1844
1843
  k,
1845
1844
  e,
1846
- z,
1845
+ W,
1847
1846
  B,
1848
- O
1847
+ $
1849
1848
  ]
1850
- ), me = j(
1849
+ ), me = K(
1851
1850
  (ae) => {
1852
- const he = rr(g || []);
1853
- ir(
1851
+ const he = ir(g || []);
1852
+ or(
1854
1853
  he,
1855
1854
  ae,
1856
1855
  () => de(""),
@@ -1861,21 +1860,21 @@ const sr = (t) => {
1861
1860
  );
1862
1861
  },
1863
1862
  [g, de]
1864
- ), De = j(
1863
+ ), De = K(
1865
1864
  (ae) => {
1866
1865
  const he = ae.target.value;
1867
- if (M.current = he, u) {
1866
+ if (O.current = he, u) {
1868
1867
  u(he, ae);
1869
1868
  return;
1870
1869
  }
1871
- if (q && k && W(q, k, he), c && S) {
1870
+ if (z && k && q(z, k, he), c && S) {
1872
1871
  const { actionName: fe, arg: G } = Ce(c, he, {
1873
1872
  id: e,
1874
1873
  dataSet: E,
1875
1874
  dataSetField: k,
1876
1875
  ...ne
1877
1876
  });
1878
- $(S, X(fe, G));
1877
+ M(S, X(fe, G));
1879
1878
  }
1880
1879
  p && (_.current && clearTimeout(_.current), _.current = setTimeout(() => {
1881
1880
  _.current = null, me(he);
@@ -1883,30 +1882,30 @@ const sr = (t) => {
1883
1882
  },
1884
1883
  [
1885
1884
  u,
1886
- q,
1885
+ z,
1887
1886
  k,
1888
- W,
1887
+ q,
1889
1888
  c,
1890
1889
  S,
1891
1890
  e,
1892
1891
  E,
1893
1892
  k,
1894
1893
  ne,
1895
- $,
1894
+ M,
1896
1895
  p,
1897
1896
  me
1898
1897
  ]
1899
- ), re = j(() => {
1898
+ ), re = K(() => {
1900
1899
  if (!f) return;
1901
- const ae = q && k ? String(L(q, k) ?? "") : M.current;
1900
+ const ae = z && k ? String(L(z, k) ?? "") : O.current;
1902
1901
  me(ae);
1903
1902
  }, [
1904
1903
  f,
1905
- q,
1904
+ z,
1906
1905
  k,
1907
1906
  L,
1908
1907
  me
1909
- ]), se = j(
1908
+ ]), se = K(
1910
1909
  (ae) => {
1911
1910
  const fe = ne.onPressEnter;
1912
1911
  if (fe) {
@@ -1920,7 +1919,7 @@ const sr = (t) => {
1920
1919
  dataSetField: k,
1921
1920
  ...ne
1922
1921
  });
1923
- $(S, X(G, Z));
1922
+ M(S, X(G, Z));
1924
1923
  }
1925
1924
  },
1926
1925
  [
@@ -1931,9 +1930,9 @@ const sr = (t) => {
1931
1930
  e,
1932
1931
  E,
1933
1932
  k,
1934
- $
1933
+ M
1935
1934
  ]
1936
- ), te = j(() => {
1935
+ ), te = K(() => {
1937
1936
  const he = ne.onClear;
1938
1937
  if (he) {
1939
1938
  he();
@@ -1946,7 +1945,7 @@ const sr = (t) => {
1946
1945
  dataSetField: k,
1947
1946
  ...ne
1948
1947
  });
1949
- $(S, X(fe, G));
1948
+ M(S, X(fe, G));
1950
1949
  }
1951
1950
  }, [
1952
1951
  ne,
@@ -1955,7 +1954,7 @@ const sr = (t) => {
1955
1954
  e,
1956
1955
  E,
1957
1956
  k,
1958
- $
1957
+ M
1959
1958
  ]);
1960
1959
  xe(
1961
1960
  () => () => {
@@ -1963,15 +1962,15 @@ const sr = (t) => {
1963
1962
  },
1964
1963
  []
1965
1964
  ), xe(() => {
1966
- if (U == null || !q || !k)
1965
+ if (U == null || !z || !k)
1967
1966
  return;
1968
- const ae = String(L(q, k) ?? "");
1967
+ const ae = String(L(z, k) ?? "");
1969
1968
  me(ae);
1970
- }, [U, q, k, L, me]);
1969
+ }, [U, z, k, L, me]);
1971
1970
  const ye = h(() => Vo(m), [m]), ie = h(
1972
1971
  () => ye ? { components: { Input: ye } } : void 0,
1973
1972
  [ye]
1974
- ), Ne = i ? void 0 : S && E && k ? P : (K == null ? void 0 : K.help) ?? "", we = /* @__PURE__ */ ue(yt, { children: [
1973
+ ), Ne = i ? void 0 : S && E && k ? P : (j == null ? void 0 : j.help) ?? "", we = /* @__PURE__ */ ue(yt, { children: [
1975
1974
  /* @__PURE__ */ b(
1976
1975
  Lt,
1977
1976
  {
@@ -1989,8 +1988,8 @@ const sr = (t) => {
1989
1988
  ] });
1990
1989
  return ie ? /* @__PURE__ */ b(Ke, { theme: ie, children: we }) : we;
1991
1990
  };
1992
- sr.displayName = "AndInput";
1993
- const jc = Ve.memo(sr), Tn = 200, Kc = ({
1991
+ lr.displayName = "AndInput";
1992
+ const jc = Ve.memo(lr), Tn = 200, Kc = ({
1994
1993
  id: t,
1995
1994
  sessionId: e,
1996
1995
  develop: n,
@@ -2026,12 +2025,12 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2026
2025
  sessionId: e,
2027
2026
  id: t,
2028
2027
  develop: n
2029
- }), k = h(() => D !== void 0 ? D : (w == null ? void 0 : w.value) !== void 0 ? w.value : l, [D, w == null ? void 0 : w.value, l]), S = j(
2028
+ }), k = h(() => D !== void 0 ? D : (w == null ? void 0 : w.value) !== void 0 ? w.value : l, [D, w == null ? void 0 : w.value, l]), S = K(
2030
2029
  (Y, U, I) => {
2031
2030
  Y && e && s(e, X(Y, { type: U, value: I }));
2032
2031
  },
2033
2032
  [e, s]
2034
- ), M = j(
2033
+ ), O = K(
2035
2034
  (Y) => {
2036
2035
  if (p) {
2037
2036
  p(Y);
@@ -2042,9 +2041,9 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2042
2041
  }, Tn)), S(u, "change", Y);
2043
2042
  },
2044
2043
  [p, T, r, A, c, x, u, S]
2045
- ), _ = j(() => {
2044
+ ), _ = K(() => {
2046
2045
  a && x(k);
2047
- }, [a, x, k]), $ = j(
2046
+ }, [a, x, k]), M = K(
2048
2047
  (Y) => {
2049
2048
  if (y.onPressEnter) {
2050
2049
  y.onPressEnter(Y);
@@ -2069,7 +2068,7 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2069
2068
  r,
2070
2069
  s
2071
2070
  ]
2072
- ), L = j(() => {
2071
+ ), L = K(() => {
2073
2072
  if (p) {
2074
2073
  p(null);
2075
2074
  return;
@@ -2099,7 +2098,7 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2099
2098
  i,
2100
2099
  r,
2101
2100
  s
2102
- ]), W = j(
2101
+ ]), q = K(
2103
2102
  (Y, U) => {
2104
2103
  S(g, "step", { value: Y, type: U.type });
2105
2104
  },
@@ -2116,8 +2115,8 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2116
2115
  const B = h(
2117
2116
  () => Ue(y, w ?? void 0),
2118
2117
  [y, w]
2119
- ), { addonBefore: O, addonAfter: z, style: q, suffix: K, ...R } = B, P = h(() => {
2120
- if (!(m && k !== null && k !== void 0)) return K;
2118
+ ), { addonBefore: $, addonAfter: W, style: z, suffix: j, ...R } = B, P = h(() => {
2119
+ if (!(m && k !== null && k !== void 0)) return j;
2121
2120
  const U = /* @__PURE__ */ b(
2122
2121
  "span",
2123
2122
  {
@@ -2131,12 +2130,12 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2131
2130
  children: /* @__PURE__ */ b(si, {})
2132
2131
  }
2133
2132
  );
2134
- return K == null || K === !1 ? U : /* @__PURE__ */ ue(yt, { children: [
2135
- K,
2133
+ return j == null || j === !1 ? U : /* @__PURE__ */ ue(yt, { children: [
2134
+ j,
2136
2135
  U
2137
2136
  ] });
2138
- }, [m, k, K, L]), Q = /* @__PURE__ */ b(
2139
- Ln,
2137
+ }, [m, k, j, L]), Q = /* @__PURE__ */ b(
2138
+ Vn,
2140
2139
  {
2141
2140
  ...R,
2142
2141
  disabled: n ? !1 : R.disabled,
@@ -2145,18 +2144,18 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2145
2144
  "ant-input-number-disabled": n && R.disabled
2146
2145
  }),
2147
2146
  value: k,
2148
- onChange: M,
2147
+ onChange: O,
2149
2148
  onBlur: _,
2150
- onPressEnter: $,
2151
- onStep: W,
2149
+ onPressEnter: M,
2150
+ onStep: q,
2152
2151
  suffix: P,
2153
2152
  status: E ? "error" : void 0,
2154
- style: { width: "100%", ...q }
2153
+ style: { width: "100%", ...z }
2155
2154
  }
2156
2155
  );
2157
2156
  return /* @__PURE__ */ ue("div", { style: { width: "100%" }, children: [
2158
- O || z ? /* @__PURE__ */ ue(Qe.Compact, { style: { width: "100%" }, children: [
2159
- O && /* @__PURE__ */ b(
2157
+ $ || W ? /* @__PURE__ */ ue(Qe.Compact, { style: { width: "100%" }, children: [
2158
+ $ && /* @__PURE__ */ b(
2160
2159
  "div",
2161
2160
  {
2162
2161
  style: {
@@ -2170,11 +2169,11 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2170
2169
  color: "rgba(0, 0, 0, 0.88)",
2171
2170
  fontSize: 14
2172
2171
  },
2173
- children: O
2172
+ children: $
2174
2173
  }
2175
2174
  ),
2176
2175
  Q,
2177
- z && /* @__PURE__ */ b(
2176
+ W && /* @__PURE__ */ b(
2178
2177
  "div",
2179
2178
  {
2180
2179
  style: {
@@ -2188,7 +2187,7 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2188
2187
  color: "rgba(0, 0, 0, 0.88)",
2189
2188
  fontSize: 14
2190
2189
  },
2191
- children: z
2190
+ children: W
2192
2191
  }
2193
2192
  )
2194
2193
  ] }) : Q,
@@ -2216,8 +2215,8 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2216
2215
  [A, y]
2217
2216
  ), x = N(
2218
2217
  (B) => {
2219
- var O;
2220
- return A && t ? ((O = B.propsStore[`${A}_props`]) == null ? void 0 : O[t]) ?? null : null;
2218
+ var $;
2219
+ return A && t ? (($ = B.propsStore[`${A}_props`]) == null ? void 0 : $[t]) ?? null : null;
2221
2220
  }
2222
2221
  ), E = N(
2223
2222
  (B) => D && s ? B.getDataSet(D, s) : void 0
@@ -2228,23 +2227,23 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2228
2227
  sessionId: A,
2229
2228
  id: t,
2230
2229
  develop: n
2231
- }), M = h(() => E !== void 0 ? E : (x == null ? void 0 : x.value) !== void 0 ? x.value : g ?? p, [E, x == null ? void 0 : x.value, g, p]), _ = j(
2230
+ }), O = h(() => E !== void 0 ? E : (x == null ? void 0 : x.value) !== void 0 ? x.value : g ?? p, [E, x == null ? void 0 : x.value, g, p]), _ = K(
2232
2231
  (B) => {
2233
- const O = B.target.value;
2232
+ const $ = B.target.value;
2234
2233
  if (m) {
2235
- m(O, B);
2234
+ m($, B);
2236
2235
  return;
2237
2236
  }
2238
- if (D && s && T(D, s, O), u && A) {
2239
- const { actionName: z, arg: q } = Ce(u, O, {
2237
+ if (D && s && T(D, s, $), u && A) {
2238
+ const { actionName: W, arg: z } = Ce(u, $, {
2240
2239
  id: t,
2241
2240
  dataSet: y,
2242
2241
  dataSetField: s
2243
2242
  });
2244
- C(A, X(z, q));
2243
+ C(A, X(W, z));
2245
2244
  }
2246
2245
  c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
2247
- w.current = null, k(O);
2246
+ w.current = null, k($);
2248
2247
  }, Ho));
2249
2248
  },
2250
2249
  [
@@ -2259,45 +2258,45 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2259
2258
  c,
2260
2259
  k
2261
2260
  ]
2262
- ), $ = j(() => {
2263
- a && k(M);
2264
- }, [a, k, M]), L = j(
2261
+ ), M = K(() => {
2262
+ a && k(O);
2263
+ }, [a, k, O]), L = K(
2265
2264
  (B) => {
2266
2265
  if (f.onPressEnter) {
2267
2266
  f.onPressEnter(B);
2268
2267
  return;
2269
2268
  }
2270
2269
  if (d && A && !B.shiftKey) {
2271
- const { actionName: O, arg: z } = Ce(d, M, {
2270
+ const { actionName: $, arg: W } = Ce(d, O, {
2272
2271
  id: t,
2273
2272
  dataSet: y,
2274
2273
  dataSetField: s
2275
2274
  });
2276
- C(A, X(O, z));
2275
+ C(A, X($, W));
2277
2276
  }
2278
2277
  },
2279
2278
  [
2280
2279
  f.onPressEnter,
2281
2280
  d,
2282
2281
  A,
2283
- M,
2282
+ O,
2284
2283
  t,
2285
2284
  y,
2286
2285
  s,
2287
2286
  C
2288
2287
  ]
2289
- ), W = j(() => {
2288
+ ), q = K(() => {
2290
2289
  if (f.onClear) {
2291
2290
  f.onClear();
2292
2291
  return;
2293
2292
  }
2294
2293
  if (v && A) {
2295
- const { actionName: B, arg: O } = Ce(v, "", {
2294
+ const { actionName: B, arg: $ } = Ce(v, "", {
2296
2295
  id: t,
2297
2296
  dataSet: y,
2298
2297
  dataSetField: s
2299
2298
  });
2300
- C(A, X(B, O));
2299
+ C(A, X(B, $));
2301
2300
  }
2302
2301
  }, [
2303
2302
  f.onClear,
@@ -2319,11 +2318,11 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2319
2318
  {
2320
2319
  ...f,
2321
2320
  disabled: n ? !1 : f.disabled,
2322
- value: M,
2321
+ value: O,
2323
2322
  onChange: _,
2324
- onBlur: $,
2323
+ onBlur: M,
2325
2324
  onPressEnter: L,
2326
- onClear: W,
2325
+ onClear: q,
2327
2326
  status: S ? "error" : void 0
2328
2327
  }
2329
2328
  ),
@@ -2351,8 +2350,8 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2351
2350
  [e, i]
2352
2351
  ), C = N(
2353
2352
  (_) => {
2354
- var $;
2355
- return e && t ? (($ = _.propsStore[`${e}_props`]) == null ? void 0 : $[t]) ?? null : null;
2353
+ var M;
2354
+ return e && t ? ((M = _.propsStore[`${e}_props`]) == null ? void 0 : M[t]) ?? null : null;
2356
2355
  }
2357
2356
  ), T = N(
2358
2357
  (_) => A && r ? _.getDataSet(A, r) : void 0
@@ -2363,23 +2362,23 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2363
2362
  sessionId: e,
2364
2363
  id: t,
2365
2364
  develop: n
2366
- }), x = h(() => T !== void 0 ? T : (C == null ? void 0 : C.value) !== void 0 ? C.value : g ?? p, [T, C == null ? void 0 : C.value, g, p]), E = j(
2365
+ }), x = h(() => T !== void 0 ? T : (C == null ? void 0 : C.value) !== void 0 ? C.value : g ?? p, [T, C == null ? void 0 : C.value, g, p]), E = K(
2367
2366
  (_) => {
2368
- const $ = _.target.value;
2367
+ const M = _.target.value;
2369
2368
  if (m) {
2370
- m($, _);
2369
+ m(M, _);
2371
2370
  return;
2372
2371
  }
2373
- if (A && r && y(A, r, $), u && e) {
2374
- const { actionName: L, arg: W } = Ce(u, $, {
2372
+ if (A && r && y(A, r, M), u && e) {
2373
+ const { actionName: L, arg: q } = Ce(u, M, {
2375
2374
  id: t,
2376
2375
  dataSet: i,
2377
2376
  dataSetField: r
2378
2377
  });
2379
- l(e, X(L, W));
2378
+ l(e, X(L, q));
2380
2379
  }
2381
2380
  c && (s.current && clearTimeout(s.current), s.current = setTimeout(() => {
2382
- s.current = null, w($);
2381
+ s.current = null, w(M);
2383
2382
  }, Po));
2384
2383
  },
2385
2384
  [
@@ -2394,21 +2393,21 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2394
2393
  c,
2395
2394
  w
2396
2395
  ]
2397
- ), k = j(() => {
2396
+ ), k = K(() => {
2398
2397
  a && w(x);
2399
- }, [a, w, x]), S = j(
2398
+ }, [a, w, x]), S = K(
2400
2399
  (_) => {
2401
2400
  if (f.onPressEnter) {
2402
2401
  f.onPressEnter(_);
2403
2402
  return;
2404
2403
  }
2405
2404
  if (d && e) {
2406
- const { actionName: $, arg: L } = Ce(d, x, {
2405
+ const { actionName: M, arg: L } = Ce(d, x, {
2407
2406
  id: t,
2408
2407
  dataSet: i,
2409
2408
  dataSetField: r
2410
2409
  });
2411
- l(e, X($, L));
2410
+ l(e, X(M, L));
2412
2411
  }
2413
2412
  },
2414
2413
  [
@@ -2421,18 +2420,18 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2421
2420
  r,
2422
2421
  l
2423
2422
  ]
2424
- ), M = j(() => {
2423
+ ), O = K(() => {
2425
2424
  if (f.onClear) {
2426
2425
  f.onClear();
2427
2426
  return;
2428
2427
  }
2429
2428
  if (v && e) {
2430
- const { actionName: _, arg: $ } = Ce(v, "", {
2429
+ const { actionName: _, arg: M } = Ce(v, "", {
2431
2430
  id: t,
2432
2431
  dataSet: i,
2433
2432
  dataSetField: r
2434
2433
  });
2435
- l(e, X(_, $));
2434
+ l(e, X(_, M));
2436
2435
  }
2437
2436
  }, [f.onClear, v, e, t, i, r, l]);
2438
2437
  return xe(
@@ -2450,7 +2449,7 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2450
2449
  onChange: E,
2451
2450
  onBlur: k,
2452
2451
  onPressEnter: S,
2453
- onClear: M,
2452
+ onClear: O,
2454
2453
  status: D ? "error" : void 0
2455
2454
  }
2456
2455
  ),
@@ -2475,7 +2474,7 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2475
2474
  [e, i]
2476
2475
  ), y = h(() => {
2477
2476
  if (l && r) return p(l, r);
2478
- }, [l, r, p]), s = h(() => y ?? d ?? v, [y, d, v]), A = j((T) => {
2477
+ }, [l, r, p]), s = h(() => y ?? d ?? v, [y, d, v]), A = K((T) => {
2479
2478
  const w = T.target.value;
2480
2479
  if (c) {
2481
2480
  c(w);
@@ -2485,7 +2484,7 @@ const jc = Ve.memo(sr), Tn = 200, Kc = ({
2485
2484
  const { actionName: D, arg: x } = Ce(o, w, { id: t, dataSet: i, dataSetField: r });
2486
2485
  g(e, X(D, x));
2487
2486
  }
2488
- }, [c, l, r, f, o, e, t, g]), C = j((T) => {
2487
+ }, [c, l, r, f, o, e, t, g]), C = K((T) => {
2489
2488
  if (u) {
2490
2489
  u(T);
2491
2490
  return;
@@ -2568,41 +2567,41 @@ const Vc = ({
2568
2567
  dropdownMatchSelectWidth: x,
2569
2568
  ...E
2570
2569
  }) => {
2571
- const k = N((te) => te.addCommand), S = N((te) => te.setDataSet), M = Me(null), _ = Ct(ct), $ = h(
2570
+ const k = N((te) => te.addCommand), S = N((te) => te.setDataSet), O = Me(null), _ = Ct(ct), M = h(
2572
2571
  () => ee(e, i),
2573
2572
  [e, i]
2574
- ), L = y ?? (_ == null ? void 0 : _.index), W = N(
2573
+ ), L = y ?? (_ == null ? void 0 : _.index), q = N(
2575
2574
  (te) => {
2576
2575
  var ye;
2577
2576
  return e && t ? ((ye = te.propsStore[`${e}_props`]) == null ? void 0 : ye[t]) ?? null : null;
2578
2577
  }
2579
2578
  ), B = N(
2580
- (te) => $ && r ? te.getDataSet($, r) : void 0
2581
- ), O = h(
2582
- () => (W == null ? void 0 : W.optionsCfg) != null ? W.optionsCfg : c,
2583
- [W == null ? void 0 : W.optionsCfg, c]
2584
- ), { options: z, loading: q } = Nt(
2579
+ (te) => M && r ? te.getDataSet(M, r) : void 0
2580
+ ), $ = h(
2581
+ () => (q == null ? void 0 : q.optionsCfg) != null ? q.optionsCfg : c,
2582
+ [q == null ? void 0 : q.optionsCfg, c]
2583
+ ), { options: W, loading: z } = Nt(
2585
2584
  D || (o ? a : void 0)
2586
- ), { options: K, loading: R } = dn(
2587
- O == null ? void 0 : O.url,
2585
+ ), { options: j, loading: R } = dn(
2586
+ $ == null ? void 0 : $.url,
2588
2587
  {
2589
- valueKey: (O == null ? void 0 : O.codeKey) || "value",
2590
- labelKey: (O == null ? void 0 : O.labelKey) || "label",
2591
- immediate: !!(O != null && O.url),
2592
- params: O == null ? void 0 : O.params,
2593
- field: O == null ? void 0 : O.field
2588
+ valueKey: ($ == null ? void 0 : $.codeKey) || "value",
2589
+ labelKey: ($ == null ? void 0 : $.labelKey) || "label",
2590
+ immediate: !!($ != null && $.url),
2591
+ params: $ == null ? void 0 : $.params,
2592
+ field: $ == null ? void 0 : $.field
2594
2593
  }
2595
- ), P = q || R, { validate: Q, help: Y } = Be({
2594
+ ), P = z || R, { validate: Q, help: Y } = Be({
2596
2595
  rules: u,
2597
2596
  dataSet: i,
2598
2597
  dataSetField: r,
2599
2598
  sessionId: e,
2600
2599
  id: t,
2601
2600
  develop: n
2602
- }), U = h(() => B != null && B !== "" ? B : (W == null ? void 0 : W.value) !== void 0 ? W.value : l ?? f, [B, W == null ? void 0 : W.value, l, f]), I = h(
2603
- () => Ue(E, W ?? void 0),
2604
- [E, W]
2605
- ), ne = h(() => W != null && W.options && Array.isArray(W.options) ? W.options : O != null && O.url && K.length > 0 ? K : (D || o && a) && z.length > 0 ? z : p || [], [W == null ? void 0 : W.options, O == null ? void 0 : O.url, K, D, o, a, z, p]), de = h(() => {
2601
+ }), U = h(() => B != null && B !== "" ? B : (q == null ? void 0 : q.value) !== void 0 ? q.value : l ?? f, [B, q == null ? void 0 : q.value, l, f]), I = h(
2602
+ () => Ue(E, q ?? void 0),
2603
+ [E, q]
2604
+ ), ne = h(() => q != null && q.options && Array.isArray(q.options) ? q.options : $ != null && $.url && j.length > 0 ? j : (D || o && a) && W.length > 0 ? W : p || [], [q == null ? void 0 : q.options, $ == null ? void 0 : $.url, j, D, o, a, W, p]), de = h(() => {
2606
2605
  if (ne.length === 0) return U;
2607
2606
  if (Array.isArray(U))
2608
2607
  return U.map((ye) => {
@@ -2611,14 +2610,14 @@ const Vc = ({
2611
2610
  });
2612
2611
  const te = Ge(ne, U);
2613
2612
  return (te == null ? void 0 : te.value) ?? U;
2614
- }, [U, ne]), me = r ? `${r}${Jo}` : "", De = j(
2613
+ }, [U, ne]), me = r ? `${r}${Jo}` : "", De = K(
2615
2614
  (te, ye) => {
2616
2615
  if (g) {
2617
2616
  g(te, ye);
2618
2617
  return;
2619
2618
  }
2620
- if ($ && r) {
2621
- S($, r, te);
2619
+ if (M && r) {
2620
+ S(M, r, te);
2622
2621
  const ie = Nn(
2623
2622
  te,
2624
2623
  ye,
@@ -2626,10 +2625,10 @@ const Vc = ({
2626
2625
  I.labelInValue,
2627
2626
  I.mode
2628
2627
  );
2629
- S($, me, ie);
2628
+ S(M, me, ie);
2630
2629
  }
2631
- if (v && (M.current && clearTimeout(M.current), M.current = setTimeout(() => {
2632
- M.current = null, Q(te);
2630
+ if (v && (O.current && clearTimeout(O.current), O.current = setTimeout(() => {
2631
+ O.current = null, Q(te);
2633
2632
  }, Fo)), m && e) {
2634
2633
  const { actionName: ie, arg: Ne } = Ce(m, te, {
2635
2634
  id: t,
@@ -2642,7 +2641,7 @@ const Vc = ({
2642
2641
  },
2643
2642
  [
2644
2643
  g,
2645
- $,
2644
+ M,
2646
2645
  r,
2647
2646
  S,
2648
2647
  v,
@@ -2659,18 +2658,18 @@ const Vc = ({
2659
2658
  ]
2660
2659
  );
2661
2660
  xe(() => {
2662
- if (g || !$ || !r || !me) return;
2661
+ if (g || !M || !r || !me) return;
2663
2662
  const te = Nn(
2664
2663
  U,
2665
2664
  void 0,
2666
2665
  ne,
2667
2666
  I.labelInValue,
2668
2667
  I.mode
2669
- ), ye = N.getState().getDataSet($, me);
2670
- Go(ye, te) || S($, me, te);
2668
+ ), ye = N.getState().getDataSet(M, me);
2669
+ Go(ye, te) || S(M, me, te);
2671
2670
  }, [
2672
2671
  g,
2673
- $,
2672
+ M,
2674
2673
  r,
2675
2674
  me,
2676
2675
  U,
@@ -2679,19 +2678,19 @@ const Vc = ({
2679
2678
  I.mode,
2680
2679
  S
2681
2680
  ]);
2682
- const re = j(() => {
2681
+ const re = K(() => {
2683
2682
  d && Q(de);
2684
2683
  }, [d, Q, de]);
2685
2684
  xe(
2686
2685
  () => () => {
2687
- M.current && clearTimeout(M.current);
2686
+ O.current && clearTimeout(O.current);
2688
2687
  },
2689
2688
  []
2690
2689
  );
2691
- const se = j((te, ye) => ((ye == null ? void 0 : ye.label) ?? "").toLowerCase().includes(te.toLowerCase()), []);
2690
+ const se = K((te, ye) => ((ye == null ? void 0 : ye.label) ?? "").toLowerCase().includes(te.toLowerCase()), []);
2692
2691
  return /* @__PURE__ */ ue("div", { style: { width: "100%" }, children: [
2693
2692
  /* @__PURE__ */ b(
2694
- Vn,
2693
+ qn,
2695
2694
  {
2696
2695
  ...I,
2697
2696
  disabled: n ? !1 : I.disabled,
@@ -2740,7 +2739,7 @@ const Vc = ({
2740
2739
  sessionId: e,
2741
2740
  id: t,
2742
2741
  develop: n
2743
- }), T = h(() => s !== void 0 ? !!s : (y == null ? void 0 : y.checked) !== void 0 ? y.checked : v ?? m, [s, y == null ? void 0 : y.checked, v, m]), w = j(
2742
+ }), T = h(() => s !== void 0 ? !!s : (y == null ? void 0 : y.checked) !== void 0 ? y.checked : v ?? m, [s, y == null ? void 0 : y.checked, v, m]), w = K(
2744
2743
  (x) => {
2745
2744
  if (d) {
2746
2745
  d(x);
@@ -2767,12 +2766,12 @@ const Vc = ({
2767
2766
  t,
2768
2767
  p
2769
2768
  ]
2770
- ), D = j(() => {
2769
+ ), D = K(() => {
2771
2770
  a && A(T);
2772
2771
  }, [a, A, T]);
2773
2772
  return /* @__PURE__ */ ue("div", { style: { display: "inline-block" }, onBlur: D, children: [
2774
2773
  /* @__PURE__ */ b(
2775
- Ar,
2774
+ xr,
2776
2775
  {
2777
2776
  ...g,
2778
2777
  disabled: n ? !1 : g.disabled,
@@ -2803,8 +2802,8 @@ const Vc = ({
2803
2802
  [e, i]
2804
2803
  ), s = N(
2805
2804
  (S) => {
2806
- var M;
2807
- return e && t ? ((M = S.propsStore[`${e}_props`]) == null ? void 0 : M[t]) ?? null : null;
2805
+ var O;
2806
+ return e && t ? ((O = S.propsStore[`${e}_props`]) == null ? void 0 : O[t]) ?? null : null;
2808
2807
  }
2809
2808
  ), A = N(
2810
2809
  (S) => y && r ? S.getDataSet(y, r) : void 0
@@ -2815,31 +2814,31 @@ const Vc = ({
2815
2814
  sessionId: e,
2816
2815
  id: t,
2817
2816
  develop: n
2818
- }), w = j((S) => {
2817
+ }), w = K((S) => {
2819
2818
  if (!S) return null;
2820
2819
  if (Fe.isDayjs(S)) return S;
2821
2820
  if (typeof S == "string") {
2822
- const M = Fe(S, a);
2823
- return M.isValid() ? M : null;
2821
+ const O = Fe(S, a);
2822
+ return O.isValid() ? O : null;
2824
2823
  }
2825
2824
  return null;
2826
2825
  }, [a]), D = h(() => {
2827
2826
  const S = A ?? (s == null ? void 0 : s.value) ?? m ?? g;
2828
2827
  return w(S);
2829
- }, [A, s == null ? void 0 : s.value, m, g, w]), x = j(
2830
- (S, M) => {
2828
+ }, [A, s == null ? void 0 : s.value, m, g, w]), x = K(
2829
+ (S, O) => {
2831
2830
  if (v) {
2832
- v(S, M);
2831
+ v(S, O);
2833
2832
  return;
2834
2833
  }
2835
- const _ = Array.isArray(M) ? M[0] : M;
2834
+ const _ = Array.isArray(O) ? O[0] : O;
2836
2835
  if (y && r && l(y, r, _), d && C(_), o && e) {
2837
- const { actionName: $, arg: L } = Ce(o, _, {
2836
+ const { actionName: M, arg: L } = Ce(o, _, {
2838
2837
  id: t,
2839
2838
  dataSet: i,
2840
2839
  dataSetField: r
2841
2840
  });
2842
- f(e, X($, L));
2841
+ f(e, X(M, L));
2843
2842
  }
2844
2843
  },
2845
2844
  [v, y, r, l, d, C, o, e, t, f]
@@ -2850,7 +2849,7 @@ const Vc = ({
2850
2849
  l(y, r, S);
2851
2850
  }
2852
2851
  }, [g, D, y, r, l, a]);
2853
- const E = j(() => {
2852
+ const E = K(() => {
2854
2853
  if (u) {
2855
2854
  const S = D ? D.format(a) : null;
2856
2855
  C(S);
@@ -2861,7 +2860,7 @@ const Vc = ({
2861
2860
  );
2862
2861
  return /* @__PURE__ */ ue("div", { onBlur: E, style: { display: "flex" }, children: [
2863
2862
  /* @__PURE__ */ b(
2864
- qn,
2863
+ Wn,
2865
2864
  {
2866
2865
  ...k,
2867
2866
  disabled: n ? !1 : k.disabled,
@@ -2901,30 +2900,30 @@ const Vc = ({
2901
2900
  sessionId: e,
2902
2901
  id: t,
2903
2902
  develop: n
2904
- }), w = j((S) => {
2903
+ }), w = K((S) => {
2905
2904
  if (!S) return null;
2906
2905
  if (Fe.isDayjs(S)) return S;
2907
2906
  if (typeof S == "string") {
2908
- const M = Fe(S, a);
2909
- return M.isValid() ? M : null;
2907
+ const O = Fe(S, a);
2908
+ return O.isValid() ? O : null;
2910
2909
  }
2911
2910
  return null;
2912
- }, [a]), D = h(() => w(A ?? u ?? d), [A, u, d, w]), x = j((S, M) => {
2911
+ }, [a]), D = h(() => w(A ?? u ?? d), [A, u, d, w]), x = K((S, O) => {
2913
2912
  if (c) {
2914
- c(S, M);
2913
+ c(S, O);
2915
2914
  return;
2916
2915
  }
2917
- const _ = M || "";
2916
+ const _ = O || "";
2918
2917
  if (s && r && y(s, r, _), m && C(_), o && e) {
2919
- const { actionName: $, arg: L } = Ce(o, _, { id: t, dataSet: i, dataSetField: r });
2920
- f(e, X($, L));
2918
+ const { actionName: M, arg: L } = Ce(o, _, { id: t, dataSet: i, dataSetField: r });
2919
+ f(e, X(M, L));
2921
2920
  }
2922
- }, [c, s, r, y, m, C, o, e, t, f]), E = j(() => {
2921
+ }, [c, s, r, y, m, C, o, e, t, f]), E = K(() => {
2923
2922
  g && C(D ? D.format(a) : "");
2924
2923
  }, [g, C, D, a]), k = T ? "error" : void 0;
2925
2924
  return /* @__PURE__ */ ue(yt, { children: [
2926
2925
  /* @__PURE__ */ b(
2927
- xr,
2926
+ Cr,
2928
2927
  {
2929
2928
  ...p,
2930
2929
  disabled: n ? !1 : p.disabled,
@@ -2938,7 +2937,7 @@ const Vc = ({
2938
2937
  ),
2939
2938
  T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: T })
2940
2939
  ] });
2941
- }, { RangePicker: Qo } = qn, Uc = ({
2940
+ }, { RangePicker: Qo } = Wn, Uc = ({
2942
2941
  id: t,
2943
2942
  sessionId: e,
2944
2943
  develop: n,
@@ -2959,8 +2958,8 @@ const Vc = ({
2959
2958
  [e, i]
2960
2959
  ), s = N(
2961
2960
  (S) => {
2962
- var M;
2963
- return e && t ? ((M = S.propsStore[`${e}_props`]) == null ? void 0 : M[t]) ?? null : null;
2961
+ var O;
2962
+ return e && t ? ((O = S.propsStore[`${e}_props`]) == null ? void 0 : O[t]) ?? null : null;
2964
2963
  }
2965
2964
  ), A = N(
2966
2965
  (S) => y && r ? S.getDataSet(y, r) : void 0
@@ -2971,35 +2970,35 @@ const Vc = ({
2971
2970
  sessionId: e,
2972
2971
  id: t,
2973
2972
  develop: n
2974
- }), w = j((S) => {
2973
+ }), w = K((S) => {
2975
2974
  if (!S || !Array.isArray(S) || S.length !== 2) return null;
2976
- const [M, _] = S, $ = Fe.isDayjs(M) ? M : Fe(M, a), L = Fe.isDayjs(_) ? _ : Fe(_, a);
2977
- return $.isValid() && L.isValid() ? [$, L] : null;
2975
+ const [O, _] = S, M = Fe.isDayjs(O) ? O : Fe(O, a), L = Fe.isDayjs(_) ? _ : Fe(_, a);
2976
+ return M.isValid() && L.isValid() ? [M, L] : null;
2978
2977
  }, [a]), D = h(() => {
2979
2978
  const S = A ?? (s == null ? void 0 : s.value) ?? m ?? g;
2980
2979
  return w(S);
2981
2980
  }, [A, s == null ? void 0 : s.value, m, g, w]), x = h(
2982
2981
  () => Ue(p, s ?? void 0),
2983
2982
  [p, s]
2984
- ), E = j(
2985
- (S, M) => {
2983
+ ), E = K(
2984
+ (S, O) => {
2986
2985
  if (v) {
2987
- v(S, M);
2986
+ v(S, O);
2988
2987
  return;
2989
2988
  }
2990
- if (y && r && l(y, r, M), d && C(M), o && e) {
2991
- const { actionName: _, arg: $ } = Ce(o, M, {
2989
+ if (y && r && l(y, r, O), d && C(O), o && e) {
2990
+ const { actionName: _, arg: M } = Ce(o, O, {
2992
2991
  id: t,
2993
2992
  dataSet: i,
2994
2993
  dataSetField: r
2995
2994
  });
2996
- f(e, X(_, $));
2995
+ f(e, X(_, M));
2997
2996
  }
2998
2997
  },
2999
2998
  [v, y, r, l, d, C, o, e, t, f]
3000
- ), k = j(() => {
3001
- var S, M;
3002
- u && C(D ? [(S = D[0]) == null ? void 0 : S.format(a), (M = D[1]) == null ? void 0 : M.format(a)] : null);
2999
+ ), k = K(() => {
3000
+ var S, O;
3001
+ u && C(D ? [(S = D[0]) == null ? void 0 : S.format(a), (O = D[1]) == null ? void 0 : O.format(a)] : null);
3003
3002
  }, [u, C, D, a]);
3004
3003
  return /* @__PURE__ */ ue("div", { onBlur: k, children: [
3005
3004
  /* @__PURE__ */ b(
@@ -3037,16 +3036,16 @@ const Vc = ({
3037
3036
  remoteUrl: A,
3038
3037
  ...C
3039
3038
  }) => {
3040
- const T = N((q) => q.addCommand), w = N((q) => q.setDataSet), D = h(
3039
+ const T = N((z) => z.addCommand), w = N((z) => z.setDataSet), D = h(
3041
3040
  () => ee(e, i),
3042
3041
  [e, i]
3043
3042
  ), x = N(
3044
- (q) => {
3045
- var K;
3046
- return e && t ? ((K = q.propsStore[`${e}_props`]) == null ? void 0 : K[t]) ?? null : null;
3043
+ (z) => {
3044
+ var j;
3045
+ return e && t ? ((j = z.propsStore[`${e}_props`]) == null ? void 0 : j[t]) ?? null : null;
3047
3046
  }
3048
3047
  ), E = N(
3049
- (q) => D && r ? q.getDataSet(D, r) : void 0
3048
+ (z) => D && r ? z.getDataSet(D, r) : void 0
3050
3049
  ), { validate: k, help: S } = Be({
3051
3050
  rules: v,
3052
3051
  dataSet: i,
@@ -3054,29 +3053,29 @@ const Vc = ({
3054
3053
  sessionId: e,
3055
3054
  id: t,
3056
3055
  develop: n
3057
- }), M = h(() => E !== void 0 ? E : (x == null ? void 0 : x.value) !== void 0 ? x.value : f ?? l, [E, x == null ? void 0 : x.value, f, l]), { options: _ } = Nt(y), { options: $ } = dn(
3056
+ }), O = h(() => E !== void 0 ? E : (x == null ? void 0 : x.value) !== void 0 ? x.value : f ?? l, [E, x == null ? void 0 : x.value, f, l]), { options: _ } = Nt(y), { options: M } = dn(
3058
3057
  a == null ? void 0 : a.url,
3059
3058
  {
3060
3059
  valueKey: (a == null ? void 0 : a.codeKey) || "value",
3061
3060
  labelKey: (a == null ? void 0 : a.labelKey) || "label",
3062
3061
  immediate: !!(a != null && a.url)
3063
3062
  }
3064
- ), L = h(() => x != null && x.options ? x.options : a != null && a.url && $.length > 0 ? $ : y && _.length > 0 ? _ : o, [x == null ? void 0 : x.options, a == null ? void 0 : a.url, $, y, _, o]), W = h(() => {
3065
- if (L.length === 0) return M;
3066
- const q = Ge(L, M);
3067
- return (q == null ? void 0 : q.value) ?? M;
3068
- }, [M, L]), B = h(
3063
+ ), L = h(() => x != null && x.options ? x.options : a != null && a.url && M.length > 0 ? M : y && _.length > 0 ? _ : o, [x == null ? void 0 : x.options, a == null ? void 0 : a.url, M, y, _, o]), q = h(() => {
3064
+ if (L.length === 0) return O;
3065
+ const z = Ge(L, O);
3066
+ return (z == null ? void 0 : z.value) ?? O;
3067
+ }, [O, L]), B = h(
3069
3068
  () => Ue(C, x ?? void 0),
3070
3069
  [C, x]
3071
- ), O = j(
3072
- (q) => {
3073
- const K = q.target.value;
3070
+ ), $ = K(
3071
+ (z) => {
3072
+ const j = z.target.value;
3074
3073
  if (p) {
3075
- p(K);
3074
+ p(j);
3076
3075
  return;
3077
3076
  }
3078
- if (D && r && w(D, r, K), g && k(K), c && e) {
3079
- const { actionName: R, arg: P } = Ce(c, K, {
3077
+ if (D && r && w(D, r, j), g && k(j), c && e) {
3078
+ const { actionName: R, arg: P } = Ce(c, j, {
3080
3079
  id: t,
3081
3080
  dataSet: i,
3082
3081
  dataSetField: r
@@ -3096,25 +3095,25 @@ const Vc = ({
3096
3095
  t,
3097
3096
  T
3098
3097
  ]
3099
- ), z = j(() => {
3100
- m && k(W);
3101
- }, [m, k, W]);
3102
- return /* @__PURE__ */ ue("div", { onBlur: z, children: [
3098
+ ), W = K(() => {
3099
+ m && k(q);
3100
+ }, [m, k, q]);
3101
+ return /* @__PURE__ */ ue("div", { onBlur: W, children: [
3103
3102
  /* @__PURE__ */ b(
3104
3103
  Ut.Group,
3105
3104
  {
3106
3105
  ...B,
3107
3106
  disabled: n ? !1 : B.disabled,
3108
- value: W,
3109
- onChange: O,
3107
+ value: q,
3108
+ onChange: $,
3110
3109
  buttonStyle: (x == null ? void 0 : x.buttonStyle) ?? u,
3111
3110
  optionType: (x == null ? void 0 : x.optionType) ?? d,
3112
- children: d === "button" ? L.map((q) => /* @__PURE__ */ b(Ut.Button, { value: q.value, disabled: q.disabled, children: q.label }, q.value)) : /* @__PURE__ */ b(
3111
+ children: d === "button" ? L.map((z) => /* @__PURE__ */ b(Ut.Button, { value: z.value, disabled: z.disabled, children: z.label }, z.value)) : /* @__PURE__ */ b(
3113
3112
  Qe,
3114
3113
  {
3115
3114
  orientation: (x == null ? void 0 : x.direction) ?? s ?? "horizontal",
3116
3115
  wrap: !0,
3117
- children: L.map((q) => /* @__PURE__ */ b(Ut, { value: q.value, disabled: q.disabled, children: q.label }, q.value))
3116
+ children: L.map((z) => /* @__PURE__ */ b(Ut, { value: z.value, disabled: z.disabled, children: z.label }, z.value))
3118
3117
  }
3119
3118
  )
3120
3119
  }
@@ -3156,62 +3155,62 @@ const Vc = ({
3156
3155
  }
3157
3156
  ), S = N(
3158
3157
  (Y) => E && r ? Y.getDataSet(E, r) : void 0
3159
- ), { validate: M, help: _ } = Be({
3158
+ ), { validate: O, help: _ } = Be({
3160
3159
  rules: d,
3161
3160
  dataSet: i,
3162
3161
  dataSetField: r,
3163
3162
  sessionId: e,
3164
3163
  id: t,
3165
3164
  develop: n
3166
- }), { options: $ } = Nt(A), { options: L } = dn(
3165
+ }), { options: M } = Nt(A), { options: L } = dn(
3167
3166
  a == null ? void 0 : a.url,
3168
3167
  {
3169
3168
  valueKey: (a == null ? void 0 : a.codeKey) || "value",
3170
3169
  labelKey: (a == null ? void 0 : a.labelKey) || "label",
3171
3170
  immediate: !!(a != null && a.url)
3172
3171
  }
3173
- ), W = h(() => {
3172
+ ), q = h(() => {
3174
3173
  if (!c)
3175
3174
  return S !== void 0 ? !!S : (k == null ? void 0 : k.checked) !== void 0 ? k.checked : f ?? y;
3176
- }, [c, S, k == null ? void 0 : k.checked, f, y]), B = h(() => k != null && k.options ? k.options : a != null && a.url && L.length > 0 ? L : A && $.length > 0 ? $ : o, [k == null ? void 0 : k.options, a == null ? void 0 : a.url, L, A, $, o]), O = h(() => {
3175
+ }, [c, S, k == null ? void 0 : k.checked, f, y]), B = h(() => k != null && k.options ? k.options : a != null && a.url && L.length > 0 ? L : A && M.length > 0 ? M : o, [k == null ? void 0 : k.options, a == null ? void 0 : a.url, L, A, M, o]), $ = h(() => {
3177
3176
  if (!c) return [];
3178
3177
  let Y = [];
3179
3178
  return Array.isArray(S) ? Y = S : Array.isArray(k == null ? void 0 : k.values) ? Y = k.values : Y = l || [], B.length === 0 ? Y : Y.map((U) => {
3180
3179
  var I;
3181
3180
  return ((I = Ge(B, U)) == null ? void 0 : I.value) ?? U;
3182
3181
  });
3183
- }, [c, S, k == null ? void 0 : k.values, l, B]), z = h(
3182
+ }, [c, S, k == null ? void 0 : k.values, l, B]), W = h(
3184
3183
  () => Ue(w, k ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3185
3184
  [w, k]
3186
- ), K = (z.direction ?? C) === "vertical" ? "vertical" : "horizontal", R = j((Y) => {
3185
+ ), j = (W.direction ?? C) === "vertical" ? "vertical" : "horizontal", R = K((Y) => {
3187
3186
  const U = Y.target.checked;
3188
3187
  if (g) {
3189
3188
  g(U);
3190
3189
  return;
3191
3190
  }
3192
- if (E && r && x(E, r, U), m && M(U), u && e) {
3191
+ if (E && r && x(E, r, U), m && O(U), u && e) {
3193
3192
  const { actionName: I, arg: ne } = Ce(u, U, { id: t, dataSet: i, dataSetField: r });
3194
3193
  D(e, X(I, ne));
3195
3194
  }
3196
- }, [g, E, r, x, m, M, u, e, t, D]), P = j((Y) => {
3195
+ }, [g, E, r, x, m, O, u, e, t, D]), P = K((Y) => {
3197
3196
  if (p) {
3198
3197
  p(Y);
3199
3198
  return;
3200
3199
  }
3201
- if (E && r && x(E, r, Y), m && M(Y), u && e) {
3200
+ if (E && r && x(E, r, Y), m && O(Y), u && e) {
3202
3201
  const { actionName: U, arg: I } = Ce(u, Y, { id: t, dataSet: i, dataSetField: r });
3203
3202
  D(e, X(U, I));
3204
3203
  }
3205
- }, [p, E, r, x, m, M, u, e, t, D]), Q = j(() => {
3206
- v && M(c ? O : W);
3207
- }, [v, M, c, O, W]);
3204
+ }, [p, E, r, x, m, O, u, e, t, D]), Q = K(() => {
3205
+ v && O(c ? $ : q);
3206
+ }, [v, O, c, $, q]);
3208
3207
  if (c && B.length > 0) {
3209
- const { indeterminate: Y, direction: U, ...I } = z;
3208
+ const { indeterminate: Y, direction: U, ...I } = W;
3210
3209
  return /* @__PURE__ */ ue("div", { onBlur: Q, children: [
3211
- /* @__PURE__ */ b(ht.Group, { ...I, value: O, onChange: P, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
3210
+ /* @__PURE__ */ b(ht.Group, { ...I, value: $, onChange: P, disabled: n ? !1 : W.disabled, children: /* @__PURE__ */ b(
3212
3211
  Qe,
3213
3212
  {
3214
- orientation: K,
3213
+ orientation: j,
3215
3214
  wrap: !0,
3216
3215
  children: B.map((ne) => /* @__PURE__ */ b(ht, { value: ne.value, disabled: ne.disabled, children: ne.label }, ne.value))
3217
3216
  }
@@ -3223,9 +3222,9 @@ const Vc = ({
3223
3222
  /* @__PURE__ */ b(
3224
3223
  ht,
3225
3224
  {
3226
- ...z,
3227
- disabled: n ? !1 : z.disabled,
3228
- checked: W,
3225
+ ...W,
3226
+ disabled: n ? !1 : W.disabled,
3227
+ checked: q,
3229
3228
  onChange: R,
3230
3229
  children: s
3231
3230
  }
@@ -3264,7 +3263,7 @@ const Vc = ({
3264
3263
  sessionId: e,
3265
3264
  id: t,
3266
3265
  develop: n
3267
- }), T = h(() => s !== void 0 ? s : (y == null ? void 0 : y.value) !== void 0 ? y.value : v ?? m, [s, y == null ? void 0 : y.value, v, m]), w = j(
3266
+ }), T = h(() => s !== void 0 ? s : (y == null ? void 0 : y.value) !== void 0 ? y.value : v ?? m, [s, y == null ? void 0 : y.value, v, m]), w = K(
3268
3267
  (E) => {
3269
3268
  if (d) {
3270
3269
  d(E);
@@ -3280,7 +3279,7 @@ const Vc = ({
3280
3279
  }
3281
3280
  },
3282
3281
  [d, l, r, f, u, A, o, e, t, p]
3283
- ), D = j(() => {
3282
+ ), D = K(() => {
3284
3283
  c && A(T);
3285
3284
  }, [c, A, T]), x = h(
3286
3285
  () => Ue(g, y ?? void 0),
@@ -3288,7 +3287,7 @@ const Vc = ({
3288
3287
  );
3289
3288
  return /* @__PURE__ */ ue("div", { onBlur: D, children: [
3290
3289
  /* @__PURE__ */ b(
3291
- Cr,
3290
+ kr,
3292
3291
  {
3293
3292
  ...x,
3294
3293
  disabled: n ? !1 : x.disabled,
@@ -3315,7 +3314,7 @@ const Vc = ({
3315
3314
  [e, i]
3316
3315
  ), f = h(() => {
3317
3316
  if (p && r) return m(p, r);
3318
- }, [p, r, m]), l = h(() => f ?? c ?? u, [f, c, u]), y = j((s) => {
3317
+ }, [p, r, m]), l = h(() => f ?? c ?? u, [f, c, u]), y = K((s) => {
3319
3318
  if (a) {
3320
3319
  a(s);
3321
3320
  return;
@@ -3325,12 +3324,12 @@ const Vc = ({
3325
3324
  v(e, X(A, C));
3326
3325
  }
3327
3326
  }, [a, p, r, g, o, e, t, v]);
3328
- return /* @__PURE__ */ b(kr, { ...d, disabled: n ? !1 : d.disabled, value: l, onChange: y });
3329
- }, Zo = 200, lr = (t, e, n = 1) => {
3327
+ return /* @__PURE__ */ b(Tr, { ...d, disabled: n ? !1 : d.disabled, value: l, onChange: y });
3328
+ }, Zo = 200, ur = (t, e, n = 1) => {
3330
3329
  if (!Array.isArray(t)) return [];
3331
3330
  const { codeKey: i, labelKey: r, childrenKey: o, maxLevel: a } = e;
3332
3331
  return t.map((c) => {
3333
- const u = n < a && Array.isArray(c == null ? void 0 : c[o]) ? lr(c[o], e, n + 1) : void 0, d = {
3332
+ const u = n < a && Array.isArray(c == null ? void 0 : c[o]) ? ur(c[o], e, n + 1) : void 0, d = {
3334
3333
  value: String(c == null ? void 0 : c[i]),
3335
3334
  label: c == null ? void 0 : c[r]
3336
3335
  };
@@ -3368,58 +3367,58 @@ const Vc = ({
3368
3367
  remoteUrl: f,
3369
3368
  ...l
3370
3369
  }) => {
3371
- const y = N((O) => O.addCommand), s = N((O) => O.setDataSet), A = Me(null), [C, T] = ve([]), [w, D] = ve(!1), x = h(
3370
+ const y = N(($) => $.addCommand), s = N(($) => $.setDataSet), A = Me(null), [C, T] = ve([]), [w, D] = ve(!1), x = h(
3372
3371
  () => ee(e, i),
3373
3372
  [e, i]
3374
3373
  ), E = N(
3375
- (O) => x && r ? O.getDataSet(x, r) : void 0
3376
- ), { validate: k, help: S, validateStatus: M } = Be({
3374
+ ($) => x && r ? $.getDataSet(x, r) : void 0
3375
+ ), { validate: k, help: S, validateStatus: O } = Be({
3377
3376
  rules: a,
3378
3377
  dataSet: i,
3379
3378
  dataSetField: r,
3380
3379
  sessionId: e,
3381
3380
  id: t,
3382
3381
  develop: n
3383
- }), _ = h(() => (o == null ? void 0 : o.url) && C.length > 0, [o == null ? void 0 : o.url, C.length]), $ = h(() => {
3384
- let O = E ?? p ?? g ?? [];
3385
- return typeof O == "string" ? _ ? _n(O).map((q) => Xo(q, C)).filter((q) => Array.isArray(q) && q.length > 0) : [O] : En(O) && _ ? O.map((q) => _n(q)).filter((q) => Array.isArray(q) && q.length > 0) : On(O) && _ ? O.filter((z) => Array.isArray(z) && z.length > 0) : O;
3382
+ }), _ = h(() => (o == null ? void 0 : o.url) && C.length > 0, [o == null ? void 0 : o.url, C.length]), M = h(() => {
3383
+ let $ = E ?? p ?? g ?? [];
3384
+ return typeof $ == "string" ? _ ? _n($).map((z) => Xo(z, C)).filter((z) => Array.isArray(z) && z.length > 0) : [$] : En($) && _ ? $.map((z) => _n(z)).filter((z) => Array.isArray(z) && z.length > 0) : On($) && _ ? $.filter((W) => Array.isArray(W) && W.length > 0) : $;
3386
3385
  }, [E, p, g, _, C]), L = h(() => o != null && o.url && C.length > 0 ? C : m || [], [o == null ? void 0 : o.url, C, m]);
3387
3386
  xe(() => {
3388
3387
  (async () => {
3389
3388
  if (o != null && o.url) {
3390
3389
  D(!0);
3391
3390
  try {
3392
- const z = await at({ url: o.url, method: "GET" }), q = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], K = o.codeKey || "value", R = o.labelKey || "label", P = o.childrenKey || "children", Q = o.maxLevel || 5, Y = lr(q, {
3393
- codeKey: K,
3391
+ const W = await at({ url: o.url, method: "GET" }), z = Array.isArray(W) ? W : W != null && W.data ? Array.isArray(W.data) ? W.data : W.data.list || W.data.records || [] : [], j = o.codeKey || "value", R = o.labelKey || "label", P = o.childrenKey || "children", Q = o.maxLevel || 5, Y = ur(z, {
3392
+ codeKey: j,
3394
3393
  labelKey: R,
3395
3394
  childrenKey: P,
3396
3395
  maxLevel: Q
3397
3396
  });
3398
3397
  T(Y);
3399
- } catch (z) {
3400
- console.error("Failed to load remote options:", z), T([]);
3398
+ } catch (W) {
3399
+ console.error("Failed to load remote options:", W), T([]);
3401
3400
  } finally {
3402
3401
  D(!1);
3403
3402
  }
3404
3403
  }
3405
3404
  })();
3406
3405
  }, [o == null ? void 0 : o.url, o == null ? void 0 : o.codeKey, o == null ? void 0 : o.labelKey, o == null ? void 0 : o.childrenKey, o == null ? void 0 : o.maxLevel]);
3407
- const W = j(
3408
- (O, z) => {
3406
+ const q = K(
3407
+ ($, W) => {
3409
3408
  if (v) {
3410
- v(O, z);
3409
+ v($, W);
3411
3410
  return;
3412
3411
  }
3413
- let q = O;
3414
- if (En(O) && _ ? q = String(O[O.length - 1] || "") : On(O) && _ && (q = O.map((K) => K.join(","))), x && r && s(x, r, q), u && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
3415
- A.current = null, k(O);
3412
+ let z = $;
3413
+ if (En($) && _ ? z = String($[$.length - 1] || "") : On($) && _ && (z = $.map((j) => j.join(","))), x && r && s(x, r, z), u && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
3414
+ A.current = null, k($);
3416
3415
  }, Zo)), d && e) {
3417
- const { actionName: K, arg: R } = Ce(d, O, {
3416
+ const { actionName: j, arg: R } = Ce(d, $, {
3418
3417
  id: t,
3419
3418
  dataSet: i,
3420
3419
  dataSetField: r
3421
3420
  });
3422
- y(e, X(K, R));
3421
+ y(e, X(j, R));
3423
3422
  }
3424
3423
  },
3425
3424
  [
@@ -3435,9 +3434,9 @@ const Vc = ({
3435
3434
  y,
3436
3435
  _
3437
3436
  ]
3438
- ), B = j(() => {
3439
- c && k($);
3440
- }, [c, k, $]);
3437
+ ), B = K(() => {
3438
+ c && k(M);
3439
+ }, [c, k, M]);
3441
3440
  return xe(
3442
3441
  () => () => {
3443
3442
  A.current && clearTimeout(A.current);
@@ -3445,17 +3444,17 @@ const Vc = ({
3445
3444
  []
3446
3445
  ), /* @__PURE__ */ ue("div", { style: { width: "100%" }, children: [
3447
3446
  /* @__PURE__ */ b(
3448
- Tr,
3447
+ Nr,
3449
3448
  {
3450
3449
  ...l,
3451
3450
  disabled: n ? !1 : l.disabled,
3452
3451
  open: n ? !1 : void 0,
3453
- value: $,
3452
+ value: M,
3454
3453
  options: L,
3455
- onChange: W,
3454
+ onChange: q,
3456
3455
  onBlur: B,
3457
3456
  loading: w,
3458
- status: M,
3457
+ status: O,
3459
3458
  style: { width: "100%", ...l.style }
3460
3459
  }
3461
3460
  ),
@@ -3482,16 +3481,16 @@ const Vc = ({
3482
3481
  validateOnBlur: s,
3483
3482
  ...A
3484
3483
  }) => {
3485
- const C = N((z) => z.addCommand), T = N((z) => z.setDataSet), w = h(
3484
+ const C = N((W) => W.addCommand), T = N((W) => W.setDataSet), w = h(
3486
3485
  () => ee(e, i),
3487
3486
  [e, i]
3488
3487
  ), D = N(
3489
- (z) => {
3490
- var q;
3491
- return e && t ? ((q = z.propsStore[`${e}_props`]) == null ? void 0 : q[t]) ?? null : null;
3488
+ (W) => {
3489
+ var z;
3490
+ return e && t ? ((z = W.propsStore[`${e}_props`]) == null ? void 0 : z[t]) ?? null : null;
3492
3491
  }
3493
3492
  ), x = N(
3494
- (z) => w && r ? z.getDataSet(w, r) : void 0
3493
+ (W) => w && r ? W.getDataSet(w, r) : void 0
3495
3494
  ), { validate: E, help: k } = Be({
3496
3495
  rules: l,
3497
3496
  dataSet: i,
@@ -3502,17 +3501,17 @@ const Vc = ({
3502
3501
  }), S = h(
3503
3502
  () => x ?? (D == null ? void 0 : D.value) ?? c ?? u,
3504
3503
  [x, D == null ? void 0 : D.value, c, u]
3505
- ), M = h(
3504
+ ), O = h(
3506
3505
  () => Ue(A, D ?? void 0),
3507
3506
  [A, D]
3508
- ), _ = j(
3509
- (z, q, K) => {
3507
+ ), _ = K(
3508
+ (W, z, j) => {
3510
3509
  if (a) {
3511
- a(z, q, K);
3510
+ a(W, z, j);
3512
3511
  return;
3513
3512
  }
3514
- if (w && r && T(w, r, z), y && E(z), o && e) {
3515
- const { actionName: R, arg: P } = Ce(o, z, {
3513
+ if (w && r && T(w, r, W), y && E(W), o && e) {
3514
+ const { actionName: R, arg: P } = Ce(o, W, {
3516
3515
  id: t,
3517
3516
  dataSet: i,
3518
3517
  dataSetField: r
@@ -3521,32 +3520,32 @@ const Vc = ({
3521
3520
  }
3522
3521
  },
3523
3522
  [a, w, r, T, y, E, o, e, t, C]
3524
- ), $ = j(() => {
3523
+ ), M = K(() => {
3525
3524
  s && E(S);
3526
3525
  }, [s, E, S]), L = h(() => {
3527
3526
  if (!f) return;
3528
- const z = {};
3529
- return Object.entries(f).forEach(([q, K]) => {
3530
- K !== "" && K !== void 0 && K !== null && (z[q] = K);
3531
- }), Object.keys(z).length > 0 ? z : void 0;
3532
- }, [f]), W = h(() => {
3527
+ const W = {};
3528
+ return Object.entries(f).forEach(([z, j]) => {
3529
+ j !== "" && j !== void 0 && j !== null && (W[z] = j);
3530
+ }), Object.keys(W).length > 0 ? W : void 0;
3531
+ }, [f]), q = h(() => {
3533
3532
  if (L)
3534
3533
  return {
3535
3534
  components: {
3536
3535
  TreeSelect: L
3537
3536
  }
3538
3537
  };
3539
- }, [L]), B = k ? "error" : void 0, O = /* @__PURE__ */ ue("div", { onBlur: $, children: [
3538
+ }, [L]), B = k ? "error" : void 0, $ = /* @__PURE__ */ ue("div", { onBlur: M, children: [
3540
3539
  /* @__PURE__ */ b(
3541
- Nr,
3540
+ _r,
3542
3541
  {
3543
- ...M,
3544
- disabled: n ? !1 : M.disabled,
3542
+ ...O,
3543
+ disabled: n ? !1 : O.disabled,
3545
3544
  open: n ? !1 : void 0,
3546
3545
  treeData: d,
3547
3546
  value: S,
3548
3547
  onChange: _,
3549
- style: { width: "100%", ...M.style },
3548
+ style: { width: "100%", ...O.style },
3550
3549
  styles: g,
3551
3550
  classNames: p,
3552
3551
  status: B
@@ -3554,7 +3553,7 @@ const Vc = ({
3554
3553
  ),
3555
3554
  k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
3556
3555
  ] });
3557
- return W ? /* @__PURE__ */ b(Ke, { theme: W, children: O }) : O;
3556
+ return q ? /* @__PURE__ */ b(Ke, { theme: q, children: $ }) : $;
3558
3557
  }, Zc = ({
3559
3558
  id: t,
3560
3559
  sessionId: e,
@@ -3584,19 +3583,19 @@ const Vc = ({
3584
3583
  var Z;
3585
3584
  return D && t ? ((Z = G.propsStore[`${D}_props`]) == null ? void 0 : Z[t]) ?? null : null;
3586
3585
  }
3587
- ), M = N(
3586
+ ), O = N(
3588
3587
  (G) => k && w ? G.getDataSet(k, w) : void 0
3589
- ), { validate: _, help: $ } = Be({
3588
+ ), { validate: _, help: M } = Be({
3590
3589
  rules: c,
3591
3590
  dataSet: T,
3592
3591
  dataSetField: w,
3593
3592
  sessionId: D,
3594
3593
  id: t,
3595
3594
  develop: n
3596
- }), L = j((G) => G.map((Z) => {
3595
+ }), L = K((G) => G.map((Z) => {
3597
3596
  var Se;
3598
3597
  return ((Se = Z == null ? void 0 : Z.response) == null ? void 0 : Se.src) ?? (Z == null ? void 0 : Z.src) ?? (Z == null ? void 0 : Z.url) ?? (Z == null ? void 0 : Z.thumbUrl) ?? "";
3599
- }).filter((Z) => Z && typeof Z == "string"), []), W = j((G) => {
3598
+ }).filter((Z) => Z && typeof Z == "string"), []), q = K((G) => {
3600
3599
  const Z = He().viewRes, Se = (V) => (Z ? Z(V) : V) || V;
3601
3600
  return G.map((V, le) => {
3602
3601
  const ge = Se(V);
@@ -3609,7 +3608,7 @@ const Vc = ({
3609
3608
  response: { src: V }
3610
3609
  };
3611
3610
  });
3612
- }, []), B = j((G) => {
3611
+ }, []), B = K((G) => {
3613
3612
  const Z = He().viewRes, Se = (V) => (V && Z ? Z(V) : V) || V;
3614
3613
  return G.map((V) => {
3615
3614
  var H;
@@ -3620,24 +3619,24 @@ const Vc = ({
3620
3619
  }
3621
3620
  return ge && typeof ge == "string" && (F.url = ge, F.thumbUrl = ge), F;
3622
3621
  });
3623
- }, []), [O, z] = ve(null), q = h(() => {
3624
- const G = M ?? (S == null ? void 0 : S.fileList) ?? m;
3622
+ }, []), [$, W] = ve(null), z = h(() => {
3623
+ const G = O ?? (S == null ? void 0 : S.fileList) ?? m;
3625
3624
  if (G != null) {
3626
- if (typeof G == "string" && G) return W([G]);
3625
+ if (typeof G == "string" && G) return q([G]);
3627
3626
  if (Array.isArray(G))
3628
- return G.length > 0 && typeof G[0] == "string" ? W(G) : B(G);
3627
+ return G.length > 0 && typeof G[0] == "string" ? q(G) : B(G);
3629
3628
  }
3630
- }, [M, S == null ? void 0 : S.fileList, m, W, B]), K = O ?? q, R = h(
3629
+ }, [O, S == null ? void 0 : S.fileList, m, q, B]), j = $ ?? z, R = h(
3631
3630
  () => Ue(A, S ?? void 0, {
3632
3631
  skipKeys: ["value", "help", "validateStatus", "fileList", "listDisplayText"]
3633
3632
  }),
3634
3633
  [A, S]
3635
- ), P = j((G) => G.size / 1024 / 1024 < f ? !0 : (Mt.error(`文件大小不能超过 ${f}MB`), !1), [f]), Q = j(async (G) => {
3634
+ ), P = K((G) => G.size / 1024 / 1024 < f ? !0 : (Mt.error(`文件大小不能超过 ${f}MB`), !1), [f]), Q = K(async (G) => {
3636
3635
  const { file: Z, onSuccess: Se, onError: V, onProgress: le } = G;
3637
3636
  if (He().upload)
3638
3637
  try {
3639
3638
  le == null || le({ percent: 30 });
3640
- const F = await or(Z, {
3639
+ const F = await ar(Z, {
3641
3640
  url: p,
3642
3641
  headers: {
3643
3642
  Authorization: cn() ? `Bearer ${cn()}` : ""
@@ -3651,14 +3650,14 @@ const Vc = ({
3651
3650
  }
3652
3651
  else
3653
3652
  V == null || V(new Error("Upload handler not configured")), Mt.warning("上传功能未配置");
3654
- }, [p, l]), Y = j(
3653
+ }, [p, l]), Y = K(
3655
3654
  (G) => {
3656
3655
  if (v) {
3657
3656
  v(G);
3658
3657
  return;
3659
3658
  }
3660
3659
  const Z = Array.isArray(G.fileList) ? B(G.fileList) : G.fileList, Se = Array.isArray(Z) ? L(Z) : [], V = Array.isArray(Z) && Z.some((ge) => (ge == null ? void 0 : ge.status) === "uploading");
3661
- k && w && (Se.length > 0 || !Array.isArray(Z) || Z.length === 0) ? (E(k, w, Se), z(null)) : V ? z(Z) : Z.length === 0 && z(null), d && _(Z), o && D && x(
3660
+ k && w && (Se.length > 0 || !Array.isArray(Z) || Z.length === 0) ? (E(k, w, Se), W(null)) : V ? W(Z) : Z.length === 0 && W(null), d && _(Z), o && D && x(
3662
3661
  D,
3663
3662
  X(o, {
3664
3663
  file: G.file,
@@ -3680,15 +3679,15 @@ const Vc = ({
3680
3679
  B,
3681
3680
  L
3682
3681
  ]
3683
- ), U = j(() => {
3684
- u && _(K);
3685
- }, [u, _, K]), I = j((G) => {
3682
+ ), U = K(() => {
3683
+ u && _(j);
3684
+ }, [u, _, j]), I = K((G) => {
3686
3685
  var ge;
3687
3686
  const Z = G.url || G.thumbUrl;
3688
3687
  if (!Z) return "";
3689
3688
  const Se = ((ge = G.response) == null ? void 0 : ge.src) ?? (typeof Z == "string" ? Z : ""), V = He().viewRes, le = Se && V ? V(Se) : Z;
3690
3689
  return String(le).replace(/([?&])download=1(&|$)/, (F, H, oe) => oe ? H : "");
3691
- }, []), ne = j((G) => {
3690
+ }, []), ne = K((G) => {
3692
3691
  var V, le;
3693
3692
  const Z = ((V = G.response) == null ? void 0 : V.src) ?? G.name ?? "", Se = ((le = String(Z).split(".").pop()) == null ? void 0 : le.toLowerCase()) || "";
3694
3693
  return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(Se) || /^data:image\//.test(I(G));
@@ -3698,23 +3697,23 @@ const Vc = ({
3698
3697
  urls: [],
3699
3698
  current: 0,
3700
3699
  open: !1
3701
- }), De = j((G) => {
3700
+ }), De = K((G) => {
3702
3701
  const Z = I(G);
3703
3702
  if (Z)
3704
- if (ne(G) && (K != null && K.length)) {
3705
- const Se = K.filter((ge) => ne(ge)), V = Se.map((ge) => I(ge)).filter(Boolean), le = Se.findIndex((ge) => (ge.uid || ge.url) === (G.uid || G.url));
3703
+ if (ne(G) && (j != null && j.length)) {
3704
+ const Se = j.filter((ge) => ne(ge)), V = Se.map((ge) => I(ge)).filter(Boolean), le = Se.findIndex((ge) => (ge.uid || ge.url) === (G.uid || G.url));
3706
3705
  me({ url: Z, name: G.name, urls: V, current: le >= 0 ? le : 0, open: !0 });
3707
3706
  } else ne(G) || window.open(Z, "_blank");
3708
- }, [I, ne, K]), se = !!He().upload && !s, te = R, ye = te.buttonText ?? a, ie = te.listType ?? A.listType, Ne = String((S == null ? void 0 : S.listDisplayText) ?? y ?? "").trim(), je = h(() => {
3707
+ }, [I, ne, j]), se = !!He().upload && !s, te = R, ye = te.buttonText ?? a, ie = te.listType ?? A.listType, Ne = String((S == null ? void 0 : S.listDisplayText) ?? y ?? "").trim(), je = h(() => {
3709
3708
  const G = te.showUploadList;
3710
- return ie !== "text" || G === !1 || !Ne || !(K != null && K.length) ? K : K.map((Z) => ({ ...Z, name: Ne }));
3711
- }, [K, ie, te.showUploadList, Ne]), we = te.maxCount, ae = (K == null ? void 0 : K.length) ?? 0, he = typeof we == "number" && ae >= we, fe = j(
3709
+ return ie !== "text" || G === !1 || !Ne || !(j != null && j.length) ? j : j.map((Z) => ({ ...Z, name: Ne }));
3710
+ }, [j, ie, te.showUploadList, Ne]), we = te.maxCount, ae = (j == null ? void 0 : j.length) ?? 0, he = typeof we == "number" && ae >= we, fe = K(
3712
3711
  (G) => he ? (Mt.warning(`最多只能上传 ${we} 个文件`), !1) : P(G),
3713
3712
  [he, we, P]
3714
3713
  );
3715
3714
  return /* @__PURE__ */ ue("div", { onBlur: U, children: [
3716
3715
  /* @__PURE__ */ b(
3717
- _r,
3716
+ Er,
3718
3717
  {
3719
3718
  ...R,
3720
3719
  disabled: n ? !1 : R.disabled,
@@ -3726,12 +3725,12 @@ const Vc = ({
3726
3725
  action: se ? void 0 : s || p,
3727
3726
  openFileDialogOnClick: !n,
3728
3727
  children: !he && (g || (ie === "picture-card" || ie === "picture-circle" ? /* @__PURE__ */ ue("button", { style: { border: 0, background: "none" }, type: "button", children: [
3729
- /* @__PURE__ */ b(Qn, {}),
3728
+ /* @__PURE__ */ b(Zn, {}),
3730
3729
  /* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: ye })
3731
3730
  ] }) : /* @__PURE__ */ b(et, { icon: /* @__PURE__ */ b(li, {}), children: ye })))
3732
3731
  }
3733
3732
  ),
3734
- $ && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: $ }),
3733
+ M && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: M }),
3735
3734
  de.url && /* @__PURE__ */ b("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: de.urls.length > 1 ? /* @__PURE__ */ b(
3736
3735
  Xe.PreviewGroup,
3737
3736
  {
@@ -3789,13 +3788,13 @@ const Vc = ({
3789
3788
  [e, i]
3790
3789
  ), [T, w] = ve(m || []), [, D] = ve(!1), x = Ve.useRef(void 0), { get: E } = ho(), k = h(() => {
3791
3790
  if (C && r) return s(C, r);
3792
- }, [C, r, s]), S = h(() => k ?? d ?? v, [k, d, v]), M = j((L) => {
3791
+ }, [C, r, s]), S = h(() => k ?? d ?? v, [k, d, v]), O = K((L) => {
3793
3792
  if (!(p != null && p.queryApi)) {
3794
3793
  m && w(
3795
3794
  m.filter(
3796
- (W) => {
3797
- var B, O;
3798
- return ((B = W.value) == null ? void 0 : B.toString().toLowerCase().includes(L.toLowerCase())) || ((O = W.label) == null ? void 0 : O.toString().toLowerCase().includes(L.toLowerCase()));
3795
+ (q) => {
3796
+ var B, $;
3797
+ return ((B = q.value) == null ? void 0 : B.toString().toLowerCase().includes(L.toLowerCase())) || (($ = q.label) == null ? void 0 : $.toString().toLowerCase().includes(L.toLowerCase()));
3799
3798
  }
3800
3799
  )
3801
3800
  );
@@ -3805,21 +3804,21 @@ const Vc = ({
3805
3804
  if (p != null && p.queryApi) {
3806
3805
  D(!0);
3807
3806
  try {
3808
- const { queryApi: W, keyWordParamName: B = "keyword", valueKey: O = "value", labelKey: z = "label", fixedParams: q = [] } = p, K = {};
3809
- B && (K[B] = L), Array.isArray(q) && q.forEach((Y) => {
3810
- Y.key && (K[Y.key] = Y.value);
3807
+ const { queryApi: q, keyWordParamName: B = "keyword", valueKey: $ = "value", labelKey: W = "label", fixedParams: z = [] } = p, j = {};
3808
+ B && (j[B] = L), Array.isArray(z) && z.forEach((Y) => {
3809
+ Y.key && (j[Y.key] = Y.value);
3811
3810
  });
3812
- const R = await E(W, K);
3811
+ const R = await E(q, j);
3813
3812
  let P = [];
3814
3813
  Array.isArray(R) ? P = R : R && Array.isArray(R.data) ? P = R.data : R && R.data && Array.isArray(R.data.records) ? P = R.data.records : R && R.result && Array.isArray(R.result) && (P = R.result);
3815
3814
  const Q = P.map((Y) => ({
3816
- value: Y[O],
3817
- label: Y[z] || Y[O],
3815
+ value: Y[$],
3816
+ label: Y[W] || Y[$],
3818
3817
  ...Y
3819
3818
  }));
3820
3819
  w(Q);
3821
- } catch (W) {
3822
- console.error("Failed to fetch remote options:", W), w([]);
3820
+ } catch (q) {
3821
+ console.error("Failed to fetch remote options:", q), w([]);
3823
3822
  } finally {
3824
3823
  D(!1);
3825
3824
  }
@@ -3829,24 +3828,24 @@ const Vc = ({
3829
3828
  Ve.useEffect(() => {
3830
3829
  !(p != null && p.queryApi) && m && w(m);
3831
3830
  }, [m, p == null ? void 0 : p.queryApi]);
3832
- const _ = j((L) => {
3831
+ const _ = K((L) => {
3833
3832
  if (c) {
3834
3833
  c(L);
3835
3834
  return;
3836
3835
  }
3837
3836
  if (C && r && A(C, r, L), o && e) {
3838
- const { actionName: W, arg: B } = Ce(o, L, { id: t, dataSet: i, dataSetField: r });
3839
- y(e, X(W, B));
3837
+ const { actionName: q, arg: B } = Ce(o, L, { id: t, dataSet: i, dataSetField: r });
3838
+ y(e, X(q, B));
3840
3839
  }
3841
- }, [c, C, r, A, o, e, t, y]), $ = j((L, W) => {
3840
+ }, [c, C, r, A, o, e, t, y]), M = K((L, q) => {
3842
3841
  if (u) {
3843
- u(L, W);
3842
+ u(L, q);
3844
3843
  return;
3845
3844
  }
3846
- a && e && y(e, X(a, { value: L, option: W }));
3845
+ a && e && y(e, X(a, { value: L, option: q }));
3847
3846
  }, [u, a, e, y]);
3848
3847
  return /* @__PURE__ */ b(
3849
- Er,
3848
+ Or,
3850
3849
  {
3851
3850
  ...l,
3852
3851
  disabled: n ? !1 : l.disabled,
@@ -3854,8 +3853,8 @@ const Vc = ({
3854
3853
  options: T,
3855
3854
  value: S,
3856
3855
  onChange: _,
3857
- onSelect: $,
3858
- onSearch: M,
3856
+ onSelect: M,
3857
+ onSearch: O,
3859
3858
  style: { width: "100%", ...l.style }
3860
3859
  }
3861
3860
  );
@@ -3942,47 +3941,47 @@ const Vc = ({
3942
3941
  onScroll: E,
3943
3942
  styles: k,
3944
3943
  token: S,
3945
- ...M
3944
+ ...O
3946
3945
  }) => {
3947
- const _ = N((se) => se.addCommand), $ = N((se) => se.getDataSet), L = N((se) => se.setDataSet), W = h(
3946
+ const _ = N((se) => se.addCommand), M = N((se) => se.getDataSet), L = N((se) => se.setDataSet), q = h(
3948
3947
  () => ee(e, i),
3949
3948
  [e, i]
3950
- ), B = h(() => We(k, {}), [k]), O = h(() => We(S, {}), [S]), z = h(() => We(f, ["源列表", "目标列表"]), [f]), q = h(() => We(l, [">", "<"]), [l]), K = h(() => We(y, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [y]), R = h(() => We(g, !1), [g]), P = h(() => {
3951
- if (W && r) {
3952
- const se = $(W, r);
3949
+ ), B = h(() => We(k, {}), [k]), $ = h(() => We(S, {}), [S]), W = h(() => We(f, ["源列表", "目标列表"]), [f]), z = h(() => We(l, [">", "<"]), [l]), j = h(() => We(y, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [y]), R = h(() => We(g, !1), [g]), P = h(() => {
3950
+ if (q && r) {
3951
+ const se = M(q, r);
3953
3952
  if (Array.isArray(se)) return se;
3954
3953
  }
3955
- }, [W, r, $]), Q = h(() => {
3956
- if (W && r) {
3957
- const se = $(W, `${r}.dataSource`);
3954
+ }, [q, r, M]), Q = h(() => {
3955
+ if (q && r) {
3956
+ const se = M(q, `${r}.dataSource`);
3958
3957
  if (Array.isArray(se)) return se;
3959
3958
  }
3960
- }, [W, r, $]), Y = h(() => n ? Q ?? We(o, []) : W ? Q ?? [] : We(o, []), [n, W, Q, o]), U = h(() => n ? P ?? We(a, []) : W ? P ?? [] : We(a, []), [n, W, P, a]), I = h(() => We(c, []), [c]), ne = j((se, te, ye) => {
3959
+ }, [q, r, M]), Y = h(() => n ? Q ?? We(o, []) : q ? Q ?? [] : We(o, []), [n, q, Q, o]), U = h(() => n ? P ?? We(a, []) : q ? P ?? [] : We(a, []), [n, q, P, a]), I = h(() => We(c, []), [c]), ne = K((se, te, ye) => {
3961
3960
  if (w) {
3962
3961
  w(se, te, ye);
3963
3962
  return;
3964
3963
  }
3965
- W && r && L(W, r, se), s && e && _(e, X(s, { targetKeys: se, direction: te, moveKeys: ye }));
3966
- }, [w, W, r, L, s, e, _]), de = j((se, te) => {
3964
+ q && r && L(q, r, se), s && e && _(e, X(s, { targetKeys: se, direction: te, moveKeys: ye }));
3965
+ }, [w, q, r, L, s, e, _]), de = K((se, te) => {
3967
3966
  if (D) {
3968
3967
  D(se, te);
3969
3968
  return;
3970
3969
  }
3971
3970
  A && e && _(e, X(A, { sourceSelectedKeys: se, targetSelectedKeys: te }));
3972
- }, [D, A, e, _]), me = j((se, te) => {
3971
+ }, [D, A, e, _]), me = K((se, te) => {
3973
3972
  if (x) {
3974
3973
  x(se, te);
3975
3974
  return;
3976
3975
  }
3977
3976
  C && e && _(e, X(C, { direction: se, value: te }));
3978
- }, [x, C, e, _]), De = j((se, te) => {
3977
+ }, [x, C, e, _]), De = K((se, te) => {
3979
3978
  if (E) {
3980
3979
  E(se, te);
3981
3980
  return;
3982
3981
  }
3983
3982
  T && e && _(e, X(T, { direction: se }));
3984
3983
  }, [E, T, e, _]), re = /* @__PURE__ */ b(
3985
- Or,
3984
+ Mr,
3986
3985
  {
3987
3986
  dataSource: Y,
3988
3987
  targetKeys: U,
@@ -3993,19 +3992,19 @@ const Vc = ({
3993
3992
  oneWay: m,
3994
3993
  pagination: R,
3995
3994
  status: p || void 0,
3996
- titles: z,
3997
- actions: q,
3998
- locale: K,
3995
+ titles: W,
3996
+ actions: z,
3997
+ locale: j,
3999
3998
  onChange: ne,
4000
3999
  onSelectChange: de,
4001
4000
  onSearch: me,
4002
4001
  onScroll: De,
4003
4002
  styles: B,
4004
4003
  render: (se) => se.title,
4005
- ...M
4004
+ ...O
4006
4005
  }
4007
4006
  );
4008
- return O && Object.keys(O).length > 0 ? /* @__PURE__ */ b(Ke, { theme: { components: { Transfer: O } }, children: re }) : re;
4007
+ return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Ke, { theme: { components: { Transfer: $ } }, children: re }) : re;
4009
4008
  }, sn = (t, e) => {
4010
4009
  if (t == null) return e;
4011
4010
  if (typeof t == "string")
@@ -4048,23 +4047,23 @@ const Vc = ({
4048
4047
  token: y,
4049
4048
  ...s
4050
4049
  }) => {
4051
- const A = N(($) => $.addCommand), C = N(($) => $.getDataSet), T = N(($) => $.setDataSet), w = h(
4050
+ const A = N((M) => M.addCommand), C = N((M) => M.getDataSet), T = N((M) => M.setDataSet), w = h(
4052
4051
  () => ee(e, i),
4053
4052
  [e, i]
4054
4053
  ), D = h(() => sn(l, {}), [l]), x = h(() => sn(y, {}), [y]), E = h(() => ea(o), [o]), S = h(() => {
4055
4054
  if (w && r) {
4056
- const $ = C(w, r);
4057
- if (typeof $ == "string") return $;
4055
+ const M = C(w, r);
4056
+ if (typeof M == "string") return M;
4058
4057
  }
4059
- }, [w, r, C]) ?? a, M = j(($) => {
4060
- const L = String($);
4058
+ }, [w, r, C]) ?? a, O = K((M) => {
4059
+ const L = String(M);
4061
4060
  if (f) {
4062
4061
  f(L);
4063
4062
  return;
4064
4063
  }
4065
4064
  w && r && T(w, r, L), p && e && A(e, X(p, { value: L }));
4066
4065
  }, [f, w, r, T, p, e, A]), _ = /* @__PURE__ */ b(
4067
- Mr,
4066
+ $r,
4068
4067
  {
4069
4068
  ...s,
4070
4069
  options: E,
@@ -4075,14 +4074,14 @@ const Vc = ({
4075
4074
  size: v,
4076
4075
  vertical: m,
4077
4076
  shape: g,
4078
- onChange: M,
4077
+ onChange: O,
4079
4078
  styles: D
4080
4079
  }
4081
4080
  );
4082
4081
  return x && Object.keys(x).length > 0 ? /* @__PURE__ */ b(Ke, { theme: { components: { Segmented: x } }, children: _ }) : _;
4083
4082
  }, ta = (t, e, n) => {
4084
4083
  const [i, r] = ve(void 0), o = e === "100%", a = Me(0);
4085
- return Gn(() => {
4084
+ return Qn(() => {
4086
4085
  if (!o || !t.current) {
4087
4086
  r(void 0);
4088
4087
  return;
@@ -4352,19 +4351,19 @@ const Jt = 420, Rn = 440, ya = ({
4352
4351
  xe(() => {
4353
4352
  t && (p(n), l([...i]), s(a), C(u));
4354
4353
  }, [t, n, i, a, u]);
4355
- const D = j(
4354
+ const D = K(
4356
4355
  (R) => {
4357
4356
  queueMicrotask(() => v(R));
4358
4357
  },
4359
4358
  [v]
4360
- ), x = j(
4359
+ ), x = K(
4361
4360
  (R, P, Q, Y) => $n(R, P, Q ?? y, Y ?? A),
4362
4361
  [y, A]
4363
- ), E = j(() => {
4362
+ ), E = K(() => {
4364
4363
  p(r);
4365
4364
  const R = o.map((P) => ({ ...P }));
4366
4365
  l(R), s(c), C(d), D($n(r, R, c, d));
4367
- }, [r, o, c, d, D]), k = j(
4366
+ }, [r, o, c, d, D]), k = K(
4368
4367
  (R) => {
4369
4368
  l((P) => {
4370
4369
  const Q = P.map((Y) => Y.key === R ? { ...Y, visible: !Y.visible } : Y);
@@ -4372,7 +4371,7 @@ const Jt = 420, Rn = 440, ya = ({
4372
4371
  });
4373
4372
  },
4374
4373
  [g, x, D]
4375
- ), S = j(
4374
+ ), S = K(
4376
4375
  (R, P) => {
4377
4376
  l((Q) => {
4378
4377
  const Y = Q.map((U) => U.key === R ? { ...U, fixed: P } : U);
@@ -4380,7 +4379,7 @@ const Jt = 420, Rn = 440, ya = ({
4380
4379
  });
4381
4380
  },
4382
4381
  [g, x, D]
4383
- ), M = j(
4382
+ ), O = K(
4384
4383
  (R, P) => {
4385
4384
  l((Q) => {
4386
4385
  const Y = Q.map((U) => U.key === R ? { ...U, width: P } : U);
@@ -4388,7 +4387,7 @@ const Jt = 420, Rn = 440, ya = ({
4388
4387
  });
4389
4388
  },
4390
4389
  [g, x, D]
4391
- ), _ = j(
4390
+ ), _ = K(
4392
4391
  (R, P) => {
4393
4392
  l((Q) => {
4394
4393
  const Y = Q.find((de) => de.key === R);
@@ -4398,38 +4397,38 @@ const Jt = 420, Rn = 440, ya = ({
4398
4397
  });
4399
4398
  },
4400
4399
  [g, x, D]
4401
- ), $ = j(
4400
+ ), M = K(
4402
4401
  (R, P) => {
4403
4402
  if (P < 0 || P >= f.length) return;
4404
4403
  const Q = [...f], [Y] = Q.splice(R, 1);
4405
4404
  Q.splice(P, 0, Y), l(Q), D(x(g, Q));
4406
4405
  },
4407
4406
  [f, g, x, D]
4408
- ), L = j(
4407
+ ), L = K(
4409
4408
  (R) => {
4410
4409
  p(R), D(x(R, f));
4411
4410
  },
4412
4411
  [f, x, D]
4413
- ), W = j(
4412
+ ), q = K(
4414
4413
  (R) => {
4415
4414
  s(R), D(x(g, f, R, A));
4416
4415
  },
4417
4416
  [g, f, A, x, D]
4418
- ), B = j(
4417
+ ), B = K(
4419
4418
  (R) => {
4420
4419
  C(R), D(x(g, f, y, R));
4421
4420
  },
4422
4421
  [g, f, y, x, D]
4423
- ), O = (R) => (P) => {
4422
+ ), $ = (R) => (P) => {
4424
4423
  w(R), P.dataTransfer.effectAllowed = "move", P.dataTransfer.setData("text/plain", String(R));
4425
- }, z = (R) => (P) => {
4426
- P.preventDefault(), P.dataTransfer.dropEffect = "move", !(T === null || T === R) && ($(T, R), w(R));
4427
- }, q = () => w(null), K = e != null ? (() => {
4424
+ }, W = (R) => (P) => {
4425
+ P.preventDefault(), P.dataTransfer.dropEffect = "move", !(T === null || T === R) && (M(T, R), w(R));
4426
+ }, z = () => w(null), j = e != null ? (() => {
4428
4427
  let R = e.y, P = e.x;
4429
4428
  return typeof window < "u" && (P + Jt > window.innerWidth && (P = window.innerWidth - Jt - 16), P < 16 && (P = 16), R + Rn > window.innerHeight && (R = Math.max(16, window.innerHeight - Rn - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: P };
4430
4429
  })() : void 0;
4431
4430
  return /* @__PURE__ */ b(
4432
- Wn,
4431
+ Hn,
4433
4432
  {
4434
4433
  title: "列设置",
4435
4434
  open: t,
@@ -4438,7 +4437,7 @@ const Jt = 420, Rn = 440, ya = ({
4438
4437
  width: Jt,
4439
4438
  destroyOnHidden: !0,
4440
4439
  centered: e == null,
4441
- style: K,
4440
+ style: j,
4442
4441
  mask: !1,
4443
4442
  className: `and-table-column-setting-modal${e != null ? " and-table-column-setting-modal-positioned" : ""}`,
4444
4443
  children: /* @__PURE__ */ ue("div", { className: "and-table-column-setting-body", children: [
@@ -4451,11 +4450,11 @@ const Jt = 420, Rn = 440, ya = ({
4451
4450
  children: "序号列"
4452
4451
  }
4453
4452
  ),
4454
- /* @__PURE__ */ b(ht, { checked: y, onChange: (R) => W(R.target.checked), children: "自动滚动" }),
4453
+ /* @__PURE__ */ b(ht, { checked: y, onChange: (R) => q(R.target.checked), children: "自动滚动" }),
4455
4454
  /* @__PURE__ */ ue(Qe, { align: "center", children: [
4456
4455
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
4457
4456
  /* @__PURE__ */ b(
4458
- Vn,
4457
+ qn,
4459
4458
  {
4460
4459
  size: "small",
4461
4460
  value: A,
@@ -4480,9 +4479,9 @@ const Jt = 420, Rn = 440, ya = ({
4480
4479
  {
4481
4480
  className: `and-table-column-setting-row ${T === P ? "and-table-column-setting-row-dragging" : ""}`,
4482
4481
  draggable: !0,
4483
- onDragStart: O(P),
4484
- onDragOver: z(P),
4485
- onDragEnd: q,
4482
+ onDragStart: $(P),
4483
+ onDragOver: W(P),
4484
+ onDragEnd: z,
4486
4485
  children: [
4487
4486
  /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(ui, {}) }) }),
4488
4487
  /* @__PURE__ */ ue("td", { className: "and-table-column-setting-td-name", children: [
@@ -4500,7 +4499,7 @@ const Jt = 420, Rn = 440, ya = ({
4500
4499
  }
4501
4500
  ),
4502
4501
  /* @__PURE__ */ b(
4503
- Ln,
4502
+ Vn,
4504
4503
  {
4505
4504
  size: "small",
4506
4505
  min: Ft,
@@ -4510,7 +4509,7 @@ const Jt = 420, Rn = 440, ya = ({
4510
4509
  controls: !1,
4511
4510
  style: { width: 44 },
4512
4511
  onChange: (U) => {
4513
- U == null || typeof U == "string" && U === "" ? M(R.key, "auto") : M(R.key, Math.max(Ft, Number(U)));
4512
+ U == null || typeof U == "string" && U === "" ? O(R.key, "auto") : O(R.key, Math.max(Ft, Number(U)));
4514
4513
  }
4515
4514
  }
4516
4515
  ),
@@ -4520,7 +4519,7 @@ const Jt = 420, Rn = 440, ya = ({
4520
4519
  className: "and-table-column-setting-fix-btn",
4521
4520
  onClick: () => _(R.key, vt),
4522
4521
  title: `加 ${vt}px`,
4523
- children: /* @__PURE__ */ b(Qn, {})
4522
+ children: /* @__PURE__ */ b(Zn, {})
4524
4523
  }
4525
4524
  )
4526
4525
  ] }) }),
@@ -4531,7 +4530,7 @@ const Jt = 420, Rn = 440, ya = ({
4531
4530
  className: `and-table-column-setting-fix-btn ${R.fixed === "left" ? "active" : ""}`,
4532
4531
  onClick: () => S(R.key, R.fixed === "left" ? !1 : "left"),
4533
4532
  title: "固定到左侧",
4534
- children: /* @__PURE__ */ b(Zn, {})
4533
+ children: /* @__PURE__ */ b(Xn, {})
4535
4534
  }
4536
4535
  ),
4537
4536
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
@@ -4541,7 +4540,7 @@ const Jt = 420, Rn = 440, ya = ({
4541
4540
  className: `and-table-column-setting-fix-btn ${R.fixed === "right" ? "active" : ""}`,
4542
4541
  onClick: () => S(R.key, R.fixed === "right" ? !1 : "right"),
4543
4542
  title: "固定到右侧",
4544
- children: /* @__PURE__ */ b(Xn, {})
4543
+ children: /* @__PURE__ */ b(In, {})
4545
4544
  }
4546
4545
  )
4547
4546
  ] }) })
@@ -4602,16 +4601,16 @@ const Jt = 420, Rn = 440, ya = ({
4602
4601
  autoFillHeight: E,
4603
4602
  showTitle: k,
4604
4603
  showSummary: S,
4605
- showFooter: M,
4604
+ showFooter: O,
4606
4605
  renderTitle: _,
4607
- renderSummary: $,
4606
+ renderSummary: M,
4608
4607
  renderFooter: L,
4609
- children: W,
4608
+ children: q,
4610
4609
  token: B,
4611
- columnSettingOpenKey: O,
4612
- columnSettingsKey: z,
4613
- ...q
4614
- } = r, K = N((J) => J.addCommand), R = N((J) => J.getDataSet), P = N((J) => J.setDataSet), [Q, Y] = ve([]), U = Me(null), [I, ne] = ve(void 0), de = j((J, ce) => {
4610
+ columnSettingOpenKey: $,
4611
+ columnSettingsKey: W,
4612
+ ...z
4613
+ } = r, j = N((J) => J.addCommand), R = N((J) => J.getDataSet), P = N((J) => J.setDataSet), [Q, Y] = ve([]), U = Me(null), [I, ne] = ve(void 0), de = K((J, ce) => {
4615
4614
  if (J == null) return ce;
4616
4615
  if (typeof J == "string")
4617
4616
  try {
@@ -4629,7 +4628,7 @@ const Jt = 420, Rn = 440, ya = ({
4629
4628
  columnSettings: a && n ? ee(n, `${a}_columnSettings`) : void 0
4630
4629
  }),
4631
4630
  [n, a]
4632
- ), { style: se, className: te, ...ye } = q, ie = h(() => {
4631
+ ), { style: se, className: te, ...ye } = z, ie = h(() => {
4633
4632
  if (x) return x;
4634
4633
  let J = ye["scroll-x"], ce = ye["scroll-y"];
4635
4634
  if (String(J) === "true" ? J = !0 : String(J) === "false" || J === "__unset__" ? J = void 0 : J === "max-content" && (J = "max-content"), (ce === "" || ce === null || ce === void 0) && (ce = void 0), J !== void 0 || ce !== void 0) return { x: J, y: ce };
@@ -4639,7 +4638,7 @@ const Jt = 420, Rn = 440, ya = ({
4639
4638
  return re.columnSettingOpen ? ((ce = J.dataSets[re.columnSettingOpen]) == null ? void 0 : ce.value) === !0 : !1;
4640
4639
  }
4641
4640
  ), je = 420;
4642
- Gn(() => {
4641
+ Qn(() => {
4643
4642
  if (!Ne || !U.current) return;
4644
4643
  const J = U.current.querySelector(".ant-table-thead") || U.current.querySelector(".ant-table-header");
4645
4644
  if (!J) return;
@@ -4660,7 +4659,7 @@ const Jt = 420, Rn = 440, ya = ({
4660
4659
  (J) => re.pagination ? J.dataSets[re.pagination] : void 0
4661
4660
  ), V = h(() => re.pagination ? R(re.pagination, "") || {} : {}, [re.pagination, R, Se]), le = h(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ge = ta(U, ie == null ? void 0 : ie.y, le), F = h(() => {
4662
4661
  if (!le) return !1;
4663
- const J = typeof A == "object" ? A : {}, ce = q || {}, Oe = J.showSizeChanger ?? ce["pagination-showSizeChanger"] ?? !0, Te = J.showQuickJumper ?? ce["pagination-showQuickJumper"] ?? !1, _e = J.simple ?? ce["pagination-simple"] ?? !1, ze = J.defaultPageSize ?? ce["pagination-defaultPageSize"] ?? 10, Ye = J.pageSizeOptions ?? ce["pagination-pageSizeOptions"] ?? "10,20,50,100", Ht = typeof Ye == "string" ? Ye.split(",").map((rt) => parseInt(String(rt).trim(), 10) || 10).filter((rt) => !isNaN(rt)) : Array.isArray(Ye) ? Ye : [10, 20, 50, 100];
4662
+ const J = typeof A == "object" ? A : {}, ce = z || {}, Oe = J.showSizeChanger ?? ce["pagination-showSizeChanger"] ?? !0, Te = J.showQuickJumper ?? ce["pagination-showQuickJumper"] ?? !1, _e = J.simple ?? ce["pagination-simple"] ?? !1, ze = J.defaultPageSize ?? ce["pagination-defaultPageSize"] ?? 10, Ye = J.pageSizeOptions ?? ce["pagination-pageSizeOptions"] ?? "10,20,50,100", Ht = typeof Ye == "string" ? Ye.split(",").map((rt) => parseInt(String(rt).trim(), 10) || 10).filter((rt) => !isNaN(rt)) : Array.isArray(Ye) ? Ye : [10, 20, 50, 100];
4664
4663
  return {
4665
4664
  ...V,
4666
4665
  showSizeChanger: Oe,
@@ -4670,17 +4669,17 @@ const Jt = 420, Rn = 440, ya = ({
4670
4669
  pageSizeOptions: Ht,
4671
4670
  showTotal: (rt, ut) => (J.showTotal || "共 ${total} 条").replace("${total}", String(rt)).replace("${range[0]}", String(ut[0])).replace("${range[1]}", String(ut[1])).replace("${range}", `${ut[0]}-${ut[1]}`),
4672
4671
  onChange: (rt, ut) => {
4673
- re.pagination && P(re.pagination, "", { ...V, current: rt, pageSize: ut }), s && n && K(n, X(s, null));
4672
+ re.pagination && P(re.pagination, "", { ...V, current: rt, pageSize: ut }), s && n && j(n, X(s, null));
4674
4673
  },
4675
4674
  hideOnSinglePage: !1
4676
4675
  };
4677
- }, [le, A, q, V, re.pagination, P, s, n, K]), H = j((J, ce) => {
4678
- n && K(n, X(J.action, { ...ce }));
4679
- }, [n, K]), oe = j(
4676
+ }, [le, A, z, V, re.pagination, P, s, n, j]), H = K((J, ce) => {
4677
+ n && j(n, X(J.action, { ...ce }));
4678
+ }, [n, j]), oe = K(
4680
4679
  (J, ce) => {
4681
- n && J && K(n, X(J, ce));
4680
+ n && J && j(n, X(J, ce));
4682
4681
  },
4683
- [n, K]
4682
+ [n, j]
4684
4683
  ), pe = h(() => me.map((J) => {
4685
4684
  let ce = !1;
4686
4685
  J.fixed === !0 || J.fixed === "left" ? ce = "left" : J.fixed === "right" && (ce = "right");
@@ -4697,7 +4696,7 @@ const Jt = 420, Rn = 440, ya = ({
4697
4696
  pe,
4698
4697
  Ae,
4699
4698
  Ze
4700
- ), [we, pe, Ae, Ze]), lt = !!(a && n), dr = h(() => {
4699
+ ), [we, pe, Ae, Ze]), lt = !!(a && n), mr = h(() => {
4701
4700
  if (st !== void 0) return st;
4702
4701
  const J = ie == null ? void 0 : ie.x;
4703
4702
  return J === !0 || typeof J == "number" && Number.isFinite(J) && J > 0 ? !0 : J === "max-content" ? !1 : ke;
@@ -4732,7 +4731,7 @@ const Jt = 420, Rn = 440, ya = ({
4732
4731
  }), m !== !1 && De.length > 0 && J.push({
4733
4732
  title: "操作",
4734
4733
  key: "action",
4735
- render: (Te, _e) => /* @__PURE__ */ b(Qe, { children: De.map((ze, Ye) => /* @__PURE__ */ b($r, { title: ze.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => H(ze, _e), style: { marginRight: 5 }, children: ze.title }) }, Ye)) })
4734
+ render: (Te, _e) => /* @__PURE__ */ b(Qe, { children: De.map((ze, Ye) => /* @__PURE__ */ b(Ln, { title: ze.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => H(ze, _e), style: { marginRight: 5 }, children: ze.title }) }, Ye)) })
4736
4735
  }), J;
4737
4736
  }, [
4738
4737
  me,
@@ -4743,37 +4742,37 @@ const Jt = 420, Rn = 440, ya = ({
4743
4742
  V,
4744
4743
  H,
4745
4744
  oe
4746
- ]), mr = j(() => {
4745
+ ]), hr = K(() => {
4747
4746
  re.columnSettingOpen && P(re.columnSettingOpen, "", !1);
4748
- }, [re.columnSettingOpen, P]), hr = j(
4747
+ }, [re.columnSettingOpen, P]), yr = K(
4749
4748
  (J) => {
4750
4749
  re.columnSettings && P(re.columnSettings, "value", J);
4751
4750
  },
4752
4751
  [re.columnSettings, P]
4753
- ), yr = h(() => {
4752
+ ), gr = h(() => {
4754
4753
  if (!p && g)
4755
4754
  return {
4756
4755
  selectedRowKeys: Q,
4757
4756
  onChange: (J, ce, Oe) => {
4758
- Y(J), re.selected && P(re.selected, "", J), f != null && f.trim() && n && K(n, X(f.trim(), {
4757
+ Y(J), re.selected && P(re.selected, "", J), f != null && f.trim() && n && j(n, X(f.trim(), {
4759
4758
  selectedRowKeys: J,
4760
4759
  selectedRows: ce,
4761
4760
  info: Oe
4762
4761
  }));
4763
4762
  }
4764
4763
  };
4765
- }, [g, p, Q, re.selected, P, f, n, K]), yn = j((J) => {
4764
+ }, [g, p, Q, re.selected, P, f, n, j]), yn = K((J) => {
4766
4765
  if (!p) return;
4767
4766
  const Oe = [J[l]];
4768
- Y(Oe), re.selected && P(re.selected, "", Oe), f != null && f.trim() && n && K(n, X(f.trim(), { record: J, selectedRowKeys: Oe }));
4769
- }, [p, f, n, l, re.selected, P, K]), gr = j((J) => p && Q.includes(J[l]) ? "ant-table-row-selected" : "", [p, l, Q]), pr = j((J) => p ? { onClick: () => yn(J), style: { cursor: "pointer" } } : {}, [p, yn]), vr = h(() => {
4767
+ Y(Oe), re.selected && P(re.selected, "", Oe), f != null && f.trim() && n && j(n, X(f.trim(), { record: J, selectedRowKeys: Oe }));
4768
+ }, [p, f, n, l, re.selected, P, j]), pr = K((J) => p && Q.includes(J[l]) ? "ant-table-row-selected" : "", [p, l, Q]), vr = K((J) => p ? { onClick: () => yn(J), style: { cursor: "pointer" } } : {}, [p, yn]), br = h(() => {
4770
4769
  if (!ie && !lt) return;
4771
4770
  const J = hn, ce = (ie == null ? void 0 : ie.y) === "100%" ? ge : ie == null ? void 0 : ie.y;
4772
4771
  return J !== void 0 || ce !== void 0 ? { x: J, y: ce } : ie ? ie.y === "100%" ? { x: ie.x, y: ge } : ie : void 0;
4773
- }, [ie, ge, lt, hn]), { titleSlot: Et, summarySlot: Ot, footerSlot: gn, otherChildren: br } = h(() => {
4772
+ }, [ie, ge, lt, hn]), { titleSlot: Et, summarySlot: Ot, footerSlot: gn, otherChildren: Sr } = h(() => {
4774
4773
  let J = null, ce = null, Oe = null;
4775
4774
  const Te = [];
4776
- return Ve.Children.forEach(W, (_e) => {
4775
+ return Ve.Children.forEach(q, (_e) => {
4777
4776
  if (!Ve.isValidElement(_e)) {
4778
4777
  Te.push(_e);
4779
4778
  return;
@@ -4781,40 +4780,40 @@ const Jt = 420, Rn = 440, ya = ({
4781
4780
  const ze = _e.props["data-slot-type"];
4782
4781
  ze === "title" ? J = _e : ze === "summary" ? ce = _e : ze === "footer" ? Oe = _e : Te.push(_e);
4783
4782
  }), { titleSlot: J, summarySlot: ce, footerSlot: Oe, otherChildren: Te };
4784
- }, [W]), Sr = h(() => {
4783
+ }, [q]), wr = h(() => {
4785
4784
  if (!Et) {
4786
4785
  if (_) return _;
4787
4786
  if (k && o) return () => /* @__PURE__ */ b("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
4788
4787
  }
4789
- }, [k, Et, _, o]), wr = h(() => {
4790
- if ($) return $;
4788
+ }, [k, Et, _, o]), Dr = h(() => {
4789
+ if (M) return M;
4791
4790
  if (S && Ot)
4792
4791
  return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: _t.length, style: { padding: 0 }, children: Ot }) });
4793
4792
  if (S && o)
4794
4793
  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 } }) }) });
4795
- }, [S, Ot, $, _t.length, o]), pn = /* @__PURE__ */ b(
4794
+ }, [S, Ot, M, _t.length, o]), pn = /* @__PURE__ */ b(
4796
4795
  Rr,
4797
4796
  {
4798
4797
  ...ye,
4799
4798
  columns: _t,
4800
4799
  dataSource: he,
4801
4800
  rowKey: l,
4802
- rowSelection: yr,
4803
- rowClassName: gr,
4801
+ rowSelection: gr,
4802
+ rowClassName: pr,
4804
4803
  pagination: F,
4805
4804
  locale: { emptyText: C },
4806
4805
  bordered: T,
4807
4806
  size: lt ? mn : w,
4808
4807
  sticky: D,
4809
- scroll: vr,
4810
- title: Sr,
4811
- summary: wr,
4808
+ scroll: br,
4809
+ title: wr,
4810
+ summary: Dr,
4812
4811
  footer: void 0,
4813
- onRow: pr
4812
+ onRow: vr
4814
4813
  }
4815
4814
  );
4816
4815
  return /* @__PURE__ */ ue(
4817
- Hn,
4816
+ Un,
4818
4817
  {
4819
4818
  ref: U,
4820
4819
  vertical: !0,
@@ -4841,7 +4840,7 @@ const Jt = 420, Rn = 440, ya = ({
4841
4840
  ] }),
4842
4841
  Ot,
4843
4842
  gn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: gn }),
4844
- br,
4843
+ Sr,
4845
4844
  lt && /* @__PURE__ */ b(
4846
4845
  ya,
4847
4846
  {
@@ -4851,12 +4850,12 @@ const Jt = 420, Rn = 440, ya = ({
4851
4850
  columnItems: nt,
4852
4851
  defaultRowIndexVisible: Ae,
4853
4852
  defaultColumnItems: pe,
4854
- scrollX: dr,
4853
+ scrollX: mr,
4855
4854
  defaultScrollX: ke,
4856
4855
  size: mn,
4857
4856
  defaultSize: Ze,
4858
- onSave: hr,
4859
- onClose: mr
4857
+ onSave: yr,
4858
+ onClose: hr
4860
4859
  }
4861
4860
  )
4862
4861
  ]
@@ -4882,9 +4881,9 @@ const Jt = 420, Rn = 440, ya = ({
4882
4881
  clickAction: l,
4883
4882
  ...y
4884
4883
  }) => {
4885
- const s = N((K) => K.getDataSet), A = N((K) => {
4884
+ const s = N((j) => j.getDataSet), A = N((j) => {
4886
4885
  var R;
4887
- return !e || !t ? null : ((R = K.propsStore[`${e}_props`]) == null ? void 0 : R[t]) ?? null;
4886
+ return !e || !t ? null : ((R = j.propsStore[`${e}_props`]) == null ? void 0 : R[t]) ?? null;
4888
4887
  }), C = h(
4889
4888
  () => d === "selectedCount" && a && !o ? a : o,
4890
4889
  [d, a, o]
@@ -4894,10 +4893,10 @@ const Jt = 420, Rn = 440, ya = ({
4894
4893
  ), w = h(
4895
4894
  () => ee(e, C),
4896
4895
  [e, C]
4897
- ), D = N((K) => {
4896
+ ), D = N((j) => {
4898
4897
  if (!w) return;
4899
4898
  const R = gt(w).baseName;
4900
- return K.dataSets[R];
4899
+ return j.dataSets[R];
4901
4900
  }), { options: x } = Nt(d), E = h(() => {
4902
4901
  if (w && T)
4903
4902
  return s(w, T);
@@ -4910,45 +4909,45 @@ const Jt = 420, Rn = 440, ya = ({
4910
4909
  return {};
4911
4910
  }
4912
4911
  return m;
4913
- }, [m]), S = (K) => K == null || K === "" || typeof K == "string" && K.trim() === "", M = h(() => n ? i : E != null && E !== "" ? S(E) && g ? i : E : (A == null ? void 0 : A.content) !== void 0 ? A.content : i, [n, E, A == null ? void 0 : A.content, i, g]), _ = h(() => {
4914
- if (d && x.length > 0 && M !== void 0 && M !== null) {
4915
- const K = Ge(x, M);
4916
- return (K == null ? void 0 : K.label) ?? M;
4912
+ }, [m]), S = (j) => j == null || j === "" || typeof j == "string" && j.trim() === "", O = h(() => n ? i : E != null && E !== "" ? S(E) && g ? i : E : (A == null ? void 0 : A.content) !== void 0 ? A.content : i, [n, E, A == null ? void 0 : A.content, i, g]), _ = h(() => {
4913
+ if (d && x.length > 0 && O !== void 0 && O !== null) {
4914
+ const j = Ge(x, O);
4915
+ return (j == null ? void 0 : j.label) ?? O;
4917
4916
  }
4918
- return M;
4919
- }, [d, x, M]), $ = h(() => {
4917
+ return O;
4918
+ }, [d, x, O]), M = h(() => {
4920
4919
  if (n)
4921
4920
  return _;
4922
- const K = (A == null ? void 0 : A.formatType) || v;
4923
- return K && _ !== void 0 && _ !== null ? Bo(_, K, k) : _;
4921
+ const j = (A == null ? void 0 : A.formatType) || v;
4922
+ return j && _ !== void 0 && _ !== null ? Bo(_, j, k) : _;
4924
4923
  }, [n, _, v, k, A == null ? void 0 : A.formatType]), L = h(() => {
4925
- const K = { ...y };
4924
+ const j = { ...y };
4926
4925
  return A && typeof A == "object" && Object.keys(A).forEach((R) => {
4927
- !["content", "formatType", "formatValue", "clickAction"].includes(R) && A[R] !== void 0 && A[R] !== null && (K[R] = A[R]);
4928
- }), K;
4929
- }, [y, A]), W = (A == null ? void 0 : A.color) ?? u, B = Wt(W), O = h(() => {
4926
+ !["content", "formatType", "formatValue", "clickAction"].includes(R) && A[R] !== void 0 && A[R] !== null && (j[R] = A[R]);
4927
+ }), j;
4928
+ }, [y, A]), q = (A == null ? void 0 : A.color) ?? u, B = Wt(q), $ = h(() => {
4930
4929
  if (!f) return;
4931
- let K = f;
4930
+ let j = f;
4932
4931
  if (typeof f == "string")
4933
4932
  try {
4934
- K = JSON.parse(f);
4933
+ j = JSON.parse(f);
4935
4934
  } catch {
4936
4935
  return;
4937
4936
  }
4938
- if (!K || typeof K != "object") return;
4937
+ if (!j || typeof j != "object") return;
4939
4938
  const R = {};
4940
- return Object.entries(K).forEach(([P, Q]) => {
4939
+ return Object.entries(j).forEach(([P, Q]) => {
4941
4940
  Q !== "" && Q !== void 0 && Q !== null && (R[P] = Q);
4942
4941
  }), Object.keys(R).length > 0 ? R : void 0;
4943
- }, [f]), z = h(() => {
4944
- const K = { width: "100%" }, R = (A == null ? void 0 : A.fontSize) ?? c;
4942
+ }, [f]), W = h(() => {
4943
+ const j = { width: "100%" }, R = (A == null ? void 0 : A.fontSize) ?? c;
4945
4944
  if (R) {
4946
4945
  const P = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
4947
- K.fontSize = P;
4946
+ j.fontSize = P;
4948
4947
  }
4949
- return B && (K.color = B), K;
4950
- }, [c, B, A == null ? void 0 : A.fontSize]), q = /* @__PURE__ */ b(pa, { ...L, style: { ...z, ...p, ...L.style }, children: $ != null && $ !== "" ? String($) : r });
4951
- return O ? /* @__PURE__ */ b(Ke, { theme: { token: O }, children: q }) : q;
4948
+ return B && (j.color = B), j;
4949
+ }, [c, B, A == null ? void 0 : A.fontSize]), z = /* @__PURE__ */ b(pa, { ...L, style: { ...W, ...p, ...L.style }, children: M != null && M !== "" ? String(M) : r });
4950
+ return $ ? /* @__PURE__ */ b(Ke, { theme: { token: $ }, children: z }) : z;
4952
4951
  }, { Title: va } = un, os = ({
4953
4952
  id: t,
4954
4953
  sessionId: e,
@@ -5048,7 +5047,7 @@ const Jt = 420, Rn = 440, ya = ({
5048
5047
  return w;
5049
5048
  const k = T ?? d ?? v;
5050
5049
  return !k && C.length > 0 ? C[0].key : k;
5051
- }, [n, w, T, d, v, C]), E = j((k) => {
5050
+ }, [n, w, T, d, v, C]), E = K((k) => {
5052
5051
  if (n) {
5053
5052
  D(k);
5054
5053
  return;
@@ -5098,67 +5097,67 @@ const Jt = 420, Rn = 440, ya = ({
5098
5097
  onDrop: E,
5099
5098
  onRightClick: k,
5100
5099
  onLoad: S,
5101
- treeData: M,
5100
+ treeData: O,
5102
5101
  styles: _,
5103
- classNames: $,
5102
+ classNames: M,
5104
5103
  token: L,
5105
- ...W
5104
+ ...q
5106
5105
  }) => {
5107
- const B = N((V) => V.addCommand), O = N((V) => V.setDataSet), z = h(
5106
+ const B = N((V) => V.addCommand), $ = N((V) => V.setDataSet), W = h(
5108
5107
  () => ee(e, i),
5109
5108
  [e, i]
5110
- ), q = h(
5109
+ ), z = h(
5111
5110
  () => i ? ee(e, `${i}_selected`) : void 0,
5112
5111
  [e, i]
5113
- ), K = h(
5112
+ ), j = h(
5114
5113
  () => i ? ee(e, `${i}_checked`) : void 0,
5115
5114
  [e, i]
5116
5115
  ), R = h(
5117
5116
  () => i ? ee(e, `${i}_expanded`) : void 0,
5118
5117
  [e, i]
5119
5118
  ), P = N((V) => {
5120
- if (!z) return;
5119
+ if (!W) return;
5121
5120
  if (r)
5122
- return V.getDataSet(z, r);
5123
- const le = V.dataSets[z];
5121
+ return V.getDataSet(W, r);
5122
+ const le = V.dataSets[W];
5124
5123
  if (!le) return;
5125
5124
  if (Array.isArray(le)) return le;
5126
5125
  const ge = le.value;
5127
5126
  return Array.isArray(ge) ? ge : void 0;
5128
5127
  }), Q = N(
5129
- (V) => q ? V.getDataSet(q, "") : void 0
5128
+ (V) => z ? V.getDataSet(z, "") : void 0
5130
5129
  ), Y = N(
5131
- (V) => K ? V.getDataSet(K, "") : void 0
5130
+ (V) => j ? V.getDataSet(j, "") : void 0
5132
5131
  ), U = N(
5133
5132
  (V) => R ? V.getDataSet(R, "") : void 0
5134
- ), I = h(() => n ? P ?? M ?? [] : z ? P ?? [] : M ?? [], [n, z, P, M]), ne = Q, de = Y, me = U, De = j(
5133
+ ), I = h(() => n ? P ?? O ?? [] : W ? P ?? [] : O ?? [], [n, W, P, O]), ne = Q, de = Y, me = U, De = K(
5135
5134
  (V, le) => {
5136
5135
  if (y) {
5137
5136
  y(V, le);
5138
5137
  return;
5139
5138
  }
5140
- q && O(q, "", V), o && e && B(e, X(o, { selectedKeys: V }));
5139
+ z && $(z, "", V), o && e && B(e, X(o, { selectedKeys: V }));
5141
5140
  },
5142
- [y, q, e, O, o, B]
5143
- ), re = j(
5141
+ [y, z, e, $, o, B]
5142
+ ), re = K(
5144
5143
  (V, le) => {
5145
5144
  if (s) {
5146
5145
  s(V, le);
5147
5146
  return;
5148
5147
  }
5149
- K && O(K, "", V), a && e && B(e, X(a, { checkedKeys: V }));
5148
+ j && $(j, "", V), a && e && B(e, X(a, { checkedKeys: V }));
5150
5149
  },
5151
- [s, K, e, O, a, B]
5152
- ), se = j(
5150
+ [s, j, e, $, a, B]
5151
+ ), se = K(
5153
5152
  (V, le) => {
5154
5153
  if (A) {
5155
5154
  A(V, le);
5156
5155
  return;
5157
5156
  }
5158
- R && O(R, "", V), c && e && B(e, X(c, { expandedKeys: V, expanded: le.expanded }));
5157
+ R && $(R, "", V), c && e && B(e, X(c, { expandedKeys: V, expanded: le.expanded }));
5159
5158
  },
5160
- [A, R, e, O, c, B]
5161
- ), te = j(
5159
+ [A, R, e, $, c, B]
5160
+ ), te = K(
5162
5161
  (V) => {
5163
5162
  if (C) {
5164
5163
  C(V);
@@ -5167,7 +5166,7 @@ const Jt = 420, Rn = 440, ya = ({
5167
5166
  u && e && B(e, X(u, V));
5168
5167
  },
5169
5168
  [C, u, e, B]
5170
- ), ye = j(
5169
+ ), ye = K(
5171
5170
  (V) => {
5172
5171
  if (T) {
5173
5172
  T(V);
@@ -5176,7 +5175,7 @@ const Jt = 420, Rn = 440, ya = ({
5176
5175
  d && e && B(e, X(d, V));
5177
5176
  },
5178
5177
  [T, d, e, B]
5179
- ), ie = j(
5178
+ ), ie = K(
5180
5179
  (V) => {
5181
5180
  if (w) {
5182
5181
  w(V);
@@ -5185,7 +5184,7 @@ const Jt = 420, Rn = 440, ya = ({
5185
5184
  v && e && B(e, X(v, V));
5186
5185
  },
5187
5186
  [w, v, e, B]
5188
- ), Ne = j(
5187
+ ), Ne = K(
5189
5188
  (V) => {
5190
5189
  if (D) {
5191
5190
  D(V);
@@ -5194,7 +5193,7 @@ const Jt = 420, Rn = 440, ya = ({
5194
5193
  m && e && B(e, X(m, V));
5195
5194
  },
5196
5195
  [D, m, e, B]
5197
- ), je = j(
5196
+ ), je = K(
5198
5197
  (V) => {
5199
5198
  if (x) {
5200
5199
  x(V);
@@ -5203,7 +5202,7 @@ const Jt = 420, Rn = 440, ya = ({
5203
5202
  g && e && B(e, X(g, V));
5204
5203
  },
5205
5204
  [x, g, e, B]
5206
- ), we = j(
5205
+ ), we = K(
5207
5206
  (V) => {
5208
5207
  if (E) {
5209
5208
  E(V);
@@ -5212,7 +5211,7 @@ const Jt = 420, Rn = 440, ya = ({
5212
5211
  p && e && B(e, X(p, V));
5213
5212
  },
5214
5213
  [E, p, e, B]
5215
- ), ae = j(
5214
+ ), ae = K(
5216
5215
  (V) => {
5217
5216
  if (k) {
5218
5217
  k(V);
@@ -5221,7 +5220,7 @@ const Jt = 420, Rn = 440, ya = ({
5221
5220
  f && e && B(e, X(f, V));
5222
5221
  },
5223
5222
  [k, f, e, B]
5224
- ), he = j(
5223
+ ), he = K(
5225
5224
  (V, le) => {
5226
5225
  if (S) {
5227
5226
  S(V, le);
@@ -5242,11 +5241,11 @@ const Jt = 420, Rn = 440, ya = ({
5242
5241
  }, [n, fe]), Se = /* @__PURE__ */ b(
5243
5242
  Kr,
5244
5243
  {
5245
- ...W,
5244
+ ...q,
5246
5245
  ...n ? { motion: !1 } : {},
5247
5246
  treeData: I,
5248
- ...q != null ? { selectedKeys: ne ?? [] } : {},
5249
- ...K != null ? { checkedKeys: de ?? [] } : {},
5247
+ ...z != null ? { selectedKeys: ne ?? [] } : {},
5248
+ ...j != null ? { checkedKeys: de ?? [] } : {},
5250
5249
  ...R != null ? { expandedKeys: me ?? [] } : {},
5251
5250
  onSelect: De,
5252
5251
  onCheck: re,
@@ -5260,7 +5259,7 @@ const Jt = 420, Rn = 440, ya = ({
5260
5259
  onRightClick: ae,
5261
5260
  onLoad: he,
5262
5261
  styles: _,
5263
- classNames: $
5262
+ classNames: M
5264
5263
  }
5265
5264
  );
5266
5265
  return G ? /* @__PURE__ */ b(Ke, { theme: G, children: Se }) : Se;
@@ -5342,13 +5341,13 @@ const Jt = 420, Rn = 440, ya = ({
5342
5341
  [e, i]
5343
5342
  ), T = h(() => {
5344
5343
  if (C && r) return s(C, r);
5345
- }, [C, r, s]), w = h(() => T ?? c ?? 0, [T, c]), D = h(() => v ?? d, [v, d]), x = h(() => g ?? m, [g, m]), E = h(() => Gt(u, []), [u]), k = h(() => Gt(p, {}), [p]), S = h(() => Gt(f, {}), [f]), M = j((L) => {
5344
+ }, [C, r, s]), w = h(() => T ?? c ?? 0, [T, c]), D = h(() => v ?? d, [v, d]), x = h(() => g ?? m, [g, m]), E = h(() => Gt(u, []), [u]), k = h(() => Gt(p, {}), [p]), S = h(() => Gt(f, {}), [f]), O = K((L) => {
5346
5345
  if (a) {
5347
5346
  a(L);
5348
5347
  return;
5349
5348
  }
5350
5349
  C && r && A(C, r, L), o && e && y(e, X(o, L));
5351
- }, [a, C, r, A, o, e, y]), _ = Object.keys(S).length > 0, $ = /* @__PURE__ */ b(
5350
+ }, [a, C, r, A, o, e, y]), _ = Object.keys(S).length > 0, M = /* @__PURE__ */ b(
5352
5351
  zr,
5353
5352
  {
5354
5353
  ...l,
@@ -5357,10 +5356,10 @@ const Jt = 420, Rn = 440, ya = ({
5357
5356
  styles: k,
5358
5357
  orientation: D,
5359
5358
  titlePlacement: x,
5360
- onChange: M
5359
+ onChange: O
5361
5360
  }
5362
5361
  );
5363
- return _ ? /* @__PURE__ */ b(Ke, { theme: { components: { Steps: S } }, children: $ }) : $;
5362
+ return _ ? /* @__PURE__ */ b(Ke, { theme: { components: { Steps: S } }, children: M }) : M;
5364
5363
  }, fs = ({
5365
5364
  id: t,
5366
5365
  sessionId: e,
@@ -5413,7 +5412,7 @@ const Jt = 420, Rn = 440, ya = ({
5413
5412
  if (a) return a;
5414
5413
  if (o)
5415
5414
  return wa[o] || o;
5416
- }, [o, a]), s = h(() => Da(c), [c]), A = j((T) => {
5415
+ }, [o, a]), s = h(() => Da(c), [c]), A = K((T) => {
5417
5416
  if (d) {
5418
5417
  d(T);
5419
5418
  return;
@@ -5584,8 +5583,8 @@ const ys = ({
5584
5583
  "textFontSizeSM",
5585
5584
  "groupOverlapping"
5586
5585
  ].includes(k)) {
5587
- const M = typeof S == "string" ? parseInt(S, 10) : S;
5588
- isNaN(M) || (E[k] = M);
5586
+ const O = typeof S == "string" ? parseInt(S, 10) : S;
5587
+ isNaN(O) || (E[k] = O);
5589
5588
  } else
5590
5589
  E[k] = S;
5591
5590
  }), Object.keys(E).length > 0 ? E : void 0;
@@ -5642,32 +5641,32 @@ const ys = ({
5642
5641
  return d;
5643
5642
  }
5644
5643
  }, [d]), w = N(
5645
- (W) => {
5644
+ (q) => {
5646
5645
  var B;
5647
- return s && t ? ((B = W.propsStore[`${s}_props`]) == null ? void 0 : B[t]) ?? null : null;
5646
+ return s && t ? ((B = q.propsStore[`${s}_props`]) == null ? void 0 : B[t]) ?? null : null;
5648
5647
  }
5649
5648
  ), D = N(
5650
- (W) => A && y ? W.getDataSet(A, y) : void 0
5649
+ (q) => A && y ? q.getDataSet(A, y) : void 0
5651
5650
  ), x = h(() => n ? r : D != null && D !== "" ? String(D) : (w == null ? void 0 : w.content) !== void 0 ? w.content : r, [n, D, w == null ? void 0 : w.content, r]), E = h(() => {
5652
5651
  if (c && C.length > 0 && x !== void 0 && x !== null) {
5653
- const W = Ge(C, x);
5654
- return (W == null ? void 0 : W.label) ?? x;
5652
+ const q = Ge(C, x);
5653
+ return (q == null ? void 0 : q.label) ?? x;
5655
5654
  }
5656
5655
  return x;
5657
5656
  }, [c, C, x]), k = h(() => {
5658
5657
  if (!u || x === void 0 || x === null) return;
5659
- const W = String(x).toLowerCase();
5660
- return T && T[W] ? T[W] : Na[W];
5658
+ const q = String(x).toLowerCase();
5659
+ return T && T[q] ? T[q] : Na[q];
5661
5660
  }, [u, x, T]), S = h(() => {
5662
- const W = { ...p };
5661
+ const q = { ...p };
5663
5662
  return w && typeof w == "object" && Object.keys(w).forEach((B) => {
5664
- !["content", "color"].includes(B) && w[B] !== void 0 && w[B] !== null && (W[B] = w[B]);
5665
- }), W;
5666
- }, [p, w]), M = h(() => {
5667
- const { bordered: W, ...B } = S;
5663
+ !["content", "color"].includes(B) && w[B] !== void 0 && w[B] !== null && (q[B] = w[B]);
5664
+ }), q;
5665
+ }, [p, w]), O = h(() => {
5666
+ const { bordered: q, ...B } = S;
5668
5667
  return B;
5669
5668
  }, [S]), _ = (w == null ? void 0 : w.color) ?? v, L = Wt(_) || k;
5670
- return /* @__PURE__ */ b(Un, { ...M, color: L, children: E || i });
5669
+ return /* @__PURE__ */ b(Pn, { ...O, color: L, children: E || i });
5671
5670
  }, vs = ({
5672
5671
  id: t,
5673
5672
  sessionId: e,
@@ -5694,9 +5693,9 @@ const ys = ({
5694
5693
  }), T = C.current ?? d ?? 1, w = C.pageSize ?? v ?? 10, D = C.total ?? m ?? 0;
5695
5694
  xe(() => {
5696
5695
  if (!y || s === void 0) return;
5697
- const k = s ?? "", { getDataSet: S, setDataSet: M } = N.getState(), _ = S(y, k), $ = Number(v ?? g ?? 10), L = Number.isFinite($) && $ > 0 ? $ : 10;
5696
+ const k = s ?? "", { getDataSet: S, setDataSet: O } = N.getState(), _ = S(y, k), M = Number(v ?? g ?? 10), L = Number.isFinite(M) && M > 0 ? M : 10;
5698
5697
  if (_ == null || typeof _ != "object" || Array.isArray(_)) {
5699
- M(
5698
+ O(
5700
5699
  y,
5701
5700
  k,
5702
5701
  {
@@ -5708,8 +5707,8 @@ const ys = ({
5708
5707
  );
5709
5708
  return;
5710
5709
  }
5711
- const W = Number(_.pageSize);
5712
- Number.isFinite(W) && W > 0 || M(
5710
+ const q = Number(_.pageSize);
5711
+ Number.isFinite(q) && q > 0 || O(
5713
5712
  y,
5714
5713
  k,
5715
5714
  {
@@ -5728,13 +5727,13 @@ const ys = ({
5728
5727
  g,
5729
5728
  m
5730
5729
  ]);
5731
- const x = j((k, S) => {
5730
+ const x = K((k, S) => {
5732
5731
  if (c) {
5733
5732
  c(k, S);
5734
5733
  return;
5735
5734
  }
5736
5735
  y && l(y, s ?? "", { current: k, pageSize: S, total: D }), o && e && f(e, X(o, { page: k, pageSize: S }));
5737
- }, [c, y, s, l, D, o, e, f]), E = j((k, S) => {
5736
+ }, [c, y, s, l, D, o, e, f]), E = K((k, S) => {
5738
5737
  if (u) {
5739
5738
  u(k, S);
5740
5739
  return;
@@ -5742,7 +5741,7 @@ const ys = ({
5742
5741
  y && l(y, s ?? "", { current: k, pageSize: S, total: D }), a && e && f(e, X(a, { current: k, pageSize: S }));
5743
5742
  }, [u, y, s, l, D, a, e, f]);
5744
5743
  return /* @__PURE__ */ b(
5745
- Pn,
5744
+ Yn,
5746
5745
  {
5747
5746
  ...p,
5748
5747
  current: T,
@@ -5752,7 +5751,7 @@ const ys = ({
5752
5751
  onShowSizeChange: E,
5753
5752
  showTotal: h(() => {
5754
5753
  const k = p.showTotal;
5755
- return typeof k == "string" ? (S, M) => k.replace("${total}", String(S)).replace("${range[0]}", String(M[0])).replace("${range[1]}", String(M[1])).replace("${range}", `${M[0]}-${M[1]}`) : k;
5754
+ return typeof k == "string" ? (S, O) => k.replace("${total}", String(S)).replace("${range[0]}", String(O[0])).replace("${range[1]}", String(O[1])).replace("${range}", `${O[0]}-${O[1]}`) : k;
5756
5755
  }, [p.showTotal])
5757
5756
  }
5758
5757
  );
@@ -5769,22 +5768,22 @@ const ys = ({
5769
5768
  const D = () => {
5770
5769
  if (!o.current || !a.current) return;
5771
5770
  const E = o.current, k = a.current;
5772
- let S = 0, M = 0, _ = !1;
5773
- l ? (S = E.clientWidth, M = k.scrollWidth, _ = M > S) : (S = E.clientHeight, M = k.scrollHeight, _ = M > S), f(S), g(M), v(_), _ || u(0);
5771
+ let S = 0, O = 0, _ = !1;
5772
+ l ? (S = E.clientWidth, O = k.scrollWidth, _ = O > S) : (S = E.clientHeight, O = k.scrollHeight, _ = O > S), f(S), g(O), v(_), _ || u(0);
5774
5773
  }, x = new ResizeObserver(D);
5775
5774
  return o.current && x.observe(o.current), a.current && x.observe(a.current), D(), () => x.disconnect();
5776
5775
  }, [l]);
5777
- const y = c <= 0, s = !d || c >= m - p, A = j(() => {
5776
+ const y = c <= 0, s = !d || c >= m - p, A = K(() => {
5778
5777
  var x, E;
5779
5778
  if (y) return;
5780
5779
  const D = l ? ((x = o.current) == null ? void 0 : x.clientWidth) ?? 200 : ((E = o.current) == null ? void 0 : E.clientHeight) ?? 200;
5781
5780
  u((k) => Math.max(0, k - D));
5782
- }, [l, y]), C = j(() => {
5783
- var E, k, S, M, _, $;
5781
+ }, [l, y]), C = K(() => {
5782
+ var E, k, S, O, _, M;
5784
5783
  if (s) return;
5785
- const D = l ? ((E = o.current) == null ? void 0 : E.clientWidth) ?? 200 : ((k = o.current) == null ? void 0 : k.clientHeight) ?? 200, x = l ? (((S = a.current) == null ? void 0 : S.scrollWidth) ?? 0) - (((M = o.current) == null ? void 0 : M.clientWidth) ?? 0) : (((_ = a.current) == null ? void 0 : _.scrollHeight) ?? 0) - ((($ = o.current) == null ? void 0 : $.clientHeight) ?? 0);
5784
+ const D = l ? ((E = o.current) == null ? void 0 : E.clientWidth) ?? 200 : ((k = o.current) == null ? void 0 : k.clientHeight) ?? 200, x = l ? (((S = a.current) == null ? void 0 : S.scrollWidth) ?? 0) - (((O = o.current) == null ? void 0 : O.clientWidth) ?? 0) : (((_ = a.current) == null ? void 0 : _.scrollHeight) ?? 0) - (((M = o.current) == null ? void 0 : M.clientHeight) ?? 0);
5786
5785
  u((L) => Math.min(x, L + D));
5787
- }, [l, s]), T = n || (l ? /* @__PURE__ */ b(Zn, {}) : /* @__PURE__ */ b(di, {})), w = i || (l ? /* @__PURE__ */ b(Xn, {}) : /* @__PURE__ */ b(In, {}));
5786
+ }, [l, s]), T = n || (l ? /* @__PURE__ */ b(Xn, {}) : /* @__PURE__ */ b(di, {})), w = i || (l ? /* @__PURE__ */ b(In, {}) : /* @__PURE__ */ b(er, {}));
5788
5787
  return /* @__PURE__ */ ue(
5789
5788
  "div",
5790
5789
  {
@@ -5903,21 +5902,21 @@ const ys = ({
5903
5902
  mode: E,
5904
5903
  inlineCollapsed: k,
5905
5904
  remoteUrl: S,
5906
- overflowStrategy: M = "default",
5905
+ overflowStrategy: O = "default",
5907
5906
  paginationArrowStyle: _,
5908
- paginationArrowIconPrev: $,
5907
+ paginationArrowIconPrev: M,
5909
5908
  paginationArrowIconNext: L,
5910
- expandTrigger: W,
5909
+ expandTrigger: q,
5911
5910
  // 仅设计器/业务用,不传给 DOM,避免 React 警告
5912
5911
  ...B
5913
5912
  }) => {
5914
- const O = N((H) => H.addCommand), z = N((H) => H.setDataSet), q = h(
5913
+ const $ = N((H) => H.addCommand), W = N((H) => H.setDataSet), z = h(
5915
5914
  () => ee(e, i),
5916
5915
  [e, i]
5917
- ), K = N(
5916
+ ), j = N(
5918
5917
  (H) => {
5919
- if (q)
5920
- return r ? H.getDataSet(q, r) : H.dataSets[q];
5918
+ if (z)
5919
+ return r ? H.getDataSet(z, r) : H.dataSets[z];
5921
5920
  }
5922
5921
  // 使用 shallow 比较确保只有通过内容变更才触发更新
5923
5922
  // 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
@@ -5925,10 +5924,10 @@ const ys = ({
5925
5924
  // 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
5926
5925
  // 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
5927
5926
  // 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
5928
- ), R = h(() => ({}), []), P = K ?? R, Q = h(
5927
+ ), R = h(() => ({}), []), P = j ?? R, Q = h(
5929
5928
  () => (P == null ? void 0 : P.items) ?? (Array.isArray(P) ? P : void 0) ?? (Array.isArray(P == null ? void 0 : P.value) ? P.value : void 0),
5930
5929
  [P]
5931
- ), Y = h(() => n ? Q ?? p ?? [] : q ? Q ?? [] : p ?? [], [n, q, Q, p]), U = h(
5930
+ ), Y = h(() => n ? Q ?? p ?? [] : z ? Q ?? [] : p ?? [], [n, z, Q, p]), U = h(
5932
5931
  () => P.selectedKeys ?? f,
5933
5932
  [P.selectedKeys, f]
5934
5933
  ), I = h(
@@ -5956,80 +5955,80 @@ const ys = ({
5956
5955
  ), re = h(
5957
5956
  () => I ?? de,
5958
5957
  [I, de]
5959
- ), se = j(
5958
+ ), se = K(
5960
5959
  (H) => {
5961
5960
  if (d) {
5962
5961
  d(H);
5963
5962
  return;
5964
5963
  }
5965
- o && e && O(
5964
+ o && e && $(
5966
5965
  e,
5967
5966
  X(o, { key: H.key, keyPath: H.keyPath })
5968
5967
  );
5969
5968
  },
5970
- [d, o, e, O]
5971
- ), te = j(
5969
+ [d, o, e, $]
5970
+ ), te = K(
5972
5971
  (H) => {
5973
5972
  if (v) {
5974
5973
  v(H);
5975
5974
  return;
5976
5975
  }
5977
- if (q)
5976
+ if (z)
5978
5977
  if (r) {
5979
- const oe = N.getState().getDataSet(q, r) || {};
5980
- z(q, r, { ...oe, selectedKeys: H.selectedKeys });
5978
+ const oe = N.getState().getDataSet(z, r) || {};
5979
+ W(z, r, { ...oe, selectedKeys: H.selectedKeys });
5981
5980
  } else
5982
- z(q, "selectedKeys", H.selectedKeys);
5983
- a && e && O(
5981
+ W(z, "selectedKeys", H.selectedKeys);
5982
+ a && e && $(
5984
5983
  e,
5985
5984
  X(a, { selectedKeys: H.selectedKeys })
5986
5985
  );
5987
5986
  },
5988
5987
  [
5989
5988
  v,
5990
- q,
5991
- r,
5992
5989
  z,
5990
+ r,
5991
+ W,
5993
5992
  a,
5994
5993
  e,
5995
- O
5994
+ $
5996
5995
  ]
5997
- ), ye = j(
5996
+ ), ye = K(
5998
5997
  (H) => {
5999
5998
  if (m) {
6000
5999
  m(H);
6001
6000
  return;
6002
6001
  }
6003
- if (q)
6002
+ if (z)
6004
6003
  if (r) {
6005
- const oe = N.getState().getDataSet(q, r) || {};
6006
- z(q, r, { ...oe, openKeys: H });
6004
+ const oe = N.getState().getDataSet(z, r) || {};
6005
+ W(z, r, { ...oe, openKeys: H });
6007
6006
  } else
6008
- z(q, "openKeys", H);
6009
- else ne && x && z(ne, x, H);
6010
- c && e && O(
6007
+ W(z, "openKeys", H);
6008
+ else ne && x && W(ne, x, H);
6009
+ c && e && $(
6011
6010
  e,
6012
6011
  X(c, { openKeys: H })
6013
6012
  );
6014
6013
  },
6015
6014
  [
6016
6015
  m,
6017
- q,
6016
+ z,
6018
6017
  r,
6019
6018
  ne,
6020
6019
  x,
6021
- z,
6020
+ W,
6022
6021
  c,
6023
6022
  e,
6024
- O
6023
+ $
6025
6024
  ]
6026
- ), ie = j(
6025
+ ), ie = K(
6027
6026
  (H) => {
6028
6027
  if (g) {
6029
6028
  g(H);
6030
6029
  return;
6031
6030
  }
6032
- u && e && O(
6031
+ u && e && $(
6033
6032
  e,
6034
6033
  X(u, {
6035
6034
  selectedKeys: H.selectedKeys,
@@ -6037,7 +6036,7 @@ const ys = ({
6037
6036
  })
6038
6037
  );
6039
6038
  },
6040
- [g, u, e, O]
6039
+ [g, u, e, $]
6041
6040
  ), Ne = E === "inline" && k !== void 0 ? { inlineCollapsed: k } : {}, je = h(() => {
6042
6041
  if (!C) return;
6043
6042
  const H = {};
@@ -6047,18 +6046,18 @@ const ys = ({
6047
6046
  }, [C]), we = n ? {
6048
6047
  motion: { motionName: "" }
6049
6048
  } : {}, ae = h(() => {
6050
- if (typeof $ == "string" && $) {
6051
- const H = Je[$];
6049
+ if (typeof M == "string" && M) {
6050
+ const H = Je[M];
6052
6051
  if (H) return /* @__PURE__ */ b(H, {});
6053
6052
  }
6054
- return $;
6055
- }, [$]), he = h(() => {
6053
+ return M;
6054
+ }, [M]), he = h(() => {
6056
6055
  if (typeof L == "string" && L) {
6057
6056
  const H = Je[L];
6058
6057
  if (H) return /* @__PURE__ */ b(H, {});
6059
6058
  }
6060
6059
  return L;
6061
- }, [L]), fe = h(() => M === "pagination" || M === "scroll" ? null : w, [M, w]), G = ai(), Z = t || G.replace(/:/g, "-"), Se = h(() => {
6060
+ }, [L]), fe = h(() => O === "pagination" || O === "scroll" ? null : w, [O, w]), G = ai(), Z = t || G.replace(/:/g, "-"), Se = h(() => {
6062
6061
  var Ae;
6063
6062
  if (!s || typeof s == "function") return "";
6064
6063
  const H = (Ae = s.subMenu) == null ? void 0 : Ae.root;
@@ -6101,9 +6100,9 @@ const ys = ({
6101
6100
  classNames: A,
6102
6101
  expandIcon: T,
6103
6102
  overflowedIndicator: fe,
6104
- disabledOverflow: M !== "default"
6103
+ disabledOverflow: O !== "default"
6105
6104
  }
6106
- ), le = () => M === "pagination" ? /* @__PURE__ */ b(
6105
+ ), le = () => O === "pagination" ? /* @__PURE__ */ b(
6107
6106
  _a,
6108
6107
  {
6109
6108
  mode: E || "horizontal",
@@ -6112,7 +6111,7 @@ const ys = ({
6112
6111
  arrowIconNext: he,
6113
6112
  children: V
6114
6113
  }
6115
- ) : M === "scroll" ? /* @__PURE__ */ b(Ea, { mode: E || "horizontal", children: V }) : V, ge = h(() => {
6114
+ ) : O === "scroll" ? /* @__PURE__ */ b(Ea, { mode: E || "horizontal", children: V }) : V, ge = h(() => {
6116
6115
  const H = {};
6117
6116
  return n && (H.motion = !1), je && (H.components = { Menu: je }), Object.keys(H).length > 0 ? H : void 0;
6118
6117
  }, [n, je]);
@@ -6157,7 +6156,7 @@ const ys = ({
6157
6156
  return D && p in D ? D[p] : p;
6158
6157
  }, [p, D]);
6159
6158
  return /* @__PURE__ */ b(
6160
- Yn,
6159
+ Fn,
6161
6160
  {
6162
6161
  ...y,
6163
6162
  count: T,
@@ -6208,7 +6207,7 @@ const ys = ({
6208
6207
  return l && c in l ? l[c] : c;
6209
6208
  }, [c, l]);
6210
6209
  return /* @__PURE__ */ b(
6211
- Yn.Ribbon,
6210
+ Fn.Ribbon,
6212
6211
  {
6213
6212
  ...d,
6214
6213
  text: p,
@@ -6285,21 +6284,21 @@ const ys = ({
6285
6284
  itemRender: m,
6286
6285
  ...g
6287
6286
  }) => {
6288
- const p = Tt(i, r, e), f = p.dataSet, l = p.dataSetField, y = p.sessionId, s = Ct(ct), A = N((O) => O.addCommand), C = h(
6287
+ const p = Tt(i, r, e), f = p.dataSet, l = p.dataSetField, y = p.sessionId, s = Ct(ct), A = N(($) => $.addCommand), C = h(
6289
6288
  () => ee(y, f),
6290
6289
  [y, f]
6291
- ), T = N((O) => C && l ? O.getDataSet(C, l) : null), w = h(() => !y || t == null || t === "" ? null : s && typeof s.index == "number" ? `${String(t)}_${s.index}` : String(t), [y, t, s]), D = N(
6292
- (O) => {
6293
- var z;
6294
- return w ? ((z = O.propsStore[`${y}_props`]) == null ? void 0 : z[w]) ?? null : null;
6290
+ ), T = N(($) => C && l ? $.getDataSet(C, l) : null), w = h(() => !y || t == null || t === "" ? null : s && typeof s.index == "number" ? `${String(t)}_${s.index}` : String(t), [y, t, s]), D = N(
6291
+ ($) => {
6292
+ var W;
6293
+ return w ? ((W = $.propsStore[`${y}_props`]) == null ? void 0 : W[w]) ?? null : null;
6295
6294
  }
6296
- ), x = h(() => T && Array.isArray(T) ? T : Oa(o), [T, o]), E = (D == null ? void 0 : D.columns) !== void 0 && (D == null ? void 0 : D.columns) !== null ? D.columns : a, k = h(() => Ma(E), [E]), S = h(() => $a(c), [c]), M = h(() => {
6295
+ ), x = h(() => T && Array.isArray(T) ? T : Oa(o), [T, o]), E = (D == null ? void 0 : D.columns) !== void 0 && (D == null ? void 0 : D.columns) !== null ? D.columns : a, k = h(() => Ma(E), [E]), S = h(() => $a(c), [c]), O = h(() => {
6297
6296
  if (v) return v;
6298
6297
  if (d && y)
6299
- return (O) => {
6298
+ return ($) => {
6300
6299
  A(y, {
6301
6300
  actionName: d,
6302
- arg: O,
6301
+ arg: $,
6303
6302
  timestamp: Date.now()
6304
6303
  });
6305
6304
  };
@@ -6310,16 +6309,16 @@ const ys = ({
6310
6309
  { key: "4", height: 180, data: { title: "示例项 4" } },
6311
6310
  { key: "5", height: 140, data: { title: "示例项 5" } },
6312
6311
  { key: "6", height: 160, data: { title: "示例项 6" } }
6313
- ] : [], [x, n]), $ = h(() => {
6312
+ ] : [], [x, n]), M = h(() => {
6314
6313
  if (m) return m;
6315
6314
  if (n)
6316
- return (O) => {
6317
- var z;
6315
+ return ($) => {
6316
+ var W;
6318
6317
  return /* @__PURE__ */ b(
6319
6318
  "div",
6320
6319
  {
6321
6320
  style: {
6322
- height: O.height || 100,
6321
+ height: $.height || 100,
6323
6322
  background: "#f0f5ff",
6324
6323
  border: "1px dashed #91caff",
6325
6324
  borderRadius: 8,
@@ -6329,29 +6328,29 @@ const ys = ({
6329
6328
  color: "#1677ff",
6330
6329
  fontSize: 14
6331
6330
  },
6332
- children: ((z = O.data) == null ? void 0 : z.title) || `Item ${O.key}`
6331
+ children: ((W = $.data) == null ? void 0 : W.title) || `Item ${$.key}`
6333
6332
  }
6334
6333
  );
6335
6334
  };
6336
6335
  }, [m, n]), L = h(() => {
6337
- if ($)
6338
- return !f || !l ? $ : (O, z) => {
6339
- const q = typeof z == "number" ? z : typeof (O == null ? void 0 : O.index) == "number" ? O.index : Number((O == null ? void 0 : O.index) ?? 0);
6336
+ if (M)
6337
+ return !f || !l ? M : ($, W) => {
6338
+ const z = typeof W == "number" ? W : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
6340
6339
  return /* @__PURE__ */ b(
6341
6340
  ct.Provider,
6342
6341
  {
6343
6342
  value: {
6344
6343
  dataSet: f,
6345
- index: q,
6344
+ index: z,
6346
6345
  sessionId: y,
6347
6346
  dataSetFieldRoot: l
6348
6347
  },
6349
- children: $(O)
6348
+ children: M($)
6350
6349
  }
6351
6350
  );
6352
6351
  };
6353
- }, [$, f, l, y]), {
6354
- layoutChangeAction: W,
6352
+ }, [M, f, l, y]), {
6353
+ layoutChangeAction: q,
6355
6354
  ...B
6356
6355
  } = g;
6357
6356
  return /* @__PURE__ */ b(
@@ -6363,7 +6362,7 @@ const ys = ({
6363
6362
  gutter: S,
6364
6363
  fresh: u,
6365
6364
  itemRender: L,
6366
- onLayoutChange: M
6365
+ onLayoutChange: O
6367
6366
  }
6368
6367
  );
6369
6368
  }, Cs = ({
@@ -6390,11 +6389,11 @@ const ys = ({
6390
6389
  return l && typeof l == "object" && Object.keys(l).forEach((D) => {
6391
6390
  D !== "title" && D !== "message" && l[D] !== void 0 && l[D] !== null && (w[D] = l[D]);
6392
6391
  }), w;
6393
- }, [m, u, l]), C = h(() => d ? { closeIcon: /* @__PURE__ */ b("span", { children: d }) } : v, [d, v]), T = j((w) => {
6392
+ }, [m, u, l]), C = h(() => d ? { closeIcon: /* @__PURE__ */ b("span", { children: d }) } : v, [d, v]), T = K((w) => {
6394
6393
  r && r(w);
6395
6394
  }, [r]);
6396
6395
  return /* @__PURE__ */ b(
6397
- Fn,
6396
+ Jn,
6398
6397
  {
6399
6398
  ...A,
6400
6399
  title: s,
@@ -6422,13 +6421,13 @@ const ys = ({
6422
6421
  ), y = h(() => {
6423
6422
  if (l && r)
6424
6423
  return p(l, r);
6425
- }, [l, r, p]), s = y !== void 0 ? !!y : d, A = j(() => {
6424
+ }, [l, r, p]), s = y !== void 0 ? !!y : d, A = K(() => {
6426
6425
  c && c(), l && r && f(l, r, !1), o && e && g(e, {
6427
6426
  actionName: o,
6428
6427
  arg: null,
6429
6428
  timestamp: Date.now()
6430
6429
  });
6431
- }, [c, l, r, f, o, e, g]), C = j(() => {
6430
+ }, [c, l, r, f, o, e, g]), C = K(() => {
6432
6431
  u && u(), l && r && f(l, r, !1), a && e && g(e, {
6433
6432
  actionName: a,
6434
6433
  arg: null,
@@ -6436,7 +6435,7 @@ const ys = ({
6436
6435
  });
6437
6436
  }, [u, l, r, f, a, e, g]);
6438
6437
  return /* @__PURE__ */ b(
6439
- Wn,
6438
+ Hn,
6440
6439
  {
6441
6440
  ...m,
6442
6441
  open: s,
@@ -6463,7 +6462,7 @@ const ys = ({
6463
6462
  ), f = h(() => {
6464
6463
  if (p && r)
6465
6464
  return m(p, r);
6466
- }, [p, r, m]), l = f !== void 0 ? !!f : c, y = j(() => {
6465
+ }, [p, r, m]), l = f !== void 0 ? !!f : c, y = K(() => {
6467
6466
  a && a(), p && r && g(p, r, !1), o && e && v(e, {
6468
6467
  actionName: o,
6469
6468
  arg: null,
@@ -6552,7 +6551,7 @@ const ys = ({
6552
6551
  const x = N((U) => U.addCommand), E = N((U) => U.getDataSet), k = N((U) => U.setDataSet), S = h(
6553
6552
  () => ee(e, i),
6554
6553
  [e, i]
6555
- ), M = T === "default" ? "medium" : T, _ = h(() => {
6554
+ ), O = T === "default" ? "medium" : T, _ = h(() => {
6556
6555
  const U = ln(l, {});
6557
6556
  return Object.fromEntries(
6558
6557
  Object.entries(U).map(([I, ne]) => [
@@ -6560,21 +6559,21 @@ const ys = ({
6560
6559
  ja(ne)
6561
6560
  ])
6562
6561
  );
6563
- }, [l]), $ = h(() => {
6562
+ }, [l]), M = h(() => {
6564
6563
  const U = Ka(v);
6565
6564
  return U.length > 0 ? U : void 0;
6566
- }, [v]), W = h(() => {
6565
+ }, [v]), q = h(() => {
6567
6566
  if (S && r) {
6568
6567
  const U = E(S, `${r}.activeTabKey`);
6569
6568
  if (typeof U == "string") return U;
6570
6569
  }
6571
- }, [S, r, E]) ?? m, B = j((U) => {
6570
+ }, [S, r, E]) ?? m, B = K((U) => {
6572
6571
  if (f) {
6573
6572
  f(U);
6574
6573
  return;
6575
6574
  }
6576
6575
  S && r && k(S, `${r}.activeTabKey`, U), p && e && x(e, X(p, { key: U }));
6577
- }, [f, S, r, k, p, e, x]), { titleSlot: O, extraSlot: z, coverSlot: q, actionsSlot: K, otherChildren: R, actionsFromChildren: P } = h(() => {
6576
+ }, [f, S, r, k, p, e, x]), { titleSlot: $, extraSlot: W, coverSlot: z, actionsSlot: j, otherChildren: R, actionsFromChildren: P } = h(() => {
6578
6577
  let U = null, I = null, ne = null, de = [];
6579
6578
  const me = [];
6580
6579
  let De = !1;
@@ -6593,16 +6592,16 @@ const ys = ({
6593
6592
  Xt,
6594
6593
  {
6595
6594
  ...D,
6596
- size: M,
6597
- title: O,
6598
- extra: z,
6599
- cover: q,
6595
+ size: O,
6596
+ title: $,
6597
+ extra: W,
6598
+ cover: z,
6600
6599
  tabBarExtraContent: u,
6601
- actions: K.length > 0 ? K : void 0,
6602
- tabList: $,
6603
- activeTabKey: W,
6600
+ actions: j.length > 0 ? j : void 0,
6601
+ tabList: M,
6602
+ activeTabKey: q,
6604
6603
  defaultActiveTabKey: g,
6605
- onTabChange: $ ? B : void 0,
6604
+ onTabChange: M ? B : void 0,
6606
6605
  styles: _,
6607
6606
  children: R
6608
6607
  }
@@ -6639,12 +6638,12 @@ const ys = ({
6639
6638
  return [];
6640
6639
  }
6641
6640
  return t;
6642
- }, ur = (t) => t.map((e) => e.divider ? { type: "divider", key: e.key } : {
6641
+ }, fr = (t) => t.map((e) => e.divider ? { type: "divider", key: e.key } : {
6643
6642
  key: e.key,
6644
6643
  label: e.label,
6645
6644
  disabled: e.disabled,
6646
6645
  danger: e.danger,
6647
- children: e.children ? ur(e.children) : void 0
6646
+ children: e.children ? fr(e.children) : void 0
6648
6647
  }), Os = ({
6649
6648
  id: t,
6650
6649
  sessionId: e,
@@ -6675,21 +6674,21 @@ const ys = ({
6675
6674
  const S = T;
6676
6675
  if (Array.isArray(S == null ? void 0 : S.items)) return S.items;
6677
6676
  if (Array.isArray(S == null ? void 0 : S.value)) return S.value;
6678
- }, [T]), D = h(() => n ? w ?? jn(a) ?? [] : C ? w ?? [] : jn(a) ?? [], [n, C, w, a]), x = j(
6679
- (S, M) => {
6677
+ }, [T]), D = h(() => n ? w ?? jn(a) ?? [] : C ? w ?? [] : jn(a) ?? [], [n, C, w, a]), x = K(
6678
+ (S, O) => {
6680
6679
  if (m) {
6681
- m(S, M);
6680
+ m(S, O);
6682
6681
  return;
6683
6682
  }
6684
6683
  if (v && e) {
6685
- const { actionName: _, arg: $ } = it(v, S, {
6684
+ const { actionName: _, arg: M } = it(v, S, {
6686
6685
  id: t,
6687
6686
  dataSet: i,
6688
6687
  dataSetField: r,
6689
6688
  index: A,
6690
- source: M.source
6689
+ source: O.source
6691
6690
  });
6692
- y(e, X(_, $));
6691
+ y(e, X(_, M));
6693
6692
  }
6694
6693
  },
6695
6694
  [
@@ -6704,10 +6703,10 @@ const ys = ({
6704
6703
  ]
6705
6704
  ), E = h(
6706
6705
  () => ({
6707
- items: ur(D),
6706
+ items: fr(D),
6708
6707
  onClick: (S) => {
6709
6708
  if (c && e) {
6710
- const { actionName: M, arg: _ } = it(c, S.key, {
6709
+ const { actionName: O, arg: _ } = it(c, S.key, {
6711
6710
  id: t,
6712
6711
  dataSet: i,
6713
6712
  dataSetField: r,
@@ -6715,12 +6714,12 @@ const ys = ({
6715
6714
  key: S.key,
6716
6715
  keyPath: S.keyPath
6717
6716
  });
6718
- y(e, X(M, _));
6717
+ y(e, X(O, _));
6719
6718
  }
6720
6719
  },
6721
6720
  onSelect: (S) => {
6722
6721
  if (u && e) {
6723
- const { actionName: M, arg: _ } = it(u, S.key, {
6722
+ const { actionName: O, arg: _ } = it(u, S.key, {
6724
6723
  id: t,
6725
6724
  dataSet: i,
6726
6725
  dataSetField: r,
@@ -6729,12 +6728,12 @@ const ys = ({
6729
6728
  keyPath: S.keyPath,
6730
6729
  selectedKeys: S.selectedKeys
6731
6730
  });
6732
- y(e, X(M, _));
6731
+ y(e, X(O, _));
6733
6732
  }
6734
6733
  },
6735
6734
  onDeselect: (S) => {
6736
6735
  if (d && e) {
6737
- const { actionName: M, arg: _ } = it(d, S.key, {
6736
+ const { actionName: O, arg: _ } = it(d, S.key, {
6738
6737
  id: t,
6739
6738
  dataSet: i,
6740
6739
  dataSetField: r,
@@ -6743,7 +6742,7 @@ const ys = ({
6743
6742
  keyPath: S.keyPath,
6744
6743
  selectedKeys: S.selectedKeys
6745
6744
  });
6746
- y(e, X(M, _));
6745
+ y(e, X(O, _));
6747
6746
  }
6748
6747
  }
6749
6748
  }),
@@ -6769,7 +6768,7 @@ const ys = ({
6769
6768
  n && !g && !p && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
6770
6769
  !g && !n && o && /* @__PURE__ */ b(et, { children: /* @__PURE__ */ ue(Qe, { children: [
6771
6770
  o,
6772
- /* @__PURE__ */ b(In, {})
6771
+ /* @__PURE__ */ b(er, {})
6773
6772
  ] }) })
6774
6773
  ]
6775
6774
  }
@@ -6793,7 +6792,7 @@ const ys = ({
6793
6792
  develop: n,
6794
6793
  children: i,
6795
6794
  ...r
6796
- }) => /* @__PURE__ */ b(Hn, { ...r, children: i }), js = ({
6795
+ }) => /* @__PURE__ */ b(Un, { ...r, children: i }), js = ({
6797
6796
  id: t,
6798
6797
  sessionId: e,
6799
6798
  develop: n,
@@ -6866,7 +6865,7 @@ const ys = ({
6866
6865
  end: bt(c.end)
6867
6866
  };
6868
6867
  }
6869
- }, [c]), D = j(
6868
+ }, [c]), D = K(
6870
6869
  (_) => {
6871
6870
  if (v) {
6872
6871
  v(_);
@@ -6875,7 +6874,7 @@ const ys = ({
6875
6874
  u && e && s(e, X(u, { sizes: _ }));
6876
6875
  },
6877
6876
  [v, u, e, s]
6878
- ), x = j(
6877
+ ), x = K(
6879
6878
  (_) => {
6880
6879
  if (m) {
6881
6880
  m(_);
@@ -6884,8 +6883,8 @@ const ys = ({
6884
6883
  d && e && s(e, X(d, { sizes: _ }));
6885
6884
  },
6886
6885
  [m, d, e, s]
6887
- ), E = () => f && Ve.Children.count(f) > 0 ? Ve.Children.map(f, (_, $) => {
6888
- const L = A[$] || {};
6886
+ ), E = () => f && Ve.Children.count(f) > 0 ? Ve.Children.map(f, (_, M) => {
6887
+ const L = A[M] || {};
6889
6888
  return /* @__PURE__ */ b(
6890
6889
  Pt.Panel,
6891
6890
  {
@@ -6896,9 +6895,9 @@ const ys = ({
6896
6895
  resizable: L.resizable !== !1,
6897
6896
  children: _
6898
6897
  },
6899
- L.key || $
6898
+ L.key || M
6900
6899
  );
6901
- }) : A.map((_, $) => /* @__PURE__ */ b(
6900
+ }) : A.map((_, M) => /* @__PURE__ */ b(
6902
6901
  Pt.Panel,
6903
6902
  {
6904
6903
  defaultSize: _.defaultSize || void 0,
@@ -6906,7 +6905,7 @@ const ys = ({
6906
6905
  max: _.max || void 0,
6907
6906
  collapsible: _.collapsible,
6908
6907
  resizable: _.resizable !== !1,
6909
- children: l ? l(_.key, $) : /* @__PURE__ */ ue(
6908
+ children: l ? l(_.key, M) : /* @__PURE__ */ ue(
6910
6909
  "div",
6911
6910
  {
6912
6911
  style: {
@@ -6919,13 +6918,13 @@ const ys = ({
6919
6918
  },
6920
6919
  children: [
6921
6920
  "Panel ",
6922
- $ + 1
6921
+ M + 1
6923
6922
  ]
6924
6923
  }
6925
6924
  )
6926
6925
  },
6927
- _.key || $
6928
- )), { layout: k, ...S } = y, M = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
6926
+ _.key || M
6927
+ )), { layout: k, ...S } = y, O = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
6929
6928
  Pt,
6930
6929
  {
6931
6930
  ...S,
@@ -6941,7 +6940,7 @@ const ys = ({
6941
6940
  },
6942
6941
  r
6943
6942
  ) });
6944
- return C && Object.keys(C).length > 0 ? /* @__PURE__ */ b(Ke, { theme: { components: { Splitter: C } }, children: M }) : M;
6943
+ return C && Object.keys(C).length > 0 ? /* @__PURE__ */ b(Ke, { theme: { components: { Splitter: C } }, children: O }) : O;
6945
6944
  }, Bs = ({
6946
6945
  children: t,
6947
6946
  className: e,
@@ -6988,38 +6987,38 @@ const ys = ({
6988
6987
  const T = s === "default" ? "middle" : s, w = h(() => {
6989
6988
  const B = C == null ? void 0 : C.trim();
6990
6989
  if (B)
6991
- return (O, z) => B.replace(/\$\{total\}/g, String(O)).replace(/\$\{range\[0\]\}/g, String(z[0])).replace(/\$\{range\[1\]\}/g, String(z[1])).replace(/\$\{range\}/g, `${z[0]}-${z[1]}`);
6990
+ return ($, W) => B.replace(/\$\{total\}/g, String($)).replace(/\$\{range\[0\]\}/g, String(W[0])).replace(/\$\{range\[1\]\}/g, String(W[1])).replace(/\$\{range\}/g, `${W[0]}-${W[1]}`);
6992
6991
  }, [C]), D = N((B) => B.getDataSet), x = h(
6993
6992
  () => ee(e, i),
6994
6993
  [e, i]
6995
- ), [E, k] = ve(1), [S, M] = ve(g), _ = h(() => {
6994
+ ), [E, k] = ve(1), [S, O] = ve(g), _ = h(() => {
6996
6995
  if (x && r) {
6997
6996
  const B = D(x, r);
6998
6997
  return Array.isArray(B) ? B : [];
6999
6998
  }
7000
6999
  return [];
7001
- }, [x, r, D]), $ = h(() => n ? _.length > 0 ? _ : c || [] : x ? _ : c || [], [n, x, _, c]), L = h(() => {
7002
- let B = $;
7000
+ }, [x, r, D]), M = h(() => n ? _.length > 0 ? _ : c || [] : x ? _ : c || [], [n, x, _, c]), L = h(() => {
7001
+ let B = M;
7003
7002
  if (!m) {
7004
- const O = (E - 1) * S, z = O + S;
7005
- B = B.slice(O, z);
7003
+ const $ = (E - 1) * S, W = $ + S;
7004
+ B = B.slice($, W);
7006
7005
  }
7007
7006
  return u ? B.slice(0, u) : B;
7008
- }, [$, m, E, S, u]);
7009
- if (!$ || $.length === 0)
7007
+ }, [M, m, E, S, u]);
7008
+ if (!M || M.length === 0)
7010
7009
  return a ? /* @__PURE__ */ b(yt, { children: a() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
7011
- const W = (B, O) => {
7012
- k(B), O && M(O);
7010
+ const q = (B, $) => {
7011
+ k(B), $ && O($);
7013
7012
  };
7014
7013
  return /* @__PURE__ */ ue("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
7015
- /* @__PURE__ */ b("div", { style: { flex: 1 }, children: L.map((B, O) => /* @__PURE__ */ b(Ve.Fragment, { children: o ? o(B, O) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || O)) }),
7016
- !m && $.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
7017
- Pn,
7014
+ /* @__PURE__ */ b("div", { style: { flex: 1 }, children: L.map((B, $) => /* @__PURE__ */ b(Ve.Fragment, { children: o ? o(B, $) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || $)) }),
7015
+ !m && M.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
7016
+ Yn,
7018
7017
  {
7019
7018
  current: E,
7020
7019
  pageSize: S,
7021
- total: $.length,
7022
- onChange: W,
7020
+ total: M.length,
7021
+ onChange: q,
7023
7022
  pageSizeOptions: p,
7024
7023
  showSizeChanger: f,
7025
7024
  showQuickJumper: l,
@@ -7139,7 +7138,7 @@ const ys = ({
7139
7138
  l.originalPrice
7140
7139
  ] })
7141
7140
  ] }),
7142
- l.tags && l.tags.length > 0 && /* @__PURE__ */ b(Qe, { size: 4, wrap: !0, children: l.tags.map((y, s) => /* @__PURE__ */ b(Un, { color: "blue", children: y }, s)) })
7141
+ l.tags && l.tags.length > 0 && /* @__PURE__ */ b(Qe, { size: 4, wrap: !0, children: l.tags.map((y, s) => /* @__PURE__ */ b(Pn, { color: "blue", children: y }, s)) })
7143
7142
  ] })
7144
7143
  }
7145
7144
  )
@@ -7190,11 +7189,11 @@ const ys = ({
7190
7189
  var x, E;
7191
7190
  const { storeBaseKey: g, arrayIndex: p } = h(() => {
7192
7191
  if (!n) return { storeBaseKey: void 0, arrayIndex: null };
7193
- const k = n.split(".")[0], { baseName: S, index: M } = gt(k);
7194
- let _ = M;
7192
+ const k = n.split(".")[0], { baseName: S, index: O } = gt(k);
7193
+ let _ = O;
7195
7194
  if (_ === null && m !== void 0 && m !== null) {
7196
- const $ = Number(m);
7197
- _ = Number.isFinite($) ? $ : null;
7195
+ const M = Number(m);
7196
+ _ = Number.isFinite(M) ? M : null;
7198
7197
  }
7199
7198
  return {
7200
7199
  storeBaseKey: ee(i, S),
@@ -7204,18 +7203,18 @@ const ys = ({
7204
7203
  if (!g) return null;
7205
7204
  const S = k.dataSets[g];
7206
7205
  if (p !== null) {
7207
- const M = S == null ? void 0 : S.value;
7208
- return Array.isArray(M) ? M[p] ?? null : null;
7206
+ const O = S == null ? void 0 : S.value;
7207
+ return Array.isArray(O) ? O[p] ?? null : null;
7209
7208
  }
7210
7209
  return S ?? null;
7211
7210
  }), l = h(() => {
7212
7211
  if (!n || !f) return { componentName: "", props: {} };
7213
- const S = n.split(".")[1], M = S ? f[S] || {} : f;
7214
- if (typeof M == "object" && M !== null) {
7215
- const { componentName: _, props: $, ...L } = M;
7212
+ const S = n.split(".")[1], O = S ? f[S] || {} : f;
7213
+ if (typeof O == "object" && O !== null) {
7214
+ const { componentName: _, props: M, ...L } = O;
7216
7215
  return {
7217
7216
  componentName: _ || "",
7218
- props: $ || L || {}
7217
+ props: M || L || {}
7219
7218
  };
7220
7219
  }
7221
7220
  return { componentName: "", props: {} };
@@ -7271,7 +7270,7 @@ const ys = ({
7271
7270
  }
7272
7271
  );
7273
7272
  const D = s ? w(s) : null;
7274
- return D ? /* @__PURE__ */ b(ci, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Jn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: y && p !== null ? /* @__PURE__ */ b(
7273
+ return D ? /* @__PURE__ */ b(ci, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Gn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: y && p !== null ? /* @__PURE__ */ b(
7275
7274
  ct.Provider,
7276
7275
  {
7277
7276
  value: { dataSet: y, index: p, sessionId: i },
@@ -7370,16 +7369,16 @@ if (typeof URL < "u") {
7370
7369
  }
7371
7370
  });
7372
7371
  }
7373
- let fr = !1, Bn = !1;
7372
+ let dr = !1, Bn = !1;
7374
7373
  function Hs(t) {
7375
- typeof window > "u" || (er.GlobalWorkerOptions.workerSrc = t, fr = !0);
7374
+ typeof window > "u" || (tr.GlobalWorkerOptions.workerSrc = t, dr = !0);
7376
7375
  }
7377
7376
  function La(t) {
7378
7377
  var i, r;
7379
- if (typeof window > "u" || fr) return;
7378
+ if (typeof window > "u" || dr) return;
7380
7379
  const e = (i = He().pdfWorkerFallbackUrl) == null ? void 0 : i.trim(), n = (r = t ?? e) == null ? void 0 : r.trim();
7381
7380
  if (n) {
7382
- er.GlobalWorkerOptions.workerSrc = n;
7381
+ tr.GlobalWorkerOptions.workerSrc = n;
7383
7382
  return;
7384
7383
  }
7385
7384
  Bn || (Bn = !0, console.warn(
@@ -7436,7 +7435,7 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7436
7435
  () => Math.max(1, a || 1)
7437
7436
  ), E = Me(D);
7438
7437
  E.current = D;
7439
- const [k, S] = ve(null), [M, _] = ve(!!A), [$, L] = ve("all"), [W, B] = ve("width"), [O, z] = ve(1), q = Me(null), K = Me(null), R = Me({}), P = Me(!1), Q = Me(null), [Y, U] = ve(600), [I, ne] = ve(800), de = Me(0), me = h(() => {
7438
+ const [k, S] = ve(null), [O, _] = ve(!!A), [M, L] = ve("all"), [q, B] = ve("width"), [$, W] = ve(1), z = Me(null), j = Me(null), R = Me({}), P = Me(!1), Q = Me(null), [Y, U] = ve(600), [I, ne] = ve(800), de = Me(0), me = h(() => {
7440
7439
  var oe;
7441
7440
  const F = (oe = He().pdfCMapUrl) == null ? void 0 : oe.trim();
7442
7441
  return F ? { cMapUrl: F.endsWith("/") ? F : `${F}/`, cMapPacked: !0 } : {};
@@ -7445,7 +7444,7 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7445
7444
  return F.getDataSet(l, `${De}.targetPage`);
7446
7445
  });
7447
7446
  xe(() => {
7448
- const F = K.current;
7447
+ const F = j.current;
7449
7448
  if (!F) return;
7450
7449
  const H = new ResizeObserver(() => {
7451
7450
  const Ae = F.clientWidth, ke = F.clientHeight;
@@ -7459,12 +7458,12 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7459
7458
  () => Math.max(320, I - 16),
7460
7459
  [I]
7461
7460
  ), ye = h(
7462
- () => Math.max(120, se * O),
7463
- [se, O]
7461
+ () => Math.max(120, se * $),
7462
+ [se, $]
7464
7463
  ), ie = h(
7465
- () => Math.max(180, te * O),
7466
- [te, O]
7467
- ), Ne = h(() => $ === "all" ? Array.from({ length: T }, (F, H) => H + 1) : [D], [$, T, D]), je = j(
7464
+ () => Math.max(180, te * $),
7465
+ [te, $]
7466
+ ), Ne = h(() => M === "all" ? Array.from({ length: T }, (F, H) => H + 1) : [D], [M, T, D]), je = K(
7468
7467
  (F, H) => {
7469
7468
  !l || !De || (f(l, `${De}.currentPage`, F), H > 0 && f(l, `${De}.totalPages`, H));
7470
7469
  },
@@ -7473,15 +7472,15 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7473
7472
  xe(() => {
7474
7473
  T > 0 && je(D, T);
7475
7474
  }, [D, T, je]);
7476
- const we = j(
7475
+ const we = K(
7477
7476
  (F, H = "auto") => {
7478
7477
  const oe = T > 0 ? Math.max(1, Math.min(Math.floor(F), T)) : Math.max(1, Math.floor(F));
7479
- if (x(oe), $ === "all") {
7478
+ if (x(oe), M === "all") {
7480
7479
  const pe = R.current[oe];
7481
7480
  pe && pe.scrollIntoView({ block: "start", behavior: H });
7482
7481
  }
7483
7482
  },
7484
- [T, $]
7483
+ [T, M]
7485
7484
  ), ae = Me(we);
7486
7485
  ae.current = we, xe(() => {
7487
7486
  const F = re;
@@ -7490,21 +7489,21 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7490
7489
  const F = Math.max(1, a ?? 1);
7491
7490
  x(F);
7492
7491
  }, [a]);
7493
- const he = j(
7492
+ const he = K(
7494
7493
  ({ numPages: F }) => {
7495
7494
  S(null), _(!1);
7496
7495
  const H = E.current, oe = Math.min(Math.max(1, H), F || 1);
7497
7496
  w(F), x(oe), P.current = !0, Q.current = oe;
7498
7497
  },
7499
7498
  []
7500
- ), fe = j((F) => {
7499
+ ), fe = K((F) => {
7501
7500
  S(F), _(!1), P.current = !1, Q.current = null;
7502
7501
  }, []);
7503
7502
  xe(() => {
7504
- _(!!A), S(null), z(1), w(0), P.current = !!A, Q.current = null, R.current = {};
7503
+ _(!!A), S(null), W(1), w(0), P.current = !!A, Q.current = null, R.current = {};
7505
7504
  }, [A]), xe(() => {
7506
7505
  const F = Q.current;
7507
- if (F == null || M || T <= 0 || $ !== "all") return;
7506
+ if (F == null || O || T <= 0 || M !== "all") return;
7508
7507
  let H = !1, oe = 0;
7509
7508
  const pe = 120, Ae = () => {
7510
7509
  if (H) return;
@@ -7537,13 +7536,13 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7537
7536
  return requestAnimationFrame(Ae), () => {
7538
7537
  H = !0;
7539
7538
  };
7540
- }, [M, T, $]);
7541
- const G = j((F) => {
7542
- z((H) => {
7539
+ }, [O, T, M]);
7540
+ const G = K((F) => {
7541
+ W((H) => {
7543
7542
  const oe = Number((H + F).toFixed(2));
7544
7543
  return Math.max(Va, Math.min(qa, oe));
7545
7544
  });
7546
- }, []), Z = j(() => {
7545
+ }, []), Z = K(() => {
7547
7546
  if (!A) return;
7548
7547
  const F = window.open(A, "_blank", "noopener,noreferrer");
7549
7548
  F && (F.onload = () => {
@@ -7552,19 +7551,19 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7552
7551
  } catch {
7553
7552
  }
7554
7553
  });
7555
- }, [A]), Se = j(() => {
7554
+ }, [A]), Se = K(() => {
7556
7555
  if (!A) return;
7557
7556
  const F = document.createElement("a");
7558
7557
  F.href = A, F.download = "", F.rel = "noopener noreferrer", F.target = "_blank", document.body.appendChild(F), F.click(), F.remove();
7559
- }, [A]), V = j(() => {
7558
+ }, [A]), V = K(() => {
7560
7559
  var H;
7561
- const F = q.current;
7560
+ const F = z.current;
7562
7561
  F && ((H = F.requestFullscreen) == null || H.call(F));
7563
- }, []), le = j(() => {
7562
+ }, []), le = K(() => {
7564
7563
  document.fullscreenElement && document.exitFullscreen();
7565
- }, []), ge = j(() => {
7566
- if (M || $ !== "all" || T <= 0 || P.current) return;
7567
- const F = K.current;
7564
+ }, []), ge = K(() => {
7565
+ if (O || M !== "all" || T <= 0 || P.current) return;
7566
+ const F = j.current;
7568
7567
  if (!F) return;
7569
7568
  const H = F.scrollTop + F.clientHeight * 0.35;
7570
7569
  let oe = D, pe = Number.POSITIVE_INFINITY;
@@ -7575,7 +7574,7 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7575
7574
  Ze < pe && (pe = Ze, oe = Ae);
7576
7575
  }
7577
7576
  oe !== D && x(oe);
7578
- }, [M, $, T, D]);
7577
+ }, [O, M, T, D]);
7579
7578
  return xe(() => {
7580
7579
  if (!s || typeof s != "object") return;
7581
7580
  const F = s._pdfCmdNonce, H = s.pdfCommand, oe = s.pdfCommandArg;
@@ -7597,10 +7596,10 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7597
7596
  typeof oe == "number" && we(oe, "smooth");
7598
7597
  break;
7599
7598
  case "fitWidth":
7600
- B("width"), z(1);
7599
+ B("width"), W(1);
7601
7600
  break;
7602
7601
  case "fitHeight":
7603
- B("height"), z(1);
7602
+ B("height"), W(1);
7604
7603
  break;
7605
7604
  case "zoomIn":
7606
7605
  G(zn);
@@ -7637,7 +7636,7 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7637
7636
  ]), /* @__PURE__ */ b(
7638
7637
  "div",
7639
7638
  {
7640
- ref: q,
7639
+ ref: z,
7641
7640
  className: g,
7642
7641
  style: {
7643
7642
  display: "flex",
@@ -7649,7 +7648,7 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7649
7648
  children: /* @__PURE__ */ b(
7650
7649
  "div",
7651
7650
  {
7652
- ref: K,
7651
+ ref: j,
7653
7652
  onScroll: ge,
7654
7653
  style: {
7655
7654
  flex: 1,
@@ -7660,14 +7659,14 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7660
7659
  border: n ? "1px dashed #ccc" : void 0
7661
7660
  },
7662
7661
  children: k ? /* @__PURE__ */ b(
7663
- Fn,
7662
+ Jn,
7664
7663
  {
7665
7664
  type: "error",
7666
7665
  message: (u == null ? void 0 : u.trim()) || k.message,
7667
7666
  showIcon: !0
7668
7667
  }
7669
7668
  ) : A ? /* @__PURE__ */ ue(yt, { children: [
7670
- M ? /* @__PURE__ */ b(
7669
+ O ? /* @__PURE__ */ b(
7671
7670
  "div",
7672
7671
  {
7673
7672
  style: {
@@ -7680,7 +7679,7 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7680
7679
  zIndex: 2,
7681
7680
  pointerEvents: "none"
7682
7681
  },
7683
- children: /* @__PURE__ */ b(Jn, {})
7682
+ children: /* @__PURE__ */ b(Gn, {})
7684
7683
  }
7685
7684
  ) : null,
7686
7685
  /* @__PURE__ */ b(
@@ -7707,8 +7706,8 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
7707
7706
  vi,
7708
7707
  {
7709
7708
  pageNumber: F,
7710
- width: W === "width" ? ye : void 0,
7711
- height: W === "height" ? ie : void 0,
7709
+ width: q === "width" ? ye : void 0,
7710
+ height: q === "height" ? ie : void 0,
7712
7711
  renderTextLayer: !1,
7713
7712
  renderAnnotationLayer: !1
7714
7713
  }
@@ -7828,27 +7827,27 @@ function tt(t, e) {
7828
7827
  animate: E,
7829
7828
  scale: k,
7830
7829
  interaction: S,
7831
- annotations: M,
7830
+ annotations: O,
7832
7831
  axis: _,
7833
- scrollbar: $,
7832
+ scrollbar: M,
7834
7833
  slider: L,
7835
- theme: W,
7834
+ theme: q,
7836
7835
  state: B,
7837
7836
  // 事件配置
7838
- events: O,
7837
+ events: $,
7839
7838
  // 其余配置直接透传
7840
- ...z
7841
- } = a, q = Me(null), K = N((we) => we.getDataSet), R = N((we) => we.addCommand), P = h(() => {
7839
+ ...W
7840
+ } = a, z = Me(null), j = N((we) => we.getDataSet), R = N((we) => we.addCommand), P = h(() => {
7842
7841
  if (g && p) {
7843
- const ae = K(g, p);
7842
+ const ae = j(g, p);
7844
7843
  if (ae !== void 0) return ae;
7845
7844
  }
7846
7845
  const we = Ee(f);
7847
7846
  return we !== void 0 ? we : d ? r : [];
7848
- }, [f, g, p, K, d]), Q = (we) => {
7847
+ }, [f, g, p, j, d]), Q = (we) => {
7849
7848
  var ae;
7850
- if (q.current = we, !d && u) {
7851
- const he = Ee(O);
7849
+ if (z.current = we, !d && u) {
7850
+ const he = Ee($);
7852
7851
  he && typeof he == "object" && Object.entries(he).forEach(([fe, G]) => {
7853
7852
  typeof G == "string" && we.on(fe, (Z) => {
7854
7853
  R(u, {
@@ -7859,7 +7858,7 @@ function tt(t, e) {
7859
7858
  });
7860
7859
  });
7861
7860
  }
7862
- (ae = z.onReady) == null || ae.call(z, we);
7861
+ (ae = W.onReady) == null || ae.call(W, we);
7863
7862
  }, Y = Ee(l) || {}, U = {
7864
7863
  data: P,
7865
7864
  // 优先使用 common 中的配置,没配置则使用默认值
@@ -7870,7 +7869,7 @@ function tt(t, e) {
7870
7869
  // 设计器模式禁用动画
7871
7870
  animate: d ? !1 : Ee(E),
7872
7871
  onReady: Q,
7873
- ...z
7872
+ ...W
7874
7873
  }, I = Ee(T);
7875
7874
  I !== void 0 && (U.title = I);
7876
7875
  const ne = Ee(w);
@@ -7883,15 +7882,15 @@ function tt(t, e) {
7883
7882
  De !== void 0 && (U.scale = De);
7884
7883
  const re = Ee(S);
7885
7884
  re !== void 0 && (U.interaction = re);
7886
- const se = Ee(M);
7885
+ const se = Ee(O);
7887
7886
  se !== void 0 && (U.annotations = se);
7888
7887
  const te = Ee(_);
7889
7888
  te !== void 0 && (U.axis = te);
7890
- const ye = Ee($);
7889
+ const ye = Ee(M);
7891
7890
  ye !== void 0 && (U.scrollbar = ye);
7892
7891
  const ie = Ee(L);
7893
7892
  ie !== void 0 && (U.slider = ie);
7894
- const Ne = Ee(W);
7893
+ const Ne = Ee(q);
7895
7894
  Ne !== void 0 && (U.theme = Ne);
7896
7895
  const je = Ee(B);
7897
7896
  return je !== void 0 && (U.state = je), /* @__PURE__ */ b(t, { ...U });
@@ -8206,7 +8205,7 @@ export {
8206
8205
  At as getNestedValue,
8207
8206
  wt as getValidateStoreKey,
8208
8207
  Ti as initReactMount,
8209
- cr as isTokenName,
8208
+ sr as isTokenName,
8210
8209
  Ue as mergeStoreProps,
8211
8210
  bc as mountReactComponent,
8212
8211
  it as parseAction,
@@ -8215,14 +8214,14 @@ export {
8215
8214
  Mi as parseClickAction,
8216
8215
  mt as parseNestedPath,
8217
8216
  Nc as parseQueryAction,
8218
- rr as processValidationRules,
8217
+ ir as processValidationRules,
8219
8218
  Ec as req,
8220
8219
  at as request,
8221
8220
  $c as resolveTokenColorWithToken,
8222
8221
  _c as setCoreConfig,
8223
8222
  _i as setNestedValue,
8224
8223
  Hs as setPdfjsWorkerSrc,
8225
- or as upload,
8224
+ ar as upload,
8226
8225
  Ac as useAddCommand,
8227
8226
  N as useAndStore,
8228
8227
  ho as useApiService,
@@ -8237,7 +8236,7 @@ export {
8237
8236
  wc as useStore,
8238
8237
  Dc as useStoreByName,
8239
8238
  Ei as useStoreData,
8240
- ir as validateWithSchema,
8239
+ or as validateWithSchema,
8241
8240
  Oi as watchCommands,
8242
8241
  tt as withBaseChart
8243
8242
  };