@hybridcore/ui 1.6.1 → 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 (231) 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-C5yquWAB.js +357 -0
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
  12. package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
  13. package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
  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-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
  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/logic.js +1 -1
  26. package/dist/components/button/index.js +10 -0
  27. package/dist/components/button/logic.js +26 -0
  28. package/dist/components/button/styled.js +9 -0
  29. package/dist/components/charts/_common/chart-error.js +19 -0
  30. package/dist/components/charts/candlestick/index.js +3 -3
  31. package/dist/components/charts/candlestick/logic.js +123 -113
  32. package/dist/components/charts/chart-wrapper/index.js +5 -5
  33. package/dist/components/charts/column-line-mix/index.js +9 -8
  34. package/dist/components/charts/column-line-mix/logic.js +68 -71
  35. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  36. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  37. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  38. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  39. package/dist/components/charts/heatmap/index.js +9 -8
  40. package/dist/components/charts/heatmap/logic.js +167 -173
  41. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  42. package/dist/components/charts/line/index.js +9 -8
  43. package/dist/components/charts/line/logic.js +74 -79
  44. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  45. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  46. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  47. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  48. package/dist/components/charts/nested-pie/index.js +9 -8
  49. package/dist/components/charts/nested-pie/logic.js +62 -68
  50. package/dist/components/charts/packed-circles/index.js +7 -6
  51. package/dist/components/charts/packed-circles/logic.js +50 -56
  52. package/dist/components/charts/pie-chart/index.js +9 -8
  53. package/dist/components/charts/pie-chart/logic.js +49 -54
  54. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  55. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  56. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  57. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  58. package/dist/components/charts/xy-chart/index.js +9 -8
  59. package/dist/components/charts/xy-chart/logic.js +56 -60
  60. package/dist/components/collapsible-card/index.js +11 -10
  61. package/dist/components/collapsible-card/styled.js +1 -1
  62. package/dist/components/color-picker/index.js +7120 -0
  63. package/dist/components/color-picker/logic.js +18 -0
  64. package/dist/components/color-picker/styled.js +7 -0
  65. package/dist/components/confirm/dialog.js +3 -3
  66. package/dist/components/confirm/index.js +1 -1
  67. package/dist/components/data-grid/index.js +22 -0
  68. package/dist/components/data-grid/logic.js +15 -0
  69. package/dist/components/data-grid/styled.js +20 -0
  70. package/dist/components/data-map/components/controls/index.js +4 -6
  71. package/dist/components/data-map/index.js +11 -11
  72. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  73. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  74. package/dist/components/data-security-selectors/security-level/index.js +18 -15
  75. package/dist/components/data-security-selectors/security-level/logic.js +18 -63
  76. package/dist/components/data-security-selectors/security-level/styled.js +23 -17
  77. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  78. package/dist/components/date-range-picker/index.js +2748 -0
  79. package/dist/components/date-range-picker/styled.js +14 -0
  80. package/dist/components/date-time-picker/index.js +45 -46
  81. package/dist/components/divider/index.js +11 -11
  82. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  83. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  84. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  85. package/dist/components/document-viewer/index.js +31 -39
  86. package/dist/components/document-viewer/logic.js +41 -34
  87. package/dist/components/document-viewer/styled.js +115 -27
  88. package/dist/components/duration-select/index.js +27 -0
  89. package/dist/components/duration-select/logic.js +21 -0
  90. package/dist/components/duration-select/styled.js +26 -0
  91. package/dist/components/editable-text/index.js +20 -0
  92. package/dist/components/editable-text/logic.js +18 -0
  93. package/dist/components/editable-text/styled.js +22 -0
  94. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  95. package/dist/components/geometry-picker/edit/index.js +18 -18
  96. package/dist/components/geometry-picker/geometry/index.js +67 -67
  97. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  98. package/dist/components/geometry-picker/index.js +69 -86
  99. package/dist/components/geometry-picker/kml/index.js +16 -16
  100. package/dist/components/geometry-picker/logic.js +50 -57
  101. package/dist/components/geometry-picker/map/index.js +8 -8
  102. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  103. package/dist/components/geometry-picker/parser/index.js +46 -50
  104. package/dist/components/geometry-picker/parser/styled.js +22 -4
  105. package/dist/components/geometry-picker/styled.js +97 -37
  106. package/dist/components/geometry-picker/wkt/index.js +13 -13
  107. package/dist/components/heat-map/components/controls/index.js +4 -6
  108. package/dist/components/heat-map/components/legend/index.js +15 -17
  109. package/dist/components/heat-map/index.js +7 -7
  110. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  111. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  112. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  113. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  114. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  115. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  116. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  117. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  118. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  119. package/dist/components/instance-form/components/variable/index.js +6 -9
  120. package/dist/components/instance-form/components/variables/index.js +48 -55
  121. package/dist/components/instance-form/helpers.js +9 -0
  122. package/dist/components/instance-form/index.js +402 -518
  123. package/dist/components/instance-form/logic.js +115 -0
  124. package/dist/components/instance-form/styled.js +487 -0
  125. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  126. package/dist/components/instance-variable-list/index.js +11 -11
  127. package/dist/components/map/index.js +28 -6
  128. package/dist/components/map/styled.js +1 -1
  129. package/dist/components/notification/index.js +67 -0
  130. package/dist/components/notification/logic.js +30 -0
  131. package/dist/components/notification/store.js +23 -0
  132. package/dist/components/notification/styled.js +52 -0
  133. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  134. package/dist/components/object-profile-card/index.js +19 -20
  135. package/dist/components/paginated-list/index.js +2 -3
  136. package/dist/components/placeholder/index.js +10 -0
  137. package/dist/components/placeholder/logic.js +12 -0
  138. package/dist/components/placeholder/styled.js +32 -0
  139. package/dist/components/positional-tooltip/index.js +24 -0
  140. package/dist/components/positional-tooltip/styled.js +17 -0
  141. package/dist/components/property-mapping/index.js +204 -423
  142. package/dist/components/property-mapping/logic.js +156 -0
  143. package/dist/components/property-mapping/styled.js +199 -0
  144. package/dist/components/prr-map/components/controls/index.js +4 -6
  145. package/dist/components/prr-map/components/legend/index.js +26 -28
  146. package/dist/components/prr-map/index.js +5 -5
  147. package/dist/components/range-selector/styled.js +1106 -1034
  148. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  149. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  150. package/dist/components/raster-grid-map/index.js +5 -5
  151. package/dist/components/scroll-drag/index.js +22 -0
  152. package/dist/components/scroll-drag/logic.js +39 -0
  153. package/dist/components/scroll-drag/styled.js +17 -0
  154. package/dist/components/search-input/logic.js +35 -33
  155. package/dist/components/simple-pivot-table/index.js +12 -12
  156. package/dist/components/sortable-list/index.js +599 -0
  157. package/dist/components/sortable-list/logic.js +18 -0
  158. package/dist/components/sortable-list/styled.js +38 -0
  159. package/dist/components/static-text/index.js +6 -6
  160. package/dist/components/stats-box/index.js +12 -0
  161. package/dist/components/stats-box/styled.js +36 -0
  162. package/dist/components/template-form/components/property-list/index.js +27 -26
  163. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  164. package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
  165. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  166. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  167. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
  168. package/dist/components/template-form/components/select-icon/index.js +24 -24
  169. package/dist/components/template-form/helpers.js +17 -0
  170. package/dist/components/template-form/index.js +270 -308
  171. package/dist/components/template-form/logic.js +69 -0
  172. package/dist/components/template-form/styled.js +84 -0
  173. package/dist/components/text-overflow/index.js +6 -0
  174. package/dist/components/text-overflow/styled.js +13 -0
  175. package/dist/components/timeline/index.js +12 -12
  176. package/dist/components/toggle-view-button/index.js +35 -0
  177. package/dist/components/toggle-view-button/logic.js +22 -0
  178. package/dist/components/toggle-view-button/styled.js +11 -0
  179. package/dist/components/tree-select/index.js +1 -1
  180. package/dist/components/visually-hidden-input/index.js +4 -0
  181. package/dist/components/visually-hidden-input/styled.js +18 -0
  182. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  183. package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
  184. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  185. package/dist/debounce-46wSf_lW.js +15 -0
  186. package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
  187. package/dist/formControlState-vgaj2ksH.js +10 -0
  188. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  189. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  190. package/dist/index-BtlzPygz.js +470 -0
  191. package/dist/index-DH6qsPBn.js +153 -0
  192. package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
  193. package/dist/main.d.ts +1054 -330
  194. package/dist/main.js +163 -130
  195. package/dist/ownerWindow-wg6foiOE.js +10 -0
  196. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  197. package/dist/styled-Db1RdcPA.js +323 -0
  198. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  199. package/dist/useFormControl-CatNKXAi.js +10 -0
  200. package/dist/useId-BW-oWmul.js +19 -0
  201. package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
  202. package/dist/useSlot-B_Q4vnX5.js +42 -0
  203. package/package.json +15 -7
  204. package/dist/AccordionSummary-CMg08YSA.js +0 -739
  205. package/dist/Add-DuVVJeQU.js +0 -380
  206. package/dist/ButtonBase-sObABYY2.js +0 -965
  207. package/dist/FormControl-BCurCxRj.js +0 -1294
  208. package/dist/FormControlLabel-BkRfrhNy.js +0 -601
  209. package/dist/InputAdornment-C7PEvvYr.js +0 -155
  210. package/dist/Modal-DlB6GH-f.js +0 -1659
  211. package/dist/Paper-q9kKjAKx.js +0 -527
  212. package/dist/TextField-DSDIEEKu.js +0 -3161
  213. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  214. package/dist/capitalize-quqpGCFu.js +0 -9
  215. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  216. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  217. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  218. package/dist/components/key-protection/index.js +0 -47
  219. package/dist/components/key-protection/logic.js +0 -40
  220. package/dist/components/key-protection/styled.js +0 -45
  221. package/dist/components/key-protection/utils.js +0 -10
  222. package/dist/createSvgIcon-BM3-TsGy.js +0 -70
  223. package/dist/index-BMS1Otro.js +0 -183
  224. package/dist/index-DPKUmQnz.js +0 -501
  225. package/dist/index-kCJ_Zvl8.js +0 -34
  226. package/dist/isMuiElement-BkJ72LB3.js +0 -26
  227. package/dist/property-list-form-DL_dEoNn.js +0 -381
  228. package/dist/styled-Bsjp3kFh.js +0 -668
  229. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  230. package/dist/useId-B4-oF9Mq.js +0 -34
  231. package/dist/utils-Cxu-fHjQ.js +0 -115
