@burdenoff/microfe-labsofscience 2026.624.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 (103) hide show
  1. package/dist/labsofscience/components/EmptyState.js +18 -11
  2. package/dist/labsofscience/components/EmptyState.js.map +1 -1
  3. package/dist/labsofscience/components/InvestmentCard.js +26 -24
  4. package/dist/labsofscience/components/InvestmentCard.js.map +1 -1
  5. package/dist/labsofscience/components/MetricsCard.js +19 -13
  6. package/dist/labsofscience/components/MetricsCard.js.map +1 -1
  7. package/dist/labsofscience/components/PageLayout.js +23 -15
  8. package/dist/labsofscience/components/PageLayout.js.map +1 -1
  9. package/dist/labsofscience/components/RatingDisplay.js +1 -1
  10. package/dist/labsofscience/components/RatingDisplay.js.map +1 -1
  11. package/dist/labsofscience/components/StatusBadge.js +34 -15
  12. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  13. package/dist/labsofscience/pages/HomePage.js +242 -223
  14. package/dist/labsofscience/pages/HomePage.js.map +1 -1
  15. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +107 -101
  16. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
  17. package/dist/labsofscience/pages/admin/AdminDashboard.js +118 -85
  18. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
  19. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +51 -45
  20. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
  21. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +245 -240
  22. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
  23. package/dist/labsofscience/pages/admin/AdminProfilePage.js +131 -129
  24. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
  25. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +493 -491
  26. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
  27. package/dist/labsofscience/pages/admin/CartManagementPage.js +163 -158
  28. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
  29. package/dist/labsofscience/pages/admin/UserManagementPage.js +307 -302
  30. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
  31. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +89 -84
  32. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  33. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +187 -182
  34. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  35. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +119 -88
  36. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  37. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +149 -144
  38. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  39. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +151 -146
  40. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  41. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +344 -346
  42. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  43. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +269 -271
  44. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
  45. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +293 -287
  46. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
  47. package/dist/labsofscience/pages/common/HelpSupportPage.js +344 -345
  48. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
  49. package/dist/labsofscience/pages/common/NotificationCenterPage.js +94 -87
  50. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
  51. package/dist/labsofscience/pages/common/SettingsPage.js +748 -739
  52. package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
  53. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +400 -356
  54. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
  55. package/dist/labsofscience/pages/customer/CartDetailPage.js +281 -248
  56. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
  57. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +178 -166
  58. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
  59. package/dist/labsofscience/pages/customer/CheckoutPage.js +236 -238
  60. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
  61. package/dist/labsofscience/pages/customer/CustomerDashboard.js +425 -390
  62. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
  63. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
  64. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
  65. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +522 -512
  66. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
  67. package/dist/labsofscience/pages/customer/FavoritesPage.js +73 -66
  68. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
  69. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +74 -67
  70. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
  71. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +311 -274
  72. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
  73. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +100 -93
  74. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
  75. package/dist/labsofscience/pages/customer/ReviewsPage.js +96 -89
  76. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
  77. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +85 -78
  78. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
  79. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +135 -103
  80. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
  81. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +267 -260
  82. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  83. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +97 -91
  84. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  85. package/dist/labsofscience/pages/investor/InvestorDashboard.js +346 -310
  86. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
  87. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +118 -111
  88. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  89. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +75 -69
  90. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
  91. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +434 -429
  92. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
  93. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +364 -323
  94. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
  95. package/dist/labsofscience/pages/worker/WorkerDashboard.js +132 -101
  96. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
  97. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +114 -108
  98. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
  99. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +124 -119
  100. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
  101. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +354 -344
  102. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
  103. package/package.json +3 -3
@@ -6,17 +6,18 @@ import { formatCurrency as s } from "../../utils/formatters.js";
6
6
  import { useState as c } from "react";
7
7
  import { Boxes as l, CalendarDays as u, CheckCircle2 as d, ChefHat as f, ChevronRight as p, ClipboardList as m, Clock as h, Loader2 as g, MapPin as _, Package as v, Pause as y, Play as b, Sparkles as x, Star as S, Timer as C, TrendingUp as w, Truck as T, User as E, Zap as D } from "lucide-react";
8
8
  import { jsx as O, jsxs as k } from "react/jsx-runtime";
