everest-npm-features 0.0.23 → 0.0.24

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 (244) hide show
  1. package/dist/{Alert-C1UNQHPD.js → Alert-CbQZ8Nii.js} +142 -116
  2. package/dist/{ArrowBack-Clp4i3dA.js → ArrowBack-BoYSBb8u.js} +1 -1
  3. package/dist/{ArrowDropDown-CoJNyIet.js → ArrowDropDown-BC_iEASy.js} +1 -1
  4. package/dist/{ArrowRight-DXtbS-1g.js → ArrowRight-rYkfGJuF.js} +1 -1
  5. package/dist/{Backdrop-DD6Ysl5O.js → Backdrop-CJBRZv_z.js} +106 -107
  6. package/dist/{Box-Be0E_-eR.js → Box-B12x52NC.js} +17 -16
  7. package/dist/Button-C57IMamW.js +660 -0
  8. package/dist/{ButtonBase-CE33gcZ6.js → ButtonBase-DugIO1pR.js} +194 -194
  9. package/dist/{Cancel-DEk2meuc.js → Cancel-D1JNu4Hj.js} +1 -1
  10. package/dist/{CardContent-B5tGyfc5.js → CardContent-CbObWW6t.js} +44 -45
  11. package/dist/{CheckCircle-BIckgNlV.js → CheckCircle-CyxKX1TY.js} +1 -1
  12. package/dist/{CircularProgress-fePUtoaj.js → CircularProgress-t8uGhLMo.js} +17 -17
  13. package/dist/{Close-D20PIPiF.js → Close-VV7zb3cu.js} +1 -1
  14. package/dist/{Close-Bj6AaxRi.js → Close-jnEgOCZv.js} +1 -1
  15. package/dist/{Container-CTfl6Vy4.js → Container-B3Af6Sc3.js} +20 -20
  16. package/dist/{ContentCopy-DzhD9ue3.js → ContentCopy-Ufwoeeov.js} +1 -1
  17. package/dist/DefaultPropsProvider-B2njZVNv.js +242 -0
  18. package/dist/DefaultPropsProvider-CZh8M2jM.js +351 -0
  19. package/dist/{Delete-BqqmGzYe.js → Delete-TCARcVtU.js} +1 -1
  20. package/dist/{DialogContent-D8jGp88c.js → DialogContent-DzidtXui.js} +202 -140
  21. package/dist/{DialogTitle-CxbjAJOw.js → DialogTitle-Bg61Hr7M.js} +23 -23
  22. package/dist/{Divider-D3PIEE97.js → Divider-Dy5hKfey.js} +31 -30
  23. package/dist/{ErrorOutline-CnwdlXPx.js → ErrorOutline-CI_ys3Zo.js} +1 -1
  24. package/dist/{FileDownload-BX69Jvdx.js → FileDownload-BcYF17B0.js} +1 -1
  25. package/dist/{FilledInput-n9W_V8GV.js → FilledInput-DrGeWgue.js} +352 -335
  26. package/dist/{FormControl-Cc-02KHW.js → FormControl-DeeQCuu5.js} +98 -81
  27. package/dist/{FormControlLabel-BEN9P8rJ.js → FormControlLabel-DVnrJkC8.js} +194 -165
  28. package/dist/GlobalStyles-DhHHc9O0.js +59 -0
  29. package/dist/Grid-BXyV_lM8.js +410 -0
  30. package/dist/Grow-B2p7O_1C.js +196 -0
  31. package/dist/{ownerDocument-C0GI-r2b.js → HTMLElementType-BrQSV2FE.js} +6 -6
  32. package/dist/IconButton-eWRhV6Q9.js +295 -0
  33. package/dist/{Info-83BXSu73.js → Info-D2UkGxyK.js} +1 -1
  34. package/dist/{InputAdornment-Ck_-Z38v.js → InputAdornment-BKuUMfPj.js} +14 -12
  35. package/dist/{Link-BqusVoz5.js → Link-Cm4BkRHO.js} +50 -49
  36. package/dist/{ListItemIcon-DIz-ZmJ0.js → ListItemIcon-GKRFb1Gr.js} +14 -13
  37. package/dist/{MenuItem-BkJ_C9Xs.js → MenuItem-CeCt0bfa.js} +46 -39
  38. package/dist/{Modal-CQcBtr07.js → Modal-csf3Y8d2.js} +265 -269
  39. package/dist/{Paper-B5pcGZbI.js → Paper-CnStNE24.js} +39 -38
  40. package/dist/{PlayArrow-1Y66tCVx.js → PlayArrow-DRCGjsrx.js} +1 -1
  41. package/dist/{Popper-CYsd-3n5.js → Popper-pPBEFLi4.js} +15 -15
  42. package/dist/{Portal-Bw0-5YJ9.js → Portal-CLa9CbMv.js} +36 -37
  43. package/dist/{RadioGroup-DtQqYrwU.js → RadioGroup-KiyYjXaT.js} +29 -28
  44. package/dist/{Select-DpKw-a6h.js → Select-Chubcks_.js} +1248 -933
  45. package/dist/{Slide-CdNJY-CT.js → Slide-DHG0r2gy.js} +68 -66
  46. package/dist/{Stack-C4POCZZb.js → Stack-CcR5RCg8.js} +41 -43
  47. package/dist/SwitchBase-CHO5ZceN.js +317 -0
  48. package/dist/{TextField-Cm9apaOp.js → TextField-q_SeLeNd.js} +144 -135
  49. package/dist/TransitionGroupContext-CYRQkQ6k.js +49 -0
  50. package/dist/{Typography-Ds4fpvK8.js → Typography-DBlMiOti.js} +39 -38
  51. package/dist/{auth-CR0412E5.js → auth-Bf9zHZ-x.js} +1 -1
  52. package/dist/{bank-iFS1RXp-.js → bank-BC4YNBRb.js} +3 -3
  53. package/dist/components/RocketRamp/MinimalKyc/form.js +9 -9
  54. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  55. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
  56. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
  57. package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
  58. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  59. package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
  60. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  61. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
  62. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
  63. package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
  64. package/dist/components/RocketRamp/Player/Sell/index.js +7 -7
  65. package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
  66. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
  67. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  68. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  69. package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
  70. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
  71. package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
  72. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
  73. package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
  74. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  75. package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
  76. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  77. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  78. package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
  79. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  80. package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
  81. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
  82. package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
  83. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  84. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
  85. package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
  86. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
  87. package/dist/components/RocketRamp/Transactions/index.js +4 -4
  88. package/dist/components/Shared/FullKyc/index.js +4 -4
  89. package/dist/components/Shared/FullKyc/pep.js +9 -9
  90. package/dist/components/Shared/FullKyc/personalDetails.js +7 -7
  91. package/dist/components/Shared/FullKyc/userInfo.js +11 -11
  92. package/dist/components/Shared/HistoryItem/index.js +7 -7
  93. package/dist/components/Shared/Incode/index.js +5 -5
  94. package/dist/components/Shared/MinimalKyc/index.js +8 -8
  95. package/dist/components/Shared/loader.js +2 -2
  96. package/dist/components/Shared/tooltip.js +2 -2
  97. package/dist/components/Shared/transition.js +1 -1
  98. package/dist/components/Wallet/Account/createIban.d.ts +1 -0
  99. package/dist/components/Wallet/Account/createIban.js +36 -35
  100. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  101. package/dist/components/Wallet/Account/iban.js +16 -16
  102. package/dist/components/Wallet/Account/index.d.ts +1 -0
  103. package/dist/components/Wallet/Account/index.js +76 -70
  104. package/dist/components/Wallet/Account/sendIban.js +61 -61
  105. package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
  106. package/dist/components/Wallet/Buy/form.d.ts +2 -2
  107. package/dist/components/Wallet/Buy/form.js +17 -17
  108. package/dist/components/Wallet/Buy/index.js +6 -6
  109. package/dist/components/Wallet/Deposit/index.js +7 -7
  110. package/dist/components/Wallet/EnterpriseKyc/edd.js +7 -7
  111. package/dist/components/Wallet/EnterpriseKyc/index.js +26 -24
  112. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  113. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  114. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
  115. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  116. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +45 -44
  117. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3626 -100
  118. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  119. package/dist/components/Wallet/EnterpriseKyc/types.d.ts +0 -1
  120. package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
  121. package/dist/components/Wallet/History/index.js +61 -62
  122. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
  123. package/dist/components/Wallet/Portfolio/index.js +95 -95
  124. package/dist/components/Wallet/Portfolio/tokenRow.js +6 -6
  125. package/dist/components/Wallet/Profile/documents.js +17 -17
  126. package/dist/components/Wallet/Profile/index.js +225 -206
  127. package/dist/components/Wallet/Receive/index.js +9 -9
  128. package/dist/components/Wallet/Sell/confirmTransaction.js +7 -7
  129. package/dist/components/Wallet/Sell/form.js +17 -17
  130. package/dist/components/Wallet/Sell/index.js +6 -6
  131. package/dist/components/Wallet/Send/index.js +14 -14
  132. package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
  133. package/dist/components/Wallet/Shared/Auth/otpForm.js +217 -10451
  134. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  135. package/dist/components/Wallet/Shared/ConnectWallet/index.js +9 -9
  136. package/dist/components/Wallet/Shared/Container/index.js +3 -3
  137. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  138. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +9 -10
  139. package/dist/components/Wallet/Shared/Order/types.d.ts +23 -2
  140. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  141. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  142. package/dist/components/Wallet/Shared/addBank.js +11 -11
  143. package/dist/components/Wallet/Shared/appButton.js +5 -5
  144. package/dist/components/Wallet/Shared/backBtn.js +8 -8
  145. package/dist/components/Wallet/Shared/button.js +1 -1
  146. package/dist/components/Wallet/Shared/connectPlaidBank.js +5 -5
  147. package/dist/components/Wallet/Shared/inputField.js +1 -1
  148. package/dist/components/Wallet/Shared/noData.js +2 -2
  149. package/dist/components/Wallet/Shared/pin.js +3 -3
  150. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  151. package/dist/components/Wallet/Shared/step.js +2 -2
  152. package/dist/components/Wallet/SignIn/index.js +2 -2
  153. package/dist/components/Wallet/SignUp/index.js +2 -2
  154. package/dist/components/Wallet/SignUp/terms.js +4 -4
  155. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  156. package/dist/components/Wallet/Stake/id/index.js +12 -12
  157. package/dist/components/Wallet/Stake/index.js +10 -10
  158. package/dist/components/Wallet/Swap/index.js +138 -150
  159. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  160. package/dist/components/Wallet/Withdraw/bankSelect.js +10 -10
  161. package/dist/components/Wallet/Withdraw/confirmTransaction.js +7 -7
  162. package/dist/components/Wallet/Withdraw/form.d.ts +2 -2
  163. package/dist/components/Wallet/Withdraw/form.js +16 -16
  164. package/dist/components/Wallet/Withdraw/index.js +5 -5
  165. package/dist/{constants-BJByDTQY.js → constants-CsMPRK0U.js} +285 -284
  166. package/dist/{createSvgIcon-C0wzKL72.js → createSvgIcon-CH41ZVFw.js} +58 -57
  167. package/dist/createTheme-DmGCMO09.js +3825 -0
  168. package/dist/{cryptoAssets-BcVSdM1C.js → cryptoAssets-CzNDY1j6.js} +1 -1
  169. package/dist/defaultTheme-9fAph5zo.js +5 -0
  170. package/dist/{dividerClasses-Cb_Is0-O.js → dividerClasses-DnbM--4s.js} +2 -2
  171. package/dist/{documents-HjBKq9qA.js → documents-CEeV8SyW.js} +16 -16
  172. package/dist/{Transition-CYSgg85A.js → elementAcceptingRef-BbsmdE_3.js} +109 -66
  173. package/dist/{elementTypeAcceptingRef-Bc1kRXA9.js → elementTypeAcceptingRef-CdmXUhJ8.js} +1 -1
  174. package/dist/{emotion-react.browser.esm-BjxI_t8k.js → emotion-react.browser.esm-C2mxoK1z.js} +42 -42
  175. package/dist/{extendSxProp-a8ZTL0ZI.js → extendSxProp-Bwha5fon.js} +1 -1
  176. package/dist/{fiatAssets-C_F8qNzr.js → fiatAssets-DVHfFafS.js} +1 -1
  177. package/dist/hoc/withThemeProvider.js +518 -417
  178. package/dist/hooks/useDialog/index.js +4 -4
  179. package/dist/hooks/useRrDialog/index.js +4 -4
  180. package/dist/hooks/useSnackBar.js +363 -288
  181. package/dist/{iban-Dh7qBGGc.js → iban-DRT7i0vb.js} +74 -85
  182. package/dist/icons/buyIcon.js +1 -1
  183. package/dist/icons/canceledBuyIcon.js +1 -1
  184. package/dist/icons/canceledRedeemIcon.js +1 -1
  185. package/dist/icons/failedBuyIcon.js +1 -1
  186. package/dist/icons/failedRedeemIcon.js +1 -1
  187. package/dist/icons/pendingBuyIcon.js +1 -1
  188. package/dist/icons/pendingRedeemIcon.js +1 -1
  189. package/dist/icons/redeemIcon.js +1 -1
  190. package/dist/index-BB3__zW3.js +644 -0
  191. package/dist/index-C86AoaoB.js +43 -0
  192. package/dist/{index-BFIhKqqi.js → index-C9uGghB8.js} +141 -133
  193. package/dist/{index-DkMQ44xy.js → index-DZ__IpVI.js} +19 -19
  194. package/dist/{index-B2OIoTNN.js → index-DxX5Mo0o.js} +18 -18
  195. package/dist/{index-CQe8cwpc.js → index-VE9lYjq3.js} +22 -22
  196. package/dist/index-eEYiDlpX.js +723 -0
  197. package/dist/{index-CtkDfW5M.js → index-x9CniyQB.js} +1 -1
  198. package/dist/{kyc-DJpiKj5d.js → kyc-BweeW6k9.js} +1 -1
  199. package/dist/main.js +6 -6
  200. package/dist/{order-DhUA-ZNX.js → order-DmTHC7ZG.js} +7 -7
  201. package/dist/{ownerWindow-iFlVse9X.js → ownerWindow-CRgpWY6I.js} +1 -1
  202. package/dist/pep-C5Ge-kU4.js +2691 -0
  203. package/dist/{radioButton-CdYLf2fc.js → radioButton-Bgy7Kxxo.js} +172 -121
  204. package/dist/refType-CaiGhRso.js +56 -0
  205. package/dist/{stake-DWRuAE1u.js → stake-B150utJI.js} +1 -1
  206. package/dist/tokenRow-BR8f4g7G.js +198 -0
  207. package/dist/{tooltip-CwdohO6q.js → tooltip-DGtrVEzU.js} +258 -235
  208. package/dist/useControlled-nm4pBabJ.js +31 -0
  209. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  210. package/dist/useSlot-DtSnboW7.js +125 -0
  211. package/dist/useSlotProps-D62tWbb1.js +25 -0
  212. package/dist/useTheme-Bfw5Gt1b.js +17 -0
  213. package/dist/{useTheme-BzIjfC6u.js → useTheme-XTDzJ69d.js} +3 -3
  214. package/dist/useThemeProps-lRuJRcRX.js +29 -0
  215. package/dist/wallet-DDW5KCHp.js +39 -0
  216. package/package.json +7 -6
  217. package/dist/Button-DCBtFwk3.js +0 -452
  218. package/dist/DefaultPropsProvider-5cxFAZuq.js +0 -647
  219. package/dist/DefaultPropsProvider-DOLtk4kZ.js +0 -88
  220. package/dist/GlobalStyles-O5U8h5ZQ.js +0 -23
  221. package/dist/Grid-BaaKMDwM.js +0 -501
  222. package/dist/Grid2-DX2sucnU.js +0 -374
  223. package/dist/Grow-CC3Va50c.js +0 -216
  224. package/dist/IconButton-8B2ygvr4.js +0 -238
  225. package/dist/SwitchBase-B9rcpVZ0.js +0 -261
  226. package/dist/TransitionGroupContext-BzyZRJGo.js +0 -37
  227. package/dist/createTheme-D_EHVLXp.js +0 -3662
  228. package/dist/defaultTheme-CGLnLLk_.js +0 -5
  229. package/dist/index-BEH1PkNC.js +0 -572
  230. package/dist/index-DSZxScyY.js +0 -704
  231. package/dist/index-DlZLKtdr.js +0 -72
  232. package/dist/pep-BsWvrgyM.js +0 -2600
  233. package/dist/resolveComponentProps-CPnCrKvI.js +0 -80
  234. package/dist/styled-CyBKg0N-.js +0 -5
  235. package/dist/tokenRow-QlGBYRKR.js +0 -206
  236. package/dist/useControlled-BYdyS7Pn.js +0 -31
  237. package/dist/useSlot-BdP6R4tz.js +0 -50
  238. package/dist/useTheme-BFI_g9FY.js +0 -9
  239. package/dist/useThemeProps-BOrAzOS4.js +0 -40
  240. package/dist/useThemeWithoutDefault-BWt80cCE.js +0 -12
  241. package/dist/useTimeout-_ag1gI7y.js +0 -56
  242. package/dist/utils-B-vKE_Dv.js +0 -50
  243. package/dist/utils-asicApOI.js +0 -21
  244. package/dist/wallet-z7NHqtCj.js +0 -35