@@ -1,1659 +0,0 @@
1
- import { a as d, _ as K } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as c from "react";
3
- import { P as n } from "./index-C__OZmYy.js";
4
- import { c as V, g as ce, b as de, a as ue, s as q, r as He, u as pe } from "./styled-Bsjp3kFh.js";
5
- import { alpha as ee } from "@mui/system";
6
- import { jsxs as fe, jsx as $ } from "react/jsx-runtime";
7
- import { c as Oe, a as Z, u as ye, s as ge, b as xe, B as Ue } from "./ButtonBase-sObABYY2.js";
8
- import { c as B } from "./capitalize-quqpGCFu.js";
9
- import { u as Ke, T as qe, r as Ge, g as Ee } from "./Paper-q9kKjAKx.js";
10
- import { o as j, a as be, c as Te } from "./useId-B4-oF9Mq.js";
11
- import * as Ye from "react-dom";
12
- function Ze(e) {
13
- const {
14
- prototype: o = {}
15
- } = e;
16
- return !!o.isReactComponent;
17
- }
18
- function Ne(e, o, r, t, i) {
19
- const s = e[o], a = i || o;
20
- if (s == null || // When server-side rendering React doesn't warn either.
21
- // This is not an accurate check for SSR.
22
- // This is only in place for Emotion compat.
23
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
24
- typeof window > "u")
25
- return null;
26
- let l;
27
- const u = s.type;
28
- return typeof u == "function" && !Ze(u) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${t} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
29
- }
30
- const X = Oe(n.element, Ne);
31
- X.isRequired = Oe(n.element.isRequired, Ne);
32
- const Xe = "exact-prop: ​";
33
- function Ie(e) {
34
- return process.env.NODE_ENV === "production" ? e : d({}, e, {
35
- [Xe]: (o) => {
36
- const r = Object.keys(o).filter((t) => !e.hasOwnProperty(t));
37
- return r.length > 0 ? new Error(`The following props are not supported: ${r.map((t) => `\`${t}\``).join(", ")}. Please remove them.`) : null;
38
- }
39
- });
40
- }
41
- function me(e, o, r, t, i) {
42
- if (process.env.NODE_ENV === "production")
43
- return null;
44
- const s = e[o], a = i || o;
45
- return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${t} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
46
- }
47
- function Je(e) {
48
- const o = e.documentElement.clientWidth;
49
- return Math.abs(window.innerWidth - o);
50
- }
51
- function Se(e, o) {
52
- const r = d({}, o);
53
- return Object.keys(e).forEach((t) => {
54
- if (t.toString().match(/^(components|slots)$/))
55
- r[t] = d({}, e[t], r[t]);
56
- else if (t.toString().match(/^(componentsProps|slotProps)$/)) {
57
- const i = e[t] || {}, s = o[t];
58
- r[t] = {}, !s || !Object.keys(s) ? r[t] = i : !i || !Object.keys(i) ? r[t] = s : (r[t] = d({}, s), Object.keys(i).forEach((a) => {
59
- r[t][a] = Se(i[a], s[a]);
60
- }));
61
- } else r[t] === void 0 && (r[t] = e[t]);
62
- }), r;
63
- }
64
- function $e(e) {
65
- return typeof e == "string";
66
- }
67
- function Qe(e, o, r) {
68
- return e === void 0 || $e(e) ? o : d({}, o, {
69
- ownerState: d({}, o.ownerState, r)
70
- });
71
- }
72
- const eo = {
73
- disableDefaultClasses: !1
74
- }, oo = /* @__PURE__ */ c.createContext(eo);
75
- function no(e) {
76
- const {
77
- disableDefaultClasses: o
78
- } = c.useContext(oo);
79
- return (r) => o ? "" : e(r);
80
- }
81
- function to(e, o = []) {
82
- if (e === void 0)
83
- return {};
84
- const r = {};
85
- return Object.keys(e).filter((t) => t.match(/^on[A-Z]/) && typeof e[t] == "function" && !o.includes(t)).forEach((t) => {
86
- r[t] = e[t];
87
- }), r;
88
- }
89
- function le(e, o) {
90
- return typeof e == "function" ? e(o) : e;
91
- }
92
- function ke(e) {
93
- if (e === void 0)
94
- return {};
95
- const o = {};
96
- return Object.keys(e).filter((r) => !(r.match(/^on[A-Z]/) && typeof e[r] == "function")).forEach((r) => {
97
- o[r] = e[r];
98
- }), o;
99
- }
100
- function ro(e) {
101
- const {
102
- getSlotProps: o,
103
- additionalProps: r,
104
- externalSlotProps: t,
105
- externalForwardedProps: i,
106
- className: s
107
- } = e;
108
- if (!o) {
109
- const x = V(i == null ? void 0 : i.className, t == null ? void 0 : t.className, s, r == null ? void 0 : r.className), b = d({}, r == null ? void 0 : r.style, i == null ? void 0 : i.style, t == null ? void 0 : t.style), P = d({}, r, i, t);
110
- return x.length > 0 && (P.className = x), Object.keys(b).length > 0 && (P.style = b), {
111
- props: P,
112
- internalRef: void 0
113
- };
114
- }
115
- const a = to(d({}, i, t)), l = ke(t), u = ke(i), f = o(a), g = V(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 = d({}, f == null ? void 0 : f.style, r == null ? void 0 : r.style, i == null ? void 0 : i.style, t == null ? void 0 : t.style), m = d({}, f, r, u, l);
116
- return g.length > 0 && (m.className = g), Object.keys(y).length > 0 && (m.style = y), {
117
- props: m,
118
- internalRef: f.ref
119
- };
120
- }
121
- const so = ["elementType", "externalSlotProps", "ownerState"];
122
- function Re(e) {
123
- var o;
124
- const {
125
- elementType: r,
126
- externalSlotProps: t,
127
- ownerState: i
128
- } = e, s = K(e, so), a = le(t, i), {
129
- props: l,
130
- internalRef: u
131
- } = ro(d({}, s, {
132
- externalSlotProps: a
133
- })), f = Z(u, a == null ? void 0 : a.ref, (o = e.additionalProps) == null ? void 0 : o.ref);
134
- return Qe(r, d({}, l, {
135
- ref: f
136
- }), i);
137
- }
138
- const io = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
139
- function ao(e) {
140
- const o = parseInt(e.getAttribute("tabindex") || "", 10);
141
- return Number.isNaN(o) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : o;
142
- }
143
- function lo(e) {
144
- if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
145
- return !1;
146
- const o = (t) => e.ownerDocument.querySelector(`input[type="radio"]${t}`);
147
- let r = o(`[name="${e.name}"]:checked`);
148
- return r || (r = o(`[name="${e.name}"]`)), r !== e;
149
- }
150
- function co(e) {
151
- return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || lo(e));
152
- }
153
- function uo(e) {
154
- const o = [], r = [];
155
- return Array.from(e.querySelectorAll(io)).forEach((t, i) => {
156
- const s = ao(t);
157
- s === -1 || !co(t) || (s === 0 ? o.push(t) : r.push({
158
- documentOrder: i,
159
- tabIndex: s,
160
- node: t
161
- }));
162
- }), r.sort((t, i) => t.tabIndex === i.tabIndex ? t.documentOrder - i.documentOrder : t.tabIndex - i.tabIndex).map((t) => t.node).concat(o);
163
- }
164
- function po() {
165
- return !0;
166
- }
167
- function ne(e) {
168
- const {
169
- children: o,
170
- disableAutoFocus: r = !1,
171
- disableEnforceFocus: t = !1,
172
- disableRestoreFocus: i = !1,
173
- getTabbable: s = uo,
174
- isEnabled: a = po,
175
- open: l
176
- } = e, u = c.useRef(!1), f = c.useRef(null), g = c.useRef(null), y = c.useRef(null), m = c.useRef(null), x = c.useRef(!1), b = c.useRef(null), P = Z(o.ref, b), C = c.useRef(null);
177
- c.useEffect(() => {
178
- !l || !b.current || (x.current = !r);
179
- }, [r, l]), c.useEffect(() => {
180
- if (!l || !b.current)
181
- return;
182
- const p = j(b.current);
183
- return b.current.contains(p.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(`
184
- `)), b.current.setAttribute("tabIndex", "-1")), x.current && b.current.focus()), () => {
185
- i || (y.current && y.current.focus && (u.current = !0, y.current.focus()), y.current = null);
186
- };
187
- }, [l]), c.useEffect(() => {
188
- if (!l || !b.current)
189
- return;
190
- const p = j(b.current), E = (N) => {
191
- const {
192
- current: F
193
- } = b;
194
- if (F !== null) {
195
- if (!p.hasFocus() || t || !a() || u.current) {
196
- u.current = !1;
197
- return;
198
- }
199
- if (!F.contains(p.activeElement)) {
200
- if (N && m.current !== N.target || p.activeElement !== m.current)
201
- m.current = null;
202
- else if (m.current !== null)
203
- return;
204
- if (!x.current)
205
- return;
206
- let I = [];
207
- if ((p.activeElement === f.current || p.activeElement === g.current) && (I = s(b.current)), I.length > 0) {
208
- var w, D;
209
- const M = !!((w = C.current) != null && w.shiftKey && ((D = C.current) == null ? void 0 : D.key) === "Tab"), A = I[0], h = I[I.length - 1];
210
- typeof A != "string" && typeof h != "string" && (M ? h.focus() : A.focus());
211
- } else
212
- F.focus();
213
- }
214
- }
215
- }, v = (N) => {
216
- C.current = N, !(t || !a() || N.key !== "Tab") && p.activeElement === b.current && N.shiftKey && (u.current = !0, g.current && g.current.focus());
217
- };
218
- p.addEventListener("focusin", E), p.addEventListener("keydown", v, !0);
219
- const k = setInterval(() => {
220
- p.activeElement && p.activeElement.tagName === "BODY" && E(null);
221
- }, 50);
222
- return () => {
223
- clearInterval(k), p.removeEventListener("focusin", E), p.removeEventListener("keydown", v, !0);
224
- };
225
- }, [r, t, i, a, l, s]);
226
- const T = (p) => {
227
- y.current === null && (y.current = p.relatedTarget), x.current = !0, m.current = p.target;
228
- const E = o.props.onFocus;
229
- E && E(p);
230
- }, O = (p) => {
231
- y.current === null && (y.current = p.relatedTarget), x.current = !0;
232
- };
233
- return /* @__PURE__ */ fe(c.Fragment, {
234
- children: [/* @__PURE__ */ $("div", {
235
- tabIndex: l ? 0 : -1,
236
- onFocus: O,
237
- ref: f,
238
- "data-testid": "sentinelStart"
239
- }), /* @__PURE__ */ c.cloneElement(o, {
240
- ref: P,
241
- onFocus: T
242
- }), /* @__PURE__ */ $("div", {
243
- tabIndex: l ? 0 : -1,
244
- onFocus: O,
245
- ref: g,
246
- "data-testid": "sentinelEnd"
247
- })]
248
- });
249
- }
250
- process.env.NODE_ENV !== "production" && (ne.propTypes = {
251
- // ----------------------------- Warning --------------------------------
252
- // | These PropTypes are generated from the TypeScript type definitions |
253
- // | To update them edit TypeScript types and run "yarn proptypes" |
254
- // ----------------------------------------------------------------------
255
- /**
256
- * A single child content element.
257
- */
258
- children: X,
259
- /**
260
- * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
261
- * replace it to the last focused element when it closes.
262
- * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
263
- *
264
- * Generally this should never be set to `true` as it makes the focus trap less
265
- * accessible to assistive technologies, like screen readers.
266
- * @default false
267
- */
268
- disableAutoFocus: n.bool,
269
- /**
270
- * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
271
- *
272
- * Generally this should never be set to `true` as it makes the focus trap less
273
- * accessible to assistive technologies, like screen readers.
274
- * @default false
275
- */
276
- disableEnforceFocus: n.bool,
277
- /**
278
- * If `true`, the focus trap will not restore focus to previously focused element once
279
- * focus trap is hidden or unmounted.
280
- * @default false
281
- */
282
- disableRestoreFocus: n.bool,
283
- /**
284
- * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
285
- * For instance, you can provide the "tabbable" npm dependency.
286
- * @param {HTMLElement} root
287
- */
288
- getTabbable: n.func,
289
- /**
290
- * This prop extends the `open` prop.
291
- * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
292
- * This prop should be memoized.
293
- * It can be used to support multiple focus trap mounted at the same time.
294
- * @default function defaultIsEnabled(): boolean {
295
- * return true;
296
- * }
297
- */
298
- isEnabled: n.func,
299
- /**
300
- * If `true`, focus is locked.
301
- */
302
- open: n.bool.isRequired
303
- });
304
- process.env.NODE_ENV !== "production" && (ne.propTypes = Ie(ne.propTypes));
305
- function fo(e) {
306
- return typeof e == "function" ? e() : e;
307
- }
308
- const te = /* @__PURE__ */ c.forwardRef(function(o, r) {
309
- const {
310
- children: t,
311
- container: i,
312
- disablePortal: s = !1
313
- } = o, [a, l] = c.useState(null), u = Z(/* @__PURE__ */ c.isValidElement(t) ? t.ref : null, r);
314
- if (ye(() => {
315
- s || l(fo(i) || document.body);
316
- }, [i, s]), ye(() => {
317
- if (a && !s)
318
- return ge(r, a), () => {
319
- ge(r, null);
320
- };
321
- }, [r, a, s]), s) {
322
- if (/* @__PURE__ */ c.isValidElement(t)) {
323
- const f = {
324
- ref: u
325
- };
326
- return /* @__PURE__ */ c.cloneElement(t, f);
327
- }
328
- return /* @__PURE__ */ $(c.Fragment, {
329
- children: t
330
- });
331
- }
332
- return /* @__PURE__ */ $(c.Fragment, {
333
- children: a && /* @__PURE__ */ Ye.createPortal(t, a)
334
- });
335
- });
336
- process.env.NODE_ENV !== "production" && (te.propTypes = {
337
- // ----------------------------- Warning --------------------------------
338
- // | These PropTypes are generated from the TypeScript type definitions |
339
- // | To update them edit TypeScript types and run "yarn proptypes" |
340
- // ----------------------------------------------------------------------
341
- /**
342
- * The children to render into the `container`.
343
- */
344
- children: n.node,
345
- /**
346
- * An HTML element or function that returns one.
347
- * The `container` will have the portal children appended to it.
348
- *
349
- * By default, it uses the body of the top-level document object,
350
- * so it's simply `document.body` most of the time.
351
- */
352
- container: n.oneOfType([me, n.func]),
353
- /**
354
- * The `children` will be under the DOM hierarchy of the parent component.
355
- * @default false
356
- */
357
- disablePortal: n.bool
358
- });
359
- process.env.NODE_ENV !== "production" && (te.propTypes = Ie(te.propTypes));
360
- function bo(e) {
361
- const o = j(e);
362
- return o.body === e ? be(e).innerWidth > o.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
363
- }
364
- function Y(e, o) {
365
- o ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
366
- }
367
- function Pe(e) {
368
- return parseInt(be(e).getComputedStyle(e).paddingRight, 10) || 0;
369
- }
370
- function mo(e) {
371
- const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(e.tagName) !== -1, t = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
372
- return r || t;
373
- }
374
- function Ce(e, o, r, t, i) {
375
- const s = [o, r, ...t];
376
- [].forEach.call(e.children, (a) => {
377
- const l = s.indexOf(a) === -1, u = !mo(a);
378
- l && u && Y(a, i);
379
- });
380
- }
381
- function ae(e, o) {
382
- let r = -1;
383
- return e.some((t, i) => o(t) ? (r = i, !0) : !1), r;
384
- }
385
- function ho(e, o) {
386
- const r = [], t = e.container;
387
- if (!o.disableScrollLock) {
388
- if (bo(t)) {
389
- const a = Je(j(t));
390
- r.push({
391
- value: t.style.paddingRight,
392
- property: "padding-right",
393
- el: t
394
- }), t.style.paddingRight = `${Pe(t) + a}px`;
395
- const l = j(t).querySelectorAll(".mui-fixed");
396
- [].forEach.call(l, (u) => {
397
- r.push({
398
- value: u.style.paddingRight,
399
- property: "padding-right",
400
- el: u
401
- }), u.style.paddingRight = `${Pe(u) + a}px`;
402
- });
403
- }
404
- let s;
405
- if (t.parentNode instanceof DocumentFragment)
406
- s = j(t).body;
407
- else {
408
- const a = t.parentElement, l = be(t);
409
- s = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : t;
410
- }
411
- r.push({
412
- value: s.style.overflow,
413
- property: "overflow",
414
- el: s
415
- }, {
416
- value: s.style.overflowX,
417
- property: "overflow-x",
418
- el: s
419
- }, {
420
- value: s.style.overflowY,
421
- property: "overflow-y",
422
- el: s
423
- }), s.style.overflow = "hidden";
424
- }
425
- return () => {
426
- r.forEach(({
427
- value: s,
428
- el: a,
429
- property: l
430
- }) => {
431
- s ? a.style.setProperty(l, s) : a.style.removeProperty(l);
432
- });
433
- };
434
- }
435
- function vo(e) {
436
- const o = [];
437
- return [].forEach.call(e.children, (r) => {
438
- r.getAttribute("aria-hidden") === "true" && o.push(r);
439
- }), o;
440
- }
441
- class yo {
442
- constructor() {
443
- this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
444
- }
445
- add(o, r) {
446
- let t = this.modals.indexOf(o);
447
- if (t !== -1)
448
- return t;
449
- t = this.modals.length, this.modals.push(o), o.modalRef && Y(o.modalRef, !1);
450
- const i = vo(r);
451
- Ce(r, o.mount, o.modalRef, i, !0);
452
- const s = ae(this.containers, (a) => a.container === r);
453
- return s !== -1 ? (this.containers[s].modals.push(o), t) : (this.containers.push({
454
- modals: [o],
455
- container: r,
456
- restore: null,
457
- hiddenSiblings: i
458
- }), t);
459
- }
460
- mount(o, r) {
461
- const t = ae(this.containers, (s) => s.modals.indexOf(o) !== -1), i = this.containers[t];
462
- i.restore || (i.restore = ho(i, r));
463
- }
464
- remove(o, r = !0) {
465
- const t = this.modals.indexOf(o);
466
- if (t === -1)
467
- return t;
468
- const i = ae(this.containers, (a) => a.modals.indexOf(o) !== -1), s = this.containers[i];
469
- if (s.modals.splice(s.modals.indexOf(o), 1), this.modals.splice(t, 1), s.modals.length === 0)
470
- s.restore && s.restore(), o.modalRef && Y(o.modalRef, r), Ce(s.container, o.mount, o.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
471
- else {
472
- const a = s.modals[s.modals.length - 1];
473
- a.modalRef && Y(a.modalRef, !1);
474
- }
475
- return t;
476
- }
477
- isTopModal(o) {
478
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === o;
479
- }
480
- }
481
- function go(e) {
482
- return de("MuiModal", e);
483
- }
484
- ce("MuiModal", ["root", "hidden", "backdrop"]);
485
- const xo = ["children", "closeAfterTransition", "component", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"], Eo = (e) => {
486
- const {
487
- open: o,
488
- exited: r
489
- } = e;
490
- return ue({
491
- root: ["root", !o && r && "hidden"],
492
- backdrop: ["backdrop"]
493
- }, no(go));
494
- };
495
- function To(e) {
496
- return typeof e == "function" ? e() : e;
497
- }
498
- function ko(e) {
499
- return e ? e.props.hasOwnProperty("in") : !1;
500
- }
501
- const Ro = new yo(), Fe = /* @__PURE__ */ c.forwardRef(function(o, r) {
502
- var t, i;
503
- const {
504
- children: s,
505
- closeAfterTransition: a = !1,
506
- component: l,
507
- container: u,
508
- disableAutoFocus: f = !1,
509
- disableEnforceFocus: g = !1,
510
- disableEscapeKeyDown: y = !1,
511
- disablePortal: m = !1,
512
- disableRestoreFocus: x = !1,
513
- disableScrollLock: b = !1,
514
- hideBackdrop: P = !1,
515
- keepMounted: C = !1,
516
- // private
517
- manager: T = Ro,
518
- onBackdropClick: O,
519
- onClose: p,
520
- onKeyDown: E,
521
- open: v,
522
- onTransitionEnter: k,
523
- onTransitionExited: N,
524
- slotProps: F = {},
525
- slots: w = {}
526
- } = o, D = K(o, xo), [I, M] = c.useState(!v), A = c.useRef({}), h = c.useRef(null), R = c.useRef(null), z = Z(R, r), _ = ko(s), L = (t = o["aria-hidden"]) != null ? t : !0, J = () => j(h.current), W = () => (A.current.modalRef = R.current, A.current.mountNode = h.current, A.current), H = () => {
527
- T.mount(W(), {
528
- disableScrollLock: b
529
- }), R.current && (R.current.scrollTop = 0);
530
- }, U = xe(() => {
531
- const S = To(u) || J().body;
532
- T.add(W(), S), R.current && H();
533
- }), re = c.useCallback(() => T.isTopModal(W()), [T]), Ae = xe((S) => {
534
- h.current = S, !(!S || !R.current) && (v && re() ? H() : Y(R.current, L));
535
- }), G = c.useCallback(() => {
536
- T.remove(W(), L);
537
- }, [T, L]);
538
- c.useEffect(() => () => {
539
- G();
540
- }, [G]), c.useEffect(() => {
541
- v ? U() : (!_ || !a) && G();
542
- }, [v, G, _, a, U]);
543
- const se = d({}, o, {
544
- closeAfterTransition: a,
545
- disableAutoFocus: f,
546
- disableEnforceFocus: g,
547
- disableEscapeKeyDown: y,
548
- disablePortal: m,
549
- disableRestoreFocus: x,
550
- disableScrollLock: b,
551
- exited: I,
552
- hideBackdrop: P,
553
- keepMounted: C
554
- }), he = Eo(se), De = () => {
555
- M(!1), k && k();
556
- }, Le = () => {
557
- M(!0), N && N(), a && G();
558
- }, _e = (S) => {
559
- S.target === S.currentTarget && (O && O(S), p && p(S, "backdropClick"));
560
- }, je = (S) => {
561
- E && E(S), !(S.key !== "Escape" || !re()) && (y || (S.stopPropagation(), p && p(S, "escapeKeyDown")));
562
- }, Q = {};
563
- s.props.tabIndex === void 0 && (Q.tabIndex = "-1"), _ && (Q.onEnter = Te(De, s.props.onEnter), Q.onExited = Te(Le, s.props.onExited));
564
- const ve = (i = l ?? w.root) != null ? i : "div", Ve = Re({
565
- elementType: ve,
566
- externalSlotProps: F.root,
567
- externalForwardedProps: D,
568
- additionalProps: {
569
- ref: z,
570
- role: "presentation",
571
- onKeyDown: je
572
- },
573
- className: he.root,
574
- ownerState: se
575
- }), ie = w.backdrop, We = Re({
576
- elementType: ie,
577
- externalSlotProps: F.backdrop,
578
- additionalProps: {
579
- "aria-hidden": !0,
580
- onClick: _e,
581
- open: v
582
- },
583
- className: he.backdrop,
584
- ownerState: se
585
- });
586
- return !C && !v && (!_ || I) ? null : /* @__PURE__ */ $(
587
- te,
588
- {
589
- ref: Ae,
590
- container: u,
591
- disablePortal: m,
592
- children: /* @__PURE__ */ fe(ve, d({}, Ve, {
593
- children: [!P && ie ? /* @__PURE__ */ $(ie, d({}, We)) : null, /* @__PURE__ */ $(ne, {
594
- disableEnforceFocus: g,
595
- disableAutoFocus: f,
596
- disableRestoreFocus: x,
597
- isEnabled: re,
598
- open: v,
599
- children: /* @__PURE__ */ c.cloneElement(s, Q)
600
- })]
601
- }))
602
- }
603
- );
604
- });
605
- process.env.NODE_ENV !== "production" && (Fe.propTypes = {
606
- // ----------------------------- Warning --------------------------------
607
- // | These PropTypes are generated from the TypeScript type definitions |
608
- // | To update them edit TypeScript types and run "yarn proptypes" |
609
- // ----------------------------------------------------------------------
610
- /**
611
- * A single child content element.
612
- */
613
- children: X.isRequired,
614
- /**
615
- * When set to true the Modal waits until a nested Transition is completed before closing.
616
- * @default false
617
- */
618
- closeAfterTransition: n.bool,
619
- /**
620
- * The component used for the root node.
621
- * Either a string to use a HTML element or a component.
622
- */
623
- component: n.elementType,
624
- /**
625
- * An HTML element or function that returns one.
626
- * The `container` will have the portal children appended to it.
627
- *
628
- * By default, it uses the body of the top-level document object,
629
- * so it's simply `document.body` most of the time.
630
- */
631
- container: n.oneOfType([me, n.func]),
632
- /**
633
- * If `true`, the modal will not automatically shift focus to itself when it opens, and
634
- * replace it to the last focused element when it closes.
635
- * This also works correctly with any modal children that have the `disableAutoFocus` prop.
636
- *
637
- * Generally this should never be set to `true` as it makes the modal less
638
- * accessible to assistive technologies, like screen readers.
639
- * @default false
640
- */
641
- disableAutoFocus: n.bool,
642
- /**
643
- * If `true`, the modal will not prevent focus from leaving the modal while open.
644
- *
645
- * Generally this should never be set to `true` as it makes the modal less
646
- * accessible to assistive technologies, like screen readers.
647
- * @default false
648
- */
649
- disableEnforceFocus: n.bool,
650
- /**
651
- * If `true`, hitting escape will not fire the `onClose` callback.
652
- * @default false
653
- */
654
- disableEscapeKeyDown: n.bool,
655
- /**
656
- * The `children` will be under the DOM hierarchy of the parent component.
657
- * @default false
658
- */
659
- disablePortal: n.bool,
660
- /**
661
- * If `true`, the modal will not restore focus to previously focused element once
662
- * modal is hidden or unmounted.
663
- * @default false
664
- */
665
- disableRestoreFocus: n.bool,
666
- /**
667
- * Disable the scroll lock behavior.
668
- * @default false
669
- */
670
- disableScrollLock: n.bool,
671
- /**
672
- * If `true`, the backdrop is not rendered.
673
- * @default false
674
- */
675
- hideBackdrop: n.bool,
676
- /**
677
- * Always keep the children in the DOM.
678
- * This prop can be useful in SEO situation or
679
- * when you want to maximize the responsiveness of the Modal.
680
- * @default false
681
- */
682
- keepMounted: n.bool,
683
- /**
684
- * Callback fired when the backdrop is clicked.
685
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
686
- */
687
- onBackdropClick: n.func,
688
- /**
689
- * Callback fired when the component requests to be closed.
690
- * The `reason` parameter can optionally be used to control the response to `onClose`.
691
- *
692
- * @param {object} event The event source of the callback.
693
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
694
- */
695
- onClose: n.func,
696
- /**
697
- * @ignore
698
- */
699
- onKeyDown: n.func,
700
- /**
701
- * If `true`, the component is shown.
702
- */
703
- open: n.bool.isRequired,
704
- /**
705
- * The props used for each slot inside the Modal.
706
- * @default {}
707
- */
708
- slotProps: n.shape({
709
- backdrop: n.oneOfType([n.func, n.object]),
710
- root: n.oneOfType([n.func, n.object])
711
- }),
712
- /**
713
- * The components used for each slot inside the Modal.
714
- * Either a string to use a HTML element or a component.
715
- * @default {}
716
- */
717
- slots: n.shape({
718
- backdrop: n.elementType,
719
- root: n.elementType
720
- })
721
- });
722
- function Po(e) {
723
- return de("MuiButton", e);
724
- }
725
- const oe = ce("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), Me = /* @__PURE__ */ c.createContext({});
726
- process.env.NODE_ENV !== "production" && (Me.displayName = "ButtonGroupContext");
727
- const Co = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], Oo = (e) => {
728
- const {
729
- color: o,
730
- disableElevation: r,
731
- fullWidth: t,
732
- size: i,
733
- variant: s,
734
- classes: a
735
- } = e, l = {
736
- root: ["root", s, `${s}${B(o)}`, `size${B(i)}`, `${s}Size${B(i)}`, o === "inherit" && "colorInherit", r && "disableElevation", t && "fullWidth"],
737
- label: ["label"],
738
- startIcon: ["startIcon", `iconSize${B(i)}`],
739
- endIcon: ["endIcon", `iconSize${B(i)}`]
740
- }, u = ue(l, Po, a);
741
- return d({}, a, u);
742
- }, ze = (e) => d({}, e.size === "small" && {
743
- "& > *:nth-of-type(1)": {
744
- fontSize: 18
745
- }
746
- }, e.size === "medium" && {
747
- "& > *:nth-of-type(1)": {
748
- fontSize: 20
749
- }
750
- }, e.size === "large" && {
751
- "& > *:nth-of-type(1)": {
752
- fontSize: 22
753
- }
754
- }), No = q(Ue, {
755
- shouldForwardProp: (e) => He(e) || e === "classes",
756
- name: "MuiButton",
757
- slot: "Root",
758
- overridesResolver: (e, o) => {
759
- const {
760
- ownerState: r
761
- } = e;
762
- return [o.root, o[r.variant], o[`${r.variant}${B(r.color)}`], o[`size${B(r.size)}`], o[`${r.variant}Size${B(r.size)}`], r.color === "inherit" && o.colorInherit, r.disableElevation && o.disableElevation, r.fullWidth && o.fullWidth];
763
- }
764
- })(({
765
- theme: e,
766
- ownerState: o
767
- }) => {
768
- var r, t;
769
- return d({}, e.typography.button, {
770
- minWidth: 64,
771
- padding: "6px 16px",
772
- borderRadius: (e.vars || e).shape.borderRadius,
773
- transition: e.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
774
- duration: e.transitions.duration.short
775
- }),
776
- "&:hover": d({
777
- textDecoration: "none",
778
- backgroundColor: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` : ee(e.palette.text.primary, e.palette.action.hoverOpacity),
779
- // Reset on touch devices, it doesn't add specificity
780
- "@media (hover: none)": {
781
- backgroundColor: "transparent"
782
- }
783
- }, o.variant === "text" && o.color !== "inherit" && {
784
- backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : ee(e.palette[o.color].main, e.palette.action.hoverOpacity),
785
- // Reset on touch devices, it doesn't add specificity
786
- "@media (hover: none)": {
787
- backgroundColor: "transparent"
788
- }
789
- }, o.variant === "outlined" && o.color !== "inherit" && {
790
- border: `1px solid ${(e.vars || e).palette[o.color].main}`,
791
- backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : ee(e.palette[o.color].main, e.palette.action.hoverOpacity),
792
- // Reset on touch devices, it doesn't add specificity
793
- "@media (hover: none)": {
794
- backgroundColor: "transparent"
795
- }
796
- }, o.variant === "contained" && {
797
- backgroundColor: (e.vars || e).palette.grey.A100,
798
- boxShadow: (e.vars || e).shadows[4],
799
- // Reset on touch devices, it doesn't add specificity
800
- "@media (hover: none)": {
801
- boxShadow: (e.vars || e).shadows[2],
802
- backgroundColor: (e.vars || e).palette.grey[300]
803
- }
804
- }, o.variant === "contained" && o.color !== "inherit" && {
805
- backgroundColor: (e.vars || e).palette[o.color].dark,
806
- // Reset on touch devices, it doesn't add specificity
807
- "@media (hover: none)": {
808
- backgroundColor: (e.vars || e).palette[o.color].main
809
- }
810
- }),
811
- "&:active": d({}, o.variant === "contained" && {
812
- boxShadow: (e.vars || e).shadows[8]
813
- }),
814
- [`&.${oe.focusVisible}`]: d({}, o.variant === "contained" && {
815
- boxShadow: (e.vars || e).shadows[6]
816
- }),
817
- [`&.${oe.disabled}`]: d({
818
- color: (e.vars || e).palette.action.disabled
819
- }, o.variant === "outlined" && {
820
- border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
821
- }, o.variant === "contained" && {
822
- color: (e.vars || e).palette.action.disabled,
823
- boxShadow: (e.vars || e).shadows[0],
824
- backgroundColor: (e.vars || e).palette.action.disabledBackground
825
- })
826
- }, o.variant === "text" && {
827
- padding: "6px 8px"
828
- }, o.variant === "text" && o.color !== "inherit" && {
829
- color: (e.vars || e).palette[o.color].main
830
- }, o.variant === "outlined" && {
831
- padding: "5px 15px",
832
- border: "1px solid currentColor"
833
- }, o.variant === "outlined" && o.color !== "inherit" && {
834
- color: (e.vars || e).palette[o.color].main,
835
- border: e.vars ? `1px solid rgba(${e.vars.palette[o.color].mainChannel} / 0.5)` : `1px solid ${ee(e.palette[o.color].main, 0.5)}`
836
- }, o.variant === "contained" && {
837
- color: e.vars ? (
838
- // this is safe because grey does not change between default light/dark mode
839
- e.vars.palette.text.primary
840
- ) : (r = (t = e.palette).getContrastText) == null ? void 0 : r.call(t, e.palette.grey[300]),
841
- backgroundColor: (e.vars || e).palette.grey[300],
842
- boxShadow: (e.vars || e).shadows[2]
843
- }, o.variant === "contained" && o.color !== "inherit" && {
844
- color: (e.vars || e).palette[o.color].contrastText,
845
- backgroundColor: (e.vars || e).palette[o.color].main
846
- }, o.color === "inherit" && {
847
- color: "inherit",
848
- borderColor: "currentColor"
849
- }, o.size === "small" && o.variant === "text" && {
850
- padding: "4px 5px",
851
- fontSize: e.typography.pxToRem(13)
852
- }, o.size === "large" && o.variant === "text" && {
853
- padding: "8px 11px",
854
- fontSize: e.typography.pxToRem(15)
855
- }, o.size === "small" && o.variant === "outlined" && {
856
- padding: "3px 9px",
857
- fontSize: e.typography.pxToRem(13)
858
- }, o.size === "large" && o.variant === "outlined" && {
859
- padding: "7px 21px",
860
- fontSize: e.typography.pxToRem(15)
861
- }, o.size === "small" && o.variant === "contained" && {
862
- padding: "4px 10px",
863
- fontSize: e.typography.pxToRem(13)
864
- }, o.size === "large" && o.variant === "contained" && {
865
- padding: "8px 22px",
866
- fontSize: e.typography.pxToRem(15)
867
- }, o.fullWidth && {
868
- width: "100%"
869
- });
870
- }, ({
871
- ownerState: e
872
- }) => e.disableElevation && {
873
- boxShadow: "none",
874
- "&:hover": {
875
- boxShadow: "none"
876
- },
877
- [`&.${oe.focusVisible}`]: {
878
- boxShadow: "none"
879
- },
880
- "&:active": {
881
- boxShadow: "none"
882
- },
883
- [`&.${oe.disabled}`]: {
884
- boxShadow: "none"
885
- }
886
- }), Io = q("span", {
887
- name: "MuiButton",
888
- slot: "StartIcon",
889
- overridesResolver: (e, o) => {
890
- const {
891
- ownerState: r
892
- } = e;
893
- return [o.startIcon, o[`iconSize${B(r.size)}`]];
894
- }
895
- })(({
896
- ownerState: e
897
- }) => d({
898
- display: "inherit",
899
- marginRight: 8,
900
- marginLeft: -4
901
- }, e.size === "small" && {
902
- marginLeft: -2
903
- }, ze(e))), So = q("span", {
904
- name: "MuiButton",
905
- slot: "EndIcon",
906
- overridesResolver: (e, o) => {
907
- const {
908
- ownerState: r
909
- } = e;
910
- return [o.endIcon, o[`iconSize${B(r.size)}`]];
911
- }
912
- })(({
913
- ownerState: e
914
- }) => d({
915
- display: "inherit",
916
- marginRight: -4,
917
- marginLeft: 8
918
- }, e.size === "small" && {
919
- marginRight: -2
920
- }, ze(e))), $o = /* @__PURE__ */ c.forwardRef(function(o, r) {
921
- const t = c.useContext(Me), i = Se(t, o), s = pe({
922
- props: i,
923
- name: "MuiButton"
924
- }), {
925
- children: a,
926
- color: l = "primary",
927
- component: u = "button",
928
- className: f,
929
- disabled: g = !1,
930
- disableElevation: y = !1,
931
- disableFocusRipple: m = !1,
932
- endIcon: x,
933
- focusVisibleClassName: b,
934
- fullWidth: P = !1,
935
- size: C = "medium",
936
- startIcon: T,
937
- type: O,
938
- variant: p = "text"
939
- } = s, E = K(s, Co), v = d({}, s, {
940
- color: l,
941
- component: u,
942
- disabled: g,
943
- disableElevation: y,
944
- disableFocusRipple: m,
945
- fullWidth: P,
946
- size: C,
947
- type: O,
948
- variant: p
949
- }), k = Oo(v), N = T && /* @__PURE__ */ $(Io, {
950
- className: k.startIcon,
951
- ownerState: v,
952
- children: T
953
- }), F = x && /* @__PURE__ */ $(So, {
954
- className: k.endIcon,
955
- ownerState: v,
956
- children: x
957
- });
958
- return /* @__PURE__ */ fe(No, d({
959
- ownerState: v,
960
- className: V(t.className, k.root, f),
961
- component: u,
962
- disabled: g,
963
- focusRipple: !m,
964
- focusVisibleClassName: V(k.focusVisible, b),
965
- ref: r,
966
- type: O
967
- }, E, {
968
- classes: k,
969
- children: [N, a, F]
970
- }));
971
- });
972
- process.env.NODE_ENV !== "production" && ($o.propTypes = {
973
- // ----------------------------- Warning --------------------------------
974
- // | These PropTypes are generated from the TypeScript type definitions |
975
- // | To update them edit the d.ts file and run "yarn proptypes" |
976
- // ----------------------------------------------------------------------
977
- /**
978
- * The content of the component.
979
- */
980
- children: n.node,
981
- /**
982
- * Override or extend the styles applied to the component.
983
- */
984
- classes: n.object,
985
- /**
986
- * @ignore
987
- */
988
- className: n.string,
989
- /**
990
- * The color of the component.
991
- * It supports both default and custom theme colors, which can be added as shown in the
992
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
993
- * @default 'primary'
994
- */
995
- color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
996
- /**
997
- * The component used for the root node.
998
- * Either a string to use a HTML element or a component.
999
- */
1000
- component: n.elementType,
1001
- /**
1002
- * If `true`, the component is disabled.
1003
- * @default false
1004
- */
1005
- disabled: n.bool,
1006
- /**
1007
- * If `true`, no elevation is used.
1008
- * @default false
1009
- */
1010
- disableElevation: n.bool,
1011
- /**
1012
- * If `true`, the keyboard focus ripple is disabled.
1013
- * @default false
1014
- */
1015
- disableFocusRipple: n.bool,
1016
- /**
1017
- * If `true`, the ripple effect is disabled.
1018
- *
1019
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
1020
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
1021
- * @default false
1022
- */
1023
- disableRipple: n.bool,
1024
- /**
1025
- * Element placed after the children.
1026
- */
1027
- endIcon: n.node,
1028
- /**
1029
- * @ignore
1030
- */
1031
- focusVisibleClassName: n.string,
1032
- /**
1033
- * If `true`, the button will take up the full width of its container.
1034
- * @default false
1035
- */
1036
- fullWidth: n.bool,
1037
- /**
1038
- * The URL to link to when the button is clicked.
1039
- * If defined, an `a` element will be used as the root node.
1040
- */
1041
- href: n.string,
1042
- /**
1043
- * The size of the component.
1044
- * `small` is equivalent to the dense button styling.
1045
- * @default 'medium'
1046
- */
1047
- size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
1048
- /**
1049
- * Element placed before the children.
1050
- */
1051
- startIcon: n.node,
1052
- /**
1053
- * The system prop that allows defining system overrides as well as additional CSS styles.
1054
- */
1055
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1056
- /**
1057
- * @ignore
1058
- */
1059
- type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
1060
- /**
1061
- * The variant to use.
1062
- * @default 'text'
1063
- */
1064
- variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
1065
- });
1066
- const Fo = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], Mo = {
1067
- entering: {
1068
- opacity: 1
1069
- },
1070
- entered: {
1071
- opacity: 1
1072
- }
1073
- }, Be = /* @__PURE__ */ c.forwardRef(function(o, r) {
1074
- const t = Ke(), i = {
1075
- enter: t.transitions.duration.enteringScreen,
1076
- exit: t.transitions.duration.leavingScreen
1077
- }, {
1078
- addEndListener: s,
1079
- appear: a = !0,
1080
- children: l,
1081
- easing: u,
1082
- in: f,
1083
- onEnter: g,
1084
- onEntered: y,
1085
- onEntering: m,
1086
- onExit: x,
1087
- onExited: b,
1088
- onExiting: P,
1089
- style: C,
1090
- timeout: T = i,
1091
- // eslint-disable-next-line react/prop-types
1092
- TransitionComponent: O = qe
1093
- } = o, p = K(o, Fo), E = c.useRef(null), v = Z(E, l.ref, r), k = (h) => (R) => {
1094
- if (h) {
1095
- const z = E.current;
1096
- R === void 0 ? h(z) : h(z, R);
1097
- }
1098
- }, N = k(m), F = k((h, R) => {
1099
- Ge(h);
1100
- const z = Ee({
1101
- style: C,
1102
- timeout: T,
1103
- easing: u
1104
- }, {
1105
- mode: "enter"
1106
- });
1107
- h.style.webkitTransition = t.transitions.create("opacity", z), h.style.transition = t.transitions.create("opacity", z), g && g(h, R);
1108
- }), w = k(y), D = k(P), I = k((h) => {
1109
- const R = Ee({
1110
- style: C,
1111
- timeout: T,
1112
- easing: u
1113
- }, {
1114
- mode: "exit"
1115
- });
1116
- h.style.webkitTransition = t.transitions.create("opacity", R), h.style.transition = t.transitions.create("opacity", R), x && x(h);
1117
- }), M = k(b);
1118
- return /* @__PURE__ */ $(O, d({
1119
- appear: a,
1120
- in: f,
1121
- nodeRef: E,
1122
- onEnter: F,
1123
- onEntered: w,
1124
- onEntering: N,
1125
- onExit: I,
1126
- onExited: M,
1127
- onExiting: D,
1128
- addEndListener: (h) => {
1129
- s && s(E.current, h);
1130
- },
1131
- timeout: T
1132
- }, p, {
1133
- children: (h, R) => /* @__PURE__ */ c.cloneElement(l, d({
1134
- style: d({
1135
- opacity: 0,
1136
- visibility: h === "exited" && !f ? "hidden" : void 0
1137
- }, Mo[h], C, l.props.style),
1138
- ref: v
1139
- }, R))
1140
- }));
1141
- });
1142
- process.env.NODE_ENV !== "production" && (Be.propTypes = {
1143
- // ----------------------------- Warning --------------------------------
1144
- // | These PropTypes are generated from the TypeScript type definitions |
1145
- // | To update them edit the d.ts file and run "yarn proptypes" |
1146
- // ----------------------------------------------------------------------
1147
- /**
1148
- * Add a custom transition end trigger. Called with the transitioning DOM
1149
- * node and a done callback. Allows for more fine grained transition end
1150
- * logic. Note: Timeouts are still used as a fallback if provided.
1151
- */
1152
- addEndListener: n.func,
1153
- /**
1154
- * Perform the enter transition when it first mounts if `in` is also `true`.
1155
- * Set this to `false` to disable this behavior.
1156
- * @default true
1157
- */
1158
- appear: n.bool,
1159
- /**
1160
- * A single child content element.
1161
- */
1162
- children: X.isRequired,
1163
- /**
1164
- * The transition timing function.
1165
- * You may specify a single easing or a object containing enter and exit values.
1166
- */
1167
- easing: n.oneOfType([n.shape({
1168
- enter: n.string,
1169
- exit: n.string
1170
- }), n.string]),
1171
- /**
1172
- * If `true`, the component will transition in.
1173
- */
1174
- in: n.bool,
1175
- /**
1176
- * @ignore
1177
- */
1178
- onEnter: n.func,
1179
- /**
1180
- * @ignore
1181
- */
1182
- onEntered: n.func,
1183
- /**
1184
- * @ignore
1185
- */
1186
- onEntering: n.func,
1187
- /**
1188
- * @ignore
1189
- */
1190
- onExit: n.func,
1191
- /**
1192
- * @ignore
1193
- */
1194
- onExited: n.func,
1195
- /**
1196
- * @ignore
1197
- */
1198
- onExiting: n.func,
1199
- /**
1200
- * @ignore
1201
- */
1202
- style: n.object,
1203
- /**
1204
- * The duration for the transition, in milliseconds.
1205
- * You may specify a single timeout for all transitions, or individually with an object.
1206
- * @default {
1207
- * enter: theme.transitions.duration.enteringScreen,
1208
- * exit: theme.transitions.duration.leavingScreen,
1209
- * }
1210
- */
1211
- timeout: n.oneOfType([n.number, n.shape({
1212
- appear: n.number,
1213
- enter: n.number,
1214
- exit: n.number
1215
- })])
1216
- });
1217
- function zo(e) {
1218
- return de("MuiBackdrop", e);
1219
- }
1220
- ce("MuiBackdrop", ["root", "invisible"]);
1221
- const Bo = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], wo = (e) => {
1222
- const {
1223
- classes: o,
1224
- invisible: r
1225
- } = e;
1226
- return ue({
1227
- root: ["root", r && "invisible"]
1228
- }, zo, o);
1229
- }, Ao = q("div", {
1230
- name: "MuiBackdrop",
1231
- slot: "Root",
1232
- overridesResolver: (e, o) => {
1233
- const {
1234
- ownerState: r
1235
- } = e;
1236
- return [o.root, r.invisible && o.invisible];
1237
- }
1238
- })(({
1239
- ownerState: e
1240
- }) => d({
1241
- position: "fixed",
1242
- display: "flex",
1243
- alignItems: "center",
1244
- justifyContent: "center",
1245
- right: 0,
1246
- bottom: 0,
1247
- top: 0,
1248
- left: 0,
1249
- backgroundColor: "rgba(0, 0, 0, 0.5)",
1250
- WebkitTapHighlightColor: "transparent"
1251
- }, e.invisible && {
1252
- backgroundColor: "transparent"
1253
- })), we = /* @__PURE__ */ c.forwardRef(function(o, r) {
1254
- var t, i, s;
1255
- const a = pe({
1256
- props: o,
1257
- name: "MuiBackdrop"
1258
- }), {
1259
- children: l,
1260
- className: u,
1261
- component: f = "div",
1262
- components: g = {},
1263
- componentsProps: y = {},
1264
- invisible: m = !1,
1265
- open: x,
1266
- slotProps: b = {},
1267
- slots: P = {},
1268
- TransitionComponent: C = Be,
1269
- transitionDuration: T
1270
- } = a, O = K(a, Bo), p = d({}, a, {
1271
- component: f,
1272
- invisible: m
1273
- }), E = wo(p), v = (t = b.root) != null ? t : y.root;
1274
- return /* @__PURE__ */ $(C, d({
1275
- in: x,
1276
- timeout: T
1277
- }, O, {
1278
- children: /* @__PURE__ */ $(Ao, d({
1279
- "aria-hidden": !0
1280
- }, v, {
1281
- as: (i = (s = P.root) != null ? s : g.Root) != null ? i : f,
1282
- className: V(E.root, u, v == null ? void 0 : v.className),
1283
- ownerState: d({}, p, v == null ? void 0 : v.ownerState),
1284
- classes: E,
1285
- ref: r,
1286
- children: l
1287
- }))
1288
- }));
1289
- });
1290
- process.env.NODE_ENV !== "production" && (we.propTypes = {
1291
- // ----------------------------- Warning --------------------------------
1292
- // | These PropTypes are generated from the TypeScript type definitions |
1293
- // | To update them edit the d.ts file and run "yarn proptypes" |
1294
- // ----------------------------------------------------------------------
1295
- /**
1296
- * The content of the component.
1297
- */
1298
- children: n.node,
1299
- /**
1300
- * Override or extend the styles applied to the component.
1301
- */
1302
- classes: n.object,
1303
- /**
1304
- * @ignore
1305
- */
1306
- className: n.string,
1307
- /**
1308
- * The component used for the root node.
1309
- * Either a string to use a HTML element or a component.
1310
- */
1311
- component: n.elementType,
1312
- /**
1313
- * The components used for each slot inside.
1314
- *
1315
- * This prop is an alias for the `slots` prop.
1316
- * It's recommended to use the `slots` prop instead.
1317
- *
1318
- * @default {}
1319
- */
1320
- components: n.shape({
1321
- Root: n.elementType
1322
- }),
1323
- /**
1324
- * The extra props for the slot components.
1325
- * You can override the existing props or add new ones.
1326
- *
1327
- * This prop is an alias for the `slotProps` prop.
1328
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
1329
- *
1330
- * @default {}
1331
- */
1332
- componentsProps: n.shape({
1333
- root: n.object
1334
- }),
1335
- /**
1336
- * If `true`, the backdrop is invisible.
1337
- * It can be used when rendering a popover or a custom select component.
1338
- * @default false
1339
- */
1340
- invisible: n.bool,
1341
- /**
1342
- * If `true`, the component is shown.
1343
- */
1344
- open: n.bool.isRequired,
1345
- /**
1346
- * The extra props for the slot components.
1347
- * You can override the existing props or add new ones.
1348
- *
1349
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
1350
- *
1351
- * @default {}
1352
- */
1353
- slotProps: n.shape({
1354
- root: n.object
1355
- }),
1356
- /**
1357
- * The components used for each slot inside.
1358
- *
1359
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
1360
- *
1361
- * @default {}
1362
- */
1363
- slots: n.shape({
1364
- root: n.elementType
1365
- }),
1366
- /**
1367
- * The system prop that allows defining system overrides as well as additional CSS styles.
1368
- */
1369
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
1370
- /**
1371
- * The component used for the transition.
1372
- * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
1373
- * @default Fade
1374
- */
1375
- TransitionComponent: n.elementType,
1376
- /**
1377
- * The duration for the transition, in milliseconds.
1378
- * You may specify a single timeout for all transitions, or individually with an object.
1379
- */
1380
- transitionDuration: n.oneOfType([n.number, n.shape({
1381
- appear: n.number,
1382
- enter: n.number,
1383
- exit: n.number
1384
- })])
1385
- });
1386
- const Do = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "slotProps", "slots", "theme"], Lo = q("div", {
1387
- name: "MuiModal",
1388
- slot: "Root",
1389
- overridesResolver: (e, o) => {
1390
- const {
1391
- ownerState: r
1392
- } = e;
1393
- return [o.root, !r.open && r.exited && o.hidden];
1394
- }
1395
- })(({
1396
- theme: e,
1397
- ownerState: o
1398
- }) => d({
1399
- position: "fixed",
1400
- zIndex: (e.vars || e).zIndex.modal,
1401
- right: 0,
1402
- bottom: 0,
1403
- top: 0,
1404
- left: 0
1405
- }, !o.open && o.exited && {
1406
- visibility: "hidden"
1407
- })), _o = q(we, {
1408
- name: "MuiModal",
1409
- slot: "Backdrop",
1410
- overridesResolver: (e, o) => o.backdrop
1411
- })({
1412
- zIndex: -1
1413
- }), jo = /* @__PURE__ */ c.forwardRef(function(o, r) {
1414
- var t, i, s, a, l, u;
1415
- const f = pe({
1416
- name: "MuiModal",
1417
- props: o
1418
- }), {
1419
- BackdropComponent: g = _o,
1420
- BackdropProps: y,
1421
- classes: m,
1422
- className: x,
1423
- closeAfterTransition: b = !1,
1424
- children: P,
1425
- component: C,
1426
- components: T = {},
1427
- componentsProps: O = {},
1428
- disableAutoFocus: p = !1,
1429
- disableEnforceFocus: E = !1,
1430
- disableEscapeKeyDown: v = !1,
1431
- disablePortal: k = !1,
1432
- disableRestoreFocus: N = !1,
1433
- disableScrollLock: F = !1,
1434
- hideBackdrop: w = !1,
1435
- keepMounted: D = !1,
1436
- slotProps: I,
1437
- slots: M,
1438
- // eslint-disable-next-line react/prop-types
1439
- theme: A
1440
- } = f, h = K(f, Do), [R, z] = c.useState(!0), _ = {
1441
- closeAfterTransition: b,
1442
- disableAutoFocus: p,
1443
- disableEnforceFocus: E,
1444
- disableEscapeKeyDown: v,
1445
- disablePortal: k,
1446
- disableRestoreFocus: N,
1447
- disableScrollLock: F,
1448
- hideBackdrop: w,
1449
- keepMounted: D
1450
- }, L = d({}, f, _, {
1451
- exited: R
1452
- }), J = (t = (i = M == null ? void 0 : M.root) != null ? i : T.Root) != null ? t : Lo, W = (s = (a = M == null ? void 0 : M.backdrop) != null ? a : T.Backdrop) != null ? s : g, H = (l = I == null ? void 0 : I.root) != null ? l : O.root, U = (u = I == null ? void 0 : I.backdrop) != null ? u : O.backdrop;
1453
- return /* @__PURE__ */ $(Fe, d({
1454
- slots: {
1455
- root: J,
1456
- backdrop: W
1457
- },
1458
- slotProps: {
1459
- root: () => d({}, le(H, L), !$e(J) && {
1460
- as: C,
1461
- theme: A
1462
- }, {
1463
- className: V(x, H == null ? void 0 : H.className, m == null ? void 0 : m.root, !L.open && L.exited && (m == null ? void 0 : m.hidden))
1464
- }),
1465
- backdrop: () => d({}, y, le(U, L), {
1466
- className: V(U == null ? void 0 : U.className, m == null ? void 0 : m.backdrop)
1467
- })
1468
- },
1469
- onTransitionEnter: () => z(!1),
1470
- onTransitionExited: () => z(!0),
1471
- ref: r
1472
- }, h, _, {
1473
- children: P
1474
- }));
1475
- });
1476
- process.env.NODE_ENV !== "production" && (jo.propTypes = {
1477
- // ----------------------------- Warning --------------------------------
1478
- // | These PropTypes are generated from the TypeScript type definitions |
1479
- // | To update them edit the d.ts file and run "yarn proptypes" |
1480
- // ----------------------------------------------------------------------
1481
- /**
1482
- * A backdrop component. This prop enables custom backdrop rendering.
1483
- * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
1484
- * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
1485
- * @default styled(Backdrop, {
1486
- * name: 'MuiModal',
1487
- * slot: 'Backdrop',
1488
- * overridesResolver: (props, styles) => {
1489
- * return styles.backdrop;
1490
- * },
1491
- * })({
1492
- * zIndex: -1,
1493
- * })
1494
- */
1495
- BackdropComponent: n.elementType,
1496
- /**
1497
- * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
1498
- * @deprecated Use `slotProps.backdrop` instead.
1499
- */
1500
- BackdropProps: n.object,
1501
- /**
1502
- * A single child content element.
1503
- */
1504
- children: X.isRequired,
1505
- /**
1506
- * Override or extend the styles applied to the component.
1507
- */
1508
- classes: n.object,
1509
- /**
1510
- * @ignore
1511
- */
1512
- className: n.string,
1513
- /**
1514
- * When set to true the Modal waits until a nested Transition is completed before closing.
1515
- * @default false
1516
- */
1517
- closeAfterTransition: n.bool,
1518
- /**
1519
- * The component used for the root node.
1520
- * Either a string to use a HTML element or a component.
1521
- */
1522
- component: n.elementType,
1523
- /**
1524
- * The components used for each slot inside.
1525
- *
1526
- * This prop is an alias for the `slots` prop.
1527
- * It's recommended to use the `slots` prop instead.
1528
- *
1529
- * @default {}
1530
- */
1531
- components: n.shape({
1532
- Backdrop: n.elementType,
1533
- Root: n.elementType
1534
- }),
1535
- /**
1536
- * The extra props for the slot components.
1537
- * You can override the existing props or add new ones.
1538
- *
1539
- * This prop is an alias for the `slotProps` prop.
1540
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
1541
- *
1542
- * @default {}
1543
- */
1544
- componentsProps: n.shape({
1545
- backdrop: n.oneOfType([n.func, n.object]),
1546
- root: n.oneOfType([n.func, n.object])
1547
- }),
1548
- /**
1549
- * An HTML element or function that returns one.
1550
- * The `container` will have the portal children appended to it.
1551
- *
1552
- * By default, it uses the body of the top-level document object,
1553
- * so it's simply `document.body` most of the time.
1554
- */
1555
- container: n.oneOfType([me, n.func]),
1556
- /**
1557
- * If `true`, the modal will not automatically shift focus to itself when it opens, and
1558
- * replace it to the last focused element when it closes.
1559
- * This also works correctly with any modal children that have the `disableAutoFocus` prop.
1560
- *
1561
- * Generally this should never be set to `true` as it makes the modal less
1562
- * accessible to assistive technologies, like screen readers.
1563
- * @default false
1564
- */
1565
- disableAutoFocus: n.bool,
1566
- /**
1567
- * If `true`, the modal will not prevent focus from leaving the modal while open.
1568
- *
1569
- * Generally this should never be set to `true` as it makes the modal less
1570
- * accessible to assistive technologies, like screen readers.
1571
- * @default false
1572
- */
1573
- disableEnforceFocus: n.bool,
1574
- /**
1575
- * If `true`, hitting escape will not fire the `onClose` callback.
1576
- * @default false
1577
- */
1578
- disableEscapeKeyDown: n.bool,
1579
- /**
1580
- * The `children` will be under the DOM hierarchy of the parent component.
1581
- * @default false
1582
- */
1583
- disablePortal: n.bool,
1584
- /**
1585
- * If `true`, the modal will not restore focus to previously focused element once
1586
- * modal is hidden or unmounted.
1587
- * @default false
1588
- */
1589
- disableRestoreFocus: n.bool,
1590
- /**
1591
- * Disable the scroll lock behavior.
1592
- * @default false
1593
- */
1594
- disableScrollLock: n.bool,
1595
- /**
1596
- * If `true`, the backdrop is not rendered.
1597
- * @default false
1598
- */
1599
- hideBackdrop: n.bool,
1600
- /**
1601
- * Always keep the children in the DOM.
1602
- * This prop can be useful in SEO situation or
1603
- * when you want to maximize the responsiveness of the Modal.
1604
- * @default false
1605
- */
1606
- keepMounted: n.bool,
1607
- /**
1608
- * Callback fired when the backdrop is clicked.
1609
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
1610
- */
1611
- onBackdropClick: n.func,
1612
- /**
1613
- * Callback fired when the component requests to be closed.
1614
- * The `reason` parameter can optionally be used to control the response to `onClose`.
1615
- *
1616
- * @param {object} event The event source of the callback.
1617
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
1618
- */
1619
- onClose: n.func,
1620
- /**
1621
- * If `true`, the component is shown.
1622
- */
1623
- open: n.bool.isRequired,
1624
- /**
1625
- * The props used for each slot inside the Modal.
1626
- * @default {}
1627
- */
1628
- slotProps: n.shape({
1629
- backdrop: n.oneOfType([n.func, n.object]),
1630
- root: n.oneOfType([n.func, n.object])
1631
- }),
1632
- /**
1633
- * The components used for each slot inside the Modal.
1634
- * Either a string to use a HTML element or a component.
1635
- * @default {}
1636
- */
1637
- slots: n.shape({
1638
- backdrop: n.elementType,
1639
- root: n.elementType
1640
- }),
1641
- /**
1642
- * The system prop that allows defining system overrides as well as additional CSS styles.
1643
- */
1644
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
1645
- });
1646
- export {
1647
- $o as B,
1648
- Be as F,
1649
- me as H,
1650
- jo as M,
1651
- te as P,
1652
- we as a,
1653
- no as b,
1654
- ne as c,
1655
- X as e,
1656
- Je as g,
1657
- $e as i,
1658
- Re as u
1659
- };