@smart-factor/gem-ui-components 0.0.90 → 0.0.92

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 (189) hide show
  1. package/dist/Drawer-Q3D0v6B2.js +2028 -0
  2. package/dist/SignEditor.js +14323 -14351
  3. package/dist/Stack-CdVfRhco.js +7503 -0
  4. package/dist/Tree-xeWEfulP.js +3135 -0
  5. package/dist/components/AccordionSummary/AccordionSummary.d.ts +0 -1
  6. package/dist/components/AccordionSummary/AccordionSummary.stories.d.ts +0 -1
  7. package/dist/components/AccordionSummary/AccordionSummary.styles.d.ts +4 -5
  8. package/dist/components/Button/Button.d.ts +0 -2
  9. package/dist/components/Button/Button.stories.d.ts +0 -1
  10. package/dist/components/Button/Button.styles.d.ts +3 -4
  11. package/dist/components/Button/ButtonAdd.d.ts +0 -1
  12. package/dist/components/ButtonPreviewAttachment/ButtonPreviewAttachment.d.ts +0 -1
  13. package/dist/components/ButtonPreviewAttachment/ButtonPreviewAttachment.stories.d.ts +0 -1
  14. package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +0 -1
  15. package/dist/components/ButtonWithIcon/ButtonWithIcon.stories.d.ts +0 -1
  16. package/dist/components/Dialog/Dialog.d.ts +0 -1
  17. package/dist/components/Dialog/Dialog.stories.d.ts +34 -4
  18. package/dist/components/Dialog/Dialog.styles.d.ts +5 -6
  19. package/dist/components/Dialog/types.d.ts +0 -1
  20. package/dist/components/Dialogs/ConfirmDialog/ConfirmDialog.d.ts +0 -1
  21. package/dist/components/Dialogs/ConfirmDialog/ConfirmDialog.styles.d.ts +0 -1
  22. package/dist/components/Dialogs/EditDialog/EditDialog.d.ts +0 -1
  23. package/dist/components/Dialogs/EditDialog/EditDialog.styles.d.ts +0 -1
  24. package/dist/components/Drawer/Drawer.d.ts +0 -1
  25. package/dist/components/Drawer/Drawer.stories.d.ts +0 -1
  26. package/dist/components/Drawer/DrawerContent.d.ts +0 -1
  27. package/dist/components/Drawer/DrawerFooter.d.ts +0 -1
  28. package/dist/components/Drawer/DrawerHeader.d.ts +0 -1
  29. package/dist/components/Drawer/index.js +1 -1
  30. package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -1
  31. package/dist/components/Dropzone/Dropzone.styles.d.ts +4 -5
  32. package/dist/components/Dropzone/DropzoneField.d.ts +0 -1
  33. package/dist/components/ElementsPicker/ElementsPicker.d.ts +0 -1
  34. package/dist/components/ElementsPicker/ElementsPicker.stories.d.ts +21 -4
  35. package/dist/components/ElementsPicker/ElementsPickerElement.d.ts +0 -1
  36. package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.d.ts +0 -1
  37. package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.stories.d.ts +0 -1
  38. package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.styles.d.ts +1 -2
  39. package/dist/components/FormComponents/Autocomplete/Autocomplete.d.ts +0 -1
  40. package/dist/components/FormComponents/Autocomplete/Autocomplete.stories.d.ts +0 -1
  41. package/dist/components/FormComponents/Autocomplete/Autocomplete.styles.d.ts +0 -1
  42. package/dist/components/FormComponents/Autocomplete/types.d.ts +0 -1
  43. package/dist/components/FormComponents/ContextualSearch/ContextualSearch.d.ts +0 -1
  44. package/dist/components/FormComponents/ContextualSearch/ContextualSearch.stories.d.ts +0 -1
  45. package/dist/components/FormComponents/ContextualSearch/ContextualSearch.styles.d.ts +1 -2
  46. package/dist/components/FormComponents/ContextualSearch/ContextualSearchControlled.d.ts +0 -1
  47. package/dist/components/FormComponents/ContextualSearch/ContextualSearchListListbox.d.ts +0 -1
  48. package/dist/components/FormComponents/ContextualSearch/mock.d.ts +0 -1
  49. package/dist/components/FormComponents/DatePicker/DatePicker.d.ts +0 -1
  50. package/dist/components/FormComponents/DatePicker/DatePicker.stories.d.ts +22 -4
  51. package/dist/components/FormComponents/DatePicker/DatePicker.styles.d.ts +2 -3
  52. package/dist/components/FormComponents/DateTimePicker/DateTimePicker.d.ts +0 -1
  53. package/dist/components/FormComponents/DateTimePicker/DateTimePicker.stories.d.ts +22 -4
  54. package/dist/components/FormComponents/DateTimePicker/DateTimePicker.styles.d.ts +2 -3
  55. package/dist/components/FormComponents/Input/Input.d.ts +0 -1
  56. package/dist/components/FormComponents/Input/Input.stories.d.ts +0 -1
  57. package/dist/components/FormComponents/RadioChips/RadioChips.d.ts +1 -3
  58. package/dist/components/FormComponents/RadioChips/RadioChips.stories.d.ts +22 -4
  59. package/dist/components/FormComponents/RadioChips/RadioChips.styles.d.ts +3 -4
  60. package/dist/components/FormComponents/SearchInput/SearchInput.d.ts +0 -1
  61. package/dist/components/FormComponents/SearchInput/SearchInput.stories.d.ts +20 -3
  62. package/dist/components/FormComponents/Select/Select.d.ts +1 -2
  63. package/dist/components/FormComponents/Select/Select.stories.d.ts +26 -4
  64. package/dist/components/FormComponents/Select/Select.styles.d.ts +1 -2
  65. package/dist/components/FormComponents/TimePicker/TimePicker.d.ts +0 -1
  66. package/dist/components/FormComponents/TimePicker/TimePicker.stories.d.ts +22 -4
  67. package/dist/components/FormComponents/TimePicker/TimePicker.styles.d.ts +3 -4
  68. package/dist/components/Grid/Grid.d.ts +0 -1
  69. package/dist/components/Grid/types.d.ts +0 -1
  70. package/dist/components/Grid/useGridInitialState.d.ts +3 -5
  71. package/dist/components/GridCell/GridCell.d.ts +0 -1
  72. package/dist/components/LoadingBackdrop/LoadingBackdrop.d.ts +0 -1
  73. package/dist/components/LoadingBackdrop/LoadingBackdrop.stories.d.ts +0 -1
  74. package/dist/components/MuiLikeWrapper/MuiLikeWrapper.d.ts +0 -1
  75. package/dist/components/MuiLikeWrapper/MuiLikeWrapper.stories.d.ts +0 -1
  76. package/dist/components/MuiLikeWrapper/MuiLikeWrapper.styles.d.ts +3 -4
  77. package/dist/components/PaginatedPopover/PaginatedPopover.d.ts +0 -1
  78. package/dist/components/PaginatedPopover/PaginatedPopover.stories.d.ts +0 -1
  79. package/dist/components/PaginatedPopover/PaginatedPopover.styles.d.ts +8 -9
  80. package/dist/components/PaginatedPopover/PaginatedPopoverContent.d.ts +2 -3
  81. package/dist/components/PaginatedPopover/PaginatedPopoverHeader.d.ts +0 -1
  82. package/dist/components/PaginatedPopover/types.d.ts +0 -1
  83. package/dist/components/ResizableWrapper/ResizableWrapper.d.ts +0 -1
  84. package/dist/components/ResizableWrapper/ResizableWrapper.stories.d.ts +0 -1
  85. package/dist/components/ResizableWrapper/ResizableWrapper.styles.d.ts +2 -3
  86. package/dist/components/SignEditor/SignEditor.d.ts +0 -1
  87. package/dist/components/SignEditor/SignEditor.stories.d.ts +0 -1
  88. package/dist/components/SignEditor/SignEditor.styles.d.ts +12 -11
  89. package/dist/components/SignEditor/SignEditorCanvas.d.ts +0 -1
  90. package/dist/components/SignEditor/SignEditorCanvasHeader.d.ts +0 -1
  91. package/dist/components/SignEditor/SignEditorContext.d.ts +0 -1
  92. package/dist/components/SignEditor/SignEditorContextProvider.d.ts +0 -1
  93. package/dist/components/SignEditor/SignEditorEditDialog.d.ts +0 -1
  94. package/dist/components/SignEditor/SignEditorImage.d.ts +0 -1
  95. package/dist/components/SignEditor/SignEditorImagesList.d.ts +0 -1
  96. package/dist/components/SignEditor/SignEditorSaveDialog.d.ts +0 -1
  97. package/dist/components/SignEditor/useOnSvgSelected.d.ts +0 -1
  98. package/dist/components/SignEditor/useSaveStencil.d.ts +0 -1
  99. package/dist/components/SignEditor/useSvgMount.d.ts +0 -1
  100. package/dist/components/SimpleAutocomplete/SimpleAutocomplete.d.ts +0 -1
  101. package/dist/components/SimpleAutocomplete/SimpleAutocomplete.stories.d.ts +0 -1
  102. package/dist/components/SimpleInput/SimpleInput.d.ts +0 -1
  103. package/dist/components/SimpleInput/SimpleInput.stories.d.ts +0 -1
  104. package/dist/components/SimpleSelect/SimpleSelect.d.ts +3 -4
  105. package/dist/components/SimpleSelect/SimpleSelect.stories.d.ts +0 -1
  106. package/dist/components/Stepper/Stepper.d.ts +0 -1
  107. package/dist/components/Stepper/Stepper.stories.d.ts +25 -5
  108. package/dist/components/Stepper/Stepper.styles.d.ts +3 -4
  109. package/dist/components/StickyContainer/StickyContainer.d.ts +0 -1
  110. package/dist/components/StickyContainer/StickyContainer.stories.d.ts +0 -1
  111. package/dist/components/StickyContainer/StickyContainer.styles.d.ts +2 -3
  112. package/dist/components/SvgImage/SvgImage.d.ts +0 -1
  113. package/dist/components/SvgImage/SvgImage.styles.d.ts +1 -2
  114. package/dist/components/TableComponents/ContextMenu/ContextMenu.d.ts +0 -1
  115. package/dist/components/TableComponents/ContextMenu/ContextMenu.stories.d.ts +0 -1
  116. package/dist/components/TableComponents/ContextMenu/ContextMenuContext.d.ts +0 -1
  117. package/dist/components/TableComponents/ContextMenu/ContextMenuItem.d.ts +0 -1
  118. package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/ContextMenuPropsContext.d.ts +0 -1
  119. package/dist/components/TableComponents/TableActions/TableActions.d.ts +0 -1
  120. package/dist/components/TableComponents/TableActions/TableActions.stories.d.ts +0 -1
  121. package/dist/components/TableComponents/TableCustomToolbar/TableCustomToolbar.d.ts +0 -1
  122. package/dist/components/TableComponents/TableExportButton/TableExportButton.d.ts +0 -1
  123. package/dist/components/TableComponents/TableRecord/TableRecord.d.ts +0 -1
  124. package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +0 -1
  125. package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts +0 -1
  126. package/dist/components/TableComponents/TableWithPagination/TableWrapper.d.ts +0 -1
  127. package/dist/components/TableComponents/TableWithPagination/types.d.ts +0 -1
  128. package/dist/components/TabsPanel/TabsPanel.d.ts +0 -1
  129. package/dist/components/TabsPanel/TabsPanel.stories.d.ts +27 -4
  130. package/dist/components/TabsPanel/TabsPanel.styles.d.ts +7 -8
  131. package/dist/components/Toast/Toast.stories.d.ts +0 -1
  132. package/dist/components/Toast/Toast.styles.d.ts +4 -5
  133. package/dist/components/Toast/ToastContent.d.ts +0 -1
  134. package/dist/components/Toast/errorToast.d.ts +0 -1
  135. package/dist/components/Toast/infoToast.d.ts +0 -1
  136. package/dist/components/Toast/successToast.d.ts +0 -1
  137. package/dist/components/Tree/Tree.d.ts +0 -1
  138. package/dist/components/Tree/Tree.stories.d.ts +0 -1
  139. package/dist/components/Tree/index.js +1 -1
  140. package/dist/consts/data-grid.d.ts +32 -27
  141. package/dist/helpers/columns/getBooleanColumn.d.ts +0 -1
  142. package/dist/helpers/columns/getDateColumn.d.ts +0 -1
  143. package/dist/helpers/columns/getDateTimeColumn.d.ts +0 -1
  144. package/dist/helpers/columns/getNumericColumn.d.ts +0 -1
  145. package/dist/helpers/columns/getStaticColumn.d.ts +0 -1
  146. package/dist/helpers/columns/getStringColumn.d.ts +0 -1
  147. package/dist/helpers/date/formatDate.d.ts +0 -1
  148. package/dist/helpers/date/formatDateTime.d.ts +0 -1
  149. package/dist/helpers/sortColumns.d.ts +0 -1
  150. package/dist/helpers/zodTransforms.d.ts +0 -1
  151. package/dist/hooks/useContextMenu.d.ts +0 -1
  152. package/dist/hooks/useDataGridInitialState.d.ts +3 -5
  153. package/dist/hooks/useDataGridState.d.ts +2 -4
  154. package/dist/hooks/useDebounce.d.ts +1 -1
  155. package/dist/hooks/useGetFileUrl.d.ts +0 -1
  156. package/dist/hooks/useTableQuery/getLogicOperator.d.ts +0 -1
  157. package/dist/hooks/useTableQuery/normalizeFilterModel.d.ts +0 -1
  158. package/dist/hooks/useTableQuery/useDataGridQueryState.d.ts +0 -1
  159. package/dist/hooks/useTableQuery/useExportGridAsExcel.d.ts +0 -1
  160. package/dist/hooks/useTableQuery/useExportToExcel.d.ts +0 -1
  161. package/dist/hooks/useTableQuery/usePaginationAndSort.d.ts +0 -1
  162. package/dist/hooks/useTableQuery/useTableFilter.d.ts +0 -1
  163. package/dist/hooks/useTableQuery/useTableQuery.d.ts +2 -3
  164. package/dist/licenses.txt +376 -295
  165. package/dist/main.js +2574 -1949
  166. package/dist/providers/QueryClientProvider.d.ts +0 -1
  167. package/dist/services/api.d.ts +0 -1
  168. package/dist/services/generated/api.d.ts +4 -4
  169. package/dist/services/mutations/roadSigns/useCreateRoadSignFile.d.ts +0 -1
  170. package/dist/services/mutations/roadSigns/useCreateRoadSignTemplate.d.ts +0 -1
  171. package/dist/services/mutations/stencils/useCreateStencil.d.ts +0 -1
  172. package/dist/services/mutations/stencils/useCreateStencilFile.d.ts +0 -1
  173. package/dist/services/mutations/stencils/useDeleteStencil.d.ts +0 -1
  174. package/dist/services/mutations/stencils/useUpdateStencil.d.ts +0 -1
  175. package/dist/services/mutations/stencils/useUpdateStencilFile.d.ts +0 -1
  176. package/dist/services/queries/roadSigns/useGetRoadSignNameUnique.d.ts +1 -2
  177. package/dist/services/queries/roadSigns/useGetRoadSignsByGroupName.d.ts +1 -2
  178. package/dist/services/queries/roadSigns/useGetRoadSignsGroups.d.ts +1 -2
  179. package/dist/services/queries/stencils/useGetStencilGroups.d.ts +1 -2
  180. package/dist/services/queries/stencils/useGetStencils.d.ts +1 -2
  181. package/dist/theme-Da36hI_g.js +259278 -0
  182. package/dist/warning-VmSVedfJ.js +88 -0
  183. package/package.json +60 -55
  184. package/dist/Drawer-CldXrceX.js +0 -2112
  185. package/dist/Stack-CU3sSZaK.js +0 -6619
  186. package/dist/Tree-zB7xEw6c.js +0 -2895
  187. package/dist/services/generated/api-candidate.d.ts +0 -22942
  188. package/dist/theme-BwMNxR51.js +0 -262511
  189. package/dist/useFormControl-v82Vw7n0.js +0 -68
