@hybridcore/ui 1.6.0 → 1.6.2

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 (291) hide show
  1. package/CATALOG.md +179 -0
  2. package/README.md +1 -2
  3. package/dist/AccordionSummary-CJppWeqF.js +781 -0
  4. package/dist/Add-CqcD1PWb.js +403 -0
  5. package/dist/Box-DqUMmZjL.js +31 -0
  6. package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
  12. package/dist/InputLabel-Dd8RrneV.js +341 -0
  13. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
  14. package/dist/Modal-MUZygjmQ.js +1158 -0
  15. package/dist/Paper-BkQLdsCI.js +582 -0
  16. package/dist/Select-DHUl_uG3.js +3916 -0
  17. package/dist/SwitchBase-DTndTqI8.js +235 -0
  18. package/dist/TextField-e2oKaUN1.js +669 -0
  19. package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
  20. package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
  21. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  22. package/dist/assets/index4.css +1 -0
  23. package/dist/clsx-OuTLNxxd.js +16 -0
  24. package/dist/components/access/helpers.js +1 -1
  25. package/dist/components/access/index.js +8 -15
  26. package/dist/components/access/logic.js +25 -0
  27. package/dist/components/button/index.js +10 -0
  28. package/dist/components/button/logic.js +26 -0
  29. package/dist/components/button/styled.js +9 -0
  30. package/dist/components/card/index.js +158 -498
  31. package/dist/components/card/logic.js +24 -0
  32. package/dist/components/card/styled.js +226 -51
  33. package/dist/components/card-alternate/index.js +111 -139
  34. package/dist/components/card-alternate/logic.js +17 -0
  35. package/dist/components/card-alternate/styled.js +113 -19
  36. package/dist/components/charts/_common/chart-error.js +19 -0
  37. package/dist/components/charts/candlestick/index.js +3 -3
  38. package/dist/components/charts/candlestick/logic.js +123 -113
  39. package/dist/components/charts/chart-wrapper/index.js +5 -5
  40. package/dist/components/charts/column-line-mix/index.js +9 -8
  41. package/dist/components/charts/column-line-mix/logic.js +68 -71
  42. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  43. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  44. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  45. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  46. package/dist/components/charts/heatmap/index.js +9 -8
  47. package/dist/components/charts/heatmap/logic.js +167 -173
  48. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  49. package/dist/components/charts/line/index.js +9 -8
  50. package/dist/components/charts/line/logic.js +74 -79
  51. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  52. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  53. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  54. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  55. package/dist/components/charts/nested-pie/index.js +9 -8
  56. package/dist/components/charts/nested-pie/logic.js +62 -68
  57. package/dist/components/charts/packed-circles/index.js +7 -6
  58. package/dist/components/charts/packed-circles/logic.js +50 -56
  59. package/dist/components/charts/pie-chart/index.js +9 -8
  60. package/dist/components/charts/pie-chart/logic.js +49 -54
  61. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  62. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  63. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  64. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  65. package/dist/components/charts/xy-chart/index.js +9 -8
  66. package/dist/components/charts/xy-chart/logic.js +56 -60
  67. package/dist/components/collapsible-card/index.js +11 -10
  68. package/dist/components/collapsible-card/styled.js +1 -1
  69. package/dist/components/color-picker/index.js +7120 -0
  70. package/dist/components/color-picker/logic.js +18 -0
  71. package/dist/components/color-picker/styled.js +7 -0
  72. package/dist/components/confirm/dialog.js +3 -3
  73. package/dist/components/confirm/index.js +1 -1
  74. package/dist/components/container/index.js +28 -269
  75. package/dist/components/container/logic.js +12 -0
  76. package/dist/components/container/styled.js +29 -0
  77. package/dist/components/context-menu/index.js +25 -457
  78. package/dist/components/context-menu/logic.js +14 -0
  79. package/dist/components/context-menu/styled.js +40 -0
  80. package/dist/components/data-grid/index.js +22 -0
  81. package/dist/components/data-grid/logic.js +15 -0
  82. package/dist/components/data-grid/styled.js +20 -0
  83. package/dist/components/data-map/components/controls/index.js +4 -6
  84. package/dist/components/data-map/index.js +11 -11
  85. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  86. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  87. package/dist/components/data-security-selectors/security-level/index.js +39 -91
  88. package/dist/components/data-security-selectors/security-level/logic.js +28 -0
  89. package/dist/components/data-security-selectors/security-level/styled.js +53 -0
  90. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  91. package/dist/components/date-range-picker/index.js +2748 -0
  92. package/dist/components/date-range-picker/styled.js +14 -0
  93. package/dist/components/date-time-picker/index.js +45 -46
  94. package/dist/components/divider/index.js +11 -11
  95. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  96. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  97. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  98. package/dist/components/document-viewer/index.js +31 -39
  99. package/dist/components/document-viewer/logic.js +41 -34
  100. package/dist/components/document-viewer/styled.js +115 -27
  101. package/dist/components/duration-select/index.js +27 -0
  102. package/dist/components/duration-select/logic.js +21 -0
  103. package/dist/components/duration-select/styled.js +26 -0
  104. package/dist/components/editable-text/index.js +20 -0
  105. package/dist/components/editable-text/logic.js +18 -0
  106. package/dist/components/editable-text/styled.js +22 -0
  107. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  108. package/dist/components/geometry-picker/edit/index.js +18 -18
  109. package/dist/components/geometry-picker/geometry/index.js +67 -67
  110. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  111. package/dist/components/geometry-picker/index.js +69 -85
  112. package/dist/components/geometry-picker/kml/index.js +16 -16
  113. package/dist/components/geometry-picker/logic.js +50 -57
  114. package/dist/components/geometry-picker/map/index.js +8 -8
  115. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  116. package/dist/components/geometry-picker/parser/index.js +46 -50
  117. package/dist/components/geometry-picker/parser/styled.js +22 -4
  118. package/dist/components/geometry-picker/styled.js +97 -37
  119. package/dist/components/geometry-picker/wkt/index.js +13 -13
  120. package/dist/components/heat-map/components/controls/index.js +4 -6
  121. package/dist/components/heat-map/components/legend/index.js +15 -17
  122. package/dist/components/heat-map/index.js +7 -7
  123. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  124. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  125. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  126. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  127. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  128. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  129. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  130. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  131. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  132. package/dist/components/instance-form/components/variable/index.js +6 -11
  133. package/dist/components/instance-form/components/variables/index.js +48 -55
  134. package/dist/components/instance-form/helpers.js +9 -0
  135. package/dist/components/instance-form/index.js +402 -518
  136. package/dist/components/instance-form/logic.js +115 -0
  137. package/dist/components/instance-form/styled.js +487 -0
  138. package/dist/components/instance-hierarchy-table/index.js +32 -37
  139. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  140. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  141. package/dist/components/instance-table/index.js +30 -135
  142. package/dist/components/instance-table/logic.js +122 -0
  143. package/dist/components/instance-table/styled.js +53 -11
  144. package/dist/components/instance-variable-list/index.js +11 -11
  145. package/dist/components/loading/index.js +15 -9
  146. package/dist/components/loading/logic.js +15 -0
  147. package/dist/components/loading/styled.js +26 -19
  148. package/dist/components/map/index.js +28 -6
  149. package/dist/components/map/styled.js +1 -1
  150. package/dist/components/notification/index.js +67 -0
  151. package/dist/components/notification/logic.js +30 -0
  152. package/dist/components/notification/store.js +23 -0
  153. package/dist/components/notification/styled.js +52 -0
  154. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  155. package/dist/components/object-profile-card/index.js +19 -20
  156. package/dist/components/paginated-list/index.js +2 -3
  157. package/dist/components/phone-input/index.js +18 -22
  158. package/dist/components/phone-input/logic.js +14 -0
  159. package/dist/components/phone-input/styled.js +12 -4
  160. package/dist/components/placeholder/index.js +10 -0
  161. package/dist/components/placeholder/logic.js +12 -0
  162. package/dist/components/placeholder/styled.js +32 -0
  163. package/dist/components/positional-tooltip/index.js +24 -0
  164. package/dist/components/positional-tooltip/styled.js +17 -0
  165. package/dist/components/property-mapping/index.js +204 -423
  166. package/dist/components/property-mapping/logic.js +156 -0
  167. package/dist/components/property-mapping/styled.js +199 -0
  168. package/dist/components/prr-map/components/controls/index.js +4 -6
  169. package/dist/components/prr-map/components/legend/index.js +26 -28
  170. package/dist/components/prr-map/index.js +5 -5
  171. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  172. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  173. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  174. package/dist/components/range-selector/components/number-range/index.js +48 -53
  175. package/dist/components/range-selector/components/string-range/index.js +15 -17
  176. package/dist/components/range-selector/index.js +63 -57
  177. package/dist/components/range-selector/logic.js +12 -0
  178. package/dist/components/range-selector/styled.js +4294 -0
  179. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  180. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  181. package/dist/components/raster-grid-map/index.js +5 -5
  182. package/dist/components/scroll-drag/index.js +22 -0
  183. package/dist/components/scroll-drag/logic.js +39 -0
  184. package/dist/components/scroll-drag/styled.js +17 -0
  185. package/dist/components/search-input/logic.js +35 -33
  186. package/dist/components/simple-pivot-table/index.js +12 -12
  187. package/dist/components/sortable-list/index.js +599 -0
  188. package/dist/components/sortable-list/logic.js +18 -0
  189. package/dist/components/sortable-list/styled.js +38 -0
  190. package/dist/components/static-text/index.js +6 -6
  191. package/dist/components/stats-box/index.js +12 -0
  192. package/dist/components/stats-box/styled.js +36 -0
  193. package/dist/components/template-filters/components/filter/index.js +13 -18
  194. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  195. package/dist/components/template-filters/index.js +21 -29
  196. package/dist/components/template-filters/logic.js +18 -0
  197. package/dist/components/template-filters/styled.js +44 -1
  198. package/dist/components/template-form/components/property-list/index.js +27 -26
  199. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  200. package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
  201. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  202. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  203. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
  204. package/dist/components/template-form/components/select-icon/index.js +24 -24
  205. package/dist/components/template-form/helpers.js +17 -0
  206. package/dist/components/template-form/index.js +270 -309
  207. package/dist/components/template-form/logic.js +69 -0
  208. package/dist/components/template-form/styled.js +84 -0
  209. package/dist/components/template-property-filters/index.js +45 -95
  210. package/dist/components/template-property-filters/logic.js +27 -0
  211. package/dist/components/template-property-filters/property.js +105 -165
  212. package/dist/components/template-property-filters/styled.js +121 -20
  213. package/dist/components/text-overflow/index.js +6 -0
  214. package/dist/components/text-overflow/styled.js +13 -0
  215. package/dist/components/timeline/index.js +12 -12
  216. package/dist/components/toggle-view-button/index.js +35 -0
  217. package/dist/components/toggle-view-button/logic.js +22 -0
  218. package/dist/components/toggle-view-button/styled.js +11 -0
  219. package/dist/components/tree-select/index.js +52 -67
  220. package/dist/components/tree-select/logic.js +59 -0
  221. package/dist/components/tree-select/styled.js +45 -62
  222. package/dist/components/treeview-filter/index.js +43 -65
  223. package/dist/components/treeview-filter/item/index.js +43 -42
  224. package/dist/components/treeview-filter/item-label/index.js +17 -37
  225. package/dist/components/treeview-filter/logic.js +28 -0
  226. package/dist/components/treeview-filter/styled.js +86 -0
  227. package/dist/components/uploader/index.js +532 -567
  228. package/dist/components/uploader/logic.js +74 -0
  229. package/dist/components/uploader/styled.js +93 -46
  230. package/dist/components/visually-hidden-input/index.js +4 -0
  231. package/dist/components/visually-hidden-input/styled.js +18 -0
  232. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  233. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
  234. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  235. package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
  236. package/dist/formControlState-vgaj2ksH.js +10 -0
  237. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  238. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  239. package/dist/index-BtlzPygz.js +470 -0
  240. package/dist/index-DH6qsPBn.js +153 -0
  241. package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
  242. package/dist/main.d.ts +1722 -562
  243. package/dist/main.js +161 -128
  244. package/dist/ownerWindow-wg6foiOE.js +10 -0
  245. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  246. package/dist/styled-Db1RdcPA.js +323 -0
  247. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  248. package/dist/useId-BW-oWmul.js +19 -0
  249. package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
  250. package/dist/useSlot-B_Q4vnX5.js +42 -0
  251. package/package.json +15 -7
  252. package/dist/AccordionSummary-DgAwVTk8.js +0 -742
  253. package/dist/Add-DJLrrVHm.js +0 -382
  254. package/dist/Box-p6OtTUEo.js +0 -30
  255. package/dist/ButtonBase-2bPw77UP.js +0 -961
  256. package/dist/CardContent-CSHh-ZlM.js +0 -74
  257. package/dist/Checkbox-CWRMFTBp.js +0 -421
  258. package/dist/FormControl-BLbrq4C7.js +0 -1636
  259. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  260. package/dist/InputAdornment-DLxWUE6H.js +0 -157
  261. package/dist/List-tqElle9C.js +0 -121
  262. package/dist/ListItem-CfjsIg4B.js +0 -430
  263. package/dist/Modal-DhPpOoGB.js +0 -1299
  264. package/dist/Paper-2B03OBmZ.js +0 -169
  265. package/dist/Select-BgYwkZgI.js +0 -2613
  266. package/dist/TextField-1yCesIbH.js +0 -457
  267. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  268. package/dist/capitalize-ciszXJ7R.js +0 -9
  269. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  270. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  271. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  272. package/dist/components/key-protection/index.js +0 -4
  273. package/dist/components/key-protection/menu.js +0 -85
  274. package/dist/components/key-protection/utils.js +0 -10
  275. package/dist/components/treeview-filter/item/styled.js +0 -39
  276. package/dist/createSvgIcon-BjpIhJ30.js +0 -71
  277. package/dist/createTheme-DYxDnE9u.js +0 -612
  278. package/dist/index-BMS1Otro.js +0 -183
  279. package/dist/index-CcdvNlgr.js +0 -503
  280. package/dist/index-kCJ_Zvl8.js +0 -34
  281. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  282. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  283. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  284. package/dist/property-list-form-zZQfpR0X.js +0 -386
  285. package/dist/styled-eZwjUruw.js +0 -12
  286. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  287. package/dist/useId-B4-oF9Mq.js +0 -34
  288. package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
  289. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  290. package/dist/utils-BDNynJcd.js +0 -365
  291. package/dist/utils-Bq0ye5vf.js +0 -115
