@burdenoff/microfe-brainyrich 2026.819.1 → 2026.827.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 (514) 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.js.map +1 -1
  5. package/dist/brainyrich/components/ActorName.js.map +1 -1
  6. package/dist/brainyrich/components/ConfirmDialog.d.ts +0 -1
  7. package/dist/brainyrich/components/ConfirmDialog.js.map +1 -1
  8. package/dist/brainyrich/components/LoadMore.js.map +1 -1
  9. package/dist/brainyrich/components/notify.js.map +1 -1
  10. package/dist/brainyrich/components/pickers.js.map +1 -1
  11. package/dist/brainyrich/components/reuse/CommentThread.js.map +1 -1
  12. package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts +4 -0
  13. package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts.map +1 -1
  14. package/dist/brainyrich/components/reuse/DocumentsPanel.js +150 -99
  15. package/dist/brainyrich/components/reuse/DocumentsPanel.js.map +1 -1
  16. package/dist/brainyrich/components/reuse/TagField.js.map +1 -1
  17. package/dist/brainyrich/components/reuse/transport.js.map +1 -1
  18. package/dist/brainyrich/components/viz.d.ts +0 -1
  19. package/dist/brainyrich/components/viz.js.map +1 -1
  20. package/dist/brainyrich/hooks/useBrainyRichAnalytics.js.map +1 -1
  21. package/dist/brainyrich/hooks/useBrainyRichApi.d.ts +176 -1
  22. package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
  23. package/dist/brainyrich/hooks/useBrainyRichApi.js +96 -82
  24. package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
  25. package/dist/brainyrich/pages/AccountsPage.d.ts.map +1 -1
  26. package/dist/brainyrich/pages/AccountsPage.js +367 -363
  27. package/dist/brainyrich/pages/AccountsPage.js.map +1 -1
  28. package/dist/brainyrich/pages/AdminFirmPage.d.ts.map +1 -1
  29. package/dist/brainyrich/pages/AdminFirmPage.js +115 -83
  30. package/dist/brainyrich/pages/AdminFirmPage.js.map +1 -1
  31. package/dist/brainyrich/pages/AiAssistantPage.d.ts.map +1 -1
  32. package/dist/brainyrich/pages/AiAssistantPage.js +251 -230
  33. package/dist/brainyrich/pages/AiAssistantPage.js.map +1 -1
  34. package/dist/brainyrich/pages/AnalyticsPage.js.map +1 -1
  35. package/dist/brainyrich/pages/DashboardPage.js.map +1 -1
  36. package/dist/brainyrich/pages/FamilyPage.js.map +1 -1
  37. package/dist/brainyrich/pages/FirmPage.d.ts.map +1 -1
  38. package/dist/brainyrich/pages/FirmPage.js +148 -116
  39. package/dist/brainyrich/pages/FirmPage.js.map +1 -1
  40. package/dist/brainyrich/pages/GoalsPage.js.map +1 -1
  41. package/dist/brainyrich/pages/InvestmentsPage.js.map +1 -1
  42. package/dist/brainyrich/pages/PortfoliosPage.d.ts +14 -0
  43. package/dist/brainyrich/pages/PortfoliosPage.d.ts.map +1 -1
  44. package/dist/brainyrich/pages/PortfoliosPage.js +530 -353
  45. package/dist/brainyrich/pages/PortfoliosPage.js.map +1 -1
  46. package/dist/brainyrich/pages/ReportsPage.js.map +1 -1
  47. package/dist/brainyrich/pages/RiskPage.d.ts.map +1 -1
  48. package/dist/brainyrich/pages/RiskPage.js +381 -396
  49. package/dist/brainyrich/pages/RiskPage.js.map +1 -1
  50. package/dist/brainyrich/pages/TaxPage.js.map +1 -1
  51. package/dist/brainyrich/pages/_shared.d.ts +21 -1
  52. package/dist/brainyrich/pages/_shared.d.ts.map +1 -1
  53. package/dist/brainyrich/pages/_shared.js +66 -31
  54. package/dist/brainyrich/pages/_shared.js.map +1 -1
  55. package/dist/brainyrich/providers/BrainyRichProvider.d.ts +0 -1
  56. package/dist/brainyrich/providers/BrainyRichProvider.js.map +1 -1
  57. package/dist/brainyrich/services/createSandboxAssistantTransport.js.map +1 -1
  58. package/dist/brainyrich/types/bra.d.ts.map +1 -1
  59. package/dist/brainyrich/types/index.d.ts +0 -1
  60. package/dist/brainyrich/utils/cn.d.ts +0 -1
  61. package/dist/brainyrich/utils/i18n.d.ts +0 -1
  62. package/dist/brainyrich/utils/i18n.js.map +1 -1
  63. package/dist/brainyrich/utils/nativeControls.d.ts +0 -1
  64. package/dist/brainyrich/utils/nativeControls.js.map +1 -1
  65. package/dist/brainyrich/utils/navigation.js.map +1 -1
  66. package/dist/brainyrich/utils/pageContext.js.map +1 -1
  67. package/dist/dev/main.d.ts +0 -1
  68. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  69. package/dist/node_modules/d3-array/src/ascending.js.map +1 -1
  70. package/dist/node_modules/d3-array/src/bisect.js.map +1 -1
  71. package/dist/node_modules/d3-array/src/bisector.js.map +1 -1
  72. package/dist/node_modules/d3-array/src/descending.js.map +1 -1
  73. package/dist/node_modules/d3-array/src/max.js.map +1 -1
  74. package/dist/node_modules/d3-array/src/min.js.map +1 -1
  75. package/dist/node_modules/d3-array/src/number.js.map +1 -1
  76. package/dist/node_modules/d3-array/src/quantile.js.map +1 -1
  77. package/dist/node_modules/d3-array/src/quickselect.js.map +1 -1
  78. package/dist/node_modules/d3-array/src/range.js.map +1 -1
  79. package/dist/node_modules/d3-array/src/sort.js.map +1 -1
  80. package/dist/node_modules/d3-array/src/ticks.js.map +1 -1
  81. package/dist/node_modules/d3-color/src/color.js.map +1 -1
  82. package/dist/node_modules/d3-color/src/define.js.map +1 -1
  83. package/dist/node_modules/d3-format/src/defaultLocale.js.map +1 -1
  84. package/dist/node_modules/d3-format/src/exponent.js.map +1 -1
  85. package/dist/node_modules/d3-format/src/formatDecimal.js.map +1 -1
  86. package/dist/node_modules/d3-format/src/formatGroup.js.map +1 -1
  87. package/dist/node_modules/d3-format/src/formatNumerals.js.map +1 -1
  88. package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +1 -1
  89. package/dist/node_modules/d3-format/src/formatRounded.js.map +1 -1
  90. package/dist/node_modules/d3-format/src/formatSpecifier.js.map +1 -1
  91. package/dist/node_modules/d3-format/src/formatTrim.js.map +1 -1
  92. package/dist/node_modules/d3-format/src/formatTypes.js.map +1 -1
  93. package/dist/node_modules/d3-format/src/identity.js.map +1 -1
  94. package/dist/node_modules/d3-format/src/locale.js.map +1 -1
  95. package/dist/node_modules/d3-format/src/precisionFixed.js.map +1 -1
  96. package/dist/node_modules/d3-format/src/precisionPrefix.js.map +1 -1
  97. package/dist/node_modules/d3-format/src/precisionRound.js.map +1 -1
  98. package/dist/node_modules/d3-interpolate/src/array.js.map +1 -1
  99. package/dist/node_modules/d3-interpolate/src/basis.js.map +1 -1
  100. package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +1 -1
  101. package/dist/node_modules/d3-interpolate/src/color.js.map +1 -1
  102. package/dist/node_modules/d3-interpolate/src/date.js.map +1 -1
  103. package/dist/node_modules/d3-interpolate/src/number.js.map +1 -1
  104. package/dist/node_modules/d3-interpolate/src/numberArray.js.map +1 -1
  105. package/dist/node_modules/d3-interpolate/src/object.js.map +1 -1
  106. package/dist/node_modules/d3-interpolate/src/piecewise.js.map +1 -1
  107. package/dist/node_modules/d3-interpolate/src/rgb.js.map +1 -1
  108. package/dist/node_modules/d3-interpolate/src/round.js.map +1 -1
  109. package/dist/node_modules/d3-interpolate/src/string.js.map +1 -1
  110. package/dist/node_modules/d3-interpolate/src/value.js.map +1 -1
  111. package/dist/node_modules/d3-path/src/path.js.map +1 -1
  112. package/dist/node_modules/d3-scale/src/band.js.map +1 -1
  113. package/dist/node_modules/d3-scale/src/constant.js.map +1 -1
  114. package/dist/node_modules/d3-scale/src/continuous.js.map +1 -1
  115. package/dist/node_modules/d3-scale/src/diverging.js.map +1 -1
  116. package/dist/node_modules/d3-scale/src/identity.js.map +1 -1
  117. package/dist/node_modules/d3-scale/src/init.js.map +1 -1
  118. package/dist/node_modules/d3-scale/src/linear.js.map +1 -1
  119. package/dist/node_modules/d3-scale/src/log.js.map +1 -1
  120. package/dist/node_modules/d3-scale/src/nice.js.map +1 -1
  121. package/dist/node_modules/d3-scale/src/number.js.map +1 -1
  122. package/dist/node_modules/d3-scale/src/ordinal.js.map +1 -1
  123. package/dist/node_modules/d3-scale/src/pow.js.map +1 -1
  124. package/dist/node_modules/d3-scale/src/quantile.js.map +1 -1
  125. package/dist/node_modules/d3-scale/src/quantize.js.map +1 -1
  126. package/dist/node_modules/d3-scale/src/radial.js.map +1 -1
  127. package/dist/node_modules/d3-scale/src/sequential.js.map +1 -1
  128. package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +1 -1
  129. package/dist/node_modules/d3-scale/src/symlog.js.map +1 -1
  130. package/dist/node_modules/d3-scale/src/threshold.js.map +1 -1
  131. package/dist/node_modules/d3-scale/src/tickFormat.js.map +1 -1
  132. package/dist/node_modules/d3-scale/src/time.js.map +1 -1
  133. package/dist/node_modules/d3-scale/src/utcTime.js.map +1 -1
  134. package/dist/node_modules/d3-shape/src/area.js.map +1 -1
  135. package/dist/node_modules/d3-shape/src/array.js.map +1 -1
  136. package/dist/node_modules/d3-shape/src/constant.js.map +1 -1
  137. package/dist/node_modules/d3-shape/src/curve/basis.js.map +1 -1
  138. package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +1 -1
  139. package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +1 -1
  140. package/dist/node_modules/d3-shape/src/curve/bump.js.map +1 -1
  141. package/dist/node_modules/d3-shape/src/curve/linear.js.map +1 -1
  142. package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +1 -1
  143. package/dist/node_modules/d3-shape/src/curve/monotone.js.map +1 -1
  144. package/dist/node_modules/d3-shape/src/curve/natural.js.map +1 -1
  145. package/dist/node_modules/d3-shape/src/curve/step.js.map +1 -1
  146. package/dist/node_modules/d3-shape/src/line.js.map +1 -1
  147. package/dist/node_modules/d3-shape/src/noop.js.map +1 -1
  148. package/dist/node_modules/d3-shape/src/offset/expand.js.map +1 -1
  149. package/dist/node_modules/d3-shape/src/offset/none.js.map +1 -1
  150. package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +1 -1
  151. package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +1 -1
  152. package/dist/node_modules/d3-shape/src/order/none.js.map +1 -1
  153. package/dist/node_modules/d3-shape/src/path.js.map +1 -1
  154. package/dist/node_modules/d3-shape/src/point.js.map +1 -1
  155. package/dist/node_modules/d3-shape/src/stack.js.map +1 -1
  156. package/dist/node_modules/d3-shape/src/symbol/circle.js.map +1 -1
  157. package/dist/node_modules/d3-shape/src/symbol/cross.js.map +1 -1
  158. package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +1 -1
  159. package/dist/node_modules/d3-shape/src/symbol/square.js.map +1 -1
  160. package/dist/node_modules/d3-shape/src/symbol/star.js.map +1 -1
  161. package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +1 -1
  162. package/dist/node_modules/d3-shape/src/symbol/wye.js.map +1 -1
  163. package/dist/node_modules/d3-shape/src/symbol.js.map +1 -1
  164. package/dist/node_modules/d3-time/src/day.js.map +1 -1
  165. package/dist/node_modules/d3-time/src/hour.js.map +1 -1
  166. package/dist/node_modules/d3-time/src/interval.js.map +1 -1
  167. package/dist/node_modules/d3-time/src/millisecond.js.map +1 -1
  168. package/dist/node_modules/d3-time/src/minute.js.map +1 -1
  169. package/dist/node_modules/d3-time/src/month.js.map +1 -1
  170. package/dist/node_modules/d3-time/src/second.js.map +1 -1
  171. package/dist/node_modules/d3-time/src/ticks.js.map +1 -1
  172. package/dist/node_modules/d3-time/src/week.js.map +1 -1
  173. package/dist/node_modules/d3-time/src/year.js.map +1 -1
  174. package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +1 -1
  175. package/dist/node_modules/d3-time-format/src/locale.js.map +1 -1
  176. package/dist/node_modules/decimal.js-light/decimal.js.map +1 -1
  177. package/dist/node_modules/eventemitter3/index.js.map +1 -1
  178. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  179. package/dist/node_modules/internmap/src/index.js.map +1 -1
  180. package/dist/node_modules/lodash/_DataView.js.map +1 -1
  181. package/dist/node_modules/lodash/_Hash.js.map +1 -1
  182. package/dist/node_modules/lodash/_ListCache.js.map +1 -1
  183. package/dist/node_modules/lodash/_Map.js.map +1 -1
  184. package/dist/node_modules/lodash/_MapCache.js.map +1 -1
  185. package/dist/node_modules/lodash/_Promise.js.map +1 -1
  186. package/dist/node_modules/lodash/_Set.js.map +1 -1
  187. package/dist/node_modules/lodash/_SetCache.js.map +1 -1
  188. package/dist/node_modules/lodash/_Stack.js +2 -1
  189. package/dist/node_modules/lodash/_Stack.js.map +1 -1
  190. package/dist/node_modules/lodash/_Symbol.js.map +1 -1
  191. package/dist/node_modules/lodash/_Uint8Array.js.map +1 -1
  192. package/dist/node_modules/lodash/_WeakMap.js.map +1 -1
  193. package/dist/node_modules/lodash/_apply.js.map +1 -1
  194. package/dist/node_modules/lodash/_arrayEvery.js.map +1 -1
  195. package/dist/node_modules/lodash/_arrayFilter.js.map +1 -1
  196. package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -1
  197. package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -1
  198. package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -1
  199. package/dist/node_modules/lodash/_arrayMap.js.map +1 -1
  200. package/dist/node_modules/lodash/_arrayPush.js.map +1 -1
  201. package/dist/node_modules/lodash/_arraySome.js.map +1 -1
  202. package/dist/node_modules/lodash/_asciiToArray.js.map +1 -1
  203. package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -1
  204. package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -1
  205. package/dist/node_modules/lodash/_baseEach.js.map +1 -1
  206. package/dist/node_modules/lodash/_baseEvery.js.map +1 -1
  207. package/dist/node_modules/lodash/_baseExtremum.js.map +1 -1
  208. package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -1
  209. package/dist/node_modules/lodash/_baseFlatten.js.map +1 -1
  210. package/dist/node_modules/lodash/_baseFor.js.map +1 -1
  211. package/dist/node_modules/lodash/_baseForOwn.js.map +1 -1
  212. package/dist/node_modules/lodash/_baseGet.js.map +1 -1
  213. package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -1
  214. package/dist/node_modules/lodash/_baseGetTag.js.map +1 -1
  215. package/dist/node_modules/lodash/_baseGt.js.map +1 -1
  216. package/dist/node_modules/lodash/_baseHasIn.js.map +1 -1
  217. package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -1
  218. package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -1
  219. package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -1
  220. package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -1
  221. package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -1
  222. package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -1
  223. package/dist/node_modules/lodash/_baseIsNative.js.map +1 -1
  224. package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -1
  225. package/dist/node_modules/lodash/_baseIteratee.js.map +1 -1
  226. package/dist/node_modules/lodash/_baseKeys.js.map +1 -1
  227. package/dist/node_modules/lodash/_baseLt.js.map +1 -1
  228. package/dist/node_modules/lodash/_baseMap.js.map +1 -1
  229. package/dist/node_modules/lodash/_baseMatches.js.map +1 -1
  230. package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -1
  231. package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -1
  232. package/dist/node_modules/lodash/_baseProperty.js.map +1 -1
  233. package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -1
  234. package/dist/node_modules/lodash/_baseRange.js.map +1 -1
  235. package/dist/node_modules/lodash/_baseRest.js.map +1 -1
  236. package/dist/node_modules/lodash/_baseSetToString.js.map +1 -1
  237. package/dist/node_modules/lodash/_baseSlice.js.map +1 -1
  238. package/dist/node_modules/lodash/_baseSome.js.map +1 -1
  239. package/dist/node_modules/lodash/_baseSortBy.js.map +1 -1
  240. package/dist/node_modules/lodash/_baseTimes.js.map +1 -1
  241. package/dist/node_modules/lodash/_baseToString.js.map +1 -1
  242. package/dist/node_modules/lodash/_baseTrim.js.map +1 -1
  243. package/dist/node_modules/lodash/_baseUnary.js.map +1 -1
  244. package/dist/node_modules/lodash/_baseUniq.js.map +1 -1
  245. package/dist/node_modules/lodash/_cacheHas.js.map +1 -1
  246. package/dist/node_modules/lodash/_castPath.js.map +1 -1
  247. package/dist/node_modules/lodash/_castSlice.js.map +1 -1
  248. package/dist/node_modules/lodash/_compareAscending.js.map +1 -1
  249. package/dist/node_modules/lodash/_compareMultiple.js.map +1 -1
  250. package/dist/node_modules/lodash/_coreJsData.js.map +1 -1
  251. package/dist/node_modules/lodash/_createBaseEach.js.map +1 -1
  252. package/dist/node_modules/lodash/_createBaseFor.js.map +1 -1
  253. package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -1
  254. package/dist/node_modules/lodash/_createFind.js.map +1 -1
  255. package/dist/node_modules/lodash/_createRange.js.map +1 -1
  256. package/dist/node_modules/lodash/_createSet.js.map +1 -1
  257. package/dist/node_modules/lodash/_defineProperty.js.map +1 -1
  258. package/dist/node_modules/lodash/_equalArrays.js.map +1 -1
  259. package/dist/node_modules/lodash/_equalByTag.js.map +1 -1
  260. package/dist/node_modules/lodash/_equalObjects.js.map +1 -1
  261. package/dist/node_modules/lodash/_freeGlobal.js.map +1 -1
  262. package/dist/node_modules/lodash/_getAllKeys.js.map +1 -1
  263. package/dist/node_modules/lodash/_getMapData.js.map +1 -1
  264. package/dist/node_modules/lodash/_getMatchData.js.map +1 -1
  265. package/dist/node_modules/lodash/_getNative.js.map +1 -1
  266. package/dist/node_modules/lodash/_getPrototype.js.map +1 -1
  267. package/dist/node_modules/lodash/_getRawTag.js.map +1 -1
  268. package/dist/node_modules/lodash/_getSymbols.js.map +1 -1
  269. package/dist/node_modules/lodash/_getTag.js.map +1 -1
  270. package/dist/node_modules/lodash/_getValue.js.map +1 -1
  271. package/dist/node_modules/lodash/_hasPath.js.map +1 -1
  272. package/dist/node_modules/lodash/_hasUnicode.js.map +1 -1
  273. package/dist/node_modules/lodash/_hashClear.js.map +1 -1
  274. package/dist/node_modules/lodash/_hashDelete.js.map +1 -1
  275. package/dist/node_modules/lodash/_hashGet.js.map +1 -1
  276. package/dist/node_modules/lodash/_hashHas.js.map +1 -1
  277. package/dist/node_modules/lodash/_hashSet.js.map +1 -1
  278. package/dist/node_modules/lodash/_isFlattenable.js.map +1 -1
  279. package/dist/node_modules/lodash/_isIndex.js.map +1 -1
  280. package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -1
  281. package/dist/node_modules/lodash/_isKey.js.map +1 -1
  282. package/dist/node_modules/lodash/_isKeyable.js.map +1 -1
  283. package/dist/node_modules/lodash/_isMasked.js.map +1 -1
  284. package/dist/node_modules/lodash/_isPrototype.js.map +1 -1
  285. package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -1
  286. package/dist/node_modules/lodash/_listCacheClear.js.map +1 -1
  287. package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -1
  288. package/dist/node_modules/lodash/_listCacheGet.js.map +1 -1
  289. package/dist/node_modules/lodash/_listCacheHas.js.map +1 -1
  290. package/dist/node_modules/lodash/_listCacheSet.js.map +1 -1
  291. package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -1
  292. package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -1
  293. package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -1
  294. package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -1
  295. package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -1
  296. package/dist/node_modules/lodash/_mapToArray.js.map +1 -1
  297. package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -1
  298. package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -1
  299. package/dist/node_modules/lodash/_nativeCreate.js.map +1 -1
  300. package/dist/node_modules/lodash/_nativeKeys.js.map +1 -1
  301. package/dist/node_modules/lodash/_nodeUtil.js.map +1 -1
  302. package/dist/node_modules/lodash/_objectToString.js.map +1 -1
  303. package/dist/node_modules/lodash/_overArg.js.map +1 -1
  304. package/dist/node_modules/lodash/_overRest.js.map +1 -1
  305. package/dist/node_modules/lodash/_root.js.map +1 -1
  306. package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -1
  307. package/dist/node_modules/lodash/_setCacheHas.js.map +1 -1
  308. package/dist/node_modules/lodash/_setToArray.js.map +1 -1
  309. package/dist/node_modules/lodash/_setToString.js.map +1 -1
  310. package/dist/node_modules/lodash/_shortOut.js.map +1 -1
  311. package/dist/node_modules/lodash/_stackClear.js.map +1 -1
  312. package/dist/node_modules/lodash/_stackDelete.js.map +1 -1
  313. package/dist/node_modules/lodash/_stackGet.js.map +1 -1
  314. package/dist/node_modules/lodash/_stackHas.js.map +1 -1
  315. package/dist/node_modules/lodash/_stackSet.js.map +1 -1
  316. package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -1
  317. package/dist/node_modules/lodash/_stringToArray.js.map +1 -1
  318. package/dist/node_modules/lodash/_stringToPath.js.map +1 -1
  319. package/dist/node_modules/lodash/_toKey.js.map +1 -1
  320. package/dist/node_modules/lodash/_toSource.js.map +1 -1
  321. package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -1
  322. package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -1
  323. package/dist/node_modules/lodash/constant.js.map +1 -1
  324. package/dist/node_modules/lodash/debounce.js.map +1 -1
  325. package/dist/node_modules/lodash/eq.js.map +1 -1
  326. package/dist/node_modules/lodash/every.js.map +1 -1
  327. package/dist/node_modules/lodash/find.js.map +1 -1
  328. package/dist/node_modules/lodash/findIndex.js.map +1 -1
  329. package/dist/node_modules/lodash/flatMap.js.map +1 -1
  330. package/dist/node_modules/lodash/get.js.map +1 -1
  331. package/dist/node_modules/lodash/hasIn.js.map +1 -1
  332. package/dist/node_modules/lodash/identity.js.map +1 -1
  333. package/dist/node_modules/lodash/isArguments.js.map +1 -1
  334. package/dist/node_modules/lodash/isArray.js.map +1 -1
  335. package/dist/node_modules/lodash/isArrayLike.js.map +1 -1
  336. package/dist/node_modules/lodash/isBoolean.js.map +1 -1
  337. package/dist/node_modules/lodash/isBuffer.js.map +1 -1
  338. package/dist/node_modules/lodash/isEqual.js.map +1 -1
  339. package/dist/node_modules/lodash/isFunction.js.map +1 -1
  340. package/dist/node_modules/lodash/isLength.js.map +1 -1
  341. package/dist/node_modules/lodash/isNaN.js.map +1 -1
  342. package/dist/node_modules/lodash/isNil.js.map +1 -1
  343. package/dist/node_modules/lodash/isNumber.js.map +1 -1
  344. package/dist/node_modules/lodash/isObject.js.map +1 -1
  345. package/dist/node_modules/lodash/isObjectLike.js.map +1 -1
  346. package/dist/node_modules/lodash/isPlainObject.js.map +1 -1
  347. package/dist/node_modules/lodash/isString.js.map +1 -1
  348. package/dist/node_modules/lodash/isSymbol.js.map +1 -1
  349. package/dist/node_modules/lodash/isTypedArray.js.map +1 -1
  350. package/dist/node_modules/lodash/keys.js.map +1 -1
  351. package/dist/node_modules/lodash/last.js.map +1 -1
  352. package/dist/node_modules/lodash/map.js.map +1 -1
  353. package/dist/node_modules/lodash/mapValues.js.map +1 -1
  354. package/dist/node_modules/lodash/max.js.map +1 -1
  355. package/dist/node_modules/lodash/maxBy.js.map +1 -1
  356. package/dist/node_modules/lodash/memoize.js.map +1 -1
  357. package/dist/node_modules/lodash/min.js.map +1 -1
  358. package/dist/node_modules/lodash/minBy.js.map +1 -1
  359. package/dist/node_modules/lodash/noop.js.map +1 -1
  360. package/dist/node_modules/lodash/now.js.map +1 -1
  361. package/dist/node_modules/lodash/property.js.map +1 -1
  362. package/dist/node_modules/lodash/range.js.map +1 -1
  363. package/dist/node_modules/lodash/some.js.map +1 -1
  364. package/dist/node_modules/lodash/sortBy.js.map +1 -1
  365. package/dist/node_modules/lodash/stubArray.js.map +1 -1
  366. package/dist/node_modules/lodash/stubFalse.js.map +1 -1
  367. package/dist/node_modules/lodash/throttle.js.map +1 -1
  368. package/dist/node_modules/lodash/toFinite.js.map +1 -1
  369. package/dist/node_modules/lodash/toInteger.js.map +1 -1
  370. package/dist/node_modules/lodash/toNumber.js.map +1 -1
  371. package/dist/node_modules/lodash/toString.js.map +1 -1
  372. package/dist/node_modules/lodash/uniqBy.js.map +1 -1
  373. package/dist/node_modules/lodash/upperFirst.js.map +1 -1
  374. package/dist/node_modules/object-assign/index.js.map +1 -1
  375. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
  376. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
  377. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  378. package/dist/node_modules/prop-types/index.js.map +1 -1
  379. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
  380. package/dist/node_modules/prop-types/lib/has.js.map +1 -1
  381. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  382. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  383. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
  384. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  385. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  386. package/dist/node_modules/react-is/index.js.map +1 -1
  387. package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
  388. package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -1
  389. package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -1
  390. package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -1
  391. package/dist/node_modules/react-smooth/es6/easing.js.map +1 -1
  392. package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -1
  393. package/dist/node_modules/react-smooth/es6/util.js.map +1 -1
  394. package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
  395. package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -1
  396. package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
  397. package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -1
  398. package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
  399. package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
  400. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
  401. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -1
  402. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
  403. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -1
  404. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
  405. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -1
  406. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
  407. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -1
  408. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
  409. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -1
  410. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
  411. package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -1
  412. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
  413. package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -1
  414. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -1
  415. package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -1
  416. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
  417. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -1
  418. package/dist/node_modules/recharts/es6/chart/AreaChart.js.map +1 -1
  419. package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -1
  420. package/dist/node_modules/recharts/es6/chart/PieChart.js.map +1 -1
  421. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
  422. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -1
  423. package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -1
  424. package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
  425. package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -1
  426. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
  427. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -1
  428. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
  429. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -1
  430. package/dist/node_modules/recharts/es6/component/Label.js +14 -14
  431. package/dist/node_modules/recharts/es6/component/Label.js.map +1 -1
  432. package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
  433. package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -1
  434. package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
  435. package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -1
  436. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
  437. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -1
  438. package/dist/node_modules/recharts/es6/component/Text.js +2 -2
  439. package/dist/node_modules/recharts/es6/component/Text.js.map +1 -1
  440. package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
  441. package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -1
  442. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
  443. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -1
  444. package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
  445. package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -1
  446. package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
  447. package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -1
  448. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
  449. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -1
  450. package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
  451. package/dist/node_modules/recharts/es6/polar/Pie.js.map +1 -1
  452. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
  453. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js.map +1 -1
  454. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
  455. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js.map +1 -1
  456. package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
  457. package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -1
  458. package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
  459. package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
  460. package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
  461. package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -1
  462. package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
  463. package/dist/node_modules/recharts/es6/shape/Polygon.js.map +1 -1
  464. package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
  465. package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -1
  466. package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
  467. package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -1
  468. package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
  469. package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
  470. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
  471. package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -1
  472. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
  473. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -1
  474. package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
  475. package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -1
  476. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
  477. package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -1
  478. package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
  479. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -1
  480. package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -1
  481. package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
  482. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -1
  483. package/dist/node_modules/recharts/es6/util/Events.js.map +1 -1
  484. package/dist/node_modules/recharts/es6/util/Global.js.map +1 -1
  485. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -1
  486. package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -1
  487. package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
  488. package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -1
  489. package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
  490. package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
  491. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
  492. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -1
  493. package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -1
  494. package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -1
  495. package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -1
  496. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -1
  497. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -1
  498. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -1
  499. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -1
  500. package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -1
  501. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -1
  502. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -1
  503. package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -1
  504. package/dist/node_modules/recharts/es6/util/types.js +1 -1
  505. package/dist/node_modules/recharts/es6/util/types.js.map +1 -1
  506. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -1
  507. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -1
  508. package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -1
  509. package/dist/node_modules/sonner/dist/index.js.map +1 -1
  510. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1 -1
  511. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  512. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -1
  513. package/dist/stories/LoadMore.stories.d.ts +0 -1
  514. package/package.json +15 -7
