@burdenoff/microfe-adaptercloud 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 (103) hide show
  1. package/dist/adaptercloud/components/EmptyState.js +17 -21
  2. package/dist/adaptercloud/components/EmptyState.js.map +1 -1
  3. package/dist/adaptercloud/components/InvestmentCard.js +25 -23
  4. package/dist/adaptercloud/components/InvestmentCard.js.map +1 -1
  5. package/dist/adaptercloud/components/MetricsCard.js +18 -12
  6. package/dist/adaptercloud/components/MetricsCard.js.map +1 -1
  7. package/dist/adaptercloud/components/PageLayout.js +45 -19
  8. package/dist/adaptercloud/components/PageLayout.js.map +1 -1
  9. package/dist/adaptercloud/components/RatingDisplay.js +3 -3
  10. package/dist/adaptercloud/components/RatingDisplay.js.map +1 -1
  11. package/dist/adaptercloud/components/StatusBadge.js +36 -16
  12. package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
  13. package/dist/adaptercloud/pages/HomePage.js +244 -231
  14. package/dist/adaptercloud/pages/HomePage.js.map +1 -1
  15. package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +121 -113
  16. package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
  17. package/dist/adaptercloud/pages/admin/AdminDashboard.js +102 -76
  18. package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
  19. package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +70 -65
  20. package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
  21. package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +108 -103
  22. package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
  23. package/dist/adaptercloud/pages/admin/AdminProfilePage.js +61 -59
  24. package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
  25. package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +119 -105
  26. package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
  27. package/dist/adaptercloud/pages/admin/CartManagementPage.js +165 -160
  28. package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
  29. package/dist/adaptercloud/pages/admin/UserManagementPage.js +174 -169
  30. package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
  31. package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +103 -97
  32. package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  33. package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +186 -172
  34. package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  35. package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +109 -81
  36. package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  37. package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +111 -109
  38. package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  39. package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +127 -124
  40. package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  41. package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +310 -316
  42. package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  43. package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +251 -257
  44. package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
  45. package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +142 -148
  46. package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
  47. package/dist/adaptercloud/pages/common/HelpSupportPage.js +287 -283
  48. package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
  49. package/dist/adaptercloud/pages/common/NotificationCenterPage.js +120 -114
  50. package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -1
  51. package/dist/adaptercloud/pages/common/SettingsPage.js +754 -736
  52. package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -1
  53. package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +83 -80
  54. package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
  55. package/dist/adaptercloud/pages/customer/CartDetailPage.js +120 -117
  56. package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
  57. package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +231 -226
  58. package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
  59. package/dist/adaptercloud/pages/customer/CheckoutPage.js +97 -95
  60. package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
  61. package/dist/adaptercloud/pages/customer/CustomerDashboard.js +418 -389
  62. package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
  63. package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +134 -132
  64. package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
  65. package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +108 -102
  66. package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
  67. package/dist/adaptercloud/pages/customer/FavoritesPage.js +62 -59
  68. package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
  69. package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +117 -111
  70. package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
  71. package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +71 -68
  72. package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
  73. package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +97 -81
  74. package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
  75. package/dist/adaptercloud/pages/customer/ReviewsPage.js +83 -80
  76. package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
  77. package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +82 -66
  78. package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
  79. package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +93 -91
  80. package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
  81. package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +100 -97
  82. package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  83. package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +83 -81
  84. package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  85. package/dist/adaptercloud/pages/investor/InvestorDashboard.js +344 -311
  86. package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
  87. package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +43 -40
  88. package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  89. package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +59 -57
  90. package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
  91. package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +394 -392
  92. package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
  93. package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +354 -324
  94. package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
  95. package/dist/adaptercloud/pages/worker/WorkerDashboard.js +122 -97
  96. package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
  97. package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +107 -104
  98. package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
  99. package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +109 -107
  100. package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
  101. package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +94 -90
  102. package/dist/adaptercloud/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 } from "@burdenoff/fe-libs/ui";
9
10
  //#region src/adaptercloud/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 M = {
