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