@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.
- package/dist/brainyrich/BrainyRichRoot.d.ts +5 -0
- package/dist/brainyrich/BrainyRichRoot.d.ts.map +1 -0
- package/dist/brainyrich/BrainyRichRoutes.d.ts +2 -0
- package/dist/brainyrich/BrainyRichRoutes.d.ts.map +1 -0
- package/dist/brainyrich/BrainyRichRoutes.js +27 -15
- package/dist/brainyrich/BrainyRichRoutes.js.map +1 -1
- package/dist/brainyrich/components/ActorName.d.ts +26 -0
- package/dist/brainyrich/components/ActorName.d.ts.map +1 -0
- package/dist/brainyrich/components/ConfirmDialog.d.ts +20 -0
- package/dist/brainyrich/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/brainyrich/components/LoadMore.d.ts +21 -0
- package/dist/brainyrich/components/LoadMore.d.ts.map +1 -0
- package/dist/brainyrich/components/index.d.ts +11 -0
- package/dist/brainyrich/components/index.d.ts.map +1 -0
- package/dist/brainyrich/components/notify.d.ts +33 -0
- package/dist/brainyrich/components/notify.d.ts.map +1 -0
- package/dist/brainyrich/components/pickers.d.ts +63 -0
- package/dist/brainyrich/components/pickers.d.ts.map +1 -0
- package/dist/brainyrich/components/reuse/CommentThread.d.ts +35 -0
- package/dist/brainyrich/components/reuse/CommentThread.d.ts.map +1 -0
- package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts +33 -0
- package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts.map +1 -0
- package/dist/brainyrich/components/reuse/TagField.d.ts +34 -0
- package/dist/brainyrich/components/reuse/TagField.d.ts.map +1 -0
- package/dist/brainyrich/components/reuse/transport.d.ts +20 -0
- package/dist/brainyrich/components/reuse/transport.d.ts.map +1 -0
- package/dist/brainyrich/components/viz.d.ts +129 -0
- package/dist/brainyrich/components/viz.d.ts.map +1 -0
- package/dist/brainyrich/components/viz.js.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichAnalytics.d.ts +17 -0
- package/dist/brainyrich/hooks/useBrainyRichAnalytics.d.ts.map +1 -0
- package/dist/brainyrich/hooks/useBrainyRichAnalytics.js +24 -0
- package/dist/brainyrich/hooks/useBrainyRichAnalytics.js.map +1 -0
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts +2125 -0
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -0
- package/dist/brainyrich/hooks/useBrainyRichApi.js +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
- package/dist/brainyrich/index.d.ts +6 -0
- package/dist/brainyrich/index.d.ts.map +1 -0
- package/dist/brainyrich/index.js +1 -0
- package/dist/brainyrich/pages/AccountsPage.d.ts +2 -0
- package/dist/brainyrich/pages/AccountsPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/AccountsPage.js +608 -593
- package/dist/brainyrich/pages/AccountsPage.js.map +1 -1
- package/dist/brainyrich/pages/AiAssistantPage.d.ts +2 -0
- package/dist/brainyrich/pages/AiAssistantPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/AnalyticsPage.d.ts +2 -0
- package/dist/brainyrich/pages/AnalyticsPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/DashboardPage.d.ts +2 -0
- package/dist/brainyrich/pages/DashboardPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/DashboardPage.js +264 -256
- package/dist/brainyrich/pages/DashboardPage.js.map +1 -1
- package/dist/brainyrich/pages/FamilyPage.d.ts +2 -0
- package/dist/brainyrich/pages/FamilyPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/FamilyPage.js +467 -446
- package/dist/brainyrich/pages/FamilyPage.js.map +1 -1
- package/dist/brainyrich/pages/GoalsPage.d.ts +2 -0
- package/dist/brainyrich/pages/GoalsPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/GoalsPage.js +553 -531
- package/dist/brainyrich/pages/GoalsPage.js.map +1 -1
- package/dist/brainyrich/pages/InvestmentsPage.d.ts +2 -0
- package/dist/brainyrich/pages/InvestmentsPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/PortfoliosPage.d.ts +2 -0
- package/dist/brainyrich/pages/PortfoliosPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/PortfoliosPage.js +378 -354
- package/dist/brainyrich/pages/PortfoliosPage.js.map +1 -1
- package/dist/brainyrich/pages/ReportsPage.d.ts +2 -0
- package/dist/brainyrich/pages/ReportsPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/RiskPage.d.ts +2 -0
- package/dist/brainyrich/pages/RiskPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/TaxPage.d.ts +2 -0
- package/dist/brainyrich/pages/TaxPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/_shared.d.ts +77 -0
- package/dist/brainyrich/pages/_shared.d.ts.map +1 -0
- package/dist/brainyrich/providers/BrainyRichProvider.d.ts +6 -0
- package/dist/brainyrich/providers/BrainyRichProvider.d.ts.map +1 -0
- package/dist/brainyrich/services/createSandboxAssistantTransport.d.ts +24 -0
- package/dist/brainyrich/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/brainyrich/services/createSandboxAssistantTransport.js +14 -0
- package/dist/brainyrich/services/createSandboxAssistantTransport.js.map +1 -0
- package/dist/brainyrich/types/bra.d.ts +394 -0
- package/dist/brainyrich/types/bra.d.ts.map +1 -0
- package/dist/brainyrich/types/index.d.ts +39 -0
- package/dist/brainyrich/types/index.d.ts.map +1 -0
- package/dist/brainyrich/utils/cn.d.ts +4 -0
- package/dist/brainyrich/utils/cn.d.ts.map +1 -0
- package/dist/brainyrich/utils/i18n.d.ts +6 -0
- package/dist/brainyrich/utils/i18n.d.ts.map +1 -0
- package/dist/brainyrich/utils/nativeControls.d.ts +12 -0
- package/dist/brainyrich/utils/nativeControls.d.ts.map +1 -0
- package/dist/brainyrich/utils/nativeControls.js +12 -0
- package/dist/brainyrich/utils/nativeControls.js.map +1 -0
- package/dist/brainyrich/utils/navigation.d.ts +2 -0
- package/dist/brainyrich/utils/navigation.d.ts.map +1 -0
- package/dist/brainyrich/utils/pageContext.d.ts +30 -0
- package/dist/brainyrich/utils/pageContext.d.ts.map +1 -0
- package/dist/brainyrich/utils/pageContext.js +46 -0
- package/dist/brainyrich/utils/pageContext.js.map +1 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +18199 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +43046 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -1
- 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 {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
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
|
|
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
|
-
],
|
|
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
|
|
37
|
-
let { t } =
|
|
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,
|
|
41
|
-
icon: /* @__PURE__ */ I
|
|
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,
|
|
50
|
-
icon: /* @__PURE__ */
|
|
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,
|
|
58
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
70
|
+
icon: /* @__PURE__ */ R(ne, {
|
|
67
71
|
className: "size-4",
|
|
68
72
|
"aria-hidden": "true"
|
|
69
73
|
})
|
|
70
74
|
}
|
|
71
|
-
] : [],
|
|
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:
|
|
75
|
-
})) : [], [C]),
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
164
|
-
|
|
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__ */
|
|
169
|
-
|
|
170
|
-
children: /* @__PURE__ */
|
|
171
|
-
|
|
172
|
-
children:
|
|
173
|
-
className: "
|
|
174
|
-
children: /* @__PURE__ */
|
|
175
|
-
className: "
|
|
176
|
-
children:
|
|
177
|
-
className: "
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
className: "
|
|
185
|
-
children:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
"
|
|
223
|
-
}), n("brainyrich.dashboard.sections.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
302
|
+
icon: /* @__PURE__ */ R(j, {
|
|
295
303
|
className: "size-3",
|
|
296
304
|
"aria-hidden": "true"
|
|
297
305
|
})
|
|
298
306
|
}
|
|
299
307
|
};
|
|
300
|
-
function
|
|
308
|
+
function xe({ severity: e }) {
|
|
301
309
|
let t = $[e] ?? $.INFO;
|
|
302
|
-
return /* @__PURE__ */
|
|
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
|
|
308
|
-
let i = t(), a = r(), o = c(), [s, u] =
|
|
309
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
324
|
+
/* @__PURE__ */ z("div", {
|
|
317
325
|
className: "min-w-0 space-y-1",
|
|
318
326
|
children: [
|
|
319
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ z("div", {
|
|
320
328
|
className: "flex items-center gap-2",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
344
|
+
/* @__PURE__ */ z(ue, { children: [/* @__PURE__ */ R(fe, {
|
|
337
345
|
asChild: !0,
|
|
338
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
352
|
+
children: /* @__PURE__ */ R(M, {
|
|
345
353
|
className: "size-4",
|
|
346
354
|
"aria-hidden": "true"
|
|
347
355
|
})
|
|
348
356
|
})
|
|
349
|
-
}), /* @__PURE__ */
|
|
357
|
+
}), /* @__PURE__ */ z(de, {
|
|
350
358
|
align: "end",
|
|
351
359
|
children: [
|
|
352
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ z(Y, {
|
|
353
361
|
onSelect: () => i.mutate(e.id),
|
|
354
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
367
|
+
/* @__PURE__ */ z(Y, {
|
|
360
368
|
onSelect: () => o.mutate(e.id),
|
|
361
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
374
|
+
/* @__PURE__ */ z(Y, {
|
|
367
375
|
onSelect: () => u(!0),
|
|
368
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
390
|
-
let [t, r] =
|
|
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__ */
|
|
401
|
+
return /* @__PURE__ */ z(q, {
|
|
394
402
|
open: t,
|
|
395
403
|
onOpenChange: (e) => {
|
|
396
404
|
r(e), e || b();
|
|
397
405
|
},
|
|
398
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ z(V, {
|
|
399
407
|
size: "sm",
|
|
400
408
|
onClick: () => r(!0),
|
|
401
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
406
|
-
onSubmit: (
|
|
407
|
-
if (
|
|
408
|
-
let
|
|
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(
|
|
422
|
+
...Number.isFinite(n) ? { cashBalance: n } : {},
|
|
415
423
|
...h ? { householdId: h } : {}
|
|
416
424
|
};
|
|
417
|
-
_.mutate(
|
|
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__ */
|
|
424
|
-
/* @__PURE__ */
|
|
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__ */
|
|
434
|
+
children: [/* @__PURE__ */ R(Z, {
|
|
427
435
|
htmlFor: "bra-account-name",
|
|
428
436
|
children: e("brainyrich.dashboard.newAccount.name", "Account name")
|
|
429
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
446
|
+
/* @__PURE__ */ z("div", {
|
|
439
447
|
className: "grid gap-4 sm:grid-cols-2",
|
|
440
|
-
children: [/* @__PURE__ */
|
|
448
|
+
children: [/* @__PURE__ */ z("div", {
|
|
441
449
|
className: "space-y-2",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
450
|
+
children: [/* @__PURE__ */ R(Z, {
|
|
443
451
|
htmlFor: "bra-account-type",
|
|
444
452
|
children: e("brainyrich.dashboard.newAccount.type", "Type")
|
|
445
|
-
}), /* @__PURE__ */
|
|
453
|
+
}), /* @__PURE__ */ z(pe, {
|
|
446
454
|
value: o,
|
|
447
455
|
onValueChange: (e) => s(e),
|
|
448
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ R(ge, {
|
|
449
457
|
id: "bra-account-type",
|
|
450
|
-
children: /* @__PURE__ */
|
|
451
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
464
|
+
}), /* @__PURE__ */ z("div", {
|
|
457
465
|
className: "space-y-2",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
466
|
+
children: [/* @__PURE__ */ R(Z, {
|
|
459
467
|
htmlFor: "bra-account-currency",
|
|
460
468
|
children: e("brainyrich.dashboard.newAccount.currency", "Currency")
|
|
461
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
477
|
+
/* @__PURE__ */ z("div", {
|
|
470
478
|
className: "space-y-2",
|
|
471
|
-
children: [/* @__PURE__ */
|
|
479
|
+
children: [/* @__PURE__ */ R(Z, {
|
|
472
480
|
htmlFor: "bra-account-institution",
|
|
473
481
|
children: e("brainyrich.dashboard.newAccount.institution", "Institution (optional)")
|
|
474
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
497
|
+
/* @__PURE__ */ z("div", {
|
|
490
498
|
className: "space-y-2",
|
|
491
|
-
children: [/* @__PURE__ */
|
|
499
|
+
children: [/* @__PURE__ */ R(Z, {
|
|
492
500
|
htmlFor: "bra-account-cash",
|
|
493
501
|
children: e("brainyrich.dashboard.newAccount.cash", "Cash balance (optional)")
|
|
494
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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 {
|
|
532
|
+
export { be as DashboardPage };
|
|
525
533
|
|
|
526
534
|
//# sourceMappingURL=DashboardPage.js.map
|