@burdenoff/microfe-labsofscience 2026.625.1 → 2026.626.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -2,15 +2,16 @@ import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
2
2
  import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
4
  import { EmptyState as r } from "../../components/EmptyState.js";
5
- import { useInvestmentOpportunities as i, useOfferings as a, useProviders as o } from "../../hooks/useLabsOfScienceApi.js";
6
- import { formatCurrency as s, formatDistance as c, formatDuration as l } from "../../utils/formatters.js";
7
- import { useMemo as u, useState as d } from "react";
8
- import { ArrowLeft as f, Calendar as p, CheckCircle2 as m, Clock as h, Flame as g, Home as _, Leaf as v, MapPin as y, Minus as b, Plus as x, Search as S, ShoppingCart as C, Star as w, TrendingUp as ee, X as T } from "lucide-react";
9
- import { useParams as E } from "react-router-dom";
10
- import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
5
+ import { useInvestmentOpportunities as i, useOfferings as ee, useProviders as a } from "../../hooks/useLabsOfScienceApi.js";
6
+ import { formatCurrency as o, formatDistance as s, formatDuration as c } from "../../utils/formatters.js";
7
+ import { useMemo as l, useState as u } from "react";
8
+ import { ArrowLeft as d, Calendar as f, CheckCircle2 as p, Clock as m, Flame as h, Home as g, Leaf as _, MapPin as v, Minus as y, Plus as b, Search as x, ShoppingCart as S, Star as C, TrendingUp as te, X as w } from "lucide-react";
9
+ import { useParams as T } from "react-router-dom";
10
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
11
+ import { EmphasisPanel as k, NextSteps as A, PagePurpose as j } from "@burdenoff/fe-libs/ui";
11
12
  //#region src/labsofscience/pages/customer/CartDetailPage.tsx
