everest-npm-features 0.0.61 → 0.0.63
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/ArrowBack-DEJjwfp0.js +8 -0
- package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
- package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
- package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
- package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
- package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
- package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
- package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
- package/dist/PlayArrow-71FP5PzJ.js +13 -0
- package/dist/Portal-BeS9yJCZ.js +968 -0
- package/dist/assets/styles.css +1 -1
- package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
- package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
- package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
- package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
- package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
- package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
- package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
- package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
- package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
- package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
- package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
- package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
- package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
- package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
- package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/Transactions/index.js +23 -24
- package/dist/components/Shared/FullKyc/countryList.js +15 -17
- package/dist/components/Shared/FullKyc/edd.js +51 -53
- package/dist/components/Shared/FullKyc/index.js +13 -11
- package/dist/components/Shared/FullKyc/pep.js +35 -43
- package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
- package/dist/components/Shared/FullKyc/userInfo.js +8 -13
- package/dist/components/Shared/HistoryItem/index.js +43 -48
- package/dist/components/Shared/Incode/index.js +31 -35
- package/dist/components/Shared/MinimalKyc/index.js +60 -65
- package/dist/components/Shared/Sumsub/index.js +75 -62
- package/dist/components/Shared/loader.js +4 -5
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +4 -4
- package/dist/components/Wallet/Account/createIban.d.ts +1 -2
- package/dist/components/Wallet/Account/createIban.js +324 -102
- package/dist/components/Wallet/Account/eWallet.js +37 -43
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +41 -45
- package/dist/components/Wallet/Account/ibanItem.js +70 -75
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +113 -118
- package/dist/components/Wallet/Account/sendIban.js +79 -88
- package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
- package/dist/components/Wallet/Buy/form.js +8 -18
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +16 -18
- package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
- package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
- package/dist/components/Wallet/History/index.js +23 -797
- package/dist/components/Wallet/Home/index.js +13 -14
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
- package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
- package/dist/components/Wallet/Portfolio/index.js +48 -51
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
- package/dist/components/Wallet/Profile/documents.js +164 -176
- package/dist/components/Wallet/Profile/index.js +39 -44
- package/dist/components/Wallet/Profile/storage.js +39 -47
- package/dist/components/Wallet/Receive/index.js +32 -37
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
- package/dist/components/Wallet/Sell/form.js +8 -18
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +98 -107
- package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
- package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
- package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
- package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
- package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
- package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
- package/dist/components/Wallet/Shared/Container/index.js +11 -11
- package/dist/components/Wallet/Shared/Input/index.js +3 -3
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
- package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
- package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
- package/dist/components/Wallet/Shared/addBank.js +41 -45
- package/dist/components/Wallet/Shared/appButton.js +11 -15
- package/dist/components/Wallet/Shared/backBtn.js +8 -9
- package/dist/components/Wallet/Shared/button.js +7 -7
- package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
- package/dist/components/Wallet/Shared/inputField.js +5 -5
- package/dist/components/Wallet/Shared/manualSend.js +9 -13
- package/dist/components/Wallet/Shared/noData.js +4 -5
- package/dist/components/Wallet/Shared/pin.js +25 -27
- package/dist/components/Wallet/Shared/radioButton.js +39 -5
- package/dist/components/Wallet/Shared/step.js +12 -13
- package/dist/components/Wallet/Shared/timer.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +17 -17
- package/dist/components/Wallet/SignUp/index.js +63 -153
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +71 -69
- package/dist/components/Wallet/Stake/id/index.js +77 -84
- package/dist/components/Wallet/Stake/index.js +65 -68
- package/dist/components/Wallet/Swap/form.js +11 -20
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
- package/dist/components/Wallet/Withdraw/form.js +6 -17
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
- package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
- package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
- package/dist/hoc/withThemeProvider.js +5 -732
- package/dist/hooks/useDialog/index.js +22 -23
- package/dist/hooks/useRrDialog/index.js +43 -46
- package/dist/hooks/useSnackBar.js +24 -696
- package/dist/icons/buyIcon.js +1 -1
- package/dist/icons/canceledBuyIcon.js +1 -1
- package/dist/icons/canceledRedeemIcon.js +1 -1
- package/dist/icons/failedBuyIcon.js +2 -2
- package/dist/icons/failedRedeemIcon.js +2 -2
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
- package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
- package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
- package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
- package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
- package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
- package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
- package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/memoTheme-DnE8lj0t.js +3481 -0
- package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
- package/dist/otpForm-DeeegaX2.js +7378 -0
- package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
- package/dist/styles.module-DFoezEqS.js +28 -0
- package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
- package/dist/tooltip-BW0UyWw7.js +2129 -0
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +72 -71
- package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
- package/package.json +6 -6
- package/dist/Alert-DzsbFW3-.js +0 -369
- package/dist/Autocomplete-CE-OI2t8.js +0 -2429
- package/dist/Avatar-1XklXr4O.js +0 -281
- package/dist/Backdrop-CioURPVG.js +0 -359
- package/dist/Box-B0YSYLco.js +0 -59
- package/dist/Button-Df4vgU24.js +0 -663
- package/dist/ButtonBase-DLF5c6wi.js +0 -870
- package/dist/CardContent-D9wTdpu-.js +0 -141
- package/dist/CircularProgress-xZA3lvba.js +0 -252
- package/dist/Close-CxzDL3J-.js +0 -9
- package/dist/Container-urNKV7hm.js +0 -181
- package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
- package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
- package/dist/DialogContent-BMwlOnbW.js +0 -567
- package/dist/DialogTitle-CfS0bb2K.js +0 -70
- package/dist/Divider-BShhMFf4.js +0 -297
- package/dist/FilledInput-DuNqnPjc.js +0 -1292
- package/dist/FormControl-RtZDQMdA.js +0 -258
- package/dist/FormControlLabel-BliKW48y.js +0 -519
- package/dist/GlobalStyles-ChMhDfTS.js +0 -59
- package/dist/Grid-CFe3amXO.js +0 -410
- package/dist/Grow-CnGtel3u.js +0 -196
- package/dist/HTMLElementType-BrQSV2FE.js +0 -13
- package/dist/IconButton-DHm-hucF.js +0 -297
- package/dist/InputAdornment-DMiED3JH.js +0 -173
- package/dist/Link-DBA9Yifs.js +0 -266
- package/dist/ListItemIcon-CUcyTEEm.js +0 -84
- package/dist/Menu-DLYFFrEk.js +0 -1239
- package/dist/MenuItem-DUdYOJr4.js +0 -271
- package/dist/Modal-CFIQ_s3T.js +0 -743
- package/dist/Paper-Bgt2WXI6.js +0 -186
- package/dist/PlayArrow-Bjz9LxhD.js +0 -13
- package/dist/Popper-BBAoiZKn.js +0 -1409
- package/dist/Portal-BMAxiQwe.js +0 -69
- package/dist/RadioGroup-nvoSN0JN.js +0 -189
- package/dist/Select-CB5yWmyn.js +0 -1886
- package/dist/Slide-B9Nw0LZ4.js +0 -235
- package/dist/Stack-k55YTxET.js +0 -172
- package/dist/SwitchBase-C8zFyg_x.js +0 -318
- package/dist/TextField-DPpRUQe3.js +0 -978
- package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
- package/dist/Typography-pAaje37G.js +0 -260
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/clsx-BTaloaeC.js +0 -264
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createTheme-CD19zQB7.js +0 -3825
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/defaultTheme-C35y5cLB.js +0 -5
- package/dist/dividerClasses-BDxa2gAa.js +0 -10
- package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
- package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
- package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
- package/dist/exactProp-C1Lmtwf_.js +0 -13
- package/dist/extendSxProp-B8UjbJ56.js +0 -37
- package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
- package/dist/index-B0Z-Gjno.js +0 -22
- package/dist/index-DUcLo3x5.js +0 -43
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/memoTheme-yHaPezod.js +0 -15
- package/dist/ownerWindow-CRgpWY6I.js +0 -7
- package/dist/radioButton-CzlYB0Lh.js +0 -402
- package/dist/refType-BsTH3qnM.js +0 -56
- package/dist/styles.module-CHPRGltL.js +0 -28
- package/dist/tooltip-3UvETWtS.js +0 -740
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useSlot-CW7SOYlh.js +0 -125
- package/dist/useSlotProps-BfEOwJvJ.js +0 -25
- package/dist/useTheme-BQJ5lp0i.js +0 -11
- package/dist/useTheme-S5_DHFsQ.js +0 -17
- package/dist/useThemeProps-DN9MjdTl.js +0 -29
package/dist/Menu-DLYFFrEk.js
DELETED
|
@@ -1,1239 +0,0 @@
|
|
|
1
|
-
import * as b from "react";
|
|
2
|
-
import { g as ae, P as e } from "./createTheme-CD19zQB7.js";
|
|
3
|
-
import { c as Z } from "./clsx-BTaloaeC.js";
|
|
4
|
-
import { u as De } from "./index-B0Z-Gjno.js";
|
|
5
|
-
import { s as W, u as ce, c as ue, r as $e } from "./DefaultPropsProvider-oAu9El-f.js";
|
|
6
|
-
import { g as le } from "./generateUtilityClasses-BRiE4Guh.js";
|
|
7
|
-
import { u as X } from "./useSlot-CW7SOYlh.js";
|
|
8
|
-
import { jsx as K, jsxs as ke } from "react/jsx-runtime";
|
|
9
|
-
import { i as Ye } from "./isHostComponent-kiaBvYVo.js";
|
|
10
|
-
import { g as ze, M as Ue } from "./Modal-CFIQ_s3T.js";
|
|
11
|
-
import { P as Ke, i as He } from "./Paper-Bgt2WXI6.js";
|
|
12
|
-
import { o as ne, H as re } from "./HTMLElementType-BrQSV2FE.js";
|
|
13
|
-
import { o as se } from "./ownerWindow-CRgpWY6I.js";
|
|
14
|
-
import { d as je } from "./debounce-46wSf_lW.js";
|
|
15
|
-
import { G as We } from "./Grow-CnGtel3u.js";
|
|
16
|
-
import { r as qe } from "./refType-BsTH3qnM.js";
|
|
17
|
-
import { c as Ve } from "./chainPropTypes-D9lkm76m.js";
|
|
18
|
-
import { e as Be } from "./elementTypeAcceptingRef-BdsMpCbS.js";
|
|
19
|
-
import { u as Ge } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
20
|
-
import { u as Xe } from "./TransitionGroupContext-CYRQkQ6k.js";
|
|
21
|
-
import { u as Ze } from "./useSlotProps-BfEOwJvJ.js";
|
|
22
|
-
function Je(t, n) {
|
|
23
|
-
const r = t.charCodeAt(2);
|
|
24
|
-
return t[0] === "o" && t[1] === "n" && r >= 65 && r <= 90 && typeof n == "function";
|
|
25
|
-
}
|
|
26
|
-
function Qe(t, n) {
|
|
27
|
-
if (!t)
|
|
28
|
-
return n;
|
|
29
|
-
function r(c, s) {
|
|
30
|
-
const i = {};
|
|
31
|
-
return Object.keys(s).forEach((l) => {
|
|
32
|
-
Je(l, s[l]) && typeof c[l] == "function" && (i[l] = (...T) => {
|
|
33
|
-
c[l](...T), s[l](...T);
|
|
34
|
-
});
|
|
35
|
-
}), i;
|
|
36
|
-
}
|
|
37
|
-
if (typeof t == "function" || typeof n == "function")
|
|
38
|
-
return (c) => {
|
|
39
|
-
const s = typeof n == "function" ? n(c) : n, i = typeof t == "function" ? t({
|
|
40
|
-
...c,
|
|
41
|
-
...s
|
|
42
|
-
}) : t, l = Z(c == null ? void 0 : c.className, s == null ? void 0 : s.className, i == null ? void 0 : i.className), T = r(i, s);
|
|
43
|
-
return {
|
|
44
|
-
...s,
|
|
45
|
-
...i,
|
|
46
|
-
...T,
|
|
47
|
-
...!!l && {
|
|
48
|
-
className: l
|
|
49
|
-
},
|
|
50
|
-
...(s == null ? void 0 : s.style) && (i == null ? void 0 : i.style) && {
|
|
51
|
-
style: {
|
|
52
|
-
...s.style,
|
|
53
|
-
...i.style
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
...(s == null ? void 0 : s.sx) && (i == null ? void 0 : i.sx) && {
|
|
57
|
-
sx: [...Array.isArray(s.sx) ? s.sx : [s.sx], ...Array.isArray(i.sx) ? i.sx : [i.sx]]
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
const a = n, m = r(t, a), u = Z(a == null ? void 0 : a.className, t == null ? void 0 : t.className);
|
|
62
|
-
return {
|
|
63
|
-
...n,
|
|
64
|
-
...t,
|
|
65
|
-
...m,
|
|
66
|
-
...!!u && {
|
|
67
|
-
className: u
|
|
68
|
-
},
|
|
69
|
-
...(a == null ? void 0 : a.style) && (t == null ? void 0 : t.style) && {
|
|
70
|
-
style: {
|
|
71
|
-
...a.style,
|
|
72
|
-
...t.style
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
...(a == null ? void 0 : a.sx) && (t == null ? void 0 : t.sx) && {
|
|
76
|
-
sx: [...Array.isArray(a.sx) ? a.sx : [a.sx], ...Array.isArray(t.sx) ? t.sx : [t.sx]]
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
var ie = { exports: {} }, h = {};
|
|
81
|
-
/**
|
|
82
|
-
* @license React
|
|
83
|
-
* react-is.production.js
|
|
84
|
-
*
|
|
85
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the MIT license found in the
|
|
88
|
-
* LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/
|
|
90
|
-
var Ee;
|
|
91
|
-
function eo() {
|
|
92
|
-
if (Ee) return h;
|
|
93
|
-
Ee = 1;
|
|
94
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), u = Symbol.for("react.consumer"), c = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), i = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), N = Symbol.for("react.view_transition"), p = Symbol.for("react.client.reference");
|
|
95
|
-
function d(o) {
|
|
96
|
-
if (typeof o == "object" && o !== null) {
|
|
97
|
-
var w = o.$$typeof;
|
|
98
|
-
switch (w) {
|
|
99
|
-
case t:
|
|
100
|
-
switch (o = o.type, o) {
|
|
101
|
-
case r:
|
|
102
|
-
case m:
|
|
103
|
-
case a:
|
|
104
|
-
case i:
|
|
105
|
-
case l:
|
|
106
|
-
case N:
|
|
107
|
-
return o;
|
|
108
|
-
default:
|
|
109
|
-
switch (o = o && o.$$typeof, o) {
|
|
110
|
-
case c:
|
|
111
|
-
case s:
|
|
112
|
-
case O:
|
|
113
|
-
case T:
|
|
114
|
-
return o;
|
|
115
|
-
case u:
|
|
116
|
-
return o;
|
|
117
|
-
default:
|
|
118
|
-
return w;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
case n:
|
|
122
|
-
return w;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return h.ContextConsumer = u, h.ContextProvider = c, h.Element = t, h.ForwardRef = s, h.Fragment = r, h.Lazy = O, h.Memo = T, h.Portal = n, h.Profiler = m, h.StrictMode = a, h.Suspense = i, h.SuspenseList = l, h.isContextConsumer = function(o) {
|
|
127
|
-
return d(o) === u;
|
|
128
|
-
}, h.isContextProvider = function(o) {
|
|
129
|
-
return d(o) === c;
|
|
130
|
-
}, h.isElement = function(o) {
|
|
131
|
-
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
132
|
-
}, h.isForwardRef = function(o) {
|
|
133
|
-
return d(o) === s;
|
|
134
|
-
}, h.isFragment = function(o) {
|
|
135
|
-
return d(o) === r;
|
|
136
|
-
}, h.isLazy = function(o) {
|
|
137
|
-
return d(o) === O;
|
|
138
|
-
}, h.isMemo = function(o) {
|
|
139
|
-
return d(o) === T;
|
|
140
|
-
}, h.isPortal = function(o) {
|
|
141
|
-
return d(o) === n;
|
|
142
|
-
}, h.isProfiler = function(o) {
|
|
143
|
-
return d(o) === m;
|
|
144
|
-
}, h.isStrictMode = function(o) {
|
|
145
|
-
return d(o) === a;
|
|
146
|
-
}, h.isSuspense = function(o) {
|
|
147
|
-
return d(o) === i;
|
|
148
|
-
}, h.isSuspenseList = function(o) {
|
|
149
|
-
return d(o) === l;
|
|
150
|
-
}, h.isValidElementType = function(o) {
|
|
151
|
-
return typeof o == "string" || typeof o == "function" || o === r || o === m || o === a || o === i || o === l || typeof o == "object" && o !== null && (o.$$typeof === O || o.$$typeof === T || o.$$typeof === c || o.$$typeof === u || o.$$typeof === s || o.$$typeof === p || o.getModuleId !== void 0);
|
|
152
|
-
}, h.typeOf = d, h;
|
|
153
|
-
}
|
|
154
|
-
var E = {};
|
|
155
|
-
/**
|
|
156
|
-
* @license React
|
|
157
|
-
* react-is.development.js
|
|
158
|
-
*
|
|
159
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
160
|
-
*
|
|
161
|
-
* This source code is licensed under the MIT license found in the
|
|
162
|
-
* LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/
|
|
164
|
-
var ye;
|
|
165
|
-
function oo() {
|
|
166
|
-
return ye || (ye = 1, process.env.NODE_ENV !== "production" && function() {
|
|
167
|
-
function t(o) {
|
|
168
|
-
if (typeof o == "object" && o !== null) {
|
|
169
|
-
var w = o.$$typeof;
|
|
170
|
-
switch (w) {
|
|
171
|
-
case n:
|
|
172
|
-
switch (o = o.type, o) {
|
|
173
|
-
case a:
|
|
174
|
-
case u:
|
|
175
|
-
case m:
|
|
176
|
-
case l:
|
|
177
|
-
case T:
|
|
178
|
-
case p:
|
|
179
|
-
return o;
|
|
180
|
-
default:
|
|
181
|
-
switch (o = o && o.$$typeof, o) {
|
|
182
|
-
case s:
|
|
183
|
-
case i:
|
|
184
|
-
case N:
|
|
185
|
-
case O:
|
|
186
|
-
return o;
|
|
187
|
-
case c:
|
|
188
|
-
return o;
|
|
189
|
-
default:
|
|
190
|
-
return w;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
case r:
|
|
194
|
-
return w;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
var n = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), s = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition"), d = Symbol.for("react.client.reference");
|
|
199
|
-
E.ContextConsumer = c, E.ContextProvider = s, E.Element = n, E.ForwardRef = i, E.Fragment = a, E.Lazy = N, E.Memo = O, E.Portal = r, E.Profiler = u, E.StrictMode = m, E.Suspense = l, E.SuspenseList = T, E.isContextConsumer = function(o) {
|
|
200
|
-
return t(o) === c;
|
|
201
|
-
}, E.isContextProvider = function(o) {
|
|
202
|
-
return t(o) === s;
|
|
203
|
-
}, E.isElement = function(o) {
|
|
204
|
-
return typeof o == "object" && o !== null && o.$$typeof === n;
|
|
205
|
-
}, E.isForwardRef = function(o) {
|
|
206
|
-
return t(o) === i;
|
|
207
|
-
}, E.isFragment = function(o) {
|
|
208
|
-
return t(o) === a;
|
|
209
|
-
}, E.isLazy = function(o) {
|
|
210
|
-
return t(o) === N;
|
|
211
|
-
}, E.isMemo = function(o) {
|
|
212
|
-
return t(o) === O;
|
|
213
|
-
}, E.isPortal = function(o) {
|
|
214
|
-
return t(o) === r;
|
|
215
|
-
}, E.isProfiler = function(o) {
|
|
216
|
-
return t(o) === u;
|
|
217
|
-
}, E.isStrictMode = function(o) {
|
|
218
|
-
return t(o) === m;
|
|
219
|
-
}, E.isSuspense = function(o) {
|
|
220
|
-
return t(o) === l;
|
|
221
|
-
}, E.isSuspenseList = function(o) {
|
|
222
|
-
return t(o) === T;
|
|
223
|
-
}, E.isValidElementType = function(o) {
|
|
224
|
-
return typeof o == "string" || typeof o == "function" || o === a || o === u || o === m || o === l || o === T || typeof o == "object" && o !== null && (o.$$typeof === N || o.$$typeof === O || o.$$typeof === s || o.$$typeof === c || o.$$typeof === i || o.$$typeof === d || o.getModuleId !== void 0);
|
|
225
|
-
}, E.typeOf = t;
|
|
226
|
-
}()), E;
|
|
227
|
-
}
|
|
228
|
-
process.env.NODE_ENV === "production" ? ie.exports = eo() : ie.exports = oo();
|
|
229
|
-
var ve = ie.exports;
|
|
230
|
-
const Pe = /* @__PURE__ */ b.createContext({});
|
|
231
|
-
process.env.NODE_ENV !== "production" && (Pe.displayName = "ListContext");
|
|
232
|
-
function to(t) {
|
|
233
|
-
return ae("MuiList", t);
|
|
234
|
-
}
|
|
235
|
-
le("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
236
|
-
const no = (t) => {
|
|
237
|
-
const {
|
|
238
|
-
classes: n,
|
|
239
|
-
disablePadding: r,
|
|
240
|
-
dense: a,
|
|
241
|
-
subheader: m
|
|
242
|
-
} = t;
|
|
243
|
-
return ue({
|
|
244
|
-
root: ["root", !r && "padding", a && "dense", m && "subheader"]
|
|
245
|
-
}, to, n);
|
|
246
|
-
}, ro = W("ul", {
|
|
247
|
-
name: "MuiList",
|
|
248
|
-
slot: "Root",
|
|
249
|
-
overridesResolver: (t, n) => {
|
|
250
|
-
const {
|
|
251
|
-
ownerState: r
|
|
252
|
-
} = t;
|
|
253
|
-
return [n.root, !r.disablePadding && n.padding, r.dense && n.dense, r.subheader && n.subheader];
|
|
254
|
-
}
|
|
255
|
-
})({
|
|
256
|
-
listStyle: "none",
|
|
257
|
-
margin: 0,
|
|
258
|
-
padding: 0,
|
|
259
|
-
position: "relative",
|
|
260
|
-
variants: [{
|
|
261
|
-
props: ({
|
|
262
|
-
ownerState: t
|
|
263
|
-
}) => !t.disablePadding,
|
|
264
|
-
style: {
|
|
265
|
-
paddingTop: 8,
|
|
266
|
-
paddingBottom: 8
|
|
267
|
-
}
|
|
268
|
-
}, {
|
|
269
|
-
props: ({
|
|
270
|
-
ownerState: t
|
|
271
|
-
}) => t.subheader,
|
|
272
|
-
style: {
|
|
273
|
-
paddingTop: 0
|
|
274
|
-
}
|
|
275
|
-
}]
|
|
276
|
-
}), Ce = /* @__PURE__ */ b.forwardRef(function(n, r) {
|
|
277
|
-
const a = ce({
|
|
278
|
-
props: n,
|
|
279
|
-
name: "MuiList"
|
|
280
|
-
}), {
|
|
281
|
-
children: m,
|
|
282
|
-
className: u,
|
|
283
|
-
component: c = "ul",
|
|
284
|
-
dense: s = !1,
|
|
285
|
-
disablePadding: i = !1,
|
|
286
|
-
subheader: l,
|
|
287
|
-
...T
|
|
288
|
-
} = a, O = b.useMemo(() => ({
|
|
289
|
-
dense: s
|
|
290
|
-
}), [s]), N = {
|
|
291
|
-
...a,
|
|
292
|
-
component: c,
|
|
293
|
-
dense: s,
|
|
294
|
-
disablePadding: i
|
|
295
|
-
}, p = no(N);
|
|
296
|
-
return /* @__PURE__ */ K(Pe.Provider, {
|
|
297
|
-
value: O,
|
|
298
|
-
children: /* @__PURE__ */ ke(ro, {
|
|
299
|
-
as: c,
|
|
300
|
-
className: Z(p.root, u),
|
|
301
|
-
ref: r,
|
|
302
|
-
ownerState: N,
|
|
303
|
-
...T,
|
|
304
|
-
children: [l, m]
|
|
305
|
-
})
|
|
306
|
-
});
|
|
307
|
-
});
|
|
308
|
-
process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
309
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
310
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
311
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
312
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
313
|
-
/**
|
|
314
|
-
* The content of the component.
|
|
315
|
-
*/
|
|
316
|
-
children: e.node,
|
|
317
|
-
/**
|
|
318
|
-
* Override or extend the styles applied to the component.
|
|
319
|
-
*/
|
|
320
|
-
classes: e.object,
|
|
321
|
-
/**
|
|
322
|
-
* @ignore
|
|
323
|
-
*/
|
|
324
|
-
className: e.string,
|
|
325
|
-
/**
|
|
326
|
-
* The component used for the root node.
|
|
327
|
-
* Either a string to use a HTML element or a component.
|
|
328
|
-
*/
|
|
329
|
-
component: e.elementType,
|
|
330
|
-
/**
|
|
331
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
332
|
-
* the list and list items.
|
|
333
|
-
* The prop is available to descendant components as the `dense` context.
|
|
334
|
-
* @default false
|
|
335
|
-
*/
|
|
336
|
-
dense: e.bool,
|
|
337
|
-
/**
|
|
338
|
-
* If `true`, vertical padding is removed from the list.
|
|
339
|
-
* @default false
|
|
340
|
-
*/
|
|
341
|
-
disablePadding: e.bool,
|
|
342
|
-
/**
|
|
343
|
-
* The content of the subheader, normally `ListSubheader`.
|
|
344
|
-
*/
|
|
345
|
-
subheader: e.node,
|
|
346
|
-
/**
|
|
347
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
348
|
-
*/
|
|
349
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
350
|
-
});
|
|
351
|
-
function te(t, n, r) {
|
|
352
|
-
return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : r ? null : t.firstChild;
|
|
353
|
-
}
|
|
354
|
-
function Te(t, n, r) {
|
|
355
|
-
return t === n ? r ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : r ? null : t.lastChild;
|
|
356
|
-
}
|
|
357
|
-
function _e(t, n) {
|
|
358
|
-
if (n === void 0)
|
|
359
|
-
return !0;
|
|
360
|
-
let r = t.innerText;
|
|
361
|
-
return r === void 0 && (r = t.textContent), r = r.trim().toLowerCase(), r.length === 0 ? !1 : n.repeating ? r[0] === n.keys[0] : r.startsWith(n.keys.join(""));
|
|
362
|
-
}
|
|
363
|
-
function B(t, n, r, a, m, u) {
|
|
364
|
-
let c = !1, s = m(t, n, n ? r : !1);
|
|
365
|
-
for (; s; ) {
|
|
366
|
-
if (s === t.firstChild) {
|
|
367
|
-
if (c)
|
|
368
|
-
return !1;
|
|
369
|
-
c = !0;
|
|
370
|
-
}
|
|
371
|
-
const i = a ? !1 : s.disabled || s.getAttribute("aria-disabled") === "true";
|
|
372
|
-
if (!s.hasAttribute("tabindex") || !_e(s, u) || i)
|
|
373
|
-
s = m(t, s, r);
|
|
374
|
-
else
|
|
375
|
-
return s.focus(), !0;
|
|
376
|
-
}
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
const Oe = /* @__PURE__ */ b.forwardRef(function(n, r) {
|
|
380
|
-
const {
|
|
381
|
-
// private
|
|
382
|
-
// eslint-disable-next-line react/prop-types
|
|
383
|
-
actions: a,
|
|
384
|
-
autoFocus: m = !1,
|
|
385
|
-
autoFocusItem: u = !1,
|
|
386
|
-
children: c,
|
|
387
|
-
className: s,
|
|
388
|
-
disabledItemsFocusable: i = !1,
|
|
389
|
-
disableListWrap: l = !1,
|
|
390
|
-
onKeyDown: T,
|
|
391
|
-
variant: O = "selectedMenu",
|
|
392
|
-
...N
|
|
393
|
-
} = n, p = b.useRef(null), d = b.useRef({
|
|
394
|
-
keys: [],
|
|
395
|
-
repeating: !0,
|
|
396
|
-
previousKeyMatched: !0,
|
|
397
|
-
lastTime: null
|
|
398
|
-
});
|
|
399
|
-
Ge(() => {
|
|
400
|
-
m && p.current.focus();
|
|
401
|
-
}, [m]), b.useImperativeHandle(a, () => ({
|
|
402
|
-
adjustStyleForScrollbar: (f, {
|
|
403
|
-
direction: R
|
|
404
|
-
}) => {
|
|
405
|
-
const v = !p.current.style.width;
|
|
406
|
-
if (f.clientHeight < p.current.clientHeight && v) {
|
|
407
|
-
const L = `${ze(se(f))}px`;
|
|
408
|
-
p.current.style[R === "rtl" ? "paddingLeft" : "paddingRight"] = L, p.current.style.width = `calc(100% + ${L})`;
|
|
409
|
-
}
|
|
410
|
-
return p.current;
|
|
411
|
-
}
|
|
412
|
-
}), []);
|
|
413
|
-
const o = (f) => {
|
|
414
|
-
const R = p.current, v = f.key;
|
|
415
|
-
if (f.ctrlKey || f.metaKey || f.altKey) {
|
|
416
|
-
T && T(f);
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
const $ = ne(R).activeElement;
|
|
420
|
-
if (v === "ArrowDown")
|
|
421
|
-
f.preventDefault(), B(R, $, l, i, te);
|
|
422
|
-
else if (v === "ArrowUp")
|
|
423
|
-
f.preventDefault(), B(R, $, l, i, Te);
|
|
424
|
-
else if (v === "Home")
|
|
425
|
-
f.preventDefault(), B(R, null, l, i, te);
|
|
426
|
-
else if (v === "End")
|
|
427
|
-
f.preventDefault(), B(R, null, l, i, Te);
|
|
428
|
-
else if (v.length === 1) {
|
|
429
|
-
const P = d.current, x = v.toLowerCase(), U = performance.now();
|
|
430
|
-
P.keys.length > 0 && (U - P.lastTime > 500 ? (P.keys = [], P.repeating = !0, P.previousKeyMatched = !0) : P.repeating && x !== P.keys[0] && (P.repeating = !1)), P.lastTime = U, P.keys.push(x);
|
|
431
|
-
const k = $ && !P.repeating && _e($, P);
|
|
432
|
-
P.previousKeyMatched && (k || B(R, $, !1, i, te, P)) ? f.preventDefault() : P.previousKeyMatched = !1;
|
|
433
|
-
}
|
|
434
|
-
T && T(f);
|
|
435
|
-
}, w = Xe(p, r);
|
|
436
|
-
let g = -1;
|
|
437
|
-
b.Children.forEach(c, (f, R) => {
|
|
438
|
-
if (!/* @__PURE__ */ b.isValidElement(f)) {
|
|
439
|
-
g === R && (g += 1, g >= c.length && (g = -1));
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
process.env.NODE_ENV !== "production" && ve.isFragment(f) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
443
|
-
`)), f.props.disabled || (O === "selectedMenu" && f.props.selected || g === -1) && (g = R), g === R && (f.props.disabled || f.props.muiSkipListHighlight || f.type.muiSkipListHighlight) && (g += 1, g >= c.length && (g = -1));
|
|
444
|
-
});
|
|
445
|
-
const I = b.Children.map(c, (f, R) => {
|
|
446
|
-
if (R === g) {
|
|
447
|
-
const v = {};
|
|
448
|
-
return u && (v.autoFocus = !0), f.props.tabIndex === void 0 && O === "selectedMenu" && (v.tabIndex = 0), /* @__PURE__ */ b.cloneElement(f, v);
|
|
449
|
-
}
|
|
450
|
-
return f;
|
|
451
|
-
});
|
|
452
|
-
return /* @__PURE__ */ K(Ce, {
|
|
453
|
-
role: "menu",
|
|
454
|
-
ref: w,
|
|
455
|
-
className: s,
|
|
456
|
-
onKeyDown: o,
|
|
457
|
-
tabIndex: m ? 0 : -1,
|
|
458
|
-
...N,
|
|
459
|
-
children: I
|
|
460
|
-
});
|
|
461
|
-
});
|
|
462
|
-
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
463
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
464
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
465
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
466
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
467
|
-
/**
|
|
468
|
-
* If `true`, will focus the `[role="menu"]` container and move into tab order.
|
|
469
|
-
* @default false
|
|
470
|
-
*/
|
|
471
|
-
autoFocus: e.bool,
|
|
472
|
-
/**
|
|
473
|
-
* If `true`, will focus the first menuitem if `variant="menu"` or selected item
|
|
474
|
-
* if `variant="selectedMenu"`.
|
|
475
|
-
* @default false
|
|
476
|
-
*/
|
|
477
|
-
autoFocusItem: e.bool,
|
|
478
|
-
/**
|
|
479
|
-
* MenuList contents, normally `MenuItem`s.
|
|
480
|
-
*/
|
|
481
|
-
children: e.node,
|
|
482
|
-
/**
|
|
483
|
-
* @ignore
|
|
484
|
-
*/
|
|
485
|
-
className: e.string,
|
|
486
|
-
/**
|
|
487
|
-
* If `true`, will allow focus on disabled items.
|
|
488
|
-
* @default false
|
|
489
|
-
*/
|
|
490
|
-
disabledItemsFocusable: e.bool,
|
|
491
|
-
/**
|
|
492
|
-
* If `true`, the menu items will not wrap focus.
|
|
493
|
-
* @default false
|
|
494
|
-
*/
|
|
495
|
-
disableListWrap: e.bool,
|
|
496
|
-
/**
|
|
497
|
-
* @ignore
|
|
498
|
-
*/
|
|
499
|
-
onKeyDown: e.func,
|
|
500
|
-
/**
|
|
501
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus
|
|
502
|
-
* and the vertical alignment relative to the anchor element.
|
|
503
|
-
* @default 'selectedMenu'
|
|
504
|
-
*/
|
|
505
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
506
|
-
});
|
|
507
|
-
function so(t) {
|
|
508
|
-
return ae("MuiPopover", t);
|
|
509
|
-
}
|
|
510
|
-
le("MuiPopover", ["root", "paper"]);
|
|
511
|
-
function be(t, n) {
|
|
512
|
-
let r = 0;
|
|
513
|
-
return typeof n == "number" ? r = n : n === "center" ? r = t.height / 2 : n === "bottom" && (r = t.height), r;
|
|
514
|
-
}
|
|
515
|
-
function ge(t, n) {
|
|
516
|
-
let r = 0;
|
|
517
|
-
return typeof n == "number" ? r = n : n === "center" ? r = t.width / 2 : n === "right" && (r = t.width), r;
|
|
518
|
-
}
|
|
519
|
-
function Re(t) {
|
|
520
|
-
return [t.horizontal, t.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
|
521
|
-
}
|
|
522
|
-
function G(t) {
|
|
523
|
-
return typeof t == "function" ? t() : t;
|
|
524
|
-
}
|
|
525
|
-
const io = (t) => {
|
|
526
|
-
const {
|
|
527
|
-
classes: n
|
|
528
|
-
} = t;
|
|
529
|
-
return ue({
|
|
530
|
-
root: ["root"],
|
|
531
|
-
paper: ["paper"]
|
|
532
|
-
}, so, n);
|
|
533
|
-
}, ao = W(Ue, {
|
|
534
|
-
name: "MuiPopover",
|
|
535
|
-
slot: "Root"
|
|
536
|
-
})({}), Me = W(Ke, {
|
|
537
|
-
name: "MuiPopover",
|
|
538
|
-
slot: "Paper"
|
|
539
|
-
})({
|
|
540
|
-
position: "absolute",
|
|
541
|
-
overflowY: "auto",
|
|
542
|
-
overflowX: "hidden",
|
|
543
|
-
// So we see the popover when it's empty.
|
|
544
|
-
// It's most likely on issue on userland.
|
|
545
|
-
minWidth: 16,
|
|
546
|
-
minHeight: 16,
|
|
547
|
-
maxWidth: "calc(100% - 32px)",
|
|
548
|
-
maxHeight: "calc(100% - 32px)",
|
|
549
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
550
|
-
outline: 0
|
|
551
|
-
}), Ne = /* @__PURE__ */ b.forwardRef(function(n, r) {
|
|
552
|
-
const a = ce({
|
|
553
|
-
props: n,
|
|
554
|
-
name: "MuiPopover"
|
|
555
|
-
}), {
|
|
556
|
-
action: m,
|
|
557
|
-
anchorEl: u,
|
|
558
|
-
anchorOrigin: c = {
|
|
559
|
-
vertical: "top",
|
|
560
|
-
horizontal: "left"
|
|
561
|
-
},
|
|
562
|
-
anchorPosition: s,
|
|
563
|
-
anchorReference: i = "anchorEl",
|
|
564
|
-
children: l,
|
|
565
|
-
className: T,
|
|
566
|
-
container: O,
|
|
567
|
-
elevation: N = 8,
|
|
568
|
-
marginThreshold: p = 16,
|
|
569
|
-
open: d,
|
|
570
|
-
PaperProps: o = {},
|
|
571
|
-
// TODO: remove in v7
|
|
572
|
-
slots: w = {},
|
|
573
|
-
slotProps: g = {},
|
|
574
|
-
transformOrigin: I = {
|
|
575
|
-
vertical: "top",
|
|
576
|
-
horizontal: "left"
|
|
577
|
-
},
|
|
578
|
-
TransitionComponent: f,
|
|
579
|
-
// TODO: remove in v7
|
|
580
|
-
transitionDuration: R = "auto",
|
|
581
|
-
TransitionProps: v = {},
|
|
582
|
-
// TODO: remove in v7
|
|
583
|
-
disableScrollLock: L = !1,
|
|
584
|
-
...$
|
|
585
|
-
} = a, P = b.useRef(), x = {
|
|
586
|
-
...a,
|
|
587
|
-
anchorOrigin: c,
|
|
588
|
-
anchorReference: i,
|
|
589
|
-
elevation: N,
|
|
590
|
-
marginThreshold: p,
|
|
591
|
-
transformOrigin: I,
|
|
592
|
-
TransitionComponent: f,
|
|
593
|
-
transitionDuration: R,
|
|
594
|
-
TransitionProps: v
|
|
595
|
-
}, U = io(x), k = b.useCallback(() => {
|
|
596
|
-
if (i === "anchorPosition")
|
|
597
|
-
return process.env.NODE_ENV !== "production" && (s || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), s;
|
|
598
|
-
const y = G(u), _ = y && y.nodeType === 1 ? y : ne(P.current).body, M = _.getBoundingClientRect();
|
|
599
|
-
if (process.env.NODE_ENV !== "production") {
|
|
600
|
-
const D = _.getBoundingClientRect();
|
|
601
|
-
process.env.NODE_ENV !== "test" && D.top === 0 && D.left === 0 && D.right === 0 && D.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(`
|
|
602
|
-
`));
|
|
603
|
-
}
|
|
604
|
-
return {
|
|
605
|
-
top: M.top + be(M, c.vertical),
|
|
606
|
-
left: M.left + ge(M, c.horizontal)
|
|
607
|
-
};
|
|
608
|
-
}, [u, c.horizontal, c.vertical, s, i]), Y = b.useCallback((y) => ({
|
|
609
|
-
vertical: be(y, I.vertical),
|
|
610
|
-
horizontal: ge(y, I.horizontal)
|
|
611
|
-
}), [I.horizontal, I.vertical]), J = b.useCallback((y) => {
|
|
612
|
-
const _ = {
|
|
613
|
-
width: y.offsetWidth,
|
|
614
|
-
height: y.offsetHeight
|
|
615
|
-
}, M = Y(_);
|
|
616
|
-
if (i === "none")
|
|
617
|
-
return {
|
|
618
|
-
top: null,
|
|
619
|
-
left: null,
|
|
620
|
-
transformOrigin: Re(M)
|
|
621
|
-
};
|
|
622
|
-
const D = k();
|
|
623
|
-
let H = D.top - M.vertical, j = D.left - M.horizontal;
|
|
624
|
-
const pe = H + _.height, de = j + _.width, me = se(G(u)), V = me.innerHeight - p, he = me.innerWidth - p;
|
|
625
|
-
if (p !== null && H < p) {
|
|
626
|
-
const F = H - p;
|
|
627
|
-
H -= F, M.vertical += F;
|
|
628
|
-
} else if (p !== null && pe > V) {
|
|
629
|
-
const F = pe - V;
|
|
630
|
-
H -= F, M.vertical += F;
|
|
631
|
-
}
|
|
632
|
-
if (process.env.NODE_ENV !== "production" && _.height > V && _.height && V && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${_.height - V}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
633
|
-
`)), p !== null && j < p) {
|
|
634
|
-
const F = j - p;
|
|
635
|
-
j -= F, M.horizontal += F;
|
|
636
|
-
} else if (de > he) {
|
|
637
|
-
const F = de - he;
|
|
638
|
-
j -= F, M.horizontal += F;
|
|
639
|
-
}
|
|
640
|
-
return {
|
|
641
|
-
top: `${Math.round(H)}px`,
|
|
642
|
-
left: `${Math.round(j)}px`,
|
|
643
|
-
transformOrigin: Re(M)
|
|
644
|
-
};
|
|
645
|
-
}, [u, i, k, Y, p]), [ee, Q] = b.useState(d), S = b.useCallback(() => {
|
|
646
|
-
const y = P.current;
|
|
647
|
-
if (!y)
|
|
648
|
-
return;
|
|
649
|
-
const _ = J(y);
|
|
650
|
-
_.top !== null && y.style.setProperty("top", _.top), _.left !== null && (y.style.left = _.left), y.style.transformOrigin = _.transformOrigin, Q(!0);
|
|
651
|
-
}, [J]);
|
|
652
|
-
b.useEffect(() => (L && window.addEventListener("scroll", S), () => window.removeEventListener("scroll", S)), [u, L, S]);
|
|
653
|
-
const oe = () => {
|
|
654
|
-
S();
|
|
655
|
-
}, z = () => {
|
|
656
|
-
Q(!1);
|
|
657
|
-
};
|
|
658
|
-
b.useEffect(() => {
|
|
659
|
-
d && S();
|
|
660
|
-
}), b.useImperativeHandle(m, () => d ? {
|
|
661
|
-
updatePosition: () => {
|
|
662
|
-
S();
|
|
663
|
-
}
|
|
664
|
-
} : null, [d, S]), b.useEffect(() => {
|
|
665
|
-
if (!d)
|
|
666
|
-
return;
|
|
667
|
-
const y = je(() => {
|
|
668
|
-
S();
|
|
669
|
-
}), _ = se(G(u));
|
|
670
|
-
return _.addEventListener("resize", y), () => {
|
|
671
|
-
y.clear(), _.removeEventListener("resize", y);
|
|
672
|
-
};
|
|
673
|
-
}, [u, d, S]);
|
|
674
|
-
let C = R;
|
|
675
|
-
const A = {
|
|
676
|
-
slots: {
|
|
677
|
-
transition: f,
|
|
678
|
-
...w
|
|
679
|
-
},
|
|
680
|
-
slotProps: {
|
|
681
|
-
transition: v,
|
|
682
|
-
paper: o,
|
|
683
|
-
...g
|
|
684
|
-
}
|
|
685
|
-
}, [q, we] = X("transition", {
|
|
686
|
-
elementType: We,
|
|
687
|
-
externalForwardedProps: A,
|
|
688
|
-
ownerState: x,
|
|
689
|
-
getSlotProps: (y) => ({
|
|
690
|
-
...y,
|
|
691
|
-
onEntering: (_, M) => {
|
|
692
|
-
var D;
|
|
693
|
-
(D = y.onEntering) == null || D.call(y, _, M), oe();
|
|
694
|
-
},
|
|
695
|
-
onExited: (_) => {
|
|
696
|
-
var M;
|
|
697
|
-
(M = y.onExited) == null || M.call(y, _), z();
|
|
698
|
-
}
|
|
699
|
-
}),
|
|
700
|
-
additionalProps: {
|
|
701
|
-
appear: !0,
|
|
702
|
-
in: d
|
|
703
|
-
}
|
|
704
|
-
});
|
|
705
|
-
R === "auto" && !q.muiSupportAuto && (C = void 0);
|
|
706
|
-
const Ae = O || (u ? ne(G(u)).body : void 0), [fe, {
|
|
707
|
-
slots: Ie,
|
|
708
|
-
slotProps: Le,
|
|
709
|
-
...Se
|
|
710
|
-
}] = X("root", {
|
|
711
|
-
ref: r,
|
|
712
|
-
elementType: ao,
|
|
713
|
-
externalForwardedProps: {
|
|
714
|
-
...A,
|
|
715
|
-
...$
|
|
716
|
-
},
|
|
717
|
-
shouldForwardComponentProp: !0,
|
|
718
|
-
additionalProps: {
|
|
719
|
-
slots: {
|
|
720
|
-
backdrop: w.backdrop
|
|
721
|
-
},
|
|
722
|
-
slotProps: {
|
|
723
|
-
backdrop: Qe(typeof g.backdrop == "function" ? g.backdrop(x) : g.backdrop, {
|
|
724
|
-
invisible: !0
|
|
725
|
-
})
|
|
726
|
-
},
|
|
727
|
-
container: Ae,
|
|
728
|
-
open: d
|
|
729
|
-
},
|
|
730
|
-
ownerState: x,
|
|
731
|
-
className: Z(U.root, T)
|
|
732
|
-
}), [Fe, xe] = X("paper", {
|
|
733
|
-
ref: P,
|
|
734
|
-
className: U.paper,
|
|
735
|
-
elementType: Me,
|
|
736
|
-
externalForwardedProps: A,
|
|
737
|
-
shouldForwardComponentProp: !0,
|
|
738
|
-
additionalProps: {
|
|
739
|
-
elevation: N,
|
|
740
|
-
style: ee ? void 0 : {
|
|
741
|
-
opacity: 0
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
ownerState: x
|
|
745
|
-
});
|
|
746
|
-
return /* @__PURE__ */ K(fe, {
|
|
747
|
-
...Se,
|
|
748
|
-
...!Ye(fe) && {
|
|
749
|
-
slots: Ie,
|
|
750
|
-
slotProps: Le,
|
|
751
|
-
disableScrollLock: L
|
|
752
|
-
},
|
|
753
|
-
children: /* @__PURE__ */ K(q, {
|
|
754
|
-
...we,
|
|
755
|
-
timeout: C,
|
|
756
|
-
children: /* @__PURE__ */ K(Fe, {
|
|
757
|
-
...xe,
|
|
758
|
-
children: l
|
|
759
|
-
})
|
|
760
|
-
})
|
|
761
|
-
});
|
|
762
|
-
});
|
|
763
|
-
process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
764
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
765
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
766
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
767
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
768
|
-
/**
|
|
769
|
-
* A ref for imperative actions.
|
|
770
|
-
* It currently only supports updatePosition() action.
|
|
771
|
-
*/
|
|
772
|
-
action: qe,
|
|
773
|
-
/**
|
|
774
|
-
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
775
|
-
* or a function that returns either.
|
|
776
|
-
* It's used to set the position of the popover.
|
|
777
|
-
*/
|
|
778
|
-
anchorEl: Ve(e.oneOfType([re, e.func]), (t) => {
|
|
779
|
-
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
780
|
-
const n = G(t.anchorEl);
|
|
781
|
-
if (n && n.nodeType === 1) {
|
|
782
|
-
const r = n.getBoundingClientRect();
|
|
783
|
-
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
784
|
-
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(`
|
|
785
|
-
`));
|
|
786
|
-
} else
|
|
787
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${n}\` instead.`].join(`
|
|
788
|
-
`));
|
|
789
|
-
}
|
|
790
|
-
return null;
|
|
791
|
-
}),
|
|
792
|
-
/**
|
|
793
|
-
* This is the point on the anchor where the popover's
|
|
794
|
-
* `anchorEl` will attach to. This is not used when the
|
|
795
|
-
* anchorReference is 'anchorPosition'.
|
|
796
|
-
*
|
|
797
|
-
* Options:
|
|
798
|
-
* vertical: [top, center, bottom];
|
|
799
|
-
* horizontal: [left, center, right].
|
|
800
|
-
* @default {
|
|
801
|
-
* vertical: 'top',
|
|
802
|
-
* horizontal: 'left',
|
|
803
|
-
* }
|
|
804
|
-
*/
|
|
805
|
-
anchorOrigin: e.shape({
|
|
806
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
807
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
808
|
-
}),
|
|
809
|
-
/**
|
|
810
|
-
* This is the position that may be used to set the position of the popover.
|
|
811
|
-
* The coordinates are relative to the application's client area.
|
|
812
|
-
*/
|
|
813
|
-
anchorPosition: e.shape({
|
|
814
|
-
left: e.number.isRequired,
|
|
815
|
-
top: e.number.isRequired
|
|
816
|
-
}),
|
|
817
|
-
/**
|
|
818
|
-
* This determines which anchor prop to refer to when setting
|
|
819
|
-
* the position of the popover.
|
|
820
|
-
* @default 'anchorEl'
|
|
821
|
-
*/
|
|
822
|
-
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
823
|
-
/**
|
|
824
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
825
|
-
* @deprecated Use `slots.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
826
|
-
* @default styled(Backdrop, {
|
|
827
|
-
* name: 'MuiModal',
|
|
828
|
-
* slot: 'Backdrop',
|
|
829
|
-
* overridesResolver: (props, styles) => {
|
|
830
|
-
* return styles.backdrop;
|
|
831
|
-
* },
|
|
832
|
-
* })({
|
|
833
|
-
* zIndex: -1,
|
|
834
|
-
* })
|
|
835
|
-
*/
|
|
836
|
-
BackdropComponent: e.elementType,
|
|
837
|
-
/**
|
|
838
|
-
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
839
|
-
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
840
|
-
*/
|
|
841
|
-
BackdropProps: e.object,
|
|
842
|
-
/**
|
|
843
|
-
* The content of the component.
|
|
844
|
-
*/
|
|
845
|
-
children: e.node,
|
|
846
|
-
/**
|
|
847
|
-
* Override or extend the styles applied to the component.
|
|
848
|
-
*/
|
|
849
|
-
classes: e.object,
|
|
850
|
-
/**
|
|
851
|
-
* @ignore
|
|
852
|
-
*/
|
|
853
|
-
className: e.string,
|
|
854
|
-
/**
|
|
855
|
-
* An HTML element, component instance, or function that returns either.
|
|
856
|
-
* The `container` will passed to the Modal component.
|
|
857
|
-
*
|
|
858
|
-
* By default, it uses the body of the anchorEl's top-level document object,
|
|
859
|
-
* so it's simply `document.body` most of the time.
|
|
860
|
-
*/
|
|
861
|
-
container: e.oneOfType([re, e.func]),
|
|
862
|
-
/**
|
|
863
|
-
* Disable the scroll lock behavior.
|
|
864
|
-
* @default false
|
|
865
|
-
*/
|
|
866
|
-
disableScrollLock: e.bool,
|
|
867
|
-
/**
|
|
868
|
-
* The elevation of the popover.
|
|
869
|
-
* @default 8
|
|
870
|
-
*/
|
|
871
|
-
elevation: He,
|
|
872
|
-
/**
|
|
873
|
-
* Specifies how close to the edge of the window the popover can appear.
|
|
874
|
-
* If null, the popover will not be constrained by the window.
|
|
875
|
-
* @default 16
|
|
876
|
-
*/
|
|
877
|
-
marginThreshold: e.number,
|
|
878
|
-
/**
|
|
879
|
-
* Callback fired when the component requests to be closed.
|
|
880
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
881
|
-
*/
|
|
882
|
-
onClose: e.func,
|
|
883
|
-
/**
|
|
884
|
-
* If `true`, the component is shown.
|
|
885
|
-
*/
|
|
886
|
-
open: e.bool.isRequired,
|
|
887
|
-
/**
|
|
888
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
889
|
-
*
|
|
890
|
-
* This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.
|
|
891
|
-
* @deprecated Use `slotProps.paper` instead.
|
|
892
|
-
*
|
|
893
|
-
* @default {}
|
|
894
|
-
*/
|
|
895
|
-
PaperProps: e.shape({
|
|
896
|
-
component: Be
|
|
897
|
-
}),
|
|
898
|
-
/**
|
|
899
|
-
* The props used for each slot inside.
|
|
900
|
-
* @default {}
|
|
901
|
-
*/
|
|
902
|
-
slotProps: e.shape({
|
|
903
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
904
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
905
|
-
root: e.oneOfType([e.func, e.object]),
|
|
906
|
-
transition: e.oneOfType([e.func, e.object])
|
|
907
|
-
}),
|
|
908
|
-
/**
|
|
909
|
-
* The components used for each slot inside.
|
|
910
|
-
* @default {}
|
|
911
|
-
*/
|
|
912
|
-
slots: e.shape({
|
|
913
|
-
backdrop: e.elementType,
|
|
914
|
-
paper: e.elementType,
|
|
915
|
-
root: e.elementType,
|
|
916
|
-
transition: e.elementType
|
|
917
|
-
}),
|
|
918
|
-
/**
|
|
919
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
920
|
-
*/
|
|
921
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
922
|
-
/**
|
|
923
|
-
* This is the point on the popover which
|
|
924
|
-
* will attach to the anchor's origin.
|
|
925
|
-
*
|
|
926
|
-
* Options:
|
|
927
|
-
* vertical: [top, center, bottom, x(px)];
|
|
928
|
-
* horizontal: [left, center, right, x(px)].
|
|
929
|
-
* @default {
|
|
930
|
-
* vertical: 'top',
|
|
931
|
-
* horizontal: 'left',
|
|
932
|
-
* }
|
|
933
|
-
*/
|
|
934
|
-
transformOrigin: e.shape({
|
|
935
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
936
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
937
|
-
}),
|
|
938
|
-
/**
|
|
939
|
-
* The component used for the transition.
|
|
940
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
941
|
-
* @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
942
|
-
* @default Grow
|
|
943
|
-
*/
|
|
944
|
-
TransitionComponent: e.elementType,
|
|
945
|
-
/**
|
|
946
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
947
|
-
* @default 'auto'
|
|
948
|
-
*/
|
|
949
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
950
|
-
appear: e.number,
|
|
951
|
-
enter: e.number,
|
|
952
|
-
exit: e.number
|
|
953
|
-
})]),
|
|
954
|
-
/**
|
|
955
|
-
* Props applied to the transition element.
|
|
956
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
957
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
958
|
-
* @default {}
|
|
959
|
-
*/
|
|
960
|
-
TransitionProps: e.object
|
|
961
|
-
});
|
|
962
|
-
function co(t) {
|
|
963
|
-
return ae("MuiMenu", t);
|
|
964
|
-
}
|
|
965
|
-
le("MuiMenu", ["root", "paper", "list"]);
|
|
966
|
-
const uo = {
|
|
967
|
-
vertical: "top",
|
|
968
|
-
horizontal: "right"
|
|
969
|
-
}, lo = {
|
|
970
|
-
vertical: "top",
|
|
971
|
-
horizontal: "left"
|
|
972
|
-
}, fo = (t) => {
|
|
973
|
-
const {
|
|
974
|
-
classes: n
|
|
975
|
-
} = t;
|
|
976
|
-
return ue({
|
|
977
|
-
root: ["root"],
|
|
978
|
-
paper: ["paper"],
|
|
979
|
-
list: ["list"]
|
|
980
|
-
}, co, n);
|
|
981
|
-
}, po = W(Ne, {
|
|
982
|
-
shouldForwardProp: (t) => $e(t) || t === "classes",
|
|
983
|
-
name: "MuiMenu",
|
|
984
|
-
slot: "Root"
|
|
985
|
-
})({}), mo = W(Me, {
|
|
986
|
-
name: "MuiMenu",
|
|
987
|
-
slot: "Paper"
|
|
988
|
-
})({
|
|
989
|
-
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
990
|
-
// height. This ensures a tappable area outside of the simple menu with which to dismiss
|
|
991
|
-
// the menu.
|
|
992
|
-
maxHeight: "calc(100% - 96px)",
|
|
993
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
994
|
-
WebkitOverflowScrolling: "touch"
|
|
995
|
-
}), ho = W(Oe, {
|
|
996
|
-
name: "MuiMenu",
|
|
997
|
-
slot: "List"
|
|
998
|
-
})({
|
|
999
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1000
|
-
outline: 0
|
|
1001
|
-
}), Eo = /* @__PURE__ */ b.forwardRef(function(n, r) {
|
|
1002
|
-
const a = ce({
|
|
1003
|
-
props: n,
|
|
1004
|
-
name: "MuiMenu"
|
|
1005
|
-
}), {
|
|
1006
|
-
autoFocus: m = !0,
|
|
1007
|
-
children: u,
|
|
1008
|
-
className: c,
|
|
1009
|
-
disableAutoFocusItem: s = !1,
|
|
1010
|
-
MenuListProps: i = {},
|
|
1011
|
-
onClose: l,
|
|
1012
|
-
open: T,
|
|
1013
|
-
PaperProps: O = {},
|
|
1014
|
-
PopoverClasses: N,
|
|
1015
|
-
transitionDuration: p = "auto",
|
|
1016
|
-
TransitionProps: {
|
|
1017
|
-
onEntering: d,
|
|
1018
|
-
...o
|
|
1019
|
-
} = {},
|
|
1020
|
-
variant: w = "selectedMenu",
|
|
1021
|
-
slots: g = {},
|
|
1022
|
-
slotProps: I = {},
|
|
1023
|
-
...f
|
|
1024
|
-
} = a, R = De(), v = {
|
|
1025
|
-
...a,
|
|
1026
|
-
autoFocus: m,
|
|
1027
|
-
disableAutoFocusItem: s,
|
|
1028
|
-
MenuListProps: i,
|
|
1029
|
-
onEntering: d,
|
|
1030
|
-
PaperProps: O,
|
|
1031
|
-
transitionDuration: p,
|
|
1032
|
-
TransitionProps: o,
|
|
1033
|
-
variant: w
|
|
1034
|
-
}, L = fo(v), $ = m && !s && T, P = b.useRef(null), x = (C, A) => {
|
|
1035
|
-
P.current && P.current.adjustStyleForScrollbar(C, {
|
|
1036
|
-
direction: R ? "rtl" : "ltr"
|
|
1037
|
-
}), d && d(C, A);
|
|
1038
|
-
}, U = (C) => {
|
|
1039
|
-
C.key === "Tab" && (C.preventDefault(), l && l(C, "tabKeyDown"));
|
|
1040
|
-
};
|
|
1041
|
-
let k = -1;
|
|
1042
|
-
b.Children.map(u, (C, A) => {
|
|
1043
|
-
/* @__PURE__ */ b.isValidElement(C) && (process.env.NODE_ENV !== "production" && ve.isFragment(C) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1044
|
-
`)), C.props.disabled || (w === "selectedMenu" && C.props.selected || k === -1) && (k = A));
|
|
1045
|
-
});
|
|
1046
|
-
const Y = {
|
|
1047
|
-
slots: g,
|
|
1048
|
-
slotProps: {
|
|
1049
|
-
list: i,
|
|
1050
|
-
transition: o,
|
|
1051
|
-
paper: O,
|
|
1052
|
-
...I
|
|
1053
|
-
}
|
|
1054
|
-
}, J = Ze({
|
|
1055
|
-
elementType: g.root,
|
|
1056
|
-
externalSlotProps: I.root,
|
|
1057
|
-
ownerState: v,
|
|
1058
|
-
className: [L.root, c]
|
|
1059
|
-
}), [ee, Q] = X("paper", {
|
|
1060
|
-
className: L.paper,
|
|
1061
|
-
elementType: mo,
|
|
1062
|
-
externalForwardedProps: Y,
|
|
1063
|
-
shouldForwardComponentProp: !0,
|
|
1064
|
-
ownerState: v
|
|
1065
|
-
}), [S, oe] = X("list", {
|
|
1066
|
-
className: Z(L.list, i.className),
|
|
1067
|
-
elementType: ho,
|
|
1068
|
-
shouldForwardComponentProp: !0,
|
|
1069
|
-
externalForwardedProps: Y,
|
|
1070
|
-
getSlotProps: (C) => ({
|
|
1071
|
-
...C,
|
|
1072
|
-
onKeyDown: (A) => {
|
|
1073
|
-
var q;
|
|
1074
|
-
U(A), (q = C.onKeyDown) == null || q.call(C, A);
|
|
1075
|
-
}
|
|
1076
|
-
}),
|
|
1077
|
-
ownerState: v
|
|
1078
|
-
}), z = typeof Y.slotProps.transition == "function" ? Y.slotProps.transition(v) : Y.slotProps.transition;
|
|
1079
|
-
return /* @__PURE__ */ K(po, {
|
|
1080
|
-
onClose: l,
|
|
1081
|
-
anchorOrigin: {
|
|
1082
|
-
vertical: "bottom",
|
|
1083
|
-
horizontal: R ? "right" : "left"
|
|
1084
|
-
},
|
|
1085
|
-
transformOrigin: R ? uo : lo,
|
|
1086
|
-
slots: {
|
|
1087
|
-
root: g.root,
|
|
1088
|
-
paper: ee,
|
|
1089
|
-
backdrop: g.backdrop,
|
|
1090
|
-
...g.transition && {
|
|
1091
|
-
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
1092
|
-
transition: g.transition
|
|
1093
|
-
}
|
|
1094
|
-
},
|
|
1095
|
-
slotProps: {
|
|
1096
|
-
root: J,
|
|
1097
|
-
paper: Q,
|
|
1098
|
-
backdrop: typeof I.backdrop == "function" ? I.backdrop(v) : I.backdrop,
|
|
1099
|
-
transition: {
|
|
1100
|
-
...z,
|
|
1101
|
-
onEntering: (...C) => {
|
|
1102
|
-
var A;
|
|
1103
|
-
x(...C), (A = z == null ? void 0 : z.onEntering) == null || A.call(z, ...C);
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
},
|
|
1107
|
-
open: T,
|
|
1108
|
-
ref: r,
|
|
1109
|
-
transitionDuration: p,
|
|
1110
|
-
ownerState: v,
|
|
1111
|
-
...f,
|
|
1112
|
-
classes: N,
|
|
1113
|
-
children: /* @__PURE__ */ K(S, {
|
|
1114
|
-
actions: P,
|
|
1115
|
-
autoFocus: m && (k === -1 || s),
|
|
1116
|
-
autoFocusItem: $,
|
|
1117
|
-
variant: w,
|
|
1118
|
-
...oe,
|
|
1119
|
-
children: u
|
|
1120
|
-
})
|
|
1121
|
-
});
|
|
1122
|
-
});
|
|
1123
|
-
process.env.NODE_ENV !== "production" && (Eo.propTypes = {
|
|
1124
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1125
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1126
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1127
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1128
|
-
/**
|
|
1129
|
-
* An HTML element, or a function that returns one.
|
|
1130
|
-
* It's used to set the position of the menu.
|
|
1131
|
-
*/
|
|
1132
|
-
anchorEl: e.oneOfType([re, e.func]),
|
|
1133
|
-
/**
|
|
1134
|
-
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
1135
|
-
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
1136
|
-
* on the parent modal container. This has severe accessibility implications
|
|
1137
|
-
* and should only be considered if you manage focus otherwise.
|
|
1138
|
-
* @default true
|
|
1139
|
-
*/
|
|
1140
|
-
autoFocus: e.bool,
|
|
1141
|
-
/**
|
|
1142
|
-
* Menu contents, normally `MenuItem`s.
|
|
1143
|
-
*/
|
|
1144
|
-
children: e.node,
|
|
1145
|
-
/**
|
|
1146
|
-
* Override or extend the styles applied to the component.
|
|
1147
|
-
*/
|
|
1148
|
-
classes: e.object,
|
|
1149
|
-
/**
|
|
1150
|
-
* @ignore
|
|
1151
|
-
*/
|
|
1152
|
-
className: e.string,
|
|
1153
|
-
/**
|
|
1154
|
-
* When opening the menu will not focus the active item but the `[role="menu"]`
|
|
1155
|
-
* unless `autoFocus` is also set to `false`. Not using the default means not
|
|
1156
|
-
* following WAI-ARIA authoring practices. Please be considerate about possible
|
|
1157
|
-
* accessibility implications.
|
|
1158
|
-
* @default false
|
|
1159
|
-
*/
|
|
1160
|
-
disableAutoFocusItem: e.bool,
|
|
1161
|
-
/**
|
|
1162
|
-
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
1163
|
-
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1164
|
-
* @default {}
|
|
1165
|
-
*/
|
|
1166
|
-
MenuListProps: e.object,
|
|
1167
|
-
/**
|
|
1168
|
-
* Callback fired when the component requests to be closed.
|
|
1169
|
-
*
|
|
1170
|
-
* @param {object} event The event source of the callback.
|
|
1171
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
|
|
1172
|
-
*/
|
|
1173
|
-
onClose: e.func,
|
|
1174
|
-
/**
|
|
1175
|
-
* If `true`, the component is shown.
|
|
1176
|
-
*/
|
|
1177
|
-
open: e.bool.isRequired,
|
|
1178
|
-
/**
|
|
1179
|
-
* @ignore
|
|
1180
|
-
*/
|
|
1181
|
-
PaperProps: e.object,
|
|
1182
|
-
/**
|
|
1183
|
-
* `classes` prop applied to the [`Popover`](https://mui.com/material-ui/api/popover/) element.
|
|
1184
|
-
*/
|
|
1185
|
-
PopoverClasses: e.object,
|
|
1186
|
-
/**
|
|
1187
|
-
* The props used for each slot inside.
|
|
1188
|
-
* @default {}
|
|
1189
|
-
*/
|
|
1190
|
-
slotProps: e.shape({
|
|
1191
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
1192
|
-
list: e.oneOfType([e.func, e.object]),
|
|
1193
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
1194
|
-
root: e.oneOfType([e.func, e.object]),
|
|
1195
|
-
transition: e.oneOfType([e.func, e.object])
|
|
1196
|
-
}),
|
|
1197
|
-
/**
|
|
1198
|
-
* The components used for each slot inside.
|
|
1199
|
-
* @default {}
|
|
1200
|
-
*/
|
|
1201
|
-
slots: e.shape({
|
|
1202
|
-
backdrop: e.elementType,
|
|
1203
|
-
list: e.elementType,
|
|
1204
|
-
paper: e.elementType,
|
|
1205
|
-
root: e.elementType,
|
|
1206
|
-
transition: e.elementType
|
|
1207
|
-
}),
|
|
1208
|
-
/**
|
|
1209
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1210
|
-
*/
|
|
1211
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1212
|
-
/**
|
|
1213
|
-
* The length of the transition in `ms`, or 'auto'
|
|
1214
|
-
* @default 'auto'
|
|
1215
|
-
*/
|
|
1216
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
1217
|
-
appear: e.number,
|
|
1218
|
-
enter: e.number,
|
|
1219
|
-
exit: e.number
|
|
1220
|
-
})]),
|
|
1221
|
-
/**
|
|
1222
|
-
* Props applied to the transition element.
|
|
1223
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
1224
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1225
|
-
* @default {}
|
|
1226
|
-
*/
|
|
1227
|
-
TransitionProps: e.object,
|
|
1228
|
-
/**
|
|
1229
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus.
|
|
1230
|
-
* @default 'selectedMenu'
|
|
1231
|
-
*/
|
|
1232
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
1233
|
-
});
|
|
1234
|
-
export {
|
|
1235
|
-
Pe as L,
|
|
1236
|
-
Eo as M,
|
|
1237
|
-
Qe as m,
|
|
1238
|
-
ve as r
|
|
1239
|
-
};
|