@burdenoff/microfe-kadaikodi 2026.704.3 → 2026.704.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kadaikodi/KadaikodiRoutes.js +30 -26
- package/dist/kadaikodi/KadaikodiRoutes.js.map +1 -1
- package/dist/kadaikodi/hooks/useKadaikodiApi.js +76 -6
- package/dist/kadaikodi/hooks/useKadaikodiApi.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +332 -276
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/CartManagementPage.js +278 -283
- package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/UserManagementPage.js +310 -366
- package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +105 -111
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +290 -257
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +84 -70
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +270 -228
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +194 -173
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +202 -139
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.js +232 -0
- package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.js.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +84 -79
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/HelpSupportPage.js +310 -317
- package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/SettingsPage.js +502 -586
- package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +243 -143
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CartDetailPage.js +4 -4
- 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/CheckoutPage.js +4 -4
- package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js +5 -5
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +189 -199
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +6 -4
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/FavoritesPage.js +6 -6
- package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +4 -4
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +409 -304
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/ReviewsPage.js +209 -162
- package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +441 -514
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +207 -186
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +340 -272
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +122 -75
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,45 +1,45 @@
|
|
|
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 { useCallback as
|
|
7
|
-
import { Bell as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { EmphasisPanel as
|
|
4
|
+
import { useInvestments as r } from "../../hooks/useKadaikodiApi.js";
|
|
5
|
+
import { formatCurrency as i } from "../../utils/formatters.js";
|
|
6
|
+
import { useCallback as a, useMemo as o, useState as s } from "react";
|
|
7
|
+
import { Bell as c, Briefcase as l, Building2 as u, DollarSign as d, Edit3 as f, ExternalLink as p, FileText as m, Globe as h, Linkedin as g, Lock as _, Mail as v, Monitor as y, Phone as b, PieChart as x, Save as ee, Shield as S, ShieldCheck as C, Smartphone as w, TrendingUp as T, User as E, X as D } from "lucide-react";
|
|
8
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
9
|
+
import { EmphasisPanel as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
10
10
|
//#region src/kadaikodi/pages/investor/InvestorProfilePage.tsx
|
|
11
|
-
var
|
|
11
|
+
var N = [
|
|
12
12
|
{
|
|
13
13
|
id: "personal",
|
|
14
14
|
label: "Personal Info",
|
|
15
|
-
Icon:
|
|
15
|
+
Icon: E
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
id: "investment",
|
|
19
19
|
label: "Investment Profile",
|
|
20
|
-
Icon:
|
|
20
|
+
Icon: T
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
id: "portfolio",
|
|
24
24
|
label: "Portfolio",
|
|
25
|
-
Icon:
|
|
25
|
+
Icon: x
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
id: "documents",
|
|
29
29
|
label: "Documents",
|
|
30
|
-
Icon:
|
|
30
|
+
Icon: m
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
id: "security",
|
|
34
34
|
label: "Security",
|
|
35
|
-
Icon:
|
|
35
|
+
Icon: S
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
id: "notifications",
|
|
39
39
|
label: "Notifications",
|
|
40
|
-
Icon:
|
|
40
|
+
Icon: c
|
|
41
41
|
}
|
|
42
|
-
],
|
|
42
|
+
], P = [
|
|
43
43
|
"Food & Beverage",
|
|
44
44
|
"Quick Commerce",
|
|
45
45
|
"Cloud Kitchen",
|
|
@@ -49,34 +49,56 @@ var E = [
|
|
|
49
49
|
"Education",
|
|
50
50
|
"Logistics",
|
|
51
51
|
"FinTech"
|
|
52
|
-
]
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
52
|
+
], F = {
|
|
53
|
+
investorType: "",
|
|
54
|
+
investmentRange: "",
|
|
55
|
+
preferredSectors: [],
|
|
56
|
+
investmentHorizon: "",
|
|
57
|
+
riskProfile: "",
|
|
58
|
+
companyName: "",
|
|
59
|
+
designation: "",
|
|
60
|
+
companyWebsite: "",
|
|
61
|
+
linkedinProfile: "",
|
|
62
|
+
address: "",
|
|
63
|
+
city: "",
|
|
64
|
+
state: "",
|
|
65
|
+
country: "",
|
|
66
|
+
pincode: ""
|
|
67
|
+
};
|
|
68
|
+
function I(e) {
|
|
69
|
+
return `kadaikodi:investor-profile:${e}`;
|
|
70
|
+
}
|
|
71
|
+
function L(e) {
|
|
72
|
+
if (!e || typeof window > "u") return F;
|
|
73
|
+
try {
|
|
74
|
+
let t = window.localStorage.getItem(I(e));
|
|
75
|
+
if (!t) return F;
|
|
76
|
+
let n = JSON.parse(t);
|
|
77
|
+
return {
|
|
78
|
+
...F,
|
|
79
|
+
...n,
|
|
80
|
+
preferredSectors: Array.isArray(n.preferredSectors) ? n.preferredSectors : []
|
|
81
|
+
};
|
|
82
|
+
} catch {
|
|
83
|
+
return F;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function R(e, t) {
|
|
87
|
+
!e || typeof window > "u" || window.localStorage.setItem(I(e), JSON.stringify(t));
|
|
88
|
+
}
|
|
89
|
+
function z() {
|
|
90
|
+
let { currentUser: S, navigateTo: F } = e(), { data: I = [] } = r(S?.id || ""), [z, B] = s("personal"), [V, H] = s(!1), [U, W] = s(""), G = o(() => ({
|
|
91
|
+
firstName: S?.firstName ?? S?.name?.split(" ")[0] ?? "",
|
|
92
|
+
lastName: S?.lastName ?? S?.name?.split(" ").slice(1).join(" ") ?? "",
|
|
93
|
+
email: S?.email ?? "",
|
|
94
|
+
phone: S?.phone ?? "",
|
|
95
|
+
profileImage: S?.avatar ?? S?.profilePicture ?? ""
|
|
96
|
+
}), [S]), [K, q] = s(() => L(S?.id ?? "")), J = o(() => ({
|
|
97
|
+
totalInvested: I.reduce((e, t) => e + t.investedAmount, 0),
|
|
98
|
+
portfolioValue: I.reduce((e, t) => e + t.currentValue, 0),
|
|
99
|
+
totalReturns: I.reduce((e, t) => e + t.returns, 0),
|
|
100
|
+
activeInvestments: I.length
|
|
101
|
+
}), [I]), Y = [
|
|
80
102
|
{
|
|
81
103
|
id: "opportunities",
|
|
82
104
|
label: "New Investment Opportunities",
|
|
@@ -113,377 +135,342 @@ function D() {
|
|
|
113
135
|
description: "Notifications when dividends are credited to your account",
|
|
114
136
|
enabled: !0
|
|
115
137
|
}
|
|
116
|
-
]
|
|
117
|
-
|
|
138
|
+
], X = a((e, t) => {
|
|
139
|
+
q((n) => ({
|
|
118
140
|
...n,
|
|
119
141
|
[e]: t
|
|
120
142
|
}));
|
|
121
|
-
}, []),
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}, []),
|
|
126
|
-
|
|
127
|
-
if (t) {
|
|
128
|
-
let e = new FileReader();
|
|
129
|
-
e.onloadend = () => {
|
|
130
|
-
R((t) => ({
|
|
131
|
-
...t,
|
|
132
|
-
profileImage: e.result
|
|
133
|
-
}));
|
|
134
|
-
}, e.readAsDataURL(t);
|
|
135
|
-
}
|
|
136
|
-
}, []), he = i((e) => {
|
|
137
|
-
V((t) => t.map((t) => t.id === e ? {
|
|
138
|
-
...t,
|
|
139
|
-
enabled: !t.enabled
|
|
140
|
-
} : t));
|
|
141
|
-
}, []), ge = i(() => {
|
|
142
|
-
if (!(!W || !K || !J)) {
|
|
143
|
-
if (K !== J) {
|
|
144
|
-
alert("Passwords do not match");
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
if (K.length < 8) {
|
|
148
|
-
alert("Password must be at least 8 characters");
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
alert("Password changed successfully!"), U(!1), G(""), q(""), Y("");
|
|
152
|
-
}
|
|
153
|
-
}, [
|
|
154
|
-
W,
|
|
155
|
-
K,
|
|
156
|
-
J
|
|
157
|
-
]), _e = i(() => {
|
|
158
|
-
fe((e) => {
|
|
159
|
-
let t = !e;
|
|
160
|
-
return alert(t ? "2FA has been enabled" : "2FA has been disabled"), t;
|
|
161
|
-
});
|
|
162
|
-
}, []);
|
|
163
|
-
return /* @__PURE__ */ C(n, {
|
|
143
|
+
}, []), Z = a(() => {
|
|
144
|
+
R(S?.id ?? "", K), H(!1), W("Saved on this device"), window.setTimeout(() => W(""), 3e3);
|
|
145
|
+
}, [S?.id, K]), Q = a(() => {
|
|
146
|
+
H(!1), q(L(S?.id ?? ""));
|
|
147
|
+
}, [S?.id]), $ = a(() => F("/auth/security"), [F]), te = [G.firstName, G.lastName].filter(Boolean).join(" ") || "Investor";
|
|
148
|
+
return /* @__PURE__ */ A(n, {
|
|
164
149
|
title: "Investor Profile",
|
|
165
150
|
description: "Manage your investment profile and preferences",
|
|
166
|
-
actions: /* @__PURE__ */
|
|
151
|
+
actions: /* @__PURE__ */ A("div", {
|
|
167
152
|
className: "flex items-center gap-2",
|
|
168
|
-
children: [
|
|
153
|
+
children: [U && /* @__PURE__ */ k("span", {
|
|
169
154
|
className: "text-sm font-medium text-status-success-text",
|
|
170
|
-
children:
|
|
171
|
-
}),
|
|
155
|
+
children: U
|
|
156
|
+
}), V ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ A("button", {
|
|
172
157
|
type: "button",
|
|
173
|
-
onClick:
|
|
174
|
-
j(!1), R(I);
|
|
175
|
-
},
|
|
158
|
+
onClick: Q,
|
|
176
159
|
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",
|
|
177
|
-
children: [/* @__PURE__ */
|
|
178
|
-
}), /* @__PURE__ */
|
|
160
|
+
children: [/* @__PURE__ */ k(D, { className: "h-4 w-4" }), "Cancel"]
|
|
161
|
+
}), /* @__PURE__ */ A("button", {
|
|
179
162
|
type: "button",
|
|
180
|
-
onClick:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
})] }) : /* @__PURE__ */ C("button", {
|
|
163
|
+
onClick: Z,
|
|
164
|
+
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",
|
|
165
|
+
children: [/* @__PURE__ */ k(ee, { className: "h-4 w-4" }), "Save Changes"]
|
|
166
|
+
})] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ A("button", {
|
|
185
167
|
type: "button",
|
|
186
|
-
onClick:
|
|
168
|
+
onClick: $,
|
|
169
|
+
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",
|
|
170
|
+
children: [/* @__PURE__ */ k(C, { className: "h-4 w-4" }), "Account Security"]
|
|
171
|
+
}), /* @__PURE__ */ A("button", {
|
|
172
|
+
type: "button",
|
|
173
|
+
onClick: () => H(!0),
|
|
187
174
|
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",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
189
|
-
})]
|
|
175
|
+
children: [/* @__PURE__ */ k(f, { className: "h-4 w-4" }), "Edit Profile"]
|
|
176
|
+
})] })]
|
|
190
177
|
}),
|
|
191
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ k(M, {
|
|
192
179
|
className: "mb-6",
|
|
193
|
-
children: "Your investor identity and how the platform tailors deals to you.
|
|
194
|
-
}), /* @__PURE__ */
|
|
180
|
+
children: "Your investor identity and how the platform tailors deals to you. Your name, email, phone and photo come from your Burdenoff account and are managed in Account Security; here you set your investment profile (preferred sectors, ticket size and risk tolerance) so you see the right opportunities, and review your portfolio at a glance."
|
|
181
|
+
}), /* @__PURE__ */ A("div", {
|
|
195
182
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-4",
|
|
196
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ A("div", {
|
|
197
184
|
className: "lg:col-span-1",
|
|
198
185
|
children: [
|
|
199
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ A(j, {
|
|
200
187
|
className: "p-4 sm:p-6",
|
|
201
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ A("div", {
|
|
202
189
|
className: "text-center",
|
|
203
190
|
children: [
|
|
204
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ k("div", {
|
|
205
192
|
className: "relative mx-auto inline-block",
|
|
206
|
-
children:
|
|
193
|
+
children: /* @__PURE__ */ k("div", {
|
|
207
194
|
className: "h-20 w-20 overflow-hidden rounded-full bg-bg-sunken sm:h-24 sm:w-24",
|
|
208
|
-
children:
|
|
209
|
-
src:
|
|
195
|
+
children: G.profileImage ? /* @__PURE__ */ k("img", {
|
|
196
|
+
src: G.profileImage,
|
|
210
197
|
alt: "Profile",
|
|
211
198
|
className: "h-full w-full object-cover"
|
|
212
|
-
}) : /* @__PURE__ */
|
|
199
|
+
}) : /* @__PURE__ */ k("div", {
|
|
213
200
|
className: "flex h-full w-full items-center justify-center",
|
|
214
|
-
children: /* @__PURE__ */
|
|
201
|
+
children: /* @__PURE__ */ k(E, { className: "h-10 w-10 text-text-secondary" })
|
|
215
202
|
})
|
|
216
|
-
})
|
|
217
|
-
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",
|
|
218
|
-
children: [/* @__PURE__ */ S(ne, { className: "h-4 w-4" }), /* @__PURE__ */ S("input", {
|
|
219
|
-
type: "file",
|
|
220
|
-
accept: "image/*",
|
|
221
|
-
onChange: me,
|
|
222
|
-
className: "hidden"
|
|
223
|
-
})]
|
|
224
|
-
})]
|
|
203
|
+
})
|
|
225
204
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ k("h3", {
|
|
227
206
|
className: "mt-3 text-base font-semibold text-text-primary sm:text-lg",
|
|
228
|
-
children:
|
|
229
|
-
L.firstName,
|
|
230
|
-
" ",
|
|
231
|
-
L.lastName
|
|
232
|
-
]
|
|
207
|
+
children: te
|
|
233
208
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
209
|
+
K.investorType && /* @__PURE__ */ k("p", {
|
|
235
210
|
className: "text-sm text-text-secondary",
|
|
236
|
-
children:
|
|
211
|
+
children: K.investorType
|
|
237
212
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
213
|
+
K.companyName && /* @__PURE__ */ k("p", {
|
|
239
214
|
className: "mt-1 truncate text-xs text-text-secondary",
|
|
240
|
-
children:
|
|
215
|
+
children: K.companyName
|
|
241
216
|
})
|
|
242
217
|
]
|
|
243
|
-
}), /* @__PURE__ */
|
|
218
|
+
}), /* @__PURE__ */ A("div", {
|
|
244
219
|
className: "mt-5 space-y-3 border-t border-border-subtle pt-4",
|
|
245
220
|
children: [
|
|
246
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ A("div", {
|
|
247
222
|
className: "flex items-center justify-between",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ k("span", {
|
|
249
224
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
250
225
|
children: "Portfolio Value"
|
|
251
|
-
}), /* @__PURE__ */
|
|
226
|
+
}), /* @__PURE__ */ k("span", {
|
|
252
227
|
className: "text-xs font-semibold text-primary sm:text-sm",
|
|
253
|
-
children:
|
|
228
|
+
children: i(J.portfolioValue, { minimumFractionDigits: 0 })
|
|
254
229
|
})]
|
|
255
230
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ A("div", {
|
|
257
232
|
className: "flex items-center justify-between",
|
|
258
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ k("span", {
|
|
259
234
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
260
235
|
children: "Active Investments"
|
|
261
|
-
}), /* @__PURE__ */
|
|
236
|
+
}), /* @__PURE__ */ k("span", {
|
|
262
237
|
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
263
|
-
children:
|
|
238
|
+
children: J.activeInvestments
|
|
264
239
|
})]
|
|
265
240
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ A("div", {
|
|
267
242
|
className: "flex items-center justify-between",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ k("span", {
|
|
269
244
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
270
245
|
children: "Total Returns"
|
|
271
|
-
}), /* @__PURE__ */
|
|
246
|
+
}), /* @__PURE__ */ A("span", {
|
|
272
247
|
className: "text-xs font-semibold text-status-success-text sm:text-sm",
|
|
273
|
-
children: ["+",
|
|
248
|
+
children: ["+", i(J.totalReturns, { minimumFractionDigits: 0 })]
|
|
274
249
|
})]
|
|
275
250
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ A("div", {
|
|
277
252
|
className: "flex items-center justify-between",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ k("span", {
|
|
279
254
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
280
255
|
children: "Total Invested"
|
|
281
|
-
}), /* @__PURE__ */
|
|
256
|
+
}), /* @__PURE__ */ k("span", {
|
|
282
257
|
className: "text-xs font-semibold text-text-primary sm:text-sm",
|
|
283
|
-
children:
|
|
258
|
+
children: i(J.totalInvested, { minimumFractionDigits: 0 })
|
|
284
259
|
})]
|
|
285
260
|
})
|
|
286
261
|
]
|
|
287
262
|
})]
|
|
288
263
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ k("div", {
|
|
290
265
|
className: "mt-4 flex gap-2 overflow-x-auto pb-2 lg:hidden",
|
|
291
|
-
children:
|
|
266
|
+
children: N.map((e) => /* @__PURE__ */ A("button", {
|
|
292
267
|
type: "button",
|
|
293
|
-
onClick: () =>
|
|
294
|
-
className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
268
|
+
onClick: () => B(e.id),
|
|
269
|
+
className: t("flex shrink-0 items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors", z === e.id ? "bg-action-primary-bg text-action-primary-text shadow-sm" : "bg-bg-surface text-text-primary hover:bg-accent"),
|
|
270
|
+
children: [/* @__PURE__ */ k(e.Icon, { className: "h-4 w-4 shrink-0" }), e.label]
|
|
296
271
|
}, e.id))
|
|
297
272
|
}),
|
|
298
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ k("div", {
|
|
299
274
|
className: "mt-4 hidden space-y-2 lg:block",
|
|
300
|
-
children:
|
|
275
|
+
children: N.map((e) => /* @__PURE__ */ A("button", {
|
|
301
276
|
type: "button",
|
|
302
|
-
onClick: () =>
|
|
303
|
-
className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
277
|
+
onClick: () => B(e.id),
|
|
278
|
+
className: t("flex w-full items-center gap-3 rounded-lg px-4 py-3 text-sm font-medium transition-colors", z === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface text-text-primary hover:bg-accent"),
|
|
279
|
+
children: [/* @__PURE__ */ k(e.Icon, { className: "h-4 w-4" }), e.label]
|
|
305
280
|
}, e.id))
|
|
306
281
|
})
|
|
307
282
|
]
|
|
308
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ k("div", {
|
|
309
284
|
className: "lg:col-span-3",
|
|
310
|
-
children: /* @__PURE__ */
|
|
285
|
+
children: /* @__PURE__ */ A("div", {
|
|
311
286
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6 lg:p-8",
|
|
312
287
|
children: [
|
|
313
|
-
|
|
288
|
+
z === "personal" && /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h2", {
|
|
314
289
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
315
290
|
children: "Personal Information"
|
|
316
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ A("div", {
|
|
317
292
|
className: "space-y-6",
|
|
318
293
|
children: [
|
|
319
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ A("div", {
|
|
295
|
+
className: "flex flex-col gap-3 rounded-lg border border-border-subtle bg-bg-sunken/40 p-4 sm:flex-row sm:items-center sm:justify-between",
|
|
296
|
+
children: [/* @__PURE__ */ A("div", {
|
|
297
|
+
className: "flex items-start gap-3",
|
|
298
|
+
children: [/* @__PURE__ */ k(C, { className: "mt-0.5 h-5 w-5 shrink-0 text-text-secondary" }), /* @__PURE__ */ k("p", {
|
|
299
|
+
className: "text-sm text-text-secondary",
|
|
300
|
+
children: "Your name, email, phone and photo come from your Burdenoff account. To change them, open Account Security."
|
|
301
|
+
})]
|
|
302
|
+
}), /* @__PURE__ */ A("button", {
|
|
303
|
+
type: "button",
|
|
304
|
+
onClick: $,
|
|
305
|
+
className: "flex shrink-0 items-center gap-1.5 rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
306
|
+
children: ["Account Security", /* @__PURE__ */ k(p, { className: "h-3.5 w-3.5" })]
|
|
307
|
+
})]
|
|
308
|
+
}),
|
|
309
|
+
/* @__PURE__ */ A("div", {
|
|
320
310
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
321
311
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
323
313
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
324
314
|
children: "First Name"
|
|
325
|
-
}), /* @__PURE__ */
|
|
315
|
+
}), /* @__PURE__ */ k("input", {
|
|
326
316
|
type: "text",
|
|
327
|
-
value:
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
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)]"
|
|
317
|
+
value: G.firstName,
|
|
318
|
+
readOnly: !0,
|
|
319
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-secondary focus:outline-none"
|
|
331
320
|
})] }),
|
|
332
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
333
322
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
334
323
|
children: "Last Name"
|
|
335
|
-
}), /* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ k("input", {
|
|
336
325
|
type: "text",
|
|
337
|
-
value:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
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)]"
|
|
326
|
+
value: G.lastName,
|
|
327
|
+
readOnly: !0,
|
|
328
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-sunken px-3 py-2 text-sm text-text-secondary focus:outline-none"
|
|
341
329
|
})] }),
|
|
342
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
343
331
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
344
332
|
children: "Email Address"
|
|
345
|
-
}), /* @__PURE__ */
|
|
333
|
+
}), /* @__PURE__ */ A("div", {
|
|
346
334
|
className: "relative",
|
|
347
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ k(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ k("input", {
|
|
348
336
|
type: "email",
|
|
349
|
-
value:
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
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)]"
|
|
337
|
+
value: G.email,
|
|
338
|
+
readOnly: !0,
|
|
339
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-sunken py-2 pl-10 pr-3 text-sm text-text-secondary focus:outline-none"
|
|
353
340
|
})]
|
|
354
341
|
})] }),
|
|
355
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
356
343
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
357
344
|
children: "Phone Number"
|
|
358
|
-
}), /* @__PURE__ */
|
|
345
|
+
}), /* @__PURE__ */ A("div", {
|
|
359
346
|
className: "relative",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
347
|
+
children: [/* @__PURE__ */ k(b, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ k("input", {
|
|
361
348
|
type: "tel",
|
|
362
|
-
value:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
className: "w-full rounded-lg border border-border-subtle bg-bg-
|
|
349
|
+
value: G.phone,
|
|
350
|
+
readOnly: !0,
|
|
351
|
+
placeholder: "Add in Account Security",
|
|
352
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-sunken py-2 pl-10 pr-3 text-sm text-text-secondary placeholder:text-text-secondary focus:outline-none"
|
|
366
353
|
})]
|
|
367
354
|
})] })
|
|
368
355
|
]
|
|
369
356
|
}),
|
|
370
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ A("div", {
|
|
371
358
|
className: "border-t border-border-subtle pt-6",
|
|
372
|
-
children: [/* @__PURE__ */
|
|
359
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
373
360
|
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
374
361
|
children: "Professional Details"
|
|
375
|
-
}), /* @__PURE__ */
|
|
362
|
+
}), /* @__PURE__ */ A("div", {
|
|
376
363
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
377
364
|
children: [
|
|
378
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
379
366
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
380
367
|
children: "Company/Organization"
|
|
381
|
-
}), /* @__PURE__ */
|
|
368
|
+
}), /* @__PURE__ */ A("div", {
|
|
382
369
|
className: "relative",
|
|
383
|
-
children: [/* @__PURE__ */
|
|
370
|
+
children: [/* @__PURE__ */ k(u, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ k("input", {
|
|
384
371
|
type: "text",
|
|
385
|
-
value:
|
|
386
|
-
onChange: (e) =>
|
|
387
|
-
disabled: !
|
|
372
|
+
value: K.companyName,
|
|
373
|
+
onChange: (e) => X("companyName", e.target.value),
|
|
374
|
+
disabled: !V,
|
|
388
375
|
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)]"
|
|
389
376
|
})]
|
|
390
377
|
})] }),
|
|
391
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
392
379
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
393
380
|
children: "Designation"
|
|
394
|
-
}), /* @__PURE__ */
|
|
381
|
+
}), /* @__PURE__ */ k("input", {
|
|
395
382
|
type: "text",
|
|
396
|
-
value:
|
|
397
|
-
onChange: (e) =>
|
|
398
|
-
disabled: !
|
|
383
|
+
value: K.designation,
|
|
384
|
+
onChange: (e) => X("designation", e.target.value),
|
|
385
|
+
disabled: !V,
|
|
399
386
|
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)]"
|
|
400
387
|
})] }),
|
|
401
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
402
389
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
403
390
|
children: "Company Website"
|
|
404
|
-
}), /* @__PURE__ */
|
|
391
|
+
}), /* @__PURE__ */ A("div", {
|
|
405
392
|
className: "relative",
|
|
406
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ k(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ k("input", {
|
|
407
394
|
type: "text",
|
|
408
|
-
value:
|
|
409
|
-
onChange: (e) =>
|
|
410
|
-
disabled: !
|
|
395
|
+
value: K.companyWebsite,
|
|
396
|
+
onChange: (e) => X("companyWebsite", e.target.value),
|
|
397
|
+
disabled: !V,
|
|
411
398
|
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)]"
|
|
412
399
|
})]
|
|
413
400
|
})] }),
|
|
414
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
415
402
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
416
403
|
children: "LinkedIn Profile"
|
|
417
|
-
}), /* @__PURE__ */
|
|
404
|
+
}), /* @__PURE__ */ A("div", {
|
|
418
405
|
className: "relative",
|
|
419
|
-
children: [/* @__PURE__ */
|
|
406
|
+
children: [/* @__PURE__ */ k(g, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ k("input", {
|
|
420
407
|
type: "text",
|
|
421
|
-
value:
|
|
422
|
-
onChange: (e) =>
|
|
423
|
-
disabled: !
|
|
408
|
+
value: K.linkedinProfile,
|
|
409
|
+
onChange: (e) => X("linkedinProfile", e.target.value),
|
|
410
|
+
disabled: !V,
|
|
424
411
|
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)]"
|
|
425
412
|
})]
|
|
426
413
|
})] })
|
|
427
414
|
]
|
|
428
415
|
})]
|
|
429
416
|
}),
|
|
430
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ A("div", {
|
|
431
418
|
className: "border-t border-border-subtle pt-6",
|
|
432
|
-
children: [/* @__PURE__ */
|
|
419
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
433
420
|
className: "mb-4 text-sm font-semibold text-text-primary sm:text-base",
|
|
434
421
|
children: "Address"
|
|
435
|
-
}), /* @__PURE__ */
|
|
422
|
+
}), /* @__PURE__ */ A("div", {
|
|
436
423
|
className: "space-y-4",
|
|
437
|
-
children: [/* @__PURE__ */
|
|
424
|
+
children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
438
425
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
439
426
|
children: "Street Address"
|
|
440
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ k("textarea", {
|
|
441
428
|
rows: 2,
|
|
442
|
-
value:
|
|
443
|
-
onChange: (e) =>
|
|
444
|
-
disabled: !
|
|
429
|
+
value: K.address,
|
|
430
|
+
onChange: (e) => X("address", e.target.value),
|
|
431
|
+
disabled: !V,
|
|
445
432
|
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)]"
|
|
446
|
-
})] }), /* @__PURE__ */
|
|
433
|
+
})] }), /* @__PURE__ */ A("div", {
|
|
447
434
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
448
435
|
children: [
|
|
449
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
450
437
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
451
438
|
children: "City"
|
|
452
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ k("input", {
|
|
453
440
|
type: "text",
|
|
454
|
-
value:
|
|
455
|
-
onChange: (e) =>
|
|
456
|
-
disabled: !
|
|
441
|
+
value: K.city,
|
|
442
|
+
onChange: (e) => X("city", e.target.value),
|
|
443
|
+
disabled: !V,
|
|
457
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)]"
|
|
458
445
|
})] }),
|
|
459
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
460
447
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
461
448
|
children: "State"
|
|
462
|
-
}), /* @__PURE__ */
|
|
449
|
+
}), /* @__PURE__ */ k("input", {
|
|
463
450
|
type: "text",
|
|
464
|
-
value:
|
|
465
|
-
onChange: (e) =>
|
|
466
|
-
disabled: !
|
|
451
|
+
value: K.state,
|
|
452
|
+
onChange: (e) => X("state", e.target.value),
|
|
453
|
+
disabled: !V,
|
|
467
454
|
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)]"
|
|
468
455
|
})] }),
|
|
469
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
470
457
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
471
458
|
children: "Country"
|
|
472
|
-
}), /* @__PURE__ */
|
|
459
|
+
}), /* @__PURE__ */ k("input", {
|
|
473
460
|
type: "text",
|
|
474
|
-
value:
|
|
475
|
-
onChange: (e) =>
|
|
476
|
-
disabled: !
|
|
461
|
+
value: K.country,
|
|
462
|
+
onChange: (e) => X("country", e.target.value),
|
|
463
|
+
disabled: !V,
|
|
477
464
|
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)]"
|
|
478
465
|
})] }),
|
|
479
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
480
467
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
481
468
|
children: "Pincode"
|
|
482
|
-
}), /* @__PURE__ */
|
|
469
|
+
}), /* @__PURE__ */ k("input", {
|
|
483
470
|
type: "text",
|
|
484
|
-
value:
|
|
485
|
-
onChange: (e) =>
|
|
486
|
-
disabled: !
|
|
471
|
+
value: K.pincode,
|
|
472
|
+
onChange: (e) => X("pincode", e.target.value),
|
|
473
|
+
disabled: !V,
|
|
487
474
|
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)]"
|
|
488
475
|
})] })
|
|
489
476
|
]
|
|
@@ -492,203 +479,203 @@ function D() {
|
|
|
492
479
|
})
|
|
493
480
|
]
|
|
494
481
|
})] }),
|
|
495
|
-
|
|
482
|
+
z === "investment" && /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h2", {
|
|
496
483
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
497
484
|
children: "Investment Profile"
|
|
498
|
-
}), /* @__PURE__ */
|
|
485
|
+
}), /* @__PURE__ */ A("div", {
|
|
499
486
|
className: "space-y-6",
|
|
500
487
|
children: [
|
|
501
|
-
/* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ A("div", {
|
|
502
489
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6",
|
|
503
490
|
children: [
|
|
504
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
505
492
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
506
493
|
children: "Investor Type"
|
|
507
|
-
}), /* @__PURE__ */
|
|
508
|
-
value:
|
|
509
|
-
onChange: (e) =>
|
|
510
|
-
disabled: !
|
|
494
|
+
}), /* @__PURE__ */ A("select", {
|
|
495
|
+
value: K.investorType,
|
|
496
|
+
onChange: (e) => X("investorType", e.target.value),
|
|
497
|
+
disabled: !V,
|
|
511
498
|
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)]",
|
|
512
499
|
children: [
|
|
513
|
-
/* @__PURE__ */
|
|
500
|
+
/* @__PURE__ */ k("option", {
|
|
514
501
|
value: "",
|
|
515
502
|
children: "Select investor type"
|
|
516
503
|
}),
|
|
517
|
-
/* @__PURE__ */
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
520
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ k("option", { children: "Angel Investor" }),
|
|
505
|
+
/* @__PURE__ */ k("option", { children: "Venture Capitalist" }),
|
|
506
|
+
/* @__PURE__ */ k("option", { children: "Private Equity" }),
|
|
507
|
+
/* @__PURE__ */ k("option", { children: "Strategic Investor" })
|
|
521
508
|
]
|
|
522
509
|
})] }),
|
|
523
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
524
511
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
525
512
|
children: "Investment Range"
|
|
526
|
-
}), /* @__PURE__ */
|
|
527
|
-
value:
|
|
528
|
-
onChange: (e) =>
|
|
529
|
-
disabled: !
|
|
513
|
+
}), /* @__PURE__ */ A("select", {
|
|
514
|
+
value: K.investmentRange,
|
|
515
|
+
onChange: (e) => X("investmentRange", e.target.value),
|
|
516
|
+
disabled: !V,
|
|
530
517
|
className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary disabled:bg-bg-sunken disabled:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
531
518
|
children: [
|
|
532
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ k("option", {
|
|
533
520
|
value: "",
|
|
534
521
|
children: "Select range"
|
|
535
522
|
}),
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
/* @__PURE__ */
|
|
539
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ k("option", { children: "1L - 5L" }),
|
|
524
|
+
/* @__PURE__ */ k("option", { children: "5L - 25L" }),
|
|
525
|
+
/* @__PURE__ */ k("option", { children: "25L - 1Cr" }),
|
|
526
|
+
/* @__PURE__ */ k("option", { children: "1Cr+" })
|
|
540
527
|
]
|
|
541
528
|
})] }),
|
|
542
|
-
/* @__PURE__ */
|
|
529
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
543
530
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
544
531
|
children: "Investment Horizon"
|
|
545
|
-
}), /* @__PURE__ */
|
|
546
|
-
value:
|
|
547
|
-
onChange: (e) =>
|
|
548
|
-
disabled: !
|
|
532
|
+
}), /* @__PURE__ */ A("select", {
|
|
533
|
+
value: K.investmentHorizon,
|
|
534
|
+
onChange: (e) => X("investmentHorizon", e.target.value),
|
|
535
|
+
disabled: !V,
|
|
549
536
|
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)]",
|
|
550
537
|
children: [
|
|
551
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ k("option", {
|
|
552
539
|
value: "",
|
|
553
540
|
children: "Select horizon"
|
|
554
541
|
}),
|
|
555
|
-
/* @__PURE__ */
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
/* @__PURE__ */
|
|
542
|
+
/* @__PURE__ */ k("option", { children: "1-2 years" }),
|
|
543
|
+
/* @__PURE__ */ k("option", { children: "3-5 years" }),
|
|
544
|
+
/* @__PURE__ */ k("option", { children: "5-7 years" }),
|
|
545
|
+
/* @__PURE__ */ k("option", { children: "7+ years" })
|
|
559
546
|
]
|
|
560
547
|
})] }),
|
|
561
|
-
/* @__PURE__ */
|
|
548
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
562
549
|
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
563
550
|
children: "Risk Profile"
|
|
564
|
-
}), /* @__PURE__ */
|
|
565
|
-
value:
|
|
566
|
-
onChange: (e) =>
|
|
567
|
-
disabled: !
|
|
551
|
+
}), /* @__PURE__ */ A("select", {
|
|
552
|
+
value: K.riskProfile,
|
|
553
|
+
onChange: (e) => X("riskProfile", e.target.value),
|
|
554
|
+
disabled: !V,
|
|
568
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)]",
|
|
569
556
|
children: [
|
|
570
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ k("option", {
|
|
571
558
|
value: "",
|
|
572
559
|
children: "Select risk profile"
|
|
573
560
|
}),
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
/* @__PURE__ */
|
|
576
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ k("option", { children: "Conservative" }),
|
|
562
|
+
/* @__PURE__ */ k("option", { children: "Moderate" }),
|
|
563
|
+
/* @__PURE__ */ k("option", { children: "Aggressive" })
|
|
577
564
|
]
|
|
578
565
|
})] })
|
|
579
566
|
]
|
|
580
567
|
}),
|
|
581
|
-
/* @__PURE__ */
|
|
568
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
|
|
582
569
|
className: "mb-3 block text-sm font-medium text-text-primary",
|
|
583
570
|
children: "Preferred Sectors"
|
|
584
|
-
}), /* @__PURE__ */
|
|
571
|
+
}), /* @__PURE__ */ k("div", {
|
|
585
572
|
className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
|
|
586
|
-
children:
|
|
573
|
+
children: P.map((e) => /* @__PURE__ */ A("label", {
|
|
587
574
|
className: "flex items-center gap-2",
|
|
588
|
-
children: [/* @__PURE__ */
|
|
575
|
+
children: [/* @__PURE__ */ k("input", {
|
|
589
576
|
type: "checkbox",
|
|
590
|
-
checked:
|
|
577
|
+
checked: K.preferredSectors.includes(e),
|
|
591
578
|
onChange: (t) => {
|
|
592
|
-
t.target.checked ?
|
|
579
|
+
t.target.checked ? X("preferredSectors", [...K.preferredSectors, e]) : X("preferredSectors", K.preferredSectors.filter((t) => t !== e));
|
|
593
580
|
},
|
|
594
|
-
disabled: !
|
|
581
|
+
disabled: !V,
|
|
595
582
|
className: "h-4 w-4 rounded border-border-subtle text-primary focus:ring-[var(--color-focus-ring)]"
|
|
596
|
-
}), /* @__PURE__ */
|
|
583
|
+
}), /* @__PURE__ */ k("span", {
|
|
597
584
|
className: "text-sm text-text-primary",
|
|
598
585
|
children: e
|
|
599
586
|
})]
|
|
600
587
|
}, e))
|
|
601
588
|
})] }),
|
|
602
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ A("div", {
|
|
603
590
|
className: "rounded-lg border border-border-subtle p-4",
|
|
604
|
-
children: [/* @__PURE__ */
|
|
591
|
+
children: [/* @__PURE__ */ A("div", {
|
|
605
592
|
className: "mb-2 flex items-center justify-between",
|
|
606
|
-
children: [/* @__PURE__ */
|
|
593
|
+
children: [/* @__PURE__ */ k("p", {
|
|
607
594
|
className: "text-sm font-medium text-text-primary",
|
|
608
595
|
children: "Risk Tolerance"
|
|
609
|
-
}), /* @__PURE__ */
|
|
610
|
-
className: t("text-sm font-semibold",
|
|
611
|
-
children:
|
|
596
|
+
}), /* @__PURE__ */ k("span", {
|
|
597
|
+
className: t("text-sm font-semibold", K.riskProfile === "Conservative" ? "text-status-success-text" : K.riskProfile === "Moderate" ? "text-status-warning-text" : "text-status-error-text"),
|
|
598
|
+
children: K.riskProfile
|
|
612
599
|
})]
|
|
613
|
-
}), /* @__PURE__ */
|
|
600
|
+
}), /* @__PURE__ */ k("div", {
|
|
614
601
|
className: "flex gap-1",
|
|
615
602
|
children: [
|
|
616
603
|
"Conservative",
|
|
617
604
|
"Moderate",
|
|
618
605
|
"Aggressive"
|
|
619
|
-
].map((e) => /* @__PURE__ */
|
|
606
|
+
].map((e) => /* @__PURE__ */ k("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 === K.riskProfile && e === "Conservative" && "bg-status-success-text", e === K.riskProfile && e === "Moderate" && "bg-status-warning-text", e === K.riskProfile && e === "Aggressive" && "bg-status-error-text") }, e))
|
|
620
607
|
})]
|
|
621
608
|
})
|
|
622
609
|
]
|
|
623
610
|
})] }),
|
|
624
|
-
|
|
625
|
-
/* @__PURE__ */
|
|
611
|
+
z === "portfolio" && /* @__PURE__ */ A("div", { children: [
|
|
612
|
+
/* @__PURE__ */ k("h2", {
|
|
626
613
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
627
614
|
children: "Investment Portfolio"
|
|
628
615
|
}),
|
|
629
|
-
/* @__PURE__ */
|
|
616
|
+
/* @__PURE__ */ A("div", {
|
|
630
617
|
className: "mb-8 grid grid-cols-2 gap-4 sm:grid-cols-4 sm:gap-6",
|
|
631
618
|
children: [
|
|
632
|
-
/* @__PURE__ */
|
|
619
|
+
/* @__PURE__ */ A("div", {
|
|
633
620
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
634
621
|
children: [
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ k(d, { className: "mb-2 h-7 w-7 text-primary sm:h-8 sm:w-8" }),
|
|
623
|
+
/* @__PURE__ */ k("div", {
|
|
637
624
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
638
|
-
children:
|
|
625
|
+
children: i(J.totalInvested, {
|
|
639
626
|
minimumFractionDigits: 0,
|
|
640
627
|
notation: "compact"
|
|
641
628
|
})
|
|
642
629
|
}),
|
|
643
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ k("div", {
|
|
644
631
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
645
632
|
children: "Total Invested"
|
|
646
633
|
})
|
|
647
634
|
]
|
|
648
635
|
}),
|
|
649
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ A("div", {
|
|
650
637
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
651
638
|
children: [
|
|
652
|
-
/* @__PURE__ */
|
|
653
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ k(l, { className: "mb-2 h-7 w-7 text-text-primary sm:h-8 sm:w-8" }),
|
|
640
|
+
/* @__PURE__ */ k("div", {
|
|
654
641
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
655
|
-
children:
|
|
642
|
+
children: J.activeInvestments
|
|
656
643
|
}),
|
|
657
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ k("div", {
|
|
658
645
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
659
646
|
children: "Active Investments"
|
|
660
647
|
})
|
|
661
648
|
]
|
|
662
649
|
}),
|
|
663
|
-
/* @__PURE__ */
|
|
650
|
+
/* @__PURE__ */ A("div", {
|
|
664
651
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
665
652
|
children: [
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ k(T, { className: "mb-2 h-7 w-7 text-status-success-text sm:h-8 sm:w-8" }),
|
|
654
|
+
/* @__PURE__ */ k("div", {
|
|
668
655
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
669
|
-
children:
|
|
656
|
+
children: i(J.totalReturns, {
|
|
670
657
|
minimumFractionDigits: 0,
|
|
671
658
|
notation: "compact"
|
|
672
659
|
})
|
|
673
660
|
}),
|
|
674
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ k("div", {
|
|
675
662
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
676
663
|
children: "Total Returns"
|
|
677
664
|
})
|
|
678
665
|
]
|
|
679
666
|
}),
|
|
680
|
-
/* @__PURE__ */
|
|
667
|
+
/* @__PURE__ */ A("div", {
|
|
681
668
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
682
669
|
children: [
|
|
683
|
-
/* @__PURE__ */
|
|
684
|
-
/* @__PURE__ */
|
|
670
|
+
/* @__PURE__ */ k(x, { className: "mb-2 h-7 w-7 text-text-primary sm:h-8 sm:w-8" }),
|
|
671
|
+
/* @__PURE__ */ k("div", {
|
|
685
672
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
686
|
-
children:
|
|
673
|
+
children: i(J.portfolioValue, {
|
|
687
674
|
minimumFractionDigits: 0,
|
|
688
675
|
notation: "compact"
|
|
689
676
|
})
|
|
690
677
|
}),
|
|
691
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ k("div", {
|
|
692
679
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
693
680
|
children: "Portfolio Value"
|
|
694
681
|
})
|
|
@@ -696,22 +683,32 @@ function D() {
|
|
|
696
683
|
})
|
|
697
684
|
]
|
|
698
685
|
}),
|
|
699
|
-
/* @__PURE__ */
|
|
700
|
-
className: "mb-4
|
|
701
|
-
children: "
|
|
702
|
-
|
|
686
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("div", {
|
|
687
|
+
className: "mb-4 flex items-center justify-between",
|
|
688
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
689
|
+
className: "text-base font-semibold text-text-primary",
|
|
690
|
+
children: "Active Investments"
|
|
691
|
+
}), /* @__PURE__ */ k("button", {
|
|
692
|
+
type: "button",
|
|
693
|
+
onClick: () => F("/investor/portfolio"),
|
|
694
|
+
className: "text-sm font-medium text-primary hover:underline",
|
|
695
|
+
children: "View full portfolio"
|
|
696
|
+
})]
|
|
697
|
+
}), I.length === 0 ? /* @__PURE__ */ k("p", {
|
|
703
698
|
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4 text-sm text-text-secondary",
|
|
704
699
|
children: "You don't have any active investments yet. Explore opportunities to start building your portfolio."
|
|
705
|
-
}) : /* @__PURE__ */
|
|
700
|
+
}) : /* @__PURE__ */ k("div", {
|
|
706
701
|
className: "space-y-3",
|
|
707
|
-
children:
|
|
708
|
-
|
|
709
|
-
|
|
702
|
+
children: I.map((e) => /* @__PURE__ */ A("button", {
|
|
703
|
+
type: "button",
|
|
704
|
+
onClick: () => F(`/investor/investments/${e.id}`),
|
|
705
|
+
className: "block w-full rounded-lg border border-border-subtle bg-bg-sunken/30 p-4 text-left hover:bg-accent/40 transition-colors",
|
|
706
|
+
children: [/* @__PURE__ */ A("div", {
|
|
710
707
|
className: "mb-3 flex items-start justify-between",
|
|
711
|
-
children: [/* @__PURE__ */
|
|
708
|
+
children: [/* @__PURE__ */ k("h4", {
|
|
712
709
|
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
713
710
|
children: e.cartName
|
|
714
|
-
}), /* @__PURE__ */
|
|
711
|
+
}), /* @__PURE__ */ A("span", {
|
|
715
712
|
className: t("text-sm font-semibold", e.returnsPercentage >= 0 ? "text-status-success-text" : "text-status-error-text"),
|
|
716
713
|
children: [
|
|
717
714
|
e.returnsPercentage >= 0 ? "+" : "",
|
|
@@ -719,256 +716,186 @@ function D() {
|
|
|
719
716
|
"%"
|
|
720
717
|
]
|
|
721
718
|
})]
|
|
722
|
-
}), /* @__PURE__ */
|
|
719
|
+
}), /* @__PURE__ */ A("div", {
|
|
723
720
|
className: "grid grid-cols-1 gap-3 text-sm sm:grid-cols-3",
|
|
724
721
|
children: [
|
|
725
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("span", {
|
|
726
723
|
className: "text-text-secondary",
|
|
727
724
|
children: "Invested: "
|
|
728
|
-
}), /* @__PURE__ */
|
|
725
|
+
}), /* @__PURE__ */ k("span", {
|
|
729
726
|
className: "font-medium text-text-primary",
|
|
730
|
-
children:
|
|
727
|
+
children: i(e.investedAmount, { minimumFractionDigits: 0 })
|
|
731
728
|
})] }),
|
|
732
|
-
/* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("span", {
|
|
733
730
|
className: "text-text-secondary",
|
|
734
731
|
children: "Current Value: "
|
|
735
|
-
}), /* @__PURE__ */
|
|
732
|
+
}), /* @__PURE__ */ k("span", {
|
|
736
733
|
className: "font-medium text-text-primary",
|
|
737
|
-
children:
|
|
734
|
+
children: i(e.currentValue, { minimumFractionDigits: 0 })
|
|
738
735
|
})] }),
|
|
739
|
-
/* @__PURE__ */
|
|
736
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("span", {
|
|
740
737
|
className: "text-text-secondary",
|
|
741
738
|
children: "Returns: "
|
|
742
|
-
}), /* @__PURE__ */
|
|
739
|
+
}), /* @__PURE__ */ k("span", {
|
|
743
740
|
className: "font-medium text-status-success-text",
|
|
744
|
-
children:
|
|
741
|
+
children: i(e.currentValue - e.investedAmount, { minimumFractionDigits: 0 })
|
|
745
742
|
})] })
|
|
746
743
|
]
|
|
747
744
|
})]
|
|
748
|
-
},
|
|
745
|
+
}, e.id))
|
|
749
746
|
})] })
|
|
750
747
|
] }),
|
|
751
|
-
|
|
748
|
+
z === "documents" && /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h2", {
|
|
752
749
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
753
750
|
children: "Documents & KYC"
|
|
754
|
-
}), /* @__PURE__ */
|
|
751
|
+
}), /* @__PURE__ */ A("div", {
|
|
755
752
|
className: "space-y-6",
|
|
756
|
-
children: [/* @__PURE__ */
|
|
753
|
+
children: [/* @__PURE__ */ A("div", {
|
|
757
754
|
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-6 text-center",
|
|
758
755
|
children: [
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
/* @__PURE__ */
|
|
756
|
+
/* @__PURE__ */ k(m, { className: "mx-auto mb-3 h-10 w-10 text-text-secondary" }),
|
|
757
|
+
/* @__PURE__ */ k("h3", {
|
|
761
758
|
className: "text-base font-semibold text-text-primary",
|
|
762
759
|
children: "No documents on file yet"
|
|
763
760
|
}),
|
|
764
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ k("p", {
|
|
765
762
|
className: "mx-auto mt-1 max-w-md text-sm text-text-secondary",
|
|
766
763
|
children: "Your KYC and investment documents will appear here once uploaded. Complete verification to unlock more opportunities."
|
|
767
764
|
})
|
|
768
765
|
]
|
|
769
|
-
}),
|
|
770
|
-
className: "rounded-lg border-2 border-dashed border-border-subtle p-6 text-center",
|
|
766
|
+
}), /* @__PURE__ */ A("div", {
|
|
767
|
+
className: "rounded-lg border-2 border-dashed border-border-subtle p-6 text-center opacity-70",
|
|
771
768
|
children: [
|
|
772
|
-
/* @__PURE__ */
|
|
773
|
-
/* @__PURE__ */
|
|
769
|
+
/* @__PURE__ */ k(m, { className: "mx-auto mb-2 h-8 w-8 text-text-secondary" }),
|
|
770
|
+
/* @__PURE__ */ k("p", {
|
|
774
771
|
className: "text-sm font-medium text-text-primary",
|
|
775
772
|
children: "Upload New Document"
|
|
776
773
|
}),
|
|
777
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ k("p", {
|
|
778
775
|
className: "mt-1 text-xs text-text-secondary",
|
|
779
776
|
children: "PDF, JPG, or PNG up to 10MB"
|
|
780
777
|
}),
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
778
|
+
/* @__PURE__ */ A("button", {
|
|
779
|
+
type: "button",
|
|
780
|
+
disabled: !0,
|
|
781
|
+
title: "Document upload is coming soon",
|
|
782
|
+
className: "mt-3 inline-flex cursor-not-allowed items-center gap-2 rounded-lg bg-bg-sunken px-4 py-2 text-sm font-medium text-text-secondary",
|
|
783
|
+
children: ["Choose File", /* @__PURE__ */ k("span", {
|
|
784
|
+
className: "rounded-full bg-bg-surface px-2 py-0.5 text-xs",
|
|
785
|
+
children: "Coming soon"
|
|
787
786
|
})]
|
|
788
787
|
})
|
|
789
788
|
]
|
|
790
789
|
})]
|
|
791
790
|
})] }),
|
|
792
|
-
|
|
791
|
+
z === "security" && /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h2", {
|
|
793
792
|
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
794
793
|
children: "Security Settings"
|
|
795
|
-
}), /* @__PURE__ */
|
|
794
|
+
}), /* @__PURE__ */ A("div", {
|
|
796
795
|
className: "space-y-6",
|
|
797
796
|
children: [
|
|
798
|
-
/* @__PURE__ */
|
|
797
|
+
/* @__PURE__ */ A("div", {
|
|
799
798
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
800
799
|
children: [
|
|
801
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ A("div", {
|
|
802
801
|
className: "flex items-center gap-3 mb-3",
|
|
803
|
-
children: [/* @__PURE__ */
|
|
802
|
+
children: [/* @__PURE__ */ k(_, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ k("h3", {
|
|
804
803
|
className: "text-base font-semibold text-text-primary",
|
|
805
804
|
children: "Change Password"
|
|
806
805
|
})]
|
|
807
806
|
}),
|
|
808
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ k("p", {
|
|
809
808
|
className: "mb-4 text-sm text-text-secondary",
|
|
810
|
-
children: "
|
|
809
|
+
children: "Your password is managed by your Burdenoff account. Update it securely in Account Security."
|
|
811
810
|
}),
|
|
812
|
-
|
|
813
|
-
className: "space-y-4",
|
|
814
|
-
children: [
|
|
815
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
816
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
817
|
-
children: "Current Password"
|
|
818
|
-
}), /* @__PURE__ */ C("div", {
|
|
819
|
-
className: "relative",
|
|
820
|
-
children: [/* @__PURE__ */ S("input", {
|
|
821
|
-
type: X ? "text" : "password",
|
|
822
|
-
value: W,
|
|
823
|
-
onChange: (e) => G(e.target.value),
|
|
824
|
-
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)]"
|
|
825
|
-
}), /* @__PURE__ */ S("button", {
|
|
826
|
-
type: "button",
|
|
827
|
-
onClick: () => ue(!X),
|
|
828
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
829
|
-
children: S(X ? d : u, { className: "h-4 w-4" })
|
|
830
|
-
})]
|
|
831
|
-
})] }),
|
|
832
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
833
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
834
|
-
children: "New Password"
|
|
835
|
-
}), /* @__PURE__ */ C("div", {
|
|
836
|
-
className: "relative",
|
|
837
|
-
children: [/* @__PURE__ */ S("input", {
|
|
838
|
-
type: Z ? "text" : "password",
|
|
839
|
-
value: K,
|
|
840
|
-
onChange: (e) => q(e.target.value),
|
|
841
|
-
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)]"
|
|
842
|
-
}), /* @__PURE__ */ S("button", {
|
|
843
|
-
type: "button",
|
|
844
|
-
onClick: () => de(!Z),
|
|
845
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
846
|
-
children: S(Z ? d : u, { className: "h-4 w-4" })
|
|
847
|
-
})]
|
|
848
|
-
})] }),
|
|
849
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
|
|
850
|
-
className: "mb-1 block text-sm font-medium text-text-primary",
|
|
851
|
-
children: "Confirm New Password"
|
|
852
|
-
}), /* @__PURE__ */ S("input", {
|
|
853
|
-
type: "password",
|
|
854
|
-
value: J,
|
|
855
|
-
onChange: (e) => Y(e.target.value),
|
|
856
|
-
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)]"
|
|
857
|
-
})] }),
|
|
858
|
-
/* @__PURE__ */ C("div", {
|
|
859
|
-
className: "flex gap-3",
|
|
860
|
-
children: [/* @__PURE__ */ S("button", {
|
|
861
|
-
type: "button",
|
|
862
|
-
onClick: ge,
|
|
863
|
-
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",
|
|
864
|
-
children: "Update Password"
|
|
865
|
-
}), /* @__PURE__ */ S("button", {
|
|
866
|
-
type: "button",
|
|
867
|
-
onClick: () => {
|
|
868
|
-
U(!1), G(""), q(""), Y("");
|
|
869
|
-
},
|
|
870
|
-
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
871
|
-
children: "Cancel"
|
|
872
|
-
})]
|
|
873
|
-
})
|
|
874
|
-
]
|
|
875
|
-
}) : /* @__PURE__ */ S("button", {
|
|
811
|
+
/* @__PURE__ */ A("button", {
|
|
876
812
|
type: "button",
|
|
877
|
-
onClick:
|
|
878
|
-
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
879
|
-
children: "
|
|
813
|
+
onClick: $,
|
|
814
|
+
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",
|
|
815
|
+
children: ["Manage in Account Security", /* @__PURE__ */ k(p, { className: "h-4 w-4" })]
|
|
880
816
|
})
|
|
881
817
|
]
|
|
882
818
|
}),
|
|
883
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ A("div", {
|
|
884
820
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
885
821
|
children: [
|
|
886
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ A("div", {
|
|
887
823
|
className: "flex items-center gap-3 mb-3",
|
|
888
|
-
children: [/* @__PURE__ */
|
|
824
|
+
children: [/* @__PURE__ */ k(w, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ k("h3", {
|
|
889
825
|
className: "text-base font-semibold text-text-primary",
|
|
890
826
|
children: "Two-Factor Authentication"
|
|
891
827
|
})]
|
|
892
828
|
}),
|
|
893
|
-
/* @__PURE__ */
|
|
829
|
+
/* @__PURE__ */ k("p", {
|
|
894
830
|
className: "mb-4 text-sm text-text-secondary",
|
|
895
|
-
children: "Add an extra layer of security to your
|
|
831
|
+
children: "Add an extra layer of security to your account. Two-factor authentication is configured in Account Security."
|
|
896
832
|
}),
|
|
897
|
-
/* @__PURE__ */
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
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"),
|
|
903
|
-
children: Q ? "Enabled" : "Disabled"
|
|
904
|
-
})
|
|
905
|
-
}), /* @__PURE__ */ S("button", {
|
|
906
|
-
type: "button",
|
|
907
|
-
onClick: _e,
|
|
908
|
-
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"),
|
|
909
|
-
children: Q ? "Disable 2FA" : "Enable 2FA"
|
|
910
|
-
})]
|
|
833
|
+
/* @__PURE__ */ A("button", {
|
|
834
|
+
type: "button",
|
|
835
|
+
onClick: $,
|
|
836
|
+
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",
|
|
837
|
+
children: ["Manage in Account Security", /* @__PURE__ */ k(p, { className: "h-4 w-4" })]
|
|
911
838
|
})
|
|
912
839
|
]
|
|
913
840
|
}),
|
|
914
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ A("div", {
|
|
915
842
|
className: "rounded-lg border border-border-subtle p-4 sm:p-6",
|
|
916
|
-
children: [/* @__PURE__ */ C("div", {
|
|
917
|
-
className: "flex items-center gap-3 mb-4",
|
|
918
|
-
children: [/* @__PURE__ */ S(_, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ S("h3", {
|
|
919
|
-
className: "text-base font-semibold text-text-primary",
|
|
920
|
-
children: "Login Activity"
|
|
921
|
-
})]
|
|
922
|
-
}), /* @__PURE__ */ S("p", {
|
|
923
|
-
className: "rounded-lg bg-bg-sunken/30 p-4 text-sm text-text-secondary",
|
|
924
|
-
children: "Recent sign-in sessions for your account will be listed here."
|
|
925
|
-
})]
|
|
926
|
-
})
|
|
927
|
-
]
|
|
928
|
-
})] }),
|
|
929
|
-
O === "notifications" && /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h2", {
|
|
930
|
-
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
931
|
-
children: "Notification Preferences"
|
|
932
|
-
}), /* @__PURE__ */ C("div", {
|
|
933
|
-
className: "space-y-4",
|
|
934
|
-
children: [B.map((e) => /* @__PURE__ */ C("div", {
|
|
935
|
-
className: "flex items-center justify-between rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
936
|
-
children: [/* @__PURE__ */ C("div", {
|
|
937
|
-
className: "flex-1 pr-4",
|
|
938
|
-
children: [/* @__PURE__ */ S("h4", {
|
|
939
|
-
className: "text-sm font-medium text-text-primary",
|
|
940
|
-
children: e.label
|
|
941
|
-
}), /* @__PURE__ */ S("p", {
|
|
942
|
-
className: "mt-0.5 text-xs text-text-secondary sm:text-sm",
|
|
943
|
-
children: e.description
|
|
944
|
-
})]
|
|
945
|
-
}), /* @__PURE__ */ S("button", {
|
|
946
|
-
type: "button",
|
|
947
|
-
onClick: () => {
|
|
948
|
-
A && he(e.id);
|
|
949
|
-
},
|
|
950
|
-
disabled: !A,
|
|
951
|
-
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", !A && "cursor-not-allowed opacity-60"),
|
|
952
|
-
children: /* @__PURE__ */ S("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") })
|
|
953
|
-
})]
|
|
954
|
-
}, e.id)), /* @__PURE__ */ S("div", {
|
|
955
|
-
className: "mt-4 rounded-lg border border-border-subtle bg-bg-sunken/50 p-4",
|
|
956
|
-
children: /* @__PURE__ */ C("p", {
|
|
957
|
-
className: "text-sm text-text-secondary",
|
|
958
843
|
children: [
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
844
|
+
/* @__PURE__ */ A("div", {
|
|
845
|
+
className: "flex items-center gap-3 mb-3",
|
|
846
|
+
children: [/* @__PURE__ */ k(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ k("h3", {
|
|
847
|
+
className: "text-base font-semibold text-text-primary",
|
|
848
|
+
children: "Login Activity"
|
|
849
|
+
})]
|
|
850
|
+
}),
|
|
851
|
+
/* @__PURE__ */ k("p", {
|
|
852
|
+
className: "mb-4 text-sm text-text-secondary",
|
|
853
|
+
children: "Review recent sign-ins and active sessions for your account in Account Security."
|
|
854
|
+
}),
|
|
855
|
+
/* @__PURE__ */ A("button", {
|
|
856
|
+
type: "button",
|
|
857
|
+
onClick: $,
|
|
858
|
+
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",
|
|
859
|
+
children: ["Manage in Account Security", /* @__PURE__ */ k(p, { className: "h-4 w-4" })]
|
|
967
860
|
})
|
|
968
861
|
]
|
|
969
862
|
})
|
|
970
|
-
|
|
971
|
-
})] })
|
|
863
|
+
]
|
|
864
|
+
})] }),
|
|
865
|
+
z === "notifications" && /* @__PURE__ */ A("div", { children: [
|
|
866
|
+
/* @__PURE__ */ k("h2", {
|
|
867
|
+
className: "mb-6 text-lg font-semibold text-text-primary sm:text-xl",
|
|
868
|
+
children: "Notification Preferences"
|
|
869
|
+
}),
|
|
870
|
+
/* @__PURE__ */ A("div", {
|
|
871
|
+
className: "mb-4 flex items-start gap-3 rounded-lg border border-border-subtle bg-bg-sunken/40 p-4",
|
|
872
|
+
children: [/* @__PURE__ */ k(c, { className: "mt-0.5 h-5 w-5 shrink-0 text-text-secondary" }), /* @__PURE__ */ k("p", {
|
|
873
|
+
className: "text-sm text-text-secondary",
|
|
874
|
+
children: "Notification controls are coming soon. This is a preview of the alerts you'll be able to manage here — the switches are not active yet."
|
|
875
|
+
})]
|
|
876
|
+
}),
|
|
877
|
+
/* @__PURE__ */ k("div", {
|
|
878
|
+
className: "space-y-4",
|
|
879
|
+
children: Y.map((e) => /* @__PURE__ */ A("div", {
|
|
880
|
+
className: "flex items-center justify-between rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
881
|
+
children: [/* @__PURE__ */ A("div", {
|
|
882
|
+
className: "flex-1 pr-4",
|
|
883
|
+
children: [/* @__PURE__ */ k("h4", {
|
|
884
|
+
className: "text-sm font-medium text-text-primary",
|
|
885
|
+
children: e.label
|
|
886
|
+
}), /* @__PURE__ */ k("p", {
|
|
887
|
+
className: "mt-0.5 text-xs text-text-secondary sm:text-sm",
|
|
888
|
+
children: e.description
|
|
889
|
+
})]
|
|
890
|
+
}), /* @__PURE__ */ k("span", {
|
|
891
|
+
"aria-disabled": "true",
|
|
892
|
+
title: "Coming soon",
|
|
893
|
+
className: t("relative inline-flex h-6 w-11 shrink-0 cursor-not-allowed rounded-full opacity-50 transition-colors duration-200", e.enabled ? "bg-action-primary-bg" : "bg-bg-sunken"),
|
|
894
|
+
children: /* @__PURE__ */ k("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") })
|
|
895
|
+
})]
|
|
896
|
+
}, e.id))
|
|
897
|
+
})
|
|
898
|
+
] })
|
|
972
899
|
]
|
|
973
900
|
})
|
|
974
901
|
})]
|
|
@@ -976,6 +903,6 @@ function D() {
|
|
|
976
903
|
});
|
|
977
904
|
}
|
|
978
905
|
//#endregion
|
|
979
|
-
export {
|
|
906
|
+
export { z as InvestorProfilePage };
|
|
980
907
|
|
|
981
908
|
//# sourceMappingURL=InvestorProfilePage.js.map
|