everest-npm-features 0.0.1 → 0.0.2
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/ArrowDropDown-DRUQbGft.js +8 -0
- package/dist/ArrowRight-t-YgAHUn.js +8 -0
- package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
- package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
- package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
- package/dist/Cancel-BMPJ8ZAg.js +11 -0
- package/dist/CardContent-DEA5pnhr.js +141 -0
- package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
- package/dist/Close-mXCsZSxZ.js +8 -0
- package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
- package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
- package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
- package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
- package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
- package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
- package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
- package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
- package/dist/FormControlLabel-BMeMEwyK.js +738 -0
- package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
- package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
- package/dist/Grid2-B0mJbwjl.js +374 -0
- package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
- package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
- package/dist/Info-CkE3Gsf2.js +8 -0
- package/dist/InputAdornment-DZJP9Njd.js +169 -0
- package/dist/ListItemIcon-JAntieDc.js +82 -0
- package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
- package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
- package/dist/Paper-L8ipwfkc.js +183 -0
- package/dist/PlayArrow-D98xCL5M.js +21 -0
- package/dist/Portal-DxdKGEvu.js +86 -0
- package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
- package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
- package/dist/Stack-CkCveRRR.js +174 -0
- package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
- package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/{withThemeProvider.css → main.css} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles3.css +1 -0
- package/dist/auth-AwdxCQXF.js +46 -0
- package/dist/axios-BEX6n2A7.js +796 -0
- package/dist/bank-D2rGgUDP.js +23 -0
- package/dist/components/Account/index.d.ts +4 -0
- package/dist/components/Account/index.js +310 -0
- package/dist/components/History/index.d.ts +2 -0
- package/dist/components/History/index.js +804 -0
- package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
- package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
- package/dist/components/Profile/documents.js +19 -14
- package/dist/components/Profile/index.js +128 -135
- package/dist/components/Receive/index.js +25 -23
- package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
- package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/form.js +26 -0
- package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
- package/dist/components/RocketRamp/Buy/index.js +29 -0
- package/dist/components/RocketRamp/Buy/types.d.ts +32 -0
- package/dist/components/RocketRamp/Buy/types.js +1 -0
- package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
- package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
- package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
- package/dist/components/RocketRamp/Dashboard/index.js +36 -0
- package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
- package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
- package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
- package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
- package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
- package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
- package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
- package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
- package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
- package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
- package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
- package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
- package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/index.js +82 -0
- package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
- package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
- package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
- package/dist/components/RocketRamp/SignIn/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/email.js +70 -0
- package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/index.js +163 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
- package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/summary.js +57 -0
- package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
- package/dist/components/RocketRamp/SignUp/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
- package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
- package/dist/components/RocketRamp/Transactions/index.js +38 -0
- package/dist/components/Send/index.js +62 -51
- package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
- package/dist/components/Shared/ConnectWallet/index.js +25364 -0
- package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
- package/dist/components/Shared/HistoryItem/index.js +120 -0
- package/dist/components/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Shared/TokenModal/index.d.ts +10 -0
- package/dist/components/Shared/TokenModal/index.js +104 -0
- package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
- package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
- package/dist/components/Shared/addBank.d.ts +2 -0
- package/dist/components/Shared/addBank.js +172 -0
- package/dist/components/Shared/button.js +1 -1
- package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
- package/dist/components/Shared/connectPlaidBank.js +57 -0
- package/dist/components/Shared/incode.js +34 -32
- package/dist/components/Shared/inputField.js +1 -1
- package/dist/components/Shared/noData.d.ts +4 -0
- package/dist/components/Shared/noData.js +14 -0
- package/dist/components/Shared/pin.js +3 -3
- package/dist/components/Shared/step.js +2 -2
- package/dist/components/Shared/tooltip.d.ts +4 -0
- package/dist/components/Shared/tooltip.js +2107 -0
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/SignIn/index.js +26 -24
- package/dist/components/SignUp/index.js +108 -348
- package/dist/components/SignUp/pin.js +116 -844
- package/dist/components/SignUp/privacy.js +3 -3
- package/dist/components/SignUp/terms.js +3 -3
- package/dist/components/SignUp/types.d.ts +0 -1
- package/dist/components/SignUp/userInfo.js +4 -4
- package/dist/components/Stake/gems/index.d.ts +2 -0
- package/dist/components/Stake/gems/index.js +214 -0
- package/dist/components/Stake/id/index.d.ts +2 -0
- package/dist/components/Stake/id/index.js +233 -0
- package/dist/components/Stake/index.d.ts +5 -0
- package/dist/components/Stake/index.js +346 -0
- package/dist/components/Swap/index.d.ts +2 -0
- package/dist/components/Swap/index.js +489 -0
- package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
- package/dist/components/SwapAndUniSwap/index.js +43 -0
- package/dist/components/WalletPortfolio/index.js +191 -263
- package/dist/components/WalletPortfolio/tokenRow.js +8 -5
- package/dist/constants-d3SWzaRo.js +3981 -0
- package/dist/countries-BVn1FubK.js +1925 -0
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
- package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
- package/dist/data/countries.json.d.ts +1925 -0
- package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
- package/dist/dividerClasses-SUAUDDqL.js +10 -0
- package/dist/{documents-CL4Ajr_B.js → documents-2UqIXbDq.js} +130 -129
- package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
- package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
- package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
- package/dist/generic-token-B_ptO5yb.js +4 -0
- package/dist/hoc/withThemeProvider.js +33 -32
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +63 -60
- package/dist/icons/buyIcon.d.ts +2 -0
- package/dist/icons/buyIcon.js +19 -0
- package/dist/icons/canceledBuyIcon.d.ts +2 -0
- package/dist/icons/canceledBuyIcon.js +34 -0
- package/dist/icons/canceledRedeemIcon.d.ts +2 -0
- package/dist/icons/canceledRedeemIcon.js +35 -0
- package/dist/icons/failedBuyIcon.d.ts +2 -0
- package/dist/icons/failedBuyIcon.js +48 -0
- package/dist/icons/failedRedeemIcon.d.ts +2 -0
- package/dist/icons/failedRedeemIcon.js +48 -0
- package/dist/icons/pendingBuyIcon.d.ts +2 -0
- package/dist/icons/pendingBuyIcon.js +38 -0
- package/dist/icons/pendingRedeemIcon.d.ts +2 -0
- package/dist/icons/pendingRedeemIcon.js +34 -0
- package/dist/icons/redeemIcon.d.ts +2 -0
- package/dist/icons/redeemIcon.js +19 -0
- package/dist/index-B8QKlEgj.js +37095 -0
- package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
- package/dist/index-C3FYdQkQ.js +4050 -0
- package/dist/index-CrajlEO_.js +576 -0
- package/dist/index-DxLB0ZV1.js +760 -0
- package/dist/index-TElEjliR.js +9 -0
- package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
- package/dist/index-ceeCtFuh.js +136 -0
- package/dist/index.esm-BsMAMhYW.js +237 -0
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/main.d.ts +99 -0
- package/dist/main.js +34 -12
- package/dist/moment-h96o7c8I.js +2578 -0
- package/dist/order-Cry6kuj8.js +23 -0
- package/dist/ownerWindow-C-760D__.js +7 -0
- package/dist/providers/metaMask.d.ts +6 -0
- package/dist/providers/metaMask.js +24 -0
- package/dist/react-redux-B4BZippc.js +255 -0
- package/dist/react-webcam-B3cXh1XT.js +267 -0
- package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
- package/dist/rr-primary-logo-CqI24c8v.js +4 -0
- package/dist/stake-Q_O90kTv.js +17 -0
- package/dist/store.d.ts +65 -0
- package/dist/store.js +1 -0
- package/dist/styled-BTIMwpiX.js +5 -0
- package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
- package/dist/styles.module-O5VVND5e.js +22 -0
- package/dist/tokenRow-CgnPD-4U.js +206 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CfmEP6sW.js +18 -0
- package/dist/useSlot-DaP6eodX.js +50 -0
- package/dist/useTheme-BghcbbEW.js +9 -0
- package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
- package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
- package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
- package/dist/useTimeout-D29bZ7Gz.js +56 -0
- package/dist/user-Dzur3Cro.js +24 -0
- package/dist/util/constants.d.ts +48 -0
- package/dist/util/constants.js +69 -21
- package/dist/util/conversions.js +54 -22271
- package/dist/util/functions.d.ts +5 -0
- package/dist/util/functions.js +81 -24
- package/dist/util/regex.d.ts +3 -0
- package/dist/util/regex.js +6 -0
- package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
- package/dist/wallet-Dw896DF7.js +35 -0
- package/dist/web3-u4qDZYpo.js +22328 -0
- package/package.json +8 -3
- package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
- package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/auth-Cj5FKr_m.js +0 -19
- package/dist/axios-xPiQW9EP.js +0 -118114
- package/dist/defaultTheme-OIfL8Ia7.js +0 -5
- package/dist/dividerClasses-Z7VLlu5C.js +0 -10
- package/dist/index-DKTkUdik.js +0 -6
- package/dist/react-redux-VW99uJjf.js +0 -5908
- package/dist/react-webcam-Cov1TP0q.js +0 -639
- package/dist/styled-Da6GnxEE.js +0 -5
- package/dist/tokenRow-Cdd_jFjp.js +0 -206
- package/dist/useFormControl-Bo6Tf_xo.js +0 -46
- package/dist/useSlot-CURNJ3JC.js +0 -306
- package/dist/useTheme-DWRMvRU8.js +0 -9
- package/dist/useTimeout-lr7ryrda.js +0 -75
|
@@ -1,808 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import { I as me } from "../../IconButton-CRGy76pJ.js";
|
|
25
|
-
function ze(o) {
|
|
26
|
-
return Q("PrivateSwitchBase", o);
|
|
27
|
-
}
|
|
28
|
-
X("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
29
|
-
const $e = (o) => {
|
|
30
|
-
const {
|
|
31
|
-
classes: t,
|
|
32
|
-
checked: s,
|
|
33
|
-
disabled: r,
|
|
34
|
-
edge: c
|
|
35
|
-
} = o, l = {
|
|
36
|
-
root: ["root", s && "checked", r && "disabled", c && `edge${$(c)}`],
|
|
37
|
-
input: ["input"]
|
|
38
|
-
};
|
|
39
|
-
return Y(l, ze, t);
|
|
40
|
-
}, Ee = D(we)({
|
|
41
|
-
padding: 9,
|
|
42
|
-
borderRadius: "50%",
|
|
43
|
-
variants: [{
|
|
44
|
-
props: {
|
|
45
|
-
edge: "start",
|
|
46
|
-
size: "small"
|
|
47
|
-
},
|
|
48
|
-
style: {
|
|
49
|
-
marginLeft: -3
|
|
50
|
-
}
|
|
51
|
-
}, {
|
|
52
|
-
props: ({
|
|
53
|
-
edge: o,
|
|
54
|
-
ownerState: t
|
|
55
|
-
}) => o === "start" && t.size !== "small",
|
|
56
|
-
style: {
|
|
57
|
-
marginLeft: -12
|
|
58
|
-
}
|
|
59
|
-
}, {
|
|
60
|
-
props: {
|
|
61
|
-
edge: "end",
|
|
62
|
-
size: "small"
|
|
63
|
-
},
|
|
64
|
-
style: {
|
|
65
|
-
marginRight: -3
|
|
66
|
-
}
|
|
67
|
-
}, {
|
|
68
|
-
props: ({
|
|
69
|
-
edge: o,
|
|
70
|
-
ownerState: t
|
|
71
|
-
}) => o === "end" && t.size !== "small",
|
|
72
|
-
style: {
|
|
73
|
-
marginRight: -12
|
|
74
|
-
}
|
|
75
|
-
}]
|
|
76
|
-
}), Le = D("input", {
|
|
77
|
-
shouldForwardProp: fe
|
|
78
|
-
})({
|
|
79
|
-
cursor: "inherit",
|
|
80
|
-
position: "absolute",
|
|
81
|
-
opacity: 0,
|
|
82
|
-
width: "100%",
|
|
83
|
-
height: "100%",
|
|
84
|
-
top: 0,
|
|
85
|
-
left: 0,
|
|
86
|
-
margin: 0,
|
|
87
|
-
padding: 0,
|
|
88
|
-
zIndex: 1
|
|
89
|
-
}), ge = /* @__PURE__ */ j.forwardRef(function(t, s) {
|
|
90
|
-
const {
|
|
91
|
-
autoFocus: r,
|
|
92
|
-
checked: c,
|
|
93
|
-
checkedIcon: l,
|
|
94
|
-
className: m,
|
|
95
|
-
defaultChecked: i,
|
|
96
|
-
disabled: k,
|
|
97
|
-
disableFocusRipple: d = !1,
|
|
98
|
-
edge: x = !1,
|
|
99
|
-
icon: R,
|
|
100
|
-
id: S,
|
|
101
|
-
inputProps: w,
|
|
102
|
-
inputRef: T,
|
|
103
|
-
name: I,
|
|
104
|
-
onBlur: u,
|
|
105
|
-
onChange: y,
|
|
106
|
-
onFocus: O,
|
|
107
|
-
readOnly: E,
|
|
108
|
-
required: B = !1,
|
|
109
|
-
tabIndex: C,
|
|
110
|
-
type: f,
|
|
111
|
-
value: a,
|
|
112
|
-
...h
|
|
113
|
-
} = t, [v, q] = Be({
|
|
114
|
-
controlled: c,
|
|
115
|
-
default: !!i,
|
|
116
|
-
name: "SwitchBase",
|
|
117
|
-
state: "checked"
|
|
118
|
-
}), b = be(), W = (P) => {
|
|
119
|
-
O && O(P), b && b.onFocus && b.onFocus(P);
|
|
120
|
-
}, L = (P) => {
|
|
121
|
-
u && u(P), b && b.onBlur && b.onBlur(P);
|
|
122
|
-
}, N = (P) => {
|
|
123
|
-
if (P.nativeEvent.defaultPrevented)
|
|
124
|
-
return;
|
|
125
|
-
const ne = P.target.checked;
|
|
126
|
-
q(ne), y && y(P, ne);
|
|
127
|
-
};
|
|
128
|
-
let g = k;
|
|
129
|
-
b && typeof g > "u" && (g = b.disabled);
|
|
130
|
-
const ye = f === "checkbox" || f === "radio", _ = {
|
|
131
|
-
...t,
|
|
132
|
-
checked: v,
|
|
133
|
-
disabled: g,
|
|
134
|
-
disableFocusRipple: d,
|
|
135
|
-
edge: x
|
|
136
|
-
}, te = $e(_);
|
|
137
|
-
return /* @__PURE__ */ p(Ee, {
|
|
138
|
-
component: "span",
|
|
139
|
-
className: H(te.root, m),
|
|
140
|
-
centerRipple: !0,
|
|
141
|
-
focusRipple: !d,
|
|
142
|
-
disabled: g,
|
|
143
|
-
tabIndex: null,
|
|
144
|
-
role: void 0,
|
|
145
|
-
onFocus: W,
|
|
146
|
-
onBlur: L,
|
|
147
|
-
ownerState: _,
|
|
148
|
-
ref: s,
|
|
149
|
-
...h,
|
|
150
|
-
children: [/* @__PURE__ */ n(Le, {
|
|
151
|
-
autoFocus: r,
|
|
152
|
-
checked: c,
|
|
153
|
-
defaultChecked: i,
|
|
154
|
-
className: te.input,
|
|
155
|
-
disabled: g,
|
|
156
|
-
id: ye ? S : void 0,
|
|
157
|
-
name: I,
|
|
158
|
-
onChange: N,
|
|
159
|
-
readOnly: E,
|
|
160
|
-
ref: T,
|
|
161
|
-
required: B,
|
|
162
|
-
ownerState: _,
|
|
163
|
-
tabIndex: C,
|
|
164
|
-
type: f,
|
|
165
|
-
...f === "checkbox" && a === void 0 ? {} : {
|
|
166
|
-
value: a
|
|
167
|
-
},
|
|
168
|
-
...w
|
|
169
|
-
}), v ? l : R]
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
173
|
-
/**
|
|
174
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
175
|
-
*/
|
|
176
|
-
autoFocus: e.bool,
|
|
177
|
-
/**
|
|
178
|
-
* If `true`, the component is checked.
|
|
179
|
-
*/
|
|
180
|
-
checked: e.bool,
|
|
181
|
-
/**
|
|
182
|
-
* The icon to display when the component is checked.
|
|
183
|
-
*/
|
|
184
|
-
checkedIcon: e.node.isRequired,
|
|
185
|
-
/**
|
|
186
|
-
* Override or extend the styles applied to the component.
|
|
187
|
-
*/
|
|
188
|
-
classes: e.object,
|
|
189
|
-
/**
|
|
190
|
-
* @ignore
|
|
191
|
-
*/
|
|
192
|
-
className: e.string,
|
|
193
|
-
/**
|
|
194
|
-
* @ignore
|
|
195
|
-
*/
|
|
196
|
-
defaultChecked: e.bool,
|
|
197
|
-
/**
|
|
198
|
-
* If `true`, the component is disabled.
|
|
199
|
-
*/
|
|
200
|
-
disabled: e.bool,
|
|
201
|
-
/**
|
|
202
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
203
|
-
* @default false
|
|
204
|
-
*/
|
|
205
|
-
disableFocusRipple: e.bool,
|
|
206
|
-
/**
|
|
207
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
208
|
-
* side (this is often helpful for aligning the left or right
|
|
209
|
-
* side of the icon with content above or below, without ruining the border
|
|
210
|
-
* size and shape).
|
|
211
|
-
* @default false
|
|
212
|
-
*/
|
|
213
|
-
edge: e.oneOf(["end", "start", !1]),
|
|
214
|
-
/**
|
|
215
|
-
* The icon to display when the component is unchecked.
|
|
216
|
-
*/
|
|
217
|
-
icon: e.node.isRequired,
|
|
218
|
-
/**
|
|
219
|
-
* The id of the `input` element.
|
|
220
|
-
*/
|
|
221
|
-
id: e.string,
|
|
222
|
-
/**
|
|
223
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
224
|
-
*/
|
|
225
|
-
inputProps: e.object,
|
|
226
|
-
/**
|
|
227
|
-
* Pass a ref to the `input` element.
|
|
228
|
-
*/
|
|
229
|
-
inputRef: ee,
|
|
230
|
-
/*
|
|
231
|
-
* @ignore
|
|
232
|
-
*/
|
|
233
|
-
name: e.string,
|
|
234
|
-
/**
|
|
235
|
-
* @ignore
|
|
236
|
-
*/
|
|
237
|
-
onBlur: e.func,
|
|
238
|
-
/**
|
|
239
|
-
* Callback fired when the state is changed.
|
|
240
|
-
*
|
|
241
|
-
* @param {object} event The event source of the callback.
|
|
242
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
243
|
-
*/
|
|
244
|
-
onChange: e.func,
|
|
245
|
-
/**
|
|
246
|
-
* @ignore
|
|
247
|
-
*/
|
|
248
|
-
onFocus: e.func,
|
|
249
|
-
/**
|
|
250
|
-
* It prevents the user from changing the value of the field
|
|
251
|
-
* (not from interacting with the field).
|
|
252
|
-
*/
|
|
253
|
-
readOnly: e.bool,
|
|
254
|
-
/**
|
|
255
|
-
* If `true`, the `input` element is required.
|
|
256
|
-
*/
|
|
257
|
-
required: e.bool,
|
|
258
|
-
/**
|
|
259
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
260
|
-
*/
|
|
261
|
-
sx: e.object,
|
|
262
|
-
/**
|
|
263
|
-
* @ignore
|
|
264
|
-
*/
|
|
265
|
-
tabIndex: e.oneOfType([e.number, e.string]),
|
|
266
|
-
/**
|
|
267
|
-
* The input component prop `type`.
|
|
268
|
-
*/
|
|
269
|
-
type: e.string.isRequired,
|
|
270
|
-
/**
|
|
271
|
-
* The value of the component.
|
|
272
|
-
*/
|
|
273
|
-
value: e.any
|
|
274
|
-
});
|
|
275
|
-
const je = oe(/* @__PURE__ */ n("path", {
|
|
276
|
-
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
277
|
-
}), "CheckBoxOutlineBlank"), qe = oe(/* @__PURE__ */ n("path", {
|
|
278
|
-
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
279
|
-
}), "CheckBox"), Me = oe(/* @__PURE__ */ n("path", {
|
|
280
|
-
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
281
|
-
}), "IndeterminateCheckBox");
|
|
282
|
-
function De(o) {
|
|
283
|
-
return Q("MuiCheckbox", o);
|
|
284
|
-
}
|
|
285
|
-
const K = X("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Ue = (o) => {
|
|
286
|
-
const {
|
|
287
|
-
classes: t,
|
|
288
|
-
indeterminate: s,
|
|
289
|
-
color: r,
|
|
290
|
-
size: c
|
|
291
|
-
} = o, l = {
|
|
292
|
-
root: ["root", s && "indeterminate", `color${$(r)}`, `size${$(c)}`]
|
|
293
|
-
}, m = Y(l, De, t);
|
|
294
|
-
return {
|
|
295
|
-
...t,
|
|
296
|
-
// forward the disabled and checked classes to the SwitchBase
|
|
297
|
-
...m
|
|
298
|
-
};
|
|
299
|
-
}, Ve = D(ge, {
|
|
300
|
-
shouldForwardProp: (o) => fe(o) || o === "classes",
|
|
301
|
-
name: "MuiCheckbox",
|
|
302
|
-
slot: "Root",
|
|
303
|
-
overridesResolver: (o, t) => {
|
|
304
|
-
const {
|
|
305
|
-
ownerState: s
|
|
306
|
-
} = o;
|
|
307
|
-
return [t.root, s.indeterminate && t.indeterminate, t[`size${$(s.size)}`], s.color !== "default" && t[`color${$(s.color)}`]];
|
|
308
|
-
}
|
|
309
|
-
})(Z(({
|
|
310
|
-
theme: o
|
|
311
|
-
}) => ({
|
|
312
|
-
color: (o.vars || o).palette.text.secondary,
|
|
313
|
-
variants: [{
|
|
314
|
-
props: {
|
|
315
|
-
color: "default",
|
|
316
|
-
disableRipple: !1
|
|
317
|
-
},
|
|
318
|
-
style: {
|
|
319
|
-
"&:hover": {
|
|
320
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : le(o.palette.action.active, o.palette.action.hoverOpacity)
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}, ...Object.entries(o.palette).filter(ce()).map(([t]) => ({
|
|
324
|
-
props: {
|
|
325
|
-
color: t,
|
|
326
|
-
disableRipple: !1
|
|
327
|
-
},
|
|
328
|
-
style: {
|
|
329
|
-
"&:hover": {
|
|
330
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : le(o.palette[t].main, o.palette.action.hoverOpacity)
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
})), ...Object.entries(o.palette).filter(ce()).map(([t]) => ({
|
|
334
|
-
props: {
|
|
335
|
-
color: t
|
|
336
|
-
},
|
|
337
|
-
style: {
|
|
338
|
-
[`&.${K.checked}, &.${K.indeterminate}`]: {
|
|
339
|
-
color: (o.vars || o).palette[t].main
|
|
340
|
-
},
|
|
341
|
-
[`&.${K.disabled}`]: {
|
|
342
|
-
color: (o.vars || o).palette.action.disabled
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
})), {
|
|
346
|
-
// Should be last to override other colors
|
|
347
|
-
props: {
|
|
348
|
-
disableRipple: !1
|
|
349
|
-
},
|
|
350
|
-
style: {
|
|
351
|
-
// Reset on touch devices, it doesn't add specificity
|
|
352
|
-
"&:hover": {
|
|
353
|
-
"@media (hover: none)": {
|
|
354
|
-
backgroundColor: "transparent"
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}]
|
|
359
|
-
}))), He = /* @__PURE__ */ n(qe, {}), We = /* @__PURE__ */ n(je, {}), _e = /* @__PURE__ */ n(Me, {}), G = /* @__PURE__ */ j.forwardRef(function(t, s) {
|
|
360
|
-
const r = he({
|
|
361
|
-
props: t,
|
|
362
|
-
name: "MuiCheckbox"
|
|
363
|
-
}), {
|
|
364
|
-
checkedIcon: c = He,
|
|
365
|
-
color: l = "primary",
|
|
366
|
-
icon: m = We,
|
|
367
|
-
indeterminate: i = !1,
|
|
368
|
-
indeterminateIcon: k = _e,
|
|
369
|
-
inputProps: d,
|
|
370
|
-
size: x = "medium",
|
|
371
|
-
disableRipple: R = !1,
|
|
372
|
-
className: S,
|
|
373
|
-
...w
|
|
374
|
-
} = r, T = i ? k : m, I = i ? k : c, u = {
|
|
375
|
-
...r,
|
|
376
|
-
disableRipple: R,
|
|
377
|
-
color: l,
|
|
378
|
-
indeterminate: i,
|
|
379
|
-
size: x
|
|
380
|
-
}, y = Ue(u);
|
|
381
|
-
return /* @__PURE__ */ n(Ve, {
|
|
382
|
-
type: "checkbox",
|
|
383
|
-
inputProps: {
|
|
384
|
-
"data-indeterminate": i,
|
|
385
|
-
...d
|
|
386
|
-
},
|
|
387
|
-
icon: /* @__PURE__ */ j.cloneElement(T, {
|
|
388
|
-
fontSize: T.props.fontSize ?? x
|
|
389
|
-
}),
|
|
390
|
-
checkedIcon: /* @__PURE__ */ j.cloneElement(I, {
|
|
391
|
-
fontSize: I.props.fontSize ?? x
|
|
392
|
-
}),
|
|
393
|
-
ownerState: u,
|
|
394
|
-
ref: s,
|
|
395
|
-
className: H(y.root, S),
|
|
396
|
-
...w,
|
|
397
|
-
classes: y
|
|
398
|
-
});
|
|
399
|
-
});
|
|
400
|
-
process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
401
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
402
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
403
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
404
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
405
|
-
/**
|
|
406
|
-
* If `true`, the component is checked.
|
|
407
|
-
*/
|
|
408
|
-
checked: e.bool,
|
|
409
|
-
/**
|
|
410
|
-
* The icon to display when the component is checked.
|
|
411
|
-
* @default <CheckBoxIcon />
|
|
412
|
-
*/
|
|
413
|
-
checkedIcon: e.node,
|
|
414
|
-
/**
|
|
415
|
-
* Override or extend the styles applied to the component.
|
|
416
|
-
*/
|
|
417
|
-
classes: e.object,
|
|
418
|
-
/**
|
|
419
|
-
* @ignore
|
|
420
|
-
*/
|
|
421
|
-
className: e.string,
|
|
422
|
-
/**
|
|
423
|
-
* The color of the component.
|
|
424
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
425
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
426
|
-
* @default 'primary'
|
|
427
|
-
*/
|
|
428
|
-
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
429
|
-
/**
|
|
430
|
-
* The default checked state. Use when the component is not controlled.
|
|
431
|
-
*/
|
|
432
|
-
defaultChecked: e.bool,
|
|
433
|
-
/**
|
|
434
|
-
* If `true`, the component is disabled.
|
|
435
|
-
* @default false
|
|
436
|
-
*/
|
|
437
|
-
disabled: e.bool,
|
|
438
|
-
/**
|
|
439
|
-
* If `true`, the ripple effect is disabled.
|
|
440
|
-
* @default false
|
|
441
|
-
*/
|
|
442
|
-
disableRipple: e.bool,
|
|
443
|
-
/**
|
|
444
|
-
* The icon to display when the component is unchecked.
|
|
445
|
-
* @default <CheckBoxOutlineBlankIcon />
|
|
446
|
-
*/
|
|
447
|
-
icon: e.node,
|
|
448
|
-
/**
|
|
449
|
-
* The id of the `input` element.
|
|
450
|
-
*/
|
|
451
|
-
id: e.string,
|
|
452
|
-
/**
|
|
453
|
-
* If `true`, the component appears indeterminate.
|
|
454
|
-
* This does not set the native input element to indeterminate due
|
|
455
|
-
* to inconsistent behavior across browsers.
|
|
456
|
-
* However, we set a `data-indeterminate` attribute on the `input`.
|
|
457
|
-
* @default false
|
|
458
|
-
*/
|
|
459
|
-
indeterminate: e.bool,
|
|
460
|
-
/**
|
|
461
|
-
* The icon to display when the component is indeterminate.
|
|
462
|
-
* @default <IndeterminateCheckBoxIcon />
|
|
463
|
-
*/
|
|
464
|
-
indeterminateIcon: e.node,
|
|
465
|
-
/**
|
|
466
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
467
|
-
*/
|
|
468
|
-
inputProps: e.object,
|
|
469
|
-
/**
|
|
470
|
-
* Pass a ref to the `input` element.
|
|
471
|
-
*/
|
|
472
|
-
inputRef: ee,
|
|
473
|
-
/**
|
|
474
|
-
* Callback fired when the state is changed.
|
|
475
|
-
*
|
|
476
|
-
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
477
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
478
|
-
*/
|
|
479
|
-
onChange: e.func,
|
|
480
|
-
/**
|
|
481
|
-
* If `true`, the `input` element is required.
|
|
482
|
-
* @default false
|
|
483
|
-
*/
|
|
484
|
-
required: e.bool,
|
|
485
|
-
/**
|
|
486
|
-
* The size of the component.
|
|
487
|
-
* `small` is equivalent to the dense checkbox styling.
|
|
488
|
-
* @default 'medium'
|
|
489
|
-
*/
|
|
490
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
491
|
-
/**
|
|
492
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
493
|
-
*/
|
|
494
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
495
|
-
/**
|
|
496
|
-
* The value of the component. The DOM API casts this to a string.
|
|
497
|
-
* The browser uses "on" as the default value.
|
|
498
|
-
*/
|
|
499
|
-
value: e.any
|
|
500
|
-
});
|
|
501
|
-
function Ae(o) {
|
|
502
|
-
return Q("MuiFormControlLabel", o);
|
|
503
|
-
}
|
|
504
|
-
const M = X("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]), Ke = (o) => {
|
|
505
|
-
const {
|
|
506
|
-
classes: t,
|
|
507
|
-
disabled: s,
|
|
508
|
-
labelPlacement: r,
|
|
509
|
-
error: c,
|
|
510
|
-
required: l
|
|
511
|
-
} = o, m = {
|
|
512
|
-
root: ["root", s && "disabled", `labelPlacement${$(r)}`, c && "error", l && "required"],
|
|
513
|
-
label: ["label", s && "disabled"],
|
|
514
|
-
asterisk: ["asterisk", c && "error"]
|
|
515
|
-
};
|
|
516
|
-
return Y(m, Ae, t);
|
|
517
|
-
}, Ge = D("label", {
|
|
518
|
-
name: "MuiFormControlLabel",
|
|
519
|
-
slot: "Root",
|
|
520
|
-
overridesResolver: (o, t) => {
|
|
521
|
-
const {
|
|
522
|
-
ownerState: s
|
|
523
|
-
} = o;
|
|
524
|
-
return [{
|
|
525
|
-
[`& .${M.label}`]: t.label
|
|
526
|
-
}, t.root, t[`labelPlacement${$(s.labelPlacement)}`]];
|
|
527
|
-
}
|
|
528
|
-
})(Z(({
|
|
529
|
-
theme: o
|
|
530
|
-
}) => ({
|
|
531
|
-
display: "inline-flex",
|
|
532
|
-
alignItems: "center",
|
|
533
|
-
cursor: "pointer",
|
|
534
|
-
// For correct alignment with the text.
|
|
535
|
-
verticalAlign: "middle",
|
|
536
|
-
WebkitTapHighlightColor: "transparent",
|
|
537
|
-
marginLeft: -11,
|
|
538
|
-
marginRight: 16,
|
|
539
|
-
// used for row presentation of radio/checkbox
|
|
540
|
-
[`&.${M.disabled}`]: {
|
|
541
|
-
cursor: "default"
|
|
542
|
-
},
|
|
543
|
-
[`& .${M.label}`]: {
|
|
544
|
-
[`&.${M.disabled}`]: {
|
|
545
|
-
color: (o.vars || o).palette.text.disabled
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
variants: [{
|
|
549
|
-
props: {
|
|
550
|
-
labelPlacement: "start"
|
|
551
|
-
},
|
|
552
|
-
style: {
|
|
553
|
-
flexDirection: "row-reverse",
|
|
554
|
-
marginRight: -11
|
|
555
|
-
}
|
|
556
|
-
}, {
|
|
557
|
-
props: {
|
|
558
|
-
labelPlacement: "top"
|
|
559
|
-
},
|
|
560
|
-
style: {
|
|
561
|
-
flexDirection: "column-reverse"
|
|
562
|
-
}
|
|
563
|
-
}, {
|
|
564
|
-
props: {
|
|
565
|
-
labelPlacement: "bottom"
|
|
566
|
-
},
|
|
567
|
-
style: {
|
|
568
|
-
flexDirection: "column"
|
|
569
|
-
}
|
|
570
|
-
}, {
|
|
571
|
-
props: ({
|
|
572
|
-
labelPlacement: t
|
|
573
|
-
}) => t === "start" || t === "top" || t === "bottom",
|
|
574
|
-
style: {
|
|
575
|
-
marginLeft: 16
|
|
576
|
-
// used for row presentation of radio/checkbox
|
|
577
|
-
}
|
|
578
|
-
}]
|
|
579
|
-
}))), Je = D("span", {
|
|
580
|
-
name: "MuiFormControlLabel",
|
|
581
|
-
slot: "Asterisk",
|
|
582
|
-
overridesResolver: (o, t) => t.asterisk
|
|
583
|
-
})(Z(({
|
|
584
|
-
theme: o
|
|
585
|
-
}) => ({
|
|
586
|
-
[`&.${M.error}`]: {
|
|
587
|
-
color: (o.vars || o).palette.error.main
|
|
588
|
-
}
|
|
589
|
-
}))), J = /* @__PURE__ */ j.forwardRef(function(t, s) {
|
|
590
|
-
const r = he({
|
|
591
|
-
props: t,
|
|
592
|
-
name: "MuiFormControlLabel"
|
|
593
|
-
}), {
|
|
594
|
-
checked: c,
|
|
595
|
-
className: l,
|
|
596
|
-
componentsProps: m = {},
|
|
597
|
-
control: i,
|
|
598
|
-
disabled: k,
|
|
599
|
-
disableTypography: d,
|
|
600
|
-
inputRef: x,
|
|
601
|
-
label: R,
|
|
602
|
-
labelPlacement: S = "end",
|
|
603
|
-
name: w,
|
|
604
|
-
onChange: T,
|
|
605
|
-
required: I,
|
|
606
|
-
slots: u = {},
|
|
607
|
-
slotProps: y = {},
|
|
608
|
-
value: O,
|
|
609
|
-
...E
|
|
610
|
-
} = r, B = be(), C = k ?? i.props.disabled ?? (B == null ? void 0 : B.disabled), f = I ?? i.props.required, a = {
|
|
611
|
-
disabled: C,
|
|
612
|
-
required: f
|
|
613
|
-
};
|
|
614
|
-
["checked", "name", "onChange", "value", "inputRef"].forEach((g) => {
|
|
615
|
-
typeof i.props[g] > "u" && typeof r[g] < "u" && (a[g] = r[g]);
|
|
616
|
-
});
|
|
617
|
-
const h = Ne({
|
|
618
|
-
props: r,
|
|
619
|
-
muiFormControl: B,
|
|
620
|
-
states: ["error"]
|
|
621
|
-
}), v = {
|
|
622
|
-
...r,
|
|
623
|
-
disabled: C,
|
|
624
|
-
labelPlacement: S,
|
|
625
|
-
required: f,
|
|
626
|
-
error: h.error
|
|
627
|
-
}, q = Ke(v), b = {
|
|
628
|
-
slots: u,
|
|
629
|
-
slotProps: {
|
|
630
|
-
...m,
|
|
631
|
-
...y
|
|
632
|
-
}
|
|
633
|
-
}, [W, L] = Fe("typography", {
|
|
634
|
-
elementType: z,
|
|
635
|
-
externalForwardedProps: b,
|
|
636
|
-
ownerState: v
|
|
637
|
-
});
|
|
638
|
-
let N = R;
|
|
639
|
-
return N != null && N.type !== z && !d && (N = /* @__PURE__ */ n(W, {
|
|
640
|
-
component: "span",
|
|
641
|
-
...L,
|
|
642
|
-
className: H(q.label, L == null ? void 0 : L.className),
|
|
643
|
-
children: N
|
|
644
|
-
})), /* @__PURE__ */ p(Ge, {
|
|
645
|
-
className: H(q.root, l),
|
|
646
|
-
ownerState: v,
|
|
647
|
-
ref: s,
|
|
648
|
-
...E,
|
|
649
|
-
children: [/* @__PURE__ */ j.cloneElement(i, a), f ? /* @__PURE__ */ p("div", {
|
|
650
|
-
children: [N, /* @__PURE__ */ p(Je, {
|
|
651
|
-
ownerState: v,
|
|
652
|
-
"aria-hidden": !0,
|
|
653
|
-
className: q.asterisk,
|
|
654
|
-
children: [" ", "*"]
|
|
655
|
-
})]
|
|
656
|
-
}) : N]
|
|
657
|
-
});
|
|
658
|
-
});
|
|
659
|
-
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
660
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
661
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
662
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
663
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
664
|
-
/**
|
|
665
|
-
* If `true`, the component appears selected.
|
|
666
|
-
*/
|
|
667
|
-
checked: e.bool,
|
|
668
|
-
/**
|
|
669
|
-
* Override or extend the styles applied to the component.
|
|
670
|
-
*/
|
|
671
|
-
classes: e.object,
|
|
672
|
-
/**
|
|
673
|
-
* @ignore
|
|
674
|
-
*/
|
|
675
|
-
className: e.string,
|
|
676
|
-
/**
|
|
677
|
-
* The props used for each slot inside.
|
|
678
|
-
* @default {}
|
|
679
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
680
|
-
*/
|
|
681
|
-
componentsProps: e.shape({
|
|
682
|
-
typography: e.object
|
|
683
|
-
}),
|
|
684
|
-
/**
|
|
685
|
-
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
686
|
-
*/
|
|
687
|
-
control: e.element.isRequired,
|
|
688
|
-
/**
|
|
689
|
-
* If `true`, the control is disabled.
|
|
690
|
-
*/
|
|
691
|
-
disabled: e.bool,
|
|
692
|
-
/**
|
|
693
|
-
* If `true`, the label is rendered as it is passed without an additional typography node.
|
|
694
|
-
*/
|
|
695
|
-
disableTypography: e.bool,
|
|
696
|
-
/**
|
|
697
|
-
* Pass a ref to the `input` element.
|
|
698
|
-
*/
|
|
699
|
-
inputRef: ee,
|
|
700
|
-
/**
|
|
701
|
-
* A text or an element to be used in an enclosing label element.
|
|
702
|
-
*/
|
|
703
|
-
label: e.node,
|
|
704
|
-
/**
|
|
705
|
-
* The position of the label.
|
|
706
|
-
* @default 'end'
|
|
707
|
-
*/
|
|
708
|
-
labelPlacement: e.oneOf(["bottom", "end", "start", "top"]),
|
|
709
|
-
/**
|
|
710
|
-
* @ignore
|
|
711
|
-
*/
|
|
712
|
-
name: e.string,
|
|
713
|
-
/**
|
|
714
|
-
* Callback fired when the state is changed.
|
|
715
|
-
*
|
|
716
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
717
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
718
|
-
*/
|
|
719
|
-
onChange: e.func,
|
|
720
|
-
/**
|
|
721
|
-
* If `true`, the label will indicate that the `input` is required.
|
|
722
|
-
*/
|
|
723
|
-
required: e.bool,
|
|
724
|
-
/**
|
|
725
|
-
* The props used for each slot inside.
|
|
726
|
-
* @default {}
|
|
727
|
-
*/
|
|
728
|
-
slotProps: e.shape({
|
|
729
|
-
typography: e.oneOfType([e.func, e.object])
|
|
730
|
-
}),
|
|
731
|
-
/**
|
|
732
|
-
* The components used for each slot inside.
|
|
733
|
-
* @default {}
|
|
734
|
-
*/
|
|
735
|
-
slots: e.shape({
|
|
736
|
-
typography: e.elementType
|
|
737
|
-
}),
|
|
738
|
-
/**
|
|
739
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
740
|
-
*/
|
|
741
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
742
|
-
/**
|
|
743
|
-
* The value of the component.
|
|
744
|
-
*/
|
|
745
|
-
value: e.any
|
|
746
|
-
});
|
|
747
|
-
const ue = Ce.forwardRef((o, t) => /* @__PURE__ */ n(Te, { direction: "up", ref: t, ...o })), vo = ({ showAlertMessage: o, setAccountPin: t, loading: s }) => {
|
|
748
|
-
const [r, c] = F(""), [l, m] = F(""), [i, k] = F(!1), [d, x] = F("pin"), [R, S] = F(!1), [w, T] = F(!1), [I, u] = F(!1), [y, O] = F(!1), E = ve(null), B = (a) => {
|
|
749
|
-
if (k(!1), d === "confirmPin") {
|
|
750
|
-
if (a === "backSpace") {
|
|
751
|
-
m(l.substring(0, l.length - 1));
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import w, { useState as o, useRef as G } from "react";
|
|
3
|
+
import J from "../Shared/Keyboard/keyboard.js";
|
|
4
|
+
import O from "../Shared/button.js";
|
|
5
|
+
import Q from "./terms.js";
|
|
6
|
+
import V from "./privacy.js";
|
|
7
|
+
import { P as X, a as N, b as S } from "../../pin-empty-D9665KFr.js";
|
|
8
|
+
import { C as D } from "../../Close-mXCsZSxZ.js";
|
|
9
|
+
import { s as p } from "../../styles.module-6SB62f3J.js";
|
|
10
|
+
import { S as Y } from "../../Slide-CWqC2RDG.js";
|
|
11
|
+
import { C as Z } from "../../Container-BOehNoF1.js";
|
|
12
|
+
import { F as I, C as R } from "../../FormControlLabel-BMeMEwyK.js";
|
|
13
|
+
import { B as d } from "../../Box-BOgpENcC.js";
|
|
14
|
+
import { T as m } from "../../Typography-Dx54MRM5.js";
|
|
15
|
+
import { C as $ } from "../../CircularProgress-BAEiXRSn.js";
|
|
16
|
+
import { D as W, a as B } from "../../DialogContent-zttWtNJM.js";
|
|
17
|
+
import { D as E } from "../../DialogTitle-BqL8DXBp.js";
|
|
18
|
+
import { I as F } from "../../IconButton-DAR3jsEV.js";
|
|
19
|
+
const j = w.forwardRef((a, h) => /* @__PURE__ */ e(Y, { direction: "up", ref: h, ...a })), Pe = ({ showAlertMessage: a, setAccountPin: h, loading: _ }) => {
|
|
20
|
+
const [t, C] = o(""), [l, b] = o(""), [c, z] = o(!1), [i, H] = o("pin"), [y, v] = o(!1), [x, k] = o(!1), [K, u] = o(!1), [L, g] = o(!1), T = G(null), M = (n) => {
|
|
21
|
+
if (z(!1), i === "confirmPin") {
|
|
22
|
+
if (n === "backSpace") {
|
|
23
|
+
b(l.substring(0, l.length - 1));
|
|
752
24
|
return;
|
|
753
25
|
}
|
|
754
|
-
l.length <= 3 &&
|
|
26
|
+
l.length <= 3 && b((s) => s + n);
|
|
755
27
|
} else {
|
|
756
|
-
if (
|
|
757
|
-
|
|
28
|
+
if (n === "backSpace") {
|
|
29
|
+
C(t.substring(0, t.length - 1));
|
|
758
30
|
return;
|
|
759
31
|
}
|
|
760
|
-
|
|
761
|
-
}
|
|
762
|
-
},
|
|
763
|
-
if (
|
|
764
|
-
return
|
|
765
|
-
if (
|
|
766
|
-
return l.length >=
|
|
767
|
-
if (
|
|
768
|
-
return
|
|
769
|
-
},
|
|
770
|
-
if (
|
|
771
|
-
if (!
|
|
772
|
-
return
|
|
773
|
-
if (!
|
|
774
|
-
return
|
|
775
|
-
if (!
|
|
776
|
-
return
|
|
777
|
-
|
|
32
|
+
t.length <= 3 && C((s) => s + n);
|
|
33
|
+
}
|
|
34
|
+
}, f = (n, s, q) => {
|
|
35
|
+
if (q)
|
|
36
|
+
return X;
|
|
37
|
+
if (n === "confirmPin")
|
|
38
|
+
return l.length >= s ? N : S;
|
|
39
|
+
if (n === "pin")
|
|
40
|
+
return t.length >= s ? N : S;
|
|
41
|
+
}, U = () => {
|
|
42
|
+
if (i === "pin") {
|
|
43
|
+
if (!y)
|
|
44
|
+
return a({ message: "Please accept the terms." }), !1;
|
|
45
|
+
if (!x)
|
|
46
|
+
return a({ message: "Please accept the privacy & policy." }), !1;
|
|
47
|
+
if (!t || t.length < 4)
|
|
48
|
+
return a({ message: "Please provide pin" }), !1;
|
|
49
|
+
H("confirmPin");
|
|
778
50
|
} else {
|
|
779
|
-
if (
|
|
780
|
-
return
|
|
781
|
-
t
|
|
51
|
+
if (t !== l)
|
|
52
|
+
return a({ message: "Pins don’t match." }), !1;
|
|
53
|
+
h(t);
|
|
782
54
|
}
|
|
783
55
|
};
|
|
784
|
-
return /* @__PURE__ */
|
|
785
|
-
|
|
786
|
-
/* @__PURE__ */
|
|
787
|
-
|
|
56
|
+
return /* @__PURE__ */ r(Z, { component: "div", maxWidth: "sm", children: [
|
|
57
|
+
i === "pin" && /* @__PURE__ */ r(P, { children: [
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
I,
|
|
788
60
|
{
|
|
789
|
-
control: /* @__PURE__ */
|
|
790
|
-
|
|
61
|
+
control: /* @__PURE__ */ e(
|
|
62
|
+
R,
|
|
791
63
|
{
|
|
792
|
-
checked:
|
|
793
|
-
onChange: () =>
|
|
64
|
+
checked: y,
|
|
65
|
+
onChange: () => v((n) => !n),
|
|
794
66
|
inputProps: { "aria-label": "controlled" }
|
|
795
67
|
}
|
|
796
68
|
),
|
|
797
|
-
label: /* @__PURE__ */
|
|
69
|
+
label: /* @__PURE__ */ r(P, { children: [
|
|
798
70
|
"I agree with all",
|
|
799
71
|
" ",
|
|
800
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ e(
|
|
801
73
|
"span",
|
|
802
74
|
{
|
|
803
|
-
className:
|
|
75
|
+
className: p["pin-term-text"],
|
|
804
76
|
onClick: () => {
|
|
805
|
-
u(!0),
|
|
77
|
+
u(!0), v((n) => !n);
|
|
806
78
|
},
|
|
807
79
|
children: "Terms of Service"
|
|
808
80
|
}
|
|
@@ -810,26 +82,26 @@ const ue = Ce.forwardRef((o, t) => /* @__PURE__ */ n(Te, { direction: "up", ref:
|
|
|
810
82
|
] })
|
|
811
83
|
}
|
|
812
84
|
),
|
|
813
|
-
/* @__PURE__ */
|
|
814
|
-
|
|
85
|
+
/* @__PURE__ */ e(
|
|
86
|
+
I,
|
|
815
87
|
{
|
|
816
|
-
control: /* @__PURE__ */
|
|
817
|
-
|
|
88
|
+
control: /* @__PURE__ */ e(
|
|
89
|
+
R,
|
|
818
90
|
{
|
|
819
|
-
checked:
|
|
820
|
-
onChange: () =>
|
|
91
|
+
checked: x,
|
|
92
|
+
onChange: () => k((n) => !n),
|
|
821
93
|
inputProps: { "aria-label": "controlled" }
|
|
822
94
|
}
|
|
823
95
|
),
|
|
824
|
-
label: /* @__PURE__ */
|
|
96
|
+
label: /* @__PURE__ */ r(P, { children: [
|
|
825
97
|
"I agree with all",
|
|
826
98
|
" ",
|
|
827
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ e(
|
|
828
100
|
"span",
|
|
829
101
|
{
|
|
830
|
-
className:
|
|
102
|
+
className: p["pin-term-text"],
|
|
831
103
|
onClick: () => {
|
|
832
|
-
|
|
104
|
+
g(!0), k((n) => !n);
|
|
833
105
|
},
|
|
834
106
|
children: "Privacy Policies"
|
|
835
107
|
}
|
|
@@ -838,113 +110,113 @@ const ue = Ce.forwardRef((o, t) => /* @__PURE__ */ n(Te, { direction: "up", ref:
|
|
|
838
110
|
}
|
|
839
111
|
)
|
|
840
112
|
] }),
|
|
841
|
-
/* @__PURE__ */
|
|
842
|
-
/* @__PURE__ */
|
|
843
|
-
/* @__PURE__ */
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ r(d, { mt: 2, className: "text-center", children: [
|
|
114
|
+
/* @__PURE__ */ e(m, { variant: "h4", children: i === "pin" ? "Choose your pin" : "Re-enter your pin" }),
|
|
115
|
+
/* @__PURE__ */ r(d, { mt: 4, children: [
|
|
116
|
+
/* @__PURE__ */ e("img", { src: f(i, 1, c), alt: "pin" }),
|
|
117
|
+
/* @__PURE__ */ e(
|
|
846
118
|
"img",
|
|
847
119
|
{
|
|
848
120
|
className: "pin-img",
|
|
849
|
-
src:
|
|
121
|
+
src: f(i, 2, c),
|
|
850
122
|
alt: "pin"
|
|
851
123
|
}
|
|
852
124
|
),
|
|
853
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ e(
|
|
854
126
|
"img",
|
|
855
127
|
{
|
|
856
128
|
className: "pin-img",
|
|
857
|
-
src:
|
|
129
|
+
src: f(i, 3, c),
|
|
858
130
|
alt: "pin"
|
|
859
131
|
}
|
|
860
132
|
),
|
|
861
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ e(
|
|
862
134
|
"img",
|
|
863
135
|
{
|
|
864
136
|
className: "pin-img",
|
|
865
|
-
src:
|
|
137
|
+
src: f(i, 4, c),
|
|
866
138
|
alt: "pin"
|
|
867
139
|
}
|
|
868
140
|
)
|
|
869
141
|
] }),
|
|
870
|
-
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
|
|
142
|
+
c && /* @__PURE__ */ e(m, { mt: 4, variant: "caption", sx: { color: "red" }, children: "Pins don’t match, try again" }),
|
|
143
|
+
/* @__PURE__ */ e(d, { mt: 4, children: /* @__PURE__ */ e(
|
|
144
|
+
J,
|
|
873
145
|
{
|
|
874
|
-
onClickHandler: (
|
|
875
|
-
enterBtnRef:
|
|
146
|
+
onClickHandler: (n) => M(n),
|
|
147
|
+
enterBtnRef: T,
|
|
876
148
|
removeTypeEffect: !0
|
|
877
149
|
}
|
|
878
150
|
) })
|
|
879
151
|
] }),
|
|
880
|
-
|
|
881
|
-
/* @__PURE__ */
|
|
882
|
-
/* @__PURE__ */
|
|
152
|
+
_ ? /* @__PURE__ */ r(d, { mt: 2, sx: { color: "#16359D", textAlign: "center" }, children: [
|
|
153
|
+
/* @__PURE__ */ e($, { size: 50, color: "inherit" }),
|
|
154
|
+
/* @__PURE__ */ r(m, { variant: "h5", sx: { fontWeight: "bold" }, children: [
|
|
883
155
|
"Processing...",
|
|
884
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ e("br", {}),
|
|
885
157
|
"We are creating the account, and it takes about 30 seconds"
|
|
886
158
|
] })
|
|
887
|
-
] }) : /* @__PURE__ */
|
|
888
|
-
|
|
159
|
+
] }) : /* @__PURE__ */ e(
|
|
160
|
+
O,
|
|
889
161
|
{
|
|
890
|
-
ref:
|
|
891
|
-
onClick:
|
|
162
|
+
ref: T,
|
|
163
|
+
onClick: U,
|
|
892
164
|
className: "sdk-theme-btn normal-text",
|
|
893
165
|
variant: "contained",
|
|
894
166
|
fullWidth: !0,
|
|
895
|
-
children: /* @__PURE__ */
|
|
167
|
+
children: /* @__PURE__ */ e("strong", { children: i === "pin" ? "Next" : "Submit" })
|
|
896
168
|
}
|
|
897
169
|
),
|
|
898
|
-
/* @__PURE__ */
|
|
899
|
-
|
|
170
|
+
/* @__PURE__ */ r(
|
|
171
|
+
W,
|
|
900
172
|
{
|
|
901
|
-
open:
|
|
173
|
+
open: K,
|
|
902
174
|
fullWidth: !0,
|
|
903
175
|
onClose: () => u(!1),
|
|
904
|
-
TransitionComponent:
|
|
176
|
+
TransitionComponent: j,
|
|
905
177
|
children: [
|
|
906
|
-
/* @__PURE__ */
|
|
907
|
-
/* @__PURE__ */
|
|
908
|
-
/* @__PURE__ */
|
|
909
|
-
|
|
178
|
+
/* @__PURE__ */ r(E, { children: [
|
|
179
|
+
/* @__PURE__ */ e(m, { variant: "h5", component: "p", children: /* @__PURE__ */ e("strong", { children: "Terms of Use" }) }),
|
|
180
|
+
/* @__PURE__ */ e(
|
|
181
|
+
F,
|
|
910
182
|
{
|
|
911
183
|
"aria-label": "close",
|
|
912
184
|
onClick: () => u(!1),
|
|
913
185
|
className: "menu-buttons",
|
|
914
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ e(D, {})
|
|
915
187
|
}
|
|
916
188
|
)
|
|
917
189
|
] }),
|
|
918
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ e(B, { className: p["modal-content"], dividers: !0, children: /* @__PURE__ */ e(Q, {}) })
|
|
919
191
|
]
|
|
920
192
|
}
|
|
921
193
|
),
|
|
922
|
-
/* @__PURE__ */
|
|
923
|
-
|
|
194
|
+
/* @__PURE__ */ r(
|
|
195
|
+
W,
|
|
924
196
|
{
|
|
925
|
-
open:
|
|
197
|
+
open: L,
|
|
926
198
|
fullWidth: !0,
|
|
927
|
-
onClose: () =>
|
|
928
|
-
TransitionComponent:
|
|
199
|
+
onClose: () => g(!1),
|
|
200
|
+
TransitionComponent: j,
|
|
929
201
|
children: [
|
|
930
|
-
/* @__PURE__ */
|
|
931
|
-
/* @__PURE__ */
|
|
932
|
-
/* @__PURE__ */
|
|
933
|
-
|
|
202
|
+
/* @__PURE__ */ r(E, { children: [
|
|
203
|
+
/* @__PURE__ */ e(m, { variant: "h5", component: "p", children: /* @__PURE__ */ e("strong", { children: "Privacy Policies" }) }),
|
|
204
|
+
/* @__PURE__ */ e(
|
|
205
|
+
F,
|
|
934
206
|
{
|
|
935
207
|
"aria-label": "close",
|
|
936
|
-
onClick: () =>
|
|
208
|
+
onClick: () => g(!1),
|
|
937
209
|
className: "menu-buttons",
|
|
938
|
-
children: /* @__PURE__ */
|
|
210
|
+
children: /* @__PURE__ */ e(D, {})
|
|
939
211
|
}
|
|
940
212
|
)
|
|
941
213
|
] }),
|
|
942
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ e(B, { className: p["modal-content"], dividers: !0, children: /* @__PURE__ */ e(V, {}) })
|
|
943
215
|
]
|
|
944
216
|
}
|
|
945
217
|
)
|
|
946
218
|
] });
|
|
947
219
|
};
|
|
948
220
|
export {
|
|
949
|
-
|
|
221
|
+
Pe as default
|
|
950
222
|
};
|