@nuwatop/code-canvas-core 0.5.9 → 0.5.11

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,6 +1,6 @@
1
1
  import { jsx as b, jsxs as st, Fragment as fe } from "react/jsx-runtime";
2
2
  import { createRoot as mr } from "react-dom/client";
3
- import { theme as Xt, ConfigProvider as Kt, Button as It, Input as Be, InputNumber as jn, Space as Yt, Select as Bn, Switch as hr, DatePicker as Kn, TimePicker as yr, Radio as He, Checkbox as ue, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as ke, Upload as Sr, Image as Zt, AutoComplete as wr, Form as Re, Transfer as Dr, Segmented as xr, Modal as Ln, Tooltip as Ar, Table as Cr, Flex as zn, Typography as fn, Tabs as Tr, Tree as Nr, Timeline as kr, Steps as Or, Statistic as Qe, Carousel as _r, Avatar as Er, Tag as Vn, Pagination as qn, Breadcrumb as Mr, Menu as $r, Calendar as Rr, Badge as Wn, Masonry as jr, Alert as Hn, Drawer as Br, Result as Kr, Card as Ze, Divider as gn, Dropdown as Lr, Row as zr, Col as Vr, QRCode as qr, Splitter as Pe, Spin as Pn, Watermark as Wr } from "antd";
3
+ import { theme as Xt, ConfigProvider as Kt, Button as It, Input as Be, InputNumber as jn, Space as Yt, Select as Bn, Switch as hr, DatePicker as Kn, TimePicker as yr, Radio as He, Checkbox as ue, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as ke, Upload as Sr, Image as Zt, AutoComplete as wr, Form as Re, Transfer as Dr, Segmented as xr, Modal as zn, Tooltip as Ar, Table as Cr, Flex as Ln, Typography as fn, Tabs as Tr, Tree as Nr, Timeline as kr, Steps as Or, Statistic as Qe, Carousel as _r, Avatar as Er, Tag as Vn, Pagination as qn, Breadcrumb as Mr, Menu as $r, Calendar as Rr, Badge as Wn, Masonry as jr, Alert as Hn, Drawer as Br, Result as Kr, Card as Ze, Divider as gn, Dropdown as zr, Row as Lr, Col as Vr, QRCode as qr, Splitter as Pe, Spin as Pn, Watermark as Wr } from "antd";
4
4
  import { StyleProvider as Hr, createCache as Pr } from "@ant-design/cssinjs";
5
5
  import Ur from "antd/locale/zh_CN";
6
6
  import { create as Yr } from "zustand";
@@ -146,7 +146,7 @@ function vi(e, t, n) {
146
146
  const a = t[t.length - 1];
147
147
  return r[a.key] = n, i;
148
148
  }
