@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
@@ -7,33 +7,34 @@ import { formatCurrency as o, formatDistance as s } from "../../utils/formatters
7
7
  import { useMemo as c, useState as l } from "react";
8
8
  import { AlertCircle as u, Calendar as d, CheckCircle2 as f, Clock as p, Home as m, Info as h, Loader2 as g, MapPin as _, Search as v, Star as y, Tag as b, TrendingUp as x, X as S } from "lucide-react";
9
9
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
10
+ import { EmphasisPanel as E, PagePurpose as ee } from "@burdenoff/fe-libs/ui";
10
11
  //#region src/labsofscience/pages/customer/CartDiscoveryPage.tsx
11
- var E = "All";
12
- function D() {
13
- let { navigateTo: D } = e(), [O, k] = l(""), [A, j] = l(E), [M, N] = l(""), [P, F] = l(""), [I, L] = l("rating"), [R, z] = l(9), [B, V] = l(!1), [H, U] = l(null), { data: W = [], isLoading: G, isError: K } = a(), { data: q = [] } = i(), J = c(() => {
12
+ var D = "All";
13
+ function O() {
14
+ let { navigateTo: O } = e(), [k, A] = l(""), [j, M] = l(D), [N, P] = l(""), [F, I] = l(""), [L, R] = l("rating"), [z, B] = l(9), [V, H] = l(!1), [U, W] = l(null), { data: G = [], isLoading: K, isError: q } = a(), { data: J = [] } = i(), Y = c(() => {
14
15
  let e = /* @__PURE__ */ new Set();
15
- return W.forEach((t) => {
16
+ return G.forEach((t) => {
16
17
  t.category && e.add(t.category);
17
- }), [E, ...Array.from(e)];
18
- }, [W]), Y = c(() => {
19
- let e = [...W];
20
- if (O.trim()) {
21
- let t = O.toLowerCase();
18
+ }), [D, ...Array.from(e)];
19
+ }, [G]), X = c(() => {
20
+ let e = [...G];
21
+ if (k.trim()) {
22
+ let t = k.toLowerCase();
22
23
  e = e.filter((e) => e.name.toLowerCase().includes(t) || e.category.toLowerCase().includes(t));
23
24
  }
24
- if (A !== E && (e = e.filter((e) => e.category === A)), M) {
25
- let t = parseFloat(M);
25
+ if (j !== D && (e = e.filter((e) => e.category === j)), N) {
26
+ let t = parseFloat(N);
26
27
  e = e.filter((e) => e.rating >= t);
27
28
  }
28
- switch (P && (e = e.filter((e) => {
29
+ switch (F && (e = e.filter((e) => {
29
30
  let t = e.averageOrderValue ?? 0;
30
- switch (P) {
31
+ switch (F) {
31
32
  case "low": return t <= 300;
32
33
  case "medium": return t > 300 && t <= 800;
33
34
  case "high": return t > 800;
34
35
  default: return !0;
35
36
  }
36
- })), I) {
37
+ })), L) {
37
38
  case "rating":
38
39
  e.sort((e, t) => t.rating - e.rating);
39
40
  break;
@@ -49,23 +50,23 @@ function D() {
49
50
  }
50
51
  return e;
51
52
  }, [
52
- W,
53
- O,
54
- A,
55
- M,
56
- P,
57
- I
58
- ]), X = Y.slice(0, R), Z = R < Y.length, Q = A !== E || M !== "" || P !== "" || O.trim() !== "", $ = () => {
59
- k(""), j(E), N(""), F(""), L("rating"), z(9);
53
+ G,
54
+ k,
55
+ j,
56
+ N,
57
+ F,
58
+ L
59
+ ]), Z = X.slice(0, z), Q = z < X.length, te = j !== D || N !== "" || F !== "" || k.trim() !== "", $ = () => {
60
+ A(""), M(D), P(""), I(""), R("rating"), B(9);
60
61
  };
61
- return G ? /* @__PURE__ */ w(n, {
62
+ return K ? /* @__PURE__ */ w(n, {
62
63
  title: "Discover Carts",
63
64
  description: "Finding services and shops near you...",
64
65
  children: /* @__PURE__ */ w("div", {
65
66
  className: "flex h-[60vh] items-center justify-center",
66
67
  children: /* @__PURE__ */ w(g, { className: "h-8 w-8 animate-spin text-primary" })
67
68
  })
68
- }) : K ? /* @__PURE__ */ w(n, {
69
+ }) : q ? /* @__PURE__ */ w(n, {
69
70
  title: "Discover Carts",
70
71
  description: "Error loading carts",
71
72
  children: /* @__PURE__ */ T("div", {
@@ -89,121 +90,131 @@ function D() {
89
90
  description: "Find services and shops near you",
90
91
  actions: /* @__PURE__ */ T("span", {
91
92
  className: "text-sm text-text-secondary",
92
- children: [Y.length, " carts found"]
93
+ children: [X.length, " carts found"]
93
94
  }),
94
95
  children: [
95
- /* @__PURE__ */ T("div", {
96
- className: "relative",
97
- children: [
98
- /* @__PURE__ */ w(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }),
99
- /* @__PURE__ */ w("input", {
100
- type: "text",
101
- placeholder: "Search carts, services, or items...",
102
- value: O,
103
- onChange: (e) => k(e.target.value),
104
- className: t("w-full rounded-lg border border-border-seam bg-bg-surface py-2.5 pl-10 pr-10 text-sm text-text-primary", "placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]")
105
- }),
106
- O && /* @__PURE__ */ w("button", {
107
- type: "button",
108
- onClick: () => k(""),
109
- className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
110
- children: /* @__PURE__ */ w(S, { className: "h-4 w-4" })
111
- })
112
- ]
96
+ /* @__PURE__ */ w(ee, {
97
+ icon: /* @__PURE__ */ w(v, { className: "h-4 w-4" }),
98
+ className: "mb-6",
99
+ children: "Find the mobile carts, shops and services near you. Search by name or item, narrow by category, rating or price, and sort by what's closest or best rated — then open a cart to browse its menu, book an appointment or request a direct service at your door."
113
100
  }),
114
- /* @__PURE__ */ w("div", {
115
- className: "mt-4 flex flex-wrap gap-2",
116
- children: J.map((e) => /* @__PURE__ */ w("button", {
117
- type: "button",
118
- onClick: () => j(e),
119
- className: t("rounded-full px-3 py-1.5 text-xs font-medium transition-colors", A === e ? "bg-foreground text-background" : "bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary"),
120
- children: e
121
- }, e))
122
- }),
123
- /* @__PURE__ */ T("div", {
124
- className: "mt-4 flex flex-wrap items-center gap-3",
101
+ /* @__PURE__ */ T(E, {
102
+ className: "p-4",
125
103
  children: [
126
- /* @__PURE__ */ T("select", {
127
- value: M,
128
- onChange: (e) => N(e.target.value),
129
- className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
104
+ /* @__PURE__ */ T("div", {
105
+ className: "relative",
130
106
  children: [
131
- /* @__PURE__ */ w("option", {
132
- value: "",
133
- children: "Any Rating"
134
- }),
135
- /* @__PURE__ */ w("option", {
136
- value: "4.5",
137
- children: "4.5+ Stars"
138
- }),
139
- /* @__PURE__ */ w("option", {
140
- value: "4.0",
141
- children: "4.0+ Stars"
107
+ /* @__PURE__ */ w(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }),
108
+ /* @__PURE__ */ w("input", {
109
+ type: "text",
110
+ placeholder: "Search carts, services, or items...",
111
+ value: k,
112
+ onChange: (e) => A(e.target.value),
113
+ className: t("w-full rounded-lg border border-border-seam bg-bg-surface py-2.5 pl-10 pr-10 text-sm text-text-primary", "placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]")
142
114
  }),
143
- /* @__PURE__ */ w("option", {
144
- value: "3.5",
145
- children: "3.5+ Stars"
115
+ k && /* @__PURE__ */ w("button", {
116
+ type: "button",
117
+ onClick: () => A(""),
118
+ className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
119
+ children: /* @__PURE__ */ w(S, { className: "h-4 w-4" })
146
120
  })
147
121
  ]
148
122
  }),
149
- /* @__PURE__ */ T("select", {
150
- value: P,
151
- onChange: (e) => F(e.target.value),
152
- className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
153
- children: [
154
- /* @__PURE__ */ w("option", {
155
- value: "",
156
- children: "Any Price"
157
- }),
158
- /* @__PURE__ */ w("option", {
159
- value: "low",
160
- children: "Under ₹300"
161
- }),
162
- /* @__PURE__ */ w("option", {
163
- value: "medium",
164
- children: "₹300 - ₹800"
165
- }),
166
- /* @__PURE__ */ w("option", {
167
- value: "high",
168
- children: "₹800+"
169
- })
170
- ]
123
+ /* @__PURE__ */ w("div", {
124
+ className: "mt-4 flex flex-wrap gap-2",
125
+ children: Y.map((e) => /* @__PURE__ */ w("button", {
126
+ type: "button",
127
+ onClick: () => M(e),
128
+ className: t("rounded-full px-3 py-1.5 text-xs font-medium transition-colors", j === e ? "bg-foreground text-background" : "bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary"),
129
+ children: e
130
+ }, e))
171
131
  }),
172
- /* @__PURE__ */ T("select", {
173
- value: I,
174
- onChange: (e) => L(e.target.value),
175
- className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
132
+ /* @__PURE__ */ T("div", {
133
+ className: "mt-4 flex flex-wrap items-center gap-3",
176
134
  children: [
177
- /* @__PURE__ */ w("option", {
178
- value: "rating",
179
- children: "Highest Rated"
135
+ /* @__PURE__ */ T("select", {
136
+ value: N,
137
+ onChange: (e) => P(e.target.value),
138
+ className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
139
+ children: [
140
+ /* @__PURE__ */ w("option", {
141
+ value: "",
142
+ children: "Any Rating"
143
+ }),
144
+ /* @__PURE__ */ w("option", {
145
+ value: "4.5",
146
+ children: "4.5+ Stars"
147
+ }),
148
+ /* @__PURE__ */ w("option", {
149
+ value: "4.0",
150
+ children: "4.0+ Stars"
151
+ }),
152
+ /* @__PURE__ */ w("option", {
153
+ value: "3.5",
154
+ children: "3.5+ Stars"
155
+ })
156
+ ]
180
157
  }),
181
- /* @__PURE__ */ w("option", {
182
- value: "popularity",
183
- children: "Most Popular"
158
+ /* @__PURE__ */ T("select", {
159
+ value: F,
160
+ onChange: (e) => I(e.target.value),
161
+ className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
162
+ children: [
163
+ /* @__PURE__ */ w("option", {
164
+ value: "",
165
+ children: "Any Price"
166
+ }),
167
+ /* @__PURE__ */ w("option", {
168
+ value: "low",
169
+ children: "Under ₹300"
170
+ }),
171
+ /* @__PURE__ */ w("option", {
172
+ value: "medium",
173
+ children: "₹300 - ₹800"
174
+ }),
175
+ /* @__PURE__ */ w("option", {
176
+ value: "high",
177
+ children: "₹800+"
178
+ })
179
+ ]
184
180
  }),
185
- /* @__PURE__ */ w("option", {
186
- value: "distance",
187
- children: "Nearest"
181
+ /* @__PURE__ */ T("select", {
182
+ value: L,
183
+ onChange: (e) => R(e.target.value),
184
+ className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
185
+ children: [
186
+ /* @__PURE__ */ w("option", {
187
+ value: "rating",
188
+ children: "Highest Rated"
189
+ }),
190
+ /* @__PURE__ */ w("option", {
191
+ value: "popularity",
192
+ children: "Most Popular"
193
+ }),
194
+ /* @__PURE__ */ w("option", {
195
+ value: "distance",
196
+ children: "Nearest"
197
+ }),
198
+ /* @__PURE__ */ w("option", {
199
+ value: "newest",
200
+ children: "Newest"
201
+ })
202
+ ]
188
203
  }),
189
- /* @__PURE__ */ w("option", {
190
- value: "newest",
191
- children: "Newest"
204
+ te && /* @__PURE__ */ w("button", {
205
+ type: "button",
206
+ onClick: $,
207
+ className: "rounded-lg border border-border-seam px-3 py-2 text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
208
+ children: "Clear All Filters"
192
209
  })
193
210
  ]
194
- }),
195
- Q && /* @__PURE__ */ w("button", {
196
- type: "button",
197
- onClick: $,
198
- className: "rounded-lg border border-border-seam px-3 py-2 text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
199
- children: "Clear All Filters"
200
211
  })
201
212
  ]
202
213
  }),
203
- X.length > 0 ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
214
+ Z.length > 0 ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
204
215
  className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
205
- children: X.map((e) => {
206
- let n = q.find((t) => t.cartId === e.id);
216
+ children: Z.map((e) => {
217
+ let n = J.find((t) => t.cartId === e.id);
207
218
  return /* @__PURE__ */ T("div", {
208
219
  className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm overflow-hidden hover:shadow-md transition-shadow flex flex-col",
209
220
  children: [/* @__PURE__ */ T("div", {
@@ -309,14 +320,14 @@ function D() {
309
320
  children: [
310
321
  /* @__PURE__ */ w("button", {
311
322
  type: "button",
312
- onClick: () => D(`/customer/cart/${e.id}`),
323
+ onClick: () => O(`/customer/cart/${e.id}`),
313
324
  disabled: !e.isOpen,
314
325
  className: t("flex-1 rounded-lg py-2 text-xs font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
315
326
  children: e.isOpen ? "View Services" : "Closed"
316
327
  }),
317
328
  e.serviceTypes?.includes("direct_service") && /* @__PURE__ */ w("button", {
318
329
  type: "button",
319
- onClick: () => D(`/customer/cart/${e.id}`),
330
+ onClick: () => O(`/customer/cart/${e.id}`),
320
331
  className: "rounded-lg border border-border-seam px-2 py-2 text-xs text-text-primary hover:bg-accent transition-colors",
321
332
  title: "Book Direct Service",
322
333
  children: /* @__PURE__ */ w(m, { className: "h-3.5 w-3.5" })
@@ -331,7 +342,7 @@ function D() {
331
342
  /* @__PURE__ */ w("button", {
332
343
  type: "button",
333
344
  onClick: () => {
334
- U(e), V(!0);
345
+ W(e), H(!0);
335
346
  },
336
347
  className: "rounded-lg border border-border-seam px-2 py-2 text-xs text-text-primary hover:bg-accent transition-colors",
337
348
  title: "Cart Info",
@@ -343,11 +354,11 @@ function D() {
343
354
  })]
344
355
  }, e.id);
345
356
  })
346
- }), Z && /* @__PURE__ */ w("div", {
357
+ }), Q && /* @__PURE__ */ w("div", {
347
358
  className: "mt-8 text-center",
348
359
  children: /* @__PURE__ */ w("button", {
349
360
  type: "button",
350
- onClick: () => z((e) => e + 9),
361
+ onClick: () => B((e) => e + 9),
351
362
  className: "rounded-lg border border-border-seam px-6 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
352
363
  children: "Load More Carts"
353
364
  })
@@ -357,7 +368,7 @@ function D() {
357
368
  illustration: "empty-search",
358
369
  icon: /* @__PURE__ */ w(v, { className: "h-12 w-12" }),
359
370
  title: "No carts found",
360
- description: O ? `No results for "${O}". Try a different search term.` : "No carts available with these filters.",
371
+ description: k ? `No results for "${k}". Try a different search term.` : "No carts available with these filters.",
361
372
  action: /* @__PURE__ */ w("button", {
362
373
  type: "button",
363
374
  onClick: $,
@@ -366,7 +377,7 @@ function D() {
366
377
  })
367
378
  })
368
379
  }),
369
- B && H && /* @__PURE__ */ w("div", {
380
+ V && U && /* @__PURE__ */ w("div", {
370
381
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
371
382
  children: /* @__PURE__ */ w("div", {
372
383
  className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border-seam bg-bg-surface",
@@ -380,7 +391,7 @@ function D() {
380
391
  children: "Cart Information"
381
392
  }), /* @__PURE__ */ w("button", {
382
393
  type: "button",
383
- onClick: () => V(!1),
394
+ onClick: () => H(!1),
384
395
  className: "rounded-md p-1 text-text-secondary hover:text-text-primary transition-colors",
385
396
  children: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
386
397
  })]
@@ -388,14 +399,14 @@ function D() {
388
399
  /* @__PURE__ */ w("div", {
389
400
  className: "h-48 rounded-lg overflow-hidden mb-4",
390
401
  children: /* @__PURE__ */ w("img", {
391
- src: H.image,
392
- alt: H.name,
402
+ src: U.image,
403
+ alt: U.name,
393
404
  className: "h-full w-full object-cover"
394
405
  })
395
406
  }),
396
407
  /* @__PURE__ */ w("h4", {
397
408
  className: "text-xl font-semibold text-text-primary mb-1",
398
- children: H.name
409
+ children: U.name
399
410
  }),
400
411
  /* @__PURE__ */ T("div", {
401
412
  className: "flex flex-wrap items-center gap-3 mb-4",
@@ -405,20 +416,20 @@ function D() {
405
416
  /* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
406
417
  /* @__PURE__ */ w("span", {
407
418
  className: "text-sm font-medium",
408
- children: H.rating
419
+ children: U.rating
409
420
  }),
410
421
  /* @__PURE__ */ T("span", {
411
422
  className: "text-xs text-text-secondary",
412
423
  children: [
413
424
  "(",
414
- H.totalRatings,
425
+ U.totalRatings,
415
426
  " reviews)"
416
427
  ]
417
428
  })
418
429
  ]
419
430
  }), /* @__PURE__ */ w("span", {
420
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", H.isOpen ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
421
- children: H.isOpen ? "Open" : "Closed"
431
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", U.isOpen ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
432
+ children: U.isOpen ? "Open" : "Closed"
422
433
  })]
423
434
  }),
424
435
  /* @__PURE__ */ T("div", {
@@ -431,7 +442,7 @@ function D() {
431
442
  children: [/* @__PURE__ */ w(_, { className: "h-3 w-3" }), " Location"]
432
443
  }), /* @__PURE__ */ w("p", {
433
444
  className: "mt-1 text-sm text-text-primary",
434
- children: H.location.address
445
+ children: U.location.address
435
446
  })]
436
447
  }),
437
448
  /* @__PURE__ */ T("div", {
@@ -441,17 +452,17 @@ function D() {
441
452
  children: [/* @__PURE__ */ w(b, { className: "h-3 w-3" }), " Category"]
442
453
  }), /* @__PURE__ */ w("p", {
443
454
  className: "mt-1 text-sm text-text-primary",
444
- children: H.category
455
+ children: U.category
445
456
  })]
446
457
  }),
447
- H.averageOrderValue && /* @__PURE__ */ T("div", {
458
+ U.averageOrderValue && /* @__PURE__ */ T("div", {
448
459
  className: "rounded-md bg-bg-sunken p-3",
449
460
  children: [/* @__PURE__ */ w("p", {
450
461
  className: "text-xs font-medium text-text-secondary",
451
462
  children: "Average Order"
452
463
  }), /* @__PURE__ */ w("p", {
453
464
  className: "mt-1 text-sm text-text-primary",
454
- children: o(H.averageOrderValue, { minimumFractionDigits: 0 })
465
+ children: o(U.averageOrderValue, { minimumFractionDigits: 0 })
455
466
  })]
456
467
  }),
457
468
  /* @__PURE__ */ T("div", {
@@ -461,7 +472,7 @@ function D() {
461
472
  children: [/* @__PURE__ */ w(p, { className: "h-3 w-3" }), " Estimated Time"]
462
473
  }), /* @__PURE__ */ T("p", {
463
474
  className: "mt-1 text-sm text-text-primary",
464
- children: [H.estimatedTime, " minutes"]
475
+ children: [U.estimatedTime, " minutes"]
465
476
  })]
466
477
  }),
467
478
  /* @__PURE__ */ T("div", {
@@ -471,10 +482,10 @@ function D() {
471
482
  children: "Distance"
472
483
  }), /* @__PURE__ */ w("p", {
473
484
  className: "mt-1 text-sm text-text-primary",
474
- children: s(H.distance)
485
+ children: s(U.distance)
475
486
  })]
476
487
  }),
477
- H.isVerified && /* @__PURE__ */ T("div", {
488
+ U.isVerified && /* @__PURE__ */ T("div", {
478
489
  className: "rounded-md bg-bg-sunken p-3",
479
490
  children: [/* @__PURE__ */ T("p", {
480
491
  className: "text-xs font-medium text-text-secondary flex items-center gap-1",
@@ -486,27 +497,27 @@ function D() {
486
497
  })
487
498
  ]
488
499
  }),
489
- H.serviceTypes && H.serviceTypes.length > 0 && /* @__PURE__ */ T("div", {
500
+ U.serviceTypes && U.serviceTypes.length > 0 && /* @__PURE__ */ T("div", {
490
501
  className: "mb-4",
491
502
  children: [/* @__PURE__ */ w("p", {
492
503
  className: "text-xs font-medium text-text-secondary mb-2",
493
504
  children: "Service Types"
494
505
  }), /* @__PURE__ */ w("div", {
495
506
  className: "flex flex-wrap gap-2",
496
- children: H.serviceTypes.map((e) => /* @__PURE__ */ w("span", {
507
+ children: U.serviceTypes.map((e) => /* @__PURE__ */ w("span", {
497
508
  className: "rounded-full bg-bg-sunken px-2.5 py-1 text-xs text-text-secondary capitalize",
498
509
  children: e.replace(/_/g, " ")
499
510
  }, e))
500
511
  })]
501
512
  }),
502
- H.businessHours && Object.keys(H.businessHours).length > 0 && /* @__PURE__ */ T("div", {
513
+ U.businessHours && Object.keys(U.businessHours).length > 0 && /* @__PURE__ */ T("div", {
503
514
  className: "mb-4",
504
515
  children: [/* @__PURE__ */ w("p", {
505
516
  className: "text-xs font-medium text-text-secondary mb-2",
506
517
  children: "Operating Hours"
507
518
  }), /* @__PURE__ */ w("div", {
508
519
  className: "space-y-1",
509
- children: Object.entries(H.businessHours).map(([e, t]) => /* @__PURE__ */ T("div", {
520
+ children: Object.entries(U.businessHours).map(([e, t]) => /* @__PURE__ */ T("div", {
510
521
  className: "flex justify-between text-xs",
511
522
  children: [/* @__PURE__ */ w("span", {
512
523
  className: "capitalize text-text-primary",
@@ -523,14 +534,14 @@ function D() {
523
534
  children: [/* @__PURE__ */ w("button", {
524
535
  type: "button",
525
536
  onClick: () => {
526
- V(!1), D(`/customer/carts/${H.id}`);
537
+ H(!1), O(`/customer/carts/${U.id}`);
527
538
  },
528
- disabled: !H.isOpen,
529
- className: t("flex-1 rounded-lg py-2.5 text-sm font-medium transition-opacity", H.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
530
- children: H.isOpen ? "View Menu" : "Currently Closed"
539
+ disabled: !U.isOpen,
540
+ className: t("flex-1 rounded-lg py-2.5 text-sm font-medium transition-opacity", U.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
541
+ children: U.isOpen ? "View Menu" : "Currently Closed"
531
542
  }), /* @__PURE__ */ w("button", {
532
543
  type: "button",
533
- onClick: () => V(!1),
544
+ onClick: () => H(!1),
534
545
  className: "rounded-lg border border-border-seam px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
535
546
  children: "Close"
536
547
  })]
@@ -543,6 +554,6 @@ function D() {
543
554
  });
544
555
  }
545
556
  //#endregion
546
- export { D as CartDiscoveryPage };
557
+ export { O as CartDiscoveryPage };
547
558
 
548
559
  //# sourceMappingURL=CartDiscoveryPage.js.map