@hybridcore/ui 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
  2. package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
  3. package/dist/Checkbox-DP6_qp1v.js +469 -0
  4. package/dist/Collapse-9egEADkh.js +296 -0
  5. package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
  6. package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
  7. package/dist/FormControlLabel-j_atSYQA.js +827 -0
  8. package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
  9. package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
  10. package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
  11. package/dist/ListItem-BFDUUjHt.js +428 -0
  12. package/dist/MenuItem-BejUFNIP.js +233 -0
  13. package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
  14. package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
  15. package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
  16. package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
  17. package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
  18. package/dist/components/card/index.js +5 -5
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/index.js +34 -0
  21. package/dist/components/collapsible-card/style.js +575 -0
  22. package/dist/components/confirm/dialog.js +5 -5
  23. package/dist/components/container/index.js +6 -6
  24. package/dist/components/context-menu/index.js +191 -603
  25. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  26. package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
  27. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  28. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  29. package/dist/components/geometry-picker/edit/index.js +1 -1
  30. package/dist/components/geometry-picker/geometry/index.js +1 -1
  31. package/dist/components/geometry-picker/index.js +2 -2
  32. package/dist/components/geometry-picker/kml/index.js +1 -1
  33. package/dist/components/geometry-picker/map/index.js +1 -1
  34. package/dist/components/geometry-picker/map/logic.js +1 -1
  35. package/dist/components/icon-button/index.js +1 -1
  36. package/dist/components/map/helpers/ol.js +2 -2
  37. package/dist/components/map/index.js +2 -2
  38. package/dist/components/map/logic.js +1 -1
  39. package/dist/components/map/styled.js +89 -6
  40. package/dist/components/search-input/index.js +119 -48
  41. package/dist/components/template-property-filters/index.js +78 -0
  42. package/dist/components/template-property-filters/property.js +7019 -0
  43. package/dist/components/tree-select/index.js +14 -13
  44. package/dist/components/treeview-filter/index.js +263 -328
  45. package/dist/components/treeview-filter/item/index.js +1 -1
  46. package/dist/components/treeview-filter/item-label/index.js +2 -2
  47. package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
  48. package/dist/createSvgIcon-R_PakhKf.js +213 -0
  49. package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
  50. package/dist/debounce-46wSf_lW.js +15 -0
  51. package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
  52. package/dist/index-C7W2wuUG.js +609 -0
  53. package/dist/index-DHnXB0CB.js +287 -0
  54. package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
  55. package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
  56. package/dist/main.d.ts +140 -0
  57. package/dist/main.js +1 -1
  58. package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
  59. package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
  60. package/dist/styled-CHMAYxVs.js +142 -0
  61. package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
  62. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  63. package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
  64. package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
  65. package/dist/useThemeProps-D4or2IlT.js +62 -0
  66. package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
  67. package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
  68. package/package.json +1 -1
  69. package/dist/Checkbox-DostZSwR.js +0 -673
  70. package/dist/index-Bw_m9ult.js +0 -1105
  71. package/dist/index-wW2D1aTG.js +0 -957
  72. package/dist/styled-C43K9x7T.js +0 -229
@@ -1,115 +1,70 @@
1
- import { a as l, _ as j } from "./extends-C3382pL0.js";
2
- import * as d from "react";
3
- import { c as $, P as n } from "./createTheme-agWfFD64.js";
4
- import { c as _, g as H, r as Vo, u as Y, a as G } from "./chainPropTypes-DtBfUj5o.js";
5
- import { g as U, s as L, r as Ho, a as eo } from "./styled-Iq9jsO4F.js";
1
+ import { _ as j, a as d } from "./extends-C3382pL0.js";
2
+ import * as c from "react";
3
+ import { c as M, P as e } from "./createTheme-oOCi1S_n.js";
4
+ import { g as U, r as Lo, u as Y, c as L, a as G } from "./chainPropTypes-BmidnkZm.js";
5
+ import { g as H, s as _, r as jo, a as eo } from "./styled-Wx2vv4j8.js";
6
6
  import { jsx as N, jsxs as co } from "react/jsx-runtime";
7
- import { a as J, B as Uo, u as ho, s as yo, b as Eo } from "./ButtonBase-BYmh3G5j.js";
8
- import { u as So } from "./useTheme-CeyGVuQP.js";
9
- import { T as Ko, r as qo, g as To } from "./utils-DLpkeyhZ.js";
10
- import { e as po, a as Oo } from "./exactProp-CI8dagM-.js";
7
+ import { a as Q, B as Vo, b as ho, s as yo, c as Eo } from "./ButtonBase-C7CHOX3y.js";
8
+ import { u as No } from "./useTheme-CD5DEi5n.js";
9
+ import { T as Uo, r as Ho, g as To } from "./utils-BEaBPoDF.js";
10
+ import { e as po, a as So } from "./exactProp-DhXxfU8X.js";
11
11
  import { o as V } from "./ownerDocument-CUrv0DIK.js";
12
12
  import { o as uo } from "./ownerWindow-niciwP7I.js";
13
- import { c as Co, u as Yo } from "./useId-BHG98T5I.js";
14
- import { i as Go } from "./isHostComponent-kiaBvYVo.js";
15
- import * as Xo from "react-dom";
16
- import { P as Do } from "./Paper-CaiWdndQ.js";
17
- function Io(o, e, t, r, s) {
13
+ import { r as Ko, m as qo, a as Yo, e as Go } from "./resolveComponentProps-BwtY1IP3.js";
14
+ import { c as Co, u as Xo } from "./useId-BHG98T5I.js";
15
+ import * as Jo from "react-dom";
16
+ import { P as Do } from "./Paper-k37cShvn.js";
17
+ function Oo(o, n, t, r, s) {
18
18
  if (process.env.NODE_ENV === "production")
19
19
  return null;
20
- const i = o[e], a = s || e;
20
+ const i = o[n], a = s || n;
21
21
  return i == null ? null : i && i.nodeType !== 1 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${t}\`. Expected an HTMLElement.`) : null;
22
22
  }
23
- function Zo(o) {
24
- const e = o.documentElement.clientWidth;
25
- return Math.abs(window.innerWidth - e);
26
- }
27
- function Jo(o, e, t) {
28
- return o === void 0 || Go(o) ? e : l({}, e, {
29
- ownerState: l({}, e.ownerState, t)
30
- });
31
- }
32
- function Bo(o, e = []) {
33
- if (o === void 0)
34
- return {};
35
- const t = {};
36
- return Object.keys(o).filter((r) => r.match(/^on[A-Z]/) && typeof o[r] == "function" && !e.includes(r)).forEach((r) => {
37
- t[r] = o[r];
38
- }), t;
39
- }
40
- function ko(o) {
41
- if (o === void 0)
42
- return {};
43
- const e = {};
44
- return Object.keys(o).filter((t) => !(t.match(/^on[A-Z]/) && typeof o[t] == "function")).forEach((t) => {
45
- e[t] = o[t];
46
- }), e;
47
- }
48
23
  function Qo(o) {
49
- const {
50
- getSlotProps: e,
51
- additionalProps: t,
52
- externalSlotProps: r,
53
- externalForwardedProps: s,
54
- className: i
55
- } = o;
56
- if (!e) {
57
- const h = _(t == null ? void 0 : t.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), f = l({}, t == null ? void 0 : t.style, s == null ? void 0 : s.style, r == null ? void 0 : r.style), S = l({}, t, s, r);
58
- return h.length > 0 && (S.className = h), Object.keys(f).length > 0 && (S.style = f), {
59
- props: S,
60
- internalRef: void 0
61
- };
62
- }
63
- const a = Bo(l({}, s, r)), c = ko(r), p = ko(s), b = e(a), m = _(b == null ? void 0 : b.className, t == null ? void 0 : t.className, i, s == null ? void 0 : s.className, r == null ? void 0 : r.className), v = l({}, b == null ? void 0 : b.style, t == null ? void 0 : t.style, s == null ? void 0 : s.style, r == null ? void 0 : r.style), y = l({}, b, t, p, c);
64
- return m.length > 0 && (y.className = m), Object.keys(v).length > 0 && (y.style = v), {
65
- props: y,
66
- internalRef: b.ref
67
- };
24
+ const n = o.documentElement.clientWidth;
25
+ return Math.abs(window.innerWidth - n);
68
26
  }
