@burdenoff/microfe-brainyrich 2026.805.1 → 2026.825.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 (504) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +1 -1
  2. package/dist/brainyrich/BrainyRichRoot.d.ts +0 -1
  3. package/dist/brainyrich/BrainyRichRoot.js.map +1 -1
  4. package/dist/brainyrich/BrainyRichRoutes.d.ts.map +1 -1
  5. package/dist/brainyrich/BrainyRichRoutes.js +21 -17
  6. package/dist/brainyrich/BrainyRichRoutes.js.map +1 -1
  7. package/dist/brainyrich/components/ActorName.js.map +1 -1
  8. package/dist/brainyrich/components/ConfirmDialog.d.ts +0 -1
  9. package/dist/brainyrich/components/ConfirmDialog.js.map +1 -1
  10. package/dist/brainyrich/components/LoadMore.js.map +1 -1
  11. package/dist/brainyrich/components/notify.js.map +1 -1
  12. package/dist/brainyrich/components/pickers.js.map +1 -1
  13. package/dist/brainyrich/components/reuse/CommentThread.js.map +1 -1
  14. package/dist/brainyrich/components/reuse/DocumentsPanel.js.map +1 -1
  15. package/dist/brainyrich/components/reuse/TagField.js.map +1 -1
  16. package/dist/brainyrich/components/reuse/transport.js.map +1 -1
  17. package/dist/brainyrich/components/viz.d.ts +0 -1
  18. package/dist/brainyrich/components/viz.js.map +1 -1
  19. package/dist/brainyrich/hooks/useBrainyRichAnalytics.js.map +1 -1
  20. package/dist/brainyrich/hooks/useBrainyRichApi.d.ts +3 -2
  21. package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
  22. package/dist/brainyrich/hooks/useBrainyRichApi.js +20 -12
  23. package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
  24. package/dist/brainyrich/pages/AccountsPage.d.ts.map +1 -1
  25. package/dist/brainyrich/pages/AccountsPage.js +367 -363
  26. package/dist/brainyrich/pages/AccountsPage.js.map +1 -1
  27. package/dist/brainyrich/pages/AdminFirmPage.d.ts +2 -0
  28. package/dist/brainyrich/pages/AdminFirmPage.d.ts.map +1 -0
  29. package/dist/brainyrich/pages/AdminFirmPage.js +137 -0
  30. package/dist/brainyrich/pages/AdminFirmPage.js.map +1 -0
  31. package/dist/brainyrich/pages/AiAssistantPage.js.map +1 -1
  32. package/dist/brainyrich/pages/AnalyticsPage.js.map +1 -1
  33. package/dist/brainyrich/pages/DashboardPage.js.map +1 -1
  34. package/dist/brainyrich/pages/FamilyPage.js.map +1 -1
  35. package/dist/brainyrich/pages/FirmPage.js.map +1 -1
  36. package/dist/brainyrich/pages/GoalsPage.js.map +1 -1
  37. package/dist/brainyrich/pages/InvestmentsPage.js.map +1 -1
  38. package/dist/brainyrich/pages/PortfoliosPage.js.map +1 -1
  39. package/dist/brainyrich/pages/ReportsPage.js.map +1 -1
  40. package/dist/brainyrich/pages/RiskPage.js.map +1 -1
  41. package/dist/brainyrich/pages/TaxPage.js.map +1 -1
  42. package/dist/brainyrich/pages/_shared.d.ts +0 -1
  43. package/dist/brainyrich/pages/_shared.js.map +1 -1
  44. package/dist/brainyrich/providers/BrainyRichProvider.d.ts +0 -1
  45. package/dist/brainyrich/providers/BrainyRichProvider.js.map +1 -1
  46. package/dist/brainyrich/services/createSandboxAssistantTransport.js.map +1 -1
  47. package/dist/brainyrich/types/bra.d.ts +15 -0
  48. package/dist/brainyrich/types/bra.d.ts.map +1 -1
  49. package/dist/brainyrich/types/index.d.ts +0 -1
  50. package/dist/brainyrich/utils/cn.d.ts +0 -1
  51. package/dist/brainyrich/utils/i18n.d.ts +0 -1
  52. package/dist/brainyrich/utils/i18n.js.map +1 -1
  53. package/dist/brainyrich/utils/nativeControls.d.ts +0 -1
  54. package/dist/brainyrich/utils/nativeControls.js.map +1 -1
  55. package/dist/brainyrich/utils/navigation.js.map +1 -1
  56. package/dist/brainyrich/utils/pageContext.js.map +1 -1
  57. package/dist/dev/main.d.ts +0 -1
  58. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  59. package/dist/node_modules/d3-array/src/ascending.js.map +1 -1
  60. package/dist/node_modules/d3-array/src/bisect.js.map +1 -1
  61. package/dist/node_modules/d3-array/src/bisector.js.map +1 -1
  62. package/dist/node_modules/d3-array/src/descending.js.map +1 -1
  63. package/dist/node_modules/d3-array/src/max.js.map +1 -1
  64. package/dist/node_modules/d3-array/src/min.js.map +1 -1
  65. package/dist/node_modules/d3-array/src/number.js.map +1 -1
  66. package/dist/node_modules/d3-array/src/quantile.js.map +1 -1
  67. package/dist/node_modules/d3-array/src/quickselect.js.map +1 -1
  68. package/dist/node_modules/d3-array/src/range.js.map +1 -1
  69. package/dist/node_modules/d3-array/src/sort.js.map +1 -1
  70. package/dist/node_modules/d3-array/src/ticks.js.map +1 -1
  71. package/dist/node_modules/d3-color/src/color.js.map +1 -1
  72. package/dist/node_modules/d3-color/src/define.js.map +1 -1
  73. package/dist/node_modules/d3-format/src/defaultLocale.js.map +1 -1
  74. package/dist/node_modules/d3-format/src/exponent.js.map +1 -1
  75. package/dist/node_modules/d3-format/src/formatDecimal.js.map +1 -1
  76. package/dist/node_modules/d3-format/src/formatGroup.js.map +1 -1
  77. package/dist/node_modules/d3-format/src/formatNumerals.js.map +1 -1
  78. package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +1 -1
  79. package/dist/node_modules/d3-format/src/formatRounded.js.map +1 -1
  80. package/dist/node_modules/d3-format/src/formatSpecifier.js.map +1 -1
  81. package/dist/node_modules/d3-format/src/formatTrim.js.map +1 -1
  82. package/dist/node_modules/d3-format/src/formatTypes.js.map +1 -1
  83. package/dist/node_modules/d3-format/src/identity.js.map +1 -1
  84. package/dist/node_modules/d3-format/src/locale.js.map +1 -1
  85. package/dist/node_modules/d3-format/src/precisionFixed.js.map +1 -1
  86. package/dist/node_modules/d3-format/src/precisionPrefix.js.map +1 -1
  87. package/dist/node_modules/d3-format/src/precisionRound.js.map +1 -1
  88. package/dist/node_modules/d3-interpolate/src/array.js.map +1 -1
  89. package/dist/node_modules/d3-interpolate/src/basis.js.map +1 -1
  90. package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +1 -1
  91. package/dist/node_modules/d3-interpolate/src/color.js.map +1 -1
  92. package/dist/node_modules/d3-interpolate/src/date.js.map +1 -1
  93. package/dist/node_modules/d3-interpolate/src/number.js.map +1 -1
  94. package/dist/node_modules/d3-interpolate/src/numberArray.js.map +1 -1
  95. package/dist/node_modules/d3-interpolate/src/object.js.map +1 -1
  96. package/dist/node_modules/d3-interpolate/src/piecewise.js.map +1 -1
  97. package/dist/node_modules/d3-interpolate/src/rgb.js.map +1 -1
  98. package/dist/node_modules/d3-interpolate/src/round.js.map +1 -1
  99. package/dist/node_modules/d3-interpolate/src/string.js.map +1 -1
  100. package/dist/node_modules/d3-interpolate/src/value.js.map +1 -1
  101. package/dist/node_modules/d3-path/src/path.js.map +1 -1
  102. package/dist/node_modules/d3-scale/src/band.js.map +1 -1
  103. package/dist/node_modules/d3-scale/src/constant.js.map +1 -1
  104. package/dist/node_modules/d3-scale/src/continuous.js.map +1 -1
  105. package/dist/node_modules/d3-scale/src/diverging.js.map +1 -1
  106. package/dist/node_modules/d3-scale/src/identity.js.map +1 -1
  107. package/dist/node_modules/d3-scale/src/init.js.map +1 -1
  108. package/dist/node_modules/d3-scale/src/linear.js.map +1 -1
  109. package/dist/node_modules/d3-scale/src/log.js.map +1 -1
  110. package/dist/node_modules/d3-scale/src/nice.js.map +1 -1
  111. package/dist/node_modules/d3-scale/src/number.js.map +1 -1
  112. package/dist/node_modules/d3-scale/src/ordinal.js.map +1 -1
  113. package/dist/node_modules/d3-scale/src/pow.js.map +1 -1
  114. package/dist/node_modules/d3-scale/src/quantile.js.map +1 -1
  115. package/dist/node_modules/d3-scale/src/quantize.js.map +1 -1
  116. package/dist/node_modules/d3-scale/src/radial.js.map +1 -1
  117. package/dist/node_modules/d3-scale/src/sequential.js.map +1 -1
  118. package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +1 -1
  119. package/dist/node_modules/d3-scale/src/symlog.js.map +1 -1
  120. package/dist/node_modules/d3-scale/src/threshold.js.map +1 -1
  121. package/dist/node_modules/d3-scale/src/tickFormat.js.map +1 -1
  122. package/dist/node_modules/d3-scale/src/time.js.map +1 -1
  123. package/dist/node_modules/d3-scale/src/utcTime.js.map +1 -1
  124. package/dist/node_modules/d3-shape/src/area.js.map +1 -1
  125. package/dist/node_modules/d3-shape/src/array.js.map +1 -1
  126. package/dist/node_modules/d3-shape/src/constant.js.map +1 -1
  127. package/dist/node_modules/d3-shape/src/curve/basis.js.map +1 -1
  128. package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +1 -1
  129. package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +1 -1
  130. package/dist/node_modules/d3-shape/src/curve/bump.js.map +1 -1
  131. package/dist/node_modules/d3-shape/src/curve/linear.js.map +1 -1
  132. package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +1 -1
  133. package/dist/node_modules/d3-shape/src/curve/monotone.js.map +1 -1
  134. package/dist/node_modules/d3-shape/src/curve/natural.js.map +1 -1
  135. package/dist/node_modules/d3-shape/src/curve/step.js.map +1 -1
  136. package/dist/node_modules/d3-shape/src/line.js.map +1 -1
  137. package/dist/node_modules/d3-shape/src/noop.js.map +1 -1
  138. package/dist/node_modules/d3-shape/src/offset/expand.js.map +1 -1
  139. package/dist/node_modules/d3-shape/src/offset/none.js.map +1 -1
  140. package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +1 -1
  141. package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +1 -1
  142. package/dist/node_modules/d3-shape/src/order/none.js.map +1 -1
  143. package/dist/node_modules/d3-shape/src/path.js.map +1 -1
  144. package/dist/node_modules/d3-shape/src/point.js.map +1 -1
  145. package/dist/node_modules/d3-shape/src/stack.js.map +1 -1
  146. package/dist/node_modules/d3-shape/src/symbol/circle.js.map +1 -1
  147. package/dist/node_modules/d3-shape/src/symbol/cross.js.map +1 -1
  148. package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +1 -1
  149. package/dist/node_modules/d3-shape/src/symbol/square.js.map +1 -1
  150. package/dist/node_modules/d3-shape/src/symbol/star.js.map +1 -1
  151. package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +1 -1
  152. package/dist/node_modules/d3-shape/src/symbol/wye.js.map +1 -1
  153. package/dist/node_modules/d3-shape/src/symbol.js.map +1 -1
  154. package/dist/node_modules/d3-time/src/day.js.map +1 -1
  155. package/dist/node_modules/d3-time/src/hour.js.map +1 -1
  156. package/dist/node_modules/d3-time/src/interval.js.map +1 -1
  157. package/dist/node_modules/d3-time/src/millisecond.js.map +1 -1
  158. package/dist/node_modules/d3-time/src/minute.js.map +1 -1
  159. package/dist/node_modules/d3-time/src/month.js.map +1 -1
  160. package/dist/node_modules/d3-time/src/second.js.map +1 -1
  161. package/dist/node_modules/d3-time/src/ticks.js.map +1 -1
  162. package/dist/node_modules/d3-time/src/week.js.map +1 -1
  163. package/dist/node_modules/d3-time/src/year.js.map +1 -1
  164. package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +1 -1
  165. package/dist/node_modules/d3-time-format/src/locale.js.map +1 -1
  166. package/dist/node_modules/decimal.js-light/decimal.js.map +1 -1
  167. package/dist/node_modules/eventemitter3/index.js.map +1 -1
  168. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  169. package/dist/node_modules/internmap/src/index.js.map +1 -1
  170. package/dist/node_modules/lodash/_DataView.js.map +1 -1
  171. package/dist/node_modules/lodash/_Hash.js.map +1 -1
  172. package/dist/node_modules/lodash/_ListCache.js.map +1 -1
  173. package/dist/node_modules/lodash/_Map.js.map +1 -1
  174. package/dist/node_modules/lodash/_MapCache.js.map +1 -1
  175. package/dist/node_modules/lodash/_Promise.js.map +1 -1
  176. package/dist/node_modules/lodash/_Set.js.map +1 -1
  177. package/dist/node_modules/lodash/_SetCache.js.map +1 -1
  178. package/dist/node_modules/lodash/_Stack.js +2 -1
  179. package/dist/node_modules/lodash/_Stack.js.map +1 -1
  180. package/dist/node_modules/lodash/_Symbol.js.map +1 -1
  181. package/dist/node_modules/lodash/_Uint8Array.js.map +1 -1
  182. package/dist/node_modules/lodash/_WeakMap.js.map +1 -1
  183. package/dist/node_modules/lodash/_apply.js.map +1 -1
  184. package/dist/node_modules/lodash/_arrayEvery.js.map +1 -1
  185. package/dist/node_modules/lodash/_arrayFilter.js.map +1 -1
  186. package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -1
  187. package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -1
  188. package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -1
  189. package/dist/node_modules/lodash/_arrayMap.js.map +1 -1
  190. package/dist/node_modules/lodash/_arrayPush.js.map +1 -1
  191. package/dist/node_modules/lodash/_arraySome.js.map +1 -1
  192. package/dist/node_modules/lodash/_asciiToArray.js.map +1 -1
  193. package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -1
  194. package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -1
  195. package/dist/node_modules/lodash/_baseEach.js.map +1 -1
  196. package/dist/node_modules/lodash/_baseEvery.js.map +1 -1
  197. package/dist/node_modules/lodash/_baseExtremum.js.map +1 -1
  198. package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -1
  199. package/dist/node_modules/lodash/_baseFlatten.js.map +1 -1
  200. package/dist/node_modules/lodash/_baseFor.js.map +1 -1
  201. package/dist/node_modules/lodash/_baseForOwn.js.map +1 -1
  202. package/dist/node_modules/lodash/_baseGet.js.map +1 -1
  203. package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -1
  204. package/dist/node_modules/lodash/_baseGetTag.js.map +1 -1
  205. package/dist/node_modules/lodash/_baseGt.js.map +1 -1
  206. package/dist/node_modules/lodash/_baseHasIn.js.map +1 -1
  207. package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -1
  208. package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -1
  209. package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -1
  210. package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -1
  211. package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -1
  212. package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -1
  213. package/dist/node_modules/lodash/_baseIsNative.js.map +1 -1
  214. package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -1
  215. package/dist/node_modules/lodash/_baseIteratee.js.map +1 -1
  216. package/dist/node_modules/lodash/_baseKeys.js.map +1 -1
  217. package/dist/node_modules/lodash/_baseLt.js.map +1 -1
  218. package/dist/node_modules/lodash/_baseMap.js.map +1 -1
  219. package/dist/node_modules/lodash/_baseMatches.js.map +1 -1
  220. package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -1
  221. package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -1
  222. package/dist/node_modules/lodash/_baseProperty.js.map +1 -1
  223. package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -1
  224. package/dist/node_modules/lodash/_baseRange.js.map +1 -1
  225. package/dist/node_modules/lodash/_baseRest.js.map +1 -1
  226. package/dist/node_modules/lodash/_baseSetToString.js.map +1 -1
  227. package/dist/node_modules/lodash/_baseSlice.js.map +1 -1
  228. package/dist/node_modules/lodash/_baseSome.js.map +1 -1
  229. package/dist/node_modules/lodash/_baseSortBy.js.map +1 -1
  230. package/dist/node_modules/lodash/_baseTimes.js.map +1 -1
  231. package/dist/node_modules/lodash/_baseToString.js.map +1 -1
  232. package/dist/node_modules/lodash/_baseTrim.js.map +1 -1
  233. package/dist/node_modules/lodash/_baseUnary.js.map +1 -1
  234. package/dist/node_modules/lodash/_baseUniq.js.map +1 -1
  235. package/dist/node_modules/lodash/_cacheHas.js.map +1 -1
  236. package/dist/node_modules/lodash/_castPath.js.map +1 -1
  237. package/dist/node_modules/lodash/_castSlice.js.map +1 -1
  238. package/dist/node_modules/lodash/_compareAscending.js.map +1 -1
  239. package/dist/node_modules/lodash/_compareMultiple.js.map +1 -1
  240. package/dist/node_modules/lodash/_coreJsData.js.map +1 -1
  241. package/dist/node_modules/lodash/_createBaseEach.js.map +1 -1
  242. package/dist/node_modules/lodash/_createBaseFor.js.map +1 -1
  243. package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -1
  244. package/dist/node_modules/lodash/_createFind.js.map +1 -1
  245. package/dist/node_modules/lodash/_createRange.js.map +1 -1
  246. package/dist/node_modules/lodash/_createSet.js.map +1 -1
  247. package/dist/node_modules/lodash/_defineProperty.js.map +1 -1
  248. package/dist/node_modules/lodash/_equalArrays.js.map +1 -1
  249. package/dist/node_modules/lodash/_equalByTag.js.map +1 -1
  250. package/dist/node_modules/lodash/_equalObjects.js.map +1 -1
  251. package/dist/node_modules/lodash/_freeGlobal.js.map +1 -1
  252. package/dist/node_modules/lodash/_getAllKeys.js.map +1 -1
  253. package/dist/node_modules/lodash/_getMapData.js.map +1 -1
  254. package/dist/node_modules/lodash/_getMatchData.js.map +1 -1
  255. package/dist/node_modules/lodash/_getNative.js.map +1 -1
  256. package/dist/node_modules/lodash/_getPrototype.js.map +1 -1
  257. package/dist/node_modules/lodash/_getRawTag.js.map +1 -1
  258. package/dist/node_modules/lodash/_getSymbols.js.map +1 -1
  259. package/dist/node_modules/lodash/_getTag.js.map +1 -1
  260. package/dist/node_modules/lodash/_getValue.js.map +1 -1
  261. package/dist/node_modules/lodash/_hasPath.js.map +1 -1
  262. package/dist/node_modules/lodash/_hasUnicode.js.map +1 -1
  263. package/dist/node_modules/lodash/_hashClear.js.map +1 -1
  264. package/dist/node_modules/lodash/_hashDelete.js.map +1 -1
  265. package/dist/node_modules/lodash/_hashGet.js.map +1 -1
  266. package/dist/node_modules/lodash/_hashHas.js.map +1 -1
  267. package/dist/node_modules/lodash/_hashSet.js.map +1 -1
  268. package/dist/node_modules/lodash/_isFlattenable.js.map +1 -1
  269. package/dist/node_modules/lodash/_isIndex.js.map +1 -1
  270. package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -1
  271. package/dist/node_modules/lodash/_isKey.js.map +1 -1
  272. package/dist/node_modules/lodash/_isKeyable.js.map +1 -1
  273. package/dist/node_modules/lodash/_isMasked.js.map +1 -1
  274. package/dist/node_modules/lodash/_isPrototype.js.map +1 -1
  275. package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -1
  276. package/dist/node_modules/lodash/_listCacheClear.js.map +1 -1
  277. package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -1
  278. package/dist/node_modules/lodash/_listCacheGet.js.map +1 -1
  279. package/dist/node_modules/lodash/_listCacheHas.js.map +1 -1
  280. package/dist/node_modules/lodash/_listCacheSet.js.map +1 -1
  281. package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -1
  282. package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -1
  283. package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -1
  284. package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -1
  285. package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -1
  286. package/dist/node_modules/lodash/_mapToArray.js.map +1 -1
  287. package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -1
  288. package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -1
  289. package/dist/node_modules/lodash/_nativeCreate.js.map +1 -1
  290. package/dist/node_modules/lodash/_nativeKeys.js.map +1 -1
  291. package/dist/node_modules/lodash/_nodeUtil.js.map +1 -1
  292. package/dist/node_modules/lodash/_objectToString.js.map +1 -1
  293. package/dist/node_modules/lodash/_overArg.js.map +1 -1
  294. package/dist/node_modules/lodash/_overRest.js.map +1 -1
  295. package/dist/node_modules/lodash/_root.js.map +1 -1
  296. package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -1
  297. package/dist/node_modules/lodash/_setCacheHas.js.map +1 -1
  298. package/dist/node_modules/lodash/_setToArray.js.map +1 -1
  299. package/dist/node_modules/lodash/_setToString.js.map +1 -1
  300. package/dist/node_modules/lodash/_shortOut.js.map +1 -1
  301. package/dist/node_modules/lodash/_stackClear.js.map +1 -1
  302. package/dist/node_modules/lodash/_stackDelete.js.map +1 -1
  303. package/dist/node_modules/lodash/_stackGet.js.map +1 -1
  304. package/dist/node_modules/lodash/_stackHas.js.map +1 -1
  305. package/dist/node_modules/lodash/_stackSet.js.map +1 -1
  306. package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -1
  307. package/dist/node_modules/lodash/_stringToArray.js.map +1 -1
  308. package/dist/node_modules/lodash/_stringToPath.js.map +1 -1
  309. package/dist/node_modules/lodash/_toKey.js.map +1 -1
  310. package/dist/node_modules/lodash/_toSource.js.map +1 -1
  311. package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -1
  312. package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -1
  313. package/dist/node_modules/lodash/constant.js.map +1 -1
  314. package/dist/node_modules/lodash/debounce.js.map +1 -1
  315. package/dist/node_modules/lodash/eq.js.map +1 -1
  316. package/dist/node_modules/lodash/every.js.map +1 -1
  317. package/dist/node_modules/lodash/find.js.map +1 -1
  318. package/dist/node_modules/lodash/findIndex.js.map +1 -1
  319. package/dist/node_modules/lodash/flatMap.js.map +1 -1
  320. package/dist/node_modules/lodash/get.js.map +1 -1
  321. package/dist/node_modules/lodash/hasIn.js.map +1 -1
  322. package/dist/node_modules/lodash/identity.js.map +1 -1
  323. package/dist/node_modules/lodash/isArguments.js.map +1 -1
  324. package/dist/node_modules/lodash/isArray.js.map +1 -1
  325. package/dist/node_modules/lodash/isArrayLike.js.map +1 -1
  326. package/dist/node_modules/lodash/isBoolean.js.map +1 -1
  327. package/dist/node_modules/lodash/isBuffer.js.map +1 -1
  328. package/dist/node_modules/lodash/isEqual.js.map +1 -1
  329. package/dist/node_modules/lodash/isFunction.js.map +1 -1
  330. package/dist/node_modules/lodash/isLength.js.map +1 -1
  331. package/dist/node_modules/lodash/isNaN.js.map +1 -1
  332. package/dist/node_modules/lodash/isNil.js.map +1 -1
  333. package/dist/node_modules/lodash/isNumber.js.map +1 -1
  334. package/dist/node_modules/lodash/isObject.js.map +1 -1
  335. package/dist/node_modules/lodash/isObjectLike.js.map +1 -1
  336. package/dist/node_modules/lodash/isPlainObject.js.map +1 -1
  337. package/dist/node_modules/lodash/isString.js.map +1 -1
  338. package/dist/node_modules/lodash/isSymbol.js.map +1 -1
  339. package/dist/node_modules/lodash/isTypedArray.js.map +1 -1
  340. package/dist/node_modules/lodash/keys.js.map +1 -1
  341. package/dist/node_modules/lodash/last.js.map +1 -1
  342. package/dist/node_modules/lodash/map.js.map +1 -1
  343. package/dist/node_modules/lodash/mapValues.js.map +1 -1
  344. package/dist/node_modules/lodash/max.js.map +1 -1
  345. package/dist/node_modules/lodash/maxBy.js.map +1 -1
  346. package/dist/node_modules/lodash/memoize.js.map +1 -1
  347. package/dist/node_modules/lodash/min.js.map +1 -1
  348. package/dist/node_modules/lodash/minBy.js.map +1 -1
  349. package/dist/node_modules/lodash/noop.js.map +1 -1
  350. package/dist/node_modules/lodash/now.js.map +1 -1
  351. package/dist/node_modules/lodash/property.js.map +1 -1
  352. package/dist/node_modules/lodash/range.js.map +1 -1
  353. package/dist/node_modules/lodash/some.js.map +1 -1
  354. package/dist/node_modules/lodash/sortBy.js.map +1 -1
  355. package/dist/node_modules/lodash/stubArray.js.map +1 -1
  356. package/dist/node_modules/lodash/stubFalse.js.map +1 -1
  357. package/dist/node_modules/lodash/throttle.js.map +1 -1
  358. package/dist/node_modules/lodash/toFinite.js.map +1 -1
  359. package/dist/node_modules/lodash/toInteger.js.map +1 -1
  360. package/dist/node_modules/lodash/toNumber.js.map +1 -1
  361. package/dist/node_modules/lodash/toString.js.map +1 -1
  362. package/dist/node_modules/lodash/uniqBy.js.map +1 -1
  363. package/dist/node_modules/lodash/upperFirst.js.map +1 -1
  364. package/dist/node_modules/object-assign/index.js.map +1 -1
  365. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
  366. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
  367. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  368. package/dist/node_modules/prop-types/index.js.map +1 -1
  369. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
  370. package/dist/node_modules/prop-types/lib/has.js.map +1 -1
  371. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  372. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  373. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
  374. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  375. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  376. package/dist/node_modules/react-is/index.js.map +1 -1
  377. package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
  378. package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -1
  379. package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -1
  380. package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -1
  381. package/dist/node_modules/react-smooth/es6/easing.js.map +1 -1
  382. package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -1
  383. package/dist/node_modules/react-smooth/es6/util.js.map +1 -1
  384. package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
  385. package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -1
  386. package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
  387. package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -1
  388. package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
  389. package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
  390. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
  391. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -1
  392. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
  393. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -1
  394. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
  395. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -1
  396. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
  397. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -1
  398. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
  399. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -1
  400. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
  401. package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -1
  402. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
  403. package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -1
  404. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -1
  405. package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -1
  406. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
  407. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -1
  408. package/dist/node_modules/recharts/es6/chart/AreaChart.js.map +1 -1
  409. package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -1
  410. package/dist/node_modules/recharts/es6/chart/PieChart.js.map +1 -1
  411. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
  412. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -1
  413. package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -1
  414. package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
  415. package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -1
  416. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
  417. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -1
  418. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
  419. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -1
  420. package/dist/node_modules/recharts/es6/component/Label.js +14 -14
  421. package/dist/node_modules/recharts/es6/component/Label.js.map +1 -1
  422. package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
  423. package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -1
  424. package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
  425. package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -1
  426. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
  427. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -1
  428. package/dist/node_modules/recharts/es6/component/Text.js +2 -2
  429. package/dist/node_modules/recharts/es6/component/Text.js.map +1 -1
  430. package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
  431. package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -1
  432. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
  433. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -1
  434. package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
  435. package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -1
  436. package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
  437. package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -1
  438. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
  439. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -1
  440. package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
  441. package/dist/node_modules/recharts/es6/polar/Pie.js.map +1 -1
  442. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
  443. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js.map +1 -1
  444. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
  445. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js.map +1 -1
  446. package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
  447. package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -1
  448. package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
  449. package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
  450. package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
  451. package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -1
  452. package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
  453. package/dist/node_modules/recharts/es6/shape/Polygon.js.map +1 -1
  454. package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
  455. package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -1
  456. package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
  457. package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -1
  458. package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
  459. package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
  460. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
  461. package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -1
  462. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
  463. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -1
  464. package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
  465. package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -1
  466. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
  467. package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -1
  468. package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
  469. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -1
  470. package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -1
  471. package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
  472. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -1
  473. package/dist/node_modules/recharts/es6/util/Events.js.map +1 -1
  474. package/dist/node_modules/recharts/es6/util/Global.js.map +1 -1
  475. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -1
  476. package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -1
  477. package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
  478. package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -1
  479. package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
  480. package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
  481. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
  482. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -1
  483. package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -1
  484. package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -1
  485. package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -1
  486. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -1
  487. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -1
  488. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -1
  489. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -1
  490. package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -1
  491. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -1
  492. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -1
  493. package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -1
  494. package/dist/node_modules/recharts/es6/util/types.js +1 -1
  495. package/dist/node_modules/recharts/es6/util/types.js.map +1 -1
  496. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -1
  497. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -1
  498. package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -1
  499. package/dist/node_modules/sonner/dist/index.js.map +1 -1
  500. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1 -1
  501. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  502. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -1
  503. package/dist/stories/LoadMore.stories.d.ts +0 -1
  504. package/package.json +15 -7
