@burdenoff/microfe-coolandlovely 2026.624.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/components/EmptyState.js +17 -21
- package/dist/coolandlovely/components/EmptyState.js.map +1 -1
- package/dist/coolandlovely/components/InvestmentCard.js +25 -23
- package/dist/coolandlovely/components/InvestmentCard.js.map +1 -1
- package/dist/coolandlovely/components/MetricsCard.js +18 -12
- package/dist/coolandlovely/components/MetricsCard.js.map +1 -1
- package/dist/coolandlovely/components/PageLayout.js +38 -19
- package/dist/coolandlovely/components/PageLayout.js.map +1 -1
- package/dist/coolandlovely/components/RatingDisplay.js +3 -3
- package/dist/coolandlovely/components/RatingDisplay.js.map +1 -1
- package/dist/coolandlovely/components/StatusBadge.js +36 -16
- package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
- package/dist/coolandlovely/pages/HomePage.js +219 -204
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +98 -92
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +111 -77
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +49 -43
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +234 -229
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +67 -62
- 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 +291 -286
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +287 -282
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +108 -100
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +260 -255
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +596 -554
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +187 -182
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +229 -221
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +675 -674
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +525 -524
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +264 -266
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +137 -137
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +81 -75
- 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 +189 -186
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +222 -211
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +219 -222
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +446 -404
- 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 +94 -84
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +121 -112
- 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 +90 -84
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +99 -89
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +74 -68
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +317 -279
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +249 -243
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +87 -81
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +359 -323
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +115 -109
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +179 -146
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +397 -392
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +364 -327
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +580 -543
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +114 -109
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +115 -110
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +100 -95
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -2,12 +2,14 @@ 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
4
|
import { MetricsCard as r } from "../../components/MetricsCard.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { EmptyState as i } from "../../components/EmptyState.js";
|
|
6
|
+
import { formatCurrency as a } from "../../utils/formatters.js";
|
|
7
|
+
import { useEffect as o, useMemo as s, useState as c } from "react";
|
|
8
|
+
import { AlertCircle as l, CheckCircle2 as u, Clock as d, Eye as f, IndianRupee as p, Loader2 as m, MapPin as h, Phone as g, RefreshCw as _, Search as v, ShoppingBag as y, TrendingUp as b, Truck as x, User as S, X as C, XCircle as w } from "lucide-react";
|
|
9
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
|
|
9
11
|
//#region src/coolandlovely/pages/admin/AdminOrdersPage.tsx
|
|
10
|
-
var
|
|
12
|
+
var k = [
|
|
11
13
|
{
|
|
12
14
|
id: "ORD-2024-001",
|
|
13
15
|
customerName: "Rajesh Kumar",
|
|
@@ -64,166 +66,171 @@ var E = [
|
|
|
64
66
|
deliveryAddress: "789, HSR Layout"
|
|
65
67
|
}
|
|
66
68
|
];
|
|
67
|
-
function
|
|
68
|
-
let { navigateTo:
|
|
69
|
-
|
|
69
|
+
function A() {
|
|
70
|
+
let { navigateTo: A } = e(), [j, M] = c([]), [N, P] = c(null), [F, I] = c(!0), [L, R] = c(""), [z, B] = c("all"), [V, H] = c("today"), [U, W] = c(null), [G, K] = c(!1);
|
|
71
|
+
o(() => {
|
|
70
72
|
let e = setTimeout(() => {
|
|
71
|
-
|
|
73
|
+
P({
|
|
72
74
|
totalOrders: 156,
|
|
73
75
|
pendingOrders: 12,
|
|
74
76
|
totalRevenue: 125600,
|
|
75
77
|
averageOrderValue: 805
|
|
76
|
-
}), k
|
|
78
|
+
}), M(k), I(!1);
|
|
77
79
|
}, 1e3);
|
|
78
80
|
return () => clearTimeout(e);
|
|
79
81
|
}, []);
|
|
80
|
-
let
|
|
82
|
+
let q = (e) => a(e, { minimumFractionDigits: 0 }), J = (e) => new Date(e).toLocaleString("en-IN", {
|
|
81
83
|
day: "2-digit",
|
|
82
84
|
month: "short",
|
|
83
85
|
hour: "2-digit",
|
|
84
86
|
minute: "2-digit"
|
|
85
|
-
}),
|
|
86
|
-
delivered: "bg-
|
|
87
|
-
preparing: "bg-
|
|
88
|
-
ready: "bg-
|
|
89
|
-
out_for_delivery: "bg-blue-
|
|
90
|
-
cancelled: "bg-
|
|
91
|
-
confirmed: "bg-blue-
|
|
92
|
-
})[e] ?? "bg-secondary text-secondary-foreground",
|
|
87
|
+
}), Y = (e) => ({
|
|
88
|
+
delivered: "bg-status-success-bg-subtle/20 text-status-success-text",
|
|
89
|
+
preparing: "bg-status-warning-bg-subtle/20 text-status-warning-text",
|
|
90
|
+
ready: "bg-status-warning-bg-subtle/20 text-status-warning-text",
|
|
91
|
+
out_for_delivery: "bg-accent-blue-subtle/20 text-accent-blue",
|
|
92
|
+
cancelled: "bg-status-error-bg-subtle/20 text-status-error-text",
|
|
93
|
+
confirmed: "bg-accent-blue-subtle/20 text-accent-blue"
|
|
94
|
+
})[e] ?? "bg-secondary text-secondary-foreground", X = (e) => {
|
|
93
95
|
switch (e) {
|
|
94
|
-
case "completed": return /* @__PURE__ */
|
|
95
|
-
case "failed": return /* @__PURE__ */ w
|
|
96
|
-
case "refunded": return /* @__PURE__ */
|
|
97
|
-
default: return /* @__PURE__ */
|
|
96
|
+
case "completed": return /* @__PURE__ */ T(u, { className: "h-4 w-4 text-status-success-text" });
|
|
97
|
+
case "failed": return /* @__PURE__ */ T(w, { className: "h-4 w-4 text-status-error-text" });
|
|
98
|
+
case "refunded": return /* @__PURE__ */ T(_, { className: "h-4 w-4 text-accent-blue" });
|
|
99
|
+
default: return /* @__PURE__ */ T(l, { className: "h-4 w-4 text-status-warning-text" });
|
|
98
100
|
}
|
|
99
|
-
},
|
|
100
|
-
let t = !
|
|
101
|
+
}, Z = s(() => j.filter((e) => {
|
|
102
|
+
let t = !L || e.id.toLowerCase().includes(L.toLowerCase()) || e.customerName.toLowerCase().includes(L.toLowerCase()) || e.cartName.toLowerCase().includes(L.toLowerCase()), n = z === "all" || e.status === z;
|
|
101
103
|
return t && n;
|
|
102
104
|
}), [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
]),
|
|
107
|
-
|
|
105
|
+
j,
|
|
106
|
+
L,
|
|
107
|
+
z
|
|
108
|
+
]), Q = (e, t) => {
|
|
109
|
+
M((n) => n.map((n) => n.id === e ? {
|
|
108
110
|
...n,
|
|
109
111
|
status: t
|
|
110
|
-
} : n)),
|
|
112
|
+
} : n)), K(!1), alert(`Order ${e} updated to ${t.replace("_", " ")}`);
|
|
111
113
|
};
|
|
112
|
-
return
|
|
114
|
+
return F ? /* @__PURE__ */ T(n, {
|
|
113
115
|
title: "Order Management",
|
|
114
116
|
description: "Loading orders...",
|
|
115
|
-
children: /* @__PURE__ */
|
|
117
|
+
children: /* @__PURE__ */ E("div", {
|
|
116
118
|
className: "flex flex-col items-center justify-center py-20",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
119
|
+
children: [/* @__PURE__ */ T(m, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ T("p", {
|
|
118
120
|
className: "text-text-secondary",
|
|
119
121
|
children: "Loading orders..."
|
|
120
122
|
})]
|
|
121
123
|
})
|
|
122
|
-
}) : /* @__PURE__ */
|
|
124
|
+
}) : /* @__PURE__ */ E(n, {
|
|
123
125
|
title: "Order Management",
|
|
124
|
-
description: `${
|
|
126
|
+
description: `${N?.totalOrders ?? 0} total orders on the platform`,
|
|
125
127
|
children: [
|
|
126
|
-
|
|
127
|
-
className: "
|
|
128
|
+
/* @__PURE__ */ T(O, {
|
|
129
|
+
className: "mb-6",
|
|
130
|
+
icon: /* @__PURE__ */ T(y, { className: "h-4 w-4" }),
|
|
131
|
+
children: "Every order across the whole platform in one place. Monitor volume, revenue and pending orders, filter to investigate any order, and open one to see its full detail and update its status — so the admin team can step in whenever an order needs help."
|
|
132
|
+
}),
|
|
133
|
+
N && /* @__PURE__ */ E(D, {
|
|
134
|
+
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6 p-4",
|
|
128
135
|
children: [
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
icon: /* @__PURE__ */
|
|
131
|
-
value:
|
|
136
|
+
/* @__PURE__ */ T(r, {
|
|
137
|
+
icon: /* @__PURE__ */ T(y, { className: "h-5 w-5" }),
|
|
138
|
+
value: N.totalOrders,
|
|
132
139
|
label: "Total Orders",
|
|
133
140
|
trendValue: "Orders today"
|
|
134
141
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
icon: /* @__PURE__ */
|
|
137
|
-
value:
|
|
142
|
+
/* @__PURE__ */ T(r, {
|
|
143
|
+
icon: /* @__PURE__ */ T(p, { className: "h-5 w-5" }),
|
|
144
|
+
value: q(N.totalRevenue),
|
|
138
145
|
label: "Revenue",
|
|
139
146
|
trend: "up",
|
|
140
147
|
trendValue: "+15.2% vs yesterday"
|
|
141
148
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
icon: /* @__PURE__ */
|
|
144
|
-
value:
|
|
149
|
+
/* @__PURE__ */ T(r, {
|
|
150
|
+
icon: /* @__PURE__ */ T(b, { className: "h-5 w-5" }),
|
|
151
|
+
value: q(N.averageOrderValue),
|
|
145
152
|
label: "Avg Order Value",
|
|
146
153
|
trendValue: "Average order value"
|
|
147
154
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
icon: /* @__PURE__ */
|
|
150
|
-
value:
|
|
155
|
+
/* @__PURE__ */ T(r, {
|
|
156
|
+
icon: /* @__PURE__ */ T(d, { className: "h-5 w-5" }),
|
|
157
|
+
value: N.pendingOrders,
|
|
151
158
|
label: "Pending Orders",
|
|
152
159
|
trendValue: "Awaiting action"
|
|
153
160
|
})
|
|
154
161
|
]
|
|
155
162
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
className: "rounded-lg border border-border-
|
|
158
|
-
children: /* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ T("div", {
|
|
164
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 mb-6 bg-gloss-card shadow-pop",
|
|
165
|
+
children: /* @__PURE__ */ E("div", {
|
|
159
166
|
className: "flex flex-col gap-4",
|
|
160
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ E("div", {
|
|
161
168
|
className: "relative flex-1",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ T(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ T("input", {
|
|
163
170
|
type: "text",
|
|
164
171
|
placeholder: "Search by order ID, customer, or cart name...",
|
|
165
|
-
value:
|
|
166
|
-
onChange: (e) =>
|
|
172
|
+
value: L,
|
|
173
|
+
onChange: (e) => R(e.target.value),
|
|
167
174
|
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)]"
|
|
168
175
|
})]
|
|
169
|
-
}), /* @__PURE__ */
|
|
176
|
+
}), /* @__PURE__ */ E("div", {
|
|
170
177
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
172
|
-
value:
|
|
173
|
-
onChange: (e) =>
|
|
178
|
+
children: [/* @__PURE__ */ E("select", {
|
|
179
|
+
value: z,
|
|
180
|
+
onChange: (e) => B(e.target.value),
|
|
174
181
|
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)]",
|
|
175
182
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ T("option", {
|
|
177
184
|
value: "all",
|
|
178
185
|
children: "All Status"
|
|
179
186
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ T("option", {
|
|
181
188
|
value: "pending",
|
|
182
189
|
children: "Pending"
|
|
183
190
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ T("option", {
|
|
185
192
|
value: "confirmed",
|
|
186
193
|
children: "Confirmed"
|
|
187
194
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ T("option", {
|
|
189
196
|
value: "preparing",
|
|
190
197
|
children: "Preparing"
|
|
191
198
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ T("option", {
|
|
193
200
|
value: "ready",
|
|
194
201
|
children: "Ready"
|
|
195
202
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ T("option", {
|
|
197
204
|
value: "out_for_delivery",
|
|
198
205
|
children: "Out for Delivery"
|
|
199
206
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ T("option", {
|
|
201
208
|
value: "delivered",
|
|
202
209
|
children: "Delivered"
|
|
203
210
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ T("option", {
|
|
205
212
|
value: "cancelled",
|
|
206
213
|
children: "Cancelled"
|
|
207
214
|
})
|
|
208
215
|
]
|
|
209
|
-
}), /* @__PURE__ */
|
|
210
|
-
value:
|
|
211
|
-
onChange: (e) =>
|
|
216
|
+
}), /* @__PURE__ */ E("select", {
|
|
217
|
+
value: V,
|
|
218
|
+
onChange: (e) => H(e.target.value),
|
|
212
219
|
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)]",
|
|
213
220
|
children: [
|
|
214
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ T("option", {
|
|
215
222
|
value: "today",
|
|
216
223
|
children: "Today"
|
|
217
224
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ T("option", {
|
|
219
226
|
value: "yesterday",
|
|
220
227
|
children: "Yesterday"
|
|
221
228
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ T("option", {
|
|
223
230
|
value: "week",
|
|
224
231
|
children: "This Week"
|
|
225
232
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ T("option", {
|
|
227
234
|
value: "month",
|
|
228
235
|
children: "This Month"
|
|
229
236
|
})
|
|
@@ -232,196 +239,196 @@ function D() {
|
|
|
232
239
|
})]
|
|
233
240
|
})
|
|
234
241
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ E("div", {
|
|
236
243
|
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
237
244
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ T("div", {
|
|
239
246
|
className: "block md:hidden space-y-4 p-4",
|
|
240
|
-
children:
|
|
247
|
+
children: Z.map((e) => /* @__PURE__ */ E("div", {
|
|
241
248
|
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
242
249
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ E("div", {
|
|
244
251
|
className: "flex justify-between items-start mb-3",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
246
253
|
className: "font-medium text-text-primary text-lg",
|
|
247
254
|
children: e.id
|
|
248
|
-
}), /* @__PURE__ */
|
|
255
|
+
}), /* @__PURE__ */ T("p", {
|
|
249
256
|
className: "text-sm text-text-secondary",
|
|
250
|
-
children:
|
|
251
|
-
})] }), /* @__PURE__ */
|
|
252
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize",
|
|
257
|
+
children: J(e.orderDate)
|
|
258
|
+
})] }), /* @__PURE__ */ T("span", {
|
|
259
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", Y(e.status)),
|
|
253
260
|
children: e.status.replace("_", " ")
|
|
254
261
|
})]
|
|
255
262
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ E("div", {
|
|
257
264
|
className: "grid grid-cols-2 gap-4 mb-3 text-sm",
|
|
258
|
-
children: [/* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ E("div", { children: [
|
|
266
|
+
/* @__PURE__ */ T("p", {
|
|
260
267
|
className: "text-text-secondary font-medium",
|
|
261
268
|
children: "Customer"
|
|
262
269
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ T("p", {
|
|
264
271
|
className: "text-text-primary",
|
|
265
272
|
children: e.customerName
|
|
266
273
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ T("p", {
|
|
268
275
|
className: "text-text-secondary text-xs",
|
|
269
276
|
children: e.customerPhone
|
|
270
277
|
})
|
|
271
|
-
] }), /* @__PURE__ */
|
|
272
|
-
/* @__PURE__ */
|
|
278
|
+
] }), /* @__PURE__ */ E("div", { children: [
|
|
279
|
+
/* @__PURE__ */ T("p", {
|
|
273
280
|
className: "text-text-secondary font-medium",
|
|
274
281
|
children: "Cart"
|
|
275
282
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ T("p", {
|
|
277
284
|
className: "text-text-primary",
|
|
278
285
|
children: e.cartName
|
|
279
286
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ T("p", {
|
|
281
288
|
className: "text-text-secondary text-xs",
|
|
282
289
|
children: e.cartOwner
|
|
283
290
|
})
|
|
284
291
|
] })]
|
|
285
292
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ E("div", {
|
|
287
294
|
className: "flex justify-between items-center mb-3",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
295
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
289
296
|
className: "text-text-secondary font-medium text-sm",
|
|
290
297
|
children: "Amount"
|
|
291
|
-
}), /* @__PURE__ */
|
|
298
|
+
}), /* @__PURE__ */ T("p", {
|
|
292
299
|
className: "text-text-primary font-semibold text-lg",
|
|
293
|
-
children:
|
|
294
|
-
})] }), /* @__PURE__ */
|
|
300
|
+
children: q(e.total)
|
|
301
|
+
})] }), /* @__PURE__ */ E("div", {
|
|
295
302
|
className: "flex items-center gap-2",
|
|
296
|
-
children: [
|
|
303
|
+
children: [X(e.paymentStatus), /* @__PURE__ */ E("div", {
|
|
297
304
|
className: "text-right",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ T("p", {
|
|
299
306
|
className: "text-sm text-text-primary",
|
|
300
307
|
children: e.paymentMethod
|
|
301
|
-
}), /* @__PURE__ */
|
|
308
|
+
}), /* @__PURE__ */ T("p", {
|
|
302
309
|
className: "text-xs text-text-secondary capitalize",
|
|
303
310
|
children: e.paymentStatus
|
|
304
311
|
})]
|
|
305
312
|
})]
|
|
306
313
|
})]
|
|
307
314
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ E("button", {
|
|
309
316
|
type: "button",
|
|
310
317
|
onClick: () => {
|
|
311
|
-
|
|
318
|
+
W(e), K(!0);
|
|
312
319
|
},
|
|
313
320
|
className: "w-full rounded-lg border border-border-subtle py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors flex items-center justify-center gap-2",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
321
|
+
children: [/* @__PURE__ */ T(f, { className: "h-4 w-4" }), " View Details"]
|
|
315
322
|
})
|
|
316
323
|
]
|
|
317
324
|
}, e.id))
|
|
318
325
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ T("div", {
|
|
320
327
|
className: "hidden md:block overflow-x-auto",
|
|
321
|
-
children: /* @__PURE__ */
|
|
328
|
+
children: /* @__PURE__ */ E("table", {
|
|
322
329
|
className: "w-full",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
330
|
+
children: [/* @__PURE__ */ T("thead", { children: /* @__PURE__ */ E("tr", {
|
|
324
331
|
className: "border-b border-border-subtle bg-bg-sunken/50",
|
|
325
332
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ T("th", {
|
|
327
334
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
328
335
|
children: "Order ID"
|
|
329
336
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ T("th", {
|
|
331
338
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
332
339
|
children: "Customer"
|
|
333
340
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ T("th", {
|
|
335
342
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
336
343
|
children: "Cart"
|
|
337
344
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ T("th", {
|
|
339
346
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
340
347
|
children: "Amount"
|
|
341
348
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ T("th", {
|
|
343
350
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
344
351
|
children: "Status"
|
|
345
352
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ T("th", {
|
|
347
354
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
348
355
|
children: "Payment"
|
|
349
356
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ T("th", {
|
|
351
358
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
352
359
|
children: "Time"
|
|
353
360
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ T("th", {
|
|
355
362
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
356
363
|
children: "Actions"
|
|
357
364
|
})
|
|
358
365
|
]
|
|
359
|
-
}) }), /* @__PURE__ */
|
|
366
|
+
}) }), /* @__PURE__ */ T("tbody", {
|
|
360
367
|
className: "divide-y divide-border",
|
|
361
|
-
children:
|
|
368
|
+
children: Z.map((e) => /* @__PURE__ */ E("tr", {
|
|
362
369
|
className: "hover:bg-accent/50 transition-colors",
|
|
363
370
|
children: [
|
|
364
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ T("td", {
|
|
365
372
|
className: "px-4 py-3 text-sm font-mono font-medium text-text-primary",
|
|
366
373
|
children: e.id
|
|
367
374
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ E("td", {
|
|
369
376
|
className: "px-4 py-3",
|
|
370
|
-
children: [/* @__PURE__ */
|
|
377
|
+
children: [/* @__PURE__ */ T("div", {
|
|
371
378
|
className: "text-sm font-medium text-text-primary",
|
|
372
379
|
children: e.customerName
|
|
373
|
-
}), /* @__PURE__ */
|
|
380
|
+
}), /* @__PURE__ */ T("div", {
|
|
374
381
|
className: "text-xs text-text-secondary",
|
|
375
382
|
children: e.customerPhone
|
|
376
383
|
})]
|
|
377
384
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ E("td", {
|
|
379
386
|
className: "px-4 py-3",
|
|
380
|
-
children: [/* @__PURE__ */
|
|
387
|
+
children: [/* @__PURE__ */ T("div", {
|
|
381
388
|
className: "text-sm font-medium text-text-primary",
|
|
382
389
|
children: e.cartName
|
|
383
|
-
}), /* @__PURE__ */
|
|
390
|
+
}), /* @__PURE__ */ T("div", {
|
|
384
391
|
className: "text-xs text-text-secondary",
|
|
385
392
|
children: e.cartOwner
|
|
386
393
|
})]
|
|
387
394
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ T("td", {
|
|
389
396
|
className: "px-4 py-3 text-sm font-semibold text-text-primary",
|
|
390
|
-
children:
|
|
397
|
+
children: q(e.total)
|
|
391
398
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ T("td", {
|
|
393
400
|
className: "px-4 py-3",
|
|
394
|
-
children: /* @__PURE__ */
|
|
395
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize",
|
|
401
|
+
children: /* @__PURE__ */ T("span", {
|
|
402
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", Y(e.status)),
|
|
396
403
|
children: e.status.replace("_", " ")
|
|
397
404
|
})
|
|
398
405
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ T("td", {
|
|
400
407
|
className: "px-4 py-3",
|
|
401
|
-
children: /* @__PURE__ */
|
|
408
|
+
children: /* @__PURE__ */ E("div", {
|
|
402
409
|
className: "flex items-center gap-2",
|
|
403
|
-
children: [
|
|
410
|
+
children: [X(e.paymentStatus), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("div", {
|
|
404
411
|
className: "text-sm text-text-primary",
|
|
405
412
|
children: e.paymentMethod
|
|
406
|
-
}), /* @__PURE__ */
|
|
413
|
+
}), /* @__PURE__ */ T("div", {
|
|
407
414
|
className: "text-xs text-text-secondary capitalize",
|
|
408
415
|
children: e.paymentStatus
|
|
409
416
|
})] })]
|
|
410
417
|
})
|
|
411
418
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ T("td", {
|
|
413
420
|
className: "px-4 py-3 text-sm text-text-secondary",
|
|
414
|
-
children:
|
|
421
|
+
children: J(e.orderDate)
|
|
415
422
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ T("td", {
|
|
417
424
|
className: "px-4 py-3",
|
|
418
|
-
children: /* @__PURE__ */
|
|
425
|
+
children: /* @__PURE__ */ T("button", {
|
|
419
426
|
type: "button",
|
|
420
427
|
onClick: () => {
|
|
421
|
-
|
|
428
|
+
W(e), K(!0);
|
|
422
429
|
},
|
|
423
430
|
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
|
|
424
|
-
children: /* @__PURE__ */
|
|
431
|
+
children: /* @__PURE__ */ T(f, { className: "h-4 w-4" })
|
|
425
432
|
})
|
|
426
433
|
})
|
|
427
434
|
]
|
|
@@ -429,218 +436,216 @@ function D() {
|
|
|
429
436
|
})]
|
|
430
437
|
})
|
|
431
438
|
}),
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
children: "No orders found matching your criteria"
|
|
437
|
-
})]
|
|
439
|
+
Z.length === 0 && /* @__PURE__ */ T(i, {
|
|
440
|
+
illustration: "empty-search",
|
|
441
|
+
title: "No orders found",
|
|
442
|
+
description: "No orders match your current filters. Try adjusting your search criteria."
|
|
438
443
|
})
|
|
439
444
|
]
|
|
440
445
|
}),
|
|
441
|
-
|
|
446
|
+
G && U && /* @__PURE__ */ T("div", {
|
|
442
447
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
443
|
-
children: /* @__PURE__ */
|
|
448
|
+
children: /* @__PURE__ */ E("div", {
|
|
444
449
|
className: "w-full max-w-2xl rounded-lg border border-border-subtle bg-bg-surface shadow-lg max-h-[90vh] overflow-y-auto",
|
|
445
|
-
children: [/* @__PURE__ */
|
|
450
|
+
children: [/* @__PURE__ */ E("div", {
|
|
446
451
|
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
452
|
+
children: [/* @__PURE__ */ T("h2", {
|
|
448
453
|
className: "text-lg font-semibold text-text-primary",
|
|
449
454
|
children: "Order Details"
|
|
450
|
-
}), /* @__PURE__ */
|
|
455
|
+
}), /* @__PURE__ */ T("button", {
|
|
451
456
|
type: "button",
|
|
452
|
-
onClick: () =>
|
|
457
|
+
onClick: () => K(!1),
|
|
453
458
|
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
|
|
454
|
-
children: /* @__PURE__ */
|
|
459
|
+
children: /* @__PURE__ */ T(C, { className: "h-5 w-5" })
|
|
455
460
|
})]
|
|
456
|
-
}), /* @__PURE__ */
|
|
461
|
+
}), /* @__PURE__ */ E("div", {
|
|
457
462
|
className: "p-4 space-y-6",
|
|
458
463
|
children: [
|
|
459
|
-
/* @__PURE__ */
|
|
464
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
460
465
|
className: "font-semibold text-text-primary mb-3",
|
|
461
466
|
children: "Order Information"
|
|
462
|
-
}), /* @__PURE__ */
|
|
467
|
+
}), /* @__PURE__ */ E("div", {
|
|
463
468
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
464
469
|
children: [
|
|
465
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
466
471
|
className: "text-sm text-text-secondary",
|
|
467
472
|
children: "Order ID"
|
|
468
|
-
}), /* @__PURE__ */
|
|
473
|
+
}), /* @__PURE__ */ T("p", {
|
|
469
474
|
className: "font-medium text-text-primary",
|
|
470
|
-
children:
|
|
475
|
+
children: U.id
|
|
471
476
|
})] }),
|
|
472
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
473
478
|
className: "text-sm text-text-secondary",
|
|
474
479
|
children: "Status"
|
|
475
|
-
}), /* @__PURE__ */
|
|
476
|
-
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize",
|
|
477
|
-
children:
|
|
480
|
+
}), /* @__PURE__ */ T("span", {
|
|
481
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", Y(U.status)),
|
|
482
|
+
children: U.status.replace("_", " ")
|
|
478
483
|
})] }),
|
|
479
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
480
485
|
className: "text-sm text-text-secondary",
|
|
481
486
|
children: "Order Date"
|
|
482
|
-
}), /* @__PURE__ */
|
|
487
|
+
}), /* @__PURE__ */ T("p", {
|
|
483
488
|
className: "font-medium text-text-primary",
|
|
484
|
-
children:
|
|
489
|
+
children: J(U.orderDate)
|
|
485
490
|
})] }),
|
|
486
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
487
492
|
className: "text-sm text-text-secondary",
|
|
488
493
|
children: "Delivery Time"
|
|
489
|
-
}), /* @__PURE__ */
|
|
494
|
+
}), /* @__PURE__ */ T("p", {
|
|
490
495
|
className: "font-medium text-text-primary",
|
|
491
|
-
children:
|
|
496
|
+
children: J(U.deliveryTime)
|
|
492
497
|
})] })
|
|
493
498
|
]
|
|
494
499
|
})] }),
|
|
495
|
-
/* @__PURE__ */
|
|
500
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
496
501
|
className: "font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
497
|
-
children: [/* @__PURE__ */
|
|
498
|
-
}), /* @__PURE__ */
|
|
502
|
+
children: [/* @__PURE__ */ T(S, { className: "h-4 w-4" }), " Customer Details"]
|
|
503
|
+
}), /* @__PURE__ */ E("div", {
|
|
499
504
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
500
505
|
children: [
|
|
501
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
502
507
|
className: "text-sm text-text-secondary",
|
|
503
508
|
children: "Name"
|
|
504
|
-
}), /* @__PURE__ */
|
|
509
|
+
}), /* @__PURE__ */ T("p", {
|
|
505
510
|
className: "font-medium text-text-primary",
|
|
506
|
-
children:
|
|
511
|
+
children: U.customerName
|
|
507
512
|
})] }),
|
|
508
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
509
514
|
className: "text-sm text-text-secondary",
|
|
510
515
|
children: "Phone"
|
|
511
|
-
}), /* @__PURE__ */
|
|
516
|
+
}), /* @__PURE__ */ E("p", {
|
|
512
517
|
className: "font-medium text-text-primary flex items-center gap-1",
|
|
513
|
-
children: [/* @__PURE__ */
|
|
518
|
+
children: [/* @__PURE__ */ T(g, { className: "h-3 w-3" }), U.customerPhone]
|
|
514
519
|
})] }),
|
|
515
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ E("div", {
|
|
516
521
|
className: "sm:col-span-2",
|
|
517
|
-
children: [/* @__PURE__ */
|
|
522
|
+
children: [/* @__PURE__ */ T("p", {
|
|
518
523
|
className: "text-sm text-text-secondary",
|
|
519
524
|
children: "Delivery Address"
|
|
520
|
-
}), /* @__PURE__ */
|
|
525
|
+
}), /* @__PURE__ */ E("p", {
|
|
521
526
|
className: "font-medium text-text-primary flex items-center gap-1",
|
|
522
|
-
children: [/* @__PURE__ */
|
|
527
|
+
children: [/* @__PURE__ */ T(h, { className: "h-3 w-3" }), U.deliveryAddress]
|
|
523
528
|
})]
|
|
524
529
|
})
|
|
525
530
|
]
|
|
526
531
|
})] }),
|
|
527
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
528
533
|
className: "font-semibold text-text-primary mb-3",
|
|
529
534
|
children: "Cart Details"
|
|
530
|
-
}), /* @__PURE__ */
|
|
535
|
+
}), /* @__PURE__ */ E("div", {
|
|
531
536
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
532
|
-
children: [/* @__PURE__ */
|
|
537
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
533
538
|
className: "text-sm text-text-secondary",
|
|
534
539
|
children: "Cart Name"
|
|
535
|
-
}), /* @__PURE__ */
|
|
540
|
+
}), /* @__PURE__ */ T("p", {
|
|
536
541
|
className: "font-medium text-text-primary",
|
|
537
|
-
children:
|
|
538
|
-
})] }), /* @__PURE__ */
|
|
542
|
+
children: U.cartName
|
|
543
|
+
})] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
539
544
|
className: "text-sm text-text-secondary",
|
|
540
545
|
children: "Cart Owner"
|
|
541
|
-
}), /* @__PURE__ */
|
|
546
|
+
}), /* @__PURE__ */ T("p", {
|
|
542
547
|
className: "font-medium text-text-primary",
|
|
543
|
-
children:
|
|
548
|
+
children: U.cartOwner
|
|
544
549
|
})] })]
|
|
545
550
|
})] }),
|
|
546
|
-
/* @__PURE__ */
|
|
551
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
547
552
|
className: "font-semibold text-text-primary mb-3",
|
|
548
553
|
children: "Order Items"
|
|
549
|
-
}), /* @__PURE__ */
|
|
554
|
+
}), /* @__PURE__ */ E("div", {
|
|
550
555
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
551
|
-
children: [/* @__PURE__ */
|
|
556
|
+
children: [/* @__PURE__ */ T("ul", {
|
|
552
557
|
className: "space-y-2",
|
|
553
|
-
children:
|
|
558
|
+
children: U.items.map((e, t) => /* @__PURE__ */ T("li", {
|
|
554
559
|
className: "text-sm text-text-primary",
|
|
555
560
|
children: e
|
|
556
561
|
}, t))
|
|
557
|
-
}), /* @__PURE__ */
|
|
562
|
+
}), /* @__PURE__ */ E("div", {
|
|
558
563
|
className: "mt-4 pt-4 border-t border-border-subtle flex justify-between items-center",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
564
|
+
children: [/* @__PURE__ */ T("span", {
|
|
560
565
|
className: "font-semibold text-text-primary",
|
|
561
566
|
children: "Total Amount"
|
|
562
|
-
}), /* @__PURE__ */
|
|
567
|
+
}), /* @__PURE__ */ T("span", {
|
|
563
568
|
className: "font-semibold text-lg text-text-primary",
|
|
564
|
-
children:
|
|
569
|
+
children: q(U.total)
|
|
565
570
|
})]
|
|
566
571
|
})]
|
|
567
572
|
})] }),
|
|
568
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
569
574
|
className: "font-semibold text-text-primary mb-3",
|
|
570
575
|
children: "Payment Details"
|
|
571
|
-
}), /* @__PURE__ */
|
|
576
|
+
}), /* @__PURE__ */ E("div", {
|
|
572
577
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
573
|
-
children: [/* @__PURE__ */
|
|
578
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
574
579
|
className: "text-sm text-text-secondary",
|
|
575
580
|
children: "Method"
|
|
576
|
-
}), /* @__PURE__ */
|
|
581
|
+
}), /* @__PURE__ */ T("p", {
|
|
577
582
|
className: "font-medium text-text-primary",
|
|
578
|
-
children:
|
|
579
|
-
})] }), /* @__PURE__ */
|
|
583
|
+
children: U.paymentMethod
|
|
584
|
+
})] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
580
585
|
className: "text-sm text-text-secondary",
|
|
581
586
|
children: "Status"
|
|
582
|
-
}), /* @__PURE__ */
|
|
587
|
+
}), /* @__PURE__ */ E("div", {
|
|
583
588
|
className: "flex items-center gap-2",
|
|
584
|
-
children: [
|
|
589
|
+
children: [X(U.paymentStatus), /* @__PURE__ */ T("span", {
|
|
585
590
|
className: "font-medium text-text-primary capitalize",
|
|
586
|
-
children:
|
|
591
|
+
children: U.paymentStatus
|
|
587
592
|
})]
|
|
588
593
|
})] })]
|
|
589
594
|
})] }),
|
|
590
|
-
|
|
595
|
+
U.workerAssigned && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
591
596
|
className: "font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
592
|
-
children: [/* @__PURE__ */
|
|
593
|
-
}), /* @__PURE__ */
|
|
597
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), " Delivery Assignment"]
|
|
598
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
594
599
|
className: "text-sm text-text-secondary",
|
|
595
600
|
children: "Assigned Worker"
|
|
596
|
-
}), /* @__PURE__ */
|
|
601
|
+
}), /* @__PURE__ */ T("p", {
|
|
597
602
|
className: "font-medium text-text-primary",
|
|
598
|
-
children:
|
|
603
|
+
children: U.workerAssigned
|
|
599
604
|
})] })] }),
|
|
600
|
-
|
|
605
|
+
U.notes && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
601
606
|
className: "font-semibold text-text-primary mb-3",
|
|
602
607
|
children: "Special Instructions"
|
|
603
|
-
}), /* @__PURE__ */
|
|
608
|
+
}), /* @__PURE__ */ T("p", {
|
|
604
609
|
className: "text-sm rounded-lg bg-bg-sunken/50 p-3 text-text-primary",
|
|
605
|
-
children:
|
|
610
|
+
children: U.notes
|
|
606
611
|
})] }),
|
|
607
|
-
/* @__PURE__ */
|
|
612
|
+
/* @__PURE__ */ E("div", {
|
|
608
613
|
className: "flex flex-col sm:flex-row sm:justify-end gap-3 pt-2",
|
|
609
|
-
children: [/* @__PURE__ */
|
|
614
|
+
children: [/* @__PURE__ */ T("button", {
|
|
610
615
|
type: "button",
|
|
611
|
-
onClick: () =>
|
|
616
|
+
onClick: () => K(!1),
|
|
612
617
|
className: "rounded-lg border border-border-subtle py-2 px-4 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
613
618
|
children: "Close"
|
|
614
|
-
}),
|
|
619
|
+
}), U.status !== "delivered" && U.status !== "cancelled" && /* @__PURE__ */ E("select", {
|
|
615
620
|
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)]",
|
|
616
|
-
value:
|
|
617
|
-
onChange: (e) =>
|
|
621
|
+
value: U.status,
|
|
622
|
+
onChange: (e) => Q(U.id, e.target.value),
|
|
618
623
|
children: [
|
|
619
|
-
/* @__PURE__ */
|
|
624
|
+
/* @__PURE__ */ T("option", {
|
|
620
625
|
value: "pending",
|
|
621
626
|
children: "Pending"
|
|
622
627
|
}),
|
|
623
|
-
/* @__PURE__ */
|
|
628
|
+
/* @__PURE__ */ T("option", {
|
|
624
629
|
value: "confirmed",
|
|
625
630
|
children: "Confirmed"
|
|
626
631
|
}),
|
|
627
|
-
/* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ T("option", {
|
|
628
633
|
value: "preparing",
|
|
629
634
|
children: "Preparing"
|
|
630
635
|
}),
|
|
631
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ T("option", {
|
|
632
637
|
value: "ready",
|
|
633
638
|
children: "Ready"
|
|
634
639
|
}),
|
|
635
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ T("option", {
|
|
636
641
|
value: "out_for_delivery",
|
|
637
642
|
children: "Out for Delivery"
|
|
638
643
|
}),
|
|
639
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ T("option", {
|
|
640
645
|
value: "delivered",
|
|
641
646
|
children: "Delivered"
|
|
642
647
|
}),
|
|
643
|
-
/* @__PURE__ */
|
|
648
|
+
/* @__PURE__ */ T("option", {
|
|
644
649
|
value: "cancelled",
|
|
645
650
|
children: "Cancelled"
|
|
646
651
|
})
|
|
@@ -655,6 +660,6 @@ function D() {
|
|
|
655
660
|
});
|
|
656
661
|
}
|
|
657
662
|
//#endregion
|
|
658
|
-
export {
|
|
663
|
+
export { A as AdminOrdersPage };
|
|
659
664
|
|
|
660
665
|
//# sourceMappingURL=AdminOrdersPage.js.map
|