@burdenoff/microfe-coolandlovely 2026.625.1 → 2026.625.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/coolandlovely/pages/HomePage.js +263 -258
  2. package/dist/coolandlovely/pages/HomePage.js.map +1 -1
  3. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +67 -61
  4. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/coolandlovely/pages/admin/AdminDashboard.js +79 -45
  6. package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +39 -33
  8. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +227 -222
  10. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/coolandlovely/pages/admin/AdminProfilePage.js +65 -60
  12. package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +235 -230
  14. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/coolandlovely/pages/admin/CartManagementPage.js +268 -263
  16. package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/coolandlovely/pages/admin/UserManagementPage.js +268 -263
  18. package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +92 -84
  20. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +257 -252
  22. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +587 -548
  24. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +171 -166
  26. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +219 -211
  28. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +671 -670
  30. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +515 -514
  32. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +244 -246
  34. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/coolandlovely/pages/common/HelpSupportPage.js +96 -96
  36. package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/coolandlovely/pages/common/NotificationCenterPage.js +50 -44
  38. package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/coolandlovely/pages/common/SettingsPage.js +745 -736
  40. package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +394 -357
  42. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/coolandlovely/pages/customer/CartDetailPage.js +179 -176
  44. package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +215 -204
  46. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/coolandlovely/pages/customer/CheckoutPage.js +212 -215
  48. package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/coolandlovely/pages/customer/CustomerDashboard.js +438 -396
  50. package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +525 -488
  52. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +522 -513
  54. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/coolandlovely/pages/customer/FavoritesPage.js +86 -76
  56. package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +118 -109
  58. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +312 -275
  60. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +82 -76
  62. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/coolandlovely/pages/customer/ReviewsPage.js +83 -73
  64. package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +61 -55
  66. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +293 -255
  68. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +238 -232
  70. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +61 -55
  72. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/coolandlovely/pages/investor/InvestorDashboard.js +356 -320
  74. package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +107 -101
  76. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +170 -137
  78. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +386 -381
  80. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +359 -322
  82. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/coolandlovely/pages/worker/WorkerDashboard.js +574 -537
  84. package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +81 -76
  86. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +82 -77
  88. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +78 -73
  90. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. package/package.json +3 -3
@@ -1,12 +1,14 @@
1
1
  import { useCoolAndLovely as e } from "../../context/CoolAndLovelyContext.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";
7
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
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, Store as h, X as g, XCircle as _ } from "lucide-react";
8
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
9
+ import { EmphasisPanel as x, PagePurpose as S } from "@burdenoff/fe-libs/ui";
8
10
  //#region src/coolandlovely/pages/admin/CartManagementPage.tsx