12
- function A() {
13
- let { cartId: A } = E(), { navigateTo: j } = e(), { data: M = [], isLoading: te } = o(), { data: N = [], isLoading: ne } = a(A), { data: P = [], isLoading: re } = i(), F = u(() => M.find((e) => e.id === A), [M, A]), I = u(() => P.find((e) => e.cartId === A), [P, A]), [L, R] = d(""), [z, B] = d(""), [V, H] = d([]), [U, W] = d(!1), [G, K] = d(null), q = u(() => N.map((e) => ({
13
+ function M() {
14
+ let { cartId: M } = T(), { navigateTo: N } = e(), { data: P = [], isLoading: ne } = a(), { data: F = [], isLoading: re } = ee(M), { data: I = [], isLoading: ie } = i(), L = l(() => P.find((e) => e.id === M), [P, M]), R = l(() => I.find((e) => e.cartId === M), [I, M]), [z, B] = u(""), [V, H] = u(""), [U, W] = u([]), [G, K] = u(!1), [q, J] = u(null), Y = l(() => F.map((e) => ({
14
15
  id: e.id,
15
16
  name: e.name,
16
17
  price: e.price,
@@ -20,24 +21,24 @@ function A() {
20
21
  isVeg: !0,
21
22
  duration: e.durationMinutes,
22
23
  serviceType: e.serviceType
23
- })), [N]), J = u(() => [...new Set(q.map((e) => e.category))], [q]), Y = u(() => {
24
- let e = q;
25
- if (z && (e = e.filter((e) => e.category === z)), L.trim()) {
26
- let t = L.toLowerCase();
24
+ })), [F]), X = l(() => [...new Set(Y.map((e) => e.category))], [Y]), Z = l(() => {
25
+ let e = Y;
26
+ if (V && (e = e.filter((e) => e.category === V)), z.trim()) {
27
+ let t = z.toLowerCase();
27
28
  e = e.filter((e) => e.name.toLowerCase().includes(t) || e.description.toLowerCase().includes(t));
28
29
  }
29
30
  return e;
30
31
  }, [
31
- q,
32
- z,
33
- L
34
- ]), X = u(() => {
32
+ Y,
33
+ V,
34
+ z
35
+ ]), ae = l(() => {
35
36
  let e = {};
36
- return Y.forEach((t) => {
37
+ return Z.forEach((t) => {
37
38
  e[t.category] || (e[t.category] = []), e[t.category].push(t);
38
39
  }), e;
39
- }, [Y]), Z = (e, t = 1, n) => {
40
- H((r) => r.find((t) => t.productId === e.id) ? r.map((n) => n.productId === e.id ? {
40
+ }, [Z]), oe = (e, t = 1, n) => {
41
+ W((r) => r.find((t) => t.productId === e.id) ? r.map((n) => n.productId === e.id ? {
41
42
  ...n,
42
43
  quantity: n.quantity + t
43
44
  } : n) : [...r, {
@@ -49,64 +50,97 @@ function A() {
49
50
  specialInstructions: n
50
51
  }]);
51
52
  }, Q = (e, t) => {
52
- H((n) => n.map((n) => n.productId === e ? {
53
+ W((n) => n.map((n) => n.productId === e ? {
53
54
  ...n,
54
55
  quantity: Math.max(0, n.quantity + t)
55
56
  } : n).filter((e) => e.quantity > 0));
56
57
  }, $ = (e) => {
57
- H((t) => t.filter((t) => t.productId !== e));
58
- }, ie = (e) => V.find((t) => t.productId === e)?.quantity ?? 0, ae = V.reduce((e, t) => e + t.price * t.quantity, 0), oe = V.reduce((e, t) => e + t.quantity, 0), se = (e) => {
59
- K({
58
+ W((t) => t.filter((t) => t.productId !== e));
59
+ }, se = (e) => U.find((t) => t.productId === e)?.quantity ?? 0, ce = U.reduce((e, t) => e + t.price * t.quantity, 0), le = U.reduce((e, t) => e + t.quantity, 0), ue = (e) => {
60
+ J({
60
61
  product: e,
61
62
  quantity: 1,
62
63
  specialInstructions: ""
63
- }), W(!0);
64
+ }), K(!0);
65
+ }, de = () => {
66
+ q && (oe(q.product, q.quantity, q.specialInstructions), K(!1), J(null), alert(`${q.product.name} added to cart`));
64
67
  };
65
- return F ? /* @__PURE__ */ k(n, {
66
- title: /* @__PURE__ */ k("div", {
68
+ return L ? /* @__PURE__ */ O(n, {
69
+ title: /* @__PURE__ */ O("div", {
67
70
  className: "flex items-center gap-3",
68
71
  children: [
69
- /* @__PURE__ */ O("button", {
72
+ /* @__PURE__ */ D("button", {
70
73
  type: "button",
71
- onClick: () => j("/customer/carts"),
74
+ onClick: () => N("/customer/carts"),
72
75
  className: "rounded-md p-1 text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
73
- children: /* @__PURE__ */ O(f, { className: "h-5 w-5" })
76
+ children: /* @__PURE__ */ D(d, { className: "h-5 w-5" })
74
77
  }),
75
- /* @__PURE__ */ O("span", {
78
+ /* @__PURE__ */ D("span", {
76
79
  className: "truncate",
77
- children: F.name
80
+ children: L.name
78
81
  }),
79
- F.isVerified && /* @__PURE__ */ O(m, { className: "h-5 w-5 text-status-info-text shrink-0" })
82
+ L.isVerified && /* @__PURE__ */ D(p, { className: "h-5 w-5 text-status-info-text shrink-0" })
80
83
  ]
81
84
  }),
82
- description: F.category,
85
+ description: L.category,
83
86
  children: [
84
- /* @__PURE__ */ k("div", {
87
+ /* @__PURE__ */ D(j, {
88
+ icon: /* @__PURE__ */ D(S, { className: "h-4 w-4" }),
89
+ className: "mb-6",
90
+ children: "Browse everything this cart offers and build your order. Search the menu, filter by category, customise items and quantities, then review your order in the panel on the right and head to checkout — you can also book a direct service or explore investing in the cart."
91
+ }),
92
+ /* @__PURE__ */ D(A, {
93
+ storageKey: "labsofscience-cart-detail",
94
+ steps: [
95
+ {
96
+ id: "browse",
97
+ label: "Add items to your order",
98
+ description: "Tap Add on any menu item to start your cart.",
99
+ icon: /* @__PURE__ */ D(b, { className: "h-4 w-4" }),
100
+ onClick: () => document.getElementById("labsofscience-menu")?.scrollIntoView({ behavior: "smooth" })
101
+ },
102
+ {
103
+ id: "checkout",
104
+ label: "Proceed to checkout",
105
+ description: "Review your order and place it once you’re ready.",
106
+ icon: /* @__PURE__ */ D(S, { className: "h-4 w-4" }),
107
+ onClick: () => N("/customer/checkout")
108
+ },
109
+ ...L.serviceTypes?.includes("direct_service") ? [{
110
+ id: "direct",
111
+ label: "Book a direct service",
112
+ description: "Have this cart come to your location.",
113
+ icon: /* @__PURE__ */ D(g, { className: "h-4 w-4" }),
114
+ onClick: () => N(`/customer/carts/${L.id}`)
115
+ }] : []
116
+ ]
117
+ }),
118
+ /* @__PURE__ */ O("div", {
85
119
  className: "relative h-48 rounded-lg bg-bg-sunken overflow-hidden",
86
- children: [/* @__PURE__ */ O("img", {
87
- src: F.image,
88
- alt: F.name,
120
+ children: [/* @__PURE__ */ D("img", {
121
+ src: L.image,
122
+ alt: L.name,
89
123
  className: "h-full w-full object-cover"
90
- }), /* @__PURE__ */ O("div", {
124
+ }), /* @__PURE__ */ D("div", {
91
125
  className: "absolute bottom-0 inset-x-0 bg-gradient-to-t from-black/60 to-transparent p-4",
92
- children: /* @__PURE__ */ k("div", {
126
+ children: /* @__PURE__ */ O("div", {
93
127
  className: "flex items-center gap-3",
94
- children: [/* @__PURE__ */ O("span", {
95
- className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", F.isOpen ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
96
- children: F.isOpen ? "Open Now" : "Closed"
97
- }), /* @__PURE__ */ k("div", {
128
+ children: [/* @__PURE__ */ D("span", {
129
+ className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", L.isOpen ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
130
+ children: L.isOpen ? "Open Now" : "Closed"
131
+ }), /* @__PURE__ */ O("div", {
98
132
  className: "flex items-center gap-1 text-white text-sm",
99
133
  children: [
100
- /* @__PURE__ */ O(w, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
101
- /* @__PURE__ */ O("span", {
134
+ /* @__PURE__ */ D(C, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
135
+ /* @__PURE__ */ D("span", {
102
136
  className: "font-medium",
103
- children: F.rating
137
+ children: L.rating
104
138
  }),
105
- /* @__PURE__ */ k("span", {
139
+ /* @__PURE__ */ O("span", {
106
140
  className: "text-white/70",
107
141
  children: [
108
142
  "(",
109
- F.totalRatings,
143
+ L.totalRatings,
110
144
  ")"
111
145
  ]
112
146
  })
@@ -115,238 +149,238 @@ function A() {
115
149
  })
116
150
  })]
117
151
  }),
118
- !F.isOpen && /* @__PURE__ */ O("div", {
152
+ !L.isOpen && /* @__PURE__ */ D("div", {
119
153
  className: "mt-4 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-3",
120
- children: /* @__PURE__ */ k("p", {
154
+ children: /* @__PURE__ */ O("p", {
121
155
  className: "text-sm text-status-warning-text",
122
- children: [/* @__PURE__ */ O("strong", { children: "This cart is currently closed." }), " You can browse the offerings but orders are not being accepted."]
156
+ children: [/* @__PURE__ */ D("strong", { children: "This cart is currently closed." }), " You can browse the offerings but orders are not being accepted."]
123
157
  })
124
158
  }),
125
- /* @__PURE__ */ k("div", {
159
+ /* @__PURE__ */ O("div", {
126
160
  className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-3",
127
161
  children: [
128
- /* @__PURE__ */ k("div", {
162
+ /* @__PURE__ */ O("div", {
129
163
  className: "rounded-lg border border-border-seam bg-bg-surface p-3",
130
164
  children: [
131
- /* @__PURE__ */ k("div", {
165
+ /* @__PURE__ */ O("div", {
132
166
  className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
133
- children: [/* @__PURE__ */ O(y, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ O("span", {
167
+ children: [/* @__PURE__ */ D(v, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ D("span", {
134
168
  className: "font-medium uppercase tracking-wider",
135
169
  children: "Location"
136
170
  })]
137
171
  }),
138
- /* @__PURE__ */ O("p", {
172
+ /* @__PURE__ */ D("p", {
139
173
  className: "text-sm text-text-primary",
140
- children: F.location.address
174
+ children: L.location.address
141
175
  }),
142
- /* @__PURE__ */ k("p", {
176
+ /* @__PURE__ */ O("p", {
143
177
  className: "text-xs text-text-secondary",
144
- children: [c(F.distance), " away"]
178
+ children: [s(L.distance), " away"]
145
179
  })
146
180
  ]
147
181
  }),
148
- /* @__PURE__ */ k("div", {
182
+ /* @__PURE__ */ O("div", {
149
183
  className: "rounded-lg border border-border-seam bg-bg-surface p-3",
150
184
  children: [
151
- /* @__PURE__ */ k("div", {
185
+ /* @__PURE__ */ O("div", {
152
186
  className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
153
- children: [/* @__PURE__ */ O(h, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ O("span", {
187
+ children: [/* @__PURE__ */ D(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ D("span", {
154
188
  className: "font-medium uppercase tracking-wider",
155
189
  children: "Estimated Time"
156
190
  })]
157
191
  }),
158
- /* @__PURE__ */ O("p", {
192
+ /* @__PURE__ */ D("p", {
159
193
  className: "text-sm text-text-primary",
160
- children: l(F.estimatedTime)
194
+ children: c(L.estimatedTime)
161
195
  }),
162
- F.averageOrderValue && /* @__PURE__ */ k("p", {
196
+ L.averageOrderValue && /* @__PURE__ */ O("p", {
163
197
  className: "text-xs text-text-secondary",
164
- children: ["Avg ", s(F.averageOrderValue, { minimumFractionDigits: 0 })]
198
+ children: ["Avg ", o(L.averageOrderValue, { minimumFractionDigits: 0 })]
165
199
  })
166
200
  ]
167
201
  }),
168
- /* @__PURE__ */ k("div", {
202
+ /* @__PURE__ */ O("div", {
169
203
  className: "rounded-lg border border-border-seam bg-bg-surface p-3",
170
204
  children: [
171
- /* @__PURE__ */ k("div", {
205
+ /* @__PURE__ */ O("div", {
172
206
  className: "flex items-center gap-2 text-text-secondary text-xs mb-1",
173
- children: [/* @__PURE__ */ O(w, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ O("span", {
207
+ children: [/* @__PURE__ */ D(C, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ D("span", {
174
208
  className: "font-medium uppercase tracking-wider",
175
209
  children: "Rating"
176
210
  })]
177
211
  }),
178
- /* @__PURE__ */ k("p", {
212
+ /* @__PURE__ */ O("p", {
179
213
  className: "text-sm text-text-primary",
180
- children: [F.rating, " / 5.0"]
214
+ children: [L.rating, " / 5.0"]
181
215
  }),
182
- /* @__PURE__ */ k("p", {
216
+ /* @__PURE__ */ O("p", {
183
217
  className: "text-xs text-text-secondary",
184
- children: [F.totalRatings, " reviews"]
218
+ children: [L.totalRatings, " reviews"]
185
219
  })
186
220
  ]
187
221
  })
188
222
  ]
189
223
  }),
190
- F.businessHours && Object.keys(F.businessHours).length > 0 && /* @__PURE__ */ k("section", {
224
+ L.businessHours && Object.keys(L.businessHours).length > 0 && /* @__PURE__ */ O("section", {
191
225
  className: "mt-6",
192
- children: [/* @__PURE__ */ O("h2", {
226
+ children: [/* @__PURE__ */ D("h2", {
193
227
  className: "text-base font-semibold text-text-primary mb-2",
194
228
  children: "Operating Hours"
195
- }), /* @__PURE__ */ O("div", {
229
+ }), /* @__PURE__ */ D("div", {
196
230
  className: "rounded-lg border border-border-seam bg-bg-surface overflow-hidden",
197
- children: Object.entries(F.businessHours).map(([e, t]) => /* @__PURE__ */ k("div", {
231
+ children: Object.entries(L.businessHours).map(([e, t]) => /* @__PURE__ */ O("div", {
198
232
  className: "flex items-center justify-between px-4 py-2 border-b border-border-seam last:border-b-0",
199
- children: [/* @__PURE__ */ O("span", {
233
+ children: [/* @__PURE__ */ D("span", {
200
234
  className: "text-sm font-medium text-text-primary capitalize",
201
235
  children: e
202
- }), t.isOpen ? /* @__PURE__ */ k("span", {
236
+ }), t.isOpen ? /* @__PURE__ */ O("span", {
203
237
  className: "text-sm text-text-secondary",
204
238
  children: [
205
239
  t.open,
206
240
  " - ",
207
241
  t.close
208
242
  ]
209
- }) : /* @__PURE__ */ O("span", {
243
+ }) : /* @__PURE__ */ D("span", {
210
244
  className: "text-sm text-status-error-text",
211
245
  children: "Closed"
212
246
  })]
213
247
  }, e))
214
248
  })]
215
249
  }),
216
- /* @__PURE__ */ k("div", {
250
+ /* @__PURE__ */ O("div", {
217
251
  className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-3",
218
- children: [/* @__PURE__ */ k("div", {
252
+ children: [/* @__PURE__ */ O("div", {
219
253
  className: "lg:col-span-2",
220
254
  children: [
221
- /* @__PURE__ */ k("div", {
255
+ /* @__PURE__ */ O("div", {
222
256
  className: "flex flex-col gap-3 sm:flex-row mb-4",
223
- children: [/* @__PURE__ */ k("div", {
257
+ children: [/* @__PURE__ */ O("div", {
224
258
  className: "relative flex-1",
225
- children: [/* @__PURE__ */ O(S, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ O("input", {
259
+ children: [/* @__PURE__ */ D(x, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ D("input", {
226
260
  type: "text",
227
261
  placeholder: "Search offerings...",
228
- value: L,
229
- onChange: (e) => R(e.target.value),
262
+ value: z,
263
+ onChange: (e) => B(e.target.value),
230
264
  className: "w-full rounded-lg border border-border-seam bg-bg-surface py-2 pl-10 pr-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
231
265
  })]
232
- }), /* @__PURE__ */ k("select", {
233
- value: z,
234
- onChange: (e) => B(e.target.value),
266
+ }), /* @__PURE__ */ O("select", {
267
+ value: V,
268
+ onChange: (e) => H(e.target.value),
235
269
  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)]",
236
- children: [/* @__PURE__ */ O("option", {
270
+ children: [/* @__PURE__ */ D("option", {
237
271
  value: "",
238
272
  children: "All Categories"
239
- }), J.map((e) => /* @__PURE__ */ O("option", {
273
+ }), X.map((e) => /* @__PURE__ */ D("option", {
240
274
  value: e,
241
275
  children: e
242
276
  }, e))]
243
277
  })]
244
278
  }),
245
- /* @__PURE__ */ k("h2", {
279
+ /* @__PURE__ */ O("h2", {
280
+ id: "labsofscience-menu",
246
281
  className: "text-lg font-semibold text-text-primary mb-3",
247
282
  children: [
248
283
  "Menu & Services (",
249
- Y.length,
284
+ Z.length,
250
285
  ")"
251
286
  ]
252
287
  }),
253
- Y.length === 0 ? /* @__PURE__ */ k("div", {
254
- className: "rounded-lg border border-border-seam bg-bg-surface p-8 text-center",
255
- children: [/* @__PURE__ */ O(S, { className: "mx-auto h-10 w-10 text-text-secondary/50" }), /* @__PURE__ */ O("p", {
256
- className: "mt-3 text-sm text-text-secondary",
257
- children: "No offerings found"
258
- })]
259
- }) : /* @__PURE__ */ O("div", {
288
+ Z.length === 0 ? /* @__PURE__ */ D(r, {
289
+ illustration: z || V ? "empty-search" : "empty-data",
290
+ icon: /* @__PURE__ */ D(x, { className: "h-12 w-12" }),
291
+ title: "No offerings found",
292
+ description: z || V ? "Try a different search term or category filter." : "This cart has not listed any offerings yet."
293
+ }) : /* @__PURE__ */ D("div", {
260
294
  className: "space-y-6",
261
- children: Object.entries(X).map(([e, n]) => /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h3", {
295
+ children: Object.entries(ae).map(([e, n]) => /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h3", {
262
296
  className: "text-sm font-semibold text-text-primary mb-2 px-1",
263
297
  children: e
264
- }), /* @__PURE__ */ O("div", {
298
+ }), /* @__PURE__ */ D("div", {
265
299
  className: "space-y-2",
266
300
  children: n.map((e) => {
267
- let n = ie(e.id);
268
- return /* @__PURE__ */ k("div", {
301
+ let n = se(e.id);
302
+ return /* @__PURE__ */ O("div", {
269
303
  className: "flex gap-4 rounded-lg border border-border-seam bg-bg-surface p-4",
270
- children: [/* @__PURE__ */ O("div", {
304
+ children: [/* @__PURE__ */ D("div", {
271
305
  className: "h-20 w-20 shrink-0 rounded-md bg-bg-sunken overflow-hidden",
272
- children: /* @__PURE__ */ O("img", {
306
+ children: /* @__PURE__ */ D("img", {
273
307
  src: e.image,
274
308
  alt: e.name,
275
309
  className: "h-full w-full object-cover"
276
310
  })
277
- }), /* @__PURE__ */ k("div", {
311
+ }), /* @__PURE__ */ O("div", {
278
312
  className: "flex-1 min-w-0",
279
313
  children: [
280
- /* @__PURE__ */ k("div", {
314
+ /* @__PURE__ */ O("div", {
281
315
  className: "flex items-start justify-between gap-2",
282
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("div", {
316
+ children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("div", {
283
317
  className: "flex items-center gap-2",
284
- children: [/* @__PURE__ */ O("h4", {
318
+ children: [/* @__PURE__ */ D("h4", {
285
319
  className: "text-sm font-semibold text-text-primary",
286
320
  children: e.name
287
- }), e.isVeg && /* @__PURE__ */ O(v, { className: "h-3.5 w-3.5 text-status-success-text" })]
288
- }), /* @__PURE__ */ O("p", {
321
+ }), e.isVeg && /* @__PURE__ */ D(_, { className: "h-3.5 w-3.5 text-status-success-text" })]
322
+ }), /* @__PURE__ */ D("p", {
289
323
  className: "text-xs text-text-secondary mt-0.5",
290
324
  children: e.category
291
- })] }), /* @__PURE__ */ O("span", {
325
+ })] }), /* @__PURE__ */ D("span", {
292
326
  className: "text-sm font-bold text-text-primary whitespace-nowrap",
293
- children: s(e.price, { minimumFractionDigits: 0 })
327
+ children: o(e.price, { minimumFractionDigits: 0 })
294
328
  })]
295
329
  }),
296
- /* @__PURE__ */ O("p", {
330
+ /* @__PURE__ */ D("p", {
297
331
  className: "mt-1 text-xs text-text-secondary line-clamp-2",
298
332
  children: e.description
299
333
  }),
300
- /* @__PURE__ */ k("div", {
334
+ /* @__PURE__ */ O("div", {
301
335
  className: "mt-2 flex flex-wrap items-center gap-2 text-[10px] text-text-secondary",
302
336
  children: [
303
- e.duration != null && e.duration > 0 && /* @__PURE__ */ k("span", {
337
+ e.duration != null && e.duration > 0 && /* @__PURE__ */ O("span", {
304
338
  className: "flex items-center gap-0.5",
305
- children: [/* @__PURE__ */ O(h, { className: "h-3 w-3" }), l(e.duration)]
339
+ children: [/* @__PURE__ */ D(m, { className: "h-3 w-3" }), c(e.duration)]
306
340
  }),
307
- e.serviceType && /* @__PURE__ */ O("span", {
341
+ e.serviceType && /* @__PURE__ */ D("span", {
308
342
  className: "rounded bg-bg-sunken px-1.5 py-0.5 capitalize",
309
343
  children: e.serviceType
310
344
  }),
311
- e.spiceLevel && /* @__PURE__ */ k("span", {
345
+ e.spiceLevel && /* @__PURE__ */ O("span", {
312
346
  className: "flex items-center gap-0.5 rounded bg-bg-sunken px-1.5 py-0.5 capitalize",
313
- children: [/* @__PURE__ */ O(g, { className: "h-3 w-3" }), e.spiceLevel]
347
+ children: [/* @__PURE__ */ D(h, { className: "h-3 w-3" }), e.spiceLevel]
314
348
  })
315
349
  ]
316
350
  }),
317
- /* @__PURE__ */ O("div", {
351
+ /* @__PURE__ */ D("div", {
318
352
  className: "mt-2 flex justify-end",
319
- children: n > 0 ? /* @__PURE__ */ k("div", {
353
+ children: n > 0 ? /* @__PURE__ */ O("div", {
320
354
  className: "flex items-center gap-2",
321
355
  children: [
322
- /* @__PURE__ */ O("button", {
356
+ /* @__PURE__ */ D("button", {
323
357
  type: "button",
324
358
  onClick: () => Q(e.id, -1),
325
359
  className: "flex h-7 w-7 items-center justify-center rounded-full bg-bg-sunken text-text-primary hover:bg-accent",
326
- children: /* @__PURE__ */ O(b, { className: "h-3.5 w-3.5" })
360
+ children: /* @__PURE__ */ D(y, { className: "h-3.5 w-3.5" })
327
361
  }),
328
- /* @__PURE__ */ O("span", {
362
+ /* @__PURE__ */ D("span", {
329
363
  className: "min-w-[2ch] text-center text-sm font-medium text-text-primary",
330
364
  children: n
331
365
  }),
332
- /* @__PURE__ */ O("button", {
366
+ /* @__PURE__ */ D("button", {
333
367
  type: "button",
334
368
  onClick: () => Q(e.id, 1),
335
369
  className: "flex h-7 w-7 items-center justify-center rounded-full bg-foreground text-background hover:opacity-90",
336
- children: /* @__PURE__ */ O(x, { className: "h-3.5 w-3.5" })
370
+ children: /* @__PURE__ */ D(b, { className: "h-3.5 w-3.5" })
337
371
  }),
338
- /* @__PURE__ */ O("button", {
372
+ /* @__PURE__ */ D("button", {
339
373
  type: "button",
340
374
  onClick: () => $(e.id),
341
375
  className: "ml-1 flex h-7 w-7 items-center justify-center rounded-full text-status-error-text hover:bg-status-error-bg/10",
342
- children: /* @__PURE__ */ O(T, { className: "h-3.5 w-3.5" })
376
+ children: /* @__PURE__ */ D(w, { className: "h-3.5 w-3.5" })
343
377
  })
344
378
  ]
345
- }) : /* @__PURE__ */ O("button", {
379
+ }) : /* @__PURE__ */ D("button", {
346
380
  type: "button",
347
- disabled: !F.isOpen,
348
- onClick: () => se(e),
349
- className: t("rounded-lg px-4 py-1.5 text-xs font-medium transition-opacity", F.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
381
+ disabled: !L.isOpen,
382
+ onClick: () => ue(e),
383
+ className: t("rounded-lg px-4 py-1.5 text-xs font-medium transition-opacity", L.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
350
384
  children: "Add"
351
385
  })
352
386
  })
@@ -357,143 +391,143 @@ function A() {
357
391
  })] }, e))
358
392
  })
359
393
  ]
360
- }), /* @__PURE__ */ k("div", {
394
+ }), /* @__PURE__ */ O("div", {
361
395
  className: "space-y-4",
362
396
  children: [
363
- /* @__PURE__ */ k("div", {
364
- className: "rounded-lg border border-border-seam bg-bg-surface p-4 lg:sticky lg:top-6",
365
- children: [/* @__PURE__ */ k("h3", {
397
+ /* @__PURE__ */ O(k, {
398
+ className: "p-4 lg:sticky lg:top-6",
399
+ children: [/* @__PURE__ */ O("h3", {
366
400
  className: "text-base font-semibold text-text-primary mb-3 flex items-center gap-2",
367
- children: [/* @__PURE__ */ O(C, { className: "h-4 w-4" }), "Your Order"]
368
- }), V.length === 0 ? /* @__PURE__ */ k("div", {
369
- className: "py-6 text-center",
370
- children: [/* @__PURE__ */ O(C, { className: "mx-auto h-8 w-8 text-text-secondary/40" }), /* @__PURE__ */ O("p", {
371
- className: "mt-2 text-sm text-text-secondary",
372
- children: "Your cart is empty"
373
- })]
374
- }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
401
+ children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), "Your Order"]
402
+ }), U.length === 0 ? /* @__PURE__ */ D(r, {
403
+ illustration: "empty-data",
404
+ icon: /* @__PURE__ */ D(S, { className: "h-8 w-8" }),
405
+ title: "Your cart is empty",
406
+ description: "Add items from the menu to start your order.",
407
+ className: "py-6"
408
+ }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("div", {
375
409
  className: "space-y-2 max-h-64 overflow-y-auto mb-3",
376
- children: V.map((e) => /* @__PURE__ */ k("div", {
410
+ children: U.map((e) => /* @__PURE__ */ O("div", {
377
411
  className: "flex items-center justify-between gap-2",
378
- children: [/* @__PURE__ */ k("div", {
412
+ children: [/* @__PURE__ */ O("div", {
379
413
  className: "flex-1 min-w-0",
380
- children: [/* @__PURE__ */ O("p", {
414
+ children: [/* @__PURE__ */ D("p", {
381
415
  className: "text-sm font-medium text-text-primary truncate",
382
416
  children: e.name
383
- }), /* @__PURE__ */ k("p", {
417
+ }), /* @__PURE__ */ O("p", {
384
418
  className: "text-xs text-text-secondary",
385
419
  children: [
386
- s(e.price, { minimumFractionDigits: 0 }),
420
+ o(e.price, { minimumFractionDigits: 0 }),
387
421
  " x",
388
422
  " ",
389
423
  e.quantity
390
424
  ]
391
425
  })]
392
- }), /* @__PURE__ */ k("div", {
426
+ }), /* @__PURE__ */ O("div", {
393
427
  className: "flex items-center gap-1",
394
428
  children: [
395
- /* @__PURE__ */ O("button", {
429
+ /* @__PURE__ */ D("button", {
396
430
  type: "button",
397
431
  onClick: () => Q(e.productId, -1),
398
432
  className: "flex h-6 w-6 items-center justify-center rounded bg-bg-sunken text-text-primary text-xs",
399
433
  children: "-"
400
434
  }),
401
- /* @__PURE__ */ O("span", {
435
+ /* @__PURE__ */ D("span", {
402
436
  className: "min-w-[2ch] text-center text-xs font-medium",
403
437
  children: e.quantity
404
438
  }),
405
- /* @__PURE__ */ O("button", {
439
+ /* @__PURE__ */ D("button", {
406
440
  type: "button",
407
441
  onClick: () => Q(e.productId, 1),
408
442
  className: "flex h-6 w-6 items-center justify-center rounded bg-bg-sunken text-text-primary text-xs",
409
443
  children: "+"
410
444
  }),
411
- /* @__PURE__ */ O("button", {
445
+ /* @__PURE__ */ D("button", {
412
446
  type: "button",
413
447
  onClick: () => $(e.productId),
414
448
  className: "ml-1 text-status-error-text hover:text-status-error-text/80",
415
- children: /* @__PURE__ */ O(T, { className: "h-3.5 w-3.5" })
449
+ children: /* @__PURE__ */ D(w, { className: "h-3.5 w-3.5" })
416
450
  })
417
451
  ]
418
452
  })]
419
453
  }, e.id))
420
- }), /* @__PURE__ */ k("div", {
454
+ }), /* @__PURE__ */ O("div", {
421
455
  className: "border-t border-border-seam pt-3",
422
- children: [/* @__PURE__ */ k("div", {
456
+ children: [/* @__PURE__ */ O("div", {
423
457
  className: "flex justify-between items-center mb-3",
424
- children: [/* @__PURE__ */ k("span", {
458
+ children: [/* @__PURE__ */ O("span", {
425
459
  className: "text-sm font-semibold text-text-primary",
426
- children: ["Total: ", s(ae, { minimumFractionDigits: 0 })]
427
- }), /* @__PURE__ */ k("span", {
460
+ children: ["Total: ", o(ce, { minimumFractionDigits: 0 })]
461
+ }), /* @__PURE__ */ O("span", {
428
462
  className: "text-xs text-text-secondary",
429
- children: [oe, " items"]
463
+ children: [le, " items"]
430
464
  })]
431
- }), /* @__PURE__ */ O("button", {
465
+ }), /* @__PURE__ */ D("button", {
432
466
  type: "button",
433
- onClick: () => j("/customer/checkout"),
467
+ onClick: () => N("/customer/checkout"),
434
468
  className: "w-full rounded-lg bg-foreground py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
435
469
  children: "Proceed to Checkout"
436
470
  })]
437
471
  })] })]
438
472
  }),
439
- F.serviceTypes?.includes("direct_service") && /* @__PURE__ */ k("div", {
473
+ L.serviceTypes?.includes("direct_service") && /* @__PURE__ */ O("div", {
440
474
  className: "rounded-lg border border-accent-purple bg-[color-mix(in_oklab,var(--color-accent-purple)_14%,transparent)] p-4",
441
475
  children: [
442
- /* @__PURE__ */ k("h3", {
476
+ /* @__PURE__ */ O("h3", {
443
477
  className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
444
- children: [/* @__PURE__ */ O(_, { className: "h-4 w-4 text-accent-purple" }), "Direct Service"]
478
+ children: [/* @__PURE__ */ D(g, { className: "h-4 w-4 text-accent-purple" }), "Direct Service"]
445
479
  }),
446
- /* @__PURE__ */ O("p", {
480
+ /* @__PURE__ */ D("p", {
447
481
  className: "text-xs text-text-secondary mb-3",
448
482
  children: "Cart comes to your location!"
449
483
  }),
450
- /* @__PURE__ */ O("button", {
484
+ /* @__PURE__ */ D("button", {
451
485
  type: "button",
452
- onClick: () => j(`/customer/carts/${F.id}`),
486
+ onClick: () => N(`/customer/carts/${L.id}`),
453
487
  className: "w-full rounded-lg bg-accent-purple py-2 text-xs font-medium text-white hover:bg-accent-purple transition-colors",
454
488
  children: "Book Direct Service"
455
489
  })
456
490
  ]
457
491
  }),
458
- F.serviceTypes?.includes("appointment") && /* @__PURE__ */ k("div", {
492
+ L.serviceTypes?.includes("appointment") && /* @__PURE__ */ O("div", {
459
493
  className: "rounded-lg border border-status-info-border bg-status-info-bg-subtle p-4",
460
- children: [/* @__PURE__ */ k("h3", {
494
+ children: [/* @__PURE__ */ O("h3", {
461
495
  className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
462
- children: [/* @__PURE__ */ O(p, { className: "h-4 w-4 text-status-info-text" }), "Appointments Available"]
463
- }), /* @__PURE__ */ O("p", {
496
+ children: [/* @__PURE__ */ D(f, { className: "h-4 w-4 text-status-info-text" }), "Appointments Available"]
497
+ }), /* @__PURE__ */ D("p", {
464
498
  className: "text-xs text-text-secondary",
465
499
  children: "This service provider accepts appointments. Contact them to schedule."
466
500
  })]
467
501
  }),
468
- I && /* @__PURE__ */ k("div", {
502
+ R && /* @__PURE__ */ O("div", {
469
503
  className: "rounded-lg border border-status-success-border bg-status-success-bg-subtle p-4",
470
504
  children: [
471
- /* @__PURE__ */ k("h3", {
505
+ /* @__PURE__ */ O("h3", {
472
506
  className: "text-sm font-semibold text-text-primary flex items-center gap-2 mb-2",
473
- children: [/* @__PURE__ */ O(ee, { className: "h-4 w-4 text-status-success-text" }), "Investment Opportunity"]
507
+ children: [/* @__PURE__ */ D(te, { className: "h-4 w-4 text-status-success-text" }), "Investment Opportunity"]
474
508
  }),
475
- /* @__PURE__ */ O("p", {
509
+ /* @__PURE__ */ D("p", {
476
510
  className: "text-xs text-text-secondary mb-2",
477
- children: I.description
511
+ children: R.description
478
512
  }),
479
- /* @__PURE__ */ k("div", {
513
+ /* @__PURE__ */ O("div", {
480
514
  className: "space-y-1 text-xs text-text-secondary mb-3",
481
515
  children: [
482
- /* @__PURE__ */ k("p", { children: ["Target: ", s(I.targetAmount, { minimumFractionDigits: 0 })] }),
483
- /* @__PURE__ */ k("p", { children: ["Raised: ", s(I.raisedAmount, { minimumFractionDigits: 0 })] }),
484
- /* @__PURE__ */ k("p", { children: [
516
+ /* @__PURE__ */ O("p", { children: ["Target: ", o(R.targetAmount, { minimumFractionDigits: 0 })] }),
517
+ /* @__PURE__ */ O("p", { children: ["Raised: ", o(R.raisedAmount, { minimumFractionDigits: 0 })] }),
518
+ /* @__PURE__ */ O("p", { children: [
485
519
  "Expected Returns: ",
486
- I.expectedReturns,
520
+ R.expectedReturns,
487
521
  "%"
488
522
  ] }),
489
- /* @__PURE__ */ k("p", { children: [
523
+ /* @__PURE__ */ O("p", { children: [
490
524
  "Min Investment:",
491
525
  " ",
492
- s(I.minimumInvestment, { minimumFractionDigits: 0 })
526
+ o(R.minimumInvestment, { minimumFractionDigits: 0 })
493
527
  ] })
494
528
  ]
495
529
  }),
496
- /* @__PURE__ */ O("button", {
530
+ /* @__PURE__ */ D("button", {
497
531
  type: "button",
498
532
  onClick: () => alert("Navigate to investor section to fund this business."),
499
533
  className: "w-full rounded-lg bg-status-success-bg py-2 text-xs font-medium text-white hover:bg-status-success-bg transition-colors",
@@ -504,76 +538,76 @@ function A() {
504
538
  ]
505
539
  })]
506
540
  }),
507
- U && G && /* @__PURE__ */ O("div", {
541
+ G && q && /* @__PURE__ */ D("div", {
508
542
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
509
- children: /* @__PURE__ */ O("div", {
543
+ children: /* @__PURE__ */ D("div", {
510
544
  className: "w-full max-w-md max-h-[90vh] overflow-y-auto rounded-lg border border-border-seam bg-bg-surface",
511
- children: /* @__PURE__ */ k("div", {
545
+ children: /* @__PURE__ */ O("div", {
512
546
  className: "p-5",
513
547
  children: [
514
- /* @__PURE__ */ k("div", {
548
+ /* @__PURE__ */ O("div", {
515
549
  className: "flex items-center justify-between mb-4",
516
- children: [/* @__PURE__ */ O("h3", {
550
+ children: [/* @__PURE__ */ D("h3", {
517
551
  className: "text-lg font-semibold text-text-primary",
518
- children: G.product.name
519
- }), /* @__PURE__ */ O("button", {
552
+ children: q.product.name
553
+ }), /* @__PURE__ */ D("button", {
520
554
  type: "button",
521
555
  onClick: () => {
522
- W(!1), K(null);
556
+ K(!1), J(null);
523
557
  },
524
558
  className: "rounded-md p-1 text-text-secondary hover:text-text-primary",
525
- children: /* @__PURE__ */ O(T, { className: "h-5 w-5" })
559
+ children: /* @__PURE__ */ D(w, { className: "h-5 w-5" })
526
560
  })]
527
561
  }),
528
- /* @__PURE__ */ O("p", {
562
+ /* @__PURE__ */ D("p", {
529
563
  className: "text-sm text-text-secondary mb-4",
530
- children: G.product.description
564
+ children: q.product.description
531
565
  }),
532
- /* @__PURE__ */ O("p", {
566
+ /* @__PURE__ */ D("p", {
533
567
  className: "text-lg font-bold text-text-primary mb-4",
534
- children: s(G.product.price, { minimumFractionDigits: 0 })
568
+ children: o(q.product.price, { minimumFractionDigits: 0 })
535
569
  }),
536
- /* @__PURE__ */ k("div", {
570
+ /* @__PURE__ */ O("div", {
537
571
  className: "mb-4",
538
- children: [/* @__PURE__ */ O("label", {
572
+ children: [/* @__PURE__ */ D("label", {
539
573
  className: "block text-sm font-medium text-text-primary mb-2",
540
574
  children: "Quantity"
541
- }), /* @__PURE__ */ k("div", {
575
+ }), /* @__PURE__ */ O("div", {
542
576
  className: "flex items-center gap-3",
543
577
  children: [
544
- /* @__PURE__ */ O("button", {
578
+ /* @__PURE__ */ D("button", {
545
579
  type: "button",
546
- onClick: () => K((e) => e && {
580
+ onClick: () => J((e) => e && {
547
581
  ...e,
548
582
  quantity: Math.max(1, e.quantity - 1)
549
583
  }),
550
584
  className: "flex h-8 w-8 items-center justify-center rounded-full bg-bg-sunken text-text-primary",
551
- children: /* @__PURE__ */ O(b, { className: "h-4 w-4" })
585
+ children: /* @__PURE__ */ D(y, { className: "h-4 w-4" })
552
586
  }),
553
- /* @__PURE__ */ O("span", {
587
+ /* @__PURE__ */ D("span", {
554
588
  className: "min-w-[2ch] text-center font-medium text-text-primary",
555
- children: G.quantity
589
+ children: q.quantity
556
590
  }),
557
- /* @__PURE__ */ O("button", {
591
+ /* @__PURE__ */ D("button", {
558
592
  type: "button",
559
- onClick: () => K((e) => e && {
593
+ onClick: () => J((e) => e && {
560
594
  ...e,
561
595
  quantity: e.quantity + 1
562
596
  }),
563
597
  className: "flex h-8 w-8 items-center justify-center rounded-full bg-bg-sunken text-text-primary",
564
- children: /* @__PURE__ */ O(x, { className: "h-4 w-4" })
598
+ children: /* @__PURE__ */ D(b, { className: "h-4 w-4" })
565
599
  })
566
600
  ]
567
601
  })]
568
602
  }),
569
- /* @__PURE__ */ k("div", {
603
+ /* @__PURE__ */ O("div", {
570
604
  className: "mb-4",
571
- children: [/* @__PURE__ */ O("label", {
605
+ children: [/* @__PURE__ */ D("label", {
572
606
  className: "block text-sm font-medium text-text-primary mb-2",
573
607
  children: "Special Instructions"
574
- }), /* @__PURE__ */ O("textarea", {
575
- value: G.specialInstructions,
576
- onChange: (e) => K((t) => t && {
608
+ }), /* @__PURE__ */ D("textarea", {
609
+ value: q.specialInstructions,
610
+ onChange: (e) => J((t) => t && {
577
611
  ...t,
578
612
  specialInstructions: e.target.value
579
613
  }),
@@ -582,16 +616,14 @@ function A() {
582
616
  rows: 3
583
617
  })]
584
618
  }),
585
- /* @__PURE__ */ k("button", {
619
+ /* @__PURE__ */ O("button", {
586
620
  type: "button",
587
- onClick: () => {
588
- G && (Z(G.product, G.quantity, G.specialInstructions), W(!1), K(null), alert(`${G.product.name} added to cart`));
589
- },
621
+ onClick: de,
590
622
  className: "w-full rounded-lg bg-foreground py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
591
623
  children: [
592
624
  "Add to Cart -",
593
625
  " ",
594
- s(G.product.price * G.quantity, { minimumFractionDigits: 0 })
626
+ o(q.product.price * q.quantity, { minimumFractionDigits: 0 })
595
627
  ]
596
628
  })
597
629
  ]
@@ -599,16 +631,16 @@ function A() {
599
631
  })
600
632
  })
601
633
  ]
602
- }) : /* @__PURE__ */ O(n, {
634
+ }) : /* @__PURE__ */ D(n, {
603
635
  title: "Cart Not Found",
604
- children: /* @__PURE__ */ O(r, {
636
+ children: /* @__PURE__ */ D(r, {
605
637
  illustration: "empty-data",
606
- icon: /* @__PURE__ */ O(C, { className: "h-12 w-12" }),
638
+ icon: /* @__PURE__ */ D(S, { className: "h-12 w-12" }),
607
639
  title: "Cart not found",
608
- description: `No cart found with ID "${A}".`,
609
- action: /* @__PURE__ */ O("button", {
640
+ description: `No cart found with ID "${M}".`,
641
+ action: /* @__PURE__ */ D("button", {
610
642
  type: "button",
611
- onClick: () => j("/customer/carts"),
643
+ onClick: () => N("/customer/carts"),
612
644
  className: "rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background hover:opacity-90 transition-opacity",
613
645
  children: "Browse Carts"
614
646
  })
@@ -616,6 +648,6 @@ function A() {
616
648
  });
617
649
  }
618
650
  //#endregion
619
- export { A as CartDetailPage };
651
+ export { M as CartDetailPage };
620
652
 
621
653
  //# sourceMappingURL=CartDetailPage.js.map