@burdenoff/microfe-kadaikodi 2026.625.1 → 2026.626.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/kadaikodi/pages/HomePage.js +19 -14
- package/dist/kadaikodi/pages/HomePage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +118 -83
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminDashboard.js +75 -46
- package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +144 -128
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +255 -237
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js +129 -128
- package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +178 -150
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/CartManagementPage.js +182 -159
- package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/admin/UserManagementPage.js +325 -303
- package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +500 -469
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +534 -503
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +73 -48
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +103 -96
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +130 -129
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +673 -670
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +517 -514
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +140 -125
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/HelpSupportPage.js +302 -311
- package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js +102 -91
- package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/kadaikodi/pages/common/SettingsPage.js +766 -734
- package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +366 -356
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CartDetailPage.js +243 -213
- package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +200 -195
- package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CheckoutPage.js +95 -89
- package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js +430 -387
- package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +488 -478
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +523 -512
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/FavoritesPage.js +83 -75
- package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +116 -108
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +67 -61
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +90 -73
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/ReviewsPage.js +80 -72
- package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +70 -53
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +289 -255
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +92 -84
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +63 -55
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js +339 -311
- package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +40 -32
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +174 -150
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +302 -273
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js +87 -59
- package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +82 -75
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +78 -71
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,12 +2,14 @@ import { useKadaikodi as e } from "../../context/KadaikodiContext.js";
|
|
|
2
2
|
import { cn as t } from "../../utils/cn.js";
|
|
3
3
|
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
4
|
import { 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/kadaikodi/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,176 @@ 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
|
-
}),
|
|
87
|
+
}), Y = (e) => ({
|
|
86
88
|
delivered: "bg-status-success-bg-subtle text-status-success-text",
|
|
87
89
|
preparing: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
88
90
|
ready: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
89
91
|
out_for_delivery: "bg-[var(--color-accent-soft)] text-text-primary",
|
|
90
92
|
cancelled: "bg-status-error-bg-subtle text-status-error-text",
|
|
91
93
|
confirmed: "bg-[var(--color-accent-soft)] text-text-primary"
|
|
92
|
-
})[e] ?? "bg-secondary text-secondary-foreground",
|
|
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-text-primary" });
|
|
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
|
-
children:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
128
|
+
/* @__PURE__ */ T(O, {
|
|
129
|
+
className: "mb-6",
|
|
130
|
+
children: "Every order placed across Kadaikodi in one queue. Use this page to keep operations running smoothly — search and filter orders, spot anything pending or stuck, open an order to see its full details, and step in when a customer or cart needs help. The metrics up top give you a live read on volume, revenue and what's awaiting action."
|
|
131
|
+
}),
|
|
132
|
+
N && /* @__PURE__ */ E(D, {
|
|
133
|
+
className: "mb-6",
|
|
134
|
+
children: [/* @__PURE__ */ T("h2", {
|
|
135
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
136
|
+
children: "Orders at a Glance"
|
|
137
|
+
}), /* @__PURE__ */ E("div", {
|
|
138
|
+
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ T(r, {
|
|
141
|
+
icon: /* @__PURE__ */ T(y, { className: "h-5 w-5" }),
|
|
142
|
+
value: N.totalOrders,
|
|
143
|
+
label: "Total Orders",
|
|
144
|
+
trendValue: "Orders today"
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ T(r, {
|
|
147
|
+
icon: /* @__PURE__ */ T(p, { className: "h-5 w-5" }),
|
|
148
|
+
value: q(N.totalRevenue),
|
|
149
|
+
label: "Revenue",
|
|
150
|
+
trend: "up",
|
|
151
|
+
trendValue: "+15.2% vs yesterday"
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ T(r, {
|
|
154
|
+
icon: /* @__PURE__ */ T(b, { className: "h-5 w-5" }),
|
|
155
|
+
value: q(N.averageOrderValue),
|
|
156
|
+
label: "Avg Order Value",
|
|
157
|
+
trendValue: "Average order value"
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ T(r, {
|
|
160
|
+
icon: /* @__PURE__ */ T(d, { className: "h-5 w-5" }),
|
|
161
|
+
value: N.pendingOrders,
|
|
162
|
+
label: "Pending Orders",
|
|
163
|
+
trendValue: "Awaiting action"
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
})]
|
|
155
167
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ T("div", {
|
|
157
169
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 mb-6",
|
|
158
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ E("div", {
|
|
159
171
|
className: "flex flex-col gap-4",
|
|
160
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ E("div", {
|
|
161
173
|
className: "relative flex-1",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
174
|
+
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
175
|
type: "text",
|
|
164
176
|
placeholder: "Search by order ID, customer, or cart name...",
|
|
165
|
-
value:
|
|
166
|
-
onChange: (e) =>
|
|
177
|
+
value: L,
|
|
178
|
+
onChange: (e) => R(e.target.value),
|
|
167
179
|
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
180
|
})]
|
|
169
|
-
}), /* @__PURE__ */
|
|
181
|
+
}), /* @__PURE__ */ E("div", {
|
|
170
182
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
172
|
-
value:
|
|
173
|
-
onChange: (e) =>
|
|
183
|
+
children: [/* @__PURE__ */ E("select", {
|
|
184
|
+
value: z,
|
|
185
|
+
onChange: (e) => B(e.target.value),
|
|
174
186
|
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
187
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ T("option", {
|
|
177
189
|
value: "all",
|
|
178
190
|
children: "All Status"
|
|
179
191
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ T("option", {
|
|
181
193
|
value: "pending",
|
|
182
194
|
children: "Pending"
|
|
183
195
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ T("option", {
|
|
185
197
|
value: "confirmed",
|
|
186
198
|
children: "Confirmed"
|
|
187
199
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ T("option", {
|
|
189
201
|
value: "preparing",
|
|
190
202
|
children: "Preparing"
|
|
191
203
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ T("option", {
|
|
193
205
|
value: "ready",
|
|
194
206
|
children: "Ready"
|
|
195
207
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ T("option", {
|
|
197
209
|
value: "out_for_delivery",
|
|
198
210
|
children: "Out for Delivery"
|
|
199
211
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ T("option", {
|
|
201
213
|
value: "delivered",
|
|
202
214
|
children: "Delivered"
|
|
203
215
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ T("option", {
|
|
205
217
|
value: "cancelled",
|
|
206
218
|
children: "Cancelled"
|
|
207
219
|
})
|
|
208
220
|
]
|
|
209
|
-
}), /* @__PURE__ */
|
|
210
|
-
value:
|
|
211
|
-
onChange: (e) =>
|
|
221
|
+
}), /* @__PURE__ */ E("select", {
|
|
222
|
+
value: V,
|
|
223
|
+
onChange: (e) => H(e.target.value),
|
|
212
224
|
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
225
|
children: [
|
|
214
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ T("option", {
|
|
215
227
|
value: "today",
|
|
216
228
|
children: "Today"
|
|
217
229
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ T("option", {
|
|
219
231
|
value: "yesterday",
|
|
220
232
|
children: "Yesterday"
|
|
221
233
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ T("option", {
|
|
223
235
|
value: "week",
|
|
224
236
|
children: "This Week"
|
|
225
237
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ T("option", {
|
|
227
239
|
value: "month",
|
|
228
240
|
children: "This Month"
|
|
229
241
|
})
|
|
@@ -232,196 +244,196 @@ function D() {
|
|
|
232
244
|
})]
|
|
233
245
|
})
|
|
234
246
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ E("div", {
|
|
236
248
|
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
237
249
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ T("div", {
|
|
239
251
|
className: "block md:hidden space-y-4 p-4",
|
|
240
|
-
children:
|
|
252
|
+
children: Z.map((e) => /* @__PURE__ */ E("div", {
|
|
241
253
|
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
242
254
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ E("div", {
|
|
244
256
|
className: "flex justify-between items-start mb-3",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
246
258
|
className: "font-medium text-text-primary text-lg",
|
|
247
259
|
children: e.id
|
|
248
|
-
}), /* @__PURE__ */
|
|
260
|
+
}), /* @__PURE__ */ T("p", {
|
|
249
261
|
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",
|
|
262
|
+
children: J(e.orderDate)
|
|
263
|
+
})] }), /* @__PURE__ */ T("span", {
|
|
264
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", Y(e.status)),
|
|
253
265
|
children: e.status.replace("_", " ")
|
|
254
266
|
})]
|
|
255
267
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ E("div", {
|
|
257
269
|
className: "grid grid-cols-2 gap-4 mb-3 text-sm",
|
|
258
|
-
children: [/* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
270
|
+
children: [/* @__PURE__ */ E("div", { children: [
|
|
271
|
+
/* @__PURE__ */ T("p", {
|
|
260
272
|
className: "text-text-secondary font-medium",
|
|
261
273
|
children: "Customer"
|
|
262
274
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ T("p", {
|
|
264
276
|
className: "text-text-primary",
|
|
265
277
|
children: e.customerName
|
|
266
278
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ T("p", {
|
|
268
280
|
className: "text-text-secondary text-xs",
|
|
269
281
|
children: e.customerPhone
|
|
270
282
|
})
|
|
271
|
-
] }), /* @__PURE__ */
|
|
272
|
-
/* @__PURE__ */
|
|
283
|
+
] }), /* @__PURE__ */ E("div", { children: [
|
|
284
|
+
/* @__PURE__ */ T("p", {
|
|
273
285
|
className: "text-text-secondary font-medium",
|
|
274
286
|
children: "Cart"
|
|
275
287
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ T("p", {
|
|
277
289
|
className: "text-text-primary",
|
|
278
290
|
children: e.cartName
|
|
279
291
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ T("p", {
|
|
281
293
|
className: "text-text-secondary text-xs",
|
|
282
294
|
children: e.cartOwner
|
|
283
295
|
})
|
|
284
296
|
] })]
|
|
285
297
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ E("div", {
|
|
287
299
|
className: "flex justify-between items-center mb-3",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
300
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
289
301
|
className: "text-text-secondary font-medium text-sm",
|
|
290
302
|
children: "Amount"
|
|
291
|
-
}), /* @__PURE__ */
|
|
303
|
+
}), /* @__PURE__ */ T("p", {
|
|
292
304
|
className: "text-text-primary font-semibold text-lg",
|
|
293
|
-
children:
|
|
294
|
-
})] }), /* @__PURE__ */
|
|
305
|
+
children: q(e.total)
|
|
306
|
+
})] }), /* @__PURE__ */ E("div", {
|
|
295
307
|
className: "flex items-center gap-2",
|
|
296
|
-
children: [
|
|
308
|
+
children: [X(e.paymentStatus), /* @__PURE__ */ E("div", {
|
|
297
309
|
className: "text-right",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ T("p", {
|
|
299
311
|
className: "text-sm text-text-primary",
|
|
300
312
|
children: e.paymentMethod
|
|
301
|
-
}), /* @__PURE__ */
|
|
313
|
+
}), /* @__PURE__ */ T("p", {
|
|
302
314
|
className: "text-xs text-text-secondary capitalize",
|
|
303
315
|
children: e.paymentStatus
|
|
304
316
|
})]
|
|
305
317
|
})]
|
|
306
318
|
})]
|
|
307
319
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ E("button", {
|
|
309
321
|
type: "button",
|
|
310
322
|
onClick: () => {
|
|
311
|
-
|
|
323
|
+
W(e), K(!0);
|
|
312
324
|
},
|
|
313
325
|
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__ */
|
|
326
|
+
children: [/* @__PURE__ */ T(f, { className: "h-4 w-4" }), " View Details"]
|
|
315
327
|
})
|
|
316
328
|
]
|
|
317
329
|
}, e.id))
|
|
318
330
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ T("div", {
|
|
320
332
|
className: "hidden md:block overflow-x-auto",
|
|
321
|
-
children: /* @__PURE__ */
|
|
333
|
+
children: /* @__PURE__ */ E("table", {
|
|
322
334
|
className: "w-full",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ T("thead", { children: /* @__PURE__ */ E("tr", {
|
|
324
336
|
className: "border-b border-border-subtle bg-bg-sunken/50",
|
|
325
337
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ T("th", {
|
|
327
339
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
328
340
|
children: "Order ID"
|
|
329
341
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ T("th", {
|
|
331
343
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
332
344
|
children: "Customer"
|
|
333
345
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ T("th", {
|
|
335
347
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
336
348
|
children: "Cart"
|
|
337
349
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ T("th", {
|
|
339
351
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
340
352
|
children: "Amount"
|
|
341
353
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ T("th", {
|
|
343
355
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
344
356
|
children: "Status"
|
|
345
357
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ T("th", {
|
|
347
359
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
348
360
|
children: "Payment"
|
|
349
361
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ T("th", {
|
|
351
363
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
352
364
|
children: "Time"
|
|
353
365
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ T("th", {
|
|
355
367
|
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
356
368
|
children: "Actions"
|
|
357
369
|
})
|
|
358
370
|
]
|
|
359
|
-
}) }), /* @__PURE__ */
|
|
371
|
+
}) }), /* @__PURE__ */ T("tbody", {
|
|
360
372
|
className: "divide-y divide-border",
|
|
361
|
-
children:
|
|
373
|
+
children: Z.map((e) => /* @__PURE__ */ E("tr", {
|
|
362
374
|
className: "hover:bg-accent/50 transition-colors",
|
|
363
375
|
children: [
|
|
364
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ T("td", {
|
|
365
377
|
className: "px-4 py-3 text-sm font-mono font-medium text-text-primary",
|
|
366
378
|
children: e.id
|
|
367
379
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ E("td", {
|
|
369
381
|
className: "px-4 py-3",
|
|
370
|
-
children: [/* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ T("div", {
|
|
371
383
|
className: "text-sm font-medium text-text-primary",
|
|
372
384
|
children: e.customerName
|
|
373
|
-
}), /* @__PURE__ */
|
|
385
|
+
}), /* @__PURE__ */ T("div", {
|
|
374
386
|
className: "text-xs text-text-secondary",
|
|
375
387
|
children: e.customerPhone
|
|
376
388
|
})]
|
|
377
389
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ E("td", {
|
|
379
391
|
className: "px-4 py-3",
|
|
380
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ T("div", {
|
|
381
393
|
className: "text-sm font-medium text-text-primary",
|
|
382
394
|
children: e.cartName
|
|
383
|
-
}), /* @__PURE__ */
|
|
395
|
+
}), /* @__PURE__ */ T("div", {
|
|
384
396
|
className: "text-xs text-text-secondary",
|
|
385
397
|
children: e.cartOwner
|
|
386
398
|
})]
|
|
387
399
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ T("td", {
|
|
389
401
|
className: "px-4 py-3 text-sm font-semibold text-text-primary",
|
|
390
|
-
children:
|
|
402
|
+
children: q(e.total)
|
|
391
403
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ T("td", {
|
|
393
405
|
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",
|
|
406
|
+
children: /* @__PURE__ */ T("span", {
|
|
407
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", Y(e.status)),
|
|
396
408
|
children: e.status.replace("_", " ")
|
|
397
409
|
})
|
|
398
410
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ T("td", {
|
|
400
412
|
className: "px-4 py-3",
|
|
401
|
-
children: /* @__PURE__ */
|
|
413
|
+
children: /* @__PURE__ */ E("div", {
|
|
402
414
|
className: "flex items-center gap-2",
|
|
403
|
-
children: [
|
|
415
|
+
children: [X(e.paymentStatus), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("div", {
|
|
404
416
|
className: "text-sm text-text-primary",
|
|
405
417
|
children: e.paymentMethod
|
|
406
|
-
}), /* @__PURE__ */
|
|
418
|
+
}), /* @__PURE__ */ T("div", {
|
|
407
419
|
className: "text-xs text-text-secondary capitalize",
|
|
408
420
|
children: e.paymentStatus
|
|
409
421
|
})] })]
|
|
410
422
|
})
|
|
411
423
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ T("td", {
|
|
413
425
|
className: "px-4 py-3 text-sm text-text-secondary",
|
|
414
|
-
children:
|
|
426
|
+
children: J(e.orderDate)
|
|
415
427
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ T("td", {
|
|
417
429
|
className: "px-4 py-3",
|
|
418
|
-
children: /* @__PURE__ */
|
|
430
|
+
children: /* @__PURE__ */ T("button", {
|
|
419
431
|
type: "button",
|
|
420
432
|
onClick: () => {
|
|
421
|
-
|
|
433
|
+
W(e), K(!0);
|
|
422
434
|
},
|
|
423
435
|
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
|
|
424
|
-
children: /* @__PURE__ */
|
|
436
|
+
children: /* @__PURE__ */ T(f, { className: "h-4 w-4" })
|
|
425
437
|
})
|
|
426
438
|
})
|
|
427
439
|
]
|
|
@@ -429,218 +441,224 @@ function D() {
|
|
|
429
441
|
})]
|
|
430
442
|
})
|
|
431
443
|
}),
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
444
|
+
Z.length === 0 && /* @__PURE__ */ T(i, {
|
|
445
|
+
illustration: "empty-search",
|
|
446
|
+
title: "No orders found",
|
|
447
|
+
description: "No orders match your current search and filters. Try a different status, date range or search term.",
|
|
448
|
+
action: /* @__PURE__ */ T("button", {
|
|
449
|
+
type: "button",
|
|
450
|
+
onClick: () => {
|
|
451
|
+
R(""), B("all"), H("today");
|
|
452
|
+
},
|
|
453
|
+
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
454
|
+
children: "Clear filters"
|
|
455
|
+
})
|
|
438
456
|
})
|
|
439
457
|
]
|
|
440
458
|
}),
|
|
441
|
-
|
|
459
|
+
G && U && /* @__PURE__ */ T("div", {
|
|
442
460
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
443
|
-
children: /* @__PURE__ */
|
|
461
|
+
children: /* @__PURE__ */ E("div", {
|
|
444
462
|
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__ */
|
|
463
|
+
children: [/* @__PURE__ */ E("div", {
|
|
446
464
|
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
465
|
+
children: [/* @__PURE__ */ T("h2", {
|
|
448
466
|
className: "text-lg font-semibold text-text-primary",
|
|
449
467
|
children: "Order Details"
|
|
450
|
-
}), /* @__PURE__ */
|
|
468
|
+
}), /* @__PURE__ */ T("button", {
|
|
451
469
|
type: "button",
|
|
452
|
-
onClick: () =>
|
|
470
|
+
onClick: () => K(!1),
|
|
453
471
|
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
|
|
454
|
-
children: /* @__PURE__ */
|
|
472
|
+
children: /* @__PURE__ */ T(C, { className: "h-5 w-5" })
|
|
455
473
|
})]
|
|
456
|
-
}), /* @__PURE__ */
|
|
474
|
+
}), /* @__PURE__ */ E("div", {
|
|
457
475
|
className: "p-4 space-y-6",
|
|
458
476
|
children: [
|
|
459
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
460
478
|
className: "font-semibold text-text-primary mb-3",
|
|
461
479
|
children: "Order Information"
|
|
462
|
-
}), /* @__PURE__ */
|
|
480
|
+
}), /* @__PURE__ */ E("div", {
|
|
463
481
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
464
482
|
children: [
|
|
465
|
-
/* @__PURE__ */
|
|
483
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
466
484
|
className: "text-sm text-text-secondary",
|
|
467
485
|
children: "Order ID"
|
|
468
|
-
}), /* @__PURE__ */
|
|
486
|
+
}), /* @__PURE__ */ T("p", {
|
|
469
487
|
className: "font-medium text-text-primary",
|
|
470
|
-
children:
|
|
488
|
+
children: U.id
|
|
471
489
|
})] }),
|
|
472
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
473
491
|
className: "text-sm text-text-secondary",
|
|
474
492
|
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:
|
|
493
|
+
}), /* @__PURE__ */ T("span", {
|
|
494
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", Y(U.status)),
|
|
495
|
+
children: U.status.replace("_", " ")
|
|
478
496
|
})] }),
|
|
479
|
-
/* @__PURE__ */
|
|
497
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
480
498
|
className: "text-sm text-text-secondary",
|
|
481
499
|
children: "Order Date"
|
|
482
|
-
}), /* @__PURE__ */
|
|
500
|
+
}), /* @__PURE__ */ T("p", {
|
|
483
501
|
className: "font-medium text-text-primary",
|
|
484
|
-
children:
|
|
502
|
+
children: J(U.orderDate)
|
|
485
503
|
})] }),
|
|
486
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
487
505
|
className: "text-sm text-text-secondary",
|
|
488
506
|
children: "Delivery Time"
|
|
489
|
-
}), /* @__PURE__ */
|
|
507
|
+
}), /* @__PURE__ */ T("p", {
|
|
490
508
|
className: "font-medium text-text-primary",
|
|
491
|
-
children:
|
|
509
|
+
children: J(U.deliveryTime)
|
|
492
510
|
})] })
|
|
493
511
|
]
|
|
494
512
|
})] }),
|
|
495
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
496
514
|
className: "font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
497
|
-
children: [/* @__PURE__ */
|
|
498
|
-
}), /* @__PURE__ */
|
|
515
|
+
children: [/* @__PURE__ */ T(S, { className: "h-4 w-4" }), " Customer Details"]
|
|
516
|
+
}), /* @__PURE__ */ E("div", {
|
|
499
517
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
500
518
|
children: [
|
|
501
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
502
520
|
className: "text-sm text-text-secondary",
|
|
503
521
|
children: "Name"
|
|
504
|
-
}), /* @__PURE__ */
|
|
522
|
+
}), /* @__PURE__ */ T("p", {
|
|
505
523
|
className: "font-medium text-text-primary",
|
|
506
|
-
children:
|
|
524
|
+
children: U.customerName
|
|
507
525
|
})] }),
|
|
508
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
509
527
|
className: "text-sm text-text-secondary",
|
|
510
528
|
children: "Phone"
|
|
511
|
-
}), /* @__PURE__ */
|
|
529
|
+
}), /* @__PURE__ */ E("p", {
|
|
512
530
|
className: "font-medium text-text-primary flex items-center gap-1",
|
|
513
|
-
children: [/* @__PURE__ */
|
|
531
|
+
children: [/* @__PURE__ */ T(g, { className: "h-3 w-3" }), U.customerPhone]
|
|
514
532
|
})] }),
|
|
515
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ E("div", {
|
|
516
534
|
className: "sm:col-span-2",
|
|
517
|
-
children: [/* @__PURE__ */
|
|
535
|
+
children: [/* @__PURE__ */ T("p", {
|
|
518
536
|
className: "text-sm text-text-secondary",
|
|
519
537
|
children: "Delivery Address"
|
|
520
|
-
}), /* @__PURE__ */
|
|
538
|
+
}), /* @__PURE__ */ E("p", {
|
|
521
539
|
className: "font-medium text-text-primary flex items-center gap-1",
|
|
522
|
-
children: [/* @__PURE__ */
|
|
540
|
+
children: [/* @__PURE__ */ T(h, { className: "h-3 w-3" }), U.deliveryAddress]
|
|
523
541
|
})]
|
|
524
542
|
})
|
|
525
543
|
]
|
|
526
544
|
})] }),
|
|
527
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
528
546
|
className: "font-semibold text-text-primary mb-3",
|
|
529
547
|
children: "Cart Details"
|
|
530
|
-
}), /* @__PURE__ */
|
|
548
|
+
}), /* @__PURE__ */ E("div", {
|
|
531
549
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
532
|
-
children: [/* @__PURE__ */
|
|
550
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
533
551
|
className: "text-sm text-text-secondary",
|
|
534
552
|
children: "Cart Name"
|
|
535
|
-
}), /* @__PURE__ */
|
|
553
|
+
}), /* @__PURE__ */ T("p", {
|
|
536
554
|
className: "font-medium text-text-primary",
|
|
537
|
-
children:
|
|
538
|
-
})] }), /* @__PURE__ */
|
|
555
|
+
children: U.cartName
|
|
556
|
+
})] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
539
557
|
className: "text-sm text-text-secondary",
|
|
540
558
|
children: "Cart Owner"
|
|
541
|
-
}), /* @__PURE__ */
|
|
559
|
+
}), /* @__PURE__ */ T("p", {
|
|
542
560
|
className: "font-medium text-text-primary",
|
|
543
|
-
children:
|
|
561
|
+
children: U.cartOwner
|
|
544
562
|
})] })]
|
|
545
563
|
})] }),
|
|
546
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
547
565
|
className: "font-semibold text-text-primary mb-3",
|
|
548
566
|
children: "Order Items"
|
|
549
|
-
}), /* @__PURE__ */
|
|
567
|
+
}), /* @__PURE__ */ E("div", {
|
|
550
568
|
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
551
|
-
children: [/* @__PURE__ */
|
|
569
|
+
children: [/* @__PURE__ */ T("ul", {
|
|
552
570
|
className: "space-y-2",
|
|
553
|
-
children:
|
|
571
|
+
children: U.items.map((e, t) => /* @__PURE__ */ T("li", {
|
|
554
572
|
className: "text-sm text-text-primary",
|
|
555
573
|
children: e
|
|
556
574
|
}, t))
|
|
557
|
-
}), /* @__PURE__ */
|
|
575
|
+
}), /* @__PURE__ */ E("div", {
|
|
558
576
|
className: "mt-4 pt-4 border-t border-border-subtle flex justify-between items-center",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
577
|
+
children: [/* @__PURE__ */ T("span", {
|
|
560
578
|
className: "font-semibold text-text-primary",
|
|
561
579
|
children: "Total Amount"
|
|
562
|
-
}), /* @__PURE__ */
|
|
580
|
+
}), /* @__PURE__ */ T("span", {
|
|
563
581
|
className: "font-semibold text-lg text-text-primary",
|
|
564
|
-
children:
|
|
582
|
+
children: q(U.total)
|
|
565
583
|
})]
|
|
566
584
|
})]
|
|
567
585
|
})] }),
|
|
568
|
-
/* @__PURE__ */
|
|
586
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
569
587
|
className: "font-semibold text-text-primary mb-3",
|
|
570
588
|
children: "Payment Details"
|
|
571
|
-
}), /* @__PURE__ */
|
|
589
|
+
}), /* @__PURE__ */ E("div", {
|
|
572
590
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
573
|
-
children: [/* @__PURE__ */
|
|
591
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
574
592
|
className: "text-sm text-text-secondary",
|
|
575
593
|
children: "Method"
|
|
576
|
-
}), /* @__PURE__ */
|
|
594
|
+
}), /* @__PURE__ */ T("p", {
|
|
577
595
|
className: "font-medium text-text-primary",
|
|
578
|
-
children:
|
|
579
|
-
})] }), /* @__PURE__ */
|
|
596
|
+
children: U.paymentMethod
|
|
597
|
+
})] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
580
598
|
className: "text-sm text-text-secondary",
|
|
581
599
|
children: "Status"
|
|
582
|
-
}), /* @__PURE__ */
|
|
600
|
+
}), /* @__PURE__ */ E("div", {
|
|
583
601
|
className: "flex items-center gap-2",
|
|
584
|
-
children: [
|
|
602
|
+
children: [X(U.paymentStatus), /* @__PURE__ */ T("span", {
|
|
585
603
|
className: "font-medium text-text-primary capitalize",
|
|
586
|
-
children:
|
|
604
|
+
children: U.paymentStatus
|
|
587
605
|
})]
|
|
588
606
|
})] })]
|
|
589
607
|
})] }),
|
|
590
|
-
|
|
608
|
+
U.workerAssigned && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
591
609
|
className: "font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
592
|
-
children: [/* @__PURE__ */
|
|
593
|
-
}), /* @__PURE__ */
|
|
610
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), " Delivery Assignment"]
|
|
611
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
594
612
|
className: "text-sm text-text-secondary",
|
|
595
613
|
children: "Assigned Worker"
|
|
596
|
-
}), /* @__PURE__ */
|
|
614
|
+
}), /* @__PURE__ */ T("p", {
|
|
597
615
|
className: "font-medium text-text-primary",
|
|
598
|
-
children:
|
|
616
|
+
children: U.workerAssigned
|
|
599
617
|
})] })] }),
|
|
600
|
-
|
|
618
|
+
U.notes && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h3", {
|
|
601
619
|
className: "font-semibold text-text-primary mb-3",
|
|
602
620
|
children: "Special Instructions"
|
|
603
|
-
}), /* @__PURE__ */
|
|
621
|
+
}), /* @__PURE__ */ T("p", {
|
|
604
622
|
className: "text-sm rounded-lg bg-bg-sunken/50 p-3 text-text-primary",
|
|
605
|
-
children:
|
|
623
|
+
children: U.notes
|
|
606
624
|
})] }),
|
|
607
|
-
/* @__PURE__ */
|
|
625
|
+
/* @__PURE__ */ E("div", {
|
|
608
626
|
className: "flex flex-col sm:flex-row sm:justify-end gap-3 pt-2",
|
|
609
|
-
children: [/* @__PURE__ */
|
|
627
|
+
children: [/* @__PURE__ */ T("button", {
|
|
610
628
|
type: "button",
|
|
611
|
-
onClick: () =>
|
|
629
|
+
onClick: () => K(!1),
|
|
612
630
|
className: "rounded-lg border border-border-subtle py-2 px-4 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
613
631
|
children: "Close"
|
|
614
|
-
}),
|
|
632
|
+
}), U.status !== "delivered" && U.status !== "cancelled" && /* @__PURE__ */ E("select", {
|
|
615
633
|
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) =>
|
|
634
|
+
value: U.status,
|
|
635
|
+
onChange: (e) => Q(U.id, e.target.value),
|
|
618
636
|
children: [
|
|
619
|
-
/* @__PURE__ */
|
|
637
|
+
/* @__PURE__ */ T("option", {
|
|
620
638
|
value: "pending",
|
|
621
639
|
children: "Pending"
|
|
622
640
|
}),
|
|
623
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ T("option", {
|
|
624
642
|
value: "confirmed",
|
|
625
643
|
children: "Confirmed"
|
|
626
644
|
}),
|
|
627
|
-
/* @__PURE__ */
|
|
645
|
+
/* @__PURE__ */ T("option", {
|
|
628
646
|
value: "preparing",
|
|
629
647
|
children: "Preparing"
|
|
630
648
|
}),
|
|
631
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ T("option", {
|
|
632
650
|
value: "ready",
|
|
633
651
|
children: "Ready"
|
|
634
652
|
}),
|
|
635
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ T("option", {
|
|
636
654
|
value: "out_for_delivery",
|
|
637
655
|
children: "Out for Delivery"
|
|
638
656
|
}),
|
|
639
|
-
/* @__PURE__ */
|
|
657
|
+
/* @__PURE__ */ T("option", {
|
|
640
658
|
value: "delivered",
|
|
641
659
|
children: "Delivered"
|
|
642
660
|
}),
|
|
643
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ T("option", {
|
|
644
662
|
value: "cancelled",
|
|
645
663
|
children: "Cancelled"
|
|
646
664
|
})
|
|
@@ -655,6 +673,6 @@ function D() {
|
|
|
655
673
|
});
|
|
656
674
|
}
|
|
657
675
|
//#endregion
|
|
658
|
-
export {
|
|
676
|
+
export { A as AdminOrdersPage };
|
|
659
677
|
|
|
660
678
|
//# sourceMappingURL=AdminOrdersPage.js.map
|