@cgi-learning-hub/ui 1.3.4-dev.1733911143 → 1.3.4-dev.1734361486

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 (120) hide show
  1. package/dist/{Button-CL9rFoOY.js → Button-BuXg1NVm.js} +1 -1
  2. package/dist/{Button-C6UXybBV.cjs → Button-DWN9C3LK.cjs} +1 -1
  3. package/dist/{ButtonBase-CYkLbJ0U.js → ButtonBase-B4zoCnjP.js} +3 -2
  4. package/dist/ButtonBase-CATwoZrn.cjs +74 -0
  5. package/dist/Checkbox-AC2mmTnM.cjs +1 -0
  6. package/dist/{Checkbox-CLM5GjuC.js → Checkbox-CSvGcLhg.js} +2 -2
  7. package/dist/{DatePicker-BXTOQETi.cjs → DatePicker-BSISuO7V.cjs} +11 -11
  8. package/dist/{DatePicker-D9suyaUZ.js → DatePicker-D1zlx4ZT.js} +32 -30
  9. package/dist/Dialog-DPCCWdDJ.js +415 -0
  10. package/dist/Dialog-qbfcFmb5.cjs +1 -0
  11. package/dist/DialogContent-BD5Ba5iS.js +194 -0
  12. package/dist/DialogContent-C8YTQP0Y.cjs +1 -0
  13. package/dist/{DialogTitle-CID6RFNo.js → DialogTitle-BeUT_vuo.js} +43 -42
  14. package/dist/DialogTitle-kTwRLVKr.cjs +1 -0
  15. package/dist/{FormControlLabel-0-cflTuo.js → FormControlLabel-DYY-aErf.js} +1 -1
  16. package/dist/FormControlLabel-ZA6Gcb5F.cjs +1 -0
  17. package/dist/{Grow-D7OAahbU.cjs → Grow-_nrtuAFM.cjs} +1 -1
  18. package/dist/{Grow-BgMSa0P2.js → Grow-nPgCOjxT.js} +1 -1
  19. package/dist/{IconButton-CMwpC2Co.js → IconButton-CNZSqcsf.js} +1 -1
  20. package/dist/{IconButton-DbWtCGLB.cjs → IconButton-Dc15hVpw.cjs} +1 -1
  21. package/dist/{InputBase-DrofJ7xL.js → InputBase-CUavnZkW.js} +7 -6
  22. package/dist/{InputBase-BuVAuMNp.cjs → InputBase-DH6V3gr0.cjs} +3 -3
  23. package/dist/{Menu-_chQG-Za.cjs → Menu-CAFbvCnS.cjs} +5 -5
  24. package/dist/{Menu-DR-xtxpt.js → Menu-DCJCI5_n.js} +16 -15
  25. package/dist/{MenuItem-C_d0Sc_L.js → MenuItem-CUIn-K59.js} +3 -3
  26. package/dist/{MenuItem-De6eStq9.cjs → MenuItem-DnzYnth4.cjs} +1 -1
  27. package/dist/{Modal-C4Jb6sd1.js → Modal-Bx7G18I1.js} +56 -54
  28. package/dist/Modal-CZ2mXC6P.cjs +2 -0
  29. package/dist/{Popper-CkAj_qw_.js → Popper--zvfAHhl.js} +7 -6
  30. package/dist/Popper-Lyb9lMD6.cjs +4 -0
  31. package/dist/{Portal-BcFwfiTx.js → Portal-BxmIkVSh.js} +1 -1
  32. package/dist/{Portal-BruYsISj.cjs → Portal-DuvPvHEc.cjs} +1 -1
  33. package/dist/{Radio-B0v6nDvz.js → Radio-6t3s52QR.js} +2 -2
  34. package/dist/Radio-D52URzDN.cjs +1 -0
  35. package/dist/{Select-BFGwwKap.cjs → Select-BODJlTuR.cjs} +1 -1
  36. package/dist/{Select-D9fwtA9U.js → Select-CiMmkNRd.js} +3 -3
  37. package/dist/{SwitchBase-DfbwljzN.js → SwitchBase-Ch-k9AK8.js} +2 -2
  38. package/dist/SwitchBase-DXpLyhps.cjs +1 -0
  39. package/dist/{TableSortLabel-lnTBXy-V.cjs → TableSortLabel-CTxx0q1M.cjs} +21 -21
  40. package/dist/{TableSortLabel-DwnLOHOy.js → TableSortLabel-D2EwX3Yg.js} +88 -87
  41. package/dist/Tabs-C9I_xaBN.cjs +4 -0
  42. package/dist/{Tabs-BoFP2RHv.js → Tabs-CqlNuFEw.js} +4 -3
  43. package/dist/{TextField-kwhzNVAL.js → TextField-jZpNiD3K.js} +2 -2
  44. package/dist/TextField-nCYJH1XF.cjs +1 -0
  45. package/dist/Tooltip-4SXCNvL7.cjs +4 -0
  46. package/dist/{Tooltip-tgkiC77d.js → Tooltip-B9q50v12.js} +4 -3
  47. package/dist/components/Button/Button.cjs.js +1 -1
  48. package/dist/components/Button/Button.es.js +1 -1
  49. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  50. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  51. package/dist/components/DatePicker/index.cjs.js +1 -1
  52. package/dist/components/DatePicker/index.es.js +1 -1
  53. package/dist/components/Dialog/Dialog.cjs.js +1 -0
  54. package/dist/components/Dialog/Dialog.d.ts +7 -0
  55. package/dist/components/Dialog/Dialog.es.js +26 -0
  56. package/dist/components/Dialog/index.cjs.js +1 -0
  57. package/dist/components/Dialog/index.d.ts +2 -0
  58. package/dist/components/Dialog/index.es.js +4 -0
  59. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  60. package/dist/components/FileList/FileListItem.es.js +1 -1
  61. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  62. package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
  63. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  64. package/dist/components/SearchInput/SearchInput.es.js +1 -1
  65. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  66. package/dist/components/TextInput/TextInput.es.js +1 -1
  67. package/dist/components/index.cjs.js +1 -1
  68. package/dist/components/index.d.ts +3 -2
  69. package/dist/components/index.es.js +202 -198
  70. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  71. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  72. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  73. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  74. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  75. package/dist/components/stories/Dialog.stories.d.ts +1 -1
  76. package/dist/components/stories/Dialog.stories.es.js +13 -12
  77. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  78. package/dist/components/stories/FormControlLabel.stories.es.js +5 -5
  79. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  80. package/dist/components/stories/IconButton.stories.es.js +1 -1
  81. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  82. package/dist/components/stories/Menu.stories.es.js +2 -2
  83. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  84. package/dist/components/stories/RadioGroup.stories.es.js +2 -2
  85. package/dist/components/stories/Select.stories.cjs.js +1 -1
  86. package/dist/components/stories/Select.stories.es.js +2 -2
  87. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  88. package/dist/components/stories/TabList.stories.es.js +1 -1
  89. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  90. package/dist/components/stories/TextField.stories.es.js +1 -1
  91. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  92. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  93. package/dist/index.cjs.js +1 -1
  94. package/dist/index.es.js +202 -198
  95. package/dist/refType-BB7-lBOH.js +5 -0
  96. package/dist/refType-Db26p1ga.cjs +1 -0
  97. package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
  98. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  99. package/dist/useEventCallback-BAQJJ3ye.js +14 -0
  100. package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
  101. package/dist/useTimeout-COCrDKz-.cjs +1 -0
  102. package/dist/useTimeout-CrCYVizI.js +42 -0
  103. package/package.json +1 -1
  104. package/dist/ButtonBase-DzK1n18b.cjs +0 -74
  105. package/dist/Checkbox-Btg05OjV.cjs +0 -1
  106. package/dist/DialogContent-D_JmqJt6.js +0 -603
  107. package/dist/DialogContent-gRISmOoj.cjs +0 -1
  108. package/dist/DialogTitle-Dhxh1DVb.cjs +0 -1
  109. package/dist/FormControlLabel-C-eZV5Xc.cjs +0 -1
  110. package/dist/Modal-GXSEk85U.cjs +0 -2
  111. package/dist/Popper-CjTplNLW.cjs +0 -4
  112. package/dist/Radio-BbZnB74m.cjs +0 -1
  113. package/dist/SwitchBase-BpMNk4XV.cjs +0 -1
  114. package/dist/Tabs-DEvwJheI.cjs +0 -4
  115. package/dist/TextField-waKWSLD4.cjs +0 -1
  116. package/dist/Tooltip-CFyOA9CT.cjs +0 -4
  117. package/dist/useEnhancedEffect-C9MKL5N4.cjs +0 -1
  118. package/dist/useEnhancedEffect-DlS7O_-p.js +0 -7
  119. package/dist/useTimeout-FkIxJmTC.js +0 -53
  120. package/dist/useTimeout-NIA-3R5R.cjs +0 -1