@@ -5,14 +5,14 @@ import { ConfirmDialog as ee } from "../components/ConfirmDialog.js";
5
5
  import { DonutChart as d, FadeIn as f, GlassCard as p, LifecycleStepper as m, StatTile as h } from "../components/viz.js";
6
6
  import { SubjectPicker as g, parseSubject as _ } from "../components/pickers.js";
7
7
  import "../components/index.js";
8
- import { EmptyState as te, ErrorState as ne, LoadingState as re, SectionShell as ie, formatDate as v, statusBadgeVariant as y } from "./_shared.js";
9
- import { useMemo as b, useState as x } from "react";
10
- import { AlertTriangle as S, BellRing as C, CheckCircle2 as w, Info as ae, Lightbulb as T, MoreHorizontal as E, Plus as oe, ShieldAlert as se, XCircle as D } from "lucide-react";
11
- import { useI18n as ce } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
- import { Fragment as le, jsx as O, jsxs as k } from "react/jsx-runtime";
13
- import { Badge as A, Button as j, Card as ue, CardContent as de, CardDescription as fe, CardHeader as pe, CardTitle as me, Dialog as he, DialogContent as ge, DialogDescription as M, DialogFooter as N, DialogHeader as P, DialogTitle as F, DropdownMenu as _e, DropdownMenuContent as I, DropdownMenuItem as L, DropdownMenuSeparator as R, DropdownMenuTrigger as ve, Input as z, Label as B, Select as V, SelectContent as H, SelectItem as U, SelectTrigger as W, SelectValue as G, Textarea as K } from "@burdenoff/fe-libs/ui";
8
+ import { EmptyState as v, ErrorState as te, LoadingState as ne, MetricGrid as y, SectionShell as re, formatDate as b, readEngineMetrics as x, statusBadgeVariant as S } from "./_shared.js";
9
+ import { useMemo as C, useState as w } from "react";
10
+ import { AlertTriangle as T, BellRing as ie, CheckCircle2 as E, Info as ae, Lightbulb as D, MoreHorizontal as oe, Plus as se, ShieldAlert as ce, XCircle as O } from "lucide-react";
11
+ import { useI18n as le } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
+ import { Fragment as ue, jsx as k, jsxs as A } from "react/jsx-runtime";
13
+ import { Badge as j, Button as M, Card as de, CardContent as fe, CardDescription as pe, CardHeader as me, CardTitle as he, Dialog as N, DialogContent as P, DialogDescription as F, DialogFooter as I, DialogHeader as ge, DialogTitle as L, DropdownMenu as R, DropdownMenuContent as z, DropdownMenuItem as B, DropdownMenuSeparator as _e, DropdownMenuTrigger as V, Input as H, Label as U, Select as W, SelectContent as G, SelectItem as K, SelectTrigger as q, SelectValue as J, Textarea as Y } from "@burdenoff/fe-libs/ui";
14
14
  //#region src/brainyrich/pages/AiAssistantPage.tsx
