@hybridcore/ui 1.0.2 → 1.1.0

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