149
- function rt(e, t) {
149
+ function it(e, t) {
150
150
  if (t)
151
151
  return e ? `${e}_${t}` : t;
152
152
  }
@@ -726,7 +726,7 @@ var Zn = function(t, n, i, r, a, o) {
726
726
  range: ji,
727
727
  enum: Bi,
728
728
  pattern: Ki
729
- }, Li = function(t, n, i, r, a) {
729
+ }, zi = function(t, n, i, r, a) {
730
730
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
731
731
  if (c) {
732
732
  if ($t(n, "string") && !t.required)
@@ -734,7 +734,7 @@ var Zn = function(t, n, i, r, a, o) {
734
734
  ht.required(t, n, r, o, a, "string"), $t(n, "string") || (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a), ht.pattern(t, n, r, o, a), t.whitespace === !0 && ht.whitespace(t, n, r, o, a));
735
735
  }
736
736
  i(o);
737
- }, zi = function(t, n, i, r, a) {
737
+ }, Li = function(t, n, i, r, a) {
738
738
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
739
739
  if (c) {
740
740
  if ($t(n) && !t.required)
@@ -845,8 +845,8 @@ var Zn = function(t, n, i, r, a, o) {
845
845
  }
846
846
  i(o);
847
847
  }, Se = {
848
- string: Li,
849
- method: zi,
848
+ string: zi,
849
+ method: Li,
850
850
  number: Vi,
851
851
  boolean: qi,
852
852
  regexp: Wi,
@@ -1083,7 +1083,7 @@ function In(e, t, n, i) {
1083
1083
  i(o || []);
1084
1084
  });
1085
1085
  }
1086
- function Lt(e) {
1086
+ function zt(e) {
1087
1087
  const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id: a, develop: o } = e, c = _((w) => w.setValidateResult), l = _((w) => w.getProps), d = _((w) => w.setProps), v = y(
1088
1088
  () => be(r, n),
1089
1089
  [r, n]
@@ -1098,10 +1098,10 @@ function Lt(e) {
1098
1098
  return r && a ? ((D = w.propsStore[`${r}_props`]) == null ? void 0 : D[a]) ?? null : null;
1099
1099
  }
1100
1100
  ), g = _((w) => w.getDataSet), f = y(
1101
- () => rt(r, n),
1101
+ () => it(r, n),
1102
1102
  [r, n]
1103
1103
  ), s = y(
1104
- () => n ? rt(r, `${n}_validateAction`) : void 0,
1104
+ () => n ? it(r, `${n}_validateAction`) : void 0,
1105
1105
  [r, n]
1106
1106
  ), m = _(
1107
1107
  (w) => {
@@ -1337,7 +1337,7 @@ const de = (e) => {
1337
1337
  if (e == null || e === "") return 0;
1338
1338
  const t = Number(e);
1339
1339
  return isNaN(t) || !isFinite(t) ? 0 : t;
1340
- }, Et = (e) => e == null ? "" : String(e), Le = (e) => {
1340
+ }, Et = (e) => e == null ? "" : String(e), ze = (e) => {
1341
1341
  if (e == null) return null;
1342
1342
  let t;
1343
1343
  if (e instanceof Date)
@@ -1394,7 +1394,7 @@ const de = (e) => {
1394
1394
  }
1395
1395
  }, ca = (e, t = {}) => {
1396
1396
  try {
1397
- const n = Le(e);
1397
+ const n = ze(e);
1398
1398
  return n ? new Intl.DateTimeFormat("zh-CN", {
1399
1399
  year: "numeric",
1400
1400
  month: "2-digit",
@@ -1406,7 +1406,7 @@ const de = (e) => {
1406
1406
  }
1407
1407
  }, er = (e, t = "YYYY-MM-DD") => {
1408
1408
  try {
1409
- const n = Le(e);
1409
+ const n = ze(e);
1410
1410
  if (!n) return "";
1411
1411
  const i = n.getFullYear(), r = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0"), o = String(n.getHours()).padStart(2, "0"), c = String(n.getMinutes()).padStart(2, "0"), l = String(n.getSeconds()).padStart(2, "0");
1412
1412
  return t.replace("YYYY", String(i)).replace("MM", r).replace("DD", a).replace("HH", o).replace("mm", c).replace("ss", l);
@@ -1415,7 +1415,7 @@ const de = (e) => {
1415
1415
  }
1416
1416
  }, sa = (e, t = "YYYY-MM-DD HH:mm:ss") => er(e, t), la = (e) => {
1417
1417
  try {
1418
- const t = Le(e);
1418
+ const t = ze(e);
1419
1419
  if (!t) return "";
1420
1420
  const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), r = Math.floor(i / 1e3), a = Math.floor(r / 60), o = Math.floor(a / 60), c = Math.floor(o / 24), l = Math.floor(c / 30), d = Math.floor(c / 365);
1421
1421
  return r < 60 ? "刚刚" : a < 60 ? `${a}分钟前` : o < 24 ? `${o}小时前` : c < 30 ? `${c}天前` : l < 12 ? `${l}个月前` : `${d}年前`;
@@ -1433,7 +1433,7 @@ const de = (e) => {
1433
1433
  }
1434
1434
  }, fa = (e) => {
1435
1435
  try {
1436
- const t = Le(e);
1436
+ const t = ze(e);
1437
1437
  if (!t) return "";
1438
1438
  const n = /* @__PURE__ */ new Date();
1439
1439
  if (t > n) return "";
@@ -1601,7 +1601,7 @@ function Ca(e, t, n = {}) {
1601
1601
  return Et(e);
1602
1602
  }
1603
1603
  }
1604
- const ze = {
1604
+ const Le = {
1605
1605
  // 基础颜色
1606
1606
  colorPrimary: "colorPrimary",
1607
1607
  colorSuccess: "colorSuccess",
@@ -1632,7 +1632,7 @@ const ze = {
1632
1632
  colorLink: "colorLink",
1633
1633
  colorLinkHover: "colorLinkHover",
1634
1634
  colorLinkActive: "colorLinkActive"
1635
- }, mc = Object.keys(ze), hc = [
1635
+ }, mc = Object.keys(Le), hc = [
1636
1636
  { label: "主色", value: "colorPrimary" },
1637
1637
  { label: "成功", value: "colorSuccess" },
1638
1638
  { label: "警告", value: "colorWarning" },
@@ -1643,13 +1643,13 @@ const ze = {
1643
1643
  { label: "链接", value: "colorLink" }
1644
1644
  ];
1645
1645
  function nr(e) {
1646
- return ze.hasOwnProperty(e);
1646
+ return Le.hasOwnProperty(e);
1647
1647
  }
1648
1648
  function Ve(e) {
1649
1649
  const { token: t } = Xt.useToken();
1650
1650
  if (e) {
1651
1651
  if (nr(e)) {
1652
- const n = ze[e];
1652
+ const n = Le[e];
1653
1653
  return t[n] || e;
1654
1654
  }
1655
1655
  return e;
@@ -1658,7 +1658,7 @@ function Ve(e) {
1658
1658
  function yc(e, t) {
1659
1659
  if (e) {
1660
1660
  if (nr(e)) {
1661
- const n = ze[e];
1661
+ const n = Le[e];
1662
1662
  return t[n] || e;
1663
1663
  }
1664
1664
  return e;
@@ -1705,8 +1705,8 @@ const gc = ({
1705
1705
  dataSet: v,
1706
1706
  dataSetField: h,
1707
1707
  ...u
1708
- }), H = I(M, B);
1709
- g(a, H);
1708
+ }), P = I(M, B);
1709
+ g(a, P);
1710
1710
  }
1711
1711
  },
1712
1712
  [
@@ -1780,47 +1780,47 @@ const rr = (e) => {
1780
1780
  addonAfter: C,
1781
1781
  addonBefore: w,
1782
1782
  ...D
1783
- } = e, T = Ke(r, a, n), O = T.dataSet, N = T.dataSetField, x = T.sessionId, E = _t(""), k = _t(null), M = _((q) => q.addCommand), B = _((q) => q.getDataSet), H = _((q) => q.setDataSet), P = _((q) => q.getProps), $ = _((q) => q.setProps), z = _((q) => q.setValidateResult), K = y(
1784
- () => rt(x, O),
1783
+ } = e, T = Ke(r, a, n), O = T.dataSet, N = T.dataSetField, x = T.sessionId, E = _t(""), k = _t(null), M = _((W) => W.addCommand), B = _((W) => W.getDataSet), P = _((W) => W.setDataSet), U = _((W) => W.getProps), $ = _((W) => W.setProps), z = _((W) => W.setValidateResult), K = y(
1784
+ () => it(x, O),
1785
1785
  [x, O]
1786
- ), V = _(
1787
- (q) => {
1786
+ ), L = _(
1787
+ (W) => {
1788
1788
  var et;
1789
- return x && t ? ((et = q.propsStore[`${x}_props`]) == null ? void 0 : et[t]) ?? null : null;
1789
+ return x && t ? ((et = W.propsStore[`${x}_props`]) == null ? void 0 : et[t]) ?? null : null;
1790
1790
  }
1791
1791
  ), R = y(
1792
1792
  () => be(x, O),
1793
1793
  [x, O]
1794
- ), L = _(
1795
- (q) => {
1794
+ ), Y = _(
1795
+ (W) => {
1796
1796
  var et;
1797
- return R && N ? ((et = q.validateStore[R]) == null ? void 0 : et[N]) ?? "" : "";
1797
+ return R && N ? ((et = W.validateStore[R]) == null ? void 0 : et[N]) ?? "" : "";
1798
1798
  }
1799
- ), J = _(
1800
- (q) => K && N ? q.getDataSet(K, N) : void 0
1801
- ), Y = y(
1802
- () => O ? rt(x, `${O}_validateAction`) : void 0,
1799
+ ), X = _(
1800
+ (W) => K && N ? W.getDataSet(K, N) : void 0
1801
+ ), q = y(
1802
+ () => O ? it(x, `${O}_validateAction`) : void 0,
1803
1803
  [x, O]
1804
- ), U = _(
1805
- (q) => {
1804
+ ), V = _(
1805
+ (W) => {
1806
1806
  var et;
1807
- return Y ? (et = q.dataSets[Y]) == null ? void 0 : et.validate : void 0;
1807
+ return q ? (et = W.dataSets[q]) == null ? void 0 : et.validate : void 0;
1808
1808
  }
1809
- ), it = y(() => J !== void 0 ? J : (V == null ? void 0 : V.value) !== void 0 ? V.value : d, [J, V == null ? void 0 : V.value, d]), at = y(
1810
- () => Oa(D, V ?? null, { develop: i }),
1811
- [D, V, i]
1812
- ), nt = j(
1813
- (q) => {
1814
- const et = q ?? "";
1809
+ ), nt = y(() => X !== void 0 ? X : (L == null ? void 0 : L.value) !== void 0 ? L.value : d, [X, L == null ? void 0 : L.value, d]), at = y(
1810
+ () => Oa(D, L ?? null, { develop: i }),
1811
+ [D, L, i]
1812
+ ), rt = j(
1813
+ (W) => {
1814
+ const et = W ?? "";
1815
1815
  if (x && O && N && z(
1816
1816
  x,
1817
1817
  O,
1818
1818
  N,
1819
1819
  et
1820
1820
  ), x && t) {
1821
- const X = P(x, t) || {};
1821
+ const Z = U(x, t) || {};
1822
1822
  $(x, t, {
1823
- ...X,
1823
+ ...Z,
1824
1824
  validateStatus: et ? "error" : void 0,
1825
1825
  help: et
1826
1826
  });
@@ -1832,38 +1832,38 @@ const rr = (e) => {
1832
1832
  N,
1833
1833
  t,
1834
1834
  z,
1835
- P,
1835
+ U,
1836
1836
  $
1837
1837
  ]
1838
1838
  ), vt = j(
1839
- (q) => {
1839
+ (W) => {
1840
1840
  const et = Xn(p || []);
1841
1841
  In(
1842
1842
  et,
1843
- q,
1844
- () => nt(""),
1845
- (X) => {
1843
+ W,
1844
+ () => rt(""),
1845
+ (Z) => {
1846
1846
  var ct;
1847
- return nt(((ct = X[0]) == null ? void 0 : ct.message) ?? "");
1847
+ return rt(((ct = Z[0]) == null ? void 0 : ct.message) ?? "");
1848
1848
  }
1849
1849
  );
1850
1850
  },
1851
- [p, nt]
1851
+ [p, rt]
1852
1852
  ), bt = j(
1853
- (q) => {
1854
- const et = q.target.value;
1853
+ (W) => {
1854
+ const et = W.target.value;
1855
1855
  if (E.current = et, l) {
1856
- l(et, q);
1856
+ l(et, W);
1857
1857
  return;
1858
1858
  }
1859
- if (K && N && H(K, N, et), c && x) {
1860
- const { actionName: X, arg: ct } = wt(c, et, {
1859
+ if (K && N && P(K, N, et), c && x) {
1860
+ const { actionName: Z, arg: ct } = wt(c, et, {
1861
1861
  id: t,
1862
1862
  dataSet: O,
1863
1863
  dataSetField: N,
1864
1864
  ...at
1865
1865
  });
1866
- M(x, I(X, ct));
1866
+ M(x, I(Z, ct));
1867
1867
  }
1868
1868
  g && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
1869
1869
  k.current = null, vt(et);
@@ -1873,7 +1873,7 @@ const rr = (e) => {
1873
1873
  l,
1874
1874
  K,
1875
1875
  N,
1876
- H,
1876
+ P,
1877
1877
  c,
1878
1878
  x,
1879
1879
  t,
@@ -1886,8 +1886,8 @@ const rr = (e) => {
1886
1886
  ]
1887
1887
  ), yt = j(() => {
1888
1888
  if (!f) return;
1889
- const q = K && N ? String(B(K, N) ?? "") : E.current;
1890
- vt(q);
1889
+ const W = K && N ? String(B(K, N) ?? "") : E.current;
1890
+ vt(W);
1891
1891
  }, [
1892
1892
  f,
1893
1893
  K,
@@ -1895,14 +1895,14 @@ const rr = (e) => {
1895
1895
  B,
1896
1896
  vt
1897
1897
  ]), tt = j(
1898
- (q) => {
1899
- const X = at.onPressEnter;
1900
- if (X) {
1901
- X(q);
1898
+ (W) => {
1899
+ const Z = at.onPressEnter;
1900
+ if (Z) {
1901
+ Z(W);
1902
1902
  return;
1903
1903
  }
1904
1904
  if (u && x) {
1905
- const { actionName: ct, arg: dt } = wt(u, it, {
1905
+ const { actionName: ct, arg: dt } = wt(u, nt, {
1906
1906
  id: t,
1907
1907
  dataSet: O,
1908
1908
  dataSetField: N,
@@ -1915,7 +1915,7 @@ const rr = (e) => {
1915
1915
  at,
1916
1916
  u,
1917
1917
  x,
1918
- it,
1918
+ nt,
1919
1919
  t,
1920
1920
  O,
1921
1921
  N,
@@ -1928,13 +1928,13 @@ const rr = (e) => {
1928
1928
  return;
1929
1929
  }
1930
1930
  if (S && x) {
1931
- const { actionName: X, arg: ct } = wt(S, "", {
1931
+ const { actionName: Z, arg: ct } = wt(S, "", {
1932
1932
  id: t,
1933
1933
  dataSet: O,
1934
1934
  dataSetField: N,
1935
1935
  ...at
1936
1936
  });
1937
- M(x, I(X, ct));
1937
+ M(x, I(Z, ct));
1938
1938
  }
1939
1939
  }, [
1940
1940
  at,
@@ -1951,20 +1951,20 @@ const rr = (e) => {
1951
1951
  },
1952
1952
  []
1953
1953
  ), At(() => {
1954
- if (U == null || !K || !N)
1954
+ if (V == null || !K || !N)
1955
1955
  return;
1956
- const q = String(B(K, N) ?? "");
1957
- vt(q);
1958
- }, [U, K, N, B, vt]);
1956
+ const W = String(B(K, N) ?? "");
1957
+ vt(W);
1958
+ }, [V, K, N, B, vt]);
1959
1959
  const ot = y(() => ka(h), [h]), Rt = y(
1960
1960
  () => ot ? { components: { Input: ot } } : void 0,
1961
1961
  [ot]
1962
- ), Mt = i ? void 0 : x && O && N ? L : (V == null ? void 0 : V.help) ?? "", G = /* @__PURE__ */ st(fe, { children: [
1962
+ ), Mt = i ? void 0 : x && O && N ? Y : (L == null ? void 0 : L.help) ?? "", G = /* @__PURE__ */ st(fe, { children: [
1963
1963
  /* @__PURE__ */ b(
1964
1964
  Be,
1965
1965
  {
1966
1966
  ...at,
1967
- value: it,
1967
+ value: nt,
1968
1968
  onChange: bt,
1969
1969
  onBlur: yt,
1970
1970
  onPressEnter: tt,
@@ -1997,17 +1997,17 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
1997
1997
  value: s,
1998
1998
  ...m
1999
1999
  }) => {
2000
- const u = _((Y) => Y.addCommand), S = _((Y) => Y.setDataSet), A = _t(null), C = y(
2001
- () => rt(t, i),
2000
+ const u = _((q) => q.addCommand), S = _((q) => q.setDataSet), A = _t(null), C = y(
2001
+ () => it(t, i),
2002
2002
  [t, i]
2003
2003
  ), w = _(
2004
- (Y) => {
2005
- var U;
2006
- return t && e ? ((U = Y.propsStore[`${t}_props`]) == null ? void 0 : U[e]) ?? null : null;
2004
+ (q) => {
2005
+ var V;
2006
+ return t && e ? ((V = q.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
2007
2007
  }
2008
2008
  ), D = _(
2009
- (Y) => C && r ? Y.getDataSet(C, r) : void 0
2010
- ), { validate: T, help: O } = Lt({
2009
+ (q) => C && r ? q.getDataSet(C, r) : void 0
2010
+ ), { validate: T, help: O } = zt({
2011
2011
  rules: a,
2012
2012
  dataSet: i,
2013
2013
  dataSetField: r,
@@ -2015,36 +2015,36 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2015
2015
  id: e,
2016
2016
  develop: n
2017
2017
  }), N = y(() => D !== void 0 ? D : (w == null ? void 0 : w.value) !== void 0 ? w.value : s, [D, w == null ? void 0 : w.value, s]), x = j(
2018
- (Y, U, it) => {
2019
- Y && t && u(t, I(Y, { type: U, value: it }));
2018
+ (q, V, nt) => {
2019
+ q && t && u(t, I(q, { type: V, value: nt }));
2020
2020
  },
2021
2021
  [t, u]
2022
2022
  ), E = j(
2023
- (Y) => {
2023
+ (q) => {
2024
2024
  if (g) {
2025
- g(Y);
2025
+ g(q);
2026
2026
  return;
2027
2027
  }
2028
- C && r && S(C, r, Y), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
2029
- A.current = null, T(Y);
2030
- }, Cn)), x(l, "change", Y);
2028
+ C && r && S(C, r, q), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
2029
+ A.current = null, T(q);
2030
+ }, Cn)), x(l, "change", q);
2031
2031
  },
2032
2032
  [g, C, r, S, c, T, l, x]
2033
2033
  ), k = j(() => {
2034
2034
  o && T(N);
2035
2035
  }, [o, T, N]), M = j(
2036
- (Y) => {
2036
+ (q) => {
2037
2037
  if (m.onPressEnter) {
2038
- m.onPressEnter(Y);
2038
+ m.onPressEnter(q);
2039
2039
  return;
2040
2040
  }
2041
2041
  if (d && t) {
2042
- const { actionName: U, arg: it } = wt(d, N, {
2042
+ const { actionName: V, arg: nt } = wt(d, N, {
2043
2043
  id: e,
2044
2044
  dataSet: i,
2045
2045
  dataSetField: r
2046
2046
  });
2047
- u(t, I(U, it));
2047
+ u(t, I(V, nt));
2048
2048
  }
2049
2049
  },
2050
2050
  [
@@ -2065,12 +2065,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2065
2065
  if (C && r && S(C, r, null), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
2066
2066
  A.current = null, T(null);
2067
2067
  }, Cn)), x(l, "change", null), v && t) {
2068
- const { actionName: Y, arg: U } = wt(v, null, {
2068
+ const { actionName: q, arg: V } = wt(v, null, {
2069
2069
  id: e,
2070
2070
  dataSet: i,
2071
2071
  dataSetField: r
2072
2072
  });
2073
- u(t, I(Y, U));
2073
+ u(t, I(q, V));
2074
2074
  }
2075
2075
  }, [
2076
2076
  g,
@@ -2087,9 +2087,9 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2087
2087
  i,
2088
2088
  r,
2089
2089
  u
2090
- ]), H = j(
2091
- (Y, U) => {
2092
- x(p, "step", { value: Y, type: U.type });
2090
+ ]), P = j(
2091
+ (q, V) => {
2092
+ x(p, "step", { value: q, type: V.type });
2093
2093
  },
2094
2094
  [p, x]
2095
2095
  );
@@ -2101,29 +2101,29 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2101
2101
  ), At(() => {
2102
2102
  f !== void 0 && N === void 0 && C && r && S(C, r, f);
2103
2103
  }, [f, N, C, r, S]);
2104
- const P = y(
2104
+ const U = y(
2105
2105
  () => Qt(m, w ?? void 0),
2106
2106
  [m, w]
2107
- ), { addonBefore: $, addonAfter: z, style: K, suffix: V, ...R } = P, L = y(() => {
2108
- if (!(h && N !== null && N !== void 0)) return V;
2109
- const U = /* @__PURE__ */ b(
2107
+ ), { addonBefore: $, addonAfter: z, style: K, suffix: L, ...R } = U, Y = y(() => {
2108
+ if (!(h && N !== null && N !== void 0)) return L;
2109
+ const V = /* @__PURE__ */ b(
2110
2110
  "span",
2111
2111
  {
2112
2112
  role: "button",
2113
2113
  "aria-label": "clear",
2114
2114
  style: { cursor: "pointer", marginInlineStart: 4 },
2115
- onMouseDown: (it) => it.preventDefault(),
2116
- onClick: (it) => {
2117
- it.stopPropagation(), B();
2115
+ onMouseDown: (nt) => nt.preventDefault(),
2116
+ onClick: (nt) => {
2117
+ nt.stopPropagation(), B();
2118
2118
  },
2119
2119
  children: /* @__PURE__ */ b(Xr, {})
2120
2120
  }
2121
2121
  );
2122
- return V == null || V === !1 ? U : /* @__PURE__ */ st(fe, { children: [
2123
- V,
2124
- U
2122
+ return L == null || L === !1 ? V : /* @__PURE__ */ st(fe, { children: [
2123
+ L,
2124
+ V
2125
2125
  ] });
2126
- }, [h, N, V, B]), J = /* @__PURE__ */ b(
2126
+ }, [h, N, L, B]), X = /* @__PURE__ */ b(
2127
2127
  jn,
2128
2128
  {
2129
2129
  ...R,
@@ -2136,8 +2136,8 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2136
2136
  onChange: E,
2137
2137
  onBlur: k,
2138
2138
  onPressEnter: M,
2139
- onStep: H,
2140
- suffix: L,
2139
+ onStep: P,
2140
+ suffix: Y,
2141
2141
  status: O ? "error" : void 0,
2142
2142
  style: { width: "100%", ...K }
2143
2143
  }
@@ -2161,7 +2161,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2161
2161
  children: $
2162
2162
  }
2163
2163
  ),
2164
- J,
2164
+ X,
2165
2165
  z && /* @__PURE__ */ b(
2166
2166
  "div",
2167
2167
  {
@@ -2179,7 +2179,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2179
2179
  children: z
2180
2180
  }
2181
2181
  )
2182
- ] }) : J,
2182
+ ] }) : X,
2183
2183
  O && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
2184
2184
  ] });
2185
2185
  }, { TextArea: _a } = Be, Ea = 200, bc = ({
@@ -2199,17 +2199,17 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2199
2199
  defaultValue: g,
2200
2200
  ...f
2201
2201
  }) => {
2202
- const s = Ke(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, A = _((P) => P.addCommand), C = _((P) => P.setDataSet), w = _t(null), D = y(
2203
- () => rt(S, m),
2202
+ const s = Ke(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, A = _((U) => U.addCommand), C = _((U) => U.setDataSet), w = _t(null), D = y(
2203
+ () => it(S, m),
2204
2204
  [S, m]
2205
2205
  ), T = _(
2206
- (P) => {
2206
+ (U) => {
2207
2207
  var $;
2208
- return S && e ? (($ = P.propsStore[`${S}_props`]) == null ? void 0 : $[e]) ?? null : null;
2208
+ return S && e ? (($ = U.propsStore[`${S}_props`]) == null ? void 0 : $[e]) ?? null : null;
2209
2209
  }
2210
2210
  ), O = _(
2211
- (P) => D && u ? P.getDataSet(D, u) : void 0
2212
- ), { validate: N, help: x } = Lt({
2211
+ (U) => D && u ? U.getDataSet(D, u) : void 0
2212
+ ), { validate: N, help: x } = zt({
2213
2213
  rules: a,
2214
2214
  dataSet: m,
2215
2215
  dataSetField: u,
@@ -2217,10 +2217,10 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2217
2217
  id: e,
2218
2218
  develop: n
2219
2219
  }), E = y(() => O !== void 0 ? O : (T == null ? void 0 : T.value) !== void 0 ? T.value : p ?? g, [O, T == null ? void 0 : T.value, p, g]), k = j(
2220
- (P) => {
2221
- const $ = P.target.value;
2220
+ (U) => {
2221
+ const $ = U.target.value;
2222
2222
  if (h) {
2223
- h($, P);
2223
+ h($, U);
2224
2224
  return;
2225
2225
  }
2226
2226
  if (D && u && C(D, u, $), l && S) {
@@ -2250,12 +2250,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2250
2250
  ), M = j(() => {
2251
2251
  o && N(E);
2252
2252
  }, [o, N, E]), B = j(
2253
- (P) => {
2253
+ (U) => {
2254
2254
  if (f.onPressEnter) {
2255
- f.onPressEnter(P);
2255
+ f.onPressEnter(U);
2256
2256
  return;
2257
2257
  }
2258
- if (d && S && !P.shiftKey) {
2258
+ if (d && S && !U.shiftKey) {
2259
2259
  const { actionName: $, arg: z } = wt(d, E, {
2260
2260
  id: e,
2261
2261
  dataSet: m,
@@ -2274,18 +2274,18 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2274
2274
  u,
2275
2275
  A
2276
2276
  ]
2277
- ), H = j(() => {
2277
+ ), P = j(() => {
2278
2278
  if (f.onClear) {
2279
2279
  f.onClear();
2280
2280
  return;
2281
2281
  }
2282
2282
  if (v && S) {
2283
- const { actionName: P, arg: $ } = wt(v, "", {
2283
+ const { actionName: U, arg: $ } = wt(v, "", {
2284
2284
  id: e,
2285
2285
  dataSet: m,
2286
2286
  dataSetField: u
2287
2287
  });
2288
- A(S, I(P, $));
2288
+ A(S, I(U, $));
2289
2289
  }
2290
2290
  }, [
2291
2291
  f.onClear,
@@ -2311,7 +2311,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2311
2311
  onChange: k,
2312
2312
  onBlur: M,
2313
2313
  onPressEnter: B,
2314
- onClear: H,
2314
+ onClear: P,
2315
2315
  status: x ? "error" : void 0
2316
2316
  }
2317
2317
  ),
@@ -2335,7 +2335,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2335
2335
  ...f
2336
2336
  }) => {
2337
2337
  const s = _((k) => k.addCommand), m = _((k) => k.setDataSet), u = _t(null), S = y(
2338
- () => rt(t, i),
2338
+ () => it(t, i),
2339
2339
  [t, i]
2340
2340
  ), A = _(
2341
2341
  (k) => {
@@ -2344,7 +2344,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2344
2344
  }
2345
2345
  ), C = _(
2346
2346
  (k) => S && r ? k.getDataSet(S, r) : void 0
2347
- ), { validate: w, help: D } = Lt({
2347
+ ), { validate: w, help: D } = zt({
2348
2348
  rules: a,
2349
2349
  dataSet: i,
2350
2350
  dataSetField: r,
@@ -2359,12 +2359,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2359
2359
  return;
2360
2360
  }
2361
2361
  if (S && r && m(S, r, M), l && t) {
2362
- const { actionName: B, arg: H } = wt(l, M, {
2362
+ const { actionName: B, arg: P } = wt(l, M, {
2363
2363
  id: e,
2364
2364
  dataSet: i,
2365
2365
  dataSetField: r
2366
2366
  });
2367
- s(t, I(B, H));
2367
+ s(t, I(B, P));
2368
2368
  }
2369
2369
  c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
2370
2370
  u.current = null, w(M);
@@ -2459,7 +2459,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2459
2459
  ...h
2460
2460
  }) => {
2461
2461
  const p = _((C) => C.addCommand), g = _((C) => C.getDataSet), f = _((C) => C.setDataSet), s = y(
2462
- () => rt(t, i),
2462
+ () => it(t, i),
2463
2463
  [t, i]
2464
2464
  ), m = y(() => {
2465
2465
  if (s && r) return g(s, r);
@@ -2509,21 +2509,21 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2509
2509
  ...O
2510
2510
  }) => {
2511
2511
  const N = _((tt) => tt.addCommand), x = _((tt) => tt.setDataSet), E = _t(null), k = De(oe), M = y(
2512
- () => rt(t, i),
2512
+ () => it(t, i),
2513
2513
  [t, i]
2514
- ), B = m ?? (k == null ? void 0 : k.index), H = _(
2514
+ ), B = m ?? (k == null ? void 0 : k.index), P = _(
2515
2515
  (tt) => {
2516
2516
  var lt;
2517
2517
  return t && e ? ((lt = tt.propsStore[`${t}_props`]) == null ? void 0 : lt[e]) ?? null : null;
2518
2518
  }
2519
- ), P = _(
2519
+ ), U = _(
2520
2520
  (tt) => M && r ? tt.getDataSet(M, r) : void 0
2521
2521
  ), $ = y(
2522
- () => (H == null ? void 0 : H.optionsCfg) != null ? H.optionsCfg : c,
2523
- [H == null ? void 0 : H.optionsCfg, c]
2522
+ () => (P == null ? void 0 : P.optionsCfg) != null ? P.optionsCfg : c,
2523
+ [P == null ? void 0 : P.optionsCfg, c]
2524
2524
  ), { options: z, loading: K } = Ce(
2525
2525
  D || (a ? o : void 0)
2526
- ), { options: V, loading: R } = mn(
2526
+ ), { options: L, loading: R } = mn(
2527
2527
  $ == null ? void 0 : $.url,
2528
2528
  {
2529
2529
  valueKey: ($ == null ? void 0 : $.codeKey) || "value",
@@ -2532,33 +2532,33 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2532
2532
  params: $ == null ? void 0 : $.params,
2533
2533
  field: $ == null ? void 0 : $.field
2534
2534
  }
2535
- ), L = K || R, { validate: J, help: Y } = Lt({
2535
+ ), Y = K || R, { validate: X, help: q } = zt({
2536
2536
  rules: l,
2537
2537
  dataSet: i,
2538
2538
  dataSetField: r,
2539
2539
  sessionId: t,
2540
2540
  id: e,
2541
2541
  develop: n
2542
- }), U = y(() => P != null && P !== "" ? P : (H == null ? void 0 : H.value) !== void 0 ? H.value : s ?? f, [P, H == null ? void 0 : H.value, s, f]), it = y(
2543
- () => Qt(O, H ?? void 0),
2544
- [O, H]
2545
- ), at = y(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url && V.length > 0 ? V : (D || a && o) && z.length > 0 ? z : g || [], [H == null ? void 0 : H.options, $ == null ? void 0 : $.url, V, D, a, o, z, g]), nt = y(() => {
2546
- if (at.length === 0) return U;
2547
- if (Array.isArray(U))
2548
- return U.map((lt) => {
2542
+ }), V = y(() => U != null && U !== "" ? U : (P == null ? void 0 : P.value) !== void 0 ? P.value : s ?? f, [U, P == null ? void 0 : P.value, s, f]), nt = y(
2543
+ () => Qt(O, P ?? void 0),
2544
+ [O, P]
2545
+ ), at = y(() => P != null && P.options && Array.isArray(P.options) ? P.options : $ != null && $.url && L.length > 0 ? L : (D || a && o) && z.length > 0 ? z : g || [], [P == null ? void 0 : P.options, $ == null ? void 0 : $.url, L, D, a, o, z, g]), rt = y(() => {
2546
+ if (at.length === 0) return V;
2547
+ if (Array.isArray(V))
2548
+ return V.map((lt) => {
2549
2549
  var ot;
2550
2550
  return ((ot = ce(at, lt)) == null ? void 0 : ot.value) ?? lt;
2551
2551
  });
2552
- const tt = ce(at, U);
2553
- return (tt == null ? void 0 : tt.value) ?? U;
2554
- }, [U, at]), vt = j(
2552
+ const tt = ce(at, V);
2553
+ return (tt == null ? void 0 : tt.value) ?? V;
2554
+ }, [V, at]), vt = j(
2555
2555
  (tt, lt) => {
2556
2556
  if (p) {
2557
2557
  p(tt, lt);
2558
2558
  return;
2559
2559
  }
2560
2560
  if (M && r && x(M, r, tt), v && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
2561
- E.current = null, J(tt);
2561
+ E.current = null, X(tt);
2562
2562
  }, ja)), h && t) {
2563
2563
  const { actionName: ot, arg: Rt } = wt(h, tt, {
2564
2564
  id: e,
@@ -2575,7 +2575,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2575
2575
  r,
2576
2576
  x,
2577
2577
  v,
2578
- J,
2578
+ X,
2579
2579
  h,
2580
2580
  t,
2581
2581
  e,
@@ -2583,8 +2583,8 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2583
2583
  N
2584
2584
  ]
2585
2585
  ), bt = j(() => {
2586
- d && J(nt);
2587
- }, [d, J, nt]);
2586
+ d && X(rt);
2587
+ }, [d, X, rt]);
2588
2588
  At(
2589
2589
  () => () => {
2590
2590
  E.current && clearTimeout(E.current);
@@ -2596,20 +2596,20 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2596
2596
  /* @__PURE__ */ b(
2597
2597
  Bn,
2598
2598
  {
2599
- ...it,
2600
- disabled: n ? !1 : it.disabled,
2599
+ ...nt,
2600
+ disabled: n ? !1 : nt.disabled,
2601
2601
  open: n ? !1 : void 0,
2602
- value: nt,
2602
+ value: rt,
2603
2603
  options: at,
2604
2604
  onChange: vt,
2605
2605
  onBlur: bt,
2606
2606
  filterOption: yt,
2607
- loading: L,
2608
- status: Y ? "error" : void 0,
2609
- style: { width: "100%", ...it.style }
2607
+ loading: Y,
2608
+ status: q ? "error" : void 0,
2609
+ style: { width: "100%", ...nt.style }
2610
2610
  }
2611
2611
  ),
2612
- Y && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: Y })
2612
+ q && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: q })
2613
2613
  ] });
2614
2614
  }, xc = ({
2615
2615
  id: e,
@@ -2627,7 +2627,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2627
2627
  ...p
2628
2628
  }) => {
2629
2629
  const g = _((T) => T.addCommand), f = _((T) => T.setDataSet), s = y(
2630
- () => rt(t, i),
2630
+ () => it(t, i),
2631
2631
  [t, i]
2632
2632
  ), m = _(
2633
2633
  (T) => {
@@ -2636,7 +2636,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2636
2636
  }
2637
2637
  ), u = _(
2638
2638
  (T) => s && r ? T.getDataSet(s, r) : void 0
2639
- ), { validate: S, help: A } = Lt({
2639
+ ), { validate: S, help: A } = zt({
2640
2640
  rules: a,
2641
2641
  dataSet: i,
2642
2642
  dataSetField: r,
@@ -2702,7 +2702,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2702
2702
  ...g
2703
2703
  }) => {
2704
2704
  const f = _((x) => x.addCommand), s = _((x) => x.setDataSet), m = y(
2705
- () => rt(t, i),
2705
+ () => it(t, i),
2706
2706
  [t, i]
2707
2707
  ), u = _(
2708
2708
  (x) => {
@@ -2711,7 +2711,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2711
2711
  }
2712
2712
  ), S = _(
2713
2713
  (x) => m && r ? x.getDataSet(m, r) : void 0
2714
- ), { validate: A, help: C } = Lt({
2714
+ ), { validate: A, help: C } = zt({
2715
2715
  rules: c,
2716
2716
  dataSet: i,
2717
2717
  dataSetField: r,
@@ -2762,7 +2762,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2762
2762
  () => Qt(g, u ?? void 0),
2763
2763
  [g, u]
2764
2764
  );
2765
- return /* @__PURE__ */ st("div", { onBlur: O, children: [
2765
+ return /* @__PURE__ */ st("div", { onBlur: O, style: { display: "flex" }, children: [
2766
2766
  /* @__PURE__ */ b(
2767
2767
  Kn,
2768
2768
  {
@@ -2793,11 +2793,11 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2793
2793
  ...g
2794
2794
  }) => {
2795
2795
  const f = _((x) => x.addCommand), s = _((x) => x.getDataSet), m = _((x) => x.setDataSet), u = y(
2796
- () => rt(t, i),
2796
+ () => it(t, i),
2797
2797
  [t, i]
2798
2798
  ), S = y(() => {
2799
2799
  if (u && r) return s(u, r);
2800
- }, [u, r, s]), { validate: A, help: C } = Lt({
2800
+ }, [u, r, s]), { validate: A, help: C } = zt({
2801
2801
  rules: v,
2802
2802
  dataSet: i,
2803
2803
  dataSetField: r,
@@ -2858,7 +2858,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2858
2858
  ...g
2859
2859
  }) => {
2860
2860
  const f = _((x) => x.addCommand), s = _((x) => x.setDataSet), m = y(
2861
- () => rt(t, i),
2861
+ () => it(t, i),
2862
2862
  [t, i]
2863
2863
  ), u = _(
2864
2864
  (x) => {
@@ -2867,7 +2867,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2867
2867
  }
2868
2868
  ), S = _(
2869
2869
  (x) => m && r ? x.getDataSet(m, r) : void 0
2870
- ), { validate: A, help: C } = Lt({
2870
+ ), { validate: A, help: C } = zt({
2871
2871
  rules: c,
2872
2872
  dataSet: i,
2873
2873
  dataSetField: r,
@@ -2941,16 +2941,16 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2941
2941
  ...A
2942
2942
  }) => {
2943
2943
  const C = _((K) => K.addCommand), w = _((K) => K.setDataSet), D = y(
2944
- () => rt(t, i),
2944
+ () => it(t, i),
2945
2945
  [t, i]
2946
2946
  ), T = _(
2947
2947
  (K) => {
2948
- var V;
2949
- return t && e ? ((V = K.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
2948
+ var L;
2949
+ return t && e ? ((L = K.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
2950
2950
  }
2951
2951
  ), O = _(
2952
2952
  (K) => D && r ? K.getDataSet(D, r) : void 0
2953
- ), { validate: N, help: x } = Lt({
2953
+ ), { validate: N, help: x } = zt({
2954
2954
  rules: v,
2955
2955
  dataSet: i,
2956
2956
  dataSetField: r,
@@ -2964,27 +2964,27 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
2964
2964
  labelKey: (o == null ? void 0 : o.labelKey) || "label",
2965
2965
  immediate: !!(o != null && o.url)
2966
2966
  }
2967
- ), B = y(() => T != null && T.options ? T.options : o != null && o.url && M.length > 0 ? M : m && k.length > 0 ? k : a, [T == null ? void 0 : T.options, o == null ? void 0 : o.url, M, m, k, a]), H = y(() => {
2967
+ ), B = y(() => T != null && T.options ? T.options : o != null && o.url && M.length > 0 ? M : m && k.length > 0 ? k : a, [T == null ? void 0 : T.options, o == null ? void 0 : o.url, M, m, k, a]), P = y(() => {
2968
2968
  if (B.length === 0) return E;
2969
2969
  const K = ce(B, E);
2970
2970
  return (K == null ? void 0 : K.value) ?? E;
2971
- }, [E, B]), P = y(
2971
+ }, [E, B]), U = y(
2972
2972
  () => Qt(A, T ?? void 0),
2973
2973
  [A, T]
2974
2974
  ), $ = j(
2975
2975
  (K) => {
2976
- const V = K.target.value;
2976
+ const L = K.target.value;
2977
2977
  if (g) {
2978
- g(V);
2978
+ g(L);
2979
2979
  return;
2980
2980
  }
2981
- if (D && r && w(D, r, V), p && N(V), c && t) {
2982
- const { actionName: R, arg: L } = wt(c, V, {
2981
+ if (D && r && w(D, r, L), p && N(L), c && t) {
2982
+ const { actionName: R, arg: Y } = wt(c, L, {
2983
2983
  id: e,
2984
2984
  dataSet: i,
2985
2985
  dataSetField: r
2986
2986
  });
2987
- C(t, I(R, L));
2987
+ C(t, I(R, Y));
2988
2988
  }
2989
2989
  },
2990
2990
  [
@@ -3000,15 +3000,15 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3000
3000
  C
3001
3001
  ]
3002
3002
  ), z = j(() => {
3003
- h && N(H);
3004
- }, [h, N, H]);
3003
+ h && N(P);
3004
+ }, [h, N, P]);
3005
3005
  return /* @__PURE__ */ st("div", { onBlur: z, children: [
3006
3006
  /* @__PURE__ */ b(
3007
3007
  He.Group,
3008
3008
  {
3009
- ...P,
3010
- disabled: n ? !1 : P.disabled,
3011
- value: H,
3009
+ ...U,
3010
+ disabled: n ? !1 : U.disabled,
3011
+ value: P,
3012
3012
  onChange: $,
3013
3013
  buttonStyle: (T == null ? void 0 : T.buttonStyle) ?? l,
3014
3014
  optionType: (T == null ? void 0 : T.optionType) ?? d,
@@ -3049,17 +3049,17 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3049
3049
  remoteUrl: C,
3050
3050
  ...w
3051
3051
  }) => {
3052
- const D = _((L) => L.addCommand), T = _((L) => L.setDataSet), O = y(
3053
- () => rt(t, i),
3052
+ const D = _((q) => q.addCommand), T = _((q) => q.setDataSet), O = y(
3053
+ () => it(t, i),
3054
3054
  [t, i]
3055
3055
  ), N = _(
3056
- (L) => {
3057
- var J;
3058
- return t && e ? ((J = L.propsStore[`${t}_props`]) == null ? void 0 : J[e]) ?? null : null;
3056
+ (q) => {
3057
+ var V;
3058
+ return t && e ? ((V = q.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
3059
3059
  }
3060
3060
  ), x = _(
3061
- (L) => O && r ? L.getDataSet(O, r) : void 0
3062
- ), { validate: E, help: k } = Lt({
3061
+ (q) => O && r ? q.getDataSet(O, r) : void 0
3062
+ ), { validate: E, help: k } = zt({
3063
3063
  rules: d,
3064
3064
  dataSet: i,
3065
3065
  dataSetField: r,
@@ -3073,59 +3073,63 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3073
3073
  labelKey: (o == null ? void 0 : o.labelKey) || "label",
3074
3074
  immediate: !!(o != null && o.url)
3075
3075
  }
3076
- ), H = y(() => {
3076
+ ), P = y(() => {
3077
3077
  if (!c)
3078
3078
  return x !== void 0 ? !!x : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : f ?? m;
3079
- }, [c, x, N == null ? void 0 : N.checked, f, m]), P = y(() => N != null && N.options ? N.options : o != null && o.url && B.length > 0 ? B : S && M.length > 0 ? M : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, B, S, M, a]), $ = y(() => {
3079
+ }, [c, x, N == null ? void 0 : N.checked, f, m]), U = y(() => N != null && N.options ? N.options : o != null && o.url && B.length > 0 ? B : S && M.length > 0 ? M : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, B, S, M, a]), $ = y(() => {
3080
3080
  if (!c) return [];
3081
- let L = [];
3082
- return Array.isArray(x) ? L = x : Array.isArray(N == null ? void 0 : N.values) ? L = N.values : L = s || [], P.length === 0 ? L : L.map((J) => {
3083
- var Y;
3084
- return ((Y = ce(P, J)) == null ? void 0 : Y.value) ?? J;
3081
+ let q = [];
3082
+ return Array.isArray(x) ? q = x : Array.isArray(N == null ? void 0 : N.values) ? q = N.values : q = s || [], U.length === 0 ? q : q.map((V) => {
3083
+ var nt;
3084
+ return ((nt = ce(U, V)) == null ? void 0 : nt.value) ?? V;
3085
3085
  });
3086
- }, [c, x, N == null ? void 0 : N.values, s, P]), z = y(
3086
+ }, [c, x, N == null ? void 0 : N.values, s, U]), z = y(
3087
3087
  () => Qt(w, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3088
3088
  [w, N]
3089
- ), K = j((L) => {
3090
- const J = L.target.checked;
3089
+ ), L = (z.direction ?? A) === "vertical" ? "vertical" : "horizontal", R = j((q) => {
3090
+ const V = q.target.checked;
3091
3091
  if (p) {
3092
- p(J);
3092
+ p(V);
3093
3093
  return;
3094
3094
  }
3095
- if (O && r && T(O, r, J), h && E(J), l && t) {
3096
- const { actionName: Y, arg: U } = wt(l, J, { id: e, dataSet: i, dataSetField: r });
3097
- D(t, I(Y, U));
3095
+ if (O && r && T(O, r, V), h && E(V), l && t) {
3096
+ const { actionName: nt, arg: at } = wt(l, V, { id: e, dataSet: i, dataSetField: r });
3097
+ D(t, I(nt, at));
3098
3098
  }
3099
- }, [p, O, r, T, h, E, l, t, e, D]), V = j((L) => {
3099
+ }, [p, O, r, T, h, E, l, t, e, D]), Y = j((q) => {
3100
3100
  if (g) {
3101
- g(L);
3101
+ g(q);
3102
3102
  return;
3103
3103
  }
3104
- if (O && r && T(O, r, L), h && E(L), l && t) {
3105
- const { actionName: J, arg: Y } = wt(l, L, { id: e, dataSet: i, dataSetField: r });
3106
- D(t, I(J, Y));
3107
- }
3108
- }, [g, O, r, T, h, E, l, t, e, D]), R = j(() => {
3109
- v && E(c ? $ : H);
3110
- }, [v, E, c, $, H]);
3111
- return c && P.length > 0 ? /* @__PURE__ */ st("div", { onBlur: R, children: [
3112
- /* @__PURE__ */ b(ue.Group, { ...z, value: $, onChange: V, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
3113
- Yt,
3114
- {
3115
- direction: z.direction ?? A,
3116
- wrap: !0,
3117
- children: P.map((L) => /* @__PURE__ */ b(ue, { value: L.value, disabled: L.disabled, children: L.label }, L.value))
3118
- }
3119
- ) }),
3120
- k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
3121
- ] }) : /* @__PURE__ */ st("div", { onBlur: R, children: [
3104
+ if (O && r && T(O, r, q), h && E(q), l && t) {
3105
+ const { actionName: V, arg: nt } = wt(l, q, { id: e, dataSet: i, dataSetField: r });
3106
+ D(t, I(V, nt));
3107
+ }
3108
+ }, [g, O, r, T, h, E, l, t, e, D]), X = j(() => {
3109
+ v && E(c ? $ : P);
3110
+ }, [v, E, c, $, P]);
3111
+ if (c && U.length > 0) {
3112
+ const { indeterminate: q, direction: V, ...nt } = z;
3113
+ return /* @__PURE__ */ st("div", { onBlur: X, children: [
3114
+ /* @__PURE__ */ b(ue.Group, { ...nt, value: $, onChange: Y, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
3115
+ Yt,
3116
+ {
3117
+ orientation: L,
3118
+ wrap: !0,
3119
+ children: U.map((at) => /* @__PURE__ */ b(ue, { value: at.value, disabled: at.disabled, children: at.label }, at.value))
3120
+ }
3121
+ ) }),
3122
+ k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
3123
+ ] });
3124
+ }
3125
+ return /* @__PURE__ */ st("div", { onBlur: X, children: [
3122
3126
  /* @__PURE__ */ b(
3123
3127
  ue,
3124
3128
  {
3125
3129
  ...z,
3126
3130
  disabled: n ? !1 : z.disabled,
3127
- checked: H,
3128
- onChange: K,
3131
+ checked: P,
3132
+ onChange: R,
3129
3133
  children: u
3130
3134
  }
3131
3135
  ),
@@ -3147,7 +3151,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3147
3151
  ...p
3148
3152
  }) => {
3149
3153
  const g = _((O) => O.addCommand), f = _((O) => O.setDataSet), s = y(
3150
- () => rt(t, i),
3154
+ () => it(t, i),
3151
3155
  [t, i]
3152
3156
  ), m = _(
3153
3157
  (O) => {
@@ -3156,7 +3160,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3156
3160
  }
3157
3161
  ), u = _(
3158
3162
  (O) => s && r ? O.getDataSet(s, r) : void 0
3159
- ), { validate: S, help: A } = Lt({
3163
+ ), { validate: S, help: A } = zt({
3160
3164
  rules: o,
3161
3165
  dataSet: i,
3162
3166
  dataSetField: r,
@@ -3210,7 +3214,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3210
3214
  ...d
3211
3215
  }) => {
3212
3216
  const v = _((u) => u.addCommand), h = _((u) => u.getDataSet), p = _((u) => u.setDataSet), g = y(
3213
- () => rt(t, i),
3217
+ () => it(t, i),
3214
3218
  [t, i]
3215
3219
  ), f = y(() => {
3216
3220
  if (g && r) return h(g, r);
@@ -3235,7 +3239,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3235
3239
  };
3236
3240
  return l && l.length && (d.children = l), d;
3237
3241
  });
3238
- }, Tn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], La = (e, t) => {
3242
+ }, Tn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], za = (e, t) => {
3239
3243
  const n = (i, r, a = []) => {
3240
3244
  for (const o of i) {
3241
3245
  const c = o.value, l = [...a, c];
@@ -3268,11 +3272,11 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3268
3272
  ...s
3269
3273
  }) => {
3270
3274
  const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S = _t(null), [A, C] = mt([]), [w, D] = mt(!1), T = y(
3271
- () => rt(t, i),
3275
+ () => it(t, i),
3272
3276
  [t, i]
3273
3277
  ), O = _(
3274
3278
  ($) => T && r ? $.getDataSet(T, r) : void 0
3275
- ), { validate: N, help: x, validateStatus: E } = Lt({
3279
+ ), { validate: N, help: x, validateStatus: E } = zt({
3276
3280
  rules: o,
3277
3281
  dataSet: i,
3278
3282
  dataSetField: r,
@@ -3281,20 +3285,20 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3281
3285
  develop: n
3282
3286
  }), k = y(() => (a == null ? void 0 : a.url) && A.length > 0, [a == null ? void 0 : a.url, A.length]), M = y(() => {
3283
3287
  let $ = O ?? g ?? p ?? [];
3284
- return typeof $ == "string" ? k ? Tn($).map((K) => La(K, A)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Nn($) && k ? $.map((K) => Tn(K)).filter((K) => Array.isArray(K) && K.length > 0) : kn($) && k ? $.filter((z) => Array.isArray(z) && z.length > 0) : $;
3288
+ return typeof $ == "string" ? k ? Tn($).map((K) => za(K, A)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Nn($) && k ? $.map((K) => Tn(K)).filter((K) => Array.isArray(K) && K.length > 0) : kn($) && k ? $.filter((z) => Array.isArray(z) && z.length > 0) : $;
3285
3289
  }, [O, g, p, k, A]), B = y(() => a != null && a.url && A.length > 0 ? A : h || [], [a == null ? void 0 : a.url, A, h]);
3286
3290
  At(() => {
3287
3291
  (async () => {
3288
3292
  if (a != null && a.url) {
3289
3293
  D(!0);
3290
3294
  try {
3291
- const z = await ae({ url: a.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], V = a.codeKey || "value", R = a.labelKey || "label", L = a.childrenKey || "children", J = a.maxLevel || 5, Y = ir(K, {
3292
- codeKey: V,
3295
+ const z = await ae({ url: a.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], L = a.codeKey || "value", R = a.labelKey || "label", Y = a.childrenKey || "children", X = a.maxLevel || 5, q = ir(K, {
3296
+ codeKey: L,
3293
3297
  labelKey: R,
3294
- childrenKey: L,
3295
- maxLevel: J
3298
+ childrenKey: Y,
3299
+ maxLevel: X
3296
3300
  });
3297
- C(Y);
3301
+ C(q);
3298
3302
  } catch (z) {
3299
3303
  console.error("Failed to load remote options:", z), C([]);
3300
3304
  } finally {
@@ -3303,22 +3307,22 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3303
3307
  }
3304
3308
  })();
3305
3309
  }, [a == null ? void 0 : a.url, a == null ? void 0 : a.codeKey, a == null ? void 0 : a.labelKey, a == null ? void 0 : a.childrenKey, a == null ? void 0 : a.maxLevel]);
3306
- const H = j(
3310
+ const P = j(
3307
3311
  ($, z) => {
3308
3312
  if (v) {
3309
3313
  v($, z);
3310
3314
  return;
3311
3315
  }
3312
3316
  let K = $;
3313
- if (Nn($) && k ? K = String($[$.length - 1] || "") : kn($) && k && (K = $.map((V) => V.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
3317
+ if (Nn($) && k ? K = String($[$.length - 1] || "") : kn($) && k && (K = $.map((L) => L.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
3314
3318
  S.current = null, N($);
3315
3319
  }, Ka)), d && t) {
3316
- const { actionName: V, arg: R } = wt(d, $, {
3320
+ const { actionName: L, arg: R } = wt(d, $, {
3317
3321
  id: e,
3318
3322
  dataSet: i,
3319
3323
  dataSetField: r
3320
3324
  });
3321
- m(t, I(V, R));
3325
+ m(t, I(L, R));
3322
3326
  }
3323
3327
  },
3324
3328
  [
@@ -3334,7 +3338,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3334
3338
  m,
3335
3339
  k
3336
3340
  ]
3337
- ), P = j(() => {
3341
+ ), U = j(() => {
3338
3342
  c && N(M);
3339
3343
  }, [c, N, M]);
3340
3344
  return At(
@@ -3351,8 +3355,8 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3351
3355
  open: n ? !1 : void 0,
3352
3356
  value: M,
3353
3357
  options: B,
3354
- onChange: H,
3355
- onBlur: P,
3358
+ onChange: P,
3359
+ onBlur: U,
3356
3360
  loading: w,
3357
3361
  status: E,
3358
3362
  style: { width: "100%", ...s.style }
@@ -3382,7 +3386,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3382
3386
  ...S
3383
3387
  }) => {
3384
3388
  const A = _((z) => z.addCommand), C = _((z) => z.setDataSet), w = y(
3385
- () => rt(t, i),
3389
+ () => it(t, i),
3386
3390
  [t, i]
3387
3391
  ), D = _(
3388
3392
  (z) => {
@@ -3391,7 +3395,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3391
3395
  }
3392
3396
  ), T = _(
3393
3397
  (z) => w && r ? z.getDataSet(w, r) : void 0
3394
- ), { validate: O, help: N } = Lt({
3398
+ ), { validate: O, help: N } = zt({
3395
3399
  rules: s,
3396
3400
  dataSet: i,
3397
3401
  dataSetField: r,
@@ -3405,18 +3409,18 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3405
3409
  () => Qt(S, D ?? void 0),
3406
3410
  [S, D]
3407
3411
  ), k = j(
3408
- (z, K, V) => {
3412
+ (z, K, L) => {
3409
3413
  if (o) {
3410
- o(z, K, V);
3414
+ o(z, K, L);
3411
3415
  return;
3412
3416
  }
3413
3417
  if (w && r && C(w, r, z), m && O(z), a && t) {
3414
- const { actionName: R, arg: L } = wt(a, z, {
3418
+ const { actionName: R, arg: Y } = wt(a, z, {
3415
3419
  id: e,
3416
3420
  dataSet: i,
3417
3421
  dataSetField: r
3418
3422
  });
3419
- A(t, I(R, L));
3423
+ A(t, I(R, Y));
3420
3424
  }
3421
3425
  },
3422
3426
  [o, w, r, C, m, O, a, t, e, A]
@@ -3425,17 +3429,17 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3425
3429
  }, [u, O, x]), B = y(() => {
3426
3430
  if (!f) return;
3427
3431
  const z = {};
3428
- return Object.entries(f).forEach(([K, V]) => {
3429
- V !== "" && V !== void 0 && V !== null && (z[K] = V);
3432
+ return Object.entries(f).forEach(([K, L]) => {
3433
+ L !== "" && L !== void 0 && L !== null && (z[K] = L);
3430
3434
  }), Object.keys(z).length > 0 ? z : void 0;
3431
- }, [f]), H = y(() => {
3435
+ }, [f]), P = y(() => {
3432
3436
  if (B)
3433
3437
  return {
3434
3438
  components: {
3435
3439
  TreeSelect: B
3436
3440
  }
3437
3441
  };
3438
- }, [B]), P = N ? "error" : void 0, $ = /* @__PURE__ */ st("div", { onBlur: M, children: [
3442
+ }, [B]), U = N ? "error" : void 0, $ = /* @__PURE__ */ st("div", { onBlur: M, children: [
3439
3443
  /* @__PURE__ */ b(
3440
3444
  br,
3441
3445
  {
@@ -3448,12 +3452,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3448
3452
  style: { width: "100%", ...E.style },
3449
3453
  styles: p,
3450
3454
  classNames: g,
3451
- status: P
3455
+ status: U
3452
3456
  }
3453
3457
  ),
3454
3458
  N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
3455
3459
  ] });
3456
- return H ? /* @__PURE__ */ b(Kt, { theme: H, children: $ }) : $;
3460
+ return P ? /* @__PURE__ */ b(Kt, { theme: P, children: $ }) : $;
3457
3461
  }, $c = ({
3458
3462
  id: e,
3459
3463
  sessionId: t,
@@ -3474,88 +3478,88 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3474
3478
  ...m
3475
3479
  }) => {
3476
3480
  const u = Ke(i, r, t), S = u.dataSet, A = u.dataSetField, C = u.sessionId, w = _((G) => G.addCommand), D = _((G) => G.setDataSet), T = y(
3477
- () => rt(C, S),
3481
+ () => it(C, S),
3478
3482
  [C, S]
3479
3483
  ), O = _(
3480
3484
  (G) => {
3481
- var q;
3482
- return C && e ? ((q = G.propsStore[`${C}_props`]) == null ? void 0 : q[e]) ?? null : null;
3485
+ var W;
3486
+ return C && e ? ((W = G.propsStore[`${C}_props`]) == null ? void 0 : W[e]) ?? null : null;
3483
3487
  }
3484
3488
  ), N = _(
3485
3489
  (G) => T && A ? G.getDataSet(T, A) : void 0
3486
- ), { validate: x, help: E } = Lt({
3490
+ ), { validate: x, help: E } = zt({
3487
3491
  rules: c,
3488
3492
  dataSet: S,
3489
3493
  dataSetField: A,
3490
3494
  sessionId: C,
3491
3495
  id: e,
3492
3496
  develop: n
3493
- }), k = j((G) => G.map((q) => {
3497
+ }), k = j((G) => G.map((W) => {
3494
3498
  var et;
3495
- return ((et = q == null ? void 0 : q.response) == null ? void 0 : et.src) ?? (q == null ? void 0 : q.src) ?? (q == null ? void 0 : q.url) ?? (q == null ? void 0 : q.thumbUrl) ?? "";
3496
- }).filter((q) => q && typeof q == "string"), []), M = j((G) => {
3497
- const q = Jt().viewRes, et = (X) => (q ? q(X) : X) || X;
3498
- return G.map((X, ct) => {
3499
- const dt = et(X);
3499
+ return ((et = W == null ? void 0 : W.response) == null ? void 0 : et.src) ?? (W == null ? void 0 : W.src) ?? (W == null ? void 0 : W.url) ?? (W == null ? void 0 : W.thumbUrl) ?? "";
3500
+ }).filter((W) => W && typeof W == "string"), []), M = j((G) => {
3501
+ const W = Jt().viewRes, et = (Z) => (W ? W(Z) : Z) || Z;
3502
+ return G.map((Z, ct) => {
3503
+ const dt = et(Z);
3500
3504
  return {
3501
- uid: `src-${ct}-${X}`,
3502
- name: X.split("/").pop() || X,
3505
+ uid: `src-${ct}-${Z}`,
3506
+ name: Z.split("/").pop() || Z,
3503
3507
  url: dt,
3504
3508
  thumbUrl: dt,
3505
3509
  status: "done",
3506
- response: { src: X }
3510
+ response: { src: Z }
3507
3511
  };
3508
3512
  });
3509
3513
  }, []), B = j((G) => {
3510
- const q = Jt().viewRes, et = (X) => (X && q ? q(X) : X) || X;
3511
- return G.map((X) => {
3512
- var Z;
3513
- const ct = ((Z = X == null ? void 0 : X.response) == null ? void 0 : Z.src) ?? (X == null ? void 0 : X.src) ?? (X == null ? void 0 : X.url) ?? (X == null ? void 0 : X.thumbUrl) ?? "", dt = typeof ct == "string" ? et(ct) : ct, Dt = {};
3514
- for (const gt of Object.keys(X)) {
3515
- const xt = X[gt];
3514
+ const W = Jt().viewRes, et = (Z) => (Z && W ? W(Z) : Z) || Z;
3515
+ return G.map((Z) => {
3516
+ var Q;
3517
+ const ct = ((Q = Z == null ? void 0 : Z.response) == null ? void 0 : Q.src) ?? (Z == null ? void 0 : Z.src) ?? (Z == null ? void 0 : Z.url) ?? (Z == null ? void 0 : Z.thumbUrl) ?? "", dt = typeof ct == "string" ? et(ct) : ct, Dt = {};
3518
+ for (const gt of Object.keys(Z)) {
3519
+ const xt = Z[gt];
3516
3520
  xt instanceof File ? Dt[gt] = xt : xt && typeof xt == "object" && !Array.isArray(xt) ? Dt[gt] = { ...xt } : Dt[gt] = xt;
3517
3521
  }
3518
3522
  return dt && typeof dt == "string" && (Dt.url = dt, Dt.thumbUrl = dt), Dt;
3519
3523
  });
3520
- }, []), [H, P] = mt(null), $ = y(() => {
3524
+ }, []), [P, U] = mt(null), $ = y(() => {
3521
3525
  const G = N ?? (O == null ? void 0 : O.fileList) ?? h;
3522
3526
  if (G != null) {
3523
3527
  if (typeof G == "string" && G) return M([G]);
3524
3528
  if (Array.isArray(G))
3525
3529
  return G.length > 0 && typeof G[0] == "string" ? M(G) : B(G);
3526
3530
  }
3527
- }, [N, O == null ? void 0 : O.fileList, h, M, B]), z = H ?? $, K = y(
3531
+ }, [N, O == null ? void 0 : O.fileList, h, M, B]), z = P ?? $, K = y(
3528
3532
  () => Qt(m, O ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
3529
3533
  [m, O]
3530
- ), V = j((G) => G.size / 1024 / 1024 < f ? !0 : (ke.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (G) => {
3531
- const { file: q, onSuccess: et, onError: X, onProgress: ct } = G;
3534
+ ), L = j((G) => G.size / 1024 / 1024 < f ? !0 : (ke.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (G) => {
3535
+ const { file: W, onSuccess: et, onError: Z, onProgress: ct } = G;
3532
3536
  if (Jt().upload)
3533
3537
  try {
3534
3538
  ct == null || ct({ percent: 30 });
3535
- const Dt = await tr(q, {
3539
+ const Dt = await tr(W, {
3536
3540
  url: g,
3537
3541
  headers: {
3538
3542
  Authorization: cn() ? `Bearer ${cn()}` : ""
3539
3543
  }
3540
3544
  });
3541
- ct == null || ct({ percent: 100 }), et == null || et(Dt, q);
3545
+ ct == null || ct({ percent: 100 }), et == null || et(Dt, W);
3542
3546
  } catch (Dt) {
3543
- X == null || X(Dt), ke.error("上传失败");
3547
+ Z == null || Z(Dt), ke.error("上传失败");
3544
3548
  }
3545
3549
  else
3546
- X == null || X(new Error("Upload handler not configured")), ke.warning("上传功能未配置");
3547
- }, [g]), L = j(
3550
+ Z == null || Z(new Error("Upload handler not configured")), ke.warning("上传功能未配置");
3551
+ }, [g]), Y = j(
3548
3552
  (G) => {
3549
3553
  if (v) {
3550
3554
  v(G);
3551
3555
  return;
3552
3556
  }
3553
- const q = Array.isArray(G.fileList) ? B(G.fileList) : G.fileList, et = Array.isArray(q) ? k(q) : [], X = Array.isArray(q) && q.some((dt) => (dt == null ? void 0 : dt.status) === "uploading");
3554
- T && A && (et.length > 0 || !Array.isArray(q) || q.length === 0) ? (D(T, A, et), P(null)) : X ? P(q) : q.length === 0 && P(null), d && x(q), a && C && w(
3557
+ const W = Array.isArray(G.fileList) ? B(G.fileList) : G.fileList, et = Array.isArray(W) ? k(W) : [], Z = Array.isArray(W) && W.some((dt) => (dt == null ? void 0 : dt.status) === "uploading");
3558
+ T && A && (et.length > 0 || !Array.isArray(W) || W.length === 0) ? (D(T, A, et), U(null)) : Z ? U(W) : W.length === 0 && U(null), d && x(W), a && C && w(
3555
3559
  C,
3556
3560
  I(a, {
3557
3561
  file: G.file,
3558
- fileList: q,
3562
+ fileList: W,
3559
3563
  src: et
3560
3564
  })
3561
3565
  );
@@ -3573,44 +3577,44 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3573
3577
  B,
3574
3578
  k
3575
3579
  ]
3576
- ), J = j(() => {
3580
+ ), X = j(() => {
3577
3581
  l && x(z);
3578
- }, [l, x, z]), Y = j((G) => {
3582
+ }, [l, x, z]), q = j((G) => {
3579
3583
  var dt;
3580
- const q = G.url || G.thumbUrl;
3581
- if (!q) return "";
3582
- const et = ((dt = G.response) == null ? void 0 : dt.src) ?? (typeof q == "string" ? q : ""), X = Jt().viewRes, ct = et && X ? X(et) : q;
3583
- return String(ct).replace(/([?&])download=1(&|$)/, (Dt, Z, gt) => gt ? Z : "");
3584
- }, []), U = j((G) => {
3585
- var X, ct;
3586
- const q = ((X = G.response) == null ? void 0 : X.src) ?? G.name ?? "", et = ((ct = String(q).split(".").pop()) == null ? void 0 : ct.toLowerCase()) || "";
3587
- return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(Y(G));
3588
- }, [Y]), [it, at] = mt({
3584
+ const W = G.url || G.thumbUrl;
3585
+ if (!W) return "";
3586
+ const et = ((dt = G.response) == null ? void 0 : dt.src) ?? (typeof W == "string" ? W : ""), Z = Jt().viewRes, ct = et && Z ? Z(et) : W;
3587
+ return String(ct).replace(/([?&])download=1(&|$)/, (Dt, Q, gt) => gt ? Q : "");
3588
+ }, []), V = j((G) => {
3589
+ var Z, ct;
3590
+ const W = ((Z = G.response) == null ? void 0 : Z.src) ?? G.name ?? "", et = ((ct = String(W).split(".").pop()) == null ? void 0 : ct.toLowerCase()) || "";
3591
+ return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(q(G));
3592
+ }, [q]), [nt, at] = mt({
3589
3593
  url: "",
3590
3594
  name: "",
3591
3595
  urls: [],
3592
3596
  current: 0,
3593
3597
  open: !1
3594
- }), nt = j((G) => {
3595
- const q = Y(G);
3596
- if (q)
3597
- if (U(G) && (z != null && z.length)) {
3598
- const et = z.filter((dt) => U(dt)), X = et.map((dt) => Y(dt)).filter(Boolean), ct = et.findIndex((dt) => (dt.uid || dt.url) === (G.uid || G.url));
3599
- at({ url: q, name: G.name, urls: X, current: ct >= 0 ? ct : 0, open: !0 });
3600
- } else U(G) || window.open(q, "_blank");
3601
- }, [Y, U, z]), bt = !!Jt().upload && !s, yt = K, tt = yt.buttonText ?? o, lt = yt.listType ?? m.listType, ot = yt.maxCount, Rt = (z == null ? void 0 : z.length) ?? 0, Mt = typeof ot == "number" && Rt >= ot, Bt = j(
3602
- (G) => Mt ? (ke.warning(`最多只能上传 ${ot} 个文件`), !1) : V(G),
3603
- [Mt, ot, V]
3598
+ }), rt = j((G) => {
3599
+ const W = q(G);
3600
+ if (W)
3601
+ if (V(G) && (z != null && z.length)) {
3602
+ const et = z.filter((dt) => V(dt)), Z = et.map((dt) => q(dt)).filter(Boolean), ct = et.findIndex((dt) => (dt.uid || dt.url) === (G.uid || G.url));
3603
+ at({ url: W, name: G.name, urls: Z, current: ct >= 0 ? ct : 0, open: !0 });
3604
+ } else V(G) || window.open(W, "_blank");
3605
+ }, [q, V, z]), bt = !!Jt().upload && !s, yt = K, tt = yt.buttonText ?? o, lt = yt.listType ?? m.listType, ot = yt.maxCount, Rt = (z == null ? void 0 : z.length) ?? 0, Mt = typeof ot == "number" && Rt >= ot, Bt = j(
3606
+ (G) => Mt ? (ke.warning(`最多只能上传 ${ot} 个文件`), !1) : L(G),
3607
+ [Mt, ot, L]
3604
3608
  );
3605
- return /* @__PURE__ */ st("div", { onBlur: J, children: [
3609
+ return /* @__PURE__ */ st("div", { onBlur: X, children: [
3606
3610
  /* @__PURE__ */ b(
3607
3611
  Sr,
3608
3612
  {
3609
3613
  ...K,
3610
3614
  disabled: n ? !1 : K.disabled,
3611
3615
  fileList: z,
3612
- onChange: L,
3613
- onPreview: nt,
3616
+ onChange: Y,
3617
+ onPreview: rt,
3614
3618
  beforeUpload: Bt,
3615
3619
  customRequest: bt ? R : void 0,
3616
3620
  action: bt ? void 0 : s || g,
@@ -3622,35 +3626,35 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3622
3626
  }
3623
3627
  ),
3624
3628
  E && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E }),
3625
- it.url && /* @__PURE__ */ b("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: it.urls.length > 1 ? /* @__PURE__ */ b(
3629
+ nt.url && /* @__PURE__ */ b("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: nt.urls.length > 1 ? /* @__PURE__ */ b(
3626
3630
  Zt.PreviewGroup,
3627
3631
  {
3628
3632
  preview: {
3629
- current: it.current,
3630
- onOpenChange: (G) => !G && at((q) => ({ ...q, open: !1 }))
3633
+ current: nt.current,
3634
+ onOpenChange: (G) => !G && at((W) => ({ ...W, open: !1 }))
3631
3635
  },
3632
- children: it.urls.map((G, q) => /* @__PURE__ */ b(
3636
+ children: nt.urls.map((G, W) => /* @__PURE__ */ b(
3633
3637
  Zt,
3634
3638
  {
3635
3639
  src: G,
3636
3640
  style: { width: 1, height: 1 },
3637
3641
  preview: {
3638
- open: it.open && it.current === q,
3639
- onOpenChange: (et) => !et && at((X) => ({ ...X, open: !1 }))
3642
+ open: nt.open && nt.current === W,
3643
+ onOpenChange: (et) => !et && at((Z) => ({ ...Z, open: !1 }))
3640
3644
  }
3641
3645
  },
3642
- q
3646
+ W
3643
3647
  ))
3644
3648
  }
3645
3649
  ) : /* @__PURE__ */ b(
3646
3650
  Zt,
3647
3651
  {
3648
- src: it.url,
3649
- alt: it.name,
3652
+ src: nt.url,
3653
+ alt: nt.name,
3650
3654
  style: { width: 1, height: 1 },
3651
3655
  preview: {
3652
- open: it.open,
3653
- onOpenChange: (G) => !G && at((q) => ({ ...q, open: !1 }))
3656
+ open: nt.open,
3657
+ onOpenChange: (G) => !G && at((W) => ({ ...W, open: !1 }))
3654
3658
  }
3655
3659
  }
3656
3660
  ) })
@@ -3675,7 +3679,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3675
3679
  ...s
3676
3680
  }) => {
3677
3681
  const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), A = y(
3678
- () => rt(t, i),
3682
+ () => it(t, i),
3679
3683
  [t, i]
3680
3684
  ), [C, w] = mt(h || []), [, D] = mt(!1), T = Wt.useRef(void 0), { get: O } = na(), N = y(() => {
3681
3685
  if (A && r) return u(A, r);
@@ -3683,9 +3687,9 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3683
3687
  if (!(g != null && g.queryApi)) {
3684
3688
  h && w(
3685
3689
  h.filter(
3686
- (H) => {
3687
- var P, $;
3688
- return ((P = H.value) == null ? void 0 : P.toString().toLowerCase().includes(B.toLowerCase())) || (($ = H.label) == null ? void 0 : $.toString().toLowerCase().includes(B.toLowerCase()));
3690
+ (P) => {
3691
+ var U, $;
3692
+ return ((U = P.value) == null ? void 0 : U.toString().toLowerCase().includes(B.toLowerCase())) || (($ = P.label) == null ? void 0 : $.toString().toLowerCase().includes(B.toLowerCase()));
3689
3693
  }
3690
3694
  )
3691
3695
  );
@@ -3695,21 +3699,21 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3695
3699
  if (g != null && g.queryApi) {
3696
3700
  D(!0);
3697
3701
  try {
3698
- const { queryApi: H, keyWordParamName: P = "keyword", valueKey: $ = "value", labelKey: z = "label", fixedParams: K = [] } = g, V = {};
3699
- P && (V[P] = B), Array.isArray(K) && K.forEach((Y) => {
3700
- Y.key && (V[Y.key] = Y.value);
3702
+ const { queryApi: P, keyWordParamName: U = "keyword", valueKey: $ = "value", labelKey: z = "label", fixedParams: K = [] } = g, L = {};
3703
+ U && (L[U] = B), Array.isArray(K) && K.forEach((q) => {
3704
+ q.key && (L[q.key] = q.value);
3701
3705
  });
3702
- const R = await O(H, V);
3703
- let L = [];
3704
- Array.isArray(R) ? L = R : R && Array.isArray(R.data) ? L = R.data : R && R.data && Array.isArray(R.data.records) ? L = R.data.records : R && R.result && Array.isArray(R.result) && (L = R.result);
3705
- const J = L.map((Y) => ({
3706
- value: Y[$],
3707
- label: Y[z] || Y[$],
3708
- ...Y
3706
+ const R = await O(P, L);
3707
+ let Y = [];
3708
+ Array.isArray(R) ? Y = R : R && Array.isArray(R.data) ? Y = R.data : R && R.data && Array.isArray(R.data.records) ? Y = R.data.records : R && R.result && Array.isArray(R.result) && (Y = R.result);
3709
+ const X = Y.map((q) => ({
3710
+ value: q[$],
3711
+ label: q[z] || q[$],
3712
+ ...q
3709
3713
  }));
3710
- w(J);
3711
- } catch (H) {
3712
- console.error("Failed to fetch remote options:", H), w([]);
3714
+ w(X);
3715
+ } catch (P) {
3716
+ console.error("Failed to fetch remote options:", P), w([]);
3713
3717
  } finally {
3714
3718
  D(!1);
3715
3719
  }
@@ -3725,15 +3729,15 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3725
3729
  return;
3726
3730
  }
3727
3731
  if (A && r && S(A, r, B), a && t) {
3728
- const { actionName: H, arg: P } = wt(a, B, { id: e, dataSet: i, dataSetField: r });
3729
- m(t, I(H, P));
3732
+ const { actionName: P, arg: U } = wt(a, B, { id: e, dataSet: i, dataSetField: r });
3733
+ m(t, I(P, U));
3730
3734
  }
3731
- }, [c, A, r, S, a, t, e, m]), M = j((B, H) => {
3735
+ }, [c, A, r, S, a, t, e, m]), M = j((B, P) => {
3732
3736
  if (l) {
3733
- l(B, H);
3737
+ l(B, P);
3734
3738
  return;
3735
3739
  }
3736
- o && t && m(t, I(o, { value: B, option: H }));
3740
+ o && t && m(t, I(o, { value: B, option: P }));
3737
3741
  }, [l, o, t, m]);
3738
3742
  return /* @__PURE__ */ b(
3739
3743
  wr,
@@ -3767,7 +3771,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3767
3771
  ...f
3768
3772
  }) => {
3769
3773
  const [s] = Re.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), S = y(
3770
- () => rt(t, i),
3774
+ () => it(t, i),
3771
3775
  [t, i]
3772
3776
  ), A = (w) => {
3773
3777
  if (h) {
@@ -3834,26 +3838,26 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3834
3838
  token: x,
3835
3839
  ...E
3836
3840
  }) => {
3837
- const k = _((tt) => tt.addCommand), M = _((tt) => tt.getDataSet), B = _((tt) => tt.setDataSet), H = y(
3838
- () => rt(t, i),
3841
+ const k = _((tt) => tt.addCommand), M = _((tt) => tt.getDataSet), B = _((tt) => tt.setDataSet), P = y(
3842
+ () => it(t, i),
3839
3843
  [t, i]
3840
- ), P = y(() => Ht(N, {}), [N]), $ = y(() => Ht(x, {}), [x]), z = y(() => Ht(f, ["源列表", "目标列表"]), [f]), K = y(() => Ht(s, [">", "<"]), [s]), V = y(() => Ht(m, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [m]), R = y(() => Ht(p, !1), [p]), L = y(() => {
3841
- if (H && r) {
3842
- const tt = M(H, r);
3844
+ ), U = y(() => Ht(N, {}), [N]), $ = y(() => Ht(x, {}), [x]), z = y(() => Ht(f, ["源列表", "目标列表"]), [f]), K = y(() => Ht(s, [">", "<"]), [s]), L = y(() => Ht(m, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [m]), R = y(() => Ht(p, !1), [p]), Y = y(() => {
3845
+ if (P && r) {
3846
+ const tt = M(P, r);
3843
3847
  if (Array.isArray(tt)) return tt;
3844
3848
  }
3845
- }, [H, r, M]), J = y(() => {
3846
- if (H && r) {
3847
- const tt = M(H, `${r}.dataSource`);
3849
+ }, [P, r, M]), X = y(() => {
3850
+ if (P && r) {
3851
+ const tt = M(P, `${r}.dataSource`);
3848
3852
  if (Array.isArray(tt)) return tt;
3849
3853
  }
3850
- }, [H, r, M]), Y = y(() => n ? J ?? Ht(a, []) : H ? J ?? [] : Ht(a, []), [n, H, J, a]), U = y(() => n ? L ?? Ht(o, []) : H ? L ?? [] : Ht(o, []), [n, H, L, o]), it = y(() => Ht(c, []), [c]), at = j((tt, lt, ot) => {
3854
+ }, [P, r, M]), q = y(() => n ? X ?? Ht(a, []) : P ? X ?? [] : Ht(a, []), [n, P, X, a]), V = y(() => n ? Y ?? Ht(o, []) : P ? Y ?? [] : Ht(o, []), [n, P, Y, o]), nt = y(() => Ht(c, []), [c]), at = j((tt, lt, ot) => {
3851
3855
  if (w) {
3852
3856
  w(tt, lt, ot);
3853
3857
  return;
3854
3858
  }
3855
- H && r && B(H, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction: lt, moveKeys: ot }));
3856
- }, [w, H, r, B, u, t, k]), nt = j((tt, lt) => {
3859
+ P && r && B(P, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction: lt, moveKeys: ot }));
3860
+ }, [w, P, r, B, u, t, k]), rt = j((tt, lt) => {
3857
3861
  if (D) {
3858
3862
  D(tt, lt);
3859
3863
  return;
@@ -3874,9 +3878,9 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3874
3878
  }, [O, C, t, k]), yt = /* @__PURE__ */ b(
3875
3879
  Dr,
3876
3880
  {
3877
- dataSource: Y,
3878
- targetKeys: U,
3879
- selectedKeys: it,
3881
+ dataSource: q,
3882
+ targetKeys: V,
3883
+ selectedKeys: nt,
3880
3884
  disabled: l,
3881
3885
  showSearch: d,
3882
3886
  showSelectAll: v,
@@ -3885,12 +3889,12 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3885
3889
  status: g || void 0,
3886
3890
  titles: z,
3887
3891
  actions: K,
3888
- locale: V,
3892
+ locale: L,
3889
3893
  onChange: at,
3890
- onSelectChange: nt,
3894
+ onSelectChange: rt,
3891
3895
  onSearch: vt,
3892
3896
  onScroll: bt,
3893
- styles: P,
3897
+ styles: U,
3894
3898
  render: (tt) => tt.title,
3895
3899
  ...E
3896
3900
  }
@@ -3907,16 +3911,16 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3907
3911
  return t;
3908
3912
  }
3909
3913
  return e;
3910
- }, za = (e) => {
3914
+ }, La = (e) => {
3911
3915
  if (!e) return null;
3912
3916
  const t = Ft[e];
3913
3917
  return t ? /* @__PURE__ */ b(t, {}) : null;
3914
3918
  }, Va = (e) => sn(e, []).map((n) => ({
3915
3919
  label: n.label,
3916
3920
  value: n.value,
3917
- icon: n.icon ? za(n.icon) : void 0,
3921
+ icon: n.icon ? La(n.icon) : void 0,
3918
3922
  disabled: n.disabled
3919
- })), Lc = ({
3923
+ })), zc = ({
3920
3924
  id: e,
3921
3925
  sessionId: t,
3922
3926
  develop: n,
@@ -3939,7 +3943,7 @@ const pc = Wt.memo(rr), Cn = 200, vc = ({
3939
3943
  ...u
3940
3944
  }) => {
3941
3945
  const S = _((M) => M.addCommand), A = _((M) => M.getDataSet), C = _((M) => M.setDataSet), w = y(
3942
- () => rt(t, i),
3946
+ () => it(t, i),
3943
3947
  [t, i]
3944
3948
  ), D = y(() => sn(s, {}), [s]), T = y(() => sn(m, {}), [m]), O = y(() => Va(a), [a]), x = y(() => {
3945
3949
  if (w && r) {
@@ -4187,51 +4191,51 @@ const Ge = 420, En = 440, Xa = ({
4187
4191
  },
4188
4192
  [v]
4189
4193
  ), T = j(
4190
- (R, L, J, Y) => _n(R, L, J ?? m, Y ?? S),
4194
+ (R, Y, X, q) => _n(R, Y, X ?? m, q ?? S),
4191
4195
  [m, S]
4192
4196
  ), O = j(() => {
4193
4197
  g(r);
4194
- const R = a.map((L) => ({ ...L }));
4198
+ const R = a.map((Y) => ({ ...Y }));
4195
4199
  s(R), u(c), A(d), D(_n(r, R, c, d));
4196
4200
  }, [r, a, c, d, D]), N = j(
4197
4201
  (R) => {
4198
- s((L) => {
4199
- const J = L.map((Y) => Y.key === R ? { ...Y, visible: !Y.visible } : Y);
4200
- return D(T(p, J)), J;
4202
+ s((Y) => {
4203
+ const X = Y.map((q) => q.key === R ? { ...q, visible: !q.visible } : q);
4204
+ return D(T(p, X)), X;
4201
4205
  });
4202
4206
  },
4203
4207
  [p, T, D]
4204
4208
  ), x = j(
4205
- (R, L) => {
4206
- s((J) => {
4207
- const Y = J.map((U) => U.key === R ? { ...U, fixed: L } : U);
4208
- return D(T(p, Y)), Y;
4209
+ (R, Y) => {
4210
+ s((X) => {
4211
+ const q = X.map((V) => V.key === R ? { ...V, fixed: Y } : V);
4212
+ return D(T(p, q)), q;
4209
4213
  });
4210
4214
  },
4211
4215
  [p, T, D]
4212
4216
  ), E = j(
4213
- (R, L) => {
4214
- s((J) => {
4215
- const Y = J.map((U) => U.key === R ? { ...U, width: L } : U);
4216
- return D(T(p, Y)), Y;
4217
+ (R, Y) => {
4218
+ s((X) => {
4219
+ const q = X.map((V) => V.key === R ? { ...V, width: Y } : V);
4220
+ return D(T(p, q)), q;
4217
4221
  });
4218
4222
  },
4219
4223
  [p, T, D]
4220
4224
  ), k = j(
4221
- (R, L) => {
4222
- s((J) => {
4223
- const Y = J.find((nt) => nt.key === R);
4224
- if (!Y) return J;
4225
- const U = typeof Y.width == "number" ? Y.width : 80, it = Math.max(Ye, U + L), at = J.map((nt) => nt.key === R ? { ...nt, width: it } : nt);
4225
+ (R, Y) => {
4226
+ s((X) => {
4227
+ const q = X.find((rt) => rt.key === R);
4228
+ if (!q) return X;
4229
+ const V = typeof q.width == "number" ? q.width : 80, nt = Math.max(Ye, V + Y), at = X.map((rt) => rt.key === R ? { ...rt, width: nt } : rt);
4226
4230
  return D(T(p, at)), at;
4227
4231
  });
4228
4232
  },
4229
4233
  [p, T, D]
4230
4234
  ), M = j(
4231
- (R, L) => {
4232
- if (L < 0 || L >= f.length) return;
4233
- const J = [...f], [Y] = J.splice(R, 1);
4234
- J.splice(L, 0, Y), s(J), D(T(p, J));
4235
+ (R, Y) => {
4236
+ if (Y < 0 || Y >= f.length) return;
4237
+ const X = [...f], [q] = X.splice(R, 1);
4238
+ X.splice(Y, 0, q), s(X), D(T(p, X));
4235
4239
  },
4236
4240
  [f, p, T, D]
4237
4241
  ), B = j(
@@ -4239,26 +4243,26 @@ const Ge = 420, En = 440, Xa = ({
4239
4243
  g(R), D(T(R, f));
4240
4244
  },
4241
4245
  [f, T, D]
4242
- ), H = j(
4246
+ ), P = j(
4243
4247
  (R) => {
4244
4248
  u(R), D(T(p, f, R, S));
4245
4249
  },
4246
4250
  [p, f, S, T, D]
4247
- ), P = j(
4251
+ ), U = j(
4248
4252
  (R) => {
4249
4253
  A(R), D(T(p, f, m, R));
4250
4254
  },
4251
4255
  [p, f, m, T, D]
4252
- ), $ = (R) => (L) => {
4253
- w(R), L.dataTransfer.effectAllowed = "move", L.dataTransfer.setData("text/plain", String(R));
4254
- }, z = (R) => (L) => {
4255
- L.preventDefault(), L.dataTransfer.dropEffect = "move", !(C === null || C === R) && (M(C, R), w(R));
4256
- }, K = () => w(null), V = t != null ? (() => {
4257
- let R = t.y, L = t.x;
4258
- return typeof window < "u" && (L + Ge > window.innerWidth && (L = window.innerWidth - Ge - 16), L < 16 && (L = 16), R + En > window.innerHeight && (R = Math.max(16, window.innerHeight - En - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: L };
4256
+ ), $ = (R) => (Y) => {
4257
+ w(R), Y.dataTransfer.effectAllowed = "move", Y.dataTransfer.setData("text/plain", String(R));
4258
+ }, z = (R) => (Y) => {
4259
+ Y.preventDefault(), Y.dataTransfer.dropEffect = "move", !(C === null || C === R) && (M(C, R), w(R));
4260
+ }, K = () => w(null), L = t != null ? (() => {
4261
+ let R = t.y, Y = t.x;
4262
+ return typeof window < "u" && (Y + Ge > window.innerWidth && (Y = window.innerWidth - Ge - 16), Y < 16 && (Y = 16), R + En > window.innerHeight && (R = Math.max(16, window.innerHeight - En - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: Y };
4259
4263
  })() : void 0;
4260
4264
  return /* @__PURE__ */ b(
4261
- Ln,
4265
+ zn,
4262
4266
  {
4263
4267
  title: "列设置",
4264
4268
  open: e,
@@ -4267,7 +4271,7 @@ const Ge = 420, En = 440, Xa = ({
4267
4271
  width: Ge,
4268
4272
  destroyOnHidden: !0,
4269
4273
  centered: t == null,
4270
- style: V,
4274
+ style: L,
4271
4275
  mask: !1,
4272
4276
  className: `and-table-column-setting-modal${t != null ? " and-table-column-setting-modal-positioned" : ""}`,
4273
4277
  children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-body", children: [
@@ -4280,7 +4284,7 @@ const Ge = 420, En = 440, Xa = ({
4280
4284
  children: "序号列"
4281
4285
  }
4282
4286
  ),
4283
- /* @__PURE__ */ b(ue, { checked: m, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
4287
+ /* @__PURE__ */ b(ue, { checked: m, onChange: (R) => P(R.target.checked), children: "自动滚动" }),
4284
4288
  /* @__PURE__ */ st(Yt, { align: "center", children: [
4285
4289
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
4286
4290
  /* @__PURE__ */ b(
@@ -4288,7 +4292,7 @@ const Ge = 420, En = 440, Xa = ({
4288
4292
  {
4289
4293
  size: "small",
4290
4294
  value: S,
4291
- onChange: P,
4295
+ onChange: U,
4292
4296
  options: [...Qa],
4293
4297
  style: { width: 80 }
4294
4298
  }
@@ -4302,15 +4306,15 @@ const Ge = 420, En = 440, Xa = ({
4302
4306
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
4303
4307
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-fix", children: "固定" })
4304
4308
  ] }) }),
4305
- /* @__PURE__ */ b("tbody", { children: f.map((R, L) => {
4306
- const J = typeof R.width == "number" ? R.width : null, Y = R.width === "auto" || R.width === void 0 && J === null;
4309
+ /* @__PURE__ */ b("tbody", { children: f.map((R, Y) => {
4310
+ const X = typeof R.width == "number" ? R.width : null, q = R.width === "auto" || R.width === void 0 && X === null;
4307
4311
  return /* @__PURE__ */ st(
4308
4312
  "tr",
4309
4313
  {
4310
- className: `and-table-column-setting-row ${C === L ? "and-table-column-setting-row-dragging" : ""}`,
4314
+ className: `and-table-column-setting-row ${C === Y ? "and-table-column-setting-row-dragging" : ""}`,
4311
4315
  draggable: !0,
4312
- onDragStart: $(L),
4313
- onDragOver: z(L),
4316
+ onDragStart: $(Y),
4317
+ onDragOver: z(Y),
4314
4318
  onDragEnd: K,
4315
4319
  children: [
4316
4320
  /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(ti, {}) }) }),
@@ -4334,12 +4338,12 @@ const Ge = 420, En = 440, Xa = ({
4334
4338
  size: "small",
4335
4339
  min: Ye,
4336
4340
  step: ye,
4337
- value: Y ? void 0 : J ?? 80,
4341
+ value: q ? void 0 : X ?? 80,
4338
4342
  placeholder: "auto",
4339
4343
  controls: !1,
4340
4344
  style: { width: 44 },
4341
- onChange: (U) => {
4342
- U == null || typeof U == "string" && U === "" ? E(R.key, "auto") : E(R.key, Math.max(Ye, Number(U)));
4345
+ onChange: (V) => {
4346
+ V == null || typeof V == "string" && V === "" ? E(R.key, "auto") : E(R.key, Math.max(Ye, Number(V)));
4343
4347
  }
4344
4348
  }
4345
4349
  ),
@@ -4384,7 +4388,7 @@ const Ge = 420, En = 440, Xa = ({
4384
4388
  ] })
4385
4389
  }
4386
4390
  );
4387
- }, zc = ({
4391
+ }, Lc = ({
4388
4392
  id: e,
4389
4393
  sessionId: t,
4390
4394
  develop: n,
@@ -4417,165 +4421,165 @@ const Ge = 420, En = 440, Xa = ({
4417
4421
  children: k,
4418
4422
  token: M,
4419
4423
  columnSettingOpenKey: B,
4420
- columnSettingsKey: H,
4421
- ...P
4424
+ columnSettingsKey: P,
4425
+ ...U
4422
4426
  }) => {
4423
- const $ = _((Q) => Q.addCommand), z = _((Q) => Q.getDataSet), K = _((Q) => Q.setDataSet), [V, R] = mt([]), L = _t(null), [J, Y] = mt(void 0), U = j((Q, ut) => {
4424
- if (Q == null) return ut;
4425
- if (typeof Q == "string")
4427
+ const $ = _((F) => F.addCommand), z = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [L, R] = mt([]), Y = _t(null), [X, q] = mt(void 0), V = j((F, ut) => {
4428
+ if (F == null) return ut;
4429
+ if (typeof F == "string")
4426
4430
  try {
4427
- return JSON.parse(Q) ?? ut;
4431
+ return JSON.parse(F) ?? ut;
4428
4432
  } catch {
4429
4433
  return ut;
4430
4434
  }
4431
- return Q;
4432
- }, []), it = y(() => Array.isArray(a) ? a : [], [a]), at = y(() => Array.isArray(o) ? o : [], [o]), nt = y(
4435
+ return F;
4436
+ }, []), nt = y(() => Array.isArray(a) ? a : [], [a]), at = y(() => Array.isArray(o) ? o : [], [o]), rt = y(
4433
4437
  () => ({
4434
- dataSet: rt(t, i),
4435
- pagination: i ? rt(t, `${i}_pagination`) : void 0,
4436
- selected: i ? rt(t, `${i}_selected`) : void 0,
4437
- columnSettingOpen: i && t ? rt(t, `${i}_columnSettingOpen`) : void 0,
4438
- columnSettings: i && t ? rt(t, `${i}_columnSettings`) : void 0
4438
+ dataSet: it(t, i),
4439
+ pagination: i ? it(t, `${i}_pagination`) : void 0,
4440
+ selected: i ? it(t, `${i}_selected`) : void 0,
4441
+ columnSettingOpen: i && t ? it(t, `${i}_columnSettingOpen`) : void 0,
4442
+ columnSettings: i && t ? it(t, `${i}_columnSettings`) : void 0
4439
4443
  }),
4440
4444
  [t, i]
4441
4445
  ), vt = _(
4442
- (Q) => {
4446
+ (F) => {
4443
4447
  var ut;
4444
- return nt.columnSettingOpen ? ((ut = Q.dataSets[nt.columnSettingOpen]) == null ? void 0 : ut.value) === !0 : !1;
4448
+ return rt.columnSettingOpen ? ((ut = F.dataSets[rt.columnSettingOpen]) == null ? void 0 : ut.value) === !0 : !1;
4445
4449
  }
4446
4450
  ), bt = 420;
4447
4451
  Un(() => {
4448
- if (!vt || !L.current) return;
4449
- const Q = L.current.querySelector(".ant-table-thead") || L.current.querySelector(".ant-table-header");
4450
- if (!Q) return;
4451
- const ut = Q.getBoundingClientRect();
4452
- Y({
4452
+ if (!vt || !Y.current) return;
4453
+ const F = Y.current.querySelector(".ant-table-thead") || Y.current.querySelector(".ant-table-header");
4454
+ if (!F) return;
4455
+ const ut = F.getBoundingClientRect();
4456
+ q({
4453
4457
  x: ut.right - bt,
4454
4458
  y: ut.bottom + 8
4455
4459
  });
4456
4460
  }, [vt]);
4457
- const yt = _((Q) => {
4461
+ const yt = _((F) => {
4458
4462
  var Ot;
4459
- const ut = nt.columnSettings ? (Ot = Q.dataSets[nt.columnSettings]) == null ? void 0 : Ot.value : void 0;
4463
+ const ut = rt.columnSettings ? (Ot = F.dataSets[rt.columnSettings]) == null ? void 0 : Ot.value : void 0;
4460
4464
  return typeof ut == "object" && ut !== null ? ut : void 0;
4461
- }), tt = bi(nt.dataSet, r), lt = y(() => nt.dataSet ? tt : (c == null ? void 0 : c.data) || [], [nt.dataSet, tt, c == null ? void 0 : c.data]), ot = y(() => U(M, {}), [M, U]), Rt = ot && Object.keys(ot).length > 0, Mt = y(
4465
+ }), tt = bi(rt.dataSet, r), lt = y(() => rt.dataSet ? tt : (c == null ? void 0 : c.data) || [], [rt.dataSet, tt, c == null ? void 0 : c.data]), ot = y(() => V(M, {}), [M, V]), Rt = ot && Object.keys(ot).length > 0, Mt = y(
4462
4466
  () => Rt ? { components: { Table: ot } } : void 0,
4463
4467
  [Rt, ot]
4464
4468
  ), Bt = _(
4465
- (Q) => nt.pagination ? Q.dataSets[nt.pagination] : void 0
4466
- ), G = y(() => nt.pagination ? z(nt.pagination, "") || {} : {}, [nt.pagination, z, Bt]), q = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
4467
- if (!q) return !1;
4468
- const Q = typeof s == "object" ? s : {}, ut = P || {}, Ot = Q.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Ct = Q.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, Tt = Q.simple ?? ut["pagination-simple"] ?? !1, zt = Q.defaultPageSize ?? ut["pagination-defaultPageSize"] ?? 10, Pt = Q.pageSizeOptions ?? ut["pagination-pageSizeOptions"] ?? "10,20,50,100", We = typeof Pt == "string" ? Pt.split(",").map((ne) => parseInt(String(ne).trim(), 10) || 10).filter((ne) => !isNaN(ne)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4469
+ (F) => rt.pagination ? F.dataSets[rt.pagination] : void 0
4470
+ ), G = y(() => rt.pagination ? z(rt.pagination, "") || {} : {}, [rt.pagination, z, Bt]), W = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
4471
+ if (!W) return !1;
4472
+ const F = typeof s == "object" ? s : {}, ut = U || {}, Ot = F.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Ct = F.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, Tt = F.simple ?? ut["pagination-simple"] ?? !1, Lt = F.defaultPageSize ?? ut["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? ut["pagination-pageSizeOptions"] ?? "10,20,50,100", We = typeof Pt == "string" ? Pt.split(",").map((ne) => parseInt(String(ne).trim(), 10) || 10).filter((ne) => !isNaN(ne)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4469
4473
  return {
4470
4474
  ...G,
4471
4475
  showSizeChanger: Ot,
4472
4476
  showQuickJumper: Ct,
4473
4477
  simple: Tt,
4474
- defaultPageSize: zt,
4478
+ defaultPageSize: Lt,
4475
4479
  pageSizeOptions: We,
4476
- showTotal: (ne, se) => (Q.showTotal || "共 ${total} 条").replace("${total}", String(ne)).replace("${range[0]}", String(se[0])).replace("${range[1]}", String(se[1])).replace("${range}", `${se[0]}-${se[1]}`),
4480
+ showTotal: (ne, se) => (F.showTotal || "共 ${total} 条").replace("${total}", String(ne)).replace("${range[0]}", String(se[0])).replace("${range[1]}", String(se[1])).replace("${range}", `${se[0]}-${se[1]}`),
4477
4481
  onChange: (ne, se) => {
4478
- nt.pagination && K(nt.pagination, "", { ...G, current: ne, pageSize: se }), f && t && $(t, I(f, null));
4482
+ rt.pagination && K(rt.pagination, "", { ...G, current: ne, pageSize: se }), f && t && $(t, I(f, null));
4479
4483
  },
4480
4484
  hideOnSinglePage: !1
4481
4485
  };
4482
- }, [q, s, P, G, nt.pagination, K, f, t, $]), X = j((Q, ut) => {
4483
- t && $(t, I(Q.action, { ...ut }));
4484
- }, [t, $]), ct = y(() => it.map((Q) => {
4486
+ }, [W, s, U, G, rt.pagination, K, f, t, $]), Z = j((F, ut) => {
4487
+ t && $(t, I(F.action, { ...ut }));
4488
+ }, [t, $]), ct = y(() => nt.map((F) => {
4485
4489
  let ut = !1;
4486
- Q.fixed === !0 || Q.fixed === "left" ? ut = "left" : Q.fixed === "right" && (ut = "right");
4487
- const Ot = Q.width;
4490
+ F.fixed === !0 || F.fixed === "left" ? ut = "left" : F.fixed === "right" && (ut = "right");
4491
+ const Ot = F.width;
4488
4492
  return {
4489
- key: String(Q.key ?? Q.dataIndex ?? ""),
4490
- title: typeof Q.title == "string" ? Q.title : "列",
4491
- visible: Q.visible !== !1,
4493
+ key: String(F.key ?? F.dataIndex ?? ""),
4494
+ title: typeof F.title == "string" ? F.title : "列",
4495
+ visible: F.visible !== !1,
4492
4496
  fixed: ut,
4493
4497
  width: typeof Ot == "number" ? Ot : "auto"
4494
4498
  };
4495
- }).filter((Q) => Q.key), [it]), dt = g === !0, Dt = !1, Z = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: gt, items: xt, scrollX: F, size: W } = y(() => Za(
4499
+ }).filter((F) => F.key), [nt]), dt = g === !0, Dt = !1, Q = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: gt, items: xt, scrollX: J, size: H } = y(() => Za(
4496
4500
  yt,
4497
4501
  ct,
4498
4502
  dt,
4499
4503
  Dt,
4500
- Z
4501
- ), [yt, ct, dt, Dt, Z]), ft = !!(i && t), pt = y(() => {
4502
- const Q = [];
4503
- gt && Q.push({
4504
+ Q
4505
+ ), [yt, ct, dt, Dt, Q]), ft = !!(i && t), pt = y(() => {
4506
+ const F = [];
4507
+ gt && F.push({
4504
4508
  title: "序号",
4505
4509
  key: "rowIndex",
4506
4510
  width: 60,
4507
4511
  align: "center",
4508
- render: (Ct, Tt, zt) => {
4512
+ render: (Ct, Tt, Lt) => {
4509
4513
  const Pt = G.current || 1, We = G.pageSize || 10;
4510
- return (Pt - 1) * We + zt + 1;
4514
+ return (Pt - 1) * We + Lt + 1;
4511
4515
  }
4512
4516
  });
4513
- const ut = new Map(it.map((Ct) => [String(Ct.key ?? Ct.dataIndex ?? ""), Ct]));
4517
+ const ut = new Map(nt.map((Ct) => [String(Ct.key ?? Ct.dataIndex ?? ""), Ct]));
4514
4518
  return xt.filter((Ct) => Ct.visible).forEach((Ct) => {
4515
4519
  const Tt = ut.get(Ct.key);
4516
4520
  if (!Tt) return;
4517
- const zt = Ct.fixed || void 0, Pt = Ct.width === "auto" || Ct.width === void 0 ? void 0 : Ct.width;
4518
- Q.push(Fa({
4521
+ const Lt = Ct.fixed || void 0, Pt = Ct.width === "auto" || Ct.width === void 0 ? void 0 : Ct.width;
4522
+ F.push(Fa({
4519
4523
  ...Tt,
4520
4524
  dataIndex: Tt.dataIndex || Tt.key,
4521
- fixed: zt || Tt.fixed,
4525
+ fixed: Lt || Tt.fixed,
4522
4526
  width: Pt ?? Tt.width
4523
4527
  }));
4524
- }), l !== !1 && at.length > 0 && Q.push({
4528
+ }), l !== !1 && at.length > 0 && F.push({
4525
4529
  title: "操作",
4526
4530
  key: "action",
4527
- render: (Ct, Tt) => /* @__PURE__ */ b(Yt, { children: at.map((zt, Pt) => /* @__PURE__ */ b(Ar, { title: zt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => X(zt, Tt), style: { marginRight: 5 }, children: zt.title }) }, Pt)) })
4528
- }), Q;
4531
+ render: (Ct, Tt) => /* @__PURE__ */ b(Yt, { children: at.map((Lt, Pt) => /* @__PURE__ */ b(Ar, { title: Lt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Z(Lt, Tt), style: { marginRight: 5 }, children: Lt.title }) }, Pt)) })
4532
+ }), F;
4529
4533
  }, [
4530
- it,
4534
+ nt,
4531
4535
  at,
4532
4536
  gt,
4533
4537
  xt,
4534
4538
  l,
4535
4539
  G,
4536
- X
4540
+ Z
4537
4541
  ]), St = j(() => {
4538
- nt.columnSettingOpen && K(nt.columnSettingOpen, "", !1);
4539
- }, [nt.columnSettingOpen, K]), kt = j(
4540
- (Q) => {
4541
- nt.columnSettings && K(nt.columnSettings, "value", Q);
4542
+ rt.columnSettingOpen && K(rt.columnSettingOpen, "", !1);
4543
+ }, [rt.columnSettingOpen, K]), kt = j(
4544
+ (F) => {
4545
+ rt.columnSettings && K(rt.columnSettings, "value", F);
4542
4546
  },
4543
- [nt.columnSettings, K]
4547
+ [rt.columnSettings, K]
4544
4548
  ), ee = y(() => {
4545
4549
  if (!v && d)
4546
4550
  return {
4547
- selectedRowKeys: V,
4548
- onChange: (Q, ut, Ot) => {
4549
- R(Q), nt.selected && K(nt.selected, "", Q), h != null && h.trim() && t && $(t, I(h.trim(), {
4550
- selectedRowKeys: Q,
4551
+ selectedRowKeys: L,
4552
+ onChange: (F, ut, Ot) => {
4553
+ R(F), rt.selected && K(rt.selected, "", F), h != null && h.trim() && t && $(t, I(h.trim(), {
4554
+ selectedRowKeys: F,
4551
4555
  selectedRows: ut,
4552
4556
  info: Ot
4553
4557
  }));
4554
4558
  }
4555
4559
  };
4556
- }, [d, v, V, nt.selected, K, h, t, $]), Gt = j((Q) => {
4560
+ }, [d, v, L, rt.selected, K, h, t, $]), Gt = j((F) => {
4557
4561
  if (!v) return;
4558
- const Ot = [Q[p]];
4559
- R(Ot), nt.selected && K(nt.selected, "", Ot), h != null && h.trim() && t && $(t, I(h.trim(), { record: Q, selectedRowKeys: Ot }));
4560
- }, [v, h, t, p, nt.selected, K, $]), me = j((Q) => v && V.includes(Q[p]) ? "ant-table-row-selected" : "", [v, p, V]), or = j((Q) => v ? { onClick: () => Gt(Q), style: { cursor: "pointer" } } : {}, [v, Gt]), { style: cr, className: sr, ...he } = P, jt = y(() => {
4562
+ const Ot = [F[p]];
4563
+ R(Ot), rt.selected && K(rt.selected, "", Ot), h != null && h.trim() && t && $(t, I(h.trim(), { record: F, selectedRowKeys: Ot }));
4564
+ }, [v, h, t, p, rt.selected, K, $]), me = j((F) => v && L.includes(F[p]) ? "ant-table-row-selected" : "", [v, p, L]), or = j((F) => v ? { onClick: () => Gt(F), style: { cursor: "pointer" } } : {}, [v, Gt]), { style: cr, className: sr, ...he } = U, jt = y(() => {
4561
4565
  if (C) return C;
4562
- let Q = he["scroll-x"], ut = he["scroll-y"];
4563
- if (String(Q) === "true" ? Q = !0 : String(Q) === "false" ? Q = void 0 : Q === "max-content" && (Q = "max-content"), (ut === "" || ut === null || ut === void 0) && (ut = void 0), Q !== void 0 || ut !== void 0) return { x: Q, y: ut };
4564
- }, [C, he["scroll-x"], he["scroll-y"]]), qe = qa(L, jt == null ? void 0 : jt.y, q), lr = y(() => {
4566
+ let F = he["scroll-x"], ut = he["scroll-y"];
4567
+ if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (ut === "" || ut === null || ut === void 0) && (ut = void 0), F !== void 0 || ut !== void 0) return { x: F, y: ut };
4568
+ }, [C, he["scroll-x"], he["scroll-y"]]), qe = qa(Y, jt == null ? void 0 : jt.y, W), lr = y(() => {
4565
4569
  if (!jt && !ft) return;
4566
- const Q = ft ? F ? !0 : "max-content" : jt == null ? void 0 : jt.x, ut = (jt == null ? void 0 : jt.y) === "100%" ? qe : jt == null ? void 0 : jt.y;
4567
- return Q !== void 0 || ut !== void 0 ? { x: Q, y: ut } : jt ? jt.y === "100%" ? { x: jt.x, y: qe } : jt : void 0;
4568
- }, [jt, qe, ft, F]), { titleSlot: Te, summarySlot: Ne, footerSlot: hn, otherChildren: ur } = y(() => {
4569
- let Q = null, ut = null, Ot = null;
4570
+ const F = ft ? J ? !0 : "max-content" : jt == null ? void 0 : jt.x, ut = (jt == null ? void 0 : jt.y) === "100%" ? qe : jt == null ? void 0 : jt.y;
4571
+ return F !== void 0 || ut !== void 0 ? { x: F, y: ut } : jt ? jt.y === "100%" ? { x: jt.x, y: qe } : jt : void 0;
4572
+ }, [jt, qe, ft, J]), { titleSlot: Te, summarySlot: Ne, footerSlot: hn, otherChildren: ur } = y(() => {
4573
+ let F = null, ut = null, Ot = null;
4570
4574
  const Ct = [];
4571
4575
  return Wt.Children.forEach(k, (Tt) => {
4572
4576
  if (!Wt.isValidElement(Tt)) {
4573
4577
  Ct.push(Tt);
4574
4578
  return;
4575
4579
  }
4576
- const zt = Tt.props["data-slot-type"];
4577
- zt === "title" ? Q = Tt : zt === "summary" ? ut = Tt : zt === "footer" ? Ot = Tt : Ct.push(Tt);
4578
- }), { titleSlot: Q, summarySlot: ut, footerSlot: Ot, otherChildren: Ct };
4580
+ const Lt = Tt.props["data-slot-type"];
4581
+ Lt === "title" ? F = Tt : Lt === "summary" ? ut = Tt : Lt === "footer" ? Ot = Tt : Ct.push(Tt);
4582
+ }), { titleSlot: F, summarySlot: ut, footerSlot: Ot, otherChildren: Ct };
4579
4583
  }, [k]), fr = y(() => {
4580
4584
  if (!Te) {
4581
4585
  if (N) return N;
@@ -4599,7 +4603,7 @@ const Ge = 420, En = 440, Xa = ({
4599
4603
  pagination: et,
4600
4604
  locale: { emptyText: m },
4601
4605
  bordered: u,
4602
- size: ft ? W : S,
4606
+ size: ft ? H : S,
4603
4607
  sticky: A,
4604
4608
  scroll: lr,
4605
4609
  title: fr,
@@ -4609,9 +4613,9 @@ const Ge = 420, En = 440, Xa = ({
4609
4613
  }
4610
4614
  );
4611
4615
  return /* @__PURE__ */ st(
4612
- zn,
4616
+ Ln,
4613
4617
  {
4614
- ref: L,
4618
+ ref: Y,
4615
4619
  vertical: !0,
4616
4620
  style: { width: "100%", height: "100%", ...cr },
4617
4621
  className: sr,
@@ -4619,10 +4623,10 @@ const Ge = 420, En = 440, Xa = ({
4619
4623
  Te && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: Te }),
4620
4624
  /* @__PURE__ */ st("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
4621
4625
  v && (() => {
4622
- const Q = (ot == null ? void 0 : ot.rowSelectedBg) || "#e6f4ff", ut = (ot == null ? void 0 : ot.rowSelectedHoverBg) || (ot == null ? void 0 : ot.rowSelectedBg) || "#bae0ff", Ot = ot == null ? void 0 : ot.rowSelectedColor, Ct = (ot == null ? void 0 : ot.rowSelectedLinkColor) ?? Ot, Tt = (ot == null ? void 0 : ot.rowSelectedLinkHoverColor) ?? Ct;
4626
+ const F = (ot == null ? void 0 : ot.rowSelectedBg) || "#e6f4ff", ut = (ot == null ? void 0 : ot.rowSelectedHoverBg) || (ot == null ? void 0 : ot.rowSelectedBg) || "#bae0ff", Ot = ot == null ? void 0 : ot.rowSelectedColor, Ct = (ot == null ? void 0 : ot.rowSelectedLinkColor) ?? Ot, Tt = (ot == null ? void 0 : ot.rowSelectedLinkHoverColor) ?? Ct;
4623
4627
  return /* @__PURE__ */ b("style", { children: `
4624
4628
  .ant-table-row-selected > td {
4625
- background: ${Q} !important;
4629
+ background: ${F} !important;
4626
4630
  ${Ot ? `color: ${Ot};` : ""}
4627
4631
  }
4628
4632
  .ant-table-row-selected:hover > td {
@@ -4641,15 +4645,15 @@ const Ge = 420, En = 440, Xa = ({
4641
4645
  Xa,
4642
4646
  {
4643
4647
  open: vt,
4644
- position: J,
4648
+ position: X,
4645
4649
  rowIndexVisible: gt,
4646
4650
  columnItems: xt,
4647
4651
  defaultRowIndexVisible: dt,
4648
4652
  defaultColumnItems: ct,
4649
- scrollX: F,
4653
+ scrollX: J,
4650
4654
  defaultScrollX: Dt,
4651
- size: W,
4652
- defaultSize: Z,
4655
+ size: H,
4656
+ defaultSize: Q,
4653
4657
  onSave: kt,
4654
4658
  onClose: St
4655
4659
  }
@@ -4677,9 +4681,9 @@ const Ge = 420, En = 440, Xa = ({
4677
4681
  clickAction: s,
4678
4682
  ...m
4679
4683
  }) => {
4680
- const u = _((V) => V.getDataSet), S = _((V) => {
4684
+ const u = _((L) => L.getDataSet), S = _((L) => {
4681
4685
  var R;
4682
- return !t || !e ? null : ((R = V.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null;
4686
+ return !t || !e ? null : ((R = L.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null;
4683
4687
  }), A = y(
4684
4688
  () => d === "selectedCount" && o && !a ? o : a,
4685
4689
  [d, o, a]
@@ -4687,12 +4691,12 @@ const Ge = 420, En = 440, Xa = ({
4687
4691
  () => d === "selectedCount" ? "selectedCount" : o,
4688
4692
  [d, o]
4689
4693
  ), w = y(
4690
- () => rt(t, A),
4694
+ () => it(t, A),
4691
4695
  [t, A]
4692
- ), D = _((V) => {
4696
+ ), D = _((L) => {
4693
4697
  if (!w) return;
4694
4698
  const R = xe(w).baseName;
4695
- return V.dataSets[R];
4699
+ return L.dataSets[R];
4696
4700
  }), { options: T } = Ce(d), O = y(() => {
4697
4701
  if (w && C)
4698
4702
  return u(w, C);
@@ -4705,44 +4709,44 @@ const Ge = 420, En = 440, Xa = ({
4705
4709
  return {};
4706
4710
  }
4707
4711
  return h;
4708
- }, [h]), x = (V) => V == null || V === "" || typeof V == "string" && V.trim() === "", E = y(() => n ? i : O != null && O !== "" ? x(O) && p ? i : O : (S == null ? void 0 : S.content) !== void 0 ? S.content : i, [n, O, S == null ? void 0 : S.content, i, p]), k = y(() => {
4712
+ }, [h]), x = (L) => L == null || L === "" || typeof L == "string" && L.trim() === "", E = y(() => n ? i : O != null && O !== "" ? x(O) && p ? i : O : (S == null ? void 0 : S.content) !== void 0 ? S.content : i, [n, O, S == null ? void 0 : S.content, i, p]), k = y(() => {
4709
4713
  if (d && T.length > 0 && E !== void 0 && E !== null) {
4710
- const V = ce(T, E);
4711
- return (V == null ? void 0 : V.label) ?? E;
4714
+ const L = ce(T, E);
4715
+ return (L == null ? void 0 : L.label) ?? E;
4712
4716
  }
4713
4717
  return E;
4714
4718
  }, [d, T, E]), M = y(() => {
4715
4719
  if (n)
4716
4720
  return k;
4717
- const V = (S == null ? void 0 : S.formatType) || v;
4718
- return V && k !== void 0 && k !== null ? Ca(k, V, N) : k;
4721
+ const L = (S == null ? void 0 : S.formatType) || v;
4722
+ return L && k !== void 0 && k !== null ? Ca(k, L, N) : k;
4719
4723
  }, [n, k, v, N, S == null ? void 0 : S.formatType]), B = y(() => {
4720
- const V = { ...m };
4724
+ const L = { ...m };
4721
4725
  return S && typeof S == "object" && Object.keys(S).forEach((R) => {
4722
- !["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (V[R] = S[R]);
4723
- }), V;
4724
- }, [m, S]), H = (S == null ? void 0 : S.color) ?? l, P = Ve(H), $ = y(() => {
4726
+ !["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (L[R] = S[R]);
4727
+ }), L;
4728
+ }, [m, S]), P = (S == null ? void 0 : S.color) ?? l, U = Ve(P), $ = y(() => {
4725
4729
  if (!f) return;
4726
- let V = f;
4730
+ let L = f;
4727
4731
  if (typeof f == "string")
4728
4732
  try {
4729
- V = JSON.parse(f);
4733
+ L = JSON.parse(f);
4730
4734
  } catch {
4731
4735
  return;
4732
4736
  }
4733
- if (!V || typeof V != "object") return;
4737
+ if (!L || typeof L != "object") return;
4734
4738
  const R = {};
4735
- return Object.entries(V).forEach(([L, J]) => {
4736
- J !== "" && J !== void 0 && J !== null && (R[L] = J);
4739
+ return Object.entries(L).forEach(([Y, X]) => {
4740
+ X !== "" && X !== void 0 && X !== null && (R[Y] = X);
4737
4741
  }), Object.keys(R).length > 0 ? R : void 0;
4738
4742
  }, [f]), z = y(() => {
4739
- const V = { width: "100%" }, R = (S == null ? void 0 : S.fontSize) ?? c;
4743
+ const L = { width: "100%" }, R = (S == null ? void 0 : S.fontSize) ?? c;
4740
4744
  if (R) {
4741
- const L = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
4742
- V.fontSize = L;
4745
+ const Y = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
4746
+ L.fontSize = Y;
4743
4747
  }
4744
- return P && (V.color = P), V;
4745
- }, [c, P, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ b(Ia, { ...B, style: { ...z, ...g, ...B.style }, children: M != null && M !== "" ? String(M) : r });
4748
+ return U && (L.color = U), L;
4749
+ }, [c, U, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ b(Ia, { ...B, style: { ...z, ...g, ...B.style }, children: M != null && M !== "" ? String(M) : r });
4746
4750
  return $ ? /* @__PURE__ */ b(Kt, { theme: { token: $ }, children: K }) : K;
4747
4751
  }, { Title: to } = fn, qc = ({
4748
4752
  id: e,
@@ -4758,7 +4762,7 @@ const Ge = 420, En = 440, Xa = ({
4758
4762
  ...v
4759
4763
  }) => {
4760
4764
  const h = _((w) => w.getDataSet), p = _((w) => w.getProps), g = y(
4761
- () => rt(t, a),
4765
+ () => it(t, a),
4762
4766
  [t, a]
4763
4767
  ), f = y(() => t && e ? p(t, e) : null, [t, e, p]), s = y(() => {
4764
4768
  if (g && o)
@@ -4786,7 +4790,7 @@ const Ge = 420, En = 440, Xa = ({
4786
4790
  ...d
4787
4791
  }) => {
4788
4792
  const v = _((C) => C.getDataSet), h = _((C) => C.getProps), p = y(
4789
- () => rt(t, a),
4793
+ () => it(t, a),
4790
4794
  [t, a]
4791
4795
  ), g = y(() => t && e ? h(t, e) : null, [t, e, h]), f = y(() => {
4792
4796
  if (p && o)
@@ -4827,7 +4831,7 @@ const Ge = 420, En = 440, Xa = ({
4827
4831
  ...g
4828
4832
  }) => {
4829
4833
  const f = _((N) => N.addCommand), s = _((N) => N.getDataSet), m = _((N) => N.setDataSet), u = y(
4830
- () => rt(t, i),
4834
+ () => it(t, i),
4831
4835
  [t, i]
4832
4836
  ), S = y(() => no(a), [a]), A = y(() => o && o.length > 0 ? n ? o.map((N) => ({ ...N, forceRender: !0 })) : o : S.length > 0 ? S.map((N, x) => ({
4833
4837
  key: N.key,
@@ -4897,151 +4901,151 @@ const Ge = 420, En = 440, Xa = ({
4897
4901
  styles: k,
4898
4902
  classNames: M,
4899
4903
  token: B,
4900
- ...H
4904
+ ...P
4901
4905
  }) => {
4902
- const P = _((Z) => Z.addCommand), $ = _((Z) => Z.setDataSet), z = y(
4903
- () => rt(t, i),
4906
+ const U = _((Q) => Q.addCommand), $ = _((Q) => Q.setDataSet), z = y(
4907
+ () => it(t, i),
4904
4908
  [t, i]
4905
4909
  ), K = y(
4906
- () => i ? rt(t, `${i}_selected`) : void 0,
4910
+ () => i ? it(t, `${i}_selected`) : void 0,
4907
4911
  [t, i]
4908
- ), V = y(
4909
- () => i ? rt(t, `${i}_checked`) : void 0,
4912
+ ), L = y(
4913
+ () => i ? it(t, `${i}_checked`) : void 0,
4910
4914
  [t, i]
4911
4915
  ), R = y(
4912
- () => i ? rt(t, `${i}_expanded`) : void 0,
4916
+ () => i ? it(t, `${i}_expanded`) : void 0,
4913
4917
  [t, i]
4914
- ), L = _((Z) => {
4918
+ ), Y = _((Q) => {
4915
4919
  if (!z) return;
4916
4920
  if (r)
4917
- return Z.getDataSet(z, r);
4918
- const gt = Z.dataSets[z];
4921
+ return Q.getDataSet(z, r);
4922
+ const gt = Q.dataSets[z];
4919
4923
  if (!gt) return;
4920
4924
  if (Array.isArray(gt)) return gt;
4921
4925
  const xt = gt.value;
4922
4926
  return Array.isArray(xt) ? xt : void 0;
4923
- }), J = _(
4924
- (Z) => K ? Z.getDataSet(K, "") : void 0
4925
- ), Y = _(
4926
- (Z) => V ? Z.getDataSet(V, "") : void 0
4927
- ), U = _(
4928
- (Z) => R ? Z.getDataSet(R, "") : void 0
4929
- ), it = y(() => n ? L ?? E ?? [] : z ? L ?? [] : E ?? [], [n, z, L, E]), at = J, nt = Y, vt = U, bt = j(
4930
- (Z, gt) => {
4927
+ }), X = _(
4928
+ (Q) => K ? Q.getDataSet(K, "") : void 0
4929
+ ), q = _(
4930
+ (Q) => L ? Q.getDataSet(L, "") : void 0
4931
+ ), V = _(
4932
+ (Q) => R ? Q.getDataSet(R, "") : void 0
4933
+ ), nt = y(() => n ? Y ?? E ?? [] : z ? Y ?? [] : E ?? [], [n, z, Y, E]), at = X, rt = q, vt = V, bt = j(
4934
+ (Q, gt) => {
4931
4935
  if (m) {
4932
- m(Z, gt);
4936
+ m(Q, gt);
4933
4937
  return;
4934
4938
  }
4935
- K && $(K, "", Z), a && t && P(t, I(a, { selectedKeys: Z }));
4939
+ K && $(K, "", Q), a && t && U(t, I(a, { selectedKeys: Q }));
4936
4940
  },
4937
- [m, K, t, $, a, P]
4941
+ [m, K, t, $, a, U]
4938
4942
  ), yt = j(
4939
- (Z, gt) => {
4943
+ (Q, gt) => {
4940
4944
  if (u) {
4941
- u(Z, gt);
4945
+ u(Q, gt);
4942
4946
  return;
4943
4947
  }
4944
- V && $(V, "", Z), o && t && P(t, I(o, { checkedKeys: Z }));
4948
+ L && $(L, "", Q), o && t && U(t, I(o, { checkedKeys: Q }));
4945
4949
  },
4946
- [u, V, t, $, o, P]
4950
+ [u, L, t, $, o, U]
4947
4951
  ), tt = j(
4948
- (Z, gt) => {
4952
+ (Q, gt) => {
4949
4953
  if (S) {
4950
- S(Z, gt);
4954
+ S(Q, gt);
4951
4955
  return;
4952
4956
  }
4953
- R && $(R, "", Z), c && t && P(t, I(c, { expandedKeys: Z, expanded: gt.expanded }));
4957
+ R && $(R, "", Q), c && t && U(t, I(c, { expandedKeys: Q, expanded: gt.expanded }));
4954
4958
  },
4955
- [S, R, t, $, c, P]
4959
+ [S, R, t, $, c, U]
4956
4960
  ), lt = j(
4957
- (Z) => {
4961
+ (Q) => {
4958
4962
  if (A) {
4959
- A(Z);
4963
+ A(Q);
4960
4964
  return;
4961
4965
  }
4962
- l && t && P(t, I(l, Z));
4966
+ l && t && U(t, I(l, Q));
4963
4967
  },
4964
- [A, l, t, P]
4968
+ [A, l, t, U]
4965
4969
  ), ot = j(
4966
- (Z) => {
4970
+ (Q) => {
4967
4971
  if (C) {
4968
- C(Z);
4972
+ C(Q);
4969
4973
  return;
4970
4974
  }
4971
- d && t && P(t, I(d, Z));
4975
+ d && t && U(t, I(d, Q));
4972
4976
  },
4973
- [C, d, t, P]
4977
+ [C, d, t, U]
4974
4978
  ), Rt = j(
4975
- (Z) => {
4979
+ (Q) => {
4976
4980
  if (w) {
4977
- w(Z);
4981
+ w(Q);
4978
4982
  return;
4979
4983
  }
4980
- v && t && P(t, I(v, Z));
4984
+ v && t && U(t, I(v, Q));
4981
4985
  },
4982
- [w, v, t, P]
4986
+ [w, v, t, U]
4983
4987
  ), Mt = j(
4984
- (Z) => {
4988
+ (Q) => {
4985
4989
  if (D) {
4986
- D(Z);
4990
+ D(Q);
4987
4991
  return;
4988
4992
  }
4989
- h && t && P(t, I(h, Z));
4993
+ h && t && U(t, I(h, Q));
4990
4994
  },
4991
- [D, h, t, P]
4995
+ [D, h, t, U]
4992
4996
  ), Bt = j(
4993
- (Z) => {
4997
+ (Q) => {
4994
4998
  if (T) {
4995
- T(Z);
4999
+ T(Q);
4996
5000
  return;
4997
5001
  }
4998
- p && t && P(t, I(p, Z));
5002
+ p && t && U(t, I(p, Q));
4999
5003
  },
5000
- [T, p, t, P]
5004
+ [T, p, t, U]
5001
5005
  ), G = j(
5002
- (Z) => {
5006
+ (Q) => {
5003
5007
  if (O) {
5004
- O(Z);
5008
+ O(Q);
5005
5009
  return;
5006
5010
  }
5007
- g && t && P(t, I(g, Z));
5011
+ g && t && U(t, I(g, Q));
5008
5012
  },
5009
- [O, g, t, P]
5010
- ), q = j(
5011
- (Z) => {
5013
+ [O, g, t, U]
5014
+ ), W = j(
5015
+ (Q) => {
5012
5016
  if (N) {
5013
- N(Z);
5017
+ N(Q);
5014
5018
  return;
5015
5019
  }
5016
- f && t && P(t, I(f, Z));
5020
+ f && t && U(t, I(f, Q));
5017
5021
  },
5018
- [N, f, t, P]
5022
+ [N, f, t, U]
5019
5023
  ), et = j(
5020
- (Z, gt) => {
5024
+ (Q, gt) => {
5021
5025
  if (x) {
5022
- x(Z, gt);
5026
+ x(Q, gt);
5023
5027
  return;
5024
5028
  }
5025
- s && t && P(t, I(s, { loadedKeys: Z, ...gt }));
5029
+ s && t && U(t, I(s, { loadedKeys: Q, ...gt }));
5026
5030
  },
5027
- [x, s, t, P]
5028
- ), X = y(() => {
5031
+ [x, s, t, U]
5032
+ ), Z = y(() => {
5029
5033
  if (!B) return;
5030
- const Z = {};
5034
+ const Q = {};
5031
5035
  return Object.entries(B).forEach(([gt, xt]) => {
5032
- xt !== "" && xt !== void 0 && xt !== null && (Z[gt] = xt);
5033
- }), Object.keys(Z).length > 0 ? Z : void 0;
5036
+ xt !== "" && xt !== void 0 && xt !== null && (Q[gt] = xt);
5037
+ }), Object.keys(Q).length > 0 ? Q : void 0;
5034
5038
  }, [B]), ct = y(() => {
5035
- const Z = {};
5036
- return n && (Z.motion = !1), X && (Z.components = { Tree: X }), Object.keys(Z).length > 0 ? Z : void 0;
5037
- }, [n, X]), Dt = /* @__PURE__ */ b(
5039
+ const Q = {};
5040
+ return n && (Q.motion = !1), Z && (Q.components = { Tree: Z }), Object.keys(Q).length > 0 ? Q : void 0;
5041
+ }, [n, Z]), Dt = /* @__PURE__ */ b(
5038
5042
  Nr,
5039
5043
  {
5040
- ...H,
5044
+ ...P,
5041
5045
  ...n ? { motion: !1 } : {},
5042
- treeData: it,
5046
+ treeData: nt,
5043
5047
  ...K != null ? { selectedKeys: at ?? [] } : {},
5044
- ...V != null ? { checkedKeys: nt ?? [] } : {},
5048
+ ...L != null ? { checkedKeys: rt ?? [] } : {},
5045
5049
  ...R != null ? { expandedKeys: vt ?? [] } : {},
5046
5050
  onSelect: bt,
5047
5051
  onCheck: yt,
@@ -5052,7 +5056,7 @@ const Ge = 420, En = 440, Xa = ({
5052
5056
  onDragOver: Mt,
5053
5057
  onDragStart: Bt,
5054
5058
  onDrop: G,
5055
- onRightClick: q,
5059
+ onRightClick: W,
5056
5060
  onLoad: et,
5057
5061
  styles: k,
5058
5062
  classNames: M
@@ -5073,7 +5077,7 @@ const Ge = 420, En = 440, Xa = ({
5073
5077
  ...d
5074
5078
  }) => {
5075
5079
  const v = _((S) => S.getDataSet), h = _((S) => S.getProps), p = y(
5076
- () => rt(t, a),
5080
+ () => it(t, a),
5077
5081
  [t, a]
5078
5082
  ), g = y(() => t && e ? h(t, e) : null, [t, e, h]), f = y(() => {
5079
5083
  if (p && o) return v(p, o);
@@ -5133,7 +5137,7 @@ const Ge = 420, En = 440, Xa = ({
5133
5137
  ...s
5134
5138
  }) => {
5135
5139
  const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), A = y(
5136
- () => rt(t, i),
5140
+ () => it(t, i),
5137
5141
  [t, i]
5138
5142
  ), C = y(() => {
5139
5143
  if (A && r) return u(A, r);
@@ -5202,7 +5206,7 @@ const Ge = 420, En = 440, Xa = ({
5202
5206
  ...p
5203
5207
  }) => {
5204
5208
  const g = _((C) => C.addCommand), f = _((C) => C.setDataSet), s = y(
5205
- () => rt(t, i),
5209
+ () => it(t, i),
5206
5210
  [t, i]
5207
5211
  ), m = y(() => {
5208
5212
  if (o) return o;
@@ -5252,7 +5256,7 @@ const oo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
5252
5256
  ...l
5253
5257
  }) => {
5254
5258
  const d = _((u) => u.getDataSet), v = _((u) => u.getProps), h = y(() => t && e ? v(t, e) : null, [t, e, v]), p = y(
5255
- () => rt(t, i),
5259
+ () => it(t, i),
5256
5260
  [t, i]
5257
5261
  ), g = y(() => {
5258
5262
  if (p && r)
@@ -5295,7 +5299,7 @@ const Zc = ({
5295
5299
  ...c
5296
5300
  }) => {
5297
5301
  const l = _((m) => m.getDataSet), d = _((m) => m.getProps), v = y(
5298
- () => rt(t, r),
5302
+ () => it(t, r),
5299
5303
  [t, r]
5300
5304
  ), h = y(() => t && e ? d(t, e) : null, [t, e, d]), p = y(() => {
5301
5305
  if (v && a) return l(v, a);
@@ -5332,7 +5336,7 @@ const Zc = ({
5332
5336
  ...v
5333
5337
  }) => {
5334
5338
  const h = _((D) => D.getDataSet), p = _((D) => D.getProps), g = y(
5335
- () => rt(t, r),
5339
+ () => it(t, r),
5336
5340
  [t, r]
5337
5341
  ), f = y(() => t && e ? p(t, e) : null, [t, e, p]), s = y(() => {
5338
5342
  if (g && a) return h(g, a);
@@ -5412,7 +5416,7 @@ const Zc = ({
5412
5416
  ...g
5413
5417
  }) => {
5414
5418
  const f = _((k) => k.getDataSet), s = _((k) => k.getProps), m = y(
5415
- () => rt(t, a),
5419
+ () => it(t, a),
5416
5420
  [t, a]
5417
5421
  ), { options: u } = Ce(c), S = y(() => {
5418
5422
  if (d) {
@@ -5459,7 +5463,7 @@ const Zc = ({
5459
5463
  ...p
5460
5464
  }) => {
5461
5465
  const g = _((O) => O.addCommand), f = _((O) => O.setDataSet), s = y(
5462
- () => rt(t, i),
5466
+ () => it(t, i),
5463
5467
  [t, i]
5464
5468
  ), m = r ?? (s ? "" : void 0), u = y(() => ({}), []), S = _((O) => {
5465
5469
  if (!s) return u;
@@ -5644,17 +5648,17 @@ const Zc = ({
5644
5648
  paginationArrowStyle: k,
5645
5649
  paginationArrowIconPrev: M,
5646
5650
  paginationArrowIconNext: B,
5647
- expandTrigger: H,
5651
+ expandTrigger: P,
5648
5652
  // 仅设计器/业务用,不传给 DOM,避免 React 警告
5649
- ...P
5653
+ ...U
5650
5654
  }) => {
5651
- const $ = _((W) => W.addCommand), z = _((W) => W.setDataSet), K = y(
5652
- () => rt(t, i),
5655
+ const $ = _((H) => H.addCommand), z = _((H) => H.setDataSet), K = y(
5656
+ () => it(t, i),
5653
5657
  [t, i]
5654
- ), V = _(
5655
- (W) => {
5658
+ ), L = _(
5659
+ (H) => {
5656
5660
  if (K)
5657
- return r ? W.getDataSet(K, r) : W.dataSets[K];
5661
+ return r ? H.getDataSet(K, r) : H.dataSets[K];
5658
5662
  }
5659
5663
  // 使用 shallow 比较确保只有通过内容变更才触发更新
5660
5664
  // 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
@@ -5662,64 +5666,64 @@ const Zc = ({
5662
5666
  // 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
5663
5667
  // 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
5664
5668
  // 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
5665
- ), R = y(() => ({}), []), L = V ?? R, J = y(
5666
- () => (L == null ? void 0 : L.items) ?? (Array.isArray(L) ? L : void 0) ?? (Array.isArray(L == null ? void 0 : L.value) ? L.value : void 0),
5667
- [L]
5668
- ), Y = y(() => n ? J ?? g ?? [] : K ? J ?? [] : g ?? [], [n, K, J, g]), U = y(
5669
- () => L.selectedKeys ?? f,
5670
- [L.selectedKeys, f]
5671
- ), it = y(
5672
- () => L.openKeys ?? (D && T ? void 0 : s),
5673
- [L.openKeys, D, T, s]
5669
+ ), R = y(() => ({}), []), Y = L ?? R, X = y(
5670
+ () => (Y == null ? void 0 : Y.items) ?? (Array.isArray(Y) ? Y : void 0) ?? (Array.isArray(Y == null ? void 0 : Y.value) ? Y.value : void 0),
5671
+ [Y]
5672
+ ), q = y(() => n ? X ?? g ?? [] : K ? X ?? [] : g ?? [], [n, K, X, g]), V = y(
5673
+ () => Y.selectedKeys ?? f,
5674
+ [Y.selectedKeys, f]
5675
+ ), nt = y(
5676
+ () => Y.openKeys ?? (D && T ? void 0 : s),
5677
+ [Y.openKeys, D, T, s]
5674
5678
  ), at = y(
5675
- () => rt(t, D),
5679
+ () => it(t, D),
5676
5680
  [t, D]
5677
- ), nt = _((W) => {
5678
- if (!L.openKeys && at && T)
5679
- return W.getDataSet(at, T);
5681
+ ), rt = _((H) => {
5682
+ if (!Y.openKeys && at && T)
5683
+ return H.getDataSet(at, T);
5680
5684
  }), vt = y(() => {
5681
- const W = (ft) => Array.isArray(ft) ? ft.map((pt) => {
5685
+ const H = (ft) => Array.isArray(ft) ? ft.map((pt) => {
5682
5686
  const St = { ...pt };
5683
5687
  if (St.icon && typeof St.icon == "string") {
5684
5688
  const kt = Ft[St.icon];
5685
5689
  kt && (St.icon = /* @__PURE__ */ b(kt, {}));
5686
5690
  }
5687
- return St.children && St.children.length > 0 && (St.children = W(St.children)), St;
5691
+ return St.children && St.children.length > 0 && (St.children = H(St.children)), St;
5688
5692
  }) : [];
5689
- return W(Y || []);
5690
- }, [Y]), bt = y(
5691
- () => U,
5692
- [U]
5693
+ return H(q || []);
5694
+ }, [q]), bt = y(
5695
+ () => V,
5696
+ [V]
5693
5697
  ), yt = y(
5694
- () => it ?? nt,
5695
- [it, nt]
5698
+ () => nt ?? rt,
5699
+ [nt, rt]
5696
5700
  ), tt = j(
5697
- (W) => {
5701
+ (H) => {
5698
5702
  if (d) {
5699
- d(W);
5703
+ d(H);
5700
5704
  return;
5701
5705
  }
5702
5706
  a && t && $(
5703
5707
  t,
5704
- I(a, { key: W.key, keyPath: W.keyPath })
5708
+ I(a, { key: H.key, keyPath: H.keyPath })
5705
5709
  );
5706
5710
  },
5707
5711
  [d, a, t, $]
5708
5712
  ), lt = j(
5709
- (W) => {
5713
+ (H) => {
5710
5714
  if (v) {
5711
- v(W);
5715
+ v(H);
5712
5716
  return;
5713
5717
  }
5714
5718
  if (K)
5715
5719
  if (r) {
5716
5720
  const ft = _.getState().getDataSet(K, r) || {};
5717
- z(K, r, { ...ft, selectedKeys: W.selectedKeys });
5721
+ z(K, r, { ...ft, selectedKeys: H.selectedKeys });
5718
5722
  } else
5719
- z(K, "selectedKeys", W.selectedKeys);
5723
+ z(K, "selectedKeys", H.selectedKeys);
5720
5724
  o && t && $(
5721
5725
  t,
5722
- I(o, { selectedKeys: W.selectedKeys })
5726
+ I(o, { selectedKeys: H.selectedKeys })
5723
5727
  );
5724
5728
  },
5725
5729
  [
@@ -5732,21 +5736,21 @@ const Zc = ({
5732
5736
  $
5733
5737
  ]
5734
5738
  ), ot = j(
5735
- (W) => {
5739
+ (H) => {
5736
5740
  if (h) {
5737
- h(W);
5741
+ h(H);
5738
5742
  return;
5739
5743
  }
5740
5744
  if (K)
5741
5745
  if (r) {
5742
5746
  const ft = _.getState().getDataSet(K, r) || {};
5743
- z(K, r, { ...ft, openKeys: W });
5747
+ z(K, r, { ...ft, openKeys: H });
5744
5748
  } else
5745
- z(K, "openKeys", W);
5746
- else at && T && z(at, T, W);
5749
+ z(K, "openKeys", H);
5750
+ else at && T && z(at, T, H);
5747
5751
  c && t && $(
5748
5752
  t,
5749
- I(c, { openKeys: W })
5753
+ I(c, { openKeys: H })
5750
5754
  );
5751
5755
  },
5752
5756
  [
@@ -5761,68 +5765,68 @@ const Zc = ({
5761
5765
  $
5762
5766
  ]
5763
5767
  ), Rt = j(
5764
- (W) => {
5768
+ (H) => {
5765
5769
  if (p) {
5766
- p(W);
5770
+ p(H);
5767
5771
  return;
5768
5772
  }
5769
5773
  l && t && $(
5770
5774
  t,
5771
5775
  I(l, {
5772
- selectedKeys: W.selectedKeys,
5773
- key: W.key
5776
+ selectedKeys: H.selectedKeys,
5777
+ key: H.key
5774
5778
  })
5775
5779
  );
5776
5780
  },
5777
5781
  [p, l, t, $]
5778
5782
  ), Mt = O === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, Bt = y(() => {
5779
5783
  if (!A) return;
5780
- const W = {};
5784
+ const H = {};
5781
5785
  return Object.entries(A).forEach(([ft, pt]) => {
5782
- pt !== "" && pt !== void 0 && pt !== null && (W[ft] = pt);
5783
- }), Object.keys(W).length > 0 ? W : void 0;
5786
+ pt !== "" && pt !== void 0 && pt !== null && (H[ft] = pt);
5787
+ }), Object.keys(H).length > 0 ? H : void 0;
5784
5788
  }, [A]), G = n ? {
5785
5789
  motion: { motionName: "" }
5786
- } : {}, q = y(() => {
5790
+ } : {}, W = y(() => {
5787
5791
  if (typeof M == "string" && M) {
5788
- const W = Ft[M];
5789
- if (W) return /* @__PURE__ */ b(W, {});
5792
+ const H = Ft[M];
5793
+ if (H) return /* @__PURE__ */ b(H, {});
5790
5794
  }
5791
5795
  return M;
5792
5796
  }, [M]), et = y(() => {
5793
5797
  if (typeof B == "string" && B) {
5794
- const W = Ft[B];
5795
- if (W) return /* @__PURE__ */ b(W, {});
5798
+ const H = Ft[B];
5799
+ if (H) return /* @__PURE__ */ b(H, {});
5796
5800
  }
5797
5801
  return B;
5798
- }, [B]), X = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), ct = Qr(), dt = e || ct.replace(/:/g, "-"), Dt = y(() => {
5802
+ }, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), ct = Qr(), dt = e || ct.replace(/:/g, "-"), Dt = y(() => {
5799
5803
  var St;
5800
5804
  if (!u || typeof u == "function") return "";
5801
- const W = (St = u.subMenu) == null ? void 0 : St.root;
5802
- if (!W) return "";
5805
+ const H = (St = u.subMenu) == null ? void 0 : St.root;
5806
+ if (!H) return "";
5803
5807
  const ft = [], pt = `[data-and-menu-id="${dt}"]`;
5804
- if (W.item && Object.keys(W.item).length > 0) {
5805
- const kt = $e(W.item);
5808
+ if (H.item && Object.keys(H.item).length > 0) {
5809
+ const kt = $e(H.item);
5806
5810
  ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title { ${kt} }`);
5807
5811
  }
5808
- if (W.itemIcon && Object.keys(W.itemIcon).length > 0) {
5809
- const kt = $e(W.itemIcon);
5812
+ if (H.itemIcon && Object.keys(H.itemIcon).length > 0) {
5813
+ const kt = $e(H.itemIcon);
5810
5814
  ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${kt} }`);
5811
5815
  }
5812
- if (W.itemContent && Object.keys(W.itemContent).length > 0) {
5813
- const kt = $e(W.itemContent);
5816
+ if (H.itemContent && Object.keys(H.itemContent).length > 0) {
5817
+ const kt = $e(H.itemContent);
5814
5818
  ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${kt} }`);
5815
5819
  }
5816
- if (W.selected && Object.keys(W.selected).length > 0) {
5817
- const kt = $e(W.selected);
5820
+ if (H.selected && Object.keys(H.selected).length > 0) {
5821
+ const kt = $e(H.selected);
5818
5822
  ft.push(`${pt} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${kt} }`);
5819
5823
  }
5820
5824
  return ft.join(`
5821
5825
  `);
5822
- }, [u, dt]), Z = /* @__PURE__ */ b(
5826
+ }, [u, dt]), Q = /* @__PURE__ */ b(
5823
5827
  $r,
5824
5828
  {
5825
- ...P,
5829
+ ...U,
5826
5830
  ...Mt,
5827
5831
  ...G,
5828
5832
  mode: O,
@@ -5837,7 +5841,7 @@ const Zc = ({
5837
5841
  styles: u,
5838
5842
  classNames: S,
5839
5843
  expandIcon: C,
5840
- overflowedIndicator: X,
5844
+ overflowedIndicator: Z,
5841
5845
  disabledOverflow: E !== "default"
5842
5846
  }
5843
5847
  ), gt = () => E === "pagination" ? /* @__PURE__ */ b(
@@ -5845,19 +5849,19 @@ const Zc = ({
5845
5849
  {
5846
5850
  mode: O || "horizontal",
5847
5851
  arrowStyle: k,
5848
- arrowIconPrev: q,
5852
+ arrowIconPrev: W,
5849
5853
  arrowIconNext: et,
5850
- children: Z
5854
+ children: Q
5851
5855
  }
5852
- ) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: Z }) : Z, xt = y(() => {
5853
- const W = {};
5854
- return n && (W.motion = !1), Bt && (W.components = { Menu: Bt }), Object.keys(W).length > 0 ? W : void 0;
5856
+ ) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: Q }) : Q, xt = y(() => {
5857
+ const H = {};
5858
+ return n && (H.motion = !1), Bt && (H.components = { Menu: Bt }), Object.keys(H).length > 0 ? H : void 0;
5855
5859
  }, [n, Bt]);
5856
5860
  return (() => {
5857
- const W = gt(), ft = Dt ? /* @__PURE__ */ st("div", { "data-and-menu-id": dt, style: { display: "contents" }, children: [
5861
+ const H = gt(), ft = Dt ? /* @__PURE__ */ st("div", { "data-and-menu-id": dt, style: { display: "contents" }, children: [
5858
5862
  /* @__PURE__ */ b("style", { children: Dt }),
5859
- W
5860
- ] }) : W;
5863
+ H
5864
+ ] }) : H;
5861
5865
  return xt ? /* @__PURE__ */ b(Kt, { theme: xt, children: ft }) : ft;
5862
5866
  })();
5863
5867
  }, rs = ({
@@ -5885,7 +5889,7 @@ const Zc = ({
5885
5889
  ...m
5886
5890
  }) => {
5887
5891
  const u = _((O) => O.getDataSet), S = y(
5888
- () => rt(t, i),
5892
+ () => it(t, i),
5889
5893
  [t, i]
5890
5894
  ), A = y(() => {
5891
5895
  if (S && r) return u(S, r);
@@ -5936,7 +5940,7 @@ const Zc = ({
5936
5940
  ...d
5937
5941
  }) => {
5938
5942
  const v = _((u) => u.getDataSet), h = y(
5939
- () => rt(t, i),
5943
+ () => it(t, i),
5940
5944
  [t, i]
5941
5945
  ), p = y(() => {
5942
5946
  if (h && r) return v(h, r);
@@ -6023,7 +6027,7 @@ const Zc = ({
6023
6027
  ...p
6024
6028
  }) => {
6025
6029
  const g = Ke(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = De(oe), S = _(($) => $.addCommand), A = y(
6026
- () => rt(m, f),
6030
+ () => it(m, f),
6027
6031
  [m, f]
6028
6032
  ), C = _(($) => A && s ? $.getDataSet(A, s) : null), w = y(() => !m || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [m, e, u]), D = _(
6029
6033
  ($) => {
@@ -6088,13 +6092,13 @@ const Zc = ({
6088
6092
  );
6089
6093
  };
6090
6094
  }, [M, f, s, m]), {
6091
- layoutChangeAction: H,
6092
- ...P
6095
+ layoutChangeAction: P,
6096
+ ...U
6093
6097
  } = p;
6094
6098
  return /* @__PURE__ */ b(
6095
6099
  jr,
6096
6100
  {
6097
- ...P,
6101
+ ...U,
6098
6102
  items: k,
6099
6103
  columns: N,
6100
6104
  gutter: x,
@@ -6118,7 +6122,7 @@ const Zc = ({
6118
6122
  ...h
6119
6123
  }) => {
6120
6124
  const p = _((w) => w.getDataSet), g = _((w) => w.getProps), f = y(
6121
- () => rt(t, a),
6125
+ () => it(t, a),
6122
6126
  [t, a]
6123
6127
  ), s = y(() => t && e ? g(t, e) : null, [t, e, g]), m = y(() => {
6124
6128
  if (f && o) return p(f, o);
@@ -6154,7 +6158,7 @@ const Zc = ({
6154
6158
  ...h
6155
6159
  }) => {
6156
6160
  const p = _((C) => C.addCommand), g = _((C) => C.getDataSet), f = _((C) => C.setDataSet), s = y(
6157
- () => rt(t, i),
6161
+ () => it(t, i),
6158
6162
  [t, i]
6159
6163
  ), m = y(() => {
6160
6164
  if (s && r)
@@ -6173,7 +6177,7 @@ const Zc = ({
6173
6177
  });
6174
6178
  }, [l, s, r, f, o, t, p]);
6175
6179
  return /* @__PURE__ */ b(
6176
- Ln,
6180
+ zn,
6177
6181
  {
6178
6182
  ...h,
6179
6183
  open: u,
@@ -6195,7 +6199,7 @@ const Zc = ({
6195
6199
  ...d
6196
6200
  }) => {
6197
6201
  const v = _((u) => u.addCommand), h = _((u) => u.getDataSet), p = _((u) => u.setDataSet), g = y(
6198
- () => rt(t, i),
6202
+ () => it(t, i),
6199
6203
  [t, i]
6200
6204
  ), f = y(() => {
6201
6205
  if (g && r)
@@ -6271,47 +6275,47 @@ const Zc = ({
6271
6275
  children: w,
6272
6276
  ...D
6273
6277
  }) => {
6274
- const T = _((U) => U.addCommand), O = _((U) => U.getDataSet), N = _((U) => U.setDataSet), x = y(
6275
- () => rt(t, i),
6278
+ const T = _((V) => V.addCommand), O = _((V) => V.getDataSet), N = _((V) => V.setDataSet), x = y(
6279
+ () => it(t, i),
6276
6280
  [t, i]
6277
6281
  ), E = C === "default" ? "medium" : C, k = y(() => {
6278
- const U = ln(s, {});
6282
+ const V = ln(s, {});
6279
6283
  return Object.fromEntries(
6280
- Object.entries(U).map(([it, at]) => [
6281
- it,
6284
+ Object.entries(V).map(([nt, at]) => [
6285
+ nt,
6282
6286
  po(at)
6283
6287
  ])
6284
6288
  );
6285
6289
  }, [s]), M = y(() => {
6286
- const U = vo(v);
6287
- return U.length > 0 ? U : void 0;
6288
- }, [v]), H = y(() => {
6290
+ const V = vo(v);
6291
+ return V.length > 0 ? V : void 0;
6292
+ }, [v]), P = y(() => {
6289
6293
  if (x && r) {
6290
- const U = O(x, `${r}.activeTabKey`);
6291
- if (typeof U == "string") return U;
6294
+ const V = O(x, `${r}.activeTabKey`);
6295
+ if (typeof V == "string") return V;
6292
6296
  }
6293
- }, [x, r, O]) ?? h, P = j((U) => {
6297
+ }, [x, r, O]) ?? h, U = j((V) => {
6294
6298
  if (f) {
6295
- f(U);
6299
+ f(V);
6296
6300
  return;
6297
6301
  }
6298
- x && r && N(x, `${r}.activeTabKey`, U), g && t && T(t, I(g, { key: U }));
6299
- }, [f, x, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot: V, otherChildren: R, actionsFromChildren: L } = y(() => {
6300
- let U = null, it = null, at = null, nt = [];
6302
+ x && r && N(x, `${r}.activeTabKey`, V), g && t && T(t, I(g, { key: V }));
6303
+ }, [f, x, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot: L, otherChildren: R, actionsFromChildren: Y } = y(() => {
6304
+ let V = null, nt = null, at = null, rt = [];
6301
6305
  const vt = [];
6302
6306
  let bt = !1;
6303
- return a && (U = a), o && (it = o), c && (at = c), d && (nt = d), Wt.Children.forEach(w, (yt) => {
6307
+ return a && (V = a), o && (nt = o), c && (at = c), d && (rt = d), Wt.Children.forEach(w, (yt) => {
6304
6308
  if (!Wt.isValidElement(yt)) {
6305
6309
  vt.push(yt);
6306
6310
  return;
6307
6311
  }
6308
6312
  const tt = yt.props, lt = tt["data-slot-type"];
6309
- lt === "title" && !a ? U = yt : lt === "extra" && !o ? it = yt : lt === "cover" && !c ? at = yt : lt === "actions" && !d ? (nt = [yt], bt = !0) : lt === "body" && tt.children ? vt.push(tt.children) : vt.push(yt);
6310
- }), { titleSlot: U, extraSlot: it, coverSlot: at, actionsSlot: nt, otherChildren: vt, actionsFromChildren: bt };
6311
- }, [w, a, o, c, d]), J = y(() => {
6312
- const U = ln(m, {});
6313
- return L ? { actionsLiMargin: "0px", ...U } : U;
6314
- }, [m, L]), Y = /* @__PURE__ */ b(
6313
+ lt === "title" && !a ? V = yt : lt === "extra" && !o ? nt = yt : lt === "cover" && !c ? at = yt : lt === "actions" && !d ? (rt = [yt], bt = !0) : lt === "body" && tt.children ? vt.push(tt.children) : vt.push(yt);
6314
+ }), { titleSlot: V, extraSlot: nt, coverSlot: at, actionsSlot: rt, otherChildren: vt, actionsFromChildren: bt };
6315
+ }, [w, a, o, c, d]), X = y(() => {
6316
+ const V = ln(m, {});
6317
+ return Y ? { actionsLiMargin: "0px", ...V } : V;
6318
+ }, [m, Y]), q = /* @__PURE__ */ b(
6315
6319
  Ze,
6316
6320
  {
6317
6321
  ...D,
@@ -6320,16 +6324,16 @@ const Zc = ({
6320
6324
  extra: z,
6321
6325
  cover: K,
6322
6326
  tabBarExtraContent: l,
6323
- actions: V.length > 0 ? V : void 0,
6327
+ actions: L.length > 0 ? L : void 0,
6324
6328
  tabList: M,
6325
- activeTabKey: H,
6329
+ activeTabKey: P,
6326
6330
  defaultActiveTabKey: p,
6327
- onTabChange: M ? P : void 0,
6331
+ onTabChange: M ? U : void 0,
6328
6332
  styles: k,
6329
6333
  children: R
6330
6334
  }
6331
6335
  );
6332
- return J && Object.keys(J).length > 0 ? /* @__PURE__ */ b(Kt, { theme: { components: { Card: J } }, children: Y }) : Y;
6336
+ return X && Object.keys(X).length > 0 ? /* @__PURE__ */ b(Kt, { theme: { components: { Card: X } }, children: q }) : q;
6333
6337
  }, ds = ({
6334
6338
  id: e,
6335
6339
  sessionId: t,
@@ -6386,7 +6390,7 @@ const Zc = ({
6386
6390
  ...s
6387
6391
  }) => {
6388
6392
  const m = _((x) => x.addCommand), u = De(oe), S = f ?? (u == null ? void 0 : u.index), A = y(
6389
- () => rt(t, i),
6393
+ () => it(t, i),
6390
6394
  [t, i]
6391
6395
  ), C = _((x) => {
6392
6396
  if (A)
@@ -6496,14 +6500,14 @@ const Zc = ({
6496
6500
  ]
6497
6501
  }
6498
6502
  ), [p, n, a, g]);
6499
- return /* @__PURE__ */ b(Lr, { ...s, menu: O, onOpenChange: T, children: N });
6503
+ return /* @__PURE__ */ b(zr, { ...s, menu: O, onOpenChange: T, children: N });
6500
6504
  }, hs = ({
6501
6505
  id: e,
6502
6506
  sessionId: t,
6503
6507
  develop: n,
6504
6508
  children: i,
6505
6509
  ...r
6506
- }) => /* @__PURE__ */ b(zr, { ...r, children: i }), ys = ({
6510
+ }) => /* @__PURE__ */ b(Lr, { ...r, children: i }), ys = ({
6507
6511
  id: e,
6508
6512
  sessionId: t,
6509
6513
  develop: n,
@@ -6515,7 +6519,7 @@ const Zc = ({
6515
6519
  develop: n,
6516
6520
  children: i,
6517
6521
  ...r
6518
- }) => /* @__PURE__ */ b(zn, { ...r, children: i }), ps = ({
6522
+ }) => /* @__PURE__ */ b(Ln, { ...r, children: i }), ps = ({
6519
6523
  id: e,
6520
6524
  sessionId: t,
6521
6525
  develop: n,
@@ -6525,7 +6529,7 @@ const Zc = ({
6525
6529
  ...o
6526
6530
  }) => {
6527
6531
  const c = _((f) => f.getDataSet), l = _((f) => f.getProps), d = y(
6528
- () => rt(t, i),
6532
+ () => it(t, i),
6529
6533
  [t, i]
6530
6534
  ), v = y(() => t && e ? l(t, e) : null, [t, e, l]), h = y(() => {
6531
6535
  if (d && r) return c(d, r);
@@ -6707,7 +6711,7 @@ const Zc = ({
6707
6711
  "page-showLessItems": S = !1
6708
6712
  }) => {
6709
6713
  const A = u === "default" ? "middle" : u, C = _((B) => B.getDataSet), w = y(
6710
- () => rt(t, i),
6714
+ () => it(t, i),
6711
6715
  [t, i]
6712
6716
  ), [D, T] = mt(1), [O, N] = mt(p), x = y(() => {
6713
6717
  if (w && r) {
@@ -6718,18 +6722,18 @@ const Zc = ({
6718
6722
  }, [w, r, C]), E = y(() => n ? x.length > 0 ? x : c || [] : w ? x : c || [], [n, w, x, c]), k = y(() => {
6719
6723
  let B = E;
6720
6724
  if (!h) {
6721
- const H = (D - 1) * O, P = H + O;
6722
- B = B.slice(H, P);
6725
+ const P = (D - 1) * O, U = P + O;
6726
+ B = B.slice(P, U);
6723
6727
  }
6724
6728
  return l ? B.slice(0, l) : B;
6725
6729
  }, [E, h, D, O, l]);
6726
6730
  if (!E || E.length === 0)
6727
6731
  return o ? /* @__PURE__ */ b(fe, { children: o() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
6728
- const M = (B, H) => {
6729
- T(B), H && N(H);
6732
+ const M = (B, P) => {
6733
+ T(B), P && N(P);
6730
6734
  };
6731
6735
  return /* @__PURE__ */ st("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
6732
- /* @__PURE__ */ b("div", { style: { flex: 1 }, children: k.map((B, H) => /* @__PURE__ */ b(Wt.Fragment, { children: a ? a(B, H) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || H)) }),
6736
+ /* @__PURE__ */ b("div", { style: { flex: 1 }, children: k.map((B, P) => /* @__PURE__ */ b(Wt.Fragment, { children: a ? a(B, P) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || P)) }),
6733
6737
  !h && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
6734
6738
  qn,
6735
6739
  {
@@ -6823,7 +6827,7 @@ const Zc = ({
6823
6827
  style: l
6824
6828
  }) => {
6825
6829
  const d = _((s) => s.addCommand), v = _((s) => s.getDataSet), h = y(
6826
- () => rt(t, i),
6830
+ () => it(t, i),
6827
6831
  [t, i]
6828
6832
  ), p = y(() => {
6829
6833
  if (h && r) {
@@ -6913,7 +6917,7 @@ const Zc = ({
6913
6917
  k = Number.isFinite(M) ? M : null;
6914
6918
  }
6915
6919
  return {
6916
- storeBaseKey: rt(i, x),
6920
+ storeBaseKey: it(i, x),
6917
6921
  arrayIndex: k
6918
6922
  };
6919
6923
  }, [n, i, h]), f = _((N) => {
@@ -7093,70 +7097,70 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7093
7097
  At(() => {
7094
7098
  wo();
7095
7099
  }, []);
7096
- const f = _((F) => F.setDataSet), s = y(
7097
- () => rt(t, i),
7100
+ const f = _((J) => J.setDataSet), s = y(
7101
+ () => it(t, i),
7098
7102
  [t, i]
7099
- ), m = _((F) => {
7103
+ ), m = _((J) => {
7100
7104
  if (!s || !r) return;
7101
- const W = F.getDataSet(s, r);
7102
- if (W != null && W !== "") return String(W);
7105
+ const H = J.getDataSet(s, r);
7106
+ if (H != null && H !== "") return String(H);
7103
7107
  }), u = _(
7104
- (F) => {
7105
- var W;
7106
- return t && e ? ((W = F.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
7108
+ (J) => {
7109
+ var H;
7110
+ return t && e ? ((H = J.propsStore[`${t}_props`]) == null ? void 0 : H[e]) ?? null : null;
7107
7111
  }
7108
7112
  ), S = y(() => {
7109
- let F;
7110
- if (m !== void 0) F = m;
7113
+ let J;
7114
+ if (m !== void 0) J = m;
7111
7115
  else if (u && typeof u == "object") {
7112
- const W = u.filePath;
7113
- W != null && W !== "" && (F = String(W));
7116
+ const H = u.filePath;
7117
+ H != null && H !== "" && (J = String(H));
7114
7118
  }
7115
- return F === void 0 && (F = a), F;
7119
+ return J === void 0 && (J = a), J;
7116
7120
  }, [m, u, a]), A = y(() => {
7117
7121
  if (u && typeof u == "object") {
7118
- const F = u.nonPdfBackgroundColor;
7119
- if (typeof F == "string" && F.trim())
7120
- return F.trim();
7122
+ const J = u.nonPdfBackgroundColor;
7123
+ if (typeof J == "string" && J.trim())
7124
+ return J.trim();
7121
7125
  }
7122
7126
  return d;
7123
7127
  }, [u, d]), [C, w] = mt(0), [D, T] = mt(
7124
7128
  () => Math.max(1, o || 1)
7125
7129
  ), O = _t(D);
7126
7130
  O.current = D;
7127
- const [N, x] = mt(null), [E, k] = mt(!!S), [M, B] = mt("all"), [H, P] = mt("width"), [$, z] = mt(1), K = _t(null), V = _t(null), R = _t({}), L = _t(!1), J = _t(null), [Y, U] = mt(600), [it, at] = mt(800), nt = _t(0), vt = y(
7131
+ const [N, x] = mt(null), [E, k] = mt(!!S), [M, B] = mt("all"), [P, U] = mt("width"), [$, z] = mt(1), K = _t(null), L = _t(null), R = _t({}), Y = _t(!1), X = _t(null), [q, V] = mt(600), [nt, at] = mt(800), rt = _t(0), vt = y(
7128
7132
  () => ({
7129
7133
  cMapUrl: `https://unpkg.com/pdfjs-dist@${ve.version}/cmaps/`,
7130
7134
  cMapPacked: !0
7131
7135
  }),
7132
7136
  []
7133
- ), bt = (c || "").trim(), yt = _((F) => {
7137
+ ), bt = (c || "").trim(), yt = _((J) => {
7134
7138
  if (!(!s || !bt))
7135
- return F.getDataSet(s, `${bt}.targetPage`);
7139
+ return J.getDataSet(s, `${bt}.targetPage`);
7136
7140
  });
7137
7141
  At(() => {
7138
- const F = V.current;
7139
- if (!F) return;
7140
- const W = new ResizeObserver(() => {
7141
- const St = F.clientWidth, kt = F.clientHeight;
7142
- St > 0 && U(St), kt > 0 && at(kt);
7142
+ const J = L.current;
7143
+ if (!J) return;
7144
+ const H = new ResizeObserver(() => {
7145
+ const St = J.clientWidth, kt = J.clientHeight;
7146
+ St > 0 && V(St), kt > 0 && at(kt);
7143
7147
  });
7144
- W.observe(F);
7145
- const ft = F.clientWidth, pt = F.clientHeight;
7146
- return ft > 0 && U(ft), pt > 0 && at(pt), () => W.disconnect();
7148
+ H.observe(J);
7149
+ const ft = J.clientWidth, pt = J.clientHeight;
7150
+ return ft > 0 && V(ft), pt > 0 && at(pt), () => H.disconnect();
7147
7151
  }, [S]);
7148
- const tt = y(() => Math.max(240, Y - 16), [Y]), lt = y(
7149
- () => Math.max(320, it - 16),
7150
- [it]
7152
+ const tt = y(() => Math.max(240, q - 16), [q]), lt = y(
7153
+ () => Math.max(320, nt - 16),
7154
+ [nt]
7151
7155
  ), ot = y(
7152
7156
  () => Math.max(120, tt * $),
7153
7157
  [tt, $]
7154
7158
  ), Rt = y(
7155
7159
  () => Math.max(180, lt * $),
7156
7160
  [lt, $]
7157
- ), Mt = y(() => M === "all" ? Array.from({ length: C }, (F, W) => W + 1) : [D], [M, C, D]), Bt = j(
7158
- (F, W) => {
7159
- !s || !bt || (f(s, `${bt}.currentPage`, F), W > 0 && f(s, `${bt}.totalPages`, W));
7161
+ ), Mt = y(() => M === "all" ? Array.from({ length: C }, (J, H) => H + 1) : [D], [M, C, D]), Bt = j(
7162
+ (J, H) => {
7163
+ !s || !bt || (f(s, `${bt}.currentPage`, J), H > 0 && f(s, `${bt}.totalPages`, H));
7160
7164
  },
7161
7165
  [s, bt, f]
7162
7166
  );
@@ -7164,42 +7168,42 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7164
7168
  C > 0 && Bt(D, C);
7165
7169
  }, [D, C, Bt]);
7166
7170
  const G = j(
7167
- (F, W = "auto") => {
7168
- const ft = C > 0 ? Math.max(1, Math.min(Math.floor(F), C)) : Math.max(1, Math.floor(F));
7171
+ (J, H = "auto") => {
7172
+ const ft = C > 0 ? Math.max(1, Math.min(Math.floor(J), C)) : Math.max(1, Math.floor(J));
7169
7173
  if (T(ft), M === "all") {
7170
7174
  const pt = R.current[ft];
7171
- pt && pt.scrollIntoView({ block: "start", behavior: W });
7175
+ pt && pt.scrollIntoView({ block: "start", behavior: H });
7172
7176
  }
7173
7177
  },
7174
7178
  [C, M]
7175
- ), q = _t(G);
7176
- q.current = G, At(() => {
7177
- const F = yt;
7178
- typeof F != "number" || !Number.isFinite(F) || (G(F, "auto"), s && bt && f(s, `${bt}.targetPage`, void 0));
7179
+ ), W = _t(G);
7180
+ W.current = G, At(() => {
7181
+ const J = yt;
7182
+ typeof J != "number" || !Number.isFinite(J) || (G(J, "auto"), s && bt && f(s, `${bt}.targetPage`, void 0));
7179
7183
  }, [yt, G, s, bt, f]), At(() => {
7180
- const F = Math.max(1, o ?? 1);
7181
- T(F);
7184
+ const J = Math.max(1, o ?? 1);
7185
+ T(J);
7182
7186
  }, [o]);
7183
7187
  const et = j(
7184
- ({ numPages: F }) => {
7188
+ ({ numPages: J }) => {
7185
7189
  x(null), k(!1);
7186
- const W = O.current, ft = Math.min(Math.max(1, W), F || 1);
7187
- w(F), T(ft), L.current = !0, J.current = ft;
7190
+ const H = O.current, ft = Math.min(Math.max(1, H), J || 1);
7191
+ w(J), T(ft), Y.current = !0, X.current = ft;
7188
7192
  },
7189
7193
  []
7190
- ), X = j((F) => {
7191
- x(F), k(!1), L.current = !1, J.current = null;
7194
+ ), Z = j((J) => {
7195
+ x(J), k(!1), Y.current = !1, X.current = null;
7192
7196
  }, []);
7193
7197
  At(() => {
7194
- k(!!S), x(null), z(1), w(0), L.current = !!S, J.current = null, R.current = {};
7198
+ k(!!S), x(null), z(1), w(0), Y.current = !!S, X.current = null, R.current = {};
7195
7199
  }, [S]), At(() => {
7196
- const F = J.current;
7197
- if (F == null || E || C <= 0 || M !== "all") return;
7198
- let W = !1, ft = 0;
7200
+ const J = X.current;
7201
+ if (J == null || E || C <= 0 || M !== "all") return;
7202
+ let H = !1, ft = 0;
7199
7203
  const pt = 120, St = () => {
7200
- if (W) return;
7204
+ if (H) return;
7201
7205
  ft++;
7202
- const kt = Math.max(1, Math.min(Math.floor(F), C));
7206
+ const kt = Math.max(1, Math.min(Math.floor(J), C));
7203
7207
  let ee = !0;
7204
7208
  for (let Gt = 1; Gt <= kt; Gt++) {
7205
7209
  const me = R.current[Gt];
@@ -7210,67 +7214,67 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7210
7214
  }
7211
7215
  if (ee) {
7212
7216
  requestAnimationFrame(() => {
7213
- if (W) return;
7217
+ if (H) return;
7214
7218
  const Gt = R.current[kt];
7215
- Gt && Gt.scrollIntoView({ block: "start", behavior: "auto" }), J.current = null, requestAnimationFrame(() => {
7216
- W || (L.current = !1);
7219
+ Gt && Gt.scrollIntoView({ block: "start", behavior: "auto" }), X.current = null, requestAnimationFrame(() => {
7220
+ H || (Y.current = !1);
7217
7221
  });
7218
7222
  });
7219
7223
  return;
7220
7224
  }
7221
7225
  if (ft >= pt) {
7222
- J.current = null, L.current = !1;
7226
+ X.current = null, Y.current = !1;
7223
7227
  return;
7224
7228
  }
7225
7229
  requestAnimationFrame(St);
7226
7230
  };
7227
7231
  return requestAnimationFrame(St), () => {
7228
- W = !0;
7232
+ H = !0;
7229
7233
  };
7230
7234
  }, [E, C, M]);
7231
- const ct = j((F) => {
7232
- z((W) => {
7233
- const ft = Number((W + F).toFixed(2));
7235
+ const ct = j((J) => {
7236
+ z((H) => {
7237
+ const ft = Number((H + J).toFixed(2));
7234
7238
  return Math.max(Do, Math.min(xo, ft));
7235
7239
  });
7236
7240
  }, []), dt = j(() => {
7237
7241
  if (!S) return;
7238
- const F = window.open(S, "_blank", "noopener,noreferrer");
7239
- F && (F.onload = () => {
7242
+ const J = window.open(S, "_blank", "noopener,noreferrer");
7243
+ J && (J.onload = () => {
7240
7244
  try {
7241
- F.print();
7245
+ J.print();
7242
7246
  } catch {
7243
7247
  }
7244
7248
  });
7245
7249
  }, [S]), Dt = j(() => {
7246
7250
  if (!S) return;
7247
- const F = document.createElement("a");
7248
- F.href = S, F.download = "", F.rel = "noopener noreferrer", F.target = "_blank", document.body.appendChild(F), F.click(), F.remove();
7249
- }, [S]), Z = j(() => {
7250
- var W;
7251
- const F = K.current;
7252
- F && ((W = F.requestFullscreen) == null || W.call(F));
7251
+ const J = document.createElement("a");
7252
+ J.href = S, J.download = "", J.rel = "noopener noreferrer", J.target = "_blank", document.body.appendChild(J), J.click(), J.remove();
7253
+ }, [S]), Q = j(() => {
7254
+ var H;
7255
+ const J = K.current;
7256
+ J && ((H = J.requestFullscreen) == null || H.call(J));
7253
7257
  }, []), gt = j(() => {
7254
7258
  document.fullscreenElement && document.exitFullscreen();
7255
7259
  }, []), xt = j(() => {
7256
- if (E || M !== "all" || C <= 0 || L.current) return;
7257
- const F = V.current;
7258
- if (!F) return;
7259
- const W = F.scrollTop + F.clientHeight * 0.35;
7260
+ if (E || M !== "all" || C <= 0 || Y.current) return;
7261
+ const J = L.current;
7262
+ if (!J) return;
7263
+ const H = J.scrollTop + J.clientHeight * 0.35;
7260
7264
  let ft = D, pt = Number.POSITIVE_INFINITY;
7261
7265
  for (let St = 1; St <= C; St++) {
7262
7266
  const kt = R.current[St];
7263
7267
  if (!kt) continue;
7264
- const ee = Math.abs(kt.offsetTop - W);
7268
+ const ee = Math.abs(kt.offsetTop - H);
7265
7269
  ee < pt && (pt = ee, ft = St);
7266
7270
  }
7267
7271
  ft !== D && T(ft);
7268
7272
  }, [E, M, C, D]);
7269
7273
  return At(() => {
7270
7274
  if (!u || typeof u != "object") return;
7271
- const F = u._pdfCmdNonce, W = u.pdfCommand, ft = u.pdfCommandArg;
7272
- if (!(F == null || F === nt.current || !W)) {
7273
- switch (nt.current = F, W) {
7275
+ const J = u._pdfCmdNonce, H = u.pdfCommand, ft = u.pdfCommandArg;
7276
+ if (!(J == null || J === rt.current || !H)) {
7277
+ switch (rt.current = J, H) {
7274
7278
  case "print":
7275
7279
  dt();
7276
7280
  break;
@@ -7278,7 +7282,7 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7278
7282
  Dt();
7279
7283
  break;
7280
7284
  case "enterFullscreen":
7281
- Z();
7285
+ Q();
7282
7286
  break;
7283
7287
  case "exitFullscreen":
7284
7288
  gt();
@@ -7287,10 +7291,10 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7287
7291
  typeof ft == "number" && G(ft, "smooth");
7288
7292
  break;
7289
7293
  case "fitWidth":
7290
- P("width"), z(1);
7294
+ U("width"), z(1);
7291
7295
  break;
7292
7296
  case "fitHeight":
7293
- P("height"), z(1);
7297
+ U("height"), z(1);
7294
7298
  break;
7295
7299
  case "zoomIn":
7296
7300
  ct(Rn);
@@ -7320,7 +7324,7 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7320
7324
  e,
7321
7325
  dt,
7322
7326
  Dt,
7323
- Z,
7327
+ Q,
7324
7328
  gt,
7325
7329
  G,
7326
7330
  ct
@@ -7339,7 +7343,7 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7339
7343
  children: /* @__PURE__ */ b(
7340
7344
  "div",
7341
7345
  {
7342
- ref: V,
7346
+ ref: L,
7343
7347
  onScroll: xt,
7344
7348
  style: {
7345
7349
  flex: 1,
@@ -7378,14 +7382,14 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7378
7382
  {
7379
7383
  file: S,
7380
7384
  onLoadSuccess: et,
7381
- onLoadError: X,
7385
+ onLoadError: Z,
7382
7386
  loading: null,
7383
7387
  options: vt,
7384
- children: Mt.map((F) => /* @__PURE__ */ b(
7388
+ children: Mt.map((J) => /* @__PURE__ */ b(
7385
7389
  "div",
7386
7390
  {
7387
- ref: (W) => {
7388
- R.current[F] = W;
7391
+ ref: (H) => {
7392
+ R.current[J] = H;
7389
7393
  },
7390
7394
  style: {
7391
7395
  display: "flex",
@@ -7396,15 +7400,15 @@ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7396
7400
  children: /* @__PURE__ */ b(
7397
7401
  ci,
7398
7402
  {
7399
- pageNumber: F,
7400
- width: H === "width" ? ot : void 0,
7401
- height: H === "height" ? Rt : void 0,
7403
+ pageNumber: J,
7404
+ width: P === "width" ? ot : void 0,
7405
+ height: P === "height" ? Rt : void 0,
7402
7406
  renderTextLayer: !1,
7403
7407
  renderAnnotationLayer: !1
7404
7408
  }
7405
7409
  )
7406
7410
  },
7407
- F
7411
+ J
7408
7412
  ))
7409
7413
  },
7410
7414
  S
@@ -7482,25 +7486,25 @@ function te(e, t) {
7482
7486
  axis: k,
7483
7487
  scrollbar: M,
7484
7488
  slider: B,
7485
- theme: H,
7486
- state: P,
7489
+ theme: P,
7490
+ state: U,
7487
7491
  // 事件配置
7488
7492
  events: $,
7489
7493
  // 其余配置直接透传
7490
7494
  ...z
7491
- } = o, K = _t(null), V = _((G) => G.getDataSet), R = _((G) => G.addCommand), L = y(() => {
7495
+ } = o, K = _t(null), L = _((G) => G.getDataSet), R = _((G) => G.addCommand), Y = y(() => {
7492
7496
  if (p && g) {
7493
- const q = V(p, g);
7494
- if (q !== void 0) return q;
7497
+ const W = L(p, g);
7498
+ if (W !== void 0) return W;
7495
7499
  }
7496
7500
  const G = Nt(f);
7497
7501
  return G !== void 0 ? G : d ? r : [];
7498
- }, [f, p, g, V, d]), J = (G) => {
7499
- var q;
7502
+ }, [f, p, g, L, d]), X = (G) => {
7503
+ var W;
7500
7504
  if (K.current = G, !d && l) {
7501
7505
  const et = Nt($);
7502
- et && typeof et == "object" && Object.entries(et).forEach(([X, ct]) => {
7503
- typeof ct == "string" && G.on(X, (dt) => {
7506
+ et && typeof et == "object" && Object.entries(et).forEach(([Z, ct]) => {
7507
+ typeof ct == "string" && G.on(Z, (dt) => {
7504
7508
  R(l, {
7505
7509
  actionName: ct,
7506
7510
  arg: dt,
@@ -7509,42 +7513,42 @@ function te(e, t) {
7509
7513
  });
7510
7514
  });
7511
7515
  }
7512
- (q = z.onReady) == null || q.call(z, G);
7513
- }, Y = Nt(s) || {}, U = {
7514
- data: L,
7516
+ (W = z.onReady) == null || W.call(z, G);
7517
+ }, q = Nt(s) || {}, V = {
7518
+ data: Y,
7515
7519
  // 优先使用 common 中的配置,没配置则使用默认值
7516
- height: Y.height ?? i,
7517
- autoFit: Ao(Y.autoFit, !0),
7520
+ height: q.height ?? i,
7521
+ autoFit: Ao(q.autoFit, !0),
7518
7522
  // 合并其他通用配置 (margin, padding, insert, etc.)
7519
- ...Y,
7523
+ ...q,
7520
7524
  // 设计器模式禁用动画
7521
7525
  animate: d ? !1 : Nt(O),
7522
- onReady: J,
7526
+ onReady: X,
7523
7527
  ...z
7524
- }, it = Nt(C);
7525
- it !== void 0 && (U.title = it);
7528
+ }, nt = Nt(C);
7529
+ nt !== void 0 && (V.title = nt);
7526
7530
  const at = Nt(w);
7527
- at !== void 0 && (U.legend = at);
7528
- const nt = Nt(D);
7529
- nt !== void 0 && (U.label = nt);
7531
+ at !== void 0 && (V.legend = at);
7532
+ const rt = Nt(D);
7533
+ rt !== void 0 && (V.label = rt);
7530
7534
  const vt = Nt(T);
7531
- vt !== void 0 && (U.tooltip = vt);
7535
+ vt !== void 0 && (V.tooltip = vt);
7532
7536
  const bt = Nt(N);
7533
- bt !== void 0 && (U.scale = bt);
7537
+ bt !== void 0 && (V.scale = bt);
7534
7538
  const yt = Nt(x);
7535
- yt !== void 0 && (U.interaction = yt);
7539
+ yt !== void 0 && (V.interaction = yt);
7536
7540
  const tt = Nt(E);
7537
- tt !== void 0 && (U.annotations = tt);
7541
+ tt !== void 0 && (V.annotations = tt);
7538
7542
  const lt = Nt(k);
7539
- lt !== void 0 && (U.axis = lt);
7543
+ lt !== void 0 && (V.axis = lt);
7540
7544
  const ot = Nt(M);
7541
- ot !== void 0 && (U.scrollbar = ot);
7545
+ ot !== void 0 && (V.scrollbar = ot);
7542
7546
  const Rt = Nt(B);
7543
- Rt !== void 0 && (U.slider = Rt);
7544
- const Mt = Nt(H);
7545
- Mt !== void 0 && (U.theme = Mt);
7546
- const Bt = Nt(P);
7547
- return Bt !== void 0 && (U.state = Bt), /* @__PURE__ */ b(e, { ...U });
7547
+ Rt !== void 0 && (V.slider = Rt);
7548
+ const Mt = Nt(P);
7549
+ Mt !== void 0 && (V.theme = Mt);
7550
+ const Bt = Nt(U);
7551
+ return Bt !== void 0 && (V.state = Bt), /* @__PURE__ */ b(e, { ...V });
7548
7552
  };
7549
7553
  return a.displayName = `withBaseChart(${n})`, a;
7550
7554
  }
@@ -7808,7 +7812,7 @@ export {
7808
7812
  Oc as AndRate,
7809
7813
  us as AndResult,
7810
7814
  hs as AndRow,
7811
- Lc as AndSegmented,
7815
+ zc as AndSegmented,
7812
7816
  Dc as AndSelect,
7813
7817
  jc as AndSimpleForm,
7814
7818
  _c as AndSlider,
@@ -7818,7 +7822,7 @@ export {
7818
7822
  Jc as AndStatisticsCountdown,
7819
7823
  Yc as AndSteps,
7820
7824
  xc as AndSwitch,
7821
- zc as AndTable,
7825
+ Lc as AndTable,
7822
7826
  Hc as AndTabs,
7823
7827
  Ic as AndTag,
7824
7828
  Vc as AndText,
@@ -7851,7 +7855,7 @@ export {
7851
7855
  Ca as formatByType,
7852
7856
  cn as getAccessToken,
7853
7857
  Jt as getCoreConfig,
7854
- rt as getDataSetStoreKey,
7858
+ it as getDataSetStoreKey,
7855
7859
  dn as getDictOptions,
7856
7860
  tn as getNestedValue,
7857
7861
  be as getValidateStoreKey,
@@ -7878,7 +7882,7 @@ export {
7878
7882
  na as useApiService,
7879
7883
  sc as useCommandsStore,
7880
7884
  Ce as useDictOptions,
7881
- Lt as useFieldValidation,
7885
+ zt as useFieldValidation,
7882
7886
  cc as useItemStore,
7883
7887
  oc as usePopCommand,
7884
7888
  mn as useRemoteOptions,