@arcblock/ux 3.0.5 → 3.0.7

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 (370) hide show
  1. package/lib/ActionButton/index.d.ts +1 -1
  2. package/lib/ActionButton/index.js +9 -9
  3. package/lib/ActivityIndicator/index.js +6 -7
  4. package/lib/Address/compact-text.d.ts +1 -1
  5. package/lib/Address/compact-text.js +6 -7
  6. package/lib/Address/did-address.js +4 -4
  7. package/lib/Address/index.js +6 -6
  8. package/lib/Address/responsive-did-address.js +17 -17
  9. package/lib/Alert/index.d.ts +1 -1
  10. package/lib/Alert/index.js +8 -8
  11. package/lib/AnimationWaiter/index.js +10 -10
  12. package/lib/Async/index.js +4 -4
  13. package/lib/Avatar/etherscan-blockies.js +15 -15
  14. package/lib/Avatar/index.d.ts +1 -1
  15. package/lib/Avatar/index.js +6 -6
  16. package/lib/Badge/index.js +5 -5
  17. package/lib/Blocklet/blocklet.js +10 -10
  18. package/lib/Blocklet/index.js +6 -5
  19. package/lib/Blocklet/utils.js +1 -1
  20. package/lib/BlockletContext/index.d.ts +1 -1
  21. package/lib/BlockletContext/index.js +1 -1
  22. package/lib/BlockletNFT/index.js +19 -19
  23. package/lib/BlockletV2/blocklet.d.ts +1 -1
  24. package/lib/BlockletV2/blocklet.js +36 -37
  25. package/lib/BlockletV2/components/icon-text.d.ts +1 -1
  26. package/lib/BlockletV2/components/icon-text.js +13 -13
  27. package/lib/BlockletV2/components/tooltip-icon.js +22 -20
  28. package/lib/BlockletV2/index.js +8 -7
  29. package/lib/BlockletV2/utils.js +1 -1
  30. package/lib/Button/index.js +1 -1
  31. package/lib/Button/wrap.js +3 -3
  32. package/lib/ButtonGroup/index.js +1 -1
  33. package/lib/Center/index.js +4 -4
  34. package/lib/ClickToCopy/copy-button.js +3 -3
  35. package/lib/ClickToCopy/index.js +5 -5
  36. package/lib/CloseButton/index.js +2 -2
  37. package/lib/CodeBlock/index.js +3 -3
  38. package/lib/Colors/index.js +3 -3
  39. package/lib/Config/config-provider.js +15 -16
  40. package/lib/Config/index.js +3 -5
  41. package/lib/Config/theme-mode-toggle.js +1 -1
  42. package/lib/ContactForm/index.js +26 -25
  43. package/lib/CookieConsent/index.js +1 -1
  44. package/lib/CountDown/index.js +2 -2
  45. package/lib/DID/index.js +79 -78
  46. package/lib/DIDConnect/app-icon.js +10 -10
  47. package/lib/DIDConnect/app-info-item.js +5 -5
  48. package/lib/DIDConnect/auth-apps/auth-apps-info.js +1 -1
  49. package/lib/DIDConnect/auth-apps/index.js +56 -56
  50. package/lib/DIDConnect/did-connect-container.js +35 -36
  51. package/lib/DIDConnect/did-connect-footer.js +7 -7
  52. package/lib/DIDConnect/index.js +10 -10
  53. package/lib/DIDConnect/landing-page.js +45 -46
  54. package/lib/DIDConnect/powered-by.js +2 -2
  55. package/lib/DIDConnect/request-storage-access-api-dialog.js +44 -45
  56. package/lib/DIDConnect/with-container.js +25 -26
  57. package/lib/DIDConnect/with-ux-theme.js +6 -7
  58. package/lib/Datatable/CustomToolbar.d.ts +3 -1
  59. package/lib/Datatable/CustomToolbar.js +13 -13
  60. package/lib/Datatable/TableSearch.js +2 -2
  61. package/lib/Datatable/index.js +6 -6
  62. package/lib/Dialog/confirm.d.ts +1 -1
  63. package/lib/Dialog/confirm.js +20 -20
  64. package/lib/Dialog/dialog.js +7 -7
  65. package/lib/Dialog/index.js +3 -3
  66. package/lib/Dialog/types.d.ts +20 -0
  67. package/lib/Dialog/use-confirm.js +1 -1
  68. package/lib/DriftBot/index.js +1 -1
  69. package/lib/Earth/index.js +10 -10
  70. package/lib/Empty/index.js +1 -1
  71. package/lib/ErrorBoundary/fallback.js +15 -15
  72. package/lib/ErrorBoundary/index.js +1 -6
  73. package/lib/Footer/index.d.ts +1 -1
  74. package/lib/Footer/index.js +7 -7
  75. package/lib/Header/addon-button.d.ts +1 -1
  76. package/lib/Header/addon-button.js +11 -6
  77. package/lib/Header/auto-hidden.js +1 -1
  78. package/lib/Header/header.js +4 -4
  79. package/lib/Header/index.js +3 -3
  80. package/lib/Header/responsive-header.d.ts +1 -1
  81. package/lib/Header/responsive-header.js +33 -34
  82. package/lib/Icon/image.js +2 -2
  83. package/lib/Icon/index.js +12 -12
  84. package/lib/Img/index.js +1 -1
  85. package/lib/InfoRow/index.d.ts +1 -1
  86. package/lib/InfoRow/index.js +1 -2
  87. package/lib/Layout/dashboard/external-link.d.ts +1 -1
  88. package/lib/Layout/dashboard/external-link.js +1 -1
  89. package/lib/Layout/dashboard/full-page.js +8 -8
  90. package/lib/Layout/dashboard/index.js +30 -32
  91. package/lib/Layout/dashboard/sidebar.js +3 -3
  92. package/lib/Layout/dashboard-legacy/header.js +12 -12
  93. package/lib/Layout/dashboard-legacy/index.js +20 -20
  94. package/lib/Layout/dashboard-legacy/sidebar.d.ts +1 -1
  95. package/lib/Layout/dashboard-legacy/sidebar.js +20 -13
  96. package/lib/Layout/index.js +7 -7
  97. package/lib/LoadingMask/index.d.ts +1 -1
  98. package/lib/LoadingMask/index.js +4 -4
  99. package/lib/Locale/context.js +27 -27
  100. package/lib/Locale/selector.d.ts +1 -1
  101. package/lib/Locale/selector.js +4 -4
  102. package/lib/Logo/index.js +19 -19
  103. package/lib/Metric/index.js +2 -2
  104. package/lib/NFTDisplay/aspect-ratio-container.d.ts +1 -1
  105. package/lib/NFTDisplay/aspect-ratio-container.js +1 -1
  106. package/lib/NFTDisplay/broken.js +2 -2
  107. package/lib/NFTDisplay/index.js +38 -35
  108. package/lib/NFTDisplay/loading.js +1 -1
  109. package/lib/NFTDisplay/render-svg.js +4 -4
  110. package/lib/NFTDisplay/svg-embedder/img.js +3 -3
  111. package/lib/NFTDisplay/svg-embedder/inline-svg.js +1 -1
  112. package/lib/NavMenu/index.js +2 -2
  113. package/lib/NavMenu/nav-menu.js +46 -44
  114. package/lib/NavMenu/products.js +33 -33
  115. package/lib/NavMenu/style.js +1 -1
  116. package/lib/NavMenu/sub-item-group.js +1 -1
  117. package/lib/PageScroller/index.js +53 -53
  118. package/lib/PageScroller/story/FullPage.js +27 -27
  119. package/lib/PageScroller/story/PageContain.js +8 -8
  120. package/lib/Passport/index.js +3 -2
  121. package/lib/Passport/passport.js +2 -2
  122. package/lib/PhoneInput/country-select.js +24 -24
  123. package/lib/PhoneInput/index.js +13 -13
  124. package/lib/PoweredByArcBlock/index.js +10 -6
  125. package/lib/PricingTable/PricingPlan.js +1 -1
  126. package/lib/PricingTable/index.js +3 -3
  127. package/lib/QRCode/index.js +5 -5
  128. package/lib/RelativeTime/index.js +17 -17
  129. package/lib/Result/common.js +4 -6
  130. package/lib/Result/index.js +2 -2
  131. package/lib/Result/result.js +5 -5
  132. package/lib/Screenshot/BaseScreenshot/index.js +3 -3
  133. package/lib/Screenshot/index.d.ts +1 -1
  134. package/lib/Screenshot/index.js +10 -10
  135. package/lib/SessionBlocklet/index.js +8 -8
  136. package/lib/SessionManager/index.js +3 -2
  137. package/lib/SessionUser/components/did-space.d.ts +1 -1
  138. package/lib/SessionUser/components/did-space.js +14 -14
  139. package/lib/SessionUser/components/logged-in.js +33 -33
  140. package/lib/SessionUser/components/quick-login-item.js +29 -29
  141. package/lib/SessionUser/components/session-user-item.js +27 -27
  142. package/lib/SessionUser/components/session-user-switch.js +4 -4
  143. package/lib/SessionUser/components/un-login.js +7 -7
  144. package/lib/SessionUser/components/user-info.js +16 -16
  145. package/lib/SessionUser/index.js +2 -2
  146. package/lib/SharedBridge/index.js +23 -23
  147. package/lib/Spinner/index.js +2 -2
  148. package/lib/SplitButton/index.d.ts +1 -1
  149. package/lib/SplitButton/index.js +2 -2
  150. package/lib/Success/index.js +1 -1
  151. package/lib/Switch/index.js +1 -1
  152. package/lib/Tabs/index.js +16 -9
  153. package/lib/Tag/index.d.ts +1 -1
  154. package/lib/Tag/index.js +7 -7
  155. package/lib/TextCollapse/index.js +3 -3
  156. package/lib/Theme/index.js +11 -22
  157. package/lib/Theme/theme-provider.js +60 -55
  158. package/lib/Theme/theme.js +5 -4
  159. package/lib/Toast/index.js +11 -11
  160. package/lib/Typography/index.js +13 -13
  161. package/lib/UserCard/Cards/avatar-only.js +2 -2
  162. package/lib/UserCard/Cards/basic-info.d.ts +1 -1
  163. package/lib/UserCard/Cards/basic-info.js +4 -4
  164. package/lib/UserCard/Cards/index.d.ts +1 -1
  165. package/lib/UserCard/Cards/index.js +4 -4
  166. package/lib/UserCard/Cards/name-only.js +1 -1
  167. package/lib/UserCard/Container/card.js +8 -8
  168. package/lib/UserCard/Container/dialog.js +2 -2
  169. package/lib/UserCard/Content/basic.js +3 -3
  170. package/lib/UserCard/Content/clock.js +3 -3
  171. package/lib/UserCard/Content/minimal.d.ts +1 -1
  172. package/lib/UserCard/Content/minimal.js +8 -8
  173. package/lib/UserCard/Content/tooltip-avatar.js +18 -18
  174. package/lib/UserCard/components.js +23 -23
  175. package/lib/UserCard/index.js +12 -12
  176. package/lib/Util/index.js +2 -2
  177. package/lib/VerificationCode/index.js +2 -2
  178. package/lib/Video/index.js +2 -2
  179. package/lib/Wallet/Action.js +4 -4
  180. package/lib/Wallet/Download.js +6 -6
  181. package/lib/Wallet/Open.js +1 -1
  182. package/lib/WalletOSIcon/index.d.ts +2 -2
  183. package/lib/WalletOSIcon/index.js +8 -3
  184. package/lib/WebWalletSWKeeper/index.d.ts +3 -1
  185. package/lib/WebWalletSWKeeper/index.js +6 -3
  186. package/lib/WechatPrompt/index.js +1 -1
  187. package/lib/global.d.ts +28 -0
  188. package/lib/hooks/use-blocklet-logo.js +13 -15
  189. package/lib/hooks/use-clock.js +1 -1
  190. package/lib/index.js +74 -79
  191. package/lib/type.d.ts +44 -0
  192. package/lib/withTheme/index.d.ts +3 -2
  193. package/lib/withTheme/index.js +13 -14
  194. package/lib/withTracker/error_boundary.js +1 -1
  195. package/package.json +7 -7
  196. package/src/ActionButton/index.jsx +1 -1
  197. package/src/Address/compact-text.jsx +1 -1
  198. package/src/Address/did-address.tsx +1 -1
  199. package/src/Address/index.tsx +1 -1
  200. package/src/Address/responsive-did-address.tsx +3 -3
  201. package/src/Alert/index.jsx +1 -1
  202. package/src/Avatar/index.jsx +1 -1
  203. package/src/Badge/index.jsx +1 -1
  204. package/src/BlockletContext/index.tsx +1 -1
  205. package/src/BlockletNFT/index.jsx +1 -1
  206. package/src/BlockletV2/blocklet.tsx +1 -1
  207. package/src/BlockletV2/components/icon-text.tsx +4 -4
  208. package/src/BlockletV2/components/tooltip-icon.tsx +5 -3
  209. package/src/Button/wrap.jsx +1 -1
  210. package/src/Center/index.tsx +1 -1
  211. package/src/ClickToCopy/copy-button.tsx +1 -1
  212. package/src/CloseButton/index.tsx +1 -1
  213. package/src/ContactForm/index.tsx +9 -2
  214. package/src/DID/index.tsx +5 -4
  215. package/src/DIDConnect/app-info-item.tsx +1 -1
  216. package/src/DIDConnect/auth-apps/index.tsx +8 -8
  217. package/src/DIDConnect/did-connect-container.tsx +2 -2
  218. package/src/DIDConnect/did-connect-footer.tsx +1 -1
  219. package/src/DIDConnect/landing-page.tsx +6 -6
  220. package/src/DIDConnect/request-storage-access-api-dialog.tsx +1 -2
  221. package/src/Datatable/CustomToolbar.jsx +1 -1
  222. package/src/Datatable/index.jsx +2 -2
  223. package/src/Dialog/confirm.jsx +1 -1
  224. package/src/Earth/index.tsx +1 -1
  225. package/src/Footer/index.tsx +5 -2
  226. package/src/Header/addon-button.tsx +7 -2
  227. package/src/Header/header.tsx +1 -1
  228. package/src/Header/responsive-header.tsx +1 -2
  229. package/src/Icon/index.tsx +1 -1
  230. package/src/InfoRow/index.tsx +1 -2
  231. package/src/Layout/dashboard/external-link.tsx +1 -1
  232. package/src/Layout/dashboard/full-page.tsx +1 -1
  233. package/src/Layout/dashboard/index.tsx +1 -1
  234. package/src/Layout/dashboard/sidebar.tsx +5 -2
  235. package/src/Layout/dashboard-legacy/header.tsx +5 -5
  236. package/src/Layout/dashboard-legacy/index.tsx +3 -3
  237. package/src/Layout/dashboard-legacy/sidebar.tsx +10 -2
  238. package/src/Layout/index.tsx +2 -2
  239. package/src/LoadingMask/index.tsx +5 -5
  240. package/src/Locale/context.tsx +3 -3
  241. package/src/Locale/selector.tsx +1 -1
  242. package/src/Logo/index.tsx +1 -1
  243. package/src/NFTDisplay/aspect-ratio-container.tsx +1 -1
  244. package/src/NFTDisplay/index.tsx +2 -1
  245. package/src/NFTDisplay/render-svg.tsx +1 -1
  246. package/src/NavMenu/nav-menu.tsx +8 -5
  247. package/src/NavMenu/products.tsx +3 -1
  248. package/src/PageScroller/index.tsx +4 -4
  249. package/src/PhoneInput/country-select.tsx +3 -3
  250. package/src/PhoneInput/index.tsx +1 -1
  251. package/src/PoweredByArcBlock/index.tsx +5 -1
  252. package/src/QRCode/index.tsx +1 -1
  253. package/src/RelativeTime/index.tsx +3 -3
  254. package/src/Result/result.tsx +1 -1
  255. package/src/Screenshot/index.tsx +2 -2
  256. package/src/SessionUser/components/did-space.tsx +1 -1
  257. package/src/SessionUser/components/session-user-item.tsx +1 -1
  258. package/src/SharedBridge/index.tsx +2 -2
  259. package/src/Spinner/index.tsx +1 -1
  260. package/src/SplitButton/index.tsx +1 -1
  261. package/src/Success/index.tsx +1 -1
  262. package/src/Tabs/index.tsx +10 -3
  263. package/src/Tag/index.jsx +1 -1
  264. package/src/TextCollapse/index.tsx +1 -1
  265. package/src/Theme/theme-provider.tsx +11 -6
  266. package/src/Theme/theme.ts +5 -0
  267. package/src/Typography/index.tsx +1 -1
  268. package/src/UserCard/Cards/basic-info.tsx +1 -1
  269. package/src/UserCard/Cards/index.tsx +1 -1
  270. package/src/UserCard/Container/card.tsx +2 -2
  271. package/src/UserCard/Container/dialog.tsx +1 -1
  272. package/src/UserCard/Content/basic.tsx +2 -2
  273. package/src/UserCard/Content/minimal.tsx +1 -1
  274. package/src/UserCard/Content/tooltip-avatar.tsx +4 -4
  275. package/src/VerificationCode/index.tsx +1 -1
  276. package/src/WalletOSIcon/index.tsx +7 -2
  277. package/src/WebWalletSWKeeper/index.tsx +6 -1
  278. package/src/withTheme/index.tsx +7 -3
  279. package/vite.config.mjs +5 -2
  280. package/lib/ActionButton/ActionButton.stories.d.ts +0 -18
  281. package/lib/ActivityIndicator/ActivityIndicator.stories.d.ts +0 -8
  282. package/lib/Address/Address.stories.d.ts +0 -16
  283. package/lib/Alert/Alert.stories.d.ts +0 -28
  284. package/lib/AnimationWaiter/AnimationWaiter.stories.d.ts +0 -21
  285. package/lib/AnimationWaiter/dark-animation.json.js +0 -27
  286. package/lib/AnimationWaiter/default-animation.json.js +0 -29
  287. package/lib/Avatar/Avatar.stories.d.ts +0 -11
  288. package/lib/Badge/Badge.stories.d.ts +0 -13
  289. package/lib/Blocklet/Blocklet.stories.d.ts +0 -17
  290. package/lib/BlockletNFT/BlockletNFT.stories.d.ts +0 -17
  291. package/lib/BlockletV2/Blocklet.stories.d.ts +0 -18
  292. package/lib/Button/Button.stories.d.ts +0 -19
  293. package/lib/Center/Center.stories.d.ts +0 -18
  294. package/lib/ClickToCopy/ClickToCopy.stories.d.ts +0 -16
  295. package/lib/CodeBlock/CodeBlock.stories.d.ts +0 -20
  296. package/lib/Colors/Colors.stories.d.ts +0 -34
  297. package/lib/Config/Config.stories.d.ts +0 -14
  298. package/lib/ContactForm/ContactForm.stories.d.ts +0 -23
  299. package/lib/CookieConsent/CookieConsent.stories.d.ts +0 -18
  300. package/lib/CountDown/CountDown.stories.d.ts +0 -14
  301. package/lib/DID/DID.stories.d.ts +0 -15
  302. package/lib/Datatable/Datatable.stories.d.ts +0 -32
  303. package/lib/Dialog/Dialog.stories.d.ts +0 -20
  304. package/lib/DidLogo/Logo.stories.d.ts +0 -8
  305. package/lib/Earth/Earth.stories.d.ts +0 -18
  306. package/lib/Earth/countries.json.js +0 -13
  307. package/lib/Empty/Empty.stories.d.ts +0 -17
  308. package/lib/ErrorBoundary/ErrorBoundary.stories.d.ts +0 -12
  309. package/lib/Footer/Footer.stories.d.ts +0 -12
  310. package/lib/Header/Header.stories.d.ts +0 -21
  311. package/lib/Icon/Icon.stories.d.ts +0 -23
  312. package/lib/Img/Img.stories.d.ts +0 -13
  313. package/lib/InfoRow/InfoRow.stories.d.ts +0 -14
  314. package/lib/Layout/Layout.stories.d.ts +0 -23
  315. package/lib/Locale/LocaleSelector.stories.d.ts +0 -22
  316. package/lib/Logo/Logo.stories.d.ts +0 -22
  317. package/lib/Logo/images/logo-dark-text.svg.js +0 -5
  318. package/lib/Logo/images/logo-dark-top.svg.js +0 -5
  319. package/lib/Logo/images/logo-light-text.svg.js +0 -5
  320. package/lib/Logo/images/logo-light-top.svg.js +0 -5
  321. package/lib/Metric/Metric.stories.d.ts +0 -14
  322. package/lib/NFTDisplay/NFTBroken.svg.js +0 -108
  323. package/lib/NFTDisplay/NFTDisplay.stories.d.ts +0 -15
  324. package/lib/NavMenu/NavMenu.stories.d.ts +0 -17
  325. package/lib/NavMenu/images/OCAP.svg.js +0 -5
  326. package/lib/NavMenu/images/abt-network.svg.js +0 -7
  327. package/lib/NavMenu/images/ai-kit.svg.js +0 -7
  328. package/lib/NavMenu/images/aigne.svg.js +0 -7
  329. package/lib/NavMenu/images/aistro.svg.js +0 -5
  330. package/lib/NavMenu/images/arcsphere.svg.js +0 -10
  331. package/lib/NavMenu/images/blocklet-framework.svg.js +0 -7
  332. package/lib/NavMenu/images/blocklet-launcher.svg.js +0 -5
  333. package/lib/NavMenu/images/blocklet-server.svg.js +0 -7
  334. package/lib/NavMenu/images/blocklet-store.svg.js +0 -5
  335. package/lib/NavMenu/images/creator-studio.svg.js +0 -7
  336. package/lib/NavMenu/images/did-connect.svg.js +0 -5
  337. package/lib/NavMenu/images/did-name-service.svg.js +0 -5
  338. package/lib/NavMenu/images/did-wallet.svg.js +0 -7
  339. package/lib/NavMenu/images/did.svg.js +0 -5
  340. package/lib/NavMenu/images/nft-studio.svg.js +0 -5
  341. package/lib/NavMenu/images/vc.svg.js +0 -5
  342. package/lib/NavMenu/images/web3-kit.svg.js +0 -7
  343. package/lib/PageScroller/story/PageScroller.stories.d.ts +0 -13
  344. package/lib/PhoneInput/PhoneInput.stories.d.ts +0 -12
  345. package/lib/PricingTable/PricingTable.stories.d.ts +0 -8
  346. package/lib/QRCode/QRCode.stories.d.ts +0 -13
  347. package/lib/RelativeTime/RelativeTime.stories.d.ts +0 -20
  348. package/lib/Result/Result.stories.d.ts +0 -21
  349. package/lib/Screenshot/Screenshot.stories.d.ts +0 -13
  350. package/lib/SessionManager/SessionManager.stories.d.ts +0 -9
  351. package/lib/SessionUser/images/did-spaces.svg.js +0 -5
  352. package/lib/Sparkline/Sparkline.stories.d.ts +0 -12
  353. package/lib/Spinner/Spinner.stories.d.ts +0 -18
  354. package/lib/SplitButton/SplitButton.stories.d.ts +0 -15
  355. package/lib/Switch/Switch.stories.d.ts +0 -13
  356. package/lib/Tabs/Tabs.stories.d.ts +0 -14
  357. package/lib/Tag/Tag.stories.d.ts +0 -13
  358. package/lib/TextCollapse/TextCollapse.stories.d.ts +0 -28
  359. package/lib/Theme/Theme.stories.d.ts +0 -10
  360. package/lib/Toast/Toast.stories.d.ts +0 -15
  361. package/lib/UserCard/UserCard.stories.d.ts +0 -18
  362. package/lib/Util/WebWalletOpener.stories.d.ts +0 -5
  363. package/lib/Video/Video.stories.d.ts +0 -6
  364. package/lib/Wallet/Action.stories.d.ts +0 -8
  365. package/lib/Wallet/Download.stories.d.ts +0 -9
  366. package/lib/Wallet/OpenInWallet.stories.d.ts +0 -5
  367. package/lib/Wallet/images/android_download.svg.js +0 -5
  368. package/lib/Wallet/images/app-store.svg.js +0 -5
  369. package/lib/Wallet/images/google-play.svg.js +0 -5
  370. package/lib/ux.css +0 -1
