kdpa-components 1.35.2 → 1.35.3

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 (234) hide show
  1. package/dist/Accordion/index.d.ts +3 -0
  2. package/dist/Accordion/index.d.ts.map +1 -0
  3. package/dist/Accordion/index.js +481 -0
  4. package/dist/AdvancedList/index.d.ts +2 -0
  5. package/dist/AdvancedList/index.d.ts.map +1 -0
  6. package/dist/AdvancedList/index.js +16751 -0
  7. package/dist/Alert/index.d.ts +5 -0
  8. package/dist/Alert/index.d.ts.map +1 -0
  9. package/dist/Alert/index.js +407 -0
  10. package/dist/ArrowDropDown-76613637.js +35 -0
  11. package/dist/Autocomplete-45ae6737.js +1670 -0
  12. package/dist/Avatar/index.d.ts +3 -0
  13. package/dist/Avatar/index.d.ts.map +1 -0
  14. package/dist/Avatar/index.js +210 -0
  15. package/dist/Badge/index.d.ts +6 -0
  16. package/dist/Badge/index.d.ts.map +1 -0
  17. package/dist/Badge/index.js +69 -0
  18. package/dist/Badge-26e8a2aa.js +392 -0
  19. package/dist/Box-a827334a.js +58 -0
  20. package/dist/Button-b93e890d.js +355 -0
  21. package/dist/ButtonBase-0f9f324d.js +655 -0
  22. package/dist/Buttons/index.d.ts +9 -0
  23. package/dist/Buttons/index.d.ts.map +1 -0
  24. package/dist/Buttons/index.js +83 -0
  25. package/dist/CSSTransition-d0281d1f.js +215 -0
  26. package/dist/Cards/index.d.ts +3 -0
  27. package/dist/Cards/index.d.ts.map +1 -0
  28. package/dist/Cards/index.js +144 -0
  29. package/dist/CheckBox/index.d.ts +3 -0
  30. package/dist/CheckBox/index.d.ts.map +1 -0
  31. package/dist/CheckBox/index.js +32 -0
  32. package/dist/Checkbox-2cb33932.js +199 -0
  33. package/dist/Chip/index.d.ts +3 -0
  34. package/dist/Chip/index.d.ts.map +1 -0
  35. package/dist/Chip/index.js +61 -0
  36. package/dist/Chip-7b1a25ce.js +444 -0
  37. package/dist/CircularProgress-2c55d9ef.js +217 -0
  38. package/dist/Close-ef7a3b6b.js +9 -0
  39. package/dist/CodeEditor/index.d.ts +2 -0
  40. package/dist/CodeEditor/index.d.ts.map +1 -0
  41. package/dist/CodeEditor/index.js +559 -0
  42. package/dist/Collapse/index.d.ts +3 -0
  43. package/dist/Collapse/index.d.ts.map +1 -0
  44. package/dist/Collapse/index.js +23 -0
  45. package/dist/Collapse-4b8b3146.js +299 -0
  46. package/dist/CopyToClipboard/index.d.ts +3 -0
  47. package/dist/CopyToClipboard/index.d.ts.map +1 -0
  48. package/dist/CopyToClipboard/index.js +591 -0
  49. package/dist/Dialog-25ebaee6.js +356 -0
  50. package/dist/Divider/index.d.ts +4 -0
  51. package/dist/Divider/index.d.ts.map +1 -0
  52. package/dist/Divider/index.js +31 -0
  53. package/dist/Divider-cadf67a7.js +231 -0
  54. package/dist/DropZone/index.d.ts +2 -0
  55. package/dist/DropZone/index.d.ts.map +1 -0
  56. package/dist/DropZone/index.js +1348 -0
  57. package/dist/Fade-aabbd0cb.js +163 -0
  58. package/dist/FormControl/index.d.ts +5 -0
  59. package/dist/FormControl/index.d.ts.map +1 -0
  60. package/dist/FormControl/index.js +24 -0
  61. package/dist/FormControl-e7294bde.js +232 -0
  62. package/dist/FormControlLabel-276f1b1e.js +214 -0
  63. package/dist/FullScreenDialog/index.d.ts +3 -0
  64. package/dist/FullScreenDialog/index.d.ts.map +1 -0
  65. package/dist/FullScreenDialog/index.js +42 -0
  66. package/dist/Grid/index.d.ts +3 -0
  67. package/dist/Grid/index.d.ts.map +1 -0
  68. package/dist/Grid/index.js +17 -0
  69. package/dist/Grid-c1f5fe6b.js +486 -0
  70. package/dist/Grow-151a20f6.js +193 -0
  71. package/dist/HTMLElementType-ff213f3c.js +9 -0
  72. package/dist/IconButton-fdbca6d2.js +184 -0
  73. package/dist/Input/index.d.ts +7 -0
  74. package/dist/Input/index.d.ts.map +1 -0
  75. package/dist/Input/index.js +88 -0
  76. package/dist/InputAdornment-3334ace2.js +155 -0
  77. package/dist/KdpaAutoComplete-40e0949e.js +8 -0
  78. package/dist/KdpaCollapse-d9e37824.js +11 -0
  79. package/dist/KdpaFormControl-2d7c1db8.js +6 -0
  80. package/dist/KdpaIconButton-514e0d96.js +23 -0
  81. package/dist/KdpaMenuItem-085f686f.js +36 -0
  82. package/dist/KdpaSecondaryButton-14992523.js +25 -0
  83. package/dist/KeyboardArrowRight-14dbe7d6.js +12 -0
  84. package/dist/LazyDrop/index.d.ts +3 -0
  85. package/dist/LazyDrop/index.d.ts.map +1 -0
  86. package/dist/LazyDrop/index.js +839 -0
  87. package/dist/ListContext-de5072f9.js +7 -0
  88. package/dist/ListItem-2b5c2e20.js +426 -0
  89. package/dist/ListItemText-fcd66149.js +150 -0
  90. package/dist/Loading/KdpaProgress/index.d.ts +3 -0
  91. package/dist/Loading/KdpaProgress/index.d.ts.map +1 -0
  92. package/dist/Loading/KdpaProgress/index.js +56 -0
  93. package/dist/Loading/index.d.ts +6 -0
  94. package/dist/Loading/index.d.ts.map +1 -0
  95. package/dist/Loading/index.js +348 -0
  96. package/dist/MenuItem-cc037c5b.js +240 -0
  97. package/dist/Modal/index.d.ts +2 -0
  98. package/dist/Modal/index.d.ts.map +1 -0
  99. package/dist/Modal/index.js +751 -0
  100. package/dist/Modal-5f23fcfd.js +984 -0
  101. package/dist/PaginationGrid/index.d.ts +3 -0
  102. package/dist/PaginationGrid/index.d.ts.map +1 -0
  103. package/dist/PaginationGrid/index.js +60 -0
  104. package/dist/Paper-aaec61a3.js +163 -0
  105. package/dist/Pickers/index.d.ts +7 -0
  106. package/dist/Pickers/index.d.ts.map +1 -0
  107. package/dist/Pickers/index.js +14408 -0
  108. package/dist/Popper-490e6477.js +490 -0
  109. package/dist/Portal-b4f8657f.js +77 -0
  110. package/dist/Radio/index.d.ts +5 -0
  111. package/dist/Radio/index.d.ts.map +1 -0
  112. package/dist/Radio/index.js +431 -0
  113. package/dist/Segment/index.d.ts +3 -0
  114. package/dist/Segment/index.d.ts.map +1 -0
  115. package/dist/Segment/index.js +84 -0
  116. package/dist/Selects/index.d.ts +7 -0
  117. package/dist/Selects/index.d.ts.map +1 -0
  118. package/dist/Selects/index.js +66 -0
  119. package/dist/SimpleList/index.d.ts +2 -0
  120. package/dist/SimpleList/index.d.ts.map +1 -0
  121. package/dist/SimpleList/index.js +1913 -0
  122. package/dist/Skeleton-263b2beb.js +213 -0
  123. package/dist/Slide-3bc7a346.js +227 -0
  124. package/dist/Slider/index.d.ts +3 -0
  125. package/dist/Slider/index.d.ts.map +1 -0
  126. package/dist/Slider/index.js +1322 -0
  127. package/dist/SweetAlerts/index.d.ts +6 -0
  128. package/dist/SweetAlerts/index.d.ts.map +1 -0
  129. package/dist/SweetAlerts/index.js +1540 -0
  130. package/dist/Switch/index.d.ts +3 -0
  131. package/dist/Switch/index.d.ts.map +1 -0
  132. package/dist/Switch/index.js +39 -0
  133. package/dist/Switch-ef584fc0.js +302 -0
  134. package/dist/SwitchBase-c367ca3c.js +231 -0
  135. package/dist/Tabs/index.d.ts +5 -0
  136. package/dist/Tabs/index.d.ts.map +1 -0
  137. package/dist/Tabs/index.js +63 -0
  138. package/dist/Tabs-9775b0bb.js +1084 -0
  139. package/dist/TextField-b8c731e8.js +4439 -0
  140. package/dist/ThemeProvider/index.d.ts +4 -0
  141. package/dist/ThemeProvider/index.d.ts.map +1 -0
  142. package/dist/ThemeProvider/index.js +294 -0
  143. package/dist/Tooltip-4b1baf1b.js +584 -0
  144. package/dist/Tooltips/index.d.ts +3 -0
  145. package/dist/Tooltips/index.d.ts.map +1 -0
  146. package/dist/Tooltips/index.js +46 -0
  147. package/dist/TransitionGroup-196acb6a.js +185 -0
  148. package/dist/TransitionGroupContext-7435e195.js +10 -0
  149. package/dist/Transitions/index.d.ts +11 -0
  150. package/dist/Transitions/index.d.ts.map +1 -0
  151. package/dist/Transitions/index.js +34 -0
  152. package/dist/Tree/index.d.ts +3 -0
  153. package/dist/Tree/index.d.ts.map +1 -0
  154. package/dist/Tree/index.js +1447 -0
  155. package/dist/TreeSelect/index.d.ts +3 -0
  156. package/dist/TreeSelect/index.d.ts.map +1 -0
  157. package/dist/TreeSelect/index.js +6888 -0
  158. package/dist/Typography/index.d.ts +3 -0
  159. package/dist/Typography/index.d.ts.map +1 -0
  160. package/dist/Typography/index.js +14 -0
  161. package/dist/Typography-dfa51fea.js +176 -0
  162. package/dist/Uploader/index.d.ts +3 -0
  163. package/dist/Uploader/index.d.ts.map +1 -0
  164. package/dist/Uploader/index.js +81 -0
  165. package/dist/Zoom-b84bdc2b.js +163 -0
  166. package/dist/_commonjsHelpers-92157f1b.js +36 -0
  167. package/dist/assertThisInitialized-05701a63.js +8 -0
  168. package/dist/chainPropTypes-004bf492.js +8 -0
  169. package/dist/createChainedFunction-68e2a88d.js +9 -0
  170. package/dist/createSvgIcon-b80a8a41.js +182 -0
  171. package/dist/dividerClasses-99758da7.js +10 -0
  172. package/dist/elementAcceptingRef-803dfd80.js +26 -0
  173. package/dist/elementTypeAcceptingRef-6c34f16b.js +23 -0
  174. package/dist/emotion-is-prop-valid.esm-b7f48706.js +191 -0
  175. package/dist/emotion-memoize.esm-021d0d4e.js +9 -0
  176. package/dist/emotion-react.browser.esm-d563ed65.js +255 -0
  177. package/dist/exactProp-3aaa3ecc.js +13 -0
  178. package/dist/extendSxProp-f7714a31.js +30 -0
  179. package/dist/extends-393586f3.js +22 -0
  180. package/dist/formControlState-9148c46f.js +10 -0
  181. package/dist/hoist-non-react-statics.cjs-ce2f2873.js +236 -0
  182. package/dist/iconBase-800b43ff.js +63 -0
  183. package/dist/identifier-9dfe30d8.js +3320 -0
  184. package/dist/index-116f732f.js +749 -0
  185. package/dist/index-7e2d793d.js +12011 -0
  186. package/dist/index-fa965a10.js +43 -0
  187. package/dist/index.css +1 -1
  188. package/dist/index.d.ts +36 -0
  189. package/dist/index.d.ts.map +1 -0
  190. package/dist/index.esm-b78383d3.js +35 -0
  191. package/dist/isMuiElement-b88a921a.js +7 -0
  192. package/dist/jsx-runtime-944c88e2.js +631 -0
  193. package/dist/kdpaSelect-4ed993c7.js +1 -0
  194. package/dist/listItemTextClasses-d6839c02.js +10 -0
  195. package/dist/ownerDocument-5430cd5b.js +6 -0
  196. package/dist/ownerWindow-e6cc3097.js +20 -0
  197. package/dist/popper-78c6b162.js +1006 -0
  198. package/dist/refType-af1a9f54.js +5 -0
  199. package/dist/setPrototypeOf-98a00546.js +8 -0
  200. package/dist/style.css +1 -0
  201. package/dist/toPropertyKey-e295cd73.js +27 -0
  202. package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts +1 -1
  203. package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts.map +1 -1
  204. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map +1 -1
  205. package/dist/types/designerKit/components/Uploader/KdFileUploader/UploadedItems.d.ts.map +1 -1
  206. package/dist/types/designerKit/utils/typographyHelper.d.ts +1 -2
  207. package/dist/types/designerKit/utils/typographyHelper.d.ts.map +1 -1
  208. package/dist/unsupportedProp-3dbf01f6.js +9 -0
  209. package/dist/useControlled-cc2d41cb.js +31 -0
  210. package/dist/useEventCallback-fe4fd69c.js +16 -0
  211. package/dist/useForkRef-0781dda0.js +15 -0
  212. package/dist/useFormControl-af690c26.js +11 -0
  213. package/dist/useId-e7dff7be.js +19 -0
  214. package/dist/useIsFocusVisible-4693b580.js +68 -0
  215. package/dist/usePreviousProps-c1ae4548.js +10 -0
  216. package/dist/useSlotProps-f238319f.js +74 -0
  217. package/dist/useTheme-014a54ad.js +10 -0
  218. package/dist/useThemeProps-7d04a175.js +513 -0
  219. package/dist/utils-129661c6.js +370 -0
  220. package/package.json +1 -1
  221. package/dist/types/designerKit/components/Alert/Temp.d.ts +0 -3
  222. package/dist/types/designerKit/components/Alert/Temp.d.ts.map +0 -1
  223. package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts +0 -12
  224. package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts.map +0 -1
  225. package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts +0 -5
  226. package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts.map +0 -1
  227. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts +0 -9
  228. package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map +0 -1
  229. package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts +0 -53
  230. package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts.map +0 -1
  231. package/dist/types/designerKit/utils/fileUtils.d.ts +0 -19
  232. package/dist/types/designerKit/utils/fileUtils.d.ts.map +0 -1
  233. package/dist/types/designerKit/utils/useTreeHelper.d.ts +0 -17
  234. package/dist/types/designerKit/utils/useTreeHelper.d.ts.map +0 -1
