everest-npm-features 0.0.60 → 0.0.62

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 (238) hide show
  1. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  2. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  3. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  4. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  5. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  6. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  7. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  8. package/dist/{PlayArrow-BlkZJiHn.js → PlayArrow-BVDyfxsQ.js} +2 -2
  9. package/dist/Portal-BeS9yJCZ.js +968 -0
  10. package/dist/assets/index7.css +1 -1
  11. package/dist/assets/index8.css +1 -1
  12. package/dist/{auth-WhDJHZtr.js → auth-DTJdu6mq.js} +11 -11
  13. package/dist/{bank-BaOrdTcI.js → bank-C4pmTe--.js} +1 -1
  14. package/dist/components/RocketRamp/MinimalKyc/form.js +46 -52
  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 +9 -9
  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 -54
  51. package/dist/components/Shared/FullKyc/index.js +13 -12
  52. package/dist/components/Shared/FullKyc/pep.js +35 -43
  53. package/dist/components/Shared/FullKyc/personalDetails.js +7 -8
  54. package/dist/components/Shared/FullKyc/userInfo.js +8 -14
  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.js +34 -38
  63. package/dist/components/Wallet/Account/eWallet.js +35 -39
  64. package/dist/components/Wallet/Account/iban.js +49 -53
  65. package/dist/components/Wallet/Account/ibanItem.js +70 -76
  66. package/dist/components/Wallet/Account/index.js +68 -76
  67. package/dist/components/Wallet/Account/sendIban.js +79 -88
  68. package/dist/components/Wallet/Buy/confirmTransaction.js +9 -12
  69. package/dist/components/Wallet/Buy/form.js +8 -18
  70. package/dist/components/Wallet/Buy/index.js +6 -6
  71. package/dist/components/Wallet/Deposit/index.js +16 -19
  72. package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -34
  73. package/dist/components/Wallet/EnterpriseKyc/index.js +76 -81
  74. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  75. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  76. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  77. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  78. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +37 -39
  79. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1483
  80. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  81. package/dist/components/Wallet/EnterpriseKyc/verify.js +23 -24
  82. package/dist/components/Wallet/History/index.js +23 -797
  83. package/dist/components/Wallet/Home/index.js +13 -14
  84. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +91 -97
  85. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  86. package/dist/components/Wallet/Portfolio/index.js +48 -52
  87. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  88. package/dist/components/Wallet/Profile/documents.js +125 -134
  89. package/dist/components/Wallet/Profile/index.js +38 -44
  90. package/dist/components/Wallet/Profile/storage.js +39 -47
  91. package/dist/components/Wallet/Receive/index.js +32 -37
  92. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -11
  93. package/dist/components/Wallet/Sell/form.js +8 -18
  94. package/dist/components/Wallet/Sell/index.js +6 -6
  95. package/dist/components/Wallet/Send/index.js +336 -324
  96. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  97. package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
  98. package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
  99. package/dist/components/Wallet/Shared/CardCorp/index.js +18 -20
  100. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  101. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  102. package/dist/components/Wallet/Shared/Container/index.js +15 -16
  103. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  104. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  105. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  106. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  107. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  108. package/dist/components/Wallet/Shared/addBank.js +41 -46
  109. package/dist/components/Wallet/Shared/appButton.js +11 -15
  110. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  111. package/dist/components/Wallet/Shared/button.js +7 -7
  112. package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
  113. package/dist/components/Wallet/Shared/inputField.js +5 -5
  114. package/dist/components/Wallet/Shared/manualSend.js +9 -14
  115. package/dist/components/Wallet/Shared/noData.js +4 -5
  116. package/dist/components/Wallet/Shared/pin.js +25 -27
  117. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  118. package/dist/components/Wallet/Shared/step.js +12 -13
  119. package/dist/components/Wallet/Shared/timer.js +1 -1
  120. package/dist/components/Wallet/SignIn/index.js +17 -17
  121. package/dist/components/Wallet/SignUp/index.js +63 -153
  122. package/dist/components/Wallet/SignUp/terms.js +1 -1
  123. package/dist/components/Wallet/Stake/gems/index.js +51 -58
  124. package/dist/components/Wallet/Stake/id/index.js +73 -81
  125. package/dist/components/Wallet/Stake/index.js +65 -69
  126. package/dist/components/Wallet/Swap/form.js +11 -21
  127. package/dist/components/Wallet/Swap/index.js +5 -5
  128. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  129. package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
  130. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
  131. package/dist/components/Wallet/Withdraw/form.js +6 -17
  132. package/dist/components/Wallet/Withdraw/index.js +5 -5
  133. package/dist/{constants-DREDnCMu.js → constants-DrmtdI1J.js} +7 -7
  134. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  135. package/dist/{cryptoAssets-DbyDgq4J.js → cryptoAssets-DyGDknvq.js} +1 -1
  136. package/dist/hoc/withThemeProvider.js +5 -732
  137. package/dist/hooks/useDialog/index.js +22 -23
  138. package/dist/hooks/useRrDialog/index.js +43 -46
  139. package/dist/hooks/useSnackBar.js +24 -696
  140. package/dist/icons/buyIcon.js +1 -1
  141. package/dist/icons/canceledBuyIcon.js +1 -1
  142. package/dist/icons/canceledRedeemIcon.js +1 -1
  143. package/dist/icons/failedBuyIcon.js +2 -2
  144. package/dist/icons/failedRedeemIcon.js +2 -2
  145. package/dist/icons/pendingBuyIcon.js +1 -1
  146. package/dist/icons/pendingRedeemIcon.js +1 -1
  147. package/dist/icons/redeemIcon.js +1 -1
  148. package/dist/{index-DYP5Ex_T.js → index-3OQ4M69t.js} +89 -99
  149. package/dist/{index-B3HnUBnB.js → index-BBFbUCRZ.js} +123 -129
  150. package/dist/{index-PoMNqntN.js → index-C1WPCgkl.js} +130 -141
  151. package/dist/{index-BXutc9ik.js → index-CDwzoHu7.js} +134 -145
  152. package/dist/{index-DV1dVcrY.js → index-CK4kLRAw.js} +172 -182
  153. package/dist/{index-DJ7xuxBy.js → index-CYX3j0V7.js} +175 -185
  154. package/dist/{index-CuPCW3XC.js → index-ILpK4BCB.js} +154 -163
  155. package/dist/{kyc-D4s_B9Cf.js → kyc-ksV3vBP_.js} +1 -1
  156. package/dist/main.js +7 -7
  157. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  158. package/dist/{order-DGBbo_Ox.js → order-DEp_Lmar.js} +1 -1
  159. package/dist/otpForm-fiNqeB5H.js +7378 -0
  160. package/dist/{stake-CdMc5H7D.js → stake-Ct7-_aWW.js} +1 -1
  161. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  162. package/dist/tooltip-BW0UyWw7.js +2129 -0
  163. package/dist/{wallet-DvfdQOju.js → wallet-CauUBXou.js} +1 -1
  164. package/package.json +6 -6
  165. package/dist/Alert-DzsbFW3-.js +0 -369
  166. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  167. package/dist/Avatar-1XklXr4O.js +0 -281
  168. package/dist/Backdrop-CioURPVG.js +0 -359
  169. package/dist/Box-B0YSYLco.js +0 -59
  170. package/dist/Button-Df4vgU24.js +0 -663
  171. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  172. package/dist/CardContent-D9wTdpu-.js +0 -141
  173. package/dist/CircularProgress-xZA3lvba.js +0 -252
  174. package/dist/Close-CxzDL3J-.js +0 -9
  175. package/dist/Container-urNKV7hm.js +0 -181
  176. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  177. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  178. package/dist/DialogContent-BMwlOnbW.js +0 -567
  179. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  180. package/dist/Divider-BShhMFf4.js +0 -297
  181. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  182. package/dist/FormControl-RtZDQMdA.js +0 -258
  183. package/dist/FormControlLabel-BliKW48y.js +0 -519
  184. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  185. package/dist/Grid-CFe3amXO.js +0 -410
  186. package/dist/Grow-CnGtel3u.js +0 -196
  187. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  188. package/dist/IconButton-DHm-hucF.js +0 -297
  189. package/dist/InputAdornment-DMiED3JH.js +0 -173
  190. package/dist/Link-DBA9Yifs.js +0 -266
  191. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  192. package/dist/Menu-DLYFFrEk.js +0 -1239
  193. package/dist/MenuItem-DUdYOJr4.js +0 -271
  194. package/dist/Modal-CFIQ_s3T.js +0 -743
  195. package/dist/Paper-Bgt2WXI6.js +0 -186
  196. package/dist/Popper-BBAoiZKn.js +0 -1409
  197. package/dist/Portal-BMAxiQwe.js +0 -69
  198. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  199. package/dist/Select-CB5yWmyn.js +0 -1886
  200. package/dist/Slide-B9Nw0LZ4.js +0 -235
  201. package/dist/Stack-k55YTxET.js +0 -172
  202. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  203. package/dist/TextField-DPpRUQe3.js +0 -978
  204. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  205. package/dist/Typography-pAaje37G.js +0 -260
  206. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  207. package/dist/clsx-BTaloaeC.js +0 -264
  208. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  209. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  210. package/dist/createTheme-CD19zQB7.js +0 -3825
  211. package/dist/debounce-46wSf_lW.js +0 -15
  212. package/dist/defaultTheme-C35y5cLB.js +0 -5
  213. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  214. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  215. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  216. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  217. package/dist/exactProp-C1Lmtwf_.js +0 -13
  218. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  219. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  220. package/dist/index-B0Z-Gjno.js +0 -22
  221. package/dist/index-DUcLo3x5.js +0 -43
  222. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  223. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  224. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  225. package/dist/memoTheme-yHaPezod.js +0 -15
  226. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  227. package/dist/radioButton-CzlYB0Lh.js +0 -402
  228. package/dist/refType-BsTH3qnM.js +0 -56
  229. package/dist/tooltip-3UvETWtS.js +0 -740
  230. package/dist/useControlled-nm4pBabJ.js +0 -31
  231. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  232. package/dist/useFormControl-CatNKXAi.js +0 -10
  233. package/dist/useId-CK6Kn3Tn.js +0 -21
  234. package/dist/useSlot-CW7SOYlh.js +0 -125
  235. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  236. package/dist/useTheme-BQJ5lp0i.js +0 -11
  237. package/dist/useTheme-S5_DHFsQ.js +0 -17
  238. 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
- };