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