@@ -1,1299 +0,0 @@
1
- import { a as m, _ as z } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as c from "react";
3
- import { P as e } from "./index-C__OZmYy.js";
4
- import { b as ge, c as W, g as ve, a as Te, u as xe } from "./useThemeProps-BzzHcQyd.js";
5
- import { s as se } from "./styled-eZwjUruw.js";
6
- import { jsxs as Pe, jsx as M } from "react/jsx-runtime";
7
- import { g as ke } from "./createTheme-DYxDnE9u.js";
8
- import { u as Le } from "./Paper-2B03OBmZ.js";
9
- import { T as $e, r as je, g as de } from "./utils-BDNynJcd.js";
10
- import { a as Y, u as ue, s as fe, b as pe } from "./ButtonBase-2bPw77UP.js";
11
- import { o as j, a as ie, c as me } from "./useId-B4-oF9Mq.js";
12
- import { i as Re } from "./isHostComponent-kiaBvYVo.js";
13
- import * as He from "react-dom";
14
- function Ue(o, n, r) {
15
- return o === void 0 || Re(o) ? n : m({}, n, {
16
- ownerState: m({}, n.ownerState, r)
17
- });
18
- }
19
- const Ve = {
20
- disableDefaultClasses: !1
21
- }, Ke = /* @__PURE__ */ c.createContext(Ve);
22
- function qe(o) {
23
- const {
24
- disableDefaultClasses: n
25
- } = c.useContext(Ke);
26
- return (r) => n ? "" : o(r);
27
- }
28
- function We(o, n = []) {
29
- if (o === void 0)
30
- return {};
31
- const r = {};
32
- return Object.keys(o).filter((t) => t.match(/^on[A-Z]/) && typeof o[t] == "function" && !n.includes(t)).forEach((t) => {
33
- r[t] = o[t];
34
- }), r;
35
- }
36
- function re(o, n) {
37
- return typeof o == "function" ? o(n) : o;
38
- }
39
- function ze(o) {
40
- const {
41
- prototype: n = {}
42
- } = o;
43
- return !!n.isReactComponent;
44
- }
45
- function Ne(o, n, r, t, i) {
46
- const s = o[n], l = i || n;
47
- if (s == null || // When server-side rendering React doesn't warn either.
48
- // This is not an accurate check for SSR.
49
- // This is only in place for Emotion compat.
50
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
51
- typeof window > "u")
52
- return null;
53
- let a;
54
- const u = s.type;
55
- return typeof u == "function" && !ze(u) && (a = "Did you accidentally use a plain function component for an element instead?"), a !== void 0 ? new Error(`Invalid ${t} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
56
- }
57
- const G = ge(e.element, Ne);
58
- G.isRequired = ge(e.element.isRequired, Ne);
59
- const Ye = "exact-prop: ​";
60
- function Ce(o) {
61
- return process.env.NODE_ENV === "production" ? o : m({}, o, {
62
- [Ye]: (n) => {
63
- const r = Object.keys(n).filter((t) => !o.hasOwnProperty(t));
64
- return r.length > 0 ? new Error(`The following props are not supported: ${r.map((t) => `\`${t}\``).join(", ")}. Please remove them.`) : null;
65
- }
66
- });
67
- }
68
- function le(o, n, r, t, i) {
69
- if (process.env.NODE_ENV === "production")
70
- return null;
71
- const s = o[n], l = i || n;
72
- return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${t} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
73
- }
74
- function Ge(o) {
75
- const n = o.documentElement.clientWidth;
76
- return Math.abs(window.innerWidth - n);
77
- }
78
- function be(o) {
79
- if (o === void 0)
80
- return {};
81
- const n = {};
82
- return Object.keys(o).filter((r) => !(r.match(/^on[A-Z]/) && typeof o[r] == "function")).forEach((r) => {
83
- n[r] = o[r];
84
- }), n;
85
- }
86
- function Ze(o) {
87
- const {
88
- getSlotProps: n,
89
- additionalProps: r,
90
- externalSlotProps: t,
91
- externalForwardedProps: i,
92
- className: s
93
- } = o;
94
- if (!n) {
95
- const x = W(i == null ? void 0 : i.className, t == null ? void 0 : t.className, s, r == null ? void 0 : r.className), b = m({}, r == null ? void 0 : r.style, i == null ? void 0 : i.style, t == null ? void 0 : t.style), R = m({}, r, i, t);
96
- return x.length > 0 && (R.className = x), Object.keys(b).length > 0 && (R.style = b), {
97
- props: R,
98
- internalRef: void 0
99
- };
100
- }
101
- const l = We(m({}, i, t)), a = be(t), u = be(i), f = n(l), T = W(f == null ? void 0 : f.className, r == null ? void 0 : r.className, s, i == null ? void 0 : i.className, t == null ? void 0 : t.className), y = m({}, f == null ? void 0 : f.style, r == null ? void 0 : r.style, i == null ? void 0 : i.style, t == null ? void 0 : t.style), h = m({}, f, r, u, a);
102
- return T.length > 0 && (h.className = T), Object.keys(y).length > 0 && (h.style = y), {
103
- props: h,
104
- internalRef: f.ref
105
- };
106
- }
107
- const Xe = ["elementType", "externalSlotProps", "ownerState"];
108
- function he(o) {
109
- var n;
110
- const {
111
- elementType: r,
112
- externalSlotProps: t,
113
- ownerState: i
114
- } = o, s = z(o, Xe), l = re(t, i), {
115
- props: a,
116
- internalRef: u
117
- } = Ze(m({}, s, {
118
- externalSlotProps: l
119
- })), f = Y(u, l == null ? void 0 : l.ref, (n = o.additionalProps) == null ? void 0 : n.ref);
120
- return Ue(r, m({}, a, {
121
- ref: f
122
- }), i);
123
- }
124
- const Je = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
125
- function Qe(o) {
126
- const n = parseInt(o.getAttribute("tabindex") || "", 10);
127
- return Number.isNaN(n) ? o.contentEditable === "true" || (o.nodeName === "AUDIO" || o.nodeName === "VIDEO" || o.nodeName === "DETAILS") && o.getAttribute("tabindex") === null ? 0 : o.tabIndex : n;
128
- }
129
- function eo(o) {
130
- if (o.tagName !== "INPUT" || o.type !== "radio" || !o.name)
131
- return !1;
132
- const n = (t) => o.ownerDocument.querySelector(`input[type="radio"]${t}`);
133
- let r = n(`[name="${o.name}"]:checked`);
134
- return r || (r = n(`[name="${o.name}"]`)), r !== o;
135
- }
136
- function oo(o) {
137
- return !(o.disabled || o.tagName === "INPUT" && o.type === "hidden" || eo(o));
138
- }
139
- function no(o) {
140
- const n = [], r = [];
141
- return Array.from(o.querySelectorAll(Je)).forEach((t, i) => {
142
- const s = Qe(t);
143
- s === -1 || !oo(t) || (s === 0 ? n.push(t) : r.push({
144
- documentOrder: i,
145
- tabIndex: s,
146
- node: t
147
- }));
148
- }), r.sort((t, i) => t.tabIndex === i.tabIndex ? t.documentOrder - i.documentOrder : t.tabIndex - i.tabIndex).map((t) => t.node).concat(n);
149
- }
150
- function to() {
151
- return !0;
152
- }
153
- function J(o) {
154
- const {
155
- children: n,
156
- disableAutoFocus: r = !1,
157
- disableEnforceFocus: t = !1,
158
- disableRestoreFocus: i = !1,
159
- getTabbable: s = no,
160
- isEnabled: l = to,
161
- open: a
162
- } = o, u = c.useRef(!1), f = c.useRef(null), T = c.useRef(null), y = c.useRef(null), h = c.useRef(null), x = c.useRef(!1), b = c.useRef(null), R = Y(n.ref, b), N = c.useRef(null);
163
- c.useEffect(() => {
164
- !a || !b.current || (x.current = !r);
165
- }, [r, a]), c.useEffect(() => {
166
- if (!a || !b.current)
167
- return;
168
- const d = j(b.current);
169
- return b.current.contains(d.activeElement) || (b.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(`
170
- `)), b.current.setAttribute("tabIndex", "-1")), x.current && b.current.focus()), () => {
171
- i || (y.current && y.current.focus && (u.current = !0, y.current.focus()), y.current = null);
172
- };
173
- }, [a]), c.useEffect(() => {
174
- if (!a || !b.current)
175
- return;
176
- const d = j(b.current), g = (w) => {
177
- const {
178
- current: I
179
- } = b;
180
- if (I !== null) {
181
- if (!d.hasFocus() || t || !l() || u.current) {
182
- u.current = !1;
183
- return;
184
- }
185
- if (!I.contains(d.activeElement)) {
186
- if (w && h.current !== w.target || d.activeElement !== h.current)
187
- h.current = null;
188
- else if (h.current !== null)
189
- return;
190
- if (!x.current)
191
- return;
192
- let k = [];
193
- if ((d.activeElement === f.current || d.activeElement === T.current) && (k = s(b.current)), k.length > 0) {
194
- var D, _;
195
- const F = !!((D = N.current) != null && D.shiftKey && ((_ = N.current) == null ? void 0 : _.key) === "Tab"), B = k[0], p = k[k.length - 1];
196
- typeof B != "string" && typeof p != "string" && (F ? p.focus() : B.focus());
197
- } else
198
- I.focus();
199
- }
200
- }
201
- }, E = (w) => {
202
- N.current = w, !(t || !l() || w.key !== "Tab") && d.activeElement === b.current && w.shiftKey && (u.current = !0, T.current && T.current.focus());
203
- };
204
- d.addEventListener("focusin", g), d.addEventListener("keydown", E, !0);
205
- const S = setInterval(() => {
206
- d.activeElement && d.activeElement.tagName === "BODY" && g(null);
207
- }, 50);
208
- return () => {
209
- clearInterval(S), d.removeEventListener("focusin", g), d.removeEventListener("keydown", E, !0);
210
- };
211
- }, [r, t, i, l, a, s]);
212
- const P = (d) => {
213
- y.current === null && (y.current = d.relatedTarget), x.current = !0, h.current = d.target;
214
- const g = n.props.onFocus;
215
- g && g(d);
216
- }, O = (d) => {
217
- y.current === null && (y.current = d.relatedTarget), x.current = !0;
218
- };
219
- return /* @__PURE__ */ Pe(c.Fragment, {
220
- children: [/* @__PURE__ */ M("div", {
221
- tabIndex: a ? 0 : -1,
222
- onFocus: O,
223
- ref: f,
224
- "data-testid": "sentinelStart"
225
- }), /* @__PURE__ */ c.cloneElement(n, {
226
- ref: R,
227
- onFocus: P
228
- }), /* @__PURE__ */ M("div", {
229
- tabIndex: a ? 0 : -1,
230
- onFocus: O,
231
- ref: T,
232
- "data-testid": "sentinelEnd"
233
- })]
234
- });
235
- }
236
- process.env.NODE_ENV !== "production" && (J.propTypes = {
237
- // ----------------------------- Warning --------------------------------
238
- // | These PropTypes are generated from the TypeScript type definitions |
239
- // | To update them edit TypeScript types and run "yarn proptypes" |
240
- // ----------------------------------------------------------------------
241
- /**
242
- * A single child content element.
243
- */
244
- children: G,
245
- /**
246
- * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
247
- * replace it to the last focused element when it closes.
248
- * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
249
- *
250
- * Generally this should never be set to `true` as it makes the focus trap less
251
- * accessible to assistive technologies, like screen readers.
252
- * @default false
253
- */
254
- disableAutoFocus: e.bool,
255
- /**
256
- * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
257
- *
258
- * Generally this should never be set to `true` as it makes the focus trap less
259
- * accessible to assistive technologies, like screen readers.
260
- * @default false
261
- */
262
- disableEnforceFocus: e.bool,
263
- /**
264
- * If `true`, the focus trap will not restore focus to previously focused element once
265
- * focus trap is hidden or unmounted.
266
- * @default false
267
- */
268
- disableRestoreFocus: e.bool,
269
- /**
270
- * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
271
- * For instance, you can provide the "tabbable" npm dependency.
272
- * @param {HTMLElement} root
273
- */
274
- getTabbable: e.func,
275
- /**
276
- * This prop extends the `open` prop.
277
- * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
278
- * This prop should be memoized.
279
- * It can be used to support multiple focus trap mounted at the same time.
280
- * @default function defaultIsEnabled(): boolean {
281
- * return true;
282
- * }
283
- */
284
- isEnabled: e.func,
285
- /**
286
- * If `true`, focus is locked.
287
- */
288
- open: e.bool.isRequired
289
- });
290
- process.env.NODE_ENV !== "production" && (J.propTypes = Ce(J.propTypes));
291
- function ro(o) {
292
- return typeof o == "function" ? o() : o;
293
- }
294
- const Q = /* @__PURE__ */ c.forwardRef(function(n, r) {
295
- const {
296
- children: t,
297
- container: i,
298
- disablePortal: s = !1
299
- } = n, [l, a] = c.useState(null), u = Y(/* @__PURE__ */ c.isValidElement(t) ? t.ref : null, r);
300
- if (ue(() => {
301
- s || a(ro(i) || document.body);
302
- }, [i, s]), ue(() => {
303
- if (l && !s)
304
- return fe(r, l), () => {
305
- fe(r, null);
306
- };
307
- }, [r, l, s]), s) {
308
- if (/* @__PURE__ */ c.isValidElement(t)) {
309
- const f = {
310
- ref: u
311
- };
312
- return /* @__PURE__ */ c.cloneElement(t, f);
313
- }
314
- return /* @__PURE__ */ M(c.Fragment, {
315
- children: t
316
- });
317
- }
318
- return /* @__PURE__ */ M(c.Fragment, {
319
- children: l && /* @__PURE__ */ He.createPortal(t, l)
320
- });
321
- });
322
- process.env.NODE_ENV !== "production" && (Q.propTypes = {
323
- // ----------------------------- Warning --------------------------------
324
- // | These PropTypes are generated from the TypeScript type definitions |
325
- // | To update them edit TypeScript types and run "yarn proptypes" |
326
- // ----------------------------------------------------------------------
327
- /**
328
- * The children to render into the `container`.
329
- */
330
- children: e.node,
331
- /**
332
- * An HTML element or function that returns one.
333
- * The `container` will have the portal children appended to it.
334
- *
335
- * By default, it uses the body of the top-level document object,
336
- * so it's simply `document.body` most of the time.
337
- */
338
- container: e.oneOfType([le, e.func]),
339
- /**
340
- * The `children` will be under the DOM hierarchy of the parent component.
341
- * @default false
342
- */
343
- disablePortal: e.bool
344
- });
345
- process.env.NODE_ENV !== "production" && (Q.propTypes = Ce(Q.propTypes));
346
- function so(o) {
347
- const n = j(o);
348
- return n.body === o ? ie(o).innerWidth > n.documentElement.clientWidth : o.scrollHeight > o.clientHeight;
349
- }
350
- function q(o, n) {
351
- n ? o.setAttribute("aria-hidden", "true") : o.removeAttribute("aria-hidden");
352
- }
353
- function ye(o) {
354
- return parseInt(ie(o).getComputedStyle(o).paddingRight, 10) || 0;
355
- }
356
- function io(o) {
357
- const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(o.tagName) !== -1, t = o.tagName === "INPUT" && o.getAttribute("type") === "hidden";
358
- return r || t;
359
- }
360
- function Ee(o, n, r, t, i) {
361
- const s = [n, r, ...t];
362
- [].forEach.call(o.children, (l) => {
363
- const a = s.indexOf(l) === -1, u = !io(l);
364
- a && u && q(l, i);
365
- });
366
- }
367
- function te(o, n) {
368
- let r = -1;
369
- return o.some((t, i) => n(t) ? (r = i, !0) : !1), r;
370
- }
371
- function lo(o, n) {
372
- const r = [], t = o.container;
373
- if (!n.disableScrollLock) {
374
- if (so(t)) {
375
- const l = Ge(j(t));
376
- r.push({
377
- value: t.style.paddingRight,
378
- property: "padding-right",
379
- el: t
380
- }), t.style.paddingRight = `${ye(t) + l}px`;
381
- const a = j(t).querySelectorAll(".mui-fixed");
382
- [].forEach.call(a, (u) => {
383
- r.push({
384
- value: u.style.paddingRight,
385
- property: "padding-right",
386
- el: u
387
- }), u.style.paddingRight = `${ye(u) + l}px`;
388
- });
389
- }
390
- let s;
391
- if (t.parentNode instanceof DocumentFragment)
392
- s = j(t).body;
393
- else {
394
- const l = t.parentElement, a = ie(t);
395
- s = (l == null ? void 0 : l.nodeName) === "HTML" && a.getComputedStyle(l).overflowY === "scroll" ? l : t;
396
- }
397
- r.push({
398
- value: s.style.overflow,
399
- property: "overflow",
400
- el: s
401
- }, {
402
- value: s.style.overflowX,
403
- property: "overflow-x",
404
- el: s
405
- }, {
406
- value: s.style.overflowY,
407
- property: "overflow-y",
408
- el: s
409
- }), s.style.overflow = "hidden";
410
- }
411
- return () => {
412
- r.forEach(({
413
- value: s,
414
- el: l,
415
- property: a
416
- }) => {
417
- s ? l.style.setProperty(a, s) : l.style.removeProperty(a);
418
- });
419
- };
420
- }
421
- function ao(o) {
422
- const n = [];
423
- return [].forEach.call(o.children, (r) => {
424
- r.getAttribute("aria-hidden") === "true" && n.push(r);
425
- }), n;
426
- }
427
- class co {
428
- constructor() {
429
- this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
430
- }
431
- add(n, r) {
432
- let t = this.modals.indexOf(n);
433
- if (t !== -1)
434
- return t;
435
- t = this.modals.length, this.modals.push(n), n.modalRef && q(n.modalRef, !1);
436
- const i = ao(r);
437
- Ee(r, n.mount, n.modalRef, i, !0);
438
- const s = te(this.containers, (l) => l.container === r);
439
- return s !== -1 ? (this.containers[s].modals.push(n), t) : (this.containers.push({
440
- modals: [n],
441
- container: r,
442
- restore: null,
443
- hiddenSiblings: i
444
- }), t);
445
- }
446
- mount(n, r) {
447
- const t = te(this.containers, (s) => s.modals.indexOf(n) !== -1), i = this.containers[t];
448
- i.restore || (i.restore = lo(i, r));
449
- }
450
- remove(n, r = !0) {
451
- const t = this.modals.indexOf(n);
452
- if (t === -1)
453
- return t;
454
- const i = te(this.containers, (l) => l.modals.indexOf(n) !== -1), s = this.containers[i];
455
- if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(t, 1), s.modals.length === 0)
456
- s.restore && s.restore(), n.modalRef && q(n.modalRef, r), Ee(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
457
- else {
458
- const l = s.modals[s.modals.length - 1];
459
- l.modalRef && q(l.modalRef, !1);
460
- }
461
- return t;
462
- }
463
- isTopModal(n) {
464
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
465
- }
466
- }
467
- function uo(o) {
468
- return ke("MuiModal", o);
469
- }
470
- ve("MuiModal", ["root", "hidden", "backdrop"]);
471
- const fo = ["children", "closeAfterTransition", "component", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"], po = (o) => {
472
- const {
473
- open: n,
474
- exited: r
475
- } = o;
476
- return Te({
477
- root: ["root", !n && r && "hidden"],
478
- backdrop: ["backdrop"]
479
- }, qe(uo));
480
- };
481
- function mo(o) {
482
- return typeof o == "function" ? o() : o;
483
- }
484
- function bo(o) {
485
- return o ? o.props.hasOwnProperty("in") : !1;
486
- }
487
- const ho = new co(), Se = /* @__PURE__ */ c.forwardRef(function(n, r) {
488
- var t, i;
489
- const {
490
- children: s,
491
- closeAfterTransition: l = !1,
492
- component: a,
493
- container: u,
494
- disableAutoFocus: f = !1,
495
- disableEnforceFocus: T = !1,
496
- disableEscapeKeyDown: y = !1,
497
- disablePortal: h = !1,
498
- disableRestoreFocus: x = !1,
499
- disableScrollLock: b = !1,
500
- hideBackdrop: R = !1,
501
- keepMounted: N = !1,
502
- // private
503
- manager: P = ho,
504
- onBackdropClick: O,
505
- onClose: d,
506
- onKeyDown: g,
507
- open: E,
508
- onTransitionEnter: S,
509
- onTransitionExited: w,
510
- slotProps: I = {},
511
- slots: D = {}
512
- } = n, _ = z(n, fo), [k, F] = c.useState(!E), B = c.useRef({}), p = c.useRef(null), v = c.useRef(null), A = Y(v, r), $ = bo(s), L = (t = n["aria-hidden"]) != null ? t : !0, Z = () => j(p.current), H = () => (B.current.modalRef = v.current, B.current.mountNode = p.current, B.current), U = () => {
513
- P.mount(H(), {
514
- disableScrollLock: b
515
- }), v.current && (v.current.scrollTop = 0);
516
- }, V = pe(() => {
517
- const C = mo(u) || Z().body;
518
- P.add(H(), C), v.current && U();
519
- }), ee = c.useCallback(() => P.isTopModal(H()), [P]), Fe = pe((C) => {
520
- p.current = C, !(!C || !v.current) && (E && ee() ? U() : q(v.current, L));
521
- }), K = c.useCallback(() => {
522
- P.remove(H(), L);
523
- }, [P, L]);
524
- c.useEffect(() => () => {
525
- K();
526
- }, [K]), c.useEffect(() => {
527
- E ? V() : (!$ || !l) && K();
528
- }, [E, K, $, l, V]);
529
- const oe = m({}, n, {
530
- closeAfterTransition: l,
531
- disableAutoFocus: f,
532
- disableEnforceFocus: T,
533
- disableEscapeKeyDown: y,
534
- disablePortal: h,
535
- disableRestoreFocus: x,
536
- disableScrollLock: b,
537
- exited: k,
538
- hideBackdrop: R,
539
- keepMounted: N
540
- }), ae = po(oe), Me = () => {
541
- F(!1), S && S();
542
- }, Ie = () => {
543
- F(!0), w && w(), l && K();
544
- }, Ae = (C) => {
545
- C.target === C.currentTarget && (O && O(C), d && d(C, "backdropClick"));
546
- }, De = (C) => {
547
- g && g(C), !(C.key !== "Escape" || !ee()) && (y || (C.stopPropagation(), d && d(C, "escapeKeyDown")));
548
- }, X = {};
549
- s.props.tabIndex === void 0 && (X.tabIndex = "-1"), $ && (X.onEnter = me(Me, s.props.onEnter), X.onExited = me(Ie, s.props.onExited));
550
- const ce = (i = a ?? D.root) != null ? i : "div", Be = he({
551
- elementType: ce,
552
- externalSlotProps: I.root,
553
- externalForwardedProps: _,
554
- additionalProps: {
555
- ref: A,
556
- role: "presentation",
557
- onKeyDown: De
558
- },
559
- className: ae.root,
560
- ownerState: oe
561
- }), ne = D.backdrop, _e = he({
562
- elementType: ne,
563
- externalSlotProps: I.backdrop,
564
- additionalProps: {
565
- "aria-hidden": !0,
566
- onClick: Ae,
567
- open: E
568
- },
569
- className: ae.backdrop,
570
- ownerState: oe
571
- });
572
- return !N && !E && (!$ || k) ? null : /* @__PURE__ */ M(
573
- Q,
574
- {
575
- ref: Fe,
576
- container: u,
577
- disablePortal: h,
578
- children: /* @__PURE__ */ Pe(ce, m({}, Be, {
579
- children: [!R && ne ? /* @__PURE__ */ M(ne, m({}, _e)) : null, /* @__PURE__ */ M(J, {
580
- disableEnforceFocus: T,
581
- disableAutoFocus: f,
582
- disableRestoreFocus: x,
583
- isEnabled: ee,
584
- open: E,
585
- children: /* @__PURE__ */ c.cloneElement(s, X)
586
- })]
587
- }))
588
- }
589
- );
590
- });
591
- process.env.NODE_ENV !== "production" && (Se.propTypes = {
592
- // ----------------------------- Warning --------------------------------
593
- // | These PropTypes are generated from the TypeScript type definitions |
594
- // | To update them edit TypeScript types and run "yarn proptypes" |
595
- // ----------------------------------------------------------------------
596
- /**
597
- * A single child content element.
598
- */
599
- children: G.isRequired,
600
- /**
601
- * When set to true the Modal waits until a nested Transition is completed before closing.
602
- * @default false
603
- */
604
- closeAfterTransition: e.bool,
605
- /**
606
- * The component used for the root node.
607
- * Either a string to use a HTML element or a component.
608
- */
609
- component: e.elementType,
610
- /**
611
- * An HTML element or function that returns one.
612
- * The `container` will have the portal children appended to it.
613
- *
614
- * By default, it uses the body of the top-level document object,
615
- * so it's simply `document.body` most of the time.
616
- */
617
- container: e.oneOfType([le, e.func]),
618
- /**
619
- * If `true`, the modal will not automatically shift focus to itself when it opens, and
620
- * replace it to the last focused element when it closes.
621
- * This also works correctly with any modal children that have the `disableAutoFocus` prop.
622
- *
623
- * Generally this should never be set to `true` as it makes the modal less
624
- * accessible to assistive technologies, like screen readers.
625
- * @default false
626
- */
627
- disableAutoFocus: e.bool,
628
- /**
629
- * If `true`, the modal will not prevent focus from leaving the modal while open.
630
- *
631
- * Generally this should never be set to `true` as it makes the modal less
632
- * accessible to assistive technologies, like screen readers.
633
- * @default false
634
- */
635
- disableEnforceFocus: e.bool,
636
- /**
637
- * If `true`, hitting escape will not fire the `onClose` callback.
638
- * @default false
639
- */
640
- disableEscapeKeyDown: e.bool,
641
- /**
642
- * The `children` will be under the DOM hierarchy of the parent component.
643
- * @default false
644
- */
645
- disablePortal: e.bool,
646
- /**
647
- * If `true`, the modal will not restore focus to previously focused element once
648
- * modal is hidden or unmounted.
649
- * @default false
650
- */
651
- disableRestoreFocus: e.bool,
652
- /**
653
- * Disable the scroll lock behavior.
654
- * @default false
655
- */
656
- disableScrollLock: e.bool,
657
- /**
658
- * If `true`, the backdrop is not rendered.
659
- * @default false
660
- */
661
- hideBackdrop: e.bool,
662
- /**
663
- * Always keep the children in the DOM.
664
- * This prop can be useful in SEO situation or
665
- * when you want to maximize the responsiveness of the Modal.
666
- * @default false
667
- */
668
- keepMounted: e.bool,
669
- /**
670
- * Callback fired when the backdrop is clicked.
671
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
672
- */
673
- onBackdropClick: e.func,
674
- /**
675
- * Callback fired when the component requests to be closed.
676
- * The `reason` parameter can optionally be used to control the response to `onClose`.
677
- *
678
- * @param {object} event The event source of the callback.
679
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
680
- */
681
- onClose: e.func,
682
- /**
683
- * @ignore
684
- */
685
- onKeyDown: e.func,
686
- /**
687
- * If `true`, the component is shown.
688
- */
689
- open: e.bool.isRequired,
690
- /**
691
- * The props used for each slot inside the Modal.
692
- * @default {}
693
- */
694
- slotProps: e.shape({
695
- backdrop: e.oneOfType([e.func, e.object]),
696
- root: e.oneOfType([e.func, e.object])
697
- }),
698
- /**
699
- * The components used for each slot inside the Modal.
700
- * Either a string to use a HTML element or a component.
701
- * @default {}
702
- */
703
- slots: e.shape({
704
- backdrop: e.elementType,
705
- root: e.elementType
706
- })
707
- });
708
- const yo = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], Eo = {
709
- entering: {
710
- opacity: 1
711
- },
712
- entered: {
713
- opacity: 1
714
- }
715
- }, we = /* @__PURE__ */ c.forwardRef(function(n, r) {
716
- const t = Le(), i = {
717
- enter: t.transitions.duration.enteringScreen,
718
- exit: t.transitions.duration.leavingScreen
719
- }, {
720
- addEndListener: s,
721
- appear: l = !0,
722
- children: a,
723
- easing: u,
724
- in: f,
725
- onEnter: T,
726
- onEntered: y,
727
- onEntering: h,
728
- onExit: x,
729
- onExited: b,
730
- onExiting: R,
731
- style: N,
732
- timeout: P = i,
733
- // eslint-disable-next-line react/prop-types
734
- TransitionComponent: O = $e
735
- } = n, d = z(n, yo), g = c.useRef(null), E = Y(g, a.ref, r), S = (p) => (v) => {
736
- if (p) {
737
- const A = g.current;
738
- v === void 0 ? p(A) : p(A, v);
739
- }
740
- }, w = S(h), I = S((p, v) => {
741
- je(p);
742
- const A = de({
743
- style: N,
744
- timeout: P,
745
- easing: u
746
- }, {
747
- mode: "enter"
748
- });
749
- p.style.webkitTransition = t.transitions.create("opacity", A), p.style.transition = t.transitions.create("opacity", A), T && T(p, v);
750
- }), D = S(y), _ = S(R), k = S((p) => {
751
- const v = de({
752
- style: N,
753
- timeout: P,
754
- easing: u
755
- }, {
756
- mode: "exit"
757
- });
758
- p.style.webkitTransition = t.transitions.create("opacity", v), p.style.transition = t.transitions.create("opacity", v), x && x(p);
759
- }), F = S(b);
760
- return /* @__PURE__ */ M(O, m({
761
- appear: l,
762
- in: f,
763
- nodeRef: g,
764
- onEnter: I,
765
- onEntered: D,
766
- onEntering: w,
767
- onExit: k,
768
- onExited: F,
769
- onExiting: _,
770
- addEndListener: (p) => {
771
- s && s(g.current, p);
772
- },
773
- timeout: P
774
- }, d, {
775
- children: (p, v) => /* @__PURE__ */ c.cloneElement(a, m({
776
- style: m({
777
- opacity: 0,
778
- visibility: p === "exited" && !f ? "hidden" : void 0
779
- }, Eo[p], N, a.props.style),
780
- ref: E
781
- }, v))
782
- }));
783
- });
784
- process.env.NODE_ENV !== "production" && (we.propTypes = {
785
- // ----------------------------- Warning --------------------------------
786
- // | These PropTypes are generated from the TypeScript type definitions |
787
- // | To update them edit the d.ts file and run "yarn proptypes" |
788
- // ----------------------------------------------------------------------
789
- /**
790
- * Add a custom transition end trigger. Called with the transitioning DOM
791
- * node and a done callback. Allows for more fine grained transition end
792
- * logic. Note: Timeouts are still used as a fallback if provided.
793
- */
794
- addEndListener: e.func,
795
- /**
796
- * Perform the enter transition when it first mounts if `in` is also `true`.
797
- * Set this to `false` to disable this behavior.
798
- * @default true
799
- */
800
- appear: e.bool,
801
- /**
802
- * A single child content element.
803
- */
804
- children: G.isRequired,
805
- /**
806
- * The transition timing function.
807
- * You may specify a single easing or a object containing enter and exit values.
808
- */
809
- easing: e.oneOfType([e.shape({
810
- enter: e.string,
811
- exit: e.string
812
- }), e.string]),
813
- /**
814
- * If `true`, the component will transition in.
815
- */
816
- in: e.bool,
817
- /**
818
- * @ignore
819
- */
820
- onEnter: e.func,
821
- /**
822
- * @ignore
823
- */
824
- onEntered: e.func,
825
- /**
826
- * @ignore
827
- */
828
- onEntering: e.func,
829
- /**
830
- * @ignore
831
- */
832
- onExit: e.func,
833
- /**
834
- * @ignore
835
- */
836
- onExited: e.func,
837
- /**
838
- * @ignore
839
- */
840
- onExiting: e.func,
841
- /**
842
- * @ignore
843
- */
844
- style: e.object,
845
- /**
846
- * The duration for the transition, in milliseconds.
847
- * You may specify a single timeout for all transitions, or individually with an object.
848
- * @default {
849
- * enter: theme.transitions.duration.enteringScreen,
850
- * exit: theme.transitions.duration.leavingScreen,
851
- * }
852
- */
853
- timeout: e.oneOfType([e.number, e.shape({
854
- appear: e.number,
855
- enter: e.number,
856
- exit: e.number
857
- })])
858
- });
859
- function go(o) {
860
- return ke("MuiBackdrop", o);
861
- }
862
- ve("MuiBackdrop", ["root", "invisible"]);
863
- const vo = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], To = (o) => {
864
- const {
865
- classes: n,
866
- invisible: r
867
- } = o;
868
- return Te({
869
- root: ["root", r && "invisible"]
870
- }, go, n);
871
- }, xo = se("div", {
872
- name: "MuiBackdrop",
873
- slot: "Root",
874
- overridesResolver: (o, n) => {
875
- const {
876
- ownerState: r
877
- } = o;
878
- return [n.root, r.invisible && n.invisible];
879
- }
880
- })(({
881
- ownerState: o
882
- }) => m({
883
- position: "fixed",
884
- display: "flex",
885
- alignItems: "center",
886
- justifyContent: "center",
887
- right: 0,
888
- bottom: 0,
889
- top: 0,
890
- left: 0,
891
- backgroundColor: "rgba(0, 0, 0, 0.5)",
892
- WebkitTapHighlightColor: "transparent"
893
- }, o.invisible && {
894
- backgroundColor: "transparent"
895
- })), Oe = /* @__PURE__ */ c.forwardRef(function(n, r) {
896
- var t, i, s;
897
- const l = xe({
898
- props: n,
899
- name: "MuiBackdrop"
900
- }), {
901
- children: a,
902
- className: u,
903
- component: f = "div",
904
- components: T = {},
905
- componentsProps: y = {},
906
- invisible: h = !1,
907
- open: x,
908
- slotProps: b = {},
909
- slots: R = {},
910
- TransitionComponent: N = we,
911
- transitionDuration: P
912
- } = l, O = z(l, vo), d = m({}, l, {
913
- component: f,
914
- invisible: h
915
- }), g = To(d), E = (t = b.root) != null ? t : y.root;
916
- return /* @__PURE__ */ M(N, m({
917
- in: x,
918
- timeout: P
919
- }, O, {
920
- children: /* @__PURE__ */ M(xo, m({
921
- "aria-hidden": !0
922
- }, E, {
923
- as: (i = (s = R.root) != null ? s : T.Root) != null ? i : f,
924
- className: W(g.root, u, E == null ? void 0 : E.className),
925
- ownerState: m({}, d, E == null ? void 0 : E.ownerState),
926
- classes: g,
927
- ref: r,
928
- children: a
929
- }))
930
- }));
931
- });
932
- process.env.NODE_ENV !== "production" && (Oe.propTypes = {
933
- // ----------------------------- Warning --------------------------------
934
- // | These PropTypes are generated from the TypeScript type definitions |
935
- // | To update them edit the d.ts file and run "yarn proptypes" |
936
- // ----------------------------------------------------------------------
937
- /**
938
- * The content of the component.
939
- */
940
- children: e.node,
941
- /**
942
- * Override or extend the styles applied to the component.
943
- */
944
- classes: e.object,
945
- /**
946
- * @ignore
947
- */
948
- className: e.string,
949
- /**
950
- * The component used for the root node.
951
- * Either a string to use a HTML element or a component.
952
- */
953
- component: e.elementType,
954
- /**
955
- * The components used for each slot inside.
956
- *
957
- * This prop is an alias for the `slots` prop.
958
- * It's recommended to use the `slots` prop instead.
959
- *
960
- * @default {}
961
- */
962
- components: e.shape({
963
- Root: e.elementType
964
- }),
965
- /**
966
- * The extra props for the slot components.
967
- * You can override the existing props or add new ones.
968
- *
969
- * This prop is an alias for the `slotProps` prop.
970
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
971
- *
972
- * @default {}
973
- */
974
- componentsProps: e.shape({
975
- root: e.object
976
- }),
977
- /**
978
- * If `true`, the backdrop is invisible.
979
- * It can be used when rendering a popover or a custom select component.
980
- * @default false
981
- */
982
- invisible: e.bool,
983
- /**
984
- * If `true`, the component is shown.
985
- */
986
- open: e.bool.isRequired,
987
- /**
988
- * The extra props for the slot components.
989
- * You can override the existing props or add new ones.
990
- *
991
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
992
- *
993
- * @default {}
994
- */
995
- slotProps: e.shape({
996
- root: e.object
997
- }),
998
- /**
999
- * The components used for each slot inside.
1000
- *
1001
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
1002
- *
1003
- * @default {}
1004
- */
1005
- slots: e.shape({
1006
- root: e.elementType
1007
- }),
1008
- /**
1009
- * The system prop that allows defining system overrides as well as additional CSS styles.
1010
- */
1011
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1012
- /**
1013
- * The component used for the transition.
1014
- * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
1015
- * @default Fade
1016
- */
1017
- TransitionComponent: e.elementType,
1018
- /**
1019
- * The duration for the transition, in milliseconds.
1020
- * You may specify a single timeout for all transitions, or individually with an object.
1021
- */
1022
- transitionDuration: e.oneOfType([e.number, e.shape({
1023
- appear: e.number,
1024
- enter: e.number,
1025
- exit: e.number
1026
- })])
1027
- });
1028
- const Po = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "slotProps", "slots", "theme"], ko = se("div", {
1029
- name: "MuiModal",
1030
- slot: "Root",
1031
- overridesResolver: (o, n) => {
1032
- const {
1033
- ownerState: r
1034
- } = o;
1035
- return [n.root, !r.open && r.exited && n.hidden];
1036
- }
1037
- })(({
1038
- theme: o,
1039
- ownerState: n
1040
- }) => m({
1041
- position: "fixed",
1042
- zIndex: (o.vars || o).zIndex.modal,
1043
- right: 0,
1044
- bottom: 0,
1045
- top: 0,
1046
- left: 0
1047
- }, !n.open && n.exited && {
1048
- visibility: "hidden"
1049
- })), Ro = se(Oe, {
1050
- name: "MuiModal",
1051
- slot: "Backdrop",
1052
- overridesResolver: (o, n) => n.backdrop
1053
- })({
1054
- zIndex: -1
1055
- }), No = /* @__PURE__ */ c.forwardRef(function(n, r) {
1056
- var t, i, s, l, a, u;
1057
- const f = xe({
1058
- name: "MuiModal",
1059
- props: n
1060
- }), {
1061
- BackdropComponent: T = Ro,
1062
- BackdropProps: y,
1063
- classes: h,
1064
- className: x,
1065
- closeAfterTransition: b = !1,
1066
- children: R,
1067
- component: N,
1068
- components: P = {},
1069
- componentsProps: O = {},
1070
- disableAutoFocus: d = !1,
1071
- disableEnforceFocus: g = !1,
1072
- disableEscapeKeyDown: E = !1,
1073
- disablePortal: S = !1,
1074
- disableRestoreFocus: w = !1,
1075
- disableScrollLock: I = !1,
1076
- hideBackdrop: D = !1,
1077
- keepMounted: _ = !1,
1078
- slotProps: k,
1079
- slots: F,
1080
- // eslint-disable-next-line react/prop-types
1081
- theme: B
1082
- } = f, p = z(f, Po), [v, A] = c.useState(!0), $ = {
1083
- closeAfterTransition: b,
1084
- disableAutoFocus: d,
1085
- disableEnforceFocus: g,
1086
- disableEscapeKeyDown: E,
1087
- disablePortal: S,
1088
- disableRestoreFocus: w,
1089
- disableScrollLock: I,
1090
- hideBackdrop: D,
1091
- keepMounted: _
1092
- }, L = m({}, f, $, {
1093
- exited: v
1094
- }), Z = (t = (i = F == null ? void 0 : F.root) != null ? i : P.Root) != null ? t : ko, H = (s = (l = F == null ? void 0 : F.backdrop) != null ? l : P.Backdrop) != null ? s : T, U = (a = k == null ? void 0 : k.root) != null ? a : O.root, V = (u = k == null ? void 0 : k.backdrop) != null ? u : O.backdrop;
1095
- return /* @__PURE__ */ M(Se, m({
1096
- slots: {
1097
- root: Z,
1098
- backdrop: H
1099
- },
1100
- slotProps: {
1101
- root: () => m({}, re(U, L), !Re(Z) && {
1102
- as: N,
1103
- theme: B
1104
- }, {
1105
- className: W(x, U == null ? void 0 : U.className, h == null ? void 0 : h.root, !L.open && L.exited && (h == null ? void 0 : h.hidden))
1106
- }),
1107
- backdrop: () => m({}, y, re(V, L), {
1108
- className: W(V == null ? void 0 : V.className, h == null ? void 0 : h.backdrop)
1109
- })
1110
- },
1111
- onTransitionEnter: () => A(!1),
1112
- onTransitionExited: () => A(!0),
1113
- ref: r
1114
- }, p, $, {
1115
- children: R
1116
- }));
1117
- });
1118
- process.env.NODE_ENV !== "production" && (No.propTypes = {
1119
- // ----------------------------- Warning --------------------------------
1120
- // | These PropTypes are generated from the TypeScript type definitions |
1121
- // | To update them edit the d.ts file and run "yarn proptypes" |
1122
- // ----------------------------------------------------------------------
1123
- /**
1124
- * A backdrop component. This prop enables custom backdrop rendering.
1125
- * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
1126
- * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
1127
- * @default styled(Backdrop, {
1128
- * name: 'MuiModal',
1129
- * slot: 'Backdrop',
1130
- * overridesResolver: (props, styles) => {
1131
- * return styles.backdrop;
1132
- * },
1133
- * })({
1134
- * zIndex: -1,
1135
- * })
1136
- */
1137
- BackdropComponent: e.elementType,
1138
- /**
1139
- * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
1140
- * @deprecated Use `slotProps.backdrop` instead.
1141
- */
1142
- BackdropProps: e.object,
1143
- /**
1144
- * A single child content element.
1145
- */
1146
- children: G.isRequired,
1147
- /**
1148
- * Override or extend the styles applied to the component.
1149
- */
1150
- classes: e.object,
1151
- /**
1152
- * @ignore
1153
- */
1154
- className: e.string,
1155
- /**
1156
- * When set to true the Modal waits until a nested Transition is completed before closing.
1157
- * @default false
1158
- */
1159
- closeAfterTransition: e.bool,
1160
- /**
1161
- * The component used for the root node.
1162
- * Either a string to use a HTML element or a component.
1163
- */
1164
- component: e.elementType,
1165
- /**
1166
- * The components used for each slot inside.
1167
- *
1168
- * This prop is an alias for the `slots` prop.
1169
- * It's recommended to use the `slots` prop instead.
1170
- *
1171
- * @default {}
1172
- */
1173
- components: e.shape({
1174
- Backdrop: e.elementType,
1175
- Root: e.elementType
1176
- }),
1177
- /**
1178
- * The extra props for the slot components.
1179
- * You can override the existing props or add new ones.
1180
- *
1181
- * This prop is an alias for the `slotProps` prop.
1182
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
1183
- *
1184
- * @default {}
1185
- */
1186
- componentsProps: e.shape({
1187
- backdrop: e.oneOfType([e.func, e.object]),
1188
- root: e.oneOfType([e.func, e.object])
1189
- }),
1190
- /**
1191
- * An HTML element or function that returns one.
1192
- * The `container` will have the portal children appended to it.
1193
- *
1194
- * By default, it uses the body of the top-level document object,
1195
- * so it's simply `document.body` most of the time.
1196
- */
1197
- container: e.oneOfType([le, e.func]),
1198
- /**
1199
- * If `true`, the modal will not automatically shift focus to itself when it opens, and
1200
- * replace it to the last focused element when it closes.
1201
- * This also works correctly with any modal children that have the `disableAutoFocus` prop.
1202
- *
1203
- * Generally this should never be set to `true` as it makes the modal less
1204
- * accessible to assistive technologies, like screen readers.
1205
- * @default false
1206
- */
1207
- disableAutoFocus: e.bool,
1208
- /**
1209
- * If `true`, the modal will not prevent focus from leaving the modal while open.
1210
- *
1211
- * Generally this should never be set to `true` as it makes the modal less
1212
- * accessible to assistive technologies, like screen readers.
1213
- * @default false
1214
- */
1215
- disableEnforceFocus: e.bool,
1216
- /**
1217
- * If `true`, hitting escape will not fire the `onClose` callback.
1218
- * @default false
1219
- */
1220
- disableEscapeKeyDown: e.bool,
1221
- /**
1222
- * The `children` will be under the DOM hierarchy of the parent component.
1223
- * @default false
1224
- */
1225
- disablePortal: e.bool,
1226
- /**
1227
- * If `true`, the modal will not restore focus to previously focused element once
1228
- * modal is hidden or unmounted.
1229
- * @default false
1230
- */
1231
- disableRestoreFocus: e.bool,
1232
- /**
1233
- * Disable the scroll lock behavior.
1234
- * @default false
1235
- */
1236
- disableScrollLock: e.bool,
1237
- /**
1238
- * If `true`, the backdrop is not rendered.
1239
- * @default false
1240
- */
1241
- hideBackdrop: e.bool,
1242
- /**
1243
- * Always keep the children in the DOM.
1244
- * This prop can be useful in SEO situation or
1245
- * when you want to maximize the responsiveness of the Modal.
1246
- * @default false
1247
- */
1248
- keepMounted: e.bool,
1249
- /**
1250
- * Callback fired when the backdrop is clicked.
1251
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
1252
- */
1253
- onBackdropClick: e.func,
1254
- /**
1255
- * Callback fired when the component requests to be closed.
1256
- * The `reason` parameter can optionally be used to control the response to `onClose`.
1257
- *
1258
- * @param {object} event The event source of the callback.
1259
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
1260
- */
1261
- onClose: e.func,
1262
- /**
1263
- * If `true`, the component is shown.
1264
- */
1265
- open: e.bool.isRequired,
1266
- /**
1267
- * The props used for each slot inside the Modal.
1268
- * @default {}
1269
- */
1270
- slotProps: e.shape({
1271
- backdrop: e.oneOfType([e.func, e.object]),
1272
- root: e.oneOfType([e.func, e.object])
1273
- }),
1274
- /**
1275
- * The components used for each slot inside the Modal.
1276
- * Either a string to use a HTML element or a component.
1277
- * @default {}
1278
- */
1279
- slots: e.shape({
1280
- backdrop: e.elementType,
1281
- root: e.elementType
1282
- }),
1283
- /**
1284
- * The system prop that allows defining system overrides as well as additional CSS styles.
1285
- */
1286
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1287
- });
1288
- export {
1289
- Oe as B,
1290
- we as F,
1291
- le as H,
1292
- No as M,
1293
- Q as P,
1294
- qe as a,
1295
- J as b,
1296
- G as e,
1297
- Ge as g,
1298
- he as u
1299
- };