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