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,804 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "../../../
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { AuthContainer as
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import { u as dt } from "../../../index-B0Z-Gjno.js";
|
|
19
|
-
import { c as G } from "../../../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
20
|
-
import { c as j } from "../../../createSvgIcon-Cuzqm90l.js";
|
|
21
|
-
import { u as B } from "../../../useSlot-CW7SOYlh.js";
|
|
22
|
-
import { m as E } from "../../../memoTheme-yHaPezod.js";
|
|
23
|
-
import { B as ut } from "../../../ButtonBase-DLF5c6wi.js";
|
|
24
|
-
import { C as gt } from "../../../CircularProgress-xZA3lvba.js";
|
|
25
|
-
import { T as ft } from "../../../Typography-pAaje37G.js";
|
|
26
|
-
function vt(t) {
|
|
27
|
-
return J("MuiPagination", t);
|
|
28
|
-
}
|
|
29
|
-
K("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
30
|
-
function yt(t = {}) {
|
|
31
|
-
const {
|
|
32
|
-
boundaryCount: e = 1,
|
|
33
|
-
componentName: o = "usePagination",
|
|
34
|
-
count: s = 1,
|
|
35
|
-
defaultPage: v = 1,
|
|
36
|
-
disabled: d = !1,
|
|
37
|
-
hideNextButton: y = !1,
|
|
38
|
-
hidePrevButton: l = !1,
|
|
39
|
-
onChange: c,
|
|
40
|
-
page: x,
|
|
41
|
-
showFirstButton: T = !1,
|
|
42
|
-
showLastButton: R = !1,
|
|
43
|
-
siblingCount: P = 1,
|
|
44
|
-
...C
|
|
45
|
-
} = t, [u, g] = ct({
|
|
46
|
-
controlled: x,
|
|
47
|
-
default: v,
|
|
48
|
-
name: o,
|
|
49
|
-
state: "page"
|
|
50
|
-
}), O = (n, i) => {
|
|
51
|
-
x || g(i), c && c(n, i);
|
|
52
|
-
}, $ = (n, i) => {
|
|
53
|
-
const h = i - n + 1;
|
|
54
|
-
return Array.from({
|
|
55
|
-
length: h
|
|
56
|
-
}, (U, F) => n + F);
|
|
57
|
-
}, f = $(1, Math.min(e, s)), k = $(Math.max(s - e + 1, e + 1), s), m = Math.max(
|
|
58
|
-
Math.min(
|
|
59
|
-
// Natural start
|
|
60
|
-
u - P,
|
|
61
|
-
// Lower boundary when page is high
|
|
62
|
-
s - e - P * 2 - 1
|
|
63
|
-
),
|
|
64
|
-
// Greater than startPages
|
|
65
|
-
e + 2
|
|
66
|
-
), b = Math.min(
|
|
67
|
-
Math.max(
|
|
68
|
-
// Natural end
|
|
69
|
-
u + P,
|
|
70
|
-
// Upper boundary when page is low
|
|
71
|
-
e + P * 2 + 2
|
|
72
|
-
),
|
|
73
|
-
// Less than endPages
|
|
74
|
-
s - e - 1
|
|
75
|
-
), L = [
|
|
76
|
-
...T ? ["first"] : [],
|
|
77
|
-
...l ? [] : ["previous"],
|
|
78
|
-
...f,
|
|
79
|
-
// Start ellipsis
|
|
80
|
-
// eslint-disable-next-line no-nested-ternary
|
|
81
|
-
...m > e + 2 ? ["start-ellipsis"] : e + 1 < s - e ? [e + 1] : [],
|
|
82
|
-
// Sibling pages
|
|
83
|
-
...$(m, b),
|
|
84
|
-
// End ellipsis
|
|
85
|
-
// eslint-disable-next-line no-nested-ternary
|
|
86
|
-
...b < s - e - 1 ? ["end-ellipsis"] : s - e > e ? [s - e] : [],
|
|
87
|
-
...k,
|
|
88
|
-
...y ? [] : ["next"],
|
|
89
|
-
...R ? ["last"] : []
|
|
90
|
-
], S = (n) => {
|
|
91
|
-
switch (n) {
|
|
92
|
-
case "first":
|
|
93
|
-
return 1;
|
|
94
|
-
case "previous":
|
|
95
|
-
return u - 1;
|
|
96
|
-
case "next":
|
|
97
|
-
return u + 1;
|
|
98
|
-
case "last":
|
|
99
|
-
return s;
|
|
100
|
-
default:
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
return {
|
|
105
|
-
items: L.map((n) => typeof n == "number" ? {
|
|
106
|
-
onClick: (i) => {
|
|
107
|
-
O(i, n);
|
|
108
|
-
},
|
|
109
|
-
type: "page",
|
|
110
|
-
page: n,
|
|
111
|
-
selected: n === u,
|
|
112
|
-
disabled: d,
|
|
113
|
-
"aria-current": n === u ? "page" : void 0
|
|
114
|
-
} : {
|
|
115
|
-
onClick: (i) => {
|
|
116
|
-
O(i, S(n));
|
|
117
|
-
},
|
|
118
|
-
type: n,
|
|
119
|
-
page: S(n),
|
|
120
|
-
selected: !1,
|
|
121
|
-
disabled: d || !n.includes("ellipsis") && (n === "next" || n === "last" ? u >= s : u <= 1)
|
|
122
|
-
}),
|
|
123
|
-
...C
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function bt(t) {
|
|
127
|
-
return J("MuiPaginationItem", t);
|
|
128
|
-
}
|
|
129
|
-
const p = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), mt = j(/* @__PURE__ */ r("path", {
|
|
130
|
-
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
131
|
-
}), "FirstPage"), xt = j(/* @__PURE__ */ r("path", {
|
|
132
|
-
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
133
|
-
}), "LastPage"), Pt = j(/* @__PURE__ */ r("path", {
|
|
134
|
-
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
135
|
-
}), "NavigateBefore"), Ct = j(/* @__PURE__ */ r("path", {
|
|
136
|
-
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
137
|
-
}), "NavigateNext"), Y = (t, e) => {
|
|
138
|
-
const {
|
|
139
|
-
ownerState: o
|
|
140
|
-
} = t;
|
|
141
|
-
return [e.root, e[o.variant], e[`size${I(o.size)}`], o.variant === "text" && e[`text${I(o.color)}`], o.variant === "outlined" && e[`outlined${I(o.color)}`], o.shape === "rounded" && e.rounded, o.type === "page" && e.page, (o.type === "start-ellipsis" || o.type === "end-ellipsis") && e.ellipsis, (o.type === "previous" || o.type === "next") && e.previousNext, (o.type === "first" || o.type === "last") && e.firstLast];
|
|
142
|
-
}, Ot = (t) => {
|
|
143
|
-
const {
|
|
144
|
-
classes: e,
|
|
145
|
-
color: o,
|
|
146
|
-
disabled: s,
|
|
147
|
-
selected: v,
|
|
148
|
-
size: d,
|
|
149
|
-
shape: y,
|
|
150
|
-
type: l,
|
|
151
|
-
variant: c
|
|
152
|
-
} = t, x = {
|
|
153
|
-
root: ["root", `size${I(d)}`, c, y, o !== "standard" && `color${I(o)}`, o !== "standard" && `${c}${I(o)}`, s && "disabled", v && "selected", {
|
|
154
|
-
page: "page",
|
|
155
|
-
first: "firstLast",
|
|
156
|
-
last: "firstLast",
|
|
157
|
-
"start-ellipsis": "ellipsis",
|
|
158
|
-
"end-ellipsis": "ellipsis",
|
|
159
|
-
previous: "previousNext",
|
|
160
|
-
next: "previousNext"
|
|
161
|
-
}[l]],
|
|
162
|
-
icon: ["icon"]
|
|
163
|
-
};
|
|
164
|
-
return X(x, bt, e);
|
|
165
|
-
}, $t = w("div", {
|
|
166
|
-
name: "MuiPaginationItem",
|
|
167
|
-
slot: "Root",
|
|
168
|
-
overridesResolver: Y
|
|
169
|
-
})(E(({
|
|
170
|
-
theme: t
|
|
171
|
-
}) => ({
|
|
172
|
-
...t.typography.body2,
|
|
173
|
-
borderRadius: 32 / 2,
|
|
174
|
-
textAlign: "center",
|
|
175
|
-
boxSizing: "border-box",
|
|
176
|
-
minWidth: 32,
|
|
177
|
-
padding: "0 6px",
|
|
178
|
-
margin: "0 3px",
|
|
179
|
-
color: (t.vars || t).palette.text.primary,
|
|
180
|
-
height: "auto",
|
|
181
|
-
[`&.${p.disabled}`]: {
|
|
182
|
-
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
183
|
-
},
|
|
184
|
-
variants: [{
|
|
185
|
-
props: {
|
|
186
|
-
size: "small"
|
|
187
|
-
},
|
|
188
|
-
style: {
|
|
189
|
-
minWidth: 26,
|
|
190
|
-
borderRadius: 26 / 2,
|
|
191
|
-
margin: "0 1px",
|
|
192
|
-
padding: "0 4px"
|
|
193
|
-
}
|
|
194
|
-
}, {
|
|
195
|
-
props: {
|
|
196
|
-
size: "large"
|
|
197
|
-
},
|
|
198
|
-
style: {
|
|
199
|
-
minWidth: 40,
|
|
200
|
-
borderRadius: 40 / 2,
|
|
201
|
-
padding: "0 10px",
|
|
202
|
-
fontSize: t.typography.pxToRem(15)
|
|
203
|
-
}
|
|
204
|
-
}]
|
|
205
|
-
}))), Tt = w(ut, {
|
|
206
|
-
name: "MuiPaginationItem",
|
|
207
|
-
slot: "Root",
|
|
208
|
-
overridesResolver: Y
|
|
209
|
-
})(E(({
|
|
210
|
-
theme: t
|
|
211
|
-
}) => ({
|
|
212
|
-
...t.typography.body2,
|
|
213
|
-
borderRadius: 32 / 2,
|
|
214
|
-
textAlign: "center",
|
|
215
|
-
boxSizing: "border-box",
|
|
216
|
-
minWidth: 32,
|
|
217
|
-
height: 32,
|
|
218
|
-
padding: "0 6px",
|
|
219
|
-
margin: "0 3px",
|
|
220
|
-
color: (t.vars || t).palette.text.primary,
|
|
221
|
-
[`&.${p.focusVisible}`]: {
|
|
222
|
-
backgroundColor: (t.vars || t).palette.action.focus
|
|
223
|
-
},
|
|
224
|
-
[`&.${p.disabled}`]: {
|
|
225
|
-
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
226
|
-
},
|
|
227
|
-
transition: t.transitions.create(["color", "background-color"], {
|
|
228
|
-
duration: t.transitions.duration.short
|
|
229
|
-
}),
|
|
230
|
-
"&:hover": {
|
|
231
|
-
backgroundColor: (t.vars || t).palette.action.hover,
|
|
232
|
-
// Reset on touch devices, it doesn't add specificity
|
|
233
|
-
"@media (hover: none)": {
|
|
234
|
-
backgroundColor: "transparent"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
[`&.${p.selected}`]: {
|
|
238
|
-
backgroundColor: (t.vars || t).palette.action.selected,
|
|
239
|
-
"&:hover": {
|
|
240
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : z(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
241
|
-
// Reset on touch devices, it doesn't add specificity
|
|
242
|
-
"@media (hover: none)": {
|
|
243
|
-
backgroundColor: (t.vars || t).palette.action.selected
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
[`&.${p.focusVisible}`]: {
|
|
247
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : z(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
248
|
-
},
|
|
249
|
-
[`&.${p.disabled}`]: {
|
|
250
|
-
opacity: 1,
|
|
251
|
-
color: (t.vars || t).palette.action.disabled,
|
|
252
|
-
backgroundColor: (t.vars || t).palette.action.selected
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
variants: [{
|
|
256
|
-
props: {
|
|
257
|
-
size: "small"
|
|
258
|
-
},
|
|
259
|
-
style: {
|
|
260
|
-
minWidth: 26,
|
|
261
|
-
height: 26,
|
|
262
|
-
borderRadius: 26 / 2,
|
|
263
|
-
margin: "0 1px",
|
|
264
|
-
padding: "0 4px"
|
|
265
|
-
}
|
|
266
|
-
}, {
|
|
267
|
-
props: {
|
|
268
|
-
size: "large"
|
|
269
|
-
},
|
|
270
|
-
style: {
|
|
271
|
-
minWidth: 40,
|
|
272
|
-
height: 40,
|
|
273
|
-
borderRadius: 40 / 2,
|
|
274
|
-
padding: "0 10px",
|
|
275
|
-
fontSize: t.typography.pxToRem(15)
|
|
276
|
-
}
|
|
277
|
-
}, {
|
|
278
|
-
props: {
|
|
279
|
-
shape: "rounded"
|
|
280
|
-
},
|
|
281
|
-
style: {
|
|
282
|
-
borderRadius: (t.vars || t).shape.borderRadius
|
|
283
|
-
}
|
|
284
|
-
}, {
|
|
285
|
-
props: {
|
|
286
|
-
variant: "outlined"
|
|
287
|
-
},
|
|
288
|
-
style: {
|
|
289
|
-
border: t.vars ? `1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
290
|
-
[`&.${p.selected}`]: {
|
|
291
|
-
[`&.${p.disabled}`]: {
|
|
292
|
-
borderColor: (t.vars || t).palette.action.disabledBackground,
|
|
293
|
-
color: (t.vars || t).palette.action.disabled
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}, {
|
|
298
|
-
props: {
|
|
299
|
-
variant: "text"
|
|
300
|
-
},
|
|
301
|
-
style: {
|
|
302
|
-
[`&.${p.selected}`]: {
|
|
303
|
-
[`&.${p.disabled}`]: {
|
|
304
|
-
color: (t.vars || t).palette.action.disabled
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}, ...Object.entries(t.palette).filter(G(["dark", "contrastText"])).map(([e]) => ({
|
|
309
|
-
props: {
|
|
310
|
-
variant: "text",
|
|
311
|
-
color: e
|
|
312
|
-
},
|
|
313
|
-
style: {
|
|
314
|
-
[`&.${p.selected}`]: {
|
|
315
|
-
color: (t.vars || t).palette[e].contrastText,
|
|
316
|
-
backgroundColor: (t.vars || t).palette[e].main,
|
|
317
|
-
"&:hover": {
|
|
318
|
-
backgroundColor: (t.vars || t).palette[e].dark,
|
|
319
|
-
// Reset on touch devices, it doesn't add specificity
|
|
320
|
-
"@media (hover: none)": {
|
|
321
|
-
backgroundColor: (t.vars || t).palette[e].main
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
[`&.${p.focusVisible}`]: {
|
|
325
|
-
backgroundColor: (t.vars || t).palette[e].dark
|
|
326
|
-
},
|
|
327
|
-
[`&.${p.disabled}`]: {
|
|
328
|
-
color: (t.vars || t).palette.action.disabled
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
})), ...Object.entries(t.palette).filter(G(["light"])).map(([e]) => ({
|
|
333
|
-
props: {
|
|
334
|
-
variant: "outlined",
|
|
335
|
-
color: e
|
|
336
|
-
},
|
|
337
|
-
style: {
|
|
338
|
-
[`&.${p.selected}`]: {
|
|
339
|
-
color: (t.vars || t).palette[e].main,
|
|
340
|
-
border: `1px solid ${t.vars ? `rgba(${t.vars.palette[e].mainChannel} / 0.5)` : z(t.palette[e].main, 0.5)}`,
|
|
341
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.activatedOpacity})` : z(t.palette[e].main, t.palette.action.activatedOpacity),
|
|
342
|
-
"&:hover": {
|
|
343
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : z(t.palette[e].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity),
|
|
344
|
-
// Reset on touch devices, it doesn't add specificity
|
|
345
|
-
"@media (hover: none)": {
|
|
346
|
-
backgroundColor: "transparent"
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
[`&.${p.focusVisible}`]: {
|
|
350
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : z(t.palette[e].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity)
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}))]
|
|
355
|
-
}))), St = w("div", {
|
|
356
|
-
name: "MuiPaginationItem",
|
|
357
|
-
slot: "Icon"
|
|
358
|
-
})(E(({
|
|
359
|
-
theme: t
|
|
360
|
-
}) => ({
|
|
361
|
-
fontSize: t.typography.pxToRem(20),
|
|
362
|
-
margin: "0 -8px",
|
|
363
|
-
variants: [{
|
|
364
|
-
props: {
|
|
365
|
-
size: "small"
|
|
366
|
-
},
|
|
367
|
-
style: {
|
|
368
|
-
fontSize: t.typography.pxToRem(18)
|
|
369
|
-
}
|
|
370
|
-
}, {
|
|
371
|
-
props: {
|
|
372
|
-
size: "large"
|
|
373
|
-
},
|
|
374
|
-
style: {
|
|
375
|
-
fontSize: t.typography.pxToRem(22)
|
|
376
|
-
}
|
|
377
|
-
}]
|
|
378
|
-
}))), Z = /* @__PURE__ */ q.forwardRef(function(e, o) {
|
|
379
|
-
const s = Q({
|
|
380
|
-
props: e,
|
|
381
|
-
name: "MuiPaginationItem"
|
|
382
|
-
}), {
|
|
383
|
-
className: v,
|
|
384
|
-
color: d = "standard",
|
|
385
|
-
component: y,
|
|
386
|
-
components: l = {},
|
|
387
|
-
disabled: c = !1,
|
|
388
|
-
page: x,
|
|
389
|
-
selected: T = !1,
|
|
390
|
-
shape: R = "circular",
|
|
391
|
-
size: P = "medium",
|
|
392
|
-
slots: C = {},
|
|
393
|
-
slotProps: u = {},
|
|
394
|
-
type: g = "page",
|
|
395
|
-
variant: O = "text",
|
|
396
|
-
...$
|
|
397
|
-
} = s, f = {
|
|
398
|
-
...s,
|
|
399
|
-
color: d,
|
|
400
|
-
disabled: c,
|
|
401
|
-
selected: T,
|
|
402
|
-
shape: R,
|
|
403
|
-
size: P,
|
|
404
|
-
type: g,
|
|
405
|
-
variant: O
|
|
406
|
-
}, k = dt(), m = Ot(f), b = {
|
|
407
|
-
slots: {
|
|
408
|
-
previous: C.previous ?? l.previous,
|
|
409
|
-
next: C.next ?? l.next,
|
|
410
|
-
first: C.first ?? l.first,
|
|
411
|
-
last: C.last ?? l.last
|
|
412
|
-
},
|
|
413
|
-
slotProps: u
|
|
414
|
-
}, [L, S] = B("previous", {
|
|
415
|
-
elementType: Pt,
|
|
416
|
-
externalForwardedProps: b,
|
|
417
|
-
ownerState: f
|
|
418
|
-
}), [N, n] = B("next", {
|
|
419
|
-
elementType: Ct,
|
|
420
|
-
externalForwardedProps: b,
|
|
421
|
-
ownerState: f
|
|
422
|
-
}), [i, h] = B("first", {
|
|
423
|
-
elementType: mt,
|
|
424
|
-
externalForwardedProps: b,
|
|
425
|
-
ownerState: f
|
|
426
|
-
}), [U, F] = B("last", {
|
|
427
|
-
elementType: xt,
|
|
428
|
-
externalForwardedProps: b,
|
|
429
|
-
ownerState: f
|
|
430
|
-
}), V = k ? {
|
|
431
|
-
previous: "next",
|
|
432
|
-
next: "previous",
|
|
433
|
-
first: "last",
|
|
434
|
-
last: "first"
|
|
435
|
-
}[g] : g, D = {
|
|
436
|
-
previous: L,
|
|
437
|
-
next: N,
|
|
438
|
-
first: i,
|
|
439
|
-
last: U
|
|
440
|
-
}[V], at = {
|
|
441
|
-
previous: S,
|
|
442
|
-
next: n,
|
|
443
|
-
first: h,
|
|
444
|
-
last: F
|
|
445
|
-
}[V];
|
|
446
|
-
return g === "start-ellipsis" || g === "end-ellipsis" ? /* @__PURE__ */ r($t, {
|
|
447
|
-
ref: o,
|
|
448
|
-
ownerState: f,
|
|
449
|
-
className: A(m.root, v),
|
|
450
|
-
children: "…"
|
|
451
|
-
}) : /* @__PURE__ */ H(Tt, {
|
|
452
|
-
ref: o,
|
|
453
|
-
ownerState: f,
|
|
454
|
-
component: y,
|
|
455
|
-
disabled: c,
|
|
456
|
-
className: A(m.root, v),
|
|
457
|
-
...$,
|
|
458
|
-
children: [g === "page" && x, D ? /* @__PURE__ */ r(St, {
|
|
459
|
-
...at,
|
|
460
|
-
className: m.icon,
|
|
461
|
-
as: D
|
|
462
|
-
}) : null]
|
|
463
|
-
});
|
|
464
|
-
});
|
|
465
|
-
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
466
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
467
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
468
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
469
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
470
|
-
/**
|
|
471
|
-
* @ignore
|
|
472
|
-
*/
|
|
473
|
-
children: a.node,
|
|
474
|
-
/**
|
|
475
|
-
* Override or extend the styles applied to the component.
|
|
476
|
-
*/
|
|
477
|
-
classes: a.object,
|
|
478
|
-
/**
|
|
479
|
-
* @ignore
|
|
480
|
-
*/
|
|
481
|
-
className: a.string,
|
|
482
|
-
/**
|
|
483
|
-
* The active color.
|
|
484
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
485
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
486
|
-
* @default 'standard'
|
|
487
|
-
*/
|
|
488
|
-
color: a.oneOfType([a.oneOf(["primary", "secondary", "standard"]), a.string]),
|
|
489
|
-
/**
|
|
490
|
-
* The component used for the root node.
|
|
491
|
-
* Either a string to use a HTML element or a component.
|
|
492
|
-
*/
|
|
493
|
-
component: a.elementType,
|
|
494
|
-
/**
|
|
495
|
-
* The components used for each slot inside.
|
|
496
|
-
*
|
|
497
|
-
* This prop is an alias for the `slots` prop.
|
|
498
|
-
* It's recommended to use the `slots` prop instead.
|
|
499
|
-
*
|
|
500
|
-
* @default {}
|
|
501
|
-
* @deprecated use the `slots` 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.
|
|
502
|
-
*/
|
|
503
|
-
components: a.shape({
|
|
504
|
-
first: a.elementType,
|
|
505
|
-
last: a.elementType,
|
|
506
|
-
next: a.elementType,
|
|
507
|
-
previous: a.elementType
|
|
508
|
-
}),
|
|
509
|
-
/**
|
|
510
|
-
* If `true`, the component is disabled.
|
|
511
|
-
* @default false
|
|
512
|
-
*/
|
|
513
|
-
disabled: a.bool,
|
|
514
|
-
/**
|
|
515
|
-
* The current page number.
|
|
516
|
-
*/
|
|
517
|
-
page: a.node,
|
|
518
|
-
/**
|
|
519
|
-
* If `true` the pagination item is selected.
|
|
520
|
-
* @default false
|
|
521
|
-
*/
|
|
522
|
-
selected: a.bool,
|
|
523
|
-
/**
|
|
524
|
-
* The shape of the pagination item.
|
|
525
|
-
* @default 'circular'
|
|
526
|
-
*/
|
|
527
|
-
shape: a.oneOf(["circular", "rounded"]),
|
|
528
|
-
/**
|
|
529
|
-
* The size of the component.
|
|
530
|
-
* @default 'medium'
|
|
531
|
-
*/
|
|
532
|
-
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
533
|
-
/**
|
|
534
|
-
* The props used for each slot inside.
|
|
535
|
-
* @default {}
|
|
536
|
-
*/
|
|
537
|
-
slotProps: a.shape({
|
|
538
|
-
first: a.oneOfType([a.func, a.object]),
|
|
539
|
-
last: a.oneOfType([a.func, a.object]),
|
|
540
|
-
next: a.oneOfType([a.func, a.object]),
|
|
541
|
-
previous: a.oneOfType([a.func, a.object])
|
|
542
|
-
}),
|
|
543
|
-
/**
|
|
544
|
-
* The components used for each slot inside.
|
|
545
|
-
* @default {}
|
|
546
|
-
*/
|
|
547
|
-
slots: a.shape({
|
|
548
|
-
first: a.elementType,
|
|
549
|
-
last: a.elementType,
|
|
550
|
-
next: a.elementType,
|
|
551
|
-
previous: a.elementType
|
|
552
|
-
}),
|
|
553
|
-
/**
|
|
554
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
555
|
-
*/
|
|
556
|
-
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
557
|
-
/**
|
|
558
|
-
* The type of pagination item.
|
|
559
|
-
* @default 'page'
|
|
560
|
-
*/
|
|
561
|
-
type: a.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
|
|
562
|
-
/**
|
|
563
|
-
* The variant to use.
|
|
564
|
-
* @default 'text'
|
|
565
|
-
*/
|
|
566
|
-
variant: a.oneOfType([a.oneOf(["outlined", "text"]), a.string])
|
|
567
|
-
});
|
|
568
|
-
const Nt = (t) => {
|
|
569
|
-
const {
|
|
570
|
-
classes: e,
|
|
571
|
-
variant: o
|
|
572
|
-
} = t;
|
|
573
|
-
return X({
|
|
574
|
-
root: ["root", o],
|
|
575
|
-
ul: ["ul"]
|
|
576
|
-
}, vt, e);
|
|
577
|
-
}, zt = w("nav", {
|
|
578
|
-
name: "MuiPagination",
|
|
579
|
-
slot: "Root",
|
|
580
|
-
overridesResolver: (t, e) => {
|
|
581
|
-
const {
|
|
582
|
-
ownerState: o
|
|
583
|
-
} = t;
|
|
584
|
-
return [e.root, e[o.variant]];
|
|
585
|
-
}
|
|
586
|
-
})({}), It = w("ul", {
|
|
587
|
-
name: "MuiPagination",
|
|
588
|
-
slot: "Ul"
|
|
589
|
-
})({
|
|
590
|
-
display: "flex",
|
|
591
|
-
flexWrap: "wrap",
|
|
592
|
-
alignItems: "center",
|
|
593
|
-
padding: 0,
|
|
594
|
-
margin: 0,
|
|
595
|
-
listStyle: "none"
|
|
596
|
-
});
|
|
597
|
-
function Rt(t, e, o) {
|
|
598
|
-
return t === "page" ? `${o ? "" : "Go to "}page ${e}` : `Go to ${t} page`;
|
|
599
|
-
}
|
|
600
|
-
const tt = /* @__PURE__ */ q.forwardRef(function(e, o) {
|
|
601
|
-
const s = Q({
|
|
602
|
-
props: e,
|
|
603
|
-
name: "MuiPagination"
|
|
604
|
-
}), {
|
|
605
|
-
boundaryCount: v = 1,
|
|
606
|
-
className: d,
|
|
607
|
-
color: y = "standard",
|
|
608
|
-
count: l = 1,
|
|
609
|
-
defaultPage: c = 1,
|
|
610
|
-
disabled: x = !1,
|
|
611
|
-
getItemAriaLabel: T = Rt,
|
|
612
|
-
hideNextButton: R = !1,
|
|
613
|
-
hidePrevButton: P = !1,
|
|
614
|
-
onChange: C,
|
|
615
|
-
page: u,
|
|
616
|
-
renderItem: g = (i) => /* @__PURE__ */ r(Z, {
|
|
617
|
-
...i
|
|
618
|
-
}),
|
|
619
|
-
shape: O = "circular",
|
|
620
|
-
showFirstButton: $ = !1,
|
|
621
|
-
showLastButton: f = !1,
|
|
622
|
-
siblingCount: k = 1,
|
|
623
|
-
size: m = "medium",
|
|
624
|
-
variant: b = "text",
|
|
625
|
-
...L
|
|
626
|
-
} = s, {
|
|
627
|
-
items: S
|
|
628
|
-
} = yt({
|
|
629
|
-
...s,
|
|
630
|
-
componentName: "Pagination"
|
|
631
|
-
}), N = {
|
|
632
|
-
...s,
|
|
633
|
-
boundaryCount: v,
|
|
634
|
-
color: y,
|
|
635
|
-
count: l,
|
|
636
|
-
defaultPage: c,
|
|
637
|
-
disabled: x,
|
|
638
|
-
getItemAriaLabel: T,
|
|
639
|
-
hideNextButton: R,
|
|
640
|
-
hidePrevButton: P,
|
|
641
|
-
renderItem: g,
|
|
642
|
-
shape: O,
|
|
643
|
-
showFirstButton: $,
|
|
644
|
-
showLastButton: f,
|
|
645
|
-
siblingCount: k,
|
|
646
|
-
size: m,
|
|
647
|
-
variant: b
|
|
648
|
-
}, n = Nt(N);
|
|
649
|
-
return /* @__PURE__ */ r(zt, {
|
|
650
|
-
"aria-label": "pagination navigation",
|
|
651
|
-
className: A(n.root, d),
|
|
652
|
-
ownerState: N,
|
|
653
|
-
ref: o,
|
|
654
|
-
...L,
|
|
655
|
-
children: /* @__PURE__ */ r(It, {
|
|
656
|
-
className: n.ul,
|
|
657
|
-
ownerState: N,
|
|
658
|
-
children: S.map((i, h) => /* @__PURE__ */ r("li", {
|
|
659
|
-
children: g({
|
|
660
|
-
...i,
|
|
661
|
-
color: y,
|
|
662
|
-
"aria-label": T(i.type, i.page, i.selected),
|
|
663
|
-
shape: O,
|
|
664
|
-
size: m,
|
|
665
|
-
variant: b
|
|
666
|
-
})
|
|
667
|
-
}, h))
|
|
668
|
-
})
|
|
669
|
-
});
|
|
670
|
-
});
|
|
671
|
-
process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
672
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
673
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
674
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
675
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
676
|
-
/**
|
|
677
|
-
* Number of always visible pages at the beginning and end.
|
|
678
|
-
* @default 1
|
|
679
|
-
*/
|
|
680
|
-
boundaryCount: M,
|
|
681
|
-
/**
|
|
682
|
-
* Override or extend the styles applied to the component.
|
|
683
|
-
*/
|
|
684
|
-
classes: a.object,
|
|
685
|
-
/**
|
|
686
|
-
* @ignore
|
|
687
|
-
*/
|
|
688
|
-
className: a.string,
|
|
689
|
-
/**
|
|
690
|
-
* The active color.
|
|
691
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
692
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
693
|
-
* @default 'standard'
|
|
694
|
-
*/
|
|
695
|
-
color: a.oneOfType([a.oneOf(["primary", "secondary", "standard"]), a.string]),
|
|
696
|
-
/**
|
|
697
|
-
* The total number of pages.
|
|
698
|
-
* @default 1
|
|
699
|
-
*/
|
|
700
|
-
count: M,
|
|
701
|
-
/**
|
|
702
|
-
* The page selected by default when the component is uncontrolled.
|
|
703
|
-
* @default 1
|
|
704
|
-
*/
|
|
705
|
-
defaultPage: M,
|
|
706
|
-
/**
|
|
707
|
-
* If `true`, the component is disabled.
|
|
708
|
-
* @default false
|
|
709
|
-
*/
|
|
710
|
-
disabled: a.bool,
|
|
711
|
-
/**
|
|
712
|
-
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
713
|
-
* This is important for screen reader users.
|
|
714
|
-
*
|
|
715
|
-
* For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
|
|
716
|
-
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
|
|
717
|
-
* @param {number | null} page The page number to format.
|
|
718
|
-
* @param {boolean} selected If true, the current page is selected.
|
|
719
|
-
* @returns {string}
|
|
720
|
-
*/
|
|
721
|
-
getItemAriaLabel: a.func,
|
|
722
|
-
/**
|
|
723
|
-
* If `true`, hide the next-page button.
|
|
724
|
-
* @default false
|
|
725
|
-
*/
|
|
726
|
-
hideNextButton: a.bool,
|
|
727
|
-
/**
|
|
728
|
-
* If `true`, hide the previous-page button.
|
|
729
|
-
* @default false
|
|
730
|
-
*/
|
|
731
|
-
hidePrevButton: a.bool,
|
|
732
|
-
/**
|
|
733
|
-
* Callback fired when the page is changed.
|
|
734
|
-
*
|
|
735
|
-
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
736
|
-
* @param {number} page The page selected.
|
|
737
|
-
*/
|
|
738
|
-
onChange: a.func,
|
|
739
|
-
/**
|
|
740
|
-
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
741
|
-
*/
|
|
742
|
-
page: M,
|
|
743
|
-
/**
|
|
744
|
-
* Render the item.
|
|
745
|
-
* @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
|
|
746
|
-
* @returns {ReactNode}
|
|
747
|
-
* @default (item) => <PaginationItem {...item} />
|
|
748
|
-
*/
|
|
749
|
-
renderItem: a.func,
|
|
750
|
-
/**
|
|
751
|
-
* The shape of the pagination items.
|
|
752
|
-
* @default 'circular'
|
|
753
|
-
*/
|
|
754
|
-
shape: a.oneOf(["circular", "rounded"]),
|
|
755
|
-
/**
|
|
756
|
-
* If `true`, show the first-page button.
|
|
757
|
-
* @default false
|
|
758
|
-
*/
|
|
759
|
-
showFirstButton: a.bool,
|
|
760
|
-
/**
|
|
761
|
-
* If `true`, show the last-page button.
|
|
762
|
-
* @default false
|
|
763
|
-
*/
|
|
764
|
-
showLastButton: a.bool,
|
|
765
|
-
/**
|
|
766
|
-
* Number of always visible pages before and after the current page.
|
|
767
|
-
* @default 1
|
|
768
|
-
*/
|
|
769
|
-
siblingCount: M,
|
|
770
|
-
/**
|
|
771
|
-
* The size of the component.
|
|
772
|
-
* @default 'medium'
|
|
773
|
-
*/
|
|
774
|
-
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
775
|
-
/**
|
|
776
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
777
|
-
*/
|
|
778
|
-
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
779
|
-
/**
|
|
780
|
-
* The variant to use.
|
|
781
|
-
* @default 'text'
|
|
782
|
-
*/
|
|
783
|
-
variant: a.oneOfType([a.oneOf(["outlined", "text"]), a.string])
|
|
784
|
-
});
|
|
785
|
-
const kt = () => {
|
|
786
|
-
const t = pt(), e = nt((l) => l.order), o = e.list, s = e.loader, v = e.totalPages, [d, y] = et(1);
|
|
787
|
-
return ot(() => {
|
|
788
|
-
t(rt(d));
|
|
789
|
-
}, [d]), /* @__PURE__ */ r(lt, { addPadding: !0, children: o.length > 0 ? /* @__PURE__ */ H(W, { children: [
|
|
790
|
-
/* @__PURE__ */ r(_, { className: "flex-center", children: /* @__PURE__ */ r(
|
|
791
|
-
tt,
|
|
1
|
+
import { jsx as e, jsxs as p, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useEffect as h } from "react";
|
|
3
|
+
import f from "../../../hoc/withThemeProvider.js";
|
|
4
|
+
import { u as g } from "../../../react-redux-C7I9-1M6.js";
|
|
5
|
+
import "../../../constants-DX0YBtP2.js";
|
|
6
|
+
import { a as x } from "../../../order-BXeCIvqC.js";
|
|
7
|
+
import { Box as n, Pagination as P, CircularProgress as N, Typography as v } from "@mui/material";
|
|
8
|
+
import y from "../../Shared/HistoryItem/index.js";
|
|
9
|
+
import { AuthContainer as C } from "../Shared/Container/index.js";
|
|
10
|
+
import b from "../../../hooks/useEverestDispatch.js";
|
|
11
|
+
const j = () => {
|
|
12
|
+
const m = b(), t = g((r) => r.order), a = t.list, c = t.loader, d = t.totalPages, [s, l] = u(1);
|
|
13
|
+
return h(() => {
|
|
14
|
+
m(x(s));
|
|
15
|
+
}, [s]), /* @__PURE__ */ e(C, { addPadding: !0, children: a.length > 0 ? /* @__PURE__ */ p(i, { children: [
|
|
16
|
+
/* @__PURE__ */ e(n, { className: "flex-center", children: /* @__PURE__ */ e(
|
|
17
|
+
P,
|
|
792
18
|
{
|
|
793
|
-
onChange: (
|
|
794
|
-
count:
|
|
19
|
+
onChange: (r, o) => l(o),
|
|
20
|
+
count: d,
|
|
795
21
|
variant: "outlined",
|
|
796
22
|
shape: "rounded"
|
|
797
23
|
}
|
|
798
24
|
) }),
|
|
799
|
-
|
|
800
|
-
] }) : /* @__PURE__ */
|
|
801
|
-
},
|
|
25
|
+
c ? /* @__PURE__ */ e(n, { className: "text-center", mt: 2, children: /* @__PURE__ */ e(N, { size: 50 }) }) : /* @__PURE__ */ e(i, { children: a.map((r, o) => /* @__PURE__ */ e(y, { data: r }, o)) })
|
|
26
|
+
] }) : /* @__PURE__ */ e(v, { className: "text-center", variant: "h4", children: "No Records" }) });
|
|
27
|
+
}, z = f(j);
|
|
802
28
|
export {
|
|
803
|
-
|
|
29
|
+
z as default
|
|
804
30
|
};
|