@nuwatop/code-canvas-core 0.4.9 → 0.5.0

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,29 +1,29 @@
1
- import { jsx as b, jsxs as ct, Fragment as le } from "react/jsx-runtime";
1
+ import { jsx as b, jsxs as st, Fragment as le } from "react/jsx-runtime";
2
2
  import { createRoot as mr } from "react-dom/client";
3
- import { theme as Zt, ConfigProvider as Rt, Button as Xt, Input as $e, InputNumber as $n, Space as Yt, Select as Rn, Switch as hr, DatePicker as jn, TimePicker as yr, Radio as Ve, Checkbox as se, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as Ce, Upload as Sr, Image as Ft, AutoComplete as wr, Form as Ee, Transfer as Dr, Segmented as xr, Modal as Bn, Tooltip as Ar, Table as Cr, Flex as Kn, Typography as sn, Tabs as Tr, Tree as Nr, Timeline as kr, Steps as Or, Statistic as Ge, Carousel as _r, Avatar as Er, Tag as Ln, Pagination as zn, Breadcrumb as Mr, Menu as $r, Calendar as Rr, Badge as Vn, Masonry as jr, Alert as qn, Drawer as Br, Result as Kr, Card as Je, Divider as hn, Dropdown as Lr, Row as zr, Col as Vr, QRCode as qr, Splitter as qe, Spin as Wn, Watermark as Wr } from "antd";
3
+ import { theme as Zt, ConfigProvider as Bt, Button as Xt, Input as Re, InputNumber as Rn, Space as Yt, Select as jn, Switch as hr, DatePicker as Bn, TimePicker as yr, Radio as qe, Checkbox as se, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as Te, Upload as Sr, Image as Ft, AutoComplete as wr, Form as Me, Transfer as Dr, Segmented as xr, Modal as Kn, Tooltip as Ar, Table as Cr, Flex as Ln, Typography as ln, Tabs as Tr, Tree as Nr, Timeline as kr, Steps as Or, Statistic as Je, Carousel as _r, Avatar as Er, Tag as zn, Pagination as Vn, Breadcrumb as Mr, Menu as $r, Calendar as Rr, Badge as qn, Masonry as jr, Alert as Wn, Drawer as Br, Result as Kr, Card as Qe, Divider as yn, Dropdown as Lr, Row as zr, Col as Vr, QRCode as qr, Splitter as We, Spin as Hn, Watermark as Wr } from "antd";
4
4
  import { StyleProvider as Hr, createCache as Pr } from "@ant-design/cssinjs";
5
5
  import Ur from "antd/locale/zh_CN";
6
6
  import { create as Yr } from "zustand";
7
7
  import { subscribeWithSelector as Gr } from "zustand/middleware";
8
8
  import { immer as Jr } from "zustand/middleware/immer";
9
- import Wt, { useMemo as y, useCallback as j, useEffect as Dt, createContext as Qr, useContext as be, useState as mt, useRef as Mt, useLayoutEffect as Hn, useId as Fr, Suspense as Zr } from "react";
9
+ import Wt, { useMemo as y, useCallback as j, useEffect as St, createContext as Qr, useContext as be, useState as ht, useRef as Rt, useLayoutEffect as Pn, useId as Fr, Suspense as Zr } from "react";
10
10
  import * as Jt from "@ant-design/icons";
11
- import { CloseCircleOutlined as Xr, PlusOutlined as Pn, UploadOutlined as Ir, MenuOutlined as ti, MinusOutlined as ei, LeftOutlined as Un, RightOutlined as Yn, UpOutlined as ni, DownOutlined as Gn, ApiOutlined as ri, InboxOutlined as ii } from "@ant-design/icons";
11
+ import { CloseCircleOutlined as Xr, PlusOutlined as Un, UploadOutlined as Ir, MenuOutlined as ti, MinusOutlined as ei, LeftOutlined as Yn, RightOutlined as Gn, UpOutlined as ni, DownOutlined as Jn, ApiOutlined as ri, InboxOutlined as ii } from "@ant-design/icons";
12
12
  import ai from "clsx";
13
13
  import Ut from "dayjs";
14
14
  import { pdfjs as ye, Document as oi, Page as ci } from "react-pdf";
15
15
  import "react-pdf/dist/Page/TextLayer.css";
16
16
  import "react-pdf/dist/Page/AnnotationLayer.css";
17
17
  import { Line as si, Column as li, Pie as ui, Area as fi, DualAxes as di, Gauge as mi, Liquid as hi, Bar as yi } from "@ant-design/plots";
