@nuwatop/code-canvas-core 0.4.9 → 0.5.1

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
@@ -6,7 +6,7 @@ import Ur from "antd/locale/zh_CN";
6
6
  import { create as Yr } from "zustand";
7
7
  import { subscribeWithSelector as Gr } from "zustand/middleware";
8
8
  import { immer as Jr } from "zustand/middleware/immer";
9
- import Wt, { useMemo as y, useCallback as j, useEffect as Dt, createContext as Qr, useContext as be, useState as mt, useRef as Mt, useLayoutEffect as Hn, useId as Fr, Suspense as Zr } from "react";
9
+ import Wt, { useMemo as y, useCallback as j, useEffect as Dt, createContext as Qr, useContext as be, useState as ht, useRef as Mt, useLayoutEffect as Hn, useId as Fr, Suspense as Zr } from "react";
10
10
  import * as Jt from "@ant-design/icons";
11
11
  import { CloseCircleOutlined as Xr, PlusOutlined as Pn, UploadOutlined as Ir, MenuOutlined as ti, MinusOutlined as ei, LeftOutlined as Un, RightOutlined as Yn, UpOutlined as ni, DownOutlined as Gn, ApiOutlined as ri, InboxOutlined as ii } from "@ant-design/icons";
12
12
  import ai from "clsx";
@@ -488,7 +488,7 @@ function tn(e) {
488
488
  t[i] = t[i] || [], t[i].push(n);
489
489
  }), t;
490
490
  }
