everest-npm-features 0.0.61 → 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 (229) 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-Bjz9LxhD.js → PlayArrow-BVDyfxsQ.js} +1 -1
  9. package/dist/Portal-BeS9yJCZ.js +968 -0
  10. package/dist/{auth-Cwq6nfwY.js → auth-DTJdu6mq.js} +10 -10
  11. package/dist/components/RocketRamp/MinimalKyc/form.js +45 -50
  12. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  13. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +4 -6
  14. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -6
  15. package/dist/components/RocketRamp/Player/Buy/form.js +6 -15
  16. package/dist/components/RocketRamp/Player/Buy/index.js +3 -3
  17. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  18. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  19. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  20. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +4 -9
  21. package/dist/components/RocketRamp/Player/Sell/form.js +6 -15
  22. package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
  23. package/dist/components/RocketRamp/Player/SignIn/index.js +22 -24
  24. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +32 -34
  25. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +30 -32
  26. package/dist/components/RocketRamp/Player/SignUp/email.js +20 -22
  27. package/dist/components/RocketRamp/Player/SignUp/index.js +48 -51
  28. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +67 -73
  29. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  30. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  31. package/dist/components/RocketRamp/ResetPassword/index.js +22 -24
  32. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  33. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  34. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  35. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  36. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  37. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  38. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  39. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  40. package/dist/components/RocketRamp/Store/SignUp/index.js +52 -55
  41. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +47 -53
  42. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +32 -36
  43. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  44. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  45. package/dist/components/RocketRamp/Transactions/index.js +22 -23
  46. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  47. package/dist/components/Shared/FullKyc/edd.js +50 -52
  48. package/dist/components/Shared/FullKyc/index.js +11 -9
  49. package/dist/components/Shared/FullKyc/pep.js +35 -43
  50. package/dist/components/Shared/FullKyc/personalDetails.js +5 -5
  51. package/dist/components/Shared/FullKyc/userInfo.js +6 -11
  52. package/dist/components/Shared/HistoryItem/index.js +43 -48
  53. package/dist/components/Shared/Incode/index.js +31 -35
  54. package/dist/components/Shared/MinimalKyc/index.js +59 -64
  55. package/dist/components/Shared/Sumsub/index.js +74 -61
  56. package/dist/components/Shared/loader.js +4 -5
  57. package/dist/components/Shared/tooltip.js +2 -2
  58. package/dist/components/Shared/transition.js +4 -4
  59. package/dist/components/Wallet/Account/createIban.js +34 -37
  60. package/dist/components/Wallet/Account/eWallet.js +35 -39
  61. package/dist/components/Wallet/Account/iban.js +49 -53
  62. package/dist/components/Wallet/Account/ibanItem.js +68 -73
  63. package/dist/components/Wallet/Account/index.js +66 -73
  64. package/dist/components/Wallet/Account/sendIban.js +79 -88
  65. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -8
  66. package/dist/components/Wallet/Buy/form.js +6 -16
  67. package/dist/components/Wallet/Buy/index.js +2 -2
  68. package/dist/components/Wallet/Deposit/index.js +15 -17
  69. package/dist/components/Wallet/EnterpriseKyc/edd.js +31 -32
  70. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  71. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  72. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  73. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  74. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  75. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3590 -1481
  77. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  78. package/dist/components/Wallet/EnterpriseKyc/verify.js +21 -21
  79. package/dist/components/Wallet/History/index.js +22 -796
  80. package/dist/components/Wallet/Home/index.js +13 -14
  81. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +91 -96
  82. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  83. package/dist/components/Wallet/Portfolio/index.js +47 -50
  84. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  85. package/dist/components/Wallet/Profile/documents.js +125 -134
  86. package/dist/components/Wallet/Profile/index.js +37 -42
  87. package/dist/components/Wallet/Profile/storage.js +39 -47
  88. package/dist/components/Wallet/Receive/index.js +31 -36
  89. package/dist/components/Wallet/Sell/confirmTransaction.js +6 -8
  90. package/dist/components/Wallet/Sell/form.js +6 -16
  91. package/dist/components/Wallet/Sell/index.js +2 -2
  92. package/dist/components/Wallet/Send/index.js +98 -107
  93. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  94. package/dist/components/Wallet/Shared/Auth/otpForm.js +8 -355
  95. package/dist/components/Wallet/Shared/BankSelect/index.js +44 -48
  96. package/dist/components/Wallet/Shared/CardCorp/index.js +17 -18
  97. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  98. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  99. package/dist/components/Wallet/Shared/Container/index.js +15 -16
  100. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  101. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  102. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  103. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  104. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  105. package/dist/components/Wallet/Shared/addBank.js +40 -44
  106. package/dist/components/Wallet/Shared/appButton.js +11 -15
  107. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  108. package/dist/components/Wallet/Shared/button.js +7 -7
  109. package/dist/components/Wallet/Shared/connectPlaidBank.js +15 -16
  110. package/dist/components/Wallet/Shared/inputField.js +5 -5
  111. package/dist/components/Wallet/Shared/manualSend.js +7 -11
  112. package/dist/components/Wallet/Shared/noData.js +4 -5
  113. package/dist/components/Wallet/Shared/pin.js +25 -27
  114. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  115. package/dist/components/Wallet/Shared/step.js +12 -13
  116. package/dist/components/Wallet/Shared/timer.js +1 -1
  117. package/dist/components/Wallet/SignIn/index.js +16 -16
  118. package/dist/components/Wallet/SignUp/index.js +62 -152
  119. package/dist/components/Wallet/SignUp/terms.js +1 -1
  120. package/dist/components/Wallet/Stake/gems/index.js +51 -58
  121. package/dist/components/Wallet/Stake/id/index.js +73 -81
  122. package/dist/components/Wallet/Stake/index.js +64 -67
  123. package/dist/components/Wallet/Swap/form.js +8 -17
  124. package/dist/components/Wallet/Swap/index.js +2 -2
  125. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  126. package/dist/components/Wallet/Withdraw/bankSelect.js +40 -44
  127. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -6
  128. package/dist/components/Wallet/Withdraw/form.js +4 -15
  129. package/dist/components/Wallet/Withdraw/index.js +2 -2
  130. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  131. package/dist/hoc/withThemeProvider.js +5 -732
  132. package/dist/hooks/useDialog/index.js +22 -23
  133. package/dist/hooks/useRrDialog/index.js +43 -46
  134. package/dist/hooks/useSnackBar.js +24 -696
  135. package/dist/icons/buyIcon.js +1 -1
  136. package/dist/icons/canceledBuyIcon.js +1 -1
  137. package/dist/icons/canceledRedeemIcon.js +1 -1
  138. package/dist/icons/failedBuyIcon.js +2 -2
  139. package/dist/icons/failedRedeemIcon.js +2 -2
  140. package/dist/icons/pendingBuyIcon.js +1 -1
  141. package/dist/icons/pendingRedeemIcon.js +1 -1
  142. package/dist/icons/redeemIcon.js +1 -1
  143. package/dist/{index-BbVpeed7.js → index-3OQ4M69t.js} +87 -96
  144. package/dist/{index-BHG1bT4t.js → index-BBFbUCRZ.js} +123 -128
  145. package/dist/{index-Dh_ahu-u.js → index-C1WPCgkl.js} +129 -140
  146. package/dist/{index-eEBuSKOo.js → index-CDwzoHu7.js} +124 -134
  147. package/dist/{index-B9oucF3r.js → index-CK4kLRAw.js} +189 -198
  148. package/dist/{index-C7Td5yoW.js → index-CYX3j0V7.js} +172 -181
  149. package/dist/{index-D2JWUPz8.js → index-ILpK4BCB.js} +154 -163
  150. package/dist/main.js +7 -7
  151. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  152. package/dist/otpForm-fiNqeB5H.js +7378 -0
  153. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  154. package/dist/tooltip-BW0UyWw7.js +2129 -0
  155. package/package.json +6 -6
  156. package/dist/Alert-DzsbFW3-.js +0 -369
  157. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  158. package/dist/Avatar-1XklXr4O.js +0 -281
  159. package/dist/Backdrop-CioURPVG.js +0 -359
  160. package/dist/Box-B0YSYLco.js +0 -59
  161. package/dist/Button-Df4vgU24.js +0 -663
  162. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  163. package/dist/CardContent-D9wTdpu-.js +0 -141
  164. package/dist/CircularProgress-xZA3lvba.js +0 -252
  165. package/dist/Close-CxzDL3J-.js +0 -9
  166. package/dist/Container-urNKV7hm.js +0 -181
  167. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  168. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  169. package/dist/DialogContent-BMwlOnbW.js +0 -567
  170. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  171. package/dist/Divider-BShhMFf4.js +0 -297
  172. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  173. package/dist/FormControl-RtZDQMdA.js +0 -258
  174. package/dist/FormControlLabel-BliKW48y.js +0 -519
  175. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  176. package/dist/Grid-CFe3amXO.js +0 -410
  177. package/dist/Grow-CnGtel3u.js +0 -196
  178. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  179. package/dist/IconButton-DHm-hucF.js +0 -297
  180. package/dist/InputAdornment-DMiED3JH.js +0 -173
  181. package/dist/Link-DBA9Yifs.js +0 -266
  182. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  183. package/dist/Menu-DLYFFrEk.js +0 -1239
  184. package/dist/MenuItem-DUdYOJr4.js +0 -271
  185. package/dist/Modal-CFIQ_s3T.js +0 -743
  186. package/dist/Paper-Bgt2WXI6.js +0 -186
  187. package/dist/Popper-BBAoiZKn.js +0 -1409
  188. package/dist/Portal-BMAxiQwe.js +0 -69
  189. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  190. package/dist/Select-CB5yWmyn.js +0 -1886
  191. package/dist/Slide-B9Nw0LZ4.js +0 -235
  192. package/dist/Stack-k55YTxET.js +0 -172
  193. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  194. package/dist/TextField-DPpRUQe3.js +0 -978
  195. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  196. package/dist/Typography-pAaje37G.js +0 -260
  197. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  198. package/dist/clsx-BTaloaeC.js +0 -264
  199. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  200. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  201. package/dist/createTheme-CD19zQB7.js +0 -3825
  202. package/dist/debounce-46wSf_lW.js +0 -15
  203. package/dist/defaultTheme-C35y5cLB.js +0 -5
  204. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  205. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  206. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  207. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  208. package/dist/exactProp-C1Lmtwf_.js +0 -13
  209. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  210. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  211. package/dist/index-B0Z-Gjno.js +0 -22
  212. package/dist/index-DUcLo3x5.js +0 -43
  213. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  214. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  215. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  216. package/dist/memoTheme-yHaPezod.js +0 -15
  217. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  218. package/dist/radioButton-CzlYB0Lh.js +0 -402
  219. package/dist/refType-BsTH3qnM.js +0 -56
  220. package/dist/tooltip-3UvETWtS.js +0 -740
  221. package/dist/useControlled-nm4pBabJ.js +0 -31
  222. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  223. package/dist/useFormControl-CatNKXAi.js +0 -10
  224. package/dist/useId-CK6Kn3Tn.js +0 -21
  225. package/dist/useSlot-CW7SOYlh.js +0 -125
  226. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  227. package/dist/useTheme-BQJ5lp0i.js +0 -11
  228. package/dist/useTheme-S5_DHFsQ.js +0 -17
  229. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -1,736 +1,9 @@
