@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.
- package/dist/coolandlovely/pages/HomePage.js +263 -258
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +67 -61
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +79 -45
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +39 -33
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +227 -222
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +65 -60
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +235 -230
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/CartManagementPage.js +268 -263
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +268 -263
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +92 -84
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +257 -252
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +587 -548
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +171 -166
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +219 -211
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +671 -670
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +515 -514
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +244 -246
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +96 -96
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +50 -44
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/SettingsPage.js +745 -736
- package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +394 -357
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDetailPage.js +179 -176
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +215 -204
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +212 -215
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +438 -396
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +525 -488
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +522 -513
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/FavoritesPage.js +86 -76
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +118 -109
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +312 -275
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +82 -76
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +83 -73
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +61 -55
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +293 -255
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +238 -232
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +61 -55
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +356 -320
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +107 -101
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +170 -137
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +386 -381
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +359 -322
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +574 -537
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +81 -76
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +82 -77
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +78 -73
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
- 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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
|
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
|
|
85
|
-
let { navigateTo:
|
|
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
|
-
}), [
|
|
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
|
-
}),
|
|
102
|
-
|
|
103
|
-
let e = [...
|
|
104
|
-
if (
|
|
105
|
-
let t =
|
|
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 (
|
|
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
|
-
|
|
125
|
+
E(e), O(!1);
|
|
124
126
|
}, 800);
|
|
125
|
-
}, [P]);
|
|
126
|
-
a(() => {
|
|
127
|
-
L();
|
|
128
127
|
}, [L]);
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
o(() => {
|
|
129
|
+
B();
|
|
130
|
+
}, [B]);
|
|
131
|
+
let V = (e, t) => {
|
|
132
|
+
R((n) => ({
|
|
131
133
|
...n,
|
|
132
134
|
[e]: t
|
|
133
135
|
}));
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
if (!
|
|
136
|
+
}, H = (e, t) => {
|
|
137
|
+
A(e), P(t), I(""), M(!0);
|
|
138
|
+
}, U = () => {
|
|
139
|
+
if (!k) return;
|
|
138
140
|
let e = "";
|
|
139
|
-
switch (
|
|
141
|
+
switch (N) {
|
|
140
142
|
case "approve":
|
|
141
|
-
e = `Cart"${
|
|
143
|
+
e = `Cart"${k.name}" approved successfully`;
|
|
142
144
|
break;
|
|
143
145
|
case "reject":
|
|
144
|
-
if (!
|
|
146
|
+
if (!F.trim()) {
|
|
145
147
|
alert("Please provide a rejection reason");
|
|
146
148
|
return;
|
|
147
149
|
}
|
|
148
|
-
e = `Cart"${
|
|
150
|
+
e = `Cart"${k.name}" rejected`;
|
|
149
151
|
break;
|
|
150
152
|
case "suspend":
|
|
151
|
-
e = `Cart"${
|
|
153
|
+
e = `Cart"${k.name}" suspended`;
|
|
152
154
|
break;
|
|
153
155
|
case "inspect":
|
|
154
|
-
e = `Inspection scheduled for"${
|
|
156
|
+
e = `Inspection scheduled for"${k.name}"`;
|
|
155
157
|
break;
|
|
156
158
|
}
|
|
157
|
-
alert(e),
|
|
158
|
-
},
|
|
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
|
-
}),
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
}),
|
|
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__ */
|
|
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
|
-
}),
|
|
185
|
+
}), q = (e) => /* @__PURE__ */ y("div", {
|
|
184
186
|
className: "w-full bg-bg-sunken rounded-full h-2",
|
|
185
|
-
children: /* @__PURE__ */
|
|
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
|
|
192
|
+
return D ? /* @__PURE__ */ y(n, {
|
|
191
193
|
title: "Cart Management",
|
|
192
194
|
description: "Loading carts...",
|
|
193
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ b("div", {
|
|
194
196
|
className: "flex flex-col items-center justify-center py-20",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
202
|
+
}) : /* @__PURE__ */ b(n, {
|
|
201
203
|
title: "Cart Management",
|
|
202
|
-
description: `${
|
|
203
|
-
actions: /* @__PURE__ */
|
|
204
|
+
description: `${z.totalCarts} service providers on the platform`,
|
|
205
|
+
actions: /* @__PURE__ */ b("span", {
|
|
204
206
|
className: "text-sm text-text-secondary",
|
|
205
|
-
children: [
|
|
207
|
+
children: [z.pendingApproval, " pending approval"]
|
|
206
208
|
}),
|
|
207
209
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
className: "
|
|
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:
|
|
220
|
+
value: z.totalCarts,
|
|
214
221
|
cls: ""
|
|
215
222
|
},
|
|
216
223
|
{
|
|
217
224
|
label: "Active",
|
|
218
|
-
value:
|
|
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:
|
|
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:
|
|
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:
|
|
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: `${
|
|
245
|
+
value: `${z.averageRating}`,
|
|
239
246
|
cls: ""
|
|
240
247
|
},
|
|
241
248
|
{
|
|
242
249
|
label: "New Apps",
|
|
243
|
-
value:
|
|
250
|
+
value: z.newApplications,
|
|
244
251
|
cls: "bg-accent-blue-subtle/10 border-accent-blue-subtle/30"
|
|
245
252
|
}
|
|
246
|
-
].map((e) => /* @__PURE__ */
|
|
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__ */
|
|
255
|
+
children: [/* @__PURE__ */ y("p", {
|
|
249
256
|
className: "text-xs text-text-secondary",
|
|
250
257
|
children: e.label
|
|
251
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
269
|
+
/* @__PURE__ */ b("div", {
|
|
263
270
|
className: "relative",
|
|
264
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
268
|
-
onChange: (e) =>
|
|
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__ */
|
|
273
|
-
value:
|
|
274
|
-
onChange: (e) =>
|
|
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__ */
|
|
284
|
+
/* @__PURE__ */ y("option", {
|
|
278
285
|
value: "",
|
|
279
286
|
children: "All Status"
|
|
280
287
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ y("option", {
|
|
282
289
|
value: "active",
|
|
283
290
|
children: "Active"
|
|
284
291
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ y("option", {
|
|
286
293
|
value: "inactive",
|
|
287
294
|
children: "Inactive"
|
|
288
295
|
})
|
|
289
296
|
]
|
|
290
297
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
value:
|
|
293
|
-
onChange: (e) =>
|
|
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__ */
|
|
303
|
+
/* @__PURE__ */ y("option", {
|
|
297
304
|
value: "",
|
|
298
305
|
children: "All Verification"
|
|
299
306
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ y("option", {
|
|
301
308
|
value: "verified",
|
|
302
309
|
children: "Verified"
|
|
303
310
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ y("option", {
|
|
305
312
|
value: "pending",
|
|
306
313
|
children: "Pending"
|
|
307
314
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ y("option", {
|
|
309
316
|
value: "rejected",
|
|
310
317
|
children: "Rejected"
|
|
311
318
|
})
|
|
312
319
|
]
|
|
313
320
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
value:
|
|
316
|
-
onChange: (e) =>
|
|
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__ */
|
|
326
|
+
/* @__PURE__ */ y("option", {
|
|
320
327
|
value: "",
|
|
321
328
|
children: "All Categories"
|
|
322
329
|
}),
|
|
323
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ y("option", {
|
|
324
331
|
value: "Food & Beverage",
|
|
325
332
|
children: "Food & Beverage"
|
|
326
333
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ y("option", {
|
|
328
335
|
value: "Beverages",
|
|
329
336
|
children: "Beverages"
|
|
330
337
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ y("option", {
|
|
332
339
|
value: "Street Food",
|
|
333
340
|
children: "Street Food"
|
|
334
341
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ y("option", {
|
|
336
343
|
value: "Fast Food",
|
|
337
344
|
children: "Fast Food"
|
|
338
345
|
})
|
|
339
346
|
]
|
|
340
347
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ y("input", {
|
|
342
349
|
type: "text",
|
|
343
350
|
placeholder: "Location...",
|
|
344
|
-
value:
|
|
345
|
-
onChange: (e) =>
|
|
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__ */
|
|
349
|
-
value:
|
|
350
|
-
onChange: (e) =>
|
|
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__ */
|
|
360
|
+
/* @__PURE__ */ y("option", {
|
|
354
361
|
value: "recent",
|
|
355
362
|
children: "Most Recent"
|
|
356
363
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ y("option", {
|
|
358
365
|
value: "name",
|
|
359
366
|
children: "Name A-Z"
|
|
360
367
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ y("option", {
|
|
362
369
|
value: "rating",
|
|
363
370
|
children: "Highest Rated"
|
|
364
371
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ y("option", {
|
|
366
373
|
value: "revenue",
|
|
367
374
|
children: "Highest Revenue"
|
|
368
375
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
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__ */
|
|
385
|
+
/* @__PURE__ */ b("div", {
|
|
379
386
|
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
380
387
|
children: [
|
|
381
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ y("div", {
|
|
382
389
|
className: "block md:hidden space-y-4 p-4",
|
|
383
|
-
children:
|
|
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__ */
|
|
393
|
+
/* @__PURE__ */ b("div", {
|
|
387
394
|
className: "flex items-center mb-3",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
399
|
+
}), /* @__PURE__ */ b("div", {
|
|
393
400
|
className: "flex-1 min-w-0",
|
|
394
401
|
children: [
|
|
395
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ y("h3", {
|
|
396
403
|
className: "font-medium text-text-primary text-lg truncate",
|
|
397
404
|
children: e.name
|
|
398
405
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ y("p", {
|
|
400
407
|
className: "text-sm text-text-secondary truncate",
|
|
401
408
|
children: e.category
|
|
402
409
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
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__ */
|
|
417
|
+
/* @__PURE__ */ b("div", {
|
|
411
418
|
className: "grid grid-cols-2 gap-4 mb-3 text-sm",
|
|
412
|
-
children: [/* @__PURE__ */
|
|
413
|
-
/* @__PURE__ */
|
|
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__ */
|
|
424
|
+
/* @__PURE__ */ y("p", {
|
|
418
425
|
className: "text-text-primary",
|
|
419
426
|
children: e.ownerName
|
|
420
427
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ y("p", {
|
|
422
429
|
className: "text-text-secondary text-xs",
|
|
423
430
|
children: e.ownerPhone
|
|
424
431
|
})
|
|
425
|
-
] }), /* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */
|
|
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__ */
|
|
437
|
+
/* @__PURE__ */ b("p", {
|
|
431
438
|
className: "text-text-primary",
|
|
432
|
-
children: [
|
|
439
|
+
children: [i(e.monthlyRevenue, { minimumFractionDigits: 0 }), "/mo"]
|
|
433
440
|
}),
|
|
434
|
-
/* @__PURE__ */
|
|
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__ */
|
|
447
|
+
/* @__PURE__ */ b("div", {
|
|
441
448
|
className: "flex flex-wrap gap-2 mb-3",
|
|
442
449
|
children: [
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
e.rating > 0 && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
464
|
+
/* @__PURE__ */ b("div", {
|
|
458
465
|
className: "mb-3",
|
|
459
466
|
children: [
|
|
460
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ b("div", {
|
|
461
468
|
className: "flex items-center justify-between text-sm mb-1",
|
|
462
|
-
children: [/* @__PURE__ */
|
|
469
|
+
children: [/* @__PURE__ */ y("span", {
|
|
463
470
|
className: "text-text-secondary",
|
|
464
471
|
children: "Compliance"
|
|
465
|
-
}), /* @__PURE__ */
|
|
472
|
+
}), /* @__PURE__ */ b("span", {
|
|
466
473
|
className: "font-medium text-text-primary",
|
|
467
474
|
children: [e.complianceScore, "%"]
|
|
468
475
|
})]
|
|
469
476
|
}),
|
|
470
|
-
|
|
471
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
487
|
+
W(e.applicationDate)
|
|
481
488
|
]
|
|
482
489
|
})
|
|
483
490
|
]
|
|
484
491
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ b("div", {
|
|
486
493
|
className: "flex flex-wrap gap-2",
|
|
487
494
|
children: [
|
|
488
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ y("button", {
|
|
489
496
|
type: "button",
|
|
490
|
-
onClick: () =>
|
|
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__ */
|
|
501
|
+
!e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("button", {
|
|
495
502
|
type: "button",
|
|
496
|
-
onClick: () =>
|
|
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__ */
|
|
506
|
+
}), /* @__PURE__ */ y("button", {
|
|
500
507
|
type: "button",
|
|
501
|
-
onClick: () =>
|
|
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__ */
|
|
512
|
+
e.inspectionStatus === "pending" && /* @__PURE__ */ y("button", {
|
|
506
513
|
type: "button",
|
|
507
|
-
onClick: () =>
|
|
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__ */
|
|
518
|
+
e.isActive && /* @__PURE__ */ y("button", {
|
|
512
519
|
type: "button",
|
|
513
|
-
onClick: () =>
|
|
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__ */
|
|
529
|
+
/* @__PURE__ */ y("div", {
|
|
523
530
|
className: "hidden md:block overflow-x-auto",
|
|
524
|
-
children: /* @__PURE__ */
|
|
531
|
+
children: /* @__PURE__ */ b("table", {
|
|
525
532
|
className: "w-full",
|
|
526
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
561
|
+
}) }), /* @__PURE__ */ y("tbody", {
|
|
555
562
|
className: "divide-y divide-border",
|
|
556
|
-
children:
|
|
563
|
+
children: T.map((e) => /* @__PURE__ */ b("tr", {
|
|
557
564
|
className: "hover:bg-accent/50 transition-colors",
|
|
558
565
|
children: [
|
|
559
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ y("td", {
|
|
560
567
|
className: "px-4 py-3",
|
|
561
|
-
children: /* @__PURE__ */
|
|
568
|
+
children: /* @__PURE__ */ b("div", {
|
|
562
569
|
className: "flex items-center gap-3",
|
|
563
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
574
|
+
}), /* @__PURE__ */ b("div", {
|
|
568
575
|
className: "min-w-0",
|
|
569
576
|
children: [
|
|
570
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ y("p", {
|
|
571
578
|
className: "text-sm font-medium text-text-primary truncate",
|
|
572
579
|
children: e.name
|
|
573
580
|
}),
|
|
574
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ y("p", {
|
|
575
582
|
className: "text-xs text-text-secondary truncate",
|
|
576
583
|
children: e.category
|
|
577
584
|
}),
|
|
578
|
-
/* @__PURE__ */
|
|
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__ */
|
|
593
|
+
/* @__PURE__ */ b("td", {
|
|
587
594
|
className: "px-4 py-3 text-sm",
|
|
588
595
|
children: [
|
|
589
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ y("p", {
|
|
590
597
|
className: "font-medium text-text-primary",
|
|
591
598
|
children: e.ownerName
|
|
592
599
|
}),
|
|
593
|
-
/* @__PURE__ */
|
|
600
|
+
/* @__PURE__ */ y("p", {
|
|
594
601
|
className: "text-xs text-text-secondary",
|
|
595
602
|
children: e.ownerEmail
|
|
596
603
|
}),
|
|
597
|
-
/* @__PURE__ */
|
|
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__ */
|
|
610
|
+
/* @__PURE__ */ y("td", {
|
|
604
611
|
className: "px-4 py-3",
|
|
605
|
-
children: /* @__PURE__ */
|
|
612
|
+
children: /* @__PURE__ */ b("div", {
|
|
606
613
|
className: "space-y-1",
|
|
607
614
|
children: [
|
|
608
|
-
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
|
|
611
|
-
e.rating > 0 && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
637
|
+
/* @__PURE__ */ b("td", {
|
|
631
638
|
className: "px-4 py-3 text-sm",
|
|
632
|
-
children: [/* @__PURE__ */
|
|
639
|
+
children: [/* @__PURE__ */ b("p", {
|
|
633
640
|
className: "text-text-primary",
|
|
634
|
-
children: [
|
|
635
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
647
|
+
/* @__PURE__ */ b("td", {
|
|
641
648
|
className: "px-4 py-3 text-sm",
|
|
642
649
|
children: [
|
|
643
|
-
/* @__PURE__ */
|
|
650
|
+
/* @__PURE__ */ b("div", {
|
|
644
651
|
className: "flex items-center gap-2 mb-1",
|
|
645
|
-
children: [/* @__PURE__ */
|
|
652
|
+
children: [/* @__PURE__ */ y("div", {
|
|
646
653
|
className: "w-16",
|
|
647
|
-
children:
|
|
648
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
669
|
+
/* @__PURE__ */ b("p", {
|
|
663
670
|
className: "text-xs text-text-secondary",
|
|
664
|
-
children: ["Applied: ",
|
|
671
|
+
children: ["Applied: ", W(e.applicationDate)]
|
|
665
672
|
})
|
|
666
673
|
]
|
|
667
674
|
}),
|
|
668
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ y("td", {
|
|
669
676
|
className: "px-4 py-3",
|
|
670
|
-
children: /* @__PURE__ */
|
|
677
|
+
children: /* @__PURE__ */ b("div", {
|
|
671
678
|
className: "flex flex-col gap-1",
|
|
672
679
|
children: [
|
|
673
|
-
/* @__PURE__ */
|
|
680
|
+
/* @__PURE__ */ b("button", {
|
|
674
681
|
type: "button",
|
|
675
|
-
onClick: () =>
|
|
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__ */
|
|
684
|
+
children: [/* @__PURE__ */ y(u, { className: "h-4 w-4" }), " View"]
|
|
678
685
|
}),
|
|
679
|
-
!e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */
|
|
686
|
+
!e.isVerified && e.inspectionStatus !== "failed" && /* @__PURE__ */ b("div", {
|
|
680
687
|
className: "flex gap-1",
|
|
681
|
-
children: [/* @__PURE__ */
|
|
688
|
+
children: [/* @__PURE__ */ y("button", {
|
|
682
689
|
type: "button",
|
|
683
|
-
onClick: () =>
|
|
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__ */
|
|
686
|
-
}), /* @__PURE__ */
|
|
692
|
+
children: /* @__PURE__ */ y(c, { className: "h-4 w-4" })
|
|
693
|
+
}), /* @__PURE__ */ y("button", {
|
|
687
694
|
type: "button",
|
|
688
|
-
onClick: () =>
|
|
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__ */
|
|
697
|
+
children: /* @__PURE__ */ y(_, { className: "h-4 w-4" })
|
|
691
698
|
})]
|
|
692
699
|
}),
|
|
693
|
-
e.inspectionStatus === "pending" && /* @__PURE__ */
|
|
700
|
+
e.inspectionStatus === "pending" && /* @__PURE__ */ b("button", {
|
|
694
701
|
type: "button",
|
|
695
|
-
onClick: () =>
|
|
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__ */
|
|
704
|
+
children: [/* @__PURE__ */ y(l, { className: "h-4 w-4" }), " Inspect"]
|
|
698
705
|
}),
|
|
699
|
-
e.isActive && /* @__PURE__ */
|
|
706
|
+
e.isActive && /* @__PURE__ */ y("button", {
|
|
700
707
|
type: "button",
|
|
701
|
-
onClick: () =>
|
|
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__ */
|
|
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
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
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
|
-
|
|
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__ */
|
|
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__ */
|
|
731
|
+
children: [/* @__PURE__ */ b("div", {
|
|
727
732
|
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
728
|
-
children: [/* @__PURE__ */
|
|
733
|
+
children: [/* @__PURE__ */ y("h3", {
|
|
729
734
|
className: "text-lg font-semibold text-text-primary",
|
|
730
|
-
children:
|
|
731
|
-
}), /* @__PURE__ */
|
|
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: () =>
|
|
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__ */
|
|
740
|
+
children: /* @__PURE__ */ y(g, { className: "h-5 w-5" })
|
|
736
741
|
})]
|
|
737
|
-
}), /* @__PURE__ */
|
|
742
|
+
}), /* @__PURE__ */ b("div", {
|
|
738
743
|
className: "p-4 space-y-4",
|
|
739
744
|
children: [
|
|
740
|
-
/* @__PURE__ */
|
|
745
|
+
/* @__PURE__ */ b("div", {
|
|
741
746
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
742
747
|
children: [
|
|
743
|
-
/* @__PURE__ */
|
|
748
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
744
749
|
className: "text-sm text-text-secondary",
|
|
745
750
|
children: "Cart Name"
|
|
746
|
-
}), /* @__PURE__ */
|
|
751
|
+
}), /* @__PURE__ */ y("p", {
|
|
747
752
|
className: "font-medium text-text-primary",
|
|
748
|
-
children:
|
|
753
|
+
children: k.name
|
|
749
754
|
})] }),
|
|
750
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
751
756
|
className: "text-sm text-text-secondary",
|
|
752
757
|
children: "Category"
|
|
753
|
-
}), /* @__PURE__ */
|
|
758
|
+
}), /* @__PURE__ */ y("p", {
|
|
754
759
|
className: "font-medium text-text-primary",
|
|
755
|
-
children:
|
|
760
|
+
children: k.category
|
|
756
761
|
})] }),
|
|
757
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
758
763
|
className: "text-sm text-text-secondary",
|
|
759
764
|
children: "Owner"
|
|
760
|
-
}), /* @__PURE__ */
|
|
765
|
+
}), /* @__PURE__ */ y("p", {
|
|
761
766
|
className: "font-medium text-text-primary",
|
|
762
|
-
children:
|
|
767
|
+
children: k.ownerName
|
|
763
768
|
})] }),
|
|
764
|
-
/* @__PURE__ */
|
|
769
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
765
770
|
className: "text-sm text-text-secondary",
|
|
766
771
|
children: "Contact"
|
|
767
|
-
}), /* @__PURE__ */
|
|
772
|
+
}), /* @__PURE__ */ y("p", {
|
|
768
773
|
className: "font-medium text-text-primary",
|
|
769
|
-
children:
|
|
774
|
+
children: k.ownerPhone
|
|
770
775
|
})] })
|
|
771
776
|
]
|
|
772
777
|
}),
|
|
773
|
-
/* @__PURE__ */
|
|
778
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
774
779
|
className: "text-sm text-text-secondary",
|
|
775
780
|
children: "Description"
|
|
776
|
-
}), /* @__PURE__ */
|
|
781
|
+
}), /* @__PURE__ */ y("p", {
|
|
777
782
|
className: "font-medium text-text-primary",
|
|
778
|
-
children:
|
|
783
|
+
children: k.description
|
|
779
784
|
})] }),
|
|
780
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
781
786
|
className: "text-sm text-text-secondary",
|
|
782
787
|
children: "Location"
|
|
783
|
-
}), /* @__PURE__ */
|
|
788
|
+
}), /* @__PURE__ */ y("p", {
|
|
784
789
|
className: "font-medium text-text-primary",
|
|
785
|
-
children:
|
|
790
|
+
children: k.address
|
|
786
791
|
})] }),
|
|
787
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ b("div", {
|
|
788
793
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
789
794
|
children: [
|
|
790
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
791
796
|
className: "text-sm text-text-secondary",
|
|
792
797
|
children: "Compliance Score"
|
|
793
|
-
}), /* @__PURE__ */
|
|
798
|
+
}), /* @__PURE__ */ b("p", {
|
|
794
799
|
className: "font-medium text-text-primary",
|
|
795
|
-
children: [
|
|
800
|
+
children: [k.complianceScore, "%"]
|
|
796
801
|
})] }),
|
|
797
|
-
/* @__PURE__ */
|
|
802
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
798
803
|
className: "text-sm text-text-secondary",
|
|
799
804
|
children: "Documents"
|
|
800
|
-
}), /* @__PURE__ */
|
|
805
|
+
}), /* @__PURE__ */ b("p", {
|
|
801
806
|
className: "font-medium text-text-primary",
|
|
802
807
|
children: [
|
|
803
|
-
|
|
808
|
+
k.documentsSubmitted,
|
|
804
809
|
"/",
|
|
805
|
-
|
|
810
|
+
k.documentsRequired
|
|
806
811
|
]
|
|
807
812
|
})] }),
|
|
808
|
-
/* @__PURE__ */
|
|
813
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
809
814
|
className: "text-sm text-text-secondary",
|
|
810
815
|
children: "Monthly Revenue"
|
|
811
|
-
}), /* @__PURE__ */
|
|
816
|
+
}), /* @__PURE__ */ y("p", {
|
|
812
817
|
className: "font-medium text-text-primary",
|
|
813
|
-
children:
|
|
818
|
+
children: i(k.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
814
819
|
})] })
|
|
815
820
|
]
|
|
816
821
|
}),
|
|
817
|
-
|
|
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__ */
|
|
824
|
+
children: [/* @__PURE__ */ y("p", {
|
|
820
825
|
className: "text-sm font-medium text-status-error-text",
|
|
821
826
|
children: "Previous Rejection Reason:"
|
|
822
|
-
}), /* @__PURE__ */
|
|
827
|
+
}), /* @__PURE__ */ y("p", {
|
|
823
828
|
className: "text-sm text-status-error-text",
|
|
824
|
-
children:
|
|
829
|
+
children: k.rejectionReason
|
|
825
830
|
})]
|
|
826
831
|
}),
|
|
827
|
-
|
|
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__ */
|
|
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:
|
|
834
|
-
onChange: (e) =>
|
|
838
|
+
value: F,
|
|
839
|
+
onChange: (e) => I(e.target.value),
|
|
835
840
|
placeholder: "Please provide a detailed reason for rejection..."
|
|
836
841
|
})] }),
|
|
837
|
-
|
|
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__ */
|
|
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__ */
|
|
849
|
+
/* @__PURE__ */ b("div", {
|
|
845
850
|
className: "flex gap-3 pt-2",
|
|
846
|
-
children: [/* @__PURE__ */
|
|
851
|
+
children: [/* @__PURE__ */ y("button", {
|
|
847
852
|
type: "button",
|
|
848
|
-
onClick: () =>
|
|
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
|
-
}),
|
|
856
|
+
}), N !== "view" && /* @__PURE__ */ y("button", {
|
|
852
857
|
type: "button",
|
|
853
|
-
onClick:
|
|
854
|
-
disabled:
|
|
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:
|
|
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 {
|
|
872
|
+
export { w as CartManagementPage };
|
|
868
873
|
|
|
869
874
|
//# sourceMappingURL=CartManagementPage.js.map
|