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