@burdenoff/microfe-coolandlovely 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/coolandlovely/pages/HomePage.js +263 -258
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +67 -61
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +79 -45
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +39 -33
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +227 -222
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +65 -60
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +235 -230
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/CartManagementPage.js +268 -263
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +268 -263
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +92 -84
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +257 -252
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +587 -548
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +171 -166
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +219 -211
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +671 -670
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +515 -514
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +244 -246
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +96 -96
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +50 -44
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/SettingsPage.js +745 -736
- package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +394 -357
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDetailPage.js +179 -176
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +215 -204
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +212 -215
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +438 -396
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +525 -488
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +522 -513
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/FavoritesPage.js +86 -76
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +118 -109
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +312 -275
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +82 -76
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +83 -73
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +61 -55
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +293 -255
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +238 -232
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +61 -55
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +356 -320
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +107 -101
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +170 -137
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +386 -381
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +359 -322
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +574 -537
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +81 -76
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +82 -77
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +78 -73
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { useCoolAndLovely as e } from "../../context/CoolAndLovelyContext.js";
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { EmptyState as r } from "../../components/EmptyState.js";
|
|
5
|
+
import { formatCurrency as i, formatDate as a } from "../../utils/formatters.js";
|
|
6
|
+
import { useEffect as o, useState as s } from "react";
|
|
7
|
+
import { Activity as c, AlertCircle as l, ArrowLeft as u, BarChart3 as d, Building2 as f, CheckCircle2 as p, Clock as m, Download as h, FileText as g, IndianRupee as _, Package as v, PieChart as y, Star as b, TrendingUp as x, Users as S, X as C } from "lucide-react";
|
|
8
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
9
|
+
import { EmphasisPanel as E, NextSteps as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
|
|
8
10
|
//#region src/coolandlovely/pages/investor/InvestmentDetailsPage.tsx
|
|
9
|
-
var
|
|
11
|
+
var k = {
|
|
10
12
|
id: "INV-001",
|
|
11
13
|
cartName: "Dosa Express - Koramangala",
|
|
12
14
|
cartOwner: "Suresh Rao",
|
|
@@ -77,131 +79,135 @@ var T = {
|
|
|
77
79
|
}
|
|
78
80
|
]
|
|
79
81
|
};
|
|
80
|
-
function
|
|
82
|
+
function A(e) {
|
|
81
83
|
switch (e) {
|
|
82
84
|
case "verified": return {
|
|
83
85
|
color: "text-status-success-text",
|
|
84
|
-
Icon:
|
|
86
|
+
Icon: p,
|
|
85
87
|
label: "Verified"
|
|
86
88
|
};
|
|
87
89
|
case "pending": return {
|
|
88
90
|
color: "text-status-warning-text",
|
|
89
|
-
Icon:
|
|
91
|
+
Icon: m,
|
|
90
92
|
label: "Pending"
|
|
91
93
|
};
|
|
92
94
|
case "rejected": return {
|
|
93
95
|
color: "text-status-error-text",
|
|
94
|
-
Icon:
|
|
96
|
+
Icon: l,
|
|
95
97
|
label: "Rejected"
|
|
96
98
|
};
|
|
97
99
|
default: return {
|
|
98
100
|
color: "text-text-secondary",
|
|
99
|
-
Icon:
|
|
101
|
+
Icon: l,
|
|
100
102
|
label: e
|
|
101
103
|
};
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
|
-
function
|
|
105
|
-
let { navigateTo:
|
|
106
|
-
|
|
106
|
+
function j() {
|
|
107
|
+
let { navigateTo: l } = e(), [p, m] = s("overview"), [j, M] = s(!0), [N, P] = s(!1), [F, I] = s(null);
|
|
108
|
+
o(() => {
|
|
107
109
|
let e = setTimeout(() => {
|
|
108
|
-
|
|
110
|
+
I(k), M(!1);
|
|
109
111
|
}, 600);
|
|
110
112
|
return () => clearTimeout(e);
|
|
111
113
|
}, []);
|
|
112
|
-
let
|
|
114
|
+
let L = [
|
|
113
115
|
{
|
|
114
116
|
id: "overview",
|
|
115
117
|
label: "Overview",
|
|
116
|
-
Icon:
|
|
118
|
+
Icon: d
|
|
117
119
|
},
|
|
118
120
|
{
|
|
119
121
|
id: "financials",
|
|
120
122
|
label: "Financials",
|
|
121
|
-
Icon:
|
|
123
|
+
Icon: _
|
|
122
124
|
},
|
|
123
125
|
{
|
|
124
126
|
id: "documents",
|
|
125
127
|
label: "Documents",
|
|
126
|
-
Icon:
|
|
128
|
+
Icon: g
|
|
127
129
|
},
|
|
128
130
|
{
|
|
129
131
|
id: "updates",
|
|
130
132
|
label: "Updates",
|
|
131
|
-
Icon:
|
|
133
|
+
Icon: c
|
|
132
134
|
}
|
|
133
135
|
];
|
|
134
|
-
if (
|
|
136
|
+
if (j) return /* @__PURE__ */ w(n, {
|
|
135
137
|
title: "Investment Details",
|
|
136
138
|
description: "Loading...",
|
|
137
|
-
children: /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ w("div", {
|
|
138
140
|
className: "flex items-center justify-center py-20",
|
|
139
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ T("div", {
|
|
140
142
|
className: "text-center",
|
|
141
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ w("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-primary" }), /* @__PURE__ */ w("p", {
|
|
142
144
|
className: "text-sm text-text-secondary",
|
|
143
145
|
children: "Loading investment details..."
|
|
144
146
|
})]
|
|
145
147
|
})
|
|
146
148
|
})
|
|
147
149
|
});
|
|
148
|
-
if (!
|
|
150
|
+
if (!F) return /* @__PURE__ */ w(n, {
|
|
149
151
|
title: "Investment Not Found",
|
|
150
|
-
children: /* @__PURE__ */ w(
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
children: /* @__PURE__ */ w(r, {
|
|
153
|
+
illustration: "empty-search",
|
|
154
|
+
title: "Investment not found",
|
|
155
|
+
description: "We couldn't find this investment. It may have been removed or the link is incorrect.",
|
|
156
|
+
action: /* @__PURE__ */ w("button", {
|
|
157
|
+
type: "button",
|
|
158
|
+
onClick: () => l("/investor/portfolio"),
|
|
159
|
+
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",
|
|
160
|
+
children: "Back to Portfolio"
|
|
161
|
+
})
|
|
156
162
|
})
|
|
157
163
|
});
|
|
158
|
-
let
|
|
159
|
-
return /* @__PURE__ */
|
|
160
|
-
title:
|
|
164
|
+
let R = F.currentValuation * (F.equityPercentage / 100) - F.investmentAmount, z = R / F.investmentAmount * 100;
|
|
165
|
+
return /* @__PURE__ */ T(n, {
|
|
166
|
+
title: F.cartName,
|
|
161
167
|
description: "Investment Details & Performance",
|
|
162
|
-
actions: /* @__PURE__ */
|
|
168
|
+
actions: /* @__PURE__ */ T("div", {
|
|
163
169
|
className: "flex items-center gap-2",
|
|
164
170
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ T("button", {
|
|
166
172
|
type: "button",
|
|
167
|
-
onClick: () =>
|
|
173
|
+
onClick: () => l("/investor/portfolio"),
|
|
168
174
|
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
169
175
|
children: [
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ w(u, { className: "h-4 w-4" }),
|
|
177
|
+
/* @__PURE__ */ w("span", {
|
|
172
178
|
className: "hidden sm:inline",
|
|
173
179
|
children: "Back to Portfolio"
|
|
174
180
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ w("span", {
|
|
176
182
|
className: "sm:hidden",
|
|
177
183
|
children: "Back"
|
|
178
184
|
})
|
|
179
185
|
]
|
|
180
186
|
}),
|
|
181
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ T("button", {
|
|
182
188
|
type: "button",
|
|
183
189
|
onClick: () => alert("Report export initiated"),
|
|
184
190
|
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
185
191
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ w(h, { className: "h-4 w-4" }),
|
|
193
|
+
/* @__PURE__ */ w("span", {
|
|
188
194
|
className: "hidden sm:inline",
|
|
189
195
|
children: "Export Report"
|
|
190
196
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ w("span", {
|
|
192
198
|
className: "sm:hidden",
|
|
193
199
|
children: "Export"
|
|
194
200
|
})
|
|
195
201
|
]
|
|
196
202
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ T("button", {
|
|
198
204
|
type: "button",
|
|
199
|
-
onClick: () =>
|
|
205
|
+
onClick: () => P(!0),
|
|
200
206
|
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
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ w("span", {
|
|
202
208
|
className: "hidden sm:inline",
|
|
203
209
|
children: "Manage Investment"
|
|
204
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ w("span", {
|
|
205
211
|
className: "sm:hidden",
|
|
206
212
|
children: "Manage"
|
|
207
213
|
})]
|
|
@@ -209,64 +215,96 @@ function D() {
|
|
|
209
215
|
]
|
|
210
216
|
}),
|
|
211
217
|
children: [
|
|
212
|
-
/* @__PURE__ */ w(
|
|
213
|
-
className: "
|
|
218
|
+
/* @__PURE__ */ w(O, {
|
|
219
|
+
className: "mb-6",
|
|
220
|
+
icon: /* @__PURE__ */ w(d, { className: "h-4 w-4" }),
|
|
221
|
+
children: "A deep dive into one of your investments: how much you put in, your equity stake, current valuation and returns, plus the business's growth, documents and risk profile. Use it to decide whether to top up, hold, or manage your stake."
|
|
222
|
+
}),
|
|
223
|
+
/* @__PURE__ */ w(D, {
|
|
224
|
+
className: "mb-6",
|
|
225
|
+
storageKey: "coolandlovely-investment-details",
|
|
226
|
+
steps: [
|
|
227
|
+
{
|
|
228
|
+
id: "manage",
|
|
229
|
+
label: "Manage this investment",
|
|
230
|
+
description: "Top up, withdraw returns, or adjust your position.",
|
|
231
|
+
icon: /* @__PURE__ */ w(c, { className: "h-4 w-4" }),
|
|
232
|
+
onClick: () => P(!0)
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: "documents",
|
|
236
|
+
label: "Review the documents",
|
|
237
|
+
description: "Check agreements and reports filed for this business.",
|
|
238
|
+
icon: /* @__PURE__ */ w(g, { className: "h-4 w-4" }),
|
|
239
|
+
onClick: () => m("documents")
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: "portfolio",
|
|
243
|
+
label: "Back to your portfolio",
|
|
244
|
+
description: "Compare this holding against the rest of your portfolio.",
|
|
245
|
+
icon: /* @__PURE__ */ w(y, { className: "h-4 w-4" }),
|
|
246
|
+
onClick: () => l("/investor/portfolio")
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ T(E, {
|
|
251
|
+
className: "grid grid-cols-2 gap-4 lg:grid-cols-4 p-4",
|
|
214
252
|
children: [
|
|
215
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ T("div", {
|
|
216
254
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center bg-gloss-card shadow-pop",
|
|
217
255
|
children: [
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ w(_, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
|
|
257
|
+
/* @__PURE__ */ w("div", {
|
|
220
258
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
221
|
-
children:
|
|
259
|
+
children: i(F.investmentAmount, { minimumFractionDigits: 0 })
|
|
222
260
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ w("div", {
|
|
224
262
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
225
263
|
children: "Your Investment"
|
|
226
264
|
})
|
|
227
265
|
]
|
|
228
266
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ T("div", {
|
|
230
268
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center bg-gloss-card shadow-pop",
|
|
231
269
|
children: [
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ w(x, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
|
|
271
|
+
/* @__PURE__ */ T("div", {
|
|
234
272
|
className: "text-lg font-bold text-status-success-text sm:text-2xl",
|
|
235
273
|
children: [
|
|
236
|
-
|
|
237
|
-
|
|
274
|
+
z > 0 ? "+" : "",
|
|
275
|
+
z.toFixed(1),
|
|
238
276
|
"%"
|
|
239
277
|
]
|
|
240
278
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ w("div", {
|
|
242
280
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
243
281
|
children: "Returns"
|
|
244
282
|
})
|
|
245
283
|
]
|
|
246
284
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ T("div", {
|
|
248
286
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center bg-gloss-card shadow-pop",
|
|
249
287
|
children: [
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ w(y, { className: "mx-auto mb-2 h-6 w-6 text-accent-blue sm:h-8 sm:w-8" }),
|
|
289
|
+
/* @__PURE__ */ T("div", {
|
|
252
290
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
253
|
-
children: [
|
|
291
|
+
children: [F.equityPercentage, "%"]
|
|
254
292
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ w("div", {
|
|
256
294
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
257
295
|
children: "Equity Stake"
|
|
258
296
|
})
|
|
259
297
|
]
|
|
260
298
|
}),
|
|
261
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ T("div", {
|
|
262
300
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 text-center bg-gloss-card shadow-pop",
|
|
263
301
|
children: [
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ w(f, { className: "mx-auto mb-2 h-6 w-6 text-accent-purple sm:h-8 sm:w-8" }),
|
|
303
|
+
/* @__PURE__ */ w("div", {
|
|
266
304
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
267
|
-
children:
|
|
305
|
+
children: i(F.currentValuation * (F.equityPercentage / 100), { minimumFractionDigits: 0 })
|
|
268
306
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ w("div", {
|
|
270
308
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
271
309
|
children: "Current Value"
|
|
272
310
|
})
|
|
@@ -274,395 +312,395 @@ function D() {
|
|
|
274
312
|
})
|
|
275
313
|
]
|
|
276
314
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ w("div", {
|
|
278
316
|
className: "mt-6 flex gap-2 overflow-x-auto pb-2",
|
|
279
|
-
children:
|
|
317
|
+
children: L.map((e) => /* @__PURE__ */ T("button", {
|
|
280
318
|
type: "button",
|
|
281
|
-
onClick: () =>
|
|
319
|
+
onClick: () => m(e.id),
|
|
282
320
|
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
321
|
children: [
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ w(e.Icon, { className: "h-4 w-4 flex-shrink-0" }),
|
|
323
|
+
/* @__PURE__ */ w("span", {
|
|
286
324
|
className: "hidden sm:inline",
|
|
287
325
|
children: e.label
|
|
288
326
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ w("span", {
|
|
290
328
|
className: "sm:hidden",
|
|
291
329
|
children: e.label.split(" ")[0]
|
|
292
330
|
})
|
|
293
331
|
]
|
|
294
332
|
}, e.id))
|
|
295
333
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ T("div", {
|
|
297
335
|
className: "mt-6",
|
|
298
336
|
children: [
|
|
299
|
-
p === "overview" && /* @__PURE__ */
|
|
337
|
+
p === "overview" && /* @__PURE__ */ T("div", {
|
|
300
338
|
className: "grid gap-6 lg:grid-cols-3",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ T("div", {
|
|
302
340
|
className: "space-y-6 lg:col-span-2",
|
|
303
|
-
children: [/* @__PURE__ */
|
|
341
|
+
children: [/* @__PURE__ */ T("div", {
|
|
304
342
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
306
344
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
307
345
|
children: "Business Information"
|
|
308
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ T("div", {
|
|
309
347
|
className: "grid gap-4 sm:grid-cols-2 sm:gap-6",
|
|
310
348
|
children: [
|
|
311
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
312
350
|
className: "text-sm text-text-secondary",
|
|
313
351
|
children: "Owner"
|
|
314
|
-
}), /* @__PURE__ */
|
|
352
|
+
}), /* @__PURE__ */ w("p", {
|
|
315
353
|
className: "font-medium text-text-primary",
|
|
316
|
-
children:
|
|
354
|
+
children: F.cartOwner
|
|
317
355
|
})] }),
|
|
318
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
319
357
|
className: "text-sm text-text-secondary",
|
|
320
358
|
children: "Business Type"
|
|
321
|
-
}), /* @__PURE__ */
|
|
359
|
+
}), /* @__PURE__ */ w("p", {
|
|
322
360
|
className: "font-medium text-text-primary",
|
|
323
|
-
children:
|
|
361
|
+
children: F.businessType
|
|
324
362
|
})] }),
|
|
325
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
326
364
|
className: "text-sm text-text-secondary",
|
|
327
365
|
children: "Location"
|
|
328
|
-
}), /* @__PURE__ */
|
|
366
|
+
}), /* @__PURE__ */ w("p", {
|
|
329
367
|
className: "font-medium text-text-primary",
|
|
330
|
-
children:
|
|
368
|
+
children: F.location
|
|
331
369
|
})] }),
|
|
332
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
333
371
|
className: "text-sm text-text-secondary",
|
|
334
372
|
children: "Established"
|
|
335
|
-
}), /* @__PURE__ */
|
|
373
|
+
}), /* @__PURE__ */ w("p", {
|
|
336
374
|
className: "font-medium text-text-primary",
|
|
337
|
-
children:
|
|
375
|
+
children: a(F.establishedDate, {
|
|
338
376
|
hour: void 0,
|
|
339
377
|
minute: void 0
|
|
340
378
|
})
|
|
341
379
|
})] })
|
|
342
380
|
]
|
|
343
381
|
})]
|
|
344
|
-
}), /* @__PURE__ */
|
|
382
|
+
}), /* @__PURE__ */ T("div", {
|
|
345
383
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
346
384
|
children: [
|
|
347
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ w("h2", {
|
|
348
386
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
349
387
|
children: "Performance Metrics"
|
|
350
388
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ T("div", {
|
|
352
390
|
className: "grid grid-cols-1 gap-4 text-center sm:grid-cols-3 sm:gap-6",
|
|
353
391
|
children: [
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ T("div", { children: [
|
|
393
|
+
/* @__PURE__ */ w(v, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
|
|
394
|
+
/* @__PURE__ */ w("div", {
|
|
357
395
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
358
|
-
children:
|
|
396
|
+
children: F.monthlyOrders
|
|
359
397
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ w("div", {
|
|
361
399
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
362
400
|
children: "Monthly Orders"
|
|
363
401
|
})
|
|
364
402
|
] }),
|
|
365
|
-
/* @__PURE__ */
|
|
366
|
-
/* @__PURE__ */
|
|
367
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ T("div", { children: [
|
|
404
|
+
/* @__PURE__ */ w(_, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
|
|
405
|
+
/* @__PURE__ */ w("div", {
|
|
368
406
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
369
|
-
children:
|
|
407
|
+
children: i(F.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
370
408
|
}),
|
|
371
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ w("div", {
|
|
372
410
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
373
411
|
children: "Monthly Revenue"
|
|
374
412
|
})
|
|
375
413
|
] }),
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ T("div", { children: [
|
|
415
|
+
/* @__PURE__ */ w(S, { className: "mx-auto mb-2 h-6 w-6 text-accent-blue sm:h-8 sm:w-8" }),
|
|
416
|
+
/* @__PURE__ */ w("div", {
|
|
379
417
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
380
|
-
children:
|
|
418
|
+
children: F.activeCustomers
|
|
381
419
|
}),
|
|
382
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ w("div", {
|
|
383
421
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
384
422
|
children: "Active Customers"
|
|
385
423
|
})
|
|
386
424
|
] })
|
|
387
425
|
]
|
|
388
426
|
}),
|
|
389
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ T("div", {
|
|
390
428
|
className: "mt-4 flex flex-col items-start justify-between gap-4 border-t border-border-subtle pt-4 sm:mt-6 sm:flex-row sm:items-center sm:pt-6",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
429
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
392
430
|
className: "text-sm text-text-secondary",
|
|
393
431
|
children: "Customer Rating"
|
|
394
|
-
}), /* @__PURE__ */
|
|
432
|
+
}), /* @__PURE__ */ T("div", {
|
|
395
433
|
className: "mt-1 flex items-center gap-1",
|
|
396
|
-
children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */
|
|
434
|
+
children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */ w(b, { className: t("h-4 w-4", n < Math.floor(F.customerRating) ? "fill-status-warning-text text-status-warning-text" : "fill-none text-text-secondary/40") }, n)), /* @__PURE__ */ w("span", {
|
|
397
435
|
className: "ml-1 text-sm font-medium text-text-primary",
|
|
398
|
-
children:
|
|
436
|
+
children: F.customerRating
|
|
399
437
|
})]
|
|
400
|
-
})] }), /* @__PURE__ */
|
|
438
|
+
})] }), /* @__PURE__ */ T("div", {
|
|
401
439
|
className: "text-left sm:text-right",
|
|
402
|
-
children: [/* @__PURE__ */
|
|
440
|
+
children: [/* @__PURE__ */ w("p", {
|
|
403
441
|
className: "text-sm text-text-secondary",
|
|
404
442
|
children: "Avg Order Value"
|
|
405
|
-
}), /* @__PURE__ */
|
|
443
|
+
}), /* @__PURE__ */ w("p", {
|
|
406
444
|
className: "text-lg font-semibold text-text-primary",
|
|
407
|
-
children:
|
|
445
|
+
children: i(F.averageOrderValue, { minimumFractionDigits: 0 })
|
|
408
446
|
})]
|
|
409
447
|
})]
|
|
410
448
|
})
|
|
411
449
|
]
|
|
412
450
|
})]
|
|
413
|
-
}), /* @__PURE__ */
|
|
451
|
+
}), /* @__PURE__ */ T("div", {
|
|
414
452
|
className: "space-y-6",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ T("div", {
|
|
416
454
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
417
|
-
children: [/* @__PURE__ */
|
|
455
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
418
456
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
419
457
|
children: "Investment Summary"
|
|
420
|
-
}), /* @__PURE__ */
|
|
458
|
+
}), /* @__PURE__ */ T("div", {
|
|
421
459
|
className: "space-y-4",
|
|
422
460
|
children: [
|
|
423
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
424
462
|
className: "text-sm text-text-secondary",
|
|
425
463
|
children: "Investment Date"
|
|
426
|
-
}), /* @__PURE__ */
|
|
464
|
+
}), /* @__PURE__ */ w("p", {
|
|
427
465
|
className: "font-medium text-text-primary",
|
|
428
|
-
children:
|
|
466
|
+
children: a(F.investmentDate, {
|
|
429
467
|
hour: void 0,
|
|
430
468
|
minute: void 0
|
|
431
469
|
})
|
|
432
470
|
})] }),
|
|
433
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
434
472
|
className: "text-sm text-text-secondary",
|
|
435
473
|
children: "Investment Type"
|
|
436
|
-
}), /* @__PURE__ */
|
|
474
|
+
}), /* @__PURE__ */ w("p", {
|
|
437
475
|
className: "font-medium text-text-primary",
|
|
438
|
-
children:
|
|
476
|
+
children: F.investmentType
|
|
439
477
|
})] }),
|
|
440
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
441
479
|
className: "text-sm text-text-secondary",
|
|
442
480
|
children: "Initial Valuation"
|
|
443
|
-
}), /* @__PURE__ */
|
|
481
|
+
}), /* @__PURE__ */ w("p", {
|
|
444
482
|
className: "font-medium text-text-primary",
|
|
445
|
-
children:
|
|
483
|
+
children: i(F.valuationAtInvestment, { minimumFractionDigits: 0 })
|
|
446
484
|
})] }),
|
|
447
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
448
486
|
className: "text-sm text-text-secondary",
|
|
449
487
|
children: "Current Valuation"
|
|
450
|
-
}), /* @__PURE__ */
|
|
488
|
+
}), /* @__PURE__ */ w("p", {
|
|
451
489
|
className: "text-lg font-medium text-text-primary",
|
|
452
|
-
children:
|
|
490
|
+
children: i(F.currentValuation, { minimumFractionDigits: 0 })
|
|
453
491
|
})] }),
|
|
454
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ w("div", {
|
|
455
493
|
className: "border-t border-border-subtle pt-4",
|
|
456
|
-
children: /* @__PURE__ */
|
|
494
|
+
children: /* @__PURE__ */ T("div", {
|
|
457
495
|
className: "flex items-center justify-between",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ w("span", {
|
|
459
497
|
className: "text-sm text-text-secondary",
|
|
460
498
|
children: "Your Returns"
|
|
461
|
-
}), /* @__PURE__ */
|
|
462
|
-
className: t("text-lg font-semibold",
|
|
463
|
-
children: [
|
|
499
|
+
}), /* @__PURE__ */ T("span", {
|
|
500
|
+
className: t("text-lg font-semibold", R > 0 ? "text-status-success-text" : "text-status-error-text"),
|
|
501
|
+
children: [R > 0 ? "+" : "", i(R, { minimumFractionDigits: 0 })]
|
|
464
502
|
})]
|
|
465
503
|
})
|
|
466
504
|
})
|
|
467
505
|
]
|
|
468
506
|
})]
|
|
469
|
-
}), /* @__PURE__ */
|
|
507
|
+
}), /* @__PURE__ */ T("div", {
|
|
470
508
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
471
|
-
children: [/* @__PURE__ */
|
|
509
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
472
510
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
473
511
|
children: "Growth Indicators"
|
|
474
|
-
}), /* @__PURE__ */
|
|
512
|
+
}), /* @__PURE__ */ T("div", {
|
|
475
513
|
className: "space-y-4",
|
|
476
514
|
children: [
|
|
477
|
-
/* @__PURE__ */
|
|
515
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
|
|
478
516
|
className: "mb-2 flex items-center justify-between",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
517
|
+
children: [/* @__PURE__ */ w("span", {
|
|
480
518
|
className: "text-sm text-text-secondary",
|
|
481
519
|
children: "Revenue Growth"
|
|
482
|
-
}), /* @__PURE__ */
|
|
520
|
+
}), /* @__PURE__ */ T("span", {
|
|
483
521
|
className: "text-sm font-medium text-status-success-text",
|
|
484
522
|
children: [
|
|
485
523
|
"+",
|
|
486
|
-
|
|
524
|
+
F.revenueGrowth,
|
|
487
525
|
"%"
|
|
488
526
|
]
|
|
489
527
|
})]
|
|
490
|
-
}), /* @__PURE__ */
|
|
528
|
+
}), /* @__PURE__ */ w("div", {
|
|
491
529
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
492
|
-
children: /* @__PURE__ */
|
|
530
|
+
children: /* @__PURE__ */ w("div", {
|
|
493
531
|
className: "h-full rounded-full bg-status-success-bg-subtle",
|
|
494
|
-
style: { width: `${Math.min(
|
|
532
|
+
style: { width: `${Math.min(F.revenueGrowth, 100)}%` }
|
|
495
533
|
})
|
|
496
534
|
})] }),
|
|
497
|
-
/* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
|
|
498
536
|
className: "mb-2 flex items-center justify-between",
|
|
499
|
-
children: [/* @__PURE__ */
|
|
537
|
+
children: [/* @__PURE__ */ w("span", {
|
|
500
538
|
className: "text-sm text-text-secondary",
|
|
501
539
|
children: "Profit Margin"
|
|
502
|
-
}), /* @__PURE__ */
|
|
540
|
+
}), /* @__PURE__ */ T("span", {
|
|
503
541
|
className: "text-sm font-medium text-text-primary",
|
|
504
|
-
children: [
|
|
542
|
+
children: [F.profitMargin, "%"]
|
|
505
543
|
})]
|
|
506
|
-
}), /* @__PURE__ */
|
|
544
|
+
}), /* @__PURE__ */ w("div", {
|
|
507
545
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
508
|
-
children: /* @__PURE__ */
|
|
546
|
+
children: /* @__PURE__ */ w("div", {
|
|
509
547
|
className: "h-full rounded-full bg-accent-blue-subtle",
|
|
510
|
-
style: { width: `${
|
|
548
|
+
style: { width: `${F.profitMargin}%` }
|
|
511
549
|
})
|
|
512
550
|
})] }),
|
|
513
|
-
/* @__PURE__ */
|
|
551
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
|
|
514
552
|
className: "mb-2 flex items-center justify-between",
|
|
515
|
-
children: [/* @__PURE__ */
|
|
553
|
+
children: [/* @__PURE__ */ w("span", {
|
|
516
554
|
className: "text-sm text-text-secondary",
|
|
517
555
|
children: "ROI"
|
|
518
|
-
}), /* @__PURE__ */
|
|
556
|
+
}), /* @__PURE__ */ T("span", {
|
|
519
557
|
className: "text-sm font-medium text-status-success-text",
|
|
520
558
|
children: [
|
|
521
559
|
"+",
|
|
522
|
-
|
|
560
|
+
F.returnOnInvestment,
|
|
523
561
|
"%"
|
|
524
562
|
]
|
|
525
563
|
})]
|
|
526
|
-
}), /* @__PURE__ */
|
|
564
|
+
}), /* @__PURE__ */ w("div", {
|
|
527
565
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
528
|
-
children: /* @__PURE__ */
|
|
566
|
+
children: /* @__PURE__ */ w("div", {
|
|
529
567
|
className: "h-full rounded-full bg-status-success-bg-subtle",
|
|
530
|
-
style: { width: `${Math.min(
|
|
568
|
+
style: { width: `${Math.min(F.returnOnInvestment, 100)}%` }
|
|
531
569
|
})
|
|
532
570
|
})] }),
|
|
533
|
-
/* @__PURE__ */
|
|
571
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
534
572
|
className: "text-sm text-text-secondary",
|
|
535
573
|
children: "Expected Payback"
|
|
536
|
-
}), /* @__PURE__ */
|
|
574
|
+
}), /* @__PURE__ */ w("p", {
|
|
537
575
|
className: "font-medium text-text-primary",
|
|
538
|
-
children:
|
|
576
|
+
children: F.paybackPeriod
|
|
539
577
|
})] })
|
|
540
578
|
]
|
|
541
579
|
})]
|
|
542
580
|
})]
|
|
543
581
|
})]
|
|
544
582
|
}),
|
|
545
|
-
p === "financials" && /* @__PURE__ */
|
|
583
|
+
p === "financials" && /* @__PURE__ */ T("div", {
|
|
546
584
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
547
585
|
children: [
|
|
548
|
-
/* @__PURE__ */
|
|
586
|
+
/* @__PURE__ */ w("h2", {
|
|
549
587
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
550
588
|
children: "Financial Performance"
|
|
551
589
|
}),
|
|
552
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ T("div", {
|
|
553
591
|
className: "mb-6 grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
554
592
|
children: [
|
|
555
|
-
/* @__PURE__ */
|
|
593
|
+
/* @__PURE__ */ T("div", {
|
|
556
594
|
className: "rounded-lg bg-bg-sunken/50 p-3",
|
|
557
|
-
children: [/* @__PURE__ */
|
|
595
|
+
children: [/* @__PURE__ */ w("p", {
|
|
558
596
|
className: "text-xs text-text-secondary",
|
|
559
597
|
children: "Monthly Revenue"
|
|
560
|
-
}), /* @__PURE__ */
|
|
598
|
+
}), /* @__PURE__ */ w("p", {
|
|
561
599
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
562
|
-
children:
|
|
600
|
+
children: i(F.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
563
601
|
})]
|
|
564
602
|
}),
|
|
565
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ T("div", {
|
|
566
604
|
className: "rounded-lg bg-bg-sunken/50 p-3",
|
|
567
|
-
children: [/* @__PURE__ */
|
|
605
|
+
children: [/* @__PURE__ */ w("p", {
|
|
568
606
|
className: "text-xs text-text-secondary",
|
|
569
607
|
children: "Revenue Growth"
|
|
570
|
-
}), /* @__PURE__ */
|
|
608
|
+
}), /* @__PURE__ */ T("p", {
|
|
571
609
|
className: "mt-1 text-lg font-bold text-status-success-text",
|
|
572
610
|
children: [
|
|
573
611
|
"+",
|
|
574
|
-
|
|
612
|
+
F.revenueGrowth,
|
|
575
613
|
"%"
|
|
576
614
|
]
|
|
577
615
|
})]
|
|
578
616
|
}),
|
|
579
|
-
/* @__PURE__ */
|
|
617
|
+
/* @__PURE__ */ T("div", {
|
|
580
618
|
className: "rounded-lg bg-bg-sunken/50 p-3",
|
|
581
|
-
children: [/* @__PURE__ */
|
|
619
|
+
children: [/* @__PURE__ */ w("p", {
|
|
582
620
|
className: "text-xs text-text-secondary",
|
|
583
621
|
children: "Profit Margin"
|
|
584
|
-
}), /* @__PURE__ */
|
|
622
|
+
}), /* @__PURE__ */ T("p", {
|
|
585
623
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
586
|
-
children: [
|
|
624
|
+
children: [F.profitMargin, "%"]
|
|
587
625
|
})]
|
|
588
626
|
}),
|
|
589
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ T("div", {
|
|
590
628
|
className: "rounded-lg bg-bg-sunken/50 p-3",
|
|
591
|
-
children: [/* @__PURE__ */
|
|
629
|
+
children: [/* @__PURE__ */ w("p", {
|
|
592
630
|
className: "text-xs text-text-secondary",
|
|
593
631
|
children: "Avg Order Value"
|
|
594
|
-
}), /* @__PURE__ */
|
|
632
|
+
}), /* @__PURE__ */ w("p", {
|
|
595
633
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
596
|
-
children:
|
|
634
|
+
children: i(F.averageOrderValue, { minimumFractionDigits: 0 })
|
|
597
635
|
})]
|
|
598
636
|
})
|
|
599
637
|
]
|
|
600
638
|
}),
|
|
601
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ w("div", {
|
|
602
640
|
className: "overflow-hidden rounded-lg border border-border-subtle",
|
|
603
|
-
children: /* @__PURE__ */
|
|
641
|
+
children: /* @__PURE__ */ T("table", {
|
|
604
642
|
className: "w-full",
|
|
605
|
-
children: [/* @__PURE__ */
|
|
643
|
+
children: [/* @__PURE__ */ w("thead", { children: /* @__PURE__ */ T("tr", {
|
|
606
644
|
className: "bg-bg-sunken/50",
|
|
607
645
|
children: [
|
|
608
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ w("th", {
|
|
609
647
|
className: "px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-text-secondary",
|
|
610
648
|
children: "Metric"
|
|
611
649
|
}),
|
|
612
|
-
/* @__PURE__ */
|
|
650
|
+
/* @__PURE__ */ w("th", {
|
|
613
651
|
className: "px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-text-secondary",
|
|
614
652
|
children: "Value"
|
|
615
653
|
}),
|
|
616
|
-
/* @__PURE__ */
|
|
654
|
+
/* @__PURE__ */ w("th", {
|
|
617
655
|
className: "px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-text-secondary",
|
|
618
656
|
children: "Trend"
|
|
619
657
|
})
|
|
620
658
|
]
|
|
621
|
-
}) }), /* @__PURE__ */
|
|
659
|
+
}) }), /* @__PURE__ */ w("tbody", {
|
|
622
660
|
className: "divide-y divide-border",
|
|
623
661
|
children: [
|
|
624
662
|
{
|
|
625
663
|
metric: "Monthly Revenue",
|
|
626
|
-
value:
|
|
664
|
+
value: i(F.monthlyRevenue, { minimumFractionDigits: 0 }),
|
|
627
665
|
trend: "+18.5%"
|
|
628
666
|
},
|
|
629
667
|
{
|
|
630
668
|
metric: "Monthly Orders",
|
|
631
|
-
value: String(
|
|
669
|
+
value: String(F.monthlyOrders),
|
|
632
670
|
trend: "+12%"
|
|
633
671
|
},
|
|
634
672
|
{
|
|
635
673
|
metric: "Average Order Value",
|
|
636
|
-
value:
|
|
674
|
+
value: i(F.averageOrderValue, { minimumFractionDigits: 0 }),
|
|
637
675
|
trend: "+5.8%"
|
|
638
676
|
},
|
|
639
677
|
{
|
|
640
678
|
metric: "Active Customers",
|
|
641
|
-
value: String(
|
|
679
|
+
value: String(F.activeCustomers),
|
|
642
680
|
trend: "+22%"
|
|
643
681
|
},
|
|
644
682
|
{
|
|
645
683
|
metric: "Profit Margin",
|
|
646
|
-
value: `${
|
|
684
|
+
value: `${F.profitMargin}%`,
|
|
647
685
|
trend: "+2.1%"
|
|
648
686
|
},
|
|
649
687
|
{
|
|
650
688
|
metric: "Return on Investment",
|
|
651
|
-
value: `${
|
|
689
|
+
value: `${F.returnOnInvestment}%`,
|
|
652
690
|
trend: "+8.5%"
|
|
653
691
|
}
|
|
654
|
-
].map((e) => /* @__PURE__ */
|
|
692
|
+
].map((e) => /* @__PURE__ */ T("tr", {
|
|
655
693
|
className: "hover:bg-accent/50 transition-colors",
|
|
656
694
|
children: [
|
|
657
|
-
/* @__PURE__ */
|
|
695
|
+
/* @__PURE__ */ w("td", {
|
|
658
696
|
className: "px-4 py-3 text-sm font-medium text-text-primary",
|
|
659
697
|
children: e.metric
|
|
660
698
|
}),
|
|
661
|
-
/* @__PURE__ */
|
|
699
|
+
/* @__PURE__ */ w("td", {
|
|
662
700
|
className: "px-4 py-3 text-right text-sm text-text-primary",
|
|
663
701
|
children: e.value
|
|
664
702
|
}),
|
|
665
|
-
/* @__PURE__ */
|
|
703
|
+
/* @__PURE__ */ w("td", {
|
|
666
704
|
className: "px-4 py-3 text-right text-sm font-medium text-status-success-text",
|
|
667
705
|
children: e.trend
|
|
668
706
|
})
|
|
@@ -673,36 +711,36 @@ function D() {
|
|
|
673
711
|
})
|
|
674
712
|
]
|
|
675
713
|
}),
|
|
676
|
-
p === "documents" && /* @__PURE__ */
|
|
714
|
+
p === "documents" && /* @__PURE__ */ T("div", {
|
|
677
715
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
678
|
-
children: [/* @__PURE__ */
|
|
716
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
679
717
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
680
718
|
children: "Investment Documents"
|
|
681
|
-
}), /* @__PURE__ */
|
|
719
|
+
}), /* @__PURE__ */ w("div", {
|
|
682
720
|
className: "space-y-4",
|
|
683
|
-
children:
|
|
684
|
-
let r =
|
|
685
|
-
return /* @__PURE__ */
|
|
721
|
+
children: F.documents.map((e, n) => {
|
|
722
|
+
let r = A(e.status), i = r.Icon;
|
|
723
|
+
return /* @__PURE__ */ T("div", {
|
|
686
724
|
className: "flex flex-col gap-4 rounded-lg bg-bg-sunken/50 p-4 sm:flex-row sm:items-center sm:justify-between",
|
|
687
|
-
children: [/* @__PURE__ */
|
|
725
|
+
children: [/* @__PURE__ */ T("div", {
|
|
688
726
|
className: "flex items-start gap-3 flex-1 min-w-0 sm:items-center sm:gap-4",
|
|
689
|
-
children: [/* @__PURE__ */
|
|
727
|
+
children: [/* @__PURE__ */ w(g, { className: "mt-1 h-6 w-6 flex-shrink-0 text-primary sm:mt-0 sm:h-8 sm:w-8" }), /* @__PURE__ */ T("div", {
|
|
690
728
|
className: "min-w-0 flex-1",
|
|
691
729
|
children: [
|
|
692
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ w("h4", {
|
|
693
731
|
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
694
732
|
children: e.type
|
|
695
733
|
}),
|
|
696
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ w("p", {
|
|
697
735
|
className: "truncate text-xs text-text-secondary sm:text-sm",
|
|
698
736
|
children: e.name
|
|
699
737
|
}),
|
|
700
|
-
/* @__PURE__ */
|
|
738
|
+
/* @__PURE__ */ T("p", {
|
|
701
739
|
className: "text-xs text-text-secondary",
|
|
702
740
|
children: [
|
|
703
741
|
"Uploaded",
|
|
704
742
|
" ",
|
|
705
|
-
|
|
743
|
+
a(e.uploadDate, {
|
|
706
744
|
hour: void 0,
|
|
707
745
|
minute: void 0
|
|
708
746
|
})
|
|
@@ -710,19 +748,19 @@ function D() {
|
|
|
710
748
|
})
|
|
711
749
|
]
|
|
712
750
|
})]
|
|
713
|
-
}), /* @__PURE__ */
|
|
751
|
+
}), /* @__PURE__ */ T("div", {
|
|
714
752
|
className: "flex w-full items-center justify-between gap-3 sm:w-auto sm:justify-end",
|
|
715
|
-
children: [/* @__PURE__ */
|
|
753
|
+
children: [/* @__PURE__ */ T("span", {
|
|
716
754
|
className: t("flex items-center gap-1 text-xs sm:text-sm", r.color),
|
|
717
|
-
children: [/* @__PURE__ */
|
|
755
|
+
children: [/* @__PURE__ */ w(i, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ w("span", {
|
|
718
756
|
className: "capitalize",
|
|
719
757
|
children: r.label
|
|
720
758
|
})]
|
|
721
|
-
}), /* @__PURE__ */
|
|
759
|
+
}), /* @__PURE__ */ T("button", {
|
|
722
760
|
type: "button",
|
|
723
761
|
onClick: () => alert(`Downloading ${e.name}`),
|
|
724
762
|
className: "flex items-center gap-1 rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
725
|
-
children: [/* @__PURE__ */
|
|
763
|
+
children: [/* @__PURE__ */ w(h, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ w("span", {
|
|
726
764
|
className: "hidden sm:inline",
|
|
727
765
|
children: "Download"
|
|
728
766
|
})]
|
|
@@ -732,33 +770,33 @@ function D() {
|
|
|
732
770
|
})
|
|
733
771
|
})]
|
|
734
772
|
}),
|
|
735
|
-
p === "updates" && /* @__PURE__ */
|
|
773
|
+
p === "updates" && /* @__PURE__ */ T("div", {
|
|
736
774
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
737
|
-
children: [/* @__PURE__ */
|
|
775
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
738
776
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
739
777
|
children: "Recent Updates"
|
|
740
|
-
}), /* @__PURE__ */
|
|
778
|
+
}), /* @__PURE__ */ w("div", {
|
|
741
779
|
className: "space-y-4",
|
|
742
|
-
children:
|
|
780
|
+
children: F.recentUpdates.map((e, t) => /* @__PURE__ */ T("div", {
|
|
743
781
|
className: "flex gap-3 rounded-lg bg-bg-sunken/50 p-4 sm:gap-4",
|
|
744
|
-
children: [/* @__PURE__ */
|
|
782
|
+
children: [/* @__PURE__ */ w("div", {
|
|
745
783
|
className: "flex-shrink-0",
|
|
746
|
-
children: /* @__PURE__ */
|
|
747
|
-
}), /* @__PURE__ */
|
|
784
|
+
children: /* @__PURE__ */ w(c, { className: "mt-1 h-4 w-4 text-primary sm:h-5 sm:w-5" })
|
|
785
|
+
}), /* @__PURE__ */ T("div", {
|
|
748
786
|
className: "min-w-0 flex-1",
|
|
749
|
-
children: [/* @__PURE__ */
|
|
787
|
+
children: [/* @__PURE__ */ T("div", {
|
|
750
788
|
className: "mb-1 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",
|
|
751
|
-
children: [/* @__PURE__ */
|
|
789
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
752
790
|
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
753
791
|
children: e.type
|
|
754
|
-
}), /* @__PURE__ */
|
|
792
|
+
}), /* @__PURE__ */ w("span", {
|
|
755
793
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
756
|
-
children:
|
|
794
|
+
children: a(e.date, {
|
|
757
795
|
hour: void 0,
|
|
758
796
|
minute: void 0
|
|
759
797
|
})
|
|
760
798
|
})]
|
|
761
|
-
}), /* @__PURE__ */
|
|
799
|
+
}), /* @__PURE__ */ w("p", {
|
|
762
800
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
763
801
|
children: e.description
|
|
764
802
|
})]
|
|
@@ -768,50 +806,50 @@ function D() {
|
|
|
768
806
|
})
|
|
769
807
|
]
|
|
770
808
|
}),
|
|
771
|
-
|
|
809
|
+
N && /* @__PURE__ */ w("div", {
|
|
772
810
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
773
|
-
children: /* @__PURE__ */
|
|
811
|
+
children: /* @__PURE__ */ T("div", {
|
|
774
812
|
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
|
|
775
813
|
children: [
|
|
776
|
-
/* @__PURE__ */
|
|
814
|
+
/* @__PURE__ */ T("div", {
|
|
777
815
|
className: "border-b border-border-subtle p-4 sm:p-6",
|
|
778
|
-
children: [/* @__PURE__ */
|
|
816
|
+
children: [/* @__PURE__ */ w("button", {
|
|
779
817
|
type: "button",
|
|
780
|
-
onClick: () =>
|
|
818
|
+
onClick: () => P(!1),
|
|
781
819
|
className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
|
|
782
|
-
children: /* @__PURE__ */ C
|
|
783
|
-
}), /* @__PURE__ */
|
|
820
|
+
children: /* @__PURE__ */ w(C, { className: "h-5 w-5" })
|
|
821
|
+
}), /* @__PURE__ */ w("h2", {
|
|
784
822
|
className: "text-lg font-semibold text-text-primary sm:text-xl",
|
|
785
823
|
children: "Manage Investment"
|
|
786
824
|
})]
|
|
787
825
|
}),
|
|
788
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ T("div", {
|
|
789
827
|
className: "space-y-4 p-4 sm:p-6",
|
|
790
828
|
children: [
|
|
791
|
-
/* @__PURE__ */
|
|
829
|
+
/* @__PURE__ */ T("p", {
|
|
792
830
|
className: "text-sm text-text-secondary sm:text-base",
|
|
793
831
|
children: [
|
|
794
832
|
"Choose an action for your investment in ",
|
|
795
|
-
|
|
833
|
+
F.cartName,
|
|
796
834
|
":"
|
|
797
835
|
]
|
|
798
836
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
837
|
+
/* @__PURE__ */ T("div", {
|
|
800
838
|
className: "space-y-3",
|
|
801
839
|
children: [
|
|
802
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ w("button", {
|
|
803
841
|
type: "button",
|
|
804
842
|
onClick: () => alert("Partial withdrawal request submitted"),
|
|
805
843
|
className: "w-full rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
806
844
|
children: "Request Partial Withdrawal"
|
|
807
845
|
}),
|
|
808
|
-
/* @__PURE__ */
|
|
846
|
+
/* @__PURE__ */ w("button", {
|
|
809
847
|
type: "button",
|
|
810
848
|
onClick: () => alert("Transfer ownership feature coming soon"),
|
|
811
849
|
className: "w-full rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
812
850
|
children: "Transfer Ownership"
|
|
813
851
|
}),
|
|
814
|
-
/* @__PURE__ */
|
|
852
|
+
/* @__PURE__ */ w("button", {
|
|
815
853
|
type: "button",
|
|
816
854
|
onClick: () => alert("Exit options will be displayed"),
|
|
817
855
|
className: "w-full rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
@@ -819,20 +857,20 @@ function D() {
|
|
|
819
857
|
})
|
|
820
858
|
]
|
|
821
859
|
}),
|
|
822
|
-
/* @__PURE__ */
|
|
860
|
+
/* @__PURE__ */ w("div", {
|
|
823
861
|
className: "rounded-lg border border-status-warning-border/30 bg-status-warning-bg-subtle/10 p-3 sm:p-4",
|
|
824
|
-
children: /* @__PURE__ */
|
|
862
|
+
children: /* @__PURE__ */ w("p", {
|
|
825
863
|
className: "text-xs text-status-warning-text sm:text-sm",
|
|
826
864
|
children: "Any changes to your investment require approval from the business owner and may be subject to terms in your investment agreement."
|
|
827
865
|
})
|
|
828
866
|
})
|
|
829
867
|
]
|
|
830
868
|
}),
|
|
831
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ w("div", {
|
|
832
870
|
className: "flex justify-end gap-3 border-t border-border-subtle p-4 sm:p-6",
|
|
833
|
-
children: /* @__PURE__ */
|
|
871
|
+
children: /* @__PURE__ */ w("button", {
|
|
834
872
|
type: "button",
|
|
835
|
-
onClick: () =>
|
|
873
|
+
onClick: () => P(!1),
|
|
836
874
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
837
875
|
children: "Cancel"
|
|
838
876
|
})
|
|
@@ -844,6 +882,6 @@ function D() {
|
|
|
844
882
|
});
|
|
845
883
|
}
|
|
846
884
|
//#endregion
|
|
847
|
-
export {
|
|
885
|
+
export { j as InvestmentDetailsPage };
|
|
848
886
|
|
|
849
887
|
//# sourceMappingURL=InvestmentDetailsPage.js.map
|