@nuwatop/code-canvas-core 0.5.53 → 0.5.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsx as g, jsxs as fe, Fragment as St } from "react/jsx-runtime";
1
+ import { jsx as g, jsxs as de, Fragment as St } from "react/jsx-runtime";
2
2
  import { createRoot as Tr } from "react-dom/client";
3
- import { theme as rt, ConfigProvider as Ke, Button as it, Tooltip as Wn, Space as ke, Input as qt, InputNumber as Fn, Select as Pn, Switch as kr, DatePicker as Hn, TimePicker as _r, Radio as Ut, Checkbox as bt, Rate as Er, Slider as Or, Cascader as Mr, TreeSelect as $r, message as jt, Upload as Rr, Image as nt, AutoComplete as jr, Form as zt, Transfer as Br, Segmented as Kr, Modal as Un, Table as Lr, Flex as Yn, Typography as fn, Tabs as zr, Tree as Vr, Timeline as qr, Steps as Wr, Statistic as It, Carousel as Fr, Avatar as Pr, Tag as Jn, Pagination as Gn, Breadcrumb as Hr, Menu as Ur, Calendar as Yr, Badge as Qn, Masonry as Jr, Alert as Zn, Drawer as Gr, Result as Qr, Card as en, Divider as Sn, Dropdown as Zr, Row as Xr, Col as Ir, QRCode as ei, Splitter as Yt, Spin as Xn, Watermark as ti, Empty as ni } from "antd";
3
+ import { theme as rt, ConfigProvider as Ke, Button as it, Tooltip as Wn, Space as _e, Input as qt, InputNumber as Fn, Select as Pn, Switch as kr, DatePicker as Hn, TimePicker as _r, Radio as Ut, Checkbox as bt, Rate as Er, Slider as Or, Cascader as Mr, TreeSelect as $r, message as jt, Upload as Rr, Image as nt, AutoComplete as jr, Form as zt, Transfer as Br, Segmented as Kr, Modal as Un, Table as Lr, Flex as Yn, Typography as fn, Tabs as zr, Tree as Vr, Timeline as qr, Steps as Wr, Statistic as It, Carousel as Fr, Avatar as Pr, Tag as Jn, Pagination as Gn, Breadcrumb as Hr, Menu as Ur, Calendar as Yr, Badge as Qn, Masonry as Jr, Alert as Zn, Drawer as Gr, Result as Qr, Card as en, Divider as Sn, Dropdown as Zr, Row as Xr, Col as Ir, QRCode as ei, Splitter as Yt, Spin as Xn, Watermark as ti, Empty as ni } from "antd";
4
4
  import { StyleProvider as ri, createCache as ii } from "@ant-design/cssinjs";
5
5
  import oi from "antd/locale/zh_CN";
6
6
  import { create as ai } from "zustand";
7
7
  import { subscribeWithSelector as ci } from "zustand/middleware";
8
8
  import { immer as si } from "zustand/middleware/immer";
9
- import Le, { useMemo as f, useCallback as L, useEffect as Ce, createContext as li, useContext as ft, useState as be, useRef as Re, useLayoutEffect as In, useId as ui, Suspense as di } from "react";
9
+ import Le, { useMemo as f, useCallback as L, useEffect as Ne, createContext as li, useContext as ft, useState as be, useRef as Re, useLayoutEffect as In, useId as ui, Suspense as di } from "react";
10
10
  import * as Ue from "@ant-design/icons";
11
11
  import { CloseCircleOutlined as fi, PlusOutlined as er, UploadOutlined as mi, MenuOutlined as hi, MinusOutlined as yi, LeftOutlined as tr, RightOutlined as nr, UpOutlined as gi, DownOutlined as rr, ApiOutlined as pi, InboxOutlined as vi, FilePdfOutlined as bi } from "@ant-design/icons";
12
12
  import Si from "clsx";
@@ -146,7 +146,7 @@ function $i(t, e, n) {
146
146
  const o = e[e.length - 1];
147
147
  return r[o.key] = n, i;
148
148
  }
149
- function oe(t, e) {
149
+ function ie(t, e) {
150
150
  if (e)
151
151
  return t ? `${t}_${e}` : e;
152
152
  }
@@ -390,7 +390,7 @@ function lt(t, e = null, n = {}) {
390
390
  }), c = a.length === 1 ? a[0] : a;
391
391
  return { actionName: r, arg: c };
392
392
  }
