@burdenoff/microfe-adaptercloud 2026.624.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/EmptyState.js +17 -21
- package/dist/adaptercloud/components/EmptyState.js.map +1 -1
- package/dist/adaptercloud/components/InvestmentCard.js +25 -23
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -1
- package/dist/adaptercloud/components/MetricsCard.js +18 -12
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -1
- package/dist/adaptercloud/components/PageLayout.js +45 -19
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/components/RatingDisplay.js +3 -3
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -1
- package/dist/adaptercloud/components/StatusBadge.js +36 -16
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +244 -231
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +121 -113
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +102 -76
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +70 -65
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +108 -103
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +61 -59
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +119 -105
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +165 -160
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +174 -169
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +103 -97
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +186 -172
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +109 -81
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +111 -109
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +127 -124
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +310 -316
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +251 -257
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +142 -148
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +287 -283
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +120 -114
- 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 +83 -80
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +120 -117
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +231 -226
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +97 -95
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +418 -389
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +134 -132
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +108 -102
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +62 -59
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +117 -111
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +71 -68
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +97 -81
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +83 -80
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +82 -66
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +93 -91
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +100 -97
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +83 -81
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +344 -311
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +43 -40
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +59 -57
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +394 -392
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +354 -324
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +122 -97
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +107 -104
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +109 -107
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +94 -90
- 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,20 +78,20 @@ var T = {
|
|
|
77
78
|
}
|
|
78
79
|
]
|
|
79
80
|
};
|
|
80
|
-
function
|
|
81
|
+
function D(e) {
|
|
81
82
|
switch (e) {
|
|
82
83
|
case "verified": return {
|
|
83
|
-
color: "text-
|
|
84
|
+
color: "text-status-success-text",
|
|
84
85
|
Icon: f,
|
|
85
86
|
label: "Verified"
|
|
86
87
|
};
|
|
87
88
|
case "pending": return {
|
|
88
|
-
color: "text-
|
|
89
|
+
color: "text-status-warning-text",
|
|
89
90
|
Icon: p,
|
|
90
91
|
label: "Pending"
|
|
91
92
|
};
|
|
92
93
|
case "rejected": return {
|
|
93
|
-
color: "text-
|
|
94
|
+
color: "text-status-error-text",
|
|
94
95
|
Icon: c,
|
|
95
96
|
label: "Rejected"
|
|
96
97
|
};
|
|
@@ -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,20 +146,21 @@ 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",
|
|
152
|
-
children: [/* @__PURE__ */ C(c, { className: "mb-4 h-12 w-12 text-
|
|
153
|
+
children: [/* @__PURE__ */ C(c, { className: "mb-4 h-12 w-12 text-status-error-text" }), /* @__PURE__ */ C("p", {
|
|
153
154
|
className: "text-text-primary",
|
|
154
155
|
children: "Investment not found"
|
|
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,16 +211,16 @@ 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", {
|
|
216
|
-
className: "rounded-lg border border-border-
|
|
218
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center bg-gloss-card shadow-pop",
|
|
217
219
|
children: [
|
|
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",
|
|
@@ -227,14 +229,14 @@ function D() {
|
|
|
227
229
|
]
|
|
228
230
|
}),
|
|
229
231
|
/* @__PURE__ */ w("div", {
|
|
230
|
-
className: "rounded-lg border border-border-
|
|
232
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center bg-gloss-card shadow-pop",
|
|
231
233
|
children: [
|
|
232
|
-
/* @__PURE__ */ C(b, { className: "mx-auto mb-2 h-6 w-6 text-
|
|
234
|
+
/* @__PURE__ */ C(b, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
|
|
233
235
|
/* @__PURE__ */ w("div", {
|
|
234
|
-
className: "text-lg font-bold text-
|
|
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
|
}),
|
|
@@ -245,12 +247,12 @@ function D() {
|
|
|
245
247
|
]
|
|
246
248
|
}),
|
|
247
249
|
/* @__PURE__ */ w("div", {
|
|
248
|
-
className: "rounded-lg border border-border-
|
|
250
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center bg-gloss-card shadow-pop",
|
|
249
251
|
children: [
|
|
250
|
-
/* @__PURE__ */ C(v, { className: "mx-auto mb-2 h-6 w-6 text-blue
|
|
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",
|
|
@@ -259,12 +261,12 @@ function D() {
|
|
|
259
261
|
]
|
|
260
262
|
}),
|
|
261
263
|
/* @__PURE__ */ w("div", {
|
|
262
|
-
className: "rounded-lg border border-border-
|
|
264
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center bg-gloss-card shadow-pop",
|
|
263
265
|
children: [
|
|
264
|
-
/* @__PURE__ */ C(d, { className: "mx-auto mb-2 h-6 w-6 text-purple
|
|
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" }),
|
|
@@ -301,7 +303,7 @@ function D() {
|
|
|
301
303
|
children: [/* @__PURE__ */ w("div", {
|
|
302
304
|
className: "space-y-6 lg:col-span-2",
|
|
303
305
|
children: [/* @__PURE__ */ w("div", {
|
|
304
|
-
className: "rounded-lg border border-border-
|
|
306
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
305
307
|
children: [/* @__PURE__ */ C("h2", {
|
|
306
308
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
307
309
|
children: "Business Information"
|
|
@@ -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
|
})
|
|
@@ -342,7 +344,7 @@ function D() {
|
|
|
342
344
|
]
|
|
343
345
|
})]
|
|
344
346
|
}), /* @__PURE__ */ w("div", {
|
|
345
|
-
className: "rounded-lg border border-border-
|
|
347
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
346
348
|
children: [
|
|
347
349
|
/* @__PURE__ */ C("h2", {
|
|
348
350
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
@@ -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",
|
|
@@ -363,10 +365,10 @@ function D() {
|
|
|
363
365
|
})
|
|
364
366
|
] }),
|
|
365
367
|
/* @__PURE__ */ w("div", { children: [
|
|
366
|
-
/* @__PURE__ */ C(g, { className: "mx-auto mb-2 h-6 w-6 text-
|
|
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",
|
|
@@ -374,10 +376,10 @@ function D() {
|
|
|
374
376
|
})
|
|
375
377
|
] }),
|
|
376
378
|
/* @__PURE__ */ w("div", { children: [
|
|
377
|
-
/* @__PURE__ */ C(x, { className: "mx-auto mb-2 h-6 w-6 text-blue
|
|
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
|
})
|
|
@@ -413,7 +415,7 @@ function D() {
|
|
|
413
415
|
}), /* @__PURE__ */ w("div", {
|
|
414
416
|
className: "space-y-6",
|
|
415
417
|
children: [/* @__PURE__ */ w("div", {
|
|
416
|
-
className: "rounded-lg border border-border-
|
|
418
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
417
419
|
children: [/* @__PURE__ */ C("h2", {
|
|
418
420
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
419
421
|
children: "Investment Summary"
|
|
@@ -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,15 +461,15 @@ 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
|
})
|
|
467
469
|
]
|
|
468
470
|
})]
|
|
469
471
|
}), /* @__PURE__ */ w("div", {
|
|
470
|
-
className: "rounded-lg border border-border-
|
|
472
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
471
473
|
children: [/* @__PURE__ */ C("h2", {
|
|
472
474
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
473
475
|
children: "Growth Indicators"
|
|
@@ -480,18 +482,18 @@ function D() {
|
|
|
480
482
|
className: "text-sm text-text-secondary",
|
|
481
483
|
children: "Revenue Growth"
|
|
482
484
|
}), /* @__PURE__ */ w("span", {
|
|
483
|
-
className: "text-sm font-medium text-
|
|
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
|
})]
|
|
490
492
|
}), /* @__PURE__ */ C("div", {
|
|
491
493
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
492
494
|
children: /* @__PURE__ */ C("div", {
|
|
493
|
-
className: "h-full rounded-full bg-
|
|
494
|
-
style: { width: `${Math.min(
|
|
495
|
+
className: "h-full rounded-full bg-status-success-bg-subtle",
|
|
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
|
-
className: "h-full rounded-full bg-blue-
|
|
510
|
-
style: { width: `${
|
|
511
|
+
className: "h-full rounded-full bg-accent-blue-subtle",
|
|
512
|
+
style: { width: `${N.profitMargin}%` }
|
|
511
513
|
})
|
|
512
514
|
})] }),
|
|
513
515
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
@@ -516,18 +518,18 @@ function D() {
|
|
|
516
518
|
className: "text-sm text-text-secondary",
|
|
517
519
|
children: "ROI"
|
|
518
520
|
}), /* @__PURE__ */ w("span", {
|
|
519
|
-
className: "text-sm font-medium text-
|
|
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
|
})]
|
|
526
528
|
}), /* @__PURE__ */ C("div", {
|
|
527
529
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
528
530
|
children: /* @__PURE__ */ C("div", {
|
|
529
|
-
className: "h-full rounded-full bg-
|
|
530
|
-
style: { width: `${Math.min(
|
|
531
|
+
className: "h-full rounded-full bg-status-success-bg-subtle",
|
|
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
|
})]
|
|
@@ -543,7 +545,7 @@ function D() {
|
|
|
543
545
|
})]
|
|
544
546
|
}),
|
|
545
547
|
p === "financials" && /* @__PURE__ */ w("div", {
|
|
546
|
-
className: "rounded-lg border border-border-
|
|
548
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
547
549
|
children: [
|
|
548
550
|
/* @__PURE__ */ C("h2", {
|
|
549
551
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
@@ -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", {
|
|
@@ -568,10 +570,10 @@ function D() {
|
|
|
568
570
|
className: "text-xs text-text-secondary",
|
|
569
571
|
children: "Revenue Growth"
|
|
570
572
|
}), /* @__PURE__ */ w("p", {
|
|
571
|
-
className: "mt-1 text-lg font-bold text-
|
|
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", {
|
|
@@ -663,7 +665,7 @@ function D() {
|
|
|
663
665
|
children: e.value
|
|
664
666
|
}),
|
|
665
667
|
/* @__PURE__ */ C("td", {
|
|
666
|
-
className: "px-4 py-3 text-right text-sm font-medium text-
|
|
668
|
+
className: "px-4 py-3 text-right text-sm font-medium text-status-success-text",
|
|
667
669
|
children: e.trend
|
|
668
670
|
})
|
|
669
671
|
]
|
|
@@ -674,14 +676,14 @@ function D() {
|
|
|
674
676
|
]
|
|
675
677
|
}),
|
|
676
678
|
p === "documents" && /* @__PURE__ */ w("div", {
|
|
677
|
-
className: "rounded-lg border border-border-
|
|
679
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
678
680
|
children: [/* @__PURE__ */ C("h2", {
|
|
679
681
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
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", {
|
|
@@ -733,13 +735,13 @@ function D() {
|
|
|
733
735
|
})]
|
|
734
736
|
}),
|
|
735
737
|
p === "updates" && /* @__PURE__ */ w("div", {
|
|
736
|
-
className: "rounded-lg border border-border-
|
|
738
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
737
739
|
children: [/* @__PURE__ */ C("h2", {
|
|
738
740
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
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
|
}),
|
|
@@ -820,9 +822,9 @@ function D() {
|
|
|
820
822
|
]
|
|
821
823
|
}),
|
|
822
824
|
/* @__PURE__ */ C("div", {
|
|
823
|
-
className: "rounded-lg border border-
|
|
825
|
+
className: "rounded-lg border border-status-warning-border/30 bg-status-warning-bg-subtle/10 p-3 sm:p-4",
|
|
824
826
|
children: /* @__PURE__ */ C("p", {
|
|
825
|
-
className: "text-xs text-
|
|
827
|
+
className: "text-xs text-status-warning-text sm:text-sm",
|
|
826
828
|
children: "Any changes to your investment require approval from the business owner and may be subject to terms in your investment agreement."
|
|
827
829
|
})
|
|
828
830
|
})
|
|
@@ -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
|