12
+ high: "bg-status-error-bg-subtle/20 text-status-error-text",
13
+ medium: "bg-status-warning-bg-subtle/20 text-status-warning-text",
14
+ low: "bg-status-success-bg-subtle/20 text-status-success-text"
15
+ }, N = {
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-accent-blue-subtle/20 text-accent-blue",
18
+ completed: "bg-status-success-bg-subtle/20 text-status-success-text"
18
19
  };
19
- function M(e) {
20
+ function P(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 F = {
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
+ }, I = () => {
34
+ let { navigateTo: l, currentUser: f } = e(), m = f?.id || "", { data: x = [], isLoading: T } = o(m), { data: I, isLoading: L } = a(m), R = r(), z = i(), [B, V] = c(null), [H, U] = c(!1), [W, G] = c(null), K = 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", V(e);
38
39
  break;
39
40
  case "complete":
40
- n = "COMPLETED", R === e && z(null);
41
+ n = "COMPLETED", B === e && V(null);
41
42
  break;
42
43
  case "pause":
43
- n = "PENDING", R === e && z(null);
44
+ n = "PENDING", B === e && V(null);
44
45
  break;
45
46
  }
46
47
  try {
47
- await I.mutateAsync({
48
+ await R.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
+ }, q = async () => {
56
+ let e = H ? "CLOCK_OUT" : "CLOCK_IN";
56
57
  try {
57
- let t = await L.mutateAsync({
58
+ let t = await z.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 (H) U(!1), G(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
+ U(!0), G(e);
70
71
  }
71
- alert(t.message || `${B ? "Clocked out" : "Clocked in"} successfully`);
72
+ alert(t.message || `${H ? "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 (T || L) return /* @__PURE__ */ O(n, {
78
79
  title: "Dashboard",
79
80
  description: "Your work overview for today",
80
81
  children: /* @__PURE__ */ O("div", {
@@ -88,10 +89,11 @@ 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 J = B ? x.find((e) => e.id === B) : null, Y = x.filter((e) => e.status !== "completed").sort((e, t) => (F[t.priority] ?? 0) - (F[e.priority] ?? 0)), X = x.filter((e) => e.status === "completed");
92
93
  return /* @__PURE__ */ O(n, {
93
94
  title: "Dashboard",
94
95
  description: "Manage your tasks and assignments",
96
+ purpose: "Your shift command center — clock in, see today's assigned tasks and earnings, and pick up the next delivery or service job. Start here at the beginning of every shift and check back between jobs.",
95
97
  actions: /* @__PURE__ */ k("button", {
96
98
  type: "button",
97
99
  onClick: () => l("/worker/orders"),
@@ -127,43 +129,43 @@ var N = {
127
129
  }),
128
130
  /* @__PURE__ */ k("button", {
129
131
  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"]
132
+ onClick: q,
133
+ className: t("flex items-center justify-center gap-2 rounded-lg px-4 py-3 text-sm font-medium transition-colors", H ? "bg-status-error-bg-subtle/10 text-status-error-text border border-status-error-border/30 hover:bg-status-error-bg-subtle/20" : "bg-status-success-bg-subtle/10 text-status-success-text border border-status-success-border/30 hover:bg-status-success-bg-subtle/20"),
134
+ children: [/* @__PURE__ */ O(C, { className: "h-4 w-4" }), H ? "Clock Out" : "Clock In"]
133
135
  })
134
136
  ]
135
137
  })] }),
136
- P && /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("div", {
138
+ I && /* @__PURE__ */ k(A, { children: [/* @__PURE__ */ k("div", {
137
139
  className: "flex items-center justify-between mb-3",
138
140
  children: [/* @__PURE__ */ O("h2", {
139
141
  className: "text-base font-semibold text-text-primary",
140
142
  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",
143
+ }), H && W && /* @__PURE__ */ k("div", {
144
+ className: "flex items-center gap-2 rounded-lg bg-status-success-bg-subtle/10 border border-status-success-border/20 px-3 py-1.5",
143
145
  children: [/* @__PURE__ */ k("span", {
144
146
  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" })]
147
+ children: [/* @__PURE__ */ O("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-status-success-bg-subtle opacity-75" }), /* @__PURE__ */ O("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-status-success-bg-subtle" })]
146
148
  }), /* @__PURE__ */ k("span", {
147
- className: "text-xs font-medium text-green-600 dark:text-green-400",
148
- children: ["Working since ", H]
149
+ className: "text-xs font-medium text-status-success-text",
150
+ children: ["Working since ", W]
149
151
  })]
150
152
  })]
151
153
  }), /* @__PURE__ */ k("div", {
152
154
  className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",
153
155
  children: [
154
156
  /* @__PURE__ */ k("div", {
155
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
157
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
156
158
  children: [
157
159
  /* @__PURE__ */ O("div", {
158
160
  className: "flex items-center gap-2 mb-2",
159
161
  children: /* @__PURE__ */ O("div", {
160
- className: "inline-flex rounded-md p-1.5 bg-green-500/10 text-green-600 dark:text-green-400",
162
+ className: "inline-flex rounded-md p-1.5 bg-status-success-bg-subtle/10 text-status-success-text",
161
163
  children: /* @__PURE__ */ O(d, { className: "h-4 w-4" })
162
164
  })
163
165
  }),
164
166
  /* @__PURE__ */ O("p", {
165
- className: "text-2xl font-bold text-green-600 dark:text-green-400",
166
- children: P.tasksCompleted
167
+ className: "text-2xl font-bold text-status-success-text",
168
+ children: I.tasksCompleted
167
169
  }),
168
170
  /* @__PURE__ */ O("p", {
169
171
  className: "text-xs text-text-secondary",
@@ -172,18 +174,18 @@ var N = {
172
174
  ]
173
175
  }),
174
176
  /* @__PURE__ */ k("div", {
175
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
177
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
176
178
  children: [
177
179
  /* @__PURE__ */ O("div", {
178
180
  className: "flex items-center gap-2 mb-2",
179
181
  children: /* @__PURE__ */ O("div", {
180
- className: "inline-flex rounded-md p-1.5 bg-blue-500/10 text-blue-600 dark:text-blue-400",
182
+ className: "inline-flex rounded-md p-1.5 bg-accent-blue-subtle/10 text-accent-blue",
181
183
  children: /* @__PURE__ */ O(b, { className: "h-4 w-4" })
182
184
  })
183
185
  }),
184
186
  /* @__PURE__ */ O("p", {
185
- className: "text-2xl font-bold text-blue-600 dark:text-blue-400",
186
- children: P.tasksInProgress
187
+ className: "text-2xl font-bold text-accent-blue",
188
+ children: I.tasksInProgress
187
189
  }),
188
190
  /* @__PURE__ */ O("p", {
189
191
  className: "text-xs text-text-secondary",
@@ -192,18 +194,18 @@ var N = {
192
194
  ]
193
195
  }),
194
196
  /* @__PURE__ */ k("div", {
195
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
197
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
196
198
  children: [
197
199
  /* @__PURE__ */ O("div", {
198
200
  className: "flex items-center gap-2 mb-2",
199
201
  children: /* @__PURE__ */ O("div", {
200
- className: "inline-flex rounded-md p-1.5 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",
202
+ className: "inline-flex rounded-md p-1.5 bg-status-warning-bg-subtle/10 text-status-warning-text",
201
203
  children: /* @__PURE__ */ O(h, { className: "h-4 w-4" })
202
204
  })
203
205
  }),
204
206
  /* @__PURE__ */ O("p", {
205
- className: "text-2xl font-bold text-yellow-600 dark:text-yellow-400",
206
- children: P.tasksPending
207
+ className: "text-2xl font-bold text-status-warning-text",
208
+ children: I.tasksPending
207
209
  }),
208
210
  /* @__PURE__ */ O("p", {
209
211
  className: "text-xs text-text-secondary",
@@ -212,18 +214,18 @@ var N = {
212
214
  ]
213
215
  }),
214
216
  /* @__PURE__ */ k("div", {
215
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
217
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
216
218
  children: [
217
219
  /* @__PURE__ */ O("div", {
218
220
  className: "flex items-center gap-2 mb-2",
219
221
  children: /* @__PURE__ */ O("div", {
220
- className: "inline-flex rounded-md p-1.5 bg-purple-500/10 text-purple-600 dark:text-purple-400",
222
+ className: "inline-flex rounded-md p-1.5 bg-accent-purple-subtle/10 text-accent-purple",
221
223
  children: /* @__PURE__ */ O(C, { className: "h-4 w-4" })
222
224
  })
223
225
  }),
224
226
  /* @__PURE__ */ k("p", {
225
- className: "text-2xl font-bold text-purple-600 dark:text-purple-400",
226
- children: [P.hoursWorked, "h"]
227
+ className: "text-2xl font-bold text-accent-purple",
228
+ children: [I.hoursWorked, "h"]
227
229
  }),
228
230
  /* @__PURE__ */ O("p", {
229
231
  className: "text-xs text-text-secondary",
@@ -232,18 +234,18 @@ var N = {
232
234
  ]
233
235
  }),
234
236
  /* @__PURE__ */ k("div", {
235
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
237
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
236
238
  children: [
237
239
  /* @__PURE__ */ O("div", {
238
240
  className: "flex items-center gap-2 mb-2",
239
241
  children: /* @__PURE__ */ O("div", {
240
- className: "inline-flex rounded-md p-1.5 bg-indigo-500/10 text-indigo-600 dark:text-indigo-400",
242
+ className: "inline-flex rounded-md p-1.5 bg-accent-indigo-subtle/10 text-accent-indigo",
241
243
  children: /* @__PURE__ */ O(D, { className: "h-4 w-4" })
242
244
  })
243
245
  }),
244
246
  /* @__PURE__ */ k("p", {
245
- className: "text-2xl font-bold text-indigo-600 dark:text-indigo-400",
246
- children: [P.efficiency, "%"]
247
+ className: "text-2xl font-bold text-accent-indigo",
248
+ children: [I.efficiency, "%"]
247
249
  }),
248
250
  /* @__PURE__ */ O("p", {
249
251
  className: "text-xs text-text-secondary",
@@ -252,18 +254,18 @@ var N = {
252
254
  ]
253
255
  }),
254
256
  /* @__PURE__ */ k("div", {
255
- className: "rounded-lg border border-border-subtle bg-bg-surface p-4 shadow-sm",
257
+ className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
256
258
  children: [
257
259
  /* @__PURE__ */ O("div", {
258
260
  className: "flex items-center gap-2 mb-2",
259
261
  children: /* @__PURE__ */ O("div", {
260
- className: "inline-flex rounded-md p-1.5 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",
262
+ className: "inline-flex rounded-md p-1.5 bg-status-warning-bg-subtle/10 text-status-warning-text",
261
263
  children: /* @__PURE__ */ O(S, { className: "h-4 w-4" })
262
264
  })
263
265
  }),
264
266
  /* @__PURE__ */ k("p", {
265
- className: "text-2xl font-bold text-yellow-500",
266
- children: [P.rating, "/5"]
267
+ className: "text-2xl font-bold text-status-warning-text",
268
+ children: [I.rating, "/5"]
267
269
  }),
268
270
  /* @__PURE__ */ O("p", {
269
271
  className: "text-xs text-text-secondary",
@@ -273,26 +275,49 @@ var N = {
273
275
  })
274
276
  ]
275
277
  })] }),
276
- K && /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
278
+ /* @__PURE__ */ O(j, {
279
+ storageKey: "adaptercloud-worker-dashboard",
280
+ steps: [
281
+ {
282
+ id: "orders",
283
+ label: "Pick up your next task",
284
+ description: "Browse assigned orders and start the next delivery or service job.",
285
+ onClick: () => l("/worker/orders")
286
+ },
287
+ {
288
+ id: "schedule",
289
+ label: "Check your schedule",
290
+ description: "See upcoming shifts and request changes.",
291
+ onClick: () => l("/worker/schedule")
292
+ },
293
+ {
294
+ id: "profile",
295
+ label: "Keep your profile current",
296
+ description: "Update availability, vehicle, and payout details.",
297
+ onClick: () => l("/worker/profile")
298
+ }
299
+ ]
300
+ }),
301
+ J && /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
277
302
  className: "text-base font-semibold text-text-primary mb-3",
278
303
  children: "Current Task"
279
304
  }), /* @__PURE__ */ O("div", {
280
- className: "rounded-lg border-2 border-blue-500/40 bg-blue-500/5 p-6",
305
+ className: "rounded-lg border-2 border-accent-blue-subtle/40 bg-accent-blue-subtle/5 p-6",
281
306
  children: /* @__PURE__ */ k("div", {
282
307
  className: "flex items-start justify-between mb-4",
283
308
  children: [/* @__PURE__ */ k("div", {
284
309
  className: "flex items-start gap-3",
285
310
  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" })
311
+ className: "flex h-10 w-10 items-center justify-center rounded-lg bg-accent-blue-subtle/10",
312
+ children: /* @__PURE__ */ O(P(J.type), { className: "h-5 w-5 text-accent-blue" })
288
313
  }), /* @__PURE__ */ k("div", { children: [
289
314
  /* @__PURE__ */ O("h3", {
290
315
  className: "text-lg font-semibold text-text-primary",
291
- children: K.title
316
+ children: J.title
292
317
  }),
293
318
  /* @__PURE__ */ O("p", {
294
319
  className: "text-sm text-text-secondary mt-1",
295
- children: K.description
320
+ children: J.description
296
321
  }),
297
322
  /* @__PURE__ */ k("div", {
298
323
  className: "flex flex-wrap items-center gap-3 mt-2 text-sm text-text-secondary",
@@ -301,21 +326,21 @@ var N = {
301
326
  className: "flex items-center gap-1",
302
327
  children: [
303
328
  /* @__PURE__ */ O(h, { className: "h-3.5 w-3.5" }),
304
- K.estimatedTime,
329
+ J.estimatedTime,
305
330
  " min"
306
331
  ]
307
332
  }),
308
- K.dueTime && /* @__PURE__ */ k("span", {
333
+ J.dueTime && /* @__PURE__ */ k("span", {
309
334
  className: "flex items-center gap-1",
310
335
  children: [
311
336
  /* @__PURE__ */ O(C, { className: "h-3.5 w-3.5" }),
312
337
  "Due: ",
313
- K.dueTime
338
+ J.dueTime
314
339
  ]
315
340
  }),
316
- K.location && /* @__PURE__ */ k("span", {
341
+ J.location && /* @__PURE__ */ k("span", {
317
342
  className: "flex items-center gap-1",
318
- children: [/* @__PURE__ */ O(_, { className: "h-3.5 w-3.5" }), K.location]
343
+ children: [/* @__PURE__ */ O(_, { className: "h-3.5 w-3.5" }), J.location]
319
344
  })
320
345
  ]
321
346
  })
@@ -324,12 +349,12 @@ var N = {
324
349
  className: "flex gap-2 shrink-0",
325
350
  children: [/* @__PURE__ */ k("button", {
326
351
  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",
352
+ onClick: () => K(J.id, "complete"),
353
+ className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle/10 px-3 py-2 text-sm font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
329
354
  children: [/* @__PURE__ */ O(d, { className: "h-4 w-4" }), "Complete"]
330
355
  }), /* @__PURE__ */ k("button", {
331
356
  type: "button",
332
- onClick: () => W(K.id, "pause"),
357
+ onClick: () => K(J.id, "pause"),
333
358
  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
359
  children: [/* @__PURE__ */ O(y, { className: "h-4 w-4" }), "Pause"]
335
360
  })]
@@ -341,9 +366,9 @@ var N = {
341
366
  children: "Assigned Tasks"
342
367
  }), /* @__PURE__ */ O("div", {
343
368
  className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm overflow-hidden",
344
- children: q.length > 0 ? /* @__PURE__ */ O("div", {
369
+ children: Y.length > 0 ? /* @__PURE__ */ O("div", {
345
370
  className: "divide-y divide-border",
346
- children: q.map((e) => /* @__PURE__ */ O("div", {
371
+ children: Y.map((e) => /* @__PURE__ */ O("div", {
347
372
  className: "p-4 hover:bg-bg-sunken/30 transition-colors",
348
373
  children: /* @__PURE__ */ k("div", {
349
374
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
@@ -351,7 +376,7 @@ var N = {
351
376
  className: "flex items-start gap-3 flex-1 min-w-0",
352
377
  children: [/* @__PURE__ */ O("div", {
353
378
  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" })
379
+ children: /* @__PURE__ */ O(P(e.type), { className: "h-4.5 w-4.5 text-text-secondary" })
355
380
  }), /* @__PURE__ */ k("div", {
356
381
  className: "flex-1 min-w-0",
357
382
  children: [
@@ -363,11 +388,11 @@ var N = {
363
388
  children: e.title
364
389
  }),
365
390
  /* @__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]),
391
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", M[e.priority]),
367
392
  children: e.priority
368
393
  }),
369
394
  /* @__PURE__ */ O("span", {
370
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium", j[e.status]),
395
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium", N[e.status]),
371
396
  children: e.status.replace("_", " ")
372
397
  })
373
398
  ]
@@ -412,14 +437,14 @@ var N = {
412
437
  children: [
413
438
  e.status === "pending" && /* @__PURE__ */ k("button", {
414
439
  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"),
440
+ onClick: () => K(e.id, "start"),
441
+ disabled: B !== null,
442
+ className: t("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", B === null ? "bg-accent-blue-subtle/10 text-accent-blue hover:bg-accent-blue-subtle/20" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
418
443
  children: [/* @__PURE__ */ O(b, { className: "h-3.5 w-3.5" }), "Start"]
419
444
  }),
420
- e.status === "in_progress" && e.id !== R && /* @__PURE__ */ k("button", {
445
+ e.status === "in_progress" && e.id !== B && /* @__PURE__ */ k("button", {
421
446
  type: "button",
422
- onClick: () => z(e.id),
447
+ onClick: () => V(e.id),
423
448
  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
449
  children: [/* @__PURE__ */ O(b, { className: "h-3.5 w-3.5" }), "Resume"]
425
450
  }),
@@ -435,7 +460,7 @@ var N = {
435
460
  }, e.id))
436
461
  }) : /* @__PURE__ */ k("div", {
437
462
  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", {
463
+ children: [/* @__PURE__ */ O(d, { className: "h-10 w-10 text-status-success-text opacity-40 mx-auto mb-2" }), /* @__PURE__ */ O("p", {
439
464
  className: "text-sm text-text-secondary",
440
465
  children: "All tasks completed!"
441
466
  })]
@@ -445,15 +470,15 @@ var N = {
445
470
  className: "text-base font-semibold text-text-primary mb-3",
446
471
  children: "Recently Completed"
447
472
  }), /* @__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", {
473
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
474
+ children: X.length > 0 ? /* @__PURE__ */ O("div", {
450
475
  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",
476
+ children: X.slice(0, 3).map((e) => /* @__PURE__ */ k("div", {
477
+ className: "flex items-center gap-3 p-3 rounded-lg bg-status-success-bg-subtle/5 border border-status-success-border/10",
453
478
  children: [
454
479
  /* @__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" })
480
+ className: "flex h-8 w-8 items-center justify-center rounded-md bg-status-success-bg-subtle/10",
481
+ children: /* @__PURE__ */ O(P(e.type), { className: "h-4 w-4 text-status-success-text" })
457
482
  }),
458
483
  /* @__PURE__ */ k("div", {
459
484
  className: "flex-1 min-w-0",
@@ -473,7 +498,7 @@ var N = {
473
498
  ]
474
499
  })]
475
500
  }),
476
- /* @__PURE__ */ O(d, { className: "h-4 w-4 text-green-600 dark:text-green-400 shrink-0" })
501
+ /* @__PURE__ */ O(d, { className: "h-4 w-4 text-status-success-text shrink-0" })
477
502
  ]
478
503
  }, e.id))
479
504
  }) : /* @__PURE__ */ O("p", {
@@ -484,7 +509,7 @@ var N = {
484
509
  /* @__PURE__ */ k("div", {
485
510
  className: "grid grid-cols-1 md:grid-cols-2 gap-6",
486
511
  children: [/* @__PURE__ */ k("div", {
487
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5 shadow-sm",
512
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
488
513
  children: [/* @__PURE__ */ k("h3", {
489
514
  className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-4",
490
515
  children: [/* @__PURE__ */ O(w, { className: "h-4 w-4 text-text-secondary" }), "Performance This Week"]
@@ -528,13 +553,13 @@ var N = {
528
553
  children: "Customer Feedback"
529
554
  }), /* @__PURE__ */ k("span", {
530
555
  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" })]
556
+ children: ["4.7/5", /* @__PURE__ */ O(S, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" })]
532
557
  })]
533
558
  })
534
559
  ]
535
560
  })]
536
561
  }), /* @__PURE__ */ k("div", {
537
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5 shadow-sm",
562
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
538
563
  children: [/* @__PURE__ */ k("h3", {
539
564
  className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-4",
540
565
  children: [/* @__PURE__ */ O(u, { className: "h-4 w-4 text-text-secondary" }), "Shift Information"]
@@ -586,7 +611,7 @@ var N = {
586
611
  })]
587
612
  }),
588
613
  /* @__PURE__ */ k("div", {
589
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5 shadow-sm",
614
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
590
615
  children: [/* @__PURE__ */ O("h2", {
591
616
  className: "text-base font-semibold text-text-primary mb-4",
592
617
  children: "Overall Performance"
@@ -598,28 +623,28 @@ var N = {
598
623
  children: "Total Deliveries"
599
624
  }), /* @__PURE__ */ O("p", {
600
625
  className: "text-lg font-bold text-text-primary",
601
- children: P?.totalDeliveries || 0
626
+ children: I?.totalDeliveries || 0
602
627
  })] }),
603
628
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
604
629
  className: "text-xs text-text-secondary",
605
630
  children: "Total Earnings"
606
631
  }), /* @__PURE__ */ O("p", {
607
632
  className: "text-lg font-bold text-text-primary",
608
- children: s(P?.totalEarnings || 0, { minimumFractionDigits: 0 })
633
+ children: s(I?.totalEarnings || 0, { minimumFractionDigits: 0 })
609
634
  })] }),
610
635
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
611
636
  className: "text-xs text-text-secondary",
612
637
  children: "Average Rating"
613
638
  }), /* @__PURE__ */ k("p", {
614
639
  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" })]
640
+ children: [I?.averageRating || 0, /* @__PURE__ */ O(S, { className: "h-4 w-4 fill-status-warning-text text-status-warning-text" })]
616
641
  })] }),
617
642
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
618
643
  className: "text-xs text-text-secondary",
619
644
  children: "Completion Rate"
620
645
  }), /* @__PURE__ */ k("p", {
621
646
  className: "text-lg font-bold text-text-primary",
622
- children: [P?.completionRate || 0, "%"]
647
+ children: [I?.completionRate || 0, "%"]
623
648
  })] })
624
649
  ]
625
650
  })]
@@ -629,6 +654,6 @@ var N = {
629
654
  });
630
655
  };
631
656
  //#endregion
632
- export { P as WorkerDashboard };
657
+ export { I as WorkerDashboard };
633
658
 
634
659
  //# sourceMappingURL=WorkerDashboard.js.map