@@ -0,0 +1,984 @@
1
+ import { a as oe, _ as y } from "./extends-393586f3.js";
2
+ import * as c from "react";
3
+ import { P as e, g as fe } from "./identifier-9dfe30d8.js";
4
+ import { g as be, a as me, s as te, u as he, c as ee } from "./useThemeProps-7d04a175.js";
5
+ import { j as C } from "./jsx-runtime-944c88e2.js";
6
+ import { F as Fe } from "./Fade-aabbd0cb.js";
7
+ import { o as L } from "./ownerDocument-5430cd5b.js";
8
+ import { o as ne } from "./ownerWindow-e6cc3097.js";
9
+ import { P as Se, u as Me } from "./Portal-b4f8657f.js";
10
+ import { u as ge } from "./useForkRef-0781dda0.js";
11
+ import { u as ae } from "./useEventCallback-fe4fd69c.js";
12
+ import { c as le } from "./createChainedFunction-68e2a88d.js";
13
+ import { u as ce, r as de, i as Oe } from "./useSlotProps-f238319f.js";
14
+ import { e as re } from "./elementAcceptingRef-803dfd80.js";
15
+ import { e as Ie } from "./exactProp-3aaa3ecc.js";
16
+ import { H as ye } from "./HTMLElementType-ff213f3c.js";
17
+ function we(o) {
18
+ const t = o.documentElement.clientWidth;
19
+ return Math.abs(window.innerWidth - t);
20
+ }
21
+ const Ae = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
22
+ function Be(o) {
23
+ const t = parseInt(o.getAttribute("tabindex") || "", 10);
24
+ return Number.isNaN(t) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : t;
25
+ }
26
+ function je(o) {
27
+ if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
28
+ return !1;
29
+ const t = (n) => o.ownerDocument.querySelector(`input[type="radio"]${n}`);
30
+ let r = t(`[name="${o.name}"]:checked`);
31
+ return r || (r = t(`[name="${o.name}"]`)), r !== o;
32
+ }
33
+ function De(o) {
34
+ return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || je(o));
35
+ }
36
+ function Le(o) {
37
+ const t = [], r = [];
38
+ return Array.from(o.querySelectorAll(Ae)).forEach((n, a) => {
39
+ const s = Be(n);
40
+ s === -1 || !De(n) || (s === 0 ? t.push(n) : r.push({
41
+ documentOrder: a,
42
+ tabIndex: s,
43
+ node: n
44
+ }));
45
+ }), r.sort((n, a) => n.tabIndex === a.tabIndex ? n.documentOrder - a.documentOrder : n.tabIndex - a.tabIndex).map((n) => n.node).concat(t);
46
+ }
47
+ function _e() {
48
+ return !0;
49
+ }
50
+ function G(o) {
51
+ const {
52
+ children: t,
53
+ disableAutoFocus: r = !1,
54
+ disableEnforceFocus: n = !1,
55
+ disableRestoreFocus: a = !1,
56
+ getTabbable: s = Le,
57
+ isEnabled: i = _e,
58
+ open: d
59
+ } = o, p = c.useRef(!1), T = c.useRef(null), v = c.useRef(null), m = c.useRef(null), b = c.useRef(null), k = c.useRef(!1), u = c.useRef(null), M = ge(t.ref, u), F = c.useRef(null);
60
+ c.useEffect(() => {
61
+ !d || !u.current || (k.current = !r);
62
+ }, [r, d]), c.useEffect(() => {
63
+ if (!d || !u.current)
64
+ return;
65
+ const l = L(u.current);
66
+ return u.current.contains(l.activeElement) || (u.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(`
67
+ `)), u.current.setAttribute("tabIndex", "-1")), k.current && u.current.focus()), () => {
68
+ a || (m.current && m.current.focus && (p.current = !0, m.current.focus()), m.current = null);
69
+ };
70
+ }, [d]), c.useEffect(() => {
71
+ if (!d || !u.current)
72
+ return;
73
+ const l = L(u.current), f = (R) => {
74
+ const {
75
+ current: I
76
+ } = u;
77
+ if (I !== null) {
78
+ if (!l.hasFocus() || n || !i() || p.current) {
79
+ p.current = !1;
80
+ return;
81
+ }
82
+ if (!I.contains(l.activeElement)) {
83
+ if (R && b.current !== R.target || l.activeElement !== b.current)
84
+ b.current = null;
85
+ else if (b.current !== null)
86
+ return;
87
+ if (!k.current)
88
+ return;
89
+ let N = [];
90
+ if ((l.activeElement === T.current || l.activeElement === v.current) && (N = s(u.current)), N.length > 0) {
91
+ var $, P;
92
+ const H = !!(($ = F.current) != null && $.shiftKey && ((P = F.current) == null ? void 0 : P.key) === "Tab"), w = N[0], A = N[N.length - 1];
93
+ typeof w != "string" && typeof A != "string" && (H ? A.focus() : w.focus());
94
+ } else
95
+ I.focus();
96
+ }
97
+ }
98
+ }, g = (R) => {
99
+ F.current = R, !(n || !i() || R.key !== "Tab") && l.activeElement === u.current && R.shiftKey && (p.current = !0, v.current && v.current.focus());
100
+ };
101
+ l.addEventListener("focusin", f), l.addEventListener("keydown", g, !0);
102
+ const _ = setInterval(() => {
103
+ l.activeElement && l.activeElement.tagName === "BODY" && f(null);
104
+ }, 50);
105
+ return () => {
106
+ clearInterval(_), l.removeEventListener("focusin", f), l.removeEventListener("keydown", g, !0);
107
+ };
108
+ }, [r, n, a, i, d, s]);
109
+ const O = (l) => {
110
+ m.current === null && (m.current = l.relatedTarget), k.current = !0, b.current = l.target;
111
+ const f = t.props.onFocus;
112
+ f && f(l);
113
+ }, E = (l) => {
114
+ m.current === null && (m.current = l.relatedTarget), k.current = !0;
115
+ };
116
+ return /* @__PURE__ */ C.jsxs(c.Fragment, {
117
+ children: [/* @__PURE__ */ C.jsx("div", {
118
+ tabIndex: d ? 0 : -1,
119
+ onFocus: E,
120
+ ref: T,
121
+ "data-testid": "sentinelStart"
122
+ }), /* @__PURE__ */ c.cloneElement(t, {
123
+ ref: M,
124
+ onFocus: O
125
+ }), /* @__PURE__ */ C.jsx("div", {
126
+ tabIndex: d ? 0 : -1,
127
+ onFocus: E,
128
+ ref: v,
129
+ "data-testid": "sentinelEnd"
130
+ })]
131
+ });
132
+ }
133
+ process.env.NODE_ENV !== "production" && (G.propTypes = {
134
+ // ----------------------------- Warning --------------------------------
135
+ // | These PropTypes are generated from the TypeScript type definitions |
136
+ // | To update them edit TypeScript types and run "yarn proptypes" |
137
+ // ----------------------------------------------------------------------
138
+ /**
139
+ * A single child content element.
140
+ */
141
+ children: re,
142
+ /**
143
+ * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
144
+ * replace it to the last focused element when it closes.
145
+ * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
146
+ *
147
+ * Generally this should never be set to `true` as it makes the focus trap less
148
+ * accessible to assistive technologies, like screen readers.
149
+ * @default false
150
+ */
151
+ disableAutoFocus: e.bool,
152
+ /**
153
+ * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
154
+ *
155
+ * Generally this should never be set to `true` as it makes the focus trap less
156
+ * accessible to assistive technologies, like screen readers.
157
+ * @default false
158
+ */
159
+ disableEnforceFocus: e.bool,
160
+ /**
161
+ * If `true`, the focus trap will not restore focus to previously focused element once
162
+ * focus trap is hidden or unmounted.
163
+ * @default false
164
+ */
165
+ disableRestoreFocus: e.bool,
166
+ /**
167
+ * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
168
+ * For instance, you can provide the "tabbable" npm dependency.
169
+ * @param {HTMLElement} root
170
+ */
171
+ getTabbable: e.func,
172
+ /**
173
+ * This prop extends the `open` prop.
174
+ * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
175
+ * This prop should be memoized.
176
+ * It can be used to support multiple focus trap mounted at the same time.
177
+ * @default function defaultIsEnabled(): boolean {
178
+ * return true;
179
+ * }
180
+ */
181
+ isEnabled: e.func,
182
+ /**
183
+ * If `true`, focus is locked.
184
+ */
185
+ open: e.bool.isRequired
186
+ });
187
+ process.env.NODE_ENV !== "production" && (G["propTypes"] = Ie(G.propTypes));
188
+ function $e(o) {
189
+ const t = L(o);
190
+ return t.body === o ? ne(o).innerWidth > t.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
191
+ }
192
+ function z(o, t) {
193
+ t ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
194
+ }
195
+ function ue(o) {
196
+ return parseInt(ne(o).getComputedStyle(o).paddingRight, 10) || 0;
197
+ }
198
+ function He(o) {
199
+ const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(o.tagName) !== -1, n = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
200
+ return r || n;
201
+ }
202
+ function pe(o, t, r, n, a) {
203
+ const s = [t, r, ...n];
204
+ [].forEach.call(o.children, (i) => {
205
+ const d = s.indexOf(i) === -1, p = !He(i);
206
+ d && p && z(i, a);
207
+ });
208
+ }
209
+ function Z(o, t) {
210
+ let r = -1;
211
+ return o.some((n, a) => t(n) ? (r = a, !0) : !1), r;
212
+ }
213
+ function Ue(o, t) {
214
+ const r = [], n = o.container;
215
+ if (!t.disableScrollLock) {
216
+ if ($e(n)) {
217
+ const i = we(L(n));
218
+ r.push({
219
+ value: n.style.paddingRight,
220
+ property: "padding-right",
221
+ el: n
222
+ }), n.style.paddingRight = `${ue(n) + i}px`;
223
+ const d = L(n).querySelectorAll(".mui-fixed");
224
+ [].forEach.call(d, (p) => {
225
+ r.push({
226
+ value: p.style.paddingRight,
227
+ property: "padding-right",
228
+ el: p
229
+ }), p.style.paddingRight = `${ue(p) + i}px`;
230
+ });
231
+ }
232
+ let s;
233
+ if (n.parentNode instanceof DocumentFragment)
234
+ s = L(n).body;
235
+ else {
236
+ const i = n.parentElement, d = ne(n);
237
+ s = (i == null ? void 0 : i.nodeName) === "HTML" && d.getComputedStyle(i).overflowY === "scroll" ? i : n;
238
+ }
239
+ r.push({
240
+ value: s.style.overflow,
241
+ property: "overflow",
242
+ el: s
243
+ }, {
244
+ value: s.style.overflowX,
245
+ property: "overflow-x",
246
+ el: s
247
+ }, {
248
+ value: s.style.overflowY,
249
+ property: "overflow-y",
250
+ el: s
251
+ }), s.style.overflow = "hidden";
252
+ }
253
+ return () => {
254
+ r.forEach(({
255
+ value: s,
256
+ el: i,
257
+ property: d
258
+ }) => {
259
+ s ? i.style.setProperty(d, s) : i.style.removeProperty(d);
260
+ });
261
+ };
262
+ }
263
+ function Ke(o) {
264
+ const t = [];
265
+ return [].forEach.call(o.children, (r) => {
266
+ r.getAttribute("aria-hidden") === "true" && t.push(r);
267
+ }), t;
268
+ }
269
+ class qe {
270
+ constructor() {
271
+ this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
272
+ }
273
+ add(t, r) {
274
+ let n = this.modals.indexOf(t);
275
+ if (n !== -1)
276
+ return n;
277
+ n = this.modals.length, this.modals.push(t), t.modalRef && z(t.modalRef, !1);
278
+ const a = Ke(r);
279
+ pe(r, t.mount, t.modalRef, a, !0);
280
+ const s = Z(this.containers, (i) => i.container === r);
281
+ return s !== -1 ? (this.containers[s].modals.push(t), n) : (this.containers.push({
282
+ modals: [t],
283
+ container: r,
284
+ restore: null,
285
+ hiddenSiblings: a
286
+ }), n);
287
+ }
288
+ mount(t, r) {
289
+ const n = Z(this.containers, (s) => s.modals.indexOf(t) !== -1), a = this.containers[n];
290
+ a.restore || (a.restore = Ue(a, r));
291
+ }
292
+ remove(t, r = !0) {
293
+ const n = this.modals.indexOf(t);
294
+ if (n === -1)
295
+ return n;
296
+ const a = Z(this.containers, (i) => i.modals.indexOf(t) !== -1), s = this.containers[a];
297
+ if (s.modals.splice(s.modals.indexOf(t), 1), this.modals.splice(n, 1), s.modals.length === 0)
298
+ s.restore && s.restore(), t.modalRef && z(t.modalRef, r), pe(s.container, t.mount, t.modalRef, s.hiddenSiblings, !1), this.containers.splice(a, 1);
299
+ else {
300
+ const i = s.modals[s.modals.length - 1];
301
+ i.modalRef && z(i.modalRef, !1);
302
+ }
303
+ return n;
304
+ }
305
+ isTopModal(t) {
306
+ return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
307
+ }
308
+ }
309
+ function We(o) {
310
+ return fe("MuiModal", o);
311
+ }
312
+ be("MuiModal", ["root", "hidden", "backdrop"]);
313
+ const Ve = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"], ze = (o) => {
314
+ const {
315
+ open: t,
316
+ exited: r
317
+ } = o;
318
+ return me({
319
+ root: ["root", !t && r && "hidden"],
320
+ backdrop: ["backdrop"]
321
+ }, Me(We));
322
+ };
323
+ function Ye(o) {
324
+ return typeof o == "function" ? o() : o;
325
+ }
326
+ function Ge(o) {
327
+ return o ? o.props.hasOwnProperty("in") : !1;
328
+ }
329
+ const Xe = new qe(), Te = /* @__PURE__ */ c.forwardRef(function(t, r) {
330
+ var n, a;
331
+ const {
332
+ children: s,
333
+ closeAfterTransition: i = !1,
334
+ container: d,
335
+ disableAutoFocus: p = !1,
336
+ disableEnforceFocus: T = !1,
337
+ disableEscapeKeyDown: v = !1,
338
+ disablePortal: m = !1,
339
+ disableRestoreFocus: b = !1,
340
+ disableScrollLock: k = !1,
341
+ hideBackdrop: u = !1,
342
+ keepMounted: M = !1,
343
+ // private
344
+ manager: F = Xe,
345
+ onBackdropClick: O,
346
+ onClose: E,
347
+ onKeyDown: l,
348
+ open: f,
349
+ onTransitionEnter: g,
350
+ onTransitionExited: _,
351
+ slotProps: R = {},
352
+ slots: I = {}
353
+ } = t, $ = oe(t, Ve), P = F, [N, H] = c.useState(!f), w = c.useRef({}), A = c.useRef(null), x = c.useRef(null), U = ge(x, r), K = Ge(s), W = (n = t["aria-hidden"]) != null ? n : !0, X = () => L(A.current), B = () => (w.current.modalRef = x.current, w.current.mountNode = A.current, w.current), V = () => {
354
+ P.mount(B(), {
355
+ disableScrollLock: k
356
+ }), x.current && (x.current.scrollTop = 0);
357
+ }, j = ae(() => {
358
+ const h = Ye(d) || X().body;
359
+ P.add(B(), h), x.current && V();
360
+ }), q = c.useCallback(() => P.isTopModal(B()), [P]), J = ae((h) => {
361
+ A.current = h, !(!h || !x.current) && (f && q() ? V() : z(x.current, W));
362
+ }), S = c.useCallback(() => {
363
+ P.remove(B(), W);
364
+ }, [P, W]);
365
+ c.useEffect(() => () => {
366
+ S();
367
+ }, [S]), c.useEffect(() => {
368
+ f ? j() : (!K || !i) && S();
369
+ }, [f, S, K, i, j]);
370
+ const D = y({}, t, {
371
+ closeAfterTransition: i,
372
+ disableAutoFocus: p,
373
+ disableEnforceFocus: T,
374
+ disableEscapeKeyDown: v,
375
+ disablePortal: m,
376
+ disableRestoreFocus: b,
377
+ disableScrollLock: k,
378
+ exited: N,
379
+ hideBackdrop: u,
380
+ keepMounted: M
381
+ }), se = ze(D), xe = () => {
382
+ H(!1), g && g();
383
+ }, ve = () => {
384
+ H(!0), _ && _(), i && S();
385
+ }, Re = (h) => {
386
+ h.target === h.currentTarget && (O && O(h), E && E(h, "backdropClick"));
387
+ }, Pe = (h) => {
388
+ l && l(h), !(h.key !== "Escape" || !q()) && (v || (h.stopPropagation(), E && E(h, "escapeKeyDown")));
389
+ }, Y = {};
390
+ s.props.tabIndex === void 0 && (Y.tabIndex = "-1"), K && (Y.onEnter = le(xe, s.props.onEnter), Y.onExited = le(ve, s.props.onExited));
391
+ const ie = (a = I.root) != null ? a : "div", Ne = ce({
392
+ elementType: ie,
393
+ externalSlotProps: R.root,
394
+ externalForwardedProps: $,
395
+ additionalProps: {
396
+ ref: U,
397
+ role: "presentation",
398
+ onKeyDown: Pe
399
+ },
400
+ className: se.root,
401
+ ownerState: D
402
+ }), Q = I.backdrop, Ce = ce({
403
+ elementType: Q,
404
+ externalSlotProps: R.backdrop,
405
+ additionalProps: {
406
+ "aria-hidden": !0,
407
+ onClick: Re,
408
+ open: f
409
+ },
410
+ className: se.backdrop,
411
+ ownerState: D
412
+ });
413
+ return !M && !f && (!K || N) ? null : /* @__PURE__ */ C.jsx(
414
+ Se,
415
+ {
416
+ ref: J,
417
+ container: d,
418
+ disablePortal: m,
419
+ children: /* @__PURE__ */ C.jsxs(ie, y({}, Ne, {
420
+ children: [!u && Q ? /* @__PURE__ */ C.jsx(Q, y({}, Ce)) : null, /* @__PURE__ */ C.jsx(G, {
421
+ disableEnforceFocus: T,
422
+ disableAutoFocus: p,
423
+ disableRestoreFocus: b,
424
+ isEnabled: q,
425
+ open: f,
426
+ children: /* @__PURE__ */ c.cloneElement(s, Y)
427
+ })]
428
+ }))
429
+ }
430
+ );
431
+ });
432
+ process.env.NODE_ENV !== "production" && (Te.propTypes = {
433
+ // ----------------------------- Warning --------------------------------
434
+ // | These PropTypes are generated from the TypeScript type definitions |
435
+ // | To update them edit TypeScript types and run "yarn proptypes" |
436
+ // ----------------------------------------------------------------------
437
+ /**
438
+ * A single child content element.
439
+ */
440
+ children: re.isRequired,
441
+ /**
442
+ * When set to true the Modal waits until a nested Transition is completed before closing.
443
+ * @default false
444
+ */
445
+ closeAfterTransition: e.bool,
446
+ /**
447
+ * An HTML element or function that returns one.
448
+ * The `container` will have the portal children appended to it.
449
+ *
450
+ * By default, it uses the body of the top-level document object,
451
+ * so it's simply `document.body` most of the time.
452
+ */
453
+ container: e.oneOfType([ye, e.func]),
454
+ /**
455
+ * If `true`, the modal will not automatically shift focus to itself when it opens, and
456
+ * replace it to the last focused element when it closes.
457
+ * This also works correctly with any modal children that have the `disableAutoFocus` prop.
458
+ *
459
+ * Generally this should never be set to `true` as it makes the modal less
460
+ * accessible to assistive technologies, like screen readers.
461
+ * @default false
462
+ */
463
+ disableAutoFocus: e.bool,
464
+ /**
465
+ * If `true`, the modal will not prevent focus from leaving the modal while open.
466
+ *
467
+ * Generally this should never be set to `true` as it makes the modal less
468
+ * accessible to assistive technologies, like screen readers.
469
+ * @default false
470
+ */
471
+ disableEnforceFocus: e.bool,
472
+ /**
473
+ * If `true`, hitting escape will not fire the `onClose` callback.
474
+ * @default false
475
+ */
476
+ disableEscapeKeyDown: e.bool,
477
+ /**
478
+ * The `children` will be under the DOM hierarchy of the parent component.
479
+ * @default false
480
+ */
481
+ disablePortal: e.bool,
482
+ /**
483
+ * If `true`, the modal will not restore focus to previously focused element once
484
+ * modal is hidden or unmounted.
485
+ * @default false
486
+ */
487
+ disableRestoreFocus: e.bool,
488
+ /**
489
+ * Disable the scroll lock behavior.
490
+ * @default false
491
+ */
492
+ disableScrollLock: e.bool,
493
+ /**
494
+ * If `true`, the backdrop is not rendered.
495
+ * @default false
496
+ */
497
+ hideBackdrop: e.bool,
498
+ /**
499
+ * Always keep the children in the DOM.
500
+ * This prop can be useful in SEO situation or
501
+ * when you want to maximize the responsiveness of the Modal.
502
+ * @default false
503
+ */
504
+ keepMounted: e.bool,
505
+ /**
506
+ * Callback fired when the backdrop is clicked.
507
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
508
+ */
509
+ onBackdropClick: e.func,
510
+ /**
511
+ * Callback fired when the component requests to be closed.
512
+ * The `reason` parameter can optionally be used to control the response to `onClose`.
513
+ *
514
+ * @param {object} event The event source of the callback.
515
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
516
+ */
517
+ onClose: e.func,
518
+ /**
519
+ * If `true`, the component is shown.
520
+ */
521
+ open: e.bool.isRequired,
522
+ /**
523
+ * The props used for each slot inside the Modal.
524
+ * @default {}
525
+ */
526
+ slotProps: e.shape({
527
+ backdrop: e.oneOfType([e.func, e.object]),
528
+ root: e.oneOfType([e.func, e.object])
529
+ }),
530
+ /**
531
+ * The components used for each slot inside the Modal.
532
+ * Either a string to use a HTML element or a component.
533
+ * @default {}
534
+ */
535
+ slots: e.shape({
536
+ backdrop: e.elementType,
537
+ root: e.elementType
538
+ })
539
+ });
540
+ const Je = Te;
541
+ function Qe(o) {
542
+ return fe("MuiBackdrop", o);
543
+ }
544
+ be("MuiBackdrop", ["root", "invisible"]);
545
+ const Ze = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], eo = (o) => {
546
+ const {
547
+ classes: t,
548
+ invisible: r
549
+ } = o;
550
+ return me({
551
+ root: ["root", r && "invisible"]
552
+ }, Qe, t);
553
+ }, oo = te("div", {
554
+ name: "MuiBackdrop",
555
+ slot: "Root",
556
+ overridesResolver: (o, t) => {
557
+ const {
558
+ ownerState: r
559
+ } = o;
560
+ return [t.root, r.invisible && t.invisible];
561
+ }
562
+ })(({
563
+ ownerState: o
564
+ }) => y({
565
+ position: "fixed",
566
+ display: "flex",
567
+ alignItems: "center",
568
+ justifyContent: "center",
569
+ right: 0,
570
+ bottom: 0,
571
+ top: 0,
572
+ left: 0,
573
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
574
+ WebkitTapHighlightColor: "transparent"
575
+ }, o.invisible && {
576
+ backgroundColor: "transparent"
577
+ })), ke = /* @__PURE__ */ c.forwardRef(function(t, r) {
578
+ var n, a, s;
579
+ const i = he({
580
+ props: t,
581
+ name: "MuiBackdrop"
582
+ }), {
583
+ children: d,
584
+ className: p,
585
+ component: T = "div",
586
+ components: v = {},
587
+ componentsProps: m = {},
588
+ invisible: b = !1,
589
+ open: k,
590
+ slotProps: u = {},
591
+ slots: M = {},
592
+ TransitionComponent: F = Fe,
593
+ transitionDuration: O
594
+ } = i, E = oe(i, Ze), l = y({}, i, {
595
+ component: T,
596
+ invisible: b
597
+ }), f = eo(l), g = (n = u.root) != null ? n : m.root;
598
+ return /* @__PURE__ */ C.jsx(F, y({
599
+ in: k,
600
+ timeout: O
601
+ }, E, {
602
+ children: /* @__PURE__ */ C.jsx(oo, y({
603
+ "aria-hidden": !0
604
+ }, g, {
605
+ as: (a = (s = M.root) != null ? s : v.Root) != null ? a : T,
606
+ className: ee(f.root, p, g == null ? void 0 : g.className),
607
+ ownerState: y({}, l, g == null ? void 0 : g.ownerState),
608
+ classes: f,
609
+ ref: r,
610
+ children: d
611
+ }))
612
+ }));
613
+ });
614
+ process.env.NODE_ENV !== "production" && (ke.propTypes = {
615
+ // ----------------------------- Warning --------------------------------
616
+ // | These PropTypes are generated from the TypeScript type definitions |
617
+ // | To update them edit the d.ts file and run "yarn proptypes" |
618
+ // ----------------------------------------------------------------------
619
+ /**
620
+ * The content of the component.
621
+ */
622
+ children: e.node,
623
+ /**
624
+ * Override or extend the styles applied to the component.
625
+ */
626
+ classes: e.object,
627
+ /**
628
+ * @ignore
629
+ */
630
+ className: e.string,
631
+ /**
632
+ * The component used for the root node.
633
+ * Either a string to use a HTML element or a component.
634
+ */
635
+ component: e.elementType,
636
+ /**
637
+ * The components used for each slot inside.
638
+ *
639
+ * This prop is an alias for the `slots` prop.
640
+ * It's recommended to use the `slots` prop instead.
641
+ *
642
+ * @default {}
643
+ */
644
+ components: e.shape({
645
+ Root: e.elementType
646
+ }),
647
+ /**
648
+ * The extra props for the slot components.
649
+ * You can override the existing props or add new ones.
650
+ *
651
+ * This prop is an alias for the `slotProps` prop.
652
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
653
+ *
654
+ * @default {}
655
+ */
656
+ componentsProps: e.shape({
657
+ root: e.object
658
+ }),
659
+ /**
660
+ * If `true`, the backdrop is invisible.
661
+ * It can be used when rendering a popover or a custom select component.
662
+ * @default false
663
+ */
664
+ invisible: e.bool,
665
+ /**
666
+ * If `true`, the component is shown.
667
+ */
668
+ open: e.bool.isRequired,
669
+ /**
670
+ * The extra props for the slot components.
671
+ * You can override the existing props or add new ones.
672
+ *
673
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
674
+ *
675
+ * @default {}
676
+ */
677
+ slotProps: e.shape({
678
+ root: e.object
679
+ }),
680
+ /**
681
+ * The components used for each slot inside.
682
+ *
683
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
684
+ *
685
+ * @default {}
686
+ */
687
+ slots: e.shape({
688
+ root: e.elementType
689
+ }),
690
+ /**
691
+ * The system prop that allows defining system overrides as well as additional CSS styles.
692
+ */
693
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
694
+ /**
695
+ * The component used for the transition.
696
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
697
+ * @default Fade
698
+ */
699
+ TransitionComponent: e.elementType,
700
+ /**
701
+ * The duration for the transition, in milliseconds.
702
+ * You may specify a single timeout for all transitions, or individually with an object.
703
+ */
704
+ transitionDuration: e.oneOfType([e.number, e.shape({
705
+ appear: e.number,
706
+ enter: e.number,
707
+ exit: e.number
708
+ })])
709
+ });
710
+ const to = ke, no = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"], ro = te("div", {
711
+ name: "MuiModal",
712
+ slot: "Root",
713
+ overridesResolver: (o, t) => {
714
+ const {
715
+ ownerState: r
716
+ } = o;
717
+ return [t.root, !r.open && r.exited && t.hidden];
718
+ }
719
+ })(({
720
+ theme: o,
721
+ ownerState: t
722
+ }) => y({
723
+ position: "fixed",
724
+ zIndex: (o.vars || o).zIndex.modal,
725
+ right: 0,
726
+ bottom: 0,
727
+ top: 0,
728
+ left: 0
729
+ }, !t.open && t.exited && {
730
+ visibility: "hidden"
731
+ })), so = te(to, {
732
+ name: "MuiModal",
733
+ slot: "Backdrop",
734
+ overridesResolver: (o, t) => t.backdrop
735
+ })({
736
+ zIndex: -1
737
+ }), Ee = /* @__PURE__ */ c.forwardRef(function(t, r) {
738
+ var n, a, s, i, d, p;
739
+ const T = he({
740
+ name: "MuiModal",
741
+ props: t
742
+ }), {
743
+ BackdropComponent: v = so,
744
+ BackdropProps: m,
745
+ classes: b,
746
+ className: k,
747
+ closeAfterTransition: u = !1,
748
+ children: M,
749
+ container: F,
750
+ component: O,
751
+ components: E = {},
752
+ componentsProps: l = {},
753
+ disableAutoFocus: f = !1,
754
+ disableEnforceFocus: g = !1,
755
+ disableEscapeKeyDown: _ = !1,
756
+ disablePortal: R = !1,
757
+ disableRestoreFocus: I = !1,
758
+ disableScrollLock: $ = !1,
759
+ hideBackdrop: P = !1,
760
+ keepMounted: N = !1,
761
+ onBackdropClick: H,
762
+ onClose: w,
763
+ open: A,
764
+ slotProps: x,
765
+ slots: U,
766
+ // eslint-disable-next-line react/prop-types
767
+ theme: K
768
+ } = T, W = oe(T, no), [X, B] = c.useState(!0), V = {
769
+ container: F,
770
+ closeAfterTransition: u,
771
+ disableAutoFocus: f,
772
+ disableEnforceFocus: g,
773
+ disableEscapeKeyDown: _,
774
+ disablePortal: R,
775
+ disableRestoreFocus: I,
776
+ disableScrollLock: $,
777
+ hideBackdrop: P,
778
+ keepMounted: N,
779
+ onBackdropClick: H,
780
+ onClose: w,
781
+ open: A
782
+ }, j = y({}, T, V, {
783
+ exited: X
784
+ }), q = (n = (a = U == null ? void 0 : U.root) != null ? a : E.Root) != null ? n : ro, J = (s = (i = U == null ? void 0 : U.backdrop) != null ? i : E.Backdrop) != null ? s : v, S = (d = x == null ? void 0 : x.root) != null ? d : l.root, D = (p = x == null ? void 0 : x.backdrop) != null ? p : l.backdrop;
785
+ return /* @__PURE__ */ C.jsx(Je, y({
786
+ slots: {
787
+ root: q,
788
+ backdrop: J
789
+ },
790
+ slotProps: {
791
+ root: () => y({}, de(S, j), !Oe(q) && {
792
+ as: O,
793
+ theme: K
794
+ }, {
795
+ className: ee(k, S == null ? void 0 : S.className, b == null ? void 0 : b.root, !j.open && j.exited && (b == null ? void 0 : b.hidden))
796
+ }),
797
+ backdrop: () => y({}, m, de(D, j), {
798
+ className: ee(D == null ? void 0 : D.className, b == null ? void 0 : b.backdrop)
799
+ })
800
+ },
801
+ onTransitionEnter: () => B(!1),
802
+ onTransitionExited: () => B(!0),
803
+ ref: r
804
+ }, W, V, {
805
+ children: M
806
+ }));
807
+ });
808
+ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
809
+ // ----------------------------- Warning --------------------------------
810
+ // | These PropTypes are generated from the TypeScript type definitions |
811
+ // | To update them edit the d.ts file and run "yarn proptypes" |
812
+ // ----------------------------------------------------------------------
813
+ /**
814
+ * A backdrop component. This prop enables custom backdrop rendering.
815
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
816
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
817
+ * @default styled(Backdrop, {
818
+ * name: 'MuiModal',
819
+ * slot: 'Backdrop',
820
+ * overridesResolver: (props, styles) => {
821
+ * return styles.backdrop;
822
+ * },
823
+ * })({
824
+ * zIndex: -1,
825
+ * })
826
+ */
827
+ BackdropComponent: e.elementType,
828
+ /**
829
+ * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
830
+ * @deprecated Use `slotProps.backdrop` instead.
831
+ */
832
+ BackdropProps: e.object,
833
+ /**
834
+ * A single child content element.
835
+ */
836
+ children: re.isRequired,
837
+ /**
838
+ * Override or extend the styles applied to the component.
839
+ */
840
+ classes: e.object,
841
+ /**
842
+ * @ignore
843
+ */
844
+ className: e.string,
845
+ /**
846
+ * When set to true the Modal waits until a nested Transition is completed before closing.
847
+ * @default false
848
+ */
849
+ closeAfterTransition: e.bool,
850
+ /**
851
+ * The component used for the root node.
852
+ * Either a string to use a HTML element or a component.
853
+ */
854
+ component: e.elementType,
855
+ /**
856
+ * The components used for each slot inside.
857
+ *
858
+ * This prop is an alias for the `slots` prop.
859
+ * It's recommended to use the `slots` prop instead.
860
+ *
861
+ * @default {}
862
+ */
863
+ components: e.shape({
864
+ Backdrop: e.elementType,
865
+ Root: e.elementType
866
+ }),
867
+ /**
868
+ * The extra props for the slot components.
869
+ * You can override the existing props or add new ones.
870
+ *
871
+ * This prop is an alias for the `slotProps` prop.
872
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
873
+ *
874
+ * @default {}
875
+ */
876
+ componentsProps: e.shape({
877
+ backdrop: e.oneOfType([e.func, e.object]),
878
+ root: e.oneOfType([e.func, e.object])
879
+ }),
880
+ /**
881
+ * An HTML element or function that returns one.
882
+ * The `container` will have the portal children appended to it.
883
+ *
884
+ * By default, it uses the body of the top-level document object,
885
+ * so it's simply `document.body` most of the time.
886
+ */
887
+ container: e.oneOfType([ye, e.func]),
888
+ /**
889
+ * If `true`, the modal will not automatically shift focus to itself when it opens, and
890
+ * replace it to the last focused element when it closes.
891
+ * This also works correctly with any modal children that have the `disableAutoFocus` prop.
892
+ *
893
+ * Generally this should never be set to `true` as it makes the modal less
894
+ * accessible to assistive technologies, like screen readers.
895
+ * @default false
896
+ */
897
+ disableAutoFocus: e.bool,
898
+ /**
899
+ * If `true`, the modal will not prevent focus from leaving the modal while open.
900
+ *
901
+ * Generally this should never be set to `true` as it makes the modal less
902
+ * accessible to assistive technologies, like screen readers.
903
+ * @default false
904
+ */
905
+ disableEnforceFocus: e.bool,
906
+ /**
907
+ * If `true`, hitting escape will not fire the `onClose` callback.
908
+ * @default false
909
+ */
910
+ disableEscapeKeyDown: e.bool,
911
+ /**
912
+ * The `children` will be under the DOM hierarchy of the parent component.
913
+ * @default false
914
+ */
915
+ disablePortal: e.bool,
916
+ /**
917
+ * If `true`, the modal will not restore focus to previously focused element once
918
+ * modal is hidden or unmounted.
919
+ * @default false
920
+ */
921
+ disableRestoreFocus: e.bool,
922
+ /**
923
+ * Disable the scroll lock behavior.
924
+ * @default false
925
+ */
926
+ disableScrollLock: e.bool,
927
+ /**
928
+ * If `true`, the backdrop is not rendered.
929
+ * @default false
930
+ */
931
+ hideBackdrop: e.bool,
932
+ /**
933
+ * Always keep the children in the DOM.
934
+ * This prop can be useful in SEO situation or
935
+ * when you want to maximize the responsiveness of the Modal.
936
+ * @default false
937
+ */
938
+ keepMounted: e.bool,
939
+ /**
940
+ * Callback fired when the backdrop is clicked.
941
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
942
+ */
943
+ onBackdropClick: e.func,
944
+ /**
945
+ * Callback fired when the component requests to be closed.
946
+ * The `reason` parameter can optionally be used to control the response to `onClose`.
947
+ *
948
+ * @param {object} event The event source of the callback.
949
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
950
+ */
951
+ onClose: e.func,
952
+ /**
953
+ * If `true`, the component is shown.
954
+ */
955
+ open: e.bool.isRequired,
956
+ /**
957
+ * The props used for each slot inside the Modal.
958
+ * @default {}
959
+ */
960
+ slotProps: e.shape({
961
+ backdrop: e.oneOfType([e.func, e.object]),
962
+ root: e.oneOfType([e.func, e.object])
963
+ }),
964
+ /**
965
+ * The components used for each slot inside the Modal.
966
+ * Either a string to use a HTML element or a component.
967
+ * @default {}
968
+ */
969
+ slots: e.shape({
970
+ backdrop: e.elementType,
971
+ root: e.elementType
972
+ }),
973
+ /**
974
+ * The system prop that allows defining system overrides as well as additional CSS styles.
975
+ */
976
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
977
+ });
978
+ const xo = Ee;
979
+ export {
980
+ to as B,
981
+ G as F,
982
+ xo as M,
983
+ we as g
984
+ };