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