@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
@@ -1,12 +1,14 @@
1
1
  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
- import { formatCurrency as r } from "../../utils/formatters.js";
5
- import { useCallback as i, useEffect as a, useState as o } from "react";
6
- import { CheckCircle2 as s, ClipboardCheck as c, Eye as l, Loader2 as u, Pause as d, Search as f, Star as p, Store as m, X as h, XCircle as g } from "lucide-react";
4
+ import { EmptyState as r } from "../../components/EmptyState.js";
5
+ import { formatCurrency as i } from "../../utils/formatters.js";
6
+ import { useCallback as a, useEffect as o, useState as s } from "react";
7
+ import { CheckCircle2 as c, ClipboardCheck as l, Eye as u, Loader2 as d, Pause as f, Search as p, Star as m, X as h, XCircle as g } from "lucide-react";
7
8
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
9
+ import { EmphasisPanel as b, PagePurpose as x } from "@burdenoff/fe-libs/ui";
8
10
  //#region src/labsofscience/pages/admin/CartManagementPage.tsx
9
- var b = [
11
+ var S = [
10
12
  {
11
13
  id: "cart-001",
12
14
  name: "South Indian Express",
@@ -81,15 +83,15 @@ var b = [
81
83
  rejectionReason: "Hygiene standards not met, missing food safety certification"
82
84
  }
83
85
  ];
84
- function x() {
85
- let { navigateTo: x } = e(), [S, C] = o([]), [w, T] = o(!0), [E, D] = o(null), [O, k] = o(!1), [A, j] = o("view"), [M, N] = o(""), [P, F] = o({
86
+ function C() {
87
+ let { navigateTo: C } = e(), [w, T] = s([]), [E, D] = s(!0), [O, k] = s(null), [A, j] = s(!1), [M, N] = s("view"), [P, F] = s(""), [I, L] = s({
86
88
  searchQuery: "",
87
89
  status: "",
88
90
  verificationStatus: "",
89
91
  category: "",
90
92
  location: "",
91
93
  sortBy: "recent"
92
- }), [I] = o({
94
+ }), [R] = s({
93
95
  totalCarts: 156,
94
96
  activeCarts: 134,
95
97
  pendingApproval: 18,
@@ -98,14 +100,14 @@ function x() {
98
100
  averageRating: 4.6,
99
101
  complianceRate: 89,
100
102
  newApplications: 8
101
- }), L = i(() => {
102
- T(!0), setTimeout(() => {
103
- let e = [...b];
104
- if (P.searchQuery) {
105
- let t = P.searchQuery.toLowerCase();
103
+ }), z = a(() => {
104
+ D(!0), setTimeout(() => {
105
+ let e = [...S];
106
+ if (I.searchQuery) {
107
+ let t = I.searchQuery.toLowerCase();
106
108
  e = e.filter((e) => e.name.toLowerCase().includes(t) || e.ownerName.toLowerCase().includes(t) || e.description.toLowerCase().includes(t) || e.address.toLowerCase().includes(t));
107
109
  }
108
- switch (P.status && (P.status === "active" && (e = e.filter((e) => e.isActive)), P.status === "inactive" && (e = e.filter((e) => !e.isActive))), P.verificationStatus && (P.verificationStatus === "verified" && (e = e.filter((e) => e.isVerified)), P.verificationStatus === "pending" && (e = e.filter((e) => !e.isVerified && e.inspectionStatus !== "failed")), P.verificationStatus === "rejected" && (e = e.filter((e) => e.inspectionStatus === "failed"))), P.category && (e = e.filter((e) => e.category === P.category)), P.location && (e = e.filter((e) => e.city.toLowerCase().includes(P.location.toLowerCase()))), P.sortBy) {
110
+ switch (I.status && (I.status === "active" && (e = e.filter((e) => e.isActive)), I.status === "inactive" && (e = e.filter((e) => !e.isActive))), I.verificationStatus && (I.verificationStatus === "verified" && (e = e.filter((e) => e.isVerified)), I.verificationStatus === "pending" && (e = e.filter((e) => !e.isVerified && e.inspectionStatus !== "failed")), I.verificationStatus === "rejected" && (e = e.filter((e) => e.inspectionStatus === "failed"))), I.category && (e = e.filter((e) => e.category === I.category)), I.location && (e = e.filter((e) => e.city.toLowerCase().includes(I.location.toLowerCase()))), I.sortBy) {
109
111
  case "name":
110
112
  e.sort((e, t) => e.name.localeCompare(t.name));
111
113
  break;
@@ -120,46 +122,46 @@ function x() {
120
122
  break;
121
123
  default: e.sort((e, t) => new Date(t.applicationDate).getTime() - new Date(e.applicationDate).getTime());
122
124
  }
123
- C(e), T(!1);
125
+ T(e), D(!1);
124
126
  }, 800);
125
- }, [P]);
126
- a(() => {
127
- L();
128
- }, [L]);
129
- let R = (e, t) => {
130
- F((n) => ({
127
+ }, [I]);
128
+ o(() => {
129
+ z();
130
+ }, [z]);
131
+ let B = (e, t) => {
132
+ L((n) => ({
131
133
  ...n,
132
134
  [e]: t
133
135
  }));
134
- }, z = (e, t) => {
135
- D(e), j(t), N(""), k(!0);
136
- }, B = () => {
137
- if (!E) return;
136
+ }, V = (e, t) => {
137
+ k(e), N(t), F(""), j(!0);
138
+ }, H = () => {
139
+ if (!O) return;
138
140
  let e = "";
139
- switch (A) {
141
+ switch (M) {
140
142
  case "approve":
141
- e = `Cart "${E.name}" approved successfully`;
143
+ e = `Cart "${O.name}" approved successfully`;
142
144
  break;
143
145
  case "reject":
144
- if (!M.trim()) {
146
+ if (!P.trim()) {
145
147
  alert("Please provide a rejection reason");
146
148
  return;
147
149
  }
148
- e = `Cart "${E.name}" rejected`;
150
+ e = `Cart "${O.name}" rejected`;
149
151
  break;
150
152
  case "suspend":
151
- e = `Cart "${E.name}" suspended`;
153
+ e = `Cart "${O.name}" suspended`;
152
154
  break;
153
155
  case "inspect":
154
- e = `Inspection scheduled for "${E.name}"`;
156
+ e = `Inspection scheduled for "${O.name}"`;
155
157
  break;
156
158
  }
157
- alert(e), k(!1), N(""), L();
158
- }, V = (e) => new Date(e).toLocaleDateString("en-IN", {
159
+ alert(e), j(!1), F(""), z();
160
+ }, U = (e) => new Date(e).toLocaleDateString("en-IN", {
159
161
  year: "numeric",
160
162
  month: "short",
161
163
  day: "numeric"
162
- }), H = (e) => e.isVerified ? /* @__PURE__ */ v("span", {
164
+ }), W = (e) => e.isVerified ? /* @__PURE__ */ v("span", {
163
165
  className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-success-bg-subtle text-status-success-text",
164
166
  children: "Verified"
165
167
  }) : e.inspectionStatus === "pending" ? /* @__PURE__ */ v("span", {
@@ -174,73 +176,78 @@ function x() {
174
176
  }) : /* @__PURE__ */ v("span", {
175
177
  className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-secondary text-secondary-foreground",
176
178
  children: "Under Review"
177
- }), U = (e) => e ? /* @__PURE__ */ v("span", {
179
+ }), G = (e) => e ? /* @__PURE__ */ v("span", {
178
180
  className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-success-bg-subtle text-status-success-text",
179
181
  children: "Active"
180
182
  }) : /* @__PURE__ */ v("span", {
181
183
  className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-secondary text-secondary-foreground",
182
184
  children: "Inactive"
183
- }), W = (e) => /* @__PURE__ */ v("div", {
185
+ }), K = (e) => /* @__PURE__ */ v("div", {
184
186
  className: "w-full bg-bg-sunken rounded-full h-2",
185
187
  children: /* @__PURE__ */ v("div", {
186
188
  className: t("h-2 rounded-full", e >= 80 ? "bg-status-success-bg" : e >= 60 ? "bg-status-warning-bg" : "bg-status-error-bg"),
187
189
  style: { width: `${e}%` }
188
190
  })
189
191
  });
190
- return w ? /* @__PURE__ */ v(n, {
192
+ return E ? /* @__PURE__ */ v(n, {
191
193
  title: "Cart Management",
192
194
  description: "Loading carts...",
193
195
  children: /* @__PURE__ */ y("div", {
194
196
  className: "flex flex-col items-center justify-center py-20",
195
- children: [/* @__PURE__ */ v(u, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ v("p", {
197
+ children: [/* @__PURE__ */ v(d, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ v("p", {
196
198
  className: "text-text-secondary",
197
199
  children: "Loading carts..."
198
200
  })]
199
201
  })
200
202
  }) : /* @__PURE__ */ y(n, {
201
203
  title: "Cart Management",
202
- description: `${I.totalCarts} service providers on the platform`,
204
+ description: `${R.totalCarts} service providers on the platform`,
203
205
  actions: /* @__PURE__ */ y("span", {
204
206
  className: "text-sm text-text-secondary",
205
- children: [I.pendingApproval, " pending approval"]
207
+ children: [R.pendingApproval, " pending approval"]
206
208
  }),
207
209
  children: [
208
- /* @__PURE__ */ v("div", {
210
+ /* @__PURE__ */ v(x, {
211
+ icon: /* @__PURE__ */ v(l, { className: "h-4 w-4" }),
212
+ className: "mb-6",
213
+ children: "The approval and oversight desk for every cart on the platform. Review new applications, approve or reject carts before they go live, and pause or inspect any existing cart — this is how you keep the marketplace trustworthy."
214
+ }),
215
+ /* @__PURE__ */ v(b, {
209
216
  className: "grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-3 mb-6",
210
217
  children: [
211
218
  {
212
219
  label: "Total Carts",
213
- value: I.totalCarts,
220
+ value: R.totalCarts,
214
221
  cls: ""
215
222
  },
216
223
  {
217
224
  label: "Active",
218
- value: I.activeCarts,
225
+ value: R.activeCarts,
219
226
  cls: "bg-status-success-bg-subtle border-status-success-border"
220
227
  },
221
228
  {
222
229
  label: "Pending",
223
- value: I.pendingApproval,
230
+ value: R.pendingApproval,
224
231
  cls: "bg-status-warning-bg-subtle border-status-warning-border"
225
232
  },
226
233
  {
227
234
  label: "Rejected",
228
- value: I.rejectedCarts,
235
+ value: R.rejectedCarts,
229
236
  cls: "bg-status-error-bg-subtle border-status-error-border"
230
237
  },
231
238
  {
232
239
  label: "Total Revenue",
233
- value: r(I.totalRevenue, { minimumFractionDigits: 0 }),
240
+ value: i(R.totalRevenue, { minimumFractionDigits: 0 }),
234
241
  cls: "col-span-2 min-w-fit"
235
242
  },
236
243
  {
237
244
  label: "Avg Rating",
238
- value: `${I.averageRating}`,
245
+ value: `${R.averageRating}`,
239
246
  cls: ""
240
247
  },
241
248
  {
242
249
  label: "New Apps",
243
- value: I.newApplications,
250
+ value: R.newApplications,
244
251
  cls: "bg-status-info-bg-subtle border-status-info-border"
245
252
  }
246
253
  ].map((e) => /* @__PURE__ */ y("div", {
@@ -261,17 +268,17 @@ function x() {
261
268
  children: [
262
269
  /* @__PURE__ */ y("div", {
263
270
  className: "relative",
264
- children: [/* @__PURE__ */ v(f, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ v("input", {
271
+ 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", {
265
272
  type: "text",
266
273
  placeholder: "Search carts...",
267
- value: P.searchQuery,
268
- onChange: (e) => R("searchQuery", e.target.value),
274
+ value: I.searchQuery,
275
+ onChange: (e) => B("searchQuery", e.target.value),
269
276
  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)]"
270
277
  })]
271
278
  }),
272
279
  /* @__PURE__ */ y("select", {
273
- value: P.status,
274
- onChange: (e) => R("status", e.target.value),
280
+ value: I.status,
281
+ onChange: (e) => B("status", e.target.value),
275
282
  className: "rounded-lg border border-border-seam bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
276
283
  children: [
277
284
  /* @__PURE__ */ v("option", {
@@ -289,8 +296,8 @@ function x() {
289
296
  ]
290
297
  }),
291
298
  /* @__PURE__ */ y("select", {
292
- value: P.verificationStatus,
293
- onChange: (e) => R("verificationStatus", e.target.value),
299
+ value: I.verificationStatus,
300
+ onChange: (e) => B("verificationStatus", e.target.value),
294
301
  className: "rounded-lg border border-border-seam bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
295
302
  children: [
296
303
  /* @__PURE__ */ v("option", {
@@ -312,8 +319,8 @@ function x() {
312
319
  ]
313
320
  }),
314
321
  /* @__PURE__ */ y("select", {
315
- value: P.category,
316
- onChange: (e) => R("category", e.target.value),
322
+ value: I.category,
323
+ onChange: (e) => B("category", e.target.value),
317
324
  className: "rounded-lg border border-border-seam bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
318
325
  children: [
319
326
  /* @__PURE__ */ v("option", {
@@ -341,13 +348,13 @@ function x() {
341
348
  /* @__PURE__ */ v("input", {
342
349
  type: "text",
343
350
  placeholder: "Location...",
344
- value: P.location,
345
- onChange: (e) => R("location", e.target.value),
351
+ value: I.location,
352
+ onChange: (e) => B("location", e.target.value),
346
353
  className: "rounded-lg border border-border-seam bg-bg-surface py-2 px-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
347
354
  }),
348
355
  /* @__PURE__ */ y("select", {
349
- value: P.sortBy,
350
- onChange: (e) => R("sortBy", e.target.value),
356
+ value: I.sortBy,
357
+ onChange: (e) => B("sortBy", e.target.value),
351
358
  className: "rounded-lg border border-border-seam bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
352
359
  children: [
353
360
  /* @__PURE__ */ v("option", {
@@ -380,7 +387,7 @@ function x() {
380
387
  children: [
381
388
  /* @__PURE__ */ v("div", {
382
389
  className: "block md:hidden space-y-4 p-4",
383
- children: S.map((e) => /* @__PURE__ */ y("div", {
390
+ children: w.map((e) => /* @__PURE__ */ y("div", {
384
391
  className: "rounded-lg border border-border-seam bg-bg-sunken/30 p-4",
385
392
  children: [
386
393
  /* @__PURE__ */ y("div", {
@@ -429,7 +436,7 @@ function x() {
429
436
  }),
430
437
  /* @__PURE__ */ y("p", {
431
438
  className: "text-text-primary",
432
- children: [r(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
439
+ children: [i(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
433
440
  }),
434
441
  /* @__PURE__ */ y("p", {
435
442
  className: "text-text-secondary text-xs",
@@ -440,12 +447,12 @@ function x() {
440
447
  /* @__PURE__ */ y("div", {
441
448
  className: "flex flex-wrap gap-2 mb-3",
442
449
  children: [
443
- U(e.isActive),
444
- H(e),
450
+ G(e.isActive),
451
+ W(e),
445
452
  e.rating > 0 && /* @__PURE__ */ y("span", {
446
453
  className: "inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-warning-bg-subtle text-status-warning-text",
447
454
  children: [
448
- /* @__PURE__ */ v(p, { className: "h-3 w-3 fill-current" }),
455
+ /* @__PURE__ */ v(m, { className: "h-3 w-3 fill-current" }),
449
456
  e.rating,
450
457
  " (",
451
458
  e.reviewCount,
@@ -467,7 +474,7 @@ function x() {
467
474
  children: [e.complianceScore, "%"]
468
475
  })]
469
476
  }),
470
- W(e.complianceScore),
477
+ K(e.complianceScore),
471
478
  /* @__PURE__ */ y("p", {
472
479
  className: "text-xs text-text-secondary mt-1",
473
480
  children: [
@@ -477,7 +484,7 @@ function x() {
477
484
  e.documentsRequired,
478
485
  " • Applied:",
479
486
  " ",
480
- V(e.applicationDate)
487
+ U(e.applicationDate)
481
488
  ]
482
489
  })
483
490
  ]
@@ -487,30 +494,30 @@ function x() {
487
494
  children: [
488
495
  /* @__PURE__ */ v("button", {
489
496
  type: "button",
490
- onClick: () => z(e, "view"),
497
+ onClick: () => V(e, "view"),
491
498
  className: "flex-1 rounded-lg border border-border-seam px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
492
499
  children: "View Details"
493
500
  }),
494
501
  !e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("button", {
495
502
  type: "button",
496
- onClick: () => z(e, "approve"),
503
+ onClick: () => V(e, "approve"),
497
504
  className: "rounded-lg bg-action-primary-bg px-3 py-1.5 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
498
505
  children: "Approve"
499
506
  }), /* @__PURE__ */ v("button", {
500
507
  type: "button",
501
- onClick: () => z(e, "reject"),
508
+ onClick: () => V(e, "reject"),
502
509
  className: "rounded-lg border border-border-seam px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
503
510
  children: "Reject"
504
511
  })] }),
505
512
  e.inspectionStatus === "pending" && /* @__PURE__ */ v("button", {
506
513
  type: "button",
507
- onClick: () => z(e, "inspect"),
514
+ onClick: () => V(e, "inspect"),
508
515
  className: "rounded-lg border border-border-seam px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
509
516
  children: "Inspect"
510
517
  }),
511
518
  e.isActive && /* @__PURE__ */ v("button", {
512
519
  type: "button",
513
- onClick: () => z(e, "suspend"),
520
+ onClick: () => V(e, "suspend"),
514
521
  className: "rounded-lg border border-border-seam px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
515
522
  children: "Suspend"
516
523
  })
@@ -553,7 +560,7 @@ function x() {
553
560
  ]
554
561
  }) }), /* @__PURE__ */ v("tbody", {
555
562
  className: "divide-y divide-border",
556
- children: S.map((e) => /* @__PURE__ */ y("tr", {
563
+ children: w.map((e) => /* @__PURE__ */ y("tr", {
557
564
  className: "hover:bg-accent/50 transition-colors",
558
565
  children: [
559
566
  /* @__PURE__ */ v("td", {
@@ -605,13 +612,13 @@ function x() {
605
612
  children: /* @__PURE__ */ y("div", {
606
613
  className: "space-y-1",
607
614
  children: [
608
- U(e.isActive),
615
+ G(e.isActive),
609
616
  /* @__PURE__ */ v("br", {}),
610
- H(e),
617
+ W(e),
611
618
  e.rating > 0 && /* @__PURE__ */ y("div", {
612
619
  className: "text-sm flex items-center gap-1 mt-1",
613
620
  children: [
614
- /* @__PURE__ */ v(p, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
621
+ /* @__PURE__ */ v(m, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
615
622
  e.rating,
616
623
  " ",
617
624
  /* @__PURE__ */ y("span", {
@@ -631,7 +638,7 @@ function x() {
631
638
  className: "px-4 py-3 text-sm",
632
639
  children: [/* @__PURE__ */ y("p", {
633
640
  className: "text-text-primary",
634
- children: [r(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
641
+ children: [i(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
635
642
  }), /* @__PURE__ */ y("p", {
636
643
  className: "text-text-secondary",
637
644
  children: [e.monthlyOrders, " orders/mo"]
@@ -644,7 +651,7 @@ function x() {
644
651
  className: "flex items-center gap-2 mb-1",
645
652
  children: [/* @__PURE__ */ v("div", {
646
653
  className: "w-16",
647
- children: W(e.complianceScore)
654
+ children: K(e.complianceScore)
648
655
  }), /* @__PURE__ */ y("span", {
649
656
  className: "font-medium text-text-primary",
650
657
  children: [e.complianceScore, "%"]
@@ -661,7 +668,7 @@ function x() {
661
668
  }),
662
669
  /* @__PURE__ */ y("p", {
663
670
  className: "text-xs text-text-secondary",
664
- children: ["Applied: ", V(e.applicationDate)]
671
+ children: ["Applied: ", U(e.applicationDate)]
665
672
  })
666
673
  ]
667
674
  }),
@@ -672,35 +679,35 @@ function x() {
672
679
  children: [
673
680
  /* @__PURE__ */ y("button", {
674
681
  type: "button",
675
- onClick: () => z(e, "view"),
682
+ onClick: () => V(e, "view"),
676
683
  className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors inline-flex items-center gap-1 text-xs",
677
- children: [/* @__PURE__ */ v(l, { className: "h-4 w-4" }), " View"]
684
+ children: [/* @__PURE__ */ v(u, { className: "h-4 w-4" }), " View"]
678
685
  }),
679
686
  !e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ y("div", {
680
687
  className: "flex gap-1",
681
688
  children: [/* @__PURE__ */ v("button", {
682
689
  type: "button",
683
- onClick: () => z(e, "approve"),
690
+ onClick: () => V(e, "approve"),
684
691
  className: "rounded p-1.5 text-text-secondary hover:text-status-success-text hover:bg-status-success-bg-subtle transition-colors",
685
- children: /* @__PURE__ */ v(s, { className: "h-4 w-4" })
692
+ children: /* @__PURE__ */ v(c, { className: "h-4 w-4" })
686
693
  }), /* @__PURE__ */ v("button", {
687
694
  type: "button",
688
- onClick: () => z(e, "reject"),
695
+ onClick: () => V(e, "reject"),
689
696
  className: "rounded p-1.5 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
690
697
  children: /* @__PURE__ */ v(g, { className: "h-4 w-4" })
691
698
  })]
692
699
  }),
693
700
  e.inspectionStatus === "pending" && /* @__PURE__ */ y("button", {
694
701
  type: "button",
695
- onClick: () => z(e, "inspect"),
702
+ onClick: () => V(e, "inspect"),
696
703
  className: "rounded p-1.5 text-text-secondary hover:text-status-info-text hover:bg-status-info-bg-subtle transition-colors inline-flex items-center gap-1 text-xs",
697
- children: [/* @__PURE__ */ v(c, { className: "h-4 w-4" }), " Inspect"]
704
+ children: [/* @__PURE__ */ v(l, { className: "h-4 w-4" }), " Inspect"]
698
705
  }),
699
706
  e.isActive && /* @__PURE__ */ v("button", {
700
707
  type: "button",
701
- onClick: () => z(e, "suspend"),
708
+ onClick: () => V(e, "suspend"),
702
709
  className: "rounded p-1.5 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
703
- children: /* @__PURE__ */ v(d, { className: "h-4 w-4" })
710
+ children: /* @__PURE__ */ v(f, { className: "h-4 w-4" })
704
711
  })
705
712
  ]
706
713
  })
@@ -710,16 +717,14 @@ function x() {
710
717
  })]
711
718
  })
712
719
  }),
713
- S.length === 0 && /* @__PURE__ */ y("div", {
714
- className: "flex flex-col items-center justify-center py-12 px-4",
715
- children: [/* @__PURE__ */ v(m, { className: "h-10 w-10 text-text-secondary/50 mb-3" }), /* @__PURE__ */ v("p", {
716
- className: "text-sm text-text-secondary",
717
- children: "No carts found matching your criteria"
718
- })]
720
+ w.length === 0 && /* @__PURE__ */ v(r, {
721
+ illustration: "empty-search",
722
+ title: "No carts found",
723
+ description: "No carts match your current search or filters. Adjust them to see more service providers."
719
724
  })
720
725
  ]
721
726
  }),
722
- O && E && /* @__PURE__ */ v("div", {
727
+ A && O && /* @__PURE__ */ v("div", {
723
728
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
724
729
  children: /* @__PURE__ */ y("div", {
725
730
  className: "w-full max-w-2xl rounded-lg border border-border-seam bg-bg-surface shadow-lg max-h-[90vh] overflow-y-auto",
@@ -727,10 +732,10 @@ function x() {
727
732
  className: "flex items-center justify-between p-4 border-b border-border-seam",
728
733
  children: [/* @__PURE__ */ v("h3", {
729
734
  className: "text-lg font-semibold text-text-primary",
730
- children: A === "view" ? "Cart Details" : A === "approve" ? "Approve Cart" : A === "reject" ? "Reject Cart" : A === "suspend" ? "Suspend Cart" : "Schedule Inspection"
735
+ children: M === "view" ? "Cart Details" : M === "approve" ? "Approve Cart" : M === "reject" ? "Reject Cart" : M === "suspend" ? "Suspend Cart" : "Schedule Inspection"
731
736
  }), /* @__PURE__ */ v("button", {
732
737
  type: "button",
733
- onClick: () => k(!1),
738
+ onClick: () => j(!1),
734
739
  className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
735
740
  children: /* @__PURE__ */ v(h, { className: "h-5 w-5" })
736
741
  })]
@@ -745,28 +750,28 @@ function x() {
745
750
  children: "Cart Name"
746
751
  }), /* @__PURE__ */ v("p", {
747
752
  className: "font-medium text-text-primary",
748
- children: E.name
753
+ children: O.name
749
754
  })] }),
750
755
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
751
756
  className: "text-sm text-text-secondary",
752
757
  children: "Category"
753
758
  }), /* @__PURE__ */ v("p", {
754
759
  className: "font-medium text-text-primary",
755
- children: E.category
760
+ children: O.category
756
761
  })] }),
757
762
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
758
763
  className: "text-sm text-text-secondary",
759
764
  children: "Owner"
760
765
  }), /* @__PURE__ */ v("p", {
761
766
  className: "font-medium text-text-primary",
762
- children: E.ownerName
767
+ children: O.ownerName
763
768
  })] }),
764
769
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
765
770
  className: "text-sm text-text-secondary",
766
771
  children: "Contact"
767
772
  }), /* @__PURE__ */ v("p", {
768
773
  className: "font-medium text-text-primary",
769
- children: E.ownerPhone
774
+ children: O.ownerPhone
770
775
  })] })
771
776
  ]
772
777
  }),
@@ -775,14 +780,14 @@ function x() {
775
780
  children: "Description"
776
781
  }), /* @__PURE__ */ v("p", {
777
782
  className: "font-medium text-text-primary",
778
- children: E.description
783
+ children: O.description
779
784
  })] }),
780
785
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
781
786
  className: "text-sm text-text-secondary",
782
787
  children: "Location"
783
788
  }), /* @__PURE__ */ v("p", {
784
789
  className: "font-medium text-text-primary",
785
- children: E.address
790
+ children: O.address
786
791
  })] }),
787
792
  /* @__PURE__ */ y("div", {
788
793
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
@@ -792,7 +797,7 @@ function x() {
792
797
  children: "Compliance Score"
793
798
  }), /* @__PURE__ */ y("p", {
794
799
  className: "font-medium text-text-primary",
795
- children: [E.complianceScore, "%"]
800
+ children: [O.complianceScore, "%"]
796
801
  })] }),
797
802
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
798
803
  className: "text-sm text-text-secondary",
@@ -800,9 +805,9 @@ function x() {
800
805
  }), /* @__PURE__ */ y("p", {
801
806
  className: "font-medium text-text-primary",
802
807
  children: [
803
- E.documentsSubmitted,
808
+ O.documentsSubmitted,
804
809
  "/",
805
- E.documentsRequired
810
+ O.documentsRequired
806
811
  ]
807
812
  })] }),
808
813
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
@@ -810,31 +815,31 @@ function x() {
810
815
  children: "Monthly Revenue"
811
816
  }), /* @__PURE__ */ v("p", {
812
817
  className: "font-medium text-text-primary",
813
- children: r(E.monthlyRevenue, { minimumFractionDigits: 0 })
818
+ children: i(O.monthlyRevenue, { minimumFractionDigits: 0 })
814
819
  })] })
815
820
  ]
816
821
  }),
817
- E.rejectionReason && /* @__PURE__ */ y("div", {
822
+ O.rejectionReason && /* @__PURE__ */ y("div", {
818
823
  className: "rounded-lg border border-status-error-border bg-status-error-bg-subtle p-4",
819
824
  children: [/* @__PURE__ */ v("p", {
820
825
  className: "text-sm font-medium text-status-error-text",
821
826
  children: "Previous Rejection Reason:"
822
827
  }), /* @__PURE__ */ v("p", {
823
828
  className: "text-sm text-status-error-text",
824
- children: E.rejectionReason
829
+ children: O.rejectionReason
825
830
  })]
826
831
  }),
827
- A === "reject" && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
832
+ M === "reject" && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
828
833
  className: "block text-sm font-medium text-text-primary mb-2",
829
834
  children: "Rejection Reason *"
830
835
  }), /* @__PURE__ */ v("textarea", {
831
836
  className: "w-full rounded-lg border border-border-seam bg-bg-surface p-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] min-h-[100px]",
832
837
  rows: 4,
833
- value: M,
834
- onChange: (e) => N(e.target.value),
838
+ value: P,
839
+ onChange: (e) => F(e.target.value),
835
840
  placeholder: "Please provide a detailed reason for rejection..."
836
841
  })] }),
837
- A === "approve" && /* @__PURE__ */ v("div", {
842
+ M === "approve" && /* @__PURE__ */ v("div", {
838
843
  className: "rounded-lg border border-status-success-border bg-status-success-bg-subtle p-4",
839
844
  children: /* @__PURE__ */ v("p", {
840
845
  className: "text-sm text-status-success-text",
@@ -845,15 +850,15 @@ function x() {
845
850
  className: "flex gap-3 pt-2",
846
851
  children: [/* @__PURE__ */ v("button", {
847
852
  type: "button",
848
- onClick: () => k(!1),
853
+ onClick: () => j(!1),
849
854
  className: "flex-1 rounded-lg border border-border-seam py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
850
855
  children: "Cancel"
851
- }), A !== "view" && /* @__PURE__ */ v("button", {
856
+ }), M !== "view" && /* @__PURE__ */ v("button", {
852
857
  type: "button",
853
- onClick: B,
854
- disabled: A === "reject" && !M.trim(),
858
+ onClick: H,
859
+ disabled: M === "reject" && !P.trim(),
855
860
  className: "flex-1 rounded-lg bg-action-primary-bg py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
856
- children: A === "approve" ? "Approve Cart" : A === "reject" ? "Reject Cart" : A === "suspend" ? "Suspend Cart" : "Schedule Inspection"
861
+ children: M === "approve" ? "Approve Cart" : M === "reject" ? "Reject Cart" : M === "suspend" ? "Suspend Cart" : "Schedule Inspection"
857
862
  })]
858
863
  })
859
864
  ]
@@ -864,6 +869,6 @@ function x() {
864
869
  });
865
870
  }
866
871
  //#endregion
867
- export { x as CartManagementPage };
872
+ export { C as CartManagementPage };
868
873
 
869
874
  //# sourceMappingURL=CartManagementPage.js.map