@nuwatop/code-canvas-core 0.5.25 → 0.5.26

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,4 +1,4 @@
1
- import { jsx as b, jsxs as lt, Fragment as me } from "react/jsx-runtime";
1
+ import { jsx as S, jsxs as lt, Fragment as me } from "react/jsx-runtime";
2
2
  import { createRoot as gr } from "react-dom/client";
3
3
  import { theme as It, ConfigProvider as Lt, Button as te, Input as Ke, InputNumber as Bn, Space as Jt, Select as Ln, Switch as pr, DatePicker as Kn, TimePicker as vr, Radio as Ue, Checkbox as de, Rate as br, Slider as Sr, Cascader as wr, TreeSelect as Dr, message as Ee, Upload as xr, Image as Xt, AutoComplete as Ar, Form as Be, Transfer as Cr, Segmented as Nr, Modal as zn, Tooltip as kr, Table as Tr, Flex as Vn, Typography as un, Tabs as _r, Tree as Or, Timeline as Er, Steps as Mr, Statistic as Ze, Carousel as $r, Avatar as Rr, Tag as qn, Pagination as Wn, Breadcrumb as jr, Menu as Br, Calendar as Lr, Badge as Hn, Masonry as Kr, Alert as Un, Drawer as zr, Result as Vr, Card as Xe, Divider as yn, Dropdown as qr, Row as Wr, Col as Hr, QRCode as Ur, Splitter as Pe, Spin as Pn, Watermark as Pr, Empty as Yr } from "antd";
4
4
  import { StyleProvider as Gr, createCache as Jr } from "@ant-design/cssinjs";
@@ -54,7 +54,7 @@ const wi = () => {
54
54
  }
55
55
  const c = gr(e);
56
56
  Me.set(e, c);
