@burdenoff/microfe-brainyrich 2026.706.4 → 2026.713.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 (112) hide show
  1. package/dist/brainyrich/BrainyRichRoot.d.ts +5 -0
  2. package/dist/brainyrich/BrainyRichRoot.d.ts.map +1 -0
  3. package/dist/brainyrich/BrainyRichRoutes.d.ts +2 -0
  4. package/dist/brainyrich/BrainyRichRoutes.d.ts.map +1 -0
  5. package/dist/brainyrich/BrainyRichRoutes.js +27 -15
  6. package/dist/brainyrich/BrainyRichRoutes.js.map +1 -1
  7. package/dist/brainyrich/components/ActorName.d.ts +26 -0
  8. package/dist/brainyrich/components/ActorName.d.ts.map +1 -0
  9. package/dist/brainyrich/components/ConfirmDialog.d.ts +20 -0
  10. package/dist/brainyrich/components/ConfirmDialog.d.ts.map +1 -0
  11. package/dist/brainyrich/components/LoadMore.d.ts +21 -0
  12. package/dist/brainyrich/components/LoadMore.d.ts.map +1 -0
  13. package/dist/brainyrich/components/index.d.ts +11 -0
  14. package/dist/brainyrich/components/index.d.ts.map +1 -0
  15. package/dist/brainyrich/components/notify.d.ts +33 -0
  16. package/dist/brainyrich/components/notify.d.ts.map +1 -0
  17. package/dist/brainyrich/components/pickers.d.ts +63 -0
  18. package/dist/brainyrich/components/pickers.d.ts.map +1 -0
  19. package/dist/brainyrich/components/reuse/CommentThread.d.ts +35 -0
  20. package/dist/brainyrich/components/reuse/CommentThread.d.ts.map +1 -0
  21. package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts +33 -0
  22. package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts.map +1 -0
  23. package/dist/brainyrich/components/reuse/TagField.d.ts +34 -0
  24. package/dist/brainyrich/components/reuse/TagField.d.ts.map +1 -0
  25. package/dist/brainyrich/components/reuse/transport.d.ts +20 -0
  26. package/dist/brainyrich/components/reuse/transport.d.ts.map +1 -0
  27. package/dist/brainyrich/components/viz.d.ts +129 -0
  28. package/dist/brainyrich/components/viz.d.ts.map +1 -0
  29. package/dist/brainyrich/components/viz.js.map +1 -1
  30. package/dist/brainyrich/hooks/useBrainyRichAnalytics.d.ts +17 -0
  31. package/dist/brainyrich/hooks/useBrainyRichAnalytics.d.ts.map +1 -0
  32. package/dist/brainyrich/hooks/useBrainyRichAnalytics.js +24 -0
  33. package/dist/brainyrich/hooks/useBrainyRichAnalytics.js.map +1 -0
  34. package/dist/brainyrich/hooks/useBrainyRichApi.d.ts +2125 -0
  35. package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -0
  36. package/dist/brainyrich/hooks/useBrainyRichApi.js +1 -1
  37. package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
  38. package/dist/brainyrich/index.d.ts +6 -0
  39. package/dist/brainyrich/index.d.ts.map +1 -0
  40. package/dist/brainyrich/index.js +1 -0
  41. package/dist/brainyrich/pages/AccountsPage.d.ts +2 -0
  42. package/dist/brainyrich/pages/AccountsPage.d.ts.map +1 -0
  43. package/dist/brainyrich/pages/AccountsPage.js +608 -593
  44. package/dist/brainyrich/pages/AccountsPage.js.map +1 -1
  45. package/dist/brainyrich/pages/AiAssistantPage.d.ts +2 -0
  46. package/dist/brainyrich/pages/AiAssistantPage.d.ts.map +1 -0
  47. package/dist/brainyrich/pages/AnalyticsPage.d.ts +2 -0
  48. package/dist/brainyrich/pages/AnalyticsPage.d.ts.map +1 -0
  49. package/dist/brainyrich/pages/DashboardPage.d.ts +2 -0
  50. package/dist/brainyrich/pages/DashboardPage.d.ts.map +1 -0
  51. package/dist/brainyrich/pages/DashboardPage.js +264 -256
  52. package/dist/brainyrich/pages/DashboardPage.js.map +1 -1
  53. package/dist/brainyrich/pages/FamilyPage.d.ts +2 -0
  54. package/dist/brainyrich/pages/FamilyPage.d.ts.map +1 -0
  55. package/dist/brainyrich/pages/FamilyPage.js +467 -446
  56. package/dist/brainyrich/pages/FamilyPage.js.map +1 -1
  57. package/dist/brainyrich/pages/GoalsPage.d.ts +2 -0
  58. package/dist/brainyrich/pages/GoalsPage.d.ts.map +1 -0
  59. package/dist/brainyrich/pages/GoalsPage.js +553 -531
  60. package/dist/brainyrich/pages/GoalsPage.js.map +1 -1
  61. package/dist/brainyrich/pages/InvestmentsPage.d.ts +2 -0
  62. package/dist/brainyrich/pages/InvestmentsPage.d.ts.map +1 -0
  63. package/dist/brainyrich/pages/PortfoliosPage.d.ts +2 -0
  64. package/dist/brainyrich/pages/PortfoliosPage.d.ts.map +1 -0
  65. package/dist/brainyrich/pages/PortfoliosPage.js +378 -354
  66. package/dist/brainyrich/pages/PortfoliosPage.js.map +1 -1
  67. package/dist/brainyrich/pages/ReportsPage.d.ts +2 -0
  68. package/dist/brainyrich/pages/ReportsPage.d.ts.map +1 -0
  69. package/dist/brainyrich/pages/RiskPage.d.ts +2 -0
  70. package/dist/brainyrich/pages/RiskPage.d.ts.map +1 -0
  71. package/dist/brainyrich/pages/TaxPage.d.ts +2 -0
  72. package/dist/brainyrich/pages/TaxPage.d.ts.map +1 -0
  73. package/dist/brainyrich/pages/_shared.d.ts +77 -0
  74. package/dist/brainyrich/pages/_shared.d.ts.map +1 -0
  75. package/dist/brainyrich/providers/BrainyRichProvider.d.ts +6 -0
  76. package/dist/brainyrich/providers/BrainyRichProvider.d.ts.map +1 -0
  77. package/dist/brainyrich/services/createSandboxAssistantTransport.d.ts +24 -0
  78. package/dist/brainyrich/services/createSandboxAssistantTransport.d.ts.map +1 -0
  79. package/dist/brainyrich/services/createSandboxAssistantTransport.js +14 -0
  80. package/dist/brainyrich/services/createSandboxAssistantTransport.js.map +1 -0
  81. package/dist/brainyrich/types/bra.d.ts +394 -0
  82. package/dist/brainyrich/types/bra.d.ts.map +1 -0
  83. package/dist/brainyrich/types/index.d.ts +39 -0
  84. package/dist/brainyrich/types/index.d.ts.map +1 -0
  85. package/dist/brainyrich/utils/cn.d.ts +4 -0
  86. package/dist/brainyrich/utils/cn.d.ts.map +1 -0
  87. package/dist/brainyrich/utils/i18n.d.ts +6 -0
  88. package/dist/brainyrich/utils/i18n.d.ts.map +1 -0
  89. package/dist/brainyrich/utils/nativeControls.d.ts +12 -0
  90. package/dist/brainyrich/utils/nativeControls.d.ts.map +1 -0
  91. package/dist/brainyrich/utils/nativeControls.js +12 -0
  92. package/dist/brainyrich/utils/nativeControls.js.map +1 -0
  93. package/dist/brainyrich/utils/navigation.d.ts +2 -0
  94. package/dist/brainyrich/utils/navigation.d.ts.map +1 -0
  95. package/dist/brainyrich/utils/pageContext.d.ts +30 -0
  96. package/dist/brainyrich/utils/pageContext.d.ts.map +1 -0
  97. package/dist/brainyrich/utils/pageContext.js +46 -0
  98. package/dist/brainyrich/utils/pageContext.js.map +1 -0
  99. package/dist/dev/main.d.ts +2 -0
  100. package/dist/dev/main.d.ts.map +1 -0
  101. package/dist/generated/global-operations.d.ts +2 -0
  102. package/dist/generated/global-operations.d.ts.map +1 -0
  103. package/dist/generated/global-types.d.ts +18199 -0
  104. package/dist/generated/global-types.d.ts.map +1 -0
  105. package/dist/generated/wspace-operations.d.ts +2 -0
  106. package/dist/generated/wspace-operations.d.ts.map +1 -0
  107. package/dist/generated/wspace-types.d.ts +43046 -0
  108. package/dist/generated/wspace-types.d.ts.map +1 -0
  109. package/dist/index.d.ts +2 -0
  110. package/dist/index.d.ts.map +1 -0
  111. package/dist/index.js +2 -1
  112. package/package.json +6 -2
