@burdenoff/microfe-adaptercloud 2026.625.1 → 2026.625.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adaptercloud/components/PageLayout.js +24 -17
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +18 -16
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +90 -82
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +70 -44
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +60 -55
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +97 -92
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +59 -57
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +118 -104
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +145 -140
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +152 -147
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +87 -81
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +179 -165
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +73 -48
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +95 -93
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +110 -107
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +293 -299
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +218 -224
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +122 -128
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +248 -244
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +96 -91
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/SettingsPage.js +754 -736
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +63 -61
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +110 -108
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +221 -217
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +89 -87
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +410 -381
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +120 -118
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +86 -81
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +53 -51
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +114 -109
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +60 -58
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +87 -72
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +65 -63
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +68 -53
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +63 -61
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +86 -84
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +57 -55
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +341 -308
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +34 -32
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +48 -46
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +383 -381
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +348 -319
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +84 -59
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +73 -71
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +76 -74
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +70 -68
- package/dist/adaptercloud/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 } from "@burdenoff/fe-libs/ui";
|
|
8
9
|
//#region src/adaptercloud/pages/investor/InvestmentDetailsPage.tsx
|
|
9
|
-
var
|
|
10
|
+
var E = {
|
|
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 D(e) {
|
|
81
82
|
switch (e) {
|
|
82
83
|
case "verified": return {
|
|
83
84
|
color: "text-status-success-text",
|
|
@@ -101,15 +102,15 @@ function E(e) {
|
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
-
let { navigateTo: f } = e(), [p,
|
|
105
|
+
function O() {
|
|
106
|
+
let { navigateTo: f } = e(), [p, O] = o("overview"), [k, A] = o(!0), [j, M] = o(!1), [N, P] = o(null);
|
|
106
107
|
a(() => {
|
|
107
108
|
let e = setTimeout(() => {
|
|
108
|
-
|
|
109
|
+
P(E), A(!1);
|
|
109
110
|
}, 600);
|
|
110
111
|
return () => clearTimeout(e);
|
|
111
112
|
}, []);
|
|
112
|
-
let
|
|
113
|
+
let F = [
|
|
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 (k) 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 (!N) 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,10 +156,11 @@ function D() {
|
|
|
155
156
|
})]
|
|
156
157
|
})
|
|
157
158
|
});
|
|
158
|
-
let
|
|
159
|
+
let I = N.currentValuation * (N.equityPercentage / 100) - N.investmentAmount, L = I / N.investmentAmount * 100;
|
|
159
160
|
return /* @__PURE__ */ w(n, {
|
|
160
|
-
title:
|
|
161
|
+
title: N.cartName,
|
|
161
162
|
description: "Investment Details & Performance",
|
|
163
|
+
purpose: "A full picture of this single investment — how much you put in, what it's returned so far, the cart's performance, and your payout history. Use it to decide whether to top up, hold, or exit.",
|
|
162
164
|
actions: /* @__PURE__ */ w("div", {
|
|
163
165
|
className: "flex items-center gap-2",
|
|
164
166
|
children: [
|
|
@@ -196,7 +198,7 @@ function D() {
|
|
|
196
198
|
}),
|
|
197
199
|
/* @__PURE__ */ w("button", {
|
|
198
200
|
type: "button",
|
|
199
|
-
onClick: () =>
|
|
201
|
+
onClick: () => M(!0),
|
|
200
202
|
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
203
|
children: [/* @__PURE__ */ C("span", {
|
|
202
204
|
className: "hidden sm:inline",
|
|
@@ -209,7 +211,7 @@ function D() {
|
|
|
209
211
|
]
|
|
210
212
|
}),
|
|
211
213
|
children: [
|
|
212
|
-
/* @__PURE__ */ w("div", {
|
|
214
|
+
/* @__PURE__ */ C(T, { children: /* @__PURE__ */ w("div", {
|
|
213
215
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
214
216
|
children: [
|
|
215
217
|
/* @__PURE__ */ w("div", {
|
|
@@ -218,7 +220,7 @@ function D() {
|
|
|
218
220
|
/* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
|
|
219
221
|
/* @__PURE__ */ C("div", {
|
|
220
222
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
221
|
-
children: r(
|
|
223
|
+
children: r(N.investmentAmount, { minimumFractionDigits: 0 })
|
|
222
224
|
}),
|
|
223
225
|
/* @__PURE__ */ C("div", {
|
|
224
226
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -233,8 +235,8 @@ function D() {
|
|
|
233
235
|
/* @__PURE__ */ w("div", {
|
|
234
236
|
className: "text-lg font-bold text-status-success-text sm:text-2xl",
|
|
235
237
|
children: [
|
|
236
|
-
|
|
237
|
-
|
|
238
|
+
L > 0 ? "+" : "",
|
|
239
|
+
L.toFixed(1),
|
|
238
240
|
"%"
|
|
239
241
|
]
|
|
240
242
|
}),
|
|
@@ -250,7 +252,7 @@ function D() {
|
|
|
250
252
|
/* @__PURE__ */ C(v, { className: "mx-auto mb-2 h-6 w-6 text-accent-blue sm:h-8 sm:w-8" }),
|
|
251
253
|
/* @__PURE__ */ w("div", {
|
|
252
254
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
253
|
-
children: [
|
|
255
|
+
children: [N.equityPercentage, "%"]
|
|
254
256
|
}),
|
|
255
257
|
/* @__PURE__ */ C("div", {
|
|
256
258
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -264,7 +266,7 @@ function D() {
|
|
|
264
266
|
/* @__PURE__ */ C(d, { className: "mx-auto mb-2 h-6 w-6 text-accent-purple sm:h-8 sm:w-8" }),
|
|
265
267
|
/* @__PURE__ */ C("div", {
|
|
266
268
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
267
|
-
children: r(
|
|
269
|
+
children: r(N.currentValuation * (N.equityPercentage / 100), { minimumFractionDigits: 0 })
|
|
268
270
|
}),
|
|
269
271
|
/* @__PURE__ */ C("div", {
|
|
270
272
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -273,12 +275,12 @@ function D() {
|
|
|
273
275
|
]
|
|
274
276
|
})
|
|
275
277
|
]
|
|
276
|
-
}),
|
|
278
|
+
}) }),
|
|
277
279
|
/* @__PURE__ */ C("div", {
|
|
278
280
|
className: "mt-6 flex gap-2 overflow-x-auto pb-2",
|
|
279
|
-
children:
|
|
281
|
+
children: F.map((e) => /* @__PURE__ */ w("button", {
|
|
280
282
|
type: "button",
|
|
281
|
-
onClick: () =>
|
|
283
|
+
onClick: () => O(e.id),
|
|
282
284
|
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
285
|
children: [
|
|
284
286
|
/* @__PURE__ */ C(e.Icon, { className: "h-4 w-4 flex-shrink-0" }),
|
|
@@ -313,28 +315,28 @@ function D() {
|
|
|
313
315
|
children: "Owner"
|
|
314
316
|
}), /* @__PURE__ */ C("p", {
|
|
315
317
|
className: "font-medium text-text-primary",
|
|
316
|
-
children:
|
|
318
|
+
children: N.cartOwner
|
|
317
319
|
})] }),
|
|
318
320
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
319
321
|
className: "text-sm text-text-secondary",
|
|
320
322
|
children: "Business Type"
|
|
321
323
|
}), /* @__PURE__ */ C("p", {
|
|
322
324
|
className: "font-medium text-text-primary",
|
|
323
|
-
children:
|
|
325
|
+
children: N.businessType
|
|
324
326
|
})] }),
|
|
325
327
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
326
328
|
className: "text-sm text-text-secondary",
|
|
327
329
|
children: "Location"
|
|
328
330
|
}), /* @__PURE__ */ C("p", {
|
|
329
331
|
className: "font-medium text-text-primary",
|
|
330
|
-
children:
|
|
332
|
+
children: N.location
|
|
331
333
|
})] }),
|
|
332
334
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
333
335
|
className: "text-sm text-text-secondary",
|
|
334
336
|
children: "Established"
|
|
335
337
|
}), /* @__PURE__ */ C("p", {
|
|
336
338
|
className: "font-medium text-text-primary",
|
|
337
|
-
children: i(
|
|
339
|
+
children: i(N.establishedDate, {
|
|
338
340
|
hour: void 0,
|
|
339
341
|
minute: void 0
|
|
340
342
|
})
|
|
@@ -355,7 +357,7 @@ function D() {
|
|
|
355
357
|
/* @__PURE__ */ C(_, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
|
|
356
358
|
/* @__PURE__ */ C("div", {
|
|
357
359
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
358
|
-
children:
|
|
360
|
+
children: N.monthlyOrders
|
|
359
361
|
}),
|
|
360
362
|
/* @__PURE__ */ C("div", {
|
|
361
363
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -366,7 +368,7 @@ function D() {
|
|
|
366
368
|
/* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
|
|
367
369
|
/* @__PURE__ */ C("div", {
|
|
368
370
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
369
|
-
children: r(
|
|
371
|
+
children: r(N.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
370
372
|
}),
|
|
371
373
|
/* @__PURE__ */ C("div", {
|
|
372
374
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -377,7 +379,7 @@ function D() {
|
|
|
377
379
|
/* @__PURE__ */ C(x, { className: "mx-auto mb-2 h-6 w-6 text-accent-blue sm:h-8 sm:w-8" }),
|
|
378
380
|
/* @__PURE__ */ C("div", {
|
|
379
381
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
380
|
-
children:
|
|
382
|
+
children: N.activeCustomers
|
|
381
383
|
}),
|
|
382
384
|
/* @__PURE__ */ C("div", {
|
|
383
385
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
@@ -393,9 +395,9 @@ function D() {
|
|
|
393
395
|
children: "Customer Rating"
|
|
394
396
|
}), /* @__PURE__ */ w("div", {
|
|
395
397
|
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(
|
|
398
|
+
children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */ C(y, { className: t("h-4 w-4", n < Math.floor(N.customerRating) ? "fill-status-warning-text text-status-warning-text" : "fill-none text-text-secondary/40") }, n)), /* @__PURE__ */ C("span", {
|
|
397
399
|
className: "ml-1 text-sm font-medium text-text-primary",
|
|
398
|
-
children:
|
|
400
|
+
children: N.customerRating
|
|
399
401
|
})]
|
|
400
402
|
})] }), /* @__PURE__ */ w("div", {
|
|
401
403
|
className: "text-left sm:text-right",
|
|
@@ -404,7 +406,7 @@ function D() {
|
|
|
404
406
|
children: "Avg Order Value"
|
|
405
407
|
}), /* @__PURE__ */ C("p", {
|
|
406
408
|
className: "text-lg font-semibold text-text-primary",
|
|
407
|
-
children: r(
|
|
409
|
+
children: r(N.averageOrderValue, { minimumFractionDigits: 0 })
|
|
408
410
|
})]
|
|
409
411
|
})]
|
|
410
412
|
})
|
|
@@ -425,7 +427,7 @@ function D() {
|
|
|
425
427
|
children: "Investment Date"
|
|
426
428
|
}), /* @__PURE__ */ C("p", {
|
|
427
429
|
className: "font-medium text-text-primary",
|
|
428
|
-
children: i(
|
|
430
|
+
children: i(N.investmentDate, {
|
|
429
431
|
hour: void 0,
|
|
430
432
|
minute: void 0
|
|
431
433
|
})
|
|
@@ -435,21 +437,21 @@ function D() {
|
|
|
435
437
|
children: "Investment Type"
|
|
436
438
|
}), /* @__PURE__ */ C("p", {
|
|
437
439
|
className: "font-medium text-text-primary",
|
|
438
|
-
children:
|
|
440
|
+
children: N.investmentType
|
|
439
441
|
})] }),
|
|
440
442
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
441
443
|
className: "text-sm text-text-secondary",
|
|
442
444
|
children: "Initial Valuation"
|
|
443
445
|
}), /* @__PURE__ */ C("p", {
|
|
444
446
|
className: "font-medium text-text-primary",
|
|
445
|
-
children: r(
|
|
447
|
+
children: r(N.valuationAtInvestment, { minimumFractionDigits: 0 })
|
|
446
448
|
})] }),
|
|
447
449
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
448
450
|
className: "text-sm text-text-secondary",
|
|
449
451
|
children: "Current Valuation"
|
|
450
452
|
}), /* @__PURE__ */ C("p", {
|
|
451
453
|
className: "text-lg font-medium text-text-primary",
|
|
452
|
-
children: r(
|
|
454
|
+
children: r(N.currentValuation, { minimumFractionDigits: 0 })
|
|
453
455
|
})] }),
|
|
454
456
|
/* @__PURE__ */ C("div", {
|
|
455
457
|
className: "border-t border-border-subtle pt-4",
|
|
@@ -459,8 +461,8 @@ function D() {
|
|
|
459
461
|
className: "text-sm text-text-secondary",
|
|
460
462
|
children: "Your Returns"
|
|
461
463
|
}), /* @__PURE__ */ w("span", {
|
|
462
|
-
className: t("text-lg font-semibold",
|
|
463
|
-
children: [
|
|
464
|
+
className: t("text-lg font-semibold", I > 0 ? "text-status-success-text" : "text-status-error-text"),
|
|
465
|
+
children: [I > 0 ? "+" : "", r(I, { minimumFractionDigits: 0 })]
|
|
464
466
|
})]
|
|
465
467
|
})
|
|
466
468
|
})
|
|
@@ -483,7 +485,7 @@ function D() {
|
|
|
483
485
|
className: "text-sm font-medium text-status-success-text",
|
|
484
486
|
children: [
|
|
485
487
|
"+",
|
|
486
|
-
|
|
488
|
+
N.revenueGrowth,
|
|
487
489
|
"%"
|
|
488
490
|
]
|
|
489
491
|
})]
|
|
@@ -491,7 +493,7 @@ function D() {
|
|
|
491
493
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
492
494
|
children: /* @__PURE__ */ C("div", {
|
|
493
495
|
className: "h-full rounded-full bg-status-success-bg-subtle",
|
|
494
|
-
style: { width: `${Math.min(
|
|
496
|
+
style: { width: `${Math.min(N.revenueGrowth, 100)}%` }
|
|
495
497
|
})
|
|
496
498
|
})] }),
|
|
497
499
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
@@ -501,13 +503,13 @@ function D() {
|
|
|
501
503
|
children: "Profit Margin"
|
|
502
504
|
}), /* @__PURE__ */ w("span", {
|
|
503
505
|
className: "text-sm font-medium text-text-primary",
|
|
504
|
-
children: [
|
|
506
|
+
children: [N.profitMargin, "%"]
|
|
505
507
|
})]
|
|
506
508
|
}), /* @__PURE__ */ C("div", {
|
|
507
509
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
508
510
|
children: /* @__PURE__ */ C("div", {
|
|
509
511
|
className: "h-full rounded-full bg-accent-blue-subtle",
|
|
510
|
-
style: { width: `${
|
|
512
|
+
style: { width: `${N.profitMargin}%` }
|
|
511
513
|
})
|
|
512
514
|
})] }),
|
|
513
515
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
@@ -519,7 +521,7 @@ function D() {
|
|
|
519
521
|
className: "text-sm font-medium text-status-success-text",
|
|
520
522
|
children: [
|
|
521
523
|
"+",
|
|
522
|
-
|
|
524
|
+
N.returnOnInvestment,
|
|
523
525
|
"%"
|
|
524
526
|
]
|
|
525
527
|
})]
|
|
@@ -527,7 +529,7 @@ function D() {
|
|
|
527
529
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
528
530
|
children: /* @__PURE__ */ C("div", {
|
|
529
531
|
className: "h-full rounded-full bg-status-success-bg-subtle",
|
|
530
|
-
style: { width: `${Math.min(
|
|
532
|
+
style: { width: `${Math.min(N.returnOnInvestment, 100)}%` }
|
|
531
533
|
})
|
|
532
534
|
})] }),
|
|
533
535
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
@@ -535,7 +537,7 @@ function D() {
|
|
|
535
537
|
children: "Expected Payback"
|
|
536
538
|
}), /* @__PURE__ */ C("p", {
|
|
537
539
|
className: "font-medium text-text-primary",
|
|
538
|
-
children:
|
|
540
|
+
children: N.paybackPeriod
|
|
539
541
|
})] })
|
|
540
542
|
]
|
|
541
543
|
})]
|
|
@@ -559,7 +561,7 @@ function D() {
|
|
|
559
561
|
children: "Monthly Revenue"
|
|
560
562
|
}), /* @__PURE__ */ C("p", {
|
|
561
563
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
562
|
-
children: r(
|
|
564
|
+
children: r(N.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
563
565
|
})]
|
|
564
566
|
}),
|
|
565
567
|
/* @__PURE__ */ w("div", {
|
|
@@ -571,7 +573,7 @@ function D() {
|
|
|
571
573
|
className: "mt-1 text-lg font-bold text-status-success-text",
|
|
572
574
|
children: [
|
|
573
575
|
"+",
|
|
574
|
-
|
|
576
|
+
N.revenueGrowth,
|
|
575
577
|
"%"
|
|
576
578
|
]
|
|
577
579
|
})]
|
|
@@ -583,7 +585,7 @@ function D() {
|
|
|
583
585
|
children: "Profit Margin"
|
|
584
586
|
}), /* @__PURE__ */ w("p", {
|
|
585
587
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
586
|
-
children: [
|
|
588
|
+
children: [N.profitMargin, "%"]
|
|
587
589
|
})]
|
|
588
590
|
}),
|
|
589
591
|
/* @__PURE__ */ w("div", {
|
|
@@ -593,7 +595,7 @@ function D() {
|
|
|
593
595
|
children: "Avg Order Value"
|
|
594
596
|
}), /* @__PURE__ */ C("p", {
|
|
595
597
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
596
|
-
children: r(
|
|
598
|
+
children: r(N.averageOrderValue, { minimumFractionDigits: 0 })
|
|
597
599
|
})]
|
|
598
600
|
})
|
|
599
601
|
]
|
|
@@ -623,32 +625,32 @@ function D() {
|
|
|
623
625
|
children: [
|
|
624
626
|
{
|
|
625
627
|
metric: "Monthly Revenue",
|
|
626
|
-
value: r(
|
|
628
|
+
value: r(N.monthlyRevenue, { minimumFractionDigits: 0 }),
|
|
627
629
|
trend: "+18.5%"
|
|
628
630
|
},
|
|
629
631
|
{
|
|
630
632
|
metric: "Monthly Orders",
|
|
631
|
-
value: String(
|
|
633
|
+
value: String(N.monthlyOrders),
|
|
632
634
|
trend: "+12%"
|
|
633
635
|
},
|
|
634
636
|
{
|
|
635
637
|
metric: "Average Order Value",
|
|
636
|
-
value: r(
|
|
638
|
+
value: r(N.averageOrderValue, { minimumFractionDigits: 0 }),
|
|
637
639
|
trend: "+5.8%"
|
|
638
640
|
},
|
|
639
641
|
{
|
|
640
642
|
metric: "Active Customers",
|
|
641
|
-
value: String(
|
|
643
|
+
value: String(N.activeCustomers),
|
|
642
644
|
trend: "+22%"
|
|
643
645
|
},
|
|
644
646
|
{
|
|
645
647
|
metric: "Profit Margin",
|
|
646
|
-
value: `${
|
|
648
|
+
value: `${N.profitMargin}%`,
|
|
647
649
|
trend: "+2.1%"
|
|
648
650
|
},
|
|
649
651
|
{
|
|
650
652
|
metric: "Return on Investment",
|
|
651
|
-
value: `${
|
|
653
|
+
value: `${N.returnOnInvestment}%`,
|
|
652
654
|
trend: "+8.5%"
|
|
653
655
|
}
|
|
654
656
|
].map((e) => /* @__PURE__ */ w("tr", {
|
|
@@ -680,8 +682,8 @@ function D() {
|
|
|
680
682
|
children: "Investment Documents"
|
|
681
683
|
}), /* @__PURE__ */ C("div", {
|
|
682
684
|
className: "space-y-4",
|
|
683
|
-
children:
|
|
684
|
-
let r =
|
|
685
|
+
children: N.documents.map((e, n) => {
|
|
686
|
+
let r = D(e.status), a = r.Icon;
|
|
685
687
|
return /* @__PURE__ */ w("div", {
|
|
686
688
|
className: "flex flex-col gap-4 rounded-lg bg-bg-sunken/50 p-4 sm:flex-row sm:items-center sm:justify-between",
|
|
687
689
|
children: [/* @__PURE__ */ w("div", {
|
|
@@ -739,7 +741,7 @@ function D() {
|
|
|
739
741
|
children: "Recent Updates"
|
|
740
742
|
}), /* @__PURE__ */ C("div", {
|
|
741
743
|
className: "space-y-4",
|
|
742
|
-
children:
|
|
744
|
+
children: N.recentUpdates.map((e, t) => /* @__PURE__ */ w("div", {
|
|
743
745
|
className: "flex gap-3 rounded-lg bg-bg-sunken/50 p-4 sm:gap-4",
|
|
744
746
|
children: [/* @__PURE__ */ C("div", {
|
|
745
747
|
className: "flex-shrink-0",
|
|
@@ -768,7 +770,7 @@ function D() {
|
|
|
768
770
|
})
|
|
769
771
|
]
|
|
770
772
|
}),
|
|
771
|
-
|
|
773
|
+
j && /* @__PURE__ */ C("div", {
|
|
772
774
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
773
775
|
children: /* @__PURE__ */ w("div", {
|
|
774
776
|
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
|
|
@@ -777,7 +779,7 @@ function D() {
|
|
|
777
779
|
className: "border-b border-border-subtle p-4 sm:p-6",
|
|
778
780
|
children: [/* @__PURE__ */ C("button", {
|
|
779
781
|
type: "button",
|
|
780
|
-
onClick: () =>
|
|
782
|
+
onClick: () => M(!1),
|
|
781
783
|
className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
|
|
782
784
|
children: /* @__PURE__ */ C(S, { className: "h-5 w-5" })
|
|
783
785
|
}), /* @__PURE__ */ C("h2", {
|
|
@@ -792,7 +794,7 @@ function D() {
|
|
|
792
794
|
className: "text-sm text-text-secondary sm:text-base",
|
|
793
795
|
children: [
|
|
794
796
|
"Choose an action for your investment in ",
|
|
795
|
-
|
|
797
|
+
N.cartName,
|
|
796
798
|
":"
|
|
797
799
|
]
|
|
798
800
|
}),
|
|
@@ -832,7 +834,7 @@ function D() {
|
|
|
832
834
|
className: "flex justify-end gap-3 border-t border-border-subtle p-4 sm:p-6",
|
|
833
835
|
children: /* @__PURE__ */ C("button", {
|
|
834
836
|
type: "button",
|
|
835
|
-
onClick: () =>
|
|
837
|
+
onClick: () => M(!1),
|
|
836
838
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
837
839
|
children: "Cancel"
|
|
838
840
|
})
|
|
@@ -844,6 +846,6 @@ function D() {
|
|
|
844
846
|
});
|
|
845
847
|
}
|
|
846
848
|
//#endregion
|
|
847
|
-
export {
|
|
849
|
+
export { O as InvestmentDetailsPage };
|
|
848
850
|
|
|
849
851
|
//# sourceMappingURL=InvestmentDetailsPage.js.map
|