@@ -1,21 +1,21 @@
1
1
  import { useAccount as e, useAllAccounts as t, useArchiveAccount as n, useCreateAccount as r, usePagedAccounts as i, usePagedTransactions as a, useRecordTransaction as ee, useUpdateAccount as te } from "../hooks/useBrainyRichApi.js";
2
- import { LoadMore as o } from "../components/LoadMore.js";
3
- import { ConfirmDialog as ne } from "../components/ConfirmDialog.js";
4
- import { ActorName as s } from "../components/ActorName.js";
5
- import { DonutChart as re, FadeIn as c, GlassCard as ie, StatTile as l } from "../components/viz.js";
6
- import { HouseholdPicker as u } from "../components/pickers.js";
2
+ import { LoadMore as ne } from "../components/LoadMore.js";
3
+ import { ConfirmDialog as re } from "../components/ConfirmDialog.js";
4
+ import { ActorName as o } from "../components/ActorName.js";
5
+ import { DonutChart as ie, FadeIn as s, GlassCard as ae, StatTile as c } from "../components/viz.js";
6
+ import { HouseholdPicker as l } from "../components/pickers.js";
7
7
  import "../components/index.js";
8
- import { EmptyState as d, ErrorState as f, LoadingState as p, SectionShell as m, formatCompact as ae, formatDate as oe, formatMoney as h, statusBadgeVariant as se } from "./_shared.js";
9
- import { hapticSuccess as ce, showToast as le } from "../utils/nativeControls.js";
10
- import { useTrackBrainyRichPageView as ue } from "../hooks/useBrainyRichAnalytics.js";
11
- import { DocumentsPanel as g } from "../components/reuse/DocumentsPanel.js";
12
- import { TagField as _ } from "../components/reuse/TagField.js";
13
- import { useMemo as de, useState as v } from "react";
14
- import { Archive as fe, ArrowDownRight as y, ArrowUpRight as b, Building2 as pe, CheckCircle2 as me, ChevronRight as he, Landmark as x, Layers as ge, MoreHorizontal as _e, Pencil as ve, Plus as ye, Receipt as S, Wallet as be } from "lucide-react";
15
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
16
- import { Badge as T, Button as E, Card as xe, CardContent as Se, CardDescription as Ce, CardHeader as we, CardTitle as Te, Dialog as D, DialogClose as Ee, DialogContent as O, DialogDescription as k, DialogFooter as A, DialogHeader as j, DialogTitle as M, DropdownMenu as De, DropdownMenuContent as Oe, DropdownMenuItem as ke, DropdownMenuTrigger as Ae, Input as N, Label as P, Select as je, SelectContent as Me, SelectItem as Ne, SelectTrigger as Pe, SelectValue as Fe, Sheet as F, SheetContent as I, SheetDescription as L, SheetHeader as R, SheetTitle as Ie, Table as Le, TableBody as Re, TableCell as z, TableHead as B, TableHeader as ze, TableRow as V, Tabs as H, TabsContent as U, TabsList as W, TabsTrigger as G, Textarea as Be } from "@burdenoff/fe-libs/ui";
8
+ import { EmptyState as u, ErrorState as d, LoadingState as f, SectionShell as p, formatCompact as oe, formatDate as se, formatMoney as m, statusBadgeVariant as ce } from "./_shared.js";
9
+ import { hapticSuccess as le, showToast as ue } from "../utils/nativeControls.js";
10
+ import { useTrackBrainyRichPageView as de } from "../hooks/useBrainyRichAnalytics.js";
11
+ import { DocumentsPanel as h } from "../components/reuse/DocumentsPanel.js";
12
+ import { TagField as g } from "../components/reuse/TagField.js";
13
+ import { useMemo as fe, useState as _ } from "react";
14
+ import { Archive as pe, ArrowDownRight as v, ArrowUpRight as y, Building2 as me, CheckCircle2 as he, ChevronRight as ge, Landmark as b, Layers as _e, MoreHorizontal as ve, Pencil as ye, Plus as be, Receipt as x, Wallet as xe } from "lucide-react";
15
+ import { jsx as S, jsxs as C } from "react/jsx-runtime";
16
+ import { Badge as w, Button as T, Card as Se, CardContent as Ce, CardDescription as we, CardHeader as Te, CardTitle as Ee, Dialog as E, DialogClose as De, DialogContent as D, DialogDescription as O, DialogFooter as k, DialogHeader as A, DialogTitle as j, DropdownMenu as Oe, DropdownMenuContent as ke, DropdownMenuItem as Ae, DropdownMenuTrigger as je, Input as M, Label as N, Select as Me, SelectContent as Ne, SelectItem as Pe, SelectTrigger as Fe, SelectValue as Ie, Sheet as P, SheetContent as F, SheetDescription as I, SheetHeader as L, SheetTitle as Le, Table as Re, TableBody as ze, TableCell as R, TableHead as z, TableHeader as Be, TableRow as B, Tabs as V, TabsContent as H, TabsList as U, TabsTrigger as W, Textarea as Ve } from "@burdenoff/fe-libs/ui";
17
17
  //#region src/brainyrich/pages/AccountsPage.tsx
