@nuwatop/code-canvas-core 0.4.3 → 0.4.4

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
@@ -1001,8 +1001,8 @@ var nn = en(), Se = /* @__PURE__ */ function() {
1001
1001
  }), C = ee({}, C, s.rule.fields);
1002
1002
  var w = {};
1003
1003
  Object.keys(C).forEach(function(_) {
1004
- var M = C[_], j = Array.isArray(M) ? M : [M];
1005
- w[_] = j.map(D.bind(null, _));
1004
+ var M = C[_], K = Array.isArray(M) ? M : [M];
1005
+ w[_] = K.map(D.bind(null, _));
1006
1006
  });
1007
1007
  var E = new e(w);
1008
1008
  E.messages(l.messages), s.rule.options && (s.rule.options.messages = l.messages, s.rule.options.error = l.error), E.validate(s.value, s.rule.options || l, function(_) {
@@ -1772,45 +1772,45 @@ const tr = (e) => {
1772
1772
  addonAfter: T,
1773
1773
  addonBefore: S,
1774
1774
  ...A
1775
- } = e, N = Re(r, a, n), k = N.dataSet, C = N.dataSetField, w = N.sessionId, E = $t(""), _ = $t(null), M = O((H) => H.addCommand), j = O((H) => H.getDataSet), P = O((H) => H.setDataSet), Y = O((H) => H.getProps), $ = O((H) => H.setProps), q = O((H) => H.setValidateResult), L = g(
1775
+ } = e, N = Re(r, a, n), k = N.dataSet, C = N.dataSetField, w = N.sessionId, E = $t(""), _ = $t(null), M = O((U) => U.addCommand), K = O((U) => U.getDataSet), H = O((U) => U.setDataSet), P = O((U) => U.getProps), $ = O((U) => U.setProps), q = O((U) => U.setValidateResult), z = g(
1776
1776
  () => tt(w, k),
1777
1777
  [w, k]
1778
1778
  ), W = O(
1779
- (H) => {
1779
+ (U) => {
1780
1780
  var et;
1781
- return w && t ? ((et = H.propsStore[`${w}_props`]) == null ? void 0 : et[t]) ?? null : null;
1781
+ return w && t ? ((et = U.propsStore[`${w}_props`]) == null ? void 0 : et[t]) ?? null : null;
1782
1782
  }
1783
1783
  ), R = g(
1784
1784
  () => ye(w, k),
1785
1785
  [w, k]
1786
- ), z = O(
1787
- (H) => {
1786
+ ), V = O(
1787
+ (U) => {
1788
1788
  var et;
1789
- return R && C ? ((et = H.validateStore[R]) == null ? void 0 : et[C]) ?? "" : "";
1789
+ return R && C ? ((et = U.validateStore[R]) == null ? void 0 : et[C]) ?? "" : "";
1790
1790
  }
1791
- ), K = O(
1792
- (H) => L && C ? H.getDataSet(L, C) : void 0
1793
- ), V = g(
1791
+ ), G = O(
1792
+ (U) => z && C ? U.getDataSet(z, C) : void 0
1793
+ ), j = g(
1794
1794
  () => k ? tt(w, `${k}_validateAction`) : void 0,
1795
1795
  [w, k]
1796
- ), U = O(
1797
- (H) => {
1796
+ ), L = O(
1797
+ (U) => {
1798
1798
  var et;
1799
- return V ? (et = H.dataSets[V]) == null ? void 0 : et.validate : void 0;
1799
+ return j ? (et = U.dataSets[j]) == null ? void 0 : et.validate : void 0;
1800
1800
  }
1801
- ), rt = g(() => K !== void 0 ? K : (W == null ? void 0 : W.value) !== void 0 ? W.value : m, [K, W == null ? void 0 : W.value, m]), it = g(
1801
+ ), rt = g(() => G !== void 0 ? G : (W == null ? void 0 : W.value) !== void 0 ? W.value : m, [G, W == null ? void 0 : W.value, m]), it = g(
1802
1802
  () => ka(A, W ?? null, { develop: i }),
1803
1803
  [A, W, i]
1804
1804
  ), nt = B(
1805
- (H) => {
1806
- const et = H ?? "";
1805
+ (U) => {
1806
+ const et = U ?? "";
1807
1807
  if (w && k && C && q(
1808
1808
  w,
1809
1809
  k,
1810
1810
  C,
1811
1811
  et
1812
1812
  ), w && t) {
1813
- const Q = Y(w, t) || {};
1813
+ const Q = P(w, t) || {};
1814
1814
  $(w, t, {
1815
1815
  ...Q,
1816
1816
  validateStatus: et ? "error" : void 0,
@@ -1824,15 +1824,15 @@ const tr = (e) => {
1824
1824
  C,
1825
1825
  t,
1826
1826
  q,
1827
- Y,
1827
+ P,
1828
1828
  $
1829
1829
  ]
1830
1830
  ), yt = B(
1831
- (H) => {
1831
+ (U) => {
1832
1832
  const et = Qn(p || []);
1833
1833
  Fn(
1834
1834
  et,
1835
- H,
1835
+ U,
1836
1836
  () => nt(""),
1837
1837
  (Q) => {
1838
1838
  var lt;
@@ -1842,13 +1842,13 @@ const tr = (e) => {
1842
1842
  },
1843
1843
  [p, nt]
1844
1844
  ), Ct = B(
1845
- (H) => {
1846
- const et = H.target.value;
1845
+ (U) => {
1846
+ const et = U.target.value;
1847
1847
  if (E.current = et, l) {
1848
- l(et, H);
1848
+ l(et, U);
1849
1849
  return;
1850
1850
  }
1851
- if (L && C && P(L, C, et), c && w) {
1851
+ if (z && C && H(z, C, et), c && w) {
1852
1852
  const { actionName: Q, arg: lt } = gt(c, et, {
1853
1853
  id: t,
1854
1854
  dataSet: k,
@@ -1863,9 +1863,9 @@ const tr = (e) => {
1863
1863
  },
1864
1864
  [
1865
1865
  l,
1866
- L,
1866
+ z,
1867
1867
  C,
1868
- P,
1868
+ H,
1869
1869
  c,
1870
1870
  w,
1871
1871
  t,
@@ -1878,19 +1878,19 @@ const tr = (e) => {
1878
1878
  ]
1879
1879
  ), mt = B(() => {
1880
1880
  if (!f) return;
1881
- const H = L && C ? String(j(L, C) ?? "") : E.current;
1882
- yt(H);
1881
+ const U = z && C ? String(K(z, C) ?? "") : E.current;
1882
+ yt(U);
1883
1883
  }, [
1884
1884
  f,
1885
- L,
1885
+ z,
1886
1886
  C,
1887
- j,
1887
+ K,
1888
1888
  yt
1889
1889
  ]), I = B(
1890
- (H) => {
1890
+ (U) => {
1891
1891
  const Q = it.onPressEnter;
1892
1892
  if (Q) {
1893
- Q(H);
1893
+ Q(U);
1894
1894
  return;
1895
1895
  }
1896
1896
  if (u && w) {
@@ -1943,15 +1943,15 @@ const tr = (e) => {
1943
1943
  },
1944
1944
  []
1945
1945
  ), bt(() => {
1946
- if (U == null || !L || !C)
1946
+ if (L == null || !z || !C)
1947
1947
  return;
1948
- const H = String(j(L, C) ?? "");
1949
- yt(H);
1950
- }, [U, L, C, j, yt]);
1948
+ const U = String(K(z, C) ?? "");
1949
+ yt(U);
1950
+ }, [L, z, C, K, yt]);
1951
1951
  const at = g(() => Na(h), [h]), _t = g(
1952
1952
  () => at ? { components: { Input: at } } : void 0,
1953
1953
  [at]
1954
- ), Ot = i ? void 0 : w && k && C ? z : (W == null ? void 0 : W.help) ?? "", G = /* @__PURE__ */ ot(se, { children: [
1954
+ ), Ot = i ? void 0 : w && k && C ? V : (W == null ? void 0 : W.help) ?? "", Y = /* @__PURE__ */ ot(se, { children: [
1955
1955
  /* @__PURE__ */ b(
1956
1956
  Me,
1957
1957
  {
@@ -1967,7 +1967,7 @@ const tr = (e) => {
1967
1967
  ),
1968
1968
  Ot && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: Ot })
1969
1969
  ] });
1970
- return _t ? /* @__PURE__ */ b(Mt, { theme: _t, children: G }) : G;
1970
+ return _t ? /* @__PURE__ */ b(Mt, { theme: _t, children: Y }) : Y;
1971
1971
  };
1972
1972
  tr.displayName = "AndInput";
1973
1973
  const hc = qt.memo(tr), xn = 200, yc = ({
@@ -1989,16 +1989,16 @@ const hc = qt.memo(tr), xn = 200, yc = ({
1989
1989
  value: s,
1990
1990
  ...y
1991
1991
  }) => {
1992
- const u = O((V) => V.addCommand), x = O((V) => V.setDataSet), D = $t(null), T = g(
1992
+ const u = O((j) => j.addCommand), x = O((j) => j.setDataSet), D = $t(null), T = g(
1993
1993
  () => tt(t, i),
1994
1994
  [t, i]
1995
1995
  ), S = O(
1996
- (V) => {
1997
- var U;
1998
- return t && e ? ((U = V.propsStore[`${t}_props`]) == null ? void 0 : U[e]) ?? null : null;
1996
+ (j) => {
1997
+ var L;
1998
+ return t && e ? ((L = j.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
1999
1999
  }
2000
2000
  ), A = O(
2001
- (V) => T && r ? V.getDataSet(T, r) : void 0
2001
+ (j) => T && r ? j.getDataSet(T, r) : void 0
2002
2002
  ), { validate: N, help: k } = jt({
2003
2003
  rules: a,
2004
2004
  dataSet: i,
@@ -2007,36 +2007,36 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2007
2007
  id: e,
2008
2008
  develop: n
2009
2009
  }), C = g(() => A !== void 0 ? A : (S == null ? void 0 : S.value) !== void 0 ? S.value : s, [A, S == null ? void 0 : S.value, s]), w = B(
2010
- (V, U, rt) => {
2011
- V && t && u(t, X(V, { type: U, value: rt }));
2010
+ (j, L, rt) => {
2011
+ j && t && u(t, X(j, { type: L, value: rt }));
2012
2012
  },
2013
2013
  [t, u]
2014
2014
  ), E = B(
2015
- (V) => {
2015
+ (j) => {
2016
2016
  if (d) {
2017
- d(V);
2017
+ d(j);
2018
2018
  return;
2019
2019
  }
2020
- T && r && x(T, r, V), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
2021
- D.current = null, N(V);
2022
- }, xn)), w(l, "change", V);
2020
+ T && r && x(T, r, j), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
2021
+ D.current = null, N(j);
2022
+ }, xn)), w(l, "change", j);
2023
2023
  },
2024
2024
  [d, T, r, x, c, N, l, w]
2025
2025
  ), _ = B(() => {
2026
2026
  o && N(C);
2027
2027
  }, [o, N, C]), M = B(
2028
- (V) => {
2028
+ (j) => {
2029
2029
  if (y.onPressEnter) {
2030
- y.onPressEnter(V);
2030
+ y.onPressEnter(j);
2031
2031
  return;
2032
2032
  }
2033
2033
  if (m && t) {
2034
- const { actionName: U, arg: rt } = gt(m, C, {
2034
+ const { actionName: L, arg: rt } = gt(m, C, {
2035
2035
  id: e,
2036
2036
  dataSet: i,
2037
2037
  dataSetField: r
2038
2038
  });
2039
- u(t, X(U, rt));
2039
+ u(t, X(L, rt));
2040
2040
  }
2041
2041
  },
2042
2042
  [
@@ -2049,7 +2049,7 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2049
2049
  r,
2050
2050
  u
2051
2051
  ]
2052
- ), j = B(() => {
2052
+ ), K = B(() => {
2053
2053
  if (d) {
2054
2054
  d(null);
2055
2055
  return;
@@ -2057,12 +2057,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2057
2057
  if (T && r && x(T, r, null), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
2058
2058
  D.current = null, N(null);
2059
2059
  }, xn)), w(l, "change", null), v && t) {
2060
- const { actionName: V, arg: U } = gt(v, null, {
2060
+ const { actionName: j, arg: L } = gt(v, null, {
2061
2061
  id: e,
2062
2062
  dataSet: i,
2063
2063
  dataSetField: r
2064
2064
  });
2065
- u(t, X(V, U));
2065
+ u(t, X(j, L));
2066
2066
  }
2067
2067
  }, [
2068
2068
  d,
@@ -2079,9 +2079,9 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2079
2079
  i,
2080
2080
  r,
2081
2081
  u
2082
- ]), P = B(
2083
- (V, U) => {
2084
- w(p, "step", { value: V, type: U.type });
2082
+ ]), H = B(
2083
+ (j, L) => {
2084
+ w(p, "step", { value: j, type: L.type });
2085
2085
  },
2086
2086
  [p, w]
2087
2087
  );
@@ -2093,12 +2093,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2093
2093
  ), bt(() => {
2094
2094
  f !== void 0 && C === void 0 && T && r && x(T, r, f);
2095
2095
  }, [f, C, T, r, x]);
2096
- const Y = g(
2096
+ const P = g(
2097
2097
  () => Jt(y, S ?? void 0),
2098
2098
  [y, S]
2099
- ), { addonBefore: $, addonAfter: q, style: L, suffix: W, ...R } = Y, z = g(() => {
2099
+ ), { addonBefore: $, addonAfter: q, style: z, suffix: W, ...R } = P, V = g(() => {
2100
2100
  if (!(h && C !== null && C !== void 0)) return W;
2101
- const U = /* @__PURE__ */ b(
2101
+ const L = /* @__PURE__ */ b(
2102
2102
  "span",
2103
2103
  {
2104
2104
  role: "button",
@@ -2106,16 +2106,16 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2106
2106
  style: { cursor: "pointer", marginInlineStart: 4 },
2107
2107
  onMouseDown: (rt) => rt.preventDefault(),
2108
2108
  onClick: (rt) => {
2109
- rt.stopPropagation(), j();
2109
+ rt.stopPropagation(), K();
2110
2110
  },
2111
2111
  children: /* @__PURE__ */ b(Xr, {})
2112
2112
  }
2113
2113
  );
2114
- return W == null || W === !1 ? U : /* @__PURE__ */ ot(se, { children: [
2114
+ return W == null || W === !1 ? L : /* @__PURE__ */ ot(se, { children: [
2115
2115
  W,
2116
- U
2116
+ L
2117
2117
  ] });
2118
- }, [h, C, W, j]), K = /* @__PURE__ */ b(
2118
+ }, [h, C, W, K]), G = /* @__PURE__ */ b(
2119
2119
  $n,
2120
2120
  {
2121
2121
  ...R,
@@ -2128,10 +2128,10 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2128
2128
  onChange: E,
2129
2129
  onBlur: _,
2130
2130
  onPressEnter: M,
2131
- onStep: P,
2132
- suffix: z,
2131
+ onStep: H,
2132
+ suffix: V,
2133
2133
  status: k ? "error" : void 0,
2134
- style: { width: "100%", ...L }
2134
+ style: { width: "100%", ...z }
2135
2135
  }
2136
2136
  );
2137
2137
  return /* @__PURE__ */ ot("div", { style: { width: "100%" }, children: [
@@ -2153,7 +2153,7 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2153
2153
  children: $
2154
2154
  }
2155
2155
  ),
2156
- K,
2156
+ G,
2157
2157
  q && /* @__PURE__ */ b(
2158
2158
  "div",
2159
2159
  {
@@ -2171,7 +2171,7 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2171
2171
  children: q
2172
2172
  }
2173
2173
  )
2174
- ] }) : K,
2174
+ ] }) : G,
2175
2175
  k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
2176
2176
  ] });
2177
2177
  }, { TextArea: Oa } = Me, _a = 200, gc = ({
@@ -2191,16 +2191,16 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2191
2191
  defaultValue: d,
2192
2192
  ...f
2193
2193
  }) => {
2194
- const s = Re(i, r, t), y = s.dataSet, u = s.dataSetField, x = s.sessionId, D = O((Y) => Y.addCommand), T = O((Y) => Y.setDataSet), S = $t(null), A = g(
2194
+ const s = Re(i, r, t), y = s.dataSet, u = s.dataSetField, x = s.sessionId, D = O((P) => P.addCommand), T = O((P) => P.setDataSet), S = $t(null), A = g(
2195
2195
  () => tt(x, y),
2196
2196
  [x, y]
2197
2197
  ), N = O(
2198
- (Y) => {
2198
+ (P) => {
2199
2199
  var $;
2200
- return x && e ? (($ = Y.propsStore[`${x}_props`]) == null ? void 0 : $[e]) ?? null : null;
2200
+ return x && e ? (($ = P.propsStore[`${x}_props`]) == null ? void 0 : $[e]) ?? null : null;
2201
2201
  }
2202
2202
  ), k = O(
2203
- (Y) => A && u ? Y.getDataSet(A, u) : void 0
2203
+ (P) => A && u ? P.getDataSet(A, u) : void 0
2204
2204
  ), { validate: C, help: w } = jt({
2205
2205
  rules: a,
2206
2206
  dataSet: y,
@@ -2209,19 +2209,19 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2209
2209
  id: e,
2210
2210
  develop: n
2211
2211
  }), E = g(() => k !== void 0 ? k : (N == null ? void 0 : N.value) !== void 0 ? N.value : p ?? d, [k, N == null ? void 0 : N.value, p, d]), _ = B(
2212
- (Y) => {
2213
- const $ = Y.target.value;
2212
+ (P) => {
2213
+ const $ = P.target.value;
2214
2214
  if (h) {
2215
- h($, Y);
2215
+ h($, P);
2216
2216
  return;
2217
2217
  }
2218
2218
  if (A && u && T(A, u, $), l && x) {
2219
- const { actionName: q, arg: L } = gt(l, $, {
2219
+ const { actionName: q, arg: z } = gt(l, $, {
2220
2220
  id: e,
2221
2221
  dataSet: y,
2222
2222
  dataSetField: u
2223
2223
  });
2224
- D(x, X(q, L));
2224
+ D(x, X(q, z));
2225
2225
  }
2226
2226
  c && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
2227
2227
  S.current = null, C($);
@@ -2241,13 +2241,13 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2241
2241
  ]
2242
2242
  ), M = B(() => {
2243
2243
  o && C(E);
2244
- }, [o, C, E]), j = B(
2245
- (Y) => {
2244
+ }, [o, C, E]), K = B(
2245
+ (P) => {
2246
2246
  if (f.onPressEnter) {
2247
- f.onPressEnter(Y);
2247
+ f.onPressEnter(P);
2248
2248
  return;
2249
2249
  }
2250
- if (m && x && !Y.shiftKey) {
2250
+ if (m && x && !P.shiftKey) {
2251
2251
  const { actionName: $, arg: q } = gt(m, E, {
2252
2252
  id: e,
2253
2253
  dataSet: y,
@@ -2266,18 +2266,18 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2266
2266
  u,
2267
2267
  D
2268
2268
  ]
2269
- ), P = B(() => {
2269
+ ), H = B(() => {
2270
2270
  if (f.onClear) {
2271
2271
  f.onClear();
2272
2272
  return;
2273
2273
  }
2274
2274
  if (v && x) {
2275
- const { actionName: Y, arg: $ } = gt(v, "", {
2275
+ const { actionName: P, arg: $ } = gt(v, "", {
2276
2276
  id: e,
2277
2277
  dataSet: y,
2278
2278
  dataSetField: u
2279
2279
  });
2280
- D(x, X(Y, $));
2280
+ D(x, X(P, $));
2281
2281
  }
2282
2282
  }, [
2283
2283
  f.onClear,
@@ -2302,8 +2302,8 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2302
2302
  value: E,
2303
2303
  onChange: _,
2304
2304
  onBlur: M,
2305
- onPressEnter: j,
2306
- onClear: P,
2305
+ onPressEnter: K,
2306
+ onClear: H,
2307
2307
  status: w ? "error" : void 0
2308
2308
  }
2309
2309
  ),
@@ -2351,12 +2351,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2351
2351
  return;
2352
2352
  }
2353
2353
  if (x && r && y(x, r, M), l && t) {
2354
- const { actionName: j, arg: P } = gt(l, M, {
2354
+ const { actionName: K, arg: H } = gt(l, M, {
2355
2355
  id: e,
2356
2356
  dataSet: i,
2357
2357
  dataSetField: r
2358
2358
  });
2359
- s(t, X(j, P));
2359
+ s(t, X(K, H));
2360
2360
  }
2361
2361
  c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
2362
2362
  u.current = null, S(M);
@@ -2383,12 +2383,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2383
2383
  return;
2384
2384
  }
2385
2385
  if (m && t) {
2386
- const { actionName: M, arg: j } = gt(m, N, {
2386
+ const { actionName: M, arg: K } = gt(m, N, {
2387
2387
  id: e,
2388
2388
  dataSet: i,
2389
2389
  dataSetField: r
2390
2390
  });
2391
- s(t, X(M, j));
2391
+ s(t, X(M, K));
2392
2392
  }
2393
2393
  },
2394
2394
  [
@@ -2503,17 +2503,17 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2503
2503
  const C = O((I) => I.addCommand), w = O((I) => I.setDataSet), E = $t(null), _ = ve(re), M = g(
2504
2504
  () => tt(t, i),
2505
2505
  [t, i]
2506
- ), j = y ?? (_ == null ? void 0 : _.index), P = O(
2506
+ ), K = y ?? (_ == null ? void 0 : _.index), H = O(
2507
2507
  (I) => {
2508
2508
  var st;
2509
2509
  return t && e ? ((st = I.propsStore[`${t}_props`]) == null ? void 0 : st[e]) ?? null : null;
2510
2510
  }
2511
- ), Y = O(
2511
+ ), P = O(
2512
2512
  (I) => M && r ? I.getDataSet(M, r) : void 0
2513
2513
  ), $ = g(
2514
- () => (P == null ? void 0 : P.optionsCfg) != null ? P.optionsCfg : c,
2515
- [P == null ? void 0 : P.optionsCfg, c]
2516
- ), { options: q, loading: L } = we(
2514
+ () => (H == null ? void 0 : H.optionsCfg) != null ? H.optionsCfg : c,
2515
+ [H == null ? void 0 : H.optionsCfg, c]
2516
+ ), { options: q, loading: z } = we(
2517
2517
  A || (a ? o : void 0)
2518
2518
  ), { options: W, loading: R } = un(
2519
2519
  $ == null ? void 0 : $.url,
@@ -2524,39 +2524,39 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2524
2524
  params: $ == null ? void 0 : $.params,
2525
2525
  field: $ == null ? void 0 : $.field
2526
2526
  }
2527
- ), z = L || R, { validate: K, help: V } = jt({
2527
+ ), V = z || R, { validate: G, help: j } = jt({
2528
2528
  rules: l,
2529
2529
  dataSet: i,
2530
2530
  dataSetField: r,
2531
2531
  sessionId: t,
2532
2532
  id: e,
2533
2533
  develop: n
2534
- }), U = g(() => Y != null && Y !== "" ? Y : (P == null ? void 0 : P.value) !== void 0 ? P.value : s ?? f, [Y, P == null ? void 0 : P.value, s, f]), rt = g(
2535
- () => Jt(k, P ?? void 0),
2536
- [k, P]
2537
- ), it = g(() => P != null && P.options && Array.isArray(P.options) ? P.options : $ != null && $.url && W.length > 0 ? W : (A || a && o) && q.length > 0 ? q : d || [], [P == null ? void 0 : P.options, $ == null ? void 0 : $.url, W, A, a, o, q, d]), nt = g(() => {
2538
- if (it.length === 0) return U;
2539
- if (Array.isArray(U))
2540
- return U.map((st) => {
2534
+ }), L = g(() => P != null && P !== "" ? P : (H == null ? void 0 : H.value) !== void 0 ? H.value : s ?? f, [P, H == null ? void 0 : H.value, s, f]), rt = g(
2535
+ () => Jt(k, H ?? void 0),
2536
+ [k, H]
2537
+ ), it = g(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url && W.length > 0 ? W : (A || a && o) && q.length > 0 ? q : d || [], [H == null ? void 0 : H.options, $ == null ? void 0 : $.url, W, A, a, o, q, d]), nt = g(() => {
2538
+ if (it.length === 0) return L;
2539
+ if (Array.isArray(L))
2540
+ return L.map((st) => {
2541
2541
  var at;
2542
2542
  return ((at = ie(it, st)) == null ? void 0 : at.value) ?? st;
2543
2543
  });
2544
- const I = ie(it, U);
2545
- return (I == null ? void 0 : I.value) ?? U;
2546
- }, [U, it]), yt = B(
2544
+ const I = ie(it, L);
2545
+ return (I == null ? void 0 : I.value) ?? L;
2546
+ }, [L, it]), yt = B(
2547
2547
  (I, st) => {
2548
2548
  if (p) {
2549
2549
  p(I, st);
2550
2550
  return;
2551
2551
  }
2552
2552
  if (M && r && w(M, r, I), v && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
2553
- E.current = null, K(I);
2553
+ E.current = null, G(I);
2554
2554
  }, Ra)), h && t) {
2555
2555
  const { actionName: at, arg: _t } = gt(h, I, {
2556
2556
  id: e,
2557
2557
  dataSet: i,
2558
2558
  dataSetField: r,
2559
- index: j
2559
+ index: K
2560
2560
  });
2561
2561
  C(t, X(at, _t));
2562
2562
  }
@@ -2567,16 +2567,16 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2567
2567
  r,
2568
2568
  w,
2569
2569
  v,
2570
- K,
2570
+ G,
2571
2571
  h,
2572
2572
  t,
2573
2573
  e,
2574
- j,
2574
+ K,
2575
2575
  C
2576
2576
  ]
2577
2577
  ), Ct = B(() => {
2578
- m && K(nt);
2579
- }, [m, K, nt]);
2578
+ m && G(nt);
2579
+ }, [m, G, nt]);
2580
2580
  bt(
2581
2581
  () => () => {
2582
2582
  E.current && clearTimeout(E.current);
@@ -2596,12 +2596,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2596
2596
  onChange: yt,
2597
2597
  onBlur: Ct,
2598
2598
  filterOption: mt,
2599
- loading: z,
2600
- status: V ? "error" : void 0,
2599
+ loading: V,
2600
+ status: j ? "error" : void 0,
2601
2601
  style: { width: "100%", ...rt.style }
2602
2602
  }
2603
2603
  ),
2604
- V && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: V })
2604
+ j && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: j })
2605
2605
  ] });
2606
2606
  }, Sc = ({
2607
2607
  id: e,
@@ -2729,12 +2729,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2729
2729
  }
2730
2730
  const _ = Array.isArray(E) ? E[0] : E;
2731
2731
  if (y && r && s(y, r, _), m && D(_), a && t) {
2732
- const { actionName: M, arg: j } = gt(a, _, {
2732
+ const { actionName: M, arg: K } = gt(a, _, {
2733
2733
  id: e,
2734
2734
  dataSet: i,
2735
2735
  dataSetField: r
2736
2736
  });
2737
- f(t, X(M, j));
2737
+ f(t, X(M, K));
2738
2738
  }
2739
2739
  },
2740
2740
  [v, y, r, s, m, D, a, t, e, f]
@@ -2811,8 +2811,8 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2811
2811
  }
2812
2812
  const _ = E || "";
2813
2813
  if (u && r && y(u, r, _), h && D(_), a && t) {
2814
- const { actionName: M, arg: j } = gt(a, _, { id: e, dataSet: i, dataSetField: r });
2815
- f(t, X(M, j));
2814
+ const { actionName: M, arg: K } = gt(a, _, { id: e, dataSet: i, dataSetField: r });
2815
+ f(t, X(M, K));
2816
2816
  }
2817
2817
  }, [c, u, r, y, h, D, a, t, e, f]), k = B(() => {
2818
2818
  p && D(A ? A.format(o) : "");
@@ -2868,8 +2868,8 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2868
2868
  develop: n
2869
2869
  }), S = B((w) => {
2870
2870
  if (!w || !Array.isArray(w) || w.length !== 2) return null;
2871
- const [E, _] = w, M = Ut.isDayjs(E) ? E : Ut(E, o), j = Ut.isDayjs(_) ? _ : Ut(_, o);
2872
- return M.isValid() && j.isValid() ? [M, j] : null;
2871
+ const [E, _] = w, M = Ut.isDayjs(E) ? E : Ut(E, o), K = Ut.isDayjs(_) ? _ : Ut(_, o);
2872
+ return M.isValid() && K.isValid() ? [M, K] : null;
2873
2873
  }, [o]), A = g(() => {
2874
2874
  const w = x ?? (u == null ? void 0 : u.value) ?? h ?? p;
2875
2875
  return S(w);
@@ -2932,16 +2932,16 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2932
2932
  remoteUrl: x,
2933
2933
  ...D
2934
2934
  }) => {
2935
- const T = O((L) => L.addCommand), S = O((L) => L.setDataSet), A = g(
2935
+ const T = O((z) => z.addCommand), S = O((z) => z.setDataSet), A = g(
2936
2936
  () => tt(t, i),
2937
2937
  [t, i]
2938
2938
  ), N = O(
2939
- (L) => {
2939
+ (z) => {
2940
2940
  var W;
2941
- return t && e ? ((W = L.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
2941
+ return t && e ? ((W = z.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
2942
2942
  }
2943
2943
  ), k = O(
2944
- (L) => A && r ? L.getDataSet(A, r) : void 0
2944
+ (z) => A && r ? z.getDataSet(A, r) : void 0
2945
2945
  ), { validate: C, help: w } = jt({
2946
2946
  rules: v,
2947
2947
  dataSet: i,
@@ -2956,27 +2956,27 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2956
2956
  labelKey: (o == null ? void 0 : o.labelKey) || "label",
2957
2957
  immediate: !!(o != null && o.url)
2958
2958
  }
2959
- ), j = g(() => N != null && N.options ? N.options : o != null && o.url && M.length > 0 ? M : y && _.length > 0 ? _ : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, M, y, _, a]), P = g(() => {
2960
- if (j.length === 0) return E;
2961
- const L = ie(j, E);
2962
- return (L == null ? void 0 : L.value) ?? E;
2963
- }, [E, j]), Y = g(
2959
+ ), K = g(() => N != null && N.options ? N.options : o != null && o.url && M.length > 0 ? M : y && _.length > 0 ? _ : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, M, y, _, a]), H = g(() => {
2960
+ if (K.length === 0) return E;
2961
+ const z = ie(K, E);
2962
+ return (z == null ? void 0 : z.value) ?? E;
2963
+ }, [E, K]), P = g(
2964
2964
  () => Jt(D, N ?? void 0),
2965
2965
  [D, N]
2966
2966
  ), $ = B(
2967
- (L) => {
2968
- const W = L.target.value;
2967
+ (z) => {
2968
+ const W = z.target.value;
2969
2969
  if (d) {
2970
2970
  d(W);
2971
2971
  return;
2972
2972
  }
2973
2973
  if (A && r && S(A, r, W), p && C(W), c && t) {
2974
- const { actionName: R, arg: z } = gt(c, W, {
2974
+ const { actionName: R, arg: V } = gt(c, W, {
2975
2975
  id: e,
2976
2976
  dataSet: i,
2977
2977
  dataSetField: r
2978
2978
  });
2979
- T(t, X(R, z));
2979
+ T(t, X(R, V));
2980
2980
  }
2981
2981
  },
2982
2982
  [
@@ -2992,24 +2992,24 @@ const hc = qt.memo(tr), xn = 200, yc = ({
2992
2992
  T
2993
2993
  ]
2994
2994
  ), q = B(() => {
2995
- h && C(P);
2996
- }, [h, C, P]);
2995
+ h && C(H);
2996
+ }, [h, C, H]);
2997
2997
  return /* @__PURE__ */ ot("div", { onBlur: q, children: [
2998
2998
  /* @__PURE__ */ b(
2999
2999
  Ve.Group,
3000
3000
  {
3001
- ...Y,
3002
- disabled: n ? !1 : Y.disabled,
3003
- value: P,
3001
+ ...P,
3002
+ disabled: n ? !1 : P.disabled,
3003
+ value: H,
3004
3004
  onChange: $,
3005
3005
  buttonStyle: (N == null ? void 0 : N.buttonStyle) ?? l,
3006
3006
  optionType: (N == null ? void 0 : N.optionType) ?? m,
3007
- children: m === "button" ? j.map((L) => /* @__PURE__ */ b(Ve.Button, { value: L.value, disabled: L.disabled, children: L.label }, L.value)) : /* @__PURE__ */ b(
3007
+ children: m === "button" ? K.map((z) => /* @__PURE__ */ b(Ve.Button, { value: z.value, disabled: z.disabled, children: z.label }, z.value)) : /* @__PURE__ */ b(
3008
3008
  Pt,
3009
3009
  {
3010
3010
  orientation: (N == null ? void 0 : N.direction) ?? u ?? "horizontal",
3011
3011
  wrap: !0,
3012
- children: j.map((L) => /* @__PURE__ */ b(Ve, { value: L.value, disabled: L.disabled, children: L.label }, L.value))
3012
+ children: K.map((z) => /* @__PURE__ */ b(Ve, { value: z.value, disabled: z.disabled, children: z.label }, z.value))
3013
3013
  }
3014
3014
  )
3015
3015
  }
@@ -3041,16 +3041,16 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3041
3041
  remoteUrl: T,
3042
3042
  ...S
3043
3043
  }) => {
3044
- const A = O((z) => z.addCommand), N = O((z) => z.setDataSet), k = g(
3044
+ const A = O((V) => V.addCommand), N = O((V) => V.setDataSet), k = g(
3045
3045
  () => tt(t, i),
3046
3046
  [t, i]
3047
3047
  ), C = O(
3048
- (z) => {
3049
- var K;
3050
- return t && e ? ((K = z.propsStore[`${t}_props`]) == null ? void 0 : K[e]) ?? null : null;
3048
+ (V) => {
3049
+ var G;
3050
+ return t && e ? ((G = V.propsStore[`${t}_props`]) == null ? void 0 : G[e]) ?? null : null;
3051
3051
  }
3052
3052
  ), w = O(
3053
- (z) => k && r ? z.getDataSet(k, r) : void 0
3053
+ (V) => k && r ? V.getDataSet(k, r) : void 0
3054
3054
  ), { validate: E, help: _ } = jt({
3055
3055
  rules: m,
3056
3056
  dataSet: i,
@@ -3058,55 +3058,55 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3058
3058
  sessionId: t,
3059
3059
  id: e,
3060
3060
  develop: n
3061
- }), { options: M } = we(x), { options: j } = un(
3061
+ }), { options: M } = we(x), { options: K } = un(
3062
3062
  o == null ? void 0 : o.url,
3063
3063
  {
3064
3064
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
3065
3065
  labelKey: (o == null ? void 0 : o.labelKey) || "label",
3066
3066
  immediate: !!(o != null && o.url)
3067
3067
  }
3068
- ), P = g(() => {
3068
+ ), H = g(() => {
3069
3069
  if (!c)
3070
3070
  return w !== void 0 ? !!w : (C == null ? void 0 : C.checked) !== void 0 ? C.checked : f ?? y;
3071
- }, [c, w, C == null ? void 0 : C.checked, f, y]), Y = g(() => C != null && C.options ? C.options : o != null && o.url && j.length > 0 ? j : x && M.length > 0 ? M : a, [C == null ? void 0 : C.options, o == null ? void 0 : o.url, j, x, M, a]), $ = g(() => {
3071
+ }, [c, w, C == null ? void 0 : C.checked, f, y]), P = g(() => C != null && C.options ? C.options : o != null && o.url && K.length > 0 ? K : x && M.length > 0 ? M : a, [C == null ? void 0 : C.options, o == null ? void 0 : o.url, K, x, M, a]), $ = g(() => {
3072
3072
  if (!c) return [];
3073
- let z = [];
3074
- return Array.isArray(w) ? z = w : Array.isArray(C == null ? void 0 : C.values) ? z = C.values : z = s || [], Y.length === 0 ? z : z.map((K) => {
3075
- var V;
3076
- return ((V = ie(Y, K)) == null ? void 0 : V.value) ?? K;
3073
+ let V = [];
3074
+ return Array.isArray(w) ? V = w : Array.isArray(C == null ? void 0 : C.values) ? V = C.values : V = s || [], P.length === 0 ? V : V.map((G) => {
3075
+ var j;
3076
+ return ((j = ie(P, G)) == null ? void 0 : j.value) ?? G;
3077
3077
  });
3078
- }, [c, w, C == null ? void 0 : C.values, s, Y]), q = g(
3078
+ }, [c, w, C == null ? void 0 : C.values, s, P]), q = g(
3079
3079
  () => Jt(S, C ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3080
3080
  [S, C]
3081
- ), L = B((z) => {
3082
- const K = z.target.checked;
3081
+ ), z = B((V) => {
3082
+ const G = V.target.checked;
3083
3083
  if (p) {
3084
- p(K);
3084
+ p(G);
3085
3085
  return;
3086
3086
  }
3087
- if (k && r && N(k, r, K), h && E(K), l && t) {
3088
- const { actionName: V, arg: U } = gt(l, K, { id: e, dataSet: i, dataSetField: r });
3089
- A(t, X(V, U));
3087
+ if (k && r && N(k, r, G), h && E(G), l && t) {
3088
+ const { actionName: j, arg: L } = gt(l, G, { id: e, dataSet: i, dataSetField: r });
3089
+ A(t, X(j, L));
3090
3090
  }
3091
- }, [p, k, r, N, h, E, l, t, e, A]), W = B((z) => {
3091
+ }, [p, k, r, N, h, E, l, t, e, A]), W = B((V) => {
3092
3092
  if (d) {
3093
- d(z);
3093
+ d(V);
3094
3094
  return;
3095
3095
  }
3096
- if (k && r && N(k, r, z), h && E(z), l && t) {
3097
- const { actionName: K, arg: V } = gt(l, z, { id: e, dataSet: i, dataSetField: r });
3098
- A(t, X(K, V));
3096
+ if (k && r && N(k, r, V), h && E(V), l && t) {
3097
+ const { actionName: G, arg: j } = gt(l, V, { id: e, dataSet: i, dataSetField: r });
3098
+ A(t, X(G, j));
3099
3099
  }
3100
3100
  }, [d, k, r, N, h, E, l, t, e, A]), R = B(() => {
3101
- v && E(c ? $ : P);
3102
- }, [v, E, c, $, P]);
3103
- return c && Y.length > 0 ? /* @__PURE__ */ ot("div", { onBlur: R, children: [
3101
+ v && E(c ? $ : H);
3102
+ }, [v, E, c, $, H]);
3103
+ return c && P.length > 0 ? /* @__PURE__ */ ot("div", { onBlur: R, children: [
3104
3104
  /* @__PURE__ */ b(ce.Group, { ...q, value: $, onChange: W, disabled: n ? !1 : q.disabled, children: /* @__PURE__ */ b(
3105
3105
  Pt,
3106
3106
  {
3107
3107
  direction: q.direction ?? D,
3108
3108
  wrap: !0,
3109
- children: Y.map((z) => /* @__PURE__ */ b(ce, { value: z.value, disabled: z.disabled, children: z.label }, z.value))
3109
+ children: P.map((V) => /* @__PURE__ */ b(ce, { value: V.value, disabled: V.disabled, children: V.label }, V.value))
3110
3110
  }
3111
3111
  ) }),
3112
3112
  _ && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: _ })
@@ -3116,8 +3116,8 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3116
3116
  {
3117
3117
  ...q,
3118
3118
  disabled: n ? !1 : q.disabled,
3119
- checked: P,
3120
- onChange: L,
3119
+ checked: H,
3120
+ onChange: z,
3121
3121
  children: u
3122
3122
  }
3123
3123
  ),
@@ -3273,20 +3273,20 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3273
3273
  develop: n
3274
3274
  }), _ = g(() => (a == null ? void 0 : a.url) && D.length > 0, [a == null ? void 0 : a.url, D.length]), M = g(() => {
3275
3275
  let $ = k ?? d ?? p ?? [];
3276
- return typeof $ == "string" ? _ ? An($).map((L) => Ka(L, D)).filter((L) => Array.isArray(L) && L.length > 0) : [$] : Cn($) && _ ? $.map((L) => An(L)).filter((L) => Array.isArray(L) && L.length > 0) : Tn($) && _ ? $.filter((q) => Array.isArray(q) && q.length > 0) : $;
3277
- }, [k, d, p, _, D]), j = g(() => a != null && a.url && D.length > 0 ? D : h || [], [a == null ? void 0 : a.url, D, h]);
3276
+ return typeof $ == "string" ? _ ? An($).map((z) => Ka(z, D)).filter((z) => Array.isArray(z) && z.length > 0) : [$] : Cn($) && _ ? $.map((z) => An(z)).filter((z) => Array.isArray(z) && z.length > 0) : Tn($) && _ ? $.filter((q) => Array.isArray(q) && q.length > 0) : $;
3277
+ }, [k, d, p, _, D]), K = g(() => a != null && a.url && D.length > 0 ? D : h || [], [a == null ? void 0 : a.url, D, h]);
3278
3278
  bt(() => {
3279
3279
  (async () => {
3280
3280
  if (a != null && a.url) {
3281
3281
  A(!0);
3282
3282
  try {
3283
- const q = await ne({ url: a.url, method: "GET" }), L = Array.isArray(q) ? q : q != null && q.data ? Array.isArray(q.data) ? q.data : q.data.list || q.data.records || [] : [], W = a.codeKey || "value", R = a.labelKey || "label", z = a.childrenKey || "children", K = a.maxLevel || 5, V = er(L, {
3283
+ const q = await ne({ url: a.url, method: "GET" }), z = Array.isArray(q) ? q : q != null && q.data ? Array.isArray(q.data) ? q.data : q.data.list || q.data.records || [] : [], W = a.codeKey || "value", R = a.labelKey || "label", V = a.childrenKey || "children", G = a.maxLevel || 5, j = er(z, {
3284
3284
  codeKey: W,
3285
3285
  labelKey: R,
3286
- childrenKey: z,
3287
- maxLevel: K
3286
+ childrenKey: V,
3287
+ maxLevel: G
3288
3288
  });
3289
- T(V);
3289
+ T(j);
3290
3290
  } catch (q) {
3291
3291
  console.error("Failed to load remote options:", q), T([]);
3292
3292
  } finally {
@@ -3295,14 +3295,14 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3295
3295
  }
3296
3296
  })();
3297
3297
  }, [a == null ? void 0 : a.url, a == null ? void 0 : a.codeKey, a == null ? void 0 : a.labelKey, a == null ? void 0 : a.childrenKey, a == null ? void 0 : a.maxLevel]);
3298
- const P = B(
3298
+ const H = B(
3299
3299
  ($, q) => {
3300
3300
  if (v) {
3301
3301
  v($, q);
3302
3302
  return;
3303
3303
  }
3304
- let L = $;
3305
- if (Cn($) && _ ? L = String($[$.length - 1] || "") : Tn($) && _ && (L = $.map((W) => W.join(","))), N && r && u(N, r, L), l && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
3304
+ let z = $;
3305
+ if (Cn($) && _ ? z = String($[$.length - 1] || "") : Tn($) && _ && (z = $.map((W) => W.join(","))), N && r && u(N, r, z), l && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
3306
3306
  x.current = null, C($);
3307
3307
  }, Ba)), m && t) {
3308
3308
  const { actionName: W, arg: R } = gt(m, $, {
@@ -3326,7 +3326,7 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3326
3326
  y,
3327
3327
  _
3328
3328
  ]
3329
- ), Y = B(() => {
3329
+ ), P = B(() => {
3330
3330
  c && C(M);
3331
3331
  }, [c, C, M]);
3332
3332
  return bt(
@@ -3342,9 +3342,9 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3342
3342
  disabled: n ? !1 : s.disabled,
3343
3343
  open: n ? !1 : void 0,
3344
3344
  value: M,
3345
- options: j,
3346
- onChange: P,
3347
- onBlur: Y,
3345
+ options: K,
3346
+ onChange: H,
3347
+ onBlur: P,
3348
3348
  loading: S,
3349
3349
  status: E,
3350
3350
  style: { width: "100%", ...s.style }
@@ -3378,8 +3378,8 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3378
3378
  [t, i]
3379
3379
  ), A = O(
3380
3380
  (q) => {
3381
- var L;
3382
- return t && e ? ((L = q.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
3381
+ var z;
3382
+ return t && e ? ((z = q.propsStore[`${t}_props`]) == null ? void 0 : z[e]) ?? null : null;
3383
3383
  }
3384
3384
  ), N = O(
3385
3385
  (q) => S && r ? q.getDataSet(S, r) : void 0
@@ -3397,37 +3397,37 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3397
3397
  () => Jt(x, A ?? void 0),
3398
3398
  [x, A]
3399
3399
  ), _ = B(
3400
- (q, L, W) => {
3400
+ (q, z, W) => {
3401
3401
  if (o) {
3402
- o(q, L, W);
3402
+ o(q, z, W);
3403
3403
  return;
3404
3404
  }
3405
3405
  if (S && r && T(S, r, q), y && k(q), a && t) {
3406
- const { actionName: R, arg: z } = gt(a, q, {
3406
+ const { actionName: R, arg: V } = gt(a, q, {
3407
3407
  id: e,
3408
3408
  dataSet: i,
3409
3409
  dataSetField: r
3410
3410
  });
3411
- D(t, X(R, z));
3411
+ D(t, X(R, V));
3412
3412
  }
3413
3413
  },
3414
3414
  [o, S, r, T, y, k, a, t, e, D]
3415
3415
  ), M = B(() => {
3416
3416
  u && k(w);
3417
- }, [u, k, w]), j = g(() => {
3417
+ }, [u, k, w]), K = g(() => {
3418
3418
  if (!f) return;
3419
3419
  const q = {};
3420
- return Object.entries(f).forEach(([L, W]) => {
3421
- W !== "" && W !== void 0 && W !== null && (q[L] = W);
3420
+ return Object.entries(f).forEach(([z, W]) => {
3421
+ W !== "" && W !== void 0 && W !== null && (q[z] = W);
3422
3422
  }), Object.keys(q).length > 0 ? q : void 0;
3423
- }, [f]), P = g(() => {
3424
- if (j)
3423
+ }, [f]), H = g(() => {
3424
+ if (K)
3425
3425
  return {
3426
3426
  components: {
3427
- TreeSelect: j
3427
+ TreeSelect: K
3428
3428
  }
3429
3429
  };
3430
- }, [j]), Y = C ? "error" : void 0, $ = /* @__PURE__ */ ot("div", { onBlur: M, children: [
3430
+ }, [K]), P = C ? "error" : void 0, $ = /* @__PURE__ */ ot("div", { onBlur: M, children: [
3431
3431
  /* @__PURE__ */ b(
3432
3432
  vr,
3433
3433
  {
@@ -3440,12 +3440,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3440
3440
  style: { width: "100%", ...E.style },
3441
3441
  styles: p,
3442
3442
  classNames: d,
3443
- status: Y
3443
+ status: P
3444
3444
  }
3445
3445
  ),
3446
3446
  C && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
3447
3447
  ] });
3448
- return P ? /* @__PURE__ */ b(Mt, { theme: P, children: $ }) : $;
3448
+ return H ? /* @__PURE__ */ b(Mt, { theme: H, children: $ }) : $;
3449
3449
  }, _c = ({
3450
3450
  id: e,
3451
3451
  sessionId: t,
@@ -3465,16 +3465,16 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3465
3465
  action: s,
3466
3466
  ...y
3467
3467
  }) => {
3468
- const u = Re(i, r, t), x = u.dataSet, D = u.dataSetField, T = u.sessionId, S = O((G) => G.addCommand), A = O((G) => G.setDataSet), N = g(
3468
+ const u = Re(i, r, t), x = u.dataSet, D = u.dataSetField, T = u.sessionId, S = O((Y) => Y.addCommand), A = O((Y) => Y.setDataSet), N = g(
3469
3469
  () => tt(T, x),
3470
3470
  [T, x]
3471
3471
  ), k = O(
3472
- (G) => {
3473
- var H;
3474
- return T && e ? ((H = G.propsStore[`${T}_props`]) == null ? void 0 : H[e]) ?? null : null;
3472
+ (Y) => {
3473
+ var U;
3474
+ return T && e ? ((U = Y.propsStore[`${T}_props`]) == null ? void 0 : U[e]) ?? null : null;
3475
3475
  }
3476
3476
  ), C = O(
3477
- (G) => N && D ? G.getDataSet(N, D) : void 0
3477
+ (Y) => N && D ? Y.getDataSet(N, D) : void 0
3478
3478
  ), { validate: w, help: E } = jt({
3479
3479
  rules: c,
3480
3480
  dataSet: x,
@@ -3482,12 +3482,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3482
3482
  sessionId: T,
3483
3483
  id: e,
3484
3484
  develop: n
3485
- }), _ = B((G) => G.map((H) => {
3485
+ }), _ = B((Y) => Y.map((U) => {
3486
3486
  var et;
3487
- return ((et = H == null ? void 0 : H.response) == null ? void 0 : et.src) ?? (H == null ? void 0 : H.src) ?? (H == null ? void 0 : H.url) ?? (H == null ? void 0 : H.thumbUrl) ?? "";
3488
- }).filter((H) => H && typeof H == "string"), []), M = B((G) => {
3489
- const H = Yt().viewRes, et = (Q) => (H ? H(Q) : Q) || Q;
3490
- return G.map((Q, lt) => {
3487
+ return ((et = U == null ? void 0 : U.response) == null ? void 0 : et.src) ?? (U == null ? void 0 : U.src) ?? (U == null ? void 0 : U.url) ?? (U == null ? void 0 : U.thumbUrl) ?? "";
3488
+ }).filter((U) => U && typeof U == "string"), []), M = B((Y) => {
3489
+ const U = Yt().viewRes, et = (Q) => (U ? U(Q) : Q) || Q;
3490
+ return Y.map((Q, lt) => {
3491
3491
  const ft = et(Q);
3492
3492
  return {
3493
3493
  uid: `src-${lt}-${Q}`,
@@ -3498,9 +3498,9 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3498
3498
  response: { src: Q }
3499
3499
  };
3500
3500
  });
3501
- }, []), j = B((G) => {
3502
- const H = Yt().viewRes, et = (Q) => (Q && H ? H(Q) : Q) || Q;
3503
- return G.map((Q) => {
3501
+ }, []), K = B((Y) => {
3502
+ const U = Yt().viewRes, et = (Q) => (Q && U ? U(Q) : Q) || Q;
3503
+ return Y.map((Q) => {
3504
3504
  var F;
3505
3505
  const lt = ((F = Q == null ? void 0 : Q.response) == null ? void 0 : F.src) ?? (Q == null ? void 0 : Q.src) ?? (Q == null ? void 0 : Q.url) ?? (Q == null ? void 0 : Q.thumbUrl) ?? "", ft = typeof lt == "string" ? et(lt) : lt, xt = {};
3506
3506
  for (const ht of Object.keys(Q)) {
@@ -3509,45 +3509,45 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3509
3509
  }
3510
3510
  return ft && typeof ft == "string" && (xt.url = ft, xt.thumbUrl = ft), xt;
3511
3511
  });
3512
- }, []), [P, Y] = dt(null), $ = g(() => {
3513
- const G = C ?? (k == null ? void 0 : k.fileList) ?? h;
3514
- if (G != null) {
3515
- if (typeof G == "string" && G) return M([G]);
3516
- if (Array.isArray(G))
3517
- return G.length > 0 && typeof G[0] == "string" ? M(G) : j(G);
3518
- }
3519
- }, [C, k == null ? void 0 : k.fileList, h, M, j]), q = P ?? $, L = g(
3512
+ }, []), [H, P] = dt(null), $ = g(() => {
3513
+ const Y = C ?? (k == null ? void 0 : k.fileList) ?? h;
3514
+ if (Y != null) {
3515
+ if (typeof Y == "string" && Y) return M([Y]);
3516
+ if (Array.isArray(Y))
3517
+ return Y.length > 0 && typeof Y[0] == "string" ? M(Y) : K(Y);
3518
+ }
3519
+ }, [C, k == null ? void 0 : k.fileList, h, M, K]), q = H ?? $, z = g(
3520
3520
  () => Jt(y, k ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
3521
3521
  [y, k]
3522
- ), W = B((G) => G.size / 1024 / 1024 < f ? !0 : (Ce.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = B(async (G) => {
3523
- const { file: H, onSuccess: et, onError: Q, onProgress: lt } = G;
3522
+ ), W = B((Y) => Y.size / 1024 / 1024 < f ? !0 : (Ce.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = B(async (Y) => {
3523
+ const { file: U, onSuccess: et, onError: Q, onProgress: lt } = Y;
3524
3524
  if (Yt().upload)
3525
3525
  try {
3526
3526
  lt == null || lt({ percent: 30 });
3527
- const xt = await Xn(H, {
3527
+ const xt = await Xn(U, {
3528
3528
  url: d,
3529
3529
  headers: {
3530
3530
  Authorization: rn() ? `Bearer ${rn()}` : ""
3531
3531
  }
3532
3532
  });
3533
- lt == null || lt({ percent: 100 }), et == null || et(xt, H);
3533
+ lt == null || lt({ percent: 100 }), et == null || et(xt, U);
3534
3534
  } catch (xt) {
3535
3535
  Q == null || Q(xt), Ce.error("上传失败");
3536
3536
  }
3537
3537
  else
3538
3538
  Q == null || Q(new Error("Upload handler not configured")), Ce.warning("上传功能未配置");
3539
- }, [d]), z = B(
3540
- (G) => {
3539
+ }, [d]), V = B(
3540
+ (Y) => {
3541
3541
  if (v) {
3542
- v(G);
3542
+ v(Y);
3543
3543
  return;
3544
3544
  }
3545
- const H = Array.isArray(G.fileList) ? j(G.fileList) : G.fileList, et = Array.isArray(H) ? _(H) : [], Q = Array.isArray(H) && H.some((ft) => (ft == null ? void 0 : ft.status) === "uploading");
3546
- N && D && (et.length > 0 || !Array.isArray(H) || H.length === 0) ? (A(N, D, et), Y(null)) : Q ? Y(H) : H.length === 0 && Y(null), m && w(H), a && T && S(
3545
+ const U = Array.isArray(Y.fileList) ? K(Y.fileList) : Y.fileList, et = Array.isArray(U) ? _(U) : [], Q = Array.isArray(U) && U.some((ft) => (ft == null ? void 0 : ft.status) === "uploading");
3546
+ N && D && (et.length > 0 || !Array.isArray(U) || U.length === 0) ? (A(N, D, et), P(null)) : Q ? P(U) : U.length === 0 && P(null), m && w(U), a && T && S(
3547
3547
  T,
3548
3548
  X(a, {
3549
- file: G.file,
3550
- fileList: H,
3549
+ file: Y.file,
3550
+ fileList: U,
3551
3551
  src: et
3552
3552
  })
3553
3553
  );
@@ -3562,46 +3562,46 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3562
3562
  a,
3563
3563
  T,
3564
3564
  S,
3565
- j,
3565
+ K,
3566
3566
  _
3567
3567
  ]
3568
- ), K = B(() => {
3568
+ ), G = B(() => {
3569
3569
  l && w(q);
3570
- }, [l, w, q]), V = B((G) => {
3570
+ }, [l, w, q]), j = B((Y) => {
3571
3571
  var ft;
3572
- const H = G.url || G.thumbUrl;
3573
- if (!H) return "";
3574
- const et = ((ft = G.response) == null ? void 0 : ft.src) ?? (typeof H == "string" ? H : ""), Q = Yt().viewRes, lt = et && Q ? Q(et) : H;
3572
+ const U = Y.url || Y.thumbUrl;
3573
+ if (!U) return "";
3574
+ const et = ((ft = Y.response) == null ? void 0 : ft.src) ?? (typeof U == "string" ? U : ""), Q = Yt().viewRes, lt = et && Q ? Q(et) : U;
3575
3575
  return String(lt).replace(/([?&])download=1(&|$)/, (xt, F, ht) => ht ? F : "");
3576
- }, []), U = B((G) => {
3576
+ }, []), L = B((Y) => {
3577
3577
  var Q, lt;
3578
- const H = ((Q = G.response) == null ? void 0 : Q.src) ?? G.name ?? "", et = ((lt = String(H).split(".").pop()) == null ? void 0 : lt.toLowerCase()) || "";
3579
- return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(V(G));
3580
- }, [V]), [rt, it] = dt({
3578
+ const U = ((Q = Y.response) == null ? void 0 : Q.src) ?? Y.name ?? "", et = ((lt = String(U).split(".").pop()) == null ? void 0 : lt.toLowerCase()) || "";
3579
+ return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(j(Y));
3580
+ }, [j]), [rt, it] = dt({
3581
3581
  url: "",
3582
3582
  name: "",
3583
3583
  urls: [],
3584
3584
  current: 0,
3585
3585
  open: !1
3586
- }), nt = B((G) => {
3587
- const H = V(G);
3588
- if (H)
3589
- if (U(G) && (q != null && q.length)) {
3590
- const et = q.filter((ft) => U(ft)), Q = et.map((ft) => V(ft)).filter(Boolean), lt = et.findIndex((ft) => (ft.uid || ft.url) === (G.uid || G.url));
3591
- it({ url: H, name: G.name, urls: Q, current: lt >= 0 ? lt : 0, open: !0 });
3592
- } else U(G) || window.open(H, "_blank");
3593
- }, [V, U, q]), Ct = !!Yt().upload && !s, mt = L, I = mt.buttonText ?? o, st = mt.listType ?? y.listType, at = mt.maxCount, _t = (q == null ? void 0 : q.length) ?? 0, Ot = typeof at == "number" && _t >= at, Bt = B(
3594
- (G) => Ot ? (Ce.warning(`最多只能上传 ${at} 个文件`), !1) : W(G),
3586
+ }), nt = B((Y) => {
3587
+ const U = j(Y);
3588
+ if (U)
3589
+ if (L(Y) && (q != null && q.length)) {
3590
+ const et = q.filter((ft) => L(ft)), Q = et.map((ft) => j(ft)).filter(Boolean), lt = et.findIndex((ft) => (ft.uid || ft.url) === (Y.uid || Y.url));
3591
+ it({ url: U, name: Y.name, urls: Q, current: lt >= 0 ? lt : 0, open: !0 });
3592
+ } else L(Y) || window.open(U, "_blank");
3593
+ }, [j, L, q]), Ct = !!Yt().upload && !s, mt = z, I = mt.buttonText ?? o, st = mt.listType ?? y.listType, at = mt.maxCount, _t = (q == null ? void 0 : q.length) ?? 0, Ot = typeof at == "number" && _t >= at, Bt = B(
3594
+ (Y) => Ot ? (Ce.warning(`最多只能上传 ${at} 个文件`), !1) : W(Y),
3595
3595
  [Ot, at, W]
3596
3596
  );
3597
- return /* @__PURE__ */ ot("div", { onBlur: K, children: [
3597
+ return /* @__PURE__ */ ot("div", { onBlur: G, children: [
3598
3598
  /* @__PURE__ */ b(
3599
3599
  br,
3600
3600
  {
3601
- ...L,
3602
- disabled: n ? !1 : L.disabled,
3601
+ ...z,
3602
+ disabled: n ? !1 : z.disabled,
3603
3603
  fileList: q,
3604
- onChange: z,
3604
+ onChange: V,
3605
3605
  onPreview: nt,
3606
3606
  beforeUpload: Bt,
3607
3607
  customRequest: Ct ? R : void 0,
@@ -3619,19 +3619,19 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3619
3619
  {
3620
3620
  preview: {
3621
3621
  current: rt.current,
3622
- onOpenChange: (G) => !G && it((H) => ({ ...H, open: !1 }))
3622
+ onOpenChange: (Y) => !Y && it((U) => ({ ...U, open: !1 }))
3623
3623
  },
3624
- children: rt.urls.map((G, H) => /* @__PURE__ */ b(
3624
+ children: rt.urls.map((Y, U) => /* @__PURE__ */ b(
3625
3625
  Qt,
3626
3626
  {
3627
- src: G,
3627
+ src: Y,
3628
3628
  style: { width: 1, height: 1 },
3629
3629
  preview: {
3630
- open: rt.open && rt.current === H,
3630
+ open: rt.open && rt.current === U,
3631
3631
  onOpenChange: (et) => !et && it((Q) => ({ ...Q, open: !1 }))
3632
3632
  }
3633
3633
  },
3634
- H
3634
+ U
3635
3635
  ))
3636
3636
  }
3637
3637
  ) : /* @__PURE__ */ b(
@@ -3642,7 +3642,7 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3642
3642
  style: { width: 1, height: 1 },
3643
3643
  preview: {
3644
3644
  open: rt.open,
3645
- onOpenChange: (G) => !G && it((H) => ({ ...H, open: !1 }))
3645
+ onOpenChange: (Y) => !Y && it((U) => ({ ...U, open: !1 }))
3646
3646
  }
3647
3647
  }
3648
3648
  ) })
@@ -3666,18 +3666,18 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3666
3666
  searchAction: f,
3667
3667
  ...s
3668
3668
  }) => {
3669
- const y = O((j) => j.addCommand), u = O((j) => j.getDataSet), x = O((j) => j.setDataSet), D = g(
3669
+ const y = O((K) => K.addCommand), u = O((K) => K.getDataSet), x = O((K) => K.setDataSet), D = g(
3670
3670
  () => tt(t, i),
3671
3671
  [t, i]
3672
3672
  ), [T, S] = dt(h || []), [, A] = dt(!1), N = qt.useRef(void 0), { get: k } = ea(), C = g(() => {
3673
3673
  if (D && r) return u(D, r);
3674
- }, [D, r, u]), w = g(() => C ?? m ?? v, [C, m, v]), E = B((j) => {
3674
+ }, [D, r, u]), w = g(() => C ?? m ?? v, [C, m, v]), E = B((K) => {
3675
3675
  if (!(d != null && d.queryApi)) {
3676
3676
  h && S(
3677
3677
  h.filter(
3678
- (P) => {
3679
- var Y, $;
3680
- return ((Y = P.value) == null ? void 0 : Y.toString().toLowerCase().includes(j.toLowerCase())) || (($ = P.label) == null ? void 0 : $.toString().toLowerCase().includes(j.toLowerCase()));
3678
+ (H) => {
3679
+ var P, $;
3680
+ return ((P = H.value) == null ? void 0 : P.toString().toLowerCase().includes(K.toLowerCase())) || (($ = H.label) == null ? void 0 : $.toString().toLowerCase().includes(K.toLowerCase()));
3681
3681
  }
3682
3682
  )
3683
3683
  );
@@ -3687,21 +3687,21 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3687
3687
  if (d != null && d.queryApi) {
3688
3688
  A(!0);
3689
3689
  try {
3690
- const { queryApi: P, keyWordParamName: Y = "keyword", valueKey: $ = "value", labelKey: q = "label", fixedParams: L = [] } = d, W = {};
3691
- Y && (W[Y] = j), Array.isArray(L) && L.forEach((V) => {
3692
- V.key && (W[V.key] = V.value);
3690
+ const { queryApi: H, keyWordParamName: P = "keyword", valueKey: $ = "value", labelKey: q = "label", fixedParams: z = [] } = d, W = {};
3691
+ P && (W[P] = K), Array.isArray(z) && z.forEach((j) => {
3692
+ j.key && (W[j.key] = j.value);
3693
3693
  });
3694
- const R = await k(P, W);
3695
- let z = [];
3696
- Array.isArray(R) ? z = R : R && Array.isArray(R.data) ? z = R.data : R && R.data && Array.isArray(R.data.records) ? z = R.data.records : R && R.result && Array.isArray(R.result) && (z = R.result);
3697
- const K = z.map((V) => ({
3698
- value: V[$],
3699
- label: V[q] || V[$],
3700
- ...V
3694
+ const R = await k(H, W);
3695
+ let V = [];
3696
+ Array.isArray(R) ? V = R : R && Array.isArray(R.data) ? V = R.data : R && R.data && Array.isArray(R.data.records) ? V = R.data.records : R && R.result && Array.isArray(R.result) && (V = R.result);
3697
+ const G = V.map((j) => ({
3698
+ value: j[$],
3699
+ label: j[q] || j[$],
3700
+ ...j
3701
3701
  }));
3702
- S(K);
3703
- } catch (P) {
3704
- console.error("Failed to fetch remote options:", P), S([]);
3702
+ S(G);
3703
+ } catch (H) {
3704
+ console.error("Failed to fetch remote options:", H), S([]);
3705
3705
  } finally {
3706
3706
  A(!1);
3707
3707
  }
@@ -3711,21 +3711,21 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3711
3711
  qt.useEffect(() => {
3712
3712
  !(d != null && d.queryApi) && h && S(h);
3713
3713
  }, [h, d == null ? void 0 : d.queryApi]);
3714
- const _ = B((j) => {
3714
+ const _ = B((K) => {
3715
3715
  if (c) {
3716
- c(j);
3716
+ c(K);
3717
3717
  return;
3718
3718
  }
3719
- if (D && r && x(D, r, j), a && t) {
3720
- const { actionName: P, arg: Y } = gt(a, j, { id: e, dataSet: i, dataSetField: r });
3721
- y(t, X(P, Y));
3719
+ if (D && r && x(D, r, K), a && t) {
3720
+ const { actionName: H, arg: P } = gt(a, K, { id: e, dataSet: i, dataSetField: r });
3721
+ y(t, X(H, P));
3722
3722
  }
3723
- }, [c, D, r, x, a, t, e, y]), M = B((j, P) => {
3723
+ }, [c, D, r, x, a, t, e, y]), M = B((K, H) => {
3724
3724
  if (l) {
3725
- l(j, P);
3725
+ l(K, H);
3726
3726
  return;
3727
3727
  }
3728
- o && t && y(t, X(o, { value: j, option: P }));
3728
+ o && t && y(t, X(o, { value: K, option: H }));
3729
3729
  }, [l, o, t, y]);
3730
3730
  return /* @__PURE__ */ b(
3731
3731
  Sr,
@@ -3826,26 +3826,26 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3826
3826
  token: w,
3827
3827
  ...E
3828
3828
  }) => {
3829
- const _ = O((I) => I.addCommand), M = O((I) => I.getDataSet), j = O((I) => I.setDataSet), P = g(
3829
+ const _ = O((I) => I.addCommand), M = O((I) => I.getDataSet), K = O((I) => I.setDataSet), H = g(
3830
3830
  () => tt(t, i),
3831
3831
  [t, i]
3832
- ), Y = g(() => Wt(C, {}), [C]), $ = g(() => Wt(w, {}), [w]), q = g(() => Wt(f, ["源列表", "目标列表"]), [f]), L = g(() => Wt(s, [">", "<"]), [s]), W = g(() => Wt(y, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [y]), R = g(() => Wt(p, !1), [p]), z = g(() => {
3833
- if (P && r) {
3834
- const I = M(P, r);
3832
+ ), P = g(() => Wt(C, {}), [C]), $ = g(() => Wt(w, {}), [w]), q = g(() => Wt(f, ["源列表", "目标列表"]), [f]), z = g(() => Wt(s, [">", "<"]), [s]), W = g(() => Wt(y, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [y]), R = g(() => Wt(p, !1), [p]), V = g(() => {
3833
+ if (H && r) {
3834
+ const I = M(H, r);
3835
3835
  if (Array.isArray(I)) return I;
3836
3836
  }
3837
- }, [P, r, M]), K = g(() => {
3838
- if (P && r) {
3839
- const I = M(P, `${r}.dataSource`);
3837
+ }, [H, r, M]), G = g(() => {
3838
+ if (H && r) {
3839
+ const I = M(H, `${r}.dataSource`);
3840
3840
  if (Array.isArray(I)) return I;
3841
3841
  }
3842
- }, [P, r, M]), V = g(() => n ? K ?? Wt(a, []) : P ? K ?? [] : Wt(a, []), [n, P, K, a]), U = g(() => n ? z ?? Wt(o, []) : P ? z ?? [] : Wt(o, []), [n, P, z, o]), rt = g(() => Wt(c, []), [c]), it = B((I, st, at) => {
3842
+ }, [H, r, M]), j = g(() => n ? G ?? Wt(a, []) : H ? G ?? [] : Wt(a, []), [n, H, G, a]), L = g(() => n ? V ?? Wt(o, []) : H ? V ?? [] : Wt(o, []), [n, H, V, o]), rt = g(() => Wt(c, []), [c]), it = B((I, st, at) => {
3843
3843
  if (S) {
3844
3844
  S(I, st, at);
3845
3845
  return;
3846
3846
  }
3847
- P && r && j(P, r, I), u && t && _(t, X(u, { targetKeys: I, direction: st, moveKeys: at }));
3848
- }, [S, P, r, j, u, t, _]), nt = B((I, st) => {
3847
+ H && r && K(H, r, I), u && t && _(t, X(u, { targetKeys: I, direction: st, moveKeys: at }));
3848
+ }, [S, H, r, K, u, t, _]), nt = B((I, st) => {
3849
3849
  if (A) {
3850
3850
  A(I, st);
3851
3851
  return;
@@ -3866,8 +3866,8 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3866
3866
  }, [k, T, t, _]), mt = /* @__PURE__ */ b(
3867
3867
  wr,
3868
3868
  {
3869
- dataSource: V,
3870
- targetKeys: U,
3869
+ dataSource: j,
3870
+ targetKeys: L,
3871
3871
  selectedKeys: rt,
3872
3872
  disabled: l,
3873
3873
  showSearch: m,
@@ -3876,13 +3876,13 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3876
3876
  pagination: R,
3877
3877
  status: d || void 0,
3878
3878
  titles: q,
3879
- actions: L,
3879
+ actions: z,
3880
3880
  locale: W,
3881
3881
  onChange: it,
3882
3882
  onSelectChange: nt,
3883
3883
  onSearch: yt,
3884
3884
  onScroll: Ct,
3885
- styles: Y,
3885
+ styles: P,
3886
3886
  render: (I) => I.title,
3887
3887
  ...E
3888
3888
  }
@@ -3939,12 +3939,12 @@ const hc = qt.memo(tr), xn = 200, yc = ({
3939
3939
  if (typeof M == "string") return M;
3940
3940
  }
3941
3941
  }, [S, r, D]) ?? o, E = B((M) => {
3942
- const j = String(M);
3942
+ const K = String(M);
3943
3943
  if (f) {
3944
- f(j);
3944
+ f(K);
3945
3945
  return;
3946
3946
  }
3947
- S && r && T(S, r, j), d && t && x(t, X(d, { value: j }));
3947
+ S && r && T(S, r, K), d && t && x(t, X(d, { value: K }));
3948
3948
  }, [f, S, r, T, d, t, x]), _ = /* @__PURE__ */ b(
3949
3949
  Dr,
3950
3950
  {
@@ -4179,75 +4179,75 @@ const Ue = 420, On = 440, Xa = ({
4179
4179
  },
4180
4180
  [v]
4181
4181
  ), N = B(
4182
- (R, z, K, V) => kn(R, z, K ?? y, V ?? x),
4182
+ (R, V, G, j) => kn(R, V, G ?? y, j ?? x),
4183
4183
  [y, x]
4184
4184
  ), k = B(() => {
4185
4185
  d(r);
4186
- const R = a.map((z) => ({ ...z }));
4186
+ const R = a.map((V) => ({ ...V }));
4187
4187
  s(R), u(c), D(m), A(kn(r, R, c, m));
4188
4188
  }, [r, a, c, m, A]), C = B(
4189
4189
  (R) => {
4190
- s((z) => {
4191
- const K = z.map((V) => V.key === R ? { ...V, visible: !V.visible } : V);
4192
- return A(N(p, K)), K;
4190
+ s((V) => {
4191
+ const G = V.map((j) => j.key === R ? { ...j, visible: !j.visible } : j);
4192
+ return A(N(p, G)), G;
4193
4193
  });
4194
4194
  },
4195
4195
  [p, N, A]
4196
4196
  ), w = B(
4197
- (R, z) => {
4198
- s((K) => {
4199
- const V = K.map((U) => U.key === R ? { ...U, fixed: z } : U);
4200
- return A(N(p, V)), V;
4197
+ (R, V) => {
4198
+ s((G) => {
4199
+ const j = G.map((L) => L.key === R ? { ...L, fixed: V } : L);
4200
+ return A(N(p, j)), j;
4201
4201
  });
4202
4202
  },
4203
4203
  [p, N, A]
4204
4204
  ), E = B(
4205
- (R, z) => {
4206
- s((K) => {
4207
- const V = K.map((U) => U.key === R ? { ...U, width: z } : U);
4208
- return A(N(p, V)), V;
4205
+ (R, V) => {
4206
+ s((G) => {
4207
+ const j = G.map((L) => L.key === R ? { ...L, width: V } : L);
4208
+ return A(N(p, j)), j;
4209
4209
  });
4210
4210
  },
4211
4211
  [p, N, A]
4212
4212
  ), _ = B(
4213
- (R, z) => {
4214
- s((K) => {
4215
- const V = K.find((nt) => nt.key === R);
4216
- if (!V) return K;
4217
- const U = typeof V.width == "number" ? V.width : 80, rt = Math.max(He, U + z), it = K.map((nt) => nt.key === R ? { ...nt, width: rt } : nt);
4213
+ (R, V) => {
4214
+ s((G) => {
4215
+ const j = G.find((nt) => nt.key === R);
4216
+ if (!j) return G;
4217
+ const L = typeof j.width == "number" ? j.width : 80, rt = Math.max(He, L + V), it = G.map((nt) => nt.key === R ? { ...nt, width: rt } : nt);
4218
4218
  return A(N(p, it)), it;
4219
4219
  });
4220
4220
  },
4221
4221
  [p, N, A]
4222
4222
  ), M = B(
4223
- (R, z) => {
4224
- if (z < 0 || z >= f.length) return;
4225
- const K = [...f], [V] = K.splice(R, 1);
4226
- K.splice(z, 0, V), s(K), A(N(p, K));
4223
+ (R, V) => {
4224
+ if (V < 0 || V >= f.length) return;
4225
+ const G = [...f], [j] = G.splice(R, 1);
4226
+ G.splice(V, 0, j), s(G), A(N(p, G));
4227
4227
  },
4228
4228
  [f, p, N, A]
4229
- ), j = B(
4229
+ ), K = B(
4230
4230
  (R) => {
4231
4231
  d(R), A(N(R, f));
4232
4232
  },
4233
4233
  [f, N, A]
4234
- ), P = B(
4234
+ ), H = B(
4235
4235
  (R) => {
4236
4236
  u(R), A(N(p, f, R, x));
4237
4237
  },
4238
4238
  [p, f, x, N, A]
4239
- ), Y = B(
4239
+ ), P = B(
4240
4240
  (R) => {
4241
4241
  D(R), A(N(p, f, y, R));
4242
4242
  },
4243
4243
  [p, f, y, N, A]
4244
- ), $ = (R) => (z) => {
4245
- S(R), z.dataTransfer.effectAllowed = "move", z.dataTransfer.setData("text/plain", String(R));
4246
- }, q = (R) => (z) => {
4247
- z.preventDefault(), z.dataTransfer.dropEffect = "move", !(T === null || T === R) && (M(T, R), S(R));
4248
- }, L = () => S(null), W = t != null ? (() => {
4249
- let R = t.y, z = t.x;
4250
- return typeof window < "u" && (z + Ue > window.innerWidth && (z = window.innerWidth - Ue - 16), z < 16 && (z = 16), R + On > window.innerHeight && (R = Math.max(16, window.innerHeight - On - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: z };
4244
+ ), $ = (R) => (V) => {
4245
+ S(R), V.dataTransfer.effectAllowed = "move", V.dataTransfer.setData("text/plain", String(R));
4246
+ }, q = (R) => (V) => {
4247
+ V.preventDefault(), V.dataTransfer.dropEffect = "move", !(T === null || T === R) && (M(T, R), S(R));
4248
+ }, z = () => S(null), W = t != null ? (() => {
4249
+ let R = t.y, V = t.x;
4250
+ return typeof window < "u" && (V + Ue > window.innerWidth && (V = window.innerWidth - Ue - 16), V < 16 && (V = 16), R + On > window.innerHeight && (R = Math.max(16, window.innerHeight - On - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: V };
4251
4251
  })() : void 0;
4252
4252
  return /* @__PURE__ */ b(
4253
4253
  jn,
@@ -4268,11 +4268,11 @@ const Ue = 420, On = 440, Xa = ({
4268
4268
  ce,
4269
4269
  {
4270
4270
  checked: p,
4271
- onChange: (R) => j(R.target.checked),
4271
+ onChange: (R) => K(R.target.checked),
4272
4272
  children: "序号列"
4273
4273
  }
4274
4274
  ),
4275
- /* @__PURE__ */ b(ce, { checked: y, onChange: (R) => P(R.target.checked), children: "自动滚动" }),
4275
+ /* @__PURE__ */ b(ce, { checked: y, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
4276
4276
  /* @__PURE__ */ ot(Pt, { align: "center", children: [
4277
4277
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
4278
4278
  /* @__PURE__ */ b(
@@ -4280,7 +4280,7 @@ const Ue = 420, On = 440, Xa = ({
4280
4280
  {
4281
4281
  size: "small",
4282
4282
  value: x,
4283
- onChange: Y,
4283
+ onChange: P,
4284
4284
  options: [...Qa],
4285
4285
  style: { width: 80 }
4286
4286
  }
@@ -4294,16 +4294,16 @@ const Ue = 420, On = 440, Xa = ({
4294
4294
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
4295
4295
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-fix", children: "固定" })
4296
4296
  ] }) }),
4297
- /* @__PURE__ */ b("tbody", { children: f.map((R, z) => {
4298
- const K = typeof R.width == "number" ? R.width : null, V = R.width === "auto" || R.width === void 0 && K === null;
4297
+ /* @__PURE__ */ b("tbody", { children: f.map((R, V) => {
4298
+ const G = typeof R.width == "number" ? R.width : null, j = R.width === "auto" || R.width === void 0 && G === null;
4299
4299
  return /* @__PURE__ */ ot(
4300
4300
  "tr",
4301
4301
  {
4302
- className: `and-table-column-setting-row ${T === z ? "and-table-column-setting-row-dragging" : ""}`,
4302
+ className: `and-table-column-setting-row ${T === V ? "and-table-column-setting-row-dragging" : ""}`,
4303
4303
  draggable: !0,
4304
- onDragStart: $(z),
4305
- onDragOver: q(z),
4306
- onDragEnd: L,
4304
+ onDragStart: $(V),
4305
+ onDragOver: q(V),
4306
+ onDragEnd: z,
4307
4307
  children: [
4308
4308
  /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(Ir, {}) }) }),
4309
4309
  /* @__PURE__ */ ot("td", { className: "and-table-column-setting-td-name", children: [
@@ -4326,12 +4326,12 @@ const Ue = 420, On = 440, Xa = ({
4326
4326
  size: "small",
4327
4327
  min: He,
4328
4328
  step: fe,
4329
- value: V ? void 0 : K ?? 80,
4329
+ value: j ? void 0 : G ?? 80,
4330
4330
  placeholder: "auto",
4331
4331
  controls: !1,
4332
4332
  style: { width: 44 },
4333
- onChange: (U) => {
4334
- U == null || typeof U == "string" && U === "" ? E(R.key, "auto") : E(R.key, Math.max(He, Number(U)));
4333
+ onChange: (L) => {
4334
+ L == null || typeof L == "string" && L === "" ? E(R.key, "auto") : E(R.key, Math.max(He, Number(L)));
4335
4335
  }
4336
4336
  }
4337
4337
  ),
@@ -4408,11 +4408,11 @@ const Ue = 420, On = 440, Xa = ({
4408
4408
  renderFooter: E,
4409
4409
  children: _,
4410
4410
  token: M,
4411
- columnSettingOpenKey: j,
4412
- columnSettingsKey: P,
4413
- ...Y
4411
+ columnSettingOpenKey: K,
4412
+ columnSettingsKey: H,
4413
+ ...P
4414
4414
  }) => {
4415
- const $ = O((J) => J.addCommand), q = O((J) => J.getDataSet), L = O((J) => J.setDataSet), [W, R] = dt([]), z = $t(null), [K, V] = dt(void 0), U = B((J, ct) => {
4415
+ const $ = O((J) => J.addCommand), q = O((J) => J.getDataSet), z = O((J) => J.setDataSet), [W, R] = dt([]), V = $t(null), [G, j] = dt(void 0), L = B((J, ct) => {
4416
4416
  if (J == null) return ct;
4417
4417
  if (typeof J == "string")
4418
4418
  try {
@@ -4437,11 +4437,11 @@ const Ue = 420, On = 440, Xa = ({
4437
4437
  }
4438
4438
  ), Ct = 420;
4439
4439
  Wn(() => {
4440
- if (!yt || !z.current) return;
4441
- const J = z.current.querySelector(".ant-table-thead") || z.current.querySelector(".ant-table-header");
4440
+ if (!yt || !V.current) return;
4441
+ const J = V.current.querySelector(".ant-table-thead") || V.current.querySelector(".ant-table-header");
4442
4442
  if (!J) return;
4443
4443
  const ct = J.getBoundingClientRect();
4444
- V({
4444
+ j({
4445
4445
  x: ct.right - Ct,
4446
4446
  y: ct.bottom + 8
4447
4447
  });
@@ -4450,16 +4450,16 @@ const Ue = 420, On = 440, Xa = ({
4450
4450
  var At;
4451
4451
  const ct = nt.columnSettings ? (At = J.dataSets[nt.columnSettings]) == null ? void 0 : At.value : void 0;
4452
4452
  return typeof ct == "object" && ct !== null ? ct : void 0;
4453
- }), I = vi(nt.dataSet, r), st = g(() => nt.dataSet ? I : (c == null ? void 0 : c.data) || [], [nt.dataSet, I, c == null ? void 0 : c.data]), at = g(() => U(M, {}), [M, U]), _t = at && Object.keys(at).length > 0, Ot = g(
4453
+ }), I = vi(nt.dataSet, r), st = g(() => nt.dataSet ? I : (c == null ? void 0 : c.data) || [], [nt.dataSet, I, c == null ? void 0 : c.data]), at = g(() => L(M, {}), [M, L]), _t = at && Object.keys(at).length > 0, Ot = g(
4454
4454
  () => _t ? { components: { Table: at } } : void 0,
4455
4455
  [_t, at]
4456
4456
  ), Bt = O(
4457
4457
  (J) => nt.pagination ? J.dataSets[nt.pagination] : void 0
4458
- ), G = g(() => nt.pagination ? q(nt.pagination, "") || {} : {}, [nt.pagination, q, Bt]), H = g(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = g(() => {
4459
- if (!H) return !1;
4460
- const J = typeof s == "object" ? s : {}, ct = Y || {}, At = J.showSizeChanger ?? ct["pagination-showSizeChanger"] ?? !0, vt = J.showQuickJumper ?? ct["pagination-showQuickJumper"] ?? !1, wt = J.simple ?? ct["pagination-simple"] ?? !1, Kt = J.defaultPageSize ?? ct["pagination-defaultPageSize"] ?? 10, Ht = J.pageSizeOptions ?? ct["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Ht == "string" ? Ht.split(",").map((It) => parseInt(String(It).trim(), 10) || 10).filter((It) => !isNaN(It)) : Array.isArray(Ht) ? Ht : [10, 20, 50, 100];
4458
+ ), Y = g(() => nt.pagination ? q(nt.pagination, "") || {} : {}, [nt.pagination, q, Bt]), U = g(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = g(() => {
4459
+ if (!U) return !1;
4460
+ const J = typeof s == "object" ? s : {}, ct = P || {}, At = J.showSizeChanger ?? ct["pagination-showSizeChanger"] ?? !0, vt = J.showQuickJumper ?? ct["pagination-showQuickJumper"] ?? !1, wt = J.simple ?? ct["pagination-simple"] ?? !1, Kt = J.defaultPageSize ?? ct["pagination-defaultPageSize"] ?? 10, Ht = J.pageSizeOptions ?? ct["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Ht == "string" ? Ht.split(",").map((It) => parseInt(String(It).trim(), 10) || 10).filter((It) => !isNaN(It)) : Array.isArray(Ht) ? Ht : [10, 20, 50, 100];
4461
4461
  return {
4462
- ...G,
4462
+ ...Y,
4463
4463
  showSizeChanger: At,
4464
4464
  showQuickJumper: vt,
4465
4465
  simple: wt,
@@ -4467,11 +4467,11 @@ const Ue = 420, On = 440, Xa = ({
4467
4467
  pageSizeOptions: ze,
4468
4468
  showTotal: (It, ae) => (J.showTotal || "共 ${total} 条").replace("${total}", String(It)).replace("${range[0]}", String(ae[0])).replace("${range[1]}", String(ae[1])).replace("${range}", `${ae[0]}-${ae[1]}`),
4469
4469
  onChange: (It, ae) => {
4470
- nt.pagination && L(nt.pagination, "", { ...G, current: It, pageSize: ae }), f && t && $(t, X(f, null));
4470
+ nt.pagination && z(nt.pagination, "", { ...Y, current: It, pageSize: ae }), f && t && $(t, X(f, null));
4471
4471
  },
4472
4472
  hideOnSinglePage: !1
4473
4473
  };
4474
- }, [H, s, Y, G, nt.pagination, L, f, t, $]), Q = B((J, ct) => {
4474
+ }, [U, s, P, Y, nt.pagination, z, f, t, $]), Q = B((J, ct) => {
4475
4475
  t && $(t, X(J.action, { ...ct }));
4476
4476
  }, [t, $]), lt = g(() => rt.map((J) => {
4477
4477
  let ct = !1;
@@ -4498,7 +4498,7 @@ const Ue = 420, On = 440, Xa = ({
4498
4498
  width: 60,
4499
4499
  align: "center",
4500
4500
  render: (vt, wt, Kt) => {
4501
- const Ht = G.current || 1, ze = G.pageSize || 10;
4501
+ const Ht = Y.current || 1, ze = Y.pageSize || 10;
4502
4502
  return (Ht - 1) * ze + Kt + 1;
4503
4503
  }
4504
4504
  });
@@ -4524,36 +4524,36 @@ const Ue = 420, On = 440, Xa = ({
4524
4524
  ht,
4525
4525
  St,
4526
4526
  l,
4527
- G,
4527
+ Y,
4528
4528
  Q
4529
4529
  ]), Rt = B(() => {
4530
- nt.columnSettingOpen && L(nt.columnSettingOpen, "", !1);
4531
- }, [nt.columnSettingOpen, L]), zt = B(
4530
+ nt.columnSettingOpen && z(nt.columnSettingOpen, "", !1);
4531
+ }, [nt.columnSettingOpen, z]), zt = B(
4532
4532
  (J) => {
4533
- nt.columnSettings && L(nt.columnSettings, "value", J);
4533
+ nt.columnSettings && z(nt.columnSettings, "value", J);
4534
4534
  },
4535
- [nt.columnSettings, L]
4535
+ [nt.columnSettings, z]
4536
4536
  ), rr = g(() => {
4537
4537
  if (!v && m)
4538
4538
  return {
4539
4539
  selectedRowKeys: W,
4540
4540
  onChange: (J, ct, At) => {
4541
- R(J), nt.selected && L(nt.selected, "", J), h != null && h.trim() && t && $(t, X(h.trim(), {
4541
+ R(J), nt.selected && z(nt.selected, "", J), h != null && h.trim() && t && $(t, X(h.trim(), {
4542
4542
  selectedRowKeys: J,
4543
4543
  selectedRows: ct,
4544
4544
  info: At
4545
4545
  }));
4546
4546
  }
4547
4547
  };
4548
- }, [m, v, W, nt.selected, L, h, t, $]), fn = B((J) => {
4548
+ }, [m, v, W, nt.selected, z, h, t, $]), fn = B((J) => {
4549
4549
  if (!v) return;
4550
4550
  const At = [J[p]];
4551
- R(At), nt.selected && L(nt.selected, "", At), h != null && h.trim() && t && $(t, X(h.trim(), { record: J, selectedRowKeys: At }));
4552
- }, [v, h, t, p, nt.selected, L, $]), ir = B((J) => v && W.includes(J[p]) ? "ant-table-row-selected" : "", [v, p, W]), ar = B((J) => v ? { onClick: () => fn(J), style: { cursor: "pointer" } } : {}, [v, fn]), { style: or, className: cr, ...ue } = Y, kt = g(() => {
4551
+ R(At), nt.selected && z(nt.selected, "", At), h != null && h.trim() && t && $(t, X(h.trim(), { record: J, selectedRowKeys: At }));
4552
+ }, [v, h, t, p, nt.selected, z, $]), ir = B((J) => v && W.includes(J[p]) ? "ant-table-row-selected" : "", [v, p, W]), ar = B((J) => v ? { onClick: () => fn(J), style: { cursor: "pointer" } } : {}, [v, fn]), { style: or, className: cr, ...ue } = P, kt = g(() => {
4553
4553
  if (T) return T;
4554
4554
  let J = ue["scroll-x"], ct = ue["scroll-y"];
4555
4555
  if (String(J) === "true" ? J = !0 : String(J) === "false" ? J = void 0 : J === "max-content" && (J = "max-content"), (ct === "" || ct === null || ct === void 0) && (ct = void 0), J !== void 0 || ct !== void 0) return { x: J, y: ct };
4556
- }, [T, ue["scroll-x"], ue["scroll-y"]]), Le = Va(z, kt == null ? void 0 : kt.y, H), sr = g(() => {
4556
+ }, [T, ue["scroll-x"], ue["scroll-y"]]), Le = Va(V, kt == null ? void 0 : kt.y, U), sr = g(() => {
4557
4557
  if (!kt && !pt) return;
4558
4558
  const J = pt ? De ? !0 : "max-content" : kt == null ? void 0 : kt.x, ct = (kt == null ? void 0 : kt.y) === "100%" ? Le : kt == null ? void 0 : kt.y;
4559
4559
  return J !== void 0 || ct !== void 0 ? { x: J, y: ct } : kt ? kt.y === "100%" ? { x: kt.x, y: Le } : kt : void 0;
@@ -4603,7 +4603,7 @@ const Ue = 420, On = 440, Xa = ({
4603
4603
  return /* @__PURE__ */ ot(
4604
4604
  Bn,
4605
4605
  {
4606
- ref: z,
4606
+ ref: V,
4607
4607
  vertical: !0,
4608
4608
  style: { width: "100%", height: "100%", ...or },
4609
4609
  className: cr,
@@ -4633,7 +4633,7 @@ const Ue = 420, On = 440, Xa = ({
4633
4633
  Xa,
4634
4634
  {
4635
4635
  open: yt,
4636
- position: K,
4636
+ position: G,
4637
4637
  rowIndexVisible: ht,
4638
4638
  columnItems: St,
4639
4639
  defaultRowIndexVisible: ft,
@@ -4708,12 +4708,12 @@ const Ue = 420, On = 440, Xa = ({
4708
4708
  return _;
4709
4709
  const W = (x == null ? void 0 : x.formatType) || v;
4710
4710
  return W && _ !== void 0 && _ !== null ? Aa(_, W, C) : _;
4711
- }, [n, _, v, C, x == null ? void 0 : x.formatType]), j = g(() => {
4711
+ }, [n, _, v, C, x == null ? void 0 : x.formatType]), K = g(() => {
4712
4712
  const W = { ...y };
4713
4713
  return x && typeof x == "object" && Object.keys(x).forEach((R) => {
4714
4714
  !["content", "formatType", "formatValue", "clickAction"].includes(R) && x[R] !== void 0 && x[R] !== null && (W[R] = x[R]);
4715
4715
  }), W;
4716
- }, [y, x]), P = (x == null ? void 0 : x.color) ?? l, Y = Ke(P), $ = g(() => {
4716
+ }, [y, x]), H = (x == null ? void 0 : x.color) ?? l, P = Ke(H), $ = g(() => {
4717
4717
  if (!f) return;
4718
4718
  let W = f;
4719
4719
  if (typeof f == "string")
@@ -4724,18 +4724,18 @@ const Ue = 420, On = 440, Xa = ({
4724
4724
  }
4725
4725
  if (!W || typeof W != "object") return;
4726
4726
  const R = {};
4727
- return Object.entries(W).forEach(([z, K]) => {
4728
- K !== "" && K !== void 0 && K !== null && (R[z] = K);
4727
+ return Object.entries(W).forEach(([V, G]) => {
4728
+ G !== "" && G !== void 0 && G !== null && (R[V] = G);
4729
4729
  }), Object.keys(R).length > 0 ? R : void 0;
4730
4730
  }, [f]), q = g(() => {
4731
4731
  const W = { width: "100%" }, R = (x == null ? void 0 : x.fontSize) ?? c;
4732
4732
  if (R) {
4733
- const z = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
4734
- W.fontSize = z;
4733
+ const V = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
4734
+ W.fontSize = V;
4735
4735
  }
4736
- return Y && (W.color = Y), W;
4737
- }, [c, Y, x == null ? void 0 : x.fontSize]), L = /* @__PURE__ */ b(Za, { ...j, style: { ...q, ...d, ...j.style }, children: M != null && M !== "" ? String(M) : r });
4738
- return $ ? /* @__PURE__ */ b(Mt, { theme: { token: $ }, children: L }) : L;
4736
+ return P && (W.color = P), W;
4737
+ }, [c, P, x == null ? void 0 : x.fontSize]), z = /* @__PURE__ */ b(Za, { ...K, style: { ...q, ...d, ...K.style }, children: M != null && M !== "" ? String(M) : r });
4738
+ return $ ? /* @__PURE__ */ b(Mt, { theme: { token: $ }, children: z }) : z;
4739
4739
  }, { Title: Ia } = sn, Lc = ({
4740
4740
  id: e,
4741
4741
  sessionId: t,
@@ -4888,13 +4888,13 @@ const Ue = 420, On = 440, Xa = ({
4888
4888
  treeData: E,
4889
4889
  styles: _,
4890
4890
  classNames: M,
4891
- token: j,
4892
- ...P
4891
+ token: K,
4892
+ ...H
4893
4893
  }) => {
4894
- const Y = O((F) => F.addCommand), $ = O((F) => F.setDataSet), q = g(
4894
+ const P = O((F) => F.addCommand), $ = O((F) => F.setDataSet), q = g(
4895
4895
  () => tt(t, i),
4896
4896
  [t, i]
4897
- ), L = g(
4897
+ ), z = g(
4898
4898
  () => i ? tt(t, `${i}_selected`) : void 0,
4899
4899
  [t, i]
4900
4900
  ), W = g(
@@ -4903,7 +4903,7 @@ const Ue = 420, On = 440, Xa = ({
4903
4903
  ), R = g(
4904
4904
  () => i ? tt(t, `${i}_expanded`) : void 0,
4905
4905
  [t, i]
4906
- ), z = O((F) => {
4906
+ ), V = O((F) => {
4907
4907
  if (!q) return;
4908
4908
  if (r)
4909
4909
  return F.getDataSet(q, r);
@@ -4912,127 +4912,127 @@ const Ue = 420, On = 440, Xa = ({
4912
4912
  if (Array.isArray(ht)) return ht;
4913
4913
  const St = ht.value;
4914
4914
  return Array.isArray(St) ? St : void 0;
4915
- }), K = O(
4916
- (F) => L ? F.getDataSet(L, "") : void 0
4917
- ), V = O(
4915
+ }), G = O(
4916
+ (F) => z ? F.getDataSet(z, "") : void 0
4917
+ ), j = O(
4918
4918
  (F) => W ? F.getDataSet(W, "") : void 0
4919
- ), U = O(
4919
+ ), L = O(
4920
4920
  (F) => R ? F.getDataSet(R, "") : void 0
4921
- ), rt = g(() => n ? z ?? E ?? [] : q ? z ?? [] : E ?? [], [n, q, z, E]), it = K, nt = V, yt = U, Ct = B(
4921
+ ), rt = g(() => n ? V ?? E ?? [] : q ? V ?? [] : E ?? [], [n, q, V, E]), it = G, nt = j, yt = L, Ct = B(
4922
4922
  (F, ht) => {
4923
4923
  if (y) {
4924
4924
  y(F, ht);
4925
4925
  return;
4926
4926
  }
4927
- L && $(L, "", F), a && t && Y(t, X(a, { selectedKeys: F }));
4927
+ z && $(z, "", F), a && t && P(t, X(a, { selectedKeys: F }));
4928
4928
  },
4929
- [y, L, t, $, a, Y]
4929
+ [y, z, t, $, a, P]
4930
4930
  ), mt = B(
4931
4931
  (F, ht) => {
4932
4932
  if (u) {
4933
4933
  u(F, ht);
4934
4934
  return;
4935
4935
  }
4936
- W && $(W, "", F), o && t && Y(t, X(o, { checkedKeys: F }));
4936
+ W && $(W, "", F), o && t && P(t, X(o, { checkedKeys: F }));
4937
4937
  },
4938
- [u, W, t, $, o, Y]
4938
+ [u, W, t, $, o, P]
4939
4939
  ), I = B(
4940
4940
  (F, ht) => {
4941
4941
  if (x) {
4942
4942
  x(F, ht);
4943
4943
  return;
4944
4944
  }
4945
- R && $(R, "", F), c && t && Y(t, X(c, { expandedKeys: F, expanded: ht.expanded }));
4945
+ R && $(R, "", F), c && t && P(t, X(c, { expandedKeys: F, expanded: ht.expanded }));
4946
4946
  },
4947
- [x, R, t, $, c, Y]
4947
+ [x, R, t, $, c, P]
4948
4948
  ), st = B(
4949
4949
  (F) => {
4950
4950
  if (D) {
4951
4951
  D(F);
4952
4952
  return;
4953
4953
  }
4954
- l && t && Y(t, X(l, F));
4954
+ l && t && P(t, X(l, F));
4955
4955
  },
4956
- [D, l, t, Y]
4956
+ [D, l, t, P]
4957
4957
  ), at = B(
4958
4958
  (F) => {
4959
4959
  if (T) {
4960
4960
  T(F);
4961
4961
  return;
4962
4962
  }
4963
- m && t && Y(t, X(m, F));
4963
+ m && t && P(t, X(m, F));
4964
4964
  },
4965
- [T, m, t, Y]
4965
+ [T, m, t, P]
4966
4966
  ), _t = B(
4967
4967
  (F) => {
4968
4968
  if (S) {
4969
4969
  S(F);
4970
4970
  return;
4971
4971
  }
4972
- v && t && Y(t, X(v, F));
4972
+ v && t && P(t, X(v, F));
4973
4973
  },
4974
- [S, v, t, Y]
4974
+ [S, v, t, P]
4975
4975
  ), Ot = B(
4976
4976
  (F) => {
4977
4977
  if (A) {
4978
4978
  A(F);
4979
4979
  return;
4980
4980
  }
4981
- h && t && Y(t, X(h, F));
4981
+ h && t && P(t, X(h, F));
4982
4982
  },
4983
- [A, h, t, Y]
4983
+ [A, h, t, P]
4984
4984
  ), Bt = B(
4985
4985
  (F) => {
4986
4986
  if (N) {
4987
4987
  N(F);
4988
4988
  return;
4989
4989
  }
4990
- p && t && Y(t, X(p, F));
4990
+ p && t && P(t, X(p, F));
4991
4991
  },
4992
- [N, p, t, Y]
4993
- ), G = B(
4992
+ [N, p, t, P]
4993
+ ), Y = B(
4994
4994
  (F) => {
4995
4995
  if (k) {
4996
4996
  k(F);
4997
4997
  return;
4998
4998
  }
4999
- d && t && Y(t, X(d, F));
4999
+ d && t && P(t, X(d, F));
5000
5000
  },
5001
- [k, d, t, Y]
5002
- ), H = B(
5001
+ [k, d, t, P]
5002
+ ), U = B(
5003
5003
  (F) => {
5004
5004
  if (C) {
5005
5005
  C(F);
5006
5006
  return;
5007
5007
  }
5008
- f && t && Y(t, X(f, F));
5008
+ f && t && P(t, X(f, F));
5009
5009
  },
5010
- [C, f, t, Y]
5010
+ [C, f, t, P]
5011
5011
  ), et = B(
5012
5012
  (F, ht) => {
5013
5013
  if (w) {
5014
5014
  w(F, ht);
5015
5015
  return;
5016
5016
  }
5017
- s && t && Y(t, X(s, { loadedKeys: F, ...ht }));
5017
+ s && t && P(t, X(s, { loadedKeys: F, ...ht }));
5018
5018
  },
5019
- [w, s, t, Y]
5019
+ [w, s, t, P]
5020
5020
  ), Q = g(() => {
5021
- if (!j) return;
5021
+ if (!K) return;
5022
5022
  const F = {};
5023
- return Object.entries(j).forEach(([ht, St]) => {
5023
+ return Object.entries(K).forEach(([ht, St]) => {
5024
5024
  St !== "" && St !== void 0 && St !== null && (F[ht] = St);
5025
5025
  }), Object.keys(F).length > 0 ? F : void 0;
5026
- }, [j]), lt = g(() => {
5026
+ }, [K]), lt = g(() => {
5027
5027
  const F = {};
5028
5028
  return n && (F.motion = !1), Q && (F.components = { Tree: Q }), Object.keys(F).length > 0 ? F : void 0;
5029
5029
  }, [n, Q]), xt = /* @__PURE__ */ b(
5030
5030
  Tr,
5031
5031
  {
5032
- ...P,
5032
+ ...H,
5033
5033
  ...n ? { motion: !1 } : {},
5034
5034
  treeData: rt,
5035
- ...L != null ? { selectedKeys: it ?? [] } : {},
5035
+ ...z != null ? { selectedKeys: it ?? [] } : {},
5036
5036
  ...W != null ? { checkedKeys: nt ?? [] } : {},
5037
5037
  ...R != null ? { expandedKeys: yt ?? [] } : {},
5038
5038
  onSelect: Ct,
@@ -5043,8 +5043,8 @@ const Ue = 420, On = 440, Xa = ({
5043
5043
  onDragLeave: _t,
5044
5044
  onDragOver: Ot,
5045
5045
  onDragStart: Bt,
5046
- onDrop: G,
5047
- onRightClick: H,
5046
+ onDrop: Y,
5047
+ onRightClick: U,
5048
5048
  onLoad: et,
5049
5049
  styles: _,
5050
5050
  classNames: M
@@ -5124,17 +5124,17 @@ const Ue = 420, On = 440, Xa = ({
5124
5124
  token: f,
5125
5125
  ...s
5126
5126
  }) => {
5127
- const y = O((j) => j.addCommand), u = O((j) => j.getDataSet), x = O((j) => j.setDataSet), D = g(
5127
+ const y = O((K) => K.addCommand), u = O((K) => K.getDataSet), x = O((K) => K.setDataSet), D = g(
5128
5128
  () => tt(t, i),
5129
5129
  [t, i]
5130
5130
  ), T = g(() => {
5131
5131
  if (D && r) return u(D, r);
5132
- }, [D, r, u]), S = g(() => T ?? c ?? 0, [T, c]), A = g(() => v ?? m, [v, m]), N = g(() => p ?? h, [p, h]), k = g(() => Pe(l, []), [l]), C = g(() => Pe(d, {}), [d]), w = g(() => Pe(f, {}), [f]), E = B((j) => {
5132
+ }, [D, r, u]), S = g(() => T ?? c ?? 0, [T, c]), A = g(() => v ?? m, [v, m]), N = g(() => p ?? h, [p, h]), k = g(() => Pe(l, []), [l]), C = g(() => Pe(d, {}), [d]), w = g(() => Pe(f, {}), [f]), E = B((K) => {
5133
5133
  if (o) {
5134
- o(j);
5134
+ o(K);
5135
5135
  return;
5136
5136
  }
5137
- D && r && x(D, r, j), a && t && y(t, X(a, j));
5137
+ D && r && x(D, r, K), a && t && y(t, X(a, K));
5138
5138
  }, [o, D, r, x, a, t, y]), _ = Object.keys(w).length > 0, M = /* @__PURE__ */ b(
5139
5139
  kr,
5140
5140
  {
@@ -5512,7 +5512,7 @@ const Jc = ({
5512
5512
  var k, C, w, E, _, M;
5513
5513
  if (u) return;
5514
5514
  const A = s ? ((k = a.current) == null ? void 0 : k.clientWidth) ?? 200 : ((C = a.current) == null ? void 0 : C.clientHeight) ?? 200, N = s ? (((w = o.current) == null ? void 0 : w.scrollWidth) ?? 0) - (((E = a.current) == null ? void 0 : E.clientWidth) ?? 0) : (((_ = o.current) == null ? void 0 : _.scrollHeight) ?? 0) - (((M = a.current) == null ? void 0 : M.clientHeight) ?? 0);
5515
- l((j) => Math.min(N, j + A));
5515
+ l((K) => Math.min(N, K + A));
5516
5516
  }, [s, u]), T = n || (s ? /* @__PURE__ */ b(Un, {}) : /* @__PURE__ */ b(ei, {})), S = i || (s ? /* @__PURE__ */ b(Pn, {}) : /* @__PURE__ */ b(Yn, {}));
5517
5517
  return /* @__PURE__ */ ot(
5518
5518
  "div",
@@ -5635,18 +5635,18 @@ const Jc = ({
5635
5635
  overflowStrategy: E = "default",
5636
5636
  paginationArrowStyle: _,
5637
5637
  paginationArrowIconPrev: M,
5638
- paginationArrowIconNext: j,
5639
- expandTrigger: P,
5638
+ paginationArrowIconNext: K,
5639
+ expandTrigger: H,
5640
5640
  // 仅设计器/业务用,不传给 DOM,避免 React 警告
5641
- ...Y
5641
+ ...P
5642
5642
  }) => {
5643
- const $ = O((Z) => Z.addCommand), q = O((Z) => Z.setDataSet), L = g(
5643
+ const $ = O((Z) => Z.addCommand), q = O((Z) => Z.setDataSet), z = g(
5644
5644
  () => tt(t, i),
5645
5645
  [t, i]
5646
5646
  ), W = O(
5647
5647
  (Z) => {
5648
- if (L)
5649
- return r ? Z.getDataSet(L, r) : Z.dataSets[L];
5648
+ if (z)
5649
+ return r ? Z.getDataSet(z, r) : Z.dataSets[z];
5650
5650
  }
5651
5651
  // 使用 shallow 比较确保只有通过内容变更才触发更新
5652
5652
  // 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
@@ -5654,20 +5654,20 @@ const Jc = ({
5654
5654
  // 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
5655
5655
  // 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
5656
5656
  // 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
5657
- ), R = g(() => ({}), []), z = W ?? R, K = g(
5658
- () => (z == null ? void 0 : z.items) ?? (Array.isArray(z) ? z : void 0) ?? (Array.isArray(z == null ? void 0 : z.value) ? z.value : void 0),
5659
- [z]
5660
- ), V = g(() => n ? K ?? d ?? [] : L ? K ?? [] : d ?? [], [n, L, K, d]), U = g(
5661
- () => z.selectedKeys ?? f,
5662
- [z.selectedKeys, f]
5657
+ ), R = g(() => ({}), []), V = W ?? R, G = g(
5658
+ () => (V == null ? void 0 : V.items) ?? (Array.isArray(V) ? V : void 0) ?? (Array.isArray(V == null ? void 0 : V.value) ? V.value : void 0),
5659
+ [V]
5660
+ ), j = g(() => n ? G ?? d ?? [] : z ? G ?? [] : d ?? [], [n, z, G, d]), L = g(
5661
+ () => V.selectedKeys ?? f,
5662
+ [V.selectedKeys, f]
5663
5663
  ), rt = g(
5664
- () => z.openKeys ?? (A && N ? void 0 : s),
5665
- [z.openKeys, A, N, s]
5664
+ () => V.openKeys ?? (A && N ? void 0 : s),
5665
+ [V.openKeys, A, N, s]
5666
5666
  ), it = g(
5667
5667
  () => tt(t, A),
5668
5668
  [t, A]
5669
5669
  ), nt = O((Z) => {
5670
- if (!z.openKeys && it && N)
5670
+ if (!V.openKeys && it && N)
5671
5671
  return Z.getDataSet(it, N);
5672
5672
  }), yt = g(() => {
5673
5673
  const Z = (pt) => Array.isArray(pt) ? pt.map((Et) => {
@@ -5678,10 +5678,10 @@ const Jc = ({
5678
5678
  }
5679
5679
  return Rt.children && Rt.children.length > 0 && (Rt.children = Z(Rt.children)), Rt;
5680
5680
  }) : [];
5681
- return Z(V || []);
5682
- }, [V]), Ct = g(
5683
- () => U,
5684
- [U]
5681
+ return Z(j || []);
5682
+ }, [j]), Ct = g(
5683
+ () => L,
5684
+ [L]
5685
5685
  ), mt = g(
5686
5686
  () => rt ?? nt,
5687
5687
  [rt, nt]
@@ -5703,12 +5703,12 @@ const Jc = ({
5703
5703
  v(Z);
5704
5704
  return;
5705
5705
  }
5706
- if (L)
5706
+ if (z)
5707
5707
  if (r) {
5708
- const pt = O.getState().getDataSet(L, r) || {};
5709
- q(L, r, { ...pt, selectedKeys: Z.selectedKeys });
5708
+ const pt = O.getState().getDataSet(z, r) || {};
5709
+ q(z, r, { ...pt, selectedKeys: Z.selectedKeys });
5710
5710
  } else
5711
- q(L, "selectedKeys", Z.selectedKeys);
5711
+ q(z, "selectedKeys", Z.selectedKeys);
5712
5712
  o && t && $(
5713
5713
  t,
5714
5714
  X(o, { selectedKeys: Z.selectedKeys })
@@ -5716,7 +5716,7 @@ const Jc = ({
5716
5716
  },
5717
5717
  [
5718
5718
  v,
5719
- L,
5719
+ z,
5720
5720
  r,
5721
5721
  q,
5722
5722
  o,
@@ -5729,12 +5729,12 @@ const Jc = ({
5729
5729
  h(Z);
5730
5730
  return;
5731
5731
  }
5732
- if (L)
5732
+ if (z)
5733
5733
  if (r) {
5734
- const pt = O.getState().getDataSet(L, r) || {};
5735
- q(L, r, { ...pt, openKeys: Z });
5734
+ const pt = O.getState().getDataSet(z, r) || {};
5735
+ q(z, r, { ...pt, openKeys: Z });
5736
5736
  } else
5737
- q(L, "openKeys", Z);
5737
+ q(z, "openKeys", Z);
5738
5738
  else it && N && q(it, N, Z);
5739
5739
  c && t && $(
5740
5740
  t,
@@ -5743,7 +5743,7 @@ const Jc = ({
5743
5743
  },
5744
5744
  [
5745
5745
  h,
5746
- L,
5746
+ z,
5747
5747
  r,
5748
5748
  it,
5749
5749
  N,
@@ -5773,21 +5773,21 @@ const Jc = ({
5773
5773
  return Object.entries(D).forEach(([pt, Et]) => {
5774
5774
  Et !== "" && Et !== void 0 && Et !== null && (Z[pt] = Et);
5775
5775
  }), Object.keys(Z).length > 0 ? Z : void 0;
5776
- }, [D]), G = n ? {
5776
+ }, [D]), Y = n ? {
5777
5777
  motion: { motionName: "" }
5778
- } : {}, H = g(() => {
5778
+ } : {}, U = g(() => {
5779
5779
  if (typeof M == "string" && M) {
5780
5780
  const Z = Gt[M];
5781
5781
  if (Z) return /* @__PURE__ */ b(Z, {});
5782
5782
  }
5783
5783
  return M;
5784
5784
  }, [M]), et = g(() => {
5785
- if (typeof j == "string" && j) {
5786
- const Z = Gt[j];
5785
+ if (typeof K == "string" && K) {
5786
+ const Z = Gt[K];
5787
5787
  if (Z) return /* @__PURE__ */ b(Z, {});
5788
5788
  }
5789
- return j;
5790
- }, [j]), Q = g(() => E === "pagination" || E === "scroll" ? null : S, [E, S]), lt = Qr(), ft = e || lt.replace(/:/g, "-"), xt = g(() => {
5789
+ return K;
5790
+ }, [K]), Q = g(() => E === "pagination" || E === "scroll" ? null : S, [E, S]), lt = Qr(), ft = e || lt.replace(/:/g, "-"), xt = g(() => {
5791
5791
  var Rt;
5792
5792
  if (!u || typeof u == "function") return "";
5793
5793
  const Z = (Rt = u.subMenu) == null ? void 0 : Rt.root;
@@ -5814,9 +5814,9 @@ const Jc = ({
5814
5814
  }, [u, ft]), F = /* @__PURE__ */ b(
5815
5815
  $r,
5816
5816
  {
5817
- ...Y,
5817
+ ...P,
5818
5818
  ...Ot,
5819
- ...G,
5819
+ ...Y,
5820
5820
  mode: k,
5821
5821
  items: yt,
5822
5822
  selectedKeys: Ct,
@@ -5837,7 +5837,7 @@ const Jc = ({
5837
5837
  {
5838
5838
  mode: k || "horizontal",
5839
5839
  arrowStyle: _,
5840
- arrowIconPrev: H,
5840
+ arrowIconPrev: U,
5841
5841
  arrowIconNext: et,
5842
5842
  children: F
5843
5843
  }
@@ -6062,16 +6062,16 @@ const Jc = ({
6062
6062
  }
6063
6063
  );
6064
6064
  };
6065
- }, [h, n]), j = g(() => {
6065
+ }, [h, n]), K = g(() => {
6066
6066
  if (M)
6067
6067
  return !f || !s ? M : ($, q) => {
6068
- const L = typeof q == "number" ? q : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
6068
+ const z = typeof q == "number" ? q : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
6069
6069
  return /* @__PURE__ */ b(
6070
6070
  re.Provider,
6071
6071
  {
6072
6072
  value: {
6073
6073
  dataSet: f,
6074
- index: L,
6074
+ index: z,
6075
6075
  sessionId: y,
6076
6076
  dataSetFieldRoot: s
6077
6077
  },
@@ -6080,18 +6080,18 @@ const Jc = ({
6080
6080
  );
6081
6081
  };
6082
6082
  }, [M, f, s, y]), {
6083
- layoutChangeAction: P,
6084
- ...Y
6083
+ layoutChangeAction: H,
6084
+ ...P
6085
6085
  } = p;
6086
6086
  return /* @__PURE__ */ b(
6087
6087
  Rr,
6088
6088
  {
6089
- ...Y,
6089
+ ...P,
6090
6090
  items: _,
6091
6091
  columns: C,
6092
6092
  gutter: w,
6093
6093
  fresh: l,
6094
- itemRender: j,
6094
+ itemRender: K,
6095
6095
  onLayoutChange: E
6096
6096
  }
6097
6097
  );
@@ -6263,65 +6263,65 @@ const Jc = ({
6263
6263
  children: S,
6264
6264
  ...A
6265
6265
  }) => {
6266
- const N = O((U) => U.addCommand), k = O((U) => U.getDataSet), C = O((U) => U.setDataSet), w = g(
6266
+ const N = O((L) => L.addCommand), k = O((L) => L.getDataSet), C = O((L) => L.setDataSet), w = g(
6267
6267
  () => tt(t, i),
6268
6268
  [t, i]
6269
6269
  ), E = T === "default" ? "medium" : T, _ = g(() => {
6270
- const U = on(s, {});
6270
+ const L = on(s, {});
6271
6271
  return Object.fromEntries(
6272
- Object.entries(U).map(([rt, it]) => [
6272
+ Object.entries(L).map(([rt, it]) => [
6273
6273
  rt,
6274
6274
  go(it)
6275
6275
  ])
6276
6276
  );
6277
6277
  }, [s]), M = g(() => {
6278
- const U = po(v);
6279
- return U.length > 0 ? U : void 0;
6280
- }, [v]), P = g(() => {
6278
+ const L = po(v);
6279
+ return L.length > 0 ? L : void 0;
6280
+ }, [v]), H = g(() => {
6281
6281
  if (w && r) {
6282
- const U = k(w, `${r}.activeTabKey`);
6283
- if (typeof U == "string") return U;
6282
+ const L = k(w, `${r}.activeTabKey`);
6283
+ if (typeof L == "string") return L;
6284
6284
  }
6285
- }, [w, r, k]) ?? h, Y = B((U) => {
6285
+ }, [w, r, k]) ?? h, P = B((L) => {
6286
6286
  if (f) {
6287
- f(U);
6287
+ f(L);
6288
6288
  return;
6289
6289
  }
6290
- w && r && C(w, `${r}.activeTabKey`, U), d && t && N(t, X(d, { key: U }));
6291
- }, [f, w, r, C, d, t, N]), { titleSlot: $, extraSlot: q, coverSlot: L, actionsSlot: W, otherChildren: R, actionsFromChildren: z } = g(() => {
6292
- let U = null, rt = null, it = null, nt = [];
6290
+ w && r && C(w, `${r}.activeTabKey`, L), d && t && N(t, X(d, { key: L }));
6291
+ }, [f, w, r, C, d, t, N]), { titleSlot: $, extraSlot: q, coverSlot: z, actionsSlot: W, otherChildren: R, actionsFromChildren: V } = g(() => {
6292
+ let L = null, rt = null, it = null, nt = [];
6293
6293
  const yt = [];
6294
6294
  let Ct = !1;
6295
- return a && (U = a), o && (rt = o), c && (it = c), m && (nt = m), qt.Children.forEach(S, (mt) => {
6295
+ return a && (L = a), o && (rt = o), c && (it = c), m && (nt = m), qt.Children.forEach(S, (mt) => {
6296
6296
  if (!qt.isValidElement(mt)) {
6297
6297
  yt.push(mt);
6298
6298
  return;
6299
6299
  }
6300
6300
  const I = mt.props, st = I["data-slot-type"];
6301
- st === "title" && !a ? U = mt : st === "extra" && !o ? rt = mt : st === "cover" && !c ? it = mt : st === "actions" && !m ? (nt = [mt], Ct = !0) : st === "body" && I.children ? yt.push(I.children) : yt.push(mt);
6302
- }), { titleSlot: U, extraSlot: rt, coverSlot: it, actionsSlot: nt, otherChildren: yt, actionsFromChildren: Ct };
6303
- }, [S, a, o, c, m]), K = g(() => {
6304
- const U = on(y, {});
6305
- return z ? { actionsLiMargin: "0px", ...U } : U;
6306
- }, [y, z]), V = /* @__PURE__ */ b(
6301
+ st === "title" && !a ? L = mt : st === "extra" && !o ? rt = mt : st === "cover" && !c ? it = mt : st === "actions" && !m ? (nt = [mt], Ct = !0) : st === "body" && I.children ? yt.push(I.children) : yt.push(mt);
6302
+ }), { titleSlot: L, extraSlot: rt, coverSlot: it, actionsSlot: nt, otherChildren: yt, actionsFromChildren: Ct };
6303
+ }, [S, a, o, c, m]), G = g(() => {
6304
+ const L = on(y, {});
6305
+ return V ? { actionsLiMargin: "0px", ...L } : L;
6306
+ }, [y, V]), j = /* @__PURE__ */ b(
6307
6307
  Je,
6308
6308
  {
6309
6309
  ...A,
6310
6310
  size: E,
6311
6311
  title: $,
6312
6312
  extra: q,
6313
- cover: L,
6313
+ cover: z,
6314
6314
  tabBarExtraContent: l,
6315
6315
  actions: W.length > 0 ? W : void 0,
6316
6316
  tabList: M,
6317
- activeTabKey: P,
6317
+ activeTabKey: H,
6318
6318
  defaultActiveTabKey: p,
6319
- onTabChange: M ? Y : void 0,
6319
+ onTabChange: M ? P : void 0,
6320
6320
  styles: _,
6321
6321
  children: R
6322
6322
  }
6323
6323
  );
6324
- return K && Object.keys(K).length > 0 ? /* @__PURE__ */ b(Mt, { theme: { components: { Card: K } }, children: V }) : V;
6324
+ return G && Object.keys(G).length > 0 ? /* @__PURE__ */ b(Mt, { theme: { components: { Card: G } }, children: j }) : j;
6325
6325
  }, ls = ({
6326
6326
  id: e,
6327
6327
  sessionId: t,
@@ -6599,18 +6599,18 @@ const Jc = ({
6599
6599
  },
6600
6600
  [h, m, t, u]
6601
6601
  ), k = () => f && qt.Children.count(f) > 0 ? qt.Children.map(f, (_, M) => {
6602
- const j = x[M] || {};
6602
+ const K = x[M] || {};
6603
6603
  return /* @__PURE__ */ b(
6604
6604
  qe.Panel,
6605
6605
  {
6606
- defaultSize: j.defaultSize,
6607
- min: j.min,
6608
- max: j.max,
6609
- collapsible: j.collapsible,
6610
- resizable: j.resizable !== !1,
6606
+ defaultSize: K.defaultSize,
6607
+ min: K.min,
6608
+ max: K.max,
6609
+ collapsible: K.collapsible,
6610
+ resizable: K.resizable !== !1,
6611
6611
  children: _
6612
6612
  },
6613
- j.key || M
6613
+ K.key || M
6614
6614
  );
6615
6615
  }) : x.map((_, M) => /* @__PURE__ */ b(
6616
6616
  qe.Panel,
@@ -6698,30 +6698,30 @@ const Jc = ({
6698
6698
  "page-size": u = "small",
6699
6699
  "page-showLessItems": x = !1
6700
6700
  }) => {
6701
- const D = u === "default" ? "middle" : u, T = O((j) => j.getDataSet), S = g(
6701
+ const D = u === "default" ? "middle" : u, T = O((K) => K.getDataSet), S = g(
6702
6702
  () => tt(t, i),
6703
6703
  [t, i]
6704
6704
  ), [A, N] = dt(1), [k, C] = dt(p), w = g(() => {
6705
6705
  if (S && r) {
6706
- const j = T(S, r);
6707
- return Array.isArray(j) ? j : [];
6706
+ const K = T(S, r);
6707
+ return Array.isArray(K) ? K : [];
6708
6708
  }
6709
6709
  return [];
6710
6710
  }, [S, r, T]), E = g(() => n ? w.length > 0 ? w : c || [] : S ? w : c || [], [n, S, w, c]), _ = g(() => {
6711
- let j = E;
6711
+ let K = E;
6712
6712
  if (!h) {
6713
- const P = (A - 1) * k, Y = P + k;
6714
- j = j.slice(P, Y);
6713
+ const H = (A - 1) * k, P = H + k;
6714
+ K = K.slice(H, P);
6715
6715
  }
6716
- return l ? j.slice(0, l) : j;
6716
+ return l ? K.slice(0, l) : K;
6717
6717
  }, [E, h, A, k, l]);
6718
6718
  if (!E || E.length === 0)
6719
6719
  return o ? /* @__PURE__ */ b(se, { children: o() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
6720
- const M = (j, P) => {
6721
- N(j), P && C(P);
6720
+ const M = (K, H) => {
6721
+ N(K), H && C(H);
6722
6722
  };
6723
6723
  return /* @__PURE__ */ ot("div", { style: { display: "flex", flexDirection: "column", ...m }, children: [
6724
- /* @__PURE__ */ b("div", { style: { flex: 1 }, children: _.map((j, P) => /* @__PURE__ */ b(qt.Fragment, { children: a ? a(j, P) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(j) }) }, j.id || P)) }),
6724
+ /* @__PURE__ */ b("div", { style: { flex: 1 }, children: _.map((K, H) => /* @__PURE__ */ b(qt.Fragment, { children: a ? a(K, H) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(K) }) }, K.id || H)) }),
6725
6725
  !h && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
6726
6726
  Ln,
6727
6727
  {
@@ -6920,10 +6920,10 @@ const Jc = ({
6920
6920
  if (!n || !f) return { componentName: "", props: {} };
6921
6921
  const w = n.split(".")[1], E = w ? f[w] || {} : f;
6922
6922
  if (typeof E == "object" && E !== null) {
6923
- const { componentName: _, props: M, ...j } = E;
6923
+ const { componentName: _, props: M, ...K } = E;
6924
6924
  return {
6925
6925
  componentName: _ || "",
6926
- props: M || j || {}
6926
+ props: M || K || {}
6927
6927
  };
6928
6928
  }
6929
6929
  return { componentName: "", props: {} };
@@ -7083,119 +7083,125 @@ const xs = ({
7083
7083
  bt(() => {
7084
7084
  So();
7085
7085
  }, []);
7086
- const p = O((K) => K.setDataSet), d = g(
7086
+ const p = O((j) => j.setDataSet), d = g(
7087
7087
  () => tt(t, i),
7088
7088
  [t, i]
7089
- ), f = O((K) => {
7089
+ ), f = O((j) => {
7090
7090
  if (!d || !r) return;
7091
- const V = K.getDataSet(d, r);
7092
- if (V != null && V !== "") return String(V);
7091
+ const L = j.getDataSet(d, r);
7092
+ if (L != null && L !== "") return String(L);
7093
7093
  }), s = O(
7094
- (K) => {
7095
- var V;
7096
- return t && e ? ((V = K.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
7094
+ (j) => {
7095
+ var L;
7096
+ return t && e ? ((L = j.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
7097
7097
  }
7098
7098
  ), y = g(() => {
7099
- let K;
7100
- if (f !== void 0) K = f;
7099
+ let j;
7100
+ if (f !== void 0) j = f;
7101
7101
  else if (s && typeof s == "object") {
7102
- const V = s.filePath;
7103
- V != null && V !== "" && (K = String(V));
7102
+ const L = s.filePath;
7103
+ L != null && L !== "" && (j = String(L));
7104
7104
  }
7105
- return K === void 0 && (K = a), K;
7105
+ return j === void 0 && (j = a), j;
7106
7106
  }, [f, s, a]), [u, x] = dt(0), [D, T] = dt(
7107
7107
  () => Math.max(1, o || 1)
7108
- ), [S, A] = dt(null), [N, k] = dt(!!y), C = $t(null), w = $t(null), [E, _] = dt(600), M = $t(0), j = (c || "").trim(), P = O((K) => {
7109
- if (!(!d || !j))
7110
- return K.getDataSet(d, `${j}.targetPage`);
7108
+ ), [S, A] = dt(null), [N, k] = dt(!!y), C = $t(null), w = $t(null), [E, _] = dt(600), M = $t(0), K = g(
7109
+ () => ({
7110
+ cMapUrl: `https://unpkg.com/pdfjs-dist@${he.version}/cmaps/`,
7111
+ cMapPacked: !0
7112
+ }),
7113
+ []
7114
+ ), H = (c || "").trim(), P = O((j) => {
7115
+ if (!(!d || !H))
7116
+ return j.getDataSet(d, `${H}.targetPage`);
7111
7117
  });
7112
7118
  bt(() => {
7113
- const K = w.current;
7114
- if (!K) return;
7115
- const V = new ResizeObserver(() => {
7116
- const rt = K.clientWidth;
7117
- rt > 0 && _(rt);
7119
+ const j = w.current;
7120
+ if (!j) return;
7121
+ const L = new ResizeObserver(() => {
7122
+ const it = j.clientWidth;
7123
+ it > 0 && _(it);
7118
7124
  });
7119
- V.observe(K);
7120
- const U = K.clientWidth;
7121
- return U > 0 && _(U), () => V.disconnect();
7125
+ L.observe(j);
7126
+ const rt = j.clientWidth;
7127
+ return rt > 0 && _(rt), () => L.disconnect();
7122
7128
  }, [y]);
7123
- const Y = B(
7124
- (K, V) => {
7125
- !d || !j || (p(d, `${j}.currentPage`, K), V > 0 && p(d, `${j}.totalPages`, V));
7129
+ const $ = B(
7130
+ (j, L) => {
7131
+ !d || !H || (p(d, `${H}.currentPage`, j), L > 0 && p(d, `${H}.totalPages`, L));
7126
7132
  },
7127
- [d, j, p]
7133
+ [d, H, p]
7128
7134
  );
7129
7135
  bt(() => {
7130
- u > 0 && Y(D, u);
7131
- }, [D, u, Y]), bt(() => {
7132
- const K = P;
7133
- if (typeof K != "number" || !Number.isFinite(K)) return;
7134
- const V = Math.max(1, Math.floor(K));
7135
- u > 0 ? T(Math.min(V, u)) : T(V), d && j && p(d, `${j}.targetPage`, void 0);
7136
- }, [P, u, d, j, p]), bt(() => {
7137
- T((K) => Math.max(1, o || K));
7136
+ u > 0 && $(D, u);
7137
+ }, [D, u, $]), bt(() => {
7138
+ const j = P;
7139
+ if (typeof j != "number" || !Number.isFinite(j)) return;
7140
+ const L = Math.max(1, Math.floor(j));
7141
+ u > 0 ? T(Math.min(L, u)) : T(L), d && H && p(d, `${H}.targetPage`, void 0);
7142
+ }, [P, u, d, H, p]), bt(() => {
7143
+ T((j) => Math.max(1, o || j));
7138
7144
  }, [o, y]);
7139
- const $ = B(
7140
- ({ numPages: K }) => {
7141
- x(K), A(null), k(!1), T((V) => Math.min(Math.max(1, V), K || 1));
7145
+ const q = B(
7146
+ ({ numPages: j }) => {
7147
+ x(j), A(null), k(!1), T((L) => Math.min(Math.max(1, L), j || 1));
7142
7148
  },
7143
7149
  []
7144
- ), q = B((K) => {
7145
- A(K), k(!1);
7150
+ ), z = B((j) => {
7151
+ A(j), k(!1);
7146
7152
  }, []);
7147
7153
  bt(() => {
7148
7154
  k(!!y), A(null);
7149
7155
  }, [y]);
7150
- const L = B(() => {
7156
+ const W = B(() => {
7151
7157
  if (!y) return;
7152
- const K = window.open(y, "_blank", "noopener,noreferrer");
7153
- K && (K.onload = () => {
7158
+ const j = window.open(y, "_blank", "noopener,noreferrer");
7159
+ j && (j.onload = () => {
7154
7160
  try {
7155
- K.print();
7161
+ j.print();
7156
7162
  } catch {
7157
7163
  }
7158
7164
  });
7159
- }, [y]), W = B(() => {
7160
- if (!y) return;
7161
- const K = document.createElement("a");
7162
- K.href = y, K.download = "", K.rel = "noopener noreferrer", K.target = "_blank", document.body.appendChild(K), K.click(), K.remove();
7163
7165
  }, [y]), R = B(() => {
7164
- var V;
7165
- const K = C.current;
7166
- K && ((V = K.requestFullscreen) == null || V.call(K));
7167
- }, []), z = B(() => {
7166
+ if (!y) return;
7167
+ const j = document.createElement("a");
7168
+ j.href = y, j.download = "", j.rel = "noopener noreferrer", j.target = "_blank", document.body.appendChild(j), j.click(), j.remove();
7169
+ }, [y]), V = B(() => {
7170
+ var L;
7171
+ const j = C.current;
7172
+ j && ((L = j.requestFullscreen) == null || L.call(j));
7173
+ }, []), G = B(() => {
7168
7174
  document.fullscreenElement && document.exitFullscreen();
7169
7175
  }, []);
7170
7176
  return bt(() => {
7171
7177
  if (!s || typeof s != "object") return;
7172
- const K = s._pdfCmdNonce, V = s.pdfCommand, U = s.pdfCommandArg;
7173
- if (!(K == null || K === M.current || !V))
7174
- switch (M.current = K, V) {
7178
+ const j = s._pdfCmdNonce, L = s.pdfCommand, rt = s.pdfCommandArg;
7179
+ if (!(j == null || j === M.current || !L))
7180
+ switch (M.current = j, L) {
7175
7181
  case "print":
7176
- L();
7182
+ W();
7177
7183
  break;
7178
7184
  case "download":
7179
- W();
7185
+ R();
7180
7186
  break;
7181
7187
  case "enterFullscreen":
7182
- R();
7188
+ V();
7183
7189
  break;
7184
7190
  case "exitFullscreen":
7185
- z();
7191
+ G();
7186
7192
  break;
7187
7193
  case "goToPage":
7188
- typeof U == "number" && u > 0 ? T(
7189
- Math.max(1, Math.min(Math.floor(U), u))
7190
- ) : typeof U == "number" && T(Math.max(1, Math.floor(U)));
7194
+ typeof rt == "number" && u > 0 ? T(
7195
+ Math.max(1, Math.min(Math.floor(rt), u))
7196
+ ) : typeof rt == "number" && T(Math.max(1, Math.floor(rt)));
7191
7197
  break;
7192
7198
  }
7193
7199
  }, [
7194
7200
  s,
7195
- L,
7196
7201
  W,
7197
7202
  R,
7198
- z,
7203
+ V,
7204
+ G,
7199
7205
  u
7200
7206
  ]), /* @__PURE__ */ b(
7201
7207
  "div",
@@ -7223,20 +7229,17 @@ const xs = ({
7223
7229
  ai,
7224
7230
  {
7225
7231
  file: y,
7226
- onLoadSuccess: $,
7227
- onLoadError: q,
7232
+ onLoadSuccess: q,
7233
+ onLoadError: z,
7228
7234
  loading: null,
7229
- options: {
7230
- cMapUrl: `https://unpkg.com/pdfjs-dist@${he.version}/cmaps/`,
7231
- cMapPacked: !0
7232
- },
7235
+ options: K,
7233
7236
  children: /* @__PURE__ */ b(
7234
7237
  oi,
7235
7238
  {
7236
7239
  pageNumber: D,
7237
7240
  width: E,
7238
- renderTextLayer: !0,
7239
- renderAnnotationLayer: !0
7241
+ renderTextLayer: !1,
7242
+ renderAnnotationLayer: !1
7240
7243
  }
7241
7244
  )
7242
7245
  },
@@ -7314,26 +7317,26 @@ function Zt(e, t) {
7314
7317
  annotations: E,
7315
7318
  axis: _,
7316
7319
  scrollbar: M,
7317
- slider: j,
7318
- theme: P,
7319
- state: Y,
7320
+ slider: K,
7321
+ theme: H,
7322
+ state: P,
7320
7323
  // 事件配置
7321
7324
  events: $,
7322
7325
  // 其余配置直接透传
7323
7326
  ...q
7324
- } = o, L = $t(null), W = O((G) => G.getDataSet), R = O((G) => G.addCommand), z = g(() => {
7327
+ } = o, z = $t(null), W = O((Y) => Y.getDataSet), R = O((Y) => Y.addCommand), V = g(() => {
7325
7328
  if (p && d) {
7326
- const H = W(p, d);
7327
- if (H !== void 0) return H;
7329
+ const U = W(p, d);
7330
+ if (U !== void 0) return U;
7328
7331
  }
7329
- const G = Dt(f);
7330
- return G !== void 0 ? G : m ? r : [];
7331
- }, [f, p, d, W, m]), K = (G) => {
7332
- var H;
7333
- if (L.current = G, !m && l) {
7332
+ const Y = Dt(f);
7333
+ return Y !== void 0 ? Y : m ? r : [];
7334
+ }, [f, p, d, W, m]), G = (Y) => {
7335
+ var U;
7336
+ if (z.current = Y, !m && l) {
7334
7337
  const et = Dt($);
7335
7338
  et && typeof et == "object" && Object.entries(et).forEach(([Q, lt]) => {
7336
- typeof lt == "string" && G.on(Q, (ft) => {
7339
+ typeof lt == "string" && Y.on(Q, (ft) => {
7337
7340
  R(l, {
7338
7341
  actionName: lt,
7339
7342
  arg: ft,
@@ -7342,42 +7345,42 @@ function Zt(e, t) {
7342
7345
  });
7343
7346
  });
7344
7347
  }
7345
- (H = q.onReady) == null || H.call(q, G);
7346
- }, V = Dt(s) || {}, U = {
7347
- data: z,
7348
+ (U = q.onReady) == null || U.call(q, Y);
7349
+ }, j = Dt(s) || {}, L = {
7350
+ data: V,
7348
7351
  // 优先使用 common 中的配置,没配置则使用默认值
7349
- height: V.height ?? i,
7350
- autoFit: wo(V.autoFit, !0),
7352
+ height: j.height ?? i,
7353
+ autoFit: wo(j.autoFit, !0),
7351
7354
  // 合并其他通用配置 (margin, padding, insert, etc.)
7352
- ...V,
7355
+ ...j,
7353
7356
  // 设计器模式禁用动画
7354
7357
  animate: m ? !1 : Dt(k),
7355
- onReady: K,
7358
+ onReady: G,
7356
7359
  ...q
7357
7360
  }, rt = Dt(T);
7358
- rt !== void 0 && (U.title = rt);
7361
+ rt !== void 0 && (L.title = rt);
7359
7362
  const it = Dt(S);
7360
- it !== void 0 && (U.legend = it);
7363
+ it !== void 0 && (L.legend = it);
7361
7364
  const nt = Dt(A);
7362
- nt !== void 0 && (U.label = nt);
7365
+ nt !== void 0 && (L.label = nt);
7363
7366
  const yt = Dt(N);
7364
- yt !== void 0 && (U.tooltip = yt);
7367
+ yt !== void 0 && (L.tooltip = yt);
7365
7368
  const Ct = Dt(C);
7366
- Ct !== void 0 && (U.scale = Ct);
7369
+ Ct !== void 0 && (L.scale = Ct);
7367
7370
  const mt = Dt(w);
7368
- mt !== void 0 && (U.interaction = mt);
7371
+ mt !== void 0 && (L.interaction = mt);
7369
7372
  const I = Dt(E);
7370
- I !== void 0 && (U.annotations = I);
7373
+ I !== void 0 && (L.annotations = I);
7371
7374
  const st = Dt(_);
7372
- st !== void 0 && (U.axis = st);
7375
+ st !== void 0 && (L.axis = st);
7373
7376
  const at = Dt(M);
7374
- at !== void 0 && (U.scrollbar = at);
7375
- const _t = Dt(j);
7376
- _t !== void 0 && (U.slider = _t);
7377
- const Ot = Dt(P);
7378
- Ot !== void 0 && (U.theme = Ot);
7379
- const Bt = Dt(Y);
7380
- return Bt !== void 0 && (U.state = Bt), /* @__PURE__ */ b(e, { ...U });
7377
+ at !== void 0 && (L.scrollbar = at);
7378
+ const _t = Dt(K);
7379
+ _t !== void 0 && (L.slider = _t);
7380
+ const Ot = Dt(H);
7381
+ Ot !== void 0 && (L.theme = Ot);
7382
+ const Bt = Dt(P);
7383
+ return Bt !== void 0 && (L.state = Bt), /* @__PURE__ */ b(e, { ...L });
7381
7384
  };
7382
7385
  return a.displayName = `withBaseChart(${n})`, a;
7383
7386
  }