@burdenoff/microfe-atheletebridge 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.
Files changed (99) hide show
  1. package/dist/atheletebridge/components/EmptyState.js +18 -11
  2. package/dist/atheletebridge/components/EmptyState.js.map +1 -1
  3. package/dist/atheletebridge/components/InvestmentCard.js +7 -7
  4. package/dist/atheletebridge/components/InvestmentCard.js.map +1 -1
  5. package/dist/atheletebridge/components/MetricsCard.js +20 -14
  6. package/dist/atheletebridge/components/MetricsCard.js.map +1 -1
  7. package/dist/atheletebridge/components/PageLayout.js +30 -19
  8. package/dist/atheletebridge/components/PageLayout.js.map +1 -1
  9. package/dist/atheletebridge/pages/HomePage.js +210 -195
  10. package/dist/atheletebridge/pages/HomePage.js.map +1 -1
  11. package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js +90 -82
  12. package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js.map +1 -1
  13. package/dist/atheletebridge/pages/admin/AdminDashboard.js +76 -44
  14. package/dist/atheletebridge/pages/admin/AdminDashboard.js.map +1 -1
  15. package/dist/atheletebridge/pages/admin/AdminFinancialPage.js +63 -55
  16. package/dist/atheletebridge/pages/admin/AdminFinancialPage.js.map +1 -1
  17. package/dist/atheletebridge/pages/admin/AdminOrdersPage.js +244 -237
  18. package/dist/atheletebridge/pages/admin/AdminOrdersPage.js.map +1 -1
  19. package/dist/atheletebridge/pages/admin/AdminProfilePage.js +59 -57
  20. package/dist/atheletebridge/pages/admin/AdminProfilePage.js.map +1 -1
  21. package/dist/atheletebridge/pages/admin/AdminSettingsPage.js +110 -106
  22. package/dist/atheletebridge/pages/admin/AdminSettingsPage.js.map +1 -1
  23. package/dist/atheletebridge/pages/admin/CartManagementPage.js +166 -159
  24. package/dist/atheletebridge/pages/admin/CartManagementPage.js.map +1 -1
  25. package/dist/atheletebridge/pages/admin/UserManagementPage.js +310 -303
  26. package/dist/atheletebridge/pages/admin/UserManagementPage.js.map +1 -1
  27. package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js +86 -81
  28. package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  29. package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js +170 -166
  30. package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  31. package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js +141 -109
  32. package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  33. package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js +139 -134
  34. package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  35. package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js +109 -107
  36. package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  37. package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js +318 -318
  38. package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  39. package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js +262 -262
  40. package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js.map +1 -1
  41. package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js +170 -162
  42. package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js.map +1 -1
  43. package/dist/atheletebridge/pages/common/HelpSupportPage.js +292 -298
  44. package/dist/atheletebridge/pages/common/HelpSupportPage.js.map +1 -1
  45. package/dist/atheletebridge/pages/common/NotificationCenterPage.js +100 -91
  46. package/dist/atheletebridge/pages/common/NotificationCenterPage.js.map +1 -1
  47. package/dist/atheletebridge/pages/common/SettingsPage.js +742 -734
  48. package/dist/atheletebridge/pages/common/SettingsPage.js.map +1 -1
  49. package/dist/atheletebridge/pages/customer/BookingDetailsPage.js +365 -356
  50. package/dist/atheletebridge/pages/customer/BookingDetailsPage.js.map +1 -1
  51. package/dist/atheletebridge/pages/customer/CartDetailPage.js +277 -241
  52. package/dist/atheletebridge/pages/customer/CartDetailPage.js.map +1 -1
  53. package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js +261 -250
  54. package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js.map +1 -1
  55. package/dist/atheletebridge/pages/customer/CheckoutPage.js +93 -89
  56. package/dist/atheletebridge/pages/customer/CheckoutPage.js.map +1 -1
  57. package/dist/atheletebridge/pages/customer/CustomerDashboard.js +430 -387
  58. package/dist/atheletebridge/pages/customer/CustomerDashboard.js.map +1 -1
  59. package/dist/atheletebridge/pages/customer/CustomerProfilePage.js +526 -490
  60. package/dist/atheletebridge/pages/customer/CustomerProfilePage.js.map +1 -1
  61. package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js +524 -512
  62. package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js.map +1 -1
  63. package/dist/atheletebridge/pages/customer/FavoritesPage.js +84 -75
  64. package/dist/atheletebridge/pages/customer/FavoritesPage.js.map +1 -1
  65. package/dist/atheletebridge/pages/customer/OrderHistoryPage.js +117 -108
  66. package/dist/atheletebridge/pages/customer/OrderHistoryPage.js.map +1 -1
  67. package/dist/atheletebridge/pages/customer/OrderTrackingPage.js +66 -61
  68. package/dist/atheletebridge/pages/customer/OrderTrackingPage.js.map +1 -1
  69. package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js +81 -75
  70. package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js.map +1 -1
  71. package/dist/atheletebridge/pages/customer/ReviewsPage.js +81 -72
  72. package/dist/atheletebridge/pages/customer/ReviewsPage.js.map +1 -1
  73. package/dist/atheletebridge/pages/customer/SavedAddressesPage.js +63 -55
  74. package/dist/atheletebridge/pages/customer/SavedAddressesPage.js.map +1 -1
  75. package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js +93 -61
  76. package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js.map +1 -1
  77. package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js +90 -84
  78. package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  79. package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js +60 -55
  80. package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  81. package/dist/atheletebridge/pages/investor/InvestorDashboard.js +345 -311
  82. package/dist/atheletebridge/pages/investor/InvestorDashboard.js.map +1 -1
  83. package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js +38 -32
  84. package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  85. package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js +75 -67
  86. package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js.map +1 -1
  87. package/dist/atheletebridge/pages/investor/InvestorProfilePage.js +385 -381
  88. package/dist/atheletebridge/pages/investor/InvestorProfilePage.js.map +1 -1
  89. package/dist/atheletebridge/pages/worker/TaskDetailsPage.js +353 -319
  90. package/dist/atheletebridge/pages/worker/TaskDetailsPage.js.map +1 -1
  91. package/dist/atheletebridge/pages/worker/WorkerDashboard.js +353 -318
  92. package/dist/atheletebridge/pages/worker/WorkerDashboard.js.map +1 -1
  93. package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js +134 -128
  94. package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js.map +1 -1
  95. package/dist/atheletebridge/pages/worker/WorkerProfilePage.js +81 -77
  96. package/dist/atheletebridge/pages/worker/WorkerProfilePage.js.map +1 -1
  97. package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js +352 -342
  98. package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js.map +1 -1
  99. package/package.json +3 -3
