everest-npm-features 0.0.32 → 0.0.34
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/{Alert-CUoIVlUd.js → Alert-DzsbFW3-.js} +38 -37
- package/dist/{pep-C_LViPSb.js → Autocomplete-CE-OI2t8.js} +934 -1197
- package/dist/{Avatar-CwczQLPi.js → Avatar-1XklXr4O.js} +54 -53
- package/dist/{Backdrop-yR8IRnFX.js → Backdrop-CioURPVG.js} +7 -6
- package/dist/{Box-BwKpr_VI.js → Box-B0YSYLco.js} +5 -5
- package/dist/{Button-tAfK4lud.js → Button-Df4vgU24.js} +24 -22
- package/dist/{ButtonBase-CaH152Zd.js → ButtonBase-DLF5c6wi.js} +13 -12
- package/dist/{Cancel-BoEk0xRy.js → Cancel-4lT7GZUA.js} +1 -1
- package/dist/{CardContent-ZS4vlcvi.js → CardContent-D9wTdpu-.js} +14 -13
- package/dist/{CircularProgress-Yx712vpT.js → CircularProgress-xZA3lvba.js} +6 -5
- package/dist/{Close-CFg1QB5M.js → Close-CNwiMz_O.js} +1 -1
- package/dist/{Close-B_8kEwSt.js → Close-CxzDL3J-.js} +1 -1
- package/dist/{Container-CBPBT38n.js → Container-urNKV7hm.js} +4 -4
- package/dist/{ContentCopy-D4Eg7Nkm.js → ContentCopy-coPwrEuz.js} +1 -1
- package/dist/DefaultPropsProvider-CeF7UYM9.js +92 -0
- package/dist/DefaultPropsProvider-oAu9El-f.js +226 -0
- package/dist/{Delete-BGp4FPdE.js → Delete-jpMstGIF.js} +1 -1
- package/dist/{DialogContent-_gvZOy18.js → DialogContent-BMwlOnbW.js} +23 -22
- package/dist/{DialogTitle-dq22bYlF.js → DialogTitle-CfS0bb2K.js} +5 -5
- package/dist/{Divider-CIL55YSC.js → Divider-BShhMFf4.js} +5 -5
- package/dist/{ErrorOutline-BykbFh0r.js → ErrorOutline-CPQcnl2b.js} +1 -1
- package/dist/{FileDownload-BSy7tA6m.js → FileDownload-Bt3R_NBr.js} +1 -1
- package/dist/{FilledInput-QaJVaeIX.js → FilledInput-DuNqnPjc.js} +15 -14
- package/dist/{FormControl-H4D1Z6Ov.js → FormControl-RtZDQMdA.js} +6 -5
- package/dist/{FormControlLabel-BvI1nkJ1.js → FormControlLabel-BliKW48y.js} +18 -17
- package/dist/{GlobalStyles-DhHHc9O0.js → GlobalStyles-ChMhDfTS.js} +4 -4
- package/dist/{Grid-CPkjiKqX.js → Grid-CFe3amXO.js} +7 -7
- package/dist/{Grow-B2p7O_1C.js → Grow-CnGtel3u.js} +4 -4
- package/dist/{IconButton-WneJM4uP.js → IconButton-DHm-hucF.js} +11 -10
- package/dist/{Info-0vSsl6Bm.js → Info-BVeUSPyk.js} +1 -1
- package/dist/{InputAdornment-Bqn4-Kns.js → InputAdornment-DMiED3JH.js} +21 -20
- package/dist/{Link-DhdK4VfZ.js → Link-DBA9Yifs.js} +20 -19
- package/dist/{ListItemIcon-D657XWHf.js → ListItemIcon-CUcyTEEm.js} +6 -6
- package/dist/{Menu-BAFJBGa-.js → Menu-DLYFFrEk.js} +21 -20
- package/dist/{MenuItem-ByxiQtY2.js → MenuItem-DUdYOJr4.js} +40 -39
- package/dist/{Modal-DEfOsvWK.js → Modal-CFIQ_s3T.js} +15 -14
- package/dist/{Paper-jx_cZiyU.js → Paper-Bgt2WXI6.js} +11 -10
- package/dist/PlayArrow-CcX9hutu.js +13 -0
- package/dist/{Popper-B1He9eVi.js → Popper-BBAoiZKn.js} +14 -13
- package/dist/{Portal-CLa9CbMv.js → Portal-BMAxiQwe.js} +2 -2
- package/dist/{RadioGroup-_-H2gvH2.js → RadioGroup-nvoSN0JN.js} +25 -24
- package/dist/{Select-CGei0bav.js → Select-CB5yWmyn.js} +12 -11
- package/dist/{Slide-DHG0r2gy.js → Slide-B9Nw0LZ4.js} +3 -3
- package/dist/{Stack-DH-Nxf9q.js → Stack-k55YTxET.js} +5 -5
- package/dist/{SwitchBase-BDUzpdBf.js → SwitchBase-C8zFyg_x.js} +11 -10
- package/dist/{TextField-DmiK1A_S.js → TextField-DPpRUQe3.js} +10 -9
- package/dist/{Typography-BQDN44CM.js → Typography-pAaje37G.js} +13 -12
- package/dist/assets/styles2.css +1 -1
- package/dist/assets/styles3.css +1 -1
- package/dist/assets/withThemeProvider.css +1 -1
- package/dist/{auth-IOh0JhPD.js → auth-BzJj8HQz.js} +5 -5
- package/dist/{bank-BNgO--wu.js → bank-CCdUsDB2.js} +1 -1
- package/dist/clsx-BTaloaeC.js +264 -0
- package/dist/components/RocketRamp/MinimalKyc/form.js +10 -10
- package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
- package/dist/components/RocketRamp/Player/Buy/index.js +7 -7
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
- package/dist/components/RocketRamp/Player/Dashboard/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
- package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
- package/dist/components/RocketRamp/Player/Sell/index.js +8 -8
- package/dist/components/RocketRamp/Player/SignIn/index.js +6 -6
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/index.js +7 -7
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/ResetPassword/index.js +6 -6
- package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
- package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
- package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
- package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Store/SignUp/index.js +7 -7
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
- package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/Transactions/index.js +9 -9
- package/dist/components/Shared/FullKyc/countryList.d.ts +10 -0
- package/dist/components/Shared/FullKyc/countryList.js +54 -0
- package/dist/components/Shared/FullKyc/edd.d.ts +3 -0
- package/dist/components/Shared/FullKyc/edd.js +184 -0
- package/dist/components/Shared/FullKyc/index.d.ts +1 -0
- package/dist/components/Shared/FullKyc/index.js +12 -10
- package/dist/components/Shared/FullKyc/pep.js +276 -15
- package/dist/components/Shared/FullKyc/personalDetails.js +7 -9
- package/dist/components/Shared/FullKyc/types.d.ts +21 -3
- package/dist/components/Shared/FullKyc/userInfo.js +13 -13
- package/dist/components/Shared/HistoryItem/index.js +99 -75
- package/dist/components/Shared/Incode/index.d.ts +2 -1
- package/dist/components/Shared/Incode/index.js +42 -40
- package/dist/components/Shared/MinimalKyc/index.js +9 -9
- package/dist/components/Shared/loader.js +2 -2
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/Wallet/Account/createIban.js +8 -8
- package/dist/components/Wallet/Account/iban.js +14 -14
- package/dist/components/Wallet/Account/index.js +24 -24
- package/dist/components/Wallet/Account/sendIban.js +16 -16
- package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
- package/dist/components/Wallet/Buy/form.js +20 -20
- package/dist/components/Wallet/Buy/index.js +7 -7
- package/dist/components/Wallet/Deposit/index.js +27 -25
- package/dist/components/Wallet/EnterpriseKyc/edd.js +8 -8
- package/dist/components/Wallet/EnterpriseKyc/index.js +123 -113
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +21 -21
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +16 -16
- package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
- package/dist/components/Wallet/History/index.js +18 -17
- package/dist/components/Wallet/Home/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +41 -41
- package/dist/components/Wallet/Portfolio/dropdown.js +7 -7
- package/dist/components/Wallet/Portfolio/index.js +159 -147
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -3
- package/dist/components/Wallet/Profile/documents.js +17 -17
- package/dist/components/Wallet/Profile/index.js +12 -12
- package/dist/components/Wallet/Receive/index.js +11 -11
- package/dist/components/Wallet/Sell/confirmTransaction.js +26 -10
- package/dist/components/Wallet/Sell/form.js +20 -20
- package/dist/components/Wallet/Sell/index.d.ts +1 -0
- package/dist/components/Wallet/Sell/index.js +12 -11
- package/dist/components/Wallet/Send/index.js +21 -21
- package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
- package/dist/components/Wallet/Shared/Auth/otpForm.js +7 -7
- package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +11 -11
- package/dist/components/Wallet/Shared/Container/index.js +2 -2
- package/dist/components/Wallet/Shared/Input/index.js +1 -1
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Wallet/Shared/Order/paymentButton.js +2 -2
- package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
- package/dist/components/Wallet/Shared/addBank.js +12 -12
- package/dist/components/Wallet/Shared/appButton.js +6 -6
- package/dist/components/Wallet/Shared/backBtn.js +2 -2
- package/dist/components/Wallet/Shared/button.js +1 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.js +6 -6
- package/dist/components/Wallet/Shared/inputField.js +1 -1
- package/dist/components/Wallet/Shared/manualSend.d.ts +11 -0
- package/dist/components/Wallet/Shared/manualSend.js +38 -0
- package/dist/components/Wallet/Shared/noData.js +2 -2
- package/dist/components/Wallet/Shared/pin.js +4 -4
- package/dist/components/Wallet/Shared/radioButton.js +3 -3
- package/dist/components/Wallet/Shared/step.js +2 -2
- package/dist/components/Wallet/Shared/timer.d.ts +9 -0
- package/dist/components/Wallet/Shared/timer.js +53 -0
- package/dist/components/Wallet/SignIn/index.js +3 -3
- package/dist/components/Wallet/SignUp/index.js +12 -11
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +11 -11
- package/dist/components/Wallet/Stake/id/index.js +12 -12
- package/dist/components/Wallet/Stake/index.js +12 -12
- package/dist/components/Wallet/Swap/form.d.ts +3 -0
- package/dist/components/Wallet/Swap/form.js +46 -0
- package/dist/components/Wallet/Swap/index.d.ts +3 -0
- package/dist/components/Wallet/Swap/index.js +19 -551
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
- package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +10 -10
- package/dist/components/Wallet/Withdraw/form.js +17 -17
- package/dist/components/Wallet/Withdraw/index.js +6 -6
- package/dist/{constants-DWENgBjv.js → constants-B1fWUUck.js} +1107 -1102
- package/dist/{createSvgIcon-BgBEJXMh.js → createSvgIcon-Cuzqm90l.js} +25 -24
- package/dist/{createTheme-DmGCMO09.js → createTheme-CD19zQB7.js} +13 -13
- package/dist/cryptoAssets-BU3EHVIY.js +16 -0
- package/dist/defaultTheme-C35y5cLB.js +5 -0
- package/dist/{dividerClasses-BVK5cNr7.js → dividerClasses-BDxa2gAa.js} +2 -2
- package/dist/{documents-BA_pUCQh.js → documents-PylmjRbk.js} +24 -24
- package/dist/{elementAcceptingRef-BbsmdE_3.js → elementAcceptingRef-CqLvP78G.js} +1 -1
- package/dist/{elementTypeAcceptingRef-CdmXUhJ8.js → elementTypeAcceptingRef-BdsMpCbS.js} +1 -1
- package/dist/{emotion-react.browser.esm-C2mxoK1z.js → emotion-react.browser.esm-BIrDfk-B.js} +43 -43
- package/dist/{extendSxProp-Bwha5fon.js → extendSxProp-B8UjbJ56.js} +1 -1
- package/dist/generateUtilityClasses-BRiE4Guh.js +10 -0
- package/dist/hoc/withThemeProvider.js +5 -5
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useRrDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +23 -22
- 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 +1 -1
- package/dist/icons/failedRedeemIcon.js +1 -1
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-x9CniyQB.js → index-B0Z-Gjno.js} +1 -1
- package/dist/index-BJsAyUhP.js +730 -0
- package/dist/index-BW-RJYiq.js +499 -0
- package/dist/index-CQ-u6bTN.js +917 -0
- package/dist/{index-CNLxRkdf.js → index-DUCRi3yf.js} +31 -32
- package/dist/{index-C86AoaoB.js → index-DUcLo3x5.js} +4 -4
- package/dist/index-DjWC9DGk.js +623 -0
- package/dist/{index-GXDDOdOI.js → index-Dka1TfUt.js} +42 -43
- package/dist/{index-v4KC1K_V.js → index-FwnHkXdK.js} +4 -4
- package/dist/{index-Cz_n7X7q.js → index-OSl1NZiT.js} +40 -41
- package/dist/{kyc-DbZ4KGFX.js → kyc-CSbzb5MW.js} +3 -3
- package/dist/main.js +10 -10
- package/dist/{memoTheme-BUUB1UEO.js → memoTheme-yHaPezod.js} +1 -1
- package/dist/order-BtLfPFH9.js +51 -0
- package/dist/{radioButton-CBcYX40o.js → radioButton-CzlYB0Lh.js} +18 -17
- package/dist/{react-redux-C7I9-1M6.js → react-redux-B4BZippc.js} +2 -2
- package/dist/{refType-CaiGhRso.js → refType-BsTH3qnM.js} +1 -1
- package/dist/{stake-tw1n23io.js → stake-C7IQSI0J.js} +1 -1
- package/dist/styles.module-CHEBh2ID.js +35 -0
- package/dist/{styles.module-verVx4pE.js → styles.module-CUA1zLEJ.js} +1 -1
- package/dist/{tokenRow-C5N2uPgO.js → tokenRow-D32W5WH3.js} +2 -2
- package/dist/{tooltip-Dv3Lfsa2.js → tooltip-3UvETWtS.js} +19 -18
- package/dist/{useSlot-DtSnboW7.js → useSlot-CW7SOYlh.js} +1 -1
- package/dist/{useSlotProps-D62tWbb1.js → useSlotProps-BfEOwJvJ.js} +1 -1
- package/dist/{useTheme-XTDzJ69d.js → useTheme-BQJ5lp0i.js} +3 -3
- package/dist/{useTheme-Bfw5Gt1b.js → useTheme-S5_DHFsQ.js} +1 -1
- package/dist/{useThemeProps-DLhzJP-y.js → useThemeProps-DN9MjdTl.js} +3 -3
- package/dist/{wallet-DZwD-8oa.js → wallet-Bq1E67kO.js} +1 -1
- package/package.json +2 -2
- package/dist/DefaultPropsProvider-4P82EuVL.js +0 -232
- package/dist/DefaultPropsProvider-CZh8M2jM.js +0 -351
- package/dist/PlayArrow-BCWGWaUq.js +0 -8
- package/dist/cryptoAssets-C7fIAflf.js +0 -16
- package/dist/defaultTheme-9fAph5zo.js +0 -5
- package/dist/fiatAssets-Bkh4X4hq.js +0 -8
- package/dist/index-BtYuKn1z.js +0 -724
- package/dist/index-BvD3O03n.js +0 -483
- package/dist/index-dsM-tUkI.js +0 -708
- package/dist/order-BLu2iLAt.js +0 -43
- package/dist/styles.module-CRVptIQs.js +0 -33
|
@@ -1,374 +1,364 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
import { a as bt } from "./refType-CaiGhRso.js";
|
|
26
|
-
import { s as io } from "./Portal-CLa9CbMv.js";
|
|
27
|
-
import { c as so } from "./createSvgIcon-BgBEJXMh.js";
|
|
28
|
-
import { c as mt } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
29
|
-
import { u as co } from "./TransitionGroupContext-CYRQkQ6k.js";
|
|
30
|
-
import { B as Ht } from "./ButtonBase-CaH152Zd.js";
|
|
31
|
-
import { c as Wt } from "./chainPropTypes-D9lkm76m.js";
|
|
32
|
-
import { T as po } from "./TextField-DmiK1A_S.js";
|
|
33
|
-
import { C as uo } from "./CircularProgress-Yx712vpT.js";
|
|
34
|
-
function fo(e, r, a, c, h) {
|
|
1
|
+
import * as h from "react";
|
|
2
|
+
import { g as Ct, b as y, P as t, a as _ } from "./createTheme-CD19zQB7.js";
|
|
3
|
+
import { c as de } from "./clsx-BTaloaeC.js";
|
|
4
|
+
import { i as xt, o as At, A as Gt } from "./Select-CB5yWmyn.js";
|
|
5
|
+
import { i as Oe, f as Me } from "./FilledInput-DuNqnPjc.js";
|
|
6
|
+
import { C as Kt } from "./Close-CxzDL3J-.js";
|
|
7
|
+
import { m as fe } from "./memoTheme-yHaPezod.js";
|
|
8
|
+
import { g as $t } from "./generateUtilityClasses-BRiE4Guh.js";
|
|
9
|
+
import { u as Ye } from "./useSlot-CW7SOYlh.js";
|
|
10
|
+
import { jsx as D, jsxs as Xe } from "react/jsx-runtime";
|
|
11
|
+
import { s as W, u as Ot, c as Pt } from "./DefaultPropsProvider-oAu9El-f.js";
|
|
12
|
+
import { I as jt } from "./IconButton-DHm-hucF.js";
|
|
13
|
+
import { P as Ht } from "./Popper-BBAoiZKn.js";
|
|
14
|
+
import { P as Ut, i as _t } from "./Paper-Bgt2WXI6.js";
|
|
15
|
+
import { u as qt } from "./useId-CK6Kn3Tn.js";
|
|
16
|
+
import { u as It } from "./useControlled-nm4pBabJ.js";
|
|
17
|
+
import { a as ct } from "./refType-BsTH3qnM.js";
|
|
18
|
+
import { s as Jt } from "./Portal-BMAxiQwe.js";
|
|
19
|
+
import { c as Xt } from "./createSvgIcon-Cuzqm90l.js";
|
|
20
|
+
import { c as pt } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
21
|
+
import { u as Yt } from "./TransitionGroupContext-CYRQkQ6k.js";
|
|
22
|
+
import { B as Rt } from "./ButtonBase-DLF5c6wi.js";
|
|
23
|
+
import { c as Dt } from "./chainPropTypes-D9lkm76m.js";
|
|
24
|
+
function Qt(e, r, l, s, b) {
|
|
35
25
|
if (process.env.NODE_ENV === "production")
|
|
36
26
|
return null;
|
|
37
|
-
const
|
|
38
|
-
return typeof e[r] < "u" ? new Error(`The prop \`${
|
|
27
|
+
const P = b || r;
|
|
28
|
+
return typeof e[r] < "u" ? new Error(`The prop \`${P}\` is not supported. Please remove it.`) : null;
|
|
39
29
|
}
|
|
40
|
-
const
|
|
41
|
-
const r =
|
|
42
|
-
return
|
|
30
|
+
const Zt = (e) => {
|
|
31
|
+
const r = h.useRef({});
|
|
32
|
+
return h.useEffect(() => {
|
|
43
33
|
r.current = e;
|
|
44
34
|
}), r.current;
|
|
45
35
|
};
|
|
46
|
-
function
|
|
36
|
+
function Nt(e) {
|
|
47
37
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
48
38
|
}
|
|
49
|
-
function
|
|
39
|
+
function eo(e = {}) {
|
|
50
40
|
const {
|
|
51
41
|
ignoreAccents: r = !0,
|
|
52
|
-
ignoreCase:
|
|
53
|
-
limit:
|
|
54
|
-
matchFrom:
|
|
55
|
-
stringify:
|
|
56
|
-
trim:
|
|
42
|
+
ignoreCase: l = !0,
|
|
43
|
+
limit: s,
|
|
44
|
+
matchFrom: b = "any",
|
|
45
|
+
stringify: P,
|
|
46
|
+
trim: $ = !1
|
|
57
47
|
} = e;
|
|
58
48
|
return (I, {
|
|
59
|
-
inputValue:
|
|
60
|
-
getOptionLabel:
|
|
49
|
+
inputValue: k,
|
|
50
|
+
getOptionLabel: C
|
|
61
51
|
}) => {
|
|
62
|
-
let
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
let
|
|
66
|
-
return
|
|
52
|
+
let T = $ ? k.trim() : k;
|
|
53
|
+
l && (T = T.toLowerCase()), r && (T = Nt(T));
|
|
54
|
+
const N = T ? I.filter((le) => {
|
|
55
|
+
let L = (P || C)(le);
|
|
56
|
+
return l && (L = L.toLowerCase()), r && (L = Nt(L)), b === "start" ? L.startsWith(T) : L.includes(T);
|
|
67
57
|
}) : I;
|
|
68
|
-
return typeof
|
|
58
|
+
return typeof s == "number" ? N.slice(0, s) : N;
|
|
69
59
|
};
|
|
70
60
|
}
|
|
71
|
-
const
|
|
61
|
+
const to = eo(), Et = 5, oo = (e) => {
|
|
72
62
|
var r;
|
|
73
63
|
return e.current !== null && ((r = e.current.parentElement) == null ? void 0 : r.contains(document.activeElement));
|
|
74
|
-
},
|
|
75
|
-
function
|
|
76
|
-
if (r || e == null ||
|
|
64
|
+
}, no = [];
|
|
65
|
+
function Mt(e, r, l, s) {
|
|
66
|
+
if (r || e == null || s)
|
|
77
67
|
return "";
|
|
78
|
-
const
|
|
79
|
-
return typeof
|
|
68
|
+
const b = l(e);
|
|
69
|
+
return typeof b == "string" ? b : "";
|
|
80
70
|
}
|
|
81
|
-
function
|
|
71
|
+
function ro(e) {
|
|
82
72
|
const {
|
|
83
73
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
84
|
-
unstable_isActiveElementInListbox: r =
|
|
74
|
+
unstable_isActiveElementInListbox: r = oo,
|
|
85
75
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
86
|
-
unstable_classNamePrefix:
|
|
87
|
-
autoComplete:
|
|
88
|
-
autoHighlight:
|
|
89
|
-
autoSelect:
|
|
90
|
-
blurOnSelect:
|
|
76
|
+
unstable_classNamePrefix: l = "Mui",
|
|
77
|
+
autoComplete: s = !1,
|
|
78
|
+
autoHighlight: b = !1,
|
|
79
|
+
autoSelect: P = !1,
|
|
80
|
+
blurOnSelect: $ = !1,
|
|
91
81
|
clearOnBlur: I = !e.freeSolo,
|
|
92
|
-
clearOnEscape:
|
|
93
|
-
componentName:
|
|
94
|
-
defaultValue:
|
|
95
|
-
disableClearable:
|
|
96
|
-
disableCloseOnSelect:
|
|
97
|
-
disabled:
|
|
98
|
-
disabledItemsFocusable:
|
|
99
|
-
disableListWrap:
|
|
100
|
-
filterOptions:
|
|
101
|
-
filterSelectedOptions:
|
|
102
|
-
freeSolo:
|
|
103
|
-
getOptionDisabled:
|
|
104
|
-
getOptionKey:
|
|
105
|
-
getOptionLabel:
|
|
106
|
-
groupBy:
|
|
107
|
-
handleHomeEndKeys:
|
|
108
|
-
id:
|
|
109
|
-
includeInputInList:
|
|
110
|
-
inputValue:
|
|
111
|
-
isOptionEqualToValue:
|
|
112
|
-
multiple:
|
|
113
|
-
onChange:
|
|
114
|
-
onClose:
|
|
115
|
-
onHighlightChange:
|
|
116
|
-
onInputChange:
|
|
117
|
-
onOpen:
|
|
118
|
-
open:
|
|
119
|
-
openOnFocus:
|
|
120
|
-
options:
|
|
121
|
-
readOnly:
|
|
122
|
-
renderValue:
|
|
123
|
-
selectOnFocus:
|
|
124
|
-
value:
|
|
125
|
-
} = e,
|
|
126
|
-
let
|
|
127
|
-
|
|
128
|
-
const o =
|
|
82
|
+
clearOnEscape: k = !1,
|
|
83
|
+
componentName: C = "useAutocomplete",
|
|
84
|
+
defaultValue: T = e.multiple ? no : null,
|
|
85
|
+
disableClearable: N = !1,
|
|
86
|
+
disableCloseOnSelect: le = !1,
|
|
87
|
+
disabled: L,
|
|
88
|
+
disabledItemsFocusable: G = !1,
|
|
89
|
+
disableListWrap: ge = !1,
|
|
90
|
+
filterOptions: Ve = to,
|
|
91
|
+
filterSelectedOptions: Pe = !1,
|
|
92
|
+
freeSolo: ie = !1,
|
|
93
|
+
getOptionDisabled: q,
|
|
94
|
+
getOptionKey: Se,
|
|
95
|
+
getOptionLabel: ze = (n) => n.label ?? n,
|
|
96
|
+
groupBy: oe,
|
|
97
|
+
handleHomeEndKeys: Fe = !e.freeSolo,
|
|
98
|
+
id: Qe,
|
|
99
|
+
includeInputInList: be = !1,
|
|
100
|
+
inputValue: me,
|
|
101
|
+
isOptionEqualToValue: J = (n, o) => n === o,
|
|
102
|
+
multiple: g = !1,
|
|
103
|
+
onChange: ye,
|
|
104
|
+
onClose: he,
|
|
105
|
+
onHighlightChange: se,
|
|
106
|
+
onInputChange: M,
|
|
107
|
+
onOpen: ke,
|
|
108
|
+
open: je,
|
|
109
|
+
openOnFocus: Te = !1,
|
|
110
|
+
options: we,
|
|
111
|
+
readOnly: X = !1,
|
|
112
|
+
renderValue: V,
|
|
113
|
+
selectOnFocus: He = !e.freeSolo,
|
|
114
|
+
value: Le
|
|
115
|
+
} = e, z = qt(Qe);
|
|
116
|
+
let p = ze;
|
|
117
|
+
p = (n) => {
|
|
118
|
+
const o = ze(n);
|
|
129
119
|
if (typeof o != "string") {
|
|
130
120
|
if (process.env.NODE_ENV !== "production") {
|
|
131
|
-
const
|
|
132
|
-
console.error(`MUI: The \`getOptionLabel\` method of ${
|
|
121
|
+
const a = o === void 0 ? "undefined" : `${typeof o} (${o})`;
|
|
122
|
+
console.error(`MUI: The \`getOptionLabel\` method of ${C} returned ${a} instead of a string for ${JSON.stringify(n)}.`);
|
|
133
123
|
}
|
|
134
124
|
return String(o);
|
|
135
125
|
}
|
|
136
126
|
return o;
|
|
137
127
|
};
|
|
138
|
-
const
|
|
139
|
-
controlled:
|
|
140
|
-
default:
|
|
141
|
-
name:
|
|
142
|
-
}), [
|
|
143
|
-
controlled:
|
|
144
|
-
default:
|
|
145
|
-
name:
|
|
128
|
+
const j = h.useRef(!1), H = h.useRef(!0), S = h.useRef(null), Y = h.useRef(null), [Ue, St] = h.useState(null), [K, Ze] = h.useState(-1), dt = b ? 0 : -1, E = h.useRef(dt), kt = h.useRef(Mt(T ?? Le, g, p)).current, [c, Be] = It({
|
|
129
|
+
controlled: Le,
|
|
130
|
+
default: T,
|
|
131
|
+
name: C
|
|
132
|
+
}), [x, ve] = It({
|
|
133
|
+
controlled: me,
|
|
134
|
+
default: kt,
|
|
135
|
+
name: C,
|
|
146
136
|
state: "inputValue"
|
|
147
|
-
}), [
|
|
148
|
-
if (!(
|
|
137
|
+
}), [Ae, et] = h.useState(!1), Re = h.useCallback((n, o, a) => {
|
|
138
|
+
if (!(g ? c.length < o.length : o !== null) && !I)
|
|
149
139
|
return;
|
|
150
|
-
const i =
|
|
151
|
-
|
|
152
|
-
}, [
|
|
153
|
-
controlled:
|
|
140
|
+
const i = Mt(o, g, p, V);
|
|
141
|
+
x !== i && (ve(i), M && M(n, i, a));
|
|
142
|
+
}, [p, x, g, M, ve, I, c, V]), [ne, xe] = It({
|
|
143
|
+
controlled: je,
|
|
154
144
|
default: !1,
|
|
155
|
-
name:
|
|
145
|
+
name: C,
|
|
156
146
|
state: "open"
|
|
157
|
-
}), [
|
|
158
|
-
|
|
147
|
+
}), [Tt, De] = h.useState(!0), tt = !g && c != null && x === p(c), U = ne && !X, O = U ? Ve(
|
|
148
|
+
we.filter((n) => !(Pe && (g ? c : [c]).some((o) => o !== null && J(n, o)))),
|
|
159
149
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
160
150
|
// i.e. the filter predicate always returns true
|
|
161
151
|
{
|
|
162
|
-
inputValue:
|
|
163
|
-
getOptionLabel:
|
|
152
|
+
inputValue: tt && Tt ? "" : x,
|
|
153
|
+
getOptionLabel: p
|
|
164
154
|
}
|
|
165
|
-
) : [],
|
|
166
|
-
filteredOptions:
|
|
167
|
-
value:
|
|
168
|
-
inputValue:
|
|
155
|
+
) : [], Q = Zt({
|
|
156
|
+
filteredOptions: O,
|
|
157
|
+
value: c,
|
|
158
|
+
inputValue: x
|
|
169
159
|
});
|
|
170
|
-
|
|
171
|
-
const n =
|
|
172
|
-
|
|
173
|
-
}, [
|
|
174
|
-
const
|
|
160
|
+
h.useEffect(() => {
|
|
161
|
+
const n = c !== Q.value;
|
|
162
|
+
Ae && !n || ie && !n || Re(null, c, "reset");
|
|
163
|
+
}, [c, Re, Ae, Q.value, ie]);
|
|
164
|
+
const ot = ne && O.length > 0 && !X, Z = ct((n) => {
|
|
175
165
|
if (n === -1)
|
|
176
|
-
|
|
166
|
+
S.current.focus();
|
|
177
167
|
else {
|
|
178
|
-
const o =
|
|
179
|
-
|
|
168
|
+
const o = V ? "data-item-index" : "data-tag-index";
|
|
169
|
+
Ue.querySelector(`[${o}="${n}"]`).focus();
|
|
180
170
|
}
|
|
181
171
|
});
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}, [
|
|
185
|
-
function
|
|
186
|
-
if (!
|
|
172
|
+
h.useEffect(() => {
|
|
173
|
+
g && K > c.length - 1 && (Ze(-1), Z(-1));
|
|
174
|
+
}, [c, g, K, Z]);
|
|
175
|
+
function ft(n, o) {
|
|
176
|
+
if (!Y.current || n < 0 || n >= O.length)
|
|
187
177
|
return -1;
|
|
188
|
-
let
|
|
178
|
+
let a = n;
|
|
189
179
|
for (; ; ) {
|
|
190
|
-
const
|
|
191
|
-
if (
|
|
192
|
-
return
|
|
193
|
-
if (o === "next" ?
|
|
180
|
+
const d = Y.current.querySelector(`[data-option-index="${a}"]`), i = G ? !1 : !d || d.disabled || d.getAttribute("aria-disabled") === "true";
|
|
181
|
+
if (d && d.hasAttribute("tabindex") && !i)
|
|
182
|
+
return a;
|
|
183
|
+
if (o === "next" ? a = (a + 1) % O.length : a = (a - 1 + O.length) % O.length, a === n)
|
|
194
184
|
return -1;
|
|
195
185
|
}
|
|
196
186
|
}
|
|
197
|
-
const
|
|
187
|
+
const re = ct(({
|
|
198
188
|
event: n,
|
|
199
189
|
index: o,
|
|
200
|
-
reason:
|
|
190
|
+
reason: a
|
|
201
191
|
}) => {
|
|
202
|
-
if (
|
|
192
|
+
if (E.current = o, o === -1 ? S.current.removeAttribute("aria-activedescendant") : S.current.setAttribute("aria-activedescendant", `${z}-option-${o}`), se && ["mouse", "keyboard", "touch"].includes(a) && se(n, o === -1 ? null : O[o], a), !Y.current)
|
|
203
193
|
return;
|
|
204
|
-
const
|
|
205
|
-
|
|
206
|
-
let i =
|
|
207
|
-
if (
|
|
194
|
+
const d = Y.current.querySelector(`[role="option"].${l}-focused`);
|
|
195
|
+
d && (d.classList.remove(`${l}-focused`), d.classList.remove(`${l}-focusVisible`));
|
|
196
|
+
let i = Y.current;
|
|
197
|
+
if (Y.current.getAttribute("role") !== "listbox" && (i = Y.current.parentElement.querySelector('[role="listbox"]')), !i)
|
|
208
198
|
return;
|
|
209
199
|
if (o === -1) {
|
|
210
200
|
i.scrollTop = 0;
|
|
211
201
|
return;
|
|
212
202
|
}
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
const
|
|
216
|
-
|
|
203
|
+
const v = Y.current.querySelector(`[data-option-index="${o}"]`);
|
|
204
|
+
if (v && (v.classList.add(`${l}-focused`), a === "keyboard" && v.classList.add(`${l}-focusVisible`), i.scrollHeight > i.clientHeight && a !== "mouse" && a !== "touch")) {
|
|
205
|
+
const w = v, F = i.clientHeight + i.scrollTop, qe = w.offsetTop + w.offsetHeight;
|
|
206
|
+
qe > F ? i.scrollTop = qe - i.clientHeight : w.offsetTop - w.offsetHeight * (oe ? 1.3 : 0) < i.scrollTop && (i.scrollTop = w.offsetTop - w.offsetHeight * (oe ? 1.3 : 0));
|
|
217
207
|
}
|
|
218
|
-
}),
|
|
208
|
+
}), ee = ct(({
|
|
219
209
|
event: n,
|
|
220
210
|
diff: o,
|
|
221
|
-
direction:
|
|
222
|
-
reason:
|
|
211
|
+
direction: a = "next",
|
|
212
|
+
reason: d
|
|
223
213
|
}) => {
|
|
224
|
-
if (!
|
|
214
|
+
if (!U)
|
|
225
215
|
return;
|
|
226
|
-
const
|
|
227
|
-
const
|
|
216
|
+
const v = ft((() => {
|
|
217
|
+
const w = O.length - 1;
|
|
228
218
|
if (o === "reset")
|
|
229
|
-
return
|
|
219
|
+
return dt;
|
|
230
220
|
if (o === "start")
|
|
231
221
|
return 0;
|
|
232
222
|
if (o === "end")
|
|
233
|
-
return
|
|
234
|
-
const
|
|
235
|
-
return
|
|
236
|
-
})(),
|
|
237
|
-
if (
|
|
238
|
-
index:
|
|
239
|
-
reason:
|
|
223
|
+
return w;
|
|
224
|
+
const F = E.current + o;
|
|
225
|
+
return F < 0 ? F === -1 && be ? -1 : ge && E.current !== -1 || Math.abs(o) > 1 ? 0 : w : F > w ? F === w + 1 && be ? -1 : ge || Math.abs(o) > 1 ? w : 0 : F;
|
|
226
|
+
})(), a);
|
|
227
|
+
if (re({
|
|
228
|
+
index: v,
|
|
229
|
+
reason: d,
|
|
240
230
|
event: n
|
|
241
|
-
}),
|
|
242
|
-
if (
|
|
243
|
-
|
|
231
|
+
}), s && o !== "reset")
|
|
232
|
+
if (v === -1)
|
|
233
|
+
S.current.value = x;
|
|
244
234
|
else {
|
|
245
|
-
const
|
|
246
|
-
|
|
235
|
+
const w = p(O[v]);
|
|
236
|
+
S.current.value = w, w.toLowerCase().indexOf(x.toLowerCase()) === 0 && x.length > 0 && S.current.setSelectionRange(x.length, w.length);
|
|
247
237
|
}
|
|
248
|
-
}),
|
|
249
|
-
const n = (o,
|
|
250
|
-
const
|
|
251
|
-
return
|
|
238
|
+
}), gt = () => {
|
|
239
|
+
const n = (o, a) => {
|
|
240
|
+
const d = o ? p(o) : "", i = a ? p(a) : "";
|
|
241
|
+
return d === i;
|
|
252
242
|
};
|
|
253
|
-
if (
|
|
254
|
-
const o =
|
|
243
|
+
if (E.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== O.length && Q.inputValue === x && (g ? c.length === Q.value.length && Q.value.every((o, a) => p(c[a]) === p(o)) : n(Q.value, c))) {
|
|
244
|
+
const o = Q.filteredOptions[E.current];
|
|
255
245
|
if (o)
|
|
256
|
-
return
|
|
246
|
+
return O.findIndex((a) => p(a) === p(o));
|
|
257
247
|
}
|
|
258
248
|
return -1;
|
|
259
|
-
},
|
|
260
|
-
if (!
|
|
249
|
+
}, We = h.useCallback(() => {
|
|
250
|
+
if (!U)
|
|
261
251
|
return;
|
|
262
|
-
const n =
|
|
252
|
+
const n = gt();
|
|
263
253
|
if (n !== -1) {
|
|
264
|
-
|
|
254
|
+
E.current = n;
|
|
265
255
|
return;
|
|
266
256
|
}
|
|
267
|
-
const o =
|
|
268
|
-
if (
|
|
269
|
-
|
|
257
|
+
const o = g ? c[0] : c;
|
|
258
|
+
if (O.length === 0 || o == null) {
|
|
259
|
+
ee({
|
|
270
260
|
diff: "reset"
|
|
271
261
|
});
|
|
272
262
|
return;
|
|
273
263
|
}
|
|
274
|
-
if (
|
|
264
|
+
if (Y.current) {
|
|
275
265
|
if (o != null) {
|
|
276
|
-
const
|
|
277
|
-
if (
|
|
266
|
+
const a = O[E.current];
|
|
267
|
+
if (g && a && c.findIndex((i) => J(a, i)) !== -1)
|
|
278
268
|
return;
|
|
279
|
-
const
|
|
280
|
-
|
|
269
|
+
const d = O.findIndex((i) => J(i, o));
|
|
270
|
+
d === -1 ? ee({
|
|
281
271
|
diff: "reset"
|
|
282
|
-
}) :
|
|
283
|
-
index:
|
|
272
|
+
}) : re({
|
|
273
|
+
index: d
|
|
284
274
|
});
|
|
285
275
|
return;
|
|
286
276
|
}
|
|
287
|
-
if (
|
|
288
|
-
|
|
289
|
-
index:
|
|
277
|
+
if (E.current >= O.length - 1) {
|
|
278
|
+
re({
|
|
279
|
+
index: O.length - 1
|
|
290
280
|
});
|
|
291
281
|
return;
|
|
292
282
|
}
|
|
293
|
-
|
|
294
|
-
index:
|
|
283
|
+
re({
|
|
284
|
+
index: E.current
|
|
295
285
|
});
|
|
296
286
|
}
|
|
297
287
|
}, [
|
|
298
288
|
// Only sync the highlighted index when the option switch between empty and not
|
|
299
|
-
|
|
289
|
+
O.length,
|
|
300
290
|
// Don't sync the highlighted index with the value when multiple
|
|
301
291
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
302
|
-
|
|
303
|
-
|
|
292
|
+
g ? !1 : c,
|
|
293
|
+
Pe,
|
|
294
|
+
ee,
|
|
304
295
|
re,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
io(ee, n), n && _e();
|
|
296
|
+
U,
|
|
297
|
+
x,
|
|
298
|
+
g
|
|
299
|
+
]), bt = ct((n) => {
|
|
300
|
+
Jt(Y, n), n && We();
|
|
311
301
|
});
|
|
312
|
-
process.env.NODE_ENV !== "production" &&
|
|
313
|
-
(!
|
|
314
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
302
|
+
process.env.NODE_ENV !== "production" && h.useEffect(() => {
|
|
303
|
+
(!S.current || S.current.nodeName !== "INPUT") && (S.current && S.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${C} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
304
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${S.current} while an HTMLInputElement was expected.`, `Instead, ${C} expects an input element.`, "", C === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
|
|
315
305
|
`)));
|
|
316
|
-
}, [
|
|
317
|
-
|
|
318
|
-
}, [
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
},
|
|
322
|
-
|
|
323
|
-
},
|
|
324
|
-
if (
|
|
325
|
-
if (
|
|
306
|
+
}, [C]), h.useEffect(() => {
|
|
307
|
+
We();
|
|
308
|
+
}, [We]);
|
|
309
|
+
const B = (n) => {
|
|
310
|
+
ne || (xe(!0), De(!0), ke && ke(n));
|
|
311
|
+
}, Ie = (n, o) => {
|
|
312
|
+
ne && (xe(!1), he && he(n, o));
|
|
313
|
+
}, ae = (n, o, a, d) => {
|
|
314
|
+
if (g) {
|
|
315
|
+
if (c.length === o.length && c.every((i, v) => i === o[v]))
|
|
326
316
|
return;
|
|
327
|
-
} else if (
|
|
317
|
+
} else if (c === o)
|
|
328
318
|
return;
|
|
329
|
-
|
|
330
|
-
},
|
|
331
|
-
let i =
|
|
332
|
-
if (
|
|
333
|
-
if (
|
|
334
|
-
const
|
|
335
|
-
|
|
319
|
+
ye && ye(n, o, a, d), Be(o);
|
|
320
|
+
}, Ne = h.useRef(!1), te = (n, o, a = "selectOption", d = "options") => {
|
|
321
|
+
let i = a, v = o;
|
|
322
|
+
if (g) {
|
|
323
|
+
if (v = Array.isArray(c) ? c.slice() : [], process.env.NODE_ENV !== "production") {
|
|
324
|
+
const F = v.filter((qe) => J(o, qe));
|
|
325
|
+
F.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${C} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${F.length} matches.`].join(`
|
|
336
326
|
`));
|
|
337
327
|
}
|
|
338
|
-
const
|
|
339
|
-
|
|
328
|
+
const w = v.findIndex((F) => J(o, F));
|
|
329
|
+
w === -1 ? v.push(o) : d !== "freeSolo" && (v.splice(w, 1), i = "removeOption");
|
|
340
330
|
}
|
|
341
|
-
|
|
331
|
+
Re(n, v, i), ae(n, v, i, {
|
|
342
332
|
option: o
|
|
343
|
-
}), !
|
|
333
|
+
}), !le && (!n || !n.ctrlKey && !n.metaKey) && Ie(n, i), ($ === !0 || $ === "touch" && Ne.current || $ === "mouse" && !Ne.current) && S.current.blur();
|
|
344
334
|
};
|
|
345
|
-
function
|
|
335
|
+
function nt(n, o) {
|
|
346
336
|
if (n === -1)
|
|
347
337
|
return -1;
|
|
348
|
-
let
|
|
338
|
+
let a = n;
|
|
349
339
|
for (; ; ) {
|
|
350
|
-
if (o === "next" &&
|
|
340
|
+
if (o === "next" && a === c.length || o === "previous" && a === -1)
|
|
351
341
|
return -1;
|
|
352
|
-
const
|
|
342
|
+
const d = V ? "data-item-index" : "data-tag-index", i = Ue.querySelector(`[${d}="${a}"]`);
|
|
353
343
|
if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
|
|
354
|
-
|
|
344
|
+
a += o === "next" ? 1 : -1;
|
|
355
345
|
else
|
|
356
|
-
return
|
|
346
|
+
return a;
|
|
357
347
|
}
|
|
358
348
|
}
|
|
359
|
-
const
|
|
360
|
-
if (!
|
|
349
|
+
const rt = (n, o) => {
|
|
350
|
+
if (!g)
|
|
361
351
|
return;
|
|
362
|
-
|
|
363
|
-
let
|
|
364
|
-
|
|
365
|
-
},
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
if (n.onKeyDown && n.onKeyDown(o), !o.defaultMuiPrevented && (
|
|
352
|
+
x === "" && Ie(n, "toggleInput");
|
|
353
|
+
let a = K;
|
|
354
|
+
K === -1 ? x === "" && o === "previous" && (a = c.length - 1) : (a += o === "next" ? 1 : -1, a < 0 && (a = 0), a === c.length && (a = -1)), a = nt(a, o), Ze(a), Z(a);
|
|
355
|
+
}, Ce = (n) => {
|
|
356
|
+
j.current = !0, ve(""), M && M(n, "", "clear"), ae(n, g ? [] : null, "clear");
|
|
357
|
+
}, mt = (n) => (o) => {
|
|
358
|
+
if (n.onKeyDown && n.onKeyDown(o), !o.defaultMuiPrevented && (K !== -1 && !["ArrowLeft", "ArrowRight"].includes(o.key) && (Ze(-1), Z(-1)), o.which !== 229))
|
|
369
359
|
switch (o.key) {
|
|
370
360
|
case "Home":
|
|
371
|
-
|
|
361
|
+
U && Fe && (o.preventDefault(), ee({
|
|
372
362
|
diff: "start",
|
|
373
363
|
direction: "next",
|
|
374
364
|
reason: "keyboard",
|
|
@@ -376,7 +366,7 @@ function vo(e) {
|
|
|
376
366
|
}));
|
|
377
367
|
break;
|
|
378
368
|
case "End":
|
|
379
|
-
|
|
369
|
+
U && Fe && (o.preventDefault(), ee({
|
|
380
370
|
diff: "end",
|
|
381
371
|
direction: "previous",
|
|
382
372
|
reason: "keyboard",
|
|
@@ -384,192 +374,192 @@ function vo(e) {
|
|
|
384
374
|
}));
|
|
385
375
|
break;
|
|
386
376
|
case "PageUp":
|
|
387
|
-
o.preventDefault(),
|
|
388
|
-
diff: -
|
|
377
|
+
o.preventDefault(), ee({
|
|
378
|
+
diff: -Et,
|
|
389
379
|
direction: "previous",
|
|
390
380
|
reason: "keyboard",
|
|
391
381
|
event: o
|
|
392
|
-
}),
|
|
382
|
+
}), B(o);
|
|
393
383
|
break;
|
|
394
384
|
case "PageDown":
|
|
395
|
-
o.preventDefault(),
|
|
396
|
-
diff:
|
|
385
|
+
o.preventDefault(), ee({
|
|
386
|
+
diff: Et,
|
|
397
387
|
direction: "next",
|
|
398
388
|
reason: "keyboard",
|
|
399
389
|
event: o
|
|
400
|
-
}),
|
|
390
|
+
}), B(o);
|
|
401
391
|
break;
|
|
402
392
|
case "ArrowDown":
|
|
403
|
-
o.preventDefault(),
|
|
393
|
+
o.preventDefault(), ee({
|
|
404
394
|
diff: 1,
|
|
405
395
|
direction: "next",
|
|
406
396
|
reason: "keyboard",
|
|
407
397
|
event: o
|
|
408
|
-
}),
|
|
398
|
+
}), B(o);
|
|
409
399
|
break;
|
|
410
400
|
case "ArrowUp":
|
|
411
|
-
o.preventDefault(),
|
|
401
|
+
o.preventDefault(), ee({
|
|
412
402
|
diff: -1,
|
|
413
403
|
direction: "previous",
|
|
414
404
|
reason: "keyboard",
|
|
415
405
|
event: o
|
|
416
|
-
}),
|
|
406
|
+
}), B(o);
|
|
417
407
|
break;
|
|
418
408
|
case "ArrowLeft":
|
|
419
|
-
!
|
|
409
|
+
!g && V ? Z(0) : rt(o, "previous");
|
|
420
410
|
break;
|
|
421
411
|
case "ArrowRight":
|
|
422
|
-
!
|
|
412
|
+
!g && V ? Z(-1) : rt(o, "next");
|
|
423
413
|
break;
|
|
424
414
|
case "Enter":
|
|
425
|
-
if (
|
|
426
|
-
const
|
|
427
|
-
if (o.preventDefault(),
|
|
415
|
+
if (E.current !== -1 && U) {
|
|
416
|
+
const a = O[E.current], d = q ? q(a) : !1;
|
|
417
|
+
if (o.preventDefault(), d)
|
|
428
418
|
return;
|
|
429
|
-
|
|
430
|
-
} else
|
|
419
|
+
te(o, a, "selectOption"), s && S.current.setSelectionRange(S.current.value.length, S.current.value.length);
|
|
420
|
+
} else ie && x !== "" && tt === !1 && (g && o.preventDefault(), te(o, x, "createOption", "freeSolo"));
|
|
431
421
|
break;
|
|
432
422
|
case "Escape":
|
|
433
|
-
|
|
423
|
+
U ? (o.preventDefault(), o.stopPropagation(), Ie(o, "escape")) : k && (x !== "" || g && c.length > 0 || V) && (o.preventDefault(), o.stopPropagation(), Ce(o));
|
|
434
424
|
break;
|
|
435
425
|
case "Backspace":
|
|
436
|
-
if (
|
|
437
|
-
const
|
|
438
|
-
|
|
439
|
-
option:
|
|
426
|
+
if (g && !X && x === "" && c.length > 0) {
|
|
427
|
+
const a = K === -1 ? c.length - 1 : K, d = c.slice();
|
|
428
|
+
d.splice(a, 1), ae(o, d, "removeOption", {
|
|
429
|
+
option: c[a]
|
|
440
430
|
});
|
|
441
431
|
}
|
|
442
|
-
!
|
|
432
|
+
!g && V && !X && (Be(null), Z(-1));
|
|
443
433
|
break;
|
|
444
434
|
case "Delete":
|
|
445
|
-
if (
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
-
option:
|
|
435
|
+
if (g && !X && x === "" && c.length > 0 && K !== -1) {
|
|
436
|
+
const a = K, d = c.slice();
|
|
437
|
+
d.splice(a, 1), ae(o, d, "removeOption", {
|
|
438
|
+
option: c[a]
|
|
449
439
|
});
|
|
450
440
|
}
|
|
451
|
-
!
|
|
441
|
+
!g && V && !X && (Be(null), Z(-1));
|
|
452
442
|
break;
|
|
453
443
|
}
|
|
454
|
-
},
|
|
455
|
-
|
|
456
|
-
},
|
|
457
|
-
if (r(
|
|
458
|
-
|
|
444
|
+
}, yt = (n) => {
|
|
445
|
+
et(!0), Te && !j.current && B(n);
|
|
446
|
+
}, $e = (n) => {
|
|
447
|
+
if (r(Y)) {
|
|
448
|
+
S.current.focus();
|
|
459
449
|
return;
|
|
460
450
|
}
|
|
461
|
-
|
|
462
|
-
},
|
|
451
|
+
et(!1), H.current = !0, j.current = !1, P && E.current !== -1 && U ? te(n, O[E.current], "blur") : P && ie && x !== "" ? te(n, x, "blur", "freeSolo") : I && Re(n, c, "blur"), Ie(n, "blur");
|
|
452
|
+
}, Ge = (n) => {
|
|
463
453
|
const o = n.target.value;
|
|
464
|
-
|
|
465
|
-
},
|
|
454
|
+
x !== o && (ve(o), De(!1), M && M(n, o, "input")), o === "" ? !N && !g && ae(n, null, "clear") : B(n);
|
|
455
|
+
}, Ke = (n) => {
|
|
466
456
|
const o = Number(n.currentTarget.getAttribute("data-option-index"));
|
|
467
|
-
|
|
457
|
+
E.current !== o && re({
|
|
468
458
|
event: n,
|
|
469
459
|
index: o,
|
|
470
460
|
reason: "mouse"
|
|
471
461
|
});
|
|
472
|
-
},
|
|
473
|
-
|
|
462
|
+
}, ht = (n) => {
|
|
463
|
+
re({
|
|
474
464
|
event: n,
|
|
475
465
|
index: Number(n.currentTarget.getAttribute("data-option-index")),
|
|
476
466
|
reason: "touch"
|
|
477
|
-
}),
|
|
478
|
-
},
|
|
467
|
+
}), Ne.current = !0;
|
|
468
|
+
}, vt = (n) => {
|
|
479
469
|
const o = Number(n.currentTarget.getAttribute("data-option-index"));
|
|
480
|
-
|
|
481
|
-
},
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
option:
|
|
470
|
+
te(n, O[o], "selectOption"), Ne.current = !1;
|
|
471
|
+
}, at = (n) => (o) => {
|
|
472
|
+
const a = c.slice();
|
|
473
|
+
a.splice(n, 1), ae(o, a, "removeOption", {
|
|
474
|
+
option: c[n]
|
|
485
475
|
});
|
|
486
|
-
},
|
|
487
|
-
|
|
488
|
-
option:
|
|
476
|
+
}, wt = (n) => {
|
|
477
|
+
ae(n, null, "removeOption", {
|
|
478
|
+
option: c
|
|
489
479
|
});
|
|
490
|
-
},
|
|
491
|
-
|
|
492
|
-
},
|
|
493
|
-
n.currentTarget.contains(n.target) && n.target.getAttribute("id") !==
|
|
494
|
-
},
|
|
495
|
-
n.currentTarget.contains(n.target) && (
|
|
496
|
-
},
|
|
497
|
-
!
|
|
480
|
+
}, Ee = (n) => {
|
|
481
|
+
ne ? Ie(n, "toggleInput") : B(n);
|
|
482
|
+
}, A = (n) => {
|
|
483
|
+
n.currentTarget.contains(n.target) && n.target.getAttribute("id") !== z && n.preventDefault();
|
|
484
|
+
}, R = (n) => {
|
|
485
|
+
n.currentTarget.contains(n.target) && (S.current.focus(), He && H.current && S.current.selectionEnd - S.current.selectionStart === 0 && S.current.select(), H.current = !1);
|
|
486
|
+
}, ce = (n) => {
|
|
487
|
+
!L && (x === "" || !ne) && Ee(n);
|
|
498
488
|
};
|
|
499
|
-
let
|
|
500
|
-
|
|
501
|
-
let
|
|
502
|
-
if (
|
|
489
|
+
let _e = ie && x.length > 0;
|
|
490
|
+
_e = _e || (g ? c.length > 0 : c !== null);
|
|
491
|
+
let lt = O;
|
|
492
|
+
if (oe) {
|
|
503
493
|
const n = /* @__PURE__ */ new Map();
|
|
504
494
|
let o = !1;
|
|
505
|
-
|
|
506
|
-
const
|
|
507
|
-
return
|
|
495
|
+
lt = O.reduce((a, d, i) => {
|
|
496
|
+
const v = oe(d);
|
|
497
|
+
return a.length > 0 && a[a.length - 1].group === v ? a[a.length - 1].options.push(d) : (process.env.NODE_ENV !== "production" && (n.get(v) && !o && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${C} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), o = !0), n.set(v, !0)), a.push({
|
|
508
498
|
key: i,
|
|
509
499
|
index: i,
|
|
510
|
-
group:
|
|
511
|
-
options: [
|
|
512
|
-
})),
|
|
500
|
+
group: v,
|
|
501
|
+
options: [d]
|
|
502
|
+
})), a;
|
|
513
503
|
}, []);
|
|
514
504
|
}
|
|
515
|
-
return
|
|
505
|
+
return L && Ae && $e(), {
|
|
516
506
|
getRootProps: (n = {}) => ({
|
|
517
507
|
...n,
|
|
518
|
-
onKeyDown:
|
|
519
|
-
onMouseDown:
|
|
520
|
-
onClick:
|
|
508
|
+
onKeyDown: mt(n),
|
|
509
|
+
onMouseDown: A,
|
|
510
|
+
onClick: R
|
|
521
511
|
}),
|
|
522
512
|
getInputLabelProps: () => ({
|
|
523
|
-
id: `${
|
|
524
|
-
htmlFor:
|
|
513
|
+
id: `${z}-label`,
|
|
514
|
+
htmlFor: z
|
|
525
515
|
}),
|
|
526
516
|
getInputProps: () => ({
|
|
527
|
-
id:
|
|
528
|
-
value:
|
|
529
|
-
onBlur:
|
|
530
|
-
onFocus:
|
|
531
|
-
onChange:
|
|
532
|
-
onMouseDown:
|
|
517
|
+
id: z,
|
|
518
|
+
value: x,
|
|
519
|
+
onBlur: $e,
|
|
520
|
+
onFocus: yt,
|
|
521
|
+
onChange: Ge,
|
|
522
|
+
onMouseDown: ce,
|
|
533
523
|
// if open then this is handled imperatively so don't let react override
|
|
534
524
|
// only have an opinion about this when closed
|
|
535
|
-
"aria-activedescendant":
|
|
536
|
-
"aria-autocomplete":
|
|
537
|
-
"aria-controls":
|
|
538
|
-
"aria-expanded":
|
|
525
|
+
"aria-activedescendant": U ? "" : null,
|
|
526
|
+
"aria-autocomplete": s ? "both" : "list",
|
|
527
|
+
"aria-controls": ot ? `${z}-listbox` : void 0,
|
|
528
|
+
"aria-expanded": ot,
|
|
539
529
|
// Disable browser's suggestion that might overlap with the popup.
|
|
540
530
|
// Handle autocomplete but not autofill.
|
|
541
531
|
autoComplete: "off",
|
|
542
|
-
ref:
|
|
532
|
+
ref: S,
|
|
543
533
|
autoCapitalize: "none",
|
|
544
534
|
spellCheck: "false",
|
|
545
535
|
role: "combobox",
|
|
546
|
-
disabled:
|
|
536
|
+
disabled: L
|
|
547
537
|
}),
|
|
548
538
|
getClearProps: () => ({
|
|
549
539
|
tabIndex: -1,
|
|
550
540
|
type: "button",
|
|
551
|
-
onClick:
|
|
541
|
+
onClick: Ce
|
|
552
542
|
}),
|
|
553
543
|
getItemProps: ({
|
|
554
544
|
index: n = 0
|
|
555
545
|
} = {}) => ({
|
|
556
|
-
...
|
|
546
|
+
...g && {
|
|
557
547
|
key: n
|
|
558
548
|
},
|
|
559
|
-
...
|
|
549
|
+
...V ? {
|
|
560
550
|
"data-item-index": n
|
|
561
551
|
} : {
|
|
562
552
|
"data-tag-index": n
|
|
563
553
|
},
|
|
564
554
|
tabIndex: -1,
|
|
565
|
-
...!
|
|
566
|
-
onDelete:
|
|
555
|
+
...!X && {
|
|
556
|
+
onDelete: g ? at(n) : wt
|
|
567
557
|
}
|
|
568
558
|
}),
|
|
569
559
|
getPopupIndicatorProps: () => ({
|
|
570
560
|
tabIndex: -1,
|
|
571
561
|
type: "button",
|
|
572
|
-
onClick:
|
|
562
|
+
onClick: Ee
|
|
573
563
|
}),
|
|
574
564
|
// deprecated
|
|
575
565
|
getTagProps: ({
|
|
@@ -578,15 +568,15 @@ function vo(e) {
|
|
|
578
568
|
key: n,
|
|
579
569
|
"data-tag-index": n,
|
|
580
570
|
tabIndex: -1,
|
|
581
|
-
...!
|
|
582
|
-
onDelete:
|
|
571
|
+
...!X && {
|
|
572
|
+
onDelete: at(n)
|
|
583
573
|
}
|
|
584
574
|
}),
|
|
585
575
|
getListboxProps: () => ({
|
|
586
576
|
role: "listbox",
|
|
587
|
-
id: `${
|
|
588
|
-
"aria-labelledby": `${
|
|
589
|
-
ref:
|
|
577
|
+
id: `${z}-listbox`,
|
|
578
|
+
"aria-labelledby": `${z}-label`,
|
|
579
|
+
ref: bt,
|
|
590
580
|
onMouseDown: (n) => {
|
|
591
581
|
n.preventDefault();
|
|
592
582
|
}
|
|
@@ -595,60 +585,60 @@ function vo(e) {
|
|
|
595
585
|
index: n,
|
|
596
586
|
option: o
|
|
597
587
|
}) => {
|
|
598
|
-
const
|
|
588
|
+
const a = (g ? c : [c]).some((i) => i != null && J(o, i)), d = q ? q(o) : !1;
|
|
599
589
|
return {
|
|
600
|
-
key: (
|
|
590
|
+
key: (Se == null ? void 0 : Se(o)) ?? p(o),
|
|
601
591
|
tabIndex: -1,
|
|
602
592
|
role: "option",
|
|
603
|
-
id: `${
|
|
604
|
-
onMouseMove:
|
|
605
|
-
onClick:
|
|
606
|
-
onTouchStart:
|
|
593
|
+
id: `${z}-option-${n}`,
|
|
594
|
+
onMouseMove: Ke,
|
|
595
|
+
onClick: vt,
|
|
596
|
+
onTouchStart: ht,
|
|
607
597
|
"data-option-index": n,
|
|
608
|
-
"aria-disabled":
|
|
609
|
-
"aria-selected":
|
|
598
|
+
"aria-disabled": d,
|
|
599
|
+
"aria-selected": a
|
|
610
600
|
};
|
|
611
601
|
},
|
|
612
|
-
id:
|
|
613
|
-
inputValue:
|
|
614
|
-
value:
|
|
615
|
-
dirty:
|
|
616
|
-
expanded:
|
|
617
|
-
popupOpen:
|
|
618
|
-
focused:
|
|
619
|
-
anchorEl:
|
|
620
|
-
setAnchorEl:
|
|
621
|
-
focusedItem:
|
|
602
|
+
id: z,
|
|
603
|
+
inputValue: x,
|
|
604
|
+
value: c,
|
|
605
|
+
dirty: _e,
|
|
606
|
+
expanded: U && Ue,
|
|
607
|
+
popupOpen: U,
|
|
608
|
+
focused: Ae || K !== -1,
|
|
609
|
+
anchorEl: Ue,
|
|
610
|
+
setAnchorEl: St,
|
|
611
|
+
focusedItem: K,
|
|
622
612
|
// deprecated
|
|
623
|
-
focusedTag:
|
|
624
|
-
groupedOptions:
|
|
613
|
+
focusedTag: K,
|
|
614
|
+
groupedOptions: lt
|
|
625
615
|
};
|
|
626
616
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
617
|
+
function ao(e) {
|
|
618
|
+
return Ct("MuiListSubheader", e);
|
|
629
619
|
}
|
|
630
|
-
|
|
631
|
-
const
|
|
620
|
+
$t("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
|
|
621
|
+
const lo = (e) => {
|
|
632
622
|
const {
|
|
633
623
|
classes: r,
|
|
634
|
-
color:
|
|
635
|
-
disableGutters:
|
|
636
|
-
inset:
|
|
637
|
-
disableSticky:
|
|
638
|
-
} = e,
|
|
639
|
-
root: ["root",
|
|
624
|
+
color: l,
|
|
625
|
+
disableGutters: s,
|
|
626
|
+
inset: b,
|
|
627
|
+
disableSticky: P
|
|
628
|
+
} = e, $ = {
|
|
629
|
+
root: ["root", l !== "default" && `color${y(l)}`, !s && "gutters", b && "inset", !P && "sticky"]
|
|
640
630
|
};
|
|
641
|
-
return
|
|
642
|
-
},
|
|
631
|
+
return Pt($, ao, r);
|
|
632
|
+
}, io = W("li", {
|
|
643
633
|
name: "MuiListSubheader",
|
|
644
634
|
slot: "Root",
|
|
645
635
|
overridesResolver: (e, r) => {
|
|
646
636
|
const {
|
|
647
|
-
ownerState:
|
|
637
|
+
ownerState: l
|
|
648
638
|
} = e;
|
|
649
|
-
return [r.root,
|
|
639
|
+
return [r.root, l.color !== "default" && r[`color${y(l.color)}`], !l.disableGutters && r.gutters, l.inset && r.inset, !l.disableSticky && r.sticky];
|
|
650
640
|
}
|
|
651
|
-
})(
|
|
641
|
+
})(fe(({
|
|
652
642
|
theme: e
|
|
653
643
|
}) => ({
|
|
654
644
|
boxSizing: "border-box",
|
|
@@ -698,36 +688,36 @@ const Co = (e) => {
|
|
|
698
688
|
backgroundColor: (e.vars || e).palette.background.paper
|
|
699
689
|
}
|
|
700
690
|
}]
|
|
701
|
-
}))),
|
|
702
|
-
const
|
|
691
|
+
}))), ut = /* @__PURE__ */ h.forwardRef(function(r, l) {
|
|
692
|
+
const s = Ot({
|
|
703
693
|
props: r,
|
|
704
694
|
name: "MuiListSubheader"
|
|
705
695
|
}), {
|
|
706
|
-
className:
|
|
707
|
-
color:
|
|
708
|
-
component:
|
|
696
|
+
className: b,
|
|
697
|
+
color: P = "default",
|
|
698
|
+
component: $ = "li",
|
|
709
699
|
disableGutters: I = !1,
|
|
710
|
-
disableSticky:
|
|
711
|
-
inset:
|
|
712
|
-
...
|
|
713
|
-
} =
|
|
714
|
-
...
|
|
715
|
-
color:
|
|
716
|
-
component:
|
|
700
|
+
disableSticky: k = !1,
|
|
701
|
+
inset: C = !1,
|
|
702
|
+
...T
|
|
703
|
+
} = s, N = {
|
|
704
|
+
...s,
|
|
705
|
+
color: P,
|
|
706
|
+
component: $,
|
|
717
707
|
disableGutters: I,
|
|
718
|
-
disableSticky:
|
|
719
|
-
inset:
|
|
720
|
-
},
|
|
721
|
-
return /* @__PURE__ */
|
|
722
|
-
as:
|
|
723
|
-
className:
|
|
724
|
-
ref:
|
|
725
|
-
ownerState:
|
|
726
|
-
...
|
|
708
|
+
disableSticky: k,
|
|
709
|
+
inset: C
|
|
710
|
+
}, le = lo(N);
|
|
711
|
+
return /* @__PURE__ */ D(io, {
|
|
712
|
+
as: $,
|
|
713
|
+
className: de(le.root, b),
|
|
714
|
+
ref: l,
|
|
715
|
+
ownerState: N,
|
|
716
|
+
...T
|
|
727
717
|
});
|
|
728
718
|
});
|
|
729
|
-
|
|
730
|
-
process.env.NODE_ENV !== "production" && (
|
|
719
|
+
ut && (ut.muiSkipListHighlight = !0);
|
|
720
|
+
process.env.NODE_ENV !== "production" && (ut.propTypes = {
|
|
731
721
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
732
722
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
733
723
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -774,67 +764,67 @@ process.env.NODE_ENV !== "production" && (ht.propTypes = {
|
|
|
774
764
|
*/
|
|
775
765
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
776
766
|
});
|
|
777
|
-
const
|
|
767
|
+
const so = Xt(/* @__PURE__ */ D("path", {
|
|
778
768
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
779
769
|
}), "Cancel");
|
|
780
|
-
function
|
|
781
|
-
return
|
|
770
|
+
function co(e) {
|
|
771
|
+
return Ct("MuiChip", e);
|
|
782
772
|
}
|
|
783
|
-
const
|
|
773
|
+
const f = $t("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), po = (e) => {
|
|
784
774
|
const {
|
|
785
775
|
classes: r,
|
|
786
|
-
disabled:
|
|
787
|
-
size:
|
|
788
|
-
color:
|
|
789
|
-
iconColor:
|
|
790
|
-
onDelete:
|
|
776
|
+
disabled: l,
|
|
777
|
+
size: s,
|
|
778
|
+
color: b,
|
|
779
|
+
iconColor: P,
|
|
780
|
+
onDelete: $,
|
|
791
781
|
clickable: I,
|
|
792
|
-
variant:
|
|
793
|
-
} = e,
|
|
794
|
-
root: ["root",
|
|
795
|
-
label: ["label", `label${
|
|
796
|
-
avatar: ["avatar", `avatar${
|
|
797
|
-
icon: ["icon", `icon${
|
|
798
|
-
deleteIcon: ["deleteIcon", `deleteIcon${
|
|
782
|
+
variant: k
|
|
783
|
+
} = e, C = {
|
|
784
|
+
root: ["root", k, l && "disabled", `size${y(s)}`, `color${y(b)}`, I && "clickable", I && `clickableColor${y(b)}`, $ && "deletable", $ && `deletableColor${y(b)}`, `${k}${y(b)}`],
|
|
785
|
+
label: ["label", `label${y(s)}`],
|
|
786
|
+
avatar: ["avatar", `avatar${y(s)}`, `avatarColor${y(b)}`],
|
|
787
|
+
icon: ["icon", `icon${y(s)}`, `iconColor${y(P)}`],
|
|
788
|
+
deleteIcon: ["deleteIcon", `deleteIcon${y(s)}`, `deleteIconColor${y(b)}`, `deleteIcon${y(k)}Color${y(b)}`]
|
|
799
789
|
};
|
|
800
|
-
return
|
|
801
|
-
},
|
|
790
|
+
return Pt(C, co, r);
|
|
791
|
+
}, uo = W("div", {
|
|
802
792
|
name: "MuiChip",
|
|
803
793
|
slot: "Root",
|
|
804
794
|
overridesResolver: (e, r) => {
|
|
805
795
|
const {
|
|
806
|
-
ownerState:
|
|
796
|
+
ownerState: l
|
|
807
797
|
} = e, {
|
|
808
|
-
color:
|
|
809
|
-
iconColor:
|
|
810
|
-
clickable:
|
|
811
|
-
onDelete:
|
|
798
|
+
color: s,
|
|
799
|
+
iconColor: b,
|
|
800
|
+
clickable: P,
|
|
801
|
+
onDelete: $,
|
|
812
802
|
size: I,
|
|
813
|
-
variant:
|
|
814
|
-
} =
|
|
803
|
+
variant: k
|
|
804
|
+
} = l;
|
|
815
805
|
return [{
|
|
816
|
-
[`& .${
|
|
806
|
+
[`& .${f.avatar}`]: r.avatar
|
|
817
807
|
}, {
|
|
818
|
-
[`& .${
|
|
808
|
+
[`& .${f.avatar}`]: r[`avatar${y(I)}`]
|
|
819
809
|
}, {
|
|
820
|
-
[`& .${
|
|
810
|
+
[`& .${f.avatar}`]: r[`avatarColor${y(s)}`]
|
|
821
811
|
}, {
|
|
822
|
-
[`& .${
|
|
812
|
+
[`& .${f.icon}`]: r.icon
|
|
823
813
|
}, {
|
|
824
|
-
[`& .${
|
|
814
|
+
[`& .${f.icon}`]: r[`icon${y(I)}`]
|
|
825
815
|
}, {
|
|
826
|
-
[`& .${
|
|
816
|
+
[`& .${f.icon}`]: r[`iconColor${y(b)}`]
|
|
827
817
|
}, {
|
|
828
|
-
[`& .${
|
|
818
|
+
[`& .${f.deleteIcon}`]: r.deleteIcon
|
|
829
819
|
}, {
|
|
830
|
-
[`& .${
|
|
820
|
+
[`& .${f.deleteIcon}`]: r[`deleteIcon${y(I)}`]
|
|
831
821
|
}, {
|
|
832
|
-
[`& .${
|
|
822
|
+
[`& .${f.deleteIcon}`]: r[`deleteIconColor${y(s)}`]
|
|
833
823
|
}, {
|
|
834
|
-
[`& .${
|
|
835
|
-
}, r.root, r[`size${
|
|
824
|
+
[`& .${f.deleteIcon}`]: r[`deleteIcon${y(k)}Color${y(s)}`]
|
|
825
|
+
}, r.root, r[`size${y(I)}`], r[`color${y(s)}`], P && r.clickable, P && s !== "default" && r[`clickableColor${y(s)})`], $ && r.deletable, $ && s !== "default" && r[`deletableColor${y(s)}`], r[k], r[`${k}${y(s)}`]];
|
|
836
826
|
}
|
|
837
|
-
})(
|
|
827
|
+
})(fe(({
|
|
838
828
|
theme: e
|
|
839
829
|
}) => {
|
|
840
830
|
const r = e.palette.mode === "light" ? e.palette.grey[700] : e.palette.grey[300];
|
|
@@ -863,11 +853,11 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
863
853
|
// Remove `button` padding
|
|
864
854
|
verticalAlign: "middle",
|
|
865
855
|
boxSizing: "border-box",
|
|
866
|
-
[`&.${
|
|
856
|
+
[`&.${f.disabled}`]: {
|
|
867
857
|
opacity: (e.vars || e).palette.action.disabledOpacity,
|
|
868
858
|
pointerEvents: "none"
|
|
869
859
|
},
|
|
870
|
-
[`& .${
|
|
860
|
+
[`& .${f.avatar}`]: {
|
|
871
861
|
marginLeft: 5,
|
|
872
862
|
marginRight: -6,
|
|
873
863
|
width: 24,
|
|
@@ -875,33 +865,33 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
875
865
|
color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : r,
|
|
876
866
|
fontSize: e.typography.pxToRem(12)
|
|
877
867
|
},
|
|
878
|
-
[`& .${
|
|
868
|
+
[`& .${f.avatarColorPrimary}`]: {
|
|
879
869
|
color: (e.vars || e).palette.primary.contrastText,
|
|
880
870
|
backgroundColor: (e.vars || e).palette.primary.dark
|
|
881
871
|
},
|
|
882
|
-
[`& .${
|
|
872
|
+
[`& .${f.avatarColorSecondary}`]: {
|
|
883
873
|
color: (e.vars || e).palette.secondary.contrastText,
|
|
884
874
|
backgroundColor: (e.vars || e).palette.secondary.dark
|
|
885
875
|
},
|
|
886
|
-
[`& .${
|
|
876
|
+
[`& .${f.avatarSmall}`]: {
|
|
887
877
|
marginLeft: 4,
|
|
888
878
|
marginRight: -4,
|
|
889
879
|
width: 18,
|
|
890
880
|
height: 18,
|
|
891
881
|
fontSize: e.typography.pxToRem(10)
|
|
892
882
|
},
|
|
893
|
-
[`& .${
|
|
883
|
+
[`& .${f.icon}`]: {
|
|
894
884
|
marginLeft: 5,
|
|
895
885
|
marginRight: -6
|
|
896
886
|
},
|
|
897
|
-
[`& .${
|
|
887
|
+
[`& .${f.deleteIcon}`]: {
|
|
898
888
|
WebkitTapHighlightColor: "transparent",
|
|
899
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` :
|
|
889
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : _(e.palette.text.primary, 0.26),
|
|
900
890
|
fontSize: 22,
|
|
901
891
|
cursor: "pointer",
|
|
902
892
|
margin: "0 5px 0 -6px",
|
|
903
893
|
"&:hover": {
|
|
904
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` :
|
|
894
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : _(e.palette.text.primary, 0.4)
|
|
905
895
|
}
|
|
906
896
|
},
|
|
907
897
|
variants: [{
|
|
@@ -910,42 +900,42 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
910
900
|
},
|
|
911
901
|
style: {
|
|
912
902
|
height: 24,
|
|
913
|
-
[`& .${
|
|
903
|
+
[`& .${f.icon}`]: {
|
|
914
904
|
fontSize: 18,
|
|
915
905
|
marginLeft: 4,
|
|
916
906
|
marginRight: -4
|
|
917
907
|
},
|
|
918
|
-
[`& .${
|
|
908
|
+
[`& .${f.deleteIcon}`]: {
|
|
919
909
|
fontSize: 16,
|
|
920
910
|
marginRight: 4,
|
|
921
911
|
marginLeft: -4
|
|
922
912
|
}
|
|
923
913
|
}
|
|
924
|
-
}, ...Object.entries(e.palette).filter(
|
|
914
|
+
}, ...Object.entries(e.palette).filter(pt(["contrastText"])).map(([l]) => ({
|
|
925
915
|
props: {
|
|
926
|
-
color:
|
|
916
|
+
color: l
|
|
927
917
|
},
|
|
928
918
|
style: {
|
|
929
|
-
backgroundColor: (e.vars || e).palette[
|
|
930
|
-
color: (e.vars || e).palette[
|
|
931
|
-
[`& .${
|
|
932
|
-
color: e.vars ? `rgba(${e.vars.palette[
|
|
919
|
+
backgroundColor: (e.vars || e).palette[l].main,
|
|
920
|
+
color: (e.vars || e).palette[l].contrastText,
|
|
921
|
+
[`& .${f.deleteIcon}`]: {
|
|
922
|
+
color: e.vars ? `rgba(${e.vars.palette[l].contrastTextChannel} / 0.7)` : _(e.palette[l].contrastText, 0.7),
|
|
933
923
|
"&:hover, &:active": {
|
|
934
|
-
color: (e.vars || e).palette[
|
|
924
|
+
color: (e.vars || e).palette[l].contrastText
|
|
935
925
|
}
|
|
936
926
|
}
|
|
937
927
|
}
|
|
938
928
|
})), {
|
|
939
|
-
props: (
|
|
929
|
+
props: (l) => l.iconColor === l.color,
|
|
940
930
|
style: {
|
|
941
|
-
[`& .${
|
|
931
|
+
[`& .${f.icon}`]: {
|
|
942
932
|
color: e.vars ? e.vars.palette.Chip.defaultIconColor : r
|
|
943
933
|
}
|
|
944
934
|
}
|
|
945
935
|
}, {
|
|
946
|
-
props: (
|
|
936
|
+
props: (l) => l.iconColor === l.color && l.color !== "default",
|
|
947
937
|
style: {
|
|
948
|
-
[`& .${
|
|
938
|
+
[`& .${f.icon}`]: {
|
|
949
939
|
color: "inherit"
|
|
950
940
|
}
|
|
951
941
|
}
|
|
@@ -954,18 +944,18 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
954
944
|
onDelete: !0
|
|
955
945
|
},
|
|
956
946
|
style: {
|
|
957
|
-
[`&.${
|
|
958
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
947
|
+
[`&.${f.focusVisible}`]: {
|
|
948
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
959
949
|
}
|
|
960
950
|
}
|
|
961
|
-
}, ...Object.entries(e.palette).filter(
|
|
951
|
+
}, ...Object.entries(e.palette).filter(pt(["dark"])).map(([l]) => ({
|
|
962
952
|
props: {
|
|
963
|
-
color:
|
|
953
|
+
color: l,
|
|
964
954
|
onDelete: !0
|
|
965
955
|
},
|
|
966
956
|
style: {
|
|
967
|
-
[`&.${
|
|
968
|
-
background: (e.vars || e).palette[
|
|
957
|
+
[`&.${f.focusVisible}`]: {
|
|
958
|
+
background: (e.vars || e).palette[l].dark
|
|
969
959
|
}
|
|
970
960
|
}
|
|
971
961
|
})), {
|
|
@@ -977,23 +967,23 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
977
967
|
WebkitTapHighlightColor: "transparent",
|
|
978
968
|
cursor: "pointer",
|
|
979
969
|
"&:hover": {
|
|
980
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
970
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
|
|
981
971
|
},
|
|
982
|
-
[`&.${
|
|
983
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
972
|
+
[`&.${f.focusVisible}`]: {
|
|
973
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
984
974
|
},
|
|
985
975
|
"&:active": {
|
|
986
976
|
boxShadow: (e.vars || e).shadows[1]
|
|
987
977
|
}
|
|
988
978
|
}
|
|
989
|
-
}, ...Object.entries(e.palette).filter(
|
|
979
|
+
}, ...Object.entries(e.palette).filter(pt(["dark"])).map(([l]) => ({
|
|
990
980
|
props: {
|
|
991
|
-
color:
|
|
981
|
+
color: l,
|
|
992
982
|
clickable: !0
|
|
993
983
|
},
|
|
994
984
|
style: {
|
|
995
|
-
[`&:hover, &.${
|
|
996
|
-
backgroundColor: (e.vars || e).palette[
|
|
985
|
+
[`&:hover, &.${f.focusVisible}`]: {
|
|
986
|
+
backgroundColor: (e.vars || e).palette[l].dark
|
|
997
987
|
}
|
|
998
988
|
}
|
|
999
989
|
})), {
|
|
@@ -1003,64 +993,64 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1003
993
|
style: {
|
|
1004
994
|
backgroundColor: "transparent",
|
|
1005
995
|
border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
|
|
1006
|
-
[`&.${
|
|
996
|
+
[`&.${f.clickable}:hover`]: {
|
|
1007
997
|
backgroundColor: (e.vars || e).palette.action.hover
|
|
1008
998
|
},
|
|
1009
|
-
[`&.${
|
|
999
|
+
[`&.${f.focusVisible}`]: {
|
|
1010
1000
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
1011
1001
|
},
|
|
1012
|
-
[`& .${
|
|
1002
|
+
[`& .${f.avatar}`]: {
|
|
1013
1003
|
marginLeft: 4
|
|
1014
1004
|
},
|
|
1015
|
-
[`& .${
|
|
1005
|
+
[`& .${f.avatarSmall}`]: {
|
|
1016
1006
|
marginLeft: 2
|
|
1017
1007
|
},
|
|
1018
|
-
[`& .${
|
|
1008
|
+
[`& .${f.icon}`]: {
|
|
1019
1009
|
marginLeft: 4
|
|
1020
1010
|
},
|
|
1021
|
-
[`& .${
|
|
1011
|
+
[`& .${f.iconSmall}`]: {
|
|
1022
1012
|
marginLeft: 2
|
|
1023
1013
|
},
|
|
1024
|
-
[`& .${
|
|
1014
|
+
[`& .${f.deleteIcon}`]: {
|
|
1025
1015
|
marginRight: 5
|
|
1026
1016
|
},
|
|
1027
|
-
[`& .${
|
|
1017
|
+
[`& .${f.deleteIconSmall}`]: {
|
|
1028
1018
|
marginRight: 3
|
|
1029
1019
|
}
|
|
1030
1020
|
}
|
|
1031
|
-
}, ...Object.entries(e.palette).filter(
|
|
1021
|
+
}, ...Object.entries(e.palette).filter(pt()).map(([l]) => ({
|
|
1032
1022
|
props: {
|
|
1033
1023
|
variant: "outlined",
|
|
1034
|
-
color:
|
|
1024
|
+
color: l
|
|
1035
1025
|
},
|
|
1036
1026
|
style: {
|
|
1037
|
-
color: (e.vars || e).palette[
|
|
1038
|
-
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[
|
|
1039
|
-
[`&.${
|
|
1040
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[
|
|
1027
|
+
color: (e.vars || e).palette[l].main,
|
|
1028
|
+
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[l].mainChannel} / 0.7)` : _(e.palette[l].main, 0.7)}`,
|
|
1029
|
+
[`&.${f.clickable}:hover`]: {
|
|
1030
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : _(e.palette[l].main, e.palette.action.hoverOpacity)
|
|
1041
1031
|
},
|
|
1042
|
-
[`&.${
|
|
1043
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[
|
|
1032
|
+
[`&.${f.focusVisible}`]: {
|
|
1033
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / ${e.vars.palette.action.focusOpacity})` : _(e.palette[l].main, e.palette.action.focusOpacity)
|
|
1044
1034
|
},
|
|
1045
|
-
[`& .${
|
|
1046
|
-
color: e.vars ? `rgba(${e.vars.palette[
|
|
1035
|
+
[`& .${f.deleteIcon}`]: {
|
|
1036
|
+
color: e.vars ? `rgba(${e.vars.palette[l].mainChannel} / 0.7)` : _(e.palette[l].main, 0.7),
|
|
1047
1037
|
"&:hover, &:active": {
|
|
1048
|
-
color: (e.vars || e).palette[
|
|
1038
|
+
color: (e.vars || e).palette[l].main
|
|
1049
1039
|
}
|
|
1050
1040
|
}
|
|
1051
1041
|
}
|
|
1052
1042
|
}))]
|
|
1053
1043
|
};
|
|
1054
|
-
})),
|
|
1044
|
+
})), fo = W("span", {
|
|
1055
1045
|
name: "MuiChip",
|
|
1056
1046
|
slot: "Label",
|
|
1057
1047
|
overridesResolver: (e, r) => {
|
|
1058
1048
|
const {
|
|
1059
|
-
ownerState:
|
|
1049
|
+
ownerState: l
|
|
1060
1050
|
} = e, {
|
|
1061
|
-
size:
|
|
1062
|
-
} =
|
|
1063
|
-
return [r.label, r[`label${
|
|
1051
|
+
size: s
|
|
1052
|
+
} = l;
|
|
1053
|
+
return [r.label, r[`label${y(s)}`]];
|
|
1064
1054
|
}
|
|
1065
1055
|
})({
|
|
1066
1056
|
overflow: "hidden",
|
|
@@ -1095,124 +1085,124 @@ const b = Lt("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1095
1085
|
}
|
|
1096
1086
|
}]
|
|
1097
1087
|
});
|
|
1098
|
-
function
|
|
1088
|
+
function Vt(e) {
|
|
1099
1089
|
return e.key === "Backspace" || e.key === "Delete";
|
|
1100
1090
|
}
|
|
1101
|
-
const
|
|
1102
|
-
const
|
|
1091
|
+
const Bt = /* @__PURE__ */ h.forwardRef(function(r, l) {
|
|
1092
|
+
const s = Ot({
|
|
1103
1093
|
props: r,
|
|
1104
1094
|
name: "MuiChip"
|
|
1105
1095
|
}), {
|
|
1106
|
-
avatar:
|
|
1107
|
-
className:
|
|
1108
|
-
clickable:
|
|
1096
|
+
avatar: b,
|
|
1097
|
+
className: P,
|
|
1098
|
+
clickable: $,
|
|
1109
1099
|
color: I = "default",
|
|
1110
|
-
component:
|
|
1111
|
-
deleteIcon:
|
|
1112
|
-
disabled:
|
|
1113
|
-
icon:
|
|
1114
|
-
label:
|
|
1115
|
-
onClick:
|
|
1116
|
-
onDelete:
|
|
1117
|
-
onKeyDown:
|
|
1118
|
-
onKeyUp:
|
|
1119
|
-
size:
|
|
1120
|
-
variant:
|
|
1121
|
-
tabIndex:
|
|
1122
|
-
skipFocusWhenDisabled:
|
|
1100
|
+
component: k,
|
|
1101
|
+
deleteIcon: C,
|
|
1102
|
+
disabled: T = !1,
|
|
1103
|
+
icon: N,
|
|
1104
|
+
label: le,
|
|
1105
|
+
onClick: L,
|
|
1106
|
+
onDelete: G,
|
|
1107
|
+
onKeyDown: ge,
|
|
1108
|
+
onKeyUp: Ve,
|
|
1109
|
+
size: Pe = "medium",
|
|
1110
|
+
variant: ie = "filled",
|
|
1111
|
+
tabIndex: q,
|
|
1112
|
+
skipFocusWhenDisabled: Se = !1,
|
|
1123
1113
|
// TODO v6: Rename to `focusableWhenDisabled`.
|
|
1124
|
-
slots:
|
|
1125
|
-
slotProps:
|
|
1126
|
-
...
|
|
1127
|
-
} =
|
|
1128
|
-
|
|
1129
|
-
},
|
|
1130
|
-
|
|
1131
|
-
},
|
|
1132
|
-
|
|
1133
|
-
},
|
|
1134
|
-
...
|
|
1135
|
-
component:
|
|
1136
|
-
disabled:
|
|
1137
|
-
size:
|
|
1114
|
+
slots: ze = {},
|
|
1115
|
+
slotProps: oe = {},
|
|
1116
|
+
...Fe
|
|
1117
|
+
} = s, Qe = h.useRef(null), be = Yt(Qe, l), me = (p) => {
|
|
1118
|
+
p.stopPropagation(), G && G(p);
|
|
1119
|
+
}, J = (p) => {
|
|
1120
|
+
p.currentTarget === p.target && Vt(p) && p.preventDefault(), ge && ge(p);
|
|
1121
|
+
}, g = (p) => {
|
|
1122
|
+
p.currentTarget === p.target && G && Vt(p) && G(p), Ve && Ve(p);
|
|
1123
|
+
}, ye = $ !== !1 && L ? !0 : $, he = ye || G ? Rt : k || "div", se = {
|
|
1124
|
+
...s,
|
|
1125
|
+
component: he,
|
|
1126
|
+
disabled: T,
|
|
1127
|
+
size: Pe,
|
|
1138
1128
|
color: I,
|
|
1139
|
-
iconColor: /* @__PURE__ */
|
|
1140
|
-
onDelete: !!
|
|
1141
|
-
clickable:
|
|
1142
|
-
variant:
|
|
1143
|
-
},
|
|
1144
|
-
component:
|
|
1145
|
-
focusVisibleClassName:
|
|
1146
|
-
...
|
|
1129
|
+
iconColor: /* @__PURE__ */ h.isValidElement(N) && N.props.color || I,
|
|
1130
|
+
onDelete: !!G,
|
|
1131
|
+
clickable: ye,
|
|
1132
|
+
variant: ie
|
|
1133
|
+
}, M = po(se), ke = he === Rt ? {
|
|
1134
|
+
component: k || "div",
|
|
1135
|
+
focusVisibleClassName: M.focusVisible,
|
|
1136
|
+
...G && {
|
|
1147
1137
|
disableRipple: !0
|
|
1148
1138
|
}
|
|
1149
1139
|
} : {};
|
|
1150
|
-
let
|
|
1151
|
-
|
|
1152
|
-
className:
|
|
1153
|
-
onClick:
|
|
1154
|
-
}) : /* @__PURE__ */
|
|
1155
|
-
className:
|
|
1156
|
-
onClick:
|
|
1140
|
+
let je = null;
|
|
1141
|
+
G && (je = C && /* @__PURE__ */ h.isValidElement(C) ? /* @__PURE__ */ h.cloneElement(C, {
|
|
1142
|
+
className: de(C.props.className, M.deleteIcon),
|
|
1143
|
+
onClick: me
|
|
1144
|
+
}) : /* @__PURE__ */ D(so, {
|
|
1145
|
+
className: M.deleteIcon,
|
|
1146
|
+
onClick: me
|
|
1157
1147
|
}));
|
|
1158
|
-
let
|
|
1159
|
-
|
|
1160
|
-
className:
|
|
1148
|
+
let Te = null;
|
|
1149
|
+
b && /* @__PURE__ */ h.isValidElement(b) && (Te = /* @__PURE__ */ h.cloneElement(b, {
|
|
1150
|
+
className: de(M.avatar, b.props.className)
|
|
1161
1151
|
}));
|
|
1162
|
-
let
|
|
1163
|
-
|
|
1164
|
-
className:
|
|
1165
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1166
|
-
const
|
|
1167
|
-
slots:
|
|
1168
|
-
slotProps:
|
|
1169
|
-
}, [
|
|
1170
|
-
elementType:
|
|
1152
|
+
let we = null;
|
|
1153
|
+
N && /* @__PURE__ */ h.isValidElement(N) && (we = /* @__PURE__ */ h.cloneElement(N, {
|
|
1154
|
+
className: de(M.icon, N.props.className)
|
|
1155
|
+
})), process.env.NODE_ENV !== "production" && Te && we && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");
|
|
1156
|
+
const X = {
|
|
1157
|
+
slots: ze,
|
|
1158
|
+
slotProps: oe
|
|
1159
|
+
}, [V, He] = Ye("root", {
|
|
1160
|
+
elementType: uo,
|
|
1171
1161
|
externalForwardedProps: {
|
|
1172
|
-
...
|
|
1173
|
-
...
|
|
1162
|
+
...X,
|
|
1163
|
+
...Fe
|
|
1174
1164
|
},
|
|
1175
|
-
ownerState:
|
|
1165
|
+
ownerState: se,
|
|
1176
1166
|
// The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.
|
|
1177
1167
|
shouldForwardComponentProp: !0,
|
|
1178
|
-
ref:
|
|
1179
|
-
className:
|
|
1168
|
+
ref: be,
|
|
1169
|
+
className: de(M.root, P),
|
|
1180
1170
|
additionalProps: {
|
|
1181
|
-
disabled:
|
|
1182
|
-
tabIndex:
|
|
1183
|
-
...
|
|
1171
|
+
disabled: ye && T ? !0 : void 0,
|
|
1172
|
+
tabIndex: Se && T ? -1 : q,
|
|
1173
|
+
...ke
|
|
1184
1174
|
},
|
|
1185
|
-
getSlotProps: (
|
|
1186
|
-
...
|
|
1187
|
-
onClick: (
|
|
1188
|
-
var
|
|
1189
|
-
(
|
|
1175
|
+
getSlotProps: (p) => ({
|
|
1176
|
+
...p,
|
|
1177
|
+
onClick: (j) => {
|
|
1178
|
+
var H;
|
|
1179
|
+
(H = p.onClick) == null || H.call(p, j), L == null || L(j);
|
|
1190
1180
|
},
|
|
1191
|
-
onKeyDown: (
|
|
1192
|
-
var
|
|
1193
|
-
(
|
|
1181
|
+
onKeyDown: (j) => {
|
|
1182
|
+
var H;
|
|
1183
|
+
(H = p.onKeyDown) == null || H.call(p, j), J == null || J(j);
|
|
1194
1184
|
},
|
|
1195
|
-
onKeyUp: (
|
|
1196
|
-
var
|
|
1197
|
-
(
|
|
1185
|
+
onKeyUp: (j) => {
|
|
1186
|
+
var H;
|
|
1187
|
+
(H = p.onKeyUp) == null || H.call(p, j), g == null || g(j);
|
|
1198
1188
|
}
|
|
1199
1189
|
})
|
|
1200
|
-
}), [
|
|
1201
|
-
elementType:
|
|
1202
|
-
externalForwardedProps:
|
|
1203
|
-
ownerState:
|
|
1204
|
-
className:
|
|
1190
|
+
}), [Le, z] = Ye("label", {
|
|
1191
|
+
elementType: fo,
|
|
1192
|
+
externalForwardedProps: X,
|
|
1193
|
+
ownerState: se,
|
|
1194
|
+
className: M.label
|
|
1205
1195
|
});
|
|
1206
|
-
return /* @__PURE__ */
|
|
1207
|
-
as:
|
|
1208
|
-
...
|
|
1209
|
-
children: [
|
|
1210
|
-
...
|
|
1211
|
-
children:
|
|
1212
|
-
}),
|
|
1196
|
+
return /* @__PURE__ */ Xe(V, {
|
|
1197
|
+
as: he,
|
|
1198
|
+
...He,
|
|
1199
|
+
children: [Te || we, /* @__PURE__ */ D(Le, {
|
|
1200
|
+
...z,
|
|
1201
|
+
children: le
|
|
1202
|
+
}), je]
|
|
1213
1203
|
});
|
|
1214
1204
|
});
|
|
1215
|
-
process.env.NODE_ENV !== "production" && (
|
|
1205
|
+
process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
1216
1206
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1217
1207
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1218
1208
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1225,7 +1215,7 @@ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
|
|
|
1225
1215
|
* This prop isn't supported.
|
|
1226
1216
|
* Use the `component` prop if you need to change the children structure.
|
|
1227
1217
|
*/
|
|
1228
|
-
children:
|
|
1218
|
+
children: Qt,
|
|
1229
1219
|
/**
|
|
1230
1220
|
* Override or extend the styles applied to the component.
|
|
1231
1221
|
*/
|
|
@@ -1330,32 +1320,32 @@ process.env.NODE_ENV !== "production" && (Qt.propTypes = {
|
|
|
1330
1320
|
*/
|
|
1331
1321
|
variant: t.oneOfType([t.oneOf(["filled", "outlined"]), t.string])
|
|
1332
1322
|
});
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1323
|
+
function go(e) {
|
|
1324
|
+
return Ct("MuiAutocomplete", e);
|
|
1335
1325
|
}
|
|
1336
|
-
const
|
|
1337
|
-
var
|
|
1338
|
-
const
|
|
1326
|
+
const u = $t("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
1327
|
+
var zt, Ft;
|
|
1328
|
+
const bo = (e) => {
|
|
1339
1329
|
const {
|
|
1340
1330
|
classes: r,
|
|
1341
|
-
disablePortal:
|
|
1342
|
-
expanded:
|
|
1343
|
-
focused:
|
|
1344
|
-
fullWidth:
|
|
1345
|
-
hasClearIcon:
|
|
1331
|
+
disablePortal: l,
|
|
1332
|
+
expanded: s,
|
|
1333
|
+
focused: b,
|
|
1334
|
+
fullWidth: P,
|
|
1335
|
+
hasClearIcon: $,
|
|
1346
1336
|
hasPopupIcon: I,
|
|
1347
|
-
inputFocused:
|
|
1348
|
-
popupOpen:
|
|
1349
|
-
size:
|
|
1350
|
-
} = e,
|
|
1351
|
-
root: ["root",
|
|
1337
|
+
inputFocused: k,
|
|
1338
|
+
popupOpen: C,
|
|
1339
|
+
size: T
|
|
1340
|
+
} = e, N = {
|
|
1341
|
+
root: ["root", s && "expanded", b && "focused", P && "fullWidth", $ && "hasClearIcon", I && "hasPopupIcon"],
|
|
1352
1342
|
inputRoot: ["inputRoot"],
|
|
1353
|
-
input: ["input",
|
|
1354
|
-
tag: ["tag", `tagSize${
|
|
1343
|
+
input: ["input", k && "inputFocused"],
|
|
1344
|
+
tag: ["tag", `tagSize${y(T)}`],
|
|
1355
1345
|
endAdornment: ["endAdornment"],
|
|
1356
1346
|
clearIndicator: ["clearIndicator"],
|
|
1357
|
-
popupIndicator: ["popupIndicator",
|
|
1358
|
-
popper: ["popper",
|
|
1347
|
+
popupIndicator: ["popupIndicator", C && "popupIndicatorOpen"],
|
|
1348
|
+
popper: ["popper", l && "popperDisablePortal"],
|
|
1359
1349
|
paper: ["paper"],
|
|
1360
1350
|
listbox: ["listbox"],
|
|
1361
1351
|
loading: ["loading"],
|
|
@@ -1364,134 +1354,134 @@ const wo = (e) => {
|
|
|
1364
1354
|
groupLabel: ["groupLabel"],
|
|
1365
1355
|
groupUl: ["groupUl"]
|
|
1366
1356
|
};
|
|
1367
|
-
return
|
|
1368
|
-
},
|
|
1357
|
+
return Pt(N, go, r);
|
|
1358
|
+
}, mo = W("div", {
|
|
1369
1359
|
name: "MuiAutocomplete",
|
|
1370
1360
|
slot: "Root",
|
|
1371
1361
|
overridesResolver: (e, r) => {
|
|
1372
1362
|
const {
|
|
1373
|
-
ownerState:
|
|
1363
|
+
ownerState: l
|
|
1374
1364
|
} = e, {
|
|
1375
|
-
fullWidth:
|
|
1376
|
-
hasClearIcon:
|
|
1377
|
-
hasPopupIcon:
|
|
1378
|
-
inputFocused:
|
|
1365
|
+
fullWidth: s,
|
|
1366
|
+
hasClearIcon: b,
|
|
1367
|
+
hasPopupIcon: P,
|
|
1368
|
+
inputFocused: $,
|
|
1379
1369
|
size: I
|
|
1380
|
-
} =
|
|
1370
|
+
} = l;
|
|
1381
1371
|
return [{
|
|
1382
|
-
[`& .${
|
|
1372
|
+
[`& .${u.tag}`]: r.tag
|
|
1383
1373
|
}, {
|
|
1384
|
-
[`& .${
|
|
1374
|
+
[`& .${u.tag}`]: r[`tagSize${y(I)}`]
|
|
1385
1375
|
}, {
|
|
1386
|
-
[`& .${
|
|
1376
|
+
[`& .${u.inputRoot}`]: r.inputRoot
|
|
1387
1377
|
}, {
|
|
1388
|
-
[`& .${
|
|
1378
|
+
[`& .${u.input}`]: r.input
|
|
1389
1379
|
}, {
|
|
1390
|
-
[`& .${
|
|
1391
|
-
}, r.root,
|
|
1380
|
+
[`& .${u.input}`]: $ && r.inputFocused
|
|
1381
|
+
}, r.root, s && r.fullWidth, P && r.hasPopupIcon, b && r.hasClearIcon];
|
|
1392
1382
|
}
|
|
1393
1383
|
})({
|
|
1394
|
-
[`&.${
|
|
1384
|
+
[`&.${u.focused} .${u.clearIndicator}`]: {
|
|
1395
1385
|
visibility: "visible"
|
|
1396
1386
|
},
|
|
1397
1387
|
/* Avoid double tap issue on iOS */
|
|
1398
1388
|
"@media (pointer: fine)": {
|
|
1399
|
-
[`&:hover .${
|
|
1389
|
+
[`&:hover .${u.clearIndicator}`]: {
|
|
1400
1390
|
visibility: "visible"
|
|
1401
1391
|
}
|
|
1402
1392
|
},
|
|
1403
|
-
[`& .${
|
|
1393
|
+
[`& .${u.tag}`]: {
|
|
1404
1394
|
margin: 3,
|
|
1405
1395
|
maxWidth: "calc(100% - 6px)"
|
|
1406
1396
|
},
|
|
1407
|
-
[`& .${
|
|
1408
|
-
[`.${
|
|
1397
|
+
[`& .${u.inputRoot}`]: {
|
|
1398
|
+
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
1409
1399
|
paddingRight: 30
|
|
1410
1400
|
},
|
|
1411
|
-
[`.${
|
|
1401
|
+
[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
|
|
1412
1402
|
paddingRight: 56
|
|
1413
1403
|
},
|
|
1414
|
-
[`& .${
|
|
1404
|
+
[`& .${u.input}`]: {
|
|
1415
1405
|
width: 0,
|
|
1416
1406
|
minWidth: 30
|
|
1417
1407
|
}
|
|
1418
1408
|
},
|
|
1419
|
-
[`& .${
|
|
1409
|
+
[`& .${xt.root}`]: {
|
|
1420
1410
|
paddingBottom: 1,
|
|
1421
1411
|
"& .MuiInput-input": {
|
|
1422
1412
|
padding: "4px 4px 4px 0px"
|
|
1423
1413
|
}
|
|
1424
1414
|
},
|
|
1425
|
-
[`& .${
|
|
1426
|
-
[`& .${
|
|
1415
|
+
[`& .${xt.root}.${Oe.sizeSmall}`]: {
|
|
1416
|
+
[`& .${xt.input}`]: {
|
|
1427
1417
|
padding: "2px 4px 3px 0"
|
|
1428
1418
|
}
|
|
1429
1419
|
},
|
|
1430
|
-
[`& .${
|
|
1420
|
+
[`& .${At.root}`]: {
|
|
1431
1421
|
padding: 9,
|
|
1432
|
-
[`.${
|
|
1422
|
+
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
1433
1423
|
paddingRight: 39
|
|
1434
1424
|
},
|
|
1435
|
-
[`.${
|
|
1425
|
+
[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
|
|
1436
1426
|
paddingRight: 65
|
|
1437
1427
|
},
|
|
1438
|
-
[`& .${
|
|
1428
|
+
[`& .${u.input}`]: {
|
|
1439
1429
|
padding: "7.5px 4px 7.5px 5px"
|
|
1440
1430
|
},
|
|
1441
|
-
[`& .${
|
|
1431
|
+
[`& .${u.endAdornment}`]: {
|
|
1442
1432
|
right: 9
|
|
1443
1433
|
}
|
|
1444
1434
|
},
|
|
1445
|
-
[`& .${
|
|
1435
|
+
[`& .${At.root}.${Oe.sizeSmall}`]: {
|
|
1446
1436
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
1447
1437
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
1448
1438
|
paddingTop: 6,
|
|
1449
1439
|
paddingBottom: 6,
|
|
1450
1440
|
paddingLeft: 6,
|
|
1451
|
-
[`& .${
|
|
1441
|
+
[`& .${u.input}`]: {
|
|
1452
1442
|
padding: "2.5px 4px 2.5px 8px"
|
|
1453
1443
|
}
|
|
1454
1444
|
},
|
|
1455
|
-
[`& .${
|
|
1445
|
+
[`& .${Me.root}`]: {
|
|
1456
1446
|
paddingTop: 19,
|
|
1457
1447
|
paddingLeft: 8,
|
|
1458
|
-
[`.${
|
|
1448
|
+
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
1459
1449
|
paddingRight: 39
|
|
1460
1450
|
},
|
|
1461
|
-
[`.${
|
|
1451
|
+
[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]: {
|
|
1462
1452
|
paddingRight: 65
|
|
1463
1453
|
},
|
|
1464
|
-
[`& .${
|
|
1454
|
+
[`& .${Me.input}`]: {
|
|
1465
1455
|
padding: "7px 4px"
|
|
1466
1456
|
},
|
|
1467
|
-
[`& .${
|
|
1457
|
+
[`& .${u.endAdornment}`]: {
|
|
1468
1458
|
right: 9
|
|
1469
1459
|
}
|
|
1470
1460
|
},
|
|
1471
|
-
[`& .${
|
|
1461
|
+
[`& .${Me.root}.${Oe.sizeSmall}`]: {
|
|
1472
1462
|
paddingBottom: 1,
|
|
1473
|
-
[`& .${
|
|
1463
|
+
[`& .${Me.input}`]: {
|
|
1474
1464
|
padding: "2.5px 4px"
|
|
1475
1465
|
}
|
|
1476
1466
|
},
|
|
1477
|
-
[`& .${
|
|
1467
|
+
[`& .${Oe.hiddenLabel}`]: {
|
|
1478
1468
|
paddingTop: 8
|
|
1479
1469
|
},
|
|
1480
|
-
[`& .${
|
|
1470
|
+
[`& .${Me.root}.${Oe.hiddenLabel}`]: {
|
|
1481
1471
|
paddingTop: 0,
|
|
1482
1472
|
paddingBottom: 0,
|
|
1483
|
-
[`& .${
|
|
1473
|
+
[`& .${u.input}`]: {
|
|
1484
1474
|
paddingTop: 16,
|
|
1485
1475
|
paddingBottom: 17
|
|
1486
1476
|
}
|
|
1487
1477
|
},
|
|
1488
|
-
[`& .${
|
|
1489
|
-
[`& .${
|
|
1478
|
+
[`& .${Me.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]: {
|
|
1479
|
+
[`& .${u.input}`]: {
|
|
1490
1480
|
paddingTop: 8,
|
|
1491
1481
|
paddingBottom: 9
|
|
1492
1482
|
}
|
|
1493
1483
|
},
|
|
1494
|
-
[`& .${
|
|
1484
|
+
[`& .${u.input}`]: {
|
|
1495
1485
|
flexGrow: 1,
|
|
1496
1486
|
textOverflow: "ellipsis",
|
|
1497
1487
|
opacity: 0
|
|
@@ -1508,7 +1498,7 @@ const wo = (e) => {
|
|
|
1508
1498
|
size: "small"
|
|
1509
1499
|
},
|
|
1510
1500
|
style: {
|
|
1511
|
-
[`& .${
|
|
1501
|
+
[`& .${u.tag}`]: {
|
|
1512
1502
|
margin: 2,
|
|
1513
1503
|
maxWidth: "calc(100% - 4px)"
|
|
1514
1504
|
}
|
|
@@ -1518,7 +1508,7 @@ const wo = (e) => {
|
|
|
1518
1508
|
inputFocused: !0
|
|
1519
1509
|
},
|
|
1520
1510
|
style: {
|
|
1521
|
-
[`& .${
|
|
1511
|
+
[`& .${u.input}`]: {
|
|
1522
1512
|
opacity: 1
|
|
1523
1513
|
}
|
|
1524
1514
|
}
|
|
@@ -1527,12 +1517,12 @@ const wo = (e) => {
|
|
|
1527
1517
|
multiple: !0
|
|
1528
1518
|
},
|
|
1529
1519
|
style: {
|
|
1530
|
-
[`& .${
|
|
1520
|
+
[`& .${u.inputRoot}`]: {
|
|
1531
1521
|
flexWrap: "wrap"
|
|
1532
1522
|
}
|
|
1533
1523
|
}
|
|
1534
1524
|
}]
|
|
1535
|
-
}),
|
|
1525
|
+
}), yo = W("div", {
|
|
1536
1526
|
name: "MuiAutocomplete",
|
|
1537
1527
|
slot: "EndAdornment"
|
|
1538
1528
|
})({
|
|
@@ -1541,21 +1531,21 @@ const wo = (e) => {
|
|
|
1541
1531
|
right: 0,
|
|
1542
1532
|
top: "50%",
|
|
1543
1533
|
transform: "translate(0, -50%)"
|
|
1544
|
-
}),
|
|
1534
|
+
}), ho = W(jt, {
|
|
1545
1535
|
name: "MuiAutocomplete",
|
|
1546
1536
|
slot: "ClearIndicator"
|
|
1547
1537
|
})({
|
|
1548
1538
|
marginRight: -2,
|
|
1549
1539
|
padding: 4,
|
|
1550
1540
|
visibility: "hidden"
|
|
1551
|
-
}),
|
|
1541
|
+
}), vo = W(jt, {
|
|
1552
1542
|
name: "MuiAutocomplete",
|
|
1553
1543
|
slot: "PopupIndicator",
|
|
1554
1544
|
overridesResolver: (e, r) => {
|
|
1555
1545
|
const {
|
|
1556
|
-
ownerState:
|
|
1546
|
+
ownerState: l
|
|
1557
1547
|
} = e;
|
|
1558
|
-
return [r.popupIndicator,
|
|
1548
|
+
return [r.popupIndicator, l.popupOpen && r.popupIndicatorOpen];
|
|
1559
1549
|
}
|
|
1560
1550
|
})({
|
|
1561
1551
|
padding: 2,
|
|
@@ -1568,18 +1558,18 @@ const wo = (e) => {
|
|
|
1568
1558
|
transform: "rotate(180deg)"
|
|
1569
1559
|
}
|
|
1570
1560
|
}]
|
|
1571
|
-
}),
|
|
1561
|
+
}), xo = W(Ht, {
|
|
1572
1562
|
name: "MuiAutocomplete",
|
|
1573
1563
|
slot: "Popper",
|
|
1574
1564
|
overridesResolver: (e, r) => {
|
|
1575
1565
|
const {
|
|
1576
|
-
ownerState:
|
|
1566
|
+
ownerState: l
|
|
1577
1567
|
} = e;
|
|
1578
1568
|
return [{
|
|
1579
|
-
[`& .${
|
|
1580
|
-
}, r.popper,
|
|
1569
|
+
[`& .${u.option}`]: r.option
|
|
1570
|
+
}, r.popper, l.disablePortal && r.popperDisablePortal];
|
|
1581
1571
|
}
|
|
1582
|
-
})(
|
|
1572
|
+
})(fe(({
|
|
1583
1573
|
theme: e
|
|
1584
1574
|
}) => ({
|
|
1585
1575
|
zIndex: (e.vars || e).zIndex.modal,
|
|
@@ -1591,34 +1581,34 @@ const wo = (e) => {
|
|
|
1591
1581
|
position: "absolute"
|
|
1592
1582
|
}
|
|
1593
1583
|
}]
|
|
1594
|
-
}))),
|
|
1584
|
+
}))), Io = W(Ut, {
|
|
1595
1585
|
name: "MuiAutocomplete",
|
|
1596
1586
|
slot: "Paper"
|
|
1597
|
-
})(
|
|
1587
|
+
})(fe(({
|
|
1598
1588
|
theme: e
|
|
1599
1589
|
}) => ({
|
|
1600
1590
|
...e.typography.body1,
|
|
1601
1591
|
overflow: "auto"
|
|
1602
|
-
}))),
|
|
1592
|
+
}))), Co = W("div", {
|
|
1603
1593
|
name: "MuiAutocomplete",
|
|
1604
1594
|
slot: "Loading"
|
|
1605
|
-
})(
|
|
1595
|
+
})(fe(({
|
|
1606
1596
|
theme: e
|
|
1607
1597
|
}) => ({
|
|
1608
1598
|
color: (e.vars || e).palette.text.secondary,
|
|
1609
1599
|
padding: "14px 16px"
|
|
1610
|
-
}))),
|
|
1600
|
+
}))), $o = W("div", {
|
|
1611
1601
|
name: "MuiAutocomplete",
|
|
1612
1602
|
slot: "NoOptions"
|
|
1613
|
-
})(
|
|
1603
|
+
})(fe(({
|
|
1614
1604
|
theme: e
|
|
1615
1605
|
}) => ({
|
|
1616
1606
|
color: (e.vars || e).palette.text.secondary,
|
|
1617
1607
|
padding: "14px 16px"
|
|
1618
|
-
}))),
|
|
1608
|
+
}))), Oo = W("ul", {
|
|
1619
1609
|
name: "MuiAutocomplete",
|
|
1620
1610
|
slot: "Listbox"
|
|
1621
|
-
})(
|
|
1611
|
+
})(fe(({
|
|
1622
1612
|
theme: e
|
|
1623
1613
|
}) => ({
|
|
1624
1614
|
listStyle: "none",
|
|
@@ -1627,7 +1617,7 @@ const wo = (e) => {
|
|
|
1627
1617
|
maxHeight: "40vh",
|
|
1628
1618
|
overflow: "auto",
|
|
1629
1619
|
position: "relative",
|
|
1630
|
-
[`& .${
|
|
1620
|
+
[`& .${u.option}`]: {
|
|
1631
1621
|
minHeight: 48,
|
|
1632
1622
|
display: "flex",
|
|
1633
1623
|
overflow: "hidden",
|
|
@@ -1644,7 +1634,7 @@ const wo = (e) => {
|
|
|
1644
1634
|
[e.breakpoints.up("sm")]: {
|
|
1645
1635
|
minHeight: "auto"
|
|
1646
1636
|
},
|
|
1647
|
-
[`&.${
|
|
1637
|
+
[`&.${u.focused}`]: {
|
|
1648
1638
|
backgroundColor: (e.vars || e).palette.action.hover,
|
|
1649
1639
|
// Reset on touch devices, it doesn't add specificity
|
|
1650
1640
|
"@media (hover: none)": {
|
|
@@ -1655,333 +1645,333 @@ const wo = (e) => {
|
|
|
1655
1645
|
opacity: (e.vars || e).palette.action.disabledOpacity,
|
|
1656
1646
|
pointerEvents: "none"
|
|
1657
1647
|
},
|
|
1658
|
-
[`&.${
|
|
1648
|
+
[`&.${u.focusVisible}`]: {
|
|
1659
1649
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
1660
1650
|
},
|
|
1661
1651
|
'&[aria-selected="true"]': {
|
|
1662
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
1663
|
-
[`&.${
|
|
1664
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
1652
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : _(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1653
|
+
[`&.${u.focused}`]: {
|
|
1654
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : _(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1665
1655
|
// Reset on touch devices, it doesn't add specificity
|
|
1666
1656
|
"@media (hover: none)": {
|
|
1667
1657
|
backgroundColor: (e.vars || e).palette.action.selected
|
|
1668
1658
|
}
|
|
1669
1659
|
},
|
|
1670
|
-
[`&.${
|
|
1671
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
1660
|
+
[`&.${u.focusVisible}`]: {
|
|
1661
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : _(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1672
1662
|
}
|
|
1673
1663
|
}
|
|
1674
1664
|
}
|
|
1675
|
-
}))),
|
|
1665
|
+
}))), Po = W(ut, {
|
|
1676
1666
|
name: "MuiAutocomplete",
|
|
1677
1667
|
slot: "GroupLabel"
|
|
1678
|
-
})(
|
|
1668
|
+
})(fe(({
|
|
1679
1669
|
theme: e
|
|
1680
1670
|
}) => ({
|
|
1681
1671
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
1682
1672
|
top: -8
|
|
1683
|
-
}))),
|
|
1673
|
+
}))), So = W("ul", {
|
|
1684
1674
|
name: "MuiAutocomplete",
|
|
1685
1675
|
slot: "GroupUl"
|
|
1686
1676
|
})({
|
|
1687
1677
|
padding: 0,
|
|
1688
|
-
[`& .${
|
|
1678
|
+
[`& .${u.option}`]: {
|
|
1689
1679
|
paddingLeft: 24
|
|
1690
1680
|
}
|
|
1691
|
-
}),
|
|
1692
|
-
const
|
|
1681
|
+
}), ko = /* @__PURE__ */ h.forwardRef(function(r, l) {
|
|
1682
|
+
const s = Ot({
|
|
1693
1683
|
props: r,
|
|
1694
1684
|
name: "MuiAutocomplete"
|
|
1695
1685
|
}), {
|
|
1696
|
-
autoComplete:
|
|
1697
|
-
autoHighlight:
|
|
1698
|
-
autoSelect:
|
|
1686
|
+
autoComplete: b = !1,
|
|
1687
|
+
autoHighlight: P = !1,
|
|
1688
|
+
autoSelect: $ = !1,
|
|
1699
1689
|
blurOnSelect: I = !1,
|
|
1700
|
-
ChipProps:
|
|
1701
|
-
className:
|
|
1702
|
-
clearIcon:
|
|
1690
|
+
ChipProps: k,
|
|
1691
|
+
className: C,
|
|
1692
|
+
clearIcon: T = zt || (zt = /* @__PURE__ */ D(Kt, {
|
|
1703
1693
|
fontSize: "small"
|
|
1704
1694
|
})),
|
|
1705
|
-
clearOnBlur:
|
|
1706
|
-
clearOnEscape:
|
|
1707
|
-
clearText:
|
|
1708
|
-
closeText:
|
|
1709
|
-
componentsProps:
|
|
1710
|
-
defaultValue:
|
|
1711
|
-
disableClearable:
|
|
1712
|
-
disableCloseOnSelect:
|
|
1713
|
-
disabled:
|
|
1714
|
-
disabledItemsFocusable:
|
|
1715
|
-
disableListWrap:
|
|
1716
|
-
disablePortal:
|
|
1717
|
-
filterOptions:
|
|
1718
|
-
filterSelectedOptions:
|
|
1719
|
-
forcePopupIcon:
|
|
1720
|
-
freeSolo:
|
|
1721
|
-
fullWidth:
|
|
1722
|
-
getLimitTagsText:
|
|
1723
|
-
getOptionDisabled:
|
|
1724
|
-
getOptionKey:
|
|
1725
|
-
getOptionLabel:
|
|
1726
|
-
isOptionEqualToValue:
|
|
1727
|
-
groupBy:
|
|
1728
|
-
handleHomeEndKeys:
|
|
1729
|
-
id:
|
|
1730
|
-
includeInputInList:
|
|
1731
|
-
inputValue:
|
|
1732
|
-
limitTags:
|
|
1733
|
-
ListboxComponent:
|
|
1734
|
-
ListboxProps:
|
|
1735
|
-
loading:
|
|
1736
|
-
loadingText:
|
|
1737
|
-
multiple:
|
|
1738
|
-
noOptionsText:
|
|
1739
|
-
onChange:
|
|
1740
|
-
onClose:
|
|
1741
|
-
onHighlightChange:
|
|
1742
|
-
onInputChange:
|
|
1743
|
-
onOpen:
|
|
1744
|
-
open:
|
|
1745
|
-
openOnFocus:
|
|
1746
|
-
openText:
|
|
1747
|
-
options:
|
|
1748
|
-
PaperComponent:
|
|
1749
|
-
PopperComponent:
|
|
1750
|
-
popupIcon:
|
|
1751
|
-
readOnly:
|
|
1752
|
-
renderGroup:
|
|
1753
|
-
renderInput:
|
|
1754
|
-
renderOption:
|
|
1755
|
-
renderTags:
|
|
1756
|
-
renderValue:
|
|
1757
|
-
selectOnFocus:
|
|
1758
|
-
size:
|
|
1759
|
-
slots:
|
|
1760
|
-
slotProps:
|
|
1761
|
-
value:
|
|
1762
|
-
...
|
|
1763
|
-
} =
|
|
1764
|
-
getRootProps:
|
|
1765
|
-
getInputProps:
|
|
1766
|
-
getInputLabelProps:
|
|
1767
|
-
getPopupIndicatorProps:
|
|
1768
|
-
getClearProps:
|
|
1769
|
-
getItemProps:
|
|
1770
|
-
getListboxProps:
|
|
1771
|
-
getOptionProps:
|
|
1772
|
-
value:
|
|
1773
|
-
dirty:
|
|
1774
|
-
expanded:
|
|
1775
|
-
id:
|
|
1776
|
-
popupOpen:
|
|
1777
|
-
focused:
|
|
1778
|
-
focusedItem:
|
|
1779
|
-
anchorEl:
|
|
1780
|
-
setAnchorEl:
|
|
1781
|
-
inputValue:
|
|
1782
|
-
groupedOptions:
|
|
1783
|
-
} =
|
|
1784
|
-
...
|
|
1695
|
+
clearOnBlur: N = !s.freeSolo,
|
|
1696
|
+
clearOnEscape: le = !1,
|
|
1697
|
+
clearText: L = "Clear",
|
|
1698
|
+
closeText: G = "Close",
|
|
1699
|
+
componentsProps: ge,
|
|
1700
|
+
defaultValue: Ve = s.multiple ? [] : null,
|
|
1701
|
+
disableClearable: Pe = !1,
|
|
1702
|
+
disableCloseOnSelect: ie = !1,
|
|
1703
|
+
disabled: q = !1,
|
|
1704
|
+
disabledItemsFocusable: Se = !1,
|
|
1705
|
+
disableListWrap: ze = !1,
|
|
1706
|
+
disablePortal: oe = !1,
|
|
1707
|
+
filterOptions: Fe,
|
|
1708
|
+
filterSelectedOptions: Qe = !1,
|
|
1709
|
+
forcePopupIcon: be = "auto",
|
|
1710
|
+
freeSolo: me = !1,
|
|
1711
|
+
fullWidth: J = !1,
|
|
1712
|
+
getLimitTagsText: g = (m) => `+${m}`,
|
|
1713
|
+
getOptionDisabled: ye,
|
|
1714
|
+
getOptionKey: he,
|
|
1715
|
+
getOptionLabel: se,
|
|
1716
|
+
isOptionEqualToValue: M,
|
|
1717
|
+
groupBy: ke,
|
|
1718
|
+
handleHomeEndKeys: je = !s.freeSolo,
|
|
1719
|
+
id: Te,
|
|
1720
|
+
includeInputInList: we = !1,
|
|
1721
|
+
inputValue: X,
|
|
1722
|
+
limitTags: V = -1,
|
|
1723
|
+
ListboxComponent: He,
|
|
1724
|
+
ListboxProps: Le,
|
|
1725
|
+
loading: z = !1,
|
|
1726
|
+
loadingText: p = "Loading…",
|
|
1727
|
+
multiple: j = !1,
|
|
1728
|
+
noOptionsText: H = "No options",
|
|
1729
|
+
onChange: S,
|
|
1730
|
+
onClose: Y,
|
|
1731
|
+
onHighlightChange: Ue,
|
|
1732
|
+
onInputChange: St,
|
|
1733
|
+
onOpen: K,
|
|
1734
|
+
open: Ze,
|
|
1735
|
+
openOnFocus: dt = !1,
|
|
1736
|
+
openText: E = "Open",
|
|
1737
|
+
options: kt,
|
|
1738
|
+
PaperComponent: c,
|
|
1739
|
+
PopperComponent: Be,
|
|
1740
|
+
popupIcon: x = Ft || (Ft = /* @__PURE__ */ D(Gt, {})),
|
|
1741
|
+
readOnly: ve = !1,
|
|
1742
|
+
renderGroup: Ae,
|
|
1743
|
+
renderInput: et,
|
|
1744
|
+
renderOption: Re,
|
|
1745
|
+
renderTags: ne,
|
|
1746
|
+
renderValue: xe,
|
|
1747
|
+
selectOnFocus: Tt = !s.freeSolo,
|
|
1748
|
+
size: De = "medium",
|
|
1749
|
+
slots: tt = {},
|
|
1750
|
+
slotProps: U = {},
|
|
1751
|
+
value: O,
|
|
1752
|
+
...Q
|
|
1753
|
+
} = s, {
|
|
1754
|
+
getRootProps: ot,
|
|
1755
|
+
getInputProps: Z,
|
|
1756
|
+
getInputLabelProps: ft,
|
|
1757
|
+
getPopupIndicatorProps: re,
|
|
1758
|
+
getClearProps: ee,
|
|
1759
|
+
getItemProps: gt,
|
|
1760
|
+
getListboxProps: We,
|
|
1761
|
+
getOptionProps: bt,
|
|
1762
|
+
value: B,
|
|
1763
|
+
dirty: Ie,
|
|
1764
|
+
expanded: ae,
|
|
1765
|
+
id: Ne,
|
|
1766
|
+
popupOpen: te,
|
|
1767
|
+
focused: nt,
|
|
1768
|
+
focusedItem: rt,
|
|
1769
|
+
anchorEl: Ce,
|
|
1770
|
+
setAnchorEl: mt,
|
|
1771
|
+
inputValue: yt,
|
|
1772
|
+
groupedOptions: $e
|
|
1773
|
+
} = ro({
|
|
1774
|
+
...s,
|
|
1785
1775
|
componentName: "Autocomplete"
|
|
1786
|
-
}),
|
|
1787
|
-
onMouseDown:
|
|
1788
|
-
} =
|
|
1789
|
-
ref:
|
|
1790
|
-
...
|
|
1791
|
-
} =
|
|
1792
|
-
...
|
|
1793
|
-
disablePortal:
|
|
1794
|
-
expanded:
|
|
1795
|
-
focused:
|
|
1796
|
-
fullWidth:
|
|
1797
|
-
getOptionLabel:
|
|
1798
|
-
hasClearIcon:
|
|
1799
|
-
hasPopupIcon:
|
|
1800
|
-
inputFocused:
|
|
1801
|
-
popupOpen:
|
|
1802
|
-
size:
|
|
1803
|
-
},
|
|
1776
|
+
}), Ge = !Pe && !q && Ie && !ve, Ke = (!me || be === !0) && be !== !1, {
|
|
1777
|
+
onMouseDown: ht
|
|
1778
|
+
} = Z(), {
|
|
1779
|
+
ref: vt,
|
|
1780
|
+
...at
|
|
1781
|
+
} = We(), Ee = se || ((m) => m.label ?? m), A = {
|
|
1782
|
+
...s,
|
|
1783
|
+
disablePortal: oe,
|
|
1784
|
+
expanded: ae,
|
|
1785
|
+
focused: nt,
|
|
1786
|
+
fullWidth: J,
|
|
1787
|
+
getOptionLabel: Ee,
|
|
1788
|
+
hasClearIcon: Ge,
|
|
1789
|
+
hasPopupIcon: Ke,
|
|
1790
|
+
inputFocused: rt === -1,
|
|
1791
|
+
popupOpen: te,
|
|
1792
|
+
size: De
|
|
1793
|
+
}, R = bo(A), ce = {
|
|
1804
1794
|
slots: {
|
|
1805
|
-
paper:
|
|
1806
|
-
popper:
|
|
1807
|
-
...
|
|
1795
|
+
paper: c,
|
|
1796
|
+
popper: Be,
|
|
1797
|
+
...tt
|
|
1808
1798
|
},
|
|
1809
1799
|
slotProps: {
|
|
1810
|
-
chip:
|
|
1811
|
-
listbox:
|
|
1812
|
-
...
|
|
1813
|
-
...
|
|
1800
|
+
chip: k,
|
|
1801
|
+
listbox: Le,
|
|
1802
|
+
...ge,
|
|
1803
|
+
...U
|
|
1814
1804
|
}
|
|
1815
|
-
}, [
|
|
1816
|
-
elementType:
|
|
1817
|
-
externalForwardedProps:
|
|
1818
|
-
ownerState:
|
|
1819
|
-
className:
|
|
1820
|
-
additionalProps:
|
|
1821
|
-
ref:
|
|
1822
|
-
}), [n, o] =
|
|
1823
|
-
elementType:
|
|
1824
|
-
externalForwardedProps:
|
|
1825
|
-
ownerState:
|
|
1826
|
-
className:
|
|
1827
|
-
}), [
|
|
1828
|
-
elementType:
|
|
1829
|
-
externalForwardedProps:
|
|
1830
|
-
ownerState:
|
|
1831
|
-
className:
|
|
1805
|
+
}, [_e, lt] = Ye("listbox", {
|
|
1806
|
+
elementType: Oo,
|
|
1807
|
+
externalForwardedProps: ce,
|
|
1808
|
+
ownerState: A,
|
|
1809
|
+
className: R.listbox,
|
|
1810
|
+
additionalProps: at,
|
|
1811
|
+
ref: vt
|
|
1812
|
+
}), [n, o] = Ye("paper", {
|
|
1813
|
+
elementType: Ut,
|
|
1814
|
+
externalForwardedProps: ce,
|
|
1815
|
+
ownerState: A,
|
|
1816
|
+
className: R.paper
|
|
1817
|
+
}), [a, d] = Ye("popper", {
|
|
1818
|
+
elementType: Ht,
|
|
1819
|
+
externalForwardedProps: ce,
|
|
1820
|
+
ownerState: A,
|
|
1821
|
+
className: R.popper,
|
|
1832
1822
|
additionalProps: {
|
|
1833
|
-
disablePortal:
|
|
1823
|
+
disablePortal: oe,
|
|
1834
1824
|
style: {
|
|
1835
|
-
width:
|
|
1825
|
+
width: Ce ? Ce.clientWidth : null
|
|
1836
1826
|
},
|
|
1837
1827
|
role: "presentation",
|
|
1838
|
-
anchorEl:
|
|
1839
|
-
open:
|
|
1828
|
+
anchorEl: Ce,
|
|
1829
|
+
open: te
|
|
1840
1830
|
}
|
|
1841
1831
|
});
|
|
1842
1832
|
let i;
|
|
1843
|
-
const
|
|
1844
|
-
className:
|
|
1845
|
-
disabled:
|
|
1846
|
-
...
|
|
1833
|
+
const v = (m) => ({
|
|
1834
|
+
className: R.tag,
|
|
1835
|
+
disabled: q,
|
|
1836
|
+
...gt(m)
|
|
1847
1837
|
});
|
|
1848
|
-
if (
|
|
1838
|
+
if (j ? B.length > 0 && (ne ? i = ne(B, v, A) : xe ? i = xe(B, v, A) : i = B.map((m, pe) => {
|
|
1849
1839
|
const {
|
|
1850
|
-
key:
|
|
1851
|
-
...
|
|
1852
|
-
} =
|
|
1853
|
-
index:
|
|
1840
|
+
key: ue,
|
|
1841
|
+
...Je
|
|
1842
|
+
} = v({
|
|
1843
|
+
index: pe
|
|
1854
1844
|
});
|
|
1855
|
-
return /* @__PURE__ */
|
|
1856
|
-
label:
|
|
1857
|
-
size:
|
|
1858
|
-
...
|
|
1859
|
-
...
|
|
1860
|
-
},
|
|
1861
|
-
})) :
|
|
1862
|
-
const
|
|
1863
|
-
!
|
|
1864
|
-
className:
|
|
1865
|
-
children: m
|
|
1845
|
+
return /* @__PURE__ */ D(Bt, {
|
|
1846
|
+
label: Ee(m),
|
|
1847
|
+
size: De,
|
|
1848
|
+
...Je,
|
|
1849
|
+
...ce.slotProps.chip
|
|
1850
|
+
}, ue);
|
|
1851
|
+
})) : xe && B != null && (i = xe(B, v, A)), V > -1 && Array.isArray(i)) {
|
|
1852
|
+
const m = i.length - V;
|
|
1853
|
+
!nt && m > 0 && (i = i.splice(0, V), i.push(/* @__PURE__ */ D("span", {
|
|
1854
|
+
className: R.tag,
|
|
1855
|
+
children: g(m)
|
|
1866
1856
|
}, i.length)));
|
|
1867
1857
|
}
|
|
1868
|
-
const
|
|
1869
|
-
children: [/* @__PURE__ */
|
|
1870
|
-
className:
|
|
1871
|
-
ownerState:
|
|
1858
|
+
const F = Ae || ((m) => /* @__PURE__ */ Xe("li", {
|
|
1859
|
+
children: [/* @__PURE__ */ D(Po, {
|
|
1860
|
+
className: R.groupLabel,
|
|
1861
|
+
ownerState: A,
|
|
1872
1862
|
component: "div",
|
|
1873
|
-
children:
|
|
1874
|
-
}), /* @__PURE__ */
|
|
1875
|
-
className:
|
|
1876
|
-
ownerState:
|
|
1877
|
-
children:
|
|
1863
|
+
children: m.group
|
|
1864
|
+
}), /* @__PURE__ */ D(So, {
|
|
1865
|
+
className: R.groupUl,
|
|
1866
|
+
ownerState: A,
|
|
1867
|
+
children: m.children
|
|
1878
1868
|
})]
|
|
1879
|
-
},
|
|
1869
|
+
}, m.key)), Wt = Re || ((m, pe) => {
|
|
1880
1870
|
const {
|
|
1881
|
-
key:
|
|
1882
|
-
...
|
|
1883
|
-
} =
|
|
1884
|
-
return /* @__PURE__ */
|
|
1885
|
-
...
|
|
1886
|
-
children:
|
|
1887
|
-
},
|
|
1888
|
-
}),
|
|
1889
|
-
const
|
|
1890
|
-
option:
|
|
1891
|
-
index:
|
|
1871
|
+
key: ue,
|
|
1872
|
+
...Je
|
|
1873
|
+
} = m;
|
|
1874
|
+
return /* @__PURE__ */ D("li", {
|
|
1875
|
+
...Je,
|
|
1876
|
+
children: Ee(pe)
|
|
1877
|
+
}, ue);
|
|
1878
|
+
}), Lt = (m, pe) => {
|
|
1879
|
+
const ue = bt({
|
|
1880
|
+
option: m,
|
|
1881
|
+
index: pe
|
|
1892
1882
|
});
|
|
1893
|
-
return
|
|
1894
|
-
...
|
|
1895
|
-
className:
|
|
1896
|
-
},
|
|
1897
|
-
selected:
|
|
1898
|
-
index:
|
|
1899
|
-
inputValue:
|
|
1900
|
-
},
|
|
1901
|
-
},
|
|
1902
|
-
return /* @__PURE__ */
|
|
1903
|
-
children: [/* @__PURE__ */
|
|
1904
|
-
ref:
|
|
1905
|
-
className:
|
|
1906
|
-
ownerState:
|
|
1907
|
-
...
|
|
1908
|
-
children:
|
|
1909
|
-
id:
|
|
1910
|
-
disabled:
|
|
1883
|
+
return Wt({
|
|
1884
|
+
...ue,
|
|
1885
|
+
className: R.option
|
|
1886
|
+
}, m, {
|
|
1887
|
+
selected: ue["aria-selected"],
|
|
1888
|
+
index: pe,
|
|
1889
|
+
inputValue: yt
|
|
1890
|
+
}, A);
|
|
1891
|
+
}, it = ce.slotProps.clearIndicator, st = ce.slotProps.popupIndicator;
|
|
1892
|
+
return /* @__PURE__ */ Xe(h.Fragment, {
|
|
1893
|
+
children: [/* @__PURE__ */ D(mo, {
|
|
1894
|
+
ref: l,
|
|
1895
|
+
className: de(R.root, C),
|
|
1896
|
+
ownerState: A,
|
|
1897
|
+
...ot(Q),
|
|
1898
|
+
children: et({
|
|
1899
|
+
id: Ne,
|
|
1900
|
+
disabled: q,
|
|
1911
1901
|
fullWidth: !0,
|
|
1912
|
-
size:
|
|
1913
|
-
InputLabelProps:
|
|
1902
|
+
size: De === "small" ? "small" : void 0,
|
|
1903
|
+
InputLabelProps: ft(),
|
|
1914
1904
|
InputProps: {
|
|
1915
|
-
ref:
|
|
1916
|
-
className:
|
|
1905
|
+
ref: mt,
|
|
1906
|
+
className: R.inputRoot,
|
|
1917
1907
|
startAdornment: i,
|
|
1918
|
-
onMouseDown: (
|
|
1919
|
-
|
|
1908
|
+
onMouseDown: (m) => {
|
|
1909
|
+
m.target === m.currentTarget && ht(m);
|
|
1920
1910
|
},
|
|
1921
|
-
...(
|
|
1922
|
-
endAdornment: /* @__PURE__ */
|
|
1923
|
-
className:
|
|
1924
|
-
ownerState:
|
|
1925
|
-
children: [
|
|
1911
|
+
...(Ge || Ke) && {
|
|
1912
|
+
endAdornment: /* @__PURE__ */ Xe(yo, {
|
|
1913
|
+
className: R.endAdornment,
|
|
1914
|
+
ownerState: A,
|
|
1915
|
+
children: [Ge ? /* @__PURE__ */ D(ho, {
|
|
1916
|
+
...ee(),
|
|
1917
|
+
"aria-label": L,
|
|
1918
|
+
title: L,
|
|
1919
|
+
ownerState: A,
|
|
1920
|
+
...it,
|
|
1921
|
+
className: de(R.clearIndicator, it == null ? void 0 : it.className),
|
|
1922
|
+
children: T
|
|
1923
|
+
}) : null, Ke ? /* @__PURE__ */ D(vo, {
|
|
1926
1924
|
...re(),
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
...pe(),
|
|
1935
|
-
disabled: p,
|
|
1936
|
-
"aria-label": le ? N : z,
|
|
1937
|
-
title: le ? N : z,
|
|
1938
|
-
ownerState: M,
|
|
1939
|
-
...dt,
|
|
1940
|
-
className: ye(V.popupIndicator, dt == null ? void 0 : dt.className),
|
|
1941
|
-
children: P
|
|
1925
|
+
disabled: q,
|
|
1926
|
+
"aria-label": te ? G : E,
|
|
1927
|
+
title: te ? G : E,
|
|
1928
|
+
ownerState: A,
|
|
1929
|
+
...st,
|
|
1930
|
+
className: de(R.popupIndicator, st == null ? void 0 : st.className),
|
|
1931
|
+
children: x
|
|
1942
1932
|
}) : null]
|
|
1943
1933
|
})
|
|
1944
1934
|
}
|
|
1945
1935
|
},
|
|
1946
1936
|
inputProps: {
|
|
1947
|
-
className:
|
|
1948
|
-
disabled:
|
|
1949
|
-
readOnly:
|
|
1950
|
-
...
|
|
1937
|
+
className: R.input,
|
|
1938
|
+
disabled: q,
|
|
1939
|
+
readOnly: ve,
|
|
1940
|
+
...Z()
|
|
1951
1941
|
}
|
|
1952
1942
|
})
|
|
1953
|
-
}),
|
|
1954
|
-
as:
|
|
1955
|
-
...
|
|
1956
|
-
children: /* @__PURE__ */
|
|
1943
|
+
}), Ce ? /* @__PURE__ */ D(xo, {
|
|
1944
|
+
as: a,
|
|
1945
|
+
...d,
|
|
1946
|
+
children: /* @__PURE__ */ Xe(Io, {
|
|
1957
1947
|
as: n,
|
|
1958
1948
|
...o,
|
|
1959
|
-
children: [
|
|
1960
|
-
className:
|
|
1961
|
-
ownerState:
|
|
1962
|
-
children:
|
|
1963
|
-
}) : null,
|
|
1964
|
-
className:
|
|
1965
|
-
ownerState:
|
|
1949
|
+
children: [z && $e.length === 0 ? /* @__PURE__ */ D(Co, {
|
|
1950
|
+
className: R.loading,
|
|
1951
|
+
ownerState: A,
|
|
1952
|
+
children: p
|
|
1953
|
+
}) : null, $e.length === 0 && !me && !z ? /* @__PURE__ */ D($o, {
|
|
1954
|
+
className: R.noOptions,
|
|
1955
|
+
ownerState: A,
|
|
1966
1956
|
role: "presentation",
|
|
1967
|
-
onMouseDown: (
|
|
1968
|
-
|
|
1957
|
+
onMouseDown: (m) => {
|
|
1958
|
+
m.preventDefault();
|
|
1969
1959
|
},
|
|
1970
|
-
children:
|
|
1971
|
-
}) : null,
|
|
1972
|
-
as:
|
|
1973
|
-
...
|
|
1974
|
-
children:
|
|
1975
|
-
key:
|
|
1976
|
-
group:
|
|
1977
|
-
children:
|
|
1978
|
-
}) :
|
|
1960
|
+
children: H
|
|
1961
|
+
}) : null, $e.length > 0 ? /* @__PURE__ */ D(_e, {
|
|
1962
|
+
as: He,
|
|
1963
|
+
...lt,
|
|
1964
|
+
children: $e.map((m, pe) => ke ? F({
|
|
1965
|
+
key: m.key,
|
|
1966
|
+
group: m.group,
|
|
1967
|
+
children: m.options.map((ue, Je) => Lt(ue, m.index + Je))
|
|
1968
|
+
}) : Lt(m, pe))
|
|
1979
1969
|
}) : null]
|
|
1980
1970
|
})
|
|
1981
1971
|
}) : null]
|
|
1982
1972
|
});
|
|
1983
1973
|
});
|
|
1984
|
-
process.env.NODE_ENV !== "production" && (
|
|
1974
|
+
process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
1985
1975
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1986
1976
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1987
1977
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2077,7 +2067,7 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
|
2077
2067
|
* The default value. Use when the component is not controlled.
|
|
2078
2068
|
* @default props.multiple ? [] : null
|
|
2079
2069
|
*/
|
|
2080
|
-
defaultValue:
|
|
2070
|
+
defaultValue: Dt(t.any, (e) => e.multiple && e.defaultValue !== void 0 && !Array.isArray(e.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${e.defaultValue} was provided.`].join(`
|
|
2081
2071
|
`)) : null),
|
|
2082
2072
|
/**
|
|
2083
2073
|
* If `true`, the input can't be cleared.
|
|
@@ -2215,7 +2205,7 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
|
2215
2205
|
* Set `-1` to disable the limit.
|
|
2216
2206
|
* @default -1
|
|
2217
2207
|
*/
|
|
2218
|
-
limitTags:
|
|
2208
|
+
limitTags: _t,
|
|
2219
2209
|
/**
|
|
2220
2210
|
* The component used to render the listbox.
|
|
2221
2211
|
* @default 'ul'
|
|
@@ -2431,262 +2421,9 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
|
2431
2421
|
* The value must have reference equality with the option in order to be selected.
|
|
2432
2422
|
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
2433
2423
|
*/
|
|
2434
|
-
value:
|
|
2424
|
+
value: Dt(t.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
|
|
2435
2425
|
`)) : null)
|
|
2436
2426
|
});
|
|
2437
|
-
const Wo = [
|
|
2438
|
-
"Hold a high public office",
|
|
2439
|
-
"Have an immediate family member who does",
|
|
2440
|
-
"A close business associate who does"
|
|
2441
|
-
], jo = [
|
|
2442
|
-
"Savings from salary (basic and/or bonus)",
|
|
2443
|
-
"Savings from salary (basic and/or bonus), self-employed",
|
|
2444
|
-
"Savings from salary (basic and/or bonus), self-employed company less than one year old",
|
|
2445
|
-
"Sales of shares or other investments / liquidation of investment portfolio",
|
|
2446
|
-
"Loan",
|
|
2447
|
-
"Sale of property - Land",
|
|
2448
|
-
"Sale of property - House, Condominium, Apartment",
|
|
2449
|
-
"Sale of property - Boat",
|
|
2450
|
-
"Sale of property - Autombile, Truck",
|
|
2451
|
-
"Inheritance - sole inheritor",
|
|
2452
|
-
"Inheritance - partical inheritor",
|
|
2453
|
-
"Maturity/surrender of life policy",
|
|
2454
|
-
"Maturity/surrender of retirement policy",
|
|
2455
|
-
"Company sale - Sole Proprietor, Sole Owner",
|
|
2456
|
-
"Company sale - Partnership",
|
|
2457
|
-
"Company sale - Corporation, LLC",
|
|
2458
|
-
"Company Profitsharing or Disbursement",
|
|
2459
|
-
"Company Dividends",
|
|
2460
|
-
"Gift"
|
|
2461
|
-
], Bo = [
|
|
2462
|
-
"Once a year",
|
|
2463
|
-
"Once every 3 months ",
|
|
2464
|
-
"Once a month ",
|
|
2465
|
-
"Once a week ",
|
|
2466
|
-
"Other"
|
|
2467
|
-
], Uo = [
|
|
2468
|
-
"Investment",
|
|
2469
|
-
"Cross Border ",
|
|
2470
|
-
"Identity Services ",
|
|
2471
|
-
"Buy, sell or trade Crypto ",
|
|
2472
|
-
"Wallet Services",
|
|
2473
|
-
"Custody Services",
|
|
2474
|
-
"Other Services"
|
|
2475
|
-
], On = ({
|
|
2476
|
-
userInfo: e,
|
|
2477
|
-
setUserInfo: r,
|
|
2478
|
-
processKyc: a,
|
|
2479
|
-
buttonComponent: c,
|
|
2480
|
-
processLoader: h
|
|
2481
|
-
}) => {
|
|
2482
|
-
const T = c ?? oo, [x, I] = Fe(!1), [S, $] = Fe(""), [k, R] = Fe(""), [Y, A] = Fe(""), [N, ie] = Fe(""), [te, de] = Fe(null), ae = () => {
|
|
2483
|
-
te && (r({
|
|
2484
|
-
...e,
|
|
2485
|
-
isPoliticalExpose: x,
|
|
2486
|
-
politicalExpose: S,
|
|
2487
|
-
frequency: k,
|
|
2488
|
-
reason: Y,
|
|
2489
|
-
source: N,
|
|
2490
|
-
origin: te.alpha3
|
|
2491
|
-
}), a(x, S, k, Y, N, te.alpha3));
|
|
2492
|
-
};
|
|
2493
|
-
return /* @__PURE__ */ E(zt, { children: [
|
|
2494
|
-
/* @__PURE__ */ s(et, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ s(eo, { totalSteps: 4, currentStep: 4 }) }),
|
|
2495
|
-
/* @__PURE__ */ E(et, { pl: 2, mt: 4, children: [
|
|
2496
|
-
/* @__PURE__ */ s(He, { variant: "h5", sx: { fontWeight: "bold" }, children: "Additional Questions" }),
|
|
2497
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2498
|
-
"Are you a politically exposed person?",
|
|
2499
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2500
|
-
] }) }),
|
|
2501
|
-
/* @__PURE__ */ E(St, { mt: 0, container: !0, spacing: 2, children: [
|
|
2502
|
-
/* @__PURE__ */ s(St, { size: { xs: 6 }, children: /* @__PURE__ */ s(
|
|
2503
|
-
et,
|
|
2504
|
-
{
|
|
2505
|
-
onClick: () => I(!0),
|
|
2506
|
-
className: `political-expose ${x === !0 && "active"}`,
|
|
2507
|
-
children: "Yes"
|
|
2508
|
-
}
|
|
2509
|
-
) }),
|
|
2510
|
-
/* @__PURE__ */ s(St, { size: { xs: 6 }, children: /* @__PURE__ */ s(
|
|
2511
|
-
et,
|
|
2512
|
-
{
|
|
2513
|
-
onClick: () => {
|
|
2514
|
-
I(!1), $("");
|
|
2515
|
-
},
|
|
2516
|
-
className: `political-expose ${x === !1 && "active"}`,
|
|
2517
|
-
children: "No"
|
|
2518
|
-
}
|
|
2519
|
-
) })
|
|
2520
|
-
] }),
|
|
2521
|
-
x && /* @__PURE__ */ s(ft, { sx: { mt: 2 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ E(
|
|
2522
|
-
gt,
|
|
2523
|
-
{
|
|
2524
|
-
sx: {
|
|
2525
|
-
fontWeight: "bold",
|
|
2526
|
-
color: "#16359D",
|
|
2527
|
-
".MuiSvgIcon-root ": {
|
|
2528
|
-
fill: "#16359D !important"
|
|
2529
|
-
}
|
|
2530
|
-
},
|
|
2531
|
-
variant: "filled",
|
|
2532
|
-
value: S,
|
|
2533
|
-
displayEmpty: !0,
|
|
2534
|
-
onChange: (p) => $(p.target.value),
|
|
2535
|
-
children: [
|
|
2536
|
-
/* @__PURE__ */ s(he, { value: "", children: "Please select" }),
|
|
2537
|
-
Wo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
|
|
2538
|
-
]
|
|
2539
|
-
}
|
|
2540
|
-
) }),
|
|
2541
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2542
|
-
"Expected frequency of transactions?",
|
|
2543
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2544
|
-
] }) }),
|
|
2545
|
-
/* @__PURE__ */ s(ft, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ E(
|
|
2546
|
-
gt,
|
|
2547
|
-
{
|
|
2548
|
-
sx: {
|
|
2549
|
-
fontWeight: "bold",
|
|
2550
|
-
color: "#16359D",
|
|
2551
|
-
".MuiSvgIcon-root ": {
|
|
2552
|
-
fill: "#16359D !important"
|
|
2553
|
-
}
|
|
2554
|
-
},
|
|
2555
|
-
variant: "filled",
|
|
2556
|
-
value: k,
|
|
2557
|
-
displayEmpty: !0,
|
|
2558
|
-
onChange: (p) => R(p.target.value),
|
|
2559
|
-
children: [
|
|
2560
|
-
/* @__PURE__ */ s(he, { value: "", children: "Please select" }),
|
|
2561
|
-
Bo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
|
|
2562
|
-
]
|
|
2563
|
-
}
|
|
2564
|
-
) }),
|
|
2565
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2566
|
-
"Reason for signing up",
|
|
2567
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2568
|
-
] }) }),
|
|
2569
|
-
/* @__PURE__ */ s(ft, { sx: { mt: 1 }, className: "text-left", fullWidth: !0, children: /* @__PURE__ */ E(
|
|
2570
|
-
gt,
|
|
2571
|
-
{
|
|
2572
|
-
sx: {
|
|
2573
|
-
fontWeight: "bold",
|
|
2574
|
-
color: "#16359D",
|
|
2575
|
-
".MuiSvgIcon-root ": {
|
|
2576
|
-
fill: "#16359D !important"
|
|
2577
|
-
}
|
|
2578
|
-
},
|
|
2579
|
-
variant: "filled",
|
|
2580
|
-
value: Y,
|
|
2581
|
-
displayEmpty: !0,
|
|
2582
|
-
onChange: (p) => A(p.target.value),
|
|
2583
|
-
children: [
|
|
2584
|
-
/* @__PURE__ */ s(he, { value: "", children: "Please select" }),
|
|
2585
|
-
Uo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
|
|
2586
|
-
]
|
|
2587
|
-
}
|
|
2588
|
-
) }),
|
|
2589
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2590
|
-
"Source of wealth",
|
|
2591
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2592
|
-
] }) }),
|
|
2593
|
-
/* @__PURE__ */ s(ft, { className: "mt8 text-left", fullWidth: !0, children: /* @__PURE__ */ E(
|
|
2594
|
-
gt,
|
|
2595
|
-
{
|
|
2596
|
-
sx: {
|
|
2597
|
-
fontWeight: "bold",
|
|
2598
|
-
color: "#16359D",
|
|
2599
|
-
".MuiSvgIcon-root ": {
|
|
2600
|
-
fill: "#16359D !important"
|
|
2601
|
-
}
|
|
2602
|
-
},
|
|
2603
|
-
variant: "filled",
|
|
2604
|
-
value: N,
|
|
2605
|
-
displayEmpty: !0,
|
|
2606
|
-
onChange: (p) => ie(p.target.value),
|
|
2607
|
-
children: [
|
|
2608
|
-
/* @__PURE__ */ s(he, { value: "", children: "Please select" }),
|
|
2609
|
-
jo.map((p) => /* @__PURE__ */ s(he, { value: p, children: p }, p))
|
|
2610
|
-
]
|
|
2611
|
-
}
|
|
2612
|
-
) }),
|
|
2613
|
-
/* @__PURE__ */ s(He, { mt: 4, variant: "body1", children: /* @__PURE__ */ E("strong", { children: [
|
|
2614
|
-
"Origin of funds",
|
|
2615
|
-
/* @__PURE__ */ s("span", { style: { color: "red" }, children: "*" })
|
|
2616
|
-
] }) }),
|
|
2617
|
-
/* @__PURE__ */ s(
|
|
2618
|
-
Xt,
|
|
2619
|
-
{
|
|
2620
|
-
sx: {
|
|
2621
|
-
mt: 2,
|
|
2622
|
-
".MuiSvgIcon-root ": {
|
|
2623
|
-
fill: "#16359D !important"
|
|
2624
|
-
}
|
|
2625
|
-
},
|
|
2626
|
-
value: te,
|
|
2627
|
-
isOptionEqualToValue: (p, W) => p.alpha3 === W.alpha3,
|
|
2628
|
-
onChange: (p, W) => de(W),
|
|
2629
|
-
options: to,
|
|
2630
|
-
autoHighlight: !0,
|
|
2631
|
-
openOnFocus: !0,
|
|
2632
|
-
getOptionLabel: (p) => p.name,
|
|
2633
|
-
renderOption: (p, W) => /* @__PURE__ */ E(
|
|
2634
|
-
et,
|
|
2635
|
-
{
|
|
2636
|
-
component: "li",
|
|
2637
|
-
sx: { "& > img": { mr: 2, flexShrink: 0 } },
|
|
2638
|
-
...p,
|
|
2639
|
-
children: [
|
|
2640
|
-
/* @__PURE__ */ s(
|
|
2641
|
-
"img",
|
|
2642
|
-
{
|
|
2643
|
-
loading: "lazy",
|
|
2644
|
-
width: "20",
|
|
2645
|
-
src: `https://flagcdn.com/w20/${W.alpha2.toLowerCase()}.png`,
|
|
2646
|
-
srcSet: `https://flagcdn.com/w40/${W.alpha2.toLowerCase()}.png 2x`,
|
|
2647
|
-
alt: ""
|
|
2648
|
-
}
|
|
2649
|
-
),
|
|
2650
|
-
W.name,
|
|
2651
|
-
" (",
|
|
2652
|
-
W.alpha3,
|
|
2653
|
-
")"
|
|
2654
|
-
]
|
|
2655
|
-
}
|
|
2656
|
-
),
|
|
2657
|
-
renderInput: (p) => /* @__PURE__ */ s(
|
|
2658
|
-
po,
|
|
2659
|
-
{
|
|
2660
|
-
className: "country-select-field",
|
|
2661
|
-
...p,
|
|
2662
|
-
variant: "filled",
|
|
2663
|
-
placeholder: "Please select",
|
|
2664
|
-
inputProps: {
|
|
2665
|
-
...p.inputProps,
|
|
2666
|
-
autoComplete: "new-password"
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
)
|
|
2670
|
-
}
|
|
2671
|
-
)
|
|
2672
|
-
] }),
|
|
2673
|
-
/* @__PURE__ */ s(
|
|
2674
|
-
T,
|
|
2675
|
-
{
|
|
2676
|
-
sx: { mt: 4 },
|
|
2677
|
-
variant: "contained",
|
|
2678
|
-
onClick: ae,
|
|
2679
|
-
disabled: !k || !Y || !N || !te || x && !S,
|
|
2680
|
-
fullWidth: !0,
|
|
2681
|
-
children: /* @__PURE__ */ s("strong", { children: h ? /* @__PURE__ */ E(zt, { children: [
|
|
2682
|
-
/* @__PURE__ */ s(uo, { size: 15, color: "inherit" }),
|
|
2683
|
-
" Processing..."
|
|
2684
|
-
] }) : "Submit KYC" })
|
|
2685
|
-
}
|
|
2686
|
-
)
|
|
2687
|
-
] });
|
|
2688
|
-
};
|
|
2689
2427
|
export {
|
|
2690
|
-
|
|
2691
|
-
On as P
|
|
2428
|
+
ko as A
|
|
2692
2429
|
};
|