@burdenoff/microfe-coolandlovely 2026.614.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 (284) hide show
  1. package/README.md +12 -0
  2. package/dist/coolandlovely/CoolAndLovelyRoot.d.ts +5 -0
  3. package/dist/coolandlovely/CoolAndLovelyRoot.d.ts.map +1 -0
  4. package/dist/coolandlovely/CoolAndLovelyRoot.js +177 -0
  5. package/dist/coolandlovely/CoolAndLovelyRoot.js.map +1 -0
  6. package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts +4 -0
  7. package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts.map +1 -0
  8. package/dist/coolandlovely/CoolAndLovelyRoutes.js +215 -0
  9. package/dist/coolandlovely/CoolAndLovelyRoutes.js.map +1 -0
  10. package/dist/coolandlovely/components/CartCard.d.ts +18 -0
  11. package/dist/coolandlovely/components/CartCard.d.ts.map +1 -0
  12. package/dist/coolandlovely/components/EmptyState.d.ts +12 -0
  13. package/dist/coolandlovely/components/EmptyState.d.ts.map +1 -0
  14. package/dist/coolandlovely/components/EmptyState.js +28 -0
  15. package/dist/coolandlovely/components/EmptyState.js.map +1 -0
  16. package/dist/coolandlovely/components/InvestmentCard.d.ts +18 -0
  17. package/dist/coolandlovely/components/InvestmentCard.d.ts.map +1 -0
  18. package/dist/coolandlovely/components/InvestmentCard.js +96 -0
  19. package/dist/coolandlovely/components/InvestmentCard.js.map +1 -0
  20. package/dist/coolandlovely/components/MetricsCard.d.ts +14 -0
  21. package/dist/coolandlovely/components/MetricsCard.d.ts.map +1 -0
  22. package/dist/coolandlovely/components/MetricsCard.js +46 -0
  23. package/dist/coolandlovely/components/MetricsCard.js.map +1 -0
  24. package/dist/coolandlovely/components/OrderCard.d.ts +18 -0
  25. package/dist/coolandlovely/components/OrderCard.d.ts.map +1 -0
  26. package/dist/coolandlovely/components/PageLayout.d.ts +12 -0
  27. package/dist/coolandlovely/components/PageLayout.d.ts.map +1 -0
  28. package/dist/coolandlovely/components/PageLayout.js +26 -0
  29. package/dist/coolandlovely/components/PageLayout.js.map +1 -0
  30. package/dist/coolandlovely/components/RatingDisplay.d.ts +12 -0
  31. package/dist/coolandlovely/components/RatingDisplay.d.ts.map +1 -0
  32. package/dist/coolandlovely/components/RatingDisplay.js +35 -0
  33. package/dist/coolandlovely/components/RatingDisplay.js.map +1 -0
  34. package/dist/coolandlovely/components/StatusBadge.d.ts +9 -0
  35. package/dist/coolandlovely/components/StatusBadge.d.ts.map +1 -0
  36. package/dist/coolandlovely/components/StatusBadge.js +45 -0
  37. package/dist/coolandlovely/components/StatusBadge.js.map +1 -0
  38. package/dist/coolandlovely/components/index.d.ts +13 -0
  39. package/dist/coolandlovely/components/index.d.ts.map +1 -0
  40. package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts +16 -0
  41. package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts.map +1 -0
  42. package/dist/coolandlovely/context/CoolAndLovelyContext.js +93 -0
  43. package/dist/coolandlovely/context/CoolAndLovelyContext.js.map +1 -0
  44. package/dist/coolandlovely/context/index.d.ts +6 -0
  45. package/dist/coolandlovely/context/index.d.ts.map +1 -0
  46. package/dist/coolandlovely/context/index.js +1 -0
  47. package/dist/coolandlovely/hooks/index.d.ts +2 -0
  48. package/dist/coolandlovely/hooks/index.d.ts.map +1 -0
  49. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts +44 -0
  50. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts.map +1 -0
  51. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +223 -0
  52. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -0
  53. package/dist/coolandlovely/index.d.ts +11 -0
  54. package/dist/coolandlovely/index.d.ts.map +1 -0
  55. package/dist/coolandlovely/index.js +7 -0
  56. package/dist/coolandlovely/mocks/data.d.ts +61 -0
  57. package/dist/coolandlovely/mocks/data.d.ts.map +1 -0
  58. package/dist/coolandlovely/mocks/data.js +1517 -0
  59. package/dist/coolandlovely/mocks/data.js.map +1 -0
  60. package/dist/coolandlovely/mocks/index.d.ts +7 -0
  61. package/dist/coolandlovely/mocks/index.d.ts.map +1 -0
  62. package/dist/coolandlovely/mocks/users.d.ts +18 -0
  63. package/dist/coolandlovely/mocks/users.d.ts.map +1 -0
  64. package/dist/coolandlovely/mocks/users.js +34 -0
  65. package/dist/coolandlovely/mocks/users.js.map +1 -0
  66. package/dist/coolandlovely/pages/HomePage.d.ts +10 -0
  67. package/dist/coolandlovely/pages/HomePage.d.ts.map +1 -0
  68. package/dist/coolandlovely/pages/HomePage.js +921 -0
  69. package/dist/coolandlovely/pages/HomePage.js.map +1 -0
  70. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.d.ts +11 -0
  71. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.d.ts.map +1 -0
  72. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +645 -0
  73. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -0
  74. package/dist/coolandlovely/pages/admin/AdminDashboard.d.ts +10 -0
  75. package/dist/coolandlovely/pages/admin/AdminDashboard.d.ts.map +1 -0
  76. package/dist/coolandlovely/pages/admin/AdminDashboard.js +639 -0
  77. package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -0
  78. package/dist/coolandlovely/pages/admin/AdminFinancialPage.d.ts +11 -0
  79. package/dist/coolandlovely/pages/admin/AdminFinancialPage.d.ts.map +1 -0
  80. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +421 -0
  81. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -0
  82. package/dist/coolandlovely/pages/admin/AdminOrdersPage.d.ts +10 -0
  83. package/dist/coolandlovely/pages/admin/AdminOrdersPage.d.ts.map +1 -0
  84. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +660 -0
  85. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -0
  86. package/dist/coolandlovely/pages/admin/AdminProfilePage.d.ts +10 -0
  87. package/dist/coolandlovely/pages/admin/AdminProfilePage.d.ts.map +1 -0
  88. package/dist/coolandlovely/pages/admin/AdminProfilePage.js +259 -0
  89. package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -0
  90. package/dist/coolandlovely/pages/admin/AdminSettingsPage.d.ts +10 -0
  91. package/dist/coolandlovely/pages/admin/AdminSettingsPage.d.ts.map +1 -0
  92. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +649 -0
  93. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -0
  94. package/dist/coolandlovely/pages/admin/CartManagementPage.d.ts +10 -0
  95. package/dist/coolandlovely/pages/admin/CartManagementPage.d.ts.map +1 -0
  96. package/dist/coolandlovely/pages/admin/CartManagementPage.js +869 -0
  97. package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -0
  98. package/dist/coolandlovely/pages/admin/UserManagementPage.d.ts +10 -0
  99. package/dist/coolandlovely/pages/admin/UserManagementPage.d.ts.map +1 -0
  100. package/dist/coolandlovely/pages/admin/UserManagementPage.js +893 -0
  101. package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -0
  102. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.d.ts +12 -0
  103. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.d.ts.map +1 -0
  104. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +834 -0
  105. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -0
  106. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.d.ts +11 -0
  107. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.d.ts.map +1 -0
  108. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +700 -0
  109. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -0
  110. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.d.ts +11 -0
  111. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.d.ts.map +1 -0
  112. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +760 -0
  113. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -0
  114. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.d.ts +12 -0
  115. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.d.ts.map +1 -0
  116. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +886 -0
  117. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -0
  118. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.d.ts +11 -0
  119. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.d.ts.map +1 -0
  120. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +631 -0
  121. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -0
  122. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.d.ts +11 -0
  123. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.d.ts.map +1 -0
  124. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +913 -0
  125. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -0
  126. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.d.ts +10 -0
  127. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.d.ts.map +1 -0
  128. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +881 -0
  129. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -0
  130. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.d.ts +11 -0
  131. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.d.ts.map +1 -0
  132. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +833 -0
  133. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -0
  134. package/dist/coolandlovely/pages/common/HelpSupportPage.d.ts +11 -0
  135. package/dist/coolandlovely/pages/common/HelpSupportPage.d.ts.map +1 -0
  136. package/dist/coolandlovely/pages/common/HelpSupportPage.js +1325 -0
  137. package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -0
  138. package/dist/coolandlovely/pages/common/NotificationCenterPage.d.ts +11 -0
  139. package/dist/coolandlovely/pages/common/NotificationCenterPage.d.ts.map +1 -0
  140. package/dist/coolandlovely/pages/common/NotificationCenterPage.js +665 -0
  141. package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -0
  142. package/dist/coolandlovely/pages/common/SettingsPage.d.ts +9 -0
  143. package/dist/coolandlovely/pages/common/SettingsPage.d.ts.map +1 -0
  144. package/dist/coolandlovely/pages/common/SettingsPage.js +964 -0
  145. package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -0
  146. package/dist/coolandlovely/pages/customer/BookingDetailsPage.d.ts +12 -0
  147. package/dist/coolandlovely/pages/customer/BookingDetailsPage.d.ts.map +1 -0
  148. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +593 -0
  149. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -0
  150. package/dist/coolandlovely/pages/customer/CartDetailPage.d.ts +13 -0
  151. package/dist/coolandlovely/pages/customer/CartDetailPage.d.ts.map +1 -0
  152. package/dist/coolandlovely/pages/customer/CartDetailPage.js +620 -0
  153. package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -0
  154. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.d.ts +11 -0
  155. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.d.ts.map +1 -0
  156. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +547 -0
  157. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -0
  158. package/dist/coolandlovely/pages/customer/CheckoutPage.d.ts +9 -0
  159. package/dist/coolandlovely/pages/customer/CheckoutPage.d.ts.map +1 -0
  160. package/dist/coolandlovely/pages/customer/CheckoutPage.js +532 -0
  161. package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -0
  162. package/dist/coolandlovely/pages/customer/CustomerDashboard.d.ts +10 -0
  163. package/dist/coolandlovely/pages/customer/CustomerDashboard.d.ts.map +1 -0
  164. package/dist/coolandlovely/pages/customer/CustomerDashboard.js +496 -0
  165. package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -0
  166. package/dist/coolandlovely/pages/customer/CustomerProfilePage.d.ts +10 -0
  167. package/dist/coolandlovely/pages/customer/CustomerProfilePage.d.ts.map +1 -0
  168. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +621 -0
  169. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -0
  170. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.d.ts +12 -0
  171. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.d.ts.map +1 -0
  172. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +623 -0
  173. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -0
  174. package/dist/coolandlovely/pages/customer/FavoritesPage.d.ts +11 -0
  175. package/dist/coolandlovely/pages/customer/FavoritesPage.d.ts.map +1 -0
  176. package/dist/coolandlovely/pages/customer/FavoritesPage.js +477 -0
  177. package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -0
  178. package/dist/coolandlovely/pages/customer/OrderHistoryPage.d.ts +9 -0
  179. package/dist/coolandlovely/pages/customer/OrderHistoryPage.d.ts.map +1 -0
  180. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +438 -0
  181. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -0
  182. package/dist/coolandlovely/pages/customer/OrderTrackingPage.d.ts +9 -0
  183. package/dist/coolandlovely/pages/customer/OrderTrackingPage.d.ts.map +1 -0
  184. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +388 -0
  185. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -0
  186. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.d.ts +11 -0
  187. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.d.ts.map +1 -0
  188. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +488 -0
  189. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -0
  190. package/dist/coolandlovely/pages/customer/ReviewsPage.d.ts +11 -0
  191. package/dist/coolandlovely/pages/customer/ReviewsPage.d.ts.map +1 -0
  192. package/dist/coolandlovely/pages/customer/ReviewsPage.js +606 -0
  193. package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -0
  194. package/dist/coolandlovely/pages/customer/SavedAddressesPage.d.ts +10 -0
  195. package/dist/coolandlovely/pages/customer/SavedAddressesPage.d.ts.map +1 -0
  196. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +443 -0
  197. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -0
  198. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.d.ts +10 -0
  199. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.d.ts.map +1 -0
  200. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +849 -0
  201. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -0
  202. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.d.ts +10 -0
  203. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.d.ts.map +1 -0
  204. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +939 -0
  205. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -0
  206. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.d.ts +11 -0
  207. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.d.ts.map +1 -0
  208. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +681 -0
  209. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -0
  210. package/dist/coolandlovely/pages/investor/InvestorDashboard.d.ts +9 -0
  211. package/dist/coolandlovely/pages/investor/InvestorDashboard.d.ts.map +1 -0
  212. package/dist/coolandlovely/pages/investor/InvestorDashboard.js +419 -0
  213. package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -0
  214. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.d.ts +10 -0
  215. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.d.ts.map +1 -0
  216. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +399 -0
  217. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -0
  218. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.d.ts +10 -0
  219. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.d.ts.map +1 -0
  220. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +569 -0
  221. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -0
  222. package/dist/coolandlovely/pages/investor/InvestorProfilePage.d.ts +12 -0
  223. package/dist/coolandlovely/pages/investor/InvestorProfilePage.d.ts.map +1 -0
  224. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +1065 -0
  225. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -0
  226. package/dist/coolandlovely/pages/worker/TaskDetailsPage.d.ts +22 -0
  227. package/dist/coolandlovely/pages/worker/TaskDetailsPage.d.ts.map +1 -0
  228. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +496 -0
  229. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -0
  230. package/dist/coolandlovely/pages/worker/WorkerDashboard.d.ts +18 -0
  231. package/dist/coolandlovely/pages/worker/WorkerDashboard.d.ts.map +1 -0
  232. package/dist/coolandlovely/pages/worker/WorkerDashboard.js +634 -0
  233. package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -0
  234. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.d.ts +18 -0
  235. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.d.ts.map +1 -0
  236. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +675 -0
  237. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -0
  238. package/dist/coolandlovely/pages/worker/WorkerProfilePage.d.ts +18 -0
  239. package/dist/coolandlovely/pages/worker/WorkerProfilePage.d.ts.map +1 -0
  240. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +687 -0
  241. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -0
  242. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.d.ts +17 -0
  243. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.d.ts.map +1 -0
  244. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +578 -0
  245. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -0
  246. package/dist/coolandlovely/store/coolandlovelyStore.d.ts +60 -0
  247. package/dist/coolandlovely/store/coolandlovelyStore.d.ts.map +1 -0
  248. package/dist/coolandlovely/store/coolandlovelyStore.js +38 -0
  249. package/dist/coolandlovely/store/coolandlovelyStore.js.map +1 -0
  250. package/dist/coolandlovely/store/index.d.ts +6 -0
  251. package/dist/coolandlovely/store/index.d.ts.map +1 -0
  252. package/dist/coolandlovely/store/index.js +1 -0
  253. package/dist/coolandlovely/types/index.d.ts +458 -0
  254. package/dist/coolandlovely/types/index.d.ts.map +1 -0
  255. package/dist/coolandlovely/utils/cn.d.ts +4 -0
  256. package/dist/coolandlovely/utils/cn.d.ts.map +1 -0
  257. package/dist/coolandlovely/utils/cn.js +10 -0
  258. package/dist/coolandlovely/utils/cn.js.map +1 -0
  259. package/dist/coolandlovely/utils/formatters.d.ts +78 -0
  260. package/dist/coolandlovely/utils/formatters.d.ts.map +1 -0
  261. package/dist/coolandlovely/utils/formatters.js +51 -0
  262. package/dist/coolandlovely/utils/formatters.js.map +1 -0
  263. package/dist/coolandlovely/utils/index.d.ts +8 -0
  264. package/dist/coolandlovely/utils/index.d.ts.map +1 -0
  265. package/dist/coolandlovely/utils/navigation.d.ts +20 -0
  266. package/dist/coolandlovely/utils/navigation.d.ts.map +1 -0
  267. package/dist/coolandlovely/utils/navigation.js +9 -0
  268. package/dist/coolandlovely/utils/navigation.js.map +1 -0
  269. package/dist/generated/global-operations.d.ts +2 -0
  270. package/dist/generated/global-operations.d.ts.map +1 -0
  271. package/dist/generated/global-types.d.ts +23527 -0
  272. package/dist/generated/global-types.d.ts.map +1 -0
  273. package/dist/generated/wspace-operations.d.ts +2 -0
  274. package/dist/generated/wspace-operations.d.ts.map +1 -0
  275. package/dist/generated/wspace-types.d.ts +57851 -0
  276. package/dist/generated/wspace-types.d.ts.map +1 -0
  277. package/dist/index.d.ts +6 -0
  278. package/dist/index.d.ts.map +1 -0
  279. package/dist/index.js +7 -0
  280. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +18 -0
  281. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
  282. package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
  283. package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  284. package/package.json +106 -0
