@burdenoff/microfe-housingvista 2026.1102.3 → 2026.1102.4
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/housingvista/components/DocumentChip.d.ts +17 -0
- package/dist/housingvista/components/DocumentChip.d.ts.map +1 -0
- package/dist/housingvista/components/DocumentChip.js +68 -0
- package/dist/housingvista/components/DocumentChip.js.map +1 -0
- package/dist/housingvista/components/FileUploader.d.ts +2 -0
- package/dist/housingvista/components/FileUploader.d.ts.map +1 -1
- package/dist/housingvista/components/FileUploader.js +14 -14
- package/dist/housingvista/components/FileUploader.js.map +1 -1
- package/dist/housingvista/components/index.d.ts +1 -0
- package/dist/housingvista/components/index.d.ts.map +1 -1
- package/dist/housingvista/components/index.js +1 -0
- package/dist/housingvista/hooks/index.d.ts +9 -0
- package/dist/housingvista/hooks/index.d.ts.map +1 -1
- package/dist/housingvista/hooks/index.js +4 -2
- package/dist/housingvista/hooks/index.js.map +1 -1
- package/dist/housingvista/pages/investments/InvestmentDetailPage.d.ts.map +1 -1
- package/dist/housingvista/pages/investments/InvestmentDetailPage.js +345 -322
- package/dist/housingvista/pages/investments/InvestmentDetailPage.js.map +1 -1
- package/dist/housingvista/pages/investments/InvestmentDocuments.d.ts +11 -0
- package/dist/housingvista/pages/investments/InvestmentDocuments.d.ts.map +1 -0
- package/dist/housingvista/pages/investments/InvestmentDocuments.js +99 -0
- package/dist/housingvista/pages/investments/InvestmentDocuments.js.map +1 -0
- package/dist/housingvista/pages/rental/ApplicationDocuments.d.ts.map +1 -1
- package/dist/housingvista/pages/rental/ApplicationDocuments.js +7 -34
- package/dist/housingvista/pages/rental/ApplicationDocuments.js.map +1 -1
- package/dist/housingvista/types/index.d.ts +2 -0
- package/dist/housingvista/types/index.d.ts.map +1 -1
- package/dist/housingvista/utils/investmentDocuments.d.ts +17 -0
- package/dist/housingvista/utils/investmentDocuments.d.ts.map +1 -0
- package/dist/housingvista/utils/investmentDocuments.js +12 -0
- package/dist/housingvista/utils/investmentDocuments.js.map +1 -0
- package/package.json +1 -1
|
@@ -17,13 +17,14 @@ import { XAxis as fe } from "../../../node_modules/recharts/es6/cartesian/XAxis.
|
|
|
17
17
|
import { YAxis as pe } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
18
18
|
import { AreaChart as me } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
|
|
19
19
|
import { describeInvestmentError as he, formatInvestmentStatus as ge, getEditableInvestmentStatusOptions as _e } from "../../utils/investmentStatus.js";
|
|
20
|
+
import { InvestmentDocuments as ve } from "./InvestmentDocuments.js";
|
|
20
21
|
import { useState as s } from "react";
|
|
21
|
-
import { ArrowDownRight as
|
|
22
|
-
import { useNavigate as
|
|
22
|
+
import { ArrowDownRight as ye, ArrowLeft as be, ArrowUpRight as xe, BarChart3 as Se, Building as c, Calendar as Ce, Clock as we, DollarSign as l, FileText as Te, MapPin as Ee, Percent as De, Target as Oe, Trash2 as ke, TrendingUp as Ae, Users as je } from "lucide-react";
|
|
23
|
+
import { useNavigate as Me, useParams as Ne } from "react-router";
|
|
23
24
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
24
|
-
import { Button as f, EmphasisPanel as
|
|
25
|
+
import { Button as f, EmphasisPanel as Pe, NextSteps as Fe, PagePurpose as Ie, ResponsiveDialog as p, ResponsiveDialogContent as m, ResponsiveDialogDescription as h, ResponsiveDialogFooter as g, ResponsiveDialogHeader as _, ResponsiveDialogTitle as v } from "@burdenoff/fe-libs/ui";
|
|
25
26
|
//#region src/housingvista/pages/investments/InvestmentDetailPage.tsx
|
|
26
|
-
var y = "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
27
|
+
var y = "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", Le = [
|
|
27
28
|
{
|
|
28
29
|
value: "full_ownership",
|
|
29
30
|
label: "Full ownership"
|
|
@@ -40,7 +41,7 @@ var y = "h-10 w-full rounded-md border border-border-subtle bg-bg-surface px-3 t
|
|
|
40
41
|
value: "fund",
|
|
41
42
|
label: "Fund"
|
|
42
43
|
}
|
|
43
|
-
],
|
|
44
|
+
], Re = [
|
|
44
45
|
{
|
|
45
46
|
value: "low",
|
|
46
47
|
label: "Low"
|
|
@@ -86,7 +87,7 @@ function D(e) {
|
|
|
86
87
|
let t = b(e);
|
|
87
88
|
return `${S(t.firstName)} ${S(t.lastName)}`.trim() || S(t.name) || S(t.email) || "Investor";
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function ze(e) {
|
|
90
91
|
switch (e) {
|
|
91
92
|
case "active": return "success";
|
|
92
93
|
case "funding": return "warning";
|
|
@@ -102,10 +103,10 @@ function O(e) {
|
|
|
102
103
|
return e > 0 ? "text-status-success-text" : e < 0 ? "text-status-error-text" : "text-text-secondary";
|
|
103
104
|
}
|
|
104
105
|
function k() {
|
|
105
|
-
let { id: n } =
|
|
106
|
+
let { id: n } = Ne();
|
|
106
107
|
re("housingvista.investment.viewed", n);
|
|
107
|
-
let C =
|
|
108
|
-
if (
|
|
108
|
+
let C = Me(), { data: k, loading: Be, refetch: Ve } = ae(n), { updateInvestment: He, loading: A } = se(), { eligibilityVerified: j, loading: Ue } = oe(), { deleteInvestment: We, loading: M } = ie(), [N, P] = s("overview"), [Ge, F] = s(!1), [Ke, I] = s(!1), [L, R] = s(""), [z, qe] = s("draft"), [Je, Ye] = s("medium"), [Xe, Ze] = s("full_ownership"), [B, Qe] = s(""), [V, $e] = s(""), [H, et] = s("");
|
|
109
|
+
if (Be) return /* @__PURE__ */ u("div", {
|
|
109
110
|
className: "flex flex-col gap-6 p-6",
|
|
110
111
|
children: /* @__PURE__ */ u(ne, { variant: "detail" })
|
|
111
112
|
});
|
|
@@ -113,13 +114,13 @@ function k() {
|
|
|
113
114
|
className: "flex flex-col gap-6 p-6",
|
|
114
115
|
children: /* @__PURE__ */ u(a, {
|
|
115
116
|
illustration: "empty-search",
|
|
116
|
-
icon: /* @__PURE__ */ u(
|
|
117
|
+
icon: /* @__PURE__ */ u(c, { className: "h-16 w-16" }),
|
|
117
118
|
title: "Investment Not Found",
|
|
118
119
|
description: "The investment you're looking for doesn't exist or has been removed.",
|
|
119
120
|
action: /* @__PURE__ */ d("button", {
|
|
120
121
|
onClick: () => C("../investments"),
|
|
121
122
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg-hover",
|
|
122
|
-
children: [/* @__PURE__ */ u(
|
|
123
|
+
children: [/* @__PURE__ */ u(be, { className: "h-4 w-4" }), "Back to Investments"]
|
|
123
124
|
})
|
|
124
125
|
})
|
|
125
126
|
});
|
|
@@ -140,7 +141,7 @@ function k() {
|
|
|
140
141
|
date: n.date,
|
|
141
142
|
investorName: D(n.investor)
|
|
142
143
|
};
|
|
143
|
-
}),
|
|
144
|
+
}), tt = W.map((e) => ({
|
|
144
145
|
ts: w(e.date) ?? 0,
|
|
145
146
|
label: T(e.date),
|
|
146
147
|
amount: e.amount
|
|
@@ -151,18 +152,26 @@ function k() {
|
|
|
151
152
|
amount: t.amount,
|
|
152
153
|
cumulative: n + t.amount
|
|
153
154
|
}), e;
|
|
154
|
-
}, []), G = b(k.property), K = S(G.title) || "Investment", q = b(G.location),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
155
|
+
}, []), G = b(k.property), K = S(G.title) || "Investment", q = b(G.location), nt = S(G.type), rt = [S(q.city), S(q.state)].filter(Boolean), it = S(q.neighborhood), J = U.reduce((e, t) => e + t.investmentAmount, 0), Y = W.reduce((e, t) => e + t.amount, 0), at = J + Y, ot = J > 0 ? Y / J * 100 : 0, st = w(k.startDate), ct = w(k.maturityDate), lt = st !== null && ct !== null ? Math.max(0, Math.round((ct - st) / (1e3 * 60 * 60 * 24 * 30))) : null, X = S(k.riskLevel), Z = X ? X.charAt(0).toUpperCase() + X.slice(1) : "Unknown", ut = S(k.investmentType).replace("_", " ") || "Investment", dt = [
|
|
156
|
+
{
|
|
157
|
+
id: "overview",
|
|
158
|
+
label: "Overview",
|
|
159
|
+
icon: c
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "returns",
|
|
163
|
+
label: "Returns History",
|
|
164
|
+
icon: Se
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: "documents",
|
|
168
|
+
label: "Documents",
|
|
169
|
+
icon: Te
|
|
170
|
+
}
|
|
171
|
+
], Q = S(k.status) || "draft", ft = _e(j, Q), $ = () => {
|
|
172
|
+
R(S(k.title) || K), qe(Q), Ye(S(k.riskLevel) || "medium"), Ze(S(k.investmentType) || "full_ownership");
|
|
164
173
|
let e = x(k.totalValue);
|
|
165
|
-
|
|
174
|
+
Qe(e > 0 ? String(e) : ""), $e(E(k.startDate)), et(E(k.maturityDate)), F(!0);
|
|
166
175
|
};
|
|
167
176
|
return /* @__PURE__ */ d("div", {
|
|
168
177
|
className: "flex flex-col gap-6 p-6",
|
|
@@ -177,7 +186,7 @@ function k() {
|
|
|
177
186
|
/* @__PURE__ */ d("button", {
|
|
178
187
|
onClick: () => C("../investments"),
|
|
179
188
|
className: "mb-2 inline-flex items-center gap-2 rounded-md px-2 py-1 text-sm text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary",
|
|
180
|
-
children: [/* @__PURE__ */ u(
|
|
189
|
+
children: [/* @__PURE__ */ u(be, { className: "h-4 w-4" }), "Back to Investments"]
|
|
181
190
|
}),
|
|
182
191
|
/* @__PURE__ */ u("h1", {
|
|
183
192
|
className: "text-2xl font-semibold text-text-primary",
|
|
@@ -188,10 +197,10 @@ function k() {
|
|
|
188
197
|
children: [
|
|
189
198
|
/* @__PURE__ */ u(i, {
|
|
190
199
|
label: ge(k.status),
|
|
191
|
-
variant:
|
|
200
|
+
variant: ze(k.status)
|
|
192
201
|
}),
|
|
193
202
|
/* @__PURE__ */ u(i, {
|
|
194
|
-
label:
|
|
203
|
+
label: ut,
|
|
195
204
|
variant: "muted"
|
|
196
205
|
}),
|
|
197
206
|
/* @__PURE__ */ u(i, {
|
|
@@ -205,19 +214,19 @@ function k() {
|
|
|
205
214
|
children: [/* @__PURE__ */ d("button", {
|
|
206
215
|
onClick: $,
|
|
207
216
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg-hover",
|
|
208
|
-
children: [/* @__PURE__ */ u(
|
|
217
|
+
children: [/* @__PURE__ */ u(l, { className: "h-4 w-4" }), "Manage Investment"]
|
|
209
218
|
}), /* @__PURE__ */ d("button", {
|
|
210
219
|
onClick: () => I(!0),
|
|
211
220
|
className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-status-error-text transition-colors hover:bg-status-error-bg-subtle",
|
|
212
|
-
children: [/* @__PURE__ */ u(
|
|
221
|
+
children: [/* @__PURE__ */ u(ke, { className: "h-4 w-4" }), "Delete"]
|
|
213
222
|
})]
|
|
214
223
|
})]
|
|
215
224
|
}),
|
|
216
|
-
/* @__PURE__ */ u(
|
|
225
|
+
/* @__PURE__ */ u(Ie, {
|
|
217
226
|
className: "max-w-3xl",
|
|
218
227
|
children: "A full breakdown of one investment — how much was put in, what it is worth today, every return paid out, and the co-investors. Use it to judge performance and decide whether to hold, add, or exit."
|
|
219
228
|
}),
|
|
220
|
-
/* @__PURE__ */ u(
|
|
229
|
+
/* @__PURE__ */ u(Fe, {
|
|
221
230
|
storageKey: "housingvista-investment-detail",
|
|
222
231
|
steps: [
|
|
223
232
|
{
|
|
@@ -240,7 +249,7 @@ function k() {
|
|
|
240
249
|
}
|
|
241
250
|
]
|
|
242
251
|
}),
|
|
243
|
-
/* @__PURE__ */ u(
|
|
252
|
+
/* @__PURE__ */ u(Pe, {
|
|
244
253
|
className: "p-4",
|
|
245
254
|
children: /* @__PURE__ */ d("div", {
|
|
246
255
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
@@ -249,24 +258,24 @@ function k() {
|
|
|
249
258
|
label: "Invested Amount",
|
|
250
259
|
value: J,
|
|
251
260
|
prefix: "$",
|
|
252
|
-
icon: /* @__PURE__ */ u(
|
|
261
|
+
icon: /* @__PURE__ */ u(l, { className: "h-4 w-4" })
|
|
253
262
|
}),
|
|
254
263
|
/* @__PURE__ */ u(r, {
|
|
255
264
|
label: "Current Value",
|
|
256
|
-
value:
|
|
265
|
+
value: at,
|
|
257
266
|
prefix: "$",
|
|
258
|
-
icon: /* @__PURE__ */ u(
|
|
267
|
+
icon: /* @__PURE__ */ u(Ae, { className: "h-4 w-4" })
|
|
259
268
|
}),
|
|
260
269
|
/* @__PURE__ */ u(r, {
|
|
261
270
|
label: "Total Returns",
|
|
262
271
|
value: Y,
|
|
263
272
|
prefix: "$",
|
|
264
|
-
icon: /* @__PURE__ */ u(
|
|
273
|
+
icon: /* @__PURE__ */ u(De, { className: "h-4 w-4" })
|
|
265
274
|
}),
|
|
266
275
|
/* @__PURE__ */ u(r, {
|
|
267
276
|
label: "Risk Level",
|
|
268
277
|
value: Z,
|
|
269
|
-
icon: /* @__PURE__ */ u(
|
|
278
|
+
icon: /* @__PURE__ */ u(Oe, { className: "h-4 w-4" })
|
|
270
279
|
})
|
|
271
280
|
]
|
|
272
281
|
})
|
|
@@ -275,7 +284,7 @@ function k() {
|
|
|
275
284
|
className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm",
|
|
276
285
|
children: [/* @__PURE__ */ u("div", {
|
|
277
286
|
className: "flex gap-0 border-b border-border-subtle",
|
|
278
|
-
children:
|
|
287
|
+
children: dt.map((t) => {
|
|
279
288
|
let n = t.icon;
|
|
280
289
|
return /* @__PURE__ */ d("button", {
|
|
281
290
|
onClick: () => P(t.id),
|
|
@@ -285,290 +294,304 @@ function k() {
|
|
|
285
294
|
})
|
|
286
295
|
}), /* @__PURE__ */ d("div", {
|
|
287
296
|
className: "p-6",
|
|
288
|
-
children: [
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
children: [/* @__PURE__ */ u(l, { className: "h-4 w-4" }), "Property Type"]
|
|
390
|
-
}), /* @__PURE__ */ u("div", {
|
|
391
|
-
className: "font-semibold capitalize text-text-primary",
|
|
392
|
-
children: $e ? $e.replace("_", " ") : "Not specified"
|
|
393
|
-
})]
|
|
394
|
-
}),
|
|
395
|
-
/* @__PURE__ */ d("div", {
|
|
396
|
-
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
397
|
-
children: [
|
|
398
|
-
/* @__PURE__ */ d("div", {
|
|
297
|
+
children: [
|
|
298
|
+
N === "overview" && /* @__PURE__ */ d("div", {
|
|
299
|
+
className: "space-y-6",
|
|
300
|
+
children: [
|
|
301
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("h3", {
|
|
302
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
303
|
+
children: "Investment Details"
|
|
304
|
+
}), /* @__PURE__ */ d("div", {
|
|
305
|
+
className: "rounded-lg bg-bg-sunken/50 p-4 space-y-3",
|
|
306
|
+
children: [
|
|
307
|
+
/* @__PURE__ */ d("div", {
|
|
308
|
+
className: "flex justify-between",
|
|
309
|
+
children: [/* @__PURE__ */ u("span", {
|
|
310
|
+
className: "text-text-secondary",
|
|
311
|
+
children: "Investment Type"
|
|
312
|
+
}), /* @__PURE__ */ u("span", {
|
|
313
|
+
className: "font-medium capitalize text-text-primary",
|
|
314
|
+
children: ut
|
|
315
|
+
})]
|
|
316
|
+
}),
|
|
317
|
+
/* @__PURE__ */ d("div", {
|
|
318
|
+
className: "flex justify-between",
|
|
319
|
+
children: [/* @__PURE__ */ u("span", {
|
|
320
|
+
className: "text-text-secondary",
|
|
321
|
+
children: "Property"
|
|
322
|
+
}), /* @__PURE__ */ u("span", {
|
|
323
|
+
className: "font-medium text-text-primary",
|
|
324
|
+
children: K
|
|
325
|
+
})]
|
|
326
|
+
}),
|
|
327
|
+
/* @__PURE__ */ d("div", {
|
|
328
|
+
className: "flex justify-between",
|
|
329
|
+
children: [/* @__PURE__ */ u("span", {
|
|
330
|
+
className: "text-text-secondary",
|
|
331
|
+
children: "Total Property Value"
|
|
332
|
+
}), /* @__PURE__ */ u("span", {
|
|
333
|
+
className: "font-medium text-text-primary",
|
|
334
|
+
children: t(x(k.totalValue))
|
|
335
|
+
})]
|
|
336
|
+
}),
|
|
337
|
+
/* @__PURE__ */ d("div", {
|
|
338
|
+
className: "flex justify-between",
|
|
339
|
+
children: [/* @__PURE__ */ u("span", {
|
|
340
|
+
className: "text-text-secondary",
|
|
341
|
+
children: "Risk Level"
|
|
342
|
+
}), /* @__PURE__ */ u("span", {
|
|
343
|
+
className: "font-medium capitalize text-text-primary",
|
|
344
|
+
children: Z
|
|
345
|
+
})]
|
|
346
|
+
}),
|
|
347
|
+
/* @__PURE__ */ d("div", {
|
|
348
|
+
className: "flex justify-between",
|
|
349
|
+
children: [/* @__PURE__ */ u("span", {
|
|
350
|
+
className: "text-text-secondary",
|
|
351
|
+
children: "Start Date"
|
|
352
|
+
}), /* @__PURE__ */ u("span", {
|
|
353
|
+
className: "font-medium text-text-primary",
|
|
354
|
+
children: T(k.startDate)
|
|
355
|
+
})]
|
|
356
|
+
}),
|
|
357
|
+
k.maturityDate && /* @__PURE__ */ d("div", {
|
|
358
|
+
className: "flex justify-between",
|
|
359
|
+
children: [/* @__PURE__ */ u("span", {
|
|
360
|
+
className: "text-text-secondary",
|
|
361
|
+
children: "Maturity Date"
|
|
362
|
+
}), /* @__PURE__ */ u("span", {
|
|
363
|
+
className: "font-medium text-text-primary",
|
|
364
|
+
children: T(k.maturityDate)
|
|
365
|
+
})]
|
|
366
|
+
}),
|
|
367
|
+
/* @__PURE__ */ d("div", {
|
|
368
|
+
className: "flex justify-between border-t border-border-subtle pt-3",
|
|
369
|
+
children: [/* @__PURE__ */ u("span", {
|
|
370
|
+
className: "font-medium text-text-secondary",
|
|
371
|
+
children: "Total Return"
|
|
372
|
+
}), /* @__PURE__ */ u("div", {
|
|
373
|
+
className: e("font-bold", O(Y)),
|
|
374
|
+
children: /* @__PURE__ */ d("div", {
|
|
375
|
+
className: "flex items-center gap-1",
|
|
376
|
+
children: [
|
|
377
|
+
Y > 0 && /* @__PURE__ */ u(xe, { className: "h-4 w-4" }),
|
|
378
|
+
Y < 0 && /* @__PURE__ */ u(ye, { className: "h-4 w-4" }),
|
|
379
|
+
t(Y),
|
|
380
|
+
" (",
|
|
381
|
+
ot.toFixed(1),
|
|
382
|
+
"%)"
|
|
383
|
+
]
|
|
384
|
+
})
|
|
385
|
+
})]
|
|
386
|
+
})
|
|
387
|
+
]
|
|
388
|
+
})] }),
|
|
389
|
+
/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("h3", {
|
|
390
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
391
|
+
children: "Property Information"
|
|
392
|
+
}), /* @__PURE__ */ d("div", {
|
|
393
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
394
|
+
children: [
|
|
395
|
+
/* @__PURE__ */ d("div", {
|
|
396
|
+
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
397
|
+
children: [/* @__PURE__ */ d("div", {
|
|
399
398
|
className: "mb-1 flex items-center gap-2 text-sm text-text-secondary",
|
|
400
|
-
children: [/* @__PURE__ */ u(
|
|
401
|
-
}),
|
|
402
|
-
|
|
399
|
+
children: [/* @__PURE__ */ u(c, { className: "h-4 w-4" }), "Property Type"]
|
|
400
|
+
}), /* @__PURE__ */ u("div", {
|
|
401
|
+
className: "font-semibold capitalize text-text-primary",
|
|
402
|
+
children: nt ? nt.replace("_", " ") : "Not specified"
|
|
403
|
+
})]
|
|
404
|
+
}),
|
|
405
|
+
/* @__PURE__ */ d("div", {
|
|
406
|
+
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
407
|
+
children: [
|
|
408
|
+
/* @__PURE__ */ d("div", {
|
|
409
|
+
className: "mb-1 flex items-center gap-2 text-sm text-text-secondary",
|
|
410
|
+
children: [/* @__PURE__ */ u(Ee, { className: "h-4 w-4" }), "Location"]
|
|
411
|
+
}),
|
|
412
|
+
/* @__PURE__ */ u("div", {
|
|
413
|
+
className: "font-semibold text-text-primary",
|
|
414
|
+
children: rt.length > 0 ? rt.join(", ") : "Location not available"
|
|
415
|
+
}),
|
|
416
|
+
it && /* @__PURE__ */ u("div", {
|
|
417
|
+
className: "text-sm text-text-secondary",
|
|
418
|
+
children: it
|
|
419
|
+
})
|
|
420
|
+
]
|
|
421
|
+
}),
|
|
422
|
+
/* @__PURE__ */ d("div", {
|
|
423
|
+
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
424
|
+
children: [/* @__PURE__ */ d("div", {
|
|
425
|
+
className: "mb-1 flex items-center gap-2 text-sm text-text-secondary",
|
|
426
|
+
children: [/* @__PURE__ */ u(Ce, { className: "h-4 w-4" }), "Start Date"]
|
|
427
|
+
}), /* @__PURE__ */ u("div", {
|
|
403
428
|
className: "font-semibold text-text-primary",
|
|
404
|
-
children:
|
|
405
|
-
})
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
U.length > 0 && /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ d("h3", {
|
|
435
|
-
className: "mb-4 flex items-center gap-2 text-lg font-semibold text-text-primary",
|
|
436
|
-
children: [
|
|
437
|
-
/* @__PURE__ */ u(ke, { className: "h-5 w-5" }),
|
|
438
|
-
"Investors (",
|
|
439
|
-
U.length,
|
|
440
|
-
")"
|
|
441
|
-
]
|
|
442
|
-
}), /* @__PURE__ */ u("div", {
|
|
443
|
-
className: "space-y-2",
|
|
444
|
-
children: U.map((e, n) => /* @__PURE__ */ d("div", {
|
|
445
|
-
className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 p-4",
|
|
446
|
-
children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("div", {
|
|
447
|
-
className: "font-medium text-text-primary",
|
|
448
|
-
children: e.name
|
|
449
|
-
}), /* @__PURE__ */ d("div", {
|
|
450
|
-
className: "text-sm text-text-secondary",
|
|
451
|
-
children: ["Invested: ", t(e.investmentAmount)]
|
|
452
|
-
})] }), /* @__PURE__ */ d("div", {
|
|
453
|
-
className: "text-right",
|
|
454
|
-
children: [/* @__PURE__ */ d("div", {
|
|
455
|
-
className: "font-semibold text-text-primary",
|
|
456
|
-
children: [e.shares, "% share"]
|
|
429
|
+
children: T(k.startDate)
|
|
430
|
+
})]
|
|
431
|
+
}),
|
|
432
|
+
/* @__PURE__ */ d("div", {
|
|
433
|
+
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
434
|
+
children: [/* @__PURE__ */ d("div", {
|
|
435
|
+
className: "mb-1 flex items-center gap-2 text-sm text-text-secondary",
|
|
436
|
+
children: [/* @__PURE__ */ u(we, { className: "h-4 w-4" }), "Duration"]
|
|
437
|
+
}), /* @__PURE__ */ u("div", {
|
|
438
|
+
className: "font-semibold text-text-primary",
|
|
439
|
+
children: lt === null ? "Ongoing" : `${lt} months`
|
|
440
|
+
})]
|
|
441
|
+
})
|
|
442
|
+
]
|
|
443
|
+
})] }),
|
|
444
|
+
U.length > 0 && /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ d("h3", {
|
|
445
|
+
className: "mb-4 flex items-center gap-2 text-lg font-semibold text-text-primary",
|
|
446
|
+
children: [
|
|
447
|
+
/* @__PURE__ */ u(je, { className: "h-5 w-5" }),
|
|
448
|
+
"Investors (",
|
|
449
|
+
U.length,
|
|
450
|
+
")"
|
|
451
|
+
]
|
|
452
|
+
}), /* @__PURE__ */ u("div", {
|
|
453
|
+
className: "space-y-2",
|
|
454
|
+
children: U.map((e, n) => /* @__PURE__ */ d("div", {
|
|
455
|
+
className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 p-4",
|
|
456
|
+
children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("div", {
|
|
457
|
+
className: "font-medium text-text-primary",
|
|
458
|
+
children: e.name
|
|
457
459
|
}), /* @__PURE__ */ d("div", {
|
|
458
460
|
className: "text-sm text-text-secondary",
|
|
459
|
-
children: ["
|
|
461
|
+
children: ["Invested: ", t(e.investmentAmount)]
|
|
462
|
+
})] }), /* @__PURE__ */ d("div", {
|
|
463
|
+
className: "text-right",
|
|
464
|
+
children: [/* @__PURE__ */ d("div", {
|
|
465
|
+
className: "font-semibold text-text-primary",
|
|
466
|
+
children: [e.shares, "% share"]
|
|
467
|
+
}), /* @__PURE__ */ d("div", {
|
|
468
|
+
className: "text-sm text-text-secondary",
|
|
469
|
+
children: ["Joined: ", T(e.joinedAt)]
|
|
470
|
+
})]
|
|
460
471
|
})]
|
|
472
|
+
}, n))
|
|
473
|
+
})] })
|
|
474
|
+
]
|
|
475
|
+
}),
|
|
476
|
+
N === "returns" && /* @__PURE__ */ d("div", {
|
|
477
|
+
className: "space-y-6",
|
|
478
|
+
children: [/* @__PURE__ */ d("div", {
|
|
479
|
+
className: "flex items-center justify-between",
|
|
480
|
+
children: [/* @__PURE__ */ u("h3", {
|
|
481
|
+
className: "text-lg font-semibold text-text-primary",
|
|
482
|
+
children: "Returns History"
|
|
483
|
+
}), /* @__PURE__ */ d("div", {
|
|
484
|
+
className: "text-right",
|
|
485
|
+
children: [/* @__PURE__ */ u("div", {
|
|
486
|
+
className: "text-sm text-text-secondary",
|
|
487
|
+
children: "Total Returns"
|
|
488
|
+
}), /* @__PURE__ */ u("div", {
|
|
489
|
+
className: e("text-2xl font-bold", O(Y)),
|
|
490
|
+
children: t(Y)
|
|
461
491
|
})]
|
|
462
|
-
}, n))
|
|
463
|
-
})] })
|
|
464
|
-
]
|
|
465
|
-
}), N === "returns" && /* @__PURE__ */ d("div", {
|
|
466
|
-
className: "space-y-6",
|
|
467
|
-
children: [/* @__PURE__ */ d("div", {
|
|
468
|
-
className: "flex items-center justify-between",
|
|
469
|
-
children: [/* @__PURE__ */ u("h3", {
|
|
470
|
-
className: "text-lg font-semibold text-text-primary",
|
|
471
|
-
children: "Returns History"
|
|
472
|
-
}), /* @__PURE__ */ d("div", {
|
|
473
|
-
className: "text-right",
|
|
474
|
-
children: [/* @__PURE__ */ u("div", {
|
|
475
|
-
className: "text-sm text-text-secondary",
|
|
476
|
-
children: "Total Returns"
|
|
477
|
-
}), /* @__PURE__ */ u("div", {
|
|
478
|
-
className: e("text-2xl font-bold", O(Y)),
|
|
479
|
-
children: t(Y)
|
|
480
492
|
})]
|
|
481
|
-
})
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
})
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
493
|
+
}), W.length > 0 ? /* @__PURE__ */ d("div", {
|
|
494
|
+
className: "space-y-6",
|
|
495
|
+
children: [/* @__PURE__ */ u(ee, {
|
|
496
|
+
title: "Performance Over Time",
|
|
497
|
+
description: "Cumulative returns paid out over time",
|
|
498
|
+
children: /* @__PURE__ */ u("div", {
|
|
499
|
+
className: "h-64",
|
|
500
|
+
children: /* @__PURE__ */ u(le, {
|
|
501
|
+
width: "100%",
|
|
502
|
+
height: "100%",
|
|
503
|
+
children: /* @__PURE__ */ d(me, {
|
|
504
|
+
data: tt,
|
|
505
|
+
children: [
|
|
506
|
+
/* @__PURE__ */ u("defs", { children: /* @__PURE__ */ d("linearGradient", {
|
|
507
|
+
id: "returnsGrad",
|
|
508
|
+
x1: "0",
|
|
509
|
+
y1: "0",
|
|
510
|
+
x2: "0",
|
|
511
|
+
y2: "1",
|
|
512
|
+
children: [/* @__PURE__ */ u("stop", {
|
|
513
|
+
offset: "5%",
|
|
514
|
+
stopColor: "var(--color-chart-1)",
|
|
515
|
+
stopOpacity: .3
|
|
516
|
+
}), /* @__PURE__ */ u("stop", {
|
|
517
|
+
offset: "95%",
|
|
518
|
+
stopColor: "var(--color-chart-1)",
|
|
519
|
+
stopOpacity: 0
|
|
520
|
+
})]
|
|
521
|
+
}) }),
|
|
522
|
+
/* @__PURE__ */ u(ue, {
|
|
523
|
+
strokeDasharray: "3 3",
|
|
524
|
+
className: "stroke-border"
|
|
525
|
+
}),
|
|
526
|
+
/* @__PURE__ */ u(fe, {
|
|
527
|
+
dataKey: "label",
|
|
528
|
+
tick: { fontSize: 11 },
|
|
529
|
+
className: "text-text-secondary"
|
|
530
|
+
}),
|
|
531
|
+
/* @__PURE__ */ u(pe, {
|
|
532
|
+
tick: { fontSize: 11 },
|
|
533
|
+
tickFormatter: (e) => `$${(e / 1e3).toFixed(0)}K`,
|
|
534
|
+
className: "text-text-secondary"
|
|
535
|
+
}),
|
|
536
|
+
/* @__PURE__ */ u(ce, {
|
|
537
|
+
formatter: (e) => [t(e), "Cumulative returns"],
|
|
538
|
+
labelClassName: "text-text-primary"
|
|
539
|
+
}),
|
|
540
|
+
/* @__PURE__ */ u(de, {
|
|
541
|
+
type: "monotone",
|
|
542
|
+
dataKey: "cumulative",
|
|
543
|
+
stroke: "var(--color-chart-1)",
|
|
544
|
+
fill: "url(#returnsGrad)",
|
|
545
|
+
strokeWidth: 2
|
|
546
|
+
})
|
|
547
|
+
]
|
|
548
|
+
})
|
|
537
549
|
})
|
|
538
550
|
})
|
|
539
|
-
})
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
children: e.type
|
|
547
|
-
}), /* @__PURE__ */ u("div", {
|
|
548
|
-
className: "text-sm text-text-secondary",
|
|
549
|
-
children: T(e.date)
|
|
550
|
-
})] }), /* @__PURE__ */ d("div", {
|
|
551
|
-
className: "text-right",
|
|
552
|
-
children: [/* @__PURE__ */ d("div", {
|
|
553
|
-
className: "font-bold text-status-success-text",
|
|
554
|
-
children: ["+", t(e.amount)]
|
|
551
|
+
}), /* @__PURE__ */ u("div", {
|
|
552
|
+
className: "space-y-3",
|
|
553
|
+
children: W.map((e) => /* @__PURE__ */ d("div", {
|
|
554
|
+
className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 p-4",
|
|
555
|
+
children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("div", {
|
|
556
|
+
className: "font-medium capitalize text-text-primary",
|
|
557
|
+
children: e.type
|
|
555
558
|
}), /* @__PURE__ */ u("div", {
|
|
556
559
|
className: "text-sm text-text-secondary",
|
|
557
|
-
children: e.
|
|
560
|
+
children: T(e.date)
|
|
561
|
+
})] }), /* @__PURE__ */ d("div", {
|
|
562
|
+
className: "text-right",
|
|
563
|
+
children: [/* @__PURE__ */ d("div", {
|
|
564
|
+
className: "font-bold text-status-success-text",
|
|
565
|
+
children: ["+", t(e.amount)]
|
|
566
|
+
}), /* @__PURE__ */ u("div", {
|
|
567
|
+
className: "text-sm text-text-secondary",
|
|
568
|
+
children: e.investorName
|
|
569
|
+
})]
|
|
558
570
|
})]
|
|
559
|
-
})
|
|
560
|
-
}
|
|
571
|
+
}, e.id))
|
|
572
|
+
})]
|
|
573
|
+
}) : /* @__PURE__ */ u(a, {
|
|
574
|
+
illustration: "empty-data",
|
|
575
|
+
title: "No returns recorded yet",
|
|
576
|
+
description: "Returns will appear here once distributions are made."
|
|
561
577
|
})]
|
|
562
|
-
})
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
578
|
+
}),
|
|
579
|
+
N === "documents" && /* @__PURE__ */ u(ve, {
|
|
580
|
+
investmentId: k.id,
|
|
581
|
+
fileIds: k.documentFileIds ?? [],
|
|
582
|
+
reloadFileIds: async () => {
|
|
583
|
+
try {
|
|
584
|
+
return (await Ve()).data?.housingvistaInvestment?.documentFileIds ?? null;
|
|
585
|
+
} catch {
|
|
586
|
+
return null;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
})
|
|
590
|
+
]
|
|
568
591
|
})]
|
|
569
592
|
}),
|
|
570
593
|
/* @__PURE__ */ u(p, {
|
|
571
|
-
open:
|
|
594
|
+
open: Ge,
|
|
572
595
|
onOpenChange: F,
|
|
573
596
|
children: /* @__PURE__ */ u(m, {
|
|
574
597
|
className: "sm:max-w-md",
|
|
@@ -585,11 +608,11 @@ function k() {
|
|
|
585
608
|
return;
|
|
586
609
|
}
|
|
587
610
|
try {
|
|
588
|
-
await
|
|
611
|
+
await He(n, {
|
|
589
612
|
title: L.trim(),
|
|
590
613
|
status: z === Q ? void 0 : z,
|
|
591
|
-
riskLevel:
|
|
592
|
-
investmentType:
|
|
614
|
+
riskLevel: Je,
|
|
615
|
+
investmentType: Xe,
|
|
593
616
|
totalValue: t,
|
|
594
617
|
startDate: V ? new Date(V).toISOString() : void 0,
|
|
595
618
|
maturityDate: H ? new Date(H).toISOString() : void 0
|
|
@@ -619,10 +642,10 @@ function k() {
|
|
|
619
642
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
620
643
|
children: "Type"
|
|
621
644
|
}), /* @__PURE__ */ u("select", {
|
|
622
|
-
value:
|
|
623
|
-
onChange: (e) =>
|
|
645
|
+
value: Xe,
|
|
646
|
+
onChange: (e) => Ze(e.target.value),
|
|
624
647
|
className: y,
|
|
625
|
-
children:
|
|
648
|
+
children: Le.map((e) => /* @__PURE__ */ u("option", {
|
|
626
649
|
value: e.value,
|
|
627
650
|
children: e.label
|
|
628
651
|
}, e.value))
|
|
@@ -631,10 +654,10 @@ function k() {
|
|
|
631
654
|
children: "Status"
|
|
632
655
|
}), /* @__PURE__ */ u("select", {
|
|
633
656
|
value: z,
|
|
634
|
-
onChange: (e) =>
|
|
657
|
+
onChange: (e) => qe(e.target.value),
|
|
635
658
|
className: y,
|
|
636
659
|
"aria-describedby": j ? void 0 : "investment-status-note",
|
|
637
|
-
children:
|
|
660
|
+
children: ft.map((e) => /* @__PURE__ */ u("option", {
|
|
638
661
|
value: e.value,
|
|
639
662
|
children: e.label
|
|
640
663
|
}, e.value))
|
|
@@ -651,10 +674,10 @@ function k() {
|
|
|
651
674
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
652
675
|
children: "Risk level"
|
|
653
676
|
}), /* @__PURE__ */ u("select", {
|
|
654
|
-
value:
|
|
655
|
-
onChange: (e) =>
|
|
677
|
+
value: Je,
|
|
678
|
+
onChange: (e) => Ye(e.target.value),
|
|
656
679
|
className: y,
|
|
657
|
-
children:
|
|
680
|
+
children: Re.map((e) => /* @__PURE__ */ u("option", {
|
|
658
681
|
value: e.value,
|
|
659
682
|
children: e.label
|
|
660
683
|
}, e.value))
|
|
@@ -667,7 +690,7 @@ function k() {
|
|
|
667
690
|
min: 1,
|
|
668
691
|
step: "any",
|
|
669
692
|
value: B,
|
|
670
|
-
onChange: (e) =>
|
|
693
|
+
onChange: (e) => Qe(e.target.value),
|
|
671
694
|
className: y
|
|
672
695
|
})] })]
|
|
673
696
|
}),
|
|
@@ -679,7 +702,7 @@ function k() {
|
|
|
679
702
|
}), /* @__PURE__ */ u("input", {
|
|
680
703
|
type: "date",
|
|
681
704
|
value: V,
|
|
682
|
-
onChange: (e) =>
|
|
705
|
+
onChange: (e) => $e(e.target.value),
|
|
683
706
|
className: y
|
|
684
707
|
})] }), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("label", {
|
|
685
708
|
className: "mb-1.5 block text-sm font-medium text-text-primary",
|
|
@@ -687,7 +710,7 @@ function k() {
|
|
|
687
710
|
}), /* @__PURE__ */ u("input", {
|
|
688
711
|
type: "date",
|
|
689
712
|
value: H,
|
|
690
|
-
onChange: (e) =>
|
|
713
|
+
onChange: (e) => et(e.target.value),
|
|
691
714
|
className: y
|
|
692
715
|
})] })]
|
|
693
716
|
})
|
|
@@ -700,7 +723,7 @@ function k() {
|
|
|
700
723
|
children: "Cancel"
|
|
701
724
|
}), /* @__PURE__ */ u(f, {
|
|
702
725
|
type: "submit",
|
|
703
|
-
disabled: A ||
|
|
726
|
+
disabled: A || Ue || !L.trim() || !B,
|
|
704
727
|
children: A ? "Saving…" : "Save changes"
|
|
705
728
|
})] })
|
|
706
729
|
]
|
|
@@ -708,7 +731,7 @@ function k() {
|
|
|
708
731
|
})
|
|
709
732
|
}),
|
|
710
733
|
/* @__PURE__ */ u(p, {
|
|
711
|
-
open:
|
|
734
|
+
open: Ke,
|
|
712
735
|
onOpenChange: I,
|
|
713
736
|
children: /* @__PURE__ */ d(m, {
|
|
714
737
|
className: "sm:max-w-sm",
|
|
@@ -726,7 +749,7 @@ function k() {
|
|
|
726
749
|
variant: "destructive",
|
|
727
750
|
onClick: async () => {
|
|
728
751
|
if (n) try {
|
|
729
|
-
await
|
|
752
|
+
await We(n), o.success("Investment deleted"), I(!1), C("../investments");
|
|
730
753
|
} catch (e) {
|
|
731
754
|
o.error("Could not delete investment", e.message);
|
|
732
755
|
}
|