491
- function Lt(e) {
491
+ function zt(e) {
492
492
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
493
493
  n[i - 1] = arguments[i];
494
494
  var r = 0, a = n.length;
@@ -619,9 +619,9 @@ function Sn(e, t) {
619
619
  return e;
620
620
  }
621
621
  var Qn = function(t, n, i, r, a, o) {
622
- t.required && (!i.hasOwnProperty(t.field) || Ot(n, o || t.type)) && r.push(Lt(a.messages.required, t.fullField));
622
+ t.required && (!i.hasOwnProperty(t.field) || Ot(n, o || t.type)) && r.push(zt(a.messages.required, t.fullField));
623
623
  }, Mi = function(t, n, i, r, a) {
624
- (/^\s+$/.test(n) || n === "") && r.push(Lt(a.messages.whitespace, t.fullField));
624
+ (/^\s+$/.test(n) || n === "") && r.push(zt(a.messages.whitespace, t.fullField));
625
625
  }, ke, $i = function() {
626
626
  if (ke)
627
627
  return ke;
@@ -702,24 +702,24 @@ var Qn = function(t, n, i, r, a, o) {
702
702
  return;
703
703
  }
704
704
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = t.type;
705
- o.indexOf(c) > -1 ? he[c](n) || r.push(Lt(a.messages.types[c], t.fullField, t.type)) : c && typeof n !== t.type && r.push(Lt(a.messages.types[c], t.fullField, t.type));
705
+ o.indexOf(c) > -1 ? he[c](n) || r.push(zt(a.messages.types[c], t.fullField, t.type)) : c && typeof n !== t.type && r.push(zt(a.messages.types[c], t.fullField, t.type));
706
706
  }, ji = function(t, n, i, r, a) {
707
707
  var o = typeof t.len == "number", c = typeof t.min == "number", l = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, v = n, h = null, p = typeof n == "number", g = typeof n == "string", f = Array.isArray(n);
708
708
  if (p ? h = "number" : g ? h = "string" : f && (h = "array"), !h)
709
709
  return !1;
710
- f && (v = n.length), g && (v = n.replace(d, "_").length), o ? v !== t.len && r.push(Lt(a.messages[h].len, t.fullField, t.len)) : c && !l && v < t.min ? r.push(Lt(a.messages[h].min, t.fullField, t.min)) : l && !c && v > t.max ? r.push(Lt(a.messages[h].max, t.fullField, t.max)) : c && l && (v < t.min || v > t.max) && r.push(Lt(a.messages[h].range, t.fullField, t.min, t.max));
710
+ f && (v = n.length), g && (v = n.replace(d, "_").length), o ? v !== t.len && r.push(zt(a.messages[h].len, t.fullField, t.len)) : c && !l && v < t.min ? r.push(zt(a.messages[h].min, t.fullField, t.min)) : l && !c && v > t.max ? r.push(zt(a.messages[h].max, t.fullField, t.max)) : c && l && (v < t.min || v > t.max) && r.push(zt(a.messages[h].range, t.fullField, t.min, t.max));
711
711
  }, ce = "enum", Bi = function(t, n, i, r, a) {
712
- t[ce] = Array.isArray(t[ce]) ? t[ce] : [], t[ce].indexOf(n) === -1 && r.push(Lt(a.messages[ce], t.fullField, t[ce].join(", ")));
712
+ t[ce] = Array.isArray(t[ce]) ? t[ce] : [], t[ce].indexOf(n) === -1 && r.push(zt(a.messages[ce], t.fullField, t[ce].join(", ")));
713
713
  }, Ki = function(t, n, i, r, a) {
714
714
  if (t.pattern) {
715
715
  if (t.pattern instanceof RegExp)
716
- t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(Lt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
716
+ t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(zt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
717
717
  else if (typeof t.pattern == "string") {
718
718
  var o = new RegExp(t.pattern);
719
- o.test(n) || r.push(Lt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
719
+ o.test(n) || r.push(zt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
720
720
  }
721
721
  }
722
- }, ht = {
722
+ }, yt = {
723
723
  required: Qn,
724
724
  whitespace: Mi,
725
725
  type: Ri,
@@ -731,7 +731,7 @@ var Qn = function(t, n, i, r, a, o) {
731
731
  if (c) {
732
732
  if (Ot(n, "string") && !t.required)
733
733
  return i();
734
- ht.required(t, n, r, o, a, "string"), Ot(n, "string") || (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a), ht.pattern(t, n, r, o, a), t.whitespace === !0 && ht.whitespace(t, n, r, o, a));
734
+ yt.required(t, n, r, o, a, "string"), Ot(n, "string") || (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a), yt.pattern(t, n, r, o, a), t.whitespace === !0 && yt.whitespace(t, n, r, o, a));
735
735
  }
736
736
  i(o);
737
737
  }, zi = function(t, n, i, r, a) {
@@ -739,7 +739,7 @@ var Qn = function(t, n, i, r, a, o) {
739
739
  if (c) {
740
740
  if (Ot(n) && !t.required)
741
741
  return i();
742
- ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
742
+ yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
743
743
  }
744
744
  i(o);
745
745
  }, Vi = function(t, n, i, r, a) {
@@ -747,7 +747,7 @@ var Qn = function(t, n, i, r, a, o) {
747
747
  if (c) {
748
748
  if (n === "" && (n = void 0), Ot(n) && !t.required)
749
749
  return i();
750
- ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
750
+ yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
751
751
  }
752
752
  i(o);
753
753
  }, qi = function(t, n, i, r, a) {
@@ -755,7 +755,7 @@ var Qn = function(t, n, i, r, a, o) {
755
755
  if (c) {
756
756
  if (Ot(n) && !t.required)
757
757
  return i();
758
- ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
758
+ yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
759
759
  }
760
760
  i(o);
761
761
  }, Wi = function(t, n, i, r, a) {
@@ -763,7 +763,7 @@ var Qn = function(t, n, i, r, a, o) {
763
763
  if (c) {
764
764
  if (Ot(n) && !t.required)
765
765
  return i();
766
- ht.required(t, n, r, o, a), Ot(n) || ht.type(t, n, r, o, a);
766
+ yt.required(t, n, r, o, a), Ot(n) || yt.type(t, n, r, o, a);
767
767
  }
768
768
  i(o);
769
769
  }, Hi = function(t, n, i, r, a) {
@@ -771,7 +771,7 @@ var Qn = function(t, n, i, r, a, o) {
771
771
  if (c) {
772
772
  if (Ot(n) && !t.required)
773
773
  return i();
774
- ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
774
+ yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
775
775
  }
776
776
  i(o);
777
777
  }, Pi = function(t, n, i, r, a) {
@@ -779,7 +779,7 @@ var Qn = function(t, n, i, r, a, o) {
779
779
  if (c) {
780
780
  if (Ot(n) && !t.required)
781
781
  return i();
782
- ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
782
+ yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
783
783
  }
784
784
  i(o);
785
785
  }, Ui = function(t, n, i, r, a) {
@@ -787,7 +787,7 @@ var Qn = function(t, n, i, r, a, o) {
787
787
  if (c) {
788
788
  if (n == null && !t.required)
789
789
  return i();
790
- ht.required(t, n, r, o, a, "array"), n != null && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
790
+ yt.required(t, n, r, o, a, "array"), n != null && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
791
791
  }
792
792
  i(o);
793
793
  }, Yi = function(t, n, i, r, a) {
@@ -795,7 +795,7 @@ var Qn = function(t, n, i, r, a, o) {
795
795
  if (c) {
796
796
  if (Ot(n) && !t.required)
797
797
  return i();
798
- ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
798
+ yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
799
799
  }
800
800
  i(o);
801
801
  }, Gi = "enum", Ji = function(t, n, i, r, a) {
@@ -803,7 +803,7 @@ var Qn = function(t, n, i, r, a, o) {
803
803
  if (c) {
804
804
  if (Ot(n) && !t.required)
805
805
  return i();
806
- ht.required(t, n, r, o, a), n !== void 0 && ht[Gi](t, n, r, o, a);
806
+ yt.required(t, n, r, o, a), n !== void 0 && yt[Gi](t, n, r, o, a);
807
807
  }
808
808
  i(o);
809
809
  }, Qi = function(t, n, i, r, a) {
@@ -811,7 +811,7 @@ var Qn = function(t, n, i, r, a, o) {
811
811
  if (c) {
812
812
  if (Ot(n, "string") && !t.required)
813
813
  return i();
814
- ht.required(t, n, r, o, a), Ot(n, "string") || ht.pattern(t, n, r, o, a);
814
+ yt.required(t, n, r, o, a), Ot(n, "string") || yt.pattern(t, n, r, o, a);
815
815
  }
816
816
  i(o);
817
817
  }, Fi = function(t, n, i, r, a) {
@@ -819,21 +819,21 @@ var Qn = function(t, n, i, r, a, o) {
819
819
  if (c) {
820
820
  if (Ot(n, "date") && !t.required)
821
821
  return i();
822
- if (ht.required(t, n, r, o, a), !Ot(n, "date")) {
822
+ if (yt.required(t, n, r, o, a), !Ot(n, "date")) {
823
823
  var l;
824
- n instanceof Date ? l = n : l = new Date(n), ht.type(t, l, r, o, a), l && ht.range(t, l.getTime(), r, o, a);
824
+ n instanceof Date ? l = n : l = new Date(n), yt.type(t, l, r, o, a), l && yt.range(t, l.getTime(), r, o, a);
825
825
  }
826
826
  }
827
827
  i(o);
828
828
  }, Zi = function(t, n, i, r, a) {
829
829
  var o = [], c = Array.isArray(n) ? "array" : typeof n;
830
- ht.required(t, n, r, o, a, c), i(o);
830
+ yt.required(t, n, r, o, a, c), i(o);
831
831
  }, We = 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 (Ot(n, o) && !t.required)
835
835
  return i();
836
- ht.required(t, n, r, c, a, o), Ot(n, o) || ht.type(t, n, r, c, a);
836
+ yt.required(t, n, r, c, a, o), Ot(n, o) || yt.type(t, n, r, c, a);
837
837
  }
838
838
  i(c);
839
839
  }, Xi = function(t, n, i, r, a) {
@@ -841,7 +841,7 @@ var Qn = function(t, n, i, r, a, o) {
841
841
  if (c) {
842
842
  if (Ot(n) && !t.required)
843
843
  return i();
844
- ht.required(t, n, r, o, a);
844
+ yt.required(t, n, r, o, a);
845
845
  }
846
846
  i(o);
847
847
  }, pe = {
@@ -994,7 +994,7 @@ var nn = en(), we = /* @__PURE__ */ function() {
994
994
  m(O);
995
995
  else {
996
996
  if (u.required && !s.value)
997
- return u.message !== void 0 ? O = [].concat(u.message).map(bn(u, c)) : l.error && (O = [l.error(u, Lt(l.messages.required, u.field))]), m(O);
997
+ return u.message !== void 0 ? O = [].concat(u.message).map(bn(u, c)) : l.error && (O = [l.error(u, zt(l.messages.required, u.field))]), m(O);
998
998
  var N = {};
999
999
  u.defaultField && Object.keys(s.value).map(function(k) {
1000
1000
  N[k] = u.defaultField;
@@ -1034,7 +1034,7 @@ var nn = en(), we = /* @__PURE__ */ function() {
1034
1034
  }, c);
1035
1035
  }, t.getType = function(i) {
1036
1036
  if (i.type === void 0 && i.pattern instanceof RegExp && (i.type = "pattern"), typeof i.validator != "function" && i.type && !pe.hasOwnProperty(i.type))
1037
- throw new Error(Lt("Unknown rule type %s", i.type));
1037
+ throw new Error(zt("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")
@@ -1083,7 +1083,7 @@ function Zn(e, t, n, i) {
1083
1083
  i(o || []);
1084
1084
  });
1085
1085
  }
1086
- function Bt(e) {
1086
+ function Kt(e) {
1087
1087
  const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id: a, develop: o } = e, c = _((w) => w.setValidateResult), l = _((w) => w.getProps), d = _((w) => w.setProps), v = y(
1088
1088
  () => ge(r, n),
1089
1089
  [r, n]
@@ -1277,7 +1277,7 @@ function na() {
1277
1277
  };
1278
1278
  }
1279
1279
  function De(e) {
1280
- const [t, n] = mt([]), [i, r] = mt(!1), [a, o] = mt(null);
1280
+ const [t, n] = ht([]), [i, r] = ht(!1), [a, o] = ht(null);
1281
1281
  return Dt(() => {
1282
1282
  if (!e) {
1283
1283
  n([]);
@@ -1296,7 +1296,7 @@ function De(e) {
1296
1296
  }, [e]), { options: t, loading: i, error: a };
1297
1297
  }
1298
1298
  function un(e, t) {
1299
- const [n, i] = mt([]), [r, a] = mt(!1), [o, c] = mt(null), {
1299
+ const [n, i] = ht([]), [r, a] = ht(!1), [o, c] = ht(null), {
1300
1300
  labelKey: l = "label",
1301
1301
  valueKey: d = "value",
1302
1302
  immediate: v = !0,
@@ -1835,7 +1835,7 @@ const er = (e) => {
1835
1835
  P,
1836
1836
  $
1837
1837
  ]
1838
- ), gt = j(
1838
+ ), pt = j(
1839
1839
  (q) => {
1840
1840
  const et = Fn(p || []);
1841
1841
  Zn(
@@ -1866,7 +1866,7 @@ const er = (e) => {
1866
1866
  M(A, I(Z, st));
1867
1867
  }
1868
1868
  g && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
1869
- k.current = null, gt(et);
1869
+ k.current = null, pt(et);
1870
1870
  }, Na));
1871
1871
  },
1872
1872
  [
@@ -1882,18 +1882,18 @@ const er = (e) => {
1882
1882
  it,
1883
1883
  M,
1884
1884
  g,
1885
- gt
1885
+ pt
1886
1886
  ]
1887
- ), yt = j(() => {
1887
+ ), gt = j(() => {
1888
1888
  if (!f) return;
1889
1889
  const q = K && N ? String(B(K, N) ?? "") : E.current;
1890
- gt(q);
1890
+ pt(q);
1891
1891
  }, [
1892
1892
  f,
1893
1893
  K,
1894
1894
  N,
1895
1895
  B,
1896
- gt
1896
+ pt
1897
1897
  ]), tt = j(
1898
1898
  (q) => {
1899
1899
  const Z = it.onPressEnter;
@@ -1954,8 +1954,8 @@ const er = (e) => {
1954
1954
  if (U == null || !K || !N)
1955
1955
  return;
1956
1956
  const q = String(B(K, N) ?? "");
1957
- gt(q);
1958
- }, [U, K, N, B, gt]);
1957
+ pt(q);
1958
+ }, [U, K, N, B, pt]);
1959
1959
  const ot = y(() => ka(h), [h]), Ct = y(
1960
1960
  () => ot ? { components: { Input: ot } } : void 0,
1961
1961
  [ot]
@@ -1966,7 +1966,7 @@ const er = (e) => {
1966
1966
  ...it,
1967
1967
  value: at,
1968
1968
  onChange: St,
1969
- onBlur: yt,
1969
+ onBlur: gt,
1970
1970
  onPressEnter: tt,
1971
1971
  onClear: ut,
1972
1972
  status: !i && kt ? "error" : void 0,
@@ -2007,7 +2007,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2007
2007
  }
2008
2008
  ), D = _(
2009
2009
  (G) => C && r ? G.getDataSet(C, r) : void 0
2010
- ), { validate: T, help: O } = Bt({
2010
+ ), { validate: T, help: O } = Kt({
2011
2011
  rules: a,
2012
2012
  dataSet: i,
2013
2013
  dataSetField: r,
@@ -2209,7 +2209,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2209
2209
  }
2210
2210
  ), O = _(
2211
2211
  (P) => D && u ? P.getDataSet(D, u) : void 0
2212
- ), { validate: N, help: A } = Bt({
2212
+ ), { validate: N, help: A } = Kt({
2213
2213
  rules: a,
2214
2214
  dataSet: m,
2215
2215
  dataSetField: u,
@@ -2344,7 +2344,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2344
2344
  }
2345
2345
  ), C = _(
2346
2346
  (k) => S && r ? k.getDataSet(S, r) : void 0
2347
- ), { validate: w, help: D } = Bt({
2347
+ ), { validate: w, help: D } = Kt({
2348
2348
  rules: a,
2349
2349
  dataSet: i,
2350
2350
  dataSetField: r,
@@ -2532,7 +2532,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2532
2532
  params: $ == null ? void 0 : $.params,
2533
2533
  field: $ == null ? void 0 : $.field
2534
2534
  }
2535
- ), L = K || R, { validate: Q, help: G } = Bt({
2535
+ ), L = K || R, { validate: Q, help: G } = Kt({
2536
2536
  rules: l,
2537
2537
  dataSet: i,
2538
2538
  dataSetField: r,
@@ -2551,7 +2551,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2551
2551
  });
2552
2552
  const tt = ae(it, U);
2553
2553
  return (tt == null ? void 0 : tt.value) ?? U;
2554
- }, [U, it]), gt = j(
2554
+ }, [U, it]), pt = j(
2555
2555
  (tt, ut) => {
2556
2556
  if (p) {
2557
2557
  p(tt, ut);
@@ -2591,7 +2591,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2591
2591
  },
2592
2592
  []
2593
2593
  );
2594
- const yt = j((tt, ut) => ((ut == null ? void 0 : ut.label) ?? "").toLowerCase().includes(tt.toLowerCase()), []);
2594
+ const gt = j((tt, ut) => ((ut == null ? void 0 : ut.label) ?? "").toLowerCase().includes(tt.toLowerCase()), []);
2595
2595
  return /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
2596
2596
  /* @__PURE__ */ b(
2597
2597
  Rn,
@@ -2601,9 +2601,9 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2601
2601
  open: n ? !1 : void 0,
2602
2602
  value: nt,
2603
2603
  options: it,
2604
- onChange: gt,
2604
+ onChange: pt,
2605
2605
  onBlur: St,
2606
- filterOption: yt,
2606
+ filterOption: gt,
2607
2607
  loading: L,
2608
2608
  status: G ? "error" : void 0,
2609
2609
  style: { width: "100%", ...at.style }
@@ -2636,7 +2636,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2636
2636
  }
2637
2637
  ), u = _(
2638
2638
  (T) => s && r ? T.getDataSet(s, r) : void 0
2639
- ), { validate: S, help: x } = Bt({
2639
+ ), { validate: S, help: x } = Kt({
2640
2640
  rules: a,
2641
2641
  dataSet: i,
2642
2642
  dataSetField: r,
@@ -2711,7 +2711,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2711
2711
  }
2712
2712
  ), S = _(
2713
2713
  (A) => m && r ? A.getDataSet(m, r) : void 0
2714
- ), { validate: x, help: C } = Bt({
2714
+ ), { validate: x, help: C } = Kt({
2715
2715
  rules: c,
2716
2716
  dataSet: i,
2717
2717
  dataSetField: r,
@@ -2797,7 +2797,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2797
2797
  [t, i]
2798
2798
  ), S = y(() => {
2799
2799
  if (u && r) return s(u, r);
2800
- }, [u, r, s]), { validate: x, help: C } = Bt({
2800
+ }, [u, r, s]), { validate: x, help: C } = Kt({
2801
2801
  rules: v,
2802
2802
  dataSet: i,
2803
2803
  dataSetField: r,
@@ -2867,7 +2867,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2867
2867
  }
2868
2868
  ), S = _(
2869
2869
  (A) => m && r ? A.getDataSet(m, r) : void 0
2870
- ), { validate: x, help: C } = Bt({
2870
+ ), { validate: x, help: C } = Kt({
2871
2871
  rules: c,
2872
2872
  dataSet: i,
2873
2873
  dataSetField: r,
@@ -2950,7 +2950,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
2950
2950
  }
2951
2951
  ), O = _(
2952
2952
  (K) => D && r ? K.getDataSet(D, r) : void 0
2953
- ), { validate: N, help: A } = Bt({
2953
+ ), { validate: N, help: A } = Kt({
2954
2954
  rules: v,
2955
2955
  dataSet: i,
2956
2956
  dataSetField: r,
@@ -3059,7 +3059,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3059
3059
  }
3060
3060
  ), A = _(
3061
3061
  (L) => O && r ? L.getDataSet(O, r) : void 0
3062
- ), { validate: E, help: k } = Bt({
3062
+ ), { validate: E, help: k } = Kt({
3063
3063
  rules: d,
3064
3064
  dataSet: i,
3065
3065
  dataSetField: r,
@@ -3156,7 +3156,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3156
3156
  }
3157
3157
  ), u = _(
3158
3158
  (O) => s && r ? O.getDataSet(s, r) : void 0
3159
- ), { validate: S, help: x } = Bt({
3159
+ ), { validate: S, help: x } = Kt({
3160
3160
  rules: o,
3161
3161
  dataSet: i,
3162
3162
  dataSetField: r,
@@ -3267,12 +3267,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3267
3267
  remoteUrl: f,
3268
3268
  ...s
3269
3269
  }) => {
3270
- const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S = Mt(null), [x, C] = mt([]), [w, D] = mt(!1), T = y(
3270
+ const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S = Mt(null), [x, C] = ht([]), [w, D] = ht(!1), T = y(
3271
3271
  () => rt(t, i),
3272
3272
  [t, i]
3273
3273
  ), O = _(
3274
3274
  ($) => T && r ? $.getDataSet(T, r) : void 0
3275
- ), { validate: N, help: A, validateStatus: E } = Bt({
3275
+ ), { validate: N, help: A, validateStatus: E } = Kt({
3276
3276
  rules: o,
3277
3277
  dataSet: i,
3278
3278
  dataSetField: r,
@@ -3391,7 +3391,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3391
3391
  }
3392
3392
  ), T = _(
3393
3393
  (z) => w && r ? z.getDataSet(w, r) : void 0
3394
- ), { validate: O, help: N } = Bt({
3394
+ ), { validate: O, help: N } = Kt({
3395
3395
  rules: s,
3396
3396
  dataSet: i,
3397
3397
  dataSetField: r,
@@ -3483,7 +3483,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3483
3483
  }
3484
3484
  ), N = _(
3485
3485
  (J) => T && x ? J.getDataSet(T, x) : void 0
3486
- ), { validate: A, help: E } = Bt({
3486
+ ), { validate: A, help: E } = Kt({
3487
3487
  rules: c,
3488
3488
  dataSet: S,
3489
3489
  dataSetField: x,
@@ -3512,12 +3512,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3512
3512
  var W;
3513
3513
  const st = ((W = Z == null ? void 0 : Z.response) == null ? void 0 : W.src) ?? (Z == null ? void 0 : Z.src) ?? (Z == null ? void 0 : Z.url) ?? (Z == null ? void 0 : Z.thumbUrl) ?? "", dt = typeof st == "string" ? et(st) : st, Y = {};
3514
3514
  for (const ft of Object.keys(Z)) {
3515
- const pt = Z[ft];
3516
- pt instanceof File ? Y[ft] = pt : pt && typeof pt == "object" && !Array.isArray(pt) ? Y[ft] = { ...pt } : Y[ft] = pt;
3515
+ const mt = Z[ft];
3516
+ mt instanceof File ? Y[ft] = mt : mt && typeof mt == "object" && !Array.isArray(mt) ? Y[ft] = { ...mt } : Y[ft] = mt;
3517
3517
  }
3518
3518
  return dt && typeof dt == "string" && (Y.url = dt, Y.thumbUrl = dt), Y;
3519
3519
  });
3520
- }, []), [H, P] = mt(null), $ = y(() => {
3520
+ }, []), [H, P] = ht(null), $ = y(() => {
3521
3521
  const J = N ?? (O == null ? void 0 : O.fileList) ?? h;
3522
3522
  if (J != null) {
3523
3523
  if (typeof J == "string" && J) return M([J]);
@@ -3585,7 +3585,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3585
3585
  var Z, st;
3586
3586
  const q = ((Z = J.response) == null ? void 0 : Z.src) ?? J.name ?? "", et = ((st = String(q).split(".").pop()) == null ? void 0 : st.toLowerCase()) || "";
3587
3587
  return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(G(J));
3588
- }, [G]), [at, it] = mt({
3588
+ }, [G]), [at, it] = ht({
3589
3589
  url: "",
3590
3590
  name: "",
3591
3591
  urls: [],
@@ -3598,7 +3598,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3598
3598
  const et = z.filter((dt) => U(dt)), Z = et.map((dt) => G(dt)).filter(Boolean), st = et.findIndex((dt) => (dt.uid || dt.url) === (J.uid || J.url));
3599
3599
  it({ url: q, name: J.name, urls: Z, current: st >= 0 ? st : 0, open: !0 });
3600
3600
  } else U(J) || window.open(q, "_blank");
3601
- }, [G, U, z]), St = !!Gt().upload && !s, yt = K, tt = yt.buttonText ?? o, ut = yt.listType ?? m.listType, ot = yt.maxCount, Ct = (z == null ? void 0 : z.length) ?? 0, kt = typeof ot == "number" && Ct >= ot, $t = j(
3601
+ }, [G, U, z]), St = !!Gt().upload && !s, gt = K, tt = gt.buttonText ?? o, ut = gt.listType ?? m.listType, ot = gt.maxCount, Ct = (z == null ? void 0 : z.length) ?? 0, kt = typeof ot == "number" && Ct >= ot, $t = j(
3602
3602
  (J) => kt ? (Ce.warning(`最多只能上传 ${ot} 个文件`), !1) : V(J),
3603
3603
  [kt, ot, V]
3604
3604
  );
@@ -3677,7 +3677,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3677
3677
  const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), x = y(
3678
3678
  () => rt(t, i),
3679
3679
  [t, i]
3680
- ), [C, w] = mt(h || []), [, D] = mt(!1), T = Wt.useRef(void 0), { get: O } = na(), N = y(() => {
3680
+ ), [C, w] = ht(h || []), [, D] = ht(!1), T = Wt.useRef(void 0), { get: O } = na(), N = y(() => {
3681
3681
  if (x && r) return u(x, r);
3682
3682
  }, [x, r, u]), A = y(() => N ?? d ?? v, [N, d, v]), E = j((B) => {
3683
3683
  if (!(g != null && g.queryApi)) {
@@ -3859,7 +3859,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3859
3859
  return;
3860
3860
  }
3861
3861
  S && t && k(t, I(S, { sourceSelectedKeys: tt, targetSelectedKeys: ut }));
3862
- }, [D, S, t, k]), gt = j((tt, ut) => {
3862
+ }, [D, S, t, k]), pt = j((tt, ut) => {
3863
3863
  if (T) {
3864
3864
  T(tt, ut);
3865
3865
  return;
@@ -3871,7 +3871,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3871
3871
  return;
3872
3872
  }
3873
3873
  C && t && k(t, I(C, { direction: tt }));
3874
- }, [O, C, t, k]), yt = /* @__PURE__ */ b(
3874
+ }, [O, C, t, k]), gt = /* @__PURE__ */ b(
3875
3875
  Dr,
3876
3876
  {
3877
3877
  dataSource: G,
@@ -3888,14 +3888,14 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3888
3888
  locale: V,
3889
3889
  onChange: it,
3890
3890
  onSelectChange: nt,
3891
- onSearch: gt,
3891
+ onSearch: pt,
3892
3892
  onScroll: St,
3893
3893
  styles: P,
3894
3894
  render: (tt) => tt.title,
3895
3895
  ...E
3896
3896
  }
3897
3897
  );
3898
- return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Transfer: $ } }, children: yt }) : yt;
3898
+ return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Transfer: $ } }, children: gt }) : gt;
3899
3899
  }, an = (e, t) => {
3900
3900
  if (e == null) return t;
3901
3901
  if (typeof e == "string")
@@ -3971,7 +3971,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
3971
3971
  );
3972
3972
  return T && Object.keys(T).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Segmented: T } }, children: k }) : k;
3973
3973
  }, qa = (e, t, n) => {
3974
- const [i, r] = mt(void 0), a = t === "100%", o = Mt(0);
3974
+ const [i, r] = ht(void 0), a = t === "100%", o = Mt(0);
3975
3975
  return Hn(() => {
3976
3976
  if (!a || !e.current) {
3977
3977
  r(void 0);
@@ -4028,7 +4028,7 @@ function Wa(e) {
4028
4028
  return t || (t = ln(e), Nn.set(e, t)), t;
4029
4029
  }
4030
4030
  const Ha = ({ dictCode: e, value: t }) => {
4031
- const [n, i] = mt(null);
4031
+ const [n, i] = ht(null);
4032
4032
  if (Dt(() => {
4033
4033
  if (!e) {
4034
4034
  i([]);
@@ -4177,7 +4177,7 @@ const Pe = 420, On = 440, Xa = ({
4177
4177
  onSave: v,
4178
4178
  onClose: h
4179
4179
  }) => {
4180
- const [p, g] = mt(n), [f, s] = mt(i), [m, u] = mt(o), [S, x] = mt(l), [C, w] = mt(null);
4180
+ const [p, g] = ht(n), [f, s] = ht(i), [m, u] = ht(o), [S, x] = ht(l), [C, w] = ht(null);
4181
4181
  Dt(() => {
4182
4182
  e && (g(n), s([...i]), u(o), x(l));
4183
4183
  }, [e, n, i, o, l]);
@@ -4420,7 +4420,7 @@ const Pe = 420, On = 440, Xa = ({
4420
4420
  columnSettingsKey: H,
4421
4421
  ...P
4422
4422
  }) => {
4423
- const $ = _((F) => F.addCommand), z = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [V, R] = mt([]), L = Mt(null), [Q, G] = mt(void 0), U = j((F, lt) => {
4423
+ const $ = _((F) => F.addCommand), z = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [V, R] = ht([]), L = Mt(null), [Q, G] = ht(void 0), U = j((F, lt) => {
4424
4424
  if (F == null) return lt;
4425
4425
  if (typeof F == "string")
4426
4426
  try {
@@ -4438,14 +4438,14 @@ const Pe = 420, On = 440, Xa = ({
4438
4438
  columnSettings: i && t ? rt(t, `${i}_columnSettings`) : void 0
4439
4439
  }),
4440
4440
  [t, i]
4441
- ), gt = _(
4441
+ ), pt = _(
4442
4442
  (F) => {
4443
4443
  var lt;
4444
4444
  return nt.columnSettingOpen ? ((lt = F.dataSets[nt.columnSettingOpen]) == null ? void 0 : lt.value) === !0 : !1;
4445
4445
  }
4446
4446
  ), St = 420;
4447
4447
  Hn(() => {
4448
- if (!gt || !L.current) return;
4448
+ if (!pt || !L.current) return;
4449
4449
  const F = L.current.querySelector(".ant-table-thead") || L.current.querySelector(".ant-table-header");
4450
4450
  if (!F) return;
4451
4451
  const lt = F.getBoundingClientRect();
@@ -4453,8 +4453,8 @@ const Pe = 420, On = 440, Xa = ({
4453
4453
  x: lt.right - St,
4454
4454
  y: lt.bottom + 8
4455
4455
  });
4456
- }, [gt]);
4457
- const yt = _((F) => {
4456
+ }, [pt]);
4457
+ const gt = _((F) => {
4458
4458
  var Tt;
4459
4459
  const lt = nt.columnSettings ? (Tt = F.dataSets[nt.columnSettings]) == null ? void 0 : Tt.value : void 0;
4460
4460
  return typeof lt == "object" && lt !== null ? lt : void 0;
@@ -4465,13 +4465,13 @@ const Pe = 420, On = 440, Xa = ({
4465
4465
  (F) => nt.pagination ? F.dataSets[nt.pagination] : void 0
4466
4466
  ), J = y(() => nt.pagination ? z(nt.pagination, "") || {} : {}, [nt.pagination, z, $t]), q = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
4467
4467
  if (!q) return !1;
4468
- const F = typeof s == "object" ? s : {}, lt = P || {}, Tt = F.showSizeChanger ?? lt["pagination-showSizeChanger"] ?? !0, wt = F.showQuickJumper ?? lt["pagination-showQuickJumper"] ?? !1, xt = F.simple ?? lt["pagination-simple"] ?? !1, Kt = F.defaultPageSize ?? lt["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? lt["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Pt == "string" ? Pt.split(",").map((te) => parseInt(String(te).trim(), 10) || 10).filter((te) => !isNaN(te)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4468
+ const F = typeof s == "object" ? s : {}, lt = P || {}, Tt = F.showSizeChanger ?? lt["pagination-showSizeChanger"] ?? !0, wt = F.showQuickJumper ?? lt["pagination-showQuickJumper"] ?? !1, xt = F.simple ?? lt["pagination-simple"] ?? !1, Lt = F.defaultPageSize ?? lt["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? lt["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Pt == "string" ? Pt.split(",").map((te) => parseInt(String(te).trim(), 10) || 10).filter((te) => !isNaN(te)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
4469
4469
  return {
4470
4470
  ...J,
4471
4471
  showSizeChanger: Tt,
4472
4472
  showQuickJumper: wt,
4473
4473
  simple: xt,
4474
- defaultPageSize: Kt,
4474
+ defaultPageSize: Lt,
4475
4475
  pageSizeOptions: ze,
4476
4476
  showTotal: (te, oe) => (F.showTotal || "共 ${total} 条").replace("${total}", String(te)).replace("${range[0]}", String(oe[0])).replace("${range[1]}", String(oe[1])).replace("${range}", `${oe[0]}-${oe[1]}`),
4477
4477
  onChange: (te, oe) => {
@@ -4492,49 +4492,49 @@ const Pe = 420, On = 440, Xa = ({
4492
4492
  fixed: lt,
4493
4493
  width: typeof Tt == "number" ? Tt : "auto"
4494
4494
  };
4495
- }).filter((F) => F.key), [at]), dt = g === !0, Y = !1, W = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: ft, items: pt, scrollX: zt, size: X } = y(() => Za(
4496
- yt,
4495
+ }).filter((F) => F.key), [at]), dt = g === !0, Y = !1, W = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: ft, items: mt, scrollX: jt, size: X } = y(() => Za(
4496
+ gt,
4497
4497
  st,
4498
4498
  dt,
4499
4499
  Y,
4500
4500
  W
4501
- ), [yt, st, dt, Y, W]), vt = !!(i && t), Et = y(() => {
4501
+ ), [gt, st, dt, Y, W]), vt = !!(i && t), Et = y(() => {
4502
4502
  const F = [];
4503
4503
  ft && F.push({
4504
4504
  title: "序号",
4505
4505
  key: "rowIndex",
4506
4506
  width: 60,
4507
4507
  align: "center",
4508
- render: (wt, xt, Kt) => {
4508
+ render: (wt, xt, Lt) => {
4509
4509
  const Pt = J.current || 1, ze = J.pageSize || 10;
4510
- return (Pt - 1) * ze + Kt + 1;
4510
+ return (Pt - 1) * ze + Lt + 1;
4511
4511
  }
4512
4512
  });
4513
4513
  const lt = new Map(at.map((wt) => [String(wt.key ?? wt.dataIndex ?? ""), wt]));
4514
- return pt.filter((wt) => wt.visible).forEach((wt) => {
4514
+ return mt.filter((wt) => wt.visible).forEach((wt) => {
4515
4515
  const xt = lt.get(wt.key);
4516
4516
  if (!xt) return;
4517
- const Kt = wt.fixed || void 0, Pt = wt.width === "auto" || wt.width === void 0 ? void 0 : wt.width;
4517
+ const Lt = wt.fixed || void 0, Pt = wt.width === "auto" || wt.width === void 0 ? void 0 : wt.width;
4518
4518
  F.push(Qa({
4519
4519
  ...xt,
4520
4520
  dataIndex: xt.dataIndex || xt.key,
4521
- fixed: Kt || xt.fixed,
4521
+ fixed: Lt || xt.fixed,
4522
4522
  width: Pt ?? xt.width
4523
4523
  }));
4524
4524
  }), l !== !1 && it.length > 0 && F.push({
4525
4525
  title: "操作",
4526
4526
  key: "action",
4527
- render: (wt, xt) => /* @__PURE__ */ b(Yt, { children: it.map((Kt, Pt) => /* @__PURE__ */ b(Ar, { title: Kt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Z(Kt, xt), style: { marginRight: 5 }, children: Kt.title }) }, Pt)) })
4527
+ render: (wt, xt) => /* @__PURE__ */ b(Yt, { children: it.map((Lt, Pt) => /* @__PURE__ */ b(Ar, { title: Lt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Z(Lt, xt), style: { marginRight: 5 }, children: Lt.title }) }, Pt)) })
4528
4528
  }), F;
4529
4529
  }, [
4530
4530
  at,
4531
4531
  it,
4532
4532
  ft,
4533
- pt,
4533
+ mt,
4534
4534
  l,
4535
4535
  J,
4536
4536
  Z
4537
- ]), jt = j(() => {
4537
+ ]), Bt = j(() => {
4538
4538
  nt.columnSettingOpen && K(nt.columnSettingOpen, "", !1);
4539
4539
  }, [nt.columnSettingOpen, K]), Vt = j(
4540
4540
  (F) => {
@@ -4563,9 +4563,9 @@ const Pe = 420, On = 440, Xa = ({
4563
4563
  if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (lt === "" || lt === null || lt === void 0) && (lt = void 0), F !== void 0 || lt !== void 0) return { x: F, y: lt };
4564
4564
  }, [C, fe["scroll-x"], fe["scroll-y"]]), Le = qa(L, _t == null ? void 0 : _t.y, q), lr = y(() => {
4565
4565
  if (!_t && !vt) return;
4566
- const F = vt ? zt ? !0 : "max-content" : _t == null ? void 0 : _t.x, lt = (_t == null ? void 0 : _t.y) === "100%" ? Le : _t == null ? void 0 : _t.y;
4566
+ const F = vt ? jt ? !0 : "max-content" : _t == null ? void 0 : _t.x, lt = (_t == null ? void 0 : _t.y) === "100%" ? Le : _t == null ? void 0 : _t.y;
4567
4567
  return F !== void 0 || lt !== void 0 ? { x: F, y: lt } : _t ? _t.y === "100%" ? { x: _t.x, y: Le } : _t : void 0;
4568
- }, [_t, Le, vt, zt]), { titleSlot: xe, summarySlot: Ae, footerSlot: dn, otherChildren: ur } = y(() => {
4568
+ }, [_t, Le, vt, jt]), { titleSlot: xe, summarySlot: Ae, footerSlot: dn, otherChildren: ur } = y(() => {
4569
4569
  let F = null, lt = null, Tt = null;
4570
4570
  const wt = [];
4571
4571
  return Wt.Children.forEach(k, (xt) => {
@@ -4573,8 +4573,8 @@ const Pe = 420, On = 440, Xa = ({
4573
4573
  wt.push(xt);
4574
4574
  return;
4575
4575
  }
4576
- const Kt = xt.props["data-slot-type"];
4577
- Kt === "title" ? F = xt : Kt === "summary" ? lt = xt : Kt === "footer" ? Tt = xt : wt.push(xt);
4576
+ const Lt = xt.props["data-slot-type"];
4577
+ Lt === "title" ? F = xt : Lt === "summary" ? lt = xt : Lt === "footer" ? Tt = xt : wt.push(xt);
4578
4578
  }), { titleSlot: F, summarySlot: lt, footerSlot: Tt, otherChildren: wt };
4579
4579
  }, [k]), fr = y(() => {
4580
4580
  if (!xe) {
@@ -4640,18 +4640,18 @@ const Pe = 420, On = 440, Xa = ({
4640
4640
  vt && /* @__PURE__ */ b(
4641
4641
  Xa,
4642
4642
  {
4643
- open: gt,
4643
+ open: pt,
4644
4644
  position: Q,
4645
4645
  rowIndexVisible: ft,
4646
- columnItems: pt,
4646
+ columnItems: mt,
4647
4647
  defaultRowIndexVisible: dt,
4648
4648
  defaultColumnItems: st,
4649
- scrollX: zt,
4649
+ scrollX: jt,
4650
4650
  defaultScrollX: Y,
4651
4651
  size: X,
4652
4652
  defaultSize: W,
4653
4653
  onSave: Vt,
4654
- onClose: jt
4654
+ onClose: Bt
4655
4655
  }
4656
4656
  )
4657
4657
  ]
@@ -4918,15 +4918,15 @@ const Pe = 420, On = 440, Xa = ({
4918
4918
  const ft = W.dataSets[z];
4919
4919
  if (!ft) return;
4920
4920
  if (Array.isArray(ft)) return ft;
4921
- const pt = ft.value;
4922
- return Array.isArray(pt) ? pt : void 0;
4921
+ const mt = ft.value;
4922
+ return Array.isArray(mt) ? mt : void 0;
4923
4923
  }), Q = _(
4924
4924
  (W) => K ? W.getDataSet(K, "") : void 0
4925
4925
  ), G = _(
4926
4926
  (W) => V ? W.getDataSet(V, "") : void 0
4927
4927
  ), U = _(
4928
4928
  (W) => R ? W.getDataSet(R, "") : void 0
4929
- ), at = y(() => n ? L ?? E ?? [] : z ? L ?? [] : E ?? [], [n, z, L, E]), it = Q, nt = G, gt = U, St = j(
4929
+ ), at = y(() => n ? L ?? E ?? [] : z ? L ?? [] : E ?? [], [n, z, L, E]), it = Q, nt = G, pt = U, St = j(
4930
4930
  (W, ft) => {
4931
4931
  if (m) {
4932
4932
  m(W, ft);
@@ -4935,7 +4935,7 @@ const Pe = 420, On = 440, Xa = ({
4935
4935
  K && $(K, "", W), a && t && P(t, I(a, { selectedKeys: W }));
4936
4936
  },
4937
4937
  [m, K, t, $, a, P]
4938
- ), yt = j(
4938
+ ), gt = j(
4939
4939
  (W, ft) => {
4940
4940
  if (u) {
4941
4941
  u(W, ft);
@@ -5028,8 +5028,8 @@ const Pe = 420, On = 440, Xa = ({
5028
5028
  ), Z = y(() => {
5029
5029
  if (!B) return;
5030
5030
  const W = {};
5031
- return Object.entries(B).forEach(([ft, pt]) => {
5032
- pt !== "" && pt !== void 0 && pt !== null && (W[ft] = pt);
5031
+ return Object.entries(B).forEach(([ft, mt]) => {
5032
+ mt !== "" && mt !== void 0 && mt !== null && (W[ft] = mt);
5033
5033
  }), Object.keys(W).length > 0 ? W : void 0;
5034
5034
  }, [B]), st = y(() => {
5035
5035
  const W = {};
@@ -5042,9 +5042,9 @@ const Pe = 420, On = 440, Xa = ({
5042
5042
  treeData: at,
5043
5043
  ...K != null ? { selectedKeys: it ?? [] } : {},
5044
5044
  ...V != null ? { checkedKeys: nt ?? [] } : {},
5045
- ...R != null ? { expandedKeys: gt ?? [] } : {},
5045
+ ...R != null ? { expandedKeys: pt ?? [] } : {},
5046
5046
  onSelect: St,
5047
- onCheck: yt,
5047
+ onCheck: gt,
5048
5048
  onExpand: tt,
5049
5049
  onDragEnd: ut,
5050
5050
  onDragEnter: ot,
@@ -5501,7 +5501,7 @@ const Zc = ({
5501
5501
  children: r,
5502
5502
  ...a
5503
5503
  }) => /* @__PURE__ */ b(Mr, { ...a, items: i, children: r }), _e = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), uo = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
5504
- const a = Mt(null), o = Mt(null), [c, l] = mt(0), [d, v] = mt(!1), [h, p] = mt(0), [g, f] = mt(0), s = e === "horizontal";
5504
+ const a = Mt(null), o = Mt(null), [c, l] = ht(0), [d, v] = ht(!1), [h, p] = ht(0), [g, f] = ht(0), s = e === "horizontal";
5505
5505
  Dt(() => {
5506
5506
  const D = () => {
5507
5507
  if (!a.current || !o.current) return;
@@ -5677,20 +5677,20 @@ const Zc = ({
5677
5677
  ), nt = _((X) => {
5678
5678
  if (!L.openKeys && it && T)
5679
5679
  return X.getDataSet(it, T);
5680
- }), gt = y(() => {
5680
+ }), pt = y(() => {
5681
5681
  const X = (vt) => Array.isArray(vt) ? vt.map((Et) => {
5682
- const jt = { ...Et };
5683
- if (jt.icon && typeof jt.icon == "string") {
5684
- const Vt = Jt[jt.icon];
5685
- Vt && (jt.icon = /* @__PURE__ */ b(Vt, {}));
5682
+ const Bt = { ...Et };
5683
+ if (Bt.icon && typeof Bt.icon == "string") {
5684
+ const Vt = Jt[Bt.icon];
5685
+ Vt && (Bt.icon = /* @__PURE__ */ b(Vt, {}));
5686
5686
  }
5687
- return jt.children && jt.children.length > 0 && (jt.children = X(jt.children)), jt;
5687
+ return Bt.children && Bt.children.length > 0 && (Bt.children = X(Bt.children)), Bt;
5688
5688
  }) : [];
5689
5689
  return X(G || []);
5690
5690
  }, [G]), St = y(
5691
5691
  () => U,
5692
5692
  [U]
5693
- ), yt = y(
5693
+ ), gt = y(
5694
5694
  () => at ?? nt,
5695
5695
  [at, nt]
5696
5696
  ), tt = j(
@@ -5796,9 +5796,9 @@ const Zc = ({
5796
5796
  }
5797
5797
  return B;
5798
5798
  }, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), st = Fr(), dt = e || st.replace(/:/g, "-"), Y = y(() => {
5799
- var jt;
5799
+ var Bt;
5800
5800
  if (!u || typeof u == "function") return "";
5801
- const X = (jt = u.subMenu) == null ? void 0 : jt.root;
5801
+ const X = (Bt = u.subMenu) == null ? void 0 : Bt.root;
5802
5802
  if (!X) return "";
5803
5803
  const vt = [], Et = `[data-and-menu-id="${dt}"]`;
5804
5804
  if (X.item && Object.keys(X.item).length > 0) {
@@ -5826,9 +5826,9 @@ const Zc = ({
5826
5826
  ...kt,
5827
5827
  ...J,
5828
5828
  mode: O,
5829
- items: gt,
5829
+ items: pt,
5830
5830
  selectedKeys: St,
5831
- openKeys: yt,
5831
+ openKeys: gt,
5832
5832
  defaultOpenKeys: m,
5833
5833
  onClick: tt,
5834
5834
  onSelect: ut,
@@ -5849,7 +5849,7 @@ const Zc = ({
5849
5849
  arrowIconNext: et,
5850
5850
  children: W
5851
5851
  }
5852
- ) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: W }) : W, pt = y(() => {
5852
+ ) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: W }) : W, mt = y(() => {
5853
5853
  const X = {};
5854
5854
  return n && (X.motion = !1), $t && (X.components = { Menu: $t }), Object.keys(X).length > 0 ? X : void 0;
5855
5855
  }, [n, $t]);
@@ -5858,7 +5858,7 @@ const Zc = ({
5858
5858
  /* @__PURE__ */ b("style", { children: Y }),
5859
5859
  X
5860
5860
  ] }) : X;
5861
- return pt ? /* @__PURE__ */ b(Rt, { theme: pt, children: vt }) : vt;
5861
+ return mt ? /* @__PURE__ */ b(Rt, { theme: mt, children: vt }) : vt;
5862
5862
  })();
5863
5863
  }, rs = ({
5864
5864
  id: e,
@@ -6298,16 +6298,16 @@ const Zc = ({
6298
6298
  A && r && N(A, `${r}.activeTabKey`, U), g && t && T(t, I(g, { key: U }));
6299
6299
  }, [f, A, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot: V, otherChildren: R, actionsFromChildren: L } = y(() => {
6300
6300
  let U = null, at = null, it = null, nt = [];
6301
- const gt = [];
6301
+ const pt = [];
6302
6302
  let St = !1;
6303
- return a && (U = a), o && (at = o), c && (it = c), d && (nt = d), Wt.Children.forEach(w, (yt) => {
6304
- if (!Wt.isValidElement(yt)) {
6305
- gt.push(yt);
6303
+ return a && (U = a), o && (at = o), c && (it = c), d && (nt = d), Wt.Children.forEach(w, (gt) => {
6304
+ if (!Wt.isValidElement(gt)) {
6305
+ pt.push(gt);
6306
6306
  return;
6307
6307
  }
6308
- const tt = yt.props, ut = tt["data-slot-type"];
6309
- ut === "title" && !a ? U = yt : ut === "extra" && !o ? at = yt : ut === "cover" && !c ? it = yt : ut === "actions" && !d ? (nt = [yt], St = !0) : ut === "body" && tt.children ? gt.push(tt.children) : gt.push(yt);
6310
- }), { titleSlot: U, extraSlot: at, coverSlot: it, actionsSlot: nt, otherChildren: gt, actionsFromChildren: St };
6308
+ const tt = gt.props, ut = tt["data-slot-type"];
6309
+ ut === "title" && !a ? U = gt : ut === "extra" && !o ? at = gt : ut === "cover" && !c ? it = gt : ut === "actions" && !d ? (nt = [gt], St = !0) : ut === "body" && tt.children ? pt.push(tt.children) : pt.push(gt);
6310
+ }), { titleSlot: U, extraSlot: at, coverSlot: it, actionsSlot: nt, otherChildren: pt, actionsFromChildren: St };
6311
6311
  }, [w, a, o, c, d]), Q = y(() => {
6312
6312
  const U = on(m, {});
6313
6313
  return L ? { actionsLiMargin: "0px", ...U } : U;
@@ -6709,7 +6709,7 @@ const Zc = ({
6709
6709
  const x = u === "default" ? "middle" : u, C = _((B) => B.getDataSet), w = y(
6710
6710
  () => rt(t, i),
6711
6711
  [t, i]
6712
- ), [D, T] = mt(1), [O, N] = mt(p), A = y(() => {
6712
+ ), [D, T] = ht(1), [O, N] = ht(p), A = y(() => {
6713
6713
  if (w && r) {
6714
6714
  const B = C(w, r);
6715
6715
  return Array.isArray(B) ? B : [];
@@ -7120,9 +7120,9 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7120
7120
  return Y.trim();
7121
7121
  }
7122
7122
  return d;
7123
- }, [u, d]), [C, w] = mt(0), [D, T] = mt(
7123
+ }, [u, d]), [C, w] = ht(0), [D, T] = ht(
7124
7124
  () => Math.max(1, o || 1)
7125
- ), [O, N] = mt(null), [A, E] = mt(!!S), [k, M] = mt("all"), [B, H] = mt("width"), [P, $] = mt(1), z = Mt(null), K = Mt(null), V = Mt({}), [R, L] = mt(600), [Q, G] = mt(800), U = Mt(0), at = y(
7125
+ ), [O, N] = ht(null), [A, E] = ht(!!S), [k, M] = ht("all"), [B, H] = ht("width"), [P, $] = ht(1), z = Mt(null), K = Mt(null), V = Mt({}), [R, L] = ht(600), [Q, G] = ht(800), U = Mt(0), at = y(
7126
7126
  () => ({
7127
7127
  cMapUrl: `https://unpkg.com/pdfjs-dist@${ye.version}/cmaps/`,
7128
7128
  cMapPacked: !0
@@ -7136,19 +7136,19 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7136
7136
  const Y = K.current;
7137
7137
  if (!Y) return;
7138
7138
  const W = new ResizeObserver(() => {
7139
- const zt = Y.clientWidth, X = Y.clientHeight;
7140
- zt > 0 && L(zt), X > 0 && G(X);
7139
+ const jt = Y.clientWidth, X = Y.clientHeight;
7140
+ jt > 0 && L(jt), X > 0 && G(X);
7141
7141
  });
7142
7142
  W.observe(Y);
7143
- const ft = Y.clientWidth, pt = Y.clientHeight;
7144
- return ft > 0 && L(ft), pt > 0 && G(pt), () => W.disconnect();
7143
+ const ft = Y.clientWidth, mt = Y.clientHeight;
7144
+ return ft > 0 && L(ft), mt > 0 && G(mt), () => W.disconnect();
7145
7145
  }, [S]);
7146
- const gt = y(() => Math.max(240, R - 16), [R]), St = y(
7146
+ const pt = y(() => Math.max(240, R - 16), [R]), St = y(
7147
7147
  () => Math.max(320, Q - 16),
7148
7148
  [Q]
7149
- ), yt = y(
7150
- () => Math.max(120, gt * P),
7151
- [gt, P]
7149
+ ), gt = y(
7150
+ () => Math.max(120, pt * P),
7151
+ [pt, P]
7152
7152
  ), tt = y(
7153
7153
  () => Math.max(180, St * P),
7154
7154
  [St, P]
@@ -7165,8 +7165,8 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7165
7165
  (Y, W = "auto") => {
7166
7166
  const ft = C > 0 ? Math.max(1, Math.min(Math.floor(Y), C)) : Math.max(1, Math.floor(Y));
7167
7167
  if (T(ft), k === "all") {
7168
- const pt = V.current[ft];
7169
- pt && pt.scrollIntoView({ block: "start", behavior: W });
7168
+ const mt = V.current[ft];
7169
+ mt && mt.scrollIntoView({ block: "start", behavior: W });
7170
7170
  }
7171
7171
  },
7172
7172
  [C, k]
@@ -7217,19 +7217,19 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7217
7217
  const Y = K.current;
7218
7218
  if (!Y) return;
7219
7219
  const W = Y.scrollTop + Y.clientHeight * 0.35;
7220
- let ft = D, pt = Number.POSITIVE_INFINITY;
7221
- for (let zt = 1; zt <= C; zt++) {
7222
- const X = V.current[zt];
7220
+ let ft = D, mt = Number.POSITIVE_INFINITY;
7221
+ for (let jt = 1; jt <= C; jt++) {
7222
+ const X = V.current[jt];
7223
7223
  if (!X) continue;
7224
7224
  const vt = Math.abs(X.offsetTop - W);
7225
- vt < pt && (pt = vt, ft = zt);
7225
+ vt < mt && (mt = vt, ft = jt);
7226
7226
  }
7227
7227
  ft !== D && T(ft);
7228
7228
  }, [k, C, D]);
7229
7229
  return Dt(() => {
7230
7230
  if (!u || typeof u != "object") return;
7231
7231
  const Y = u._pdfCmdNonce, W = u.pdfCommand, ft = u.pdfCommandArg;
7232
- if (!(Y == null || Y === U.current || !W))
7232
+ if (!(Y == null || Y === U.current || !W)) {
7233
7233
  switch (U.current = Y, W) {
7234
7234
  case "print":
7235
7235
  q();
@@ -7265,8 +7265,19 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7265
7265
  M("all");
7266
7266
  break;
7267
7267
  }
7268
+ if (t && e) {
7269
+ const mt = _.getState().getProps(t, e), jt = mt && typeof mt == "object" && !Array.isArray(mt) ? mt : {};
7270
+ _.getState().setProps(t, e, {
7271
+ ...jt,
7272
+ pdfCommand: void 0,
7273
+ pdfCommandArg: void 0
7274
+ });
7275
+ }
7276
+ }
7268
7277
  }, [
7269
7278
  u,
7279
+ t,
7280
+ e,
7270
7281
  q,
7271
7282
  et,
7272
7283
  Z,
@@ -7330,7 +7341,7 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
7330
7341
  ci,
7331
7342
  {
7332
7343
  pageNumber: Y,
7333
- width: B === "width" ? yt : void 0,
7344
+ width: B === "width" ? gt : void 0,
7334
7345
  height: B === "height" ? tt : void 0,
7335
7346
  renderTextLayer: !1,
7336
7347
  renderAnnotationLayer: !1
@@ -7460,12 +7471,12 @@ function It(e, t) {
7460
7471
  it !== void 0 && (U.legend = it);
7461
7472
  const nt = At(D);
7462
7473
  nt !== void 0 && (U.label = nt);
7463
- const gt = At(T);
7464
- gt !== void 0 && (U.tooltip = gt);
7474
+ const pt = At(T);
7475
+ pt !== void 0 && (U.tooltip = pt);
7465
7476
  const St = At(N);
7466
7477
  St !== void 0 && (U.scale = St);
7467
- const yt = At(A);
7468
- yt !== void 0 && (U.interaction = yt);
7478
+ const gt = At(A);
7479
+ gt !== void 0 && (U.interaction = gt);
7469
7480
  const tt = At(E);
7470
7481
  tt !== void 0 && (U.annotations = tt);
7471
7482
  const ut = At(k);
@@ -7811,7 +7822,7 @@ export {
7811
7822
  na as useApiService,
7812
7823
  sc as useCommandsStore,
7813
7824
  De as useDictOptions,
7814
- Bt as useFieldValidation,
7825
+ Kt as useFieldValidation,
7815
7826
  cc as useItemStore,
7816
7827
  oc as usePopCommand,
7817
7828
  un as useRemoteOptions,