@fastspace/schema-form 0.0.11 → 0.0.15

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.
@@ -1,11 +1,11 @@
1
1
  import * as A from "valibot";
2
- import { jsx as E, jsxs as de, Fragment as Dr } from "react/jsx-runtime";
2
+ import { jsx as E, jsxs as me, Fragment as Dr } from "react/jsx-runtime";
3
3
  import * as V from "react";
4
- import dt, { memo as mi, forwardRef as mo, useRef as we, useState as Be, useEffect as Ve, useCallback as ho, createElement as hi, isValidElement as _t, cloneElement as Nt, Children as gi, useMemo as Ge, useImperativeHandle as yi } from "react";
4
+ import pt, { memo as mi, forwardRef as mo, useRef as we, useState as Be, useEffect as Ve, useCallback as ho, createElement as hi, isValidElement as _t, cloneElement as Nt, Children as gi, useMemo as Ge, useImperativeHandle as yi } from "react";
5
5
  import { Controller as Vr, useFieldArray as bi, useForm as vi, useWatch as Si, FormProvider as xi } from "react-hook-form";
6
6
  import { ThemeContext as Ci, keyframes as St, css as go } from "@emotion/react";
7
7
  import Ti from "@emotion/styled";
8
- import { styled as yo, Box as pt, Typography as Ot, CircularProgress as bo, FormControl as at, Autocomplete as wi, TextField as lt, FormControlLabel as jr, Checkbox as Ei, FormHelperText as zr, Grid as $t, RadioGroup as Oi, Radio as $i, Stack as nn, FormLabel as Vt, Rating as Ri, Slider as ki, Switch as Ai } from "@mui/material";
8
+ import { Box as nt, styled as yo, Typography as Ot, CircularProgress as bo, FormControl as lt, Autocomplete as wi, TextField as ct, FormControlLabel as jr, Checkbox as Ei, FormHelperText as zr, Grid as $t, RadioGroup as Oi, Radio as $i, Stack as nn, FormLabel as Vt, Rating as Ri, Slider as ki, Switch as Ai } from "@mui/material";
9
9
  import { LocalizationProvider as Wr } from "@mui/x-date-pickers";
10
10
  import { AdapterDayjs as Lr } from "@mui/x-date-pickers/AdapterDayjs";
11
11
  import { DateTimePicker as Pi } from "@mui/x-date-pickers/DateTimePicker";