18
- var K = [
18
+ var G = [
19
19
  "BANK",
20
20
  "BROKERAGE",
21
21
  "RETIREMENT",
@@ -24,7 +24,7 @@ var K = [
24
24
  "REAL_ESTATE",
25
25
  "ALTERNATIVE",
26
26
  "LIABILITY"
27
- ], Ve = [
27
+ ], He = [
28
28
  "BUY",
29
29
  "SELL",
30
30
  "DIVIDEND",
@@ -33,7 +33,7 @@ var K = [
33
33
  "WITHDRAWAL",
34
34
  "FEE",
35
35
  "TRANSFER"
36
- ], He = {
36
+ ], Ue = {
37
37
  BANK: "teal",
38
38
  BROKERAGE: "brand",
39
39
  RETIREMENT: "blue",
@@ -43,15 +43,15 @@ var K = [
43
43
  ALTERNATIVE: "indigo",
44
44
  LIABILITY: "error"
45
45
  };
46
- function q(e) {
46
+ function K(e) {
47
47
  return e === "DEPOSIT" || e === "DIVIDEND" || e === "INTEREST" || e === "SELL" || e === "TRANSFER";
48
48
  }
49
- function J(e) {
49
+ function q(e) {
50
50
  if (e.trim() === "") return;
51
51
  let t = Number(e);
52
52
  return Number.isFinite(t) ? t : void 0;
53
53
  }
54
- var Y = {
54
+ var J = {
55
55
  name: "",
56
56
  type: "BANK",
57
57
  institution: "",
@@ -59,7 +59,7 @@ var Y = {
59
59
  cashBalance: "",
60
60
  accountMask: "",
61
61
  householdId: null
62
- }, Ue = {
62
+ }, We = {
63
63
  type: "DEPOSIT",
64
64
  tradeDate: "",
65
65
  symbol: "",
@@ -69,9 +69,9 @@ var Y = {
69
69
  fee: "",
70
70
  notes: ""
71
71
  };
72
- function X() {
73
- ue("brainyrich.accounts.viewed");
74
- let e = t().data, a = i(), [s, u] = v(void 0), [oe, g] = v(!1), [_, y] = v(Y), [b, S] = v(null), [F, I] = v(Y), [L, R] = v(null), [Ie, H] = v(!1), [U, W] = v(Ue), G = r(), K = te(), q = n(), X = ee(), Ke = e.reduce((e, t) => e + (t.cashBalance ?? 0), 0), qe = e.filter((e) => e.status === "ACTIVE").length, Je = new Set(e.map((e) => e.institution).filter((e) => !!e)).size, Z = e[0]?.currency ?? "USD", Ye = de(() => {
72
+ function Y() {
73
+ de("brainyrich.accounts.viewed");
74
+ let e = t().data, a = i(), [o, l] = _(void 0), [se, h] = _(!1), [g, v] = _(J), [y, x] = _(null), [P, F] = _(J), [I, L] = _(null), [Le, V] = _(!1), [H, U] = _(void 0), [W, G] = _(We), K = r(), Y = te(), qe = n(), X = ee(), Je = e.reduce((e, t) => e + (t.cashBalance ?? 0), 0), Ye = e.filter((e) => e.status === "ACTIVE").length, Xe = new Set(e.map((e) => e.institution).filter((e) => !!e)).size, Z = e[0]?.currency ?? "USD", Ze = fe(() => {
75
75
  let t = /* @__PURE__ */ new Map();
76
76
  for (let n of e) {
77
77
  let e = n.cashBalance ?? 0;
@@ -80,25 +80,25 @@ function X() {
80
80
  return [...t.entries()].map(([e, t]) => ({
81
81
  label: e.replace(/_/g, " "),
82
82
  value: t,
83
- tone: He[e]
83
+ tone: Ue[e]
84
84
  })).sort((e, t) => t.value - e.value);
85
85
  }, [e]);
86
- function Xe() {
87
- y(Y), g(!0);
86
+ function Qe() {
87
+ v(J), h(!0);
88
88
  }
89
- function Ze() {
90
- _.name.trim() && G.mutate({
91
- name: _.name.trim(),
92
- type: _.type,
93
- institution: _.institution.trim() || null,
94
- currency: _.currency.trim() || "USD",
95
- cashBalance: J(_.cashBalance) ?? 0,
96
- accountMask: _.accountMask.trim() || null,
97
- householdId: _.householdId
98
- }, { onSuccess: () => g(!1) });
89
+ function $e() {
90
+ g.name.trim() && K.mutate({
91
+ name: g.name.trim(),
92
+ type: g.type,
93
+ institution: g.institution.trim() || null,
94
+ currency: g.currency.trim() || "USD",
95
+ cashBalance: q(g.cashBalance) ?? 0,
96
+ accountMask: g.accountMask.trim() || null,
97
+ householdId: g.householdId
98
+ }, { onSuccess: () => h(!1) });
99
99
  }
100
- function Qe(e) {
101
- S(e), I({
100
+ function et(e) {
101
+ x(e), F({
102
102
  name: e.name,
103
103
  type: e.type,
104
104
  institution: e.institution ?? "",
@@ -108,241 +108,245 @@ function X() {
108
108
  householdId: e.householdId
109
109
  });
110
110
  }
111
- function $e() {
112
- !b || !F.name.trim() || K.mutate({
113
- id: b.id,
111
+ function tt() {
112
+ !y || !P.name.trim() || Y.mutate({
113
+ id: y.id,
114
114
  input: {
115
- name: F.name.trim(),
116
- type: F.type,
117
- institution: F.institution.trim() || null,
118
- currency: F.currency.trim() || "USD",
119
- cashBalance: J(F.cashBalance) ?? 0,
120
- accountMask: F.accountMask.trim() || null,
121
- householdId: F.householdId
115
+ name: P.name.trim(),
116
+ type: P.type,
117
+ institution: P.institution.trim() || null,
118
+ currency: P.currency.trim() || "USD",
119
+ cashBalance: q(P.cashBalance) ?? 0,
120
+ accountMask: P.accountMask.trim() || null,
121
+ householdId: P.householdId
122
122
  }
123
- }, { onSuccess: () => S(null) });
123
+ }, { onSuccess: () => x(null) });
124
124
  }
125
- function et() {
126
- if (!L) return;
127
- let e = L.id;
128
- q.mutate(e, { onSuccess: () => {
129
- ce(), le("Account archived"), R(null), s === e && u(void 0);
125
+ function nt() {
126
+ if (!I) return;
127
+ let e = I.id;
128
+ qe.mutate(e, { onSuccess: () => {
129
+ le(), ue("Account archived"), L(null), o === e && l(void 0);
130
130
  } });
131
131
  }
132
- function tt() {
133
- W(Ue), H(!0);
132
+ function rt(e) {
133
+ G(We), U(e), l(void 0), V(!0);
134
+ }
135
+ function it() {
136
+ let e = H;
137
+ V(!1), U(void 0), e && l(e);
134
138
  }
135
- let Q = J(U.amount), $ = Q !== void 0 && Q > 0, nt = !!(s && U.tradeDate) && $;
136
- function rt() {
137
- if (!s || !U.tradeDate || !$) return;
138
- let e = new Date(U.tradeDate);
139
+ let Q = q(W.amount), $ = Q !== void 0 && Q > 0, at = !!(H && W.tradeDate) && $;
140
+ function ot() {
141
+ if (!H || !W.tradeDate || !$) return;
142
+ let e = new Date(W.tradeDate);
139
143
  Number.isNaN(e.getTime()) || X.mutate({
140
- accountId: s,
141
- type: U.type,
144
+ accountId: H,
145
+ type: W.type,
142
146
  tradeDate: e.toISOString(),
143
- symbol: U.symbol.trim() || null,
144
- quantity: J(U.quantity),
145
- price: J(U.price),
147
+ symbol: W.symbol.trim() || null,
148
+ quantity: q(W.quantity),
149
+ price: q(W.price),
146
150
  amount: Q,
147
- fee: J(U.fee),
148
- notes: U.notes.trim() || null
149
- }, { onSuccess: () => H(!1) });
151
+ fee: q(W.fee),
152
+ notes: W.notes.trim() || null
153
+ }, { onSuccess: it });
150
154
  }
151
- return /* @__PURE__ */ C("div", {
155
+ return /* @__PURE__ */ S("div", {
152
156
  "data-tour": "brainyrich-page-accounts",
153
157
  className: "contents",
154
- children: /* @__PURE__ */ w(m, {
158
+ children: /* @__PURE__ */ C(p, {
155
159
  title: "Accounts",
156
160
  description: "Linked bank, brokerage and retirement accounts with recent activity.",
157
161
  badges: [`${e.length} account${e.length === 1 ? "" : "s"}`],
158
162
  actionLabel: "New account",
159
- onAction: Xe,
163
+ onAction: Qe,
160
164
  children: [
161
- /* @__PURE__ */ w("div", {
165
+ /* @__PURE__ */ C("div", {
162
166
  className: "grid gap-4 lg:grid-cols-3",
163
- children: [/* @__PURE__ */ w("div", {
167
+ children: [/* @__PURE__ */ C("div", {
164
168
  className: "grid gap-4 sm:grid-cols-2 lg:col-span-2",
165
169
  children: [
166
- /* @__PURE__ */ C(c, {
170
+ /* @__PURE__ */ S(s, {
167
171
  index: 0,
168
- children: /* @__PURE__ */ C(l, {
172
+ children: /* @__PURE__ */ S(c, {
169
173
  label: "Total cash",
170
- value: h(Ke, Z),
174
+ value: m(Je, Z),
171
175
  glow: !0,
172
- icon: /* @__PURE__ */ C(be, {
176
+ icon: /* @__PURE__ */ S(xe, {
173
177
  className: "size-4",
174
178
  "aria-hidden": "true"
175
179
  })
176
180
  })
177
181
  }),
178
- /* @__PURE__ */ C(c, {
182
+ /* @__PURE__ */ S(s, {
179
183
  index: 1,
180
- children: /* @__PURE__ */ C(l, {
184
+ children: /* @__PURE__ */ S(c, {
181
185
  label: "Total accounts",
182
186
  value: String(e.length),
183
- icon: /* @__PURE__ */ C(x, {
187
+ icon: /* @__PURE__ */ S(b, {
184
188
  className: "size-4",
185
189
  "aria-hidden": "true"
186
190
  })
187
191
  })
188
192
  }),
189
- /* @__PURE__ */ C(c, {
193
+ /* @__PURE__ */ S(s, {
190
194
  index: 2,
191
- children: /* @__PURE__ */ C(l, {
195
+ children: /* @__PURE__ */ S(c, {
192
196
  label: "Active",
193
- value: `${qe}/${e.length}`,
194
- icon: /* @__PURE__ */ C(me, {
197
+ value: `${Ye}/${e.length}`,
198
+ icon: /* @__PURE__ */ S(he, {
195
199
  className: "size-4",
196
200
  "aria-hidden": "true"
197
201
  })
198
202
  })
199
203
  }),
200
- /* @__PURE__ */ C(c, {
204
+ /* @__PURE__ */ S(s, {
201
205
  index: 3,
202
- children: /* @__PURE__ */ C(l, {
206
+ children: /* @__PURE__ */ S(c, {
203
207
  label: "Institutions",
204
- value: String(Je),
205
- icon: /* @__PURE__ */ C(pe, {
208
+ value: String(Xe),
209
+ icon: /* @__PURE__ */ S(me, {
206
210
  className: "size-4",
207
211
  "aria-hidden": "true"
208
212
  })
209
213
  })
210
214
  })
211
215
  ]
212
- }), /* @__PURE__ */ C(c, {
216
+ }), /* @__PURE__ */ S(s, {
213
217
  index: 4,
214
- children: /* @__PURE__ */ w(ie, {
218
+ children: /* @__PURE__ */ C(ae, {
215
219
  className: "h-full",
216
220
  glow: !0,
217
- children: [/* @__PURE__ */ w("div", {
221
+ children: [/* @__PURE__ */ C("div", {
218
222
  className: "mb-2 flex items-center gap-2",
219
- children: [/* @__PURE__ */ C(ge, {
223
+ children: [/* @__PURE__ */ S(_e, {
220
224
  className: "size-4 text-text-secondary",
221
225
  "aria-hidden": "true"
222
- }), /* @__PURE__ */ C("h2", {
226
+ }), /* @__PURE__ */ S("h2", {
223
227
  className: "text-sm font-semibold text-text-primary",
224
228
  children: "Cash by account type"
225
229
  })]
226
- }), Ye.length === 0 ? /* @__PURE__ */ C("p", {
230
+ }), Ze.length === 0 ? /* @__PURE__ */ S("p", {
227
231
  className: "py-8 text-center text-sm text-text-secondary",
228
232
  children: "No cash balances recorded yet."
229
- }) : /* @__PURE__ */ C(re, {
230
- data: Ye,
231
- centerValue: ae(Ke, Z),
233
+ }) : /* @__PURE__ */ S(ie, {
234
+ data: Ze,
235
+ centerValue: oe(Je, Z),
232
236
  centerLabel: "Total cash",
233
237
  height: 200,
234
- valueFormatter: (e) => h(e, Z)
238
+ valueFormatter: (e) => m(e, Z)
235
239
  })]
236
240
  })
237
241
  })]
238
242
  }),
239
- /* @__PURE__ */ C(c, {
243
+ /* @__PURE__ */ S(s, {
240
244
  index: 5,
241
245
  as: "section",
242
- children: /* @__PURE__ */ w(xe, {
246
+ children: /* @__PURE__ */ C(Se, {
243
247
  className: "transition-shadow motion-safe:hover:shadow-[var(--shadow-pop-hover,var(--shadow-elevation-2))]",
244
- children: [/* @__PURE__ */ w(we, { children: [/* @__PURE__ */ w(Te, {
248
+ children: [/* @__PURE__ */ C(Te, { children: [/* @__PURE__ */ C(Ee, {
245
249
  className: "flex items-center gap-2",
246
- children: [/* @__PURE__ */ C(x, {
250
+ children: [/* @__PURE__ */ S(b, {
247
251
  className: "h-5 w-5",
248
252
  "aria-hidden": "true"
249
253
  }), "Linked accounts"]
250
- }), /* @__PURE__ */ C(Ce, { children: "Select an account to view holdings and transactions." })] }), /* @__PURE__ */ C(Se, { children: a.isLoading ? /* @__PURE__ */ C(p, {}) : a.isError ? /* @__PURE__ */ C(f, { onRetry: () => a.refetch() }) : a.items.length === 0 ? /* @__PURE__ */ C(d, {
251
- icon: /* @__PURE__ */ C(x, {
254
+ }), /* @__PURE__ */ S(we, { children: "Select an account to view holdings and transactions." })] }), /* @__PURE__ */ S(Ce, { children: a.isLoading ? /* @__PURE__ */ S(f, {}) : a.isError ? /* @__PURE__ */ S(d, { onRetry: () => a.refetch() }) : a.items.length === 0 ? /* @__PURE__ */ S(u, {
255
+ icon: /* @__PURE__ */ S(b, {
252
256
  className: "size-6",
253
257
  "aria-hidden": "true"
254
258
  }),
255
259
  title: "No accounts yet",
256
260
  description: "Add your first bank, brokerage or retirement account to start tracking net worth.",
257
- action: /* @__PURE__ */ w(E, {
261
+ action: /* @__PURE__ */ C(T, {
258
262
  size: "sm",
259
- onClick: Xe,
260
- children: [/* @__PURE__ */ C(ye, {
263
+ onClick: Qe,
264
+ children: [/* @__PURE__ */ S(be, {
261
265
  className: "size-4",
262
266
  "aria-hidden": "true"
263
267
  }), "New account"]
264
268
  })
265
- }) : /* @__PURE__ */ w("div", {
269
+ }) : /* @__PURE__ */ C("div", {
266
270
  className: "overflow-x-auto",
267
- children: [/* @__PURE__ */ w(Le, { children: [/* @__PURE__ */ C(ze, { children: /* @__PURE__ */ w(V, { children: [
268
- /* @__PURE__ */ C(B, { children: "Account" }),
269
- /* @__PURE__ */ C(B, { children: "Type" }),
270
- /* @__PURE__ */ C(B, { children: "Institution" }),
271
- /* @__PURE__ */ C(B, {
271
+ children: [/* @__PURE__ */ C(Re, { children: [/* @__PURE__ */ S(Be, { children: /* @__PURE__ */ C(B, { children: [
272
+ /* @__PURE__ */ S(z, { children: "Account" }),
273
+ /* @__PURE__ */ S(z, { children: "Type" }),
274
+ /* @__PURE__ */ S(z, { children: "Institution" }),
275
+ /* @__PURE__ */ S(z, {
272
276
  className: "text-right",
273
277
  children: "Cash balance"
274
278
  }),
275
- /* @__PURE__ */ C(B, { children: "Status" }),
276
- /* @__PURE__ */ C(B, {
279
+ /* @__PURE__ */ S(z, { children: "Status" }),
280
+ /* @__PURE__ */ S(z, {
277
281
  className: "w-12 text-right",
278
282
  children: "Actions"
279
283
  })
280
- ] }) }), /* @__PURE__ */ C(Re, { children: a.items.map((e) => /* @__PURE__ */ w(V, {
284
+ ] }) }), /* @__PURE__ */ S(ze, { children: a.items.map((e) => /* @__PURE__ */ C(B, {
281
285
  className: "group cursor-pointer transition-colors hover:bg-bg-elevated",
282
- onClick: () => u(e.id),
286
+ onClick: () => l(e.id),
283
287
  children: [
284
- /* @__PURE__ */ C(z, { children: /* @__PURE__ */ w("div", {
288
+ /* @__PURE__ */ S(R, { children: /* @__PURE__ */ C("div", {
285
289
  className: "flex items-center gap-3",
286
- children: [/* @__PURE__ */ C("div", {
290
+ children: [/* @__PURE__ */ S("div", {
287
291
  className: "flex h-9 w-9 items-center justify-center rounded-lg border border-border-subtle bg-bg-sunken text-xs font-semibold text-text-secondary transition-colors group-hover:border-[var(--color-action-primary-border)] group-hover:text-text-primary",
288
292
  "aria-hidden": "true",
289
293
  children: (e.institution ?? e.name).slice(0, 2).toUpperCase()
290
- }), /* @__PURE__ */ w("div", {
294
+ }), /* @__PURE__ */ C("div", {
291
295
  className: "min-w-0",
292
- children: [/* @__PURE__ */ w("p", {
296
+ children: [/* @__PURE__ */ C("p", {
293
297
  className: "flex items-center gap-1 truncate font-medium text-text-primary",
294
- children: [e.name, /* @__PURE__ */ C(he, {
298
+ children: [e.name, /* @__PURE__ */ S(ge, {
295
299
  className: "size-3.5 shrink-0 text-text-secondary opacity-0 transition-opacity group-hover:opacity-100",
296
300
  "aria-hidden": "true"
297
301
  })]
298
- }), /* @__PURE__ */ w("p", {
302
+ }), /* @__PURE__ */ C("p", {
299
303
  className: "truncate text-xs text-text-secondary",
300
304
  children: [e.institution ?? "Manual account", e.accountMask ? ` · ••${e.accountMask}` : ""]
301
305
  })]
302
306
  })]
303
307
  }) }),
304
- /* @__PURE__ */ C(z, { children: /* @__PURE__ */ C(T, {
308
+ /* @__PURE__ */ S(R, { children: /* @__PURE__ */ S(w, {
305
309
  variant: "outline",
306
310
  children: e.type.replace(/_/g, " ")
307
311
  }) }),
308
- /* @__PURE__ */ C(z, {
312
+ /* @__PURE__ */ S(R, {
309
313
  className: "text-sm text-text-secondary",
310
314
  children: e.institution ?? "—"
311
315
  }),
312
- /* @__PURE__ */ C(z, {
316
+ /* @__PURE__ */ S(R, {
313
317
  className: "text-right font-semibold tabular-nums text-text-primary",
314
- children: h(e.cashBalance, e.currency)
318
+ children: m(e.cashBalance, e.currency)
315
319
  }),
316
- /* @__PURE__ */ C(z, { children: /* @__PURE__ */ C(T, {
317
- variant: se(e.status),
320
+ /* @__PURE__ */ S(R, { children: /* @__PURE__ */ S(w, {
321
+ variant: ce(e.status),
318
322
  children: e.status
319
323
  }) }),
320
- /* @__PURE__ */ C(z, {
324
+ /* @__PURE__ */ S(R, {
321
325
  className: "text-right",
322
326
  onClick: (e) => e.stopPropagation(),
323
- children: /* @__PURE__ */ w(De, { children: [/* @__PURE__ */ C(Ae, {
327
+ children: /* @__PURE__ */ C(Oe, { children: [/* @__PURE__ */ S(je, {
324
328
  asChild: !0,
325
- children: /* @__PURE__ */ C(E, {
329
+ children: /* @__PURE__ */ S(T, {
326
330
  variant: "ghost",
327
331
  size: "sm",
328
332
  "aria-label": `Actions for ${e.name}`,
329
- children: /* @__PURE__ */ C(_e, {
333
+ children: /* @__PURE__ */ S(ve, {
330
334
  className: "size-4",
331
335
  "aria-hidden": "true"
332
336
  })
333
337
  })
334
- }), /* @__PURE__ */ w(Oe, {
338
+ }), /* @__PURE__ */ C(ke, {
335
339
  align: "end",
336
- children: [/* @__PURE__ */ w(ke, {
337
- onClick: () => Qe(e),
338
- children: [/* @__PURE__ */ C(ve, {
340
+ children: [/* @__PURE__ */ C(Ae, {
341
+ onClick: () => et(e),
342
+ children: [/* @__PURE__ */ S(ye, {
339
343
  className: "size-4",
340
344
  "aria-hidden": "true"
341
345
  }), "Edit"]
342
- }), /* @__PURE__ */ w(ke, {
346
+ }), /* @__PURE__ */ C(Ae, {
343
347
  className: "text-status-error-text",
344
- onClick: () => R(e),
345
- children: [/* @__PURE__ */ C(fe, {
348
+ onClick: () => L(e),
349
+ children: [/* @__PURE__ */ S(pe, {
346
350
  className: "size-4",
347
351
  "aria-hidden": "true"
348
352
  }), "Archive"]
@@ -350,7 +354,7 @@ function X() {
350
354
  })] })
351
355
  })
352
356
  ]
353
- }, e.id)) })] }), /* @__PURE__ */ C(o, {
357
+ }, e.id)) })] }), /* @__PURE__ */ S(ne, {
354
358
  hasMore: a.hasMore,
355
359
  onClick: a.loadMore,
356
360
  loading: a.isFetchingNextPage,
@@ -359,204 +363,204 @@ function X() {
359
363
  }) })]
360
364
  })
361
365
  }),
362
- /* @__PURE__ */ C(D, {
363
- open: oe,
364
- onOpenChange: g,
365
- children: /* @__PURE__ */ w(O, {
366
+ /* @__PURE__ */ S(E, {
367
+ open: se,
368
+ onOpenChange: h,
369
+ children: /* @__PURE__ */ C(D, {
366
370
  className: "max-h-[90vh] overflow-y-auto",
367
371
  children: [
368
- /* @__PURE__ */ w(j, { children: [/* @__PURE__ */ C(M, { children: "New account" }), /* @__PURE__ */ C(k, { children: "Add a bank, brokerage or retirement account." })] }),
369
- /* @__PURE__ */ C(We, {
370
- form: _,
371
- onChange: y
372
+ /* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "New account" }), /* @__PURE__ */ S(O, { children: "Add a bank, brokerage or retirement account." })] }),
373
+ /* @__PURE__ */ S(Ge, {
374
+ form: g,
375
+ onChange: v
372
376
  }),
373
- /* @__PURE__ */ w(A, { children: [/* @__PURE__ */ C(Ee, {
377
+ /* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(De, {
374
378
  asChild: !0,
375
- children: /* @__PURE__ */ C(E, {
379
+ children: /* @__PURE__ */ S(T, {
376
380
  variant: "outline",
377
381
  children: "Cancel"
378
382
  })
379
- }), /* @__PURE__ */ C(E, {
380
- onClick: Ze,
381
- disabled: !_.name.trim() || G.isPending,
382
- children: G.isPending ? "Creating…" : "Create account"
383
+ }), /* @__PURE__ */ S(T, {
384
+ onClick: $e,
385
+ disabled: !g.name.trim() || K.isPending,
386
+ children: K.isPending ? "Creating…" : "Create account"
383
387
  })] })
384
388
  ]
385
389
  })
386
390
  }),
387
- /* @__PURE__ */ C(D, {
388
- open: !!b,
389
- onOpenChange: (e) => !e && S(null),
390
- children: /* @__PURE__ */ w(O, {
391
+ /* @__PURE__ */ S(E, {
392
+ open: !!y,
393
+ onOpenChange: (e) => !e && x(null),
394
+ children: /* @__PURE__ */ C(D, {
391
395
  className: "max-h-[90vh] overflow-y-auto",
392
396
  children: [
393
- /* @__PURE__ */ w(j, { children: [/* @__PURE__ */ C(M, { children: "Edit account" }), /* @__PURE__ */ C(k, { children: "Update account details." })] }),
394
- /* @__PURE__ */ C(We, {
395
- form: F,
396
- onChange: I
397
+ /* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "Edit account" }), /* @__PURE__ */ S(O, { children: "Update account details." })] }),
398
+ /* @__PURE__ */ S(Ge, {
399
+ form: P,
400
+ onChange: F
397
401
  }),
398
- /* @__PURE__ */ w(A, { children: [/* @__PURE__ */ C(E, {
402
+ /* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(T, {
399
403
  variant: "outline",
400
- onClick: () => S(null),
404
+ onClick: () => x(null),
401
405
  children: "Cancel"
402
- }), /* @__PURE__ */ C(E, {
403
- onClick: $e,
404
- disabled: !F.name.trim() || K.isPending,
405
- children: K.isPending ? "Saving…" : "Save changes"
406
+ }), /* @__PURE__ */ S(T, {
407
+ onClick: tt,
408
+ disabled: !P.name.trim() || Y.isPending,
409
+ children: Y.isPending ? "Saving…" : "Save changes"
406
410
  })] })
407
411
  ]
408
412
  })
409
413
  }),
410
- /* @__PURE__ */ C(ne, {
411
- open: !!L,
412
- onOpenChange: (e) => !e && R(null),
414
+ /* @__PURE__ */ S(re, {
415
+ open: !!I,
416
+ onOpenChange: (e) => !e && L(null),
413
417
  title: "Archive account?",
414
- description: L ? `“${L.name}” will be archived and hidden from active lists. This does not delete its history.` : void 0,
418
+ description: I ? `“${I.name}” will be archived and hidden from active lists. This does not delete its history.` : void 0,
415
419
  confirmLabel: "Archive account",
416
420
  pendingLabel: "Archiving…",
417
421
  destructive: !0,
418
- pending: q.isPending,
419
- onConfirm: et
422
+ pending: qe.isPending,
423
+ onConfirm: nt
420
424
  }),
421
- /* @__PURE__ */ C(Ge, {
422
- accountId: s,
423
- onClose: () => u(void 0),
424
- onRecordTransaction: tt
425
+ /* @__PURE__ */ S(Ke, {
426
+ accountId: o,
427
+ onClose: () => l(void 0),
428
+ onRecordTransaction: rt
425
429
  }),
426
- /* @__PURE__ */ C(D, {
427
- open: Ie,
428
- onOpenChange: H,
429
- children: /* @__PURE__ */ w(O, {
430
+ /* @__PURE__ */ S(E, {
431
+ open: Le,
432
+ onOpenChange: (e) => !e && it(),
433
+ children: /* @__PURE__ */ C(D, {
430
434
  className: "max-h-[90vh] overflow-y-auto",
431
435
  children: [
432
- /* @__PURE__ */ w(j, { children: [/* @__PURE__ */ C(M, { children: "Record transaction" }), /* @__PURE__ */ C(k, { children: "Log activity against the selected account." })] }),
433
- /* @__PURE__ */ w("div", {
436
+ /* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "Record transaction" }), /* @__PURE__ */ S(O, { children: "Log activity against the selected account." })] }),
437
+ /* @__PURE__ */ C("div", {
434
438
  className: "grid gap-4",
435
439
  children: [
436
- /* @__PURE__ */ w("div", {
440
+ /* @__PURE__ */ C("div", {
437
441
  className: "grid grid-cols-2 gap-4",
438
- children: [/* @__PURE__ */ w("div", {
442
+ children: [/* @__PURE__ */ C("div", {
439
443
  className: "space-y-2",
440
- children: [/* @__PURE__ */ C(P, {
444
+ children: [/* @__PURE__ */ S(N, {
441
445
  htmlFor: "tx-type",
442
446
  children: "Type"
443
- }), /* @__PURE__ */ w(je, {
444
- value: U.type,
445
- onValueChange: (e) => W((t) => ({
447
+ }), /* @__PURE__ */ C(Me, {
448
+ value: W.type,
449
+ onValueChange: (e) => G((t) => ({
446
450
  ...t,
447
451
  type: e
448
452
  })),
449
- children: [/* @__PURE__ */ C(Pe, {
453
+ children: [/* @__PURE__ */ S(Fe, {
450
454
  id: "tx-type",
451
- children: /* @__PURE__ */ C(Fe, {})
452
- }), /* @__PURE__ */ C(Me, { children: Ve.map((e) => /* @__PURE__ */ C(Ne, {
455
+ children: /* @__PURE__ */ S(Ie, {})
456
+ }), /* @__PURE__ */ S(Ne, { children: He.map((e) => /* @__PURE__ */ S(Pe, {
453
457
  value: e,
454
458
  children: e.replace(/_/g, " ")
455
459
  }, e)) })]
456
460
  })]
457
- }), /* @__PURE__ */ w("div", {
461
+ }), /* @__PURE__ */ C("div", {
458
462
  className: "space-y-2",
459
- children: [/* @__PURE__ */ C(P, {
463
+ children: [/* @__PURE__ */ S(N, {
460
464
  htmlFor: "tx-date",
461
465
  children: "Trade date"
462
- }), /* @__PURE__ */ C(N, {
466
+ }), /* @__PURE__ */ S(M, {
463
467
  id: "tx-date",
464
468
  type: "date",
465
- value: U.tradeDate,
466
- onChange: (e) => W((t) => ({
469
+ value: W.tradeDate,
470
+ onChange: (e) => G((t) => ({
467
471
  ...t,
468
472
  tradeDate: e.target.value
469
473
  }))
470
474
  })]
471
475
  })]
472
476
  }),
473
- /* @__PURE__ */ w("div", {
477
+ /* @__PURE__ */ C("div", {
474
478
  className: "grid grid-cols-2 gap-4",
475
- children: [/* @__PURE__ */ w("div", {
479
+ children: [/* @__PURE__ */ C("div", {
476
480
  className: "space-y-2",
477
- children: [/* @__PURE__ */ C(P, {
481
+ children: [/* @__PURE__ */ S(N, {
478
482
  htmlFor: "tx-symbol",
479
483
  children: "Symbol"
480
- }), /* @__PURE__ */ C(N, {
484
+ }), /* @__PURE__ */ S(M, {
481
485
  id: "tx-symbol",
482
- value: U.symbol,
483
- onChange: (e) => W((t) => ({
486
+ value: W.symbol,
487
+ onChange: (e) => G((t) => ({
484
488
  ...t,
485
489
  symbol: e.target.value
486
490
  })),
487
491
  placeholder: "e.g. VOO"
488
492
  })]
489
- }), /* @__PURE__ */ w("div", {
493
+ }), /* @__PURE__ */ C("div", {
490
494
  className: "space-y-2",
491
495
  children: [
492
- /* @__PURE__ */ C(P, {
496
+ /* @__PURE__ */ S(N, {
493
497
  htmlFor: "tx-amount",
494
498
  children: "Amount"
495
499
  }),
496
- /* @__PURE__ */ C(N, {
500
+ /* @__PURE__ */ S(M, {
497
501
  id: "tx-amount",
498
502
  type: "number",
499
503
  min: "0",
500
504
  step: "any",
501
- value: U.amount,
502
- onChange: (e) => W((t) => ({
505
+ value: W.amount,
506
+ onChange: (e) => G((t) => ({
503
507
  ...t,
504
508
  amount: e.target.value
505
509
  })),
506
- "aria-invalid": U.amount.trim() !== "" && !$,
510
+ "aria-invalid": W.amount.trim() !== "" && !$,
507
511
  "aria-describedby": "tx-amount-hint"
508
512
  }),
509
- /* @__PURE__ */ C("p", {
513
+ /* @__PURE__ */ S("p", {
510
514
  id: "tx-amount-hint",
511
515
  className: "text-xs text-text-secondary",
512
- children: U.amount.trim() !== "" && !$ ? "Enter an amount greater than 0." : "Positive amount; direction is set by the type."
516
+ children: W.amount.trim() !== "" && !$ ? "Enter an amount greater than 0." : "Positive amount; direction is set by the type."
513
517
  })
514
518
  ]
515
519
  })]
516
520
  }),
517
- /* @__PURE__ */ w("div", {
521
+ /* @__PURE__ */ C("div", {
518
522
  className: "grid grid-cols-3 gap-4",
519
523
  children: [
520
- /* @__PURE__ */ w("div", {
524
+ /* @__PURE__ */ C("div", {
521
525
  className: "space-y-2",
522
- children: [/* @__PURE__ */ C(P, {
526
+ children: [/* @__PURE__ */ S(N, {
523
527
  htmlFor: "tx-qty",
524
528
  children: "Quantity"
525
- }), /* @__PURE__ */ C(N, {
529
+ }), /* @__PURE__ */ S(M, {
526
530
  id: "tx-qty",
527
531
  type: "number",
528
- value: U.quantity,
529
- onChange: (e) => W((t) => ({
532
+ value: W.quantity,
533
+ onChange: (e) => G((t) => ({
530
534
  ...t,
531
535
  quantity: e.target.value
532
536
  }))
533
537
  })]
534
538
  }),
535
- /* @__PURE__ */ w("div", {
539
+ /* @__PURE__ */ C("div", {
536
540
  className: "space-y-2",
537
- children: [/* @__PURE__ */ C(P, {
541
+ children: [/* @__PURE__ */ S(N, {
538
542
  htmlFor: "tx-price",
539
543
  children: "Price"
540
- }), /* @__PURE__ */ C(N, {
544
+ }), /* @__PURE__ */ S(M, {
541
545
  id: "tx-price",
542
546
  type: "number",
543
- value: U.price,
544
- onChange: (e) => W((t) => ({
547
+ value: W.price,
548
+ onChange: (e) => G((t) => ({
545
549
  ...t,
546
550
  price: e.target.value
547
551
  }))
548
552
  })]
549
553
  }),
550
- /* @__PURE__ */ w("div", {
554
+ /* @__PURE__ */ C("div", {
551
555
  className: "space-y-2",
552
- children: [/* @__PURE__ */ C(P, {
556
+ children: [/* @__PURE__ */ S(N, {
553
557
  htmlFor: "tx-fee",
554
558
  children: "Fee"
555
- }), /* @__PURE__ */ C(N, {
559
+ }), /* @__PURE__ */ S(M, {
556
560
  id: "tx-fee",
557
561
  type: "number",
558
- value: U.fee,
559
- onChange: (e) => W((t) => ({
562
+ value: W.fee,
563
+ onChange: (e) => G((t) => ({
560
564
  ...t,
561
565
  fee: e.target.value
562
566
  }))
@@ -564,15 +568,15 @@ function X() {
564
568
  })
565
569
  ]
566
570
  }),
567
- /* @__PURE__ */ w("div", {
571
+ /* @__PURE__ */ C("div", {
568
572
  className: "space-y-2",
569
- children: [/* @__PURE__ */ C(P, {
573
+ children: [/* @__PURE__ */ S(N, {
570
574
  htmlFor: "tx-notes",
571
575
  children: "Notes"
572
- }), /* @__PURE__ */ C(Be, {
576
+ }), /* @__PURE__ */ S(Ve, {
573
577
  id: "tx-notes",
574
- value: U.notes,
575
- onChange: (e) => W((t) => ({
578
+ value: W.notes,
579
+ onChange: (e) => G((t) => ({
576
580
  ...t,
577
581
  notes: e.target.value
578
582
  })),
@@ -581,13 +585,13 @@ function X() {
581
585
  })
582
586
  ]
583
587
  }),
584
- /* @__PURE__ */ w(A, { children: [/* @__PURE__ */ C(E, {
588
+ /* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(T, {
585
589
  variant: "outline",
586
- onClick: () => H(!1),
590
+ onClick: it,
587
591
  children: "Cancel"
588
- }), /* @__PURE__ */ C(E, {
589
- onClick: rt,
590
- disabled: !nt || X.isPending,
592
+ }), /* @__PURE__ */ S(T, {
593
+ onClick: ot,
594
+ disabled: !at || X.isPending,
591
595
  children: X.isPending ? "Saving…" : "Record transaction"
592
596
  })] })
593
597
  ]
@@ -597,16 +601,16 @@ function X() {
597
601
  })
598
602
  });
599
603
  }
600
- function We({ form: e, onChange: t }) {
601
- return /* @__PURE__ */ w("div", {
604
+ function Ge({ form: e, onChange: t }) {
605
+ return /* @__PURE__ */ C("div", {
602
606
  className: "grid gap-4",
603
607
  children: [
604
- /* @__PURE__ */ w("div", {
608
+ /* @__PURE__ */ C("div", {
605
609
  className: "space-y-2",
606
- children: [/* @__PURE__ */ C(P, {
610
+ children: [/* @__PURE__ */ S(N, {
607
611
  htmlFor: "acct-name",
608
612
  children: "Name"
609
- }), /* @__PURE__ */ C(N, {
613
+ }), /* @__PURE__ */ S(M, {
610
614
  id: "acct-name",
611
615
  value: e.name,
612
616
  onChange: (e) => t((t) => ({
@@ -616,33 +620,33 @@ function We({ form: e, onChange: t }) {
616
620
  placeholder: "e.g. Everyday Checking"
617
621
  })]
618
622
  }),
619
- /* @__PURE__ */ w("div", {
623
+ /* @__PURE__ */ C("div", {
620
624
  className: "grid grid-cols-2 gap-4",
621
- children: [/* @__PURE__ */ w("div", {
625
+ children: [/* @__PURE__ */ C("div", {
622
626
  className: "space-y-2",
623
- children: [/* @__PURE__ */ C(P, {
627
+ children: [/* @__PURE__ */ S(N, {
624
628
  htmlFor: "acct-type",
625
629
  children: "Type"
626
- }), /* @__PURE__ */ w(je, {
630
+ }), /* @__PURE__ */ C(Me, {
627
631
  value: e.type,
628
632
  onValueChange: (e) => t((t) => ({
629
633
  ...t,
630
634
  type: e
631
635
  })),
632
- children: [/* @__PURE__ */ C(Pe, {
636
+ children: [/* @__PURE__ */ S(Fe, {
633
637
  id: "acct-type",
634
- children: /* @__PURE__ */ C(Fe, {})
635
- }), /* @__PURE__ */ C(Me, { children: K.map((e) => /* @__PURE__ */ C(Ne, {
638
+ children: /* @__PURE__ */ S(Ie, {})
639
+ }), /* @__PURE__ */ S(Ne, { children: G.map((e) => /* @__PURE__ */ S(Pe, {
636
640
  value: e,
637
641
  children: e.replace(/_/g, " ")
638
642
  }, e)) })]
639
643
  })]
640
- }), /* @__PURE__ */ w("div", {
644
+ }), /* @__PURE__ */ C("div", {
641
645
  className: "space-y-2",
642
- children: [/* @__PURE__ */ C(P, {
646
+ children: [/* @__PURE__ */ S(N, {
643
647
  htmlFor: "acct-currency",
644
648
  children: "Currency"
645
- }), /* @__PURE__ */ C(N, {
649
+ }), /* @__PURE__ */ S(M, {
646
650
  id: "acct-currency",
647
651
  value: e.currency,
648
652
  onChange: (e) => t((t) => ({
@@ -653,12 +657,12 @@ function We({ form: e, onChange: t }) {
653
657
  })]
654
658
  })]
655
659
  }),
656
- /* @__PURE__ */ w("div", {
660
+ /* @__PURE__ */ C("div", {
657
661
  className: "space-y-2",
658
- children: [/* @__PURE__ */ C(P, {
662
+ children: [/* @__PURE__ */ S(N, {
659
663
  htmlFor: "acct-institution",
660
664
  children: "Institution"
661
- }), /* @__PURE__ */ C(N, {
665
+ }), /* @__PURE__ */ S(M, {
662
666
  id: "acct-institution",
663
667
  value: e.institution,
664
668
  onChange: (e) => t((t) => ({
@@ -668,14 +672,14 @@ function We({ form: e, onChange: t }) {
668
672
  placeholder: "e.g. Chase"
669
673
  })]
670
674
  }),
671
- /* @__PURE__ */ w("div", {
675
+ /* @__PURE__ */ C("div", {
672
676
  className: "grid grid-cols-2 gap-4",
673
- children: [/* @__PURE__ */ w("div", {
677
+ children: [/* @__PURE__ */ C("div", {
674
678
  className: "space-y-2",
675
- children: [/* @__PURE__ */ C(P, {
679
+ children: [/* @__PURE__ */ S(N, {
676
680
  htmlFor: "acct-balance",
677
681
  children: "Cash balance"
678
- }), /* @__PURE__ */ C(N, {
682
+ }), /* @__PURE__ */ S(M, {
679
683
  id: "acct-balance",
680
684
  type: "number",
681
685
  value: e.cashBalance,
@@ -684,12 +688,12 @@ function We({ form: e, onChange: t }) {
684
688
  cashBalance: e.target.value
685
689
  }))
686
690
  })]
687
- }), /* @__PURE__ */ w("div", {
691
+ }), /* @__PURE__ */ C("div", {
688
692
  className: "space-y-2",
689
- children: [/* @__PURE__ */ C(P, {
693
+ children: [/* @__PURE__ */ S(N, {
690
694
  htmlFor: "acct-mask",
691
695
  children: "Account mask"
692
- }), /* @__PURE__ */ C(N, {
696
+ }), /* @__PURE__ */ S(M, {
693
697
  id: "acct-mask",
694
698
  value: e.accountMask,
695
699
  onChange: (e) => t((t) => ({
@@ -700,7 +704,7 @@ function We({ form: e, onChange: t }) {
700
704
  })]
701
705
  })]
702
706
  }),
703
- /* @__PURE__ */ C(u, {
707
+ /* @__PURE__ */ S(l, {
704
708
  value: e.householdId,
705
709
  onChange: (e) => t((t) => ({
706
710
  ...t,
@@ -710,78 +714,78 @@ function We({ form: e, onChange: t }) {
710
714
  ]
711
715
  });
712
716
  }
713
- function Ge({ accountId: t, onClose: n, onRecordTransaction: r }) {
714
- let { data: i, isLoading: ee, isError: te, refetch: ne } = e(t), c = a(t ? { accountId: t } : {}), l = t ? c.items : [], u = de(() => i ? i.holdings.filter((e) => Number.isFinite(e.marketValue) && e.marketValue > 0).map((e) => ({
717
+ function Ke({ accountId: t, onClose: n, onRecordTransaction: r }) {
718
+ let { data: i, isLoading: ee, isError: te, refetch: re } = e(t), s = a(t ? { accountId: t } : {}), c = t ? s.items : [], l = fe(() => i ? i.holdings.filter((e) => Number.isFinite(e.marketValue) && e.marketValue > 0).map((e) => ({
715
719
  label: e.symbol,
716
720
  value: e.marketValue
717
- })).sort((e, t) => t.value - e.value) : [], [i]), m = u.reduce((e, t) => e + t.value, 0);
718
- return /* @__PURE__ */ C(F, {
721
+ })).sort((e, t) => t.value - e.value) : [], [i]), p = l.reduce((e, t) => e + t.value, 0);
722
+ return /* @__PURE__ */ S(P, {
719
723
  open: !!t,
720
724
  onOpenChange: (e) => !e && n(),
721
- children: /* @__PURE__ */ w(I, {
725
+ children: /* @__PURE__ */ C(F, {
722
726
  className: "flex w-full flex-col overflow-y-auto p-0 sm:max-w-xl",
723
- children: [/* @__PURE__ */ w(R, {
727
+ children: [/* @__PURE__ */ C(L, {
724
728
  className: "border-b border-border-subtle px-6 pb-4 pt-6",
725
- children: [/* @__PURE__ */ C(Ie, {
729
+ children: [/* @__PURE__ */ S(Le, {
726
730
  className: "text-lg",
727
731
  children: i?.name ?? "Account"
728
- }), /* @__PURE__ */ C(L, { children: i ? `${i.institution ?? "Manual account"} · ${i.type.replace(/_/g, " ")}` : "Loading account details…" })]
729
- }), ee ? /* @__PURE__ */ C("div", {
732
+ }), /* @__PURE__ */ S(I, { children: i ? `${i.institution ?? "Manual account"} · ${i.type.replace(/_/g, " ")}` : "Loading account details…" })]
733
+ }), ee ? /* @__PURE__ */ S("div", {
730
734
  className: "p-6",
731
- children: /* @__PURE__ */ C(p, { rows: 3 })
732
- }) : te ? /* @__PURE__ */ C("div", {
735
+ children: /* @__PURE__ */ S(f, { rows: 3 })
736
+ }) : te ? /* @__PURE__ */ S("div", {
733
737
  className: "p-6",
734
- children: /* @__PURE__ */ C(f, { onRetry: () => ne() })
735
- }) : i ? /* @__PURE__ */ w("div", {
738
+ children: /* @__PURE__ */ S(d, { onRetry: () => re() })
739
+ }) : i ? /* @__PURE__ */ C("div", {
736
740
  className: "space-y-6 p-6",
737
741
  children: [
738
- /* @__PURE__ */ w(ie, {
742
+ /* @__PURE__ */ C(ae, {
739
743
  glow: !0,
740
744
  className: "space-y-4",
741
- children: [/* @__PURE__ */ w("div", {
745
+ children: [/* @__PURE__ */ C("div", {
742
746
  className: "flex items-start justify-between gap-3",
743
- children: [/* @__PURE__ */ w("div", {
747
+ children: [/* @__PURE__ */ C("div", {
744
748
  className: "min-w-0",
745
- children: [/* @__PURE__ */ C("p", {
749
+ children: [/* @__PURE__ */ S("p", {
746
750
  className: "text-xs uppercase tracking-wide text-text-secondary",
747
751
  children: "Cash balance"
748
- }), /* @__PURE__ */ C("p", {
752
+ }), /* @__PURE__ */ S("p", {
749
753
  className: "mt-1 text-3xl font-semibold tracking-tight text-text-primary",
750
- children: h(i.cashBalance, i.currency)
754
+ children: m(i.cashBalance, i.currency)
751
755
  })]
752
- }), /* @__PURE__ */ C(T, {
753
- variant: se(i.status),
756
+ }), /* @__PURE__ */ S(w, {
757
+ variant: ce(i.status),
754
758
  children: i.status
755
759
  })]
756
- }), /* @__PURE__ */ w("div", {
760
+ }), /* @__PURE__ */ C("div", {
757
761
  className: "flex flex-wrap items-center gap-x-6 gap-y-2 border-t border-border-subtle pt-3 text-xs",
758
762
  children: [
759
- /* @__PURE__ */ w("div", {
763
+ /* @__PURE__ */ C("div", {
760
764
  className: "flex items-center gap-1.5",
761
- children: [/* @__PURE__ */ C("span", {
765
+ children: [/* @__PURE__ */ S("span", {
762
766
  className: "text-text-secondary",
763
767
  children: "Owner"
764
- }), /* @__PURE__ */ C(s, {
768
+ }), /* @__PURE__ */ S(o, {
765
769
  id: i.ownerId,
766
770
  className: "font-medium text-text-primary"
767
771
  })]
768
772
  }),
769
- /* @__PURE__ */ w("div", {
773
+ /* @__PURE__ */ C("div", {
770
774
  className: "flex items-center gap-1.5",
771
- children: [/* @__PURE__ */ C("span", {
775
+ children: [/* @__PURE__ */ S("span", {
772
776
  className: "text-text-secondary",
773
777
  children: "Holdings value"
774
- }), /* @__PURE__ */ C("span", {
778
+ }), /* @__PURE__ */ S("span", {
775
779
  className: "font-medium text-text-primary",
776
- children: m > 0 ? h(m, i.currency) : "—"
780
+ children: p > 0 ? m(p, i.currency) : "—"
777
781
  })]
778
782
  }),
779
- /* @__PURE__ */ w("div", {
783
+ /* @__PURE__ */ C("div", {
780
784
  className: "flex items-center gap-1.5",
781
- children: [/* @__PURE__ */ C("span", {
785
+ children: [/* @__PURE__ */ S("span", {
782
786
  className: "text-text-secondary",
783
787
  children: "Positions"
784
- }), /* @__PURE__ */ C("span", {
788
+ }), /* @__PURE__ */ S("span", {
785
789
  className: "font-medium text-text-primary",
786
790
  children: i.holdings.length
787
791
  })]
@@ -789,178 +793,178 @@ function Ge({ accountId: t, onClose: n, onRecordTransaction: r }) {
789
793
  ]
790
794
  })]
791
795
  }),
792
- u.length > 0 ? /* @__PURE__ */ w("div", {
796
+ l.length > 0 ? /* @__PURE__ */ C("div", {
793
797
  className: "rounded-xl border border-border-subtle bg-bg-surface p-4",
794
- children: [/* @__PURE__ */ C("h3", {
798
+ children: [/* @__PURE__ */ S("h3", {
795
799
  className: "mb-2 text-sm font-semibold text-text-primary",
796
800
  children: "Holdings allocation"
797
- }), /* @__PURE__ */ C(re, {
798
- data: u,
799
- centerValue: ae(m, i.currency),
801
+ }), /* @__PURE__ */ S(ie, {
802
+ data: l,
803
+ centerValue: oe(p, i.currency),
800
804
  centerLabel: "Market value",
801
805
  height: 180,
802
- valueFormatter: (e) => h(e, i.currency)
806
+ valueFormatter: (e) => m(e, i.currency)
803
807
  })]
804
808
  }) : null,
805
- /* @__PURE__ */ C("div", {
809
+ /* @__PURE__ */ S("div", {
806
810
  className: "rounded-xl border border-border-subtle bg-bg-surface p-4",
807
- children: /* @__PURE__ */ C(_, {
811
+ children: /* @__PURE__ */ S(g, {
808
812
  entityType: "brainyrich-account",
809
813
  entityId: i.id
810
814
  })
811
815
  }),
812
- /* @__PURE__ */ w(H, {
816
+ /* @__PURE__ */ C(V, {
813
817
  defaultValue: "holdings",
814
818
  className: "w-full",
815
819
  children: [
816
- /* @__PURE__ */ w(W, {
820
+ /* @__PURE__ */ C(U, {
817
821
  className: "w-full",
818
822
  children: [
819
- /* @__PURE__ */ C(G, {
823
+ /* @__PURE__ */ S(W, {
820
824
  value: "holdings",
821
825
  className: "flex-1",
822
826
  children: "Holdings"
823
827
  }),
824
- /* @__PURE__ */ C(G, {
828
+ /* @__PURE__ */ S(W, {
825
829
  value: "transactions",
826
830
  className: "flex-1",
827
831
  children: "Transactions"
828
832
  }),
829
- /* @__PURE__ */ C(G, {
833
+ /* @__PURE__ */ S(W, {
830
834
  value: "documents",
831
835
  className: "flex-1",
832
836
  children: "Documents"
833
837
  })
834
838
  ]
835
839
  }),
836
- /* @__PURE__ */ C(U, {
840
+ /* @__PURE__ */ S(H, {
837
841
  value: "holdings",
838
842
  className: "mt-4",
839
- children: i.holdings.length === 0 ? /* @__PURE__ */ C(d, {
840
- icon: /* @__PURE__ */ C(ge, {
843
+ children: i.holdings.length === 0 ? /* @__PURE__ */ S(u, {
844
+ icon: /* @__PURE__ */ S(_e, {
841
845
  className: "size-6",
842
846
  "aria-hidden": "true"
843
847
  }),
844
848
  title: "No holdings",
845
849
  description: "This account has no positions recorded yet."
846
- }) : /* @__PURE__ */ C("div", {
850
+ }) : /* @__PURE__ */ S("div", {
847
851
  className: "overflow-x-auto rounded-lg border border-border-subtle",
848
- children: /* @__PURE__ */ w(Le, { children: [/* @__PURE__ */ C(ze, { children: /* @__PURE__ */ w(V, { children: [
849
- /* @__PURE__ */ C(B, { children: "Holding" }),
850
- /* @__PURE__ */ C(B, {
852
+ children: /* @__PURE__ */ C(Re, { children: [/* @__PURE__ */ S(Be, { children: /* @__PURE__ */ C(B, { children: [
853
+ /* @__PURE__ */ S(z, { children: "Holding" }),
854
+ /* @__PURE__ */ S(z, {
851
855
  className: "text-right",
852
856
  children: "Qty"
853
857
  }),
854
- /* @__PURE__ */ C(B, {
858
+ /* @__PURE__ */ S(z, {
855
859
  className: "text-right",
856
860
  children: "Price"
857
861
  }),
858
- /* @__PURE__ */ C(B, {
862
+ /* @__PURE__ */ S(z, {
859
863
  className: "text-right",
860
864
  children: "Market value"
861
865
  })
862
- ] }) }), /* @__PURE__ */ C(Re, { children: i.holdings.map((e) => /* @__PURE__ */ w(V, {
866
+ ] }) }), /* @__PURE__ */ S(ze, { children: i.holdings.map((e) => /* @__PURE__ */ C(B, {
863
867
  className: "transition-colors hover:bg-bg-elevated",
864
868
  children: [
865
- /* @__PURE__ */ w(z, { children: [/* @__PURE__ */ C("p", {
869
+ /* @__PURE__ */ C(R, { children: [/* @__PURE__ */ S("p", {
866
870
  className: "font-medium text-text-primary",
867
871
  children: e.symbol
868
- }), e.name ? /* @__PURE__ */ C("p", {
872
+ }), e.name ? /* @__PURE__ */ S("p", {
869
873
  className: "truncate text-xs text-text-secondary",
870
874
  children: e.name
871
875
  }) : null] }),
872
- /* @__PURE__ */ C(z, {
876
+ /* @__PURE__ */ S(R, {
873
877
  className: "text-right tabular-nums text-text-secondary",
874
878
  children: e.quantity
875
879
  }),
876
- /* @__PURE__ */ C(z, {
880
+ /* @__PURE__ */ S(R, {
877
881
  className: "text-right tabular-nums text-text-secondary",
878
- children: h(e.lastPrice, e.currency)
882
+ children: m(e.lastPrice, e.currency)
879
883
  }),
880
- /* @__PURE__ */ C(z, {
884
+ /* @__PURE__ */ S(R, {
881
885
  className: "text-right font-semibold tabular-nums text-text-primary",
882
- children: h(e.marketValue, e.currency)
886
+ children: m(e.marketValue, e.currency)
883
887
  })
884
888
  ]
885
889
  }, e.id)) })] })
886
890
  })
887
891
  }),
888
- /* @__PURE__ */ w(U, {
892
+ /* @__PURE__ */ C(H, {
889
893
  value: "transactions",
890
894
  className: "mt-4 space-y-3",
891
- children: [/* @__PURE__ */ w("div", {
895
+ children: [/* @__PURE__ */ C("div", {
892
896
  className: "flex items-center justify-between",
893
- children: [/* @__PURE__ */ C("h3", {
897
+ children: [/* @__PURE__ */ S("h3", {
894
898
  className: "text-sm font-semibold text-text-primary",
895
899
  children: "Recent activity"
896
- }), /* @__PURE__ */ w(E, {
900
+ }), /* @__PURE__ */ C(T, {
897
901
  size: "sm",
898
- onClick: r,
899
- children: [/* @__PURE__ */ C(S, {
902
+ onClick: () => r(i.id),
903
+ children: [/* @__PURE__ */ S(x, {
900
904
  className: "size-4",
901
905
  "aria-hidden": "true"
902
906
  }), "Record"]
903
907
  })]
904
- }), c.isLoading ? /* @__PURE__ */ C(p, { rows: 2 }) : c.isError ? /* @__PURE__ */ C(f, { onRetry: () => c.refetch() }) : l.length === 0 ? /* @__PURE__ */ C(d, {
905
- icon: /* @__PURE__ */ C(S, {
908
+ }), s.isLoading ? /* @__PURE__ */ S(f, { rows: 2 }) : s.isError ? /* @__PURE__ */ S(d, { onRetry: () => s.refetch() }) : c.length === 0 ? /* @__PURE__ */ S(u, {
909
+ icon: /* @__PURE__ */ S(x, {
906
910
  className: "size-6",
907
911
  "aria-hidden": "true"
908
912
  }),
909
913
  title: "No transactions",
910
914
  description: "Record a transaction to see activity here.",
911
- action: /* @__PURE__ */ w(E, {
915
+ action: /* @__PURE__ */ C(T, {
912
916
  size: "sm",
913
- onClick: r,
914
- children: [/* @__PURE__ */ C(ye, {
917
+ onClick: () => r(i.id),
918
+ children: [/* @__PURE__ */ S(be, {
915
919
  className: "size-4",
916
920
  "aria-hidden": "true"
917
921
  }), "Record transaction"]
918
922
  })
919
- }) : /* @__PURE__ */ w("div", {
923
+ }) : /* @__PURE__ */ C("div", {
920
924
  className: "space-y-2",
921
- children: [l.map((e) => {
922
- let t = q(e.type), n = t ? b : y, r = t ? "text-status-success-text" : "text-status-error-text";
923
- return /* @__PURE__ */ w("div", {
925
+ children: [c.map((e) => {
926
+ let t = K(e.type), n = t ? y : v, r = t ? "text-status-success-text" : "text-status-error-text";
927
+ return /* @__PURE__ */ C("div", {
924
928
  className: "flex items-center justify-between gap-3 rounded-lg border border-border-subtle bg-bg-surface p-3 transition-colors hover:bg-bg-elevated",
925
- children: [/* @__PURE__ */ w("div", {
929
+ children: [/* @__PURE__ */ C("div", {
926
930
  className: "flex min-w-0 items-center gap-3",
927
- children: [/* @__PURE__ */ C("span", {
931
+ children: [/* @__PURE__ */ S("span", {
928
932
  className: `flex size-8 shrink-0 items-center justify-center rounded-full ${t ? "bg-status-success-bg" : "bg-status-error-bg"} ${r}`,
929
933
  "aria-hidden": "true",
930
- children: /* @__PURE__ */ C(n, { className: "size-4" })
931
- }), /* @__PURE__ */ w("div", {
934
+ children: /* @__PURE__ */ S(n, { className: "size-4" })
935
+ }), /* @__PURE__ */ C("div", {
932
936
  className: "min-w-0",
933
- children: [/* @__PURE__ */ w("div", {
937
+ children: [/* @__PURE__ */ C("div", {
934
938
  className: "flex items-center gap-2",
935
- children: [/* @__PURE__ */ C("span", {
939
+ children: [/* @__PURE__ */ S("span", {
936
940
  className: "truncate text-sm font-medium text-text-primary",
937
941
  children: e.type.replace(/_/g, " ")
938
- }), e.symbol ? /* @__PURE__ */ C(T, {
942
+ }), e.symbol ? /* @__PURE__ */ S(w, {
939
943
  variant: "outline",
940
944
  className: "shrink-0",
941
945
  children: e.symbol
942
946
  }) : null]
943
- }), /* @__PURE__ */ C("p", {
947
+ }), /* @__PURE__ */ S("p", {
944
948
  className: "mt-0.5 text-xs text-text-secondary",
945
- children: oe(e.tradeDate)
949
+ children: se(e.tradeDate)
946
950
  })]
947
951
  })]
948
- }), /* @__PURE__ */ w("span", {
952
+ }), /* @__PURE__ */ C("span", {
949
953
  className: `shrink-0 text-sm font-semibold tabular-nums ${r}`,
950
- children: [t ? "+" : "−", h(Math.abs(e.amount), e.currency)]
954
+ children: [t ? "+" : "−", m(Math.abs(e.amount), e.currency)]
951
955
  })]
952
956
  }, e.id);
953
- }), /* @__PURE__ */ C(o, {
954
- hasMore: c.hasMore,
955
- onClick: c.loadMore,
956
- loading: c.isFetchingNextPage
957
+ }), /* @__PURE__ */ S(ne, {
958
+ hasMore: s.hasMore,
959
+ onClick: s.loadMore,
960
+ loading: s.isFetchingNextPage
957
961
  })]
958
962
  })]
959
963
  }),
960
- /* @__PURE__ */ C(U, {
964
+ /* @__PURE__ */ S(H, {
961
965
  value: "documents",
962
966
  className: "mt-4",
963
- children: /* @__PURE__ */ C(g, {
967
+ children: /* @__PURE__ */ S(h, {
964
968
  entityType: "brainyrich-account",
965
969
  entityId: i.id
966
970
  })
@@ -968,9 +972,9 @@ function Ge({ accountId: t, onClose: n, onRecordTransaction: r }) {
968
972
  ]
969
973
  })
970
974
  ]
971
- }) : /* @__PURE__ */ C("div", {
975
+ }) : /* @__PURE__ */ S("div", {
972
976
  className: "p-6",
973
- children: /* @__PURE__ */ C(d, {
977
+ children: /* @__PURE__ */ S(u, {
974
978
  title: "Account not found",
975
979
  description: "This account is no longer available."
976
980
  })
@@ -979,6 +983,6 @@ function Ge({ accountId: t, onClose: n, onRecordTransaction: r }) {
979
983
  });
980
984
  }
981
985
  //#endregion
982
- export { X as AccountsPage };
986
+ export { Y as AccountsPage };
983
987
 
984
988
  //# sourceMappingURL=AccountsPage.js.map