9
+ import { EmphasisPanel as A, NextSteps as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
9
10
  //#region src/labsofscience/pages/worker/WorkerDashboard.tsx
10
- var A = {
11
- high: "bg-red-500/20 text-red-600 dark:text-red-400",
12
- medium: "bg-yellow-500/20 text-yellow-600 dark:text-yellow-400",
13
- low: "bg-green-500/20 text-green-600 dark:text-green-400"
14
- }, j = {
11
+ var N = {
12
+ high: "bg-status-error-bg-subtle text-status-error-text",
13
+ medium: "bg-status-warning-bg-subtle text-status-warning-text",
14
+ low: "bg-status-success-bg-subtle text-status-success-text"
15
+ }, P = {
15
16
  pending: "bg-secondary text-secondary-foreground",
16
- in_progress: "bg-blue-500/20 text-blue-600 dark:text-blue-400",
17
- completed: "bg-green-500/20 text-green-600 dark:text-green-400"
17
+ in_progress: "bg-status-info-bg-subtle text-status-info-text",
18
+ completed: "bg-status-success-bg-subtle text-status-success-text"
18
19
  };
19
- function M(e) {
20
+ function F(e) {
20
21
  switch (e) {
21
22
  case "delivery": return T;
22
23
  case "preparation": return f;
@@ -25,56 +26,56 @@ function M(e) {
25
26
  default: return m;
26
27
  }
27
28
  }
28
- var N = {
29
+ var I = {
29
30
  high: 3,
30
31
  medium: 2,
31
32
  low: 1
32
- }, P = () => {
33
- let { navigateTo: l, currentUser: f } = e(), m = f?.id || "", { data: x = [], isLoading: T } = o(m), { data: P, isLoading: F } = a(m), I = r(), L = i(), [R, z] = c(null), [B, V] = c(!1), [H, U] = c(null), W = async (e, t) => {
33
+ }, L = () => {
34
+ let { navigateTo: l, currentUser: f } = e(), m = f?.id || "", { data: T = [], isLoading: L } = o(m), { data: R, isLoading: z } = a(m), B = r(), V = i(), [H, U] = c(null), [W, G] = c(!1), [K, q] = c(null), J = async (e, t) => {
34
35
  let n = "";
35
36
  switch (t) {
36
37
  case "start":
37
- n = "IN_PROGRESS", z(e);
38
+ n = "IN_PROGRESS", U(e);
38
39
  break;
39
40
  case "complete":
40
- n = "COMPLETED", R === e && z(null);
41
+ n = "COMPLETED", H === e && U(null);
41
42
  break;
42
43
  case "pause":
43
- n = "PENDING", R === e && z(null);
44
+ n = "PENDING", H === e && U(null);
44
45
  break;
45
46
  }
46
47
  try {
47
- await I.mutateAsync({
48
+ await B.mutateAsync({
48
49
  taskId: e,
49
50
  status: n
50
51
  });
51
52
  } catch (e) {
52
53
  console.error("Failed to update task status:", e), alert("Failed to update task status. Please try again.");
53
54
  }
54
- }, G = async () => {
55
- let e = B ? "CLOCK_OUT" : "CLOCK_IN";
55
+ }, Y = async () => {
56
+ let e = W ? "CLOCK_OUT" : "CLOCK_IN";
56
57
  try {
57
- let t = await L.mutateAsync({
58
+ let t = await V.mutateAsync({
58
59
  workerId: m,
59
60
  action: e
60
61
  });
61
62
  if (t.success) {
62
- if (B) V(!1), U(null);
63
+ if (W) G(!1), q(null);
63
64
  else {
64
65
  let e = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-IN", {
65
66
  hour: "2-digit",
66
67
  minute: "2-digit",
67
68
  hour12: !0
68
69
  });
69
- V(!0), U(e);
70
+ G(!0), q(e);
70
71
  }
71
- alert(t.message || `${B ? "Clocked out" : "Clocked in"} successfully`);
72
+ alert(t.message || `${W ? "Clocked out" : "Clocked in"} successfully`);
72
73
  }
73
74
  } catch (e) {
74
75
  console.error("Failed to clock in/out:", e), alert("Action failed. Please try again.");
75
76
  }
76
77
  };
77
- if (T || F) return /* @__PURE__ */ O(n, {
78
+ if (L || z) return /* @__PURE__ */ O(n, {
78
79
  title: "Dashboard",
79
80
  description: "Your work overview for today",
80
81
  children: /* @__PURE__ */ O("div", {
@@ -88,7 +89,7 @@ var N = {
88
89
  })
89
90
  })
90
91
  });
91
- let K = R ? x.find((e) => e.id === R) : null, q = x.filter((e) => e.status !== "completed").sort((e, t) => (N[t.priority] ?? 0) - (N[e.priority] ?? 0)), J = x.filter((e) => e.status === "completed");
92
+ let X = H ? T.find((e) => e.id === H) : null, Z = T.filter((e) => e.status !== "completed").sort((e, t) => (I[t.priority] ?? 0) - (I[e.priority] ?? 0)), Q = T.filter((e) => e.status === "completed");
92
93
  return /* @__PURE__ */ O(n, {
93
94
  title: "Dashboard",
94
95
  description: "Manage your tasks and assignments",
@@ -101,6 +102,36 @@ var N = {
101
102
  children: /* @__PURE__ */ k("div", {
102
103
  className: "space-y-6",
103
104
  children: [
105
+ /* @__PURE__ */ O(M, {
106
+ icon: /* @__PURE__ */ O(x, { className: "h-4 w-4" }),
107
+ children: "Your shift cockpit. Clock in, see today's completed, in-progress and pending tasks with your hours and rating, then pick up your next delivery or service job — this is where you run your working day."
108
+ }),
109
+ /* @__PURE__ */ O(j, {
110
+ storageKey: "labsofscience-worker-dashboard",
111
+ steps: [
112
+ {
113
+ id: "clock",
114
+ label: W ? "Clock out when your shift ends" : "Clock in to start your shift",
115
+ description: "Your hours and availability are tracked from here.",
116
+ icon: /* @__PURE__ */ O(C, { className: "h-4 w-4" }),
117
+ onClick: Y
118
+ },
119
+ {
120
+ id: "orders",
121
+ label: "Pick up your assigned orders",
122
+ description: "View and accept the jobs waiting for you.",
123
+ icon: /* @__PURE__ */ O(v, { className: "h-4 w-4" }),
124
+ onClick: () => l("/worker/orders")
125
+ },
126
+ {
127
+ id: "schedule",
128
+ label: "Check your schedule",
129
+ description: "Plan around upcoming shifts and bookings.",
130
+ icon: /* @__PURE__ */ O(u, { className: "h-4 w-4" }),
131
+ onClick: () => l("/worker/schedule")
132
+ }
133
+ ]
134
+ }),
104
135
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
105
136
  className: "text-base font-semibold text-text-primary mb-3",
106
137
  children: "Quick Actions"
@@ -110,60 +141,60 @@ var N = {
110
141
  /* @__PURE__ */ k("button", {
111
142
  type: "button",
112
143
  onClick: () => l("/worker/orders"),
113
- className: "flex items-center justify-center gap-2 rounded-lg border border-border-subtle bg-bg-surface px-4 py-3 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
144
+ className: "flex items-center justify-center gap-2 rounded-lg border border-border-seam bg-bg-surface px-4 py-3 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
114
145
  children: [/* @__PURE__ */ O(v, { className: "h-4 w-4" }), "My Orders"]
115
146
  }),
116
147
  /* @__PURE__ */ k("button", {
117
148
  type: "button",
118
149
  onClick: () => l("/worker/schedule"),
119
- className: "flex items-center justify-center gap-2 rounded-lg border border-border-subtle bg-bg-surface px-4 py-3 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
150
+ className: "flex items-center justify-center gap-2 rounded-lg border border-border-seam bg-bg-surface px-4 py-3 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
120
151
  children: [/* @__PURE__ */ O(u, { className: "h-4 w-4" }), "Schedule"]
121
152
  }),
122
153
  /* @__PURE__ */ k("button", {
123
154
  type: "button",
124
155
  onClick: () => l("/worker/profile"),
125
- className: "flex items-center justify-center gap-2 rounded-lg border border-border-subtle bg-bg-surface px-4 py-3 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
156
+ className: "flex items-center justify-center gap-2 rounded-lg border border-border-seam bg-bg-surface px-4 py-3 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
126
157
  children: [/* @__PURE__ */ O(E, { className: "h-4 w-4" }), "Profile"]
127
158
  }),
128
159
  /* @__PURE__ */ k("button", {
129
160
  type: "button",
130
- onClick: G,
131
- className: t("flex items-center justify-center gap-2 rounded-lg px-4 py-3 text-sm font-medium transition-colors", B ? "bg-red-500/10 text-red-600 dark:text-red-400 border border-red-500/30 hover:bg-red-500/20" : "bg-green-500/10 text-green-600 dark:text-green-400 border border-green-500/30 hover:bg-green-500/20"),
132
- children: [/* @__PURE__ */ O(C, { className: "h-4 w-4" }), B ? "Clock Out" : "Clock In"]
161
+ onClick: Y,
162
+ className: t("flex items-center justify-center gap-2 rounded-lg px-4 py-3 text-sm font-medium transition-colors", W ? "bg-status-error-bg-subtle text-status-error-text border border-status-error-border hover:bg-status-error-bg-subtle" : "bg-status-success-bg-subtle text-status-success-text border border-status-success-border hover:bg-status-success-bg-subtle"),
163
+ children: [/* @__PURE__ */ O(C, { className: "h-4 w-4" }), W ? "Clock Out" : "Clock In"]
133
164
  })
134
165
  ]
135
166
  })] }),
136
- P && /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("div", {
167
+ R && /* @__PURE__ */ k(A, { children: [/* @__PURE__ */ k("div", {
137
168
  className: "flex items-center justify-between mb-3",
138
169
  children: [/* @__PURE__ */ O("h2", {
139
170
  className: "text-base font-semibold text-text-primary",
140
171
  children: "Today's Overview"
141
- }), B && H && /* @__PURE__ */ k("div", {
142
- className: "flex items-center gap-2 rounded-lg bg-green-500/10 border border-green-500/20 px-3 py-1.5",
172
+ }), W && K && /* @__PURE__ */ k("div", {
173
+ className: "flex items-center gap-2 rounded-lg bg-status-success-bg-subtle border border-status-success-border px-3 py-1.5",
143
174
  children: [/* @__PURE__ */ k("span", {
144
175
  className: "relative flex h-2 w-2",
145
- children: [/* @__PURE__ */ O("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75" }), /* @__PURE__ */ O("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-green-500" })]
176
+ children: [/* @__PURE__ */ O("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-status-success-bg opacity-75" }), /* @__PURE__ */ O("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-status-success-bg" })]
146
177
  }), /* @__PURE__ */ k("span", {
147
- className: "text-xs font-medium text-green-600 dark:text-green-400",
148
- children: ["Working since ", H]
178
+ className: "text-xs font-medium text-status-success-text",
179
+ children: ["Working since ", K]
149
180
  })]
150
181
  })]
151
182
  }), /* @__PURE__ */ k("div", {
152
183
  className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",
153
184
  children: [
154
185
  /* @__PURE__ */ k("div", {
155
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
186
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
156
187
  children: [
157
188
  /* @__PURE__ */ O("div", {
158
189
  className: "flex items-center gap-2 mb-2",
159
190
  children: /* @__PURE__ */ O("div", {
160
- className: "inline-flex rounded-md p-1.5 bg-green-500/10 text-green-600 dark:text-green-400",
191
+ className: "inline-flex rounded-md p-1.5 bg-status-success-bg-subtle text-status-success-text",
161
192
  children: /* @__PURE__ */ O(d, { className: "h-4 w-4" })
162
193
  })
163
194
  }),
164
195
  /* @__PURE__ */ O("p", {
165
- className: "text-2xl font-bold text-green-600 dark:text-green-400",
166
- children: P.tasksCompleted
196
+ className: "text-2xl font-bold text-status-success-text",
197
+ children: R.tasksCompleted
167
198
  }),
168
199
  /* @__PURE__ */ O("p", {
169
200
  className: "text-xs text-text-secondary",
@@ -172,18 +203,18 @@ var N = {
172
203
  ]
173
204
  }),
174
205
  /* @__PURE__ */ k("div", {
175
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
206
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
176
207
  children: [
177
208
  /* @__PURE__ */ O("div", {
178
209
  className: "flex items-center gap-2 mb-2",
179
210
  children: /* @__PURE__ */ O("div", {
180
- className: "inline-flex rounded-md p-1.5 bg-blue-500/10 text-blue-600 dark:text-blue-400",
211
+ className: "inline-flex rounded-md p-1.5 bg-status-info-bg-subtle text-status-info-text",
181
212
  children: /* @__PURE__ */ O(b, { className: "h-4 w-4" })
182
213
  })
183
214
  }),
184
215
  /* @__PURE__ */ O("p", {
185
- className: "text-2xl font-bold text-blue-600 dark:text-blue-400",
186
- children: P.tasksInProgress
216
+ className: "text-2xl font-bold text-status-info-text",
217
+ children: R.tasksInProgress
187
218
  }),
188
219
  /* @__PURE__ */ O("p", {
189
220
  className: "text-xs text-text-secondary",
@@ -192,18 +223,18 @@ var N = {
192
223
  ]
193
224
  }),
194
225
  /* @__PURE__ */ k("div", {
195
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
226
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
196
227
  children: [
197
228
  /* @__PURE__ */ O("div", {
198
229
  className: "flex items-center gap-2 mb-2",
199
230
  children: /* @__PURE__ */ O("div", {
200
- className: "inline-flex rounded-md p-1.5 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",
231
+ className: "inline-flex rounded-md p-1.5 bg-status-warning-bg-subtle text-status-warning-text",
201
232
  children: /* @__PURE__ */ O(h, { className: "h-4 w-4" })
202
233
  })
203
234
  }),
204
235
  /* @__PURE__ */ O("p", {
205
- className: "text-2xl font-bold text-yellow-600 dark:text-yellow-400",
206
- children: P.tasksPending
236
+ className: "text-2xl font-bold text-status-warning-text",
237
+ children: R.tasksPending
207
238
  }),
208
239
  /* @__PURE__ */ O("p", {
209
240
  className: "text-xs text-text-secondary",
@@ -212,18 +243,18 @@ var N = {
212
243
  ]
213
244
  }),
214
245
  /* @__PURE__ */ k("div", {
215
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
246
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
216
247
  children: [
217
248
  /* @__PURE__ */ O("div", {
218
249
  className: "flex items-center gap-2 mb-2",
219
250
  children: /* @__PURE__ */ O("div", {
220
- className: "inline-flex rounded-md p-1.5 bg-purple-500/10 text-purple-600 dark:text-purple-400",
251
+ className: "inline-flex rounded-md p-1.5 bg-[color-mix(in_oklab,var(--color-accent-purple)_14%,transparent)] text-accent-purple",
221
252
  children: /* @__PURE__ */ O(C, { className: "h-4 w-4" })
222
253
  })
223
254
  }),
224
255
  /* @__PURE__ */ k("p", {
225
- className: "text-2xl font-bold text-purple-600 dark:text-purple-400",
226
- children: [P.hoursWorked, "h"]
256
+ className: "text-2xl font-bold text-accent-purple",
257
+ children: [R.hoursWorked, "h"]
227
258
  }),
228
259
  /* @__PURE__ */ O("p", {
229
260
  className: "text-xs text-text-secondary",
@@ -232,18 +263,18 @@ var N = {
232
263
  ]
233
264
  }),
234
265
  /* @__PURE__ */ k("div", {
235
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
266
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
236
267
  children: [
237
268
  /* @__PURE__ */ O("div", {
238
269
  className: "flex items-center gap-2 mb-2",
239
270
  children: /* @__PURE__ */ O("div", {
240
- className: "inline-flex rounded-md p-1.5 bg-indigo-500/10 text-indigo-600 dark:text-indigo-400",
271
+ className: "inline-flex rounded-md p-1.5 bg-status-info-bg-subtle text-status-info-text",
241
272
  children: /* @__PURE__ */ O(D, { className: "h-4 w-4" })
242
273
  })
243
274
  }),
244
275
  /* @__PURE__ */ k("p", {
245
- className: "text-2xl font-bold text-indigo-600 dark:text-indigo-400",
246
- children: [P.efficiency, "%"]
276
+ className: "text-2xl font-bold text-status-info-text",
277
+ children: [R.efficiency, "%"]
247
278
  }),
248
279
  /* @__PURE__ */ O("p", {
249
280
  className: "text-xs text-text-secondary",
@@ -252,18 +283,18 @@ var N = {
252
283
  ]
253
284
  }),
254
285
  /* @__PURE__ */ k("div", {
255
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
286
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
256
287
  children: [
257
288
  /* @__PURE__ */ O("div", {
258
289
  className: "flex items-center gap-2 mb-2",
259
290
  children: /* @__PURE__ */ O("div", {
260
- className: "inline-flex rounded-md p-1.5 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",
291
+ className: "inline-flex rounded-md p-1.5 bg-status-warning-bg-subtle text-status-warning-text",
261
292
  children: /* @__PURE__ */ O(S, { className: "h-4 w-4" })
262
293
  })
263
294
  }),
264
295
  /* @__PURE__ */ k("p", {
265
- className: "text-2xl font-bold text-yellow-500",
266
- children: [P.rating, "/5"]
296
+ className: "text-2xl font-bold text-status-warning-text",
297
+ children: [R.rating, "/5"]
267
298
  }),
268
299
  /* @__PURE__ */ O("p", {
269
300
  className: "text-xs text-text-secondary",
@@ -273,26 +304,26 @@ var N = {
273
304
  })
274
305
  ]
275
306
  })] }),
276
- K && /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
307
+ X && /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
277
308
  className: "text-base font-semibold text-text-primary mb-3",
278
309
  children: "Current Task"
279
310
  }), /* @__PURE__ */ O("div", {
280
- className: "rounded-lg border-2 border-blue-500/40 bg-blue-500/5 p-6",
311
+ className: "rounded-lg border-2 border-status-info-border bg-status-info-bg-subtle p-6",
281
312
  children: /* @__PURE__ */ k("div", {
282
313
  className: "flex items-start justify-between mb-4",
283
314
  children: [/* @__PURE__ */ k("div", {
284
315
  className: "flex items-start gap-3",
285
316
  children: [/* @__PURE__ */ O("div", {
286
- className: "flex h-10 w-10 items-center justify-center rounded-lg bg-blue-500/10",
287
- children: /* @__PURE__ */ O(M(K.type), { className: "h-5 w-5 text-blue-600 dark:text-blue-400" })
317
+ className: "flex h-10 w-10 items-center justify-center rounded-lg bg-status-info-bg-subtle",
318
+ children: /* @__PURE__ */ O(F(X.type), { className: "h-5 w-5 text-status-info-text" })
288
319
  }), /* @__PURE__ */ k("div", { children: [
289
320
  /* @__PURE__ */ O("h3", {
290
321
  className: "text-lg font-semibold text-text-primary",
291
- children: K.title
322
+ children: X.title
292
323
  }),
293
324
  /* @__PURE__ */ O("p", {
294
325
  className: "text-sm text-text-secondary mt-1",
295
- children: K.description
326
+ children: X.description
296
327
  }),
297
328
  /* @__PURE__ */ k("div", {
298
329
  className: "flex flex-wrap items-center gap-3 mt-2 text-sm text-text-secondary",
@@ -301,21 +332,21 @@ var N = {
301
332
  className: "flex items-center gap-1",
302
333
  children: [
303
334
  /* @__PURE__ */ O(h, { className: "h-3.5 w-3.5" }),
304
- K.estimatedTime,
335
+ X.estimatedTime,
305
336
  " min"
306
337
  ]
307
338
  }),
308
- K.dueTime && /* @__PURE__ */ k("span", {
339
+ X.dueTime && /* @__PURE__ */ k("span", {
309
340
  className: "flex items-center gap-1",
310
341
  children: [
311
342
  /* @__PURE__ */ O(C, { className: "h-3.5 w-3.5" }),
312
343
  "Due: ",
313
- K.dueTime
344
+ X.dueTime
314
345
  ]
315
346
  }),
316
- K.location && /* @__PURE__ */ k("span", {
347
+ X.location && /* @__PURE__ */ k("span", {
317
348
  className: "flex items-center gap-1",
318
- children: [/* @__PURE__ */ O(_, { className: "h-3.5 w-3.5" }), K.location]
349
+ children: [/* @__PURE__ */ O(_, { className: "h-3.5 w-3.5" }), X.location]
319
350
  })
320
351
  ]
321
352
  })
@@ -324,12 +355,12 @@ var N = {
324
355
  className: "flex gap-2 shrink-0",
325
356
  children: [/* @__PURE__ */ k("button", {
326
357
  type: "button",
327
- onClick: () => W(K.id, "complete"),
328
- className: "inline-flex items-center gap-1.5 rounded-md bg-green-500/10 px-3 py-2 text-sm font-medium text-green-600 dark:text-green-400 hover:bg-green-500/20 transition-colors",
358
+ onClick: () => J(X.id, "complete"),
359
+ className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle px-3 py-2 text-sm font-medium text-status-success-text hover:bg-status-success-bg-subtle transition-colors",
329
360
  children: [/* @__PURE__ */ O(d, { className: "h-4 w-4" }), "Complete"]
330
361
  }), /* @__PURE__ */ k("button", {
331
362
  type: "button",
332
- onClick: () => W(K.id, "pause"),
363
+ onClick: () => J(X.id, "pause"),
333
364
  className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
334
365
  children: [/* @__PURE__ */ O(y, { className: "h-4 w-4" }), "Pause"]
335
366
  })]
@@ -340,10 +371,10 @@ var N = {
340
371
  className: "text-base font-semibold text-text-primary mb-3",
341
372
  children: "Assigned Tasks"
342
373
  }), /* @__PURE__ */ O("div", {
343
- className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm overflow-hidden",
344
- children: q.length > 0 ? /* @__PURE__ */ O("div", {
374
+ className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm overflow-hidden",
375
+ children: Z.length > 0 ? /* @__PURE__ */ O("div", {
345
376
  className: "divide-y divide-border",
346
- children: q.map((e) => /* @__PURE__ */ O("div", {
377
+ children: Z.map((e) => /* @__PURE__ */ O("div", {
347
378
  className: "p-4 hover:bg-bg-sunken/30 transition-colors",
348
379
  children: /* @__PURE__ */ k("div", {
349
380
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
@@ -351,7 +382,7 @@ var N = {
351
382
  className: "flex items-start gap-3 flex-1 min-w-0",
352
383
  children: [/* @__PURE__ */ O("div", {
353
384
  className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-bg-sunken",
354
- children: /* @__PURE__ */ O(M(e.type), { className: "h-4.5 w-4.5 text-text-secondary" })
385
+ children: /* @__PURE__ */ O(F(e.type), { className: "h-4.5 w-4.5 text-text-secondary" })
355
386
  }), /* @__PURE__ */ k("div", {
356
387
  className: "flex-1 min-w-0",
357
388
  children: [
@@ -363,11 +394,11 @@ var N = {
363
394
  children: e.title
364
395
  }),
365
396
  /* @__PURE__ */ O("span", {
366
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", A[e.priority]),
397
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", N[e.priority]),
367
398
  children: e.priority
368
399
  }),
369
400
  /* @__PURE__ */ O("span", {
370
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium", j[e.status]),
401
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium", P[e.status]),
371
402
  children: e.status.replace("_", " ")
372
403
  })
373
404
  ]
@@ -412,14 +443,14 @@ var N = {
412
443
  children: [
413
444
  e.status === "pending" && /* @__PURE__ */ k("button", {
414
445
  type: "button",
415
- onClick: () => W(e.id, "start"),
416
- disabled: R !== null,
417
- className: t("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", R === 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"),
446
+ onClick: () => J(e.id, "start"),
447
+ disabled: H !== null,
448
+ className: t("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", H === null ? "bg-status-info-bg-subtle text-status-info-text hover:bg-status-info-bg-subtle" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
418
449
  children: [/* @__PURE__ */ O(b, { className: "h-3.5 w-3.5" }), "Start"]
419
450
  }),
420
- e.status === "in_progress" && e.id !== R && /* @__PURE__ */ k("button", {
451
+ e.status === "in_progress" && e.id !== H && /* @__PURE__ */ k("button", {
421
452
  type: "button",
422
- onClick: () => z(e.id),
453
+ onClick: () => U(e.id),
423
454
  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",
424
455
  children: [/* @__PURE__ */ O(b, { className: "h-3.5 w-3.5" }), "Resume"]
425
456
  }),
@@ -435,7 +466,7 @@ var N = {
435
466
  }, e.id))
436
467
  }) : /* @__PURE__ */ k("div", {
437
468
  className: "p-8 text-center",
438
- children: [/* @__PURE__ */ O(d, { className: "h-10 w-10 text-green-500 opacity-40 mx-auto mb-2" }), /* @__PURE__ */ O("p", {
469
+ children: [/* @__PURE__ */ O(d, { className: "h-10 w-10 text-status-success-text opacity-40 mx-auto mb-2" }), /* @__PURE__ */ O("p", {
439
470
  className: "text-sm text-text-secondary",
440
471
  children: "All tasks completed!"
441
472
  })]
@@ -445,15 +476,15 @@ var N = {
445
476
  className: "text-base font-semibold text-text-primary mb-3",
446
477
  children: "Recently Completed"
447
478
  }), /* @__PURE__ */ O("div", {
448
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5 shadow-sm",
449
- children: J.length > 0 ? /* @__PURE__ */ O("div", {
479
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
480
+ children: Q.length > 0 ? /* @__PURE__ */ O("div", {
450
481
  className: "space-y-3",
451
- children: J.slice(0, 3).map((e) => /* @__PURE__ */ k("div", {
452
- className: "flex items-center gap-3 p-3 rounded-lg bg-green-500/5 border border-green-500/10",
482
+ children: Q.slice(0, 3).map((e) => /* @__PURE__ */ k("div", {
483
+ className: "flex items-center gap-3 p-3 rounded-lg bg-status-success-bg-subtle border border-status-success-border",
453
484
  children: [
454
485
  /* @__PURE__ */ O("div", {
455
- className: "flex h-8 w-8 items-center justify-center rounded-md bg-green-500/10",
456
- children: /* @__PURE__ */ O(M(e.type), { className: "h-4 w-4 text-green-600 dark:text-green-400" })
486
+ className: "flex h-8 w-8 items-center justify-center rounded-md bg-status-success-bg-subtle",
487
+ children: /* @__PURE__ */ O(F(e.type), { className: "h-4 w-4 text-status-success-text" })
457
488
  }),
458
489
  /* @__PURE__ */ k("div", {
459
490
  className: "flex-1 min-w-0",
@@ -473,7 +504,7 @@ var N = {
473
504
  ]
474
505
  })]
475
506
  }),
476
- /* @__PURE__ */ O(d, { className: "h-4 w-4 text-green-600 dark:text-green-400 shrink-0" })
507
+ /* @__PURE__ */ O(d, { className: "h-4 w-4 text-status-success-text shrink-0" })
477
508
  ]
478
509
  }, e.id))
479
510
  }) : /* @__PURE__ */ O("p", {
@@ -484,7 +515,7 @@ var N = {
484
515
  /* @__PURE__ */ k("div", {
485
516
  className: "grid grid-cols-1 md:grid-cols-2 gap-6",
486
517
  children: [/* @__PURE__ */ k("div", {
487
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5 shadow-sm",
518
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
488
519
  children: [/* @__PURE__ */ k("h3", {
489
520
  className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-4",
490
521
  children: [/* @__PURE__ */ O(w, { className: "h-4 w-4 text-text-secondary" }), "Performance This Week"]
@@ -528,13 +559,13 @@ var N = {
528
559
  children: "Customer Feedback"
529
560
  }), /* @__PURE__ */ k("span", {
530
561
  className: "text-sm font-medium text-text-primary flex items-center gap-1",
531
- children: ["4.7/5", /* @__PURE__ */ O(S, { className: "h-3.5 w-3.5 fill-yellow-400 text-yellow-400" })]
562
+ children: ["4.7/5", /* @__PURE__ */ O(S, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" })]
532
563
  })]
533
564
  })
534
565
  ]
535
566
  })]
536
567
  }), /* @__PURE__ */ k("div", {
537
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5 shadow-sm",
568
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
538
569
  children: [/* @__PURE__ */ k("h3", {
539
570
  className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-4",
540
571
  children: [/* @__PURE__ */ O(u, { className: "h-4 w-4 text-text-secondary" }), "Shift Information"]
@@ -586,7 +617,7 @@ var N = {
586
617
  })]
587
618
  }),
588
619
  /* @__PURE__ */ k("div", {
589
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5 shadow-sm",
620
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
590
621
  children: [/* @__PURE__ */ O("h2", {
591
622
  className: "text-base font-semibold text-text-primary mb-4",
592
623
  children: "Overall Performance"
@@ -598,28 +629,28 @@ var N = {
598
629
  children: "Total Deliveries"
599
630
  }), /* @__PURE__ */ O("p", {
600
631
  className: "text-lg font-bold text-text-primary",
601
- children: P?.totalDeliveries || 0
632
+ children: R?.totalDeliveries || 0
602
633
  })] }),
603
634
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
604
635
  className: "text-xs text-text-secondary",
605
636
  children: "Total Earnings"
606
637
  }), /* @__PURE__ */ O("p", {
607
638
  className: "text-lg font-bold text-text-primary",
608
- children: s(P?.totalEarnings || 0, { minimumFractionDigits: 0 })
639
+ children: s(R?.totalEarnings || 0, { minimumFractionDigits: 0 })
609
640
  })] }),
610
641
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
611
642
  className: "text-xs text-text-secondary",
612
643
  children: "Average Rating"
613
644
  }), /* @__PURE__ */ k("p", {
614
645
  className: "text-lg font-bold text-text-primary flex items-center gap-1",
615
- children: [P?.averageRating || 0, /* @__PURE__ */ O(S, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" })]
646
+ children: [R?.averageRating || 0, /* @__PURE__ */ O(S, { className: "h-4 w-4 fill-status-warning-text text-status-warning-text" })]
616
647
  })] }),
617
648
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
618
649
  className: "text-xs text-text-secondary",
619
650
  children: "Completion Rate"
620
651
  }), /* @__PURE__ */ k("p", {
621
652
  className: "text-lg font-bold text-text-primary",
622
- children: [P?.completionRate || 0, "%"]
653
+ children: [R?.completionRate || 0, "%"]
623
654
  })] })
624
655
  ]
625
656
  })]
@@ -629,6 +660,6 @@ var N = {
629
660
  });
630
661
  };
631
662
  //#endregion
632
- export { P as WorkerDashboard };
663
+ export { L as WorkerDashboard };
633
664
 
634
665
  //# sourceMappingURL=WorkerDashboard.js.map