@cgi-learning-hub/ui 1.3.5-dev.1736345385 → 1.3.5
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.
- package/dist/Backdrop-CvufxHMY.cjs +1 -0
- package/dist/{Backdrop-B78NPr0F.js → Backdrop-DcDd6WZF.js} +73 -70
- package/dist/{Box-BzbXlIpa.js → Box-Byz2BwGf.js} +3 -3
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-By0vfP8J.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-ZtXnS9gg.js → ButtonBase-DAWDecOk.js} +277 -277
- package/dist/{Card-CQBb4UMy.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-CWN2YKNQ.js → Checkbox-8Rhxpkjl.js} +19 -18
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-B8D0BpDv.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-D5Rf5NAr.js → DatePicker-BS1OatwQ.js} +2245 -2256
- package/dist/{DefaultPropsProvider-DS3RzjuS.cjs → DefaultPropsProvider-3KMGupjb.cjs} +3 -3
- package/dist/{DefaultPropsProvider-DEufUd_C.js → DefaultPropsProvider-CvJPQJmL.js} +20 -21
- package/dist/{Delete-DwpFA0q9.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DV3Q-OXQ.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/{Dialog-CEC-r5SR.js → Dialog-D_lS4J_M.js} +16 -15
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/{DialogContent-CmsuCpdK.js → DialogContent-uc65XOEU.js} +3 -3
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-CAsdh55l.js → DialogTitle-C8JOi-rq.js} +5 -5
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-D8G4fS_W.js → Divider-KO-E6nU8.js} +4 -4
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-0Z4FgiQi.js → FormControlLabel-BmrKQtQA.js} +13 -12
- package/dist/{FormGroup-B6BQaLl5.js → FormGroup-CbczEc6e.js} +2 -2
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-BljR05I0.js → FormLabel-CfR4bb21.js} +83 -80
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-BknJanej.js → Grow-CQVPAYvp.js} +34 -37
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-C6hPeqXq.js → IconButton-CekuyD4r.js} +9 -8
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-DYe9bZdy.js → InputAdornment-iU5YnveW.js} +15 -15
- package/dist/{InputBase-bIxQpDEw.js → InputBase-BJy3wwFB.js} +24 -23
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-69Y2GGzK.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-CrLJY61G.js → Menu-C7tKmcAh.js} +27 -26
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-i8U9J9Ds.js → MenuItem-j8luVUcX.js} +6 -6
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-Airm8V-9.js → Modal-brWBFdK7.js} +81 -82
- package/dist/{Paper-zmG6CtmU.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-CQ0ZGqya.js → Popper-DFZ_gRev.js} +5 -5
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BSNCqu7q.js → Portal-JEwcozmp.js} +39 -34
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-DAKlrqC8.js → Radio-DGhot3Cd.js} +16 -15
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-B6NmIC6a.js → Select-DmssuG5M.js} +416 -424
- package/dist/{Stack-LOzokt50.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CXvx1DtF.js → SwitchBase-Dlth5_F7.js} +23 -22
- package/dist/{TableSortLabel-C4rUHuBk.js → TableSortLabel-BsgRD4k4.js} +1706 -1808
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-DFlFghRY.js → Tabs-CYbeTnJk.js} +115 -113
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-B9Jog6CY.js → TextField-Cri5Gxa7.js} +20 -21
- package/dist/{Tooltip-zyIjqlzt.js → Tooltip-BhAHhzKz.js} +31 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-DeEwslc2.js → Typography-DBwTr_ix.js} +39 -38
- package/dist/Typography-DfRMDngd.cjs +1 -0
- package/dist/capitalize-B3GG7Wn6.cjs +1 -0
- package/dist/capitalize-CkF8kU4n.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +140 -103
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +7 -7
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +3 -3
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +31 -31
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +4 -4
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +20 -19
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +6 -6
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +4 -4
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon--rEClVU7.cjs +1 -0
- package/dist/{createSvgIcon-DCcHNe8S.js → createSvgIcon-C8nGcfF4.js} +41 -40
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-BIQl1sXf.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-C9ErcCVk.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-BtWdisVp.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-DuQ8Gjnk.js → generateUtilityClasses-Bssl7BA_.js} +811 -781
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CvvRovRe.js → index-BCnPLuqJ.js} +4 -4
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BrVfbiqv.js → index-CwvpOCso.js} +29 -29
- package/dist/index-DXD5J5Eu.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +31 -31
- package/dist/{memoTheme-BBurdur9.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-BX806g-H.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-BsjDgxuc.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/{refType-Bj5oVmPL.js → refType-DKYKROQk.js} +1 -1
- package/dist/useSlot-BTpHG6jf.js +50 -0
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/{index-Bh3yiNTb.js → useSlotProps-B31YQlzb.js} +26 -26
- package/dist/useSlotProps-BVSAQTNl.cjs +1 -0
- package/dist/useTheme-Cy5kyKJF.cjs +1 -0
- package/dist/useTheme-Dukx-__T.cjs +1 -0
- package/dist/useTheme-DyaNKf4e.js +11 -0
- package/dist/{useTheme-Btccn2RE.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-DkiiJVq2.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-SHbptCB5.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-H1IpEt-K.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/{utils-CAhqvD6J.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +9 -9
- package/dist/Backdrop-CGpJR5Hl.cjs +0 -1
- package/dist/Box-DjTF7J_q.cjs +0 -1
- package/dist/Button-D3qGoavT.cjs +0 -1
- package/dist/ButtonBase-CL4z-tXi.cjs +0 -74
- package/dist/Card-DVvNw_iY.cjs +0 -1
- package/dist/Checkbox-V6OQIwlV.cjs +0 -1
- package/dist/CircularProgress-Cgy3S9U3.cjs +0 -28
- package/dist/DatePicker-BPbdIoL9.cjs +0 -14
- package/dist/Dialog-BydVKebY.cjs +0 -1
- package/dist/DialogContent-BK2ayZAZ.cjs +0 -1
- package/dist/DialogTitle-BOT7MPXD.cjs +0 -1
- package/dist/Divider-tJEWvRjW.cjs +0 -1
- package/dist/FormControlLabel-B3aVcND9.cjs +0 -1
- package/dist/FormGroup-CaIWje6a.cjs +0 -1
- package/dist/FormLabel-cfHljFCc.cjs +0 -2
- package/dist/Grow-CTl1xcRO.cjs +0 -1
- package/dist/IconButton-DLqUtTTS.cjs +0 -2
- package/dist/InputAdornment-C-w19sIO.cjs +0 -1
- package/dist/InputBase-BNmBX1sj.cjs +0 -3
- package/dist/Link-CbFN--su.cjs +0 -1
- package/dist/Menu-CDKB-4vE.cjs +0 -7
- package/dist/MenuItem-Cz_afi4Z.cjs +0 -1
- package/dist/Modal-CAWPr5pr.cjs +0 -2
- package/dist/Paper-D7GaBTFY.cjs +0 -2
- package/dist/Popper-PxC5lBvF.cjs +0 -4
- package/dist/Portal-Cw7h9YXi.cjs +0 -1
- package/dist/Radio-D8JzkZ7R.cjs +0 -1
- package/dist/Select-D3AUyBzT.cjs +0 -3
- package/dist/Stack-ChAD7MBi.cjs +0 -1
- package/dist/SwitchBase-C9eGMRmU.cjs +0 -1
- package/dist/TableSortLabel-BJ0u2uA5.cjs +0 -98
- package/dist/Tabs-CSXp7psk.cjs +0 -4
- package/dist/TextField-dzDYEheV.cjs +0 -1
- package/dist/Tooltip-Dxitr7Ef.cjs +0 -4
- package/dist/Typography-Bwmxx4FZ.cjs +0 -1
- package/dist/createSvgIcon-B-TuJjUa.cjs +0 -1
- package/dist/dividerClasses-gUm5VAyT.cjs +0 -1
- package/dist/elementTypeAcceptingRef-BpVcc71P.cjs +0 -1
- package/dist/extendSxProp-RlEfz15o.cjs +0 -1
- package/dist/identifier-wZ6XDHde.cjs +0 -59
- package/dist/index-BtBEUHyX.cjs +0 -5
- package/dist/index-Cwbb61M9.cjs +0 -1
- package/dist/index-DGoTWEZ6.cjs +0 -1
- package/dist/refType-CqcE23ld.cjs +0 -1
- package/dist/resolveComponentProps-CwoUNybl.cjs +0 -1
- package/dist/useSlot-CcIPcgkB.cjs +0 -1
- package/dist/useSlot-D3Bt2dZB.js +0 -44
- package/dist/useTheme-C7xxleiU.cjs +0 -1
- package/dist/useTheme-CVDdFPAV.js +0 -11
- package/dist/useTheme-DZ8a53P0.cjs +0 -1
- package/dist/useThemeProps-BZX2pbh5.cjs +0 -1
- package/dist/utils-DWiPKWpw.cjs +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { P as n, H as
|
|
3
|
-
import { m as
|
|
2
|
+
import { P as n, H as be, I as he, G as Z } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
+
import { m as ge } from "./memoTheme-D7Fyh_3C.js";
|
|
4
4
|
import { o as z } from "./ownerWindow-niciwP7I.js";
|
|
5
5
|
import { o as A } from "./ownerDocument-CUrv0DIK.js";
|
|
6
6
|
import { u as Y } from "./useForkRef-C_4o__cU.js";
|
|
7
7
|
import { u as ee } from "./useEventCallback-BAQJJ3ye.js";
|
|
8
|
-
import { e as
|
|
8
|
+
import { e as Ee } from "./mergeSlotProps-tUJEcwVu.js";
|
|
9
9
|
import { c as te } from "./createChainedFunction-C0nujS3O.js";
|
|
10
|
-
import { u as oe } from "./useSlot-
|
|
11
|
-
import { jsxs as
|
|
12
|
-
import { s as
|
|
13
|
-
import { B as
|
|
14
|
-
import { e as
|
|
15
|
-
import { g as
|
|
16
|
-
function
|
|
10
|
+
import { u as oe } from "./useSlot-BTpHG6jf.js";
|
|
11
|
+
import { jsxs as se, jsx as j } from "react/jsx-runtime";
|
|
12
|
+
import { s as ie, u as Te, c as ye } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
13
|
+
import { B as Re } from "./Backdrop-DcDd6WZF.js";
|
|
14
|
+
import { e as xe, P as ke, H as Pe } from "./Portal-JEwcozmp.js";
|
|
15
|
+
import { g as ve, e as ce } from "./utils-C6c4fj7D.js";
|
|
16
|
+
function Ie(e = window) {
|
|
17
17
|
const t = e.document.documentElement.clientWidth;
|
|
18
18
|
return e.innerWidth - t;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ne(e) {
|
|
21
21
|
const t = A(e);
|
|
22
22
|
return t.body === e ? z(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
|
|
23
23
|
}
|
|
@@ -27,14 +27,14 @@ function K(e, t) {
|
|
|
27
27
|
function ne(e) {
|
|
28
28
|
return parseInt(z(e).getComputedStyle(e).paddingRight, 10) || 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ce(e) {
|
|
31
31
|
const s = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(e.tagName), o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
|
|
32
32
|
return s || o;
|
|
33
33
|
}
|
|
34
34
|
function re(e, t, s, o, i) {
|
|
35
35
|
const r = [t, s, ...o];
|
|
36
36
|
[].forEach.call(e.children, (c) => {
|
|
37
|
-
const a = !r.includes(c), m = !
|
|
37
|
+
const a = !r.includes(c), m = !Ce(c);
|
|
38
38
|
a && m && K(c, i);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -42,11 +42,11 @@ function $(e, t) {
|
|
|
42
42
|
let s = -1;
|
|
43
43
|
return e.some((o, i) => t(o) ? (s = i, !0) : !1), s;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Se(e, t) {
|
|
46
46
|
const s = [], o = e.container;
|
|
47
47
|
if (!t.disableScrollLock) {
|
|
48
|
-
if (
|
|
49
|
-
const c =
|
|
48
|
+
if (Ne(o)) {
|
|
49
|
+
const c = Ie(z(o));
|
|
50
50
|
s.push({
|
|
51
51
|
value: o.style.paddingRight,
|
|
52
52
|
property: "padding-right",
|
|
@@ -92,13 +92,13 @@ function Fe(e, t) {
|
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Fe(e) {
|
|
96
96
|
const t = [];
|
|
97
97
|
return [].forEach.call(e.children, (s) => {
|
|
98
98
|
s.getAttribute("aria-hidden") === "true" && t.push(s);
|
|
99
99
|
}), t;
|
|
100
100
|
}
|
|
101
|
-
class
|
|
101
|
+
class Me {
|
|
102
102
|
constructor() {
|
|
103
103
|
this.modals = [], this.containers = [];
|
|
104
104
|
}
|
|
@@ -107,7 +107,7 @@ class Oe {
|
|
|
107
107
|
if (o !== -1)
|
|
108
108
|
return o;
|
|
109
109
|
o = this.modals.length, this.modals.push(t), t.modalRef && K(t.modalRef, !1);
|
|
110
|
-
const i =
|
|
110
|
+
const i = Fe(s);
|
|
111
111
|
re(s, t.mount, t.modalRef, i, !0);
|
|
112
112
|
const r = $(this.containers, (c) => c.container === s);
|
|
113
113
|
return r !== -1 ? (this.containers[r].modals.push(t), o) : (this.containers.push({
|
|
@@ -119,7 +119,7 @@ class Oe {
|
|
|
119
119
|
}
|
|
120
120
|
mount(t, s) {
|
|
121
121
|
const o = $(this.containers, (r) => r.modals.includes(t)), i = this.containers[o];
|
|
122
|
-
i.restore || (i.restore =
|
|
122
|
+
i.restore || (i.restore = Se(i, s));
|
|
123
123
|
}
|
|
124
124
|
remove(t, s = !0) {
|
|
125
125
|
const o = this.modals.indexOf(t);
|
|
@@ -138,33 +138,33 @@ class Oe {
|
|
|
138
138
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
function
|
|
141
|
+
const Oe = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
142
|
+
function we(e) {
|
|
143
143
|
const t = parseInt(e.getAttribute("tabindex") || "", 10);
|
|
144
144
|
return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ae(e) {
|
|
147
147
|
if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
|
|
148
148
|
return !1;
|
|
149
149
|
const t = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
|
|
150
150
|
let s = t(`[name="${e.name}"]:checked`);
|
|
151
151
|
return s || (s = t(`[name="${e.name}"]`)), s !== e;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" ||
|
|
153
|
+
function De(e) {
|
|
154
|
+
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Ae(e));
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Be(e) {
|
|
157
157
|
const t = [], s = [];
|
|
158
|
-
return Array.from(e.querySelectorAll(
|
|
159
|
-
const r =
|
|
160
|
-
r === -1 || !
|
|
158
|
+
return Array.from(e.querySelectorAll(Oe)).forEach((o, i) => {
|
|
159
|
+
const r = we(o);
|
|
160
|
+
r === -1 || !De(o) || (r === 0 ? t.push(o) : s.push({
|
|
161
161
|
documentOrder: i,
|
|
162
162
|
tabIndex: r,
|
|
163
163
|
node: o
|
|
164
164
|
}));
|
|
165
165
|
}), s.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Le() {
|
|
168
168
|
return !0;
|
|
169
169
|
}
|
|
170
170
|
function V(e) {
|
|
@@ -173,10 +173,10 @@ function V(e) {
|
|
|
173
173
|
disableAutoFocus: s = !1,
|
|
174
174
|
disableEnforceFocus: o = !1,
|
|
175
175
|
disableRestoreFocus: i = !1,
|
|
176
|
-
getTabbable: r =
|
|
177
|
-
isEnabled: c =
|
|
176
|
+
getTabbable: r = Be,
|
|
177
|
+
isEnabled: c = Le,
|
|
178
178
|
open: a
|
|
179
|
-
} = e, m = u.useRef(!1), E = u.useRef(null), k = u.useRef(null), h = u.useRef(null), y = u.useRef(null), b = u.useRef(!1), p = u.useRef(null), w = Y(
|
|
179
|
+
} = e, m = u.useRef(!1), E = u.useRef(null), k = u.useRef(null), h = u.useRef(null), y = u.useRef(null), b = u.useRef(!1), p = u.useRef(null), w = Y(ve(t), p), N = u.useRef(null);
|
|
180
180
|
u.useEffect(() => {
|
|
181
181
|
!a || !p.current || (b.current = !s);
|
|
182
182
|
}, [s, a]), u.useEffect(() => {
|
|
@@ -231,7 +231,7 @@ function V(e) {
|
|
|
231
231
|
}, R = (l) => {
|
|
232
232
|
h.current === null && (h.current = l.relatedTarget), b.current = !0;
|
|
233
233
|
};
|
|
234
|
-
return /* @__PURE__ */
|
|
234
|
+
return /* @__PURE__ */ se(u.Fragment, {
|
|
235
235
|
children: [/* @__PURE__ */ j("div", {
|
|
236
236
|
tabIndex: a ? 0 : -1,
|
|
237
237
|
onFocus: R,
|
|
@@ -256,7 +256,7 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
256
256
|
/**
|
|
257
257
|
* A single child content element.
|
|
258
258
|
*/
|
|
259
|
-
children:
|
|
259
|
+
children: ce,
|
|
260
260
|
/**
|
|
261
261
|
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
262
262
|
* replace it to the last focused element when it closes.
|
|
@@ -302,16 +302,15 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
302
302
|
*/
|
|
303
303
|
open: n.bool.isRequired
|
|
304
304
|
});
|
|
305
|
-
process.env.NODE_ENV !== "production" && (V.propTypes =
|
|
306
|
-
function
|
|
305
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = xe(V.propTypes));
|
|
306
|
+
function je(e) {
|
|
307
307
|
return typeof e == "function" ? e() : e;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function Ke(e) {
|
|
310
310
|
return e ? e.props.hasOwnProperty("in") : !1;
|
|
311
311
|
}
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
function We(e) {
|
|
312
|
+
const H = new Me();
|
|
313
|
+
function Ue(e) {
|
|
315
314
|
const {
|
|
316
315
|
container: t,
|
|
317
316
|
disableEscapeKeyDown: s = !1,
|
|
@@ -323,7 +322,7 @@ function We(e) {
|
|
|
323
322
|
onClose: m,
|
|
324
323
|
open: E,
|
|
325
324
|
rootRef: k
|
|
326
|
-
} = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p = Y(b, k), [w, N] = u.useState(!E), C =
|
|
325
|
+
} = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p = Y(b, k), [w, N] = u.useState(!E), C = Ke(a);
|
|
327
326
|
let R = !0;
|
|
328
327
|
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (R = !1);
|
|
329
328
|
const l = () => A(y.current), g = () => (h.current.modalRef = b.current, h.current.mount = y.current, h.current), P = () => {
|
|
@@ -331,7 +330,7 @@ function We(e) {
|
|
|
331
330
|
disableScrollLock: o
|
|
332
331
|
}), b.current && (b.current.scrollTop = 0);
|
|
333
332
|
}, F = ee(() => {
|
|
334
|
-
const d =
|
|
333
|
+
const d = je(t) || l().body;
|
|
335
334
|
H.add(g(), d), b.current && P();
|
|
336
335
|
}), T = () => H.isTopModal(g()), S = ee((d) => {
|
|
337
336
|
y.current = d, d && (E && T() ? P() : b.current && K(b.current, R));
|
|
@@ -353,7 +352,7 @@ function We(e) {
|
|
|
353
352
|
};
|
|
354
353
|
return {
|
|
355
354
|
getRootProps: (d = {}) => {
|
|
356
|
-
const f =
|
|
355
|
+
const f = Ee(e);
|
|
357
356
|
delete f.onTransitionEnter, delete f.onTransitionExited;
|
|
358
357
|
const x = {
|
|
359
358
|
...f,
|
|
@@ -388,8 +387,8 @@ function We(e) {
|
|
|
388
387
|
N(!0), c && c(), i && v();
|
|
389
388
|
};
|
|
390
389
|
return {
|
|
391
|
-
onEnter: te(d,
|
|
392
|
-
onExited: te(f,
|
|
390
|
+
onEnter: te(d, a == null ? void 0 : a.props.onEnter),
|
|
391
|
+
onExited: te(f, a == null ? void 0 : a.props.onExited)
|
|
393
392
|
};
|
|
394
393
|
},
|
|
395
394
|
rootRef: p,
|
|
@@ -399,20 +398,20 @@ function We(e) {
|
|
|
399
398
|
hasTransition: C
|
|
400
399
|
};
|
|
401
400
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
401
|
+
function We(e) {
|
|
402
|
+
return be("MuiModal", e);
|
|
404
403
|
}
|
|
405
|
-
const
|
|
404
|
+
const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
406
405
|
const {
|
|
407
406
|
open: t,
|
|
408
407
|
exited: s,
|
|
409
408
|
classes: o
|
|
410
409
|
} = e;
|
|
411
|
-
return
|
|
410
|
+
return ye({
|
|
412
411
|
root: ["root", !t && s && "hidden"],
|
|
413
412
|
backdrop: ["backdrop"]
|
|
414
|
-
},
|
|
415
|
-
},
|
|
413
|
+
}, We, o);
|
|
414
|
+
}, He = ie("div", {
|
|
416
415
|
name: "MuiModal",
|
|
417
416
|
slot: "Root",
|
|
418
417
|
overridesResolver: (e, t) => {
|
|
@@ -421,7 +420,7 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
421
420
|
} = e;
|
|
422
421
|
return [t.root, !s.open && s.exited && t.hidden];
|
|
423
422
|
}
|
|
424
|
-
})(
|
|
423
|
+
})(ge(({
|
|
425
424
|
theme: e
|
|
426
425
|
}) => ({
|
|
427
426
|
position: "fixed",
|
|
@@ -438,18 +437,18 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
438
437
|
visibility: "hidden"
|
|
439
438
|
}
|
|
440
439
|
}]
|
|
441
|
-
}))),
|
|
440
|
+
}))), ze = ie(Re, {
|
|
442
441
|
name: "MuiModal",
|
|
443
442
|
slot: "Backdrop",
|
|
444
443
|
overridesResolver: (e, t) => t.backdrop
|
|
445
444
|
})({
|
|
446
445
|
zIndex: -1
|
|
447
|
-
}),
|
|
448
|
-
const o =
|
|
446
|
+
}), Ve = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
|
447
|
+
const o = Te({
|
|
449
448
|
name: "MuiModal",
|
|
450
449
|
props: t
|
|
451
450
|
}), {
|
|
452
|
-
BackdropComponent: i =
|
|
451
|
+
BackdropComponent: i = ze,
|
|
453
452
|
BackdropProps: r,
|
|
454
453
|
classes: c,
|
|
455
454
|
className: a,
|
|
@@ -491,23 +490,23 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
491
490
|
}, {
|
|
492
491
|
getRootProps: f,
|
|
493
492
|
getBackdropProps: x,
|
|
494
|
-
getTransitionProps:
|
|
495
|
-
portalRef:
|
|
496
|
-
isTopModal:
|
|
493
|
+
getTransitionProps: ae,
|
|
494
|
+
portalRef: le,
|
|
495
|
+
isTopModal: ue,
|
|
497
496
|
exited: G,
|
|
498
497
|
hasTransition: X
|
|
499
|
-
} =
|
|
498
|
+
} = Ue({
|
|
500
499
|
...d,
|
|
501
500
|
rootRef: s
|
|
502
501
|
}), L = {
|
|
503
502
|
...d,
|
|
504
503
|
exited: G
|
|
505
|
-
}, I =
|
|
504
|
+
}, I = qe(L), W = {};
|
|
506
505
|
if (E.props.tabIndex === void 0 && (W.tabIndex = "-1"), X) {
|
|
507
506
|
const {
|
|
508
507
|
onEnter: O,
|
|
509
508
|
onExited: q
|
|
510
|
-
} =
|
|
509
|
+
} = ae();
|
|
511
510
|
W.onEnter = O, W.onExited = q;
|
|
512
511
|
}
|
|
513
512
|
const J = {
|
|
@@ -521,8 +520,8 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
521
520
|
...b,
|
|
522
521
|
...D
|
|
523
522
|
}
|
|
524
|
-
}, [
|
|
525
|
-
elementType:
|
|
523
|
+
}, [de, fe] = oe("root", {
|
|
524
|
+
elementType: He,
|
|
526
525
|
externalForwardedProps: J,
|
|
527
526
|
getSlotProps: f,
|
|
528
527
|
additionalProps: {
|
|
@@ -531,7 +530,7 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
531
530
|
},
|
|
532
531
|
ownerState: L,
|
|
533
532
|
className: Z(a, I == null ? void 0 : I.root, !L.open && L.exited && (I == null ? void 0 : I.hidden))
|
|
534
|
-
}), [
|
|
533
|
+
}), [pe, Q] = oe("backdrop", {
|
|
535
534
|
elementType: i,
|
|
536
535
|
externalForwardedProps: J,
|
|
537
536
|
additionalProps: r,
|
|
@@ -543,28 +542,28 @@ const ct = ge("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
543
542
|
}),
|
|
544
543
|
className: Z(r == null ? void 0 : r.className, I == null ? void 0 : I.backdrop),
|
|
545
544
|
ownerState: L
|
|
546
|
-
}),
|
|
547
|
-
return !P && !M && (!X || G) ? null : /* @__PURE__ */ j(
|
|
548
|
-
ref:
|
|
545
|
+
}), me = Y(r == null ? void 0 : r.ref, Q.ref);
|
|
546
|
+
return !P && !M && (!X || G) ? null : /* @__PURE__ */ j(ke, {
|
|
547
|
+
ref: le,
|
|
549
548
|
container: k,
|
|
550
549
|
disablePortal: C,
|
|
551
|
-
children: /* @__PURE__ */
|
|
552
|
-
...
|
|
553
|
-
children: [!g && i ? /* @__PURE__ */ j(
|
|
550
|
+
children: /* @__PURE__ */ se(de, {
|
|
551
|
+
...fe,
|
|
552
|
+
children: [!g && i ? /* @__PURE__ */ j(pe, {
|
|
554
553
|
...Q,
|
|
555
|
-
ref:
|
|
554
|
+
ref: me
|
|
556
555
|
}) : null, /* @__PURE__ */ j(V, {
|
|
557
556
|
disableEnforceFocus: w,
|
|
558
557
|
disableAutoFocus: p,
|
|
559
558
|
disableRestoreFocus: R,
|
|
560
|
-
isEnabled:
|
|
559
|
+
isEnabled: ue,
|
|
561
560
|
open: M,
|
|
562
561
|
children: /* @__PURE__ */ u.cloneElement(E, W)
|
|
563
562
|
})]
|
|
564
563
|
})
|
|
565
564
|
});
|
|
566
565
|
});
|
|
567
|
-
process.env.NODE_ENV !== "production" && (
|
|
566
|
+
process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
568
567
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
569
568
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
570
569
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -592,7 +591,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
592
591
|
/**
|
|
593
592
|
* A single child content element.
|
|
594
593
|
*/
|
|
595
|
-
children:
|
|
594
|
+
children: ce.isRequired,
|
|
596
595
|
/**
|
|
597
596
|
* Override or extend the styles applied to the component.
|
|
598
597
|
*/
|
|
@@ -644,7 +643,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
644
643
|
* By default, it uses the body of the top-level document object,
|
|
645
644
|
* so it's simply `document.body` most of the time.
|
|
646
645
|
*/
|
|
647
|
-
container: n.oneOfType([
|
|
646
|
+
container: n.oneOfType([Pe, n.func]),
|
|
648
647
|
/**
|
|
649
648
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
650
649
|
* replace it to the last focused element when it closes.
|
|
@@ -745,9 +744,9 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
745
744
|
});
|
|
746
745
|
export {
|
|
747
746
|
V as F,
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
747
|
+
Ve as M,
|
|
748
|
+
Me as a,
|
|
749
|
+
Ie as b,
|
|
750
|
+
We as g,
|
|
751
|
+
it as m
|
|
753
752
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
|
-
import { H as w, I as N, G as T, n as f, B as m, P as a } from "./
|
|
3
|
-
import { u as $ } from "./useTheme-
|
|
2
|
+
import { H as w, I as N, G as T, n as f, B as m, P as a } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
+
import { u as $ } from "./useTheme-DyaNKf4e.js";
|
|
4
4
|
import { jsx as R } from "react/jsx-runtime";
|
|
5
|
-
import { s as x, u as E, c as O } from "./DefaultPropsProvider-
|
|
6
|
-
import { m as q } from "./memoTheme-
|
|
5
|
+
import { s as x, u as E, c as O } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
6
|
+
import { m as q } from "./memoTheme-D7Fyh_3C.js";
|
|
7
7
|
import { c as C } from "./chainPropTypes-D9lkm76m.js";
|
|
8
8
|
function I(e) {
|
|
9
9
|
const o = typeof e;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const w=require("react"),t=require("./generateUtilityClasses-B_H9HEmg.cjs"),N=require("./useTheme-Cy5kyKJF.cjs"),q=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-3KMGupjb.cjs"),O=require("./memoTheme-Bdg0Y_2O.cjs"),$=require("./chainPropTypes-CEUi6Jb4.cjs");function j(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const R=j(w);function C(e){const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return r}}function y(e,r,o,a){const n=e[r];if(n==null||!Number.isInteger(n)){const i=C(n);return new RangeError(`Invalid ${a} \`${r}\` of type \`${i}\` supplied to \`${o}\`, expected \`integer\`.`)}return null}function P(e,r,...o){return e[r]===void 0?null:y(e,r,...o)}function l(){return null}P.isRequired=y;l.isRequired=l;const T=process.env.NODE_ENV==="production"?l:P;function b(e){return t.generateUtilityClass("MuiPaper",e)}const x=t.generateUtilityClasses("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"]),E=e=>{const{square:r,elevation:o,variant:a,classes:n}=e,i={root:["root",a,!r&&"rounded",a==="elevation"&&`elevation${o}`]};return p.composeClasses(i,b,n)},M=p.styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,r[o.variant],!o.square&&r.rounded,o.variant==="elevation"&&r[`elevation${o.elevation}`]]}})(O.memoTheme(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),g=R.forwardRef(function(r,o){var f;const a=p.useDefaultProps({props:r,name:"MuiPaper"}),n=N.useTheme(),{className:i,component:u="div",elevation:s=1,square:m=!1,variant:c="elevation",...v}=a,d={...a,component:u,elevation:s,square:m,variant:c},h=E(d);return process.env.NODE_ENV!=="production"&&n.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
2
|
+
`)),q.jsx(M,{as:u,ownerState:d,className:t.clsx(h.root,i),ref:o,...v,style:{...c==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[s],...n.vars&&{"--Paper-overlay":(f=n.vars.overlays)==null?void 0:f[s]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${t.alpha("#fff",t.getOverlayAlpha(s))}, ${t.alpha("#fff",t.getOverlayAlpha(s))})`}},...v.style}})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,component:t.PropTypes.elementType,elevation:$.chainPropTypes(T,e=>{const{elevation:r,variant:o}=e;return r>0&&o==="outlined"?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:t.PropTypes.bool,style:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),variant:t.PropTypes.oneOfType([t.PropTypes.oneOf(["elevation","outlined"]),t.PropTypes.string])});exports.Paper=g;exports.getPaperUtilityClass=b;exports.integerPropType=T;exports.paperClasses=x;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as xt, u as Pt } from "./
|
|
2
|
-
import { I as Et, H as Rt, P as i } from "./
|
|
1
|
+
import { a as xt, u as Pt } from "./useSlotProps-B31YQlzb.js";
|
|
2
|
+
import { I as Et, H as Rt, P as i } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
3
|
import * as L from "react";
|
|
4
4
|
import { jsx as be } from "react/jsx-runtime";
|
|
5
5
|
import { o as ze } from "./ownerDocument-CUrv0DIK.js";
|
|
6
|
-
import { P as Tt, H as we } from "./Portal-
|
|
6
|
+
import { P as Tt, H as we } from "./Portal-JEwcozmp.js";
|
|
7
7
|
import { c as At } from "./chainPropTypes-D9lkm76m.js";
|
|
8
|
-
import { r as at } from "./refType-
|
|
8
|
+
import { r as at } from "./refType-DKYKROQk.js";
|
|
9
9
|
import { u as Ge } from "./useForkRef-C_4o__cU.js";
|
|
10
10
|
import { u as Je } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
11
|
-
import { c as jt, s as Dt, u as Mt } from "./DefaultPropsProvider-
|
|
11
|
+
import { c as jt, s as Dt, u as Mt } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
12
12
|
var B = "top", N = "bottom", V = "right", $ = "left", Ce = "auto", le = [B, N, V, $], ee = "start", pe = "end", Ct = "clippingParents", it = "viewport", ie = "popper", Bt = "reference", Ke = /* @__PURE__ */ le.reduce(function(e, t) {
|
|
13
13
|
return e.concat([t + "-" + ee, t + "-" + pe]);
|
|
14
14
|
}, []), st = /* @__PURE__ */ [].concat(le, [Ce]).reduce(function(e, t) {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const it=require("./useSlotProps-BVSAQTNl.cjs"),a=require("./generateUtilityClasses-B_H9HEmg.cjs"),Et=require("react"),Pe=require("react/jsx-runtime"),Ge=require("./ownerDocument-4MViGo3k.cjs"),fe=require("./Portal-DF0RKOcD.cjs"),Rt=require("./chainPropTypes-CEUi6Jb4.cjs"),st=require("./refType-CoaxQOPt.cjs"),Je=require("./useForkRef-CTI33h-3.cjs"),Ke=require("./useEnhancedEffect-BQZ6dtCo.cjs"),Ce=require("./DefaultPropsProvider-3KMGupjb.cjs");function jt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const W=jt(Et);var B="top",H="bottom",N="right",k="left",Be="auto",le=[B,H,N,k],ee="start",ce="end",At="clippingParents",pt="viewport",ie="popper",Dt="reference",Qe=le.reduce(function(e,t){return e.concat([t+"-"+ee,t+"-"+ce])},[]),ft=[].concat(le,[Be]).reduce(function(e,t){return e.concat([t,t+"-"+ee,t+"-"+ce])},[]),Mt="beforeRead",Ct="read",Bt="afterRead",kt="beforeMain",St="main",$t="afterMain",Lt="beforeWrite",Wt="write",qt="afterWrite",Ht=[Mt,Ct,Bt,kt,St,$t,Lt,Wt,qt];function U(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=L(e).Element;return e instanceof t||e instanceof Element}function q(e){var t=L(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ke(e){if(typeof ShadowRoot>"u")return!1;var t=L(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Nt(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},s=t.elements[r];!q(s)||!U(s)||(Object.assign(s.style,o),Object.keys(n).forEach(function(c){var i=n[c];i===!1?s.removeAttribute(c):s.setAttribute(c,i===!0?"":i)}))})}function Vt(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],s=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),i=c.reduce(function(p,u){return p[u]="",p},{});!q(n)||!U(n)||(Object.assign(n.style,i),Object.keys(s).forEach(function(p){n.removeAttribute(p)}))})}}const Ut={name:"applyStyles",enabled:!0,phase:"write",fn:Nt,effect:Vt,requires:["computeStyles"]};function V(e){return e.split("-")[0]}var Q=Math.max,Te=Math.min,te=Math.round;function De(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(De())}function re(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,s=1;t&&q(e)&&(n=e.offsetWidth>0&&te(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&te(o.height)/e.offsetHeight||1);var c=Z(e)?L(e):window,i=c.visualViewport,p=!ct()&&r,u=(o.left+(p&&i?i.offsetLeft:0))/n,f=(o.top+(p&&i?i.offsetTop:0))/s,h=o.width/n,b=o.height/s;return{width:h,height:b,top:f,right:u+h,bottom:f+b,left:u,x:u,y:f}}function Se(e){var t=re(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function ut(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ke(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function X(e){return L(e).getComputedStyle(e)}function Ft(e){return["table","td","th"].indexOf(U(e))>=0}function z(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(ke(e)?e.host:null)||z(e)}function Ze(e){return!q(e)||X(e).position==="fixed"?null:e.offsetParent}function It(e){var t=/firefox/i.test(De()),r=/Trident/i.test(De());if(r&&q(e)){var o=X(e);if(o.position==="fixed")return null}var n=Oe(e);for(ke(n)&&(n=n.host);q(n)&&["html","body"].indexOf(U(n))<0;){var s=X(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function de(e){for(var t=L(e),r=Ze(e);r&&Ft(r)&&X(r).position==="static";)r=Ze(r);return r&&(U(r)==="html"||U(r)==="body"&&X(r).position==="static")?t:r||It(e)||t}function $e(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function se(e,t,r){return Q(e,Te(t,r))}function Xt(e,t,r){var o=se(e,t,r);return o>r?r:o}function lt(){return{top:0,right:0,bottom:0,left:0}}function dt(e){return Object.assign({},lt(),e)}function vt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Yt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,dt(typeof t!="number"?t:vt(t,le))};function zt(e){var t,r=e.state,o=e.name,n=e.options,s=r.elements.arrow,c=r.modifiersData.popperOffsets,i=V(r.placement),p=$e(i),u=[k,N].indexOf(i)>=0,f=u?"height":"width";if(!(!s||!c)){var h=Yt(n.padding,r),b=Se(s),l=p==="y"?B:k,w=p==="y"?H:N,v=r.rects.reference[f]+r.rects.reference[p]-c[p]-r.rects.popper[f],y=c[p]-r.rects.reference[p],P=de(s),O=P?p==="y"?P.clientHeight||0:P.clientWidth||0:0,T=v/2-y/2,d=h[l],m=O-b[f]-h[w],g=O/2-b[f]/2+T,x=se(d,g,m),j=p;r.modifiersData[o]=(t={},t[j]=x,t.centerOffset=x-g,t)}}function Gt(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||ut(t.elements.popper,n)&&(t.elements.arrow=n))}const Jt={name:"arrow",enabled:!0,phase:"main",fn:zt,effect:Gt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(e){return e.split("-")[1]}var Kt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qt(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:te(r*n)/n||0,y:te(o*n)/n||0}}function _e(e){var t,r=e.popper,o=e.popperRect,n=e.placement,s=e.variation,c=e.offsets,i=e.position,p=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,h=e.isFixed,b=c.x,l=b===void 0?0:b,w=c.y,v=w===void 0?0:w,y=typeof f=="function"?f({x:l,y:v}):{x:l,y:v};l=y.x,v=y.y;var P=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),T=k,d=B,m=window;if(u){var g=de(r),x="clientHeight",j="clientWidth";if(g===L(r)&&(g=z(r),X(g).position!=="static"&&i==="absolute"&&(x="scrollHeight",j="scrollWidth")),g=g,n===B||(n===k||n===N)&&s===ce){d=H;var E=h&&g===m&&m.visualViewport?m.visualViewport.height:g[x];v-=E-o.height,v*=p?1:-1}if(n===k||(n===B||n===H)&&s===ce){T=N;var R=h&&g===m&&m.visualViewport?m.visualViewport.width:g[j];l-=R-o.width,l*=p?1:-1}}var A=Object.assign({position:i},u&&Kt),S=f===!0?Qt({x:l,y:v},L(r)):{x:l,y:v};if(l=S.x,v=S.y,p){var M;return Object.assign({},A,(M={},M[d]=O?"0":"",M[T]=P?"0":"",M.transform=(m.devicePixelRatio||1)<=1?"translate("+l+"px, "+v+"px)":"translate3d("+l+"px, "+v+"px, 0)",M))}return Object.assign({},A,(t={},t[d]=O?v+"px":"",t[T]=P?l+"px":"",t.transform="",t))}function Zt(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,s=r.adaptive,c=s===void 0?!0:s,i=r.roundOffsets,p=i===void 0?!0:i,u={placement:V(t.placement),variation:oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_e(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:p})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_e(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const _t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zt,data:{}};var ge={passive:!0};function er(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,s=n===void 0?!0:n,c=o.resize,i=c===void 0?!0:c,p=L(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(f){f.addEventListener("scroll",r.update,ge)}),i&&p.addEventListener("resize",r.update,ge),function(){s&&u.forEach(function(f){f.removeEventListener("scroll",r.update,ge)}),i&&p.removeEventListener("resize",r.update,ge)}}const tr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:er,data:{}};var rr={left:"right",right:"left",bottom:"top",top:"bottom"};function be(e){return e.replace(/left|right|bottom|top/g,function(t){return rr[t]})}var or={start:"end",end:"start"};function et(e){return e.replace(/start|end/g,function(t){return or[t]})}function Le(e){var t=L(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function We(e){return re(z(e)).left+Le(e).scrollLeft}function nr(e,t){var r=L(e),o=z(e),n=r.visualViewport,s=o.clientWidth,c=o.clientHeight,i=0,p=0;if(n){s=n.width,c=n.height;var u=ct();(u||!u&&t==="fixed")&&(i=n.offsetLeft,p=n.offsetTop)}return{width:s,height:c,x:i+We(e),y:p}}function ar(e){var t,r=z(e),o=Le(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=Q(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=Q(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),i=-o.scrollLeft+We(e),p=-o.scrollTop;return X(n||r).direction==="rtl"&&(i+=Q(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:c,x:i,y:p}}function qe(e){var t=X(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function yt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:q(e)&&qe(e)?e:yt(Oe(e))}function pe(e,t){var r;t===void 0&&(t=[]);var o=yt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),s=L(o),c=n?[s].concat(s.visualViewport||[],qe(o)?o:[]):o,i=t.concat(c);return n?i:i.concat(pe(Oe(c)))}function Me(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ir(e,t){var r=re(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function tt(e,t,r){return t===pt?Me(nr(e,r)):Z(t)?ir(t,r):Me(ar(z(e)))}function sr(e){var t=pe(Oe(e)),r=["absolute","fixed"].indexOf(X(e).position)>=0,o=r&&q(e)?de(e):e;return Z(o)?t.filter(function(n){return Z(n)&&ut(n,o)&&U(n)!=="body"}):[]}function pr(e,t,r,o){var n=t==="clippingParents"?sr(e):[].concat(t),s=[].concat(n,[r]),c=s[0],i=s.reduce(function(p,u){var f=tt(e,u,o);return p.top=Q(f.top,p.top),p.right=Te(f.right,p.right),p.bottom=Te(f.bottom,p.bottom),p.left=Q(f.left,p.left),p},tt(e,c,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function ht(e){var t=e.reference,r=e.element,o=e.placement,n=o?V(o):null,s=o?oe(o):null,c=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,p;switch(n){case B:p={x:c,y:t.y-r.height};break;case H:p={x:c,y:t.y+t.height};break;case N:p={x:t.x+t.width,y:i};break;case k:p={x:t.x-r.width,y:i};break;default:p={x:t.x,y:t.y}}var u=n?$e(n):null;if(u!=null){var f=u==="y"?"height":"width";switch(s){case ee:p[u]=p[u]-(t[f]/2-r[f]/2);break;case ce:p[u]=p[u]+(t[f]/2-r[f]/2);break}}return p}function ue(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,s=r.strategy,c=s===void 0?e.strategy:s,i=r.boundary,p=i===void 0?At:i,u=r.rootBoundary,f=u===void 0?pt:u,h=r.elementContext,b=h===void 0?ie:h,l=r.altBoundary,w=l===void 0?!1:l,v=r.padding,y=v===void 0?0:v,P=dt(typeof y!="number"?y:vt(y,le)),O=b===ie?Dt:ie,T=e.rects.popper,d=e.elements[w?O:b],m=pr(Z(d)?d:d.contextElement||z(e.elements.popper),p,f,c),g=re(e.elements.reference),x=ht({reference:g,element:T,strategy:"absolute",placement:n}),j=Me(Object.assign({},T,x)),E=b===ie?j:g,R={top:m.top-E.top+P.top,bottom:E.bottom-m.bottom+P.bottom,left:m.left-E.left+P.left,right:E.right-m.right+P.right},A=e.modifiersData.offset;if(b===ie&&A){var S=A[n];Object.keys(R).forEach(function(M){var F=[N,H].indexOf(M)>=0?1:-1,I=[B,H].indexOf(M)>=0?"y":"x";R[M]+=S[I]*F})}return R}function fr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,s=r.rootBoundary,c=r.padding,i=r.flipVariations,p=r.allowedAutoPlacements,u=p===void 0?ft:p,f=oe(o),h=f?i?Qe:Qe.filter(function(w){return oe(w)===f}):le,b=h.filter(function(w){return u.indexOf(w)>=0});b.length===0&&(b=h);var l=b.reduce(function(w,v){return w[v]=ue(e,{placement:v,boundary:n,rootBoundary:s,padding:c})[V(v)],w},{});return Object.keys(l).sort(function(w,v){return l[w]-l[v]})}function cr(e){if(V(e)===Be)return[];var t=be(e);return[et(e),t,et(t)]}function ur(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,c=r.altAxis,i=c===void 0?!0:c,p=r.fallbackPlacements,u=r.padding,f=r.boundary,h=r.rootBoundary,b=r.altBoundary,l=r.flipVariations,w=l===void 0?!0:l,v=r.allowedAutoPlacements,y=t.options.placement,P=V(y),O=P===y,T=p||(O||!w?[be(y)]:cr(y)),d=[y].concat(T).reduce(function(_,Y){return _.concat(V(Y)===Be?fr(t,{placement:Y,boundary:f,rootBoundary:h,padding:u,flipVariations:w,allowedAutoPlacements:v}):Y)},[]),m=t.rects.reference,g=t.rects.popper,x=new Map,j=!0,E=d[0],R=0;R<d.length;R++){var A=d[R],S=V(A),M=oe(A)===ee,F=[B,H].indexOf(S)>=0,I=F?"width":"height",D=ue(t,{placement:A,boundary:f,rootBoundary:h,altBoundary:b,padding:u}),C=F?M?N:k:M?H:B;m[I]>g[I]&&(C=be(C));var $=be(C),G=[];if(s&&G.push(D[S]<=0),i&&G.push(D[C]<=0,D[$]<=0),G.every(function(_){return _})){E=A,j=!1;break}x.set(A,G)}if(j)for(var ve=w?3:1,Ee=function(Y){var ae=d.find(function(he){var J=x.get(he);if(J)return J.slice(0,Y).every(function(Re){return Re})});if(ae)return E=ae,"break"},ne=ve;ne>0;ne--){var ye=Ee(ne);if(ye==="break")break}t.placement!==E&&(t.modifiersData[o]._skip=!0,t.placement=E,t.reset=!0)}}const lr={name:"flip",enabled:!0,phase:"main",fn:ur,requiresIfExists:["offset"],data:{_skip:!1}};function rt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ot(e){return[B,N,H,k].some(function(t){return e[t]>=0})}function dr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,c=ue(t,{elementContext:"reference"}),i=ue(t,{altBoundary:!0}),p=rt(c,o),u=rt(i,n,s),f=ot(p),h=ot(u);t.modifiersData[r]={referenceClippingOffsets:p,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const vr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dr};function yr(e,t,r){var o=V(e),n=[k,B].indexOf(o)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=s[0],i=s[1];return c=c||0,i=(i||0)*n,[k,N].indexOf(o)>=0?{x:i,y:c}:{x:c,y:i}}function hr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,s=n===void 0?[0,0]:n,c=ft.reduce(function(f,h){return f[h]=yr(h,t.rects,s),f},{}),i=c[t.placement],p=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=p,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=c}const mr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hr};function gr(e){var t=e.state,r=e.name;t.modifiersData[r]=ht({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const br={name:"popperOffsets",enabled:!0,phase:"read",fn:gr,data:{}};function Pr(e){return e==="x"?"y":"x"}function Tr(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,s=n===void 0?!0:n,c=r.altAxis,i=c===void 0?!1:c,p=r.boundary,u=r.rootBoundary,f=r.altBoundary,h=r.padding,b=r.tether,l=b===void 0?!0:b,w=r.tetherOffset,v=w===void 0?0:w,y=ue(t,{boundary:p,rootBoundary:u,padding:h,altBoundary:f}),P=V(t.placement),O=oe(t.placement),T=!O,d=$e(P),m=Pr(d),g=t.modifiersData.popperOffsets,x=t.rects.reference,j=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(s){var M,F=d==="y"?B:k,I=d==="y"?H:N,D=d==="y"?"height":"width",C=g[d],$=C+y[F],G=C-y[I],ve=l?-j[D]/2:0,Ee=O===ee?x[D]:j[D],ne=O===ee?-j[D]:-x[D],ye=t.elements.arrow,_=l&&ye?Se(ye):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lt(),ae=Y[F],he=Y[I],J=se(0,x[D],_[D]),Re=T?x[D]/2-ve-J-ae-R.mainAxis:Ee-J-ae-R.mainAxis,bt=T?-x[D]/2+ve+J+he+R.mainAxis:ne+J+he+R.mainAxis,je=t.elements.arrow&&de(t.elements.arrow),Pt=je?d==="y"?je.clientTop||0:je.clientLeft||0:0,He=(M=A==null?void 0:A[d])!=null?M:0,Tt=C+Re-He-Pt,wt=C+bt-He,Ne=se(l?Te($,Tt):$,C,l?Q(G,wt):G);g[d]=Ne,S[d]=Ne-C}if(i){var Ve,Ot=d==="x"?B:k,xt=d==="x"?H:N,K=g[m],me=m==="y"?"height":"width",Ue=K+y[Ot],Fe=K-y[xt],Ae=[B,k].indexOf(P)!==-1,Ie=(Ve=A==null?void 0:A[m])!=null?Ve:0,Xe=Ae?Ue:K-x[me]-j[me]-Ie+R.altAxis,Ye=Ae?K+x[me]+j[me]-Ie-R.altAxis:Fe,ze=l&&Ae?Xt(Xe,K,Ye):se(l?Xe:Ue,K,l?Ye:Fe);g[m]=ze,S[m]=ze-K}t.modifiersData[o]=S}}const wr={name:"preventOverflow",enabled:!0,phase:"main",fn:Tr,requiresIfExists:["offset"]};function Or(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xr(e){return e===L(e)||!q(e)?Le(e):Or(e)}function Er(e){var t=e.getBoundingClientRect(),r=te(t.width)/e.offsetWidth||1,o=te(t.height)/e.offsetHeight||1;return r!==1||o!==1}function Rr(e,t,r){r===void 0&&(r=!1);var o=q(t),n=q(t)&&Er(t),s=z(t),c=re(e,n,r),i={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||qe(s))&&(i=xr(t)),q(t)?(p=re(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=We(s))),{x:c.left+i.scrollLeft-p.x,y:c.top+i.scrollTop-p.y,width:c.width,height:c.height}}function jr(e){var t=new Map,r=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function n(s){r.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(i){if(!r.has(i)){var p=t.get(i);p&&n(p)}}),o.push(s)}return e.forEach(function(s){r.has(s.name)||n(s)}),o}function Ar(e){var t=jr(e);return Ht.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function Dr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Mr(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var nt={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Cr(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,n=t.defaultOptions,s=n===void 0?nt:n;return function(i,p,u){u===void 0&&(u=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,s),modifiersData:{},elements:{reference:i,popper:p},attributes:{},styles:{}},h=[],b=!1,l={state:f,setOptions:function(P){var O=typeof P=="function"?P(f.options):P;v(),f.options=Object.assign({},s,f.options,O),f.scrollParents={reference:Z(i)?pe(i):i.contextElement?pe(i.contextElement):[],popper:pe(p)};var T=Ar(Mr([].concat(o,f.options.modifiers)));return f.orderedModifiers=T.filter(function(d){return d.enabled}),w(),l.update()},forceUpdate:function(){if(!b){var P=f.elements,O=P.reference,T=P.popper;if(at(O,T)){f.rects={reference:Rr(O,de(T),f.options.strategy==="fixed"),popper:Se(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.data)});for(var d=0;d<f.orderedModifiers.length;d++){if(f.reset===!0){f.reset=!1,d=-1;continue}var m=f.orderedModifiers[d],g=m.fn,x=m.options,j=x===void 0?{}:x,E=m.name;typeof g=="function"&&(f=g({state:f,options:j,name:E,instance:l})||f)}}}},update:Dr(function(){return new Promise(function(y){l.forceUpdate(),y(f)})}),destroy:function(){v(),b=!0}};if(!at(i,p))return l;l.setOptions(u).then(function(y){!b&&u.onFirstUpdate&&u.onFirstUpdate(y)});function w(){f.orderedModifiers.forEach(function(y){var P=y.name,O=y.options,T=O===void 0?{}:O,d=y.effect;if(typeof d=="function"){var m=d({state:f,name:P,instance:l,options:T}),g=function(){};h.push(m||g)}})}function v(){h.forEach(function(y){return y()}),h=[]}return l}}var Br=[tr,br,_t,Ut,mr,lr,wr,Jt,vr],kr=Cr({defaultModifiers:Br});function Sr(e){return a.generateUtilityClass("MuiPopper",e)}a.generateUtilityClasses("MuiPopper",["root"]);function $r(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function we(e){return typeof e=="function"?e():e}function xe(e){return e.nodeType!==void 0}function Lr(e){return!xe(e)}const Wr=e=>{const{classes:t}=e,r={root:["root"]};return Ce.composeClasses(r,Sr,t)},qr={},Hr=W.forwardRef(function(t,r){const{anchorEl:o,children:n,direction:s,disablePortal:c,modifiers:i,open:p,placement:u,popperOptions:f,popperRef:h,slotProps:b={},slots:l={},TransitionProps:w,ownerState:v,...y}=t,P=W.useRef(null),O=Je.useForkRef(P,r),T=W.useRef(null),d=Je.useForkRef(T,h),m=W.useRef(d);Ke.useEnhancedEffect(()=>{m.current=d},[d]),W.useImperativeHandle(h,()=>T.current,[]);const g=$r(u,s),[x,j]=W.useState(g),[E,R]=W.useState(we(o));W.useEffect(()=>{T.current&&T.current.forceUpdate()}),W.useEffect(()=>{o&&R(we(o))},[o]),Ke.useEnhancedEffect(()=>{if(!E||!p)return;const I=$=>{j($.placement)};if(process.env.NODE_ENV!=="production"&&E&&xe(E)&&E.nodeType===1){const $=E.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$.top===0&&$.left===0&&$.right===0&&$.bottom===0&&console.warn(["MUI: The `anchorEl` 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(`
|
|
2
|
+
`))}let D=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{I($)}}];i!=null&&(D=D.concat(i)),f&&f.modifiers!=null&&(D=D.concat(f.modifiers));const C=kr(E,P.current,{placement:g,...f,modifiers:D});return m.current(C),()=>{C.destroy(),m.current(null)}},[E,c,i,p,f,g]);const A={placement:x};w!==null&&(A.TransitionProps=w);const S=Wr(t),M=l.root??"div",F=it.useSlotProps({elementType:M,externalSlotProps:b.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:S.root});return Pe.jsx(M,{...F,children:typeof n=="function"?n(A):n})}),mt=W.forwardRef(function(t,r){const{anchorEl:o,children:n,container:s,direction:c="ltr",disablePortal:i=!1,keepMounted:p=!1,modifiers:u,open:f,placement:h="bottom",popperOptions:b=qr,popperRef:l,style:w,transition:v=!1,slotProps:y={},slots:P={},...O}=t,[T,d]=W.useState(!0),m=()=>{d(!1)},g=()=>{d(!0)};if(!p&&!f&&(!v||T))return null;let x;if(s)x=s;else if(o){const R=we(o);x=R&&xe(R)?Ge.ownerDocument(R).body:Ge.ownerDocument(null).body}const j=!f&&p&&(!v||T)?"none":void 0,E=v?{in:f,onEnter:m,onExited:g}:void 0;return Pe.jsx(fe.Portal,{disablePortal:i,container:x,children:Pe.jsx(Hr,{anchorEl:o,direction:c,disablePortal:i,modifiers:u,ref:r,open:v?!T:f,placement:h,popperOptions:b,popperRef:l,slotProps:y,slots:P,...O,style:{position:"fixed",top:0,left:0,display:j,...w},TransitionProps:E,children:n})})});process.env.NODE_ENV!=="production"&&(mt.propTypes={anchorEl:Rt.chainPropTypes(a.PropTypes.oneOfType([fe.HTMLElementType,a.PropTypes.object,a.PropTypes.func]),e=>{if(e.open){const t=we(e.anchorEl);if(t&&xe(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` 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(`
|
|
3
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||Lr(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
4
|
+
`))}return null}),children:a.PropTypes.oneOfType([a.PropTypes.node,a.PropTypes.func]),container:a.PropTypes.oneOfType([fe.HTMLElementType,a.PropTypes.func]),direction:a.PropTypes.oneOf(["ltr","rtl"]),disablePortal:a.PropTypes.bool,keepMounted:a.PropTypes.bool,modifiers:a.PropTypes.arrayOf(a.PropTypes.shape({data:a.PropTypes.object,effect:a.PropTypes.func,enabled:a.PropTypes.bool,fn:a.PropTypes.func,name:a.PropTypes.any,options:a.PropTypes.object,phase:a.PropTypes.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:a.PropTypes.arrayOf(a.PropTypes.string),requiresIfExists:a.PropTypes.arrayOf(a.PropTypes.string)})),open:a.PropTypes.bool.isRequired,placement:a.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:a.PropTypes.shape({modifiers:a.PropTypes.array,onFirstUpdate:a.PropTypes.func,placement:a.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:a.PropTypes.oneOf(["absolute","fixed"])}),popperRef:st.refType,slotProps:a.PropTypes.shape({root:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object])}),slots:a.PropTypes.shape({root:a.PropTypes.elementType}),transition:a.PropTypes.bool});const Nr=Ce.styled(mt,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gt=W.forwardRef(function(t,r){const o=it.useRtl(),n=Ce.useDefaultProps({props:t,name:"MuiPopper"}),{anchorEl:s,component:c,components:i,componentsProps:p,container:u,disablePortal:f,keepMounted:h,modifiers:b,open:l,placement:w,popperOptions:v,popperRef:y,transition:P,slots:O,slotProps:T,...d}=n,m=(O==null?void 0:O.root)??(i==null?void 0:i.Root),g={anchorEl:s,container:u,disablePortal:f,keepMounted:h,modifiers:b,open:l,placement:w,popperOptions:v,popperRef:y,transition:P,...d};return Pe.jsx(Nr,{as:c,direction:o?"rtl":"ltr",slots:{root:m},slotProps:T??p,...g,ref:r})});process.env.NODE_ENV!=="production"&&(gt.propTypes={anchorEl:a.PropTypes.oneOfType([fe.HTMLElementType,a.PropTypes.object,a.PropTypes.func]),children:a.PropTypes.oneOfType([a.PropTypes.node,a.PropTypes.func]),component:a.PropTypes.elementType,components:a.PropTypes.shape({Root:a.PropTypes.elementType}),componentsProps:a.PropTypes.shape({root:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object])}),container:a.PropTypes.oneOfType([fe.HTMLElementType,a.PropTypes.func]),disablePortal:a.PropTypes.bool,keepMounted:a.PropTypes.bool,modifiers:a.PropTypes.arrayOf(a.PropTypes.shape({data:a.PropTypes.object,effect:a.PropTypes.func,enabled:a.PropTypes.bool,fn:a.PropTypes.func,name:a.PropTypes.any,options:a.PropTypes.object,phase:a.PropTypes.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:a.PropTypes.arrayOf(a.PropTypes.string),requiresIfExists:a.PropTypes.arrayOf(a.PropTypes.string)})),open:a.PropTypes.bool.isRequired,placement:a.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:a.PropTypes.shape({modifiers:a.PropTypes.array,onFirstUpdate:a.PropTypes.func,placement:a.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:a.PropTypes.oneOf(["absolute","fixed"])}),popperRef:st.refType,slotProps:a.PropTypes.shape({root:a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object])}),slots:a.PropTypes.shape({root:a.PropTypes.elementType}),sx:a.PropTypes.oneOfType([a.PropTypes.arrayOf(a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object,a.PropTypes.bool])),a.PropTypes.func,a.PropTypes.object]),transition:a.PropTypes.bool});exports.Popper=gt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const T=require("react"),b=require("react-dom"),l=require("./generateUtilityClasses-B_H9HEmg.cjs"),a=require("react/jsx-runtime"),p=require("./useForkRef-CTI33h-3.cjs"),g=require("./utils-vmyQ2IaS.cjs"),f=require("./useEnhancedEffect-BQZ6dtCo.cjs");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=d(T),h=d(b),N="exact-prop: ";function E(e){return process.env.NODE_ENV==="production"?e:{...e,[N]:r=>{const t=Object.keys(r).filter(n=>!e.hasOwnProperty(n));return t.length>0?new Error(`The following props are not supported: ${t.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}function m(e,r,t,n,u){if(process.env.NODE_ENV==="production")return null;const o=e[r],s=u||r;return o==null?null:o&&o.nodeType!==1?new Error(`Invalid ${n} \`${s}\` supplied to \`${t}\`. Expected an HTMLElement.`):null}function R(e){return typeof e=="function"?e():e}const i=c.forwardRef(function(r,t){const{children:n,container:u,disablePortal:o=!1}=r,[s,P]=c.useState(null),y=p.useForkRef(c.isValidElement(n)?g.getReactElementRef(n):null,t);if(f.useEnhancedEffect(()=>{o||P(R(u)||document.body)},[u,o]),f.useEnhancedEffect(()=>{if(s&&!o)return p.setRef(t,s),()=>{p.setRef(t,null)}},[t,s,o]),o){if(c.isValidElement(n)){const O={ref:y};return c.cloneElement(n,O)}return a.jsx(c.Fragment,{children:n})}return a.jsx(c.Fragment,{children:s&&h.createPortal(n,s)})});process.env.NODE_ENV!=="production"&&(i.propTypes={children:l.PropTypes.node,container:l.PropTypes.oneOfType([m,l.PropTypes.func]),disablePortal:l.PropTypes.bool});process.env.NODE_ENV!=="production"&&(i.propTypes=E(i.propTypes));exports.HTMLElementType=m;exports.Portal=i;exports.exactProp=E;
|