@@ -1,603 +0,0 @@
1
- import * as d from "react";
2
- import { H as y, I as x, G as g, P as o } from "./generateUtilityClasses--6MLb_cS.js";
3
- import { u as G } from "./useTheme-BXzyKigM.js";
4
- import { jsx as p } from "react/jsx-runtime";
5
- import { s as f, u as S, c as w } from "./DefaultPropsProvider-DUWovK-8.js";
6
- import { m as B } from "./memoTheme-o8RCKrNG.js";
7
- import { B as J, F as Q } from "./Backdrop-ZqzrnV2E.js";
8
- import { M as Z } from "./Modal-C4Jb6sd1.js";
9
- import { c as u } from "./capitalize-NmHVRYy8.js";
10
- import { P as R } from "./Paper-nlWPEgQh.js";
11
- import { u as oo } from "./useId-CK6Kn3Tn.js";
12
- function eo(a) {
13
- return y("MuiDialog", a);
14
- }
15
- const k = x("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), $ = /* @__PURE__ */ d.createContext({});
16
- process.env.NODE_ENV !== "production" && ($.displayName = "DialogContext");
17
- const ao = f(J, {
18
- name: "MuiDialog",
19
- slot: "Backdrop",
20
- overrides: (a, e) => e.backdrop
21
- })({
22
- // Improve scrollable dialog support.
23
- zIndex: -1
24
- }), to = (a) => {
25
- const {
26
- classes: e,
27
- scroll: t,
28
- maxWidth: r,
29
- fullWidth: s,
30
- fullScreen: i
31
- } = a, n = {
32
- root: ["root"],
33
- container: ["container", `scroll${u(t)}`],
34
- paper: ["paper", `paperScroll${u(t)}`, `paperWidth${u(String(r))}`, s && "paperFullWidth", i && "paperFullScreen"]
35
- };
36
- return w(n, eo, e);
37
- }, ro = f(Z, {
38
- name: "MuiDialog",
39
- slot: "Root",
40
- overridesResolver: (a, e) => e.root
41
- })({
42
- "@media print": {
43
- // Use !important to override the Modal inline-style.
44
- position: "absolute !important"
45
- }
46
- }), so = f("div", {
47
- name: "MuiDialog",
48
- slot: "Container",
49
- overridesResolver: (a, e) => {
50
- const {
51
- ownerState: t
52
- } = a;
53
- return [e.container, e[`scroll${u(t.scroll)}`]];
54
- }
55
- })({
56
- height: "100%",
57
- "@media print": {
58
- height: "auto"
59
- },
60
- // We disable the focus ring for mouse, touch and keyboard users.
61
- outline: 0,
62
- variants: [{
63
- props: {
64
- scroll: "paper"
65
- },
66
- style: {
67
- display: "flex",
68
- justifyContent: "center",
69
- alignItems: "center"
70
- }
71
- }, {
72
- props: {
73
- scroll: "body"
74
- },
75
- style: {
76
- overflowY: "auto",
77
- overflowX: "hidden",
78
- textAlign: "center",
79
- "&::after": {
80
- content: '""',
81
- display: "inline-block",
82
- verticalAlign: "middle",
83
- height: "100%",
84
- width: "0"
85
- }
86
- }
87
- }]
88
- }), io = f(R, {
89
- name: "MuiDialog",
90
- slot: "Paper",
91
- overridesResolver: (a, e) => {
92
- const {
93
- ownerState: t
94
- } = a;
95
- return [e.paper, e[`scrollPaper${u(t.scroll)}`], e[`paperWidth${u(String(t.maxWidth))}`], t.fullWidth && e.paperFullWidth, t.fullScreen && e.paperFullScreen];
96
- }
97
- })(B(({
98
- theme: a
99
- }) => ({
100
- margin: 32,
101
- position: "relative",
102
- overflowY: "auto",
103
- "@media print": {
104
- overflowY: "visible",
105
- boxShadow: "none"
106
- },
107
- variants: [{
108
- props: {
109
- scroll: "paper"
110
- },
111
- style: {
112
- display: "flex",
113
- flexDirection: "column",
114
- maxHeight: "calc(100% - 64px)"
115
- }
116
- }, {
117
- props: {
118
- scroll: "body"
119
- },
120
- style: {
121
- display: "inline-block",
122
- verticalAlign: "middle",
123
- textAlign: "initial"
124
- }
125
- }, {
126
- props: ({
127
- ownerState: e
128
- }) => !e.maxWidth,
129
- style: {
130
- maxWidth: "calc(100% - 64px)"
131
- }
132
- }, {
133
- props: {
134
- maxWidth: "xs"
135
- },
136
- style: {
137
- maxWidth: a.breakpoints.unit === "px" ? Math.max(a.breakpoints.values.xs, 444) : `max(${a.breakpoints.values.xs}${a.breakpoints.unit}, 444px)`,
138
- [`&.${k.paperScrollBody}`]: {
139
- [a.breakpoints.down(Math.max(a.breakpoints.values.xs, 444) + 32 * 2)]: {
140
- maxWidth: "calc(100% - 64px)"
141
- }
142
- }
143
- }
144
- }, ...Object.keys(a.breakpoints.values).filter((e) => e !== "xs").map((e) => ({
145
- props: {
146
- maxWidth: e
147
- },
148
- style: {
149
- maxWidth: `${a.breakpoints.values[e]}${a.breakpoints.unit}`,
150
- [`&.${k.paperScrollBody}`]: {
151
- [a.breakpoints.down(a.breakpoints.values[e] + 32 * 2)]: {
152
- maxWidth: "calc(100% - 64px)"
153
- }
154
- }
155
- }
156
- })), {
157
- props: ({
158
- ownerState: e
159
- }) => e.fullWidth,
160
- style: {
161
- width: "calc(100% - 64px)"
162
- }
163
- }, {
164
- props: ({
165
- ownerState: e
166
- }) => e.fullScreen,
167
- style: {
168
- margin: 0,
169
- width: "100%",
170
- maxWidth: "100%",
171
- height: "100%",
172
- maxHeight: "none",
173
- borderRadius: 0,
174
- [`&.${k.paperScrollBody}`]: {
175
- margin: 0,
176
- maxWidth: "100%"
177
- }
178
- }
179
- }]
180
- }))), no = /* @__PURE__ */ d.forwardRef(function(e, t) {
181
- const r = S({
182
- props: e,
183
- name: "MuiDialog"
184
- }), s = G(), i = {
185
- enter: s.transitions.duration.enteringScreen,
186
- exit: s.transitions.duration.leavingScreen
187
- }, {
188
- "aria-describedby": n,
189
- "aria-labelledby": l,
190
- "aria-modal": m = !0,
191
- BackdropComponent: j,
192
- BackdropProps: A,
193
- children: E,
194
- className: F,
195
- disableEscapeKeyDown: T = !1,
196
- fullScreen: U = !1,
197
- fullWidth: I = !1,
198
- maxWidth: V = "sm",
199
- onBackdropClick: W,
200
- onClick: M,
201
- onClose: v,
202
- open: P,
203
- PaperComponent: L = R,
204
- PaperProps: N = {},
205
- scroll: Y = "paper",
206
- TransitionComponent: _ = Q,
207
- transitionDuration: O = i,
208
- TransitionProps: H,
209
- ...K
210
- } = r, b = {
211
- ...r,
212
- disableEscapeKeyDown: T,
213
- fullScreen: U,
214
- fullWidth: I,
215
- maxWidth: V,
216
- scroll: Y
217
- }, h = to(b), D = d.useRef(), X = (c) => {
218
- D.current = c.target === c.currentTarget;
219
- }, z = (c) => {
220
- M && M(c), D.current && (D.current = null, W && W(c), v && v(c, "backdropClick"));
221
- }, C = oo(l), q = d.useMemo(() => ({
222
- titleId: C
223
- }), [C]);
224
- return /* @__PURE__ */ p(ro, {
225
- className: g(h.root, F),
226
- closeAfterTransition: !0,
227
- components: {
228
- Backdrop: ao
229
- },
230
- componentsProps: {
231
- backdrop: {
232
- transitionDuration: O,
233
- as: j,
234
- ...A
235
- }
236
- },
237
- disableEscapeKeyDown: T,
238
- onClose: v,
239
- open: P,
240
- ref: t,
241
- onClick: z,
242
- ownerState: b,
243
- ...K,
244
- children: /* @__PURE__ */ p(_, {
245
- appear: !0,
246
- in: P,
247
- timeout: O,
248
- role: "presentation",
249
- ...H,
250
- children: /* @__PURE__ */ p(so, {
251
- className: g(h.container),
252
- onMouseDown: X,
253
- ownerState: b,
254
- children: /* @__PURE__ */ p(io, {
255
- as: L,
256
- elevation: 24,
257
- role: "dialog",
258
- "aria-describedby": n,
259
- "aria-labelledby": C,
260
- "aria-modal": m,
261
- ...N,
262
- className: g(h.paper, N.className),
263
- ownerState: b,
264
- children: /* @__PURE__ */ p($.Provider, {
265
- value: q,
266
- children: E
267
- })
268
- })
269
- })
270
- })
271
- });
272
- });
273
- process.env.NODE_ENV !== "production" && (no.propTypes = {
274
- // ┌────────────────────────────── Warning ──────────────────────────────┐
275
- // │ These PropTypes are generated from the TypeScript type definitions. │
276
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
277
- // └─────────────────────────────────────────────────────────────────────┘
278
- /**
279
- * The id(s) of the element(s) that describe the dialog.
280
- */
281
- "aria-describedby": o.string,
282
- /**
283
- * The id(s) of the element(s) that label the dialog.
284
- */
285
- "aria-labelledby": o.string,
286
- /**
287
- * Informs assistive technologies that the element is modal.
288
- * It's added on the element with role="dialog".
289
- * @default true
290
- */
291
- "aria-modal": o.oneOfType([o.oneOf(["false", "true"]), o.bool]),
292
- /**
293
- * A backdrop component. This prop enables custom backdrop rendering.
294
- * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
295
- * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
296
- * @default styled(Backdrop, {
297
- * name: 'MuiModal',
298
- * slot: 'Backdrop',
299
- * overridesResolver: (props, styles) => {
300
- * return styles.backdrop;
301
- * },
302
- * })({
303
- * zIndex: -1,
304
- * })
305
- */
306
- BackdropComponent: o.elementType,
307
- /**
308
- * @ignore
309
- */
310
- BackdropProps: o.object,
311
- /**
312
- * Dialog children, usually the included sub-components.
313
- */
314
- children: o.node,
315
- /**
316
- * Override or extend the styles applied to the component.
317
- */
318
- classes: o.object,
319
- /**
320
- * @ignore
321
- */
322
- className: o.string,
323
- /**
324
- * If `true`, hitting escape will not fire the `onClose` callback.
325
- * @default false
326
- */
327
- disableEscapeKeyDown: o.bool,
328
- /**
329
- * If `true`, the dialog is full-screen.
330
- * @default false
331
- */
332
- fullScreen: o.bool,
333
- /**
334
- * If `true`, the dialog stretches to `maxWidth`.
335
- *
336
- * Notice that the dialog width grow is limited by the default margin.
337
- * @default false
338
- */
339
- fullWidth: o.bool,
340
- /**
341
- * Determine the max-width of the dialog.
342
- * The dialog width grows with the size of the screen.
343
- * Set to `false` to disable `maxWidth`.
344
- * @default 'sm'
345
- */
346
- maxWidth: o.oneOfType([o.oneOf(["xs", "sm", "md", "lg", "xl", !1]), o.string]),
347
- /**
348
- * Callback fired when the backdrop is clicked.
349
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
350
- */
351
- onBackdropClick: o.func,
352
- /**
353
- * @ignore
354
- */
355
- onClick: o.func,
356
- /**
357
- * Callback fired when the component requests to be closed.
358
- *
359
- * @param {object} event The event source of the callback.
360
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
361
- */
362
- onClose: o.func,
363
- /**
364
- * If `true`, the component is shown.
365
- */
366
- open: o.bool.isRequired,
367
- /**
368
- * The component used to render the body of the dialog.
369
- * @default Paper
370
- */
371
- PaperComponent: o.elementType,
372
- /**
373
- * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
374
- * @default {}
375
- */
376
- PaperProps: o.object,
377
- /**
378
- * Determine the container for scrolling the dialog.
379
- * @default 'paper'
380
- */
381
- scroll: o.oneOf(["body", "paper"]),
382
- /**
383
- * The system prop that allows defining system overrides as well as additional CSS styles.
384
- */
385
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
386
- /**
387
- * The component used for the transition.
388
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
389
- * @default Fade
390
- */
391
- TransitionComponent: o.elementType,
392
- /**
393
- * The duration for the transition, in milliseconds.
394
- * You may specify a single timeout for all transitions, or individually with an object.
395
- * @default {
396
- * enter: theme.transitions.duration.enteringScreen,
397
- * exit: theme.transitions.duration.leavingScreen,
398
- * }
399
- */
400
- transitionDuration: o.oneOfType([o.number, o.shape({
401
- appear: o.number,
402
- enter: o.number,
403
- exit: o.number
404
- })]),
405
- /**
406
- * Props applied to the transition element.
407
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
408
- */
409
- TransitionProps: o.object
410
- });
411
- function lo(a) {
412
- return y("MuiDialogActions", a);
413
- }
414
- const Mo = x("MuiDialogActions", ["root", "spacing"]), po = (a) => {
415
- const {
416
- classes: e,
417
- disableSpacing: t
418
- } = a;
419
- return w({
420
- root: ["root", !t && "spacing"]
421
- }, lo, e);
422
- }, co = f("div", {
423
- name: "MuiDialogActions",
424
- slot: "Root",
425
- overridesResolver: (a, e) => {
426
- const {
427
- ownerState: t
428
- } = a;
429
- return [e.root, !t.disableSpacing && e.spacing];
430
- }
431
- })({
432
- display: "flex",
433
- alignItems: "center",
434
- padding: 8,
435
- justifyContent: "flex-end",
436
- flex: "0 0 auto",
437
- variants: [{
438
- props: ({
439
- ownerState: a
440
- }) => !a.disableSpacing,
441
- style: {
442
- "& > :not(style) ~ :not(style)": {
443
- marginLeft: 8
444
- }
445
- }
446
- }]
447
- }), uo = /* @__PURE__ */ d.forwardRef(function(e, t) {
448
- const r = S({
449
- props: e,
450
- name: "MuiDialogActions"
451
- }), {
452
- className: s,
453
- disableSpacing: i = !1,
454
- ...n
455
- } = r, l = {
456
- ...r,
457
- disableSpacing: i
458
- }, m = po(l);
459
- return /* @__PURE__ */ p(co, {
460
- className: g(m.root, s),
461
- ownerState: l,
462
- ref: t,
463
- ...n
464
- });
465
- });
466
- process.env.NODE_ENV !== "production" && (uo.propTypes = {
467
- // ┌────────────────────────────── Warning ──────────────────────────────┐
468
- // │ These PropTypes are generated from the TypeScript type definitions. │
469
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
470
- // └─────────────────────────────────────────────────────────────────────┘
471
- /**
472
- * The content of the component.
473
- */
474
- children: o.node,
475
- /**
476
- * Override or extend the styles applied to the component.
477
- */
478
- classes: o.object,
479
- /**
480
- * @ignore
481
- */
482
- className: o.string,
483
- /**
484
- * If `true`, the actions do not have additional margin.
485
- * @default false
486
- */
487
- disableSpacing: o.bool,
488
- /**
489
- * The system prop that allows defining system overrides as well as additional CSS styles.
490
- */
491
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
492
- });
493
- function fo(a) {
494
- return y("MuiDialogContent", a);
495
- }
496
- const Po = x("MuiDialogContent", ["root", "dividers"]);
497
- function No(a) {
498
- return y("MuiDialogTitle", a);
499
- }
500
- const mo = x("MuiDialogTitle", ["root"]), go = (a) => {
501
- const {
502
- classes: e,
503
- dividers: t
504
- } = a;
505
- return w({
506
- root: ["root", t && "dividers"]
507
- }, fo, e);
508
- }, bo = f("div", {
509
- name: "MuiDialogContent",
510
- slot: "Root",
511
- overridesResolver: (a, e) => {
512
- const {
513
- ownerState: t
514
- } = a;
515
- return [e.root, t.dividers && e.dividers];
516
- }
517
- })(B(({
518
- theme: a
519
- }) => ({
520
- flex: "1 1 auto",
521
- // Add iOS momentum scrolling for iOS < 13.0
522
- WebkitOverflowScrolling: "touch",
523
- overflowY: "auto",
524
- padding: "20px 24px",
525
- variants: [{
526
- props: ({
527
- ownerState: e
528
- }) => e.dividers,
529
- style: {
530
- padding: "16px 24px",
531
- borderTop: `1px solid ${(a.vars || a).palette.divider}`,
532
- borderBottom: `1px solid ${(a.vars || a).palette.divider}`
533
- }
534
- }, {
535
- props: ({
536
- ownerState: e
537
- }) => !e.dividers,
538
- style: {
539
- [`.${mo.root} + &`]: {
540
- paddingTop: 0
541
- }
542
- }
543
- }]
544
- }))), yo = /* @__PURE__ */ d.forwardRef(function(e, t) {
545
- const r = S({
546
- props: e,
547
- name: "MuiDialogContent"
548
- }), {
549
- className: s,
550
- dividers: i = !1,
551
- ...n
552
- } = r, l = {
553
- ...r,
554
- dividers: i
555
- }, m = go(l);
556
- return /* @__PURE__ */ p(bo, {
557
- className: g(m.root, s),
558
- ownerState: l,
559
- ref: t,
560
- ...n
561
- });
562
- });
563
- process.env.NODE_ENV !== "production" && (yo.propTypes = {
564
- // ┌────────────────────────────── Warning ──────────────────────────────┐
565
- // │ These PropTypes are generated from the TypeScript type definitions. │
566
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
567
- // └─────────────────────────────────────────────────────────────────────┘
568
- /**
569
- * The content of the component.
570
- */
571
- children: o.node,
572
- /**
573
- * Override or extend the styles applied to the component.
574
- */
575
- classes: o.object,
576
- /**
577
- * @ignore
578
- */
579
- className: o.string,
580
- /**
581
- * Display the top and bottom dividers.
582
- * @default false
583
- */
584
- dividers: o.bool,
585
- /**
586
- * The system prop that allows defining system overrides as well as additional CSS styles.
587
- */
588
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
589
- });
590
- export {
591
- no as D,
592
- uo as a,
593
- yo as b,
594
- Mo as c,
595
- k as d,
596
- lo as e,
597
- Po as f,
598
- eo as g,
599
- fo as h,
600
- mo as i,
601
- No as j,
602
- $ as k
603
- };
@@ -1 +0,0 @@
1
- "use strict";const Z=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),ee=require("./useTheme-B1YEBlI0.cjs"),c=require("react/jsx-runtime"),a=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),W=require("./memoTheme-D99chbOP.cjs"),j=require("./Backdrop-DqUdx8FP.cjs"),oe=require("./Modal-GXSEk85U.cjs"),u=require("./capitalize-DASFtB-F.cjs"),M=require("./Paper-CH4BABUB.cjs"),se=require("./useId-DNXtOFeX.cjs");function re(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,t.get?t:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const y=re(Z);function O(o){return e.generateUtilityClass("MuiDialog",o)}const f=e.generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),C=y.createContext({});process.env.NODE_ENV!=="production"&&(C.displayName="DialogContext");const te=a.styled(j.Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(o,s)=>s.backdrop})({zIndex:-1}),ae=o=>{const{classes:s,scroll:r,maxWidth:t,fullWidth:i,fullScreen:n}=o,l={root:["root"],container:["container",`scroll${u.capitalize(r)}`],paper:["paper",`paperScroll${u.capitalize(r)}`,`paperWidth${u.capitalize(String(t))}`,i&&"paperFullWidth",n&&"paperFullScreen"]};return a.composeClasses(l,O,s)},ie=a.styled(oe.Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(o,s)=>s.root})({"@media print":{position:"absolute !important"}}),ne=a.styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.container,s[`scroll${u.capitalize(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),le=a.styled(M.Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.paper,s[`scrollPaper${u.capitalize(r.scroll)}`],s[`paperWidth${u.capitalize(String(r.maxWidth))}`],r.fullWidth&&s.paperFullWidth,r.fullScreen&&s.paperFullScreen]}})(W.memoTheme(({theme:o})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:s})=>!s.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:o.breakpoints.unit==="px"?Math.max(o.breakpoints.values.xs,444):`max(${o.breakpoints.values.xs}${o.breakpoints.unit}, 444px)`,[`&.${f.paperScrollBody}`]:{[o.breakpoints.down(Math.max(o.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(o.breakpoints.values).filter(s=>s!=="xs").map(s=>({props:{maxWidth:s},style:{maxWidth:`${o.breakpoints.values[s]}${o.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[o.breakpoints.down(o.breakpoints.values[s]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:s})=>s.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:s})=>s.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),N=y.forwardRef(function(s,r){const t=a.useDefaultProps({props:s,name:"MuiDialog"}),i=ee.useTheme(),n={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":p,"aria-modal":g=!0,BackdropComponent:q,BackdropProps:E,children:z,className:F,disableEscapeKeyDown:D=!1,fullScreen:_=!1,fullWidth:I=!1,maxWidth:V="sm",onBackdropClick:v,onClick:h,onClose:P,open:k,PaperComponent:L=M.Paper,PaperProps:S={},scroll:Y="paper",TransitionComponent:K=j.Fade,transitionDuration:w=n,TransitionProps:X,...H}=t,T={...t,disableEscapeKeyDown:D,fullScreen:_,fullWidth:I,maxWidth:V,scroll:Y},b=ae(T),m=y.useRef(),G=d=>{m.current=d.target===d.currentTarget},J=d=>{h&&h(d),m.current&&(m.current=null,v&&v(d),P&&P(d,"backdropClick"))},x=se.useId(p),Q=y.useMemo(()=>({titleId:x}),[x]);return c.jsx(ie,{className:e.clsx(b.root,F),closeAfterTransition:!0,components:{Backdrop:te},componentsProps:{backdrop:{transitionDuration:w,as:q,...E}},disableEscapeKeyDown:D,onClose:P,open:k,ref:r,onClick:J,ownerState:T,...H,children:c.jsx(K,{appear:!0,in:k,timeout:w,role:"presentation",...X,children:c.jsx(ne,{className:e.clsx(b.container),onMouseDown:G,ownerState:T,children:c.jsx(le,{as:L,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":x,"aria-modal":g,...S,className:e.clsx(b.paper,S.className),ownerState:T,children:c.jsx(C.Provider,{value:Q,children:z})})})})})});process.env.NODE_ENV!=="production"&&(N.propTypes={"aria-describedby":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,"aria-modal":e.PropTypes.oneOfType([e.PropTypes.oneOf(["false","true"]),e.PropTypes.bool]),BackdropComponent:e.PropTypes.elementType,BackdropProps:e.PropTypes.object,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableEscapeKeyDown:e.PropTypes.bool,fullScreen:e.PropTypes.bool,fullWidth:e.PropTypes.bool,maxWidth:e.PropTypes.oneOfType([e.PropTypes.oneOf(["xs","sm","md","lg","xl",!1]),e.PropTypes.string]),onBackdropClick:e.PropTypes.func,onClick:e.PropTypes.func,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperComponent:e.PropTypes.elementType,PaperProps:e.PropTypes.object,scroll:e.PropTypes.oneOf(["body","paper"]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object});function R(o){return e.generateUtilityClass("MuiDialogActions",o)}const pe=e.generateUtilityClasses("MuiDialogActions",["root","spacing"]),ce=o=>{const{classes:s,disableSpacing:r}=o,t={root:["root",!r&&"spacing"]};return a.composeClasses(t,R,s)},de=a.styled("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,!r.disableSpacing&&s.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:o})=>!o.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),U=y.forwardRef(function(s,r){const t=a.useDefaultProps({props:s,name:"MuiDialogActions"}),{className:i,disableSpacing:n=!1,...l}=t,p={...t,disableSpacing:n},g=ce(p);return c.jsx(de,{className:e.clsx(g.root,i),ownerState:p,ref:r,...l})});process.env.NODE_ENV!=="production"&&(U.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableSpacing:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});function B(o){return e.generateUtilityClass("MuiDialogContent",o)}const ue=e.generateUtilityClasses("MuiDialogContent",["root","dividers"]);function ye(o){return e.generateUtilityClass("MuiDialogTitle",o)}const $=e.generateUtilityClasses("MuiDialogTitle",["root"]),ge=o=>{const{classes:s,dividers:r}=o,t={root:["root",r&&"dividers"]};return a.composeClasses(t,B,s)},Te=a.styled("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,r.dividers&&s.dividers]}})(W.memoTheme(({theme:o})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:s})=>s.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(o.vars||o).palette.divider}`,borderBottom:`1px solid ${(o.vars||o).palette.divider}`}},{props:({ownerState:s})=>!s.dividers,style:{[`.${$.root} + &`]:{paddingTop:0}}}]}))),A=y.forwardRef(function(s,r){const t=a.useDefaultProps({props:s,name:"MuiDialogContent"}),{className:i,dividers:n=!1,...l}=t,p={...t,dividers:n},g=ge(p);return c.jsx(Te,{className:e.clsx(g.root,i),ownerState:p,ref:r,...l})});process.env.NODE_ENV!=="production"&&(A.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,dividers:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.Dialog=N;exports.DialogActions=U;exports.DialogContent=A;exports.DialogContext=C;exports.dialogActionsClasses=pe;exports.dialogClasses=f;exports.dialogContentClasses=ue;exports.dialogTitleClasses=$;exports.getDialogActionsUtilityClass=R;exports.getDialogContentUtilityClass=B;exports.getDialogTitleUtilityClass=ye;exports.getDialogUtilityClass=O;
@@ -1 +0,0 @@
1
- "use strict";const D=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),n=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),y=require("react/jsx-runtime"),T=require("./Typography-B6KFjCtE.cjs"),u=require("./DialogContent-gRISmOoj.cjs");function x(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const i=x(D);function g(o){return e.generateUtilityClass("MuiDialogContentText",o)}const m=e.generateUtilityClasses("MuiDialogContentText",["root"]),b=o=>{const{classes:t}=o,s={root:["root"]},r=n.composeClasses(s,g,t);return{...t,...r}},j=n.styled(T.Typography,{shouldForwardProp:o=>n.rootShouldForwardProp(o)||o==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(o,t)=>t.root})({}),d=i.forwardRef(function(t,s){const r=n.useDefaultProps({props:t,name:"MuiDialogContentText"}),{children:c,className:p,...l}=r,a=b(l);return y.jsx(j,{component:"p",variant:"body1",color:"textSecondary",ref:s,ownerState:l,className:e.clsx(a.root,p),...r,classes:a})});process.env.NODE_ENV!=="production"&&(d.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});const O=o=>{const{classes:t}=o,s={root:["root"]};return n.composeClasses(s,u.getDialogTitleUtilityClass,t)},v=n.styled(T.Typography,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(o,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),f=i.forwardRef(function(t,s){const r=n.useDefaultProps({props:t,name:"MuiDialogTitle"}),{className:c,id:p,...l}=r,a=r,P=O(a),{titleId:C=p}=i.useContext(u.DialogContext);return y.jsx(v,{component:"h2",className:e.clsx(P.root,c),ownerState:a,ref:s,variant:"h6",id:p??C,...l})});process.env.NODE_ENV!=="production"&&(f.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,id:e.PropTypes.string,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.DialogContentText=d;exports.DialogTitle=f;exports.dialogContentTextClasses=m;exports.getDialogContentTextUtilityClass=g;
@@ -1 +0,0 @@
1
- "use strict";const U=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),v=require("./memoTheme-D99chbOP.cjs"),z=require("./formControlState-CuX6WjAX.cjs"),_=require("./useSlot-DsW0udy9.cjs"),u=require("react/jsx-runtime"),m=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),L=require("./capitalize-DASFtB-F.cjs"),A=require("./useFormControl-haP0iPhl.cjs"),C=require("./Typography-B6KFjCtE.cjs"),B=require("./useEnhancedEffect-C9MKL5N4.cjs");function H(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const q=H(U);function j(o){return e.generateUtilityClass("MuiFormControlLabel",o)}const a=e.generateUtilityClasses("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),I=o=>{const{classes:r,disabled:t,labelPlacement:s,error:b,required:y}=o,P={root:["root",t&&"disabled",`labelPlacement${L.capitalize(s)}`,b&&"error",y&&"required"],label:["label",t&&"disabled"],asterisk:["asterisk",b&&"error"]};return m.composeClasses(P,j,r)},V=m.styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[{[`& .${a.label}`]:r.label},r.root,r[`labelPlacement${L.capitalize(t.labelPlacement)}`]]}})(v.memoTheme(({theme:o})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${a.disabled}`]:{cursor:"default"},[`& .${a.label}`]:{[`&.${a.disabled}`]:{color:(o.vars||o).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:r})=>r==="start"||r==="top"||r==="bottom",style:{marginLeft:16}}]}))),W=m.styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(o,r)=>r.asterisk})(v.memoTheme(({theme:o})=>({[`&.${a.error}`]:{color:(o.vars||o).palette.error.main}}))),x=q.forwardRef(function(r,t){const s=m.useDefaultProps({props:r,name:"MuiFormControlLabel"}),{checked:b,className:y,componentsProps:P={},control:n,disabled:R,disableTypography:F,inputRef:G,label:O,labelPlacement:S="end",name:J,onChange:K,required:k,slots:N={},slotProps:w={},value:Q,...D}=s,p=A.useFormControl(),g=R??n.props.disabled??(p==null?void 0:p.disabled),f=k??n.props.required,h={disabled:g,required:f};["checked","name","onChange","value","inputRef"].forEach(d=>{typeof n.props[d]>"u"&&typeof s[d]<"u"&&(h[d]=s[d])});const $=z.formControlState({props:s,muiFormControl:p,states:["error"]}),i={...s,disabled:g,labelPlacement:S,required:f,error:$.error},T=I(i),E={slots:N,slotProps:{...P,...w}},[M,c]=_.useSlot("typography",{elementType:C.Typography,externalForwardedProps:E,ownerState:i});let l=O;return l!=null&&l.type!==C.Typography&&!F&&(l=u.jsx(M,{component:"span",...c,className:e.clsx(T.label,c==null?void 0:c.className),children:l})),u.jsxs(V,{className:e.clsx(T.root,y),ownerState:i,ref:t,...D,children:[q.cloneElement(n,h),f?u.jsxs("div",{children:[l,u.jsxs(W,{ownerState:i,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):l]})});process.env.NODE_ENV!=="production"&&(x.propTypes={checked:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,componentsProps:e.PropTypes.shape({typography:e.PropTypes.object}),control:e.PropTypes.element.isRequired,disabled:e.PropTypes.bool,disableTypography:e.PropTypes.bool,inputRef:B.refType,label:e.PropTypes.node,labelPlacement:e.PropTypes.oneOf(["bottom","end","start","top"]),name:e.PropTypes.string,onChange:e.PropTypes.func,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({typography:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({typography:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),value:e.PropTypes.any});exports.FormControlLabel=x;exports.formControlLabelClasses=a;exports.getFormControlLabelUtilityClasses=j;
@@ -1,2 +0,0 @@
1
- "use strict";const ye=require("react"),o=require("./generateUtilityClasses-DEQ18TAF.cjs"),me=require("./memoTheme-D99chbOP.cjs"),V=require("./ownerWindow-DDHucZi0.cjs"),D=require("./ownerDocument-4MViGo3k.cjs"),Y=require("./useForkRef-CTI33h-3.cjs"),oe=require("./useTimeout-NIA-3R5R.cjs"),he=require("./mergeSlotProps-DSv3FKLb.cjs"),ne=require("./createChainedFunction-CJmlQuW8.cjs"),re=require("./useSlot-DsW0udy9.cjs"),M=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),Pe=require("./Backdrop-DqUdx8FP.cjs"),G=require("./Portal-BruYsISj.cjs"),X=require("./utils-DlWHEABQ.cjs");function ge(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=ge(ye);function ce(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ee(e){const t=D.ownerDocument(e);return t.body===e?V.ownerWindow(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function L(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function se(e){return parseInt(V.ownerWindow(e).getComputedStyle(e).paddingRight,10)||0}function Re(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function ie(e,t,r,n,i){const s=[t,r,...n];[].forEach.call(e.children,c=>{const a=!s.includes(c),b=!Re(c);a&&b&&L(c,i)})}function H(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function xe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Ee(n)){const c=ce(V.ownerWindow(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${se(n)+c}px`;const a=D.ownerDocument(n).querySelectorAll(".mui-fixed");[].forEach.call(a,b=>{r.push({value:b.style.paddingRight,property:"padding-right",el:b}),b.style.paddingRight=`${se(b)+c}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=D.ownerDocument(n).body;else{const c=n.parentElement,a=V.ownerWindow(n);s=(c==null?void 0:c.nodeName)==="HTML"&&a.getComputedStyle(c).overflowY==="scroll"?c:n}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:a})=>{s?c.style.setProperty(a,s):c.style.removeProperty(a)})}}function ke(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class ve{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&L(t.modalRef,!1);const i=ke(r);ie(r,t.mount,t.modalRef,i,!0);const s=H(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=H(this.containers,s=>s.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=xe(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=H(this.containers,c=>c.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&L(t.modalRef,r),ie(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&L(c.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const we=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ne(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Se(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Ie(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Se(e))}function Fe(e){const t=[],r=[];return Array.from(e.querySelectorAll(we)).forEach((n,i)=>{const s=Ne(n);s===-1||!Ie(n)||(s===0?t.push(n):r.push({documentOrder:i,tabIndex:s,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Ce(){return!0}function U(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:s=Fe,isEnabled:c=Ce,open:a}=e,b=u.useRef(!1),h=u.useRef(null),x=u.useRef(null),y=u.useRef(null),g=u.useRef(null),T=u.useRef(!1),f=u.useRef(null),A=Y.useForkRef(X.getReactElementRef(t),f),N=u.useRef(null);u.useEffect(()=>{!a||!f.current||(T.current=!r)},[r,a]),u.useEffect(()=>{if(!a||!f.current)return;const l=D.ownerDocument(f.current);return f.current.contains(l.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(`
2
- `)),f.current.setAttribute("tabIndex","-1")),T.current&&f.current.focus()),()=>{i||(y.current&&y.current.focus&&(b.current=!0,y.current.focus()),y.current=null)}},[a]),u.useEffect(()=>{if(!a||!f.current)return;const l=D.ownerDocument(f.current),m=P=>{N.current=P,!(n||!c()||P.key!=="Tab")&&l.activeElement===f.current&&P.shiftKey&&(b.current=!0,x.current&&x.current.focus())},k=()=>{var v,C;const P=f.current;if(P===null)return;if(!l.hasFocus()||!c()||b.current){b.current=!1;return}if(P.contains(l.activeElement)||n&&l.activeElement!==h.current&&l.activeElement!==x.current)return;if(l.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!T.current)return;let I=[];if((l.activeElement===h.current||l.activeElement===x.current)&&(I=s(f.current)),I.length>0){const j=!!((v=N.current)!=null&&v.shiftKey&&((C=N.current)==null?void 0:C.key)==="Tab"),q=I[0],K=I[I.length-1];typeof q!="string"&&typeof K!="string"&&(j?K.focus():q.focus())}else P.focus()};l.addEventListener("focusin",k),l.addEventListener("keydown",m,!0);const F=setInterval(()=>{l.activeElement&&l.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(F),l.removeEventListener("focusin",k),l.removeEventListener("keydown",m,!0)}},[r,n,i,c,a,s]);const S=l=>{y.current===null&&(y.current=l.relatedTarget),T.current=!0,g.current=l.target;const m=t.props.onFocus;m&&m(l)},E=l=>{y.current===null&&(y.current=l.relatedTarget),T.current=!0};return M.jsxs(u.Fragment,{children:[M.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:h,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:A,onFocus:S}),M.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:x,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(U.propTypes={children:X.elementAcceptingRef,disableAutoFocus:o.PropTypes.bool,disableEnforceFocus:o.PropTypes.bool,disableRestoreFocus:o.PropTypes.bool,getTabbable:o.PropTypes.func,isEnabled:o.PropTypes.func,open:o.PropTypes.bool.isRequired});process.env.NODE_ENV!=="production"&&(U.propTypes=G.exactProp(U.propTypes));function Oe(e){return typeof e=="function"?e():e}function Me(e){return e?e.props.hasOwnProperty("in"):!1}const _=new ve;function Ae(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:c,children:a,onClose:b,open:h,rootRef:x}=e,y=u.useRef({}),g=u.useRef(null),T=u.useRef(null),f=Y.useForkRef(T,x),[A,N]=u.useState(!h),S=Me(a);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const l=()=>D.ownerDocument(g.current),m=()=>(y.current.modalRef=T.current,y.current.mount=g.current,y.current),k=()=>{_.mount(m(),{disableScrollLock:n}),T.current&&(T.current.scrollTop=0)},F=oe.useEventCallback(()=>{const d=Oe(t)||l().body;_.add(m(),d),T.current&&k()}),P=()=>_.isTopModal(m()),I=oe.useEventCallback(d=>{g.current=d,d&&(h&&P()?k():T.current&&L(T.current,E))}),v=u.useCallback(()=>{_.remove(m(),E)},[E]);u.useEffect(()=>()=>{v()},[v]),u.useEffect(()=>{h?F():(!S||!i)&&v()},[h,v,S,i,F]);const C=d=>p=>{var R;(R=d.onKeyDown)==null||R.call(d,p),!(p.key!=="Escape"||p.which===229||!P())&&(r||(p.stopPropagation(),b&&b(p,"escapeKeyDown")))},j=d=>p=>{var R;(R=d.onClick)==null||R.call(d,p),p.target===p.currentTarget&&b&&b(p,"backdropClick")};return{getRootProps:(d={})=>{const p=he.extractEventHandlers(e);delete p.onTransitionEnter,delete p.onTransitionExited;const R={...p,...d};return{role:"presentation",...R,onKeyDown:C(R),ref:f}},getBackdropProps:(d={})=>{const p=d;return{"aria-hidden":!0,...p,onClick:j(p),open:h}},getTransitionProps:()=>{const d=()=>{N(!1),s&&s()},p=()=>{N(!0),c&&c(),i&&v()};return{onEnter:ne.createChainedFunction(d,a==null?void 0:a.props.onEnter),onExited:ne.createChainedFunction(p,a==null?void 0:a.props.onExited)}},rootRef:f,portalRef:I,isTopModal:P,exited:A,hasTransition:S}}function De(e){return o.generateUtilityClass("MuiModal",e)}o.generateUtilityClasses("MuiModal",["root","hidden","backdrop"]);const je=e=>{const{open:t,exited:r,classes:n}=e,i={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return $.composeClasses(i,De,n)},qe=$.styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(me.memoTheme(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Be=$.styled(Pe.Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ae=u.forwardRef(function(t,r){const n=$.useDefaultProps({name:"MuiModal",props:t}),{BackdropComponent:i=Be,BackdropProps:s,classes:c,className:a,closeAfterTransition:b=!1,children:h,container:x,component:y,components:g={},componentsProps:T={},disableAutoFocus:f=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:N=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:l=!1,hideBackdrop:m=!1,keepMounted:k=!1,onBackdropClick:F,onClose:P,onTransitionEnter:I,onTransitionExited:v,open:C,slotProps:j={},slots:q={},theme:K,...J}=n,d={...n,closeAfterTransition:b,disableAutoFocus:f,disableEnforceFocus:A,disableEscapeKeyDown:N,disablePortal:S,disableRestoreFocus:E,disableScrollLock:l,hideBackdrop:m,keepMounted:k},{getRootProps:p,getBackdropProps:R,getTransitionProps:le,portalRef:ue,isTopModal:de,exited:Q,hasTransition:Z}=Ae({...d,rootRef:r}),B={...d,exited:Q},w=je(B),W={};if(h.props.tabIndex===void 0&&(W.tabIndex="-1"),Z){const{onEnter:O,onExited:z}=le();W.onEnter=O,W.onExited=z}const ee={...J,slots:{root:g.Root,backdrop:g.Backdrop,...q},slotProps:{...T,...j}},[pe,fe]=re.useSlot("root",{elementType:qe,externalForwardedProps:ee,getSlotProps:p,additionalProps:{ref:r,as:y},ownerState:B,className:o.clsx(a,w==null?void 0:w.root,!B.open&&B.exited&&(w==null?void 0:w.hidden))}),[be,te]=re.useSlot("backdrop",{elementType:i,externalForwardedProps:ee,additionalProps:s,getSlotProps:O=>R({...O,onClick:z=>{F&&F(z),O!=null&&O.onClick&&O.onClick(z)}}),className:o.clsx(s==null?void 0:s.className,w==null?void 0:w.backdrop),ownerState:B}),Te=Y.useForkRef(s==null?void 0:s.ref,te.ref);return!k&&!C&&(!Z||Q)?null:M.jsx(G.Portal,{ref:ue,container:x,disablePortal:S,children:M.jsxs(pe,{...fe,children:[!m&&i?M.jsx(be,{...te,ref:Te}):null,M.jsx(U,{disableEnforceFocus:A,disableAutoFocus:f,disableRestoreFocus:E,isEnabled:de,open:C,children:u.cloneElement(h,W)})]})})});process.env.NODE_ENV!=="production"&&(ae.propTypes={BackdropComponent:o.PropTypes.elementType,BackdropProps:o.PropTypes.object,children:X.elementAcceptingRef.isRequired,classes:o.PropTypes.object,className:o.PropTypes.string,closeAfterTransition:o.PropTypes.bool,component:o.PropTypes.elementType,components:o.PropTypes.shape({Backdrop:o.PropTypes.elementType,Root:o.PropTypes.elementType}),componentsProps:o.PropTypes.shape({backdrop:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]),root:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object])}),container:o.PropTypes.oneOfType([G.HTMLElementType,o.PropTypes.func]),disableAutoFocus:o.PropTypes.bool,disableEnforceFocus:o.PropTypes.bool,disableEscapeKeyDown:o.PropTypes.bool,disablePortal:o.PropTypes.bool,disableRestoreFocus:o.PropTypes.bool,disableScrollLock:o.PropTypes.bool,hideBackdrop:o.PropTypes.bool,keepMounted:o.PropTypes.bool,onBackdropClick:o.PropTypes.func,onClose:o.PropTypes.func,onTransitionEnter:o.PropTypes.func,onTransitionExited:o.PropTypes.func,open:o.PropTypes.bool.isRequired,slotProps:o.PropTypes.shape({backdrop:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]),root:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object])}),slots:o.PropTypes.shape({backdrop:o.PropTypes.elementType,root:o.PropTypes.elementType}),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});exports.FocusTrap=U;exports.Modal=ae;exports.getScrollbarSize=ce;