@burdenoff/microfe-adaptercloud 2026.625.2 → 2026.628.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adaptercloud/AdapterCloudRoot.js +65 -121
- package/dist/adaptercloud/AdapterCloudRoot.js.map +1 -1
- package/dist/adaptercloud/AdapterCloudRoutes.js +70 -182
- package/dist/adaptercloud/AdapterCloudRoutes.js.map +1 -1
- package/dist/adaptercloud/components/DataState.js +42 -0
- package/dist/adaptercloud/components/DataState.js.map +1 -0
- package/dist/adaptercloud/components/SeverityBadge.js +12 -0
- package/dist/adaptercloud/components/SeverityBadge.js.map +1 -0
- package/dist/adaptercloud/components/StatusBadge.js +43 -44
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
- package/dist/adaptercloud/context/AdapterCloudContext.js +22 -30
- package/dist/adaptercloud/context/AdapterCloudContext.js.map +1 -1
- package/dist/adaptercloud/hooks/useAdapterCloudApi.js +397 -194
- package/dist/adaptercloud/hooks/useAdapterCloudApi.js.map +1 -1
- package/dist/adaptercloud/index.js +1 -0
- package/dist/adaptercloud/pages/OverviewPage.js +334 -0
- package/dist/adaptercloud/pages/OverviewPage.js.map +1 -0
- package/dist/adaptercloud/pages/adapters/AdapterDetailPage.js +187 -0
- package/dist/adaptercloud/pages/adapters/AdapterDetailPage.js.map +1 -0
- package/dist/adaptercloud/pages/adapters/AdapterFormPage.js +278 -0
- package/dist/adaptercloud/pages/adapters/AdapterFormPage.js.map +1 -0
- package/dist/adaptercloud/pages/adapters/AdaptersListPage.js +172 -0
- package/dist/adaptercloud/pages/adapters/AdaptersListPage.js.map +1 -0
- package/dist/adaptercloud/pages/connections/ConnectionDetailPage.js +247 -0
- package/dist/adaptercloud/pages/connections/ConnectionDetailPage.js.map +1 -0
- package/dist/adaptercloud/pages/connections/ConnectionFormPage.js +271 -0
- package/dist/adaptercloud/pages/connections/ConnectionFormPage.js.map +1 -0
- package/dist/adaptercloud/pages/connections/ConnectionsListPage.js +167 -0
- package/dist/adaptercloud/pages/connections/ConnectionsListPage.js.map +1 -0
- package/dist/adaptercloud/pages/costs/CostsPage.js +169 -0
- package/dist/adaptercloud/pages/costs/CostsPage.js.map +1 -0
- package/dist/adaptercloud/pages/drift/DriftListPage.js +132 -0
- package/dist/adaptercloud/pages/drift/DriftListPage.js.map +1 -0
- package/dist/adaptercloud/pages/policies/PoliciesListPage.js +171 -0
- package/dist/adaptercloud/pages/policies/PoliciesListPage.js.map +1 -0
- package/dist/adaptercloud/pages/policies/PolicyDetailPage.js +185 -0
- package/dist/adaptercloud/pages/policies/PolicyDetailPage.js.map +1 -0
- package/dist/adaptercloud/pages/policies/PolicyFormPage.js +215 -0
- package/dist/adaptercloud/pages/policies/PolicyFormPage.js.map +1 -0
- package/dist/adaptercloud/pages/resources/ResourceDetailPage.js +207 -0
- package/dist/adaptercloud/pages/resources/ResourceDetailPage.js.map +1 -0
- package/dist/adaptercloud/pages/resources/ResourcesListPage.js +182 -0
- package/dist/adaptercloud/pages/resources/ResourcesListPage.js.map +1 -0
- package/dist/adaptercloud/pages/sync-runs/SyncRunsListPage.js +196 -0
- package/dist/adaptercloud/pages/sync-runs/SyncRunsListPage.js.map +1 -0
- package/dist/adaptercloud/pages/violations/ViolationsListPage.js +258 -0
- package/dist/adaptercloud/pages/violations/ViolationsListPage.js.map +1 -0
- package/dist/adaptercloud/store/adaptercloudStore.js +1 -7
- package/dist/adaptercloud/store/adaptercloudStore.js.map +1 -1
- package/dist/adaptercloud/utils/domain.js +105 -0
- package/dist/adaptercloud/utils/domain.js.map +1 -0
- package/dist/adaptercloud/utils/formatters.js +1 -12
- package/dist/adaptercloud/utils/formatters.js.map +1 -1
- package/dist/index.js +5 -4
- package/package.json +1 -1
- package/dist/adaptercloud/components/InvestmentCard.js +0 -98
- package/dist/adaptercloud/components/InvestmentCard.js.map +0 -1
- package/dist/adaptercloud/components/RatingDisplay.js +0 -35
- package/dist/adaptercloud/components/RatingDisplay.js.map +0 -1
- package/dist/adaptercloud/mocks/data.js +0 -1517
- package/dist/adaptercloud/mocks/data.js.map +0 -1
- package/dist/adaptercloud/mocks/users.js +0 -34
- package/dist/adaptercloud/mocks/users.js.map +0 -1
- package/dist/adaptercloud/pages/HomePage.js +0 -934
- package/dist/adaptercloud/pages/HomePage.js.map +0 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +0 -653
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +0 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +0 -665
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +0 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +0 -426
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +0 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +0 -665
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +0 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +0 -261
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +0 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +0 -663
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +0 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +0 -874
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +0 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +0 -898
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +0 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +0 -840
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +0 -714
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +0 -788
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +0 -888
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +0 -634
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +0 -907
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +0 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +0 -875
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +0 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +0 -827
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +0 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +0 -1329
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +0 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +0 -671
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +0 -1
- package/dist/adaptercloud/pages/common/SettingsPage.js +0 -982
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +0 -596
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +0 -623
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +0 -552
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +0 -534
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +0 -525
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +0 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +0 -623
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +0 -629
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +0 -480
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +0 -444
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +0 -391
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +0 -504
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +0 -609
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +0 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +0 -459
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +0 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +0 -851
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +0 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +0 -942
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +0 -683
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +0 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +0 -452
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +0 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +0 -402
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +0 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +0 -571
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +0 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +0 -1067
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +0 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +0 -526
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +0 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +0 -659
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +0 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +0 -678
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +0 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +0 -689
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +0 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +0 -582
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +0 -1
|
@@ -1,1067 +0,0 @@
|
|
|
1
|
-
import { useAdapterCloud as e } from "../../context/AdapterCloudContext.js";
|
|
2
|
-
import { cn as t } from "../../utils/cn.js";
|
|
3
|
-
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
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
|
-
import { useCallback as a, useMemo as o, useState as s } from "react";
|
|
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";
|
|
11
|
-
//#region src/adaptercloud/pages/investor/InvestorProfilePage.tsx
|
|
12
|
-
var O = [
|
|
13
|
-
{
|
|
14
|
-
id: "personal",
|
|
15
|
-
label: "Personal Info",
|
|
16
|
-
Icon: w
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: "investment",
|
|
20
|
-
label: "Investment Profile",
|
|
21
|
-
Icon: C
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "portfolio",
|
|
25
|
-
label: "Portfolio",
|
|
26
|
-
Icon: y
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: "documents",
|
|
30
|
-
label: "Documents",
|
|
31
|
-
Icon: g
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "security",
|
|
35
|
-
label: "Security",
|
|
36
|
-
Icon: x
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "notifications",
|
|
40
|
-
label: "Notifications",
|
|
41
|
-
Icon: c
|
|
42
|
-
}
|
|
43
|
-
], ue = [
|
|
44
|
-
{
|
|
45
|
-
name: "PAN Card",
|
|
46
|
-
verifiedOn: "15 Dec 2023",
|
|
47
|
-
status: "verified"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: "Aadhar Card",
|
|
51
|
-
verifiedOn: "15 Dec 2023",
|
|
52
|
-
status: "verified"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: "Bank Statement",
|
|
56
|
-
verifiedOn: "20 Dec 2023",
|
|
57
|
-
status: "uploaded"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: "Investment Agreement",
|
|
61
|
-
verifiedOn: "",
|
|
62
|
-
status: "template"
|
|
63
|
-
}
|
|
64
|
-
], de = [
|
|
65
|
-
{
|
|
66
|
-
device: "Chrome on macOS",
|
|
67
|
-
location: "Bangalore, India",
|
|
68
|
-
date: "2024-01-16T08:30:00Z",
|
|
69
|
-
current: !0
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
device: "Safari on iPhone",
|
|
73
|
-
location: "Bangalore, India",
|
|
74
|
-
date: "2024-01-15T19:45:00Z",
|
|
75
|
-
current: !1
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
device: "Chrome on Windows",
|
|
79
|
-
location: "Mumbai, India",
|
|
80
|
-
date: "2024-01-14T10:20:00Z",
|
|
81
|
-
current: !1
|
|
82
|
-
}
|
|
83
|
-
], fe = [
|
|
84
|
-
"Food & Beverage",
|
|
85
|
-
"Quick Commerce",
|
|
86
|
-
"Cloud Kitchen",
|
|
87
|
-
"Retail",
|
|
88
|
-
"Technology",
|
|
89
|
-
"Healthcare",
|
|
90
|
-
"Education",
|
|
91
|
-
"Logistics",
|
|
92
|
-
"FinTech"
|
|
93
|
-
];
|
|
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(() => ({
|
|
96
|
-
firstName: c?.firstName ?? c?.name?.split(" ")[0] ?? "Rajesh",
|
|
97
|
-
lastName: c?.lastName ?? c?.name?.split(" ")[1] ?? "Mehta",
|
|
98
|
-
email: c?.email ?? "investor@burdenoff.com",
|
|
99
|
-
phone: "+91 98765 43230",
|
|
100
|
-
profileImage: c?.avatar ?? "",
|
|
101
|
-
investorType: "Angel Investor",
|
|
102
|
-
investmentRange: "5L - 25L",
|
|
103
|
-
preferredSectors: [
|
|
104
|
-
"Food & Beverage",
|
|
105
|
-
"Quick Commerce",
|
|
106
|
-
"Cloud Kitchen"
|
|
107
|
-
],
|
|
108
|
-
investmentHorizon: "3-5 years",
|
|
109
|
-
riskProfile: "Moderate",
|
|
110
|
-
companyName: "Mehta Ventures",
|
|
111
|
-
designation: "Managing Partner",
|
|
112
|
-
companyWebsite: "www.mehtaventures.com",
|
|
113
|
-
linkedinProfile: "linkedin.com/in/rajeshmehta",
|
|
114
|
-
address: "456, MG Road",
|
|
115
|
-
city: "Bangalore",
|
|
116
|
-
state: "Karnataka",
|
|
117
|
-
country: "India",
|
|
118
|
-
pincode: "560001"
|
|
119
|
-
}), [c]), [z, B] = s(R);
|
|
120
|
-
o(() => ({
|
|
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([
|
|
127
|
-
{
|
|
128
|
-
id: "opportunities",
|
|
129
|
-
label: "New Investment Opportunities",
|
|
130
|
-
description: "Get notified about new investment opportunities matching your profile",
|
|
131
|
-
enabled: !0
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: "updates",
|
|
135
|
-
label: "Portfolio Updates",
|
|
136
|
-
description: "Regular updates on your portfolio performance",
|
|
137
|
-
enabled: !0
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
id: "reports",
|
|
141
|
-
label: "Monthly Reports",
|
|
142
|
-
description: "Detailed monthly investment reports",
|
|
143
|
-
enabled: !0
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
id: "events",
|
|
147
|
-
label: "Investor Events",
|
|
148
|
-
description: "Invitations to investor meetups and events",
|
|
149
|
-
enabled: !1
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
id: "news",
|
|
153
|
-
label: "Market News",
|
|
154
|
-
description: "Important market news and updates",
|
|
155
|
-
enabled: !0
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
id: "dividends",
|
|
159
|
-
label: "Dividend Alerts",
|
|
160
|
-
description: "Notifications when dividends are credited to your account",
|
|
161
|
-
enabled: !0
|
|
162
|
-
}
|
|
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) => ({
|
|
165
|
-
...n,
|
|
166
|
-
[e]: t
|
|
167
|
-
}));
|
|
168
|
-
}, []), $ = a(() => {
|
|
169
|
-
F(!0), setTimeout(() => {
|
|
170
|
-
F(!1), N(!1), L("Profile updated successfully!"), setTimeout(() => L(""), 3e3);
|
|
171
|
-
}, 1200);
|
|
172
|
-
}, []), ve = a((e) => {
|
|
173
|
-
let t = e.target.files?.[0];
|
|
174
|
-
if (t) {
|
|
175
|
-
let e = new FileReader();
|
|
176
|
-
e.onloadend = () => {
|
|
177
|
-
B((t) => ({
|
|
178
|
-
...t,
|
|
179
|
-
profileImage: e.result
|
|
180
|
-
}));
|
|
181
|
-
}, e.readAsDataURL(t);
|
|
182
|
-
}
|
|
183
|
-
}, []), ye = a((e) => {
|
|
184
|
-
pe((t) => t.map((t) => t.id === e ? {
|
|
185
|
-
...t,
|
|
186
|
-
enabled: !t.enabled
|
|
187
|
-
} : t));
|
|
188
|
-
}, []), be = a(() => {
|
|
189
|
-
if (!(!U || !G || !q)) {
|
|
190
|
-
if (G !== q) {
|
|
191
|
-
alert("Passwords do not match");
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
if (G.length < 8) {
|
|
195
|
-
alert("Password must be at least 8 characters");
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
alert("Password changed successfully!"), H(!1), W(""), K(""), J("");
|
|
199
|
-
}
|
|
200
|
-
}, [
|
|
201
|
-
U,
|
|
202
|
-
G,
|
|
203
|
-
q
|
|
204
|
-
]), xe = a(() => {
|
|
205
|
-
_e((e) => {
|
|
206
|
-
let t = !e;
|
|
207
|
-
return alert(t ? "2FA has been enabled" : "2FA has been disabled"), t;
|
|
208
|
-
});
|
|
209
|
-
}, []);
|
|
210
|
-
return /* @__PURE__ */ E(n, {
|
|
211
|
-
title: "Investor Profile",
|
|
212
|
-
description: "Manage your investment profile and preferences",
|
|
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", {
|
|
215
|
-
className: "flex items-center gap-2",
|
|
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", {
|
|
220
|
-
type: "button",
|
|
221
|
-
onClick: () => {
|
|
222
|
-
N(!1), B(R);
|
|
223
|
-
},
|
|
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",
|
|
225
|
-
children: [/* @__PURE__ */ E(ce, { className: "h-4 w-4" }), "Cancel"]
|
|
226
|
-
}), /* @__PURE__ */ E("button", {
|
|
227
|
-
type: "button",
|
|
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", {
|
|
233
|
-
type: "button",
|
|
234
|
-
onClick: () => N(!0),
|
|
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",
|
|
236
|
-
children: [/* @__PURE__ */ E(p, { className: "h-4 w-4" }), "Edit Profile"]
|
|
237
|
-
})]
|
|
238
|
-
}),
|
|
239
|
-
children: /* @__PURE__ */ D("div", {
|
|
240
|
-
className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
|
|
241
|
-
children: [/* @__PURE__ */ D("div", {
|
|
242
|
-
className: "lg:col-span-1",
|
|
243
|
-
children: [
|
|
244
|
-
/* @__PURE__ */ D(le, {
|
|
245
|
-
className: "p-4 sm:p-6",
|
|
246
|
-
children: [/* @__PURE__ */ D("div", {
|
|
247
|
-
className: "text-center",
|
|
248
|
-
children: [
|
|
249
|
-
/* @__PURE__ */ D("div", {
|
|
250
|
-
className: "relative mx-auto inline-block",
|
|
251
|
-
children: [/* @__PURE__ */ E("div", {
|
|
252
|
-
className: "h-20 w-20 overflow-hidden rounded-full bg-bg-sunken sm:h-24 sm:w-24",
|
|
253
|
-
children: z.profileImage ? /* @__PURE__ */ E("img", {
|
|
254
|
-
src: z.profileImage,
|
|
255
|
-
alt: "Profile",
|
|
256
|
-
className: "h-full w-full object-cover"
|
|
257
|
-
}) : /* @__PURE__ */ E("div", {
|
|
258
|
-
className: "flex h-full w-full items-center justify-center",
|
|
259
|
-
children: /* @__PURE__ */ E(w, { className: "h-10 w-10 text-text-secondary" })
|
|
260
|
-
})
|
|
261
|
-
}), M && /* @__PURE__ */ D("label", {
|
|
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",
|
|
263
|
-
children: [/* @__PURE__ */ E(u, { className: "h-4 w-4" }), /* @__PURE__ */ E("input", {
|
|
264
|
-
type: "file",
|
|
265
|
-
accept: "image/*",
|
|
266
|
-
onChange: ve,
|
|
267
|
-
className: "hidden"
|
|
268
|
-
})]
|
|
269
|
-
})]
|
|
270
|
-
}),
|
|
271
|
-
/* @__PURE__ */ D("h3", {
|
|
272
|
-
className: "mt-3 text-base font-semibold text-text-primary sm:text-lg",
|
|
273
|
-
children: [
|
|
274
|
-
z.firstName,
|
|
275
|
-
" ",
|
|
276
|
-
z.lastName
|
|
277
|
-
]
|
|
278
|
-
}),
|
|
279
|
-
/* @__PURE__ */ E("p", {
|
|
280
|
-
className: "text-sm text-text-secondary",
|
|
281
|
-
children: z.investorType
|
|
282
|
-
}),
|
|
283
|
-
/* @__PURE__ */ E("p", {
|
|
284
|
-
className: "mt-1 truncate text-xs text-text-secondary",
|
|
285
|
-
children: z.companyName
|
|
286
|
-
})
|
|
287
|
-
]
|
|
288
|
-
}), /* @__PURE__ */ D("div", {
|
|
289
|
-
className: "mt-5 space-y-3 border-t border-border-subtle pt-4",
|
|
290
|
-
children: [
|
|
291
|
-
/* @__PURE__ */ D("div", {
|
|
292
|
-
className: "flex items-center justify-between",
|
|
293
|
-
children: [/* @__PURE__ */ E("span", {
|
|
294
|
-
className: "text-xs text-text-secondary sm:text-sm",
|
|
295
|
-
children: "Portfolio Value"
|
|
296
|
-
}), /* @__PURE__ */ E("span", {
|
|
297
|
-
className: "text-xs font-semibold text-primary sm:text-sm",
|
|
298
|
-
children: i(z.portfolioValue ?? 0, { minimumFractionDigits: 0 })
|
|
299
|
-
})]
|
|
300
|
-
}),
|
|
301
|
-
/* @__PURE__ */ D("div", {
|
|
302
|
-
className: "flex items-center justify-between",
|
|
303
|
-
children: [/* @__PURE__ */ E("span", {
|
|
304
|
-
className: "text-xs text-text-secondary sm:text-sm",
|
|
305
|
-
children: "Active Investments"
|
|
306
|
-
}), /* @__PURE__ */ E("span", {
|
|
307
|
-
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
308
|
-
children: z.activeInvestments
|
|
309
|
-
})]
|
|
310
|
-
}),
|
|
311
|
-
/* @__PURE__ */ D("div", {
|
|
312
|
-
className: "flex items-center justify-between",
|
|
313
|
-
children: [/* @__PURE__ */ E("span", {
|
|
314
|
-
className: "text-xs text-text-secondary sm:text-sm",
|
|
315
|
-
children: "Total Returns"
|
|
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 })]
|
|
319
|
-
})]
|
|
320
|
-
}),
|
|
321
|
-
/* @__PURE__ */ D("div", {
|
|
322
|
-
className: "flex items-center justify-between",
|
|
323
|
-
children: [/* @__PURE__ */ E("span", {
|
|
324
|
-
className: "text-xs text-text-secondary sm:text-sm",
|
|
325
|
-
children: "Total Invested"
|
|
326
|
-
}), /* @__PURE__ */ E("span", {
|
|
327
|
-
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
328
|
-
children: i(z.totalInvested ?? 0, { minimumFractionDigits: 0 })
|
|
329
|
-
})]
|
|
330
|
-
})
|
|
331
|
-
]
|
|
332
|
-
})]
|
|
333
|
-
}),
|
|
334
|
-
/* @__PURE__ */ E("div", {
|
|
335
|
-
className: "mt-4 flex gap-2 overflow-x-auto pb-2 lg:hidden",
|
|
336
|
-
children: O.map((e) => /* @__PURE__ */ D("button", {
|
|
337
|
-
type: "button",
|
|
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]
|
|
341
|
-
}, e.id))
|
|
342
|
-
}),
|
|
343
|
-
/* @__PURE__ */ E("div", {
|
|
344
|
-
className: "mt-4 hidden space-y-2 lg:block",
|
|
345
|
-
children: O.map((e) => /* @__PURE__ */ D("button", {
|
|
346
|
-
type: "button",
|
|
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]
|
|
350
|
-
}, e.id))
|
|
351
|
-
})
|
|
352
|
-
]
|
|
353
|
-
}), /* @__PURE__ */ E("div", {
|
|
354
|
-
className: "lg:col-span-3",
|
|
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",
|
|
357
|
-
children: [
|
|
358
|
-
A === "personal" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
359
|
-
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
360
|
-
children: "Personal Information"
|
|
361
|
-
}), /* @__PURE__ */ D("div", {
|
|
362
|
-
className: "space-y-6",
|
|
363
|
-
children: [
|
|
364
|
-
/* @__PURE__ */ D("div", {
|
|
365
|
-
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
366
|
-
children: [
|
|
367
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
368
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
369
|
-
children: "First Name"
|
|
370
|
-
}), /* @__PURE__ */ E("input", {
|
|
371
|
-
type: "text",
|
|
372
|
-
value: z.firstName,
|
|
373
|
-
onChange: (e) => Q("firstName", e.target.value),
|
|
374
|
-
disabled: !M,
|
|
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)]"
|
|
376
|
-
})] }),
|
|
377
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
378
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
379
|
-
children: "Last Name"
|
|
380
|
-
}), /* @__PURE__ */ E("input", {
|
|
381
|
-
type: "text",
|
|
382
|
-
value: z.lastName,
|
|
383
|
-
onChange: (e) => Q("lastName", e.target.value),
|
|
384
|
-
disabled: !M,
|
|
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)]"
|
|
386
|
-
})] }),
|
|
387
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
388
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
389
|
-
children: "Email Address"
|
|
390
|
-
}), /* @__PURE__ */ D("div", {
|
|
391
|
-
className: "relative",
|
|
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", {
|
|
393
|
-
type: "email",
|
|
394
|
-
value: z.email,
|
|
395
|
-
onChange: (e) => Q("email", e.target.value),
|
|
396
|
-
disabled: !M,
|
|
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)]"
|
|
398
|
-
})]
|
|
399
|
-
})] }),
|
|
400
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
401
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
402
|
-
children: "Phone Number"
|
|
403
|
-
}), /* @__PURE__ */ D("div", {
|
|
404
|
-
className: "relative",
|
|
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", {
|
|
406
|
-
type: "tel",
|
|
407
|
-
value: z.phone,
|
|
408
|
-
onChange: (e) => Q("phone", e.target.value),
|
|
409
|
-
disabled: !M,
|
|
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)]"
|
|
411
|
-
})]
|
|
412
|
-
})] })
|
|
413
|
-
]
|
|
414
|
-
}),
|
|
415
|
-
/* @__PURE__ */ D("div", {
|
|
416
|
-
className: "border-t border-border-subtle pt-6",
|
|
417
|
-
children: [/* @__PURE__ */ E("h3", {
|
|
418
|
-
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
419
|
-
children: "Professional Details"
|
|
420
|
-
}), /* @__PURE__ */ D("div", {
|
|
421
|
-
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
422
|
-
children: [
|
|
423
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
424
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
425
|
-
children: "Company/Organization"
|
|
426
|
-
}), /* @__PURE__ */ D("div", {
|
|
427
|
-
className: "relative",
|
|
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", {
|
|
429
|
-
type: "text",
|
|
430
|
-
value: z.companyName,
|
|
431
|
-
onChange: (e) => Q("companyName", e.target.value),
|
|
432
|
-
disabled: !M,
|
|
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)]"
|
|
434
|
-
})]
|
|
435
|
-
})] }),
|
|
436
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
437
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
438
|
-
children: "Designation"
|
|
439
|
-
}), /* @__PURE__ */ E("input", {
|
|
440
|
-
type: "text",
|
|
441
|
-
value: z.designation,
|
|
442
|
-
onChange: (e) => Q("designation", e.target.value),
|
|
443
|
-
disabled: !M,
|
|
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)]"
|
|
445
|
-
})] }),
|
|
446
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
447
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
448
|
-
children: "Company Website"
|
|
449
|
-
}), /* @__PURE__ */ D("div", {
|
|
450
|
-
className: "relative",
|
|
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", {
|
|
452
|
-
type: "text",
|
|
453
|
-
value: z.companyWebsite,
|
|
454
|
-
onChange: (e) => Q("companyWebsite", e.target.value),
|
|
455
|
-
disabled: !M,
|
|
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)]"
|
|
457
|
-
})]
|
|
458
|
-
})] }),
|
|
459
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
460
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
461
|
-
children: "LinkedIn Profile"
|
|
462
|
-
}), /* @__PURE__ */ D("div", {
|
|
463
|
-
className: "relative",
|
|
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", {
|
|
465
|
-
type: "text",
|
|
466
|
-
value: z.linkedinProfile,
|
|
467
|
-
onChange: (e) => Q("linkedinProfile", e.target.value),
|
|
468
|
-
disabled: !M,
|
|
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)]"
|
|
470
|
-
})]
|
|
471
|
-
})] })
|
|
472
|
-
]
|
|
473
|
-
})]
|
|
474
|
-
}),
|
|
475
|
-
/* @__PURE__ */ D("div", {
|
|
476
|
-
className: "border-t border-border-subtle pt-6",
|
|
477
|
-
children: [/* @__PURE__ */ E("h3", {
|
|
478
|
-
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
479
|
-
children: "Address"
|
|
480
|
-
}), /* @__PURE__ */ D("div", {
|
|
481
|
-
className: "space-y-4",
|
|
482
|
-
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
483
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
484
|
-
children: "Street Address"
|
|
485
|
-
}), /* @__PURE__ */ E("textarea", {
|
|
486
|
-
rows: 2,
|
|
487
|
-
value: z.address,
|
|
488
|
-
onChange: (e) => Q("address", e.target.value),
|
|
489
|
-
disabled: !M,
|
|
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)]"
|
|
491
|
-
})] }), /* @__PURE__ */ D("div", {
|
|
492
|
-
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
493
|
-
children: [
|
|
494
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
495
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
496
|
-
children: "City"
|
|
497
|
-
}), /* @__PURE__ */ E("input", {
|
|
498
|
-
type: "text",
|
|
499
|
-
value: z.city,
|
|
500
|
-
onChange: (e) => Q("city", e.target.value),
|
|
501
|
-
disabled: !M,
|
|
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)]"
|
|
503
|
-
})] }),
|
|
504
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
505
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
506
|
-
children: "State"
|
|
507
|
-
}), /* @__PURE__ */ E("input", {
|
|
508
|
-
type: "text",
|
|
509
|
-
value: z.state,
|
|
510
|
-
onChange: (e) => Q("state", e.target.value),
|
|
511
|
-
disabled: !M,
|
|
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)]"
|
|
513
|
-
})] }),
|
|
514
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
515
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
516
|
-
children: "Country"
|
|
517
|
-
}), /* @__PURE__ */ E("input", {
|
|
518
|
-
type: "text",
|
|
519
|
-
value: z.country,
|
|
520
|
-
onChange: (e) => Q("country", e.target.value),
|
|
521
|
-
disabled: !M,
|
|
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)]"
|
|
523
|
-
})] }),
|
|
524
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
525
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
526
|
-
children: "Pincode"
|
|
527
|
-
}), /* @__PURE__ */ E("input", {
|
|
528
|
-
type: "text",
|
|
529
|
-
value: z.pincode,
|
|
530
|
-
onChange: (e) => Q("pincode", e.target.value),
|
|
531
|
-
disabled: !M,
|
|
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)]"
|
|
533
|
-
})] })
|
|
534
|
-
]
|
|
535
|
-
})]
|
|
536
|
-
})]
|
|
537
|
-
})
|
|
538
|
-
]
|
|
539
|
-
})] }),
|
|
540
|
-
A === "investment" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
541
|
-
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
542
|
-
children: "Investment Profile"
|
|
543
|
-
}), /* @__PURE__ */ D("div", {
|
|
544
|
-
className: "space-y-6",
|
|
545
|
-
children: [
|
|
546
|
-
/* @__PURE__ */ D("div", {
|
|
547
|
-
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
548
|
-
children: [
|
|
549
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
550
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
551
|
-
children: "Investor Type"
|
|
552
|
-
}), /* @__PURE__ */ D("select", {
|
|
553
|
-
value: z.investorType,
|
|
554
|
-
onChange: (e) => Q("investorType", e.target.value),
|
|
555
|
-
disabled: !M,
|
|
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)]",
|
|
557
|
-
children: [
|
|
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" })
|
|
562
|
-
]
|
|
563
|
-
})] }),
|
|
564
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
565
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
566
|
-
children: "Investment Range"
|
|
567
|
-
}), /* @__PURE__ */ D("select", {
|
|
568
|
-
value: z.investmentRange,
|
|
569
|
-
onChange: (e) => Q("investmentRange", e.target.value),
|
|
570
|
-
disabled: !M,
|
|
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)]",
|
|
572
|
-
children: [
|
|
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+" })
|
|
577
|
-
]
|
|
578
|
-
})] }),
|
|
579
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
580
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
581
|
-
children: "Investment Horizon"
|
|
582
|
-
}), /* @__PURE__ */ D("select", {
|
|
583
|
-
value: z.investmentHorizon,
|
|
584
|
-
onChange: (e) => Q("investmentHorizon", e.target.value),
|
|
585
|
-
disabled: !M,
|
|
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)]",
|
|
587
|
-
children: [
|
|
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" })
|
|
592
|
-
]
|
|
593
|
-
})] }),
|
|
594
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
595
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
596
|
-
children: "Risk Profile"
|
|
597
|
-
}), /* @__PURE__ */ D("select", {
|
|
598
|
-
value: z.riskProfile,
|
|
599
|
-
onChange: (e) => Q("riskProfile", e.target.value),
|
|
600
|
-
disabled: !M,
|
|
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)]",
|
|
602
|
-
children: [
|
|
603
|
-
/* @__PURE__ */ E("option", { children: "Conservative" }),
|
|
604
|
-
/* @__PURE__ */ E("option", { children: "Moderate" }),
|
|
605
|
-
/* @__PURE__ */ E("option", { children: "Aggressive" })
|
|
606
|
-
]
|
|
607
|
-
})] })
|
|
608
|
-
]
|
|
609
|
-
}),
|
|
610
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
611
|
-
className: "mb-3 block text-sm font-medium text-text-primary",
|
|
612
|
-
children: "Preferred Sectors"
|
|
613
|
-
}), /* @__PURE__ */ E("div", {
|
|
614
|
-
className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
|
|
615
|
-
children: fe.map((e) => /* @__PURE__ */ D("label", {
|
|
616
|
-
className: "flex items-center gap-2",
|
|
617
|
-
children: [/* @__PURE__ */ E("input", {
|
|
618
|
-
type: "checkbox",
|
|
619
|
-
checked: z.preferredSectors.includes(e),
|
|
620
|
-
onChange: (t) => {
|
|
621
|
-
t.target.checked ? Q("preferredSectors", [...z.preferredSectors, e]) : Q("preferredSectors", z.preferredSectors.filter((t) => t !== e));
|
|
622
|
-
},
|
|
623
|
-
disabled: !M,
|
|
624
|
-
className: "h-4 w-4 rounded border-border-subtle text-primary focus:ring-[var(--color-focus-ring)]"
|
|
625
|
-
}), /* @__PURE__ */ E("span", {
|
|
626
|
-
className: "text-sm text-text-primary",
|
|
627
|
-
children: e
|
|
628
|
-
})]
|
|
629
|
-
}, e))
|
|
630
|
-
})] }),
|
|
631
|
-
/* @__PURE__ */ D("div", {
|
|
632
|
-
className: "rounded-lg border border-border-subtle p-4",
|
|
633
|
-
children: [/* @__PURE__ */ D("div", {
|
|
634
|
-
className: "mb-2 flex items-center justify-between",
|
|
635
|
-
children: [/* @__PURE__ */ E("p", {
|
|
636
|
-
className: "text-sm font-medium text-text-primary",
|
|
637
|
-
children: "Risk Tolerance"
|
|
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
|
|
641
|
-
})]
|
|
642
|
-
}), /* @__PURE__ */ E("div", {
|
|
643
|
-
className: "flex gap-1",
|
|
644
|
-
children: [
|
|
645
|
-
"Conservative",
|
|
646
|
-
"Moderate",
|
|
647
|
-
"Aggressive"
|
|
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))
|
|
649
|
-
})]
|
|
650
|
-
})
|
|
651
|
-
]
|
|
652
|
-
})] }),
|
|
653
|
-
A === "portfolio" && /* @__PURE__ */ D("div", { children: [
|
|
654
|
-
/* @__PURE__ */ E("h2", {
|
|
655
|
-
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
656
|
-
children: "Investment Portfolio"
|
|
657
|
-
}),
|
|
658
|
-
/* @__PURE__ */ D("div", {
|
|
659
|
-
className: "mb-8 grid grid-cols-2 gap-4 sm:grid-cols-4 sm:gap-6",
|
|
660
|
-
children: [
|
|
661
|
-
/* @__PURE__ */ D("div", {
|
|
662
|
-
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
663
|
-
children: [
|
|
664
|
-
/* @__PURE__ */ E(f, { className: "mb-2 h-7 w-7 text-primary sm:h-8 sm:w-8" }),
|
|
665
|
-
/* @__PURE__ */ E("div", {
|
|
666
|
-
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
667
|
-
children: i(z.totalInvested ?? 0, {
|
|
668
|
-
minimumFractionDigits: 0,
|
|
669
|
-
notation: "compact"
|
|
670
|
-
})
|
|
671
|
-
}),
|
|
672
|
-
/* @__PURE__ */ E("div", {
|
|
673
|
-
className: "text-xs text-text-secondary sm:text-sm",
|
|
674
|
-
children: "Total Invested"
|
|
675
|
-
})
|
|
676
|
-
]
|
|
677
|
-
}),
|
|
678
|
-
/* @__PURE__ */ D("div", {
|
|
679
|
-
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
680
|
-
children: [
|
|
681
|
-
/* @__PURE__ */ E(ne, { className: "mb-2 h-7 w-7 text-accent-blue sm:h-8 sm:w-8" }),
|
|
682
|
-
/* @__PURE__ */ E("div", {
|
|
683
|
-
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
684
|
-
children: z.activeInvestments
|
|
685
|
-
}),
|
|
686
|
-
/* @__PURE__ */ E("div", {
|
|
687
|
-
className: "text-xs text-text-secondary sm:text-sm",
|
|
688
|
-
children: "Active Investments"
|
|
689
|
-
})
|
|
690
|
-
]
|
|
691
|
-
}),
|
|
692
|
-
/* @__PURE__ */ D("div", {
|
|
693
|
-
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
694
|
-
children: [
|
|
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", {
|
|
697
|
-
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
698
|
-
children: i(z.totalReturns ?? 0, {
|
|
699
|
-
minimumFractionDigits: 0,
|
|
700
|
-
notation: "compact"
|
|
701
|
-
})
|
|
702
|
-
}),
|
|
703
|
-
/* @__PURE__ */ E("div", {
|
|
704
|
-
className: "text-xs text-text-secondary sm:text-sm",
|
|
705
|
-
children: "Total Returns"
|
|
706
|
-
})
|
|
707
|
-
]
|
|
708
|
-
}),
|
|
709
|
-
/* @__PURE__ */ D("div", {
|
|
710
|
-
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
711
|
-
children: [
|
|
712
|
-
/* @__PURE__ */ E(y, { className: "mb-2 h-7 w-7 text-accent-purple sm:h-8 sm:w-8" }),
|
|
713
|
-
/* @__PURE__ */ E("div", {
|
|
714
|
-
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
715
|
-
children: i(z.portfolioValue ?? 0, {
|
|
716
|
-
minimumFractionDigits: 0,
|
|
717
|
-
notation: "compact"
|
|
718
|
-
})
|
|
719
|
-
}),
|
|
720
|
-
/* @__PURE__ */ E("div", {
|
|
721
|
-
className: "text-xs text-text-secondary sm:text-sm",
|
|
722
|
-
children: "Portfolio Value"
|
|
723
|
-
})
|
|
724
|
-
]
|
|
725
|
-
})
|
|
726
|
-
]
|
|
727
|
-
}),
|
|
728
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h3", {
|
|
729
|
-
className: "mb-4 text-base font-semibold text-text-primary",
|
|
730
|
-
children: "Active Investments"
|
|
731
|
-
}), /* @__PURE__ */ E("div", {
|
|
732
|
-
className: "space-y-3",
|
|
733
|
-
children: te.map((e, n) => /* @__PURE__ */ D("div", {
|
|
734
|
-
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
735
|
-
children: [/* @__PURE__ */ D("div", {
|
|
736
|
-
className: "mb-3 flex items-start justify-between",
|
|
737
|
-
children: [/* @__PURE__ */ E("h4", {
|
|
738
|
-
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
739
|
-
children: e.cartName
|
|
740
|
-
}), /* @__PURE__ */ D("span", {
|
|
741
|
-
className: t("text-sm font-semibold", e.returns > 0 ? "text-status-success-text" : "text-status-error-text"),
|
|
742
|
-
children: [
|
|
743
|
-
e.returns > 0 ? "+" : "",
|
|
744
|
-
e.returns,
|
|
745
|
-
"%"
|
|
746
|
-
]
|
|
747
|
-
})]
|
|
748
|
-
}), /* @__PURE__ */ D("div", {
|
|
749
|
-
className: "grid grid-cols-1 gap-3 text-sm sm:grid-cols-3",
|
|
750
|
-
children: [
|
|
751
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
752
|
-
className: "text-text-secondary",
|
|
753
|
-
children: "Invested: "
|
|
754
|
-
}), /* @__PURE__ */ E("span", {
|
|
755
|
-
className: "font-medium text-text-primary",
|
|
756
|
-
children: i(e.investedAmount, { minimumFractionDigits: 0 })
|
|
757
|
-
})] }),
|
|
758
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
759
|
-
className: "text-text-secondary",
|
|
760
|
-
children: "Current Value: "
|
|
761
|
-
}), /* @__PURE__ */ E("span", {
|
|
762
|
-
className: "font-medium text-text-primary",
|
|
763
|
-
children: i(e.currentValue, { minimumFractionDigits: 0 })
|
|
764
|
-
})] }),
|
|
765
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("span", {
|
|
766
|
-
className: "text-text-secondary",
|
|
767
|
-
children: "Returns: "
|
|
768
|
-
}), /* @__PURE__ */ E("span", {
|
|
769
|
-
className: "font-medium text-status-success-text",
|
|
770
|
-
children: i(e.currentValue - e.investedAmount, { minimumFractionDigits: 0 })
|
|
771
|
-
})] })
|
|
772
|
-
]
|
|
773
|
-
})]
|
|
774
|
-
}, n))
|
|
775
|
-
})] })
|
|
776
|
-
] }),
|
|
777
|
-
A === "documents" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
778
|
-
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
779
|
-
children: "Documents & KYC"
|
|
780
|
-
}), /* @__PURE__ */ D("div", {
|
|
781
|
-
className: "space-y-6",
|
|
782
|
-
children: [
|
|
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",
|
|
787
|
-
children: "Your KYC is complete and verified"
|
|
788
|
-
})]
|
|
789
|
-
}),
|
|
790
|
-
/* @__PURE__ */ E("div", {
|
|
791
|
-
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
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",
|
|
794
|
-
children: [
|
|
795
|
-
/* @__PURE__ */ E(g, { className: "mb-3 h-8 w-8 text-primary" }),
|
|
796
|
-
/* @__PURE__ */ E("h3", {
|
|
797
|
-
className: "text-base font-semibold text-text-primary",
|
|
798
|
-
children: e.name
|
|
799
|
-
}),
|
|
800
|
-
/* @__PURE__ */ E("p", {
|
|
801
|
-
className: "mt-1 text-sm text-text-secondary",
|
|
802
|
-
children: e.status === "verified" ? `Verified on ${e.verifiedOn}` : e.status === "uploaded" ? `Uploaded on ${e.verifiedOn}` : "Template available"
|
|
803
|
-
}),
|
|
804
|
-
/* @__PURE__ */ D("div", {
|
|
805
|
-
className: "mt-3 flex items-center gap-2",
|
|
806
|
-
children: [
|
|
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"]
|
|
810
|
-
}),
|
|
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"]
|
|
814
|
-
}),
|
|
815
|
-
/* @__PURE__ */ E("button", {
|
|
816
|
-
type: "button",
|
|
817
|
-
onClick: () => alert(e.status === "template" ? `Downloading ${e.name} template...` : `Viewing ${e.name}...`),
|
|
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",
|
|
819
|
-
children: e.status === "template" ? "Download Template" : "View Document"
|
|
820
|
-
})
|
|
821
|
-
]
|
|
822
|
-
})
|
|
823
|
-
]
|
|
824
|
-
}, e.name))
|
|
825
|
-
}),
|
|
826
|
-
M && /* @__PURE__ */ D("div", {
|
|
827
|
-
className: "rounded-lg border-2 border-dashed border-border-subtle p-6 text-center",
|
|
828
|
-
children: [
|
|
829
|
-
/* @__PURE__ */ E(g, { className: "mx-auto mb-2 h-8 w-8 text-text-secondary" }),
|
|
830
|
-
/* @__PURE__ */ E("p", {
|
|
831
|
-
className: "text-sm font-medium text-text-primary",
|
|
832
|
-
children: "Upload New Document"
|
|
833
|
-
}),
|
|
834
|
-
/* @__PURE__ */ E("p", {
|
|
835
|
-
className: "mt-1 text-xs text-text-secondary",
|
|
836
|
-
children: "PDF, JPG, or PNG up to 10MB"
|
|
837
|
-
}),
|
|
838
|
-
/* @__PURE__ */ D("label", {
|
|
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",
|
|
840
|
-
children: ["Choose File", /* @__PURE__ */ E("input", {
|
|
841
|
-
type: "file",
|
|
842
|
-
accept: ".pdf,.jpg,.png",
|
|
843
|
-
className: "hidden"
|
|
844
|
-
})]
|
|
845
|
-
})
|
|
846
|
-
]
|
|
847
|
-
})
|
|
848
|
-
]
|
|
849
|
-
})] }),
|
|
850
|
-
A === "security" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
851
|
-
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
852
|
-
children: "Security Settings"
|
|
853
|
-
}), /* @__PURE__ */ D("div", {
|
|
854
|
-
className: "space-y-6",
|
|
855
|
-
children: [
|
|
856
|
-
/* @__PURE__ */ D("div", {
|
|
857
|
-
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
858
|
-
children: [
|
|
859
|
-
/* @__PURE__ */ D("div", {
|
|
860
|
-
className: "flex items-center gap-3 mb-3",
|
|
861
|
-
children: [/* @__PURE__ */ E(ae, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
862
|
-
className: "text-base font-semibold text-text-primary",
|
|
863
|
-
children: "Change Password"
|
|
864
|
-
})]
|
|
865
|
-
}),
|
|
866
|
-
/* @__PURE__ */ E("p", {
|
|
867
|
-
className: "mb-4 text-sm text-text-secondary",
|
|
868
|
-
children: "Update your password regularly to keep your account secure"
|
|
869
|
-
}),
|
|
870
|
-
me ? /* @__PURE__ */ D("div", {
|
|
871
|
-
className: "space-y-4",
|
|
872
|
-
children: [
|
|
873
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
874
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
875
|
-
children: "Current Password"
|
|
876
|
-
}), /* @__PURE__ */ D("div", {
|
|
877
|
-
className: "relative",
|
|
878
|
-
children: [/* @__PURE__ */ E("input", {
|
|
879
|
-
type: Y ? "text" : "password",
|
|
880
|
-
value: U,
|
|
881
|
-
onChange: (e) => W(e.target.value),
|
|
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)]"
|
|
883
|
-
}), /* @__PURE__ */ E("button", {
|
|
884
|
-
type: "button",
|
|
885
|
-
onClick: () => he(!Y),
|
|
886
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
887
|
-
children: E(Y ? h : m, { className: "h-4 w-4" })
|
|
888
|
-
})]
|
|
889
|
-
})] }),
|
|
890
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
891
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
892
|
-
children: "New Password"
|
|
893
|
-
}), /* @__PURE__ */ D("div", {
|
|
894
|
-
className: "relative",
|
|
895
|
-
children: [/* @__PURE__ */ E("input", {
|
|
896
|
-
type: X ? "text" : "password",
|
|
897
|
-
value: G,
|
|
898
|
-
onChange: (e) => K(e.target.value),
|
|
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)]"
|
|
900
|
-
}), /* @__PURE__ */ E("button", {
|
|
901
|
-
type: "button",
|
|
902
|
-
onClick: () => ge(!X),
|
|
903
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
904
|
-
children: E(X ? h : m, { className: "h-4 w-4" })
|
|
905
|
-
})]
|
|
906
|
-
})] }),
|
|
907
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("label", {
|
|
908
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
909
|
-
children: "Confirm New Password"
|
|
910
|
-
}), /* @__PURE__ */ E("input", {
|
|
911
|
-
type: "password",
|
|
912
|
-
value: q,
|
|
913
|
-
onChange: (e) => J(e.target.value),
|
|
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)]"
|
|
915
|
-
})] }),
|
|
916
|
-
/* @__PURE__ */ D("div", {
|
|
917
|
-
className: "flex gap-3",
|
|
918
|
-
children: [/* @__PURE__ */ E("button", {
|
|
919
|
-
type: "button",
|
|
920
|
-
onClick: be,
|
|
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",
|
|
922
|
-
children: "Update Password"
|
|
923
|
-
}), /* @__PURE__ */ E("button", {
|
|
924
|
-
type: "button",
|
|
925
|
-
onClick: () => {
|
|
926
|
-
H(!1), W(""), K(""), J("");
|
|
927
|
-
},
|
|
928
|
-
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
929
|
-
children: "Cancel"
|
|
930
|
-
})]
|
|
931
|
-
})
|
|
932
|
-
]
|
|
933
|
-
}) : /* @__PURE__ */ E("button", {
|
|
934
|
-
type: "button",
|
|
935
|
-
onClick: () => H(!0),
|
|
936
|
-
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
937
|
-
children: "Change Password"
|
|
938
|
-
})
|
|
939
|
-
]
|
|
940
|
-
}),
|
|
941
|
-
/* @__PURE__ */ D("div", {
|
|
942
|
-
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
943
|
-
children: [
|
|
944
|
-
/* @__PURE__ */ D("div", {
|
|
945
|
-
className: "flex items-center gap-3 mb-3",
|
|
946
|
-
children: [/* @__PURE__ */ E(S, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
947
|
-
className: "text-base font-semibold text-text-primary",
|
|
948
|
-
children: "Two-Factor Authentication"
|
|
949
|
-
})]
|
|
950
|
-
}),
|
|
951
|
-
/* @__PURE__ */ E("p", {
|
|
952
|
-
className: "mb-4 text-sm text-text-secondary",
|
|
953
|
-
children: "Add an extra layer of security to your investment account"
|
|
954
|
-
}),
|
|
955
|
-
/* @__PURE__ */ D("div", {
|
|
956
|
-
className: "flex items-center justify-between rounded-lg bg-bg-sunken/50 p-3",
|
|
957
|
-
children: [/* @__PURE__ */ E("div", {
|
|
958
|
-
className: "flex items-center gap-2",
|
|
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"
|
|
962
|
-
})
|
|
963
|
-
}), /* @__PURE__ */ E("button", {
|
|
964
|
-
type: "button",
|
|
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"
|
|
968
|
-
})]
|
|
969
|
-
})
|
|
970
|
-
]
|
|
971
|
-
}),
|
|
972
|
-
/* @__PURE__ */ D("div", {
|
|
973
|
-
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
974
|
-
children: [/* @__PURE__ */ D("div", {
|
|
975
|
-
className: "flex items-center gap-3 mb-4",
|
|
976
|
-
children: [/* @__PURE__ */ E(_, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ E("h3", {
|
|
977
|
-
className: "text-base font-semibold text-text-primary",
|
|
978
|
-
children: "Login Activity"
|
|
979
|
-
})]
|
|
980
|
-
}), /* @__PURE__ */ E("div", {
|
|
981
|
-
className: "space-y-3",
|
|
982
|
-
children: de.map((e, t) => /* @__PURE__ */ D("div", {
|
|
983
|
-
className: "flex items-center justify-between rounded-lg bg-bg-sunken/30 p-3",
|
|
984
|
-
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
985
|
-
className: "flex items-center gap-2",
|
|
986
|
-
children: [/* @__PURE__ */ E("p", {
|
|
987
|
-
className: "text-sm font-medium text-text-primary",
|
|
988
|
-
children: e.device
|
|
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",
|
|
991
|
-
children: "Current"
|
|
992
|
-
})]
|
|
993
|
-
}), /* @__PURE__ */ D("div", {
|
|
994
|
-
className: "mt-1 flex items-center gap-2 text-xs text-text-secondary",
|
|
995
|
-
children: [
|
|
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, {
|
|
1000
|
-
hour: "numeric",
|
|
1001
|
-
minute: "2-digit"
|
|
1002
|
-
}) })
|
|
1003
|
-
]
|
|
1004
|
-
})] }), !e.current && /* @__PURE__ */ E("button", {
|
|
1005
|
-
type: "button",
|
|
1006
|
-
onClick: () => alert("Session revoked"),
|
|
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",
|
|
1008
|
-
children: "Revoke"
|
|
1009
|
-
})]
|
|
1010
|
-
}, t))
|
|
1011
|
-
})]
|
|
1012
|
-
})
|
|
1013
|
-
]
|
|
1014
|
-
})] }),
|
|
1015
|
-
A === "notifications" && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h2", {
|
|
1016
|
-
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
1017
|
-
children: "Notification Preferences"
|
|
1018
|
-
}), /* @__PURE__ */ D("div", {
|
|
1019
|
-
className: "space-y-4",
|
|
1020
|
-
children: [V.map((e) => /* @__PURE__ */ D("div", {
|
|
1021
|
-
className: "flex items-center justify-between rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
1022
|
-
children: [/* @__PURE__ */ D("div", {
|
|
1023
|
-
className: "flex-1 pr-4",
|
|
1024
|
-
children: [/* @__PURE__ */ E("h4", {
|
|
1025
|
-
className: "text-sm font-medium text-text-primary",
|
|
1026
|
-
children: e.label
|
|
1027
|
-
}), /* @__PURE__ */ E("p", {
|
|
1028
|
-
className: "mt-0.5 text-xs text-text-secondary sm:text-sm",
|
|
1029
|
-
children: e.description
|
|
1030
|
-
})]
|
|
1031
|
-
}), /* @__PURE__ */ E("button", {
|
|
1032
|
-
type: "button",
|
|
1033
|
-
onClick: () => {
|
|
1034
|
-
M && ye(e.id);
|
|
1035
|
-
},
|
|
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") })
|
|
1039
|
-
})]
|
|
1040
|
-
}, e.id)), /* @__PURE__ */ E("div", {
|
|
1041
|
-
className: "mt-4 rounded-lg border border-border-subtle bg-bg-sunken/50 p-4",
|
|
1042
|
-
children: /* @__PURE__ */ D("p", {
|
|
1043
|
-
className: "text-sm text-text-secondary",
|
|
1044
|
-
children: [
|
|
1045
|
-
V.filter((e) => e.enabled).length,
|
|
1046
|
-
" of ",
|
|
1047
|
-
V.length,
|
|
1048
|
-
" ",
|
|
1049
|
-
"notification types enabled.",
|
|
1050
|
-
!M && /* @__PURE__ */ E("span", {
|
|
1051
|
-
className: "ml-1",
|
|
1052
|
-
children: "Click \"Edit Profile\" to modify preferences."
|
|
1053
|
-
})
|
|
1054
|
-
]
|
|
1055
|
-
})
|
|
1056
|
-
})]
|
|
1057
|
-
})] })
|
|
1058
|
-
]
|
|
1059
|
-
})
|
|
1060
|
-
})]
|
|
1061
|
-
})
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
//#endregion
|
|
1065
|
-
export { k as InvestorProfilePage };
|
|
1066
|
-
|
|
1067
|
-
//# sourceMappingURL=InvestorProfilePage.js.map
|