@@ -1,4 +1,4 @@
1
- import { jsx as i, jsxs as v, Fragment as F } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as M, Fragment as F } from "react/jsx-runtime";
2
2
  import { Tooltip as O, Box as f } from "@mui/material";
3
3
  import { useEffect as R, useMemo as $ } from "react";
4
4
  import r from "dayjs";
@@ -9,7 +9,7 @@ import E from "dayjs/plugin/relativeTime";
9
9
  import H from "dayjs/plugin/updateLocale";
10
10
  import N from "dayjs/plugin/localizedFormat";
11
11
  import { create as Z } from "zustand";
12
- import { formatToDatetime as D, setDateTool as q } from "../Util/index.js";
12
+ import { setDateTool as q, formatToDatetime as D } from "../Util";
13
13
  r.extend(N);
14
14
  r.extend(k);
15
15
  r.extend(B);
@@ -62,11 +62,11 @@ function w({
62
62
  relativeRange: L,
63
63
  format: C
64
64
  }) {
65
- const u = (/* @__PURE__ */ new Date()).getTimezoneOffset(), U = u > 0 ? "-" : "+", y = Math.abs(u) / 60, c = u === 0, x = z((g) => g.isUtc), T = z((g) => g.setIsUtc);
65
+ const u = (/* @__PURE__ */ new Date()).getTimezoneOffset(), U = u > 0 ? "-" : "+", v = Math.abs(u) / 60, c = u === 0, x = z((g) => g.isUtc), T = z((g) => g.setIsUtc);
66
66
  if (R(() => {
67
67
  T(c);
68
68
  }, [c]), !t)
69
- return { innerContent: "-", popContent: "-", isUtc: x, setIsUtc: T, sign: U, hoursOffset: y };
69
+ return { innerContent: "-", popContent: "-", isUtc: x, setIsUtc: T, sign: U, hoursOffset: v };
70
70
  const d = e === "zh" ? "zh-cn" : "en-us";
71
71
  let n = r(t).locale(d);
72
72
  o === "utc" && (n = r(t).utc().locale(d)), s && (n = n.tz(s));
@@ -81,12 +81,12 @@ function w({
81
81
  Math.abs(g) > L && (l = p);
82
82
  }
83
83
  l || (l = n.fromNow(m));
84
- let b = l, I = p;
85
- return o === "absolute" && (b = p, I = l), o === "utc" && (x ? (b = D(t, { locale: d, tz: s, isUtc: !0, format: C }), I = D(t, { locale: d, tz: s, isUtc: !0, format: C })) : (b = p, I = l)), { innerContent: b, popContent: I, isUtc: x, setIsUtc: T, sign: U, hoursOffset: y, relativeString: l, absoluteString: p };
84
+ let y = l, b = p;
85
+ return o === "absolute" && (y = p, b = l), o === "utc" && (x ? (y = D(t, { locale: d, tz: s, isUtc: !0, format: C }), b = D(t, { locale: d, tz: s, isUtc: !0, format: C })) : (y = p, b = l)), { innerContent: y, popContent: b, isUtc: x, setIsUtc: T, sign: U, hoursOffset: v, relativeString: l, absoluteString: p };
86
86
  }
87
87
  function A({
88
88
  locale: t,
89
- isUtc: e,
89
+ isUtc: e = !1,
90
90
  setIsUtc: m,
91
91
  useShortTimezone: a = !0
92
92
  }) {
@@ -120,13 +120,13 @@ function et({
120
120
  from: a = "",
121
121
  to: h = "",
122
122
  type: o = "relative",
123
- tz: s,
124
- relativeRange: L,
123
+ tz: s = void 0,
124
+ relativeRange: L = void 0,
125
125
  enableTooltip: C = !0,
126
- useShortTimezone: M = !1,
126
+ useShortTimezone: I = !1,
127
127
  disableTimezone: u = !1,
128
128
  placement: U = "top-end",
129
- format: y = "lll",
129
+ format: v = "lll",
130
130
  ...c
131
131
  }) {
132
132
  const { innerContent: x, popContent: T, isUtc: d, setIsUtc: n, relativeString: p } = w({
@@ -138,9 +138,9 @@ function et({
138
138
  type: o === "all" ? "utc" : o,
139
139
  tz: s,
140
140
  relativeRange: L,
141
- format: y
141
+ format: v
142
142
  });
143
- return o === "all" ? /* @__PURE__ */ i(O, { title: void 0, placement: U, enterTouchDelay: 0, children: /* @__PURE__ */ v(
143
+ return o === "all" ? /* @__PURE__ */ i(O, { title: void 0, placement: U, enterTouchDelay: 0, children: /* @__PURE__ */ M(
144
144
  f,
145
145
  {
146
146
  ...c,
@@ -156,13 +156,13 @@ function et({
156
156
  /* @__PURE__ */ i(f, { component: "span", ...c, sx: {}, children: x }),
157
157
  /* @__PURE__ */ i(f, { component: "span", sx: { color: "inherit" }, children: "·" }),
158
158
  /* @__PURE__ */ i(f, { component: "span", sx: { color: "text.secondary" }, children: p }),
159
- !u && /* @__PURE__ */ v(F, { children: [
159
+ !u && /* @__PURE__ */ M(F, { children: [
160
160
  /* @__PURE__ */ i(f, { component: "span", sx: { color: "inherit" }, children: "·" }),
161
- /* @__PURE__ */ i(A, { locale: e, isUtc: d, setIsUtc: n, useShortTimezone: M })
161
+ /* @__PURE__ */ i(A, { locale: e, isUtc: d, setIsUtc: n, useShortTimezone: I })
162
162
  ] })
163
163
  ]
164
164
  }
165
- ) }) : /* @__PURE__ */ i(O, { title: C ? T : void 0, placement: U, enterTouchDelay: 0, children: /* @__PURE__ */ v(
165
+ ) }) : /* @__PURE__ */ i(O, { title: C ? T : void 0, placement: U, enterTouchDelay: 0, children: /* @__PURE__ */ M(
166
166
  f,
167
167
  {
168
168
  sx: {
@@ -172,7 +172,7 @@ function et({
172
172
  },
173
173
  children: [
174
174
  /* @__PURE__ */ i(f, { component: "span", ...c, children: x }),
175
- o === "utc" && !u && /* @__PURE__ */ i(A, { locale: e, isUtc: d, setIsUtc: n, useShortTimezone: M })
175
+ o === "utc" && !u && /* @__PURE__ */ i(A, { locale: e, isUtc: d, setIsUtc: n, useShortTimezone: I })
176
176
  ]
177
177
  }
178
178
  ) });
@@ -1,11 +1,9 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { CancelRounded as f, Info as p } from "@mui/icons-material";
3
- import o from "./result.js";
4
- import r from "./translations.js";
5
- import { useLocaleContext as d } from "../Locale/context.js";
6
- import { useTheme as m } from "@mui/material";
7
- import "../Theme/theme.js";
8
- import "../Theme/theme-provider.js";
3
+ import o from "./result";
4
+ import r from "./translations";
5
+ import { useLocaleContext as d } from "../Locale/context";
6
+ import { useTheme as m } from "../Theme";
9
7
  const e = (t) => {
10
8
  t = ["zh", "en"].includes(t) ? t : "";
11
9
  const { locale: n } = d() || { locale: "en" }, c = t || n;
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import a from "./result.js";
3
- import * as t from "./common.js";
2
+ import a from "./result";
3
+ import * as t from "./common";
4
4
  const r = Object.keys(t).reduce(
5
5
  (o, e) => ({ ...o, [t[e].status || e]: t[e] }),
6
6
  {}
@@ -1,8 +1,8 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
2
  import { Box as n } from "@mui/material";
3
- import { styled as l } from "../Theme/index.js";
4
- function g({ icon: r, title: t = "", description: o = "", extra: i, ...f }) {
5
- return /* @__PURE__ */ c(s, { ...f, children: [
3
+ import { styled as c } from "../Theme";
4
+ function g({ icon: r = null, title: t = "", description: o = "", extra: i = null, ...l }) {
5
+ return /* @__PURE__ */ f(s, { ...l, children: [
6
6
  r,
7
7
  typeof t == "string" ? /* @__PURE__ */ e(
8
8
  n,
@@ -40,7 +40,7 @@ function g({ icon: r, title: t = "", description: o = "", extra: i, ...f }) {
40
40
  )
41
41
  ] });
42
42
  }
43
- const s = l("div")`
43
+ const s = c("div")`
44
44
  box-sizing: border-box;
45
45
  display: flex;
46
46
  flex-direction: column;
@@ -1,7 +1,7 @@
1
1
  import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
- import p from "./shells/Phone.js";
3
- import f from "./shells/Macbook.js";
4
- import { styled as m } from "../../Theme/index.js";
2
+ import p from "./shells/Phone";
3
+ import f from "./shells/Macbook";
4
+ import { styled as m } from "../../Theme";
5
5
  const u = {
6
6
  phone: p,
7
7
  macbook: f
@@ -67,7 +67,7 @@ declare const types: {
67
67
  };
68
68
  };
69
69
  export interface OldScreenshotProps extends React.ComponentProps<'div'> {
70
- type?: keyof typeof types;
70
+ type: keyof typeof types;
71
71
  className?: string;
72
72
  style?: React.CSSProperties;
73
73
  width?: number;
@@ -1,10 +1,10 @@
1
1
  import { jsx as s, jsxs as N } from "react/jsx-runtime";
2
- import { useRef as k, useState as v, useEffect as S, Children as g, cloneElement as $, createElement as z } from "react";
2
+ import { useRef as k, useState as v, useEffect as S, Children as g, cloneElement as z, createElement as $ } from "react";
3
3
  import a from "lodash/isUndefined";
4
- import { mergeProps as C } from "../Util/index.js";
5
- import { styled as b } from "../Theme/index.js";
6
- import j from "./BaseScreenshot/index.js";
7
- /* empty css */
4
+ import { mergeProps as C } from "../Util";
5
+ import { styled as b } from "../Theme";
6
+ import j from "./BaseScreenshot";
7
+ import "./devices.css";
8
8
  const u = {
9
9
  "iphone-x": {
10
10
  borderRadius: 32,
@@ -75,7 +75,7 @@ const u = {
75
75
  img: ["alt", "title", "src", "srcSet", "sizes", "loading", "key", "children"],
76
76
  video: ["alt", "title", "muted", "autoplay", "loop", "key", "children"]
77
77
  }, O = (t) => [
78
- z(
78
+ $(
79
79
  t.type,
80
80
  E[t.type].reduce((e, i) => (e[i] = t.props[i], e), {})
81
81
  )
@@ -107,7 +107,7 @@ function y(t) {
107
107
  contentRadius: d,
108
108
  contentZIndex: h,
109
109
  children: [
110
- /* @__PURE__ */ s("div", { className: "device-frame", children: /* @__PURE__ */ s("div", { className: "device-content", children: (f = w(g.toArray(n))) == null ? void 0 : f.map((R, x) => $(R, { key: x })) }) }),
110
+ /* @__PURE__ */ s("div", { className: "device-frame", children: /* @__PURE__ */ s("div", { className: "device-content", children: (f = w(g.toArray(n))) == null ? void 0 : f.map((R, x) => z(R, { key: x })) }) }),
111
111
  /* @__PURE__ */ s("div", { className: "device-stripe" }),
112
112
  /* @__PURE__ */ s("div", { className: "device-header" }),
113
113
  /* @__PURE__ */ s("div", { className: "device-sensors" }),
@@ -136,7 +136,7 @@ const H = b("div")`
136
136
  height: 100.1%;
137
137
  }
138
138
  `;
139
- function P(t) {
139
+ function P({ ...t }) {
140
140
  const e = k(null), [i, r] = v(), [n, o] = v(null);
141
141
  return S(() => {
142
142
  let c = null;
@@ -155,10 +155,10 @@ const W = b("div")`
155
155
  transform-origin: 0 0;
156
156
  }
157
157
  `;
158
- function _({ type: t, src: e = "", children: i, sx: r = {}, ...n }) {
158
+ function Z({ type: t, src: e = "", children: i, sx: r = {}, ...n }) {
159
159
  const o = t.toLowerCase();
160
160
  return ["phone", "macbook"].includes(o) ? /* @__PURE__ */ s(j, { type: o, sx: r, ...n, children: i || (e ? /* @__PURE__ */ s("img", { src: e, alt: "screenshot" }) : null) }) : /* @__PURE__ */ s(P, { type: t, sx: { ...r, margin: "auto" }, ...n, children: i || (e ? /* @__PURE__ */ s("img", { src: e, alt: "screenshot" }) : null) });
161
161
  }
162
162
  export {
163
- _ as default
163
+ Z as default
164
164
  };
@@ -1,14 +1,14 @@
1
1
  import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
2
  import { useRef as R } from "react";
3
- import { useTheme as b, Box as u, IconButton as w, Popper as C, ClickAwayListener as P, Fade as k, Paper as L, List as z, ListItem as A, ListItemButton as M, Typography as S } from "@mui/material";
3
+ import { useTheme as b, Box as u, IconButton as w, Popper as P, ClickAwayListener as k, Fade as C, Paper as L, List as z, ListItem as A, ListItemButton as M, Typography as S } from "@mui/material";
4
4
  import { Icon as m } from "@iconify/react";
5
5
  import T from "iconify-icons-material-symbols-400/dashboard-outline-rounded";
6
6
  import B from "@iconify-icons/material-symbols/widgets-outline-rounded";
7
7
  import { useReactive as E, useMemoizedFn as j } from "ahooks";
8
- import F from "../Button/index.js";
9
- import { BLOCKLET_SERVICE_PATH_PREFIX as O, NAVIGATION_URL as _ } from "../Util/constant.js";
10
- import D from "../SessionPermission/index.js";
11
- import { getTranslation as f } from "../Util/index.js";
8
+ import F from "../Button";
9
+ import { BLOCKLET_SERVICE_PATH_PREFIX as O, NAVIGATION_URL as _ } from "../Util/constant";
10
+ import D from "../SessionPermission";
11
+ import { getTranslation as f } from "../Util";
12
12
  function J({
13
13
  session: t,
14
14
  locale: a = "zh",
@@ -40,7 +40,7 @@ function J({
40
40
  children: [
41
41
  /* @__PURE__ */ o(w, { size: "medium", ref: s, children: /* @__PURE__ */ o(m, { icon: T, fontSize: h, style: { transform: "scale(1.08)" } }) }),
42
42
  /* @__PURE__ */ o(
43
- C,
43
+ P,
44
44
  {
45
45
  open: c.open,
46
46
  anchorEl: s.current,
@@ -48,12 +48,12 @@ function J({
48
48
  placement: "bottom-end",
49
49
  sx: { zIndex: 1600 },
50
50
  children: ({ TransitionProps: n }) => /* @__PURE__ */ o(
51
- P,
51
+ k,
52
52
  {
53
53
  onClickAway: (e) => {
54
54
  e.preventDefault(), e.stopPropagation(), i(!1);
55
55
  },
56
- children: /* @__PURE__ */ o(k, { ...n, timeout: 350, children: /* @__PURE__ */ d(
56
+ children: /* @__PURE__ */ o(C, { ...n, timeout: 350, children: /* @__PURE__ */ d(
57
57
  L,
58
58
  {
59
59
  variant: "outlined",
@@ -1,4 +1,5 @@
1
- import o from "../SessionUser/index.js";
1
+ import "../SessionUser";
2
+ import { default as m } from "../SessionUser";
2
3
  export {
3
- o as default
4
+ m as default
4
5
  };
@@ -2,6 +2,6 @@ import { BoxProps } from '@mui/material';
2
2
  import { Locale, Session } from '../../type';
3
3
  export interface DidSpaceProps extends BoxProps {
4
4
  session: Session;
5
- locale: Locale;
5
+ locale?: Locale;
6
6
  }
7
7
  export default function DidSpace({ session, locale, ...rest }: DidSpaceProps): import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,22 @@
1
1
  import { jsxs as a, Fragment as h, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as y } from "react";
3
- import { useMemoizedFn as s } from "ahooks";
3
+ import { useMemoizedFn as m } from "ahooks";
4
4
  import { useTheme as g, MenuItem as S, Divider as u } from "@mui/material";
5
- import { Icon as D } from "@iconify/react";
6
- import I from "@iconify-icons/material-symbols/lens";
7
- import { translate as v } from "../../Locale/util.js";
8
- import { translations as T } from "../libs/translation.js";
9
- import w from "../images/did-spaces.svg.js";
10
- import { DID_SPACE_URL as z } from "../../Util/constant.js";
11
- import { TBox as k } from "../../MuiWrap/index.js";
12
- import F from "../../Typography/index.js";
13
- function O({ session: m, locale: l = "en", ...c }) {
5
+ import { Icon as I } from "@iconify/react";
6
+ import D from "@iconify-icons/material-symbols/lens";
7
+ import { translate as T } from "../../Locale/util";
8
+ import { translations as v } from "../libs/translation";
9
+ import w from "../images/did-spaces.svg";
10
+ import { DID_SPACE_URL as z } from "../../Util/constant";
11
+ import { TBox as k } from "../../MuiWrap";
12
+ import F from "../../Typography";
13
+ function O({ session: s, locale: c = "en", ...l }) {
14
14
  var p;
15
- const d = s((r, i = {}) => v(T, r, l, "en", i)), t = g(), o = ((p = m.user) == null ? void 0 : p.didSpace) ?? {}, [n, f] = y(0), x = s(({ fontSize: r, initialSize: i }) => {
15
+ const d = m((r, i = {}) => T(v, r, c, "en", i)), t = g(), o = ((p = s.user) == null ? void 0 : p.didSpace) ?? {}, [n, f] = y(0), x = m(({ fontSize: r, initialSize: i }) => {
16
16
  f(Math.ceil((i - r) / 4));
17
17
  });
18
18
  return /* @__PURE__ */ a(h, { children: [
19
- /* @__PURE__ */ e(k, { component: "a", href: z, sx: { p: 0.5, display: "block", textDecoration: "none" }, ...c, children: /* @__PURE__ */ a(
19
+ /* @__PURE__ */ e(k, { component: "a", href: z, sx: { p: 0.5, display: "block", textDecoration: "none" }, ...l, children: /* @__PURE__ */ a(
20
20
  S,
21
21
  {
22
22
  sx: {
@@ -52,10 +52,10 @@ function O({ session: m, locale: l = "en", ...c }) {
52
52
  }
53
53
  ),
54
54
  /* @__PURE__ */ e(
55
- D,
55
+ I,
56
56
  {
57
57
  style: { marginTop: `${n}px`, flexShrink: 0 },
58
- icon: I,
58
+ icon: D,
59
59
  fontSize: 8,
60
60
  color: o.did ? t.palette.success.main : t.palette.grey[200]
61
61
  }
@@ -10,50 +10,50 @@ import ee from "@iconify-icons/material-symbols/account-circle-off-outline-round
10
10
  import re from "@iconify-icons/material-symbols/featured-seasonal-and-gifts-rounded";
11
11
  import te from "copy-to-clipboard";
12
12
  import P from "lodash/noop";
13
- import oe from "../../Toast/index.js";
14
- import ie from "../../Avatar/index.js";
15
- import { getUserAvatar as ne } from "../../Util/index.js";
16
- import ce from "./user-info.js";
17
- import { DASHBOARD_URL as ae, PROFILE_URL as le } from "../../Util/constant.js";
18
- import pe from "../../SessionPermission/index.js";
19
- import { translations as ue } from "../libs/translation.js";
20
- import { translate as de } from "../../Locale/util.js";
21
- import me from "./did-space.js";
22
- import { mergeSx as se } from "../../Util/style.js";
23
- import { createDebug as fe } from "../../Util/logger.js";
13
+ import oe from "../../Toast";
14
+ import ie from "../../Avatar";
15
+ import { getUserAvatar as ne } from "../../Util";
16
+ import ce from "./user-info";
17
+ import { DASHBOARD_URL as le, PROFILE_URL as ae } from "../../Util/constant";
18
+ import pe from "../../SessionPermission";
19
+ import { translations as ue } from "../libs/translation";
20
+ import { translate as de } from "../../Locale/util";
21
+ import me from "./did-space";
22
+ import { mergeSx as se } from "../../Util/style";
23
+ import { createDebug as fe } from "../../Util/logger";
24
24
  const he = (e) => {
25
- const l = new URL(window.location.href);
26
- return l.searchParams.set("inviter", e), l.toString();
25
+ const a = new URL(window.location.href);
26
+ return a.searchParams.set("inviter", e), a.toString();
27
27
  }, v = fe("did-connect");
28
28
  function je({
29
29
  session: e,
30
- onBindWallet: l = P,
30
+ onBindWallet: a = P,
31
31
  isBlocklet: c = !0,
32
32
  locale: f = "en",
33
33
  size: R = 24,
34
34
  popperType: C = "click",
35
- sx: B,
36
- ...D
35
+ sx: D,
36
+ ...B
37
37
  }) {
38
38
  var S, b;
39
39
  const u = n((r, o = {}) => de(ue, r, f, "en", o)), L = H(() => {
40
- var r, o, a;
41
- return !!((a = (o = (r = globalThis == null ? void 0 : globalThis.blocklet) == null ? void 0 : r.settings) == null ? void 0 : o.invite) != null && a.enabled);
40
+ var r, o, l;
41
+ return !!((l = (o = (r = globalThis == null ? void 0 : globalThis.blocklet) == null ? void 0 : r.settings) == null ? void 0 : o.invite) != null && l.enabled);
42
42
  }, []), x = T(null), h = N({
43
43
  open: !1
44
44
  }), i = n((r = !h.open) => {
45
45
  h.open = r;
46
- }), O = C === "hover" ? { onMouseEnter: () => i(!0), onMouseLeave: () => i(!1) } : { onClick: () => i() }, M = ne((b = (S = e.user) == null ? void 0 : S.avatar) == null ? void 0 : b.replace(/\s/g, encodeURIComponent(" "))), E = e.useOAuth(), U = typeof e.usePasskey == "function" ? e.usePasskey() : null, w = n(({ inArcSphere: r = !1 } = {}) => {
47
- var a, d, p;
46
+ }), O = C === "hover" ? { onMouseEnter: () => i(!0), onMouseLeave: () => i(!1) } : { onClick: () => i() }, M = ne((b = (S = e.user) == null ? void 0 : S.avatar) == null ? void 0 : b.replace(/\s/g, encodeURIComponent(" "))), U = e.useOAuth(), E = typeof e.usePasskey == "function" ? e.usePasskey() : null, w = n(({ inArcSphere: r = !1 } = {}) => {
47
+ var l, d, p;
48
48
  const o = {};
49
- r && (a = e == null ? void 0 : e.user) != null && a.sourceAppPid && (o.sourceAppPid = e.user.sourceAppPid), i(!1), ((d = e == null ? void 0 : e.user) == null ? void 0 : d.sourceProvider) === "passkey" ? U.switchPassport(e.user) : ["google", "apple", "email", "github"].includes((p = e == null ? void 0 : e.user) == null ? void 0 : p.sourceProvider) ? E.switchOAuthPassport(e.user) : e.switchPassport(P, o);
50
- }), A = n(({ userSession: r, inArcSphere: o = !1 } = {}) => new Promise((a) => {
49
+ r && (l = e == null ? void 0 : e.user) != null && l.sourceAppPid && (o.sourceAppPid = e.user.sourceAppPid), i(!1), ((d = e == null ? void 0 : e.user) == null ? void 0 : d.sourceProvider) === "passkey" ? E.switchPassport(e.user) : ["google", "apple", "email", "github"].includes((p = e == null ? void 0 : e.user) == null ? void 0 : p.sourceProvider) ? U.switchOAuthPassport(e.user) : e.switchPassport(P, o);
50
+ }), A = n(({ userSession: r, inArcSphere: o = !1 } = {}) => new Promise((l) => {
51
51
  const d = {};
52
52
  o && e.user.sourceAppPid && (d.sourceAppPid = e.user.sourceAppPid);
53
53
  const p = {};
54
54
  r ? p.userSession = r : (i(!1), p.showQuickConnect = !1), e.switchDid(
55
55
  () => {
56
- i(!1), a();
56
+ i(!1), l();
57
57
  },
58
58
  d,
59
59
  p
@@ -63,9 +63,9 @@ function je({
63
63
  r && e.user.sourceAppPid && (o.sourceAppPid = e.user.sourceAppPid), i(!1), e.switchProfile(P, o);
64
64
  }), F = n(() => {
65
65
  i(!1), e.logout();
66
- }), W = n(() => {
67
- i(!1), e.bindWallet(l);
68
66
  }), z = n(() => {
67
+ i(!1), e.bindWallet(a);
68
+ }), W = n(() => {
69
69
  i(!1);
70
70
  const r = he(e.user.did);
71
71
  te(r), oe.success(u("inviteCopied"));
@@ -88,9 +88,9 @@ function je({
88
88
  justifyContent: "center"
89
89
  },
90
90
  // @ts-ignore
91
- B
91
+ D
92
92
  ),
93
- ...D,
93
+ ...B,
94
94
  children: [
95
95
  /* @__PURE__ */ t(
96
96
  Q,
@@ -139,7 +139,7 @@ function je({
139
139
  onSwitchPassport: w,
140
140
  onSwitchAccount: A,
141
141
  onSwitchProfile: k,
142
- onBindWallet: W
142
+ onBindWallet: z
143
143
  }
144
144
  ),
145
145
  /* @__PURE__ */ t(I, { sx: { m: "0 !important" } }),
@@ -151,7 +151,7 @@ function je({
151
151
  icon: $,
152
152
  title: u("dashboard"),
153
153
  component: "a",
154
- href: ae,
154
+ href: le,
155
155
  sx: { display: "block", textDecoration: "none", color: "inherit" }
156
156
  }
157
157
  ) }),
@@ -161,7 +161,7 @@ function je({
161
161
  icon: Z,
162
162
  title: u("profile"),
163
163
  component: "a",
164
- href: le,
164
+ href: ae,
165
165
  sx: { display: "block", textDecoration: "none", color: "inherit" }
166
166
  }
167
167
  ),
@@ -171,7 +171,7 @@ function je({
171
171
  icon: re,
172
172
  title: u("invite"),
173
173
  component: "div",
174
- onClick: z,
174
+ onClick: W,
175
175
  sx: { display: "block", color: "inherit" }
176
176
  }
177
177
  ),
@@ -203,7 +203,7 @@ function je({
203
203
  }
204
204
  function s({
205
205
  icon: e,
206
- title: l,
206
+ title: a,
207
207
  ...c
208
208
  }) {
209
209
  return /* @__PURE__ */ t(y, { ...c, sx: { p: 0.5, ...c == null ? void 0 : c.sx }, children: /* @__PURE__ */ m(
@@ -221,7 +221,7 @@ function s({
221
221
  },
222
222
  children: [
223
223
  /* @__PURE__ */ t(Y, { icon: e, fontSize: 24 }),
224
- l
224
+ a
225
225
  ]
226
226
  }
227
227
  ) });
@@ -1,20 +1,20 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { useTheme as g, useMediaQuery as v, Box as o, Typography as n, Chip as y } from "@mui/material";
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { useTheme as g, useMediaQuery as v, Box as e, Typography as p, Chip as y } from "@mui/material";
3
3
  import b from "lodash/noop";
4
- import w from "../../RelativeTime/index.js";
5
- import u from "../../WalletOSIcon/index.js";
6
- import { DID as z } from "../../DID/index.js";
7
- import k from "../../Avatar/index.js";
8
- import { getSourceProvider as I } from "../libs/utils.js";
9
- function M({
4
+ import w from "../../RelativeTime";
5
+ import z from "../../WalletOSIcon";
6
+ import { DID as k } from "../../DID";
7
+ import u from "../../Avatar";
8
+ import { getSourceProvider as I } from "../libs/utils";
9
+ function Q({
10
10
  userSession: t,
11
11
  locale: a = "en",
12
- onClick: p = b
12
+ onClick: n = b
13
13
  }) {
14
- var l, i, d, c;
14
+ var l, i, c, d;
15
15
  const { palette: m } = g(), x = v((h) => h.breakpoints.down("md")), f = I(t == null ? void 0 : t.user) === "wallet";
16
- return /* @__PURE__ */ e(
17
- o,
16
+ return /* @__PURE__ */ o(
17
+ e,
18
18
  {
19
19
  sx: {
20
20
  p: 2,
@@ -32,10 +32,10 @@ function M({
32
32
  },
33
33
  width: "100%"
34
34
  },
35
- onClick: p,
35
+ onClick: n,
36
36
  children: [
37
- /* @__PURE__ */ e(
38
- o,
37
+ /* @__PURE__ */ o(
38
+ e,
39
39
  {
40
40
  sx: {
41
41
  display: "flex",
@@ -45,12 +45,12 @@ function M({
45
45
  overflow: "hidden"
46
46
  },
47
47
  children: [
48
- /* @__PURE__ */ r(k, { src: t.user.avatar, did: t.user.did, size: 44, variant: "circle", shape: "circle" }),
49
- /* @__PURE__ */ e(o, { sx: { flex: 1, overflow: "hidden" }, children: [
50
- /* @__PURE__ */ e(
51
- n,
48
+ /* @__PURE__ */ r(u, { src: t.user.avatar, did: t.user.did, size: 44, variant: "circle", shape: "circle" }),
49
+ /* @__PURE__ */ o(e, { sx: { flex: 1, overflow: "hidden" }, children: [
50
+ /* @__PURE__ */ o(
51
+ p,
52
52
  {
53
- component: o,
53
+ component: e,
54
54
  sx: {
55
55
  fontSize: "16px",
56
56
  fontWeight: 500,
@@ -79,8 +79,8 @@ function M({
79
79
  ]
80
80
  }
81
81
  ),
82
- f ? /* @__PURE__ */ e(
83
- o,
82
+ f ? /* @__PURE__ */ o(
83
+ e,
84
84
  {
85
85
  sx: {
86
86
  display: "flex",
@@ -89,15 +89,15 @@ function M({
89
89
  },
90
90
  children: [
91
91
  /* @__PURE__ */ r(
92
- u,
92
+ z,
93
93
  {
94
- provider: (d = t == null ? void 0 : t.extra) == null ? void 0 : d.provider,
95
- walletOS: (c = t == null ? void 0 : t.extra) == null ? void 0 : c.walletOS,
94
+ provider: (c = t == null ? void 0 : t.extra) == null ? void 0 : c.provider,
95
+ walletOS: (d = t == null ? void 0 : t.extra) == null ? void 0 : d.walletOS,
96
96
  color: m.text.secondary
97
97
  }
98
98
  ),
99
99
  /* @__PURE__ */ r(
100
- z,
100
+ k,
101
101
  {
102
102
  locale: a,
103
103
  did: t.user.did,
@@ -115,16 +115,16 @@ function M({
115
115
  )
116
116
  ]
117
117
  }
118
- ) : /* @__PURE__ */ r(n, { sx: { fontSize: "12px", color: "text.secondary" }, children: t.user.email })
118
+ ) : /* @__PURE__ */ r(p, { sx: { fontSize: "12px", color: "text.secondary" }, children: t.user.email })
119
119
  ] })
120
120
  ]
121
121
  }
122
122
  ),
123
- t.updatedAt && !x && /* @__PURE__ */ r(o, { component: "span", sx: { color: "text.hint", fontSize: "12px", flexShrink: 0 }, children: /* @__PURE__ */ r(w, { value: t.updatedAt, locale: a }) })
123
+ t.updatedAt && !x && /* @__PURE__ */ r(e, { component: "span", sx: { color: "text.hint", fontSize: "12px", flexShrink: 0 }, children: /* @__PURE__ */ r(w, { value: t.updatedAt, locale: a }) })
124
124
  ]
125
125
  }
126
126
  );
127
127
  }
128
128
  export {
129
- M as default
129
+ Q as default
130
130
  };