@nuwatop/code-canvas-core 0.5.107 → 0.5.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,13 +1,13 @@
1
- import { jsx as v, jsxs as ve, Fragment as Ot } from "react/jsx-runtime";
1
+ import { jsx as v, jsxs as ve, Fragment as Rt } from "react/jsx-runtime";
2
2
  import { createRoot as Gr } from "react-dom/client";
3
- import { theme as wt, ConfigProvider as Ze, Button as yt, Tooltip as nn, Space as Be, Input as an, InputNumber as lr, Select as ur, Switch as Jr, DatePicker as rn, TimePicker as dr, Radio as un, Checkbox as $t, Rate as Qr, Slider as Zr, Cascader as Xr, TreeSelect as ei, message as At, Upload as fr, Image as St, AutoComplete as ti, Form as en, Transfer as ni, Segmented as ri, Modal as mr, Table as ii, Flex as hr, Typography as Tn, Tabs as oi, Tree as ai, Timeline as si, Steps as ci, Statistic as pn, Carousel as li, Avatar as ui, Tag as yr, Pagination as gr, Breadcrumb as di, Menu as fi, Calendar as mi, Badge as pr, Masonry as hi, Alert as vr, Drawer as yi, Result as gi, Card as vn, Divider as jn, Dropdown as pi, Row as vi, Col as bi, QRCode as Si, Splitter as dn, Spin as br, Watermark as wi, Empty as xi } from "antd";
3
+ import { theme as wt, ConfigProvider as Ze, Button as gt, Tooltip as nn, Space as Be, Input as an, InputNumber as lr, Select as ur, Switch as Jr, DatePicker as rn, TimePicker as dr, Radio as un, Checkbox as Ot, Rate as Qr, Slider as Zr, Cascader as Xr, TreeSelect as ei, message as At, Upload as fr, Image as St, AutoComplete as ti, Form as en, Transfer as ni, Segmented as ri, Modal as mr, Table as ii, Flex as hr, Typography as Tn, Tabs as oi, Tree as ai, Timeline as si, Steps as ci, Statistic as pn, Carousel as li, Avatar as ui, Tag as yr, Pagination as gr, Breadcrumb as di, Menu as fi, Calendar as mi, Badge as pr, Masonry as hi, Alert as vr, Drawer as yi, Result as gi, Card as vn, Divider as jn, Dropdown as pi, Row as vi, Col as bi, QRCode as Si, Splitter as dn, Spin as br, Watermark as wi, Empty as xi } from "antd";
4
4
  import { StyleProvider as Ai, createCache as Di } from "@ant-design/cssinjs";
5
5
  import Ci from "antd/locale/zh_CN";
6
6
  import { create as Ni } from "zustand";
7
7
  import { subscribeWithSelector as ki } from "zustand/middleware";
8
8
  import { immer as Ti } from "zustand/middleware/immer";
9
- import nt, { useMemo as m, useCallback as q, useEffect as Fe, createContext as Mi, useContext as ze, useState as Ce, useRef as Pe, useLayoutEffect as Sr, useId as _i, Suspense as Ei } from "react";
10
- import * as dt from "@ant-design/icons";
9
+ import it, { useMemo as m, useCallback as q, useEffect as Fe, createContext as Mi, useContext as ze, useState as Ce, useRef as Pe, useLayoutEffect as Sr, useId as _i, Suspense as Ei } from "react";
10
+ import * as mt from "@ant-design/icons";
11
11
  import { CloseCircleOutlined as $i, PlusOutlined as wr, UploadOutlined as xr, MenuOutlined as Oi, MinusOutlined as Ri, LeftOutlined as Ar, RightOutlined as Dr, UpOutlined as ji, DownOutlined as Cr, ApiOutlined as Fi, InboxOutlined as Li, FilePdfOutlined as Vi } from "@ant-design/icons";
12
12
  import Bi from "clsx";
13
13
  import Qe from "dayjs";
@@ -89,7 +89,7 @@ const Ji = () => {
89
89
  }, yc = () => {
90
90
  console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Sn = !1;
91
91
  };
