@burdenoff/microfe-labsofscience 2026.624.1 → 2026.626.1
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/labsofscience/components/EmptyState.js +18 -11
- package/dist/labsofscience/components/EmptyState.js.map +1 -1
- package/dist/labsofscience/components/InvestmentCard.js +26 -24
- package/dist/labsofscience/components/InvestmentCard.js.map +1 -1
- package/dist/labsofscience/components/MetricsCard.js +19 -13
- package/dist/labsofscience/components/MetricsCard.js.map +1 -1
- package/dist/labsofscience/components/PageLayout.js +23 -15
- package/dist/labsofscience/components/PageLayout.js.map +1 -1
- package/dist/labsofscience/components/RatingDisplay.js +1 -1
- package/dist/labsofscience/components/RatingDisplay.js.map +1 -1
- package/dist/labsofscience/components/StatusBadge.js +34 -15
- package/dist/labsofscience/components/StatusBadge.js.map +1 -1
- package/dist/labsofscience/pages/HomePage.js +242 -223
- package/dist/labsofscience/pages/HomePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +107 -101
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +118 -85
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +51 -45
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +245 -240
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +131 -129
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +493 -491
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +163 -158
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +307 -302
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +89 -84
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +187 -182
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +119 -88
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +149 -144
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +151 -146
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +344 -346
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +269 -271
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +293 -287
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +344 -345
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +94 -87
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +748 -739
- package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +400 -356
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +281 -248
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +178 -166
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +236 -238
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +425 -390
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +522 -512
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +73 -66
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +74 -67
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +311 -274
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +100 -93
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +96 -89
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +85 -78
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +135 -103
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +267 -260
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +97 -91
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +346 -310
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +118 -111
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +75 -69
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +434 -429
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +364 -323
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +132 -101
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +114 -108
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +124 -119
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +354 -344
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,10 +4,11 @@ import { PageLayout as n } from "../../components/PageLayout.js";
|
|
|
4
4
|
import { EmptyState as r } from "../../components/EmptyState.js";
|
|
5
5
|
import { formatCurrency as i, formatNumber as a } from "../../utils/formatters.js";
|
|
6
6
|
import { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
7
|
-
import { CheckCircle2 as u, Eye as d, FileText as f, IndianRupee as p, MapPin as m, Search as h, Star as g,
|
|
8
|
-
import { jsx as
|
|
7
|
+
import { CheckCircle2 as u, Eye as d, FileText as f, IndianRupee as p, MapPin as m, Search as h, Star as g, TrendingUp as _, X as v } from "lucide-react";
|
|
8
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
9
|
+
import { EmphasisPanel as x, PagePurpose as S } from "@burdenoff/fe-libs/ui";
|
|
9
10
|
//#region src/labsofscience/pages/investor/InvestmentOpportunitiesPage.tsx
|
|
10
|
-
var
|
|
11
|
+
var C = [
|
|
11
12
|
{
|
|
12
13
|
id: "opp-001",
|
|
13
14
|
cartId: "cart-005",
|
|
@@ -216,21 +217,21 @@ var b = [
|
|
|
216
217
|
}],
|
|
217
218
|
status: "active"
|
|
218
219
|
}
|
|
219
|
-
],
|
|
220
|
+
], w = {
|
|
220
221
|
totalOpportunities: 24,
|
|
221
222
|
averageReturns: 21.5,
|
|
222
223
|
totalFunded: 156e5,
|
|
223
224
|
successRate: 89
|
|
224
225
|
};
|
|
225
|
-
function
|
|
226
|
+
function T(e) {
|
|
226
227
|
switch (e) {
|
|
227
|
-
case "low": return "bg-
|
|
228
|
-
case "medium": return "bg-
|
|
229
|
-
case "high": return "bg-
|
|
228
|
+
case "low": return "bg-status-success-bg-subtle text-status-success-text";
|
|
229
|
+
case "medium": return "bg-status-warning-bg-subtle text-status-warning-text";
|
|
230
|
+
case "high": return "bg-status-error-bg-subtle text-status-error-text";
|
|
230
231
|
default: return "bg-secondary text-secondary-foreground";
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
+
function E(e) {
|
|
234
235
|
switch (e) {
|
|
235
236
|
case "low": return "Low Risk";
|
|
236
237
|
case "medium": return "Medium Risk";
|
|
@@ -238,11 +239,11 @@ function C(e) {
|
|
|
238
239
|
default: return e;
|
|
239
240
|
}
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
+
function D(e, t) {
|
|
242
243
|
return t > 0 ? Math.min(e / t * 100, 100) : 0;
|
|
243
244
|
}
|
|
244
|
-
function
|
|
245
|
-
let { navigateTo:
|
|
245
|
+
function O() {
|
|
246
|
+
let { navigateTo: O } = e(), [k, A] = l(!0), [j, M] = l(null), [N, P] = l(!1), [F, I] = l(""), [L, R] = l("idle"), [z, B] = l({
|
|
246
247
|
searchQuery: "",
|
|
247
248
|
category: "",
|
|
248
249
|
riskLevel: "",
|
|
@@ -251,25 +252,25 @@ function T() {
|
|
|
251
252
|
sortBy: "featured"
|
|
252
253
|
});
|
|
253
254
|
s(() => {
|
|
254
|
-
let e = setTimeout(() =>
|
|
255
|
+
let e = setTimeout(() => A(!1), 600);
|
|
255
256
|
return () => clearTimeout(e);
|
|
256
257
|
}, []);
|
|
257
|
-
let
|
|
258
|
-
|
|
258
|
+
let V = o((e, t) => {
|
|
259
|
+
B((n) => ({
|
|
259
260
|
...n,
|
|
260
261
|
[e]: t
|
|
261
262
|
}));
|
|
262
|
-
}, []),
|
|
263
|
-
let e = [...
|
|
264
|
-
if (
|
|
265
|
-
let t =
|
|
263
|
+
}, []), H = c(() => {
|
|
264
|
+
let e = [...C];
|
|
265
|
+
if (z.searchQuery.trim()) {
|
|
266
|
+
let t = z.searchQuery.toLowerCase();
|
|
266
267
|
e = e.filter((e) => e.cartName.toLowerCase().includes(t) || e.description.toLowerCase().includes(t) || e.category.toLowerCase().includes(t));
|
|
267
268
|
}
|
|
268
|
-
if (
|
|
269
|
-
let t = parseInt(
|
|
269
|
+
if (z.category && (e = e.filter((e) => e.category === z.category)), z.riskLevel && (e = e.filter((e) => e.riskLevel === z.riskLevel)), z.location && (e = e.filter((e) => e.location.includes(z.location))), z.minimumAmount) {
|
|
270
|
+
let t = parseInt(z.minimumAmount, 10);
|
|
270
271
|
e = e.filter((e) => e.minimumInvestment <= t);
|
|
271
272
|
}
|
|
272
|
-
switch (
|
|
273
|
+
switch (z.sortBy) {
|
|
273
274
|
case "returns":
|
|
274
275
|
e.sort((e, t) => t.expectedReturns - e.expectedReturns);
|
|
275
276
|
break;
|
|
@@ -285,243 +286,248 @@ function T() {
|
|
|
285
286
|
default: break;
|
|
286
287
|
}
|
|
287
288
|
return e;
|
|
288
|
-
}, [
|
|
289
|
-
if (!
|
|
290
|
-
let e = parseInt(
|
|
289
|
+
}, [z]), U = o(() => {
|
|
290
|
+
if (!j || !F) return;
|
|
291
|
+
let e = parseInt(F, 10);
|
|
291
292
|
if (!isNaN(e)) {
|
|
292
|
-
if (e <
|
|
293
|
-
|
|
293
|
+
if (e < j.minimumInvestment) {
|
|
294
|
+
R("error");
|
|
294
295
|
return;
|
|
295
296
|
}
|
|
296
|
-
if (e >
|
|
297
|
-
|
|
297
|
+
if (e > j.maximumInvestment) {
|
|
298
|
+
R("error");
|
|
298
299
|
return;
|
|
299
300
|
}
|
|
300
|
-
|
|
301
|
-
|
|
301
|
+
R("success"), setTimeout(() => {
|
|
302
|
+
P(!1), I(""), R("idle"), O("/investor/portfolio");
|
|
302
303
|
}, 1500);
|
|
303
304
|
}
|
|
304
305
|
}, [
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
]),
|
|
309
|
-
|
|
306
|
+
j,
|
|
307
|
+
F,
|
|
308
|
+
O
|
|
309
|
+
]), W = o((e) => {
|
|
310
|
+
M(e), I(""), R("idle"), P(!0);
|
|
310
311
|
}, []);
|
|
311
|
-
return
|
|
312
|
+
return k ? /* @__PURE__ */ y(n, {
|
|
312
313
|
title: "Investment Opportunities",
|
|
313
314
|
description: "Loading opportunities...",
|
|
314
|
-
children: /* @__PURE__ */
|
|
315
|
+
children: /* @__PURE__ */ y("div", {
|
|
315
316
|
className: "flex items-center justify-center py-20",
|
|
316
|
-
children: /* @__PURE__ */
|
|
317
|
+
children: /* @__PURE__ */ b("div", {
|
|
317
318
|
className: "text-center",
|
|
318
|
-
children: [/* @__PURE__ */
|
|
319
|
+
children: [/* @__PURE__ */ y("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-primary" }), /* @__PURE__ */ y("p", {
|
|
319
320
|
className: "text-sm text-text-secondary",
|
|
320
321
|
children: "Loading opportunities..."
|
|
321
322
|
})]
|
|
322
323
|
})
|
|
323
324
|
})
|
|
324
|
-
}) : /* @__PURE__ */
|
|
325
|
+
}) : /* @__PURE__ */ b(n, {
|
|
325
326
|
title: "Investment Opportunities",
|
|
326
327
|
description: "Discover and invest in growing local businesses",
|
|
327
|
-
actions: /* @__PURE__ */
|
|
328
|
+
actions: /* @__PURE__ */ b("span", {
|
|
328
329
|
className: "text-sm text-text-secondary",
|
|
329
|
-
children: [
|
|
330
|
+
children: [H.length, " opportunities"]
|
|
330
331
|
}),
|
|
331
332
|
children: [
|
|
332
|
-
/* @__PURE__ */ y(
|
|
333
|
+
/* @__PURE__ */ y(S, {
|
|
334
|
+
icon: /* @__PURE__ */ y(_, { className: "h-4 w-4" }),
|
|
335
|
+
className: "mb-6",
|
|
336
|
+
children: "Put your money to work in real local carts. Browse vetted businesses raising funds, compare expected returns, funding progress and minimum tickets, then back the ones you believe in — every opportunity here is a chance to earn while helping a neighbourhood vendor grow."
|
|
337
|
+
}),
|
|
338
|
+
/* @__PURE__ */ b(x, {
|
|
333
339
|
className: "grid grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4",
|
|
334
340
|
children: [
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
className: "rounded-lg border border-border-
|
|
337
|
-
children: [/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ b("div", {
|
|
342
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 sm:p-4",
|
|
343
|
+
children: [/* @__PURE__ */ y("p", {
|
|
338
344
|
className: "text-xs text-text-secondary",
|
|
339
345
|
children: "Active Opportunities"
|
|
340
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ y("p", {
|
|
341
347
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
342
|
-
children:
|
|
348
|
+
children: w.totalOpportunities
|
|
343
349
|
})]
|
|
344
350
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
className: "rounded-lg border border-border-
|
|
347
|
-
children: [/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ b("div", {
|
|
352
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 sm:p-4",
|
|
353
|
+
children: [/* @__PURE__ */ y("p", {
|
|
348
354
|
className: "text-xs text-text-secondary",
|
|
349
355
|
children: "Average Returns"
|
|
350
|
-
}), /* @__PURE__ */
|
|
351
|
-
className: "text-lg font-bold text-
|
|
352
|
-
children: [
|
|
356
|
+
}), /* @__PURE__ */ b("p", {
|
|
357
|
+
className: "text-lg font-bold text-status-success-text sm:text-2xl",
|
|
358
|
+
children: [w.averageReturns, "%"]
|
|
353
359
|
})]
|
|
354
360
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
className: "rounded-lg border border-border-
|
|
357
|
-
children: [/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ b("div", {
|
|
362
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 sm:p-4",
|
|
363
|
+
children: [/* @__PURE__ */ y("p", {
|
|
358
364
|
className: "text-xs text-text-secondary",
|
|
359
365
|
children: "Total Funded"
|
|
360
|
-
}), /* @__PURE__ */
|
|
366
|
+
}), /* @__PURE__ */ y("p", {
|
|
361
367
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
362
|
-
children: i(
|
|
368
|
+
children: i(w.totalFunded, {
|
|
363
369
|
minimumFractionDigits: 0,
|
|
364
370
|
notation: "compact"
|
|
365
371
|
})
|
|
366
372
|
})]
|
|
367
373
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
-
className: "rounded-lg border border-border-
|
|
370
|
-
children: [/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ b("div", {
|
|
375
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 sm:p-4",
|
|
376
|
+
children: [/* @__PURE__ */ y("p", {
|
|
371
377
|
className: "text-xs text-text-secondary",
|
|
372
378
|
children: "Success Rate"
|
|
373
|
-
}), /* @__PURE__ */
|
|
379
|
+
}), /* @__PURE__ */ b("p", {
|
|
374
380
|
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
375
|
-
children: [
|
|
381
|
+
children: [w.successRate, "%"]
|
|
376
382
|
})]
|
|
377
383
|
})
|
|
378
384
|
]
|
|
379
385
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
-
className: "mt-6 rounded-lg border border-border-
|
|
382
|
-
children: /* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ y("div", {
|
|
387
|
+
className: "mt-6 rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
|
|
388
|
+
children: /* @__PURE__ */ b("div", {
|
|
383
389
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6",
|
|
384
390
|
children: [
|
|
385
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ b("div", {
|
|
386
392
|
className: "relative sm:col-span-2 lg:col-span-1",
|
|
387
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ y(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ y("input", {
|
|
388
394
|
type: "text",
|
|
389
395
|
placeholder: "Search opportunities...",
|
|
390
|
-
value:
|
|
391
|
-
onChange: (e) =>
|
|
392
|
-
className: "w-full rounded-lg border border-border-
|
|
396
|
+
value: z.searchQuery,
|
|
397
|
+
onChange: (e) => V("searchQuery", e.target.value),
|
|
398
|
+
className: "w-full rounded-lg border border-border-seam bg-bg-surface py-2 pl-10 pr-4 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
393
399
|
})]
|
|
394
400
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
value:
|
|
397
|
-
onChange: (e) =>
|
|
398
|
-
className: "rounded-lg border border-border-
|
|
401
|
+
/* @__PURE__ */ b("select", {
|
|
402
|
+
value: z.category,
|
|
403
|
+
onChange: (e) => V("category", e.target.value),
|
|
404
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
399
405
|
children: [
|
|
400
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ y("option", {
|
|
401
407
|
value: "",
|
|
402
408
|
children: "All Categories"
|
|
403
409
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ y("option", {
|
|
405
411
|
value: "Healthy Food",
|
|
406
412
|
children: "Healthy Food"
|
|
407
413
|
}),
|
|
408
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ y("option", {
|
|
409
415
|
value: "Fast Food",
|
|
410
416
|
children: "Fast Food"
|
|
411
417
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ y("option", {
|
|
413
419
|
value: "Fusion Food",
|
|
414
420
|
children: "Fusion Food"
|
|
415
421
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ y("option", {
|
|
417
423
|
value: "Beverages",
|
|
418
424
|
children: "Beverages"
|
|
419
425
|
}),
|
|
420
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ y("option", {
|
|
421
427
|
value: "Street Food",
|
|
422
428
|
children: "Street Food"
|
|
423
429
|
})
|
|
424
430
|
]
|
|
425
431
|
}),
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
value:
|
|
428
|
-
onChange: (e) =>
|
|
429
|
-
className: "rounded-lg border border-border-
|
|
432
|
+
/* @__PURE__ */ b("select", {
|
|
433
|
+
value: z.riskLevel,
|
|
434
|
+
onChange: (e) => V("riskLevel", e.target.value),
|
|
435
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
430
436
|
children: [
|
|
431
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ y("option", {
|
|
432
438
|
value: "",
|
|
433
439
|
children: "All Risk Levels"
|
|
434
440
|
}),
|
|
435
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ y("option", {
|
|
436
442
|
value: "low",
|
|
437
443
|
children: "Low Risk"
|
|
438
444
|
}),
|
|
439
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ y("option", {
|
|
440
446
|
value: "medium",
|
|
441
447
|
children: "Medium Risk"
|
|
442
448
|
}),
|
|
443
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ y("option", {
|
|
444
450
|
value: "high",
|
|
445
451
|
children: "High Risk"
|
|
446
452
|
})
|
|
447
453
|
]
|
|
448
454
|
}),
|
|
449
|
-
/* @__PURE__ */
|
|
450
|
-
value:
|
|
451
|
-
onChange: (e) =>
|
|
452
|
-
className: "rounded-lg border border-border-
|
|
455
|
+
/* @__PURE__ */ b("select", {
|
|
456
|
+
value: z.minimumAmount,
|
|
457
|
+
onChange: (e) => V("minimumAmount", e.target.value),
|
|
458
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
453
459
|
children: [
|
|
454
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ y("option", {
|
|
455
461
|
value: "",
|
|
456
462
|
children: "Any Amount"
|
|
457
463
|
}),
|
|
458
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ y("option", {
|
|
459
465
|
value: "15000",
|
|
460
466
|
children: "Under ₹15,000"
|
|
461
467
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ y("option", {
|
|
463
469
|
value: "25000",
|
|
464
470
|
children: "Under ₹25,000"
|
|
465
471
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ y("option", {
|
|
467
473
|
value: "50000",
|
|
468
474
|
children: "Under ₹50,000"
|
|
469
475
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ y("option", {
|
|
471
477
|
value: "100000",
|
|
472
478
|
children: "Under ₹1,00,000"
|
|
473
479
|
})
|
|
474
480
|
]
|
|
475
481
|
}),
|
|
476
|
-
/* @__PURE__ */
|
|
477
|
-
value:
|
|
478
|
-
onChange: (e) =>
|
|
479
|
-
className: "rounded-lg border border-border-
|
|
482
|
+
/* @__PURE__ */ b("select", {
|
|
483
|
+
value: z.location,
|
|
484
|
+
onChange: (e) => V("location", e.target.value),
|
|
485
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
480
486
|
children: [
|
|
481
|
-
/* @__PURE__ */
|
|
487
|
+
/* @__PURE__ */ y("option", {
|
|
482
488
|
value: "",
|
|
483
489
|
children: "All Locations"
|
|
484
490
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ y("option", {
|
|
486
492
|
value: "Whitefield",
|
|
487
493
|
children: "Whitefield"
|
|
488
494
|
}),
|
|
489
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ y("option", {
|
|
490
496
|
value: "Koramangala",
|
|
491
497
|
children: "Koramangala"
|
|
492
498
|
}),
|
|
493
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ y("option", {
|
|
494
500
|
value: "Indiranagar",
|
|
495
501
|
children: "Indiranagar"
|
|
496
502
|
}),
|
|
497
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ y("option", {
|
|
498
504
|
value: "Electronic City",
|
|
499
505
|
children: "Electronic City"
|
|
500
506
|
})
|
|
501
507
|
]
|
|
502
508
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
value:
|
|
505
|
-
onChange: (e) =>
|
|
506
|
-
className: "rounded-lg border border-border-
|
|
509
|
+
/* @__PURE__ */ b("select", {
|
|
510
|
+
value: z.sortBy,
|
|
511
|
+
onChange: (e) => V("sortBy", e.target.value),
|
|
512
|
+
className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
507
513
|
children: [
|
|
508
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ y("option", {
|
|
509
515
|
value: "featured",
|
|
510
516
|
children: "Featured"
|
|
511
517
|
}),
|
|
512
|
-
/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ y("option", {
|
|
513
519
|
value: "returns",
|
|
514
520
|
children: "Highest Returns"
|
|
515
521
|
}),
|
|
516
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ y("option", {
|
|
517
523
|
value: "funding",
|
|
518
524
|
children: "Most Funded"
|
|
519
525
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ y("option", {
|
|
521
527
|
value: "closing",
|
|
522
528
|
children: "Closing Soon"
|
|
523
529
|
}),
|
|
524
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ y("option", {
|
|
525
531
|
value: "minimum",
|
|
526
532
|
children: "Lowest Minimum"
|
|
527
533
|
})
|
|
@@ -530,15 +536,16 @@ function T() {
|
|
|
530
536
|
]
|
|
531
537
|
})
|
|
532
538
|
}),
|
|
533
|
-
|
|
539
|
+
H.length === 0 ? /* @__PURE__ */ y("div", {
|
|
534
540
|
className: "mt-6",
|
|
535
|
-
children: /* @__PURE__ */
|
|
536
|
-
|
|
541
|
+
children: /* @__PURE__ */ y(r, {
|
|
542
|
+
illustration: "empty-search",
|
|
543
|
+
icon: /* @__PURE__ */ y(h, { className: "h-10 w-10" }),
|
|
537
544
|
title: "No opportunities found",
|
|
538
545
|
description: "Try adjusting your filters to find more opportunities",
|
|
539
|
-
action: /* @__PURE__ */
|
|
546
|
+
action: /* @__PURE__ */ y("button", {
|
|
540
547
|
type: "button",
|
|
541
|
-
onClick: () =>
|
|
548
|
+
onClick: () => B({
|
|
542
549
|
searchQuery: "",
|
|
543
550
|
category: "",
|
|
544
551
|
riskLevel: "",
|
|
@@ -550,178 +557,178 @@ function T() {
|
|
|
550
557
|
children: "Clear Filters"
|
|
551
558
|
})
|
|
552
559
|
})
|
|
553
|
-
}) : /* @__PURE__ */
|
|
560
|
+
}) : /* @__PURE__ */ y("div", {
|
|
554
561
|
className: "mt-6 grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
555
|
-
children:
|
|
556
|
-
let n =
|
|
557
|
-
return /* @__PURE__ */
|
|
558
|
-
className: "rounded-lg border border-border-
|
|
559
|
-
children: [/* @__PURE__ */
|
|
562
|
+
children: H.map((e) => {
|
|
563
|
+
let n = D(e.raisedAmount, e.targetAmount);
|
|
564
|
+
return /* @__PURE__ */ b("div", {
|
|
565
|
+
className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm hover:shadow-md transition-shadow",
|
|
566
|
+
children: [/* @__PURE__ */ b("div", {
|
|
560
567
|
className: "relative",
|
|
561
568
|
children: [
|
|
562
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ y("div", {
|
|
563
570
|
className: "h-40 w-full overflow-hidden rounded-t-lg bg-bg-sunken sm:h-48",
|
|
564
|
-
children: /* @__PURE__ */
|
|
571
|
+
children: /* @__PURE__ */ y("img", {
|
|
565
572
|
src: e.image,
|
|
566
573
|
alt: e.cartName,
|
|
567
574
|
className: "h-full w-full object-cover",
|
|
568
575
|
loading: "lazy"
|
|
569
576
|
})
|
|
570
577
|
}),
|
|
571
|
-
e.status === "funded" && /* @__PURE__ */
|
|
572
|
-
className: "absolute right-2 top-2 rounded-full bg-
|
|
578
|
+
e.status === "funded" && /* @__PURE__ */ y("div", {
|
|
579
|
+
className: "absolute right-2 top-2 rounded-full bg-status-success-bg px-2 py-1 text-xs font-medium text-white sm:right-4 sm:top-4 sm:px-3",
|
|
573
580
|
children: "Fully Funded"
|
|
574
581
|
}),
|
|
575
|
-
e.daysLeft > 0 && e.daysLeft <= 7 && /* @__PURE__ */
|
|
576
|
-
className: "absolute left-2 top-2 rounded-full bg-
|
|
582
|
+
e.daysLeft > 0 && e.daysLeft <= 7 && /* @__PURE__ */ b("div", {
|
|
583
|
+
className: "absolute left-2 top-2 rounded-full bg-status-error-bg px-2 py-1 text-xs font-medium text-white sm:left-4 sm:top-4 sm:px-3",
|
|
577
584
|
children: [e.daysLeft, " days left"]
|
|
578
585
|
})
|
|
579
586
|
]
|
|
580
|
-
}), /* @__PURE__ */
|
|
587
|
+
}), /* @__PURE__ */ b("div", {
|
|
581
588
|
className: "p-4 sm:p-6",
|
|
582
589
|
children: [
|
|
583
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ b("div", {
|
|
584
591
|
className: "mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
|
|
585
|
-
children: [/* @__PURE__ */
|
|
592
|
+
children: [/* @__PURE__ */ b("div", {
|
|
586
593
|
className: "flex-1",
|
|
587
594
|
children: [
|
|
588
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ y("h3", {
|
|
589
596
|
className: "text-base font-semibold text-text-primary sm:text-xl",
|
|
590
597
|
children: e.cartName
|
|
591
598
|
}),
|
|
592
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ b("p", {
|
|
593
600
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
594
601
|
children: ["by ", e.cartOwner]
|
|
595
602
|
}),
|
|
596
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ b("div", {
|
|
597
604
|
className: "mt-2 flex flex-wrap items-center gap-2",
|
|
598
|
-
children: [/* @__PURE__ */
|
|
605
|
+
children: [/* @__PURE__ */ y("span", {
|
|
599
606
|
className: "text-xs text-text-secondary sm:text-sm",
|
|
600
607
|
children: e.category
|
|
601
|
-
}), /* @__PURE__ */
|
|
602
|
-
className: t("rounded-full px-2 py-0.5 text-xs font-medium",
|
|
603
|
-
children:
|
|
608
|
+
}), /* @__PURE__ */ y("span", {
|
|
609
|
+
className: t("rounded-full px-2 py-0.5 text-xs font-medium", T(e.riskLevel)),
|
|
610
|
+
children: E(e.riskLevel)
|
|
604
611
|
})]
|
|
605
612
|
})
|
|
606
613
|
]
|
|
607
|
-
}), /* @__PURE__ */
|
|
614
|
+
}), /* @__PURE__ */ b("div", {
|
|
608
615
|
className: "text-left sm:text-right",
|
|
609
|
-
children: [/* @__PURE__ */
|
|
610
|
-
className: "text-xl font-bold text-
|
|
616
|
+
children: [/* @__PURE__ */ b("p", {
|
|
617
|
+
className: "text-xl font-bold text-status-success-text sm:text-2xl",
|
|
611
618
|
children: [e.expectedReturns, "%"]
|
|
612
|
-
}), /* @__PURE__ */
|
|
619
|
+
}), /* @__PURE__ */ y("p", {
|
|
613
620
|
className: "text-xs text-text-secondary",
|
|
614
621
|
children: "Expected Returns"
|
|
615
622
|
})]
|
|
616
623
|
})]
|
|
617
624
|
}),
|
|
618
|
-
/* @__PURE__ */
|
|
625
|
+
/* @__PURE__ */ y("p", {
|
|
619
626
|
className: "mb-4 text-sm leading-relaxed text-text-secondary line-clamp-2",
|
|
620
627
|
children: e.description
|
|
621
628
|
}),
|
|
622
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ b("div", {
|
|
623
630
|
className: "mb-4",
|
|
624
631
|
children: [
|
|
625
|
-
/* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ b("div", {
|
|
626
633
|
className: "mb-1 flex justify-between text-xs sm:text-sm",
|
|
627
|
-
children: [/* @__PURE__ */
|
|
634
|
+
children: [/* @__PURE__ */ b("span", {
|
|
628
635
|
className: "font-medium text-text-primary",
|
|
629
636
|
children: [
|
|
630
637
|
i(e.raisedAmount, { minimumFractionDigits: 0 }),
|
|
631
638
|
" ",
|
|
632
639
|
"raised"
|
|
633
640
|
]
|
|
634
|
-
}), /* @__PURE__ */
|
|
641
|
+
}), /* @__PURE__ */ b("span", {
|
|
635
642
|
className: "text-text-secondary",
|
|
636
643
|
children: ["of ", i(e.targetAmount, { minimumFractionDigits: 0 })]
|
|
637
644
|
})]
|
|
638
645
|
}),
|
|
639
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ y("div", {
|
|
640
647
|
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
641
|
-
children: /* @__PURE__ */
|
|
648
|
+
children: /* @__PURE__ */ y("div", {
|
|
642
649
|
className: "h-full rounded-full bg-action-primary-bg transition-all duration-300",
|
|
643
650
|
style: { width: `${n}%` }
|
|
644
651
|
})
|
|
645
652
|
}),
|
|
646
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ b("div", {
|
|
647
654
|
className: "mt-1 flex justify-between text-xs text-text-secondary",
|
|
648
|
-
children: [/* @__PURE__ */
|
|
655
|
+
children: [/* @__PURE__ */ b("span", { children: [e.investorCount, " investors"] }), /* @__PURE__ */ b("span", { children: [n.toFixed(0), "% funded"] })]
|
|
649
656
|
})
|
|
650
657
|
]
|
|
651
658
|
}),
|
|
652
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ b("div", {
|
|
653
660
|
className: "mb-4 grid grid-cols-3 gap-2 text-center sm:gap-4",
|
|
654
661
|
children: [
|
|
655
|
-
/* @__PURE__ */
|
|
662
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
656
663
|
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
657
664
|
children: i(e.minimumInvestment, { minimumFractionDigits: 0 })
|
|
658
|
-
}), /* @__PURE__ */
|
|
665
|
+
}), /* @__PURE__ */ y("p", {
|
|
659
666
|
className: "text-xs text-text-secondary",
|
|
660
667
|
children: "Min Investment"
|
|
661
668
|
})] }),
|
|
662
|
-
/* @__PURE__ */
|
|
669
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("p", {
|
|
663
670
|
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
664
671
|
children: [e.paybackPeriod, " mo"]
|
|
665
|
-
}), /* @__PURE__ */
|
|
672
|
+
}), /* @__PURE__ */ y("p", {
|
|
666
673
|
className: "text-xs text-text-secondary",
|
|
667
674
|
children: "Payback Period"
|
|
668
675
|
})] }),
|
|
669
|
-
/* @__PURE__ */
|
|
676
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
|
|
670
677
|
className: "flex items-center justify-center gap-1",
|
|
671
|
-
children: [/* @__PURE__ */
|
|
678
|
+
children: [/* @__PURE__ */ y(g, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ y("p", {
|
|
672
679
|
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
673
680
|
children: e.businessMetrics.rating
|
|
674
681
|
})]
|
|
675
|
-
}), /* @__PURE__ */
|
|
682
|
+
}), /* @__PURE__ */ y("p", {
|
|
676
683
|
className: "text-xs text-text-secondary",
|
|
677
684
|
children: "Rating"
|
|
678
685
|
})] })
|
|
679
686
|
]
|
|
680
687
|
}),
|
|
681
|
-
/* @__PURE__ */
|
|
682
|
-
className: "mb-4 border-t border-border-
|
|
683
|
-
children: [/* @__PURE__ */
|
|
688
|
+
/* @__PURE__ */ b("div", {
|
|
689
|
+
className: "mb-4 border-t border-border-seam pt-3 sm:pt-4",
|
|
690
|
+
children: [/* @__PURE__ */ y("p", {
|
|
684
691
|
className: "mb-2 text-xs font-medium text-text-secondary sm:text-sm",
|
|
685
692
|
children: "Business Performance"
|
|
686
|
-
}), /* @__PURE__ */
|
|
693
|
+
}), /* @__PURE__ */ b("div", {
|
|
687
694
|
className: "grid grid-cols-1 gap-2 text-xs sm:grid-cols-2 sm:text-sm",
|
|
688
695
|
children: [
|
|
689
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ b("div", {
|
|
690
697
|
className: "flex justify-between",
|
|
691
|
-
children: [/* @__PURE__ */
|
|
698
|
+
children: [/* @__PURE__ */ y("span", {
|
|
692
699
|
className: "text-text-secondary",
|
|
693
700
|
children: "Monthly Revenue:"
|
|
694
|
-
}), /* @__PURE__ */
|
|
701
|
+
}), /* @__PURE__ */ y("span", {
|
|
695
702
|
className: "font-medium text-text-primary",
|
|
696
703
|
children: i(e.businessMetrics.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
697
704
|
})]
|
|
698
705
|
}),
|
|
699
|
-
/* @__PURE__ */
|
|
706
|
+
/* @__PURE__ */ b("div", {
|
|
700
707
|
className: "flex justify-between",
|
|
701
|
-
children: [/* @__PURE__ */
|
|
708
|
+
children: [/* @__PURE__ */ y("span", {
|
|
702
709
|
className: "text-text-secondary",
|
|
703
710
|
children: "Gross Margin:"
|
|
704
|
-
}), /* @__PURE__ */
|
|
711
|
+
}), /* @__PURE__ */ b("span", {
|
|
705
712
|
className: "font-medium text-text-primary",
|
|
706
713
|
children: [e.financials.grossMargin, "%"]
|
|
707
714
|
})]
|
|
708
715
|
}),
|
|
709
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ b("div", {
|
|
710
717
|
className: "flex justify-between",
|
|
711
|
-
children: [/* @__PURE__ */
|
|
718
|
+
children: [/* @__PURE__ */ y("span", {
|
|
712
719
|
className: "text-text-secondary",
|
|
713
720
|
children: "Monthly Orders:"
|
|
714
|
-
}), /* @__PURE__ */
|
|
721
|
+
}), /* @__PURE__ */ y("span", {
|
|
715
722
|
className: "font-medium text-text-primary",
|
|
716
723
|
children: a(e.businessMetrics.monthlyOrders)
|
|
717
724
|
})]
|
|
718
725
|
}),
|
|
719
|
-
/* @__PURE__ */
|
|
726
|
+
/* @__PURE__ */ b("div", {
|
|
720
727
|
className: "flex justify-between",
|
|
721
|
-
children: [/* @__PURE__ */
|
|
728
|
+
children: [/* @__PURE__ */ y("span", {
|
|
722
729
|
className: "text-text-secondary",
|
|
723
730
|
children: "Net Margin:"
|
|
724
|
-
}), /* @__PURE__ */
|
|
731
|
+
}), /* @__PURE__ */ b("span", {
|
|
725
732
|
className: "font-medium text-text-primary",
|
|
726
733
|
children: [e.financials.netMargin, "%"]
|
|
727
734
|
})]
|
|
@@ -729,30 +736,30 @@ function T() {
|
|
|
729
736
|
]
|
|
730
737
|
})]
|
|
731
738
|
}),
|
|
732
|
-
/* @__PURE__ */
|
|
733
|
-
className: "mb-4 border-t border-border-
|
|
734
|
-
children: /* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ y("div", {
|
|
740
|
+
className: "mb-4 border-t border-border-seam pt-3",
|
|
741
|
+
children: /* @__PURE__ */ b("div", {
|
|
735
742
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
736
|
-
children: [/* @__PURE__ */
|
|
743
|
+
children: [/* @__PURE__ */ y(f, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ b("span", { children: [e.documents.length, " documents available"] })]
|
|
737
744
|
})
|
|
738
745
|
}),
|
|
739
|
-
/* @__PURE__ */
|
|
746
|
+
/* @__PURE__ */ b("div", {
|
|
740
747
|
className: "mb-4 flex items-center gap-1.5 text-xs text-text-secondary",
|
|
741
|
-
children: [/* @__PURE__ */
|
|
748
|
+
children: [/* @__PURE__ */ y(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ y("span", { children: e.location })]
|
|
742
749
|
}),
|
|
743
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ b("div", {
|
|
744
751
|
className: "flex flex-col gap-2 sm:flex-row sm:gap-3",
|
|
745
|
-
children: [/* @__PURE__ */
|
|
752
|
+
children: [/* @__PURE__ */ y("button", {
|
|
746
753
|
type: "button",
|
|
747
|
-
onClick: () =>
|
|
754
|
+
onClick: () => W(e),
|
|
748
755
|
disabled: e.status === "funded",
|
|
749
756
|
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", e.status === "funded" ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
750
757
|
children: e.status === "funded" ? "Fully Funded" : "Invest Now"
|
|
751
|
-
}), /* @__PURE__ */
|
|
758
|
+
}), /* @__PURE__ */ b("button", {
|
|
752
759
|
type: "button",
|
|
753
|
-
onClick: () =>
|
|
754
|
-
className: "flex flex-1 items-center justify-center gap-2 rounded-lg border border-border-
|
|
755
|
-
children: [/* @__PURE__ */
|
|
760
|
+
onClick: () => O(`/investor/opportunities/${e.id}`),
|
|
761
|
+
className: "flex flex-1 items-center justify-center gap-2 rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
762
|
+
children: [/* @__PURE__ */ y(d, { className: "h-4 w-4" }), "View Details"]
|
|
756
763
|
})]
|
|
757
764
|
})
|
|
758
765
|
]
|
|
@@ -760,168 +767,168 @@ function T() {
|
|
|
760
767
|
}, e.id);
|
|
761
768
|
})
|
|
762
769
|
}),
|
|
763
|
-
|
|
770
|
+
N && j && /* @__PURE__ */ y("div", {
|
|
764
771
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
765
|
-
children: /* @__PURE__ */
|
|
766
|
-
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-
|
|
772
|
+
children: /* @__PURE__ */ b("div", {
|
|
773
|
+
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
|
|
767
774
|
children: [
|
|
768
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ y("button", {
|
|
769
776
|
type: "button",
|
|
770
777
|
onClick: () => {
|
|
771
|
-
|
|
778
|
+
P(!1), I(""), R("idle");
|
|
772
779
|
},
|
|
773
780
|
className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
|
|
774
|
-
children: /* @__PURE__ */ v
|
|
781
|
+
children: /* @__PURE__ */ y(v, { className: "h-5 w-5" })
|
|
775
782
|
}),
|
|
776
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ b("h3", {
|
|
777
784
|
className: "mb-4 text-base font-semibold text-text-primary sm:text-lg",
|
|
778
|
-
children: ["Invest in ",
|
|
785
|
+
children: ["Invest in ", j.cartName]
|
|
779
786
|
}),
|
|
780
|
-
|
|
787
|
+
L === "success" ? /* @__PURE__ */ b("div", {
|
|
781
788
|
className: "py-8 text-center",
|
|
782
789
|
children: [
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ y(u, { className: "mx-auto mb-3 h-12 w-12 text-status-success-text" }),
|
|
791
|
+
/* @__PURE__ */ y("p", {
|
|
785
792
|
className: "text-sm font-medium text-text-primary",
|
|
786
793
|
children: "Investment successful!"
|
|
787
794
|
}),
|
|
788
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ y("p", {
|
|
789
796
|
className: "mt-1 text-xs text-text-secondary",
|
|
790
797
|
children: "Redirecting to your portfolio..."
|
|
791
798
|
})
|
|
792
799
|
]
|
|
793
|
-
}) : /* @__PURE__ */
|
|
800
|
+
}) : /* @__PURE__ */ b("div", {
|
|
794
801
|
className: "space-y-4",
|
|
795
802
|
children: [
|
|
796
|
-
/* @__PURE__ */
|
|
803
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
797
804
|
className: "mb-1 text-xs text-text-secondary sm:text-sm",
|
|
798
805
|
children: "Investment Range"
|
|
799
|
-
}), /* @__PURE__ */
|
|
806
|
+
}), /* @__PURE__ */ b("p", {
|
|
800
807
|
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
801
808
|
children: [
|
|
802
|
-
i(
|
|
809
|
+
i(j.minimumInvestment, { minimumFractionDigits: 0 }),
|
|
803
810
|
" ",
|
|
804
811
|
"-",
|
|
805
812
|
" ",
|
|
806
|
-
i(
|
|
813
|
+
i(j.maximumInvestment, { minimumFractionDigits: 0 })
|
|
807
814
|
]
|
|
808
815
|
})] }),
|
|
809
|
-
/* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ b("div", { children: [
|
|
817
|
+
/* @__PURE__ */ y("label", {
|
|
811
818
|
className: "mb-1 block text-xs font-medium text-text-primary sm:text-sm",
|
|
812
819
|
children: "Investment Amount"
|
|
813
820
|
}),
|
|
814
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ b("div", {
|
|
815
822
|
className: "relative",
|
|
816
|
-
children: [/* @__PURE__ */
|
|
823
|
+
children: [/* @__PURE__ */ y(p, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ y("input", {
|
|
817
824
|
type: "number",
|
|
818
|
-
value:
|
|
825
|
+
value: F,
|
|
819
826
|
onChange: (e) => {
|
|
820
|
-
|
|
827
|
+
I(e.target.value), R("idle");
|
|
821
828
|
},
|
|
822
829
|
placeholder: "Enter amount",
|
|
823
|
-
className: "w-full rounded-lg border border-border-
|
|
830
|
+
className: "w-full rounded-lg border border-border-seam bg-bg-surface py-2 pl-10 pr-4 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
824
831
|
})]
|
|
825
832
|
}),
|
|
826
|
-
|
|
827
|
-
className: "mt-1 text-xs text-
|
|
833
|
+
L === "error" && /* @__PURE__ */ b("p", {
|
|
834
|
+
className: "mt-1 text-xs text-status-error-text",
|
|
828
835
|
children: [
|
|
829
836
|
"Amount must be between",
|
|
830
837
|
" ",
|
|
831
|
-
i(
|
|
838
|
+
i(j.minimumInvestment, { minimumFractionDigits: 0 }),
|
|
832
839
|
" ",
|
|
833
840
|
"and",
|
|
834
841
|
" ",
|
|
835
|
-
i(
|
|
842
|
+
i(j.maximumInvestment, { minimumFractionDigits: 0 })
|
|
836
843
|
]
|
|
837
844
|
})
|
|
838
845
|
] }),
|
|
839
|
-
|
|
840
|
-
className: "rounded-lg border border-border-
|
|
841
|
-
children: [/* @__PURE__ */
|
|
846
|
+
F && !isNaN(parseInt(F, 10)) && parseInt(F, 10) > 0 && /* @__PURE__ */ b("div", {
|
|
847
|
+
className: "rounded-lg border border-border-seam bg-bg-sunken/50 p-3 sm:p-4",
|
|
848
|
+
children: [/* @__PURE__ */ y("p", {
|
|
842
849
|
className: "mb-2 text-xs text-text-secondary sm:text-sm",
|
|
843
850
|
children: "Expected Returns"
|
|
844
|
-
}), /* @__PURE__ */
|
|
851
|
+
}), /* @__PURE__ */ b("div", {
|
|
845
852
|
className: "space-y-1.5",
|
|
846
853
|
children: [
|
|
847
|
-
/* @__PURE__ */
|
|
854
|
+
/* @__PURE__ */ b("div", {
|
|
848
855
|
className: "flex justify-between",
|
|
849
|
-
children: [/* @__PURE__ */
|
|
856
|
+
children: [/* @__PURE__ */ y("span", {
|
|
850
857
|
className: "text-xs text-text-primary sm:text-sm",
|
|
851
858
|
children: "Investment:"
|
|
852
|
-
}), /* @__PURE__ */
|
|
859
|
+
}), /* @__PURE__ */ y("span", {
|
|
853
860
|
className: "text-xs font-medium text-text-primary sm:text-sm",
|
|
854
|
-
children: i(parseInt(
|
|
861
|
+
children: i(parseInt(F, 10), { minimumFractionDigits: 0 })
|
|
855
862
|
})]
|
|
856
863
|
}),
|
|
857
|
-
/* @__PURE__ */
|
|
864
|
+
/* @__PURE__ */ b("div", {
|
|
858
865
|
className: "flex justify-between",
|
|
859
|
-
children: [/* @__PURE__ */
|
|
866
|
+
children: [/* @__PURE__ */ b("span", {
|
|
860
867
|
className: "text-xs text-text-primary sm:text-sm",
|
|
861
868
|
children: [
|
|
862
869
|
"Expected Return (",
|
|
863
|
-
|
|
870
|
+
j.expectedReturns,
|
|
864
871
|
"%):"
|
|
865
872
|
]
|
|
866
|
-
}), /* @__PURE__ */
|
|
867
|
-
className: "text-xs font-medium text-
|
|
868
|
-
children: ["+", i(parseInt(
|
|
873
|
+
}), /* @__PURE__ */ b("span", {
|
|
874
|
+
className: "text-xs font-medium text-status-success-text sm:text-sm",
|
|
875
|
+
children: ["+", i(parseInt(F, 10) * j.expectedReturns / 100, { minimumFractionDigits: 0 })]
|
|
869
876
|
})]
|
|
870
877
|
}),
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
className: "flex justify-between border-t border-border-
|
|
873
|
-
children: [/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ b("div", {
|
|
879
|
+
className: "flex justify-between border-t border-border-seam pt-2",
|
|
880
|
+
children: [/* @__PURE__ */ y("span", {
|
|
874
881
|
className: "text-xs font-medium text-text-primary sm:text-sm",
|
|
875
882
|
children: "Total Value:"
|
|
876
|
-
}), /* @__PURE__ */
|
|
883
|
+
}), /* @__PURE__ */ y("span", {
|
|
877
884
|
className: "text-xs font-bold text-text-primary sm:text-sm",
|
|
878
|
-
children: i(parseInt(
|
|
885
|
+
children: i(parseInt(F, 10) * (1 + j.expectedReturns / 100), { minimumFractionDigits: 0 })
|
|
879
886
|
})]
|
|
880
887
|
})
|
|
881
888
|
]
|
|
882
889
|
})]
|
|
883
890
|
}),
|
|
884
|
-
/* @__PURE__ */
|
|
891
|
+
/* @__PURE__ */ b("div", {
|
|
885
892
|
className: "space-y-1 text-xs text-text-secondary sm:text-sm",
|
|
886
893
|
children: [
|
|
887
|
-
/* @__PURE__ */
|
|
894
|
+
/* @__PURE__ */ b("p", { children: [
|
|
888
895
|
"• Minimum lock-in period:",
|
|
889
896
|
" ",
|
|
890
|
-
|
|
897
|
+
j.investmentTerms.lockInPeriod,
|
|
891
898
|
" months"
|
|
892
899
|
] }),
|
|
893
|
-
/* @__PURE__ */
|
|
900
|
+
/* @__PURE__ */ b("p", { children: [
|
|
894
901
|
"• Dividend frequency:",
|
|
895
902
|
" ",
|
|
896
|
-
|
|
903
|
+
j.investmentTerms.dividendFrequency
|
|
897
904
|
] }),
|
|
898
|
-
/* @__PURE__ */
|
|
905
|
+
/* @__PURE__ */ b("p", { children: [
|
|
899
906
|
"• Your equity stake:",
|
|
900
907
|
" ",
|
|
901
|
-
((parseInt(
|
|
908
|
+
((parseInt(F, 10) || 0) / j.targetAmount * j.investmentTerms.equityOffered).toFixed(2),
|
|
902
909
|
"%"
|
|
903
910
|
] }),
|
|
904
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ b("p", { children: [
|
|
905
912
|
"• Exit options:",
|
|
906
913
|
" ",
|
|
907
|
-
|
|
914
|
+
j.investmentTerms.exitOptions.join(", ")
|
|
908
915
|
] })
|
|
909
916
|
]
|
|
910
917
|
}),
|
|
911
|
-
/* @__PURE__ */
|
|
918
|
+
/* @__PURE__ */ b("div", {
|
|
912
919
|
className: "flex flex-col gap-2 pt-2 sm:flex-row sm:gap-3",
|
|
913
|
-
children: [/* @__PURE__ */
|
|
920
|
+
children: [/* @__PURE__ */ y("button", {
|
|
914
921
|
type: "button",
|
|
915
922
|
onClick: () => {
|
|
916
|
-
|
|
923
|
+
P(!1), I(""), R("idle");
|
|
917
924
|
},
|
|
918
|
-
className: "flex-1 rounded-lg border border-border-
|
|
925
|
+
className: "flex-1 rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
919
926
|
children: "Cancel"
|
|
920
|
-
}), /* @__PURE__ */
|
|
927
|
+
}), /* @__PURE__ */ y("button", {
|
|
921
928
|
type: "button",
|
|
922
|
-
onClick:
|
|
923
|
-
disabled: !
|
|
924
|
-
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", !
|
|
929
|
+
onClick: U,
|
|
930
|
+
disabled: !F || isNaN(parseInt(F, 10)) || parseInt(F, 10) < j.minimumInvestment,
|
|
931
|
+
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", !F || isNaN(parseInt(F, 10)) || parseInt(F, 10) < j.minimumInvestment ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
925
932
|
children: "Confirm Investment"
|
|
926
933
|
})]
|
|
927
934
|
})
|
|
@@ -934,6 +941,6 @@ function T() {
|
|
|
934
941
|
});
|
|
935
942
|
}
|
|
936
943
|
//#endregion
|
|
937
|
-
export {
|
|
944
|
+
export { O as InvestmentOpportunitiesPage };
|
|
938
945
|
|
|
939
946
|
//# sourceMappingURL=InvestmentOpportunitiesPage.js.map
|