1
- import { jsx as T, jsxs as $e } from "react/jsx-runtime";
2
- import { J as Ge, P as i, K as Ue, S as He, l as Fe, T as A, c as _e, L as Ye, s as ze } from "../createTheme-CD19zQB7.js";
3
- import * as a from "react";
4
- import { R as Be } from "../index-B0Z-Gjno.js";
5
- import { a as De } from "../useTheme-S5_DHFsQ.js";
6
- import { u as Je } from "../useId-CK6Kn3Tn.js";
7
- import { u as Oe } from "../useEnhancedEffect-CJGo-L3B.js";
8
- import { G as Qe, a as We } from "../GlobalStyles-ChMhDfTS.js";
9
- import { e as Pe } from "../exactProp-C1Lmtwf_.js";
10
- import { D as Xe } from "../DefaultPropsProvider-CeF7UYM9.js";
11
- import '../assets/withThemeProvider.css';const oe = /* @__PURE__ */ new Map(), Ze = (e, o) => {
12
- const t = Ue(e);
13
- return t.sheet = new o({
14
- key: t.key,
15
- nonce: t.sheet.nonce,
16
- container: t.sheet.container,
17
- speedy: t.sheet.isSpeedy,
18
- prepend: t.sheet.prepend,
19
- insertionPoint: t.sheet.insertionPoint
20
- }), t;
21
- };
22
- let D;
23
- if (typeof document == "object" && (D = document.querySelector('[name="emotion-insertion-point"]'), !D)) {
24
- D = document.createElement("meta"), D.setAttribute("name", "emotion-insertion-point"), D.setAttribute("content", "");
25
- const e = document.querySelector("head");
26
- e && e.prepend(D);
27
- }
28
- function et(e, o) {
29
- if (e || o) {
30
- class t extends He {
31
- insert(c, r) {
32
- return this.key && this.key.endsWith("global") && (this.before = D), super.insert(c, r);
33
- }
34
- }
35
- const n = Ze({
36
- key: "css",
37
- insertionPoint: e ? D : void 0
38
- }, t);
39
- if (o) {
40
- const s = n.insert;
41
- n.insert = (...c) => (c[1].styles.match(/^@layer\s+[^{]*$/) || (c[1].styles = `@layer mui {${c[1].styles}}`), s(...c));
42
- }
43
- return n;
44
- }
45
- }
46
- function Ve(e) {
47
- const {
48
- injectFirst: o,
49
- enableCssLayer: t,
50
- children: n
51
- } = e, s = a.useMemo(() => {
52
- const c = `${o}-${t}`;
53
- if (typeof document == "object" && oe.has(c))
54
- return oe.get(c);
55
- const r = et(o, t);
56
- return oe.set(c, r), r;
57
- }, [o, t]);
58
- return s ? /* @__PURE__ */ T(Ge, {
59
- value: s,
60
- children: n
61
- }) : n;
62
- }
63
- process.env.NODE_ENV !== "production" && (Ve.propTypes = {
64
- /**
65
- * Your component tree.
66
- */
67
- children: i.node,
68
- /**
69
- * If `true`, the styles are wrapped in `@layer mui`.
70
- * Learn more about [Cascade layers](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers).
71
- */
72
- enableCssLayer: i.bool,
73
- /**
74
- * By default, the styles are injected last in the <head> element of the page.
75
- * As a result, they gain more specificity than any other style sheet.
76
- * If you want to override MUI's styles, set this prop.
77
- */
78
- injectFirst: i.bool
79
- });
80
- const re = /* @__PURE__ */ a.createContext(null);
81
- process.env.NODE_ENV !== "production" && (re.displayName = "ThemeContext");
82
- function se() {
83
- const e = a.useContext(re);
84
- return process.env.NODE_ENV !== "production" && a.useDebugValue(e), e;
85
- }
86
- const tt = typeof Symbol == "function" && Symbol.for, ot = tt ? Symbol.for("mui.nested") : "__THEME_NESTED__";
87
- function nt(e, o) {
88
- if (typeof o == "function") {
89
- const t = o(e);
90
- return process.env.NODE_ENV !== "production" && (t || console.error(["MUI: You should return an object from your theme function, i.e.", "<ThemeProvider theme={() => ({})} />"].join(`
91
- `))), t;
92
- }
93
- return {
94
- ...e,
95
- ...o
96
- };
97
- }
98
- function z(e) {
99
- const {
100
- children: o,
101
- theme: t
102
- } = e, n = se();
103
- process.env.NODE_ENV !== "production" && n === null && typeof t == "function" && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
104
- `));
105
- const s = a.useMemo(() => {
106
- const c = n === null ? {
107
- ...t
108
- } : nt(n, t);
109
- return c != null && (c[ot] = n !== null), c;
110
- }, [t, n]);
111
- return /* @__PURE__ */ T(re.Provider, {
112
- value: s,
113
- children: o
114
- });
115
- }
116
- process.env.NODE_ENV !== "production" && (z.propTypes = {
117
- /**
118
- * Your component tree.
119
- */
120
- children: i.node,
121
- /**
122
- * A theme object. You can provide a function to extend the outer theme.
123
- */
124
- theme: i.oneOfType([i.object, i.func]).isRequired
125
- });
126
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (z.propTypes = Pe(z.propTypes));
127
- function rt(e) {
128
- const o = De(), t = Je() || "", {
129
- modularCssLayers: n
130
- } = e;
131
- let s = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
132
- return !n || o !== null ? s = "" : typeof n == "string" ? s = n.replace(/mui(?!\.)/g, s) : s = `@layer ${s};`, Oe(() => {
133
- var h, p;
134
- const c = document.querySelector("head");
135
- if (!c)
136
- return;
137
- const r = c.firstChild;
138
- if (s) {
139
- if (r && ((h = r.hasAttribute) != null && h.call(r, "data-mui-layer-order")) && r.getAttribute("data-mui-layer-order") === t)
140
- return;
141
- const C = document.createElement("style");
142
- C.setAttribute("data-mui-layer-order", t), C.textContent = s, c.prepend(C);
143
- } else
144
- (p = c.querySelector(`style[data-mui-layer-order="${t}"]`)) == null || p.remove();
145
- }, [s, t]), s ? /* @__PURE__ */ T(Qe, {
146
- styles: s
147
- }) : null;
148
- }
149
- const ke = {};
150
- function Ne(e, o, t, n = !1) {
151
- return a.useMemo(() => {
152
- const s = e && o[e] || o;
153
- if (typeof t == "function") {
154
- const c = t(s), r = e ? {
155
- ...o,
156
- [e]: c
157
- } : c;
158
- return n ? () => r : r;
159
- }
160
- return e ? {
161
- ...o,
162
- [e]: t
163
- } : {
164
- ...o,
165
- ...t
166
- };
167
- }, [e, o, t, n]);
168
- }
169
- function U(e) {
170
- const {
171
- children: o,
172
- theme: t,
173
- themeId: n
174
- } = e, s = De(ke), c = se() || ke;
175
- process.env.NODE_ENV !== "production" && (s === null && typeof t == "function" || n && s && !s[n] && typeof t == "function") && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
176
- `));
177
- const r = Ne(n, s, t), h = Ne(n, c, t, !0), p = (n ? r[n] : r).direction === "rtl", C = rt(r);
178
- return /* @__PURE__ */ T(z, {
179
- theme: h,
180
- children: /* @__PURE__ */ T(Fe.Provider, {
181
- value: r,
182
- children: /* @__PURE__ */ T(Be, {
183
- value: p,
184
- children: /* @__PURE__ */ $e(Xe, {
185
- value: n ? r[n].components : r.components,
186
- children: [C, o]
187
- })
188
- })
189
- })
190
- });
191
- }
192
- process.env.NODE_ENV !== "production" && (U.propTypes = {
193
- // ┌────────────────────────────── Warning ──────────────────────────────┐
194
- // │ These PropTypes are generated from the TypeScript type definitions. │
195
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
196
- // └─────────────────────────────────────────────────────────────────────┘
197
- /**
198
- * Your component tree.
199
- */
200
- children: i.node,
201
- /**
202
- * A theme object. You can provide a function to extend the outer theme.
203
- */
204
- theme: i.oneOfType([i.func, i.object]).isRequired,
205
- /**
206
- * The design system's unique id for getting the corresponded theme when there are multiple design systems.
207
- */
208
- themeId: i.string
209
- });
210
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (U.propTypes = Pe(U.propTypes));
211
- const ce = "mode", ie = "color-scheme", st = "data-color-scheme";
212
- function ct(e) {
213
- const {
214
- defaultMode: o = "system",
215
- defaultLightColorScheme: t = "light",
216
- defaultDarkColorScheme: n = "dark",
217
- modeStorageKey: s = ce,
218
- colorSchemeStorageKey: c = ie,
219
- attribute: r = st,
220
- colorSchemeNode: h = "document.documentElement",
221
- nonce: p
222
- } = e || {};
223
- let C = "", b = r;
224
- if (r === "class" && (b = ".%s"), r === "data" && (b = "[data-%s]"), b.startsWith(".")) {
225
- const S = b.substring(1);
226
- C += `${h}.classList.remove('${S}'.replace('%s', light), '${S}'.replace('%s', dark));
227
- ${h}.classList.add('${S}'.replace('%s', colorScheme));`;
228
- }
229
- const N = b.match(/\[([^\]]+)\]/);
230
- if (N) {
231
- const [S, u] = N[1].split("=");
232
- u || (C += `${h}.removeAttribute('${S}'.replace('%s', light));
233
- ${h}.removeAttribute('${S}'.replace('%s', dark));`), C += `
234
- ${h}.setAttribute('${S}'.replace('%s', colorScheme), ${u ? `${u}.replace('%s', colorScheme)` : '""'});`;
235
- } else
236
- C += `${h}.setAttribute('${b}', colorScheme);`;
237
- return /* @__PURE__ */ T("script", {
238
- suppressHydrationWarning: !0,
239
- nonce: typeof window > "u" ? p : "",
240
- dangerouslySetInnerHTML: {
241
- __html: `(function() {
242
- try {
243
- let colorScheme = '';
244
- const mode = localStorage.getItem('${s}') || '${o}';
245
- const dark = localStorage.getItem('${c}-dark') || '${n}';
246
- const light = localStorage.getItem('${c}-light') || '${t}';
247
- if (mode === 'system') {
248
- // handle system mode
249
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
250
- if (mql.matches) {
251
- colorScheme = dark
252
- } else {
253
- colorScheme = light
254
- }
255
- }
256
- if (mode === 'light') {
257
- colorScheme = light;
258
- }
259
- if (mode === 'dark') {
260
- colorScheme = dark;
261
- }
262
- if (colorScheme) {
263
- ${C}
264
- }
265
- } catch(e){}})();`
266
- }
267
- }, "mui-color-scheme-init");
268
- }
269
- function it() {
270
- }
271
- const lt = ({
272
- key: e,
273
- storageWindow: o
274
- }) => (!o && typeof window < "u" && (o = window), {
275
- get(t) {
276
- if (typeof window > "u")
277
- return;
278
- if (!o)
279
- return t;
280
- let n;
281
- try {
282
- n = o.localStorage.getItem(e);
283
- } catch {
284
- }
285
- return n || t;
286
- },
287
- set: (t) => {
288
- if (o)
289
- try {
290
- o.localStorage.setItem(e, t);
291
- } catch {
292
- }
293
- },
294
- subscribe: (t) => {
295
- if (!o)
296
- return it;
297
- const n = (s) => {
298
- const c = s.newValue;
299
- s.key === e && t(c);
300
- };
301
- return o.addEventListener("storage", n), () => {
302
- o.removeEventListener("storage", n);
303
- };
304
- }
305
- });
306
- function ne() {
307
- }
308
- function we(e) {
309
- if (typeof window < "u" && typeof window.matchMedia == "function" && e === "system")
310
- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
311
- }
312
- function xe(e, o) {
313
- if (e.mode === "light" || e.mode === "system" && e.systemMode === "light")
314
- return o("light");
315
- if (e.mode === "dark" || e.mode === "system" && e.systemMode === "dark")
316
- return o("dark");
317
- }
318
- function dt(e) {
319
- return xe(e, (o) => {
320
- if (o === "light")
321
- return e.lightColorScheme;
322
- if (o === "dark")
323
- return e.darkColorScheme;
324
- });
325
- }
326
- function at(e) {
327
- const {
328
- defaultMode: o = "light",
329
- defaultLightColorScheme: t,
330
- defaultDarkColorScheme: n,
331
- supportedColorSchemes: s = [],
332
- modeStorageKey: c = ce,
333
- colorSchemeStorageKey: r = ie,
334
- storageWindow: h = typeof window > "u" ? void 0 : window,
335
- storageManager: p = lt,
336
- noSsr: C = !1
337
- } = e, b = s.join(","), N = s.length > 1, S = a.useMemo(() => p == null ? void 0 : p({
338
- key: c,
339
- storageWindow: h
340
- }), [p, c, h]), u = a.useMemo(() => p == null ? void 0 : p({
341
- key: `${r}-light`,
342
- storageWindow: h
343
- }), [p, r, h]), g = a.useMemo(() => p == null ? void 0 : p({
344
- key: `${r}-dark`,
345
- storageWindow: h
346
- }), [p, r, h]), [$, x] = a.useState(() => {
347
- const l = (S == null ? void 0 : S.get(o)) || o, d = (u == null ? void 0 : u.get(t)) || t, m = (g == null ? void 0 : g.get(n)) || n;
348
- return {
349
- mode: l,
350
- systemMode: we(l),
351
- lightColorScheme: d,
352
- darkColorScheme: m
353
- };
354
- }), [O, B] = a.useState(C || !N);
355
- a.useEffect(() => {
356
- B(!0);
357
- }, []);
358
- const K = dt($), R = a.useCallback((l) => {
359
- x((d) => {
360
- if (l === d.mode)
361
- return d;
362
- const m = l ?? o;
363
- return S == null || S.set(m), {
364
- ...d,
365
- mode: m,
366
- systemMode: we(m)
367
- };
368
- });
369
- }, [S, o]), L = a.useCallback((l) => {
370
- l ? typeof l == "string" ? l && !b.includes(l) ? console.error(`\`${l}\` does not exist in \`theme.colorSchemes\`.`) : x((d) => {
371
- const m = {
372
- ...d
373
- };
374
- return xe(d, (f) => {
375
- f === "light" && (u == null || u.set(l), m.lightColorScheme = l), f === "dark" && (g == null || g.set(l), m.darkColorScheme = l);
376
- }), m;
377
- }) : x((d) => {
378
- const m = {
379
- ...d
380
- }, f = l.light === null ? t : l.light, P = l.dark === null ? n : l.dark;
381
- return f && (b.includes(f) ? (m.lightColorScheme = f, u == null || u.set(f)) : console.error(`\`${f}\` does not exist in \`theme.colorSchemes\`.`)), P && (b.includes(P) ? (m.darkColorScheme = P, g == null || g.set(P)) : console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`)), m;
382
- }) : x((d) => (u == null || u.set(t), g == null || g.set(n), {
383
- ...d,
384
- lightColorScheme: t,
385
- darkColorScheme: n
386
- }));
387
- }, [b, u, g, t, n]), q = a.useCallback((l) => {
388
- $.mode === "system" && x((d) => {
389
- const m = l != null && l.matches ? "dark" : "light";
390
- return d.systemMode === m ? d : {
391
- ...d,
392
- systemMode: m
393
- };
394
- });
395
- }, [$.mode]), H = a.useRef(q);
396
- return H.current = q, a.useEffect(() => {
397
- if (typeof window.matchMedia != "function" || !N)
398
- return;
399
- const l = (...m) => H.current(...m), d = window.matchMedia("(prefers-color-scheme: dark)");
400
- return d.addListener(l), l(d), () => {
401
- d.removeListener(l);
402
- };
403
- }, [N]), a.useEffect(() => {
404
- if (N) {
405
- const l = (S == null ? void 0 : S.subscribe((f) => {
406
- (!f || ["light", "dark", "system"].includes(f)) && R(f || o);
407
- })) || ne, d = (u == null ? void 0 : u.subscribe((f) => {
408
- (!f || b.match(f)) && L({
409
- light: f
410
- });
411
- })) || ne, m = (g == null ? void 0 : g.subscribe((f) => {
412
- (!f || b.match(f)) && L({
413
- dark: f
414
- });
415
- })) || ne;
416
- return () => {
417
- l(), d(), m();
418
- };
419
- }
420
- }, [L, R, b, o, h, N, S, u, g]), {
421
- ...$,
422
- mode: O ? $.mode : void 0,
423
- systemMode: O ? $.systemMode : void 0,
424
- colorScheme: O ? K : void 0,
425
- setMode: R,
426
- setColorScheme: L
427
- };
428
- }
429
- const mt = "*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
430
- function ut(e) {
431
- const {
432
- themeId: o,
433
- /**
434
- * This `theme` object needs to follow a certain structure to
435
- * be used correctly by the finel `CssVarsProvider`. It should have a
436
- * `colorSchemes` key with the light and dark (and any other) palette.
437
- * It should also ideally have a vars object created using `prepareCssVars`.
438
- */
439
- theme: t = {},
440
- modeStorageKey: n = ce,
441
- colorSchemeStorageKey: s = ie,
442
- disableTransitionOnChange: c = !1,
443
- defaultColorScheme: r,
444
- resolveTheme: h
445
- } = e, p = {
446
- allColorSchemes: [],
447
- colorScheme: void 0,
448
- darkColorScheme: void 0,
449
- lightColorScheme: void 0,
450
- mode: void 0,
451
- setColorScheme: () => {
452
- },
453
- setMode: () => {
454
- },
455
- systemMode: void 0
456
- }, C = /* @__PURE__ */ a.createContext(void 0);
457
- process.env.NODE_ENV !== "production" && (C.displayName = "ColorSchemeContext");
458
- const b = () => a.useContext(C) || p, N = {}, S = {};
459
- function u(O) {
460
- var Ee, Te, ve, Me;
461
- const {
462
- children: B,
463
- theme: K,
464
- modeStorageKey: R = n,
465
- colorSchemeStorageKey: L = s,
466
- disableTransitionOnChange: q = c,
467
- storageManager: H,
468
- storageWindow: l = typeof window > "u" ? void 0 : window,
469
- documentNode: d = typeof document > "u" ? void 0 : document,
470
- colorSchemeNode: m = typeof document > "u" ? void 0 : document.documentElement,
471
- disableNestedContext: f = !1,
472
- disableStyleSheetGeneration: P = !1,
473
- defaultMode: Le = "system",
474
- forceThemeRerender: le = !1,
475
- noSsr: je
476
- } = O, J = a.useRef(!1), Q = se(), W = a.useContext(C), X = !!W && !f, de = a.useMemo(() => K || (typeof t == "function" ? t() : t), [K]), ae = de[o], v = ae || de, {
477
- colorSchemes: _ = N,
478
- components: me = S,
479
- cssVarPrefix: Z
480
- } = v, ue = Object.keys(_).filter((E) => !!_[E]).join(","), j = a.useMemo(() => ue.split(","), [ue]), he = typeof r == "string" ? r : r.light, fe = typeof r == "string" ? r : r.dark, Ie = _[he] && _[fe] ? Le : ((Te = (Ee = _[v.defaultColorScheme]) == null ? void 0 : Ee.palette) == null ? void 0 : Te.mode) || ((ve = v.palette) == null ? void 0 : ve.mode), {
481
- mode: Ae,
482
- setMode: ee,
483
- systemMode: pe,
484
- lightColorScheme: Se,
485
- darkColorScheme: ye,
486
- colorScheme: Ke,
487
- setColorScheme: ge
488
- } = at({
489
- supportedColorSchemes: j,
490
- defaultLightColorScheme: he,
491
- defaultDarkColorScheme: fe,
492
- modeStorageKey: R,
493
- colorSchemeStorageKey: L,
494
- defaultMode: Ie,
495
- storageManager: H,
496
- storageWindow: l,
497
- noSsr: je
498
- });
499
- let te = Ae, M = Ke;
500
- X && (te = W.mode, M = W.colorScheme), process.env.NODE_ENV !== "production" && le && !v.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
501
- `));
502
- let F = M || v.defaultColorScheme;
503
- v.vars && !le && (F = v.defaultColorScheme);
504
- const I = a.useMemo(() => {
505
- var V;
506
- const E = ((V = v.generateThemeVars) == null ? void 0 : V.call(v)) || v.vars, y = {
507
- ...v,
508
- components: me,
509
- colorSchemes: _,
510
- cssVarPrefix: Z,
511
- vars: E
512
- };
513
- if (typeof y.generateSpacing == "function" && (y.spacing = y.generateSpacing()), F) {
514
- const w = _[F];
515
- w && typeof w == "object" && Object.keys(w).forEach((k) => {
516
- w[k] && typeof w[k] == "object" ? y[k] = {
517
- ...y[k],
518
- ...w[k]
519
- } : y[k] = w[k];
520
- });
521
- }
522
- return h ? h(y) : y;
523
- }, [v, F, me, _, Z]), G = v.colorSchemeSelector;
524
- Oe(() => {
525
- if (M && m && G && G !== "media") {
526
- const E = G;
527
- let y = G;
528
- if (E === "class" && (y = ".%s"), E === "data" && (y = "[data-%s]"), E != null && E.startsWith("data-") && !E.includes("%s") && (y = `[${E}="%s"]`), y.startsWith("."))
529
- m.classList.remove(...j.map((V) => y.substring(1).replace("%s", V))), m.classList.add(y.substring(1).replace("%s", M));
530
- else {
531
- const V = y.replace("%s", M).match(/\[([^\]]+)\]/);
532
- if (V) {
533
- const [w, k] = V[1].split("=");
534
- k || j.forEach((qe) => {
535
- m.removeAttribute(w.replace(M, qe));
536
- }), m.setAttribute(w, k ? k.replace(/"|'/g, "") : "");
537
- } else
538
- m.setAttribute(y, M);
539
- }
540
- }
541
- }, [M, G, m, j]), a.useEffect(() => {
542
- let E;
543
- if (q && J.current && d) {
544
- const y = d.createElement("style");
545
- y.appendChild(d.createTextNode(mt)), d.head.appendChild(y), window.getComputedStyle(d.body), E = setTimeout(() => {
546
- d.head.removeChild(y);
547
- }, 1);
548
- }
549
- return () => {
550
- clearTimeout(E);
551
- };
552
- }, [M, q, d]), a.useEffect(() => (J.current = !0, () => {
553
- J.current = !1;
554
- }), []);
555
- const Re = a.useMemo(() => ({
556
- allColorSchemes: j,
557
- colorScheme: M,
558
- darkColorScheme: ye,
559
- lightColorScheme: Se,
560
- mode: te,
561
- setColorScheme: ge,
562
- setMode: process.env.NODE_ENV === "production" ? ee : (E) => {
563
- I.colorSchemeSelector === "media" && console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).", "To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.", "To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
564
- `)), ee(E);
565
- },
566
- systemMode: pe
567
- }), [j, M, ye, Se, te, ge, ee, pe, I.colorSchemeSelector]);
568
- let Ce = !0;
569
- (P || v.cssVariables === !1 || X && (Q == null ? void 0 : Q.cssVarPrefix) === Z) && (Ce = !1);
570
- const be = /* @__PURE__ */ $e(a.Fragment, {
571
- children: [/* @__PURE__ */ T(U, {
572
- themeId: ae ? o : void 0,
573
- theme: I,
574
- children: B
575
- }), Ce && /* @__PURE__ */ T(We, {
576
- styles: ((Me = I.generateStyleSheets) == null ? void 0 : Me.call(I)) || []
577
- })]
578
- });
579
- return X ? be : /* @__PURE__ */ T(C.Provider, {
580
- value: Re,
581
- children: be
582
- });
583
- }
584
- process.env.NODE_ENV !== "production" && (u.propTypes = {
585
- /**
586
- * The component tree.
587
- */
588
- children: i.node,
589
- /**
590
- * The node used to attach the color-scheme attribute
591
- */
592
- colorSchemeNode: i.any,
593
- /**
594
- * localStorage key used to store `colorScheme`
595
- */
596
- colorSchemeStorageKey: i.string,
597
- /**
598
- * The default mode when the storage is empty,
599
- * require the theme to have `colorSchemes` with light and dark.
600
- */
601
- defaultMode: i.string,
602
- /**
603
- * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.
604
- */
605
- disableNestedContext: i.bool,
606
- /**
607
- * If `true`, the style sheet won't be generated.
608
- *
609
- * This is useful for controlling nested CssVarsProvider behavior.
610
- */
611
- disableStyleSheetGeneration: i.bool,
612
- /**
613
- * Disable CSS transitions when switching between modes or color schemes.
614
- */
615
- disableTransitionOnChange: i.bool,
616
- /**
617
- * The document to attach the attribute to.
618
- */
619
- documentNode: i.any,
620
- /**
621
- * If `true`, theme values are recalculated when the mode changes.
622
- */
623
- forceThemeRerender: i.bool,
624
- /**
625
- * The key in the local storage used to store current color scheme.
626
- */
627
- modeStorageKey: i.string,
628
- /**
629
- * If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration.
630
- * You should use this option in conjuction with `InitColorSchemeScript` component.
631
- */
632
- noSsr: i.bool,
633
- /**
634
- * The storage manager to be used for storing the mode and color scheme
635
- * @default using `window.localStorage`
636
- */
637
- storageManager: i.func,
638
- /**
639
- * The window that attaches the 'storage' event listener.
640
- * @default window
641
- */
642
- storageWindow: i.any,
643
- /**
644
- * The calculated theme object that will be passed through context.
645
- */
646
- theme: i.object
647
- });
648
- const g = typeof r == "string" ? r : r.light, $ = typeof r == "string" ? r : r.dark;
649
- return {
650
- CssVarsProvider: u,
651
- useColorScheme: b,
652
- getInitColorSchemeScript: (O) => ct({
653
- colorSchemeStorageKey: s,
654
- defaultLightColorScheme: g,
655
- defaultDarkColorScheme: $,
656
- modeStorageKey: n,
657
- ...O
658
- })
659
- };
660
- }
661
- function ht({
662
- theme: e,
663
- ...o
664
- }) {
665
- const t = A in e ? e[A] : void 0;
666
- return /* @__PURE__ */ T(U, {
667
- ...o,
668
- themeId: t ? A : void 0,
669
- theme: t || e
670
- });
671
- }
672
- const Y = {
673
- attribute: "data-mui-color-scheme",
674
- colorSchemeStorageKey: "mui-color-scheme",
675
- defaultLightColorScheme: "light",
676
- defaultDarkColorScheme: "dark",
677
- modeStorageKey: "mui-mode"
678
- };
679
- process.env.NODE_ENV !== "production" && (i.string, i.string, i.string, i.string, i.string, i.oneOf(["dark", "light", "system"]), i.string, i.string);
680
- const {
681
- CssVarsProvider: ft,
682
- useColorScheme: wt,
683
- getInitColorSchemeScript: $t
684
- } = ut({
685
- themeId: A,
686
- // @ts-ignore ignore module augmentation tests
687
- theme: () => _e({
688
- cssVariables: !0
689
- }),
690
- colorSchemeStorageKey: Y.colorSchemeStorageKey,
691
- modeStorageKey: Y.modeStorageKey,
692
- defaultColorScheme: {
693
- light: Y.defaultLightColorScheme,
694
- dark: Y.defaultDarkColorScheme
695
- },
696
- resolveTheme: (e) => {
697
- const o = {
698
- ...e,
699
- typography: Ye(e.palette, e.typography)
700
- };
701
- return o.unstable_sx = function(n) {
702
- return ze({
703
- sx: n,
704
- theme: this
705
- });
706
- }, o;
707
- }
708
- }), pt = ft;
709
- function St({
710
- theme: e,
711
- ...o
712
- }) {
713
- const t = a.useMemo(() => {
714
- if (typeof e == "function")
715
- return e;
716
- const n = A in e ? e[A] : e;
717
- return "colorSchemes" in n ? null : "vars" in n ? e : {
718
- ...e,
719
- vars: null
720
- };
721
- }, [e]);
722
- return t ? /* @__PURE__ */ T(ht, {
723
- theme: t,
724
- ...o
725
- }) : /* @__PURE__ */ T(pt, {
726
- theme: e,
727
- ...o
728
- });
729
- }
730
- const yt = _e(), _t = (e) => ({
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { createTheme as o, StyledEngineProvider as i, ThemeProvider as m } from "@mui/material";
3
+ import '../assets/withThemeProvider.css';const d = o(), l = (r) => ({
731
4
  theme: t,
732
5
  ...n
733
- }) => /* @__PURE__ */ T(Ve, { injectFirst: !0, children: /* @__PURE__ */ T(St, { theme: t || yt, children: /* @__PURE__ */ T(e, { ...n }) }) });
6
+ }) => /* @__PURE__ */ e(i, { injectFirst: !0, children: /* @__PURE__ */ e(m, { theme: t || d, children: /* @__PURE__ */ e(r, { ...n }) }) });
734
7
  export {
735
- _t as default
8
+ l as default
736
9
  };