@burdenoff/microfe-atheletebridge 2026.625.1 → 2026.626.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/atheletebridge/pages/HomePage.js +272 -268
- package/dist/atheletebridge/pages/HomePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js +90 -82
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminDashboard.js +76 -44
- package/dist/atheletebridge/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js +63 -55
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js +244 -237
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js +59 -57
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js +110 -106
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/CartManagementPage.js +166 -159
- package/dist/atheletebridge/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/UserManagementPage.js +310 -303
- package/dist/atheletebridge/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js +86 -81
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js +170 -166
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js +141 -109
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js +139 -134
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js +109 -107
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js +318 -318
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js +262 -262
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js +170 -162
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/HelpSupportPage.js +292 -298
- package/dist/atheletebridge/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js +99 -91
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/SettingsPage.js +742 -734
- package/dist/atheletebridge/pages/common/SettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js +364 -356
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDetailPage.js +276 -241
- package/dist/atheletebridge/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js +260 -250
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CheckoutPage.js +93 -89
- package/dist/atheletebridge/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js +430 -387
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js +526 -490
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js +523 -512
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/FavoritesPage.js +83 -75
- package/dist/atheletebridge/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js +116 -108
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js +65 -61
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js +80 -75
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/ReviewsPage.js +80 -72
- package/dist/atheletebridge/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js +62 -55
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js +93 -61
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js +89 -84
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js +60 -55
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js +345 -311
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js +37 -32
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js +75 -67
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js +352 -319
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js +353 -318
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js +133 -128
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js +352 -344
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,8 +5,9 @@ import { formatCurrency as r, formatDate as i } from "../../utils/formatters.js"
|
|
|
5
5
|
import { useEffect as a, useState as o } from "react";
|
|
6
6
|
import { Activity as s, AlertCircle as c, ArrowLeft as l, BarChart3 as u, Building2 as d, CheckCircle2 as f, Clock as p, Download as m, FileText as h, IndianRupee as g, Package as _, PieChart as v, Star as y, TrendingUp as b, Users as x, X as S } from "lucide-react";
|
|
7
7
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
8
|
+
import { EmphasisPanel as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
8
9
|
//#region src/atheletebridge/pages/investor/InvestmentDetailsPage.tsx
|
|
9
|
-
var
|
|
10
|
+
var O = {
|
|
10
11
|
id: "INV-001",
|
|
11
12
|
cartName: "Dosa Express - Koramangala",
|
|
12
13
|
cartOwner: "Suresh Rao",
|
|
@@ -77,7 +78,7 @@ var T = {
|
|
|
77
78
|
}
|
|
78
79
|
]
|
|
79
80
|
};
|
|
80
|
-
function
|
|
81
|
+
function k(e) {
|
|
81
82
|
switch (e) {
|
|
82
83
|
case "verified": return {
|
|
83
84
|
color: "text-green-600 dark:text-green-400",
|
|
@@ -101,15 +102,15 @@ function E(e) {
|
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
-
let { navigateTo: f } = e(), [p,
|
|
105
|
+
function A() {
|
|
106
|
+
let { navigateTo: f } = e(), [p, A] = o("overview"), [j, M] = o(!0), [N, P] = o(!1), [F, I] = o(null);
|
|
106
107
|
a(() => {
|
|
107
108
|
let e = setTimeout(() => {
|
|
108
|
-
|
|
109
|
+
I(O), M(!1);
|
|
109
110
|
}, 600);
|
|
110
111
|
return () => clearTimeout(e);
|
|
111
112
|
}, []);
|
|
112
|
-
let
|
|
113
|
+
let L = [
|
|
113
114
|
{
|
|
114
115
|
id: "overview",
|
|
115
116
|
label: "Overview",
|
|
@@ -131,7 +132,7 @@ function D() {
|
|
|
131
132
|
Icon: s
|
|
132
133
|
}
|
|
133
134
|
];
|
|
134
|
-
if (
|
|
135
|
+
if (j) return /* @__PURE__ */ C(n, {
|
|
135
136
|
title: "Investment Details",
|
|
136
137
|
description: "Loading...",
|
|
137
138
|
children: /* @__PURE__ */ C("div", {
|
|
@@ -145,7 +146,7 @@ function D() {
|
|
|
145
146
|
})
|
|
146
147
|
})
|
|
147
148
|
});
|
|
148
|
-
if (!
|
|
149
|
+
if (!F) return /* @__PURE__ */ C(n, {
|
|
149
150
|
title: "Investment Not Found",
|
|
150
151
|
children: /* @__PURE__ */ w("div", {
|
|
151
152
|
className: "flex flex-col items-center justify-center py-12",
|
|
@@ -155,9 +156,9 @@ function D() {
|
|
|
155
156
|
})]
|
|
156
157
|
})
|
|
157
158
|
});
|
|
158
|
-
let
|
|
159
|
+
let R = F.currentValuation * (F.equityPercentage / 100) - F.investmentAmount, z = R / F.investmentAmount * 100;
|
|
159
160
|
return /* @__PURE__ */ w(n, {
|
|
160
|
-
title:
|
|
161
|
+
title: F.cartName,
|
|
161
162
|
description: "Investment Details & Performance",
|
|
162
163
|
actions: /* @__PURE__ */ w("div", {
|
|
163
164
|
className: "flex items-center gap-2",
|
|
@@ -196,7 +197,7 @@ function D() {
|
|
|
196
197
|
}),
|
|
197
198
|
/* @__PURE__ */ w("button", {
|
|
198
199
|
type: "button",
|
|
199
|
-
onClick: () =>
|
|
200
|
+
onClick: () => P(!0),
|
|
200
201
|
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",
|
|
201
202
|
children: [/* @__PURE__ */ C("span", {
|
|
202
203
|
className: "hidden sm:inline",
|
|
@@ -209,7 +210,38 @@ function D() {
|
|
|
209
210
|
]
|
|
210
211
|
}),
|
|
211
212
|
children: [
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ C(D, {
|
|
214
|
+
className: "mb-6",
|
|
215
|
+
children: "A deep dive into one of your investments. Track your stake, returns and equity, follow the business's performance over time, export a report, or manage your position. Everything about this holding lives on this page."
|
|
216
|
+
}),
|
|
217
|
+
/* @__PURE__ */ C(E, {
|
|
218
|
+
className: "mb-6",
|
|
219
|
+
storageKey: "atheletebridge-investment-details",
|
|
220
|
+
steps: [
|
|
221
|
+
{
|
|
222
|
+
id: "manage",
|
|
223
|
+
label: "Manage this investment",
|
|
224
|
+
description: "Top up, withdraw or adjust your position.",
|
|
225
|
+
icon: /* @__PURE__ */ C(v, { className: "h-4 w-4" }),
|
|
226
|
+
onClick: () => P(!0)
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "export",
|
|
230
|
+
label: "Export a performance report",
|
|
231
|
+
description: "Download the numbers for your records.",
|
|
232
|
+
icon: /* @__PURE__ */ C(m, { className: "h-4 w-4" }),
|
|
233
|
+
onClick: () => alert("Report export initiated")
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
id: "portfolio",
|
|
237
|
+
label: "Back to your portfolio",
|
|
238
|
+
description: "Compare this holding against the rest of your investments.",
|
|
239
|
+
icon: /* @__PURE__ */ C(l, { className: "h-4 w-4" }),
|
|
240
|
+
onClick: () => f("/investor/portfolio")
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ C(T, { children: /* @__PURE__ */ w("div", {
|
|
213
245
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
214
246
|
children: [
|
|
215
247
|
/* @__PURE__ */ w("div", {
|
|
@@ -218,7 +250,7 @@ function D() {
|
|
|
218
250
|
/* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
|
|
219
251
|
/* @__PURE__ */ C("div", {
|
|
220
252
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
221
|
-
children: r(
|
|
253
|
+
children: r(F.investmentAmount, { minimumFractionDigits: 0 })
|
|
222
254
|
}),
|
|
223
255
|
/* @__PURE__ */ C("div", {
|
|
224
256
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -233,8 +265,8 @@ function D() {
|
|
|
233
265
|
/* @__PURE__ */ w("div", {
|
|
234
266
|
className: "text-lg font-bold text-green-600 dark:text-green-400 sm:text-2xl",
|
|
235
267
|
children: [
|
|
236
|
-
|
|
237
|
-
|
|
268
|
+
z > 0 ? "+" : "",
|
|
269
|
+
z.toFixed(1),
|
|
238
270
|
"%"
|
|
239
271
|
]
|
|
240
272
|
}),
|
|
@@ -250,7 +282,7 @@ function D() {
|
|
|
250
282
|
/* @__PURE__ */ C(v, { className: "mx-auto mb-2 h-6 w-6 text-blue-600 sm:h-8 sm:w-8" }),
|
|
251
283
|
/* @__PURE__ */ w("div", {
|
|
252
284
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
253
|
-
children: [
|
|
285
|
+
children: [F.equityPercentage, "%"]
|
|
254
286
|
}),
|
|
255
287
|
/* @__PURE__ */ C("div", {
|
|
256
288
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -264,7 +296,7 @@ function D() {
|
|
|
264
296
|
/* @__PURE__ */ C(d, { className: "mx-auto mb-2 h-6 w-6 text-purple-600 sm:h-8 sm:w-8" }),
|
|
265
297
|
/* @__PURE__ */ C("div", {
|
|
266
298
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
267
|
-
children: r(
|
|
299
|
+
children: r(F.currentValuation * (F.equityPercentage / 100), { minimumFractionDigits: 0 })
|
|
268
300
|
}),
|
|
269
301
|
/* @__PURE__ */ C("div", {
|
|
270
302
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -273,12 +305,12 @@ function D() {
|
|
|
273
305
|
]
|
|
274
306
|
})
|
|
275
307
|
]
|
|
276
|
-
}),
|
|
308
|
+
}) }),
|
|
277
309
|
/* @__PURE__ */ C("div", {
|
|
278
310
|
className: "mt-6 flex gap-2 overflow-x-auto pb-2",
|
|
279
|
-
children:
|
|
311
|
+
children: L.map((e) => /* @__PURE__ */ w("button", {
|
|
280
312
|
type: "button",
|
|
281
|
-
onClick: () =>
|
|
313
|
+
onClick: () => A(e.id),
|
|
282
314
|
className: t("flex items-center gap-2 whitespace-nowrap rounded-lg px-3 py-2 text-sm font-medium transition-colors sm:px-4 sm:py-3", p === e.id ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface text-text-primary hover:bg-bg-sunken"),
|
|
283
315
|
children: [
|
|
284
316
|
/* @__PURE__ */ C(e.Icon, { className: "h-4 w-4 flex-shrink-0" }),
|
|
@@ -313,28 +345,28 @@ function D() {
|
|
|
313
345
|
children: "Owner"
|
|
314
346
|
}), /* @__PURE__ */ C("p", {
|
|
315
347
|
className: "font-medium text-text-primary",
|
|
316
|
-
children:
|
|
348
|
+
children: F.cartOwner
|
|
317
349
|
})] }),
|
|
318
350
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
319
351
|
className: "text-sm text-text-secondary",
|
|
320
352
|
children: "Business Type"
|
|
321
353
|
}), /* @__PURE__ */ C("p", {
|
|
322
354
|
className: "font-medium text-text-primary",
|
|
323
|
-
children:
|
|
355
|
+
children: F.businessType
|
|
324
356
|
})] }),
|
|
325
357
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
326
358
|
className: "text-sm text-text-secondary",
|
|
327
359
|
children: "Location"
|
|
328
360
|
}), /* @__PURE__ */ C("p", {
|
|
329
361
|
className: "font-medium text-text-primary",
|
|
330
|
-
children:
|
|
362
|
+
children: F.location
|
|
331
363
|
})] }),
|
|
332
364
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
333
365
|
className: "text-sm text-text-secondary",
|
|
334
366
|
children: "Established"
|
|
335
367
|
}), /* @__PURE__ */ C("p", {
|
|
336
368
|
className: "font-medium text-text-primary",
|
|
337
|
-
children: i(
|
|
369
|
+
children: i(F.establishedDate, {
|
|
338
370
|
hour: void 0,
|
|
339
371
|
minute: void 0
|
|
340
372
|
})
|
|
@@ -355,7 +387,7 @@ function D() {
|
|
|
355
387
|
/* @__PURE__ */ C(_, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
|
|
356
388
|
/* @__PURE__ */ C("div", {
|
|
357
389
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
358
|
-
children:
|
|
390
|
+
children: F.monthlyOrders
|
|
359
391
|
}),
|
|
360
392
|
/* @__PURE__ */ C("div", {
|
|
361
393
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -366,7 +398,7 @@ function D() {
|
|
|
366
398
|
/* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-green-600 sm:h-8 sm:w-8" }),
|
|
367
399
|
/* @__PURE__ */ C("div", {
|
|
368
400
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
369
|
-
children: r(
|
|
401
|
+
children: r(F.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
370
402
|
}),
|
|
371
403
|
/* @__PURE__ */ C("div", {
|
|
372
404
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -377,7 +409,7 @@ function D() {
|
|
|
377
409
|
/* @__PURE__ */ C(x, { className: "mx-auto mb-2 h-6 w-6 text-blue-600 sm:h-8 sm:w-8" }),
|
|
378
410
|
/* @__PURE__ */ C("div", {
|
|
379
411
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
380
|
-
children:
|
|
412
|
+
children: F.activeCustomers
|
|
381
413
|
}),
|
|
382
414
|
/* @__PURE__ */ C("div", {
|
|
383
415
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -393,9 +425,9 @@ function D() {
|
|
|
393
425
|
children: "Customer Rating"
|
|
394
426
|
}), /* @__PURE__ */ w("div", {
|
|
395
427
|
className: "mt-1 flex items-center gap-1",
|
|
396
|
-
children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */ C(y, { className: t("h-4 w-4", n < Math.floor(
|
|
428
|
+
children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */ C(y, { className: t("h-4 w-4", n < Math.floor(F.customerRating) ? "fill-yellow-400 text-yellow-400" : "fill-none text-text-secondary/40") }, n)), /* @__PURE__ */ C("span", {
|
|
397
429
|
className: "ml-1 text-sm font-medium text-text-primary",
|
|
398
|
-
children:
|
|
430
|
+
children: F.customerRating
|
|
399
431
|
})]
|
|
400
432
|
})] }), /* @__PURE__ */ w("div", {
|
|
401
433
|
className: "text-left sm:text-right",
|
|
@@ -404,7 +436,7 @@ function D() {
|
|
|
404
436
|
children: "Avg Order Value"
|
|
405
437
|
}), /* @__PURE__ */ C("p", {
|
|
406
438
|
className: "text-lg font-semibold text-text-primary",
|
|
407
|
-
children: r(
|
|
439
|
+
children: r(F.averageOrderValue, { minimumFractionDigits: 0 })
|
|
408
440
|
})]
|
|
409
441
|
})]
|
|
410
442
|
})
|
|
@@ -425,7 +457,7 @@ function D() {
|
|
|
425
457
|
children: "Investment Date"
|
|
426
458
|
}), /* @__PURE__ */ C("p", {
|
|
427
459
|
className: "font-medium text-text-primary",
|
|
428
|
-
children: i(
|
|
460
|
+
children: i(F.investmentDate, {
|
|
429
461
|
hour: void 0,
|
|
430
462
|
minute: void 0
|
|
431
463
|
})
|
|
@@ -435,21 +467,21 @@ function D() {
|
|
|
435
467
|
children: "Investment Type"
|
|
436
468
|
}), /* @__PURE__ */ C("p", {
|
|
437
469
|
className: "font-medium text-text-primary",
|
|
438
|
-
children:
|
|
470
|
+
children: F.investmentType
|
|
439
471
|
})] }),
|
|
440
472
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
441
473
|
className: "text-sm text-text-secondary",
|
|
442
474
|
children: "Initial Valuation"
|
|
443
475
|
}), /* @__PURE__ */ C("p", {
|
|
444
476
|
className: "font-medium text-text-primary",
|
|
445
|
-
children: r(
|
|
477
|
+
children: r(F.valuationAtInvestment, { minimumFractionDigits: 0 })
|
|
446
478
|
})] }),
|
|
447
479
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
448
480
|
className: "text-sm text-text-secondary",
|
|
449
481
|
children: "Current Valuation"
|
|
450
482
|
}), /* @__PURE__ */ C("p", {
|
|
451
483
|
className: "text-lg font-medium text-text-primary",
|
|
452
|
-
children: r(
|
|
484
|
+
children: r(F.currentValuation, { minimumFractionDigits: 0 })
|
|
453
485
|
})] }),
|
|
454
486
|
/* @__PURE__ */ C("div", {
|
|
455
487
|
className: "border-t border-border-subtle pt-4",
|
|
@@ -459,8 +491,8 @@ function D() {
|
|
|
459
491
|
className: "text-sm text-text-secondary",
|
|
460
492
|
children: "Your Returns"
|
|
461
493
|
}), /* @__PURE__ */ w("span", {
|
|
462
|
-
className: t("text-lg font-semibold",
|
|
463
|
-
children: [
|
|
494
|
+
className: t("text-lg font-semibold", R > 0 ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400"),
|
|
495
|
+
children: [R > 0 ? "+" : "", r(R, { minimumFractionDigits: 0 })]
|
|
464
496
|
})]
|
|
465
497
|
})
|
|
466
498
|
})
|
|
@@ -483,7 +515,7 @@ function D() {
|
|
|
483
515
|
className: "text-sm font-medium text-green-600 dark:text-green-400",
|
|
484
516
|
children: [
|
|
485
517
|
"+",
|
|
486
|
-
|
|
518
|
+
F.revenueGrowth,
|
|
487
519
|
"%"
|
|
488
520
|
]
|
|
489
521
|
})]
|
|
@@ -491,7 +523,7 @@ function D() {
|
|
|
491
523
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
492
524
|
children: /* @__PURE__ */ C("div", {
|
|
493
525
|
className: "h-full rounded-full bg-green-600",
|
|
494
|
-
style: { width: `${Math.min(
|
|
526
|
+
style: { width: `${Math.min(F.revenueGrowth, 100)}%` }
|
|
495
527
|
})
|
|
496
528
|
})] }),
|
|
497
529
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
@@ -501,13 +533,13 @@ function D() {
|
|
|
501
533
|
children: "Profit Margin"
|
|
502
534
|
}), /* @__PURE__ */ w("span", {
|
|
503
535
|
className: "text-sm font-medium text-text-primary",
|
|
504
|
-
children: [
|
|
536
|
+
children: [F.profitMargin, "%"]
|
|
505
537
|
})]
|
|
506
538
|
}), /* @__PURE__ */ C("div", {
|
|
507
539
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
508
540
|
children: /* @__PURE__ */ C("div", {
|
|
509
541
|
className: "h-full rounded-full bg-blue-600",
|
|
510
|
-
style: { width: `${
|
|
542
|
+
style: { width: `${F.profitMargin}%` }
|
|
511
543
|
})
|
|
512
544
|
})] }),
|
|
513
545
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
@@ -519,7 +551,7 @@ function D() {
|
|
|
519
551
|
className: "text-sm font-medium text-green-600 dark:text-green-400",
|
|
520
552
|
children: [
|
|
521
553
|
"+",
|
|
522
|
-
|
|
554
|
+
F.returnOnInvestment,
|
|
523
555
|
"%"
|
|
524
556
|
]
|
|
525
557
|
})]
|
|
@@ -527,7 +559,7 @@ function D() {
|
|
|
527
559
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
528
560
|
children: /* @__PURE__ */ C("div", {
|
|
529
561
|
className: "h-full rounded-full bg-green-500",
|
|
530
|
-
style: { width: `${Math.min(
|
|
562
|
+
style: { width: `${Math.min(F.returnOnInvestment, 100)}%` }
|
|
531
563
|
})
|
|
532
564
|
})] }),
|
|
533
565
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
@@ -535,7 +567,7 @@ function D() {
|
|
|
535
567
|
children: "Expected Payback"
|
|
536
568
|
}), /* @__PURE__ */ C("p", {
|
|
537
569
|
className: "font-medium text-text-primary",
|
|
538
|
-
children:
|
|
570
|
+
children: F.paybackPeriod
|
|
539
571
|
})] })
|
|
540
572
|
]
|
|
541
573
|
})]
|
|
@@ -559,7 +591,7 @@ function D() {
|
|
|
559
591
|
children: "Monthly Revenue"
|
|
560
592
|
}), /* @__PURE__ */ C("p", {
|
|
561
593
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
562
|
-
children: r(
|
|
594
|
+
children: r(F.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
563
595
|
})]
|
|
564
596
|
}),
|
|
565
597
|
/* @__PURE__ */ w("div", {
|
|
@@ -571,7 +603,7 @@ function D() {
|
|
|
571
603
|
className: "mt-1 text-lg font-bold text-green-600 dark:text-green-400",
|
|
572
604
|
children: [
|
|
573
605
|
"+",
|
|
574
|
-
|
|
606
|
+
F.revenueGrowth,
|
|
575
607
|
"%"
|
|
576
608
|
]
|
|
577
609
|
})]
|
|
@@ -583,7 +615,7 @@ function D() {
|
|
|
583
615
|
children: "Profit Margin"
|
|
584
616
|
}), /* @__PURE__ */ w("p", {
|
|
585
617
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
586
|
-
children: [
|
|
618
|
+
children: [F.profitMargin, "%"]
|
|
587
619
|
})]
|
|
588
620
|
}),
|
|
589
621
|
/* @__PURE__ */ w("div", {
|
|
@@ -593,7 +625,7 @@ function D() {
|
|
|
593
625
|
children: "Avg Order Value"
|
|
594
626
|
}), /* @__PURE__ */ C("p", {
|
|
595
627
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
596
|
-
children: r(
|
|
628
|
+
children: r(F.averageOrderValue, { minimumFractionDigits: 0 })
|
|
597
629
|
})]
|
|
598
630
|
})
|
|
599
631
|
]
|
|
@@ -623,32 +655,32 @@ function D() {
|
|
|
623
655
|
children: [
|
|
624
656
|
{
|
|
625
657
|
metric: "Monthly Revenue",
|
|
626
|
-
value: r(
|
|
658
|
+
value: r(F.monthlyRevenue, { minimumFractionDigits: 0 }),
|
|
627
659
|
trend: "+18.5%"
|
|
628
660
|
},
|
|
629
661
|
{
|
|
630
662
|
metric: "Monthly Orders",
|
|
631
|
-
value: String(
|
|
663
|
+
value: String(F.monthlyOrders),
|
|
632
664
|
trend: "+12%"
|
|
633
665
|
},
|
|
634
666
|
{
|
|
635
667
|
metric: "Average Order Value",
|
|
636
|
-
value: r(
|
|
668
|
+
value: r(F.averageOrderValue, { minimumFractionDigits: 0 }),
|
|
637
669
|
trend: "+5.8%"
|
|
638
670
|
},
|
|
639
671
|
{
|
|
640
672
|
metric: "Active Customers",
|
|
641
|
-
value: String(
|
|
673
|
+
value: String(F.activeCustomers),
|
|
642
674
|
trend: "+22%"
|
|
643
675
|
},
|
|
644
676
|
{
|
|
645
677
|
metric: "Profit Margin",
|
|
646
|
-
value: `${
|
|
678
|
+
value: `${F.profitMargin}%`,
|
|
647
679
|
trend: "+2.1%"
|
|
648
680
|
},
|
|
649
681
|
{
|
|
650
682
|
metric: "Return on Investment",
|
|
651
|
-
value: `${
|
|
683
|
+
value: `${F.returnOnInvestment}%`,
|
|
652
684
|
trend: "+8.5%"
|
|
653
685
|
}
|
|
654
686
|
].map((e) => /* @__PURE__ */ w("tr", {
|
|
@@ -680,8 +712,8 @@ function D() {
|
|
|
680
712
|
children: "Investment Documents"
|
|
681
713
|
}), /* @__PURE__ */ C("div", {
|
|
682
714
|
className: "space-y-4",
|
|
683
|
-
children:
|
|
684
|
-
let r =
|
|
715
|
+
children: F.documents.map((e, n) => {
|
|
716
|
+
let r = k(e.status), a = r.Icon;
|
|
685
717
|
return /* @__PURE__ */ w("div", {
|
|
686
718
|
className: "flex flex-col gap-4 rounded-lg bg-bg-sunken/50 p-4 sm:flex-row sm:items-center sm:justify-between",
|
|
687
719
|
children: [/* @__PURE__ */ w("div", {
|
|
@@ -739,7 +771,7 @@ function D() {
|
|
|
739
771
|
children: "Recent Updates"
|
|
740
772
|
}), /* @__PURE__ */ C("div", {
|
|
741
773
|
className: "space-y-4",
|
|
742
|
-
children:
|
|
774
|
+
children: F.recentUpdates.map((e, t) => /* @__PURE__ */ w("div", {
|
|
743
775
|
className: "flex gap-3 rounded-lg bg-bg-sunken/50 p-4 sm:gap-4",
|
|
744
776
|
children: [/* @__PURE__ */ C("div", {
|
|
745
777
|
className: "flex-shrink-0",
|
|
@@ -768,7 +800,7 @@ function D() {
|
|
|
768
800
|
})
|
|
769
801
|
]
|
|
770
802
|
}),
|
|
771
|
-
|
|
803
|
+
N && /* @__PURE__ */ C("div", {
|
|
772
804
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
773
805
|
children: /* @__PURE__ */ w("div", {
|
|
774
806
|
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
|
|
@@ -777,7 +809,7 @@ function D() {
|
|
|
777
809
|
className: "border-b border-border-subtle p-4 sm:p-6",
|
|
778
810
|
children: [/* @__PURE__ */ C("button", {
|
|
779
811
|
type: "button",
|
|
780
|
-
onClick: () =>
|
|
812
|
+
onClick: () => P(!1),
|
|
781
813
|
className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
|
|
782
814
|
children: /* @__PURE__ */ C(S, { className: "h-5 w-5" })
|
|
783
815
|
}), /* @__PURE__ */ C("h2", {
|
|
@@ -792,7 +824,7 @@ function D() {
|
|
|
792
824
|
className: "text-sm text-text-secondary sm:text-base",
|
|
793
825
|
children: [
|
|
794
826
|
"Choose an action for your investment in ",
|
|
795
|
-
|
|
827
|
+
F.cartName,
|
|
796
828
|
":"
|
|
797
829
|
]
|
|
798
830
|
}),
|
|
@@ -832,7 +864,7 @@ function D() {
|
|
|
832
864
|
className: "flex justify-end gap-3 border-t border-border-subtle p-4 sm:p-6",
|
|
833
865
|
children: /* @__PURE__ */ C("button", {
|
|
834
866
|
type: "button",
|
|
835
|
-
onClick: () =>
|
|
867
|
+
onClick: () => P(!1),
|
|
836
868
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
837
869
|
children: "Cancel"
|
|
838
870
|
})
|
|
@@ -844,6 +876,6 @@ function D() {
|
|
|
844
876
|
});
|
|
845
877
|
}
|
|
846
878
|
//#endregion
|
|
847
|
-
export {
|
|
879
|
+
export { A as InvestmentDetailsPage };
|
|
848
880
|
|
|
849
881
|
//# sourceMappingURL=InvestmentDetailsPage.js.map
|