@@ -5,13 +5,15 @@ import { DonutChart as u, FadeIn as d, GlassCard as f, StatTile as p } from "../
5
5
  import { HouseholdPicker as m } from "../components/pickers.js";
6
6
  import "../components/index.js";
7
7
  import { EmptyState as h, ErrorState as g, LoadingState as _, SectionShell as v, formatCompact as y, formatDate as b, formatMoney as x, statusBadgeVariant as S } from "./_shared.js";
8
- import { useMemo as ee, useState as C } from "react";
9
- import { Bell as w, Briefcase as T, Check as E, CircleCheck as D, Coins as te, Info as O, Landmark as ne, MoreHorizontal as k, PlusCircle as A, ShieldAlert as j, Target as M, TrendingUp as re, TriangleAlert as N, Wallet as P, X as ie } from "lucide-react";
10
- import { useI18n as F } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
11
- import { jsx as I, jsxs as L } from "react/jsx-runtime";
12
- import { Badge as R, Button as z, Card as B, CardContent as V, CardDescription as ae, CardHeader as H, CardTitle as U, Dialog as W, DialogContent as G, DialogDescription as K, DialogFooter as q, DialogHeader as oe, DialogTitle as se, DropdownMenu as ce, DropdownMenuContent as le, DropdownMenuItem as J, DropdownMenuTrigger as ue, Input as Y, Label as X, Select as de, SelectContent as fe, SelectItem as pe, SelectTrigger as me, SelectValue as he } from "@burdenoff/fe-libs/ui";
8
+ import { hapticSuccess as C, showToast as w } from "../utils/nativeControls.js";
9
+ import { useTrackBrainyRichPageView as ee } from "../hooks/useBrainyRichAnalytics.js";
10
+ import { useMemo as T, useState as E } from "react";
11
+ import { Bell as te, Briefcase as D, Check as O, CircleCheck as k, Coins as A, Info as j, Landmark as ne, MoreHorizontal as M, PlusCircle as N, ShieldAlert as re, Target as P, TrendingUp as ie, TriangleAlert as F, Wallet as I, X as ae } from "lucide-react";
12
+ import { useI18n as L } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
13
+ import { jsx as R, jsxs as z } from "react/jsx-runtime";
14
+ import { Badge as B, Button as V, Card as H, CardContent as U, CardDescription as W, CardHeader as G, CardTitle as K, Dialog as q, DialogContent as oe, DialogDescription as se, DialogFooter as ce, DialogHeader as le, DialogTitle as J, DropdownMenu as ue, DropdownMenuContent as de, DropdownMenuItem as Y, DropdownMenuTrigger as fe, Input as X, Label as Z, Select as pe, SelectContent as me, SelectItem as he, SelectTrigger as ge, SelectValue as _e } from "@burdenoff/fe-libs/ui";
13
15
  //#region src/brainyrich/pages/DashboardPage.tsx