@@ -7,8 +7,9 @@ import { formatCurrency as a } from "../../utils/formatters.js";
7
7
  import { useCallback as o, useEffect as s, useState as c } from "react";
8
8
  import { AlertTriangle as l, ArrowRight as u, CheckCircle2 as d, ChefHat as f, ClipboardList as p, CreditCard as m, Loader2 as h, MapPin as g, Navigation as _, Package as v, Phone as y, PlayCircle as b, ShoppingBag as x, Star as S, Truck as C } from "lucide-react";
9
9
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
10
+ import { EmphasisPanel as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
10
11
  //#region src/atheletebridge/pages/worker/WorkerOrdersPage.tsx
11
- var E = [
12
+ var O = [
12
13
  {
13
14
  id: "task-001",
14
15
  orderId: "ORD-2024-001",
@@ -124,11 +125,11 @@ var E = [
124
125
  }
125
126
  }
126
127
  ];
127
- function D(e) {
128
+ function k(e) {
128
129
  let t = /* @__PURE__ */ new Date(), n = new Date(e), r = Math.floor((n.getTime() - t.getTime()) / (1e3 * 60));
129
130
  return r < 0 ? "Overdue" : r < 60 ? `${r} min` : `${Math.floor(r / 60)}h ${r % 60}m`;
130
131
  }
131
- function O(e) {
132
+ function A(e) {
132
133
  switch (e) {
133
134
  case "delivery": return {
134
135
  icon: C,
@@ -152,7 +153,7 @@ function O(e) {
152
153
  };
153
154
  }
154
155
  }
155
- function k(e) {
156
+ function j(e) {
156
157
  switch (e) {
157
158
  case "urgent": return "bg-red-500/20 text-red-600 dark:text-red-400";
158
159
  case "high": return "bg-orange-500/20 text-orange-600 dark:text-orange-400";
@@ -161,35 +162,35 @@ function k(e) {
161
162
  default: return "bg-secondary text-secondary-foreground";
162
163
  }
163
164
  }
164
- var A = () => {
165
- let { navigateTo: f } = e(), [v, x] = c(!0), [C, A] = c([]), [j, M] = c(null), [N, P] = c({
165
+ var M = () => {
166
+ let { navigateTo: f } = e(), [v, x] = c(!0), [C, M] = c([]), [N, P] = c(null), [F, I] = c({
166
167
  status: "",
167
168
  type: "",
168
169
  priority: "",
169
170
  sortBy: "priority"
170
- }), [F, I] = c({
171
+ }), [L, R] = c({
171
172
  totalTasks: 0,
172
173
  completedToday: 0,
173
174
  pendingTasks: 0,
174
175
  averageTime: 0,
175
176
  earnings: 0,
176
177
  rating: 4.8
177
- }), [, L] = c(0);
178
+ }), [, z] = c(0);
178
179
  s(() => {
179
- let e = setInterval(() => L((e) => e + 1), 6e4);
180
+ let e = setInterval(() => z((e) => e + 1), 6e4);
180
181
  return () => clearInterval(e);
181
182
  }, []);
182
- let R = o(() => {
183
+ let B = o(() => {
183
184
  x(!0), setTimeout(() => {
184
- let e = [...E];
185
- N.status && (e = e.filter((e) => e.status === N.status)), N.type && (e = e.filter((e) => e.type === N.type)), N.priority && (e = e.filter((e) => e.priority === N.priority));
185
+ let e = [...O];
186
+ F.status && (e = e.filter((e) => e.status === F.status)), F.type && (e = e.filter((e) => e.type === F.type)), F.priority && (e = e.filter((e) => e.priority === F.priority));
186
187
  let t = {
187
188
  urgent: 0,
188
189
  high: 1,
189
190
  medium: 2,
190
191
  low: 3
191
192
  };
192
- switch (N.sortBy) {
193
+ switch (F.sortBy) {
193
194
  case "priority":
194
195
  e.sort((e, n) => (t[e.priority] ?? 4) - (t[n.priority] ?? 4));
195
196
  break;
@@ -200,7 +201,7 @@ var A = () => {
200
201
  e.sort((e, t) => (e.distance ?? 999) - (t.distance ?? 999));
201
202
  break;
202
203
  }
203
- A(e), M(E.find((e) => e.status === "in_progress") ?? null), I({
204
+ M(e), P(O.find((e) => e.status === "in_progress") ?? null), R({
204
205
  totalTasks: 45,
205
206
  completedToday: 12,
206
207
  pendingTasks: 3,
@@ -209,24 +210,24 @@ var A = () => {
209
210
  rating: 4.8
210
211
  }), x(!1);
211
212
  }, 600);
212
- }, [N]);
213
+ }, [F]);
213
214
  s(() => {
214
- R();
215
- }, [R]);
216
- let z = (e, t) => {
217
- P((n) => ({
215
+ B();
216
+ }, [B]);
217
+ let V = (e, t) => {
218
+ I((n) => ({
218
219
  ...n,
219
220
  [e]: t
220
221
  }));
221
- }, B = (e) => {
222
- let t = E.find((t) => t.id === e);
223
- t && (t.status = "in_progress", M(t), R());
224
- }, V = (e) => {
225
- let t = E.find((t) => t.id === e);
226
- t && (t.status = "completed"), M(null), R(), alert("Task completed successfully");
227
222
  }, H = (e) => {
228
- window.location.href = `tel:${e.replace(/\s/g, "")}`;
223
+ let t = O.find((t) => t.id === e);
224
+ t && (t.status = "in_progress", P(t), B());
229
225
  }, U = (e) => {
226
+ let t = O.find((t) => t.id === e);
227
+ t && (t.status = "completed"), P(null), B(), alert("Task completed successfully");
228
+ }, W = (e) => {
229
+ window.location.href = `tel:${e.replace(/\s/g, "")}`;
230
+ }, G = (e) => {
230
231
  if (e.address) {
231
232
  let t = encodeURIComponent(`${e.address.addressLine1}, ${e.address.city}`);
232
233
  window.open(`https://maps.google.com?q=${t}`, "_blank");
@@ -251,72 +252,76 @@ var A = () => {
251
252
  children: /* @__PURE__ */ T("div", {
252
253
  className: "space-y-6",
253
254
  children: [
254
- /* @__PURE__ */ T("div", {
255
- className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",
256
- children: [
257
- /* @__PURE__ */ T("div", {
258
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
259
- children: [/* @__PURE__ */ w("p", {
260
- className: "text-xs text-text-secondary",
261
- children: "Today's Tasks"
262
- }), /* @__PURE__ */ w("p", {
263
- className: "text-2xl font-bold text-text-primary",
264
- children: F.totalTasks
265
- })]
266
- }),
267
- /* @__PURE__ */ T("div", {
268
- className: "rounded-lg border border-green-500/20 bg-green-500/5 p-4 shadow-sm",
269
- children: [/* @__PURE__ */ w("p", {
270
- className: "text-xs text-green-600 dark:text-green-400",
271
- children: "Completed"
272
- }), /* @__PURE__ */ w("p", {
273
- className: "text-2xl font-bold text-green-600 dark:text-green-400",
274
- children: F.completedToday
275
- })]
276
- }),
277
- /* @__PURE__ */ T("div", {
278
- className: "rounded-lg border border-yellow-500/20 bg-yellow-500/5 p-4 shadow-sm",
279
- children: [/* @__PURE__ */ w("p", {
280
- className: "text-xs text-yellow-600 dark:text-yellow-400",
281
- children: "Pending"
282
- }), /* @__PURE__ */ w("p", {
283
- className: "text-2xl font-bold text-yellow-600 dark:text-yellow-400",
284
- children: F.pendingTasks
285
- })]
286
- }),
287
- /* @__PURE__ */ T("div", {
288
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
289
- children: [/* @__PURE__ */ w("p", {
290
- className: "text-xs text-text-secondary",
291
- children: "Avg Time"
292
- }), /* @__PURE__ */ T("p", {
293
- className: "text-2xl font-bold text-text-primary",
294
- children: [F.averageTime, " min"]
295
- })]
296
- }),
297
- /* @__PURE__ */ T("div", {
298
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
299
- children: [/* @__PURE__ */ w("p", {
300
- className: "text-xs text-text-secondary",
301
- children: "Today's Earnings"
302
- }), /* @__PURE__ */ w("p", {
303
- className: "text-2xl font-bold text-text-primary",
304
- children: a(F.earnings, { minimumFractionDigits: 0 })
305
- })]
306
- }),
307
- /* @__PURE__ */ T("div", {
308
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
309
- children: [/* @__PURE__ */ w("p", {
310
- className: "text-xs text-text-secondary",
311
- children: "Rating"
312
- }), /* @__PURE__ */ T("p", {
313
- className: "text-2xl font-bold text-text-primary flex items-center gap-1",
314
- children: [/* @__PURE__ */ w(S, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" }), F.rating]
315
- })]
316
- })
317
- ]
255
+ /* @__PURE__ */ w(D, { children: "The orders and tasks assigned to you today. Pick up your current task, work through what you have left, and watch your completion count, earnings and rating climb as you go. This is where you do the work." }),
256
+ /* @__PURE__ */ w(E, {
257
+ className: "p-5",
258
+ children: /* @__PURE__ */ T("div", {
259
+ className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",
260
+ children: [
261
+ /* @__PURE__ */ T("div", {
262
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
263
+ children: [/* @__PURE__ */ w("p", {
264
+ className: "text-xs text-text-secondary",
265
+ children: "Today's Tasks"
266
+ }), /* @__PURE__ */ w("p", {
267
+ className: "text-2xl font-bold text-text-primary",
268
+ children: L.totalTasks
269
+ })]
270
+ }),
271
+ /* @__PURE__ */ T("div", {
272
+ className: "rounded-lg border border-green-500/20 bg-green-500/5 p-4 shadow-sm",
273
+ children: [/* @__PURE__ */ w("p", {
274
+ className: "text-xs text-green-600 dark:text-green-400",
275
+ children: "Completed"
276
+ }), /* @__PURE__ */ w("p", {
277
+ className: "text-2xl font-bold text-green-600 dark:text-green-400",
278
+ children: L.completedToday
279
+ })]
280
+ }),
281
+ /* @__PURE__ */ T("div", {
282
+ className: "rounded-lg border border-yellow-500/20 bg-yellow-500/5 p-4 shadow-sm",
283
+ children: [/* @__PURE__ */ w("p", {
284
+ className: "text-xs text-yellow-600 dark:text-yellow-400",
285
+ children: "Pending"
286
+ }), /* @__PURE__ */ w("p", {
287
+ className: "text-2xl font-bold text-yellow-600 dark:text-yellow-400",
288
+ children: L.pendingTasks
289
+ })]
290
+ }),
291
+ /* @__PURE__ */ T("div", {
292
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
293
+ children: [/* @__PURE__ */ w("p", {
294
+ className: "text-xs text-text-secondary",
295
+ children: "Avg Time"
296
+ }), /* @__PURE__ */ T("p", {
297
+ className: "text-2xl font-bold text-text-primary",
298
+ children: [L.averageTime, " min"]
299
+ })]
300
+ }),
301
+ /* @__PURE__ */ T("div", {
302
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
303
+ children: [/* @__PURE__ */ w("p", {
304
+ className: "text-xs text-text-secondary",
305
+ children: "Today's Earnings"
306
+ }), /* @__PURE__ */ w("p", {
307
+ className: "text-2xl font-bold text-text-primary",
308
+ children: a(L.earnings, { minimumFractionDigits: 0 })
309
+ })]
310
+ }),
311
+ /* @__PURE__ */ T("div", {
312
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
313
+ children: [/* @__PURE__ */ w("p", {
314
+ className: "text-xs text-text-secondary",
315
+ children: "Rating"
316
+ }), /* @__PURE__ */ T("p", {
317
+ className: "text-2xl font-bold text-text-primary flex items-center gap-1",
318
+ children: [/* @__PURE__ */ w(S, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" }), L.rating]
319
+ })]
320
+ })
321
+ ]
322
+ })
318
323
  }),
319
- j && /* @__PURE__ */ T("div", {
324
+ N && /* @__PURE__ */ T("div", {
320
325
  className: "rounded-lg border-2 border-blue-500/30 bg-blue-500/5 p-5",
321
326
  children: [/* @__PURE__ */ w("h2", {
322
327
  className: "text-base font-semibold text-blue-600 dark:text-blue-400 mb-4",
@@ -330,28 +335,28 @@ var A = () => {
330
335
  children: [
331
336
  /* @__PURE__ */ T("h3", {
332
337
  className: "text-sm font-semibold text-text-primary",
333
- children: ["Order #", j.orderId]
338
+ children: ["Order #", N.orderId]
334
339
  }),
335
340
  (() => {
336
- let e = O(j.type), n = e.icon;
341
+ let e = A(N.type), n = e.icon;
337
342
  return /* @__PURE__ */ T("span", {
338
343
  className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium", e.style),
339
344
  children: [/* @__PURE__ */ w(n, { className: "h-3 w-3" }), e.label]
340
345
  });
341
346
  })(),
342
347
  /* @__PURE__ */ w("span", {
343
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", k(j.priority)),
344
- children: j.priority
348
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", j(N.priority)),
349
+ children: N.priority
345
350
  })
346
351
  ]
347
352
  }), /* @__PURE__ */ w("p", {
348
353
  className: "text-xs text-text-secondary mt-1",
349
- children: j.cartName
354
+ children: N.cartName
350
355
  })] }), /* @__PURE__ */ T("div", {
351
356
  className: "text-right",
352
357
  children: [/* @__PURE__ */ w("p", {
353
358
  className: "text-xl font-bold text-blue-600 dark:text-blue-400",
354
- children: D(j.estimatedTime)
359
+ children: k(N.estimatedTime)
355
360
  }), /* @__PURE__ */ w("p", {
356
361
  className: "text-xs text-text-secondary",
357
362
  children: "Time remaining"
@@ -369,14 +374,14 @@ var A = () => {
369
374
  }),
370
375
  /* @__PURE__ */ w("p", {
371
376
  className: "text-sm font-medium text-text-primary",
372
- children: j.customerName
377
+ children: N.customerName
373
378
  }),
374
- j.address && /* @__PURE__ */ T("p", {
379
+ N.address && /* @__PURE__ */ T("p", {
375
380
  className: "text-xs text-text-secondary mt-1",
376
381
  children: [
377
- j.address.addressLine1,
382
+ N.address.addressLine1,
378
383
  ", ",
379
- j.address.city
384
+ N.address.city
380
385
  ]
381
386
  })
382
387
  ] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
@@ -384,7 +389,7 @@ var A = () => {
384
389
  children: "Items"
385
390
  }), /* @__PURE__ */ w("div", {
386
391
  className: "space-y-0.5",
387
- children: j.items.map((e, t) => /* @__PURE__ */ T("p", {
392
+ children: N.items.map((e, t) => /* @__PURE__ */ T("p", {
388
393
  className: "text-xs text-text-primary",
389
394
  children: [
390
395
  e.quantity,
@@ -394,14 +399,14 @@ var A = () => {
394
399
  }, t))
395
400
  })] })]
396
401
  }),
397
- j.specialInstructions && /* @__PURE__ */ T("div", {
402
+ N.specialInstructions && /* @__PURE__ */ T("div", {
398
403
  className: "mt-3 p-3 rounded-md bg-yellow-500/10 border border-yellow-500/20",
399
404
  children: [/* @__PURE__ */ T("p", {
400
405
  className: "text-xs font-medium text-yellow-600 dark:text-yellow-400 flex items-center gap-1",
401
406
  children: [/* @__PURE__ */ w(l, { className: "h-3 w-3" }), "Special Instructions:"]
402
407
  }), /* @__PURE__ */ w("p", {
403
408
  className: "text-xs text-yellow-700 dark:text-yellow-300 mt-0.5",
404
- children: j.specialInstructions
409
+ children: N.specialInstructions
405
410
  })]
406
411
  }),
407
412
  /* @__PURE__ */ T("div", {
@@ -409,19 +414,19 @@ var A = () => {
409
414
  children: [
410
415
  /* @__PURE__ */ T("button", {
411
416
  type: "button",
412
- onClick: () => H(j.customerPhone),
417
+ onClick: () => W(N.customerPhone),
413
418
  className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
414
419
  children: [/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5" }), "Call Customer"]
415
420
  }),
416
- j.type === "delivery" && j.address && /* @__PURE__ */ T("button", {
421
+ N.type === "delivery" && N.address && /* @__PURE__ */ T("button", {
417
422
  type: "button",
418
- onClick: () => U(j),
423
+ onClick: () => G(N),
419
424
  className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
420
425
  children: [/* @__PURE__ */ w(_, { className: "h-3.5 w-3.5" }), "Navigate"]
421
426
  }),
422
427
  /* @__PURE__ */ T("button", {
423
428
  type: "button",
424
- onClick: () => V(j.id),
429
+ onClick: () => U(N.id),
425
430
  className: "ml-auto inline-flex items-center gap-1.5 rounded-md bg-green-500/10 px-3 py-2 text-xs font-medium text-green-600 dark:text-green-400 hover:bg-green-500/20 transition-colors",
426
431
  children: [/* @__PURE__ */ w(d, { className: "h-3.5 w-3.5" }), "Complete Task"]
427
432
  })
@@ -437,8 +442,8 @@ var A = () => {
437
442
  className: "grid grid-cols-1 md:grid-cols-4 gap-3",
438
443
  children: [
439
444
  /* @__PURE__ */ T("select", {
440
- value: N.status,
441
- onChange: (e) => z("status", e.target.value),
445
+ value: F.status,
446
+ onChange: (e) => V("status", e.target.value),
442
447
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-blue-500/40",
443
448
  children: [
444
449
  /* @__PURE__ */ w("option", {
@@ -460,8 +465,8 @@ var A = () => {
460
465
  ]
461
466
  }),
462
467
  /* @__PURE__ */ T("select", {
463
- value: N.type,
464
- onChange: (e) => z("type", e.target.value),
468
+ value: F.type,
469
+ onChange: (e) => V("type", e.target.value),
465
470
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-blue-500/40",
466
471
  children: [
467
472
  /* @__PURE__ */ w("option", {
@@ -483,8 +488,8 @@ var A = () => {
483
488
  ]
484
489
  }),
485
490
  /* @__PURE__ */ T("select", {
486
- value: N.priority,
487
- onChange: (e) => z("priority", e.target.value),
491
+ value: F.priority,
492
+ onChange: (e) => V("priority", e.target.value),
488
493
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-blue-500/40",
489
494
  children: [
490
495
  /* @__PURE__ */ w("option", {
@@ -510,8 +515,8 @@ var A = () => {
510
515
  ]
511
516
  }),
512
517
  /* @__PURE__ */ T("select", {
513
- value: N.sortBy,
514
- onChange: (e) => z("sortBy", e.target.value),
518
+ value: F.sortBy,
519
+ onChange: (e) => V("sortBy", e.target.value),
515
520
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-blue-500/40",
516
521
  children: [
517
522
  /* @__PURE__ */ w("option", {
@@ -532,13 +537,14 @@ var A = () => {
532
537
  })
533
538
  }),
534
539
  C.length === 0 ? /* @__PURE__ */ w(i, {
540
+ illustration: "empty-data",
535
541
  icon: /* @__PURE__ */ w(p, { className: "h-12 w-12" }),
536
542
  title: "No tasks available",
537
543
  description: "Check back later for new tasks"
538
544
  }) : /* @__PURE__ */ w("div", {
539
545
  className: "space-y-3",
540
546
  children: C.map((e) => {
541
- let n = O(e.type), i = n.icon;
547
+ let n = A(e.type), i = n.icon;
542
548
  return /* @__PURE__ */ T("div", {
543
549
  className: "rounded-lg border border-border-subtle bg-bg-surface p-5 shadow-sm hover:shadow-md transition-shadow",
544
550
  children: [
@@ -556,7 +562,7 @@ var A = () => {
556
562
  children: [/* @__PURE__ */ w(i, { className: "h-3 w-3" }), n.label]
557
563
  }),
558
564
  /* @__PURE__ */ w("span", {
559
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", k(e.priority)),
565
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", j(e.priority)),
560
566
  children: e.priority
561
567
  })
562
568
  ]
@@ -607,8 +613,8 @@ var A = () => {
607
613
  className: "text-xs text-text-secondary",
608
614
  children: "Time"
609
615
  }), /* @__PURE__ */ w("p", {
610
- className: t("text-xs font-medium", D(e.estimatedTime) === "Overdue" ? "text-red-600 dark:text-red-400" : "text-text-primary"),
611
- children: D(e.estimatedTime)
616
+ className: t("text-xs font-medium", k(e.estimatedTime) === "Overdue" ? "text-red-600 dark:text-red-400" : "text-text-primary"),
617
+ children: k(e.estimatedTime)
612
618
  })] })
613
619
  ]
614
620
  }),
@@ -617,14 +623,14 @@ var A = () => {
617
623
  children: [
618
624
  /* @__PURE__ */ T("button", {
619
625
  type: "button",
620
- onClick: () => B(e.id),
621
- disabled: j !== null,
622
- className: t("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", j === null ? "bg-blue-500/10 text-blue-600 dark:text-blue-400 hover:bg-blue-500/20" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
623
- children: [/* @__PURE__ */ w(b, { className: "h-3.5 w-3.5" }), j ? "Complete current first" : "Start Task"]
626
+ onClick: () => H(e.id),
627
+ disabled: N !== null,
628
+ className: t("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", N === null ? "bg-blue-500/10 text-blue-600 dark:text-blue-400 hover:bg-blue-500/20" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
629
+ children: [/* @__PURE__ */ w(b, { className: "h-3.5 w-3.5" }), N ? "Complete current first" : "Start Task"]
624
630
  }),
625
631
  /* @__PURE__ */ T("button", {
626
632
  type: "button",
627
- onClick: () => H(e.customerPhone),
633
+ onClick: () => W(e.customerPhone),
628
634
  className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
629
635
  children: [/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5" }), "Call"]
630
636
  }),
@@ -638,11 +644,11 @@ var A = () => {
638
644
  })
639
645
  ]
640
646
  }),
641
- e.status === "in_progress" && e.id !== j?.id && /* @__PURE__ */ T("div", {
647
+ e.status === "in_progress" && e.id !== N?.id && /* @__PURE__ */ T("div", {
642
648
  className: "flex items-center gap-2 border-t border-border-subtle pt-3",
643
649
  children: [/* @__PURE__ */ T("button", {
644
650
  type: "button",
645
- onClick: () => V(e.id),
651
+ onClick: () => U(e.id),
646
652
  className: "inline-flex items-center gap-1.5 rounded-md bg-green-500/10 px-3 py-1.5 text-xs font-medium text-green-600 dark:text-green-400 hover:bg-green-500/20 transition-colors",
647
653
  children: [/* @__PURE__ */ w(d, { className: "h-3.5 w-3.5" }), "Complete"]
648
654
  }), /* @__PURE__ */ T("button", {
@@ -670,6 +676,6 @@ var A = () => {
670
676
  });
671
677
  };
672
678
  //#endregion
673
- export { A as WorkerOrdersPage };
679
+ export { M as WorkerOrdersPage };
674
680
 
675
681
  //# sourceMappingURL=WorkerOrdersPage.js.map