393
- function Ne(t, e, n = {}) {
393
+ function Te(t, e, n = {}) {
394
394
  return lt(t, e, n);
395
395
  }
396
396
  function or(t, e = {}) {
@@ -1098,10 +1098,10 @@ function ze(t) {
1098
1098
  return r && o ? ((v = w.propsStore[`${r}_props`]) == null ? void 0 : v[o]) ?? null : null;
1099
1099
  }
1100
1100
  ), S = E((w) => w.getDataSet), h = f(
1101
- () => oe(r, n),
1101
+ () => ie(r, n),
1102
1102
  [r, n]
1103
1103
  ), s = f(
1104
- () => n ? oe(r, `${n}_validateAction`) : void 0,
1104
+ () => n ? ie(r, `${n}_validateAction`) : void 0,
1105
1105
  [r, n]
1106
1106
  ), y = E(
1107
1107
  (w) => {
@@ -1132,7 +1132,7 @@ function ze(t) {
1132
1132
  },
1133
1133
  [e, u]
1134
1134
  ), A = a ? void 0 : r && n && i ? m : (p == null ? void 0 : p.help) ?? "", N = !a && A ? "error" : void 0;
1135
- return Ce(() => {
1135
+ return Ne(() => {
1136
1136
  if (y == null || !h || !i) return;
1137
1137
  const w = S(h, i);
1138
1138
  x(w);
@@ -1286,7 +1286,7 @@ function po() {
1286
1286
  }
1287
1287
  function Ot(t) {
1288
1288
  const [e, n] = be([]), [i, r] = be(!1), [o, a] = be(null);
1289
- return Ce(() => {
1289
+ return Ne(() => {
1290
1290
  if (!t) {
1291
1291
  n([]);
1292
1292
  return;
@@ -1337,7 +1337,7 @@ function hn(t, e) {
1337
1337
  }
1338
1338
  }
1339
1339
  }, [t, S, h, m]);
1340
- return Ce(() => {
1340
+ return Ne(() => {
1341
1341
  b && t && s();
1342
1342
  }, [b, t, s]), { options: n, loading: r, error: a, reload: s };
1343
1343
  }
@@ -1826,7 +1826,7 @@ const mr = (t) => {
1826
1826
  bordered: A,
1827
1827
  ...N
1828
1828
  } = t, w = tt(r, o, n), v = w.dataSet, D = w.dataSetField, O = w.sessionId, _ = Re(""), T = Re(null), C = E((U) => U.addCommand), M = E((U) => U.getDataSet), k = E((U) => U.setDataSet), K = E((U) => U.getProps), W = E((U) => U.setProps), z = E((U) => U.setValidateResult), j = f(
1829
- () => oe(O, v),
1829
+ () => ie(O, v),
1830
1830
  [O, v]
1831
1831
  ), R = E(
1832
1832
  (U) => {
@@ -1844,7 +1844,7 @@ const mr = (t) => {
1844
1844
  ), $ = E(
1845
1845
  (U) => j && D ? U.getDataSet(j, D) : void 0
1846
1846
  ), B = f(
1847
- () => v ? oe(O, `${v}_validateAction`) : void 0,
1847
+ () => v ? ie(O, `${v}_validateAction`) : void 0,
1848
1848
  [O, v]
1849
1849
  ), F = E(
1850
1850
  (U) => {
@@ -1855,31 +1855,31 @@ const mr = (t) => {
1855
1855
  () => Ho(N, R ?? null, { develop: i }),
1856
1856
  [N, R, i]
1857
1857
  ), {
1858
- prefixIconNode: ie,
1859
- suffixIconNode: le,
1860
- prefixAddonText: de,
1861
- suffixAddonText: ye,
1862
- inputMergedProps: ae
1858
+ prefixIconNode: re,
1859
+ suffixIconNode: ce,
1860
+ prefixAddonText: ue,
1861
+ suffixAddonText: ge,
1862
+ inputMergedProps: oe
1863
1863
  } = f(() => {
1864
- const U = H, G = U.prefix, me = U.suffix, q = U.addonBefore, se = U.addonAfter, {
1864
+ const U = H, G = U.prefix, fe = U.suffix, q = U.addonBefore, se = U.addonAfter, {
1865
1865
  prefix: pe,
1866
1866
  suffix: Q,
1867
1867
  addonBefore: Y,
1868
- addonAfter: ue,
1869
- ...ge
1868
+ addonAfter: le,
1869
+ ...ye
1870
1870
  } = U, Ae = Xe({
1871
1871
  iconName: G == null ? void 0 : String(G),
1872
1872
  label: q == null ? void 0 : String(q)
1873
- }), De = Xe({
1874
- iconName: me == null ? void 0 : String(me),
1873
+ }), Ce = Xe({
1874
+ iconName: fe == null ? void 0 : String(fe),
1875
1875
  label: se == null ? void 0 : String(se)
1876
1876
  });
1877
1877
  return {
1878
1878
  prefixIconNode: Ae.iconNode,
1879
- suffixIconNode: De.iconNode,
1879
+ suffixIconNode: Ce.iconNode,
1880
1880
  prefixAddonText: Ae.iconConfigured ? void 0 : Ae.labelText,
1881
- suffixAddonText: De.iconConfigured ? void 0 : De.labelText,
1882
- inputMergedProps: ge
1881
+ suffixAddonText: Ce.iconConfigured ? void 0 : Ce.labelText,
1882
+ inputMergedProps: ye
1883
1883
  };
1884
1884
  }, [H]), ee = L(
1885
1885
  (U) => {
@@ -1890,9 +1890,9 @@ const mr = (t) => {
1890
1890
  D,
1891
1891
  G
1892
1892
  ), O && e) {
1893
- const me = K(O, e) || {};
1893
+ const fe = K(O, e) || {};
1894
1894
  W(O, e, {
1895
- ...me,
1895
+ ...fe,
1896
1896
  validateStatus: G ? "error" : void 0,
1897
1897
  help: G
1898
1898
  });
@@ -1907,21 +1907,21 @@ const mr = (t) => {
1907
1907
  K,
1908
1908
  W
1909
1909
  ]
1910
- ), re = L(
1910
+ ), ne = L(
1911
1911
  (U) => {
1912
1912
  const G = sr(p || []);
1913
1913
  lr(
1914
1914
  G,
1915
1915
  U,
1916
1916
  () => ee(""),
1917
- (me) => {
1917
+ (fe) => {
1918
1918
  var q;
1919
- return ee(((q = me[0]) == null ? void 0 : q.message) ?? "");
1919
+ return ee(((q = fe[0]) == null ? void 0 : q.message) ?? "");
1920
1920
  }
1921
1921
  );
1922
1922
  },
1923
1923
  [p, ee]
1924
- ), X = L(
1924
+ ), he = L(
1925
1925
  (U) => {
1926
1926
  const G = U.target.value;
1927
1927
  if (_.current = G, l) {
@@ -1929,16 +1929,16 @@ const mr = (t) => {
1929
1929
  return;
1930
1930
  }
1931
1931
  if (j && D && k(j, D, G), c && O) {
1932
- const { actionName: me, arg: q } = Ne(c, G, {
1932
+ const { actionName: fe, arg: q } = Te(c, G, {
1933
1933
  id: e,
1934
1934
  dataSet: v,
1935
1935
  dataSetField: D,
1936
- ...ae
1936
+ ...oe
1937
1937
  });
1938
- C(O, te(me, q));
1938
+ C(O, te(fe, q));
1939
1939
  }
1940
1940
  S && (T.current && clearTimeout(T.current), T.current = setTimeout(() => {
1941
- T.current = null, re(G);
1941
+ T.current = null, ne(G);
1942
1942
  }, Fo));
1943
1943
  },
1944
1944
  [
@@ -1951,40 +1951,40 @@ const mr = (t) => {
1951
1951
  e,
1952
1952
  v,
1953
1953
  D,
1954
- ae,
1954
+ oe,
1955
1955
  C,
1956
1956
  S,
1957
- re
1957
+ ne
1958
1958
  ]
1959
- ), I = L(() => {
1959
+ ), Z = L(() => {
1960
1960
  if (!h) return;
1961
1961
  const U = j && D ? String(M(j, D) ?? "") : _.current;
1962
- re(U);
1962
+ ne(U);
1963
1963
  }, [
1964
1964
  h,
1965
1965
  j,
1966
1966
  D,
1967
1967
  M,
1968
- re
1969
- ]), ne = L(
1968
+ ne
1969
+ ]), I = L(
1970
1970
  (U) => {
1971
- const me = ae.onPressEnter;
1972
- if (me) {
1973
- me(U);
1971
+ const fe = oe.onPressEnter;
1972
+ if (fe) {
1973
+ fe(U);
1974
1974
  return;
1975
1975
  }
1976
1976
  if (u && O) {
1977
- const { actionName: q, arg: se } = Ne(u, P, {
1977
+ const { actionName: q, arg: se } = Te(u, P, {
1978
1978
  id: e,
1979
1979
  dataSet: v,
1980
1980
  dataSetField: D,
1981
- ...ae
1981
+ ...oe
1982
1982
  });
1983
1983
  C(O, te(q, se));
1984
1984
  }
1985
1985
  },
1986
1986
  [
1987
- ae,
1987
+ oe,
1988
1988
  u,
1989
1989
  O,
1990
1990
  P,
@@ -1993,23 +1993,23 @@ const mr = (t) => {
1993
1993
  D,
1994
1994
  C
1995
1995
  ]
1996
- ), we = L(() => {
1997
- const G = ae.onClear;
1996
+ ), xe = L(() => {
1997
+ const G = oe.onClear;
1998
1998
  if (G) {
1999
1999
  G();
2000
2000
  return;
2001
2001
  }
2002
2002
  if (x && O) {
2003
- const { actionName: me, arg: q } = Ne(x, "", {
2003
+ const { actionName: fe, arg: q } = Te(x, "", {
2004
2004
  id: e,
2005
2005
  dataSet: v,
2006
2006
  dataSetField: D,
2007
- ...ae
2007
+ ...oe
2008
2008
  });
2009
- C(O, te(me, q));
2009
+ C(O, te(fe, q));
2010
2010
  }
2011
2011
  }, [
2012
- ae,
2012
+ oe,
2013
2013
  x,
2014
2014
  O,
2015
2015
  e,
@@ -2017,43 +2017,43 @@ const mr = (t) => {
2017
2017
  D,
2018
2018
  C
2019
2019
  ]);
2020
- Ce(
2020
+ Ne(
2021
2021
  () => () => {
2022
2022
  T.current && clearTimeout(T.current);
2023
2023
  },
2024
2024
  []
2025
- ), Ce(() => {
2025
+ ), Ne(() => {
2026
2026
  if (F == null || !j || !D)
2027
2027
  return;
2028
2028
  const U = String(M(j, D) ?? "");
2029
- re(U);
2030
- }, [F, j, D, M, re]);
2031
- const Me = f(() => Po(m), [m]), ce = f(
2032
- () => Me ? { components: { Input: Me } } : void 0,
2033
- [Me]
2034
- ), xe = i ? void 0 : O && v && D ? V : (R == null ? void 0 : R.help) ?? "", Te = !i && xe ? "error" : void 0, ve = /* @__PURE__ */ fe(St, { children: [
2035
- /* @__PURE__ */ fe(ke.Compact, { style: { width: "100%" }, children: [
2036
- de ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: de }) : null,
2029
+ ne(U);
2030
+ }, [F, j, D, M, ne]);
2031
+ const De = f(() => Po(m), [m]), ae = f(
2032
+ () => De ? { components: { Input: De } } : void 0,
2033
+ [De]
2034
+ ), we = i ? void 0 : O && v && D ? V : (R == null ? void 0 : R.help) ?? "", ke = !i && we ? "error" : void 0, ve = /* @__PURE__ */ de(St, { children: [
2035
+ /* @__PURE__ */ de(_e.Compact, { style: { width: "100%" }, children: [
2036
+ ue ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: ue }) : null,
2037
2037
  /* @__PURE__ */ g(
2038
2038
  qt,
2039
2039
  {
2040
- ...ae,
2041
- prefix: ie,
2042
- suffix: le,
2040
+ ...oe,
2041
+ prefix: re,
2042
+ suffix: ce,
2043
2043
  value: P,
2044
- onChange: X,
2045
- onBlur: I,
2046
- onPressEnter: ne,
2047
- onClear: we,
2048
- status: Te,
2044
+ onChange: he,
2045
+ onBlur: Z,
2046
+ onPressEnter: I,
2047
+ onClear: xe,
2048
+ status: ke,
2049
2049
  styles: b
2050
2050
  }
2051
2051
  ),
2052
- ye ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: ye }) : null
2052
+ ge ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: ge }) : null
2053
2053
  ] }),
2054
- xe && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: xe })
2054
+ we && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: we })
2055
2055
  ] });
2056
- return ce ? /* @__PURE__ */ g(Ke, { theme: ce, children: ve }) : ve;
2056
+ return ae ? /* @__PURE__ */ g(Ke, { theme: ae, children: ve }) : ve;
2057
2057
  };
2058
2058
  mr.displayName = "AndInput";
2059
2059
  const Lc = Le.memo(mr), _n = 200, zc = ({
@@ -2075,16 +2075,16 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2075
2075
  value: s,
2076
2076
  ...y
2077
2077
  }) => {
2078
- const u = tt(i, r, e), x = u.dataSet, A = u.dataSetField, N = u.sessionId, w = E((I) => I.addCommand), v = E((I) => I.setDataSet), D = Re(null), O = f(
2079
- () => oe(N, x),
2078
+ const u = tt(i, r, e), x = u.dataSet, A = u.dataSetField, N = u.sessionId, w = E((Z) => Z.addCommand), v = E((Z) => Z.setDataSet), D = Re(null), O = f(
2079
+ () => ie(N, x),
2080
2080
  [N, x]
2081
2081
  ), _ = E(
2082
- (I) => {
2083
- var ne;
2084
- return N && t ? ((ne = I.propsStore[`${N}_props`]) == null ? void 0 : ne[t]) ?? null : null;
2082
+ (Z) => {
2083
+ var I;
2084
+ return N && t ? ((I = Z.propsStore[`${N}_props`]) == null ? void 0 : I[t]) ?? null : null;
2085
2085
  }
2086
2086
  ), T = E(
2087
- (I) => O && A ? I.getDataSet(O, A) : void 0
2087
+ (Z) => O && A ? Z.getDataSet(O, A) : void 0
2088
2088
  ), { validate: C, help: M } = ze({
2089
2089
  rules: o,
2090
2090
  dataSet: x,
@@ -2093,19 +2093,19 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2093
2093
  id: t,
2094
2094
  develop: n
2095
2095
  }), k = f(() => T !== void 0 ? T : (_ == null ? void 0 : _.value) !== void 0 ? _.value : s, [T, _ == null ? void 0 : _.value, s]), K = L(
2096
- (I, ne, we) => {
2097
- I && e && w(e, te(I, { type: ne, value: we }));
2096
+ (Z, I, xe) => {
2097
+ Z && e && w(e, te(Z, { type: I, value: xe }));
2098
2098
  },
2099
2099
  [e, w]
2100
2100
  ), W = L(
2101
- (I) => {
2101
+ (Z) => {
2102
2102
  if (S) {
2103
- S(I);
2103
+ S(Z);
2104
2104
  return;
2105
2105
  }
2106
- O && A && v(O, A, I), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
2107
- D.current = null, C(I);
2108
- }, _n)), K(l, "change", I);
2106
+ O && A && v(O, A, Z), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
2107
+ D.current = null, C(Z);
2108
+ }, _n)), K(l, "change", Z);
2109
2109
  },
2110
2110
  [
2111
2111
  S,
@@ -2120,18 +2120,18 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2120
2120
  ), z = L(() => {
2121
2121
  a && C(k);
2122
2122
  }, [a, C, k]), j = L(
2123
- (I) => {
2123
+ (Z) => {
2124
2124
  if (y.onPressEnter) {
2125
- y.onPressEnter(I);
2125
+ y.onPressEnter(Z);
2126
2126
  return;
2127
2127
  }
2128
2128
  if (d && N) {
2129
- const { actionName: ne, arg: we } = Ne(d, k, {
2129
+ const { actionName: I, arg: xe } = Te(d, k, {
2130
2130
  id: t,
2131
2131
  dataSet: x,
2132
2132
  dataSetField: A
2133
2133
  });
2134
- w(N, te(ne, we));
2134
+ w(N, te(I, xe));
2135
2135
  }
2136
2136
  },
2137
2137
  [
@@ -2152,12 +2152,12 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2152
2152
  if (O && A && v(O, A, null), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
2153
2153
  D.current = null, C(null);
2154
2154
  }, _n)), K(l, "change", null), b && N) {
2155
- const { actionName: I, arg: ne } = Ne(b, null, {
2155
+ const { actionName: Z, arg: I } = Te(b, null, {
2156
2156
  id: t,
2157
2157
  dataSet: x,
2158
2158
  dataSetField: A
2159
2159
  });
2160
- w(N, te(I, ne));
2160
+ w(N, te(Z, I));
2161
2161
  }
2162
2162
  }, [
2163
2163
  S,
@@ -2175,17 +2175,17 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2175
2175
  A,
2176
2176
  w
2177
2177
  ]), J = L(
2178
- (I, ne) => {
2179
- K(p, "step", { value: I, type: ne.type });
2178
+ (Z, I) => {
2179
+ K(p, "step", { value: Z, type: I.type });
2180
2180
  },
2181
2181
  [p, K]
2182
2182
  );
2183
- Ce(
2183
+ Ne(
2184
2184
  () => () => {
2185
2185
  D.current && clearTimeout(D.current);
2186
2186
  },
2187
2187
  []
2188
- ), Ce(() => {
2188
+ ), Ne(() => {
2189
2189
  h !== void 0 && k === void 0 && O && A && v(O, A, h);
2190
2190
  }, [h, k, O, A, v]);
2191
2191
  const V = f(
@@ -2197,63 +2197,63 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2197
2197
  addonBefore: F,
2198
2198
  addonAfter: P,
2199
2199
  style: H,
2200
- ...ie
2201
- } = V, le = f(
2200
+ ...re
2201
+ } = V, ce = f(
2202
2202
  () => Xe({
2203
2203
  iconName: $ != null ? String($) : void 0,
2204
2204
  label: F != null ? String(F) : void 0
2205
2205
  }),
2206
2206
  [$, F]
2207
- ), de = f(
2207
+ ), ue = f(
2208
2208
  () => Xe({
2209
2209
  iconName: B != null ? String(B) : void 0,
2210
2210
  label: P != null ? String(P) : void 0
2211
2211
  }),
2212
2212
  [B, P]
2213
- ), ye = le.iconNode, ae = de.iconNode, ee = le.iconConfigured ? void 0 : le.labelText, re = de.iconConfigured ? void 0 : de.labelText, X = f(() => {
2214
- if (!(m && k !== null && k !== void 0)) return ae;
2215
- const ne = /* @__PURE__ */ g(
2213
+ ), ge = ce.iconNode, oe = ue.iconNode, ee = ce.iconConfigured ? void 0 : ce.labelText, ne = ue.iconConfigured ? void 0 : ue.labelText, he = f(() => {
2214
+ if (!(m && k !== null && k !== void 0)) return oe;
2215
+ const I = /* @__PURE__ */ g(
2216
2216
  "span",
2217
2217
  {
2218
2218
  role: "button",
2219
2219
  "aria-label": "clear",
2220
2220
  style: { cursor: "pointer", marginInlineStart: 4 },
2221
- onMouseDown: (we) => we.preventDefault(),
2222
- onClick: (we) => {
2223
- we.stopPropagation(), R();
2221
+ onMouseDown: (xe) => xe.preventDefault(),
2222
+ onClick: (xe) => {
2223
+ xe.stopPropagation(), R();
2224
2224
  },
2225
2225
  children: /* @__PURE__ */ g(fi, {})
2226
2226
  }
2227
2227
  );
2228
- return ae == null || ae === !1 ? ne : /* @__PURE__ */ fe(St, { children: [
2229
- ae,
2230
- ne
2228
+ return oe == null || oe === !1 ? I : /* @__PURE__ */ de(St, { children: [
2229
+ oe,
2230
+ I
2231
2231
  ] });
2232
- }, [m, k, ae, R]);
2233
- return /* @__PURE__ */ fe("div", { style: { width: "100%" }, children: [
2234
- /* @__PURE__ */ fe(ke.Compact, { style: { width: "100%" }, children: [
2235
- ee ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: ee }) : null,
2232
+ }, [m, k, oe, R]);
2233
+ return /* @__PURE__ */ de("div", { style: { width: "100%" }, children: [
2234
+ /* @__PURE__ */ de(_e.Compact, { style: { width: "100%" }, children: [
2235
+ ee ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: ee }) : null,
2236
2236
  /* @__PURE__ */ g(
2237
2237
  Fn,
2238
2238
  {
2239
- ...ie,
2240
- disabled: n ? !1 : ie.disabled,
2241
- readOnly: n ? !0 : ie.readOnly,
2242
- className: Si(ie.className, {
2243
- "ant-input-number-disabled": n && ie.disabled
2239
+ ...re,
2240
+ disabled: n ? !1 : re.disabled,
2241
+ readOnly: n ? !0 : re.readOnly,
2242
+ className: Si(re.className, {
2243
+ "ant-input-number-disabled": n && re.disabled
2244
2244
  }),
2245
- prefix: ye,
2245
+ prefix: ge,
2246
2246
  value: k,
2247
2247
  onChange: W,
2248
2248
  onBlur: z,
2249
2249
  onPressEnter: j,
2250
2250
  onStep: J,
2251
- suffix: X,
2251
+ suffix: he,
2252
2252
  status: M ? "error" : void 0,
2253
2253
  style: { width: "100%", ...H }
2254
2254
  }
2255
2255
  ),
2256
- re ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: re }) : null
2256
+ ne ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: ne }) : null
2257
2257
  ] }),
2258
2258
  M && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: M })
2259
2259
  ] });
@@ -2275,7 +2275,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2275
2275
  ...h
2276
2276
  }) => {
2277
2277
  const s = tt(i, r, e), y = s.dataSet, u = s.dataSetField, x = s.sessionId, A = E((F) => F.addCommand), N = E((F) => F.setDataSet), w = Re(null), v = f(
2278
- () => oe(x, y),
2278
+ () => ie(x, y),
2279
2279
  [x, y]
2280
2280
  ), D = E(
2281
2281
  (F) => {
@@ -2298,20 +2298,20 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2298
2298
  const F = M, {
2299
2299
  prefix: P,
2300
2300
  suffix: H,
2301
- addonBefore: ie,
2302
- addonAfter: le,
2303
- ...de
2304
- } = F, ye = Xe({
2301
+ addonBefore: re,
2302
+ addonAfter: ce,
2303
+ ...ue
2304
+ } = F, ge = Xe({
2305
2305
  iconName: P == null ? void 0 : String(P),
2306
- label: ie == null ? void 0 : String(ie)
2307
- }), ae = Xe({
2306
+ label: re == null ? void 0 : String(re)
2307
+ }), oe = Xe({
2308
2308
  iconName: H == null ? void 0 : String(H),
2309
- label: le == null ? void 0 : String(le)
2309
+ label: ce == null ? void 0 : String(ce)
2310
2310
  });
2311
2311
  return {
2312
- leftAddonNode: ye.iconNode ?? ye.labelText,
2313
- rightAddonNode: ae.iconNode ?? ae.labelText,
2314
- inputRest: de
2312
+ leftAddonNode: ge.iconNode ?? ge.labelText,
2313
+ rightAddonNode: oe.iconNode ?? oe.labelText,
2314
+ inputRest: ue
2315
2315
  };
2316
2316
  }, [M]), z = f(() => k != null && k !== !1 || K != null && K !== !1, [k, K]), j = L(
2317
2317
  (F) => {
@@ -2321,12 +2321,12 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2321
2321
  return;
2322
2322
  }
2323
2323
  if (v && u && N(v, u, P), l && x) {
2324
- const { actionName: H, arg: ie } = Ne(l, P, {
2324
+ const { actionName: H, arg: re } = Te(l, P, {
2325
2325
  id: t,
2326
2326
  dataSet: y,
2327
2327
  dataSetField: u
2328
2328
  });
2329
- A(x, te(H, ie));
2329
+ A(x, te(H, re));
2330
2330
  }
2331
2331
  c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
2332
2332
  w.current = null, _(P);
@@ -2354,12 +2354,12 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2354
2354
  return;
2355
2355
  }
2356
2356
  if (d && x && !F.shiftKey) {
2357
- const { actionName: H, arg: ie } = Ne(d, C, {
2357
+ const { actionName: H, arg: re } = Te(d, C, {
2358
2358
  id: t,
2359
2359
  dataSet: y,
2360
2360
  dataSetField: u
2361
2361
  });
2362
- A(x, te(H, ie));
2362
+ A(x, te(H, re));
2363
2363
  }
2364
2364
  },
2365
2365
  [
@@ -2379,7 +2379,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2379
2379
  return;
2380
2380
  }
2381
2381
  if (b && x) {
2382
- const { actionName: P, arg: H } = Ne(b, "", {
2382
+ const { actionName: P, arg: H } = Te(b, "", {
2383
2383
  id: t,
2384
2384
  dataSet: y,
2385
2385
  dataSetField: u
@@ -2395,7 +2395,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2395
2395
  u,
2396
2396
  A
2397
2397
  ]);
2398
- Ce(
2398
+ Ne(
2399
2399
  () => () => {
2400
2400
  w.current && clearTimeout(w.current);
2401
2401
  },
@@ -2414,12 +2414,12 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2414
2414
  ...W.style || {},
2415
2415
  ...z ? { flex: 1, minWidth: 0 } : {}
2416
2416
  }
2417
- }, B = z ? /* @__PURE__ */ fe(ke.Compact, { style: { width: "100%", display: "flex" }, children: [
2418
- k != null && k !== !1 ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: k }) : null,
2417
+ }, B = z ? /* @__PURE__ */ de(_e.Compact, { style: { width: "100%", display: "flex" }, children: [
2418
+ k != null && k !== !1 ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: k }) : null,
2419
2419
  /* @__PURE__ */ g(En, { ...$ }),
2420
- K != null && K !== !1 ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: K }) : null
2420
+ K != null && K !== !1 ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: K }) : null
2421
2421
  ] }) : /* @__PURE__ */ g(En, { ...$ });
2422
- return /* @__PURE__ */ fe("div", { style: { width: "100%" }, children: [
2422
+ return /* @__PURE__ */ de("div", { style: { width: "100%" }, children: [
2423
2423
  B,
2424
2424
  T && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
2425
2425
  ] });
@@ -2441,7 +2441,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2441
2441
  ...h
2442
2442
  }) => {
2443
2443
  const s = E((R) => R.addCommand), y = E((R) => R.setDataSet), u = Re(null), x = f(
2444
- () => oe(e, i),
2444
+ () => ie(e, i),
2445
2445
  [e, i]
2446
2446
  ), A = E(
2447
2447
  (R) => {
@@ -2489,7 +2489,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2489
2489
  return;
2490
2490
  }
2491
2491
  if (x && r && y(x, r, J), l && e) {
2492
- const { actionName: V, arg: $ } = Ne(l, J, {
2492
+ const { actionName: V, arg: $ } = Te(l, J, {
2493
2493
  id: t,
2494
2494
  dataSet: i,
2495
2495
  dataSetField: r
@@ -2522,7 +2522,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2522
2522
  return;
2523
2523
  }
2524
2524
  if (d && e) {
2525
- const { actionName: V, arg: $ } = Ne(d, D, {
2525
+ const { actionName: V, arg: $ } = Te(d, D, {
2526
2526
  id: t,
2527
2527
  dataSet: i,
2528
2528
  dataSetField: r
@@ -2547,7 +2547,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2547
2547
  return;
2548
2548
  }
2549
2549
  if (b && e) {
2550
- const { actionName: J, arg: V } = Ne(b, "", {
2550
+ const { actionName: J, arg: V } = Te(b, "", {
2551
2551
  id: t,
2552
2552
  dataSet: i,
2553
2553
  dataSetField: r
@@ -2555,14 +2555,14 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2555
2555
  s(e, te(J, V));
2556
2556
  }
2557
2557
  }, [k, b, e, t, i, r, s]);
2558
- return Ce(
2558
+ return Ne(
2559
2559
  () => () => {
2560
2560
  u.current && clearTimeout(u.current);
2561
2561
  },
2562
2562
  []
2563
- ), /* @__PURE__ */ fe("div", { style: { width: "100%" }, children: [
2564
- /* @__PURE__ */ fe(ke.Compact, { style: { width: "100%" }, children: [
2565
- C ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: C }) : null,
2563
+ ), /* @__PURE__ */ de("div", { style: { width: "100%" }, children: [
2564
+ /* @__PURE__ */ de(_e.Compact, { style: { width: "100%" }, children: [
2565
+ C ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: C }) : null,
2566
2566
  /* @__PURE__ */ g(
2567
2567
  Yo,
2568
2568
  {
@@ -2578,7 +2578,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2578
2578
  status: v ? "error" : void 0
2579
2579
  }
2580
2580
  ),
2581
- M ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: M }) : null
2581
+ M ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: M }) : null
2582
2582
  ] }),
2583
2583
  v && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: v })
2584
2584
  ] });
@@ -2602,7 +2602,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2602
2602
  return e && t ? ((M = C.propsStore[`${e}_props`]) == null ? void 0 : M[t]) ?? null : null;
2603
2603
  }
2604
2604
  ), y = f(
2605
- () => oe(e, i),
2605
+ () => ie(e, i),
2606
2606
  [e, i]
2607
2607
  ), u = f(() => {
2608
2608
  if (y && r) return S(y, r);
@@ -2638,7 +2638,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2638
2638
  return;
2639
2639
  }
2640
2640
  if (y && r && h(y, r, M), o && e) {
2641
- const { actionName: k, arg: K } = Ne(o, M, {
2641
+ const { actionName: k, arg: K } = Te(o, M, {
2642
2642
  id: t,
2643
2643
  dataSet: i,
2644
2644
  dataSetField: r
@@ -2657,8 +2657,8 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2657
2657
  },
2658
2658
  [l, a, e, p]
2659
2659
  );
2660
- return /* @__PURE__ */ fe(ke.Compact, { style: { width: "100%" }, children: [
2661
- v ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: v }) : null,
2660
+ return /* @__PURE__ */ de(_e.Compact, { style: { width: "100%" }, children: [
2661
+ v ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: v }) : null,
2662
2662
  /* @__PURE__ */ g(
2663
2663
  Go,
2664
2664
  {
@@ -2671,7 +2671,7 @@ const Lc = Le.memo(mr), _n = 200, zc = ({
2671
2671
  onSearch: T
2672
2672
  }
2673
2673
  ),
2674
- D ? /* @__PURE__ */ g(ke.Addon, { style: Ze, children: D }) : null
2674
+ D ? /* @__PURE__ */ g(_e.Addon, { style: Ze, children: D }) : null
2675
2675
  ] });
2676
2676
  }, Qo = 200, Zo = "_selected";
2677
2677
  function pt(t) {
@@ -2748,22 +2748,22 @@ const Fc = ({
2748
2748
  dropdownMatchSelectWidth: D,
2749
2749
  ...O
2750
2750
  }) => {
2751
- const _ = tt(i, r, e), T = _.dataSet, C = _.dataSetField, M = _.sessionId, k = E((ce) => ce.addCommand), K = E((ce) => ce.setDataSet), W = Re(null), z = ft(et), j = f(
2752
- () => oe(M, T),
2751
+ const _ = tt(i, r, e), T = _.dataSet, C = _.dataSetField, M = _.sessionId, k = E((ae) => ae.addCommand), K = E((ae) => ae.setDataSet), W = Re(null), z = ft(et), j = f(
2752
+ () => ie(M, T),
2753
2753
  [M, T]
2754
2754
  ), R = y ?? (z == null ? void 0 : z.index), J = z == null ? void 0 : z.parentIndex, V = E(
2755
- (ce) => {
2756
- var xe;
2757
- return M && t ? ((xe = ce.propsStore[`${M}_props`]) == null ? void 0 : xe[t]) ?? null : null;
2755
+ (ae) => {
2756
+ var we;
2757
+ return M && t ? ((we = ae.propsStore[`${M}_props`]) == null ? void 0 : we[t]) ?? null : null;
2758
2758
  }
2759
2759
  ), $ = E(
2760
- (ce) => j && C ? ce.getDataSet(j, C) : void 0
2760
+ (ae) => j && C ? ae.getDataSet(j, C) : void 0
2761
2761
  ), B = f(
2762
2762
  () => (V == null ? void 0 : V.optionsCfg) != null ? V.optionsCfg : c,
2763
2763
  [V == null ? void 0 : V.optionsCfg, c]
2764
2764
  ), { options: F, loading: P } = Ot(
2765
2765
  v || (o ? a : void 0)
2766
- ), { options: H, loading: ie } = hn(
2766
+ ), { options: H, loading: re } = hn(
2767
2767
  B == null ? void 0 : B.url,
2768
2768
  {
2769
2769
  valueKey: (B == null ? void 0 : B.codeKey) || "value",
@@ -2772,53 +2772,53 @@ const Fc = ({
2772
2772
  params: B == null ? void 0 : B.params,
2773
2773
  field: B == null ? void 0 : B.field
2774
2774
  }
2775
- ), le = P || ie, { validate: de, help: ye } = ze({
2775
+ ), ce = P || re, { validate: ue, help: ge } = ze({
2776
2776
  rules: l,
2777
2777
  dataSet: T,
2778
2778
  dataSetField: C,
2779
2779
  sessionId: M,
2780
2780
  id: t,
2781
2781
  develop: n
2782
- }), ae = f(() => $ != null && $ !== "" ? $ : (V == null ? void 0 : V.value) !== void 0 ? V.value : s ?? h, [$, V == null ? void 0 : V.value, s, h]), ee = f(
2782
+ }), oe = f(() => $ != null && $ !== "" ? $ : (V == null ? void 0 : V.value) !== void 0 ? V.value : s ?? h, [$, V == null ? void 0 : V.value, s, h]), ee = f(
2783
2783
  () => Ve(O, V ?? void 0),
2784
2784
  [O, V]
2785
- ), re = f(() => V != null && V.options && Array.isArray(V.options) ? V.options : B != null && B.url && H.length > 0 ? H : (v || o && a) && F.length > 0 ? F : S || [], [V == null ? void 0 : V.options, B == null ? void 0 : B.url, H, v, o, a, F, S]), X = f(() => {
2786
- if (re.length === 0) return ae;
2787
- if (Array.isArray(ae))
2788
- return ae.map((xe) => {
2789
- var Te;
2790
- return ((Te = Qe(re, xe)) == null ? void 0 : Te.value) ?? xe;
2785
+ ), ne = f(() => V != null && V.options && Array.isArray(V.options) ? V.options : B != null && B.url && H.length > 0 ? H : (v || o && a) && F.length > 0 ? F : S || [], [V == null ? void 0 : V.options, B == null ? void 0 : B.url, H, v, o, a, F, S]), he = f(() => {
2786
+ if (ne.length === 0) return oe;
2787
+ if (Array.isArray(oe))
2788
+ return oe.map((we) => {
2789
+ var ke;
2790
+ return ((ke = Qe(ne, we)) == null ? void 0 : ke.value) ?? we;
2791
2791
  });
2792
- const ce = Qe(re, ae);
2793
- return (ce == null ? void 0 : ce.value) ?? ae;
2794
- }, [ae, re]), I = C ? `${C}${Zo}` : "", ne = L(
2795
- (ce, xe) => {
2792
+ const ae = Qe(ne, oe);
2793
+ return (ae == null ? void 0 : ae.value) ?? oe;
2794
+ }, [oe, ne]), Z = C ? `${C}${Zo}` : "", I = L(
2795
+ (ae, we) => {
2796
2796
  if (p) {
2797
- p(ce, xe);
2797
+ p(ae, we);
2798
2798
  return;
2799
2799
  }
2800
2800
  if (j && C) {
2801
- K(j, C, ce);
2802
- const Te = On(
2803
- ce,
2804
- xe,
2805
- re,
2801
+ K(j, C, ae);
2802
+ const ke = On(
2803
+ ae,
2804
+ we,
2805
+ ne,
2806
2806
  ee.labelInValue,
2807
2807
  ee.mode
2808
2808
  );
2809
- K(j, I, Te);
2809
+ K(j, Z, ke);
2810
2810
  }
2811
2811
  if (b && (W.current && clearTimeout(W.current), W.current = setTimeout(() => {
2812
- W.current = null, de(ce);
2812
+ W.current = null, ue(ae);
2813
2813
  }, Qo)), m && M) {
2814
- const { actionName: Te, arg: ve } = Ne(m, ce, {
2814
+ const { actionName: ke, arg: ve } = Te(m, ae, {
2815
2815
  id: t,
2816
2816
  dataSet: T,
2817
2817
  dataSetField: C,
2818
2818
  index: R,
2819
2819
  parentIndex: J
2820
2820
  });
2821
- k(M, te(Te, ve));
2821
+ k(M, te(ke, ve));
2822
2822
  }
2823
2823
  },
2824
2824
  [
@@ -2827,7 +2827,7 @@ const Fc = ({
2827
2827
  C,
2828
2828
  K,
2829
2829
  b,
2830
- de,
2830
+ ue,
2831
2831
  m,
2832
2832
  M,
2833
2833
  t,
@@ -2836,61 +2836,61 @@ const Fc = ({
2836
2836
  R,
2837
2837
  J,
2838
2838
  k,
2839
- re,
2839
+ ne,
2840
2840
  ee.labelInValue,
2841
2841
  ee.mode,
2842
- I
2842
+ Z
2843
2843
  ]
2844
2844
  );
2845
- Ce(() => {
2846
- if (p || !j || !C || !I) return;
2847
- const ce = On(
2848
- ae,
2845
+ Ne(() => {
2846
+ if (p || !j || !C || !Z) return;
2847
+ const ae = On(
2848
+ oe,
2849
2849
  void 0,
2850
- re,
2850
+ ne,
2851
2851
  ee.labelInValue,
2852
2852
  ee.mode
2853
- ), xe = E.getState().getDataSet(j, I);
2854
- Xo(xe, ce) || K(j, I, ce);
2853
+ ), we = E.getState().getDataSet(j, Z);
2854
+ Xo(we, ae) || K(j, Z, ae);
2855
2855
  }, [
2856
2856
  p,
2857
2857
  j,
2858
2858
  C,
2859
- I,
2860
- ae,
2861
- re,
2859
+ Z,
2860
+ oe,
2861
+ ne,
2862
2862
  ee.labelInValue,
2863
2863
  ee.mode,
2864
2864
  K
2865
2865
  ]);
2866
- const we = L(() => {
2867
- d && de(X);
2868
- }, [d, de, X]);
2869
- Ce(
2866
+ const xe = L(() => {
2867
+ d && ue(he);
2868
+ }, [d, ue, he]);
2869
+ Ne(
2870
2870
  () => () => {
2871
2871
  W.current && clearTimeout(W.current);
2872
2872
  },
2873
2873
  []
2874
2874
  );
2875
- const Me = L((ce, xe) => ((xe == null ? void 0 : xe.label) ?? "").toLowerCase().includes(ce.toLowerCase()), []);
2876
- return /* @__PURE__ */ fe("div", { style: { width: "100%" }, children: [
2875
+ const De = L((ae, we) => ((we == null ? void 0 : we.label) ?? "").toLowerCase().includes(ae.toLowerCase()), []);
2876
+ return /* @__PURE__ */ de("div", { style: { width: "100%" }, children: [
2877
2877
  /* @__PURE__ */ g(
2878
2878
  Pn,
2879
2879
  {
2880
2880
  ...ee,
2881
2881
  disabled: n ? !1 : ee.disabled,
2882
2882
  open: n ? !1 : void 0,
2883
- value: X,
2884
- options: re,
2885
- onChange: ne,
2886
- onBlur: we,
2887
- filterOption: Me,
2888
- loading: le,
2889
- status: ye ? "error" : void 0,
2883
+ value: he,
2884
+ options: ne,
2885
+ onChange: I,
2886
+ onBlur: xe,
2887
+ filterOption: De,
2888
+ loading: ce,
2889
+ status: ge ? "error" : void 0,
2890
2890
  style: { width: "100%", ...ee.style }
2891
2891
  }
2892
2892
  ),
2893
- ye && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: ye })
2893
+ ge && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: ge })
2894
2894
  ] });
2895
2895
  }, Pc = ({
2896
2896
  id: t,
@@ -2908,7 +2908,7 @@ const Fc = ({
2908
2908
  ...p
2909
2909
  }) => {
2910
2910
  const S = E((D) => D.addCommand), h = E((D) => D.setDataSet), s = f(
2911
- () => oe(e, i),
2911
+ () => ie(e, i),
2912
2912
  [e, i]
2913
2913
  ), y = E(
2914
2914
  (D) => {
@@ -2931,7 +2931,7 @@ const Fc = ({
2931
2931
  return;
2932
2932
  }
2933
2933
  if (s && r && h(s, r, D), c && x(D), l && e) {
2934
- const { actionName: O, arg: _ } = Ne(l, D, {
2934
+ const { actionName: O, arg: _ } = Te(l, D, {
2935
2935
  id: t,
2936
2936
  dataSet: i,
2937
2937
  dataSetField: r
@@ -2954,7 +2954,7 @@ const Fc = ({
2954
2954
  ), v = L(() => {
2955
2955
  a && x(N);
2956
2956
  }, [a, x, N]);
2957
- return /* @__PURE__ */ fe("div", { style: { display: "inline-block" }, onBlur: v, children: [
2957
+ return /* @__PURE__ */ de("div", { style: { display: "inline-block" }, onBlur: v, children: [
2958
2958
  /* @__PURE__ */ g(
2959
2959
  kr,
2960
2960
  {
@@ -2983,7 +2983,7 @@ const Fc = ({
2983
2983
  ...S
2984
2984
  }) => {
2985
2985
  const h = E((T) => T.addCommand), s = E((T) => T.setDataSet), y = f(
2986
- () => oe(e, i),
2986
+ () => ie(e, i),
2987
2987
  [e, i]
2988
2988
  ), u = E(
2989
2989
  (T) => {
@@ -3018,7 +3018,7 @@ const Fc = ({
3018
3018
  }
3019
3019
  const M = Array.isArray(C) ? C[0] : C;
3020
3020
  if (y && r && s(y, r, M), d && A(M), o && e) {
3021
- const { actionName: k, arg: K } = Ne(o, M, {
3021
+ const { actionName: k, arg: K } = Te(o, M, {
3022
3022
  id: t,
3023
3023
  dataSet: i,
3024
3024
  dataSetField: r
@@ -3028,7 +3028,7 @@ const Fc = ({
3028
3028
  },
3029
3029
  [b, y, r, s, d, A, o, e, t, h]
3030
3030
  );
3031
- Ce(() => {
3031
+ Ne(() => {
3032
3032
  if (p && v === null && y && r) {
3033
3033
  const T = Ge(p).format(a);
3034
3034
  s(y, r, T);
@@ -3043,7 +3043,7 @@ const Fc = ({
3043
3043
  () => Ve(S, u ?? void 0),
3044
3044
  [S, u]
3045
3045
  );
3046
- return /* @__PURE__ */ fe("div", { onBlur: O, style: { display: "flex" }, children: [
3046
+ return /* @__PURE__ */ de("div", { onBlur: O, style: { display: "flex" }, children: [
3047
3047
  /* @__PURE__ */ g(
3048
3048
  Hn,
3049
3049
  {
@@ -3074,7 +3074,7 @@ const Fc = ({
3074
3074
  ...S
3075
3075
  }) => {
3076
3076
  const h = E((T) => T.addCommand), s = E((T) => T.getDataSet), y = E((T) => T.setDataSet), u = f(
3077
- () => oe(e, i),
3077
+ () => ie(e, i),
3078
3078
  [e, i]
3079
3079
  ), x = f(() => {
3080
3080
  if (u && r) return s(u, r);
@@ -3100,13 +3100,13 @@ const Fc = ({
3100
3100
  }
3101
3101
  const M = C || "";
3102
3102
  if (u && r && y(u, r, M), m && A(M), o && e) {
3103
- const { actionName: k, arg: K } = Ne(o, M, { id: t, dataSet: i, dataSetField: r });
3103
+ const { actionName: k, arg: K } = Te(o, M, { id: t, dataSet: i, dataSetField: r });
3104
3104
  h(e, te(k, K));
3105
3105
  }
3106
3106
  }, [c, u, r, y, m, A, o, e, t, h]), O = L(() => {
3107
3107
  p && A(v ? v.format(a) : "");
3108
3108
  }, [p, A, v, a]), _ = N ? "error" : void 0;
3109
- return /* @__PURE__ */ fe(St, { children: [
3109
+ return /* @__PURE__ */ de(St, { children: [
3110
3110
  /* @__PURE__ */ g(
3111
3111
  _r,
3112
3112
  {
@@ -3139,7 +3139,7 @@ const Fc = ({
3139
3139
  ...S
3140
3140
  }) => {
3141
3141
  const h = E((T) => T.addCommand), s = E((T) => T.setDataSet), y = f(
3142
- () => oe(e, i),
3142
+ () => ie(e, i),
3143
3143
  [e, i]
3144
3144
  ), u = E(
3145
3145
  (T) => {
@@ -3172,7 +3172,7 @@ const Fc = ({
3172
3172
  return;
3173
3173
  }
3174
3174
  if (y && r && s(y, r, C), d && A(C), o && e) {
3175
- const { actionName: M, arg: k } = Ne(o, C, {
3175
+ const { actionName: M, arg: k } = Te(o, C, {
3176
3176
  id: t,
3177
3177
  dataSet: i,
3178
3178
  dataSetField: r
@@ -3185,7 +3185,7 @@ const Fc = ({
3185
3185
  var T, C;
3186
3186
  l && A(v ? [(T = v[0]) == null ? void 0 : T.format(a), (C = v[1]) == null ? void 0 : C.format(a)] : null);
3187
3187
  }, [l, A, v, a]);
3188
- return /* @__PURE__ */ fe("div", { onBlur: _, children: [
3188
+ return /* @__PURE__ */ de("div", { onBlur: _, children: [
3189
3189
  /* @__PURE__ */ g(
3190
3190
  Io,
3191
3191
  {
@@ -3222,7 +3222,7 @@ const Fc = ({
3222
3222
  ...A
3223
3223
  }) => {
3224
3224
  const N = tt(i, r, e), w = N.dataSet, v = N.dataSetField, D = N.sessionId, O = E((F) => F.addCommand), _ = E((F) => F.setDataSet), T = f(
3225
- () => oe(D, w),
3225
+ () => ie(D, w),
3226
3226
  [D, w]
3227
3227
  ), C = E(
3228
3228
  (F) => {
@@ -3260,12 +3260,12 @@ const Fc = ({
3260
3260
  return;
3261
3261
  }
3262
3262
  if (T && v && _(T, v, P), p && k(P), c && D) {
3263
- const { actionName: H, arg: ie } = Ne(c, P, {
3263
+ const { actionName: H, arg: re } = Te(c, P, {
3264
3264
  id: t,
3265
3265
  dataSet: w,
3266
3266
  dataSetField: v
3267
3267
  });
3268
- O(D, te(H, ie));
3268
+ O(D, te(H, re));
3269
3269
  }
3270
3270
  },
3271
3271
  [
@@ -3285,7 +3285,7 @@ const Fc = ({
3285
3285
  ), B = L(() => {
3286
3286
  m && k(J);
3287
3287
  }, [m, k, J]);
3288
- return /* @__PURE__ */ fe("div", { onBlur: B, children: [
3288
+ return /* @__PURE__ */ de("div", { onBlur: B, children: [
3289
3289
  /* @__PURE__ */ g(
3290
3290
  Ut.Group,
3291
3291
  {
@@ -3296,7 +3296,7 @@ const Fc = ({
3296
3296
  buttonStyle: (C == null ? void 0 : C.buttonStyle) ?? l,
3297
3297
  optionType: (C == null ? void 0 : C.optionType) ?? d,
3298
3298
  children: d === "button" ? R.map((F) => /* @__PURE__ */ g(Ut.Button, { value: F.value, disabled: F.disabled, children: F.label }, F.value)) : /* @__PURE__ */ g(
3299
- ke,
3299
+ _e,
3300
3300
  {
3301
3301
  orientation: (C == null ? void 0 : C.direction) ?? u ?? "horizontal",
3302
3302
  wrap: !0,
@@ -3333,7 +3333,7 @@ const Fc = ({
3333
3333
  ...w
3334
3334
  }) => {
3335
3335
  const v = E((P) => P.addCommand), D = E((P) => P.setDataSet), O = f(
3336
- () => oe(e, i),
3336
+ () => ie(e, i),
3337
3337
  [e, i]
3338
3338
  ), _ = E(
3339
3339
  (P) => {
@@ -3363,8 +3363,8 @@ const Fc = ({
3363
3363
  if (!c) return [];
3364
3364
  let P = [];
3365
3365
  return Array.isArray(T) ? P = T : Array.isArray(_ == null ? void 0 : _.values) ? P = _.values : P = s || [], z.length === 0 ? P : P.map((H) => {
3366
- var ie;
3367
- return ((ie = Qe(z, H)) == null ? void 0 : ie.value) ?? H;
3366
+ var re;
3367
+ return ((re = Qe(z, H)) == null ? void 0 : re.value) ?? H;
3368
3368
  });
3369
3369
  }, [c, T, _ == null ? void 0 : _.values, s, z]), R = f(
3370
3370
  () => Ve(w, _ ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
@@ -3376,8 +3376,8 @@ const Fc = ({
3376
3376
  return;
3377
3377
  }
3378
3378
  if (O && r && D(O, r, H), m && C(H), l && e) {
3379
- const { actionName: ie, arg: le } = Ne(l, H, { id: t, dataSet: i, dataSetField: r });
3380
- v(e, te(ie, le));
3379
+ const { actionName: re, arg: ce } = Te(l, H, { id: t, dataSet: i, dataSetField: r });
3380
+ v(e, te(re, ce));
3381
3381
  }
3382
3382
  }, [p, O, r, D, m, C, l, e, t, v]), B = L((P) => {
3383
3383
  if (S) {
@@ -3385,27 +3385,27 @@ const Fc = ({
3385
3385
  return;
3386
3386
  }
3387
3387
  if (O && r && D(O, r, P), m && C(P), l && e) {
3388
- const { actionName: H, arg: ie } = Ne(l, P, { id: t, dataSet: i, dataSetField: r });
3389
- v(e, te(H, ie));
3388
+ const { actionName: H, arg: re } = Te(l, P, { id: t, dataSet: i, dataSetField: r });
3389
+ v(e, te(H, re));
3390
3390
  }
3391
3391
  }, [S, O, r, D, m, C, l, e, t, v]), F = L(() => {
3392
3392
  b && C(c ? j : W);
3393
3393
  }, [b, C, c, j, W]);
3394
3394
  if (c && z.length > 0) {
3395
- const { indeterminate: P, direction: H, ...ie } = R;
3396
- return /* @__PURE__ */ fe("div", { onBlur: F, children: [
3397
- /* @__PURE__ */ g(bt.Group, { ...ie, value: j, onChange: B, disabled: n ? !1 : R.disabled, children: /* @__PURE__ */ g(
3398
- ke,
3395
+ const { indeterminate: P, direction: H, ...re } = R;
3396
+ return /* @__PURE__ */ de("div", { onBlur: F, children: [
3397
+ /* @__PURE__ */ g(bt.Group, { ...re, value: j, onChange: B, disabled: n ? !1 : R.disabled, children: /* @__PURE__ */ g(
3398
+ _e,
3399
3399
  {
3400
3400
  orientation: V,
3401
3401
  wrap: !0,
3402
- children: z.map((le) => /* @__PURE__ */ g(bt, { value: le.value, disabled: le.disabled, children: le.label }, le.value))
3402
+ children: z.map((ce) => /* @__PURE__ */ g(bt, { value: ce.value, disabled: ce.disabled, children: ce.label }, ce.value))
3403
3403
  }
3404
3404
  ) }),
3405
3405
  M && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: M })
3406
3406
  ] });
3407
3407
  }
3408
- return /* @__PURE__ */ fe("div", { onBlur: F, children: [
3408
+ return /* @__PURE__ */ de("div", { onBlur: F, children: [
3409
3409
  /* @__PURE__ */ g(
3410
3410
  bt,
3411
3411
  {
@@ -3434,7 +3434,7 @@ const Fc = ({
3434
3434
  ...p
3435
3435
  }) => {
3436
3436
  const S = E((O) => O.addCommand), h = E((O) => O.setDataSet), s = f(
3437
- () => oe(e, i),
3437
+ () => ie(e, i),
3438
3438
  [e, i]
3439
3439
  ), y = E(
3440
3440
  (O) => {
@@ -3457,7 +3457,7 @@ const Fc = ({
3457
3457
  return;
3458
3458
  }
3459
3459
  if (s && r && h(s, r, O), l && x(O), o && e) {
3460
- const { actionName: _, arg: T } = Ne(o, O, {
3460
+ const { actionName: _, arg: T } = Te(o, O, {
3461
3461
  id: t,
3462
3462
  dataSet: i,
3463
3463
  dataSetField: r
@@ -3472,7 +3472,7 @@ const Fc = ({
3472
3472
  () => Ve(p, y ?? void 0),
3473
3473
  [p, y]
3474
3474
  );
3475
- return /* @__PURE__ */ fe("div", { onBlur: v, children: [
3475
+ return /* @__PURE__ */ de("div", { onBlur: v, children: [
3476
3476
  /* @__PURE__ */ g(
3477
3477
  Er,
3478
3478
  {
@@ -3497,7 +3497,7 @@ const Fc = ({
3497
3497
  ...d
3498
3498
  }) => {
3499
3499
  const b = E((u) => u.addCommand), m = E((u) => u.getDataSet), p = E((u) => u.setDataSet), S = f(
3500
- () => oe(e, i),
3500
+ () => ie(e, i),
3501
3501
  [e, i]
3502
3502
  ), h = f(() => {
3503
3503
  if (S && r) return m(S, r);
@@ -3507,7 +3507,7 @@ const Fc = ({
3507
3507
  return;
3508
3508
  }
3509
3509
  if (S && r && p(S, r, u), o && e) {
3510
- const { actionName: x, arg: A } = Ne(o, u, { id: t, dataSet: i, dataSetField: r });
3510
+ const { actionName: x, arg: A } = Te(o, u, { id: t, dataSet: i, dataSetField: r });
3511
3511
  b(e, te(x, A));
3512
3512
  }
3513
3513
  }, [a, S, r, p, o, e, t, b]);
@@ -3555,7 +3555,7 @@ const Fc = ({
3555
3555
  ...s
3556
3556
  }) => {
3557
3557
  const y = E((j) => j.addCommand), u = E((j) => j.setDataSet), x = Re(null), [A, N] = be([]), [w, v] = be(!1), D = f(
3558
- () => oe(e, i),
3558
+ () => ie(e, i),
3559
3559
  [e, i]
3560
3560
  ), O = E(
3561
3561
  (j) => D && r ? j.getDataSet(D, r) : void 0
@@ -3570,7 +3570,7 @@ const Fc = ({
3570
3570
  let j = O ?? S ?? p ?? [];
3571
3571
  return typeof j == "string" ? M ? Mn(j).map((J) => ta(J, A)).filter((J) => Array.isArray(J) && J.length > 0) : [j] : $n(j) && M ? j.map((J) => Mn(J)).filter((J) => Array.isArray(J) && J.length > 0) : Rn(j) && M ? j.filter((R) => Array.isArray(R) && R.length > 0) : j;
3572
3572
  }, [O, S, p, M, A]), K = f(() => o != null && o.url && A.length > 0 ? A : m || [], [o == null ? void 0 : o.url, A, m]);
3573
- Ce(() => {
3573
+ Ne(() => {
3574
3574
  (async () => {
3575
3575
  if (o != null && o.url) {
3576
3576
  v(!0);
@@ -3600,7 +3600,7 @@ const Fc = ({
3600
3600
  if ($n(j) && M ? J = String(j[j.length - 1] || "") : Rn(j) && M && (J = j.map((V) => V.join(","))), D && r && u(D, r, J), l && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
3601
3601
  x.current = null, _(j);
3602
3602
  }, ea)), d && e) {
3603
- const { actionName: V, arg: $ } = Ne(d, j, {
3603
+ const { actionName: V, arg: $ } = Te(d, j, {
3604
3604
  id: t,
3605
3605
  dataSet: i,
3606
3606
  dataSetField: r
@@ -3624,12 +3624,12 @@ const Fc = ({
3624
3624
  ), z = L(() => {
3625
3625
  c && _(k);
3626
3626
  }, [c, _, k]);
3627
- return Ce(
3627
+ return Ne(
3628
3628
  () => () => {
3629
3629
  x.current && clearTimeout(x.current);
3630
3630
  },
3631
3631
  []
3632
- ), /* @__PURE__ */ fe("div", { style: { width: "100%" }, children: [
3632
+ ), /* @__PURE__ */ de("div", { style: { width: "100%" }, children: [
3633
3633
  /* @__PURE__ */ g(
3634
3634
  Mr,
3635
3635
  {
@@ -3669,7 +3669,7 @@ const Fc = ({
3669
3669
  ...x
3670
3670
  }) => {
3671
3671
  const A = E((R) => R.addCommand), N = E((R) => R.setDataSet), w = f(
3672
- () => oe(e, i),
3672
+ () => ie(e, i),
3673
3673
  [e, i]
3674
3674
  ), v = E(
3675
3675
  (R) => {
@@ -3698,7 +3698,7 @@ const Fc = ({
3698
3698
  return;
3699
3699
  }
3700
3700
  if (w && r && N(w, r, R), y && O(R), o && e) {
3701
- const { actionName: $, arg: B } = Ne(o, R, {
3701
+ const { actionName: $, arg: B } = Te(o, R, {
3702
3702
  id: t,
3703
3703
  dataSet: i,
3704
3704
  dataSetField: r
@@ -3722,7 +3722,7 @@ const Fc = ({
3722
3722
  TreeSelect: K
3723
3723
  }
3724
3724
  };
3725
- }, [K]), z = _ ? "error" : void 0, j = /* @__PURE__ */ fe("div", { onBlur: k, children: [
3725
+ }, [K]), z = _ ? "error" : void 0, j = /* @__PURE__ */ de("div", { onBlur: k, children: [
3726
3726
  /* @__PURE__ */ g(
3727
3727
  $r,
3728
3728
  {
@@ -3763,7 +3763,7 @@ const Fc = ({
3763
3763
  ...x
3764
3764
  }) => {
3765
3765
  const A = tt(i, r, e), N = A.dataSet, w = A.dataSetField, v = A.sessionId, D = E((U) => U.addCommand), O = E((U) => U.setDataSet), _ = f(
3766
- () => oe(v, N),
3766
+ () => ie(v, N),
3767
3767
  [v, N]
3768
3768
  ), T = E(
3769
3769
  (U) => {
@@ -3780,12 +3780,12 @@ const Fc = ({
3780
3780
  id: t,
3781
3781
  develop: n
3782
3782
  }), K = L((U) => U.map((G) => {
3783
- var me;
3784
- return ((me = G == null ? void 0 : G.response) == null ? void 0 : me.src) ?? (G == null ? void 0 : G.src) ?? (G == null ? void 0 : G.url) ?? (G == null ? void 0 : G.thumbUrl) ?? "";
3783
+ var fe;
3784
+ return ((fe = G == null ? void 0 : G.response) == null ? void 0 : fe.src) ?? (G == null ? void 0 : G.src) ?? (G == null ? void 0 : G.url) ?? (G == null ? void 0 : G.thumbUrl) ?? "";
3785
3785
  }).filter((G) => G && typeof G == "string"), []), W = L((U) => {
3786
- const G = He().viewRes, me = (q) => (G ? G(q) : q) || q;
3786
+ const G = He().viewRes, fe = (q) => (G ? G(q) : q) || q;
3787
3787
  return U.map((q, se) => {
3788
- const pe = me(q);
3788
+ const pe = fe(q);
3789
3789
  return {
3790
3790
  uid: `src-${se}-${q}`,
3791
3791
  name: q.split("/").pop() || q,
@@ -3796,13 +3796,13 @@ const Fc = ({
3796
3796
  };
3797
3797
  });
3798
3798
  }, []), z = L((U) => {
3799
- const G = He().viewRes, me = (q) => (q && G ? G(q) : q) || q;
3799
+ const G = He().viewRes, fe = (q) => (q && G ? G(q) : q) || q;
3800
3800
  return U.map((q) => {
3801
3801
  var Y;
3802
- const se = ((Y = q == null ? void 0 : q.response) == null ? void 0 : Y.src) ?? (q == null ? void 0 : q.src) ?? (q == null ? void 0 : q.url) ?? (q == null ? void 0 : q.thumbUrl) ?? "", pe = typeof se == "string" ? me(se) : se, Q = {};
3803
- for (const ue of Object.keys(q)) {
3804
- const ge = q[ue];
3805
- ge instanceof File ? Q[ue] = ge : ge && typeof ge == "object" && !Array.isArray(ge) ? Q[ue] = { ...ge } : Q[ue] = ge;
3802
+ const se = ((Y = q == null ? void 0 : q.response) == null ? void 0 : Y.src) ?? (q == null ? void 0 : q.src) ?? (q == null ? void 0 : q.url) ?? (q == null ? void 0 : q.thumbUrl) ?? "", pe = typeof se == "string" ? fe(se) : se, Q = {};
3803
+ for (const le of Object.keys(q)) {
3804
+ const ye = q[le];
3805
+ ye instanceof File ? Q[le] = ye : ye && typeof ye == "object" && !Array.isArray(ye) ? Q[le] = { ...ye } : Q[le] = ye;
3806
3806
  }
3807
3807
  return pe && typeof pe == "string" && (Q.url = pe, Q.thumbUrl = pe), Q;
3808
3808
  });
@@ -3819,7 +3819,7 @@ const Fc = ({
3819
3819
  }),
3820
3820
  [x, T]
3821
3821
  ), B = L((U) => U.size / 1024 / 1024 < h ? !0 : (jt.error(`文件大小不能超过 ${h}MB`), !1), [h]), F = L(async (U) => {
3822
- const { file: G, onSuccess: me, onError: q, onProgress: se } = U;
3822
+ const { file: G, onSuccess: fe, onError: q, onProgress: se } = U;
3823
3823
  if (He().upload)
3824
3824
  try {
3825
3825
  se == null || se({ percent: 30 });
@@ -3831,7 +3831,7 @@ const Fc = ({
3831
3831
  form: s == null ? void 0 : s.form,
3832
3832
  query: s == null ? void 0 : s.query
3833
3833
  });
3834
- se == null || se({ percent: 100 }), me == null || me(Q, G);
3834
+ se == null || se({ percent: 100 }), fe == null || fe(Q, G);
3835
3835
  } catch (Q) {
3836
3836
  q == null || q(Q), jt.error("上传失败");
3837
3837
  }
@@ -3843,13 +3843,13 @@ const Fc = ({
3843
3843
  b(U);
3844
3844
  return;
3845
3845
  }
3846
- const G = Array.isArray(U.fileList) ? z(U.fileList) : U.fileList, me = Array.isArray(G) ? K(G) : [], q = Array.isArray(G) && G.some((pe) => (pe == null ? void 0 : pe.status) === "uploading");
3847
- _ && w && (me.length > 0 || !Array.isArray(G) || G.length === 0) ? (O(_, w, me), R(null)) : q ? R(G) : G.length === 0 && R(null), d && M(G), o && v && D(
3846
+ const G = Array.isArray(U.fileList) ? z(U.fileList) : U.fileList, fe = Array.isArray(G) ? K(G) : [], q = Array.isArray(G) && G.some((pe) => (pe == null ? void 0 : pe.status) === "uploading");
3847
+ _ && w && (fe.length > 0 || !Array.isArray(G) || G.length === 0) ? (O(_, w, fe), R(null)) : q ? R(G) : G.length === 0 && R(null), d && M(G), o && v && D(
3848
3848
  v,
3849
3849
  te(o, {
3850
3850
  file: U.file,
3851
3851
  fileList: G,
3852
- src: me
3852
+ src: fe
3853
3853
  })
3854
3854
  );
3855
3855
  },
@@ -3868,71 +3868,71 @@ const Fc = ({
3868
3868
  ]
3869
3869
  ), H = L(() => {
3870
3870
  l && M(V);
3871
- }, [l, M, V]), ie = L((U) => {
3871
+ }, [l, M, V]), re = L((U) => {
3872
3872
  var pe;
3873
3873
  const G = U.url || U.thumbUrl;
3874
3874
  if (!G) return "";
3875
- const me = ((pe = U.response) == null ? void 0 : pe.src) ?? (typeof G == "string" ? G : ""), q = He().viewRes, se = me && q ? q(me) : G;
3876
- return String(se).replace(/([?&])download=1(&|$)/, (Q, Y, ue) => ue ? Y : "");
3877
- }, []), le = L((U) => {
3875
+ const fe = ((pe = U.response) == null ? void 0 : pe.src) ?? (typeof G == "string" ? G : ""), q = He().viewRes, se = fe && q ? q(fe) : G;
3876
+ return String(se).replace(/([?&])download=1(&|$)/, (Q, Y, le) => le ? Y : "");
3877
+ }, []), ce = L((U) => {
3878
3878
  var q, se;
3879
- const G = ((q = U.response) == null ? void 0 : q.src) ?? U.name ?? "", me = ((se = String(G).split(".").pop()) == null ? void 0 : se.toLowerCase()) || "";
3880
- return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(me) || /^data:image\//.test(ie(U));
3881
- }, [ie]), [de, ye] = be({
3879
+ const G = ((q = U.response) == null ? void 0 : q.src) ?? U.name ?? "", fe = ((se = String(G).split(".").pop()) == null ? void 0 : se.toLowerCase()) || "";
3880
+ return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(fe) || /^data:image\//.test(re(U));
3881
+ }, [re]), [ue, ge] = be({
3882
3882
  url: "",
3883
3883
  name: "",
3884
3884
  urls: [],
3885
3885
  current: 0,
3886
3886
  open: !1
3887
- }), ae = L((U) => {
3888
- const G = ie(U);
3887
+ }), oe = L((U) => {
3888
+ const G = re(U);
3889
3889
  if (G)
3890
- if (le(U) && (V != null && V.length)) {
3891
- const me = V.filter((pe) => le(pe)), q = me.map((pe) => ie(pe)).filter(Boolean), se = me.findIndex((pe) => (pe.uid || pe.url) === (U.uid || U.url));
3892
- ye({ url: G, name: U.name, urls: q, current: se >= 0 ? se : 0, open: !0 });
3893
- } else le(U) || window.open(G, "_blank");
3894
- }, [ie, le, V]), re = !!He().upload && !u, X = $, I = X.buttonText ?? a, ne = X.listType ?? x.listType, we = String((T == null ? void 0 : T.listDisplayText) ?? y ?? "").trim(), Me = f(() => {
3895
- const U = X.showUploadList;
3896
- return ne !== "text" || U === !1 || !we || !(V != null && V.length) ? V : V.map((G) => ({ ...G, name: we }));
3897
- }, [V, ne, X.showUploadList, we]), ce = X.maxCount, xe = (V == null ? void 0 : V.length) ?? 0, Te = typeof ce == "number" && xe >= ce, ve = L(
3898
- (U) => Te ? (jt.warning(`最多只能上传 ${ce} 个文件`), !1) : B(U),
3899
- [Te, ce, B]
3890
+ if (ce(U) && (V != null && V.length)) {
3891
+ const fe = V.filter((pe) => ce(pe)), q = fe.map((pe) => re(pe)).filter(Boolean), se = fe.findIndex((pe) => (pe.uid || pe.url) === (U.uid || U.url));
3892
+ ge({ url: G, name: U.name, urls: q, current: se >= 0 ? se : 0, open: !0 });
3893
+ } else ce(U) || window.open(G, "_blank");
3894
+ }, [re, ce, V]), ne = !!He().upload && !u, he = $, Z = he.buttonText ?? a, I = he.listType ?? x.listType, xe = String((T == null ? void 0 : T.listDisplayText) ?? y ?? "").trim(), De = f(() => {
3895
+ const U = he.showUploadList;
3896
+ return I !== "text" || U === !1 || !xe || !(V != null && V.length) ? V : V.map((G) => ({ ...G, name: xe }));
3897
+ }, [V, I, he.showUploadList, xe]), ae = he.maxCount, we = (V == null ? void 0 : V.length) ?? 0, ke = typeof ae == "number" && we >= ae, ve = L(
3898
+ (U) => ke ? (jt.warning(`最多只能上传 ${ae} 个文件`), !1) : B(U),
3899
+ [ke, ae, B]
3900
3900
  );
3901
- return /* @__PURE__ */ fe("div", { onBlur: H, children: [
3901
+ return /* @__PURE__ */ de("div", { onBlur: H, children: [
3902
3902
  /* @__PURE__ */ g(
3903
3903
  Rr,
3904
3904
  {
3905
3905
  ...$,
3906
3906
  disabled: n ? !1 : $.disabled,
3907
- fileList: Me,
3907
+ fileList: De,
3908
3908
  onChange: P,
3909
- onPreview: ae,
3909
+ onPreview: oe,
3910
3910
  beforeUpload: ve,
3911
- customRequest: re ? F : void 0,
3912
- action: re ? void 0 : u || S,
3911
+ customRequest: ne ? F : void 0,
3912
+ action: ne ? void 0 : u || S,
3913
3913
  openFileDialogOnClick: !n,
3914
- children: !Te && (p || (ne === "picture-card" || ne === "picture-circle" ? /* @__PURE__ */ fe("button", { style: { border: 0, background: "none" }, type: "button", children: [
3914
+ children: !ke && (p || (I === "picture-card" || I === "picture-circle" ? /* @__PURE__ */ de("button", { style: { border: 0, background: "none" }, type: "button", children: [
3915
3915
  /* @__PURE__ */ g(er, {}),
3916
- /* @__PURE__ */ g("div", { style: { marginTop: 8 }, children: I })
3917
- ] }) : /* @__PURE__ */ g(it, { icon: /* @__PURE__ */ g(mi, {}), children: I })))
3916
+ /* @__PURE__ */ g("div", { style: { marginTop: 8 }, children: Z })
3917
+ ] }) : /* @__PURE__ */ g(it, { icon: /* @__PURE__ */ g(mi, {}), children: Z })))
3918
3918
  }
3919
3919
  ),
3920
3920
  k && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k }),
3921
- de.url && /* @__PURE__ */ g("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: de.urls.length > 1 ? /* @__PURE__ */ g(
3921
+ ue.url && /* @__PURE__ */ g("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: ue.urls.length > 1 ? /* @__PURE__ */ g(
3922
3922
  nt.PreviewGroup,
3923
3923
  {
3924
3924
  preview: {
3925
- current: de.current,
3926
- onOpenChange: (U) => !U && ye((G) => ({ ...G, open: !1 }))
3925
+ current: ue.current,
3926
+ onOpenChange: (U) => !U && ge((G) => ({ ...G, open: !1 }))
3927
3927
  },
3928
- children: de.urls.map((U, G) => /* @__PURE__ */ g(
3928
+ children: ue.urls.map((U, G) => /* @__PURE__ */ g(
3929
3929
  nt,
3930
3930
  {
3931
3931
  src: U,
3932
3932
  style: { width: 1, height: 1 },
3933
3933
  preview: {
3934
- open: de.open && de.current === G,
3935
- onOpenChange: (me) => !me && ye((q) => ({ ...q, open: !1 }))
3934
+ open: ue.open && ue.current === G,
3935
+ onOpenChange: (fe) => !fe && ge((q) => ({ ...q, open: !1 }))
3936
3936
  }
3937
3937
  },
3938
3938
  G
@@ -3941,12 +3941,12 @@ const Fc = ({
3941
3941
  ) : /* @__PURE__ */ g(
3942
3942
  nt,
3943
3943
  {
3944
- src: de.url,
3945
- alt: de.name,
3944
+ src: ue.url,
3945
+ alt: ue.name,
3946
3946
  style: { width: 1, height: 1 },
3947
3947
  preview: {
3948
- open: de.open,
3949
- onOpenChange: (U) => !U && ye((G) => ({ ...G, open: !1 }))
3948
+ open: ue.open,
3949
+ onOpenChange: (U) => !U && ge((G) => ({ ...G, open: !1 }))
3950
3950
  }
3951
3951
  }
3952
3952
  ) })
@@ -3971,7 +3971,7 @@ const Fc = ({
3971
3971
  ...s
3972
3972
  }) => {
3973
3973
  const y = E((K) => K.addCommand), u = E((K) => K.getDataSet), x = E((K) => K.setDataSet), A = f(
3974
- () => oe(e, i),
3974
+ () => ie(e, i),
3975
3975
  [e, i]
3976
3976
  ), [N, w] = be(m || []), [, v] = be(!1), D = Le.useRef(void 0), { get: O } = po(), _ = f(() => {
3977
3977
  if (A && r) return u(A, r);
@@ -4021,7 +4021,7 @@ const Fc = ({
4021
4021
  return;
4022
4022
  }
4023
4023
  if (A && r && x(A, r, K), o && e) {
4024
- const { actionName: W, arg: z } = Ne(o, K, { id: t, dataSet: i, dataSetField: r });
4024
+ const { actionName: W, arg: z } = Te(o, K, { id: t, dataSet: i, dataSetField: r });
4025
4025
  y(e, te(W, z));
4026
4026
  }
4027
4027
  }, [c, A, r, x, o, e, t, y]), k = L((K, W) => {
@@ -4063,7 +4063,7 @@ const Fc = ({
4063
4063
  ...h
4064
4064
  }) => {
4065
4065
  const [s] = zt.useForm(), y = E((w) => w.addCommand), u = E((w) => w.setDataSet), x = f(
4066
- () => oe(e, i),
4066
+ () => ie(e, i),
4067
4067
  [e, i]
4068
4068
  ), A = (w) => {
4069
4069
  if (m) {
@@ -4078,9 +4078,9 @@ const Fc = ({
4078
4078
  }
4079
4079
  a && e && y(e, te(a, null));
4080
4080
  };
4081
- return /* @__PURE__ */ fe(zt, { ...h, form: s, onFinish: A, children: [
4081
+ return /* @__PURE__ */ de(zt, { ...h, form: s, onFinish: A, children: [
4082
4082
  S,
4083
- (c || l) && /* @__PURE__ */ g(zt.Item, { children: /* @__PURE__ */ fe(ke, { children: [
4083
+ (c || l) && /* @__PURE__ */ g(zt.Item, { children: /* @__PURE__ */ de(_e, { children: [
4084
4084
  c && /* @__PURE__ */ g(it, { type: "primary", htmlType: "submit", children: d }),
4085
4085
  l && /* @__PURE__ */ g(it, { onClick: N, children: b })
4086
4086
  ] }) })
@@ -4130,49 +4130,49 @@ const Fc = ({
4130
4130
  token: T,
4131
4131
  ...C
4132
4132
  }) => {
4133
- const M = E((re) => re.addCommand), k = E((re) => re.getDataSet), K = E((re) => re.setDataSet), W = f(
4134
- () => oe(e, i),
4133
+ const M = E((ne) => ne.addCommand), k = E((ne) => ne.getDataSet), K = E((ne) => ne.setDataSet), W = f(
4134
+ () => ie(e, i),
4135
4135
  [e, i]
4136
4136
  ), z = f(() => Pe(_, {}), [_]), j = f(() => Pe(T, {}), [T]), R = f(() => Pe(h, ["源列表", "目标列表"]), [h]), J = f(() => Pe(s, [">", "<"]), [s]), V = f(() => Pe(y, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [y]), $ = f(() => Pe(p, !1), [p]), B = f(() => {
4137
4137
  if (W && r) {
4138
- const re = k(W, r);
4139
- if (Array.isArray(re)) return re;
4138
+ const ne = k(W, r);
4139
+ if (Array.isArray(ne)) return ne;
4140
4140
  }
4141
4141
  }, [W, r, k]), F = f(() => {
4142
4142
  if (W && r) {
4143
- const re = k(W, `${r}.dataSource`);
4144
- if (Array.isArray(re)) return re;
4143
+ const ne = k(W, `${r}.dataSource`);
4144
+ if (Array.isArray(ne)) return ne;
4145
4145
  }
4146
- }, [W, r, k]), P = f(() => n ? F ?? Pe(o, []) : W ? F ?? [] : Pe(o, []), [n, W, F, o]), H = f(() => n ? B ?? Pe(a, []) : W ? B ?? [] : Pe(a, []), [n, W, B, a]), ie = f(() => Pe(c, []), [c]), le = L((re, X, I) => {
4146
+ }, [W, r, k]), P = f(() => n ? F ?? Pe(o, []) : W ? F ?? [] : Pe(o, []), [n, W, F, o]), H = f(() => n ? B ?? Pe(a, []) : W ? B ?? [] : Pe(a, []), [n, W, B, a]), re = f(() => Pe(c, []), [c]), ce = L((ne, he, Z) => {
4147
4147
  if (w) {
4148
- w(re, X, I);
4148
+ w(ne, he, Z);
4149
4149
  return;
4150
4150
  }
4151
- W && r && K(W, r, re), u && e && M(e, te(u, { targetKeys: re, direction: X, moveKeys: I }));
4152
- }, [w, W, r, K, u, e, M]), de = L((re, X) => {
4151
+ W && r && K(W, r, ne), u && e && M(e, te(u, { targetKeys: ne, direction: he, moveKeys: Z }));
4152
+ }, [w, W, r, K, u, e, M]), ue = L((ne, he) => {
4153
4153
  if (v) {
4154
- v(re, X);
4154
+ v(ne, he);
4155
4155
  return;
4156
4156
  }
4157
- x && e && M(e, te(x, { sourceSelectedKeys: re, targetSelectedKeys: X }));
4158
- }, [v, x, e, M]), ye = L((re, X) => {
4157
+ x && e && M(e, te(x, { sourceSelectedKeys: ne, targetSelectedKeys: he }));
4158
+ }, [v, x, e, M]), ge = L((ne, he) => {
4159
4159
  if (D) {
4160
- D(re, X);
4160
+ D(ne, he);
4161
4161
  return;
4162
4162
  }
4163
- A && e && M(e, te(A, { direction: re, value: X }));
4164
- }, [D, A, e, M]), ae = L((re, X) => {
4163
+ A && e && M(e, te(A, { direction: ne, value: he }));
4164
+ }, [D, A, e, M]), oe = L((ne, he) => {
4165
4165
  if (O) {
4166
- O(re, X);
4166
+ O(ne, he);
4167
4167
  return;
4168
4168
  }
4169
- N && e && M(e, te(N, { direction: re }));
4169
+ N && e && M(e, te(N, { direction: ne }));
4170
4170
  }, [O, N, e, M]), ee = /* @__PURE__ */ g(
4171
4171
  Br,
4172
4172
  {
4173
4173
  dataSource: P,
4174
4174
  targetKeys: H,
4175
- selectedKeys: ie,
4175
+ selectedKeys: re,
4176
4176
  disabled: l,
4177
4177
  showSearch: d,
4178
4178
  showSelectAll: b,
@@ -4182,12 +4182,12 @@ const Fc = ({
4182
4182
  titles: R,
4183
4183
  actions: J,
4184
4184
  locale: V,
4185
- onChange: le,
4186
- onSelectChange: de,
4187
- onSearch: ye,
4188
- onScroll: ae,
4185
+ onChange: ce,
4186
+ onSelectChange: ue,
4187
+ onSearch: ge,
4188
+ onScroll: oe,
4189
4189
  styles: z,
4190
- render: (re) => re.title,
4190
+ render: (ne) => ne.title,
4191
4191
  ...C
4192
4192
  }
4193
4193
  );
@@ -4235,7 +4235,7 @@ const Fc = ({
4235
4235
  ...u
4236
4236
  }) => {
4237
4237
  const x = E((k) => k.addCommand), A = E((k) => k.getDataSet), N = E((k) => k.setDataSet), w = f(
4238
- () => oe(e, i),
4238
+ () => ie(e, i),
4239
4239
  [e, i]
4240
4240
  ), v = f(() => un(s, {}), [s]), D = f(() => un(y, {}), [y]), O = f(() => ra(o), [o]), T = f(() => {
4241
4241
  if (w && r) {
@@ -4325,7 +4325,7 @@ function oa(t) {
4325
4325
  }
4326
4326
  const aa = ({ dictCode: t, value: e }) => {
4327
4327
  const [n, i] = be(null);
4328
- if (Ce(() => {
4328
+ if (Ne(() => {
4329
4329
  if (!t) {
4330
4330
  i([]);
4331
4331
  return;
@@ -4535,7 +4535,7 @@ const Qt = 420, Kn = 440, va = ({
4535
4535
  onClose: m
4536
4536
  }) => {
4537
4537
  const [p, S] = be(n), [h, s] = be(i), [y, u] = be(a), [x, A] = be(l), [N, w] = be(null);
4538
- Ce(() => {
4538
+ Ne(() => {
4539
4539
  t && (S(n), s([...i]), u(a), A(l));
4540
4540
  }, [t, n, i, a, l]);
4541
4541
  const v = L(
@@ -4577,10 +4577,10 @@ const Qt = 420, Kn = 440, va = ({
4577
4577
  ), M = L(
4578
4578
  ($, B) => {
4579
4579
  s((F) => {
4580
- const P = F.find((de) => de.key === $);
4580
+ const P = F.find((ue) => ue.key === $);
4581
4581
  if (!P) return F;
4582
- const H = typeof P.width == "number" ? P.width : 80, ie = Math.max(Gt, H + B), le = F.map((de) => de.key === $ ? { ...de, width: ie } : de);
4583
- return v(D(p, le)), le;
4582
+ const H = typeof P.width == "number" ? P.width : 80, re = Math.max(Gt, H + B), ce = F.map((ue) => ue.key === $ ? { ...ue, width: re } : ue);
4583
+ return v(D(p, ce)), ce;
4584
4584
  });
4585
4585
  },
4586
4586
  [p, D, v]
@@ -4627,8 +4627,8 @@ const Qt = 420, Kn = 440, va = ({
4627
4627
  style: V,
4628
4628
  mask: !1,
4629
4629
  className: `and-table-column-setting-modal${e != null ? " and-table-column-setting-modal-positioned" : ""}`,
4630
- children: /* @__PURE__ */ fe("div", { className: "and-table-column-setting-body", children: [
4631
- /* @__PURE__ */ g("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ fe("div", { className: "and-table-column-setting-header-row", children: [
4630
+ children: /* @__PURE__ */ de("div", { className: "and-table-column-setting-body", children: [
4631
+ /* @__PURE__ */ g("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ de("div", { className: "and-table-column-setting-header-row", children: [
4632
4632
  /* @__PURE__ */ g(
4633
4633
  bt,
4634
4634
  {
@@ -4638,7 +4638,7 @@ const Qt = 420, Kn = 440, va = ({
4638
4638
  }
4639
4639
  ),
4640
4640
  /* @__PURE__ */ g(bt, { checked: y, onChange: ($) => W($.target.checked), children: "自动滚动" }),
4641
- /* @__PURE__ */ fe(ke, { align: "center", children: [
4641
+ /* @__PURE__ */ de(_e, { align: "center", children: [
4642
4642
  /* @__PURE__ */ g("span", { className: "and-table-column-setting-label", children: "表格" }),
4643
4643
  /* @__PURE__ */ g(
4644
4644
  Pn,
@@ -4652,8 +4652,8 @@ const Qt = 420, Kn = 440, va = ({
4652
4652
  )
4653
4653
  ] })
4654
4654
  ] }) }),
4655
- /* @__PURE__ */ g("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */ fe("table", { className: "and-table-column-setting-table", children: [
4656
- /* @__PURE__ */ g("thead", { children: /* @__PURE__ */ fe("tr", { children: [
4655
+ /* @__PURE__ */ g("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */ de("table", { className: "and-table-column-setting-table", children: [
4656
+ /* @__PURE__ */ g("thead", { children: /* @__PURE__ */ de("tr", { children: [
4657
4657
  /* @__PURE__ */ g("th", { className: "and-table-column-setting-th-drag", children: "排序" }),
4658
4658
  /* @__PURE__ */ g("th", { className: "and-table-column-setting-th-name", children: "列名/可见" }),
4659
4659
  /* @__PURE__ */ g("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
@@ -4661,7 +4661,7 @@ const Qt = 420, Kn = 440, va = ({
4661
4661
  ] }) }),
4662
4662
  /* @__PURE__ */ g("tbody", { children: h.map(($, B) => {
4663
4663
  const F = typeof $.width == "number" ? $.width : null, P = $.width === "auto" || $.width === void 0 && F === null;
4664
- return /* @__PURE__ */ fe(
4664
+ return /* @__PURE__ */ de(
4665
4665
  "tr",
4666
4666
  {
4667
4667
  className: `and-table-column-setting-row ${N === B ? "and-table-column-setting-row-dragging" : ""}`,
@@ -4671,11 +4671,11 @@ const Qt = 420, Kn = 440, va = ({
4671
4671
  onDragEnd: J,
4672
4672
  children: [
4673
4673
  /* @__PURE__ */ g("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ g("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ g(hi, {}) }) }),
4674
- /* @__PURE__ */ fe("td", { className: "and-table-column-setting-td-name", children: [
4674
+ /* @__PURE__ */ de("td", { className: "and-table-column-setting-td-name", children: [
4675
4675
  /* @__PURE__ */ g(bt, { checked: $.visible, onChange: () => _($.key) }),
4676
4676
  /* @__PURE__ */ g("span", { className: "and-table-column-setting-title", title: $.title, children: $.title })
4677
4677
  ] }),
4678
- /* @__PURE__ */ g("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ fe("div", { className: "and-table-column-setting-width", children: [
4678
+ /* @__PURE__ */ g("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ de("div", { className: "and-table-column-setting-width", children: [
4679
4679
  /* @__PURE__ */ g(
4680
4680
  "span",
4681
4681
  {
@@ -4710,7 +4710,7 @@ const Qt = 420, Kn = 440, va = ({
4710
4710
  }
4711
4711
  )
4712
4712
  ] }) }),
4713
- /* @__PURE__ */ g("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ fe(ke, { className: "and-table-column-setting-fix", children: [
4713
+ /* @__PURE__ */ g("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ de(_e, { className: "and-table-column-setting-fix", children: [
4714
4714
  /* @__PURE__ */ g(
4715
4715
  "span",
4716
4716
  {
@@ -4754,9 +4754,9 @@ const Qt = 420, Kn = 440, va = ({
4754
4754
  "dataSetField"
4755
4755
  ], as = (t) => {
4756
4756
  const { id: e, sessionId: n } = t, i = E(
4757
- (Z) => {
4758
- var he;
4759
- return n && e ? ((he = Z.propsStore[`${n}_props`]) == null ? void 0 : he[e]) ?? null : null;
4757
+ (X) => {
4758
+ var me;
4759
+ return n && e ? ((me = X.propsStore[`${n}_props`]) == null ? void 0 : me[e]) ?? null : null;
4760
4760
  }
4761
4761
  ), r = f(
4762
4762
  () => Ve(
@@ -4797,176 +4797,176 @@ const Qt = 420, Kn = 440, va = ({
4797
4797
  columnSettingOpenKey: j,
4798
4798
  columnSettingsKey: R,
4799
4799
  ...J
4800
- } = r, V = E((Z) => Z.addCommand), $ = E((Z) => Z.getDataSet), B = E((Z) => Z.setDataSet), [F, P] = be([]), H = Re(null), [ie, le] = be(void 0), de = L((Z, he) => {
4801
- if (Z == null) return he;
4802
- if (typeof Z == "string")
4800
+ } = r, V = E((X) => X.addCommand), $ = E((X) => X.getDataSet), B = E((X) => X.setDataSet), [F, P] = be([]), H = Re(null), [re, ce] = be(void 0), ue = L((X, me) => {
4801
+ if (X == null) return me;
4802
+ if (typeof X == "string")
4803
4803
  try {
4804
- return JSON.parse(Z) ?? he;
4804
+ return JSON.parse(X) ?? me;
4805
4805
  } catch {
4806
- return he;
4806
+ return me;
4807
4807
  }
4808
- return Z;
4809
- }, []), ye = f(() => Array.isArray(l) ? l : [], [l]), ae = f(() => Array.isArray(d) ? d : [], [d]), ee = f(
4808
+ return X;
4809
+ }, []), ge = f(() => Array.isArray(l) ? l : [], [l]), oe = f(() => Array.isArray(d) ? d : [], [d]), ee = f(
4810
4810
  () => ({
4811
- dataSet: oe(n, a),
4812
- pagination: a ? oe(n, `${a}_pagination`) : void 0,
4813
- selected: a ? oe(n, `${a}_selected`) : void 0,
4814
- columnSettingOpen: a && n ? oe(n, `${a}_columnSettingOpen`) : void 0,
4815
- columnSettings: a && n ? oe(n, `${a}_columnSettings`) : void 0
4811
+ dataSet: ie(n, a),
4812
+ pagination: a ? ie(n, `${a}_pagination`) : void 0,
4813
+ selected: a ? ie(n, `${a}_selected`) : void 0,
4814
+ columnSettingOpen: a && n ? ie(n, `${a}_columnSettingOpen`) : void 0,
4815
+ columnSettings: a && n ? ie(n, `${a}_columnSettings`) : void 0
4816
4816
  }),
4817
4817
  [n, a]
4818
- ), { style: re, className: X, ...I } = J, ne = f(() => {
4818
+ ), { style: ne, className: he, ...Z } = J, I = f(() => {
4819
4819
  if (D) return D;
4820
- let Z = I["scroll-x"], he = I["scroll-y"];
4821
- if (String(Z) === "true" ? Z = !0 : String(Z) === "false" || Z === "__unset__" ? Z = void 0 : Z === "max-content" && (Z = "max-content"), (he === "" || he === null || he === void 0) && (he = void 0), Z !== void 0 || he !== void 0) return { x: Z, y: he };
4822
- }, [D, I["scroll-x"], I["scroll-y"]]), we = E(
4823
- (Z) => {
4824
- var he;
4825
- return ee.columnSettingOpen ? ((he = Z.dataSets[ee.columnSettingOpen]) == null ? void 0 : he.value) === !0 : !1;
4826
- }
4827
- ), Me = 420;
4820
+ let X = Z["scroll-x"], me = Z["scroll-y"];
4821
+ if (String(X) === "true" ? X = !0 : String(X) === "false" || X === "__unset__" ? X = void 0 : X === "max-content" && (X = "max-content"), (me === "" || me === null || me === void 0) && (me = void 0), X !== void 0 || me !== void 0) return { x: X, y: me };
4822
+ }, [D, Z["scroll-x"], Z["scroll-y"]]), xe = E(
4823
+ (X) => {
4824
+ var me;
4825
+ return ee.columnSettingOpen ? ((me = X.dataSets[ee.columnSettingOpen]) == null ? void 0 : me.value) === !0 : !1;
4826
+ }
4827
+ ), De = 420;
4828
4828
  In(() => {
4829
- if (!we || !H.current) return;
4830
- const Z = H.current.querySelector(".ant-table-thead") || H.current.querySelector(".ant-table-header");
4831
- if (!Z) return;
4832
- const he = Z.getBoundingClientRect();
4833
- le({
4834
- x: he.right - Me,
4835
- y: he.bottom + 8
4829
+ if (!xe || !H.current) return;
4830
+ const X = H.current.querySelector(".ant-table-thead") || H.current.querySelector(".ant-table-header");
4831
+ if (!X) return;
4832
+ const me = X.getBoundingClientRect();
4833
+ ce({
4834
+ x: me.right - De,
4835
+ y: me.bottom + 8
4836
4836
  });
4837
- }, [we]);
4838
- const ce = E((Z) => {
4837
+ }, [xe]);
4838
+ const ae = E((X) => {
4839
4839
  var $e;
4840
- const he = ee.columnSettings ? ($e = Z.dataSets[ee.columnSettings]) == null ? void 0 : $e.value : void 0;
4841
- return typeof he == "object" && he !== null ? he : void 0;
4842
- }), xe = Ri(ee.dataSet, c), Te = f(() => ee.dataSet ? xe : (b == null ? void 0 : b.data) || [], [ee.dataSet, xe, b == null ? void 0 : b.data]), ve = f(() => de(z, {}), [z, de]), U = ve && Object.keys(ve).length > 0, G = f(
4840
+ const me = ee.columnSettings ? ($e = X.dataSets[ee.columnSettings]) == null ? void 0 : $e.value : void 0;
4841
+ return typeof me == "object" && me !== null ? me : void 0;
4842
+ }), we = Ri(ee.dataSet, c), ke = f(() => ee.dataSet ? we : (b == null ? void 0 : b.data) || [], [ee.dataSet, we, b == null ? void 0 : b.data]), ve = f(() => ue(z, {}), [z, ue]), U = ve && Object.keys(ve).length > 0, G = f(
4843
4843
  () => U ? { components: { Table: ve } } : void 0,
4844
4844
  [U, ve]
4845
- ), me = E(
4846
- (Z) => ee.pagination ? Z.dataSets[ee.pagination] : void 0
4847
- ), q = f(() => ee.pagination ? $(ee.pagination, "") || {} : {}, [ee.pagination, $, me]), se = f(() => !(x === !1 || typeof x == "object" && (x == null ? void 0 : x.visible) === !1), [x]), pe = ia(H, ne == null ? void 0 : ne.y, se), Q = f(() => {
4845
+ ), fe = E(
4846
+ (X) => ee.pagination ? X.dataSets[ee.pagination] : void 0
4847
+ ), q = f(() => ee.pagination ? $(ee.pagination, "") || {} : {}, [ee.pagination, $, fe]), se = f(() => !(x === !1 || typeof x == "object" && (x == null ? void 0 : x.visible) === !1), [x]), pe = ia(H, I == null ? void 0 : I.y, se), Q = f(() => {
4848
4848
  if (!se) return !1;
4849
- const Z = typeof x == "object" ? x : {}, he = J || {}, $e = Z.showSizeChanger ?? he["pagination-showSizeChanger"] ?? !0, _e = Z.showQuickJumper ?? he["pagination-showQuickJumper"] ?? !1, Ee = Z.simple ?? he["pagination-simple"] ?? !1, qe = Z.defaultPageSize ?? he["pagination-defaultPageSize"] ?? 10, Je = Z.pageSizeOptions ?? he["pagination-pageSizeOptions"] ?? "10,20,50,100", Ht = typeof Je == "string" ? Je.split(",").map((ct) => parseInt(String(ct).trim(), 10) || 10).filter((ct) => !isNaN(ct)) : Array.isArray(Je) ? Je : [10, 20, 50, 100];
4849
+ const X = typeof x == "object" ? x : {}, me = J || {}, $e = X.showSizeChanger ?? me["pagination-showSizeChanger"] ?? !0, Ee = X.showQuickJumper ?? me["pagination-showQuickJumper"] ?? !1, Oe = X.simple ?? me["pagination-simple"] ?? !1, qe = X.defaultPageSize ?? me["pagination-defaultPageSize"] ?? 10, Je = X.pageSizeOptions ?? me["pagination-pageSizeOptions"] ?? "10,20,50,100", Ht = typeof Je == "string" ? Je.split(",").map((ct) => parseInt(String(ct).trim(), 10) || 10).filter((ct) => !isNaN(ct)) : Array.isArray(Je) ? Je : [10, 20, 50, 100];
4850
4850
  return {
4851
4851
  ...q,
4852
4852
  showSizeChanger: $e,
4853
- showQuickJumper: _e,
4854
- simple: Ee,
4853
+ showQuickJumper: Ee,
4854
+ simple: Oe,
4855
4855
  defaultPageSize: qe,
4856
4856
  pageSizeOptions: Ht,
4857
- showTotal: (ct, yt) => (Z.showTotal || "共 ${total} 条").replace("${total}", String(ct)).replace("${range[0]}", String(yt[0])).replace("${range[1]}", String(yt[1])).replace("${range}", `${yt[0]}-${yt[1]}`),
4857
+ showTotal: (ct, yt) => (X.showTotal || "共 ${total} 条").replace("${total}", String(ct)).replace("${range[0]}", String(yt[0])).replace("${range[1]}", String(yt[1])).replace("${range}", `${yt[0]}-${yt[1]}`),
4858
4858
  onChange: (ct, yt) => {
4859
4859
  ee.pagination && B(ee.pagination, "", { ...q, current: ct, pageSize: yt }), u && n && V(n, te(u, null));
4860
4860
  },
4861
4861
  hideOnSinglePage: !1
4862
4862
  };
4863
- }, [se, x, J, q, ee.pagination, B, u, n, V]), Y = L((Z, he) => {
4864
- n && V(n, te(Z.action, { ...he }));
4865
- }, [n, V]), ue = L(
4866
- (Z, he) => {
4867
- n && Z && V(n, te(Z, he));
4863
+ }, [se, x, J, q, ee.pagination, B, u, n, V]), Y = L((X, me) => {
4864
+ n && V(n, te(X.action, { ...me }));
4865
+ }, [n, V]), le = L(
4866
+ (X, me) => {
4867
+ n && X && V(n, te(X, me));
4868
4868
  },
4869
4869
  [n, V]
4870
- ), ge = f(() => ye.map((Z) => {
4871
- let he = !1;
4872
- Z.fixed === !0 || Z.fixed === "left" ? he = "left" : Z.fixed === "right" && (he = "right");
4873
- const $e = Z.width;
4870
+ ), ye = f(() => ge.map((X) => {
4871
+ let me = !1;
4872
+ X.fixed === !0 || X.fixed === "left" ? me = "left" : X.fixed === "right" && (me = "right");
4873
+ const $e = X.width;
4874
4874
  return {
4875
- key: String(Z.key ?? Z.dataIndex ?? ""),
4876
- title: typeof Z.title == "string" ? Z.title : "列",
4877
- visible: Z.visible !== !1,
4878
- fixed: he,
4875
+ key: String(X.key ?? X.dataIndex ?? ""),
4876
+ title: typeof X.title == "string" ? X.title : "列",
4877
+ visible: X.visible !== !1,
4878
+ fixed: me,
4879
4879
  width: typeof $e == "number" ? $e : "auto"
4880
4880
  };
4881
- }).filter((Z) => Z.key), [ye]), Ae = y === !0, De = !1, Ie = w === "small" || w === "large" ? w : "middle", { rowIndexVisible: Ye, items: at, scrollX: mt, size: yn } = f(() => pa(
4882
- ce,
4883
- ge,
4881
+ }).filter((X) => X.key), [ge]), Ae = y === !0, Ce = !1, Ie = w === "small" || w === "large" ? w : "middle", { rowIndexVisible: Ye, items: at, scrollX: mt, size: yn } = f(() => pa(
4882
+ ae,
4883
+ ye,
4884
4884
  Ae,
4885
4885
  Ie
4886
- ), [ce, ge, Ae, Ie]), ht = !!(a && n), pr = f(() => {
4886
+ ), [ae, ye, Ae, Ie]), ht = !!(a && n), pr = f(() => {
4887
4887
  if (mt !== void 0) return mt;
4888
- const Z = ne == null ? void 0 : ne.x;
4889
- return Z === !0 || typeof Z == "number" && Number.isFinite(Z) && Z > 0 ? !0 : Z === "max-content" ? !1 : De;
4890
- }, [mt, ne == null ? void 0 : ne.x, De]), gn = f(() => ht ? mt !== void 0 ? mt ? !0 : "max-content" : (ne == null ? void 0 : ne.x) !== void 0 ? ne.x : "max-content" : ne == null ? void 0 : ne.x, [ht, mt, ne == null ? void 0 : ne.x, De]), Mt = f(() => {
4891
- const Z = [];
4892
- Ye && Z.push({
4888
+ const X = I == null ? void 0 : I.x;
4889
+ return X === !0 || typeof X == "number" && Number.isFinite(X) && X > 0 ? !0 : X === "max-content" ? !1 : Ce;
4890
+ }, [mt, I == null ? void 0 : I.x, Ce]), gn = f(() => ht ? mt !== void 0 ? mt ? !0 : "max-content" : (I == null ? void 0 : I.x) !== void 0 ? I.x : "max-content" : I == null ? void 0 : I.x, [ht, mt, I == null ? void 0 : I.x, Ce]), Mt = f(() => {
4891
+ const X = [];
4892
+ Ye && X.push({
4893
4893
  title: "序号",
4894
4894
  key: "rowIndex",
4895
4895
  width: 60,
4896
4896
  align: "center",
4897
- render: (_e, Ee, qe) => {
4897
+ render: (Ee, Oe, qe) => {
4898
4898
  const Je = q.current || 1, Ht = q.pageSize || 10;
4899
4899
  return (Je - 1) * Ht + qe + 1;
4900
4900
  }
4901
4901
  });
4902
- const he = new Map(ye.map((_e) => [String(_e.key ?? _e.dataIndex ?? ""), _e]));
4903
- return at.filter((_e) => _e.visible).forEach((_e) => {
4904
- const Ee = he.get(_e.key);
4905
- if (!Ee) return;
4906
- const qe = _e.fixed || void 0, Je = _e.width === "auto" || _e.width === void 0 ? void 0 : _e.width;
4907
- Z.push(
4902
+ const me = new Map(ge.map((Ee) => [String(Ee.key ?? Ee.dataIndex ?? ""), Ee]));
4903
+ return at.filter((Ee) => Ee.visible).forEach((Ee) => {
4904
+ const Oe = me.get(Ee.key);
4905
+ if (!Oe) return;
4906
+ const qe = Ee.fixed || void 0, Je = Ee.width === "auto" || Ee.width === void 0 ? void 0 : Ee.width;
4907
+ X.push(
4908
4908
  ya(
4909
4909
  {
4910
- ...Ee,
4911
- dataIndex: Ee.dataIndex || Ee.key,
4912
- fixed: qe || Ee.fixed,
4913
- width: Je ?? Ee.width
4910
+ ...Oe,
4911
+ dataIndex: Oe.dataIndex || Oe.key,
4912
+ fixed: qe || Oe.fixed,
4913
+ width: Je ?? Oe.width
4914
4914
  },
4915
- { runAction: ue }
4915
+ { runAction: le }
4916
4916
  )
4917
4917
  );
4918
- }), m !== !1 && ae.length > 0 && Z.push({
4918
+ }), m !== !1 && oe.length > 0 && X.push({
4919
4919
  title: "操作",
4920
4920
  key: "action",
4921
- render: (_e, Ee) => /* @__PURE__ */ g(ke, { children: ae.map((qe, Je) => /* @__PURE__ */ g(Wn, { title: qe.tooltip, children: /* @__PURE__ */ g("a", { onClick: () => Y(qe, Ee), style: { marginRight: 5 }, children: qe.title }) }, Je)) })
4922
- }), Z;
4921
+ render: (Ee, Oe) => /* @__PURE__ */ g(_e, { children: oe.map((qe, Je) => /* @__PURE__ */ g(Wn, { title: qe.tooltip, children: /* @__PURE__ */ g("a", { onClick: () => Y(qe, Oe), style: { marginRight: 5 }, children: qe.title }) }, Je)) })
4922
+ }), X;
4923
4923
  }, [
4924
- ye,
4925
- ae,
4924
+ ge,
4925
+ oe,
4926
4926
  Ye,
4927
4927
  at,
4928
4928
  m,
4929
4929
  q,
4930
4930
  Y,
4931
- ue
4931
+ le
4932
4932
  ]), vr = L(() => {
4933
4933
  ee.columnSettingOpen && B(ee.columnSettingOpen, "", !1);
4934
4934
  }, [ee.columnSettingOpen, B]), br = L(
4935
- (Z) => {
4936
- ee.columnSettings && B(ee.columnSettings, "value", Z);
4935
+ (X) => {
4936
+ ee.columnSettings && B(ee.columnSettings, "value", X);
4937
4937
  },
4938
4938
  [ee.columnSettings, B]
4939
4939
  ), Sr = f(() => {
4940
4940
  if (!S && p)
4941
4941
  return {
4942
4942
  selectedRowKeys: F,
4943
- onChange: (Z, he, $e) => {
4944
- P(Z), ee.selected && B(ee.selected, "", Z), h != null && h.trim() && n && V(n, te(h.trim(), {
4945
- selectedRowKeys: Z,
4946
- selectedRows: he,
4943
+ onChange: (X, me, $e) => {
4944
+ P(X), ee.selected && B(ee.selected, "", X), h != null && h.trim() && n && V(n, te(h.trim(), {
4945
+ selectedRowKeys: X,
4946
+ selectedRows: me,
4947
4947
  info: $e
4948
4948
  }));
4949
4949
  }
4950
4950
  };
4951
- }, [p, S, F, ee.selected, B, h, n, V]), pn = L((Z) => {
4951
+ }, [p, S, F, ee.selected, B, h, n, V]), pn = L((X) => {
4952
4952
  if (!S) return;
4953
- const $e = [Z[s]];
4954
- P($e), ee.selected && B(ee.selected, "", $e), h != null && h.trim() && n && V(n, te(h.trim(), { record: Z, selectedRowKeys: $e }));
4955
- }, [S, h, n, s, ee.selected, B, V]), wr = L((Z) => S && F.includes(Z[s]) ? "ant-table-row-selected" : "", [S, s, F]), xr = L((Z) => S ? { onClick: () => pn(Z), style: { cursor: "pointer" } } : {}, [S, pn]), Ar = f(() => {
4956
- if (!ne && !ht) return;
4957
- const Z = gn, he = (ne == null ? void 0 : ne.y) === "100%" ? pe : ne == null ? void 0 : ne.y;
4958
- return Z !== void 0 || he !== void 0 ? { x: Z, y: he } : ne ? ne.y === "100%" ? { x: ne.x, y: pe } : ne : void 0;
4959
- }, [ne, pe, ht, gn]), { titleSlot: $t, summarySlot: Rt, footerSlot: vn, otherChildren: Dr } = f(() => {
4960
- let Z = null, he = null, $e = null;
4961
- const _e = [];
4962
- return Le.Children.forEach(W, (Ee) => {
4963
- if (!Le.isValidElement(Ee)) {
4964
- _e.push(Ee);
4953
+ const $e = [X[s]];
4954
+ P($e), ee.selected && B(ee.selected, "", $e), h != null && h.trim() && n && V(n, te(h.trim(), { record: X, selectedRowKeys: $e }));
4955
+ }, [S, h, n, s, ee.selected, B, V]), wr = L((X) => S && F.includes(X[s]) ? "ant-table-row-selected" : "", [S, s, F]), xr = L((X) => S ? { onClick: () => pn(X), style: { cursor: "pointer" } } : {}, [S, pn]), Ar = f(() => {
4956
+ if (!I && !ht) return;
4957
+ const X = gn, me = (I == null ? void 0 : I.y) === "100%" ? pe : I == null ? void 0 : I.y;
4958
+ return X !== void 0 || me !== void 0 ? { x: X, y: me } : I ? I.y === "100%" ? { x: I.x, y: pe } : I : void 0;
4959
+ }, [I, pe, ht, gn]), { titleSlot: $t, summarySlot: Rt, footerSlot: vn, otherChildren: Dr } = f(() => {
4960
+ let X = null, me = null, $e = null;
4961
+ const Ee = [];
4962
+ return Le.Children.forEach(W, (Oe) => {
4963
+ if (!Le.isValidElement(Oe)) {
4964
+ Ee.push(Oe);
4965
4965
  return;
4966
4966
  }
4967
- const qe = Ee.props["data-slot-type"];
4968
- qe === "title" ? Z = Ee : qe === "summary" ? he = Ee : qe === "footer" ? $e = Ee : _e.push(Ee);
4969
- }), { titleSlot: Z, summarySlot: he, footerSlot: $e, otherChildren: _e };
4967
+ const qe = Oe.props["data-slot-type"];
4968
+ qe === "title" ? X = Oe : qe === "summary" ? me = Oe : qe === "footer" ? $e = Oe : Ee.push(Oe);
4969
+ }), { titleSlot: X, summarySlot: me, footerSlot: $e, otherChildren: Ee };
4970
4970
  }, [W]), Cr = f(() => {
4971
4971
  if (!$t) {
4972
4972
  if (M) return M;
@@ -4981,9 +4981,9 @@ const Qt = 420, Kn = 440, va = ({
4981
4981
  }, [T, Rt, k, Mt.length, o]), bn = /* @__PURE__ */ g(
4982
4982
  Lr,
4983
4983
  {
4984
- ...I,
4984
+ ...Z,
4985
4985
  columns: Mt,
4986
- dataSource: Te,
4986
+ dataSource: ke,
4987
4987
  rowKey: s,
4988
4988
  rowSelection: Sr,
4989
4989
  rowClassName: wr,
@@ -4999,28 +4999,28 @@ const Qt = 420, Kn = 440, va = ({
4999
4999
  onRow: xr
5000
5000
  }
5001
5001
  );
5002
- return /* @__PURE__ */ fe(
5002
+ return /* @__PURE__ */ de(
5003
5003
  Yn,
5004
5004
  {
5005
5005
  ref: H,
5006
5006
  vertical: !0,
5007
- style: { width: "100%", height: "100%", ...re },
5008
- className: X,
5007
+ style: { width: "100%", height: "100%", ...ne },
5008
+ className: he,
5009
5009
  children: [
5010
5010
  $t && /* @__PURE__ */ g("div", { "data-table-slot": "title", children: $t }),
5011
- /* @__PURE__ */ fe("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
5011
+ /* @__PURE__ */ de("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
5012
5012
  S && (() => {
5013
- const Z = (ve == null ? void 0 : ve.rowSelectedBg) || "#e6f4ff", he = (ve == null ? void 0 : ve.rowSelectedHoverBg) || (ve == null ? void 0 : ve.rowSelectedBg) || "#bae0ff", $e = ve == null ? void 0 : ve.rowSelectedColor, _e = (ve == null ? void 0 : ve.rowSelectedLinkColor) ?? $e, Ee = (ve == null ? void 0 : ve.rowSelectedLinkHoverColor) ?? _e;
5013
+ const X = (ve == null ? void 0 : ve.rowSelectedBg) || "#e6f4ff", me = (ve == null ? void 0 : ve.rowSelectedHoverBg) || (ve == null ? void 0 : ve.rowSelectedBg) || "#bae0ff", $e = ve == null ? void 0 : ve.rowSelectedColor, Ee = (ve == null ? void 0 : ve.rowSelectedLinkColor) ?? $e, Oe = (ve == null ? void 0 : ve.rowSelectedLinkHoverColor) ?? Ee;
5014
5014
  return /* @__PURE__ */ g("style", { children: `
5015
5015
  .ant-table-row-selected > td {
5016
- background: ${Z} !important;
5016
+ background: ${X} !important;
5017
5017
  ${$e ? `color: ${$e};` : ""}
5018
5018
  }
5019
5019
  .ant-table-row-selected:hover > td {
5020
- background: ${he} !important;
5020
+ background: ${me} !important;
5021
5021
  }
5022
- ${_e ? `.ant-table-row-selected > td a { color: ${_e}; }` : ""}
5023
- ${Ee ? `.ant-table-row-selected > td a:hover { color: ${Ee}; }` : ""}
5022
+ ${Ee ? `.ant-table-row-selected > td a { color: ${Ee}; }` : ""}
5023
+ ${Oe ? `.ant-table-row-selected > td a:hover { color: ${Oe}; }` : ""}
5024
5024
  ` });
5025
5025
  })(),
5026
5026
  G ? /* @__PURE__ */ g(Ke, { theme: G, children: bn }) : bn
@@ -5031,14 +5031,14 @@ const Qt = 420, Kn = 440, va = ({
5031
5031
  ht && /* @__PURE__ */ g(
5032
5032
  va,
5033
5033
  {
5034
- open: we,
5035
- position: ie,
5034
+ open: xe,
5035
+ position: re,
5036
5036
  rowIndexVisible: Ye,
5037
5037
  columnItems: at,
5038
5038
  defaultRowIndexVisible: Ae,
5039
- defaultColumnItems: ge,
5039
+ defaultColumnItems: ye,
5040
5040
  scrollX: pr,
5041
- defaultScrollX: De,
5041
+ defaultScrollX: Ce,
5042
5042
  size: yn,
5043
5043
  defaultSize: Ie,
5044
5044
  onSave: br,
@@ -5070,13 +5070,13 @@ const Qt = 420, Kn = 440, va = ({
5070
5070
  index: u,
5071
5071
  ...x
5072
5072
  }) => {
5073
- const A = E((X) => X.addCommand), N = ft(et), w = u ?? (N == null ? void 0 : N.index), v = N == null ? void 0 : N.parentIndex, D = typeof o == "string" && o.trim() !== "", O = typeof a == "string" && a.trim() !== "", _ = D || O || d === "selectedCount", T = tt(
5073
+ const A = E((Z) => Z.addCommand), N = ft(et), w = u ?? (N == null ? void 0 : N.index), v = N == null ? void 0 : N.parentIndex, D = typeof o == "string" && o.trim() !== "", O = typeof a == "string" && a.trim() !== "", _ = D || O || d === "selectedCount", T = tt(
5074
5074
  _ ? o : void 0,
5075
5075
  _ ? a : void 0,
5076
5076
  e
5077
- ), C = e ?? T.sessionId, M = E((X) => X.getDataSet), k = E((X) => {
5077
+ ), C = e ?? T.sessionId, M = E((Z) => Z.getDataSet), k = E((Z) => {
5078
5078
  var I;
5079
- return !C || !t ? null : ((I = X.propsStore[`${C}_props`]) == null ? void 0 : I[t]) ?? null;
5079
+ return !C || !t ? null : ((I = Z.propsStore[`${C}_props`]) == null ? void 0 : I[t]) ?? null;
5080
5080
  }), K = f(
5081
5081
  () => d === "selectedCount" && a && !o ? a : _ ? T.dataSet : void 0,
5082
5082
  [d, a, o, T.dataSet, _]
@@ -5084,12 +5084,12 @@ const Qt = 420, Kn = 440, va = ({
5084
5084
  () => d === "selectedCount" ? "selectedCount" : _ ? T.dataSetField : void 0,
5085
5085
  [d, T.dataSetField, _]
5086
5086
  ), z = f(
5087
- () => oe(C, K),
5087
+ () => ie(C, K),
5088
5088
  [C, K]
5089
- ), j = E((X) => {
5089
+ ), j = E((Z) => {
5090
5090
  if (!z) return;
5091
5091
  const I = wt(z).baseName;
5092
- return X.dataSets[I];
5092
+ return Z.dataSets[I];
5093
5093
  }), { options: R } = Ot(d), J = f(() => {
5094
5094
  if (z && W)
5095
5095
  return M(z, W);
@@ -5102,72 +5102,78 @@ const Qt = 420, Kn = 440, va = ({
5102
5102
  return {};
5103
5103
  }
5104
5104
  return m;
5105
- }, [m]), $ = (X) => X == null || X === "" || typeof X == "string" && X.trim() === "", B = f(() => n ? i : J != null && J !== "" ? $(J) && p ? i : J : (k == null ? void 0 : k.content) !== void 0 ? k.content : i, [n, J, k == null ? void 0 : k.content, i, p]), F = f(() => {
5105
+ }, [m]), $ = (Z) => Z == null || Z === "" || typeof Z == "string" && Z.trim() === "", B = f(() => n ? i : J != null && J !== "" ? $(J) && p ? i : J : (k == null ? void 0 : k.content) !== void 0 ? k.content : i, [n, J, k == null ? void 0 : k.content, i, p]), F = f(() => {
5106
5106
  if (d && R.length > 0 && B !== void 0 && B !== null) {
5107
- const X = Qe(R, B);
5108
- return (X == null ? void 0 : X.label) ?? B;
5107
+ const Z = Qe(R, B);
5108
+ return (Z == null ? void 0 : Z.label) ?? B;
5109
5109
  }
5110
5110
  return B;
5111
5111
  }, [d, R, B]), P = f(() => {
5112
5112
  if (n)
5113
5113
  return F;
5114
- const X = (k == null ? void 0 : k.formatType) || b;
5115
- return X && F !== void 0 && F !== null ? Vo(F, X, V) : F;
5114
+ const Z = (k == null ? void 0 : k.formatType) || b;
5115
+ return Z && F !== void 0 && F !== null ? Vo(F, Z, V) : F;
5116
5116
  }, [n, F, b, V, k == null ? void 0 : k.formatType]), H = f(() => {
5117
- const X = { ...x };
5117
+ const Z = { ...x };
5118
5118
  return k && typeof k == "object" && Object.keys(k).forEach((I) => {
5119
- !["content", "formatType", "formatValue", "clickAction", "stopClickPropagation"].includes(I) && k[I] !== void 0 && k[I] !== null && (X[I] = k[I]);
5120
- }), X;
5121
- }, [x, k]), ie = f(
5119
+ !["content", "formatType", "formatValue", "clickAction", "stopClickPropagation"].includes(I) && k[I] !== void 0 && k[I] !== null && (Z[I] = k[I]);
5120
+ }), Z;
5121
+ }, [x, k]), re = f(
5122
5122
  () => (k == null ? void 0 : k.clickAction) ?? s,
5123
5123
  [k == null ? void 0 : k.clickAction, s]
5124
- ), le = f(() => {
5125
- const X = (k == null ? void 0 : k.stopClickPropagation) ?? y;
5126
- return X !== void 0 ? X : !!ie;
5127
- }, [k == null ? void 0 : k.stopClickPropagation, y, ie]), de = (k == null ? void 0 : k.color) ?? l, ye = Pt(de), ae = f(() => {
5124
+ ), ce = (k == null ? void 0 : k.develop) ?? n, ue = f(() => {
5125
+ if (ce) return !1;
5126
+ const Z = (k == null ? void 0 : k.stopClickPropagation) ?? y;
5127
+ return Z !== void 0 ? Z : !!re;
5128
+ }, [
5129
+ ce,
5130
+ k == null ? void 0 : k.stopClickPropagation,
5131
+ y,
5132
+ re
5133
+ ]), ge = (k == null ? void 0 : k.color) ?? l, oe = Pt(ge), ee = f(() => {
5128
5134
  if (!h) return;
5129
- let X = h;
5135
+ let Z = h;
5130
5136
  if (typeof h == "string")
5131
5137
  try {
5132
- X = JSON.parse(h);
5138
+ Z = JSON.parse(h);
5133
5139
  } catch {
5134
5140
  return;
5135
5141
  }
5136
- if (!X || typeof X != "object") return;
5142
+ if (!Z || typeof Z != "object") return;
5137
5143
  const I = {};
5138
- return Object.entries(X).forEach(([ne, we]) => {
5139
- we !== "" && we !== void 0 && we !== null && (I[ne] = we);
5144
+ return Object.entries(Z).forEach(([xe, De]) => {
5145
+ De !== "" && De !== void 0 && De !== null && (I[xe] = De);
5140
5146
  }), Object.keys(I).length > 0 ? I : void 0;
5141
- }, [h]), ee = f(() => {
5142
- const X = { width: "100%" }, I = (k == null ? void 0 : k.fontSize) ?? c;
5147
+ }, [h]), ne = f(() => {
5148
+ const Z = { width: "100%" }, I = (k == null ? void 0 : k.fontSize) ?? c;
5143
5149
  if (I) {
5144
- const ne = I && !String(I).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${I}px` : I;
5145
- X.fontSize = ne;
5150
+ const xe = I && !String(I).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${I}px` : I;
5151
+ Z.fontSize = xe;
5146
5152
  }
5147
- return ye && (X.color = ye), X;
5148
- }, [c, ye, k == null ? void 0 : k.fontSize]), re = /* @__PURE__ */ g(
5153
+ return oe && (Z.color = oe), Z;
5154
+ }, [c, oe, k == null ? void 0 : k.fontSize]), he = /* @__PURE__ */ g(
5149
5155
  Sa,
5150
5156
  {
5151
5157
  ...H,
5152
- style: { ...ee, ...S, ...H.style },
5153
- onClick: (X) => {
5154
- if (typeof H.onClick == "function" && H.onClick(X), ie && C) {
5155
- const { actionName: I, arg: ne } = or(ie, {
5158
+ style: { ...ne, ...S, ...H.style },
5159
+ onClick: (Z) => {
5160
+ if (typeof H.onClick == "function" && H.onClick(Z), re && C) {
5161
+ const { actionName: I, arg: xe } = or(re, {
5156
5162
  id: t,
5157
5163
  index: w,
5158
5164
  parentIndex: v,
5159
5165
  dataSet: K,
5160
5166
  dataSetField: W,
5161
5167
  ...H
5162
- }), we = te(I, ne);
5163
- A(C, we);
5168
+ }), De = te(I, xe);
5169
+ A(C, De);
5164
5170
  }
5165
- le && X.stopPropagation();
5171
+ ue && Z.stopPropagation();
5166
5172
  },
5167
5173
  children: P != null && P !== "" ? String(P) : r
5168
5174
  }
5169
5175
  );
5170
- return ae ? /* @__PURE__ */ g(Ke, { theme: { token: ae }, children: re }) : re;
5176
+ return ee ? /* @__PURE__ */ g(Ke, { theme: { token: ee }, children: he }) : he;
5171
5177
  }, { Title: wa } = fn, ss = ({
5172
5178
  id: t,
5173
5179
  sessionId: e,
@@ -5182,7 +5188,7 @@ const Qt = 420, Kn = 440, va = ({
5182
5188
  ...b
5183
5189
  }) => {
5184
5190
  const m = E((w) => w.getDataSet), p = E((w) => w.getProps), S = f(
5185
- () => oe(e, o),
5191
+ () => ie(e, o),
5186
5192
  [e, o]
5187
5193
  ), h = f(() => e && t ? p(e, t) : null, [e, t, p]), s = f(() => {
5188
5194
  if (S && a)
@@ -5210,7 +5216,7 @@ const Qt = 420, Kn = 440, va = ({
5210
5216
  ...d
5211
5217
  }) => {
5212
5218
  const b = E((N) => N.getDataSet), m = E((N) => N.getProps), p = f(
5213
- () => oe(e, o),
5219
+ () => ie(e, o),
5214
5220
  [e, o]
5215
5221
  ), S = f(() => e && t ? m(e, t) : null, [e, t, m]), h = f(() => {
5216
5222
  if (p && a)
@@ -5251,7 +5257,7 @@ const Qt = 420, Kn = 440, va = ({
5251
5257
  ...S
5252
5258
  }) => {
5253
5259
  const h = E((_) => _.addCommand), s = E((_) => _.getDataSet), y = E((_) => _.setDataSet), u = f(
5254
- () => oe(e, i),
5260
+ () => ie(e, i),
5255
5261
  [e, i]
5256
5262
  ), x = f(() => Aa(o), [o]), A = f(() => a && a.length > 0 ? n ? a.map((_) => ({ ..._, forceRender: !0 })) : a : x.length > 0 ? x.map((_, T) => ({
5257
5263
  key: _.key,
@@ -5324,16 +5330,16 @@ const Qt = 420, Kn = 440, va = ({
5324
5330
  ...W
5325
5331
  }) => {
5326
5332
  const z = E((q) => q.addCommand), j = E((q) => q.setDataSet), R = f(
5327
- () => oe(e, i),
5333
+ () => ie(e, i),
5328
5334
  [e, i]
5329
5335
  ), J = f(
5330
- () => i ? oe(e, `${i}_selected`) : void 0,
5336
+ () => i ? ie(e, `${i}_selected`) : void 0,
5331
5337
  [e, i]
5332
5338
  ), V = f(
5333
- () => i ? oe(e, `${i}_checked`) : void 0,
5339
+ () => i ? ie(e, `${i}_checked`) : void 0,
5334
5340
  [e, i]
5335
5341
  ), $ = f(
5336
- () => i ? oe(e, `${i}_expanded`) : void 0,
5342
+ () => i ? ie(e, `${i}_expanded`) : void 0,
5337
5343
  [e, i]
5338
5344
  ), B = E((q) => {
5339
5345
  if (!R) return;
@@ -5350,7 +5356,7 @@ const Qt = 420, Kn = 440, va = ({
5350
5356
  (q) => V ? q.getDataSet(V, "") : void 0
5351
5357
  ), H = E(
5352
5358
  (q) => $ ? q.getDataSet($, "") : void 0
5353
- ), ie = f(() => n ? B ?? C ?? [] : R ? B ?? [] : C ?? [], [n, R, B, C]), le = F, de = P, ye = H, ae = L(
5359
+ ), re = f(() => n ? B ?? C ?? [] : R ? B ?? [] : C ?? [], [n, R, B, C]), ce = F, ue = P, ge = H, oe = L(
5354
5360
  (q, se) => {
5355
5361
  if (y) {
5356
5362
  y(q, se);
@@ -5368,7 +5374,7 @@ const Qt = 420, Kn = 440, va = ({
5368
5374
  V && j(V, "", q), a && e && z(e, te(a, { checkedKeys: q }));
5369
5375
  },
5370
5376
  [u, V, e, j, a, z]
5371
- ), re = L(
5377
+ ), ne = L(
5372
5378
  (q, se) => {
5373
5379
  if (x) {
5374
5380
  x(q, se);
@@ -5377,7 +5383,7 @@ const Qt = 420, Kn = 440, va = ({
5377
5383
  $ && j($, "", q), c && e && z(e, te(c, { expandedKeys: q, expanded: se.expanded }));
5378
5384
  },
5379
5385
  [x, $, e, j, c, z]
5380
- ), X = L(
5386
+ ), he = L(
5381
5387
  (q) => {
5382
5388
  if (A) {
5383
5389
  A(q);
@@ -5386,7 +5392,7 @@ const Qt = 420, Kn = 440, va = ({
5386
5392
  l && e && z(e, te(l, q));
5387
5393
  },
5388
5394
  [A, l, e, z]
5389
- ), I = L(
5395
+ ), Z = L(
5390
5396
  (q) => {
5391
5397
  if (N) {
5392
5398
  N(q);
@@ -5395,7 +5401,7 @@ const Qt = 420, Kn = 440, va = ({
5395
5401
  d && e && z(e, te(d, q));
5396
5402
  },
5397
5403
  [N, d, e, z]
5398
- ), ne = L(
5404
+ ), I = L(
5399
5405
  (q) => {
5400
5406
  if (w) {
5401
5407
  w(q);
@@ -5404,7 +5410,7 @@ const Qt = 420, Kn = 440, va = ({
5404
5410
  b && e && z(e, te(b, q));
5405
5411
  },
5406
5412
  [w, b, e, z]
5407
- ), we = L(
5413
+ ), xe = L(
5408
5414
  (q) => {
5409
5415
  if (v) {
5410
5416
  v(q);
@@ -5413,7 +5419,7 @@ const Qt = 420, Kn = 440, va = ({
5413
5419
  m && e && z(e, te(m, q));
5414
5420
  },
5415
5421
  [v, m, e, z]
5416
- ), Me = L(
5422
+ ), De = L(
5417
5423
  (q) => {
5418
5424
  if (D) {
5419
5425
  D(q);
@@ -5422,7 +5428,7 @@ const Qt = 420, Kn = 440, va = ({
5422
5428
  p && e && z(e, te(p, q));
5423
5429
  },
5424
5430
  [D, p, e, z]
5425
- ), ce = L(
5431
+ ), ae = L(
5426
5432
  (q) => {
5427
5433
  if (O) {
5428
5434
  O(q);
@@ -5431,7 +5437,7 @@ const Qt = 420, Kn = 440, va = ({
5431
5437
  S && e && z(e, te(S, q));
5432
5438
  },
5433
5439
  [O, S, e, z]
5434
- ), xe = L(
5440
+ ), we = L(
5435
5441
  (q) => {
5436
5442
  if (_) {
5437
5443
  _(q);
@@ -5440,7 +5446,7 @@ const Qt = 420, Kn = 440, va = ({
5440
5446
  h && e && z(e, te(h, q));
5441
5447
  },
5442
5448
  [_, h, e, z]
5443
- ), Te = L(
5449
+ ), ke = L(
5444
5450
  (q, se) => {
5445
5451
  if (T) {
5446
5452
  T(q, se);
@@ -5458,31 +5464,31 @@ const Qt = 420, Kn = 440, va = ({
5458
5464
  }, [K]), U = f(() => {
5459
5465
  const q = {};
5460
5466
  return n && (q.motion = !1), ve && (q.components = { Tree: ve }), Object.keys(q).length > 0 ? q : void 0;
5461
- }, [n, ve]), me = /* @__PURE__ */ g(
5467
+ }, [n, ve]), fe = /* @__PURE__ */ g(
5462
5468
  Vr,
5463
5469
  {
5464
5470
  ...W,
5465
5471
  ...n ? { motion: !1 } : {},
5466
- treeData: ie,
5467
- ...J != null ? { selectedKeys: le ?? [] } : {},
5468
- ...V != null ? { checkedKeys: de ?? [] } : {},
5469
- ...$ != null ? { expandedKeys: ye ?? [] } : {},
5470
- onSelect: ae,
5472
+ treeData: re,
5473
+ ...J != null ? { selectedKeys: ce ?? [] } : {},
5474
+ ...V != null ? { checkedKeys: ue ?? [] } : {},
5475
+ ...$ != null ? { expandedKeys: ge ?? [] } : {},
5476
+ onSelect: oe,
5471
5477
  onCheck: ee,
5472
- onExpand: re,
5473
- onDragEnd: X,
5474
- onDragEnter: I,
5475
- onDragLeave: ne,
5476
- onDragOver: we,
5477
- onDragStart: Me,
5478
- onDrop: ce,
5479
- onRightClick: xe,
5480
- onLoad: Te,
5478
+ onExpand: ne,
5479
+ onDragEnd: he,
5480
+ onDragEnter: Z,
5481
+ onDragLeave: I,
5482
+ onDragOver: xe,
5483
+ onDragStart: De,
5484
+ onDrop: ae,
5485
+ onRightClick: we,
5486
+ onLoad: ke,
5481
5487
  styles: M,
5482
5488
  classNames: k
5483
5489
  }
5484
5490
  );
5485
- return U ? /* @__PURE__ */ g(Ke, { theme: U, children: me }) : me;
5491
+ return U ? /* @__PURE__ */ g(Ke, { theme: U, children: fe }) : fe;
5486
5492
  }, fs = ({
5487
5493
  id: t,
5488
5494
  sessionId: e,
@@ -5497,7 +5503,7 @@ const Qt = 420, Kn = 440, va = ({
5497
5503
  ...d
5498
5504
  }) => {
5499
5505
  const b = E((x) => x.getDataSet), m = E((x) => x.getProps), p = f(
5500
- () => oe(e, o),
5506
+ () => ie(e, o),
5501
5507
  [e, o]
5502
5508
  ), S = f(() => e && t ? m(e, t) : null, [e, t, m]), h = f(() => {
5503
5509
  if (p && a) return b(p, a);
@@ -5557,7 +5563,7 @@ const Qt = 420, Kn = 440, va = ({
5557
5563
  ...s
5558
5564
  }) => {
5559
5565
  const y = E((K) => K.addCommand), u = E((K) => K.getDataSet), x = E((K) => K.setDataSet), A = f(
5560
- () => oe(e, i),
5566
+ () => ie(e, i),
5561
5567
  [e, i]
5562
5568
  ), N = f(() => {
5563
5569
  if (A && r) return u(A, r);
@@ -5626,7 +5632,7 @@ const Qt = 420, Kn = 440, va = ({
5626
5632
  ...p
5627
5633
  }) => {
5628
5634
  const S = E((N) => N.addCommand), h = E((N) => N.setDataSet), s = f(
5629
- () => oe(e, i),
5635
+ () => ie(e, i),
5630
5636
  [e, i]
5631
5637
  ), y = f(() => {
5632
5638
  if (a) return a;
@@ -5689,7 +5695,7 @@ const ps = ({
5689
5695
  ...l
5690
5696
  }) => {
5691
5697
  const d = E((y) => y.getProps), b = f(
5692
- () => oe(e, i),
5698
+ () => ie(e, i),
5693
5699
  [e, i]
5694
5700
  ), m = E(
5695
5701
  (y) => b && r ? ka(y.dataSets, b, r) : void 0
@@ -5731,7 +5737,7 @@ const vs = ({
5731
5737
  ...c
5732
5738
  }) => {
5733
5739
  const l = E((y) => y.getDataSet), d = E((y) => y.getProps), b = f(
5734
- () => oe(e, r),
5740
+ () => ie(e, r),
5735
5741
  [e, r]
5736
5742
  ), m = f(() => e && t ? d(e, t) : null, [e, t, d]), p = f(() => {
5737
5743
  if (b && o) return l(b, o);
@@ -5768,7 +5774,7 @@ const vs = ({
5768
5774
  ...b
5769
5775
  }) => {
5770
5776
  const m = E((v) => v.getDataSet), p = E((v) => v.getProps), S = f(
5771
- () => oe(e, r),
5777
+ () => ie(e, r),
5772
5778
  [e, r]
5773
5779
  ), h = f(() => e && t ? p(e, t) : null, [e, t, p]), s = f(() => {
5774
5780
  if (S && o) return m(S, o);
@@ -5848,7 +5854,7 @@ const vs = ({
5848
5854
  ...S
5849
5855
  }) => {
5850
5856
  const h = tt(o, a, e), s = h.dataSet, y = h.dataSetField, u = h.sessionId, x = f(
5851
- () => oe(u, s),
5857
+ () => ie(u, s),
5852
5858
  [u, s]
5853
5859
  ), { options: A } = Ot(c), N = f(() => {
5854
5860
  if (d) {
@@ -5904,14 +5910,14 @@ const vs = ({
5904
5910
  ...S
5905
5911
  }) => {
5906
5912
  const h = E((_) => _.addCommand), s = E((_) => _.setDataSet), y = f(
5907
- () => oe(e, i),
5913
+ () => ie(e, i),
5908
5914
  [e, i]
5909
5915
  ), u = r ?? (y ? "" : void 0), x = f(() => ({}), []), A = E((_) => {
5910
5916
  if (!y) return x;
5911
5917
  const T = _.getDataSet(y, u ?? "");
5912
5918
  return T != null && typeof T == "object" ? T : x;
5913
5919
  }), N = A.current ?? d ?? 1, w = A.pageSize ?? b ?? 10, v = A.total ?? m ?? 0;
5914
- Ce(() => {
5920
+ Ne(() => {
5915
5921
  if (!y || u === void 0) return;
5916
5922
  const _ = u ?? "", { getDataSet: T, setDataSet: C } = E.getState(), M = T(y, _), k = Number(b ?? p ?? 10), K = Number.isFinite(k) && k > 0 ? k : 10;
5917
5923
  if (M == null || typeof M != "object" || Array.isArray(M)) {
@@ -5984,7 +5990,7 @@ const vs = ({
5984
5990
  ...o
5985
5991
  }) => /* @__PURE__ */ g(Hr, { ...o, items: i, children: r }), Lt = (t) => Object.entries(t).map(([e, n]) => `${e.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), Ma = ({ mode: t, arrowStyle: e, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
5986
5992
  const o = Re(null), a = Re(null), [c, l] = be(0), [d, b] = be(!1), [m, p] = be(0), [S, h] = be(0), s = t === "horizontal";
5987
- Ce(() => {
5993
+ Ne(() => {
5988
5994
  const v = () => {
5989
5995
  if (!o.current || !a.current) return;
5990
5996
  const O = o.current, _ = a.current;
@@ -6004,7 +6010,7 @@ const vs = ({
6004
6010
  const v = s ? ((O = o.current) == null ? void 0 : O.clientWidth) ?? 200 : ((_ = o.current) == null ? void 0 : _.clientHeight) ?? 200, D = s ? (((T = a.current) == null ? void 0 : T.scrollWidth) ?? 0) - (((C = o.current) == null ? void 0 : C.clientWidth) ?? 0) : (((M = a.current) == null ? void 0 : M.scrollHeight) ?? 0) - (((k = o.current) == null ? void 0 : k.clientHeight) ?? 0);
6005
6011
  l((K) => Math.min(D, K + v));
6006
6012
  }, [s, u]), N = n || (s ? /* @__PURE__ */ g(tr, {}) : /* @__PURE__ */ g(gi, {})), w = i || (s ? /* @__PURE__ */ g(nr, {}) : /* @__PURE__ */ g(rr, {}));
6007
- return /* @__PURE__ */ fe(
6013
+ return /* @__PURE__ */ de(
6008
6014
  "div",
6009
6015
  {
6010
6016
  style: {
@@ -6131,7 +6137,7 @@ const vs = ({
6131
6137
  ...z
6132
6138
  }) => {
6133
6139
  const j = E((Y) => Y.addCommand), R = E((Y) => Y.setDataSet), J = f(
6134
- () => oe(e, i),
6140
+ () => ie(e, i),
6135
6141
  [e, i]
6136
6142
  ), V = E(
6137
6143
  (Y) => {
@@ -6150,32 +6156,32 @@ const vs = ({
6150
6156
  ), P = f(() => n ? F ?? S ?? [] : J ? F ?? [] : S ?? [], [n, J, F, S]), H = f(
6151
6157
  () => B.selectedKeys ?? h,
6152
6158
  [B.selectedKeys, h]
6153
- ), ie = f(
6159
+ ), re = f(
6154
6160
  () => B.openKeys ?? (v && D ? void 0 : s),
6155
6161
  [B.openKeys, v, D, s]
6156
- ), le = f(
6157
- () => oe(e, v),
6162
+ ), ce = f(
6163
+ () => ie(e, v),
6158
6164
  [e, v]
6159
- ), de = E((Y) => {
6160
- if (!B.openKeys && le && D)
6161
- return Y.getDataSet(le, D);
6162
- }), ye = f(() => {
6163
- const Y = (ue) => Array.isArray(ue) ? ue.map((ge) => {
6164
- const Ae = { ...ge };
6165
+ ), ue = E((Y) => {
6166
+ if (!B.openKeys && ce && D)
6167
+ return Y.getDataSet(ce, D);
6168
+ }), ge = f(() => {
6169
+ const Y = (le) => Array.isArray(le) ? le.map((ye) => {
6170
+ const Ae = { ...ye };
6165
6171
  if (Ae.icon && typeof Ae.icon == "string") {
6166
- const De = Ue[Ae.icon];
6167
- De && (Ae.icon = /* @__PURE__ */ g(De, {}));
6172
+ const Ce = Ue[Ae.icon];
6173
+ Ce && (Ae.icon = /* @__PURE__ */ g(Ce, {}));
6168
6174
  }
6169
6175
  return Ae.children && Ae.children.length > 0 && (Ae.children = Y(Ae.children)), Ae;
6170
6176
  }) : [];
6171
6177
  return Y(P || []);
6172
- }, [P]), ae = f(
6178
+ }, [P]), oe = f(
6173
6179
  () => H,
6174
6180
  [H]
6175
6181
  ), ee = f(
6176
- () => ie ?? de,
6177
- [ie, de]
6178
- ), re = L(
6182
+ () => re ?? ue,
6183
+ [re, ue]
6184
+ ), ne = L(
6179
6185
  (Y) => {
6180
6186
  if (d) {
6181
6187
  d(Y);
@@ -6187,7 +6193,7 @@ const vs = ({
6187
6193
  );
6188
6194
  },
6189
6195
  [d, o, e, j]
6190
- ), X = L(
6196
+ ), he = L(
6191
6197
  (Y) => {
6192
6198
  if (b) {
6193
6199
  b(Y);
@@ -6195,8 +6201,8 @@ const vs = ({
6195
6201
  }
6196
6202
  if (J)
6197
6203
  if (r) {
6198
- const ue = E.getState().getDataSet(J, r) || {};
6199
- R(J, r, { ...ue, selectedKeys: Y.selectedKeys });
6204
+ const le = E.getState().getDataSet(J, r) || {};
6205
+ R(J, r, { ...le, selectedKeys: Y.selectedKeys });
6200
6206
  } else
6201
6207
  R(J, "selectedKeys", Y.selectedKeys);
6202
6208
  a && e && j(
@@ -6213,7 +6219,7 @@ const vs = ({
6213
6219
  e,
6214
6220
  j
6215
6221
  ]
6216
- ), I = L(
6222
+ ), Z = L(
6217
6223
  (Y) => {
6218
6224
  if (m) {
6219
6225
  m(Y);
@@ -6221,11 +6227,11 @@ const vs = ({
6221
6227
  }
6222
6228
  if (J)
6223
6229
  if (r) {
6224
- const ue = E.getState().getDataSet(J, r) || {};
6225
- R(J, r, { ...ue, openKeys: Y });
6230
+ const le = E.getState().getDataSet(J, r) || {};
6231
+ R(J, r, { ...le, openKeys: Y });
6226
6232
  } else
6227
6233
  R(J, "openKeys", Y);
6228
- else le && D && R(le, D, Y);
6234
+ else ce && D && R(ce, D, Y);
6229
6235
  c && e && j(
6230
6236
  e,
6231
6237
  te(c, { openKeys: Y })
@@ -6235,14 +6241,14 @@ const vs = ({
6235
6241
  m,
6236
6242
  J,
6237
6243
  r,
6238
- le,
6244
+ ce,
6239
6245
  D,
6240
6246
  R,
6241
6247
  c,
6242
6248
  e,
6243
6249
  j
6244
6250
  ]
6245
- ), ne = L(
6251
+ ), I = L(
6246
6252
  (Y) => {
6247
6253
  if (p) {
6248
6254
  p(Y);
@@ -6257,65 +6263,65 @@ const vs = ({
6257
6263
  );
6258
6264
  },
6259
6265
  [p, l, e, j]
6260
- ), we = O === "inline" && _ !== void 0 ? { inlineCollapsed: _ } : {}, Me = f(() => {
6266
+ ), xe = O === "inline" && _ !== void 0 ? { inlineCollapsed: _ } : {}, De = f(() => {
6261
6267
  if (!A) return;
6262
6268
  const Y = {};
6263
- return Object.entries(A).forEach(([ue, ge]) => {
6264
- ge !== "" && ge !== void 0 && ge !== null && (Y[ue] = ge);
6269
+ return Object.entries(A).forEach(([le, ye]) => {
6270
+ ye !== "" && ye !== void 0 && ye !== null && (Y[le] = ye);
6265
6271
  }), Object.keys(Y).length > 0 ? Y : void 0;
6266
- }, [A]), ce = n ? {
6272
+ }, [A]), ae = n ? {
6267
6273
  motion: { motionName: "" }
6268
- } : {}, xe = f(() => {
6274
+ } : {}, we = f(() => {
6269
6275
  if (typeof k == "string" && k) {
6270
6276
  const Y = Ue[k];
6271
6277
  if (Y) return /* @__PURE__ */ g(Y, {});
6272
6278
  }
6273
6279
  return k;
6274
- }, [k]), Te = f(() => {
6280
+ }, [k]), ke = f(() => {
6275
6281
  if (typeof K == "string" && K) {
6276
6282
  const Y = Ue[K];
6277
6283
  if (Y) return /* @__PURE__ */ g(Y, {});
6278
6284
  }
6279
6285
  return K;
6280
- }, [K]), ve = f(() => C === "pagination" || C === "scroll" ? null : w, [C, w]), U = ui(), G = t || U.replace(/:/g, "-"), me = f(() => {
6286
+ }, [K]), ve = f(() => C === "pagination" || C === "scroll" ? null : w, [C, w]), U = ui(), G = t || U.replace(/:/g, "-"), fe = f(() => {
6281
6287
  var Ae;
6282
6288
  if (!u || typeof u == "function") return "";
6283
6289
  const Y = (Ae = u.subMenu) == null ? void 0 : Ae.root;
6284
6290
  if (!Y) return "";
6285
- const ue = [], ge = `[data-and-menu-id="${G}"]`;
6291
+ const le = [], ye = `[data-and-menu-id="${G}"]`;
6286
6292
  if (Y.item && Object.keys(Y.item).length > 0) {
6287
- const De = Lt(Y.item);
6288
- ue.push(`${ge} .ant-menu-submenu > .ant-menu-submenu-title { ${De} }`);
6293
+ const Ce = Lt(Y.item);
6294
+ le.push(`${ye} .ant-menu-submenu > .ant-menu-submenu-title { ${Ce} }`);
6289
6295
  }
6290
6296
  if (Y.itemIcon && Object.keys(Y.itemIcon).length > 0) {
6291
- const De = Lt(Y.itemIcon);
6292
- ue.push(`${ge} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${De} }`);
6297
+ const Ce = Lt(Y.itemIcon);
6298
+ le.push(`${ye} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Ce} }`);
6293
6299
  }
6294
6300
  if (Y.itemContent && Object.keys(Y.itemContent).length > 0) {
6295
- const De = Lt(Y.itemContent);
6296
- ue.push(`${ge} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${De} }`);
6301
+ const Ce = Lt(Y.itemContent);
6302
+ le.push(`${ye} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Ce} }`);
6297
6303
  }
6298
6304
  if (Y.selected && Object.keys(Y.selected).length > 0) {
6299
- const De = Lt(Y.selected);
6300
- ue.push(`${ge} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${De} }`);
6305
+ const Ce = Lt(Y.selected);
6306
+ le.push(`${ye} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Ce} }`);
6301
6307
  }
6302
- return ue.join(`
6308
+ return le.join(`
6303
6309
  `);
6304
6310
  }, [u, G]), q = /* @__PURE__ */ g(
6305
6311
  Ur,
6306
6312
  {
6307
6313
  ...z,
6308
- ...we,
6309
- ...ce,
6314
+ ...xe,
6315
+ ...ae,
6310
6316
  mode: O,
6311
- items: ye,
6312
- selectedKeys: ae,
6317
+ items: ge,
6318
+ selectedKeys: oe,
6313
6319
  openKeys: ee,
6314
6320
  defaultOpenKeys: y,
6315
- onClick: re,
6316
- onSelect: X,
6317
- onOpenChange: I,
6318
- onDeselect: ne,
6321
+ onClick: ne,
6322
+ onSelect: he,
6323
+ onOpenChange: Z,
6324
+ onDeselect: I,
6319
6325
  styles: u,
6320
6326
  classNames: x,
6321
6327
  expandIcon: N,
@@ -6327,20 +6333,20 @@ const vs = ({
6327
6333
  {
6328
6334
  mode: O || "horizontal",
6329
6335
  arrowStyle: M,
6330
- arrowIconPrev: xe,
6331
- arrowIconNext: Te,
6336
+ arrowIconPrev: we,
6337
+ arrowIconNext: ke,
6332
6338
  children: q
6333
6339
  }
6334
6340
  ) : C === "scroll" ? /* @__PURE__ */ g($a, { mode: O || "horizontal", children: q }) : q, pe = f(() => {
6335
6341
  const Y = {};
6336
- return n && (Y.motion = !1), Me && (Y.components = { Menu: Me }), Object.keys(Y).length > 0 ? Y : void 0;
6337
- }, [n, Me]);
6342
+ return n && (Y.motion = !1), De && (Y.components = { Menu: De }), Object.keys(Y).length > 0 ? Y : void 0;
6343
+ }, [n, De]);
6338
6344
  return (() => {
6339
- const Y = se(), ue = me ? /* @__PURE__ */ fe("div", { "data-and-menu-id": G, style: { display: "contents" }, children: [
6340
- /* @__PURE__ */ g("style", { children: me }),
6345
+ const Y = se(), le = fe ? /* @__PURE__ */ de("div", { "data-and-menu-id": G, style: { display: "contents" }, children: [
6346
+ /* @__PURE__ */ g("style", { children: fe }),
6341
6347
  Y
6342
6348
  ] }) : Y;
6343
- return pe ? /* @__PURE__ */ g(Ke, { theme: pe, children: ue }) : ue;
6349
+ return pe ? /* @__PURE__ */ g(Ke, { theme: pe, children: le }) : le;
6344
6350
  })();
6345
6351
  }, Ds = ({
6346
6352
  id: t,
@@ -6367,7 +6373,7 @@ const vs = ({
6367
6373
  ...y
6368
6374
  }) => {
6369
6375
  const u = E((O) => O.getDataSet), x = f(
6370
- () => oe(e, i),
6376
+ () => ie(e, i),
6371
6377
  [e, i]
6372
6378
  ), A = f(() => {
6373
6379
  if (x && r) return u(x, r);
@@ -6418,7 +6424,7 @@ const vs = ({
6418
6424
  ...d
6419
6425
  }) => {
6420
6426
  const b = E((u) => u.getDataSet), m = f(
6421
- () => oe(e, i),
6427
+ () => ie(e, i),
6422
6428
  [e, i]
6423
6429
  ), p = f(() => {
6424
6430
  if (m && r) return b(m, r);
@@ -6505,7 +6511,7 @@ const vs = ({
6505
6511
  ...p
6506
6512
  }) => {
6507
6513
  const S = tt(i, r, e), h = S.dataSet, s = S.dataSetField, y = S.sessionId, u = ft(et), x = E((j) => j.addCommand), A = f(
6508
- () => oe(y, h),
6514
+ () => ie(y, h),
6509
6515
  [y, h]
6510
6516
  ), N = E((j) => A && s ? j.getDataSet(A, s) : null), w = f(() => !y || t == null || t === "" ? null : u && typeof u.index == "number" ? `${String(t)}_${u.index}` : String(t), [y, t, u]), v = E(
6511
6517
  (j) => {
@@ -6602,7 +6608,7 @@ const vs = ({
6602
6608
  ...m
6603
6609
  }) => {
6604
6610
  const p = E((w) => w.getDataSet), S = E((w) => w.getProps), h = f(
6605
- () => oe(e, o),
6611
+ () => ie(e, o),
6606
6612
  [e, o]
6607
6613
  ), s = f(() => e && t ? S(e, t) : null, [e, t, S]), y = f(() => {
6608
6614
  if (h && a) return p(h, a);
@@ -6638,7 +6644,7 @@ const vs = ({
6638
6644
  ...m
6639
6645
  }) => {
6640
6646
  const p = E((N) => N.addCommand), S = E((N) => N.getDataSet), h = E((N) => N.setDataSet), s = f(
6641
- () => oe(e, i),
6647
+ () => ie(e, i),
6642
6648
  [e, i]
6643
6649
  ), y = f(() => {
6644
6650
  if (s && r)
@@ -6679,7 +6685,7 @@ const vs = ({
6679
6685
  ...d
6680
6686
  }) => {
6681
6687
  const b = E((u) => u.addCommand), m = E((u) => u.getDataSet), p = E((u) => u.setDataSet), S = f(
6682
- () => oe(e, i),
6688
+ () => ie(e, i),
6683
6689
  [e, i]
6684
6690
  ), h = f(() => {
6685
6691
  if (S && r)
@@ -6771,14 +6777,14 @@ const vs = ({
6771
6777
  ...v
6772
6778
  }) => {
6773
6779
  const D = E((H) => H.addCommand), O = E((H) => H.getDataSet), _ = E((H) => H.setDataSet), T = f(
6774
- () => oe(e, i),
6780
+ () => ie(e, i),
6775
6781
  [e, i]
6776
6782
  ), C = N === "default" ? "medium" : N, M = f(() => {
6777
6783
  const H = dn(s, {});
6778
6784
  return Object.fromEntries(
6779
- Object.entries(H).map(([ie, le]) => [
6780
- ie,
6781
- La(le)
6785
+ Object.entries(H).map(([re, ce]) => [
6786
+ re,
6787
+ La(ce)
6782
6788
  ])
6783
6789
  );
6784
6790
  }, [s]), k = f(() => {
@@ -6796,17 +6802,17 @@ const vs = ({
6796
6802
  }
6797
6803
  T && r && _(T, `${r}.activeTabKey`, H), S && e && D(e, te(S, { key: H }));
6798
6804
  }, [h, T, r, _, S, e, D]), { titleSlot: j, extraSlot: R, coverSlot: J, actionsSlot: V, otherChildren: $, actionsFromChildren: B } = f(() => {
6799
- let H = null, ie = null, le = null, de = [];
6800
- const ye = [];
6801
- let ae = !1;
6802
- return o && (H = o), a && (ie = a), c && (le = c), d && (de = d), Le.Children.forEach(w, (ee) => {
6805
+ let H = null, re = null, ce = null, ue = [];
6806
+ const ge = [];
6807
+ let oe = !1;
6808
+ return o && (H = o), a && (re = a), c && (ce = c), d && (ue = d), Le.Children.forEach(w, (ee) => {
6803
6809
  if (!Le.isValidElement(ee)) {
6804
- ye.push(ee);
6810
+ ge.push(ee);
6805
6811
  return;
6806
6812
  }
6807
- const re = ee.props, X = re["data-slot-type"];
6808
- X === "title" && !o ? H = ee : X === "extra" && !a ? ie = ee : X === "cover" && !c ? le = ee : X === "actions" && !d ? (de = [ee], ae = !0) : X === "body" && re.children ? ye.push(re.children) : ye.push(ee);
6809
- }), { titleSlot: H, extraSlot: ie, coverSlot: le, actionsSlot: de, otherChildren: ye, actionsFromChildren: ae };
6813
+ const ne = ee.props, he = ne["data-slot-type"];
6814
+ he === "title" && !o ? H = ee : he === "extra" && !a ? re = ee : he === "cover" && !c ? ce = ee : he === "actions" && !d ? (ue = [ee], oe = !0) : he === "body" && ne.children ? ge.push(ne.children) : ge.push(ee);
6815
+ }), { titleSlot: H, extraSlot: re, coverSlot: ce, actionsSlot: ue, otherChildren: ge, actionsFromChildren: oe };
6810
6816
  }, [w, o, a, c, d]), F = f(() => {
6811
6817
  const H = dn(y, {});
6812
6818
  return B ? { actionsLiMargin: "0px", ...H } : H;
@@ -6885,7 +6891,7 @@ const vs = ({
6885
6891
  ...s
6886
6892
  }) => {
6887
6893
  const y = E((C) => C.addCommand), u = ft(et), x = h ?? (u == null ? void 0 : u.index), A = u == null ? void 0 : u.parentIndex, N = f(
6888
- () => oe(e, i),
6894
+ () => ie(e, i),
6889
6895
  [e, i]
6890
6896
  ), w = E((C) => {
6891
6897
  if (N)
@@ -6986,7 +6992,7 @@ const vs = ({
6986
6992
  x,
6987
6993
  A
6988
6994
  ]
6989
- ), T = f(() => /* @__PURE__ */ fe(
6995
+ ), T = f(() => /* @__PURE__ */ de(
6990
6996
  "div",
6991
6997
  {
6992
6998
  className: "and-dropdown-trigger-slot",
@@ -6994,7 +7000,7 @@ const vs = ({
6994
7000
  children: [
6995
7001
  p,
6996
7002
  n && !p && !S && /* @__PURE__ */ g("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
6997
- !p && !n && o && /* @__PURE__ */ g(it, { children: /* @__PURE__ */ fe(ke, { children: [
7003
+ !p && !n && o && /* @__PURE__ */ g(it, { children: /* @__PURE__ */ de(_e, { children: [
6998
7004
  o,
6999
7005
  /* @__PURE__ */ g(rr, {})
7000
7006
  ] }) })
@@ -7030,7 +7036,7 @@ const vs = ({
7030
7036
  ...a
7031
7037
  }) => {
7032
7038
  const c = E((h) => h.getDataSet), l = E((h) => h.getProps), d = f(
7033
- () => oe(e, i),
7039
+ () => ie(e, i),
7034
7040
  [e, i]
7035
7041
  ), b = f(() => e && t ? l(e, t) : null, [e, t, l]), m = f(() => {
7036
7042
  if (d && r) return c(d, r);
@@ -7133,7 +7139,7 @@ const vs = ({
7133
7139
  max: M.max || void 0,
7134
7140
  collapsible: M.collapsible,
7135
7141
  resizable: M.resizable !== !1,
7136
- children: s ? s(M.key, k) : /* @__PURE__ */ fe(
7142
+ children: s ? s(M.key, k) : /* @__PURE__ */ de(
7137
7143
  "div",
7138
7144
  {
7139
7145
  style: {
@@ -7217,7 +7223,7 @@ const vs = ({
7217
7223
  if (z)
7218
7224
  return (j, R) => z.replace(/\$\{total\}/g, String(j)).replace(/\$\{range\[0\]\}/g, String(R[0])).replace(/\$\{range\[1\]\}/g, String(R[1])).replace(/\$\{range\}/g, `${R[0]}-${R[1]}`);
7219
7225
  }, [A]), v = E((z) => z.getDataSet), D = f(
7220
- () => oe(e, i),
7226
+ () => ie(e, i),
7221
7227
  [e, i]
7222
7228
  ), [O, _] = be(1), [T, C] = be(p), M = f(() => {
7223
7229
  if (D && r) {
@@ -7238,7 +7244,7 @@ const vs = ({
7238
7244
  const W = (z, j) => {
7239
7245
  _(z), j && C(j);
7240
7246
  };
7241
- return /* @__PURE__ */ fe("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
7247
+ return /* @__PURE__ */ de("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
7242
7248
  /* @__PURE__ */ g("div", { style: { flex: 1 }, children: K.map((z, j) => /* @__PURE__ */ g(Le.Fragment, { children: o ? o(z, j) : /* @__PURE__ */ g("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(z) }) }, z.id || j)) }),
7243
7249
  !m && k.length > 0 && /* @__PURE__ */ g("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ g(
7244
7250
  Gn,
@@ -7289,7 +7295,7 @@ const vs = ({
7289
7295
  transform: l ? `rotate(${l}deg)` : void 0,
7290
7296
  ...h
7291
7297
  };
7292
- return /* @__PURE__ */ fe(St, { children: [
7298
+ return /* @__PURE__ */ de(St, { children: [
7293
7299
  /* @__PURE__ */ g("style", { children: qa }),
7294
7300
  c && /* @__PURE__ */ g("style", { children: Va }),
7295
7301
  /* @__PURE__ */ g(
@@ -7334,7 +7340,7 @@ const vs = ({
7334
7340
  style: l
7335
7341
  }) => {
7336
7342
  const d = E((s) => s.addCommand), b = E((s) => s.getDataSet), m = f(
7337
- () => oe(e, i),
7343
+ () => ie(e, i),
7338
7344
  [e, i]
7339
7345
  ), p = f(() => {
7340
7346
  if (m && r) {
@@ -7355,25 +7361,25 @@ const vs = ({
7355
7361
  en.Meta,
7356
7362
  {
7357
7363
  title: s.name,
7358
- description: /* @__PURE__ */ fe(ke, { direction: "vertical", size: 4, children: [
7359
- s.price !== void 0 && /* @__PURE__ */ fe("div", { children: [
7360
- /* @__PURE__ */ fe("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
7364
+ description: /* @__PURE__ */ de(_e, { direction: "vertical", size: 4, children: [
7365
+ s.price !== void 0 && /* @__PURE__ */ de("div", { children: [
7366
+ /* @__PURE__ */ de("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
7361
7367
  "¥",
7362
7368
  s.price
7363
7369
  ] }),
7364
- s.originalPrice && /* @__PURE__ */ fe("span", { style: { marginLeft: 8, color: "#999", textDecoration: "line-through" }, children: [
7370
+ s.originalPrice && /* @__PURE__ */ de("span", { style: { marginLeft: 8, color: "#999", textDecoration: "line-through" }, children: [
7365
7371
  "¥",
7366
7372
  s.originalPrice
7367
7373
  ] })
7368
7374
  ] }),
7369
- s.tags && s.tags.length > 0 && /* @__PURE__ */ g(ke, { size: 4, wrap: !0, children: s.tags.map((y, u) => /* @__PURE__ */ g(Jn, { color: "blue", children: y }, u)) })
7375
+ s.tags && s.tags.length > 0 && /* @__PURE__ */ g(_e, { size: 4, wrap: !0, children: s.tags.map((y, u) => /* @__PURE__ */ g(Jn, { color: "blue", children: y }, u)) })
7370
7376
  ] })
7371
7377
  }
7372
7378
  )
7373
7379
  },
7374
7380
  s.id
7375
7381
  )) });
7376
- }, zn = ({ id: t, icon: e, title: n, description: i, style: r }) => /* @__PURE__ */ fe(
7382
+ }, zn = ({ id: t, icon: e, title: n, description: i, style: r }) => /* @__PURE__ */ de(
7377
7383
  "div",
7378
7384
  {
7379
7385
  id: t,
@@ -7424,7 +7430,7 @@ const vs = ({
7424
7430
  j = Number.isFinite(R) ? R : null;
7425
7431
  }
7426
7432
  return {
7427
- storeBaseKey: oe(i, W),
7433
+ storeBaseKey: ie(i, W),
7428
7434
  arrayIndex: j
7429
7435
  };
7430
7436
  }, [n, i, m]), s = E((K) => {
@@ -7465,7 +7471,7 @@ const vs = ({
7465
7471
  } : null, [u, h, p, x, i]), v = d || "请配置组件";
7466
7472
  if (o) {
7467
7473
  const K = b === "row";
7468
- return /* @__PURE__ */ fe(
7474
+ return /* @__PURE__ */ de(
7469
7475
  "div",
7470
7476
  {
7471
7477
  id: c,
@@ -7636,11 +7642,11 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7636
7642
  className: p,
7637
7643
  style: S
7638
7644
  }) => {
7639
- Ce(() => {
7645
+ Ne(() => {
7640
7646
  Wa();
7641
7647
  }, []);
7642
7648
  const h = E((Q) => Q.setDataSet), s = f(
7643
- () => oe(e, i),
7649
+ () => ie(e, i),
7644
7650
  [e, i]
7645
7651
  ), y = E((Q) => {
7646
7652
  if (!s || !r) return;
@@ -7670,82 +7676,82 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7670
7676
  () => Math.max(1, a || 1)
7671
7677
  ), O = Re(v);
7672
7678
  O.current = v;
7673
- const [_, T] = be(null), [C, M] = be(!!x), [k, K] = be("all"), [W, z] = be("width"), [j, R] = be(1), J = Re(null), V = Re(null), $ = Re({}), B = Re(!1), F = Re(null), [P, H] = be(600), [ie, le] = be(800), de = Re(0), ye = f(() => {
7674
- var ue;
7675
- const Q = (ue = He().pdfCMapUrl) == null ? void 0 : ue.trim();
7679
+ const [_, T] = be(null), [C, M] = be(!!x), [k, K] = be("all"), [W, z] = be("width"), [j, R] = be(1), J = Re(null), V = Re(null), $ = Re({}), B = Re(!1), F = Re(null), [P, H] = be(600), [re, ce] = be(800), ue = Re(0), ge = f(() => {
7680
+ var le;
7681
+ const Q = (le = He().pdfCMapUrl) == null ? void 0 : le.trim();
7676
7682
  return Q ? { cMapUrl: Q.endsWith("/") ? Q : `${Q}/`, cMapPacked: !0 } : {};
7677
- }, []), ae = (c || "").trim(), ee = E((Q) => {
7678
- if (!(!s || !ae))
7679
- return Q.getDataSet(s, `${ae}.targetPage`);
7683
+ }, []), oe = (c || "").trim(), ee = E((Q) => {
7684
+ if (!(!s || !oe))
7685
+ return Q.getDataSet(s, `${oe}.targetPage`);
7680
7686
  });
7681
- Ce(() => {
7687
+ Ne(() => {
7682
7688
  const Q = V.current;
7683
7689
  if (!Q) return;
7684
7690
  const Y = new ResizeObserver(() => {
7685
- const Ae = Q.clientWidth, De = Q.clientHeight;
7686
- Ae > 0 && H(Ae), De > 0 && le(De);
7691
+ const Ae = Q.clientWidth, Ce = Q.clientHeight;
7692
+ Ae > 0 && H(Ae), Ce > 0 && ce(Ce);
7687
7693
  });
7688
7694
  Y.observe(Q);
7689
- const ue = Q.clientWidth, ge = Q.clientHeight;
7690
- return ue > 0 && H(ue), ge > 0 && le(ge), () => Y.disconnect();
7695
+ const le = Q.clientWidth, ye = Q.clientHeight;
7696
+ return le > 0 && H(le), ye > 0 && ce(ye), () => Y.disconnect();
7691
7697
  }, [x]);
7692
- const re = f(() => Math.max(240, P - 16), [P]), X = f(
7693
- () => Math.max(320, ie - 16),
7694
- [ie]
7698
+ const ne = f(() => Math.max(240, P - 16), [P]), he = f(
7699
+ () => Math.max(320, re - 16),
7700
+ [re]
7701
+ ), Z = f(
7702
+ () => Math.max(120, ne * j),
7703
+ [ne, j]
7695
7704
  ), I = f(
7696
- () => Math.max(120, re * j),
7697
- [re, j]
7698
- ), ne = f(
7699
- () => Math.max(180, X * j),
7700
- [X, j]
7701
- ), we = f(() => k === "all" ? Array.from({ length: N }, (Q, Y) => Y + 1) : [v], [k, N, v]), Me = L(
7705
+ () => Math.max(180, he * j),
7706
+ [he, j]
7707
+ ), xe = f(() => k === "all" ? Array.from({ length: N }, (Q, Y) => Y + 1) : [v], [k, N, v]), De = L(
7702
7708
  (Q, Y) => {
7703
- !s || !ae || (h(s, `${ae}.currentPage`, Q), Y > 0 && h(s, `${ae}.totalPages`, Y));
7709
+ !s || !oe || (h(s, `${oe}.currentPage`, Q), Y > 0 && h(s, `${oe}.totalPages`, Y));
7704
7710
  },
7705
- [s, ae, h]
7711
+ [s, oe, h]
7706
7712
  );
7707
- Ce(() => {
7708
- N > 0 && Me(v, N);
7709
- }, [v, N, Me]);
7710
- const ce = L(
7713
+ Ne(() => {
7714
+ N > 0 && De(v, N);
7715
+ }, [v, N, De]);
7716
+ const ae = L(
7711
7717
  (Q, Y = "auto") => {
7712
- const ue = N > 0 ? Math.max(1, Math.min(Math.floor(Q), N)) : Math.max(1, Math.floor(Q));
7713
- if (D(ue), k === "all") {
7714
- const ge = $.current[ue];
7715
- ge && ge.scrollIntoView({ block: "start", behavior: Y });
7718
+ const le = N > 0 ? Math.max(1, Math.min(Math.floor(Q), N)) : Math.max(1, Math.floor(Q));
7719
+ if (D(le), k === "all") {
7720
+ const ye = $.current[le];
7721
+ ye && ye.scrollIntoView({ block: "start", behavior: Y });
7716
7722
  }
7717
7723
  },
7718
7724
  [N, k]
7719
- ), xe = Re(ce);
7720
- xe.current = ce, Ce(() => {
7725
+ ), we = Re(ae);
7726
+ we.current = ae, Ne(() => {
7721
7727
  const Q = ee;
7722
- typeof Q != "number" || !Number.isFinite(Q) || (ce(Q, "auto"), s && ae && h(s, `${ae}.targetPage`, void 0));
7723
- }, [ee, ce, s, ae, h]), Ce(() => {
7728
+ typeof Q != "number" || !Number.isFinite(Q) || (ae(Q, "auto"), s && oe && h(s, `${oe}.targetPage`, void 0));
7729
+ }, [ee, ae, s, oe, h]), Ne(() => {
7724
7730
  const Q = Math.max(1, a ?? 1);
7725
7731
  D(Q);
7726
7732
  }, [a]);
7727
- const Te = L(
7733
+ const ke = L(
7728
7734
  ({ numPages: Q }) => {
7729
7735
  T(null), M(!1);
7730
- const Y = O.current, ue = Math.min(Math.max(1, Y), Q || 1);
7731
- w(Q), D(ue), B.current = !0, F.current = ue;
7736
+ const Y = O.current, le = Math.min(Math.max(1, Y), Q || 1);
7737
+ w(Q), D(le), B.current = !0, F.current = le;
7732
7738
  },
7733
7739
  []
7734
7740
  ), ve = L((Q) => {
7735
7741
  T(Q), M(!1), B.current = !1, F.current = null;
7736
7742
  }, []);
7737
- Ce(() => {
7743
+ Ne(() => {
7738
7744
  M(!!x), T(null), R(1), w(0), B.current = !!x, F.current = null, $.current = {};
7739
- }, [x]), Ce(() => {
7745
+ }, [x]), Ne(() => {
7740
7746
  const Q = F.current;
7741
7747
  if (Q == null || C || N <= 0 || k !== "all") return;
7742
- let Y = !1, ue = 0;
7743
- const ge = 120, Ae = () => {
7748
+ let Y = !1, le = 0;
7749
+ const ye = 120, Ae = () => {
7744
7750
  if (Y) return;
7745
- ue++;
7746
- const De = Math.max(1, Math.min(Math.floor(Q), N));
7751
+ le++;
7752
+ const Ce = Math.max(1, Math.min(Math.floor(Q), N));
7747
7753
  let Ie = !0;
7748
- for (let Ye = 1; Ye <= De; Ye++) {
7754
+ for (let Ye = 1; Ye <= Ce; Ye++) {
7749
7755
  const at = $.current[Ye];
7750
7756
  if (!at || !at.isConnected || at.clientHeight <= 50) {
7751
7757
  Ie = !1;
@@ -7755,14 +7761,14 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7755
7761
  if (Ie) {
7756
7762
  requestAnimationFrame(() => {
7757
7763
  if (Y) return;
7758
- const Ye = $.current[De];
7764
+ const Ye = $.current[Ce];
7759
7765
  Ye && Ye.scrollIntoView({ block: "start", behavior: "auto" }), F.current = null, requestAnimationFrame(() => {
7760
7766
  Y || (B.current = !1);
7761
7767
  });
7762
7768
  });
7763
7769
  return;
7764
7770
  }
7765
- if (ue >= ge) {
7771
+ if (le >= ye) {
7766
7772
  F.current = null, B.current = !1;
7767
7773
  return;
7768
7774
  }
@@ -7774,8 +7780,8 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7774
7780
  }, [C, N, k]);
7775
7781
  const U = L((Q) => {
7776
7782
  R((Y) => {
7777
- const ue = Number((Y + Q).toFixed(2));
7778
- return Math.max(Fa, Math.min(Pa, ue));
7783
+ const le = Number((Y + Q).toFixed(2));
7784
+ return Math.max(Fa, Math.min(Pa, le));
7779
7785
  });
7780
7786
  }, []), G = L(() => {
7781
7787
  if (!x) return;
@@ -7786,7 +7792,7 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7786
7792
  } catch {
7787
7793
  }
7788
7794
  });
7789
- }, [x]), me = L(() => {
7795
+ }, [x]), fe = L(() => {
7790
7796
  if (!x) return;
7791
7797
  const Q = document.createElement("a");
7792
7798
  Q.href = x, Q.download = "", Q.rel = "noopener noreferrer", Q.target = "_blank", document.body.appendChild(Q), Q.click(), Q.remove();
@@ -7801,25 +7807,25 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7801
7807
  const Q = V.current;
7802
7808
  if (!Q) return;
7803
7809
  const Y = Q.scrollTop + Q.clientHeight * 0.35;
7804
- let ue = v, ge = Number.POSITIVE_INFINITY;
7810
+ let le = v, ye = Number.POSITIVE_INFINITY;
7805
7811
  for (let Ae = 1; Ae <= N; Ae++) {
7806
- const De = $.current[Ae];
7807
- if (!De) continue;
7808
- const Ie = Math.abs(De.offsetTop - Y);
7809
- Ie < ge && (ge = Ie, ue = Ae);
7812
+ const Ce = $.current[Ae];
7813
+ if (!Ce) continue;
7814
+ const Ie = Math.abs(Ce.offsetTop - Y);
7815
+ Ie < ye && (ye = Ie, le = Ae);
7810
7816
  }
7811
- ue !== v && D(ue);
7817
+ le !== v && D(le);
7812
7818
  }, [C, k, N, v]);
7813
- return Ce(() => {
7819
+ return Ne(() => {
7814
7820
  if (!u || typeof u != "object") return;
7815
- const Q = u._pdfCmdNonce, Y = u.pdfCommand, ue = u.pdfCommandArg;
7816
- if (!(Q == null || Q === de.current || !Y)) {
7817
- switch (de.current = Q, Y) {
7821
+ const Q = u._pdfCmdNonce, Y = u.pdfCommand, le = u.pdfCommandArg;
7822
+ if (!(Q == null || Q === ue.current || !Y)) {
7823
+ switch (ue.current = Q, Y) {
7818
7824
  case "print":
7819
7825
  G();
7820
7826
  break;
7821
7827
  case "download":
7822
- me();
7828
+ fe();
7823
7829
  break;
7824
7830
  case "enterFullscreen":
7825
7831
  q();
@@ -7828,7 +7834,7 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7828
7834
  se();
7829
7835
  break;
7830
7836
  case "goToPage":
7831
- typeof ue == "number" && ce(ue, "smooth");
7837
+ typeof le == "number" && ae(le, "smooth");
7832
7838
  break;
7833
7839
  case "fitWidth":
7834
7840
  z("width"), R(1);
@@ -7850,7 +7856,7 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7850
7856
  break;
7851
7857
  }
7852
7858
  if (e && t) {
7853
- const ge = E.getState().getProps(e, t), Ae = ge && typeof ge == "object" && !Array.isArray(ge) ? ge : {};
7859
+ const ye = E.getState().getProps(e, t), Ae = ye && typeof ye == "object" && !Array.isArray(ye) ? ye : {};
7854
7860
  E.getState().setProps(e, t, {
7855
7861
  ...Ae,
7856
7862
  pdfCommand: void 0,
@@ -7863,10 +7869,10 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7863
7869
  e,
7864
7870
  t,
7865
7871
  G,
7866
- me,
7872
+ fe,
7867
7873
  q,
7868
7874
  se,
7869
- ce,
7875
+ ae,
7870
7876
  U
7871
7877
  ]), /* @__PURE__ */ g(
7872
7878
  "div",
@@ -7900,7 +7906,7 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7900
7906
  message: (l == null ? void 0 : l.trim()) || _.message,
7901
7907
  showIcon: !0
7902
7908
  }
7903
- ) : x ? /* @__PURE__ */ fe(St, { children: [
7909
+ ) : x ? /* @__PURE__ */ de(St, { children: [
7904
7910
  C ? /* @__PURE__ */ g(
7905
7911
  "div",
7906
7912
  {
@@ -7921,11 +7927,11 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7921
7927
  wi,
7922
7928
  {
7923
7929
  file: x,
7924
- onLoadSuccess: Te,
7930
+ onLoadSuccess: ke,
7925
7931
  onLoadError: ve,
7926
7932
  loading: null,
7927
- options: ye,
7928
- children: we.map((Q) => /* @__PURE__ */ g(
7933
+ options: ge,
7934
+ children: xe.map((Q) => /* @__PURE__ */ g(
7929
7935
  "div",
7930
7936
  {
7931
7937
  ref: (Y) => {
@@ -7941,8 +7947,8 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7941
7947
  xi,
7942
7948
  {
7943
7949
  pageNumber: Q,
7944
- width: W === "width" ? I : void 0,
7945
- height: W === "height" ? ne : void 0,
7950
+ width: W === "width" ? Z : void 0,
7951
+ height: W === "height" ? I : void 0,
7946
7952
  renderTextLayer: !1,
7947
7953
  renderAnnotationLayer: !1
7948
7954
  }
@@ -7976,7 +7982,7 @@ const Fa = 0.5, Pa = 3, qn = 0.1, Ys = ({
7976
7982
  }
7977
7983
  }
7978
7984
  ),
7979
- description: /* @__PURE__ */ fe("div", { style: { textAlign: "center" }, children: [
7985
+ description: /* @__PURE__ */ de("div", { style: { textAlign: "center" }, children: [
7980
7986
  /* @__PURE__ */ g(
7981
7987
  "div",
7982
7988
  {
@@ -8008,7 +8014,7 @@ function Js(t, e, n, i) {
8008
8014
  _pdfCmdNonce: Date.now()
8009
8015
  });
8010
8016
  }
8011
- function Oe(t) {
8017
+ function Me(t) {
8012
8018
  if (!(t == null || t === "")) {
8013
8019
  if (typeof t == "string")
8014
8020
  try {
@@ -8072,19 +8078,19 @@ function ot(t, e) {
8072
8078
  events: j,
8073
8079
  // 其余配置直接透传
8074
8080
  ...R
8075
- } = a, J = Re(null), V = E((ce) => ce.getDataSet), $ = E((ce) => ce.addCommand), B = f(() => {
8081
+ } = a, J = Re(null), V = E((ae) => ae.getDataSet), $ = E((ae) => ae.addCommand), B = f(() => {
8076
8082
  if (p && S) {
8077
- const xe = V(p, S);
8078
- if (xe !== void 0) return xe;
8083
+ const we = V(p, S);
8084
+ if (we !== void 0) return we;
8079
8085
  }
8080
- const ce = Oe(h);
8081
- return ce !== void 0 ? ce : d ? r : [];
8082
- }, [h, p, S, V, d]), F = (ce) => {
8083
- var xe;
8084
- if (J.current = ce, !d && l) {
8085
- const Te = Oe(j);
8086
- Te && typeof Te == "object" && Object.entries(Te).forEach(([ve, U]) => {
8087
- typeof U == "string" && ce.on(ve, (G) => {
8086
+ const ae = Me(h);
8087
+ return ae !== void 0 ? ae : d ? r : [];
8088
+ }, [h, p, S, V, d]), F = (ae) => {
8089
+ var we;
8090
+ if (J.current = ae, !d && l) {
8091
+ const ke = Me(j);
8092
+ ke && typeof ke == "object" && Object.entries(ke).forEach(([ve, U]) => {
8093
+ typeof U == "string" && ae.on(ve, (G) => {
8088
8094
  $(l, {
8089
8095
  actionName: U,
8090
8096
  arg: G,
@@ -8093,8 +8099,8 @@ function ot(t, e) {
8093
8099
  });
8094
8100
  });
8095
8101
  }
8096
- (xe = R.onReady) == null || xe.call(R, ce);
8097
- }, P = Oe(s) || {}, H = {
8102
+ (we = R.onReady) == null || we.call(R, ae);
8103
+ }, P = Me(s) || {}, H = {
8098
8104
  data: B,
8099
8105
  // 优先使用 common 中的配置,没配置则使用默认值
8100
8106
  height: P.height ?? i,
@@ -8102,33 +8108,33 @@ function ot(t, e) {
8102
8108
  // 合并其他通用配置 (margin, padding, insert, etc.)
8103
8109
  ...P,
8104
8110
  // 设计器模式禁用动画
8105
- animate: d ? !1 : Oe(O),
8111
+ animate: d ? !1 : Me(O),
8106
8112
  onReady: F,
8107
8113
  ...R
8108
- }, ie = Oe(N);
8109
- ie !== void 0 && (H.title = ie);
8110
- const le = Oe(w);
8111
- le !== void 0 && (H.legend = le);
8112
- const de = Oe(v);
8113
- de !== void 0 && (H.label = de);
8114
- const ye = Oe(D);
8115
- ye !== void 0 && (H.tooltip = ye);
8116
- const ae = Oe(_);
8117
- ae !== void 0 && (H.scale = ae);
8118
- const ee = Oe(T);
8114
+ }, re = Me(N);
8115
+ re !== void 0 && (H.title = re);
8116
+ const ce = Me(w);
8117
+ ce !== void 0 && (H.legend = ce);
8118
+ const ue = Me(v);
8119
+ ue !== void 0 && (H.label = ue);
8120
+ const ge = Me(D);
8121
+ ge !== void 0 && (H.tooltip = ge);
8122
+ const oe = Me(_);
8123
+ oe !== void 0 && (H.scale = oe);
8124
+ const ee = Me(T);
8119
8125
  ee !== void 0 && (H.interaction = ee);
8120
- const re = Oe(C);
8121
- re !== void 0 && (H.annotations = re);
8122
- const X = Oe(M);
8123
- X !== void 0 && (H.axis = X);
8124
- const I = Oe(k);
8125
- I !== void 0 && (H.scrollbar = I);
8126
- const ne = Oe(K);
8127
- ne !== void 0 && (H.slider = ne);
8128
- const we = Oe(W);
8129
- we !== void 0 && (H.theme = we);
8130
- const Me = Oe(z);
8131
- return Me !== void 0 && (H.state = Me), /* @__PURE__ */ g(t, { ...H });
8126
+ const ne = Me(C);
8127
+ ne !== void 0 && (H.annotations = ne);
8128
+ const he = Me(M);
8129
+ he !== void 0 && (H.axis = he);
8130
+ const Z = Me(k);
8131
+ Z !== void 0 && (H.scrollbar = Z);
8132
+ const I = Me(K);
8133
+ I !== void 0 && (H.slider = I);
8134
+ const xe = Me(W);
8135
+ xe !== void 0 && (H.theme = xe);
8136
+ const De = Me(z);
8137
+ return De !== void 0 && (H.state = De), /* @__PURE__ */ g(t, { ...H });
8132
8138
  };
8133
8139
  return o.displayName = `withBaseChart(${n})`, o;
8134
8140
  }
@@ -8252,9 +8258,9 @@ const Ua = [
8252
8258
  ...S
8253
8259
  };
8254
8260
  e && (h.xField = e), n && (h.yField = n), i && (h.seriesField = i), r && (h.colorField = r), o && (h.shapeField = o), a && (h.sizeField = a), d !== void 0 && (h.stack = d === !0 || d === "true"), b !== void 0 && (h.percent = b === !0 || b === "true"), m !== void 0 && (h.symmetry = m === !0 || m === "true"), p !== void 0 && (h.diff = p === !0 || p === "true");
8255
- const s = Oe(c);
8261
+ const s = Me(c);
8256
8262
  s !== void 0 && (h.line = s);
8257
- const y = Oe(l);
8263
+ const y = Me(l);
8258
8264
  return y !== void 0 && (h.point = y), /* @__PURE__ */ g(Xa, { ...h });
8259
8265
  }, Ia = ot(Ti, {
8260
8266
  chartType: "AndVDualAxes",
@@ -8284,9 +8290,9 @@ const Ua = [
8284
8290
  ...a
8285
8291
  };
8286
8292
  console.log("[AndVDualAxes] props:", { xField: e, yField: n, children: o }), e && (c.xField = e);
8287
- const l = Oe(n);
8293
+ const l = Me(n);
8288
8294
  l ? c.yField = l : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
8289
- const d = Oe(o);
8295
+ const d = Me(o);
8290
8296
  return d !== void 0 && (c.children = d), /* @__PURE__ */ g(Ia, { ...c });
8291
8297
  }, ec = ot(ki, {
8292
8298
  chartType: "AndVGauge",
@@ -8342,9 +8348,9 @@ const Ua = [
8342
8348
  ...b
8343
8349
  };
8344
8350
  e && (m.xField = e), n && (m.yField = n), i && (m.seriesField = i), r && (m.colorField = r), o !== void 0 && (m.stack = o === !0 || o === "true"), a !== void 0 && (m.group = a === !0 || a === "true"), c !== void 0 && (m.percent = c === !0 || c === "true");
8345
- const p = Oe(l);
8351
+ const p = Me(l);
8346
8352
  p !== void 0 && (m.conversionTag = p);
8347
- const S = Oe(d);
8353
+ const S = Me(d);
8348
8354
  return S !== void 0 && (m.markBackground = S), console.log("[AndVBar] chartProps:", JSON.stringify(m, null, 2)), /* @__PURE__ */ g(nc, { ...m });
8349
8355
  };
8350
8356
  export {
@@ -8435,7 +8441,7 @@ export {
8435
8441
  Vo as formatByType,
8436
8442
  ln as getAccessToken,
8437
8443
  He as getCoreConfig,
8438
- oe as getDataSetStoreKey,
8444
+ ie as getDataSetStoreKey,
8439
8445
  mn as getDictOptions,
8440
8446
  kt as getNestedValue,
8441
8447
  Nt as getValidateStoreKey,
@@ -8445,7 +8451,7 @@ export {
8445
8451
  xc as mountReactComponent,
8446
8452
  lt as parseAction,
8447
8453
  wt as parseArrayNotation,
8448
- Ne as parseChangeAction,
8454
+ Te as parseChangeAction,
8449
8455
  or as parseClickAction,
8450
8456
  vt as parseNestedPath,
8451
8457
  Oc as parseQueryAction,