@nuwatop/code-canvas-core 0.5.7 → 0.5.9

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 st, Fragment as ue } from "react/jsx-runtime";
1
+ import { jsx as b, jsxs as st, Fragment as fe } from "react/jsx-runtime";
2
2
  import { createRoot as mr } from "react-dom/client";
3
- import { theme as Xt, ConfigProvider as Kt, Button as It, 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 le, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as Te, Upload as Sr, Image as Zt, 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";
3
+ import { theme as Xt, ConfigProvider as Kt, Button as It, Input as Be, InputNumber as jn, Space as Yt, Select as Bn, Switch as hr, DatePicker as Kn, TimePicker as yr, Radio as He, Checkbox as ue, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as ke, Upload as Sr, Image as Zt, AutoComplete as wr, Form as Re, Transfer as Dr, Segmented as xr, Modal as Ln, Tooltip as Ar, Table as Cr, Flex as zn, Typography as fn, Tabs as Tr, Tree as Nr, Timeline as kr, Steps as Or, Statistic as Qe, Carousel as _r, Avatar as Er, Tag as Vn, Pagination as qn, Breadcrumb as Mr, Menu as $r, Calendar as Rr, Badge as Wn, Masonry as jr, Alert as Hn, Drawer as Br, Result as Kr, Card as Ze, Divider as gn, Dropdown as Lr, Row as zr, Col as Vr, QRCode as qr, Splitter as Pe, Spin as Pn, 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 At, createContext as Qr, useContext as Se, useState as mt, useRef as _t, useLayoutEffect as Pn, useId as Fr, Suspense as Zr } from "react";
10
- import * as Qt 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";
9
+ import Wt, { useMemo as y, useCallback as j, useEffect as At, createContext as Fr, useContext as De, useState as mt, useRef as _t, useLayoutEffect as Un, useId as Qr, Suspense as Zr } from "react";
10
+ import * as Ft from "@ant-design/icons";
11
+ import { CloseCircleOutlined as Xr, PlusOutlined as Yn, UploadOutlined as Ir, MenuOutlined as ti, MinusOutlined as ei, LeftOutlined as Gn, RightOutlined as Jn, UpOutlined as ni, DownOutlined as Fn, ApiOutlined as ri, InboxOutlined as ii } from "@ant-design/icons";
12
12
  import ai from "clsx";
13
13
  import Ut from "dayjs";
14
- import { pdfjs as ge, Document as oi, Page as ci } from "react-pdf";
14
+ import { pdfjs as ve, 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 Ne = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
19
- let Ze = !1;
18
+ const Oe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap();
19
+ let Ie = !1;
20
20
  const gi = () => {
21
- Ze || (Ze = !0);
21
+ Ie || (Ie = !0);
22
22
  }, pi = (e) => {
23
- let t = Fe.get(e);
24
- return t || (t = Pr(), Fe.set(e, t)), t;
23
+ let t = Xe.get(e);
24
+ return t || (t = Pr(), Xe.set(e, t)), t;
25
25
  }, tc = (e) => {
26
- e && Fe.delete(e);
26
+ e && Xe.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 = Ne.get(e);
37
+ const o = Oe.get(e);
38
38
  if (o) {
39
39
  if (a)
40
40
  Object.keys(e).forEach((w) => {
@@ -50,10 +50,10 @@ const gi = () => {
50
50
  } catch (w) {
51
51
  console.warn("[mountReactComponent] Unmount failed (benign if DOM was cleared):", w);
52
52
  }
53
- Ne.delete(e);
53
+ Oe.delete(e);
54
54
  }
55
55
  const c = mr(e);
56
- Ne.set(e, c);
56
+ Oe.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" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (w) => /* @__PURE__ */ b(Hr, { cache: g, container: h, hashPriority: "high", children: /* @__PURE__ */ b(
58
58
  Kt,
59
59
  {
@@ -77,7 +77,7 @@ const gi = () => {
77
77
  root: c,
78
78
  unmount: () => {
79
79
  try {
80
- c.unmount(), Ne.delete(e);
80
+ c.unmount(), Oe.delete(e);
81
81
  } catch (w) {
82
82
  console.error("[code-canvas-core] Failed to unmount component:", w);
83
83
  }
@@ -87,9 +87,9 @@ const gi = () => {
87
87
  }
88
88
  };
89
89
  }, nc = () => {
90
- console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Ze = !1;
90
+ console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Ie = !1;
91
91
  };
92
- function we(e) {
92
+ function xe(e) {
93
93
  const t = e.match(/^(.+)\[(\d+)\]$/);
94
94
  return t ? {
95
95
  baseName: t[1],
@@ -99,7 +99,7 @@ function we(e) {
99
99
  index: null
100
100
  };
101
101
  }
102
- function ke(e) {
102
+ function _e(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 ke(e) {
119
119
  } else i && t.push({ type: "property", key: i });
120
120
  return t;
121
121
  }
122
- function Xe(e, t) {
122
+ function tn(e, t) {
123
123
  if (t.length === 0) return e;
124
124
  let n = e;
125
125
  for (const i of t) {
@@ -150,23 +150,23 @@ function rt(e, t) {
150
150
  if (t)
151
151
  return e ? `${e}_${t}` : t;
152
152
  }
153
- function pe(e, t) {
153
+ function be(e, t) {
154
154
  if (t)
155
155
  return e ? `${e}_${t}_validate` : `${t}_validate`;
156
156
  }
157
- const gn = {
157
+ const pn = {
158
158
  dataSets: {},
159
159
  commandQueues: {},
160
160
  propsStore: {},
161
161
  validateStore: {}
162
162
  };
163
- function pn(e, t, n, i) {
164
- const { baseName: r, index: a } = we(t);
163
+ function vn(e, t, n, i) {
164
+ const { baseName: r, index: a } = xe(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 : Xe(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 : tn(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,30 +186,30 @@ function pn(e, t, n, i) {
186
186
  const _ = Yr()(
187
187
  Gr(
188
188
  Jr((e, t) => ({
189
- ...gn,
189
+ ...pn,
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 ? 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);
193
+ const c = i ? _e(i) : [], l = a && typeof r == "object" && r !== null && !Array.isArray(r);
194
+ vn(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 ? ke(i) : [];
199
- pn(a, n, o, r);
198
+ const o = i ? _e(i) : [];
199
+ vn(a, n, o, r);
200
200
  }),
201
201
  getDataSet: (n, i) => {
202
202
  if (!n) return;
203
- const r = t().dataSets, { baseName: a, index: o } = we(n), c = r[a];
203
+ const r = t().dataSets, { baseName: a, index: o } = xe(n), c = r[a];
204
204
  if (o !== null) {
205
205
  const l = c == null ? void 0 : c.value;
206
206
  if (!Array.isArray(l) || l[o] === void 0)
207
207
  return;
208
208
  const d = l[o];
209
- return i ? Xe(d, ke(i)) : d;
209
+ return i ? tn(d, _e(i)) : d;
210
210
  }
211
211
  if (c)
212
- return i ? Xe(c, ke(i)) : c;
212
+ return i ? tn(c, _e(i)) : c;
213
213
  },
214
214
  setDataSetBatch: (n, i) => e((r) => {
215
215
  r.dataSets[n] = {
@@ -249,20 +249,20 @@ const _ = Yr()(
249
249
  },
250
250
  // ============ 校验结果(key 使用 getValidateStoreKey,考虑 sessionId) ============
251
251
  setValidateResult: (n, i, r, a) => e((o) => {
252
- const c = pe(n, i);
252
+ const c = be(n, i);
253
253
  c && (o.validateStore[c] || (o.validateStore[c] = {}), o.validateStore[c][r] = a);
254
254
  }),
255
255
  getValidateResult: (n, i, r) => {
256
256
  var o;
257
- const a = pe(n, i);
257
+ const a = be(n, i);
258
258
  return a ? ((o = t().validateStore[a]) == null ? void 0 : o[r]) ?? "" : "";
259
259
  },
260
260
  getValidateResults: (n, i) => {
261
- const r = pe(n, i);
261
+ const r = be(n, i);
262
262
  return r ? t().validateStore[r] ?? {} : {};
263
263
  },
264
264
  // ============ 全局操作 ============
265
- reset: () => e(gn)
265
+ reset: () => e(pn)
266
266
  }))
267
267
  )
268
268
  );
@@ -298,7 +298,7 @@ function oc() {
298
298
  function bi(e, t) {
299
299
  const n = _((r) => {
300
300
  if (!e) return;
301
- const a = we(e).baseName;
301
+ const a = xe(e).baseName;
302
302
  return r.dataSets[a];
303
303
  }), i = _((r) => r.getDataSet);
304
304
  return y(() => {
@@ -369,7 +369,7 @@ function lc(e) {
369
369
  return Si(t, n, i);
370
370
  };
371
371
  }
372
- function ne(e, t = null, n = {}) {
372
+ function re(e, t = null, n = {}) {
373
373
  if (!e)
374
374
  return { actionName: "", arg: null };
375
375
  const i = e.match(/^([^(]+)\(([^)]*)\)$/);
@@ -391,13 +391,13 @@ function ne(e, t = null, n = {}) {
391
391
  return { actionName: r, arg: c };
392
392
  }
393
393
  function wt(e, t, n = {}) {
394
- return ne(e, t, n);
394
+ return re(e, t, n);
395
395
  }
396
396
  function wi(e, t = {}) {
397
- return ne(e, null, t);
397
+ return re(e, null, t);
398
398
  }
399
399
  function uc(e, t = {}) {
400
- return ne(e, null, t);
400
+ return re(e, null, t);
401
401
  }
402
402
  function I(e, t) {
403
403
  return {
@@ -406,28 +406,28 @@ function I(e, t) {
406
406
  timestamp: Date.now()
407
407
  };
408
408
  }
409
- function re() {
410
- return re = Object.assign ? Object.assign.bind() : function(e) {
409
+ function ie() {
410
+ return ie = Object.assign ? Object.assign.bind() : function(e) {
411
411
  for (var t = 1; t < arguments.length; t++) {
412
412
  var n = arguments[t];
413
413
  for (var i in n)
414
414
  Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
415
415
  }
416
416
  return e;
417
- }, re.apply(this, arguments);
417
+ }, ie.apply(this, arguments);
418
418
  }
419
419
  function Di(e, t) {
420
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, be(e, t);
420
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, we(e, t);
421
421
  }
422
- function Ie(e) {
423
- return Ie = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
422
+ function en(e) {
423
+ return en = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
424
424
  return n.__proto__ || Object.getPrototypeOf(n);
425
- }, Ie(e);
425
+ }, en(e);
426
426
  }
427
- function be(e, t) {
428
- return be = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
427
+ function we(e, t) {
428
+ return we = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
429
429
  return i.__proto__ = r, i;
430
- }, be(e, t);
430
+ }, we(e, t);
431
431
  }
432
432
  function xi() {
433
433
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -439,20 +439,20 @@ function xi() {
439
439
  return !1;
440
440
  }
441
441
  }
442
- function $e(e, t, n) {
443
- return xi() ? $e = Reflect.construct.bind() : $e = function(r, a, o) {
442
+ function je(e, t, n) {
443
+ return xi() ? je = Reflect.construct.bind() : je = 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
- return o && be(d, o.prototype), d;
448
- }, $e.apply(null, arguments);
447
+ return o && we(d, o.prototype), d;
448
+ }, je.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 tn(e) {
453
+ function nn(e) {
454
454
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
455
- return tn = function(i) {
455
+ return nn = 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 tn(e) {
461
461
  t.set(i, r);
462
462
  }
463
463
  function r() {
464
- return $e(i, arguments, Ie(this).constructor);
464
+ return je(i, arguments, en(this).constructor);
465
465
  }
466
466
  return r.prototype = Object.create(i.prototype, {
467
467
  constructor: {
@@ -470,8 +470,8 @@ function tn(e) {
470
470
  writable: !0,
471
471
  configurable: !0
472
472
  }
473
- }), be(r, i);
474
- }, tn(e);
473
+ }), we(r, i);
474
+ }, nn(e);
475
475
  }
476
476
  var Ci = /%[sdj%]/g, Qn = function() {
477
477
  };
@@ -480,7 +480,7 @@ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" &&
480
480
  return typeof i == "string";
481
481
  }) && console.warn(t, n);
482
482
  });
483
- function en(e) {
483
+ function rn(e) {
484
484
  if (!e || !e.length) return null;
485
485
  var t = {};
486
486
  return e.forEach(function(n) {
@@ -535,7 +535,7 @@ function Ni(e, t, n) {
535
535
  t(c, o);
536
536
  });
537
537
  }
538
- function vn(e, t, n) {
538
+ function bn(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 bn = /* @__PURE__ */ function(e) {
556
+ var Sn = /* @__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__ */ tn(Error));
563
+ }(/* @__PURE__ */ nn(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 bn(u, en(u))) : p(r);
568
+ return i(u), u.length ? g(new Sn(u, rn(u))) : p(r);
569
569
  }, s = ki(e);
570
- vn(s, n, f);
570
+ bn(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 bn(v, en(v))) : p(r);
579
+ return i(v), v.length ? g(new Sn(v, rn(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 ? vn(m, n, f) : Ni(m, n, f);
583
+ o.indexOf(s) !== -1 ? bn(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 Sn(e, t) {
601
+ function wn(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,23 +608,23 @@ function Sn(e, t) {
608
608
  };
609
609
  };
610
610
  }
611
- function wn(e, t) {
611
+ function Dn(e, t) {
612
612
  if (t) {
613
613
  for (var n in t)
614
614
  if (t.hasOwnProperty(n)) {
615
615
  var i = t[n];
616
- typeof i == "object" && typeof e[n] == "object" ? e[n] = re({}, e[n], i) : e[n] = i;
616
+ typeof i == "object" && typeof e[n] == "object" ? e[n] = ie({}, e[n], i) : e[n] = i;
617
617
  }
618
618
  }
619
619
  return e;
620
620
  }
621
- var Fn = function(t, n, i, r, a, o) {
621
+ var Zn = function(t, n, i, r, a, o) {
622
622
  t.required && (!i.hasOwnProperty(t.field) || $t(n, o || t.type)) && r.push(Vt(a.messages.required, t.fullField));
623
623
  }, Mi = function(t, n, i, r, a) {
624
624
  (/^\s+$/.test(n) || n === "") && r.push(Vt(a.messages.whitespace, t.fullField));
625
- }, Oe, $i = function() {
626
- if (Oe)
627
- return Oe;
625
+ }, Ee, $i = function() {
626
+ if (Ee)
627
+ return Ee;
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 Fn = function(t, n, i, r, a, o) {
647
647
  return A && A.exact ? c : new RegExp("" + t(A) + r + t(A), "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 Oe = new RegExp("(?:^" + S + "$)", "i"), Oe;
651
- }, Dn = {
650
+ return Ee = new RegExp("(?:^" + S + "$)", "i"), Ee;
651
+ }, xn = {
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(
@@ -656,12 +656,12 @@ var Fn = function(t, n, i, r, a, o) {
656
656
  // 'i',
657
657
  // ),
658
658
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
659
- }, ye = {
659
+ }, pe = {
660
660
  integer: function(t) {
661
- return ye.number(t) && parseInt(t, 10) === t;
661
+ return pe.number(t) && parseInt(t, 10) === t;
662
662
  },
663
663
  float: function(t) {
664
- return ye.number(t) && !ye.integer(t);
664
+ return pe.number(t) && !pe.integer(t);
665
665
  },
666
666
  array: function(t) {
667
667
  return Array.isArray(t);
@@ -682,34 +682,34 @@ var Fn = function(t, n, i, r, a, o) {
682
682
  return isNaN(t) ? !1 : typeof t == "number";
683
683
  },
684
684
  object: function(t) {
685
- return typeof t == "object" && !ye.array(t);
685
+ return typeof t == "object" && !pe.array(t);
686
686
  },
687
687
  method: function(t) {
688
688
  return typeof t == "function";
689
689
  },
690
690
  email: function(t) {
691
- return typeof t == "string" && t.length <= 320 && !!t.match(Dn.email);
691
+ return typeof t == "string" && t.length <= 320 && !!t.match(xn.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(Dn.hex);
697
+ return typeof t == "string" && !!t.match(xn.hex);
698
698
  }
699
699
  }, Ri = function(t, n, i, r, a) {
700
700
  if (t.required && n === void 0) {
701
- Fn(t, n, i, r, a);
701
+ Zn(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 ? ye[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));
705
+ o.indexOf(c) > -1 ? pe[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
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
- }, se = "enum", Bi = function(t, n, i, r, a) {
712
- t[se] = Array.isArray(t[se]) ? t[se] : [], t[se].indexOf(n) === -1 && r.push(Vt(a.messages[se], t.fullField, t[se].join(", ")));
711
+ }, le = "enum", Bi = function(t, n, i, r, a) {
712
+ t[le] = Array.isArray(t[le]) ? t[le] : [], t[le].indexOf(n) === -1 && r.push(Vt(a.messages[le], t.fullField, t[le].join(", ")));
713
713
  }, Ki = function(t, n, i, r, a) {
714
714
  if (t.pattern) {
715
715
  if (t.pattern instanceof RegExp)
@@ -720,7 +720,7 @@ var Fn = function(t, n, i, r, a, o) {
720
720
  }
721
721
  }
722
722
  }, ht = {
723
- required: Fn,
723
+ required: Zn,
724
724
  whitespace: Mi,
725
725
  type: Ri,
726
726
  range: ji,
@@ -806,7 +806,7 @@ var Fn = function(t, n, i, r, a, o) {
806
806
  ht.required(t, n, r, o, a), n !== void 0 && ht[Gi](t, n, r, o, a);
807
807
  }
808
808
  i(o);
809
- }, Qi = function(t, n, i, r, a) {
809
+ }, Fi = function(t, n, i, r, a) {
810
810
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
811
811
  if (c) {
812
812
  if ($t(n, "string") && !t.required)
@@ -814,7 +814,7 @@ var Fn = function(t, n, i, r, a, o) {
814
814
  ht.required(t, n, r, o, a), $t(n, "string") || ht.pattern(t, n, r, o, a);
815
815
  }
816
816
  i(o);
817
- }, Fi = function(t, n, i, r, a) {
817
+ }, Qi = function(t, n, i, r, a) {
818
818
  var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
819
819
  if (c) {
820
820
  if ($t(n, "date") && !t.required)
@@ -828,7 +828,7 @@ var Fn = function(t, n, i, r, a, o) {
828
828
  }, Zi = function(t, n, i, r, a) {
829
829
  var o = [], c = Array.isArray(n) ? "array" : typeof n;
830
830
  ht.required(t, n, r, o, a, c), i(o);
831
- }, He = function(t, n, i, r, a) {
831
+ }, Ue = 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
834
  if ($t(n, o) && !t.required)
@@ -844,7 +844,7 @@ var Fn = function(t, n, i, r, a, o) {
844
844
  ht.required(t, n, r, o, a);
845
845
  }
846
846
  i(o);
847
- }, ve = {
847
+ }, Se = {
848
848
  string: Li,
849
849
  method: zi,
850
850
  number: Vi,
@@ -855,15 +855,15 @@ var Fn = function(t, n, i, r, a, o) {
855
855
  array: Ui,
856
856
  object: Yi,
857
857
  enum: Ji,
858
- pattern: Qi,
859
- date: Fi,
860
- url: He,
861
- hex: He,
862
- email: He,
858
+ pattern: Fi,
859
+ date: Qi,
860
+ url: Ue,
861
+ hex: Ue,
862
+ email: Ue,
863
863
  required: Zi,
864
864
  any: Xi
865
865
  };
866
- function nn() {
866
+ function an() {
867
867
  return {
868
868
  default: "Validation error on field %s",
869
869
  required: "%s is required",
@@ -916,9 +916,9 @@ function nn() {
916
916
  }
917
917
  };
918
918
  }
919
- var rn = nn(), De = /* @__PURE__ */ function() {
919
+ var on = an(), Ae = /* @__PURE__ */ function() {
920
920
  function e(n) {
921
- this.rules = null, this._messages = rn, this.define(n);
921
+ this.rules = null, this._messages = on, this.define(n);
922
922
  }
923
923
  var t = e.prototype;
924
924
  return t.define = function(i) {
@@ -932,7 +932,7 @@ var rn = nn(), De = /* @__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 = wn(nn(), i)), this._messages;
935
+ return i && (this._messages = Dn(an(), 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 rn = nn(), De = /* @__PURE__ */ function() {
951
951
  }
952
952
  for (var A = 0; A < s.length; A++)
953
953
  S(s[A]);
954
- m.length ? (u = en(m), d(m, u)) : d(null, c);
954
+ m.length ? (u = rn(m), d(m, u)) : d(null, c);
955
955
  }
956
956
  if (l.messages) {
957
957
  var h = this.messages();
958
- h === rn && (h = nn()), wn(h, l.messages), l.messages = h;
958
+ h === on && (h = an()), Dn(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);
@@ -963,9 +963,9 @@ var rn = nn(), De = /* @__PURE__ */ function() {
963
963
  var m = o.rules[s], u = c[s];
964
964
  m.forEach(function(S) {
965
965
  var A = S;
966
- typeof A.transform == "function" && (c === i && (c = re({}, c)), u = c[s] = A.transform(u)), typeof A == "function" ? A = {
966
+ typeof A.transform == "function" && (c === i && (c = ie({}, c)), u = c[s] = A.transform(u)), typeof A == "function" ? A = {
967
967
  validator: A
968
- } : A = re({}, A), A.validator = o.getValidationMethod(A), A.validator && (A.field = s, A.fullField = A.fullField || s, A.type = o.getType(A), p[s] = p[s] || [], p[s].push({
968
+ } : A = ie({}, A), A.validator = o.getValidationMethod(A), A.validator && (A.field = s, A.fullField = A.fullField || s, A.type = o.getType(A), p[s] = p[s] || [], p[s].push({
969
969
  rule: A,
970
970
  value: u,
971
971
  source: c,
@@ -978,7 +978,7 @@ var rn = nn(), De = /* @__PURE__ */ function() {
978
978
  var u = s.rule, S = (u.type === "object" || u.type === "array") && (typeof u.fields == "object" || typeof u.defaultField == "object");
979
979
  S = S && (u.required || !u.required && s.value), u.field = s.field;
980
980
  function A(D, T) {
981
- return re({}, T, {
981
+ return ie({}, T, {
982
982
  fullField: u.fullField + "." + D,
983
983
  fullFields: u.fullFields ? [].concat(u.fullFields, [D]) : [D]
984
984
  });
@@ -987,18 +987,18 @@ var rn = nn(), De = /* @__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(Sn(u, c));
990
+ var O = T.map(wn(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(Sn(u, c)) : l.error && (O = [l.error(u, Vt(l.messages.required, u.field))]), m(O);
997
+ return u.message !== void 0 ? O = [].concat(u.message).map(wn(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;
1001
- }), N = re({}, N, s.rule.fields);
1001
+ }), N = ie({}, N, s.rule.fields);
1002
1002
  var x = {};
1003
1003
  Object.keys(N).forEach(function(k) {
1004
1004
  var M = N[k], B = Array.isArray(M) ? M : [M];
@@ -1033,24 +1033,24 @@ var rn = nn(), De = /* @__PURE__ */ function() {
1033
1033
  v(s);
1034
1034
  }, c);
1035
1035
  }, t.getType = function(i) {
1036
- if (i.type === void 0 && i.pattern instanceof RegExp && (i.type = "pattern"), typeof i.validator != "function" && i.type && !ve.hasOwnProperty(i.type))
1036
+ if (i.type === void 0 && i.pattern instanceof RegExp && (i.type = "pattern"), typeof i.validator != "function" && i.type && !Se.hasOwnProperty(i.type))
1037
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")
1041
1041
  return i.validator;
1042
1042
  var r = Object.keys(i), a = r.indexOf("message");
1043
- return a !== -1 && r.splice(a, 1), r.length === 1 && r[0] === "required" ? ve.required : ve[this.getType(i)] || void 0;
1043
+ return a !== -1 && r.splice(a, 1), r.length === 1 && r[0] === "required" ? Se.required : Se[this.getType(i)] || void 0;
1044
1044
  }, e;
1045
1045
  }();
1046
- De.register = function(t, n) {
1046
+ Ae.register = function(t, n) {
1047
1047
  if (typeof n != "function")
1048
1048
  throw new Error("Cannot register a validator by type, validator is not a function");
1049
- ve[t] = n;
1049
+ Se[t] = n;
1050
1050
  };
1051
- De.warning = Qn;
1052
- De.messages = rn;
1053
- De.validators = ve;
1051
+ Ae.warning = Qn;
1052
+ Ae.messages = on;
1053
+ Ae.validators = Se;
1054
1054
  function Ii(e) {
1055
1055
  if (!e || typeof e != "string") return null;
1056
1056
  try {
@@ -1060,7 +1060,7 @@ function Ii(e) {
1060
1060
  return null;
1061
1061
  }
1062
1062
  }
1063
- function Zn(e) {
1063
+ function Xn(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,14 +1070,14 @@ function Zn(e) {
1070
1070
  return n;
1071
1071
  });
1072
1072
  }
1073
- const xn = "_v";
1074
- function Xn(e, t, n, i) {
1073
+ const An = "_v";
1074
+ function In(e, t, n, i) {
1075
1075
  if (!(e != null && e.length)) {
1076
1076
  n();
1077
1077
  return;
1078
1078
  }
1079
- const r = { [xn]: e };
1080
- new De(r).validate({ [xn]: t }, { first: !0 }).then(() => {
1079
+ const r = { [An]: e };
1080
+ new Ae(r).validate({ [An]: t }, { first: !0 }).then(() => {
1081
1081
  n();
1082
1082
  }).catch(({ errors: o }) => {
1083
1083
  i(o || []);
@@ -1085,7 +1085,7 @@ function Xn(e, t, n, i) {
1085
1085
  }
1086
1086
  function Lt(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
- () => pe(r, n),
1088
+ () => be(r, n),
1089
1089
  [r, n]
1090
1090
  ), h = _(
1091
1091
  (w) => {
@@ -1119,8 +1119,8 @@ function Lt(e) {
1119
1119
  [r, n, i, a, c, l, d]
1120
1120
  ), S = j(
1121
1121
  (w) => {
1122
- const D = Zn(t || []);
1123
- Xn(
1122
+ const D = Xn(t || []);
1123
+ In(
1124
1124
  D,
1125
1125
  w,
1126
1126
  () => u(""),
@@ -1139,7 +1139,7 @@ function Lt(e) {
1139
1139
  }, [m, f, i, g, S]), { validate: S, help: A, validateStatus: C };
1140
1140
  }
1141
1141
  const ta = ["value", "validateStatus", "help"];
1142
- function Ft(e, t, n) {
1142
+ function Qt(e, t, n) {
1143
1143
  const i = (n == null ? void 0 : n.skipKeys) ?? ta, r = { ...e };
1144
1144
  return !t || typeof t != "object" || Object.keys(t).forEach((a) => {
1145
1145
  if (i.includes(a)) return;
@@ -1147,15 +1147,15 @@ function Ft(e, t, n) {
1147
1147
  o != null && (r[a] = o);
1148
1148
  }), r;
1149
1149
  }
1150
- const ae = Qr(null);
1151
- function _e(e) {
1150
+ const oe = Fr(null);
1151
+ function Me(e) {
1152
1152
  return typeof e == "string" && e.trim() !== "";
1153
1153
  }
1154
- function je(e, t, n) {
1155
- const i = Se(ae);
1154
+ function Ke(e, t, n) {
1155
+ const i = De(oe);
1156
1156
  return y(() => {
1157
1157
  const r = n ?? (i == null ? void 0 : i.sessionId);
1158
- if (_e(e))
1158
+ if (Me(e))
1159
1159
  return {
1160
1160
  dataSet: e,
1161
1161
  dataSetField: t,
@@ -1168,7 +1168,7 @@ function je(e, t, n) {
1168
1168
  sessionId: r
1169
1169
  };
1170
1170
  const a = i.index, o = i.dataSet, c = i.dataSetFieldRoot;
1171
- if (_e(t)) {
1171
+ if (Me(t)) {
1172
1172
  const l = t.trim();
1173
1173
  if (l.startsWith("["))
1174
1174
  return {
@@ -1176,7 +1176,7 @@ function je(e, t, n) {
1176
1176
  dataSetField: l,
1177
1177
  sessionId: r
1178
1178
  };
1179
- if (_e(c))
1179
+ if (Me(c))
1180
1180
  return {
1181
1181
  dataSet: o,
1182
1182
  dataSetField: `${c}[${a}].${l}`,
@@ -1189,7 +1189,7 @@ function je(e, t, n) {
1189
1189
  sessionId: r
1190
1190
  };
1191
1191
  }
1192
- return _e(c) ? {
1192
+ return Me(c) ? {
1193
1193
  dataSet: o,
1194
1194
  dataSetField: `${c}[${a}]`,
1195
1195
  sessionId: r
@@ -1203,7 +1203,7 @@ function je(e, t, n) {
1203
1203
  function ea(e, t) {
1204
1204
  return e === t ? !0 : String(e ?? "") === String(t ?? "");
1205
1205
  }
1206
- function oe(e, t) {
1206
+ function ce(e, t) {
1207
1207
  if (Array.isArray(e))
1208
1208
  return e.find((n) => ea(n.value, t));
1209
1209
  }
@@ -1214,7 +1214,7 @@ function fc(e) {
1214
1214
  function Jt() {
1215
1215
  return qt;
1216
1216
  }
1217
- async function ie(e) {
1217
+ async function ae(e) {
1218
1218
  if (qt.request) {
1219
1219
  const t = {
1220
1220
  ...e,
@@ -1226,45 +1226,45 @@ async function ie(e) {
1226
1226
  "Request handler not configured. Please call setCoreConfig() first."
1227
1227
  );
1228
1228
  }
1229
- async function In(e, t) {
1229
+ async function tr(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 un(e) {
1236
+ async function dn(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 an() {
1241
+ function cn() {
1242
1242
  return qt.getAccessToken ? qt.getAccessToken() : null;
1243
1243
  }
1244
1244
  const dc = {
1245
- post: (e, t, n) => ie({ url: e, data: t, method: "POST", ...n }),
1246
- get: (e, t, n) => ie({ url: e, params: t, method: "GET", ...n })
1245
+ post: (e, t, n) => ae({ url: e, data: t, method: "POST", ...n }),
1246
+ get: (e, t, n) => ae({ url: e, params: t, method: "GET", ...n })
1247
1247
  };
1248
1248
  function na() {
1249
1249
  const e = Jt(), t = j(
1250
1250
  async (l, d) => {
1251
1251
  const v = typeof l == "string" ? { url: l, ...d } : l;
1252
- return ie(v);
1252
+ return ae(v);
1253
1253
  },
1254
1254
  []
1255
1255
  ), n = j(
1256
- async (l, d, v) => ie({ url: l, params: d, method: "GET", ...v }),
1256
+ async (l, d, v) => ae({ url: l, params: d, method: "GET", ...v }),
1257
1257
  []
1258
1258
  ), i = j(
1259
- async (l, d, v) => ie({ url: l, data: d, method: "POST", ...v }),
1259
+ async (l, d, v) => ae({ url: l, data: d, method: "POST", ...v }),
1260
1260
  []
1261
1261
  ), r = j(
1262
- async (l) => un(l),
1262
+ async (l) => dn(l),
1263
1263
  []
1264
1264
  ), a = j(
1265
- async (l, d) => In(l, d),
1265
+ async (l, d) => tr(l, d),
1266
1266
  []
1267
- ), o = j(() => an(), []), c = j(() => !!e.request, [e.request]);
1267
+ ), o = j(() => cn(), []), c = j(() => !!e.request, [e.request]);
1268
1268
  return {
1269
1269
  request: t,
1270
1270
  get: n,
@@ -1276,7 +1276,7 @@ function na() {
1276
1276
  baseURL: e.baseURL
1277
1277
  };
1278
1278
  }
1279
- function xe(e) {
1279
+ function Ce(e) {
1280
1280
  const [t, n] = mt([]), [i, r] = mt(!1), [a, o] = mt(null);
1281
1281
  return At(() => {
1282
1282
  if (!e) {
@@ -1284,7 +1284,7 @@ function xe(e) {
1284
1284
  return;
1285
1285
  }
1286
1286
  let c = !1;
1287
- return r(!0), o(null), un(e).then((l) => {
1287
+ return r(!0), o(null), dn(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,7 +1295,7 @@ function xe(e) {
1295
1295
  };
1296
1296
  }, [e]), { options: t, loading: i, error: a };
1297
1297
  }
1298
- function fn(e, t) {
1298
+ function mn(e, t) {
1299
1299
  const [n, i] = mt([]), [r, a] = mt(!1), [o, c] = mt(null), {
1300
1300
  labelKey: l = "label",
1301
1301
  valueKey: d = "value",
@@ -1315,7 +1315,7 @@ function fn(e, t) {
1315
1315
  if (e) {
1316
1316
  a(!0), c(null);
1317
1317
  try {
1318
- const m = await ie({
1318
+ const m = await ae({
1319
1319
  url: e,
1320
1320
  method: "GET",
1321
1321
  ...g != null && Object.keys(g).length > 0 ? { params: g } : {}
@@ -1333,11 +1333,11 @@ function fn(e, t) {
1333
1333
  v && e && s();
1334
1334
  }, [v, e, s]), { options: n, loading: r, error: o, reload: s };
1335
1335
  }
1336
- const fe = (e) => {
1336
+ const de = (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
- }, Et = (e) => e == null ? "" : String(e), Be = (e) => {
1340
+ }, Et = (e) => e == null ? "" : String(e), Le = (e) => {
1341
1341
  if (e == null) return null;
1342
1342
  let t;
1343
1343
  if (e instanceof Date)
@@ -1351,7 +1351,7 @@ const fe = (e) => {
1351
1351
  return isNaN(t.getTime()) ? null : t;
1352
1352
  }, ra = (e, t = "CNY", n = {}) => {
1353
1353
  try {
1354
- const i = fe(e), r = /^[A-Z]{3}$/.test(t) ? t : "CNY";
1354
+ const i = de(e), r = /^[A-Z]{3}$/.test(t) ? t : "CNY";
1355
1355
  return new Intl.NumberFormat("zh-CN", {
1356
1356
  style: "currency",
1357
1357
  currency: r,
@@ -1362,7 +1362,7 @@ const fe = (e) => {
1362
1362
  }
1363
1363
  }, ia = (e, t = {}) => {
1364
1364
  try {
1365
- const n = fe(e);
1365
+ const n = de(e);
1366
1366
  return new Intl.NumberFormat("zh-CN", {
1367
1367
  minimumFractionDigits: 0,
1368
1368
  maximumFractionDigits: 2,
@@ -1373,7 +1373,7 @@ const fe = (e) => {
1373
1373
  }
1374
1374
  }, aa = (e, t = 2) => {
1375
1375
  try {
1376
- const n = fe(e), i = Math.max(0, Math.min(20, Math.floor(t)));
1376
+ const n = de(e), i = Math.max(0, Math.min(20, Math.floor(t)));
1377
1377
  return new Intl.NumberFormat("zh-CN", {
1378
1378
  style: "percent",
1379
1379
  minimumFractionDigits: i,
@@ -1384,7 +1384,7 @@ const fe = (e) => {
1384
1384
  }
1385
1385
  }, oa = (e, t = "compact") => {
1386
1386
  try {
1387
- const n = fe(e);
1387
+ const n = de(e);
1388
1388
  return new Intl.NumberFormat("zh-CN", {
1389
1389
  notation: t,
1390
1390
  compactDisplay: "short"
@@ -1394,7 +1394,7 @@ const fe = (e) => {
1394
1394
  }
1395
1395
  }, ca = (e, t = {}) => {
1396
1396
  try {
1397
- const n = Be(e);
1397
+ const n = Le(e);
1398
1398
  return n ? new Intl.DateTimeFormat("zh-CN", {
1399
1399
  year: "numeric",
1400
1400
  month: "2-digit",
@@ -1404,18 +1404,18 @@ const fe = (e) => {
1404
1404
  } catch {
1405
1405
  return "";
1406
1406
  }
1407
- }, tr = (e, t = "YYYY-MM-DD") => {
1407
+ }, er = (e, t = "YYYY-MM-DD") => {
1408
1408
  try {
1409
- const n = Be(e);
1409
+ const n = Le(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") => tr(e, t), la = (e) => {
1416
+ }, sa = (e, t = "YYYY-MM-DD HH:mm:ss") => er(e, t), la = (e) => {
1417
1417
  try {
1418
- const t = Be(e);
1418
+ const t = Le(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}年前`;
@@ -1424,7 +1424,7 @@ const fe = (e) => {
1424
1424
  }
1425
1425
  }, ua = (e) => {
1426
1426
  try {
1427
- const t = Math.floor(fe(e));
1427
+ const t = Math.floor(de(e));
1428
1428
  if (t < 0 || t > 31536e3) return "";
1429
1429
  const n = Math.floor(t / 3600), i = Math.floor(t % 3600 / 60), r = t % 60, a = [];
1430
1430
  return n > 0 && a.push(`${n}小时`), i > 0 && a.push(`${i}分钟`), (r > 0 || a.length === 0) && a.push(`${r}秒`), a.join("");
@@ -1433,7 +1433,7 @@ const fe = (e) => {
1433
1433
  }
1434
1434
  }, fa = (e) => {
1435
1435
  try {
1436
- const t = Be(e);
1436
+ const t = Le(e);
1437
1437
  if (!t) return "";
1438
1438
  const n = /* @__PURE__ */ new Date();
1439
1439
  if (t > n) return "";
@@ -1445,7 +1445,7 @@ const fe = (e) => {
1445
1445
  }
1446
1446
  }, da = (e, t = 2, n = !0) => {
1447
1447
  try {
1448
- const i = fe(e);
1448
+ const i = de(e);
1449
1449
  if (i < 0 || i > Number.MAX_SAFE_INTEGER) return "";
1450
1450
  if (i === 0) return "0 B";
1451
1451
  const r = Math.max(0, Math.min(10, Math.floor(t))), a = n ? 1024 : 1e3, o = n ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB"] : ["B", "KB", "MB", "GB", "TB", "PB"], c = Math.min(
@@ -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 tr(e, n.pattern);
1567
+ return er(e, n.pattern);
1568
1568
  case "relativeTime":
1569
1569
  return la(e);
1570
1570
  case "duration":
@@ -1601,7 +1601,7 @@ function Ca(e, t, n = {}) {
1601
1601
  return Et(e);
1602
1602
  }
1603
1603
  }
1604
- const Ke = {
1604
+ const ze = {
1605
1605
  // 基础颜色
1606
1606
  colorPrimary: "colorPrimary",
1607
1607
  colorSuccess: "colorSuccess",
@@ -1632,7 +1632,7 @@ const Ke = {
1632
1632
  colorLink: "colorLink",
1633
1633
  colorLinkHover: "colorLinkHover",
1634
1634
  colorLinkActive: "colorLinkActive"
1635
- }, mc = Object.keys(Ke), hc = [
1635
+ }, mc = Object.keys(ze), hc = [
1636
1636
  { label: "主色", value: "colorPrimary" },
1637
1637
  { label: "成功", value: "colorSuccess" },
1638
1638
  { label: "警告", value: "colorWarning" },
@@ -1642,14 +1642,14 @@ const Ke = {
1642
1642
  { label: "次级文本", value: "colorTextSecondary" },
1643
1643
  { label: "链接", value: "colorLink" }
1644
1644
  ];
1645
- function er(e) {
1646
- return Ke.hasOwnProperty(e);
1645
+ function nr(e) {
1646
+ return ze.hasOwnProperty(e);
1647
1647
  }
1648
- function Le(e) {
1648
+ function Ve(e) {
1649
1649
  const { token: t } = Xt.useToken();
1650
1650
  if (e) {
1651
- if (er(e)) {
1652
- const n = Ke[e];
1651
+ if (nr(e)) {
1652
+ const n = ze[e];
1653
1653
  return t[n] || e;
1654
1654
  }
1655
1655
  return e;
@@ -1657,8 +1657,8 @@ function Le(e) {
1657
1657
  }
1658
1658
  function yc(e, t) {
1659
1659
  if (e) {
1660
- if (er(e)) {
1661
- const n = Ke[e];
1660
+ if (nr(e)) {
1661
+ const n = ze[e];
1662
1662
  return t[n] || e;
1663
1663
  }
1664
1664
  return e;
@@ -1679,7 +1679,7 @@ const gc = ({
1679
1679
  dataSetField: h,
1680
1680
  ...p
1681
1681
  }) => {
1682
- const g = _((k) => k.addCommand), f = Se(ae), s = d ?? (f == null ? void 0 : f.index), m = _(
1682
+ const g = _((k) => k.addCommand), f = De(oe), s = d ?? (f == null ? void 0 : f.index), m = _(
1683
1683
  (k) => {
1684
1684
  var M;
1685
1685
  return a && e ? (M = k.propsStore[`${a}_props`]) == null ? void 0 : M[e] : null;
@@ -1691,7 +1691,7 @@ const gc = ({
1691
1691
  }), o && (k.disabled = !1), k;
1692
1692
  }, [p, m, o]), S = y(() => {
1693
1693
  const k = (m == null ? void 0 : m.iconName) || i;
1694
- return k && Qt[k] ? Qt[k] : null;
1694
+ return k && Ft[k] ? Ft[k] : null;
1695
1695
  }, [i, m == null ? void 0 : m.iconName]), A = j(
1696
1696
  (k) => {
1697
1697
  if (c) {
@@ -1756,7 +1756,7 @@ function Oa(e, t, n) {
1756
1756
  }
1757
1757
  return i;
1758
1758
  }
1759
- const nr = (e) => {
1759
+ const rr = (e) => {
1760
1760
  const {
1761
1761
  id: t,
1762
1762
  sessionId: n,
@@ -1780,7 +1780,7 @@ const nr = (e) => {
1780
1780
  addonAfter: C,
1781
1781
  addonBefore: w,
1782
1782
  ...D
1783
- } = e, T = je(r, a, n), O = T.dataSet, N = T.dataSetField, x = T.sessionId, E = _t(""), k = _t(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 = Ke(r, a, n), O = T.dataSet, N = T.dataSetField, x = T.sessionId, E = _t(""), k = _t(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(
1784
1784
  () => rt(x, O),
1785
1785
  [x, O]
1786
1786
  ), V = _(
@@ -1789,7 +1789,7 @@ const nr = (e) => {
1789
1789
  return x && t ? ((et = q.propsStore[`${x}_props`]) == null ? void 0 : et[t]) ?? null : null;
1790
1790
  }
1791
1791
  ), R = y(
1792
- () => pe(x, O),
1792
+ () => be(x, O),
1793
1793
  [x, O]
1794
1794
  ), L = _(
1795
1795
  (q) => {
@@ -1837,8 +1837,8 @@ const nr = (e) => {
1837
1837
  ]
1838
1838
  ), vt = j(
1839
1839
  (q) => {
1840
- const et = Zn(p || []);
1841
- Xn(
1840
+ const et = Xn(p || []);
1841
+ In(
1842
1842
  et,
1843
1843
  q,
1844
1844
  () => nt(""),
@@ -1959,9 +1959,9 @@ const nr = (e) => {
1959
1959
  const ot = y(() => ka(h), [h]), Rt = y(
1960
1960
  () => ot ? { components: { Input: ot } } : void 0,
1961
1961
  [ot]
1962
- ), Mt = i ? void 0 : x && O && N ? L : (V == null ? void 0 : V.help) ?? "", G = /* @__PURE__ */ st(ue, { children: [
1962
+ ), Mt = i ? void 0 : x && O && N ? L : (V == null ? void 0 : V.help) ?? "", G = /* @__PURE__ */ st(fe, { children: [
1963
1963
  /* @__PURE__ */ b(
1964
- Re,
1964
+ Be,
1965
1965
  {
1966
1966
  ...at,
1967
1967
  value: it,
@@ -1977,8 +1977,8 @@ const nr = (e) => {
1977
1977
  ] });
1978
1978
  return Rt ? /* @__PURE__ */ b(Kt, { theme: Rt, children: G }) : G;
1979
1979
  };
1980
- nr.displayName = "AndInput";
1981
- const pc = Wt.memo(nr), An = 200, vc = ({
1980
+ rr.displayName = "AndInput";
1981
+ const pc = Wt.memo(rr), Cn = 200, vc = ({
1982
1982
  id: e,
1983
1983
  sessionId: t,
1984
1984
  develop: n,
@@ -2027,7 +2027,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2027
2027
  }
2028
2028
  C && r && S(C, r, Y), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
2029
2029
  A.current = null, T(Y);
2030
- }, An)), x(l, "change", Y);
2030
+ }, Cn)), x(l, "change", Y);
2031
2031
  },
2032
2032
  [g, C, r, S, c, T, l, x]
2033
2033
  ), k = j(() => {
@@ -2064,7 +2064,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2064
2064
  }
2065
2065
  if (C && r && S(C, r, null), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
2066
2066
  A.current = null, T(null);
2067
- }, An)), x(l, "change", null), v && t) {
2067
+ }, Cn)), x(l, "change", null), v && t) {
2068
2068
  const { actionName: Y, arg: U } = wt(v, null, {
2069
2069
  id: e,
2070
2070
  dataSet: i,
@@ -2102,7 +2102,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
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
- () => Ft(m, w ?? void 0),
2105
+ () => Qt(m, w ?? void 0),
2106
2106
  [m, w]
2107
2107
  ), { addonBefore: $, addonAfter: z, style: K, suffix: V, ...R } = P, L = y(() => {
2108
2108
  if (!(h && N !== null && N !== void 0)) return V;
@@ -2119,12 +2119,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2119
2119
  children: /* @__PURE__ */ b(Xr, {})
2120
2120
  }
2121
2121
  );
2122
- return V == null || V === !1 ? U : /* @__PURE__ */ st(ue, { children: [
2122
+ return V == null || V === !1 ? U : /* @__PURE__ */ st(fe, { children: [
2123
2123
  V,
2124
2124
  U
2125
2125
  ] });
2126
2126
  }, [h, N, V, B]), J = /* @__PURE__ */ b(
2127
- Rn,
2127
+ jn,
2128
2128
  {
2129
2129
  ...R,
2130
2130
  disabled: n ? !1 : R.disabled,
@@ -2182,7 +2182,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2182
2182
  ] }) : J,
2183
2183
  O && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
2184
2184
  ] });
2185
- }, { TextArea: _a } = Re, Ea = 200, bc = ({
2185
+ }, { TextArea: _a } = Be, Ea = 200, bc = ({
2186
2186
  id: e,
2187
2187
  sessionId: t,
2188
2188
  develop: n,
@@ -2199,7 +2199,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2199
2199
  defaultValue: g,
2200
2200
  ...f
2201
2201
  }) => {
2202
- const s = je(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, A = _((P) => P.addCommand), C = _((P) => P.setDataSet), w = _t(null), D = y(
2202
+ const s = Ke(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, A = _((P) => P.addCommand), C = _((P) => P.setDataSet), w = _t(null), D = y(
2203
2203
  () => rt(S, m),
2204
2204
  [S, m]
2205
2205
  ), T = _(
@@ -2317,7 +2317,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2317
2317
  ),
2318
2318
  x && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
2319
2319
  ] });
2320
- }, { Password: Ma } = Re, $a = 200, Sc = ({
2320
+ }, { Password: Ma } = Be, $a = 200, Sc = ({
2321
2321
  id: e,
2322
2322
  sessionId: t,
2323
2323
  develop: n,
@@ -2444,7 +2444,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2444
2444
  ),
2445
2445
  D && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
2446
2446
  ] });
2447
- }, { Search: Ra } = Re, wc = ({
2447
+ }, { Search: Ra } = Be, wc = ({
2448
2448
  id: e,
2449
2449
  sessionId: t,
2450
2450
  develop: n,
@@ -2508,7 +2508,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2508
2508
  dropdownMatchSelectWidth: T,
2509
2509
  ...O
2510
2510
  }) => {
2511
- const N = _((tt) => tt.addCommand), x = _((tt) => tt.setDataSet), E = _t(null), k = Se(ae), M = y(
2511
+ const N = _((tt) => tt.addCommand), x = _((tt) => tt.setDataSet), E = _t(null), k = De(oe), M = y(
2512
2512
  () => rt(t, i),
2513
2513
  [t, i]
2514
2514
  ), B = m ?? (k == null ? void 0 : k.index), H = _(
@@ -2521,9 +2521,9 @@ const pc = Wt.memo(nr), An = 200, vc = ({
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 } = xe(
2524
+ ), { options: z, loading: K } = Ce(
2525
2525
  D || (a ? o : void 0)
2526
- ), { options: V, loading: R } = fn(
2526
+ ), { options: V, loading: R } = mn(
2527
2527
  $ == null ? void 0 : $.url,
2528
2528
  {
2529
2529
  valueKey: ($ == null ? void 0 : $.codeKey) || "value",
@@ -2540,16 +2540,16 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2540
2540
  id: e,
2541
2541
  develop: n
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]), it = y(
2543
- () => Ft(O, H ?? void 0),
2543
+ () => Qt(O, H ?? void 0),
2544
2544
  [O, H]
2545
2545
  ), at = 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(() => {
2546
2546
  if (at.length === 0) return U;
2547
2547
  if (Array.isArray(U))
2548
2548
  return U.map((lt) => {
2549
2549
  var ot;
2550
- return ((ot = oe(at, lt)) == null ? void 0 : ot.value) ?? lt;
2550
+ return ((ot = ce(at, lt)) == null ? void 0 : ot.value) ?? lt;
2551
2551
  });
2552
- const tt = oe(at, U);
2552
+ const tt = ce(at, U);
2553
2553
  return (tt == null ? void 0 : tt.value) ?? U;
2554
2554
  }, [U, at]), vt = j(
2555
2555
  (tt, lt) => {
@@ -2594,7 +2594,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2594
2594
  const yt = j((tt, lt) => ((lt == null ? void 0 : lt.label) ?? "").toLowerCase().includes(tt.toLowerCase()), []);
2595
2595
  return /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
2596
2596
  /* @__PURE__ */ b(
2597
- jn,
2597
+ Bn,
2598
2598
  {
2599
2599
  ...it,
2600
2600
  disabled: n ? !1 : it.disabled,
@@ -2759,12 +2759,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2759
2759
  A(x);
2760
2760
  }
2761
2761
  }, [l, A, D, o]), N = y(
2762
- () => Ft(g, u ?? void 0),
2762
+ () => Qt(g, u ?? void 0),
2763
2763
  [g, u]
2764
2764
  );
2765
2765
  return /* @__PURE__ */ st("div", { onBlur: O, children: [
2766
2766
  /* @__PURE__ */ b(
2767
- Bn,
2767
+ Kn,
2768
2768
  {
2769
2769
  ...N,
2770
2770
  disabled: n ? !1 : N.disabled,
@@ -2825,7 +2825,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2825
2825
  }, [c, u, r, m, h, A, a, t, e, f]), O = j(() => {
2826
2826
  p && A(D ? D.format(o) : "");
2827
2827
  }, [p, A, D, o]), N = C ? "error" : void 0;
2828
- return /* @__PURE__ */ st(ue, { children: [
2828
+ return /* @__PURE__ */ st(fe, { children: [
2829
2829
  /* @__PURE__ */ b(
2830
2830
  yr,
2831
2831
  {
@@ -2841,7 +2841,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2841
2841
  ),
2842
2842
  C && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: C })
2843
2843
  ] });
2844
- }, { RangePicker: Ba } = Bn, Tc = ({
2844
+ }, { RangePicker: Ba } = Kn, Tc = ({
2845
2845
  id: e,
2846
2846
  sessionId: t,
2847
2847
  develop: n,
@@ -2882,7 +2882,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2882
2882
  const x = S ?? (u == null ? void 0 : u.value) ?? h ?? p;
2883
2883
  return w(x);
2884
2884
  }, [S, u == null ? void 0 : u.value, h, p, w]), T = y(
2885
- () => Ft(g, u ?? void 0),
2885
+ () => Qt(g, u ?? void 0),
2886
2886
  [g, u]
2887
2887
  ), O = j(
2888
2888
  (x, E) => {
@@ -2957,7 +2957,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
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 } = xe(m), { options: M } = fn(
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 } = Ce(m), { options: M } = mn(
2961
2961
  o == null ? void 0 : o.url,
2962
2962
  {
2963
2963
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
@@ -2966,10 +2966,10 @@ const pc = Wt.memo(nr), An = 200, vc = ({
2966
2966
  }
2967
2967
  ), B = y(() => T != null && T.options ? T.options : o != null && o.url && M.length > 0 ? M : m && k.length > 0 ? k : a, [T == null ? void 0 : T.options, o == null ? void 0 : o.url, M, m, k, a]), H = y(() => {
2968
2968
  if (B.length === 0) return E;
2969
- const K = oe(B, E);
2969
+ const K = ce(B, E);
2970
2970
  return (K == null ? void 0 : K.value) ?? E;
2971
2971
  }, [E, B]), P = y(
2972
- () => Ft(A, T ?? void 0),
2972
+ () => Qt(A, T ?? void 0),
2973
2973
  [A, T]
2974
2974
  ), $ = j(
2975
2975
  (K) => {
@@ -3004,7 +3004,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3004
3004
  }, [h, N, H]);
3005
3005
  return /* @__PURE__ */ st("div", { onBlur: z, children: [
3006
3006
  /* @__PURE__ */ b(
3007
- qe.Group,
3007
+ He.Group,
3008
3008
  {
3009
3009
  ...P,
3010
3010
  disabled: n ? !1 : P.disabled,
@@ -3012,12 +3012,12 @@ const pc = Wt.memo(nr), An = 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(qe.Button, { value: K.value, disabled: K.disabled, children: K.label }, K.value)) : /* @__PURE__ */ b(
3015
+ children: d === "button" ? B.map((K) => /* @__PURE__ */ b(He.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(qe, { value: K.value, disabled: K.disabled, children: K.label }, K.value))
3020
+ children: B.map((K) => /* @__PURE__ */ b(He, { value: K.value, disabled: K.disabled, children: K.label }, K.value))
3021
3021
  }
3022
3022
  )
3023
3023
  }
@@ -3066,7 +3066,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3066
3066
  sessionId: t,
3067
3067
  id: e,
3068
3068
  develop: n
3069
- }), { options: M } = xe(S), { options: B } = fn(
3069
+ }), { options: M } = Ce(S), { options: B } = mn(
3070
3070
  o == null ? void 0 : o.url,
3071
3071
  {
3072
3072
  valueKey: (o == null ? void 0 : o.codeKey) || "value",
@@ -3081,10 +3081,10 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3081
3081
  let L = [];
3082
3082
  return Array.isArray(x) ? L = x : Array.isArray(N == null ? void 0 : N.values) ? L = N.values : L = s || [], P.length === 0 ? L : L.map((J) => {
3083
3083
  var Y;
3084
- return ((Y = oe(P, J)) == null ? void 0 : Y.value) ?? J;
3084
+ return ((Y = ce(P, J)) == null ? void 0 : Y.value) ?? J;
3085
3085
  });
3086
3086
  }, [c, x, N == null ? void 0 : N.values, s, P]), z = y(
3087
- () => Ft(w, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3087
+ () => Qt(w, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
3088
3088
  [w, N]
3089
3089
  ), K = j((L) => {
3090
3090
  const J = L.target.checked;
@@ -3109,18 +3109,18 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3109
3109
  v && E(c ? $ : H);
3110
3110
  }, [v, E, c, $, H]);
3111
3111
  return c && P.length > 0 ? /* @__PURE__ */ st("div", { onBlur: R, children: [
3112
- /* @__PURE__ */ b(le.Group, { ...z, value: $, onChange: V, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
3112
+ /* @__PURE__ */ b(ue.Group, { ...z, value: $, onChange: V, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
3113
3113
  Yt,
3114
3114
  {
3115
3115
  direction: z.direction ?? A,
3116
3116
  wrap: !0,
3117
- children: P.map((L) => /* @__PURE__ */ b(le, { value: L.value, disabled: L.disabled, children: L.label }, L.value))
3117
+ children: P.map((L) => /* @__PURE__ */ b(ue, { 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
3121
  ] }) : /* @__PURE__ */ st("div", { onBlur: R, children: [
3122
3122
  /* @__PURE__ */ b(
3123
- le,
3123
+ ue,
3124
3124
  {
3125
3125
  ...z,
3126
3126
  disabled: n ? !1 : z.disabled,
@@ -3182,7 +3182,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3182
3182
  ), D = j(() => {
3183
3183
  c && S(C);
3184
3184
  }, [c, S, C]), T = y(
3185
- () => Ft(p, m ?? void 0),
3185
+ () => Qt(p, m ?? void 0),
3186
3186
  [p, m]
3187
3187
  );
3188
3188
  return /* @__PURE__ */ st("div", { onBlur: D, children: [
@@ -3225,17 +3225,17 @@ const pc = Wt.memo(nr), An = 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, rr = (e, t, n = 1) => {
3228
+ }, Ka = 200, ir = (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]) ? rr(c[a], t, n + 1) : void 0, d = {
3232
+ const l = n < o && Array.isArray(c == null ? void 0 : c[a]) ? ir(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
- }, Cn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], La = (e, t) => {
3238
+ }, Tn = (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(nr), An = 200, vc = ({
3249
3249
  return null;
3250
3250
  };
3251
3251
  return n(t, e) || [];
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 = ({
3252
+ }, Nn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), kn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]), Ec = ({
3253
3253
  id: e,
3254
3254
  sessionId: t,
3255
3255
  develop: n,
@@ -3281,14 +3281,14 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3281
3281
  develop: n
3282
3282
  }), k = y(() => (a == null ? void 0 : a.url) && A.length > 0, [a == null ? void 0 : a.url, A.length]), M = y(() => {
3283
3283
  let $ = O ?? g ?? p ?? [];
3284
- return typeof $ == "string" ? k ? Cn($).map((K) => La(K, A)).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((z) => Array.isArray(z) && z.length > 0) : $;
3284
+ return typeof $ == "string" ? k ? Tn($).map((K) => La(K, A)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Nn($) && k ? $.map((K) => Tn(K)).filter((K) => Array.isArray(K) && K.length > 0) : kn($) && k ? $.filter((z) => Array.isArray(z) && z.length > 0) : $;
3285
3285
  }, [O, g, p, k, A]), B = y(() => a != null && a.url && A.length > 0 ? A : h || [], [a == null ? void 0 : a.url, A, h]);
3286
3286
  At(() => {
3287
3287
  (async () => {
3288
3288
  if (a != null && a.url) {
3289
3289
  D(!0);
3290
3290
  try {
3291
- const z = await ie({ 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", J = a.maxLevel || 5, Y = rr(K, {
3291
+ const z = await ae({ 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", J = a.maxLevel || 5, Y = ir(K, {
3292
3292
  codeKey: V,
3293
3293
  labelKey: R,
3294
3294
  childrenKey: L,
@@ -3310,7 +3310,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3310
3310
  return;
3311
3311
  }
3312
3312
  let K = $;
3313
- if (Tn($) && k ? K = String($[$.length - 1] || "") : Nn($) && k && (K = $.map((V) => V.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
3313
+ if (Nn($) && k ? K = String($[$.length - 1] || "") : kn($) && k && (K = $.map((V) => V.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
3316
  const { actionName: V, arg: R } = wt(d, $, {
@@ -3402,7 +3402,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3402
3402
  () => T ?? (D == null ? void 0 : D.value) ?? c ?? l,
3403
3403
  [T, D == null ? void 0 : D.value, c, l]
3404
3404
  ), E = y(
3405
- () => Ft(S, D ?? void 0),
3405
+ () => Qt(S, D ?? void 0),
3406
3406
  [S, D]
3407
3407
  ), k = j(
3408
3408
  (z, K, V) => {
@@ -3473,7 +3473,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3473
3473
  action: s,
3474
3474
  ...m
3475
3475
  }) => {
3476
- const u = je(i, r, t), S = u.dataSet, A = u.dataSetField, C = u.sessionId, w = _((G) => G.addCommand), D = _((G) => G.setDataSet), T = y(
3476
+ const u = Ke(i, r, t), S = u.dataSet, A = u.dataSetField, C = u.sessionId, w = _((G) => G.addCommand), D = _((G) => G.setDataSet), T = y(
3477
3477
  () => rt(C, S),
3478
3478
  [C, S]
3479
3479
  ), O = _(
@@ -3525,25 +3525,25 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3525
3525
  return G.length > 0 && typeof G[0] == "string" ? M(G) : B(G);
3526
3526
  }
3527
3527
  }, [N, O == null ? void 0 : O.fileList, h, M, B]), z = H ?? $, K = y(
3528
- () => Ft(m, O ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
3528
+ () => Qt(m, O ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
3529
3529
  [m, O]
3530
- ), V = j((G) => G.size / 1024 / 1024 < f ? !0 : (Te.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (G) => {
3530
+ ), V = j((G) => G.size / 1024 / 1024 < f ? !0 : (ke.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (G) => {
3531
3531
  const { file: q, onSuccess: et, onError: X, onProgress: ct } = G;
3532
3532
  if (Jt().upload)
3533
3533
  try {
3534
3534
  ct == null || ct({ percent: 30 });
3535
- const Dt = await In(q, {
3535
+ const Dt = await tr(q, {
3536
3536
  url: g,
3537
3537
  headers: {
3538
- Authorization: an() ? `Bearer ${an()}` : ""
3538
+ Authorization: cn() ? `Bearer ${cn()}` : ""
3539
3539
  }
3540
3540
  });
3541
3541
  ct == null || ct({ percent: 100 }), et == null || et(Dt, q);
3542
3542
  } catch (Dt) {
3543
- X == null || X(Dt), Te.error("上传失败");
3543
+ X == null || X(Dt), ke.error("上传失败");
3544
3544
  }
3545
3545
  else
3546
- X == null || X(new Error("Upload handler not configured")), Te.warning("上传功能未配置");
3546
+ X == null || X(new Error("Upload handler not configured")), ke.warning("上传功能未配置");
3547
3547
  }, [g]), L = j(
3548
3548
  (G) => {
3549
3549
  if (v) {
@@ -3599,7 +3599,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3599
3599
  at({ url: q, name: G.name, urls: X, current: ct >= 0 ? ct : 0, open: !0 });
3600
3600
  } else U(G) || window.open(q, "_blank");
3601
3601
  }, [Y, U, z]), bt = !!Jt().upload && !s, yt = K, tt = yt.buttonText ?? o, lt = yt.listType ?? m.listType, ot = yt.maxCount, Rt = (z == null ? void 0 : z.length) ?? 0, Mt = typeof ot == "number" && Rt >= ot, Bt = j(
3602
- (G) => Mt ? (Te.warning(`最多只能上传 ${ot} 个文件`), !1) : V(G),
3602
+ (G) => Mt ? (ke.warning(`最多只能上传 ${ot} 个文件`), !1) : V(G),
3603
3603
  [Mt, ot, V]
3604
3604
  );
3605
3605
  return /* @__PURE__ */ st("div", { onBlur: J, children: [
@@ -3616,7 +3616,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3616
3616
  action: bt ? void 0 : s || g,
3617
3617
  openFileDialogOnClick: !n,
3618
3618
  children: !Mt && (p || (lt === "picture-card" || lt === "picture-circle" ? /* @__PURE__ */ st("button", { style: { border: 0, background: "none" }, type: "button", children: [
3619
- /* @__PURE__ */ b(Un, {}),
3619
+ /* @__PURE__ */ b(Yn, {}),
3620
3620
  /* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: tt })
3621
3621
  ] }) : /* @__PURE__ */ b(It, { icon: /* @__PURE__ */ b(Ir, {}), children: tt })))
3622
3622
  }
@@ -3766,7 +3766,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3766
3766
  children: g,
3767
3767
  ...f
3768
3768
  }) => {
3769
- const [s] = Me.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), S = y(
3769
+ const [s] = Re.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), S = y(
3770
3770
  () => rt(t, i),
3771
3771
  [t, i]
3772
3772
  ), A = (w) => {
@@ -3782,9 +3782,9 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3782
3782
  }
3783
3783
  o && t && m(t, I(o, null));
3784
3784
  };
3785
- return /* @__PURE__ */ st(Me, { ...f, form: s, onFinish: A, children: [
3785
+ return /* @__PURE__ */ st(Re, { ...f, form: s, onFinish: A, children: [
3786
3786
  g,
3787
- (c || l) && /* @__PURE__ */ b(Me.Item, { children: /* @__PURE__ */ st(Yt, { children: [
3787
+ (c || l) && /* @__PURE__ */ b(Re.Item, { children: /* @__PURE__ */ st(Yt, { children: [
3788
3788
  c && /* @__PURE__ */ b(It, { type: "primary", htmlType: "submit", children: d }),
3789
3789
  l && /* @__PURE__ */ b(It, { onClick: C, children: v })
3790
3790
  ] }) })
@@ -3795,7 +3795,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3795
3795
  develop: n,
3796
3796
  children: i,
3797
3797
  ...r
3798
- }) => /* @__PURE__ */ b(Me.Item, { ...r, children: i }), Ht = (e, t) => {
3798
+ }) => /* @__PURE__ */ b(Re.Item, { ...r, children: i }), Ht = (e, t) => {
3799
3799
  if (e == null) return t;
3800
3800
  if (typeof e == "string")
3801
3801
  try {
@@ -3896,7 +3896,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3896
3896
  }
3897
3897
  );
3898
3898
  return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Kt, { theme: { components: { Transfer: $ } }, children: yt }) : yt;
3899
- }, on = (e, t) => {
3899
+ }, sn = (e, t) => {
3900
3900
  if (e == null) return t;
3901
3901
  if (typeof e == "string")
3902
3902
  try {
@@ -3909,9 +3909,9 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3909
3909
  return e;
3910
3910
  }, za = (e) => {
3911
3911
  if (!e) return null;
3912
- const t = Qt[e];
3912
+ const t = Ft[e];
3913
3913
  return t ? /* @__PURE__ */ b(t, {}) : null;
3914
- }, Va = (e) => on(e, []).map((n) => ({
3914
+ }, Va = (e) => sn(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(nr), An = 200, vc = ({
3941
3941
  const S = _((M) => M.addCommand), A = _((M) => M.getDataSet), C = _((M) => M.setDataSet), w = y(
3942
3942
  () => rt(t, i),
3943
3943
  [t, i]
3944
- ), D = y(() => on(s, {}), [s]), T = y(() => on(m, {}), [m]), O = y(() => Va(a), [a]), x = y(() => {
3944
+ ), D = y(() => sn(s, {}), [s]), T = y(() => sn(m, {}), [m]), O = y(() => Va(a), [a]), x = y(() => {
3945
3945
  if (w && r) {
3946
3946
  const M = A(w, r);
3947
3947
  if (typeof M == "string") return M;
@@ -3972,7 +3972,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
3972
3972
  return T && Object.keys(T).length > 0 ? /* @__PURE__ */ b(Kt, { theme: { components: { Segmented: T } }, children: k }) : k;
3973
3973
  }, qa = (e, t, n) => {
3974
3974
  const [i, r] = mt(void 0), a = t === "100%", o = _t(0);
3975
- return Pn(() => {
3975
+ return Un(() => {
3976
3976
  if (!a || !e.current) {
3977
3977
  r(void 0);
3978
3978
  return;
@@ -4022,10 +4022,10 @@ const pc = Wt.memo(nr), An = 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
- }, kn = /* @__PURE__ */ new Map();
4025
+ }, On = /* @__PURE__ */ new Map();
4026
4026
  function Wa(e) {
4027
- let t = kn.get(e);
4028
- return t || (t = un(e), kn.set(e, t)), t;
4027
+ let t = On.get(e);
4028
+ return t || (t = dn(e), On.set(e, t)), t;
4029
4029
  }
4030
4030
  const Ha = ({ dictCode: e, value: t }) => {
4031
4031
  const [n, i] = mt(null);
@@ -4044,7 +4044,7 @@ const Ha = ({ dictCode: e, value: t }) => {
4044
4044
  return /* @__PURE__ */ b("span", {});
4045
4045
  if (!n)
4046
4046
  return /* @__PURE__ */ b("span", { children: String(t) });
4047
- const r = oe(n, t);
4047
+ const r = ce(n, t);
4048
4048
  return /* @__PURE__ */ b("span", { children: (r == null ? void 0 : r.label) ?? String(t) });
4049
4049
  }, Pa = (e, t) => {
4050
4050
  const n = t.columnDictType || t.dictType || "";
@@ -4100,7 +4100,7 @@ const Ha = ({ dictCode: e, value: t }) => {
4100
4100
  return /* @__PURE__ */ b("span", {});
4101
4101
  const n = t.arraySeparator || ",";
4102
4102
  return Array.isArray(e) ? /* @__PURE__ */ b("span", { children: e.join(n) }) : /* @__PURE__ */ b("span", { children: String(e) });
4103
- }, Qa = (e) => {
4103
+ }, Fa = (e) => {
4104
4104
  const t = { ...e };
4105
4105
  return t.specialFields === !0 && t.renderType && (t.render = (n, i, r) => {
4106
4106
  switch (t.renderType) {
@@ -4118,12 +4118,12 @@ const Ha = ({ dictCode: e, value: t }) => {
4118
4118
  return n;
4119
4119
  }
4120
4120
  }), t;
4121
- }, Pe = 15, me = 10, Fa = [
4121
+ }, Ye = 15, ye = 10, Qa = [
4122
4122
  { value: "small", label: "紧凑" },
4123
4123
  { value: "middle", label: "默认" },
4124
4124
  { value: "large", label: "宽松" }
4125
4125
  ];
4126
- function On(e, t, n, i) {
4126
+ function _n(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 Ue = 420, _n = 440, Xa = ({
4166
+ const Ge = 420, En = 440, Xa = ({
4167
4167
  open: e,
4168
4168
  position: t,
4169
4169
  rowIndexVisible: n,
@@ -4187,12 +4187,12 @@ const Ue = 420, _n = 440, Xa = ({
4187
4187
  },
4188
4188
  [v]
4189
4189
  ), T = j(
4190
- (R, L, J, Y) => On(R, L, J ?? m, Y ?? S),
4190
+ (R, L, J, Y) => _n(R, L, J ?? m, Y ?? 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), A(d), D(On(r, R, c, d));
4195
+ s(R), u(c), A(d), D(_n(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 Ue = 420, _n = 440, Xa = ({
4222
4222
  s((J) => {
4223
4223
  const Y = J.find((nt) => nt.key === R);
4224
4224
  if (!Y) return J;
4225
- const U = typeof Y.width == "number" ? Y.width : 80, it = Math.max(Pe, U + L), at = J.map((nt) => nt.key === R ? { ...nt, width: it } : nt);
4225
+ const U = typeof Y.width == "number" ? Y.width : 80, it = Math.max(Ye, U + L), at = J.map((nt) => nt.key === R ? { ...nt, width: it } : nt);
4226
4226
  return D(T(p, at)), at;
4227
4227
  });
4228
4228
  },
@@ -4255,16 +4255,16 @@ const Ue = 420, _n = 440, Xa = ({
4255
4255
  L.preventDefault(), L.dataTransfer.dropEffect = "move", !(C === null || C === R) && (M(C, R), w(R));
4256
4256
  }, K = () => w(null), V = t != null ? (() => {
4257
4257
  let R = t.y, L = t.x;
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 };
4258
+ return typeof window < "u" && (L + Ge > window.innerWidth && (L = window.innerWidth - Ge - 16), L < 16 && (L = 16), R + En > window.innerHeight && (R = Math.max(16, window.innerHeight - En - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: L };
4259
4259
  })() : void 0;
4260
4260
  return /* @__PURE__ */ b(
4261
- Kn,
4261
+ Ln,
4262
4262
  {
4263
4263
  title: "列设置",
4264
4264
  open: e,
4265
4265
  onCancel: h,
4266
4266
  footer: null,
4267
- width: Ue,
4267
+ width: Ge,
4268
4268
  destroyOnHidden: !0,
4269
4269
  centered: t == null,
4270
4270
  style: V,
@@ -4273,23 +4273,23 @@ const Ue = 420, _n = 440, Xa = ({
4273
4273
  children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-body", children: [
4274
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
- le,
4276
+ ue,
4277
4277
  {
4278
4278
  checked: p,
4279
4279
  onChange: (R) => B(R.target.checked),
4280
4280
  children: "序号列"
4281
4281
  }
4282
4282
  ),
4283
- /* @__PURE__ */ b(le, { checked: m, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
4283
+ /* @__PURE__ */ b(ue, { checked: m, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
4284
4284
  /* @__PURE__ */ st(Yt, { align: "center", children: [
4285
4285
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
4286
4286
  /* @__PURE__ */ b(
4287
- jn,
4287
+ Bn,
4288
4288
  {
4289
4289
  size: "small",
4290
4290
  value: S,
4291
4291
  onChange: P,
4292
- options: [...Fa],
4292
+ options: [...Qa],
4293
4293
  style: { width: 80 }
4294
4294
  }
4295
4295
  )
@@ -4315,7 +4315,7 @@ const Ue = 420, _n = 440, Xa = ({
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
4317
  /* @__PURE__ */ st("td", { className: "and-table-column-setting-td-name", children: [
4318
- /* @__PURE__ */ b(le, { checked: R.visible, onChange: () => N(R.key) }),
4318
+ /* @__PURE__ */ b(ue, { 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
4321
  /* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-width", children: [
@@ -4323,23 +4323,23 @@ const Ue = 420, _n = 440, Xa = ({
4323
4323
  "span",
4324
4324
  {
4325
4325
  className: "and-table-column-setting-fix-btn",
4326
- onClick: () => k(R.key, -me),
4327
- title: `减 ${me}px`,
4326
+ onClick: () => k(R.key, -ye),
4327
+ title: `减 ${ye}px`,
4328
4328
  children: /* @__PURE__ */ b(ei, {})
4329
4329
  }
4330
4330
  ),
4331
4331
  /* @__PURE__ */ b(
4332
- Rn,
4332
+ jn,
4333
4333
  {
4334
4334
  size: "small",
4335
- min: Pe,
4336
- step: me,
4335
+ min: Ye,
4336
+ step: ye,
4337
4337
  value: Y ? void 0 : J ?? 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(Pe, Number(U)));
4342
+ U == null || typeof U == "string" && U === "" ? E(R.key, "auto") : E(R.key, Math.max(Ye, Number(U)));
4343
4343
  }
4344
4344
  }
4345
4345
  ),
@@ -4347,9 +4347,9 @@ const Ue = 420, _n = 440, Xa = ({
4347
4347
  "span",
4348
4348
  {
4349
4349
  className: "and-table-column-setting-fix-btn",
4350
- onClick: () => k(R.key, me),
4351
- title: `加 ${me}px`,
4352
- children: /* @__PURE__ */ b(Un, {})
4350
+ onClick: () => k(R.key, ye),
4351
+ title: `加 ${ye}px`,
4352
+ children: /* @__PURE__ */ b(Yn, {})
4353
4353
  }
4354
4354
  )
4355
4355
  ] }) }),
@@ -4360,7 +4360,7 @@ const Ue = 420, _n = 440, Xa = ({
4360
4360
  className: `and-table-column-setting-fix-btn ${R.fixed === "left" ? "active" : ""}`,
4361
4361
  onClick: () => x(R.key, R.fixed === "left" ? !1 : "left"),
4362
4362
  title: "固定到左侧",
4363
- children: /* @__PURE__ */ b(Yn, {})
4363
+ children: /* @__PURE__ */ b(Gn, {})
4364
4364
  }
4365
4365
  ),
4366
4366
  /* @__PURE__ */ b("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
@@ -4370,7 +4370,7 @@ const Ue = 420, _n = 440, Xa = ({
4370
4370
  className: `and-table-column-setting-fix-btn ${R.fixed === "right" ? "active" : ""}`,
4371
4371
  onClick: () => x(R.key, R.fixed === "right" ? !1 : "right"),
4372
4372
  title: "固定到右侧",
4373
- children: /* @__PURE__ */ b(Gn, {})
4373
+ children: /* @__PURE__ */ b(Jn, {})
4374
4374
  }
4375
4375
  )
4376
4376
  ] }) })
@@ -4420,15 +4420,15 @@ const Ue = 420, _n = 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 = _t(null), [J, Y] = mt(void 0), U = j((F, ut) => {
4424
- if (F == null) return ut;
4425
- if (typeof F == "string")
4423
+ const $ = _((Q) => Q.addCommand), z = _((Q) => Q.getDataSet), K = _((Q) => Q.setDataSet), [V, R] = mt([]), L = _t(null), [J, Y] = mt(void 0), U = j((Q, ut) => {
4424
+ if (Q == null) return ut;
4425
+ if (typeof Q == "string")
4426
4426
  try {
4427
- return JSON.parse(F) ?? ut;
4427
+ return JSON.parse(Q) ?? ut;
4428
4428
  } catch {
4429
4429
  return ut;
4430
4430
  }
4431
- return F;
4431
+ return Q;
4432
4432
  }, []), it = y(() => Array.isArray(a) ? a : [], [a]), at = y(() => Array.isArray(o) ? o : [], [o]), nt = y(
4433
4433
  () => ({
4434
4434
  dataSet: rt(t, i),
@@ -4439,75 +4439,75 @@ const Ue = 420, _n = 440, Xa = ({
4439
4439
  }),
4440
4440
  [t, i]
4441
4441
  ), vt = _(
4442
- (F) => {
4442
+ (Q) => {
4443
4443
  var ut;
4444
- return nt.columnSettingOpen ? ((ut = F.dataSets[nt.columnSettingOpen]) == null ? void 0 : ut.value) === !0 : !1;
4444
+ return nt.columnSettingOpen ? ((ut = Q.dataSets[nt.columnSettingOpen]) == null ? void 0 : ut.value) === !0 : !1;
4445
4445
  }
4446
4446
  ), bt = 420;
4447
- Pn(() => {
4447
+ Un(() => {
4448
4448
  if (!vt || !L.current) return;
4449
- const F = L.current.querySelector(".ant-table-thead") || L.current.querySelector(".ant-table-header");
4450
- if (!F) return;
4451
- const ut = F.getBoundingClientRect();
4449
+ const Q = L.current.querySelector(".ant-table-thead") || L.current.querySelector(".ant-table-header");
4450
+ if (!Q) return;
4451
+ const ut = Q.getBoundingClientRect();
4452
4452
  Y({
4453
4453
  x: ut.right - bt,
4454
4454
  y: ut.bottom + 8
4455
4455
  });
4456
4456
  }, [vt]);
4457
- const yt = _((F) => {
4458
- var kt;
4459
- const ut = nt.columnSettings ? (kt = F.dataSets[nt.columnSettings]) == null ? void 0 : kt.value : void 0;
4457
+ const yt = _((Q) => {
4458
+ var Ot;
4459
+ const ut = nt.columnSettings ? (Ot = Q.dataSets[nt.columnSettings]) == null ? void 0 : Ot.value : void 0;
4460
4460
  return typeof ut == "object" && ut !== null ? ut : void 0;
4461
4461
  }), tt = bi(nt.dataSet, r), lt = 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]), Rt = ot && Object.keys(ot).length > 0, Mt = y(
4462
4462
  () => Rt ? { components: { Table: ot } } : void 0,
4463
4463
  [Rt, ot]
4464
4464
  ), Bt = _(
4465
- (F) => nt.pagination ? F.dataSets[nt.pagination] : void 0
4465
+ (Q) => nt.pagination ? Q.dataSets[nt.pagination] : void 0
4466
4466
  ), G = y(() => nt.pagination ? z(nt.pagination, "") || {} : {}, [nt.pagination, z, Bt]), q = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
4467
4467
  if (!q) return !1;
4468
- const F = typeof s == "object" ? s : {}, ut = P || {}, kt = F.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Ct = F.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, Tt = 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((ee) => parseInt(String(ee).trim(), 10) || 10).filter((ee) => !isNaN(ee)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4468
+ const Q = typeof s == "object" ? s : {}, ut = P || {}, Ot = Q.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Ct = Q.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, Tt = Q.simple ?? ut["pagination-simple"] ?? !1, zt = Q.defaultPageSize ?? ut["pagination-defaultPageSize"] ?? 10, Pt = Q.pageSizeOptions ?? ut["pagination-pageSizeOptions"] ?? "10,20,50,100", We = typeof Pt == "string" ? Pt.split(",").map((ne) => parseInt(String(ne).trim(), 10) || 10).filter((ne) => !isNaN(ne)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4469
4469
  return {
4470
4470
  ...G,
4471
- showSizeChanger: kt,
4471
+ showSizeChanger: Ot,
4472
4472
  showQuickJumper: Ct,
4473
4473
  simple: Tt,
4474
4474
  defaultPageSize: zt,
4475
- pageSizeOptions: Ve,
4476
- showTotal: (ee, ce) => (F.showTotal || "共 ${total} 条").replace("${total}", String(ee)).replace("${range[0]}", String(ce[0])).replace("${range[1]}", String(ce[1])).replace("${range}", `${ce[0]}-${ce[1]}`),
4477
- onChange: (ee, ce) => {
4478
- nt.pagination && K(nt.pagination, "", { ...G, current: ee, pageSize: ce }), f && t && $(t, I(f, null));
4475
+ pageSizeOptions: We,
4476
+ showTotal: (ne, se) => (Q.showTotal || "共 ${total} 条").replace("${total}", String(ne)).replace("${range[0]}", String(se[0])).replace("${range[1]}", String(se[1])).replace("${range}", `${se[0]}-${se[1]}`),
4477
+ onChange: (ne, se) => {
4478
+ nt.pagination && K(nt.pagination, "", { ...G, current: ne, pageSize: se }), f && t && $(t, I(f, null));
4479
4479
  },
4480
4480
  hideOnSinglePage: !1
4481
4481
  };
4482
- }, [q, s, P, G, nt.pagination, K, f, t, $]), X = j((F, ut) => {
4483
- t && $(t, I(F.action, { ...ut }));
4484
- }, [t, $]), ct = y(() => it.map((F) => {
4482
+ }, [q, s, P, G, nt.pagination, K, f, t, $]), X = j((Q, ut) => {
4483
+ t && $(t, I(Q.action, { ...ut }));
4484
+ }, [t, $]), ct = y(() => it.map((Q) => {
4485
4485
  let ut = !1;
4486
- F.fixed === !0 || F.fixed === "left" ? ut = "left" : F.fixed === "right" && (ut = "right");
4487
- const kt = F.width;
4486
+ Q.fixed === !0 || Q.fixed === "left" ? ut = "left" : Q.fixed === "right" && (ut = "right");
4487
+ const Ot = Q.width;
4488
4488
  return {
4489
- key: String(F.key ?? F.dataIndex ?? ""),
4490
- title: typeof F.title == "string" ? F.title : "列",
4491
- visible: F.visible !== !1,
4489
+ key: String(Q.key ?? Q.dataIndex ?? ""),
4490
+ title: typeof Q.title == "string" ? Q.title : "列",
4491
+ visible: Q.visible !== !1,
4492
4492
  fixed: ut,
4493
- width: typeof kt == "number" ? kt : "auto"
4493
+ width: typeof Ot == "number" ? Ot : "auto"
4494
4494
  };
4495
- }).filter((F) => F.key), [it]), dt = g === !0, Dt = !1, Z = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: gt, items: xt, scrollX: Q, size: W } = y(() => Za(
4495
+ }).filter((Q) => Q.key), [it]), dt = g === !0, Dt = !1, Z = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: gt, items: xt, scrollX: F, size: W } = y(() => Za(
4496
4496
  yt,
4497
4497
  ct,
4498
4498
  dt,
4499
4499
  Dt,
4500
4500
  Z
4501
4501
  ), [yt, ct, dt, Dt, Z]), ft = !!(i && t), pt = y(() => {
4502
- const F = [];
4503
- gt && F.push({
4502
+ const Q = [];
4503
+ gt && Q.push({
4504
4504
  title: "序号",
4505
4505
  key: "rowIndex",
4506
4506
  width: 60,
4507
4507
  align: "center",
4508
4508
  render: (Ct, Tt, zt) => {
4509
- const Pt = G.current || 1, Ve = G.pageSize || 10;
4510
- return (Pt - 1) * Ve + zt + 1;
4509
+ const Pt = G.current || 1, We = G.pageSize || 10;
4510
+ return (Pt - 1) * We + zt + 1;
4511
4511
  }
4512
4512
  });
4513
4513
  const ut = new Map(it.map((Ct) => [String(Ct.key ?? Ct.dataIndex ?? ""), Ct]));
@@ -4515,17 +4515,17 @@ const Ue = 420, _n = 440, Xa = ({
4515
4515
  const Tt = ut.get(Ct.key);
4516
4516
  if (!Tt) return;
4517
4517
  const zt = Ct.fixed || void 0, Pt = Ct.width === "auto" || Ct.width === void 0 ? void 0 : Ct.width;
4518
- F.push(Qa({
4518
+ Q.push(Fa({
4519
4519
  ...Tt,
4520
4520
  dataIndex: Tt.dataIndex || Tt.key,
4521
4521
  fixed: zt || Tt.fixed,
4522
4522
  width: Pt ?? Tt.width
4523
4523
  }));
4524
- }), l !== !1 && at.length > 0 && F.push({
4524
+ }), l !== !1 && at.length > 0 && Q.push({
4525
4525
  title: "操作",
4526
4526
  key: "action",
4527
4527
  render: (Ct, Tt) => /* @__PURE__ */ b(Yt, { children: at.map((zt, Pt) => /* @__PURE__ */ b(Ar, { title: zt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => X(zt, Tt), style: { marginRight: 5 }, children: zt.title }) }, Pt)) })
4528
- }), F;
4528
+ }), Q;
4529
4529
  }, [
4530
4530
  it,
4531
4531
  at,
@@ -4536,37 +4536,37 @@ const Ue = 420, _n = 440, Xa = ({
4536
4536
  X
4537
4537
  ]), St = j(() => {
4538
4538
  nt.columnSettingOpen && K(nt.columnSettingOpen, "", !1);
4539
- }, [nt.columnSettingOpen, K]), Ot = j(
4540
- (F) => {
4541
- nt.columnSettings && K(nt.columnSettings, "value", F);
4539
+ }, [nt.columnSettingOpen, K]), kt = j(
4540
+ (Q) => {
4541
+ nt.columnSettings && K(nt.columnSettings, "value", Q);
4542
4542
  },
4543
4543
  [nt.columnSettings, K]
4544
- ), Gt = y(() => {
4544
+ ), ee = y(() => {
4545
4545
  if (!v && d)
4546
4546
  return {
4547
4547
  selectedRowKeys: V,
4548
- onChange: (F, ut, kt) => {
4549
- R(F), nt.selected && K(nt.selected, "", F), h != null && h.trim() && t && $(t, I(h.trim(), {
4550
- selectedRowKeys: F,
4548
+ onChange: (Q, ut, Ot) => {
4549
+ R(Q), nt.selected && K(nt.selected, "", Q), h != null && h.trim() && t && $(t, I(h.trim(), {
4550
+ selectedRowKeys: Q,
4551
4551
  selectedRows: ut,
4552
- info: kt
4552
+ info: Ot
4553
4553
  }));
4554
4554
  }
4555
4555
  };
4556
- }, [d, v, V, nt.selected, K, h, t, $]), dn = j((F) => {
4556
+ }, [d, v, V, nt.selected, K, h, t, $]), Gt = j((Q) => {
4557
4557
  if (!v) return;
4558
- const kt = [F[p]];
4559
- R(kt), nt.selected && K(nt.selected, "", kt), h != null && h.trim() && t && $(t, I(h.trim(), { record: F, selectedRowKeys: kt }));
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: () => dn(F), style: { cursor: "pointer" } } : {}, [v, dn]), { style: cr, className: sr, ...de } = P, jt = y(() => {
4558
+ const Ot = [Q[p]];
4559
+ R(Ot), nt.selected && K(nt.selected, "", Ot), h != null && h.trim() && t && $(t, I(h.trim(), { record: Q, selectedRowKeys: Ot }));
4560
+ }, [v, h, t, p, nt.selected, K, $]), me = j((Q) => v && V.includes(Q[p]) ? "ant-table-row-selected" : "", [v, p, V]), or = j((Q) => v ? { onClick: () => Gt(Q), style: { cursor: "pointer" } } : {}, [v, Gt]), { style: cr, className: sr, ...he } = P, jt = y(() => {
4561
4561
  if (C) return C;
4562
- let F = de["scroll-x"], ut = de["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, de["scroll-x"], de["scroll-y"]]), ze = qa(L, jt == null ? void 0 : jt.y, q), lr = y(() => {
4562
+ let Q = he["scroll-x"], ut = he["scroll-y"];
4563
+ if (String(Q) === "true" ? Q = !0 : String(Q) === "false" ? Q = void 0 : Q === "max-content" && (Q = "max-content"), (ut === "" || ut === null || ut === void 0) && (ut = void 0), Q !== void 0 || ut !== void 0) return { x: Q, y: ut };
4564
+ }, [C, he["scroll-x"], he["scroll-y"]]), qe = qa(L, jt == null ? void 0 : jt.y, q), lr = y(() => {
4565
4565
  if (!jt && !ft) return;
4566
- const F = ft ? Q ? !0 : "max-content" : jt == null ? void 0 : jt.x, ut = (jt == null ? void 0 : jt.y) === "100%" ? ze : jt == null ? void 0 : jt.y;
4567
- return F !== void 0 || ut !== void 0 ? { x: F, y: ut } : jt ? jt.y === "100%" ? { x: jt.x, y: ze } : jt : void 0;
4568
- }, [jt, ze, ft, Q]), { titleSlot: Ae, summarySlot: Ce, footerSlot: mn, otherChildren: ur } = y(() => {
4569
- let F = null, ut = null, kt = null;
4566
+ const Q = ft ? F ? !0 : "max-content" : jt == null ? void 0 : jt.x, ut = (jt == null ? void 0 : jt.y) === "100%" ? qe : jt == null ? void 0 : jt.y;
4567
+ return Q !== void 0 || ut !== void 0 ? { x: Q, y: ut } : jt ? jt.y === "100%" ? { x: jt.x, y: qe } : jt : void 0;
4568
+ }, [jt, qe, ft, F]), { titleSlot: Te, summarySlot: Ne, footerSlot: hn, otherChildren: ur } = y(() => {
4569
+ let Q = null, ut = null, Ot = null;
4570
4570
  const Ct = [];
4571
4571
  return Wt.Children.forEach(k, (Tt) => {
4572
4572
  if (!Wt.isValidElement(Tt)) {
@@ -4574,28 +4574,28 @@ const Ue = 420, _n = 440, Xa = ({
4574
4574
  return;
4575
4575
  }
4576
4576
  const zt = Tt.props["data-slot-type"];
4577
- zt === "title" ? F = Tt : zt === "summary" ? ut = Tt : zt === "footer" ? kt = Tt : Ct.push(Tt);
4578
- }), { titleSlot: F, summarySlot: ut, footerSlot: kt, otherChildren: Ct };
4577
+ zt === "title" ? Q = Tt : zt === "summary" ? ut = Tt : zt === "footer" ? Ot = Tt : Ct.push(Tt);
4578
+ }), { titleSlot: Q, summarySlot: ut, footerSlot: Ot, otherChildren: Ct };
4579
4579
  }, [k]), fr = y(() => {
4580
- if (!Ae) {
4580
+ if (!Te) {
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, Ae, N, n]), dr = y(() => {
4584
+ }, [D, Te, N, n]), dr = y(() => {
4585
4585
  if (x) return x;
4586
- if (T && Ce)
4587
- return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: pt.length, style: { padding: 0 }, children: Ce }) });
4586
+ if (T && Ne)
4587
+ return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: pt.length, style: { padding: 0 }, children: Ne }) });
4588
4588
  if (T && n)
4589
4589
  return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: pt.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
4590
- }, [T, Ce, x, pt.length, n]), hn = /* @__PURE__ */ b(
4590
+ }, [T, Ne, x, pt.length, n]), yn = /* @__PURE__ */ b(
4591
4591
  Cr,
4592
4592
  {
4593
- ...de,
4593
+ ...he,
4594
4594
  columns: pt,
4595
4595
  dataSource: lt,
4596
4596
  rowKey: p,
4597
- rowSelection: Gt,
4598
- rowClassName: ar,
4597
+ rowSelection: ee,
4598
+ rowClassName: me,
4599
4599
  pagination: et,
4600
4600
  locale: { emptyText: m },
4601
4601
  bordered: u,
@@ -4609,21 +4609,21 @@ const Ue = 420, _n = 440, Xa = ({
4609
4609
  }
4610
4610
  );
4611
4611
  return /* @__PURE__ */ st(
4612
- Ln,
4612
+ zn,
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
- Ae && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: Ae }),
4619
+ Te && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: Te }),
4620
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", ut = (ot == null ? void 0 : ot.rowSelectedHoverBg) || (ot == null ? void 0 : ot.rowSelectedBg) || "#bae0ff", kt = ot == null ? void 0 : ot.rowSelectedColor, Ct = (ot == null ? void 0 : ot.rowSelectedLinkColor) ?? kt, Tt = (ot == null ? void 0 : ot.rowSelectedLinkHoverColor) ?? Ct;
4622
+ const Q = (ot == null ? void 0 : ot.rowSelectedBg) || "#e6f4ff", ut = (ot == null ? void 0 : ot.rowSelectedHoverBg) || (ot == null ? void 0 : ot.rowSelectedBg) || "#bae0ff", Ot = ot == null ? void 0 : ot.rowSelectedColor, Ct = (ot == null ? void 0 : ot.rowSelectedLinkColor) ?? Ot, Tt = (ot == null ? void 0 : ot.rowSelectedLinkHoverColor) ?? Ct;
4623
4623
  return /* @__PURE__ */ b("style", { children: `
4624
4624
  .ant-table-row-selected > td {
4625
- background: ${F} !important;
4626
- ${kt ? `color: ${kt};` : ""}
4625
+ background: ${Q} !important;
4626
+ ${Ot ? `color: ${Ot};` : ""}
4627
4627
  }
4628
4628
  .ant-table-row-selected:hover > td {
4629
4629
  background: ${ut} !important;
@@ -4632,10 +4632,10 @@ const Ue = 420, _n = 440, Xa = ({
4632
4632
  ${Tt ? `.ant-table-row-selected > td a:hover { color: ${Tt}; }` : ""}
4633
4633
  ` });
4634
4634
  })(),
4635
- Mt ? /* @__PURE__ */ b(Kt, { theme: Mt, children: hn }) : hn
4635
+ Mt ? /* @__PURE__ */ b(Kt, { theme: Mt, children: yn }) : yn
4636
4636
  ] }),
4637
- Ce,
4638
- mn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: mn }),
4637
+ Ne,
4638
+ hn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: hn }),
4639
4639
  ur,
4640
4640
  ft && /* @__PURE__ */ b(
4641
4641
  Xa,
@@ -4646,18 +4646,18 @@ const Ue = 420, _n = 440, Xa = ({
4646
4646
  columnItems: xt,
4647
4647
  defaultRowIndexVisible: dt,
4648
4648
  defaultColumnItems: ct,
4649
- scrollX: Q,
4649
+ scrollX: F,
4650
4650
  defaultScrollX: Dt,
4651
4651
  size: W,
4652
4652
  defaultSize: Z,
4653
- onSave: Ot,
4653
+ onSave: kt,
4654
4654
  onClose: St
4655
4655
  }
4656
4656
  )
4657
4657
  ]
4658
4658
  }
4659
4659
  );
4660
- }, { Text: Ia } = ln, Vc = ({
4660
+ }, { Text: Ia } = fn, Vc = ({
4661
4661
  id: e,
4662
4662
  sessionId: t,
4663
4663
  develop: n,
@@ -4691,9 +4691,9 @@ const Ue = 420, _n = 440, Xa = ({
4691
4691
  [t, A]
4692
4692
  ), D = _((V) => {
4693
4693
  if (!w) return;
4694
- const R = we(w).baseName;
4694
+ const R = xe(w).baseName;
4695
4695
  return V.dataSets[R];
4696
- }), { options: T } = xe(d), O = y(() => {
4696
+ }), { options: T } = Ce(d), O = y(() => {
4697
4697
  if (w && C)
4698
4698
  return u(w, C);
4699
4699
  }, [w, C, u, D]), N = y(() => {
@@ -4707,7 +4707,7 @@ const Ue = 420, _n = 440, Xa = ({
4707
4707
  return h;
4708
4708
  }, [h]), x = (V) => V == null || V === "" || typeof V == "string" && V.trim() === "", E = y(() => n ? i : O != null && O !== "" ? x(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 = oe(T, E);
4710
+ const V = ce(T, E);
4711
4711
  return (V == null ? void 0 : V.label) ?? E;
4712
4712
  }
4713
4713
  return E;
@@ -4721,7 +4721,7 @@ const Ue = 420, _n = 440, Xa = ({
4721
4721
  return S && typeof S == "object" && Object.keys(S).forEach((R) => {
4722
4722
  !["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (V[R] = S[R]);
4723
4723
  }), V;
4724
- }, [m, S]), H = (S == null ? void 0 : S.color) ?? l, P = Le(H), $ = y(() => {
4724
+ }, [m, S]), H = (S == null ? void 0 : S.color) ?? l, P = Ve(H), $ = y(() => {
4725
4725
  if (!f) return;
4726
4726
  let V = f;
4727
4727
  if (typeof f == "string")
@@ -4744,7 +4744,7 @@ const Ue = 420, _n = 440, Xa = ({
4744
4744
  return P && (V.color = P), V;
4745
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
4746
  return $ ? /* @__PURE__ */ b(Kt, { theme: { token: $ }, children: K }) : K;
4747
- }, { Title: to } = ln, qc = ({
4747
+ }, { Title: to } = fn, qc = ({
4748
4748
  id: e,
4749
4749
  sessionId: t,
4750
4750
  develop: n,
@@ -4763,7 +4763,7 @@ const Ue = 420, _n = 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 = Le(u), A = 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 = Ve(u), A = y(() => {
4767
4767
  const w = {};
4768
4768
  return S && (w.color = S), w;
4769
4769
  }, [S]), C = y(() => {
@@ -4773,7 +4773,7 @@ const Ue = 420, _n = 440, Xa = ({
4773
4773
  }), w;
4774
4774
  }, [v, f]);
4775
4775
  return /* @__PURE__ */ b(to, { level: c, ...C, style: { ...A, ...d, ...C.style }, children: m || r });
4776
- }, { Paragraph: eo } = ln, Wc = ({
4776
+ }, { Paragraph: eo } = fn, Wc = ({
4777
4777
  id: e,
4778
4778
  sessionId: t,
4779
4779
  develop: n,
@@ -4791,7 +4791,7 @@ const Ue = 420, _n = 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 = Le(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 = Ve(m), S = y(() => {
4795
4795
  const C = {};
4796
4796
  return u && (C.color = u), C;
4797
4797
  }, [u]), A = y(() => {
@@ -5105,7 +5105,7 @@ const Ue = 420, _n = 440, Xa = ({
5105
5105
  children: r
5106
5106
  }
5107
5107
  );
5108
- }, Ye = (e, t) => {
5108
+ }, Je = (e, t) => {
5109
5109
  if (!e) return t;
5110
5110
  if (typeof e == "string")
5111
5111
  try {
@@ -5137,7 +5137,7 @@ const Ue = 420, _n = 440, Xa = ({
5137
5137
  [t, i]
5138
5138
  ), C = y(() => {
5139
5139
  if (A && r) return u(A, r);
5140
- }, [A, 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]), x = y(() => Ye(f, {}), [f]), E = j((B) => {
5140
+ }, [A, r, u]), w = y(() => C ?? c ?? 0, [C, c]), D = y(() => v ?? d, [v, d]), T = y(() => p ?? h, [p, h]), O = y(() => Je(l, []), [l]), N = y(() => Je(g, {}), [g]), x = y(() => Je(f, {}), [f]), E = j((B) => {
5141
5141
  if (o) {
5142
5142
  o(B);
5143
5143
  return;
@@ -5161,16 +5161,16 @@ const Ue = 420, _n = 440, Xa = ({
5161
5161
  sessionId: t,
5162
5162
  develop: n,
5163
5163
  ...i
5164
- }) => /* @__PURE__ */ b(Je, { ...i }), Jc = ({
5164
+ }) => /* @__PURE__ */ b(Qe, { ...i }), Jc = ({
5165
5165
  id: e,
5166
5166
  sessionId: t,
5167
5167
  develop: n,
5168
5168
  ...i
5169
5169
  }) => {
5170
- const r = Je.Timer;
5170
+ const r = Qe.Timer;
5171
5171
  if (r)
5172
5172
  return /* @__PURE__ */ b(r, { type: "countdown", ...i });
5173
- const { Countdown: a } = Je;
5173
+ const { Countdown: a } = Qe;
5174
5174
  return /* @__PURE__ */ b(a, { ...i });
5175
5175
  }, ro = {
5176
5176
  top: "top",
@@ -5186,7 +5186,7 @@ const Ue = 420, _n = 440, Xa = ({
5186
5186
  return [];
5187
5187
  }
5188
5188
  return e;
5189
- }, Qc = ({
5189
+ }, Fc = ({
5190
5190
  id: e,
5191
5191
  sessionId: t,
5192
5192
  develop: n,
@@ -5240,7 +5240,7 @@ function ao(e) {
5240
5240
  const t = Jt().viewRes;
5241
5241
  return t ? t(e) : e;
5242
5242
  }
5243
- const oo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+", Fc = ({
5243
+ const oo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+", Qc = ({
5244
5244
  id: e,
5245
5245
  sessionId: t,
5246
5246
  develop: n,
@@ -5343,7 +5343,7 @@ const Zc = ({
5343
5343
  }, [n, s, f == null ? void 0 : f.src, o]), u = y(() => {
5344
5344
  let D = l;
5345
5345
  if (!n && (f != null && f.icon) && (D = f.icon), typeof D == "string" && D) {
5346
- const T = Qt[D];
5346
+ const T = Ft[D];
5347
5347
  if (T) return /* @__PURE__ */ b(T, {});
5348
5348
  }
5349
5349
  return D;
@@ -5414,7 +5414,7 @@ const Zc = ({
5414
5414
  const f = _((k) => k.getDataSet), s = _((k) => k.getProps), m = y(
5415
5415
  () => rt(t, a),
5416
5416
  [t, a]
5417
- ), { options: u } = xe(c), S = y(() => {
5417
+ ), { options: u } = Ce(c), S = y(() => {
5418
5418
  if (d) {
5419
5419
  if (typeof d == "string")
5420
5420
  try {
@@ -5428,7 +5428,7 @@ const Zc = ({
5428
5428
  if (m && o) return f(m, o);
5429
5429
  }, [m, o, f]), w = y(() => n ? r : C != null && C !== "" ? String(C) : (A == null ? void 0 : A.content) !== void 0 ? A.content : r, [n, C, A == null ? void 0 : A.content, r]), D = y(() => {
5430
5430
  if (c && u.length > 0 && w !== void 0 && w !== null) {
5431
- const k = oe(u, w);
5431
+ const k = ce(u, w);
5432
5432
  return (k == null ? void 0 : k.label) ?? w;
5433
5433
  }
5434
5434
  return w;
@@ -5441,8 +5441,8 @@ const Zc = ({
5441
5441
  return A && typeof A == "object" && Object.keys(A).forEach((M) => {
5442
5442
  !["content", "color"].includes(M) && A[M] !== void 0 && A[M] !== null && (k[M] = A[M]);
5443
5443
  }), k;
5444
- }, [g, A]), N = (A == null ? void 0 : A.color) ?? v, E = Le(N) || T;
5445
- return /* @__PURE__ */ b(zn, { ...O, color: E, children: D || i });
5444
+ }, [g, A]), N = (A == null ? void 0 : A.color) ?? v, E = Ve(N) || T;
5445
+ return /* @__PURE__ */ b(Vn, { ...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
- Vn,
5482
+ qn,
5483
5483
  {
5484
5484
  ...p,
5485
5485
  current: A,
@@ -5500,7 +5500,7 @@ const Zc = ({
5500
5500
  items: i,
5501
5501
  children: r,
5502
5502
  ...a
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 }) => {
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
5504
  const a = _t(null), o = _t(null), [c, l] = mt(0), [d, v] = mt(!1), [h, p] = mt(0), [g, f] = mt(0), s = e === "horizontal";
5505
5505
  At(() => {
5506
5506
  const D = () => {
@@ -5521,7 +5521,7 @@ 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 ? (((x = o.current) == null ? void 0 : x.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(Yn, {}) : /* @__PURE__ */ b(ni, {})), w = i || (s ? /* @__PURE__ */ b(Gn, {}) : /* @__PURE__ */ b(Jn, {}));
5524
+ }, [s, u]), C = n || (s ? /* @__PURE__ */ b(Gn, {}) : /* @__PURE__ */ b(ni, {})), w = i || (s ? /* @__PURE__ */ b(Jn, {}) : /* @__PURE__ */ b(Fn, {}));
5525
5525
  return /* @__PURE__ */ st(
5526
5526
  "div",
5527
5527
  {
@@ -5681,8 +5681,8 @@ const Zc = ({
5681
5681
  const W = (ft) => Array.isArray(ft) ? ft.map((pt) => {
5682
5682
  const St = { ...pt };
5683
5683
  if (St.icon && typeof St.icon == "string") {
5684
- const Ot = Qt[St.icon];
5685
- Ot && (St.icon = /* @__PURE__ */ b(Ot, {}));
5684
+ const kt = Ft[St.icon];
5685
+ kt && (St.icon = /* @__PURE__ */ b(kt, {}));
5686
5686
  }
5687
5687
  return St.children && St.children.length > 0 && (St.children = W(St.children)), St;
5688
5688
  }) : [];
@@ -5785,37 +5785,37 @@ const Zc = ({
5785
5785
  motion: { motionName: "" }
5786
5786
  } : {}, q = y(() => {
5787
5787
  if (typeof M == "string" && M) {
5788
- const W = Qt[M];
5788
+ const W = Ft[M];
5789
5789
  if (W) return /* @__PURE__ */ b(W, {});
5790
5790
  }
5791
5791
  return M;
5792
5792
  }, [M]), et = y(() => {
5793
5793
  if (typeof B == "string" && B) {
5794
- const W = Qt[B];
5794
+ const W = Ft[B];
5795
5795
  if (W) return /* @__PURE__ */ b(W, {});
5796
5796
  }
5797
5797
  return B;
5798
- }, [B]), X = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), ct = Fr(), dt = e || ct.replace(/:/g, "-"), Dt = y(() => {
5798
+ }, [B]), X = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), ct = Qr(), dt = e || ct.replace(/:/g, "-"), Dt = y(() => {
5799
5799
  var St;
5800
5800
  if (!u || typeof u == "function") return "";
5801
5801
  const W = (St = u.subMenu) == null ? void 0 : St.root;
5802
5802
  if (!W) return "";
5803
5803
  const ft = [], pt = `[data-and-menu-id="${dt}"]`;
5804
5804
  if (W.item && Object.keys(W.item).length > 0) {
5805
- const Ot = Ee(W.item);
5806
- ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title { ${Ot} }`);
5805
+ const kt = $e(W.item);
5806
+ ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title { ${kt} }`);
5807
5807
  }
5808
5808
  if (W.itemIcon && Object.keys(W.itemIcon).length > 0) {
5809
- const Ot = Ee(W.itemIcon);
5810
- ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Ot} }`);
5809
+ const kt = $e(W.itemIcon);
5810
+ ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${kt} }`);
5811
5811
  }
5812
5812
  if (W.itemContent && Object.keys(W.itemContent).length > 0) {
5813
- const Ot = Ee(W.itemContent);
5814
- ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Ot} }`);
5813
+ const kt = $e(W.itemContent);
5814
+ ft.push(`${pt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${kt} }`);
5815
5815
  }
5816
5816
  if (W.selected && Object.keys(W.selected).length > 0) {
5817
- const Ot = Ee(W.selected);
5818
- ft.push(`${pt} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Ot} }`);
5817
+ const kt = $e(W.selected);
5818
+ ft.push(`${pt} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${kt} }`);
5819
5819
  }
5820
5820
  return ft.join(`
5821
5821
  `);
@@ -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
- qn,
5897
+ Wn,
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
- qn.Ribbon,
5948
+ Wn.Ribbon,
5949
5949
  {
5950
5950
  ...d,
5951
5951
  text: g,
@@ -6022,7 +6022,7 @@ const Zc = ({
6022
6022
  itemRender: h,
6023
6023
  ...p
6024
6024
  }) => {
6025
- const g = je(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = Se(ae), S = _(($) => $.addCommand), A = y(
6025
+ const g = Ke(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = De(oe), S = _(($) => $.addCommand), A = y(
6026
6026
  () => rt(m, f),
6027
6027
  [m, f]
6028
6028
  ), C = _(($) => A && s ? $.getDataSet(A, s) : null), w = y(() => !m || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [m, e, u]), D = _(
@@ -6075,7 +6075,7 @@ const Zc = ({
6075
6075
  return !f || !s ? M : ($, z) => {
6076
6076
  const K = typeof z == "number" ? z : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
6077
6077
  return /* @__PURE__ */ b(
6078
- ae.Provider,
6078
+ oe.Provider,
6079
6079
  {
6080
6080
  value: {
6081
6081
  dataSet: f,
@@ -6131,7 +6131,7 @@ const Zc = ({
6131
6131
  r && r(w);
6132
6132
  }, [r]);
6133
6133
  return /* @__PURE__ */ b(
6134
- Wn,
6134
+ Hn,
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
- Kn,
6176
+ Ln,
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 }), cn = (e, t) => {
6225
+ }) => /* @__PURE__ */ b(Kr, { ...r, children: i }), ln = (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) => cn(e, []).map((n) => ({
6238
+ ), vo = (e) => ln(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 = cn(s, {});
6278
+ const U = ln(s, {});
6279
6279
  return Object.fromEntries(
6280
6280
  Object.entries(U).map(([it, at]) => [
6281
6281
  it,
@@ -6309,10 +6309,10 @@ const Zc = ({
6309
6309
  lt === "title" && !a ? U = yt : lt === "extra" && !o ? it = yt : lt === "cover" && !c ? at = yt : lt === "actions" && !d ? (nt = [yt], bt = !0) : lt === "body" && tt.children ? vt.push(tt.children) : vt.push(yt);
6310
6310
  }), { titleSlot: U, extraSlot: it, coverSlot: at, actionsSlot: nt, otherChildren: vt, actionsFromChildren: bt };
6311
6311
  }, [w, a, o, c, d]), J = y(() => {
6312
- const U = cn(m, {});
6312
+ const U = ln(m, {});
6313
6313
  return L ? { actionsLiMargin: "0px", ...U } : U;
6314
6314
  }, [m, L]), Y = /* @__PURE__ */ b(
6315
- Qe,
6315
+ Ze,
6316
6316
  {
6317
6317
  ...D,
6318
6318
  size: E,
@@ -6349,10 +6349,10 @@ const Zc = ({
6349
6349
  Divider: o
6350
6350
  }
6351
6351
  },
6352
- children: /* @__PURE__ */ b(yn, { ...c, styles: a, children: l })
6352
+ children: /* @__PURE__ */ b(gn, { ...c, styles: a, children: l })
6353
6353
  }
6354
- ) : /* @__PURE__ */ b(yn, { ...c, styles: a, children: l });
6355
- }, En = (e) => {
6354
+ ) : /* @__PURE__ */ b(gn, { ...c, styles: a, children: l });
6355
+ }, Mn = (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
- }, ir = (e) => e.map((t) => t.divider ? { type: "divider", key: t.key } : {
6364
+ }, ar = (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 ? ir(t.children) : void 0
6369
+ children: t.children ? ar(t.children) : void 0
6370
6370
  }), ms = ({
6371
6371
  id: e,
6372
6372
  sessionId: t,
@@ -6385,7 +6385,7 @@ const Zc = ({
6385
6385
  index: f,
6386
6386
  ...s
6387
6387
  }) => {
6388
- const m = _((x) => x.addCommand), u = Se(ae), S = f ?? (u == null ? void 0 : u.index), A = y(
6388
+ const m = _((x) => x.addCommand), u = De(oe), S = f ?? (u == null ? void 0 : u.index), A = y(
6389
6389
  () => rt(t, i),
6390
6390
  [t, i]
6391
6391
  ), C = _((x) => {
@@ -6397,14 +6397,14 @@ const Zc = ({
6397
6397
  const x = C;
6398
6398
  if (Array.isArray(x == null ? void 0 : x.items)) return x.items;
6399
6399
  if (Array.isArray(x == null ? void 0 : x.value)) return x.value;
6400
- }, [C]), D = y(() => n ? w ?? En(o) ?? [] : A ? w ?? [] : En(o) ?? [], [n, A, w, o]), T = j(
6400
+ }, [C]), D = y(() => n ? w ?? Mn(o) ?? [] : A ? w ?? [] : Mn(o) ?? [], [n, A, w, o]), T = j(
6401
6401
  (x, E) => {
6402
6402
  if (h) {
6403
6403
  h(x, E);
6404
6404
  return;
6405
6405
  }
6406
6406
  if (v && t) {
6407
- const { actionName: k, arg: M } = ne(v, x, {
6407
+ const { actionName: k, arg: M } = re(v, x, {
6408
6408
  id: e,
6409
6409
  dataSet: i,
6410
6410
  dataSetField: r,
@@ -6426,10 +6426,10 @@ const Zc = ({
6426
6426
  ]
6427
6427
  ), O = y(
6428
6428
  () => ({
6429
- items: ir(D),
6429
+ items: ar(D),
6430
6430
  onClick: (x) => {
6431
6431
  if (c && t) {
6432
- const { actionName: E, arg: k } = ne(c, x.key, {
6432
+ const { actionName: E, arg: k } = re(c, x.key, {
6433
6433
  id: e,
6434
6434
  dataSet: i,
6435
6435
  dataSetField: r,
@@ -6442,7 +6442,7 @@ const Zc = ({
6442
6442
  },
6443
6443
  onSelect: (x) => {
6444
6444
  if (l && t) {
6445
- const { actionName: E, arg: k } = ne(l, x.key, {
6445
+ const { actionName: E, arg: k } = re(l, x.key, {
6446
6446
  id: e,
6447
6447
  dataSet: i,
6448
6448
  dataSetField: r,
@@ -6456,7 +6456,7 @@ const Zc = ({
6456
6456
  },
6457
6457
  onDeselect: (x) => {
6458
6458
  if (d && t) {
6459
- const { actionName: E, arg: k } = ne(d, x.key, {
6459
+ const { actionName: E, arg: k } = re(d, x.key, {
6460
6460
  id: e,
6461
6461
  dataSet: i,
6462
6462
  dataSetField: r,
@@ -6491,7 +6491,7 @@ const Zc = ({
6491
6491
  n && !p && !g && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
6492
6492
  !p && !n && a && /* @__PURE__ */ b(It, { children: /* @__PURE__ */ st(Yt, { children: [
6493
6493
  a,
6494
- /* @__PURE__ */ b(Jn, {})
6494
+ /* @__PURE__ */ b(Fn, {})
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(Ln, { ...r, children: i }), ps = ({
6518
+ }) => /* @__PURE__ */ b(zn, { ...r, children: i }), ps = ({
6519
6519
  id: e,
6520
6520
  sessionId: t,
6521
6521
  develop: n,
@@ -6536,12 +6536,12 @@ const Zc = ({
6536
6536
  }), f;
6537
6537
  }, [o, v]);
6538
6538
  return /* @__PURE__ */ b(qr, { ...g, value: p || "" });
6539
- }, he = (e) => {
6539
+ }, ge = (e) => {
6540
6540
  if (!e) return;
6541
- const t = Qt[e];
6541
+ const t = Ft[e];
6542
6542
  if (t)
6543
6543
  return Wt.createElement(t);
6544
- }, Ge = (e, t) => {
6544
+ }, Fe = (e, t) => {
6545
6545
  if (e == null) return t;
6546
6546
  if (typeof e == "string")
6547
6547
  try {
@@ -6572,20 +6572,20 @@ const Zc = ({
6572
6572
  ...m
6573
6573
  }) => {
6574
6574
  const u = _((k) => k.addCommand), S = y(
6575
- () => Ge(i, []),
6575
+ () => Fe(i, []),
6576
6576
  [i]
6577
- ), A = y(() => Ge(g, {}), [g]), C = y(() => he(o), [o]), w = y(() => {
6577
+ ), A = y(() => Fe(g, {}), [g]), C = y(() => ge(o), [o]), w = y(() => {
6578
6578
  if (c) {
6579
6579
  if (typeof c == "string") {
6580
- const k = Ge(c, null);
6580
+ const k = Fe(c, null);
6581
6581
  return k && typeof k == "object" ? {
6582
- start: he(k.start),
6583
- end: he(k.end)
6582
+ start: ge(k.start),
6583
+ end: ge(k.end)
6584
6584
  } : void 0;
6585
6585
  }
6586
6586
  return {
6587
- start: he(c.start),
6588
- end: he(c.end)
6587
+ start: ge(c.start),
6588
+ end: ge(c.end)
6589
6589
  };
6590
6590
  }
6591
6591
  }, [c]), D = j(
@@ -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
- We.Panel,
6612
+ Pe.Panel,
6613
6613
  {
6614
6614
  defaultSize: B.defaultSize,
6615
6615
  min: B.min,
@@ -6621,7 +6621,7 @@ const Zc = ({
6621
6621
  B.key || M
6622
6622
  );
6623
6623
  }) : S.map((k, M) => /* @__PURE__ */ b(
6624
- We.Panel,
6624
+ Pe.Panel,
6625
6625
  {
6626
6626
  defaultSize: k.defaultSize || void 0,
6627
6627
  min: k.min || void 0,
@@ -6648,7 +6648,7 @@ const Zc = ({
6648
6648
  },
6649
6649
  k.key || M
6650
6650
  )), { layout: N, ...x } = m, E = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
6651
- We,
6651
+ Pe,
6652
6652
  {
6653
6653
  ...x,
6654
6654
  orientation: r,
@@ -6724,14 +6724,14 @@ const Zc = ({
6724
6724
  return l ? B.slice(0, l) : B;
6725
6725
  }, [E, h, D, O, l]);
6726
6726
  if (!E || E.length === 0)
6727
- return o ? /* @__PURE__ */ b(ue, { children: o() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
6727
+ return o ? /* @__PURE__ */ b(fe, { children: o() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
6728
6728
  const M = (B, H) => {
6729
6729
  T(B), H && N(H);
6730
6730
  };
6731
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
- Vn,
6734
+ qn,
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__ */ st(ue, { children: [
6781
+ return /* @__PURE__ */ st(fe, { children: [
6782
6782
  /* @__PURE__ */ b("style", { children: So }),
6783
6783
  c && /* @__PURE__ */ b("style", { children: bo }),
6784
6784
  /* @__PURE__ */ b(
@@ -6800,7 +6800,7 @@ const Zc = ({
6800
6800
  ] });
6801
6801
  }
6802
6802
  if (!i) return null;
6803
- const s = Qt[i];
6803
+ const s = Ft[i];
6804
6804
  return s ? /* @__PURE__ */ b(
6805
6805
  s,
6806
6806
  {
@@ -6835,13 +6835,13 @@ 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
- Qe,
6838
+ Ze,
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
- Qe.Meta,
6844
+ Ze.Meta,
6845
6845
  {
6846
6846
  title: s.name,
6847
6847
  description: /* @__PURE__ */ st(Yt, { direction: "vertical", size: 4, children: [
@@ -6855,14 +6855,14 @@ const Zc = ({
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(zn, { 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(Vn, { color: "blue", children: m }, u)) })
6859
6859
  ] })
6860
6860
  }
6861
6861
  )
6862
6862
  },
6863
6863
  s.id
6864
6864
  )) });
6865
- }, Mn = ({ id: e, icon: t, title: n, description: i, style: r }) => /* @__PURE__ */ st(
6865
+ }, $n = ({ id: e, icon: t, title: n, description: i, style: r }) => /* @__PURE__ */ st(
6866
6866
  "div",
6867
6867
  {
6868
6868
  id: e,
@@ -6906,7 +6906,7 @@ const Zc = ({
6906
6906
  var T, O;
6907
6907
  const { storeBaseKey: p, arrayIndex: g } = y(() => {
6908
6908
  if (!n) return { storeBaseKey: void 0, arrayIndex: null };
6909
- const N = n.split(".")[0], { baseName: x, index: E } = we(N);
6909
+ const N = n.split(".")[0], { baseName: x, index: E } = xe(N);
6910
6910
  let k = E;
6911
6911
  if (k === null && h !== void 0 && h !== null) {
6912
6912
  const M = Number(h);
@@ -6978,7 +6978,7 @@ const Zc = ({
6978
6978
  const C = Jt(), w = l || C.componentResolver;
6979
6979
  if (!w)
6980
6980
  return /* @__PURE__ */ b(
6981
- Mn,
6981
+ $n,
6982
6982
  {
6983
6983
  id: c,
6984
6984
  title: A,
@@ -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(Hn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...o }, children: m && g !== null ? /* @__PURE__ */ b(
6991
- ae.Provider,
6990
+ return D ? /* @__PURE__ */ b(Zr, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Pn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...o }, children: m && g !== null ? /* @__PURE__ */ b(
6991
+ oe.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
- Mn,
6997
+ $n,
6998
6998
  {
6999
6999
  id: c,
7000
7000
  title: A,
@@ -7067,14 +7067,14 @@ const Zc = ({
7067
7067
  }
7068
7068
  ) : s;
7069
7069
  };
7070
- let sn = !1;
7070
+ let un = !1;
7071
7071
  function Cs(e) {
7072
- typeof window > "u" || (ge.GlobalWorkerOptions.workerSrc = e, sn = !0);
7072
+ typeof window > "u" || (ve.GlobalWorkerOptions.workerSrc = e, un = !0);
7073
7073
  }
7074
7074
  function wo(e) {
7075
- typeof window > "u" || sn && ge.GlobalWorkerOptions.workerSrc || (ge.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${ge.version}/build/pdf.worker.min.mjs`, sn = !0);
7075
+ typeof window > "u" || un && ve.GlobalWorkerOptions.workerSrc || (ve.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${ve.version}/build/pdf.worker.min.mjs`, un = !0);
7076
7076
  }
7077
- const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7077
+ const Do = 0.5, xo = 3, Rn = 0.1, Ts = ({
7078
7078
  id: e,
7079
7079
  sessionId: t,
7080
7080
  develop: n,
@@ -7093,31 +7093,31 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7093
7093
  At(() => {
7094
7094
  wo();
7095
7095
  }, []);
7096
- const f = _((Q) => Q.setDataSet), s = y(
7096
+ const f = _((F) => F.setDataSet), s = y(
7097
7097
  () => rt(t, i),
7098
7098
  [t, i]
7099
- ), m = _((Q) => {
7099
+ ), m = _((F) => {
7100
7100
  if (!s || !r) return;
7101
- const W = Q.getDataSet(s, r);
7101
+ const W = F.getDataSet(s, r);
7102
7102
  if (W != null && W !== "") return String(W);
7103
7103
  }), u = _(
7104
- (Q) => {
7104
+ (F) => {
7105
7105
  var W;
7106
- return t && e ? ((W = Q.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
7106
+ return t && e ? ((W = F.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
7107
7107
  }
7108
7108
  ), S = y(() => {
7109
- let Q;
7110
- if (m !== void 0) Q = m;
7109
+ let F;
7110
+ if (m !== void 0) F = m;
7111
7111
  else if (u && typeof u == "object") {
7112
7112
  const W = u.filePath;
7113
- W != null && W !== "" && (Q = String(W));
7113
+ W != null && W !== "" && (F = String(W));
7114
7114
  }
7115
- return Q === void 0 && (Q = a), Q;
7115
+ return F === void 0 && (F = a), F;
7116
7116
  }, [m, u, a]), A = y(() => {
7117
7117
  if (u && typeof u == "object") {
7118
- const Q = u.nonPdfBackgroundColor;
7119
- if (typeof Q == "string" && Q.trim())
7120
- return Q.trim();
7118
+ const F = u.nonPdfBackgroundColor;
7119
+ if (typeof F == "string" && F.trim())
7120
+ return F.trim();
7121
7121
  }
7122
7122
  return d;
7123
7123
  }, [u, d]), [C, w] = mt(0), [D, T] = mt(
@@ -7126,23 +7126,23 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7126
7126
  O.current = D;
7127
7127
  const [N, x] = mt(null), [E, k] = mt(!!S), [M, B] = mt("all"), [H, P] = mt("width"), [$, z] = mt(1), K = _t(null), V = _t(null), R = _t({}), L = _t(!1), J = _t(null), [Y, U] = mt(600), [it, at] = mt(800), nt = _t(0), vt = y(
7128
7128
  () => ({
7129
- cMapUrl: `https://unpkg.com/pdfjs-dist@${ge.version}/cmaps/`,
7129
+ cMapUrl: `https://unpkg.com/pdfjs-dist@${ve.version}/cmaps/`,
7130
7130
  cMapPacked: !0
7131
7131
  }),
7132
7132
  []
7133
- ), bt = (c || "").trim(), yt = _((Q) => {
7133
+ ), bt = (c || "").trim(), yt = _((F) => {
7134
7134
  if (!(!s || !bt))
7135
- return Q.getDataSet(s, `${bt}.targetPage`);
7135
+ return F.getDataSet(s, `${bt}.targetPage`);
7136
7136
  });
7137
7137
  At(() => {
7138
- const Q = V.current;
7139
- if (!Q) return;
7138
+ const F = V.current;
7139
+ if (!F) return;
7140
7140
  const W = new ResizeObserver(() => {
7141
- const St = Q.clientWidth, Ot = Q.clientHeight;
7142
- St > 0 && U(St), Ot > 0 && at(Ot);
7141
+ const St = F.clientWidth, kt = F.clientHeight;
7142
+ St > 0 && U(St), kt > 0 && at(kt);
7143
7143
  });
7144
- W.observe(Q);
7145
- const ft = Q.clientWidth, pt = Q.clientHeight;
7144
+ W.observe(F);
7145
+ const ft = F.clientWidth, pt = F.clientHeight;
7146
7146
  return ft > 0 && U(ft), pt > 0 && at(pt), () => W.disconnect();
7147
7147
  }, [S]);
7148
7148
  const tt = y(() => Math.max(240, Y - 16), [Y]), lt = y(
@@ -7154,9 +7154,9 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7154
7154
  ), Rt = y(
7155
7155
  () => Math.max(180, lt * $),
7156
7156
  [lt, $]
7157
- ), Mt = y(() => M === "all" ? Array.from({ length: C }, (Q, W) => W + 1) : [D], [M, C, D]), Bt = j(
7158
- (Q, W) => {
7159
- !s || !bt || (f(s, `${bt}.currentPage`, Q), W > 0 && f(s, `${bt}.totalPages`, W));
7157
+ ), Mt = y(() => M === "all" ? Array.from({ length: C }, (F, W) => W + 1) : [D], [M, C, D]), Bt = j(
7158
+ (F, W) => {
7159
+ !s || !bt || (f(s, `${bt}.currentPage`, F), W > 0 && f(s, `${bt}.totalPages`, W));
7160
7160
  },
7161
7161
  [s, bt, f]
7162
7162
  );
@@ -7164,8 +7164,8 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7164
7164
  C > 0 && Bt(D, C);
7165
7165
  }, [D, C, Bt]);
7166
7166
  const G = j(
7167
- (Q, W = "auto") => {
7168
- const ft = C > 0 ? Math.max(1, Math.min(Math.floor(Q), C)) : Math.max(1, Math.floor(Q));
7167
+ (F, W = "auto") => {
7168
+ const ft = C > 0 ? Math.max(1, Math.min(Math.floor(F), C)) : Math.max(1, Math.floor(F));
7169
7169
  if (T(ft), M === "all") {
7170
7170
  const pt = R.current[ft];
7171
7171
  pt && pt.scrollIntoView({ block: "start", behavior: W });
@@ -7174,35 +7174,47 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7174
7174
  [C, M]
7175
7175
  ), q = _t(G);
7176
7176
  q.current = G, At(() => {
7177
- const Q = yt;
7178
- typeof Q != "number" || !Number.isFinite(Q) || (G(Q, "auto"), s && bt && f(s, `${bt}.targetPage`, void 0));
7177
+ const F = yt;
7178
+ typeof F != "number" || !Number.isFinite(F) || (G(F, "auto"), s && bt && f(s, `${bt}.targetPage`, void 0));
7179
7179
  }, [yt, G, s, bt, f]), At(() => {
7180
- const Q = Math.max(1, o ?? 1);
7181
- T(Q);
7180
+ const F = Math.max(1, o ?? 1);
7181
+ T(F);
7182
7182
  }, [o]);
7183
7183
  const et = j(
7184
- ({ numPages: Q }) => {
7184
+ ({ numPages: F }) => {
7185
7185
  x(null), k(!1);
7186
- const W = O.current, ft = Math.min(Math.max(1, W), Q || 1);
7187
- w(Q), T(ft), L.current = !0, J.current = ft;
7186
+ const W = O.current, ft = Math.min(Math.max(1, W), F || 1);
7187
+ w(F), T(ft), L.current = !0, J.current = ft;
7188
7188
  },
7189
7189
  []
7190
- ), X = j((Q) => {
7191
- x(Q), k(!1), L.current = !1, J.current = null;
7190
+ ), X = j((F) => {
7191
+ x(F), k(!1), L.current = !1, J.current = null;
7192
7192
  }, []);
7193
7193
  At(() => {
7194
7194
  k(!!S), x(null), z(1), w(0), L.current = !!S, J.current = null, R.current = {};
7195
7195
  }, [S]), At(() => {
7196
- const Q = J.current;
7197
- if (Q == null || E || C <= 0 || M !== "all") return;
7196
+ const F = J.current;
7197
+ if (F == null || E || C <= 0 || M !== "all") return;
7198
7198
  let W = !1, ft = 0;
7199
7199
  const pt = 120, St = () => {
7200
7200
  if (W) return;
7201
7201
  ft++;
7202
- const Ot = Math.max(1, Math.min(Math.floor(Q), C)), Gt = R.current[Ot];
7203
- if (Gt && Gt.isConnected && Gt.clientHeight > 50) {
7204
- Gt.scrollIntoView({ block: "start", behavior: "auto" }), J.current = null, requestAnimationFrame(() => {
7205
- W || (L.current = !1);
7202
+ const kt = Math.max(1, Math.min(Math.floor(F), C));
7203
+ let ee = !0;
7204
+ for (let Gt = 1; Gt <= kt; Gt++) {
7205
+ const me = R.current[Gt];
7206
+ if (!me || !me.isConnected || me.clientHeight <= 50) {
7207
+ ee = !1;
7208
+ break;
7209
+ }
7210
+ }
7211
+ if (ee) {
7212
+ requestAnimationFrame(() => {
7213
+ if (W) return;
7214
+ const Gt = R.current[kt];
7215
+ Gt && Gt.scrollIntoView({ block: "start", behavior: "auto" }), J.current = null, requestAnimationFrame(() => {
7216
+ W || (L.current = !1);
7217
+ });
7206
7218
  });
7207
7219
  return;
7208
7220
  }
@@ -7216,49 +7228,49 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7216
7228
  W = !0;
7217
7229
  };
7218
7230
  }, [E, C, M]);
7219
- const ct = j((Q) => {
7231
+ const ct = j((F) => {
7220
7232
  z((W) => {
7221
- const ft = Number((W + Q).toFixed(2));
7233
+ const ft = Number((W + F).toFixed(2));
7222
7234
  return Math.max(Do, Math.min(xo, ft));
7223
7235
  });
7224
7236
  }, []), dt = j(() => {
7225
7237
  if (!S) return;
7226
- const Q = window.open(S, "_blank", "noopener,noreferrer");
7227
- Q && (Q.onload = () => {
7238
+ const F = window.open(S, "_blank", "noopener,noreferrer");
7239
+ F && (F.onload = () => {
7228
7240
  try {
7229
- Q.print();
7241
+ F.print();
7230
7242
  } catch {
7231
7243
  }
7232
7244
  });
7233
7245
  }, [S]), Dt = j(() => {
7234
7246
  if (!S) return;
7235
- const Q = document.createElement("a");
7236
- Q.href = S, Q.download = "", Q.rel = "noopener noreferrer", Q.target = "_blank", document.body.appendChild(Q), Q.click(), Q.remove();
7247
+ const F = document.createElement("a");
7248
+ F.href = S, F.download = "", F.rel = "noopener noreferrer", F.target = "_blank", document.body.appendChild(F), F.click(), F.remove();
7237
7249
  }, [S]), Z = j(() => {
7238
7250
  var W;
7239
- const Q = K.current;
7240
- Q && ((W = Q.requestFullscreen) == null || W.call(Q));
7251
+ const F = K.current;
7252
+ F && ((W = F.requestFullscreen) == null || W.call(F));
7241
7253
  }, []), gt = j(() => {
7242
7254
  document.fullscreenElement && document.exitFullscreen();
7243
7255
  }, []), xt = j(() => {
7244
7256
  if (E || M !== "all" || C <= 0 || L.current) return;
7245
- const Q = V.current;
7246
- if (!Q) return;
7247
- const W = Q.scrollTop + Q.clientHeight * 0.35;
7257
+ const F = V.current;
7258
+ if (!F) return;
7259
+ const W = F.scrollTop + F.clientHeight * 0.35;
7248
7260
  let ft = D, pt = Number.POSITIVE_INFINITY;
7249
7261
  for (let St = 1; St <= C; St++) {
7250
- const Ot = R.current[St];
7251
- if (!Ot) continue;
7252
- const Gt = Math.abs(Ot.offsetTop - W);
7253
- Gt < pt && (pt = Gt, ft = St);
7262
+ const kt = R.current[St];
7263
+ if (!kt) continue;
7264
+ const ee = Math.abs(kt.offsetTop - W);
7265
+ ee < pt && (pt = ee, ft = St);
7254
7266
  }
7255
7267
  ft !== D && T(ft);
7256
7268
  }, [E, M, C, D]);
7257
7269
  return At(() => {
7258
7270
  if (!u || typeof u != "object") return;
7259
- const Q = u._pdfCmdNonce, W = u.pdfCommand, ft = u.pdfCommandArg;
7260
- if (!(Q == null || Q === nt.current || !W)) {
7261
- switch (nt.current = Q, W) {
7271
+ const F = u._pdfCmdNonce, W = u.pdfCommand, ft = u.pdfCommandArg;
7272
+ if (!(F == null || F === nt.current || !W)) {
7273
+ switch (nt.current = F, W) {
7262
7274
  case "print":
7263
7275
  dt();
7264
7276
  break;
@@ -7281,10 +7293,10 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7281
7293
  P("height"), z(1);
7282
7294
  break;
7283
7295
  case "zoomIn":
7284
- ct($n);
7296
+ ct(Rn);
7285
7297
  break;
7286
7298
  case "zoomOut":
7287
- ct(-$n);
7299
+ ct(-Rn);
7288
7300
  break;
7289
7301
  case "previewSingle":
7290
7302
  B("single");
@@ -7321,7 +7333,7 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7321
7333
  display: "flex",
7322
7334
  flexDirection: "column",
7323
7335
  width: "100%",
7324
- minHeight: 320,
7336
+ flexGrow: 1,
7325
7337
  ...g
7326
7338
  },
7327
7339
  children: /* @__PURE__ */ b(
@@ -7338,13 +7350,13 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7338
7350
  border: n ? "1px dashed #ccc" : void 0
7339
7351
  },
7340
7352
  children: N ? /* @__PURE__ */ b(
7341
- Wn,
7353
+ Hn,
7342
7354
  {
7343
7355
  type: "error",
7344
7356
  message: (l == null ? void 0 : l.trim()) || N.message,
7345
7357
  showIcon: !0
7346
7358
  }
7347
- ) : /* @__PURE__ */ st(ue, { children: [
7359
+ ) : /* @__PURE__ */ st(fe, { children: [
7348
7360
  E ? /* @__PURE__ */ b(
7349
7361
  "div",
7350
7362
  {
@@ -7358,7 +7370,7 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7358
7370
  zIndex: 2,
7359
7371
  pointerEvents: "none"
7360
7372
  },
7361
- children: /* @__PURE__ */ b(Hn, {})
7373
+ children: /* @__PURE__ */ b(Pn, {})
7362
7374
  }
7363
7375
  ) : null,
7364
7376
  /* @__PURE__ */ b(
@@ -7369,11 +7381,11 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7369
7381
  onLoadError: X,
7370
7382
  loading: null,
7371
7383
  options: vt,
7372
- children: Mt.map((Q) => /* @__PURE__ */ b(
7384
+ children: Mt.map((F) => /* @__PURE__ */ b(
7373
7385
  "div",
7374
7386
  {
7375
7387
  ref: (W) => {
7376
- R.current[Q] = W;
7388
+ R.current[F] = W;
7377
7389
  },
7378
7390
  style: {
7379
7391
  display: "flex",
@@ -7384,7 +7396,7 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7384
7396
  children: /* @__PURE__ */ b(
7385
7397
  ci,
7386
7398
  {
7387
- pageNumber: Q,
7399
+ pageNumber: F,
7388
7400
  width: H === "width" ? ot : void 0,
7389
7401
  height: H === "height" ? Rt : void 0,
7390
7402
  renderTextLayer: !1,
@@ -7392,7 +7404,7 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
7392
7404
  }
7393
7405
  )
7394
7406
  },
7395
- Q
7407
+ F
7396
7408
  ))
7397
7409
  },
7398
7410
  S
@@ -7762,7 +7774,7 @@ export {
7762
7774
  gc as AndButton,
7763
7775
  rs as AndCalendar,
7764
7776
  fs as AndCard,
7765
- Qc as AndCarousel,
7777
+ Fc as AndCarousel,
7766
7778
  Ec as AndCascade,
7767
7779
  kc as AndCheckbox,
7768
7780
  ys as AndColumn,
@@ -7775,7 +7787,7 @@ export {
7775
7787
  xs as AndDynamicContainer,
7776
7788
  Bc as AndFormItem,
7777
7789
  ws as AndIcon,
7778
- Fc as AndImage,
7790
+ Qc as AndImage,
7779
7791
  Zc as AndImageGroup,
7780
7792
  pc as AndInput,
7781
7793
  bc as AndInputArea,
@@ -7827,7 +7839,7 @@ export {
7827
7839
  _s as AndVPie,
7828
7840
  As as AndWatermark,
7829
7841
  hc as COMMON_TOKENS,
7830
- ae as DataSetInheritContext,
7842
+ oe as DataSetInheritContext,
7831
7843
  nc as cleanupAllMounts,
7832
7844
  tc as clearCssCache,
7833
7845
  I as createCommand,
@@ -7835,47 +7847,47 @@ export {
7835
7847
  ea as dictValueEquals,
7836
7848
  Ns as dispatchPdfViewerCommand,
7837
7849
  wo as ensurePdfjsWorker,
7838
- oe as findDictOptionByValue,
7850
+ ce as findDictOptionByValue,
7839
7851
  Ca as formatByType,
7840
- an as getAccessToken,
7852
+ cn as getAccessToken,
7841
7853
  Jt as getCoreConfig,
7842
7854
  rt as getDataSetStoreKey,
7843
- un as getDictOptions,
7844
- Xe as getNestedValue,
7845
- pe as getValidateStoreKey,
7855
+ dn as getDictOptions,
7856
+ tn as getNestedValue,
7857
+ be as getValidateStoreKey,
7846
7858
  gi as initReactMount,
7847
- er as isTokenName,
7848
- Ft as mergeStoreProps,
7859
+ nr as isTokenName,
7860
+ Qt as mergeStoreProps,
7849
7861
  ec as mountReactComponent,
7850
- ne as parseAction,
7851
- we as parseArrayNotation,
7862
+ re as parseAction,
7863
+ xe as parseArrayNotation,
7852
7864
  wt as parseChangeAction,
7853
7865
  wi as parseClickAction,
7854
- ke as parseNestedPath,
7866
+ _e as parseNestedPath,
7855
7867
  uc as parseQueryAction,
7856
- Zn as processValidationRules,
7868
+ Xn as processValidationRules,
7857
7869
  dc as req,
7858
- ie as request,
7870
+ ae as request,
7859
7871
  yc as resolveTokenColorWithToken,
7860
7872
  fc as setCoreConfig,
7861
7873
  vi as setNestedValue,
7862
7874
  Cs as setPdfjsWorkerSrc,
7863
- In as upload,
7875
+ tr as upload,
7864
7876
  ac as useAddCommand,
7865
7877
  _ as useAndStore,
7866
7878
  na as useApiService,
7867
7879
  sc as useCommandsStore,
7868
- xe as useDictOptions,
7880
+ Ce as useDictOptions,
7869
7881
  Lt as useFieldValidation,
7870
7882
  cc as useItemStore,
7871
7883
  oc as usePopCommand,
7872
- fn as useRemoteOptions,
7873
- Le as useResolveTokenColor,
7874
- je as useResolvedDataSet,
7884
+ mn as useRemoteOptions,
7885
+ Ve as useResolveTokenColor,
7886
+ Ke as useResolvedDataSet,
7875
7887
  rc as useStore,
7876
7888
  ic as useStoreByName,
7877
7889
  bi as useStoreData,
7878
- Xn as validateWithSchema,
7890
+ In as validateWithSchema,
7879
7891
  Si as watchCommands,
7880
7892
  te as withBaseChart
7881
7893
  };