14
- var Z = [
16
+ var ve = [
15
17
  "BANK",
16
18
  "BROKERAGE",
17
19
  "RETIREMENT",
@@ -20,7 +22,7 @@ var Z = [
20
22
  "REAL_ESTATE",
21
23
  "ALTERNATIVE",
22
24
  "LIABILITY"
23
- ], ge = {
25
+ ], ye = {
24
26
  EQUITY: "brand",
25
27
  FIXED_INCOME: "blue",
26
28
  CASH: "teal",
@@ -33,12 +35,14 @@ function Q(e) {
33
35
  let t = e.replace(/_/g, " ").toLowerCase();
34
36
  return t.charAt(0).toUpperCase() + t.slice(1);
35
37
  }
36
- function _e() {
37
- let { t } = F(), n = (n, r, i) => e(t, n, r, i), r = o(), c = s(), l = i(), m = a({ status: "OPEN" }), C = r.data, E = C?.currency ?? "USD", O = C ? [
38
+ function be() {
39
+ let { t } = L(), n = (n, r, i) => e(t, n, r, i);
40
+ ee("brainyrich.dashboard.viewed");
41
+ let r = o(), c = s(), l = i(), m = a({ status: "OPEN" }), C = r.data, w = C?.currency ?? "USD", E = C ? [
38
42
  {
39
43
  label: n("brainyrich.dashboard.metrics.netWorth", "Net Worth"),
40
- value: y(C.totalNetWorth, E),
41
- icon: /* @__PURE__ */ I(P, {
44
+ value: y(C.totalNetWorth, w),
45
+ icon: /* @__PURE__ */ R(I, {
42
46
  className: "size-4",
43
47
  "aria-hidden": "true"
44
48
  }),
@@ -46,16 +50,16 @@ function _e() {
46
50
  },
47
51
  {
48
52
  label: n("brainyrich.dashboard.metrics.investedAssets", "Invested Assets"),
49
- value: y(C.totalMarketValue, E),
50
- icon: /* @__PURE__ */ I(re, {
53
+ value: y(C.totalMarketValue, w),
54
+ icon: /* @__PURE__ */ R(ie, {
51
55
  className: "size-4",
52
56
  "aria-hidden": "true"
53
57
  })
54
58
  },
55
59
  {
56
60
  label: n("brainyrich.dashboard.metrics.liquidity", "Cash & Liquidity"),
57
- value: y(C.totalCash, E),
58
- icon: /* @__PURE__ */ I(te, {
61
+ value: y(C.totalCash, w),
62
+ icon: /* @__PURE__ */ R(A, {
59
63
  className: "size-4",
60
64
  "aria-hidden": "true"
61
65
  })
@@ -63,203 +67,207 @@ function _e() {
63
67
  {
64
68
  label: n("brainyrich.dashboard.metrics.accounts", "Linked Accounts"),
65
69
  value: String(C.accountCount),
66
- icon: /* @__PURE__ */ I(ne, {
70
+ icon: /* @__PURE__ */ R(ne, {
67
71
  className: "size-4",
68
72
  "aria-hidden": "true"
69
73
  })
70
74
  }
71
- ] : [], k = ee(() => C ? C.byAssetClass.filter((e) => Number.isFinite(e.marketValue) && e.marketValue > 0).slice().sort((e, t) => t.marketValue - e.marketValue).map((e) => ({
75
+ ] : [], O = T(() => C ? C.byAssetClass.filter((e) => Number.isFinite(e.marketValue) && e.marketValue > 0).slice().sort((e, t) => t.marketValue - e.marketValue).map((e) => ({
72
76
  label: Q(e.assetClass),
73
77
  value: e.marketValue,
74
- tone: ge[e.assetClass]
75
- })) : [], [C]), A = c.data.slice(0, 5), j = l.data.slice(0, 5), N = m.data.slice(0, 6);
76
- return /* @__PURE__ */ L(v, {
77
- title: n("brainyrich.dashboard.title", "Wealth Dashboard"),
78
- description: n("brainyrich.dashboard.description", "Your consolidated financial overview at a glance"),
79
- actions: /* @__PURE__ */ I(be, { translate: n }),
80
- children: [
81
- r.isLoading ? /* @__PURE__ */ I(_, { rows: 1 }) : r.isError ? /* @__PURE__ */ I(g, {
82
- title: n("brainyrich.dashboard.netWorthError", "Could not load net worth"),
83
- onRetry: () => r.refetch()
84
- }) : C ? /* @__PURE__ */ I("div", {
85
- className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
86
- children: O.map((e, t) => /* @__PURE__ */ I(d, {
87
- index: t,
88
- children: /* @__PURE__ */ I(p, {
89
- label: e.label,
90
- value: e.value,
91
- icon: e.icon,
92
- glow: e.glow,
93
- className: "h-full"
94
- })
95
- }, e.label))
96
- }) : /* @__PURE__ */ I(h, {
97
- icon: /* @__PURE__ */ I(P, {
98
- className: "size-6",
99
- "aria-hidden": "true"
78
+ tone: ye[e.assetClass]
79
+ })) : [], [C]), j = c.data.slice(0, 5), M = l.data.slice(0, 5), N = m.data.slice(0, 6);
80
+ return /* @__PURE__ */ R("div", {
81
+ "data-tour": "brainyrich-page-dashboard",
82
+ className: "contents",
83
+ children: /* @__PURE__ */ z(v, {
84
+ title: n("brainyrich.dashboard.title", "Wealth Dashboard"),
85
+ description: n("brainyrich.dashboard.description", "Your consolidated financial overview at a glance"),
86
+ actions: /* @__PURE__ */ R(Ce, { translate: n }),
87
+ children: [
88
+ r.isLoading ? /* @__PURE__ */ R(_, { rows: 1 }) : r.isError ? /* @__PURE__ */ R(g, {
89
+ title: n("brainyrich.dashboard.netWorthError", "Could not load net worth"),
90
+ onRetry: () => r.refetch()
91
+ }) : C ? /* @__PURE__ */ R("div", {
92
+ className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
93
+ children: E.map((e, t) => /* @__PURE__ */ R(d, {
94
+ index: t,
95
+ children: /* @__PURE__ */ R(p, {
96
+ label: e.label,
97
+ value: e.value,
98
+ icon: e.icon,
99
+ glow: e.glow,
100
+ className: "h-full"
101
+ })
102
+ }, e.label))
103
+ }) : /* @__PURE__ */ R(h, {
104
+ icon: /* @__PURE__ */ R(I, {
105
+ className: "size-6",
106
+ "aria-hidden": "true"
107
+ }),
108
+ title: n("brainyrich.dashboard.noSummary", "No financial data yet"),
109
+ description: n("brainyrich.dashboard.noSummaryDesc", "Link your first account to see your net worth here.")
100
110
  }),
101
- title: n("brainyrich.dashboard.noSummary", "No financial data yet"),
102
- description: n("brainyrich.dashboard.noSummaryDesc", "Link your first account to see your net worth here.")
103
- }),
104
- /* @__PURE__ */ L("div", {
105
- className: "grid gap-6 lg:grid-cols-3",
106
- children: [/* @__PURE__ */ I(d, {
107
- index: 0,
108
- className: "lg:col-span-2",
109
- children: /* @__PURE__ */ L(f, {
110
- className: "h-full",
111
- children: [/* @__PURE__ */ L("div", {
112
- className: "mb-4 space-y-1",
113
- children: [/* @__PURE__ */ L("h2", {
114
- className: "flex items-center gap-2 text-base font-semibold text-text-primary",
115
- children: [/* @__PURE__ */ I(T, {
116
- className: "size-5",
117
- "aria-hidden": "true"
118
- }), n("brainyrich.dashboard.sections.assetAllocation", "Net worth by asset class")]
119
- }), /* @__PURE__ */ I("p", {
120
- className: "text-sm text-text-secondary",
121
- children: n("brainyrich.dashboard.sections.assetAllocationDescription", "Market value distributed across asset classes")
122
- })]
123
- }), r.isLoading ? /* @__PURE__ */ I(_, { rows: 3 }) : r.isError ? /* @__PURE__ */ I(g, { onRetry: () => r.refetch() }) : k.length > 0 ? /* @__PURE__ */ I(u, {
124
- data: k,
125
- height: 260,
126
- centerValue: y(C?.totalMarketValue ?? 0, E),
127
- centerLabel: n("brainyrich.dashboard.metrics.investedAssets", "Invested"),
128
- valueFormatter: (e) => x(e, E)
129
- }) : /* @__PURE__ */ I(h, {
130
- icon: /* @__PURE__ */ I(T, {
131
- className: "size-6",
132
- "aria-hidden": "true"
133
- }),
134
- title: n("brainyrich.dashboard.noAllocation", "No holdings to allocate"),
135
- description: n("brainyrich.dashboard.noAllocationDesc", "Add holdings to your accounts to see how your wealth is allocated.")
136
- })]
137
- })
138
- }), /* @__PURE__ */ L("div", {
139
- className: "space-y-6",
140
- children: [/* @__PURE__ */ I(d, {
141
- index: 1,
142
- children: /* @__PURE__ */ L(B, {
143
- className: "motion-safe:transition-shadow motion-safe:hover:shadow-[var(--shadow-pop-hover,var(--shadow-elevation-2))]",
144
- children: [/* @__PURE__ */ I(H, {
145
- className: "pb-3",
146
- children: /* @__PURE__ */ L(U, {
147
- className: "flex items-center gap-2 text-base",
148
- children: [/* @__PURE__ */ I(w, {
149
- className: "size-4",
150
- "aria-hidden": "true"
151
- }), n("brainyrich.dashboard.sections.needsAttention", "Needs attention")]
152
- })
153
- }), /* @__PURE__ */ I(V, {
154
- className: "space-y-2.5",
155
- children: m.isLoading ? /* @__PURE__ */ I(_, { rows: 2 }) : m.isError ? /* @__PURE__ */ I(g, { onRetry: () => m.refetch() }) : N.length > 0 ? N.map((e) => /* @__PURE__ */ I(ye, {
156
- insight: e,
157
- translate: n
158
- }, e.id)) : /* @__PURE__ */ I(h, {
159
- icon: /* @__PURE__ */ I(D, {
160
- className: "size-6",
111
+ /* @__PURE__ */ z("div", {
112
+ className: "grid gap-6 lg:grid-cols-3",
113
+ children: [/* @__PURE__ */ R(d, {
114
+ index: 0,
115
+ className: "lg:col-span-2",
116
+ children: /* @__PURE__ */ z(f, {
117
+ className: "h-full",
118
+ children: [/* @__PURE__ */ z("div", {
119
+ className: "mb-4 space-y-1",
120
+ children: [/* @__PURE__ */ z("h2", {
121
+ className: "flex items-center gap-2 text-base font-semibold text-text-primary",
122
+ children: [/* @__PURE__ */ R(D, {
123
+ className: "size-5",
161
124
  "aria-hidden": "true"
162
- }),
163
- title: n("brainyrich.dashboard.noInsights", "All clear"),
164
- description: n("brainyrich.dashboard.noInsightsDesc", "There are no open insights that need your attention.")
165
- })
125
+ }), n("brainyrich.dashboard.sections.assetAllocation", "Net worth by asset class")]
126
+ }), /* @__PURE__ */ R("p", {
127
+ className: "text-sm text-text-secondary",
128
+ children: n("brainyrich.dashboard.sections.assetAllocationDescription", "Market value distributed across asset classes")
129
+ })]
130
+ }), r.isLoading ? /* @__PURE__ */ R(_, { rows: 3 }) : r.isError ? /* @__PURE__ */ R(g, { onRetry: () => r.refetch() }) : O.length > 0 ? /* @__PURE__ */ R(u, {
131
+ data: O,
132
+ height: 260,
133
+ centerValue: y(C?.totalMarketValue ?? 0, w),
134
+ centerLabel: n("brainyrich.dashboard.metrics.investedAssets", "Invested"),
135
+ valueFormatter: (e) => x(e, w)
136
+ }) : /* @__PURE__ */ R(h, {
137
+ icon: /* @__PURE__ */ R(D, {
138
+ className: "size-6",
139
+ "aria-hidden": "true"
140
+ }),
141
+ title: n("brainyrich.dashboard.noAllocation", "No holdings to allocate"),
142
+ description: n("brainyrich.dashboard.noAllocationDesc", "Add holdings to your accounts to see how your wealth is allocated.")
166
143
  })]
167
144
  })
168
- }), /* @__PURE__ */ I(d, {
169
- index: 2,
170
- children: /* @__PURE__ */ L(B, {
171
- className: "motion-safe:transition-shadow motion-safe:hover:shadow-[var(--shadow-pop-hover,var(--shadow-elevation-2))]",
172
- children: [/* @__PURE__ */ I(H, {
173
- className: "pb-3",
174
- children: /* @__PURE__ */ L(U, {
175
- className: "flex items-center gap-2 text-base",
176
- children: [/* @__PURE__ */ I(M, {
177
- className: "size-4",
178
- "aria-hidden": "true"
179
- }), n("brainyrich.dashboard.sections.goals", "Goals on track")]
180
- })
181
- }), /* @__PURE__ */ I(V, {
182
- className: "space-y-2.5",
183
- children: l.isLoading ? /* @__PURE__ */ I(_, { rows: 3 }) : l.isError ? /* @__PURE__ */ I(g, { onRetry: () => l.refetch() }) : j.length > 0 ? j.map((e) => /* @__PURE__ */ L("div", {
184
- className: "flex items-start justify-between gap-2 rounded-lg border border-border-subtle p-3 motion-safe:transition-colors hover:border-[var(--color-action-primary-border)]/50 hover:bg-bg-elevated",
185
- children: [/* @__PURE__ */ L("div", {
186
- className: "min-w-0 space-y-0.5",
187
- children: [/* @__PURE__ */ I("p", {
188
- className: "truncate text-sm font-medium text-text-primary",
189
- children: e.name
190
- }), /* @__PURE__ */ L("p", {
191
- className: "text-xs text-text-secondary",
192
- children: [
193
- x(e.targetAmount, e.currency),
194
- " · ",
195
- b(e.targetDate)
196
- ]
145
+ }), /* @__PURE__ */ z("div", {
146
+ className: "space-y-6",
147
+ children: [/* @__PURE__ */ R(d, {
148
+ index: 1,
149
+ children: /* @__PURE__ */ z(H, {
150
+ className: "motion-safe:transition-shadow motion-safe:hover:shadow-[var(--shadow-pop-hover,var(--shadow-elevation-2))]",
151
+ children: [/* @__PURE__ */ R(G, {
152
+ className: "pb-3",
153
+ children: /* @__PURE__ */ z(K, {
154
+ className: "flex items-center gap-2 text-base",
155
+ children: [/* @__PURE__ */ R(te, {
156
+ className: "size-4",
157
+ "aria-hidden": "true"
158
+ }), n("brainyrich.dashboard.sections.needsAttention", "Needs attention")]
159
+ })
160
+ }), /* @__PURE__ */ R(U, {
161
+ className: "space-y-2.5",
162
+ children: m.isLoading ? /* @__PURE__ */ R(_, { rows: 2 }) : m.isError ? /* @__PURE__ */ R(g, { onRetry: () => m.refetch() }) : N.length > 0 ? N.map((e) => /* @__PURE__ */ R(Se, {
163
+ insight: e,
164
+ translate: n
165
+ }, e.id)) : /* @__PURE__ */ R(h, {
166
+ icon: /* @__PURE__ */ R(k, {
167
+ className: "size-6",
168
+ "aria-hidden": "true"
169
+ }),
170
+ title: n("brainyrich.dashboard.noInsights", "All clear"),
171
+ description: n("brainyrich.dashboard.noInsightsDesc", "There are no open insights that need your attention.")
172
+ })
173
+ })]
174
+ })
175
+ }), /* @__PURE__ */ R(d, {
176
+ index: 2,
177
+ children: /* @__PURE__ */ z(H, {
178
+ className: "motion-safe:transition-shadow motion-safe:hover:shadow-[var(--shadow-pop-hover,var(--shadow-elevation-2))]",
179
+ children: [/* @__PURE__ */ R(G, {
180
+ className: "pb-3",
181
+ children: /* @__PURE__ */ z(K, {
182
+ className: "flex items-center gap-2 text-base",
183
+ children: [/* @__PURE__ */ R(P, {
184
+ className: "size-4",
185
+ "aria-hidden": "true"
186
+ }), n("brainyrich.dashboard.sections.goals", "Goals on track")]
187
+ })
188
+ }), /* @__PURE__ */ R(U, {
189
+ className: "space-y-2.5",
190
+ children: l.isLoading ? /* @__PURE__ */ R(_, { rows: 3 }) : l.isError ? /* @__PURE__ */ R(g, { onRetry: () => l.refetch() }) : M.length > 0 ? M.map((e) => /* @__PURE__ */ z("div", {
191
+ className: "flex items-start justify-between gap-2 rounded-lg border border-border-subtle p-3 motion-safe:transition-colors hover:border-[var(--color-action-primary-border)]/50 hover:bg-bg-elevated",
192
+ children: [/* @__PURE__ */ z("div", {
193
+ className: "min-w-0 space-y-0.5",
194
+ children: [/* @__PURE__ */ R("p", {
195
+ className: "truncate text-sm font-medium text-text-primary",
196
+ children: e.name
197
+ }), /* @__PURE__ */ z("p", {
198
+ className: "text-xs text-text-secondary",
199
+ children: [
200
+ x(e.targetAmount, e.currency),
201
+ " · ",
202
+ b(e.targetDate)
203
+ ]
204
+ })]
205
+ }), /* @__PURE__ */ R(B, {
206
+ variant: S(e.projection),
207
+ className: "shrink-0",
208
+ children: Q(e.projection)
197
209
  })]
198
- }), /* @__PURE__ */ I(R, {
199
- variant: S(e.projection),
200
- className: "shrink-0",
201
- children: Q(e.projection)
202
- })]
203
- }, e.id)) : /* @__PURE__ */ I(h, {
204
- icon: /* @__PURE__ */ I(M, {
205
- className: "size-6",
206
- "aria-hidden": "true"
207
- }),
208
- title: n("brainyrich.dashboard.noGoals", "No goals yet"),
209
- description: n("brainyrich.dashboard.noGoalsDesc", "Set a financial goal to start tracking progress.")
210
- })
211
- })]
212
- })
210
+ }, e.id)) : /* @__PURE__ */ R(h, {
211
+ icon: /* @__PURE__ */ R(P, {
212
+ className: "size-6",
213
+ "aria-hidden": "true"
214
+ }),
215
+ title: n("brainyrich.dashboard.noGoals", "No goals yet"),
216
+ description: n("brainyrich.dashboard.noGoalsDesc", "Set a financial goal to start tracking progress.")
217
+ })
218
+ })]
219
+ })
220
+ })]
213
221
  })]
214
- })]
215
- }),
216
- /* @__PURE__ */ I(d, {
217
- index: 3,
218
- children: /* @__PURE__ */ L(B, { children: [/* @__PURE__ */ L(H, { children: [/* @__PURE__ */ L(U, {
219
- className: "flex items-center gap-2",
220
- children: [/* @__PURE__ */ I(P, {
221
- className: "size-5",
222
- "aria-hidden": "true"
223
- }), n("brainyrich.dashboard.sections.portfolios", "Portfolios")]
224
- }), /* @__PURE__ */ I(ae, { children: n("brainyrich.dashboard.sections.portfoliosDescription", "Your active investment strategies") })] }), /* @__PURE__ */ I(V, { children: c.isLoading ? /* @__PURE__ */ I(_, { rows: 3 }) : c.isError ? /* @__PURE__ */ I(g, { onRetry: () => c.refetch() }) : A.length > 0 ? /* @__PURE__ */ I("div", {
225
- className: "grid gap-3 sm:grid-cols-2",
226
- children: A.map((e) => /* @__PURE__ */ L("div", {
227
- className: "flex items-start justify-between gap-2 rounded-lg border border-border-subtle p-3 motion-safe:transition-colors hover:border-[var(--color-action-primary-border)]/50 hover:bg-bg-elevated",
228
- children: [/* @__PURE__ */ L("div", {
229
- className: "min-w-0 space-y-0.5",
230
- children: [/* @__PURE__ */ I("p", {
231
- className: "truncate text-sm font-medium text-text-primary",
232
- children: e.name
233
- }), e.description ? /* @__PURE__ */ I("p", {
234
- className: "truncate text-xs text-text-secondary",
235
- children: e.description
236
- }) : /* @__PURE__ */ I("p", {
237
- className: "text-xs text-text-secondary",
238
- children: e.baseCurrency
222
+ }),
223
+ /* @__PURE__ */ R(d, {
224
+ index: 3,
225
+ children: /* @__PURE__ */ z(H, { children: [/* @__PURE__ */ z(G, { children: [/* @__PURE__ */ z(K, {
226
+ className: "flex items-center gap-2",
227
+ children: [/* @__PURE__ */ R(I, {
228
+ className: "size-5",
229
+ "aria-hidden": "true"
230
+ }), n("brainyrich.dashboard.sections.portfolios", "Portfolios")]
231
+ }), /* @__PURE__ */ R(W, { children: n("brainyrich.dashboard.sections.portfoliosDescription", "Your active investment strategies") })] }), /* @__PURE__ */ R(U, { children: c.isLoading ? /* @__PURE__ */ R(_, { rows: 3 }) : c.isError ? /* @__PURE__ */ R(g, { onRetry: () => c.refetch() }) : j.length > 0 ? /* @__PURE__ */ R("div", {
232
+ className: "grid gap-3 sm:grid-cols-2",
233
+ children: j.map((e) => /* @__PURE__ */ z("div", {
234
+ className: "flex items-start justify-between gap-2 rounded-lg border border-border-subtle p-3 motion-safe:transition-colors hover:border-[var(--color-action-primary-border)]/50 hover:bg-bg-elevated",
235
+ children: [/* @__PURE__ */ z("div", {
236
+ className: "min-w-0 space-y-0.5",
237
+ children: [/* @__PURE__ */ R("p", {
238
+ className: "truncate text-sm font-medium text-text-primary",
239
+ children: e.name
240
+ }), e.description ? /* @__PURE__ */ R("p", {
241
+ className: "truncate text-xs text-text-secondary",
242
+ children: e.description
243
+ }) : /* @__PURE__ */ R("p", {
244
+ className: "text-xs text-text-secondary",
245
+ children: e.baseCurrency
246
+ })]
247
+ }), /* @__PURE__ */ R(B, {
248
+ variant: S(e.status),
249
+ className: "shrink-0",
250
+ children: e.status
239
251
  })]
240
- }), /* @__PURE__ */ I(R, {
241
- variant: S(e.status),
242
- className: "shrink-0",
243
- children: e.status
244
- })]
245
- }, e.id))
246
- }) : /* @__PURE__ */ I(h, {
247
- icon: /* @__PURE__ */ I(P, {
248
- className: "size-6",
249
- "aria-hidden": "true"
250
- }),
251
- title: n("brainyrich.dashboard.noPortfolios", "No portfolios yet"),
252
- description: n("brainyrich.dashboard.noPortfoliosDesc", "Create a portfolio to organize your investment strategy.")
253
- }) })] })
254
- })
255
- ]
252
+ }, e.id))
253
+ }) : /* @__PURE__ */ R(h, {
254
+ icon: /* @__PURE__ */ R(I, {
255
+ className: "size-6",
256
+ "aria-hidden": "true"
257
+ }),
258
+ title: n("brainyrich.dashboard.noPortfolios", "No portfolios yet"),
259
+ description: n("brainyrich.dashboard.noPortfoliosDesc", "Create a portfolio to organize your investment strategy.")
260
+ }) })] })
261
+ })
262
+ ]
263
+ })
256
264
  });
257
265
  }
258
266
  var $ = {
259
267
  CRITICAL: {
260
268
  chip: "text-status-error-text bg-status-error-bg",
261
269
  rail: "bg-status-error",
262
- icon: /* @__PURE__ */ I(j, {
270
+ icon: /* @__PURE__ */ R(re, {
263
271
  className: "size-3",
264
272
  "aria-hidden": "true"
265
273
  })
@@ -267,7 +275,7 @@ var $ = {
267
275
  HIGH: {
268
276
  chip: "text-status-error-text bg-status-error-bg",
269
277
  rail: "bg-status-error",
270
- icon: /* @__PURE__ */ I(N, {
278
+ icon: /* @__PURE__ */ R(F, {
271
279
  className: "size-3",
272
280
  "aria-hidden": "true"
273
281
  })
@@ -275,7 +283,7 @@ var $ = {
275
283
  MEDIUM: {
276
284
  chip: "text-status-warning-text bg-status-warning-bg",
277
285
  rail: "bg-status-warning",
278
- icon: /* @__PURE__ */ I(N, {
286
+ icon: /* @__PURE__ */ R(F, {
279
287
  className: "size-3",
280
288
  "aria-hidden": "true"
281
289
  })
@@ -283,7 +291,7 @@ var $ = {
283
291
  LOW: {
284
292
  chip: "text-status-info-text bg-status-info-bg",
285
293
  rail: "bg-status-info",
286
- icon: /* @__PURE__ */ I(O, {
294
+ icon: /* @__PURE__ */ R(j, {
287
295
  className: "size-3",
288
296
  "aria-hidden": "true"
289
297
  })
@@ -291,88 +299,88 @@ var $ = {
291
299
  INFO: {
292
300
  chip: "text-status-info-text bg-status-info-bg",
293
301
  rail: "bg-status-info",
294
- icon: /* @__PURE__ */ I(O, {
302
+ icon: /* @__PURE__ */ R(j, {
295
303
  className: "size-3",
296
304
  "aria-hidden": "true"
297
305
  })
298
306
  }
299
307
  };
300
- function ve({ severity: e }) {
308
+ function xe({ severity: e }) {
301
309
  let t = $[e] ?? $.INFO;
302
- return /* @__PURE__ */ L("span", {
310
+ return /* @__PURE__ */ z("span", {
303
311
  className: `inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide ${t.chip}`,
304
312
  children: [t.icon, e]
305
313
  });
306
314
  }
307
- function ye({ insight: e, translate: n }) {
308
- let i = t(), a = r(), o = c(), [s, u] = C(!1), d = i.isPending || a.isPending || o.isPending, f = ($[e.severity] ?? $.INFO).rail;
309
- return /* @__PURE__ */ L("div", {
315
+ function Se({ insight: e, translate: n }) {
316
+ let i = t(), a = r(), o = c(), [s, u] = E(!1), d = i.isPending || a.isPending || o.isPending, f = ($[e.severity] ?? $.INFO).rail;
317
+ return /* @__PURE__ */ z("div", {
310
318
  className: "relative flex items-start justify-between gap-3 overflow-hidden rounded-lg border border-border-subtle p-3 pl-4 motion-safe:transition-colors hover:border-[var(--color-action-primary-border)]/50 hover:bg-bg-elevated",
311
319
  children: [
312
- /* @__PURE__ */ I("span", {
320
+ /* @__PURE__ */ R("span", {
313
321
  "aria-hidden": "true",
314
322
  className: `absolute inset-y-0 left-0 w-1 ${f}`
315
323
  }),
316
- /* @__PURE__ */ L("div", {
324
+ /* @__PURE__ */ z("div", {
317
325
  className: "min-w-0 space-y-1",
318
326
  children: [
319
- /* @__PURE__ */ L("div", {
327
+ /* @__PURE__ */ z("div", {
320
328
  className: "flex items-center gap-2",
321
- children: [/* @__PURE__ */ I(ve, { severity: e.severity }), /* @__PURE__ */ I("span", {
329
+ children: [/* @__PURE__ */ R(xe, { severity: e.severity }), /* @__PURE__ */ R("span", {
322
330
  className: "truncate text-xs text-text-secondary",
323
331
  children: Q(e.type)
324
332
  })]
325
333
  }),
326
- /* @__PURE__ */ I("p", {
334
+ /* @__PURE__ */ R("p", {
327
335
  className: "text-sm font-medium text-text-primary",
328
336
  children: e.title
329
337
  }),
330
- e.detail ? /* @__PURE__ */ I("p", {
338
+ e.detail ? /* @__PURE__ */ R("p", {
331
339
  className: "text-xs text-text-secondary",
332
340
  children: e.detail
333
341
  }) : null
334
342
  ]
335
343
  }),
336
- /* @__PURE__ */ L(ce, { children: [/* @__PURE__ */ I(ue, {
344
+ /* @__PURE__ */ z(ue, { children: [/* @__PURE__ */ R(fe, {
337
345
  asChild: !0,
338
- children: /* @__PURE__ */ I(z, {
346
+ children: /* @__PURE__ */ R(V, {
339
347
  variant: "ghost",
340
348
  size: "icon",
341
349
  className: "shrink-0",
342
350
  disabled: d,
343
351
  "aria-label": n("brainyrich.dashboard.insightActions", "Insight actions"),
344
- children: /* @__PURE__ */ I(k, {
352
+ children: /* @__PURE__ */ R(M, {
345
353
  className: "size-4",
346
354
  "aria-hidden": "true"
347
355
  })
348
356
  })
349
- }), /* @__PURE__ */ L(le, {
357
+ }), /* @__PURE__ */ z(de, {
350
358
  align: "end",
351
359
  children: [
352
- /* @__PURE__ */ L(J, {
360
+ /* @__PURE__ */ z(Y, {
353
361
  onSelect: () => i.mutate(e.id),
354
- children: [/* @__PURE__ */ I(E, {
362
+ children: [/* @__PURE__ */ R(O, {
355
363
  className: "size-4",
356
364
  "aria-hidden": "true"
357
365
  }), n("brainyrich.dashboard.insight.acknowledge", "Acknowledge")]
358
366
  }),
359
- /* @__PURE__ */ L(J, {
367
+ /* @__PURE__ */ z(Y, {
360
368
  onSelect: () => o.mutate(e.id),
361
- children: [/* @__PURE__ */ I(D, {
369
+ children: [/* @__PURE__ */ R(k, {
362
370
  className: "size-4",
363
371
  "aria-hidden": "true"
364
372
  }), n("brainyrich.dashboard.insight.resolve", "Resolve")]
365
373
  }),
366
- /* @__PURE__ */ L(J, {
374
+ /* @__PURE__ */ z(Y, {
367
375
  onSelect: () => u(!0),
368
- children: [/* @__PURE__ */ I(ie, {
376
+ children: [/* @__PURE__ */ R(ae, {
369
377
  className: "size-4",
370
378
  "aria-hidden": "true"
371
379
  }), n("brainyrich.dashboard.insight.dismiss", "Dismiss")]
372
380
  })
373
381
  ]
374
382
  })] }),
375
- /* @__PURE__ */ I(l, {
383
+ /* @__PURE__ */ R(l, {
376
384
  open: s,
377
385
  onOpenChange: u,
378
386
  title: n("brainyrich.dashboard.insight.dismissTitle", "Dismiss this insight?"),
@@ -386,47 +394,47 @@ function ye({ insight: e, translate: n }) {
386
394
  ]
387
395
  });
388
396
  }
389
- function be({ translate: e }) {
390
- let [t, r] = C(!1), [i, a] = C(""), [o, s] = C("BROKERAGE"), [c, l] = C(""), [u, d] = C(""), [f, p] = C("USD"), [h, g] = C(null), _ = n(), v = i.trim(), y = v.length > 0 && !_.isPending, b = () => {
397
+ function Ce({ translate: e }) {
398
+ let [t, r] = E(!1), [i, a] = E(""), [o, s] = E("BROKERAGE"), [c, l] = E(""), [u, d] = E(""), [f, p] = E("USD"), [h, g] = E(null), _ = n(), v = i.trim(), y = v.length > 0 && !_.isPending, b = () => {
391
399
  a(""), s("BROKERAGE"), l(""), d(""), p("USD"), g(null), _.reset();
392
400
  };
393
- return /* @__PURE__ */ L(W, {
401
+ return /* @__PURE__ */ z(q, {
394
402
  open: t,
395
403
  onOpenChange: (e) => {
396
404
  r(e), e || b();
397
405
  },
398
- children: [/* @__PURE__ */ L(z, {
406
+ children: [/* @__PURE__ */ z(V, {
399
407
  size: "sm",
400
408
  onClick: () => r(!0),
401
- children: [/* @__PURE__ */ I(A, {
409
+ children: [/* @__PURE__ */ R(N, {
402
410
  className: "size-4",
403
411
  "aria-hidden": "true"
404
412
  }), e("brainyrich.dashboard.actions.newAccount", "New Account")]
405
- }), /* @__PURE__ */ I(G, { children: /* @__PURE__ */ L("form", {
406
- onSubmit: (e) => {
407
- if (e.preventDefault(), !y) return;
408
- let t = Number.parseFloat(u), n = {
413
+ }), /* @__PURE__ */ R(oe, { children: /* @__PURE__ */ z("form", {
414
+ onSubmit: (t) => {
415
+ if (t.preventDefault(), !y) return;
416
+ let n = Number.parseFloat(u), i = {
409
417
  name: v,
410
418
  type: o,
411
419
  currency: f.trim() || "USD",
412
420
  isManual: !0,
413
421
  ...c.trim() ? { institution: c.trim() } : {},
414
- ...Number.isFinite(t) ? { cashBalance: t } : {},
422
+ ...Number.isFinite(n) ? { cashBalance: n } : {},
415
423
  ...h ? { householdId: h } : {}
416
424
  };
417
- _.mutate(n, { onSuccess: () => {
418
- b(), r(!1);
425
+ _.mutate(i, { onSuccess: () => {
426
+ C(), w(e("brainyrich.dashboard.newAccount.success", "Account created")), b(), r(!1);
419
427
  } });
420
428
  },
421
429
  className: "space-y-4",
422
430
  children: [
423
- /* @__PURE__ */ L(oe, { children: [/* @__PURE__ */ I(se, { children: e("brainyrich.dashboard.newAccount.title", "New Account") }), /* @__PURE__ */ I(K, { children: e("brainyrich.dashboard.newAccount.description", "Add a manual account to track alongside your linked institutions.") })] }),
424
- /* @__PURE__ */ L("div", {
431
+ /* @__PURE__ */ z(le, { children: [/* @__PURE__ */ R(J, { children: e("brainyrich.dashboard.newAccount.title", "New Account") }), /* @__PURE__ */ R(se, { children: e("brainyrich.dashboard.newAccount.description", "Add a manual account to track alongside your linked institutions.") })] }),
432
+ /* @__PURE__ */ z("div", {
425
433
  className: "space-y-2",
426
- children: [/* @__PURE__ */ I(X, {
434
+ children: [/* @__PURE__ */ R(Z, {
427
435
  htmlFor: "bra-account-name",
428
436
  children: e("brainyrich.dashboard.newAccount.name", "Account name")
429
- }), /* @__PURE__ */ I(Y, {
437
+ }), /* @__PURE__ */ R(X, {
430
438
  id: "bra-account-name",
431
439
  value: i,
432
440
  onChange: (e) => a(e.target.value),
@@ -435,30 +443,30 @@ function be({ translate: e }) {
435
443
  autoFocus: !0
436
444
  })]
437
445
  }),
438
- /* @__PURE__ */ L("div", {
446
+ /* @__PURE__ */ z("div", {
439
447
  className: "grid gap-4 sm:grid-cols-2",
440
- children: [/* @__PURE__ */ L("div", {
448
+ children: [/* @__PURE__ */ z("div", {
441
449
  className: "space-y-2",
442
- children: [/* @__PURE__ */ I(X, {
450
+ children: [/* @__PURE__ */ R(Z, {
443
451
  htmlFor: "bra-account-type",
444
452
  children: e("brainyrich.dashboard.newAccount.type", "Type")
445
- }), /* @__PURE__ */ L(de, {
453
+ }), /* @__PURE__ */ z(pe, {
446
454
  value: o,
447
455
  onValueChange: (e) => s(e),
448
- children: [/* @__PURE__ */ I(me, {
456
+ children: [/* @__PURE__ */ R(ge, {
449
457
  id: "bra-account-type",
450
- children: /* @__PURE__ */ I(he, {})
451
- }), /* @__PURE__ */ I(fe, { children: Z.map((e) => /* @__PURE__ */ I(pe, {
458
+ children: /* @__PURE__ */ R(_e, {})
459
+ }), /* @__PURE__ */ R(me, { children: ve.map((e) => /* @__PURE__ */ R(he, {
452
460
  value: e,
453
461
  children: e.replace(/_/g, " ")
454
462
  }, e)) })]
455
463
  })]
456
- }), /* @__PURE__ */ L("div", {
464
+ }), /* @__PURE__ */ z("div", {
457
465
  className: "space-y-2",
458
- children: [/* @__PURE__ */ I(X, {
466
+ children: [/* @__PURE__ */ R(Z, {
459
467
  htmlFor: "bra-account-currency",
460
468
  children: e("brainyrich.dashboard.newAccount.currency", "Currency")
461
- }), /* @__PURE__ */ I(Y, {
469
+ }), /* @__PURE__ */ R(X, {
462
470
  id: "bra-account-currency",
463
471
  value: f,
464
472
  onChange: (e) => p(e.target.value.toUpperCase()),
@@ -466,19 +474,19 @@ function be({ translate: e }) {
466
474
  })]
467
475
  })]
468
476
  }),
469
- /* @__PURE__ */ L("div", {
477
+ /* @__PURE__ */ z("div", {
470
478
  className: "space-y-2",
471
- children: [/* @__PURE__ */ I(X, {
479
+ children: [/* @__PURE__ */ R(Z, {
472
480
  htmlFor: "bra-account-institution",
473
481
  children: e("brainyrich.dashboard.newAccount.institution", "Institution (optional)")
474
- }), /* @__PURE__ */ I(Y, {
482
+ }), /* @__PURE__ */ R(X, {
475
483
  id: "bra-account-institution",
476
484
  value: c,
477
485
  onChange: (e) => l(e.target.value),
478
486
  placeholder: e("brainyrich.dashboard.newAccount.institutionPlaceholder", "e.g. Fidelity")
479
487
  })]
480
488
  }),
481
- /* @__PURE__ */ I(m, {
489
+ /* @__PURE__ */ R(m, {
482
490
  id: "bra-account-household",
483
491
  value: h,
484
492
  onChange: g,
@@ -486,12 +494,12 @@ function be({ translate: e }) {
486
494
  noneLabel: e("brainyrich.dashboard.newAccount.noHousehold", "No household"),
487
495
  disabled: _.isPending
488
496
  }),
489
- /* @__PURE__ */ L("div", {
497
+ /* @__PURE__ */ z("div", {
490
498
  className: "space-y-2",
491
- children: [/* @__PURE__ */ I(X, {
499
+ children: [/* @__PURE__ */ R(Z, {
492
500
  htmlFor: "bra-account-cash",
493
501
  children: e("brainyrich.dashboard.newAccount.cash", "Cash balance (optional)")
494
- }), /* @__PURE__ */ I(Y, {
502
+ }), /* @__PURE__ */ R(X, {
495
503
  id: "bra-account-cash",
496
504
  type: "number",
497
505
  inputMode: "decimal",
@@ -501,17 +509,17 @@ function be({ translate: e }) {
501
509
  placeholder: "0.00"
502
510
  })]
503
511
  }),
504
- _.isError ? /* @__PURE__ */ I("p", {
512
+ _.isError ? /* @__PURE__ */ R("p", {
505
513
  className: "text-sm text-status-error-text",
506
514
  children: _.error instanceof Error ? _.error.message : e("brainyrich.dashboard.newAccount.error", "Could not create account.")
507
515
  }) : null,
508
- /* @__PURE__ */ L(q, { children: [/* @__PURE__ */ I(z, {
516
+ /* @__PURE__ */ z(ce, { children: [/* @__PURE__ */ R(V, {
509
517
  type: "button",
510
518
  variant: "outline",
511
519
  onClick: () => r(!1),
512
520
  disabled: _.isPending,
513
521
  children: e("brainyrich.common.cancel", "Cancel")
514
- }), /* @__PURE__ */ I(z, {
522
+ }), /* @__PURE__ */ R(V, {
515
523
  type: "submit",
516
524
  disabled: !y,
517
525
  children: _.isPending ? e("brainyrich.dashboard.newAccount.creating", "Creating…") : e("brainyrich.dashboard.newAccount.create", "Create account")
@@ -521,6 +529,6 @@ function be({ translate: e }) {
521
529
  });
522
530
  }
523
531
  //#endregion
524
- export { _e as DashboardPage };
532
+ export { be as DashboardPage };
525
533
 
526
534
  //# sourceMappingURL=DashboardPage.js.map