@@ -1,2112 +0,0 @@
1
- import pt, { jsx as x, jsxs as de } from "react/jsx-runtime";
2
- import { a as Z, P as n, _ as f, o as q, C as ft, b as H, e as mt, s as ge, g as ye, h as ht, i as bt, j as vt, k as Ee, l as Y, m as gt, n as yt, p as Q, q as ee, r as L, t as $e, v as te, w as z, x as pe, y as V, z as ne, A as He, B as Ue, D as le, E as ze, F as We, G as Et, H as Me, I as xt, J as Tt, K as kt, S as ke, L as Pt, M as Rt, N as Nt } from "./Stack-CU3sSZaK.js";
3
- import * as u from "react";
4
- import * as wt from "react-dom";
5
- var be = {};
6
- function Ct(e) {
7
- const {
8
- prototype: t = {}
9
- } = e;
10
- return !!t.isReactComponent;
11
- }
12
- function Ke(e, t, r, o, i) {
13
- const s = e[t], a = i || t;
14
- if (s == null || // When server-side rendering React doesn't warn either.
15
- // This is not an accurate check for SSR.
16
- // This is only in place for Emotion compat.
17
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
18
- typeof window > "u")
19
- return null;
20
- let l;
21
- const c = s.type;
22
- return typeof c == "function" && !Ct(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
23
- }
24
- const oe = Z(n.element, Ke);
25
- oe.isRequired = Z(n.element.isRequired, Ke);
26
- const Ot = "exact-prop: ​";
27
- function Ye(e) {
28
- return process.env.NODE_ENV === "production" ? e : f({}, e, {
29
- [Ot]: (t) => {
30
- const r = Object.keys(t).filter((o) => !e.hasOwnProperty(o));
31
- return r.length > 0 ? new Error(`The following props are not supported: ${r.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
32
- }
33
- });
34
- }
35
- function Pe(e, t, r, o, i) {
36
- if (process.env.NODE_ENV === "production")
37
- return null;
38
- const s = e[t], a = i || t;
39
- return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
40
- }
41
- function xe(...e) {
42
- return e.reduce((t, r) => r == null ? t : function(...i) {
43
- t.apply(this, i), r.apply(this, i);
44
- }, () => {
45
- });
46
- }
47
- function Ge(e, t = 166) {
48
- let r;
49
- function o(...i) {
50
- const s = () => {
51
- e.apply(this, i);
52
- };
53
- clearTimeout(r), r = setTimeout(s, t);
54
- }
55
- return o.clear = () => {
56
- clearTimeout(r);
57
- }, o;
58
- }
59
- function St(e, t) {
60
- return process.env.NODE_ENV === "production" ? () => null : (r, o, i, s, a) => {
61
- const l = i || "<<anonymous>>", c = a || o;
62
- return typeof r[o] < "u" ? new Error(`The ${s} \`${c}\` of \`${l}\` is deprecated. ${t}`) : null;
63
- };
64
- }
65
- function Dt(e, t) {
66
- var r, o;
67
- return /* @__PURE__ */ u.isValidElement(e) && t.indexOf(
68
- // For server components `muiName` is avaialble in element.type._payload.value.muiName
69
- // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
70
- // eslint-disable-next-line no-underscore-dangle
71
- (r = e.type.muiName) != null ? r : (o = e.type) == null || (o = o._payload) == null || (o = o.value) == null ? void 0 : o.muiName
72
- ) !== -1;
73
- }
74
- function G(e) {
75
- return q(e).defaultView || window;
76
- }
77
- function $t(e, t) {
78
- if (process.env.NODE_ENV === "production")
79
- return () => null;
80
- const r = t ? f({}, t.propTypes) : null;
81
- return (i) => (s, a, l, c, d, ...m) => {
82
- const v = d || a, g = r == null ? void 0 : r[v];
83
- if (g) {
84
- const y = g(s, a, l, c, d, ...m);
85
- if (y)
86
- return y;
87
- }
88
- return typeof s[a] < "u" && !s[i] ? new Error(`The prop \`${v}\` of \`${e}\` can only be used together with the \`${i}\` prop.`) : null;
89
- };
90
- }
91
- function Mt(e) {
92
- const t = e.documentElement.clientWidth;
93
- return Math.abs(window.innerWidth - t);
94
- }
95
- function It(e) {
96
- const t = typeof e;
97
- switch (t) {
98
- case "number":
99
- return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
100
- case "object":
101
- return e === null ? "null" : e.constructor.name;
102
- default:
103
- return t;
104
- }
105
- }
106
- function _t(e) {
107
- return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
108
- }
109
- const Ft = Number.isInteger || _t;
110
- function Xe(e, t, r, o) {
111
- const i = e[t];
112
- if (i == null || !Ft(i)) {
113
- const s = It(i);
114
- return new RangeError(`Invalid ${o} \`${t}\` of type \`${s}\` supplied to \`${r}\`, expected \`integer\`.`);
115
- }
116
- return null;
117
- }
118
- function Je(e, t, ...r) {
119
- return e[t] === void 0 ? null : Xe(e, t, ...r);
120
- }
121
- function Te() {
122
- return null;
123
- }
124
- Je.isRequired = Xe;
125
- Te.isRequired = Te;
126
- const Ze = process.env.NODE_ENV === "production" ? Te : Je, Bt = {
127
- configure: (e) => {
128
- process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
129
- `)), ft.configure(e);
130
- }
131
- }, jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
132
- __proto__: null,
133
- capitalize: H,
134
- createChainedFunction: xe,
135
- createSvgIcon: mt,
136
- debounce: Ge,
137
- deprecatedPropType: St,
138
- isMuiElement: Dt,
139
- ownerDocument: q,
140
- ownerWindow: G,
141
- requirePropFactory: $t,
142
- setRef: ge,
143
- unstable_ClassNameGenerator: Bt,
144
- unstable_useEnhancedEffect: ye,
145
- unstable_useId: ht,
146
- unsupportedProp: bt,
147
- useControlled: vt,
148
- useEventCallback: Ee,
149
- useForkRef: Y,
150
- useIsFocusVisible: gt
151
- }, Symbol.toStringTag, { value: "Module" })), At = /* @__PURE__ */ yt(jt);
152
- var Ie;
153
- function Lt() {
154
- return Ie || (Ie = 1, function(e) {
155
- "use client";
156
- Object.defineProperty(e, "__esModule", {
157
- value: !0
158
- }), Object.defineProperty(e, "default", {
159
- enumerable: !0,
160
- get: function() {
161
- return t.createSvgIcon;
162
- }
163
- });
164
- var t = At;
165
- }(be)), be;
166
- }
167
- const _e = (e) => {
168
- let t;
169
- return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, (t / 100).toFixed(2);
170
- };
171
- function Vt(e) {
172
- return Q("MuiPaper", e);
173
- }
174
- ee("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
175
- const qt = ["className", "component", "elevation", "square", "variant"], Ht = (e) => {
176
- const {
177
- square: t,
178
- elevation: r,
179
- variant: o,
180
- classes: i
181
- } = e, s = {
182
- root: ["root", o, !t && "rounded", o === "elevation" && `elevation${r}`]
183
- };
184
- return ne(s, Vt, i);
185
- }, Ut = L("div", {
186
- name: "MuiPaper",
187
- slot: "Root",
188
- overridesResolver: (e, t) => {
189
- const {
190
- ownerState: r
191
- } = e;
192
- return [t.root, t[r.variant], !r.square && t.rounded, r.variant === "elevation" && t[`elevation${r.elevation}`]];
193
- }
194
- })(({
195
- theme: e,
196
- ownerState: t
197
- }) => {
198
- var r;
199
- return f({
200
- backgroundColor: (e.vars || e).palette.background.paper,
201
- color: (e.vars || e).palette.text.primary,
202
- transition: e.transitions.create("box-shadow")
203
- }, !t.square && {
204
- borderRadius: e.shape.borderRadius
205
- }, t.variant === "outlined" && {
206
- border: `1px solid ${(e.vars || e).palette.divider}`
207
- }, t.variant === "elevation" && f({
208
- boxShadow: (e.vars || e).shadows[t.elevation]
209
- }, !e.vars && e.palette.mode === "dark" && {
210
- backgroundImage: `linear-gradient(${$e("#fff", _e(t.elevation))}, ${$e("#fff", _e(t.elevation))})`
211
- }, e.vars && {
212
- backgroundImage: (r = e.vars.overlays) == null ? void 0 : r[t.elevation]
213
- }));
214
- }), Qe = /* @__PURE__ */ u.forwardRef(function(t, r) {
215
- const o = te({
216
- props: t,
217
- name: "MuiPaper"
218
- }), {
219
- className: i,
220
- component: s = "div",
221
- elevation: a = 1,
222
- square: l = !1,
223
- variant: c = "elevation"
224
- } = o, d = z(o, qt), m = f({}, o, {
225
- component: s,
226
- elevation: a,
227
- square: l,
228
- variant: c
229
- }), v = Ht(m);
230
- return process.env.NODE_ENV !== "production" && pe().shadows[a] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
231
- `)), /* @__PURE__ */ x(Ut, f({
232
- as: s,
233
- ownerState: m,
234
- className: V(v.root, i),
235
- ref: r
236
- }, d));
237
- });
238
- process.env.NODE_ENV !== "production" && (Qe.propTypes = {
239
- // ┌────────────────────────────── Warning ──────────────────────────────┐
240
- // │ These PropTypes are generated from the TypeScript type definitions. │
241
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
242
- // └─────────────────────────────────────────────────────────────────────┘
243
- /**
244
- * The content of the component.
245
- */
246
- children: n.node,
247
- /**
248
- * Override or extend the styles applied to the component.
249
- */
250
- classes: n.object,
251
- /**
252
- * @ignore
253
- */
254
- className: n.string,
255
- /**
256
- * The component used for the root node.
257
- * Either a string to use a HTML element or a component.
258
- */
259
- component: n.elementType,
260
- /**
261
- * Shadow depth, corresponds to `dp` in the spec.
262
- * It accepts values between 0 and 24 inclusive.
263
- * @default 1
264
- */
265
- elevation: Z(Ze, (e) => {
266
- const {
267
- elevation: t,
268
- variant: r
269
- } = e;
270
- return t > 0 && r === "outlined" ? new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
271
- }),
272
- /**
273
- * If `true`, rounded corners are disabled.
274
- * @default false
275
- */
276
- square: n.bool,
277
- /**
278
- * The system prop that allows defining system overrides as well as additional CSS styles.
279
- */
280
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
281
- /**
282
- * The variant to use.
283
- * @default 'elevation'
284
- */
285
- variant: n.oneOfType([n.oneOf(["elevation", "outlined"]), n.string])
286
- });
287
- function zt(e) {
288
- return typeof e == "function" ? e() : e;
289
- }
290
- const ce = /* @__PURE__ */ u.forwardRef(function(t, r) {
291
- const {
292
- children: o,
293
- container: i,
294
- disablePortal: s = !1
295
- } = t, [a, l] = u.useState(null), c = Y(/* @__PURE__ */ u.isValidElement(o) ? o.ref : null, r);
296
- if (ye(() => {
297
- s || l(zt(i) || document.body);
298
- }, [i, s]), ye(() => {
299
- if (a && !s)
300
- return ge(r, a), () => {
301
- ge(r, null);
302
- };
303
- }, [r, a, s]), s) {
304
- if (/* @__PURE__ */ u.isValidElement(o)) {
305
- const d = {
306
- ref: c
307
- };
308
- return /* @__PURE__ */ u.cloneElement(o, d);
309
- }
310
- return /* @__PURE__ */ x(u.Fragment, {
311
- children: o
312
- });
313
- }
314
- return /* @__PURE__ */ x(u.Fragment, {
315
- children: a && /* @__PURE__ */ wt.createPortal(o, a)
316
- });
317
- });
318
- process.env.NODE_ENV !== "production" && (ce.propTypes = {
319
- // ┌────────────────────────────── Warning ──────────────────────────────┐
320
- // │ These PropTypes are generated from the TypeScript type definitions. │
321
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
322
- // └─────────────────────────────────────────────────────────────────────┘
323
- /**
324
- * The children to render into the `container`.
325
- */
326
- children: n.node,
327
- /**
328
- * An HTML element or function that returns one.
329
- * The `container` will have the portal children appended to it.
330
- *
331
- * You can also provide a callback, which is called in a React layout effect.
332
- * This lets you set the container from a ref, and also makes server-side rendering possible.
333
- *
334
- * By default, it uses the body of the top-level document object,
335
- * so it's simply `document.body` most of the time.
336
- */
337
- container: n.oneOfType([Pe, n.func]),
338
- /**
339
- * The `children` will be under the DOM hierarchy of the parent component.
340
- * @default false
341
- */
342
- disablePortal: n.bool
343
- });
344
- process.env.NODE_ENV !== "production" && (ce.propTypes = Ye(ce.propTypes));
345
- const Wt = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], Kt = {
346
- entering: {
347
- opacity: 1
348
- },
349
- entered: {
350
- opacity: 1
351
- }
352
- }, et = /* @__PURE__ */ u.forwardRef(function(t, r) {
353
- const o = pe(), i = {
354
- enter: o.transitions.duration.enteringScreen,
355
- exit: o.transitions.duration.leavingScreen
356
- }, {
357
- addEndListener: s,
358
- appear: a = !0,
359
- children: l,
360
- easing: c,
361
- in: d,
362
- onEnter: m,
363
- onEntered: v,
364
- onEntering: g,
365
- onExit: y,
366
- onExited: b,
367
- onExiting: C,
368
- style: N,
369
- timeout: O = i,
370
- // eslint-disable-next-line react/prop-types
371
- TransitionComponent: $ = He
372
- } = t, p = z(t, Wt), T = u.useRef(null), w = Y(T, l.ref, r), S = (P) => (A) => {
373
- if (P) {
374
- const k = T.current;
375
- A === void 0 ? P(k) : P(k, A);
376
- }
377
- }, E = S(g), I = S((P, A) => {
378
- Ue(P);
379
- const k = le({
380
- style: N,
381
- timeout: O,
382
- easing: c
383
- }, {
384
- mode: "enter"
385
- });
386
- P.style.webkitTransition = o.transitions.create("opacity", k), P.style.transition = o.transitions.create("opacity", k), m && m(P, A);
387
- }), _ = S(v), D = S(C), M = S((P) => {
388
- const A = le({
389
- style: N,
390
- timeout: O,
391
- easing: c
392
- }, {
393
- mode: "exit"
394
- });
395
- P.style.webkitTransition = o.transitions.create("opacity", A), P.style.transition = o.transitions.create("opacity", A), y && y(P);
396
- }), B = S(b);
397
- return /* @__PURE__ */ x($, f({
398
- appear: a,
399
- in: d,
400
- nodeRef: T,
401
- onEnter: I,
402
- onEntered: _,
403
- onEntering: E,
404
- onExit: M,
405
- onExited: B,
406
- onExiting: D,
407
- addEndListener: (P) => {
408
- s && s(T.current, P);
409
- },
410
- timeout: O
411
- }, p, {
412
- children: (P, A) => /* @__PURE__ */ u.cloneElement(l, f({
413
- style: f({
414
- opacity: 0,
415
- visibility: P === "exited" && !d ? "hidden" : void 0
416
- }, Kt[P], N, l.props.style),
417
- ref: w
418
- }, A))
419
- }));
420
- });
421
- process.env.NODE_ENV !== "production" && (et.propTypes = {
422
- // ┌────────────────────────────── Warning ──────────────────────────────┐
423
- // │ These PropTypes are generated from the TypeScript type definitions. │
424
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
425
- // └─────────────────────────────────────────────────────────────────────┘
426
- /**
427
- * Add a custom transition end trigger. Called with the transitioning DOM
428
- * node and a done callback. Allows for more fine grained transition end
429
- * logic. Note: Timeouts are still used as a fallback if provided.
430
- */
431
- addEndListener: n.func,
432
- /**
433
- * Perform the enter transition when it first mounts if `in` is also `true`.
434
- * Set this to `false` to disable this behavior.
435
- * @default true
436
- */
437
- appear: n.bool,
438
- /**
439
- * A single child content element.
440
- */
441
- children: oe.isRequired,
442
- /**
443
- * The transition timing function.
444
- * You may specify a single easing or a object containing enter and exit values.
445
- */
446
- easing: n.oneOfType([n.shape({
447
- enter: n.string,
448
- exit: n.string
449
- }), n.string]),
450
- /**
451
- * If `true`, the component will transition in.
452
- */
453
- in: n.bool,
454
- /**
455
- * @ignore
456
- */
457
- onEnter: n.func,
458
- /**
459
- * @ignore
460
- */
461
- onEntered: n.func,
462
- /**
463
- * @ignore
464
- */
465
- onEntering: n.func,
466
- /**
467
- * @ignore
468
- */
469
- onExit: n.func,
470
- /**
471
- * @ignore
472
- */
473
- onExited: n.func,
474
- /**
475
- * @ignore
476
- */
477
- onExiting: n.func,
478
- /**
479
- * @ignore
480
- */
481
- style: n.object,
482
- /**
483
- * The duration for the transition, in milliseconds.
484
- * You may specify a single timeout for all transitions, or individually with an object.
485
- * @default {
486
- * enter: theme.transitions.duration.enteringScreen,
487
- * exit: theme.transitions.duration.leavingScreen,
488
- * }
489
- */
490
- timeout: n.oneOfType([n.number, n.shape({
491
- appear: n.number,
492
- enter: n.number,
493
- exit: n.number
494
- })])
495
- });
496
- function Yt(e) {
497
- return Q("MuiBackdrop", e);
498
- }
499
- ee("MuiBackdrop", ["root", "invisible"]);
500
- const Gt = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], Xt = (e) => {
501
- const {
502
- classes: t,
503
- invisible: r
504
- } = e;
505
- return ne({
506
- root: ["root", r && "invisible"]
507
- }, Yt, t);
508
- }, Jt = L("div", {
509
- name: "MuiBackdrop",
510
- slot: "Root",
511
- overridesResolver: (e, t) => {
512
- const {
513
- ownerState: r
514
- } = e;
515
- return [t.root, r.invisible && t.invisible];
516
- }
517
- })(({
518
- ownerState: e
519
- }) => f({
520
- position: "fixed",
521
- display: "flex",
522
- alignItems: "center",
523
- justifyContent: "center",
524
- right: 0,
525
- bottom: 0,
526
- top: 0,
527
- left: 0,
528
- backgroundColor: "rgba(0, 0, 0, 0.5)",
529
- WebkitTapHighlightColor: "transparent"
530
- }, e.invisible && {
531
- backgroundColor: "transparent"
532
- })), Re = /* @__PURE__ */ u.forwardRef(function(t, r) {
533
- var o, i, s;
534
- const a = te({
535
- props: t,
536
- name: "MuiBackdrop"
537
- }), {
538
- children: l,
539
- className: c,
540
- component: d = "div",
541
- components: m = {},
542
- componentsProps: v = {},
543
- invisible: g = !1,
544
- open: y,
545
- slotProps: b = {},
546
- slots: C = {},
547
- TransitionComponent: N = et,
548
- transitionDuration: O
549
- } = a, $ = z(a, Gt), p = f({}, a, {
550
- component: d,
551
- invisible: g
552
- }), T = Xt(p), w = (o = b.root) != null ? o : v.root;
553
- return /* @__PURE__ */ x(N, f({
554
- in: y,
555
- timeout: O
556
- }, $, {
557
- children: /* @__PURE__ */ x(Jt, f({
558
- "aria-hidden": !0
559
- }, w, {
560
- as: (i = (s = C.root) != null ? s : m.Root) != null ? i : d,
561
- className: V(T.root, c, w == null ? void 0 : w.className),
562
- ownerState: f({}, p, w == null ? void 0 : w.ownerState),
563
- classes: T,
564
- ref: r,
565
- children: l
566
- }))
567
- }));
568
- });
569
- process.env.NODE_ENV !== "production" && (Re.propTypes = {
570
- // ┌────────────────────────────── Warning ──────────────────────────────┐
571
- // │ These PropTypes are generated from the TypeScript type definitions. │
572
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
573
- // └─────────────────────────────────────────────────────────────────────┘
574
- /**
575
- * The content of the component.
576
- */
577
- children: n.node,
578
- /**
579
- * Override or extend the styles applied to the component.
580
- */
581
- classes: n.object,
582
- /**
583
- * @ignore
584
- */
585
- className: n.string,
586
- /**
587
- * The component used for the root node.
588
- * Either a string to use a HTML element or a component.
589
- */
590
- component: n.elementType,
591
- /**
592
- * The components used for each slot inside.
593
- *
594
- * This prop is an alias for the `slots` prop.
595
- * It's recommended to use the `slots` prop instead.
596
- *
597
- * @default {}
598
- */
599
- components: n.shape({
600
- Root: n.elementType
601
- }),
602
- /**
603
- * The extra props for the slot components.
604
- * You can override the existing props or add new ones.
605
- *
606
- * This prop is an alias for the `slotProps` prop.
607
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
608
- *
609
- * @default {}
610
- */
611
- componentsProps: n.shape({
612
- root: n.object
613
- }),
614
- /**
615
- * If `true`, the backdrop is invisible.
616
- * It can be used when rendering a popover or a custom select component.
617
- * @default false
618
- */
619
- invisible: n.bool,
620
- /**
621
- * If `true`, the component is shown.
622
- */
623
- open: n.bool.isRequired,
624
- /**
625
- * The extra props for the slot components.
626
- * You can override the existing props or add new ones.
627
- *
628
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
629
- *
630
- * @default {}
631
- */
632
- slotProps: n.shape({
633
- root: n.object
634
- }),
635
- /**
636
- * The components used for each slot inside.
637
- *
638
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
639
- *
640
- * @default {}
641
- */
642
- slots: n.shape({
643
- root: n.elementType
644
- }),
645
- /**
646
- * The system prop that allows defining system overrides as well as additional CSS styles.
647
- */
648
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
649
- /**
650
- * The component used for the transition.
651
- * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
652
- * @default Fade
653
- */
654
- TransitionComponent: n.elementType,
655
- /**
656
- * The duration for the transition, in milliseconds.
657
- * You may specify a single timeout for all transitions, or individually with an object.
658
- */
659
- transitionDuration: n.oneOfType([n.number, n.shape({
660
- appear: n.number,
661
- enter: n.number,
662
- exit: n.number
663
- })])
664
- });
665
- function Zt(e) {
666
- return Q("MuiCircularProgress", e);
667
- }
668
- ee("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
669
- const Qt = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
670
- let fe = (e) => e, Fe, Be, je, Ae;
671
- const U = 44, en = ze(Fe || (Fe = fe`
672
- 0% {
673
- transform: rotate(0deg);
674
- }
675
-
676
- 100% {
677
- transform: rotate(360deg);
678
- }
679
- `)), tn = ze(Be || (Be = fe`
680
- 0% {
681
- stroke-dasharray: 1px, 200px;
682
- stroke-dashoffset: 0;
683
- }
684
-
685
- 50% {
686
- stroke-dasharray: 100px, 200px;
687
- stroke-dashoffset: -15px;
688
- }
689
-
690
- 100% {
691
- stroke-dasharray: 100px, 200px;
692
- stroke-dashoffset: -125px;
693
- }
694
- `)), nn = (e) => {
695
- const {
696
- classes: t,
697
- variant: r,
698
- color: o,
699
- disableShrink: i
700
- } = e, s = {
701
- root: ["root", r, `color${H(o)}`],
702
- svg: ["svg"],
703
- circle: ["circle", `circle${H(r)}`, i && "circleDisableShrink"]
704
- };
705
- return ne(s, Zt, t);
706
- }, on = L("span", {
707
- name: "MuiCircularProgress",
708
- slot: "Root",
709
- overridesResolver: (e, t) => {
710
- const {
711
- ownerState: r
712
- } = e;
713
- return [t.root, t[r.variant], t[`color${H(r.color)}`]];
714
- }
715
- })(({
716
- ownerState: e,
717
- theme: t
718
- }) => f({
719
- display: "inline-block"
720
- }, e.variant === "determinate" && {
721
- transition: t.transitions.create("transform")
722
- }, e.color !== "inherit" && {
723
- color: (t.vars || t).palette[e.color].main
724
- }), ({
725
- ownerState: e
726
- }) => e.variant === "indeterminate" && We(je || (je = fe`
727
- animation: ${0} 1.4s linear infinite;
728
- `), en)), rn = L("svg", {
729
- name: "MuiCircularProgress",
730
- slot: "Svg",
731
- overridesResolver: (e, t) => t.svg
732
- })({
733
- display: "block"
734
- // Keeps the progress centered
735
- }), sn = L("circle", {
736
- name: "MuiCircularProgress",
737
- slot: "Circle",
738
- overridesResolver: (e, t) => {
739
- const {
740
- ownerState: r
741
- } = e;
742
- return [t.circle, t[`circle${H(r.variant)}`], r.disableShrink && t.circleDisableShrink];
743
- }
744
- })(({
745
- ownerState: e,
746
- theme: t
747
- }) => f({
748
- stroke: "currentColor"
749
- }, e.variant === "determinate" && {
750
- transition: t.transitions.create("stroke-dashoffset")
751
- }, e.variant === "indeterminate" && {
752
- // Some default value that looks fine waiting for the animation to kicks in.
753
- strokeDasharray: "80px, 200px",
754
- strokeDashoffset: 0
755
- // Add the unit to fix a Edge 16 and below bug.
756
- }), ({
757
- ownerState: e
758
- }) => e.variant === "indeterminate" && !e.disableShrink && We(Ae || (Ae = fe`
759
- animation: ${0} 1.4s ease-in-out infinite;
760
- `), tn)), tt = /* @__PURE__ */ u.forwardRef(function(t, r) {
761
- const o = te({
762
- props: t,
763
- name: "MuiCircularProgress"
764
- }), {
765
- className: i,
766
- color: s = "primary",
767
- disableShrink: a = !1,
768
- size: l = 40,
769
- style: c,
770
- thickness: d = 3.6,
771
- value: m = 0,
772
- variant: v = "indeterminate"
773
- } = o, g = z(o, Qt), y = f({}, o, {
774
- color: s,
775
- disableShrink: a,
776
- size: l,
777
- thickness: d,
778
- value: m,
779
- variant: v
780
- }), b = nn(y), C = {}, N = {}, O = {};
781
- if (v === "determinate") {
782
- const $ = 2 * Math.PI * ((U - d) / 2);
783
- C.strokeDasharray = $.toFixed(3), O["aria-valuenow"] = Math.round(m), C.strokeDashoffset = `${((100 - m) / 100 * $).toFixed(3)}px`, N.transform = "rotate(-90deg)";
784
- }
785
- return /* @__PURE__ */ x(on, f({
786
- className: V(b.root, i),
787
- style: f({
788
- width: l,
789
- height: l
790
- }, N, c),
791
- ownerState: y,
792
- ref: r,
793
- role: "progressbar"
794
- }, O, g, {
795
- children: /* @__PURE__ */ x(rn, {
796
- className: b.svg,
797
- ownerState: y,
798
- viewBox: `${U / 2} ${U / 2} ${U} ${U}`,
799
- children: /* @__PURE__ */ x(sn, {
800
- className: b.circle,
801
- style: C,
802
- ownerState: y,
803
- cx: U,
804
- cy: U,
805
- r: (U - d) / 2,
806
- fill: "none",
807
- strokeWidth: d
808
- })
809
- })
810
- }));
811
- });
812
- process.env.NODE_ENV !== "production" && (tt.propTypes = {
813
- // ┌────────────────────────────── Warning ──────────────────────────────┐
814
- // │ These PropTypes are generated from the TypeScript type definitions. │
815
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
816
- // └─────────────────────────────────────────────────────────────────────┘
817
- /**
818
- * Override or extend the styles applied to the component.
819
- */
820
- classes: n.object,
821
- /**
822
- * @ignore
823
- */
824
- className: n.string,
825
- /**
826
- * The color of the component.
827
- * It supports both default and custom theme colors, which can be added as shown in the
828
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
829
- * @default 'primary'
830
- */
831
- color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), n.string]),
832
- /**
833
- * If `true`, the shrink animation is disabled.
834
- * This only works if variant is `indeterminate`.
835
- * @default false
836
- */
837
- disableShrink: Z(n.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
838
- /**
839
- * The size of the component.
840
- * If using a number, the pixel unit is assumed.
841
- * If using a string, you need to provide the CSS unit, for example '3rem'.
842
- * @default 40
843
- */
844
- size: n.oneOfType([n.number, n.string]),
845
- /**
846
- * @ignore
847
- */
848
- style: n.object,
849
- /**
850
- * The system prop that allows defining system overrides as well as additional CSS styles.
851
- */
852
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
853
- /**
854
- * The thickness of the circle.
855
- * @default 3.6
856
- */
857
- thickness: n.number,
858
- /**
859
- * The value of the progress indicator for the determinate variant.
860
- * Value between 0 and 100.
861
- * @default 0
862
- */
863
- value: n.number,
864
- /**
865
- * The variant to use.
866
- * Use indeterminate when there is no progress value.
867
- * @default 'indeterminate'
868
- */
869
- variant: n.oneOf(["determinate", "indeterminate"])
870
- });
871
- function an(e) {
872
- const t = q(e);
873
- return t.body === e ? G(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
874
- }
875
- function J(e, t) {
876
- t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
877
- }
878
- function Le(e) {
879
- return parseInt(G(e).getComputedStyle(e).paddingRight, 10) || 0;
880
- }
881
- function ln(e) {
882
- const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(e.tagName) !== -1, o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
883
- return r || o;
884
- }
885
- function Ve(e, t, r, o, i) {
886
- const s = [t, r, ...o];
887
- [].forEach.call(e.children, (a) => {
888
- const l = s.indexOf(a) === -1, c = !ln(a);
889
- l && c && J(a, i);
890
- });
891
- }
892
- function ve(e, t) {
893
- let r = -1;
894
- return e.some((o, i) => t(o) ? (r = i, !0) : !1), r;
895
- }
896
- function cn(e, t) {
897
- const r = [], o = e.container;
898
- if (!t.disableScrollLock) {
899
- if (an(o)) {
900
- const a = Mt(q(o));
901
- r.push({
902
- value: o.style.paddingRight,
903
- property: "padding-right",
904
- el: o
905
- }), o.style.paddingRight = `${Le(o) + a}px`;
906
- const l = q(o).querySelectorAll(".mui-fixed");
907
- [].forEach.call(l, (c) => {
908
- r.push({
909
- value: c.style.paddingRight,
910
- property: "padding-right",
911
- el: c
912
- }), c.style.paddingRight = `${Le(c) + a}px`;
913
- });
914
- }
915
- let s;
916
- if (o.parentNode instanceof DocumentFragment)
917
- s = q(o).body;
918
- else {
919
- const a = o.parentElement, l = G(o);
920
- s = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : o;
921
- }
922
- r.push({
923
- value: s.style.overflow,
924
- property: "overflow",
925
- el: s
926
- }, {
927
- value: s.style.overflowX,
928
- property: "overflow-x",
929
- el: s
930
- }, {
931
- value: s.style.overflowY,
932
- property: "overflow-y",
933
- el: s
934
- }), s.style.overflow = "hidden";
935
- }
936
- return () => {
937
- r.forEach(({
938
- value: s,
939
- el: a,
940
- property: l
941
- }) => {
942
- s ? a.style.setProperty(l, s) : a.style.removeProperty(l);
943
- });
944
- };
945
- }
946
- function un(e) {
947
- const t = [];
948
- return [].forEach.call(e.children, (r) => {
949
- r.getAttribute("aria-hidden") === "true" && t.push(r);
950
- }), t;
951
- }
952
- class dn {
953
- constructor() {
954
- this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
955
- }
956
- add(t, r) {
957
- let o = this.modals.indexOf(t);
958
- if (o !== -1)
959
- return o;
960
- o = this.modals.length, this.modals.push(t), t.modalRef && J(t.modalRef, !1);
961
- const i = un(r);
962
- Ve(r, t.mount, t.modalRef, i, !0);
963
- const s = ve(this.containers, (a) => a.container === r);
964
- return s !== -1 ? (this.containers[s].modals.push(t), o) : (this.containers.push({
965
- modals: [t],
966
- container: r,
967
- restore: null,
968
- hiddenSiblings: i
969
- }), o);
970
- }
971
- mount(t, r) {
972
- const o = ve(this.containers, (s) => s.modals.indexOf(t) !== -1), i = this.containers[o];
973
- i.restore || (i.restore = cn(i, r));
974
- }
975
- remove(t, r = !0) {
976
- const o = this.modals.indexOf(t);
977
- if (o === -1)
978
- return o;
979
- const i = ve(this.containers, (a) => a.modals.indexOf(t) !== -1), s = this.containers[i];
980
- if (s.modals.splice(s.modals.indexOf(t), 1), this.modals.splice(o, 1), s.modals.length === 0)
981
- s.restore && s.restore(), t.modalRef && J(t.modalRef, r), Ve(s.container, t.mount, t.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
982
- else {
983
- const a = s.modals[s.modals.length - 1];
984
- a.modalRef && J(a.modalRef, !1);
985
- }
986
- return o;
987
- }
988
- isTopModal(t) {
989
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
990
- }
991
- }
992
- const pn = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
993
- function fn(e) {
994
- const t = parseInt(e.getAttribute("tabindex") || "", 10);
995
- return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
996
- }
997
- function mn(e) {
998
- if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
999
- return !1;
1000
- const t = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
1001
- let r = t(`[name="${e.name}"]:checked`);
1002
- return r || (r = t(`[name="${e.name}"]`)), r !== e;
1003
- }
1004
- function hn(e) {
1005
- return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || mn(e));
1006
- }
1007
- function bn(e) {
1008
- const t = [], r = [];
1009
- return Array.from(e.querySelectorAll(pn)).forEach((o, i) => {
1010
- const s = fn(o);
1011
- s === -1 || !hn(o) || (s === 0 ? t.push(o) : r.push({
1012
- documentOrder: i,
1013
- tabIndex: s,
1014
- node: o
1015
- }));
1016
- }), r.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
1017
- }
1018
- function vn() {
1019
- return !0;
1020
- }
1021
- function ue(e) {
1022
- const {
1023
- children: t,
1024
- disableAutoFocus: r = !1,
1025
- disableEnforceFocus: o = !1,
1026
- disableRestoreFocus: i = !1,
1027
- getTabbable: s = bn,
1028
- isEnabled: a = vn,
1029
- open: l
1030
- } = e, c = u.useRef(!1), d = u.useRef(null), m = u.useRef(null), v = u.useRef(null), g = u.useRef(null), y = u.useRef(!1), b = u.useRef(null), C = Y(t.ref, b), N = u.useRef(null);
1031
- u.useEffect(() => {
1032
- !l || !b.current || (y.current = !r);
1033
- }, [r, l]), u.useEffect(() => {
1034
- if (!l || !b.current)
1035
- return;
1036
- const p = q(b.current);
1037
- return b.current.contains(p.activeElement) || (b.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
1038
- `)), b.current.setAttribute("tabIndex", "-1")), y.current && b.current.focus()), () => {
1039
- i || (v.current && v.current.focus && (c.current = !0, v.current.focus()), v.current = null);
1040
- };
1041
- }, [l]), u.useEffect(() => {
1042
- if (!l || !b.current)
1043
- return;
1044
- const p = q(b.current), T = (E) => {
1045
- N.current = E, !(o || !a() || E.key !== "Tab") && p.activeElement === b.current && E.shiftKey && (c.current = !0, m.current && m.current.focus());
1046
- }, w = () => {
1047
- const E = b.current;
1048
- if (E === null)
1049
- return;
1050
- if (!p.hasFocus() || !a() || c.current) {
1051
- c.current = !1;
1052
- return;
1053
- }
1054
- if (E.contains(p.activeElement) || o && p.activeElement !== d.current && p.activeElement !== m.current)
1055
- return;
1056
- if (p.activeElement !== g.current)
1057
- g.current = null;
1058
- else if (g.current !== null)
1059
- return;
1060
- if (!y.current)
1061
- return;
1062
- let I = [];
1063
- if ((p.activeElement === d.current || p.activeElement === m.current) && (I = s(b.current)), I.length > 0) {
1064
- var _, D;
1065
- const M = !!((_ = N.current) != null && _.shiftKey && ((D = N.current) == null ? void 0 : D.key) === "Tab"), B = I[0], j = I[I.length - 1];
1066
- typeof B != "string" && typeof j != "string" && (M ? j.focus() : B.focus());
1067
- } else
1068
- E.focus();
1069
- };
1070
- p.addEventListener("focusin", w), p.addEventListener("keydown", T, !0);
1071
- const S = setInterval(() => {
1072
- p.activeElement && p.activeElement.tagName === "BODY" && w();
1073
- }, 50);
1074
- return () => {
1075
- clearInterval(S), p.removeEventListener("focusin", w), p.removeEventListener("keydown", T, !0);
1076
- };
1077
- }, [r, o, i, a, l, s]);
1078
- const O = (p) => {
1079
- v.current === null && (v.current = p.relatedTarget), y.current = !0, g.current = p.target;
1080
- const T = t.props.onFocus;
1081
- T && T(p);
1082
- }, $ = (p) => {
1083
- v.current === null && (v.current = p.relatedTarget), y.current = !0;
1084
- };
1085
- return /* @__PURE__ */ de(u.Fragment, {
1086
- children: [/* @__PURE__ */ x("div", {
1087
- tabIndex: l ? 0 : -1,
1088
- onFocus: $,
1089
- ref: d,
1090
- "data-testid": "sentinelStart"
1091
- }), /* @__PURE__ */ u.cloneElement(t, {
1092
- ref: C,
1093
- onFocus: O
1094
- }), /* @__PURE__ */ x("div", {
1095
- tabIndex: l ? 0 : -1,
1096
- onFocus: $,
1097
- ref: m,
1098
- "data-testid": "sentinelEnd"
1099
- })]
1100
- });
1101
- }
1102
- process.env.NODE_ENV !== "production" && (ue.propTypes = {
1103
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1104
- // │ These PropTypes are generated from the TypeScript type definitions. │
1105
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
1106
- // └─────────────────────────────────────────────────────────────────────┘
1107
- /**
1108
- * A single child content element.
1109
- */
1110
- children: oe,
1111
- /**
1112
- * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
1113
- * replace it to the last focused element when it closes.
1114
- * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
1115
- *
1116
- * Generally this should never be set to `true` as it makes the focus trap less
1117
- * accessible to assistive technologies, like screen readers.
1118
- * @default false
1119
- */
1120
- disableAutoFocus: n.bool,
1121
- /**
1122
- * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
1123
- *
1124
- * Generally this should never be set to `true` as it makes the focus trap less
1125
- * accessible to assistive technologies, like screen readers.
1126
- * @default false
1127
- */
1128
- disableEnforceFocus: n.bool,
1129
- /**
1130
- * If `true`, the focus trap will not restore focus to previously focused element once
1131
- * focus trap is hidden or unmounted.
1132
- * @default false
1133
- */
1134
- disableRestoreFocus: n.bool,
1135
- /**
1136
- * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
1137
- * For instance, you can provide the "tabbable" npm dependency.
1138
- * @param {HTMLElement} root
1139
- */
1140
- getTabbable: n.func,
1141
- /**
1142
- * This prop extends the `open` prop.
1143
- * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
1144
- * This prop should be memoized.
1145
- * It can be used to support multiple focus trap mounted at the same time.
1146
- * @default function defaultIsEnabled(): boolean {
1147
- * return true;
1148
- * }
1149
- */
1150
- isEnabled: n.func,
1151
- /**
1152
- * If `true`, focus is locked.
1153
- */
1154
- open: n.bool.isRequired
1155
- });
1156
- process.env.NODE_ENV !== "production" && (ue.propTypes = Ye(ue.propTypes));
1157
- function gn(e) {
1158
- return typeof e == "function" ? e() : e;
1159
- }
1160
- function yn(e) {
1161
- return e ? e.props.hasOwnProperty("in") : !1;
1162
- }
1163
- const En = new dn();
1164
- function xn(e) {
1165
- const {
1166
- container: t,
1167
- disableEscapeKeyDown: r = !1,
1168
- disableScrollLock: o = !1,
1169
- // @ts-ignore internal logic - Base UI supports the manager as a prop too
1170
- manager: i = En,
1171
- closeAfterTransition: s = !1,
1172
- onTransitionEnter: a,
1173
- onTransitionExited: l,
1174
- children: c,
1175
- onClose: d,
1176
- open: m,
1177
- rootRef: v
1178
- } = e, g = u.useRef({}), y = u.useRef(null), b = u.useRef(null), C = Y(b, v), [N, O] = u.useState(!m), $ = yn(c);
1179
- let p = !0;
1180
- (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (p = !1);
1181
- const T = () => q(y.current), w = () => (g.current.modalRef = b.current, g.current.mount = y.current, g.current), S = () => {
1182
- i.mount(w(), {
1183
- disableScrollLock: o
1184
- }), b.current && (b.current.scrollTop = 0);
1185
- }, E = Ee(() => {
1186
- const k = gn(t) || T().body;
1187
- i.add(w(), k), b.current && S();
1188
- }), I = u.useCallback(() => i.isTopModal(w()), [i]), _ = Ee((k) => {
1189
- y.current = k, k && (m && I() ? S() : b.current && J(b.current, p));
1190
- }), D = u.useCallback(() => {
1191
- i.remove(w(), p);
1192
- }, [p, i]);
1193
- u.useEffect(() => () => {
1194
- D();
1195
- }, [D]), u.useEffect(() => {
1196
- m ? E() : (!$ || !s) && D();
1197
- }, [m, D, $, s, E]);
1198
- const M = (k) => (R) => {
1199
- var h;
1200
- (h = k.onKeyDown) == null || h.call(k, R), !(R.key !== "Escape" || R.which === 229 || // Wait until IME is settled.
1201
- !I()) && (r || (R.stopPropagation(), d && d(R, "escapeKeyDown")));
1202
- }, B = (k) => (R) => {
1203
- var h;
1204
- (h = k.onClick) == null || h.call(k, R), R.target === R.currentTarget && d && d(R, "backdropClick");
1205
- };
1206
- return {
1207
- getRootProps: (k = {}) => {
1208
- const R = Et(e);
1209
- delete R.onTransitionEnter, delete R.onTransitionExited;
1210
- const h = f({}, R, k);
1211
- return f({
1212
- role: "presentation"
1213
- }, h, {
1214
- onKeyDown: M(h),
1215
- ref: C
1216
- });
1217
- },
1218
- getBackdropProps: (k = {}) => {
1219
- const R = k;
1220
- return f({
1221
- "aria-hidden": !0
1222
- }, R, {
1223
- onClick: B(R),
1224
- open: m
1225
- });
1226
- },
1227
- getTransitionProps: () => {
1228
- const k = () => {
1229
- O(!1), a && a();
1230
- }, R = () => {
1231
- O(!0), l && l(), s && D();
1232
- };
1233
- return {
1234
- onEnter: xe(k, c == null ? void 0 : c.props.onEnter),
1235
- onExited: xe(R, c == null ? void 0 : c.props.onExited)
1236
- };
1237
- },
1238
- rootRef: C,
1239
- portalRef: _,
1240
- isTopModal: I,
1241
- exited: N,
1242
- hasTransition: $
1243
- };
1244
- }
1245
- function Tn(e) {
1246
- return Q("MuiModal", e);
1247
- }
1248
- ee("MuiModal", ["root", "hidden", "backdrop"]);
1249
- const kn = ["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"], Pn = (e) => {
1250
- const {
1251
- open: t,
1252
- exited: r,
1253
- classes: o
1254
- } = e;
1255
- return ne({
1256
- root: ["root", !t && r && "hidden"],
1257
- backdrop: ["backdrop"]
1258
- }, Tn, o);
1259
- }, Rn = L("div", {
1260
- name: "MuiModal",
1261
- slot: "Root",
1262
- overridesResolver: (e, t) => {
1263
- const {
1264
- ownerState: r
1265
- } = e;
1266
- return [t.root, !r.open && r.exited && t.hidden];
1267
- }
1268
- })(({
1269
- theme: e,
1270
- ownerState: t
1271
- }) => f({
1272
- position: "fixed",
1273
- zIndex: (e.vars || e).zIndex.modal,
1274
- right: 0,
1275
- bottom: 0,
1276
- top: 0,
1277
- left: 0
1278
- }, !t.open && t.exited && {
1279
- visibility: "hidden"
1280
- })), Nn = L(Re, {
1281
- name: "MuiModal",
1282
- slot: "Backdrop",
1283
- overridesResolver: (e, t) => t.backdrop
1284
- })({
1285
- zIndex: -1
1286
- }), nt = /* @__PURE__ */ u.forwardRef(function(t, r) {
1287
- var o, i, s, a, l, c;
1288
- const d = te({
1289
- name: "MuiModal",
1290
- props: t
1291
- }), {
1292
- BackdropComponent: m = Nn,
1293
- BackdropProps: v,
1294
- className: g,
1295
- closeAfterTransition: y = !1,
1296
- children: b,
1297
- container: C,
1298
- component: N,
1299
- components: O = {},
1300
- componentsProps: $ = {},
1301
- disableAutoFocus: p = !1,
1302
- disableEnforceFocus: T = !1,
1303
- disableEscapeKeyDown: w = !1,
1304
- disablePortal: S = !1,
1305
- disableRestoreFocus: E = !1,
1306
- disableScrollLock: I = !1,
1307
- hideBackdrop: _ = !1,
1308
- keepMounted: D = !1,
1309
- onBackdropClick: M,
1310
- open: B,
1311
- slotProps: j,
1312
- slots: P
1313
- // eslint-disable-next-line react/prop-types
1314
- } = d, A = z(d, kn), k = f({}, d, {
1315
- closeAfterTransition: y,
1316
- disableAutoFocus: p,
1317
- disableEnforceFocus: T,
1318
- disableEscapeKeyDown: w,
1319
- disablePortal: S,
1320
- disableRestoreFocus: E,
1321
- disableScrollLock: I,
1322
- hideBackdrop: _,
1323
- keepMounted: D
1324
- }), {
1325
- getRootProps: R,
1326
- getBackdropProps: h,
1327
- getTransitionProps: F,
1328
- portalRef: re,
1329
- isTopModal: ct,
1330
- exited: Ce,
1331
- hasTransition: Oe
1332
- } = xn(f({}, k, {
1333
- rootRef: r
1334
- })), X = f({}, k, {
1335
- exited: Ce
1336
- }), W = Pn(X), ie = {};
1337
- if (b.props.tabIndex === void 0 && (ie.tabIndex = "-1"), Oe) {
1338
- const {
1339
- onEnter: K,
1340
- onExited: se
1341
- } = F();
1342
- ie.onEnter = K, ie.onExited = se;
1343
- }
1344
- const Se = (o = (i = P == null ? void 0 : P.root) != null ? i : O.Root) != null ? o : Rn, De = (s = (a = P == null ? void 0 : P.backdrop) != null ? a : O.Backdrop) != null ? s : m, me = (l = j == null ? void 0 : j.root) != null ? l : $.root, he = (c = j == null ? void 0 : j.backdrop) != null ? c : $.backdrop, ut = Me({
1345
- elementType: Se,
1346
- externalSlotProps: me,
1347
- externalForwardedProps: A,
1348
- getSlotProps: R,
1349
- additionalProps: {
1350
- ref: r,
1351
- as: N
1352
- },
1353
- ownerState: X,
1354
- className: V(g, me == null ? void 0 : me.className, W == null ? void 0 : W.root, !X.open && X.exited && (W == null ? void 0 : W.hidden))
1355
- }), dt = Me({
1356
- elementType: De,
1357
- externalSlotProps: he,
1358
- additionalProps: v,
1359
- getSlotProps: (K) => h(f({}, K, {
1360
- onClick: (se) => {
1361
- M && M(se), K != null && K.onClick && K.onClick(se);
1362
- }
1363
- })),
1364
- className: V(he == null ? void 0 : he.className, v == null ? void 0 : v.className, W == null ? void 0 : W.backdrop),
1365
- ownerState: X
1366
- });
1367
- return !D && !B && (!Oe || Ce) ? null : /* @__PURE__ */ x(ce, {
1368
- ref: re,
1369
- container: C,
1370
- disablePortal: S,
1371
- children: /* @__PURE__ */ de(Se, f({}, ut, {
1372
- children: [!_ && m ? /* @__PURE__ */ x(De, f({}, dt)) : null, /* @__PURE__ */ x(ue, {
1373
- disableEnforceFocus: T,
1374
- disableAutoFocus: p,
1375
- disableRestoreFocus: E,
1376
- isEnabled: ct,
1377
- open: B,
1378
- children: /* @__PURE__ */ u.cloneElement(b, ie)
1379
- })]
1380
- }))
1381
- });
1382
- });
1383
- process.env.NODE_ENV !== "production" && (nt.propTypes = {
1384
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1385
- // │ These PropTypes are generated from the TypeScript type definitions. │
1386
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1387
- // └─────────────────────────────────────────────────────────────────────┘
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
- * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
1405
- * @deprecated Use `slotProps.backdrop` instead.
1406
- */
1407
- BackdropProps: n.object,
1408
- /**
1409
- * A single child content element.
1410
- */
1411
- children: oe.isRequired,
1412
- /**
1413
- * Override or extend the styles applied to the component.
1414
- */
1415
- classes: n.object,
1416
- /**
1417
- * @ignore
1418
- */
1419
- className: n.string,
1420
- /**
1421
- * When set to true the Modal waits until a nested Transition is completed before closing.
1422
- * @default false
1423
- */
1424
- closeAfterTransition: n.bool,
1425
- /**
1426
- * The component used for the root node.
1427
- * Either a string to use a HTML element or a component.
1428
- */
1429
- component: n.elementType,
1430
- /**
1431
- * The components used for each slot inside.
1432
- *
1433
- * This prop is an alias for the `slots` prop.
1434
- * It's recommended to use the `slots` prop instead.
1435
- *
1436
- * @default {}
1437
- */
1438
- components: n.shape({
1439
- Backdrop: n.elementType,
1440
- Root: n.elementType
1441
- }),
1442
- /**
1443
- * The extra props for the slot components.
1444
- * You can override the existing props or add new ones.
1445
- *
1446
- * This prop is an alias for the `slotProps` prop.
1447
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
1448
- *
1449
- * @default {}
1450
- */
1451
- componentsProps: n.shape({
1452
- backdrop: n.oneOfType([n.func, n.object]),
1453
- root: n.oneOfType([n.func, n.object])
1454
- }),
1455
- /**
1456
- * An HTML element or function that returns one.
1457
- * The `container` will have the portal children appended to it.
1458
- *
1459
- * You can also provide a callback, which is called in a React layout effect.
1460
- * This lets you set the container from a ref, and also makes server-side rendering possible.
1461
- *
1462
- * By default, it uses the body of the top-level document object,
1463
- * so it's simply `document.body` most of the time.
1464
- */
1465
- container: n.oneOfType([Pe, n.func]),
1466
- /**
1467
- * If `true`, the modal will not automatically shift focus to itself when it opens, and
1468
- * replace it to the last focused element when it closes.
1469
- * This also works correctly with any modal children that have the `disableAutoFocus` prop.
1470
- *
1471
- * Generally this should never be set to `true` as it makes the modal less
1472
- * accessible to assistive technologies, like screen readers.
1473
- * @default false
1474
- */
1475
- disableAutoFocus: n.bool,
1476
- /**
1477
- * If `true`, the modal will not prevent focus from leaving the modal while open.
1478
- *
1479
- * Generally this should never be set to `true` as it makes the modal less
1480
- * accessible to assistive technologies, like screen readers.
1481
- * @default false
1482
- */
1483
- disableEnforceFocus: n.bool,
1484
- /**
1485
- * If `true`, hitting escape will not fire the `onClose` callback.
1486
- * @default false
1487
- */
1488
- disableEscapeKeyDown: n.bool,
1489
- /**
1490
- * The `children` will be under the DOM hierarchy of the parent component.
1491
- * @default false
1492
- */
1493
- disablePortal: n.bool,
1494
- /**
1495
- * If `true`, the modal will not restore focus to previously focused element once
1496
- * modal is hidden or unmounted.
1497
- * @default false
1498
- */
1499
- disableRestoreFocus: n.bool,
1500
- /**
1501
- * Disable the scroll lock behavior.
1502
- * @default false
1503
- */
1504
- disableScrollLock: n.bool,
1505
- /**
1506
- * If `true`, the backdrop is not rendered.
1507
- * @default false
1508
- */
1509
- hideBackdrop: n.bool,
1510
- /**
1511
- * Always keep the children in the DOM.
1512
- * This prop can be useful in SEO situation or
1513
- * when you want to maximize the responsiveness of the Modal.
1514
- * @default false
1515
- */
1516
- keepMounted: n.bool,
1517
- /**
1518
- * Callback fired when the backdrop is clicked.
1519
- * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
1520
- */
1521
- onBackdropClick: n.func,
1522
- /**
1523
- * Callback fired when the component requests to be closed.
1524
- * The `reason` parameter can optionally be used to control the response to `onClose`.
1525
- *
1526
- * @param {object} event The event source of the callback.
1527
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
1528
- */
1529
- onClose: n.func,
1530
- /**
1531
- * A function called when a transition enters.
1532
- */
1533
- onTransitionEnter: n.func,
1534
- /**
1535
- * A function called when a transition has exited.
1536
- */
1537
- onTransitionExited: n.func,
1538
- /**
1539
- * If `true`, the component is shown.
1540
- */
1541
- open: n.bool.isRequired,
1542
- /**
1543
- * The props used for each slot inside the Modal.
1544
- * @default {}
1545
- */
1546
- slotProps: n.shape({
1547
- backdrop: n.oneOfType([n.func, n.object]),
1548
- root: n.oneOfType([n.func, n.object])
1549
- }),
1550
- /**
1551
- * The components used for each slot inside the Modal.
1552
- * Either a string to use a HTML element or a component.
1553
- * @default {}
1554
- */
1555
- slots: n.shape({
1556
- backdrop: n.elementType,
1557
- root: n.elementType
1558
- }),
1559
- /**
1560
- * The system prop that allows defining system overrides as well as additional CSS styles.
1561
- */
1562
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
1563
- });
1564
- const wn = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
1565
- function Cn(e, t, r) {
1566
- const o = t.getBoundingClientRect(), i = r && r.getBoundingClientRect(), s = G(t);
1567
- let a;
1568
- if (t.fakeTransform)
1569
- a = t.fakeTransform;
1570
- else {
1571
- const d = s.getComputedStyle(t);
1572
- a = d.getPropertyValue("-webkit-transform") || d.getPropertyValue("transform");
1573
- }
1574
- let l = 0, c = 0;
1575
- if (a && a !== "none" && typeof a == "string") {
1576
- const d = a.split("(")[1].split(")")[0].split(",");
1577
- l = parseInt(d[4], 10), c = parseInt(d[5], 10);
1578
- }
1579
- return e === "left" ? i ? `translateX(${i.right + l - o.left}px)` : `translateX(${s.innerWidth + l - o.left}px)` : e === "right" ? i ? `translateX(-${o.right - i.left - l}px)` : `translateX(-${o.left + o.width - l}px)` : e === "up" ? i ? `translateY(${i.bottom + c - o.top}px)` : `translateY(${s.innerHeight + c - o.top}px)` : i ? `translateY(-${o.top - i.top + o.height - c}px)` : `translateY(-${o.top + o.height - c}px)`;
1580
- }
1581
- function ot(e) {
1582
- return typeof e == "function" ? e() : e;
1583
- }
1584
- function ae(e, t, r) {
1585
- const o = ot(r), i = Cn(e, t, o);
1586
- i && (t.style.webkitTransform = i, t.style.transform = i);
1587
- }
1588
- const rt = /* @__PURE__ */ u.forwardRef(function(t, r) {
1589
- const o = pe(), i = {
1590
- enter: o.transitions.easing.easeOut,
1591
- exit: o.transitions.easing.sharp
1592
- }, s = {
1593
- enter: o.transitions.duration.enteringScreen,
1594
- exit: o.transitions.duration.leavingScreen
1595
- }, {
1596
- addEndListener: a,
1597
- appear: l = !0,
1598
- children: c,
1599
- container: d,
1600
- direction: m = "down",
1601
- easing: v = i,
1602
- in: g,
1603
- onEnter: y,
1604
- onEntered: b,
1605
- onEntering: C,
1606
- onExit: N,
1607
- onExited: O,
1608
- onExiting: $,
1609
- style: p,
1610
- timeout: T = s,
1611
- // eslint-disable-next-line react/prop-types
1612
- TransitionComponent: w = He
1613
- } = t, S = z(t, wn), E = u.useRef(null), I = Y(c.ref, E, r), _ = (h) => (F) => {
1614
- h && (F === void 0 ? h(E.current) : h(E.current, F));
1615
- }, D = _((h, F) => {
1616
- ae(m, h, d), Ue(h), y && y(h, F);
1617
- }), M = _((h, F) => {
1618
- const re = le({
1619
- timeout: T,
1620
- style: p,
1621
- easing: v
1622
- }, {
1623
- mode: "enter"
1624
- });
1625
- h.style.webkitTransition = o.transitions.create("-webkit-transform", f({}, re)), h.style.transition = o.transitions.create("transform", f({}, re)), h.style.webkitTransform = "none", h.style.transform = "none", C && C(h, F);
1626
- }), B = _(b), j = _($), P = _((h) => {
1627
- const F = le({
1628
- timeout: T,
1629
- style: p,
1630
- easing: v
1631
- }, {
1632
- mode: "exit"
1633
- });
1634
- h.style.webkitTransition = o.transitions.create("-webkit-transform", F), h.style.transition = o.transitions.create("transform", F), ae(m, h, d), N && N(h);
1635
- }), A = _((h) => {
1636
- h.style.webkitTransition = "", h.style.transition = "", O && O(h);
1637
- }), k = (h) => {
1638
- a && a(E.current, h);
1639
- }, R = u.useCallback(() => {
1640
- E.current && ae(m, E.current, d);
1641
- }, [m, d]);
1642
- return u.useEffect(() => {
1643
- if (g || m === "down" || m === "right")
1644
- return;
1645
- const h = Ge(() => {
1646
- E.current && ae(m, E.current, d);
1647
- }), F = G(E.current);
1648
- return F.addEventListener("resize", h), () => {
1649
- h.clear(), F.removeEventListener("resize", h);
1650
- };
1651
- }, [m, g, d]), u.useEffect(() => {
1652
- g || R();
1653
- }, [g, R]), /* @__PURE__ */ x(w, f({
1654
- nodeRef: E,
1655
- onEnter: D,
1656
- onEntered: B,
1657
- onEntering: M,
1658
- onExit: P,
1659
- onExited: A,
1660
- onExiting: j,
1661
- addEndListener: k,
1662
- appear: l,
1663
- in: g,
1664
- timeout: T
1665
- }, S, {
1666
- children: (h, F) => /* @__PURE__ */ u.cloneElement(c, f({
1667
- ref: I,
1668
- style: f({
1669
- visibility: h === "exited" && !g ? "hidden" : void 0
1670
- }, p, c.props.style)
1671
- }, F))
1672
- }));
1673
- });
1674
- process.env.NODE_ENV !== "production" && (rt.propTypes = {
1675
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1676
- // │ These PropTypes are generated from the TypeScript type definitions. │
1677
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1678
- // └─────────────────────────────────────────────────────────────────────┘
1679
- /**
1680
- * Add a custom transition end trigger. Called with the transitioning DOM
1681
- * node and a done callback. Allows for more fine grained transition end
1682
- * logic. Note: Timeouts are still used as a fallback if provided.
1683
- */
1684
- addEndListener: n.func,
1685
- /**
1686
- * Perform the enter transition when it first mounts if `in` is also `true`.
1687
- * Set this to `false` to disable this behavior.
1688
- * @default true
1689
- */
1690
- appear: n.bool,
1691
- /**
1692
- * A single child content element.
1693
- */
1694
- children: oe.isRequired,
1695
- /**
1696
- * An HTML element, or a function that returns one.
1697
- * It's used to set the container the Slide is transitioning from.
1698
- */
1699
- container: Z(n.oneOfType([Pe, n.func]), (e) => {
1700
- if (e.open) {
1701
- const t = ot(e.container);
1702
- if (t && t.nodeType === 1) {
1703
- const r = t.getBoundingClientRect();
1704
- if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
1705
- return new Error(["MUI: The `container` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1706
- `));
1707
- } else if (!t || typeof t.getBoundingClientRect != "function" || t.contextElement != null && t.contextElement.nodeType !== 1)
1708
- return new Error(["MUI: The `container` prop provided to the component is invalid.", "It should be an HTML element instance."].join(`
1709
- `));
1710
- }
1711
- return null;
1712
- }),
1713
- /**
1714
- * Direction the child node will enter from.
1715
- * @default 'down'
1716
- */
1717
- direction: n.oneOf(["down", "left", "right", "up"]),
1718
- /**
1719
- * The transition timing function.
1720
- * You may specify a single easing or a object containing enter and exit values.
1721
- * @default {
1722
- * enter: theme.transitions.easing.easeOut,
1723
- * exit: theme.transitions.easing.sharp,
1724
- * }
1725
- */
1726
- easing: n.oneOfType([n.shape({
1727
- enter: n.string,
1728
- exit: n.string
1729
- }), n.string]),
1730
- /**
1731
- * If `true`, the component will transition in.
1732
- */
1733
- in: n.bool,
1734
- /**
1735
- * @ignore
1736
- */
1737
- onEnter: n.func,
1738
- /**
1739
- * @ignore
1740
- */
1741
- onEntered: n.func,
1742
- /**
1743
- * @ignore
1744
- */
1745
- onEntering: n.func,
1746
- /**
1747
- * @ignore
1748
- */
1749
- onExit: n.func,
1750
- /**
1751
- * @ignore
1752
- */
1753
- onExited: n.func,
1754
- /**
1755
- * @ignore
1756
- */
1757
- onExiting: n.func,
1758
- /**
1759
- * @ignore
1760
- */
1761
- style: n.object,
1762
- /**
1763
- * The duration for the transition, in milliseconds.
1764
- * You may specify a single timeout for all transitions, or individually with an object.
1765
- * @default {
1766
- * enter: theme.transitions.duration.enteringScreen,
1767
- * exit: theme.transitions.duration.leavingScreen,
1768
- * }
1769
- */
1770
- timeout: n.oneOfType([n.number, n.shape({
1771
- appear: n.number,
1772
- enter: n.number,
1773
- exit: n.number
1774
- })])
1775
- });
1776
- function On(e) {
1777
- return Q("MuiDrawer", e);
1778
- }
1779
- ee("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
1780
- const Sn = ["BackdropProps"], Dn = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"], it = (e, t) => {
1781
- const {
1782
- ownerState: r
1783
- } = e;
1784
- return [t.root, (r.variant === "permanent" || r.variant === "persistent") && t.docked, t.modal];
1785
- }, $n = (e) => {
1786
- const {
1787
- classes: t,
1788
- anchor: r,
1789
- variant: o
1790
- } = e, i = {
1791
- root: ["root"],
1792
- docked: [(o === "permanent" || o === "persistent") && "docked"],
1793
- modal: ["modal"],
1794
- paper: ["paper", `paperAnchor${H(r)}`, o !== "temporary" && `paperAnchorDocked${H(r)}`]
1795
- };
1796
- return ne(i, On, t);
1797
- }, Mn = L(nt, {
1798
- name: "MuiDrawer",
1799
- slot: "Root",
1800
- overridesResolver: it
1801
- })(({
1802
- theme: e
1803
- }) => ({
1804
- zIndex: (e.vars || e).zIndex.drawer
1805
- })), qe = L("div", {
1806
- shouldForwardProp: xt,
1807
- name: "MuiDrawer",
1808
- slot: "Docked",
1809
- skipVariantsResolver: !1,
1810
- overridesResolver: it
1811
- })({
1812
- flex: "0 0 auto"
1813
- }), In = L(Qe, {
1814
- name: "MuiDrawer",
1815
- slot: "Paper",
1816
- overridesResolver: (e, t) => {
1817
- const {
1818
- ownerState: r
1819
- } = e;
1820
- return [t.paper, t[`paperAnchor${H(r.anchor)}`], r.variant !== "temporary" && t[`paperAnchorDocked${H(r.anchor)}`]];
1821
- }
1822
- })(({
1823
- theme: e,
1824
- ownerState: t
1825
- }) => f({
1826
- overflowY: "auto",
1827
- display: "flex",
1828
- flexDirection: "column",
1829
- height: "100%",
1830
- flex: "1 0 auto",
1831
- zIndex: (e.vars || e).zIndex.drawer,
1832
- // Add iOS momentum scrolling for iOS < 13.0
1833
- WebkitOverflowScrolling: "touch",
1834
- // temporary style
1835
- position: "fixed",
1836
- top: 0,
1837
- // We disable the focus ring for mouse, touch and keyboard users.
1838
- // At some point, it would be better to keep it for keyboard users.
1839
- // :focus-ring CSS pseudo-class will help.
1840
- outline: 0
1841
- }, t.anchor === "left" && {
1842
- left: 0
1843
- }, t.anchor === "top" && {
1844
- top: 0,
1845
- left: 0,
1846
- right: 0,
1847
- height: "auto",
1848
- maxHeight: "100%"
1849
- }, t.anchor === "right" && {
1850
- right: 0
1851
- }, t.anchor === "bottom" && {
1852
- top: "auto",
1853
- left: 0,
1854
- bottom: 0,
1855
- right: 0,
1856
- height: "auto",
1857
- maxHeight: "100%"
1858
- }, t.anchor === "left" && t.variant !== "temporary" && {
1859
- borderRight: `1px solid ${(e.vars || e).palette.divider}`
1860
- }, t.anchor === "top" && t.variant !== "temporary" && {
1861
- borderBottom: `1px solid ${(e.vars || e).palette.divider}`
1862
- }, t.anchor === "right" && t.variant !== "temporary" && {
1863
- borderLeft: `1px solid ${(e.vars || e).palette.divider}`
1864
- }, t.anchor === "bottom" && t.variant !== "temporary" && {
1865
- borderTop: `1px solid ${(e.vars || e).palette.divider}`
1866
- })), st = {
1867
- left: "right",
1868
- right: "left",
1869
- top: "down",
1870
- bottom: "up"
1871
- };
1872
- function _n(e) {
1873
- return ["left", "right"].indexOf(e) !== -1;
1874
- }
1875
- function Fn({
1876
- direction: e
1877
- }, t) {
1878
- return e === "rtl" && _n(t) ? st[t] : t;
1879
- }
1880
- const at = /* @__PURE__ */ u.forwardRef(function(t, r) {
1881
- const o = te({
1882
- props: t,
1883
- name: "MuiDrawer"
1884
- }), i = pe(), s = Tt(), a = {
1885
- enter: i.transitions.duration.enteringScreen,
1886
- exit: i.transitions.duration.leavingScreen
1887
- }, {
1888
- anchor: l = "left",
1889
- BackdropProps: c,
1890
- children: d,
1891
- className: m,
1892
- elevation: v = 16,
1893
- hideBackdrop: g = !1,
1894
- ModalProps: {
1895
- BackdropProps: y
1896
- } = {},
1897
- onClose: b,
1898
- open: C = !1,
1899
- PaperProps: N = {},
1900
- SlideProps: O,
1901
- // eslint-disable-next-line react/prop-types
1902
- TransitionComponent: $ = rt,
1903
- transitionDuration: p = a,
1904
- variant: T = "temporary"
1905
- } = o, w = z(o.ModalProps, Sn), S = z(o, Dn), E = u.useRef(!1);
1906
- u.useEffect(() => {
1907
- E.current = !0;
1908
- }, []);
1909
- const I = Fn({
1910
- direction: s ? "rtl" : "ltr"
1911
- }, l), D = f({}, o, {
1912
- anchor: l,
1913
- elevation: v,
1914
- open: C,
1915
- variant: T
1916
- }, S), M = $n(D), B = /* @__PURE__ */ x(In, f({
1917
- elevation: T === "temporary" ? v : 0,
1918
- square: !0
1919
- }, N, {
1920
- className: V(M.paper, N.className),
1921
- ownerState: D,
1922
- children: d
1923
- }));
1924
- if (T === "permanent")
1925
- return /* @__PURE__ */ x(qe, f({
1926
- className: V(M.root, M.docked, m),
1927
- ownerState: D,
1928
- ref: r
1929
- }, S, {
1930
- children: B
1931
- }));
1932
- const j = /* @__PURE__ */ x($, f({
1933
- in: C,
1934
- direction: st[I],
1935
- timeout: p,
1936
- appear: E.current
1937
- }, O, {
1938
- children: B
1939
- }));
1940
- return T === "persistent" ? /* @__PURE__ */ x(qe, f({
1941
- className: V(M.root, M.docked, m),
1942
- ownerState: D,
1943
- ref: r
1944
- }, S, {
1945
- children: j
1946
- })) : /* @__PURE__ */ x(Mn, f({
1947
- BackdropProps: f({}, c, y, {
1948
- transitionDuration: p
1949
- }),
1950
- className: V(M.root, M.modal, m),
1951
- open: C,
1952
- ownerState: D,
1953
- onClose: b,
1954
- hideBackdrop: g,
1955
- ref: r
1956
- }, S, w, {
1957
- children: j
1958
- }));
1959
- });
1960
- process.env.NODE_ENV !== "production" && (at.propTypes = {
1961
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1962
- // │ These PropTypes are generated from the TypeScript type definitions. │
1963
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1964
- // └─────────────────────────────────────────────────────────────────────┘
1965
- /**
1966
- * Side from which the drawer will appear.
1967
- * @default 'left'
1968
- */
1969
- anchor: n.oneOf(["bottom", "left", "right", "top"]),
1970
- /**
1971
- * @ignore
1972
- */
1973
- BackdropProps: n.object,
1974
- /**
1975
- * The content of the component.
1976
- */
1977
- children: n.node,
1978
- /**
1979
- * Override or extend the styles applied to the component.
1980
- */
1981
- classes: n.object,
1982
- /**
1983
- * @ignore
1984
- */
1985
- className: n.string,
1986
- /**
1987
- * The elevation of the drawer.
1988
- * @default 16
1989
- */
1990
- elevation: Ze,
1991
- /**
1992
- * If `true`, the backdrop is not rendered.
1993
- * @default false
1994
- */
1995
- hideBackdrop: n.bool,
1996
- /**
1997
- * Props applied to the [`Modal`](/material-ui/api/modal/) element.
1998
- * @default {}
1999
- */
2000
- ModalProps: n.object,
2001
- /**
2002
- * Callback fired when the component requests to be closed.
2003
- * The `reason` parameter can optionally be used to control the response to `onClose`.
2004
- *
2005
- * @param {object} event The event source of the callback.
2006
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
2007
- */
2008
- onClose: n.func,
2009
- /**
2010
- * If `true`, the component is shown.
2011
- * @default false
2012
- */
2013
- open: n.bool,
2014
- /**
2015
- * Props applied to the [`Paper`](/material-ui/api/paper/) element.
2016
- * @default {}
2017
- */
2018
- PaperProps: n.object,
2019
- /**
2020
- * Props applied to the [`Slide`](/material-ui/api/slide/) element.
2021
- */
2022
- SlideProps: n.object,
2023
- /**
2024
- * The system prop that allows defining system overrides as well as additional CSS styles.
2025
- */
2026
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
2027
- /**
2028
- * The duration for the transition, in milliseconds.
2029
- * You may specify a single timeout for all transitions, or individually with an object.
2030
- * @default {
2031
- * enter: theme.transitions.duration.enteringScreen,
2032
- * exit: theme.transitions.duration.leavingScreen,
2033
- * }
2034
- */
2035
- transitionDuration: n.oneOfType([n.number, n.shape({
2036
- appear: n.number,
2037
- enter: n.number,
2038
- exit: n.number
2039
- })]),
2040
- /**
2041
- * The variant to use.
2042
- * @default 'temporary'
2043
- */
2044
- variant: n.oneOf(["permanent", "persistent", "temporary"])
2045
- });
2046
- const Bn = ({
2047
- size: e = 36,
2048
- ...t
2049
- }) => /* @__PURE__ */ x(
2050
- Re,
2051
- {
2052
- ...t,
2053
- sx: { position: "absolute", backgroundColor: "rgba(0, 0, 0, 0.3)" },
2054
- "data-testid": "loading-backdrop",
2055
- children: /* @__PURE__ */ x(tt, { color: "secondary", size: e })
2056
- }
2057
- ), jn = ({ children: e }) => /* @__PURE__ */ x(kt, { flex: 1, children: e }), An = ({ children: e }) => /* @__PURE__ */ x(ke, { direction: "row", justifyContent: "end", columnGap: 1, pb: 2, children: e });
2058
- var Ne = {}, Ln = Pt;
2059
- Object.defineProperty(Ne, "__esModule", {
2060
- value: !0
2061
- });
2062
- var lt = Ne.default = void 0, Vn = Ln(Lt()), qn = pt;
2063
- lt = Ne.default = (0, Vn.default)(/* @__PURE__ */ (0, qn.jsx)("path", {
2064
- d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
2065
- }), "Close");
2066
- const Hn = ({ children: e, onClose: t }) => /* @__PURE__ */ de(
2067
- ke,
2068
- {
2069
- direction: "row",
2070
- justifyContent: "space-between",
2071
- alignItems: "center",
2072
- pb: 2,
2073
- children: [
2074
- /* @__PURE__ */ x(Rt, { fontSize: 16, fontWeight: "bold", children: e }),
2075
- /* @__PURE__ */ x(Nt, { size: "small", onClick: t, "data-testid": "drawer-close", children: /* @__PURE__ */ x(lt, { fontSize: "inherit" }) })
2076
- ]
2077
- }
2078
- ), we = ({
2079
- anchor: e = "right",
2080
- children: t,
2081
- width: r,
2082
- loading: o = !1,
2083
- ...i
2084
- }) => /* @__PURE__ */ x(at, { anchor: e, "data-testid": "drawer", ...i, children: /* @__PURE__ */ de(ke, { height: "100%", p: 2, width: r, position: "relative", children: [
2085
- t,
2086
- /* @__PURE__ */ x(Bn, { open: o })
2087
- ] }) });
2088
- we.Header = Hn;
2089
- we.Content = jn;
2090
- we.Footer = An;
2091
- export {
2092
- Re as B,
2093
- tt as C,
2094
- we as D,
2095
- et as F,
2096
- Pe as H,
2097
- Bn as L,
2098
- nt as M,
2099
- Qe as P,
2100
- ce as a,
2101
- oe as b,
2102
- Dt as c,
2103
- Ge as d,
2104
- Ye as e,
2105
- $t as f,
2106
- Mt as g,
2107
- ue as h,
2108
- Ze as i,
2109
- lt as j,
2110
- G as o,
2111
- Lt as r
2112
- };