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