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