@microcosmmoney/portal-react 3.12.8 → 3.13.1

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 (351) hide show
  1. package/dist/index.d.ts +22 -0
  2. package/dist/index.js +48 -1
  3. package/dist/main-portal/components/auctions/AuctionsPage.d.ts +1 -0
  4. package/dist/main-portal/components/auctions/AuctionsPage.js +218 -0
  5. package/dist/main-portal/components/data/asset-stats.d.ts +1 -0
  6. package/dist/main-portal/components/data/asset-stats.js +33 -0
  7. package/dist/main-portal/components/data/charts/MCCSupplyChart.d.ts +7 -0
  8. package/dist/main-portal/components/data/charts/MCCSupplyChart.js +27 -0
  9. package/dist/main-portal/components/data/charts/MiningTrendChart.d.ts +7 -0
  10. package/dist/main-portal/components/data/charts/MiningTrendChart.js +39 -0
  11. package/dist/main-portal/components/data/charts/PriceChart.d.ts +5 -0
  12. package/dist/main-portal/components/data/charts/PriceChart.js +99 -0
  13. package/dist/main-portal/components/data/charts/TeamWalletChart.d.ts +7 -0
  14. package/dist/main-portal/components/data/charts/TeamWalletChart.js +33 -0
  15. package/dist/main-portal/components/data/charts/TerritoryProgressChart.d.ts +7 -0
  16. package/dist/main-portal/components/data/charts/TerritoryProgressChart.js +35 -0
  17. package/dist/main-portal/components/data/charts/UserLevelPieChart.d.ts +7 -0
  18. package/dist/main-portal/components/data/charts/UserLevelPieChart.js +34 -0
  19. package/dist/main-portal/components/data/charts/index.d.ts +5 -0
  20. package/dist/main-portal/components/data/charts/index.js +14 -0
  21. package/dist/main-portal/components/data/data-hero.d.ts +1 -0
  22. package/dist/main-portal/components/data/data-hero.js +81 -0
  23. package/dist/main-portal/components/data/mining-history-stats.d.ts +1 -0
  24. package/dist/main-portal/components/data/mining-history-stats.js +44 -0
  25. package/dist/main-portal/components/data/team-wallet-stats.d.ts +1 -0
  26. package/dist/main-portal/components/data/team-wallet-stats.js +34 -0
  27. package/dist/main-portal/components/data/territory-stats.d.ts +1 -0
  28. package/dist/main-portal/components/data/territory-stats.js +48 -0
  29. package/dist/main-portal/components/data/user-level-stats.d.ts +1 -0
  30. package/dist/main-portal/components/data/user-level-stats.js +36 -0
  31. package/dist/main-portal/components/fragment/FragmentPage.d.ts +1 -0
  32. package/dist/main-portal/components/fragment/FragmentPage.js +13 -0
  33. package/dist/main-portal/components/income/ManagerIncomePage.d.ts +1 -0
  34. package/dist/main-portal/components/income/ManagerIncomePage.js +147 -0
  35. package/dist/main-portal/components/layout/AppSidebar.d.ts +3 -0
  36. package/dist/main-portal/components/layout/AppSidebar.js +88 -0
  37. package/dist/main-portal/components/layout/DashboardHeader.d.ts +1 -0
  38. package/dist/main-portal/components/layout/DashboardHeader.js +121 -0
  39. package/dist/main-portal/components/layout/LocaleSwitcher.d.ts +1 -0
  40. package/dist/main-portal/components/layout/LocaleSwitcher.js +30 -0
  41. package/dist/main-portal/components/layout/MainFooter.d.ts +2 -0
  42. package/dist/main-portal/components/layout/MainFooter.js +50 -0
  43. package/dist/main-portal/components/layout/ShadcnNavbar.d.ts +1 -0
  44. package/dist/main-portal/components/layout/ShadcnNavbar.js +155 -0
  45. package/dist/main-portal/components/layout/TerminalSidebar.d.ts +1 -0
  46. package/dist/main-portal/components/layout/TerminalSidebar.js +110 -0
  47. package/dist/main-portal/components/lending/LendingPage.d.ts +1 -0
  48. package/dist/main-portal/components/lending/LendingPage.js +20 -0
  49. package/dist/main-portal/components/mcd/MCDPage.d.ts +1 -0
  50. package/dist/main-portal/components/mcd/MCDPage.js +125 -0
  51. package/dist/main-portal/components/messages/MessagesPage.d.ts +1 -0
  52. package/dist/main-portal/components/messages/MessagesPage.js +13 -0
  53. package/dist/main-portal/components/mining/MiningDistributionHistory.d.ts +11 -0
  54. package/dist/main-portal/components/mining/MiningDistributionHistory.js +84 -0
  55. package/dist/main-portal/components/mining/MiningModal.d.ts +12 -0
  56. package/dist/main-portal/components/mining/MiningModal.js +302 -0
  57. package/dist/main-portal/components/mining/MiningPage.d.ts +1 -0
  58. package/dist/main-portal/components/mining/MiningPage.js +237 -0
  59. package/dist/main-portal/components/mining/index.d.ts +1 -0
  60. package/dist/main-portal/components/mining/index.js +6 -0
  61. package/dist/main-portal/components/notifications/NotificationsPage.d.ts +1 -0
  62. package/dist/main-portal/components/notifications/NotificationsPage.js +13 -0
  63. package/dist/main-portal/components/organization/OrganizationPage.d.ts +1 -0
  64. package/dist/main-portal/components/organization/OrganizationPage.js +235 -0
  65. package/dist/main-portal/components/organization/connection-line.d.ts +12 -0
  66. package/dist/main-portal/components/organization/connection-line.js +38 -0
  67. package/dist/main-portal/components/organization/diagram-node.d.ts +17 -0
  68. package/dist/main-portal/components/organization/diagram-node.js +105 -0
  69. package/dist/main-portal/components/organization/system-panel.d.ts +11 -0
  70. package/dist/main-portal/components/organization/system-panel.js +72 -0
  71. package/dist/main-portal/components/profile/EmailChangeCard.d.ts +1 -0
  72. package/dist/main-portal/components/profile/EmailChangeCard.js +58 -0
  73. package/dist/main-portal/components/profile/ProfilePage.d.ts +1 -0
  74. package/dist/main-portal/components/profile/ProfilePage.js +263 -0
  75. package/dist/main-portal/components/profile/TwoFactorSettings.d.ts +1 -0
  76. package/dist/main-portal/components/profile/TwoFactorSettings.js +99 -0
  77. package/dist/main-portal/components/providers/ClientProviders.d.ts +6 -0
  78. package/dist/main-portal/components/providers/ClientProviders.js +17 -0
  79. package/dist/main-portal/components/providers/SolanaWalletProvider.d.ts +7 -0
  80. package/dist/main-portal/components/providers/SolanaWalletProvider.js +17 -0
  81. package/dist/main-portal/components/providers/theme-provider.d.ts +5 -0
  82. package/dist/main-portal/components/providers/theme-provider.js +10 -0
  83. package/dist/main-portal/components/queue/QueueStatusPage.d.ts +1 -0
  84. package/dist/main-portal/components/queue/QueueStatusPage.js +245 -0
  85. package/dist/main-portal/components/reincarnation/ReincarnationPage.d.ts +1 -0
  86. package/dist/main-portal/components/reincarnation/ReincarnationPage.js +87 -0
  87. package/dist/main-portal/components/resources/mcc-stats-section.d.ts +1 -0
  88. package/dist/main-portal/components/resources/mcc-stats-section.js +199 -0
  89. package/dist/main-portal/components/resources/mcd-stats-section.d.ts +1 -0
  90. package/dist/main-portal/components/resources/mcd-stats-section.js +76 -0
  91. package/dist/main-portal/components/resources/minting-entry-section.d.ts +1 -0
  92. package/dist/main-portal/components/resources/minting-entry-section.js +70 -0
  93. package/dist/main-portal/components/resources/public-mining-modal.d.ts +7 -0
  94. package/dist/main-portal/components/resources/public-mining-modal.js +239 -0
  95. package/dist/main-portal/components/resources/recycle-pool-section.d.ts +1 -0
  96. package/dist/main-portal/components/resources/recycle-pool-section.js +82 -0
  97. package/dist/main-portal/components/resources/registration-prompt.d.ts +8 -0
  98. package/dist/main-portal/components/resources/registration-prompt.js +13 -0
  99. package/dist/main-portal/components/rewards/RewardsPage.d.ts +1 -0
  100. package/dist/main-portal/components/rewards/RewardsPage.js +149 -0
  101. package/dist/main-portal/components/security/domain-verification-bar.d.ts +1 -0
  102. package/dist/main-portal/components/security/domain-verification-bar.js +32 -0
  103. package/dist/main-portal/components/stations/StationDetailPage.d.ts +5 -0
  104. package/dist/main-portal/components/stations/StationDetailPage.js +232 -0
  105. package/dist/main-portal/components/stations/StationIncomeChart.d.ts +11 -0
  106. package/dist/main-portal/components/stations/StationIncomeChart.js +57 -0
  107. package/dist/main-portal/components/stations/StationKPIHistory.d.ts +1 -0
  108. package/dist/main-portal/components/stations/StationKPIHistory.js +7 -0
  109. package/dist/main-portal/components/stations/StationListPage.d.ts +1 -0
  110. package/dist/main-portal/components/stations/StationListPage.js +341 -0
  111. package/dist/main-portal/components/stations/StationMemberRanking.d.ts +13 -0
  112. package/dist/main-portal/components/stations/StationMemberRanking.js +64 -0
  113. package/dist/main-portal/components/stations/StationSummaryCards.d.ts +13 -0
  114. package/dist/main-portal/components/stations/StationSummaryCards.js +30 -0
  115. package/dist/main-portal/components/stations/StationsPage.d.ts +1 -0
  116. package/dist/main-portal/components/stations/StationsPage.js +239 -0
  117. package/dist/main-portal/components/territory/TerritoryNFTBrowser.d.ts +1 -0
  118. package/dist/main-portal/components/territory/TerritoryNFTBrowser.js +147 -0
  119. package/dist/main-portal/components/ui/accordion.d.ts +7 -0
  120. package/dist/main-portal/components/ui/accordion.js +57 -0
  121. package/dist/main-portal/components/ui/alert-dialog.d.ts +14 -0
  122. package/dist/main-portal/components/ui/alert-dialog.js +85 -0
  123. package/dist/main-portal/components/ui/alert.d.ts +9 -0
  124. package/dist/main-portal/components/ui/alert.js +28 -0
  125. package/dist/main-portal/components/ui/aspect-ratio.d.ts +3 -0
  126. package/dist/main-portal/components/ui/aspect-ratio.js +43 -0
  127. package/dist/main-portal/components/ui/avatar.d.ts +6 -0
  128. package/dist/main-portal/components/ui/avatar.js +52 -0
  129. package/dist/main-portal/components/ui/badge.d.ts +9 -0
  130. package/dist/main-portal/components/ui/badge.js +26 -0
  131. package/dist/main-portal/components/ui/breadcrumb.d.ts +11 -0
  132. package/dist/main-portal/components/ui/breadcrumb.js +35 -0
  133. package/dist/main-portal/components/ui/button-group.d.ts +11 -0
  134. package/dist/main-portal/components/ui/button-group.js +34 -0
  135. package/dist/main-portal/components/ui/button.d.ts +10 -0
  136. package/dist/main-portal/components/ui/button.js +35 -0
  137. package/dist/main-portal/components/ui/calendar.d.ts +8 -0
  138. package/dist/main-portal/components/ui/calendar.js +111 -0
  139. package/dist/main-portal/components/ui/card.d.ts +17 -0
  140. package/dist/main-portal/components/ui/card.js +41 -0
  141. package/dist/main-portal/components/ui/carousel.d.ts +19 -0
  142. package/dist/main-portal/components/ui/carousel.js +134 -0
  143. package/dist/main-portal/components/ui/chart.d.ts +40 -0
  144. package/dist/main-portal/components/ui/chart.js +168 -0
  145. package/dist/main-portal/components/ui/checkbox.d.ts +4 -0
  146. package/dist/main-portal/components/ui/checkbox.js +45 -0
  147. package/dist/main-portal/components/ui/collapsible.d.ts +5 -0
  148. package/dist/main-portal/components/ui/collapsible.js +51 -0
  149. package/dist/main-portal/components/ui/command.d.ts +18 -0
  150. package/dist/main-portal/components/ui/command.js +45 -0
  151. package/dist/main-portal/components/ui/context-menu.d.ts +25 -0
  152. package/dist/main-portal/components/ui/context-menu.js +101 -0
  153. package/dist/main-portal/components/ui/dialog.d.ts +15 -0
  154. package/dist/main-portal/components/ui/dialog.js +81 -0
  155. package/dist/main-portal/components/ui/drawer.d.ts +13 -0
  156. package/dist/main-portal/components/ui/drawer.js +47 -0
  157. package/dist/main-portal/components/ui/dropdown-menu.d.ts +25 -0
  158. package/dist/main-portal/components/ui/dropdown-menu.js +101 -0
  159. package/dist/main-portal/components/ui/empty.d.ts +11 -0
  160. package/dist/main-portal/components/ui/empty.js +41 -0
  161. package/dist/main-portal/components/ui/field.d.ts +24 -0
  162. package/dist/main-portal/components/ui/field.js +85 -0
  163. package/dist/main-portal/components/ui/form.d.ts +24 -0
  164. package/dist/main-portal/components/ui/form.js +103 -0
  165. package/dist/main-portal/components/ui/hover-avatar.d.ts +10 -0
  166. package/dist/main-portal/components/ui/hover-avatar.js +70 -0
  167. package/dist/main-portal/components/ui/hover-card.d.ts +6 -0
  168. package/dist/main-portal/components/ui/hover-card.js +52 -0
  169. package/dist/main-portal/components/ui/input-group.d.ts +15 -0
  170. package/dist/main-portal/components/ui/input-group.js +65 -0
  171. package/dist/main-portal/components/ui/input-otp.d.ts +11 -0
  172. package/dist/main-portal/components/ui/input-otp.js +60 -0
  173. package/dist/main-portal/components/ui/input.d.ts +3 -0
  174. package/dist/main-portal/components/ui/input.js +8 -0
  175. package/dist/main-portal/components/ui/item.d.ts +23 -0
  176. package/dist/main-portal/components/ui/item.js +77 -0
  177. package/dist/main-portal/components/ui/kbd.d.ts +3 -0
  178. package/dist/main-portal/components/ui/kbd.js +13 -0
  179. package/dist/main-portal/components/ui/label.d.ts +4 -0
  180. package/dist/main-portal/components/ui/label.js +44 -0
  181. package/dist/main-portal/components/ui/menubar.d.ts +26 -0
  182. package/dist/main-portal/components/ui/menubar.js +105 -0
  183. package/dist/main-portal/components/ui/navigation-menu.d.ts +14 -0
  184. package/dist/main-portal/components/ui/navigation-menu.js +75 -0
  185. package/dist/main-portal/components/ui/pagination.d.ts +13 -0
  186. package/dist/main-portal/components/ui/pagination.js +37 -0
  187. package/dist/main-portal/components/ui/popover.d.ts +7 -0
  188. package/dist/main-portal/components/ui/popover.js +56 -0
  189. package/dist/main-portal/components/ui/progress.d.ts +4 -0
  190. package/dist/main-portal/components/ui/progress.js +44 -0
  191. package/dist/main-portal/components/ui/radio-group.d.ts +5 -0
  192. package/dist/main-portal/components/ui/radio-group.js +49 -0
  193. package/dist/main-portal/components/ui/resizable.d.ts +8 -0
  194. package/dist/main-portal/components/ui/resizable.js +53 -0
  195. package/dist/main-portal/components/ui/scroll-area.d.ts +5 -0
  196. package/dist/main-portal/components/ui/scroll-area.js +50 -0
  197. package/dist/main-portal/components/ui/select.d.ts +15 -0
  198. package/dist/main-portal/components/ui/select.js +83 -0
  199. package/dist/main-portal/components/ui/separator.d.ts +4 -0
  200. package/dist/main-portal/components/ui/separator.js +44 -0
  201. package/dist/main-portal/components/ui/sheet.d.ts +13 -0
  202. package/dist/main-portal/components/ui/sheet.js +83 -0
  203. package/dist/main-portal/components/ui/sidebar.d.ts +69 -0
  204. package/dist/main-portal/components/ui/sidebar.js +258 -0
  205. package/dist/main-portal/components/ui/skeleton.d.ts +2 -0
  206. package/dist/main-portal/components/ui/skeleton.js +9 -0
  207. package/dist/main-portal/components/ui/slider.d.ts +4 -0
  208. package/dist/main-portal/components/ui/slider.js +50 -0
  209. package/dist/main-portal/components/ui/sonner.d.ts +3 -0
  210. package/dist/main-portal/components/ui/sonner.js +17 -0
  211. package/dist/main-portal/components/ui/spinner.d.ts +2 -0
  212. package/dist/main-portal/components/ui/spinner.js +10 -0
  213. package/dist/main-portal/components/ui/switch.d.ts +4 -0
  214. package/dist/main-portal/components/ui/switch.js +44 -0
  215. package/dist/main-portal/components/ui/table.d.ts +10 -0
  216. package/dist/main-portal/components/ui/table.js +38 -0
  217. package/dist/main-portal/components/ui/tabs.d.ts +7 -0
  218. package/dist/main-portal/components/ui/tabs.js +53 -0
  219. package/dist/main-portal/components/ui/terminal.d.ts +49 -0
  220. package/dist/main-portal/components/ui/terminal.js +56 -0
  221. package/dist/main-portal/components/ui/textarea.d.ts +3 -0
  222. package/dist/main-portal/components/ui/textarea.js +8 -0
  223. package/dist/main-portal/components/ui/time-remaining.d.ts +54 -0
  224. package/dist/main-portal/components/ui/time-remaining.js +223 -0
  225. package/dist/main-portal/components/ui/toast.d.ts +15 -0
  226. package/dist/main-portal/components/ui/toast.js +77 -0
  227. package/dist/main-portal/components/ui/toaster.d.ts +1 -0
  228. package/dist/main-portal/components/ui/toaster.js +14 -0
  229. package/dist/main-portal/components/ui/toggle-group.d.ts +7 -0
  230. package/dist/main-portal/components/ui/toggle-group.js +58 -0
  231. package/dist/main-portal/components/ui/toggle.d.ts +9 -0
  232. package/dist/main-portal/components/ui/toggle.js +64 -0
  233. package/dist/main-portal/components/ui/tooltip.d.ts +7 -0
  234. package/dist/main-portal/components/ui/tooltip.js +56 -0
  235. package/dist/main-portal/components/ui/use-mobile.d.ts +1 -0
  236. package/dist/main-portal/components/ui/use-mobile.js +53 -0
  237. package/dist/main-portal/components/voting/VotingPage.d.ts +1 -0
  238. package/dist/main-portal/components/voting/VotingPage.js +14 -0
  239. package/dist/main-portal/components/wallet/MCCHistory.d.ts +9 -0
  240. package/dist/main-portal/components/wallet/MCCHistory.js +100 -0
  241. package/dist/main-portal/components/wallet/WalletManagement.d.ts +5 -0
  242. package/dist/main-portal/components/wallet/WalletManagement.js +144 -0
  243. package/dist/main-portal/components/wallet/WalletPage.d.ts +1 -0
  244. package/dist/main-portal/components/wallet/WalletPage.js +130 -0
  245. package/dist/main-portal/config/menu-config.d.ts +22 -0
  246. package/dist/main-portal/config/menu-config.js +167 -0
  247. package/dist/main-portal/contexts/MCCPriceContext.d.ts +38 -0
  248. package/dist/main-portal/contexts/MCCPriceContext.js +70 -0
  249. package/dist/main-portal/contexts/WalletContext.d.ts +48 -0
  250. package/dist/main-portal/contexts/WalletContext.js +94 -0
  251. package/dist/main-portal/hooks/index.d.ts +4 -0
  252. package/dist/main-portal/hooks/index.js +11 -0
  253. package/dist/main-portal/hooks/use-breakpoint.d.ts +45 -0
  254. package/dist/main-portal/hooks/use-breakpoint.js +91 -0
  255. package/dist/main-portal/hooks/use-mobile.d.ts +1 -0
  256. package/dist/main-portal/hooks/use-mobile.js +55 -0
  257. package/dist/main-portal/hooks/use-toast.d.ts +44 -0
  258. package/dist/main-portal/hooks/use-toast.js +164 -0
  259. package/dist/main-portal/hooks/useAuth.d.ts +30 -0
  260. package/dist/main-portal/hooks/useAuth.js +136 -0
  261. package/dist/main-portal/hooks/useMCC.d.ts +26 -0
  262. package/dist/main-portal/hooks/useMCC.js +148 -0
  263. package/dist/main-portal/hooks/useMCD.d.ts +17 -0
  264. package/dist/main-portal/hooks/useMCD.js +114 -0
  265. package/dist/main-portal/hooks/useMultiWalletBalance.d.ts +31 -0
  266. package/dist/main-portal/hooks/useMultiWalletBalance.js +65 -0
  267. package/dist/main-portal/hooks/useSolanaBalance.d.ts +21 -0
  268. package/dist/main-portal/hooks/useSolanaBalance.js +58 -0
  269. package/dist/main-portal/hooks/useSpeechRecognition.d.ts +6 -0
  270. package/dist/main-portal/hooks/useSpeechRecognition.js +82 -0
  271. package/dist/main-portal/hooks/useStats.d.ts +131 -0
  272. package/dist/main-portal/hooks/useStats.js +161 -0
  273. package/dist/main-portal/hooks/useStrategies.d.ts +134 -0
  274. package/dist/main-portal/hooks/useStrategies.js +28 -0
  275. package/dist/main-portal/hooks/useUserRank.d.ts +16 -0
  276. package/dist/main-portal/hooks/useUserRank.js +61 -0
  277. package/dist/main-portal/hooks/useWalletTokenBalances.d.ts +29 -0
  278. package/dist/main-portal/hooks/useWalletTokenBalances.js +106 -0
  279. package/dist/main-portal/i18n/navigation.d.ts +341 -0
  280. package/dist/main-portal/i18n/navigation.js +7 -0
  281. package/dist/main-portal/i18n/request.d.ts +2 -0
  282. package/dist/main-portal/i18n/request.js +47 -0
  283. package/dist/main-portal/i18n/routing.d.ts +18 -0
  284. package/dist/main-portal/i18n/routing.js +10 -0
  285. package/dist/main-portal/lib/ai-chat-config.d.ts +8 -0
  286. package/dist/main-portal/lib/ai-chat-config.js +144 -0
  287. package/dist/main-portal/lib/api/blockchain.d.ts +178 -0
  288. package/dist/main-portal/lib/api/blockchain.js +302 -0
  289. package/dist/main-portal/lib/api/core.d.ts +3 -0
  290. package/dist/main-portal/lib/api/core.js +47 -0
  291. package/dist/main-portal/lib/api/index.d.ts +9 -0
  292. package/dist/main-portal/lib/api/index.js +37 -0
  293. package/dist/main-portal/lib/api/services/ai.d.ts +139 -0
  294. package/dist/main-portal/lib/api/services/ai.js +214 -0
  295. package/dist/main-portal/lib/api/services/finance.d.ts +37 -0
  296. package/dist/main-portal/lib/api/services/finance.js +144 -0
  297. package/dist/main-portal/lib/api/services/index.d.ts +5 -0
  298. package/dist/main-portal/lib/api/services/index.js +21 -0
  299. package/dist/main-portal/lib/api/services/mining.d.ts +68 -0
  300. package/dist/main-portal/lib/api/services/mining.js +76 -0
  301. package/dist/main-portal/lib/api/services/organization.d.ts +161 -0
  302. package/dist/main-portal/lib/api/services/organization.js +139 -0
  303. package/dist/main-portal/lib/api/services/user.d.ts +90 -0
  304. package/dist/main-portal/lib/api/services/user.js +78 -0
  305. package/dist/main-portal/lib/api/services.d.ts +1 -0
  306. package/dist/main-portal/lib/api/services.js +17 -0
  307. package/dist/main-portal/lib/api-service.d.ts +1 -0
  308. package/dist/main-portal/lib/api-service.js +18 -0
  309. package/dist/main-portal/lib/auth-service.d.ts +65 -0
  310. package/dist/main-portal/lib/auth-service.js +382 -0
  311. package/dist/main-portal/lib/config/mainstream-tokens.d.ts +13 -0
  312. package/dist/main-portal/lib/config/mainstream-tokens.js +88 -0
  313. package/dist/main-portal/lib/docs-data.d.ts +36 -0
  314. package/dist/main-portal/lib/docs-data.js +108 -0
  315. package/dist/main-portal/lib/oauth-config.d.ts +12 -0
  316. package/dist/main-portal/lib/oauth-config.js +48 -0
  317. package/dist/main-portal/lib/order-id-generator.d.ts +19 -0
  318. package/dist/main-portal/lib/order-id-generator.js +97 -0
  319. package/dist/main-portal/lib/solana/reincarnation-client.d.ts +28 -0
  320. package/dist/main-portal/lib/solana/reincarnation-client.js +39 -0
  321. package/dist/main-portal/lib/solana/solana-pay.d.ts +31 -0
  322. package/dist/main-portal/lib/solana/solana-pay.js +85 -0
  323. package/dist/main-portal/lib/strategy/defaults.d.ts +2 -0
  324. package/dist/main-portal/lib/strategy/defaults.js +58 -0
  325. package/dist/main-portal/lib/strategy/index.d.ts +3 -0
  326. package/dist/main-portal/lib/strategy/index.js +20 -0
  327. package/dist/main-portal/lib/strategy/tooltips.d.ts +1 -0
  328. package/dist/main-portal/lib/strategy/tooltips.js +50 -0
  329. package/dist/main-portal/lib/strategy/types.d.ts +74 -0
  330. package/dist/main-portal/lib/strategy/types.js +2 -0
  331. package/dist/main-portal/lib/types/ai.types.d.ts +111 -0
  332. package/dist/main-portal/lib/types/ai.types.js +2 -0
  333. package/dist/main-portal/lib/types/api.d.ts +5 -0
  334. package/dist/main-portal/lib/types/api.js +21 -0
  335. package/dist/main-portal/lib/types/common.types.d.ts +168 -0
  336. package/dist/main-portal/lib/types/common.types.js +24 -0
  337. package/dist/main-portal/lib/types/finance.types.d.ts +267 -0
  338. package/dist/main-portal/lib/types/finance.types.js +2 -0
  339. package/dist/main-portal/lib/types/protocol.types.d.ts +216 -0
  340. package/dist/main-portal/lib/types/protocol.types.js +2 -0
  341. package/dist/main-portal/lib/types/user.types.d.ts +243 -0
  342. package/dist/main-portal/lib/types/user.types.js +12 -0
  343. package/dist/main-portal/lib/utils/territoryId.d.ts +75 -0
  344. package/dist/main-portal/lib/utils/territoryId.js +241 -0
  345. package/dist/main-portal/lib/utils.d.ts +4 -0
  346. package/dist/main-portal/lib/utils.js +24 -0
  347. package/dist/main-portal/lib/wallet-auth/api.d.ts +13 -0
  348. package/dist/main-portal/lib/wallet-auth/api.js +132 -0
  349. package/dist/main-portal/lib/wallet-auth/types.d.ts +87 -0
  350. package/dist/main-portal/lib/wallet-auth/types.js +58 -0
  351. package/package.json +55 -5
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+ // AI-generated · AI-managed · AI-maintained
3
+ "use client";
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.TimeRemaining = TimeRemaining;
6
+ exports.DaysRemaining = DaysRemaining;
7
+ exports.FormattedDateTime = FormattedDateTime;
8
+ exports.FormattedDate = FormattedDate;
9
+ exports.FormattedDateCustom = FormattedDateCustom;
10
+ exports.LockDaysRemaining = LockDaysRemaining;
11
+ exports.LockDaysHoursRemaining = LockDaysHoursRemaining;
12
+ exports.useLockProgressValue = useLockProgressValue;
13
+ exports.useLockProgress = useLockProgress;
14
+ const jsx_runtime_1 = require("react/jsx-runtime");
15
+ const react_1 = require("react");
16
+ function TimeRemaining({ endTime, expiredText = "已结束", className = "", }) {
17
+ const [mounted, setMounted] = (0, react_1.useState)(false);
18
+ const [timeText, setTimeText] = (0, react_1.useState)("--");
19
+ (0, react_1.useEffect)(() => {
20
+ setMounted(true);
21
+ const calculateTime = () => {
22
+ const now = new Date();
23
+ const end = new Date(endTime);
24
+ const diff = end.getTime() - now.getTime();
25
+ if (diff <= 0) {
26
+ setTimeText(expiredText);
27
+ return;
28
+ }
29
+ const days = Math.floor(diff / (1000 * 60 * 60 * 24));
30
+ const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
31
+ const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
32
+ if (days > 0) {
33
+ setTimeText(`${days}天 ${hours}小时`);
34
+ }
35
+ else if (hours > 0) {
36
+ setTimeText(`${hours}小时 ${minutes}分钟`);
37
+ }
38
+ else {
39
+ setTimeText(`${minutes}分钟`);
40
+ }
41
+ };
42
+ calculateTime();
43
+ const interval = setInterval(calculateTime, 60000);
44
+ return () => clearInterval(interval);
45
+ }, [endTime, expiredText]);
46
+ if (!mounted) {
47
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: "--" });
48
+ }
49
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: timeText });
50
+ }
51
+ function DaysRemaining({ endTime, className = "" }) {
52
+ const [mounted, setMounted] = (0, react_1.useState)(false);
53
+ const [days, setDays] = (0, react_1.useState)(0);
54
+ const [hours, setHours] = (0, react_1.useState)(0);
55
+ (0, react_1.useEffect)(() => {
56
+ setMounted(true);
57
+ const calculate = () => {
58
+ const now = new Date();
59
+ const end = new Date(endTime);
60
+ const diff = end.getTime() - now.getTime();
61
+ if (diff <= 0) {
62
+ setDays(0);
63
+ setHours(0);
64
+ return;
65
+ }
66
+ setDays(Math.ceil(diff / (1000 * 60 * 60 * 24)));
67
+ setHours(Math.ceil((diff / (1000 * 60 * 60)) % 24));
68
+ };
69
+ calculate();
70
+ const interval = setInterval(calculate, 60000);
71
+ return () => clearInterval(interval);
72
+ }, [endTime]);
73
+ if (!mounted) {
74
+ return { days: 0, hours: 0 };
75
+ }
76
+ return { days, hours };
77
+ }
78
+ function FormattedDateTime({ dateTime, locale = "zh-CN", className = "", }) {
79
+ const [mounted, setMounted] = (0, react_1.useState)(false);
80
+ const [formatted, setFormatted] = (0, react_1.useState)("--");
81
+ (0, react_1.useEffect)(() => {
82
+ setMounted(true);
83
+ const date = new Date(dateTime);
84
+ setFormatted(date.toLocaleString(locale));
85
+ }, [dateTime, locale]);
86
+ if (!mounted) {
87
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: "--" });
88
+ }
89
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: formatted });
90
+ }
91
+ function FormattedDate({ dateTime, locale = "zh-CN", className = "", }) {
92
+ const [mounted, setMounted] = (0, react_1.useState)(false);
93
+ const [formatted, setFormatted] = (0, react_1.useState)("--");
94
+ (0, react_1.useEffect)(() => {
95
+ setMounted(true);
96
+ const date = new Date(dateTime);
97
+ setFormatted(date.toLocaleDateString(locale));
98
+ }, [dateTime, locale]);
99
+ if (!mounted) {
100
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: "--" });
101
+ }
102
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: formatted });
103
+ }
104
+ function FormattedDateCustom({ dateTime, locale = "zh-CN", options = { month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' }, className = "", }) {
105
+ const [mounted, setMounted] = (0, react_1.useState)(false);
106
+ const [formatted, setFormatted] = (0, react_1.useState)("--");
107
+ (0, react_1.useEffect)(() => {
108
+ setMounted(true);
109
+ const date = new Date(dateTime);
110
+ setFormatted(date.toLocaleString(locale, options));
111
+ }, [dateTime, locale, options]);
112
+ if (!mounted) {
113
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: "--" });
114
+ }
115
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: formatted });
116
+ }
117
+ function LockDaysRemaining({ endTime, className = "" }) {
118
+ const [mounted, setMounted] = (0, react_1.useState)(false);
119
+ const [days, setDays] = (0, react_1.useState)(0);
120
+ (0, react_1.useEffect)(() => {
121
+ setMounted(true);
122
+ const calculate = () => {
123
+ const now = new Date();
124
+ const end = new Date(endTime);
125
+ const diff = end.getTime() - now.getTime();
126
+ if (diff <= 0) {
127
+ setDays(0);
128
+ return;
129
+ }
130
+ setDays(Math.ceil(diff / (1000 * 60 * 60 * 24)));
131
+ };
132
+ calculate();
133
+ const interval = setInterval(calculate, 60000);
134
+ return () => clearInterval(interval);
135
+ }, [endTime]);
136
+ if (!mounted) {
137
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: "--" });
138
+ }
139
+ return (0, jsx_runtime_1.jsxs)("span", { className: className, children: [days, " days"] });
140
+ }
141
+ function LockDaysHoursRemaining({ endTime, className = "" }) {
142
+ const [mounted, setMounted] = (0, react_1.useState)(false);
143
+ const [days, setDays] = (0, react_1.useState)(0);
144
+ const [hours, setHours] = (0, react_1.useState)(0);
145
+ (0, react_1.useEffect)(() => {
146
+ setMounted(true);
147
+ const calculate = () => {
148
+ const now = new Date();
149
+ const end = new Date(endTime);
150
+ const diff = end.getTime() - now.getTime();
151
+ if (diff <= 0) {
152
+ setDays(0);
153
+ setHours(0);
154
+ return;
155
+ }
156
+ setDays(Math.ceil(diff / (1000 * 60 * 60 * 24)));
157
+ setHours(Math.ceil((diff / (1000 * 60 * 60)) % 24));
158
+ };
159
+ calculate();
160
+ const interval = setInterval(calculate, 60000);
161
+ return () => clearInterval(interval);
162
+ }, [endTime]);
163
+ if (!mounted) {
164
+ return (0, jsx_runtime_1.jsx)("span", { className: className, children: "--" });
165
+ }
166
+ return (0, jsx_runtime_1.jsxs)("span", { className: className, children: [days, " \u5929 ", hours, " \u5C0F\u65F6"] });
167
+ }
168
+ function useLockProgressValue(endTime, totalDays = 14) {
169
+ const [mounted, setMounted] = (0, react_1.useState)(false);
170
+ const [progress, setProgress] = (0, react_1.useState)(0);
171
+ (0, react_1.useEffect)(() => {
172
+ setMounted(true);
173
+ const calculate = () => {
174
+ const now = new Date();
175
+ const end = new Date(endTime);
176
+ const diff = end.getTime() - now.getTime();
177
+ if (diff <= 0) {
178
+ setProgress(100);
179
+ return;
180
+ }
181
+ const days = Math.ceil(diff / (1000 * 60 * 60 * 24));
182
+ const progressPct = Math.max(0, Math.min(100, ((totalDays - days) / totalDays) * 100));
183
+ setProgress(progressPct);
184
+ };
185
+ calculate();
186
+ const interval = setInterval(calculate, 60000);
187
+ return () => clearInterval(interval);
188
+ }, [endTime, totalDays]);
189
+ return { progress, mounted };
190
+ }
191
+ function useLockProgress(endTime, totalDays = 14) {
192
+ const [mounted, setMounted] = (0, react_1.useState)(false);
193
+ const [daysRemaining, setDaysRemaining] = (0, react_1.useState)(0);
194
+ const [hoursRemaining, setHoursRemaining] = (0, react_1.useState)(0);
195
+ const [progress, setProgress] = (0, react_1.useState)(0);
196
+ (0, react_1.useEffect)(() => {
197
+ setMounted(true);
198
+ const calculate = () => {
199
+ const now = new Date();
200
+ const end = new Date(endTime);
201
+ const diff = end.getTime() - now.getTime();
202
+ if (diff <= 0) {
203
+ setDaysRemaining(0);
204
+ setHoursRemaining(0);
205
+ setProgress(100);
206
+ return;
207
+ }
208
+ const days = Math.ceil(diff / (1000 * 60 * 60 * 24));
209
+ const hours = Math.ceil((diff / (1000 * 60 * 60)) % 24);
210
+ const progressPct = Math.max(0, Math.min(100, ((totalDays - days) / totalDays) * 100));
211
+ setDaysRemaining(days);
212
+ setHoursRemaining(hours);
213
+ setProgress(progressPct);
214
+ };
215
+ calculate();
216
+ const interval = setInterval(calculate, 60000);
217
+ return () => clearInterval(interval);
218
+ }, [endTime, totalDays]);
219
+ if (!mounted) {
220
+ return { daysRemaining: 0, hoursRemaining: 0, progress: 0, mounted: false };
221
+ }
222
+ return { daysRemaining, hoursRemaining, progress, mounted: true };
223
+ }
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import * as ToastPrimitives from '@radix-ui/react-toast';
3
+ import { type VariantProps } from 'class-variance-authority';
4
+ declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
5
+ declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
+ declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
7
+ variant?: "default" | "destructive" | null | undefined;
8
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
9
+ declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
+ declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
14
+ type ToastActionElement = React.ReactElement<typeof ToastAction>;
15
+ export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ // AI-generated · AI-managed · AI-maintained
3
+ 'use client';
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.ToastAction = exports.ToastClose = exports.ToastDescription = exports.ToastTitle = exports.Toast = exports.ToastViewport = exports.ToastProvider = void 0;
39
+ const jsx_runtime_1 = require("react/jsx-runtime");
40
+ const React = __importStar(require("react"));
41
+ const ToastPrimitives = __importStar(require("@radix-ui/react-toast"));
42
+ const class_variance_authority_1 = require("class-variance-authority");
43
+ const lucide_react_1 = require("lucide-react");
44
+ const utils_1 = require("../../lib/utils");
45
+ const ToastProvider = ToastPrimitives.Provider;
46
+ exports.ToastProvider = ToastProvider;
47
+ const ToastViewport = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(ToastPrimitives.Viewport, { ref: ref, className: (0, utils_1.cn)('fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]', className), ...props })));
48
+ exports.ToastViewport = ToastViewport;
49
+ ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
50
+ const toastVariants = (0, class_variance_authority_1.cva)('group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full', {
51
+ variants: {
52
+ variant: {
53
+ default: 'border bg-background text-foreground',
54
+ destructive: 'destructive group border-destructive bg-destructive text-destructive-foreground',
55
+ },
56
+ },
57
+ defaultVariants: {
58
+ variant: 'default',
59
+ },
60
+ });
61
+ const Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
62
+ return ((0, jsx_runtime_1.jsx)(ToastPrimitives.Root, { ref: ref, className: (0, utils_1.cn)(toastVariants({ variant }), className), ...props }));
63
+ });
64
+ exports.Toast = Toast;
65
+ Toast.displayName = ToastPrimitives.Root.displayName;
66
+ const ToastAction = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(ToastPrimitives.Action, { ref: ref, className: (0, utils_1.cn)('inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive', className), ...props })));
67
+ exports.ToastAction = ToastAction;
68
+ ToastAction.displayName = ToastPrimitives.Action.displayName;
69
+ const ToastClose = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(ToastPrimitives.Close, { ref: ref, className: (0, utils_1.cn)('absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600', className), "toast-close": "", ...props, children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { className: "h-4 w-4" }) })));
70
+ exports.ToastClose = ToastClose;
71
+ ToastClose.displayName = ToastPrimitives.Close.displayName;
72
+ const ToastTitle = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(ToastPrimitives.Title, { ref: ref, className: (0, utils_1.cn)('text-sm font-semibold', className), ...props })));
73
+ exports.ToastTitle = ToastTitle;
74
+ ToastTitle.displayName = ToastPrimitives.Title.displayName;
75
+ const ToastDescription = React.forwardRef(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(ToastPrimitives.Description, { ref: ref, className: (0, utils_1.cn)('text-sm opacity-90', className), ...props })));
76
+ exports.ToastDescription = ToastDescription;
77
+ ToastDescription.displayName = ToastPrimitives.Description.displayName;
@@ -0,0 +1 @@
1
+ export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // AI-generated · AI-managed · AI-maintained
3
+ 'use client';
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Toaster = Toaster;
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const use_toast_1 = require("../../hooks/use-toast");
8
+ const toast_1 = require("./toast");
9
+ function Toaster() {
10
+ const { toasts } = (0, use_toast_1.useToast)();
11
+ return ((0, jsx_runtime_1.jsxs)(toast_1.ToastProvider, { children: [toasts.map(function ({ id, title, description, action, ...props }) {
12
+ return ((0, jsx_runtime_1.jsxs)(toast_1.Toast, { ...props, children: [(0, jsx_runtime_1.jsxs)("div", { className: "grid gap-1", children: [title && (0, jsx_runtime_1.jsx)(toast_1.ToastTitle, { children: title }), description && ((0, jsx_runtime_1.jsx)(toast_1.ToastDescription, { children: description }))] }), action, (0, jsx_runtime_1.jsx)(toast_1.ToastClose, {})] }, id));
13
+ }), (0, jsx_runtime_1.jsx)(toast_1.ToastViewport, {})] }));
14
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
3
+ import { type VariantProps } from "class-variance-authority";
4
+ import { toggleVariants } from "./toggle";
5
+ declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
6
+ declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
7
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ // AI-generated · AI-managed · AI-maintained
3
+ "use client";
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.ToggleGroup = ToggleGroup;
39
+ exports.ToggleGroupItem = ToggleGroupItem;
40
+ const jsx_runtime_1 = require("react/jsx-runtime");
41
+ const React = __importStar(require("react"));
42
+ const ToggleGroupPrimitive = __importStar(require("@radix-ui/react-toggle-group"));
43
+ const utils_1 = require("../../lib/utils");
44
+ const toggle_1 = require("./toggle");
45
+ const ToggleGroupContext = React.createContext({
46
+ size: "default",
47
+ variant: "default",
48
+ });
49
+ function ToggleGroup({ className, variant, size, children, ...props }) {
50
+ return ((0, jsx_runtime_1.jsx)(ToggleGroupPrimitive.Root, { "data-slot": "toggle-group", "data-variant": variant, "data-size": size, className: (0, utils_1.cn)("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs", className), ...props, children: (0, jsx_runtime_1.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children: children }) }));
51
+ }
52
+ function ToggleGroupItem({ className, children, variant, size, ...props }) {
53
+ const context = React.useContext(ToggleGroupContext);
54
+ return ((0, jsx_runtime_1.jsx)(ToggleGroupPrimitive.Item, { "data-slot": "toggle-group-item", "data-variant": context.variant || variant, "data-size": context.size || size, className: (0, utils_1.cn)((0, toggle_1.toggleVariants)({
55
+ variant: context.variant || variant,
56
+ size: context.size || size,
57
+ }), "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", className), ...props, children: children }));
58
+ }
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import * as TogglePrimitive from "@radix-ui/react-toggle";
3
+ import { type VariantProps } from "class-variance-authority";
4
+ declare const toggleVariants: (props?: ({
5
+ variant?: "default" | "outline" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
9
+ export { Toggle, toggleVariants };
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ // AI-generated · AI-managed · AI-maintained
3
+ "use client";
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.toggleVariants = void 0;
39
+ exports.Toggle = Toggle;
40
+ const jsx_runtime_1 = require("react/jsx-runtime");
41
+ const TogglePrimitive = __importStar(require("@radix-ui/react-toggle"));
42
+ const class_variance_authority_1 = require("class-variance-authority");
43
+ const utils_1 = require("../../lib/utils");
44
+ const toggleVariants = (0, class_variance_authority_1.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
45
+ variants: {
46
+ variant: {
47
+ default: "bg-transparent",
48
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground",
49
+ },
50
+ size: {
51
+ default: "h-9 px-2 min-w-9",
52
+ sm: "h-8 px-1.5 min-w-8",
53
+ lg: "h-10 px-2.5 min-w-10",
54
+ },
55
+ },
56
+ defaultVariants: {
57
+ variant: "default",
58
+ size: "default",
59
+ },
60
+ });
61
+ exports.toggleVariants = toggleVariants;
62
+ function Toggle({ className, variant, size, ...props }) {
63
+ return ((0, jsx_runtime_1.jsx)(TogglePrimitive.Root, { "data-slot": "toggle", className: (0, utils_1.cn)(toggleVariants({ variant, size, className })), ...props }));
64
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // AI-generated · AI-managed · AI-maintained
3
+ "use client";
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.Tooltip = Tooltip;
39
+ exports.TooltipTrigger = TooltipTrigger;
40
+ exports.TooltipContent = TooltipContent;
41
+ exports.TooltipProvider = TooltipProvider;
42
+ const jsx_runtime_1 = require("react/jsx-runtime");
43
+ const TooltipPrimitive = __importStar(require("@radix-ui/react-tooltip"));
44
+ const utils_1 = require("../../lib/utils");
45
+ function TooltipProvider({ delayDuration = 0, ...props }) {
46
+ return ((0, jsx_runtime_1.jsx)(TooltipPrimitive.Provider, { "data-slot": "tooltip-provider", delayDuration: delayDuration, ...props }));
47
+ }
48
+ function Tooltip({ ...props }) {
49
+ return ((0, jsx_runtime_1.jsx)(TooltipProvider, { children: (0, jsx_runtime_1.jsx)(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) }));
50
+ }
51
+ function TooltipTrigger({ ...props }) {
52
+ return (0, jsx_runtime_1.jsx)(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
53
+ }
54
+ function TooltipContent({ className, sideOffset = 0, children, ...props }) {
55
+ return ((0, jsx_runtime_1.jsx)(TooltipPrimitive.Portal, { children: (0, jsx_runtime_1.jsxs)(TooltipPrimitive.Content, { "data-slot": "tooltip-content", sideOffset: sideOffset, className: (0, utils_1.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", className), ...props, children: [children, (0, jsx_runtime_1.jsx)(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })] }) }));
56
+ }
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(): boolean;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.useIsMobile = useIsMobile;
37
+ // AI-generated · AI-managed · AI-maintained
38
+ const React = __importStar(require("react"));
39
+ const use_breakpoint_1 = require("../../hooks/use-breakpoint");
40
+ const MOBILE_BREAKPOINT = use_breakpoint_1.BREAKPOINTS.md; // 768px
41
+ function useIsMobile() {
42
+ const [isMobile, setIsMobile] = React.useState(undefined);
43
+ React.useEffect(() => {
44
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
45
+ const onChange = () => {
46
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
47
+ };
48
+ mql.addEventListener('change', onChange);
49
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
50
+ return () => mql.removeEventListener('change', onChange);
51
+ }, []);
52
+ return !!isMobile;
53
+ }
@@ -0,0 +1 @@
1
+ export default function VotingPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // AI-generated · AI-managed · AI-maintained
3
+ 'use client';
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.default = VotingPage;
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const card_1 = require("../ui/card");
8
+ const badge_1 = require("../ui/badge");
9
+ const lucide_react_1 = require("lucide-react");
10
+ const next_intl_1 = require("next-intl");
11
+ function VotingPage() {
12
+ const t = (0, next_intl_1.useTranslations)('votingDash');
13
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "max-w-7xl mx-auto px-3 py-4 space-y-3 xs:px-4 xs:space-y-4 sm:px-6 sm:py-6 sm:space-y-6", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-3", children: [(0, jsx_runtime_1.jsx)("h1", { className: "text-lg sm:text-2xl font-bold text-white tracking-wider", children: t('title') }), (0, jsx_runtime_1.jsxs)(badge_1.Badge, { className: "bg-cyan-400/20 text-cyan-400 border border-cyan-400/30", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Construction, { className: "w-3 h-3 mr-1" }), t('underConstruction')] })] }), (0, jsx_runtime_1.jsx)("p", { className: "text-xs sm:text-sm text-neutral-400", children: t('subtitle') })] }), (0, jsx_runtime_1.jsx)(card_1.Card, { className: "bg-neutral-900 border-neutral-700 dash-card", children: (0, jsx_runtime_1.jsxs)(card_1.CardContent, { className: "p-3 sm:p-6", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2 text-neutral-400 text-sm mb-4", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Target, { className: "w-4 h-4" }), (0, jsx_runtime_1.jsx)("span", { className: "tracking-wider", children: t('buildGoal') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "space-y-4", children: [(0, jsx_runtime_1.jsx)("p", { className: "text-neutral-300 text-sm leading-relaxed", children: t('buildDesc') }), (0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "p-4 bg-neutral-800 rounded border border-neutral-700 hover:border-cyan-400/50 dash-card", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Shield, { className: "w-5 h-5 text-white mb-2" }), (0, jsx_runtime_1.jsx)("div", { className: "text-white text-sm font-medium mb-1", children: t('antiSybilTitle') }), (0, jsx_runtime_1.jsx)("div", { className: "text-neutral-500 text-xs", children: t('antiSybilDesc') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-4 bg-neutral-800 rounded border border-neutral-700 hover:border-cyan-400/50 dash-card", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Coins, { className: "w-5 h-5 text-white mb-2" }), (0, jsx_runtime_1.jsx)("div", { className: "text-white text-sm font-medium mb-1", children: t('economicTitle') }), (0, jsx_runtime_1.jsx)("div", { className: "text-neutral-500 text-xs", children: t('economicDesc') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-4 bg-neutral-800 rounded border border-neutral-700 hover:border-cyan-400/50 dash-card", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Users, { className: "w-5 h-5 text-white mb-2" }), (0, jsx_runtime_1.jsx)("div", { className: "text-white text-sm font-medium mb-1", children: t('governanceTitle') }), (0, jsx_runtime_1.jsx)("div", { className: "text-neutral-500 text-xs", children: t('governanceDesc') })] })] })] })] }) }), (0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [(0, jsx_runtime_1.jsx)(card_1.Card, { className: "bg-neutral-900 border-neutral-700 hover:border-cyan-400/50 dash-card", children: (0, jsx_runtime_1.jsxs)(card_1.CardContent, { className: "p-3 sm:p-6", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-3 mb-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "p-2 rounded bg-neutral-800", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Swords, { className: "w-5 h-5 text-white" }) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-white font-medium", children: t('bettingModeTitle') }), (0, jsx_runtime_1.jsx)(badge_1.Badge, { className: "bg-cyan-400/20 text-cyan-400 border border-cyan-400/30 mt-1", children: "Betting Mode" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "space-y-3", children: [(0, jsx_runtime_1.jsx)("p", { className: "text-neutral-400 text-sm leading-relaxed", children: t('bettingModeDesc') }), (0, jsx_runtime_1.jsxs)("div", { className: "p-3 bg-neutral-800 rounded border border-neutral-700", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-xs text-neutral-400 tracking-wider mb-2", children: t('mechanismLabel') }), (0, jsx_runtime_1.jsxs)("div", { className: "space-y-1.5 text-xs text-neutral-400", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-start gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-500 mt-0.5", children: "1." }), (0, jsx_runtime_1.jsx)("span", { children: t('bettingStep1') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-start gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-500 mt-0.5", children: "2." }), (0, jsx_runtime_1.jsx)("span", { children: t('bettingStep2') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-start gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-500 mt-0.5", children: "3." }), (0, jsx_runtime_1.jsx)("span", { children: t('bettingStep3') })] })] })] }), (0, jsx_runtime_1.jsx)("div", { className: "text-xs text-neutral-500", children: t('bettingScenarios') })] })] }) }), (0, jsx_runtime_1.jsx)(card_1.Card, { className: "bg-neutral-900 border-neutral-700 hover:border-cyan-400/50 dash-card", children: (0, jsx_runtime_1.jsxs)(card_1.CardContent, { className: "p-3 sm:p-6", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-3 mb-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "p-2 rounded bg-neutral-800", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Heart, { className: "w-5 h-5 text-red-400" }) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-white font-medium", children: t('welfareModeTitle') }), (0, jsx_runtime_1.jsx)(badge_1.Badge, { className: "bg-white/20 text-white border border-white/30 mt-1", children: "Public Welfare Mode" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "space-y-3", children: [(0, jsx_runtime_1.jsx)("p", { className: "text-neutral-400 text-sm leading-relaxed", children: t('welfareModeDesc') }), (0, jsx_runtime_1.jsxs)("div", { className: "p-3 bg-neutral-800 rounded border border-neutral-700", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-xs text-neutral-400 tracking-wider mb-2", children: t('mechanismLabel') }), (0, jsx_runtime_1.jsxs)("div", { className: "space-y-1.5 text-xs text-neutral-400", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-start gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-500 mt-0.5", children: "1." }), (0, jsx_runtime_1.jsx)("span", { children: t('welfareStep1') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-start gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-500 mt-0.5", children: "2." }), (0, jsx_runtime_1.jsx)("span", { children: t('welfareStep2') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-start gap-2", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-neutral-500 mt-0.5", children: "3." }), (0, jsx_runtime_1.jsx)("span", { children: t('welfareStep3') })] })] })] }), (0, jsx_runtime_1.jsx)("div", { className: "text-xs text-neutral-500", children: t('welfareScenarios') })] })] }) })] }), (0, jsx_runtime_1.jsx)(card_1.Card, { className: "bg-neutral-900 border-neutral-700 dash-card", children: (0, jsx_runtime_1.jsxs)(card_1.CardContent, { className: "p-3 sm:p-6", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2 text-neutral-400 text-sm mb-4", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Vote, { className: "w-4 h-4" }), (0, jsx_runtime_1.jsx)("span", { className: "tracking-wider", children: t('votingRules') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "p-4 bg-neutral-800 rounded border border-neutral-700", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-xs text-neutral-400 tracking-wider mb-1", children: "voting_currency" }), (0, jsx_runtime_1.jsx)("div", { className: "text-white text-sm font-medium", children: "MCC (Microcosm Coin)" }), (0, jsx_runtime_1.jsx)("div", { className: "text-neutral-500 text-xs mt-1", children: t('currencyDesc') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-4 bg-neutral-800 rounded border border-neutral-700", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-xs text-neutral-400 tracking-wider mb-1", children: "vote_weight" }), (0, jsx_runtime_1.jsx)("div", { className: "text-white text-sm font-medium", children: t('voteWeight') }), (0, jsx_runtime_1.jsx)("div", { className: "text-neutral-500 text-xs mt-1", children: t('voteWeightDesc') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-4 bg-neutral-800 rounded border border-neutral-700", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-xs text-neutral-400 tracking-wider mb-1", children: "min_participation" }), (0, jsx_runtime_1.jsx)("div", { className: "text-white text-sm font-medium", children: t('minParticipation') }), (0, jsx_runtime_1.jsx)("div", { className: "text-neutral-500 text-xs mt-1", children: t('minParticipationDesc') })] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-4 bg-neutral-800 rounded border border-neutral-700", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-xs text-neutral-400 tracking-wider mb-1", children: "foundation_fund" }), (0, jsx_runtime_1.jsx)("div", { className: "text-white text-sm font-medium", children: t('foundationFund') }), (0, jsx_runtime_1.jsx)("div", { className: "text-neutral-500 text-xs mt-1", children: t('foundationFundDesc') })] })] })] }) }), (0, jsx_runtime_1.jsxs)("div", { className: "text-center py-8", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Construction, { className: "w-10 h-10 text-neutral-700 mx-auto mb-3" }), (0, jsx_runtime_1.jsx)("p", { className: "text-neutral-500 text-sm", children: t('comingSoon') }), (0, jsx_runtime_1.jsx)("p", { className: "text-neutral-500 text-xs mt-1", children: "Coming Soon" })] })] }));
14
+ }