92
- function Rt(t) {
92
+ function jt(t) {
93
93
  const e = t.match(/^(.+)\[(\d+)\]$/);
94
94
  return e ? {
95
95
  baseName: e[1],
@@ -99,7 +99,7 @@ function Rt(t) {
99
99
  index: null
100
100
  };
101
101
  }
102
- function Et(t) {
102
+ function $t(t) {
103
103
  if (!t || typeof t != "string") return [];
104
104
  const e = [], n = t.split(".").flatMap((r) => {
105
105
  const i = r.match(/^([^\[]+)(\[\d+\])(.*)$/);
@@ -119,7 +119,7 @@ function Et(t) {
119
119
  } else r && e.push({ type: "property", key: r });
120
120
  return e;
121
121
  }
122
- function qt(t, e) {
122
+ function Wt(t, e) {
123
123
  if (e.length === 0) return t;
124
124
  let n = t;
125
125
  for (const r of e) {
@@ -150,7 +150,7 @@ function me(t, e) {
150
150
  if (e)
151
151
  return t ? `${t}_${e}` : e;
152
152
  }
153
- function Kt(t, e) {
153
+ function zt(t, e) {
154
154
  if (e)
155
155
  return t ? `${t}_${e}_validate` : `${e}_validate`;
156
156
  }
@@ -161,12 +161,12 @@ const Fn = {
161
161
  validateStore: {}
162
162
  };
163
163
  function Ln(t, e, n, r) {
164
- const { baseName: i, index: o } = Rt(e);
164
+ const { baseName: i, index: o } = jt(e);
165
165
  if (t.dataSets[i] || (t.dataSets[i] = {}), o !== null) {
166
166
  const h = t.dataSets[i];
167
167
  let d = h.value;
168
168
  Array.isArray(d) || (d = []);
169
- const g = d[o], p = n.length === 0 ? g : qt(g ?? {}, n), A = r(p), y = n.length === 0 ? A : Zi(g ?? {}, n, A), u = [...d];
169
+ const g = d[o], p = n.length === 0 ? g : Wt(g ?? {}, n), A = r(p), y = n.length === 0 ? A : Zi(g ?? {}, n, A), u = [...d];
170
170
  u[o] = y, t.dataSets[i] = { ...h, value: u };
171
171
  return;
172
172
  }
@@ -190,26 +190,26 @@ const R = Ni()(
190
190
  // ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
191
191
  setDataSet: (n, r, i, o = !0) => t((a) => {
192
192
  if (!n) return;
193
- const s = r ? Et(r) : [], c = o && typeof i == "object" && i !== null && !Array.isArray(i);
193
+ const s = r ? $t(r) : [], c = o && typeof i == "object" && i !== null && !Array.isArray(i);
194
194
  Ln(a, n, s, (d) => c && d != null && typeof d == "object" && !Array.isArray(d) ? { ...d, ...i } : i);
195
195
  }),
196
196
  updateDataSet: (n, r, i) => t((o) => {
197
197
  if (!n || typeof i != "function") return;
198
- const a = r ? Et(r) : [];
198
+ const a = r ? $t(r) : [];
199
199
  Ln(o, n, a, i);
200
200
  }),
201
201
  getDataSet: (n, r) => {
202
202
  if (!n) return;
203
- const i = e().dataSets, { baseName: o, index: a } = Rt(n), s = i[o];
203
+ const i = e().dataSets, { baseName: o, index: a } = jt(n), s = i[o];
204
204
  if (a !== null) {
205
205
  const c = s == null ? void 0 : s.value;
206
206
  if (!Array.isArray(c) || c[a] === void 0)
207
207
  return;
208
208
  const h = c[a];
209
- return r ? qt(h, Et(r)) : h;
209
+ return r ? Wt(h, $t(r)) : h;
210
210
  }
211
211
  if (s)
212
- return r ? qt(s, Et(r)) : s;
212
+ return r ? Wt(s, $t(r)) : s;
213
213
  },
214
214
  setDataSetBatch: (n, r) => t((i) => {
215
215
  i.dataSets[n] = {
@@ -249,16 +249,16 @@ const R = Ni()(
249
249
  },
250
250
  // ============ 校验结果(key 使用 getValidateStoreKey,考虑 sessionId) ============
251
251
  setValidateResult: (n, r, i, o) => t((a) => {
252
- const s = Kt(n, r);
252
+ const s = zt(n, r);
253
253
  s && (a.validateStore[s] || (a.validateStore[s] = {}), a.validateStore[s][i] = o);
254
254
  }),
255
255
  getValidateResult: (n, r, i) => {
256
256
  var a;
257
- const o = Kt(n, r);
257
+ const o = zt(n, r);
258
258
  return o ? ((a = e().validateStore[o]) == null ? void 0 : a[i]) ?? "" : "";
259
259
  },
260
260
  getValidateResults: (n, r) => {
261
- const i = Kt(n, r);
261
+ const i = zt(n, r);
262
262
  return i ? e().validateStore[i] ?? {} : {};
263
263
  },
264
264
  // ============ 全局操作 ============
@@ -298,7 +298,7 @@ function bc() {
298
298
  function Xi(t, e) {
299
299
  const n = R((i) => {
300
300
  if (!t) return;
301
- const o = Rt(t).baseName;
301
+ const o = jt(t).baseName;
302
302
  return i.dataSets[o];
303
303
  }), r = R((i) => i.getDataSet);
304
304
  return m(() => {
@@ -369,11 +369,11 @@ function xc(t) {
369
369
  return eo(e, n, r);
370
370
  };
371
371
  }
372
- const zt = "@inherit";
372
+ const It = "@inherit";
373
373
  function to(t, e) {
374
- if (!e || !t.startsWith(zt) || t.length <= zt.length)
374
+ if (!e || !t.startsWith(It) || t.length <= It.length)
375
375
  return;
376
- const n = t.slice(zt.length), r = n.charAt(0).toLowerCase() + n.slice(1);
376
+ const n = t.slice(It.length), r = n.charAt(0).toLowerCase() + n.slice(1);
377
377
  return e[r];
378
378
  }
379
379
  function Dt(t, e = null, n = {}, r) {
@@ -389,7 +389,7 @@ function Dt(t, e = null, n = {}, r) {
389
389
  const d = h.trim();
390
390
  if (d === "@value")
391
391
  return e;
392
- if (d.startsWith(zt) && d.length > zt.length)
392
+ if (d.startsWith(It) && d.length > It.length)
393
393
  return to(d, r ?? null);
394
394
  if (d.startsWith("@")) {
395
395
  const g = d.substring(1);
@@ -426,17 +426,17 @@ function Ct() {
426
426
  }, Ct.apply(this, arguments);
427
427
  }
428
428
  function no(t, e) {
429
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Wt(t, e);
429
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Pt(t, e);
430
430
  }
431
431
  function wn(t) {
432
432
  return wn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
433
433
  return n.__proto__ || Object.getPrototypeOf(n);
434
434
  }, wn(t);
435
435
  }
436
- function Wt(t, e) {
437
- return Wt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
436
+ function Pt(t, e) {
437
+ return Pt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
438
438
  return r.__proto__ = i, r;
439
- }, Wt(t, e);
439
+ }, Pt(t, e);
440
440
  }
441
441
  function ro() {
442
442
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -453,7 +453,7 @@ function tn(t, e, n) {
453
453
  var s = [null];
454
454
  s.push.apply(s, o);
455
455
  var c = Function.bind.apply(i, s), h = new c();
456
- return a && Wt(h, a.prototype), h;
456
+ return a && Pt(h, a.prototype), h;
457
457
  }, tn.apply(null, arguments);
458
458
  }
459
459
  function io(t) {
@@ -479,7 +479,7 @@ function xn(t) {
479
479
  writable: !0,
480
480
  configurable: !0
481
481
  }
482
- }), Wt(i, r);
482
+ }), Pt(i, r);
483
483
  }, xn(t);
484
484
  }
485
485
  var oo = /%[sdj%]/g, Tr = function() {
@@ -497,7 +497,7 @@ function An(t) {
497
497
  e[r] = e[r] || [], e[r].push(n);
498
498
  }), e;
499
499
  }
500
- function at(t) {
500
+ function st(t) {
501
501
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
502
502
  n[r - 1] = arguments[r];
503
503
  var i = 0, o = n.length;
@@ -628,9 +628,9 @@ function zn(t, e) {
628
628
  return t;
629
629
  }
630
630
  var Mr = function(e, n, r, i, o, a) {
631
- e.required && (!r.hasOwnProperty(e.field) || Ue(n, a || e.type)) && i.push(at(o.messages.required, e.fullField));
631
+ e.required && (!r.hasOwnProperty(e.field) || Ue(n, a || e.type)) && i.push(st(o.messages.required, e.fullField));
632
632
  }, mo = function(e, n, r, i, o) {
633
- (/^\s+$/.test(n) || n === "") && i.push(at(o.messages.whitespace, e.fullField));
633
+ (/^\s+$/.test(n) || n === "") && i.push(st(o.messages.whitespace, e.fullField));
634
634
  }, Zt, ho = function() {
635
635
  if (Zt)
636
636
  return Zt;
@@ -665,12 +665,12 @@ var Mr = function(e, n, r, i, o, a) {
665
665
  // 'i',
666
666
  // ),
667
667
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
668
- }, Bt = {
668
+ }, Kt = {
669
669
  integer: function(e) {
670
- return Bt.number(e) && parseInt(e, 10) === e;
670
+ return Kt.number(e) && parseInt(e, 10) === e;
671
671
  },
672
672
  float: function(e) {
673
- return Bt.number(e) && !Bt.integer(e);
673
+ return Kt.number(e) && !Kt.integer(e);
674
674
  },
675
675
  array: function(e) {
676
676
  return Array.isArray(e);
@@ -691,7 +691,7 @@ var Mr = function(e, n, r, i, o, a) {
691
691
  return isNaN(e) ? !1 : typeof e == "number";
692
692
  },
693
693
  object: function(e) {
694
- return typeof e == "object" && !Bt.array(e);
694
+ return typeof e == "object" && !Kt.array(e);
695
695
  },
696
696
  method: function(e) {
697
697
  return typeof e == "function";
@@ -711,21 +711,21 @@ var Mr = function(e, n, r, i, o, a) {
711
711
  return;
712
712
  }
713
713
  var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = e.type;
714
- a.indexOf(s) > -1 ? Bt[s](n) || i.push(at(o.messages.types[s], e.fullField, e.type)) : s && typeof n !== e.type && i.push(at(o.messages.types[s], e.fullField, e.type));
714
+ a.indexOf(s) > -1 ? Kt[s](n) || i.push(st(o.messages.types[s], e.fullField, e.type)) : s && typeof n !== e.type && i.push(st(o.messages.types[s], e.fullField, e.type));
715
715
  }, go = function(e, n, r, i, o) {
716
716
  var a = typeof e.len == "number", s = typeof e.min == "number", c = typeof e.max == "number", h = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, d = n, g = null, p = typeof n == "number", A = typeof n == "string", y = Array.isArray(n);
717
717
  if (p ? g = "number" : A ? g = "string" : y && (g = "array"), !g)
718
718
  return !1;
719
- y && (d = n.length), A && (d = n.replace(h, "_").length), a ? d !== e.len && i.push(at(o.messages[g].len, e.fullField, e.len)) : s && !c && d < e.min ? i.push(at(o.messages[g].min, e.fullField, e.min)) : c && !s && d > e.max ? i.push(at(o.messages[g].max, e.fullField, e.max)) : s && c && (d < e.min || d > e.max) && i.push(at(o.messages[g].range, e.fullField, e.min, e.max));
720
- }, Mt = "enum", po = function(e, n, r, i, o) {
721
- e[Mt] = Array.isArray(e[Mt]) ? e[Mt] : [], e[Mt].indexOf(n) === -1 && i.push(at(o.messages[Mt], e.fullField, e[Mt].join(", ")));
719
+ y && (d = n.length), A && (d = n.replace(h, "_").length), a ? d !== e.len && i.push(st(o.messages[g].len, e.fullField, e.len)) : s && !c && d < e.min ? i.push(st(o.messages[g].min, e.fullField, e.min)) : c && !s && d > e.max ? i.push(st(o.messages[g].max, e.fullField, e.max)) : s && c && (d < e.min || d > e.max) && i.push(st(o.messages[g].range, e.fullField, e.min, e.max));
720
+ }, _t = "enum", po = function(e, n, r, i, o) {
721
+ e[_t] = Array.isArray(e[_t]) ? e[_t] : [], e[_t].indexOf(n) === -1 && i.push(st(o.messages[_t], e.fullField, e[_t].join(", ")));
722
722
  }, vo = function(e, n, r, i, o) {
723
723
  if (e.pattern) {
724
724
  if (e.pattern instanceof RegExp)
725
- e.pattern.lastIndex = 0, e.pattern.test(n) || i.push(at(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
725
+ e.pattern.lastIndex = 0, e.pattern.test(n) || i.push(st(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
726
726
  else if (typeof e.pattern == "string") {
727
727
  var a = new RegExp(e.pattern);
728
- a.test(n) || i.push(at(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
728
+ a.test(n) || i.push(st(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
729
729
  }
730
730
  }
731
731
  }, Ne = {
@@ -853,7 +853,7 @@ var Mr = function(e, n, r, i, o, a) {
853
853
  Ne.required(e, n, i, a, o);
854
854
  }
855
855
  r(a);
856
- }, It = {
856
+ }, qt = {
857
857
  string: bo,
858
858
  method: So,
859
859
  number: wo,
@@ -925,7 +925,7 @@ function Dn() {
925
925
  }
926
926
  };
927
927
  }
928
- var Cn = Dn(), Pt = /* @__PURE__ */ function() {
928
+ var Cn = Dn(), Ht = /* @__PURE__ */ function() {
929
929
  function t(n) {
930
930
  this.rules = null, this._messages = Cn, this.define(n);
931
931
  }
@@ -1003,7 +1003,7 @@ var Cn = Dn(), Pt = /* @__PURE__ */ function() {
1003
1003
  f(_);
1004
1004
  else {
1005
1005
  if (l.required && !u.value)
1006
- return l.message !== void 0 ? _ = [].concat(l.message).map(Kn(l, s)) : c.error && (_ = [c.error(l, at(c.messages.required, l.field))]), f(_);
1006
+ return l.message !== void 0 ? _ = [].concat(l.message).map(Kn(l, s)) : c.error && (_ = [c.error(l, st(c.messages.required, l.field))]), f(_);
1007
1007
  var N = {};
1008
1008
  l.defaultField && Object.keys(u.value).map(function(k) {
1009
1009
  N[k] = l.defaultField;
@@ -1042,24 +1042,24 @@ var Cn = Dn(), Pt = /* @__PURE__ */ function() {
1042
1042
  d(u);
1043
1043
  }, s);
1044
1044
  }, e.getType = function(r) {
1045
- if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !It.hasOwnProperty(r.type))
1046
- throw new Error(at("Unknown rule type %s", r.type));
1045
+ if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !qt.hasOwnProperty(r.type))
1046
+ throw new Error(st("Unknown rule type %s", r.type));
1047
1047
  return r.type || "string";
1048
1048
  }, e.getValidationMethod = function(r) {
1049
1049
  if (typeof r.validator == "function")
1050
1050
  return r.validator;
1051
1051
  var i = Object.keys(r), o = i.indexOf("message");
1052
- return o !== -1 && i.splice(o, 1), i.length === 1 && i[0] === "required" ? It.required : It[this.getType(r)] || void 0;
1052
+ return o !== -1 && i.splice(o, 1), i.length === 1 && i[0] === "required" ? qt.required : qt[this.getType(r)] || void 0;
1053
1053
  }, t;
1054
1054
  }();
1055
- Pt.register = function(e, n) {
1055
+ Ht.register = function(e, n) {
1056
1056
  if (typeof n != "function")
1057
1057
  throw new Error("Cannot register a validator by type, validator is not a function");
1058
- It[e] = n;
1058
+ qt[e] = n;
1059
1059
  };
1060
- Pt.warning = Tr;
1061
- Pt.messages = Cn;
1062
- Pt.validators = It;
1060
+ Ht.warning = Tr;
1061
+ Ht.messages = Cn;
1062
+ Ht.validators = qt;
1063
1063
  function Ro(t) {
1064
1064
  if (!t || typeof t != "string") return null;
1065
1065
  try {
@@ -1086,15 +1086,15 @@ function Er(t, e, n, r) {
1086
1086
  return;
1087
1087
  }
1088
1088
  const i = { [qn]: t };
1089
- new Pt(i).validate({ [qn]: e }, { first: !0 }).then(() => {
1089
+ new Ht(i).validate({ [qn]: e }, { first: !0 }).then(() => {
1090
1090
  n();
1091
1091
  }).catch(({ errors: a }) => {
1092
1092
  r(a || []);
1093
1093
  });
1094
1094
  }
1095
- function rt(t) {
1095
+ function ot(t) {
1096
1096
  const { rules: e, dataSet: n, dataSetField: r, sessionId: i, id: o, develop: a } = t, s = R((x) => x.setValidateResult), c = R((x) => x.getProps), h = R((x) => x.setProps), d = m(
1097
- () => Kt(i, n),
1097
+ () => zt(i, n),
1098
1098
  [i, n]
1099
1099
  ), g = R(
1100
1100
  (x) => {
@@ -1162,7 +1162,7 @@ function Cc(t) {
1162
1162
  return e === void 0 || !Number.isFinite(Number(e)) ? "" : `items_${e}_`;
1163
1163
  }
1164
1164
  const jo = ["value", "validateStatus", "help"];
1165
- function it(t, e, n) {
1165
+ function at(t, e, n) {
1166
1166
  const r = (n == null ? void 0 : n.skipKeys) ?? jo, i = { ...t };
1167
1167
  return !e || typeof e != "object" || Object.keys(e).forEach((o) => {
1168
1168
  if (r.includes(o)) return;
@@ -1170,7 +1170,7 @@ function it(t, e, n) {
1170
1170
  a != null && (i[o] = a);
1171
1171
  }), i;
1172
1172
  }
1173
- function vt(t, e, n) {
1173
+ function bt(t, e, n) {
1174
1174
  if (t == null || t === "") return null;
1175
1175
  const r = $r(e), i = r.length > 0 ? r[r.length - 1] : void 0, o = i && typeof i.parentIndex == "number" ? i.parentIndex : void 0, a = i && typeof i.index == "number" ? i.index : void 0;
1176
1176
  if (o !== void 0 && Number.isFinite(o) && a !== void 0 && Number.isFinite(a))
@@ -1183,21 +1183,21 @@ function vt(t, e, n) {
1183
1183
  const s = o !== void 0 && Number.isFinite(o) ? o : a !== void 0 && Number.isFinite(a) ? a : typeof n == "number" ? n : void 0;
1184
1184
  return s !== void 0 && Number.isFinite(s) ? `${String(t)}_${s}` : String(t);
1185
1185
  }
1186
- function ut(t) {
1186
+ function ft(t) {
1187
1187
  return typeof t == "string" && t.trim() !== "";
1188
1188
  }
1189
1189
  function Fo(t, e) {
1190
1190
  return t === "config.cells" && e.startsWith("config.content.") ? `config.${e.slice(15)}` : e;
1191
1191
  }
1192
1192
  function Wn(t) {
1193
- return ut(t) && t.trim().startsWith("[");
1193
+ return ft(t) && t.trim().startsWith("[");
1194
1194
  }
1195
1195
  function Pn(t) {
1196
- return ut(t) && /^items\[\d+\]/.test(t.trim());
1196
+ return ft(t) && /^items\[\d+\]/.test(t.trim());
1197
1197
  }
1198
1198
  function Lo(t, e, n, r) {
1199
1199
  const i = n ?? (r == null ? void 0 : r.sessionId);
1200
- if (ut(t))
1200
+ if (ft(t))
1201
1201
  return {
1202
1202
  dataSet: t,
1203
1203
  dataSetField: e,
@@ -1210,7 +1210,7 @@ function Lo(t, e, n, r) {
1210
1210
  sessionId: i
1211
1211
  };
1212
1212
  const o = typeof r.index == "number" ? r.index : void 0, a = typeof r.parentIndex == "number" ? r.parentIndex : void 0, s = r.dataSet, c = r.dataSetFieldRoot;
1213
- if (ut(e)) {
1213
+ if (ft(e)) {
1214
1214
  const h = Fo(
1215
1215
  c,
1216
1216
  e.trim()
@@ -1218,17 +1218,17 @@ function Lo(t, e, n, r) {
1218
1218
  if (h.startsWith("["))
1219
1219
  return {
1220
1220
  dataSet: s,
1221
- dataSetField: ut(c) ? `${c}${h}` : h,
1221
+ dataSetField: ft(c) ? `${c}${h}` : h,
1222
1222
  sessionId: i
1223
1223
  };
1224
- if (typeof a == "number" && typeof o == "number" && ut(c) && !Wn(c) && !Pn(c))
1224
+ if (typeof a == "number" && typeof o == "number" && ft(c) && !Wn(c) && !Pn(c))
1225
1225
  return {
1226
1226
  dataSet: s,
1227
1227
  dataSetField: `[${a}].${c}[${o}].${h}`,
1228
1228
  sessionId: i
1229
1229
  };
1230
1230
  if (typeof o == "number")
1231
- return ut(c) ? {
1231
+ return ft(c) ? {
1232
1232
  dataSet: s,
1233
1233
  dataSetField: `${c}[${o}].${h}`,
1234
1234
  sessionId: i
@@ -1237,18 +1237,18 @@ function Lo(t, e, n, r) {
1237
1237
  dataSetField: `[${o}].${h}`,
1238
1238
  sessionId: i
1239
1239
  };
1240
- const d = ut(c) ? `${c}.${h}` : h;
1240
+ const d = ft(c) ? `${c}.${h}` : h;
1241
1241
  return {
1242
1242
  dataSet: s,
1243
1243
  dataSetField: d,
1244
1244
  sessionId: i
1245
1245
  };
1246
1246
  }
1247
- return typeof a == "number" && typeof o == "number" && ut(c) && !Wn(c) && !Pn(c) ? {
1247
+ return typeof a == "number" && typeof o == "number" && ft(c) && !Wn(c) && !Pn(c) ? {
1248
1248
  dataSet: s,
1249
1249
  dataSetField: `[${a}].${c}[${o}]`,
1250
1250
  sessionId: i
1251
- } : typeof o == "number" && ut(c) ? {
1251
+ } : typeof o == "number" && ft(c) ? {
1252
1252
  dataSet: s,
1253
1253
  dataSetField: `${c}[${o}]`,
1254
1254
  sessionId: i
@@ -1258,12 +1258,12 @@ function Lo(t, e, n, r) {
1258
1258
  sessionId: i
1259
1259
  } : {
1260
1260
  dataSet: s,
1261
- dataSetField: ut(c) ? c : e,
1261
+ dataSetField: ft(c) ? c : e,
1262
1262
  sessionId: i
1263
1263
  };
1264
1264
  }
1265
1265
  const Le = Mi(null);
1266
- function ft(t, e, n) {
1266
+ function ht(t, e, n) {
1267
1267
  const r = ze(Le);
1268
1268
  return m(
1269
1269
  () => Lo(t, e, n, r),
@@ -1273,50 +1273,50 @@ function ft(t, e, n) {
1273
1273
  function Vo(t, e) {
1274
1274
  return t === e ? !0 : String(t ?? "") === String(e ?? "");
1275
1275
  }
1276
- function ht(t, e) {
1276
+ function yt(t, e) {
1277
1277
  if (Array.isArray(t))
1278
1278
  return t.find((n) => Vo(n.value, e));
1279
1279
  }
1280
- let ct = {};
1280
+ let ut = {};
1281
1281
  function Nc(t) {
1282
- ct = { ...ct, ...t };
1282
+ ut = { ...ut, ...t };
1283
1283
  }
1284
- function st() {
1285
- return ct;
1284
+ function lt() {
1285
+ return ut;
1286
1286
  }
1287
1287
  async function Nt(t) {
1288
- if (ct.request) {
1288
+ if (ut.request) {
1289
1289
  const e = {
1290
1290
  ...t,
1291
- baseURL: t.baseURL || ct.baseURL
1291
+ baseURL: t.baseURL || ut.baseURL
1292
1292
  };
1293
- return ct.request(e);
1293
+ return ut.request(e);
1294
1294
  }
1295
1295
  throw new Error(
1296
1296
  "Request handler not configured. Please call setCoreConfig() first."
1297
1297
  );
1298
1298
  }
1299
1299
  async function Mn(t, e) {
1300
- if (ct.upload)
1301
- return ct.upload(t, e);
1300
+ if (ut.upload)
1301
+ return ut.upload(t, e);
1302
1302
  throw new Error(
1303
1303
  "Upload handler not configured. Please call setCoreConfig() first."
1304
1304
  );
1305
1305
  }
1306
1306
  async function _n(t) {
1307
- return ct.getDictOptions ? ct.getDictOptions(t) : (console.warn(
1307
+ return ut.getDictOptions ? ut.getDictOptions(t) : (console.warn(
1308
1308
  "Dict service not configured. Please call setCoreConfig() with getDictOptions."
1309
1309
  ), []);
1310
1310
  }
1311
1311
  function on() {
1312
- return ct.getAccessToken ? ct.getAccessToken() : null;
1312
+ return ut.getAccessToken ? ut.getAccessToken() : null;
1313
1313
  }
1314
1314
  const kc = {
1315
1315
  post: (t, e, n) => Nt({ url: t, data: e, method: "POST", ...n }),
1316
1316
  get: (t, e, n) => Nt({ url: t, params: e, method: "GET", ...n })
1317
1317
  };
1318
1318
  function Bo() {
1319
- const t = st(), e = q(
1319
+ const t = lt(), e = q(
1320
1320
  async (c, h) => {
1321
1321
  const d = typeof c == "string" ? { url: c, ...h } : c;
1322
1322
  return Nt(d);
@@ -1346,7 +1346,7 @@ function Bo() {
1346
1346
  baseURL: t.baseURL
1347
1347
  };
1348
1348
  }
1349
- function Ht(t) {
1349
+ function Yt(t) {
1350
1350
  const [e, n] = Ce([]), [r, i] = Ce(!1), [o, a] = Ce(null);
1351
1351
  return Fe(() => {
1352
1352
  if (!t) {
@@ -1403,7 +1403,7 @@ function En(t, e) {
1403
1403
  d && t && u();
1404
1404
  }, [d, t, u]), { options: n, loading: i, error: a, reload: u };
1405
1405
  }
1406
- const jt = (t) => {
1406
+ const Ft = (t) => {
1407
1407
  if (t == null || t === "") return 0;
1408
1408
  const e = Number(t);
1409
1409
  return isNaN(e) || !isFinite(e) ? 0 : e;
@@ -1421,7 +1421,7 @@ const jt = (t) => {
1421
1421
  return isNaN(e.getTime()) ? null : e;
1422
1422
  }, Ko = (t, e = "CNY", n = {}) => {
1423
1423
  try {
1424
- const r = jt(t), i = /^[A-Z]{3}$/.test(e) ? e : "CNY";
1424
+ const r = Ft(t), i = /^[A-Z]{3}$/.test(e) ? e : "CNY";
1425
1425
  return new Intl.NumberFormat("zh-CN", {
1426
1426
  style: "currency",
1427
1427
  currency: i,
@@ -1432,7 +1432,7 @@ const jt = (t) => {
1432
1432
  }
1433
1433
  }, zo = (t, e = {}) => {
1434
1434
  try {
1435
- const n = jt(t);
1435
+ const n = Ft(t);
1436
1436
  return new Intl.NumberFormat("zh-CN", {
1437
1437
  minimumFractionDigits: 0,
1438
1438
  maximumFractionDigits: 2,
@@ -1443,7 +1443,7 @@ const jt = (t) => {
1443
1443
  }
1444
1444
  }, Io = (t, e = 2) => {
1445
1445
  try {
1446
- const n = jt(t), r = Math.max(0, Math.min(20, Math.floor(e)));
1446
+ const n = Ft(t), r = Math.max(0, Math.min(20, Math.floor(e)));
1447
1447
  return new Intl.NumberFormat("zh-CN", {
1448
1448
  style: "percent",
1449
1449
  minimumFractionDigits: r,
@@ -1454,7 +1454,7 @@ const jt = (t) => {
1454
1454
  }
1455
1455
  }, qo = (t, e = "compact") => {
1456
1456
  try {
1457
- const n = jt(t);
1457
+ const n = Ft(t);
1458
1458
  return new Intl.NumberFormat("zh-CN", {
1459
1459
  notation: e,
1460
1460
  compactDisplay: "short"
@@ -1494,7 +1494,7 @@ const jt = (t) => {
1494
1494
  }
1495
1495
  }, Yo = (t) => {
1496
1496
  try {
1497
- const e = Math.floor(jt(t));
1497
+ const e = Math.floor(Ft(t));
1498
1498
  if (e < 0 || e > 31536e3) return "";
1499
1499
  const n = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), i = e % 60, o = [];
1500
1500
  return n > 0 && o.push(`${n}小时`), r > 0 && o.push(`${r}分钟`), (i > 0 || o.length === 0) && o.push(`${i}秒`), o.join("");
@@ -1515,7 +1515,7 @@ const jt = (t) => {
1515
1515
  }
1516
1516
  }, Go = (t, e = 2, n = !0) => {
1517
1517
  try {
1518
- const r = jt(t);
1518
+ const r = Ft(t);
1519
1519
  if (r < 0 || r > Number.MAX_SAFE_INTEGER) return "";
1520
1520
  if (r === 0) return "0 B";
1521
1521
  const i = Math.max(0, Math.min(10, Math.floor(e))), o = n ? 1024 : 1e3, a = n ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB"] : ["B", "KB", "MB", "GB", "TB", "PB"], s = Math.min(
@@ -1762,7 +1762,7 @@ const Ec = ({
1762
1762
  }), a && (B.disabled = !1), B;
1763
1763
  }, [A, b, a]), S = m(() => {
1764
1764
  const B = (b == null ? void 0 : b.iconName) || r;
1765
- return B && dt[B] ? dt[B] : null;
1765
+ return B && mt[B] ? mt[B] : null;
1766
1766
  }, [r, b == null ? void 0 : b.iconName]), x = q(
1767
1767
  (B) => {
1768
1768
  if (s) {
@@ -1816,7 +1816,7 @@ const Ec = ({
1816
1816
  token: T,
1817
1817
  ...j
1818
1818
  } = w, F = O || E, L = !!(j != null && j.block), I = /* @__PURE__ */ v(
1819
- yt,
1819
+ gt,
1820
1820
  {
1821
1821
  ...j,
1822
1822
  iconPlacement: F,
@@ -1827,21 +1827,21 @@ const Ec = ({
1827
1827
  ), K = M ? /* @__PURE__ */ v(nn, { title: M, children: /* @__PURE__ */ v("span", { style: { display: L ? "block" : "inline-block", width: L ? "100%" : void 0 }, children: I }) }) : I;
1828
1828
  return N ? /* @__PURE__ */ v(Ze, { theme: N, children: K }) : K;
1829
1829
  };
1830
- function tt({ help: t, showValidateHelp: e = !0 }) {
1830
+ function et({ help: t, showValidateHelp: e = !0 }) {
1831
1831
  return !t || e === !1 ? null : /* @__PURE__ */ v("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: t });
1832
1832
  }
1833
- const gt = {
1833
+ const pt = {
1834
1834
  whiteSpace: "nowrap",
1835
1835
  flex: "none"
1836
1836
  };
1837
1837
  function la(t) {
1838
1838
  const e = typeof t == "string" ? t.trim() : "";
1839
1839
  if (!e) return;
1840
- const n = dt[e];
1840
+ const n = mt[e];
1841
1841
  if (n)
1842
- return nt.createElement(n);
1842
+ return it.createElement(n);
1843
1843
  }
1844
- function pt({
1844
+ function vt({
1845
1845
  iconName: t,
1846
1846
  label: e
1847
1847
  }) {
@@ -1897,11 +1897,11 @@ const jr = (t) => {
1897
1897
  clearAction: w,
1898
1898
  bordered: S,
1899
1899
  ...x
1900
- } = t, C = ft(i, o, n), M = C.dataSet, _ = C.dataSetField, N = C.sessionId, E = ze(Le), O = a ?? (E == null ? void 0 : E.index), k = E == null ? void 0 : E.parentIndex, $ = Pe(""), T = Pe(null), j = R((ne) => ne.addCommand), F = R((ne) => ne.getDataSet), L = R((ne) => ne.setDataSet), I = R((ne) => ne.getProps), K = R((ne) => ne.setProps), B = R((ne) => ne.setValidateResult), D = m(
1900
+ } = t, C = ht(i, o, n), M = C.dataSet, _ = C.dataSetField, N = C.sessionId, E = ze(Le), O = a ?? (E == null ? void 0 : E.index), k = E == null ? void 0 : E.parentIndex, $ = Pe(""), T = Pe(null), j = R((ne) => ne.addCommand), F = R((ne) => ne.getDataSet), L = R((ne) => ne.setDataSet), I = R((ne) => ne.getProps), K = R((ne) => ne.setProps), B = R((ne) => ne.setValidateResult), D = m(
1901
1901
  () => me(N, M),
1902
1902
  [N, M]
1903
1903
  ), z = m(
1904
- () => N ? vt(e, E, a) : null,
1904
+ () => N ? bt(e, E, a) : null,
1905
1905
  [N, e, E == null ? void 0 : E.parentIndex, E == null ? void 0 : E.index, a]
1906
1906
  ), V = R(
1907
1907
  (ne) => {
@@ -1909,7 +1909,7 @@ const jr = (t) => {
1909
1909
  return z ? ((W = ne.propsStore[`${N}_props`]) == null ? void 0 : W[z]) ?? null : null;
1910
1910
  }
1911
1911
  ), J = m(
1912
- () => Kt(N, M),
1912
+ () => zt(N, M),
1913
1913
  [N, M]
1914
1914
  ), P = R(
1915
1915
  (ne) => {
@@ -1942,10 +1942,10 @@ const jr = (t) => {
1942
1942
  addonBefore: ee,
1943
1943
  addonAfter: xe,
1944
1944
  ...U
1945
- } = ne, Q = pt({
1945
+ } = ne, Q = vt({
1946
1946
  iconName: W == null ? void 0 : String(W),
1947
1947
  label: be == null ? void 0 : String(be)
1948
- }), Se = pt({
1948
+ }), Se = vt({
1949
1949
  iconName: re == null ? void 0 : String(re),
1950
1950
  label: ke == null ? void 0 : String(ke)
1951
1951
  });
@@ -2046,7 +2046,7 @@ const jr = (t) => {
2046
2046
  _,
2047
2047
  F,
2048
2048
  H
2049
- ]), Oe = q(
2049
+ ]), $e = q(
2050
2050
  (ne) => {
2051
2051
  const re = fe.onPressEnter;
2052
2052
  if (re) {
@@ -2121,9 +2121,9 @@ const jr = (t) => {
2121
2121
  const _e = m(() => fa(g), [g]), we = m(
2122
2122
  () => _e ? { components: { Input: _e } } : void 0,
2123
2123
  [_e]
2124
- ), Ge = r ? void 0 : N && M && _ ? P : (V == null ? void 0 : V.help) ?? "", ae = !r && Ge ? "error" : void 0, he = /* @__PURE__ */ ve(Ot, { children: [
2124
+ ), Ge = r ? void 0 : N && M && _ ? P : (V == null ? void 0 : V.help) ?? "", ae = !r && Ge ? "error" : void 0, he = /* @__PURE__ */ ve(Rt, { children: [
2125
2125
  /* @__PURE__ */ ve(Be.Compact, { style: { width: "100%" }, children: [
2126
- G ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: G }) : null,
2126
+ G ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: G }) : null,
2127
2127
  /* @__PURE__ */ v(
2128
2128
  an,
2129
2129
  {
@@ -2133,20 +2133,20 @@ const jr = (t) => {
2133
2133
  value: X,
2134
2134
  onChange: le,
2135
2135
  onBlur: Me,
2136
- onPressEnter: Oe,
2136
+ onPressEnter: $e,
2137
2137
  onClear: Ie,
2138
2138
  status: ae,
2139
2139
  styles: d
2140
2140
  }
2141
2141
  ),
2142
- ie ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: ie }) : null
2142
+ ie ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: ie }) : null
2143
2143
  ] }),
2144
- /* @__PURE__ */ v(tt, { help: Ge, showValidateHelp: u })
2144
+ /* @__PURE__ */ v(et, { help: Ge, showValidateHelp: u })
2145
2145
  ] });
2146
2146
  return we ? /* @__PURE__ */ v(Ze, { theme: we, children: he }) : he;
2147
2147
  };
2148
2148
  jr.displayName = "AndInput";
2149
- const ha = nt.memo(jr), Hn = 200, ya = ({
2149
+ const ha = it.memo(jr), Hn = 200, ya = ({
2150
2150
  id: t,
2151
2151
  sessionId: e,
2152
2152
  develop: n,
@@ -2166,7 +2166,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2166
2166
  value: f,
2167
2167
  ...l
2168
2168
  }) => {
2169
- const b = ft(r, i, e), w = b.dataSet, S = b.dataSetField, x = b.sessionId, C = ze(Le), M = R((ce) => ce.addCommand), _ = R((ce) => ce.setDataSet), N = Pe(null), E = m(
2169
+ const b = ht(r, i, e), w = b.dataSet, S = b.dataSetField, x = b.sessionId, C = ze(Le), M = R((ce) => ce.addCommand), _ = R((ce) => ce.setDataSet), N = Pe(null), E = m(
2170
2170
  () => me(x, w),
2171
2171
  [x, w]
2172
2172
  ), O = R(
@@ -2176,7 +2176,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2176
2176
  }
2177
2177
  ), k = R(
2178
2178
  (ce) => E && S ? ce.getDataSet(E, S) : void 0
2179
- ), { validate: $, help: T } = rt({
2179
+ ), { validate: $, help: T } = ot({
2180
2180
  rules: o,
2181
2181
  dataSet: w,
2182
2182
  dataSetField: S,
@@ -2282,7 +2282,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2282
2282
  u !== void 0 && j === void 0 && E && S && _(E, S, u);
2283
2283
  }, [u, j, E, S, _]);
2284
2284
  const z = m(
2285
- () => it(l, O ?? void 0),
2285
+ () => at(l, O ?? void 0),
2286
2286
  [l, O]
2287
2287
  ), {
2288
2288
  prefix: V,
@@ -2292,13 +2292,13 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2292
2292
  style: ge,
2293
2293
  ...ue
2294
2294
  } = z, X = m(
2295
- () => pt({
2295
+ () => vt({
2296
2296
  iconName: V != null ? String(V) : void 0,
2297
2297
  label: P != null ? String(P) : void 0
2298
2298
  }),
2299
2299
  [V, P]
2300
2300
  ), oe = m(
2301
- () => pt({
2301
+ () => vt({
2302
2302
  iconName: J != null ? String(J) : void 0,
2303
2303
  label: Z != null ? String(Z) : void 0
2304
2304
  }),
@@ -2318,14 +2318,14 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2318
2318
  children: /* @__PURE__ */ v($i, {})
2319
2319
  }
2320
2320
  );
2321
- return te == null || te === !1 ? H : /* @__PURE__ */ ve(Ot, { children: [
2321
+ return te == null || te === !1 ? H : /* @__PURE__ */ ve(Rt, { children: [
2322
2322
  te,
2323
2323
  H
2324
2324
  ] });
2325
2325
  }, [p, j, te, B]);
2326
2326
  return /* @__PURE__ */ ve("div", { style: { width: "100%" }, children: [
2327
2327
  /* @__PURE__ */ ve(Be.Compact, { style: { width: "100%" }, children: [
2328
- G ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: G }) : null,
2328
+ G ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: G }) : null,
2329
2329
  /* @__PURE__ */ v(
2330
2330
  lr,
2331
2331
  {
@@ -2346,9 +2346,9 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2346
2346
  style: { width: "100%", ...ge }
2347
2347
  }
2348
2348
  ),
2349
- ie ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: ie }) : null
2349
+ ie ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: ie }) : null
2350
2350
  ] }),
2351
- /* @__PURE__ */ v(tt, { help: T, showValidateHelp: c })
2351
+ /* @__PURE__ */ v(et, { help: T, showValidateHelp: c })
2352
2352
  ] });
2353
2353
  }, { TextArea: Yn } = an, ga = 200, $c = ({
2354
2354
  id: t,
@@ -2369,11 +2369,11 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2369
2369
  index: u,
2370
2370
  ...f
2371
2371
  }) => {
2372
- const l = ft(r, i, e), b = l.dataSet, w = l.dataSetField, S = l.sessionId, x = R((X) => X.addCommand), C = R((X) => X.setDataSet), M = Pe(null), _ = ze(Le), N = u ?? (_ == null ? void 0 : _.index), E = _ == null ? void 0 : _.parentIndex, O = m(
2372
+ const l = ht(r, i, e), b = l.dataSet, w = l.dataSetField, S = l.sessionId, x = R((X) => X.addCommand), C = R((X) => X.setDataSet), M = Pe(null), _ = ze(Le), N = u ?? (_ == null ? void 0 : _.index), E = _ == null ? void 0 : _.parentIndex, O = m(
2373
2373
  () => me(S, b),
2374
2374
  [S, b]
2375
2375
  ), k = m(
2376
- () => S ? vt(t, _, u) : null,
2376
+ () => S ? bt(t, _, u) : null,
2377
2377
  [S, t, _ == null ? void 0 : _.parentIndex, _ == null ? void 0 : _.index, u]
2378
2378
  ), $ = R(
2379
2379
  (X) => {
@@ -2382,7 +2382,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2382
2382
  }
2383
2383
  ), T = R(
2384
2384
  (X) => O && w ? X.getDataSet(O, w) : void 0
2385
- ), { validate: j, help: F } = rt({
2385
+ ), { validate: j, help: F } = ot({
2386
2386
  rules: o,
2387
2387
  dataSet: b,
2388
2388
  dataSetField: w,
@@ -2390,7 +2390,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2390
2390
  id: t,
2391
2391
  develop: n
2392
2392
  }), L = m(() => T !== void 0 ? T : ($ == null ? void 0 : $.value) !== void 0 ? $.value : A ?? y, [T, $ == null ? void 0 : $.value, A, y]), I = m(
2393
- () => it(f, $ ?? void 0),
2393
+ () => at(f, $ ?? void 0),
2394
2394
  [f, $]
2395
2395
  ), { leftAddonNode: K, rightAddonNode: B, inputRest: D } = m(() => {
2396
2396
  const X = I, {
@@ -2399,10 +2399,10 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2399
2399
  addonBefore: te,
2400
2400
  addonAfter: G,
2401
2401
  ...ie
2402
- } = X, fe = pt({
2402
+ } = X, fe = vt({
2403
2403
  iconName: oe == null ? void 0 : String(oe),
2404
2404
  label: te == null ? void 0 : String(te)
2405
- }), ce = pt({
2405
+ }), ce = vt({
2406
2406
  iconName: de == null ? void 0 : String(de),
2407
2407
  label: G == null ? void 0 : String(G)
2408
2408
  });
@@ -2528,13 +2528,13 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2528
2528
  ...z ? { flex: 1, minWidth: 0 } : {}
2529
2529
  }
2530
2530
  }, ue = z ? /* @__PURE__ */ ve(Be.Compact, { style: { width: "100%", display: "flex" }, children: [
2531
- K != null && K !== !1 ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: K }) : null,
2531
+ K != null && K !== !1 ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: K }) : null,
2532
2532
  /* @__PURE__ */ v(Yn, { ...ge }),
2533
- B != null && B !== !1 ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: B }) : null
2533
+ B != null && B !== !1 ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: B }) : null
2534
2534
  ] }) : /* @__PURE__ */ v(Yn, { ...ge });
2535
2535
  return /* @__PURE__ */ ve("div", { style: { width: "100%" }, children: [
2536
2536
  ue,
2537
- /* @__PURE__ */ v(tt, { help: F, showValidateHelp: c })
2537
+ /* @__PURE__ */ v(et, { help: F, showValidateHelp: c })
2538
2538
  ] });
2539
2539
  }, { Password: pa } = an, va = 200, Oc = ({
2540
2540
  id: t,
@@ -2564,7 +2564,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2564
2564
  }
2565
2565
  ), C = R(
2566
2566
  (B) => S && i ? B.getDataSet(S, i) : void 0
2567
- ), { validate: M, help: _ } = rt({
2567
+ ), { validate: M, help: _ } = ot({
2568
2568
  rules: o,
2569
2569
  dataSet: r,
2570
2570
  dataSetField: i,
@@ -2572,7 +2572,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2572
2572
  id: t,
2573
2573
  develop: n
2574
2574
  }), N = m(() => C !== void 0 ? C : (x == null ? void 0 : x.value) !== void 0 ? x.value : A ?? y, [C, x == null ? void 0 : x.value, A, y]), E = m(
2575
- () => it(u, x ?? void 0),
2575
+ () => at(u, x ?? void 0),
2576
2576
  [u, x]
2577
2577
  ), { prefixIconNode: O, suffixIconNode: k, prefixAddonText: $, suffixAddonText: T, inputRest: j } = m(() => {
2578
2578
  const B = E, {
@@ -2581,10 +2581,10 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2581
2581
  addonBefore: V,
2582
2582
  addonAfter: J,
2583
2583
  ...P
2584
- } = B, Z = pt({
2584
+ } = B, Z = vt({
2585
2585
  iconName: D == null ? void 0 : String(D),
2586
2586
  label: V == null ? void 0 : String(V)
2587
- }), ge = pt({
2587
+ }), ge = vt({
2588
2588
  iconName: z == null ? void 0 : String(z),
2589
2589
  label: J == null ? void 0 : String(J)
2590
2590
  });
@@ -2678,7 +2678,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2678
2678
  []
2679
2679
  ), /* @__PURE__ */ ve("div", { style: { width: "100%" }, children: [
2680
2680
  /* @__PURE__ */ ve(Be.Compact, { style: { width: "100%" }, children: [
2681
- $ ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: $ }) : null,
2681
+ $ ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: $ }) : null,
2682
2682
  /* @__PURE__ */ v(
2683
2683
  pa,
2684
2684
  {
@@ -2694,9 +2694,9 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2694
2694
  status: _ ? "error" : void 0
2695
2695
  }
2696
2696
  ),
2697
- T ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: T }) : null
2697
+ T ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: T }) : null
2698
2698
  ] }),
2699
- /* @__PURE__ */ v(tt, { help: _, showValidateHelp: c })
2699
+ /* @__PURE__ */ v(et, { help: _, showValidateHelp: c })
2700
2700
  ] });
2701
2701
  }, { Search: ba } = an, Rc = ({
2702
2702
  id: t,
@@ -2723,7 +2723,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2723
2723
  ), b = m(() => {
2724
2724
  if (l && i) return y(l, i);
2725
2725
  }, [l, i, y]), w = m(() => b ?? h ?? d, [b, h, d]), S = m(
2726
- () => it(g, f ?? void 0),
2726
+ () => at(g, f ?? void 0),
2727
2727
  [g, f]
2728
2728
  ), { prefixIconNode: x, suffixIconNode: C, prefixAddonText: M, suffixAddonText: _, inputProps: N } = m(() => {
2729
2729
  const k = S, {
@@ -2732,10 +2732,10 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2732
2732
  addonBefore: j,
2733
2733
  addonAfter: F,
2734
2734
  ...L
2735
- } = k, I = pt({
2735
+ } = k, I = vt({
2736
2736
  iconName: $ == null ? void 0 : String($),
2737
2737
  label: j == null ? void 0 : String(j)
2738
- }), K = pt({
2738
+ }), K = vt({
2739
2739
  iconName: T == null ? void 0 : String(T),
2740
2740
  label: F == null ? void 0 : String(F)
2741
2741
  });
@@ -2774,7 +2774,7 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2774
2774
  [c, a, e, A]
2775
2775
  );
2776
2776
  return /* @__PURE__ */ ve(Be.Compact, { style: { width: "100%" }, children: [
2777
- M ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: M }) : null,
2777
+ M ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: M }) : null,
2778
2778
  /* @__PURE__ */ v(
2779
2779
  ba,
2780
2780
  {
@@ -2787,18 +2787,18 @@ const ha = nt.memo(jr), Hn = 200, ya = ({
2787
2787
  onSearch: O
2788
2788
  }
2789
2789
  ),
2790
- _ ? /* @__PURE__ */ v(Be.Addon, { style: gt, children: _ }) : null
2790
+ _ ? /* @__PURE__ */ v(Be.Addon, { style: pt, children: _ }) : null
2791
2791
  ] });
2792
2792
  }, Sa = 200, wa = "_selected";
2793
- function _t(t) {
2793
+ function Et(t) {
2794
2794
  var e;
2795
2795
  if (t == null) return "";
2796
2796
  if (typeof t == "string" || typeof t == "number" || typeof t == "boolean")
2797
2797
  return String(t);
2798
- if (nt.isValidElement(t)) {
2798
+ if (it.isValidElement(t)) {
2799
2799
  const n = (e = t.props) == null ? void 0 : e.children;
2800
2800
  if (typeof n == "string" || typeof n == "number") return String(n);
2801
- if (Array.isArray(n)) return n.map(_t).join("");
2801
+ if (Array.isArray(n)) return n.map(Et).join("");
2802
2802
  }
2803
2803
  return String(t);
2804
2804
  }
@@ -2815,10 +2815,10 @@ function Un(t, e, n, r, i) {
2815
2815
  return null;
2816
2816
  if (r && t && typeof t == "object" && !Array.isArray(t) && "value" in t) {
2817
2817
  const A = t;
2818
- return { key: A.value, label: _t(A.label) };
2818
+ return { key: A.value, label: Et(A.label) };
2819
2819
  }
2820
- const d = e && !Array.isArray(e) ? e : ht(n, t), g = (d == null ? void 0 : d.label) ?? (d == null ? void 0 : d.children), p = _t(
2821
- g ?? ((h = ht(n, t)) == null ? void 0 : h.label) ?? String(t)
2820
+ const d = e && !Array.isArray(e) ? e : yt(n, t), g = (d == null ? void 0 : d.label) ?? (d == null ? void 0 : d.children), p = Et(
2821
+ g ?? ((h = yt(n, t)) == null ? void 0 : h.label) ?? String(t)
2822
2822
  );
2823
2823
  return { key: t, label: p };
2824
2824
  }
@@ -2826,14 +2826,14 @@ function Un(t, e, n, r, i) {
2826
2826
  return null;
2827
2827
  if (r && t[0] && typeof t[0] == "object" && t[0] !== null && "value" in t[0]) {
2828
2828
  const d = t.map((p) => p.value), g = t.map(
2829
- (p) => _t(p.label)
2829
+ (p) => Et(p.label)
2830
2830
  );
2831
2831
  return { key: d, label: g };
2832
2832
  }
2833
2833
  const a = Array.isArray(e) ? e : [], s = t, c = s.map((d, g) => {
2834
2834
  var y;
2835
2835
  const p = a[g], A = (p == null ? void 0 : p.label) ?? (p == null ? void 0 : p.children);
2836
- return A != null ? _t(A) : _t(((y = ht(n, d)) == null ? void 0 : y.label) ?? String(d));
2836
+ return A != null ? Et(A) : Et(((y = yt(n, d)) == null ? void 0 : y.label) ?? String(d));
2837
2837
  });
2838
2838
  return { key: s, label: c };
2839
2839
  }
@@ -2867,11 +2867,11 @@ const Aa = ({
2867
2867
  ...E
2868
2868
  }) => {
2869
2869
  var Ge, ae;
2870
- const O = ft(r, i, e), k = O.dataSet, $ = O.dataSetField, T = O.sessionId, j = R((he) => he.addCommand), F = R((he) => he.setDataSet), L = Pe(null), I = ze(Le), K = m(
2870
+ const O = ht(r, i, e), k = O.dataSet, $ = O.dataSetField, T = O.sessionId, j = R((he) => he.addCommand), F = R((he) => he.setDataSet), L = Pe(null), I = ze(Le), K = m(
2871
2871
  () => me(T, k),
2872
2872
  [T, k]
2873
2873
  ), B = b ?? (I == null ? void 0 : I.index), D = I == null ? void 0 : I.parentIndex, z = m(
2874
- () => T ? vt(t, I, b) : null,
2874
+ () => T ? bt(t, I, b) : null,
2875
2875
  [T, t, I == null ? void 0 : I.parentIndex, I == null ? void 0 : I.index, b]
2876
2876
  ), V = R(
2877
2877
  (he) => {
@@ -2883,7 +2883,7 @@ const Aa = ({
2883
2883
  ), P = m(
2884
2884
  () => (V == null ? void 0 : V.optionsCfg) != null ? V.optionsCfg : s,
2885
2885
  [V == null ? void 0 : V.optionsCfg, s]
2886
- ), { options: Z, loading: ge } = Ht(
2886
+ ), { options: Z, loading: ge } = Yt(
2887
2887
  _ || (o ? a : void 0)
2888
2888
  ), { options: ue, loading: X } = En(
2889
2889
  P == null ? void 0 : P.url,
@@ -2894,7 +2894,7 @@ const Aa = ({
2894
2894
  params: P == null ? void 0 : P.params,
2895
2895
  field: P == null ? void 0 : P.field
2896
2896
  }
2897
- ), oe = ge || X, { validate: de, help: te } = rt({
2897
+ ), oe = ge || X, { validate: de, help: te } = ot({
2898
2898
  rules: c,
2899
2899
  dataSet: k,
2900
2900
  dataSetField: $,
@@ -2902,16 +2902,16 @@ const Aa = ({
2902
2902
  id: t,
2903
2903
  develop: n
2904
2904
  }), G = m(() => J != null && J !== "" ? J : (V == null ? void 0 : V.value) !== void 0 ? V.value : l ?? f, [J, V == null ? void 0 : V.value, l, f]), ie = m(
2905
- () => it(E, V ?? void 0),
2905
+ () => at(E, V ?? void 0),
2906
2906
  [E, V]
2907
2907
  ), fe = m(() => V != null && V.options && Array.isArray(V.options) ? V.options : P != null && P.url && ue.length > 0 ? ue : (_ || o && a) && Z.length > 0 ? Z : u || [], [V == null ? void 0 : V.options, P == null ? void 0 : P.url, ue, _, o, a, Z, u]), ce = m(() => {
2908
2908
  if (fe.length === 0) return G;
2909
2909
  if (Array.isArray(G))
2910
2910
  return G.map((ne) => {
2911
2911
  var W;
2912
- return ((W = ht(fe, ne)) == null ? void 0 : W.value) ?? ne;
2912
+ return ((W = yt(fe, ne)) == null ? void 0 : W.value) ?? ne;
2913
2913
  });
2914
- const he = ht(fe, G);
2914
+ const he = yt(fe, G);
2915
2915
  return (he == null ? void 0 : he.value) ?? G;
2916
2916
  }, [G, fe]), H = $ ? `${$}${wa}` : "", le = Pe(null), Me = q(
2917
2917
  (he, ne) => {
@@ -2986,7 +2986,7 @@ const Aa = ({
2986
2986
  ie.mode,
2987
2987
  F
2988
2988
  ]);
2989
- const Oe = q(() => {
2989
+ const $e = q(() => {
2990
2990
  h && de(ce);
2991
2991
  }, [h, de, ce]), Ie = (V == null ? void 0 : V.autoSelectFirst) ?? y, _e = m(() => {
2992
2992
  if (Array.isArray(G)) return G.length === 0;
@@ -3045,14 +3045,14 @@ const Aa = ({
3045
3045
  value: ce,
3046
3046
  options: fe,
3047
3047
  onChange: Me,
3048
- onBlur: Oe,
3048
+ onBlur: $e,
3049
3049
  filterOption: we,
3050
3050
  loading: oe,
3051
3051
  status: te ? "error" : void 0,
3052
3052
  style: { width: "100%", ...ie.style }
3053
3053
  }
3054
3054
  ),
3055
- /* @__PURE__ */ v(tt, { help: te, showValidateHelp: g })
3055
+ /* @__PURE__ */ v(et, { help: te, showValidateHelp: g })
3056
3056
  ] });
3057
3057
  }, jc = ({
3058
3058
  id: t,
@@ -3080,7 +3080,7 @@ const Aa = ({
3080
3080
  }
3081
3081
  ), w = R(
3082
3082
  (N) => l && i ? N.getDataSet(l, i) : void 0
3083
- ), { validate: S, help: x } = rt({
3083
+ ), { validate: S, help: x } = ot({
3084
3084
  rules: o,
3085
3085
  dataSet: r,
3086
3086
  dataSetField: i,
@@ -3128,7 +3128,7 @@ const Aa = ({
3128
3128
  onChange: M
3129
3129
  }
3130
3130
  ),
3131
- /* @__PURE__ */ v(tt, { help: x, showValidateHelp: c })
3131
+ /* @__PURE__ */ v(et, { help: x, showValidateHelp: c })
3132
3132
  ] });
3133
3133
  };
3134
3134
  var Da = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -3277,11 +3277,11 @@ const Gn = "YYYY-MM-DD", Fc = ({
3277
3277
  index: y,
3278
3278
  ...u
3279
3279
  }) => {
3280
- const f = ft(r, i, e), l = f.dataSet, b = f.dataSetField, w = f.sessionId, S = ze(Le), x = y ?? (S == null ? void 0 : S.index), C = S == null ? void 0 : S.parentIndex, M = R((D) => D.addCommand), _ = R((D) => D.setDataSet), N = m(
3280
+ const f = ht(r, i, e), l = f.dataSet, b = f.dataSetField, w = f.sessionId, S = ze(Le), x = y ?? (S == null ? void 0 : S.index), C = S == null ? void 0 : S.parentIndex, M = R((D) => D.addCommand), _ = R((D) => D.setDataSet), N = m(
3281
3281
  () => me(w, l),
3282
3282
  [w, l]
3283
3283
  ), E = m(
3284
- () => w ? vt(t, S, y) : null,
3284
+ () => w ? bt(t, S, y) : null,
3285
3285
  [w, t, S == null ? void 0 : S.parentIndex, S == null ? void 0 : S.index, y]
3286
3286
  ), O = R(
3287
3287
  (D) => {
@@ -3290,7 +3290,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3290
3290
  }
3291
3291
  ), k = R(
3292
3292
  (D) => N && b ? D.getDataSet(N, b) : void 0
3293
- ), { validate: $, help: T } = rt({
3293
+ ), { validate: $, help: T } = ot({
3294
3294
  rules: s,
3295
3295
  dataSet: l,
3296
3296
  dataSetField: b,
@@ -3298,7 +3298,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3298
3298
  id: t,
3299
3299
  develop: n
3300
3300
  }), j = m(
3301
- () => it(u, O ?? void 0),
3301
+ () => at(u, O ?? void 0),
3302
3302
  [u, O]
3303
3303
  ), F = typeof j.format == "string" ? j.format : void 0, L = q(
3304
3304
  (D) => {
@@ -3388,7 +3388,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3388
3388
  style: { width: "100%", ...j.style }
3389
3389
  }
3390
3390
  ),
3391
- /* @__PURE__ */ v(tt, { help: T, showValidateHelp: d })
3391
+ /* @__PURE__ */ v(et, { help: T, showValidateHelp: d })
3392
3392
  ] });
3393
3393
  }, Lc = ({
3394
3394
  id: t,
@@ -3412,7 +3412,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3412
3412
  [e, r]
3413
3413
  ), S = m(() => {
3414
3414
  if (w && i) return l(w, i);
3415
- }, [w, i, l]), { validate: x, help: C } = rt({
3415
+ }, [w, i, l]), { validate: x, help: C } = ot({
3416
3416
  rules: d,
3417
3417
  dataSet: r,
3418
3418
  dataSetField: i,
@@ -3440,7 +3440,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3440
3440
  }, [s, w, i, b, g, x, o, e, t, f, u]), E = q(() => {
3441
3441
  p && x(_ ? _.format(a) : "");
3442
3442
  }, [p, x, _, a]), O = C ? "error" : void 0;
3443
- return /* @__PURE__ */ ve(Ot, { children: [
3443
+ return /* @__PURE__ */ ve(Rt, { children: [
3444
3444
  /* @__PURE__ */ v(
3445
3445
  dr,
3446
3446
  {
@@ -3454,7 +3454,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3454
3454
  status: O
3455
3455
  }
3456
3456
  ),
3457
- /* @__PURE__ */ v(tt, { help: C, showValidateHelp: A })
3457
+ /* @__PURE__ */ v(et, { help: C, showValidateHelp: A })
3458
3458
  ] });
3459
3459
  }, { RangePicker: Ta } = rn, Vc = ({
3460
3460
  id: t,
@@ -3483,7 +3483,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3483
3483
  }
3484
3484
  ), S = R(
3485
3485
  (k) => b && i ? k.getDataSet(b, i) : void 0
3486
- ), { validate: x, help: C } = rt({
3486
+ ), { validate: x, help: C } = ot({
3487
3487
  rules: s,
3488
3488
  dataSet: r,
3489
3489
  dataSetField: i,
@@ -3498,7 +3498,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3498
3498
  const k = S ?? (w == null ? void 0 : w.value) ?? p ?? A;
3499
3499
  return M(k);
3500
3500
  }, [S, w == null ? void 0 : w.value, p, A, M]), N = m(
3501
- () => it(y, w ?? void 0),
3501
+ () => at(y, w ?? void 0),
3502
3502
  [y, w]
3503
3503
  ), E = q(
3504
3504
  (k, $) => {
@@ -3532,7 +3532,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3532
3532
  style: { width: "100%", ...N.style }
3533
3533
  }
3534
3534
  ),
3535
- /* @__PURE__ */ v(tt, { help: C, showValidateHelp: d })
3535
+ /* @__PURE__ */ v(et, { help: C, showValidateHelp: d })
3536
3536
  ] });
3537
3537
  }, Bc = ({
3538
3538
  id: t,
@@ -3558,11 +3558,11 @@ const Gn = "YYYY-MM-DD", Fc = ({
3558
3558
  remoteUrl: S,
3559
3559
  ...x
3560
3560
  }) => {
3561
- const C = ft(r, i, e), M = C.dataSet, _ = C.dataSetField, N = C.sessionId, E = R((X) => X.addCommand), O = R((X) => X.setDataSet), k = ze(Le), $ = b ?? (k == null ? void 0 : k.index), T = k == null ? void 0 : k.parentIndex, j = m(
3561
+ const C = ht(r, i, e), M = C.dataSet, _ = C.dataSetField, N = C.sessionId, E = R((X) => X.addCommand), O = R((X) => X.setDataSet), k = ze(Le), $ = b ?? (k == null ? void 0 : k.index), T = k == null ? void 0 : k.parentIndex, j = m(
3562
3562
  () => me(N, M),
3563
3563
  [N, M]
3564
3564
  ), F = m(
3565
- () => N ? vt(t, k, b) : null,
3565
+ () => N ? bt(t, k, b) : null,
3566
3566
  [N, t, k == null ? void 0 : k.parentIndex, k == null ? void 0 : k.index, b]
3567
3567
  ), L = R(
3568
3568
  (X) => {
@@ -3571,14 +3571,14 @@ const Gn = "YYYY-MM-DD", Fc = ({
3571
3571
  }
3572
3572
  ), I = R(
3573
3573
  (X) => j && _ ? X.getDataSet(j, _) : void 0
3574
- ), { validate: K, help: B } = rt({
3574
+ ), { validate: K, help: B } = ot({
3575
3575
  rules: d,
3576
3576
  dataSet: M,
3577
3577
  dataSetField: _,
3578
3578
  sessionId: N,
3579
3579
  id: t,
3580
3580
  develop: n
3581
- }), D = m(() => I !== void 0 ? I : (L == null ? void 0 : L.value) !== void 0 ? L.value : u ?? f, [I, L == null ? void 0 : L.value, u, f]), { options: z } = Ht(l), { options: V } = En(
3581
+ }), D = m(() => I !== void 0 ? I : (L == null ? void 0 : L.value) !== void 0 ? L.value : u ?? f, [I, L == null ? void 0 : L.value, u, f]), { options: z } = Yt(l), { options: V } = En(
3582
3582
  a == null ? void 0 : a.url,
3583
3583
  {
3584
3584
  valueKey: (a == null ? void 0 : a.codeKey) || "value",
@@ -3587,10 +3587,10 @@ const Gn = "YYYY-MM-DD", Fc = ({
3587
3587
  }
3588
3588
  ), J = m(() => L != null && L.options ? L.options : a != null && a.url && V.length > 0 ? V : l && z.length > 0 ? z : o, [L == null ? void 0 : L.options, a == null ? void 0 : a.url, V, l, z, o]), P = m(() => {
3589
3589
  if (J.length === 0) return D;
3590
- const X = ht(J, D);
3590
+ const X = yt(J, D);
3591
3591
  return (X == null ? void 0 : X.value) ?? D;
3592
3592
  }, [D, J]), Z = m(
3593
- () => it(x, L ?? void 0),
3593
+ () => at(x, L ?? void 0),
3594
3594
  [x, L]
3595
3595
  ), ge = q(
3596
3596
  (X) => {
@@ -3650,7 +3650,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3650
3650
  )
3651
3651
  }
3652
3652
  ),
3653
- /* @__PURE__ */ v(tt, { help: B, showValidateHelp: A })
3653
+ /* @__PURE__ */ v(et, { help: B, showValidateHelp: A })
3654
3654
  ] });
3655
3655
  }, Kc = ({
3656
3656
  id: t,
@@ -3679,11 +3679,11 @@ const Gn = "YYYY-MM-DD", Fc = ({
3679
3679
  remoteUrl: C,
3680
3680
  ...M
3681
3681
  }) => {
3682
- const _ = ft(r, i, e), N = _.dataSet, E = _.dataSetField, O = _.sessionId, k = R((ie) => ie.addCommand), $ = R((ie) => ie.setDataSet), T = ze(Le), j = S ?? (T == null ? void 0 : T.index), F = T == null ? void 0 : T.parentIndex, L = m(
3682
+ const _ = ht(r, i, e), N = _.dataSet, E = _.dataSetField, O = _.sessionId, k = R((ie) => ie.addCommand), $ = R((ie) => ie.setDataSet), T = ze(Le), j = S ?? (T == null ? void 0 : T.index), F = T == null ? void 0 : T.parentIndex, L = m(
3683
3683
  () => me(O, N),
3684
3684
  [O, N]
3685
3685
  ), I = m(
3686
- () => O ? vt(t, T, S) : null,
3686
+ () => O ? bt(t, T, S) : null,
3687
3687
  [O, t, T == null ? void 0 : T.parentIndex, T == null ? void 0 : T.index, S]
3688
3688
  ), K = R(
3689
3689
  (ie) => {
@@ -3692,14 +3692,14 @@ const Gn = "YYYY-MM-DD", Fc = ({
3692
3692
  }
3693
3693
  ), B = R(
3694
3694
  (ie) => L && E ? ie.getDataSet(L, E) : void 0
3695
- ), { validate: D, help: z } = rt({
3695
+ ), { validate: D, help: z } = ot({
3696
3696
  rules: h,
3697
3697
  dataSet: N,
3698
3698
  dataSetField: E,
3699
3699
  sessionId: O,
3700
3700
  id: t,
3701
3701
  develop: n
3702
- }), { options: V } = Ht(w), { options: J } = En(
3702
+ }), { options: V } = Yt(w), { options: J } = En(
3703
3703
  a == null ? void 0 : a.url,
3704
3704
  {
3705
3705
  valueKey: (a == null ? void 0 : a.codeKey) || "value",
@@ -3714,10 +3714,10 @@ const Gn = "YYYY-MM-DD", Fc = ({
3714
3714
  let ie = [];
3715
3715
  return Array.isArray(B) ? ie = B : Array.isArray(K == null ? void 0 : K.values) ? ie = K.values : ie = f || [], Z.length === 0 ? ie : ie.map((fe) => {
3716
3716
  var ce;
3717
- return ((ce = ht(Z, fe)) == null ? void 0 : ce.value) ?? fe;
3717
+ return ((ce = yt(Z, fe)) == null ? void 0 : ce.value) ?? fe;
3718
3718
  });
3719
3719
  }, [s, B, K == null ? void 0 : K.values, f, Z]), ue = m(
3720
- () => it(M, K ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3720
+ () => at(M, K ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3721
3721
  [M, K]
3722
3722
  ), oe = (ue.direction ?? x) === "vertical" ? "vertical" : "horizontal", de = q((ie) => {
3723
3723
  const fe = ie.target.checked;
@@ -3782,20 +3782,20 @@ const Gn = "YYYY-MM-DD", Fc = ({
3782
3782
  if (s && Z.length > 0) {
3783
3783
  const { indeterminate: ie, direction: fe, ...ce } = ue;
3784
3784
  return /* @__PURE__ */ ve("div", { onBlur: G, children: [
3785
- /* @__PURE__ */ v($t.Group, { ...ce, value: ge, onChange: te, disabled: n ? !1 : ue.disabled, children: /* @__PURE__ */ v(
3785
+ /* @__PURE__ */ v(Ot.Group, { ...ce, value: ge, onChange: te, disabled: n ? !1 : ue.disabled, children: /* @__PURE__ */ v(
3786
3786
  Be,
3787
3787
  {
3788
3788
  orientation: oe,
3789
3789
  wrap: !0,
3790
- children: Z.map((H) => /* @__PURE__ */ v($t, { value: H.value, disabled: H.disabled, children: H.label }, H.value))
3790
+ children: Z.map((H) => /* @__PURE__ */ v(Ot, { value: H.value, disabled: H.disabled, children: H.label }, H.value))
3791
3791
  }
3792
3792
  ) }),
3793
- /* @__PURE__ */ v(tt, { help: z, showValidateHelp: p })
3793
+ /* @__PURE__ */ v(et, { help: z, showValidateHelp: p })
3794
3794
  ] });
3795
3795
  }
3796
3796
  return /* @__PURE__ */ ve("div", { onBlur: G, children: [
3797
3797
  /* @__PURE__ */ v(
3798
- $t,
3798
+ Ot,
3799
3799
  {
3800
3800
  ...ue,
3801
3801
  disabled: n ? !1 : ue.disabled,
@@ -3804,7 +3804,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3804
3804
  children: b
3805
3805
  }
3806
3806
  ),
3807
- /* @__PURE__ */ v(tt, { help: z, showValidateHelp: p })
3807
+ /* @__PURE__ */ v(et, { help: z, showValidateHelp: p })
3808
3808
  ] });
3809
3809
  }, zc = ({
3810
3810
  id: t,
@@ -3832,7 +3832,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3832
3832
  }
3833
3833
  ), w = R(
3834
3834
  (E) => l && i ? E.getDataSet(l, i) : void 0
3835
- ), { validate: S, help: x } = rt({
3835
+ ), { validate: S, help: x } = ot({
3836
3836
  rules: a,
3837
3837
  dataSet: r,
3838
3838
  dataSetField: i,
@@ -3858,7 +3858,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3858
3858
  ), _ = q(() => {
3859
3859
  s && S(C);
3860
3860
  }, [s, S, C]), N = m(
3861
- () => it(A, b ?? void 0),
3861
+ () => at(A, b ?? void 0),
3862
3862
  [A, b]
3863
3863
  );
3864
3864
  return /* @__PURE__ */ ve("div", { onBlur: _, children: [
@@ -3871,7 +3871,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3871
3871
  onChange: M
3872
3872
  }
3873
3873
  ),
3874
- /* @__PURE__ */ v(tt, { help: x, showValidateHelp: h })
3874
+ /* @__PURE__ */ v(et, { help: x, showValidateHelp: h })
3875
3875
  ] });
3876
3876
  }, Ic = ({
3877
3877
  id: t,
@@ -3949,7 +3949,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
3949
3949
  [e, r]
3950
3950
  ), E = R(
3951
3951
  (K) => N && i ? K.getDataSet(N, i) : void 0
3952
- ), { validate: O, help: k, validateStatus: $ } = rt({
3952
+ ), { validate: O, help: k, validateStatus: $ } = ot({
3953
3953
  rules: a,
3954
3954
  dataSet: r,
3955
3955
  dataSetField: i,
@@ -4036,7 +4036,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4036
4036
  style: { width: "100%", ...f.style }
4037
4037
  }
4038
4038
  ),
4039
- /* @__PURE__ */ v(tt, { help: k, showValidateHelp: h })
4039
+ /* @__PURE__ */ v(et, { help: k, showValidateHelp: h })
4040
4040
  ] });
4041
4041
  }, Wc = ({
4042
4042
  id: t,
@@ -4070,7 +4070,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4070
4070
  }
4071
4071
  ), N = R(
4072
4072
  (B) => M && i ? B.getDataSet(M, i) : void 0
4073
- ), { validate: E, help: O } = rt({
4073
+ ), { validate: E, help: O } = ot({
4074
4074
  rules: u,
4075
4075
  dataSet: r,
4076
4076
  dataSetField: i,
@@ -4081,7 +4081,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4081
4081
  () => N ?? (_ == null ? void 0 : _.value) ?? s ?? c,
4082
4082
  [N, _ == null ? void 0 : _.value, s, c]
4083
4083
  ), $ = m(
4084
- () => it(w, _ ?? void 0),
4084
+ () => at(w, _ ?? void 0),
4085
4085
  [w, _]
4086
4086
  ), T = q(
4087
4087
  (B, D, z) => {
@@ -4130,7 +4130,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4130
4130
  status: I
4131
4131
  }
4132
4132
  ),
4133
- /* @__PURE__ */ v(tt, { help: O, showValidateHelp: b })
4133
+ /* @__PURE__ */ v(et, { help: O, showValidateHelp: b })
4134
4134
  ] });
4135
4135
  return L ? /* @__PURE__ */ v(Ze, { theme: L, children: K }) : K;
4136
4136
  }, Pc = ({
@@ -4156,11 +4156,11 @@ const Gn = "YYYY-MM-DD", Fc = ({
4156
4156
  index: w,
4157
4157
  ...S
4158
4158
  }) => {
4159
- const x = ft(r, i, e), C = x.dataSet, M = x.dataSetField, _ = x.sessionId, N = ze(Le), E = w ?? (N == null ? void 0 : N.index), O = N == null ? void 0 : N.parentIndex, k = R((U) => U.addCommand), $ = R((U) => U.setDataSet), T = m(
4159
+ const x = ht(r, i, e), C = x.dataSet, M = x.dataSetField, _ = x.sessionId, N = ze(Le), E = w ?? (N == null ? void 0 : N.index), O = N == null ? void 0 : N.parentIndex, k = R((U) => U.addCommand), $ = R((U) => U.setDataSet), T = m(
4160
4160
  () => me(_, C),
4161
4161
  [_, C]
4162
4162
  ), j = m(
4163
- () => _ ? vt(t, N, w) : null,
4163
+ () => _ ? bt(t, N, w) : null,
4164
4164
  [_, t, N == null ? void 0 : N.parentIndex, N == null ? void 0 : N.index, w]
4165
4165
  ), F = R(
4166
4166
  (U) => {
@@ -4169,7 +4169,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4169
4169
  }
4170
4170
  ), L = R(
4171
4171
  (U) => T && M ? U.getDataSet(T, M) : void 0
4172
- ), { validate: I, help: K } = rt({
4172
+ ), { validate: I, help: K } = ot({
4173
4173
  rules: s,
4174
4174
  dataSet: C,
4175
4175
  dataSetField: M,
@@ -4180,28 +4180,28 @@ const Gn = "YYYY-MM-DD", Fc = ({
4180
4180
  var Se;
4181
4181
  return ((Se = Q == null ? void 0 : Q.response) == null ? void 0 : Se.src) ?? (Q == null ? void 0 : Q.src) ?? (Q == null ? void 0 : Q.url) ?? (Q == null ? void 0 : Q.thumbUrl) ?? "";
4182
4182
  }).filter((Q) => Q && typeof Q == "string"), []), D = q((U) => {
4183
- const Q = st().viewRes, Se = (pe) => (Q ? Q(pe) : pe) || pe;
4184
- return U.map((pe, je) => {
4185
- const $e = Se(pe);
4183
+ const Q = lt().viewRes, Se = (pe) => (Q ? Q(pe) : pe) || pe;
4184
+ return U.map((pe, Re) => {
4185
+ const je = Se(pe);
4186
4186
  return {
4187
- uid: `src-${je}-${pe}`,
4187
+ uid: `src-${Re}-${pe}`,
4188
4188
  name: pe.split("/").pop() || pe,
4189
- url: $e,
4190
- thumbUrl: $e,
4189
+ url: je,
4190
+ thumbUrl: je,
4191
4191
  status: "done",
4192
4192
  response: { src: pe }
4193
4193
  };
4194
4194
  });
4195
4195
  }, []), z = q((U) => {
4196
- const Q = st().viewRes, Se = (pe) => (pe && Q ? Q(pe) : pe) || pe;
4196
+ const Q = lt().viewRes, Se = (pe) => (pe && Q ? Q(pe) : pe) || pe;
4197
4197
  return U.map((pe) => {
4198
- var ot;
4199
- const je = ((ot = pe == null ? void 0 : pe.response) == null ? void 0 : ot.src) ?? (pe == null ? void 0 : pe.src) ?? (pe == null ? void 0 : pe.url) ?? (pe == null ? void 0 : pe.thumbUrl) ?? "", $e = typeof je == "string" ? Se(je) : je, et = {};
4200
- for (const bt of Object.keys(pe)) {
4201
- const mt = pe[bt];
4202
- mt instanceof File ? et[bt] = mt : mt && typeof mt == "object" && !Array.isArray(mt) ? et[bt] = { ...mt } : et[bt] = mt;
4198
+ var nt;
4199
+ const Re = ((nt = pe == null ? void 0 : pe.response) == null ? void 0 : nt.src) ?? (pe == null ? void 0 : pe.src) ?? (pe == null ? void 0 : pe.url) ?? (pe == null ? void 0 : pe.thumbUrl) ?? "", je = typeof Re == "string" ? Se(Re) : Re, tt = {};
4200
+ for (const rt of Object.keys(pe)) {
4201
+ const ct = pe[rt];
4202
+ ct instanceof File ? tt[rt] = ct : ct && typeof ct == "object" && !Array.isArray(ct) ? tt[rt] = { ...ct } : tt[rt] = ct;
4203
4203
  }
4204
- return $e && typeof $e == "string" && (et.url = $e, et.thumbUrl = $e), et;
4204
+ return je && typeof je == "string" && (tt.url = je, tt.thumbUrl = je), tt;
4205
4205
  });
4206
4206
  }, []), [V, J] = Ce(null), P = m(() => {
4207
4207
  const U = L ?? (F == null ? void 0 : F.fileList) ?? p;
@@ -4211,7 +4211,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4211
4211
  return U.length > 0 && typeof U[0] == "string" ? D(U) : z(U);
4212
4212
  }
4213
4213
  }, [L, F == null ? void 0 : F.fileList, p, D, z]), Z = V ?? P, ge = m(
4214
- () => it(S, F ?? void 0, {
4214
+ () => at(S, F ?? void 0, {
4215
4215
  skipKeys: ["value", "help", "validateStatus", "fileList", "listDisplayText"]
4216
4216
  }),
4217
4217
  [S, F]
@@ -4230,11 +4230,11 @@ const Gn = "YYYY-MM-DD", Fc = ({
4230
4230
  const U = { ...ge };
4231
4231
  return delete U.token, delete U.styles, delete U.repeatUpload, delete U.buttonText, U;
4232
4232
  }, [ge]), ce = q((U) => U.size / 1024 / 1024 < u ? !0 : (At.error(`文件大小不能超过 ${u}MB`), !1), [u]), H = q(async (U) => {
4233
- const { file: Q, onSuccess: Se, onError: pe, onProgress: je } = U;
4234
- if (st().upload)
4233
+ const { file: Q, onSuccess: Se, onError: pe, onProgress: Re } = U;
4234
+ if (lt().upload)
4235
4235
  try {
4236
- je == null || je({ percent: 30 });
4237
- const et = await Mn(Q, {
4236
+ Re == null || Re({ percent: 30 });
4237
+ const tt = await Mn(Q, {
4238
4238
  url: y,
4239
4239
  headers: {
4240
4240
  Authorization: on() ? `Bearer ${on()}` : ""
@@ -4242,35 +4242,38 @@ const Gn = "YYYY-MM-DD", Fc = ({
4242
4242
  form: f == null ? void 0 : f.form,
4243
4243
  query: f == null ? void 0 : f.query
4244
4244
  });
4245
- je == null || je({ percent: 100 }), Se == null || Se(et, Q);
4246
- } catch (et) {
4247
- pe == null || pe(et), At.error("上传失败");
4245
+ Re == null || Re({ percent: 100 }), Se == null || Se(tt, Q);
4246
+ } catch (tt) {
4247
+ pe == null || pe(tt), At.error("上传失败");
4248
4248
  }
4249
4249
  else
4250
4250
  pe == null || pe(new Error("Upload handler not configured")), At.warning("上传功能未配置");
4251
4251
  }, [y, f]), le = q(
4252
4252
  (U) => {
4253
+ var nt;
4253
4254
  if (g) {
4254
4255
  g(U);
4255
4256
  return;
4256
4257
  }
4257
4258
  let Q = Array.isArray(U.fileList) ? z(U.fileList) : U.fileList;
4258
- const Se = Array.isArray(Q) && Q.some(($e) => ($e == null ? void 0 : $e.status) === "uploading");
4259
+ const Se = Array.isArray(Q) && Q.some((rt) => (rt == null ? void 0 : rt.status) === "uploading");
4259
4260
  oe && typeof X == "number" && Array.isArray(Q) && Q.length > X && !Se && (Q = z([...Q.slice(0, X - 1), Q[Q.length - 1]]));
4260
4261
  const pe = Array.isArray(Q) ? B(Q) : [];
4261
- if (T && M && (pe.length > 0 || !Array.isArray(Q) || Q.length === 0) ? ($(T, M, pe), J(null)) : Se ? J(Q) : Q.length === 0 && J(null), h && I(Q), o && _) {
4262
- const $e = {
4262
+ T && M && (pe.length > 0 || !Array.isArray(Q) || Q.length === 0) ? ($(T, M, pe), J(null)) : Se ? J(Q) : Q.length === 0 && J(null), h && I(Q);
4263
+ const je = (nt = U.file) == null ? void 0 : nt.status;
4264
+ if (o && _ && (je === "done" || je === "removed")) {
4265
+ const rt = {
4263
4266
  file: U.file,
4264
4267
  fileList: Q,
4265
4268
  src: pe
4266
- }, { actionName: et, arg: ot } = Ke(o, $e, {
4269
+ }, { actionName: ct, arg: kt } = Ke(o, rt, {
4267
4270
  id: t,
4268
4271
  dataSet: C,
4269
4272
  dataSetField: M,
4270
4273
  index: E,
4271
4274
  parentIndex: O
4272
4275
  }, N);
4273
- k(_, se(et, ot));
4276
+ k(_, se(ct, kt));
4274
4277
  }
4275
4278
  },
4276
4279
  [
@@ -4295,30 +4298,30 @@ const Gn = "YYYY-MM-DD", Fc = ({
4295
4298
  ]
4296
4299
  ), Me = q(() => {
4297
4300
  c && I(Z);
4298
- }, [c, I, Z]), Oe = q((U) => {
4299
- var $e;
4301
+ }, [c, I, Z]), $e = q((U) => {
4302
+ var je;
4300
4303
  const Q = U.url || U.thumbUrl;
4301
4304
  if (!Q) return "";
4302
- const Se = (($e = U.response) == null ? void 0 : $e.src) ?? (typeof Q == "string" ? Q : ""), pe = st().viewRes, je = Se && pe ? pe(Se) : Q;
4303
- return String(je).replace(/([?&])download=1(&|$)/, (et, ot, bt) => bt ? ot : "");
4305
+ const Se = ((je = U.response) == null ? void 0 : je.src) ?? (typeof Q == "string" ? Q : ""), pe = lt().viewRes, Re = Se && pe ? pe(Se) : Q;
4306
+ return String(Re).replace(/([?&])download=1(&|$)/, (tt, nt, rt) => rt ? nt : "");
4304
4307
  }, []), Ie = q((U) => {
4305
- var pe, je;
4306
- const Q = ((pe = U.response) == null ? void 0 : pe.src) ?? U.name ?? "", Se = ((je = String(Q).split(".").pop()) == null ? void 0 : je.toLowerCase()) || "";
4307
- return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(Se) || /^data:image\//.test(Oe(U));
4308
- }, [Oe]), [_e, we] = Ce({
4308
+ var pe, Re;
4309
+ const Q = ((pe = U.response) == null ? void 0 : pe.src) ?? U.name ?? "", Se = ((Re = String(Q).split(".").pop()) == null ? void 0 : Re.toLowerCase()) || "";
4310
+ return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(Se) || /^data:image\//.test($e(U));
4311
+ }, [$e]), [_e, we] = Ce({
4309
4312
  url: "",
4310
4313
  name: "",
4311
4314
  urls: [],
4312
4315
  current: 0,
4313
4316
  open: !1
4314
4317
  }), Ge = q((U) => {
4315
- const Q = Oe(U);
4318
+ const Q = $e(U);
4316
4319
  if (Q)
4317
4320
  if (Ie(U) && (Z != null && Z.length)) {
4318
- const Se = Z.filter(($e) => Ie($e)), pe = Se.map(($e) => Oe($e)).filter(Boolean), je = Se.findIndex(($e) => ($e.uid || $e.url) === (U.uid || U.url));
4319
- we({ url: Q, name: U.name, urls: pe, current: je >= 0 ? je : 0, open: !0 });
4321
+ const Se = Z.filter((je) => Ie(je)), pe = Se.map((je) => $e(je)).filter(Boolean), Re = Se.findIndex((je) => (je.uid || je.url) === (U.uid || U.url));
4322
+ we({ url: Q, name: U.name, urls: pe, current: Re >= 0 ? Re : 0, open: !0 });
4320
4323
  } else Ie(U) || window.open(Q, "_blank");
4321
- }, [Oe, Ie, Z]), he = !!st().upload && !b, ne = ue.buttonText ?? a, W = ue.listType ?? S.listType, re = String((F == null ? void 0 : F.listDisplayText) ?? l ?? "").trim(), be = m(() => {
4324
+ }, [$e, Ie, Z]), he = !!lt().upload && !b, ne = ue.buttonText ?? a, W = ue.listType ?? S.listType, re = String((F == null ? void 0 : F.listDisplayText) ?? l ?? "").trim(), be = m(() => {
4322
4325
  const U = ue.showUploadList;
4323
4326
  return W !== "text" || U === !1 || !re || !(Z != null && Z.length) ? Z : Z.map((Q) => ({ ...Q, name: re }));
4324
4327
  }, [Z, W, ue.showUploadList, re]), ke = (Z == null ? void 0 : Z.length) ?? 0, Ve = typeof X == "number" && ke >= X, Xe = q(
@@ -4347,12 +4350,12 @@ const Gn = "YYYY-MM-DD", Fc = ({
4347
4350
  /* @__PURE__ */ v("div", { style: { marginTop: 8 }, children: ne })
4348
4351
  ]
4349
4352
  }
4350
- ) : /* @__PURE__ */ v(yt, { icon: /* @__PURE__ */ v(xr, {}), style: G, children: ne })))
4353
+ ) : /* @__PURE__ */ v(gt, { icon: /* @__PURE__ */ v(xr, {}), style: G, children: ne })))
4351
4354
  }
4352
4355
  );
4353
4356
  return /* @__PURE__ */ ve("div", { onBlur: Me, children: [
4354
4357
  de && Object.keys(de).length > 0 ? /* @__PURE__ */ v(Ze, { theme: { components: { Upload: de } }, children: xe }) : xe,
4355
- /* @__PURE__ */ v(tt, { help: K, showValidateHelp: d }),
4358
+ /* @__PURE__ */ v(et, { help: K, showValidateHelp: d }),
4356
4359
  _e.url && /* @__PURE__ */ v("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: _e.urls.length > 1 ? /* @__PURE__ */ v(
4357
4360
  St.PreviewGroup,
4358
4361
  {
@@ -4408,7 +4411,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4408
4411
  const f = ze(Le), l = R((j) => j.addCommand), b = R((j) => j.getDataSet), w = R((j) => j.setDataSet), S = m(
4409
4412
  () => me(e, r),
4410
4413
  [e, r]
4411
- ), [x, C] = Ce(g || []), [, M] = Ce(!1), _ = nt.useRef(void 0), { get: N } = Bo(), E = m(() => {
4414
+ ), [x, C] = Ce(g || []), [, M] = Ce(!1), _ = it.useRef(void 0), { get: N } = Bo(), E = m(() => {
4412
4415
  if (S && i) return b(S, i);
4413
4416
  }, [S, i, b]), O = m(() => E ?? h ?? d, [E, h, d]), k = q((j) => {
4414
4417
  if (!(A != null && A.queryApi)) {
@@ -4447,7 +4450,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4447
4450
  }
4448
4451
  }, 500);
4449
4452
  }, [A, g, N]);
4450
- nt.useEffect(() => {
4453
+ it.useEffect(() => {
4451
4454
  !(A != null && A.queryApi) && g && C(g);
4452
4455
  }, [g, A == null ? void 0 : A.queryApi]);
4453
4456
  const $ = q((j) => {
@@ -4516,8 +4519,8 @@ const Gn = "YYYY-MM-DD", Fc = ({
4516
4519
  return /* @__PURE__ */ ve(en, { ...y, form: u, onFinish: w, children: [
4517
4520
  A,
4518
4521
  (s || c) && /* @__PURE__ */ v(en.Item, { children: /* @__PURE__ */ ve(Be, { children: [
4519
- s && /* @__PURE__ */ v(yt, { type: "primary", htmlType: "submit", children: h }),
4520
- c && /* @__PURE__ */ v(yt, { onClick: S, children: d })
4522
+ s && /* @__PURE__ */ v(gt, { type: "primary", htmlType: "submit", children: h }),
4523
+ c && /* @__PURE__ */ v(gt, { onClick: S, children: d })
4521
4524
  ] }) })
4522
4525
  ] });
4523
4526
  }, Uc = ({
@@ -4526,7 +4529,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4526
4529
  develop: n,
4527
4530
  children: r,
4528
4531
  ...i
4529
- }) => /* @__PURE__ */ v(en.Item, { ...i, children: r }), lt = (t, e) => {
4532
+ }) => /* @__PURE__ */ v(en.Item, { ...i, children: r }), dt = (t, e) => {
4530
4533
  if (t == null) return e;
4531
4534
  if (typeof t == "string")
4532
4535
  try {
@@ -4568,7 +4571,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4568
4571
  const k = R((te) => te.addCommand), $ = R((te) => te.getDataSet), T = R((te) => te.setDataSet), j = m(
4569
4572
  () => me(e, r),
4570
4573
  [e, r]
4571
- ), F = m(() => lt(N, {}), [N]), L = m(() => lt(E, {}), [E]), I = m(() => lt(y, ["源列表", "目标列表"]), [y]), K = m(() => lt(u, [">", "<"]), [u]), B = m(() => lt(f, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [f]), D = m(() => lt(p, !1), [p]), z = m(() => {
4574
+ ), F = m(() => dt(N, {}), [N]), L = m(() => dt(E, {}), [E]), I = m(() => dt(y, ["源列表", "目标列表"]), [y]), K = m(() => dt(u, [">", "<"]), [u]), B = m(() => dt(f, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [f]), D = m(() => dt(p, !1), [p]), z = m(() => {
4572
4575
  if (j && i) {
4573
4576
  const te = $(j, i);
4574
4577
  if (Array.isArray(te)) return te;
@@ -4578,7 +4581,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4578
4581
  const te = $(j, `${i}.dataSource`);
4579
4582
  if (Array.isArray(te)) return te;
4580
4583
  }
4581
- }, [j, i, $]), J = m(() => n ? V ?? lt(o, []) : j ? V ?? [] : lt(o, []), [n, j, V, o]), P = m(() => n ? z ?? lt(a, []) : j ? z ?? [] : lt(a, []), [n, j, z, a]), Z = m(() => lt(s, []), [s]), ge = q((te, G, ie) => {
4584
+ }, [j, i, $]), J = m(() => n ? V ?? dt(o, []) : j ? V ?? [] : dt(o, []), [n, j, V, o]), P = m(() => n ? z ?? dt(a, []) : j ? z ?? [] : dt(a, []), [n, j, z, a]), Z = m(() => dt(s, []), [s]), ge = q((te, G, ie) => {
4582
4585
  if (x) {
4583
4586
  x(te, G, ie);
4584
4587
  return;
@@ -4640,7 +4643,7 @@ const Gn = "YYYY-MM-DD", Fc = ({
4640
4643
  return t;
4641
4644
  }, Ea = (t) => {
4642
4645
  if (!t) return null;
4643
- const e = dt[t];
4646
+ const e = mt[t];
4644
4647
  return e ? /* @__PURE__ */ v(e, {}) : null;
4645
4648
  }, $a = (t) => Nn(t, []).map((n) => ({
4646
4649
  label: n.label,
@@ -4812,7 +4815,7 @@ const Ba = {
4812
4815
  whiteSpace: "nowrap",
4813
4816
  textOverflow: "ellipsis"
4814
4817
  };
4815
- function Ft(t, e) {
4818
+ function Lt(t, e) {
4816
4819
  const n = /* @__PURE__ */ v("div", { style: Ba, children: t });
4817
4820
  return e ? /* @__PURE__ */ v(nn, { title: e, placement: "topLeft", children: n }) : n;
4818
4821
  }
@@ -4838,7 +4841,7 @@ const za = ({ dictCode: t, value: e }) => {
4838
4841
  return /* @__PURE__ */ v("span", {});
4839
4842
  if (!n)
4840
4843
  return /* @__PURE__ */ v("span", { children: String(e) });
4841
- const i = ht(n, e);
4844
+ const i = yt(n, e);
4842
4845
  return /* @__PURE__ */ v("span", { children: (i == null ? void 0 : i.label) ?? String(e) });
4843
4846
  }, Ia = (t, e) => {
4844
4847
  const n = e.columnDictType || e.dictType || "";
@@ -4895,11 +4898,11 @@ const za = ({ dictCode: t, value: e }) => {
4895
4898
  const n = e.arraySeparator || ",";
4896
4899
  return Array.isArray(t) ? /* @__PURE__ */ v("span", { children: t.join(n) }) : /* @__PURE__ */ v("span", { children: String(t) });
4897
4900
  };
4898
- function Yt(t) {
4901
+ function Ut(t) {
4899
4902
  return typeof t.dataIndex == "string" ? t.dataIndex : Array.isArray(t.dataIndex) ? t.dataIndex.join(".") : typeof t.key == "string" || typeof t.key == "number" ? String(t.key) : "";
4900
4903
  }
4901
4904
  const Ya = (t, e, n, r) => {
4902
- const i = Yt(e);
4905
+ const i = Ut(e);
4903
4906
  return /* @__PURE__ */ v(
4904
4907
  ha,
4905
4908
  {
@@ -4910,7 +4913,7 @@ const Ya = (t, e, n, r) => {
4910
4913
  }
4911
4914
  );
4912
4915
  }, Ua = (t, e, n, r) => {
4913
- const i = Yt(e), o = t === "" || t === null || t === void 0 ? null : typeof t == "number" ? t : Number(t), a = o === null || Number.isNaN(o) ? null : o;
4916
+ const i = Ut(e), o = t === "" || t === null || t === void 0 ? null : typeof t == "number" ? t : Number(t), a = o === null || Number.isNaN(o) ? null : o;
4914
4917
  return /* @__PURE__ */ v(
4915
4918
  ya,
4916
4919
  {
@@ -4938,7 +4941,7 @@ function Ja(t, e) {
4938
4941
  return n.isValid() ? n : null;
4939
4942
  }
4940
4943
  const Qa = (t, e, n, r) => {
4941
- const i = Yt(e), { pickerType: o, valueFormat: a } = Ga(e), s = Ja(t, a), c = (d) => {
4944
+ const i = Ut(e), { pickerType: o, valueFormat: a } = Ga(e), s = Ja(t, a), c = (d) => {
4942
4945
  if (!i || !(r != null && r.onCellValueChange)) return;
4943
4946
  const g = d && d.isValid() ? d.format(a) : "";
4944
4947
  r.onCellValueChange(n, i, g);
@@ -4977,9 +4980,9 @@ function Za(t) {
4977
4980
  }).filter((e) => typeof e == "string" && e) : typeof t == "string" ? [t] : [];
4978
4981
  }
4979
4982
  const Xa = (t, e, n, r) => {
4980
- const i = Yt(e), o = Za(t), a = Math.max(1, Number(e.uploadMaxCount) || 1), s = Math.max(1, Number(e.uploadMaxSize) || 10), c = (e.uploadPreviewAction || "").trim(), h = e.uploadButtonText || "上传", d = o.length >= a, g = (l) => l.size / 1024 / 1024 >= s ? (At.error(`文件大小不能超过 ${s}MB`), !1) : !0, p = async (l) => {
4983
+ const i = Ut(e), o = Za(t), a = Math.max(1, Number(e.uploadMaxCount) || 1), s = Math.max(1, Number(e.uploadMaxSize) || 10), c = (e.uploadPreviewAction || "").trim(), h = e.uploadButtonText || "上传", d = o.length >= a, g = (l) => l.size / 1024 / 1024 >= s ? (At.error(`文件大小不能超过 ${s}MB`), !1) : !0, p = async (l) => {
4981
4984
  const { file: b, onSuccess: w, onError: S, onProgress: x } = l;
4982
- if (!st().upload) {
4985
+ if (!lt().upload) {
4983
4986
  S == null || S(new Error("Upload handler not configured")), At.warning("上传功能未配置");
4984
4987
  return;
4985
4988
  }
@@ -5020,12 +5023,12 @@ const Xa = (t, e, n, r) => {
5020
5023
  beforeUpload: g,
5021
5024
  customRequest: p,
5022
5025
  onChange: A,
5023
- children: /* @__PURE__ */ v(yt, { size: "small", icon: /* @__PURE__ */ v(xr, {}), children: h })
5026
+ children: /* @__PURE__ */ v(gt, { size: "small", icon: /* @__PURE__ */ v(xr, {}), children: h })
5024
5027
  }
5025
5028
  )
5026
5029
  ] });
5027
5030
  }, es = (t, e, n, r) => {
5028
- const i = Yt(e), o = e.columnDictType || e.dictType || "";
5031
+ const i = Ut(e), o = e.columnDictType || e.dictType || "";
5029
5032
  return /* @__PURE__ */ v(
5030
5033
  Aa,
5031
5034
  {
@@ -5067,7 +5070,7 @@ const rs = (t, e, n, r) => {
5067
5070
  const i = (g = e.columnIcon) == null ? void 0 : g.trim();
5068
5071
  if (!i)
5069
5072
  return /* @__PURE__ */ v("span", {});
5070
- const o = dt[i];
5073
+ const o = mt[i];
5071
5074
  if (!o)
5072
5075
  return /* @__PURE__ */ v("span", {});
5073
5076
  const [a, s] = ts(e.iconSize), c = (e.iconClickAction || "").trim(), h = r == null ? void 0 : r.runAction, d = /* @__PURE__ */ v(
@@ -5125,19 +5128,19 @@ const rs = (t, e, n, r) => {
5125
5128
  return qa(o, n);
5126
5129
  case "money": {
5127
5130
  const c = Wa(o, n);
5128
- return r ? Ft(c, La(o, n)) : c;
5131
+ return r ? Lt(c, La(o, n)) : c;
5129
5132
  }
5130
5133
  case "date": {
5131
5134
  const c = Pa(o, n);
5132
- return r ? Ft(c, Fa(o, n)) : c;
5135
+ return r ? Lt(c, Fa(o, n)) : c;
5133
5136
  }
5134
5137
  case "array": {
5135
5138
  const c = Ha(o, n);
5136
- return r ? Ft(c, Va(o, n)) : c;
5139
+ return r ? Lt(c, Va(o, n)) : c;
5137
5140
  }
5138
5141
  case "dict": {
5139
5142
  const c = Ia(o, n);
5140
- return r ? Ft(c, Xn(o)) : c;
5143
+ return r ? Lt(c, Xn(o)) : c;
5141
5144
  }
5142
5145
  case "icon":
5143
5146
  return rs(o, n, a, e);
@@ -5159,11 +5162,11 @@ const rs = (t, e, n, r) => {
5159
5162
  const o = n.render;
5160
5163
  n.render = (a, s, c) => {
5161
5164
  const h = o ? o(a, s, c) : a ?? "";
5162
- return Ft(h, Xn(a));
5165
+ return Lt(h, Xn(a));
5163
5166
  };
5164
5167
  }
5165
5168
  return r && (n.ellipsis = !1), n;
5166
- }, mn = 15, Lt = 10, os = [
5169
+ }, mn = 15, Vt = 10, os = [
5167
5170
  { value: "small", label: "紧凑" },
5168
5171
  { value: "middle", label: "默认" },
5169
5172
  { value: "large", label: "宽松" }
@@ -5318,14 +5321,14 @@ const hn = 420, nr = 440, ss = ({
5318
5321
  children: /* @__PURE__ */ ve("div", { className: "and-table-column-setting-body", children: [
5319
5322
  /* @__PURE__ */ v("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ ve("div", { className: "and-table-column-setting-header-row", children: [
5320
5323
  /* @__PURE__ */ v(
5321
- $t,
5324
+ Ot,
5322
5325
  {
5323
5326
  checked: p,
5324
5327
  onChange: (D) => T(D.target.checked),
5325
5328
  children: "序号列"
5326
5329
  }
5327
5330
  ),
5328
- /* @__PURE__ */ v($t, { checked: f, onChange: (D) => j(D.target.checked), children: "自动滚动" }),
5331
+ /* @__PURE__ */ v(Ot, { checked: f, onChange: (D) => j(D.target.checked), children: "自动滚动" }),
5329
5332
  /* @__PURE__ */ ve(Be, { align: "center", children: [
5330
5333
  /* @__PURE__ */ v("span", { className: "and-table-column-setting-label", children: "表格" }),
5331
5334
  /* @__PURE__ */ v(
@@ -5360,7 +5363,7 @@ const hn = 420, nr = 440, ss = ({
5360
5363
  children: [
5361
5364
  /* @__PURE__ */ v("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ v("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ v(Oi, {}) }) }),
5362
5365
  /* @__PURE__ */ ve("td", { className: "and-table-column-setting-td-name", children: [
5363
- /* @__PURE__ */ v($t, { checked: D.visible, onChange: () => N(D.key) }),
5366
+ /* @__PURE__ */ v(Ot, { checked: D.visible, onChange: () => N(D.key) }),
5364
5367
  /* @__PURE__ */ v("span", { className: "and-table-column-setting-title", title: D.title, children: D.title })
5365
5368
  ] }),
5366
5369
  /* @__PURE__ */ v("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ ve("div", { className: "and-table-column-setting-width", children: [
@@ -5368,8 +5371,8 @@ const hn = 420, nr = 440, ss = ({
5368
5371
  "span",
5369
5372
  {
5370
5373
  className: "and-table-column-setting-fix-btn",
5371
- onClick: () => k(D.key, -Lt),
5372
- title: `减 ${Lt}px`,
5374
+ onClick: () => k(D.key, -Vt),
5375
+ title: `减 ${Vt}px`,
5373
5376
  children: /* @__PURE__ */ v(Ri, {})
5374
5377
  }
5375
5378
  ),
@@ -5378,7 +5381,7 @@ const hn = 420, nr = 440, ss = ({
5378
5381
  {
5379
5382
  size: "small",
5380
5383
  min: mn,
5381
- step: Lt,
5384
+ step: Vt,
5382
5385
  value: J ? void 0 : V ?? 80,
5383
5386
  placeholder: "auto",
5384
5387
  controls: !1,
@@ -5392,8 +5395,8 @@ const hn = 420, nr = 440, ss = ({
5392
5395
  "span",
5393
5396
  {
5394
5397
  className: "and-table-column-setting-fix-btn",
5395
- onClick: () => k(D.key, Lt),
5396
- title: `加 ${Lt}px`,
5398
+ onClick: () => k(D.key, Vt),
5399
+ title: `加 ${Vt}px`,
5397
5400
  children: /* @__PURE__ */ v(wr, {})
5398
5401
  }
5399
5402
  )
@@ -5425,7 +5428,7 @@ const hn = 420, nr = 440, ss = ({
5425
5428
  );
5426
5429
  }) })
5427
5430
  ] }) }),
5428
- /* @__PURE__ */ v("div", { className: "and-table-column-setting-footer", children: /* @__PURE__ */ v(yt, { onClick: _, children: "重置" }) })
5431
+ /* @__PURE__ */ v("div", { className: "and-table-column-setting-footer", children: /* @__PURE__ */ v(gt, { onClick: _, children: "重置" }) })
5429
5432
  ] })
5430
5433
  }
5431
5434
  );
@@ -5468,7 +5471,7 @@ const hn = 420, nr = 440, ss = ({
5468
5471
  return n && e ? ((ye = Y.propsStore[`${n}_props`]) == null ? void 0 : ye[e]) ?? null : null;
5469
5472
  }
5470
5473
  ), i = m(
5471
- () => it(
5474
+ () => at(
5472
5475
  { ...t },
5473
5476
  r ?? void 0,
5474
5477
  { skipKeys: [...fs] }
@@ -5507,7 +5510,7 @@ const hn = 420, nr = 440, ss = ({
5507
5510
  columnSettingOpenKey: I,
5508
5511
  columnSettingsKey: K,
5509
5512
  ...B
5510
- } = i, D = R((Y) => Y.addCommand), z = R((Y) => Y.getDataSet), V = R((Y) => Y.setDataSet), [J, P] = Ce([]), Z = Pe(null), [ge, ue] = Ce(void 0), X = q((Y, ye, Re) => {
5513
+ } = i, D = R((Y) => Y.addCommand), z = R((Y) => Y.getDataSet), V = R((Y) => Y.setDataSet), [J, P] = Ce([]), Z = Pe(null), [ge, ue] = Ce(void 0), X = q((Y, ye, Oe) => {
5511
5514
  if (!ye) return Y;
5512
5515
  const De = ye.split(".").filter(Boolean);
5513
5516
  if (De.length === 0) return Y;
@@ -5517,7 +5520,7 @@ const hn = 420, nr = 440, ss = ({
5517
5520
  const Je = De[Ee], He = Te[Je];
5518
5521
  Te[Je] = He && typeof He == "object" ? { ...He } : {}, Te = Te[Je];
5519
5522
  }
5520
- return Te[De[De.length - 1]] = Re, Ae;
5523
+ return Te[De[De.length - 1]] = Oe, Ae;
5521
5524
  }, []), oe = q((Y, ye) => {
5522
5525
  if (Y == null) return ye;
5523
5526
  if (typeof Y == "string")
@@ -5556,9 +5559,9 @@ const hn = 420, nr = 440, ss = ({
5556
5559
  y: ye.bottom + 8
5557
5560
  });
5558
5561
  }, [le]);
5559
- const Oe = R((Y) => {
5560
- var Re;
5561
- const ye = G.columnSettings ? (Re = Y.dataSets[G.columnSettings]) == null ? void 0 : Re.value : void 0;
5562
+ const $e = R((Y) => {
5563
+ var Oe;
5564
+ const ye = G.columnSettings ? (Oe = Y.dataSets[G.columnSettings]) == null ? void 0 : Oe.value : void 0;
5562
5565
  return typeof ye == "object" && ye !== null ? ye : void 0;
5563
5566
  }), Ie = Xi(G.dataSet, s), _e = m(() => o ? (d == null ? void 0 : d.data) || [] : G.dataSet ? Ie : (d == null ? void 0 : d.data) || [], [o, G.dataSet, Ie, d == null ? void 0 : d.data]), we = m(() => oe(L, {}), [L, oe]), Ge = we && Object.keys(we).length > 0, ae = m(
5564
5567
  () => Ge ? { components: { Table: we } } : void 0,
@@ -5567,10 +5570,10 @@ const hn = 420, nr = 440, ss = ({
5567
5570
  (Y) => G.pagination ? Y.dataSets[G.pagination] : void 0
5568
5571
  ), ne = m(() => G.pagination ? z(G.pagination, "") || {} : {}, [G.pagination, z, he]), W = m(() => !(w === !1 || typeof w == "object" && (w == null ? void 0 : w.visible) === !1), [w]), re = Oa(Z, H == null ? void 0 : H.y, W), be = m(() => {
5569
5572
  if (!W) return !1;
5570
- const Y = typeof w == "object" ? w : {}, ye = B || {}, Re = Y.showSizeChanger ?? ye["pagination-showSizeChanger"] ?? !0, De = Y.showQuickJumper ?? ye["pagination-showQuickJumper"] ?? !1, Ae = Y.simple ?? ye["pagination-simple"] ?? !1, Te = Y.defaultPageSize ?? ye["pagination-defaultPageSize"] ?? 10, Ee = Y.pageSizeOptions ?? ye["pagination-pageSizeOptions"] ?? "10,20,50,100", Je = typeof Ee == "string" ? Ee.split(",").map((He) => parseInt(String(He).trim(), 10) || 10).filter((He) => !isNaN(He)) : Array.isArray(Ee) ? Ee : [10, 20, 50, 100];
5573
+ const Y = typeof w == "object" ? w : {}, ye = B || {}, Oe = Y.showSizeChanger ?? ye["pagination-showSizeChanger"] ?? !0, De = Y.showQuickJumper ?? ye["pagination-showQuickJumper"] ?? !1, Ae = Y.simple ?? ye["pagination-simple"] ?? !1, Te = Y.defaultPageSize ?? ye["pagination-defaultPageSize"] ?? 10, Ee = Y.pageSizeOptions ?? ye["pagination-pageSizeOptions"] ?? "10,20,50,100", Je = typeof Ee == "string" ? Ee.split(",").map((He) => parseInt(String(He).trim(), 10) || 10).filter((He) => !isNaN(He)) : Array.isArray(Ee) ? Ee : [10, 20, 50, 100];
5571
5574
  return {
5572
5575
  ...ne,
5573
- showSizeChanger: Re,
5576
+ showSizeChanger: Oe,
5574
5577
  showQuickJumper: De,
5575
5578
  simple: Ae,
5576
5579
  defaultPageSize: Te,
@@ -5595,54 +5598,54 @@ const hn = 420, nr = 440, ss = ({
5595
5598
  Y = void 0;
5596
5599
  }
5597
5600
  }
5598
- const ye = !!(Y && typeof Y == "object" && (Y.useCompact === !0 || Y.useCompact === "true")), Re = {}, De = Y && typeof Y == "object" ? Y.actionSettings : void 0;
5601
+ const ye = !!(Y && typeof Y == "object" && (Y.useCompact === !0 || Y.useCompact === "true")), Oe = {}, De = Y && typeof Y == "object" ? Y.actionSettings : void 0;
5599
5602
  if (De && typeof De == "object" && Object.entries(De).forEach(([Ae, Te]) => {
5600
5603
  if (!Ae || !Te || typeof Te != "object") return;
5601
5604
  const Ee = {};
5602
- Te.styles && typeof Te.styles == "object" && !Array.isArray(Te.styles) && (Ee.styles = Te.styles), Te.classNames && typeof Te.classNames == "object" && !Array.isArray(Te.classNames) && (Ee.classNames = Te.classNames), (Ee.styles || Ee.classNames) && (Re[Ae] = Ee);
5603
- }), Object.keys(Re).length === 0 && Y && typeof Y == "object") {
5605
+ Te.styles && typeof Te.styles == "object" && !Array.isArray(Te.styles) && (Ee.styles = Te.styles), Te.classNames && typeof Te.classNames == "object" && !Array.isArray(Te.classNames) && (Ee.classNames = Te.classNames), (Ee.styles || Ee.classNames) && (Oe[Ae] = Ee);
5606
+ }), Object.keys(Oe).length === 0 && Y && typeof Y == "object") {
5604
5607
  const Ae = Array.isArray(Y.buttonStyles) ? Y.buttonStyles : null;
5605
5608
  Ae && te.forEach((Te, Ee) => {
5606
5609
  const Je = Te == null ? void 0 : Te.key;
5607
5610
  if (!Je) return;
5608
5611
  const He = Ae[Ee];
5609
- He && typeof He == "object" && !Array.isArray(He) && (Re[Je] = { styles: He });
5612
+ He && typeof He == "object" && !Array.isArray(He) && (Oe[Je] = { styles: He });
5610
5613
  });
5611
5614
  }
5612
- return { useCompact: ye, actionSettings: Re };
5615
+ return { useCompact: ye, actionSettings: Oe };
5613
5616
  }, [p, te]), Xe = q(
5614
5617
  (Y, ye) => {
5615
5618
  n && Y && D(n, se(Y, ye));
5616
5619
  },
5617
5620
  [n, D]
5618
5621
  ), ee = q(
5619
- (Y, ye, Re) => {
5622
+ (Y, ye, Oe) => {
5620
5623
  if (!G.dataSet) return;
5621
- const De = s && String(s).trim() !== "" ? s : "", Ae = Y == null ? void 0 : Y[f], Te = _e.map((Ee) => (Ae != null ? (Ee == null ? void 0 : Ee[f]) === Ae : Ee === Y) ? X(Ee ?? {}, ye, Re) : Ee);
5624
+ const De = s && String(s).trim() !== "" ? s : "", Ae = Y == null ? void 0 : Y[f], Te = _e.map((Ee) => (Ae != null ? (Ee == null ? void 0 : Ee[f]) === Ae : Ee === Y) ? X(Ee ?? {}, ye, Oe) : Ee);
5622
5625
  V(G.dataSet, De, Te, !1);
5623
5626
  },
5624
5627
  [G.dataSet, s, f, _e, V, X]
5625
5628
  ), xe = m(() => de.map((Y) => {
5626
5629
  let ye = !1;
5627
5630
  Y.fixed === !0 || Y.fixed === "left" ? ye = "left" : Y.fixed === "right" && (ye = "right");
5628
- const Re = Y.width;
5631
+ const Oe = Y.width;
5629
5632
  return {
5630
5633
  key: String(Y.key ?? Y.dataIndex ?? ""),
5631
5634
  title: typeof Y.title == "string" ? Y.title : "列",
5632
5635
  visible: Y.visible !== !1,
5633
5636
  fixed: ye,
5634
- width: typeof Re == "number" ? Re : "auto"
5637
+ width: typeof Oe == "number" ? Oe : "auto"
5635
5638
  };
5636
- }).filter((Y) => Y.key), [de]), U = l === !0, Q = !1, Se = C === "small" || C === "large" ? C : "middle", { rowIndexVisible: pe, items: je, scrollX: $e, size: et } = m(() => as(
5637
- Oe,
5639
+ }).filter((Y) => Y.key), [de]), U = l === !0, Q = !1, Se = C === "small" || C === "large" ? C : "middle", { rowIndexVisible: pe, items: Re, scrollX: je, size: tt } = m(() => as(
5640
+ $e,
5638
5641
  xe,
5639
5642
  U,
5640
5643
  Se
5641
- ), [Oe, xe, U, Se]), ot = !!(a && n), bt = m(() => {
5642
- if ($e !== void 0) return $e;
5644
+ ), [$e, xe, U, Se]), nt = !!(a && n), rt = m(() => {
5645
+ if (je !== void 0) return je;
5643
5646
  const Y = H == null ? void 0 : H.x;
5644
5647
  return Y === !0 || typeof Y == "number" && Number.isFinite(Y) && Y > 0 ? !0 : Y === "max-content" ? !1 : Q;
5645
- }, [$e, H == null ? void 0 : H.x, Q]), mt = m(() => ot ? $e !== void 0 ? $e ? !0 : "max-content" : (H == null ? void 0 : H.x) !== void 0 ? H.x : "max-content" : H == null ? void 0 : H.x, [ot, $e, H == null ? void 0 : H.x, Q]), Ut = m(() => {
5648
+ }, [je, H == null ? void 0 : H.x, Q]), ct = m(() => nt ? je !== void 0 ? je ? !0 : "max-content" : (H == null ? void 0 : H.x) !== void 0 ? H.x : "max-content" : H == null ? void 0 : H.x, [nt, je, H == null ? void 0 : H.x, Q]), kt = m(() => {
5646
5649
  const Y = [];
5647
5650
  pe && Y.push({
5648
5651
  title: "序号",
@@ -5655,7 +5658,7 @@ const hn = 420, nr = 440, ss = ({
5655
5658
  }
5656
5659
  });
5657
5660
  const ye = new Map(de.map((De) => [String(De.key ?? De.dataIndex ?? ""), De]));
5658
- if (je.filter((De) => De.visible).forEach((De) => {
5661
+ if (Re.filter((De) => De.visible).forEach((De) => {
5659
5662
  const Ae = ye.get(De.key);
5660
5663
  if (!Ae) return;
5661
5664
  const Te = De.fixed || void 0, Ee = De.width === "auto" || De.width === void 0 ? void 0 : De.width;
@@ -5679,20 +5682,20 @@ const hn = 420, nr = 440, ss = ({
5679
5682
  title: "操作",
5680
5683
  key: "action",
5681
5684
  render: (Ee, Je) => {
5682
- const He = te.map((We, kt) => ({ action: We, idx: kt })).filter(({ action: We }) => ds(Je, We.visibleExpression));
5683
- return He.length === 0 ? null : De ? /* @__PURE__ */ v(Be.Compact, { children: He.map(({ action: We, idx: kt }) => {
5684
- const Tt = Te(We);
5685
+ const He = te.map((We, Tt) => ({ action: We, idx: Tt })).filter(({ action: We }) => ds(Je, We.visibleExpression));
5686
+ return He.length === 0 ? null : De ? /* @__PURE__ */ v(Be.Compact, { children: He.map(({ action: We, idx: Tt }) => {
5687
+ const Mt = Te(We);
5685
5688
  return /* @__PURE__ */ v(nn, { title: We.tooltip, children: /* @__PURE__ */ v(
5686
- yt,
5689
+ gt,
5687
5690
  {
5688
5691
  size: "small",
5689
5692
  onClick: () => ke(We, Je),
5690
- styles: Tt == null ? void 0 : Tt.styles,
5691
- classNames: Tt == null ? void 0 : Tt.classNames,
5693
+ styles: Mt == null ? void 0 : Mt.styles,
5694
+ classNames: Mt == null ? void 0 : Mt.classNames,
5692
5695
  children: We.title
5693
5696
  }
5694
- ) }, We.key ?? kt);
5695
- }) }) : /* @__PURE__ */ v(Be, { children: He.map(({ action: We, idx: kt }) => /* @__PURE__ */ v(nn, { title: We.tooltip, children: /* @__PURE__ */ v("a", { onClick: () => ke(We, Je), style: { marginRight: 5 }, children: We.title }) }, We.key ?? kt)) });
5697
+ ) }, We.key ?? Tt);
5698
+ }) }) : /* @__PURE__ */ v(Be, { children: He.map(({ action: We, idx: Tt }) => /* @__PURE__ */ v(nn, { title: We.tooltip, children: /* @__PURE__ */ v("a", { onClick: () => ke(We, Je), style: { marginRight: 5 }, children: We.title }) }, We.key ?? Tt)) });
5696
5699
  }
5697
5700
  });
5698
5701
  }
@@ -5701,7 +5704,7 @@ const hn = 420, nr = 440, ss = ({
5701
5704
  de,
5702
5705
  te,
5703
5706
  pe,
5704
- je,
5707
+ Re,
5705
5708
  g,
5706
5709
  Ve,
5707
5710
  ne,
@@ -5719,33 +5722,33 @@ const hn = 420, nr = 440, ss = ({
5719
5722
  if (!y && A)
5720
5723
  return {
5721
5724
  selectedRowKeys: J,
5722
- onChange: (Y, ye, Re) => {
5725
+ onChange: (Y, ye, Oe) => {
5723
5726
  P(Y), G.selected && V(G.selected, "", Y), u != null && u.trim() && n && D(n, se(u.trim(), {
5724
5727
  selectedRowKeys: Y,
5725
5728
  selectedRows: ye,
5726
- info: Re
5729
+ info: Oe
5727
5730
  }));
5728
5731
  }
5729
5732
  };
5730
5733
  }, [A, y, J, G.selected, V, u, n, D]), $n = q((Y) => {
5731
5734
  if (!y) return;
5732
- const Re = [Y[f]];
5733
- P(Re), G.selected && V(G.selected, "", Re), u != null && u.trim() && n && D(n, se(u.trim(), { record: Y, selectedRowKeys: Re }));
5735
+ const Oe = [Y[f]];
5736
+ P(Oe), G.selected && V(G.selected, "", Oe), u != null && u.trim() && n && D(n, se(u.trim(), { record: Y, selectedRowKeys: Oe }));
5734
5737
  }, [y, u, n, f, G.selected, V, D]), qr = q((Y) => y && J.includes(Y[f]) ? "ant-table-row-selected" : "", [y, f, J]), Wr = q((Y) => y ? { onClick: () => $n(Y), style: { cursor: "pointer" } } : {}, [y, $n]), Pr = m(() => {
5735
- if (!H && !ot) return;
5736
- const Y = mt, ye = (H == null ? void 0 : H.y) === "100%" ? re : H == null ? void 0 : H.y;
5738
+ if (!H && !nt) return;
5739
+ const Y = ct, ye = (H == null ? void 0 : H.y) === "100%" ? re : H == null ? void 0 : H.y;
5737
5740
  return Y !== void 0 || ye !== void 0 ? { x: Y, y: ye } : H ? H.y === "100%" ? { x: H.x, y: re } : H : void 0;
5738
- }, [H, re, ot, mt]), { titleSlot: Gt, summarySlot: Jt, footerSlot: On, otherChildren: Hr } = m(() => {
5739
- let Y = null, ye = null, Re = null;
5741
+ }, [H, re, nt, ct]), { titleSlot: Gt, summarySlot: Jt, footerSlot: On, otherChildren: Hr } = m(() => {
5742
+ let Y = null, ye = null, Oe = null;
5740
5743
  const De = [];
5741
- return nt.Children.forEach(F, (Ae) => {
5742
- if (!nt.isValidElement(Ae)) {
5744
+ return it.Children.forEach(F, (Ae) => {
5745
+ if (!it.isValidElement(Ae)) {
5743
5746
  De.push(Ae);
5744
5747
  return;
5745
5748
  }
5746
5749
  const Te = Ae.props["data-slot-type"];
5747
- Te === "title" ? Y = Ae : Te === "summary" ? ye = Ae : Te === "footer" ? Re = Ae : De.push(Ae);
5748
- }), { titleSlot: Y, summarySlot: ye, footerSlot: Re, otherChildren: De };
5750
+ Te === "title" ? Y = Ae : Te === "summary" ? ye = Ae : Te === "footer" ? Oe = Ae : De.push(Ae);
5751
+ }), { titleSlot: Y, summarySlot: ye, footerSlot: Oe, otherChildren: De };
5749
5752
  }, [F]), Yr = m(() => {
5750
5753
  if (!Gt) {
5751
5754
  if ($) return $;
@@ -5754,14 +5757,14 @@ const hn = 420, nr = 440, ss = ({
5754
5757
  }, [E, Gt, $, o]), Ur = m(() => {
5755
5758
  if (T) return T;
5756
5759
  if (O && Jt)
5757
- return () => /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", { colSpan: Ut.length, style: { padding: 0 }, children: Jt }) });
5760
+ return () => /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", { colSpan: kt.length, style: { padding: 0 }, children: Jt }) });
5758
5761
  if (O && o)
5759
- return () => /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", { colSpan: Ut.length, style: { padding: 0 }, children: /* @__PURE__ */ v("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
5760
- }, [O, Jt, T, Ut.length, o]), Rn = /* @__PURE__ */ v(
5762
+ return () => /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", { colSpan: kt.length, style: { padding: 0 }, children: /* @__PURE__ */ v("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
5763
+ }, [O, Jt, T, kt.length, o]), Rn = /* @__PURE__ */ v(
5761
5764
  ii,
5762
5765
  {
5763
5766
  ...ce,
5764
- columns: Ut,
5767
+ columns: kt,
5765
5768
  dataSource: _e,
5766
5769
  rowKey: f,
5767
5770
  rowSelection: Ir,
@@ -5769,7 +5772,7 @@ const hn = 420, nr = 440, ss = ({
5769
5772
  pagination: be,
5770
5773
  locale: { emptyText: S },
5771
5774
  bordered: x,
5772
- size: ot ? et : C,
5775
+ size: nt ? tt : C,
5773
5776
  sticky: M,
5774
5777
  scroll: Pr,
5775
5778
  title: Yr,
@@ -5789,11 +5792,11 @@ const hn = 420, nr = 440, ss = ({
5789
5792
  Gt && /* @__PURE__ */ v("div", { "data-table-slot": "title", children: Gt }),
5790
5793
  /* @__PURE__ */ ve("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
5791
5794
  y && (() => {
5792
- const Y = (we == null ? void 0 : we.rowSelectedBg) || "#e6f4ff", ye = (we == null ? void 0 : we.rowSelectedHoverBg) || (we == null ? void 0 : we.rowSelectedBg) || "#bae0ff", Re = we == null ? void 0 : we.rowSelectedColor, De = (we == null ? void 0 : we.rowSelectedLinkColor) ?? Re, Ae = (we == null ? void 0 : we.rowSelectedLinkHoverColor) ?? De;
5795
+ const Y = (we == null ? void 0 : we.rowSelectedBg) || "#e6f4ff", ye = (we == null ? void 0 : we.rowSelectedHoverBg) || (we == null ? void 0 : we.rowSelectedBg) || "#bae0ff", Oe = we == null ? void 0 : we.rowSelectedColor, De = (we == null ? void 0 : we.rowSelectedLinkColor) ?? Oe, Ae = (we == null ? void 0 : we.rowSelectedLinkHoverColor) ?? De;
5793
5796
  return /* @__PURE__ */ v("style", { children: `
5794
5797
  .ant-table-row-selected > td {
5795
5798
  background: ${Y} !important;
5796
- ${Re ? `color: ${Re};` : ""}
5799
+ ${Oe ? `color: ${Oe};` : ""}
5797
5800
  }
5798
5801
  .ant-table-row-selected:hover > td {
5799
5802
  background: ${ye} !important;
@@ -5807,18 +5810,18 @@ const hn = 420, nr = 440, ss = ({
5807
5810
  Jt,
5808
5811
  On && /* @__PURE__ */ v("div", { "data-table-slot": "footer", children: On }),
5809
5812
  Hr,
5810
- ot && /* @__PURE__ */ v(
5813
+ nt && /* @__PURE__ */ v(
5811
5814
  ss,
5812
5815
  {
5813
5816
  open: le,
5814
5817
  position: ge,
5815
5818
  rowIndexVisible: pe,
5816
- columnItems: je,
5819
+ columnItems: Re,
5817
5820
  defaultRowIndexVisible: U,
5818
5821
  defaultColumnItems: xe,
5819
- scrollX: bt,
5822
+ scrollX: rt,
5820
5823
  defaultScrollX: Q,
5821
- size: et,
5824
+ size: tt,
5822
5825
  defaultSize: Se,
5823
5826
  onSave: zr,
5824
5827
  onClose: Kr
@@ -5849,12 +5852,12 @@ const hn = 420, nr = 440, ss = ({
5849
5852
  index: l,
5850
5853
  ...b
5851
5854
  }) => {
5852
- const w = R((H) => H.addCommand), S = ze(Le), x = l ?? (S == null ? void 0 : S.index), C = S == null ? void 0 : S.parentIndex, M = typeof o == "string" && o.trim() !== "", _ = typeof a == "string" && a.trim() !== "", N = M || _ || h === "selectedCount", E = ft(
5855
+ const w = R((H) => H.addCommand), S = ze(Le), x = l ?? (S == null ? void 0 : S.index), C = S == null ? void 0 : S.parentIndex, M = typeof o == "string" && o.trim() !== "", _ = typeof a == "string" && a.trim() !== "", N = M || _ || h === "selectedCount", E = ht(
5853
5856
  N ? o : void 0,
5854
5857
  N ? a : void 0,
5855
5858
  e
5856
5859
  ), O = e ?? E.sessionId, k = R((H) => H.getDataSet), $ = m(
5857
- () => O ? vt(t, S, l) : null,
5860
+ () => O ? bt(t, S, l) : null,
5858
5861
  [O, t, S == null ? void 0 : S.parentIndex, S == null ? void 0 : S.index, l]
5859
5862
  ), T = R(
5860
5863
  (H) => {
@@ -5875,9 +5878,9 @@ const hn = 420, nr = 440, ss = ({
5875
5878
  [O, F]
5876
5879
  ), K = R((H) => {
5877
5880
  if (!I) return;
5878
- const le = Rt(I).baseName;
5881
+ const le = jt(I).baseName;
5879
5882
  return H.dataSets[le];
5880
- }), { options: B } = Ht(h), D = m(() => {
5883
+ }), { options: B } = Yt(h), D = m(() => {
5881
5884
  if (I && L)
5882
5885
  return k(I, L);
5883
5886
  }, [I, L, k, K]), z = m(() => {
@@ -5901,7 +5904,7 @@ const hn = 420, nr = 440, ss = ({
5901
5904
  j
5902
5905
  ]), Z = m(() => {
5903
5906
  if (h && B.length > 0 && P !== void 0 && P !== null) {
5904
- const H = ht(B, P);
5907
+ const H = yt(B, P);
5905
5908
  return (H == null ? void 0 : H.label) ?? P;
5906
5909
  }
5907
5910
  return P;
@@ -5945,8 +5948,8 @@ const hn = 420, nr = 440, ss = ({
5945
5948
  }
5946
5949
  if (!H || typeof H != "object") return;
5947
5950
  const le = {};
5948
- return Object.entries(H).forEach(([Me, Oe]) => {
5949
- Oe !== "" && Oe !== void 0 && Oe !== null && (le[Me] = Oe);
5951
+ return Object.entries(H).forEach(([Me, $e]) => {
5952
+ $e !== "" && $e !== void 0 && $e !== null && (le[Me] = $e);
5950
5953
  }), Object.keys(le).length > 0 ? le : void 0;
5951
5954
  }, [y]), fe = m(() => {
5952
5955
  const H = { width: "100%" }, le = (T == null ? void 0 : T.fontSize) ?? s;
@@ -5973,8 +5976,8 @@ const hn = 420, nr = 440, ss = ({
5973
5976
  ...ue
5974
5977
  },
5975
5978
  S
5976
- ), Oe = se(le, Me);
5977
- w(O, Oe);
5979
+ ), $e = se(le, Me);
5980
+ w(O, $e);
5978
5981
  }
5979
5982
  de && H.stopPropagation();
5980
5983
  },
@@ -6076,7 +6079,7 @@ const hn = 420, nr = 440, ss = ({
6076
6079
  children: g ? g(N.key, E) : null
6077
6080
  })) : [], [a, b, g, n]), S = m(() => {
6078
6081
  if (l && i) return u(l, i);
6079
- }, [l, i, u]), [x, C] = nt.useState(void 0), M = m(() => {
6082
+ }, [l, i, u]), [x, C] = it.useState(void 0), M = m(() => {
6080
6083
  if (n && x)
6081
6084
  return x;
6082
6085
  const N = S ?? h ?? d;
@@ -6254,7 +6257,7 @@ const hn = 420, nr = 440, ss = ({
6254
6257
  y && e && F(e, se(y, ae));
6255
6258
  },
6256
6259
  [N, y, e, F]
6257
- ), Oe = q(
6260
+ ), $e = q(
6258
6261
  (ae, he) => {
6259
6262
  if (E) {
6260
6263
  E(ae, he);
@@ -6291,7 +6294,7 @@ const hn = 420, nr = 440, ss = ({
6291
6294
  onDragStart: H,
6292
6295
  onDrop: le,
6293
6296
  onRightClick: Me,
6294
- onLoad: Oe,
6297
+ onLoad: $e,
6295
6298
  styles: k,
6296
6299
  classNames: $
6297
6300
  }
@@ -6475,21 +6478,21 @@ const hn = 420, nr = 440, ss = ({
6475
6478
  };
6476
6479
  function bs(t) {
6477
6480
  if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
6478
- const e = st().viewRes;
6481
+ const e = lt().viewRes;
6479
6482
  return e ? e(t) : t;
6480
6483
  }
6481
6484
  const Ss = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+";
6482
6485
  function ws(t, e, n) {
6483
6486
  if (!e) return;
6484
- const { baseName: r, index: i } = Rt(e), o = t[r];
6487
+ const { baseName: r, index: i } = jt(e), o = t[r];
6485
6488
  if (i !== null) {
6486
6489
  const a = o == null ? void 0 : o.value;
6487
6490
  if (!Array.isArray(a) || a[i] === void 0) return;
6488
6491
  const s = a[i];
6489
- return n ? qt(s, Et(n)) : s;
6492
+ return n ? Wt(s, $t(n)) : s;
6490
6493
  }
6491
6494
  if (o)
6492
- return n ? qt(o, Et(n)) : o;
6495
+ return n ? Wt(o, $t(n)) : o;
6493
6496
  }
6494
6497
  const cl = ({
6495
6498
  id: t,
@@ -6531,7 +6534,7 @@ const cl = ({
6531
6534
  }, { PreviewGroup: xs } = St;
6532
6535
  function As(t) {
6533
6536
  if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
6534
- const e = st().viewRes;
6537
+ const e = lt().viewRes;
6535
6538
  return e ? e(t) : t;
6536
6539
  }
6537
6540
  const ll = ({
@@ -6593,7 +6596,7 @@ const ll = ({
6593
6596
  }, [n, u, y == null ? void 0 : y.src, a]), l = m(() => {
6594
6597
  let C = c;
6595
6598
  if (!n && (y != null && y.icon) && (C = y.icon), typeof C == "string" && C) {
6596
- const M = dt[C];
6599
+ const M = mt[C];
6597
6600
  if (M) return /* @__PURE__ */ v(M, {});
6598
6601
  }
6599
6602
  return C;
@@ -6661,10 +6664,10 @@ const ll = ({
6661
6664
  clickAction: p,
6662
6665
  ...A
6663
6666
  }) => {
6664
- const y = ft(o, a, e), u = y.dataSet, f = y.dataSetField, l = y.sessionId, b = m(
6667
+ const y = ht(o, a, e), u = y.dataSet, f = y.dataSetField, l = y.sessionId, b = m(
6665
6668
  () => me(l, u),
6666
6669
  [l, u]
6667
- ), { options: w } = Ht(s), S = m(() => {
6670
+ ), { options: w } = Yt(s), S = m(() => {
6668
6671
  if (h) {
6669
6672
  if (typeof h == "string")
6670
6673
  try {
@@ -6683,7 +6686,7 @@ const ll = ({
6683
6686
  (j) => b && f ? j.getDataSet(b, f) : void 0
6684
6687
  ), M = m(() => n ? i : C != null && C !== "" ? String(C) : (x == null ? void 0 : x.content) !== void 0 ? x.content : i, [n, C, x == null ? void 0 : x.content, i]), _ = m(() => {
6685
6688
  if (s && w.length > 0 && M !== void 0 && M !== null) {
6686
- const j = ht(w, M);
6689
+ const j = yt(w, M);
6687
6690
  return (j == null ? void 0 : j.label) ?? M;
6688
6691
  }
6689
6692
  return M;
@@ -6835,7 +6838,7 @@ const fl = ({
6835
6838
  },
6836
6839
  children: [
6837
6840
  /* @__PURE__ */ v(
6838
- yt,
6841
+ gt,
6839
6842
  {
6840
6843
  type: "text",
6841
6844
  size: "middle",
@@ -6880,7 +6883,7 @@ const fl = ({
6880
6883
  }
6881
6884
  ),
6882
6885
  /* @__PURE__ */ v(
6883
- yt,
6886
+ gt,
6884
6887
  {
6885
6888
  type: "text",
6886
6889
  size: "middle",
@@ -6951,7 +6954,7 @@ const fl = ({
6951
6954
  ...L
6952
6955
  }) => {
6953
6956
  const I = ze(Le), K = m(
6954
- () => e && t ? vt(t, I, o) : null,
6957
+ () => e && t ? bt(t, I, o) : null,
6955
6958
  [e, t, I == null ? void 0 : I.parentIndex, I == null ? void 0 : I.index, o]
6956
6959
  ), B = R(
6957
6960
  (ee) => {
@@ -6997,7 +7000,7 @@ const fl = ({
6997
7000
  const ee = (xe) => Array.isArray(xe) ? xe.map((U) => {
6998
7001
  const Q = { ...U };
6999
7002
  if (Q.icon && typeof Q.icon == "string") {
7000
- const Se = dt[Q.icon];
7003
+ const Se = mt[Q.icon];
7001
7004
  Se && (Q.icon = /* @__PURE__ */ v(Se, {}));
7002
7005
  }
7003
7006
  return Q.children && Q.children.length > 0 && (Q.children = ee(Q.children)), Q;
@@ -7091,7 +7094,7 @@ const fl = ({
7091
7094
  );
7092
7095
  },
7093
7096
  [A, h, e, D]
7094
- ), Oe = N === "inline" && E !== void 0 ? { inlineCollapsed: E } : {}, Ie = m(() => {
7097
+ ), $e = N === "inline" && E !== void 0 ? { inlineCollapsed: E } : {}, Ie = m(() => {
7095
7098
  if (!S) return;
7096
7099
  const ee = {};
7097
7100
  return Object.entries(S).forEach(([xe, U]) => {
@@ -7104,8 +7107,8 @@ const fl = ({
7104
7107
  if (typeof U == "string" || typeof U != "object" || Array.isArray(U)) return U;
7105
7108
  const Q = {};
7106
7109
  for (const [Se, pe] of Object.entries(U)) {
7107
- const je = ee(pe);
7108
- je !== void 0 && (Q[Se] = je);
7110
+ const Re = ee(pe);
7111
+ Re !== void 0 && (Q[Se] = Re);
7109
7112
  }
7110
7113
  return Object.keys(Q).length ? Q : void 0;
7111
7114
  };
@@ -7114,13 +7117,13 @@ const fl = ({
7114
7117
  motion: { motionName: "" }
7115
7118
  } : {}, Ge = m(() => {
7116
7119
  if (typeof T == "string" && T) {
7117
- const ee = dt[T];
7120
+ const ee = mt[T];
7118
7121
  if (ee) return /* @__PURE__ */ v(ee, {});
7119
7122
  }
7120
7123
  return T;
7121
7124
  }, [T]), ae = m(() => {
7122
7125
  if (typeof j == "string" && j) {
7123
- const ee = dt[j];
7126
+ const ee = mt[j];
7124
7127
  if (ee) return /* @__PURE__ */ v(ee, {});
7125
7128
  }
7126
7129
  return j;
@@ -7152,7 +7155,7 @@ const fl = ({
7152
7155
  fi,
7153
7156
  {
7154
7157
  ...L,
7155
- ...Oe,
7158
+ ...$e,
7156
7159
  ...we,
7157
7160
  mode: N,
7158
7161
  items: G,
@@ -7351,7 +7354,7 @@ const fl = ({
7351
7354
  itemRender: g,
7352
7355
  ...p
7353
7356
  }) => {
7354
- const A = ft(r, i, e), y = A.dataSet, u = A.dataSetField, f = A.sessionId, l = ze(Le), b = R((L) => L.addCommand), w = m(
7357
+ const A = ht(r, i, e), y = A.dataSet, u = A.dataSetField, f = A.sessionId, l = ze(Le), b = R((L) => L.addCommand), w = m(
7355
7358
  () => me(f, y),
7356
7359
  [f, y]
7357
7360
  ), S = R((L) => w && u ? L.getDataSet(w, u) : null), x = m(() => !f || t == null || t === "" ? null : l && typeof l.index == "number" ? `${String(t)}_${l.index}` : String(t), [f, t, l]), C = R(
@@ -7565,7 +7568,7 @@ const fl = ({
7565
7568
  ...o,
7566
7569
  ...i && typeof i == "object" ? i : {}
7567
7570
  };
7568
- return it(c, a ?? void 0);
7571
+ return at(c, a ?? void 0);
7569
7572
  }, [o, i, a]);
7570
7573
  return /* @__PURE__ */ v(gi, { ...s, children: r });
7571
7574
  }, kn = (t, e) => {
@@ -7646,8 +7649,8 @@ const fl = ({
7646
7649
  let P = null, Z = null, ge = null, ue = [];
7647
7650
  const X = [];
7648
7651
  let oe = !1;
7649
- return o && (P = o), a && (Z = a), s && (ge = s), h && (ue = h), nt.Children.forEach(x, (de) => {
7650
- if (!nt.isValidElement(de)) {
7652
+ return o && (P = o), a && (Z = a), s && (ge = s), h && (ue = h), it.Children.forEach(x, (de) => {
7653
+ if (!it.isValidElement(de)) {
7651
7654
  X.push(de);
7652
7655
  return;
7653
7656
  }
@@ -7863,7 +7866,7 @@ const fl = ({
7863
7866
  children: [
7864
7867
  p,
7865
7868
  n && !p && !A && /* @__PURE__ */ v("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
7866
- !p && !n && o && /* @__PURE__ */ v(yt, { children: /* @__PURE__ */ ve(Be, { children: [
7869
+ !p && !n && o && /* @__PURE__ */ v(gt, { children: /* @__PURE__ */ ve(Be, { children: [
7867
7870
  o,
7868
7871
  /* @__PURE__ */ v(Cr, {})
7869
7872
  ] }) })
@@ -7910,11 +7913,11 @@ const fl = ({
7910
7913
  }), y;
7911
7914
  }, [a, d]);
7912
7915
  return /* @__PURE__ */ v(Si, { ...A, value: p || "" });
7913
- }, Vt = (t) => {
7916
+ }, Bt = (t) => {
7914
7917
  if (!t) return;
7915
- const e = dt[t];
7918
+ const e = mt[t];
7916
7919
  if (e)
7917
- return nt.createElement(e);
7920
+ return it.createElement(e);
7918
7921
  }, gn = (t, e) => {
7919
7922
  if (t == null) return e;
7920
7923
  if (typeof t == "string")
@@ -7948,18 +7951,18 @@ const fl = ({
7948
7951
  const l = R((k) => k.addCommand), b = m(
7949
7952
  () => gn(r, []),
7950
7953
  [r]
7951
- ), w = m(() => gn(A, {}), [A]), S = m(() => Vt(a), [a]), x = m(() => {
7954
+ ), w = m(() => gn(A, {}), [A]), S = m(() => Bt(a), [a]), x = m(() => {
7952
7955
  if (s) {
7953
7956
  if (typeof s == "string") {
7954
7957
  const k = gn(s, null);
7955
7958
  return k && typeof k == "object" ? {
7956
- start: Vt(k.start),
7957
- end: Vt(k.end)
7959
+ start: Bt(k.start),
7960
+ end: Bt(k.end)
7958
7961
  } : void 0;
7959
7962
  }
7960
7963
  return {
7961
- start: Vt(s.start),
7962
- end: Vt(s.end)
7964
+ start: Bt(s.start),
7965
+ end: Bt(s.end)
7963
7966
  };
7964
7967
  }
7965
7968
  }, [s]), C = q(
@@ -7980,7 +7983,7 @@ const fl = ({
7980
7983
  h && e && l(e, se(h, { sizes: k }));
7981
7984
  },
7982
7985
  [g, h, e, l]
7983
- ), _ = () => y && nt.Children.count(y) > 0 ? nt.Children.map(y, (k, $) => {
7986
+ ), _ = () => y && it.Children.count(y) > 0 ? it.Children.map(y, (k, $) => {
7984
7987
  const T = b[$] || {};
7985
7988
  return /* @__PURE__ */ v(
7986
7989
  dn.Panel,
@@ -8103,12 +8106,12 @@ const fl = ({
8103
8106
  return c ? F.slice(0, c) : F;
8104
8107
  }, [$, g, _, E, c]);
8105
8108
  if (!$ || $.length === 0)
8106
- return a ? /* @__PURE__ */ v(Ot, { children: a() }) : /* @__PURE__ */ v("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
8109
+ return a ? /* @__PURE__ */ v(Rt, { children: a() }) : /* @__PURE__ */ v("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
8107
8110
  const j = (F, L) => {
8108
8111
  N(F), L && O(L);
8109
8112
  };
8110
8113
  return /* @__PURE__ */ ve("div", { style: { display: "flex", flexDirection: "column", ...h }, children: [
8111
- /* @__PURE__ */ v("div", { style: { flex: 1 }, children: T.map((F, L) => /* @__PURE__ */ v(nt.Fragment, { children: o ? o(F, L) : /* @__PURE__ */ v("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(F) }) }, F.id || L)) }),
8114
+ /* @__PURE__ */ v("div", { style: { flex: 1 }, children: T.map((F, L) => /* @__PURE__ */ v(it.Fragment, { children: o ? o(F, L) : /* @__PURE__ */ v("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(F) }) }, F.id || L)) }),
8112
8115
  !g && $.length > 0 && /* @__PURE__ */ v("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ v(
8113
8116
  gr,
8114
8117
  {
@@ -8158,7 +8161,7 @@ const fl = ({
8158
8161
  transform: c ? `rotate(${c}deg)` : void 0,
8159
8162
  ...y
8160
8163
  };
8161
- return /* @__PURE__ */ ve(Ot, { children: [
8164
+ return /* @__PURE__ */ ve(Rt, { children: [
8162
8165
  /* @__PURE__ */ v("style", { children: Rs }),
8163
8166
  s && /* @__PURE__ */ v("style", { children: Os }),
8164
8167
  /* @__PURE__ */ v(
@@ -8180,7 +8183,7 @@ const fl = ({
8180
8183
  ] });
8181
8184
  }
8182
8185
  if (!r) return null;
8183
- const u = dt[r];
8186
+ const u = mt[r];
8184
8187
  return u ? /* @__PURE__ */ v(
8185
8188
  u,
8186
8189
  {
@@ -8286,7 +8289,7 @@ const fl = ({
8286
8289
  var E, O, k, $;
8287
8290
  const p = ze(Le), { storeBaseKey: A, arrayIndex: y } = m(() => {
8288
8291
  if (!n) return { storeBaseKey: void 0, arrayIndex: null };
8289
- const T = n.split(".")[0], { baseName: j, index: F } = Rt(T);
8292
+ const T = n.split(".")[0], { baseName: j, index: F } = jt(T);
8290
8293
  let L = F;
8291
8294
  if (L === null && g !== void 0 && g !== null) {
8292
8295
  const I = Number(g);
@@ -8401,7 +8404,7 @@ const fl = ({
8401
8404
  }
8402
8405
  );
8403
8406
  }
8404
- const M = st(), _ = c || M.componentResolver;
8407
+ const M = lt(), _ = c || M.componentResolver;
8405
8408
  if (!_)
8406
8409
  return /* @__PURE__ */ v(
8407
8410
  ar,
@@ -8519,7 +8522,7 @@ function Ll(t) {
8519
8522
  function js(t) {
8520
8523
  var r, i;
8521
8524
  if (typeof window > "u" || Br) return;
8522
- const e = (r = st().pdfWorkerFallbackUrl) == null ? void 0 : r.trim(), n = (i = t ?? e) == null ? void 0 : i.trim();
8525
+ const e = (r = lt().pdfWorkerFallbackUrl) == null ? void 0 : r.trim(), n = (i = t ?? e) == null ? void 0 : i.trim();
8523
8526
  if (n) {
8524
8527
  Nr.GlobalWorkerOptions.workerSrc = n;
8525
8528
  return;
@@ -8580,7 +8583,7 @@ const Fs = 0.5, Ls = 3, cr = 0.1, Vl = ({
8580
8583
  _.current = C;
8581
8584
  const [N, E] = Ce(null), [O, k] = Ce(!!b), [$, T] = Ce("all"), [j, F] = Ce("width"), [L, I] = Ce(1), K = Pe(null), B = Pe(null), D = Pe({}), z = Pe(!1), V = Pe(null), [J, P] = Ce(600), [Z, ge] = Ce(800), ue = Pe(0), X = m(() => {
8582
8585
  var be;
8583
- const W = (be = st().pdfCMapUrl) == null ? void 0 : be.trim();
8586
+ const W = (be = lt().pdfCMapUrl) == null ? void 0 : be.trim();
8584
8587
  return W ? { cMapUrl: W.endsWith("/") ? W : `${W}/`, cMapPacked: !0 } : {};
8585
8588
  }, []), oe = (s || "").trim(), de = R((W) => {
8586
8589
  if (!(!u || !oe))
@@ -8632,7 +8635,7 @@ const Fs = 0.5, Ls = 3, cr = 0.1, Vl = ({
8632
8635
  const W = Math.max(1, a ?? 1);
8633
8636
  M(W);
8634
8637
  }, [a]);
8635
- const Oe = q(
8638
+ const $e = q(
8636
8639
  ({ numPages: W }) => {
8637
8640
  E(null), k(!1);
8638
8641
  const re = _.current, be = Math.min(Math.max(1, re), W || 1);
@@ -8808,7 +8811,7 @@ const Fs = 0.5, Ls = 3, cr = 0.1, Vl = ({
8808
8811
  message: (c == null ? void 0 : c.trim()) || N.message,
8809
8812
  showIcon: !0
8810
8813
  }
8811
- ) : b ? /* @__PURE__ */ ve(Ot, { children: [
8814
+ ) : b ? /* @__PURE__ */ ve(Rt, { children: [
8812
8815
  O ? /* @__PURE__ */ v(
8813
8816
  "div",
8814
8817
  {
@@ -8829,7 +8832,7 @@ const Fs = 0.5, Ls = 3, cr = 0.1, Vl = ({
8829
8832
  Ki,
8830
8833
  {
8831
8834
  file: b,
8832
- onLoadSuccess: Oe,
8835
+ onLoadSuccess: $e,
8833
8836
  onLoadError: Ie,
8834
8837
  loading: null,
8835
8838
  options: X,
@@ -8990,8 +8993,8 @@ function xt(t, e) {
8990
8993
  }, [y, p, A, B, h]), V = (le) => {
8991
8994
  var Me;
8992
8995
  if (K.current = le, !h && c) {
8993
- const Oe = qe(L);
8994
- Oe && typeof Oe == "object" && Object.entries(Oe).forEach(([Ie, _e]) => {
8996
+ const $e = qe(L);
8997
+ $e && typeof $e == "object" && Object.entries($e).forEach(([Ie, _e]) => {
8995
8998
  typeof _e == "string" && le.on(Ie, (we) => {
8996
8999
  D(c, {
8997
9000
  actionName: _e,
@@ -9337,29 +9340,29 @@ export {
9337
9340
  $r as collectContextChainRootToLeaf,
9338
9341
  se as createCommand,
9339
9342
  xc as createWatchCommands,
9340
- vt as deriveScopedComponentId,
9343
+ bt as deriveScopedComponentId,
9341
9344
  Vo as dictValueEquals,
9342
9345
  Bl as dispatchPdfViewerCommand,
9343
9346
  js as ensurePdfjsWorker,
9344
- ht as findDictOptionByValue,
9347
+ yt as findDictOptionByValue,
9345
9348
  Dc as flattenScopeChain,
9346
9349
  ca as formatByType,
9347
9350
  on as getAccessToken,
9348
- st as getCoreConfig,
9351
+ lt as getCoreConfig,
9349
9352
  me as getDataSetStoreKey,
9350
9353
  _n as getDictOptions,
9351
- qt as getNestedValue,
9352
- Kt as getValidateStoreKey,
9354
+ Wt as getNestedValue,
9355
+ zt as getValidateStoreKey,
9353
9356
  Ji as initReactMount,
9354
9357
  Rr as isTokenName,
9355
9358
  Cc as layoutKeyPrefixFromContext,
9356
- it as mergeStoreProps,
9359
+ at as mergeStoreProps,
9357
9360
  hc as mountReactComponent,
9358
9361
  Dt as parseAction,
9359
- Rt as parseArrayNotation,
9362
+ jt as parseArrayNotation,
9360
9363
  Ke as parseChangeAction,
9361
9364
  kr as parseClickAction,
9362
- Et as parseNestedPath,
9365
+ $t as parseNestedPath,
9363
9366
  Ac as parseQueryAction,
9364
9367
  _r as processValidationRules,
9365
9368
  kc as req,
@@ -9374,13 +9377,13 @@ export {
9374
9377
  R as useAndStore,
9375
9378
  Bo as useApiService,
9376
9379
  wc as useCommandsStore,
9377
- Ht as useDictOptions,
9378
- rt as useFieldValidation,
9380
+ Yt as useDictOptions,
9381
+ ot as useFieldValidation,
9379
9382
  Sc as useItemStore,
9380
9383
  bc as usePopCommand,
9381
9384
  En as useRemoteOptions,
9382
9385
  ln as useResolveTokenColor,
9383
- ft as useResolvedDataSet,
9386
+ ht as useResolvedDataSet,
9384
9387
  gc as useStore,
9385
9388
  pc as useStoreByName,
9386
9389
  Xi as useStoreData,