@burdenoff/microfe-adaptercloud 2026.624.1 → 2026.625.2
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/adaptercloud/components/EmptyState.js +17 -21
- package/dist/adaptercloud/components/EmptyState.js.map +1 -1
- package/dist/adaptercloud/components/InvestmentCard.js +25 -23
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -1
- package/dist/adaptercloud/components/MetricsCard.js +18 -12
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -1
- package/dist/adaptercloud/components/PageLayout.js +45 -19
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/components/RatingDisplay.js +3 -3
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -1
- package/dist/adaptercloud/components/StatusBadge.js +36 -16
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +244 -231
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +121 -113
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +102 -76
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +70 -65
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +108 -103
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +61 -59
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +119 -105
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +165 -160
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +174 -169
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +103 -97
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +186 -172
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +109 -81
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +111 -109
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +127 -124
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +310 -316
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +251 -257
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +142 -148
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +287 -283
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +120 -114
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/SettingsPage.js +754 -736
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +83 -80
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +120 -117
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +231 -226
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +97 -95
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +418 -389
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +134 -132
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +108 -102
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +62 -59
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +117 -111
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +71 -68
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +97 -81
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +83 -80
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +82 -66
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +93 -91
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +100 -97
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +83 -81
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +344 -311
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +43 -40
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +59 -57
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +394 -392
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +354 -324
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +122 -97
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +107 -104
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +109 -107
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +94 -90
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import { useAdapterCloud as e } from "../../context/AdapterCloudContext.js";
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import { useInvestments as
|
|
5
|
-
import { formatCurrency as
|
|
6
|
-
import { mockActiveInvestments as
|
|
4
|
+
import { useInvestments as r } from "../../hooks/useAdapterCloudApi.js";
|
|
5
|
+
import { formatCurrency as i, formatDate as ee } from "../../utils/formatters.js";
|
|
6
|
+
import { mockActiveInvestments as te } from "../../mocks/data.js";
|
|
7
7
|
import { useCallback as a, useMemo as o, useState as s } from "react";
|
|
8
|
-
import { Bell as c, Briefcase as
|
|
9
|
-
import { Fragment as
|
|
8
|
+
import { Bell as c, Briefcase as ne, Building2 as l, Camera as u, CheckCircle2 as d, DollarSign as f, Edit3 as p, Eye as m, EyeOff as h, FileText as g, Globe as re, Linkedin as ie, Lock as ae, Mail as oe, MapPin as se, Monitor as _, Phone as v, PieChart as y, Save as b, Shield as x, Smartphone as S, TrendingUp as C, User as w, X as ce } from "lucide-react";
|
|
9
|
+
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as le } from "@burdenoff/fe-libs/ui";
|
|
10
11
|
//#region src/adaptercloud/pages/investor/InvestorProfilePage.tsx
|
|
11
|
-
var
|
|
12
|
+
var O = [
|
|
12
13
|
{
|
|
13
14
|
id: "personal",
|
|
14
15
|
label: "Personal Info",
|
|
15
|
-
Icon:
|
|
16
|
+
Icon: w
|
|
16
17
|
},
|
|
17
18
|
{
|
|
18
19
|
id: "investment",
|
|
19
20
|
label: "Investment Profile",
|
|
20
|
-
Icon:
|
|
21
|
+
Icon: C
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
id: "portfolio",
|
|
24
25
|
label: "Portfolio",
|
|
25
|
-
Icon:
|
|
26
|
+
Icon: y
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
id: "documents",
|
|
29
30
|
label: "Documents",
|
|
30
|
-
Icon:
|
|
31
|
+
Icon: g
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
id: "security",
|
|
34
35
|
label: "Security",
|
|
35
|
-
Icon:
|
|
36
|
+
Icon: x
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
39
|
id: "notifications",
|
|
39
40
|
label: "Notifications",
|
|
40
41
|
Icon: c
|
|
41
42
|
}
|
|
42
|
-
],
|
|
43
|
+
], ue = [
|
|
43
44
|
{
|
|
44
45
|
name: "PAN Card",
|
|
45
46
|
verifiedOn: "15 Dec 2023",
|
|
@@ -60,7 +61,7 @@ var D = [
|
|
|
60
61
|
verifiedOn: "",
|
|
61
62
|
status: "template"
|
|
62
63
|
}
|
|
63
|
-
],
|
|
64
|
+
], de = [
|
|
64
65
|
{
|
|
65
66
|
device: "Chrome on macOS",
|
|
66
67
|
location: "Bangalore, India",
|
|
@@ -79,7 +80,7 @@ var D = [
|
|
|
79
80
|
date: "2024-01-14T10:20:00Z",
|
|
80
81
|
current: !1
|
|
81
82
|
}
|
|
82
|
-
],
|
|
83
|
+
], fe = [
|
|
83
84
|
"Food & Beverage",
|
|
84
85
|
"Quick Commerce",
|
|
85
86
|
"Cloud Kitchen",
|
|
@@ -90,8 +91,8 @@ var D = [
|
|
|
90
91
|
"Logistics",
|
|
91
92
|
"FinTech"
|
|
92
93
|
];
|
|
93
|
-
function
|
|
94
|
-
let { currentUser: c, navigateTo:
|
|
94
|
+
function k() {
|
|
95
|
+
let { currentUser: c, navigateTo: x } = e(), { data: k = [] } = r(c?.id || ""), [A, j] = s("personal"), [M, N] = s(!1), [P, F] = s(!1), [I, L] = s(""), R = o(() => ({
|
|
95
96
|
firstName: c?.firstName ?? c?.name?.split(" ")[0] ?? "Rajesh",
|
|
96
97
|
lastName: c?.lastName ?? c?.name?.split(" ")[1] ?? "Mehta",
|
|
97
98
|
email: c?.email ?? "investor@burdenoff.com",
|
|
@@ -115,14 +116,14 @@ function A() {
|
|
|
115
116
|
state: "Karnataka",
|
|
116
117
|
country: "India",
|
|
117
118
|
pincode: "560001"
|
|
118
|
-
}), [c]), [
|
|
119
|
+
}), [c]), [z, B] = s(R);
|
|
119
120
|
o(() => ({
|
|
120
|
-
totalInvested:
|
|
121
|
-
portfolioValue:
|
|
122
|
-
totalReturns:
|
|
123
|
-
activeInvestments:
|
|
124
|
-
}), [
|
|
125
|
-
let [
|
|
121
|
+
totalInvested: k.reduce((e, t) => e + t.investedAmount, 0),
|
|
122
|
+
portfolioValue: k.reduce((e, t) => e + t.currentValue, 0),
|
|
123
|
+
totalReturns: k.reduce((e, t) => e + t.returns, 0),
|
|
124
|
+
activeInvestments: k.length
|
|
125
|
+
}), [k]);
|
|
126
|
+
let [V, pe] = s([
|
|
126
127
|
{
|
|
127
128
|
id: "opportunities",
|
|
128
129
|
label: "New Investment Opportunities",
|
|
@@ -159,374 +160,375 @@ function A() {
|
|
|
159
160
|
description: "Notifications when dividends are credited to your account",
|
|
160
161
|
enabled: !0
|
|
161
162
|
}
|
|
162
|
-
]), [
|
|
163
|
-
|
|
163
|
+
]), [me, H] = s(!1), [U, W] = s(""), [G, K] = s(""), [q, J] = s(""), [Y, he] = s(!1), [X, ge] = s(!1), [Z, _e] = s(!1), Q = a((e, t) => {
|
|
164
|
+
B((n) => ({
|
|
164
165
|
...n,
|
|
165
166
|
[e]: t
|
|
166
167
|
}));
|
|
167
|
-
}, []),
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
}, []), $ = a(() => {
|
|
169
|
+
F(!0), setTimeout(() => {
|
|
170
|
+
F(!1), N(!1), L("Profile updated successfully!"), setTimeout(() => L(""), 3e3);
|
|
170
171
|
}, 1200);
|
|
171
|
-
}, []),
|
|
172
|
+
}, []), ve = a((e) => {
|
|
172
173
|
let t = e.target.files?.[0];
|
|
173
174
|
if (t) {
|
|
174
175
|
let e = new FileReader();
|
|
175
176
|
e.onloadend = () => {
|
|
176
|
-
|
|
177
|
+
B((t) => ({
|
|
177
178
|
...t,
|
|
178
179
|
profileImage: e.result
|
|
179
180
|
}));
|
|
180
181
|
}, e.readAsDataURL(t);
|
|
181
182
|
}
|
|
182
|
-
}, []),
|
|
183
|
-
|
|
183
|
+
}, []), ye = a((e) => {
|
|
184
|
+
pe((t) => t.map((t) => t.id === e ? {
|
|
184
185
|
...t,
|
|
185
186
|
enabled: !t.enabled
|
|
186
187
|
} : t));
|
|
187
|
-
}, []),
|
|
188
|
-
if (!(!
|
|
189
|
-
if (
|
|
188
|
+
}, []), be = a(() => {
|
|
189
|
+
if (!(!U || !G || !q)) {
|
|
190
|
+
if (G !== q) {
|
|
190
191
|
alert("Passwords do not match");
|
|
191
192
|
return;
|
|
192
193
|
}
|
|
193
|
-
if (
|
|
194
|
+
if (G.length < 8) {
|
|
194
195
|
alert("Password must be at least 8 characters");
|
|
195
196
|
return;
|
|
196
197
|
}
|
|
197
|
-
alert("Password changed successfully!"),
|
|
198
|
+
alert("Password changed successfully!"), H(!1), W(""), K(""), J("");
|
|
198
199
|
}
|
|
199
200
|
}, [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
]),
|
|
204
|
-
|
|
201
|
+
U,
|
|
202
|
+
G,
|
|
203
|
+
q
|
|
204
|
+
]), xe = a(() => {
|
|
205
|
+
_e((e) => {
|
|
205
206
|
let t = !e;
|
|
206
207
|
return alert(t ? "2FA has been enabled" : "2FA has been disabled"), t;
|
|
207
208
|
});
|
|
208
209
|
}, []);
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ E(n, {
|
|
210
211
|
title: "Investor Profile",
|
|
211
212
|
description: "Manage your investment profile and preferences",
|
|
212
|
-
|
|
213
|
+
purpose: "Your investor identity and preferences — KYC details, risk appetite, and payout settings. Keeping this accurate unlocks the right opportunities and makes sure your returns reach the correct account.",
|
|
214
|
+
actions: /* @__PURE__ */ D("div", {
|
|
213
215
|
className: "flex items-center gap-2",
|
|
214
|
-
children: [
|
|
215
|
-
className: "text-sm font-medium text-
|
|
216
|
-
children:
|
|
217
|
-
}),
|
|
216
|
+
children: [I && /* @__PURE__ */ E("span", {
|
|
217
|
+
className: "text-sm font-medium text-status-success-text",
|
|
218
|
+
children: I
|
|
219
|
+
}), M ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("button", {
|
|
218
220
|
type: "button",
|
|
219
221
|
onClick: () => {
|
|
220
|
-
|
|
222
|
+
N(!1), B(R);
|
|
221
223
|
},
|
|
222
224
|
className: "flex items-center gap-2 rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
223
|
-
children: [/* @__PURE__ */
|
|
224
|
-
}), /* @__PURE__ */
|
|
225
|
+
children: [/* @__PURE__ */ E(ce, { className: "h-4 w-4" }), "Cancel"]
|
|
226
|
+
}), /* @__PURE__ */ E("button", {
|
|
225
227
|
type: "button",
|
|
226
|
-
onClick:
|
|
227
|
-
disabled:
|
|
228
|
-
className: t("flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
229
|
-
children:
|
|
230
|
-
})] }) : /* @__PURE__ */
|
|
228
|
+
onClick: $,
|
|
229
|
+
disabled: P,
|
|
230
|
+
className: t("flex items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors", P ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
231
|
+
children: P ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }), "Saving..."] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(b, { className: "h-4 w-4" }), "Save Changes"] })
|
|
232
|
+
})] }) : /* @__PURE__ */ D("button", {
|
|
231
233
|
type: "button",
|
|
232
|
-
onClick: () =>
|
|
234
|
+
onClick: () => N(!0),
|
|
233
235
|
className: "flex items-center gap-2 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
234
|
-
children: [/* @__PURE__ */
|
|
236
|
+
children: [/* @__PURE__ */ E(p, { className: "h-4 w-4" }), "Edit Profile"]
|
|
235
237
|
})]
|
|
236
238
|
}),
|
|
237
|
-
children: /* @__PURE__ */
|
|
239
|
+
children: /* @__PURE__ */ D("div", {
|
|
238
240
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
|
|
239
|
-
children: [/* @__PURE__ */
|
|
241
|
+
children: [/* @__PURE__ */ D("div", {
|
|
240
242
|
className: "lg:col-span-1",
|
|
241
243
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
className: "
|
|
244
|
-
children: [/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ D(le, {
|
|
245
|
+
className: "p-4 sm:p-6",
|
|
246
|
+
children: [/* @__PURE__ */ D("div", {
|
|
245
247
|
className: "text-center",
|
|
246
248
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ D("div", {
|
|
248
250
|
className: "relative mx-auto inline-block",
|
|
249
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ E("div", {
|
|
250
252
|
className: "h-20 w-20 overflow-hidden rounded-full bg-bg-sunken sm:h-24 sm:w-24",
|
|
251
|
-
children:
|
|
252
|
-
src:
|
|
253
|
+
children: z.profileImage ? /* @__PURE__ */ E("img", {
|
|
254
|
+
src: z.profileImage,
|
|
253
255
|
alt: "Profile",
|
|
254
256
|
className: "h-full w-full object-cover"
|
|
255
|
-
}) : /* @__PURE__ */
|
|
257
|
+
}) : /* @__PURE__ */ E("div", {
|
|
256
258
|
className: "flex h-full w-full items-center justify-center",
|
|
257
|
-
children: /* @__PURE__ */
|
|
259
|
+
children: /* @__PURE__ */ E(w, { className: "h-10 w-10 text-text-secondary" })
|
|
258
260
|
})
|
|
259
|
-
}),
|
|
261
|
+
}), M && /* @__PURE__ */ D("label", {
|
|
260
262
|
className: "absolute bottom-0 right-0 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ E(u, { className: "h-4 w-4" }), /* @__PURE__ */ E("input", {
|
|
262
264
|
type: "file",
|
|
263
265
|
accept: "image/*",
|
|
264
|
-
onChange:
|
|
266
|
+
onChange: ve,
|
|
265
267
|
className: "hidden"
|
|
266
268
|
})]
|
|
267
269
|
})]
|
|
268
270
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ D("h3", {
|
|
270
272
|
className: "mt-3 text-base font-semibold text-text-primary sm:text-lg",
|
|
271
273
|
children: [
|
|
272
|
-
|
|
274
|
+
z.firstName,
|
|
273
275
|
" ",
|
|
274
|
-
|
|
276
|
+
z.lastName
|
|
275
277
|
]
|
|
276
278
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ E("p", {
|
|
278
280
|
className: "text-sm text-text-secondary",
|
|
279
|
-
children:
|
|
281
|
+
children: z.investorType
|
|
280
282
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ E("p", {
|
|
282
284
|
className: "mt-1 truncate text-xs text-text-secondary",
|
|
283
|
-
children:
|
|
285
|
+
children: z.companyName
|
|
284
286
|
})
|
|
285
287
|
]
|
|
286
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ D("div", {
|
|
287
289
|
className: "mt-5 space-y-3 border-t border-border-subtle pt-4",
|
|
288
290
|
children: [
|
|
289
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ D("div", {
|
|
290
292
|
className: "flex items-center justify-between",
|
|
291
|
-
children: [/* @__PURE__ */
|
|
293
|
+
children: [/* @__PURE__ */ E("span", {
|
|
292
294
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
293
295
|
children: "Portfolio Value"
|
|
294
|
-
}), /* @__PURE__ */
|
|
296
|
+
}), /* @__PURE__ */ E("span", {
|
|
295
297
|
className: "text-xs font-semibold text-primary sm:text-sm",
|
|
296
|
-
children:
|
|
298
|
+
children: i(z.portfolioValue ?? 0, { minimumFractionDigits: 0 })
|
|
297
299
|
})]
|
|
298
300
|
}),
|
|
299
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ D("div", {
|
|
300
302
|
className: "flex items-center justify-between",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ E("span", {
|
|
302
304
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
303
305
|
children: "Active Investments"
|
|
304
|
-
}), /* @__PURE__ */
|
|
306
|
+
}), /* @__PURE__ */ E("span", {
|
|
305
307
|
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
306
|
-
children:
|
|
308
|
+
children: z.activeInvestments
|
|
307
309
|
})]
|
|
308
310
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ D("div", {
|
|
310
312
|
className: "flex items-center justify-between",
|
|
311
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ E("span", {
|
|
312
314
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
313
315
|
children: "Total Returns"
|
|
314
|
-
}), /* @__PURE__ */
|
|
315
|
-
className: "text-xs font-semibold text-
|
|
316
|
-
children: ["+",
|
|
316
|
+
}), /* @__PURE__ */ D("span", {
|
|
317
|
+
className: "text-xs font-semibold text-status-success-text sm:text-sm",
|
|
318
|
+
children: ["+", i(z.totalReturns ?? 0, { minimumFractionDigits: 0 })]
|
|
317
319
|
})]
|
|
318
320
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ D("div", {
|
|
320
322
|
className: "flex items-center justify-between",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ E("span", {
|
|
322
324
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
323
325
|
children: "Total Invested"
|
|
324
|
-
}), /* @__PURE__ */
|
|
326
|
+
}), /* @__PURE__ */ E("span", {
|
|
325
327
|
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
326
|
-
children:
|
|
328
|
+
children: i(z.totalInvested ?? 0, { minimumFractionDigits: 0 })
|
|
327
329
|
})]
|
|
328
330
|
})
|
|
329
331
|
]
|
|
330
332
|
})]
|
|
331
333
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ E("div", {
|
|
333
335
|
className: "mt-4 flex gap-2 overflow-x-auto pb-2 lg:hidden",
|
|
334
|
-
children:
|
|
336
|
+
children: O.map((e) => /* @__PURE__ */ D("button", {
|
|
335
337
|
type: "button",
|
|
336
|
-
onClick: () =>
|
|
337
|
-
className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
338
|
-
children: [/* @__PURE__ */
|
|
338
|
+
onClick: () => j(e.id),
|
|
339
|
+
className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors", A === e.id ? "bg-action-primary-bg text-action-primary-text shadow-sm" : "bg-bg-surface text-text-primary hover:bg-accent"),
|
|
340
|
+
children: [/* @__PURE__ */ E(e.Icon, { className: "h-4 w-4 shrink-0" }), e.label]
|
|
339
341
|
}, e.id))
|
|
340
342
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ E("div", {
|
|
342
344
|
className: "mt-4 hidden space-y-2 lg:block",
|
|
343
|
-
children:
|
|
345
|
+
children: O.map((e) => /* @__PURE__ */ D("button", {
|
|
344
346
|
type: "button",
|
|
345
|
-
onClick: () =>
|
|
346
|
-
className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors",
|
|
347
|
-
children: [/* @__PURE__ */
|
|
347
|
+
onClick: () => j(e.id),
|
|
348
|
+
className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors", A === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface text-text-primary hover:bg-accent"),
|
|
349
|
+
children: [/* @__PURE__ */ E(e.Icon, { className: "h-4 w-4" }), e.label]
|
|
348
350
|
}, e.id))
|
|
349
351
|
})
|
|
350
352
|
]
|
|
351
|
-
}), /* @__PURE__ */
|
|
353
|
+
}), /* @__PURE__ */ E("div", {
|
|
352
354
|
className: "lg:col-span-3",
|
|
353
|
-
children: /* @__PURE__ */
|
|
354
|
-
className: "rounded-lg border border-border-
|
|
355
|
+
children: /* @__PURE__ */ D("div", {
|
|
356
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 lg:p-8 bg-gloss-card shadow-pop",
|
|
355
357
|
children: [
|
|
356
|
-
|
|
358
|
+
A === "personal" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
357
359
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
358
360
|
children: "Personal Information"
|
|
359
|
-
}), /* @__PURE__ */
|
|
361
|
+
}), /* @__PURE__ */ D("div", {
|
|
360
362
|
className: "space-y-6",
|
|
361
363
|
children: [
|
|
362
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ D("div", {
|
|
363
365
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
364
366
|
children: [
|
|
365
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
366
368
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
367
369
|
children: "First Name"
|
|
368
|
-
}), /* @__PURE__ */
|
|
370
|
+
}), /* @__PURE__ */ E("input", {
|
|
369
371
|
type: "text",
|
|
370
|
-
value:
|
|
371
|
-
onChange: (e) =>
|
|
372
|
-
disabled: !
|
|
372
|
+
value: z.firstName,
|
|
373
|
+
onChange: (e) => Q("firstName", e.target.value),
|
|
374
|
+
disabled: !M,
|
|
373
375
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
374
376
|
})] }),
|
|
375
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
376
378
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
377
379
|
children: "Last Name"
|
|
378
|
-
}), /* @__PURE__ */
|
|
380
|
+
}), /* @__PURE__ */ E("input", {
|
|
379
381
|
type: "text",
|
|
380
|
-
value:
|
|
381
|
-
onChange: (e) =>
|
|
382
|
-
disabled: !
|
|
382
|
+
value: z.lastName,
|
|
383
|
+
onChange: (e) => Q("lastName", e.target.value),
|
|
384
|
+
disabled: !M,
|
|
383
385
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
384
386
|
})] }),
|
|
385
|
-
/* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
386
388
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
387
389
|
children: "Email Address"
|
|
388
|
-
}), /* @__PURE__ */
|
|
390
|
+
}), /* @__PURE__ */ D("div", {
|
|
389
391
|
className: "relative",
|
|
390
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ E(oe, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
391
393
|
type: "email",
|
|
392
|
-
value:
|
|
393
|
-
onChange: (e) =>
|
|
394
|
-
disabled: !
|
|
394
|
+
value: z.email,
|
|
395
|
+
onChange: (e) => Q("email", e.target.value),
|
|
396
|
+
disabled: !M,
|
|
395
397
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
396
398
|
})]
|
|
397
399
|
})] }),
|
|
398
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
399
401
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
400
402
|
children: "Phone Number"
|
|
401
|
-
}), /* @__PURE__ */
|
|
403
|
+
}), /* @__PURE__ */ D("div", {
|
|
402
404
|
className: "relative",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
405
|
+
children: [/* @__PURE__ */ E(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
404
406
|
type: "tel",
|
|
405
|
-
value:
|
|
406
|
-
onChange: (e) =>
|
|
407
|
-
disabled: !
|
|
407
|
+
value: z.phone,
|
|
408
|
+
onChange: (e) => Q("phone", e.target.value),
|
|
409
|
+
disabled: !M,
|
|
408
410
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
409
411
|
})]
|
|
410
412
|
})] })
|
|
411
413
|
]
|
|
412
414
|
}),
|
|
413
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ D("div", {
|
|
414
416
|
className: "border-t border-border-subtle pt-6",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
417
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
416
418
|
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
417
419
|
children: "Professional Details"
|
|
418
|
-
}), /* @__PURE__ */
|
|
420
|
+
}), /* @__PURE__ */ D("div", {
|
|
419
421
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
420
422
|
children: [
|
|
421
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
422
424
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
423
425
|
children: "Company/Organization"
|
|
424
|
-
}), /* @__PURE__ */
|
|
426
|
+
}), /* @__PURE__ */ D("div", {
|
|
425
427
|
className: "relative",
|
|
426
|
-
children: [/* @__PURE__ */
|
|
428
|
+
children: [/* @__PURE__ */ E(l, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
427
429
|
type: "text",
|
|
428
|
-
value:
|
|
429
|
-
onChange: (e) =>
|
|
430
|
-
disabled: !
|
|
430
|
+
value: z.companyName,
|
|
431
|
+
onChange: (e) => Q("companyName", e.target.value),
|
|
432
|
+
disabled: !M,
|
|
431
433
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
432
434
|
})]
|
|
433
435
|
})] }),
|
|
434
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
435
437
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
436
438
|
children: "Designation"
|
|
437
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ E("input", {
|
|
438
440
|
type: "text",
|
|
439
|
-
value:
|
|
440
|
-
onChange: (e) =>
|
|
441
|
-
disabled: !
|
|
441
|
+
value: z.designation,
|
|
442
|
+
onChange: (e) => Q("designation", e.target.value),
|
|
443
|
+
disabled: !M,
|
|
442
444
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
443
445
|
})] }),
|
|
444
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
445
447
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
446
448
|
children: "Company Website"
|
|
447
|
-
}), /* @__PURE__ */
|
|
449
|
+
}), /* @__PURE__ */ D("div", {
|
|
448
450
|
className: "relative",
|
|
449
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ E(re, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
450
452
|
type: "text",
|
|
451
|
-
value:
|
|
452
|
-
onChange: (e) =>
|
|
453
|
-
disabled: !
|
|
453
|
+
value: z.companyWebsite,
|
|
454
|
+
onChange: (e) => Q("companyWebsite", e.target.value),
|
|
455
|
+
disabled: !M,
|
|
454
456
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
455
457
|
})]
|
|
456
458
|
})] }),
|
|
457
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
458
460
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
459
461
|
children: "LinkedIn Profile"
|
|
460
|
-
}), /* @__PURE__ */
|
|
462
|
+
}), /* @__PURE__ */ D("div", {
|
|
461
463
|
className: "relative",
|
|
462
|
-
children: [/* @__PURE__ */
|
|
464
|
+
children: [/* @__PURE__ */ E(ie, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ E("input", {
|
|
463
465
|
type: "text",
|
|
464
|
-
value:
|
|
465
|
-
onChange: (e) =>
|
|
466
|
-
disabled: !
|
|
466
|
+
value: z.linkedinProfile,
|
|
467
|
+
onChange: (e) => Q("linkedinProfile", e.target.value),
|
|
468
|
+
disabled: !M,
|
|
467
469
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
468
470
|
})]
|
|
469
471
|
})] })
|
|
470
472
|
]
|
|
471
473
|
})]
|
|
472
474
|
}),
|
|
473
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ D("div", {
|
|
474
476
|
className: "border-t border-border-subtle pt-6",
|
|
475
|
-
children: [/* @__PURE__ */
|
|
477
|
+
children: [/* @__PURE__ */ E("h3", {
|
|
476
478
|
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
477
479
|
children: "Address"
|
|
478
|
-
}), /* @__PURE__ */
|
|
480
|
+
}), /* @__PURE__ */ D("div", {
|
|
479
481
|
className: "space-y-4",
|
|
480
|
-
children: [/* @__PURE__ */
|
|
482
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
481
483
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
482
484
|
children: "Street Address"
|
|
483
|
-
}), /* @__PURE__ */
|
|
485
|
+
}), /* @__PURE__ */ E("textarea", {
|
|
484
486
|
rows: 2,
|
|
485
|
-
value:
|
|
486
|
-
onChange: (e) =>
|
|
487
|
-
disabled: !
|
|
487
|
+
value: z.address,
|
|
488
|
+
onChange: (e) => Q("address", e.target.value),
|
|
489
|
+
disabled: !M,
|
|
488
490
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
489
|
-
})] }), /* @__PURE__ */
|
|
491
|
+
})] }), /* @__PURE__ */ D("div", {
|
|
490
492
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
491
493
|
children: [
|
|
492
|
-
/* @__PURE__ */
|
|
494
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
493
495
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
494
496
|
children: "City"
|
|
495
|
-
}), /* @__PURE__ */
|
|
497
|
+
}), /* @__PURE__ */ E("input", {
|
|
496
498
|
type: "text",
|
|
497
|
-
value:
|
|
498
|
-
onChange: (e) =>
|
|
499
|
-
disabled: !
|
|
499
|
+
value: z.city,
|
|
500
|
+
onChange: (e) => Q("city", e.target.value),
|
|
501
|
+
disabled: !M,
|
|
500
502
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
501
503
|
})] }),
|
|
502
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
503
505
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
504
506
|
children: "State"
|
|
505
|
-
}), /* @__PURE__ */
|
|
507
|
+
}), /* @__PURE__ */ E("input", {
|
|
506
508
|
type: "text",
|
|
507
|
-
value:
|
|
508
|
-
onChange: (e) =>
|
|
509
|
-
disabled: !
|
|
509
|
+
value: z.state,
|
|
510
|
+
onChange: (e) => Q("state", e.target.value),
|
|
511
|
+
disabled: !M,
|
|
510
512
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
511
513
|
})] }),
|
|
512
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
513
515
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
514
516
|
children: "Country"
|
|
515
|
-
}), /* @__PURE__ */
|
|
517
|
+
}), /* @__PURE__ */ E("input", {
|
|
516
518
|
type: "text",
|
|
517
|
-
value:
|
|
518
|
-
onChange: (e) =>
|
|
519
|
-
disabled: !
|
|
519
|
+
value: z.country,
|
|
520
|
+
onChange: (e) => Q("country", e.target.value),
|
|
521
|
+
disabled: !M,
|
|
520
522
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
521
523
|
})] }),
|
|
522
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
523
525
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
524
526
|
children: "Pincode"
|
|
525
|
-
}), /* @__PURE__ */
|
|
527
|
+
}), /* @__PURE__ */ E("input", {
|
|
526
528
|
type: "text",
|
|
527
|
-
value:
|
|
528
|
-
onChange: (e) =>
|
|
529
|
-
disabled: !
|
|
529
|
+
value: z.pincode,
|
|
530
|
+
onChange: (e) => Q("pincode", e.target.value),
|
|
531
|
+
disabled: !M,
|
|
530
532
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
531
533
|
})] })
|
|
532
534
|
]
|
|
@@ -535,187 +537,187 @@ function A() {
|
|
|
535
537
|
})
|
|
536
538
|
]
|
|
537
539
|
})] }),
|
|
538
|
-
|
|
540
|
+
A === "investment" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
539
541
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
540
542
|
children: "Investment Profile"
|
|
541
|
-
}), /* @__PURE__ */
|
|
543
|
+
}), /* @__PURE__ */ D("div", {
|
|
542
544
|
className: "space-y-6",
|
|
543
545
|
children: [
|
|
544
|
-
/* @__PURE__ */
|
|
546
|
+
/* @__PURE__ */ D("div", {
|
|
545
547
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
546
548
|
children: [
|
|
547
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
548
550
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
549
551
|
children: "Investor Type"
|
|
550
|
-
}), /* @__PURE__ */
|
|
551
|
-
value:
|
|
552
|
-
onChange: (e) =>
|
|
553
|
-
disabled: !
|
|
552
|
+
}), /* @__PURE__ */ D("select", {
|
|
553
|
+
value: z.investorType,
|
|
554
|
+
onChange: (e) => Q("investorType", e.target.value),
|
|
555
|
+
disabled: !M,
|
|
554
556
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
555
557
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
/* @__PURE__ */
|
|
559
|
-
/* @__PURE__ */
|
|
558
|
+
/* @__PURE__ */ E("option", { children: "Angel Investor" }),
|
|
559
|
+
/* @__PURE__ */ E("option", { children: "Venture Capitalist" }),
|
|
560
|
+
/* @__PURE__ */ E("option", { children: "Private Equity" }),
|
|
561
|
+
/* @__PURE__ */ E("option", { children: "Strategic Investor" })
|
|
560
562
|
]
|
|
561
563
|
})] }),
|
|
562
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
563
565
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
564
566
|
children: "Investment Range"
|
|
565
|
-
}), /* @__PURE__ */
|
|
566
|
-
value:
|
|
567
|
-
onChange: (e) =>
|
|
568
|
-
disabled: !
|
|
567
|
+
}), /* @__PURE__ */ D("select", {
|
|
568
|
+
value: z.investmentRange,
|
|
569
|
+
onChange: (e) => Q("investmentRange", e.target.value),
|
|
570
|
+
disabled: !M,
|
|
569
571
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
570
572
|
children: [
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ E("option", { children: "1L - 5L" }),
|
|
574
|
+
/* @__PURE__ */ E("option", { children: "5L - 25L" }),
|
|
575
|
+
/* @__PURE__ */ E("option", { children: "25L - 1Cr" }),
|
|
576
|
+
/* @__PURE__ */ E("option", { children: "1Cr+" })
|
|
575
577
|
]
|
|
576
578
|
})] }),
|
|
577
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
578
580
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
579
581
|
children: "Investment Horizon"
|
|
580
|
-
}), /* @__PURE__ */
|
|
581
|
-
value:
|
|
582
|
-
onChange: (e) =>
|
|
583
|
-
disabled: !
|
|
582
|
+
}), /* @__PURE__ */ D("select", {
|
|
583
|
+
value: z.investmentHorizon,
|
|
584
|
+
onChange: (e) => Q("investmentHorizon", e.target.value),
|
|
585
|
+
disabled: !M,
|
|
584
586
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
585
587
|
children: [
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */
|
|
588
|
+
/* @__PURE__ */ E("option", { children: "1-2 years" }),
|
|
589
|
+
/* @__PURE__ */ E("option", { children: "3-5 years" }),
|
|
590
|
+
/* @__PURE__ */ E("option", { children: "5-7 years" }),
|
|
591
|
+
/* @__PURE__ */ E("option", { children: "7+ years" })
|
|
590
592
|
]
|
|
591
593
|
})] }),
|
|
592
|
-
/* @__PURE__ */
|
|
594
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
593
595
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
594
596
|
children: "Risk Profile"
|
|
595
|
-
}), /* @__PURE__ */
|
|
596
|
-
value:
|
|
597
|
-
onChange: (e) =>
|
|
598
|
-
disabled: !
|
|
597
|
+
}), /* @__PURE__ */ D("select", {
|
|
598
|
+
value: z.riskProfile,
|
|
599
|
+
onChange: (e) => Q("riskProfile", e.target.value),
|
|
600
|
+
disabled: !M,
|
|
599
601
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
600
602
|
children: [
|
|
601
|
-
/* @__PURE__ */
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ E("option", { children: "Conservative" }),
|
|
604
|
+
/* @__PURE__ */ E("option", { children: "Moderate" }),
|
|
605
|
+
/* @__PURE__ */ E("option", { children: "Aggressive" })
|
|
604
606
|
]
|
|
605
607
|
})] })
|
|
606
608
|
]
|
|
607
609
|
}),
|
|
608
|
-
/* @__PURE__ */
|
|
610
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
609
611
|
className: "mb-3 block text-sm font-medium text-text-primary",
|
|
610
612
|
children: "Preferred Sectors"
|
|
611
|
-
}), /* @__PURE__ */
|
|
613
|
+
}), /* @__PURE__ */ E("div", {
|
|
612
614
|
className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
|
|
613
|
-
children:
|
|
615
|
+
children: fe.map((e) => /* @__PURE__ */ D("label", {
|
|
614
616
|
className: "flex items-center gap-2",
|
|
615
|
-
children: [/* @__PURE__ */
|
|
617
|
+
children: [/* @__PURE__ */ E("input", {
|
|
616
618
|
type: "checkbox",
|
|
617
|
-
checked:
|
|
619
|
+
checked: z.preferredSectors.includes(e),
|
|
618
620
|
onChange: (t) => {
|
|
619
|
-
t.target.checked ?
|
|
621
|
+
t.target.checked ? Q("preferredSectors", [...z.preferredSectors, e]) : Q("preferredSectors", z.preferredSectors.filter((t) => t !== e));
|
|
620
622
|
},
|
|
621
|
-
disabled: !
|
|
623
|
+
disabled: !M,
|
|
622
624
|
className: "h-4 w-4 rounded border-border-subtle text-primary focus:ring-[var(--color-focus-ring)]"
|
|
623
|
-
}), /* @__PURE__ */
|
|
625
|
+
}), /* @__PURE__ */ E("span", {
|
|
624
626
|
className: "text-sm text-text-primary",
|
|
625
627
|
children: e
|
|
626
628
|
})]
|
|
627
629
|
}, e))
|
|
628
630
|
})] }),
|
|
629
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ D("div", {
|
|
630
632
|
className: "rounded-lg border border-border-subtle p-4",
|
|
631
|
-
children: [/* @__PURE__ */
|
|
633
|
+
children: [/* @__PURE__ */ D("div", {
|
|
632
634
|
className: "mb-2 flex items-center justify-between",
|
|
633
|
-
children: [/* @__PURE__ */
|
|
635
|
+
children: [/* @__PURE__ */ E("p", {
|
|
634
636
|
className: "text-sm font-medium text-text-primary",
|
|
635
637
|
children: "Risk Tolerance"
|
|
636
|
-
}), /* @__PURE__ */
|
|
637
|
-
className: t("text-sm font-semibold",
|
|
638
|
-
children:
|
|
638
|
+
}), /* @__PURE__ */ E("span", {
|
|
639
|
+
className: t("text-sm font-semibold", z.riskProfile === "Conservative" ? "text-status-success-text" : z.riskProfile === "Moderate" ? "text-status-warning-text" : "text-status-error-text"),
|
|
640
|
+
children: z.riskProfile
|
|
639
641
|
})]
|
|
640
|
-
}), /* @__PURE__ */
|
|
642
|
+
}), /* @__PURE__ */ E("div", {
|
|
641
643
|
className: "flex gap-1",
|
|
642
644
|
children: [
|
|
643
645
|
"Conservative",
|
|
644
646
|
"Moderate",
|
|
645
647
|
"Aggressive"
|
|
646
|
-
].map((e) => /* @__PURE__ */
|
|
648
|
+
].map((e) => /* @__PURE__ */ E("div", { className: t("h-2.5 flex-1 rounded-full", e === "Conservative" && "bg-status-success-bg-subtle/30", e === "Moderate" && "bg-status-warning-bg-subtle/30", e === "Aggressive" && "bg-status-error-bg-subtle/30", e === z.riskProfile && e === "Conservative" && "bg-status-success-bg-subtle", e === z.riskProfile && e === "Moderate" && "bg-status-warning-bg-subtle", e === z.riskProfile && e === "Aggressive" && "bg-status-error-bg-subtle") }, e))
|
|
647
649
|
})]
|
|
648
650
|
})
|
|
649
651
|
]
|
|
650
652
|
})] }),
|
|
651
|
-
|
|
652
|
-
/* @__PURE__ */
|
|
653
|
+
A === "portfolio" && /* @__PURE__ */ D("div", { children: [
|
|
654
|
+
/* @__PURE__ */ E("h2", {
|
|
653
655
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
654
656
|
children: "Investment Portfolio"
|
|
655
657
|
}),
|
|
656
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ D("div", {
|
|
657
659
|
className: "mb-8 grid grid-cols-2 gap-4 sm:grid-cols-4 sm:gap-6",
|
|
658
660
|
children: [
|
|
659
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ D("div", {
|
|
660
662
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
661
663
|
children: [
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ E(f, { className: "mb-2 h-7 w-7 text-primary sm:h-8 sm:w-8" }),
|
|
665
|
+
/* @__PURE__ */ E("div", {
|
|
664
666
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
665
|
-
children:
|
|
667
|
+
children: i(z.totalInvested ?? 0, {
|
|
666
668
|
minimumFractionDigits: 0,
|
|
667
669
|
notation: "compact"
|
|
668
670
|
})
|
|
669
671
|
}),
|
|
670
|
-
/* @__PURE__ */
|
|
672
|
+
/* @__PURE__ */ E("div", {
|
|
671
673
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
672
674
|
children: "Total Invested"
|
|
673
675
|
})
|
|
674
676
|
]
|
|
675
677
|
}),
|
|
676
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ D("div", {
|
|
677
679
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
678
680
|
children: [
|
|
679
|
-
/* @__PURE__ */
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ E(ne, { className: "mb-2 h-7 w-7 text-accent-blue sm:h-8 sm:w-8" }),
|
|
682
|
+
/* @__PURE__ */ E("div", {
|
|
681
683
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
682
|
-
children:
|
|
684
|
+
children: z.activeInvestments
|
|
683
685
|
}),
|
|
684
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ E("div", {
|
|
685
687
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
686
688
|
children: "Active Investments"
|
|
687
689
|
})
|
|
688
690
|
]
|
|
689
691
|
}),
|
|
690
|
-
/* @__PURE__ */
|
|
692
|
+
/* @__PURE__ */ D("div", {
|
|
691
693
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
692
694
|
children: [
|
|
693
|
-
/* @__PURE__ */
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
+
/* @__PURE__ */ E(C, { className: "mb-2 h-7 w-7 text-status-success-text sm:h-8 sm:w-8" }),
|
|
696
|
+
/* @__PURE__ */ E("div", {
|
|
695
697
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
696
|
-
children:
|
|
698
|
+
children: i(z.totalReturns ?? 0, {
|
|
697
699
|
minimumFractionDigits: 0,
|
|
698
700
|
notation: "compact"
|
|
699
701
|
})
|
|
700
702
|
}),
|
|
701
|
-
/* @__PURE__ */
|
|
703
|
+
/* @__PURE__ */ E("div", {
|
|
702
704
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
703
705
|
children: "Total Returns"
|
|
704
706
|
})
|
|
705
707
|
]
|
|
706
708
|
}),
|
|
707
|
-
/* @__PURE__ */
|
|
709
|
+
/* @__PURE__ */ D("div", {
|
|
708
710
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
709
711
|
children: [
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
/* @__PURE__ */
|
|
712
|
+
/* @__PURE__ */ E(y, { className: "mb-2 h-7 w-7 text-accent-purple sm:h-8 sm:w-8" }),
|
|
713
|
+
/* @__PURE__ */ E("div", {
|
|
712
714
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
713
|
-
children:
|
|
715
|
+
children: i(z.portfolioValue ?? 0, {
|
|
714
716
|
minimumFractionDigits: 0,
|
|
715
717
|
notation: "compact"
|
|
716
718
|
})
|
|
717
719
|
}),
|
|
718
|
-
/* @__PURE__ */
|
|
720
|
+
/* @__PURE__ */ E("div", {
|
|
719
721
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
720
722
|
children: "Portfolio Value"
|
|
721
723
|
})
|
|
@@ -723,94 +725,94 @@ function A() {
|
|
|
723
725
|
})
|
|
724
726
|
]
|
|
725
727
|
}),
|
|
726
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h3", {
|
|
727
729
|
className: "mb-4 text-base font-semibold text-text-primary",
|
|
728
730
|
children: "Active Investments"
|
|
729
|
-
}), /* @__PURE__ */
|
|
731
|
+
}), /* @__PURE__ */ E("div", {
|
|
730
732
|
className: "space-y-3",
|
|
731
|
-
children:
|
|
733
|
+
children: te.map((e, n) => /* @__PURE__ */ D("div", {
|
|
732
734
|
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
733
|
-
children: [/* @__PURE__ */
|
|
735
|
+
children: [/* @__PURE__ */ D("div", {
|
|
734
736
|
className: "mb-3 flex items-start justify-between",
|
|
735
|
-
children: [/* @__PURE__ */
|
|
737
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
736
738
|
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
737
739
|
children: e.cartName
|
|
738
|
-
}), /* @__PURE__ */
|
|
739
|
-
className: t("text-sm font-semibold", e.returns > 0 ? "text-
|
|
740
|
+
}), /* @__PURE__ */ D("span", {
|
|
741
|
+
className: t("text-sm font-semibold", e.returns > 0 ? "text-status-success-text" : "text-status-error-text"),
|
|
740
742
|
children: [
|
|
741
743
|
e.returns > 0 ? "+" : "",
|
|
742
744
|
e.returns,
|
|
743
745
|
"%"
|
|
744
746
|
]
|
|
745
747
|
})]
|
|
746
|
-
}), /* @__PURE__ */
|
|
748
|
+
}), /* @__PURE__ */ D("div", {
|
|
747
749
|
className: "grid grid-cols-1 gap-3 text-sm sm:grid-cols-3",
|
|
748
750
|
children: [
|
|
749
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
750
752
|
className: "text-text-secondary",
|
|
751
753
|
children: "Invested: "
|
|
752
|
-
}), /* @__PURE__ */
|
|
754
|
+
}), /* @__PURE__ */ E("span", {
|
|
753
755
|
className: "font-medium text-text-primary",
|
|
754
|
-
children:
|
|
756
|
+
children: i(e.investedAmount, { minimumFractionDigits: 0 })
|
|
755
757
|
})] }),
|
|
756
|
-
/* @__PURE__ */
|
|
758
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
757
759
|
className: "text-text-secondary",
|
|
758
760
|
children: "Current Value: "
|
|
759
|
-
}), /* @__PURE__ */
|
|
761
|
+
}), /* @__PURE__ */ E("span", {
|
|
760
762
|
className: "font-medium text-text-primary",
|
|
761
|
-
children:
|
|
763
|
+
children: i(e.currentValue, { minimumFractionDigits: 0 })
|
|
762
764
|
})] }),
|
|
763
|
-
/* @__PURE__ */
|
|
765
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
764
766
|
className: "text-text-secondary",
|
|
765
767
|
children: "Returns: "
|
|
766
|
-
}), /* @__PURE__ */
|
|
767
|
-
className: "font-medium text-
|
|
768
|
-
children:
|
|
768
|
+
}), /* @__PURE__ */ E("span", {
|
|
769
|
+
className: "font-medium text-status-success-text",
|
|
770
|
+
children: i(e.currentValue - e.investedAmount, { minimumFractionDigits: 0 })
|
|
769
771
|
})] })
|
|
770
772
|
]
|
|
771
773
|
})]
|
|
772
774
|
}, n))
|
|
773
775
|
})] })
|
|
774
776
|
] }),
|
|
775
|
-
|
|
777
|
+
A === "documents" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
776
778
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
777
779
|
children: "Documents & KYC"
|
|
778
|
-
}), /* @__PURE__ */
|
|
780
|
+
}), /* @__PURE__ */ D("div", {
|
|
779
781
|
className: "space-y-6",
|
|
780
782
|
children: [
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
className: "flex items-center gap-2 rounded-lg bg-
|
|
783
|
-
children: [/* @__PURE__ */
|
|
784
|
-
className: "text-sm font-medium text-
|
|
783
|
+
/* @__PURE__ */ D("div", {
|
|
784
|
+
className: "flex items-center gap-2 rounded-lg bg-status-success-bg-subtle/10 px-4 py-3",
|
|
785
|
+
children: [/* @__PURE__ */ E(d, { className: "h-5 w-5 text-status-success-text" }), /* @__PURE__ */ E("p", {
|
|
786
|
+
className: "text-sm font-medium text-status-success-text",
|
|
785
787
|
children: "Your KYC is complete and verified"
|
|
786
788
|
})]
|
|
787
789
|
}),
|
|
788
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ E("div", {
|
|
789
791
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
790
|
-
children:
|
|
791
|
-
className: "rounded-lg border border-border-
|
|
792
|
+
children: ue.map((e) => /* @__PURE__ */ D("div", {
|
|
793
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
792
794
|
children: [
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ E(g, { className: "mb-3 h-8 w-8 text-primary" }),
|
|
796
|
+
/* @__PURE__ */ E("h3", {
|
|
795
797
|
className: "text-base font-semibold text-text-primary",
|
|
796
798
|
children: e.name
|
|
797
799
|
}),
|
|
798
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ E("p", {
|
|
799
801
|
className: "mt-1 text-sm text-text-secondary",
|
|
800
802
|
children: e.status === "verified" ? `Verified on ${e.verifiedOn}` : e.status === "uploaded" ? `Uploaded on ${e.verifiedOn}` : "Template available"
|
|
801
803
|
}),
|
|
802
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ D("div", {
|
|
803
805
|
className: "mt-3 flex items-center gap-2",
|
|
804
806
|
children: [
|
|
805
|
-
e.status === "verified" && /* @__PURE__ */
|
|
806
|
-
className: "flex items-center gap-1 rounded-full bg-
|
|
807
|
-
children: [/* @__PURE__ */
|
|
807
|
+
e.status === "verified" && /* @__PURE__ */ D("span", {
|
|
808
|
+
className: "flex items-center gap-1 rounded-full bg-status-success-bg-subtle/20 px-2 py-0.5 text-xs font-medium text-status-success-text",
|
|
809
|
+
children: [/* @__PURE__ */ E(d, { className: "h-3 w-3" }), "Verified"]
|
|
808
810
|
}),
|
|
809
|
-
e.status === "uploaded" && /* @__PURE__ */
|
|
810
|
-
className: "flex items-center gap-1 rounded-full bg-blue-
|
|
811
|
-
children: [/* @__PURE__ */
|
|
811
|
+
e.status === "uploaded" && /* @__PURE__ */ D("span", {
|
|
812
|
+
className: "flex items-center gap-1 rounded-full bg-accent-blue-subtle/20 px-2 py-0.5 text-xs font-medium text-accent-blue",
|
|
813
|
+
children: [/* @__PURE__ */ E(g, { className: "h-3 w-3" }), "Uploaded"]
|
|
812
814
|
}),
|
|
813
|
-
/* @__PURE__ */
|
|
815
|
+
/* @__PURE__ */ E("button", {
|
|
814
816
|
type: "button",
|
|
815
817
|
onClick: () => alert(e.status === "template" ? `Downloading ${e.name} template...` : `Viewing ${e.name}...`),
|
|
816
818
|
className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
@@ -821,21 +823,21 @@ function A() {
|
|
|
821
823
|
]
|
|
822
824
|
}, e.name))
|
|
823
825
|
}),
|
|
824
|
-
|
|
826
|
+
M && /* @__PURE__ */ D("div", {
|
|
825
827
|
className: "rounded-lg border-2 border-dashed border-border-subtle p-6 text-center",
|
|
826
828
|
children: [
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
+
/* @__PURE__ */ E(g, { className: "mx-auto mb-2 h-8 w-8 text-text-secondary" }),
|
|
830
|
+
/* @__PURE__ */ E("p", {
|
|
829
831
|
className: "text-sm font-medium text-text-primary",
|
|
830
832
|
children: "Upload New Document"
|
|
831
833
|
}),
|
|
832
|
-
/* @__PURE__ */
|
|
834
|
+
/* @__PURE__ */ E("p", {
|
|
833
835
|
className: "mt-1 text-xs text-text-secondary",
|
|
834
836
|
children: "PDF, JPG, or PNG up to 10MB"
|
|
835
837
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ D("label", {
|
|
837
839
|
className: "mt-3 inline-block cursor-pointer rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
838
|
-
children: ["Choose File", /* @__PURE__ */
|
|
840
|
+
children: ["Choose File", /* @__PURE__ */ E("input", {
|
|
839
841
|
type: "file",
|
|
840
842
|
accept: ".pdf,.jpg,.png",
|
|
841
843
|
className: "hidden"
|
|
@@ -845,161 +847,161 @@ function A() {
|
|
|
845
847
|
})
|
|
846
848
|
]
|
|
847
849
|
})] }),
|
|
848
|
-
|
|
850
|
+
A === "security" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
849
851
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
850
852
|
children: "Security Settings"
|
|
851
|
-
}), /* @__PURE__ */
|
|
853
|
+
}), /* @__PURE__ */ D("div", {
|
|
852
854
|
className: "space-y-6",
|
|
853
855
|
children: [
|
|
854
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ D("div", {
|
|
855
857
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
856
858
|
children: [
|
|
857
|
-
/* @__PURE__ */
|
|
859
|
+
/* @__PURE__ */ D("div", {
|
|
858
860
|
className: "flex items-center gap-3 mb-3",
|
|
859
|
-
children: [/* @__PURE__ */
|
|
861
|
+
children: [/* @__PURE__ */ E(ae, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
860
862
|
className: "text-base font-semibold text-text-primary",
|
|
861
863
|
children: "Change Password"
|
|
862
864
|
})]
|
|
863
865
|
}),
|
|
864
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ E("p", {
|
|
865
867
|
className: "mb-4 text-sm text-text-secondary",
|
|
866
868
|
children: "Update your password regularly to keep your account secure"
|
|
867
869
|
}),
|
|
868
|
-
|
|
870
|
+
me ? /* @__PURE__ */ D("div", {
|
|
869
871
|
className: "space-y-4",
|
|
870
872
|
children: [
|
|
871
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
872
874
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
873
875
|
children: "Current Password"
|
|
874
|
-
}), /* @__PURE__ */
|
|
876
|
+
}), /* @__PURE__ */ D("div", {
|
|
875
877
|
className: "relative",
|
|
876
|
-
children: [/* @__PURE__ */
|
|
877
|
-
type:
|
|
878
|
-
value:
|
|
879
|
-
onChange: (e) =>
|
|
878
|
+
children: [/* @__PURE__ */ E("input", {
|
|
879
|
+
type: Y ? "text" : "password",
|
|
880
|
+
value: U,
|
|
881
|
+
onChange: (e) => W(e.target.value),
|
|
880
882
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 pr-10 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
881
|
-
}), /* @__PURE__ */
|
|
883
|
+
}), /* @__PURE__ */ E("button", {
|
|
882
884
|
type: "button",
|
|
883
|
-
onClick: () =>
|
|
885
|
+
onClick: () => he(!Y),
|
|
884
886
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
885
|
-
children:
|
|
887
|
+
children: E(Y ? h : m, { className: "h-4 w-4" })
|
|
886
888
|
})]
|
|
887
889
|
})] }),
|
|
888
|
-
/* @__PURE__ */
|
|
890
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
889
891
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
890
892
|
children: "New Password"
|
|
891
|
-
}), /* @__PURE__ */
|
|
893
|
+
}), /* @__PURE__ */ D("div", {
|
|
892
894
|
className: "relative",
|
|
893
|
-
children: [/* @__PURE__ */
|
|
894
|
-
type:
|
|
895
|
-
value:
|
|
896
|
-
onChange: (e) =>
|
|
895
|
+
children: [/* @__PURE__ */ E("input", {
|
|
896
|
+
type: X ? "text" : "password",
|
|
897
|
+
value: G,
|
|
898
|
+
onChange: (e) => K(e.target.value),
|
|
897
899
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 pr-10 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
898
|
-
}), /* @__PURE__ */
|
|
900
|
+
}), /* @__PURE__ */ E("button", {
|
|
899
901
|
type: "button",
|
|
900
|
-
onClick: () =>
|
|
902
|
+
onClick: () => ge(!X),
|
|
901
903
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
902
|
-
children:
|
|
904
|
+
children: E(X ? h : m, { className: "h-4 w-4" })
|
|
903
905
|
})]
|
|
904
906
|
})] }),
|
|
905
|
-
/* @__PURE__ */
|
|
907
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
906
908
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
907
909
|
children: "Confirm New Password"
|
|
908
|
-
}), /* @__PURE__ */
|
|
910
|
+
}), /* @__PURE__ */ E("input", {
|
|
909
911
|
type: "password",
|
|
910
|
-
value:
|
|
911
|
-
onChange: (e) =>
|
|
912
|
+
value: q,
|
|
913
|
+
onChange: (e) => J(e.target.value),
|
|
912
914
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
913
915
|
})] }),
|
|
914
|
-
/* @__PURE__ */
|
|
916
|
+
/* @__PURE__ */ D("div", {
|
|
915
917
|
className: "flex gap-3",
|
|
916
|
-
children: [/* @__PURE__ */
|
|
918
|
+
children: [/* @__PURE__ */ E("button", {
|
|
917
919
|
type: "button",
|
|
918
|
-
onClick:
|
|
920
|
+
onClick: be,
|
|
919
921
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
920
922
|
children: "Update Password"
|
|
921
|
-
}), /* @__PURE__ */
|
|
923
|
+
}), /* @__PURE__ */ E("button", {
|
|
922
924
|
type: "button",
|
|
923
925
|
onClick: () => {
|
|
924
|
-
|
|
926
|
+
H(!1), W(""), K(""), J("");
|
|
925
927
|
},
|
|
926
928
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
927
929
|
children: "Cancel"
|
|
928
930
|
})]
|
|
929
931
|
})
|
|
930
932
|
]
|
|
931
|
-
}) : /* @__PURE__ */
|
|
933
|
+
}) : /* @__PURE__ */ E("button", {
|
|
932
934
|
type: "button",
|
|
933
|
-
onClick: () =>
|
|
935
|
+
onClick: () => H(!0),
|
|
934
936
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
935
937
|
children: "Change Password"
|
|
936
938
|
})
|
|
937
939
|
]
|
|
938
940
|
}),
|
|
939
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ D("div", {
|
|
940
942
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
941
943
|
children: [
|
|
942
|
-
/* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ D("div", {
|
|
943
945
|
className: "flex items-center gap-3 mb-3",
|
|
944
|
-
children: [/* @__PURE__ */
|
|
946
|
+
children: [/* @__PURE__ */ E(S, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
945
947
|
className: "text-base font-semibold text-text-primary",
|
|
946
948
|
children: "Two-Factor Authentication"
|
|
947
949
|
})]
|
|
948
950
|
}),
|
|
949
|
-
/* @__PURE__ */
|
|
951
|
+
/* @__PURE__ */ E("p", {
|
|
950
952
|
className: "mb-4 text-sm text-text-secondary",
|
|
951
953
|
children: "Add an extra layer of security to your investment account"
|
|
952
954
|
}),
|
|
953
|
-
/* @__PURE__ */
|
|
955
|
+
/* @__PURE__ */ D("div", {
|
|
954
956
|
className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 p-3",
|
|
955
|
-
children: [/* @__PURE__ */
|
|
957
|
+
children: [/* @__PURE__ */ E("div", {
|
|
956
958
|
className: "flex items-center gap-2",
|
|
957
|
-
children: /* @__PURE__ */
|
|
958
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
|
959
|
-
children:
|
|
959
|
+
children: /* @__PURE__ */ E("span", {
|
|
960
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", Z ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-bg-sunken text-text-secondary"),
|
|
961
|
+
children: Z ? "Enabled" : "Disabled"
|
|
960
962
|
})
|
|
961
|
-
}), /* @__PURE__ */
|
|
963
|
+
}), /* @__PURE__ */ E("button", {
|
|
962
964
|
type: "button",
|
|
963
|
-
onClick:
|
|
964
|
-
className: t("rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
965
|
-
children:
|
|
965
|
+
onClick: xe,
|
|
966
|
+
className: t("rounded-lg px-4 py-2 text-sm font-medium transition-colors", Z ? "border border-border-subtle text-text-primary hover:bg-accent" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
967
|
+
children: Z ? "Disable 2FA" : "Enable 2FA"
|
|
966
968
|
})]
|
|
967
969
|
})
|
|
968
970
|
]
|
|
969
971
|
}),
|
|
970
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ D("div", {
|
|
971
973
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
972
|
-
children: [/* @__PURE__ */
|
|
974
|
+
children: [/* @__PURE__ */ D("div", {
|
|
973
975
|
className: "flex items-center gap-3 mb-4",
|
|
974
|
-
children: [/* @__PURE__ */
|
|
976
|
+
children: [/* @__PURE__ */ E(_, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
975
977
|
className: "text-base font-semibold text-text-primary",
|
|
976
978
|
children: "Login Activity"
|
|
977
979
|
})]
|
|
978
|
-
}), /* @__PURE__ */
|
|
980
|
+
}), /* @__PURE__ */ E("div", {
|
|
979
981
|
className: "space-y-3",
|
|
980
|
-
children:
|
|
982
|
+
children: de.map((e, t) => /* @__PURE__ */ D("div", {
|
|
981
983
|
className: "flex items-center justify-between rounded-lg bg-bg-sunken/30 p-3",
|
|
982
|
-
children: [/* @__PURE__ */
|
|
984
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
983
985
|
className: "flex items-center gap-2",
|
|
984
|
-
children: [/* @__PURE__ */
|
|
986
|
+
children: [/* @__PURE__ */ E("p", {
|
|
985
987
|
className: "text-sm font-medium text-text-primary",
|
|
986
988
|
children: e.device
|
|
987
|
-
}), e.current && /* @__PURE__ */
|
|
988
|
-
className: "rounded-full bg-
|
|
989
|
+
}), e.current && /* @__PURE__ */ E("span", {
|
|
990
|
+
className: "rounded-full bg-status-success-bg-subtle/20 px-2 py-0.5 text-xs font-medium text-status-success-text",
|
|
989
991
|
children: "Current"
|
|
990
992
|
})]
|
|
991
|
-
}), /* @__PURE__ */
|
|
993
|
+
}), /* @__PURE__ */ D("div", {
|
|
992
994
|
className: "mt-1 flex items-center gap-2 text-xs text-text-secondary",
|
|
993
995
|
children: [
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ E(se, { className: "h-3 w-3" }),
|
|
997
|
+
/* @__PURE__ */ E("span", { children: e.location }),
|
|
998
|
+
/* @__PURE__ */ E("span", { children: "•" }),
|
|
999
|
+
/* @__PURE__ */ E("span", { children: ee(e.date, {
|
|
998
1000
|
hour: "numeric",
|
|
999
1001
|
minute: "2-digit"
|
|
1000
1002
|
}) })
|
|
1001
1003
|
]
|
|
1002
|
-
})] }), !e.current && /* @__PURE__ */
|
|
1004
|
+
})] }), !e.current && /* @__PURE__ */ E("button", {
|
|
1003
1005
|
type: "button",
|
|
1004
1006
|
onClick: () => alert("Session revoked"),
|
|
1005
1007
|
className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
@@ -1010,42 +1012,42 @@ function A() {
|
|
|
1010
1012
|
})
|
|
1011
1013
|
]
|
|
1012
1014
|
})] }),
|
|
1013
|
-
|
|
1015
|
+
A === "notifications" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
1014
1016
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
1015
1017
|
children: "Notification Preferences"
|
|
1016
|
-
}), /* @__PURE__ */
|
|
1018
|
+
}), /* @__PURE__ */ D("div", {
|
|
1017
1019
|
className: "space-y-4",
|
|
1018
|
-
children: [
|
|
1020
|
+
children: [V.map((e) => /* @__PURE__ */ D("div", {
|
|
1019
1021
|
className: "flex items-center justify-between rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
1020
|
-
children: [/* @__PURE__ */
|
|
1022
|
+
children: [/* @__PURE__ */ D("div", {
|
|
1021
1023
|
className: "flex-1 pr-4",
|
|
1022
|
-
children: [/* @__PURE__ */
|
|
1024
|
+
children: [/* @__PURE__ */ E("h4", {
|
|
1023
1025
|
className: "text-sm font-medium text-text-primary",
|
|
1024
1026
|
children: e.label
|
|
1025
|
-
}), /* @__PURE__ */
|
|
1027
|
+
}), /* @__PURE__ */ E("p", {
|
|
1026
1028
|
className: "mt-0.5 text-xs text-text-secondary sm:text-sm",
|
|
1027
1029
|
children: e.description
|
|
1028
1030
|
})]
|
|
1029
|
-
}), /* @__PURE__ */
|
|
1031
|
+
}), /* @__PURE__ */ E("button", {
|
|
1030
1032
|
type: "button",
|
|
1031
1033
|
onClick: () => {
|
|
1032
|
-
|
|
1034
|
+
M && ye(e.id);
|
|
1033
1035
|
},
|
|
1034
|
-
disabled: !
|
|
1035
|
-
className: t("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full transition-colors duration-200", e.enabled ? "bg-action-primary-bg" : "bg-bg-sunken", !
|
|
1036
|
-
children: /* @__PURE__ */
|
|
1036
|
+
disabled: !M,
|
|
1037
|
+
className: t("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full transition-colors duration-200", e.enabled ? "bg-action-primary-bg" : "bg-bg-sunken", !M && "cursor-not-allowed opacity-60"),
|
|
1038
|
+
children: /* @__PURE__ */ E("span", { className: t("pointer-events-none inline-block h-5 w-5 translate-y-0.5 rounded-full bg-white shadow ring-0 transition-transform duration-200", e.enabled ? "translate-x-5" : "translate-x-0.5") })
|
|
1037
1039
|
})]
|
|
1038
|
-
}, e.id)), /* @__PURE__ */
|
|
1040
|
+
}, e.id)), /* @__PURE__ */ E("div", {
|
|
1039
1041
|
className: "mt-4 rounded-lg border border-border-subtle bg-bg-sunken/50 p-4",
|
|
1040
|
-
children: /* @__PURE__ */
|
|
1042
|
+
children: /* @__PURE__ */ D("p", {
|
|
1041
1043
|
className: "text-sm text-text-secondary",
|
|
1042
1044
|
children: [
|
|
1043
|
-
|
|
1045
|
+
V.filter((e) => e.enabled).length,
|
|
1044
1046
|
" of ",
|
|
1045
|
-
|
|
1047
|
+
V.length,
|
|
1046
1048
|
" ",
|
|
1047
1049
|
"notification types enabled.",
|
|
1048
|
-
!
|
|
1050
|
+
!M && /* @__PURE__ */ E("span", {
|
|
1049
1051
|
className: "ml-1",
|
|
1050
1052
|
children: "Click \"Edit Profile\" to modify preferences."
|
|
1051
1053
|
})
|
|
@@ -1060,6 +1062,6 @@ function A() {
|
|
|
1060
1062
|
});
|
|
1061
1063
|
}
|
|
1062
1064
|
//#endregion
|
|
1063
|
-
export {
|
|
1065
|
+
export { k as InvestorProfilePage };
|
|
1064
1066
|
|
|
1065
1067
|
//# sourceMappingURL=InvestorProfilePage.js.map
|