18
- const Te = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap();
19
- let Fe = !1;
18
+ const Ne = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
19
+ let Ze = !1;
20
20
  const gi = () => {
21
- Fe || (Fe = !0);
21
+ Ze || (Ze = !0);
22
22
  }, pi = (e) => {
23
- let t = Qe.get(e);
24
- return t || (t = Pr(), Qe.set(e, t)), t;
23
+ let t = Fe.get(e);
24
+ return t || (t = Pr(), Fe.set(e, t)), t;
25
25
  }, tc = (e) => {
26
- e && Qe.delete(e);
26
+ e && Fe.delete(e);
27
27
  }, ec = async ({
28
28
  el: e,
29
29
  component: t,
@@ -34,7 +34,7 @@ const gi = () => {
34
34
  }) => {
35
35
  var C;
36
36
  gi();
37
- const o = Te.get(e);
37
+ const o = Ne.get(e);
38
38
  if (o) {
39
39
  if (a)
40
40
  Object.keys(e).forEach((w) => {
@@ -50,12 +50,12 @@ const gi = () => {
50
50
  } catch (w) {
51
51
  console.warn("[mountReactComponent] Unmount failed (benign if DOM was cleared):", w);
52
52
  }
53
- Te.delete(e);
53
+ Ne.delete(e);
54
54
  }
55
55
  const c = mr(e);
56
- Te.set(e, c);
56
+ Ne.set(e, c);
57
57
  const l = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && l && d && d.defaultView !== null, h = v ? l : window.document.head, p = v ? d : window.document, g = pi(p), m = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? Zt.darkAlgorithm : Zt.defaultAlgorithm, u = (w) => /* @__PURE__ */ b(Hr, { cache: g, container: h, hashPriority: "high", children: /* @__PURE__ */ b(
58
- Rt,
58
+ Bt,
59
59
  {
60
60
  locale: Ur,
61
61
  theme: {
@@ -77,7 +77,7 @@ const gi = () => {
77
77
  root: c,
78
78
  unmount: () => {
79
79
  try {
80
- c.unmount(), Te.delete(e);
80
+ c.unmount(), Ne.delete(e);
81
81
  } catch (w) {
82
82
  console.error("[code-canvas-core] Failed to unmount component:", w);
83
83
  }
@@ -87,7 +87,7 @@ const gi = () => {
87
87
  }
88
88
  };
89
89
  }, nc = () => {
90
- console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Fe = !1;
90
+ console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Ze = !1;
91
91
  };
92
92
  function Se(e) {
93
93
  const t = e.match(/^(.+)\[(\d+)\]$/);
@@ -99,7 +99,7 @@ function Se(e) {
99
99
  index: null
100
100
  };
101
101
  }
102
- function Ne(e) {
102
+ function ke(e) {
103
103
  if (!e || typeof e != "string") return [];
104
104
  const t = [], n = e.split(".").flatMap((i) => {
105
105
  const r = i.match(/^([^\[]+)(\[\d+\])(.*)$/);
@@ -119,7 +119,7 @@ function Ne(e) {
119
119
  } else i && t.push({ type: "property", key: i });
120
120
  return t;
121
121
  }
122
- function Ze(e, t) {
122
+ function Xe(e, t) {
123
123
  if (t.length === 0) return e;
124
124
  let n = e;
125
125
  for (const i of t) {
@@ -154,19 +154,19 @@ function ge(e, t) {
154
154
  if (t)
155
155
  return e ? `${e}_${t}_validate` : `${t}_validate`;
156
156
  }
157
- const yn = {
157
+ const gn = {
158
158
  dataSets: {},
159
159
  commandQueues: {},
160
160
  propsStore: {},
161
161
  validateStore: {}
162
162
  };
163
- function gn(e, t, n, i) {
163
+ function pn(e, t, n, i) {
164
164
  const { baseName: r, index: a } = Se(t);
165
165
  if (e.dataSets[r] || (e.dataSets[r] = {}), a !== null) {
166
166
  const d = e.dataSets[r];
167
167
  let v = d.value;
168
168
  Array.isArray(v) || (v = []);
169
- const h = v[a], p = n.length === 0 ? h : Ze(h ?? {}, n), g = i(p), f = n.length === 0 ? g : vi(h ?? {}, n, g), s = [...v];
169
+ const h = v[a], p = n.length === 0 ? h : Xe(h ?? {}, n), g = i(p), f = n.length === 0 ? g : vi(h ?? {}, n, g), s = [...v];
170
170
  s[a] = f, e.dataSets[r] = { ...d, value: s };
171
171
  return;
172
172
  }
@@ -186,17 +186,17 @@ function gn(e, t, n, i) {
186
186
  const _ = Yr()(
187
187
  Gr(
188
188
  Jr((e, t) => ({
189
- ...yn,
189
+ ...gn,
190
190
  // ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
191
191
  setDataSet: (n, i, r, a = !0) => e((o) => {
192
192
  if (!n) return;
193
- const c = i ? Ne(i) : [], l = a && typeof r == "object" && r !== null && !Array.isArray(r);
194
- gn(o, n, c, (v) => l && v != null && typeof v == "object" && !Array.isArray(v) ? { ...v, ...r } : r);
193
+ const c = i ? ke(i) : [], l = a && typeof r == "object" && r !== null && !Array.isArray(r);
194
+ pn(o, n, c, (v) => l && v != null && typeof v == "object" && !Array.isArray(v) ? { ...v, ...r } : r);
195
195
  }),
196
196
  updateDataSet: (n, i, r) => e((a) => {
197
197
  if (!n || typeof r != "function") return;
198
- const o = i ? Ne(i) : [];
199
- gn(a, n, o, r);
198
+ const o = i ? ke(i) : [];
199
+ pn(a, n, o, r);
200
200
  }),
201
201
  getDataSet: (n, i) => {
202
202
  if (!n) return;
@@ -206,10 +206,10 @@ const _ = Yr()(
206
206
  if (!Array.isArray(l) || l[o] === void 0)
207
207
  return;
208
208
  const d = l[o];
209
- return i ? Ze(d, Ne(i)) : d;
209
+ return i ? Xe(d, ke(i)) : d;
210
210
  }
211
211
  if (c)
212
- return i ? Ze(c, Ne(i)) : c;
212
+ return i ? Xe(c, ke(i)) : c;
213
213
  },
214
214
  setDataSetBatch: (n, i) => e((r) => {
215
215
  r.dataSets[n] = {
@@ -262,7 +262,7 @@ const _ = Yr()(
262
262
  return r ? t().validateStore[r] ?? {} : {};
263
263
  },
264
264
  // ============ 全局操作 ============
265
- reset: () => e(yn)
265
+ reset: () => e(gn)
266
266
  }))
267
267
  )
268
268
  );
@@ -419,10 +419,10 @@ function ne() {
419
419
  function Di(e, t) {
420
420
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ve(e, t);
421
421
  }
422
- function Xe(e) {
423
- return Xe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
422
+ function Ie(e) {
423
+ return Ie = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
424
424
  return n.__proto__ || Object.getPrototypeOf(n);
425
- }, Xe(e);
425
+ }, Ie(e);
426
426
  }
427
427
  function ve(e, t) {
428
428
  return ve = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
@@ -439,20 +439,20 @@ function xi() {
439
439
  return !1;
440
440
  }
441
441
  }
442
- function Me(e, t, n) {
443
- return xi() ? Me = Reflect.construct.bind() : Me = function(r, a, o) {
442
+ function $e(e, t, n) {
443
+ return xi() ? $e = Reflect.construct.bind() : $e = function(r, a, o) {
444
444
  var c = [null];
445
445
  c.push.apply(c, a);
446
446
  var l = Function.bind.apply(r, c), d = new l();
447
447
  return o && ve(d, o.prototype), d;
448
- }, Me.apply(null, arguments);
448
+ }, $e.apply(null, arguments);
449
449
  }
450
450
  function Ai(e) {
451
451
  return Function.toString.call(e).indexOf("[native code]") !== -1;
452
452
  }
453
- function Ie(e) {
453
+ function tn(e) {
454
454
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
455
- return Ie = function(i) {
455
+ return tn = function(i) {
456
456
  if (i === null || !Ai(i)) return i;
457
457
  if (typeof i != "function")
458
458
  throw new TypeError("Super expression must either be null or a function");
@@ -461,7 +461,7 @@ function Ie(e) {
461
461
  t.set(i, r);
462
462
  }
463
463
  function r() {
464
- return Me(i, arguments, Xe(this).constructor);
464
+ return $e(i, arguments, Ie(this).constructor);
465
465
  }
466
466
  return r.prototype = Object.create(i.prototype, {
467
467
  constructor: {
@@ -471,16 +471,16 @@ function Ie(e) {
471
471
  configurable: !0
472
472
  }
473
473
  }), ve(r, i);
474
- }, Ie(e);
474
+ }, tn(e);
475
475
  }
476
- var Ci = /%[sdj%]/g, Jn = function() {
476
+ var Ci = /%[sdj%]/g, Qn = function() {
477
477
  };
478
- typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Jn = function(t, n) {
478
+ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Qn = function(t, n) {
479
479
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(i) {
480
480
  return typeof i == "string";
481
481
  }) && console.warn(t, n);
482
482
  });
483
- function tn(e) {
483
+ function en(e) {
484
484
  if (!e || !e.length) return null;
485
485
  var t = {};
486
486
  return e.forEach(function(n) {
@@ -488,7 +488,7 @@ function tn(e) {
488
488
  t[i] = t[i] || [], t[i].push(n);
489
489
  }), t;
490
490
  }
491
- function Lt(e) {
491
+ function Vt(e) {
492
492
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
493
493
  n[i - 1] = arguments[i];
494
494
  var r = 0, a = n.length;
@@ -523,7 +523,7 @@ function Lt(e) {
523
523
  function Ti(e) {
524
524
  return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
525
525
  }
526
- function Ot(e, t) {
526
+ function Et(e, t) {
527
527
  return !!(e == null || t === "array" && Array.isArray(e) && !e.length || Ti(t) && typeof e == "string" && !e);
528
528
  }
529
529
  function Ni(e, t, n) {
@@ -535,7 +535,7 @@ function Ni(e, t, n) {
535
535
  t(c, o);
536
536
  });
537
537
  }
538
- function pn(e, t, n) {
538
+ function vn(e, t, n) {
539
539
  var i = 0, r = e.length;
540
540
  function a(o) {
541
541
  if (o && o.length) {
@@ -553,21 +553,21 @@ function ki(e) {
553
553
  t.push.apply(t, e[n] || []);
554
554
  }), t;
555
555
  }
556
- var vn = /* @__PURE__ */ function(e) {
556
+ var bn = /* @__PURE__ */ function(e) {
557
557
  Di(t, e);
558
558
  function t(n, i) {
559
559
  var r;
560
560
  return r = e.call(this, "Async Validation Error") || this, r.errors = n, r.fields = i, r;
561
561
  }
562
562
  return t;
563
- }(/* @__PURE__ */ Ie(Error));
563
+ }(/* @__PURE__ */ tn(Error));
564
564
  function Oi(e, t, n, i, r) {
565
565
  if (t.first) {
566
566
  var a = new Promise(function(p, g) {
567
567
  var f = function(u) {
568
- return i(u), u.length ? g(new vn(u, tn(u))) : p(r);
568
+ return i(u), u.length ? g(new bn(u, en(u))) : p(r);
569
569
  }, s = ki(e);
570
- pn(s, n, f);
570
+ vn(s, n, f);
571
571
  });
572
572
  return a.catch(function(p) {
573
573
  return p;
@@ -576,11 +576,11 @@ function Oi(e, t, n, i, r) {
576
576
  var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], c = Object.keys(e), l = c.length, d = 0, v = [], h = new Promise(function(p, g) {
577
577
  var f = function(m) {
578
578
  if (v.push.apply(v, m), d++, d === l)
579
- return i(v), v.length ? g(new vn(v, tn(v))) : p(r);
579
+ return i(v), v.length ? g(new bn(v, en(v))) : p(r);
580
580
  };
581
581
  c.length || (i(v), p(r)), c.forEach(function(s) {
582
582
  var m = e[s];
583
- o.indexOf(s) !== -1 ? pn(m, n, f) : Ni(m, n, f);
583
+ o.indexOf(s) !== -1 ? vn(m, n, f) : Ni(m, n, f);
584
584
  });
585
585
  });
586
586
  return h.catch(function(p) {
@@ -598,7 +598,7 @@ function Ei(e, t) {
598
598
  }
599
599
  return n;
600
600
  }
601
- function bn(e, t) {
601
+ function Sn(e, t) {
602
602
  return function(n) {
603
603
  var i;
604
604
  return e.fullFields ? i = Ei(t, e.fullFields) : i = t[n.field || e.fullField], _i(n) ? (n.field = n.field || e.fullField, n.fieldValue = i, n) : {
@@ -608,7 +608,7 @@ function bn(e, t) {
608
608
  };
609
609
  };
610
610
  }
611
- function Sn(e, t) {
611
+ function wn(e, t) {
612
612
  if (t) {
613
613
  for (var n in t)
614
614
  if (t.hasOwnProperty(n)) {
@@ -618,13 +618,13 @@ function Sn(e, t) {
618
618
  }
619
619
  return e;
620
620
  }
621
- var Qn = function(t, n, i, r, a, o) {
622
- t.required && (!i.hasOwnProperty(t.field) || Ot(n, o || t.type)) && r.push(Lt(a.messages.required, t.fullField));
621
+ var Fn = function(t, n, i, r, a, o) {
622
+ t.required && (!i.hasOwnProperty(t.field) || Et(n, o || t.type)) && r.push(Vt(a.messages.required, t.fullField));
623
623
  }, Mi = function(t, n, i, r, a) {
624
- (/^\s+$/.test(n) || n === "") && r.push(Lt(a.messages.whitespace, t.fullField));
625
- }, ke, $i = function() {
626
- if (ke)
627
- return ke;
624
+ (/^\s+$/.test(n) || n === "") && r.push(Vt(a.messages.whitespace, t.fullField));
625
+ }, Oe, $i = function() {
626
+ if (Oe)
627
+ return Oe;
628
628
  var e = "[a-fA-F\\d:]", t = function(C) {
629
629
  return C && C.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
630
630
  }, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", i = "[a-fA-F\\d]{1,4}", r = (`
@@ -647,8 +647,8 @@ var Qn = function(t, n, i, r, a, o) {
647
647
  return x && x.exact ? c : new RegExp("" + t(x) + r + t(x), "g");
648
648
  };
649
649
  var d = "(?:(?:[a-z]+:)?//)", v = "(?:\\S+(?::\\S*)?@)?", h = l.v4().source, p = l.v6().source, g = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", s = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", u = '(?:[/?#][^\\s"]*)?', S = "(?:" + d + "|www\\.)" + v + "(?:localhost|" + h + "|" + p + "|" + g + f + s + ")" + m + u;
650
- return ke = new RegExp("(?:^" + S + "$)", "i"), ke;
651
- }, wn = {
650
+ return Oe = new RegExp("(?:^" + S + "$)", "i"), Oe;
651
+ }, Dn = {
652
652
  // http://emailregex.com/
653
653
  email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
654
654
  // url: new RegExp(
@@ -688,39 +688,39 @@ var Qn = function(t, n, i, r, a, o) {
688
688
  return typeof t == "function";
689
689
  },
690
690
  email: function(t) {
691
- return typeof t == "string" && t.length <= 320 && !!t.match(wn.email);
691
+ return typeof t == "string" && t.length <= 320 && !!t.match(Dn.email);
692
692
  },
693
693
  url: function(t) {
694
694
  return typeof t == "string" && t.length <= 2048 && !!t.match($i());
695
695
  },
696
696
  hex: function(t) {
697
- return typeof t == "string" && !!t.match(wn.hex);
697
+ return typeof t == "string" && !!t.match(Dn.hex);
698
698
  }
699
699
  }, Ri = function(t, n, i, r, a) {
700
700
  if (t.required && n === void 0) {
701
- Qn(t, n, i, r, a);
701
+ Fn(t, n, i, r, a);
702
702
  return;
703
703
  }
704
704
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = t.type;
705
- o.indexOf(c) > -1 ? he[c](n) || r.push(Lt(a.messages.types[c], t.fullField, t.type)) : c && typeof n !== t.type && r.push(Lt(a.messages.types[c], t.fullField, t.type));
705
+ o.indexOf(c) > -1 ? he[c](n) || r.push(Vt(a.messages.types[c], t.fullField, t.type)) : c && typeof n !== t.type && r.push(Vt(a.messages.types[c], t.fullField, t.type));
706
706
  }, ji = function(t, n, i, r, a) {
707
707
  var o = typeof t.len == "number", c = typeof t.min == "number", l = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, v = n, h = null, p = typeof n == "number", g = typeof n == "string", f = Array.isArray(n);
708
708
  if (p ? h = "number" : g ? h = "string" : f && (h = "array"), !h)
709
709
  return !1;
710
- f && (v = n.length), g && (v = n.replace(d, "_").length), o ? v !== t.len && r.push(Lt(a.messages[h].len, t.fullField, t.len)) : c && !l && v < t.min ? r.push(Lt(a.messages[h].min, t.fullField, t.min)) : l && !c && v > t.max ? r.push(Lt(a.messages[h].max, t.fullField, t.max)) : c && l && (v < t.min || v > t.max) && r.push(Lt(a.messages[h].range, t.fullField, t.min, t.max));
710
+ f && (v = n.length), g && (v = n.replace(d, "_").length), o ? v !== t.len && r.push(Vt(a.messages[h].len, t.fullField, t.len)) : c && !l && v < t.min ? r.push(Vt(a.messages[h].min, t.fullField, t.min)) : l && !c && v > t.max ? r.push(Vt(a.messages[h].max, t.fullField, t.max)) : c && l && (v < t.min || v > t.max) && r.push(Vt(a.messages[h].range, t.fullField, t.min, t.max));
711
711
  }, ce = "enum", Bi = function(t, n, i, r, a) {
712
- t[ce] = Array.isArray(t[ce]) ? t[ce] : [], t[ce].indexOf(n) === -1 && r.push(Lt(a.messages[ce], t.fullField, t[ce].join(", ")));
712
+ t[ce] = Array.isArray(t[ce]) ? t[ce] : [], t[ce].indexOf(n) === -1 && r.push(Vt(a.messages[ce], t.fullField, t[ce].join(", ")));
713
713
  }, Ki = function(t, n, i, r, a) {
714
714
  if (t.pattern) {
715
715
  if (t.pattern instanceof RegExp)
716
- t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(Lt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
716
+ t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(Vt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
717
717
  else if (typeof t.pattern == "string") {
718
718
  var o = new RegExp(t.pattern);
719
- o.test(n) || r.push(Lt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
719
+ o.test(n) || r.push(Vt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
720
720
  }
721
721
  }
722
- }, ht = {
723
- required: Qn,
722
+ }, yt = {
723
+ required: Fn,
724
724
  whitespace: Mi,
725
725
  type: Ri,
726
726
  range: ji,
@@ -729,57 +729,57 @@ var Qn = function(t, n, i, r, a, o) {
729
729
  }, Li = function(t, n, i, r, a) {
730
730
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
731
731
  if (c) {
732
- if (Ot(n, "string") && !t.required)
732
+ if (Et(n, "string") && !t.required)
733
733
  return i();
734
- ht.required(t, n, r, o, a, "string"), Ot(n, "string") || (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a), ht.pattern(t, n, r, o, a), t.whitespace === !0 && ht.whitespace(t, n, r, o, a));
734
+ yt.required(t, n, r, o, a, "string"), Et(n, "string") || (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a), yt.pattern(t, n, r, o, a), t.whitespace === !0 && yt.whitespace(t, n, r, o, a));
735
735
  }
736
736
  i(o);
737
737
  }, zi = function(t, n, i, r, a) {
738
738
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
739
739
  if (c) {
740
- if (Ot(n) && !t.required)
740
+ if (Et(n) && !t.required)
741
741
  return i();
742
- ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
742
+ yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
743
743
  }
744
744
  i(o);
745
745
  }, Vi = function(t, n, i, r, a) {
746
746
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
747
747
  if (c) {
748
- if (n === "" && (n = void 0), Ot(n) && !t.required)
748
+ if (n === "" && (n = void 0), Et(n) && !t.required)
749
749
  return i();
750
- ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
750
+ yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
751
751
  }
752
752
  i(o);
753
753
  }, qi = function(t, n, i, r, a) {
754
754
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
755
755
  if (c) {
756
- if (Ot(n) && !t.required)
756
+ if (Et(n) && !t.required)
757
757
  return i();
758
- ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
758
+ yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
759
759
  }
760
760
  i(o);
761
761
  }, Wi = function(t, n, i, r, a) {
762
762
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
763
763
  if (c) {
764
- if (Ot(n) && !t.required)
764
+ if (Et(n) && !t.required)
765
765
  return i();
766
- ht.required(t, n, r, o, a), Ot(n) || ht.type(t, n, r, o, a);
766
+ yt.required(t, n, r, o, a), Et(n) || yt.type(t, n, r, o, a);
767
767
  }
768
768
  i(o);
769
769
  }, Hi = function(t, n, i, r, a) {
770
770
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
771
771
  if (c) {
772
- if (Ot(n) && !t.required)
772
+ if (Et(n) && !t.required)
773
773
  return i();
774
- ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
774
+ yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
775
775
  }
776
776
  i(o);
777
777
  }, Pi = function(t, n, i, r, a) {
778
778
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
779
779
  if (c) {
780
- if (Ot(n) && !t.required)
780
+ if (Et(n) && !t.required)
781
781
  return i();
782
- ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
782
+ yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
783
783
  }
784
784
  i(o);
785
785
  }, Ui = function(t, n, i, r, a) {
@@ -787,61 +787,61 @@ var Qn = function(t, n, i, r, a, o) {
787
787
  if (c) {
788
788
  if (n == null && !t.required)
789
789
  return i();
790
- ht.required(t, n, r, o, a, "array"), n != null && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
790
+ yt.required(t, n, r, o, a, "array"), n != null && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
791
791
  }
792
792
  i(o);
793
793
  }, Yi = function(t, n, i, r, a) {
794
794
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
795
795
  if (c) {
796
- if (Ot(n) && !t.required)
796
+ if (Et(n) && !t.required)
797
797
  return i();
798
- ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
798
+ yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
799
799
  }
800
800
  i(o);
801
801
  }, Gi = "enum", Ji = function(t, n, i, r, a) {
802
802
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
803
803
  if (c) {
804
- if (Ot(n) && !t.required)
804
+ if (Et(n) && !t.required)
805
805
  return i();
806
- ht.required(t, n, r, o, a), n !== void 0 && ht[Gi](t, n, r, o, a);
806
+ yt.required(t, n, r, o, a), n !== void 0 && yt[Gi](t, n, r, o, a);
807
807
  }
808
808
  i(o);
809
809
  }, Qi = function(t, n, i, r, a) {
810
810
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
811
811
  if (c) {
812
- if (Ot(n, "string") && !t.required)
812
+ if (Et(n, "string") && !t.required)
813
813
  return i();
814
- ht.required(t, n, r, o, a), Ot(n, "string") || ht.pattern(t, n, r, o, a);
814
+ yt.required(t, n, r, o, a), Et(n, "string") || yt.pattern(t, n, r, o, a);
815
815
  }
816
816
  i(o);
817
817
  }, Fi = function(t, n, i, r, a) {
818
818
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
819
819
  if (c) {
820
- if (Ot(n, "date") && !t.required)
820
+ if (Et(n, "date") && !t.required)
821
821
  return i();
822
- if (ht.required(t, n, r, o, a), !Ot(n, "date")) {
822
+ if (yt.required(t, n, r, o, a), !Et(n, "date")) {
823
823
  var l;
824
- n instanceof Date ? l = n : l = new Date(n), ht.type(t, l, r, o, a), l && ht.range(t, l.getTime(), r, o, a);
824
+ n instanceof Date ? l = n : l = new Date(n), yt.type(t, l, r, o, a), l && yt.range(t, l.getTime(), r, o, a);
825
825
  }
826
826
  }
827
827
  i(o);
828
828
  }, Zi = function(t, n, i, r, a) {
829
829
  var o = [], c = Array.isArray(n) ? "array" : typeof n;
830
- ht.required(t, n, r, o, a, c), i(o);
831
- }, We = function(t, n, i, r, a) {
830
+ yt.required(t, n, r, o, a, c), i(o);
831
+ }, He = function(t, n, i, r, a) {
832
832
  var o = t.type, c = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
833
833
  if (l) {
834
- if (Ot(n, o) && !t.required)
834
+ if (Et(n, o) && !t.required)
835
835
  return i();
836
- ht.required(t, n, r, c, a, o), Ot(n, o) || ht.type(t, n, r, c, a);
836
+ yt.required(t, n, r, c, a, o), Et(n, o) || yt.type(t, n, r, c, a);
837
837
  }
838
838
  i(c);
839
839
  }, Xi = function(t, n, i, r, a) {
840
840
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
841
841
  if (c) {
842
- if (Ot(n) && !t.required)
842
+ if (Et(n) && !t.required)
843
843
  return i();
844
- ht.required(t, n, r, o, a);
844
+ yt.required(t, n, r, o, a);
845
845
  }
846
846
  i(o);
847
847
  }, pe = {
@@ -857,13 +857,13 @@ var Qn = function(t, n, i, r, a, o) {
857
857
  enum: Ji,
858
858
  pattern: Qi,
859
859
  date: Fi,
860
- url: We,
861
- hex: We,
862
- email: We,
860
+ url: He,
861
+ hex: He,
862
+ email: He,
863
863
  required: Zi,
864
864
  any: Xi
865
865
  };
866
- function en() {
866
+ function nn() {
867
867
  return {
868
868
  default: "Validation error on field %s",
869
869
  required: "%s is required",
@@ -916,9 +916,9 @@ function en() {
916
916
  }
917
917
  };
918
918
  }
919
- var nn = en(), we = /* @__PURE__ */ function() {
919
+ var rn = nn(), we = /* @__PURE__ */ function() {
920
920
  function e(n) {
921
- this.rules = null, this._messages = nn, this.define(n);
921
+ this.rules = null, this._messages = rn, this.define(n);
922
922
  }
923
923
  var t = e.prototype;
924
924
  return t.define = function(i) {
@@ -932,7 +932,7 @@ var nn = en(), we = /* @__PURE__ */ function() {
932
932
  r.rules[a] = Array.isArray(o) ? o : [o];
933
933
  });
934
934
  }, t.messages = function(i) {
935
- return i && (this._messages = Sn(en(), i)), this._messages;
935
+ return i && (this._messages = wn(nn(), i)), this._messages;
936
936
  }, t.validate = function(i, r, a) {
937
937
  var o = this;
938
938
  r === void 0 && (r = {}), a === void 0 && (a = function() {
@@ -951,11 +951,11 @@ var nn = en(), we = /* @__PURE__ */ function() {
951
951
  }
952
952
  for (var x = 0; x < s.length; x++)
953
953
  S(s[x]);
954
- m.length ? (u = tn(m), d(m, u)) : d(null, c);
954
+ m.length ? (u = en(m), d(m, u)) : d(null, c);
955
955
  }
956
956
  if (l.messages) {
957
957
  var h = this.messages();
958
- h === nn && (h = en()), Sn(h, l.messages), l.messages = h;
958
+ h === rn && (h = nn()), wn(h, l.messages), l.messages = h;
959
959
  } else
960
960
  l.messages = this.messages();
961
961
  var p = {}, g = l.keys || Object.keys(this.rules);
@@ -987,14 +987,14 @@ var nn = en(), we = /* @__PURE__ */ function() {
987
987
  D === void 0 && (D = []);
988
988
  var T = Array.isArray(D) ? D : [D];
989
989
  !l.suppressWarning && T.length && e.warning("async-validator:", T), T.length && u.message !== void 0 && (T = [].concat(u.message));
990
- var O = T.map(bn(u, c));
990
+ var O = T.map(Sn(u, c));
991
991
  if (l.first && O.length)
992
992
  return f[u.field] = 1, m(O);
993
993
  if (!S)
994
994
  m(O);
995
995
  else {
996
996
  if (u.required && !s.value)
997
- return u.message !== void 0 ? O = [].concat(u.message).map(bn(u, c)) : l.error && (O = [l.error(u, Lt(l.messages.required, u.field))]), m(O);
997
+ return u.message !== void 0 ? O = [].concat(u.message).map(Sn(u, c)) : l.error && (O = [l.error(u, Vt(l.messages.required, u.field))]), m(O);
998
998
  var N = {};
999
999
  u.defaultField && Object.keys(s.value).map(function(k) {
1000
1000
  N[k] = u.defaultField;
@@ -1034,7 +1034,7 @@ var nn = en(), we = /* @__PURE__ */ function() {
1034
1034
  }, c);
1035
1035
  }, t.getType = function(i) {
1036
1036
  if (i.type === void 0 && i.pattern instanceof RegExp && (i.type = "pattern"), typeof i.validator != "function" && i.type && !pe.hasOwnProperty(i.type))
1037
- throw new Error(Lt("Unknown rule type %s", i.type));
1037
+ throw new Error(Vt("Unknown rule type %s", i.type));
1038
1038
  return i.type || "string";
1039
1039
  }, t.getValidationMethod = function(i) {
1040
1040
  if (typeof i.validator == "function")
@@ -1048,8 +1048,8 @@ we.register = function(t, n) {
1048
1048
  throw new Error("Cannot register a validator by type, validator is not a function");
1049
1049
  pe[t] = n;
1050
1050
  };
1051
- we.warning = Jn;
1052
- we.messages = nn;
1051
+ we.warning = Qn;
1052
+ we.messages = rn;
1053
1053
  we.validators = pe;
1054
1054
  function Ii(e) {
1055
1055
  if (!e || typeof e != "string") return null;
@@ -1060,7 +1060,7 @@ function Ii(e) {
1060
1060
  return null;
1061
1061
  }
1062
1062
  }
1063
- function Fn(e) {
1063
+ function Zn(e) {
1064
1064
  return !e || !Array.isArray(e) ? [] : e.map((t) => {
1065
1065
  const n = { ...t };
1066
1066
  if (n.pattern && typeof n.pattern == "string" && n.pattern.trim()) {
@@ -1070,20 +1070,20 @@ function Fn(e) {
1070
1070
  return n;
1071
1071
  });
1072
1072
  }
1073
- const Dn = "_v";
1074
- function Zn(e, t, n, i) {
1073
+ const xn = "_v";
1074
+ function Xn(e, t, n, i) {
1075
1075
  if (!(e != null && e.length)) {
1076
1076
  n();
1077
1077
  return;
1078
1078
  }
1079
- const r = { [Dn]: e };
1080
- new we(r).validate({ [Dn]: t }, { first: !0 }).then(() => {
1079
+ const r = { [xn]: e };
1080
+ new we(r).validate({ [xn]: t }, { first: !0 }).then(() => {
1081
1081
  n();
1082
1082
  }).catch(({ errors: o }) => {
1083
1083
  i(o || []);
1084
1084
  });
1085
1085
  }
1086
- function Bt(e) {
1086
+ function Kt(e) {
1087
1087
  const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id: a, develop: o } = e, c = _((w) => w.setValidateResult), l = _((w) => w.getProps), d = _((w) => w.setProps), v = y(
1088
1088
  () => ge(r, n),
1089
1089
  [r, n]
@@ -1119,8 +1119,8 @@ function Bt(e) {
1119
1119
  [r, n, i, a, c, l, d]
1120
1120
  ), S = j(
1121
1121
  (w) => {
1122
- const D = Fn(t || []);
1123
- Zn(
1122
+ const D = Zn(t || []);
1123
+ Xn(
1124
1124
  D,
1125
1125
  w,
1126
1126
  () => u(""),
@@ -1132,7 +1132,7 @@ function Bt(e) {
1132
1132
  },
1133
1133
  [t, u]
1134
1134
  ), x = o ? void 0 : r && n && i ? h : (p == null ? void 0 : p.help) ?? "", C = !o && x ? "error" : void 0;
1135
- return Dt(() => {
1135
+ return St(() => {
1136
1136
  if (m == null || !f || !i) return;
1137
1137
  const w = g(f, i);
1138
1138
  S(w);
@@ -1148,14 +1148,14 @@ function Qt(e, t, n) {
1148
1148
  }), r;
1149
1149
  }
1150
1150
  const ie = Qr(null);
1151
- function Oe(e) {
1151
+ function _e(e) {
1152
1152
  return typeof e == "string" && e.trim() !== "";
1153
1153
  }
1154
- function Re(e, t, n) {
1154
+ function je(e, t, n) {
1155
1155
  const i = be(ie);
1156
1156
  return y(() => {
1157
1157
  const r = n ?? (i == null ? void 0 : i.sessionId);
1158
- if (Oe(e))
1158
+ if (_e(e))
1159
1159
  return {
1160
1160
  dataSet: e,
1161
1161
  dataSetField: t,
@@ -1168,7 +1168,7 @@ function Re(e, t, n) {
1168
1168
  sessionId: r
1169
1169
  };
1170
1170
  const a = i.index, o = i.dataSet, c = i.dataSetFieldRoot;
1171
- if (Oe(t)) {
1171
+ if (_e(t)) {
1172
1172
  const l = t.trim();
1173
1173
  if (l.startsWith("["))
1174
1174
  return {
@@ -1176,7 +1176,7 @@ function Re(e, t, n) {
1176
1176
  dataSetField: l,
1177
1177
  sessionId: r
1178
1178
  };
1179
- if (Oe(c))
1179
+ if (_e(c))
1180
1180
  return {
1181
1181
  dataSet: o,
1182
1182
  dataSetField: `${c}[${a}].${l}`,
@@ -1189,7 +1189,7 @@ function Re(e, t, n) {
1189
1189
  sessionId: r
1190
1190
  };
1191
1191
  }
1192
- return Oe(c) ? {
1192
+ return _e(c) ? {
1193
1193
  dataSet: o,
1194
1194
  dataSetField: `${c}[${a}]`,
1195
1195
  sessionId: r
@@ -1226,19 +1226,19 @@ async function re(e) {
1226
1226
  "Request handler not configured. Please call setCoreConfig() first."
1227
1227
  );
1228
1228
  }
1229
- async function Xn(e, t) {
1229
+ async function In(e, t) {
1230
1230
  if (qt.upload)
1231
1231
  return qt.upload(e, t);
1232
1232
  throw new Error(
1233
1233
  "Upload handler not configured. Please call setCoreConfig() first."
1234
1234
  );
1235
1235
  }
1236
- async function ln(e) {
1236
+ async function un(e) {
1237
1237
  return qt.getDictOptions ? qt.getDictOptions(e) : (console.warn(
1238
1238
  "Dict service not configured. Please call setCoreConfig() with getDictOptions."
1239
1239
  ), []);
1240
1240
  }
1241
- function rn() {
1241
+ function an() {
1242
1242
  return qt.getAccessToken ? qt.getAccessToken() : null;
1243
1243
  }
1244
1244
  const dc = {
@@ -1259,12 +1259,12 @@ function na() {
1259
1259
  async (l, d, v) => re({ url: l, data: d, method: "POST", ...v }),
1260
1260
  []
1261
1261
  ), r = j(
1262
- async (l) => ln(l),
1262
+ async (l) => un(l),
1263
1263
  []
1264
1264
  ), a = j(
1265
- async (l, d) => Xn(l, d),
1265
+ async (l, d) => In(l, d),
1266
1266
  []
1267
- ), o = j(() => rn(), []), c = j(() => !!e.request, [e.request]);
1267
+ ), o = j(() => an(), []), c = j(() => !!e.request, [e.request]);
1268
1268
  return {
1269
1269
  request: t,
1270
1270
  get: n,
@@ -1277,14 +1277,14 @@ function na() {
1277
1277
  };
1278
1278
  }
1279
1279
  function De(e) {
1280
- const [t, n] = mt([]), [i, r] = mt(!1), [a, o] = mt(null);
1281
- return Dt(() => {
1280
+ const [t, n] = ht([]), [i, r] = ht(!1), [a, o] = ht(null);
1281
+ return St(() => {
1282
1282
  if (!e) {
1283
1283
  n([]);
1284
1284
  return;
1285
1285
  }
1286
1286
  let c = !1;
1287
- return r(!0), o(null), ln(e).then((l) => {
1287
+ return r(!0), o(null), un(e).then((l) => {
1288
1288
  c || n(l);
1289
1289
  }).catch((l) => {
1290
1290
  c || (o(l), console.error(`Failed to load dict: ${e}`, l));
@@ -1295,8 +1295,8 @@ function De(e) {
1295
1295
  };
1296
1296
  }, [e]), { options: t, loading: i, error: a };
1297
1297
  }
1298
- function un(e, t) {
1299
- const [n, i] = mt([]), [r, a] = mt(!1), [o, c] = mt(null), {
1298
+ function fn(e, t) {
1299
+ const [n, i] = ht([]), [r, a] = ht(!1), [o, c] = ht(null), {
1300
1300
  labelKey: l = "label",
1301
1301
  valueKey: d = "value",
1302
1302
  immediate: v = !0,
@@ -1329,7 +1329,7 @@ function un(e, t) {
1329
1329
  }
1330
1330
  }
1331
1331
  }, [e, g, f, h]);
1332
- return Dt(() => {
1332
+ return St(() => {
1333
1333
  v && e && s();
1334
1334
  }, [v, e, s]), { options: n, loading: r, error: o, reload: s };
1335
1335
  }
@@ -1337,7 +1337,7 @@ const ue = (e) => {
1337
1337
  if (e == null || e === "") return 0;
1338
1338
  const t = Number(e);
1339
1339
  return isNaN(t) || !isFinite(t) ? 0 : t;
1340
- }, Nt = (e) => e == null ? "" : String(e), je = (e) => {
1340
+ }, kt = (e) => e == null ? "" : String(e), Be = (e) => {
1341
1341
  if (e == null) return null;
1342
1342
  let t;
1343
1343
  if (e instanceof Date)
@@ -1394,7 +1394,7 @@ const ue = (e) => {
1394
1394
  }
1395
1395
  }, ca = (e, t = {}) => {
1396
1396
  try {
1397
- const n = je(e);
1397
+ const n = Be(e);
1398
1398
  return n ? new Intl.DateTimeFormat("zh-CN", {
1399
1399
  year: "numeric",
1400
1400
  month: "2-digit",
@@ -1404,18 +1404,18 @@ const ue = (e) => {
1404
1404
  } catch {
1405
1405
  return "";
1406
1406
  }
1407
- }, In = (e, t = "YYYY-MM-DD") => {
1407
+ }, tr = (e, t = "YYYY-MM-DD") => {
1408
1408
  try {
1409
- const n = je(e);
1409
+ const n = Be(e);
1410
1410
  if (!n) return "";
1411
1411
  const i = n.getFullYear(), r = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0"), o = String(n.getHours()).padStart(2, "0"), c = String(n.getMinutes()).padStart(2, "0"), l = String(n.getSeconds()).padStart(2, "0");
1412
1412
  return t.replace("YYYY", String(i)).replace("MM", r).replace("DD", a).replace("HH", o).replace("mm", c).replace("ss", l);
1413
1413
  } catch {
1414
1414
  return "";
1415
1415
  }
1416
- }, sa = (e, t = "YYYY-MM-DD HH:mm:ss") => In(e, t), la = (e) => {
1416
+ }, sa = (e, t = "YYYY-MM-DD HH:mm:ss") => tr(e, t), la = (e) => {
1417
1417
  try {
1418
- const t = je(e);
1418
+ const t = Be(e);
1419
1419
  if (!t) return "";
1420
1420
  const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), r = Math.floor(i / 1e3), a = Math.floor(r / 60), o = Math.floor(a / 60), c = Math.floor(o / 24), l = Math.floor(c / 30), d = Math.floor(c / 365);
1421
1421
  return r < 60 ? "刚刚" : a < 60 ? `${a}分钟前` : o < 24 ? `${o}小时前` : c < 30 ? `${c}天前` : l < 12 ? `${l}个月前` : `${d}年前`;
@@ -1433,7 +1433,7 @@ const ue = (e) => {
1433
1433
  }
1434
1434
  }, fa = (e) => {
1435
1435
  try {
1436
- const t = je(e);
1436
+ const t = Be(e);
1437
1437
  if (!t) return "";
1438
1438
  const n = /* @__PURE__ */ new Date();
1439
1439
  if (t > n) return "";
@@ -1458,21 +1458,21 @@ const ue = (e) => {
1458
1458
  }
1459
1459
  }, ma = (e, t = "CN") => {
1460
1460
  try {
1461
- const n = Nt(e).replace(/\D/g, "");
1462
- return n ? t === "CN" && n.length === 11 && /^1[3-9]\d{9}$/.test(n) ? n.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3") : t === "US" && n.length === 10 ? n.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3") : Nt(e) : "";
1461
+ const n = kt(e).replace(/\D/g, "");
1462
+ return n ? t === "CN" && n.length === 11 && /^1[3-9]\d{9}$/.test(n) ? n.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3") : t === "US" && n.length === 10 ? n.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3") : kt(e) : "";
1463
1463
  } catch {
1464
1464
  return "";
1465
1465
  }
1466
1466
  }, ha = (e) => {
1467
1467
  try {
1468
- const t = Nt(e).replace(/\D/g, "");
1469
- return t.length === 11 ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : Nt(e);
1468
+ const t = kt(e).replace(/\D/g, "");
1469
+ return t.length === 11 ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : kt(e);
1470
1470
  } catch {
1471
1471
  return "";
1472
1472
  }
1473
1473
  }, ya = (e) => {
1474
1474
  try {
1475
- const t = Nt(e);
1475
+ const t = kt(e);
1476
1476
  if (!t || !t.includes("@")) return "";
1477
1477
  const [n, i] = t.split("@");
1478
1478
  return n.length <= 1 ? t : n.length <= 3 ? `${n[0]}*@${i}` : `${n[0] + "*".repeat(n.length - 2) + n[n.length - 1]}@${i}`;
@@ -1481,14 +1481,14 @@ const ue = (e) => {
1481
1481
  }
1482
1482
  }, ga = (e, t = !0) => {
1483
1483
  try {
1484
- const n = Nt(e).replace(/\s/g, "");
1484
+ const n = kt(e).replace(/\s/g, "");
1485
1485
  return n.length === 18 && /^\d{17}[\dXx]$/.test(n) ? t ? n.replace(/(\d{6})\d{8}(\d{3}[\dXx])/, "$1********$2") : n.replace(/(\d{6})(\d{8})(\d{4})/, "$1 $2 $3") : "";
1486
1486
  } catch {
1487
1487
  return "";
1488
1488
  }
1489
1489
  }, pa = (e, t = !0) => {
1490
1490
  try {
1491
- const n = Nt(e).replace(/\s/g, "");
1491
+ const n = kt(e).replace(/\s/g, "");
1492
1492
  if (!/^\d{13,19}$/.test(n)) return "";
1493
1493
  if (t && n.length >= 8) {
1494
1494
  const i = n.slice(0, 4), r = n.slice(-4), a = n.length - 8, o = "*".repeat(a);
@@ -1500,28 +1500,28 @@ const ue = (e) => {
1500
1500
  }
1501
1501
  }, va = (e) => {
1502
1502
  try {
1503
- const t = Nt(e);
1503
+ const t = kt(e);
1504
1504
  return t.length <= 1 ? t : t.length === 2 ? t[0] + "*" : t[0] + "*".repeat(t.length - 2) + t[t.length - 1];
1505
1505
  } catch {
1506
1506
  return "";
1507
1507
  }
1508
1508
  }, ba = (e, t = 50, n = "...") => {
1509
1509
  try {
1510
- const i = Nt(e), r = Math.max(1, Math.min(1e3, Math.floor(t)));
1510
+ const i = kt(e), r = Math.max(1, Math.min(1e3, Math.floor(t)));
1511
1511
  return i.length <= r ? i : i.slice(0, r) + n;
1512
1512
  } catch {
1513
1513
  return "";
1514
1514
  }
1515
1515
  }, Sa = (e) => {
1516
1516
  try {
1517
- const t = Nt(e);
1517
+ const t = kt(e);
1518
1518
  return t ? t.charAt(0).toUpperCase() + t.slice(1).toLowerCase() : "";
1519
1519
  } catch {
1520
1520
  return "";
1521
1521
  }
1522
1522
  }, wa = (e, t = ", ") => {
1523
1523
  try {
1524
- return Array.isArray(e) ? e.join(t) : Nt(e);
1524
+ return Array.isArray(e) ? e.join(t) : kt(e);
1525
1525
  } catch {
1526
1526
  return "";
1527
1527
  }
@@ -1535,21 +1535,21 @@ const ue = (e) => {
1535
1535
  f: "女",
1536
1536
  M: "男",
1537
1537
  F: "女"
1538
- })[Nt(e)] || Nt(e), xa = (e, t) => t ? t[Nt(e)] || Nt(e) : {
1538
+ })[kt(e)] || kt(e), xa = (e, t) => t ? t[kt(e)] || kt(e) : {
1539
1539
  0: "禁用",
1540
1540
  1: "启用",
1541
1541
  true: "是",
1542
1542
  false: "否"
1543
- }[Nt(e)] || Nt(e), Aa = (e) => {
1543
+ }[kt(e)] || kt(e), Aa = (e) => {
1544
1544
  try {
1545
- return Nt(e).replace(/<[^>]*>/g, "");
1545
+ return kt(e).replace(/<[^>]*>/g, "");
1546
1546
  } catch {
1547
1547
  return "";
1548
1548
  }
1549
1549
  };
1550
1550
  function Ca(e, t, n = {}) {
1551
1551
  if (!t || e === void 0 || e === null)
1552
- return Nt(e);
1552
+ return kt(e);
1553
1553
  switch (t) {
1554
1554
  case "currency":
1555
1555
  return ra(e, n.currency, n);
@@ -1564,7 +1564,7 @@ function Ca(e, t, n = {}) {
1564
1564
  case "date":
1565
1565
  return ca(e, n);
1566
1566
  case "dateCustom":
1567
- return In(e, n.pattern);
1567
+ return tr(e, n.pattern);
1568
1568
  case "relativeTime":
1569
1569
  return la(e);
1570
1570
  case "duration":
@@ -1598,10 +1598,10 @@ function Ca(e, t, n = {}) {
1598
1598
  case "stripHtml":
1599
1599
  return Aa(e);
1600
1600
  default:
1601
- return Nt(e);
1601
+ return kt(e);
1602
1602
  }
1603
1603
  }
1604
- const Be = {
1604
+ const Ke = {
1605
1605
  // 基础颜色
1606
1606
  colorPrimary: "colorPrimary",
1607
1607
  colorSuccess: "colorSuccess",
@@ -1632,7 +1632,7 @@ const Be = {
1632
1632
  colorLink: "colorLink",
1633
1633
  colorLinkHover: "colorLinkHover",
1634
1634
  colorLinkActive: "colorLinkActive"
1635
- }, mc = Object.keys(Be), hc = [
1635
+ }, mc = Object.keys(Ke), hc = [
1636
1636
  { label: "主色", value: "colorPrimary" },
1637
1637
  { label: "成功", value: "colorSuccess" },
1638
1638
  { label: "警告", value: "colorWarning" },
@@ -1642,14 +1642,14 @@ const Be = {
1642
1642
  { label: "次级文本", value: "colorTextSecondary" },
1643
1643
  { label: "链接", value: "colorLink" }
1644
1644
  ];
1645
- function tr(e) {
1646
- return Be.hasOwnProperty(e);
1645
+ function er(e) {
1646
+ return Ke.hasOwnProperty(e);
1647
1647
  }
1648
- function Ke(e) {
1648
+ function Le(e) {
1649
1649
  const { token: t } = Zt.useToken();
1650
1650
  if (e) {
1651
- if (tr(e)) {
1652
- const n = Be[e];
1651
+ if (er(e)) {
1652
+ const n = Ke[e];
1653
1653
  return t[n] || e;
1654
1654
  }
1655
1655
  return e;
@@ -1657,8 +1657,8 @@ function Ke(e) {
1657
1657
  }
1658
1658
  function yc(e, t) {
1659
1659
  if (e) {
1660
- if (tr(e)) {
1661
- const n = Be[e];
1660
+ if (er(e)) {
1661
+ const n = Ke[e];
1662
1662
  return t[n] || e;
1663
1663
  }
1664
1664
  return e;
@@ -1756,7 +1756,7 @@ function Oa(e, t, n) {
1756
1756
  }
1757
1757
  return i;
1758
1758
  }
1759
- const er = (e) => {
1759
+ const nr = (e) => {
1760
1760
  const {
1761
1761
  id: t,
1762
1762
  sessionId: n,
@@ -1780,39 +1780,39 @@ const er = (e) => {
1780
1780
  addonAfter: C,
1781
1781
  addonBefore: w,
1782
1782
  ...D
1783
- } = e, T = Re(r, a, n), O = T.dataSet, N = T.dataSetField, A = T.sessionId, E = Mt(""), k = Mt(null), M = _((q) => q.addCommand), B = _((q) => q.getDataSet), H = _((q) => q.setDataSet), P = _((q) => q.getProps), $ = _((q) => q.setProps), z = _((q) => q.setValidateResult), K = y(
1783
+ } = e, T = je(r, a, n), O = T.dataSet, N = T.dataSetField, A = T.sessionId, E = Rt(""), k = Rt(null), M = _((W) => W.addCommand), B = _((W) => W.getDataSet), H = _((W) => W.setDataSet), P = _((W) => W.getProps), $ = _((W) => W.setProps), V = _((W) => W.setValidateResult), K = y(
1784
1784
  () => rt(A, O),
1785
1785
  [A, O]
1786
- ), V = _(
1787
- (q) => {
1786
+ ), q = _(
1787
+ (W) => {
1788
1788
  var et;
1789
- return A && t ? ((et = q.propsStore[`${A}_props`]) == null ? void 0 : et[t]) ?? null : null;
1789
+ return A && t ? ((et = W.propsStore[`${A}_props`]) == null ? void 0 : et[t]) ?? null : null;
1790
1790
  }
1791
1791
  ), R = y(
1792
1792
  () => ge(A, O),
1793
1793
  [A, O]
1794
1794
  ), L = _(
1795
- (q) => {
1795
+ (W) => {
1796
1796
  var et;
1797
- return R && N ? ((et = q.validateStore[R]) == null ? void 0 : et[N]) ?? "" : "";
1797
+ return R && N ? ((et = W.validateStore[R]) == null ? void 0 : et[N]) ?? "" : "";
1798
1798
  }
1799
1799
  ), Q = _(
1800
- (q) => K && N ? q.getDataSet(K, N) : void 0
1800
+ (W) => K && N ? W.getDataSet(K, N) : void 0
1801
1801
  ), G = y(
1802
1802
  () => O ? rt(A, `${O}_validateAction`) : void 0,
1803
1803
  [A, O]
1804
1804
  ), U = _(
1805
- (q) => {
1805
+ (W) => {
1806
1806
  var et;
1807
- return G ? (et = q.dataSets[G]) == null ? void 0 : et.validate : void 0;
1807
+ return G ? (et = W.dataSets[G]) == null ? void 0 : et.validate : void 0;
1808
1808
  }
1809
- ), at = y(() => Q !== void 0 ? Q : (V == null ? void 0 : V.value) !== void 0 ? V.value : d, [Q, V == null ? void 0 : V.value, d]), it = y(
1810
- () => Oa(D, V ?? null, { develop: i }),
1811
- [D, V, i]
1809
+ ), at = y(() => Q !== void 0 ? Q : (q == null ? void 0 : q.value) !== void 0 ? q.value : d, [Q, q == null ? void 0 : q.value, d]), it = y(
1810
+ () => Oa(D, q ?? null, { develop: i }),
1811
+ [D, q, i]
1812
1812
  ), nt = j(
1813
- (q) => {
1814
- const et = q ?? "";
1815
- if (A && O && N && z(
1813
+ (W) => {
1814
+ const et = W ?? "";
1815
+ if (A && O && N && V(
1816
1816
  A,
1817
1817
  O,
1818
1818
  N,
@@ -1831,42 +1831,42 @@ const er = (e) => {
1831
1831
  O,
1832
1832
  N,
1833
1833
  t,
1834
- z,
1834
+ V,
1835
1835
  P,
1836
1836
  $
1837
1837
  ]
1838
- ), gt = j(
1839
- (q) => {
1840
- const et = Fn(p || []);
1841
- Zn(
1838
+ ), pt = j(
1839
+ (W) => {
1840
+ const et = Zn(p || []);
1841
+ Xn(
1842
1842
  et,
1843
- q,
1843
+ W,
1844
1844
  () => nt(""),
1845
1845
  (Z) => {
1846
- var st;
1847
- return nt(((st = Z[0]) == null ? void 0 : st.message) ?? "");
1846
+ var lt;
1847
+ return nt(((lt = Z[0]) == null ? void 0 : lt.message) ?? "");
1848
1848
  }
1849
1849
  );
1850
1850
  },
1851
1851
  [p, nt]
1852
- ), St = j(
1853
- (q) => {
1854
- const et = q.target.value;
1852
+ ), wt = j(
1853
+ (W) => {
1854
+ const et = W.target.value;
1855
1855
  if (E.current = et, l) {
1856
- l(et, q);
1856
+ l(et, W);
1857
1857
  return;
1858
1858
  }
1859
1859
  if (K && N && H(K, N, et), c && A) {
1860
- const { actionName: Z, arg: st } = bt(c, et, {
1860
+ const { actionName: Z, arg: lt } = bt(c, et, {
1861
1861
  id: t,
1862
1862
  dataSet: O,
1863
1863
  dataSetField: N,
1864
1864
  ...it
1865
1865
  });
1866
- M(A, I(Z, st));
1866
+ M(A, I(Z, lt));
1867
1867
  }
1868
1868
  g && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
1869
- k.current = null, gt(et);
1869
+ k.current = null, pt(et);
1870
1870
  }, Na));
1871
1871
  },
1872
1872
  [
@@ -1882,33 +1882,33 @@ const er = (e) => {
1882
1882
  it,
1883
1883
  M,
1884
1884
  g,
1885
- gt
1885
+ pt
1886
1886
  ]
1887
- ), yt = j(() => {
1887
+ ), gt = j(() => {
1888
1888
  if (!f) return;
1889
- const q = K && N ? String(B(K, N) ?? "") : E.current;
1890
- gt(q);
1889
+ const W = K && N ? String(B(K, N) ?? "") : E.current;
1890
+ pt(W);
1891
1891
  }, [
1892
1892
  f,
1893
1893
  K,
1894
1894
  N,
1895
1895
  B,
1896
- gt
1896
+ pt
1897
1897
  ]), tt = j(
1898
- (q) => {
1898
+ (W) => {
1899
1899
  const Z = it.onPressEnter;
1900
1900
  if (Z) {
1901
- Z(q);
1901
+ Z(W);
1902
1902
  return;
1903
1903
  }
1904
1904
  if (u && A) {
1905
- const { actionName: st, arg: dt } = bt(u, at, {
1905
+ const { actionName: lt, arg: mt } = bt(u, at, {
1906
1906
  id: t,
1907
1907
  dataSet: O,
1908
1908
  dataSetField: N,
1909
1909
  ...it
1910
1910
  });
1911
- M(A, I(st, dt));
1911
+ M(A, I(lt, mt));
1912
1912
  }
1913
1913
  },
1914
1914
  [
@@ -1921,20 +1921,20 @@ const er = (e) => {
1921
1921
  N,
1922
1922
  M
1923
1923
  ]
1924
- ), ut = j(() => {
1924
+ ), ft = j(() => {
1925
1925
  const et = it.onClear;
1926
1926
  if (et) {
1927
1927
  et();
1928
1928
  return;
1929
1929
  }
1930
1930
  if (S && A) {
1931
- const { actionName: Z, arg: st } = bt(S, "", {
1931
+ const { actionName: Z, arg: lt } = bt(S, "", {
1932
1932
  id: t,
1933
1933
  dataSet: O,
1934
1934
  dataSetField: N,
1935
1935
  ...it
1936
1936
  });
1937
- M(A, I(Z, st));
1937
+ M(A, I(Z, lt));
1938
1938
  }
1939
1939
  }, [
1940
1940
  it,
@@ -1945,40 +1945,40 @@ const er = (e) => {
1945
1945
  N,
1946
1946
  M
1947
1947
  ]);
1948
- Dt(
1948
+ St(
1949
1949
  () => () => {
1950
1950
  k.current && clearTimeout(k.current);
1951
1951
  },
1952
1952
  []
1953
- ), Dt(() => {
1953
+ ), St(() => {
1954
1954
  if (U == null || !K || !N)
1955
1955
  return;
1956
- const q = String(B(K, N) ?? "");
1957
- gt(q);
1958
- }, [U, K, N, B, gt]);
1956
+ const W = String(B(K, N) ?? "");
1957
+ pt(W);
1958
+ }, [U, K, N, B, pt]);
1959
1959
  const ot = y(() => ka(h), [h]), Ct = y(
1960
1960
  () => ot ? { components: { Input: ot } } : void 0,
1961
1961
  [ot]
1962
- ), kt = i ? void 0 : A && O && N ? L : (V == null ? void 0 : V.help) ?? "", J = /* @__PURE__ */ ct(le, { children: [
1962
+ ), Ot = i ? void 0 : A && O && N ? L : (q == null ? void 0 : q.help) ?? "", J = /* @__PURE__ */ st(le, { children: [
1963
1963
  /* @__PURE__ */ b(
1964
- $e,
1964
+ Re,
1965
1965
  {
1966
1966
  ...it,
1967
1967
  value: at,
1968
- onChange: St,
1969
- onBlur: yt,
1968
+ onChange: wt,
1969
+ onBlur: gt,
1970
1970
  onPressEnter: tt,
1971
- onClear: ut,
1972
- status: !i && kt ? "error" : void 0,
1971
+ onClear: ft,
1972
+ status: !i && Ot ? "error" : void 0,
1973
1973
  styles: v
1974
1974
  }
1975
1975
  ),
1976
- kt && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: kt })
1976
+ Ot && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: Ot })
1977
1977
  ] });
1978
- return Ct ? /* @__PURE__ */ b(Rt, { theme: Ct, children: J }) : J;
1978
+ return Ct ? /* @__PURE__ */ b(Bt, { theme: Ct, children: J }) : J;
1979
1979
  };
1980
- er.displayName = "AndInput";
1981
- const pc = Wt.memo(er), xn = 200, vc = ({
1980
+ nr.displayName = "AndInput";
1981
+ const pc = Wt.memo(nr), An = 200, vc = ({
1982
1982
  id: e,
1983
1983
  sessionId: t,
1984
1984
  develop: n,
@@ -1997,7 +1997,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
1997
1997
  value: s,
1998
1998
  ...m
1999
1999
  }) => {
2000
- const u = _((G) => G.addCommand), S = _((G) => G.setDataSet), x = Mt(null), C = y(
2000
+ const u = _((G) => G.addCommand), S = _((G) => G.setDataSet), x = Rt(null), C = y(
2001
2001
  () => rt(t, i),
2002
2002
  [t, i]
2003
2003
  ), w = _(
@@ -2007,7 +2007,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2007
2007
  }
2008
2008
  ), D = _(
2009
2009
  (G) => C && r ? G.getDataSet(C, r) : void 0
2010
- ), { validate: T, help: O } = Bt({
2010
+ ), { validate: T, help: O } = Kt({
2011
2011
  rules: a,
2012
2012
  dataSet: i,
2013
2013
  dataSetField: r,
@@ -2027,7 +2027,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2027
2027
  }
2028
2028
  C && r && S(C, r, G), c && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
2029
2029
  x.current = null, T(G);
2030
- }, xn)), A(l, "change", G);
2030
+ }, An)), A(l, "change", G);
2031
2031
  },
2032
2032
  [g, C, r, S, c, T, l, A]
2033
2033
  ), k = j(() => {
@@ -2064,7 +2064,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2064
2064
  }
2065
2065
  if (C && r && S(C, r, null), c && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
2066
2066
  x.current = null, T(null);
2067
- }, xn)), A(l, "change", null), v && t) {
2067
+ }, An)), A(l, "change", null), v && t) {
2068
2068
  const { actionName: G, arg: U } = bt(v, null, {
2069
2069
  id: e,
2070
2070
  dataSet: i,
@@ -2093,19 +2093,19 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2093
2093
  },
2094
2094
  [p, A]
2095
2095
  );
2096
- Dt(
2096
+ St(
2097
2097
  () => () => {
2098
2098
  x.current && clearTimeout(x.current);
2099
2099
  },
2100
2100
  []
2101
- ), Dt(() => {
2101
+ ), St(() => {
2102
2102
  f !== void 0 && N === void 0 && C && r && S(C, r, f);
2103
2103
  }, [f, N, C, r, S]);
2104
2104
  const P = y(
2105
2105
  () => Qt(m, w ?? void 0),
2106
2106
  [m, w]
2107
- ), { addonBefore: $, addonAfter: z, style: K, suffix: V, ...R } = P, L = y(() => {
2108
- if (!(h && N !== null && N !== void 0)) return V;
2107
+ ), { addonBefore: $, addonAfter: V, style: K, suffix: q, ...R } = P, L = y(() => {
2108
+ if (!(h && N !== null && N !== void 0)) return q;
2109
2109
  const U = /* @__PURE__ */ b(
2110
2110
  "span",
2111
2111
  {
@@ -2119,12 +2119,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2119
2119
  children: /* @__PURE__ */ b(Xr, {})
2120
2120
  }
2121
2121
  );
2122
- return V == null || V === !1 ? U : /* @__PURE__ */ ct(le, { children: [
2123
- V,
2122
+ return q == null || q === !1 ? U : /* @__PURE__ */ st(le, { children: [
2123
+ q,
2124
2124
  U
2125
2125
  ] });
2126
- }, [h, N, V, B]), Q = /* @__PURE__ */ b(
2127
- $n,
2126
+ }, [h, N, q, B]), Q = /* @__PURE__ */ b(
2127
+ Rn,
2128
2128
  {
2129
2129
  ...R,
2130
2130
  disabled: n ? !1 : R.disabled,
@@ -2142,8 +2142,8 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2142
2142
  style: { width: "100%", ...K }
2143
2143
  }
2144
2144
  );
2145
- return /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
2146
- $ || z ? /* @__PURE__ */ ct(Yt.Compact, { style: { width: "100%" }, children: [
2145
+ return /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
2146
+ $ || V ? /* @__PURE__ */ st(Yt.Compact, { style: { width: "100%" }, children: [
2147
2147
  $ && /* @__PURE__ */ b(
2148
2148
  "div",
2149
2149
  {
@@ -2162,7 +2162,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2162
2162
  }
2163
2163
  ),
2164
2164
  Q,
2165
- z && /* @__PURE__ */ b(
2165
+ V && /* @__PURE__ */ b(
2166
2166
  "div",
2167
2167
  {
2168
2168
  style: {
@@ -2176,13 +2176,13 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2176
2176
  color: "rgba(0, 0, 0, 0.88)",
2177
2177
  fontSize: 14
2178
2178
  },
2179
- children: z
2179
+ children: V
2180
2180
  }
2181
2181
  )
2182
2182
  ] }) : Q,
2183
2183
  O && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
2184
2184
  ] });
2185
- }, { TextArea: _a } = $e, Ea = 200, bc = ({
2185
+ }, { TextArea: _a } = Re, Ea = 200, bc = ({
2186
2186
  id: e,
2187
2187
  sessionId: t,
2188
2188
  develop: n,
@@ -2199,7 +2199,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2199
2199
  defaultValue: g,
2200
2200
  ...f
2201
2201
  }) => {
2202
- const s = Re(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, x = _((P) => P.addCommand), C = _((P) => P.setDataSet), w = Mt(null), D = y(
2202
+ const s = je(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, x = _((P) => P.addCommand), C = _((P) => P.setDataSet), w = Rt(null), D = y(
2203
2203
  () => rt(S, m),
2204
2204
  [S, m]
2205
2205
  ), T = _(
@@ -2209,7 +2209,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2209
2209
  }
2210
2210
  ), O = _(
2211
2211
  (P) => D && u ? P.getDataSet(D, u) : void 0
2212
- ), { validate: N, help: A } = Bt({
2212
+ ), { validate: N, help: A } = Kt({
2213
2213
  rules: a,
2214
2214
  dataSet: m,
2215
2215
  dataSetField: u,
@@ -2224,12 +2224,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2224
2224
  return;
2225
2225
  }
2226
2226
  if (D && u && C(D, u, $), l && S) {
2227
- const { actionName: z, arg: K } = bt(l, $, {
2227
+ const { actionName: V, arg: K } = bt(l, $, {
2228
2228
  id: e,
2229
2229
  dataSet: m,
2230
2230
  dataSetField: u
2231
2231
  });
2232
- x(S, I(z, K));
2232
+ x(S, I(V, K));
2233
2233
  }
2234
2234
  c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
2235
2235
  w.current = null, N($);
@@ -2256,12 +2256,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2256
2256
  return;
2257
2257
  }
2258
2258
  if (d && S && !P.shiftKey) {
2259
- const { actionName: $, arg: z } = bt(d, E, {
2259
+ const { actionName: $, arg: V } = bt(d, E, {
2260
2260
  id: e,
2261
2261
  dataSet: m,
2262
2262
  dataSetField: u
2263
2263
  });
2264
- x(S, I($, z));
2264
+ x(S, I($, V));
2265
2265
  }
2266
2266
  },
2267
2267
  [
@@ -2296,12 +2296,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2296
2296
  u,
2297
2297
  x
2298
2298
  ]);
2299
- return Dt(
2299
+ return St(
2300
2300
  () => () => {
2301
2301
  w.current && clearTimeout(w.current);
2302
2302
  },
2303
2303
  []
2304
- ), /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
2304
+ ), /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
2305
2305
  /* @__PURE__ */ b(
2306
2306
  _a,
2307
2307
  {
@@ -2317,7 +2317,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2317
2317
  ),
2318
2318
  A && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
2319
2319
  ] });
2320
- }, { Password: Ma } = $e, $a = 200, Sc = ({
2320
+ }, { Password: Ma } = Re, $a = 200, Sc = ({
2321
2321
  id: e,
2322
2322
  sessionId: t,
2323
2323
  develop: n,
@@ -2334,7 +2334,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2334
2334
  defaultValue: g,
2335
2335
  ...f
2336
2336
  }) => {
2337
- const s = _((k) => k.addCommand), m = _((k) => k.setDataSet), u = Mt(null), S = y(
2337
+ const s = _((k) => k.addCommand), m = _((k) => k.setDataSet), u = Rt(null), S = y(
2338
2338
  () => rt(t, i),
2339
2339
  [t, i]
2340
2340
  ), x = _(
@@ -2344,7 +2344,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2344
2344
  }
2345
2345
  ), C = _(
2346
2346
  (k) => S && r ? k.getDataSet(S, r) : void 0
2347
- ), { validate: w, help: D } = Bt({
2347
+ ), { validate: w, help: D } = Kt({
2348
2348
  rules: a,
2349
2349
  dataSet: i,
2350
2350
  dataSetField: r,
@@ -2423,12 +2423,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2423
2423
  s(t, I(k, M));
2424
2424
  }
2425
2425
  }, [f.onClear, v, t, e, i, r, s]);
2426
- return Dt(
2426
+ return St(
2427
2427
  () => () => {
2428
2428
  u.current && clearTimeout(u.current);
2429
2429
  },
2430
2430
  []
2431
- ), /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
2431
+ ), /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
2432
2432
  /* @__PURE__ */ b(
2433
2433
  Ma,
2434
2434
  {
@@ -2444,7 +2444,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2444
2444
  ),
2445
2445
  D && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
2446
2446
  ] });
2447
- }, { Search: Ra } = $e, wc = ({
2447
+ }, { Search: Ra } = Re, wc = ({
2448
2448
  id: e,
2449
2449
  sessionId: t,
2450
2450
  develop: n,
@@ -2508,22 +2508,22 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2508
2508
  dropdownMatchSelectWidth: T,
2509
2509
  ...O
2510
2510
  }) => {
2511
- const N = _((tt) => tt.addCommand), A = _((tt) => tt.setDataSet), E = Mt(null), k = be(ie), M = y(
2511
+ const N = _((tt) => tt.addCommand), A = _((tt) => tt.setDataSet), E = Rt(null), k = be(ie), M = y(
2512
2512
  () => rt(t, i),
2513
2513
  [t, i]
2514
2514
  ), B = m ?? (k == null ? void 0 : k.index), H = _(
2515
2515
  (tt) => {
2516
- var ut;
2517
- return t && e ? ((ut = tt.propsStore[`${t}_props`]) == null ? void 0 : ut[e]) ?? null : null;
2516
+ var ft;
2517
+ return t && e ? ((ft = tt.propsStore[`${t}_props`]) == null ? void 0 : ft[e]) ?? null : null;
2518
2518
  }
2519
2519
  ), P = _(
2520
2520
  (tt) => M && r ? tt.getDataSet(M, r) : void 0
2521
2521
  ), $ = y(
2522
2522
  () => (H == null ? void 0 : H.optionsCfg) != null ? H.optionsCfg : c,
2523
2523
  [H == null ? void 0 : H.optionsCfg, c]
2524
- ), { options: z, loading: K } = De(
2524
+ ), { options: V, loading: K } = De(
2525
2525
  D || (a ? o : void 0)
2526
- ), { options: V, loading: R } = un(
2526
+ ), { options: q, loading: R } = fn(
2527
2527
  $ == null ? void 0 : $.url,
2528
2528
  {
2529
2529
  valueKey: ($ == null ? void 0 : $.codeKey) || "value",
@@ -2532,7 +2532,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2532
2532
  params: $ == null ? void 0 : $.params,
2533
2533
  field: $ == null ? void 0 : $.field
2534
2534
  }
2535
- ), L = K || R, { validate: Q, help: G } = Bt({
2535
+ ), L = K || R, { validate: Q, help: G } = Kt({
2536
2536
  rules: l,
2537
2537
  dataSet: i,
2538
2538
  dataSetField: r,
@@ -2542,19 +2542,19 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2542
2542
  }), U = y(() => P != null && P !== "" ? P : (H == null ? void 0 : H.value) !== void 0 ? H.value : s ?? f, [P, H == null ? void 0 : H.value, s, f]), at = y(
2543
2543
  () => Qt(O, H ?? void 0),
2544
2544
  [O, H]
2545
- ), it = y(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url && V.length > 0 ? V : (D || a && o) && z.length > 0 ? z : g || [], [H == null ? void 0 : H.options, $ == null ? void 0 : $.url, V, D, a, o, z, g]), nt = y(() => {
2545
+ ), it = y(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url && q.length > 0 ? q : (D || a && o) && V.length > 0 ? V : g || [], [H == null ? void 0 : H.options, $ == null ? void 0 : $.url, q, D, a, o, V, g]), nt = y(() => {
2546
2546
  if (it.length === 0) return U;
2547
2547
  if (Array.isArray(U))
2548
- return U.map((ut) => {
2548
+ return U.map((ft) => {
2549
2549
  var ot;
2550
- return ((ot = ae(it, ut)) == null ? void 0 : ot.value) ?? ut;
2550
+ return ((ot = ae(it, ft)) == null ? void 0 : ot.value) ?? ft;
2551
2551
  });
2552
2552
  const tt = ae(it, U);
2553
2553
  return (tt == null ? void 0 : tt.value) ?? U;
2554
- }, [U, it]), gt = j(
2555
- (tt, ut) => {
2554
+ }, [U, it]), pt = j(
2555
+ (tt, ft) => {
2556
2556
  if (p) {
2557
- p(tt, ut);
2557
+ p(tt, ft);
2558
2558
  return;
2559
2559
  }
2560
2560
  if (M && r && A(M, r, tt), v && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
@@ -2582,28 +2582,28 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2582
2582
  B,
2583
2583
  N
2584
2584
  ]
2585
- ), St = j(() => {
2585
+ ), wt = j(() => {
2586
2586
  d && Q(nt);
2587
2587
  }, [d, Q, nt]);
2588
- Dt(
2588
+ St(
2589
2589
  () => () => {
2590
2590
  E.current && clearTimeout(E.current);
2591
2591
  },
2592
2592
  []
2593
2593
  );
2594
- const yt = j((tt, ut) => ((ut == null ? void 0 : ut.label) ?? "").toLowerCase().includes(tt.toLowerCase()), []);
2595
- return /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
2594
+ const gt = j((tt, ft) => ((ft == null ? void 0 : ft.label) ?? "").toLowerCase().includes(tt.toLowerCase()), []);
2595
+ return /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
2596
2596
  /* @__PURE__ */ b(
2597
- Rn,
2597
+ jn,
2598
2598
  {
2599
2599
  ...at,
2600
2600
  disabled: n ? !1 : at.disabled,
2601
2601
  open: n ? !1 : void 0,
2602
2602
  value: nt,
2603
2603
  options: it,
2604
- onChange: gt,
2605
- onBlur: St,
2606
- filterOption: yt,
2604
+ onChange: pt,
2605
+ onBlur: wt,
2606
+ filterOption: gt,
2607
2607
  loading: L,
2608
2608
  status: G ? "error" : void 0,
2609
2609
  style: { width: "100%", ...at.style }
@@ -2636,7 +2636,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2636
2636
  }
2637
2637
  ), u = _(
2638
2638
  (T) => s && r ? T.getDataSet(s, r) : void 0
2639
- ), { validate: S, help: x } = Bt({
2639
+ ), { validate: S, help: x } = Kt({
2640
2640
  rules: a,
2641
2641
  dataSet: i,
2642
2642
  dataSetField: r,
@@ -2673,7 +2673,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2673
2673
  ), D = j(() => {
2674
2674
  o && S(C);
2675
2675
  }, [o, S, C]);
2676
- return /* @__PURE__ */ ct("div", { style: { display: "inline-block" }, onBlur: D, children: [
2676
+ return /* @__PURE__ */ st("div", { style: { display: "inline-block" }, onBlur: D, children: [
2677
2677
  /* @__PURE__ */ b(
2678
2678
  hr,
2679
2679
  {
@@ -2711,7 +2711,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2711
2711
  }
2712
2712
  ), S = _(
2713
2713
  (A) => m && r ? A.getDataSet(m, r) : void 0
2714
- ), { validate: x, help: C } = Bt({
2714
+ ), { validate: x, help: C } = Kt({
2715
2715
  rules: c,
2716
2716
  dataSet: i,
2717
2717
  dataSetField: r,
@@ -2747,7 +2747,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2747
2747
  },
2748
2748
  [v, m, r, s, d, x, a, t, e, f]
2749
2749
  );
2750
- Dt(() => {
2750
+ St(() => {
2751
2751
  if (p && D === null && m && r) {
2752
2752
  const A = Ut(p).format(o);
2753
2753
  s(m, r, A);
@@ -2762,9 +2762,9 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2762
2762
  () => Qt(g, u ?? void 0),
2763
2763
  [g, u]
2764
2764
  );
2765
- return /* @__PURE__ */ ct("div", { onBlur: O, children: [
2765
+ return /* @__PURE__ */ st("div", { onBlur: O, children: [
2766
2766
  /* @__PURE__ */ b(
2767
- jn,
2767
+ Bn,
2768
2768
  {
2769
2769
  ...N,
2770
2770
  disabled: n ? !1 : N.disabled,
@@ -2797,7 +2797,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2797
2797
  [t, i]
2798
2798
  ), S = y(() => {
2799
2799
  if (u && r) return s(u, r);
2800
- }, [u, r, s]), { validate: x, help: C } = Bt({
2800
+ }, [u, r, s]), { validate: x, help: C } = Kt({
2801
2801
  rules: v,
2802
2802
  dataSet: i,
2803
2803
  dataSetField: r,
@@ -2825,7 +2825,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2825
2825
  }, [c, u, r, m, h, x, a, t, e, f]), O = j(() => {
2826
2826
  p && x(D ? D.format(o) : "");
2827
2827
  }, [p, x, D, o]), N = C ? "error" : void 0;
2828
- return /* @__PURE__ */ ct(le, { children: [
2828
+ return /* @__PURE__ */ st(le, { children: [
2829
2829
  /* @__PURE__ */ b(
2830
2830
  yr,
2831
2831
  {
@@ -2841,7 +2841,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2841
2841
  ),
2842
2842
  C && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: C })
2843
2843
  ] });
2844
- }, { RangePicker: Ba } = jn, Tc = ({
2844
+ }, { RangePicker: Ba } = Bn, Tc = ({
2845
2845
  id: e,
2846
2846
  sessionId: t,
2847
2847
  develop: n,
@@ -2867,7 +2867,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2867
2867
  }
2868
2868
  ), S = _(
2869
2869
  (A) => m && r ? A.getDataSet(m, r) : void 0
2870
- ), { validate: x, help: C } = Bt({
2870
+ ), { validate: x, help: C } = Kt({
2871
2871
  rules: c,
2872
2872
  dataSet: i,
2873
2873
  dataSetField: r,
@@ -2904,7 +2904,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2904
2904
  var A, E;
2905
2905
  l && x(D ? [(A = D[0]) == null ? void 0 : A.format(o), (E = D[1]) == null ? void 0 : E.format(o)] : null);
2906
2906
  }, [l, x, D, o]);
2907
- return /* @__PURE__ */ ct("div", { onBlur: N, children: [
2907
+ return /* @__PURE__ */ st("div", { onBlur: N, children: [
2908
2908
  /* @__PURE__ */ b(
2909
2909
  Ba,
2910
2910
  {
@@ -2945,19 +2945,19 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2945
2945
  [t, i]
2946
2946
  ), T = _(
2947
2947
  (K) => {
2948
- var V;
2949
- return t && e ? ((V = K.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
2948
+ var q;
2949
+ return t && e ? ((q = K.propsStore[`${t}_props`]) == null ? void 0 : q[e]) ?? null : null;
2950
2950
  }
2951
2951
  ), O = _(
2952
2952
  (K) => D && r ? K.getDataSet(D, r) : void 0
2953
- ), { validate: N, help: A } = Bt({
2953
+ ), { validate: N, help: A } = Kt({
2954
2954
  rules: v,
2955
2955
  dataSet: i,
2956
2956
  dataSetField: r,
2957
2957
  sessionId: t,
2958
2958
  id: e,
2959
2959
  develop: n
2960
- }), E = y(() => O !== void 0 ? O : (T == null ? void 0 : T.value) !== void 0 ? T.value : f ?? s, [O, T == null ? void 0 : T.value, f, s]), { options: k } = De(m), { options: M } = un(
2960
+ }), E = y(() => O !== void 0 ? O : (T == null ? void 0 : T.value) !== void 0 ? T.value : f ?? s, [O, T == null ? void 0 : T.value, f, s]), { options: k } = De(m), { options: M } = fn(
2961
2961
  o == null ? void 0 : o.url,
2962
2962
  {
2963
2963
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
@@ -2973,13 +2973,13 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2973
2973
  [x, T]
2974
2974
  ), $ = j(
2975
2975
  (K) => {
2976
- const V = K.target.value;
2976
+ const q = K.target.value;
2977
2977
  if (g) {
2978
- g(V);
2978
+ g(q);
2979
2979
  return;
2980
2980
  }
2981
- if (D && r && w(D, r, V), p && N(V), c && t) {
2982
- const { actionName: R, arg: L } = bt(c, V, {
2981
+ if (D && r && w(D, r, q), p && N(q), c && t) {
2982
+ const { actionName: R, arg: L } = bt(c, q, {
2983
2983
  id: e,
2984
2984
  dataSet: i,
2985
2985
  dataSetField: r
@@ -2999,12 +2999,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2999
2999
  e,
3000
3000
  C
3001
3001
  ]
3002
- ), z = j(() => {
3002
+ ), V = j(() => {
3003
3003
  h && N(H);
3004
3004
  }, [h, N, H]);
3005
- return /* @__PURE__ */ ct("div", { onBlur: z, children: [
3005
+ return /* @__PURE__ */ st("div", { onBlur: V, children: [
3006
3006
  /* @__PURE__ */ b(
3007
- Ve.Group,
3007
+ qe.Group,
3008
3008
  {
3009
3009
  ...P,
3010
3010
  disabled: n ? !1 : P.disabled,
@@ -3012,12 +3012,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3012
3012
  onChange: $,
3013
3013
  buttonStyle: (T == null ? void 0 : T.buttonStyle) ?? l,
3014
3014
  optionType: (T == null ? void 0 : T.optionType) ?? d,
3015
- children: d === "button" ? B.map((K) => /* @__PURE__ */ b(Ve.Button, { value: K.value, disabled: K.disabled, children: K.label }, K.value)) : /* @__PURE__ */ b(
3015
+ children: d === "button" ? B.map((K) => /* @__PURE__ */ b(qe.Button, { value: K.value, disabled: K.disabled, children: K.label }, K.value)) : /* @__PURE__ */ b(
3016
3016
  Yt,
3017
3017
  {
3018
3018
  orientation: (T == null ? void 0 : T.direction) ?? u ?? "horizontal",
3019
3019
  wrap: !0,
3020
- children: B.map((K) => /* @__PURE__ */ b(Ve, { value: K.value, disabled: K.disabled, children: K.label }, K.value))
3020
+ children: B.map((K) => /* @__PURE__ */ b(qe, { value: K.value, disabled: K.disabled, children: K.label }, K.value))
3021
3021
  }
3022
3022
  )
3023
3023
  }
@@ -3059,14 +3059,14 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3059
3059
  }
3060
3060
  ), A = _(
3061
3061
  (L) => O && r ? L.getDataSet(O, r) : void 0
3062
- ), { validate: E, help: k } = Bt({
3062
+ ), { validate: E, help: k } = Kt({
3063
3063
  rules: d,
3064
3064
  dataSet: i,
3065
3065
  dataSetField: r,
3066
3066
  sessionId: t,
3067
3067
  id: e,
3068
3068
  develop: n
3069
- }), { options: M } = De(S), { options: B } = un(
3069
+ }), { options: M } = De(S), { options: B } = fn(
3070
3070
  o == null ? void 0 : o.url,
3071
3071
  {
3072
3072
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
@@ -3083,7 +3083,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3083
3083
  var G;
3084
3084
  return ((G = ae(P, Q)) == null ? void 0 : G.value) ?? Q;
3085
3085
  });
3086
- }, [c, A, N == null ? void 0 : N.values, s, P]), z = y(
3086
+ }, [c, A, N == null ? void 0 : N.values, s, P]), V = y(
3087
3087
  () => Qt(w, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3088
3088
  [w, N]
3089
3089
  ), K = j((L) => {
@@ -3096,7 +3096,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3096
3096
  const { actionName: G, arg: U } = bt(l, Q, { id: e, dataSet: i, dataSetField: r });
3097
3097
  D(t, I(G, U));
3098
3098
  }
3099
- }, [p, O, r, T, h, E, l, t, e, D]), V = j((L) => {
3099
+ }, [p, O, r, T, h, E, l, t, e, D]), q = j((L) => {
3100
3100
  if (g) {
3101
3101
  g(L);
3102
3102
  return;
@@ -3108,22 +3108,22 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3108
3108
  }, [g, O, r, T, h, E, l, t, e, D]), R = j(() => {
3109
3109
  v && E(c ? $ : H);
3110
3110
  }, [v, E, c, $, H]);
3111
- return c && P.length > 0 ? /* @__PURE__ */ ct("div", { onBlur: R, children: [
3112
- /* @__PURE__ */ b(se.Group, { ...z, value: $, onChange: V, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
3111
+ return c && P.length > 0 ? /* @__PURE__ */ st("div", { onBlur: R, children: [
3112
+ /* @__PURE__ */ b(se.Group, { ...V, value: $, onChange: q, disabled: n ? !1 : V.disabled, children: /* @__PURE__ */ b(
3113
3113
  Yt,
3114
3114
  {
3115
- direction: z.direction ?? x,
3115
+ direction: V.direction ?? x,
3116
3116
  wrap: !0,
3117
3117
  children: P.map((L) => /* @__PURE__ */ b(se, { value: L.value, disabled: L.disabled, children: L.label }, L.value))
3118
3118
  }
3119
3119
  ) }),
3120
3120
  k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
3121
- ] }) : /* @__PURE__ */ ct("div", { onBlur: R, children: [
3121
+ ] }) : /* @__PURE__ */ st("div", { onBlur: R, children: [
3122
3122
  /* @__PURE__ */ b(
3123
3123
  se,
3124
3124
  {
3125
- ...z,
3126
- disabled: n ? !1 : z.disabled,
3125
+ ...V,
3126
+ disabled: n ? !1 : V.disabled,
3127
3127
  checked: H,
3128
3128
  onChange: K,
3129
3129
  children: u
@@ -3156,7 +3156,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3156
3156
  }
3157
3157
  ), u = _(
3158
3158
  (O) => s && r ? O.getDataSet(s, r) : void 0
3159
- ), { validate: S, help: x } = Bt({
3159
+ ), { validate: S, help: x } = Kt({
3160
3160
  rules: o,
3161
3161
  dataSet: i,
3162
3162
  dataSetField: r,
@@ -3185,7 +3185,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3185
3185
  () => Qt(p, m ?? void 0),
3186
3186
  [p, m]
3187
3187
  );
3188
- return /* @__PURE__ */ ct("div", { onBlur: D, children: [
3188
+ return /* @__PURE__ */ st("div", { onBlur: D, children: [
3189
3189
  /* @__PURE__ */ b(
3190
3190
  gr,
3191
3191
  {
@@ -3225,17 +3225,17 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3225
3225
  }
3226
3226
  }, [o, g, r, p, a, t, e, v]);
3227
3227
  return /* @__PURE__ */ b(pr, { ...d, disabled: n ? !1 : d.disabled, value: s, onChange: m });
3228
- }, Ka = 200, nr = (e, t, n = 1) => {
3228
+ }, Ka = 200, rr = (e, t, n = 1) => {
3229
3229
  if (!Array.isArray(e)) return [];
3230
3230
  const { codeKey: i, labelKey: r, childrenKey: a, maxLevel: o } = t;
3231
3231
  return e.map((c) => {
3232
- const l = n < o && Array.isArray(c == null ? void 0 : c[a]) ? nr(c[a], t, n + 1) : void 0, d = {
3232
+ const l = n < o && Array.isArray(c == null ? void 0 : c[a]) ? rr(c[a], t, n + 1) : void 0, d = {
3233
3233
  value: String(c == null ? void 0 : c[i]),
3234
3234
  label: c == null ? void 0 : c[r]
3235
3235
  };
3236
3236
  return l && l.length && (d.children = l), d;
3237
3237
  });
3238
- }, An = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], La = (e, t) => {
3238
+ }, Cn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], La = (e, t) => {
3239
3239
  const n = (i, r, a = []) => {
3240
3240
  for (const o of i) {
3241
3241
  const c = o.value, l = [...a, c];
@@ -3249,7 +3249,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3249
3249
  return null;
3250
3250
  };
3251
3251
  return n(t, e) || [];
3252
- }, Cn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), Tn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]), Ec = ({
3252
+ }, Tn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), Nn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]), Ec = ({
3253
3253
  id: e,
3254
3254
  sessionId: t,
3255
3255
  develop: n,
@@ -3267,12 +3267,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3267
3267
  remoteUrl: f,
3268
3268
  ...s
3269
3269
  }) => {
3270
- const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S = Mt(null), [x, C] = mt([]), [w, D] = mt(!1), T = y(
3270
+ const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S = Rt(null), [x, C] = ht([]), [w, D] = ht(!1), T = y(
3271
3271
  () => rt(t, i),
3272
3272
  [t, i]
3273
3273
  ), O = _(
3274
3274
  ($) => T && r ? $.getDataSet(T, r) : void 0
3275
- ), { validate: N, help: A, validateStatus: E } = Bt({
3275
+ ), { validate: N, help: A, validateStatus: E } = Kt({
3276
3276
  rules: o,
3277
3277
  dataSet: i,
3278
3278
  dataSetField: r,
@@ -3281,22 +3281,22 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3281
3281
  develop: n
3282
3282
  }), k = y(() => (a == null ? void 0 : a.url) && x.length > 0, [a == null ? void 0 : a.url, x.length]), M = y(() => {
3283
3283
  let $ = O ?? g ?? p ?? [];
3284
- return typeof $ == "string" ? k ? An($).map((K) => La(K, x)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Cn($) && k ? $.map((K) => An(K)).filter((K) => Array.isArray(K) && K.length > 0) : Tn($) && k ? $.filter((z) => Array.isArray(z) && z.length > 0) : $;
3284
+ return typeof $ == "string" ? k ? Cn($).map((K) => La(K, x)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Tn($) && k ? $.map((K) => Cn(K)).filter((K) => Array.isArray(K) && K.length > 0) : Nn($) && k ? $.filter((V) => Array.isArray(V) && V.length > 0) : $;
3285
3285
  }, [O, g, p, k, x]), B = y(() => a != null && a.url && x.length > 0 ? x : h || [], [a == null ? void 0 : a.url, x, h]);
3286
- Dt(() => {
3286
+ St(() => {
3287
3287
  (async () => {
3288
3288
  if (a != null && a.url) {
3289
3289
  D(!0);
3290
3290
  try {
3291
- const z = await re({ url: a.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], V = a.codeKey || "value", R = a.labelKey || "label", L = a.childrenKey || "children", Q = a.maxLevel || 5, G = nr(K, {
3292
- codeKey: V,
3291
+ const V = await re({ url: a.url, method: "GET" }), K = Array.isArray(V) ? V : V != null && V.data ? Array.isArray(V.data) ? V.data : V.data.list || V.data.records || [] : [], q = a.codeKey || "value", R = a.labelKey || "label", L = a.childrenKey || "children", Q = a.maxLevel || 5, G = rr(K, {
3292
+ codeKey: q,
3293
3293
  labelKey: R,
3294
3294
  childrenKey: L,
3295
3295
  maxLevel: Q
3296
3296
  });
3297
3297
  C(G);
3298
- } catch (z) {
3299
- console.error("Failed to load remote options:", z), C([]);
3298
+ } catch (V) {
3299
+ console.error("Failed to load remote options:", V), C([]);
3300
3300
  } finally {
3301
3301
  D(!1);
3302
3302
  }
@@ -3304,21 +3304,21 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3304
3304
  })();
3305
3305
  }, [a == null ? void 0 : a.url, a == null ? void 0 : a.codeKey, a == null ? void 0 : a.labelKey, a == null ? void 0 : a.childrenKey, a == null ? void 0 : a.maxLevel]);
3306
3306
  const H = j(
3307
- ($, z) => {
3307
+ ($, V) => {
3308
3308
  if (v) {
3309
- v($, z);
3309
+ v($, V);
3310
3310
  return;
3311
3311
  }
3312
3312
  let K = $;
3313
- if (Cn($) && k ? K = String($[$.length - 1] || "") : Tn($) && k && (K = $.map((V) => V.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
3313
+ if (Tn($) && k ? K = String($[$.length - 1] || "") : Nn($) && k && (K = $.map((q) => q.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
3314
3314
  S.current = null, N($);
3315
3315
  }, Ka)), d && t) {
3316
- const { actionName: V, arg: R } = bt(d, $, {
3316
+ const { actionName: q, arg: R } = bt(d, $, {
3317
3317
  id: e,
3318
3318
  dataSet: i,
3319
3319
  dataSetField: r
3320
3320
  });
3321
- m(t, I(V, R));
3321
+ m(t, I(q, R));
3322
3322
  }
3323
3323
  },
3324
3324
  [
@@ -3337,12 +3337,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3337
3337
  ), P = j(() => {
3338
3338
  c && N(M);
3339
3339
  }, [c, N, M]);
3340
- return Dt(
3340
+ return St(
3341
3341
  () => () => {
3342
3342
  S.current && clearTimeout(S.current);
3343
3343
  },
3344
3344
  []
3345
- ), /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
3345
+ ), /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
3346
3346
  /* @__PURE__ */ b(
3347
3347
  vr,
3348
3348
  {
@@ -3381,17 +3381,17 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3381
3381
  validateOnBlur: u,
3382
3382
  ...S
3383
3383
  }) => {
3384
- const x = _((z) => z.addCommand), C = _((z) => z.setDataSet), w = y(
3384
+ const x = _((V) => V.addCommand), C = _((V) => V.setDataSet), w = y(
3385
3385
  () => rt(t, i),
3386
3386
  [t, i]
3387
3387
  ), D = _(
3388
- (z) => {
3388
+ (V) => {
3389
3389
  var K;
3390
- return t && e ? ((K = z.propsStore[`${t}_props`]) == null ? void 0 : K[e]) ?? null : null;
3390
+ return t && e ? ((K = V.propsStore[`${t}_props`]) == null ? void 0 : K[e]) ?? null : null;
3391
3391
  }
3392
3392
  ), T = _(
3393
- (z) => w && r ? z.getDataSet(w, r) : void 0
3394
- ), { validate: O, help: N } = Bt({
3393
+ (V) => w && r ? V.getDataSet(w, r) : void 0
3394
+ ), { validate: O, help: N } = Kt({
3395
3395
  rules: s,
3396
3396
  dataSet: i,
3397
3397
  dataSetField: r,
@@ -3405,13 +3405,13 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3405
3405
  () => Qt(S, D ?? void 0),
3406
3406
  [S, D]
3407
3407
  ), k = j(
3408
- (z, K, V) => {
3408
+ (V, K, q) => {
3409
3409
  if (o) {
3410
- o(z, K, V);
3410
+ o(V, K, q);
3411
3411
  return;
3412
3412
  }
3413
- if (w && r && C(w, r, z), m && O(z), a && t) {
3414
- const { actionName: R, arg: L } = bt(a, z, {
3413
+ if (w && r && C(w, r, V), m && O(V), a && t) {
3414
+ const { actionName: R, arg: L } = bt(a, V, {
3415
3415
  id: e,
3416
3416
  dataSet: i,
3417
3417
  dataSetField: r
@@ -3424,10 +3424,10 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3424
3424
  u && O(A);
3425
3425
  }, [u, O, A]), B = y(() => {
3426
3426
  if (!f) return;
3427
- const z = {};
3428
- return Object.entries(f).forEach(([K, V]) => {
3429
- V !== "" && V !== void 0 && V !== null && (z[K] = V);
3430
- }), Object.keys(z).length > 0 ? z : void 0;
3427
+ const V = {};
3428
+ return Object.entries(f).forEach(([K, q]) => {
3429
+ q !== "" && q !== void 0 && q !== null && (V[K] = q);
3430
+ }), Object.keys(V).length > 0 ? V : void 0;
3431
3431
  }, [f]), H = y(() => {
3432
3432
  if (B)
3433
3433
  return {
@@ -3435,7 +3435,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3435
3435
  TreeSelect: B
3436
3436
  }
3437
3437
  };
3438
- }, [B]), P = N ? "error" : void 0, $ = /* @__PURE__ */ ct("div", { onBlur: M, children: [
3438
+ }, [B]), P = N ? "error" : void 0, $ = /* @__PURE__ */ st("div", { onBlur: M, children: [
3439
3439
  /* @__PURE__ */ b(
3440
3440
  br,
3441
3441
  {
@@ -3453,7 +3453,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3453
3453
  ),
3454
3454
  N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
3455
3455
  ] });
3456
- return H ? /* @__PURE__ */ b(Rt, { theme: H, children: $ }) : $;
3456
+ return H ? /* @__PURE__ */ b(Bt, { theme: H, children: $ }) : $;
3457
3457
  }, $c = ({
3458
3458
  id: e,
3459
3459
  sessionId: t,
@@ -3473,89 +3473,89 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3473
3473
  action: s,
3474
3474
  ...m
3475
3475
  }) => {
3476
- const u = Re(i, r, t), S = u.dataSet, x = u.dataSetField, C = u.sessionId, w = _((J) => J.addCommand), D = _((J) => J.setDataSet), T = y(
3476
+ const u = je(i, r, t), S = u.dataSet, x = u.dataSetField, C = u.sessionId, w = _((J) => J.addCommand), D = _((J) => J.setDataSet), T = y(
3477
3477
  () => rt(C, S),
3478
3478
  [C, S]
3479
3479
  ), O = _(
3480
3480
  (J) => {
3481
- var q;
3482
- return C && e ? ((q = J.propsStore[`${C}_props`]) == null ? void 0 : q[e]) ?? null : null;
3481
+ var W;
3482
+ return C && e ? ((W = J.propsStore[`${C}_props`]) == null ? void 0 : W[e]) ?? null : null;
3483
3483
  }
3484
3484
  ), N = _(
3485
3485
  (J) => T && x ? J.getDataSet(T, x) : void 0
3486
- ), { validate: A, help: E } = Bt({
3486
+ ), { validate: A, help: E } = Kt({
3487
3487
  rules: c,
3488
3488
  dataSet: S,
3489
3489
  dataSetField: x,
3490
3490
  sessionId: C,
3491
3491
  id: e,
3492
3492
  develop: n
3493
- }), k = j((J) => J.map((q) => {
3493
+ }), k = j((J) => J.map((W) => {
3494
3494
  var et;
3495
- return ((et = q == null ? void 0 : q.response) == null ? void 0 : et.src) ?? (q == null ? void 0 : q.src) ?? (q == null ? void 0 : q.url) ?? (q == null ? void 0 : q.thumbUrl) ?? "";
3496
- }).filter((q) => q && typeof q == "string"), []), M = j((J) => {
3497
- const q = Gt().viewRes, et = (Z) => (q ? q(Z) : Z) || Z;
3498
- return J.map((Z, st) => {
3499
- const dt = et(Z);
3495
+ return ((et = W == null ? void 0 : W.response) == null ? void 0 : et.src) ?? (W == null ? void 0 : W.src) ?? (W == null ? void 0 : W.url) ?? (W == null ? void 0 : W.thumbUrl) ?? "";
3496
+ }).filter((W) => W && typeof W == "string"), []), M = j((J) => {
3497
+ const W = Gt().viewRes, et = (Z) => (W ? W(Z) : Z) || Z;
3498
+ return J.map((Z, lt) => {
3499
+ const mt = et(Z);
3500
3500
  return {
3501
- uid: `src-${st}-${Z}`,
3501
+ uid: `src-${lt}-${Z}`,
3502
3502
  name: Z.split("/").pop() || Z,
3503
- url: dt,
3504
- thumbUrl: dt,
3503
+ url: mt,
3504
+ thumbUrl: mt,
3505
3505
  status: "done",
3506
3506
  response: { src: Z }
3507
3507
  };
3508
3508
  });
3509
3509
  }, []), B = j((J) => {
3510
- const q = Gt().viewRes, et = (Z) => (Z && q ? q(Z) : Z) || Z;
3510
+ const W = Gt().viewRes, et = (Z) => (Z && W ? W(Z) : Z) || Z;
3511
3511
  return J.map((Z) => {
3512
- var W;
3513
- const st = ((W = Z == null ? void 0 : Z.response) == null ? void 0 : W.src) ?? (Z == null ? void 0 : Z.src) ?? (Z == null ? void 0 : Z.url) ?? (Z == null ? void 0 : Z.thumbUrl) ?? "", dt = typeof st == "string" ? et(st) : st, Y = {};
3514
- for (const ft of Object.keys(Z)) {
3515
- const pt = Z[ft];
3516
- pt instanceof File ? Y[ft] = pt : pt && typeof pt == "object" && !Array.isArray(pt) ? Y[ft] = { ...pt } : Y[ft] = pt;
3512
+ var z;
3513
+ const lt = ((z = Z == null ? void 0 : Z.response) == null ? void 0 : z.src) ?? (Z == null ? void 0 : Z.src) ?? (Z == null ? void 0 : Z.url) ?? (Z == null ? void 0 : Z.thumbUrl) ?? "", mt = typeof lt == "string" ? et(lt) : lt, Y = {};
3514
+ for (const ct of Object.keys(Z)) {
3515
+ const dt = Z[ct];
3516
+ dt instanceof File ? Y[ct] = dt : dt && typeof dt == "object" && !Array.isArray(dt) ? Y[ct] = { ...dt } : Y[ct] = dt;
3517
3517
  }
3518
- return dt && typeof dt == "string" && (Y.url = dt, Y.thumbUrl = dt), Y;
3518
+ return mt && typeof mt == "string" && (Y.url = mt, Y.thumbUrl = mt), Y;
3519
3519
  });
3520
- }, []), [H, P] = mt(null), $ = y(() => {
3520
+ }, []), [H, P] = ht(null), $ = y(() => {
3521
3521
  const J = N ?? (O == null ? void 0 : O.fileList) ?? h;
3522
3522
  if (J != null) {
3523
3523
  if (typeof J == "string" && J) return M([J]);
3524
3524
  if (Array.isArray(J))
3525
3525
  return J.length > 0 && typeof J[0] == "string" ? M(J) : B(J);
3526
3526
  }
3527
- }, [N, O == null ? void 0 : O.fileList, h, M, B]), z = H ?? $, K = y(
3527
+ }, [N, O == null ? void 0 : O.fileList, h, M, B]), V = H ?? $, K = y(
3528
3528
  () => Qt(m, O ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
3529
3529
  [m, O]
3530
- ), V = j((J) => J.size / 1024 / 1024 < f ? !0 : (Ce.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (J) => {
3531
- const { file: q, onSuccess: et, onError: Z, onProgress: st } = J;
3530
+ ), q = j((J) => J.size / 1024 / 1024 < f ? !0 : (Te.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (J) => {
3531
+ const { file: W, onSuccess: et, onError: Z, onProgress: lt } = J;
3532
3532
  if (Gt().upload)
3533
3533
  try {
3534
- st == null || st({ percent: 30 });
3535
- const Y = await Xn(q, {
3534
+ lt == null || lt({ percent: 30 });
3535
+ const Y = await In(W, {
3536
3536
  url: g,
3537
3537
  headers: {
3538
- Authorization: rn() ? `Bearer ${rn()}` : ""
3538
+ Authorization: an() ? `Bearer ${an()}` : ""
3539
3539
  }
3540
3540
  });
3541
- st == null || st({ percent: 100 }), et == null || et(Y, q);
3541
+ lt == null || lt({ percent: 100 }), et == null || et(Y, W);
3542
3542
  } catch (Y) {
3543
- Z == null || Z(Y), Ce.error("上传失败");
3543
+ Z == null || Z(Y), Te.error("上传失败");
3544
3544
  }
3545
3545
  else
3546
- Z == null || Z(new Error("Upload handler not configured")), Ce.warning("上传功能未配置");
3546
+ Z == null || Z(new Error("Upload handler not configured")), Te.warning("上传功能未配置");
3547
3547
  }, [g]), L = j(
3548
3548
  (J) => {
3549
3549
  if (v) {
3550
3550
  v(J);
3551
3551
  return;
3552
3552
  }
3553
- const q = Array.isArray(J.fileList) ? B(J.fileList) : J.fileList, et = Array.isArray(q) ? k(q) : [], Z = Array.isArray(q) && q.some((dt) => (dt == null ? void 0 : dt.status) === "uploading");
3554
- T && x && (et.length > 0 || !Array.isArray(q) || q.length === 0) ? (D(T, x, et), P(null)) : Z ? P(q) : q.length === 0 && P(null), d && A(q), a && C && w(
3553
+ const W = Array.isArray(J.fileList) ? B(J.fileList) : J.fileList, et = Array.isArray(W) ? k(W) : [], Z = Array.isArray(W) && W.some((mt) => (mt == null ? void 0 : mt.status) === "uploading");
3554
+ T && x && (et.length > 0 || !Array.isArray(W) || W.length === 0) ? (D(T, x, et), P(null)) : Z ? P(W) : W.length === 0 && P(null), d && A(W), a && C && w(
3555
3555
  C,
3556
3556
  I(a, {
3557
3557
  file: J.file,
3558
- fileList: q,
3558
+ fileList: W,
3559
3559
  src: et
3560
3560
  })
3561
3561
  );
@@ -3574,49 +3574,49 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3574
3574
  k
3575
3575
  ]
3576
3576
  ), Q = j(() => {
3577
- l && A(z);
3578
- }, [l, A, z]), G = j((J) => {
3579
- var dt;
3580
- const q = J.url || J.thumbUrl;
3581
- if (!q) return "";
3582
- const et = ((dt = J.response) == null ? void 0 : dt.src) ?? (typeof q == "string" ? q : ""), Z = Gt().viewRes, st = et && Z ? Z(et) : q;
3583
- return String(st).replace(/([?&])download=1(&|$)/, (Y, W, ft) => ft ? W : "");
3577
+ l && A(V);
3578
+ }, [l, A, V]), G = j((J) => {
3579
+ var mt;
3580
+ const W = J.url || J.thumbUrl;
3581
+ if (!W) return "";
3582
+ const et = ((mt = J.response) == null ? void 0 : mt.src) ?? (typeof W == "string" ? W : ""), Z = Gt().viewRes, lt = et && Z ? Z(et) : W;
3583
+ return String(lt).replace(/([?&])download=1(&|$)/, (Y, z, ct) => ct ? z : "");
3584
3584
  }, []), U = j((J) => {
3585
- var Z, st;
3586
- const q = ((Z = J.response) == null ? void 0 : Z.src) ?? J.name ?? "", et = ((st = String(q).split(".").pop()) == null ? void 0 : st.toLowerCase()) || "";
3585
+ var Z, lt;
3586
+ const W = ((Z = J.response) == null ? void 0 : Z.src) ?? J.name ?? "", et = ((lt = String(W).split(".").pop()) == null ? void 0 : lt.toLowerCase()) || "";
3587
3587
  return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(G(J));
3588
- }, [G]), [at, it] = mt({
3588
+ }, [G]), [at, it] = ht({
3589
3589
  url: "",
3590
3590
  name: "",
3591
3591
  urls: [],
3592
3592
  current: 0,
3593
3593
  open: !1
3594
3594
  }), nt = j((J) => {
3595
- const q = G(J);
3596
- if (q)
3597
- if (U(J) && (z != null && z.length)) {
3598
- const et = z.filter((dt) => U(dt)), Z = et.map((dt) => G(dt)).filter(Boolean), st = et.findIndex((dt) => (dt.uid || dt.url) === (J.uid || J.url));
3599
- it({ url: q, name: J.name, urls: Z, current: st >= 0 ? st : 0, open: !0 });
3600
- } else U(J) || window.open(q, "_blank");
3601
- }, [G, U, z]), St = !!Gt().upload && !s, yt = K, tt = yt.buttonText ?? o, ut = yt.listType ?? m.listType, ot = yt.maxCount, Ct = (z == null ? void 0 : z.length) ?? 0, kt = typeof ot == "number" && Ct >= ot, $t = j(
3602
- (J) => kt ? (Ce.warning(`最多只能上传 ${ot} 个文件`), !1) : V(J),
3603
- [kt, ot, V]
3595
+ const W = G(J);
3596
+ if (W)
3597
+ if (U(J) && (V != null && V.length)) {
3598
+ const et = V.filter((mt) => U(mt)), Z = et.map((mt) => G(mt)).filter(Boolean), lt = et.findIndex((mt) => (mt.uid || mt.url) === (J.uid || J.url));
3599
+ it({ url: W, name: J.name, urls: Z, current: lt >= 0 ? lt : 0, open: !0 });
3600
+ } else U(J) || window.open(W, "_blank");
3601
+ }, [G, U, V]), wt = !!Gt().upload && !s, gt = K, tt = gt.buttonText ?? o, ft = gt.listType ?? m.listType, ot = gt.maxCount, Ct = (V == null ? void 0 : V.length) ?? 0, Ot = typeof ot == "number" && Ct >= ot, jt = j(
3602
+ (J) => Ot ? (Te.warning(`最多只能上传 ${ot} 个文件`), !1) : q(J),
3603
+ [Ot, ot, q]
3604
3604
  );
3605
- return /* @__PURE__ */ ct("div", { onBlur: Q, children: [
3605
+ return /* @__PURE__ */ st("div", { onBlur: Q, children: [
3606
3606
  /* @__PURE__ */ b(
3607
3607
  Sr,
3608
3608
  {
3609
3609
  ...K,
3610
3610
  disabled: n ? !1 : K.disabled,
3611
- fileList: z,
3611
+ fileList: V,
3612
3612
  onChange: L,
3613
3613
  onPreview: nt,
3614
- beforeUpload: $t,
3615
- customRequest: St ? R : void 0,
3616
- action: St ? void 0 : s || g,
3614
+ beforeUpload: jt,
3615
+ customRequest: wt ? R : void 0,
3616
+ action: wt ? void 0 : s || g,
3617
3617
  openFileDialogOnClick: !n,
3618
- children: !kt && (p || (ut === "picture-card" || ut === "picture-circle" ? /* @__PURE__ */ ct("button", { style: { border: 0, background: "none" }, type: "button", children: [
3619
- /* @__PURE__ */ b(Pn, {}),
3618
+ children: !Ot && (p || (ft === "picture-card" || ft === "picture-circle" ? /* @__PURE__ */ st("button", { style: { border: 0, background: "none" }, type: "button", children: [
3619
+ /* @__PURE__ */ b(Un, {}),
3620
3620
  /* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: tt })
3621
3621
  ] }) : /* @__PURE__ */ b(Xt, { icon: /* @__PURE__ */ b(Ir, {}), children: tt })))
3622
3622
  }
@@ -3627,19 +3627,19 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3627
3627
  {
3628
3628
  preview: {
3629
3629
  current: at.current,
3630
- onOpenChange: (J) => !J && it((q) => ({ ...q, open: !1 }))
3630
+ onOpenChange: (J) => !J && it((W) => ({ ...W, open: !1 }))
3631
3631
  },
3632
- children: at.urls.map((J, q) => /* @__PURE__ */ b(
3632
+ children: at.urls.map((J, W) => /* @__PURE__ */ b(
3633
3633
  Ft,
3634
3634
  {
3635
3635
  src: J,
3636
3636
  style: { width: 1, height: 1 },
3637
3637
  preview: {
3638
- open: at.open && at.current === q,
3638
+ open: at.open && at.current === W,
3639
3639
  onOpenChange: (et) => !et && it((Z) => ({ ...Z, open: !1 }))
3640
3640
  }
3641
3641
  },
3642
- q
3642
+ W
3643
3643
  ))
3644
3644
  }
3645
3645
  ) : /* @__PURE__ */ b(
@@ -3650,7 +3650,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3650
3650
  style: { width: 1, height: 1 },
3651
3651
  preview: {
3652
3652
  open: at.open,
3653
- onOpenChange: (J) => !J && it((q) => ({ ...q, open: !1 }))
3653
+ onOpenChange: (J) => !J && it((W) => ({ ...W, open: !1 }))
3654
3654
  }
3655
3655
  }
3656
3656
  ) })
@@ -3677,7 +3677,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3677
3677
  const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), x = y(
3678
3678
  () => rt(t, i),
3679
3679
  [t, i]
3680
- ), [C, w] = mt(h || []), [, D] = mt(!1), T = Wt.useRef(void 0), { get: O } = na(), N = y(() => {
3680
+ ), [C, w] = ht(h || []), [, D] = ht(!1), T = Wt.useRef(void 0), { get: O } = na(), N = y(() => {
3681
3681
  if (x && r) return u(x, r);
3682
3682
  }, [x, r, u]), A = y(() => N ?? d ?? v, [N, d, v]), E = j((B) => {
3683
3683
  if (!(g != null && g.queryApi)) {
@@ -3695,16 +3695,16 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3695
3695
  if (g != null && g.queryApi) {
3696
3696
  D(!0);
3697
3697
  try {
3698
- const { queryApi: H, keyWordParamName: P = "keyword", valueKey: $ = "value", labelKey: z = "label", fixedParams: K = [] } = g, V = {};
3699
- P && (V[P] = B), Array.isArray(K) && K.forEach((G) => {
3700
- G.key && (V[G.key] = G.value);
3698
+ const { queryApi: H, keyWordParamName: P = "keyword", valueKey: $ = "value", labelKey: V = "label", fixedParams: K = [] } = g, q = {};
3699
+ P && (q[P] = B), Array.isArray(K) && K.forEach((G) => {
3700
+ G.key && (q[G.key] = G.value);
3701
3701
  });
3702
- const R = await O(H, V);
3702
+ const R = await O(H, q);
3703
3703
  let L = [];
3704
3704
  Array.isArray(R) ? L = R : R && Array.isArray(R.data) ? L = R.data : R && R.data && Array.isArray(R.data.records) ? L = R.data.records : R && R.result && Array.isArray(R.result) && (L = R.result);
3705
3705
  const Q = L.map((G) => ({
3706
3706
  value: G[$],
3707
- label: G[z] || G[$],
3707
+ label: G[V] || G[$],
3708
3708
  ...G
3709
3709
  }));
3710
3710
  w(Q);
@@ -3766,7 +3766,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3766
3766
  children: g,
3767
3767
  ...f
3768
3768
  }) => {
3769
- const [s] = Ee.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), S = y(
3769
+ const [s] = Me.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), S = y(
3770
3770
  () => rt(t, i),
3771
3771
  [t, i]
3772
3772
  ), x = (w) => {
@@ -3782,9 +3782,9 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3782
3782
  }
3783
3783
  o && t && m(t, I(o, null));
3784
3784
  };
3785
- return /* @__PURE__ */ ct(Ee, { ...f, form: s, onFinish: x, children: [
3785
+ return /* @__PURE__ */ st(Me, { ...f, form: s, onFinish: x, children: [
3786
3786
  g,
3787
- (c || l) && /* @__PURE__ */ b(Ee.Item, { children: /* @__PURE__ */ ct(Yt, { children: [
3787
+ (c || l) && /* @__PURE__ */ b(Me.Item, { children: /* @__PURE__ */ st(Yt, { children: [
3788
3788
  c && /* @__PURE__ */ b(Xt, { type: "primary", htmlType: "submit", children: d }),
3789
3789
  l && /* @__PURE__ */ b(Xt, { onClick: C, children: v })
3790
3790
  ] }) })
@@ -3795,7 +3795,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3795
3795
  develop: n,
3796
3796
  children: i,
3797
3797
  ...r
3798
- }) => /* @__PURE__ */ b(Ee.Item, { ...r, children: i }), Ht = (e, t) => {
3798
+ }) => /* @__PURE__ */ b(Me.Item, { ...r, children: i }), Ht = (e, t) => {
3799
3799
  if (e == null) return t;
3800
3800
  if (typeof e == "string")
3801
3801
  try {
@@ -3837,7 +3837,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3837
3837
  const k = _((tt) => tt.addCommand), M = _((tt) => tt.getDataSet), B = _((tt) => tt.setDataSet), H = y(
3838
3838
  () => rt(t, i),
3839
3839
  [t, i]
3840
- ), P = y(() => Ht(N, {}), [N]), $ = y(() => Ht(A, {}), [A]), z = y(() => Ht(f, ["源列表", "目标列表"]), [f]), K = y(() => Ht(s, [">", "<"]), [s]), V = y(() => Ht(m, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [m]), R = y(() => Ht(p, !1), [p]), L = y(() => {
3840
+ ), P = y(() => Ht(N, {}), [N]), $ = y(() => Ht(A, {}), [A]), V = y(() => Ht(f, ["源列表", "目标列表"]), [f]), K = y(() => Ht(s, [">", "<"]), [s]), q = y(() => Ht(m, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [m]), R = y(() => Ht(p, !1), [p]), L = y(() => {
3841
3841
  if (H && r) {
3842
3842
  const tt = M(H, r);
3843
3843
  if (Array.isArray(tt)) return tt;
@@ -3847,31 +3847,31 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3847
3847
  const tt = M(H, `${r}.dataSource`);
3848
3848
  if (Array.isArray(tt)) return tt;
3849
3849
  }
3850
- }, [H, r, M]), G = y(() => n ? Q ?? Ht(a, []) : H ? Q ?? [] : Ht(a, []), [n, H, Q, a]), U = y(() => n ? L ?? Ht(o, []) : H ? L ?? [] : Ht(o, []), [n, H, L, o]), at = y(() => Ht(c, []), [c]), it = j((tt, ut, ot) => {
3850
+ }, [H, r, M]), G = y(() => n ? Q ?? Ht(a, []) : H ? Q ?? [] : Ht(a, []), [n, H, Q, a]), U = y(() => n ? L ?? Ht(o, []) : H ? L ?? [] : Ht(o, []), [n, H, L, o]), at = y(() => Ht(c, []), [c]), it = j((tt, ft, ot) => {
3851
3851
  if (w) {
3852
- w(tt, ut, ot);
3852
+ w(tt, ft, ot);
3853
3853
  return;
3854
3854
  }
3855
- H && r && B(H, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction: ut, moveKeys: ot }));
3856
- }, [w, H, r, B, u, t, k]), nt = j((tt, ut) => {
3855
+ H && r && B(H, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction: ft, moveKeys: ot }));
3856
+ }, [w, H, r, B, u, t, k]), nt = j((tt, ft) => {
3857
3857
  if (D) {
3858
- D(tt, ut);
3858
+ D(tt, ft);
3859
3859
  return;
3860
3860
  }
3861
- S && t && k(t, I(S, { sourceSelectedKeys: tt, targetSelectedKeys: ut }));
3862
- }, [D, S, t, k]), gt = j((tt, ut) => {
3861
+ S && t && k(t, I(S, { sourceSelectedKeys: tt, targetSelectedKeys: ft }));
3862
+ }, [D, S, t, k]), pt = j((tt, ft) => {
3863
3863
  if (T) {
3864
- T(tt, ut);
3864
+ T(tt, ft);
3865
3865
  return;
3866
3866
  }
3867
- x && t && k(t, I(x, { direction: tt, value: ut }));
3868
- }, [T, x, t, k]), St = j((tt, ut) => {
3867
+ x && t && k(t, I(x, { direction: tt, value: ft }));
3868
+ }, [T, x, t, k]), wt = j((tt, ft) => {
3869
3869
  if (O) {
3870
- O(tt, ut);
3870
+ O(tt, ft);
3871
3871
  return;
3872
3872
  }
3873
3873
  C && t && k(t, I(C, { direction: tt }));
3874
- }, [O, C, t, k]), yt = /* @__PURE__ */ b(
3874
+ }, [O, C, t, k]), gt = /* @__PURE__ */ b(
3875
3875
  Dr,
3876
3876
  {
3877
3877
  dataSource: G,
@@ -3883,20 +3883,20 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3883
3883
  oneWay: h,
3884
3884
  pagination: R,
3885
3885
  status: g || void 0,
3886
- titles: z,
3886
+ titles: V,
3887
3887
  actions: K,
3888
- locale: V,
3888
+ locale: q,
3889
3889
  onChange: it,
3890
3890
  onSelectChange: nt,
3891
- onSearch: gt,
3892
- onScroll: St,
3891
+ onSearch: pt,
3892
+ onScroll: wt,
3893
3893
  styles: P,
3894
3894
  render: (tt) => tt.title,
3895
3895
  ...E
3896
3896
  }
3897
3897
  );
3898
- return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Transfer: $ } }, children: yt }) : yt;
3899
- }, an = (e, t) => {
3898
+ return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Bt, { theme: { components: { Transfer: $ } }, children: gt }) : gt;
3899
+ }, on = (e, t) => {
3900
3900
  if (e == null) return t;
3901
3901
  if (typeof e == "string")
3902
3902
  try {
@@ -3911,7 +3911,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3911
3911
  if (!e) return null;
3912
3912
  const t = Jt[e];
3913
3913
  return t ? /* @__PURE__ */ b(t, {}) : null;
3914
- }, Va = (e) => an(e, []).map((n) => ({
3914
+ }, Va = (e) => on(e, []).map((n) => ({
3915
3915
  label: n.label,
3916
3916
  value: n.value,
3917
3917
  icon: n.icon ? za(n.icon) : void 0,
@@ -3941,7 +3941,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3941
3941
  const S = _((M) => M.addCommand), x = _((M) => M.getDataSet), C = _((M) => M.setDataSet), w = y(
3942
3942
  () => rt(t, i),
3943
3943
  [t, i]
3944
- ), D = y(() => an(s, {}), [s]), T = y(() => an(m, {}), [m]), O = y(() => Va(a), [a]), A = y(() => {
3944
+ ), D = y(() => on(s, {}), [s]), T = y(() => on(m, {}), [m]), O = y(() => Va(a), [a]), A = y(() => {
3945
3945
  if (w && r) {
3946
3946
  const M = x(w, r);
3947
3947
  if (typeof M == "string") return M;
@@ -3969,10 +3969,10 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3969
3969
  styles: D
3970
3970
  }
3971
3971
  );
3972
- return T && Object.keys(T).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Segmented: T } }, children: k }) : k;
3972
+ return T && Object.keys(T).length > 0 ? /* @__PURE__ */ b(Bt, { theme: { components: { Segmented: T } }, children: k }) : k;
3973
3973
  }, qa = (e, t, n) => {
3974
- const [i, r] = mt(void 0), a = t === "100%", o = Mt(0);
3975
- return Hn(() => {
3974
+ const [i, r] = ht(void 0), a = t === "100%", o = Rt(0);
3975
+ return Pn(() => {
3976
3976
  if (!a || !e.current) {
3977
3977
  r(void 0);
3978
3978
  return;
@@ -4022,14 +4022,14 @@ const pc = Wt.memo(er), xn = 200, vc = ({
4022
4022
  clearTimeout(d), o.current && cancelAnimationFrame(o.current), v.disconnect(), h.disconnect();
4023
4023
  };
4024
4024
  }, [a, n]), a ? i : t;
4025
- }, Nn = /* @__PURE__ */ new Map();
4025
+ }, kn = /* @__PURE__ */ new Map();
4026
4026
  function Wa(e) {
4027
- let t = Nn.get(e);
4028
- return t || (t = ln(e), Nn.set(e, t)), t;
4027
+ let t = kn.get(e);
4028
+ return t || (t = un(e), kn.set(e, t)), t;
4029
4029
  }
4030
4030
  const Ha = ({ dictCode: e, value: t }) => {
4031
- const [n, i] = mt(null);
4032
- if (Dt(() => {
4031
+ const [n, i] = ht(null);
4032
+ if (St(() => {
4033
4033
  if (!e) {
4034
4034
  i([]);
4035
4035
  return;
@@ -4118,12 +4118,12 @@ const Ha = ({ dictCode: e, value: t }) => {
4118
4118
  return n;
4119
4119
  }
4120
4120
  }), t;
4121
- }, He = 15, de = 10, Fa = [
4121
+ }, Pe = 15, de = 10, Fa = [
4122
4122
  { value: "small", label: "紧凑" },
4123
4123
  { value: "middle", label: "默认" },
4124
4124
  { value: "large", label: "宽松" }
4125
4125
  ];
4126
- function kn(e, t, n, i) {
4126
+ function On(e, t, n, i) {
4127
4127
  const r = {};
4128
4128
  return t.forEach((a) => {
4129
4129
  a.width !== void 0 && (r[a.key] = a.width);
@@ -4163,7 +4163,7 @@ function Za(e, t, n, i, r) {
4163
4163
  size: (e == null ? void 0 : e.size) ?? r ?? "middle"
4164
4164
  };
4165
4165
  }
4166
- const Pe = 420, On = 440, Xa = ({
4166
+ const Ue = 420, _n = 440, Xa = ({
4167
4167
  open: e,
4168
4168
  position: t,
4169
4169
  rowIndexVisible: n,
@@ -4177,8 +4177,8 @@ const Pe = 420, On = 440, Xa = ({
4177
4177
  onSave: v,
4178
4178
  onClose: h
4179
4179
  }) => {
4180
- const [p, g] = mt(n), [f, s] = mt(i), [m, u] = mt(o), [S, x] = mt(l), [C, w] = mt(null);
4181
- Dt(() => {
4180
+ const [p, g] = ht(n), [f, s] = ht(i), [m, u] = ht(o), [S, x] = ht(l), [C, w] = ht(null);
4181
+ St(() => {
4182
4182
  e && (g(n), s([...i]), u(o), x(l));
4183
4183
  }, [e, n, i, o, l]);
4184
4184
  const D = j(
@@ -4187,12 +4187,12 @@ const Pe = 420, On = 440, Xa = ({
4187
4187
  },
4188
4188
  [v]
4189
4189
  ), T = j(
4190
- (R, L, Q, G) => kn(R, L, Q ?? m, G ?? S),
4190
+ (R, L, Q, G) => On(R, L, Q ?? m, G ?? S),
4191
4191
  [m, S]
4192
4192
  ), O = j(() => {
4193
4193
  g(r);
4194
4194
  const R = a.map((L) => ({ ...L }));
4195
- s(R), u(c), x(d), D(kn(r, R, c, d));
4195
+ s(R), u(c), x(d), D(On(r, R, c, d));
4196
4196
  }, [r, a, c, d, D]), N = j(
4197
4197
  (R) => {
4198
4198
  s((L) => {
@@ -4222,7 +4222,7 @@ const Pe = 420, On = 440, Xa = ({
4222
4222
  s((Q) => {
4223
4223
  const G = Q.find((nt) => nt.key === R);
4224
4224
  if (!G) return Q;
4225
- const U = typeof G.width == "number" ? G.width : 80, at = Math.max(He, U + L), it = Q.map((nt) => nt.key === R ? { ...nt, width: at } : nt);
4225
+ const U = typeof G.width == "number" ? G.width : 80, at = Math.max(Pe, U + L), it = Q.map((nt) => nt.key === R ? { ...nt, width: at } : nt);
4226
4226
  return D(T(p, it)), it;
4227
4227
  });
4228
4228
  },
@@ -4251,27 +4251,27 @@ const Pe = 420, On = 440, Xa = ({
4251
4251
  [p, f, m, T, D]
4252
4252
  ), $ = (R) => (L) => {
4253
4253
  w(R), L.dataTransfer.effectAllowed = "move", L.dataTransfer.setData("text/plain", String(R));
4254
- }, z = (R) => (L) => {
4254
+ }, V = (R) => (L) => {
4255
4255
  L.preventDefault(), L.dataTransfer.dropEffect = "move", !(C === null || C === R) && (M(C, R), w(R));
4256
- }, K = () => w(null), V = t != null ? (() => {
4256
+ }, K = () => w(null), q = t != null ? (() => {
4257
4257
  let R = t.y, L = t.x;
4258
- return typeof window < "u" && (L + Pe > window.innerWidth && (L = window.innerWidth - Pe - 16), L < 16 && (L = 16), R + On > window.innerHeight && (R = Math.max(16, window.innerHeight - On - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: L };
4258
+ return typeof window < "u" && (L + Ue > window.innerWidth && (L = window.innerWidth - Ue - 16), L < 16 && (L = 16), R + _n > window.innerHeight && (R = Math.max(16, window.innerHeight - _n - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: L };
4259
4259
  })() : void 0;
4260
4260
  return /* @__PURE__ */ b(
4261
- Bn,
4261
+ Kn,
4262
4262
  {
4263
4263
  title: "列设置",
4264
4264
  open: e,
4265
4265
  onCancel: h,
4266
4266
  footer: null,
4267
- width: Pe,
4267
+ width: Ue,
4268
4268
  destroyOnHidden: !0,
4269
4269
  centered: t == null,
4270
- style: V,
4270
+ style: q,
4271
4271
  mask: !1,
4272
4272
  className: `and-table-column-setting-modal${t != null ? " and-table-column-setting-modal-positioned" : ""}`,
4273
- children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-body", children: [
4274
- /* @__PURE__ */ b("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-header-row", children: [
4273
+ children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-body", children: [
4274
+ /* @__PURE__ */ b("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-header-row", children: [
4275
4275
  /* @__PURE__ */ b(
4276
4276
  se,
4277
4277
  {
@@ -4281,10 +4281,10 @@ const Pe = 420, On = 440, Xa = ({
4281
4281
  }
4282
4282
  ),
4283
4283
  /* @__PURE__ */ b(se, { checked: m, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
4284
- /* @__PURE__ */ ct(Yt, { align: "center", children: [
4284
+ /* @__PURE__ */ st(Yt, { align: "center", children: [
4285
4285
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
4286
4286
  /* @__PURE__ */ b(
4287
- Rn,
4287
+ jn,
4288
4288
  {
4289
4289
  size: "small",
4290
4290
  value: S,
@@ -4295,8 +4295,8 @@ const Pe = 420, On = 440, Xa = ({
4295
4295
  )
4296
4296
  ] })
4297
4297
  ] }) }),
4298
- /* @__PURE__ */ b("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */ ct("table", { className: "and-table-column-setting-table", children: [
4299
- /* @__PURE__ */ b("thead", { children: /* @__PURE__ */ ct("tr", { children: [
4298
+ /* @__PURE__ */ b("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */ st("table", { className: "and-table-column-setting-table", children: [
4299
+ /* @__PURE__ */ b("thead", { children: /* @__PURE__ */ st("tr", { children: [
4300
4300
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-drag", children: "排序" }),
4301
4301
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-name", children: "列名/可见" }),
4302
4302
  /* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
@@ -4304,21 +4304,21 @@ const Pe = 420, On = 440, Xa = ({
4304
4304
  ] }) }),
4305
4305
  /* @__PURE__ */ b("tbody", { children: f.map((R, L) => {
4306
4306
  const Q = typeof R.width == "number" ? R.width : null, G = R.width === "auto" || R.width === void 0 && Q === null;
4307
- return /* @__PURE__ */ ct(
4307
+ return /* @__PURE__ */ st(
4308
4308
  "tr",
4309
4309
  {
4310
4310
  className: `and-table-column-setting-row ${C === L ? "and-table-column-setting-row-dragging" : ""}`,
4311
4311
  draggable: !0,
4312
4312
  onDragStart: $(L),
4313
- onDragOver: z(L),
4313
+ onDragOver: V(L),
4314
4314
  onDragEnd: K,
4315
4315
  children: [
4316
4316
  /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(ti, {}) }) }),
4317
- /* @__PURE__ */ ct("td", { className: "and-table-column-setting-td-name", children: [
4317
+ /* @__PURE__ */ st("td", { className: "and-table-column-setting-td-name", children: [
4318
4318
  /* @__PURE__ */ b(se, { checked: R.visible, onChange: () => N(R.key) }),
4319
4319
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-title", title: R.title, children: R.title })
4320
4320
  ] }),
4321
- /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-width", children: [
4321
+ /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-width", children: [
4322
4322
  /* @__PURE__ */ b(
4323
4323
  "span",
4324
4324
  {
@@ -4329,17 +4329,17 @@ const Pe = 420, On = 440, Xa = ({
4329
4329
  }
4330
4330
  ),
4331
4331
  /* @__PURE__ */ b(
4332
- $n,
4332
+ Rn,
4333
4333
  {
4334
4334
  size: "small",
4335
- min: He,
4335
+ min: Pe,
4336
4336
  step: de,
4337
4337
  value: G ? void 0 : Q ?? 80,
4338
4338
  placeholder: "auto",
4339
4339
  controls: !1,
4340
4340
  style: { width: 44 },
4341
4341
  onChange: (U) => {
4342
- U == null || typeof U == "string" && U === "" ? E(R.key, "auto") : E(R.key, Math.max(He, Number(U)));
4342
+ U == null || typeof U == "string" && U === "" ? E(R.key, "auto") : E(R.key, Math.max(Pe, Number(U)));
4343
4343
  }
4344
4344
  }
4345
4345
  ),
@@ -4349,18 +4349,18 @@ const Pe = 420, On = 440, Xa = ({
4349
4349
  className: "and-table-column-setting-fix-btn",
4350
4350
  onClick: () => k(R.key, de),
4351
4351
  title: `加 ${de}px`,
4352
- children: /* @__PURE__ */ b(Pn, {})
4352
+ children: /* @__PURE__ */ b(Un, {})
4353
4353
  }
4354
4354
  )
4355
4355
  ] }) }),
4356
- /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ct(Yt, { className: "and-table-column-setting-fix", children: [
4356
+ /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ st(Yt, { className: "and-table-column-setting-fix", children: [
4357
4357
  /* @__PURE__ */ b(
4358
4358
  "span",
4359
4359
  {
4360
4360
  className: `and-table-column-setting-fix-btn ${R.fixed === "left" ? "active" : ""}`,
4361
4361
  onClick: () => A(R.key, R.fixed === "left" ? !1 : "left"),
4362
4362
  title: "固定到左侧",
4363
- children: /* @__PURE__ */ b(Un, {})
4363
+ children: /* @__PURE__ */ b(Yn, {})
4364
4364
  }
4365
4365
  ),
4366
4366
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
@@ -4370,7 +4370,7 @@ const Pe = 420, On = 440, Xa = ({
4370
4370
  className: `and-table-column-setting-fix-btn ${R.fixed === "right" ? "active" : ""}`,
4371
4371
  onClick: () => A(R.key, R.fixed === "right" ? !1 : "right"),
4372
4372
  title: "固定到右侧",
4373
- children: /* @__PURE__ */ b(Yn, {})
4373
+ children: /* @__PURE__ */ b(Gn, {})
4374
4374
  }
4375
4375
  )
4376
4376
  ] }) })
@@ -4420,13 +4420,13 @@ const Pe = 420, On = 440, Xa = ({
4420
4420
  columnSettingsKey: H,
4421
4421
  ...P
4422
4422
  }) => {
4423
- const $ = _((F) => F.addCommand), z = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [V, R] = mt([]), L = Mt(null), [Q, G] = mt(void 0), U = j((F, lt) => {
4424
- if (F == null) return lt;
4423
+ const $ = _((F) => F.addCommand), V = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [q, R] = ht([]), L = Rt(null), [Q, G] = ht(void 0), U = j((F, ut) => {
4424
+ if (F == null) return ut;
4425
4425
  if (typeof F == "string")
4426
4426
  try {
4427
- return JSON.parse(F) ?? lt;
4427
+ return JSON.parse(F) ?? ut;
4428
4428
  } catch {
4429
- return lt;
4429
+ return ut;
4430
4430
  }
4431
4431
  return F;
4432
4432
  }, []), at = y(() => Array.isArray(a) ? a : [], [a]), it = y(() => Array.isArray(o) ? o : [], [o]), nt = y(
@@ -4438,163 +4438,163 @@ const Pe = 420, On = 440, Xa = ({
4438
4438
  columnSettings: i && t ? rt(t, `${i}_columnSettings`) : void 0
4439
4439
  }),
4440
4440
  [t, i]
4441
- ), gt = _(
4441
+ ), pt = _(
4442
4442
  (F) => {
4443
- var lt;
4444
- return nt.columnSettingOpen ? ((lt = F.dataSets[nt.columnSettingOpen]) == null ? void 0 : lt.value) === !0 : !1;
4443
+ var ut;
4444
+ return nt.columnSettingOpen ? ((ut = F.dataSets[nt.columnSettingOpen]) == null ? void 0 : ut.value) === !0 : !1;
4445
4445
  }
4446
- ), St = 420;
4447
- Hn(() => {
4448
- if (!gt || !L.current) return;
4446
+ ), wt = 420;
4447
+ Pn(() => {
4448
+ if (!pt || !L.current) return;
4449
4449
  const F = L.current.querySelector(".ant-table-thead") || L.current.querySelector(".ant-table-header");
4450
4450
  if (!F) return;
4451
- const lt = F.getBoundingClientRect();
4451
+ const ut = F.getBoundingClientRect();
4452
4452
  G({
4453
- x: lt.right - St,
4454
- y: lt.bottom + 8
4453
+ x: ut.right - wt,
4454
+ y: ut.bottom + 8
4455
4455
  });
4456
- }, [gt]);
4457
- const yt = _((F) => {
4458
- var Tt;
4459
- const lt = nt.columnSettings ? (Tt = F.dataSets[nt.columnSettings]) == null ? void 0 : Tt.value : void 0;
4460
- return typeof lt == "object" && lt !== null ? lt : void 0;
4461
- }), tt = bi(nt.dataSet, r), ut = y(() => nt.dataSet ? tt : (c == null ? void 0 : c.data) || [], [nt.dataSet, tt, c == null ? void 0 : c.data]), ot = y(() => U(M, {}), [M, U]), Ct = ot && Object.keys(ot).length > 0, kt = y(
4456
+ }, [pt]);
4457
+ const gt = _((F) => {
4458
+ var Nt;
4459
+ const ut = nt.columnSettings ? (Nt = F.dataSets[nt.columnSettings]) == null ? void 0 : Nt.value : void 0;
4460
+ return typeof ut == "object" && ut !== null ? ut : void 0;
4461
+ }), tt = bi(nt.dataSet, r), ft = y(() => nt.dataSet ? tt : (c == null ? void 0 : c.data) || [], [nt.dataSet, tt, c == null ? void 0 : c.data]), ot = y(() => U(M, {}), [M, U]), Ct = ot && Object.keys(ot).length > 0, Ot = y(
4462
4462
  () => Ct ? { components: { Table: ot } } : void 0,
4463
4463
  [Ct, ot]
4464
- ), $t = _(
4464
+ ), jt = _(
4465
4465
  (F) => nt.pagination ? F.dataSets[nt.pagination] : void 0
4466
- ), J = y(() => nt.pagination ? z(nt.pagination, "") || {} : {}, [nt.pagination, z, $t]), q = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
4467
- if (!q) return !1;
4468
- const F = typeof s == "object" ? s : {}, lt = P || {}, Tt = F.showSizeChanger ?? lt["pagination-showSizeChanger"] ?? !0, wt = F.showQuickJumper ?? lt["pagination-showQuickJumper"] ?? !1, xt = F.simple ?? lt["pagination-simple"] ?? !1, Kt = F.defaultPageSize ?? lt["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? lt["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Pt == "string" ? Pt.split(",").map((te) => parseInt(String(te).trim(), 10) || 10).filter((te) => !isNaN(te)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4466
+ ), J = y(() => nt.pagination ? V(nt.pagination, "") || {} : {}, [nt.pagination, V, jt]), W = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
4467
+ if (!W) return !1;
4468
+ const F = typeof s == "object" ? s : {}, ut = P || {}, Nt = F.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Dt = F.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, xt = F.simple ?? ut["pagination-simple"] ?? !1, zt = F.defaultPageSize ?? ut["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? ut["pagination-pageSizeOptions"] ?? "10,20,50,100", Ve = typeof Pt == "string" ? Pt.split(",").map((te) => parseInt(String(te).trim(), 10) || 10).filter((te) => !isNaN(te)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4469
4469
  return {
4470
4470
  ...J,
4471
- showSizeChanger: Tt,
4472
- showQuickJumper: wt,
4471
+ showSizeChanger: Nt,
4472
+ showQuickJumper: Dt,
4473
4473
  simple: xt,
4474
- defaultPageSize: Kt,
4475
- pageSizeOptions: ze,
4474
+ defaultPageSize: zt,
4475
+ pageSizeOptions: Ve,
4476
4476
  showTotal: (te, oe) => (F.showTotal || "共 ${total} 条").replace("${total}", String(te)).replace("${range[0]}", String(oe[0])).replace("${range[1]}", String(oe[1])).replace("${range}", `${oe[0]}-${oe[1]}`),
4477
4477
  onChange: (te, oe) => {
4478
4478
  nt.pagination && K(nt.pagination, "", { ...J, current: te, pageSize: oe }), f && t && $(t, I(f, null));
4479
4479
  },
4480
4480
  hideOnSinglePage: !1
4481
4481
  };
4482
- }, [q, s, P, J, nt.pagination, K, f, t, $]), Z = j((F, lt) => {
4483
- t && $(t, I(F.action, { ...lt }));
4484
- }, [t, $]), st = y(() => at.map((F) => {
4485
- let lt = !1;
4486
- F.fixed === !0 || F.fixed === "left" ? lt = "left" : F.fixed === "right" && (lt = "right");
4487
- const Tt = F.width;
4482
+ }, [W, s, P, J, nt.pagination, K, f, t, $]), Z = j((F, ut) => {
4483
+ t && $(t, I(F.action, { ...ut }));
4484
+ }, [t, $]), lt = y(() => at.map((F) => {
4485
+ let ut = !1;
4486
+ F.fixed === !0 || F.fixed === "left" ? ut = "left" : F.fixed === "right" && (ut = "right");
4487
+ const Nt = F.width;
4488
4488
  return {
4489
4489
  key: String(F.key ?? F.dataIndex ?? ""),
4490
4490
  title: typeof F.title == "string" ? F.title : "列",
4491
4491
  visible: F.visible !== !1,
4492
- fixed: lt,
4493
- width: typeof Tt == "number" ? Tt : "auto"
4492
+ fixed: ut,
4493
+ width: typeof Nt == "number" ? Nt : "auto"
4494
4494
  };
4495
- }).filter((F) => F.key), [at]), dt = g === !0, Y = !1, W = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: ft, items: pt, scrollX: zt, size: X } = y(() => Za(
4496
- yt,
4497
- st,
4498
- dt,
4495
+ }).filter((F) => F.key), [at]), mt = g === !0, Y = !1, z = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: ct, items: dt, scrollX: Lt, size: X } = y(() => Za(
4496
+ gt,
4497
+ lt,
4498
+ mt,
4499
4499
  Y,
4500
- W
4501
- ), [yt, st, dt, Y, W]), vt = !!(i && t), Et = y(() => {
4500
+ z
4501
+ ), [gt, lt, mt, Y, z]), vt = !!(i && t), _t = y(() => {
4502
4502
  const F = [];
4503
- ft && F.push({
4503
+ ct && F.push({
4504
4504
  title: "序号",
4505
4505
  key: "rowIndex",
4506
4506
  width: 60,
4507
4507
  align: "center",
4508
- render: (wt, xt, Kt) => {
4509
- const Pt = J.current || 1, ze = J.pageSize || 10;
4510
- return (Pt - 1) * ze + Kt + 1;
4508
+ render: (Dt, xt, zt) => {
4509
+ const Pt = J.current || 1, Ve = J.pageSize || 10;
4510
+ return (Pt - 1) * Ve + zt + 1;
4511
4511
  }
4512
4512
  });
4513
- const lt = new Map(at.map((wt) => [String(wt.key ?? wt.dataIndex ?? ""), wt]));
4514
- return pt.filter((wt) => wt.visible).forEach((wt) => {
4515
- const xt = lt.get(wt.key);
4513
+ const ut = new Map(at.map((Dt) => [String(Dt.key ?? Dt.dataIndex ?? ""), Dt]));
4514
+ return dt.filter((Dt) => Dt.visible).forEach((Dt) => {
4515
+ const xt = ut.get(Dt.key);
4516
4516
  if (!xt) return;
4517
- const Kt = wt.fixed || void 0, Pt = wt.width === "auto" || wt.width === void 0 ? void 0 : wt.width;
4517
+ const zt = Dt.fixed || void 0, Pt = Dt.width === "auto" || Dt.width === void 0 ? void 0 : Dt.width;
4518
4518
  F.push(Qa({
4519
4519
  ...xt,
4520
4520
  dataIndex: xt.dataIndex || xt.key,
4521
- fixed: Kt || xt.fixed,
4521
+ fixed: zt || xt.fixed,
4522
4522
  width: Pt ?? xt.width
4523
4523
  }));
4524
4524
  }), l !== !1 && it.length > 0 && F.push({
4525
4525
  title: "操作",
4526
4526
  key: "action",
4527
- render: (wt, xt) => /* @__PURE__ */ b(Yt, { children: it.map((Kt, Pt) => /* @__PURE__ */ b(Ar, { title: Kt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Z(Kt, xt), style: { marginRight: 5 }, children: Kt.title }) }, Pt)) })
4527
+ render: (Dt, xt) => /* @__PURE__ */ b(Yt, { children: it.map((zt, Pt) => /* @__PURE__ */ b(Ar, { title: zt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Z(zt, xt), style: { marginRight: 5 }, children: zt.title }) }, Pt)) })
4528
4528
  }), F;
4529
4529
  }, [
4530
4530
  at,
4531
4531
  it,
4532
- ft,
4533
- pt,
4532
+ ct,
4533
+ dt,
4534
4534
  l,
4535
4535
  J,
4536
4536
  Z
4537
- ]), jt = j(() => {
4537
+ ]), $t = j(() => {
4538
4538
  nt.columnSettingOpen && K(nt.columnSettingOpen, "", !1);
4539
- }, [nt.columnSettingOpen, K]), Vt = j(
4539
+ }, [nt.columnSettingOpen, K]), Tt = j(
4540
4540
  (F) => {
4541
4541
  nt.columnSettings && K(nt.columnSettings, "value", F);
4542
4542
  },
4543
4543
  [nt.columnSettings, K]
4544
- ), ir = y(() => {
4544
+ ), xe = y(() => {
4545
4545
  if (!v && d)
4546
4546
  return {
4547
- selectedRowKeys: V,
4548
- onChange: (F, lt, Tt) => {
4547
+ selectedRowKeys: q,
4548
+ onChange: (F, ut, Nt) => {
4549
4549
  R(F), nt.selected && K(nt.selected, "", F), h != null && h.trim() && t && $(t, I(h.trim(), {
4550
4550
  selectedRowKeys: F,
4551
- selectedRows: lt,
4552
- info: Tt
4551
+ selectedRows: ut,
4552
+ info: Nt
4553
4553
  }));
4554
4554
  }
4555
4555
  };
4556
- }, [d, v, V, nt.selected, K, h, t, $]), fn = j((F) => {
4556
+ }, [d, v, q, nt.selected, K, h, t, $]), dn = j((F) => {
4557
4557
  if (!v) return;
4558
- const Tt = [F[p]];
4559
- R(Tt), nt.selected && K(nt.selected, "", Tt), h != null && h.trim() && t && $(t, I(h.trim(), { record: F, selectedRowKeys: Tt }));
4560
- }, [v, h, t, p, nt.selected, K, $]), ar = j((F) => v && V.includes(F[p]) ? "ant-table-row-selected" : "", [v, p, V]), or = j((F) => v ? { onClick: () => fn(F), style: { cursor: "pointer" } } : {}, [v, fn]), { style: cr, className: sr, ...fe } = P, _t = y(() => {
4558
+ const Nt = [F[p]];
4559
+ R(Nt), nt.selected && K(nt.selected, "", Nt), h != null && h.trim() && t && $(t, I(h.trim(), { record: F, selectedRowKeys: Nt }));
4560
+ }, [v, h, t, p, nt.selected, K, $]), ar = j((F) => v && q.includes(F[p]) ? "ant-table-row-selected" : "", [v, p, q]), or = j((F) => v ? { onClick: () => dn(F), style: { cursor: "pointer" } } : {}, [v, dn]), { style: cr, className: sr, ...fe } = P, Mt = y(() => {
4561
4561
  if (C) return C;
4562
- let F = fe["scroll-x"], lt = fe["scroll-y"];
4563
- if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (lt === "" || lt === null || lt === void 0) && (lt = void 0), F !== void 0 || lt !== void 0) return { x: F, y: lt };
4564
- }, [C, fe["scroll-x"], fe["scroll-y"]]), Le = qa(L, _t == null ? void 0 : _t.y, q), lr = y(() => {
4565
- if (!_t && !vt) return;
4566
- const F = vt ? zt ? !0 : "max-content" : _t == null ? void 0 : _t.x, lt = (_t == null ? void 0 : _t.y) === "100%" ? Le : _t == null ? void 0 : _t.y;
4567
- return F !== void 0 || lt !== void 0 ? { x: F, y: lt } : _t ? _t.y === "100%" ? { x: _t.x, y: Le } : _t : void 0;
4568
- }, [_t, Le, vt, zt]), { titleSlot: xe, summarySlot: Ae, footerSlot: dn, otherChildren: ur } = y(() => {
4569
- let F = null, lt = null, Tt = null;
4570
- const wt = [];
4562
+ let F = fe["scroll-x"], ut = fe["scroll-y"];
4563
+ if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (ut === "" || ut === null || ut === void 0) && (ut = void 0), F !== void 0 || ut !== void 0) return { x: F, y: ut };
4564
+ }, [C, fe["scroll-x"], fe["scroll-y"]]), ze = qa(L, Mt == null ? void 0 : Mt.y, W), lr = y(() => {
4565
+ if (!Mt && !vt) return;
4566
+ const F = vt ? Lt ? !0 : "max-content" : Mt == null ? void 0 : Mt.x, ut = (Mt == null ? void 0 : Mt.y) === "100%" ? ze : Mt == null ? void 0 : Mt.y;
4567
+ return F !== void 0 || ut !== void 0 ? { x: F, y: ut } : Mt ? Mt.y === "100%" ? { x: Mt.x, y: ze } : Mt : void 0;
4568
+ }, [Mt, ze, vt, Lt]), { titleSlot: Ae, summarySlot: Ce, footerSlot: mn, otherChildren: ur } = y(() => {
4569
+ let F = null, ut = null, Nt = null;
4570
+ const Dt = [];
4571
4571
  return Wt.Children.forEach(k, (xt) => {
4572
4572
  if (!Wt.isValidElement(xt)) {
4573
- wt.push(xt);
4573
+ Dt.push(xt);
4574
4574
  return;
4575
4575
  }
4576
- const Kt = xt.props["data-slot-type"];
4577
- Kt === "title" ? F = xt : Kt === "summary" ? lt = xt : Kt === "footer" ? Tt = xt : wt.push(xt);
4578
- }), { titleSlot: F, summarySlot: lt, footerSlot: Tt, otherChildren: wt };
4576
+ const zt = xt.props["data-slot-type"];
4577
+ zt === "title" ? F = xt : zt === "summary" ? ut = xt : zt === "footer" ? Nt = xt : Dt.push(xt);
4578
+ }), { titleSlot: F, summarySlot: ut, footerSlot: Nt, otherChildren: Dt };
4579
4579
  }, [k]), fr = y(() => {
4580
- if (!xe) {
4580
+ if (!Ae) {
4581
4581
  if (N) return N;
4582
4582
  if (D && n) return () => /* @__PURE__ */ b("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
4583
4583
  }
4584
- }, [D, xe, N, n]), dr = y(() => {
4584
+ }, [D, Ae, N, n]), dr = y(() => {
4585
4585
  if (A) return A;
4586
- if (T && Ae)
4587
- return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: Et.length, style: { padding: 0 }, children: Ae }) });
4586
+ if (T && Ce)
4587
+ return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: _t.length, style: { padding: 0 }, children: Ce }) });
4588
4588
  if (T && n)
4589
- return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: Et.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
4590
- }, [T, Ae, A, Et.length, n]), mn = /* @__PURE__ */ b(
4589
+ return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: _t.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
4590
+ }, [T, Ce, A, _t.length, n]), hn = /* @__PURE__ */ b(
4591
4591
  Cr,
4592
4592
  {
4593
4593
  ...fe,
4594
- columns: Et,
4595
- dataSource: ut,
4594
+ columns: _t,
4595
+ dataSource: ft,
4596
4596
  rowKey: p,
4597
- rowSelection: ir,
4597
+ rowSelection: xe,
4598
4598
  rowClassName: ar,
4599
4599
  pagination: et,
4600
4600
  locale: { emptyText: m },
@@ -4608,56 +4608,56 @@ const Pe = 420, On = 440, Xa = ({
4608
4608
  onRow: or
4609
4609
  }
4610
4610
  );
4611
- return /* @__PURE__ */ ct(
4612
- Kn,
4611
+ return /* @__PURE__ */ st(
4612
+ Ln,
4613
4613
  {
4614
4614
  ref: L,
4615
4615
  vertical: !0,
4616
4616
  style: { width: "100%", height: "100%", ...cr },
4617
4617
  className: sr,
4618
4618
  children: [
4619
- xe && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: xe }),
4620
- /* @__PURE__ */ ct("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
4619
+ Ae && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: Ae }),
4620
+ /* @__PURE__ */ st("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
4621
4621
  v && (() => {
4622
- const F = (ot == null ? void 0 : ot.rowSelectedBg) || "#e6f4ff", lt = (ot == null ? void 0 : ot.rowSelectedHoverBg) || (ot == null ? void 0 : ot.rowSelectedBg) || "#bae0ff", Tt = ot == null ? void 0 : ot.rowSelectedColor, wt = (ot == null ? void 0 : ot.rowSelectedLinkColor) ?? Tt, xt = (ot == null ? void 0 : ot.rowSelectedLinkHoverColor) ?? wt;
4622
+ const F = (ot == null ? void 0 : ot.rowSelectedBg) || "#e6f4ff", ut = (ot == null ? void 0 : ot.rowSelectedHoverBg) || (ot == null ? void 0 : ot.rowSelectedBg) || "#bae0ff", Nt = ot == null ? void 0 : ot.rowSelectedColor, Dt = (ot == null ? void 0 : ot.rowSelectedLinkColor) ?? Nt, xt = (ot == null ? void 0 : ot.rowSelectedLinkHoverColor) ?? Dt;
4623
4623
  return /* @__PURE__ */ b("style", { children: `
4624
4624
  .ant-table-row-selected > td {
4625
4625
  background: ${F} !important;
4626
- ${Tt ? `color: ${Tt};` : ""}
4626
+ ${Nt ? `color: ${Nt};` : ""}
4627
4627
  }
4628
4628
  .ant-table-row-selected:hover > td {
4629
- background: ${lt} !important;
4629
+ background: ${ut} !important;
4630
4630
  }
4631
- ${wt ? `.ant-table-row-selected > td a { color: ${wt}; }` : ""}
4631
+ ${Dt ? `.ant-table-row-selected > td a { color: ${Dt}; }` : ""}
4632
4632
  ${xt ? `.ant-table-row-selected > td a:hover { color: ${xt}; }` : ""}
4633
4633
  ` });
4634
4634
  })(),
4635
- kt ? /* @__PURE__ */ b(Rt, { theme: kt, children: mn }) : mn
4635
+ Ot ? /* @__PURE__ */ b(Bt, { theme: Ot, children: hn }) : hn
4636
4636
  ] }),
4637
- Ae,
4638
- dn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: dn }),
4637
+ Ce,
4638
+ mn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: mn }),
4639
4639
  ur,
4640
4640
  vt && /* @__PURE__ */ b(
4641
4641
  Xa,
4642
4642
  {
4643
- open: gt,
4643
+ open: pt,
4644
4644
  position: Q,
4645
- rowIndexVisible: ft,
4646
- columnItems: pt,
4647
- defaultRowIndexVisible: dt,
4648
- defaultColumnItems: st,
4649
- scrollX: zt,
4645
+ rowIndexVisible: ct,
4646
+ columnItems: dt,
4647
+ defaultRowIndexVisible: mt,
4648
+ defaultColumnItems: lt,
4649
+ scrollX: Lt,
4650
4650
  defaultScrollX: Y,
4651
4651
  size: X,
4652
- defaultSize: W,
4653
- onSave: Vt,
4654
- onClose: jt
4652
+ defaultSize: z,
4653
+ onSave: Tt,
4654
+ onClose: $t
4655
4655
  }
4656
4656
  )
4657
4657
  ]
4658
4658
  }
4659
4659
  );
4660
- }, { Text: Ia } = sn, Vc = ({
4660
+ }, { Text: Ia } = ln, Vc = ({
4661
4661
  id: e,
4662
4662
  sessionId: t,
4663
4663
  develop: n,
@@ -4677,9 +4677,9 @@ const Pe = 420, On = 440, Xa = ({
4677
4677
  clickAction: s,
4678
4678
  ...m
4679
4679
  }) => {
4680
- const u = _((V) => V.getDataSet), S = _((V) => {
4680
+ const u = _((q) => q.getDataSet), S = _((q) => {
4681
4681
  var R;
4682
- return !t || !e ? null : ((R = V.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null;
4682
+ return !t || !e ? null : ((R = q.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null;
4683
4683
  }), x = y(
4684
4684
  () => d === "selectedCount" && o && !a ? o : a,
4685
4685
  [d, o, a]
@@ -4689,10 +4689,10 @@ const Pe = 420, On = 440, Xa = ({
4689
4689
  ), w = y(
4690
4690
  () => rt(t, x),
4691
4691
  [t, x]
4692
- ), D = _((V) => {
4692
+ ), D = _((q) => {
4693
4693
  if (!w) return;
4694
4694
  const R = Se(w).baseName;
4695
- return V.dataSets[R];
4695
+ return q.dataSets[R];
4696
4696
  }), { options: T } = De(d), O = y(() => {
4697
4697
  if (w && C)
4698
4698
  return u(w, C);
@@ -4705,46 +4705,46 @@ const Pe = 420, On = 440, Xa = ({
4705
4705
  return {};
4706
4706
  }
4707
4707
  return h;
4708
- }, [h]), A = (V) => V == null || V === "" || typeof V == "string" && V.trim() === "", E = y(() => n ? i : O != null && O !== "" ? A(O) && p ? i : O : (S == null ? void 0 : S.content) !== void 0 ? S.content : i, [n, O, S == null ? void 0 : S.content, i, p]), k = y(() => {
4708
+ }, [h]), A = (q) => q == null || q === "" || typeof q == "string" && q.trim() === "", E = y(() => n ? i : O != null && O !== "" ? A(O) && p ? i : O : (S == null ? void 0 : S.content) !== void 0 ? S.content : i, [n, O, S == null ? void 0 : S.content, i, p]), k = y(() => {
4709
4709
  if (d && T.length > 0 && E !== void 0 && E !== null) {
4710
- const V = ae(T, E);
4711
- return (V == null ? void 0 : V.label) ?? E;
4710
+ const q = ae(T, E);
4711
+ return (q == null ? void 0 : q.label) ?? E;
4712
4712
  }
4713
4713
  return E;
4714
4714
  }, [d, T, E]), M = y(() => {
4715
4715
  if (n)
4716
4716
  return k;
4717
- const V = (S == null ? void 0 : S.formatType) || v;
4718
- return V && k !== void 0 && k !== null ? Ca(k, V, N) : k;
4717
+ const q = (S == null ? void 0 : S.formatType) || v;
4718
+ return q && k !== void 0 && k !== null ? Ca(k, q, N) : k;
4719
4719
  }, [n, k, v, N, S == null ? void 0 : S.formatType]), B = y(() => {
4720
- const V = { ...m };
4720
+ const q = { ...m };
4721
4721
  return S && typeof S == "object" && Object.keys(S).forEach((R) => {
4722
- !["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (V[R] = S[R]);
4723
- }), V;
4724
- }, [m, S]), H = (S == null ? void 0 : S.color) ?? l, P = Ke(H), $ = y(() => {
4722
+ !["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (q[R] = S[R]);
4723
+ }), q;
4724
+ }, [m, S]), H = (S == null ? void 0 : S.color) ?? l, P = Le(H), $ = y(() => {
4725
4725
  if (!f) return;
4726
- let V = f;
4726
+ let q = f;
4727
4727
  if (typeof f == "string")
4728
4728
  try {
4729
- V = JSON.parse(f);
4729
+ q = JSON.parse(f);
4730
4730
  } catch {
4731
4731
  return;
4732
4732
  }
4733
- if (!V || typeof V != "object") return;
4733
+ if (!q || typeof q != "object") return;
4734
4734
  const R = {};
4735
- return Object.entries(V).forEach(([L, Q]) => {
4735
+ return Object.entries(q).forEach(([L, Q]) => {
4736
4736
  Q !== "" && Q !== void 0 && Q !== null && (R[L] = Q);
4737
4737
  }), Object.keys(R).length > 0 ? R : void 0;
4738
- }, [f]), z = y(() => {
4739
- const V = { width: "100%" }, R = (S == null ? void 0 : S.fontSize) ?? c;
4738
+ }, [f]), V = y(() => {
4739
+ const q = { width: "100%" }, R = (S == null ? void 0 : S.fontSize) ?? c;
4740
4740
  if (R) {
4741
4741
  const L = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
4742
- V.fontSize = L;
4742
+ q.fontSize = L;
4743
4743
  }
4744
- return P && (V.color = P), V;
4745
- }, [c, P, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ b(Ia, { ...B, style: { ...z, ...g, ...B.style }, children: M != null && M !== "" ? String(M) : r });
4746
- return $ ? /* @__PURE__ */ b(Rt, { theme: { token: $ }, children: K }) : K;
4747
- }, { Title: to } = sn, qc = ({
4744
+ return P && (q.color = P), q;
4745
+ }, [c, P, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ b(Ia, { ...B, style: { ...V, ...g, ...B.style }, children: M != null && M !== "" ? String(M) : r });
4746
+ return $ ? /* @__PURE__ */ b(Bt, { theme: { token: $ }, children: K }) : K;
4747
+ }, { Title: to } = ln, qc = ({
4748
4748
  id: e,
4749
4749
  sessionId: t,
4750
4750
  develop: n,
@@ -4763,7 +4763,7 @@ const Pe = 420, On = 440, Xa = ({
4763
4763
  ), f = y(() => t && e ? p(t, e) : null, [t, e, p]), s = y(() => {
4764
4764
  if (g && o)
4765
4765
  return h(g, o);
4766
- }, [g, o, h]), m = y(() => n ? i : s != null && s !== "" ? String(s) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [n, s, f == null ? void 0 : f.content, i]), u = (f == null ? void 0 : f.color) ?? l, S = Ke(u), x = y(() => {
4766
+ }, [g, o, h]), m = y(() => n ? i : s != null && s !== "" ? String(s) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [n, s, f == null ? void 0 : f.content, i]), u = (f == null ? void 0 : f.color) ?? l, S = Le(u), x = y(() => {
4767
4767
  const w = {};
4768
4768
  return S && (w.color = S), w;
4769
4769
  }, [S]), C = y(() => {
@@ -4773,7 +4773,7 @@ const Pe = 420, On = 440, Xa = ({
4773
4773
  }), w;
4774
4774
  }, [v, f]);
4775
4775
  return /* @__PURE__ */ b(to, { level: c, ...C, style: { ...x, ...d, ...C.style }, children: m || r });
4776
- }, { Paragraph: eo } = sn, Wc = ({
4776
+ }, { Paragraph: eo } = ln, Wc = ({
4777
4777
  id: e,
4778
4778
  sessionId: t,
4779
4779
  develop: n,
@@ -4791,7 +4791,7 @@ const Pe = 420, On = 440, Xa = ({
4791
4791
  ), g = y(() => t && e ? h(t, e) : null, [t, e, h]), f = y(() => {
4792
4792
  if (p && o)
4793
4793
  return v(p, o);
4794
- }, [p, o, v]), s = y(() => n ? i : f != null && f !== "" ? String(f) : (g == null ? void 0 : g.content) !== void 0 ? g.content : i, [n, f, g == null ? void 0 : g.content, i]), m = (g == null ? void 0 : g.color) ?? c, u = Ke(m), S = y(() => {
4794
+ }, [p, o, v]), s = y(() => n ? i : f != null && f !== "" ? String(f) : (g == null ? void 0 : g.content) !== void 0 ? g.content : i, [n, f, g == null ? void 0 : g.content, i]), m = (g == null ? void 0 : g.color) ?? c, u = Le(m), S = y(() => {
4795
4795
  const C = {};
4796
4796
  return u && (C.color = u), C;
4797
4797
  }, [u]), x = y(() => {
@@ -4899,141 +4899,141 @@ const Pe = 420, On = 440, Xa = ({
4899
4899
  token: B,
4900
4900
  ...H
4901
4901
  }) => {
4902
- const P = _((W) => W.addCommand), $ = _((W) => W.setDataSet), z = y(
4902
+ const P = _((z) => z.addCommand), $ = _((z) => z.setDataSet), V = y(
4903
4903
  () => rt(t, i),
4904
4904
  [t, i]
4905
4905
  ), K = y(
4906
4906
  () => i ? rt(t, `${i}_selected`) : void 0,
4907
4907
  [t, i]
4908
- ), V = y(
4908
+ ), q = y(
4909
4909
  () => i ? rt(t, `${i}_checked`) : void 0,
4910
4910
  [t, i]
4911
4911
  ), R = y(
4912
4912
  () => i ? rt(t, `${i}_expanded`) : void 0,
4913
4913
  [t, i]
4914
- ), L = _((W) => {
4915
- if (!z) return;
4914
+ ), L = _((z) => {
4915
+ if (!V) return;
4916
4916
  if (r)
4917
- return W.getDataSet(z, r);
4918
- const ft = W.dataSets[z];
4919
- if (!ft) return;
4920
- if (Array.isArray(ft)) return ft;
4921
- const pt = ft.value;
4922
- return Array.isArray(pt) ? pt : void 0;
4917
+ return z.getDataSet(V, r);
4918
+ const ct = z.dataSets[V];
4919
+ if (!ct) return;
4920
+ if (Array.isArray(ct)) return ct;
4921
+ const dt = ct.value;
4922
+ return Array.isArray(dt) ? dt : void 0;
4923
4923
  }), Q = _(
4924
- (W) => K ? W.getDataSet(K, "") : void 0
4924
+ (z) => K ? z.getDataSet(K, "") : void 0
4925
4925
  ), G = _(
4926
- (W) => V ? W.getDataSet(V, "") : void 0
4926
+ (z) => q ? z.getDataSet(q, "") : void 0
4927
4927
  ), U = _(
4928
- (W) => R ? W.getDataSet(R, "") : void 0
4929
- ), at = y(() => n ? L ?? E ?? [] : z ? L ?? [] : E ?? [], [n, z, L, E]), it = Q, nt = G, gt = U, St = j(
4930
- (W, ft) => {
4928
+ (z) => R ? z.getDataSet(R, "") : void 0
4929
+ ), at = y(() => n ? L ?? E ?? [] : V ? L ?? [] : E ?? [], [n, V, L, E]), it = Q, nt = G, pt = U, wt = j(
4930
+ (z, ct) => {
4931
4931
  if (m) {
4932
- m(W, ft);
4932
+ m(z, ct);
4933
4933
  return;
4934
4934
  }
4935
- K && $(K, "", W), a && t && P(t, I(a, { selectedKeys: W }));
4935
+ K && $(K, "", z), a && t && P(t, I(a, { selectedKeys: z }));
4936
4936
  },
4937
4937
  [m, K, t, $, a, P]
4938
- ), yt = j(
4939
- (W, ft) => {
4938
+ ), gt = j(
4939
+ (z, ct) => {
4940
4940
  if (u) {
4941
- u(W, ft);
4941
+ u(z, ct);
4942
4942
  return;
4943
4943
  }
4944
- V && $(V, "", W), o && t && P(t, I(o, { checkedKeys: W }));
4944
+ q && $(q, "", z), o && t && P(t, I(o, { checkedKeys: z }));
4945
4945
  },
4946
- [u, V, t, $, o, P]
4946
+ [u, q, t, $, o, P]
4947
4947
  ), tt = j(
4948
- (W, ft) => {
4948
+ (z, ct) => {
4949
4949
  if (S) {
4950
- S(W, ft);
4950
+ S(z, ct);
4951
4951
  return;
4952
4952
  }
4953
- R && $(R, "", W), c && t && P(t, I(c, { expandedKeys: W, expanded: ft.expanded }));
4953
+ R && $(R, "", z), c && t && P(t, I(c, { expandedKeys: z, expanded: ct.expanded }));
4954
4954
  },
4955
4955
  [S, R, t, $, c, P]
4956
- ), ut = j(
4957
- (W) => {
4956
+ ), ft = j(
4957
+ (z) => {
4958
4958
  if (x) {
4959
- x(W);
4959
+ x(z);
4960
4960
  return;
4961
4961
  }
4962
- l && t && P(t, I(l, W));
4962
+ l && t && P(t, I(l, z));
4963
4963
  },
4964
4964
  [x, l, t, P]
4965
4965
  ), ot = j(
4966
- (W) => {
4966
+ (z) => {
4967
4967
  if (C) {
4968
- C(W);
4968
+ C(z);
4969
4969
  return;
4970
4970
  }
4971
- d && t && P(t, I(d, W));
4971
+ d && t && P(t, I(d, z));
4972
4972
  },
4973
4973
  [C, d, t, P]
4974
4974
  ), Ct = j(
4975
- (W) => {
4975
+ (z) => {
4976
4976
  if (w) {
4977
- w(W);
4977
+ w(z);
4978
4978
  return;
4979
4979
  }
4980
- v && t && P(t, I(v, W));
4980
+ v && t && P(t, I(v, z));
4981
4981
  },
4982
4982
  [w, v, t, P]
4983
- ), kt = j(
4984
- (W) => {
4983
+ ), Ot = j(
4984
+ (z) => {
4985
4985
  if (D) {
4986
- D(W);
4986
+ D(z);
4987
4987
  return;
4988
4988
  }
4989
- h && t && P(t, I(h, W));
4989
+ h && t && P(t, I(h, z));
4990
4990
  },
4991
4991
  [D, h, t, P]
4992
- ), $t = j(
4993
- (W) => {
4992
+ ), jt = j(
4993
+ (z) => {
4994
4994
  if (T) {
4995
- T(W);
4995
+ T(z);
4996
4996
  return;
4997
4997
  }
4998
- p && t && P(t, I(p, W));
4998
+ p && t && P(t, I(p, z));
4999
4999
  },
5000
5000
  [T, p, t, P]
5001
5001
  ), J = j(
5002
- (W) => {
5002
+ (z) => {
5003
5003
  if (O) {
5004
- O(W);
5004
+ O(z);
5005
5005
  return;
5006
5006
  }
5007
- g && t && P(t, I(g, W));
5007
+ g && t && P(t, I(g, z));
5008
5008
  },
5009
5009
  [O, g, t, P]
5010
- ), q = j(
5011
- (W) => {
5010
+ ), W = j(
5011
+ (z) => {
5012
5012
  if (N) {
5013
- N(W);
5013
+ N(z);
5014
5014
  return;
5015
5015
  }
5016
- f && t && P(t, I(f, W));
5016
+ f && t && P(t, I(f, z));
5017
5017
  },
5018
5018
  [N, f, t, P]
5019
5019
  ), et = j(
5020
- (W, ft) => {
5020
+ (z, ct) => {
5021
5021
  if (A) {
5022
- A(W, ft);
5022
+ A(z, ct);
5023
5023
  return;
5024
5024
  }
5025
- s && t && P(t, I(s, { loadedKeys: W, ...ft }));
5025
+ s && t && P(t, I(s, { loadedKeys: z, ...ct }));
5026
5026
  },
5027
5027
  [A, s, t, P]
5028
5028
  ), Z = y(() => {
5029
5029
  if (!B) return;
5030
- const W = {};
5031
- return Object.entries(B).forEach(([ft, pt]) => {
5032
- pt !== "" && pt !== void 0 && pt !== null && (W[ft] = pt);
5033
- }), Object.keys(W).length > 0 ? W : void 0;
5034
- }, [B]), st = y(() => {
5035
- const W = {};
5036
- return n && (W.motion = !1), Z && (W.components = { Tree: Z }), Object.keys(W).length > 0 ? W : void 0;
5030
+ const z = {};
5031
+ return Object.entries(B).forEach(([ct, dt]) => {
5032
+ dt !== "" && dt !== void 0 && dt !== null && (z[ct] = dt);
5033
+ }), Object.keys(z).length > 0 ? z : void 0;
5034
+ }, [B]), lt = y(() => {
5035
+ const z = {};
5036
+ return n && (z.motion = !1), Z && (z.components = { Tree: Z }), Object.keys(z).length > 0 ? z : void 0;
5037
5037
  }, [n, Z]), Y = /* @__PURE__ */ b(
5038
5038
  Nr,
5039
5039
  {
@@ -5041,24 +5041,24 @@ const Pe = 420, On = 440, Xa = ({
5041
5041
  ...n ? { motion: !1 } : {},
5042
5042
  treeData: at,
5043
5043
  ...K != null ? { selectedKeys: it ?? [] } : {},
5044
- ...V != null ? { checkedKeys: nt ?? [] } : {},
5045
- ...R != null ? { expandedKeys: gt ?? [] } : {},
5046
- onSelect: St,
5047
- onCheck: yt,
5044
+ ...q != null ? { checkedKeys: nt ?? [] } : {},
5045
+ ...R != null ? { expandedKeys: pt ?? [] } : {},
5046
+ onSelect: wt,
5047
+ onCheck: gt,
5048
5048
  onExpand: tt,
5049
- onDragEnd: ut,
5049
+ onDragEnd: ft,
5050
5050
  onDragEnter: ot,
5051
5051
  onDragLeave: Ct,
5052
- onDragOver: kt,
5053
- onDragStart: $t,
5052
+ onDragOver: Ot,
5053
+ onDragStart: jt,
5054
5054
  onDrop: J,
5055
- onRightClick: q,
5055
+ onRightClick: W,
5056
5056
  onLoad: et,
5057
5057
  styles: k,
5058
5058
  classNames: M
5059
5059
  }
5060
5060
  );
5061
- return st ? /* @__PURE__ */ b(Rt, { theme: st, children: Y }) : Y;
5061
+ return lt ? /* @__PURE__ */ b(Bt, { theme: lt, children: Y }) : Y;
5062
5062
  }, Uc = ({
5063
5063
  id: e,
5064
5064
  sessionId: t,
@@ -5105,7 +5105,7 @@ const Pe = 420, On = 440, Xa = ({
5105
5105
  children: r
5106
5106
  }
5107
5107
  );
5108
- }, Ue = (e, t) => {
5108
+ }, Ye = (e, t) => {
5109
5109
  if (!e) return t;
5110
5110
  if (typeof e == "string")
5111
5111
  try {
@@ -5137,7 +5137,7 @@ const Pe = 420, On = 440, Xa = ({
5137
5137
  [t, i]
5138
5138
  ), C = y(() => {
5139
5139
  if (x && r) return u(x, r);
5140
- }, [x, r, u]), w = y(() => C ?? c ?? 0, [C, c]), D = y(() => v ?? d, [v, d]), T = y(() => p ?? h, [p, h]), O = y(() => Ue(l, []), [l]), N = y(() => Ue(g, {}), [g]), A = y(() => Ue(f, {}), [f]), E = j((B) => {
5140
+ }, [x, r, u]), w = y(() => C ?? c ?? 0, [C, c]), D = y(() => v ?? d, [v, d]), T = y(() => p ?? h, [p, h]), O = y(() => Ye(l, []), [l]), N = y(() => Ye(g, {}), [g]), A = y(() => Ye(f, {}), [f]), E = j((B) => {
5141
5141
  if (o) {
5142
5142
  o(B);
5143
5143
  return;
@@ -5155,22 +5155,22 @@ const Pe = 420, On = 440, Xa = ({
5155
5155
  onChange: E
5156
5156
  }
5157
5157
  );
5158
- return k ? /* @__PURE__ */ b(Rt, { theme: { components: { Steps: A } }, children: M }) : M;
5158
+ return k ? /* @__PURE__ */ b(Bt, { theme: { components: { Steps: A } }, children: M }) : M;
5159
5159
  }, Gc = ({
5160
5160
  id: e,
5161
5161
  sessionId: t,
5162
5162
  develop: n,
5163
5163
  ...i
5164
- }) => /* @__PURE__ */ b(Ge, { ...i }), Jc = ({
5164
+ }) => /* @__PURE__ */ b(Je, { ...i }), Jc = ({
5165
5165
  id: e,
5166
5166
  sessionId: t,
5167
5167
  develop: n,
5168
5168
  ...i
5169
5169
  }) => {
5170
- const r = Ge.Timer;
5170
+ const r = Je.Timer;
5171
5171
  if (r)
5172
5172
  return /* @__PURE__ */ b(r, { type: "countdown", ...i });
5173
- const { Countdown: a } = Ge;
5173
+ const { Countdown: a } = Je;
5174
5174
  return /* @__PURE__ */ b(a, { ...i });
5175
5175
  }, ro = {
5176
5176
  top: "top",
@@ -5384,7 +5384,7 @@ const Zc = ({
5384
5384
  children: i
5385
5385
  }
5386
5386
  );
5387
- return C ? /* @__PURE__ */ b(Rt, { theme: C, children: w }) : w;
5387
+ return C ? /* @__PURE__ */ b(Bt, { theme: C, children: w }) : w;
5388
5388
  }, lo = {
5389
5389
  0: "default",
5390
5390
  1: "success",
@@ -5441,8 +5441,8 @@ const Zc = ({
5441
5441
  return x && typeof x == "object" && Object.keys(x).forEach((M) => {
5442
5442
  !["content", "color"].includes(M) && x[M] !== void 0 && x[M] !== null && (k[M] = x[M]);
5443
5443
  }), k;
5444
- }, [g, x]), N = (x == null ? void 0 : x.color) ?? v, E = Ke(N) || T;
5445
- return /* @__PURE__ */ b(Ln, { ...O, color: E, children: D || i });
5444
+ }, [g, x]), N = (x == null ? void 0 : x.color) ?? v, E = Le(N) || T;
5445
+ return /* @__PURE__ */ b(zn, { ...O, color: E, children: D || i });
5446
5446
  }, ts = ({
5447
5447
  id: e,
5448
5448
  sessionId: t,
@@ -5479,7 +5479,7 @@ const Zc = ({
5479
5479
  s && f(s, m ?? "", { current: O, pageSize: N, total: w }), o && t && g(t, I(o, { current: O, pageSize: N }));
5480
5480
  }, [l, s, m, f, w, o, t, g]);
5481
5481
  return /* @__PURE__ */ b(
5482
- zn,
5482
+ Vn,
5483
5483
  {
5484
5484
  ...p,
5485
5485
  current: x,
@@ -5500,9 +5500,9 @@ const Zc = ({
5500
5500
  items: i,
5501
5501
  children: r,
5502
5502
  ...a
5503
- }) => /* @__PURE__ */ b(Mr, { ...a, items: i, children: r }), _e = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), uo = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
5504
- const a = Mt(null), o = Mt(null), [c, l] = mt(0), [d, v] = mt(!1), [h, p] = mt(0), [g, f] = mt(0), s = e === "horizontal";
5505
- Dt(() => {
5503
+ }) => /* @__PURE__ */ b(Mr, { ...a, items: i, children: r }), Ee = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), uo = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
5504
+ const a = Rt(null), o = Rt(null), [c, l] = ht(0), [d, v] = ht(!1), [h, p] = ht(0), [g, f] = ht(0), s = e === "horizontal";
5505
+ St(() => {
5506
5506
  const D = () => {
5507
5507
  if (!a.current || !o.current) return;
5508
5508
  const O = a.current, N = o.current;
@@ -5521,8 +5521,8 @@ const Zc = ({
5521
5521
  if (u) return;
5522
5522
  const D = s ? ((O = a.current) == null ? void 0 : O.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, T = s ? (((A = o.current) == null ? void 0 : A.scrollWidth) ?? 0) - (((E = a.current) == null ? void 0 : E.clientWidth) ?? 0) : (((k = o.current) == null ? void 0 : k.scrollHeight) ?? 0) - (((M = a.current) == null ? void 0 : M.clientHeight) ?? 0);
5523
5523
  l((B) => Math.min(T, B + D));
5524
- }, [s, u]), C = n || (s ? /* @__PURE__ */ b(Un, {}) : /* @__PURE__ */ b(ni, {})), w = i || (s ? /* @__PURE__ */ b(Yn, {}) : /* @__PURE__ */ b(Gn, {}));
5525
- return /* @__PURE__ */ ct(
5524
+ }, [s, u]), C = n || (s ? /* @__PURE__ */ b(Yn, {}) : /* @__PURE__ */ b(ni, {})), w = i || (s ? /* @__PURE__ */ b(Gn, {}) : /* @__PURE__ */ b(Jn, {}));
5525
+ return /* @__PURE__ */ st(
5526
5526
  "div",
5527
5527
  {
5528
5528
  style: {
@@ -5648,10 +5648,10 @@ const Zc = ({
5648
5648
  // 仅设计器/业务用,不传给 DOM,避免 React 警告
5649
5649
  ...P
5650
5650
  }) => {
5651
- const $ = _((X) => X.addCommand), z = _((X) => X.setDataSet), K = y(
5651
+ const $ = _((X) => X.addCommand), V = _((X) => X.setDataSet), K = y(
5652
5652
  () => rt(t, i),
5653
5653
  [t, i]
5654
- ), V = _(
5654
+ ), q = _(
5655
5655
  (X) => {
5656
5656
  if (K)
5657
5657
  return r ? X.getDataSet(K, r) : X.dataSets[K];
@@ -5662,7 +5662,7 @@ const Zc = ({
5662
5662
  // 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
5663
5663
  // 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
5664
5664
  // 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
5665
- ), R = y(() => ({}), []), L = V ?? R, Q = y(
5665
+ ), R = y(() => ({}), []), L = q ?? R, Q = y(
5666
5666
  () => (L == null ? void 0 : L.items) ?? (Array.isArray(L) ? L : void 0) ?? (Array.isArray(L == null ? void 0 : L.value) ? L.value : void 0),
5667
5667
  [L]
5668
5668
  ), G = y(() => n ? Q ?? g ?? [] : K ? Q ?? [] : g ?? [], [n, K, Q, g]), U = y(
@@ -5677,20 +5677,20 @@ const Zc = ({
5677
5677
  ), nt = _((X) => {
5678
5678
  if (!L.openKeys && it && T)
5679
5679
  return X.getDataSet(it, T);
5680
- }), gt = y(() => {
5681
- const X = (vt) => Array.isArray(vt) ? vt.map((Et) => {
5682
- const jt = { ...Et };
5683
- if (jt.icon && typeof jt.icon == "string") {
5684
- const Vt = Jt[jt.icon];
5685
- Vt && (jt.icon = /* @__PURE__ */ b(Vt, {}));
5680
+ }), pt = y(() => {
5681
+ const X = (vt) => Array.isArray(vt) ? vt.map((_t) => {
5682
+ const $t = { ..._t };
5683
+ if ($t.icon && typeof $t.icon == "string") {
5684
+ const Tt = Jt[$t.icon];
5685
+ Tt && ($t.icon = /* @__PURE__ */ b(Tt, {}));
5686
5686
  }
5687
- return jt.children && jt.children.length > 0 && (jt.children = X(jt.children)), jt;
5687
+ return $t.children && $t.children.length > 0 && ($t.children = X($t.children)), $t;
5688
5688
  }) : [];
5689
5689
  return X(G || []);
5690
- }, [G]), St = y(
5690
+ }, [G]), wt = y(
5691
5691
  () => U,
5692
5692
  [U]
5693
- ), yt = y(
5693
+ ), gt = y(
5694
5694
  () => at ?? nt,
5695
5695
  [at, nt]
5696
5696
  ), tt = j(
@@ -5705,7 +5705,7 @@ const Zc = ({
5705
5705
  );
5706
5706
  },
5707
5707
  [d, a, t, $]
5708
- ), ut = j(
5708
+ ), ft = j(
5709
5709
  (X) => {
5710
5710
  if (v) {
5711
5711
  v(X);
@@ -5714,9 +5714,9 @@ const Zc = ({
5714
5714
  if (K)
5715
5715
  if (r) {
5716
5716
  const vt = _.getState().getDataSet(K, r) || {};
5717
- z(K, r, { ...vt, selectedKeys: X.selectedKeys });
5717
+ V(K, r, { ...vt, selectedKeys: X.selectedKeys });
5718
5718
  } else
5719
- z(K, "selectedKeys", X.selectedKeys);
5719
+ V(K, "selectedKeys", X.selectedKeys);
5720
5720
  o && t && $(
5721
5721
  t,
5722
5722
  I(o, { selectedKeys: X.selectedKeys })
@@ -5726,7 +5726,7 @@ const Zc = ({
5726
5726
  v,
5727
5727
  K,
5728
5728
  r,
5729
- z,
5729
+ V,
5730
5730
  o,
5731
5731
  t,
5732
5732
  $
@@ -5740,10 +5740,10 @@ const Zc = ({
5740
5740
  if (K)
5741
5741
  if (r) {
5742
5742
  const vt = _.getState().getDataSet(K, r) || {};
5743
- z(K, r, { ...vt, openKeys: X });
5743
+ V(K, r, { ...vt, openKeys: X });
5744
5744
  } else
5745
- z(K, "openKeys", X);
5746
- else it && T && z(it, T, X);
5745
+ V(K, "openKeys", X);
5746
+ else it && T && V(it, T, X);
5747
5747
  c && t && $(
5748
5748
  t,
5749
5749
  I(c, { openKeys: X })
@@ -5755,7 +5755,7 @@ const Zc = ({
5755
5755
  r,
5756
5756
  it,
5757
5757
  T,
5758
- z,
5758
+ V,
5759
5759
  c,
5760
5760
  t,
5761
5761
  $
@@ -5775,15 +5775,15 @@ const Zc = ({
5775
5775
  );
5776
5776
  },
5777
5777
  [p, l, t, $]
5778
- ), kt = O === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, $t = y(() => {
5778
+ ), Ot = O === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, jt = y(() => {
5779
5779
  if (!x) return;
5780
5780
  const X = {};
5781
- return Object.entries(x).forEach(([vt, Et]) => {
5782
- Et !== "" && Et !== void 0 && Et !== null && (X[vt] = Et);
5781
+ return Object.entries(x).forEach(([vt, _t]) => {
5782
+ _t !== "" && _t !== void 0 && _t !== null && (X[vt] = _t);
5783
5783
  }), Object.keys(X).length > 0 ? X : void 0;
5784
5784
  }, [x]), J = n ? {
5785
5785
  motion: { motionName: "" }
5786
- } : {}, q = y(() => {
5786
+ } : {}, W = y(() => {
5787
5787
  if (typeof M == "string" && M) {
5788
5788
  const X = Jt[M];
5789
5789
  if (X) return /* @__PURE__ */ b(X, {});
@@ -5795,43 +5795,43 @@ const Zc = ({
5795
5795
  if (X) return /* @__PURE__ */ b(X, {});
5796
5796
  }
5797
5797
  return B;
5798
- }, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), st = Fr(), dt = e || st.replace(/:/g, "-"), Y = y(() => {
5799
- var jt;
5798
+ }, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), lt = Fr(), mt = e || lt.replace(/:/g, "-"), Y = y(() => {
5799
+ var $t;
5800
5800
  if (!u || typeof u == "function") return "";
5801
- const X = (jt = u.subMenu) == null ? void 0 : jt.root;
5801
+ const X = ($t = u.subMenu) == null ? void 0 : $t.root;
5802
5802
  if (!X) return "";
5803
- const vt = [], Et = `[data-and-menu-id="${dt}"]`;
5803
+ const vt = [], _t = `[data-and-menu-id="${mt}"]`;
5804
5804
  if (X.item && Object.keys(X.item).length > 0) {
5805
- const Vt = _e(X.item);
5806
- vt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title { ${Vt} }`);
5805
+ const Tt = Ee(X.item);
5806
+ vt.push(`${_t} .ant-menu-submenu > .ant-menu-submenu-title { ${Tt} }`);
5807
5807
  }
5808
5808
  if (X.itemIcon && Object.keys(X.itemIcon).length > 0) {
5809
- const Vt = _e(X.itemIcon);
5810
- vt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Vt} }`);
5809
+ const Tt = Ee(X.itemIcon);
5810
+ vt.push(`${_t} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Tt} }`);
5811
5811
  }
5812
5812
  if (X.itemContent && Object.keys(X.itemContent).length > 0) {
5813
- const Vt = _e(X.itemContent);
5814
- vt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Vt} }`);
5813
+ const Tt = Ee(X.itemContent);
5814
+ vt.push(`${_t} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Tt} }`);
5815
5815
  }
5816
5816
  if (X.selected && Object.keys(X.selected).length > 0) {
5817
- const Vt = _e(X.selected);
5818
- vt.push(`${Et} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Vt} }`);
5817
+ const Tt = Ee(X.selected);
5818
+ vt.push(`${_t} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Tt} }`);
5819
5819
  }
5820
5820
  return vt.join(`
5821
5821
  `);
5822
- }, [u, dt]), W = /* @__PURE__ */ b(
5822
+ }, [u, mt]), z = /* @__PURE__ */ b(
5823
5823
  $r,
5824
5824
  {
5825
5825
  ...P,
5826
- ...kt,
5826
+ ...Ot,
5827
5827
  ...J,
5828
5828
  mode: O,
5829
- items: gt,
5830
- selectedKeys: St,
5831
- openKeys: yt,
5829
+ items: pt,
5830
+ selectedKeys: wt,
5831
+ openKeys: gt,
5832
5832
  defaultOpenKeys: m,
5833
5833
  onClick: tt,
5834
- onSelect: ut,
5834
+ onSelect: ft,
5835
5835
  onOpenChange: ot,
5836
5836
  onDeselect: Ct,
5837
5837
  styles: u,
@@ -5840,25 +5840,25 @@ const Zc = ({
5840
5840
  overflowedIndicator: Z,
5841
5841
  disabledOverflow: E !== "default"
5842
5842
  }
5843
- ), ft = () => E === "pagination" ? /* @__PURE__ */ b(
5843
+ ), ct = () => E === "pagination" ? /* @__PURE__ */ b(
5844
5844
  uo,
5845
5845
  {
5846
5846
  mode: O || "horizontal",
5847
5847
  arrowStyle: k,
5848
- arrowIconPrev: q,
5848
+ arrowIconPrev: W,
5849
5849
  arrowIconNext: et,
5850
- children: W
5850
+ children: z
5851
5851
  }
5852
- ) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: W }) : W, pt = y(() => {
5852
+ ) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: z }) : z, dt = y(() => {
5853
5853
  const X = {};
5854
- return n && (X.motion = !1), $t && (X.components = { Menu: $t }), Object.keys(X).length > 0 ? X : void 0;
5855
- }, [n, $t]);
5854
+ return n && (X.motion = !1), jt && (X.components = { Menu: jt }), Object.keys(X).length > 0 ? X : void 0;
5855
+ }, [n, jt]);
5856
5856
  return (() => {
5857
- const X = ft(), vt = Y ? /* @__PURE__ */ ct("div", { "data-and-menu-id": dt, style: { display: "contents" }, children: [
5857
+ const X = ct(), vt = Y ? /* @__PURE__ */ st("div", { "data-and-menu-id": mt, style: { display: "contents" }, children: [
5858
5858
  /* @__PURE__ */ b("style", { children: Y }),
5859
5859
  X
5860
5860
  ] }) : X;
5861
- return pt ? /* @__PURE__ */ b(Rt, { theme: pt, children: vt }) : vt;
5861
+ return dt ? /* @__PURE__ */ b(Bt, { theme: dt, children: vt }) : vt;
5862
5862
  })();
5863
5863
  }, rs = ({
5864
5864
  id: e,
@@ -5894,7 +5894,7 @@ const Zc = ({
5894
5894
  return D && g in D ? D[g] : g;
5895
5895
  }, [g, D]);
5896
5896
  return /* @__PURE__ */ b(
5897
- Vn,
5897
+ qn,
5898
5898
  {
5899
5899
  ...m,
5900
5900
  count: C,
@@ -5945,7 +5945,7 @@ const Zc = ({
5945
5945
  return s && c in s ? s[c] : c;
5946
5946
  }, [c, s]);
5947
5947
  return /* @__PURE__ */ b(
5948
- Vn.Ribbon,
5948
+ qn.Ribbon,
5949
5949
  {
5950
5950
  ...d,
5951
5951
  text: g,
@@ -6022,13 +6022,13 @@ const Zc = ({
6022
6022
  itemRender: h,
6023
6023
  ...p
6024
6024
  }) => {
6025
- const g = Re(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = be(ie), S = _(($) => $.addCommand), x = y(
6025
+ const g = je(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = be(ie), S = _(($) => $.addCommand), x = y(
6026
6026
  () => rt(m, f),
6027
6027
  [m, f]
6028
6028
  ), C = _(($) => x && s ? $.getDataSet(x, s) : null), w = y(() => !m || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [m, e, u]), D = _(
6029
6029
  ($) => {
6030
- var z;
6031
- return w ? ((z = $.propsStore[`${m}_props`]) == null ? void 0 : z[w]) ?? null : null;
6030
+ var V;
6031
+ return w ? ((V = $.propsStore[`${m}_props`]) == null ? void 0 : V[w]) ?? null : null;
6032
6032
  }
6033
6033
  ), T = y(() => C && Array.isArray(C) ? C : mo(a), [C, a]), O = (D == null ? void 0 : D.columns) !== void 0 && (D == null ? void 0 : D.columns) !== null ? D.columns : o, N = y(() => ho(O), [O]), A = y(() => yo(c), [c]), E = y(() => {
6034
6034
  if (v) return v;
@@ -6051,7 +6051,7 @@ const Zc = ({
6051
6051
  if (h) return h;
6052
6052
  if (n)
6053
6053
  return ($) => {
6054
- var z;
6054
+ var V;
6055
6055
  return /* @__PURE__ */ b(
6056
6056
  "div",
6057
6057
  {
@@ -6066,14 +6066,14 @@ const Zc = ({
6066
6066
  color: "#1677ff",
6067
6067
  fontSize: 14
6068
6068
  },
6069
- children: ((z = $.data) == null ? void 0 : z.title) || `Item ${$.key}`
6069
+ children: ((V = $.data) == null ? void 0 : V.title) || `Item ${$.key}`
6070
6070
  }
6071
6071
  );
6072
6072
  };
6073
6073
  }, [h, n]), B = y(() => {
6074
6074
  if (M)
6075
- return !f || !s ? M : ($, z) => {
6076
- const K = typeof z == "number" ? z : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
6075
+ return !f || !s ? M : ($, V) => {
6076
+ const K = typeof V == "number" ? V : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
6077
6077
  return /* @__PURE__ */ b(
6078
6078
  ie.Provider,
6079
6079
  {
@@ -6131,7 +6131,7 @@ const Zc = ({
6131
6131
  r && r(w);
6132
6132
  }, [r]);
6133
6133
  return /* @__PURE__ */ b(
6134
- qn,
6134
+ Wn,
6135
6135
  {
6136
6136
  ...S,
6137
6137
  title: u,
@@ -6173,7 +6173,7 @@ const Zc = ({
6173
6173
  });
6174
6174
  }, [l, s, r, f, o, t, p]);
6175
6175
  return /* @__PURE__ */ b(
6176
- Bn,
6176
+ Kn,
6177
6177
  {
6178
6178
  ...h,
6179
6179
  open: u,
@@ -6222,7 +6222,7 @@ const Zc = ({
6222
6222
  develop: n,
6223
6223
  children: i,
6224
6224
  ...r
6225
- }) => /* @__PURE__ */ b(Kr, { ...r, children: i }), on = (e, t) => {
6225
+ }) => /* @__PURE__ */ b(Kr, { ...r, children: i }), cn = (e, t) => {
6226
6226
  if (e == null) return t;
6227
6227
  if (typeof e == "string")
6228
6228
  try {
@@ -6235,7 +6235,7 @@ const Zc = ({
6235
6235
  return e;
6236
6236
  }, go = (e) => e.replace(/-([a-z])/g, (t, n) => n.toUpperCase()), po = (e) => !e || typeof e != "object" || Array.isArray(e) ? e ?? {} : Object.fromEntries(
6237
6237
  Object.entries(e).map(([t, n]) => [go(t), n])
6238
- ), vo = (e) => on(e, []).map((n) => ({
6238
+ ), vo = (e) => cn(e, []).map((n) => ({
6239
6239
  key: n.key,
6240
6240
  tab: n.tab,
6241
6241
  disabled: n.disabled
@@ -6275,7 +6275,7 @@ const Zc = ({
6275
6275
  () => rt(t, i),
6276
6276
  [t, i]
6277
6277
  ), E = C === "default" ? "medium" : C, k = y(() => {
6278
- const U = on(s, {});
6278
+ const U = cn(s, {});
6279
6279
  return Object.fromEntries(
6280
6280
  Object.entries(U).map(([at, it]) => [
6281
6281
  at,
@@ -6296,31 +6296,31 @@ const Zc = ({
6296
6296
  return;
6297
6297
  }
6298
6298
  A && r && N(A, `${r}.activeTabKey`, U), g && t && T(t, I(g, { key: U }));
6299
- }, [f, A, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot: V, otherChildren: R, actionsFromChildren: L } = y(() => {
6299
+ }, [f, A, r, N, g, t, T]), { titleSlot: $, extraSlot: V, coverSlot: K, actionsSlot: q, otherChildren: R, actionsFromChildren: L } = y(() => {
6300
6300
  let U = null, at = null, it = null, nt = [];
6301
- const gt = [];
6302
- let St = !1;
6303
- return a && (U = a), o && (at = o), c && (it = c), d && (nt = d), Wt.Children.forEach(w, (yt) => {
6304
- if (!Wt.isValidElement(yt)) {
6305
- gt.push(yt);
6301
+ const pt = [];
6302
+ let wt = !1;
6303
+ return a && (U = a), o && (at = o), c && (it = c), d && (nt = d), Wt.Children.forEach(w, (gt) => {
6304
+ if (!Wt.isValidElement(gt)) {
6305
+ pt.push(gt);
6306
6306
  return;
6307
6307
  }
6308
- const tt = yt.props, ut = tt["data-slot-type"];
6309
- ut === "title" && !a ? U = yt : ut === "extra" && !o ? at = yt : ut === "cover" && !c ? it = yt : ut === "actions" && !d ? (nt = [yt], St = !0) : ut === "body" && tt.children ? gt.push(tt.children) : gt.push(yt);
6310
- }), { titleSlot: U, extraSlot: at, coverSlot: it, actionsSlot: nt, otherChildren: gt, actionsFromChildren: St };
6308
+ const tt = gt.props, ft = tt["data-slot-type"];
6309
+ ft === "title" && !a ? U = gt : ft === "extra" && !o ? at = gt : ft === "cover" && !c ? it = gt : ft === "actions" && !d ? (nt = [gt], wt = !0) : ft === "body" && tt.children ? pt.push(tt.children) : pt.push(gt);
6310
+ }), { titleSlot: U, extraSlot: at, coverSlot: it, actionsSlot: nt, otherChildren: pt, actionsFromChildren: wt };
6311
6311
  }, [w, a, o, c, d]), Q = y(() => {
6312
- const U = on(m, {});
6312
+ const U = cn(m, {});
6313
6313
  return L ? { actionsLiMargin: "0px", ...U } : U;
6314
6314
  }, [m, L]), G = /* @__PURE__ */ b(
6315
- Je,
6315
+ Qe,
6316
6316
  {
6317
6317
  ...D,
6318
6318
  size: E,
6319
6319
  title: $,
6320
- extra: z,
6320
+ extra: V,
6321
6321
  cover: K,
6322
6322
  tabBarExtraContent: l,
6323
- actions: V.length > 0 ? V : void 0,
6323
+ actions: q.length > 0 ? q : void 0,
6324
6324
  tabList: M,
6325
6325
  activeTabKey: H,
6326
6326
  defaultActiveTabKey: p,
@@ -6329,7 +6329,7 @@ const Zc = ({
6329
6329
  children: R
6330
6330
  }
6331
6331
  );
6332
- return Q && Object.keys(Q).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Card: Q } }, children: G }) : G;
6332
+ return Q && Object.keys(Q).length > 0 ? /* @__PURE__ */ b(Bt, { theme: { components: { Card: Q } }, children: G }) : G;
6333
6333
  }, ds = ({
6334
6334
  id: e,
6335
6335
  sessionId: t,
@@ -6342,17 +6342,17 @@ const Zc = ({
6342
6342
  }) => {
6343
6343
  const l = r || i;
6344
6344
  return o && Object.keys(o).length > 0 ? /* @__PURE__ */ b(
6345
- Rt,
6345
+ Bt,
6346
6346
  {
6347
6347
  theme: {
6348
6348
  components: {
6349
6349
  Divider: o
6350
6350
  }
6351
6351
  },
6352
- children: /* @__PURE__ */ b(hn, { ...c, styles: a, children: l })
6352
+ children: /* @__PURE__ */ b(yn, { ...c, styles: a, children: l })
6353
6353
  }
6354
- ) : /* @__PURE__ */ b(hn, { ...c, styles: a, children: l });
6355
- }, _n = (e) => {
6354
+ ) : /* @__PURE__ */ b(yn, { ...c, styles: a, children: l });
6355
+ }, En = (e) => {
6356
6356
  if (!e) return [];
6357
6357
  if (typeof e == "string")
6358
6358
  try {
@@ -6361,12 +6361,12 @@ const Zc = ({
6361
6361
  return [];
6362
6362
  }
6363
6363
  return e;
6364
- }, rr = (e) => e.map((t) => t.divider ? { type: "divider", key: t.key } : {
6364
+ }, ir = (e) => e.map((t) => t.divider ? { type: "divider", key: t.key } : {
6365
6365
  key: t.key,
6366
6366
  label: t.label,
6367
6367
  disabled: t.disabled,
6368
6368
  danger: t.danger,
6369
- children: t.children ? rr(t.children) : void 0
6369
+ children: t.children ? ir(t.children) : void 0
6370
6370
  }), ms = ({
6371
6371
  id: e,
6372
6372
  sessionId: t,
@@ -6397,7 +6397,7 @@ const Zc = ({
6397
6397
  const A = C;
6398
6398
  if (Array.isArray(A == null ? void 0 : A.items)) return A.items;
6399
6399
  if (Array.isArray(A == null ? void 0 : A.value)) return A.value;
6400
- }, [C]), D = y(() => n ? w ?? _n(o) ?? [] : x ? w ?? [] : _n(o) ?? [], [n, x, w, o]), T = j(
6400
+ }, [C]), D = y(() => n ? w ?? En(o) ?? [] : x ? w ?? [] : En(o) ?? [], [n, x, w, o]), T = j(
6401
6401
  (A, E) => {
6402
6402
  if (h) {
6403
6403
  h(A, E);
@@ -6426,7 +6426,7 @@ const Zc = ({
6426
6426
  ]
6427
6427
  ), O = y(
6428
6428
  () => ({
6429
- items: rr(D),
6429
+ items: ir(D),
6430
6430
  onClick: (A) => {
6431
6431
  if (c && t) {
6432
6432
  const { actionName: E, arg: k } = ee(c, A.key, {
@@ -6481,7 +6481,7 @@ const Zc = ({
6481
6481
  r,
6482
6482
  S
6483
6483
  ]
6484
- ), N = y(() => /* @__PURE__ */ ct(
6484
+ ), N = y(() => /* @__PURE__ */ st(
6485
6485
  "div",
6486
6486
  {
6487
6487
  className: "and-dropdown-trigger-slot",
@@ -6489,9 +6489,9 @@ const Zc = ({
6489
6489
  children: [
6490
6490
  p,
6491
6491
  n && !p && !g && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
6492
- !p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */ ct(Yt, { children: [
6492
+ !p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */ st(Yt, { children: [
6493
6493
  a,
6494
- /* @__PURE__ */ b(Gn, {})
6494
+ /* @__PURE__ */ b(Jn, {})
6495
6495
  ] }) })
6496
6496
  ]
6497
6497
  }
@@ -6515,7 +6515,7 @@ const Zc = ({
6515
6515
  develop: n,
6516
6516
  children: i,
6517
6517
  ...r
6518
- }) => /* @__PURE__ */ b(Kn, { ...r, children: i }), ps = ({
6518
+ }) => /* @__PURE__ */ b(Ln, { ...r, children: i }), ps = ({
6519
6519
  id: e,
6520
6520
  sessionId: t,
6521
6521
  develop: n,
@@ -6541,7 +6541,7 @@ const Zc = ({
6541
6541
  const t = Jt[e];
6542
6542
  if (t)
6543
6543
  return Wt.createElement(t);
6544
- }, Ye = (e, t) => {
6544
+ }, Ge = (e, t) => {
6545
6545
  if (e == null) return t;
6546
6546
  if (typeof e == "string")
6547
6547
  try {
@@ -6572,12 +6572,12 @@ const Zc = ({
6572
6572
  ...m
6573
6573
  }) => {
6574
6574
  const u = _((k) => k.addCommand), S = y(
6575
- () => Ye(i, []),
6575
+ () => Ge(i, []),
6576
6576
  [i]
6577
- ), x = y(() => Ye(g, {}), [g]), C = y(() => me(o), [o]), w = y(() => {
6577
+ ), x = y(() => Ge(g, {}), [g]), C = y(() => me(o), [o]), w = y(() => {
6578
6578
  if (c) {
6579
6579
  if (typeof c == "string") {
6580
- const k = Ye(c, null);
6580
+ const k = Ge(c, null);
6581
6581
  return k && typeof k == "object" ? {
6582
6582
  start: me(k.start),
6583
6583
  end: me(k.end)
@@ -6609,7 +6609,7 @@ const Zc = ({
6609
6609
  ), O = () => f && Wt.Children.count(f) > 0 ? Wt.Children.map(f, (k, M) => {
6610
6610
  const B = S[M] || {};
6611
6611
  return /* @__PURE__ */ b(
6612
- qe.Panel,
6612
+ We.Panel,
6613
6613
  {
6614
6614
  defaultSize: B.defaultSize,
6615
6615
  min: B.min,
@@ -6621,14 +6621,14 @@ const Zc = ({
6621
6621
  B.key || M
6622
6622
  );
6623
6623
  }) : S.map((k, M) => /* @__PURE__ */ b(
6624
- qe.Panel,
6624
+ We.Panel,
6625
6625
  {
6626
6626
  defaultSize: k.defaultSize || void 0,
6627
6627
  min: k.min || void 0,
6628
6628
  max: k.max || void 0,
6629
6629
  collapsible: k.collapsible,
6630
6630
  resizable: k.resizable !== !1,
6631
- children: s ? s(k.key, M) : /* @__PURE__ */ ct(
6631
+ children: s ? s(k.key, M) : /* @__PURE__ */ st(
6632
6632
  "div",
6633
6633
  {
6634
6634
  style: {
@@ -6648,7 +6648,7 @@ const Zc = ({
6648
6648
  },
6649
6649
  k.key || M
6650
6650
  )), { layout: N, ...A } = m, E = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
6651
- qe,
6651
+ We,
6652
6652
  {
6653
6653
  ...A,
6654
6654
  orientation: r,
@@ -6663,7 +6663,7 @@ const Zc = ({
6663
6663
  },
6664
6664
  r
6665
6665
  ) });
6666
- return x && Object.keys(x).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Splitter: x } }, children: E }) : E;
6666
+ return x && Object.keys(x).length > 0 ? /* @__PURE__ */ b(Bt, { theme: { components: { Splitter: x } }, children: E }) : E;
6667
6667
  }, bs = ({
6668
6668
  children: e,
6669
6669
  className: t,
@@ -6709,7 +6709,7 @@ const Zc = ({
6709
6709
  const x = u === "default" ? "middle" : u, C = _((B) => B.getDataSet), w = y(
6710
6710
  () => rt(t, i),
6711
6711
  [t, i]
6712
- ), [D, T] = mt(1), [O, N] = mt(p), A = y(() => {
6712
+ ), [D, T] = ht(1), [O, N] = ht(p), A = y(() => {
6713
6713
  if (w && r) {
6714
6714
  const B = C(w, r);
6715
6715
  return Array.isArray(B) ? B : [];
@@ -6728,10 +6728,10 @@ const Zc = ({
6728
6728
  const M = (B, H) => {
6729
6729
  T(B), H && N(H);
6730
6730
  };
6731
- return /* @__PURE__ */ ct("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
6731
+ return /* @__PURE__ */ st("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
6732
6732
  /* @__PURE__ */ b("div", { style: { flex: 1 }, children: k.map((B, H) => /* @__PURE__ */ b(Wt.Fragment, { children: a ? a(B, H) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || H)) }),
6733
6733
  !h && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
6734
- zn,
6734
+ Vn,
6735
6735
  {
6736
6736
  current: D,
6737
6737
  pageSize: O,
@@ -6778,7 +6778,7 @@ const Zc = ({
6778
6778
  transform: l ? `rotate(${l}deg)` : void 0,
6779
6779
  ...f
6780
6780
  };
6781
- return /* @__PURE__ */ ct(le, { children: [
6781
+ return /* @__PURE__ */ st(le, { children: [
6782
6782
  /* @__PURE__ */ b("style", { children: So }),
6783
6783
  c && /* @__PURE__ */ b("style", { children: bo }),
6784
6784
  /* @__PURE__ */ b(
@@ -6835,34 +6835,34 @@ const Zc = ({
6835
6835
  c && t && d(t, I(c, s));
6836
6836
  };
6837
6837
  return /* @__PURE__ */ b("div", { style: { display: "grid", gridTemplateColumns: `repeat(${o}, 1fr)`, gap: 16, ...l }, children: g.map((s) => /* @__PURE__ */ b(
6838
- Je,
6838
+ Qe,
6839
6839
  {
6840
6840
  hoverable: !0,
6841
6841
  cover: s.image && /* @__PURE__ */ b("img", { alt: s.name, src: s.image, style: { height: 200, objectFit: "cover" } }),
6842
6842
  onClick: () => f(s),
6843
6843
  children: /* @__PURE__ */ b(
6844
- Je.Meta,
6844
+ Qe.Meta,
6845
6845
  {
6846
6846
  title: s.name,
6847
- description: /* @__PURE__ */ ct(Yt, { direction: "vertical", size: 4, children: [
6848
- s.price !== void 0 && /* @__PURE__ */ ct("div", { children: [
6849
- /* @__PURE__ */ ct("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
6847
+ description: /* @__PURE__ */ st(Yt, { direction: "vertical", size: 4, children: [
6848
+ s.price !== void 0 && /* @__PURE__ */ st("div", { children: [
6849
+ /* @__PURE__ */ st("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
6850
6850
  "¥",
6851
6851
  s.price
6852
6852
  ] }),
6853
- s.originalPrice && /* @__PURE__ */ ct("span", { style: { marginLeft: 8, color: "#999", textDecoration: "line-through" }, children: [
6853
+ s.originalPrice && /* @__PURE__ */ st("span", { style: { marginLeft: 8, color: "#999", textDecoration: "line-through" }, children: [
6854
6854
  "¥",
6855
6855
  s.originalPrice
6856
6856
  ] })
6857
6857
  ] }),
6858
- s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Yt, { size: 4, wrap: !0, children: s.tags.map((m, u) => /* @__PURE__ */ b(Ln, { color: "blue", children: m }, u)) })
6858
+ s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Yt, { size: 4, wrap: !0, children: s.tags.map((m, u) => /* @__PURE__ */ b(zn, { color: "blue", children: m }, u)) })
6859
6859
  ] })
6860
6860
  }
6861
6861
  )
6862
6862
  },
6863
6863
  s.id
6864
6864
  )) });
6865
- }, En = ({ id: e, icon: t, title: n, description: i, style: r }) => /* @__PURE__ */ ct(
6865
+ }, Mn = ({ id: e, icon: t, title: n, description: i, style: r }) => /* @__PURE__ */ st(
6866
6866
  "div",
6867
6867
  {
6868
6868
  id: e,
@@ -6947,7 +6947,7 @@ const Zc = ({
6947
6947
  }), [s.props, t, i, h]), x = d || "请配置组件";
6948
6948
  if (a) {
6949
6949
  const N = v === "row";
6950
- return /* @__PURE__ */ ct(
6950
+ return /* @__PURE__ */ st(
6951
6951
  "div",
6952
6952
  {
6953
6953
  id: c,
@@ -6978,7 +6978,7 @@ const Zc = ({
6978
6978
  const C = Gt(), w = l || C.componentResolver;
6979
6979
  if (!w)
6980
6980
  return /* @__PURE__ */ b(
6981
- En,
6981
+ Mn,
6982
6982
  {
6983
6983
  id: c,
6984
6984
  title: x,
@@ -6987,14 +6987,14 @@ const Zc = ({
6987
6987
  }
6988
6988
  );
6989
6989
  const D = u ? w(u) : null;
6990
- return D ? /* @__PURE__ */ b(Zr, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Wn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...o }, children: m && g !== null ? /* @__PURE__ */ b(
6990
+ return D ? /* @__PURE__ */ b(Zr, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Hn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...o }, children: m && g !== null ? /* @__PURE__ */ b(
6991
6991
  ie.Provider,
6992
6992
  {
6993
6993
  value: { dataSet: m, index: g, sessionId: i },
6994
6994
  children: /* @__PURE__ */ b(D, { ...S })
6995
6995
  }
6996
6996
  ) : /* @__PURE__ */ b(D, { ...S }) }) }) : /* @__PURE__ */ b(
6997
- En,
6997
+ Mn,
6998
6998
  {
6999
6999
  id: c,
7000
7000
  title: x,
@@ -7057,7 +7057,7 @@ const Zc = ({
7057
7057
  }
7058
7058
  );
7059
7059
  return h && Object.keys(h).length > 0 ? /* @__PURE__ */ b(
7060
- Rt,
7060
+ Bt,
7061
7061
  {
7062
7062
  theme: {
7063
7063
  algorithm: Zt.defaultAlgorithm,
@@ -7067,14 +7067,14 @@ const Zc = ({
7067
7067
  }
7068
7068
  ) : s;
7069
7069
  };
7070
- let cn = !1;
7070
+ let sn = !1;
7071
7071
  function Cs(e) {
7072
- typeof window > "u" || (ye.GlobalWorkerOptions.workerSrc = e, cn = !0);
7072
+ typeof window > "u" || (ye.GlobalWorkerOptions.workerSrc = e, sn = !0);
7073
7073
  }
7074
7074
  function wo(e) {
7075
- typeof window > "u" || cn && ye.GlobalWorkerOptions.workerSrc || (ye.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${ye.version}/build/pdf.worker.min.mjs`, cn = !0);
7075
+ typeof window > "u" || sn && ye.GlobalWorkerOptions.workerSrc || (ye.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${ye.version}/build/pdf.worker.min.mjs`, sn = !0);
7076
7076
  }
7077
- const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7077
+ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7078
7078
  id: e,
7079
7079
  sessionId: t,
7080
7080
  develop: n,
@@ -7090,7 +7090,7 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7090
7090
  className: p,
7091
7091
  style: g
7092
7092
  }) => {
7093
- Dt(() => {
7093
+ St(() => {
7094
7094
  wo();
7095
7095
  }, []);
7096
7096
  const f = _((Y) => Y.setDataSet), s = y(
@@ -7098,19 +7098,19 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7098
7098
  [t, i]
7099
7099
  ), m = _((Y) => {
7100
7100
  if (!s || !r) return;
7101
- const W = Y.getDataSet(s, r);
7102
- if (W != null && W !== "") return String(W);
7101
+ const z = Y.getDataSet(s, r);
7102
+ if (z != null && z !== "") return String(z);
7103
7103
  }), u = _(
7104
7104
  (Y) => {
7105
- var W;
7106
- return t && e ? ((W = Y.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
7105
+ var z;
7106
+ return t && e ? ((z = Y.propsStore[`${t}_props`]) == null ? void 0 : z[e]) ?? null : null;
7107
7107
  }
7108
7108
  ), S = y(() => {
7109
7109
  let Y;
7110
7110
  if (m !== void 0) Y = m;
7111
7111
  else if (u && typeof u == "object") {
7112
- const W = u.filePath;
7113
- W != null && W !== "" && (Y = String(W));
7112
+ const z = u.filePath;
7113
+ z != null && z !== "" && (Y = String(z));
7114
7114
  }
7115
7115
  return Y === void 0 && (Y = a), Y;
7116
7116
  }, [m, u, a]), x = y(() => {
@@ -7120,9 +7120,9 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7120
7120
  return Y.trim();
7121
7121
  }
7122
7122
  return d;
7123
- }, [u, d]), [C, w] = mt(0), [D, T] = mt(
7123
+ }, [u, d]), [C, w] = ht(0), [D, T] = ht(
7124
7124
  () => Math.max(1, o || 1)
7125
- ), [O, N] = mt(null), [A, E] = mt(!!S), [k, M] = mt("all"), [B, H] = mt("width"), [P, $] = mt(1), z = Mt(null), K = Mt(null), V = Mt({}), [R, L] = mt(600), [Q, G] = mt(800), U = Mt(0), at = y(
7125
+ ), [O, N] = ht(null), [A, E] = ht(!!S), [k, M] = ht("all"), [B, H] = ht("width"), [P, $] = ht(1), V = Rt(null), K = Rt(null), q = Rt({}), [R, L] = ht(600), [Q, G] = ht(800), U = Rt(0), at = y(
7126
7126
  () => ({
7127
7127
  cMapUrl: `https://unpkg.com/pdfjs-dist@${ye.version}/cmaps/`,
7128
7128
  cMapPacked: !0
@@ -7132,68 +7132,75 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7132
7132
  if (!(!s || !it))
7133
7133
  return Y.getDataSet(s, `${it}.targetPage`);
7134
7134
  });
7135
- Dt(() => {
7136
- const Y = K.current;
7135
+ St(() => {
7136
+ const Y = V.current;
7137
7137
  if (!Y) return;
7138
- const W = new ResizeObserver(() => {
7139
- const zt = Y.clientWidth, X = Y.clientHeight;
7140
- zt > 0 && L(zt), X > 0 && G(X);
7138
+ let z = null, ct = 0, dt = 0;
7139
+ const Lt = () => {
7140
+ z = null, ct > 0 && L((Tt) => Math.abs(Tt - ct) > 1 ? ct : Tt), dt > 0 && G((Tt) => Math.abs(Tt - dt) > 1 ? dt : Tt);
7141
+ }, X = () => {
7142
+ z == null && (z = window.requestAnimationFrame(Lt));
7143
+ }, vt = new ResizeObserver(() => {
7144
+ const Tt = Math.round(Y.clientWidth), xe = Math.round(Y.clientHeight);
7145
+ Tt > 0 && (ct = Tt), xe > 0 && (dt = xe), (ct > 0 || dt > 0) && X();
7141
7146
  });
7142
- W.observe(Y);
7143
- const ft = Y.clientWidth, pt = Y.clientHeight;
7144
- return ft > 0 && L(ft), pt > 0 && G(pt), () => W.disconnect();
7147
+ vt.observe(Y);
7148
+ const _t = Y.clientWidth, $t = Y.clientHeight;
7149
+ return _t > 0 && L(_t), $t > 0 && G($t), () => {
7150
+ vt.disconnect(), z != null && window.cancelAnimationFrame(z);
7151
+ };
7145
7152
  }, [S]);
7146
- const gt = y(() => Math.max(240, R - 16), [R]), St = y(
7153
+ const pt = y(() => Math.max(240, R - 16), [R]), wt = y(
7147
7154
  () => Math.max(320, Q - 16),
7148
7155
  [Q]
7149
- ), yt = y(
7150
- () => Math.max(120, gt * P),
7151
- [gt, P]
7156
+ ), gt = y(
7157
+ () => Math.max(120, pt * P),
7158
+ [pt, P]
7152
7159
  ), tt = y(
7153
- () => Math.max(180, St * P),
7154
- [St, P]
7155
- ), ut = y(() => k === "all" ? Array.from({ length: C }, (Y, W) => W + 1) : [D], [k, C, D]), ot = j(
7156
- (Y, W) => {
7157
- !s || !it || (f(s, `${it}.currentPage`, Y), W > 0 && f(s, `${it}.totalPages`, W));
7160
+ () => Math.max(180, wt * P),
7161
+ [wt, P]
7162
+ ), ft = y(() => k === "all" ? Array.from({ length: C }, (Y, z) => z + 1) : [D], [k, C, D]), ot = j(
7163
+ (Y, z) => {
7164
+ !s || !it || (f(s, `${it}.currentPage`, Y), z > 0 && f(s, `${it}.totalPages`, z));
7158
7165
  },
7159
7166
  [s, it, f]
7160
7167
  );
7161
- Dt(() => {
7168
+ St(() => {
7162
7169
  C > 0 && ot(D, C);
7163
7170
  }, [D, C, ot]);
7164
7171
  const Ct = j(
7165
- (Y, W = "auto") => {
7166
- const ft = C > 0 ? Math.max(1, Math.min(Math.floor(Y), C)) : Math.max(1, Math.floor(Y));
7167
- if (T(ft), k === "all") {
7168
- const pt = V.current[ft];
7169
- pt && pt.scrollIntoView({ block: "start", behavior: W });
7172
+ (Y, z = "auto") => {
7173
+ const ct = C > 0 ? Math.max(1, Math.min(Math.floor(Y), C)) : Math.max(1, Math.floor(Y));
7174
+ if (T(ct), k === "all") {
7175
+ const dt = q.current[ct];
7176
+ dt && dt.scrollIntoView({ block: "start", behavior: z });
7170
7177
  }
7171
7178
  },
7172
7179
  [C, k]
7173
7180
  );
7174
- Dt(() => {
7181
+ St(() => {
7175
7182
  const Y = nt;
7176
7183
  typeof Y != "number" || !Number.isFinite(Y) || (Ct(Y, "auto"), s && it && f(s, `${it}.targetPage`, void 0));
7177
- }, [nt, Ct, s, it, f]), Dt(() => {
7184
+ }, [nt, Ct, s, it, f]), St(() => {
7178
7185
  T((Y) => Math.max(1, o || Y));
7179
7186
  }, [o, S]);
7180
- const kt = j(
7187
+ const Ot = j(
7181
7188
  ({ numPages: Y }) => {
7182
- w(Y), N(null), E(!1), T((W) => Math.min(Math.max(1, W), Y || 1));
7189
+ w(Y), N(null), E(!1), T((z) => Math.min(Math.max(1, z), Y || 1));
7183
7190
  },
7184
7191
  []
7185
- ), $t = j((Y) => {
7192
+ ), jt = j((Y) => {
7186
7193
  N(Y), E(!1);
7187
7194
  }, []);
7188
- Dt(() => {
7189
- E(!!S), N(null), $(1), V.current = {};
7195
+ St(() => {
7196
+ E(!!S), N(null), $(1), q.current = {};
7190
7197
  }, [S]);
7191
7198
  const J = j((Y) => {
7192
- $((W) => {
7193
- const ft = Number((W + Y).toFixed(2));
7194
- return Math.max(Do, Math.min(xo, ft));
7199
+ $((z) => {
7200
+ const ct = Number((z + Y).toFixed(2));
7201
+ return Math.max(Do, Math.min(xo, ct));
7195
7202
  });
7196
- }, []), q = j(() => {
7203
+ }, []), W = j(() => {
7197
7204
  if (!S) return;
7198
7205
  const Y = window.open(S, "_blank", "noopener,noreferrer");
7199
7206
  Y && (Y.onload = () => {
@@ -7207,32 +7214,45 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7207
7214
  const Y = document.createElement("a");
7208
7215
  Y.href = S, Y.download = "", Y.rel = "noopener noreferrer", Y.target = "_blank", document.body.appendChild(Y), Y.click(), Y.remove();
7209
7216
  }, [S]), Z = j(() => {
7210
- var W;
7211
- const Y = z.current;
7212
- Y && ((W = Y.requestFullscreen) == null || W.call(Y));
7213
- }, []), st = j(() => {
7217
+ var z;
7218
+ const Y = V.current;
7219
+ Y && ((z = Y.requestFullscreen) == null || z.call(Y));
7220
+ }, []), lt = j(() => {
7214
7221
  document.fullscreenElement && document.exitFullscreen();
7215
- }, []), dt = j(() => {
7222
+ }, []);
7223
+ St(() => {
7224
+ const Y = () => {
7225
+ if (!t || !e) return;
7226
+ const z = _.getState().getProps(t, e);
7227
+ !z || typeof z != "object" || Array.isArray(z) || z.pdfCommand == null && z.pdfCommandArg == null || _.getState().setProps(t, e, {
7228
+ ...z,
7229
+ pdfCommand: void 0,
7230
+ pdfCommandArg: void 0
7231
+ });
7232
+ };
7233
+ return document.addEventListener("fullscreenchange", Y), () => document.removeEventListener("fullscreenchange", Y);
7234
+ }, [t, e]);
7235
+ const mt = j(() => {
7216
7236
  if (k !== "all" || C <= 0) return;
7217
7237
  const Y = K.current;
7218
7238
  if (!Y) return;
7219
- const W = Y.scrollTop + Y.clientHeight * 0.35;
7220
- let ft = D, pt = Number.POSITIVE_INFINITY;
7221
- for (let zt = 1; zt <= C; zt++) {
7222
- const X = V.current[zt];
7239
+ const z = Y.scrollTop + Y.clientHeight * 0.35;
7240
+ let ct = D, dt = Number.POSITIVE_INFINITY;
7241
+ for (let Lt = 1; Lt <= C; Lt++) {
7242
+ const X = q.current[Lt];
7223
7243
  if (!X) continue;
7224
- const vt = Math.abs(X.offsetTop - W);
7225
- vt < pt && (pt = vt, ft = zt);
7244
+ const vt = Math.abs(X.offsetTop - z);
7245
+ vt < dt && (dt = vt, ct = Lt);
7226
7246
  }
7227
- ft !== D && T(ft);
7247
+ ct !== D && T(ct);
7228
7248
  }, [k, C, D]);
7229
- return Dt(() => {
7249
+ return St(() => {
7230
7250
  if (!u || typeof u != "object") return;
7231
- const Y = u._pdfCmdNonce, W = u.pdfCommand, ft = u.pdfCommandArg;
7232
- if (!(Y == null || Y === U.current || !W))
7233
- switch (U.current = Y, W) {
7251
+ const Y = u._pdfCmdNonce, z = u.pdfCommand, ct = u.pdfCommandArg;
7252
+ if (!(Y == null || Y === U.current || !z)) {
7253
+ switch (U.current = Y, z) {
7234
7254
  case "print":
7235
- q();
7255
+ W();
7236
7256
  break;
7237
7257
  case "download":
7238
7258
  et();
@@ -7241,10 +7261,10 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7241
7261
  Z();
7242
7262
  break;
7243
7263
  case "exitFullscreen":
7244
- st();
7264
+ lt();
7245
7265
  break;
7246
7266
  case "goToPage":
7247
- typeof ft == "number" && Ct(ft, "smooth");
7267
+ typeof ct == "number" && Ct(ct, "smooth");
7248
7268
  break;
7249
7269
  case "fitWidth":
7250
7270
  H("width"), $(1);
@@ -7253,10 +7273,10 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7253
7273
  H("height"), $(1);
7254
7274
  break;
7255
7275
  case "zoomIn":
7256
- J(Mn);
7276
+ J($n);
7257
7277
  break;
7258
7278
  case "zoomOut":
7259
- J(-Mn);
7279
+ J(-$n);
7260
7280
  break;
7261
7281
  case "previewSingle":
7262
7282
  M("single");
@@ -7265,18 +7285,29 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7265
7285
  M("all");
7266
7286
  break;
7267
7287
  }
7288
+ if (t && e) {
7289
+ const dt = _.getState().getProps(t, e), Lt = dt && typeof dt == "object" && !Array.isArray(dt) ? dt : {};
7290
+ _.getState().setProps(t, e, {
7291
+ ...Lt,
7292
+ pdfCommand: void 0,
7293
+ pdfCommandArg: void 0
7294
+ });
7295
+ }
7296
+ }
7268
7297
  }, [
7269
7298
  u,
7270
- q,
7299
+ t,
7300
+ e,
7301
+ W,
7271
7302
  et,
7272
7303
  Z,
7273
- st,
7304
+ lt,
7274
7305
  Ct,
7275
7306
  J
7276
7307
  ]), /* @__PURE__ */ b(
7277
7308
  "div",
7278
7309
  {
7279
- ref: z,
7310
+ ref: V,
7280
7311
  className: p,
7281
7312
  style: {
7282
7313
  display: "flex",
@@ -7296,29 +7327,29 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7296
7327
  backgroundColor: x,
7297
7328
  border: n ? "1px dashed #ccc" : void 0
7298
7329
  },
7299
- onScroll: dt,
7330
+ onScroll: mt,
7300
7331
  children: O ? /* @__PURE__ */ b(
7301
- qn,
7332
+ Wn,
7302
7333
  {
7303
7334
  type: "error",
7304
7335
  message: (l == null ? void 0 : l.trim()) || O.message,
7305
7336
  showIcon: !0
7306
7337
  }
7307
- ) : /* @__PURE__ */ ct(le, { children: [
7308
- A ? /* @__PURE__ */ b("div", { style: { padding: 48, textAlign: "center" }, children: /* @__PURE__ */ b(Wn, {}) }) : null,
7338
+ ) : /* @__PURE__ */ st(le, { children: [
7339
+ A ? /* @__PURE__ */ b("div", { style: { padding: 48, textAlign: "center" }, children: /* @__PURE__ */ b(Hn, {}) }) : null,
7309
7340
  /* @__PURE__ */ b(
7310
7341
  oi,
7311
7342
  {
7312
7343
  file: S,
7313
- onLoadSuccess: kt,
7314
- onLoadError: $t,
7344
+ onLoadSuccess: Ot,
7345
+ onLoadError: jt,
7315
7346
  loading: null,
7316
7347
  options: at,
7317
- children: ut.map((Y) => /* @__PURE__ */ b(
7348
+ children: ft.map((Y) => /* @__PURE__ */ b(
7318
7349
  "div",
7319
7350
  {
7320
- ref: (W) => {
7321
- V.current[Y] = W;
7351
+ ref: (z) => {
7352
+ q.current[Y] = z;
7322
7353
  },
7323
7354
  style: {
7324
7355
  display: "flex",
@@ -7330,7 +7361,7 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7330
7361
  ci,
7331
7362
  {
7332
7363
  pageNumber: Y,
7333
- width: B === "width" ? yt : void 0,
7364
+ width: B === "width" ? gt : void 0,
7334
7365
  height: B === "height" ? tt : void 0,
7335
7366
  renderTextLayer: !1,
7336
7367
  renderAnnotationLayer: !1
@@ -7420,29 +7451,29 @@ function It(e, t) {
7420
7451
  // 事件配置
7421
7452
  events: $,
7422
7453
  // 其余配置直接透传
7423
- ...z
7424
- } = o, K = Mt(null), V = _((J) => J.getDataSet), R = _((J) => J.addCommand), L = y(() => {
7454
+ ...V
7455
+ } = o, K = Rt(null), q = _((J) => J.getDataSet), R = _((J) => J.addCommand), L = y(() => {
7425
7456
  if (p && g) {
7426
- const q = V(p, g);
7427
- if (q !== void 0) return q;
7457
+ const W = q(p, g);
7458
+ if (W !== void 0) return W;
7428
7459
  }
7429
7460
  const J = At(f);
7430
7461
  return J !== void 0 ? J : d ? r : [];
7431
- }, [f, p, g, V, d]), Q = (J) => {
7432
- var q;
7462
+ }, [f, p, g, q, d]), Q = (J) => {
7463
+ var W;
7433
7464
  if (K.current = J, !d && l) {
7434
7465
  const et = At($);
7435
- et && typeof et == "object" && Object.entries(et).forEach(([Z, st]) => {
7436
- typeof st == "string" && J.on(Z, (dt) => {
7466
+ et && typeof et == "object" && Object.entries(et).forEach(([Z, lt]) => {
7467
+ typeof lt == "string" && J.on(Z, (mt) => {
7437
7468
  R(l, {
7438
- actionName: st,
7439
- arg: dt,
7469
+ actionName: lt,
7470
+ arg: mt,
7440
7471
  timestamp: Date.now()
7441
7472
  });
7442
7473
  });
7443
7474
  });
7444
7475
  }
7445
- (q = z.onReady) == null || q.call(z, J);
7476
+ (W = V.onReady) == null || W.call(V, J);
7446
7477
  }, G = At(s) || {}, U = {
7447
7478
  data: L,
7448
7479
  // 优先使用 common 中的配置,没配置则使用默认值
@@ -7453,31 +7484,31 @@ function It(e, t) {
7453
7484
  // 设计器模式禁用动画
7454
7485
  animate: d ? !1 : At(O),
7455
7486
  onReady: Q,
7456
- ...z
7487
+ ...V
7457
7488
  }, at = At(C);
7458
7489
  at !== void 0 && (U.title = at);
7459
7490
  const it = At(w);
7460
7491
  it !== void 0 && (U.legend = it);
7461
7492
  const nt = At(D);
7462
7493
  nt !== void 0 && (U.label = nt);
7463
- const gt = At(T);
7464
- gt !== void 0 && (U.tooltip = gt);
7465
- const St = At(N);
7466
- St !== void 0 && (U.scale = St);
7467
- const yt = At(A);
7468
- yt !== void 0 && (U.interaction = yt);
7494
+ const pt = At(T);
7495
+ pt !== void 0 && (U.tooltip = pt);
7496
+ const wt = At(N);
7497
+ wt !== void 0 && (U.scale = wt);
7498
+ const gt = At(A);
7499
+ gt !== void 0 && (U.interaction = gt);
7469
7500
  const tt = At(E);
7470
7501
  tt !== void 0 && (U.annotations = tt);
7471
- const ut = At(k);
7472
- ut !== void 0 && (U.axis = ut);
7502
+ const ft = At(k);
7503
+ ft !== void 0 && (U.axis = ft);
7473
7504
  const ot = At(M);
7474
7505
  ot !== void 0 && (U.scrollbar = ot);
7475
7506
  const Ct = At(B);
7476
7507
  Ct !== void 0 && (U.slider = Ct);
7477
- const kt = At(H);
7478
- kt !== void 0 && (U.theme = kt);
7479
- const $t = At(P);
7480
- return $t !== void 0 && (U.state = $t), /* @__PURE__ */ b(e, { ...U });
7508
+ const Ot = At(H);
7509
+ Ot !== void 0 && (U.theme = Ot);
7510
+ const jt = At(P);
7511
+ return jt !== void 0 && (U.state = jt), /* @__PURE__ */ b(e, { ...U });
7481
7512
  };
7482
7513
  return a.displayName = `withBaseChart(${n})`, a;
7483
7514
  }
@@ -7782,45 +7813,45 @@ export {
7782
7813
  wo as ensurePdfjsWorker,
7783
7814
  ae as findDictOptionByValue,
7784
7815
  Ca as formatByType,
7785
- rn as getAccessToken,
7816
+ an as getAccessToken,
7786
7817
  Gt as getCoreConfig,
7787
7818
  rt as getDataSetStoreKey,
7788
- ln as getDictOptions,
7789
- Ze as getNestedValue,
7819
+ un as getDictOptions,
7820
+ Xe as getNestedValue,
7790
7821
  ge as getValidateStoreKey,
7791
7822
  gi as initReactMount,
7792
- tr as isTokenName,
7823
+ er as isTokenName,
7793
7824
  Qt as mergeStoreProps,
7794
7825
  ec as mountReactComponent,
7795
7826
  ee as parseAction,
7796
7827
  Se as parseArrayNotation,
7797
7828
  bt as parseChangeAction,
7798
7829
  wi as parseClickAction,
7799
- Ne as parseNestedPath,
7830
+ ke as parseNestedPath,
7800
7831
  uc as parseQueryAction,
7801
- Fn as processValidationRules,
7832
+ Zn as processValidationRules,
7802
7833
  dc as req,
7803
7834
  re as request,
7804
7835
  yc as resolveTokenColorWithToken,
7805
7836
  fc as setCoreConfig,
7806
7837
  vi as setNestedValue,
7807
7838
  Cs as setPdfjsWorkerSrc,
7808
- Xn as upload,
7839
+ In as upload,
7809
7840
  ac as useAddCommand,
7810
7841
  _ as useAndStore,
7811
7842
  na as useApiService,
7812
7843
  sc as useCommandsStore,
7813
7844
  De as useDictOptions,
7814
- Bt as useFieldValidation,
7845
+ Kt as useFieldValidation,
7815
7846
  cc as useItemStore,
7816
7847
  oc as usePopCommand,
7817
- un as useRemoteOptions,
7818
- Ke as useResolveTokenColor,
7819
- Re as useResolvedDataSet,
7848
+ fn as useRemoteOptions,
7849
+ Le as useResolveTokenColor,
7850
+ je as useResolvedDataSet,
7820
7851
  rc as useStore,
7821
7852
  ic as useStoreByName,
7822
7853
  bi as useStoreData,
7823
- Zn as validateWithSchema,
7854
+ Xn as validateWithSchema,
7824
7855
  Si as watchCommands,
7825
7856
  It as withBaseChart
7826
7857
  };