9
- var b = [
11
+ var C = [
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 w() {
87
+ let { navigateTo: w } = e(), [T, E] = s([]), [D, O] = s(!0), [k, A] = s(null), [j, M] = s(!1), [N, P] = s("view"), [F, I] = s(""), [L, R] = s({
86
88
  searchQuery: "",
87
89
  status: "",
88
90
  verificationStatus: "",
89
91
  category: "",
90
92
  location: "",
91
93
  sortBy: "recent"
92
- }), [I] = o({
94
+ }), [z] = 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
+ }), B = a(() => {
104
+ O(!0), setTimeout(() => {
105
+ let e = [...C];
106
+ if (L.searchQuery) {
107
+ let t = L.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 (L.status && (L.status === "active" && (e = e.filter((e) => e.isActive)), L.status === "inactive" && (e = e.filter((e) => !e.isActive))), L.verificationStatus && (L.verificationStatus === "verified" && (e = e.filter((e) => e.isVerified)), L.verificationStatus === "pending" && (e = e.filter((e) => !e.isVerified && e.inspectionStatus !== "failed")), L.verificationStatus === "rejected" && (e = e.filter((e) => e.inspectionStatus === "failed"))), L.category && (e = e.filter((e) => e.category === L.category)), L.location && (e = e.filter((e) => e.city.toLowerCase().includes(L.location.toLowerCase()))), L.sortBy) {
109
111
  case "name":
110
112
  e.sort((e, t) => e.name.localeCompare(t.name));
111
113
  break;
@@ -120,253 +122,258 @@ 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
+ E(e), O(!1);
124
126
  }, 800);
125
- }, [P]);
126
- a(() => {
127
- L();
128
127
  }, [L]);
129
- let R = (e, t) => {
130
- F((n) => ({
128
+ o(() => {
129
+ B();
130
+ }, [B]);
131
+ let V = (e, t) => {
132
+ R((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
+ }, H = (e, t) => {
137
+ A(e), P(t), I(""), M(!0);
138
+ }, U = () => {
139
+ if (!k) return;
138
140
  let e = "";
139
- switch (A) {
141
+ switch (N) {
140
142
  case "approve":
141
- e = `Cart"${E.name}" approved successfully`;
143
+ e = `Cart"${k.name}" approved successfully`;
142
144
  break;
143
145
  case "reject":
144
- if (!M.trim()) {
146
+ if (!F.trim()) {
145
147
  alert("Please provide a rejection reason");
146
148
  return;
147
149
  }
148
- e = `Cart"${E.name}" rejected`;
150
+ e = `Cart"${k.name}" rejected`;
149
151
  break;
150
152
  case "suspend":
151
- e = `Cart"${E.name}" suspended`;
153
+ e = `Cart"${k.name}" suspended`;
152
154
  break;
153
155
  case "inspect":
154
- e = `Inspection scheduled for"${E.name}"`;
156
+ e = `Inspection scheduled for"${k.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), M(!1), I(""), B();
160
+ }, W = (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
+ }), G = (e) => e.isVerified ? /* @__PURE__ */ y("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/20 text-status-success-text",
164
166
  children: "Verified"
165
- }) : e.inspectionStatus === "pending" ? /* @__PURE__ */ v("span", {
167
+ }) : e.inspectionStatus === "pending" ? /* @__PURE__ */ y("span", {
166
168
  className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-warning-bg-subtle/20 text-status-warning-text",
167
169
  children: "Pending Review"
168
- }) : e.inspectionStatus === "scheduled" ? /* @__PURE__ */ v("span", {
170
+ }) : e.inspectionStatus === "scheduled" ? /* @__PURE__ */ y("span", {
169
171
  className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-accent-blue-subtle/20 text-accent-blue",
170
172
  children: "Inspection Scheduled"
171
- }) : e.inspectionStatus === "failed" ? /* @__PURE__ */ v("span", {
173
+ }) : e.inspectionStatus === "failed" ? /* @__PURE__ */ y("span", {
172
174
  className: "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-status-error-bg-subtle/20 text-status-error-text",
173
175
  children: "Rejected"
174
- }) : /* @__PURE__ */ v("span", {
176
+ }) : /* @__PURE__ */ y("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
+ }), K = (e) => e ? /* @__PURE__ */ y("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/20 text-status-success-text",
179
181
  children: "Active"
180
- }) : /* @__PURE__ */ v("span", {
182
+ }) : /* @__PURE__ */ y("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
+ }), q = (e) => /* @__PURE__ */ y("div", {
184
186
  className: "w-full bg-bg-sunken rounded-full h-2",
185
- children: /* @__PURE__ */ v("div", {
187
+ children: /* @__PURE__ */ y("div", {
186
188
  className: t("h-2 rounded-full", e >= 80 ? "bg-status-success-bg-subtle" : e >= 60 ? "bg-status-warning-bg-subtle" : "bg-status-error-bg-subtle"),
187
189
  style: { width: `${e}%` }
188
190
  })
189
191
  });
190
- return w ? /* @__PURE__ */ v(n, {
192
+ return D ? /* @__PURE__ */ y(n, {
191
193
  title: "Cart Management",
192
194
  description: "Loading carts...",
193
- children: /* @__PURE__ */ y("div", {
195
+ children: /* @__PURE__ */ b("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__ */ y(d, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ y("p", {
196
198
  className: "text-text-secondary",
197
199
  children: "Loading carts..."
198
200
  })]
199
201
  })
200
- }) : /* @__PURE__ */ y(n, {
202
+ }) : /* @__PURE__ */ b(n, {
201
203
  title: "Cart Management",
202
- description: `${I.totalCarts} service providers on the platform`,
203
- actions: /* @__PURE__ */ y("span", {
204
+ description: `${z.totalCarts} service providers on the platform`,
205
+ actions: /* @__PURE__ */ b("span", {
204
206
  className: "text-sm text-text-secondary",
205
- children: [I.pendingApproval, " pending approval"]
207
+ children: [z.pendingApproval, " pending approval"]
206
208
  }),
207
209
  children: [
208
- /* @__PURE__ */ v("div", {
209
- className: "grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-3 mb-6",
210
+ /* @__PURE__ */ y(S, {
211
+ className: "mb-6",
212
+ icon: /* @__PURE__ */ y(h, { className: "h-4 w-4" }),
213
+ children: "Oversee every cart on the platform. Approve or reject new applications, suspend or inspect problem carts, and filter the full list by status, category or rating — this is where you keep the marketplace trustworthy and only quality businesses go live."
214
+ }),
215
+ /* @__PURE__ */ y(x, {
216
+ className: "grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-3 mb-6 p-4",
210
217
  children: [
211
218
  {
212
219
  label: "Total Carts",
213
- value: I.totalCarts,
220
+ value: z.totalCarts,
214
221
  cls: ""
215
222
  },
216
223
  {
217
224
  label: "Active",
218
- value: I.activeCarts,
225
+ value: z.activeCarts,
219
226
  cls: "bg-status-success-bg-subtle/10 border-status-success-border/30"
220
227
  },
221
228
  {
222
229
  label: "Pending",
223
- value: I.pendingApproval,
230
+ value: z.pendingApproval,
224
231
  cls: "bg-status-warning-bg-subtle/10 border-status-warning-border/30"
225
232
  },
226
233
  {
227
234
  label: "Rejected",
228
- value: I.rejectedCarts,
235
+ value: z.rejectedCarts,
229
236
  cls: "bg-status-error-bg-subtle/10 border-status-error-border/30"
230
237
  },
231
238
  {
232
239
  label: "Total Revenue",
233
- value: r(I.totalRevenue, { minimumFractionDigits: 0 }),
240
+ value: i(z.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: `${z.averageRating}`,
239
246
  cls: ""
240
247
  },
241
248
  {
242
249
  label: "New Apps",
243
- value: I.newApplications,
250
+ value: z.newApplications,
244
251
  cls: "bg-accent-blue-subtle/10 border-accent-blue-subtle/30"
245
252
  }
246
- ].map((e) => /* @__PURE__ */ y("div", {
253
+ ].map((e) => /* @__PURE__ */ b("div", {
247
254
  className: t("rounded-lg border border-border-subtle bg-bg-surface p-3", e.cls),
248
- children: [/* @__PURE__ */ v("p", {
255
+ children: [/* @__PURE__ */ y("p", {
249
256
  className: "text-xs text-text-secondary",
250
257
  children: e.label
251
- }), /* @__PURE__ */ v("p", {
258
+ }), /* @__PURE__ */ y("p", {
252
259
  className: "text-lg font-bold text-text-primary",
253
260
  children: e.value
254
261
  })]
255
262
  }, e.label))
256
263
  }),
257
- /* @__PURE__ */ v("div", {
264
+ /* @__PURE__ */ y("div", {
258
265
  className: "rounded-lg border border-border-seam bg-bg-surface p-4 mb-6 bg-gloss-card shadow-pop",
259
- children: /* @__PURE__ */ y("div", {
266
+ children: /* @__PURE__ */ b("div", {
260
267
  className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",
261
268
  children: [
262
- /* @__PURE__ */ y("div", {
269
+ /* @__PURE__ */ b("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__ */ y(p, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ y("input", {
265
272
  type: "text",
266
273
  placeholder: "Search carts...",
267
- value: P.searchQuery,
268
- onChange: (e) => R("searchQuery", e.target.value),
274
+ value: L.searchQuery,
275
+ onChange: (e) => V("searchQuery", e.target.value),
269
276
  className: "w-full rounded-lg border border-border-subtle 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
- /* @__PURE__ */ y("select", {
273
- value: P.status,
274
- onChange: (e) => R("status", e.target.value),
279
+ /* @__PURE__ */ b("select", {
280
+ value: L.status,
281
+ onChange: (e) => V("status", e.target.value),
275
282
  className: "rounded-lg border border-border-subtle 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
- /* @__PURE__ */ v("option", {
284
+ /* @__PURE__ */ y("option", {
278
285
  value: "",
279
286
  children: "All Status"
280
287
  }),
281
- /* @__PURE__ */ v("option", {
288
+ /* @__PURE__ */ y("option", {
282
289
  value: "active",
283
290
  children: "Active"
284
291
  }),
285
- /* @__PURE__ */ v("option", {
292
+ /* @__PURE__ */ y("option", {
286
293
  value: "inactive",
287
294
  children: "Inactive"
288
295
  })
289
296
  ]
290
297
  }),
291
- /* @__PURE__ */ y("select", {
292
- value: P.verificationStatus,
293
- onChange: (e) => R("verificationStatus", e.target.value),
298
+ /* @__PURE__ */ b("select", {
299
+ value: L.verificationStatus,
300
+ onChange: (e) => V("verificationStatus", e.target.value),
294
301
  className: "rounded-lg border border-border-subtle 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
- /* @__PURE__ */ v("option", {
303
+ /* @__PURE__ */ y("option", {
297
304
  value: "",
298
305
  children: "All Verification"
299
306
  }),
300
- /* @__PURE__ */ v("option", {
307
+ /* @__PURE__ */ y("option", {
301
308
  value: "verified",
302
309
  children: "Verified"
303
310
  }),
304
- /* @__PURE__ */ v("option", {
311
+ /* @__PURE__ */ y("option", {
305
312
  value: "pending",
306
313
  children: "Pending"
307
314
  }),
308
- /* @__PURE__ */ v("option", {
315
+ /* @__PURE__ */ y("option", {
309
316
  value: "rejected",
310
317
  children: "Rejected"
311
318
  })
312
319
  ]
313
320
  }),
314
- /* @__PURE__ */ y("select", {
315
- value: P.category,
316
- onChange: (e) => R("category", e.target.value),
321
+ /* @__PURE__ */ b("select", {
322
+ value: L.category,
323
+ onChange: (e) => V("category", e.target.value),
317
324
  className: "rounded-lg border border-border-subtle 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
- /* @__PURE__ */ v("option", {
326
+ /* @__PURE__ */ y("option", {
320
327
  value: "",
321
328
  children: "All Categories"
322
329
  }),
323
- /* @__PURE__ */ v("option", {
330
+ /* @__PURE__ */ y("option", {
324
331
  value: "Food & Beverage",
325
332
  children: "Food & Beverage"
326
333
  }),
327
- /* @__PURE__ */ v("option", {
334
+ /* @__PURE__ */ y("option", {
328
335
  value: "Beverages",
329
336
  children: "Beverages"
330
337
  }),
331
- /* @__PURE__ */ v("option", {
338
+ /* @__PURE__ */ y("option", {
332
339
  value: "Street Food",
333
340
  children: "Street Food"
334
341
  }),
335
- /* @__PURE__ */ v("option", {
342
+ /* @__PURE__ */ y("option", {
336
343
  value: "Fast Food",
337
344
  children: "Fast Food"
338
345
  })
339
346
  ]
340
347
  }),
341
- /* @__PURE__ */ v("input", {
348
+ /* @__PURE__ */ y("input", {
342
349
  type: "text",
343
350
  placeholder: "Location...",
344
- value: P.location,
345
- onChange: (e) => R("location", e.target.value),
351
+ value: L.location,
352
+ onChange: (e) => V("location", e.target.value),
346
353
  className: "rounded-lg border border-border-subtle 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
- /* @__PURE__ */ y("select", {
349
- value: P.sortBy,
350
- onChange: (e) => R("sortBy", e.target.value),
355
+ /* @__PURE__ */ b("select", {
356
+ value: L.sortBy,
357
+ onChange: (e) => V("sortBy", e.target.value),
351
358
  className: "rounded-lg border border-border-subtle 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
- /* @__PURE__ */ v("option", {
360
+ /* @__PURE__ */ y("option", {
354
361
  value: "recent",
355
362
  children: "Most Recent"
356
363
  }),
357
- /* @__PURE__ */ v("option", {
364
+ /* @__PURE__ */ y("option", {
358
365
  value: "name",
359
366
  children: "Name A-Z"
360
367
  }),
361
- /* @__PURE__ */ v("option", {
368
+ /* @__PURE__ */ y("option", {
362
369
  value: "rating",
363
370
  children: "Highest Rated"
364
371
  }),
365
- /* @__PURE__ */ v("option", {
372
+ /* @__PURE__ */ y("option", {
366
373
  value: "revenue",
367
374
  children: "Highest Revenue"
368
375
  }),
369
- /* @__PURE__ */ v("option", {
376
+ /* @__PURE__ */ y("option", {
370
377
  value: "compliance",
371
378
  children: "Best Compliance"
372
379
  })
@@ -375,77 +382,77 @@ function x() {
375
382
  ]
376
383
  })
377
384
  }),
378
- /* @__PURE__ */ y("div", {
385
+ /* @__PURE__ */ b("div", {
379
386
  className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
380
387
  children: [
381
- /* @__PURE__ */ v("div", {
388
+ /* @__PURE__ */ y("div", {
382
389
  className: "block md:hidden space-y-4 p-4",
383
- children: S.map((e) => /* @__PURE__ */ y("div", {
390
+ children: T.map((e) => /* @__PURE__ */ b("div", {
384
391
  className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
385
392
  children: [
386
- /* @__PURE__ */ y("div", {
393
+ /* @__PURE__ */ b("div", {
387
394
  className: "flex items-center mb-3",
388
- children: [/* @__PURE__ */ v("img", {
395
+ children: [/* @__PURE__ */ y("img", {
389
396
  src: e.image,
390
397
  alt: e.name,
391
398
  className: "w-16 h-16 rounded-lg object-cover mr-3"
392
- }), /* @__PURE__ */ y("div", {
399
+ }), /* @__PURE__ */ b("div", {
393
400
  className: "flex-1 min-w-0",
394
401
  children: [
395
- /* @__PURE__ */ v("h3", {
402
+ /* @__PURE__ */ y("h3", {
396
403
  className: "font-medium text-text-primary text-lg truncate",
397
404
  children: e.name
398
405
  }),
399
- /* @__PURE__ */ v("p", {
406
+ /* @__PURE__ */ y("p", {
400
407
  className: "text-sm text-text-secondary truncate",
401
408
  children: e.category
402
409
  }),
403
- /* @__PURE__ */ v("p", {
410
+ /* @__PURE__ */ y("p", {
404
411
  className: "text-sm text-text-secondary truncate",
405
412
  children: e.address
406
413
  })
407
414
  ]
408
415
  })]
409
416
  }),
410
- /* @__PURE__ */ y("div", {
417
+ /* @__PURE__ */ b("div", {
411
418
  className: "grid grid-cols-2 gap-4 mb-3 text-sm",
412
- children: [/* @__PURE__ */ y("div", { children: [
413
- /* @__PURE__ */ v("p", {
419
+ children: [/* @__PURE__ */ b("div", { children: [
420
+ /* @__PURE__ */ y("p", {
414
421
  className: "text-text-secondary font-medium",
415
422
  children: "Owner"
416
423
  }),
417
- /* @__PURE__ */ v("p", {
424
+ /* @__PURE__ */ y("p", {
418
425
  className: "text-text-primary",
419
426
  children: e.ownerName
420
427
  }),
421
- /* @__PURE__ */ v("p", {
428
+ /* @__PURE__ */ y("p", {
422
429
  className: "text-text-secondary text-xs",
423
430
  children: e.ownerPhone
424
431
  })
425
- ] }), /* @__PURE__ */ y("div", { children: [
426
- /* @__PURE__ */ v("p", {
432
+ ] }), /* @__PURE__ */ b("div", { children: [
433
+ /* @__PURE__ */ y("p", {
427
434
  className: "text-text-secondary font-medium",
428
435
  children: "Performance"
429
436
  }),
430
- /* @__PURE__ */ y("p", {
437
+ /* @__PURE__ */ b("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
- /* @__PURE__ */ y("p", {
441
+ /* @__PURE__ */ b("p", {
435
442
  className: "text-text-secondary text-xs",
436
443
  children: [e.monthlyOrders, " orders"]
437
444
  })
438
445
  ] })]
439
446
  }),
440
- /* @__PURE__ */ y("div", {
447
+ /* @__PURE__ */ b("div", {
441
448
  className: "flex flex-wrap gap-2 mb-3",
442
449
  children: [
443
- U(e.isActive),
444
- H(e),
445
- e.rating > 0 && /* @__PURE__ */ y("span", {
450
+ K(e.isActive),
451
+ G(e),
452
+ e.rating > 0 && /* @__PURE__ */ b("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/20 text-status-warning-text",
447
454
  children: [
448
- /* @__PURE__ */ v(p, { className: "h-3 w-3 fill-current" }),
455
+ /* @__PURE__ */ y(m, { className: "h-3 w-3 fill-current" }),
449
456
  e.rating,
450
457
  " (",
451
458
  e.reviewCount,
@@ -454,21 +461,21 @@ function x() {
454
461
  })
455
462
  ]
456
463
  }),
457
- /* @__PURE__ */ y("div", {
464
+ /* @__PURE__ */ b("div", {
458
465
  className: "mb-3",
459
466
  children: [
460
- /* @__PURE__ */ y("div", {
467
+ /* @__PURE__ */ b("div", {
461
468
  className: "flex items-center justify-between text-sm mb-1",
462
- children: [/* @__PURE__ */ v("span", {
469
+ children: [/* @__PURE__ */ y("span", {
463
470
  className: "text-text-secondary",
464
471
  children: "Compliance"
465
- }), /* @__PURE__ */ y("span", {
472
+ }), /* @__PURE__ */ b("span", {
466
473
  className: "font-medium text-text-primary",
467
474
  children: [e.complianceScore, "%"]
468
475
  })]
469
476
  }),
470
- W(e.complianceScore),
471
- /* @__PURE__ */ y("p", {
477
+ q(e.complianceScore),
478
+ /* @__PURE__ */ b("p", {
472
479
  className: "text-xs text-text-secondary mt-1",
473
480
  children: [
474
481
  "Docs: ",
@@ -477,40 +484,40 @@ function x() {
477
484
  e.documentsRequired,
478
485
  " • Applied:",
479
486
  " ",
480
- V(e.applicationDate)
487
+ W(e.applicationDate)
481
488
  ]
482
489
  })
483
490
  ]
484
491
  }),
485
- /* @__PURE__ */ y("div", {
492
+ /* @__PURE__ */ b("div", {
486
493
  className: "flex flex-wrap gap-2",
487
494
  children: [
488
- /* @__PURE__ */ v("button", {
495
+ /* @__PURE__ */ y("button", {
489
496
  type: "button",
490
- onClick: () => z(e, "view"),
497
+ onClick: () => H(e, "view"),
491
498
  className: "flex-1 rounded-lg border border-border-subtle 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
- !e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("button", {
501
+ !e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("button", {
495
502
  type: "button",
496
- onClick: () => z(e, "approve"),
503
+ onClick: () => H(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
- }), /* @__PURE__ */ v("button", {
506
+ }), /* @__PURE__ */ y("button", {
500
507
  type: "button",
501
- onClick: () => z(e, "reject"),
508
+ onClick: () => H(e, "reject"),
502
509
  className: "rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
503
510
  children: "Reject"
504
511
  })] }),
505
- e.inspectionStatus === "pending" && /* @__PURE__ */ v("button", {
512
+ e.inspectionStatus === "pending" && /* @__PURE__ */ y("button", {
506
513
  type: "button",
507
- onClick: () => z(e, "inspect"),
514
+ onClick: () => H(e, "inspect"),
508
515
  className: "rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
509
516
  children: "Inspect"
510
517
  }),
511
- e.isActive && /* @__PURE__ */ v("button", {
518
+ e.isActive && /* @__PURE__ */ y("button", {
512
519
  type: "button",
513
- onClick: () => z(e, "suspend"),
520
+ onClick: () => H(e, "suspend"),
514
521
  className: "rounded-lg border border-border-subtle px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
515
522
  children: "Suspend"
516
523
  })
@@ -519,63 +526,63 @@ function x() {
519
526
  ]
520
527
  }, e.id))
521
528
  }),
522
- /* @__PURE__ */ v("div", {
529
+ /* @__PURE__ */ y("div", {
523
530
  className: "hidden md:block overflow-x-auto",
524
- children: /* @__PURE__ */ y("table", {
531
+ children: /* @__PURE__ */ b("table", {
525
532
  className: "w-full",
526
- children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ y("tr", {
533
+ children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
527
534
  className: "border-b border-border-subtle bg-bg-sunken/50",
528
535
  children: [
529
- /* @__PURE__ */ v("th", {
536
+ /* @__PURE__ */ y("th", {
530
537
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
531
538
  children: "Cart"
532
539
  }),
533
- /* @__PURE__ */ v("th", {
540
+ /* @__PURE__ */ y("th", {
534
541
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
535
542
  children: "Owner"
536
543
  }),
537
- /* @__PURE__ */ v("th", {
544
+ /* @__PURE__ */ y("th", {
538
545
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
539
546
  children: "Status"
540
547
  }),
541
- /* @__PURE__ */ v("th", {
548
+ /* @__PURE__ */ y("th", {
542
549
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
543
550
  children: "Performance"
544
551
  }),
545
- /* @__PURE__ */ v("th", {
552
+ /* @__PURE__ */ y("th", {
546
553
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
547
554
  children: "Compliance"
548
555
  }),
549
- /* @__PURE__ */ v("th", {
556
+ /* @__PURE__ */ y("th", {
550
557
  className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
551
558
  children: "Actions"
552
559
  })
553
560
  ]
554
- }) }), /* @__PURE__ */ v("tbody", {
561
+ }) }), /* @__PURE__ */ y("tbody", {
555
562
  className: "divide-y divide-border",
556
- children: S.map((e) => /* @__PURE__ */ y("tr", {
563
+ children: T.map((e) => /* @__PURE__ */ b("tr", {
557
564
  className: "hover:bg-accent/50 transition-colors",
558
565
  children: [
559
- /* @__PURE__ */ v("td", {
566
+ /* @__PURE__ */ y("td", {
560
567
  className: "px-4 py-3",
561
- children: /* @__PURE__ */ y("div", {
568
+ children: /* @__PURE__ */ b("div", {
562
569
  className: "flex items-center gap-3",
563
- children: [/* @__PURE__ */ v("img", {
570
+ children: [/* @__PURE__ */ y("img", {
564
571
  src: e.image,
565
572
  alt: e.name,
566
573
  className: "w-12 h-12 rounded-lg object-cover"
567
- }), /* @__PURE__ */ y("div", {
574
+ }), /* @__PURE__ */ b("div", {
568
575
  className: "min-w-0",
569
576
  children: [
570
- /* @__PURE__ */ v("p", {
577
+ /* @__PURE__ */ y("p", {
571
578
  className: "text-sm font-medium text-text-primary truncate",
572
579
  children: e.name
573
580
  }),
574
- /* @__PURE__ */ v("p", {
581
+ /* @__PURE__ */ y("p", {
575
582
  className: "text-xs text-text-secondary truncate",
576
583
  children: e.category
577
584
  }),
578
- /* @__PURE__ */ v("p", {
585
+ /* @__PURE__ */ y("p", {
579
586
  className: "text-xs text-text-secondary truncate",
580
587
  children: e.address
581
588
  })
@@ -583,38 +590,38 @@ function x() {
583
590
  })]
584
591
  })
585
592
  }),
586
- /* @__PURE__ */ y("td", {
593
+ /* @__PURE__ */ b("td", {
587
594
  className: "px-4 py-3 text-sm",
588
595
  children: [
589
- /* @__PURE__ */ v("p", {
596
+ /* @__PURE__ */ y("p", {
590
597
  className: "font-medium text-text-primary",
591
598
  children: e.ownerName
592
599
  }),
593
- /* @__PURE__ */ v("p", {
600
+ /* @__PURE__ */ y("p", {
594
601
  className: "text-xs text-text-secondary",
595
602
  children: e.ownerEmail
596
603
  }),
597
- /* @__PURE__ */ v("p", {
604
+ /* @__PURE__ */ y("p", {
598
605
  className: "text-xs text-text-secondary",
599
606
  children: e.ownerPhone
600
607
  })
601
608
  ]
602
609
  }),
603
- /* @__PURE__ */ v("td", {
610
+ /* @__PURE__ */ y("td", {
604
611
  className: "px-4 py-3",
605
- children: /* @__PURE__ */ y("div", {
612
+ children: /* @__PURE__ */ b("div", {
606
613
  className: "space-y-1",
607
614
  children: [
608
- U(e.isActive),
609
- /* @__PURE__ */ v("br", {}),
610
- H(e),
611
- e.rating > 0 && /* @__PURE__ */ y("div", {
615
+ K(e.isActive),
616
+ /* @__PURE__ */ y("br", {}),
617
+ G(e),
618
+ e.rating > 0 && /* @__PURE__ */ b("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__ */ y(m, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
615
622
  e.rating,
616
623
  " ",
617
- /* @__PURE__ */ y("span", {
624
+ /* @__PURE__ */ b("span", {
618
625
  className: "text-text-secondary",
619
626
  children: [
620
627
  "(",
@@ -627,30 +634,30 @@ function x() {
627
634
  ]
628
635
  })
629
636
  }),
630
- /* @__PURE__ */ y("td", {
637
+ /* @__PURE__ */ b("td", {
631
638
  className: "px-4 py-3 text-sm",
632
- children: [/* @__PURE__ */ y("p", {
639
+ children: [/* @__PURE__ */ b("p", {
633
640
  className: "text-text-primary",
634
- children: [r(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
635
- }), /* @__PURE__ */ y("p", {
641
+ children: [i(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
642
+ }), /* @__PURE__ */ b("p", {
636
643
  className: "text-text-secondary",
637
644
  children: [e.monthlyOrders, " orders/mo"]
638
645
  })]
639
646
  }),
640
- /* @__PURE__ */ y("td", {
647
+ /* @__PURE__ */ b("td", {
641
648
  className: "px-4 py-3 text-sm",
642
649
  children: [
643
- /* @__PURE__ */ y("div", {
650
+ /* @__PURE__ */ b("div", {
644
651
  className: "flex items-center gap-2 mb-1",
645
- children: [/* @__PURE__ */ v("div", {
652
+ children: [/* @__PURE__ */ y("div", {
646
653
  className: "w-16",
647
- children: W(e.complianceScore)
648
- }), /* @__PURE__ */ y("span", {
654
+ children: q(e.complianceScore)
655
+ }), /* @__PURE__ */ b("span", {
649
656
  className: "font-medium text-text-primary",
650
657
  children: [e.complianceScore, "%"]
651
658
  })]
652
659
  }),
653
- /* @__PURE__ */ y("p", {
660
+ /* @__PURE__ */ b("p", {
654
661
  className: "text-xs text-text-secondary",
655
662
  children: [
656
663
  "Docs: ",
@@ -659,48 +666,48 @@ function x() {
659
666
  e.documentsRequired
660
667
  ]
661
668
  }),
662
- /* @__PURE__ */ y("p", {
669
+ /* @__PURE__ */ b("p", {
663
670
  className: "text-xs text-text-secondary",
664
- children: ["Applied: ", V(e.applicationDate)]
671
+ children: ["Applied: ", W(e.applicationDate)]
665
672
  })
666
673
  ]
667
674
  }),
668
- /* @__PURE__ */ v("td", {
675
+ /* @__PURE__ */ y("td", {
669
676
  className: "px-4 py-3",
670
- children: /* @__PURE__ */ y("div", {
677
+ children: /* @__PURE__ */ b("div", {
671
678
  className: "flex flex-col gap-1",
672
679
  children: [
673
- /* @__PURE__ */ y("button", {
680
+ /* @__PURE__ */ b("button", {
674
681
  type: "button",
675
- onClick: () => z(e, "view"),
682
+ onClick: () => H(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__ */ y(u, { className: "h-4 w-4" }), " View"]
678
685
  }),
679
- !e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ y("div", {
686
+ !e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ b("div", {
680
687
  className: "flex gap-1",
681
- children: [/* @__PURE__ */ v("button", {
688
+ children: [/* @__PURE__ */ y("button", {
682
689
  type: "button",
683
- onClick: () => z(e, "approve"),
690
+ onClick: () => H(e, "approve"),
684
691
  className: "rounded p-1.5 text-text-secondary hover:text-status-success-text hover:bg-status-success-bg-subtle/10 transition-colors",
685
- children: /* @__PURE__ */ v(s, { className: "h-4 w-4" })
686
- }), /* @__PURE__ */ v("button", {
692
+ children: /* @__PURE__ */ y(c, { className: "h-4 w-4" })
693
+ }), /* @__PURE__ */ y("button", {
687
694
  type: "button",
688
- onClick: () => z(e, "reject"),
695
+ onClick: () => H(e, "reject"),
689
696
  className: "rounded p-1.5 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
690
- children: /* @__PURE__ */ v(g, { className: "h-4 w-4" })
697
+ children: /* @__PURE__ */ y(_, { className: "h-4 w-4" })
691
698
  })]
692
699
  }),
693
- e.inspectionStatus === "pending" && /* @__PURE__ */ y("button", {
700
+ e.inspectionStatus === "pending" && /* @__PURE__ */ b("button", {
694
701
  type: "button",
695
- onClick: () => z(e, "inspect"),
702
+ onClick: () => H(e, "inspect"),
696
703
  className: "rounded p-1.5 text-text-secondary hover:text-accent-blue hover:bg-accent-blue-subtle/10 transition-colors inline-flex items-center gap-1 text-xs",
697
- children: [/* @__PURE__ */ v(c, { className: "h-4 w-4" }), " Inspect"]
704
+ children: [/* @__PURE__ */ y(l, { className: "h-4 w-4" }), " Inspect"]
698
705
  }),
699
- e.isActive && /* @__PURE__ */ v("button", {
706
+ e.isActive && /* @__PURE__ */ y("button", {
700
707
  type: "button",
701
- onClick: () => z(e, "suspend"),
708
+ onClick: () => H(e, "suspend"),
702
709
  className: "rounded p-1.5 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle/10 transition-colors",
703
- children: /* @__PURE__ */ v(d, { className: "h-4 w-4" })
710
+ children: /* @__PURE__ */ y(f, { className: "h-4 w-4" })
704
711
  })
705
712
  ]
706
713
  })
@@ -710,150 +717,148 @@ 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
+ T.length === 0 && /* @__PURE__ */ y(r, {
721
+ illustration: "empty-search",
722
+ title: "No carts found",
723
+ description: "No carts match your current filters. Try adjusting your search criteria."
719
724
  })
720
725
  ]
721
726
  }),
722
- O && E && /* @__PURE__ */ v("div", {
727
+ j && k && /* @__PURE__ */ y("div", {
723
728
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
724
- children: /* @__PURE__ */ y("div", {
729
+ children: /* @__PURE__ */ b("div", {
725
730
  className: "w-full max-w-2xl rounded-lg border border-border-subtle bg-bg-surface shadow-lg max-h-[90vh] overflow-y-auto",
726
- children: [/* @__PURE__ */ y("div", {
731
+ children: [/* @__PURE__ */ b("div", {
727
732
  className: "flex items-center justify-between p-4 border-b border-border-subtle",
728
- children: [/* @__PURE__ */ v("h3", {
733
+ children: [/* @__PURE__ */ y("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"
731
- }), /* @__PURE__ */ v("button", {
735
+ children: N === "view" ? "Cart Details" : N === "approve" ? "Approve Cart" : N === "reject" ? "Reject Cart" : N === "suspend" ? "Suspend Cart" : "Schedule Inspection"
736
+ }), /* @__PURE__ */ y("button", {
732
737
  type: "button",
733
- onClick: () => k(!1),
738
+ onClick: () => M(!1),
734
739
  className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
735
- children: /* @__PURE__ */ v(h, { className: "h-5 w-5" })
740
+ children: /* @__PURE__ */ y(g, { className: "h-5 w-5" })
736
741
  })]
737
- }), /* @__PURE__ */ y("div", {
742
+ }), /* @__PURE__ */ b("div", {
738
743
  className: "p-4 space-y-4",
739
744
  children: [
740
- /* @__PURE__ */ y("div", {
745
+ /* @__PURE__ */ b("div", {
741
746
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
742
747
  children: [
743
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
748
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
744
749
  className: "text-sm text-text-secondary",
745
750
  children: "Cart Name"
746
- }), /* @__PURE__ */ v("p", {
751
+ }), /* @__PURE__ */ y("p", {
747
752
  className: "font-medium text-text-primary",
748
- children: E.name
753
+ children: k.name
749
754
  })] }),
750
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
755
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
751
756
  className: "text-sm text-text-secondary",
752
757
  children: "Category"
753
- }), /* @__PURE__ */ v("p", {
758
+ }), /* @__PURE__ */ y("p", {
754
759
  className: "font-medium text-text-primary",
755
- children: E.category
760
+ children: k.category
756
761
  })] }),
757
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
762
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
758
763
  className: "text-sm text-text-secondary",
759
764
  children: "Owner"
760
- }), /* @__PURE__ */ v("p", {
765
+ }), /* @__PURE__ */ y("p", {
761
766
  className: "font-medium text-text-primary",
762
- children: E.ownerName
767
+ children: k.ownerName
763
768
  })] }),
764
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
769
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
765
770
  className: "text-sm text-text-secondary",
766
771
  children: "Contact"
767
- }), /* @__PURE__ */ v("p", {
772
+ }), /* @__PURE__ */ y("p", {
768
773
  className: "font-medium text-text-primary",
769
- children: E.ownerPhone
774
+ children: k.ownerPhone
770
775
  })] })
771
776
  ]
772
777
  }),
773
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
778
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
774
779
  className: "text-sm text-text-secondary",
775
780
  children: "Description"
776
- }), /* @__PURE__ */ v("p", {
781
+ }), /* @__PURE__ */ y("p", {
777
782
  className: "font-medium text-text-primary",
778
- children: E.description
783
+ children: k.description
779
784
  })] }),
780
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
785
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
781
786
  className: "text-sm text-text-secondary",
782
787
  children: "Location"
783
- }), /* @__PURE__ */ v("p", {
788
+ }), /* @__PURE__ */ y("p", {
784
789
  className: "font-medium text-text-primary",
785
- children: E.address
790
+ children: k.address
786
791
  })] }),
787
- /* @__PURE__ */ y("div", {
792
+ /* @__PURE__ */ b("div", {
788
793
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
789
794
  children: [
790
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
795
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
791
796
  className: "text-sm text-text-secondary",
792
797
  children: "Compliance Score"
793
- }), /* @__PURE__ */ y("p", {
798
+ }), /* @__PURE__ */ b("p", {
794
799
  className: "font-medium text-text-primary",
795
- children: [E.complianceScore, "%"]
800
+ children: [k.complianceScore, "%"]
796
801
  })] }),
797
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
802
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
798
803
  className: "text-sm text-text-secondary",
799
804
  children: "Documents"
800
- }), /* @__PURE__ */ y("p", {
805
+ }), /* @__PURE__ */ b("p", {
801
806
  className: "font-medium text-text-primary",
802
807
  children: [
803
- E.documentsSubmitted,
808
+ k.documentsSubmitted,
804
809
  "/",
805
- E.documentsRequired
810
+ k.documentsRequired
806
811
  ]
807
812
  })] }),
808
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
813
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
809
814
  className: "text-sm text-text-secondary",
810
815
  children: "Monthly Revenue"
811
- }), /* @__PURE__ */ v("p", {
816
+ }), /* @__PURE__ */ y("p", {
812
817
  className: "font-medium text-text-primary",
813
- children: r(E.monthlyRevenue, { minimumFractionDigits: 0 })
818
+ children: i(k.monthlyRevenue, { minimumFractionDigits: 0 })
814
819
  })] })
815
820
  ]
816
821
  }),
817
- E.rejectionReason && /* @__PURE__ */ y("div", {
822
+ k.rejectionReason && /* @__PURE__ */ b("div", {
818
823
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg-subtle/10 p-4",
819
- children: [/* @__PURE__ */ v("p", {
824
+ children: [/* @__PURE__ */ y("p", {
820
825
  className: "text-sm font-medium text-status-error-text",
821
826
  children: "Previous Rejection Reason:"
822
- }), /* @__PURE__ */ v("p", {
827
+ }), /* @__PURE__ */ y("p", {
823
828
  className: "text-sm text-status-error-text",
824
- children: E.rejectionReason
829
+ children: k.rejectionReason
825
830
  })]
826
831
  }),
827
- A === "reject" && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
832
+ N === "reject" && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
828
833
  className: "block text-sm font-medium text-text-primary mb-2",
829
834
  children: "Rejection Reason *"
830
- }), /* @__PURE__ */ v("textarea", {
835
+ }), /* @__PURE__ */ y("textarea", {
831
836
  className: "w-full rounded-lg border border-border-subtle 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: F,
839
+ onChange: (e) => I(e.target.value),
835
840
  placeholder: "Please provide a detailed reason for rejection..."
836
841
  })] }),
837
- A === "approve" && /* @__PURE__ */ v("div", {
842
+ N === "approve" && /* @__PURE__ */ y("div", {
838
843
  className: "rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 p-4",
839
- children: /* @__PURE__ */ v("p", {
844
+ children: /* @__PURE__ */ y("p", {
840
845
  className: "text-sm text-status-success-text",
841
846
  children: "This will approve the cart for operation on the platform. The cart owner will be notified and the cart will become active."
842
847
  })
843
848
  }),
844
- /* @__PURE__ */ y("div", {
849
+ /* @__PURE__ */ b("div", {
845
850
  className: "flex gap-3 pt-2",
846
- children: [/* @__PURE__ */ v("button", {
851
+ children: [/* @__PURE__ */ y("button", {
847
852
  type: "button",
848
- onClick: () => k(!1),
853
+ onClick: () => M(!1),
849
854
  className: "flex-1 rounded-lg border border-border-subtle 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
+ }), N !== "view" && /* @__PURE__ */ y("button", {
852
857
  type: "button",
853
- onClick: B,
854
- disabled: A === "reject" && !M.trim(),
858
+ onClick: U,
859
+ disabled: N === "reject" && !F.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: N === "approve" ? "Approve Cart" : N === "reject" ? "Reject Cart" : N === "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 { w as CartManagementPage };
868
873
 
869
874
  //# sourceMappingURL=CartManagementPage.js.map