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
|
@@ -1,870 +0,0 @@
|
|
|
1
|
-
var we = Object.defineProperty;
|
|
2
|
-
var Be = (o, t, n) => t in o ? we(o, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[t] = n;
|
|
3
|
-
var re = (o, t, n) => Be(o, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import * as d from "react";
|
|
5
|
-
import W, { Children as Le, isValidElement as H, cloneElement as G } from "react";
|
|
6
|
-
import { P as e, g as ve } from "./createTheme-CD19zQB7.js";
|
|
7
|
-
import { _ as ke, c as C } from "./clsx-BTaloaeC.js";
|
|
8
|
-
import { jsx as I, jsxs as Oe } from "react/jsx-runtime";
|
|
9
|
-
import { g as ce } from "./generateUtilityClasses-BRiE4Guh.js";
|
|
10
|
-
import { k as te } from "./emotion-react.browser.esm-BIrDfk-B.js";
|
|
11
|
-
import { s as ne, u as pe, c as je } from "./DefaultPropsProvider-oAu9El-f.js";
|
|
12
|
-
import { b as Fe, u as $e, a as J, r as Ie } from "./refType-BsTH3qnM.js";
|
|
13
|
-
import { _ as Ue, a as ze, T as ae, u as le } from "./TransitionGroupContext-CYRQkQ6k.js";
|
|
14
|
-
import { i as ue } from "./isFocusVisible-CPZqtjv2.js";
|
|
15
|
-
import { e as _e } from "./elementTypeAcceptingRef-BdsMpCbS.js";
|
|
16
|
-
function Xe(o) {
|
|
17
|
-
if (o === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
18
|
-
return o;
|
|
19
|
-
}
|
|
20
|
-
function oe(o, t) {
|
|
21
|
-
var n = function(s) {
|
|
22
|
-
return t && H(s) ? t(s) : s;
|
|
23
|
-
}, l = /* @__PURE__ */ Object.create(null);
|
|
24
|
-
return o && Le.map(o, function(i) {
|
|
25
|
-
return i;
|
|
26
|
-
}).forEach(function(i) {
|
|
27
|
-
l[i.key] = n(i);
|
|
28
|
-
}), l;
|
|
29
|
-
}
|
|
30
|
-
function Ye(o, t) {
|
|
31
|
-
o = o || {}, t = t || {};
|
|
32
|
-
function n(h) {
|
|
33
|
-
return h in t ? t[h] : o[h];
|
|
34
|
-
}
|
|
35
|
-
var l = /* @__PURE__ */ Object.create(null), i = [];
|
|
36
|
-
for (var s in o)
|
|
37
|
-
s in t ? i.length && (l[s] = i, i = []) : i.push(s);
|
|
38
|
-
var r, p = {};
|
|
39
|
-
for (var u in t) {
|
|
40
|
-
if (l[u])
|
|
41
|
-
for (r = 0; r < l[u].length; r++) {
|
|
42
|
-
var f = l[u][r];
|
|
43
|
-
p[l[u][r]] = n(f);
|
|
44
|
-
}
|
|
45
|
-
p[u] = n(u);
|
|
46
|
-
}
|
|
47
|
-
for (r = 0; r < i.length; r++)
|
|
48
|
-
p[i[r]] = n(i[r]);
|
|
49
|
-
return p;
|
|
50
|
-
}
|
|
51
|
-
function O(o, t, n) {
|
|
52
|
-
return n[t] != null ? n[t] : o.props[t];
|
|
53
|
-
}
|
|
54
|
-
function Ae(o, t) {
|
|
55
|
-
return oe(o.children, function(n) {
|
|
56
|
-
return G(n, {
|
|
57
|
-
onExited: t.bind(null, n),
|
|
58
|
-
in: !0,
|
|
59
|
-
appear: O(n, "appear", o),
|
|
60
|
-
enter: O(n, "enter", o),
|
|
61
|
-
exit: O(n, "exit", o)
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function Ke(o, t, n) {
|
|
66
|
-
var l = oe(o.children), i = Ye(t, l);
|
|
67
|
-
return Object.keys(i).forEach(function(s) {
|
|
68
|
-
var r = i[s];
|
|
69
|
-
if (H(r)) {
|
|
70
|
-
var p = s in t, u = s in l, f = t[s], h = H(f) && !f.props.in;
|
|
71
|
-
u && (!p || h) ? i[s] = G(r, {
|
|
72
|
-
onExited: n.bind(null, r),
|
|
73
|
-
in: !0,
|
|
74
|
-
exit: O(r, "exit", o),
|
|
75
|
-
enter: O(r, "enter", o)
|
|
76
|
-
}) : !u && p && !h ? i[s] = G(r, {
|
|
77
|
-
in: !1
|
|
78
|
-
}) : u && p && H(f) && (i[s] = G(r, {
|
|
79
|
-
onExited: n.bind(null, r),
|
|
80
|
-
in: f.props.in,
|
|
81
|
-
exit: O(r, "exit", o),
|
|
82
|
-
enter: O(r, "enter", o)
|
|
83
|
-
}));
|
|
84
|
-
}
|
|
85
|
-
}), i;
|
|
86
|
-
}
|
|
87
|
-
var qe = Object.values || function(o) {
|
|
88
|
-
return Object.keys(o).map(function(t) {
|
|
89
|
-
return o[t];
|
|
90
|
-
});
|
|
91
|
-
}, We = {
|
|
92
|
-
component: "div",
|
|
93
|
-
childFactory: function(t) {
|
|
94
|
-
return t;
|
|
95
|
-
}
|
|
96
|
-
}, ie = /* @__PURE__ */ function(o) {
|
|
97
|
-
Ue(t, o);
|
|
98
|
-
function t(l, i) {
|
|
99
|
-
var s;
|
|
100
|
-
s = o.call(this, l, i) || this;
|
|
101
|
-
var r = s.handleExited.bind(Xe(s));
|
|
102
|
-
return s.state = {
|
|
103
|
-
contextValue: {
|
|
104
|
-
isMounting: !0
|
|
105
|
-
},
|
|
106
|
-
handleExited: r,
|
|
107
|
-
firstRender: !0
|
|
108
|
-
}, s;
|
|
109
|
-
}
|
|
110
|
-
var n = t.prototype;
|
|
111
|
-
return n.componentDidMount = function() {
|
|
112
|
-
this.mounted = !0, this.setState({
|
|
113
|
-
contextValue: {
|
|
114
|
-
isMounting: !1
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}, n.componentWillUnmount = function() {
|
|
118
|
-
this.mounted = !1;
|
|
119
|
-
}, t.getDerivedStateFromProps = function(i, s) {
|
|
120
|
-
var r = s.children, p = s.handleExited, u = s.firstRender;
|
|
121
|
-
return {
|
|
122
|
-
children: u ? Ae(i, p) : Ke(i, r, p),
|
|
123
|
-
firstRender: !1
|
|
124
|
-
};
|
|
125
|
-
}, n.handleExited = function(i, s) {
|
|
126
|
-
var r = oe(this.props.children);
|
|
127
|
-
i.key in r || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(p) {
|
|
128
|
-
var u = ke({}, p.children);
|
|
129
|
-
return delete u[i.key], {
|
|
130
|
-
children: u
|
|
131
|
-
};
|
|
132
|
-
}));
|
|
133
|
-
}, n.render = function() {
|
|
134
|
-
var i = this.props, s = i.component, r = i.childFactory, p = ze(i, ["component", "childFactory"]), u = this.state.contextValue, f = qe(this.state.children).map(r);
|
|
135
|
-
return delete p.appear, delete p.enter, delete p.exit, s === null ? /* @__PURE__ */ W.createElement(ae.Provider, {
|
|
136
|
-
value: u
|
|
137
|
-
}, f) : /* @__PURE__ */ W.createElement(ae.Provider, {
|
|
138
|
-
value: u
|
|
139
|
-
}, /* @__PURE__ */ W.createElement(s, p, f));
|
|
140
|
-
}, t;
|
|
141
|
-
}(W.Component);
|
|
142
|
-
ie.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
143
|
-
/**
|
|
144
|
-
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
145
|
-
* behavior by providing a `component` prop.
|
|
146
|
-
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
147
|
-
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
148
|
-
* borks your css styles.
|
|
149
|
-
*/
|
|
150
|
-
component: e.any,
|
|
151
|
-
/**
|
|
152
|
-
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
153
|
-
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
154
|
-
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
155
|
-
* with our `<Fade>` example.
|
|
156
|
-
*
|
|
157
|
-
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
158
|
-
* children, sometimes you may want to have a single transition child with
|
|
159
|
-
* content that you want to be transitioned out and in when you change it
|
|
160
|
-
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
161
|
-
* the transition child as you change its content, this will cause
|
|
162
|
-
* `TransitionGroup` to transition the child out and back in.
|
|
163
|
-
*/
|
|
164
|
-
children: e.node,
|
|
165
|
-
/**
|
|
166
|
-
* A convenience prop that enables or disables appear animations
|
|
167
|
-
* for all children. Note that specifying this will override any defaults set
|
|
168
|
-
* on individual children Transitions.
|
|
169
|
-
*/
|
|
170
|
-
appear: e.bool,
|
|
171
|
-
/**
|
|
172
|
-
* A convenience prop that enables or disables enter animations
|
|
173
|
-
* for all children. Note that specifying this will override any defaults set
|
|
174
|
-
* on individual children Transitions.
|
|
175
|
-
*/
|
|
176
|
-
enter: e.bool,
|
|
177
|
-
/**
|
|
178
|
-
* A convenience prop that enables or disables exit animations
|
|
179
|
-
* for all children. Note that specifying this will override any defaults set
|
|
180
|
-
* on individual children Transitions.
|
|
181
|
-
*/
|
|
182
|
-
exit: e.bool,
|
|
183
|
-
/**
|
|
184
|
-
* You may need to apply reactive updates to a child as it is exiting.
|
|
185
|
-
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
186
|
-
* child the element has already been removed and not accessible to the consumer.
|
|
187
|
-
*
|
|
188
|
-
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
189
|
-
* to wrap every child, even the ones that are leaving.
|
|
190
|
-
*
|
|
191
|
-
* @type Function(child: ReactElement) -> ReactElement
|
|
192
|
-
*/
|
|
193
|
-
childFactory: e.func
|
|
194
|
-
} : {};
|
|
195
|
-
ie.defaultProps = We;
|
|
196
|
-
class Q {
|
|
197
|
-
constructor() {
|
|
198
|
-
re(this, "mountEffect", () => {
|
|
199
|
-
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
200
|
-
});
|
|
201
|
-
this.ref = {
|
|
202
|
-
current: null
|
|
203
|
-
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
204
|
-
}
|
|
205
|
-
/** React ref to the ripple instance */
|
|
206
|
-
/** If the ripple component should be mounted */
|
|
207
|
-
/** Promise that resolves when the ripple component is mounted */
|
|
208
|
-
/** If the ripple component has been mounted */
|
|
209
|
-
/** React state hook setter */
|
|
210
|
-
static create() {
|
|
211
|
-
return new Q();
|
|
212
|
-
}
|
|
213
|
-
static use() {
|
|
214
|
-
const t = Fe(Q.create).current, [n, l] = d.useState(!1);
|
|
215
|
-
return t.shouldMount = n, t.setShouldMount = l, d.useEffect(t.mountEffect, [n]), t;
|
|
216
|
-
}
|
|
217
|
-
mount() {
|
|
218
|
-
return this.mounted || (this.mounted = Ge(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
219
|
-
}
|
|
220
|
-
/* Ripple API */
|
|
221
|
-
start(...t) {
|
|
222
|
-
this.mount().then(() => {
|
|
223
|
-
var n;
|
|
224
|
-
return (n = this.ref.current) == null ? void 0 : n.start(...t);
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
stop(...t) {
|
|
228
|
-
this.mount().then(() => {
|
|
229
|
-
var n;
|
|
230
|
-
return (n = this.ref.current) == null ? void 0 : n.stop(...t);
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
pulsate(...t) {
|
|
234
|
-
this.mount().then(() => {
|
|
235
|
-
var n;
|
|
236
|
-
return (n = this.ref.current) == null ? void 0 : n.pulsate(...t);
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
function He() {
|
|
241
|
-
return Q.use();
|
|
242
|
-
}
|
|
243
|
-
function Ge() {
|
|
244
|
-
let o, t;
|
|
245
|
-
const n = new Promise((l, i) => {
|
|
246
|
-
o = l, t = i;
|
|
247
|
-
});
|
|
248
|
-
return n.resolve = o, n.reject = t, n;
|
|
249
|
-
}
|
|
250
|
-
function fe(o) {
|
|
251
|
-
const {
|
|
252
|
-
className: t,
|
|
253
|
-
classes: n,
|
|
254
|
-
pulsate: l = !1,
|
|
255
|
-
rippleX: i,
|
|
256
|
-
rippleY: s,
|
|
257
|
-
rippleSize: r,
|
|
258
|
-
in: p,
|
|
259
|
-
onExited: u,
|
|
260
|
-
timeout: f
|
|
261
|
-
} = o, [h, m] = d.useState(!1), R = C(t, n.ripple, n.rippleVisible, l && n.ripplePulsate), D = {
|
|
262
|
-
width: r,
|
|
263
|
-
height: r,
|
|
264
|
-
top: -(r / 2) + s,
|
|
265
|
-
left: -(r / 2) + i
|
|
266
|
-
}, g = C(n.child, h && n.childLeaving, l && n.childPulsate);
|
|
267
|
-
return !p && !h && m(!0), d.useEffect(() => {
|
|
268
|
-
if (!p && u != null) {
|
|
269
|
-
const B = setTimeout(u, f);
|
|
270
|
-
return () => {
|
|
271
|
-
clearTimeout(B);
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
}, [u, p, f]), /* @__PURE__ */ I("span", {
|
|
275
|
-
className: R,
|
|
276
|
-
style: D,
|
|
277
|
-
children: /* @__PURE__ */ I("span", {
|
|
278
|
-
className: g
|
|
279
|
-
})
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
process.env.NODE_ENV !== "production" && (fe.propTypes = {
|
|
283
|
-
/**
|
|
284
|
-
* Override or extend the styles applied to the component.
|
|
285
|
-
*/
|
|
286
|
-
classes: e.object.isRequired,
|
|
287
|
-
className: e.string,
|
|
288
|
-
/**
|
|
289
|
-
* @ignore - injected from TransitionGroup
|
|
290
|
-
*/
|
|
291
|
-
in: e.bool,
|
|
292
|
-
/**
|
|
293
|
-
* @ignore - injected from TransitionGroup
|
|
294
|
-
*/
|
|
295
|
-
onExited: e.func,
|
|
296
|
-
/**
|
|
297
|
-
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
298
|
-
*/
|
|
299
|
-
pulsate: e.bool,
|
|
300
|
-
/**
|
|
301
|
-
* Diameter of the ripple.
|
|
302
|
-
*/
|
|
303
|
-
rippleSize: e.number,
|
|
304
|
-
/**
|
|
305
|
-
* Horizontal position of the ripple center.
|
|
306
|
-
*/
|
|
307
|
-
rippleX: e.number,
|
|
308
|
-
/**
|
|
309
|
-
* Vertical position of the ripple center.
|
|
310
|
-
*/
|
|
311
|
-
rippleY: e.number,
|
|
312
|
-
/**
|
|
313
|
-
* exit delay
|
|
314
|
-
*/
|
|
315
|
-
timeout: e.number.isRequired
|
|
316
|
-
});
|
|
317
|
-
const M = ce("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), ee = 550, Je = 80, Qe = te`
|
|
318
|
-
0% {
|
|
319
|
-
transform: scale(0);
|
|
320
|
-
opacity: 0.1;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
100% {
|
|
324
|
-
transform: scale(1);
|
|
325
|
-
opacity: 0.3;
|
|
326
|
-
}
|
|
327
|
-
`, Ze = te`
|
|
328
|
-
0% {
|
|
329
|
-
opacity: 1;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
100% {
|
|
333
|
-
opacity: 0;
|
|
334
|
-
}
|
|
335
|
-
`, et = te`
|
|
336
|
-
0% {
|
|
337
|
-
transform: scale(1);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
50% {
|
|
341
|
-
transform: scale(0.92);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
100% {
|
|
345
|
-
transform: scale(1);
|
|
346
|
-
}
|
|
347
|
-
`, tt = ne("span", {
|
|
348
|
-
name: "MuiTouchRipple",
|
|
349
|
-
slot: "Root"
|
|
350
|
-
})({
|
|
351
|
-
overflow: "hidden",
|
|
352
|
-
pointerEvents: "none",
|
|
353
|
-
position: "absolute",
|
|
354
|
-
zIndex: 0,
|
|
355
|
-
top: 0,
|
|
356
|
-
right: 0,
|
|
357
|
-
bottom: 0,
|
|
358
|
-
left: 0,
|
|
359
|
-
borderRadius: "inherit"
|
|
360
|
-
}), nt = ne(fe, {
|
|
361
|
-
name: "MuiTouchRipple",
|
|
362
|
-
slot: "Ripple"
|
|
363
|
-
})`
|
|
364
|
-
opacity: 0;
|
|
365
|
-
position: absolute;
|
|
366
|
-
|
|
367
|
-
&.${M.rippleVisible} {
|
|
368
|
-
opacity: 0.3;
|
|
369
|
-
transform: scale(1);
|
|
370
|
-
animation-name: ${Qe};
|
|
371
|
-
animation-duration: ${ee}ms;
|
|
372
|
-
animation-timing-function: ${({
|
|
373
|
-
theme: o
|
|
374
|
-
}) => o.transitions.easing.easeInOut};
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
&.${M.ripplePulsate} {
|
|
378
|
-
animation-duration: ${({
|
|
379
|
-
theme: o
|
|
380
|
-
}) => o.transitions.duration.shorter}ms;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
& .${M.child} {
|
|
384
|
-
opacity: 1;
|
|
385
|
-
display: block;
|
|
386
|
-
width: 100%;
|
|
387
|
-
height: 100%;
|
|
388
|
-
border-radius: 50%;
|
|
389
|
-
background-color: currentColor;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
& .${M.childLeaving} {
|
|
393
|
-
opacity: 0;
|
|
394
|
-
animation-name: ${Ze};
|
|
395
|
-
animation-duration: ${ee}ms;
|
|
396
|
-
animation-timing-function: ${({
|
|
397
|
-
theme: o
|
|
398
|
-
}) => o.transitions.easing.easeInOut};
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
& .${M.childPulsate} {
|
|
402
|
-
position: absolute;
|
|
403
|
-
/* @noflip */
|
|
404
|
-
left: 0px;
|
|
405
|
-
top: 0;
|
|
406
|
-
animation-name: ${et};
|
|
407
|
-
animation-duration: 2500ms;
|
|
408
|
-
animation-timing-function: ${({
|
|
409
|
-
theme: o
|
|
410
|
-
}) => o.transitions.easing.easeInOut};
|
|
411
|
-
animation-iteration-count: infinite;
|
|
412
|
-
animation-delay: 200ms;
|
|
413
|
-
}
|
|
414
|
-
`, de = /* @__PURE__ */ d.forwardRef(function(t, n) {
|
|
415
|
-
const l = pe({
|
|
416
|
-
props: t,
|
|
417
|
-
name: "MuiTouchRipple"
|
|
418
|
-
}), {
|
|
419
|
-
center: i = !1,
|
|
420
|
-
classes: s = {},
|
|
421
|
-
className: r,
|
|
422
|
-
...p
|
|
423
|
-
} = l, [u, f] = d.useState([]), h = d.useRef(0), m = d.useRef(null);
|
|
424
|
-
d.useEffect(() => {
|
|
425
|
-
m.current && (m.current(), m.current = null);
|
|
426
|
-
}, [u]);
|
|
427
|
-
const R = d.useRef(!1), D = $e(), g = d.useRef(null), B = d.useRef(null), x = d.useCallback((c) => {
|
|
428
|
-
const {
|
|
429
|
-
pulsate: T,
|
|
430
|
-
rippleX: y,
|
|
431
|
-
rippleY: $,
|
|
432
|
-
rippleSize: L,
|
|
433
|
-
cb: U
|
|
434
|
-
} = c;
|
|
435
|
-
f((E) => [...E, /* @__PURE__ */ I(nt, {
|
|
436
|
-
classes: {
|
|
437
|
-
ripple: C(s.ripple, M.ripple),
|
|
438
|
-
rippleVisible: C(s.rippleVisible, M.rippleVisible),
|
|
439
|
-
ripplePulsate: C(s.ripplePulsate, M.ripplePulsate),
|
|
440
|
-
child: C(s.child, M.child),
|
|
441
|
-
childLeaving: C(s.childLeaving, M.childLeaving),
|
|
442
|
-
childPulsate: C(s.childPulsate, M.childPulsate)
|
|
443
|
-
},
|
|
444
|
-
timeout: ee,
|
|
445
|
-
pulsate: T,
|
|
446
|
-
rippleX: y,
|
|
447
|
-
rippleY: $,
|
|
448
|
-
rippleSize: L
|
|
449
|
-
}, h.current)]), h.current += 1, m.current = U;
|
|
450
|
-
}, [s]), j = d.useCallback((c = {}, T = {}, y = () => {
|
|
451
|
-
}) => {
|
|
452
|
-
const {
|
|
453
|
-
pulsate: $ = !1,
|
|
454
|
-
center: L = i || T.pulsate,
|
|
455
|
-
fakeElement: U = !1
|
|
456
|
-
// For test purposes
|
|
457
|
-
} = T;
|
|
458
|
-
if ((c == null ? void 0 : c.type) === "mousedown" && R.current) {
|
|
459
|
-
R.current = !1;
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
(c == null ? void 0 : c.type) === "touchstart" && (R.current = !0);
|
|
463
|
-
const E = U ? null : B.current, V = E ? E.getBoundingClientRect() : {
|
|
464
|
-
width: 0,
|
|
465
|
-
height: 0,
|
|
466
|
-
left: 0,
|
|
467
|
-
top: 0
|
|
468
|
-
};
|
|
469
|
-
let S, P, w;
|
|
470
|
-
if (L || c === void 0 || c.clientX === 0 && c.clientY === 0 || !c.clientX && !c.touches)
|
|
471
|
-
S = Math.round(V.width / 2), P = Math.round(V.height / 2);
|
|
472
|
-
else {
|
|
473
|
-
const {
|
|
474
|
-
clientX: z,
|
|
475
|
-
clientY: v
|
|
476
|
-
} = c.touches && c.touches.length > 0 ? c.touches[0] : c;
|
|
477
|
-
S = Math.round(z - V.left), P = Math.round(v - V.top);
|
|
478
|
-
}
|
|
479
|
-
if (L)
|
|
480
|
-
w = Math.sqrt((2 * V.width ** 2 + V.height ** 2) / 3), w % 2 === 0 && (w += 1);
|
|
481
|
-
else {
|
|
482
|
-
const z = Math.max(Math.abs((E ? E.clientWidth : 0) - S), S) * 2 + 2, v = Math.max(Math.abs((E ? E.clientHeight : 0) - P), P) * 2 + 2;
|
|
483
|
-
w = Math.sqrt(z ** 2 + v ** 2);
|
|
484
|
-
}
|
|
485
|
-
c != null && c.touches ? g.current === null && (g.current = () => {
|
|
486
|
-
x({
|
|
487
|
-
pulsate: $,
|
|
488
|
-
rippleX: S,
|
|
489
|
-
rippleY: P,
|
|
490
|
-
rippleSize: w,
|
|
491
|
-
cb: y
|
|
492
|
-
});
|
|
493
|
-
}, D.start(Je, () => {
|
|
494
|
-
g.current && (g.current(), g.current = null);
|
|
495
|
-
})) : x({
|
|
496
|
-
pulsate: $,
|
|
497
|
-
rippleX: S,
|
|
498
|
-
rippleY: P,
|
|
499
|
-
rippleSize: w,
|
|
500
|
-
cb: y
|
|
501
|
-
});
|
|
502
|
-
}, [i, x, D]), A = d.useCallback(() => {
|
|
503
|
-
j({}, {
|
|
504
|
-
pulsate: !0
|
|
505
|
-
});
|
|
506
|
-
}, [j]), F = d.useCallback((c, T) => {
|
|
507
|
-
if (D.clear(), (c == null ? void 0 : c.type) === "touchend" && g.current) {
|
|
508
|
-
g.current(), g.current = null, D.start(0, () => {
|
|
509
|
-
F(c, T);
|
|
510
|
-
});
|
|
511
|
-
return;
|
|
512
|
-
}
|
|
513
|
-
g.current = null, f((y) => y.length > 0 ? y.slice(1) : y), m.current = T;
|
|
514
|
-
}, [D]);
|
|
515
|
-
return d.useImperativeHandle(n, () => ({
|
|
516
|
-
pulsate: A,
|
|
517
|
-
start: j,
|
|
518
|
-
stop: F
|
|
519
|
-
}), [A, j, F]), /* @__PURE__ */ I(tt, {
|
|
520
|
-
className: C(M.root, s.root, r),
|
|
521
|
-
ref: B,
|
|
522
|
-
...p,
|
|
523
|
-
children: /* @__PURE__ */ I(ie, {
|
|
524
|
-
component: null,
|
|
525
|
-
exit: !0,
|
|
526
|
-
children: u
|
|
527
|
-
})
|
|
528
|
-
});
|
|
529
|
-
});
|
|
530
|
-
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
531
|
-
/**
|
|
532
|
-
* If `true`, the ripple starts at the center of the component
|
|
533
|
-
* rather than at the point of interaction.
|
|
534
|
-
*/
|
|
535
|
-
center: e.bool,
|
|
536
|
-
/**
|
|
537
|
-
* Override or extend the styles applied to the component.
|
|
538
|
-
*/
|
|
539
|
-
classes: e.object,
|
|
540
|
-
/**
|
|
541
|
-
* @ignore
|
|
542
|
-
*/
|
|
543
|
-
className: e.string
|
|
544
|
-
});
|
|
545
|
-
function ot(o) {
|
|
546
|
-
return ve("MuiButtonBase", o);
|
|
547
|
-
}
|
|
548
|
-
const it = ce("MuiButtonBase", ["root", "disabled", "focusVisible"]), st = (o) => {
|
|
549
|
-
const {
|
|
550
|
-
disabled: t,
|
|
551
|
-
focusVisible: n,
|
|
552
|
-
focusVisibleClassName: l,
|
|
553
|
-
classes: i
|
|
554
|
-
} = o, r = je({
|
|
555
|
-
root: ["root", t && "disabled", n && "focusVisible"]
|
|
556
|
-
}, ot, i);
|
|
557
|
-
return n && l && (r.root += ` ${l}`), r;
|
|
558
|
-
}, rt = ne("button", {
|
|
559
|
-
name: "MuiButtonBase",
|
|
560
|
-
slot: "Root"
|
|
561
|
-
})({
|
|
562
|
-
display: "inline-flex",
|
|
563
|
-
alignItems: "center",
|
|
564
|
-
justifyContent: "center",
|
|
565
|
-
position: "relative",
|
|
566
|
-
boxSizing: "border-box",
|
|
567
|
-
WebkitTapHighlightColor: "transparent",
|
|
568
|
-
backgroundColor: "transparent",
|
|
569
|
-
// Reset default value
|
|
570
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
571
|
-
outline: 0,
|
|
572
|
-
border: 0,
|
|
573
|
-
margin: 0,
|
|
574
|
-
// Remove the margin in Safari
|
|
575
|
-
borderRadius: 0,
|
|
576
|
-
padding: 0,
|
|
577
|
-
// Remove the padding in Firefox
|
|
578
|
-
cursor: "pointer",
|
|
579
|
-
userSelect: "none",
|
|
580
|
-
verticalAlign: "middle",
|
|
581
|
-
MozAppearance: "none",
|
|
582
|
-
// Reset
|
|
583
|
-
WebkitAppearance: "none",
|
|
584
|
-
// Reset
|
|
585
|
-
textDecoration: "none",
|
|
586
|
-
// So we take precedent over the style of a native <a /> element.
|
|
587
|
-
color: "inherit",
|
|
588
|
-
"&::-moz-focus-inner": {
|
|
589
|
-
borderStyle: "none"
|
|
590
|
-
// Remove Firefox dotted outline.
|
|
591
|
-
},
|
|
592
|
-
[`&.${it.disabled}`]: {
|
|
593
|
-
pointerEvents: "none",
|
|
594
|
-
// Disable link interactions
|
|
595
|
-
cursor: "default"
|
|
596
|
-
},
|
|
597
|
-
"@media print": {
|
|
598
|
-
colorAdjust: "exact"
|
|
599
|
-
}
|
|
600
|
-
}), at = /* @__PURE__ */ d.forwardRef(function(t, n) {
|
|
601
|
-
const l = pe({
|
|
602
|
-
props: t,
|
|
603
|
-
name: "MuiButtonBase"
|
|
604
|
-
}), {
|
|
605
|
-
action: i,
|
|
606
|
-
centerRipple: s = !1,
|
|
607
|
-
children: r,
|
|
608
|
-
className: p,
|
|
609
|
-
component: u = "button",
|
|
610
|
-
disabled: f = !1,
|
|
611
|
-
disableRipple: h = !1,
|
|
612
|
-
disableTouchRipple: m = !1,
|
|
613
|
-
focusRipple: R = !1,
|
|
614
|
-
focusVisibleClassName: D,
|
|
615
|
-
LinkComponent: g = "a",
|
|
616
|
-
onBlur: B,
|
|
617
|
-
onClick: x,
|
|
618
|
-
onContextMenu: j,
|
|
619
|
-
onDragLeave: A,
|
|
620
|
-
onFocus: F,
|
|
621
|
-
onFocusVisible: c,
|
|
622
|
-
onKeyDown: T,
|
|
623
|
-
onKeyUp: y,
|
|
624
|
-
onMouseDown: $,
|
|
625
|
-
onMouseLeave: L,
|
|
626
|
-
onMouseUp: U,
|
|
627
|
-
onTouchEnd: E,
|
|
628
|
-
onTouchMove: V,
|
|
629
|
-
onTouchStart: S,
|
|
630
|
-
tabIndex: P = 0,
|
|
631
|
-
TouchRippleProps: w,
|
|
632
|
-
touchRippleRef: z,
|
|
633
|
-
type: v,
|
|
634
|
-
..._
|
|
635
|
-
} = l, X = d.useRef(null), b = He(), he = le(b.ref, z), [k, K] = d.useState(!1);
|
|
636
|
-
f && k && K(!1), d.useImperativeHandle(i, () => ({
|
|
637
|
-
focusVisible: () => {
|
|
638
|
-
K(!0), X.current.focus();
|
|
639
|
-
}
|
|
640
|
-
}), []);
|
|
641
|
-
const me = b.shouldMount && !h && !f;
|
|
642
|
-
d.useEffect(() => {
|
|
643
|
-
k && R && !h && b.pulsate();
|
|
644
|
-
}, [h, R, k, b]);
|
|
645
|
-
const be = N(b, "start", $, m), ge = N(b, "stop", j, m), Me = N(b, "stop", A, m), Re = N(b, "stop", U, m), ye = N(b, "stop", (a) => {
|
|
646
|
-
k && a.preventDefault(), L && L(a);
|
|
647
|
-
}, m), Te = N(b, "start", S, m), Ee = N(b, "stop", E, m), Ce = N(b, "stop", V, m), xe = N(b, "stop", (a) => {
|
|
648
|
-
ue(a.target) || K(!1), B && B(a);
|
|
649
|
-
}, !1), Pe = J((a) => {
|
|
650
|
-
X.current || (X.current = a.currentTarget), ue(a.target) && (K(!0), c && c(a)), F && F(a);
|
|
651
|
-
}), Z = () => {
|
|
652
|
-
const a = X.current;
|
|
653
|
-
return u && u !== "button" && !(a.tagName === "A" && a.href);
|
|
654
|
-
}, Ne = J((a) => {
|
|
655
|
-
R && !a.repeat && k && a.key === " " && b.stop(a, () => {
|
|
656
|
-
b.start(a);
|
|
657
|
-
}), a.target === a.currentTarget && Z() && a.key === " " && a.preventDefault(), T && T(a), a.target === a.currentTarget && Z() && a.key === "Enter" && !f && (a.preventDefault(), x && x(a));
|
|
658
|
-
}), De = J((a) => {
|
|
659
|
-
R && a.key === " " && k && !a.defaultPrevented && b.stop(a, () => {
|
|
660
|
-
b.pulsate(a);
|
|
661
|
-
}), y && y(a), x && a.target === a.currentTarget && Z() && a.key === " " && !a.defaultPrevented && x(a);
|
|
662
|
-
});
|
|
663
|
-
let q = u;
|
|
664
|
-
q === "button" && (_.href || _.to) && (q = g);
|
|
665
|
-
const Y = {};
|
|
666
|
-
q === "button" ? (Y.type = v === void 0 ? "button" : v, Y.disabled = f) : (!_.href && !_.to && (Y.role = "button"), f && (Y["aria-disabled"] = f));
|
|
667
|
-
const Ve = le(n, X), se = {
|
|
668
|
-
...l,
|
|
669
|
-
centerRipple: s,
|
|
670
|
-
component: u,
|
|
671
|
-
disabled: f,
|
|
672
|
-
disableRipple: h,
|
|
673
|
-
disableTouchRipple: m,
|
|
674
|
-
focusRipple: R,
|
|
675
|
-
tabIndex: P,
|
|
676
|
-
focusVisible: k
|
|
677
|
-
}, Se = st(se);
|
|
678
|
-
return /* @__PURE__ */ Oe(rt, {
|
|
679
|
-
as: q,
|
|
680
|
-
className: C(Se.root, p),
|
|
681
|
-
ownerState: se,
|
|
682
|
-
onBlur: xe,
|
|
683
|
-
onClick: x,
|
|
684
|
-
onContextMenu: ge,
|
|
685
|
-
onFocus: Pe,
|
|
686
|
-
onKeyDown: Ne,
|
|
687
|
-
onKeyUp: De,
|
|
688
|
-
onMouseDown: be,
|
|
689
|
-
onMouseLeave: ye,
|
|
690
|
-
onMouseUp: Re,
|
|
691
|
-
onDragLeave: Me,
|
|
692
|
-
onTouchEnd: Ee,
|
|
693
|
-
onTouchMove: Ce,
|
|
694
|
-
onTouchStart: Te,
|
|
695
|
-
ref: Ve,
|
|
696
|
-
tabIndex: f ? -1 : P,
|
|
697
|
-
type: v,
|
|
698
|
-
...Y,
|
|
699
|
-
..._,
|
|
700
|
-
children: [r, me ? /* @__PURE__ */ I(de, {
|
|
701
|
-
ref: he,
|
|
702
|
-
center: s,
|
|
703
|
-
...w
|
|
704
|
-
}) : null]
|
|
705
|
-
});
|
|
706
|
-
});
|
|
707
|
-
function N(o, t, n, l = !1) {
|
|
708
|
-
return J((i) => (n && n(i), l || o[t](i), !0));
|
|
709
|
-
}
|
|
710
|
-
process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
711
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
712
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
713
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
714
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
715
|
-
/**
|
|
716
|
-
* A ref for imperative actions.
|
|
717
|
-
* It currently only supports `focusVisible()` action.
|
|
718
|
-
*/
|
|
719
|
-
action: Ie,
|
|
720
|
-
/**
|
|
721
|
-
* If `true`, the ripples are centered.
|
|
722
|
-
* They won't start at the cursor interaction position.
|
|
723
|
-
* @default false
|
|
724
|
-
*/
|
|
725
|
-
centerRipple: e.bool,
|
|
726
|
-
/**
|
|
727
|
-
* The content of the component.
|
|
728
|
-
*/
|
|
729
|
-
children: e.node,
|
|
730
|
-
/**
|
|
731
|
-
* Override or extend the styles applied to the component.
|
|
732
|
-
*/
|
|
733
|
-
classes: e.object,
|
|
734
|
-
/**
|
|
735
|
-
* @ignore
|
|
736
|
-
*/
|
|
737
|
-
className: e.string,
|
|
738
|
-
/**
|
|
739
|
-
* The component used for the root node.
|
|
740
|
-
* Either a string to use a HTML element or a component.
|
|
741
|
-
*/
|
|
742
|
-
component: _e,
|
|
743
|
-
/**
|
|
744
|
-
* If `true`, the component is disabled.
|
|
745
|
-
* @default false
|
|
746
|
-
*/
|
|
747
|
-
disabled: e.bool,
|
|
748
|
-
/**
|
|
749
|
-
* If `true`, the ripple effect is disabled.
|
|
750
|
-
*
|
|
751
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
752
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
753
|
-
* @default false
|
|
754
|
-
*/
|
|
755
|
-
disableRipple: e.bool,
|
|
756
|
-
/**
|
|
757
|
-
* If `true`, the touch ripple effect is disabled.
|
|
758
|
-
* @default false
|
|
759
|
-
*/
|
|
760
|
-
disableTouchRipple: e.bool,
|
|
761
|
-
/**
|
|
762
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
763
|
-
* @default false
|
|
764
|
-
*/
|
|
765
|
-
focusRipple: e.bool,
|
|
766
|
-
/**
|
|
767
|
-
* This prop can help identify which element has keyboard focus.
|
|
768
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
769
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
770
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
771
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
772
|
-
* if needed.
|
|
773
|
-
*/
|
|
774
|
-
focusVisibleClassName: e.string,
|
|
775
|
-
/**
|
|
776
|
-
* @ignore
|
|
777
|
-
*/
|
|
778
|
-
href: e.any,
|
|
779
|
-
/**
|
|
780
|
-
* The component used to render a link when the `href` prop is provided.
|
|
781
|
-
* @default 'a'
|
|
782
|
-
*/
|
|
783
|
-
LinkComponent: e.elementType,
|
|
784
|
-
/**
|
|
785
|
-
* @ignore
|
|
786
|
-
*/
|
|
787
|
-
onBlur: e.func,
|
|
788
|
-
/**
|
|
789
|
-
* @ignore
|
|
790
|
-
*/
|
|
791
|
-
onClick: e.func,
|
|
792
|
-
/**
|
|
793
|
-
* @ignore
|
|
794
|
-
*/
|
|
795
|
-
onContextMenu: e.func,
|
|
796
|
-
/**
|
|
797
|
-
* @ignore
|
|
798
|
-
*/
|
|
799
|
-
onDragLeave: e.func,
|
|
800
|
-
/**
|
|
801
|
-
* @ignore
|
|
802
|
-
*/
|
|
803
|
-
onFocus: e.func,
|
|
804
|
-
/**
|
|
805
|
-
* Callback fired when the component is focused with a keyboard.
|
|
806
|
-
* We trigger a `onFocus` callback too.
|
|
807
|
-
*/
|
|
808
|
-
onFocusVisible: e.func,
|
|
809
|
-
/**
|
|
810
|
-
* @ignore
|
|
811
|
-
*/
|
|
812
|
-
onKeyDown: e.func,
|
|
813
|
-
/**
|
|
814
|
-
* @ignore
|
|
815
|
-
*/
|
|
816
|
-
onKeyUp: e.func,
|
|
817
|
-
/**
|
|
818
|
-
* @ignore
|
|
819
|
-
*/
|
|
820
|
-
onMouseDown: e.func,
|
|
821
|
-
/**
|
|
822
|
-
* @ignore
|
|
823
|
-
*/
|
|
824
|
-
onMouseLeave: e.func,
|
|
825
|
-
/**
|
|
826
|
-
* @ignore
|
|
827
|
-
*/
|
|
828
|
-
onMouseUp: e.func,
|
|
829
|
-
/**
|
|
830
|
-
* @ignore
|
|
831
|
-
*/
|
|
832
|
-
onTouchEnd: e.func,
|
|
833
|
-
/**
|
|
834
|
-
* @ignore
|
|
835
|
-
*/
|
|
836
|
-
onTouchMove: e.func,
|
|
837
|
-
/**
|
|
838
|
-
* @ignore
|
|
839
|
-
*/
|
|
840
|
-
onTouchStart: e.func,
|
|
841
|
-
/**
|
|
842
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
843
|
-
*/
|
|
844
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
845
|
-
/**
|
|
846
|
-
* @default 0
|
|
847
|
-
*/
|
|
848
|
-
tabIndex: e.number,
|
|
849
|
-
/**
|
|
850
|
-
* Props applied to the `TouchRipple` element.
|
|
851
|
-
*/
|
|
852
|
-
TouchRippleProps: e.object,
|
|
853
|
-
/**
|
|
854
|
-
* A ref that points to the `TouchRipple` element.
|
|
855
|
-
*/
|
|
856
|
-
touchRippleRef: e.oneOfType([e.func, e.shape({
|
|
857
|
-
current: e.shape({
|
|
858
|
-
pulsate: e.func.isRequired,
|
|
859
|
-
start: e.func.isRequired,
|
|
860
|
-
stop: e.func.isRequired
|
|
861
|
-
})
|
|
862
|
-
})]),
|
|
863
|
-
/**
|
|
864
|
-
* @ignore
|
|
865
|
-
*/
|
|
866
|
-
type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
|
|
867
|
-
});
|
|
868
|
-
export {
|
|
869
|
-
at as B
|
|
870
|
-
};
|