@burdenoff/microfe-atheletebridge 2026.625.1 → 2026.626.1

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