@burdenoff/microfe-subscriberbot 2026.615.1 → 2026.625.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/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/subscriberbot/components/EmptyState.js +20 -13
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +29 -28
- package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +18 -15
- package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.js +27 -15
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/RatingDisplay.js +3 -3
- package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.js +26 -14
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/pages/HomePage.js +109 -105
- package/dist/subscriberbot/pages/HomePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +87 -87
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +102 -101
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +48 -48
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +96 -96
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +34 -34
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +40 -40
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +104 -104
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +99 -99
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +117 -117
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +34 -34
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +158 -153
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +117 -117
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +89 -89
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +109 -109
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +90 -89
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +97 -97
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +138 -138
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +67 -66
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +116 -116
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +73 -72
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +89 -88
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +68 -66
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +80 -80
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +89 -88
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +84 -84
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +92 -91
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +34 -33
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +45 -43
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +61 -60
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +59 -58
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +49 -48
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +47 -46
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +129 -129
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +90 -88
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +88 -88
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +63 -62
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +39 -38
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +66 -66
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +154 -154
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +80 -79
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +107 -106
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +73 -72
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +108 -108
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +71 -69
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/dist/subscriberbot/utils/cn.js +2 -2
- package/package.json +3 -3
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -224,9 +224,9 @@ var b = [
|
|
|
224
224
|
};
|
|
225
225
|
function S(e) {
|
|
226
226
|
switch (e) {
|
|
227
|
-
case "low": return "bg-
|
|
228
|
-
case "medium": return "bg-
|
|
229
|
-
case "high": return "bg-
|
|
227
|
+
case "low": return "bg-status-success-bg/20 text-status-success-text";
|
|
228
|
+
case "medium": return "bg-status-warning-bg/20 text-status-warning-text";
|
|
229
|
+
case "high": return "bg-status-error-bg/20 text-status-error-text";
|
|
230
230
|
default: return "bg-secondary text-secondary-foreground";
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -316,7 +316,7 @@ function T() {
|
|
|
316
316
|
children: /* @__PURE__ */ y("div", {
|
|
317
317
|
className: "text-center",
|
|
318
318
|
children: [/* @__PURE__ */ v("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-primary" }), /* @__PURE__ */ v("p", {
|
|
319
|
-
className: "text-sm text-
|
|
319
|
+
className: "text-sm text-text-secondary",
|
|
320
320
|
children: "Loading opportunities..."
|
|
321
321
|
})]
|
|
322
322
|
})
|
|
@@ -324,8 +324,9 @@ function T() {
|
|
|
324
324
|
}) : /* @__PURE__ */ y(n, {
|
|
325
325
|
title: "Investment Opportunities",
|
|
326
326
|
description: "Discover and invest in growing local businesses",
|
|
327
|
+
titleGradient: !0,
|
|
327
328
|
actions: /* @__PURE__ */ y("span", {
|
|
328
|
-
className: "text-sm text-
|
|
329
|
+
className: "text-sm text-text-secondary",
|
|
329
330
|
children: [z.length, " opportunities"]
|
|
330
331
|
}),
|
|
331
332
|
children: [
|
|
@@ -333,32 +334,32 @@ function T() {
|
|
|
333
334
|
className: "grid grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4",
|
|
334
335
|
children: [
|
|
335
336
|
/* @__PURE__ */ y("div", {
|
|
336
|
-
className: "rounded-lg border border-border bg-
|
|
337
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 sm:p-4",
|
|
337
338
|
children: [/* @__PURE__ */ v("p", {
|
|
338
|
-
className: "text-xs text-
|
|
339
|
+
className: "text-xs text-text-secondary",
|
|
339
340
|
children: "Active Opportunities"
|
|
340
341
|
}), /* @__PURE__ */ v("p", {
|
|
341
|
-
className: "text-lg font-bold text-
|
|
342
|
+
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
342
343
|
children: x.totalOpportunities
|
|
343
344
|
})]
|
|
344
345
|
}),
|
|
345
346
|
/* @__PURE__ */ y("div", {
|
|
346
|
-
className: "rounded-lg border border-border bg-
|
|
347
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 sm:p-4",
|
|
347
348
|
children: [/* @__PURE__ */ v("p", {
|
|
348
|
-
className: "text-xs text-
|
|
349
|
+
className: "text-xs text-text-secondary",
|
|
349
350
|
children: "Average Returns"
|
|
350
351
|
}), /* @__PURE__ */ y("p", {
|
|
351
|
-
className: "text-lg font-bold text-
|
|
352
|
+
className: "text-lg font-bold text-status-success-text sm:text-2xl",
|
|
352
353
|
children: [x.averageReturns, "%"]
|
|
353
354
|
})]
|
|
354
355
|
}),
|
|
355
356
|
/* @__PURE__ */ y("div", {
|
|
356
|
-
className: "rounded-lg border border-border bg-
|
|
357
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 sm:p-4",
|
|
357
358
|
children: [/* @__PURE__ */ v("p", {
|
|
358
|
-
className: "text-xs text-
|
|
359
|
+
className: "text-xs text-text-secondary",
|
|
359
360
|
children: "Total Funded"
|
|
360
361
|
}), /* @__PURE__ */ v("p", {
|
|
361
|
-
className: "text-lg font-bold text-
|
|
362
|
+
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
362
363
|
children: i(x.totalFunded, {
|
|
363
364
|
minimumFractionDigits: 0,
|
|
364
365
|
notation: "compact"
|
|
@@ -366,36 +367,36 @@ function T() {
|
|
|
366
367
|
})]
|
|
367
368
|
}),
|
|
368
369
|
/* @__PURE__ */ y("div", {
|
|
369
|
-
className: "rounded-lg border border-border bg-
|
|
370
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3 sm:p-4",
|
|
370
371
|
children: [/* @__PURE__ */ v("p", {
|
|
371
|
-
className: "text-xs text-
|
|
372
|
+
className: "text-xs text-text-secondary",
|
|
372
373
|
children: "Success Rate"
|
|
373
374
|
}), /* @__PURE__ */ y("p", {
|
|
374
|
-
className: "text-lg font-bold text-
|
|
375
|
+
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
375
376
|
children: [x.successRate, "%"]
|
|
376
377
|
})]
|
|
377
378
|
})
|
|
378
379
|
]
|
|
379
380
|
}),
|
|
380
381
|
/* @__PURE__ */ v("div", {
|
|
381
|
-
className: "mt-6 rounded-lg border border-border bg-
|
|
382
|
+
className: "mt-6 rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6",
|
|
382
383
|
children: /* @__PURE__ */ y("div", {
|
|
383
384
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6",
|
|
384
385
|
children: [
|
|
385
386
|
/* @__PURE__ */ y("div", {
|
|
386
387
|
className: "relative sm:col-span-2 lg:col-span-1",
|
|
387
|
-
children: [/* @__PURE__ */ v(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
388
|
+
children: [/* @__PURE__ */ v(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ v("input", {
|
|
388
389
|
type: "text",
|
|
389
390
|
placeholder: "Search opportunities...",
|
|
390
391
|
value: I.searchQuery,
|
|
391
392
|
onChange: (e) => R("searchQuery", e.target.value),
|
|
392
|
-
className: "w-full rounded-lg border border-border bg-
|
|
393
|
+
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
394
|
})]
|
|
394
395
|
}),
|
|
395
396
|
/* @__PURE__ */ y("select", {
|
|
396
397
|
value: I.category,
|
|
397
398
|
onChange: (e) => R("category", e.target.value),
|
|
398
|
-
className: "rounded-lg border border-border bg-
|
|
399
|
+
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
400
|
children: [
|
|
400
401
|
/* @__PURE__ */ v("option", {
|
|
401
402
|
value: "",
|
|
@@ -426,7 +427,7 @@ function T() {
|
|
|
426
427
|
/* @__PURE__ */ y("select", {
|
|
427
428
|
value: I.riskLevel,
|
|
428
429
|
onChange: (e) => R("riskLevel", e.target.value),
|
|
429
|
-
className: "rounded-lg border border-border bg-
|
|
430
|
+
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
431
|
children: [
|
|
431
432
|
/* @__PURE__ */ v("option", {
|
|
432
433
|
value: "",
|
|
@@ -449,7 +450,7 @@ function T() {
|
|
|
449
450
|
/* @__PURE__ */ y("select", {
|
|
450
451
|
value: I.minimumAmount,
|
|
451
452
|
onChange: (e) => R("minimumAmount", e.target.value),
|
|
452
|
-
className: "rounded-lg border border-border bg-
|
|
453
|
+
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
454
|
children: [
|
|
454
455
|
/* @__PURE__ */ v("option", {
|
|
455
456
|
value: "",
|
|
@@ -476,7 +477,7 @@ function T() {
|
|
|
476
477
|
/* @__PURE__ */ y("select", {
|
|
477
478
|
value: I.location,
|
|
478
479
|
onChange: (e) => R("location", e.target.value),
|
|
479
|
-
className: "rounded-lg border border-border bg-
|
|
480
|
+
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
481
|
children: [
|
|
481
482
|
/* @__PURE__ */ v("option", {
|
|
482
483
|
value: "",
|
|
@@ -503,7 +504,7 @@ function T() {
|
|
|
503
504
|
/* @__PURE__ */ y("select", {
|
|
504
505
|
value: I.sortBy,
|
|
505
506
|
onChange: (e) => R("sortBy", e.target.value),
|
|
506
|
-
className: "rounded-lg border border-border bg-
|
|
507
|
+
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
508
|
children: [
|
|
508
509
|
/* @__PURE__ */ v("option", {
|
|
509
510
|
value: "featured",
|
|
@@ -533,6 +534,7 @@ function T() {
|
|
|
533
534
|
z.length === 0 ? /* @__PURE__ */ v("div", {
|
|
534
535
|
className: "mt-6",
|
|
535
536
|
children: /* @__PURE__ */ v(r, {
|
|
537
|
+
illustration: "empty-search",
|
|
536
538
|
icon: /* @__PURE__ */ v(h, { className: "h-10 w-10" }),
|
|
537
539
|
title: "No opportunities found",
|
|
538
540
|
description: "Try adjusting your filters to find more opportunities",
|
|
@@ -546,7 +548,7 @@ function T() {
|
|
|
546
548
|
location: "",
|
|
547
549
|
sortBy: "featured"
|
|
548
550
|
}),
|
|
549
|
-
className: "rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-
|
|
551
|
+
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",
|
|
550
552
|
children: "Clear Filters"
|
|
551
553
|
})
|
|
552
554
|
})
|
|
@@ -555,12 +557,12 @@ function T() {
|
|
|
555
557
|
children: z.map((e) => {
|
|
556
558
|
let n = w(e.raisedAmount, e.targetAmount);
|
|
557
559
|
return /* @__PURE__ */ y("div", {
|
|
558
|
-
className: "rounded-lg border border-border bg-
|
|
560
|
+
className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm hover:shadow-md transition-shadow",
|
|
559
561
|
children: [/* @__PURE__ */ y("div", {
|
|
560
562
|
className: "relative",
|
|
561
563
|
children: [
|
|
562
564
|
/* @__PURE__ */ v("div", {
|
|
563
|
-
className: "h-40 w-full overflow-hidden rounded-t-lg bg-
|
|
565
|
+
className: "h-40 w-full overflow-hidden rounded-t-lg bg-bg-sunken sm:h-48",
|
|
564
566
|
children: /* @__PURE__ */ v("img", {
|
|
565
567
|
src: e.image,
|
|
566
568
|
alt: e.cartName,
|
|
@@ -569,11 +571,11 @@ function T() {
|
|
|
569
571
|
})
|
|
570
572
|
}),
|
|
571
573
|
e.status === "funded" && /* @__PURE__ */ v("div", {
|
|
572
|
-
className: "absolute right-2 top-2 rounded-full bg-
|
|
574
|
+
className: "absolute right-2 top-2 rounded-full bg-status-success-text px-2 py-1 text-xs font-medium text-text-inverse sm:right-4 sm:top-4 sm:px-3",
|
|
573
575
|
children: "Fully Funded"
|
|
574
576
|
}),
|
|
575
577
|
e.daysLeft > 0 && e.daysLeft <= 7 && /* @__PURE__ */ y("div", {
|
|
576
|
-
className: "absolute left-2 top-2 rounded-full bg-
|
|
578
|
+
className: "absolute left-2 top-2 rounded-full bg-status-error-text px-2 py-1 text-xs font-medium text-text-inverse sm:left-4 sm:top-4 sm:px-3",
|
|
577
579
|
children: [e.daysLeft, " days left"]
|
|
578
580
|
})
|
|
579
581
|
]
|
|
@@ -586,17 +588,17 @@ function T() {
|
|
|
586
588
|
className: "flex-1",
|
|
587
589
|
children: [
|
|
588
590
|
/* @__PURE__ */ v("h3", {
|
|
589
|
-
className: "text-base font-semibold text-
|
|
591
|
+
className: "text-base font-semibold text-text-primary sm:text-xl",
|
|
590
592
|
children: e.cartName
|
|
591
593
|
}),
|
|
592
594
|
/* @__PURE__ */ y("p", {
|
|
593
|
-
className: "text-xs text-
|
|
595
|
+
className: "text-xs text-text-secondary sm:text-sm",
|
|
594
596
|
children: ["by ", e.cartOwner]
|
|
595
597
|
}),
|
|
596
598
|
/* @__PURE__ */ y("div", {
|
|
597
599
|
className: "mt-2 flex flex-wrap items-center gap-2",
|
|
598
600
|
children: [/* @__PURE__ */ v("span", {
|
|
599
|
-
className: "text-xs text-
|
|
601
|
+
className: "text-xs text-text-secondary sm:text-sm",
|
|
600
602
|
children: e.category
|
|
601
603
|
}), /* @__PURE__ */ v("span", {
|
|
602
604
|
className: t("rounded-full px-2 py-0.5 text-xs font-medium", S(e.riskLevel)),
|
|
@@ -607,16 +609,16 @@ function T() {
|
|
|
607
609
|
}), /* @__PURE__ */ y("div", {
|
|
608
610
|
className: "text-left sm:text-right",
|
|
609
611
|
children: [/* @__PURE__ */ y("p", {
|
|
610
|
-
className: "text-xl font-bold text-
|
|
612
|
+
className: "text-xl font-bold text-status-success-text sm:text-2xl",
|
|
611
613
|
children: [e.expectedReturns, "%"]
|
|
612
614
|
}), /* @__PURE__ */ v("p", {
|
|
613
|
-
className: "text-xs text-
|
|
615
|
+
className: "text-xs text-text-secondary",
|
|
614
616
|
children: "Expected Returns"
|
|
615
617
|
})]
|
|
616
618
|
})]
|
|
617
619
|
}),
|
|
618
620
|
/* @__PURE__ */ v("p", {
|
|
619
|
-
className: "mb-4 text-sm leading-relaxed text-
|
|
621
|
+
className: "mb-4 text-sm leading-relaxed text-text-secondary line-clamp-2",
|
|
620
622
|
children: e.description
|
|
621
623
|
}),
|
|
622
624
|
/* @__PURE__ */ y("div", {
|
|
@@ -625,26 +627,26 @@ function T() {
|
|
|
625
627
|
/* @__PURE__ */ y("div", {
|
|
626
628
|
className: "mb-1 flex justify-between text-xs sm:text-sm",
|
|
627
629
|
children: [/* @__PURE__ */ y("span", {
|
|
628
|
-
className: "font-medium text-
|
|
630
|
+
className: "font-medium text-text-primary",
|
|
629
631
|
children: [
|
|
630
632
|
i(e.raisedAmount, { minimumFractionDigits: 0 }),
|
|
631
633
|
" ",
|
|
632
634
|
"raised"
|
|
633
635
|
]
|
|
634
636
|
}), /* @__PURE__ */ y("span", {
|
|
635
|
-
className: "text-
|
|
637
|
+
className: "text-text-secondary",
|
|
636
638
|
children: ["of ", i(e.targetAmount, { minimumFractionDigits: 0 })]
|
|
637
639
|
})]
|
|
638
640
|
}),
|
|
639
641
|
/* @__PURE__ */ v("div", {
|
|
640
|
-
className: "h-2 w-full overflow-hidden rounded-full bg-
|
|
642
|
+
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
641
643
|
children: /* @__PURE__ */ v("div", {
|
|
642
|
-
className: "h-full rounded-full bg-primary transition-all duration-300",
|
|
644
|
+
className: "h-full rounded-full bg-action-primary-bg transition-all duration-300",
|
|
643
645
|
style: { width: `${n}%` }
|
|
644
646
|
})
|
|
645
647
|
}),
|
|
646
648
|
/* @__PURE__ */ y("div", {
|
|
647
|
-
className: "mt-1 flex justify-between text-xs text-
|
|
649
|
+
className: "mt-1 flex justify-between text-xs text-text-secondary",
|
|
648
650
|
children: [/* @__PURE__ */ y("span", { children: [e.investorCount, " investors"] }), /* @__PURE__ */ y("span", { children: [n.toFixed(0), "% funded"] })]
|
|
649
651
|
})
|
|
650
652
|
]
|
|
@@ -653,35 +655,35 @@ function T() {
|
|
|
653
655
|
className: "mb-4 grid grid-cols-3 gap-2 text-center sm:gap-4",
|
|
654
656
|
children: [
|
|
655
657
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
656
|
-
className: "text-sm font-bold text-
|
|
658
|
+
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
657
659
|
children: i(e.minimumInvestment, { minimumFractionDigits: 0 })
|
|
658
660
|
}), /* @__PURE__ */ v("p", {
|
|
659
|
-
className: "text-xs text-
|
|
661
|
+
className: "text-xs text-text-secondary",
|
|
660
662
|
children: "Min Investment"
|
|
661
663
|
})] }),
|
|
662
664
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("p", {
|
|
663
|
-
className: "text-sm font-bold text-
|
|
665
|
+
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
664
666
|
children: [e.paybackPeriod, " mo"]
|
|
665
667
|
}), /* @__PURE__ */ v("p", {
|
|
666
|
-
className: "text-xs text-
|
|
668
|
+
className: "text-xs text-text-secondary",
|
|
667
669
|
children: "Payback Period"
|
|
668
670
|
})] }),
|
|
669
671
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
|
|
670
672
|
className: "flex items-center justify-center gap-1",
|
|
671
|
-
children: [/* @__PURE__ */ v(g, { className: "h-3.5 w-3.5 fill-
|
|
672
|
-
className: "text-sm font-bold text-
|
|
673
|
+
children: [/* @__PURE__ */ v(g, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ v("p", {
|
|
674
|
+
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
673
675
|
children: e.businessMetrics.rating
|
|
674
676
|
})]
|
|
675
677
|
}), /* @__PURE__ */ v("p", {
|
|
676
|
-
className: "text-xs text-
|
|
678
|
+
className: "text-xs text-text-secondary",
|
|
677
679
|
children: "Rating"
|
|
678
680
|
})] })
|
|
679
681
|
]
|
|
680
682
|
}),
|
|
681
683
|
/* @__PURE__ */ y("div", {
|
|
682
|
-
className: "mb-4 border-t border-border pt-3 sm:pt-4",
|
|
684
|
+
className: "mb-4 border-t border-border-seam pt-3 sm:pt-4",
|
|
683
685
|
children: [/* @__PURE__ */ v("p", {
|
|
684
|
-
className: "mb-2 text-xs font-medium text-
|
|
686
|
+
className: "mb-2 text-xs font-medium text-text-secondary sm:text-sm",
|
|
685
687
|
children: "Business Performance"
|
|
686
688
|
}), /* @__PURE__ */ y("div", {
|
|
687
689
|
className: "grid grid-cols-1 gap-2 text-xs sm:grid-cols-2 sm:text-sm",
|
|
@@ -689,40 +691,40 @@ function T() {
|
|
|
689
691
|
/* @__PURE__ */ y("div", {
|
|
690
692
|
className: "flex justify-between",
|
|
691
693
|
children: [/* @__PURE__ */ v("span", {
|
|
692
|
-
className: "text-
|
|
694
|
+
className: "text-text-secondary",
|
|
693
695
|
children: "Monthly Revenue:"
|
|
694
696
|
}), /* @__PURE__ */ v("span", {
|
|
695
|
-
className: "font-medium text-
|
|
697
|
+
className: "font-medium text-text-primary",
|
|
696
698
|
children: i(e.businessMetrics.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
697
699
|
})]
|
|
698
700
|
}),
|
|
699
701
|
/* @__PURE__ */ y("div", {
|
|
700
702
|
className: "flex justify-between",
|
|
701
703
|
children: [/* @__PURE__ */ v("span", {
|
|
702
|
-
className: "text-
|
|
704
|
+
className: "text-text-secondary",
|
|
703
705
|
children: "Gross Margin:"
|
|
704
706
|
}), /* @__PURE__ */ y("span", {
|
|
705
|
-
className: "font-medium text-
|
|
707
|
+
className: "font-medium text-text-primary",
|
|
706
708
|
children: [e.financials.grossMargin, "%"]
|
|
707
709
|
})]
|
|
708
710
|
}),
|
|
709
711
|
/* @__PURE__ */ y("div", {
|
|
710
712
|
className: "flex justify-between",
|
|
711
713
|
children: [/* @__PURE__ */ v("span", {
|
|
712
|
-
className: "text-
|
|
714
|
+
className: "text-text-secondary",
|
|
713
715
|
children: "Monthly Orders:"
|
|
714
716
|
}), /* @__PURE__ */ v("span", {
|
|
715
|
-
className: "font-medium text-
|
|
717
|
+
className: "font-medium text-text-primary",
|
|
716
718
|
children: a(e.businessMetrics.monthlyOrders)
|
|
717
719
|
})]
|
|
718
720
|
}),
|
|
719
721
|
/* @__PURE__ */ y("div", {
|
|
720
722
|
className: "flex justify-between",
|
|
721
723
|
children: [/* @__PURE__ */ v("span", {
|
|
722
|
-
className: "text-
|
|
724
|
+
className: "text-text-secondary",
|
|
723
725
|
children: "Net Margin:"
|
|
724
726
|
}), /* @__PURE__ */ y("span", {
|
|
725
|
-
className: "font-medium text-
|
|
727
|
+
className: "font-medium text-text-primary",
|
|
726
728
|
children: [e.financials.netMargin, "%"]
|
|
727
729
|
})]
|
|
728
730
|
})
|
|
@@ -730,14 +732,14 @@ function T() {
|
|
|
730
732
|
})]
|
|
731
733
|
}),
|
|
732
734
|
/* @__PURE__ */ v("div", {
|
|
733
|
-
className: "mb-4 border-t border-border pt-3",
|
|
735
|
+
className: "mb-4 border-t border-border-seam pt-3",
|
|
734
736
|
children: /* @__PURE__ */ y("div", {
|
|
735
|
-
className: "flex items-center gap-1.5 text-xs text-
|
|
737
|
+
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
736
738
|
children: [/* @__PURE__ */ v(f, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ y("span", { children: [e.documents.length, " documents available"] })]
|
|
737
739
|
})
|
|
738
740
|
}),
|
|
739
741
|
/* @__PURE__ */ y("div", {
|
|
740
|
-
className: "mb-4 flex items-center gap-1.5 text-xs text-
|
|
742
|
+
className: "mb-4 flex items-center gap-1.5 text-xs text-text-secondary",
|
|
741
743
|
children: [/* @__PURE__ */ v(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ v("span", { children: e.location })]
|
|
742
744
|
}),
|
|
743
745
|
/* @__PURE__ */ y("div", {
|
|
@@ -746,12 +748,12 @@ function T() {
|
|
|
746
748
|
type: "button",
|
|
747
749
|
onClick: () => V(e),
|
|
748
750
|
disabled: e.status === "funded",
|
|
749
|
-
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", e.status === "funded" ? "cursor-not-allowed bg-
|
|
751
|
+
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
752
|
children: e.status === "funded" ? "Fully Funded" : "Invest Now"
|
|
751
753
|
}), /* @__PURE__ */ y("button", {
|
|
752
754
|
type: "button",
|
|
753
755
|
onClick: () => T(`/investor/opportunities/${e.id}`),
|
|
754
|
-
className: "flex flex-1 items-center justify-center gap-2 rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-
|
|
756
|
+
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",
|
|
755
757
|
children: [/* @__PURE__ */ v(d, { className: "h-4 w-4" }), "View Details"]
|
|
756
758
|
})]
|
|
757
759
|
})
|
|
@@ -761,32 +763,32 @@ function T() {
|
|
|
761
763
|
})
|
|
762
764
|
}),
|
|
763
765
|
A && O && /* @__PURE__ */ v("div", {
|
|
764
|
-
className: "fixed inset-0 z-50 flex items-center justify-center bg-
|
|
766
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-canvas/50 p-4",
|
|
765
767
|
children: /* @__PURE__ */ y("div", {
|
|
766
|
-
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border bg-
|
|
768
|
+
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
769
|
children: [
|
|
768
770
|
/* @__PURE__ */ v("button", {
|
|
769
771
|
type: "button",
|
|
770
772
|
onClick: () => {
|
|
771
773
|
j(!1), N(""), F("idle");
|
|
772
774
|
},
|
|
773
|
-
className: "absolute right-3 top-3 rounded-lg p-1 text-
|
|
775
|
+
className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
|
|
774
776
|
children: /* @__PURE__ */ v(_, { className: "h-5 w-5" })
|
|
775
777
|
}),
|
|
776
778
|
/* @__PURE__ */ y("h3", {
|
|
777
|
-
className: "mb-4 text-base font-semibold text-
|
|
779
|
+
className: "mb-4 text-base font-semibold text-text-primary sm:text-lg",
|
|
778
780
|
children: ["Invest in ", O.cartName]
|
|
779
781
|
}),
|
|
780
782
|
P === "success" ? /* @__PURE__ */ y("div", {
|
|
781
783
|
className: "py-8 text-center",
|
|
782
784
|
children: [
|
|
783
|
-
/* @__PURE__ */ v(u, { className: "mx-auto mb-3 h-12 w-12 text-
|
|
785
|
+
/* @__PURE__ */ v(u, { className: "mx-auto mb-3 h-12 w-12 text-status-success-text" }),
|
|
784
786
|
/* @__PURE__ */ v("p", {
|
|
785
|
-
className: "text-sm font-medium text-
|
|
787
|
+
className: "text-sm font-medium text-text-primary",
|
|
786
788
|
children: "Investment successful!"
|
|
787
789
|
}),
|
|
788
790
|
/* @__PURE__ */ v("p", {
|
|
789
|
-
className: "mt-1 text-xs text-
|
|
791
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
790
792
|
children: "Redirecting to your portfolio..."
|
|
791
793
|
})
|
|
792
794
|
]
|
|
@@ -794,10 +796,10 @@ function T() {
|
|
|
794
796
|
className: "space-y-4",
|
|
795
797
|
children: [
|
|
796
798
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
797
|
-
className: "mb-1 text-xs text-
|
|
799
|
+
className: "mb-1 text-xs text-text-secondary sm:text-sm",
|
|
798
800
|
children: "Investment Range"
|
|
799
801
|
}), /* @__PURE__ */ y("p", {
|
|
800
|
-
className: "text-sm font-medium text-
|
|
802
|
+
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
801
803
|
children: [
|
|
802
804
|
i(O.minimumInvestment, { minimumFractionDigits: 0 }),
|
|
803
805
|
" ",
|
|
@@ -808,23 +810,23 @@ function T() {
|
|
|
808
810
|
})] }),
|
|
809
811
|
/* @__PURE__ */ y("div", { children: [
|
|
810
812
|
/* @__PURE__ */ v("label", {
|
|
811
|
-
className: "mb-1 block text-xs font-medium text-
|
|
813
|
+
className: "mb-1 block text-xs font-medium text-text-primary sm:text-sm",
|
|
812
814
|
children: "Investment Amount"
|
|
813
815
|
}),
|
|
814
816
|
/* @__PURE__ */ y("div", {
|
|
815
817
|
className: "relative",
|
|
816
|
-
children: [/* @__PURE__ */ v(p, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
818
|
+
children: [/* @__PURE__ */ v(p, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ v("input", {
|
|
817
819
|
type: "number",
|
|
818
820
|
value: M,
|
|
819
821
|
onChange: (e) => {
|
|
820
822
|
N(e.target.value), F("idle");
|
|
821
823
|
},
|
|
822
824
|
placeholder: "Enter amount",
|
|
823
|
-
className: "w-full rounded-lg border border-border bg-
|
|
825
|
+
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
826
|
})]
|
|
825
827
|
}),
|
|
826
828
|
P === "error" && /* @__PURE__ */ y("p", {
|
|
827
|
-
className: "mt-1 text-xs text-
|
|
829
|
+
className: "mt-1 text-xs text-status-error-text",
|
|
828
830
|
children: [
|
|
829
831
|
"Amount must be between",
|
|
830
832
|
" ",
|
|
@@ -837,9 +839,9 @@ function T() {
|
|
|
837
839
|
})
|
|
838
840
|
] }),
|
|
839
841
|
M && !isNaN(parseInt(M, 10)) && parseInt(M, 10) > 0 && /* @__PURE__ */ y("div", {
|
|
840
|
-
className: "rounded-lg border border-border bg-
|
|
842
|
+
className: "rounded-lg border border-border-seam bg-bg-sunken/50 p-3 sm:p-4",
|
|
841
843
|
children: [/* @__PURE__ */ v("p", {
|
|
842
|
-
className: "mb-2 text-xs text-
|
|
844
|
+
className: "mb-2 text-xs text-text-secondary sm:text-sm",
|
|
843
845
|
children: "Expected Returns"
|
|
844
846
|
}), /* @__PURE__ */ y("div", {
|
|
845
847
|
className: "space-y-1.5",
|
|
@@ -847,34 +849,34 @@ function T() {
|
|
|
847
849
|
/* @__PURE__ */ y("div", {
|
|
848
850
|
className: "flex justify-between",
|
|
849
851
|
children: [/* @__PURE__ */ v("span", {
|
|
850
|
-
className: "text-xs text-
|
|
852
|
+
className: "text-xs text-text-primary sm:text-sm",
|
|
851
853
|
children: "Investment:"
|
|
852
854
|
}), /* @__PURE__ */ v("span", {
|
|
853
|
-
className: "text-xs font-medium text-
|
|
855
|
+
className: "text-xs font-medium text-text-primary sm:text-sm",
|
|
854
856
|
children: i(parseInt(M, 10), { minimumFractionDigits: 0 })
|
|
855
857
|
})]
|
|
856
858
|
}),
|
|
857
859
|
/* @__PURE__ */ y("div", {
|
|
858
860
|
className: "flex justify-between",
|
|
859
861
|
children: [/* @__PURE__ */ y("span", {
|
|
860
|
-
className: "text-xs text-
|
|
862
|
+
className: "text-xs text-text-primary sm:text-sm",
|
|
861
863
|
children: [
|
|
862
864
|
"Expected Return (",
|
|
863
865
|
O.expectedReturns,
|
|
864
866
|
"%):"
|
|
865
867
|
]
|
|
866
868
|
}), /* @__PURE__ */ y("span", {
|
|
867
|
-
className: "text-xs font-medium text-
|
|
869
|
+
className: "text-xs font-medium text-status-success-text sm:text-sm",
|
|
868
870
|
children: ["+", i(parseInt(M, 10) * O.expectedReturns / 100, { minimumFractionDigits: 0 })]
|
|
869
871
|
})]
|
|
870
872
|
}),
|
|
871
873
|
/* @__PURE__ */ y("div", {
|
|
872
|
-
className: "flex justify-between border-t border-border pt-2",
|
|
874
|
+
className: "flex justify-between border-t border-border-seam pt-2",
|
|
873
875
|
children: [/* @__PURE__ */ v("span", {
|
|
874
|
-
className: "text-xs font-medium text-
|
|
876
|
+
className: "text-xs font-medium text-text-primary sm:text-sm",
|
|
875
877
|
children: "Total Value:"
|
|
876
878
|
}), /* @__PURE__ */ v("span", {
|
|
877
|
-
className: "text-xs font-bold text-
|
|
879
|
+
className: "text-xs font-bold text-text-primary sm:text-sm",
|
|
878
880
|
children: i(parseInt(M, 10) * (1 + O.expectedReturns / 100), { minimumFractionDigits: 0 })
|
|
879
881
|
})]
|
|
880
882
|
})
|
|
@@ -882,7 +884,7 @@ function T() {
|
|
|
882
884
|
})]
|
|
883
885
|
}),
|
|
884
886
|
/* @__PURE__ */ y("div", {
|
|
885
|
-
className: "space-y-1 text-xs text-
|
|
887
|
+
className: "space-y-1 text-xs text-text-secondary sm:text-sm",
|
|
886
888
|
children: [
|
|
887
889
|
/* @__PURE__ */ y("p", { children: [
|
|
888
890
|
"• Minimum lock-in period:",
|
|
@@ -915,13 +917,13 @@ function T() {
|
|
|
915
917
|
onClick: () => {
|
|
916
918
|
j(!1), N(""), F("idle");
|
|
917
919
|
},
|
|
918
|
-
className: "flex-1 rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-
|
|
920
|
+
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
921
|
children: "Cancel"
|
|
920
922
|
}), /* @__PURE__ */ v("button", {
|
|
921
923
|
type: "button",
|
|
922
924
|
onClick: B,
|
|
923
925
|
disabled: !M || isNaN(parseInt(M, 10)) || parseInt(M, 10) < O.minimumInvestment,
|
|
924
|
-
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", !M || isNaN(parseInt(M, 10)) || parseInt(M, 10) < O.minimumInvestment ? "cursor-not-allowed bg-
|
|
926
|
+
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", !M || isNaN(parseInt(M, 10)) || parseInt(M, 10) < O.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
927
|
children: "Confirm Investment"
|
|
926
928
|
})]
|
|
927
929
|
})
|