everest-npm-features 0.0.61 → 0.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/ArrowBack-DEJjwfp0.js +8 -0
  2. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  3. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  4. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  5. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  6. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  7. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  8. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  9. package/dist/PlayArrow-71FP5PzJ.js +13 -0
  10. package/dist/Portal-BeS9yJCZ.js +968 -0
  11. package/dist/assets/styles.css +1 -1
  12. package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
  13. package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
  14. package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
  15. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  16. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
  17. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
  18. package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
  19. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  20. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  21. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  22. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  23. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
  24. package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
  25. package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
  26. package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
  27. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
  28. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
  29. package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
  30. package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
  31. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
  32. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  33. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  34. package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
  35. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  36. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  37. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  38. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  39. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  40. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  41. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  42. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  43. package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
  44. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
  45. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
  46. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  47. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  48. package/dist/components/RocketRamp/Transactions/index.js +23 -24
  49. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  50. package/dist/components/Shared/FullKyc/edd.js +51 -53
  51. package/dist/components/Shared/FullKyc/index.js +13 -11
  52. package/dist/components/Shared/FullKyc/pep.js +35 -43
  53. package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
  54. package/dist/components/Shared/FullKyc/userInfo.js +8 -13
  55. package/dist/components/Shared/HistoryItem/index.js +43 -48
  56. package/dist/components/Shared/Incode/index.js +31 -35
  57. package/dist/components/Shared/MinimalKyc/index.js +60 -65
  58. package/dist/components/Shared/Sumsub/index.js +75 -62
  59. package/dist/components/Shared/loader.js +4 -5
  60. package/dist/components/Shared/tooltip.js +2 -2
  61. package/dist/components/Shared/transition.js +4 -4
  62. package/dist/components/Wallet/Account/createIban.d.ts +1 -2
  63. package/dist/components/Wallet/Account/createIban.js +324 -102
  64. package/dist/components/Wallet/Account/eWallet.js +37 -43
  65. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  66. package/dist/components/Wallet/Account/iban.js +41 -45
  67. package/dist/components/Wallet/Account/ibanItem.js +70 -75
  68. package/dist/components/Wallet/Account/index.d.ts +1 -0
  69. package/dist/components/Wallet/Account/index.js +113 -118
  70. package/dist/components/Wallet/Account/sendIban.js +79 -88
  71. package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
  72. package/dist/components/Wallet/Buy/form.js +8 -18
  73. package/dist/components/Wallet/Buy/index.js +6 -6
  74. package/dist/components/Wallet/Deposit/index.js +16 -18
  75. package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  77. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  78. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  79. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  80. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  81. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
  82. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
  83. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  84. package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
  85. package/dist/components/Wallet/History/index.js +23 -797
  86. package/dist/components/Wallet/Home/index.js +13 -14
  87. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
  88. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  89. package/dist/components/Wallet/Portfolio/index.js +48 -51
  90. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  91. package/dist/components/Wallet/Profile/documents.js +164 -176
  92. package/dist/components/Wallet/Profile/index.js +39 -44
  93. package/dist/components/Wallet/Profile/storage.js +39 -47
  94. package/dist/components/Wallet/Receive/index.js +32 -37
  95. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
  96. package/dist/components/Wallet/Sell/form.js +8 -18
  97. package/dist/components/Wallet/Sell/index.js +6 -6
  98. package/dist/components/Wallet/Send/index.js +98 -107
  99. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  100. package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
  101. package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
  102. package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
  103. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  104. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  105. package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
  106. package/dist/components/Wallet/Shared/Container/index.js +11 -11
  107. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  108. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  109. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  110. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  111. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  112. package/dist/components/Wallet/Shared/addBank.js +41 -45
  113. package/dist/components/Wallet/Shared/appButton.js +11 -15
  114. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  115. package/dist/components/Wallet/Shared/button.js +7 -7
  116. package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
  117. package/dist/components/Wallet/Shared/inputField.js +5 -5
  118. package/dist/components/Wallet/Shared/manualSend.js +9 -13
  119. package/dist/components/Wallet/Shared/noData.js +4 -5
  120. package/dist/components/Wallet/Shared/pin.js +25 -27
  121. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  122. package/dist/components/Wallet/Shared/step.js +12 -13
  123. package/dist/components/Wallet/Shared/timer.js +1 -1
  124. package/dist/components/Wallet/SignIn/index.js +17 -17
  125. package/dist/components/Wallet/SignUp/index.js +63 -153
  126. package/dist/components/Wallet/SignUp/terms.js +1 -1
  127. package/dist/components/Wallet/Stake/gems/index.js +71 -69
  128. package/dist/components/Wallet/Stake/id/index.js +77 -84
  129. package/dist/components/Wallet/Stake/index.js +65 -68
  130. package/dist/components/Wallet/Swap/form.js +11 -20
  131. package/dist/components/Wallet/Swap/index.js +5 -5
  132. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  133. package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
  134. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
  135. package/dist/components/Wallet/Withdraw/form.js +6 -17
  136. package/dist/components/Wallet/Withdraw/index.js +5 -5
  137. package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
  138. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  139. package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
  140. package/dist/hoc/withThemeProvider.js +5 -732
  141. package/dist/hooks/useDialog/index.js +22 -23
  142. package/dist/hooks/useRrDialog/index.js +43 -46
  143. package/dist/hooks/useSnackBar.js +24 -696
  144. package/dist/icons/buyIcon.js +1 -1
  145. package/dist/icons/canceledBuyIcon.js +1 -1
  146. package/dist/icons/canceledRedeemIcon.js +1 -1
  147. package/dist/icons/failedBuyIcon.js +2 -2
  148. package/dist/icons/failedRedeemIcon.js +2 -2
  149. package/dist/icons/pendingBuyIcon.js +1 -1
  150. package/dist/icons/pendingRedeemIcon.js +1 -1
  151. package/dist/icons/redeemIcon.js +1 -1
  152. package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
  153. package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
  154. package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
  155. package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
  156. package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
  157. package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
  158. package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
  159. package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
  160. package/dist/main.js +7 -7
  161. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  162. package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
  163. package/dist/otpForm-DeeegaX2.js +7378 -0
  164. package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
  165. package/dist/styles.module-DFoezEqS.js +28 -0
  166. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  167. package/dist/tooltip-BW0UyWw7.js +2129 -0
  168. package/dist/util/constants.d.ts +1 -0
  169. package/dist/util/constants.js +72 -71
  170. package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
  171. package/package.json +6 -6
  172. package/dist/Alert-DzsbFW3-.js +0 -369
  173. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  174. package/dist/Avatar-1XklXr4O.js +0 -281
  175. package/dist/Backdrop-CioURPVG.js +0 -359
  176. package/dist/Box-B0YSYLco.js +0 -59
  177. package/dist/Button-Df4vgU24.js +0 -663
  178. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  179. package/dist/CardContent-D9wTdpu-.js +0 -141
  180. package/dist/CircularProgress-xZA3lvba.js +0 -252
  181. package/dist/Close-CxzDL3J-.js +0 -9
  182. package/dist/Container-urNKV7hm.js +0 -181
  183. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  184. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  185. package/dist/DialogContent-BMwlOnbW.js +0 -567
  186. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  187. package/dist/Divider-BShhMFf4.js +0 -297
  188. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  189. package/dist/FormControl-RtZDQMdA.js +0 -258
  190. package/dist/FormControlLabel-BliKW48y.js +0 -519
  191. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  192. package/dist/Grid-CFe3amXO.js +0 -410
  193. package/dist/Grow-CnGtel3u.js +0 -196
  194. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  195. package/dist/IconButton-DHm-hucF.js +0 -297
  196. package/dist/InputAdornment-DMiED3JH.js +0 -173
  197. package/dist/Link-DBA9Yifs.js +0 -266
  198. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  199. package/dist/Menu-DLYFFrEk.js +0 -1239
  200. package/dist/MenuItem-DUdYOJr4.js +0 -271
  201. package/dist/Modal-CFIQ_s3T.js +0 -743
  202. package/dist/Paper-Bgt2WXI6.js +0 -186
  203. package/dist/PlayArrow-Bjz9LxhD.js +0 -13
  204. package/dist/Popper-BBAoiZKn.js +0 -1409
  205. package/dist/Portal-BMAxiQwe.js +0 -69
  206. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  207. package/dist/Select-CB5yWmyn.js +0 -1886
  208. package/dist/Slide-B9Nw0LZ4.js +0 -235
  209. package/dist/Stack-k55YTxET.js +0 -172
  210. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  211. package/dist/TextField-DPpRUQe3.js +0 -978
  212. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  213. package/dist/Typography-pAaje37G.js +0 -260
  214. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  215. package/dist/clsx-BTaloaeC.js +0 -264
  216. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  217. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  218. package/dist/createTheme-CD19zQB7.js +0 -3825
  219. package/dist/debounce-46wSf_lW.js +0 -15
  220. package/dist/defaultTheme-C35y5cLB.js +0 -5
  221. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  222. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  223. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  224. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  225. package/dist/exactProp-C1Lmtwf_.js +0 -13
  226. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  227. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  228. package/dist/index-B0Z-Gjno.js +0 -22
  229. package/dist/index-DUcLo3x5.js +0 -43
  230. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  231. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  232. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  233. package/dist/memoTheme-yHaPezod.js +0 -15
  234. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  235. package/dist/radioButton-CzlYB0Lh.js +0 -402
  236. package/dist/refType-BsTH3qnM.js +0 -56
  237. package/dist/styles.module-CHPRGltL.js +0 -28
  238. package/dist/tooltip-3UvETWtS.js +0 -740
  239. package/dist/useControlled-nm4pBabJ.js +0 -31
  240. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  241. package/dist/useFormControl-CatNKXAi.js +0 -10
  242. package/dist/useId-CK6Kn3Tn.js +0 -21
  243. package/dist/useSlot-CW7SOYlh.js +0 -125
  244. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  245. package/dist/useTheme-BQJ5lp0i.js +0 -11
  246. package/dist/useTheme-S5_DHFsQ.js +0 -17
  247. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -1,743 +0,0 @@
