@burdenoff/microfe-kadaikodi 2026.625.1 → 2026.626.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/kadaikodi/pages/HomePage.js +19 -14
- package/dist/kadaikodi/pages/HomePage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +118 -83
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminDashboard.js +75 -46
- package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +144 -128
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +255 -237
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js +129 -128
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +178 -150
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/CartManagementPage.js +182 -159
- package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/UserManagementPage.js +325 -303
- package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +500 -469
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +534 -503
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +73 -48
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +103 -96
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +130 -129
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +673 -670
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +517 -514
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +140 -125
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/HelpSupportPage.js +302 -311
- package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js +102 -91
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/SettingsPage.js +766 -734
- package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +366 -356
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CartDetailPage.js +243 -213
- package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +200 -195
- package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CheckoutPage.js +95 -89
- package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js +430 -387
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +488 -478
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +523 -512
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/FavoritesPage.js +83 -75
- package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +116 -108
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +67 -61
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +90 -73
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/ReviewsPage.js +80 -72
- package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +70 -53
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +289 -255
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +92 -84
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +63 -55
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js +339 -311
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +40 -32
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +174 -150
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +302 -273
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js +87 -59
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +82 -75
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +78 -71
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { useKadaikodi as e } from "../../context/KadaikodiContext.js";
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
-
import {
|
|
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/kadaikodi/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-generic",
|
|
154
|
+
title: "Investment not found",
|
|
155
|
+
description: "We couldn't find this investment. It may have been closed or the link is out of date.",
|
|
156
|
+
action: /* @__PURE__ */ w("button", {
|
|
157
|
+
type: "button",
|
|
158
|
+
onClick: () => l("/investor/portfolio"),
|
|
159
|
+
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent 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,460 +215,488 @@ function D() {
|
|
|
209
215
|
]
|
|
210
216
|
}),
|
|
211
217
|
children: [
|
|
212
|
-
/* @__PURE__ */ w(
|
|
218
|
+
/* @__PURE__ */ w(O, {
|
|
219
|
+
className: "mb-6",
|
|
220
|
+
children: "A deep dive into one of your investments. Use this page to see exactly how this cart is performing for you — your stake, current value and returns — and to dig into its financials, review documents, and follow the latest updates from the owner. When you want to add to or exit this position, use Manage Investment."
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ w(D, {
|
|
223
|
+
storageKey: "kadaikodi-investment-details",
|
|
224
|
+
className: "mb-6",
|
|
225
|
+
steps: [
|
|
226
|
+
{
|
|
227
|
+
id: "financials",
|
|
228
|
+
label: "Review the financials",
|
|
229
|
+
description: "See revenue, costs and how your returns are calculated.",
|
|
230
|
+
onClick: () => m("financials")
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
id: "updates",
|
|
234
|
+
label: "Catch up on owner updates",
|
|
235
|
+
description: "Read the latest progress notes from the cart.",
|
|
236
|
+
onClick: () => m("updates")
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
id: "manage",
|
|
240
|
+
label: "Manage this investment",
|
|
241
|
+
description: "Top up your stake or start an exit.",
|
|
242
|
+
onClick: () => P(!0)
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ w(E, { children: /* @__PURE__ */ T("div", {
|
|
213
247
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
214
248
|
children: [
|
|
215
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ T("div", {
|
|
216
250
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
|
|
217
251
|
children: [
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ w(_, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
|
|
253
|
+
/* @__PURE__ */ w("div", {
|
|
220
254
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
221
|
-
children:
|
|
255
|
+
children: i(F.investmentAmount, { minimumFractionDigits: 0 })
|
|
222
256
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ w("div", {
|
|
224
258
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
225
259
|
children: "Your Investment"
|
|
226
260
|
})
|
|
227
261
|
]
|
|
228
262
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ T("div", {
|
|
230
264
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
|
|
231
265
|
children: [
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ w(x, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
|
|
267
|
+
/* @__PURE__ */ T("div", {
|
|
234
268
|
className: "text-lg font-bold text-status-success-text sm:text-2xl",
|
|
235
269
|
children: [
|
|
236
|
-
|
|
237
|
-
|
|
270
|
+
z > 0 ? "+" : "",
|
|
271
|
+
z.toFixed(1),
|
|
238
272
|
"%"
|
|
239
273
|
]
|
|
240
274
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ w("div", {
|
|
242
276
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
243
277
|
children: "Returns"
|
|
244
278
|
})
|
|
245
279
|
]
|
|
246
280
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ T("div", {
|
|
248
282
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
|
|
249
283
|
children: [
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ w(y, { className: "mx-auto mb-2 h-6 w-6 text-text-primary sm:h-8 sm:w-8" }),
|
|
285
|
+
/* @__PURE__ */ T("div", {
|
|
252
286
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
253
|
-
children: [
|
|
287
|
+
children: [F.equityPercentage, "%"]
|
|
254
288
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ w("div", {
|
|
256
290
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
257
291
|
children: "Equity Stake"
|
|
258
292
|
})
|
|
259
293
|
]
|
|
260
294
|
}),
|
|
261
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ T("div", {
|
|
262
296
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-center",
|
|
263
297
|
children: [
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ w(f, { className: "mx-auto mb-2 h-6 w-6 text-text-primary sm:h-8 sm:w-8" }),
|
|
299
|
+
/* @__PURE__ */ w("div", {
|
|
266
300
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
267
|
-
children:
|
|
301
|
+
children: i(F.currentValuation * (F.equityPercentage / 100), { minimumFractionDigits: 0 })
|
|
268
302
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ w("div", {
|
|
270
304
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
271
305
|
children: "Current Value"
|
|
272
306
|
})
|
|
273
307
|
]
|
|
274
308
|
})
|
|
275
309
|
]
|
|
276
|
-
}),
|
|
277
|
-
/* @__PURE__ */
|
|
310
|
+
}) }),
|
|
311
|
+
/* @__PURE__ */ w("div", {
|
|
278
312
|
className: "mt-6 flex gap-2 overflow-x-auto pb-2",
|
|
279
|
-
children:
|
|
313
|
+
children: L.map((e) => /* @__PURE__ */ T("button", {
|
|
280
314
|
type: "button",
|
|
281
|
-
onClick: () =>
|
|
315
|
+
onClick: () => m(e.id),
|
|
282
316
|
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
317
|
children: [
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ w(e.Icon, { className: "h-4 w-4 flex-shrink-0" }),
|
|
319
|
+
/* @__PURE__ */ w("span", {
|
|
286
320
|
className: "hidden sm:inline",
|
|
287
321
|
children: e.label
|
|
288
322
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ w("span", {
|
|
290
324
|
className: "sm:hidden",
|
|
291
325
|
children: e.label.split(" ")[0]
|
|
292
326
|
})
|
|
293
327
|
]
|
|
294
328
|
}, e.id))
|
|
295
329
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ T("div", {
|
|
297
331
|
className: "mt-6",
|
|
298
332
|
children: [
|
|
299
|
-
p === "overview" && /* @__PURE__ */
|
|
333
|
+
p === "overview" && /* @__PURE__ */ T("div", {
|
|
300
334
|
className: "grid gap-6 lg:grid-cols-3",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ T("div", {
|
|
302
336
|
className: "space-y-6 lg:col-span-2",
|
|
303
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ T("div", {
|
|
304
338
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
306
340
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
307
341
|
children: "Business Information"
|
|
308
|
-
}), /* @__PURE__ */
|
|
342
|
+
}), /* @__PURE__ */ T("div", {
|
|
309
343
|
className: "grid gap-4 sm:grid-cols-2 sm:gap-6",
|
|
310
344
|
children: [
|
|
311
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
312
346
|
className: "text-sm text-text-secondary",
|
|
313
347
|
children: "Owner"
|
|
314
|
-
}), /* @__PURE__ */
|
|
348
|
+
}), /* @__PURE__ */ w("p", {
|
|
315
349
|
className: "font-medium text-text-primary",
|
|
316
|
-
children:
|
|
350
|
+
children: F.cartOwner
|
|
317
351
|
})] }),
|
|
318
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
319
353
|
className: "text-sm text-text-secondary",
|
|
320
354
|
children: "Business Type"
|
|
321
|
-
}), /* @__PURE__ */
|
|
355
|
+
}), /* @__PURE__ */ w("p", {
|
|
322
356
|
className: "font-medium text-text-primary",
|
|
323
|
-
children:
|
|
357
|
+
children: F.businessType
|
|
324
358
|
})] }),
|
|
325
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
326
360
|
className: "text-sm text-text-secondary",
|
|
327
361
|
children: "Location"
|
|
328
|
-
}), /* @__PURE__ */
|
|
362
|
+
}), /* @__PURE__ */ w("p", {
|
|
329
363
|
className: "font-medium text-text-primary",
|
|
330
|
-
children:
|
|
364
|
+
children: F.location
|
|
331
365
|
})] }),
|
|
332
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
333
367
|
className: "text-sm text-text-secondary",
|
|
334
368
|
children: "Established"
|
|
335
|
-
}), /* @__PURE__ */
|
|
369
|
+
}), /* @__PURE__ */ w("p", {
|
|
336
370
|
className: "font-medium text-text-primary",
|
|
337
|
-
children:
|
|
371
|
+
children: a(F.establishedDate, {
|
|
338
372
|
hour: void 0,
|
|
339
373
|
minute: void 0
|
|
340
374
|
})
|
|
341
375
|
})] })
|
|
342
376
|
]
|
|
343
377
|
})]
|
|
344
|
-
}), /* @__PURE__ */
|
|
378
|
+
}), /* @__PURE__ */ T("div", {
|
|
345
379
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
|
|
346
380
|
children: [
|
|
347
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ w("h2", {
|
|
348
382
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
349
383
|
children: "Performance Metrics"
|
|
350
384
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ T("div", {
|
|
352
386
|
className: "grid grid-cols-1 gap-4 text-center sm:grid-cols-3 sm:gap-6",
|
|
353
387
|
children: [
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ T("div", { children: [
|
|
389
|
+
/* @__PURE__ */ w(v, { className: "mx-auto mb-2 h-6 w-6 text-primary sm:h-8 sm:w-8" }),
|
|
390
|
+
/* @__PURE__ */ w("div", {
|
|
357
391
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
358
|
-
children:
|
|
392
|
+
children: F.monthlyOrders
|
|
359
393
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ w("div", {
|
|
361
395
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
362
396
|
children: "Monthly Orders"
|
|
363
397
|
})
|
|
364
398
|
] }),
|
|
365
|
-
/* @__PURE__ */
|
|
366
|
-
/* @__PURE__ */
|
|
367
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ T("div", { children: [
|
|
400
|
+
/* @__PURE__ */ w(_, { className: "mx-auto mb-2 h-6 w-6 text-status-success-text sm:h-8 sm:w-8" }),
|
|
401
|
+
/* @__PURE__ */ w("div", {
|
|
368
402
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
369
|
-
children:
|
|
403
|
+
children: i(F.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
370
404
|
}),
|
|
371
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ w("div", {
|
|
372
406
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
373
407
|
children: "Monthly Revenue"
|
|
374
408
|
})
|
|
375
409
|
] }),
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ T("div", { children: [
|
|
411
|
+
/* @__PURE__ */ w(S, { className: "mx-auto mb-2 h-6 w-6 text-text-primary sm:h-8 sm:w-8" }),
|
|
412
|
+
/* @__PURE__ */ w("div", {
|
|
379
413
|
className: "text-xl font-bold text-text-primary sm:text-2xl",
|
|
380
|
-
children:
|
|
414
|
+
children: F.activeCustomers
|
|
381
415
|
}),
|
|
382
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ w("div", {
|
|
383
417
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
384
418
|
children: "Active Customers"
|
|
385
419
|
})
|
|
386
420
|
] })
|
|
387
421
|
]
|
|
388
422
|
}),
|
|
389
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ T("div", {
|
|
390
424
|
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__ */
|
|
425
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
392
426
|
className: "text-sm text-text-secondary",
|
|
393
427
|
children: "Customer Rating"
|
|
394
|
-
}), /* @__PURE__ */
|
|
428
|
+
}), /* @__PURE__ */ T("div", {
|
|
395
429
|
className: "mt-1 flex items-center gap-1",
|
|
396
|
-
children: [Array.from({ length: 5 }, (e, n) => /* @__PURE__ */
|
|
430
|
+
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
431
|
className: "ml-1 text-sm font-medium text-text-primary",
|
|
398
|
-
children:
|
|
432
|
+
children: F.customerRating
|
|
399
433
|
})]
|
|
400
|
-
})] }), /* @__PURE__ */
|
|
434
|
+
})] }), /* @__PURE__ */ T("div", {
|
|
401
435
|
className: "text-left sm:text-right",
|
|
402
|
-
children: [/* @__PURE__ */
|
|
436
|
+
children: [/* @__PURE__ */ w("p", {
|
|
403
437
|
className: "text-sm text-text-secondary",
|
|
404
438
|
children: "Avg Order Value"
|
|
405
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ w("p", {
|
|
406
440
|
className: "text-lg font-semibold text-text-primary",
|
|
407
|
-
children:
|
|
441
|
+
children: i(F.averageOrderValue, { minimumFractionDigits: 0 })
|
|
408
442
|
})]
|
|
409
443
|
})]
|
|
410
444
|
})
|
|
411
445
|
]
|
|
412
446
|
})]
|
|
413
|
-
}), /* @__PURE__ */
|
|
447
|
+
}), /* @__PURE__ */ T("div", {
|
|
414
448
|
className: "space-y-6",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
449
|
+
children: [/* @__PURE__ */ T("div", {
|
|
416
450
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
|
|
417
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
418
452
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
419
453
|
children: "Investment Summary"
|
|
420
|
-
}), /* @__PURE__ */
|
|
454
|
+
}), /* @__PURE__ */ T("div", {
|
|
421
455
|
className: "space-y-4",
|
|
422
456
|
children: [
|
|
423
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
424
458
|
className: "text-sm text-text-secondary",
|
|
425
459
|
children: "Investment Date"
|
|
426
|
-
}), /* @__PURE__ */
|
|
460
|
+
}), /* @__PURE__ */ w("p", {
|
|
427
461
|
className: "font-medium text-text-primary",
|
|
428
|
-
children:
|
|
462
|
+
children: a(F.investmentDate, {
|
|
429
463
|
hour: void 0,
|
|
430
464
|
minute: void 0
|
|
431
465
|
})
|
|
432
466
|
})] }),
|
|
433
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
434
468
|
className: "text-sm text-text-secondary",
|
|
435
469
|
children: "Investment Type"
|
|
436
|
-
}), /* @__PURE__ */
|
|
470
|
+
}), /* @__PURE__ */ w("p", {
|
|
437
471
|
className: "font-medium text-text-primary",
|
|
438
|
-
children:
|
|
472
|
+
children: F.investmentType
|
|
439
473
|
})] }),
|
|
440
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
441
475
|
className: "text-sm text-text-secondary",
|
|
442
476
|
children: "Initial Valuation"
|
|
443
|
-
}), /* @__PURE__ */
|
|
477
|
+
}), /* @__PURE__ */ w("p", {
|
|
444
478
|
className: "font-medium text-text-primary",
|
|
445
|
-
children:
|
|
479
|
+
children: i(F.valuationAtInvestment, { minimumFractionDigits: 0 })
|
|
446
480
|
})] }),
|
|
447
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
448
482
|
className: "text-sm text-text-secondary",
|
|
449
483
|
children: "Current Valuation"
|
|
450
|
-
}), /* @__PURE__ */
|
|
484
|
+
}), /* @__PURE__ */ w("p", {
|
|
451
485
|
className: "text-lg font-medium text-text-primary",
|
|
452
|
-
children:
|
|
486
|
+
children: i(F.currentValuation, { minimumFractionDigits: 0 })
|
|
453
487
|
})] }),
|
|
454
|
-
/* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ w("div", {
|
|
455
489
|
className: "border-t border-border-subtle pt-4",
|
|
456
|
-
children: /* @__PURE__ */
|
|
490
|
+
children: /* @__PURE__ */ T("div", {
|
|
457
491
|
className: "flex items-center justify-between",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
492
|
+
children: [/* @__PURE__ */ w("span", {
|
|
459
493
|
className: "text-sm text-text-secondary",
|
|
460
494
|
children: "Your Returns"
|
|
461
|
-
}), /* @__PURE__ */
|
|
462
|
-
className: t("text-lg font-semibold",
|
|
463
|
-
children: [
|
|
495
|
+
}), /* @__PURE__ */ T("span", {
|
|
496
|
+
className: t("text-lg font-semibold", R > 0 ? "text-status-success-text" : "text-status-error-text"),
|
|
497
|
+
children: [R > 0 ? "+" : "", i(R, { minimumFractionDigits: 0 })]
|
|
464
498
|
})]
|
|
465
499
|
})
|
|
466
500
|
})
|
|
467
501
|
]
|
|
468
502
|
})]
|
|
469
|
-
}), /* @__PURE__ */
|
|
503
|
+
}), /* @__PURE__ */ T("div", {
|
|
470
504
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
|
|
471
|
-
children: [/* @__PURE__ */
|
|
505
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
472
506
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
473
507
|
children: "Growth Indicators"
|
|
474
|
-
}), /* @__PURE__ */
|
|
508
|
+
}), /* @__PURE__ */ T("div", {
|
|
475
509
|
className: "space-y-4",
|
|
476
510
|
children: [
|
|
477
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
|
|
478
512
|
className: "mb-2 flex items-center justify-between",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
513
|
+
children: [/* @__PURE__ */ w("span", {
|
|
480
514
|
className: "text-sm text-text-secondary",
|
|
481
515
|
children: "Revenue Growth"
|
|
482
|
-
}), /* @__PURE__ */
|
|
516
|
+
}), /* @__PURE__ */ T("span", {
|
|
483
517
|
className: "text-sm font-medium text-status-success-text",
|
|
484
518
|
children: [
|
|
485
519
|
"+",
|
|
486
|
-
|
|
520
|
+
F.revenueGrowth,
|
|
487
521
|
"%"
|
|
488
522
|
]
|
|
489
523
|
})]
|
|
490
|
-
}), /* @__PURE__ */
|
|
524
|
+
}), /* @__PURE__ */ w("div", {
|
|
491
525
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
492
|
-
children: /* @__PURE__ */
|
|
526
|
+
children: /* @__PURE__ */ w("div", {
|
|
493
527
|
className: "h-full rounded-full bg-status-success-text",
|
|
494
|
-
style: { width: `${Math.min(
|
|
528
|
+
style: { width: `${Math.min(F.revenueGrowth, 100)}%` }
|
|
495
529
|
})
|
|
496
530
|
})] }),
|
|
497
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
|
|
498
532
|
className: "mb-2 flex items-center justify-between",
|
|
499
|
-
children: [/* @__PURE__ */
|
|
533
|
+
children: [/* @__PURE__ */ w("span", {
|
|
500
534
|
className: "text-sm text-text-secondary",
|
|
501
535
|
children: "Profit Margin"
|
|
502
|
-
}), /* @__PURE__ */
|
|
536
|
+
}), /* @__PURE__ */ T("span", {
|
|
503
537
|
className: "text-sm font-medium text-text-primary",
|
|
504
|
-
children: [
|
|
538
|
+
children: [F.profitMargin, "%"]
|
|
505
539
|
})]
|
|
506
|
-
}), /* @__PURE__ */
|
|
540
|
+
}), /* @__PURE__ */ w("div", {
|
|
507
541
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
508
|
-
children: /* @__PURE__ */
|
|
542
|
+
children: /* @__PURE__ */ w("div", {
|
|
509
543
|
className: "h-full rounded-full bg-action-primary-bg",
|
|
510
|
-
style: { width: `${
|
|
544
|
+
style: { width: `${F.profitMargin}%` }
|
|
511
545
|
})
|
|
512
546
|
})] }),
|
|
513
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
|
|
514
548
|
className: "mb-2 flex items-center justify-between",
|
|
515
|
-
children: [/* @__PURE__ */
|
|
549
|
+
children: [/* @__PURE__ */ w("span", {
|
|
516
550
|
className: "text-sm text-text-secondary",
|
|
517
551
|
children: "ROI"
|
|
518
|
-
}), /* @__PURE__ */
|
|
552
|
+
}), /* @__PURE__ */ T("span", {
|
|
519
553
|
className: "text-sm font-medium text-status-success-text",
|
|
520
554
|
children: [
|
|
521
555
|
"+",
|
|
522
|
-
|
|
556
|
+
F.returnOnInvestment,
|
|
523
557
|
"%"
|
|
524
558
|
]
|
|
525
559
|
})]
|
|
526
|
-
}), /* @__PURE__ */
|
|
560
|
+
}), /* @__PURE__ */ w("div", {
|
|
527
561
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
528
|
-
children: /* @__PURE__ */
|
|
562
|
+
children: /* @__PURE__ */ w("div", {
|
|
529
563
|
className: "h-full rounded-full bg-status-success-text",
|
|
530
|
-
style: { width: `${Math.min(
|
|
564
|
+
style: { width: `${Math.min(F.returnOnInvestment, 100)}%` }
|
|
531
565
|
})
|
|
532
566
|
})] }),
|
|
533
|
-
/* @__PURE__ */
|
|
567
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
534
568
|
className: "text-sm text-text-secondary",
|
|
535
569
|
children: "Expected Payback"
|
|
536
|
-
}), /* @__PURE__ */
|
|
570
|
+
}), /* @__PURE__ */ w("p", {
|
|
537
571
|
className: "font-medium text-text-primary",
|
|
538
|
-
children:
|
|
572
|
+
children: F.paybackPeriod
|
|
539
573
|
})] })
|
|
540
574
|
]
|
|
541
575
|
})]
|
|
542
576
|
})]
|
|
543
577
|
})]
|
|
544
578
|
}),
|
|
545
|
-
p === "financials" && /* @__PURE__ */
|
|
579
|
+
p === "financials" && /* @__PURE__ */ T("div", {
|
|
546
580
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
|
|
547
581
|
children: [
|
|
548
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ w("h2", {
|
|
549
583
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
550
584
|
children: "Financial Performance"
|
|
551
585
|
}),
|
|
552
|
-
/* @__PURE__ */
|
|
586
|
+
/* @__PURE__ */ T("div", {
|
|
553
587
|
className: "mb-6 grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
554
588
|
children: [
|
|
555
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ T("div", {
|
|
556
590
|
className: "rounded-lg bg-bg-sunken/50 p-3",
|
|
557
|
-
children: [/* @__PURE__ */
|
|
591
|
+
children: [/* @__PURE__ */ w("p", {
|
|
558
592
|
className: "text-xs text-text-secondary",
|
|
559
593
|
children: "Monthly Revenue"
|
|
560
|
-
}), /* @__PURE__ */
|
|
594
|
+
}), /* @__PURE__ */ w("p", {
|
|
561
595
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
562
|
-
children:
|
|
596
|
+
children: i(F.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
563
597
|
})]
|
|
564
598
|
}),
|
|
565
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ T("div", {
|
|
566
600
|
className: "rounded-lg bg-bg-sunken/50 p-3",
|
|
567
|
-
children: [/* @__PURE__ */
|
|
601
|
+
children: [/* @__PURE__ */ w("p", {
|
|
568
602
|
className: "text-xs text-text-secondary",
|
|
569
603
|
children: "Revenue Growth"
|
|
570
|
-
}), /* @__PURE__ */
|
|
604
|
+
}), /* @__PURE__ */ T("p", {
|
|
571
605
|
className: "mt-1 text-lg font-bold text-status-success-text",
|
|
572
606
|
children: [
|
|
573
607
|
"+",
|
|
574
|
-
|
|
608
|
+
F.revenueGrowth,
|
|
575
609
|
"%"
|
|
576
610
|
]
|
|
577
611
|
})]
|
|
578
612
|
}),
|
|
579
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ T("div", {
|
|
580
614
|
className: "rounded-lg bg-bg-sunken/50 p-3",
|
|
581
|
-
children: [/* @__PURE__ */
|
|
615
|
+
children: [/* @__PURE__ */ w("p", {
|
|
582
616
|
className: "text-xs text-text-secondary",
|
|
583
617
|
children: "Profit Margin"
|
|
584
|
-
}), /* @__PURE__ */
|
|
618
|
+
}), /* @__PURE__ */ T("p", {
|
|
585
619
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
586
|
-
children: [
|
|
620
|
+
children: [F.profitMargin, "%"]
|
|
587
621
|
})]
|
|
588
622
|
}),
|
|
589
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ T("div", {
|
|
590
624
|
className: "rounded-lg bg-bg-sunken/50 p-3",
|
|
591
|
-
children: [/* @__PURE__ */
|
|
625
|
+
children: [/* @__PURE__ */ w("p", {
|
|
592
626
|
className: "text-xs text-text-secondary",
|
|
593
627
|
children: "Avg Order Value"
|
|
594
|
-
}), /* @__PURE__ */
|
|
628
|
+
}), /* @__PURE__ */ w("p", {
|
|
595
629
|
className: "mt-1 text-lg font-bold text-text-primary",
|
|
596
|
-
children:
|
|
630
|
+
children: i(F.averageOrderValue, { minimumFractionDigits: 0 })
|
|
597
631
|
})]
|
|
598
632
|
})
|
|
599
633
|
]
|
|
600
634
|
}),
|
|
601
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ w("div", {
|
|
602
636
|
className: "overflow-hidden rounded-lg border border-border-subtle",
|
|
603
|
-
children: /* @__PURE__ */
|
|
637
|
+
children: /* @__PURE__ */ T("table", {
|
|
604
638
|
className: "w-full",
|
|
605
|
-
children: [/* @__PURE__ */
|
|
639
|
+
children: [/* @__PURE__ */ w("thead", { children: /* @__PURE__ */ T("tr", {
|
|
606
640
|
className: "bg-bg-sunken/50",
|
|
607
641
|
children: [
|
|
608
|
-
/* @__PURE__ */
|
|
642
|
+
/* @__PURE__ */ w("th", {
|
|
609
643
|
className: "px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-text-secondary",
|
|
610
644
|
children: "Metric"
|
|
611
645
|
}),
|
|
612
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ w("th", {
|
|
613
647
|
className: "px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-text-secondary",
|
|
614
648
|
children: "Value"
|
|
615
649
|
}),
|
|
616
|
-
/* @__PURE__ */
|
|
650
|
+
/* @__PURE__ */ w("th", {
|
|
617
651
|
className: "px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-text-secondary",
|
|
618
652
|
children: "Trend"
|
|
619
653
|
})
|
|
620
654
|
]
|
|
621
|
-
}) }), /* @__PURE__ */
|
|
655
|
+
}) }), /* @__PURE__ */ w("tbody", {
|
|
622
656
|
className: "divide-y divide-border",
|
|
623
657
|
children: [
|
|
624
658
|
{
|
|
625
659
|
metric: "Monthly Revenue",
|
|
626
|
-
value:
|
|
660
|
+
value: i(F.monthlyRevenue, { minimumFractionDigits: 0 }),
|
|
627
661
|
trend: "+18.5%"
|
|
628
662
|
},
|
|
629
663
|
{
|
|
630
664
|
metric: "Monthly Orders",
|
|
631
|
-
value: String(
|
|
665
|
+
value: String(F.monthlyOrders),
|
|
632
666
|
trend: "+12%"
|
|
633
667
|
},
|
|
634
668
|
{
|
|
635
669
|
metric: "Average Order Value",
|
|
636
|
-
value:
|
|
670
|
+
value: i(F.averageOrderValue, { minimumFractionDigits: 0 }),
|
|
637
671
|
trend: "+5.8%"
|
|
638
672
|
},
|
|
639
673
|
{
|
|
640
674
|
metric: "Active Customers",
|
|
641
|
-
value: String(
|
|
675
|
+
value: String(F.activeCustomers),
|
|
642
676
|
trend: "+22%"
|
|
643
677
|
},
|
|
644
678
|
{
|
|
645
679
|
metric: "Profit Margin",
|
|
646
|
-
value: `${
|
|
680
|
+
value: `${F.profitMargin}%`,
|
|
647
681
|
trend: "+2.1%"
|
|
648
682
|
},
|
|
649
683
|
{
|
|
650
684
|
metric: "Return on Investment",
|
|
651
|
-
value: `${
|
|
685
|
+
value: `${F.returnOnInvestment}%`,
|
|
652
686
|
trend: "+8.5%"
|
|
653
687
|
}
|
|
654
|
-
].map((e) => /* @__PURE__ */
|
|
688
|
+
].map((e) => /* @__PURE__ */ T("tr", {
|
|
655
689
|
className: "hover:bg-accent/50 transition-colors",
|
|
656
690
|
children: [
|
|
657
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ w("td", {
|
|
658
692
|
className: "px-4 py-3 text-sm font-medium text-text-primary",
|
|
659
693
|
children: e.metric
|
|
660
694
|
}),
|
|
661
|
-
/* @__PURE__ */
|
|
695
|
+
/* @__PURE__ */ w("td", {
|
|
662
696
|
className: "px-4 py-3 text-right text-sm text-text-primary",
|
|
663
697
|
children: e.value
|
|
664
698
|
}),
|
|
665
|
-
/* @__PURE__ */
|
|
699
|
+
/* @__PURE__ */ w("td", {
|
|
666
700
|
className: "px-4 py-3 text-right text-sm font-medium text-status-success-text",
|
|
667
701
|
children: e.trend
|
|
668
702
|
})
|
|
@@ -673,36 +707,36 @@ function D() {
|
|
|
673
707
|
})
|
|
674
708
|
]
|
|
675
709
|
}),
|
|
676
|
-
p === "documents" && /* @__PURE__ */
|
|
710
|
+
p === "documents" && /* @__PURE__ */ T("div", {
|
|
677
711
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
|
|
678
|
-
children: [/* @__PURE__ */
|
|
712
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
679
713
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
680
714
|
children: "Investment Documents"
|
|
681
|
-
}), /* @__PURE__ */
|
|
715
|
+
}), /* @__PURE__ */ w("div", {
|
|
682
716
|
className: "space-y-4",
|
|
683
|
-
children:
|
|
684
|
-
let r =
|
|
685
|
-
return /* @__PURE__ */
|
|
717
|
+
children: F.documents.map((e, n) => {
|
|
718
|
+
let r = A(e.status), i = r.Icon;
|
|
719
|
+
return /* @__PURE__ */ T("div", {
|
|
686
720
|
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__ */
|
|
721
|
+
children: [/* @__PURE__ */ T("div", {
|
|
688
722
|
className: "flex items-start gap-3 flex-1 min-w-0 sm:items-center sm:gap-4",
|
|
689
|
-
children: [/* @__PURE__ */
|
|
723
|
+
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
724
|
className: "min-w-0 flex-1",
|
|
691
725
|
children: [
|
|
692
|
-
/* @__PURE__ */
|
|
726
|
+
/* @__PURE__ */ w("h4", {
|
|
693
727
|
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
694
728
|
children: e.type
|
|
695
729
|
}),
|
|
696
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ w("p", {
|
|
697
731
|
className: "truncate text-xs text-text-secondary sm:text-sm",
|
|
698
732
|
children: e.name
|
|
699
733
|
}),
|
|
700
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ T("p", {
|
|
701
735
|
className: "text-xs text-text-secondary",
|
|
702
736
|
children: [
|
|
703
737
|
"Uploaded",
|
|
704
738
|
" ",
|
|
705
|
-
|
|
739
|
+
a(e.uploadDate, {
|
|
706
740
|
hour: void 0,
|
|
707
741
|
minute: void 0
|
|
708
742
|
})
|
|
@@ -710,19 +744,19 @@ function D() {
|
|
|
710
744
|
})
|
|
711
745
|
]
|
|
712
746
|
})]
|
|
713
|
-
}), /* @__PURE__ */
|
|
747
|
+
}), /* @__PURE__ */ T("div", {
|
|
714
748
|
className: "flex w-full items-center justify-between gap-3 sm:w-auto sm:justify-end",
|
|
715
|
-
children: [/* @__PURE__ */
|
|
749
|
+
children: [/* @__PURE__ */ T("span", {
|
|
716
750
|
className: t("flex items-center gap-1 text-xs sm:text-sm", r.color),
|
|
717
|
-
children: [/* @__PURE__ */
|
|
751
|
+
children: [/* @__PURE__ */ w(i, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ w("span", {
|
|
718
752
|
className: "capitalize",
|
|
719
753
|
children: r.label
|
|
720
754
|
})]
|
|
721
|
-
}), /* @__PURE__ */
|
|
755
|
+
}), /* @__PURE__ */ T("button", {
|
|
722
756
|
type: "button",
|
|
723
757
|
onClick: () => alert(`Downloading ${e.name}`),
|
|
724
758
|
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__ */
|
|
759
|
+
children: [/* @__PURE__ */ w(h, { className: "h-3 w-3 sm:h-4 sm:w-4" }), /* @__PURE__ */ w("span", {
|
|
726
760
|
className: "hidden sm:inline",
|
|
727
761
|
children: "Download"
|
|
728
762
|
})]
|
|
@@ -732,33 +766,33 @@ function D() {
|
|
|
732
766
|
})
|
|
733
767
|
})]
|
|
734
768
|
}),
|
|
735
|
-
p === "updates" && /* @__PURE__ */
|
|
769
|
+
p === "updates" && /* @__PURE__ */ T("div", {
|
|
736
770
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6",
|
|
737
|
-
children: [/* @__PURE__ */
|
|
771
|
+
children: [/* @__PURE__ */ w("h2", {
|
|
738
772
|
className: "mb-4 text-lg font-semibold text-text-primary sm:mb-6",
|
|
739
773
|
children: "Recent Updates"
|
|
740
|
-
}), /* @__PURE__ */
|
|
774
|
+
}), /* @__PURE__ */ w("div", {
|
|
741
775
|
className: "space-y-4",
|
|
742
|
-
children:
|
|
776
|
+
children: F.recentUpdates.map((e, t) => /* @__PURE__ */ T("div", {
|
|
743
777
|
className: "flex gap-3 rounded-lg bg-bg-sunken/50 p-4 sm:gap-4",
|
|
744
|
-
children: [/* @__PURE__ */
|
|
778
|
+
children: [/* @__PURE__ */ w("div", {
|
|
745
779
|
className: "flex-shrink-0",
|
|
746
|
-
children: /* @__PURE__ */
|
|
747
|
-
}), /* @__PURE__ */
|
|
780
|
+
children: /* @__PURE__ */ w(c, { className: "mt-1 h-4 w-4 text-primary sm:h-5 sm:w-5" })
|
|
781
|
+
}), /* @__PURE__ */ T("div", {
|
|
748
782
|
className: "min-w-0 flex-1",
|
|
749
|
-
children: [/* @__PURE__ */
|
|
783
|
+
children: [/* @__PURE__ */ T("div", {
|
|
750
784
|
className: "mb-1 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",
|
|
751
|
-
children: [/* @__PURE__ */
|
|
785
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
752
786
|
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
753
787
|
children: e.type
|
|
754
|
-
}), /* @__PURE__ */
|
|
788
|
+
}), /* @__PURE__ */ w("span", {
|
|
755
789
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
756
|
-
children:
|
|
790
|
+
children: a(e.date, {
|
|
757
791
|
hour: void 0,
|
|
758
792
|
minute: void 0
|
|
759
793
|
})
|
|
760
794
|
})]
|
|
761
|
-
}), /* @__PURE__ */
|
|
795
|
+
}), /* @__PURE__ */ w("p", {
|
|
762
796
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
763
797
|
children: e.description
|
|
764
798
|
})]
|
|
@@ -768,50 +802,50 @@ function D() {
|
|
|
768
802
|
})
|
|
769
803
|
]
|
|
770
804
|
}),
|
|
771
|
-
|
|
805
|
+
N && /* @__PURE__ */ w("div", {
|
|
772
806
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
773
|
-
children: /* @__PURE__ */
|
|
807
|
+
children: /* @__PURE__ */ T("div", {
|
|
774
808
|
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
|
|
775
809
|
children: [
|
|
776
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ T("div", {
|
|
777
811
|
className: "border-b border-border-subtle p-4 sm:p-6",
|
|
778
|
-
children: [/* @__PURE__ */
|
|
812
|
+
children: [/* @__PURE__ */ w("button", {
|
|
779
813
|
type: "button",
|
|
780
|
-
onClick: () =>
|
|
814
|
+
onClick: () => P(!1),
|
|
781
815
|
className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
|
|
782
|
-
children: /* @__PURE__ */ C
|
|
783
|
-
}), /* @__PURE__ */
|
|
816
|
+
children: /* @__PURE__ */ w(C, { className: "h-5 w-5" })
|
|
817
|
+
}), /* @__PURE__ */ w("h2", {
|
|
784
818
|
className: "text-lg font-semibold text-text-primary sm:text-xl",
|
|
785
819
|
children: "Manage Investment"
|
|
786
820
|
})]
|
|
787
821
|
}),
|
|
788
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ T("div", {
|
|
789
823
|
className: "space-y-4 p-4 sm:p-6",
|
|
790
824
|
children: [
|
|
791
|
-
/* @__PURE__ */
|
|
825
|
+
/* @__PURE__ */ T("p", {
|
|
792
826
|
className: "text-sm text-text-secondary sm:text-base",
|
|
793
827
|
children: [
|
|
794
828
|
"Choose an action for your investment in ",
|
|
795
|
-
|
|
829
|
+
F.cartName,
|
|
796
830
|
":"
|
|
797
831
|
]
|
|
798
832
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ T("div", {
|
|
800
834
|
className: "space-y-3",
|
|
801
835
|
children: [
|
|
802
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ w("button", {
|
|
803
837
|
type: "button",
|
|
804
838
|
onClick: () => alert("Partial withdrawal request submitted"),
|
|
805
839
|
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
840
|
children: "Request Partial Withdrawal"
|
|
807
841
|
}),
|
|
808
|
-
/* @__PURE__ */
|
|
842
|
+
/* @__PURE__ */ w("button", {
|
|
809
843
|
type: "button",
|
|
810
844
|
onClick: () => alert("Transfer ownership feature coming soon"),
|
|
811
845
|
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
846
|
children: "Transfer Ownership"
|
|
813
847
|
}),
|
|
814
|
-
/* @__PURE__ */
|
|
848
|
+
/* @__PURE__ */ w("button", {
|
|
815
849
|
type: "button",
|
|
816
850
|
onClick: () => alert("Exit options will be displayed"),
|
|
817
851
|
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 +853,20 @@ function D() {
|
|
|
819
853
|
})
|
|
820
854
|
]
|
|
821
855
|
}),
|
|
822
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ w("div", {
|
|
823
857
|
className: "rounded-lg border border-status-warning-text/30 bg-status-warning-bg-subtle p-3 sm:p-4",
|
|
824
|
-
children: /* @__PURE__ */
|
|
858
|
+
children: /* @__PURE__ */ w("p", {
|
|
825
859
|
className: "text-xs text-status-warning-text sm:text-sm",
|
|
826
860
|
children: "Any changes to your investment require approval from the business owner and may be subject to terms in your investment agreement."
|
|
827
861
|
})
|
|
828
862
|
})
|
|
829
863
|
]
|
|
830
864
|
}),
|
|
831
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ w("div", {
|
|
832
866
|
className: "flex justify-end gap-3 border-t border-border-subtle p-4 sm:p-6",
|
|
833
|
-
children: /* @__PURE__ */
|
|
867
|
+
children: /* @__PURE__ */ w("button", {
|
|
834
868
|
type: "button",
|
|
835
|
-
onClick: () =>
|
|
869
|
+
onClick: () => P(!1),
|
|
836
870
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
837
871
|
children: "Cancel"
|
|
838
872
|
})
|
|
@@ -844,6 +878,6 @@ function D() {
|
|
|
844
878
|
});
|
|
845
879
|
}
|
|
846
880
|
//#endregion
|
|
847
|
-
export {
|
|
881
|
+
export { j as InvestmentDetailsPage };
|
|
848
882
|
|
|
849
883
|
//# sourceMappingURL=InvestmentDetailsPage.js.map
|