@@ -41,17 +41,17 @@ function Di(e, t) {
41
41
  function je(e, t) {
42
42
  return e ? typeof e == "function" ? e(t) : So(e) ? Bi(e, t) : Ni(e) ? Di(e, t) : !0 : !0;
43
43
  }
44
- function nt(e) {
44
+ function ot(e) {
45
45
  const t = [];
46
46
  if (So(e))
47
47
  t.push(e.field);
48
48
  else if ("and" in e)
49
49
  for (const r of e.and)
50
- t.push(...nt(r));
50
+ t.push(...ot(r));
51
51
  else if ("or" in e)
52
52
  for (const r of e.or)
53
- t.push(...nt(r));
54
- else "not" in e && t.push(...nt(e.not));
53
+ t.push(...ot(r));
54
+ else "not" in e && t.push(...ot(e.not));
55
55
  return [...new Set(t)];
56
56
  }
57
57
  function Ht(e, t, r = !1, n = !1) {
@@ -77,13 +77,13 @@ function Iu(e, t, r = !1, n = !1) {
77
77
  }
78
78
  return o;
79
79
  }
80
- function ot(e, t) {
80
+ function it(e, t) {
81
81
  if (e && typeof e != "function") {
82
82
  if ("field" in e) {
83
83
  t.add(e.field);
84
84
  return;
85
85
  }
86
- "and" in e && Array.isArray(e.and) && e.and.forEach((r) => ot(r, t)), "or" in e && Array.isArray(e.or) && e.or.forEach((r) => ot(r, t)), "not" in e && ot(e.not, t);
86
+ "and" in e && Array.isArray(e.and) && e.and.forEach((r) => it(r, t)), "or" in e && Array.isArray(e.or) && e.or.forEach((r) => it(r, t)), "not" in e && it(e.not, t);
87
87
  }
88
88
  }
89
89
  function Vi(e) {
@@ -92,7 +92,7 @@ function Vi(e) {
92
92
  if (r.dependencies)
93
93
  for (const n of r.dependencies)
94
94
  t.add(n);
95
- if (ot(r.visibleWhen, t), ot(r.disabledWhen, t), ot(r.requiredWhen, t), r.compute?.dependencies)
95
+ if (it(r.visibleWhen, t), it(r.disabledWhen, t), it(r.requiredWhen, t), r.compute?.dependencies)
96
96
  for (const n of r.compute.dependencies)
97
97
  t.add(n);
98
98
  }
@@ -133,13 +133,13 @@ function zi(e) {
133
133
  for (const d of a.dependencies)
134
134
  u.add(d);
135
135
  if (a.visibleWhen)
136
- for (const d of nt(a.visibleWhen))
136
+ for (const d of ot(a.visibleWhen))
137
137
  u.add(d);
138
138
  if (a.disabledWhen)
139
- for (const d of nt(a.disabledWhen))
139
+ for (const d of ot(a.disabledWhen))
140
140
  u.add(d);
141
141
  if (a.requiredWhen)
142
- for (const d of nt(a.requiredWhen))
142
+ for (const d of ot(a.requiredWhen))
143
143
  u.add(d);
144
144
  if (a.compute)
145
145
  if (a.compute.dependencies)
@@ -513,8 +513,8 @@ function Yi() {
513
513
  }
514
514
  function O(M) {
515
515
  if (typeof M == "object" && M !== null) {
516
- var ye = M.$$typeof;
517
- switch (ye) {
516
+ var be = M.$$typeof;
517
+ switch (be) {
518
518
  case t:
519
519
  var Ne = M.type;
520
520
  switch (Ne) {
@@ -535,11 +535,11 @@ function Yi() {
535
535
  case a:
536
536
  return wt;
537
537
  default:
538
- return ye;
538
+ return be;
539
539
  }
540
540
  }
541
541
  case r:
542
- return ye;
542
+ return be;
543
543
  }
544
544
  }
545
545
  }
@@ -757,11 +757,11 @@ function Xi() {
757
757
  );
758
758
  throw M.name = "Invariant Violation", M;
759
759
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
760
- var ye = L + ":" + W;
761
- !R[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
760
+ var be = L + ":" + W;
761
+ !R[be] && // Avoid spamming the console because they are often not actionable except for lib authors
762
762
  G < 3 && (i(
763
763
  "You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
764
- ), R[ye] = !0, G++);
764
+ ), R[be] = !0, G++);
765
765
  }
766
766
  }
767
767
  return j[W] == null ? D ? j[W] === null ? new f("The " + H + " `" + K + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new f("The " + H + " `" + K + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : $(j, W, L, H, K);
@@ -846,8 +846,8 @@ function Xi() {
846
846
  if (h(W, $[L]))
847
847
  return null;
848
848
  var H = JSON.stringify($, function(ae, M) {
849
- var ye = Y(M);
850
- return ye === "symbol" ? String(M) : M;
849
+ var be = Y(M);
850
+ return be === "symbol" ? String(M) : M;
851
851
  });
852
852
  return new f("Invalid " + D + " `" + j + "` of value `" + String(W) + "` " + ("supplied to `" + P + "`, expected one of " + H + "."));
853
853
  }
@@ -887,8 +887,8 @@ function Xi() {
887
887
  return null;
888
888
  M.data && n(M.data, "expectedType") && H.push(M.data.expectedType);
889
889
  }
890
- var ye = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
891
- return new f("Invalid " + W + " `" + L + "` supplied to " + ("`" + j + "`" + ye + "."));
890
+ var be = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
891
+ return new f("Invalid " + W + " `" + L + "` supplied to " + ("`" + j + "`" + be + "."));
892
892
  }
893
893
  return g(U);
894
894
  }
@@ -1745,7 +1745,7 @@ function Wt(e, t, r, n = r) {
1745
1745
  let o;
1746
1746
  return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = Xt(e, r) || n, t && (o = t(o, n, e)), o;
1747
1747
  }
1748
- function pe(e) {
1748
+ function de(e) {
1749
1749
  const {
1750
1750
  prop: t,
1751
1751
  cssProperty: r = e.prop,
@@ -1853,17 +1853,17 @@ function er(...e) {
1853
1853
  }), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ? gt(o, t[i](n)) : o, {});
1854
1854
  return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
1855
1855
  }
1856
- function ve(e) {
1856
+ function Se(e) {
1857
1857
  return typeof e != "number" ? e : `${e}px solid`;
1858
1858
  }
1859
1859
  function Ce(e, t) {
1860
- return pe({
1860
+ return de({
1861
1861
  prop: e,
1862
1862
  themeKey: "borders",
1863
1863
  transform: t
1864
1864
  });
1865
1865
  }
1866
- const Ps = Ce("border", ve), Is = Ce("borderTop", ve), Ms = Ce("borderRight", ve), _s = Ce("borderBottom", ve), Ns = Ce("borderLeft", ve), Bs = Ce("borderColor"), Ds = Ce("borderTopColor"), Vs = Ce("borderRightColor"), js = Ce("borderBottomColor"), zs = Ce("borderLeftColor"), Ws = Ce("outline", ve), Ls = Ce("outlineColor"), tr = (e) => {
1866
+ const Ps = Ce("border", Se), Is = Ce("borderTop", Se), Ms = Ce("borderRight", Se), _s = Ce("borderBottom", Se), Ns = Ce("borderLeft", Se), Bs = Ce("borderColor"), Ds = Ce("borderTopColor"), Vs = Ce("borderRightColor"), js = Ce("borderBottomColor"), zs = Ce("borderLeftColor"), Ws = Ce("outline", Se), Ls = Ce("outlineColor"), tr = (e) => {
1867
1867
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1868
1868
  const t = xt(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
1869
1869
  borderRadius: Xe(t, n)
@@ -1916,48 +1916,48 @@ or.propTypes = process.env.NODE_ENV !== "production" ? {
1916
1916
  rowGap: Le
1917
1917
  } : {};
1918
1918
  or.filterProps = ["rowGap"];
1919
- const Fs = pe({
1919
+ const Fs = de({
1920
1920
  prop: "gridColumn"
1921
- }), qs = pe({
1921
+ }), qs = de({
1922
1922
  prop: "gridRow"
1923
- }), Gs = pe({
1923
+ }), Gs = de({
1924
1924
  prop: "gridAutoFlow"
1925
- }), Us = pe({
1925
+ }), Us = de({
1926
1926
  prop: "gridAutoColumns"
1927
- }), Ys = pe({
1927
+ }), Ys = de({
1928
1928
  prop: "gridAutoRows"
1929
- }), Hs = pe({
1929
+ }), Hs = de({
1930
1930
  prop: "gridTemplateColumns"
1931
- }), Ks = pe({
1931
+ }), Ks = de({
1932
1932
  prop: "gridTemplateRows"
1933
- }), Xs = pe({
1933
+ }), Xs = de({
1934
1934
  prop: "gridTemplateAreas"
1935
- }), Qs = pe({
1935
+ }), Qs = de({
1936
1936
  prop: "gridArea"
1937
1937
  });
1938
1938
  er(rr, nr, or, Fs, qs, Gs, Us, Ys, Hs, Ks, Xs, Qs);
1939
- function it(e, t) {
1939
+ function st(e, t) {
1940
1940
  return t === "grey" ? t : e;
1941
1941
  }
1942
- const Js = pe({
1942
+ const Js = de({
1943
1943
  prop: "color",
1944
1944
  themeKey: "palette",
1945
- transform: it
1946
- }), Zs = pe({
1945
+ transform: st
1946
+ }), Zs = de({
1947
1947
  prop: "bgcolor",
1948
1948
  cssProperty: "backgroundColor",
1949
1949
  themeKey: "palette",
1950
- transform: it
1951
- }), ea = pe({
1950
+ transform: st
1951
+ }), ea = de({
1952
1952
  prop: "backgroundColor",
1953
1953
  themeKey: "palette",
1954
- transform: it
1954
+ transform: st
1955
1955
  });
1956
1956
  er(Js, Zs, ea);
1957
1957
  function ge(e) {
1958
1958
  return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1959
1959
  }
1960
- const ta = pe({
1960
+ const ta = de({
1961
1961
  prop: "width",
1962
1962
  transform: ge
1963
1963
  }), Gr = (e) => {
@@ -1977,30 +1977,30 @@ const ta = pe({
1977
1977
  return null;
1978
1978
  };
1979
1979
  Gr.filterProps = ["maxWidth"];
1980
- const ra = pe({
1980
+ const ra = de({
1981
1981
  prop: "minWidth",
1982
1982
  transform: ge
1983
- }), na = pe({
1983
+ }), na = de({
1984
1984
  prop: "height",
1985
1985
  transform: ge
1986
- }), oa = pe({
1986
+ }), oa = de({
1987
1987
  prop: "maxHeight",
1988
1988
  transform: ge
1989
- }), ia = pe({
1989
+ }), ia = de({
1990
1990
  prop: "minHeight",
1991
1991
  transform: ge
1992
1992
  });
1993
- pe({
1993
+ de({
1994
1994
  prop: "size",
1995
1995
  cssProperty: "width",
1996
1996
  transform: ge
1997
1997
  });
1998
- pe({
1998
+ de({
1999
1999
  prop: "size",
2000
2000
  cssProperty: "height",
2001
2001
  transform: ge
2002
2002
  });
2003
- const sa = pe({
2003
+ const sa = de({
2004
2004
  prop: "boxSizing"
2005
2005
  });
2006
2006
  er(ta, Gr, ra, na, oa, ia, sa);
@@ -2008,23 +2008,23 @@ const Ct = {
2008
2008
  // borders
2009
2009
  border: {
2010
2010
  themeKey: "borders",
2011
- transform: ve
2011
+ transform: Se
2012
2012
  },
2013
2013
  borderTop: {
2014
2014
  themeKey: "borders",
2015
- transform: ve
2015
+ transform: Se
2016
2016
  },
2017
2017
  borderRight: {
2018
2018
  themeKey: "borders",
2019
- transform: ve
2019
+ transform: Se
2020
2020
  },
2021
2021
  borderBottom: {
2022
2022
  themeKey: "borders",
2023
- transform: ve
2023
+ transform: Se
2024
2024
  },
2025
2025
  borderLeft: {
2026
2026
  themeKey: "borders",
2027
- transform: ve
2027
+ transform: Se
2028
2028
  },
2029
2029
  borderColor: {
2030
2030
  themeKey: "palette"
@@ -2043,7 +2043,7 @@ const Ct = {
2043
2043
  },
2044
2044
  outline: {
2045
2045
  themeKey: "borders",
2046
- transform: ve
2046
+ transform: Se
2047
2047
  },
2048
2048
  outlineColor: {
2049
2049
  themeKey: "palette"
@@ -2055,16 +2055,16 @@ const Ct = {
2055
2055
  // palette
2056
2056
  color: {
2057
2057
  themeKey: "palette",
2058
- transform: it
2058
+ transform: st
2059
2059
  },
2060
2060
  bgcolor: {
2061
2061
  themeKey: "palette",
2062
2062
  cssProperty: "backgroundColor",
2063
- transform: it
2063
+ transform: st
2064
2064
  },
2065
2065
  backgroundColor: {
2066
2066
  themeKey: "palette",
2067
- transform: it
2067
+ transform: st
2068
2068
  },
2069
2069
  // spacing
2070
2070
  p: {
@@ -2682,7 +2682,7 @@ function jo({
2682
2682
  props: e
2683
2683
  });
2684
2684
  }
2685
- const Ta = (e, t) => e.filter((r) => t.includes(r)), ct = (e, t, r) => {
2685
+ const Ta = (e, t) => e.filter((r) => t.includes(r)), ut = (e, t, r) => {
2686
2686
  const n = e.keys[0];
2687
2687
  Array.isArray(t) ? t.forEach((o, i) => {
2688
2688
  r((a, l) => {
@@ -2705,12 +2705,12 @@ function Lt(e) {
2705
2705
  function ar(e) {
2706
2706
  return `--Grid-parent-${e}Spacing`;
2707
2707
  }
2708
- const $n = "--Grid-columns", st = "--Grid-parent-columns", wa = ({
2708
+ const $n = "--Grid-columns", at = "--Grid-parent-columns", wa = ({
2709
2709
  theme: e,
2710
2710
  ownerState: t
2711
2711
  }) => {
2712
2712
  const r = {};
2713
- return ct(e.breakpoints, t.size, (n, o) => {
2713
+ return ut(e.breakpoints, t.size, (n, o) => {
2714
2714
  let i = {};
2715
2715
  o === "grow" && (i = {
2716
2716
  flexBasis: 0,
@@ -2725,7 +2725,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", wa = ({
2725
2725
  }), typeof o == "number" && (i = {
2726
2726
  flexGrow: 0,
2727
2727
  flexBasis: "auto",
2728
- width: `calc(100% * ${o} / var(${st}) - (var(${st}) - ${o}) * (var(${ar("column")}) / var(${st})))`
2728
+ width: `calc(100% * ${o} / var(${at}) - (var(${at}) - ${o}) * (var(${ar("column")}) / var(${at})))`
2729
2729
  }), n(r, i);
2730
2730
  }), r;
2731
2731
  }, Ea = ({
@@ -2733,12 +2733,12 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", wa = ({
2733
2733
  ownerState: t
2734
2734
  }) => {
2735
2735
  const r = {};
2736
- return ct(e.breakpoints, t.offset, (n, o) => {
2736
+ return ut(e.breakpoints, t.offset, (n, o) => {
2737
2737
  let i = {};
2738
2738
  o === "auto" && (i = {
2739
2739
  marginLeft: "auto"
2740
2740
  }), typeof o == "number" && (i = {
2741
- marginLeft: o === 0 ? "0px" : `calc(100% * ${o} / var(${st}) + var(${ar("column")}) * ${o} / var(${st}))`
2741
+ marginLeft: o === 0 ? "0px" : `calc(100% * ${o} / var(${at}) + var(${ar("column")}) * ${o} / var(${at}))`
2742
2742
  }), n(r, i);
2743
2743
  }), r;
2744
2744
  }, Oa = ({
@@ -2750,12 +2750,12 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", wa = ({
2750
2750
  const r = {
2751
2751
  [$n]: 12
2752
2752
  };
2753
- return ct(e.breakpoints, t.columns, (n, o) => {
2753
+ return ut(e.breakpoints, t.columns, (n, o) => {
2754
2754
  const i = o ?? 12;
2755
2755
  n(r, {
2756
2756
  [$n]: i,
2757
2757
  "> *": {
2758
- [st]: i
2758
+ [at]: i
2759
2759
  }
2760
2760
  });
2761
2761
  }), r;
@@ -2766,7 +2766,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", wa = ({
2766
2766
  if (!t.container)
2767
2767
  return {};
2768
2768
  const r = {};
2769
- return ct(e.breakpoints, t.rowSpacing, (n, o) => {
2769
+ return ut(e.breakpoints, t.rowSpacing, (n, o) => {
2770
2770
  const i = typeof o == "string" ? o : e.spacing?.(o);
2771
2771
  n(r, {
2772
2772
  [Lt("row")]: i,
@@ -2782,7 +2782,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", wa = ({
2782
2782
  if (!t.container)
2783
2783
  return {};
2784
2784
  const r = {};
2785
- return ct(e.breakpoints, t.columnSpacing, (n, o) => {
2785
+ return ut(e.breakpoints, t.columnSpacing, (n, o) => {
2786
2786
  const i = typeof o == "string" ? o : e.spacing?.(o);
2787
2787
  n(r, {
2788
2788
  [Lt("column")]: i,
@@ -2798,7 +2798,7 @@ const $n = "--Grid-columns", st = "--Grid-parent-columns", wa = ({
2798
2798
  if (!t.container)
2799
2799
  return {};
2800
2800
  const r = {};
2801
- return ct(e.breakpoints, t.direction, (n, o) => {
2801
+ return ut(e.breakpoints, t.direction, (n, o) => {
2802
2802
  n(r, {
2803
2803
  flexDirection: o
2804
2804
  });
@@ -3480,7 +3480,7 @@ const bt = {
3480
3480
  500: "#f44336",
3481
3481
  700: "#d32f2f",
3482
3482
  800: "#c62828"
3483
- }, ft = {
3483
+ }, dt = {
3484
3484
  300: "#ffb74d",
3485
3485
  400: "#ffa726",
3486
3486
  500: "#ff9800",
@@ -3641,14 +3641,14 @@ function hl(e = "light") {
3641
3641
  }
3642
3642
  function gl(e = "light") {
3643
3643
  return e === "dark" ? {
3644
- main: ft[400],
3645
- light: ft[300],
3646
- dark: ft[700]
3644
+ main: dt[400],
3645
+ light: dt[300],
3646
+ dark: dt[700]
3647
3647
  } : {
3648
3648
  main: "#ed6c02",
3649
3649
  // closest to orange[800] that pass 3:1.
3650
- light: ft[500],
3651
- dark: ft[900]
3650
+ light: dt[500],
3651
+ dark: dt[900]
3652
3652
  };
3653
3653
  }
3654
3654
  function yl(e) {
@@ -4347,7 +4347,7 @@ function Xo() {
4347
4347
  function Fl(e) {
4348
4348
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
4349
4349
  }
4350
- const Qo = (e) => Fl(e) && e !== "classes", me = Bo({
4350
+ const Qo = (e) => Fl(e) && e !== "classes", pe = Bo({
4351
4351
  themeId: Ur,
4352
4352
  defaultTheme: Ko,
4353
4353
  rootShouldForwardProp: Qo
@@ -4357,7 +4357,7 @@ function $e(e) {
4357
4357
  return Ha(e);
4358
4358
  }
4359
4359
  const Ke = Va({
4360
- createStyledComponent: me("div", {
4360
+ createStyledComponent: pe("div", {
4361
4361
  name: "MuiGrid",
4362
4362
  slot: "Root",
4363
4363
  overridesResolver: (e, t) => {
@@ -4547,6 +4547,7 @@ function Ul({
4547
4547
  field: h,
4548
4548
  fieldProps: {
4549
4549
  ...e.ui?.props,
4550
+ ...e.fieldProps,
4550
4551
  disabled: d.disabled,
4551
4552
  required: d.required,
4552
4553
  readOnly: d.readonly,
@@ -4582,7 +4583,7 @@ const Yl = mi(Ul, (e, t) => {
4582
4583
  return !1;
4583
4584
  return !0;
4584
4585
  }), Hl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Ke, { container: !0, spacing: e, children: t }), Jo = cl({
4585
- createStyledComponent: me("div", {
4586
+ createStyledComponent: pe("div", {
4586
4587
  name: "MuiStack",
4587
4588
  slot: "Root"
4588
4589
  }),
@@ -4657,7 +4658,27 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4657
4658
  "& .MuiInputLabel-asterisk": {
4658
4659
  display: "none"
4659
4660
  }
4660
- }, Wn = "YYYY-MM-DD", Ln = "YYYY-MM-DD HH:mm", Xl = yo("ul")(({ theme: e }) => ({
4661
+ }, Wn = "YYYY-MM-DD", Ln = "YYYY-MM-DD HH:mm", ye = (e, t) => t ? /* @__PURE__ */ E(
4662
+ nt,
4663
+ {
4664
+ component: "span",
4665
+ sx: {
4666
+ display: "inline-flex",
4667
+ alignItems: "center",
4668
+ "&::before": {
4669
+ content: '"✱"',
4670
+ color: "error.main",
4671
+ mr: "4px",
4672
+ fontSize: "0.5em",
4673
+ alignSelf: "center",
4674
+ display: "inline-flex",
4675
+ alignItems: "center",
4676
+ justifyContent: "center"
4677
+ }
4678
+ },
4679
+ children: e
4680
+ }
4681
+ ) : e, Xl = yo("ul")(({ theme: e }) => ({
4661
4682
  padding: e.spacing(0.5),
4662
4683
  margin: 0,
4663
4684
  listStyle: "none",
@@ -4700,10 +4721,10 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4700
4721
  error: l,
4701
4722
  ...u
4702
4723
  } = e;
4703
- return /* @__PURE__ */ de(Xl, { ...u, ref: t, children: [
4724
+ return /* @__PURE__ */ me(Xl, { ...u, ref: t, children: [
4704
4725
  r,
4705
4726
  a && !n && /* @__PURE__ */ E(
4706
- pt,
4727
+ nt,
4707
4728
  {
4708
4729
  component: "li",
4709
4730
  className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
@@ -4717,7 +4738,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4717
4738
  }
4718
4739
  ),
4719
4740
  l && /* @__PURE__ */ E(
4720
- pt,
4741
+ nt,
4721
4742
  {
4722
4743
  component: "li",
4723
4744
  className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
@@ -4731,8 +4752,8 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4731
4752
  children: /* @__PURE__ */ E(Ot, { variant: "body2", children: "加载失败,请重试" })
4732
4753
  }
4733
4754
  ),
4734
- n && /* @__PURE__ */ de(
4735
- pt,
4755
+ n && /* @__PURE__ */ me(
4756
+ nt,
4736
4757
  {
4737
4758
  component: "li",
4738
4759
  className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
@@ -4753,7 +4774,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4753
4774
  }
4754
4775
  ),
4755
4776
  !o && i && !n && !a && /* @__PURE__ */ E(
4756
- pt,
4777
+ nt,
4757
4778
  {
4758
4779
  component: "li",
4759
4780
  className: "MuiAutocomplete-option MuiAutocomplete-listboxStatus",
@@ -4884,7 +4905,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4884
4905
  (P) => (e.value ?? []).includes(P.value)
4885
4906
  ) : x.find((P) => P.value === e.value) ?? null;
4886
4907
  return /* @__PURE__ */ E(
4887
- at,
4908
+ lt,
4888
4909
  {
4889
4910
  fullWidth: !0,
4890
4911
  error: r,
@@ -4954,13 +4975,13 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4954
4975
  disabled: y?.disabled,
4955
4976
  renderOption: (P, D) => /* @__PURE__ */ hi("li", { ...P, key: D.key ?? D.value }, D.listLabel ?? D.label),
4956
4977
  renderInput: (P) => /* @__PURE__ */ E(
4957
- lt,
4978
+ ct,
4958
4979
  {
4959
4980
  ...P,
4960
4981
  error: r,
4961
4982
  fullWidth: !0,
4962
4983
  helperText: n,
4963
- label: t,
4984
+ label: ye(t, y?.required),
4964
4985
  onBlur: () => {
4965
4986
  e.onBlur?.(), a?.trigger(e.name);
4966
4987
  },
@@ -4970,7 +4991,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4970
4991
  slotProps: {
4971
4992
  input: {
4972
4993
  ...P.InputProps,
4973
- endAdornment: /* @__PURE__ */ de(Dr, { children: [
4994
+ endAdornment: /* @__PURE__ */ me(Dr, { children: [
4974
4995
  g || m ? /* @__PURE__ */ E(bo, { color: "inherit", size: 20 }) : null,
4975
4996
  P.InputProps.endAdornment
4976
4997
  ] })
@@ -4982,23 +5003,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
4982
5003
  )
4983
5004
  }
4984
5005
  );
4985
- }, Se = (e, t) => t ? /* @__PURE__ */ de("span", { style: { display: "flex", alignItems: "center" }, children: [
4986
- /* @__PURE__ */ E(
4987
- "span",
4988
- {
4989
- style: {
4990
- color: "#d32f2f",
4991
- marginRight: "4px",
4992
- fontSize: "20px",
4993
- fontWeight: "bold",
4994
- lineHeight: "1",
4995
- paddingTop: "4px"
4996
- },
4997
- children: "*"
4998
- }
4999
- ),
5000
- e
5001
- ] }) : e, Fn = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ de(at, { error: r, required: o?.required, component: "fieldset", children: [
5006
+ }, Fn = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ me(lt, { error: r, required: o?.required, component: "fieldset", children: [
5002
5007
  /* @__PURE__ */ E(
5003
5008
  jr,
5004
5009
  {
@@ -5011,7 +5016,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
5011
5016
  inputRef: e.ref
5012
5017
  }
5013
5018
  ),
5014
- label: Se(t, o?.required)
5019
+ label: ye(t, o?.required)
5015
5020
  }
5016
5021
  ),
5017
5022
  n && /* @__PURE__ */ E(zr, { children: n })
@@ -5045,10 +5050,10 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
5045
5050
  ...d
5046
5051
  }
5047
5052
  ) : /* @__PURE__ */ E(
5048
- lt,
5053
+ ct,
5049
5054
  {
5050
5055
  ...e,
5051
- label: Se(t, d?.required),
5056
+ label: ye(t, d?.required),
5052
5057
  error: r,
5053
5058
  helperText: n,
5054
5059
  fullWidth: !0,
@@ -5073,7 +5078,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
5073
5078
  slotProps: {
5074
5079
  textField: {
5075
5080
  fullWidth: !0,
5076
- label: Se(t, o?.required),
5081
+ label: ye(t, o?.required),
5077
5082
  error: r,
5078
5083
  helperText: n,
5079
5084
  required: o?.required,
@@ -5101,7 +5106,7 @@ const Kl = ({ spacing: e = 2, children: t }) => /* @__PURE__ */ E(Jo, { spacing:
5101
5106
  slotProps: {
5102
5107
  textField: {
5103
5108
  fullWidth: !0,
5104
- label: Se(t, o?.required),
5109
+ label: ye(t, o?.required),
5105
5110
  error: r,
5106
5111
  helperText: n,
5107
5112
  required: o?.required,
@@ -5130,7 +5135,7 @@ const ec = (e) => {
5130
5135
  root: ["root", t !== "inherit" && `color${Z(t)}`, `fontSize${Z(r)}`]
5131
5136
  };
5132
5137
  return Pe(o, Zl, n);
5133
- }, tc = me("svg", {
5138
+ }, tc = pe("svg", {
5134
5139
  name: "MuiSvgIcon",
5135
5140
  slot: "Root",
5136
5141
  overridesResolver: (e, t) => {
@@ -5252,7 +5257,7 @@ const ec = (e) => {
5252
5257
  }, g = {};
5253
5258
  m || (g.viewBox = p);
5254
5259
  const C = ec(f);
5255
- return /* @__PURE__ */ de(tc, {
5260
+ return /* @__PURE__ */ me(tc, {
5256
5261
  as: l,
5257
5262
  className: fe(C.root, i),
5258
5263
  focusable: "false",
@@ -5524,7 +5529,7 @@ function Pr(e, t) {
5524
5529
  function mc(e, t) {
5525
5530
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Pr(e, t);
5526
5531
  }
5527
- const Xn = dt.createContext(null);
5532
+ const Xn = pt.createContext(null);
5528
5533
  function hc(e) {
5529
5534
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5530
5535
  return e;
@@ -5644,13 +5649,13 @@ var vc = Object.values || function(e) {
5644
5649
  }));
5645
5650
  }, r.render = function() {
5646
5651
  var o = this.props, i = o.component, a = o.childFactory, l = pc(o, ["component", "childFactory"]), u = this.state.contextValue, d = vc(this.state.children).map(a);
5647
- return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ dt.createElement(Xn.Provider, {
5652
+ return delete l.appear, delete l.enter, delete l.exit, i === null ? /* @__PURE__ */ pt.createElement(Xn.Provider, {
5648
5653
  value: u
5649
- }, d) : /* @__PURE__ */ dt.createElement(Xn.Provider, {
5654
+ }, d) : /* @__PURE__ */ pt.createElement(Xn.Provider, {
5650
5655
  value: u
5651
- }, /* @__PURE__ */ dt.createElement(i, l, d));
5656
+ }, /* @__PURE__ */ pt.createElement(i, l, d));
5652
5657
  }, t;
5653
- })(dt.Component);
5658
+ })(pt.Component);
5654
5659
  Qr.propTypes = process.env.NODE_ENV !== "production" ? {
5655
5660
  /**
5656
5661
  * `<TransitionGroup>` renders a `<div>` by default. You can change this
@@ -5798,7 +5803,7 @@ process.env.NODE_ENV !== "production" && (ei.propTypes = {
5798
5803
  */
5799
5804
  timeout: s.number.isRequired
5800
5805
  });
5801
- const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Ir = 550, wc = 80, Ec = St`
5806
+ const ve = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Ir = 550, wc = 80, Ec = St`
5802
5807
  0% {
5803
5808
  transform: scale(0);
5804
5809
  opacity: 0.1;
@@ -5828,7 +5833,7 @@ const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5828
5833
  100% {
5829
5834
  transform: scale(1);
5830
5835
  }
5831
- `, Rc = me("span", {
5836
+ `, Rc = pe("span", {
5832
5837
  name: "MuiTouchRipple",
5833
5838
  slot: "Root"
5834
5839
  })({
@@ -5841,14 +5846,14 @@ const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5841
5846
  bottom: 0,
5842
5847
  left: 0,
5843
5848
  borderRadius: "inherit"
5844
- }), kc = me(ei, {
5849
+ }), kc = pe(ei, {
5845
5850
  name: "MuiTouchRipple",
5846
5851
  slot: "Ripple"
5847
5852
  })`
5848
5853
  opacity: 0;
5849
5854
  position: absolute;
5850
5855
 
5851
- &.${be.rippleVisible} {
5856
+ &.${ve.rippleVisible} {
5852
5857
  opacity: 0.3;
5853
5858
  transform: scale(1);
5854
5859
  animation-name: ${Ec};
@@ -5858,13 +5863,13 @@ const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5858
5863
  }) => e.transitions.easing.easeInOut};
5859
5864
  }
5860
5865
 
5861
- &.${be.ripplePulsate} {
5866
+ &.${ve.ripplePulsate} {
5862
5867
  animation-duration: ${({
5863
5868
  theme: e
5864
5869
  }) => e.transitions.duration.shorter}ms;
5865
5870
  }
5866
5871
 
5867
- & .${be.child} {
5872
+ & .${ve.child} {
5868
5873
  opacity: 1;
5869
5874
  display: block;
5870
5875
  width: 100%;
@@ -5873,7 +5878,7 @@ const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5873
5878
  background-color: currentColor;
5874
5879
  }
5875
5880
 
5876
- & .${be.childLeaving} {
5881
+ & .${ve.childLeaving} {
5877
5882
  opacity: 0;
5878
5883
  animation-name: ${Oc};
5879
5884
  animation-duration: ${Ir}ms;
@@ -5882,7 +5887,7 @@ const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5882
5887
  }) => e.transitions.easing.easeInOut};
5883
5888
  }
5884
5889
 
5885
- & .${be.childPulsate} {
5890
+ & .${ve.childPulsate} {
5886
5891
  position: absolute;
5887
5892
  /* @noflip */
5888
5893
  left: 0px;
@@ -5918,12 +5923,12 @@ const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
5918
5923
  } = O;
5919
5924
  d((q) => [...q, /* @__PURE__ */ E(kc, {
5920
5925
  classes: {
5921
- ripple: fe(i.ripple, be.ripple),
5922
- rippleVisible: fe(i.rippleVisible, be.rippleVisible),
5923
- ripplePulsate: fe(i.ripplePulsate, be.ripplePulsate),
5924
- child: fe(i.child, be.child),
5925
- childLeaving: fe(i.childLeaving, be.childLeaving),
5926
- childPulsate: fe(i.childPulsate, be.childPulsate)
5926
+ ripple: fe(i.ripple, ve.ripple),
5927
+ rippleVisible: fe(i.rippleVisible, ve.rippleVisible),
5928
+ ripplePulsate: fe(i.ripplePulsate, ve.ripplePulsate),
5929
+ child: fe(i.child, ve.child),
5930
+ childLeaving: fe(i.childLeaving, ve.childLeaving),
5931
+ childPulsate: fe(i.childPulsate, ve.childPulsate)
5927
5932
  },
5928
5933
  timeout: Ir,
5929
5934
  pulsate: v,
@@ -6001,7 +6006,7 @@ const be = Ie("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
6001
6006
  start: C,
6002
6007
  stop: N
6003
6008
  }), [k, C, N]), /* @__PURE__ */ E(Rc, {
6004
- className: fe(be.root, i.root, a),
6009
+ className: fe(ve.root, i.root, a),
6005
6010
  ref: f,
6006
6011
  ...l,
6007
6012
  children: /* @__PURE__ */ E(Qr, {
@@ -6039,7 +6044,7 @@ const Pc = Ie("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6039
6044
  root: ["root", t && "disabled", r && "focusVisible"]
6040
6045
  }, Ac, o);
6041
6046
  return r && n && (a.root += ` ${n}`), a;
6042
- }, Mc = me("button", {
6047
+ }, Mc = pe("button", {
6043
6048
  name: "MuiButtonBase",
6044
6049
  slot: "Root"
6045
6050
  })({
@@ -6130,7 +6135,7 @@ const Pc = Ie("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6130
6135
  R && Q.preventDefault(), X && X(Q);
6131
6136
  }, y), H = _e(oe, "start", c, y), K = _e(oe, "stop", q, y), ae = _e(oe, "stop", _, y), M = _e(oe, "stop", (Q) => {
6132
6137
  Hn(Q.target) || G(!1), f && f(Q);
6133
- }, !1), ye = Dt((Q) => {
6138
+ }, !1), be = Dt((Q) => {
6134
6139
  J.current || (J.current = Q.currentTarget), Hn(Q.target) && (G(!0), O && O(Q)), N && N(Q);
6135
6140
  }), Ne = () => {
6136
6141
  const Q = J.current;
@@ -6146,12 +6151,12 @@ const Pc = Ie("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6146
6151
  });
6147
6152
  let Et = u;
6148
6153
  Et === "button" && (Y.href || Y.to) && (Et = h);
6149
- const ut = {};
6154
+ const ft = {};
6150
6155
  if (Et === "button") {
6151
6156
  const Q = !!Y.formAction;
6152
- ut.type = I === void 0 && !Q ? "button" : I, ut.disabled = d;
6157
+ ft.type = I === void 0 && !Q ? "button" : I, ft.disabled = d;
6153
6158
  } else
6154
- !Y.href && !Y.to && (ut.role = "button"), d && (ut["aria-disabled"] = d);
6159
+ !Y.href && !Y.to && (ft.role = "button"), d && (ft["aria-disabled"] = d);
6155
6160
  const di = Yn(r, J), rn = {
6156
6161
  ...n,
6157
6162
  centerRipple: i,
@@ -6163,14 +6168,14 @@ const Pc = Ie("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6163
6168
  tabIndex: T,
6164
6169
  focusVisible: R
6165
6170
  }, pi = Ic(rn);
6166
- return /* @__PURE__ */ de(Mc, {
6171
+ return /* @__PURE__ */ me(Mc, {
6167
6172
  as: Et,
6168
6173
  className: fe(pi.root, l),
6169
6174
  ownerState: rn,
6170
6175
  onBlur: M,
6171
6176
  onClick: g,
6172
6177
  onContextMenu: D,
6173
- onFocus: ye,
6178
+ onFocus: be,
6174
6179
  onKeyDown: wt,
6175
6180
  onKeyUp: fi,
6176
6181
  onMouseDown: P,
@@ -6183,7 +6188,7 @@ const Pc = Ie("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ic = (e) =
6183
6188
  ref: di,
6184
6189
  tabIndex: d ? -1 : T,
6185
6190
  type: I,
6186
- ...ut,
6191
+ ...ft,
6187
6192
  ...Y,
6188
6193
  children: [a, U ? /* @__PURE__ */ E(ti, {
6189
6194
  ref: $,
@@ -6415,7 +6420,7 @@ const Te = 44, Mr = St`
6415
6420
  circle: ["circle", `circle${Z(r)}`, o && "circleDisableShrink"]
6416
6421
  };
6417
6422
  return Pe(i, Bc, t);
6418
- }, zc = me("span", {
6423
+ }, zc = pe("span", {
6419
6424
  name: "MuiCircularProgress",
6420
6425
  slot: "Root",
6421
6426
  overridesResolver: (e, t) => {
@@ -6450,13 +6455,13 @@ const Te = 44, Mr = St`
6450
6455
  color: (e.vars || e).palette[t].main
6451
6456
  }
6452
6457
  }))]
6453
- }))), Wc = me("svg", {
6458
+ }))), Wc = pe("svg", {
6454
6459
  name: "MuiCircularProgress",
6455
6460
  slot: "Svg"
6456
6461
  })({
6457
6462
  display: "block"
6458
6463
  // Keeps the progress centered
6459
- }), Lc = me("circle", {
6464
+ }), Lc = pe("circle", {
6460
6465
  name: "MuiCircularProgress",
6461
6466
  slot: "Circle",
6462
6467
  overridesResolver: (e, t) => {
@@ -6495,7 +6500,7 @@ const Te = 44, Mr = St`
6495
6500
  animation: `${_r} 1.4s ease-in-out infinite`
6496
6501
  }
6497
6502
  }]
6498
- }))), Fc = me("circle", {
6503
+ }))), Fc = pe("circle", {
6499
6504
  name: "MuiCircularProgress",
6500
6505
  slot: "Track"
6501
6506
  })(Oe(({
@@ -6545,7 +6550,7 @@ const Te = 44, Mr = St`
6545
6550
  role: "progressbar",
6546
6551
  ...k,
6547
6552
  ...b,
6548
- children: /* @__PURE__ */ de(Wc, {
6553
+ children: /* @__PURE__ */ me(Wc, {
6549
6554
  className: f.svg,
6550
6555
  ownerState: h,
6551
6556
  viewBox: `${Te / 2} ${Te / 2} ${Te} ${Te}`,
@@ -6692,7 +6697,7 @@ const Gc = (e) => {
6692
6697
  fontSize: 22
6693
6698
  }
6694
6699
  }
6695
- }], Uc = me(Zr, {
6700
+ }], Uc = pe(Zr, {
6696
6701
  shouldForwardProp: (e) => Qo(e) || e === "classes",
6697
6702
  name: "MuiButton",
6698
6703
  slot: "Root",
@@ -6900,7 +6905,7 @@ const Gc = (e) => {
6900
6905
  }
6901
6906
  }]
6902
6907
  };
6903
- })), Yc = me("span", {
6908
+ })), Yc = pe("span", {
6904
6909
  name: "MuiButton",
6905
6910
  slot: "StartIcon",
6906
6911
  overridesResolver: (e, t) => {
@@ -6943,7 +6948,7 @@ const Gc = (e) => {
6943
6948
  marginRight: -8
6944
6949
  }
6945
6950
  }, ...oi]
6946
- })), Hc = me("span", {
6951
+ })), Hc = pe("span", {
6947
6952
  name: "MuiButton",
6948
6953
  slot: "EndIcon",
6949
6954
  overridesResolver: (e, t) => {
@@ -6986,7 +6991,7 @@ const Gc = (e) => {
6986
6991
  marginLeft: -8
6987
6992
  }
6988
6993
  }, ...oi]
6989
- })), Kc = me("span", {
6994
+ })), Kc = pe("span", {
6990
6995
  name: "MuiButton",
6991
6996
  slot: "LoadingIndicator"
6992
6997
  })(({
@@ -7076,7 +7081,7 @@ const Gc = (e) => {
7076
7081
  right: -10
7077
7082
  }
7078
7083
  }]
7079
- })), Qn = me("span", {
7084
+ })), Qn = pe("span", {
7080
7085
  name: "MuiButton",
7081
7086
  slot: "LoadingIconPlaceholder"
7082
7087
  })({
@@ -7153,7 +7158,7 @@ const Gc = (e) => {
7153
7158
  })
7154
7159
  })
7155
7160
  ) : null;
7156
- return /* @__PURE__ */ de(Uc, {
7161
+ return /* @__PURE__ */ me(Uc, {
7157
7162
  ownerState: c,
7158
7163
  className: fe(n.className, T.root, m, I),
7159
7164
  component: d,
@@ -7303,7 +7308,7 @@ const Qc = (e) => {
7303
7308
  root: ["root", t && "absolute", u, i && "light", a === "vertical" && "vertical", o && "flexItem", r && "withChildren", r && a === "vertical" && "withChildrenVertical", l === "right" && a !== "vertical" && "textAlignRight", l === "left" && a !== "vertical" && "textAlignLeft"],
7304
7309
  wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
7305
7310
  }, Xc, n);
7306
- }, Jc = me("div", {
7311
+ }, Jc = pe("div", {
7307
7312
  name: "MuiDivider",
7308
7313
  slot: "Root",
7309
7314
  overridesResolver: (e, t) => {
@@ -7444,7 +7449,7 @@ const Qc = (e) => {
7444
7449
  }
7445
7450
  }
7446
7451
  }]
7447
- }))), Zc = me("span", {
7452
+ }))), Zc = pe("span", {
7448
7453
  name: "MuiDivider",
7449
7454
  slot: "Wrapper",
7450
7455
  overridesResolver: (e, t) => {
@@ -7592,7 +7597,7 @@ const Jn = Ie("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7592
7597
  loadingWrapper: ["loadingWrapper"]
7593
7598
  };
7594
7599
  return Pe(l, eu, t);
7595
- }, ru = me(Zr, {
7600
+ }, ru = pe(Zr, {
7596
7601
  name: "MuiIconButton",
7597
7602
  slot: "Root",
7598
7603
  overridesResolver: (e, t) => {
@@ -7704,7 +7709,7 @@ const Jn = Ie("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7704
7709
  [`&.${Jn.loading}`]: {
7705
7710
  color: "transparent"
7706
7711
  }
7707
- }))), nu = me("span", {
7712
+ }))), nu = pe("span", {
7708
7713
  name: "MuiIconButton",
7709
7714
  slot: "LoadingIndicator"
7710
7715
  })(({
@@ -7755,7 +7760,7 @@ const Jn = Ie("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
7755
7760
  loadingIndicator: g,
7756
7761
  size: m
7757
7762
  }, k = tu(C);
7758
- return /* @__PURE__ */ de(ru, {
7763
+ return /* @__PURE__ */ me(ru, {
7759
7764
  id: p ? f : y,
7760
7765
  className: fe(k.root, a),
7761
7766
  centerRipple: !0,
@@ -7899,7 +7904,7 @@ const au = (e) => {
7899
7904
  root: ["root", n, !t && "rounded", n === "elevation" && `elevation${r}`]
7900
7905
  };
7901
7906
  return Pe(i, su, o);
7902
- }, lu = me("div", {
7907
+ }, lu = pe("div", {
7903
7908
  name: "MuiPaper",
7904
7909
  slot: "Root",
7905
7910
  overridesResolver: (e, t) => {
@@ -8054,7 +8059,7 @@ const uu = {
8054
8059
  root: ["root", i, e.align !== "inherit" && `align${Z(t)}`, r && "gutterBottom", n && "noWrap", o && "paragraph"]
8055
8060
  };
8056
8061
  return Pe(l, cu, a);
8057
- }, pu = me("span", {
8062
+ }, pu = pe("span", {
8058
8063
  name: "MuiTypography",
8059
8064
  slot: "Root",
8060
8065
  overridesResolver: (e, t) => {
@@ -8398,15 +8403,15 @@ const Tr = ({
8398
8403
  }
8399
8404
  ) }, `${F}-${X}`);
8400
8405
  };
8401
- return /* @__PURE__ */ de(Gt, { children: [
8406
+ return /* @__PURE__ */ me(Gt, { children: [
8402
8407
  a && /* @__PURE__ */ E(tn, { variant: "subtitle2", sx: { mb: 1, fontWeight: 600 }, children: a }),
8403
- l.map((w, z) => /* @__PURE__ */ de(
8408
+ l.map((w, z) => /* @__PURE__ */ me(
8404
8409
  li,
8405
8410
  {
8406
8411
  variant: "outlined",
8407
8412
  sx: { p: 2, mb: 2, position: "relative" },
8408
8413
  children: [
8409
- /* @__PURE__ */ de(
8414
+ /* @__PURE__ */ me(
8410
8415
  Gt,
8411
8416
  {
8412
8417
  sx: {
@@ -8471,7 +8476,7 @@ const to = ({
8471
8476
  if (!e?.columns || !t || !r)
8472
8477
  return null;
8473
8478
  const l = a || t.watch();
8474
- return /* @__PURE__ */ de(Gt, { sx: { width: "100%" }, children: [
8479
+ return /* @__PURE__ */ me(Gt, { sx: { width: "100%" }, children: [
8475
8480
  e.ui?.label && /* @__PURE__ */ E(tn, { variant: "subtitle1", gutterBottom: !0, sx: { fontWeight: "bold", mb: 2 }, children: e.ui.label }),
8476
8481
  /* @__PURE__ */ E(Ke, { container: !0, spacing: 2, children: e.columns.map((u, d) => {
8477
8482
  const m = Ht(
@@ -8530,7 +8535,7 @@ const to = ({
8530
8535
  }) })
8531
8536
  ] });
8532
8537
  }, ro = ({ field: e }) => /* @__PURE__ */ E("input", { type: "hidden", ...e, value: e.value ?? "" }), no = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ E(
8533
- lt,
8538
+ ct,
8534
8539
  {
8535
8540
  name: e.name,
8536
8541
  ref: e.ref,
@@ -8541,7 +8546,7 @@ const to = ({
8541
8546
  },
8542
8547
  onBlur: e.onBlur,
8543
8548
  type: "number",
8544
- label: Se(t, o?.required),
8549
+ label: ye(t, o?.required),
8545
8550
  error: r,
8546
8551
  helperText: n,
8547
8552
  fullWidth: !0,
@@ -8558,12 +8563,12 @@ const to = ({
8558
8563
  helperText: n,
8559
8564
  fieldProps: o
8560
8565
  }) => /* @__PURE__ */ E(
8561
- lt,
8566
+ ct,
8562
8567
  {
8563
8568
  ...e,
8564
8569
  value: e.value ?? "",
8565
8570
  type: "password",
8566
- label: Se(t, o?.required),
8571
+ label: ye(t, o?.required),
8567
8572
  error: r,
8568
8573
  helperText: n,
8569
8574
  fullWidth: !0,
@@ -8573,7 +8578,7 @@ const to = ({
8573
8578
  required: o?.required,
8574
8579
  ...o
8575
8580
  }
8576
- ), io = yo(pt)(({ theme: e }) => ({
8581
+ ), io = yo(nt)(({ theme: e }) => ({
8577
8582
  backgroundColor: "#fff",
8578
8583
  ...e.typography.body2,
8579
8584
  // padding: theme.spacing(1),
@@ -8605,8 +8610,8 @@ const to = ({
8605
8610
  ))
8606
8611
  }
8607
8612
  );
8608
- return /* @__PURE__ */ de(
8609
- at,
8613
+ return /* @__PURE__ */ me(
8614
+ lt,
8610
8615
  {
8611
8616
  component: "fieldset",
8612
8617
  disabled: i?.disabled,
@@ -8629,14 +8634,14 @@ const to = ({
8629
8634
  children: [
8630
8635
  u ? (
8631
8636
  // 行内布局:label 和 radio 在同一行
8632
- /* @__PURE__ */ de(nn, { direction: "row", spacing: 2, alignItems: "center", children: [
8633
- /* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(Vt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: Se(t, i?.required) }) }),
8637
+ /* @__PURE__ */ me(nn, { direction: "row", spacing: 2, alignItems: "center", children: [
8638
+ /* @__PURE__ */ E(io, { children: t && /* @__PURE__ */ E(Vt, { component: "legend", required: !1, sx: { mb: 0, flexShrink: 0 }, children: ye(t, i?.required) }) }),
8634
8639
  /* @__PURE__ */ E(io, { children: d })
8635
8640
  ] })
8636
8641
  ) : (
8637
8642
  // 默认布局:label 在上,radio 在下
8638
- /* @__PURE__ */ de(nn, { spacing: 0, children: [
8639
- t && /* @__PURE__ */ E(Vt, { component: "legend", required: !1, children: Se(t, i?.required) }),
8643
+ /* @__PURE__ */ me(nn, { spacing: 0, children: [
8644
+ t && /* @__PURE__ */ E(Vt, { component: "legend", required: !1, children: ye(t, i?.required) }),
8640
8645
  d
8641
8646
  ] })
8642
8647
  ),
@@ -8644,7 +8649,7 @@ const to = ({
8644
8649
  ]
8645
8650
  }
8646
8651
  );
8647
- }, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ de(at, { children: [
8652
+ }, ao = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ me(lt, { children: [
8648
8653
  t && /* @__PURE__ */ E(Vt, { children: t }),
8649
8654
  /* @__PURE__ */ E(
8650
8655
  Ri,
@@ -8656,7 +8661,7 @@ const to = ({
8656
8661
  ...r
8657
8662
  }
8658
8663
  )
8659
- ] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ de(at, { fullWidth: !0, children: [
8664
+ ] }), lo = ({ field: e, label: t, fieldProps: r }) => /* @__PURE__ */ me(lt, { fullWidth: !0, children: [
8660
8665
  t && /* @__PURE__ */ E(Vt, { children: t }),
8661
8666
  /* @__PURE__ */ E(
8662
8667
  ki,
@@ -8667,7 +8672,7 @@ const to = ({
8667
8672
  ...r
8668
8673
  }
8669
8674
  )
8670
- ] }), co = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ de(at, { error: r, required: o?.required, component: "fieldset", children: [
8675
+ ] }), co = ({ field: e, label: t, error: r, helperText: n, fieldProps: o }) => /* @__PURE__ */ me(lt, { error: r, required: o?.required, component: "fieldset", children: [
8671
8676
  /* @__PURE__ */ E(
8672
8677
  jr,
8673
8678
  {
@@ -8680,7 +8685,7 @@ const to = ({
8680
8685
  inputRef: e.ref
8681
8686
  }
8682
8687
  ),
8683
- label: Se(t, o?.required)
8688
+ label: ye(t, o?.required)
8684
8689
  }
8685
8690
  ),
8686
8691
  n && /* @__PURE__ */ E(zr, { children: n })
@@ -8691,11 +8696,11 @@ const to = ({
8691
8696
  helperText: n,
8692
8697
  fieldProps: o
8693
8698
  }) => /* @__PURE__ */ E(
8694
- lt,
8699
+ ct,
8695
8700
  {
8696
8701
  ...e,
8697
8702
  value: e.value ?? "",
8698
- label: Se(t, o?.required),
8703
+ label: ye(t, o?.required),
8699
8704
  multiline: !0,
8700
8705
  rows: 4,
8701
8706
  error: r,
@@ -8714,11 +8719,11 @@ const to = ({
8714
8719
  helperText: n,
8715
8720
  fieldProps: o
8716
8721
  }) => /* @__PURE__ */ E(
8717
- lt,
8722
+ ct,
8718
8723
  {
8719
8724
  ...e,
8720
8725
  value: e.value ?? "",
8721
- label: Se(t, o?.required),
8726
+ label: ye(t, o?.required),
8722
8727
  error: r,
8723
8728
  helperText: n,
8724
8729
  fullWidth: !0,
@@ -8742,7 +8747,7 @@ const to = ({
8742
8747
  slotProps: {
8743
8748
  textField: {
8744
8749
  fullWidth: !0,
8745
- label: Se(t, o?.required),
8750
+ label: ye(t, o?.required),
8746
8751
  error: r,
8747
8752
  helperText: n,
8748
8753
  required: o?.required,
@@ -9005,7 +9010,7 @@ function bu(e, t) {
9005
9010
  )
9006
9011
  ), x;
9007
9012
  }), q = y ?? r.layout?.spacing ?? 2;
9008
- return /* @__PURE__ */ E(xi, { ...g, children: /* @__PURE__ */ de("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
9013
+ return /* @__PURE__ */ E(xi, { ...g, children: /* @__PURE__ */ me("form", { noValidate: !0, style: { marginTop: "16px" }, children: [
9009
9014
  a ? /* @__PURE__ */ E(Hl, { spacing: q, children: F() }) : /* @__PURE__ */ E(Kl, { spacing: q, children: F() }),
9010
9015
  m
9011
9016
  ] }) });
@@ -9043,7 +9048,7 @@ export {
9043
9048
  qi as createDynamicResolver,
9044
9049
  hu as defaultWidgets,
9045
9050
  je as evaluateCondition,
9046
- nt as extractDependencies,
9051
+ ot as extractDependencies,
9047
9052
  Mu as getDownstreamFields,
9048
9053
  Vi as getWatchFields,
9049
9054
  _u as mergeDefaultValues,