1
- import * as u from "react";
2
- import { P as n, g as me } from "./createTheme-CD19zQB7.js";
3
- import { c as J } from "./clsx-BTaloaeC.js";
4
- import { m as be } from "./memoTheme-yHaPezod.js";
5
- import { o as z } from "./ownerWindow-CRgpWY6I.js";
6
- import { o as O, H as he } from "./HTMLElementType-BrQSV2FE.js";
7
- import { u as re } from "./TransitionGroupContext-CYRQkQ6k.js";
8
- import { a as Q } from "./refType-BsTH3qnM.js";
9
- import { e as ge, u as Z } from "./useSlot-CW7SOYlh.js";
10
- import { c as ee } from "./createChainedFunction-C0nujS3O.js";
11
- import { g as Ee } from "./generateUtilityClasses-BRiE4Guh.js";
12
- import { jsxs as se, jsx as j } from "react/jsx-runtime";
13
- import { s as ie, u as Te, c as ye } from "./DefaultPropsProvider-oAu9El-f.js";
14
- import { B as xe } from "./Backdrop-CioURPVG.js";
15
- import { P as Re } from "./Portal-BMAxiQwe.js";
16
- import { g as Pe, e as ce } from "./elementAcceptingRef-CqLvP78G.js";
17
- import { e as ve } from "./exactProp-C1Lmtwf_.js";
18
- function ke(e = window) {
19
- const t = e.document.documentElement.clientWidth;
20
- return e.innerWidth - t;
21
- }
22
- function Ie(e) {
23
- const t = O(e);
24
- return t.body === e ? z(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
25
- }
26
- function K(e, t) {
27
- t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
28
- }
29
- function te(e) {
30
- return parseInt(z(e).getComputedStyle(e).paddingRight, 10) || 0;
31
- }
32
- function Ne(e) {
33
- const s = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(e.tagName), o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
34
- return s || o;
35
- }
36
- function oe(e, t, s, o, i) {
37
- const r = [t, s, ...o];
38
- [].forEach.call(e.children, (c) => {
39
- const a = !r.includes(c), m = !Ne(c);
40
- a && m && K(c, i);
41
- });
42
- }
43
- function Y(e, t) {
44
- let s = -1;
45
- return e.some((o, i) => t(o) ? (s = i, !0) : !1), s;
46
- }
47
- function Fe(e, t) {
48
- const s = [], o = e.container;
49
- if (!t.disableScrollLock) {
50
- if (Ie(o)) {
51
- const c = ke(z(o));
52
- s.push({
53
- value: o.style.paddingRight,
54
- property: "padding-right",
55
- el: o
56
- }), o.style.paddingRight = `${te(o) + c}px`;
57
- const a = O(o).querySelectorAll(".mui-fixed");
58
- [].forEach.call(a, (m) => {
59
- s.push({
60
- value: m.style.paddingRight,
61
- property: "padding-right",
62
- el: m
63
- }), m.style.paddingRight = `${te(m) + c}px`;
64
- });
65
- }
66
- let r;
67
- if (o.parentNode instanceof DocumentFragment)
68
- r = O(o).body;
69
- else {
70
- const c = o.parentElement, a = z(o);
71
- r = (c == null ? void 0 : c.nodeName) === "HTML" && a.getComputedStyle(c).overflowY === "scroll" ? c : o;
72
- }
73
- s.push({
74
- value: r.style.overflow,
75
- property: "overflow",
76
- el: r
77
- }, {
78
- value: r.style.overflowX,
79
- property: "overflow-x",
80
- el: r
81
- }, {
82
- value: r.style.overflowY,
83
- property: "overflow-y",
84
- el: r
85
- }), r.style.overflow = "hidden";
86
- }
87
- return () => {
88
- s.forEach(({
89
- value: r,
90
- el: c,
91
- property: a
92
- }) => {
93
- r ? c.style.setProperty(a, r) : c.style.removeProperty(a);
94
- });
95
- };
96
- }
97
- function Se(e) {
98
- const t = [];
99
- return [].forEach.call(e.children, (s) => {
100
- s.getAttribute("aria-hidden") === "true" && t.push(s);
101
- }), t;
102
- }
103
- class Ce {
104
- constructor() {
105
- this.modals = [], this.containers = [];
106
- }
107
- add(t, s) {
108
- let o = this.modals.indexOf(t);
109
- if (o !== -1)
110
- return o;
111
- o = this.modals.length, this.modals.push(t), t.modalRef && K(t.modalRef, !1);
112
- const i = Se(s);
113
- oe(s, t.mount, t.modalRef, i, !0);
114
- const r = Y(this.containers, (c) => c.container === s);
115
- return r !== -1 ? (this.containers[r].modals.push(t), o) : (this.containers.push({
116
- modals: [t],
117
- container: s,
118
- restore: null,
119
- hiddenSiblings: i
120
- }), o);
121
- }
122
- mount(t, s) {
123
- const o = Y(this.containers, (r) => r.modals.includes(t)), i = this.containers[o];
124
- i.restore || (i.restore = Fe(i, s));
125
- }
126
- remove(t, s = !0) {
127
- const o = this.modals.indexOf(t);
128
- if (o === -1)
129
- return o;
130
- const i = Y(this.containers, (c) => c.modals.includes(t)), r = this.containers[i];
131
- if (r.modals.splice(r.modals.indexOf(t), 1), this.modals.splice(o, 1), r.modals.length === 0)
132
- r.restore && r.restore(), t.modalRef && K(t.modalRef, s), oe(r.container, t.mount, t.modalRef, r.hiddenSiblings, !1), this.containers.splice(i, 1);
133
- else {
134
- const c = r.modals[r.modals.length - 1];
135
- c.modalRef && K(c.modalRef, !1);
136
- }
137
- return o;
138
- }
139
- isTopModal(t) {
140
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
141
- }
142
- }
143
- const Me = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
144
- function we(e) {
145
- const t = parseInt(e.getAttribute("tabindex") || "", 10);
146
- return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
147
- }
148
- function Oe(e) {
149
- if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
150
- return !1;
151
- const t = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
152
- let s = t(`[name="${e.name}"]:checked`);
153
- return s || (s = t(`[name="${e.name}"]`)), s !== e;
154
- }
155
- function Ae(e) {
156
- return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Oe(e));
157
- }
158
- function De(e) {
159
- const t = [], s = [];
160
- return Array.from(e.querySelectorAll(Me)).forEach((o, i) => {
161
- const r = we(o);
162
- r === -1 || !Ae(o) || (r === 0 ? t.push(o) : s.push({
163
- documentOrder: i,
164
- tabIndex: r,
165
- node: o
166
- }));
167
- }), s.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
168
- }
169
- function Le() {
170
- return !0;
171
- }
172
- function H(e) {
173
- const {
174
- children: t,
175
- disableAutoFocus: s = !1,
176
- disableEnforceFocus: o = !1,
177
- disableRestoreFocus: i = !1,
178
- getTabbable: r = De,
179
- isEnabled: c = Le,
180
- open: a
181
- } = e, m = u.useRef(!1), E = u.useRef(null), v = u.useRef(null), h = u.useRef(null), y = u.useRef(null), b = u.useRef(!1), p = u.useRef(null), M = re(Pe(t), p), N = u.useRef(null);
182
- u.useEffect(() => {
183
- !a || !p.current || (b.current = !s);
184
- }, [s, a]), u.useEffect(() => {
185
- if (!a || !p.current)
186
- return;
187
- const l = O(p.current);
188
- return p.current.contains(l.activeElement) || (p.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
189
- `)), p.current.setAttribute("tabIndex", "-1")), b.current && p.current.focus()), () => {
190
- i || (h.current && h.current.focus && (m.current = !0, h.current.focus()), h.current = null);
191
- };
192
- }, [a]), u.useEffect(() => {
193
- if (!a || !p.current)
194
- return;
195
- const l = O(p.current), g = (T) => {
196
- N.current = T, !(o || !c() || T.key !== "Tab") && l.activeElement === p.current && T.shiftKey && (m.current = !0, v.current && v.current.focus());
197
- }, k = () => {
198
- var x, w;
199
- const T = p.current;
200
- if (T === null)
201
- return;
202
- if (!l.hasFocus() || !c() || m.current) {
203
- m.current = !1;
204
- return;
205
- }
206
- if (T.contains(l.activeElement) || o && l.activeElement !== E.current && l.activeElement !== v.current)
207
- return;
208
- if (l.activeElement !== y.current)
209
- y.current = null;
210
- else if (y.current !== null)
211
- return;
212
- if (!b.current)
213
- return;
214
- let S = [];
215
- if ((l.activeElement === E.current || l.activeElement === v.current) && (S = r(p.current)), S.length > 0) {
216
- const D = !!((x = N.current) != null && x.shiftKey && ((w = N.current) == null ? void 0 : w.key) === "Tab"), U = S[0], L = S[S.length - 1];
217
- typeof U != "string" && typeof L != "string" && (D ? L.focus() : U.focus());
218
- } else
219
- T.focus();
220
- };
221
- l.addEventListener("focusin", k), l.addEventListener("keydown", g, !0);
222
- const A = setInterval(() => {
223
- l.activeElement && l.activeElement.tagName === "BODY" && k();
224
- }, 50);
225
- return () => {
226
- clearInterval(A), l.removeEventListener("focusin", k), l.removeEventListener("keydown", g, !0);
227
- };
228
- }, [s, o, i, c, a, r]);
229
- const F = (l) => {
230
- h.current === null && (h.current = l.relatedTarget), b.current = !0, y.current = l.target;
231
- const g = t.props.onFocus;
232
- g && g(l);
233
- }, R = (l) => {
234
- h.current === null && (h.current = l.relatedTarget), b.current = !0;
235
- };
236
- return /* @__PURE__ */ se(u.Fragment, {
237
- children: [/* @__PURE__ */ j("div", {
238
- tabIndex: a ? 0 : -1,
239
- onFocus: R,
240
- ref: E,
241
- "data-testid": "sentinelStart"
242
- }), /* @__PURE__ */ u.cloneElement(t, {
243
- ref: M,
244
- onFocus: F
245
- }), /* @__PURE__ */ j("div", {
246
- tabIndex: a ? 0 : -1,
247
- onFocus: R,
248
- ref: v,
249
- "data-testid": "sentinelEnd"
250
- })]
251
- });
252
- }
253
- process.env.NODE_ENV !== "production" && (H.propTypes = {
254
- // ┌────────────────────────────── Warning ──────────────────────────────┐
255
- // │ These PropTypes are generated from the TypeScript type definitions. │
256
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
257
- // └─────────────────────────────────────────────────────────────────────┘
258
- /**
259
- * A single child content element.
260
- */
261
- children: ce,
262
- /**
263
- * If `true`, the focus trap will not automatically shift focus to itself when it opens, and
264
- * replace it to the last focused element when it closes.
265
- * This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
266
- *
267
- * Generally this should never be set to `true` as it makes the focus trap less
268
- * accessible to assistive technologies, like screen readers.
269
- * @default false
270
- */
271
- disableAutoFocus: n.bool,
272
- /**
273
- * If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
274
- *
275
- * Generally this should never be set to `true` as it makes the focus trap less
276
- * accessible to assistive technologies, like screen readers.
277
- * @default false
278
- */
279
- disableEnforceFocus: n.bool,
280
- /**
281
- * If `true`, the focus trap will not restore focus to previously focused element once
282
- * focus trap is hidden or unmounted.
283
- * @default false
284
- */
285
- disableRestoreFocus: n.bool,
286
- /**
287
- * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
288
- * For instance, you can provide the "tabbable" npm dependency.
289
- * @param {HTMLElement} root
290
- */
291
- getTabbable: n.func,
292
- /**
293
- * This prop extends the `open` prop.
294
- * It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
295
- * This prop should be memoized.
296
- * It can be used to support multiple focus trap mounted at the same time.
297
- * @default function defaultIsEnabled(): boolean {
298
- * return true;
299
- * }
300
- */
301
- isEnabled: n.func,
302
- /**
303
- * If `true`, focus is locked.
304
- */
305
- open: n.bool.isRequired
306
- });
307
- process.env.NODE_ENV !== "production" && (H.propTypes = ve(H.propTypes));
308
- function Be(e) {
309
- return typeof e == "function" ? e() : e;
310
- }
311
- function je(e) {
312
- return e ? e.props.hasOwnProperty("in") : !1;
313
- }
314
- const ne = () => {
315
- }, q = new Ce();
316
- function Ke(e) {
317
- const {
318
- container: t,
319
- disableEscapeKeyDown: s = !1,
320
- disableScrollLock: o = !1,
321
- closeAfterTransition: i = !1,
322
- onTransitionEnter: r,
323
- onTransitionExited: c,
324
- children: a,
325
- onClose: m,
326
- open: E,
327
- rootRef: v
328
- } = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p = re(b, v), [M, N] = u.useState(!E), F = je(a);
329
- let R = !0;
330
- (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (R = !1);
331
- const l = () => O(y.current), g = () => (h.current.modalRef = b.current, h.current.mount = y.current, h.current), k = () => {
332
- q.mount(g(), {
333
- disableScrollLock: o
334
- }), b.current && (b.current.scrollTop = 0);
335
- }, A = Q(() => {
336
- const f = Be(t) || l().body;
337
- q.add(g(), f), b.current && k();
338
- }), T = () => q.isTopModal(g()), S = Q((f) => {
339
- y.current = f, f && (E && T() ? k() : b.current && K(b.current, R));
340
- }), x = u.useCallback(() => {
341
- q.remove(g(), R);
342
- }, [R]);
343
- u.useEffect(() => () => {
344
- x();
345
- }, [x]), u.useEffect(() => {
346
- E ? A() : (!F || !i) && x();
347
- }, [E, x, F, i, A]);
348
- const w = (f) => (d) => {
349
- var P;
350
- (P = f.onKeyDown) == null || P.call(f, d), !(d.key !== "Escape" || d.which === 229 || // Wait until IME is settled.
351
- !T()) && (s || (d.stopPropagation(), m && m(d, "escapeKeyDown")));
352
- }, D = (f) => (d) => {
353
- var P;
354
- (P = f.onClick) == null || P.call(f, d), d.target === d.currentTarget && m && m(d, "backdropClick");
355
- };
356
- return {
357
- getRootProps: (f = {}) => {
358
- const d = ge(e);
359
- delete d.onTransitionEnter, delete d.onTransitionExited;
360
- const P = {
361
- ...d,
362
- ...f
363
- };
364
- return {
365
- /*
366
- * Marking an element with the role presentation indicates to assistive technology
367
- * that this element should be ignored; it exists to support the web application and
368
- * is not meant for humans to interact with directly.
369
- * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
370
- */
371
- role: "presentation",
372
- ...P,
373
- onKeyDown: w(P),
374
- ref: p
375
- };
376
- },
377
- getBackdropProps: (f = {}) => {
378
- const d = f;
379
- return {
380
- "aria-hidden": !0,
381
- ...d,
382
- onClick: D(d),
383
- open: E
384
- };
385
- },
386
- getTransitionProps: () => {
387
- const f = () => {
388
- N(!1), r && r();
389
- }, d = () => {
390
- N(!0), c && c(), i && x();
391
- };
392
- return {
393
- onEnter: ee(f, (a == null ? void 0 : a.props.onEnter) ?? ne),
394
- onExited: ee(d, (a == null ? void 0 : a.props.onExited) ?? ne)
395
- };
396
- },
397
- rootRef: p,
398
- portalRef: S,
399
- isTopModal: T,
400
- exited: M,
401
- hasTransition: F
402
- };
403
- }
404
- function Ue(e) {
405
- return me("MuiModal", e);
406
- }
407
- Ee("MuiModal", ["root", "hidden", "backdrop"]);
408
- const We = (e) => {
409
- const {
410
- open: t,
411
- exited: s,
412
- classes: o
413
- } = e;
414
- return ye({
415
- root: ["root", !t && s && "hidden"],
416
- backdrop: ["backdrop"]
417
- }, Ue, o);
418
- }, qe = ie("div", {
419
- name: "MuiModal",
420
- slot: "Root",
421
- overridesResolver: (e, t) => {
422
- const {
423
- ownerState: s
424
- } = e;
425
- return [t.root, !s.open && s.exited && t.hidden];
426
- }
427
- })(be(({
428
- theme: e
429
- }) => ({
430
- position: "fixed",
431
- zIndex: (e.vars || e).zIndex.modal,
432
- right: 0,
433
- bottom: 0,
434
- top: 0,
435
- left: 0,
436
- variants: [{
437
- props: ({
438
- ownerState: t
439
- }) => !t.open && t.exited,
440
- style: {
441
- visibility: "hidden"
442
- }
443
- }]
444
- }))), ze = ie(xe, {
445
- name: "MuiModal",
446
- slot: "Backdrop"
447
- })({
448
- zIndex: -1
449
- }), He = /* @__PURE__ */ u.forwardRef(function(t, s) {
450
- const o = Te({
451
- name: "MuiModal",
452
- props: t
453
- }), {
454
- BackdropComponent: i = ze,
455
- BackdropProps: r,
456
- classes: c,
457
- className: a,
458
- closeAfterTransition: m = !1,
459
- children: E,
460
- container: v,
461
- component: h,
462
- components: y = {},
463
- componentsProps: b = {},
464
- disableAutoFocus: p = !1,
465
- disableEnforceFocus: M = !1,
466
- disableEscapeKeyDown: N = !1,
467
- disablePortal: F = !1,
468
- disableRestoreFocus: R = !1,
469
- disableScrollLock: l = !1,
470
- hideBackdrop: g = !1,
471
- keepMounted: k = !1,
472
- onClose: A,
473
- onTransitionEnter: T,
474
- onTransitionExited: S,
475
- open: x,
476
- slotProps: w = {},
477
- slots: D = {},
478
- // eslint-disable-next-line react/prop-types
479
- theme: U,
480
- ...L
481
- } = o, V = {
482
- ...o,
483
- closeAfterTransition: m,
484
- disableAutoFocus: p,
485
- disableEnforceFocus: M,
486
- disableEscapeKeyDown: N,
487
- disablePortal: F,
488
- disableRestoreFocus: R,
489
- disableScrollLock: l,
490
- hideBackdrop: g,
491
- keepMounted: k
492
- }, {
493
- getRootProps: f,
494
- getBackdropProps: d,
495
- getTransitionProps: P,
496
- portalRef: ae,
497
- isTopModal: le,
498
- exited: _,
499
- hasTransition: G
500
- } = Ke({
501
- ...V,
502
- rootRef: s
503
- }), B = {
504
- ...V,
505
- exited: _
506
- }, I = We(B), W = {};
507
- if (E.props.tabIndex === void 0 && (W.tabIndex = "-1"), G) {
508
- const {
509
- onEnter: C,
510
- onExited: $
511
- } = P();
512
- W.onEnter = C, W.onExited = $;
513
- }
514
- const X = {
515
- slots: {
516
- root: y.Root,
517
- backdrop: y.Backdrop,
518
- ...D
519
- },
520
- slotProps: {
521
- ...b,
522
- ...w
523
- }
524
- }, [ue, de] = Z("root", {
525
- ref: s,
526
- elementType: qe,
527
- externalForwardedProps: {
528
- ...X,
529
- ...L,
530
- component: h
531
- },
532
- getSlotProps: f,
533
- ownerState: B,
534
- className: J(a, I == null ? void 0 : I.root, !B.open && B.exited && (I == null ? void 0 : I.hidden))
535
- }), [fe, pe] = Z("backdrop", {
536
- ref: r == null ? void 0 : r.ref,
537
- elementType: i,
538
- externalForwardedProps: X,
539
- shouldForwardComponentProp: !0,
540
- additionalProps: r,
541
- getSlotProps: (C) => d({
542
- ...C,
543
- onClick: ($) => {
544
- C != null && C.onClick && C.onClick($);
545
- }
546
- }),
547
- className: J(r == null ? void 0 : r.className, I == null ? void 0 : I.backdrop),
548
- ownerState: B
549
- });
550
- return !k && !x && (!G || _) ? null : /* @__PURE__ */ j(Re, {
551
- ref: ae,
552
- container: v,
553
- disablePortal: F,
554
- children: /* @__PURE__ */ se(ue, {
555
- ...de,
556
- children: [!g && i ? /* @__PURE__ */ j(fe, {
557
- ...pe
558
- }) : null, /* @__PURE__ */ j(H, {
559
- disableEnforceFocus: M,
560
- disableAutoFocus: p,
561
- disableRestoreFocus: R,
562
- isEnabled: le,
563
- open: x,
564
- children: /* @__PURE__ */ u.cloneElement(E, W)
565
- })]
566
- })
567
- });
568
- });
569
- process.env.NODE_ENV !== "production" && (He.propTypes = {
570
- // ┌────────────────────────────── Warning ──────────────────────────────┐
571
- // │ These PropTypes are generated from the TypeScript type definitions. │
572
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
573
- // └─────────────────────────────────────────────────────────────────────┘
574
- /**
575
- * A backdrop component. This prop enables custom backdrop rendering.
576
- * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
577
- * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
578
- * @default styled(Backdrop, {
579
- * name: 'MuiModal',
580
- * slot: 'Backdrop',
581
- * })({
582
- * zIndex: -1,
583
- * })
584
- */
585
- BackdropComponent: n.elementType,
586
- /**
587
- * Props applied to the [`Backdrop`](https://mui.com/material-ui/api/backdrop/) element.
588
- * @deprecated Use `slotProps.backdrop` instead.
589
- */
590
- BackdropProps: n.object,
591
- /**
592
- * A single child content element.
593
- */
594
- children: ce.isRequired,
595
- /**
596
- * Override or extend the styles applied to the component.
597
- */
598
- classes: n.object,
599
- /**
600
- * @ignore
601
- */
602
- className: n.string,
603
- /**
604
- * When set to true the Modal waits until a nested Transition is completed before closing.
605
- * @default false
606
- */
607
- closeAfterTransition: n.bool,
608
- /**
609
- * The component used for the root node.
610
- * Either a string to use a HTML element or a component.
611
- */
612
- component: n.elementType,
613
- /**
614
- * The components used for each slot inside.
615
- *
616
- * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
617
- *
618
- * @default {}
619
- */
620
- components: n.shape({
621
- Backdrop: n.elementType,
622
- Root: n.elementType
623
- }),
624
- /**
625
- * The extra props for the slot components.
626
- * You can override the existing props or add new ones.
627
- *
628
- * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
629
- *
630
- * @default {}
631
- */
632
- componentsProps: n.shape({
633
- backdrop: n.oneOfType([n.func, n.object]),
634
- root: n.oneOfType([n.func, n.object])
635
- }),
636
- /**
637
- * An HTML element or function that returns one.
638
- * The `container` will have the portal children appended to it.
639
- *
640
- * You can also provide a callback, which is called in a React layout effect.
641
- * This lets you set the container from a ref, and also makes server-side rendering possible.
642
- *
643
- * By default, it uses the body of the top-level document object,
644
- * so it's simply `document.body` most of the time.
645
- */
646
- container: n.oneOfType([he, n.func]),
647
- /**
648
- * If `true`, the modal will not automatically shift focus to itself when it opens, and
649
- * replace it to the last focused element when it closes.
650
- * This also works correctly with any modal children that have the `disableAutoFocus` prop.
651
- *
652
- * Generally this should never be set to `true` as it makes the modal less
653
- * accessible to assistive technologies, like screen readers.
654
- * @default false
655
- */
656
- disableAutoFocus: n.bool,
657
- /**
658
- * If `true`, the modal will not prevent focus from leaving the modal while open.
659
- *
660
- * Generally this should never be set to `true` as it makes the modal less
661
- * accessible to assistive technologies, like screen readers.
662
- * @default false
663
- */
664
- disableEnforceFocus: n.bool,
665
- /**
666
- * If `true`, hitting escape will not fire the `onClose` callback.
667
- * @default false
668
- */
669
- disableEscapeKeyDown: n.bool,
670
- /**
671
- * The `children` will be under the DOM hierarchy of the parent component.
672
- * @default false
673
- */
674
- disablePortal: n.bool,
675
- /**
676
- * If `true`, the modal will not restore focus to previously focused element once
677
- * modal is hidden or unmounted.
678
- * @default false
679
- */
680
- disableRestoreFocus: n.bool,
681
- /**
682
- * Disable the scroll lock behavior.
683
- * @default false
684
- */
685
- disableScrollLock: n.bool,
686
- /**
687
- * If `true`, the backdrop is not rendered.
688
- * @default false
689
- */
690
- hideBackdrop: n.bool,
691
- /**
692
- * Always keep the children in the DOM.
693
- * This prop can be useful in SEO situation or
694
- * when you want to maximize the responsiveness of the Modal.
695
- * @default false
696
- */
697
- keepMounted: n.bool,
698
- /**
699
- * Callback fired when the component requests to be closed.
700
- * The `reason` parameter can optionally be used to control the response to `onClose`.
701
- *
702
- * @param {object} event The event source of the callback.
703
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
704
- */
705
- onClose: n.func,
706
- /**
707
- * A function called when a transition enters.
708
- */
709
- onTransitionEnter: n.func,
710
- /**
711
- * A function called when a transition has exited.
712
- */
713
- onTransitionExited: n.func,
714
- /**
715
- * If `true`, the component is shown.
716
- */
717
- open: n.bool.isRequired,
718
- /**
719
- * The props used for each slot inside the Modal.
720
- * @default {}
721
- */
722
- slotProps: n.shape({
723
- backdrop: n.oneOfType([n.func, n.object]),
724
- root: n.oneOfType([n.func, n.object])
725
- }),
726
- /**
727
- * The components used for each slot inside the Modal.
728
- * Either a string to use a HTML element or a component.
729
- * @default {}
730
- */
731
- slots: n.shape({
732
- backdrop: n.elementType,
733
- root: n.elementType
734
- }),
735
- /**
736
- * The system prop that allows defining system overrides as well as additional CSS styles.
737
- */
738
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
739
- });
740
- export {
741
- He as M,
742
- ke as g
743
- };