57
- const l = window.__ANTD_CSSINJS_CONTAINER__, h = window.__ANTD_IFRAME_DOC__, g = !r && l && h && h.defaultView !== null, y = g ? l : window.document.head, m = g ? h : window.document, p = Di(m), d = (((N = window.__GLS_COMPS__) == null ? void 0 : N.theme) || i) === "dark" ? It.darkAlgorithm : It.defaultAlgorithm, u = (D) => /* @__PURE__ */ b(Gr, { cache: p, container: y, hashPriority: "high", children: /* @__PURE__ */ b(
57
+ const l = window.__ANTD_CSSINJS_CONTAINER__, h = window.__ANTD_IFRAME_DOC__, g = !r && l && h && h.defaultView !== null, y = g ? l : window.document.head, m = g ? h : window.document, p = Di(m), d = (((N = window.__GLS_COMPS__) == null ? void 0 : N.theme) || i) === "dark" ? It.darkAlgorithm : It.defaultAlgorithm, u = (D) => /* @__PURE__ */ S(Gr, { cache: p, container: y, hashPriority: "high", children: /* @__PURE__ */ S(
58
58
  Lt,
59
59
  {
60
60
  locale: Fr,
@@ -68,7 +68,7 @@ const wi = () => {
68
68
  // 禁用哈希类名,使用静态 CSS 中的选择器
69
69
  },
70
70
  getPopupContainer: () => e,
71
- children: /* @__PURE__ */ b(t, { ...D })
71
+ children: /* @__PURE__ */ S(t, { ...D })
72
72
  }
73
73
  ) });
74
74
  window.__CURRENT_STYLE_CONTAINER__ = y;
@@ -999,12 +999,12 @@ var an = on(), Ne = /* @__PURE__ */ function() {
999
999
  u.defaultField && Object.keys(s.value).map(function(T) {
1000
1000
  k[T] = u.defaultField;
1001
1001
  }), k = oe({}, k, s.rule.fields);
1002
- var S = {};
1002
+ var b = {};
1003
1003
  Object.keys(k).forEach(function(T) {
1004
- var E = k[T], B = Array.isArray(E) ? E : [E];
1005
- S[T] = B.map(C.bind(null, T));
1004
+ var E = k[T], K = Array.isArray(E) ? E : [E];
1005
+ b[T] = K.map(C.bind(null, T));
1006
1006
  });
1007
- var M = new e(S);
1007
+ var M = new e(b);
1008
1008
  M.messages(l.messages), s.rule.options && (s.rule.options.messages = l.messages, s.rule.options.error = l.error), M.validate(s.value, s.rule.options || l, function(T) {
1009
1009
  var E = [];
1010
1010
  O && O.length && E.push.apply(E, O), T && T.length && E.push.apply(E, T), d(E.length ? E : null);
@@ -1699,14 +1699,14 @@ const Ac = ({
1699
1699
  return;
1700
1700
  }
1701
1701
  if (r && o) {
1702
- const { actionName: E, arg: B } = Ni(r, {
1702
+ const { actionName: E, arg: K } = Ni(r, {
1703
1703
  id: e,
1704
1704
  index: s,
1705
1705
  dataSet: g,
1706
1706
  dataSetField: y,
1707
1707
  ...u
1708
- }), H = X(E, B);
1709
- p(o, H);
1708
+ }), q = X(E, K);
1709
+ p(o, q);
1710
1710
  }
1711
1711
  },
1712
1712
  [
@@ -1725,15 +1725,15 @@ const Ac = ({
1725
1725
  iconPlacement: A,
1726
1726
  clickAction: O,
1727
1727
  tooltip: k,
1728
- ...S
1728
+ ...b
1729
1729
  } = u;
1730
- return /* @__PURE__ */ b(
1730
+ return /* @__PURE__ */ S(
1731
1731
  te,
1732
1732
  {
1733
- ...S,
1733
+ ...b,
1734
1734
  title: D || void 0,
1735
1735
  iconPlacement: A || w,
1736
- icon: x ? /* @__PURE__ */ b(x, {}) : void 0,
1736
+ icon: x ? /* @__PURE__ */ S(x, {}) : void 0,
1737
1737
  onClick: C,
1738
1738
  children: N || l
1739
1739
  }
@@ -1780,27 +1780,27 @@ const or = (e) => {
1780
1780
  addonAfter: N,
1781
1781
  addonBefore: D,
1782
1782
  ...w
1783
- } = e, A = ke(r, o, n), O = A.dataSet, k = A.dataSetField, S = A.sessionId, M = Mt(""), T = Mt(null), E = _((at) => at.addCommand), B = _((at) => at.getDataSet), H = _((at) => at.setDataSet), z = _((at) => at.getProps), $ = _((at) => at.setProps), q = _((at) => at.setValidateResult), K = v(
1784
- () => nt(S, O),
1785
- [S, O]
1783
+ } = e, A = ke(r, o, n), O = A.dataSet, k = A.dataSetField, b = A.sessionId, M = Mt(""), T = Mt(null), E = _((at) => at.addCommand), K = _((at) => at.getDataSet), q = _((at) => at.setDataSet), B = _((at) => at.getProps), $ = _((at) => at.setProps), W = _((at) => at.setValidateResult), z = v(
1784
+ () => nt(b, O),
1785
+ [b, O]
1786
1786
  ), L = _(
1787
1787
  (at) => {
1788
1788
  var ft;
1789
- return S && t ? ((ft = at.propsStore[`${S}_props`]) == null ? void 0 : ft[t]) ?? null : null;
1789
+ return b && t ? ((ft = at.propsStore[`${b}_props`]) == null ? void 0 : ft[t]) ?? null : null;
1790
1790
  }
1791
1791
  ), R = v(
1792
- () => we(S, O),
1793
- [S, O]
1792
+ () => we(b, O),
1793
+ [b, O]
1794
1794
  ), Y = _(
1795
1795
  (at) => {
1796
1796
  var ft;
1797
1797
  return R && k ? ((ft = at.validateStore[R]) == null ? void 0 : ft[k]) ?? "" : "";
1798
1798
  }
1799
1799
  ), Z = _(
1800
- (at) => K && k ? at.getDataSet(K, k) : void 0
1800
+ (at) => z && k ? at.getDataSet(z, k) : void 0
1801
1801
  ), P = v(
1802
- () => O ? nt(S, `${O}_validateAction`) : void 0,
1803
- [S, O]
1802
+ () => O ? nt(b, `${O}_validateAction`) : void 0,
1803
+ [b, O]
1804
1804
  ), U = _(
1805
1805
  (at) => {
1806
1806
  var ft;
@@ -1812,14 +1812,14 @@ const or = (e) => {
1812
1812
  ), I = j(
1813
1813
  (at) => {
1814
1814
  const ft = at ?? "";
1815
- if (S && O && k && q(
1816
- S,
1815
+ if (b && O && k && W(
1816
+ b,
1817
1817
  O,
1818
1818
  k,
1819
1819
  ft
1820
- ), S && t) {
1821
- const At = z(S, t) || {};
1822
- $(S, t, {
1820
+ ), b && t) {
1821
+ const At = B(b, t) || {};
1822
+ $(b, t, {
1823
1823
  ...At,
1824
1824
  validateStatus: ft ? "error" : void 0,
1825
1825
  help: ft
@@ -1827,12 +1827,12 @@ const or = (e) => {
1827
1827
  }
1828
1828
  },
1829
1829
  [
1830
- S,
1830
+ b,
1831
1831
  O,
1832
1832
  k,
1833
1833
  t,
1834
- q,
1835
- z,
1834
+ W,
1835
+ B,
1836
1836
  $
1837
1837
  ]
1838
1838
  ), mt = j(
@@ -1856,14 +1856,14 @@ const or = (e) => {
1856
1856
  l(ft, at);
1857
1857
  return;
1858
1858
  }
1859
- if (K && k && H(K, k, ft), c && S) {
1859
+ if (z && k && q(z, k, ft), c && b) {
1860
1860
  const { actionName: At, arg: J } = Ct(c, ft, {
1861
1861
  id: t,
1862
1862
  dataSet: O,
1863
1863
  dataSetField: k,
1864
1864
  ...et
1865
1865
  });
1866
- E(S, X(At, J));
1866
+ E(b, X(At, J));
1867
1867
  }
1868
1868
  p && (T.current && clearTimeout(T.current), T.current = setTimeout(() => {
1869
1869
  T.current = null, mt(ft);
@@ -1871,11 +1871,11 @@ const or = (e) => {
1871
1871
  },
1872
1872
  [
1873
1873
  l,
1874
- K,
1874
+ z,
1875
1875
  k,
1876
- H,
1876
+ q,
1877
1877
  c,
1878
- S,
1878
+ b,
1879
1879
  t,
1880
1880
  O,
1881
1881
  k,
@@ -1886,13 +1886,13 @@ const or = (e) => {
1886
1886
  ]
1887
1887
  ), bt = j(() => {
1888
1888
  if (!f) return;
1889
- const at = K && k ? String(B(K, k) ?? "") : M.current;
1889
+ const at = z && k ? String(K(z, k) ?? "") : M.current;
1890
1890
  mt(at);
1891
1891
  }, [
1892
1892
  f,
1893
- K,
1893
+ z,
1894
1894
  k,
1895
- B,
1895
+ K,
1896
1896
  mt
1897
1897
  ]), ct = j(
1898
1898
  (at) => {
@@ -1901,20 +1901,20 @@ const or = (e) => {
1901
1901
  At(at);
1902
1902
  return;
1903
1903
  }
1904
- if (u && S) {
1904
+ if (u && b) {
1905
1905
  const { actionName: J, arg: Q } = Ct(u, tt, {
1906
1906
  id: t,
1907
1907
  dataSet: O,
1908
1908
  dataSetField: k,
1909
1909
  ...et
1910
1910
  });
1911
- E(S, X(J, Q));
1911
+ E(b, X(J, Q));
1912
1912
  }
1913
1913
  },
1914
1914
  [
1915
1915
  et,
1916
1916
  u,
1917
- S,
1917
+ b,
1918
1918
  tt,
1919
1919
  t,
1920
1920
  O,
@@ -1927,19 +1927,19 @@ const or = (e) => {
1927
1927
  ft();
1928
1928
  return;
1929
1929
  }
1930
- if (x && S) {
1930
+ if (x && b) {
1931
1931
  const { actionName: At, arg: J } = Ct(x, "", {
1932
1932
  id: t,
1933
1933
  dataSet: O,
1934
1934
  dataSetField: k,
1935
1935
  ...et
1936
1936
  });
1937
- E(S, X(At, J));
1937
+ E(b, X(At, J));
1938
1938
  }
1939
1939
  }, [
1940
1940
  et,
1941
1941
  x,
1942
- S,
1942
+ b,
1943
1943
  t,
1944
1944
  O,
1945
1945
  k,
@@ -1951,16 +1951,16 @@ const or = (e) => {
1951
1951
  },
1952
1952
  []
1953
1953
  ), xt(() => {
1954
- if (U == null || !K || !k)
1954
+ if (U == null || !z || !k)
1955
1955
  return;
1956
- const at = String(B(K, k) ?? "");
1956
+ const at = String(K(z, k) ?? "");
1957
1957
  mt(at);
1958
- }, [U, K, k, B, mt]);
1958
+ }, [U, z, k, K, mt]);
1959
1959
  const it = v(() => Ro(y), [y]), Dt = v(
1960
1960
  () => it ? { components: { Input: it } } : void 0,
1961
1961
  [it]
1962
- ), _t = i ? void 0 : S && O && k ? Y : (L == null ? void 0 : L.help) ?? "", gt = /* @__PURE__ */ lt(me, { children: [
1963
- /* @__PURE__ */ b(
1962
+ ), _t = i ? void 0 : b && O && k ? Y : (L == null ? void 0 : L.help) ?? "", gt = /* @__PURE__ */ lt(me, { children: [
1963
+ /* @__PURE__ */ S(
1964
1964
  Ke,
1965
1965
  {
1966
1966
  ...et,
@@ -1973,9 +1973,9 @@ const or = (e) => {
1973
1973
  styles: g
1974
1974
  }
1975
1975
  ),
1976
- _t && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: _t })
1976
+ _t && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: _t })
1977
1977
  ] });
1978
- return Dt ? /* @__PURE__ */ b(Lt, { theme: Dt, children: gt }) : gt;
1978
+ return Dt ? /* @__PURE__ */ S(Lt, { theme: Dt, children: gt }) : gt;
1979
1979
  };
1980
1980
  or.displayName = "AndInput";
1981
1981
  const Cc = qt.memo(or), An = 200, Nc = ({
@@ -2014,7 +2014,7 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2014
2014
  sessionId: t,
2015
2015
  id: e,
2016
2016
  develop: n
2017
- }), k = v(() => w !== void 0 ? w : (D == null ? void 0 : D.value) !== void 0 ? D.value : s, [w, D == null ? void 0 : D.value, s]), S = j(
2017
+ }), k = v(() => w !== void 0 ? w : (D == null ? void 0 : D.value) !== void 0 ? D.value : s, [w, D == null ? void 0 : D.value, s]), b = j(
2018
2018
  (P, U, tt) => {
2019
2019
  P && t && u(t, X(P, { type: U, value: tt }));
2020
2020
  },
@@ -2027,9 +2027,9 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2027
2027
  }
2028
2028
  N && r && x(N, r, P), c && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
2029
2029
  C.current = null, A(P);
2030
- }, An)), S(l, "change", P);
2030
+ }, An)), b(l, "change", P);
2031
2031
  },
2032
- [p, N, r, x, c, A, l, S]
2032
+ [p, N, r, x, c, A, l, b]
2033
2033
  ), T = j(() => {
2034
2034
  a && A(k);
2035
2035
  }, [a, A, k]), E = j(
@@ -2057,14 +2057,14 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2057
2057
  r,
2058
2058
  u
2059
2059
  ]
2060
- ), B = j(() => {
2060
+ ), K = j(() => {
2061
2061
  if (p) {
2062
2062
  p(null);
2063
2063
  return;
2064
2064
  }
2065
2065
  if (N && r && x(N, r, null), c && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
2066
2066
  C.current = null, A(null);
2067
- }, An)), S(l, "change", null), g && t) {
2067
+ }, An)), b(l, "change", null), g && t) {
2068
2068
  const { actionName: P, arg: U } = Ct(g, null, {
2069
2069
  id: e,
2070
2070
  dataSet: i,
@@ -2079,7 +2079,7 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2079
2079
  x,
2080
2080
  c,
2081
2081
  A,
2082
- S,
2082
+ b,
2083
2083
  l,
2084
2084
  g,
2085
2085
  t,
@@ -2087,11 +2087,11 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2087
2087
  i,
2088
2088
  r,
2089
2089
  u
2090
- ]), H = j(
2090
+ ]), q = j(
2091
2091
  (P, U) => {
2092
- S(m, "step", { value: P, type: U.type });
2092
+ b(m, "step", { value: P, type: U.type });
2093
2093
  },
2094
- [m, S]
2094
+ [m, b]
2095
2095
  );
2096
2096
  xt(
2097
2097
  () => () => {
@@ -2101,12 +2101,12 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2101
2101
  ), xt(() => {
2102
2102
  f !== void 0 && k === void 0 && N && r && x(N, r, f);
2103
2103
  }, [f, k, N, r, x]);
2104
- const z = v(
2104
+ const B = v(
2105
2105
  () => Zt(d, D ?? void 0),
2106
2106
  [d, D]
2107
- ), { addonBefore: $, addonAfter: q, style: K, suffix: L, ...R } = z, Y = v(() => {
2107
+ ), { addonBefore: $, addonAfter: W, style: z, suffix: L, ...R } = B, Y = v(() => {
2108
2108
  if (!(y && k !== null && k !== void 0)) return L;
2109
- const U = /* @__PURE__ */ b(
2109
+ const U = /* @__PURE__ */ S(
2110
2110
  "span",
2111
2111
  {
2112
2112
  role: "button",
@@ -2114,16 +2114,16 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2114
2114
  style: { cursor: "pointer", marginInlineStart: 4 },
2115
2115
  onMouseDown: (tt) => tt.preventDefault(),
2116
2116
  onClick: (tt) => {
2117
- tt.stopPropagation(), B();
2117
+ tt.stopPropagation(), K();
2118
2118
  },
2119
- children: /* @__PURE__ */ b(ni, {})
2119
+ children: /* @__PURE__ */ S(ni, {})
2120
2120
  }
2121
2121
  );
2122
2122
  return L == null || L === !1 ? U : /* @__PURE__ */ lt(me, { children: [
2123
2123
  L,
2124
2124
  U
2125
2125
  ] });
2126
- }, [y, k, L, B]), Z = /* @__PURE__ */ b(
2126
+ }, [y, k, L, K]), Z = /* @__PURE__ */ S(
2127
2127
  Bn,
2128
2128
  {
2129
2129
  ...R,
@@ -2136,15 +2136,15 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2136
2136
  onChange: M,
2137
2137
  onBlur: T,
2138
2138
  onPressEnter: E,
2139
- onStep: H,
2139
+ onStep: q,
2140
2140
  suffix: Y,
2141
2141
  status: O ? "error" : void 0,
2142
- style: { width: "100%", ...K }
2142
+ style: { width: "100%", ...z }
2143
2143
  }
2144
2144
  );
2145
2145
  return /* @__PURE__ */ lt("div", { style: { width: "100%" }, children: [
2146
- $ || q ? /* @__PURE__ */ lt(Jt.Compact, { style: { width: "100%" }, children: [
2147
- $ && /* @__PURE__ */ b(
2146
+ $ || W ? /* @__PURE__ */ lt(Jt.Compact, { style: { width: "100%" }, children: [
2147
+ $ && /* @__PURE__ */ S(
2148
2148
  "div",
2149
2149
  {
2150
2150
  style: {
@@ -2162,7 +2162,7 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2162
2162
  }
2163
2163
  ),
2164
2164
  Z,
2165
- q && /* @__PURE__ */ b(
2165
+ W && /* @__PURE__ */ S(
2166
2166
  "div",
2167
2167
  {
2168
2168
  style: {
@@ -2176,11 +2176,11 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2176
2176
  color: "rgba(0, 0, 0, 0.88)",
2177
2177
  fontSize: 14
2178
2178
  },
2179
- children: q
2179
+ children: W
2180
2180
  }
2181
2181
  )
2182
2182
  ] }) : Z,
2183
- O && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
2183
+ O && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
2184
2184
  ] });
2185
2185
  }, { TextArea: Bo } = Ke, Lo = 200, kc = ({
2186
2186
  id: e,
@@ -2199,17 +2199,17 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2199
2199
  defaultValue: p,
2200
2200
  ...f
2201
2201
  }) => {
2202
- const s = ke(i, r, t), d = s.dataSet, u = s.dataSetField, x = s.sessionId, C = _((z) => z.addCommand), N = _((z) => z.setDataSet), D = Mt(null), w = v(
2202
+ const s = ke(i, r, t), d = s.dataSet, u = s.dataSetField, x = s.sessionId, C = _((B) => B.addCommand), N = _((B) => B.setDataSet), D = Mt(null), w = v(
2203
2203
  () => nt(x, d),
2204
2204
  [x, d]
2205
2205
  ), A = _(
2206
- (z) => {
2206
+ (B) => {
2207
2207
  var $;
2208
- return x && e ? (($ = z.propsStore[`${x}_props`]) == null ? void 0 : $[e]) ?? null : null;
2208
+ return x && e ? (($ = B.propsStore[`${x}_props`]) == null ? void 0 : $[e]) ?? null : null;
2209
2209
  }
2210
2210
  ), O = _(
2211
- (z) => w && u ? z.getDataSet(w, u) : void 0
2212
- ), { validate: k, help: S } = Kt({
2211
+ (B) => w && u ? B.getDataSet(w, u) : void 0
2212
+ ), { validate: k, help: b } = Kt({
2213
2213
  rules: o,
2214
2214
  dataSet: d,
2215
2215
  dataSetField: u,
@@ -2217,19 +2217,19 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2217
2217
  id: e,
2218
2218
  develop: n
2219
2219
  }), M = v(() => O !== void 0 ? O : (A == null ? void 0 : A.value) !== void 0 ? A.value : m ?? p, [O, A == null ? void 0 : A.value, m, p]), T = j(
2220
- (z) => {
2221
- const $ = z.target.value;
2220
+ (B) => {
2221
+ const $ = B.target.value;
2222
2222
  if (y) {
2223
- y($, z);
2223
+ y($, B);
2224
2224
  return;
2225
2225
  }
2226
2226
  if (w && u && N(w, u, $), l && x) {
2227
- const { actionName: q, arg: K } = Ct(l, $, {
2227
+ const { actionName: W, arg: z } = Ct(l, $, {
2228
2228
  id: e,
2229
2229
  dataSet: d,
2230
2230
  dataSetField: u
2231
2231
  });
2232
- C(x, X(q, K));
2232
+ C(x, X(W, z));
2233
2233
  }
2234
2234
  c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
2235
2235
  D.current = null, k($);
@@ -2249,19 +2249,19 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2249
2249
  ]
2250
2250
  ), E = j(() => {
2251
2251
  a && k(M);
2252
- }, [a, k, M]), B = j(
2253
- (z) => {
2252
+ }, [a, k, M]), K = j(
2253
+ (B) => {
2254
2254
  if (f.onPressEnter) {
2255
- f.onPressEnter(z);
2255
+ f.onPressEnter(B);
2256
2256
  return;
2257
2257
  }
2258
- if (h && x && !z.shiftKey) {
2259
- const { actionName: $, arg: q } = Ct(h, M, {
2258
+ if (h && x && !B.shiftKey) {
2259
+ const { actionName: $, arg: W } = Ct(h, M, {
2260
2260
  id: e,
2261
2261
  dataSet: d,
2262
2262
  dataSetField: u
2263
2263
  });
2264
- C(x, X($, q));
2264
+ C(x, X($, W));
2265
2265
  }
2266
2266
  },
2267
2267
  [
@@ -2274,18 +2274,18 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2274
2274
  u,
2275
2275
  C
2276
2276
  ]
2277
- ), H = j(() => {
2277
+ ), q = j(() => {
2278
2278
  if (f.onClear) {
2279
2279
  f.onClear();
2280
2280
  return;
2281
2281
  }
2282
2282
  if (g && x) {
2283
- const { actionName: z, arg: $ } = Ct(g, "", {
2283
+ const { actionName: B, arg: $ } = Ct(g, "", {
2284
2284
  id: e,
2285
2285
  dataSet: d,
2286
2286
  dataSetField: u
2287
2287
  });
2288
- C(x, X(z, $));
2288
+ C(x, X(B, $));
2289
2289
  }
2290
2290
  }, [
2291
2291
  f.onClear,
@@ -2302,7 +2302,7 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2302
2302
  },
2303
2303
  []
2304
2304
  ), /* @__PURE__ */ lt("div", { style: { width: "100%" }, children: [
2305
- /* @__PURE__ */ b(
2305
+ /* @__PURE__ */ S(
2306
2306
  Bo,
2307
2307
  {
2308
2308
  ...f,
@@ -2310,12 +2310,12 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2310
2310
  value: M,
2311
2311
  onChange: T,
2312
2312
  onBlur: E,
2313
- onPressEnter: B,
2314
- onClear: H,
2315
- status: S ? "error" : void 0
2313
+ onPressEnter: K,
2314
+ onClear: q,
2315
+ status: b ? "error" : void 0
2316
2316
  }
2317
2317
  ),
2318
- S && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: S })
2318
+ b && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: b })
2319
2319
  ] });
2320
2320
  }, { Password: Ko } = Ke, zo = 200, Tc = ({
2321
2321
  id: e,
@@ -2359,12 +2359,12 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2359
2359
  return;
2360
2360
  }
2361
2361
  if (x && r && d(x, r, E), l && t) {
2362
- const { actionName: B, arg: H } = Ct(l, E, {
2362
+ const { actionName: K, arg: q } = Ct(l, E, {
2363
2363
  id: e,
2364
2364
  dataSet: i,
2365
2365
  dataSetField: r
2366
2366
  });
2367
- s(t, X(B, H));
2367
+ s(t, X(K, q));
2368
2368
  }
2369
2369
  c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
2370
2370
  u.current = null, D(E);
@@ -2384,19 +2384,19 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2384
2384
  ]
2385
2385
  ), k = j(() => {
2386
2386
  a && D(A);
2387
- }, [a, D, A]), S = j(
2387
+ }, [a, D, A]), b = j(
2388
2388
  (T) => {
2389
2389
  if (f.onPressEnter) {
2390
2390
  f.onPressEnter(T);
2391
2391
  return;
2392
2392
  }
2393
2393
  if (h && t) {
2394
- const { actionName: E, arg: B } = Ct(h, A, {
2394
+ const { actionName: E, arg: K } = Ct(h, A, {
2395
2395
  id: e,
2396
2396
  dataSet: i,
2397
2397
  dataSetField: r
2398
2398
  });
2399
- s(t, X(E, B));
2399
+ s(t, X(E, K));
2400
2400
  }
2401
2401
  },
2402
2402
  [
@@ -2429,7 +2429,7 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2429
2429
  },
2430
2430
  []
2431
2431
  ), /* @__PURE__ */ lt("div", { style: { width: "100%" }, children: [
2432
- /* @__PURE__ */ b(
2432
+ /* @__PURE__ */ S(
2433
2433
  Ko,
2434
2434
  {
2435
2435
  ...f,
@@ -2437,12 +2437,12 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2437
2437
  value: A,
2438
2438
  onChange: O,
2439
2439
  onBlur: k,
2440
- onPressEnter: S,
2440
+ onPressEnter: b,
2441
2441
  onClear: M,
2442
2442
  status: w ? "error" : void 0
2443
2443
  }
2444
2444
  ),
2445
- w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
2445
+ w && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
2446
2446
  ] });
2447
2447
  }, { Search: Vo } = Ke, _c = ({
2448
2448
  id: e,
@@ -2480,7 +2480,7 @@ const Cc = qt.memo(or), An = 200, Nc = ({
2480
2480
  }
2481
2481
  a && t && m(t, X(a, N));
2482
2482
  }, [l, a, t, m]);
2483
- return /* @__PURE__ */ b(Vo, { ...y, disabled: n ? !1 : y.disabled, value: u, onChange: x, onSearch: C });
2483
+ return /* @__PURE__ */ S(Vo, { ...y, disabled: n ? !1 : y.disabled, value: u, onChange: x, onSearch: C });
2484
2484
  }, qo = 200, Wo = "_selected";
2485
2485
  function ue(e) {
2486
2486
  var t;
@@ -2556,20 +2556,20 @@ const Oc = ({
2556
2556
  dropdownMatchSelectWidth: A,
2557
2557
  ...O
2558
2558
  }) => {
2559
- const k = _((rt) => rt.addCommand), S = _((rt) => rt.setDataSet), M = Mt(null), T = Ce(ce), E = v(
2559
+ const k = _((rt) => rt.addCommand), b = _((rt) => rt.setDataSet), M = Mt(null), T = Ce(ce), E = v(
2560
2560
  () => nt(t, i),
2561
2561
  [t, i]
2562
- ), B = d ?? (T == null ? void 0 : T.index), H = _(
2562
+ ), K = d ?? (T == null ? void 0 : T.index), q = _(
2563
2563
  (rt) => {
2564
2564
  var it;
2565
2565
  return t && e ? ((it = rt.propsStore[`${t}_props`]) == null ? void 0 : it[e]) ?? null : null;
2566
2566
  }
2567
- ), z = _(
2567
+ ), B = _(
2568
2568
  (rt) => E && r ? rt.getDataSet(E, r) : void 0
2569
2569
  ), $ = v(
2570
- () => (H == null ? void 0 : H.optionsCfg) != null ? H.optionsCfg : c,
2571
- [H == null ? void 0 : H.optionsCfg, c]
2572
- ), { options: q, loading: K } = Te(
2570
+ () => (q == null ? void 0 : q.optionsCfg) != null ? q.optionsCfg : c,
2571
+ [q == null ? void 0 : q.optionsCfg, c]
2572
+ ), { options: W, loading: z } = Te(
2573
2573
  w || (o ? a : void 0)
2574
2574
  ), { options: L, loading: R } = dn(
2575
2575
  $ == null ? void 0 : $.url,
@@ -2580,17 +2580,17 @@ const Oc = ({
2580
2580
  params: $ == null ? void 0 : $.params,
2581
2581
  field: $ == null ? void 0 : $.field
2582
2582
  }
2583
- ), Y = K || R, { validate: Z, help: P } = Kt({
2583
+ ), Y = z || R, { validate: Z, help: P } = Kt({
2584
2584
  rules: l,
2585
2585
  dataSet: i,
2586
2586
  dataSetField: r,
2587
2587
  sessionId: t,
2588
2588
  id: e,
2589
2589
  develop: n
2590
- }), U = v(() => z != null && z !== "" ? z : (H == null ? void 0 : H.value) !== void 0 ? H.value : s ?? f, [z, H == null ? void 0 : H.value, s, f]), tt = v(
2591
- () => Zt(O, H ?? void 0),
2592
- [O, H]
2593
- ), et = v(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url && L.length > 0 ? L : (w || o && a) && q.length > 0 ? q : p || [], [H == null ? void 0 : H.options, $ == null ? void 0 : $.url, L, w, o, a, q, p]), I = v(() => {
2590
+ }), U = v(() => B != null && B !== "" ? B : (q == null ? void 0 : q.value) !== void 0 ? q.value : s ?? f, [B, q == null ? void 0 : q.value, s, f]), tt = v(
2591
+ () => Zt(O, q ?? void 0),
2592
+ [O, q]
2593
+ ), et = v(() => q != null && q.options && Array.isArray(q.options) ? q.options : $ != null && $.url && L.length > 0 ? L : (w || o && a) && W.length > 0 ? W : p || [], [q == null ? void 0 : q.options, $ == null ? void 0 : $.url, L, w, o, a, W, p]), I = v(() => {
2594
2594
  if (et.length === 0) return U;
2595
2595
  if (Array.isArray(U))
2596
2596
  return U.map((it) => {
@@ -2606,7 +2606,7 @@ const Oc = ({
2606
2606
  return;
2607
2607
  }
2608
2608
  if (E && r) {
2609
- S(E, r, rt);
2609
+ b(E, r, rt);
2610
2610
  const Dt = Cn(
2611
2611
  rt,
2612
2612
  it,
@@ -2614,7 +2614,7 @@ const Oc = ({
2614
2614
  tt.labelInValue,
2615
2615
  tt.mode
2616
2616
  );
2617
- S(E, mt, Dt);
2617
+ b(E, mt, Dt);
2618
2618
  }
2619
2619
  if (g && (M.current && clearTimeout(M.current), M.current = setTimeout(() => {
2620
2620
  M.current = null, Z(rt);
@@ -2623,7 +2623,7 @@ const Oc = ({
2623
2623
  id: e,
2624
2624
  dataSet: i,
2625
2625
  dataSetField: r,
2626
- index: B
2626
+ index: K
2627
2627
  });
2628
2628
  k(t, X(Dt, _t));
2629
2629
  }
@@ -2632,13 +2632,13 @@ const Oc = ({
2632
2632
  m,
2633
2633
  E,
2634
2634
  r,
2635
- S,
2635
+ b,
2636
2636
  g,
2637
2637
  Z,
2638
2638
  y,
2639
2639
  t,
2640
2640
  e,
2641
- B,
2641
+ K,
2642
2642
  k,
2643
2643
  et,
2644
2644
  tt.labelInValue,
@@ -2655,7 +2655,7 @@ const Oc = ({
2655
2655
  tt.labelInValue,
2656
2656
  tt.mode
2657
2657
  ), it = _.getState().getDataSet(E, mt);
2658
- Ho(it, rt) || S(E, mt, rt);
2658
+ Ho(it, rt) || b(E, mt, rt);
2659
2659
  }, [
2660
2660
  m,
2661
2661
  E,
@@ -2665,7 +2665,7 @@ const Oc = ({
2665
2665
  et,
2666
2666
  tt.labelInValue,
2667
2667
  tt.mode,
2668
- S
2668
+ b
2669
2669
  ]);
2670
2670
  const bt = j(() => {
2671
2671
  h && Z(I);
@@ -2678,7 +2678,7 @@ const Oc = ({
2678
2678
  );
2679
2679
  const ct = j((rt, it) => ((it == null ? void 0 : it.label) ?? "").toLowerCase().includes(rt.toLowerCase()), []);
2680
2680
  return /* @__PURE__ */ lt("div", { style: { width: "100%" }, children: [
2681
- /* @__PURE__ */ b(
2681
+ /* @__PURE__ */ S(
2682
2682
  Ln,
2683
2683
  {
2684
2684
  ...tt,
@@ -2694,7 +2694,7 @@ const Oc = ({
2694
2694
  style: { width: "100%", ...tt.style }
2695
2695
  }
2696
2696
  ),
2697
- P && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: P })
2697
+ P && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: P })
2698
2698
  ] });
2699
2699
  }, Ec = ({
2700
2700
  id: e,
@@ -2759,7 +2759,7 @@ const Oc = ({
2759
2759
  a && x(N);
2760
2760
  }, [a, x, N]);
2761
2761
  return /* @__PURE__ */ lt("div", { style: { display: "inline-block" }, onBlur: w, children: [
2762
- /* @__PURE__ */ b(
2762
+ /* @__PURE__ */ S(
2763
2763
  pr,
2764
2764
  {
2765
2765
  ...m,
@@ -2768,7 +2768,7 @@ const Oc = ({
2768
2768
  onChange: D
2769
2769
  }
2770
2770
  ),
2771
- C && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
2771
+ C && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
2772
2772
  ] });
2773
2773
  }, Mc = ({
2774
2774
  id: e,
@@ -2786,16 +2786,16 @@ const Oc = ({
2786
2786
  defaultValue: m,
2787
2787
  ...p
2788
2788
  }) => {
2789
- const f = _((S) => S.addCommand), s = _((S) => S.setDataSet), d = v(
2789
+ const f = _((b) => b.addCommand), s = _((b) => b.setDataSet), d = v(
2790
2790
  () => nt(t, i),
2791
2791
  [t, i]
2792
2792
  ), u = _(
2793
- (S) => {
2793
+ (b) => {
2794
2794
  var M;
2795
- return t && e ? ((M = S.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
2795
+ return t && e ? ((M = b.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
2796
2796
  }
2797
2797
  ), x = _(
2798
- (S) => d && r ? S.getDataSet(d, r) : void 0
2798
+ (b) => d && r ? b.getDataSet(d, r) : void 0
2799
2799
  ), { validate: C, help: N } = Kt({
2800
2800
  rules: c,
2801
2801
  dataSet: i,
@@ -2803,52 +2803,52 @@ const Oc = ({
2803
2803
  sessionId: t,
2804
2804
  id: e,
2805
2805
  develop: n
2806
- }), D = j((S) => {
2807
- if (!S) return null;
2808
- if (Yt.isDayjs(S)) return S;
2809
- if (typeof S == "string") {
2810
- const M = Yt(S, a);
2806
+ }), D = j((b) => {
2807
+ if (!b) return null;
2808
+ if (Yt.isDayjs(b)) return b;
2809
+ if (typeof b == "string") {
2810
+ const M = Yt(b, a);
2811
2811
  return M.isValid() ? M : null;
2812
2812
  }
2813
2813
  return null;
2814
2814
  }, [a]), w = v(() => {
2815
- const S = x ?? (u == null ? void 0 : u.value) ?? y ?? m;
2816
- return D(S);
2815
+ const b = x ?? (u == null ? void 0 : u.value) ?? y ?? m;
2816
+ return D(b);
2817
2817
  }, [x, u == null ? void 0 : u.value, y, m, D]), A = j(
2818
- (S, M) => {
2818
+ (b, M) => {
2819
2819
  if (g) {
2820
- g(S, M);
2820
+ g(b, M);
2821
2821
  return;
2822
2822
  }
2823
2823
  const T = Array.isArray(M) ? M[0] : M;
2824
2824
  if (d && r && s(d, r, T), h && C(T), o && t) {
2825
- const { actionName: E, arg: B } = Ct(o, T, {
2825
+ const { actionName: E, arg: K } = Ct(o, T, {
2826
2826
  id: e,
2827
2827
  dataSet: i,
2828
2828
  dataSetField: r
2829
2829
  });
2830
- f(t, X(E, B));
2830
+ f(t, X(E, K));
2831
2831
  }
2832
2832
  },
2833
2833
  [g, d, r, s, h, C, o, t, e, f]
2834
2834
  );
2835
2835
  xt(() => {
2836
2836
  if (m && w === null && d && r) {
2837
- const S = Yt(m).format(a);
2838
- s(d, r, S);
2837
+ const b = Yt(m).format(a);
2838
+ s(d, r, b);
2839
2839
  }
2840
2840
  }, [m, w, d, r, s, a]);
2841
2841
  const O = j(() => {
2842
2842
  if (l) {
2843
- const S = w ? w.format(a) : null;
2844
- C(S);
2843
+ const b = w ? w.format(a) : null;
2844
+ C(b);
2845
2845
  }
2846
2846
  }, [l, C, w, a]), k = v(
2847
2847
  () => Zt(p, u ?? void 0),
2848
2848
  [p, u]
2849
2849
  );
2850
2850
  return /* @__PURE__ */ lt("div", { onBlur: O, style: { display: "flex" }, children: [
2851
- /* @__PURE__ */ b(
2851
+ /* @__PURE__ */ S(
2852
2852
  Kn,
2853
2853
  {
2854
2854
  ...k,
@@ -2859,7 +2859,7 @@ const Oc = ({
2859
2859
  style: { width: "100%", ...k.style }
2860
2860
  }
2861
2861
  ),
2862
- N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
2862
+ N && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
2863
2863
  ] });
2864
2864
  }, $c = ({
2865
2865
  id: e,
@@ -2877,7 +2877,7 @@ const Oc = ({
2877
2877
  validateOnBlur: m,
2878
2878
  ...p
2879
2879
  }) => {
2880
- const f = _((S) => S.addCommand), s = _((S) => S.getDataSet), d = _((S) => S.setDataSet), u = v(
2880
+ const f = _((b) => b.addCommand), s = _((b) => b.getDataSet), d = _((b) => b.setDataSet), u = v(
2881
2881
  () => nt(t, i),
2882
2882
  [t, i]
2883
2883
  ), x = v(() => {
@@ -2889,29 +2889,29 @@ const Oc = ({
2889
2889
  sessionId: t,
2890
2890
  id: e,
2891
2891
  develop: n
2892
- }), D = j((S) => {
2893
- if (!S) return null;
2894
- if (Yt.isDayjs(S)) return S;
2895
- if (typeof S == "string") {
2896
- const M = Yt(S, a);
2892
+ }), D = j((b) => {
2893
+ if (!b) return null;
2894
+ if (Yt.isDayjs(b)) return b;
2895
+ if (typeof b == "string") {
2896
+ const M = Yt(b, a);
2897
2897
  return M.isValid() ? M : null;
2898
2898
  }
2899
2899
  return null;
2900
- }, [a]), w = v(() => D(x ?? l ?? h), [x, l, h, D]), A = j((S, M) => {
2900
+ }, [a]), w = v(() => D(x ?? l ?? h), [x, l, h, D]), A = j((b, M) => {
2901
2901
  if (c) {
2902
- c(S, M);
2902
+ c(b, M);
2903
2903
  return;
2904
2904
  }
2905
2905
  const T = M || "";
2906
2906
  if (u && r && d(u, r, T), y && C(T), o && t) {
2907
- const { actionName: E, arg: B } = Ct(o, T, { id: e, dataSet: i, dataSetField: r });
2908
- f(t, X(E, B));
2907
+ const { actionName: E, arg: K } = Ct(o, T, { id: e, dataSet: i, dataSetField: r });
2908
+ f(t, X(E, K));
2909
2909
  }
2910
2910
  }, [c, u, r, d, y, C, o, t, e, f]), O = j(() => {
2911
2911
  m && C(w ? w.format(a) : "");
2912
2912
  }, [m, C, w, a]), k = N ? "error" : void 0;
2913
2913
  return /* @__PURE__ */ lt(me, { children: [
2914
- /* @__PURE__ */ b(
2914
+ /* @__PURE__ */ S(
2915
2915
  vr,
2916
2916
  {
2917
2917
  ...p,
@@ -2924,7 +2924,7 @@ const Oc = ({
2924
2924
  status: k
2925
2925
  }
2926
2926
  ),
2927
- N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: N })
2927
+ N && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: N })
2928
2928
  ] });
2929
2929
  }, { RangePicker: Uo } = Kn, Rc = ({
2930
2930
  id: e,
@@ -2942,16 +2942,16 @@ const Oc = ({
2942
2942
  defaultValue: m,
2943
2943
  ...p
2944
2944
  }) => {
2945
- const f = _((S) => S.addCommand), s = _((S) => S.setDataSet), d = v(
2945
+ const f = _((b) => b.addCommand), s = _((b) => b.setDataSet), d = v(
2946
2946
  () => nt(t, i),
2947
2947
  [t, i]
2948
2948
  ), u = _(
2949
- (S) => {
2949
+ (b) => {
2950
2950
  var M;
2951
- return t && e ? ((M = S.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
2951
+ return t && e ? ((M = b.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
2952
2952
  }
2953
2953
  ), x = _(
2954
- (S) => d && r ? S.getDataSet(d, r) : void 0
2954
+ (b) => d && r ? b.getDataSet(d, r) : void 0
2955
2955
  ), { validate: C, help: N } = Kt({
2956
2956
  rules: c,
2957
2957
  dataSet: i,
@@ -2959,20 +2959,20 @@ const Oc = ({
2959
2959
  sessionId: t,
2960
2960
  id: e,
2961
2961
  develop: n
2962
- }), D = j((S) => {
2963
- if (!S || !Array.isArray(S) || S.length !== 2) return null;
2964
- const [M, T] = S, E = Yt.isDayjs(M) ? M : Yt(M, a), B = Yt.isDayjs(T) ? T : Yt(T, a);
2965
- return E.isValid() && B.isValid() ? [E, B] : null;
2962
+ }), D = j((b) => {
2963
+ if (!b || !Array.isArray(b) || b.length !== 2) return null;
2964
+ const [M, T] = b, E = Yt.isDayjs(M) ? M : Yt(M, a), K = Yt.isDayjs(T) ? T : Yt(T, a);
2965
+ return E.isValid() && K.isValid() ? [E, K] : null;
2966
2966
  }, [a]), w = v(() => {
2967
- const S = x ?? (u == null ? void 0 : u.value) ?? y ?? m;
2968
- return D(S);
2967
+ const b = x ?? (u == null ? void 0 : u.value) ?? y ?? m;
2968
+ return D(b);
2969
2969
  }, [x, u == null ? void 0 : u.value, y, m, D]), A = v(
2970
2970
  () => Zt(p, u ?? void 0),
2971
2971
  [p, u]
2972
2972
  ), O = j(
2973
- (S, M) => {
2973
+ (b, M) => {
2974
2974
  if (g) {
2975
- g(S, M);
2975
+ g(b, M);
2976
2976
  return;
2977
2977
  }
2978
2978
  if (d && r && s(d, r, M), h && C(M), o && t) {
@@ -2986,11 +2986,11 @@ const Oc = ({
2986
2986
  },
2987
2987
  [g, d, r, s, h, C, o, t, e, f]
2988
2988
  ), k = j(() => {
2989
- var S, M;
2990
- l && C(w ? [(S = w[0]) == null ? void 0 : S.format(a), (M = w[1]) == null ? void 0 : M.format(a)] : null);
2989
+ var b, M;
2990
+ l && C(w ? [(b = w[0]) == null ? void 0 : b.format(a), (M = w[1]) == null ? void 0 : M.format(a)] : null);
2991
2991
  }, [l, C, w, a]);
2992
2992
  return /* @__PURE__ */ lt("div", { onBlur: k, children: [
2993
- /* @__PURE__ */ b(
2993
+ /* @__PURE__ */ S(
2994
2994
  Uo,
2995
2995
  {
2996
2996
  ...A,
@@ -3001,7 +3001,7 @@ const Oc = ({
3001
3001
  style: { width: "100%", ...A.style }
3002
3002
  }
3003
3003
  ),
3004
- N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
3004
+ N && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
3005
3005
  ] });
3006
3006
  }, jc = ({
3007
3007
  id: e,
@@ -3025,17 +3025,17 @@ const Oc = ({
3025
3025
  remoteUrl: x,
3026
3026
  ...C
3027
3027
  }) => {
3028
- const N = _((K) => K.addCommand), D = _((K) => K.setDataSet), w = v(
3028
+ const N = _((z) => z.addCommand), D = _((z) => z.setDataSet), w = v(
3029
3029
  () => nt(t, i),
3030
3030
  [t, i]
3031
3031
  ), A = _(
3032
- (K) => {
3032
+ (z) => {
3033
3033
  var L;
3034
- return t && e ? ((L = K.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
3034
+ return t && e ? ((L = z.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
3035
3035
  }
3036
3036
  ), O = _(
3037
- (K) => w && r ? K.getDataSet(w, r) : void 0
3038
- ), { validate: k, help: S } = Kt({
3037
+ (z) => w && r ? z.getDataSet(w, r) : void 0
3038
+ ), { validate: k, help: b } = Kt({
3039
3039
  rules: g,
3040
3040
  dataSet: i,
3041
3041
  dataSetField: r,
@@ -3049,16 +3049,16 @@ const Oc = ({
3049
3049
  labelKey: (a == null ? void 0 : a.labelKey) || "label",
3050
3050
  immediate: !!(a != null && a.url)
3051
3051
  }
3052
- ), B = v(() => A != null && A.options ? A.options : a != null && a.url && E.length > 0 ? E : d && T.length > 0 ? T : o, [A == null ? void 0 : A.options, a == null ? void 0 : a.url, E, d, T, o]), H = v(() => {
3053
- if (B.length === 0) return M;
3054
- const K = Gt(B, M);
3055
- return (K == null ? void 0 : K.value) ?? M;
3056
- }, [M, B]), z = v(
3052
+ ), K = v(() => A != null && A.options ? A.options : a != null && a.url && E.length > 0 ? E : d && T.length > 0 ? T : o, [A == null ? void 0 : A.options, a == null ? void 0 : a.url, E, d, T, o]), q = v(() => {
3053
+ if (K.length === 0) return M;
3054
+ const z = Gt(K, M);
3055
+ return (z == null ? void 0 : z.value) ?? M;
3056
+ }, [M, K]), B = v(
3057
3057
  () => Zt(C, A ?? void 0),
3058
3058
  [C, A]
3059
3059
  ), $ = j(
3060
- (K) => {
3061
- const L = K.target.value;
3060
+ (z) => {
3061
+ const L = z.target.value;
3062
3062
  if (p) {
3063
3063
  p(L);
3064
3064
  return;
@@ -3084,30 +3084,30 @@ const Oc = ({
3084
3084
  e,
3085
3085
  N
3086
3086
  ]
3087
- ), q = j(() => {
3088
- y && k(H);
3089
- }, [y, k, H]);
3090
- return /* @__PURE__ */ lt("div", { onBlur: q, children: [
3091
- /* @__PURE__ */ b(
3087
+ ), W = j(() => {
3088
+ y && k(q);
3089
+ }, [y, k, q]);
3090
+ return /* @__PURE__ */ lt("div", { onBlur: W, children: [
3091
+ /* @__PURE__ */ S(
3092
3092
  Ue.Group,
3093
3093
  {
3094
- ...z,
3095
- disabled: n ? !1 : z.disabled,
3096
- value: H,
3094
+ ...B,
3095
+ disabled: n ? !1 : B.disabled,
3096
+ value: q,
3097
3097
  onChange: $,
3098
3098
  buttonStyle: (A == null ? void 0 : A.buttonStyle) ?? l,
3099
3099
  optionType: (A == null ? void 0 : A.optionType) ?? h,
3100
- children: h === "button" ? B.map((K) => /* @__PURE__ */ b(Ue.Button, { value: K.value, disabled: K.disabled, children: K.label }, K.value)) : /* @__PURE__ */ b(
3100
+ children: h === "button" ? K.map((z) => /* @__PURE__ */ S(Ue.Button, { value: z.value, disabled: z.disabled, children: z.label }, z.value)) : /* @__PURE__ */ S(
3101
3101
  Jt,
3102
3102
  {
3103
3103
  orientation: (A == null ? void 0 : A.direction) ?? u ?? "horizontal",
3104
3104
  wrap: !0,
3105
- children: B.map((K) => /* @__PURE__ */ b(Ue, { value: K.value, disabled: K.disabled, children: K.label }, K.value))
3105
+ children: K.map((z) => /* @__PURE__ */ S(Ue, { value: z.value, disabled: z.disabled, children: z.label }, z.value))
3106
3106
  }
3107
3107
  )
3108
3108
  }
3109
3109
  ),
3110
- S && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: S })
3110
+ b && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: b })
3111
3111
  ] });
3112
3112
  }, Bc = ({
3113
3113
  id: e,
@@ -3142,7 +3142,7 @@ const Oc = ({
3142
3142
  var U;
3143
3143
  return t && e ? ((U = P.propsStore[`${t}_props`]) == null ? void 0 : U[e]) ?? null : null;
3144
3144
  }
3145
- ), S = _(
3145
+ ), b = _(
3146
3146
  (P) => O && r ? P.getDataSet(O, r) : void 0
3147
3147
  ), { validate: M, help: T } = Kt({
3148
3148
  rules: h,
@@ -3151,27 +3151,27 @@ const Oc = ({
3151
3151
  sessionId: t,
3152
3152
  id: e,
3153
3153
  develop: n
3154
- }), { options: E } = Te(x), { options: B } = dn(
3154
+ }), { options: E } = Te(x), { options: K } = dn(
3155
3155
  a == null ? void 0 : a.url,
3156
3156
  {
3157
3157
  valueKey: (a == null ? void 0 : a.codeKey) || "value",
3158
3158
  labelKey: (a == null ? void 0 : a.labelKey) || "label",
3159
3159
  immediate: !!(a != null && a.url)
3160
3160
  }
3161
- ), H = v(() => {
3161
+ ), q = v(() => {
3162
3162
  if (!c)
3163
- return S !== void 0 ? !!S : (k == null ? void 0 : k.checked) !== void 0 ? k.checked : f ?? d;
3164
- }, [c, S, k == null ? void 0 : k.checked, f, d]), z = v(() => k != null && k.options ? k.options : a != null && a.url && B.length > 0 ? B : x && E.length > 0 ? E : o, [k == null ? void 0 : k.options, a == null ? void 0 : a.url, B, x, E, o]), $ = v(() => {
3163
+ return b !== void 0 ? !!b : (k == null ? void 0 : k.checked) !== void 0 ? k.checked : f ?? d;
3164
+ }, [c, b, k == null ? void 0 : k.checked, f, d]), B = v(() => k != null && k.options ? k.options : a != null && a.url && K.length > 0 ? K : x && E.length > 0 ? E : o, [k == null ? void 0 : k.options, a == null ? void 0 : a.url, K, x, E, o]), $ = v(() => {
3165
3165
  if (!c) return [];
3166
3166
  let P = [];
3167
- return Array.isArray(S) ? P = S : Array.isArray(k == null ? void 0 : k.values) ? P = k.values : P = s || [], z.length === 0 ? P : P.map((U) => {
3167
+ return Array.isArray(b) ? P = b : Array.isArray(k == null ? void 0 : k.values) ? P = k.values : P = s || [], B.length === 0 ? P : P.map((U) => {
3168
3168
  var tt;
3169
- return ((tt = Gt(z, U)) == null ? void 0 : tt.value) ?? U;
3169
+ return ((tt = Gt(B, U)) == null ? void 0 : tt.value) ?? U;
3170
3170
  });
3171
- }, [c, S, k == null ? void 0 : k.values, s, z]), q = v(
3171
+ }, [c, b, k == null ? void 0 : k.values, s, B]), W = v(
3172
3172
  () => Zt(D, k ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3173
3173
  [D, k]
3174
- ), L = (q.direction ?? C) === "vertical" ? "vertical" : "horizontal", R = j((P) => {
3174
+ ), L = (W.direction ?? C) === "vertical" ? "vertical" : "horizontal", R = j((P) => {
3175
3175
  const U = P.target.checked;
3176
3176
  if (m) {
3177
3177
  m(U);
@@ -3191,34 +3191,34 @@ const Oc = ({
3191
3191
  w(t, X(U, tt));
3192
3192
  }
3193
3193
  }, [p, O, r, A, y, M, l, t, e, w]), Z = j(() => {
3194
- g && M(c ? $ : H);
3195
- }, [g, M, c, $, H]);
3196
- if (c && z.length > 0) {
3197
- const { indeterminate: P, direction: U, ...tt } = q;
3194
+ g && M(c ? $ : q);
3195
+ }, [g, M, c, $, q]);
3196
+ if (c && B.length > 0) {
3197
+ const { indeterminate: P, direction: U, ...tt } = W;
3198
3198
  return /* @__PURE__ */ lt("div", { onBlur: Z, children: [
3199
- /* @__PURE__ */ b(de.Group, { ...tt, value: $, onChange: Y, disabled: n ? !1 : q.disabled, children: /* @__PURE__ */ b(
3199
+ /* @__PURE__ */ S(de.Group, { ...tt, value: $, onChange: Y, disabled: n ? !1 : W.disabled, children: /* @__PURE__ */ S(
3200
3200
  Jt,
3201
3201
  {
3202
3202
  orientation: L,
3203
3203
  wrap: !0,
3204
- children: z.map((et) => /* @__PURE__ */ b(de, { value: et.value, disabled: et.disabled, children: et.label }, et.value))
3204
+ children: B.map((et) => /* @__PURE__ */ S(de, { value: et.value, disabled: et.disabled, children: et.label }, et.value))
3205
3205
  }
3206
3206
  ) }),
3207
- T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
3207
+ T && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
3208
3208
  ] });
3209
3209
  }
3210
3210
  return /* @__PURE__ */ lt("div", { onBlur: Z, children: [
3211
- /* @__PURE__ */ b(
3211
+ /* @__PURE__ */ S(
3212
3212
  de,
3213
3213
  {
3214
- ...q,
3215
- disabled: n ? !1 : q.disabled,
3216
- checked: H,
3214
+ ...W,
3215
+ disabled: n ? !1 : W.disabled,
3216
+ checked: q,
3217
3217
  onChange: R,
3218
3218
  children: u
3219
3219
  }
3220
3220
  ),
3221
- T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
3221
+ T && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
3222
3222
  ] });
3223
3223
  }, Lc = ({
3224
3224
  id: e,
@@ -3259,12 +3259,12 @@ const Oc = ({
3259
3259
  return;
3260
3260
  }
3261
3261
  if (s && r && f(s, r, O), l && x(O), o && t) {
3262
- const { actionName: k, arg: S } = Ct(o, O, {
3262
+ const { actionName: k, arg: b } = Ct(o, O, {
3263
3263
  id: e,
3264
3264
  dataSet: i,
3265
3265
  dataSetField: r
3266
3266
  });
3267
- p(t, X(k, S));
3267
+ p(t, X(k, b));
3268
3268
  }
3269
3269
  },
3270
3270
  [h, s, r, f, l, x, o, t, e, p]
@@ -3275,7 +3275,7 @@ const Oc = ({
3275
3275
  [m, d]
3276
3276
  );
3277
3277
  return /* @__PURE__ */ lt("div", { onBlur: w, children: [
3278
- /* @__PURE__ */ b(
3278
+ /* @__PURE__ */ S(
3279
3279
  br,
3280
3280
  {
3281
3281
  ...A,
@@ -3284,7 +3284,7 @@ const Oc = ({
3284
3284
  onChange: D
3285
3285
  }
3286
3286
  ),
3287
- C && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
3287
+ C && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
3288
3288
  ] });
3289
3289
  }, Kc = ({
3290
3290
  id: e,
@@ -3313,7 +3313,7 @@ const Oc = ({
3313
3313
  g(t, X(x, C));
3314
3314
  }
3315
3315
  }, [a, p, r, m, o, t, e, g]);
3316
- return /* @__PURE__ */ b(Sr, { ...h, disabled: n ? !1 : h.disabled, value: s, onChange: d });
3316
+ return /* @__PURE__ */ S(Sr, { ...h, disabled: n ? !1 : h.disabled, value: s, onChange: d });
3317
3317
  }, Po = 200, ar = (e, t, n = 1) => {
3318
3318
  if (!Array.isArray(e)) return [];
3319
3319
  const { codeKey: i, labelKey: r, childrenKey: o, maxLevel: a } = t;
@@ -3361,7 +3361,7 @@ const Oc = ({
3361
3361
  [t, i]
3362
3362
  ), O = _(
3363
3363
  ($) => A && r ? $.getDataSet(A, r) : void 0
3364
- ), { validate: k, help: S, validateStatus: M } = Kt({
3364
+ ), { validate: k, help: b, validateStatus: M } = Kt({
3365
3365
  rules: a,
3366
3366
  dataSet: i,
3367
3367
  dataSetField: r,
@@ -3370,36 +3370,36 @@ const Oc = ({
3370
3370
  develop: n
3371
3371
  }), T = v(() => (o == null ? void 0 : o.url) && C.length > 0, [o == null ? void 0 : o.url, C.length]), E = v(() => {
3372
3372
  let $ = O ?? p ?? m ?? [];
3373
- return typeof $ == "string" ? T ? Nn($).map((K) => Yo(K, C)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : kn($) && T ? $.map((K) => Nn(K)).filter((K) => Array.isArray(K) && K.length > 0) : Tn($) && T ? $.filter((q) => Array.isArray(q) && q.length > 0) : $;
3374
- }, [O, p, m, T, C]), B = v(() => o != null && o.url && C.length > 0 ? C : y || [], [o == null ? void 0 : o.url, C, y]);
3373
+ return typeof $ == "string" ? T ? Nn($).map((z) => Yo(z, C)).filter((z) => Array.isArray(z) && z.length > 0) : [$] : kn($) && T ? $.map((z) => Nn(z)).filter((z) => Array.isArray(z) && z.length > 0) : Tn($) && T ? $.filter((W) => Array.isArray(W) && W.length > 0) : $;
3374
+ }, [O, p, m, T, C]), K = v(() => o != null && o.url && C.length > 0 ? C : y || [], [o == null ? void 0 : o.url, C, y]);
3375
3375
  xt(() => {
3376
3376
  (async () => {
3377
3377
  if (o != null && o.url) {
3378
3378
  w(!0);
3379
3379
  try {
3380
- const q = await ae({ url: o.url, method: "GET" }), K = Array.isArray(q) ? q : q != null && q.data ? Array.isArray(q.data) ? q.data : q.data.list || q.data.records || [] : [], L = o.codeKey || "value", R = o.labelKey || "label", Y = o.childrenKey || "children", Z = o.maxLevel || 5, P = ar(K, {
3380
+ const W = await ae({ url: o.url, method: "GET" }), z = Array.isArray(W) ? W : W != null && W.data ? Array.isArray(W.data) ? W.data : W.data.list || W.data.records || [] : [], L = o.codeKey || "value", R = o.labelKey || "label", Y = o.childrenKey || "children", Z = o.maxLevel || 5, P = ar(z, {
3381
3381
  codeKey: L,
3382
3382
  labelKey: R,
3383
3383
  childrenKey: Y,
3384
3384
  maxLevel: Z
3385
3385
  });
3386
3386
  N(P);
3387
- } catch (q) {
3388
- console.error("Failed to load remote options:", q), N([]);
3387
+ } catch (W) {
3388
+ console.error("Failed to load remote options:", W), N([]);
3389
3389
  } finally {
3390
3390
  w(!1);
3391
3391
  }
3392
3392
  }
3393
3393
  })();
3394
3394
  }, [o == null ? void 0 : o.url, o == null ? void 0 : o.codeKey, o == null ? void 0 : o.labelKey, o == null ? void 0 : o.childrenKey, o == null ? void 0 : o.maxLevel]);
3395
- const H = j(
3396
- ($, q) => {
3395
+ const q = j(
3396
+ ($, W) => {
3397
3397
  if (g) {
3398
- g($, q);
3398
+ g($, W);
3399
3399
  return;
3400
3400
  }
3401
- let K = $;
3402
- if (kn($) && T ? K = String($[$.length - 1] || "") : Tn($) && T && (K = $.map((L) => L.join(","))), A && r && u(A, r, K), l && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
3401
+ let z = $;
3402
+ if (kn($) && T ? z = String($[$.length - 1] || "") : Tn($) && T && (z = $.map((L) => L.join(","))), A && r && u(A, r, z), l && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
3403
3403
  x.current = null, k($);
3404
3404
  }, Po)), h && t) {
3405
3405
  const { actionName: L, arg: R } = Ct(h, $, {
@@ -3423,7 +3423,7 @@ const Oc = ({
3423
3423
  d,
3424
3424
  T
3425
3425
  ]
3426
- ), z = j(() => {
3426
+ ), B = j(() => {
3427
3427
  c && k(E);
3428
3428
  }, [c, k, E]);
3429
3429
  return xt(
@@ -3432,22 +3432,22 @@ const Oc = ({
3432
3432
  },
3433
3433
  []
3434
3434
  ), /* @__PURE__ */ lt("div", { style: { width: "100%" }, children: [
3435
- /* @__PURE__ */ b(
3435
+ /* @__PURE__ */ S(
3436
3436
  wr,
3437
3437
  {
3438
3438
  ...s,
3439
3439
  disabled: n ? !1 : s.disabled,
3440
3440
  open: n ? !1 : void 0,
3441
3441
  value: E,
3442
- options: B,
3443
- onChange: H,
3444
- onBlur: z,
3442
+ options: K,
3443
+ onChange: q,
3444
+ onBlur: B,
3445
3445
  loading: D,
3446
3446
  status: M,
3447
3447
  style: { width: "100%", ...s.style }
3448
3448
  }
3449
3449
  ),
3450
- S && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: S })
3450
+ b && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: b })
3451
3451
  ] });
3452
3452
  }, Vc = ({
3453
3453
  id: e,
@@ -3470,16 +3470,16 @@ const Oc = ({
3470
3470
  validateOnBlur: u,
3471
3471
  ...x
3472
3472
  }) => {
3473
- const C = _((q) => q.addCommand), N = _((q) => q.setDataSet), D = v(
3473
+ const C = _((W) => W.addCommand), N = _((W) => W.setDataSet), D = v(
3474
3474
  () => nt(t, i),
3475
3475
  [t, i]
3476
3476
  ), w = _(
3477
- (q) => {
3478
- var K;
3479
- return t && e ? ((K = q.propsStore[`${t}_props`]) == null ? void 0 : K[e]) ?? null : null;
3477
+ (W) => {
3478
+ var z;
3479
+ return t && e ? ((z = W.propsStore[`${t}_props`]) == null ? void 0 : z[e]) ?? null : null;
3480
3480
  }
3481
3481
  ), A = _(
3482
- (q) => D && r ? q.getDataSet(D, r) : void 0
3482
+ (W) => D && r ? W.getDataSet(D, r) : void 0
3483
3483
  ), { validate: O, help: k } = Kt({
3484
3484
  rules: s,
3485
3485
  dataSet: i,
@@ -3487,20 +3487,20 @@ const Oc = ({
3487
3487
  sessionId: t,
3488
3488
  id: e,
3489
3489
  develop: n
3490
- }), S = v(
3490
+ }), b = v(
3491
3491
  () => A ?? (w == null ? void 0 : w.value) ?? c ?? l,
3492
3492
  [A, w == null ? void 0 : w.value, c, l]
3493
3493
  ), M = v(
3494
3494
  () => Zt(x, w ?? void 0),
3495
3495
  [x, w]
3496
3496
  ), T = j(
3497
- (q, K, L) => {
3497
+ (W, z, L) => {
3498
3498
  if (a) {
3499
- a(q, K, L);
3499
+ a(W, z, L);
3500
3500
  return;
3501
3501
  }
3502
- if (D && r && N(D, r, q), d && O(q), o && t) {
3503
- const { actionName: R, arg: Y } = Ct(o, q, {
3502
+ if (D && r && N(D, r, W), d && O(W), o && t) {
3503
+ const { actionName: R, arg: Y } = Ct(o, W, {
3504
3504
  id: e,
3505
3505
  dataSet: i,
3506
3506
  dataSetField: r
@@ -3510,39 +3510,39 @@ const Oc = ({
3510
3510
  },
3511
3511
  [a, D, r, N, d, O, o, t, e, C]
3512
3512
  ), E = j(() => {
3513
- u && O(S);
3514
- }, [u, O, S]), B = v(() => {
3513
+ u && O(b);
3514
+ }, [u, O, b]), K = v(() => {
3515
3515
  if (!f) return;
3516
- const q = {};
3517
- return Object.entries(f).forEach(([K, L]) => {
3518
- L !== "" && L !== void 0 && L !== null && (q[K] = L);
3519
- }), Object.keys(q).length > 0 ? q : void 0;
3520
- }, [f]), H = v(() => {
3521
- if (B)
3516
+ const W = {};
3517
+ return Object.entries(f).forEach(([z, L]) => {
3518
+ L !== "" && L !== void 0 && L !== null && (W[z] = L);
3519
+ }), Object.keys(W).length > 0 ? W : void 0;
3520
+ }, [f]), q = v(() => {
3521
+ if (K)
3522
3522
  return {
3523
3523
  components: {
3524
- TreeSelect: B
3524
+ TreeSelect: K
3525
3525
  }
3526
3526
  };
3527
- }, [B]), z = k ? "error" : void 0, $ = /* @__PURE__ */ lt("div", { onBlur: E, children: [
3528
- /* @__PURE__ */ b(
3527
+ }, [K]), B = k ? "error" : void 0, $ = /* @__PURE__ */ lt("div", { onBlur: E, children: [
3528
+ /* @__PURE__ */ S(
3529
3529
  Dr,
3530
3530
  {
3531
3531
  ...M,
3532
3532
  disabled: n ? !1 : M.disabled,
3533
3533
  open: n ? !1 : void 0,
3534
3534
  treeData: h,
3535
- value: S,
3535
+ value: b,
3536
3536
  onChange: T,
3537
3537
  style: { width: "100%", ...M.style },
3538
3538
  styles: m,
3539
3539
  classNames: p,
3540
- status: z
3540
+ status: B
3541
3541
  }
3542
3542
  ),
3543
- k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
3543
+ k && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
3544
3544
  ] });
3545
- return H ? /* @__PURE__ */ b(Lt, { theme: H, children: $ }) : $;
3545
+ return q ? /* @__PURE__ */ S(Lt, { theme: q, children: $ }) : $;
3546
3546
  }, qc = ({
3547
3547
  id: e,
3548
3548
  sessionId: t,
@@ -3567,7 +3567,7 @@ const Oc = ({
3567
3567
  const C = ke(i, r, t), N = C.dataSet, D = C.dataSetField, w = C.sessionId, A = _((J) => J.addCommand), O = _((J) => J.setDataSet), k = v(
3568
3568
  () => nt(w, N),
3569
3569
  [w, N]
3570
- ), S = _(
3570
+ ), b = _(
3571
3571
  (J) => {
3572
3572
  var Q;
3573
3573
  return w && e ? ((Q = J.propsStore[`${w}_props`]) == null ? void 0 : Q[e]) ?? null : null;
@@ -3581,10 +3581,10 @@ const Oc = ({
3581
3581
  sessionId: w,
3582
3582
  id: e,
3583
3583
  develop: n
3584
- }), B = j((J) => J.map((Q) => {
3584
+ }), K = j((J) => J.map((Q) => {
3585
3585
  var yt;
3586
3586
  return ((yt = Q == null ? void 0 : Q.response) == null ? void 0 : yt.src) ?? (Q == null ? void 0 : Q.src) ?? (Q == null ? void 0 : Q.url) ?? (Q == null ? void 0 : Q.thumbUrl) ?? "";
3587
- }).filter((Q) => Q && typeof Q == "string"), []), H = j((J) => {
3587
+ }).filter((Q) => Q && typeof Q == "string"), []), q = j((J) => {
3588
3588
  const Q = Ut().viewRes, yt = (V) => (Q ? Q(V) : V) || V;
3589
3589
  return J.map((V, st) => {
3590
3590
  const ht = yt(V);
@@ -3597,29 +3597,29 @@ const Oc = ({
3597
3597
  response: { src: V }
3598
3598
  };
3599
3599
  });
3600
- }, []), z = j((J) => {
3600
+ }, []), B = j((J) => {
3601
3601
  const Q = Ut().viewRes, yt = (V) => (V && Q ? Q(V) : V) || V;
3602
3602
  return J.map((V) => {
3603
- var W;
3604
- const st = ((W = V == null ? void 0 : V.response) == null ? void 0 : W.src) ?? (V == null ? void 0 : V.src) ?? (V == null ? void 0 : V.url) ?? (V == null ? void 0 : V.thumbUrl) ?? "", ht = typeof st == "string" ? yt(st) : st, G = {};
3603
+ var H;
3604
+ const st = ((H = V == null ? void 0 : V.response) == null ? void 0 : H.src) ?? (V == null ? void 0 : V.src) ?? (V == null ? void 0 : V.url) ?? (V == null ? void 0 : V.thumbUrl) ?? "", ht = typeof st == "string" ? yt(st) : st, G = {};
3605
3605
  for (const ot of Object.keys(V)) {
3606
3606
  const dt = V[ot];
3607
3607
  dt instanceof File ? G[ot] = dt : dt && typeof dt == "object" && !Array.isArray(dt) ? G[ot] = { ...dt } : G[ot] = dt;
3608
3608
  }
3609
3609
  return ht && typeof ht == "string" && (G.url = ht, G.thumbUrl = ht), G;
3610
3610
  });
3611
- }, []), [$, q] = pt(null), K = v(() => {
3612
- const J = M ?? (S == null ? void 0 : S.fileList) ?? y;
3611
+ }, []), [$, W] = pt(null), z = v(() => {
3612
+ const J = M ?? (b == null ? void 0 : b.fileList) ?? y;
3613
3613
  if (J != null) {
3614
- if (typeof J == "string" && J) return H([J]);
3614
+ if (typeof J == "string" && J) return q([J]);
3615
3615
  if (Array.isArray(J))
3616
- return J.length > 0 && typeof J[0] == "string" ? H(J) : z(J);
3616
+ return J.length > 0 && typeof J[0] == "string" ? q(J) : B(J);
3617
3617
  }
3618
- }, [M, S == null ? void 0 : S.fileList, y, H, z]), L = $ ?? K, R = v(
3619
- () => Zt(x, S ?? void 0, {
3618
+ }, [M, b == null ? void 0 : b.fileList, y, q, B]), L = $ ?? z, R = v(
3619
+ () => Zt(x, b ?? void 0, {
3620
3620
  skipKeys: ["value", "help", "validateStatus", "fileList", "listDisplayText"]
3621
3621
  }),
3622
- [x, S]
3622
+ [x, b]
3623
3623
  ), Y = j((J) => J.size / 1024 / 1024 < f ? !0 : (Ee.error(`文件大小不能超过 ${f}MB`), !1), [f]), Z = j(async (J) => {
3624
3624
  const { file: Q, onSuccess: yt, onError: V, onProgress: st } = J;
3625
3625
  if (Ut().upload)
@@ -3645,8 +3645,8 @@ const Oc = ({
3645
3645
  g(J);
3646
3646
  return;
3647
3647
  }
3648
- const Q = Array.isArray(J.fileList) ? z(J.fileList) : J.fileList, yt = Array.isArray(Q) ? B(Q) : [], V = Array.isArray(Q) && Q.some((ht) => (ht == null ? void 0 : ht.status) === "uploading");
3649
- k && D && (yt.length > 0 || !Array.isArray(Q) || Q.length === 0) ? (O(k, D, yt), q(null)) : V ? q(Q) : Q.length === 0 && q(null), h && T(Q), o && w && A(
3648
+ const Q = Array.isArray(J.fileList) ? B(J.fileList) : J.fileList, yt = Array.isArray(Q) ? K(Q) : [], V = Array.isArray(Q) && Q.some((ht) => (ht == null ? void 0 : ht.status) === "uploading");
3649
+ k && D && (yt.length > 0 || !Array.isArray(Q) || Q.length === 0) ? (O(k, D, yt), W(null)) : V ? W(Q) : Q.length === 0 && W(null), h && T(Q), o && w && A(
3650
3650
  w,
3651
3651
  X(o, {
3652
3652
  file: J.file,
@@ -3665,8 +3665,8 @@ const Oc = ({
3665
3665
  o,
3666
3666
  w,
3667
3667
  A,
3668
- z,
3669
- B
3668
+ B,
3669
+ K
3670
3670
  ]
3671
3671
  ), U = j(() => {
3672
3672
  l && T(L);
@@ -3675,7 +3675,7 @@ const Oc = ({
3675
3675
  const Q = J.url || J.thumbUrl;
3676
3676
  if (!Q) return "";
3677
3677
  const yt = ((ht = J.response) == null ? void 0 : ht.src) ?? (typeof Q == "string" ? Q : ""), V = Ut().viewRes, st = yt && V ? V(yt) : Q;
3678
- return String(st).replace(/([?&])download=1(&|$)/, (G, W, ot) => ot ? W : "");
3678
+ return String(st).replace(/([?&])download=1(&|$)/, (G, H, ot) => ot ? H : "");
3679
3679
  }, []), et = j((J) => {
3680
3680
  var V, st;
3681
3681
  const Q = ((V = J.response) == null ? void 0 : V.src) ?? J.name ?? "", yt = ((st = String(Q).split(".").pop()) == null ? void 0 : st.toLowerCase()) || "";
@@ -3693,7 +3693,7 @@ const Oc = ({
3693
3693
  const yt = L.filter((ht) => et(ht)), V = yt.map((ht) => tt(ht)).filter(Boolean), st = yt.findIndex((ht) => (ht.uid || ht.url) === (J.uid || J.url));
3694
3694
  mt({ url: Q, name: J.name, urls: V, current: st >= 0 ? st : 0, open: !0 });
3695
3695
  } else et(J) || window.open(Q, "_blank");
3696
- }, [tt, et, L]), ct = !!Ut().upload && !u, rt = R, it = rt.buttonText ?? a, Dt = rt.listType ?? x.listType, _t = String((S == null ? void 0 : S.listDisplayText) ?? d ?? "").trim(), Bt = v(() => {
3696
+ }, [tt, et, L]), ct = !!Ut().upload && !u, rt = R, it = rt.buttonText ?? a, Dt = rt.listType ?? x.listType, _t = String((b == null ? void 0 : b.listDisplayText) ?? d ?? "").trim(), Bt = v(() => {
3697
3697
  const J = rt.showUploadList;
3698
3698
  return Dt !== "text" || J === !1 || !_t || !(L != null && L.length) ? L : L.map((Q) => ({ ...Q, name: _t }));
3699
3699
  }, [L, Dt, rt.showUploadList, _t]), gt = rt.maxCount, at = (L == null ? void 0 : L.length) ?? 0, ft = typeof gt == "number" && at >= gt, At = j(
@@ -3701,7 +3701,7 @@ const Oc = ({
3701
3701
  [ft, gt, Y]
3702
3702
  );
3703
3703
  return /* @__PURE__ */ lt("div", { onBlur: U, children: [
3704
- /* @__PURE__ */ b(
3704
+ /* @__PURE__ */ S(
3705
3705
  xr,
3706
3706
  {
3707
3707
  ...R,
@@ -3714,20 +3714,20 @@ const Oc = ({
3714
3714
  action: ct ? void 0 : u || p,
3715
3715
  openFileDialogOnClick: !n,
3716
3716
  children: !ft && (m || (Dt === "picture-card" || Dt === "picture-circle" ? /* @__PURE__ */ lt("button", { style: { border: 0, background: "none" }, type: "button", children: [
3717
- /* @__PURE__ */ b(Gn, {}),
3718
- /* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: it })
3719
- ] }) : /* @__PURE__ */ b(te, { icon: /* @__PURE__ */ b(ri, {}), children: it })))
3717
+ /* @__PURE__ */ S(Gn, {}),
3718
+ /* @__PURE__ */ S("div", { style: { marginTop: 8 }, children: it })
3719
+ ] }) : /* @__PURE__ */ S(te, { icon: /* @__PURE__ */ S(ri, {}), children: it })))
3720
3720
  }
3721
3721
  ),
3722
- E && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E }),
3723
- I.url && /* @__PURE__ */ b("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: I.urls.length > 1 ? /* @__PURE__ */ b(
3722
+ E && /* @__PURE__ */ S("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E }),
3723
+ I.url && /* @__PURE__ */ S("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: I.urls.length > 1 ? /* @__PURE__ */ S(
3724
3724
  Xt.PreviewGroup,
3725
3725
  {
3726
3726
  preview: {
3727
3727
  current: I.current,
3728
3728
  onOpenChange: (J) => !J && mt((Q) => ({ ...Q, open: !1 }))
3729
3729
  },
3730
- children: I.urls.map((J, Q) => /* @__PURE__ */ b(
3730
+ children: I.urls.map((J, Q) => /* @__PURE__ */ S(
3731
3731
  Xt,
3732
3732
  {
3733
3733
  src: J,
@@ -3740,7 +3740,7 @@ const Oc = ({
3740
3740
  Q
3741
3741
  ))
3742
3742
  }
3743
- ) : /* @__PURE__ */ b(
3743
+ ) : /* @__PURE__ */ S(
3744
3744
  Xt,
3745
3745
  {
3746
3746
  src: I.url,
@@ -3772,18 +3772,18 @@ const Oc = ({
3772
3772
  searchAction: f,
3773
3773
  ...s
3774
3774
  }) => {
3775
- const d = _((B) => B.addCommand), u = _((B) => B.getDataSet), x = _((B) => B.setDataSet), C = v(
3775
+ const d = _((K) => K.addCommand), u = _((K) => K.getDataSet), x = _((K) => K.setDataSet), C = v(
3776
3776
  () => nt(t, i),
3777
3777
  [t, i]
3778
3778
  ), [N, D] = pt(y || []), [, w] = pt(!1), A = qt.useRef(void 0), { get: O } = co(), k = v(() => {
3779
3779
  if (C && r) return u(C, r);
3780
- }, [C, r, u]), S = v(() => k ?? h ?? g, [k, h, g]), M = j((B) => {
3780
+ }, [C, r, u]), b = v(() => k ?? h ?? g, [k, h, g]), M = j((K) => {
3781
3781
  if (!(p != null && p.queryApi)) {
3782
3782
  y && D(
3783
3783
  y.filter(
3784
- (H) => {
3785
- var z, $;
3786
- return ((z = H.value) == null ? void 0 : z.toString().toLowerCase().includes(B.toLowerCase())) || (($ = H.label) == null ? void 0 : $.toString().toLowerCase().includes(B.toLowerCase()));
3784
+ (q) => {
3785
+ var B, $;
3786
+ return ((B = q.value) == null ? void 0 : B.toString().toLowerCase().includes(K.toLowerCase())) || (($ = q.label) == null ? void 0 : $.toString().toLowerCase().includes(K.toLowerCase()));
3787
3787
  }
3788
3788
  )
3789
3789
  );
@@ -3793,21 +3793,21 @@ const Oc = ({
3793
3793
  if (p != null && p.queryApi) {
3794
3794
  w(!0);
3795
3795
  try {
3796
- const { queryApi: H, keyWordParamName: z = "keyword", valueKey: $ = "value", labelKey: q = "label", fixedParams: K = [] } = p, L = {};
3797
- z && (L[z] = B), Array.isArray(K) && K.forEach((P) => {
3796
+ const { queryApi: q, keyWordParamName: B = "keyword", valueKey: $ = "value", labelKey: W = "label", fixedParams: z = [] } = p, L = {};
3797
+ B && (L[B] = K), Array.isArray(z) && z.forEach((P) => {
3798
3798
  P.key && (L[P.key] = P.value);
3799
3799
  });
3800
- const R = await O(H, L);
3800
+ const R = await O(q, L);
3801
3801
  let Y = [];
3802
3802
  Array.isArray(R) ? Y = R : R && Array.isArray(R.data) ? Y = R.data : R && R.data && Array.isArray(R.data.records) ? Y = R.data.records : R && R.result && Array.isArray(R.result) && (Y = R.result);
3803
3803
  const Z = Y.map((P) => ({
3804
3804
  value: P[$],
3805
- label: P[q] || P[$],
3805
+ label: P[W] || P[$],
3806
3806
  ...P
3807
3807
  }));
3808
3808
  D(Z);
3809
- } catch (H) {
3810
- console.error("Failed to fetch remote options:", H), D([]);
3809
+ } catch (q) {
3810
+ console.error("Failed to fetch remote options:", q), D([]);
3811
3811
  } finally {
3812
3812
  w(!1);
3813
3813
  }
@@ -3817,30 +3817,30 @@ const Oc = ({
3817
3817
  qt.useEffect(() => {
3818
3818
  !(p != null && p.queryApi) && y && D(y);
3819
3819
  }, [y, p == null ? void 0 : p.queryApi]);
3820
- const T = j((B) => {
3820
+ const T = j((K) => {
3821
3821
  if (c) {
3822
- c(B);
3822
+ c(K);
3823
3823
  return;
3824
3824
  }
3825
- if (C && r && x(C, r, B), o && t) {
3826
- const { actionName: H, arg: z } = Ct(o, B, { id: e, dataSet: i, dataSetField: r });
3827
- d(t, X(H, z));
3825
+ if (C && r && x(C, r, K), o && t) {
3826
+ const { actionName: q, arg: B } = Ct(o, K, { id: e, dataSet: i, dataSetField: r });
3827
+ d(t, X(q, B));
3828
3828
  }
3829
- }, [c, C, r, x, o, t, e, d]), E = j((B, H) => {
3829
+ }, [c, C, r, x, o, t, e, d]), E = j((K, q) => {
3830
3830
  if (l) {
3831
- l(B, H);
3831
+ l(K, q);
3832
3832
  return;
3833
3833
  }
3834
- a && t && d(t, X(a, { value: B, option: H }));
3834
+ a && t && d(t, X(a, { value: K, option: q }));
3835
3835
  }, [l, a, t, d]);
3836
- return /* @__PURE__ */ b(
3836
+ return /* @__PURE__ */ S(
3837
3837
  Ar,
3838
3838
  {
3839
3839
  ...s,
3840
3840
  disabled: n ? !1 : s.disabled,
3841
3841
  open: n ? !1 : void 0,
3842
3842
  options: N,
3843
- value: S,
3843
+ value: b,
3844
3844
  onChange: T,
3845
3845
  onSelect: E,
3846
3846
  onSearch: M,
@@ -3882,9 +3882,9 @@ const Oc = ({
3882
3882
  };
3883
3883
  return /* @__PURE__ */ lt(Be, { ...f, form: s, onFinish: C, children: [
3884
3884
  p,
3885
- (c || l) && /* @__PURE__ */ b(Be.Item, { children: /* @__PURE__ */ lt(Jt, { children: [
3886
- c && /* @__PURE__ */ b(te, { type: "primary", htmlType: "submit", children: h }),
3887
- l && /* @__PURE__ */ b(te, { onClick: N, children: g })
3885
+ (c || l) && /* @__PURE__ */ S(Be.Item, { children: /* @__PURE__ */ lt(Jt, { children: [
3886
+ c && /* @__PURE__ */ S(te, { type: "primary", htmlType: "submit", children: h }),
3887
+ l && /* @__PURE__ */ S(te, { onClick: N, children: g })
3888
3888
  ] }) })
3889
3889
  ] });
3890
3890
  }, Uc = ({
@@ -3893,7 +3893,7 @@ const Oc = ({
3893
3893
  develop: n,
3894
3894
  children: i,
3895
3895
  ...r
3896
- }) => /* @__PURE__ */ b(Be.Item, { ...r, children: i }), Ht = (e, t) => {
3896
+ }) => /* @__PURE__ */ S(Be.Item, { ...r, children: i }), Ht = (e, t) => {
3897
3897
  if (e == null) return t;
3898
3898
  if (typeof e == "string")
3899
3899
  try {
@@ -3929,29 +3929,29 @@ const Oc = ({
3929
3929
  onSearch: A,
3930
3930
  onScroll: O,
3931
3931
  styles: k,
3932
- token: S,
3932
+ token: b,
3933
3933
  ...M
3934
3934
  }) => {
3935
- const T = _((ct) => ct.addCommand), E = _((ct) => ct.getDataSet), B = _((ct) => ct.setDataSet), H = v(
3935
+ const T = _((ct) => ct.addCommand), E = _((ct) => ct.getDataSet), K = _((ct) => ct.setDataSet), q = v(
3936
3936
  () => nt(t, i),
3937
3937
  [t, i]
3938
- ), z = v(() => Ht(k, {}), [k]), $ = v(() => Ht(S, {}), [S]), q = v(() => Ht(f, ["源列表", "目标列表"]), [f]), K = v(() => Ht(s, [">", "<"]), [s]), L = v(() => Ht(d, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [d]), R = v(() => Ht(m, !1), [m]), Y = v(() => {
3939
- if (H && r) {
3940
- const ct = E(H, r);
3938
+ ), B = v(() => Ht(k, {}), [k]), $ = v(() => Ht(b, {}), [b]), W = v(() => Ht(f, ["源列表", "目标列表"]), [f]), z = v(() => Ht(s, [">", "<"]), [s]), L = v(() => Ht(d, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [d]), R = v(() => Ht(m, !1), [m]), Y = v(() => {
3939
+ if (q && r) {
3940
+ const ct = E(q, r);
3941
3941
  if (Array.isArray(ct)) return ct;
3942
3942
  }
3943
- }, [H, r, E]), Z = v(() => {
3944
- if (H && r) {
3945
- const ct = E(H, `${r}.dataSource`);
3943
+ }, [q, r, E]), Z = v(() => {
3944
+ if (q && r) {
3945
+ const ct = E(q, `${r}.dataSource`);
3946
3946
  if (Array.isArray(ct)) return ct;
3947
3947
  }
3948
- }, [H, r, E]), P = v(() => n ? Z ?? Ht(o, []) : H ? Z ?? [] : Ht(o, []), [n, H, Z, o]), U = v(() => n ? Y ?? Ht(a, []) : H ? Y ?? [] : Ht(a, []), [n, H, Y, a]), tt = v(() => Ht(c, []), [c]), et = j((ct, rt, it) => {
3948
+ }, [q, r, E]), P = v(() => n ? Z ?? Ht(o, []) : q ? Z ?? [] : Ht(o, []), [n, q, Z, o]), U = v(() => n ? Y ?? Ht(a, []) : q ? Y ?? [] : Ht(a, []), [n, q, Y, a]), tt = v(() => Ht(c, []), [c]), et = j((ct, rt, it) => {
3949
3949
  if (D) {
3950
3950
  D(ct, rt, it);
3951
3951
  return;
3952
3952
  }
3953
- H && r && B(H, r, ct), u && t && T(t, X(u, { targetKeys: ct, direction: rt, moveKeys: it }));
3954
- }, [D, H, r, B, u, t, T]), I = j((ct, rt) => {
3953
+ q && r && K(q, r, ct), u && t && T(t, X(u, { targetKeys: ct, direction: rt, moveKeys: it }));
3954
+ }, [D, q, r, K, u, t, T]), I = j((ct, rt) => {
3955
3955
  if (w) {
3956
3956
  w(ct, rt);
3957
3957
  return;
@@ -3969,7 +3969,7 @@ const Oc = ({
3969
3969
  return;
3970
3970
  }
3971
3971
  N && t && T(t, X(N, { direction: ct }));
3972
- }, [O, N, t, T]), bt = /* @__PURE__ */ b(
3972
+ }, [O, N, t, T]), bt = /* @__PURE__ */ S(
3973
3973
  Cr,
3974
3974
  {
3975
3975
  dataSource: P,
@@ -3981,19 +3981,19 @@ const Oc = ({
3981
3981
  oneWay: y,
3982
3982
  pagination: R,
3983
3983
  status: p || void 0,
3984
- titles: q,
3985
- actions: K,
3984
+ titles: W,
3985
+ actions: z,
3986
3986
  locale: L,
3987
3987
  onChange: et,
3988
3988
  onSelectChange: I,
3989
3989
  onSearch: mt,
3990
3990
  onScroll: St,
3991
- styles: z,
3991
+ styles: B,
3992
3992
  render: (ct) => ct.title,
3993
3993
  ...M
3994
3994
  }
3995
3995
  );
3996
- return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Lt, { theme: { components: { Transfer: $ } }, children: bt }) : bt;
3996
+ return $ && Object.keys($).length > 0 ? /* @__PURE__ */ S(Lt, { theme: { components: { Transfer: $ } }, children: bt }) : bt;
3997
3997
  }, sn = (e, t) => {
3998
3998
  if (e == null) return t;
3999
3999
  if (typeof e == "string")
@@ -4008,7 +4008,7 @@ const Oc = ({
4008
4008
  }, Go = (e) => {
4009
4009
  if (!e) return null;
4010
4010
  const t = Qt[e];
4011
- return t ? /* @__PURE__ */ b(t, {}) : null;
4011
+ return t ? /* @__PURE__ */ S(t, {}) : null;
4012
4012
  }, Jo = (e) => sn(e, []).map((n) => ({
4013
4013
  label: n.label,
4014
4014
  value: n.value,
@@ -4039,24 +4039,24 @@ const Oc = ({
4039
4039
  const x = _((E) => E.addCommand), C = _((E) => E.getDataSet), N = _((E) => E.setDataSet), D = v(
4040
4040
  () => nt(t, i),
4041
4041
  [t, i]
4042
- ), w = v(() => sn(s, {}), [s]), A = v(() => sn(d, {}), [d]), O = v(() => Jo(o), [o]), S = v(() => {
4042
+ ), w = v(() => sn(s, {}), [s]), A = v(() => sn(d, {}), [d]), O = v(() => Jo(o), [o]), b = v(() => {
4043
4043
  if (D && r) {
4044
4044
  const E = C(D, r);
4045
4045
  if (typeof E == "string") return E;
4046
4046
  }
4047
4047
  }, [D, r, C]) ?? a, M = j((E) => {
4048
- const B = String(E);
4048
+ const K = String(E);
4049
4049
  if (f) {
4050
- f(B);
4050
+ f(K);
4051
4051
  return;
4052
4052
  }
4053
- D && r && N(D, r, B), p && t && x(t, X(p, { value: B }));
4054
- }, [f, D, r, N, p, t, x]), T = /* @__PURE__ */ b(
4053
+ D && r && N(D, r, K), p && t && x(t, X(p, { value: K }));
4054
+ }, [f, D, r, N, p, t, x]), T = /* @__PURE__ */ S(
4055
4055
  Nr,
4056
4056
  {
4057
4057
  ...u,
4058
4058
  options: O,
4059
- value: S,
4059
+ value: b,
4060
4060
  defaultValue: c,
4061
4061
  block: l,
4062
4062
  disabled: h,
@@ -4067,7 +4067,7 @@ const Oc = ({
4067
4067
  styles: w
4068
4068
  }
4069
4069
  );
4070
- return A && Object.keys(A).length > 0 ? /* @__PURE__ */ b(Lt, { theme: { components: { Segmented: A } }, children: T }) : T;
4070
+ return A && Object.keys(A).length > 0 ? /* @__PURE__ */ S(Lt, { theme: { components: { Segmented: A } }, children: T }) : T;
4071
4071
  }, Fo = (e, t, n) => {
4072
4072
  const [i, r] = pt(void 0), o = t === "100%", a = Mt(0);
4073
4073
  return Yn(() => {
@@ -4139,18 +4139,18 @@ const Zo = ({ dictCode: e, value: t }) => {
4139
4139
  o = !0;
4140
4140
  };
4141
4141
  }, [e]), t == null || t === "")
4142
- return /* @__PURE__ */ b("span", {});
4142
+ return /* @__PURE__ */ S("span", {});
4143
4143
  if (!n)
4144
- return /* @__PURE__ */ b("span", { children: String(t) });
4144
+ return /* @__PURE__ */ S("span", { children: String(t) });
4145
4145
  const r = Gt(n, t);
4146
- return /* @__PURE__ */ b("span", { children: (r == null ? void 0 : r.label) ?? String(t) });
4146
+ return /* @__PURE__ */ S("span", { children: (r == null ? void 0 : r.label) ?? String(t) });
4147
4147
  }, Xo = (e, t) => {
4148
4148
  const n = t.columnDictType || t.dictType || "";
4149
- return n ? /* @__PURE__ */ b(Zo, { dictCode: n, value: e }) : /* @__PURE__ */ b("span", { children: e != null && e !== "" ? String(e) : "" });
4149
+ return n ? /* @__PURE__ */ S(Zo, { dictCode: n, value: e }) : /* @__PURE__ */ S("span", { children: e != null && e !== "" ? String(e) : "" });
4150
4150
  }, Io = (e, t) => {
4151
4151
  const [n, i] = (t.imageWidthHeight || "").split(/\s*[,,]\s*/), r = n || "50", o = i || "50";
4152
4152
  let a = [];
4153
- return Array.isArray(e) ? a = e.slice(0, 3) : typeof e == "string" && e && (a = [e]), a.length === 0 ? /* @__PURE__ */ b("span", { children: "无图片" }) : a.length === 1 ? /* @__PURE__ */ b(
4153
+ return Array.isArray(e) ? a = e.slice(0, 3) : typeof e == "string" && e && (a = [e]), a.length === 0 ? /* @__PURE__ */ S("span", { children: "无图片" }) : a.length === 1 ? /* @__PURE__ */ S(
4154
4154
  Xt,
4155
4155
  {
4156
4156
  src: a[0],
@@ -4159,7 +4159,7 @@ const Zo = ({ dictCode: e, value: t }) => {
4159
4159
  height: o,
4160
4160
  preview: { src: a[0] }
4161
4161
  }
4162
- ) : /* @__PURE__ */ b(Xt.PreviewGroup, { children: a.map((c, l) => /* @__PURE__ */ b(
4162
+ ) : /* @__PURE__ */ S(Xt.PreviewGroup, { children: a.map((c, l) => /* @__PURE__ */ S(
4163
4163
  Xt,
4164
4164
  {
4165
4165
  src: c,
@@ -4173,7 +4173,7 @@ const Zo = ({ dictCode: e, value: t }) => {
4173
4173
  }, ta = (e, t) => {
4174
4174
  let n = parseFloat(e);
4175
4175
  if (isNaN(n))
4176
- return /* @__PURE__ */ b("span", { children: "无效金额" });
4176
+ return /* @__PURE__ */ S("span", { children: "无效金额" });
4177
4177
  const i = t.currencySymbol || "", r = t.showCommaSeparator || !1, o = t.minDecimalPlace || 0, a = t.maxDecimalPlace || 2;
4178
4178
  Number.isInteger(n) && o > 0 && (n = parseFloat(n.toFixed(o)));
4179
4179
  const c = {
@@ -4183,7 +4183,7 @@ const Zo = ({ dictCode: e, value: t }) => {
4183
4183
  useGrouping: r
4184
4184
  };
4185
4185
  let l = new Intl.NumberFormat("zh-CN", c).format(n);
4186
- return i && (l = i + l), /* @__PURE__ */ b("span", { children: l });
4186
+ return i && (l = i + l), /* @__PURE__ */ S("span", { children: l });
4187
4187
  }, ea = (e, t) => {
4188
4188
  let n = "";
4189
4189
  try {
@@ -4192,12 +4192,12 @@ const Zo = ({ dictCode: e, value: t }) => {
4192
4192
  } catch {
4193
4193
  n = "";
4194
4194
  }
4195
- return /* @__PURE__ */ b("span", { children: n });
4195
+ return /* @__PURE__ */ S("span", { children: n });
4196
4196
  }, na = (e, t) => {
4197
4197
  if (e == null || e === "")
4198
- return /* @__PURE__ */ b("span", {});
4198
+ return /* @__PURE__ */ S("span", {});
4199
4199
  const n = t.arraySeparator || ",";
4200
- return Array.isArray(e) ? /* @__PURE__ */ b("span", { children: e.join(n) }) : /* @__PURE__ */ b("span", { children: String(e) });
4200
+ return Array.isArray(e) ? /* @__PURE__ */ S("span", { children: e.join(n) }) : /* @__PURE__ */ S("span", { children: String(e) });
4201
4201
  }, ra = (e) => {
4202
4202
  const t = { ...e };
4203
4203
  return t.specialFields === !0 && t.renderType && (t.render = (n, i, r) => {
@@ -4299,7 +4299,7 @@ const Je = 420, En = 440, aa = ({
4299
4299
  });
4300
4300
  },
4301
4301
  [m, A, w]
4302
- ), S = j(
4302
+ ), b = j(
4303
4303
  (R, Y) => {
4304
4304
  s((Z) => {
4305
4305
  const P = Z.map((U) => U.key === R ? { ...U, fixed: Y } : U);
@@ -4332,30 +4332,30 @@ const Je = 420, En = 440, aa = ({
4332
4332
  Z.splice(Y, 0, P), s(Z), w(A(m, Z));
4333
4333
  },
4334
4334
  [f, m, A, w]
4335
- ), B = j(
4335
+ ), K = j(
4336
4336
  (R) => {
4337
4337
  p(R), w(A(R, f));
4338
4338
  },
4339
4339
  [f, A, w]
4340
- ), H = j(
4340
+ ), q = j(
4341
4341
  (R) => {
4342
4342
  u(R), w(A(m, f, R, x));
4343
4343
  },
4344
4344
  [m, f, x, A, w]
4345
- ), z = j(
4345
+ ), B = j(
4346
4346
  (R) => {
4347
4347
  C(R), w(A(m, f, d, R));
4348
4348
  },
4349
4349
  [m, f, d, A, w]
4350
4350
  ), $ = (R) => (Y) => {
4351
4351
  D(R), Y.dataTransfer.effectAllowed = "move", Y.dataTransfer.setData("text/plain", String(R));
4352
- }, q = (R) => (Y) => {
4352
+ }, W = (R) => (Y) => {
4353
4353
  Y.preventDefault(), Y.dataTransfer.dropEffect = "move", !(N === null || N === R) && (E(N, R), D(R));
4354
- }, K = () => D(null), L = t != null ? (() => {
4354
+ }, z = () => D(null), L = t != null ? (() => {
4355
4355
  let R = t.y, Y = t.x;
4356
4356
  return typeof window < "u" && (Y + Je > window.innerWidth && (Y = window.innerWidth - Je - 16), Y < 16 && (Y = 16), R + En > window.innerHeight && (R = Math.max(16, window.innerHeight - En - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: Y };
4357
4357
  })() : void 0;
4358
- return /* @__PURE__ */ b(
4358
+ return /* @__PURE__ */ S(
4359
4359
  zn,
4360
4360
  {
4361
4361
  title: "列设置",
@@ -4369,38 +4369,38 @@ const Je = 420, En = 440, aa = ({
4369
4369
  mask: !1,
4370
4370
  className: `and-table-column-setting-modal${t != null ? " and-table-column-setting-modal-positioned" : ""}`,
4371
4371
  children: /* @__PURE__ */ lt("div", { className: "and-table-column-setting-body", children: [
4372
- /* @__PURE__ */ b("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ lt("div", { className: "and-table-column-setting-header-row", children: [
4373
- /* @__PURE__ */ b(
4372
+ /* @__PURE__ */ S("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ lt("div", { className: "and-table-column-setting-header-row", children: [
4373
+ /* @__PURE__ */ S(
4374
4374
  de,
4375
4375
  {
4376
4376
  checked: m,
4377
- onChange: (R) => B(R.target.checked),
4377
+ onChange: (R) => K(R.target.checked),
4378
4378
  children: "序号列"
4379
4379
  }
4380
4380
  ),
4381
- /* @__PURE__ */ b(de, { checked: d, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
4381
+ /* @__PURE__ */ S(de, { checked: d, onChange: (R) => q(R.target.checked), children: "自动滚动" }),
4382
4382
  /* @__PURE__ */ lt(Jt, { align: "center", children: [
4383
- /* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
4384
- /* @__PURE__ */ b(
4383
+ /* @__PURE__ */ S("span", { className: "and-table-column-setting-label", children: "表格" }),
4384
+ /* @__PURE__ */ S(
4385
4385
  Ln,
4386
4386
  {
4387
4387
  size: "small",
4388
4388
  value: x,
4389
- onChange: z,
4389
+ onChange: B,
4390
4390
  options: [...ia],
4391
4391
  style: { width: 80 }
4392
4392
  }
4393
4393
  )
4394
4394
  ] })
4395
4395
  ] }) }),
4396
- /* @__PURE__ */ b("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */ lt("table", { className: "and-table-column-setting-table", children: [
4397
- /* @__PURE__ */ b("thead", { children: /* @__PURE__ */ lt("tr", { children: [
4398
- /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-drag", children: "排序" }),
4399
- /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-name", children: "列名/可见" }),
4400
- /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
4401
- /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-fix", children: "固定" })
4396
+ /* @__PURE__ */ S("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */ lt("table", { className: "and-table-column-setting-table", children: [
4397
+ /* @__PURE__ */ S("thead", { children: /* @__PURE__ */ lt("tr", { children: [
4398
+ /* @__PURE__ */ S("th", { className: "and-table-column-setting-th-drag", children: "排序" }),
4399
+ /* @__PURE__ */ S("th", { className: "and-table-column-setting-th-name", children: "列名/可见" }),
4400
+ /* @__PURE__ */ S("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
4401
+ /* @__PURE__ */ S("th", { className: "and-table-column-setting-th-fix", children: "固定" })
4402
4402
  ] }) }),
4403
- /* @__PURE__ */ b("tbody", { children: f.map((R, Y) => {
4403
+ /* @__PURE__ */ S("tbody", { children: f.map((R, Y) => {
4404
4404
  const Z = typeof R.width == "number" ? R.width : null, P = R.width === "auto" || R.width === void 0 && Z === null;
4405
4405
  return /* @__PURE__ */ lt(
4406
4406
  "tr",
@@ -4408,25 +4408,25 @@ const Je = 420, En = 440, aa = ({
4408
4408
  className: `and-table-column-setting-row ${N === Y ? "and-table-column-setting-row-dragging" : ""}`,
4409
4409
  draggable: !0,
4410
4410
  onDragStart: $(Y),
4411
- onDragOver: q(Y),
4412
- onDragEnd: K,
4411
+ onDragOver: W(Y),
4412
+ onDragEnd: z,
4413
4413
  children: [
4414
- /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(ii, {}) }) }),
4414
+ /* @__PURE__ */ S("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ S("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ S(ii, {}) }) }),
4415
4415
  /* @__PURE__ */ lt("td", { className: "and-table-column-setting-td-name", children: [
4416
- /* @__PURE__ */ b(de, { checked: R.visible, onChange: () => k(R.key) }),
4417
- /* @__PURE__ */ b("span", { className: "and-table-column-setting-title", title: R.title, children: R.title })
4416
+ /* @__PURE__ */ S(de, { checked: R.visible, onChange: () => k(R.key) }),
4417
+ /* @__PURE__ */ S("span", { className: "and-table-column-setting-title", title: R.title, children: R.title })
4418
4418
  ] }),
4419
- /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ lt("div", { className: "and-table-column-setting-width", children: [
4420
- /* @__PURE__ */ b(
4419
+ /* @__PURE__ */ S("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ lt("div", { className: "and-table-column-setting-width", children: [
4420
+ /* @__PURE__ */ S(
4421
4421
  "span",
4422
4422
  {
4423
4423
  className: "and-table-column-setting-fix-btn",
4424
4424
  onClick: () => T(R.key, -ve),
4425
4425
  title: `减 ${ve}px`,
4426
- children: /* @__PURE__ */ b(oi, {})
4426
+ children: /* @__PURE__ */ S(oi, {})
4427
4427
  }
4428
4428
  ),
4429
- /* @__PURE__ */ b(
4429
+ /* @__PURE__ */ S(
4430
4430
  Bn,
4431
4431
  {
4432
4432
  size: "small",
@@ -4441,34 +4441,34 @@ const Je = 420, En = 440, aa = ({
4441
4441
  }
4442
4442
  }
4443
4443
  ),
4444
- /* @__PURE__ */ b(
4444
+ /* @__PURE__ */ S(
4445
4445
  "span",
4446
4446
  {
4447
4447
  className: "and-table-column-setting-fix-btn",
4448
4448
  onClick: () => T(R.key, ve),
4449
4449
  title: `加 ${ve}px`,
4450
- children: /* @__PURE__ */ b(Gn, {})
4450
+ children: /* @__PURE__ */ S(Gn, {})
4451
4451
  }
4452
4452
  )
4453
4453
  ] }) }),
4454
- /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ lt(Jt, { className: "and-table-column-setting-fix", children: [
4455
- /* @__PURE__ */ b(
4454
+ /* @__PURE__ */ S("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ lt(Jt, { className: "and-table-column-setting-fix", children: [
4455
+ /* @__PURE__ */ S(
4456
4456
  "span",
4457
4457
  {
4458
4458
  className: `and-table-column-setting-fix-btn ${R.fixed === "left" ? "active" : ""}`,
4459
- onClick: () => S(R.key, R.fixed === "left" ? !1 : "left"),
4459
+ onClick: () => b(R.key, R.fixed === "left" ? !1 : "left"),
4460
4460
  title: "固定到左侧",
4461
- children: /* @__PURE__ */ b(Jn, {})
4461
+ children: /* @__PURE__ */ S(Jn, {})
4462
4462
  }
4463
4463
  ),
4464
- /* @__PURE__ */ b("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
4465
- /* @__PURE__ */ b(
4464
+ /* @__PURE__ */ S("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
4465
+ /* @__PURE__ */ S(
4466
4466
  "span",
4467
4467
  {
4468
4468
  className: `and-table-column-setting-fix-btn ${R.fixed === "right" ? "active" : ""}`,
4469
- onClick: () => S(R.key, R.fixed === "right" ? !1 : "right"),
4469
+ onClick: () => b(R.key, R.fixed === "right" ? !1 : "right"),
4470
4470
  title: "固定到右侧",
4471
- children: /* @__PURE__ */ b(Fn, {})
4471
+ children: /* @__PURE__ */ S(Fn, {})
4472
4472
  }
4473
4473
  )
4474
4474
  ] }) })
@@ -4478,7 +4478,7 @@ const Je = 420, En = 440, aa = ({
4478
4478
  );
4479
4479
  }) })
4480
4480
  ] }) }),
4481
- /* @__PURE__ */ b("div", { className: "and-table-column-setting-footer", children: /* @__PURE__ */ b(te, { onClick: O, children: "重置" }) })
4481
+ /* @__PURE__ */ S("div", { className: "and-table-column-setting-footer", children: /* @__PURE__ */ S(te, { onClick: O, children: "重置" }) })
4482
4482
  ] })
4483
4483
  }
4484
4484
  );
@@ -4510,15 +4510,15 @@ const Je = 420, En = 440, aa = ({
4510
4510
  showSummary: A,
4511
4511
  showFooter: O,
4512
4512
  renderTitle: k,
4513
- renderSummary: S,
4513
+ renderSummary: b,
4514
4514
  renderFooter: M,
4515
4515
  children: T,
4516
4516
  token: E,
4517
- columnSettingOpenKey: B,
4518
- columnSettingsKey: H,
4519
- ...z
4517
+ columnSettingOpenKey: K,
4518
+ columnSettingsKey: q,
4519
+ ...B
4520
4520
  }) => {
4521
- const $ = _((F) => F.addCommand), q = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [L, R] = pt([]), Y = Mt(null), [Z, P] = pt(void 0), U = j((F, ut) => {
4521
+ const $ = _((F) => F.addCommand), W = _((F) => F.getDataSet), z = _((F) => F.setDataSet), [L, R] = pt([]), Y = Mt(null), [Z, P] = pt(void 0), U = j((F, ut) => {
4522
4522
  if (F == null) return ut;
4523
4523
  if (typeof F == "string")
4524
4524
  try {
@@ -4561,9 +4561,9 @@ const Je = 420, En = 440, aa = ({
4561
4561
  [Dt, it]
4562
4562
  ), Bt = _(
4563
4563
  (F) => I.pagination ? F.dataSets[I.pagination] : void 0
4564
- ), gt = v(() => I.pagination ? q(I.pagination, "") || {} : {}, [I.pagination, q, Bt]), at = v(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), ft = v(() => {
4564
+ ), gt = v(() => I.pagination ? W(I.pagination, "") || {} : {}, [I.pagination, W, Bt]), at = v(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), ft = v(() => {
4565
4565
  if (!at) return !1;
4566
- const F = typeof s == "object" ? s : {}, ut = z || {}, Et = F.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Nt = F.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, kt = F.simple ?? ut["pagination-simple"] ?? !1, zt = F.defaultPageSize ?? ut["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? ut["pagination-pageSizeOptions"] ?? "10,20,50,100", He = typeof Pt == "string" ? Pt.split(",").map((re) => parseInt(String(re).trim(), 10) || 10).filter((re) => !isNaN(re)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4566
+ const F = typeof s == "object" ? s : {}, ut = B || {}, Et = F.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Nt = F.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, kt = F.simple ?? ut["pagination-simple"] ?? !1, zt = F.defaultPageSize ?? ut["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? ut["pagination-pageSizeOptions"] ?? "10,20,50,100", He = typeof Pt == "string" ? Pt.split(",").map((re) => parseInt(String(re).trim(), 10) || 10).filter((re) => !isNaN(re)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4567
4567
  return {
4568
4568
  ...gt,
4569
4569
  showSizeChanger: Et,
@@ -4573,11 +4573,11 @@ const Je = 420, En = 440, aa = ({
4573
4573
  pageSizeOptions: He,
4574
4574
  showTotal: (re, se) => (F.showTotal || "共 ${total} 条").replace("${total}", String(re)).replace("${range[0]}", String(se[0])).replace("${range[1]}", String(se[1])).replace("${range}", `${se[0]}-${se[1]}`),
4575
4575
  onChange: (re, se) => {
4576
- I.pagination && K(I.pagination, "", { ...gt, current: re, pageSize: se }), f && t && $(t, X(f, null));
4576
+ I.pagination && z(I.pagination, "", { ...gt, current: re, pageSize: se }), f && t && $(t, X(f, null));
4577
4577
  },
4578
4578
  hideOnSinglePage: !1
4579
4579
  };
4580
- }, [at, s, z, gt, I.pagination, K, f, t, $]), At = j((F, ut) => {
4580
+ }, [at, s, B, gt, I.pagination, z, f, t, $]), At = j((F, ut) => {
4581
4581
  t && $(t, X(F.action, { ...ut }));
4582
4582
  }, [t, $]), J = v(() => tt.map((F) => {
4583
4583
  let ut = !1;
@@ -4590,7 +4590,7 @@ const Je = 420, En = 440, aa = ({
4590
4590
  fixed: ut,
4591
4591
  width: typeof Et == "number" ? Et : "auto"
4592
4592
  };
4593
- }).filter((F) => F.key), [tt]), Q = p === !0, yt = !1, V = x === "small" || x === "large" ? x : "middle", { rowIndexVisible: st, items: ht, scrollX: G, size: W } = v(() => oa(
4593
+ }).filter((F) => F.key), [tt]), Q = p === !0, yt = !1, V = x === "small" || x === "large" ? x : "middle", { rowIndexVisible: st, items: ht, scrollX: G, size: H } = v(() => oa(
4594
4594
  bt,
4595
4595
  J,
4596
4596
  Q,
@@ -4622,7 +4622,7 @@ const Je = 420, En = 440, aa = ({
4622
4622
  }), l !== !1 && et.length > 0 && F.push({
4623
4623
  title: "操作",
4624
4624
  key: "action",
4625
- render: (Nt, kt) => /* @__PURE__ */ b(Jt, { children: et.map((zt, Pt) => /* @__PURE__ */ b(kr, { title: zt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => At(zt, kt), style: { marginRight: 5 }, children: zt.title }) }, Pt)) })
4625
+ render: (Nt, kt) => /* @__PURE__ */ S(Jt, { children: et.map((zt, Pt) => /* @__PURE__ */ S(kr, { title: zt.tooltip, children: /* @__PURE__ */ S("a", { onClick: () => At(zt, kt), style: { marginRight: 5 }, children: zt.title }) }, Pt)) })
4626
4626
  }), F;
4627
4627
  }, [
4628
4628
  tt,
@@ -4633,29 +4633,29 @@ const Je = 420, En = 440, aa = ({
4633
4633
  gt,
4634
4634
  At
4635
4635
  ]), wt = j(() => {
4636
- I.columnSettingOpen && K(I.columnSettingOpen, "", !1);
4637
- }, [I.columnSettingOpen, K]), Ot = j(
4636
+ I.columnSettingOpen && z(I.columnSettingOpen, "", !1);
4637
+ }, [I.columnSettingOpen, z]), Ot = j(
4638
4638
  (F) => {
4639
- I.columnSettings && K(I.columnSettings, "value", F);
4639
+ I.columnSettings && z(I.columnSettings, "value", F);
4640
4640
  },
4641
- [I.columnSettings, K]
4641
+ [I.columnSettings, z]
4642
4642
  ), ne = v(() => {
4643
4643
  if (!g && h)
4644
4644
  return {
4645
4645
  selectedRowKeys: L,
4646
4646
  onChange: (F, ut, Et) => {
4647
- R(F), I.selected && K(I.selected, "", F), y != null && y.trim() && t && $(t, X(y.trim(), {
4647
+ R(F), I.selected && z(I.selected, "", F), y != null && y.trim() && t && $(t, X(y.trim(), {
4648
4648
  selectedRowKeys: F,
4649
4649
  selectedRows: ut,
4650
4650
  info: Et
4651
4651
  }));
4652
4652
  }
4653
4653
  };
4654
- }, [h, g, L, I.selected, K, y, t, $]), Ft = j((F) => {
4654
+ }, [h, g, L, I.selected, z, y, t, $]), Ft = j((F) => {
4655
4655
  if (!g) return;
4656
4656
  const Et = [F[m]];
4657
- R(Et), I.selected && K(I.selected, "", Et), y != null && y.trim() && t && $(t, X(y.trim(), { record: F, selectedRowKeys: Et }));
4658
- }, [g, y, t, m, I.selected, K, $]), ge = j((F) => g && L.includes(F[m]) ? "ant-table-row-selected" : "", [g, m, L]), lr = j((F) => g ? { onClick: () => Ft(F), style: { cursor: "pointer" } } : {}, [g, Ft]), { style: ur, className: fr, ...pe } = z, jt = v(() => {
4657
+ R(Et), I.selected && z(I.selected, "", Et), y != null && y.trim() && t && $(t, X(y.trim(), { record: F, selectedRowKeys: Et }));
4658
+ }, [g, y, t, m, I.selected, z, $]), ge = j((F) => g && L.includes(F[m]) ? "ant-table-row-selected" : "", [g, m, L]), lr = j((F) => g ? { onClick: () => Ft(F), style: { cursor: "pointer" } } : {}, [g, Ft]), { style: ur, className: fr, ...pe } = B, jt = v(() => {
4659
4659
  if (N) return N;
4660
4660
  let F = pe["scroll-x"], ut = pe["scroll-y"];
4661
4661
  if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (ut === "" || ut === null || ut === void 0) && (ut = void 0), F !== void 0 || ut !== void 0) return { x: F, y: ut };
@@ -4677,15 +4677,15 @@ const Je = 420, En = 440, aa = ({
4677
4677
  }, [T]), hr = v(() => {
4678
4678
  if (!_e) {
4679
4679
  if (k) return k;
4680
- if (w && n) return () => /* @__PURE__ */ b("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
4680
+ if (w && n) return () => /* @__PURE__ */ S("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
4681
4681
  }
4682
4682
  }, [w, _e, k, n]), yr = v(() => {
4683
- if (S) return S;
4683
+ if (b) return b;
4684
4684
  if (A && Oe)
4685
- return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: dt.length, style: { padding: 0 }, children: Oe }) });
4685
+ return () => /* @__PURE__ */ S("tr", { children: /* @__PURE__ */ S("td", { colSpan: dt.length, style: { padding: 0 }, children: Oe }) });
4686
4686
  if (A && n)
4687
- return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: dt.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
4688
- }, [A, Oe, S, dt.length, n]), hn = /* @__PURE__ */ b(
4687
+ return () => /* @__PURE__ */ S("tr", { children: /* @__PURE__ */ S("td", { colSpan: dt.length, style: { padding: 0 }, children: /* @__PURE__ */ S("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
4688
+ }, [A, Oe, b, dt.length, n]), hn = /* @__PURE__ */ S(
4689
4689
  Tr,
4690
4690
  {
4691
4691
  ...pe,
@@ -4697,7 +4697,7 @@ const Je = 420, En = 440, aa = ({
4697
4697
  pagination: ft,
4698
4698
  locale: { emptyText: d },
4699
4699
  bordered: u,
4700
- size: ot ? W : x,
4700
+ size: ot ? H : x,
4701
4701
  sticky: C,
4702
4702
  scroll: dr,
4703
4703
  title: hr,
@@ -4714,11 +4714,11 @@ const Je = 420, En = 440, aa = ({
4714
4714
  style: { width: "100%", height: "100%", ...ur },
4715
4715
  className: fr,
4716
4716
  children: [
4717
- _e && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: _e }),
4717
+ _e && /* @__PURE__ */ S("div", { "data-table-slot": "title", children: _e }),
4718
4718
  /* @__PURE__ */ lt("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
4719
4719
  g && (() => {
4720
4720
  const F = (it == null ? void 0 : it.rowSelectedBg) || "#e6f4ff", ut = (it == null ? void 0 : it.rowSelectedHoverBg) || (it == null ? void 0 : it.rowSelectedBg) || "#bae0ff", Et = it == null ? void 0 : it.rowSelectedColor, Nt = (it == null ? void 0 : it.rowSelectedLinkColor) ?? Et, kt = (it == null ? void 0 : it.rowSelectedLinkHoverColor) ?? Nt;
4721
- return /* @__PURE__ */ b("style", { children: `
4721
+ return /* @__PURE__ */ S("style", { children: `
4722
4722
  .ant-table-row-selected > td {
4723
4723
  background: ${F} !important;
4724
4724
  ${Et ? `color: ${Et};` : ""}
@@ -4730,12 +4730,12 @@ const Je = 420, En = 440, aa = ({
4730
4730
  ${kt ? `.ant-table-row-selected > td a:hover { color: ${kt}; }` : ""}
4731
4731
  ` });
4732
4732
  })(),
4733
- _t ? /* @__PURE__ */ b(Lt, { theme: _t, children: hn }) : hn
4733
+ _t ? /* @__PURE__ */ S(Lt, { theme: _t, children: hn }) : hn
4734
4734
  ] }),
4735
4735
  Oe,
4736
- mn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: mn }),
4736
+ mn && /* @__PURE__ */ S("div", { "data-table-slot": "footer", children: mn }),
4737
4737
  mr,
4738
- ot && /* @__PURE__ */ b(
4738
+ ot && /* @__PURE__ */ S(
4739
4739
  aa,
4740
4740
  {
4741
4741
  open: mt,
@@ -4746,7 +4746,7 @@ const Je = 420, En = 440, aa = ({
4746
4746
  defaultColumnItems: J,
4747
4747
  scrollX: G,
4748
4748
  defaultScrollX: yt,
4749
- size: W,
4749
+ size: H,
4750
4750
  defaultSize: V,
4751
4751
  onSave: Ot,
4752
4752
  onClose: wt
@@ -4803,7 +4803,7 @@ const Je = 420, En = 440, aa = ({
4803
4803
  return {};
4804
4804
  }
4805
4805
  return y;
4806
- }, [y]), S = (L) => L == null || L === "" || typeof L == "string" && L.trim() === "", M = v(() => n ? i : O != null && O !== "" ? S(O) && m ? i : O : (x == null ? void 0 : x.content) !== void 0 ? x.content : i, [n, O, x == null ? void 0 : x.content, i, m]), T = v(() => {
4806
+ }, [y]), b = (L) => L == null || L === "" || typeof L == "string" && L.trim() === "", M = v(() => n ? i : O != null && O !== "" ? b(O) && m ? i : O : (x == null ? void 0 : x.content) !== void 0 ? x.content : i, [n, O, x == null ? void 0 : x.content, i, m]), T = v(() => {
4807
4807
  if (h && A.length > 0 && M !== void 0 && M !== null) {
4808
4808
  const L = Gt(A, M);
4809
4809
  return (L == null ? void 0 : L.label) ?? M;
@@ -4814,12 +4814,12 @@ const Je = 420, En = 440, aa = ({
4814
4814
  return T;
4815
4815
  const L = (x == null ? void 0 : x.formatType) || g;
4816
4816
  return L && T !== void 0 && T !== null ? Eo(T, L, k) : T;
4817
- }, [n, T, g, k, x == null ? void 0 : x.formatType]), B = v(() => {
4817
+ }, [n, T, g, k, x == null ? void 0 : x.formatType]), K = v(() => {
4818
4818
  const L = { ...d };
4819
4819
  return x && typeof x == "object" && Object.keys(x).forEach((R) => {
4820
4820
  !["content", "formatType", "formatValue", "clickAction"].includes(R) && x[R] !== void 0 && x[R] !== null && (L[R] = x[R]);
4821
4821
  }), L;
4822
- }, [d, x]), H = (x == null ? void 0 : x.color) ?? l, z = qe(H), $ = v(() => {
4822
+ }, [d, x]), q = (x == null ? void 0 : x.color) ?? l, B = qe(q), $ = v(() => {
4823
4823
  if (!f) return;
4824
4824
  let L = f;
4825
4825
  if (typeof f == "string")
@@ -4833,15 +4833,15 @@ const Je = 420, En = 440, aa = ({
4833
4833
  return Object.entries(L).forEach(([Y, Z]) => {
4834
4834
  Z !== "" && Z !== void 0 && Z !== null && (R[Y] = Z);
4835
4835
  }), Object.keys(R).length > 0 ? R : void 0;
4836
- }, [f]), q = v(() => {
4836
+ }, [f]), W = v(() => {
4837
4837
  const L = { width: "100%" }, R = (x == null ? void 0 : x.fontSize) ?? c;
4838
4838
  if (R) {
4839
4839
  const Y = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
4840
4840
  L.fontSize = Y;
4841
4841
  }
4842
- return z && (L.color = z), L;
4843
- }, [c, z, x == null ? void 0 : x.fontSize]), K = /* @__PURE__ */ b(ca, { ...B, style: { ...q, ...p, ...B.style }, children: E != null && E !== "" ? String(E) : r });
4844
- return $ ? /* @__PURE__ */ b(Lt, { theme: { token: $ }, children: K }) : K;
4842
+ return B && (L.color = B), L;
4843
+ }, [c, B, x == null ? void 0 : x.fontSize]), z = /* @__PURE__ */ S(ca, { ...K, style: { ...W, ...p, ...K.style }, children: E != null && E !== "" ? String(E) : r });
4844
+ return $ ? /* @__PURE__ */ S(Lt, { theme: { token: $ }, children: z }) : z;
4845
4845
  }, { Title: sa } = un, Fc = ({
4846
4846
  id: e,
4847
4847
  sessionId: t,
@@ -4870,7 +4870,7 @@ const Je = 420, En = 440, aa = ({
4870
4870
  w !== "content" && f[w] !== void 0 && f[w] !== null && (D[w] = f[w]);
4871
4871
  }), D;
4872
4872
  }, [g, f]);
4873
- return /* @__PURE__ */ b(sa, { level: c, ...N, style: { ...C, ...h, ...N.style }, children: d || r });
4873
+ return /* @__PURE__ */ S(sa, { level: c, ...N, style: { ...C, ...h, ...N.style }, children: d || r });
4874
4874
  }, { Paragraph: la } = un, Qc = ({
4875
4875
  id: e,
4876
4876
  sessionId: t,
@@ -4898,7 +4898,7 @@ const Je = 420, En = 440, aa = ({
4898
4898
  D !== "content" && p[D] !== void 0 && p[D] !== null && (N[D] = p[D]);
4899
4899
  }), N;
4900
4900
  }, [h, p]);
4901
- return /* @__PURE__ */ b(la, { ...C, style: { ...x, ...l, ...C.style }, children: s || r });
4901
+ return /* @__PURE__ */ S(la, { ...C, style: { ...x, ...l, ...C.style }, children: s || r });
4902
4902
  }, ua = (e) => {
4903
4903
  if (!e) return [];
4904
4904
  if (typeof e == "string")
@@ -4927,13 +4927,13 @@ const Je = 420, En = 440, aa = ({
4927
4927
  const f = _((k) => k.addCommand), s = _((k) => k.getDataSet), d = _((k) => k.setDataSet), u = v(
4928
4928
  () => nt(t, i),
4929
4929
  [t, i]
4930
- ), x = v(() => ua(o), [o]), C = v(() => a && a.length > 0 ? n ? a.map((k) => ({ ...k, forceRender: !0 })) : a : x.length > 0 ? x.map((k, S) => ({
4930
+ ), x = v(() => ua(o), [o]), C = v(() => a && a.length > 0 ? n ? a.map((k) => ({ ...k, forceRender: !0 })) : a : x.length > 0 ? x.map((k, b) => ({
4931
4931
  key: k.key,
4932
4932
  label: k.tab,
4933
4933
  disabled: k.disabled,
4934
4934
  // 开发模式下强制渲染所有 TabPane,以便设计每个 Tab 的内容
4935
4935
  forceRender: n ? !0 : void 0,
4936
- children: y ? y(k.key, S) : null
4936
+ children: y ? y(k.key, b) : null
4937
4937
  })) : [], [a, x, y, n]), N = v(() => {
4938
4938
  if (u && r) return s(u, r);
4939
4939
  }, [u, r, s]), [D, w] = qt.useState(void 0), A = v(() => {
@@ -4952,7 +4952,7 @@ const Je = 420, En = 440, aa = ({
4952
4952
  }
4953
4953
  u && r && d(u, r, k), c && t && f(t, X(c, k));
4954
4954
  }, [n, l, u, r, d, c, t, f]);
4955
- return /* @__PURE__ */ b(
4955
+ return /* @__PURE__ */ S(
4956
4956
  _r,
4957
4957
  {
4958
4958
  ...p,
@@ -4990,17 +4990,17 @@ const Je = 420, En = 440, aa = ({
4990
4990
  onDragStart: A,
4991
4991
  onDrop: O,
4992
4992
  onRightClick: k,
4993
- onLoad: S,
4993
+ onLoad: b,
4994
4994
  treeData: M,
4995
4995
  styles: T,
4996
4996
  classNames: E,
4997
- token: B,
4998
- ...H
4997
+ token: K,
4998
+ ...q
4999
4999
  }) => {
5000
- const z = _((V) => V.addCommand), $ = _((V) => V.setDataSet), q = v(
5000
+ const B = _((V) => V.addCommand), $ = _((V) => V.setDataSet), W = v(
5001
5001
  () => nt(t, i),
5002
5002
  [t, i]
5003
- ), K = v(
5003
+ ), z = v(
5004
5004
  () => i ? nt(t, `${i}_selected`) : void 0,
5005
5005
  [t, i]
5006
5006
  ), L = v(
@@ -5010,135 +5010,135 @@ const Je = 420, En = 440, aa = ({
5010
5010
  () => i ? nt(t, `${i}_expanded`) : void 0,
5011
5011
  [t, i]
5012
5012
  ), Y = _((V) => {
5013
- if (!q) return;
5013
+ if (!W) return;
5014
5014
  if (r)
5015
- return V.getDataSet(q, r);
5016
- const st = V.dataSets[q];
5015
+ return V.getDataSet(W, r);
5016
+ const st = V.dataSets[W];
5017
5017
  if (!st) return;
5018
5018
  if (Array.isArray(st)) return st;
5019
5019
  const ht = st.value;
5020
5020
  return Array.isArray(ht) ? ht : void 0;
5021
5021
  }), Z = _(
5022
- (V) => K ? V.getDataSet(K, "") : void 0
5022
+ (V) => z ? V.getDataSet(z, "") : void 0
5023
5023
  ), P = _(
5024
5024
  (V) => L ? V.getDataSet(L, "") : void 0
5025
5025
  ), U = _(
5026
5026
  (V) => R ? V.getDataSet(R, "") : void 0
5027
- ), tt = v(() => n ? Y ?? M ?? [] : q ? Y ?? [] : M ?? [], [n, q, Y, M]), et = Z, I = P, mt = U, St = j(
5027
+ ), tt = v(() => n ? Y ?? M ?? [] : W ? Y ?? [] : M ?? [], [n, W, Y, M]), et = Z, I = P, mt = U, St = j(
5028
5028
  (V, st) => {
5029
5029
  if (d) {
5030
5030
  d(V, st);
5031
5031
  return;
5032
5032
  }
5033
- K && $(K, "", V), o && t && z(t, X(o, { selectedKeys: V }));
5033
+ z && $(z, "", V), o && t && B(t, X(o, { selectedKeys: V }));
5034
5034
  },
5035
- [d, K, t, $, o, z]
5035
+ [d, z, t, $, o, B]
5036
5036
  ), bt = j(
5037
5037
  (V, st) => {
5038
5038
  if (u) {
5039
5039
  u(V, st);
5040
5040
  return;
5041
5041
  }
5042
- L && $(L, "", V), a && t && z(t, X(a, { checkedKeys: V }));
5042
+ L && $(L, "", V), a && t && B(t, X(a, { checkedKeys: V }));
5043
5043
  },
5044
- [u, L, t, $, a, z]
5044
+ [u, L, t, $, a, B]
5045
5045
  ), ct = j(
5046
5046
  (V, st) => {
5047
5047
  if (x) {
5048
5048
  x(V, st);
5049
5049
  return;
5050
5050
  }
5051
- R && $(R, "", V), c && t && z(t, X(c, { expandedKeys: V, expanded: st.expanded }));
5051
+ R && $(R, "", V), c && t && B(t, X(c, { expandedKeys: V, expanded: st.expanded }));
5052
5052
  },
5053
- [x, R, t, $, c, z]
5053
+ [x, R, t, $, c, B]
5054
5054
  ), rt = j(
5055
5055
  (V) => {
5056
5056
  if (C) {
5057
5057
  C(V);
5058
5058
  return;
5059
5059
  }
5060
- l && t && z(t, X(l, V));
5060
+ l && t && B(t, X(l, V));
5061
5061
  },
5062
- [C, l, t, z]
5062
+ [C, l, t, B]
5063
5063
  ), it = j(
5064
5064
  (V) => {
5065
5065
  if (N) {
5066
5066
  N(V);
5067
5067
  return;
5068
5068
  }
5069
- h && t && z(t, X(h, V));
5069
+ h && t && B(t, X(h, V));
5070
5070
  },
5071
- [N, h, t, z]
5071
+ [N, h, t, B]
5072
5072
  ), Dt = j(
5073
5073
  (V) => {
5074
5074
  if (D) {
5075
5075
  D(V);
5076
5076
  return;
5077
5077
  }
5078
- g && t && z(t, X(g, V));
5078
+ g && t && B(t, X(g, V));
5079
5079
  },
5080
- [D, g, t, z]
5080
+ [D, g, t, B]
5081
5081
  ), _t = j(
5082
5082
  (V) => {
5083
5083
  if (w) {
5084
5084
  w(V);
5085
5085
  return;
5086
5086
  }
5087
- y && t && z(t, X(y, V));
5087
+ y && t && B(t, X(y, V));
5088
5088
  },
5089
- [w, y, t, z]
5089
+ [w, y, t, B]
5090
5090
  ), Bt = j(
5091
5091
  (V) => {
5092
5092
  if (A) {
5093
5093
  A(V);
5094
5094
  return;
5095
5095
  }
5096
- m && t && z(t, X(m, V));
5096
+ m && t && B(t, X(m, V));
5097
5097
  },
5098
- [A, m, t, z]
5098
+ [A, m, t, B]
5099
5099
  ), gt = j(
5100
5100
  (V) => {
5101
5101
  if (O) {
5102
5102
  O(V);
5103
5103
  return;
5104
5104
  }
5105
- p && t && z(t, X(p, V));
5105
+ p && t && B(t, X(p, V));
5106
5106
  },
5107
- [O, p, t, z]
5107
+ [O, p, t, B]
5108
5108
  ), at = j(
5109
5109
  (V) => {
5110
5110
  if (k) {
5111
5111
  k(V);
5112
5112
  return;
5113
5113
  }
5114
- f && t && z(t, X(f, V));
5114
+ f && t && B(t, X(f, V));
5115
5115
  },
5116
- [k, f, t, z]
5116
+ [k, f, t, B]
5117
5117
  ), ft = j(
5118
5118
  (V, st) => {
5119
- if (S) {
5120
- S(V, st);
5119
+ if (b) {
5120
+ b(V, st);
5121
5121
  return;
5122
5122
  }
5123
- s && t && z(t, X(s, { loadedKeys: V, ...st }));
5123
+ s && t && B(t, X(s, { loadedKeys: V, ...st }));
5124
5124
  },
5125
- [S, s, t, z]
5125
+ [b, s, t, B]
5126
5126
  ), At = v(() => {
5127
- if (!B) return;
5127
+ if (!K) return;
5128
5128
  const V = {};
5129
- return Object.entries(B).forEach(([st, ht]) => {
5129
+ return Object.entries(K).forEach(([st, ht]) => {
5130
5130
  ht !== "" && ht !== void 0 && ht !== null && (V[st] = ht);
5131
5131
  }), Object.keys(V).length > 0 ? V : void 0;
5132
- }, [B]), J = v(() => {
5132
+ }, [K]), J = v(() => {
5133
5133
  const V = {};
5134
5134
  return n && (V.motion = !1), At && (V.components = { Tree: At }), Object.keys(V).length > 0 ? V : void 0;
5135
- }, [n, At]), yt = /* @__PURE__ */ b(
5135
+ }, [n, At]), yt = /* @__PURE__ */ S(
5136
5136
  Or,
5137
5137
  {
5138
- ...H,
5138
+ ...q,
5139
5139
  ...n ? { motion: !1 } : {},
5140
5140
  treeData: tt,
5141
- ...K != null ? { selectedKeys: et ?? [] } : {},
5141
+ ...z != null ? { selectedKeys: et ?? [] } : {},
5142
5142
  ...L != null ? { checkedKeys: I ?? [] } : {},
5143
5143
  ...R != null ? { expandedKeys: mt ?? [] } : {},
5144
5144
  onSelect: St,
@@ -5156,7 +5156,7 @@ const Je = 420, En = 440, aa = ({
5156
5156
  classNames: E
5157
5157
  }
5158
5158
  );
5159
- return J ? /* @__PURE__ */ b(Lt, { theme: J, children: yt }) : yt;
5159
+ return J ? /* @__PURE__ */ S(Lt, { theme: J, children: yt }) : yt;
5160
5160
  }, Ic = ({
5161
5161
  id: e,
5162
5162
  sessionId: t,
@@ -5194,7 +5194,7 @@ const Je = 420, En = 440, aa = ({
5194
5194
  C !== "items" && p[C] !== void 0 && p[C] !== null && (x[C] = p[C]);
5195
5195
  }), x;
5196
5196
  }, [h, p]), u = v(() => l === "left" ? "start" : l === "right" ? "end" : l, [l]);
5197
- return /* @__PURE__ */ b(
5197
+ return /* @__PURE__ */ S(
5198
5198
  Er,
5199
5199
  {
5200
5200
  ...d,
@@ -5230,18 +5230,18 @@ const Je = 420, En = 440, aa = ({
5230
5230
  token: f,
5231
5231
  ...s
5232
5232
  }) => {
5233
- const d = _((B) => B.addCommand), u = _((B) => B.getDataSet), x = _((B) => B.setDataSet), C = v(
5233
+ const d = _((K) => K.addCommand), u = _((K) => K.getDataSet), x = _((K) => K.setDataSet), C = v(
5234
5234
  () => nt(t, i),
5235
5235
  [t, i]
5236
5236
  ), N = v(() => {
5237
5237
  if (C && r) return u(C, r);
5238
- }, [C, r, u]), D = v(() => N ?? c ?? 0, [N, c]), w = v(() => g ?? h, [g, h]), A = v(() => m ?? y, [m, y]), O = v(() => Fe(l, []), [l]), k = v(() => Fe(p, {}), [p]), S = v(() => Fe(f, {}), [f]), M = j((B) => {
5238
+ }, [C, r, u]), D = v(() => N ?? c ?? 0, [N, c]), w = v(() => g ?? h, [g, h]), A = v(() => m ?? y, [m, y]), O = v(() => Fe(l, []), [l]), k = v(() => Fe(p, {}), [p]), b = v(() => Fe(f, {}), [f]), M = j((K) => {
5239
5239
  if (a) {
5240
- a(B);
5240
+ a(K);
5241
5241
  return;
5242
5242
  }
5243
- C && r && x(C, r, B), o && t && d(t, X(o, B));
5244
- }, [a, C, r, x, o, t, d]), T = Object.keys(S).length > 0, E = /* @__PURE__ */ b(
5243
+ C && r && x(C, r, K), o && t && d(t, X(o, K));
5244
+ }, [a, C, r, x, o, t, d]), T = Object.keys(b).length > 0, E = /* @__PURE__ */ S(
5245
5245
  Mr,
5246
5246
  {
5247
5247
  ...s,
@@ -5253,13 +5253,13 @@ const Je = 420, En = 440, aa = ({
5253
5253
  onChange: M
5254
5254
  }
5255
5255
  );
5256
- return T ? /* @__PURE__ */ b(Lt, { theme: { components: { Steps: S } }, children: E }) : E;
5256
+ return T ? /* @__PURE__ */ S(Lt, { theme: { components: { Steps: b } }, children: E }) : E;
5257
5257
  }, es = ({
5258
5258
  id: e,
5259
5259
  sessionId: t,
5260
5260
  develop: n,
5261
5261
  ...i
5262
- }) => /* @__PURE__ */ b(Ze, { ...i }), ns = ({
5262
+ }) => /* @__PURE__ */ S(Ze, { ...i }), ns = ({
5263
5263
  id: e,
5264
5264
  sessionId: t,
5265
5265
  develop: n,
@@ -5267,9 +5267,9 @@ const Je = 420, En = 440, aa = ({
5267
5267
  }) => {
5268
5268
  const r = Ze.Timer;
5269
5269
  if (r)
5270
- return /* @__PURE__ */ b(r, { type: "countdown", ...i });
5270
+ return /* @__PURE__ */ S(r, { type: "countdown", ...i });
5271
5271
  const { Countdown: o } = Ze;
5272
- return /* @__PURE__ */ b(o, { ...i });
5272
+ return /* @__PURE__ */ S(o, { ...i });
5273
5273
  }, fa = {
5274
5274
  top: "top",
5275
5275
  bottom: "bottom",
@@ -5314,7 +5314,7 @@ const Je = 420, En = 440, aa = ({
5314
5314
  s && r && f(s, r, N), l && t && p(t, X(l, N));
5315
5315
  }, [h, s, r, f, l, t, p]), C = v(() => y || (u.length > 0 ? u.map((N, D) => {
5316
5316
  const w = g ? g(N.key, D) : null;
5317
- return /* @__PURE__ */ b("div", { "data-slide-key": N.key, children: w || /* @__PURE__ */ b("div", { style: {
5317
+ return /* @__PURE__ */ S("div", { "data-slide-key": N.key, children: w || /* @__PURE__ */ S("div", { style: {
5318
5318
  minHeight: "100px",
5319
5319
  display: "flex",
5320
5320
  alignItems: "center",
@@ -5323,7 +5323,7 @@ const Je = 420, En = 440, aa = ({
5323
5323
  background: n ? "#f5f5f5" : void 0
5324
5324
  }, children: n ? N.title : null }) }, N.key);
5325
5325
  }) : null), [y, u, g, n]);
5326
- return /* @__PURE__ */ b(
5326
+ return /* @__PURE__ */ S(
5327
5327
  $r,
5328
5328
  {
5329
5329
  ...m,
@@ -5387,7 +5387,7 @@ const is = ({
5387
5387
  image: { width: "100%", height: "100%", objectFit: a }
5388
5388
  }
5389
5389
  };
5390
- return /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ b(Xt, { ...s }) });
5390
+ return /* @__PURE__ */ S("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ S(Xt, { ...s }) });
5391
5391
  }, { PreviewGroup: ga } = Xt;
5392
5392
  function pa(e) {
5393
5393
  if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
@@ -5427,7 +5427,7 @@ const os = ({
5427
5427
  u !== "items" && y[u] !== void 0 && y[u] !== null && (d[u] = y[u]);
5428
5428
  }), d;
5429
5429
  }, [c, y]);
5430
- return /* @__PURE__ */ b(ga, { ...s, items: f, children: i });
5430
+ return /* @__PURE__ */ S(ga, { ...s, items: f, children: i });
5431
5431
  }, as = ({
5432
5432
  id: e,
5433
5433
  sessionId: t,
@@ -5454,7 +5454,7 @@ const os = ({
5454
5454
  let w = l;
5455
5455
  if (!n && (f != null && f.icon) && (w = f.icon), typeof w == "string" && w) {
5456
5456
  const A = Qt[w];
5457
- if (A) return /* @__PURE__ */ b(A, {});
5457
+ if (A) return /* @__PURE__ */ S(A, {});
5458
5458
  }
5459
5459
  return w;
5460
5460
  }, [l, f == null ? void 0 : f.icon, n]), x = v(() => {
@@ -5466,8 +5466,8 @@ const os = ({
5466
5466
  const w = f == null ? void 0 : f.token, A = { ...h, ...w };
5467
5467
  if (!A || Object.keys(A).length === 0) return;
5468
5468
  const O = {};
5469
- return Object.entries(A).forEach(([k, S]) => {
5470
- if (S !== "" && S !== void 0 && S !== null)
5469
+ return Object.entries(A).forEach(([k, b]) => {
5470
+ if (b !== "" && b !== void 0 && b !== null)
5471
5471
  if ([
5472
5472
  "containerSize",
5473
5473
  "containerSizeLG",
@@ -5477,15 +5477,15 @@ const os = ({
5477
5477
  "textFontSizeSM",
5478
5478
  "groupOverlapping"
5479
5479
  ].includes(k)) {
5480
- const M = typeof S == "string" ? parseInt(S, 10) : S;
5480
+ const M = typeof b == "string" ? parseInt(b, 10) : b;
5481
5481
  isNaN(M) || (O[k] = M);
5482
5482
  } else
5483
- O[k] = S;
5483
+ O[k] = b;
5484
5484
  }), Object.keys(O).length > 0 ? O : void 0;
5485
5485
  }, [h, f == null ? void 0 : f.token]), N = v(() => {
5486
5486
  if (C)
5487
5487
  return { components: { Avatar: C } };
5488
- }, [C]), D = /* @__PURE__ */ b(
5488
+ }, [C]), D = /* @__PURE__ */ S(
5489
5489
  Rr,
5490
5490
  {
5491
5491
  ...x,
@@ -5494,7 +5494,7 @@ const os = ({
5494
5494
  children: i
5495
5495
  }
5496
5496
  );
5497
- return N ? /* @__PURE__ */ b(Lt, { theme: N, children: D }) : D;
5497
+ return N ? /* @__PURE__ */ S(Lt, { theme: N, children: D }) : D;
5498
5498
  }, va = {
5499
5499
  0: "default",
5500
5500
  1: "success",
@@ -5535,29 +5535,32 @@ const os = ({
5535
5535
  return h;
5536
5536
  }
5537
5537
  }, [h]), D = _(
5538
- (B) => {
5539
- var H;
5540
- return u && e ? ((H = B.propsStore[`${u}_props`]) == null ? void 0 : H[e]) ?? null : null;
5538
+ (q) => {
5539
+ var B;
5540
+ return u && e ? ((B = q.propsStore[`${u}_props`]) == null ? void 0 : B[e]) ?? null : null;
5541
5541
  }
5542
5542
  ), w = _(
5543
- (B) => x && d ? B.getDataSet(x, d) : void 0
5543
+ (q) => x && d ? q.getDataSet(x, d) : void 0
5544
5544
  ), A = v(() => n ? r : w != null && w !== "" ? String(w) : (D == null ? void 0 : D.content) !== void 0 ? D.content : r, [n, w, D == null ? void 0 : D.content, r]), O = v(() => {
5545
5545
  if (c && C.length > 0 && A !== void 0 && A !== null) {
5546
- const B = Gt(C, A);
5547
- return (B == null ? void 0 : B.label) ?? A;
5546
+ const q = Gt(C, A);
5547
+ return (q == null ? void 0 : q.label) ?? A;
5548
5548
  }
5549
5549
  return A;
5550
5550
  }, [c, C, A]), k = v(() => {
5551
5551
  if (!l || A === void 0 || A === null) return;
5552
- const B = String(A).toLowerCase();
5553
- return N && N[B] ? N[B] : va[B];
5554
- }, [l, A, N]), S = v(() => {
5555
- const B = { ...p };
5556
- return D && typeof D == "object" && Object.keys(D).forEach((H) => {
5557
- !["content", "color"].includes(H) && D[H] !== void 0 && D[H] !== null && (B[H] = D[H]);
5558
- }), B;
5559
- }, [p, D]), M = (D == null ? void 0 : D.color) ?? g, E = qe(M) || k;
5560
- return /* @__PURE__ */ b(qn, { ...S, color: E, children: O || i });
5552
+ const q = String(A).toLowerCase();
5553
+ return N && N[q] ? N[q] : va[q];
5554
+ }, [l, A, N]), b = v(() => {
5555
+ const q = { ...p };
5556
+ return D && typeof D == "object" && Object.keys(D).forEach((B) => {
5557
+ !["content", "color"].includes(B) && D[B] !== void 0 && D[B] !== null && (q[B] = D[B]);
5558
+ }), q;
5559
+ }, [p, D]), M = v(() => {
5560
+ const { bordered: q, ...B } = b;
5561
+ return B;
5562
+ }, [b]), T = (D == null ? void 0 : D.color) ?? g, K = qe(T) || k;
5563
+ return /* @__PURE__ */ S(qn, { ...M, color: K, children: O || i });
5561
5564
  }, ss = ({
5562
5565
  id: e,
5563
5566
  sessionId: t,
@@ -5579,32 +5582,32 @@ const os = ({
5579
5582
  [t, i]
5580
5583
  ), u = r ?? (d ? "" : void 0), x = v(() => ({}), []), C = _((k) => {
5581
5584
  if (!d) return x;
5582
- const S = k.getDataSet(d, u ?? "");
5583
- return S != null && typeof S == "object" ? S : x;
5585
+ const b = k.getDataSet(d, u ?? "");
5586
+ return b != null && typeof b == "object" ? b : x;
5584
5587
  }), N = C.current ?? h ?? 1, D = C.pageSize ?? g ?? 10, w = C.total ?? y ?? 0;
5585
5588
  xt(() => {
5586
5589
  if (!d || u === void 0) return;
5587
- const k = u ?? "", { getDataSet: S, setDataSet: M } = _.getState(), T = S(d, k), E = Number(g ?? m ?? 10), B = Number.isFinite(E) && E > 0 ? E : 10;
5590
+ const k = u ?? "", { getDataSet: b, setDataSet: M } = _.getState(), T = b(d, k), E = Number(g ?? m ?? 10), K = Number.isFinite(E) && E > 0 ? E : 10;
5588
5591
  if (T == null || typeof T != "object" || Array.isArray(T)) {
5589
5592
  M(
5590
5593
  d,
5591
5594
  k,
5592
5595
  {
5593
5596
  current: h ?? 1,
5594
- pageSize: B,
5597
+ pageSize: K,
5595
5598
  total: y ?? 0
5596
5599
  },
5597
5600
  !1
5598
5601
  );
5599
5602
  return;
5600
5603
  }
5601
- const H = Number(T.pageSize);
5602
- Number.isFinite(H) && H > 0 || M(
5604
+ const q = Number(T.pageSize);
5605
+ Number.isFinite(q) && q > 0 || M(
5603
5606
  d,
5604
5607
  k,
5605
5608
  {
5606
5609
  ...T,
5607
- pageSize: B,
5610
+ pageSize: K,
5608
5611
  current: T.current ?? h ?? 1,
5609
5612
  total: T.total ?? y ?? 0
5610
5613
  },
@@ -5618,20 +5621,20 @@ const os = ({
5618
5621
  m,
5619
5622
  y
5620
5623
  ]);
5621
- const A = j((k, S) => {
5624
+ const A = j((k, b) => {
5622
5625
  if (c) {
5623
- c(k, S);
5626
+ c(k, b);
5624
5627
  return;
5625
5628
  }
5626
- d && s(d, u ?? "", { current: k, pageSize: S, total: w }), o && t && f(t, X(o, { page: k, pageSize: S }));
5627
- }, [c, d, u, s, w, o, t, f]), O = j((k, S) => {
5629
+ d && s(d, u ?? "", { current: k, pageSize: b, total: w }), o && t && f(t, X(o, { page: k, pageSize: b }));
5630
+ }, [c, d, u, s, w, o, t, f]), O = j((k, b) => {
5628
5631
  if (l) {
5629
- l(k, S);
5632
+ l(k, b);
5630
5633
  return;
5631
5634
  }
5632
- d && s(d, u ?? "", { current: k, pageSize: S, total: w }), a && t && f(t, X(a, { current: k, pageSize: S }));
5635
+ d && s(d, u ?? "", { current: k, pageSize: b, total: w }), a && t && f(t, X(a, { current: k, pageSize: b }));
5633
5636
  }, [l, d, u, s, w, a, t, f]);
5634
- return /* @__PURE__ */ b(
5637
+ return /* @__PURE__ */ S(
5635
5638
  Wn,
5636
5639
  {
5637
5640
  ...p,
@@ -5642,7 +5645,7 @@ const os = ({
5642
5645
  onShowSizeChange: O,
5643
5646
  showTotal: v(() => {
5644
5647
  const k = p.showTotal;
5645
- return typeof k == "string" ? (S, M) => k.replace("${total}", String(S)).replace("${range[0]}", String(M[0])).replace("${range[1]}", String(M[1])).replace("${range}", `${M[0]}-${M[1]}`) : k;
5648
+ return typeof k == "string" ? (b, M) => k.replace("${total}", String(b)).replace("${range[0]}", String(M[0])).replace("${range[1]}", String(M[1])).replace("${range}", `${M[0]}-${M[1]}`) : k;
5646
5649
  }, [p.showTotal])
5647
5650
  }
5648
5651
  );
@@ -5653,14 +5656,14 @@ const os = ({
5653
5656
  items: i,
5654
5657
  children: r,
5655
5658
  ...o
5656
- }) => /* @__PURE__ */ b(jr, { ...o, items: i, children: r }), je = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), ba = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
5659
+ }) => /* @__PURE__ */ S(jr, { ...o, items: i, children: r }), je = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), ba = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
5657
5660
  const o = Mt(null), a = Mt(null), [c, l] = pt(0), [h, g] = pt(!1), [y, m] = pt(0), [p, f] = pt(0), s = e === "horizontal";
5658
5661
  xt(() => {
5659
5662
  const w = () => {
5660
5663
  if (!o.current || !a.current) return;
5661
5664
  const O = o.current, k = a.current;
5662
- let S = 0, M = 0, T = !1;
5663
- s ? (S = O.clientWidth, M = k.scrollWidth, T = M > S) : (S = O.clientHeight, M = k.scrollHeight, T = M > S), f(S), m(M), g(T), T || l(0);
5665
+ let b = 0, M = 0, T = !1;
5666
+ s ? (b = O.clientWidth, M = k.scrollWidth, T = M > b) : (b = O.clientHeight, M = k.scrollHeight, T = M > b), f(b), m(M), g(T), T || l(0);
5664
5667
  }, A = new ResizeObserver(w);
5665
5668
  return o.current && A.observe(o.current), a.current && A.observe(a.current), w(), () => A.disconnect();
5666
5669
  }, [s]);
@@ -5670,11 +5673,11 @@ const os = ({
5670
5673
  const w = s ? ((A = o.current) == null ? void 0 : A.clientWidth) ?? 200 : ((O = o.current) == null ? void 0 : O.clientHeight) ?? 200;
5671
5674
  l((k) => Math.max(0, k - w));
5672
5675
  }, [s, d]), C = j(() => {
5673
- var O, k, S, M, T, E;
5676
+ var O, k, b, M, T, E;
5674
5677
  if (u) return;
5675
- const w = s ? ((O = o.current) == null ? void 0 : O.clientWidth) ?? 200 : ((k = o.current) == null ? void 0 : k.clientHeight) ?? 200, A = s ? (((S = a.current) == null ? void 0 : S.scrollWidth) ?? 0) - (((M = o.current) == null ? void 0 : M.clientWidth) ?? 0) : (((T = a.current) == null ? void 0 : T.scrollHeight) ?? 0) - (((E = o.current) == null ? void 0 : E.clientHeight) ?? 0);
5676
- l((B) => Math.min(A, B + w));
5677
- }, [s, u]), N = n || (s ? /* @__PURE__ */ b(Jn, {}) : /* @__PURE__ */ b(ai, {})), D = i || (s ? /* @__PURE__ */ b(Fn, {}) : /* @__PURE__ */ b(Qn, {}));
5678
+ const w = s ? ((O = o.current) == null ? void 0 : O.clientWidth) ?? 200 : ((k = o.current) == null ? void 0 : k.clientHeight) ?? 200, A = s ? (((b = a.current) == null ? void 0 : b.scrollWidth) ?? 0) - (((M = o.current) == null ? void 0 : M.clientWidth) ?? 0) : (((T = a.current) == null ? void 0 : T.scrollHeight) ?? 0) - (((E = o.current) == null ? void 0 : E.clientHeight) ?? 0);
5679
+ l((K) => Math.min(A, K + w));
5680
+ }, [s, u]), N = n || (s ? /* @__PURE__ */ S(Jn, {}) : /* @__PURE__ */ S(ai, {})), D = i || (s ? /* @__PURE__ */ S(Fn, {}) : /* @__PURE__ */ S(Qn, {}));
5678
5681
  return /* @__PURE__ */ lt(
5679
5682
  "div",
5680
5683
  {
@@ -5686,7 +5689,7 @@ const os = ({
5686
5689
  height: "100%"
5687
5690
  },
5688
5691
  children: [
5689
- /* @__PURE__ */ b(
5692
+ /* @__PURE__ */ S(
5690
5693
  te,
5691
5694
  {
5692
5695
  type: "text",
@@ -5705,7 +5708,7 @@ const os = ({
5705
5708
  }
5706
5709
  }
5707
5710
  ),
5708
- /* @__PURE__ */ b(
5711
+ /* @__PURE__ */ S(
5709
5712
  "div",
5710
5713
  {
5711
5714
  ref: o,
@@ -5716,7 +5719,7 @@ const os = ({
5716
5719
  display: "flex",
5717
5720
  justifyContent: s && !h ? "center" : "flex-start"
5718
5721
  },
5719
- children: /* @__PURE__ */ b(
5722
+ children: /* @__PURE__ */ S(
5720
5723
  "div",
5721
5724
  {
5722
5725
  ref: a,
@@ -5731,7 +5734,7 @@ const os = ({
5731
5734
  )
5732
5735
  }
5733
5736
  ),
5734
- /* @__PURE__ */ b(
5737
+ /* @__PURE__ */ S(
5735
5738
  te,
5736
5739
  {
5737
5740
  type: "text",
@@ -5753,7 +5756,7 @@ const os = ({
5753
5756
  ]
5754
5757
  }
5755
5758
  );
5756
- }, Sa = ({ mode: e, children: t }) => /* @__PURE__ */ b(
5759
+ }, Sa = ({ mode: e, children: t }) => /* @__PURE__ */ S(
5757
5760
  "div",
5758
5761
  {
5759
5762
  style: {
@@ -5792,22 +5795,22 @@ const os = ({
5792
5795
  openKeysDataSetField: A,
5793
5796
  mode: O,
5794
5797
  inlineCollapsed: k,
5795
- remoteUrl: S,
5798
+ remoteUrl: b,
5796
5799
  overflowStrategy: M = "default",
5797
5800
  paginationArrowStyle: T,
5798
5801
  paginationArrowIconPrev: E,
5799
- paginationArrowIconNext: B,
5800
- expandTrigger: H,
5802
+ paginationArrowIconNext: K,
5803
+ expandTrigger: q,
5801
5804
  // 仅设计器/业务用,不传给 DOM,避免 React 警告
5802
- ...z
5805
+ ...B
5803
5806
  }) => {
5804
- const $ = _((W) => W.addCommand), q = _((W) => W.setDataSet), K = v(
5807
+ const $ = _((H) => H.addCommand), W = _((H) => H.setDataSet), z = v(
5805
5808
  () => nt(t, i),
5806
5809
  [t, i]
5807
5810
  ), L = _(
5808
- (W) => {
5809
- if (K)
5810
- return r ? W.getDataSet(K, r) : W.dataSets[K];
5811
+ (H) => {
5812
+ if (z)
5813
+ return r ? H.getDataSet(z, r) : H.dataSets[z];
5811
5814
  }
5812
5815
  // 使用 shallow 比较确保只有通过内容变更才触发更新
5813
5816
  // 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
@@ -5818,7 +5821,7 @@ const os = ({
5818
5821
  ), R = v(() => ({}), []), Y = L ?? R, Z = v(
5819
5822
  () => (Y == null ? void 0 : Y.items) ?? (Array.isArray(Y) ? Y : void 0) ?? (Array.isArray(Y == null ? void 0 : Y.value) ? Y.value : void 0),
5820
5823
  [Y]
5821
- ), P = v(() => n ? Z ?? p ?? [] : K ? Z ?? [] : p ?? [], [n, K, Z, p]), U = v(
5824
+ ), P = v(() => n ? Z ?? p ?? [] : z ? Z ?? [] : p ?? [], [n, z, Z, p]), U = v(
5822
5825
  () => Y.selectedKeys ?? f,
5823
5826
  [Y.selectedKeys, f]
5824
5827
  ), tt = v(
@@ -5827,19 +5830,19 @@ const os = ({
5827
5830
  ), et = v(
5828
5831
  () => nt(t, w),
5829
5832
  [t, w]
5830
- ), I = _((W) => {
5833
+ ), I = _((H) => {
5831
5834
  if (!Y.openKeys && et && A)
5832
- return W.getDataSet(et, A);
5835
+ return H.getDataSet(et, A);
5833
5836
  }), mt = v(() => {
5834
- const W = (ot) => Array.isArray(ot) ? ot.map((dt) => {
5837
+ const H = (ot) => Array.isArray(ot) ? ot.map((dt) => {
5835
5838
  const wt = { ...dt };
5836
5839
  if (wt.icon && typeof wt.icon == "string") {
5837
5840
  const Ot = Qt[wt.icon];
5838
- Ot && (wt.icon = /* @__PURE__ */ b(Ot, {}));
5841
+ Ot && (wt.icon = /* @__PURE__ */ S(Ot, {}));
5839
5842
  }
5840
- return wt.children && wt.children.length > 0 && (wt.children = W(wt.children)), wt;
5843
+ return wt.children && wt.children.length > 0 && (wt.children = H(wt.children)), wt;
5841
5844
  }) : [];
5842
- return W(P || []);
5845
+ return H(P || []);
5843
5846
  }, [P]), St = v(
5844
5847
  () => U,
5845
5848
  [U]
@@ -5847,135 +5850,135 @@ const os = ({
5847
5850
  () => tt ?? I,
5848
5851
  [tt, I]
5849
5852
  ), ct = j(
5850
- (W) => {
5853
+ (H) => {
5851
5854
  if (h) {
5852
- h(W);
5855
+ h(H);
5853
5856
  return;
5854
5857
  }
5855
5858
  o && t && $(
5856
5859
  t,
5857
- X(o, { key: W.key, keyPath: W.keyPath })
5860
+ X(o, { key: H.key, keyPath: H.keyPath })
5858
5861
  );
5859
5862
  },
5860
5863
  [h, o, t, $]
5861
5864
  ), rt = j(
5862
- (W) => {
5865
+ (H) => {
5863
5866
  if (g) {
5864
- g(W);
5867
+ g(H);
5865
5868
  return;
5866
5869
  }
5867
- if (K)
5870
+ if (z)
5868
5871
  if (r) {
5869
- const ot = _.getState().getDataSet(K, r) || {};
5870
- q(K, r, { ...ot, selectedKeys: W.selectedKeys });
5872
+ const ot = _.getState().getDataSet(z, r) || {};
5873
+ W(z, r, { ...ot, selectedKeys: H.selectedKeys });
5871
5874
  } else
5872
- q(K, "selectedKeys", W.selectedKeys);
5875
+ W(z, "selectedKeys", H.selectedKeys);
5873
5876
  a && t && $(
5874
5877
  t,
5875
- X(a, { selectedKeys: W.selectedKeys })
5878
+ X(a, { selectedKeys: H.selectedKeys })
5876
5879
  );
5877
5880
  },
5878
5881
  [
5879
5882
  g,
5880
- K,
5883
+ z,
5881
5884
  r,
5882
- q,
5885
+ W,
5883
5886
  a,
5884
5887
  t,
5885
5888
  $
5886
5889
  ]
5887
5890
  ), it = j(
5888
- (W) => {
5891
+ (H) => {
5889
5892
  if (y) {
5890
- y(W);
5893
+ y(H);
5891
5894
  return;
5892
5895
  }
5893
- if (K)
5896
+ if (z)
5894
5897
  if (r) {
5895
- const ot = _.getState().getDataSet(K, r) || {};
5896
- q(K, r, { ...ot, openKeys: W });
5898
+ const ot = _.getState().getDataSet(z, r) || {};
5899
+ W(z, r, { ...ot, openKeys: H });
5897
5900
  } else
5898
- q(K, "openKeys", W);
5899
- else et && A && q(et, A, W);
5901
+ W(z, "openKeys", H);
5902
+ else et && A && W(et, A, H);
5900
5903
  c && t && $(
5901
5904
  t,
5902
- X(c, { openKeys: W })
5905
+ X(c, { openKeys: H })
5903
5906
  );
5904
5907
  },
5905
5908
  [
5906
5909
  y,
5907
- K,
5910
+ z,
5908
5911
  r,
5909
5912
  et,
5910
5913
  A,
5911
- q,
5914
+ W,
5912
5915
  c,
5913
5916
  t,
5914
5917
  $
5915
5918
  ]
5916
5919
  ), Dt = j(
5917
- (W) => {
5920
+ (H) => {
5918
5921
  if (m) {
5919
- m(W);
5922
+ m(H);
5920
5923
  return;
5921
5924
  }
5922
5925
  l && t && $(
5923
5926
  t,
5924
5927
  X(l, {
5925
- selectedKeys: W.selectedKeys,
5926
- key: W.key
5928
+ selectedKeys: H.selectedKeys,
5929
+ key: H.key
5927
5930
  })
5928
5931
  );
5929
5932
  },
5930
5933
  [m, l, t, $]
5931
5934
  ), _t = O === "inline" && k !== void 0 ? { inlineCollapsed: k } : {}, Bt = v(() => {
5932
5935
  if (!C) return;
5933
- const W = {};
5936
+ const H = {};
5934
5937
  return Object.entries(C).forEach(([ot, dt]) => {
5935
- dt !== "" && dt !== void 0 && dt !== null && (W[ot] = dt);
5936
- }), Object.keys(W).length > 0 ? W : void 0;
5938
+ dt !== "" && dt !== void 0 && dt !== null && (H[ot] = dt);
5939
+ }), Object.keys(H).length > 0 ? H : void 0;
5937
5940
  }, [C]), gt = n ? {
5938
5941
  motion: { motionName: "" }
5939
5942
  } : {}, at = v(() => {
5940
5943
  if (typeof E == "string" && E) {
5941
- const W = Qt[E];
5942
- if (W) return /* @__PURE__ */ b(W, {});
5944
+ const H = Qt[E];
5945
+ if (H) return /* @__PURE__ */ S(H, {});
5943
5946
  }
5944
5947
  return E;
5945
5948
  }, [E]), ft = v(() => {
5946
- if (typeof B == "string" && B) {
5947
- const W = Qt[B];
5948
- if (W) return /* @__PURE__ */ b(W, {});
5949
+ if (typeof K == "string" && K) {
5950
+ const H = Qt[K];
5951
+ if (H) return /* @__PURE__ */ S(H, {});
5949
5952
  }
5950
- return B;
5951
- }, [B]), At = v(() => M === "pagination" || M === "scroll" ? null : D, [M, D]), J = ti(), Q = e || J.replace(/:/g, "-"), yt = v(() => {
5953
+ return K;
5954
+ }, [K]), At = v(() => M === "pagination" || M === "scroll" ? null : D, [M, D]), J = ti(), Q = e || J.replace(/:/g, "-"), yt = v(() => {
5952
5955
  var wt;
5953
5956
  if (!u || typeof u == "function") return "";
5954
- const W = (wt = u.subMenu) == null ? void 0 : wt.root;
5955
- if (!W) return "";
5957
+ const H = (wt = u.subMenu) == null ? void 0 : wt.root;
5958
+ if (!H) return "";
5956
5959
  const ot = [], dt = `[data-and-menu-id="${Q}"]`;
5957
- if (W.item && Object.keys(W.item).length > 0) {
5958
- const Ot = je(W.item);
5960
+ if (H.item && Object.keys(H.item).length > 0) {
5961
+ const Ot = je(H.item);
5959
5962
  ot.push(`${dt} .ant-menu-submenu > .ant-menu-submenu-title { ${Ot} }`);
5960
5963
  }
5961
- if (W.itemIcon && Object.keys(W.itemIcon).length > 0) {
5962
- const Ot = je(W.itemIcon);
5964
+ if (H.itemIcon && Object.keys(H.itemIcon).length > 0) {
5965
+ const Ot = je(H.itemIcon);
5963
5966
  ot.push(`${dt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Ot} }`);
5964
5967
  }
5965
- if (W.itemContent && Object.keys(W.itemContent).length > 0) {
5966
- const Ot = je(W.itemContent);
5968
+ if (H.itemContent && Object.keys(H.itemContent).length > 0) {
5969
+ const Ot = je(H.itemContent);
5967
5970
  ot.push(`${dt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Ot} }`);
5968
5971
  }
5969
- if (W.selected && Object.keys(W.selected).length > 0) {
5970
- const Ot = je(W.selected);
5972
+ if (H.selected && Object.keys(H.selected).length > 0) {
5973
+ const Ot = je(H.selected);
5971
5974
  ot.push(`${dt} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Ot} }`);
5972
5975
  }
5973
5976
  return ot.join(`
5974
5977
  `);
5975
- }, [u, Q]), V = /* @__PURE__ */ b(
5978
+ }, [u, Q]), V = /* @__PURE__ */ S(
5976
5979
  Br,
5977
5980
  {
5978
- ...z,
5981
+ ...B,
5979
5982
  ..._t,
5980
5983
  ...gt,
5981
5984
  mode: O,
@@ -5993,7 +5996,7 @@ const os = ({
5993
5996
  overflowedIndicator: At,
5994
5997
  disabledOverflow: M !== "default"
5995
5998
  }
5996
- ), st = () => M === "pagination" ? /* @__PURE__ */ b(
5999
+ ), st = () => M === "pagination" ? /* @__PURE__ */ S(
5997
6000
  ba,
5998
6001
  {
5999
6002
  mode: O || "horizontal",
@@ -6002,23 +6005,23 @@ const os = ({
6002
6005
  arrowIconNext: ft,
6003
6006
  children: V
6004
6007
  }
6005
- ) : M === "scroll" ? /* @__PURE__ */ b(Sa, { mode: O || "horizontal", children: V }) : V, ht = v(() => {
6006
- const W = {};
6007
- return n && (W.motion = !1), Bt && (W.components = { Menu: Bt }), Object.keys(W).length > 0 ? W : void 0;
6008
+ ) : M === "scroll" ? /* @__PURE__ */ S(Sa, { mode: O || "horizontal", children: V }) : V, ht = v(() => {
6009
+ const H = {};
6010
+ return n && (H.motion = !1), Bt && (H.components = { Menu: Bt }), Object.keys(H).length > 0 ? H : void 0;
6008
6011
  }, [n, Bt]);
6009
6012
  return (() => {
6010
- const W = st(), ot = yt ? /* @__PURE__ */ lt("div", { "data-and-menu-id": Q, style: { display: "contents" }, children: [
6011
- /* @__PURE__ */ b("style", { children: yt }),
6012
- W
6013
- ] }) : W;
6014
- return ht ? /* @__PURE__ */ b(Lt, { theme: ht, children: ot }) : ot;
6013
+ const H = st(), ot = yt ? /* @__PURE__ */ lt("div", { "data-and-menu-id": Q, style: { display: "contents" }, children: [
6014
+ /* @__PURE__ */ S("style", { children: yt }),
6015
+ H
6016
+ ] }) : H;
6017
+ return ht ? /* @__PURE__ */ S(Lt, { theme: ht, children: ot }) : ot;
6015
6018
  })();
6016
6019
  }, fs = ({
6017
6020
  id: e,
6018
6021
  sessionId: t,
6019
6022
  develop: n,
6020
6023
  ...i
6021
- }) => /* @__PURE__ */ b(Lr, { ...i }), ds = ({
6024
+ }) => /* @__PURE__ */ S(Lr, { ...i }), ds = ({
6022
6025
  id: e,
6023
6026
  sessionId: t,
6024
6027
  develop: n,
@@ -6046,7 +6049,7 @@ const os = ({
6046
6049
  if (!(!p || typeof p != "string"))
6047
6050
  return w && p in w ? w[p] : p;
6048
6051
  }, [p, w]);
6049
- return /* @__PURE__ */ b(
6052
+ return /* @__PURE__ */ S(
6050
6053
  Hn,
6051
6054
  {
6052
6055
  ...d,
@@ -6060,7 +6063,7 @@ const os = ({
6060
6063
  text: m,
6061
6064
  color: A,
6062
6065
  title: f,
6063
- children: /* @__PURE__ */ b(
6066
+ children: /* @__PURE__ */ S(
6064
6067
  "span",
6065
6068
  {
6066
6069
  "data-slot": "content",
@@ -6097,14 +6100,14 @@ const os = ({
6097
6100
  if (!(!c || typeof c != "string"))
6098
6101
  return s && c in s ? s[c] : c;
6099
6102
  }, [c, s]);
6100
- return /* @__PURE__ */ b(
6103
+ return /* @__PURE__ */ S(
6101
6104
  Hn.Ribbon,
6102
6105
  {
6103
6106
  ...h,
6104
6107
  text: p,
6105
6108
  placement: a,
6106
6109
  color: d,
6107
- children: /* @__PURE__ */ b(
6110
+ children: /* @__PURE__ */ S(
6108
6111
  "div",
6109
6112
  {
6110
6113
  "data-slot": "content",
@@ -6180,10 +6183,10 @@ const os = ({
6180
6183
  [d, f]
6181
6184
  ), N = _(($) => C && s ? $.getDataSet(C, s) : null), D = v(() => !d || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [d, e, u]), w = _(
6182
6185
  ($) => {
6183
- var q;
6184
- return D ? ((q = $.propsStore[`${d}_props`]) == null ? void 0 : q[D]) ?? null : null;
6186
+ var W;
6187
+ return D ? ((W = $.propsStore[`${d}_props`]) == null ? void 0 : W[D]) ?? null : null;
6185
6188
  }
6186
- ), A = v(() => N && Array.isArray(N) ? N : wa(o), [N, o]), O = (w == null ? void 0 : w.columns) !== void 0 && (w == null ? void 0 : w.columns) !== null ? w.columns : a, k = v(() => Da(O), [O]), S = v(() => xa(c), [c]), M = v(() => {
6189
+ ), A = v(() => N && Array.isArray(N) ? N : wa(o), [N, o]), O = (w == null ? void 0 : w.columns) !== void 0 && (w == null ? void 0 : w.columns) !== null ? w.columns : a, k = v(() => Da(O), [O]), b = v(() => xa(c), [c]), M = v(() => {
6187
6190
  if (g) return g;
6188
6191
  if (h && d)
6189
6192
  return ($) => {
@@ -6204,8 +6207,8 @@ const os = ({
6204
6207
  if (y) return y;
6205
6208
  if (n)
6206
6209
  return ($) => {
6207
- var q;
6208
- return /* @__PURE__ */ b(
6210
+ var W;
6211
+ return /* @__PURE__ */ S(
6209
6212
  "div",
6210
6213
  {
6211
6214
  style: {
@@ -6219,20 +6222,20 @@ const os = ({
6219
6222
  color: "#1677ff",
6220
6223
  fontSize: 14
6221
6224
  },
6222
- children: ((q = $.data) == null ? void 0 : q.title) || `Item ${$.key}`
6225
+ children: ((W = $.data) == null ? void 0 : W.title) || `Item ${$.key}`
6223
6226
  }
6224
6227
  );
6225
6228
  };
6226
- }, [y, n]), B = v(() => {
6229
+ }, [y, n]), K = v(() => {
6227
6230
  if (E)
6228
- return !f || !s ? E : ($, q) => {
6229
- const K = typeof q == "number" ? q : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
6230
- return /* @__PURE__ */ b(
6231
+ return !f || !s ? E : ($, W) => {
6232
+ const z = typeof W == "number" ? W : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
6233
+ return /* @__PURE__ */ S(
6231
6234
  ce.Provider,
6232
6235
  {
6233
6236
  value: {
6234
6237
  dataSet: f,
6235
- index: K,
6238
+ index: z,
6236
6239
  sessionId: d,
6237
6240
  dataSetFieldRoot: s
6238
6241
  },
@@ -6241,18 +6244,18 @@ const os = ({
6241
6244
  );
6242
6245
  };
6243
6246
  }, [E, f, s, d]), {
6244
- layoutChangeAction: H,
6245
- ...z
6247
+ layoutChangeAction: q,
6248
+ ...B
6246
6249
  } = m;
6247
- return /* @__PURE__ */ b(
6250
+ return /* @__PURE__ */ S(
6248
6251
  Kr,
6249
6252
  {
6250
- ...z,
6253
+ ...B,
6251
6254
  items: T,
6252
6255
  columns: k,
6253
- gutter: S,
6256
+ gutter: b,
6254
6257
  fresh: l,
6255
- itemRender: B,
6258
+ itemRender: K,
6256
6259
  onLayoutChange: M
6257
6260
  }
6258
6261
  );
@@ -6280,10 +6283,10 @@ const os = ({
6280
6283
  return s && typeof s == "object" && Object.keys(s).forEach((w) => {
6281
6284
  w !== "title" && w !== "message" && s[w] !== void 0 && s[w] !== null && (D[w] = s[w]);
6282
6285
  }), D;
6283
- }, [y, l, s]), C = v(() => h ? { closeIcon: /* @__PURE__ */ b("span", { children: h }) } : g, [h, g]), N = j((D) => {
6286
+ }, [y, l, s]), C = v(() => h ? { closeIcon: /* @__PURE__ */ S("span", { children: h }) } : g, [h, g]), N = j((D) => {
6284
6287
  r && r(D);
6285
6288
  }, [r]);
6286
- return /* @__PURE__ */ b(
6289
+ return /* @__PURE__ */ S(
6287
6290
  Un,
6288
6291
  {
6289
6292
  ...x,
@@ -6325,7 +6328,7 @@ const os = ({
6325
6328
  timestamp: Date.now()
6326
6329
  });
6327
6330
  }, [l, s, r, f, a, t, m]);
6328
- return /* @__PURE__ */ b(
6331
+ return /* @__PURE__ */ S(
6329
6332
  zn,
6330
6333
  {
6331
6334
  ...y,
@@ -6360,7 +6363,7 @@ const os = ({
6360
6363
  timestamp: Date.now()
6361
6364
  });
6362
6365
  }, [a, p, r, m, o, t, g]);
6363
- return /* @__PURE__ */ b(
6366
+ return /* @__PURE__ */ S(
6364
6367
  zr,
6365
6368
  {
6366
6369
  ...h,
@@ -6375,7 +6378,7 @@ const os = ({
6375
6378
  develop: n,
6376
6379
  children: i,
6377
6380
  ...r
6378
- }) => /* @__PURE__ */ b(Vr, { ...r, children: i }), ln = (e, t) => {
6381
+ }) => /* @__PURE__ */ S(Vr, { ...r, children: i }), ln = (e, t) => {
6379
6382
  if (e == null) return t;
6380
6383
  if (typeof e == "string")
6381
6384
  try {
@@ -6424,7 +6427,7 @@ const os = ({
6424
6427
  children: D,
6425
6428
  ...w
6426
6429
  }) => {
6427
- const A = _((U) => U.addCommand), O = _((U) => U.getDataSet), k = _((U) => U.setDataSet), S = v(
6430
+ const A = _((U) => U.addCommand), O = _((U) => U.getDataSet), k = _((U) => U.setDataSet), b = v(
6428
6431
  () => nt(t, i),
6429
6432
  [t, i]
6430
6433
  ), M = N === "default" ? "medium" : N, T = v(() => {
@@ -6438,18 +6441,18 @@ const os = ({
6438
6441
  }, [s]), E = v(() => {
6439
6442
  const U = Na(g);
6440
6443
  return U.length > 0 ? U : void 0;
6441
- }, [g]), H = v(() => {
6442
- if (S && r) {
6443
- const U = O(S, `${r}.activeTabKey`);
6444
+ }, [g]), q = v(() => {
6445
+ if (b && r) {
6446
+ const U = O(b, `${r}.activeTabKey`);
6444
6447
  if (typeof U == "string") return U;
6445
6448
  }
6446
- }, [S, r, O]) ?? y, z = j((U) => {
6449
+ }, [b, r, O]) ?? y, B = j((U) => {
6447
6450
  if (f) {
6448
6451
  f(U);
6449
6452
  return;
6450
6453
  }
6451
- S && r && k(S, `${r}.activeTabKey`, U), p && t && A(t, X(p, { key: U }));
6452
- }, [f, S, r, k, p, t, A]), { titleSlot: $, extraSlot: q, coverSlot: K, actionsSlot: L, otherChildren: R, actionsFromChildren: Y } = v(() => {
6454
+ b && r && k(b, `${r}.activeTabKey`, U), p && t && A(t, X(p, { key: U }));
6455
+ }, [f, b, r, k, p, t, A]), { titleSlot: $, extraSlot: W, coverSlot: z, actionsSlot: L, otherChildren: R, actionsFromChildren: Y } = v(() => {
6453
6456
  let U = null, tt = null, et = null, I = [];
6454
6457
  const mt = [];
6455
6458
  let St = !1;
@@ -6464,25 +6467,25 @@ const os = ({
6464
6467
  }, [D, o, a, c, h]), Z = v(() => {
6465
6468
  const U = ln(d, {});
6466
6469
  return Y ? { actionsLiMargin: "0px", ...U } : U;
6467
- }, [d, Y]), P = /* @__PURE__ */ b(
6470
+ }, [d, Y]), P = /* @__PURE__ */ S(
6468
6471
  Xe,
6469
6472
  {
6470
6473
  ...w,
6471
6474
  size: M,
6472
6475
  title: $,
6473
- extra: q,
6474
- cover: K,
6476
+ extra: W,
6477
+ cover: z,
6475
6478
  tabBarExtraContent: l,
6476
6479
  actions: L.length > 0 ? L : void 0,
6477
6480
  tabList: E,
6478
- activeTabKey: H,
6481
+ activeTabKey: q,
6479
6482
  defaultActiveTabKey: m,
6480
- onTabChange: E ? z : void 0,
6483
+ onTabChange: E ? B : void 0,
6481
6484
  styles: T,
6482
6485
  children: R
6483
6486
  }
6484
6487
  );
6485
- return Z && Object.keys(Z).length > 0 ? /* @__PURE__ */ b(Lt, { theme: { components: { Card: Z } }, children: P }) : P;
6488
+ return Z && Object.keys(Z).length > 0 ? /* @__PURE__ */ S(Lt, { theme: { components: { Card: Z } }, children: P }) : P;
6486
6489
  }, Ss = ({
6487
6490
  id: e,
6488
6491
  sessionId: t,
@@ -6494,7 +6497,7 @@ const os = ({
6494
6497
  ...c
6495
6498
  }) => {
6496
6499
  const l = r || i;
6497
- return a && Object.keys(a).length > 0 ? /* @__PURE__ */ b(
6500
+ return a && Object.keys(a).length > 0 ? /* @__PURE__ */ S(
6498
6501
  Lt,
6499
6502
  {
6500
6503
  theme: {
@@ -6502,9 +6505,9 @@ const os = ({
6502
6505
  Divider: a
6503
6506
  }
6504
6507
  },
6505
- children: /* @__PURE__ */ b(yn, { ...c, styles: o, children: l })
6508
+ children: /* @__PURE__ */ S(yn, { ...c, styles: o, children: l })
6506
6509
  }
6507
- ) : /* @__PURE__ */ b(yn, { ...c, styles: o, children: l });
6510
+ ) : /* @__PURE__ */ S(yn, { ...c, styles: o, children: l });
6508
6511
  }, Mn = (e) => {
6509
6512
  if (!e) return [];
6510
6513
  if (typeof e == "string")
@@ -6538,26 +6541,26 @@ const os = ({
6538
6541
  index: f,
6539
6542
  ...s
6540
6543
  }) => {
6541
- const d = _((S) => S.addCommand), u = Ce(ce), x = f ?? (u == null ? void 0 : u.index), C = v(
6544
+ const d = _((b) => b.addCommand), u = Ce(ce), x = f ?? (u == null ? void 0 : u.index), C = v(
6542
6545
  () => nt(t, i),
6543
6546
  [t, i]
6544
- ), N = _((S) => {
6547
+ ), N = _((b) => {
6545
6548
  if (C)
6546
- return r ? S.getDataSet(C, r) : S.dataSets[C];
6549
+ return r ? b.getDataSet(C, r) : b.dataSets[C];
6547
6550
  }), D = v(() => {
6548
6551
  if (N == null) return;
6549
6552
  if (Array.isArray(N)) return N;
6550
- const S = N;
6551
- if (Array.isArray(S == null ? void 0 : S.items)) return S.items;
6552
- if (Array.isArray(S == null ? void 0 : S.value)) return S.value;
6553
+ const b = N;
6554
+ if (Array.isArray(b == null ? void 0 : b.items)) return b.items;
6555
+ if (Array.isArray(b == null ? void 0 : b.value)) return b.value;
6553
6556
  }, [N]), w = v(() => n ? D ?? Mn(a) ?? [] : C ? D ?? [] : Mn(a) ?? [], [n, C, D, a]), A = j(
6554
- (S, M) => {
6557
+ (b, M) => {
6555
6558
  if (y) {
6556
- y(S, M);
6559
+ y(b, M);
6557
6560
  return;
6558
6561
  }
6559
6562
  if (g && t) {
6560
- const { actionName: T, arg: E } = ie(g, S, {
6563
+ const { actionName: T, arg: E } = ie(g, b, {
6561
6564
  id: e,
6562
6565
  dataSet: i,
6563
6566
  dataSetField: r,
@@ -6580,43 +6583,43 @@ const os = ({
6580
6583
  ), O = v(
6581
6584
  () => ({
6582
6585
  items: cr(w),
6583
- onClick: (S) => {
6586
+ onClick: (b) => {
6584
6587
  if (c && t) {
6585
- const { actionName: M, arg: T } = ie(c, S.key, {
6588
+ const { actionName: M, arg: T } = ie(c, b.key, {
6586
6589
  id: e,
6587
6590
  dataSet: i,
6588
6591
  dataSetField: r,
6589
6592
  index: x,
6590
- key: S.key,
6591
- keyPath: S.keyPath
6593
+ key: b.key,
6594
+ keyPath: b.keyPath
6592
6595
  });
6593
6596
  d(t, X(M, T));
6594
6597
  }
6595
6598
  },
6596
- onSelect: (S) => {
6599
+ onSelect: (b) => {
6597
6600
  if (l && t) {
6598
- const { actionName: M, arg: T } = ie(l, S.key, {
6601
+ const { actionName: M, arg: T } = ie(l, b.key, {
6599
6602
  id: e,
6600
6603
  dataSet: i,
6601
6604
  dataSetField: r,
6602
6605
  index: x,
6603
- key: S.key,
6604
- keyPath: S.keyPath,
6605
- selectedKeys: S.selectedKeys
6606
+ key: b.key,
6607
+ keyPath: b.keyPath,
6608
+ selectedKeys: b.selectedKeys
6606
6609
  });
6607
6610
  d(t, X(M, T));
6608
6611
  }
6609
6612
  },
6610
- onDeselect: (S) => {
6613
+ onDeselect: (b) => {
6611
6614
  if (h && t) {
6612
- const { actionName: M, arg: T } = ie(h, S.key, {
6615
+ const { actionName: M, arg: T } = ie(h, b.key, {
6613
6616
  id: e,
6614
6617
  dataSet: i,
6615
6618
  dataSetField: r,
6616
6619
  index: x,
6617
- key: S.key,
6618
- keyPath: S.keyPath,
6619
- selectedKeys: S.selectedKeys
6620
+ key: b.key,
6621
+ keyPath: b.keyPath,
6622
+ selectedKeys: b.selectedKeys
6620
6623
  });
6621
6624
  d(t, X(M, T));
6622
6625
  }
@@ -6641,34 +6644,34 @@ const os = ({
6641
6644
  style: { display: "inline-block", cursor: "pointer" },
6642
6645
  children: [
6643
6646
  m,
6644
- n && !m && !p && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
6645
- !m && !n && o && /* @__PURE__ */ b(te, { children: /* @__PURE__ */ lt(Jt, { children: [
6647
+ n && !m && !p && /* @__PURE__ */ S("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
6648
+ !m && !n && o && /* @__PURE__ */ S(te, { children: /* @__PURE__ */ lt(Jt, { children: [
6646
6649
  o,
6647
- /* @__PURE__ */ b(Qn, {})
6650
+ /* @__PURE__ */ S(Qn, {})
6648
6651
  ] }) })
6649
6652
  ]
6650
6653
  }
6651
6654
  ), [m, n, o, p]);
6652
- return /* @__PURE__ */ b(qr, { ...s, menu: O, onOpenChange: A, children: k });
6655
+ return /* @__PURE__ */ S(qr, { ...s, menu: O, onOpenChange: A, children: k });
6653
6656
  }, Ds = ({
6654
6657
  id: e,
6655
6658
  sessionId: t,
6656
6659
  develop: n,
6657
6660
  children: i,
6658
6661
  ...r
6659
- }) => /* @__PURE__ */ b(Wr, { ...r, children: i }), xs = ({
6662
+ }) => /* @__PURE__ */ S(Wr, { ...r, children: i }), xs = ({
6660
6663
  id: e,
6661
6664
  sessionId: t,
6662
6665
  develop: n,
6663
6666
  children: i,
6664
6667
  ...r
6665
- }) => /* @__PURE__ */ b(Hr, { ...r, children: i }), As = ({
6668
+ }) => /* @__PURE__ */ S(Hr, { ...r, children: i }), As = ({
6666
6669
  id: e,
6667
6670
  sessionId: t,
6668
6671
  develop: n,
6669
6672
  children: i,
6670
6673
  ...r
6671
- }) => /* @__PURE__ */ b(Vn, { ...r, children: i }), Cs = ({
6674
+ }) => /* @__PURE__ */ S(Vn, { ...r, children: i }), Cs = ({
6672
6675
  id: e,
6673
6676
  sessionId: t,
6674
6677
  develop: n,
@@ -6688,7 +6691,7 @@ const os = ({
6688
6691
  s !== "value" && g[s] !== void 0 && g[s] !== null && (f[s] = g[s]);
6689
6692
  }), f;
6690
6693
  }, [a, g]);
6691
- return /* @__PURE__ */ b(Ur, { ...p, value: m || "" });
6694
+ return /* @__PURE__ */ S(Ur, { ...p, value: m || "" });
6692
6695
  }, be = (e) => {
6693
6696
  if (!e) return;
6694
6697
  const t = Qt[e];
@@ -6760,20 +6763,20 @@ const os = ({
6760
6763
  },
6761
6764
  [y, h, t, u]
6762
6765
  ), O = () => f && qt.Children.count(f) > 0 ? qt.Children.map(f, (T, E) => {
6763
- const B = x[E] || {};
6764
- return /* @__PURE__ */ b(
6766
+ const K = x[E] || {};
6767
+ return /* @__PURE__ */ S(
6765
6768
  Pe.Panel,
6766
6769
  {
6767
- defaultSize: B.defaultSize,
6768
- min: B.min,
6769
- max: B.max,
6770
- collapsible: B.collapsible,
6771
- resizable: B.resizable !== !1,
6770
+ defaultSize: K.defaultSize,
6771
+ min: K.min,
6772
+ max: K.max,
6773
+ collapsible: K.collapsible,
6774
+ resizable: K.resizable !== !1,
6772
6775
  children: T
6773
6776
  },
6774
- B.key || E
6777
+ K.key || E
6775
6778
  );
6776
- }) : x.map((T, E) => /* @__PURE__ */ b(
6779
+ }) : x.map((T, E) => /* @__PURE__ */ S(
6777
6780
  Pe.Panel,
6778
6781
  {
6779
6782
  defaultSize: T.defaultSize || void 0,
@@ -6800,15 +6803,15 @@ const os = ({
6800
6803
  )
6801
6804
  },
6802
6805
  T.key || E
6803
- )), { layout: k, ...S } = d, M = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
6806
+ )), { layout: k, ...b } = d, M = /* @__PURE__ */ S("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ S(
6804
6807
  Pe,
6805
6808
  {
6806
- ...S,
6809
+ ...b,
6807
6810
  orientation: r,
6808
6811
  lazy: o,
6809
6812
  onResize: w,
6810
6813
  onResizeEnd: A,
6811
- style: { height: "100%", width: "100%", ...S.style },
6814
+ style: { height: "100%", width: "100%", ...b.style },
6812
6815
  styles: m,
6813
6816
  draggerIcon: N,
6814
6817
  collapsibleIcon: D,
@@ -6816,7 +6819,7 @@ const os = ({
6816
6819
  },
6817
6820
  r
6818
6821
  ) });
6819
- return C && Object.keys(C).length > 0 ? /* @__PURE__ */ b(Lt, { theme: { components: { Splitter: C } }, children: M }) : M;
6822
+ return C && Object.keys(C).length > 0 ? /* @__PURE__ */ S(Lt, { theme: { components: { Splitter: C } }, children: M }) : M;
6820
6823
  }, ks = ({
6821
6824
  children: e,
6822
6825
  className: t,
@@ -6830,7 +6833,7 @@ const os = ({
6830
6833
  resizable: l,
6831
6834
  sessionId: h,
6832
6835
  ...g
6833
- }) => /* @__PURE__ */ b(
6836
+ }) => /* @__PURE__ */ S(
6834
6837
  "div",
6835
6838
  {
6836
6839
  className: t,
@@ -6861,40 +6864,40 @@ const os = ({
6861
6864
  "page-showTotal": C
6862
6865
  }) => {
6863
6866
  const N = u === "default" ? "middle" : u, D = v(() => {
6864
- const z = C == null ? void 0 : C.trim();
6865
- if (z)
6866
- return ($, q) => z.replace(/\$\{total\}/g, String($)).replace(/\$\{range\[0\]\}/g, String(q[0])).replace(/\$\{range\[1\]\}/g, String(q[1])).replace(/\$\{range\}/g, `${q[0]}-${q[1]}`);
6867
- }, [C]), w = _((z) => z.getDataSet), A = v(
6867
+ const B = C == null ? void 0 : C.trim();
6868
+ if (B)
6869
+ return ($, W) => B.replace(/\$\{total\}/g, String($)).replace(/\$\{range\[0\]\}/g, String(W[0])).replace(/\$\{range\[1\]\}/g, String(W[1])).replace(/\$\{range\}/g, `${W[0]}-${W[1]}`);
6870
+ }, [C]), w = _((B) => B.getDataSet), A = v(
6868
6871
  () => nt(t, i),
6869
6872
  [t, i]
6870
- ), [O, k] = pt(1), [S, M] = pt(m), T = v(() => {
6873
+ ), [O, k] = pt(1), [b, M] = pt(m), T = v(() => {
6871
6874
  if (A && r) {
6872
- const z = w(A, r);
6873
- return Array.isArray(z) ? z : [];
6875
+ const B = w(A, r);
6876
+ return Array.isArray(B) ? B : [];
6874
6877
  }
6875
6878
  return [];
6876
- }, [A, r, w]), E = v(() => n ? T.length > 0 ? T : c || [] : A ? T : c || [], [n, A, T, c]), B = v(() => {
6877
- let z = E;
6879
+ }, [A, r, w]), E = v(() => n ? T.length > 0 ? T : c || [] : A ? T : c || [], [n, A, T, c]), K = v(() => {
6880
+ let B = E;
6878
6881
  if (!y) {
6879
- const $ = (O - 1) * S, q = $ + S;
6880
- z = z.slice($, q);
6882
+ const $ = (O - 1) * b, W = $ + b;
6883
+ B = B.slice($, W);
6881
6884
  }
6882
- return l ? z.slice(0, l) : z;
6883
- }, [E, y, O, S, l]);
6885
+ return l ? B.slice(0, l) : B;
6886
+ }, [E, y, O, b, l]);
6884
6887
  if (!E || E.length === 0)
6885
- return a ? /* @__PURE__ */ b(me, { children: a() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
6886
- const H = (z, $) => {
6887
- k(z), $ && M($);
6888
+ return a ? /* @__PURE__ */ S(me, { children: a() }) : /* @__PURE__ */ S("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
6889
+ const q = (B, $) => {
6890
+ k(B), $ && M($);
6888
6891
  };
6889
6892
  return /* @__PURE__ */ lt("div", { style: { display: "flex", flexDirection: "column", ...h }, children: [
6890
- /* @__PURE__ */ b("div", { style: { flex: 1 }, children: B.map((z, $) => /* @__PURE__ */ b(qt.Fragment, { children: o ? o(z, $) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(z) }) }, z.id || $)) }),
6891
- !y && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
6893
+ /* @__PURE__ */ S("div", { style: { flex: 1 }, children: K.map((B, $) => /* @__PURE__ */ S(qt.Fragment, { children: o ? o(B, $) : /* @__PURE__ */ S("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || $)) }),
6894
+ !y && E.length > 0 && /* @__PURE__ */ S("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ S(
6892
6895
  Wn,
6893
6896
  {
6894
6897
  current: O,
6895
- pageSize: S,
6898
+ pageSize: b,
6896
6899
  total: E.length,
6897
- onChange: H,
6900
+ onChange: q,
6898
6901
  pageSizeOptions: p,
6899
6902
  showSizeChanger: f,
6900
6903
  showQuickJumper: s,
@@ -6938,16 +6941,16 @@ const os = ({
6938
6941
  ...f
6939
6942
  };
6940
6943
  return /* @__PURE__ */ lt(me, { children: [
6941
- /* @__PURE__ */ b("style", { children: Ta }),
6942
- c && /* @__PURE__ */ b("style", { children: ka }),
6943
- /* @__PURE__ */ b(
6944
+ /* @__PURE__ */ S("style", { children: Ta }),
6945
+ c && /* @__PURE__ */ S("style", { children: ka }),
6946
+ /* @__PURE__ */ S(
6944
6947
  "span",
6945
6948
  {
6946
6949
  className: "and-icon-svg-root",
6947
6950
  style: d,
6948
6951
  onClick: m,
6949
6952
  role: m ? "button" : void 0,
6950
- children: /* @__PURE__ */ b("span", { style: c ? { animation: "and-icon-spin 1s linear infinite", display: "inline-flex" } : { display: "inline-flex" }, children: /* @__PURE__ */ b(
6953
+ children: /* @__PURE__ */ S("span", { style: c ? { animation: "and-icon-spin 1s linear infinite", display: "inline-flex" } : { display: "inline-flex" }, children: /* @__PURE__ */ S(
6951
6954
  "span",
6952
6955
  {
6953
6956
  dangerouslySetInnerHTML: { __html: p },
@@ -6960,7 +6963,7 @@ const os = ({
6960
6963
  }
6961
6964
  if (!i) return null;
6962
6965
  const s = Qt[i];
6963
- return s ? /* @__PURE__ */ b(
6966
+ return s ? /* @__PURE__ */ S(
6964
6967
  s,
6965
6968
  {
6966
6969
  style: f,
@@ -6993,13 +6996,13 @@ const os = ({
6993
6996
  }, [y, r, g]), p = m.length > 0 ? m : o || [], f = (s) => {
6994
6997
  c && t && h(t, X(c, s));
6995
6998
  };
6996
- return /* @__PURE__ */ b("div", { style: { display: "grid", gridTemplateColumns: `repeat(${a}, 1fr)`, gap: 16, ...l }, children: p.map((s) => /* @__PURE__ */ b(
6999
+ return /* @__PURE__ */ S("div", { style: { display: "grid", gridTemplateColumns: `repeat(${a}, 1fr)`, gap: 16, ...l }, children: p.map((s) => /* @__PURE__ */ S(
6997
7000
  Xe,
6998
7001
  {
6999
7002
  hoverable: !0,
7000
- cover: s.image && /* @__PURE__ */ b("img", { alt: s.name, src: s.image, style: { height: 200, objectFit: "cover" } }),
7003
+ cover: s.image && /* @__PURE__ */ S("img", { alt: s.name, src: s.image, style: { height: 200, objectFit: "cover" } }),
7001
7004
  onClick: () => f(s),
7002
- children: /* @__PURE__ */ b(
7005
+ children: /* @__PURE__ */ S(
7003
7006
  Xe.Meta,
7004
7007
  {
7005
7008
  title: s.name,
@@ -7014,7 +7017,7 @@ const os = ({
7014
7017
  s.originalPrice
7015
7018
  ] })
7016
7019
  ] }),
7017
- s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Jt, { size: 4, wrap: !0, children: s.tags.map((d, u) => /* @__PURE__ */ b(qn, { color: "blue", children: d }, u)) })
7020
+ s.tags && s.tags.length > 0 && /* @__PURE__ */ S(Jt, { size: 4, wrap: !0, children: s.tags.map((d, u) => /* @__PURE__ */ S(qn, { color: "blue", children: d }, u)) })
7018
7021
  ] })
7019
7022
  }
7020
7023
  )
@@ -7043,9 +7046,9 @@ const os = ({
7043
7046
  ...r
7044
7047
  },
7045
7048
  children: [
7046
- t || /* @__PURE__ */ b(si, { style: { fontSize: 28, marginBottom: 8, color: "#bfbfbf" } }),
7047
- n && /* @__PURE__ */ b("div", { style: { fontWeight: 500, fontSize: 13, marginBottom: 4 }, children: n }),
7048
- i && /* @__PURE__ */ b("div", { style: { fontSize: 12, opacity: 0.7 }, children: i })
7049
+ t || /* @__PURE__ */ S(si, { style: { fontSize: 28, marginBottom: 8, color: "#bfbfbf" } }),
7050
+ n && /* @__PURE__ */ S("div", { style: { fontWeight: 500, fontSize: 13, marginBottom: 4 }, children: n }),
7051
+ i && /* @__PURE__ */ S("div", { style: { fontSize: 12, opacity: 0.7 }, children: i })
7049
7052
  ]
7050
7053
  }
7051
7054
  ), Es = ({
@@ -7065,40 +7068,40 @@ const os = ({
7065
7068
  var A, O;
7066
7069
  const { storeBaseKey: m, arrayIndex: p } = v(() => {
7067
7070
  if (!n) return { storeBaseKey: void 0, arrayIndex: null };
7068
- const k = n.split(".")[0], { baseName: S, index: M } = he(k);
7071
+ const k = n.split(".")[0], { baseName: b, index: M } = he(k);
7069
7072
  let T = M;
7070
7073
  if (T === null && y !== void 0 && y !== null) {
7071
7074
  const E = Number(y);
7072
7075
  T = Number.isFinite(E) ? E : null;
7073
7076
  }
7074
7077
  return {
7075
- storeBaseKey: nt(i, S),
7078
+ storeBaseKey: nt(i, b),
7076
7079
  arrayIndex: T
7077
7080
  };
7078
7081
  }, [n, i, y]), f = _((k) => {
7079
7082
  if (!m) return null;
7080
- const S = k.dataSets[m];
7083
+ const b = k.dataSets[m];
7081
7084
  if (p !== null) {
7082
- const M = S == null ? void 0 : S.value;
7085
+ const M = b == null ? void 0 : b.value;
7083
7086
  return Array.isArray(M) ? M[p] ?? null : null;
7084
7087
  }
7085
- return S ?? null;
7088
+ return b ?? null;
7086
7089
  }), s = v(() => {
7087
7090
  if (!n || !f) return { componentName: "", props: {} };
7088
- const S = n.split(".")[1], M = S ? f[S] || {} : f;
7091
+ const b = n.split(".")[1], M = b ? f[b] || {} : f;
7089
7092
  if (typeof M == "object" && M !== null) {
7090
- const { componentName: T, props: E, ...B } = M;
7093
+ const { componentName: T, props: E, ...K } = M;
7091
7094
  return {
7092
7095
  componentName: T || "",
7093
- props: E || B || {}
7096
+ props: E || K || {}
7094
7097
  };
7095
7098
  }
7096
7099
  return { componentName: "", props: {} };
7097
7100
  }, [n, i, f]), d = ((A = s.props) == null ? void 0 : A.inheritDataSet) !== void 0 ? String((O = s.props) == null ? void 0 : O.inheritDataSet) : void 0, u = s.componentName || e, x = v(() => ({
7098
7101
  // inheritDataSet 只用于给后代提供 DataSetInheritContext,不应透传给具体组件。
7099
7102
  ...s.props ? (() => {
7100
- const { inheritDataSet: k, ...S } = s.props;
7101
- return S;
7103
+ const { inheritDataSet: k, ...b } = s.props;
7104
+ return b;
7102
7105
  })() : {},
7103
7106
  ...y !== void 0 ? { index: y } : {},
7104
7107
  ...t,
@@ -7126,17 +7129,17 @@ const os = ({
7126
7129
  boxSizing: "border-box"
7127
7130
  },
7128
7131
  children: [
7129
- /* @__PURE__ */ b(ci, { style: { fontSize: 20, flexShrink: 0, color: "#bfbfbf", ...k ? {} : { marginBottom: 4 } } }),
7130
- /* @__PURE__ */ b("div", { style: { fontWeight: 500, fontSize: 12 }, children: r || "动态容器" }),
7131
- /* @__PURE__ */ b("div", { style: { fontSize: 11, opacity: 0.7 }, children: u ? `${u}` : "未配置" }),
7132
- n && /* @__PURE__ */ b("div", { style: { fontSize: 10, opacity: 0.5, marginTop: k ? 0 : 2 }, children: n })
7132
+ /* @__PURE__ */ S(ci, { style: { fontSize: 20, flexShrink: 0, color: "#bfbfbf", ...k ? {} : { marginBottom: 4 } } }),
7133
+ /* @__PURE__ */ S("div", { style: { fontWeight: 500, fontSize: 12 }, children: r || "动态容器" }),
7134
+ /* @__PURE__ */ S("div", { style: { fontSize: 11, opacity: 0.7 }, children: u ? `${u}` : "未配置" }),
7135
+ n && /* @__PURE__ */ S("div", { style: { fontSize: 10, opacity: 0.5, marginTop: k ? 0 : 2 }, children: n })
7133
7136
  ]
7134
7137
  }
7135
7138
  );
7136
7139
  }
7137
7140
  const N = Ut(), D = l || N.componentResolver;
7138
7141
  if (!D)
7139
- return /* @__PURE__ */ b(
7142
+ return /* @__PURE__ */ S(
7140
7143
  $n,
7141
7144
  {
7142
7145
  id: c,
@@ -7146,13 +7149,13 @@ const os = ({
7146
7149
  }
7147
7150
  );
7148
7151
  const w = u ? D(u) : null;
7149
- return w ? /* @__PURE__ */ b(ei, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Pn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: d && p !== null ? /* @__PURE__ */ b(
7152
+ return w ? /* @__PURE__ */ S(ei, { fallback: /* @__PURE__ */ S("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ S(Pn, {}) }), children: /* @__PURE__ */ S("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: d && p !== null ? /* @__PURE__ */ S(
7150
7153
  ce.Provider,
7151
7154
  {
7152
7155
  value: { dataSet: d, index: p, sessionId: i },
7153
- children: /* @__PURE__ */ b(w, { ...x })
7156
+ children: /* @__PURE__ */ S(w, { ...x })
7154
7157
  }
7155
- ) : /* @__PURE__ */ b(w, { ...x }) }) }) : /* @__PURE__ */ b(
7158
+ ) : /* @__PURE__ */ S(w, { ...x }) }) }) : /* @__PURE__ */ S(
7156
7159
  $n,
7157
7160
  {
7158
7161
  id: c,
@@ -7184,7 +7187,7 @@ const os = ({
7184
7187
  fontFamily: (h == null ? void 0 : h.fontFamily) ?? "sans-serif",
7185
7188
  fontStyle: (h == null ? void 0 : h.fontStyle) ?? "normal",
7186
7189
  textAlign: (h == null ? void 0 : h.textAlign) ?? "center"
7187
- }, s = /* @__PURE__ */ b(
7190
+ }, s = /* @__PURE__ */ S(
7188
7191
  Pr,
7189
7192
  {
7190
7193
  content: e,
@@ -7198,7 +7201,7 @@ const os = ({
7198
7201
  inherit: l,
7199
7202
  font: f,
7200
7203
  ...p,
7201
- children: g ? /* @__PURE__ */ b(
7204
+ children: g ? /* @__PURE__ */ S(
7202
7205
  "div",
7203
7206
  {
7204
7207
  "data-slot": "content",
@@ -7215,7 +7218,7 @@ const os = ({
7215
7218
  ) : m
7216
7219
  }
7217
7220
  );
7218
- return y && Object.keys(y).length > 0 ? /* @__PURE__ */ b(
7221
+ return y && Object.keys(y).length > 0 ? /* @__PURE__ */ S(
7219
7222
  Lt,
7220
7223
  {
7221
7224
  theme: {
@@ -7285,19 +7288,19 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7285
7288
  [t, i]
7286
7289
  ), d = _((G) => {
7287
7290
  if (!s || !r) return;
7288
- const W = G.getDataSet(s, r);
7289
- if (W != null && W !== "") return String(W);
7291
+ const H = G.getDataSet(s, r);
7292
+ if (H != null && H !== "") return String(H);
7290
7293
  }), u = _(
7291
7294
  (G) => {
7292
- var W;
7293
- return t && e ? ((W = G.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
7295
+ var H;
7296
+ return t && e ? ((H = G.propsStore[`${t}_props`]) == null ? void 0 : H[e]) ?? null : null;
7294
7297
  }
7295
7298
  ), x = v(() => {
7296
7299
  let G;
7297
7300
  if (d !== void 0) G = d;
7298
7301
  else if (u && typeof u == "object") {
7299
- const W = u.filePath;
7300
- W != null && W !== "" && (G = String(W));
7302
+ const H = u.filePath;
7303
+ H != null && H !== "" && (G = String(H));
7301
7304
  }
7302
7305
  return G === void 0 && (G = o), G;
7303
7306
  }, [d, u, o]), C = v(() => {
@@ -7311,7 +7314,7 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7311
7314
  () => Math.max(1, a || 1)
7312
7315
  ), O = Mt(w);
7313
7316
  O.current = w;
7314
- const [k, S] = pt(null), [M, T] = pt(!!x), [E, B] = pt("all"), [H, z] = pt("width"), [$, q] = pt(1), K = Mt(null), L = Mt(null), R = Mt({}), Y = Mt(!1), Z = Mt(null), [P, U] = pt(600), [tt, et] = pt(800), I = Mt(0), mt = v(() => {
7317
+ const [k, b] = pt(null), [M, T] = pt(!!x), [E, K] = pt("all"), [q, B] = pt("width"), [$, W] = pt(1), z = Mt(null), L = Mt(null), R = Mt({}), Y = Mt(!1), Z = Mt(null), [P, U] = pt(600), [tt, et] = pt(800), I = Mt(0), mt = v(() => {
7315
7318
  var ot;
7316
7319
  const G = (ot = Ut().pdfCMapUrl) == null ? void 0 : ot.trim();
7317
7320
  return G ? { cMapUrl: G.endsWith("/") ? G : `${G}/`, cMapPacked: !0 } : {};
@@ -7322,13 +7325,13 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7322
7325
  xt(() => {
7323
7326
  const G = L.current;
7324
7327
  if (!G) return;
7325
- const W = new ResizeObserver(() => {
7328
+ const H = new ResizeObserver(() => {
7326
7329
  const wt = G.clientWidth, Ot = G.clientHeight;
7327
7330
  wt > 0 && U(wt), Ot > 0 && et(Ot);
7328
7331
  });
7329
- W.observe(G);
7332
+ H.observe(G);
7330
7333
  const ot = G.clientWidth, dt = G.clientHeight;
7331
- return ot > 0 && U(ot), dt > 0 && et(dt), () => W.disconnect();
7334
+ return ot > 0 && U(ot), dt > 0 && et(dt), () => H.disconnect();
7332
7335
  }, [x]);
7333
7336
  const ct = v(() => Math.max(240, P - 16), [P]), rt = v(
7334
7337
  () => Math.max(320, tt - 16),
@@ -7339,9 +7342,9 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7339
7342
  ), Dt = v(
7340
7343
  () => Math.max(180, rt * $),
7341
7344
  [rt, $]
7342
- ), _t = v(() => E === "all" ? Array.from({ length: N }, (G, W) => W + 1) : [w], [E, N, w]), Bt = j(
7343
- (G, W) => {
7344
- !s || !St || (f(s, `${St}.currentPage`, G), W > 0 && f(s, `${St}.totalPages`, W));
7345
+ ), _t = v(() => E === "all" ? Array.from({ length: N }, (G, H) => H + 1) : [w], [E, N, w]), Bt = j(
7346
+ (G, H) => {
7347
+ !s || !St || (f(s, `${St}.currentPage`, G), H > 0 && f(s, `${St}.totalPages`, H));
7345
7348
  },
7346
7349
  [s, St, f]
7347
7350
  );
@@ -7349,11 +7352,11 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7349
7352
  N > 0 && Bt(w, N);
7350
7353
  }, [w, N, Bt]);
7351
7354
  const gt = j(
7352
- (G, W = "auto") => {
7355
+ (G, H = "auto") => {
7353
7356
  const ot = N > 0 ? Math.max(1, Math.min(Math.floor(G), N)) : Math.max(1, Math.floor(G));
7354
7357
  if (A(ot), E === "all") {
7355
7358
  const dt = R.current[ot];
7356
- dt && dt.scrollIntoView({ block: "start", behavior: W });
7359
+ dt && dt.scrollIntoView({ block: "start", behavior: H });
7357
7360
  }
7358
7361
  },
7359
7362
  [N, E]
@@ -7367,22 +7370,22 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7367
7370
  }, [a]);
7368
7371
  const ft = j(
7369
7372
  ({ numPages: G }) => {
7370
- S(null), T(!1);
7371
- const W = O.current, ot = Math.min(Math.max(1, W), G || 1);
7373
+ b(null), T(!1);
7374
+ const H = O.current, ot = Math.min(Math.max(1, H), G || 1);
7372
7375
  D(G), A(ot), Y.current = !0, Z.current = ot;
7373
7376
  },
7374
7377
  []
7375
7378
  ), At = j((G) => {
7376
- S(G), T(!1), Y.current = !1, Z.current = null;
7379
+ b(G), T(!1), Y.current = !1, Z.current = null;
7377
7380
  }, []);
7378
7381
  xt(() => {
7379
- T(!!x), S(null), q(1), D(0), Y.current = !!x, Z.current = null, R.current = {};
7382
+ T(!!x), b(null), W(1), D(0), Y.current = !!x, Z.current = null, R.current = {};
7380
7383
  }, [x]), xt(() => {
7381
7384
  const G = Z.current;
7382
7385
  if (G == null || M || N <= 0 || E !== "all") return;
7383
- let W = !1, ot = 0;
7386
+ let H = !1, ot = 0;
7384
7387
  const dt = 120, wt = () => {
7385
- if (W) return;
7388
+ if (H) return;
7386
7389
  ot++;
7387
7390
  const Ot = Math.max(1, Math.min(Math.floor(G), N));
7388
7391
  let ne = !0;
@@ -7395,10 +7398,10 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7395
7398
  }
7396
7399
  if (ne) {
7397
7400
  requestAnimationFrame(() => {
7398
- if (W) return;
7401
+ if (H) return;
7399
7402
  const Ft = R.current[Ot];
7400
7403
  Ft && Ft.scrollIntoView({ block: "start", behavior: "auto" }), Z.current = null, requestAnimationFrame(() => {
7401
- W || (Y.current = !1);
7404
+ H || (Y.current = !1);
7402
7405
  });
7403
7406
  });
7404
7407
  return;
@@ -7410,12 +7413,12 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7410
7413
  requestAnimationFrame(wt);
7411
7414
  };
7412
7415
  return requestAnimationFrame(wt), () => {
7413
- W = !0;
7416
+ H = !0;
7414
7417
  };
7415
7418
  }, [M, N, E]);
7416
7419
  const J = j((G) => {
7417
- q((W) => {
7418
- const ot = Number((W + G).toFixed(2));
7420
+ W((H) => {
7421
+ const ot = Number((H + G).toFixed(2));
7419
7422
  return Math.max(Oa, Math.min(Ea, ot));
7420
7423
  });
7421
7424
  }, []), Q = j(() => {
@@ -7432,30 +7435,30 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7432
7435
  const G = document.createElement("a");
7433
7436
  G.href = x, G.download = "", G.rel = "noopener noreferrer", G.target = "_blank", document.body.appendChild(G), G.click(), G.remove();
7434
7437
  }, [x]), V = j(() => {
7435
- var W;
7436
- const G = K.current;
7437
- G && ((W = G.requestFullscreen) == null || W.call(G));
7438
+ var H;
7439
+ const G = z.current;
7440
+ G && ((H = G.requestFullscreen) == null || H.call(G));
7438
7441
  }, []), st = j(() => {
7439
7442
  document.fullscreenElement && document.exitFullscreen();
7440
7443
  }, []), ht = j(() => {
7441
7444
  if (M || E !== "all" || N <= 0 || Y.current) return;
7442
7445
  const G = L.current;
7443
7446
  if (!G) return;
7444
- const W = G.scrollTop + G.clientHeight * 0.35;
7447
+ const H = G.scrollTop + G.clientHeight * 0.35;
7445
7448
  let ot = w, dt = Number.POSITIVE_INFINITY;
7446
7449
  for (let wt = 1; wt <= N; wt++) {
7447
7450
  const Ot = R.current[wt];
7448
7451
  if (!Ot) continue;
7449
- const ne = Math.abs(Ot.offsetTop - W);
7452
+ const ne = Math.abs(Ot.offsetTop - H);
7450
7453
  ne < dt && (dt = ne, ot = wt);
7451
7454
  }
7452
7455
  ot !== w && A(ot);
7453
7456
  }, [M, E, N, w]);
7454
7457
  return xt(() => {
7455
7458
  if (!u || typeof u != "object") return;
7456
- const G = u._pdfCmdNonce, W = u.pdfCommand, ot = u.pdfCommandArg;
7457
- if (!(G == null || G === I.current || !W)) {
7458
- switch (I.current = G, W) {
7459
+ const G = u._pdfCmdNonce, H = u.pdfCommand, ot = u.pdfCommandArg;
7460
+ if (!(G == null || G === I.current || !H)) {
7461
+ switch (I.current = G, H) {
7459
7462
  case "print":
7460
7463
  Q();
7461
7464
  break;
@@ -7472,10 +7475,10 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7472
7475
  typeof ot == "number" && gt(ot, "smooth");
7473
7476
  break;
7474
7477
  case "fitWidth":
7475
- z("width"), q(1);
7478
+ B("width"), W(1);
7476
7479
  break;
7477
7480
  case "fitHeight":
7478
- z("height"), q(1);
7481
+ B("height"), W(1);
7479
7482
  break;
7480
7483
  case "zoomIn":
7481
7484
  J(jn);
@@ -7484,10 +7487,10 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7484
7487
  J(-jn);
7485
7488
  break;
7486
7489
  case "previewSingle":
7487
- B("single");
7490
+ K("single");
7488
7491
  break;
7489
7492
  case "previewAll":
7490
- B("all");
7493
+ K("all");
7491
7494
  break;
7492
7495
  }
7493
7496
  if (t && e) {
@@ -7509,10 +7512,10 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7509
7512
  st,
7510
7513
  gt,
7511
7514
  J
7512
- ]), /* @__PURE__ */ b(
7515
+ ]), /* @__PURE__ */ S(
7513
7516
  "div",
7514
7517
  {
7515
- ref: K,
7518
+ ref: z,
7516
7519
  className: m,
7517
7520
  style: {
7518
7521
  display: "flex",
@@ -7521,7 +7524,7 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7521
7524
  flexGrow: 1,
7522
7525
  ...p
7523
7526
  },
7524
- children: /* @__PURE__ */ b(
7527
+ children: /* @__PURE__ */ S(
7525
7528
  "div",
7526
7529
  {
7527
7530
  ref: L,
@@ -7534,7 +7537,7 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7534
7537
  backgroundColor: C,
7535
7538
  border: n ? "1px dashed #ccc" : void 0
7536
7539
  },
7537
- children: k ? /* @__PURE__ */ b(
7540
+ children: k ? /* @__PURE__ */ S(
7538
7541
  Un,
7539
7542
  {
7540
7543
  type: "error",
@@ -7542,7 +7545,7 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7542
7545
  showIcon: !0
7543
7546
  }
7544
7547
  ) : x ? /* @__PURE__ */ lt(me, { children: [
7545
- M ? /* @__PURE__ */ b(
7548
+ M ? /* @__PURE__ */ S(
7546
7549
  "div",
7547
7550
  {
7548
7551
  style: {
@@ -7555,10 +7558,10 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7555
7558
  zIndex: 2,
7556
7559
  pointerEvents: "none"
7557
7560
  },
7558
- children: /* @__PURE__ */ b(Pn, {})
7561
+ children: /* @__PURE__ */ S(Pn, {})
7559
7562
  }
7560
7563
  ) : null,
7561
- /* @__PURE__ */ b(
7564
+ /* @__PURE__ */ S(
7562
7565
  fi,
7563
7566
  {
7564
7567
  file: x,
@@ -7566,11 +7569,11 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7566
7569
  onLoadError: At,
7567
7570
  loading: null,
7568
7571
  options: mt,
7569
- children: _t.map((G) => /* @__PURE__ */ b(
7572
+ children: _t.map((G) => /* @__PURE__ */ S(
7570
7573
  "div",
7571
7574
  {
7572
- ref: (W) => {
7573
- R.current[G] = W;
7575
+ ref: (H) => {
7576
+ R.current[G] = H;
7574
7577
  },
7575
7578
  style: {
7576
7579
  display: "flex",
@@ -7578,12 +7581,12 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7578
7581
  width: "100%",
7579
7582
  padding: "8px 0"
7580
7583
  },
7581
- children: /* @__PURE__ */ b(
7584
+ children: /* @__PURE__ */ S(
7582
7585
  di,
7583
7586
  {
7584
7587
  pageNumber: G,
7585
- width: H === "width" ? it : void 0,
7586
- height: H === "height" ? Dt : void 0,
7588
+ width: q === "width" ? it : void 0,
7589
+ height: q === "height" ? Dt : void 0,
7587
7590
  renderTextLayer: !1,
7588
7591
  renderAnnotationLayer: !1
7589
7592
  }
@@ -7594,7 +7597,7 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7594
7597
  },
7595
7598
  x
7596
7599
  )
7597
- ] }) : /* @__PURE__ */ b(
7600
+ ] }) : /* @__PURE__ */ S(
7598
7601
  "div",
7599
7602
  {
7600
7603
  style: {
@@ -7605,10 +7608,10 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7605
7608
  justifyContent: "center",
7606
7609
  padding: 24
7607
7610
  },
7608
- children: /* @__PURE__ */ b(
7611
+ children: /* @__PURE__ */ S(
7609
7612
  Yr,
7610
7613
  {
7611
- image: /* @__PURE__ */ b(
7614
+ image: /* @__PURE__ */ S(
7612
7615
  li,
7613
7616
  {
7614
7617
  style: {
@@ -7618,7 +7621,7 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7618
7621
  }
7619
7622
  ),
7620
7623
  description: /* @__PURE__ */ lt("div", { style: { textAlign: "center" }, children: [
7621
- /* @__PURE__ */ b(
7624
+ /* @__PURE__ */ S(
7622
7625
  "div",
7623
7626
  {
7624
7627
  style: {
@@ -7629,7 +7632,7 @@ const Oa = 0.5, Ea = 3, jn = 0.1, Rs = ({
7629
7632
  children: "暂无预览"
7630
7633
  }
7631
7634
  ),
7632
- /* @__PURE__ */ b("div", { style: { fontSize: 12, color: "rgba(0, 0, 0, 0.45)" }, children: "请传入文件路径" })
7635
+ /* @__PURE__ */ S("div", { style: { fontSize: 12, color: "rgba(0, 0, 0, 0.45)" }, children: "请传入文件路径" })
7633
7636
  ] })
7634
7637
  }
7635
7638
  )
@@ -7702,18 +7705,18 @@ function ee(e, t) {
7702
7705
  tooltip: A,
7703
7706
  animate: O,
7704
7707
  scale: k,
7705
- interaction: S,
7708
+ interaction: b,
7706
7709
  annotations: M,
7707
7710
  axis: T,
7708
7711
  scrollbar: E,
7709
- slider: B,
7710
- theme: H,
7711
- state: z,
7712
+ slider: K,
7713
+ theme: q,
7714
+ state: B,
7712
7715
  // 事件配置
7713
7716
  events: $,
7714
7717
  // 其余配置直接透传
7715
- ...q
7716
- } = a, K = Mt(null), L = _((gt) => gt.getDataSet), R = _((gt) => gt.addCommand), Y = v(() => {
7718
+ ...W
7719
+ } = a, z = Mt(null), L = _((gt) => gt.getDataSet), R = _((gt) => gt.addCommand), Y = v(() => {
7717
7720
  if (m && p) {
7718
7721
  const at = L(m, p);
7719
7722
  if (at !== void 0) return at;
@@ -7722,7 +7725,7 @@ function ee(e, t) {
7722
7725
  return gt !== void 0 ? gt : h ? r : [];
7723
7726
  }, [f, m, p, L, h]), Z = (gt) => {
7724
7727
  var at;
7725
- if (K.current = gt, !h && l) {
7728
+ if (z.current = gt, !h && l) {
7726
7729
  const ft = Tt($);
7727
7730
  ft && typeof ft == "object" && Object.entries(ft).forEach(([At, J]) => {
7728
7731
  typeof J == "string" && gt.on(At, (Q) => {
@@ -7734,7 +7737,7 @@ function ee(e, t) {
7734
7737
  });
7735
7738
  });
7736
7739
  }
7737
- (at = q.onReady) == null || at.call(q, gt);
7740
+ (at = W.onReady) == null || at.call(W, gt);
7738
7741
  }, P = Tt(s) || {}, U = {
7739
7742
  data: Y,
7740
7743
  // 优先使用 common 中的配置,没配置则使用默认值
@@ -7745,7 +7748,7 @@ function ee(e, t) {
7745
7748
  // 设计器模式禁用动画
7746
7749
  animate: h ? !1 : Tt(O),
7747
7750
  onReady: Z,
7748
- ...q
7751
+ ...W
7749
7752
  }, tt = Tt(N);
7750
7753
  tt !== void 0 && (U.title = tt);
7751
7754
  const et = Tt(D);
@@ -7756,7 +7759,7 @@ function ee(e, t) {
7756
7759
  mt !== void 0 && (U.tooltip = mt);
7757
7760
  const St = Tt(k);
7758
7761
  St !== void 0 && (U.scale = St);
7759
- const bt = Tt(S);
7762
+ const bt = Tt(b);
7760
7763
  bt !== void 0 && (U.interaction = bt);
7761
7764
  const ct = Tt(M);
7762
7765
  ct !== void 0 && (U.annotations = ct);
@@ -7764,12 +7767,12 @@ function ee(e, t) {
7764
7767
  rt !== void 0 && (U.axis = rt);
7765
7768
  const it = Tt(E);
7766
7769
  it !== void 0 && (U.scrollbar = it);
7767
- const Dt = Tt(B);
7770
+ const Dt = Tt(K);
7768
7771
  Dt !== void 0 && (U.slider = Dt);
7769
- const _t = Tt(H);
7772
+ const _t = Tt(q);
7770
7773
  _t !== void 0 && (U.theme = _t);
7771
- const Bt = Tt(z);
7772
- return Bt !== void 0 && (U.state = Bt), /* @__PURE__ */ b(e, { ...U });
7774
+ const Bt = Tt(B);
7775
+ return Bt !== void 0 && (U.state = Bt), /* @__PURE__ */ S(e, { ...U });
7773
7776
  };
7774
7777
  return o.displayName = `withBaseChart(${n})`, o;
7775
7778
  }
@@ -7794,7 +7797,7 @@ const $a = [
7794
7797
  lineStyle: a,
7795
7798
  ...c
7796
7799
  } = e;
7797
- return /* @__PURE__ */ b(
7800
+ return /* @__PURE__ */ S(
7798
7801
  Ra,
7799
7802
  {
7800
7803
  ...c,
@@ -7831,7 +7834,7 @@ const $a = [
7831
7834
  xField: t,
7832
7835
  yField: n
7833
7836
  };
7834
- return i && (l.seriesField = i), r && (l.isGroup = r), o && (l.isStack = o), a && (l.columnWidth = a), /* @__PURE__ */ b(Ba, { ...l });
7837
+ return i && (l.seriesField = i), r && (l.isGroup = r), o && (l.isStack = o), a && (l.columnWidth = a), /* @__PURE__ */ S(Ba, { ...l });
7835
7838
  }, La = [
7836
7839
  { type: "分类一", value: 27 },
7837
7840
  { type: "分类二", value: 25 },
@@ -7856,7 +7859,7 @@ const $a = [
7856
7859
  colorField: n,
7857
7860
  radius: i
7858
7861
  };
7859
- return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ b(Ka, { ...a });
7862
+ return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ S(Ka, { ...a });
7860
7863
  }, za = ee(gi, {
7861
7864
  chartType: "AndVArea",
7862
7865
  defaultHeight: 300,
@@ -7896,7 +7899,7 @@ const $a = [
7896
7899
  const s = Tt(c);
7897
7900
  s !== void 0 && (f.line = s);
7898
7901
  const d = Tt(l);
7899
- return d !== void 0 && (f.point = d), /* @__PURE__ */ b(za, { ...f });
7902
+ return d !== void 0 && (f.point = d), /* @__PURE__ */ S(za, { ...f });
7900
7903
  }, Va = ee(pi, {
7901
7904
  chartType: "AndVDualAxes",
7902
7905
  defaultHeight: 300,
@@ -7928,7 +7931,7 @@ const $a = [
7928
7931
  const l = Tt(n);
7929
7932
  l ? c.yField = l : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
7930
7933
  const h = Tt(o);
7931
- return h !== void 0 && (c.children = h), /* @__PURE__ */ b(Va, { ...c });
7934
+ return h !== void 0 && (c.children = h), /* @__PURE__ */ S(Va, { ...c });
7932
7935
  }, qa = ee(vi, {
7933
7936
  chartType: "AndVGauge",
7934
7937
  defaultHeight: 300,
@@ -7940,7 +7943,7 @@ const $a = [
7940
7943
  } = e, n = {
7941
7944
  ...t
7942
7945
  };
7943
- return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ b(qa, { ...n });
7946
+ return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ S(qa, { ...n });
7944
7947
  }, Wa = ee(bi, {
7945
7948
  chartType: "AndVLiquid",
7946
7949
  defaultHeight: 300,
@@ -7953,7 +7956,7 @@ const $a = [
7953
7956
  } = e, i = {
7954
7957
  ...n
7955
7958
  };
7956
- return t !== void 0 && (i.percent = t), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ b(Wa, { ...i });
7959
+ return t !== void 0 && (i.percent = t), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ S(Wa, { ...i });
7957
7960
  }, Ha = ee(Si, {
7958
7961
  chartType: "AndVBar",
7959
7962
  defaultHeight: 300,
@@ -7986,7 +7989,7 @@ const $a = [
7986
7989
  const m = Tt(l);
7987
7990
  m !== void 0 && (y.conversionTag = m);
7988
7991
  const p = Tt(h);
7989
- return p !== void 0 && (y.markBackground = p), console.log("[AndVBar] chartProps:", JSON.stringify(y, null, 2)), /* @__PURE__ */ b(Ha, { ...y });
7992
+ return p !== void 0 && (y.markBackground = p), console.log("[AndVBar] chartProps:", JSON.stringify(y, null, 2)), /* @__PURE__ */ S(Ha, { ...y });
7990
7993
  };
7991
7994
  export {
7992
7995
  wc as AVAILABLE_TOKENS,