69
- function oe(o, e, t) {
70
- return typeof o == "function" ? o(e, t) : o;
71
- }
72
- const ee = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
73
- function Po(o) {
74
- var e;
27
+ const Zo = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
28
+ function ko(o) {
29
+ var n;
75
30
  const {
76
31
  elementType: t,
77
32
  externalSlotProps: r,
78
33
  ownerState: s,
79
34
  skipResolvingSlotProps: i = !1
80
- } = o, a = j(o, ee), c = i ? {} : oe(r, s), {
81
- props: p,
82
- internalRef: b
83
- } = Qo(l({}, a, {
84
- externalSlotProps: c
85
- })), m = J(b, c == null ? void 0 : c.ref, (e = o.additionalProps) == null ? void 0 : e.ref);
86
- return Jo(t, l({}, p, {
35
+ } = o, a = j(o, Zo), l = i ? {} : Ko(r, s), {
36
+ props: u,
37
+ internalRef: g
38
+ } = qo(d({}, a, {
39
+ externalSlotProps: l
40
+ })), m = Q(g, l == null ? void 0 : l.ref, (n = o.additionalProps) == null ? void 0 : n.ref);
41
+ return Yo(t, d({}, u, {
87
42
  ref: m
88
43
  }), s);
89
44
  }
90
- function ne(o) {
91
- return U("MuiButton", o);
45
+ function oe(o) {
46
+ return H("MuiButton", o);
92
47
  }
93
- const no = H("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), Mo = /* @__PURE__ */ d.createContext({});
94
- process.env.NODE_ENV !== "production" && (Mo.displayName = "ButtonGroupContext");
95
- const $o = /* @__PURE__ */ d.createContext(void 0);
96
- process.env.NODE_ENV !== "production" && ($o.displayName = "ButtonGroupButtonContext");
97
- const te = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], re = (o) => {
48
+ const no = U("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), Io = /* @__PURE__ */ c.createContext({});
49
+ process.env.NODE_ENV !== "production" && (Io.displayName = "ButtonGroupContext");
50
+ const Bo = /* @__PURE__ */ c.createContext(void 0);
51
+ process.env.NODE_ENV !== "production" && (Bo.displayName = "ButtonGroupButtonContext");
52
+ const ee = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], ne = (o) => {
98
53
  const {
99
- color: e,
54
+ color: n,
100
55
  disableElevation: t,
101
56
  fullWidth: r,
102
57
  size: s,
103
58
  variant: i,
104
59
  classes: a
105
- } = o, c = {
106
- root: ["root", i, `${i}${$(e)}`, `size${$(s)}`, `${i}Size${$(s)}`, `color${$(e)}`, t && "disableElevation", r && "fullWidth"],
60
+ } = o, l = {
61
+ root: ["root", i, `${i}${M(n)}`, `size${M(s)}`, `${i}Size${M(s)}`, `color${M(n)}`, t && "disableElevation", r && "fullWidth"],
107
62
  label: ["label"],
108
- startIcon: ["icon", "startIcon", `iconSize${$(s)}`],
109
- endIcon: ["icon", "endIcon", `iconSize${$(s)}`]
110
- }, p = G(c, ne, a);
111
- return l({}, a, p);
112
- }, Wo = (o) => l({}, o.size === "small" && {
63
+ startIcon: ["icon", "startIcon", `iconSize${M(s)}`],
64
+ endIcon: ["icon", "endIcon", `iconSize${M(s)}`]
65
+ }, u = G(l, oe, a);
66
+ return d({}, a, u);
67
+ }, Mo = (o) => d({}, o.size === "small" && {
113
68
  "& > *:nth-of-type(1)": {
114
69
  fontSize: 18
115
70
  }
@@ -121,50 +76,50 @@ const te = ["children", "color", "component", "className", "disabled", "disableE
121
76
  "& > *:nth-of-type(1)": {
122
77
  fontSize: 22
123
78
  }
124
- }), ie = L(Uo, {
125
- shouldForwardProp: (o) => Ho(o) || o === "classes",
79
+ }), te = _(Vo, {
80
+ shouldForwardProp: (o) => jo(o) || o === "classes",
126
81
  name: "MuiButton",
127
82
  slot: "Root",
128
- overridesResolver: (o, e) => {
83
+ overridesResolver: (o, n) => {
129
84
  const {
130
85
  ownerState: t
131
86
  } = o;
132
- return [e.root, e[t.variant], e[`${t.variant}${$(t.color)}`], e[`size${$(t.size)}`], e[`${t.variant}Size${$(t.size)}`], t.color === "inherit" && e.colorInherit, t.disableElevation && e.disableElevation, t.fullWidth && e.fullWidth];
87
+ return [n.root, n[t.variant], n[`${t.variant}${M(t.color)}`], n[`size${M(t.size)}`], n[`${t.variant}Size${M(t.size)}`], t.color === "inherit" && n.colorInherit, t.disableElevation && n.disableElevation, t.fullWidth && n.fullWidth];
133
88
  }
134
89
  })(({
135
90
  theme: o,
136
- ownerState: e
91
+ ownerState: n
137
92
  }) => {
138
93
  var t, r;
139
94
  const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], i = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
140
- return l({}, o.typography.button, {
95
+ return d({}, o.typography.button, {
141
96
  minWidth: 64,
142
97
  padding: "6px 16px",
143
98
  borderRadius: (o.vars || o).shape.borderRadius,
144
99
  transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
145
100
  duration: o.transitions.duration.short
146
101
  }),
147
- "&:hover": l({
102
+ "&:hover": d({
148
103
  textDecoration: "none",
149
104
  backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : eo(o.palette.text.primary, o.palette.action.hoverOpacity),
150
105
  // Reset on touch devices, it doesn't add specificity
151
106
  "@media (hover: none)": {
152
107
  backgroundColor: "transparent"
153
108
  }
154
- }, e.variant === "text" && e.color !== "inherit" && {
155
- backgroundColor: o.vars ? `rgba(${o.vars.palette[e.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : eo(o.palette[e.color].main, o.palette.action.hoverOpacity),
109
+ }, n.variant === "text" && n.color !== "inherit" && {
110
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : eo(o.palette[n.color].main, o.palette.action.hoverOpacity),
156
111
  // Reset on touch devices, it doesn't add specificity
157
112
  "@media (hover: none)": {
158
113
  backgroundColor: "transparent"
159
114
  }
160
- }, e.variant === "outlined" && e.color !== "inherit" && {
161
- border: `1px solid ${(o.vars || o).palette[e.color].main}`,
162
- backgroundColor: o.vars ? `rgba(${o.vars.palette[e.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : eo(o.palette[e.color].main, o.palette.action.hoverOpacity),
115
+ }, n.variant === "outlined" && n.color !== "inherit" && {
116
+ border: `1px solid ${(o.vars || o).palette[n.color].main}`,
117
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : eo(o.palette[n.color].main, o.palette.action.hoverOpacity),
163
118
  // Reset on touch devices, it doesn't add specificity
164
119
  "@media (hover: none)": {
165
120
  backgroundColor: "transparent"
166
121
  }
167
- }, e.variant === "contained" && {
122
+ }, n.variant === "contained" && {
168
123
  backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : i,
169
124
  boxShadow: (o.vars || o).shadows[4],
170
125
  // Reset on touch devices, it doesn't add specificity
@@ -172,70 +127,70 @@ const te = ["children", "color", "component", "className", "disabled", "disableE
172
127
  boxShadow: (o.vars || o).shadows[2],
173
128
  backgroundColor: (o.vars || o).palette.grey[300]
174
129
  }
175
- }, e.variant === "contained" && e.color !== "inherit" && {
176
- backgroundColor: (o.vars || o).palette[e.color].dark,
130
+ }, n.variant === "contained" && n.color !== "inherit" && {
131
+ backgroundColor: (o.vars || o).palette[n.color].dark,
177
132
  // Reset on touch devices, it doesn't add specificity
178
133
  "@media (hover: none)": {
179
- backgroundColor: (o.vars || o).palette[e.color].main
134
+ backgroundColor: (o.vars || o).palette[n.color].main
180
135
  }
181
136
  }),
182
- "&:active": l({}, e.variant === "contained" && {
137
+ "&:active": d({}, n.variant === "contained" && {
183
138
  boxShadow: (o.vars || o).shadows[8]
184
139
  }),
185
- [`&.${no.focusVisible}`]: l({}, e.variant === "contained" && {
140
+ [`&.${no.focusVisible}`]: d({}, n.variant === "contained" && {
186
141
  boxShadow: (o.vars || o).shadows[6]
187
142
  }),
188
- [`&.${no.disabled}`]: l({
143
+ [`&.${no.disabled}`]: d({
189
144
  color: (o.vars || o).palette.action.disabled
190
- }, e.variant === "outlined" && {
145
+ }, n.variant === "outlined" && {
191
146
  border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
192
- }, e.variant === "contained" && {
147
+ }, n.variant === "contained" && {
193
148
  color: (o.vars || o).palette.action.disabled,
194
149
  boxShadow: (o.vars || o).shadows[0],
195
150
  backgroundColor: (o.vars || o).palette.action.disabledBackground
196
151
  })
197
- }, e.variant === "text" && {
152
+ }, n.variant === "text" && {
198
153
  padding: "6px 8px"
199
- }, e.variant === "text" && e.color !== "inherit" && {
200
- color: (o.vars || o).palette[e.color].main
201
- }, e.variant === "outlined" && {
154
+ }, n.variant === "text" && n.color !== "inherit" && {
155
+ color: (o.vars || o).palette[n.color].main
156
+ }, n.variant === "outlined" && {
202
157
  padding: "5px 15px",
203
158
  border: "1px solid currentColor"
204
- }, e.variant === "outlined" && e.color !== "inherit" && {
205
- color: (o.vars || o).palette[e.color].main,
206
- border: o.vars ? `1px solid rgba(${o.vars.palette[e.color].mainChannel} / 0.5)` : `1px solid ${eo(o.palette[e.color].main, 0.5)}`
207
- }, e.variant === "contained" && {
159
+ }, n.variant === "outlined" && n.color !== "inherit" && {
160
+ color: (o.vars || o).palette[n.color].main,
161
+ border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${eo(o.palette[n.color].main, 0.5)}`
162
+ }, n.variant === "contained" && {
208
163
  color: o.vars ? (
209
164
  // this is safe because grey does not change between default light/dark mode
210
165
  o.vars.palette.text.primary
211
166
  ) : (t = (r = o.palette).getContrastText) == null ? void 0 : t.call(r, o.palette.grey[300]),
212
167
  backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
213
168
  boxShadow: (o.vars || o).shadows[2]
214
- }, e.variant === "contained" && e.color !== "inherit" && {
215
- color: (o.vars || o).palette[e.color].contrastText,
216
- backgroundColor: (o.vars || o).palette[e.color].main
217
- }, e.color === "inherit" && {
169
+ }, n.variant === "contained" && n.color !== "inherit" && {
170
+ color: (o.vars || o).palette[n.color].contrastText,
171
+ backgroundColor: (o.vars || o).palette[n.color].main
172
+ }, n.color === "inherit" && {
218
173
  color: "inherit",
219
174
  borderColor: "currentColor"
220
- }, e.size === "small" && e.variant === "text" && {
175
+ }, n.size === "small" && n.variant === "text" && {
221
176
  padding: "4px 5px",
222
177
  fontSize: o.typography.pxToRem(13)
223
- }, e.size === "large" && e.variant === "text" && {
178
+ }, n.size === "large" && n.variant === "text" && {
224
179
  padding: "8px 11px",
225
180
  fontSize: o.typography.pxToRem(15)
226
- }, e.size === "small" && e.variant === "outlined" && {
181
+ }, n.size === "small" && n.variant === "outlined" && {
227
182
  padding: "3px 9px",
228
183
  fontSize: o.typography.pxToRem(13)
229
- }, e.size === "large" && e.variant === "outlined" && {
184
+ }, n.size === "large" && n.variant === "outlined" && {
230
185
  padding: "7px 21px",
231
186
  fontSize: o.typography.pxToRem(15)
232
- }, e.size === "small" && e.variant === "contained" && {
187
+ }, n.size === "small" && n.variant === "contained" && {
233
188
  padding: "4px 10px",
234
189
  fontSize: o.typography.pxToRem(13)
235
- }, e.size === "large" && e.variant === "contained" && {
190
+ }, n.size === "large" && n.variant === "contained" && {
236
191
  padding: "8px 22px",
237
192
  fontSize: o.typography.pxToRem(15)
238
- }, e.fullWidth && {
193
+ }, n.fullWidth && {
239
194
  width: "100%"
240
195
  });
241
196
  }, ({
@@ -254,93 +209,93 @@ const te = ["children", "color", "component", "className", "disabled", "disableE
254
209
  [`&.${no.disabled}`]: {
255
210
  boxShadow: "none"
256
211
  }
257
- }), se = L("span", {
212
+ }), re = _("span", {
258
213
  name: "MuiButton",
259
214
  slot: "StartIcon",
260
- overridesResolver: (o, e) => {
215
+ overridesResolver: (o, n) => {
261
216
  const {
262
217
  ownerState: t
263
218
  } = o;
264
- return [e.startIcon, e[`iconSize${$(t.size)}`]];
219
+ return [n.startIcon, n[`iconSize${M(t.size)}`]];
265
220
  }
266
221
  })(({
267
222
  ownerState: o
268
- }) => l({
223
+ }) => d({
269
224
  display: "inherit",
270
225
  marginRight: 8,
271
226
  marginLeft: -4
272
227
  }, o.size === "small" && {
273
228
  marginLeft: -2
274
- }, Wo(o))), ae = L("span", {
229
+ }, Mo(o))), ie = _("span", {
275
230
  name: "MuiButton",
276
231
  slot: "EndIcon",
277
- overridesResolver: (o, e) => {
232
+ overridesResolver: (o, n) => {
278
233
  const {
279
234
  ownerState: t
280
235
  } = o;
281
- return [e.endIcon, e[`iconSize${$(t.size)}`]];
236
+ return [n.endIcon, n[`iconSize${M(t.size)}`]];
282
237
  }
283
238
  })(({
284
239
  ownerState: o
285
- }) => l({
240
+ }) => d({
286
241
  display: "inherit",
287
242
  marginRight: -4,
288
243
  marginLeft: 8
289
244
  }, o.size === "small" && {
290
245
  marginRight: -2
291
- }, Wo(o))), le = /* @__PURE__ */ d.forwardRef(function(e, t) {
292
- const r = d.useContext(Mo), s = d.useContext($o), i = Vo(r, e), a = Y({
246
+ }, Mo(o))), se = /* @__PURE__ */ c.forwardRef(function(n, t) {
247
+ const r = c.useContext(Io), s = c.useContext(Bo), i = Lo(r, n), a = Y({
293
248
  props: i,
294
249
  name: "MuiButton"
295
250
  }), {
296
- children: c,
297
- color: p = "primary",
298
- component: b = "button",
251
+ children: l,
252
+ color: u = "primary",
253
+ component: g = "button",
299
254
  className: m,
300
- disabled: v = !1,
301
- disableElevation: y = !1,
302
- disableFocusRipple: h = !1,
255
+ disabled: x = !1,
256
+ disableElevation: R = !1,
257
+ disableFocusRipple: C = !1,
303
258
  endIcon: f,
304
- focusVisibleClassName: S,
305
- fullWidth: O = !1,
259
+ focusVisibleClassName: $,
260
+ fullWidth: S = !1,
306
261
  size: D = "medium",
307
- startIcon: R,
308
- type: u,
309
- variant: k = "text"
310
- } = a, E = j(a, te), P = l({}, a, {
311
- color: p,
312
- component: b,
313
- disabled: v,
314
- disableElevation: y,
315
- disableFocusRipple: h,
316
- fullWidth: O,
262
+ startIcon: P,
263
+ type: p,
264
+ variant: T = "text"
265
+ } = a, h = j(a, ee), k = d({}, a, {
266
+ color: u,
267
+ component: g,
268
+ disabled: x,
269
+ disableElevation: R,
270
+ disableFocusRipple: C,
271
+ fullWidth: S,
317
272
  size: D,
318
- type: u,
319
- variant: k
320
- }), T = re(P), I = R && /* @__PURE__ */ N(se, {
321
- className: T.startIcon,
322
- ownerState: P,
323
- children: R
324
- }), z = f && /* @__PURE__ */ N(ae, {
325
- className: T.endIcon,
326
- ownerState: P,
273
+ type: p,
274
+ variant: T
275
+ }), y = ne(k), O = P && /* @__PURE__ */ N(re, {
276
+ className: y.startIcon,
277
+ ownerState: k,
278
+ children: P
279
+ }), z = f && /* @__PURE__ */ N(ie, {
280
+ className: y.endIcon,
281
+ ownerState: k,
327
282
  children: f
328
- }), B = s || "";
329
- return /* @__PURE__ */ co(ie, l({
330
- ownerState: P,
331
- className: _(r.className, T.root, m, B),
332
- component: b,
333
- disabled: v,
334
- focusRipple: !h,
335
- focusVisibleClassName: _(T.focusVisible, S),
283
+ }), I = s || "";
284
+ return /* @__PURE__ */ co(te, d({
285
+ ownerState: k,
286
+ className: L(r.className, y.root, m, I),
287
+ component: g,
288
+ disabled: x,
289
+ focusRipple: !C,
290
+ focusVisibleClassName: L(y.focusVisible, $),
336
291
  ref: t,
337
- type: u
338
- }, E, {
339
- classes: T,
340
- children: [I, c, z]
292
+ type: p
293
+ }, h, {
294
+ classes: y,
295
+ children: [O, l, z]
341
296
  }));
342
297
  });
343
- process.env.NODE_ENV !== "production" && (le.propTypes = {
298
+ process.env.NODE_ENV !== "production" && (se.propTypes = {
344
299
  // ┌────────────────────────────── Warning ──────────────────────────────┐
345
300
  // │ These PropTypes are generated from the TypeScript type definitions. │
346
301
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -348,42 +303,42 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
348
303
  /**
349
304
  * The content of the component.
350
305
  */
351
- children: n.node,
306
+ children: e.node,
352
307
  /**
353
308
  * Override or extend the styles applied to the component.
354
309
  */
355
- classes: n.object,
310
+ classes: e.object,
356
311
  /**
357
312
  * @ignore
358
313
  */
359
- className: n.string,
314
+ className: e.string,
360
315
  /**
361
316
  * The color of the component.
362
317
  * It supports both default and custom theme colors, which can be added as shown in the
363
318
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
364
319
  * @default 'primary'
365
320
  */
366
- color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
321
+ color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), e.string]),
367
322
  /**
368
323
  * The component used for the root node.
369
324
  * Either a string to use a HTML element or a component.
370
325
  */
371
- component: n.elementType,
326
+ component: e.elementType,
372
327
  /**
373
328
  * If `true`, the component is disabled.
374
329
  * @default false
375
330
  */
376
- disabled: n.bool,
331
+ disabled: e.bool,
377
332
  /**
378
333
  * If `true`, no elevation is used.
379
334
  * @default false
380
335
  */
381
- disableElevation: n.bool,
336
+ disableElevation: e.bool,
382
337
  /**
383
338
  * If `true`, the keyboard focus ripple is disabled.
384
339
  * @default false
385
340
  */
386
- disableFocusRipple: n.bool,
341
+ disableFocusRipple: e.bool,
387
342
  /**
388
343
  * If `true`, the ripple effect is disabled.
389
344
  *
@@ -391,99 +346,99 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
391
346
  * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
392
347
  * @default false
393
348
  */
394
- disableRipple: n.bool,
349
+ disableRipple: e.bool,
395
350
  /**
396
351
  * Element placed after the children.
397
352
  */
398
- endIcon: n.node,
353
+ endIcon: e.node,
399
354
  /**
400
355
  * @ignore
401
356
  */
402
- focusVisibleClassName: n.string,
357
+ focusVisibleClassName: e.string,
403
358
  /**
404
359
  * If `true`, the button will take up the full width of its container.
405
360
  * @default false
406
361
  */
407
- fullWidth: n.bool,
362
+ fullWidth: e.bool,
408
363
  /**
409
364
  * The URL to link to when the button is clicked.
410
365
  * If defined, an `a` element will be used as the root node.
411
366
  */
412
- href: n.string,
367
+ href: e.string,
413
368
  /**
414
369
  * The size of the component.
415
370
  * `small` is equivalent to the dense button styling.
416
371
  * @default 'medium'
417
372
  */
418
- size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
373
+ size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
419
374
  /**
420
375
  * Element placed before the children.
421
376
  */
422
- startIcon: n.node,
377
+ startIcon: e.node,
423
378
  /**
424
379
  * The system prop that allows defining system overrides as well as additional CSS styles.
425
380
  */
426
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
381
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
427
382
  /**
428
383
  * @ignore
429
384
  */
430
- type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
385
+ type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string]),
431
386
  /**
432
387
  * The variant to use.
433
388
  * @default 'text'
434
389
  */
435
- variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
390
+ variant: e.oneOfType([e.oneOf(["contained", "outlined", "text"]), e.string])
436
391
  });
437
- function ce(o) {
438
- const e = V(o);
439
- return e.body === o ? uo(o).innerWidth > e.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
392
+ function ae(o) {
393
+ const n = V(o);
394
+ return n.body === o ? uo(o).innerWidth > n.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
440
395
  }
441
- function Z(o, e) {
442
- e ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
396
+ function J(o, n) {
397
+ n ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
443
398
  }
444
- function Ro(o) {
399
+ function Po(o) {
445
400
  return parseInt(uo(o).getComputedStyle(o).paddingRight, 10) || 0;
446
401
  }
447
- function de(o) {
402
+ function le(o) {
448
403
  const t = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(o.tagName) !== -1, r = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
449
404
  return t || r;
450
405
  }
451
- function No(o, e, t, r, s) {
452
- const i = [e, t, ...r];
406
+ function Ro(o, n, t, r, s) {
407
+ const i = [n, t, ...r];
453
408
  [].forEach.call(o.children, (a) => {
454
- const c = i.indexOf(a) === -1, p = !de(a);
455
- c && p && Z(a, s);
409
+ const l = i.indexOf(a) === -1, u = !le(a);
410
+ l && u && J(a, s);
456
411
  });
457
412
  }
458
- function ao(o, e) {
413
+ function ao(o, n) {
459
414
  let t = -1;
460
- return o.some((r, s) => e(r) ? (t = s, !0) : !1), t;
415
+ return o.some((r, s) => n(r) ? (t = s, !0) : !1), t;
461
416
  }
462
- function pe(o, e) {
417
+ function ce(o, n) {
463
418
  const t = [], r = o.container;
464
- if (!e.disableScrollLock) {
465
- if (ce(r)) {
466
- const a = Zo(V(r));
419
+ if (!n.disableScrollLock) {
420
+ if (ae(r)) {
421
+ const a = Qo(V(r));
467
422
  t.push({
468
423
  value: r.style.paddingRight,
469
424
  property: "padding-right",
470
425
  el: r
471
- }), r.style.paddingRight = `${Ro(r) + a}px`;
472
- const c = V(r).querySelectorAll(".mui-fixed");
473
- [].forEach.call(c, (p) => {
426
+ }), r.style.paddingRight = `${Po(r) + a}px`;
427
+ const l = V(r).querySelectorAll(".mui-fixed");
428
+ [].forEach.call(l, (u) => {
474
429
  t.push({
475
- value: p.style.paddingRight,
430
+ value: u.style.paddingRight,
476
431
  property: "padding-right",
477
- el: p
478
- }), p.style.paddingRight = `${Ro(p) + a}px`;
432
+ el: u
433
+ }), u.style.paddingRight = `${Po(u) + a}px`;
479
434
  });
480
435
  }
481
436
  let i;
482
437
  if (r.parentNode instanceof DocumentFragment)
483
438
  i = V(r).body;
484
439
  else {
485
- const a = r.parentElement, c = uo(r);
486
- i = (a == null ? void 0 : a.nodeName) === "HTML" && c.getComputedStyle(a).overflowY === "scroll" ? a : r;
440
+ const a = r.parentElement, l = uo(r);
441
+ i = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : r;
487
442
  }
488
443
  t.push({
489
444
  value: i.style.overflow,
@@ -503,163 +458,163 @@ function pe(o, e) {
503
458
  t.forEach(({
504
459
  value: i,
505
460
  el: a,
506
- property: c
461
+ property: l
507
462
  }) => {
508
- i ? a.style.setProperty(c, i) : a.style.removeProperty(c);
463
+ i ? a.style.setProperty(l, i) : a.style.removeProperty(l);
509
464
  });
510
465
  };
511
466
  }
512
- function ue(o) {
513
- const e = [];
467
+ function de(o) {
468
+ const n = [];
514
469
  return [].forEach.call(o.children, (t) => {
515
- t.getAttribute("aria-hidden") === "true" && e.push(t);
516
- }), e;
470
+ t.getAttribute("aria-hidden") === "true" && n.push(t);
471
+ }), n;
517
472
  }
518
- class fe {
473
+ class pe {
519
474
  constructor() {
520
475
  this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
521
476
  }
522
- add(e, t) {
523
- let r = this.modals.indexOf(e);
477
+ add(n, t) {
478
+ let r = this.modals.indexOf(n);
524
479
  if (r !== -1)
525
480
  return r;
526
- r = this.modals.length, this.modals.push(e), e.modalRef && Z(e.modalRef, !1);
527
- const s = ue(t);
528
- No(t, e.mount, e.modalRef, s, !0);
481
+ r = this.modals.length, this.modals.push(n), n.modalRef && J(n.modalRef, !1);
482
+ const s = de(t);
483
+ Ro(t, n.mount, n.modalRef, s, !0);
529
484
  const i = ao(this.containers, (a) => a.container === t);
530
- return i !== -1 ? (this.containers[i].modals.push(e), r) : (this.containers.push({
531
- modals: [e],
485
+ return i !== -1 ? (this.containers[i].modals.push(n), r) : (this.containers.push({
486
+ modals: [n],
532
487
  container: t,
533
488
  restore: null,
534
489
  hiddenSiblings: s
535
490
  }), r);
536
491
  }
537
- mount(e, t) {
538
- const r = ao(this.containers, (i) => i.modals.indexOf(e) !== -1), s = this.containers[r];
539
- s.restore || (s.restore = pe(s, t));
492
+ mount(n, t) {
493
+ const r = ao(this.containers, (i) => i.modals.indexOf(n) !== -1), s = this.containers[r];
494
+ s.restore || (s.restore = ce(s, t));
540
495
  }
541
- remove(e, t = !0) {
542
- const r = this.modals.indexOf(e);
496
+ remove(n, t = !0) {
497
+ const r = this.modals.indexOf(n);
543
498
  if (r === -1)
544
499
  return r;
545
- const s = ao(this.containers, (a) => a.modals.indexOf(e) !== -1), i = this.containers[s];
546
- if (i.modals.splice(i.modals.indexOf(e), 1), this.modals.splice(r, 1), i.modals.length === 0)
547
- i.restore && i.restore(), e.modalRef && Z(e.modalRef, t), No(i.container, e.mount, e.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1);
500
+ const s = ao(this.containers, (a) => a.modals.indexOf(n) !== -1), i = this.containers[s];
501
+ if (i.modals.splice(i.modals.indexOf(n), 1), this.modals.splice(r, 1), i.modals.length === 0)
502
+ i.restore && i.restore(), n.modalRef && J(n.modalRef, t), Ro(i.container, n.mount, n.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1);
548
503
  else {
549
504
  const a = i.modals[i.modals.length - 1];
550
- a.modalRef && Z(a.modalRef, !1);
505
+ a.modalRef && J(a.modalRef, !1);
551
506
  }
552
507
  return r;
553
508
  }
554
- isTopModal(e) {
555
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === e;
509
+ isTopModal(n) {
510
+ return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
556
511
  }
557
512
  }
558
- const be = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
559
- function ge(o) {
560
- const e = parseInt(o.getAttribute("tabindex") || "", 10);
561
- return Number.isNaN(e) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : e;
513
+ const ue = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
514
+ function fe(o) {
515
+ const n = parseInt(o.getAttribute("tabindex") || "", 10);
516
+ return Number.isNaN(n) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : n;
562
517
  }
563
- function me(o) {
518
+ function be(o) {
564
519
  if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
565
520
  return !1;
566
- const e = (r) => o.ownerDocument.querySelector(`input[type="radio"]${r}`);
567
- let t = e(`[name="${o.name}"]:checked`);
568
- return t || (t = e(`[name="${o.name}"]`)), t !== o;
521
+ const n = (r) => o.ownerDocument.querySelector(`input[type="radio"]${r}`);
522
+ let t = n(`[name="${o.name}"]:checked`);
523
+ return t || (t = n(`[name="${o.name}"]`)), t !== o;
569
524
  }
570
- function ve(o) {
571
- return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || me(o));
525
+ function ge(o) {
526
+ return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || be(o));
572
527
  }
573
- function xe(o) {
574
- const e = [], t = [];
575
- return Array.from(o.querySelectorAll(be)).forEach((r, s) => {
576
- const i = ge(r);
577
- i === -1 || !ve(r) || (i === 0 ? e.push(r) : t.push({
528
+ function me(o) {
529
+ const n = [], t = [];
530
+ return Array.from(o.querySelectorAll(ue)).forEach((r, s) => {
531
+ const i = fe(r);
532
+ i === -1 || !ge(r) || (i === 0 ? n.push(r) : t.push({
578
533
  documentOrder: s,
579
534
  tabIndex: i,
580
535
  node: r
581
536
  }));
582
- }), t.sort((r, s) => r.tabIndex === s.tabIndex ? r.documentOrder - s.documentOrder : r.tabIndex - s.tabIndex).map((r) => r.node).concat(e);
537
+ }), t.sort((r, s) => r.tabIndex === s.tabIndex ? r.documentOrder - s.documentOrder : r.tabIndex - s.tabIndex).map((r) => r.node).concat(n);
583
538
  }
584
- function he() {
539
+ function ve() {
585
540
  return !0;
586
541
  }
587
542
  function to(o) {
588
543
  const {
589
- children: e,
544
+ children: n,
590
545
  disableAutoFocus: t = !1,
591
546
  disableEnforceFocus: r = !1,
592
547
  disableRestoreFocus: s = !1,
593
- getTabbable: i = xe,
594
- isEnabled: a = he,
595
- open: c
596
- } = o, p = d.useRef(!1), b = d.useRef(null), m = d.useRef(null), v = d.useRef(null), y = d.useRef(null), h = d.useRef(!1), f = d.useRef(null), S = J(e.ref, f), O = d.useRef(null);
597
- d.useEffect(() => {
598
- !c || !f.current || (h.current = !t);
599
- }, [t, c]), d.useEffect(() => {
600
- if (!c || !f.current)
548
+ getTabbable: i = me,
549
+ isEnabled: a = ve,
550
+ open: l
551
+ } = o, u = c.useRef(!1), g = c.useRef(null), m = c.useRef(null), x = c.useRef(null), R = c.useRef(null), C = c.useRef(!1), f = c.useRef(null), $ = Q(n.ref, f), S = c.useRef(null);
552
+ c.useEffect(() => {
553
+ !l || !f.current || (C.current = !t);
554
+ }, [t, l]), c.useEffect(() => {
555
+ if (!l || !f.current)
601
556
  return;
602
- const u = V(f.current);
603
- return f.current.contains(u.activeElement) || (f.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
604
- `)), f.current.setAttribute("tabIndex", "-1")), h.current && f.current.focus()), () => {
605
- s || (v.current && v.current.focus && (p.current = !0, v.current.focus()), v.current = null);
557
+ const p = V(f.current);
558
+ return f.current.contains(p.activeElement) || (f.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
559
+ `)), f.current.setAttribute("tabIndex", "-1")), C.current && f.current.focus()), () => {
560
+ s || (x.current && x.current.focus && (u.current = !0, x.current.focus()), x.current = null);
606
561
  };
607
- }, [c]), d.useEffect(() => {
608
- if (!c || !f.current)
562
+ }, [l]), c.useEffect(() => {
563
+ if (!l || !f.current)
609
564
  return;
610
- const u = V(f.current), k = (T) => {
611
- O.current = T, !(r || !a() || T.key !== "Tab") && u.activeElement === f.current && T.shiftKey && (p.current = !0, m.current && m.current.focus());
612
- }, E = () => {
613
- const T = f.current;
614
- if (T === null)
565
+ const p = V(f.current), T = (y) => {
566
+ S.current = y, !(r || !a() || y.key !== "Tab") && p.activeElement === f.current && y.shiftKey && (u.current = !0, m.current && m.current.focus());
567
+ }, h = () => {
568
+ const y = f.current;
569
+ if (y === null)
615
570
  return;
616
- if (!u.hasFocus() || !a() || p.current) {
617
- p.current = !1;
571
+ if (!p.hasFocus() || !a() || u.current) {
572
+ u.current = !1;
618
573
  return;
619
574
  }
620
- if (T.contains(u.activeElement) || r && u.activeElement !== b.current && u.activeElement !== m.current)
575
+ if (y.contains(p.activeElement) || r && p.activeElement !== g.current && p.activeElement !== m.current)
621
576
  return;
622
- if (u.activeElement !== y.current)
623
- y.current = null;
624
- else if (y.current !== null)
577
+ if (p.activeElement !== R.current)
578
+ R.current = null;
579
+ else if (R.current !== null)
625
580
  return;
626
- if (!h.current)
581
+ if (!C.current)
627
582
  return;
628
- let I = [];
629
- if ((u.activeElement === b.current || u.activeElement === m.current) && (I = i(f.current)), I.length > 0) {
630
- var z, B;
631
- const F = !!((z = O.current) != null && z.shiftKey && ((B = O.current) == null ? void 0 : B.key) === "Tab"), w = I[0], A = I[I.length - 1];
632
- typeof w != "string" && typeof A != "string" && (F ? A.focus() : w.focus());
583
+ let O = [];
584
+ if ((p.activeElement === g.current || p.activeElement === m.current) && (O = i(f.current)), O.length > 0) {
585
+ var z, I;
586
+ const F = !!((z = S.current) != null && z.shiftKey && ((I = S.current) == null ? void 0 : I.key) === "Tab"), A = O[0], w = O[O.length - 1];
587
+ typeof A != "string" && typeof w != "string" && (F ? w.focus() : A.focus());
633
588
  } else
634
- T.focus();
589
+ y.focus();
635
590
  };
636
- u.addEventListener("focusin", E), u.addEventListener("keydown", k, !0);
637
- const P = setInterval(() => {
638
- u.activeElement && u.activeElement.tagName === "BODY" && E();
591
+ p.addEventListener("focusin", h), p.addEventListener("keydown", T, !0);
592
+ const k = setInterval(() => {
593
+ p.activeElement && p.activeElement.tagName === "BODY" && h();
639
594
  }, 50);
640
595
  return () => {
641
- clearInterval(P), u.removeEventListener("focusin", E), u.removeEventListener("keydown", k, !0);
596
+ clearInterval(k), p.removeEventListener("focusin", h), p.removeEventListener("keydown", T, !0);
642
597
  };
643
- }, [t, r, s, a, c, i]);
644
- const D = (u) => {
645
- v.current === null && (v.current = u.relatedTarget), h.current = !0, y.current = u.target;
646
- const k = e.props.onFocus;
647
- k && k(u);
648
- }, R = (u) => {
649
- v.current === null && (v.current = u.relatedTarget), h.current = !0;
598
+ }, [t, r, s, a, l, i]);
599
+ const D = (p) => {
600
+ x.current === null && (x.current = p.relatedTarget), C.current = !0, R.current = p.target;
601
+ const T = n.props.onFocus;
602
+ T && T(p);
603
+ }, P = (p) => {
604
+ x.current === null && (x.current = p.relatedTarget), C.current = !0;
650
605
  };
651
- return /* @__PURE__ */ co(d.Fragment, {
606
+ return /* @__PURE__ */ co(c.Fragment, {
652
607
  children: [/* @__PURE__ */ N("div", {
653
- tabIndex: c ? 0 : -1,
654
- onFocus: R,
655
- ref: b,
608
+ tabIndex: l ? 0 : -1,
609
+ onFocus: P,
610
+ ref: g,
656
611
  "data-testid": "sentinelStart"
657
- }), /* @__PURE__ */ d.cloneElement(e, {
658
- ref: S,
612
+ }), /* @__PURE__ */ c.cloneElement(n, {
613
+ ref: $,
659
614
  onFocus: D
660
615
  }), /* @__PURE__ */ N("div", {
661
- tabIndex: c ? 0 : -1,
662
- onFocus: R,
616
+ tabIndex: l ? 0 : -1,
617
+ onFocus: P,
663
618
  ref: m,
664
619
  "data-testid": "sentinelEnd"
665
620
  })]
@@ -683,7 +638,7 @@ process.env.NODE_ENV !== "production" && (to.propTypes = {
683
638
  * accessible to assistive technologies, like screen readers.
684
639
  * @default false
685
640
  */
686
- disableAutoFocus: n.bool,
641
+ disableAutoFocus: e.bool,
687
642
  /**
688
643
  * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
689
644
  *
@@ -691,19 +646,19 @@ process.env.NODE_ENV !== "production" && (to.propTypes = {
691
646
  * accessible to assistive technologies, like screen readers.
692
647
  * @default false
693
648
  */
694
- disableEnforceFocus: n.bool,
649
+ disableEnforceFocus: e.bool,
695
650
  /**
696
651
  * If `true`, the focus trap will not restore focus to previously focused element once
697
652
  * focus trap is hidden or unmounted.
698
653
  * @default false
699
654
  */
700
- disableRestoreFocus: n.bool,
655
+ disableRestoreFocus: e.bool,
701
656
  /**
702
657
  * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
703
658
  * For instance, you can provide the "tabbable" npm dependency.
704
659
  * @param {HTMLElement} root
705
660
  */
706
- getTabbable: n.func,
661
+ getTabbable: e.func,
707
662
  /**
708
663
  * This prop extends the `open` prop.
709
664
  * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
@@ -713,42 +668,42 @@ process.env.NODE_ENV !== "production" && (to.propTypes = {
713
668
  * return true;
714
669
  * }
715
670
  */
716
- isEnabled: n.func,
671
+ isEnabled: e.func,
717
672
  /**
718
673
  * If `true`, focus is locked.
719
674
  */
720
- open: n.bool.isRequired
675
+ open: e.bool.isRequired
721
676
  });
722
- process.env.NODE_ENV !== "production" && (to.propTypes = Oo(to.propTypes));
723
- function ye(o) {
677
+ process.env.NODE_ENV !== "production" && (to.propTypes = So(to.propTypes));
678
+ function xe(o) {
724
679
  return typeof o == "function" ? o() : o;
725
680
  }
726
- const ro = /* @__PURE__ */ d.forwardRef(function(e, t) {
681
+ const ro = /* @__PURE__ */ c.forwardRef(function(n, t) {
727
682
  const {
728
683
  children: r,
729
684
  container: s,
730
685
  disablePortal: i = !1
731
- } = e, [a, c] = d.useState(null), p = J(/* @__PURE__ */ d.isValidElement(r) ? r.ref : null, t);
686
+ } = n, [a, l] = c.useState(null), u = Q(/* @__PURE__ */ c.isValidElement(r) ? r.ref : null, t);
732
687
  if (ho(() => {
733
- i || c(ye(s) || document.body);
688
+ i || l(xe(s) || document.body);
734
689
  }, [s, i]), ho(() => {
735
690
  if (a && !i)
736
691
  return yo(t, a), () => {
737
692
  yo(t, null);
738
693
  };
739
694
  }, [t, a, i]), i) {
740
- if (/* @__PURE__ */ d.isValidElement(r)) {
741
- const b = {
742
- ref: p
695
+ if (/* @__PURE__ */ c.isValidElement(r)) {
696
+ const g = {
697
+ ref: u
743
698
  };
744
- return /* @__PURE__ */ d.cloneElement(r, b);
699
+ return /* @__PURE__ */ c.cloneElement(r, g);
745
700
  }
746
- return /* @__PURE__ */ N(d.Fragment, {
701
+ return /* @__PURE__ */ N(c.Fragment, {
747
702
  children: r
748
703
  });
749
704
  }
750
- return /* @__PURE__ */ N(d.Fragment, {
751
- children: a && /* @__PURE__ */ Xo.createPortal(r, a)
705
+ return /* @__PURE__ */ N(c.Fragment, {
706
+ children: a && /* @__PURE__ */ Jo.createPortal(r, a)
752
707
  });
753
708
  });
754
709
  process.env.NODE_ENV !== "production" && (ro.propTypes = {
@@ -759,7 +714,7 @@ process.env.NODE_ENV !== "production" && (ro.propTypes = {
759
714
  /**
760
715
  * The children to render into the `container`.
761
716
  */
762
- children: n.node,
717
+ children: e.node,
763
718
  /**
764
719
  * An HTML element or function that returns one.
765
720
  * The `container` will have the portal children appended to it.
@@ -770,87 +725,87 @@ process.env.NODE_ENV !== "production" && (ro.propTypes = {
770
725
  * By default, it uses the body of the top-level document object,
771
726
  * so it's simply `document.body` most of the time.
772
727
  */
773
- container: n.oneOfType([Io, n.func]),
728
+ container: e.oneOfType([Oo, e.func]),
774
729
  /**
775
730
  * The `children` will be under the DOM hierarchy of the parent component.
776
731
  * @default false
777
732
  */
778
- disablePortal: n.bool
733
+ disablePortal: e.bool
779
734
  });
780
- process.env.NODE_ENV !== "production" && (ro.propTypes = Oo(ro.propTypes));
781
- const Ee = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], Te = {
735
+ process.env.NODE_ENV !== "production" && (ro.propTypes = So(ro.propTypes));
736
+ const he = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], ye = {
782
737
  entering: {
783
738
  opacity: 1
784
739
  },
785
740
  entered: {
786
741
  opacity: 1
787
742
  }
788
- }, fo = /* @__PURE__ */ d.forwardRef(function(e, t) {
789
- const r = So(), s = {
743
+ }, fo = /* @__PURE__ */ c.forwardRef(function(n, t) {
744
+ const r = No(), s = {
790
745
  enter: r.transitions.duration.enteringScreen,
791
746
  exit: r.transitions.duration.leavingScreen
792
747
  }, {
793
748
  addEndListener: i,
794
749
  appear: a = !0,
795
- children: c,
796
- easing: p,
797
- in: b,
750
+ children: l,
751
+ easing: u,
752
+ in: g,
798
753
  onEnter: m,
799
- onEntered: v,
800
- onEntering: y,
801
- onExit: h,
754
+ onEntered: x,
755
+ onEntering: R,
756
+ onExit: C,
802
757
  onExited: f,
803
- onExiting: S,
804
- style: O,
758
+ onExiting: $,
759
+ style: S,
805
760
  timeout: D = s,
806
761
  // eslint-disable-next-line react/prop-types
807
- TransitionComponent: R = Ko
808
- } = e, u = j(e, Ee), k = d.useRef(null), E = J(k, c.ref, t), P = (x) => (W) => {
809
- if (x) {
810
- const g = k.current;
811
- W === void 0 ? x(g) : x(g, W);
762
+ TransitionComponent: P = Uo
763
+ } = n, p = j(n, he), T = c.useRef(null), h = Q(T, l.ref, t), k = (v) => (W) => {
764
+ if (v) {
765
+ const b = T.current;
766
+ W === void 0 ? v(b) : v(b, W);
812
767
  }
813
- }, T = P(y), I = P((x, W) => {
814
- qo(x);
815
- const g = To({
816
- style: O,
768
+ }, y = k(R), O = k((v, W) => {
769
+ Ho(v);
770
+ const b = To({
771
+ style: S,
817
772
  timeout: D,
818
- easing: p
773
+ easing: u
819
774
  }, {
820
775
  mode: "enter"
821
776
  });
822
- x.style.webkitTransition = r.transitions.create("opacity", g), x.style.transition = r.transitions.create("opacity", g), m && m(x, W);
823
- }), z = P(v), B = P(S), F = P((x) => {
777
+ v.style.webkitTransition = r.transitions.create("opacity", b), v.style.transition = r.transitions.create("opacity", b), m && m(v, W);
778
+ }), z = k(x), I = k($), F = k((v) => {
824
779
  const W = To({
825
- style: O,
780
+ style: S,
826
781
  timeout: D,
827
- easing: p
782
+ easing: u
828
783
  }, {
829
784
  mode: "exit"
830
785
  });
831
- x.style.webkitTransition = r.transitions.create("opacity", W), x.style.transition = r.transitions.create("opacity", W), h && h(x);
832
- }), w = P(f);
833
- return /* @__PURE__ */ N(R, l({
786
+ v.style.webkitTransition = r.transitions.create("opacity", W), v.style.transition = r.transitions.create("opacity", W), C && C(v);
787
+ }), A = k(f);
788
+ return /* @__PURE__ */ N(P, d({
834
789
  appear: a,
835
- in: b,
836
- nodeRef: k,
837
- onEnter: I,
790
+ in: g,
791
+ nodeRef: T,
792
+ onEnter: O,
838
793
  onEntered: z,
839
- onEntering: T,
794
+ onEntering: y,
840
795
  onExit: F,
841
- onExited: w,
842
- onExiting: B,
843
- addEndListener: (x) => {
844
- i && i(k.current, x);
796
+ onExited: A,
797
+ onExiting: I,
798
+ addEndListener: (v) => {
799
+ i && i(T.current, v);
845
800
  },
846
801
  timeout: D
847
- }, u, {
848
- children: (x, W) => /* @__PURE__ */ d.cloneElement(c, l({
849
- style: l({
802
+ }, p, {
803
+ children: (v, W) => /* @__PURE__ */ c.cloneElement(l, d({
804
+ style: d({
850
805
  opacity: 0,
851
- visibility: x === "exited" && !b ? "hidden" : void 0
852
- }, Te[x], O, c.props.style),
853
- ref: E
806
+ visibility: v === "exited" && !g ? "hidden" : void 0
807
+ }, ye[v], S, l.props.style),
808
+ ref: h
854
809
  }, W))
855
810
  }));
856
811
  });
@@ -864,13 +819,13 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
864
819
  * node and a done callback. Allows for more fine grained transition end
865
820
  * logic. Note: Timeouts are still used as a fallback if provided.
866
821
  */
867
- addEndListener: n.func,
822
+ addEndListener: e.func,
868
823
  /**
869
824
  * Perform the enter transition when it first mounts if `in` is also `true`.
870
825
  * Set this to `false` to disable this behavior.
871
826
  * @default true
872
827
  */
873
- appear: n.bool,
828
+ appear: e.bool,
874
829
  /**
875
830
  * A single child content element.
876
831
  */
@@ -879,42 +834,42 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
879
834
  * The transition timing function.
880
835
  * You may specify a single easing or a object containing enter and exit values.
881
836
  */
882
- easing: n.oneOfType([n.shape({
883
- enter: n.string,
884
- exit: n.string
885
- }), n.string]),
837
+ easing: e.oneOfType([e.shape({
838
+ enter: e.string,
839
+ exit: e.string
840
+ }), e.string]),
886
841
  /**
887
842
  * If `true`, the component will transition in.
888
843
  */
889
- in: n.bool,
844
+ in: e.bool,
890
845
  /**
891
846
  * @ignore
892
847
  */
893
- onEnter: n.func,
848
+ onEnter: e.func,
894
849
  /**
895
850
  * @ignore
896
851
  */
897
- onEntered: n.func,
852
+ onEntered: e.func,
898
853
  /**
899
854
  * @ignore
900
855
  */
901
- onEntering: n.func,
856
+ onEntering: e.func,
902
857
  /**
903
858
  * @ignore
904
859
  */
905
- onExit: n.func,
860
+ onExit: e.func,
906
861
  /**
907
862
  * @ignore
908
863
  */
909
- onExited: n.func,
864
+ onExited: e.func,
910
865
  /**
911
866
  * @ignore
912
867
  */
913
- onExiting: n.func,
868
+ onExiting: e.func,
914
869
  /**
915
870
  * @ignore
916
871
  */
917
- style: n.object,
872
+ style: e.object,
918
873
  /**
919
874
  * The duration for the transition, in milliseconds.
920
875
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -923,36 +878,36 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
923
878
  * exit: theme.transitions.duration.leavingScreen,
924
879
  * }
925
880
  */
926
- timeout: n.oneOfType([n.number, n.shape({
927
- appear: n.number,
928
- enter: n.number,
929
- exit: n.number
881
+ timeout: e.oneOfType([e.number, e.shape({
882
+ appear: e.number,
883
+ enter: e.number,
884
+ exit: e.number
930
885
  })])
931
886
  });
932
- function Ce(o) {
933
- return U("MuiBackdrop", o);
887
+ function Ee(o) {
888
+ return H("MuiBackdrop", o);
934
889
  }
935
- H("MuiBackdrop", ["root", "invisible"]);
936
- const ke = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], Pe = (o) => {
890
+ U("MuiBackdrop", ["root", "invisible"]);
891
+ const Te = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], Ce = (o) => {
937
892
  const {
938
- classes: e,
893
+ classes: n,
939
894
  invisible: t
940
895
  } = o;
941
896
  return G({
942
897
  root: ["root", t && "invisible"]
943
- }, Ce, e);
944
- }, Re = L("div", {
898
+ }, Ee, n);
899
+ }, ke = _("div", {
945
900
  name: "MuiBackdrop",
946
901
  slot: "Root",
947
- overridesResolver: (o, e) => {
902
+ overridesResolver: (o, n) => {
948
903
  const {
949
904
  ownerState: t
950
905
  } = o;
951
- return [e.root, t.invisible && e.invisible];
906
+ return [n.root, t.invisible && n.invisible];
952
907
  }
953
908
  })(({
954
909
  ownerState: o
955
- }) => l({
910
+ }) => d({
956
911
  position: "fixed",
957
912
  display: "flex",
958
913
  alignItems: "center",
@@ -965,40 +920,40 @@ const ke = ["children", "className", "component", "components", "componentsProps
965
920
  WebkitTapHighlightColor: "transparent"
966
921
  }, o.invisible && {
967
922
  backgroundColor: "transparent"
968
- })), bo = /* @__PURE__ */ d.forwardRef(function(e, t) {
923
+ })), bo = /* @__PURE__ */ c.forwardRef(function(n, t) {
969
924
  var r, s, i;
970
925
  const a = Y({
971
- props: e,
926
+ props: n,
972
927
  name: "MuiBackdrop"
973
928
  }), {
974
- children: c,
975
- className: p,
976
- component: b = "div",
929
+ children: l,
930
+ className: u,
931
+ component: g = "div",
977
932
  components: m = {},
978
- componentsProps: v = {},
979
- invisible: y = !1,
980
- open: h,
933
+ componentsProps: x = {},
934
+ invisible: R = !1,
935
+ open: C,
981
936
  slotProps: f = {},
982
- slots: S = {},
983
- TransitionComponent: O = fo,
937
+ slots: $ = {},
938
+ TransitionComponent: S = fo,
984
939
  transitionDuration: D
985
- } = a, R = j(a, ke), u = l({}, a, {
986
- component: b,
987
- invisible: y
988
- }), k = Pe(u), E = (r = f.root) != null ? r : v.root;
989
- return /* @__PURE__ */ N(O, l({
990
- in: h,
940
+ } = a, P = j(a, Te), p = d({}, a, {
941
+ component: g,
942
+ invisible: R
943
+ }), T = Ce(p), h = (r = f.root) != null ? r : x.root;
944
+ return /* @__PURE__ */ N(S, d({
945
+ in: C,
991
946
  timeout: D
992
- }, R, {
993
- children: /* @__PURE__ */ N(Re, l({
947
+ }, P, {
948
+ children: /* @__PURE__ */ N(ke, d({
994
949
  "aria-hidden": !0
995
- }, E, {
996
- as: (s = (i = S.root) != null ? i : m.Root) != null ? s : b,
997
- className: _(k.root, p, E == null ? void 0 : E.className),
998
- ownerState: l({}, u, E == null ? void 0 : E.ownerState),
999
- classes: k,
950
+ }, h, {
951
+ as: (s = (i = $.root) != null ? i : m.Root) != null ? s : g,
952
+ className: L(T.root, u, h == null ? void 0 : h.className),
953
+ ownerState: d({}, p, h == null ? void 0 : h.ownerState),
954
+ classes: T,
1000
955
  ref: t,
1001
- children: c
956
+ children: l
1002
957
  }))
1003
958
  }));
1004
959
  });
@@ -1010,20 +965,20 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
1010
965
  /**
1011
966
  * The content of the component.
1012
967
  */
1013
- children: n.node,
968
+ children: e.node,
1014
969
  /**
1015
970
  * Override or extend the styles applied to the component.
1016
971
  */
1017
- classes: n.object,
972
+ classes: e.object,
1018
973
  /**
1019
974
  * @ignore
1020
975
  */
1021
- className: n.string,
976
+ className: e.string,
1022
977
  /**
1023
978
  * The component used for the root node.
1024
979
  * Either a string to use a HTML element or a component.
1025
980
  */
1026
- component: n.elementType,
981
+ component: e.elementType,
1027
982
  /**
1028
983
  * The components used for each slot inside.
1029
984
  *
@@ -1032,8 +987,8 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
1032
987
  *
1033
988
  * @default {}
1034
989
  */
1035
- components: n.shape({
1036
- Root: n.elementType
990
+ components: e.shape({
991
+ Root: e.elementType
1037
992
  }),
1038
993
  /**
1039
994
  * The extra props for the slot components.
@@ -1044,19 +999,19 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
1044
999
  *
1045
1000
  * @default {}
1046
1001
  */
1047
- componentsProps: n.shape({
1048
- root: n.object
1002
+ componentsProps: e.shape({
1003
+ root: e.object
1049
1004
  }),
1050
1005
  /**
1051
1006
  * If `true`, the backdrop is invisible.
1052
1007
  * It can be used when rendering a popover or a custom select component.
1053
1008
  * @default false
1054
1009
  */
1055
- invisible: n.bool,
1010
+ invisible: e.bool,
1056
1011
  /**
1057
1012
  * If `true`, the component is shown.
1058
1013
  */
1059
- open: n.bool.isRequired,
1014
+ open: e.bool.isRequired,
1060
1015
  /**
1061
1016
  * The extra props for the slot components.
1062
1017
  * You can override the existing props or add new ones.
@@ -1065,8 +1020,8 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
1065
1020
  *
1066
1021
  * @default {}
1067
1022
  */
1068
- slotProps: n.shape({
1069
- root: n.object
1023
+ slotProps: e.shape({
1024
+ root: e.object
1070
1025
  }),
1071
1026
  /**
1072
1027
  * The components used for each slot inside.
@@ -1075,256 +1030,256 @@ process.env.NODE_ENV !== "production" && (bo.propTypes = {
1075
1030
  *
1076
1031
  * @default {}
1077
1032
  */
1078
- slots: n.shape({
1079
- root: n.elementType
1033
+ slots: e.shape({
1034
+ root: e.elementType
1080
1035
  }),
1081
1036
  /**
1082
1037
  * The system prop that allows defining system overrides as well as additional CSS styles.
1083
1038
  */
1084
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1039
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1085
1040
  /**
1086
1041
  * The component used for the transition.
1087
1042
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
1088
1043
  * @default Fade
1089
1044
  */
1090
- TransitionComponent: n.elementType,
1045
+ TransitionComponent: e.elementType,
1091
1046
  /**
1092
1047
  * The duration for the transition, in milliseconds.
1093
1048
  * You may specify a single timeout for all transitions, or individually with an object.
1094
1049
  */
1095
- transitionDuration: n.oneOfType([n.number, n.shape({
1096
- appear: n.number,
1097
- enter: n.number,
1098
- exit: n.number
1050
+ transitionDuration: e.oneOfType([e.number, e.shape({
1051
+ appear: e.number,
1052
+ enter: e.number,
1053
+ exit: e.number
1099
1054
  })])
1100
1055
  });
1101
- function Ne(o) {
1056
+ function Pe(o) {
1102
1057
  return typeof o == "function" ? o() : o;
1103
1058
  }
1104
- function Se(o) {
1059
+ function Re(o) {
1105
1060
  return o ? o.props.hasOwnProperty("in") : !1;
1106
1061
  }
1107
- const Oe = new fe();
1108
- function De(o) {
1062
+ const Ne = new pe();
1063
+ function Se(o) {
1109
1064
  const {
1110
- container: e,
1065
+ container: n,
1111
1066
  disableEscapeKeyDown: t = !1,
1112
1067
  disableScrollLock: r = !1,
1113
1068
  // @ts-ignore internal logic - Base UI supports the manager as a prop too
1114
- manager: s = Oe,
1069
+ manager: s = Ne,
1115
1070
  closeAfterTransition: i = !1,
1116
1071
  onTransitionEnter: a,
1117
- onTransitionExited: c,
1118
- children: p,
1119
- onClose: b,
1072
+ onTransitionExited: l,
1073
+ children: u,
1074
+ onClose: g,
1120
1075
  open: m,
1121
- rootRef: v
1122
- } = o, y = d.useRef({}), h = d.useRef(null), f = d.useRef(null), S = J(f, v), [O, D] = d.useState(!m), R = Se(p);
1123
- let u = !0;
1124
- (o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (u = !1);
1125
- const k = () => V(h.current), E = () => (y.current.modalRef = f.current, y.current.mount = h.current, y.current), P = () => {
1126
- s.mount(E(), {
1076
+ rootRef: x
1077
+ } = o, R = c.useRef({}), C = c.useRef(null), f = c.useRef(null), $ = Q(f, x), [S, D] = c.useState(!m), P = Re(u);
1078
+ let p = !0;
1079
+ (o["aria-hidden"] === "false" || o["aria-hidden"] === !1) && (p = !1);
1080
+ const T = () => V(C.current), h = () => (R.current.modalRef = f.current, R.current.mount = C.current, R.current), k = () => {
1081
+ s.mount(h(), {
1127
1082
  disableScrollLock: r
1128
1083
  }), f.current && (f.current.scrollTop = 0);
1129
- }, T = Eo(() => {
1130
- const g = Ne(e) || k().body;
1131
- s.add(E(), g), f.current && P();
1132
- }), I = d.useCallback(() => s.isTopModal(E()), [s]), z = Eo((g) => {
1133
- h.current = g, g && (m && I() ? P() : f.current && Z(f.current, u));
1134
- }), B = d.useCallback(() => {
1135
- s.remove(E(), u);
1136
- }, [u, s]);
1137
- d.useEffect(() => () => {
1138
- B();
1139
- }, [B]), d.useEffect(() => {
1140
- m ? T() : (!R || !i) && B();
1141
- }, [m, B, R, i, T]);
1142
- const F = (g) => (C) => {
1143
- var M;
1144
- (M = g.onKeyDown) == null || M.call(g, C), !(C.key !== "Escape" || C.which === 229 || // Wait until IME is settled.
1145
- !I()) && (t || (C.stopPropagation(), b && b(C, "escapeKeyDown")));
1146
- }, w = (g) => (C) => {
1147
- var M;
1148
- (M = g.onClick) == null || M.call(g, C), C.target === C.currentTarget && b && b(C, "backdropClick");
1084
+ }, y = Eo(() => {
1085
+ const b = Pe(n) || T().body;
1086
+ s.add(h(), b), f.current && k();
1087
+ }), O = c.useCallback(() => s.isTopModal(h()), [s]), z = Eo((b) => {
1088
+ C.current = b, b && (m && O() ? k() : f.current && J(f.current, p));
1089
+ }), I = c.useCallback(() => {
1090
+ s.remove(h(), p);
1091
+ }, [p, s]);
1092
+ c.useEffect(() => () => {
1093
+ I();
1094
+ }, [I]), c.useEffect(() => {
1095
+ m ? y() : (!P || !i) && I();
1096
+ }, [m, I, P, i, y]);
1097
+ const F = (b) => (E) => {
1098
+ var B;
1099
+ (B = b.onKeyDown) == null || B.call(b, E), !(E.key !== "Escape" || E.which === 229 || // Wait until IME is settled.
1100
+ !O()) && (t || (E.stopPropagation(), g && g(E, "escapeKeyDown")));
1101
+ }, A = (b) => (E) => {
1102
+ var B;
1103
+ (B = b.onClick) == null || B.call(b, E), E.target === E.currentTarget && g && g(E, "backdropClick");
1149
1104
  };
1150
1105
  return {
1151
- getRootProps: (g = {}) => {
1152
- const C = Bo(o);
1153
- delete C.onTransitionEnter, delete C.onTransitionExited;
1154
- const M = l({}, C, g);
1155
- return l({
1106
+ getRootProps: (b = {}) => {
1107
+ const E = Go(o);
1108
+ delete E.onTransitionEnter, delete E.onTransitionExited;
1109
+ const B = d({}, E, b);
1110
+ return d({
1156
1111
  role: "presentation"
1157
- }, M, {
1158
- onKeyDown: F(M),
1159
- ref: S
1112
+ }, B, {
1113
+ onKeyDown: F(B),
1114
+ ref: $
1160
1115
  });
1161
1116
  },
1162
- getBackdropProps: (g = {}) => {
1163
- const C = g;
1164
- return l({
1117
+ getBackdropProps: (b = {}) => {
1118
+ const E = b;
1119
+ return d({
1165
1120
  "aria-hidden": !0
1166
- }, C, {
1167
- onClick: w(C),
1121
+ }, E, {
1122
+ onClick: A(E),
1168
1123
  open: m
1169
1124
  });
1170
1125
  },
1171
1126
  getTransitionProps: () => {
1172
- const g = () => {
1127
+ const b = () => {
1173
1128
  D(!1), a && a();
1174
- }, C = () => {
1175
- D(!0), c && c(), i && B();
1129
+ }, E = () => {
1130
+ D(!0), l && l(), i && I();
1176
1131
  };
1177
1132
  return {
1178
- onEnter: Co(g, p == null ? void 0 : p.props.onEnter),
1179
- onExited: Co(C, p == null ? void 0 : p.props.onExited)
1133
+ onEnter: Co(b, u == null ? void 0 : u.props.onEnter),
1134
+ onExited: Co(E, u == null ? void 0 : u.props.onExited)
1180
1135
  };
1181
1136
  },
1182
- rootRef: S,
1137
+ rootRef: $,
1183
1138
  portalRef: z,
1184
- isTopModal: I,
1185
- exited: O,
1186
- hasTransition: R
1139
+ isTopModal: O,
1140
+ exited: S,
1141
+ hasTransition: P
1187
1142
  };
1188
1143
  }
1189
- function Ie(o) {
1190
- return U("MuiModal", o);
1144
+ function De(o) {
1145
+ return H("MuiModal", o);
1191
1146
  }
1192
- H("MuiModal", ["root", "hidden", "backdrop"]);
1193
- const Be = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Me = (o) => {
1147
+ U("MuiModal", ["root", "hidden", "backdrop"]);
1148
+ const Oe = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Ie = (o) => {
1194
1149
  const {
1195
- open: e,
1150
+ open: n,
1196
1151
  exited: t,
1197
1152
  classes: r
1198
1153
  } = o;
1199
1154
  return G({
1200
- root: ["root", !e && t && "hidden"],
1155
+ root: ["root", !n && t && "hidden"],
1201
1156
  backdrop: ["backdrop"]
1202
- }, Ie, r);
1203
- }, $e = L("div", {
1157
+ }, De, r);
1158
+ }, Be = _("div", {
1204
1159
  name: "MuiModal",
1205
1160
  slot: "Root",
1206
- overridesResolver: (o, e) => {
1161
+ overridesResolver: (o, n) => {
1207
1162
  const {
1208
1163
  ownerState: t
1209
1164
  } = o;
1210
- return [e.root, !t.open && t.exited && e.hidden];
1165
+ return [n.root, !t.open && t.exited && n.hidden];
1211
1166
  }
1212
1167
  })(({
1213
1168
  theme: o,
1214
- ownerState: e
1215
- }) => l({
1169
+ ownerState: n
1170
+ }) => d({
1216
1171
  position: "fixed",
1217
1172
  zIndex: (o.vars || o).zIndex.modal,
1218
1173
  right: 0,
1219
1174
  bottom: 0,
1220
1175
  top: 0,
1221
1176
  left: 0
1222
- }, !e.open && e.exited && {
1177
+ }, !n.open && n.exited && {
1223
1178
  visibility: "hidden"
1224
- })), We = L(bo, {
1179
+ })), Me = _(bo, {
1225
1180
  name: "MuiModal",
1226
1181
  slot: "Backdrop",
1227
- overridesResolver: (o, e) => e.backdrop
1182
+ overridesResolver: (o, n) => n.backdrop
1228
1183
  })({
1229
1184
  zIndex: -1
1230
- }), zo = /* @__PURE__ */ d.forwardRef(function(e, t) {
1231
- var r, s, i, a, c, p;
1232
- const b = Y({
1185
+ }), $o = /* @__PURE__ */ c.forwardRef(function(n, t) {
1186
+ var r, s, i, a, l, u;
1187
+ const g = Y({
1233
1188
  name: "MuiModal",
1234
- props: e
1189
+ props: n
1235
1190
  }), {
1236
- BackdropComponent: m = We,
1237
- BackdropProps: v,
1238
- className: y,
1239
- closeAfterTransition: h = !1,
1191
+ BackdropComponent: m = Me,
1192
+ BackdropProps: x,
1193
+ className: R,
1194
+ closeAfterTransition: C = !1,
1240
1195
  children: f,
1241
- container: S,
1242
- component: O,
1196
+ container: $,
1197
+ component: S,
1243
1198
  components: D = {},
1244
- componentsProps: R = {},
1245
- disableAutoFocus: u = !1,
1246
- disableEnforceFocus: k = !1,
1247
- disableEscapeKeyDown: E = !1,
1248
- disablePortal: P = !1,
1249
- disableRestoreFocus: T = !1,
1250
- disableScrollLock: I = !1,
1199
+ componentsProps: P = {},
1200
+ disableAutoFocus: p = !1,
1201
+ disableEnforceFocus: T = !1,
1202
+ disableEscapeKeyDown: h = !1,
1203
+ disablePortal: k = !1,
1204
+ disableRestoreFocus: y = !1,
1205
+ disableScrollLock: O = !1,
1251
1206
  hideBackdrop: z = !1,
1252
- keepMounted: B = !1,
1207
+ keepMounted: I = !1,
1253
1208
  onBackdropClick: F,
1254
- open: w,
1255
- slotProps: A,
1256
- slots: x
1209
+ open: A,
1210
+ slotProps: w,
1211
+ slots: v
1257
1212
  // eslint-disable-next-line react/prop-types
1258
- } = b, W = j(b, Be), g = l({}, b, {
1259
- closeAfterTransition: h,
1260
- disableAutoFocus: u,
1261
- disableEnforceFocus: k,
1262
- disableEscapeKeyDown: E,
1263
- disablePortal: P,
1264
- disableRestoreFocus: T,
1265
- disableScrollLock: I,
1213
+ } = g, W = j(g, Oe), b = d({}, g, {
1214
+ closeAfterTransition: C,
1215
+ disableAutoFocus: p,
1216
+ disableEnforceFocus: T,
1217
+ disableEscapeKeyDown: h,
1218
+ disablePortal: k,
1219
+ disableRestoreFocus: y,
1220
+ disableScrollLock: O,
1266
1221
  hideBackdrop: z,
1267
- keepMounted: B
1222
+ keepMounted: I
1268
1223
  }), {
1269
- getRootProps: C,
1270
- getBackdropProps: M,
1271
- getTransitionProps: wo,
1272
- portalRef: Ao,
1273
- isTopModal: _o,
1224
+ getRootProps: E,
1225
+ getBackdropProps: B,
1226
+ getTransitionProps: zo,
1227
+ portalRef: Fo,
1228
+ isTopModal: Ao,
1274
1229
  exited: go,
1275
1230
  hasTransition: mo
1276
- } = De(l({}, g, {
1231
+ } = Se(d({}, b, {
1277
1232
  rootRef: t
1278
- })), X = l({}, g, {
1233
+ })), X = d({}, b, {
1279
1234
  exited: go
1280
- }), K = Me(X), Q = {};
1281
- if (f.props.tabIndex === void 0 && (Q.tabIndex = "-1"), mo) {
1235
+ }), K = Ie(X), Z = {};
1236
+ if (f.props.tabIndex === void 0 && (Z.tabIndex = "-1"), mo) {
1282
1237
  const {
1283
1238
  onEnter: q,
1284
1239
  onExited: oo
1285
- } = wo();
1286
- Q.onEnter = q, Q.onExited = oo;
1240
+ } = zo();
1241
+ Z.onEnter = q, Z.onExited = oo;
1287
1242
  }
1288
- const vo = (r = (s = x == null ? void 0 : x.root) != null ? s : D.Root) != null ? r : $e, xo = (i = (a = x == null ? void 0 : x.backdrop) != null ? a : D.Backdrop) != null ? i : m, io = (c = A == null ? void 0 : A.root) != null ? c : R.root, so = (p = A == null ? void 0 : A.backdrop) != null ? p : R.backdrop, Lo = Po({
1243
+ const vo = (r = (s = v == null ? void 0 : v.root) != null ? s : D.Root) != null ? r : Be, xo = (i = (a = v == null ? void 0 : v.backdrop) != null ? a : D.Backdrop) != null ? i : m, io = (l = w == null ? void 0 : w.root) != null ? l : P.root, so = (u = w == null ? void 0 : w.backdrop) != null ? u : P.backdrop, wo = ko({
1289
1244
  elementType: vo,
1290
1245
  externalSlotProps: io,
1291
1246
  externalForwardedProps: W,
1292
- getSlotProps: C,
1247
+ getSlotProps: E,
1293
1248
  additionalProps: {
1294
1249
  ref: t,
1295
- as: O
1250
+ as: S
1296
1251
  },
1297
1252
  ownerState: X,
1298
- className: _(y, io == null ? void 0 : io.className, K == null ? void 0 : K.root, !X.open && X.exited && (K == null ? void 0 : K.hidden))
1299
- }), jo = Po({
1253
+ className: L(R, io == null ? void 0 : io.className, K == null ? void 0 : K.root, !X.open && X.exited && (K == null ? void 0 : K.hidden))
1254
+ }), _o = ko({
1300
1255
  elementType: xo,
1301
1256
  externalSlotProps: so,
1302
- additionalProps: v,
1303
- getSlotProps: (q) => M(l({}, q, {
1257
+ additionalProps: x,
1258
+ getSlotProps: (q) => B(d({}, q, {
1304
1259
  onClick: (oo) => {
1305
1260
  F && F(oo), q != null && q.onClick && q.onClick(oo);
1306
1261
  }
1307
1262
  })),
1308
- className: _(so == null ? void 0 : so.className, v == null ? void 0 : v.className, K == null ? void 0 : K.backdrop),
1263
+ className: L(so == null ? void 0 : so.className, x == null ? void 0 : x.className, K == null ? void 0 : K.backdrop),
1309
1264
  ownerState: X
1310
1265
  });
1311
- return !B && !w && (!mo || go) ? null : /* @__PURE__ */ N(ro, {
1312
- ref: Ao,
1313
- container: S,
1314
- disablePortal: P,
1315
- children: /* @__PURE__ */ co(vo, l({}, Lo, {
1316
- children: [!z && m ? /* @__PURE__ */ N(xo, l({}, jo)) : null, /* @__PURE__ */ N(to, {
1317
- disableEnforceFocus: k,
1318
- disableAutoFocus: u,
1319
- disableRestoreFocus: T,
1320
- isEnabled: _o,
1321
- open: w,
1322
- children: /* @__PURE__ */ d.cloneElement(f, Q)
1266
+ return !I && !A && (!mo || go) ? null : /* @__PURE__ */ N(ro, {
1267
+ ref: Fo,
1268
+ container: $,
1269
+ disablePortal: k,
1270
+ children: /* @__PURE__ */ co(vo, d({}, wo, {
1271
+ children: [!z && m ? /* @__PURE__ */ N(xo, d({}, _o)) : null, /* @__PURE__ */ N(to, {
1272
+ disableEnforceFocus: T,
1273
+ disableAutoFocus: p,
1274
+ disableRestoreFocus: y,
1275
+ isEnabled: Ao,
1276
+ open: A,
1277
+ children: /* @__PURE__ */ c.cloneElement(f, Z)
1323
1278
  })]
1324
1279
  }))
1325
1280
  });
1326
1281
  });
1327
- process.env.NODE_ENV !== "production" && (zo.propTypes = {
1282
+ process.env.NODE_ENV !== "production" && ($o.propTypes = {
1328
1283
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1329
1284
  // │ These PropTypes are generated from the TypeScript type definitions. │
1330
1285
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1343,12 +1298,12 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
1343
1298
  * zIndex: -1,
1344
1299
  * })
1345
1300
  */
1346
- BackdropComponent: n.elementType,
1301
+ BackdropComponent: e.elementType,
1347
1302
  /**
1348
1303
  * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
1349
1304
  * @deprecated Use `slotProps.backdrop` instead.
1350
1305
  */
1351
- BackdropProps: n.object,
1306
+ BackdropProps: e.object,
1352
1307
  /**
1353
1308
  * A single child content element.
1354
1309
  */
@@ -1356,21 +1311,21 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
1356
1311
  /**
1357
1312
  * Override or extend the styles applied to the component.
1358
1313
  */
1359
- classes: n.object,
1314
+ classes: e.object,
1360
1315
  /**
1361
1316
  * @ignore
1362
1317
  */
1363
- className: n.string,
1318
+ className: e.string,
1364
1319
  /**
1365
1320
  * When set to true the Modal waits until a nested Transition is completed before closing.
1366
1321
  * @default false
1367
1322
  */
1368
- closeAfterTransition: n.bool,
1323
+ closeAfterTransition: e.bool,
1369
1324
  /**
1370
1325
  * The component used for the root node.
1371
1326
  * Either a string to use a HTML element or a component.
1372
1327
  */
1373
- component: n.elementType,
1328
+ component: e.elementType,
1374
1329
  /**
1375
1330
  * The components used for each slot inside.
1376
1331
  *
@@ -1379,9 +1334,9 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
1379
1334
  *
1380
1335
  * @default {}
1381
1336
  */
1382
- components: n.shape({
1383
- Backdrop: n.elementType,
1384
- Root: n.elementType
1337
+ components: e.shape({
1338
+ Backdrop: e.elementType,
1339
+ Root: e.elementType
1385
1340
  }),
1386
1341
  /**
1387
1342
  * The extra props for the slot components.
@@ -1392,9 +1347,9 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
1392
1347
  *
1393
1348
  * @default {}
1394
1349
  */
1395
- componentsProps: n.shape({
1396
- backdrop: n.oneOfType([n.func, n.object]),
1397
- root: n.oneOfType([n.func, n.object])
1350
+ componentsProps: e.shape({
1351
+ backdrop: e.oneOfType([e.func, e.object]),
1352
+ root: e.oneOfType([e.func, e.object])
1398
1353
  }),
1399
1354
  /**
1400
1355
  * An HTML element or function that returns one.
@@ -1406,7 +1361,7 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
1406
1361
  * By default, it uses the body of the top-level document object,
1407
1362
  * so it's simply `document.body` most of the time.
1408
1363
  */
1409
- container: n.oneOfType([Io, n.func]),
1364
+ container: e.oneOfType([Oo, e.func]),
1410
1365
  /**
1411
1366
  * If `true`, the modal will not automatically shift focus to itself when it opens, and
1412
1367
  * replace it to the last focused element when it closes.
@@ -1416,7 +1371,7 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
1416
1371
  * accessible to assistive technologies, like screen readers.
1417
1372
  * @default false
1418
1373
  */
1419
- disableAutoFocus: n.bool,
1374
+ disableAutoFocus: e.bool,
1420
1375
  /**
1421
1376
  * If `true`, the modal will not prevent focus from leaving the modal while open.
1422
1377
  *
@@ -1424,45 +1379,45 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
1424
1379
  * accessible to assistive technologies, like screen readers.
1425
1380
  * @default false
1426
1381
  */
1427
- disableEnforceFocus: n.bool,
1382
+ disableEnforceFocus: e.bool,
1428
1383
  /**
1429
1384
  * If `true`, hitting escape will not fire the `onClose` callback.
1430
1385
  * @default false
1431
1386
  */
1432
- disableEscapeKeyDown: n.bool,
1387
+ disableEscapeKeyDown: e.bool,
1433
1388
  /**
1434
1389
  * The `children` will be under the DOM hierarchy of the parent component.
1435
1390
  * @default false
1436
1391
  */
1437
- disablePortal: n.bool,
1392
+ disablePortal: e.bool,
1438
1393
  /**
1439
1394
  * If `true`, the modal will not restore focus to previously focused element once
1440
1395
  * modal is hidden or unmounted.
1441
1396
  * @default false
1442
1397
  */
1443
- disableRestoreFocus: n.bool,
1398
+ disableRestoreFocus: e.bool,
1444
1399
  /**
1445
1400
  * Disable the scroll lock behavior.
1446
1401
  * @default false
1447
1402
  */
1448
- disableScrollLock: n.bool,
1403
+ disableScrollLock: e.bool,
1449
1404
  /**
1450
1405
  * If `true`, the backdrop is not rendered.
1451
1406
  * @default false
1452
1407
  */
1453
- hideBackdrop: n.bool,
1408
+ hideBackdrop: e.bool,
1454
1409
  /**
1455
1410
  * Always keep the children in the DOM.
1456
1411
  * This prop can be useful in SEO situation or
1457
1412
  * when you want to maximize the responsiveness of the Modal.
1458
1413
  * @default false
1459
1414
  */
1460
- keepMounted: n.bool,
1415
+ keepMounted: e.bool,
1461
1416
  /**
1462
1417
  * Callback fired when the backdrop is clicked.
1463
1418
  * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
1464
1419
  */
1465
- onBackdropClick: n.func,
1420
+ onBackdropClick: e.func,
1466
1421
  /**
1467
1422
  * Callback fired when the component requests to be closed.
1468
1423
  * The `reason` parameter can optionally be used to control the response to `onClose`.
@@ -1470,87 +1425,87 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
1470
1425
  * @param {object} event The event source of the callback.
1471
1426
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
1472
1427
  */
1473
- onClose: n.func,
1428
+ onClose: e.func,
1474
1429
  /**
1475
1430
  * A function called when a transition enters.
1476
1431
  */
1477
- onTransitionEnter: n.func,
1432
+ onTransitionEnter: e.func,
1478
1433
  /**
1479
1434
  * A function called when a transition has exited.
1480
1435
  */
1481
- onTransitionExited: n.func,
1436
+ onTransitionExited: e.func,
1482
1437
  /**
1483
1438
  * If `true`, the component is shown.
1484
1439
  */
1485
- open: n.bool.isRequired,
1440
+ open: e.bool.isRequired,
1486
1441
  /**
1487
1442
  * The props used for each slot inside the Modal.
1488
1443
  * @default {}
1489
1444
  */
1490
- slotProps: n.shape({
1491
- backdrop: n.oneOfType([n.func, n.object]),
1492
- root: n.oneOfType([n.func, n.object])
1445
+ slotProps: e.shape({
1446
+ backdrop: e.oneOfType([e.func, e.object]),
1447
+ root: e.oneOfType([e.func, e.object])
1493
1448
  }),
1494
1449
  /**
1495
1450
  * The components used for each slot inside the Modal.
1496
1451
  * Either a string to use a HTML element or a component.
1497
1452
  * @default {}
1498
1453
  */
1499
- slots: n.shape({
1500
- backdrop: n.elementType,
1501
- root: n.elementType
1454
+ slots: e.shape({
1455
+ backdrop: e.elementType,
1456
+ root: e.elementType
1502
1457
  }),
1503
1458
  /**
1504
1459
  * The system prop that allows defining system overrides as well as additional CSS styles.
1505
1460
  */
1506
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
1461
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1507
1462
  });
1508
- function ze(o) {
1509
- return U("MuiDialog", o);
1463
+ function $e(o) {
1464
+ return H("MuiDialog", o);
1510
1465
  }
1511
- const lo = H("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Fo = /* @__PURE__ */ d.createContext({});
1512
- process.env.NODE_ENV !== "production" && (Fo.displayName = "DialogContext");
1513
- const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], we = L(bo, {
1466
+ const lo = U("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Wo = /* @__PURE__ */ c.createContext({});
1467
+ process.env.NODE_ENV !== "production" && (Wo.displayName = "DialogContext");
1468
+ const We = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], ze = _(bo, {
1514
1469
  name: "MuiDialog",
1515
1470
  slot: "Backdrop",
1516
- overrides: (o, e) => e.backdrop
1471
+ overrides: (o, n) => n.backdrop
1517
1472
  })({
1518
1473
  // Improve scrollable dialog support.
1519
1474
  zIndex: -1
1520
- }), Ae = (o) => {
1475
+ }), Fe = (o) => {
1521
1476
  const {
1522
- classes: e,
1477
+ classes: n,
1523
1478
  scroll: t,
1524
1479
  maxWidth: r,
1525
1480
  fullWidth: s,
1526
1481
  fullScreen: i
1527
1482
  } = o, a = {
1528
1483
  root: ["root"],
1529
- container: ["container", `scroll${$(t)}`],
1530
- paper: ["paper", `paperScroll${$(t)}`, `paperWidth${$(String(r))}`, s && "paperFullWidth", i && "paperFullScreen"]
1484
+ container: ["container", `scroll${M(t)}`],
1485
+ paper: ["paper", `paperScroll${M(t)}`, `paperWidth${M(String(r))}`, s && "paperFullWidth", i && "paperFullScreen"]
1531
1486
  };
1532
- return G(a, ze, e);
1533
- }, _e = L(zo, {
1487
+ return G(a, $e, n);
1488
+ }, Ae = _($o, {
1534
1489
  name: "MuiDialog",
1535
1490
  slot: "Root",
1536
- overridesResolver: (o, e) => e.root
1491
+ overridesResolver: (o, n) => n.root
1537
1492
  })({
1538
1493
  "@media print": {
1539
1494
  // Use !important to override the Modal inline-style.
1540
1495
  position: "absolute !important"
1541
1496
  }
1542
- }), Le = L("div", {
1497
+ }), we = _("div", {
1543
1498
  name: "MuiDialog",
1544
1499
  slot: "Container",
1545
- overridesResolver: (o, e) => {
1500
+ overridesResolver: (o, n) => {
1546
1501
  const {
1547
1502
  ownerState: t
1548
1503
  } = o;
1549
- return [e.container, e[`scroll${$(t.scroll)}`]];
1504
+ return [n.container, n[`scroll${M(t.scroll)}`]];
1550
1505
  }
1551
1506
  })(({
1552
1507
  ownerState: o
1553
- }) => l({
1508
+ }) => d({
1554
1509
  height: "100%",
1555
1510
  "@media print": {
1556
1511
  height: "auto"
@@ -1572,19 +1527,19 @@ const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
1572
1527
  height: "100%",
1573
1528
  width: "0"
1574
1529
  }
1575
- })), je = L(Do, {
1530
+ })), _e = _(Do, {
1576
1531
  name: "MuiDialog",
1577
1532
  slot: "Paper",
1578
- overridesResolver: (o, e) => {
1533
+ overridesResolver: (o, n) => {
1579
1534
  const {
1580
1535
  ownerState: t
1581
1536
  } = o;
1582
- return [e.paper, e[`scrollPaper${$(t.scroll)}`], e[`paperWidth${$(String(t.maxWidth))}`], t.fullWidth && e.paperFullWidth, t.fullScreen && e.paperFullScreen];
1537
+ return [n.paper, n[`scrollPaper${M(t.scroll)}`], n[`paperWidth${M(String(t.maxWidth))}`], t.fullWidth && n.paperFullWidth, t.fullScreen && n.paperFullScreen];
1583
1538
  }
1584
1539
  })(({
1585
1540
  theme: o,
1586
- ownerState: e
1587
- }) => l({
1541
+ ownerState: n
1542
+ }) => d({
1588
1543
  margin: 32,
1589
1544
  position: "relative",
1590
1545
  overflowY: "auto",
@@ -1593,34 +1548,34 @@ const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
1593
1548
  overflowY: "visible",
1594
1549
  boxShadow: "none"
1595
1550
  }
1596
- }, e.scroll === "paper" && {
1551
+ }, n.scroll === "paper" && {
1597
1552
  display: "flex",
1598
1553
  flexDirection: "column",
1599
1554
  maxHeight: "calc(100% - 64px)"
1600
- }, e.scroll === "body" && {
1555
+ }, n.scroll === "body" && {
1601
1556
  display: "inline-block",
1602
1557
  verticalAlign: "middle",
1603
1558
  textAlign: "left"
1604
1559
  // 'initial' doesn't work on IE11
1605
- }, !e.maxWidth && {
1560
+ }, !n.maxWidth && {
1606
1561
  maxWidth: "calc(100% - 64px)"
1607
- }, e.maxWidth === "xs" && {
1562
+ }, n.maxWidth === "xs" && {
1608
1563
  maxWidth: o.breakpoints.unit === "px" ? Math.max(o.breakpoints.values.xs, 444) : `max(${o.breakpoints.values.xs}${o.breakpoints.unit}, 444px)`,
1609
1564
  [`&.${lo.paperScrollBody}`]: {
1610
1565
  [o.breakpoints.down(Math.max(o.breakpoints.values.xs, 444) + 32 * 2)]: {
1611
1566
  maxWidth: "calc(100% - 64px)"
1612
1567
  }
1613
1568
  }
1614
- }, e.maxWidth && e.maxWidth !== "xs" && {
1615
- maxWidth: `${o.breakpoints.values[e.maxWidth]}${o.breakpoints.unit}`,
1569
+ }, n.maxWidth && n.maxWidth !== "xs" && {
1570
+ maxWidth: `${o.breakpoints.values[n.maxWidth]}${o.breakpoints.unit}`,
1616
1571
  [`&.${lo.paperScrollBody}`]: {
1617
- [o.breakpoints.down(o.breakpoints.values[e.maxWidth] + 32 * 2)]: {
1572
+ [o.breakpoints.down(o.breakpoints.values[n.maxWidth] + 32 * 2)]: {
1618
1573
  maxWidth: "calc(100% - 64px)"
1619
1574
  }
1620
1575
  }
1621
- }, e.fullWidth && {
1576
+ }, n.fullWidth && {
1622
1577
  width: "calc(100% - 64px)"
1623
- }, e.fullScreen && {
1578
+ }, n.fullScreen && {
1624
1579
  margin: 0,
1625
1580
  width: "100%",
1626
1581
  maxWidth: "100%",
@@ -1631,87 +1586,87 @@ const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
1631
1586
  margin: 0,
1632
1587
  maxWidth: "100%"
1633
1588
  }
1634
- })), Ve = /* @__PURE__ */ d.forwardRef(function(e, t) {
1589
+ })), Le = /* @__PURE__ */ c.forwardRef(function(n, t) {
1635
1590
  const r = Y({
1636
- props: e,
1591
+ props: n,
1637
1592
  name: "MuiDialog"
1638
- }), s = So(), i = {
1593
+ }), s = No(), i = {
1639
1594
  enter: s.transitions.duration.enteringScreen,
1640
1595
  exit: s.transitions.duration.leavingScreen
1641
1596
  }, {
1642
1597
  "aria-describedby": a,
1643
- "aria-labelledby": c,
1644
- BackdropComponent: p,
1645
- BackdropProps: b,
1598
+ "aria-labelledby": l,
1599
+ BackdropComponent: u,
1600
+ BackdropProps: g,
1646
1601
  children: m,
1647
- className: v,
1648
- disableEscapeKeyDown: y = !1,
1649
- fullScreen: h = !1,
1602
+ className: x,
1603
+ disableEscapeKeyDown: R = !1,
1604
+ fullScreen: C = !1,
1650
1605
  fullWidth: f = !1,
1651
- maxWidth: S = "sm",
1652
- onBackdropClick: O,
1606
+ maxWidth: $ = "sm",
1607
+ onBackdropClick: S,
1653
1608
  onClick: D,
1654
- onClose: R,
1655
- open: u,
1656
- PaperComponent: k = Do,
1657
- PaperProps: E = {},
1658
- scroll: P = "paper",
1659
- TransitionComponent: T = fo,
1660
- transitionDuration: I = i,
1609
+ onClose: P,
1610
+ open: p,
1611
+ PaperComponent: T = Do,
1612
+ PaperProps: h = {},
1613
+ scroll: k = "paper",
1614
+ TransitionComponent: y = fo,
1615
+ transitionDuration: O = i,
1661
1616
  TransitionProps: z
1662
- } = r, B = j(r, Fe), F = l({}, r, {
1663
- disableEscapeKeyDown: y,
1664
- fullScreen: h,
1617
+ } = r, I = j(r, We), F = d({}, r, {
1618
+ disableEscapeKeyDown: R,
1619
+ fullScreen: C,
1665
1620
  fullWidth: f,
1666
- maxWidth: S,
1667
- scroll: P
1668
- }), w = Ae(F), A = d.useRef(), x = (M) => {
1669
- A.current = M.target === M.currentTarget;
1670
- }, W = (M) => {
1671
- D && D(M), A.current && (A.current = null, O && O(M), R && R(M, "backdropClick"));
1672
- }, g = Yo(c), C = d.useMemo(() => ({
1673
- titleId: g
1674
- }), [g]);
1675
- return /* @__PURE__ */ N(_e, l({
1676
- className: _(w.root, v),
1621
+ maxWidth: $,
1622
+ scroll: k
1623
+ }), A = Fe(F), w = c.useRef(), v = (B) => {
1624
+ w.current = B.target === B.currentTarget;
1625
+ }, W = (B) => {
1626
+ D && D(B), w.current && (w.current = null, S && S(B), P && P(B, "backdropClick"));
1627
+ }, b = Xo(l), E = c.useMemo(() => ({
1628
+ titleId: b
1629
+ }), [b]);
1630
+ return /* @__PURE__ */ N(Ae, d({
1631
+ className: L(A.root, x),
1677
1632
  closeAfterTransition: !0,
1678
1633
  components: {
1679
- Backdrop: we
1634
+ Backdrop: ze
1680
1635
  },
1681
1636
  componentsProps: {
1682
- backdrop: l({
1683
- transitionDuration: I,
1684
- as: p
1685
- }, b)
1637
+ backdrop: d({
1638
+ transitionDuration: O,
1639
+ as: u
1640
+ }, g)
1686
1641
  },
1687
- disableEscapeKeyDown: y,
1688
- onClose: R,
1689
- open: u,
1642
+ disableEscapeKeyDown: R,
1643
+ onClose: P,
1644
+ open: p,
1690
1645
  ref: t,
1691
1646
  onClick: W,
1692
1647
  ownerState: F
1693
- }, B, {
1694
- children: /* @__PURE__ */ N(T, l({
1648
+ }, I, {
1649
+ children: /* @__PURE__ */ N(y, d({
1695
1650
  appear: !0,
1696
- in: u,
1697
- timeout: I,
1651
+ in: p,
1652
+ timeout: O,
1698
1653
  role: "presentation"
1699
1654
  }, z, {
1700
- children: /* @__PURE__ */ N(Le, {
1701
- className: _(w.container),
1702
- onMouseDown: x,
1655
+ children: /* @__PURE__ */ N(we, {
1656
+ className: L(A.container),
1657
+ onMouseDown: v,
1703
1658
  ownerState: F,
1704
- children: /* @__PURE__ */ N(je, l({
1705
- as: k,
1659
+ children: /* @__PURE__ */ N(_e, d({
1660
+ as: T,
1706
1661
  elevation: 24,
1707
1662
  role: "dialog",
1708
1663
  "aria-describedby": a,
1709
- "aria-labelledby": g
1710
- }, E, {
1711
- className: _(w.paper, E.className),
1664
+ "aria-labelledby": b
1665
+ }, h, {
1666
+ className: L(A.paper, h.className),
1712
1667
  ownerState: F,
1713
- children: /* @__PURE__ */ N(Fo.Provider, {
1714
- value: C,
1668
+ children: /* @__PURE__ */ N(Wo.Provider, {
1669
+ value: E,
1715
1670
  children: m
1716
1671
  })
1717
1672
  }))
@@ -1719,7 +1674,7 @@ const Fe = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
1719
1674
  }))
1720
1675
  }));
1721
1676
  });
1722
- process.env.NODE_ENV !== "production" && (Ve.propTypes = {
1677
+ process.env.NODE_ENV !== "production" && (Le.propTypes = {
1723
1678
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1724
1679
  // │ These PropTypes are generated from the TypeScript type definitions. │
1725
1680
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1727,11 +1682,11 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
1727
1682
  /**
1728
1683
  * The id(s) of the element(s) that describe the dialog.
1729
1684
  */
1730
- "aria-describedby": n.string,
1685
+ "aria-describedby": e.string,
1731
1686
  /**
1732
1687
  * The id(s) of the element(s) that label the dialog.
1733
1688
  */
1734
- "aria-labelledby": n.string,
1689
+ "aria-labelledby": e.string,
1735
1690
  /**
1736
1691
  * A backdrop component. This prop enables custom backdrop rendering.
1737
1692
  * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
@@ -1746,92 +1701,92 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
1746
1701
  * zIndex: -1,
1747
1702
  * })
1748
1703
  */
1749
- BackdropComponent: n.elementType,
1704
+ BackdropComponent: e.elementType,
1750
1705
  /**
1751
1706
  * @ignore
1752
1707
  */
1753
- BackdropProps: n.object,
1708
+ BackdropProps: e.object,
1754
1709
  /**
1755
1710
  * Dialog children, usually the included sub-components.
1756
1711
  */
1757
- children: n.node,
1712
+ children: e.node,
1758
1713
  /**
1759
1714
  * Override or extend the styles applied to the component.
1760
1715
  */
1761
- classes: n.object,
1716
+ classes: e.object,
1762
1717
  /**
1763
1718
  * @ignore
1764
1719
  */
1765
- className: n.string,
1720
+ className: e.string,
1766
1721
  /**
1767
1722
  * If `true`, hitting escape will not fire the `onClose` callback.
1768
1723
  * @default false
1769
1724
  */
1770
- disableEscapeKeyDown: n.bool,
1725
+ disableEscapeKeyDown: e.bool,
1771
1726
  /**
1772
1727
  * If `true`, the dialog is full-screen.
1773
1728
  * @default false
1774
1729
  */
1775
- fullScreen: n.bool,
1730
+ fullScreen: e.bool,
1776
1731
  /**
1777
1732
  * If `true`, the dialog stretches to `maxWidth`.
1778
1733
  *
1779
1734
  * Notice that the dialog width grow is limited by the default margin.
1780
1735
  * @default false
1781
1736
  */
1782
- fullWidth: n.bool,
1737
+ fullWidth: e.bool,
1783
1738
  /**
1784
1739
  * Determine the max-width of the dialog.
1785
1740
  * The dialog width grows with the size of the screen.
1786
1741
  * Set to `false` to disable `maxWidth`.
1787
1742
  * @default 'sm'
1788
1743
  */
1789
- maxWidth: n.oneOfType([n.oneOf(["xs", "sm", "md", "lg", "xl", !1]), n.string]),
1744
+ maxWidth: e.oneOfType([e.oneOf(["xs", "sm", "md", "lg", "xl", !1]), e.string]),
1790
1745
  /**
1791
1746
  * Callback fired when the backdrop is clicked.
1792
1747
  * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
1793
1748
  */
1794
- onBackdropClick: n.func,
1749
+ onBackdropClick: e.func,
1795
1750
  /**
1796
1751
  * @ignore
1797
1752
  */
1798
- onClick: n.func,
1753
+ onClick: e.func,
1799
1754
  /**
1800
1755
  * Callback fired when the component requests to be closed.
1801
1756
  *
1802
1757
  * @param {object} event The event source of the callback.
1803
1758
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
1804
1759
  */
1805
- onClose: n.func,
1760
+ onClose: e.func,
1806
1761
  /**
1807
1762
  * If `true`, the component is shown.
1808
1763
  */
1809
- open: n.bool.isRequired,
1764
+ open: e.bool.isRequired,
1810
1765
  /**
1811
1766
  * The component used to render the body of the dialog.
1812
1767
  * @default Paper
1813
1768
  */
1814
- PaperComponent: n.elementType,
1769
+ PaperComponent: e.elementType,
1815
1770
  /**
1816
1771
  * Props applied to the [`Paper`](/material-ui/api/paper/) element.
1817
1772
  * @default {}
1818
1773
  */
1819
- PaperProps: n.object,
1774
+ PaperProps: e.object,
1820
1775
  /**
1821
1776
  * Determine the container for scrolling the dialog.
1822
1777
  * @default 'paper'
1823
1778
  */
1824
- scroll: n.oneOf(["body", "paper"]),
1779
+ scroll: e.oneOf(["body", "paper"]),
1825
1780
  /**
1826
1781
  * The system prop that allows defining system overrides as well as additional CSS styles.
1827
1782
  */
1828
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1783
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1829
1784
  /**
1830
1785
  * The component used for the transition.
1831
1786
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
1832
1787
  * @default Fade
1833
1788
  */
1834
- TransitionComponent: n.elementType,
1789
+ TransitionComponent: e.elementType,
1835
1790
  /**
1836
1791
  * The duration for the transition, in milliseconds.
1837
1792
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -1840,41 +1795,41 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
1840
1795
  * exit: theme.transitions.duration.leavingScreen,
1841
1796
  * }
1842
1797
  */
1843
- transitionDuration: n.oneOfType([n.number, n.shape({
1844
- appear: n.number,
1845
- enter: n.number,
1846
- exit: n.number
1798
+ transitionDuration: e.oneOfType([e.number, e.shape({
1799
+ appear: e.number,
1800
+ enter: e.number,
1801
+ exit: e.number
1847
1802
  })]),
1848
1803
  /**
1849
1804
  * Props applied to the transition element.
1850
1805
  * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
1851
1806
  */
1852
- TransitionProps: n.object
1807
+ TransitionProps: e.object
1853
1808
  });
1854
- function He(o) {
1855
- return U("MuiDialogActions", o);
1809
+ function je(o) {
1810
+ return H("MuiDialogActions", o);
1856
1811
  }
1857
- H("MuiDialogActions", ["root", "spacing"]);
1858
- const Ue = ["className", "disableSpacing"], Ke = (o) => {
1812
+ U("MuiDialogActions", ["root", "spacing"]);
1813
+ const Ve = ["className", "disableSpacing"], Ue = (o) => {
1859
1814
  const {
1860
- classes: e,
1815
+ classes: n,
1861
1816
  disableSpacing: t
1862
1817
  } = o;
1863
1818
  return G({
1864
1819
  root: ["root", !t && "spacing"]
1865
- }, He, e);
1866
- }, qe = L("div", {
1820
+ }, je, n);
1821
+ }, He = _("div", {
1867
1822
  name: "MuiDialogActions",
1868
1823
  slot: "Root",
1869
- overridesResolver: (o, e) => {
1824
+ overridesResolver: (o, n) => {
1870
1825
  const {
1871
1826
  ownerState: t
1872
1827
  } = o;
1873
- return [e.root, !t.disableSpacing && e.spacing];
1828
+ return [n.root, !t.disableSpacing && n.spacing];
1874
1829
  }
1875
1830
  })(({
1876
1831
  ownerState: o
1877
- }) => l({
1832
+ }) => d({
1878
1833
  display: "flex",
1879
1834
  alignItems: "center",
1880
1835
  padding: 8,
@@ -1884,23 +1839,23 @@ const Ue = ["className", "disableSpacing"], Ke = (o) => {
1884
1839
  "& > :not(style) ~ :not(style)": {
1885
1840
  marginLeft: 8
1886
1841
  }
1887
- })), Ye = /* @__PURE__ */ d.forwardRef(function(e, t) {
1842
+ })), Ke = /* @__PURE__ */ c.forwardRef(function(n, t) {
1888
1843
  const r = Y({
1889
- props: e,
1844
+ props: n,
1890
1845
  name: "MuiDialogActions"
1891
1846
  }), {
1892
1847
  className: s,
1893
1848
  disableSpacing: i = !1
1894
- } = r, a = j(r, Ue), c = l({}, r, {
1849
+ } = r, a = j(r, Ve), l = d({}, r, {
1895
1850
  disableSpacing: i
1896
- }), p = Ke(c);
1897
- return /* @__PURE__ */ N(qe, l({
1898
- className: _(p.root, s),
1899
- ownerState: c,
1851
+ }), u = Ue(l);
1852
+ return /* @__PURE__ */ N(He, d({
1853
+ className: L(u.root, s),
1854
+ ownerState: l,
1900
1855
  ref: t
1901
1856
  }, a));
1902
1857
  });
1903
- process.env.NODE_ENV !== "production" && (Ye.propTypes = {
1858
+ process.env.NODE_ENV !== "production" && (Ke.propTypes = {
1904
1859
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1905
1860
  // │ These PropTypes are generated from the TypeScript type definitions. │
1906
1861
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1908,83 +1863,83 @@ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
1908
1863
  /**
1909
1864
  * The content of the component.
1910
1865
  */
1911
- children: n.node,
1866
+ children: e.node,
1912
1867
  /**
1913
1868
  * Override or extend the styles applied to the component.
1914
1869
  */
1915
- classes: n.object,
1870
+ classes: e.object,
1916
1871
  /**
1917
1872
  * @ignore
1918
1873
  */
1919
- className: n.string,
1874
+ className: e.string,
1920
1875
  /**
1921
1876
  * If `true`, the actions do not have additional margin.
1922
1877
  * @default false
1923
1878
  */
1924
- disableSpacing: n.bool,
1879
+ disableSpacing: e.bool,
1925
1880
  /**
1926
1881
  * The system prop that allows defining system overrides as well as additional CSS styles.
1927
1882
  */
1928
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
1883
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1929
1884
  });
1930
- function Ge(o) {
1931
- return U("MuiDialogContent", o);
1885
+ function qe(o) {
1886
+ return H("MuiDialogContent", o);
1932
1887
  }
1933
- H("MuiDialogContent", ["root", "dividers"]);
1934
- function mn(o) {
1935
- return U("MuiDialogTitle", o);
1888
+ U("MuiDialogContent", ["root", "dividers"]);
1889
+ function bn(o) {
1890
+ return H("MuiDialogTitle", o);
1936
1891
  }
1937
- const Xe = H("MuiDialogTitle", ["root"]), Ze = ["className", "dividers"], Je = (o) => {
1892
+ const Ye = U("MuiDialogTitle", ["root"]), Ge = ["className", "dividers"], Xe = (o) => {
1938
1893
  const {
1939
- classes: e,
1894
+ classes: n,
1940
1895
  dividers: t
1941
1896
  } = o;
1942
1897
  return G({
1943
1898
  root: ["root", t && "dividers"]
1944
- }, Ge, e);
1945
- }, Qe = L("div", {
1899
+ }, qe, n);
1900
+ }, Je = _("div", {
1946
1901
  name: "MuiDialogContent",
1947
1902
  slot: "Root",
1948
- overridesResolver: (o, e) => {
1903
+ overridesResolver: (o, n) => {
1949
1904
  const {
1950
1905
  ownerState: t
1951
1906
  } = o;
1952
- return [e.root, t.dividers && e.dividers];
1907
+ return [n.root, t.dividers && n.dividers];
1953
1908
  }
1954
1909
  })(({
1955
1910
  theme: o,
1956
- ownerState: e
1957
- }) => l({
1911
+ ownerState: n
1912
+ }) => d({
1958
1913
  flex: "1 1 auto",
1959
1914
  // Add iOS momentum scrolling for iOS < 13.0
1960
1915
  WebkitOverflowScrolling: "touch",
1961
1916
  overflowY: "auto",
1962
1917
  padding: "20px 24px"
1963
- }, e.dividers ? {
1918
+ }, n.dividers ? {
1964
1919
  padding: "16px 24px",
1965
1920
  borderTop: `1px solid ${(o.vars || o).palette.divider}`,
1966
1921
  borderBottom: `1px solid ${(o.vars || o).palette.divider}`
1967
1922
  } : {
1968
- [`.${Xe.root} + &`]: {
1923
+ [`.${Ye.root} + &`]: {
1969
1924
  paddingTop: 0
1970
1925
  }
1971
- })), on = /* @__PURE__ */ d.forwardRef(function(e, t) {
1926
+ })), Qe = /* @__PURE__ */ c.forwardRef(function(n, t) {
1972
1927
  const r = Y({
1973
- props: e,
1928
+ props: n,
1974
1929
  name: "MuiDialogContent"
1975
1930
  }), {
1976
1931
  className: s,
1977
1932
  dividers: i = !1
1978
- } = r, a = j(r, Ze), c = l({}, r, {
1933
+ } = r, a = j(r, Ge), l = d({}, r, {
1979
1934
  dividers: i
1980
- }), p = Je(c);
1981
- return /* @__PURE__ */ N(Qe, l({
1982
- className: _(p.root, s),
1983
- ownerState: c,
1935
+ }), u = Xe(l);
1936
+ return /* @__PURE__ */ N(Je, d({
1937
+ className: L(u.root, s),
1938
+ ownerState: l,
1984
1939
  ref: t
1985
1940
  }, a));
1986
1941
  });
1987
- process.env.NODE_ENV !== "production" && (on.propTypes = {
1942
+ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
1988
1943
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1989
1944
  // │ These PropTypes are generated from the TypeScript type definitions. │
1990
1945
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1992,34 +1947,36 @@ process.env.NODE_ENV !== "production" && (on.propTypes = {
1992
1947
  /**
1993
1948
  * The content of the component.
1994
1949
  */
1995
- children: n.node,
1950
+ children: e.node,
1996
1951
  /**
1997
1952
  * Override or extend the styles applied to the component.
1998
1953
  */
1999
- classes: n.object,
1954
+ classes: e.object,
2000
1955
  /**
2001
1956
  * @ignore
2002
1957
  */
2003
- className: n.string,
1958
+ className: e.string,
2004
1959
  /**
2005
1960
  * Display the top and bottom dividers.
2006
1961
  * @default false
2007
1962
  */
2008
- dividers: n.bool,
1963
+ dividers: e.bool,
2009
1964
  /**
2010
1965
  * The system prop that allows defining system overrides as well as additional CSS styles.
2011
1966
  */
2012
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
1967
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
2013
1968
  });
2014
1969
  export {
2015
- le as B,
2016
- Ve as D,
2017
- Io as H,
2018
- zo as M,
2019
- on as a,
2020
- Ye as b,
2021
- Fo as c,
2022
- Zo as d,
2023
- mn as g,
2024
- Po as u
1970
+ se as B,
1971
+ Le as D,
1972
+ fo as F,
1973
+ Oo as H,
1974
+ $o as M,
1975
+ Qe as a,
1976
+ Ke as b,
1977
+ Wo as c,
1978
+ Qo as d,
1979
+ lo as e,
1980
+ bn as g,
1981
+ ko as u
2025
1982
  };