@@ -0,0 +1,1065 @@
1
+ import { useCoolAndLovely as e } from "../../context/CoolAndLovelyContext.js";
2
+ import { cn as t } from "../../utils/cn.js";
3
+ import { PageLayout as n } from "../../components/PageLayout.js";
4
+ import { useInvestments as ee } from "../../hooks/useCoolAndLovelyApi.js";
5
+ import { formatCurrency as r, formatDate as te } from "../../utils/formatters.js";
6
+ import { mockActiveInvestments as i } from "../../mocks/data.js";
7
+ import { useCallback as a, useMemo as o, useState as s } from "react";
8
+ import { Bell as c, Briefcase as l, Building2 as u, Camera as ne, CheckCircle2 as d, DollarSign as re, Edit3 as ie, Eye as f, EyeOff as p, FileText as m, Globe as h, Linkedin as ae, Lock as g, Mail as _, MapPin as v, Monitor as y, Phone as oe, PieChart as b, Save as se, Shield as ce, Smartphone as le, TrendingUp as x, User as S, X as C } from "lucide-react";
9
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
10
+ //#region src/coolandlovely/pages/investor/InvestorProfilePage.tsx
11
+ var D = [
12
+ {
13
+ id: "personal",
14
+ label: "Personal Info",
15
+ Icon: S
16
+ },
17
+ {
18
+ id: "investment",
19
+ label: "Investment Profile",
20
+ Icon: x
21
+ },
22
+ {
23
+ id: "portfolio",
24
+ label: "Portfolio",
25
+ Icon: b
26
+ },
27
+ {
28
+ id: "documents",
29
+ label: "Documents",
30
+ Icon: m
31
+ },
32
+ {
33
+ id: "security",
34
+ label: "Security",
35
+ Icon: ce
36
+ },
37
+ {
38
+ id: "notifications",
39
+ label: "Notifications",
40
+ Icon: c
41
+ }
42
+ ], O = [
43
+ {
44
+ name: "PAN Card",
45
+ verifiedOn: "15 Dec 2023",
46
+ status: "verified"
47
+ },
48
+ {
49
+ name: "Aadhar Card",
50
+ verifiedOn: "15 Dec 2023",
51
+ status: "verified"
52
+ },
53
+ {
54
+ name: "Bank Statement",
55
+ verifiedOn: "20 Dec 2023",
56
+ status: "uploaded"
57
+ },
58
+ {
59
+ name: "Investment Agreement",
60
+ verifiedOn: "",
61
+ status: "template"
62
+ }
63
+ ], k = [
64
+ {
65
+ device: "Chrome on macOS",
66
+ location: "Bangalore, India",
67
+ date: "2024-01-16T08:30:00Z",
68
+ current: !0
69
+ },
70
+ {
71
+ device: "Safari on iPhone",
72
+ location: "Bangalore, India",
73
+ date: "2024-01-15T19:45:00Z",
74
+ current: !1
75
+ },
76
+ {
77
+ device: "Chrome on Windows",
78
+ location: "Mumbai, India",
79
+ date: "2024-01-14T10:20:00Z",
80
+ current: !1
81
+ }
82
+ ], ue = [
83
+ "Food & Beverage",
84
+ "Quick Commerce",
85
+ "Cloud Kitchen",
86
+ "Retail",
87
+ "Technology",
88
+ "Healthcare",
89
+ "Education",
90
+ "Logistics",
91
+ "FinTech"
92
+ ];
93
+ function A() {
94
+ let { currentUser: c, navigateTo: ce } = e(), { data: A = [] } = ee(c?.id || ""), [j, M] = s("personal"), [N, P] = s(!1), [F, I] = s(!1), [L, R] = s(""), z = o(() => ({
95
+ firstName: c?.firstName ?? c?.name?.split(" ")[0] ?? "Rajesh",
96
+ lastName: c?.lastName ?? c?.name?.split(" ")[1] ?? "Mehta",
97
+ email: c?.email ?? "investor@burdenoff.com",
98
+ phone: "+91 98765 43230",
99
+ profileImage: c?.avatar ?? "",
100
+ investorType: "Angel Investor",
101
+ investmentRange: "5L - 25L",
102
+ preferredSectors: [
103
+ "Food & Beverage",
104
+ "Quick Commerce",
105
+ "Cloud Kitchen"
106
+ ],
107
+ investmentHorizon: "3-5 years",
108
+ riskProfile: "Moderate",
109
+ companyName: "Mehta Ventures",
110
+ designation: "Managing Partner",
111
+ companyWebsite: "www.mehtaventures.com",
112
+ linkedinProfile: "linkedin.com/in/rajeshmehta",
113
+ address: "456, MG Road",
114
+ city: "Bangalore",
115
+ state: "Karnataka",
116
+ country: "India",
117
+ pincode: "560001"
118
+ }), [c]), [B, V] = s(z);
119
+ o(() => ({
120
+ totalInvested: A.reduce((e, t) => e + t.investedAmount, 0),
121
+ portfolioValue: A.reduce((e, t) => e + t.currentValue, 0),
122
+ totalReturns: A.reduce((e, t) => e + t.returns, 0),
123
+ activeInvestments: A.length
124
+ }), [A]);
125
+ let [H, de] = s([
126
+ {
127
+ id: "opportunities",
128
+ label: "New Investment Opportunities",
129
+ description: "Get notified about new investment opportunities matching your profile",
130
+ enabled: !0
131
+ },
132
+ {
133
+ id: "updates",
134
+ label: "Portfolio Updates",
135
+ description: "Regular updates on your portfolio performance",
136
+ enabled: !0
137
+ },
138
+ {
139
+ id: "reports",
140
+ label: "Monthly Reports",
141
+ description: "Detailed monthly investment reports",
142
+ enabled: !0
143
+ },
144
+ {
145
+ id: "events",
146
+ label: "Investor Events",
147
+ description: "Invitations to investor meetups and events",
148
+ enabled: !1
149
+ },
150
+ {
151
+ id: "news",
152
+ label: "Market News",
153
+ description: "Important market news and updates",
154
+ enabled: !0
155
+ },
156
+ {
157
+ id: "dividends",
158
+ label: "Dividend Alerts",
159
+ description: "Notifications when dividends are credited to your account",
160
+ enabled: !0
161
+ }
162
+ ]), [fe, U] = s(!1), [W, G] = s(""), [K, q] = s(""), [J, Y] = s(""), [X, pe] = s(!1), [Z, me] = s(!1), [Q, he] = s(!1), $ = a((e, t) => {
163
+ V((n) => ({
164
+ ...n,
165
+ [e]: t
166
+ }));
167
+ }, []), ge = a(() => {
168
+ I(!0), setTimeout(() => {
169
+ I(!1), P(!1), R("Profile updated successfully!"), setTimeout(() => R(""), 3e3);
170
+ }, 1200);
171
+ }, []), _e = a((e) => {
172
+ let t = e.target.files?.[0];
173
+ if (t) {
174
+ let e = new FileReader();
175
+ e.onloadend = () => {
176
+ V((t) => ({
177
+ ...t,
178
+ profileImage: e.result
179
+ }));
180
+ }, e.readAsDataURL(t);
181
+ }
182
+ }, []), ve = a((e) => {
183
+ de((t) => t.map((t) => t.id === e ? {
184
+ ...t,
185
+ enabled: !t.enabled
186
+ } : t));
187
+ }, []), ye = a(() => {
188
+ if (!(!W || !K || !J)) {
189
+ if (K !== J) {
190
+ alert("Passwords do not match");
191
+ return;
192
+ }
193
+ if (K.length < 8) {
194
+ alert("Password must be at least 8 characters");
195
+ return;
196
+ }
197
+ alert("Password changed successfully!"), U(!1), G(""), q(""), Y("");
198
+ }
199
+ }, [
200
+ W,
201
+ K,
202
+ J
203
+ ]), be = a(() => {
204
+ he((e) => {
205
+ let t = !e;
206
+ return alert(t ? "2FA has been enabled" : "2FA has been disabled"), t;
207
+ });
208
+ }, []);
209
+ return /* @__PURE__ */ T(n, {
210
+ title: "Investor Profile",
211
+ description: "Manage your investment profile and preferences",
212
+ actions: /* @__PURE__ */ E("div", {
213
+ className: "flex items-center gap-2",
214
+ children: [L && /* @__PURE__ */ T("span", {
215
+ className: "text-sm font-medium text-green-600 dark:text-green-400",
216
+ children: L
217
+ }), N ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("button", {
218
+ type: "button",
219
+ onClick: () => {
220
+ P(!1), V(z);
221
+ },
222
+ className: "flex items-center gap-2 rounded-lg border border-border px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
223
+ children: [/* @__PURE__ */ T(C, { className: "h-4 w-4" }), "Cancel"]
224
+ }), /* @__PURE__ */ T("button", {
225
+ type: "button",
226
+ onClick: ge,
227
+ disabled: F,
228
+ className: t("flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors", F ? "cursor-not-allowed bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"),
229
+ children: F ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(se, { className: "h-4 w-4" }), "Save Changes"] })
230
+ })] }) : /* @__PURE__ */ E("button", {
231
+ type: "button",
232
+ onClick: () => P(!0),
233
+ className: "flex items-center gap-2 rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",
234
+ children: [/* @__PURE__ */ T(ie, { className: "h-4 w-4" }), "Edit Profile"]
235
+ })]
236
+ }),
237
+ children: /* @__PURE__ */ E("div", {
238
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
239
+ children: [/* @__PURE__ */ E("div", {
240
+ className: "lg:col-span-1",
241
+ children: [
242
+ /* @__PURE__ */ E("div", {
243
+ className: "rounded-lg border border-border bg-card p-4 sm:p-6",
244
+ children: [/* @__PURE__ */ E("div", {
245
+ className: "text-center",
246
+ children: [
247
+ /* @__PURE__ */ E("div", {
248
+ className: "relative mx-auto inline-block",
249
+ children: [/* @__PURE__ */ T("div", {
250
+ className: "h-20 w-20 overflow-hidden rounded-full bg-muted sm:h-24 sm:w-24",
251
+ children: B.profileImage ? /* @__PURE__ */ T("img", {
252
+ src: B.profileImage,
253
+ alt: "Profile",
254
+ className: "h-full w-full object-cover"
255
+ }) : /* @__PURE__ */ T("div", {
256
+ className: "flex h-full w-full items-center justify-center",
257
+ children: /* @__PURE__ */ T(S, { className: "h-10 w-10 text-muted-foreground" })
258
+ })
259
+ }), N && /* @__PURE__ */ E("label", {
260
+ className: "absolute bottom-0 right-0 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
261
+ children: [/* @__PURE__ */ T(ne, { className: "h-4 w-4" }), /* @__PURE__ */ T("input", {
262
+ type: "file",
263
+ accept: "image/*",
264
+ onChange: _e,
265
+ className: "hidden"
266
+ })]
267
+ })]
268
+ }),
269
+ /* @__PURE__ */ E("h3", {
270
+ className: "mt-3 text-base font-semibold text-foreground sm:text-lg",
271
+ children: [
272
+ B.firstName,
273
+ " ",
274
+ B.lastName
275
+ ]
276
+ }),
277
+ /* @__PURE__ */ T("p", {
278
+ className: "text-sm text-muted-foreground",
279
+ children: B.investorType
280
+ }),
281
+ /* @__PURE__ */ T("p", {
282
+ className: "mt-1 truncate text-xs text-muted-foreground",
283
+ children: B.companyName
284
+ })
285
+ ]
286
+ }), /* @__PURE__ */ E("div", {
287
+ className: "mt-5 space-y-3 border-t border-border pt-4",
288
+ children: [
289
+ /* @__PURE__ */ E("div", {
290
+ className: "flex items-center justify-between",
291
+ children: [/* @__PURE__ */ T("span", {
292
+ className: "text-xs text-muted-foreground sm:text-sm",
293
+ children: "Portfolio Value"
294
+ }), /* @__PURE__ */ T("span", {
295
+ className: "text-xs font-semibold text-primary sm:text-sm",
296
+ children: r(B.portfolioValue ?? 0, { minimumFractionDigits: 0 })
297
+ })]
298
+ }),
299
+ /* @__PURE__ */ E("div", {
300
+ className: "flex items-center justify-between",
301
+ children: [/* @__PURE__ */ T("span", {
302
+ className: "text-xs text-muted-foreground sm:text-sm",
303
+ children: "Active Investments"
304
+ }), /* @__PURE__ */ T("span", {
305
+ className: "text-xs font-semibold text-foreground sm:text-sm",
306
+ children: B.activeInvestments
307
+ })]
308
+ }),
309
+ /* @__PURE__ */ E("div", {
310
+ className: "flex items-center justify-between",
311
+ children: [/* @__PURE__ */ T("span", {
312
+ className: "text-xs text-muted-foreground sm:text-sm",
313
+ children: "Total Returns"
314
+ }), /* @__PURE__ */ E("span", {
315
+ className: "text-xs font-semibold text-green-600 dark:text-green-400 sm:text-sm",
316
+ children: ["+", r(B.totalReturns ?? 0, { minimumFractionDigits: 0 })]
317
+ })]
318
+ }),
319
+ /* @__PURE__ */ E("div", {
320
+ className: "flex items-center justify-between",
321
+ children: [/* @__PURE__ */ T("span", {
322
+ className: "text-xs text-muted-foreground sm:text-sm",
323
+ children: "Total Invested"
324
+ }), /* @__PURE__ */ T("span", {
325
+ className: "text-xs font-semibold text-foreground sm:text-sm",
326
+ children: r(B.totalInvested ?? 0, { minimumFractionDigits: 0 })
327
+ })]
328
+ })
329
+ ]
330
+ })]
331
+ }),
332
+ /* @__PURE__ */ T("div", {
333
+ className: "mt-4 flex gap-2 overflow-x-auto pb-2 lg:hidden",
334
+ children: D.map((e) => /* @__PURE__ */ E("button", {
335
+ type: "button",
336
+ onClick: () => M(e.id),
337
+ className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors", j === e.id ? "bg-primary text-primary-foreground shadow-sm" : "bg-card text-foreground hover:bg-accent"),
338
+ children: [/* @__PURE__ */ T(e.Icon, { className: "h-4 w-4 shrink-0" }), e.label]
339
+ }, e.id))
340
+ }),
341
+ /* @__PURE__ */ T("div", {
342
+ className: "mt-4 hidden space-y-2 lg:block",
343
+ children: D.map((e) => /* @__PURE__ */ E("button", {
344
+ type: "button",
345
+ onClick: () => M(e.id),
346
+ className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors", j === e.id ? "bg-primary text-primary-foreground" : "bg-card text-foreground hover:bg-accent"),
347
+ children: [/* @__PURE__ */ T(e.Icon, { className: "h-4 w-4" }), e.label]
348
+ }, e.id))
349
+ })
350
+ ]
351
+ }), /* @__PURE__ */ T("div", {
352
+ className: "lg:col-span-3",
353
+ children: /* @__PURE__ */ E("div", {
354
+ className: "rounded-lg border border-border bg-card p-4 sm:p-6 lg:p-8",
355
+ children: [
356
+ j === "personal" && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h2", {
357
+ className: "mb-6 text-lg font-semibold text-foreground sm:text-xl",
358
+ children: "Personal Information"
359
+ }), /* @__PURE__ */ E("div", {
360
+ className: "space-y-6",
361
+ children: [
362
+ /* @__PURE__ */ E("div", {
363
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
364
+ children: [
365
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
366
+ className: "mb-1 block text-sm font-medium text-foreground",
367
+ children: "First Name"
368
+ }), /* @__PURE__ */ T("input", {
369
+ type: "text",
370
+ value: B.firstName,
371
+ onChange: (e) => $("firstName", e.target.value),
372
+ disabled: !N,
373
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
374
+ })] }),
375
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
376
+ className: "mb-1 block text-sm font-medium text-foreground",
377
+ children: "Last Name"
378
+ }), /* @__PURE__ */ T("input", {
379
+ type: "text",
380
+ value: B.lastName,
381
+ onChange: (e) => $("lastName", e.target.value),
382
+ disabled: !N,
383
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
384
+ })] }),
385
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
386
+ className: "mb-1 block text-sm font-medium text-foreground",
387
+ children: "Email Address"
388
+ }), /* @__PURE__ */ E("div", {
389
+ className: "relative",
390
+ children: [/* @__PURE__ */ T(_, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ T("input", {
391
+ type: "email",
392
+ value: B.email,
393
+ onChange: (e) => $("email", e.target.value),
394
+ disabled: !N,
395
+ className: "w-full rounded-lg border border-border bg-card py-2 pl-10 pr-3 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
396
+ })]
397
+ })] }),
398
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
399
+ className: "mb-1 block text-sm font-medium text-foreground",
400
+ children: "Phone Number"
401
+ }), /* @__PURE__ */ E("div", {
402
+ className: "relative",
403
+ children: [/* @__PURE__ */ T(oe, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ T("input", {
404
+ type: "tel",
405
+ value: B.phone,
406
+ onChange: (e) => $("phone", e.target.value),
407
+ disabled: !N,
408
+ className: "w-full rounded-lg border border-border bg-card py-2 pl-10 pr-3 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
409
+ })]
410
+ })] })
411
+ ]
412
+ }),
413
+ /* @__PURE__ */ E("div", {
414
+ className: "border-t border-border pt-6",
415
+ children: [/* @__PURE__ */ T("h3", {
416
+ className: "mb-4 text-sm font-semibold text-foreground sm:text-base",
417
+ children: "Professional Details"
418
+ }), /* @__PURE__ */ E("div", {
419
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
420
+ children: [
421
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
422
+ className: "mb-1 block text-sm font-medium text-foreground",
423
+ children: "Company/Organization"
424
+ }), /* @__PURE__ */ E("div", {
425
+ className: "relative",
426
+ children: [/* @__PURE__ */ T(u, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ T("input", {
427
+ type: "text",
428
+ value: B.companyName,
429
+ onChange: (e) => $("companyName", e.target.value),
430
+ disabled: !N,
431
+ className: "w-full rounded-lg border border-border bg-card py-2 pl-10 pr-3 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
432
+ })]
433
+ })] }),
434
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
435
+ className: "mb-1 block text-sm font-medium text-foreground",
436
+ children: "Designation"
437
+ }), /* @__PURE__ */ T("input", {
438
+ type: "text",
439
+ value: B.designation,
440
+ onChange: (e) => $("designation", e.target.value),
441
+ disabled: !N,
442
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
443
+ })] }),
444
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
445
+ className: "mb-1 block text-sm font-medium text-foreground",
446
+ children: "Company Website"
447
+ }), /* @__PURE__ */ E("div", {
448
+ className: "relative",
449
+ children: [/* @__PURE__ */ T(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ T("input", {
450
+ type: "text",
451
+ value: B.companyWebsite,
452
+ onChange: (e) => $("companyWebsite", e.target.value),
453
+ disabled: !N,
454
+ className: "w-full rounded-lg border border-border bg-card py-2 pl-10 pr-3 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
455
+ })]
456
+ })] }),
457
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
458
+ className: "mb-1 block text-sm font-medium text-foreground",
459
+ children: "LinkedIn Profile"
460
+ }), /* @__PURE__ */ E("div", {
461
+ className: "relative",
462
+ children: [/* @__PURE__ */ T(ae, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ T("input", {
463
+ type: "text",
464
+ value: B.linkedinProfile,
465
+ onChange: (e) => $("linkedinProfile", e.target.value),
466
+ disabled: !N,
467
+ className: "w-full rounded-lg border border-border bg-card py-2 pl-10 pr-3 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
468
+ })]
469
+ })] })
470
+ ]
471
+ })]
472
+ }),
473
+ /* @__PURE__ */ E("div", {
474
+ className: "border-t border-border pt-6",
475
+ children: [/* @__PURE__ */ T("h3", {
476
+ className: "mb-4 text-sm font-semibold text-foreground sm:text-base",
477
+ children: "Address"
478
+ }), /* @__PURE__ */ E("div", {
479
+ className: "space-y-4",
480
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
481
+ className: "mb-1 block text-sm font-medium text-foreground",
482
+ children: "Street Address"
483
+ }), /* @__PURE__ */ T("textarea", {
484
+ rows: 2,
485
+ value: B.address,
486
+ onChange: (e) => $("address", e.target.value),
487
+ disabled: !N,
488
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
489
+ })] }), /* @__PURE__ */ E("div", {
490
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
491
+ children: [
492
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
493
+ className: "mb-1 block text-sm font-medium text-foreground",
494
+ children: "City"
495
+ }), /* @__PURE__ */ T("input", {
496
+ type: "text",
497
+ value: B.city,
498
+ onChange: (e) => $("city", e.target.value),
499
+ disabled: !N,
500
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
501
+ })] }),
502
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
503
+ className: "mb-1 block text-sm font-medium text-foreground",
504
+ children: "State"
505
+ }), /* @__PURE__ */ T("input", {
506
+ type: "text",
507
+ value: B.state,
508
+ onChange: (e) => $("state", e.target.value),
509
+ disabled: !N,
510
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
511
+ })] }),
512
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
513
+ className: "mb-1 block text-sm font-medium text-foreground",
514
+ children: "Country"
515
+ }), /* @__PURE__ */ T("input", {
516
+ type: "text",
517
+ value: B.country,
518
+ onChange: (e) => $("country", e.target.value),
519
+ disabled: !N,
520
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
521
+ })] }),
522
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
523
+ className: "mb-1 block text-sm font-medium text-foreground",
524
+ children: "Pincode"
525
+ }), /* @__PURE__ */ T("input", {
526
+ type: "text",
527
+ value: B.pincode,
528
+ onChange: (e) => $("pincode", e.target.value),
529
+ disabled: !N,
530
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
531
+ })] })
532
+ ]
533
+ })]
534
+ })]
535
+ })
536
+ ]
537
+ })] }),
538
+ j === "investment" && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h2", {
539
+ className: "mb-6 text-lg font-semibold text-foreground sm:text-xl",
540
+ children: "Investment Profile"
541
+ }), /* @__PURE__ */ E("div", {
542
+ className: "space-y-6",
543
+ children: [
544
+ /* @__PURE__ */ E("div", {
545
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
546
+ children: [
547
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
548
+ className: "mb-1 block text-sm font-medium text-foreground",
549
+ children: "Investor Type"
550
+ }), /* @__PURE__ */ E("select", {
551
+ value: B.investorType,
552
+ onChange: (e) => $("investorType", e.target.value),
553
+ disabled: !N,
554
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring",
555
+ children: [
556
+ /* @__PURE__ */ T("option", { children: "Angel Investor" }),
557
+ /* @__PURE__ */ T("option", { children: "Venture Capitalist" }),
558
+ /* @__PURE__ */ T("option", { children: "Private Equity" }),
559
+ /* @__PURE__ */ T("option", { children: "Strategic Investor" })
560
+ ]
561
+ })] }),
562
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
563
+ className: "mb-1 block text-sm font-medium text-foreground",
564
+ children: "Investment Range"
565
+ }), /* @__PURE__ */ E("select", {
566
+ value: B.investmentRange,
567
+ onChange: (e) => $("investmentRange", e.target.value),
568
+ disabled: !N,
569
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring",
570
+ children: [
571
+ /* @__PURE__ */ T("option", { children: "1L - 5L" }),
572
+ /* @__PURE__ */ T("option", { children: "5L - 25L" }),
573
+ /* @__PURE__ */ T("option", { children: "25L - 1Cr" }),
574
+ /* @__PURE__ */ T("option", { children: "1Cr+" })
575
+ ]
576
+ })] }),
577
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
578
+ className: "mb-1 block text-sm font-medium text-foreground",
579
+ children: "Investment Horizon"
580
+ }), /* @__PURE__ */ E("select", {
581
+ value: B.investmentHorizon,
582
+ onChange: (e) => $("investmentHorizon", e.target.value),
583
+ disabled: !N,
584
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring",
585
+ children: [
586
+ /* @__PURE__ */ T("option", { children: "1-2 years" }),
587
+ /* @__PURE__ */ T("option", { children: "3-5 years" }),
588
+ /* @__PURE__ */ T("option", { children: "5-7 years" }),
589
+ /* @__PURE__ */ T("option", { children: "7+ years" })
590
+ ]
591
+ })] }),
592
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
593
+ className: "mb-1 block text-sm font-medium text-foreground",
594
+ children: "Risk Profile"
595
+ }), /* @__PURE__ */ E("select", {
596
+ value: B.riskProfile,
597
+ onChange: (e) => $("riskProfile", e.target.value),
598
+ disabled: !N,
599
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground disabled:bg-muted disabled:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring",
600
+ children: [
601
+ /* @__PURE__ */ T("option", { children: "Conservative" }),
602
+ /* @__PURE__ */ T("option", { children: "Moderate" }),
603
+ /* @__PURE__ */ T("option", { children: "Aggressive" })
604
+ ]
605
+ })] })
606
+ ]
607
+ }),
608
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
609
+ className: "mb-3 block text-sm font-medium text-foreground",
610
+ children: "Preferred Sectors"
611
+ }), /* @__PURE__ */ T("div", {
612
+ className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
613
+ children: ue.map((e) => /* @__PURE__ */ E("label", {
614
+ className: "flex items-center gap-2",
615
+ children: [/* @__PURE__ */ T("input", {
616
+ type: "checkbox",
617
+ checked: B.preferredSectors.includes(e),
618
+ onChange: (t) => {
619
+ t.target.checked ? $("preferredSectors", [...B.preferredSectors, e]) : $("preferredSectors", B.preferredSectors.filter((t) => t !== e));
620
+ },
621
+ disabled: !N,
622
+ className: "h-4 w-4 rounded border-border text-primary focus:ring-ring"
623
+ }), /* @__PURE__ */ T("span", {
624
+ className: "text-sm text-foreground",
625
+ children: e
626
+ })]
627
+ }, e))
628
+ })] }),
629
+ /* @__PURE__ */ E("div", {
630
+ className: "rounded-lg border border-border p-4",
631
+ children: [/* @__PURE__ */ E("div", {
632
+ className: "mb-2 flex items-center justify-between",
633
+ children: [/* @__PURE__ */ T("p", {
634
+ className: "text-sm font-medium text-foreground",
635
+ children: "Risk Tolerance"
636
+ }), /* @__PURE__ */ T("span", {
637
+ className: t("text-sm font-semibold", B.riskProfile === "Conservative" ? "text-green-600 dark:text-green-400" : B.riskProfile === "Moderate" ? "text-yellow-600 dark:text-yellow-400" : "text-red-600 dark:text-red-400"),
638
+ children: B.riskProfile
639
+ })]
640
+ }), /* @__PURE__ */ T("div", {
641
+ className: "flex gap-1",
642
+ children: [
643
+ "Conservative",
644
+ "Moderate",
645
+ "Aggressive"
646
+ ].map((e) => /* @__PURE__ */ T("div", { className: t("h-2.5 flex-1 rounded-full", e === "Conservative" && "bg-green-500/30", e === "Moderate" && "bg-yellow-500/30", e === "Aggressive" && "bg-red-500/30", e === B.riskProfile && e === "Conservative" && "bg-green-500", e === B.riskProfile && e === "Moderate" && "bg-yellow-500", e === B.riskProfile && e === "Aggressive" && "bg-red-500") }, e))
647
+ })]
648
+ })
649
+ ]
650
+ })] }),
651
+ j === "portfolio" && /* @__PURE__ */ E("div", { children: [
652
+ /* @__PURE__ */ T("h2", {
653
+ className: "mb-6 text-lg font-semibold text-foreground sm:text-xl",
654
+ children: "Investment Portfolio"
655
+ }),
656
+ /* @__PURE__ */ E("div", {
657
+ className: "mb-8 grid grid-cols-2 gap-4 sm:grid-cols-4 sm:gap-6",
658
+ children: [
659
+ /* @__PURE__ */ E("div", {
660
+ className: "rounded-lg bg-muted/50 p-4",
661
+ children: [
662
+ /* @__PURE__ */ T(re, { className: "mb-2 h-7 w-7 text-primary sm:h-8 sm:w-8" }),
663
+ /* @__PURE__ */ T("div", {
664
+ className: "text-lg font-bold text-foreground sm:text-2xl",
665
+ children: r(B.totalInvested ?? 0, {
666
+ minimumFractionDigits: 0,
667
+ notation: "compact"
668
+ })
669
+ }),
670
+ /* @__PURE__ */ T("div", {
671
+ className: "text-xs text-muted-foreground sm:text-sm",
672
+ children: "Total Invested"
673
+ })
674
+ ]
675
+ }),
676
+ /* @__PURE__ */ E("div", {
677
+ className: "rounded-lg bg-muted/50 p-4",
678
+ children: [
679
+ /* @__PURE__ */ T(l, { className: "mb-2 h-7 w-7 text-blue-600 sm:h-8 sm:w-8" }),
680
+ /* @__PURE__ */ T("div", {
681
+ className: "text-lg font-bold text-foreground sm:text-2xl",
682
+ children: B.activeInvestments
683
+ }),
684
+ /* @__PURE__ */ T("div", {
685
+ className: "text-xs text-muted-foreground sm:text-sm",
686
+ children: "Active Investments"
687
+ })
688
+ ]
689
+ }),
690
+ /* @__PURE__ */ E("div", {
691
+ className: "rounded-lg bg-muted/50 p-4",
692
+ children: [
693
+ /* @__PURE__ */ T(x, { className: "mb-2 h-7 w-7 text-green-600 sm:h-8 sm:w-8" }),
694
+ /* @__PURE__ */ T("div", {
695
+ className: "text-lg font-bold text-foreground sm:text-2xl",
696
+ children: r(B.totalReturns ?? 0, {
697
+ minimumFractionDigits: 0,
698
+ notation: "compact"
699
+ })
700
+ }),
701
+ /* @__PURE__ */ T("div", {
702
+ className: "text-xs text-muted-foreground sm:text-sm",
703
+ children: "Total Returns"
704
+ })
705
+ ]
706
+ }),
707
+ /* @__PURE__ */ E("div", {
708
+ className: "rounded-lg bg-muted/50 p-4",
709
+ children: [
710
+ /* @__PURE__ */ T(b, { className: "mb-2 h-7 w-7 text-purple-600 sm:h-8 sm:w-8" }),
711
+ /* @__PURE__ */ T("div", {
712
+ className: "text-lg font-bold text-foreground sm:text-2xl",
713
+ children: r(B.portfolioValue ?? 0, {
714
+ minimumFractionDigits: 0,
715
+ notation: "compact"
716
+ })
717
+ }),
718
+ /* @__PURE__ */ T("div", {
719
+ className: "text-xs text-muted-foreground sm:text-sm",
720
+ children: "Portfolio Value"
721
+ })
722
+ ]
723
+ })
724
+ ]
725
+ }),
726
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
727
+ className: "mb-4 text-base font-semibold text-foreground",
728
+ children: "Active Investments"
729
+ }), /* @__PURE__ */ T("div", {
730
+ className: "space-y-3",
731
+ children: i.map((e, n) => /* @__PURE__ */ E("div", {
732
+ className: "rounded-lg border border-border bg-muted/30 p-4",
733
+ children: [/* @__PURE__ */ E("div", {
734
+ className: "mb-3 flex items-start justify-between",
735
+ children: [/* @__PURE__ */ T("h4", {
736
+ className: "text-sm font-medium text-foreground sm:text-base",
737
+ children: e.cartName
738
+ }), /* @__PURE__ */ E("span", {
739
+ className: t("text-sm font-semibold", e.returns > 0 ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"),
740
+ children: [
741
+ e.returns > 0 ? "+" : "",
742
+ e.returns,
743
+ "%"
744
+ ]
745
+ })]
746
+ }), /* @__PURE__ */ E("div", {
747
+ className: "grid grid-cols-1 gap-3 text-sm sm:grid-cols-3",
748
+ children: [
749
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("span", {
750
+ className: "text-muted-foreground",
751
+ children: "Invested: "
752
+ }), /* @__PURE__ */ T("span", {
753
+ className: "font-medium text-foreground",
754
+ children: r(e.investedAmount, { minimumFractionDigits: 0 })
755
+ })] }),
756
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("span", {
757
+ className: "text-muted-foreground",
758
+ children: "Current Value: "
759
+ }), /* @__PURE__ */ T("span", {
760
+ className: "font-medium text-foreground",
761
+ children: r(e.currentValue, { minimumFractionDigits: 0 })
762
+ })] }),
763
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("span", {
764
+ className: "text-muted-foreground",
765
+ children: "Returns: "
766
+ }), /* @__PURE__ */ T("span", {
767
+ className: "font-medium text-green-600 dark:text-green-400",
768
+ children: r(e.currentValue - e.investedAmount, { minimumFractionDigits: 0 })
769
+ })] })
770
+ ]
771
+ })]
772
+ }, n))
773
+ })] })
774
+ ] }),
775
+ j === "documents" && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h2", {
776
+ className: "mb-6 text-lg font-semibold text-foreground sm:text-xl",
777
+ children: "Documents & KYC"
778
+ }), /* @__PURE__ */ E("div", {
779
+ className: "space-y-6",
780
+ children: [
781
+ /* @__PURE__ */ E("div", {
782
+ className: "flex items-center gap-2 rounded-lg bg-green-500/10 px-4 py-3",
783
+ children: [/* @__PURE__ */ T(d, { className: "h-5 w-5 text-green-600 dark:text-green-400" }), /* @__PURE__ */ T("p", {
784
+ className: "text-sm font-medium text-green-600 dark:text-green-400",
785
+ children: "Your KYC is complete and verified"
786
+ })]
787
+ }),
788
+ /* @__PURE__ */ T("div", {
789
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
790
+ children: O.map((e) => /* @__PURE__ */ E("div", {
791
+ className: "rounded-lg border border-border bg-card p-4 sm:p-6",
792
+ children: [
793
+ /* @__PURE__ */ T(m, { className: "mb-3 h-8 w-8 text-primary" }),
794
+ /* @__PURE__ */ T("h3", {
795
+ className: "text-base font-semibold text-foreground",
796
+ children: e.name
797
+ }),
798
+ /* @__PURE__ */ T("p", {
799
+ className: "mt-1 text-sm text-muted-foreground",
800
+ children: e.status === "verified" ? `Verified on ${e.verifiedOn}` : e.status === "uploaded" ? `Uploaded on ${e.verifiedOn}` : "Template available"
801
+ }),
802
+ /* @__PURE__ */ E("div", {
803
+ className: "mt-3 flex items-center gap-2",
804
+ children: [
805
+ e.status === "verified" && /* @__PURE__ */ E("span", {
806
+ className: "flex items-center gap-1 rounded-full bg-green-500/20 px-2 py-0.5 text-xs font-medium text-green-600 dark:text-green-400",
807
+ children: [/* @__PURE__ */ T(d, { className: "h-3 w-3" }), "Verified"]
808
+ }),
809
+ e.status === "uploaded" && /* @__PURE__ */ E("span", {
810
+ className: "flex items-center gap-1 rounded-full bg-blue-500/20 px-2 py-0.5 text-xs font-medium text-blue-600 dark:text-blue-400",
811
+ children: [/* @__PURE__ */ T(m, { className: "h-3 w-3" }), "Uploaded"]
812
+ }),
813
+ /* @__PURE__ */ T("button", {
814
+ type: "button",
815
+ onClick: () => alert(e.status === "template" ? `Downloading ${e.name} template...` : `Viewing ${e.name}...`),
816
+ className: "rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-foreground hover:bg-accent transition-colors",
817
+ children: e.status === "template" ? "Download Template" : "View Document"
818
+ })
819
+ ]
820
+ })
821
+ ]
822
+ }, e.name))
823
+ }),
824
+ N && /* @__PURE__ */ E("div", {
825
+ className: "rounded-lg border-2 border-dashed border-border p-6 text-center",
826
+ children: [
827
+ /* @__PURE__ */ T(m, { className: "mx-auto mb-2 h-8 w-8 text-muted-foreground" }),
828
+ /* @__PURE__ */ T("p", {
829
+ className: "text-sm font-medium text-foreground",
830
+ children: "Upload New Document"
831
+ }),
832
+ /* @__PURE__ */ T("p", {
833
+ className: "mt-1 text-xs text-muted-foreground",
834
+ children: "PDF, JPG, or PNG up to 10MB"
835
+ }),
836
+ /* @__PURE__ */ E("label", {
837
+ className: "mt-3 inline-block cursor-pointer rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",
838
+ children: ["Choose File", /* @__PURE__ */ T("input", {
839
+ type: "file",
840
+ accept: ".pdf,.jpg,.png",
841
+ className: "hidden"
842
+ })]
843
+ })
844
+ ]
845
+ })
846
+ ]
847
+ })] }),
848
+ j === "security" && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h2", {
849
+ className: "mb-6 text-lg font-semibold text-foreground sm:text-xl",
850
+ children: "Security Settings"
851
+ }), /* @__PURE__ */ E("div", {
852
+ className: "space-y-6",
853
+ children: [
854
+ /* @__PURE__ */ E("div", {
855
+ className: "rounded-lg border border-border p-4 sm:p-6",
856
+ children: [
857
+ /* @__PURE__ */ E("div", {
858
+ className: "flex items-center gap-3 mb-3",
859
+ children: [/* @__PURE__ */ T(g, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ T("h3", {
860
+ className: "text-base font-semibold text-foreground",
861
+ children: "Change Password"
862
+ })]
863
+ }),
864
+ /* @__PURE__ */ T("p", {
865
+ className: "mb-4 text-sm text-muted-foreground",
866
+ children: "Update your password regularly to keep your account secure"
867
+ }),
868
+ fe ? /* @__PURE__ */ E("div", {
869
+ className: "space-y-4",
870
+ children: [
871
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
872
+ className: "mb-1 block text-sm font-medium text-foreground",
873
+ children: "Current Password"
874
+ }), /* @__PURE__ */ E("div", {
875
+ className: "relative",
876
+ children: [/* @__PURE__ */ T("input", {
877
+ type: X ? "text" : "password",
878
+ value: W,
879
+ onChange: (e) => G(e.target.value),
880
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 pr-10 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring"
881
+ }), /* @__PURE__ */ T("button", {
882
+ type: "button",
883
+ onClick: () => pe(!X),
884
+ className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",
885
+ children: T(X ? p : f, { className: "h-4 w-4" })
886
+ })]
887
+ })] }),
888
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
889
+ className: "mb-1 block text-sm font-medium text-foreground",
890
+ children: "New Password"
891
+ }), /* @__PURE__ */ E("div", {
892
+ className: "relative",
893
+ children: [/* @__PURE__ */ T("input", {
894
+ type: Z ? "text" : "password",
895
+ value: K,
896
+ onChange: (e) => q(e.target.value),
897
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 pr-10 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring"
898
+ }), /* @__PURE__ */ T("button", {
899
+ type: "button",
900
+ onClick: () => me(!Z),
901
+ className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",
902
+ children: T(Z ? p : f, { className: "h-4 w-4" })
903
+ })]
904
+ })] }),
905
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
906
+ className: "mb-1 block text-sm font-medium text-foreground",
907
+ children: "Confirm New Password"
908
+ }), /* @__PURE__ */ T("input", {
909
+ type: "password",
910
+ value: J,
911
+ onChange: (e) => Y(e.target.value),
912
+ className: "w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring"
913
+ })] }),
914
+ /* @__PURE__ */ E("div", {
915
+ className: "flex gap-3",
916
+ children: [/* @__PURE__ */ T("button", {
917
+ type: "button",
918
+ onClick: ye,
919
+ className: "rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",
920
+ children: "Update Password"
921
+ }), /* @__PURE__ */ T("button", {
922
+ type: "button",
923
+ onClick: () => {
924
+ U(!1), G(""), q(""), Y("");
925
+ },
926
+ className: "rounded-lg border border-border px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
927
+ children: "Cancel"
928
+ })]
929
+ })
930
+ ]
931
+ }) : /* @__PURE__ */ T("button", {
932
+ type: "button",
933
+ onClick: () => U(!0),
934
+ className: "rounded-lg border border-border px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
935
+ children: "Change Password"
936
+ })
937
+ ]
938
+ }),
939
+ /* @__PURE__ */ E("div", {
940
+ className: "rounded-lg border border-border p-4 sm:p-6",
941
+ children: [
942
+ /* @__PURE__ */ E("div", {
943
+ className: "flex items-center gap-3 mb-3",
944
+ children: [/* @__PURE__ */ T(le, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ T("h3", {
945
+ className: "text-base font-semibold text-foreground",
946
+ children: "Two-Factor Authentication"
947
+ })]
948
+ }),
949
+ /* @__PURE__ */ T("p", {
950
+ className: "mb-4 text-sm text-muted-foreground",
951
+ children: "Add an extra layer of security to your investment account"
952
+ }),
953
+ /* @__PURE__ */ E("div", {
954
+ className: "flex items-center justify-between rounded-lg bg-muted/50 p-3",
955
+ children: [/* @__PURE__ */ T("div", {
956
+ className: "flex items-center gap-2",
957
+ children: /* @__PURE__ */ T("span", {
958
+ className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", Q ? "bg-green-500/20 text-green-600 dark:text-green-400" : "bg-muted text-muted-foreground"),
959
+ children: Q ? "Enabled" : "Disabled"
960
+ })
961
+ }), /* @__PURE__ */ T("button", {
962
+ type: "button",
963
+ onClick: be,
964
+ className: t("rounded-lg px-4 py-2 text-sm font-medium transition-colors", Q ? "border border-border text-foreground hover:bg-accent" : "bg-primary text-primary-foreground hover:bg-primary/90"),
965
+ children: Q ? "Disable 2FA" : "Enable 2FA"
966
+ })]
967
+ })
968
+ ]
969
+ }),
970
+ /* @__PURE__ */ E("div", {
971
+ className: "rounded-lg border border-border p-4 sm:p-6",
972
+ children: [/* @__PURE__ */ E("div", {
973
+ className: "flex items-center gap-3 mb-4",
974
+ children: [/* @__PURE__ */ T(y, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ T("h3", {
975
+ className: "text-base font-semibold text-foreground",
976
+ children: "Login Activity"
977
+ })]
978
+ }), /* @__PURE__ */ T("div", {
979
+ className: "space-y-3",
980
+ children: k.map((e, t) => /* @__PURE__ */ E("div", {
981
+ className: "flex items-center justify-between rounded-lg bg-muted/30 p-3",
982
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
983
+ className: "flex items-center gap-2",
984
+ children: [/* @__PURE__ */ T("p", {
985
+ className: "text-sm font-medium text-foreground",
986
+ children: e.device
987
+ }), e.current && /* @__PURE__ */ T("span", {
988
+ className: "rounded-full bg-green-500/20 px-2 py-0.5 text-xs font-medium text-green-600 dark:text-green-400",
989
+ children: "Current"
990
+ })]
991
+ }), /* @__PURE__ */ E("div", {
992
+ className: "mt-1 flex items-center gap-2 text-xs text-muted-foreground",
993
+ children: [
994
+ /* @__PURE__ */ T(v, { className: "h-3 w-3" }),
995
+ /* @__PURE__ */ T("span", { children: e.location }),
996
+ /* @__PURE__ */ T("span", { children: "•" }),
997
+ /* @__PURE__ */ T("span", { children: te(e.date, {
998
+ hour: "numeric",
999
+ minute: "2-digit"
1000
+ }) })
1001
+ ]
1002
+ })] }), !e.current && /* @__PURE__ */ T("button", {
1003
+ type: "button",
1004
+ onClick: () => alert("Session revoked"),
1005
+ className: "rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-foreground hover:bg-accent transition-colors",
1006
+ children: "Revoke"
1007
+ })]
1008
+ }, t))
1009
+ })]
1010
+ })
1011
+ ]
1012
+ })] }),
1013
+ j === "notifications" && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h2", {
1014
+ className: "mb-6 text-lg font-semibold text-foreground sm:text-xl",
1015
+ children: "Notification Preferences"
1016
+ }), /* @__PURE__ */ E("div", {
1017
+ className: "space-y-4",
1018
+ children: [H.map((e) => /* @__PURE__ */ E("div", {
1019
+ className: "flex items-center justify-between rounded-lg border border-border bg-muted/30 p-4",
1020
+ children: [/* @__PURE__ */ E("div", {
1021
+ className: "flex-1 pr-4",
1022
+ children: [/* @__PURE__ */ T("h4", {
1023
+ className: "text-sm font-medium text-foreground",
1024
+ children: e.label
1025
+ }), /* @__PURE__ */ T("p", {
1026
+ className: "mt-0.5 text-xs text-muted-foreground sm:text-sm",
1027
+ children: e.description
1028
+ })]
1029
+ }), /* @__PURE__ */ T("button", {
1030
+ type: "button",
1031
+ onClick: () => {
1032
+ N && ve(e.id);
1033
+ },
1034
+ disabled: !N,
1035
+ className: t("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full transition-colors duration-200", e.enabled ? "bg-primary" : "bg-muted", !N && "cursor-not-allowed opacity-60"),
1036
+ children: /* @__PURE__ */ T("span", { className: t("pointer-events-none inline-block h-5 w-5 translate-y-0.5 rounded-full bg-white shadow ring-0 transition-transform duration-200", e.enabled ? "translate-x-5" : "translate-x-0.5") })
1037
+ })]
1038
+ }, e.id)), /* @__PURE__ */ T("div", {
1039
+ className: "mt-4 rounded-lg border border-border bg-muted/50 p-4",
1040
+ children: /* @__PURE__ */ E("p", {
1041
+ className: "text-sm text-muted-foreground",
1042
+ children: [
1043
+ H.filter((e) => e.enabled).length,
1044
+ " of ",
1045
+ H.length,
1046
+ " ",
1047
+ "notification types enabled.",
1048
+ !N && /* @__PURE__ */ T("span", {
1049
+ className: "ml-1",
1050
+ children: "Click \"Edit Profile\" to modify preferences."
1051
+ })
1052
+ ]
1053
+ })
1054
+ })]
1055
+ })] })
1056
+ ]
1057
+ })
1058
+ })]
1059
+ })
1060
+ });
1061
+ }
1062
+ //#endregion
1063
+ export { A as InvestorProfilePage };
1064
+
1065
+ //# sourceMappingURL=InvestorProfilePage.js.map