@@ -1,84 +1,83 @@
1
- import { jsx as k, jsxs as se } from "react/jsx-runtime";
2
- import * as h from "react";
3
- import { useState as C, useCallback as P } from "react";
4
- import { P as n, g as I, u as ie, f as S } from "../createTheme-D_EHVLXp.js";
5
- import { b as D, a as ae } from "../useTimeout-_ag1gI7y.js";
6
- import { e as U } from "../resolveComponentProps-CPnCrKvI.js";
7
- import { u as ce } from "../useTheme-BzIjfC6u.js";
8
- import { g as W, s as R, m as q, u as $, c as le, a as G } from "../DefaultPropsProvider-5cxFAZuq.js";
9
- import { u as ue, G as pe } from "../Grow-CC3Va50c.js";
10
- import { u as de } from "../TransitionGroupContext-BzyZRJGo.js";
11
- import { g as fe, e as me } from "../utils-B-vKE_Dv.js";
12
- import { o as M } from "../ownerDocument-C0GI-r2b.js";
13
- import { e as ge } from "../exactProp-C1Lmtwf_.js";
14
- import { P as he } from "../Paper-B5pcGZbI.js";
15
- import { A as be } from "../Alert-C1UNQHPD.js";
16
- import { S as O } from "../Slide-CdNJY-CT.js";
17
- function _(e) {
18
- return e.substring(2).toLowerCase();
1
+ import { jsxs as ke, jsx as v } from "react/jsx-runtime";
2
+ import * as y from "react";
3
+ import { useState as O, useCallback as j } from "react";
4
+ import { P as e, g as X, v as $, b as x } from "../createTheme-DmGCMO09.js";
5
+ import { a as N, u as we } from "../refType-CaiGhRso.js";
6
+ import { e as G, u as L } from "../useSlot-DtSnboW7.js";
7
+ import { u as ve } from "../useTheme-XTDzJ69d.js";
8
+ import { g as K, s as A, m as Y, u as J, c as Q } from "../DefaultPropsProvider-B2njZVNv.js";
9
+ import { u as Ee } from "../TransitionGroupContext-CYRQkQ6k.js";
10
+ import { g as Te, e as Ce } from "../elementAcceptingRef-BbsmdE_3.js";
11
+ import { o as H } from "../HTMLElementType-BrQSV2FE.js";
12
+ import { e as Se } from "../exactProp-C1Lmtwf_.js";
13
+ import { c as Pe } from "../DefaultPropsProvider-CZh8M2jM.js";
14
+ import { P as Oe } from "../Paper-CnStNE24.js";
15
+ import { G as Re } from "../Grow-B2p7O_1C.js";
16
+ import { A as Le } from "../Alert-CbQZ8Nii.js";
17
+ import { S as D } from "../Slide-DHG0r2gy.js";
18
+ function V(t) {
19
+ return t.substring(2).toLowerCase();
19
20
  }
20
- function ve(e, t) {
21
- return t.documentElement.clientWidth < e.clientX || t.documentElement.clientHeight < e.clientY;
21
+ function xe(t, n) {
22
+ return n.documentElement.clientWidth < t.clientX || n.documentElement.clientHeight < t.clientY;
22
23
  }
23
- function T(e) {
24
+ function M(t) {
24
25
  const {
25
- children: t,
26
- disableReactTree: a = !1,
26
+ children: n,
27
+ disableReactTree: l = !1,
27
28
  mouseEvent: o = "onClick",
28
29
  onClickAway: p,
29
- touchEvent: d = "onTouchEnd"
30
- } = e, b = h.useRef(!1), f = h.useRef(null), v = h.useRef(!1), y = h.useRef(!1);
31
- h.useEffect(() => (setTimeout(() => {
32
- v.current = !0;
30
+ touchEvent: f = "onTouchEnd"
31
+ } = t, h = y.useRef(!1), d = y.useRef(null), b = y.useRef(!1), k = y.useRef(!1);
32
+ y.useEffect(() => (setTimeout(() => {
33
+ b.current = !0;
33
34
  }, 0), () => {
34
- v.current = !1;
35
+ b.current = !1;
35
36
  }), []);
36
- const u = de(fe(t), f), m = D((i) => {
37
- const c = y.current;
38
- y.current = !1;
39
- const g = M(f.current);
40
- if (!v.current || !f.current || "clientX" in i && ve(i, g))
37
+ const u = Ee(Te(n), d), m = N((i) => {
38
+ const a = k.current;
39
+ k.current = !1;
40
+ const g = H(d.current);
41
+ if (!b.current || !d.current || "clientX" in i && xe(i, g))
41
42
  return;
42
- if (b.current) {
43
- b.current = !1;
43
+ if (h.current) {
44
+ h.current = !1;
44
45
  return;
45
46
  }
46
47
  let r;
47
- i.composedPath ? r = i.composedPath().includes(f.current) : r = !g.documentElement.contains(
48
+ i.composedPath ? r = i.composedPath().includes(d.current) : r = !g.documentElement.contains(
48
49
  // @ts-expect-error returns `false` as intended when not dispatched from a Node
49
50
  i.target
50
- ) || f.current.contains(
51
+ ) || d.current.contains(
51
52
  // @ts-expect-error returns `false` as intended when not dispatched from a Node
52
53
  i.target
53
- ), !r && (a || !c) && p(i);
54
- }), w = (i) => (c) => {
55
- y.current = !0;
56
- const g = t.props[i];
57
- g && g(c);
58
- }, E = {
54
+ ), !r && (l || !a) && p(i);
55
+ }), S = (i) => (a) => {
56
+ k.current = !0;
57
+ const g = n.props[i];
58
+ g && g(a);
59
+ }, T = {
59
60
  ref: u
60
61
  };
61
- return d !== !1 && (E[d] = w(d)), h.useEffect(() => {
62
- if (d !== !1) {
63
- const i = _(d), c = M(f.current), g = () => {
64
- b.current = !0;
62
+ return f !== !1 && (T[f] = S(f)), y.useEffect(() => {
63
+ if (f !== !1) {
64
+ const i = V(f), a = H(d.current), g = () => {
65
+ h.current = !0;
65
66
  };
66
- return c.addEventListener(i, m), c.addEventListener("touchmove", g), () => {
67
- c.removeEventListener(i, m), c.removeEventListener("touchmove", g);
67
+ return a.addEventListener(i, m), a.addEventListener("touchmove", g), () => {
68
+ a.removeEventListener(i, m), a.removeEventListener("touchmove", g);
68
69
  };
69
70
  }
70
- }, [m, d]), o !== !1 && (E[o] = w(o)), h.useEffect(() => {
71
+ }, [m, f]), o !== !1 && (T[o] = S(o)), y.useEffect(() => {
71
72
  if (o !== !1) {
72
- const i = _(o), c = M(f.current);
73
- return c.addEventListener(i, m), () => {
74
- c.removeEventListener(i, m);
73
+ const i = V(o), a = H(d.current);
74
+ return a.addEventListener(i, m), () => {
75
+ a.removeEventListener(i, m);
75
76
  };
76
77
  }
77
- }, [m, o]), /* @__PURE__ */ k(h.Fragment, {
78
- children: /* @__PURE__ */ h.cloneElement(t, E)
79
- });
78
+ }, [m, o]), /* @__PURE__ */ y.cloneElement(n, T);
80
79
  }
81
- process.env.NODE_ENV !== "production" && (T.propTypes = {
80
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
82
81
  // ┌────────────────────────────── Warning ──────────────────────────────┐
83
82
  // │ These PropTypes are generated from the TypeScript type definitions. │
84
83
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -86,38 +85,38 @@ process.env.NODE_ENV !== "production" && (T.propTypes = {
86
85
  /**
87
86
  * The wrapped element.
88
87
  */
89
- children: me.isRequired,
88
+ children: Ce.isRequired,
90
89
  /**
91
90
  * If `true`, the React tree is ignored and only the DOM tree is considered.
92
91
  * This prop changes how portaled elements are handled.
93
92
  * @default false
94
93
  */
95
- disableReactTree: n.bool,
94
+ disableReactTree: e.bool,
96
95
  /**
97
96
  * The mouse event to listen to. You can disable the listener by providing `false`.
98
97
  * @default 'onClick'
99
98
  */
100
- mouseEvent: n.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
99
+ mouseEvent: e.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
101
100
  /**
102
101
  * Callback fired when a "click away" event is detected.
103
102
  */
104
- onClickAway: n.func.isRequired,
103
+ onClickAway: e.func.isRequired,
105
104
  /**
106
105
  * The touch event to listen to. You can disable the listener by providing `false`.
107
106
  * @default 'onTouchEnd'
108
107
  */
109
- touchEvent: n.oneOf(["onTouchEnd", "onTouchStart", !1])
108
+ touchEvent: e.oneOf(["onTouchEnd", "onTouchStart", !1])
110
109
  });
111
- process.env.NODE_ENV !== "production" && (T.propTypes = ge(T.propTypes));
112
- function ye(e = {}) {
110
+ process.env.NODE_ENV !== "production" && (M.propTypes = Se(M.propTypes));
111
+ function Me(t = {}) {
113
112
  const {
114
- autoHideDuration: t = null,
115
- disableWindowBlurListener: a = !1,
113
+ autoHideDuration: n = null,
114
+ disableWindowBlurListener: l = !1,
116
115
  onClose: o,
117
116
  open: p,
118
- resumeHideDuration: d
119
- } = e, b = ae();
120
- h.useEffect(() => {
117
+ resumeHideDuration: f
118
+ } = t, h = we();
119
+ y.useEffect(() => {
121
120
  if (!p)
122
121
  return;
123
122
  function r(s) {
@@ -127,41 +126,41 @@ function ye(e = {}) {
127
126
  document.removeEventListener("keydown", r);
128
127
  };
129
128
  }, [p, o]);
130
- const f = D((r, s) => {
129
+ const d = N((r, s) => {
131
130
  o == null || o(r, s);
132
- }), v = D((r) => {
133
- !o || r == null || b.start(r, () => {
134
- f(null, "timeout");
131
+ }), b = N((r) => {
132
+ !o || r == null || h.start(r, () => {
133
+ d(null, "timeout");
135
134
  });
136
135
  });
137
- h.useEffect(() => (p && v(t), b.clear), [p, t, v, b]);
138
- const y = (r) => {
136
+ y.useEffect(() => (p && b(n), h.clear), [p, n, b, h]);
137
+ const k = (r) => {
139
138
  o == null || o(r, "clickaway");
140
- }, u = b.clear, m = h.useCallback(() => {
141
- t != null && v(d ?? t * 0.5);
142
- }, [t, d, v]), w = (r) => (s) => {
143
- const l = r.onBlur;
144
- l == null || l(s), m();
145
- }, E = (r) => (s) => {
146
- const l = r.onFocus;
147
- l == null || l(s), u();
139
+ }, u = h.clear, m = y.useCallback(() => {
140
+ n != null && b(f ?? n * 0.5);
141
+ }, [n, f, b]), S = (r) => (s) => {
142
+ const c = r.onBlur;
143
+ c == null || c(s), m();
144
+ }, T = (r) => (s) => {
145
+ const c = r.onFocus;
146
+ c == null || c(s), u();
148
147
  }, i = (r) => (s) => {
149
- const l = r.onMouseEnter;
150
- l == null || l(s), u();
151
- }, c = (r) => (s) => {
152
- const l = r.onMouseLeave;
153
- l == null || l(s), m();
148
+ const c = r.onMouseEnter;
149
+ c == null || c(s), u();
150
+ }, a = (r) => (s) => {
151
+ const c = r.onMouseLeave;
152
+ c == null || c(s), m();
154
153
  };
155
- return h.useEffect(() => {
156
- if (!a && p)
154
+ return y.useEffect(() => {
155
+ if (!l && p)
157
156
  return window.addEventListener("focus", m), window.addEventListener("blur", u), () => {
158
157
  window.removeEventListener("focus", m), window.removeEventListener("blur", u);
159
158
  };
160
- }, [a, p, m, u]), {
159
+ }, [l, p, m, u]), {
161
160
  getRootProps: (r = {}) => {
162
161
  const s = {
163
- ...U(e),
164
- ...U(r)
162
+ ...G(t),
163
+ ...G(r)
165
164
  };
166
165
  return {
167
166
  // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
@@ -169,98 +168,93 @@ function ye(e = {}) {
169
168
  role: "presentation",
170
169
  ...r,
171
170
  ...s,
172
- onBlur: w(s),
173
- onFocus: E(s),
171
+ onBlur: S(s),
172
+ onFocus: T(s),
174
173
  onMouseEnter: i(s),
175
- onMouseLeave: c(s)
174
+ onMouseLeave: a(s)
176
175
  };
177
176
  },
178
- onClickAway: y
177
+ onClickAway: k
179
178
  };
180
179
  }
181
- function ke(e) {
182
- return I("MuiSnackbarContent", e);
180
+ function Ae(t) {
181
+ return X("MuiSnackbarContent", t);
183
182
  }
184
- W("MuiSnackbarContent", ["root", "message", "action"]);
185
- const Ee = (e) => {
183
+ K("MuiSnackbarContent", ["root", "message", "action"]);
184
+ const De = (t) => {
186
185
  const {
187
- classes: t
188
- } = e;
189
- return G({
186
+ classes: n
187
+ } = t;
188
+ return Q({
190
189
  root: ["root"],
191
190
  action: ["action"],
192
191
  message: ["message"]
193
- }, ke, t);
194
- }, we = R(he, {
192
+ }, Ae, n);
193
+ }, je = A(Oe, {
195
194
  name: "MuiSnackbarContent",
196
- slot: "Root",
197
- overridesResolver: (e, t) => t.root
198
- })(q(({
199
- theme: e
195
+ slot: "Root"
196
+ })(Y(({
197
+ theme: t
200
198
  }) => {
201
- const t = e.palette.mode === "light" ? 0.8 : 0.98, a = ie(e.palette.background.default, t);
199
+ const n = t.palette.mode === "light" ? 0.8 : 0.98;
202
200
  return {
203
- ...e.typography.body2,
204
- color: e.vars ? e.vars.palette.SnackbarContent.color : e.palette.getContrastText(a),
205
- backgroundColor: e.vars ? e.vars.palette.SnackbarContent.bg : a,
201
+ ...t.typography.body2,
202
+ color: t.vars ? t.vars.palette.SnackbarContent.color : t.palette.getContrastText($(t.palette.background.default, n)),
203
+ backgroundColor: t.vars ? t.vars.palette.SnackbarContent.bg : $(t.palette.background.default, n),
206
204
  display: "flex",
207
205
  alignItems: "center",
208
206
  flexWrap: "wrap",
209
207
  padding: "6px 16px",
210
- borderRadius: (e.vars || e).shape.borderRadius,
211
208
  flexGrow: 1,
212
- [e.breakpoints.up("sm")]: {
209
+ [t.breakpoints.up("sm")]: {
213
210
  flexGrow: "initial",
214
211
  minWidth: 288
215
212
  }
216
213
  };
217
- })), Ce = R("div", {
214
+ })), He = A("div", {
218
215
  name: "MuiSnackbarContent",
219
- slot: "Message",
220
- overridesResolver: (e, t) => t.message
216
+ slot: "Message"
221
217
  })({
222
218
  padding: "8px 0"
223
- }), Se = R("div", {
219
+ }), Ne = A("div", {
224
220
  name: "MuiSnackbarContent",
225
- slot: "Action",
226
- overridesResolver: (e, t) => t.action
221
+ slot: "Action"
227
222
  })({
228
223
  display: "flex",
229
224
  alignItems: "center",
230
225
  marginLeft: "auto",
231
226
  paddingLeft: 16,
232
227
  marginRight: -8
233
- }), V = /* @__PURE__ */ h.forwardRef(function(t, a) {
234
- const o = $({
235
- props: t,
228
+ }), Z = /* @__PURE__ */ y.forwardRef(function(n, l) {
229
+ const o = J({
230
+ props: n,
236
231
  name: "MuiSnackbarContent"
237
232
  }), {
238
233
  action: p,
239
- className: d,
240
- message: b,
241
- role: f = "alert",
242
- ...v
243
- } = o, y = o, u = Ee(y);
244
- return /* @__PURE__ */ se(we, {
245
- role: f,
246
- square: !0,
234
+ className: f,
235
+ message: h,
236
+ role: d = "alert",
237
+ ...b
238
+ } = o, k = o, u = De(k);
239
+ return /* @__PURE__ */ ke(je, {
240
+ role: d,
247
241
  elevation: 6,
248
- className: le(u.root, d),
249
- ownerState: y,
250
- ref: a,
251
- ...v,
252
- children: [/* @__PURE__ */ k(Ce, {
242
+ className: Pe(u.root, f),
243
+ ownerState: k,
244
+ ref: l,
245
+ ...b,
246
+ children: [/* @__PURE__ */ v(He, {
253
247
  className: u.message,
254
- ownerState: y,
255
- children: b
256
- }), p ? /* @__PURE__ */ k(Se, {
248
+ ownerState: k,
249
+ children: h
250
+ }), p ? /* @__PURE__ */ v(Ne, {
257
251
  className: u.action,
258
- ownerState: y,
252
+ ownerState: k,
259
253
  children: p
260
254
  }) : null]
261
255
  });
262
256
  });
263
- process.env.NODE_ENV !== "production" && (V.propTypes = {
257
+ process.env.NODE_ENV !== "production" && (Z.propTypes = {
264
258
  // ┌────────────────────────────── Warning ──────────────────────────────┐
265
259
  // │ These PropTypes are generated from the TypeScript type definitions. │
266
260
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -268,54 +262,54 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
268
262
  /**
269
263
  * The action to display. It renders after the message, at the end of the snackbar.
270
264
  */
271
- action: n.node,
265
+ action: e.node,
272
266
  /**
273
267
  * Override or extend the styles applied to the component.
274
268
  */
275
- classes: n.object,
269
+ classes: e.object,
276
270
  /**
277
271
  * @ignore
278
272
  */
279
- className: n.string,
273
+ className: e.string,
280
274
  /**
281
275
  * The message to display.
282
276
  */
283
- message: n.node,
277
+ message: e.node,
284
278
  /**
285
279
  * The ARIA role attribute of the element.
286
280
  * @default 'alert'
287
281
  */
288
- role: n.string,
282
+ role: e.string,
289
283
  /**
290
284
  * The system prop that allows defining system overrides as well as additional CSS styles.
291
285
  */
292
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
286
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
293
287
  });
294
- function Te(e) {
295
- return I("MuiSnackbar", e);
288
+ function ze(t) {
289
+ return X("MuiSnackbar", t);
296
290
  }
297
- W("MuiSnackbar", ["root", "anchorOriginTopCenter", "anchorOriginBottomCenter", "anchorOriginTopRight", "anchorOriginBottomRight", "anchorOriginTopLeft", "anchorOriginBottomLeft"]);
298
- const Re = (e) => {
291
+ K("MuiSnackbar", ["root", "anchorOriginTopCenter", "anchorOriginBottomCenter", "anchorOriginTopRight", "anchorOriginBottomRight", "anchorOriginTopLeft", "anchorOriginBottomLeft"]);
292
+ const Be = (t) => {
299
293
  const {
300
- classes: t,
301
- anchorOrigin: a
302
- } = e, o = {
303
- root: ["root", `anchorOrigin${S(a.vertical)}${S(a.horizontal)}`]
294
+ classes: n,
295
+ anchorOrigin: l
296
+ } = t, o = {
297
+ root: ["root", `anchorOrigin${x(l.vertical)}${x(l.horizontal)}`]
304
298
  };
305
- return G(o, Te, t);
306
- }, F = R("div", {
299
+ return Q(o, ze, n);
300
+ }, Ue = A("div", {
307
301
  name: "MuiSnackbar",
308
302
  slot: "Root",
309
- overridesResolver: (e, t) => {
303
+ overridesResolver: (t, n) => {
310
304
  const {
311
- ownerState: a
312
- } = e;
313
- return [t.root, t[`anchorOrigin${S(a.anchorOrigin.vertical)}${S(a.anchorOrigin.horizontal)}`]];
305
+ ownerState: l
306
+ } = t;
307
+ return [n.root, n[`anchorOrigin${x(l.anchorOrigin.vertical)}${x(l.anchorOrigin.horizontal)}`]];
314
308
  }
315
- })(q(({
316
- theme: e
309
+ })(Y(({
310
+ theme: t
317
311
  }) => ({
318
- zIndex: (e.vars || e).zIndex.snackbar,
312
+ zIndex: (t.vars || t).zIndex.snackbar,
319
313
  position: "fixed",
320
314
  display: "flex",
321
315
  left: 8,
@@ -324,148 +318,199 @@ const Re = (e) => {
324
318
  alignItems: "center",
325
319
  variants: [{
326
320
  props: ({
327
- ownerState: t
328
- }) => t.anchorOrigin.vertical === "top",
321
+ ownerState: n
322
+ }) => n.anchorOrigin.vertical === "top",
329
323
  style: {
330
324
  top: 8,
331
- [e.breakpoints.up("sm")]: {
325
+ [t.breakpoints.up("sm")]: {
332
326
  top: 24
333
327
  }
334
328
  }
335
329
  }, {
336
330
  props: ({
337
- ownerState: t
338
- }) => t.anchorOrigin.vertical !== "top",
331
+ ownerState: n
332
+ }) => n.anchorOrigin.vertical !== "top",
339
333
  style: {
340
334
  bottom: 8,
341
- [e.breakpoints.up("sm")]: {
335
+ [t.breakpoints.up("sm")]: {
342
336
  bottom: 24
343
337
  }
344
338
  }
345
339
  }, {
346
340
  props: ({
347
- ownerState: t
348
- }) => t.anchorOrigin.horizontal === "left",
341
+ ownerState: n
342
+ }) => n.anchorOrigin.horizontal === "left",
349
343
  style: {
350
344
  justifyContent: "flex-start",
351
- [e.breakpoints.up("sm")]: {
345
+ [t.breakpoints.up("sm")]: {
352
346
  left: 24,
353
347
  right: "auto"
354
348
  }
355
349
  }
356
350
  }, {
357
351
  props: ({
358
- ownerState: t
359
- }) => t.anchorOrigin.horizontal === "right",
352
+ ownerState: n
353
+ }) => n.anchorOrigin.horizontal === "right",
360
354
  style: {
361
355
  justifyContent: "flex-end",
362
- [e.breakpoints.up("sm")]: {
356
+ [t.breakpoints.up("sm")]: {
363
357
  right: 24,
364
358
  left: "auto"
365
359
  }
366
360
  }
367
361
  }, {
368
362
  props: ({
369
- ownerState: t
370
- }) => t.anchorOrigin.horizontal === "center",
363
+ ownerState: n
364
+ }) => n.anchorOrigin.horizontal === "center",
371
365
  style: {
372
- [e.breakpoints.up("sm")]: {
366
+ [t.breakpoints.up("sm")]: {
373
367
  left: "50%",
374
368
  right: "auto",
375
369
  transform: "translateX(-50%)"
376
370
  }
377
371
  }
378
372
  }]
379
- }))), X = /* @__PURE__ */ h.forwardRef(function(t, a) {
380
- const o = $({
381
- props: t,
373
+ }))), ee = /* @__PURE__ */ y.forwardRef(function(n, l) {
374
+ const o = J({
375
+ props: n,
382
376
  name: "MuiSnackbar"
383
- }), p = ce(), d = {
377
+ }), p = ve(), f = {
384
378
  enter: p.transitions.duration.enteringScreen,
385
379
  exit: p.transitions.duration.leavingScreen
386
380
  }, {
387
- action: b,
381
+ action: h,
388
382
  anchorOrigin: {
389
- vertical: f,
390
- horizontal: v
383
+ vertical: d,
384
+ horizontal: b
391
385
  } = {
392
386
  vertical: "bottom",
393
387
  horizontal: "left"
394
388
  },
395
- autoHideDuration: y = null,
389
+ autoHideDuration: k = null,
396
390
  children: u,
397
391
  className: m,
398
- ClickAwayListenerProps: w,
399
- ContentProps: E,
392
+ ClickAwayListenerProps: S,
393
+ ContentProps: T,
400
394
  disableWindowBlurListener: i = !1,
401
- message: c,
395
+ message: a,
402
396
  onBlur: g,
403
397
  onClose: r,
404
398
  onFocus: s,
405
- onMouseEnter: l,
406
- onMouseLeave: Me,
407
- open: A,
408
- resumeHideDuration: De,
409
- TransitionComponent: N = pe,
410
- transitionDuration: H = d,
399
+ onMouseEnter: c,
400
+ onMouseLeave: qe,
401
+ open: z,
402
+ resumeHideDuration: $e,
403
+ slots: B = {},
404
+ slotProps: te = {},
405
+ TransitionComponent: U,
406
+ transitionDuration: F = f,
411
407
  TransitionProps: {
412
- onEnter: j,
413
- onExited: z,
414
- ...K
408
+ onEnter: _,
409
+ onExited: I,
410
+ ...ne
415
411
  } = {},
416
- ...Y
417
- } = o, x = {
412
+ ...oe
413
+ } = o, P = {
418
414
  ...o,
419
415
  anchorOrigin: {
420
- vertical: f,
421
- horizontal: v
416
+ vertical: d,
417
+ horizontal: b
422
418
  },
423
- autoHideDuration: y,
419
+ autoHideDuration: k,
424
420
  disableWindowBlurListener: i,
425
- TransitionComponent: N,
426
- transitionDuration: H
427
- }, J = Re(x), {
428
- getRootProps: Q,
429
- onClickAway: Z
430
- } = ye({
431
- ...x
432
- }), [ee, B] = h.useState(!0), ne = ue({
433
- elementType: F,
434
- getSlotProps: Q,
435
- externalForwardedProps: Y,
436
- ownerState: x,
421
+ TransitionComponent: U,
422
+ transitionDuration: F
423
+ }, re = Be(P), {
424
+ getRootProps: se,
425
+ onClickAway: ie
426
+ } = Me({
427
+ ...P
428
+ }), [ae, W] = y.useState(!0), ce = (w) => {
429
+ W(!0), I && I(w);
430
+ }, le = (w, E) => {
431
+ W(!1), _ && _(w, E);
432
+ }, R = {
433
+ slots: {
434
+ transition: U,
435
+ ...B
436
+ },
437
+ slotProps: {
438
+ content: T,
439
+ clickAwayListener: S,
440
+ transition: ne,
441
+ ...te
442
+ }
443
+ }, [ue, pe] = L("root", {
444
+ ref: l,
445
+ className: [re.root, m],
446
+ elementType: Ue,
447
+ getSlotProps: se,
448
+ externalForwardedProps: {
449
+ ...R,
450
+ ...oe
451
+ },
452
+ ownerState: P
453
+ }), [fe, {
454
+ ownerState: de,
455
+ ...me
456
+ }] = L("clickAwayListener", {
457
+ elementType: M,
458
+ externalForwardedProps: R,
459
+ getSlotProps: (w) => ({
460
+ onClickAway: (...E) => {
461
+ var q;
462
+ const C = E[0];
463
+ (q = w.onClickAway) == null || q.call(w, ...E), !(C != null && C.defaultMuiPrevented) && ie(...E);
464
+ }
465
+ }),
466
+ ownerState: P
467
+ }), [ge, ye] = L("content", {
468
+ elementType: Z,
469
+ shouldForwardComponentProp: !0,
470
+ externalForwardedProps: R,
437
471
  additionalProps: {
438
- ref: a
472
+ message: a,
473
+ action: h
439
474
  },
440
- className: [J.root, m]
441
- }), te = (L) => {
442
- B(!0), z && z(L);
443
- }, oe = (L, re) => {
444
- B(!1), j && j(L, re);
445
- };
446
- return !A && ee ? null : /* @__PURE__ */ k(T, {
447
- onClickAway: Z,
448
- ...w,
449
- children: /* @__PURE__ */ k(F, {
450
- ...ne,
451
- children: /* @__PURE__ */ k(N, {
452
- appear: !0,
453
- in: A,
454
- timeout: H,
455
- direction: f === "top" ? "down" : "up",
456
- onEnter: oe,
457
- onExited: te,
458
- ...K,
459
- children: u || /* @__PURE__ */ k(V, {
460
- message: c,
461
- action: b,
462
- ...E
475
+ ownerState: P
476
+ }), [he, be] = L("transition", {
477
+ elementType: Re,
478
+ externalForwardedProps: R,
479
+ getSlotProps: (w) => ({
480
+ onEnter: (...E) => {
481
+ var C;
482
+ (C = w.onEnter) == null || C.call(w, ...E), le(...E);
483
+ },
484
+ onExited: (...E) => {
485
+ var C;
486
+ (C = w.onExited) == null || C.call(w, ...E), ce(...E);
487
+ }
488
+ }),
489
+ additionalProps: {
490
+ appear: !0,
491
+ in: z,
492
+ timeout: F,
493
+ direction: d === "top" ? "down" : "up"
494
+ },
495
+ ownerState: P
496
+ });
497
+ return !z && ae ? null : /* @__PURE__ */ v(fe, {
498
+ ...me,
499
+ ...B.clickAwayListener && {
500
+ ownerState: de
501
+ },
502
+ children: /* @__PURE__ */ v(ue, {
503
+ ...pe,
504
+ children: /* @__PURE__ */ v(he, {
505
+ ...be,
506
+ children: u || /* @__PURE__ */ v(ge, {
507
+ ...ye
463
508
  })
464
509
  })
465
510
  })
466
511
  });
467
512
  });
468
- process.env.NODE_ENV !== "production" && (X.propTypes = {
513
+ process.env.NODE_ENV !== "production" && (ee.propTypes = {
469
514
  // ┌────────────────────────────── Warning ──────────────────────────────┐
470
515
  // │ These PropTypes are generated from the TypeScript type definitions. │
471
516
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -473,16 +518,16 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
473
518
  /**
474
519
  * The action to display. It renders after the message, at the end of the snackbar.
475
520
  */
476
- action: n.node,
521
+ action: e.node,
477
522
  /**
478
523
  * The anchor of the `Snackbar`.
479
524
  * On smaller screens, the component grows to occupy all the available width,
480
525
  * the horizontal alignment is ignored.
481
526
  * @default { vertical: 'bottom', horizontal: 'left' }
482
527
  */
483
- anchorOrigin: n.shape({
484
- horizontal: n.oneOf(["center", "left", "right"]).isRequired,
485
- vertical: n.oneOf(["bottom", "top"]).isRequired
528
+ anchorOrigin: e.shape({
529
+ horizontal: e.oneOf(["center", "left", "right"]).isRequired,
530
+ vertical: e.oneOf(["bottom", "top"]).isRequired
486
531
  }),
487
532
  /**
488
533
  * The number of milliseconds to wait before automatically calling the
@@ -491,32 +536,34 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
491
536
  * the `null` value.
492
537
  * @default null
493
538
  */
494
- autoHideDuration: n.number,
539
+ autoHideDuration: e.number,
495
540
  /**
496
541
  * Replace the `SnackbarContent` component.
497
542
  */
498
- children: n.element,
543
+ children: e.element,
499
544
  /**
500
545
  * Override or extend the styles applied to the component.
501
546
  */
502
- classes: n.object,
547
+ classes: e.object,
503
548
  /**
504
549
  * @ignore
505
550
  */
506
- className: n.string,
551
+ className: e.string,
507
552
  /**
508
553
  * Props applied to the `ClickAwayListener` element.
554
+ * @deprecated Use `slotProps.clickAwayListener` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
509
555
  */
510
- ClickAwayListenerProps: n.object,
556
+ ClickAwayListenerProps: e.object,
511
557
  /**
512
558
  * Props applied to the [`SnackbarContent`](https://mui.com/material-ui/api/snackbar-content/) element.
559
+ * @deprecated Use `slotProps.content` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
513
560
  */
514
- ContentProps: n.object,
561
+ ContentProps: e.object,
515
562
  /**
516
563
  * If `true`, the `autoHideDuration` timer will expire even if the window is not focused.
517
564
  * @default false
518
565
  */
519
- disableWindowBlurListener: n.bool,
566
+ disableWindowBlurListener: e.bool,
520
567
  /**
521
568
  * When displaying multiple consecutive snackbars using a single parent-rendered
522
569
  * `<Snackbar/>`, add the `key` prop to ensure independent treatment of each message.
@@ -527,11 +574,11 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
527
574
  /**
528
575
  * The message to display.
529
576
  */
530
- message: n.node,
577
+ message: e.node,
531
578
  /**
532
579
  * @ignore
533
580
  */
534
- onBlur: n.func,
581
+ onBlur: e.func,
535
582
  /**
536
583
  * Callback fired when the component requests to be closed.
537
584
  * Typically `onClose` is used to set state in the parent component,
@@ -542,40 +589,67 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
542
589
  * @param {React.SyntheticEvent<any> | Event} event The event source of the callback.
543
590
  * @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`, or `"escapeKeyDown"`.
544
591
  */
545
- onClose: n.func,
592
+ onClose: e.func,
546
593
  /**
547
594
  * @ignore
548
595
  */
549
- onFocus: n.func,
596
+ onFocus: e.func,
550
597
  /**
551
598
  * @ignore
552
599
  */
553
- onMouseEnter: n.func,
600
+ onMouseEnter: e.func,
554
601
  /**
555
602
  * @ignore
556
603
  */
557
- onMouseLeave: n.func,
604
+ onMouseLeave: e.func,
558
605
  /**
559
606
  * If `true`, the component is shown.
560
607
  */
561
- open: n.bool,
608
+ open: e.bool,
562
609
  /**
563
610
  * The number of milliseconds to wait before dismissing after user interaction.
564
611
  * If `autoHideDuration` prop isn't specified, it does nothing.
565
612
  * If `autoHideDuration` prop is specified but `resumeHideDuration` isn't,
566
613
  * we default to `autoHideDuration / 2` ms.
567
614
  */
568
- resumeHideDuration: n.number,
615
+ resumeHideDuration: e.number,
616
+ /**
617
+ * The props used for each slot inside.
618
+ * @default {}
619
+ */
620
+ slotProps: e.shape({
621
+ clickAwayListener: e.oneOfType([e.func, e.shape({
622
+ children: e.element.isRequired,
623
+ disableReactTree: e.bool,
624
+ mouseEvent: e.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
625
+ onClickAway: e.func,
626
+ touchEvent: e.oneOf(["onTouchEnd", "onTouchStart", !1])
627
+ })]),
628
+ content: e.oneOfType([e.func, e.object]),
629
+ root: e.oneOfType([e.func, e.object]),
630
+ transition: e.oneOfType([e.func, e.object])
631
+ }),
632
+ /**
633
+ * The components used for each slot inside.
634
+ * @default {}
635
+ */
636
+ slots: e.shape({
637
+ clickAwayListener: e.elementType,
638
+ content: e.elementType,
639
+ root: e.elementType,
640
+ transition: e.elementType
641
+ }),
569
642
  /**
570
643
  * The system prop that allows defining system overrides as well as additional CSS styles.
571
644
  */
572
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
645
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
573
646
  /**
574
647
  * The component used for the transition.
575
648
  * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
649
+ * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
576
650
  * @default Grow
577
651
  */
578
- TransitionComponent: n.elementType,
652
+ TransitionComponent: e.elementType,
579
653
  /**
580
654
  * The duration for the transition, in milliseconds.
581
655
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -584,56 +658,57 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
584
658
  * exit: theme.transitions.duration.leavingScreen,
585
659
  * }
586
660
  */
587
- transitionDuration: n.oneOfType([n.number, n.shape({
588
- appear: n.number,
589
- enter: n.number,
590
- exit: n.number
661
+ transitionDuration: e.oneOfType([e.number, e.shape({
662
+ appear: e.number,
663
+ enter: e.number,
664
+ exit: e.number
591
665
  })]),
592
666
  /**
593
667
  * Props applied to the transition element.
594
668
  * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
669
+ * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
595
670
  * @default {}
596
671
  */
597
- TransitionProps: n.object
672
+ TransitionProps: e.object
598
673
  });
599
- const Oe = (e) => /* @__PURE__ */ k(O, { ...e, direction: "left" }), xe = (e) => /* @__PURE__ */ k(O, { ...e, direction: "right" }), Le = (e) => /* @__PURE__ */ k(O, { ...e, direction: "up" }), Pe = (e) => /* @__PURE__ */ k(O, { ...e, direction: "down" }), Xe = () => {
600
- const [e, t] = C(!1), [a, o] = C(""), [p, d] = C(2e3), [b, f] = C("error"), [v, y] = C({ vertical: "top", horizontal: "right" }), [u, m] = C("left"), w = P(
674
+ const Fe = (t) => /* @__PURE__ */ v(D, { ...t, direction: "left" }), _e = (t) => /* @__PURE__ */ v(D, { ...t, direction: "right" }), Ie = (t) => /* @__PURE__ */ v(D, { ...t, direction: "up" }), We = (t) => /* @__PURE__ */ v(D, { ...t, direction: "down" }), ct = () => {
675
+ const [t, n] = O(!1), [l, o] = O(""), [p, f] = O(2e3), [h, d] = O("error"), [b, k] = O({ vertical: "top", horizontal: "right" }), [u, m] = O("left"), S = j(
601
676
  ({
602
- message: c,
677
+ message: a,
603
678
  type: g = "error",
604
679
  duration: r = 3e3,
605
680
  animationDirection: s = "left",
606
- position: l = { vertical: "top", horizontal: "right" }
681
+ position: c = { vertical: "top", horizontal: "right" }
607
682
  }) => {
608
- o(c), f(g), d(r), y(l), m(s), t(!0);
683
+ o(a), d(g), f(r), k(c), m(s), n(!0);
609
684
  },
610
685
  []
611
- ), E = P(
612
- (c, g) => {
613
- g !== "clickaway" && t(!1);
686
+ ), T = j(
687
+ (a, g) => {
688
+ g !== "clickaway" && n(!1);
614
689
  },
615
690
  []
616
- ), i = P(
617
- (c, g) => {
618
- g !== "clickaway" && t(!1);
691
+ ), i = j(
692
+ (a, g) => {
693
+ g !== "clickaway" && n(!1);
619
694
  },
620
695
  []
621
696
  );
622
697
  return {
623
- showAlertMessage: w,
624
- snackBar: /* @__PURE__ */ k(
625
- X,
698
+ showAlertMessage: S,
699
+ snackBar: /* @__PURE__ */ v(
700
+ ee,
626
701
  {
627
- anchorOrigin: v,
702
+ anchorOrigin: b,
628
703
  autoHideDuration: p,
629
- open: e,
704
+ open: t,
630
705
  onClose: i,
631
- TransitionComponent: u === "left" ? Oe : u === "right" ? xe : u === "up" ? Le : Pe,
632
- children: /* @__PURE__ */ k(be, { variant: "filled", onClose: E, severity: b, children: /* @__PURE__ */ k("div", { dangerouslySetInnerHTML: { __html: a } }) })
706
+ TransitionComponent: u === "left" ? Fe : u === "right" ? _e : u === "up" ? Ie : We,
707
+ children: /* @__PURE__ */ v(Le, { variant: "filled", onClose: T, severity: h, children: /* @__PURE__ */ v("div", { dangerouslySetInnerHTML: { __html: l } }) })
633
708
  }
634
709
  )
635
710
  };
636
711
  };
637
712
  export {
638
- Xe as useSnackBar
713
+ ct as useSnackBar
639
714
  };