15
- var ye = [
15
+ var ve = [
16
16
  "REBALANCE_DUE",
17
17
  "DRIFT",
18
18
  "CONCENTRATION_RISK",
@@ -20,37 +20,37 @@ var ye = [
20
20
  "FEE_ANOMALY",
21
21
  "TAX_OPPORTUNITY",
22
22
  "GOAL_AT_RISK"
23
- ], q = [
23
+ ], X = [
24
24
  "INFO",
25
25
  "LOW",
26
26
  "MEDIUM",
27
27
  "HIGH",
28
28
  "CRITICAL"
29
- ], be = [
29
+ ], ye = [
30
30
  "OPEN",
31
31
  "ACKNOWLEDGED",
32
32
  "RESOLVED",
33
33
  "DISMISSED"
34
- ], J = "__all__";
35
- function Y(e) {
34
+ ], Z = "__all__";
35
+ function Q(e) {
36
36
  return e.toLowerCase().split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
37
37
  }
38
- function X(e) {
38
+ function be(e) {
39
39
  switch (e) {
40
40
  case "CRITICAL": return {
41
- icon: se,
41
+ icon: ce,
42
42
  tone: "text-status-error-text"
43
43
  };
44
44
  case "HIGH": return {
45
- icon: S,
45
+ icon: T,
46
46
  tone: "text-status-error-text"
47
47
  };
48
48
  case "MEDIUM": return {
49
- icon: C,
49
+ icon: ie,
50
50
  tone: "text-status-warning-text"
51
51
  };
52
52
  case "LOW": return {
53
- icon: T,
53
+ icon: D,
54
54
  tone: "text-status-warning-text"
55
55
  };
56
56
  default: return {
@@ -68,12 +68,12 @@ function xe(e) {
68
68
  default: return "info";
69
69
  }
70
70
  }
71
- var Z = [
71
+ var Se = [
72
72
  "Open",
73
73
  "Acknowledged",
74
74
  "Resolved"
75
75
  ];
76
- function Se() {
76
+ function Ce() {
77
77
  return {
78
78
  title: "",
79
79
  type: "DRIFT",
@@ -84,403 +84,403 @@ function Se() {
84
84
  ownerId: ""
85
85
  };
86
86
  }
87
- function Ce() {
88
- let { t: ee } = ce(), m = (t, n, r) => e(ee, t, n, r), [g, v] = x(J), [y, S] = x(J), [T, E] = x(J), { items: D, hasMore: A, loadMore: fe, isLoading: pe, isFetchingNextPage: me, isError: he, refetch: ge } = s({
89
- ...g === J ? {} : { severity: g },
90
- ...y === J ? {} : { status: y }
91
- }), M = t(), N = c(), P = a(), F = o(), _e = b(() => {
87
+ function $() {
88
+ let { t: ee } = le(), m = (t, n, r) => e(ee, t, n, r), [g, y] = w(Z), [b, x] = w(Z), [S, T] = w(Z), { items: D, hasMore: oe, loadMore: O, isLoading: j, isFetchingNextPage: pe, isError: me, refetch: he } = s({
89
+ ...g === Z ? {} : { severity: g },
90
+ ...b === Z ? {} : { status: b }
91
+ }), N = t(), P = c(), F = a(), I = o(), ge = C(() => {
92
92
  let e = /* @__PURE__ */ new Map();
93
- for (let t of M.data) e.set(t.id, t.name);
94
93
  for (let t of N.data) e.set(t.id, t.name);
95
94
  for (let t of P.data) e.set(t.id, t.name);
96
95
  for (let t of F.data) e.set(t.id, t.name);
96
+ for (let t of I.data) e.set(t.id, t.name);
97
97
  return e;
98
98
  }, [
99
- M.data,
100
99
  N.data,
101
100
  P.data,
102
- F.data
103
- ]), I = n(), L = i(), R = l(), ve = r(), [z, K] = x(!1), [X, Z] = x(Se), Ce = (e, t) => Z((n) => ({
101
+ F.data,
102
+ I.data
103
+ ]), L = n(), R = i(), z = l(), B = r(), [_e, V] = w(!1), [H, Y] = w(Ce), be = (e, t) => Y((n) => ({
104
104
  ...n,
105
105
  [e]: t
106
- })), Ee = b(() => T === J ? D : D.filter((e) => e.type === T), [D, T]), $ = b(() => ({
106
+ })), Se = C(() => S === Z ? D : D.filter((e) => e.type === S), [D, S]), $ = C(() => ({
107
107
  open: D.filter((e) => e.status === "OPEN").length,
108
108
  critical: D.filter((e) => e.severity === "CRITICAL").length,
109
109
  urgent: D.filter((e) => e.severity === "HIGH" || e.severity === "CRITICAL").length,
110
110
  resolved: D.filter((e) => e.status === "RESOLVED").length
111
- }), [D]), De = b(() => q.map((e) => ({
112
- label: Y(e),
111
+ }), [D]), De = C(() => X.map((e) => ({
112
+ label: Q(e),
113
113
  value: D.filter((t) => t.severity === e).length,
114
114
  tone: xe(e)
115
- })).filter((e) => e.value > 0), [D]), Oe = b(() => {
116
- if (!X.metrics.trim()) return !0;
115
+ })).filter((e) => e.value > 0), [D]), Oe = C(() => {
116
+ if (!H.metrics.trim()) return !0;
117
117
  try {
118
- return JSON.parse(X.metrics), !0;
118
+ return JSON.parse(H.metrics), !0;
119
119
  } catch {
120
120
  return !1;
121
121
  }
122
- }, [X.metrics]), ke = X.title.trim().length > 0 && _(X.subject) !== null && Oe, Ae = () => {
123
- Z(Se()), K(!0);
122
+ }, [H.metrics]), ke = H.title.trim().length > 0 && _(H.subject) !== null && Oe, Ae = () => {
123
+ Y(Ce()), V(!0);
124
124
  }, je = () => {
125
125
  if (!ke) return;
126
- let e = _(X.subject);
126
+ let e = _(H.subject);
127
127
  if (!e) return;
128
128
  let t;
129
- if (X.metrics.trim()) try {
130
- t = JSON.parse(X.metrics);
129
+ if (H.metrics.trim()) try {
130
+ t = JSON.parse(H.metrics);
131
131
  } catch {
132
132
  return;
133
133
  }
134
134
  let n = {
135
- title: X.title.trim(),
136
- type: X.type,
137
- severity: X.severity,
135
+ title: H.title.trim(),
136
+ type: H.type,
137
+ severity: H.severity,
138
138
  subjectType: e.subjectType,
139
139
  subjectId: e.subjectId,
140
- detail: X.detail.trim() || null,
140
+ detail: H.detail.trim() || null,
141
141
  ...t ? { metrics: t } : {},
142
- ...X.ownerId.trim() ? { ownerId: X.ownerId.trim() } : {}
142
+ ...H.ownerId.trim() ? { ownerId: H.ownerId.trim() } : {}
143
143
  };
144
- ve.mutate(n, { onSuccess: () => K(!1) });
145
- }, Me = g !== J || y !== J || T !== J;
146
- return /* @__PURE__ */ k(le, { children: [/* @__PURE__ */ O(ie, {
144
+ B.mutate(n, { onSuccess: () => V(!1) });
145
+ }, Me = g !== Z || b !== Z || S !== Z;
146
+ return /* @__PURE__ */ A(ue, { children: [/* @__PURE__ */ k(re, {
147
147
  title: m("brainyrich.insights.title", "Insights"),
148
148
  description: m("brainyrich.insights.description", "Advisory insights across portfolios, accounts and goals — triage, acknowledge and resolve."),
149
149
  badges: [m("brainyrich.insights.badges.advisory", "Advisory")],
150
150
  actionLabel: m("brainyrich.insights.actions.create", "New insight"),
151
151
  onAction: Ae,
152
- children: pe ? /* @__PURE__ */ O(re, { rows: 4 }) : he ? /* @__PURE__ */ O(ne, {
152
+ children: j ? /* @__PURE__ */ k(ne, { rows: 4 }) : me ? /* @__PURE__ */ k(te, {
153
153
  title: m("brainyrich.insights.error.title", "Could not load insights"),
154
154
  description: m("brainyrich.insights.error.description", "We could not reach the insights service. Please try again."),
155
- onRetry: () => ge()
156
- }) : /* @__PURE__ */ k(le, { children: [
157
- /* @__PURE__ */ k(f, {
155
+ onRetry: () => he()
156
+ }) : /* @__PURE__ */ A(ue, { children: [
157
+ /* @__PURE__ */ A(f, {
158
158
  className: "grid gap-4 lg:grid-cols-[minmax(0,1.55fr)_minmax(0,1fr)]",
159
- children: [/* @__PURE__ */ k("div", {
159
+ children: [/* @__PURE__ */ A("div", {
160
160
  className: "grid grid-cols-2 gap-4 sm:grid-cols-4 lg:grid-cols-2 xl:grid-cols-4",
161
161
  children: [
162
- /* @__PURE__ */ O(h, {
162
+ /* @__PURE__ */ k(h, {
163
163
  label: m("brainyrich.insights.metrics.total", "Signals"),
164
164
  value: String(D.length),
165
165
  glow: !0,
166
- icon: /* @__PURE__ */ O(C, {
166
+ icon: /* @__PURE__ */ k(ie, {
167
167
  className: "size-4",
168
168
  "aria-hidden": "true"
169
169
  })
170
170
  }),
171
- /* @__PURE__ */ O(h, {
171
+ /* @__PURE__ */ k(h, {
172
172
  label: m("brainyrich.insights.metrics.open", "Open"),
173
173
  value: String($.open),
174
- icon: /* @__PURE__ */ O(ae, {
174
+ icon: /* @__PURE__ */ k(ae, {
175
175
  className: "size-4",
176
176
  "aria-hidden": "true"
177
177
  })
178
178
  }),
179
- /* @__PURE__ */ O(h, {
179
+ /* @__PURE__ */ k(h, {
180
180
  label: m("brainyrich.insights.metrics.critical", "Critical"),
181
181
  value: String($.critical),
182
182
  deltaTone: $.critical > 0 ? "negative" : "positive",
183
- icon: /* @__PURE__ */ O(se, {
183
+ icon: /* @__PURE__ */ k(ce, {
184
184
  className: "size-4",
185
185
  "aria-hidden": "true"
186
186
  })
187
187
  }),
188
- /* @__PURE__ */ O(h, {
188
+ /* @__PURE__ */ k(h, {
189
189
  label: m("brainyrich.insights.metrics.resolved", "Resolved"),
190
190
  value: String($.resolved),
191
191
  deltaTone: "positive",
192
- icon: /* @__PURE__ */ O(w, {
192
+ icon: /* @__PURE__ */ k(E, {
193
193
  className: "size-4",
194
194
  "aria-hidden": "true"
195
195
  })
196
196
  })
197
197
  ]
198
- }), /* @__PURE__ */ k(p, {
198
+ }), /* @__PURE__ */ A(p, {
199
199
  className: "flex min-w-0 flex-col p-5",
200
200
  children: [
201
- /* @__PURE__ */ O("p", {
201
+ /* @__PURE__ */ k("p", {
202
202
  className: "text-sm font-medium text-text-primary",
203
203
  children: m("brainyrich.insights.hero.severityMix", "Severity mix")
204
204
  }),
205
- /* @__PURE__ */ O("p", {
205
+ /* @__PURE__ */ k("p", {
206
206
  className: "text-xs text-text-secondary",
207
207
  children: m("brainyrich.insights.hero.severityMixHint", "Distribution across the loaded inbox")
208
208
  }),
209
- De.length > 0 ? /* @__PURE__ */ O("div", {
209
+ De.length > 0 ? /* @__PURE__ */ k("div", {
210
210
  className: "mt-2 min-w-0",
211
- children: /* @__PURE__ */ O(d, {
211
+ children: /* @__PURE__ */ k(d, {
212
212
  data: De,
213
213
  centerLabel: m("brainyrich.insights.hero.center", "Signals"),
214
214
  centerValue: String(D.length),
215
215
  height: 200
216
216
  })
217
- }) : /* @__PURE__ */ O("p", {
217
+ }) : /* @__PURE__ */ k("p", {
218
218
  className: "mt-6 text-sm text-text-secondary",
219
219
  children: m("brainyrich.insights.hero.noData", "No signals to chart yet.")
220
220
  })
221
221
  ]
222
222
  })]
223
223
  }),
224
- /* @__PURE__ */ k(f, {
224
+ /* @__PURE__ */ A(f, {
225
225
  index: 1,
226
226
  className: "flex flex-wrap gap-2",
227
227
  children: [
228
- /* @__PURE__ */ O(Q, {
228
+ /* @__PURE__ */ k(we, {
229
229
  label: m("brainyrich.insights.metrics.open", "Open"),
230
230
  count: $.open,
231
231
  tone: "info",
232
- active: y === "OPEN",
232
+ active: b === "OPEN",
233
233
  onClick: () => {
234
- S(y === "OPEN" ? J : "OPEN"), v(J);
234
+ x(b === "OPEN" ? Z : "OPEN"), y(Z);
235
235
  }
236
236
  }),
237
- /* @__PURE__ */ O(Q, {
237
+ /* @__PURE__ */ k(we, {
238
238
  label: m("brainyrich.insights.metrics.critical", "Critical"),
239
239
  count: $.critical,
240
240
  tone: "error",
241
241
  active: g === "CRITICAL",
242
242
  onClick: () => {
243
- v(g === "CRITICAL" ? J : "CRITICAL"), S(J);
243
+ y(g === "CRITICAL" ? Z : "CRITICAL"), x(Z);
244
244
  }
245
245
  }),
246
- /* @__PURE__ */ O(Q, {
246
+ /* @__PURE__ */ k(we, {
247
247
  label: m("brainyrich.insights.metrics.resolved", "Resolved"),
248
248
  count: $.resolved,
249
249
  tone: "success",
250
- active: y === "RESOLVED",
250
+ active: b === "RESOLVED",
251
251
  onClick: () => {
252
- S(y === "RESOLVED" ? J : "RESOLVED"), v(J);
252
+ x(b === "RESOLVED" ? Z : "RESOLVED"), y(Z);
253
253
  }
254
254
  })
255
255
  ]
256
256
  }),
257
- /* @__PURE__ */ O(ue, { children: /* @__PURE__ */ k(de, {
257
+ /* @__PURE__ */ k(de, { children: /* @__PURE__ */ A(fe, {
258
258
  className: "flex flex-col gap-3 p-4 sm:flex-row sm:items-end",
259
259
  children: [
260
- /* @__PURE__ */ k("div", {
260
+ /* @__PURE__ */ A("div", {
261
261
  className: "w-full space-y-1.5 sm:w-48",
262
- children: [/* @__PURE__ */ O(B, {
262
+ children: [/* @__PURE__ */ k(U, {
263
263
  htmlFor: "insight-filter-severity",
264
264
  children: m("brainyrich.insights.filters.severity", "Severity")
265
- }), /* @__PURE__ */ k(V, {
265
+ }), /* @__PURE__ */ A(W, {
266
266
  value: g,
267
- onValueChange: v,
268
- children: [/* @__PURE__ */ O(W, {
267
+ onValueChange: y,
268
+ children: [/* @__PURE__ */ k(q, {
269
269
  id: "insight-filter-severity",
270
- children: /* @__PURE__ */ O(G, {})
271
- }), /* @__PURE__ */ k(H, { children: [/* @__PURE__ */ O(U, {
272
- value: J,
270
+ children: /* @__PURE__ */ k(J, {})
271
+ }), /* @__PURE__ */ A(G, { children: [/* @__PURE__ */ k(K, {
272
+ value: Z,
273
273
  children: m("brainyrich.insights.filters.all", "All")
274
- }), q.map((e) => /* @__PURE__ */ O(U, {
274
+ }), X.map((e) => /* @__PURE__ */ k(K, {
275
275
  value: e,
276
- children: Y(e)
276
+ children: Q(e)
277
277
  }, e))] })]
278
278
  })]
279
279
  }),
280
- /* @__PURE__ */ k("div", {
280
+ /* @__PURE__ */ A("div", {
281
281
  className: "w-full space-y-1.5 sm:w-48",
282
- children: [/* @__PURE__ */ O(B, {
282
+ children: [/* @__PURE__ */ k(U, {
283
283
  htmlFor: "insight-filter-status",
284
284
  children: m("brainyrich.insights.filters.status", "Status")
285
- }), /* @__PURE__ */ k(V, {
286
- value: y,
287
- onValueChange: S,
288
- children: [/* @__PURE__ */ O(W, {
285
+ }), /* @__PURE__ */ A(W, {
286
+ value: b,
287
+ onValueChange: x,
288
+ children: [/* @__PURE__ */ k(q, {
289
289
  id: "insight-filter-status",
290
- children: /* @__PURE__ */ O(G, {})
291
- }), /* @__PURE__ */ k(H, { children: [/* @__PURE__ */ O(U, {
292
- value: J,
290
+ children: /* @__PURE__ */ k(J, {})
291
+ }), /* @__PURE__ */ A(G, { children: [/* @__PURE__ */ k(K, {
292
+ value: Z,
293
293
  children: m("brainyrich.insights.filters.all", "All")
294
- }), be.map((e) => /* @__PURE__ */ O(U, {
294
+ }), ye.map((e) => /* @__PURE__ */ k(K, {
295
295
  value: e,
296
- children: Y(e)
296
+ children: Q(e)
297
297
  }, e))] })]
298
298
  })]
299
299
  }),
300
- /* @__PURE__ */ k("div", {
300
+ /* @__PURE__ */ A("div", {
301
301
  className: "w-full space-y-1.5 sm:w-56",
302
- children: [/* @__PURE__ */ O(B, {
302
+ children: [/* @__PURE__ */ k(U, {
303
303
  htmlFor: "insight-filter-type",
304
304
  children: m("brainyrich.insights.filters.type", "Type")
305
- }), /* @__PURE__ */ k(V, {
306
- value: T,
307
- onValueChange: E,
308
- children: [/* @__PURE__ */ O(W, {
305
+ }), /* @__PURE__ */ A(W, {
306
+ value: S,
307
+ onValueChange: T,
308
+ children: [/* @__PURE__ */ k(q, {
309
309
  id: "insight-filter-type",
310
- children: /* @__PURE__ */ O(G, {})
311
- }), /* @__PURE__ */ k(H, { children: [/* @__PURE__ */ O(U, {
312
- value: J,
310
+ children: /* @__PURE__ */ k(J, {})
311
+ }), /* @__PURE__ */ A(G, { children: [/* @__PURE__ */ k(K, {
312
+ value: Z,
313
313
  children: m("brainyrich.insights.filters.all", "All")
314
- }), ye.map((e) => /* @__PURE__ */ O(U, {
314
+ }), ve.map((e) => /* @__PURE__ */ k(K, {
315
315
  value: e,
316
- children: Y(e)
316
+ children: Q(e)
317
317
  }, e))] })]
318
318
  })]
319
319
  })
320
320
  ]
321
321
  }) }),
322
- Ee.length === 0 ? /* @__PURE__ */ O(te, {
323
- icon: /* @__PURE__ */ O(C, {
322
+ Se.length === 0 ? /* @__PURE__ */ k(v, {
323
+ icon: /* @__PURE__ */ k(ie, {
324
324
  className: "size-6",
325
325
  "aria-hidden": "true"
326
326
  }),
327
327
  title: Me ? m("brainyrich.insights.empty.filteredTitle", "No matching insights") : m("brainyrich.insights.empty.title", "No advisory insights yet"),
328
328
  description: Me ? m("brainyrich.insights.empty.filteredDescription", "No insights match the selected filters. Adjust or clear them to see more.") : m("brainyrich.insights.empty.description", "Advisory insights flag rebalancing, drift, concentration and other opportunities. Create one to get started."),
329
- action: Me ? /* @__PURE__ */ O(j, {
329
+ action: Me ? /* @__PURE__ */ k(M, {
330
330
  variant: "outline",
331
331
  size: "sm",
332
332
  onClick: () => {
333
- v(J), S(J), E(J);
333
+ y(Z), x(Z), T(Z);
334
334
  },
335
335
  children: m("brainyrich.insights.actions.clearFilters", "Clear filters")
336
- }) : /* @__PURE__ */ k(j, {
336
+ }) : /* @__PURE__ */ A(M, {
337
337
  size: "sm",
338
338
  onClick: Ae,
339
- children: [/* @__PURE__ */ O(oe, {
339
+ children: [/* @__PURE__ */ k(se, {
340
340
  className: "size-4",
341
341
  "aria-hidden": "true"
342
342
  }), m("brainyrich.insights.actions.create", "New insight")]
343
343
  })
344
- }) : /* @__PURE__ */ O("div", {
344
+ }) : /* @__PURE__ */ k("div", {
345
345
  className: "space-y-3",
346
- children: Ee.map((e, t) => /* @__PURE__ */ O(we, {
346
+ children: Se.map((e, t) => /* @__PURE__ */ k(Te, {
347
347
  index: t,
348
348
  insight: e,
349
- subjectName: _e.get(e.subjectId),
349
+ subjectName: ge.get(e.subjectId),
350
350
  translate: m,
351
- onAcknowledge: () => I.mutate(e.id),
352
- onDismiss: () => L.mutate(e.id),
353
- onResolve: () => R.mutate(e.id),
354
- acknowledgePending: I.isPending,
355
- dismissPending: L.isPending,
356
- resolvePending: R.isPending
351
+ onAcknowledge: () => L.mutate(e.id),
352
+ onDismiss: () => R.mutate(e.id),
353
+ onResolve: () => z.mutate(e.id),
354
+ acknowledgePending: L.isPending,
355
+ dismissPending: R.isPending,
356
+ resolvePending: z.isPending
357
357
  }, e.id))
358
358
  }),
359
- /* @__PURE__ */ O(u, {
360
- hasMore: A,
361
- onClick: fe,
362
- loading: me,
359
+ /* @__PURE__ */ k(u, {
360
+ hasMore: oe,
361
+ onClick: O,
362
+ loading: pe,
363
363
  label: m("brainyrich.insights.actions.loadMore", "Load more insights")
364
364
  })
365
365
  ] })
366
- }), /* @__PURE__ */ O(Te, {
367
- open: z,
368
- form: X,
369
- setField: Ce,
366
+ }), /* @__PURE__ */ k(Ee, {
367
+ open: _e,
368
+ form: H,
369
+ setField: be,
370
370
  metricsValid: Oe,
371
371
  valid: ke,
372
- pending: ve.isPending,
372
+ pending: B.isPending,
373
373
  onSubmit: je,
374
- onOpenChange: (e) => K(e),
374
+ onOpenChange: (e) => V(e),
375
375
  translate: m
376
376
  })] });
377
377
  }
378
- function Q({ label: e, count: t, tone: n, active: r, onClick: i }) {
379
- return /* @__PURE__ */ k("button", {
378
+ function we({ label: e, count: t, tone: n, active: r, onClick: i }) {
379
+ return /* @__PURE__ */ A("button", {
380
380
  type: "button",
381
381
  onClick: i,
382
382
  "aria-pressed": r,
383
383
  className: `group inline-flex items-center gap-2 rounded-full border px-3.5 py-1.5 text-sm font-medium transition-colors motion-safe:transition-shadow focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-action-primary-border)] ${r ? "border-[var(--color-action-primary-border)] bg-bg-elevated text-text-primary shadow-[var(--shadow-elevation-1)]" : "border-border-subtle bg-bg-surface text-text-secondary hover:border-[var(--color-action-primary-border)] hover:text-text-primary"}`,
384
384
  children: [
385
- /* @__PURE__ */ O("span", {
385
+ /* @__PURE__ */ k("span", {
386
386
  className: `size-2 rounded-full ${n === "error" ? "bg-status-error-text" : n === "success" ? "bg-status-success-text" : "bg-status-info-text"}`,
387
387
  "aria-hidden": "true"
388
388
  }),
389
389
  e,
390
- /* @__PURE__ */ O("span", {
390
+ /* @__PURE__ */ k("span", {
391
391
  className: "rounded-full bg-bg-sunken px-2 py-0.5 text-xs tabular-nums text-text-primary",
392
392
  children: t
393
393
  })
394
394
  ]
395
395
  });
396
396
  }
397
- function we({ index: e, insight: t, subjectName: n, translate: r, onAcknowledge: i, onDismiss: a, onResolve: o, acknowledgePending: s, dismissPending: c, resolvePending: l }) {
398
- let u = X(t.severity), d = u.icon, p = t.status === "RESOLVED" || t.status === "DISMISSED", h = t.status === "DISMISSED", [g, _] = x(!1);
399
- return /* @__PURE__ */ O(f, {
397
+ function Te({ index: e, insight: t, subjectName: n, translate: r, onAcknowledge: i, onDismiss: a, onResolve: o, acknowledgePending: s, dismissPending: c, resolvePending: l }) {
398
+ let u = be(t.severity), d = u.icon, p = t.status === "RESOLVED" || t.status === "DISMISSED", h = t.status === "DISMISSED", [g, _] = w(!1), v = x(t.metrics);
399
+ return /* @__PURE__ */ k(f, {
400
400
  as: "div",
401
401
  index: e,
402
- children: /* @__PURE__ */ k(ue, {
402
+ children: /* @__PURE__ */ A(de, {
403
403
  className: "overflow-hidden transition-shadow motion-safe:hover:shadow-[var(--shadow-elevation-2)]",
404
404
  children: [
405
- /* @__PURE__ */ O(pe, {
405
+ /* @__PURE__ */ k(me, {
406
406
  className: "pb-3",
407
- children: /* @__PURE__ */ k("div", {
407
+ children: /* @__PURE__ */ A("div", {
408
408
  className: "flex items-start justify-between gap-3",
409
- children: [/* @__PURE__ */ k("div", {
409
+ children: [/* @__PURE__ */ A("div", {
410
410
  className: "flex min-w-0 items-start gap-3",
411
- children: [/* @__PURE__ */ O("span", {
411
+ children: [/* @__PURE__ */ k("span", {
412
412
  className: `mt-0.5 flex size-9 shrink-0 items-center justify-center rounded-full bg-bg-sunken ${u.tone}`,
413
- children: /* @__PURE__ */ O(d, {
413
+ children: /* @__PURE__ */ k(d, {
414
414
  className: "size-5",
415
415
  "aria-hidden": "true"
416
416
  })
417
- }), /* @__PURE__ */ k("div", {
417
+ }), /* @__PURE__ */ A("div", {
418
418
  className: "min-w-0",
419
- children: [/* @__PURE__ */ O(me, {
419
+ children: [/* @__PURE__ */ k(he, {
420
420
  className: "text-base",
421
421
  children: t.title
422
- }), /* @__PURE__ */ k(fe, {
422
+ }), /* @__PURE__ */ A(pe, {
423
423
  className: "mt-1 flex flex-wrap items-center gap-2",
424
424
  children: [
425
- /* @__PURE__ */ O(A, {
425
+ /* @__PURE__ */ k(j, {
426
426
  variant: "outline",
427
- children: Y(t.type)
427
+ children: Q(t.type)
428
428
  }),
429
- /* @__PURE__ */ O(A, {
430
- variant: y(t.severity),
431
- children: /* @__PURE__ */ k("span", {
429
+ /* @__PURE__ */ k(j, {
430
+ variant: S(t.severity),
431
+ children: /* @__PURE__ */ A("span", {
432
432
  className: `inline-flex items-center gap-1 ${u.tone}`,
433
- children: [/* @__PURE__ */ O(d, {
433
+ children: [/* @__PURE__ */ k(d, {
434
434
  className: "size-3",
435
435
  "aria-hidden": "true"
436
- }), Y(t.severity)]
436
+ }), Q(t.severity)]
437
437
  })
438
438
  }),
439
- /* @__PURE__ */ O(A, {
440
- variant: y(t.status),
441
- children: Y(t.status)
439
+ /* @__PURE__ */ k(j, {
440
+ variant: S(t.status),
441
+ children: Q(t.status)
442
442
  })
443
443
  ]
444
444
  })]
445
445
  })]
446
- }), /* @__PURE__ */ k(_e, { children: [/* @__PURE__ */ O(ve, {
446
+ }), /* @__PURE__ */ A(R, { children: [/* @__PURE__ */ k(V, {
447
447
  asChild: !0,
448
- children: /* @__PURE__ */ O(j, {
448
+ children: /* @__PURE__ */ k(M, {
449
449
  variant: "ghost",
450
450
  size: "icon",
451
451
  "aria-label": r("brainyrich.insights.actions.menu", "Insight actions"),
452
- children: /* @__PURE__ */ O(E, {
452
+ children: /* @__PURE__ */ k(oe, {
453
453
  className: "size-4",
454
454
  "aria-hidden": "true"
455
455
  })
456
456
  })
457
- }), /* @__PURE__ */ k(I, {
457
+ }), /* @__PURE__ */ A(z, {
458
458
  align: "end",
459
459
  children: [
460
- /* @__PURE__ */ k(L, {
460
+ /* @__PURE__ */ A(B, {
461
461
  disabled: s || t.status === "ACKNOWLEDGED" || p,
462
462
  onSelect: i,
463
- children: [/* @__PURE__ */ O(w, {
463
+ children: [/* @__PURE__ */ k(E, {
464
464
  className: "size-4",
465
465
  "aria-hidden": "true"
466
466
  }), r("brainyrich.insights.actions.acknowledge", "Acknowledge")]
467
467
  }),
468
- /* @__PURE__ */ k(L, {
468
+ /* @__PURE__ */ A(B, {
469
469
  disabled: l || t.status === "RESOLVED",
470
470
  onSelect: o,
471
- children: [/* @__PURE__ */ O(w, {
471
+ children: [/* @__PURE__ */ k(E, {
472
472
  className: "size-4",
473
473
  "aria-hidden": "true"
474
474
  }), r("brainyrich.insights.actions.resolve", "Resolve")]
475
475
  }),
476
- /* @__PURE__ */ O(R, {}),
477
- /* @__PURE__ */ k(L, {
476
+ /* @__PURE__ */ k(_e, {}),
477
+ /* @__PURE__ */ A(B, {
478
478
  className: "text-status-error-text focus:text-status-error-text",
479
479
  disabled: c || t.status === "DISMISSED",
480
480
  onSelect: (e) => {
481
481
  e.preventDefault(), _(!0);
482
482
  },
483
- children: [/* @__PURE__ */ O(D, {
483
+ children: [/* @__PURE__ */ k(O, {
484
484
  className: "size-4",
485
485
  "aria-hidden": "true"
486
486
  }), r("brainyrich.insights.actions.dismiss", "Dismiss")]
@@ -489,69 +489,90 @@ function we({ index: e, insight: t, subjectName: n, translate: r, onAcknowledge:
489
489
  })] })]
490
490
  })
491
491
  }),
492
- /* @__PURE__ */ k(de, {
492
+ /* @__PURE__ */ A(fe, {
493
493
  className: "space-y-3",
494
494
  children: [
495
- t.detail ? /* @__PURE__ */ O("p", {
495
+ t.detail ? /* @__PURE__ */ k("p", {
496
496
  className: "text-sm text-text-secondary",
497
497
  children: t.detail
498
498
  }) : null,
499
- /* @__PURE__ */ k("dl", {
499
+ v ? /* @__PURE__ */ A("div", {
500
+ className: "space-y-2 rounded-lg border border-border-subtle bg-bg-surface p-3",
501
+ children: [
502
+ /* @__PURE__ */ k("p", {
503
+ className: "text-[11px] font-medium uppercase tracking-wide text-text-secondary",
504
+ children: r("brainyrich.insights.card.rationale", "Rationale")
505
+ }),
506
+ v.formula ? /* @__PURE__ */ k("p", {
507
+ className: "break-words text-xs text-text-secondary",
508
+ children: v.formula
509
+ }) : null,
510
+ /* @__PURE__ */ k(y, { entries: v.entries })
511
+ ]
512
+ }) : null,
513
+ /* @__PURE__ */ A("dl", {
500
514
  className: "grid grid-cols-2 gap-3 rounded-lg bg-bg-sunken p-3 text-sm sm:grid-cols-3",
501
515
  children: [
502
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("dt", {
516
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("dt", {
503
517
  className: "text-xs text-text-secondary",
504
518
  children: r("brainyrich.insights.card.subjectType", "Subject")
505
- }), /* @__PURE__ */ O("dd", {
519
+ }), /* @__PURE__ */ k("dd", {
506
520
  className: "font-medium text-text-primary",
507
- children: Y(t.subjectType)
521
+ children: Q(t.subjectType)
508
522
  })] }),
509
- /* @__PURE__ */ k("div", {
523
+ /* @__PURE__ */ A("div", {
510
524
  className: "min-w-0",
511
- children: [/* @__PURE__ */ O("dt", {
525
+ children: [/* @__PURE__ */ k("dt", {
512
526
  className: "text-xs text-text-secondary",
513
527
  children: r("brainyrich.insights.card.subject", "Reference")
514
- }), /* @__PURE__ */ O("dd", {
528
+ }), /* @__PURE__ */ k("dd", {
515
529
  className: "truncate font-medium text-text-primary",
516
530
  title: n ? `${n} (${t.subjectId})` : t.subjectId,
517
531
  children: n ?? t.subjectId
518
532
  })]
519
533
  }),
520
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("dt", {
534
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("dt", {
521
535
  className: "text-xs text-text-secondary",
522
536
  children: r("brainyrich.insights.card.created", "Created")
523
- }), /* @__PURE__ */ O("dd", {
537
+ }), /* @__PURE__ */ k("dd", {
538
+ className: "font-medium text-text-primary",
539
+ children: b(t.createdAt)
540
+ })] }),
541
+ t.resolvedAt ? /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("dt", {
542
+ className: "text-xs text-text-secondary",
543
+ children: r("brainyrich.insights.card.resolved", "Resolved")
544
+ }), /* @__PURE__ */ k("dd", {
524
545
  className: "font-medium text-text-primary",
525
- children: v(t.createdAt)
526
- })] })
546
+ children: b(t.resolvedAt)
547
+ })] }) : null
527
548
  ]
528
549
  }),
529
- h ? /* @__PURE__ */ k("div", {
550
+ h ? /* @__PURE__ */ A("div", {
530
551
  className: "flex items-center gap-2 rounded-lg bg-bg-sunken px-3 py-2 text-sm text-text-secondary",
531
- children: [/* @__PURE__ */ O(D, {
552
+ children: [/* @__PURE__ */ k(O, {
532
553
  className: "size-4 text-status-error-text",
533
554
  "aria-hidden": "true"
534
555
  }), r("brainyrich.insights.card.dismissed", "Dismissed from active triage")]
535
- }) : /* @__PURE__ */ O(m, {
536
- steps: Z,
537
- current: Y(t.status)
556
+ }) : /* @__PURE__ */ k(m, {
557
+ steps: Se,
558
+ current: Q(t.status)
538
559
  }),
539
- /* @__PURE__ */ k("div", {
560
+ /* @__PURE__ */ A("div", {
540
561
  className: "flex flex-wrap items-center gap-2",
541
- children: [/* @__PURE__ */ k(j, {
562
+ children: [/* @__PURE__ */ A(M, {
542
563
  variant: "outline",
543
564
  size: "sm",
544
565
  disabled: s || t.status === "ACKNOWLEDGED" || p,
545
566
  onClick: i,
546
- children: [/* @__PURE__ */ O(w, {
567
+ children: [/* @__PURE__ */ k(E, {
547
568
  className: "size-4",
548
569
  "aria-hidden": "true"
549
570
  }), r("brainyrich.insights.actions.acknowledge", "Acknowledge")]
550
- }), /* @__PURE__ */ k(j, {
571
+ }), /* @__PURE__ */ A(M, {
551
572
  size: "sm",
552
573
  disabled: l || t.status === "RESOLVED",
553
574
  onClick: o,
554
- children: [/* @__PURE__ */ O(w, {
575
+ children: [/* @__PURE__ */ k(E, {
555
576
  className: "size-4",
556
577
  "aria-hidden": "true"
557
578
  }), r("brainyrich.insights.actions.resolve", "Resolve")]
@@ -559,7 +580,7 @@ function we({ index: e, insight: t, subjectName: n, translate: r, onAcknowledge:
559
580
  })
560
581
  ]
561
582
  }),
562
- /* @__PURE__ */ O(ee, {
583
+ /* @__PURE__ */ k(ee, {
563
584
  open: g,
564
585
  onOpenChange: _,
565
586
  title: r("brainyrich.insights.dismiss.title", "Dismiss this insight?"),
@@ -574,24 +595,24 @@ function we({ index: e, insight: t, subjectName: n, translate: r, onAcknowledge:
574
595
  })
575
596
  });
576
597
  }
577
- function Te({ open: e, form: t, setField: n, metricsValid: r, valid: i, pending: a, onSubmit: o, onOpenChange: s, translate: c }) {
578
- return /* @__PURE__ */ O(he, {
598
+ function Ee({ open: e, form: t, setField: n, metricsValid: r, valid: i, pending: a, onSubmit: o, onOpenChange: s, translate: c }) {
599
+ return /* @__PURE__ */ k(N, {
579
600
  open: e,
580
601
  onOpenChange: s,
581
- children: /* @__PURE__ */ k(ge, {
602
+ children: /* @__PURE__ */ A(P, {
582
603
  className: "max-h-[90vh] overflow-y-auto sm:max-w-lg",
583
- children: [/* @__PURE__ */ k(P, { children: [/* @__PURE__ */ O(F, { children: c("brainyrich.insights.form.createTitle", "New insight") }), /* @__PURE__ */ O(M, { children: c("brainyrich.insights.form.subtitle", "Flag an advisory insight against a portfolio, account, goal or household.") })] }), /* @__PURE__ */ k("form", {
604
+ children: [/* @__PURE__ */ A(ge, { children: [/* @__PURE__ */ k(L, { children: c("brainyrich.insights.form.createTitle", "New insight") }), /* @__PURE__ */ k(F, { children: c("brainyrich.insights.form.subtitle", "Flag an advisory insight against a portfolio, account, goal or household.") })] }), /* @__PURE__ */ A("form", {
584
605
  className: "space-y-4",
585
606
  onSubmit: (e) => {
586
607
  e.preventDefault(), o();
587
608
  },
588
609
  children: [
589
- /* @__PURE__ */ k("div", {
610
+ /* @__PURE__ */ A("div", {
590
611
  className: "space-y-1.5",
591
- children: [/* @__PURE__ */ O(B, {
612
+ children: [/* @__PURE__ */ k(U, {
592
613
  htmlFor: "insight-title",
593
614
  children: c("brainyrich.insights.form.title", "Title")
594
- }), /* @__PURE__ */ O(z, {
615
+ }), /* @__PURE__ */ k(H, {
595
616
  id: "insight-title",
596
617
  value: t.title,
597
618
  onChange: (e) => n("title", e.target.value),
@@ -599,67 +620,67 @@ function Te({ open: e, form: t, setField: n, metricsValid: r, valid: i, pending:
599
620
  required: !0
600
621
  })]
601
622
  }),
602
- /* @__PURE__ */ k("div", {
623
+ /* @__PURE__ */ A("div", {
603
624
  className: "grid grid-cols-2 gap-3",
604
- children: [/* @__PURE__ */ k("div", {
625
+ children: [/* @__PURE__ */ A("div", {
605
626
  className: "space-y-1.5",
606
- children: [/* @__PURE__ */ O(B, {
627
+ children: [/* @__PURE__ */ k(U, {
607
628
  htmlFor: "insight-type",
608
629
  children: c("brainyrich.insights.form.type", "Type")
609
- }), /* @__PURE__ */ k(V, {
630
+ }), /* @__PURE__ */ A(W, {
610
631
  value: t.type,
611
632
  onValueChange: (e) => n("type", e),
612
- children: [/* @__PURE__ */ O(W, {
633
+ children: [/* @__PURE__ */ k(q, {
613
634
  id: "insight-type",
614
- children: /* @__PURE__ */ O(G, {})
615
- }), /* @__PURE__ */ O(H, { children: ye.map((e) => /* @__PURE__ */ O(U, {
635
+ children: /* @__PURE__ */ k(J, {})
636
+ }), /* @__PURE__ */ k(G, { children: ve.map((e) => /* @__PURE__ */ k(K, {
616
637
  value: e,
617
- children: Y(e)
638
+ children: Q(e)
618
639
  }, e)) })]
619
640
  })]
620
- }), /* @__PURE__ */ k("div", {
641
+ }), /* @__PURE__ */ A("div", {
621
642
  className: "space-y-1.5",
622
- children: [/* @__PURE__ */ O(B, {
643
+ children: [/* @__PURE__ */ k(U, {
623
644
  htmlFor: "insight-severity",
624
645
  children: c("brainyrich.insights.form.severity", "Severity")
625
- }), /* @__PURE__ */ k(V, {
646
+ }), /* @__PURE__ */ A(W, {
626
647
  value: t.severity,
627
648
  onValueChange: (e) => n("severity", e),
628
- children: [/* @__PURE__ */ O(W, {
649
+ children: [/* @__PURE__ */ k(q, {
629
650
  id: "insight-severity",
630
- children: /* @__PURE__ */ O(G, {})
631
- }), /* @__PURE__ */ O(H, { children: q.map((e) => /* @__PURE__ */ O(U, {
651
+ children: /* @__PURE__ */ k(J, {})
652
+ }), /* @__PURE__ */ k(G, { children: X.map((e) => /* @__PURE__ */ k(K, {
632
653
  value: e,
633
- children: Y(e)
654
+ children: Q(e)
634
655
  }, e)) })]
635
656
  })]
636
657
  })]
637
658
  }),
638
- /* @__PURE__ */ O(g, {
659
+ /* @__PURE__ */ k(g, {
639
660
  id: "insight-subject",
640
661
  label: c("brainyrich.insights.form.subject", "Subject"),
641
662
  placeholder: c("brainyrich.insights.form.subjectPlaceholder", "Select an account, portfolio, goal or household"),
642
663
  value: t.subject,
643
664
  onChange: (e) => n("subject", e)
644
665
  }),
645
- /* @__PURE__ */ k("div", {
666
+ /* @__PURE__ */ A("div", {
646
667
  className: "space-y-1.5",
647
- children: [/* @__PURE__ */ O(B, {
668
+ children: [/* @__PURE__ */ k(U, {
648
669
  htmlFor: "insight-owner",
649
670
  children: c("brainyrich.insights.form.ownerId", "Owner ID (optional)")
650
- }), /* @__PURE__ */ O(z, {
671
+ }), /* @__PURE__ */ k(H, {
651
672
  id: "insight-owner",
652
673
  value: t.ownerId,
653
674
  onChange: (e) => n("ownerId", e.target.value),
654
675
  placeholder: c("brainyrich.insights.form.ownerIdPlaceholder", "Defaults to the current owner")
655
676
  })]
656
677
  }),
657
- /* @__PURE__ */ k("div", {
678
+ /* @__PURE__ */ A("div", {
658
679
  className: "space-y-1.5",
659
- children: [/* @__PURE__ */ O(B, {
680
+ children: [/* @__PURE__ */ k(U, {
660
681
  htmlFor: "insight-detail",
661
682
  children: c("brainyrich.insights.form.detail", "Detail")
662
- }), /* @__PURE__ */ O(K, {
683
+ }), /* @__PURE__ */ k(Y, {
663
684
  id: "insight-detail",
664
685
  value: t.detail,
665
686
  onChange: (e) => n("detail", e.target.value),
@@ -667,14 +688,14 @@ function Te({ open: e, form: t, setField: n, metricsValid: r, valid: i, pending:
667
688
  placeholder: c("brainyrich.insights.form.detailPlaceholder", "Explain the finding and recommended action.")
668
689
  })]
669
690
  }),
670
- /* @__PURE__ */ k("div", {
691
+ /* @__PURE__ */ A("div", {
671
692
  className: "space-y-1.5",
672
693
  children: [
673
- /* @__PURE__ */ O(B, {
694
+ /* @__PURE__ */ k(U, {
674
695
  htmlFor: "insight-metrics",
675
696
  children: c("brainyrich.insights.form.metrics", "Metrics JSON (optional)")
676
697
  }),
677
- /* @__PURE__ */ O(K, {
698
+ /* @__PURE__ */ k(Y, {
678
699
  id: "insight-metrics",
679
700
  value: t.metrics,
680
701
  onChange: (e) => n("metrics", e.target.value),
@@ -683,22 +704,22 @@ function Te({ open: e, form: t, setField: n, metricsValid: r, valid: i, pending:
683
704
  placeholder: "{ \"driftPct\": 8.2 }",
684
705
  "aria-invalid": !r
685
706
  }),
686
- r ? null : /* @__PURE__ */ k("p", {
707
+ r ? null : /* @__PURE__ */ A("p", {
687
708
  className: "flex items-center gap-1 text-xs text-status-error-text",
688
- children: [/* @__PURE__ */ O(S, {
709
+ children: [/* @__PURE__ */ k(T, {
689
710
  className: "size-3.5",
690
711
  "aria-hidden": "true"
691
712
  }), c("brainyrich.insights.form.metricsInvalid", "Enter valid JSON or leave blank.")]
692
713
  })
693
714
  ]
694
715
  }),
695
- /* @__PURE__ */ k(N, { children: [/* @__PURE__ */ O(j, {
716
+ /* @__PURE__ */ A(I, { children: [/* @__PURE__ */ k(M, {
696
717
  type: "button",
697
718
  variant: "outline",
698
719
  onClick: () => s(!1),
699
720
  disabled: a,
700
721
  children: c("brainyrich.insights.form.cancel", "Cancel")
701
- }), /* @__PURE__ */ O(j, {
722
+ }), /* @__PURE__ */ k(M, {
702
723
  type: "submit",
703
724
  disabled: !i || a,
704
725
  children: a ? c("brainyrich.insights.form.saving", "Saving…") : c("brainyrich.insights.form.create", "Create insight")
@@ -709,6 +730,6 @@ function Te({ open: e, form: t, setField: n, metricsValid: r, valid: i, pending:
709
730
  });
710
731
  }
711
732
  //#endregion
712
- export { Ce as AiAssistantPage };
733
+ export { $ as AiAssistantPage };
713
734
 
714
735
  //# sourceMappingURL=AiAssistantPage.js.map