@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
@@ -3,33 +3,34 @@ import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
4
  import { StatusBadge as r } from "../../components/StatusBadge.js";
5
5
  import { EmptyState as i } from "../../components/EmptyState.js";
6
- import { formatCurrency as a, formatDate as o } from "../../utils/formatters.js";
7
- import { useCallback as s, useEffect as c, useMemo as l, useState as u } from "react";
8
- import { AlertTriangle as d, ArrowLeft as f, Boxes as p, Camera as m, CheckCircle2 as h, ChefHat as g, Circle as _, Clock as v, FileText as y, IndianRupee as b, Loader2 as x, MapPin as S, Navigation as C, Package as w, Phone as T, PlayCircle as E, Save as D, ShoppingBag as O, Sparkles as k, StickyNote as A, Timer as j, Truck as M, User as N } from "lucide-react";
6
+ import { formatCurrency as ee, formatDate as a } from "../../utils/formatters.js";
7
+ import { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
8
+ import { AlertTriangle as u, ArrowLeft as d, Boxes as f, Camera as p, CheckCircle2 as m, ChefHat as h, Circle as g, ClipboardList as _, Clock as v, FileText as y, IndianRupee as b, Loader2 as x, MapPin as S, Navigation as C, Package as w, Phone as T, PlayCircle as E, Save as D, ShoppingBag as O, Sparkles as k, StickyNote as A, Timer as j, Truck as M, User as N } from "lucide-react";
9
9
  import { useParams as P } from "react-router-dom";
10
10
  import { jsx as F, jsxs as I } from "react/jsx-runtime";
11
+ import { EmphasisPanel as L, NextSteps as R, PagePurpose as z } from "@burdenoff/fe-libs/ui";
11
12
  //#region src/subscriberbot/pages/worker/TaskDetailsPage.tsx
12
- function L(e) {
13
+ function B(e) {
13
14
  switch (e) {
14
15
  case "delivery": return M;
15
- case "preparation": return g;
16
- case "inventory": return p;
16
+ case "preparation": return h;
17
+ case "inventory": return f;
17
18
  case "cleanup": return k;
18
19
  case "pickup": return O;
19
20
  case "service": return w;
20
21
  default: return y;
21
22
  }
22
23
  }
23
- function R(e) {
24
+ function V(e) {
24
25
  switch (e) {
25
- case "urgent": return "bg-red-500/20 text-red-600 dark:text-red-400";
26
- case "high": return "bg-orange-500/20 text-orange-600 dark:text-orange-400";
27
- case "medium": return "bg-yellow-500/20 text-yellow-600 dark:text-yellow-400";
28
- case "low": return "bg-green-500/20 text-green-600 dark:text-green-400";
26
+ case "urgent": return "bg-status-error-bg/20 text-status-error-text";
27
+ case "high": return "bg-status-warning-bg/20 text-status-warning-text";
28
+ case "medium": return "bg-status-warning-bg/20 text-status-warning-text";
29
+ case "low": return "bg-status-success-bg/20 text-status-success-text";
29
30
  default: return "bg-secondary text-secondary-foreground";
30
31
  }
31
32
  }
32
- function z(e) {
33
+ function H(e) {
33
34
  let t = e.assignedTime, n = e.status === "in_progress" || e.status === "completed" ? new Date(new Date(t).getTime() + 15 * 6e4).toISOString() : null, r = e.status === "completed" ? (/* @__PURE__ */ new Date()).toISOString() : null;
34
35
  return [
35
36
  {
@@ -52,18 +53,18 @@ function z(e) {
52
53
  }
53
54
  ];
54
55
  }
55
- function B(e) {
56
+ function U(e) {
56
57
  return new Date(e).toLocaleTimeString("en-IN", {
57
58
  hour: "numeric",
58
59
  minute: "2-digit",
59
60
  hour12: !0
60
61
  });
61
62
  }
62
- function V() {
63
- let { taskId: p } = P(), { navigateTo: g } = e(), [w, k] = u(null), [M, V] = u(!0), [H, U] = u(""), W = s(() => {
64
- V(!0), setTimeout(() => {
63
+ function W() {
64
+ let { taskId: f } = P(), { navigateTo: h } = e(), [w, k] = l(null), [M, W] = l(!0), [G, K] = l(""), q = o(() => {
65
+ W(!0), setTimeout(() => {
65
66
  let e = {
66
- id: p || "TASK-001",
67
+ id: f || "TASK-001",
67
68
  orderId: "ORD-123",
68
69
  cartId: "cart-001",
69
70
  cartName: "South Indian Express",
@@ -97,35 +98,35 @@ function V() {
97
98
  photos: ["https://images.unsplash.com/photo-1630384060421-cb20d0e0649d?w=400", "https://images.unsplash.com/photo-1572802419224-296b0aeee0d9?w=400"],
98
99
  notes: ""
99
100
  };
100
- k(e), U(e.notes || ""), V(!1);
101
+ k(e), K(e.notes || ""), W(!1);
101
102
  }, 600);
102
- }, [p]);
103
- c(() => {
104
- W();
105
- }, [W]);
106
- let G = () => {
103
+ }, [f]);
104
+ s(() => {
105
+ q();
106
+ }, [q]);
107
+ let J = () => {
107
108
  w && (k({
108
109
  ...w,
109
110
  status: "in_progress"
110
111
  }), alert("Task started successfully"));
111
- }, K = () => {
112
+ }, Y = () => {
112
113
  w && (k({
113
114
  ...w,
114
115
  status: "completed"
115
116
  }), alert("Task completed successfully"));
116
- }, q = () => {
117
+ }, X = () => {
117
118
  w?.customerInfo?.phone && (window.location.href = `tel:${w.customerInfo.phone.replace(/\s/g, "")}`);
118
- }, J = () => {
119
+ }, Z = () => {
119
120
  if (w?.customerInfo?.address) {
120
121
  let e = encodeURIComponent(w.customerInfo.address);
121
122
  window.open(`https://maps.google.com?q=${e}`, "_blank");
122
123
  }
123
- }, Y = () => {
124
+ }, Q = () => {
124
125
  w && (k({
125
126
  ...w,
126
- notes: H
127
+ notes: G
127
128
  }), alert("Notes saved successfully"));
128
- }, X = l(() => w ? z(w) : [], [w]);
129
+ }, $ = c(() => w ? H(w) : [], [w]);
129
130
  if (M) return /* @__PURE__ */ F(n, {
130
131
  title: "Task Details",
131
132
  children: /* @__PURE__ */ F("div", {
@@ -142,40 +143,77 @@ function V() {
142
143
  if (!w) return /* @__PURE__ */ F(n, {
143
144
  title: "Task Not Found",
144
145
  children: /* @__PURE__ */ F(i, {
146
+ illustration: "empty-generic",
145
147
  icon: /* @__PURE__ */ F(y, { className: "h-12 w-12" }),
146
148
  title: "Task not found",
147
- description: `No task found with ID "${p}".`,
149
+ description: `No task found with ID "${f}".`,
148
150
  action: /* @__PURE__ */ F("button", {
149
151
  type: "button",
150
- onClick: () => g("/worker/orders"),
152
+ onClick: () => h("/worker/orders"),
151
153
  className: "rounded-lg bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
152
154
  children: "View All Orders"
153
155
  })
154
156
  })
155
157
  });
156
- let Z = L(w.type);
158
+ let te = B(w.type);
157
159
  return /* @__PURE__ */ F(n, {
158
160
  title: /* @__PURE__ */ I("div", {
159
161
  className: "flex items-center gap-3",
160
162
  children: [/* @__PURE__ */ F("button", {
161
163
  type: "button",
162
- onClick: () => g("/worker/orders"),
164
+ onClick: () => h("/worker/orders"),
163
165
  className: "rounded-md p-1 text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
164
- children: /* @__PURE__ */ F(f, { className: "h-5 w-5" })
166
+ children: /* @__PURE__ */ F(d, { className: "h-5 w-5" })
165
167
  }), /* @__PURE__ */ F("span", { children: "Task Details" })]
166
168
  }),
167
169
  description: "Manage and track your assigned task",
168
170
  children: /* @__PURE__ */ I("div", {
169
171
  className: "space-y-6",
170
- children: [/* @__PURE__ */ I("div", {
171
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6 shadow-sm",
172
- children: [/* @__PURE__ */ I("div", {
172
+ children: [
173
+ /* @__PURE__ */ F(z, {
174
+ icon: /* @__PURE__ */ F(_, { className: "h-4 w-4" }),
175
+ children: "Everything you need to complete one assigned task. See what's being asked, where to go and who to contact, then work it through its stages — start it when you begin, log notes as you go, and mark it complete when you're done. Keeping the status current lets the customer and your cart owner track progress in real time."
176
+ }),
177
+ /* @__PURE__ */ F(R, {
178
+ storageKey: "subscriberbot-task-details",
179
+ steps: [
180
+ {
181
+ id: "start-task",
182
+ label: "Start this task",
183
+ description: "Mark it in progress so everyone knows you are on it.",
184
+ icon: /* @__PURE__ */ F(E, { className: "h-4 w-4" }),
185
+ onClick: J
186
+ },
187
+ {
188
+ id: "navigate",
189
+ label: "Navigate to the location",
190
+ description: "Get directions to the customer or pickup point.",
191
+ icon: /* @__PURE__ */ F(C, { className: "h-4 w-4" }),
192
+ onClick: Z
193
+ },
194
+ {
195
+ id: "call-customer",
196
+ label: "Call the customer",
197
+ description: "Confirm details or let them know your ETA.",
198
+ icon: /* @__PURE__ */ F(T, { className: "h-4 w-4" }),
199
+ onClick: X
200
+ },
201
+ {
202
+ id: "complete-task",
203
+ label: "Mark it complete",
204
+ description: "Wrap up and log the task once finished.",
205
+ icon: /* @__PURE__ */ F(m, { className: "h-4 w-4" }),
206
+ onClick: Y
207
+ }
208
+ ]
209
+ }),
210
+ /* @__PURE__ */ I(L, { children: [/* @__PURE__ */ I("div", {
173
211
  className: "flex items-start justify-between mb-4",
174
212
  children: [/* @__PURE__ */ I("div", {
175
213
  className: "flex items-start gap-3",
176
214
  children: [/* @__PURE__ */ F("div", {
177
215
  className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
178
- children: /* @__PURE__ */ F(Z, { className: "h-5 w-5 text-text-secondary" })
216
+ children: /* @__PURE__ */ F(te, { className: "h-5 w-5 text-text-secondary" })
179
217
  }), /* @__PURE__ */ I("div", { children: [
180
218
  /* @__PURE__ */ F("h2", {
181
219
  className: "text-xl font-bold text-text-primary",
@@ -189,7 +227,7 @@ function V() {
189
227
  className: "flex flex-wrap items-center gap-2 mt-3",
190
228
  children: [
191
229
  /* @__PURE__ */ F("span", {
192
- className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium uppercase", R(w.priority)),
230
+ className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium uppercase", V(w.priority)),
193
231
  children: w.priority
194
232
  }),
195
233
  /* @__PURE__ */ F(r, { status: w.status }),
@@ -217,280 +255,281 @@ function V() {
217
255
  }),
218
256
  /* @__PURE__ */ F("p", {
219
257
  className: "text-xs text-text-secondary mt-1",
220
- children: B(w.assignedTime)
258
+ children: U(w.assignedTime)
221
259
  })
222
260
  ]
223
261
  })]
224
262
  }), w.dueTime && w.status !== "completed" && /* @__PURE__ */ F("div", {
225
- className: "rounded-md bg-yellow-500/10 border border-yellow-500/20 p-3",
263
+ className: "rounded-md bg-status-warning-bg/10 border border-status-warning-border/20 p-3",
226
264
  children: /* @__PURE__ */ I("div", {
227
265
  className: "flex items-center gap-2",
228
- children: [/* @__PURE__ */ F(j, { className: "h-4 w-4 text-yellow-600 dark:text-yellow-400 shrink-0" }), /* @__PURE__ */ I("span", {
229
- className: "text-xs font-medium text-yellow-600 dark:text-yellow-400",
230
- children: ["Due by ", B(w.dueTime)]
266
+ children: [/* @__PURE__ */ F(j, { className: "h-4 w-4 text-status-warning-text shrink-0" }), /* @__PURE__ */ I("span", {
267
+ className: "text-xs font-medium text-status-warning-text",
268
+ children: ["Due by ", U(w.dueTime)]
231
269
  })]
232
270
  })
233
- })]
234
- }), /* @__PURE__ */ I("div", {
235
- className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
236
- children: [/* @__PURE__ */ I("div", {
237
- className: "lg:col-span-2 space-y-6",
238
- children: [
239
- /* @__PURE__ */ I("div", {
240
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
241
- children: [/* @__PURE__ */ F("h3", {
242
- className: "text-base font-semibold text-text-primary mb-4",
243
- children: "Customer Information"
244
- }), /* @__PURE__ */ I("div", {
245
- className: "grid grid-cols-1 md:grid-cols-2 gap-5",
246
- children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", {
247
- className: "space-y-3",
248
- children: /* @__PURE__ */ I("div", {
249
- className: "flex items-center gap-3",
250
- children: [/* @__PURE__ */ F("div", {
251
- className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
252
- children: /* @__PURE__ */ F(N, { className: "h-5 w-5" })
253
- }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
254
- className: "text-sm font-medium text-text-primary",
255
- children: w.customerInfo.name
256
- }), /* @__PURE__ */ F("p", {
257
- className: "text-xs text-text-secondary",
258
- children: w.customerInfo.phone
259
- })] })]
260
- })
271
+ })] }),
272
+ /* @__PURE__ */ I("div", {
273
+ className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
274
+ children: [/* @__PURE__ */ I("div", {
275
+ className: "lg:col-span-2 space-y-6",
276
+ children: [
277
+ /* @__PURE__ */ I("div", {
278
+ className: "rounded-lg border border-border-seam bg-bg-surface p-6",
279
+ children: [/* @__PURE__ */ F("h3", {
280
+ className: "text-base font-semibold text-text-primary mb-4",
281
+ children: "Customer Information"
261
282
  }), /* @__PURE__ */ I("div", {
262
- className: "flex gap-2 mt-4",
263
- children: [/* @__PURE__ */ I("button", {
264
- type: "button",
265
- onClick: q,
266
- className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
267
- children: [/* @__PURE__ */ F(T, { className: "h-3.5 w-3.5" }), "Call Customer"]
268
- }), /* @__PURE__ */ I("button", {
269
- type: "button",
270
- onClick: J,
271
- className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
272
- children: [/* @__PURE__ */ F(C, { className: "h-3.5 w-3.5" }), "Navigate"]
273
- })]
274
- })] }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
275
- className: "text-xs text-text-secondary mb-2",
276
- children: "Delivery Address"
283
+ className: "grid grid-cols-1 md:grid-cols-2 gap-5",
284
+ children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", {
285
+ className: "space-y-3",
286
+ children: /* @__PURE__ */ I("div", {
287
+ className: "flex items-center gap-3",
288
+ children: [/* @__PURE__ */ F("div", {
289
+ className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
290
+ children: /* @__PURE__ */ F(N, { className: "h-5 w-5" })
291
+ }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
292
+ className: "text-sm font-medium text-text-primary",
293
+ children: w.customerInfo.name
294
+ }), /* @__PURE__ */ F("p", {
295
+ className: "text-xs text-text-secondary",
296
+ children: w.customerInfo.phone
297
+ })] })]
298
+ })
299
+ }), /* @__PURE__ */ I("div", {
300
+ className: "flex gap-2 mt-4",
301
+ children: [/* @__PURE__ */ I("button", {
302
+ type: "button",
303
+ onClick: X,
304
+ className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
305
+ children: [/* @__PURE__ */ F(T, { className: "h-3.5 w-3.5" }), "Call Customer"]
306
+ }), /* @__PURE__ */ I("button", {
307
+ type: "button",
308
+ onClick: Z,
309
+ className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
310
+ children: [/* @__PURE__ */ F(C, { className: "h-3.5 w-3.5" }), "Navigate"]
311
+ })]
312
+ })] }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
313
+ className: "text-xs text-text-secondary mb-2",
314
+ children: "Delivery Address"
315
+ }), /* @__PURE__ */ F("div", {
316
+ className: "rounded-md bg-bg-sunken/50 p-3",
317
+ children: /* @__PURE__ */ I("p", {
318
+ className: "text-xs text-text-primary flex items-start gap-2",
319
+ children: [/* @__PURE__ */ F(S, { className: "h-3.5 w-3.5 shrink-0 mt-0.5 text-text-secondary" }), w.customerInfo.address]
320
+ })
321
+ })] })]
322
+ })]
323
+ }),
324
+ w.orderItems.length > 0 && /* @__PURE__ */ I("div", {
325
+ className: "rounded-lg border border-border-seam bg-bg-surface p-6",
326
+ children: [/* @__PURE__ */ F("h3", {
327
+ className: "text-base font-semibold text-text-primary mb-3",
328
+ children: "Order Items"
329
+ }), /* @__PURE__ */ F("div", {
330
+ className: "space-y-2",
331
+ children: w.orderItems.map((e, t) => /* @__PURE__ */ F("div", {
332
+ className: "flex items-start justify-between p-3 rounded-md bg-bg-sunken/50",
333
+ children: /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ I("p", {
334
+ className: "text-sm font-medium text-text-primary",
335
+ children: [
336
+ e.quantity,
337
+ "x ",
338
+ e.name
339
+ ]
340
+ }), e.specialInstructions && /* @__PURE__ */ I("p", {
341
+ className: "text-xs text-text-secondary mt-0.5",
342
+ children: ["Note: ", e.specialInstructions]
343
+ })] })
344
+ }, t))
345
+ })]
346
+ }),
347
+ w.specialInstructions && /* @__PURE__ */ I("div", {
348
+ className: "rounded-lg border border-border-seam bg-bg-surface p-6",
349
+ children: [/* @__PURE__ */ F("h3", {
350
+ className: "text-base font-semibold text-text-primary mb-3",
351
+ children: "Special Instructions"
277
352
  }), /* @__PURE__ */ F("div", {
278
- className: "rounded-md bg-bg-sunken/50 p-3",
353
+ className: "rounded-md bg-status-warning-bg/10 border border-status-warning-border/20 p-4",
279
354
  children: /* @__PURE__ */ I("p", {
280
- className: "text-xs text-text-primary flex items-start gap-2",
281
- children: [/* @__PURE__ */ F(S, { className: "h-3.5 w-3.5 shrink-0 mt-0.5 text-text-secondary" }), w.customerInfo.address]
355
+ className: "text-sm text-status-warning-text flex items-start gap-2",
356
+ children: [/* @__PURE__ */ F(u, { className: "h-4 w-4 shrink-0 mt-0.5 text-status-warning-text" }), w.specialInstructions]
282
357
  })
283
- })] })]
284
- })]
285
- }),
286
- w.orderItems.length > 0 && /* @__PURE__ */ I("div", {
287
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
288
- children: [/* @__PURE__ */ F("h3", {
289
- className: "text-base font-semibold text-text-primary mb-3",
290
- children: "Order Items"
291
- }), /* @__PURE__ */ F("div", {
292
- className: "space-y-2",
293
- children: w.orderItems.map((e, t) => /* @__PURE__ */ F("div", {
294
- className: "flex items-start justify-between p-3 rounded-md bg-bg-sunken/50",
295
- children: /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ I("p", {
296
- className: "text-sm font-medium text-text-primary",
297
- children: [
298
- e.quantity,
299
- "x ",
300
- e.name
301
- ]
302
- }), e.specialInstructions && /* @__PURE__ */ I("p", {
303
- className: "text-xs text-text-secondary mt-0.5",
304
- children: ["Note: ", e.specialInstructions]
305
- })] })
306
- }, t))
307
- })]
308
- }),
309
- w.specialInstructions && /* @__PURE__ */ I("div", {
310
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
311
- children: [/* @__PURE__ */ F("h3", {
312
- className: "text-base font-semibold text-text-primary mb-3",
313
- children: "Special Instructions"
314
- }), /* @__PURE__ */ F("div", {
315
- className: "rounded-md bg-yellow-500/10 border border-yellow-500/20 p-4",
316
- children: /* @__PURE__ */ I("p", {
317
- className: "text-sm text-yellow-700 dark:text-yellow-300 flex items-start gap-2",
318
- children: [/* @__PURE__ */ F(d, { className: "h-4 w-4 shrink-0 mt-0.5 text-yellow-600 dark:text-yellow-400" }), w.specialInstructions]
319
- })
320
- })]
321
- }),
322
- w.photos && w.photos.length > 0 && /* @__PURE__ */ I("div", {
323
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
324
- children: [/* @__PURE__ */ I("h3", {
325
- className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
326
- children: [/* @__PURE__ */ F(m, { className: "h-4 w-4 text-text-secondary" }), "Reference Photos"]
327
- }), /* @__PURE__ */ F("div", {
328
- className: "grid grid-cols-2 md:grid-cols-3 gap-3",
329
- children: w.photos.map((e, t) => /* @__PURE__ */ F("img", {
330
- src: e,
331
- alt: `Reference ${t + 1}`,
332
- className: "w-full h-32 object-cover rounded-lg border border-border-subtle"
333
- }, t))
334
- })]
335
- }),
336
- /* @__PURE__ */ I("div", {
337
- className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
338
- children: [
339
- /* @__PURE__ */ I("h3", {
358
+ })]
359
+ }),
360
+ w.photos && w.photos.length > 0 && /* @__PURE__ */ I("div", {
361
+ className: "rounded-lg border border-border-seam bg-bg-surface p-6",
362
+ children: [/* @__PURE__ */ I("h3", {
340
363
  className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
341
- children: [/* @__PURE__ */ F(A, { className: "h-4 w-4 text-text-secondary" }), "Task Notes"]
342
- }),
343
- /* @__PURE__ */ F("textarea", {
344
- value: H,
345
- onChange: (e) => U(e.target.value),
346
- placeholder: "Add your notes about this task...",
347
- rows: 4,
348
- className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-blue-500/40 resize-none"
349
- }),
350
- /* @__PURE__ */ I("button", {
351
- type: "button",
352
- onClick: Y,
353
- className: "mt-3 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",
354
- children: [/* @__PURE__ */ F(D, { className: "h-3.5 w-3.5" }), "Save Notes"]
355
- })
356
- ]
357
- })
358
- ]
359
- }), /* @__PURE__ */ I("div", {
360
- className: "space-y-6",
361
- children: [
362
- /* @__PURE__ */ I("div", {
363
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
364
- children: [/* @__PURE__ */ F("h3", {
365
- className: "text-base font-semibold text-text-primary mb-3",
366
- children: "Task Details"
367
- }), /* @__PURE__ */ I("div", {
368
- className: "space-y-3",
364
+ children: [/* @__PURE__ */ F(p, { className: "h-4 w-4 text-text-secondary" }), "Reference Photos"]
365
+ }), /* @__PURE__ */ F("div", {
366
+ className: "grid grid-cols-2 md:grid-cols-3 gap-3",
367
+ children: w.photos.map((e, t) => /* @__PURE__ */ F("img", {
368
+ src: e,
369
+ alt: `Reference ${t + 1}`,
370
+ className: "w-full h-32 object-cover rounded-lg border border-border-seam"
371
+ }, t))
372
+ })]
373
+ }),
374
+ /* @__PURE__ */ I("div", {
375
+ className: "rounded-lg border border-border-seam bg-bg-surface p-6",
369
376
  children: [
370
- /* @__PURE__ */ I("div", {
371
- className: "flex items-center gap-2",
372
- children: [/* @__PURE__ */ F(y, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
373
- className: "text-xs text-text-secondary",
374
- children: "Order ID"
375
- }), /* @__PURE__ */ F("p", {
376
- className: "text-sm font-medium font-mono text-text-primary",
377
- children: w.orderId
378
- })] })]
379
- }),
380
- /* @__PURE__ */ I("div", {
381
- className: "flex items-center gap-2",
382
- children: [/* @__PURE__ */ F(O, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
383
- className: "text-xs text-text-secondary",
384
- children: "Cart"
385
- }), /* @__PURE__ */ F("p", {
386
- className: "text-sm font-medium text-text-primary",
387
- children: w.cartName
388
- })] })]
389
- }),
390
- /* @__PURE__ */ I("div", {
391
- className: "flex items-center gap-2",
392
- children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
393
- className: "text-xs text-text-secondary",
394
- children: "Due At"
395
- }), /* @__PURE__ */ F("p", {
396
- className: "text-sm text-text-primary",
397
- children: o(w.dueTime)
398
- })] })]
399
- }),
400
- /* @__PURE__ */ I("div", {
401
- className: "flex items-center gap-2",
402
- children: [/* @__PURE__ */ F(b, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
403
- className: "text-xs text-text-secondary",
404
- children: "Earnings"
405
- }), /* @__PURE__ */ F("p", {
406
- className: "text-sm font-medium text-green-600 dark:text-green-400",
407
- children: a(w.earnings, { minimumFractionDigits: 0 })
408
- })] })]
377
+ /* @__PURE__ */ I("h3", {
378
+ className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
379
+ children: [/* @__PURE__ */ F(A, { className: "h-4 w-4 text-text-secondary" }), "Task Notes"]
409
380
  }),
410
- w.distance != null && /* @__PURE__ */ I("div", {
411
- className: "flex items-center gap-2",
412
- children: [/* @__PURE__ */ F(C, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
413
- className: "text-xs text-text-secondary",
414
- children: "Distance"
415
- }), /* @__PURE__ */ I("p", {
416
- className: "text-sm text-text-primary",
417
- children: [w.distance, " km"]
418
- })] })]
381
+ /* @__PURE__ */ F("textarea", {
382
+ value: G,
383
+ onChange: (e) => K(e.target.value),
384
+ placeholder: "Add your notes about this task...",
385
+ rows: 4,
386
+ className: "w-full rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-status-info-border/40 resize-none"
419
387
  }),
420
- /* @__PURE__ */ I("div", {
421
- className: "flex items-center gap-2",
422
- children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
423
- className: "text-xs text-text-secondary",
424
- children: "Assigned At"
425
- }), /* @__PURE__ */ F("p", {
426
- className: "text-sm text-text-primary",
427
- children: o(w.assignedTime)
428
- })] })]
388
+ /* @__PURE__ */ I("button", {
389
+ type: "button",
390
+ onClick: Q,
391
+ className: "mt-3 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",
392
+ children: [/* @__PURE__ */ F(D, { className: "h-3.5 w-3.5" }), "Save Notes"]
429
393
  })
430
394
  ]
431
- })]
432
- }),
433
- /* @__PURE__ */ I("div", {
434
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
435
- children: [/* @__PURE__ */ F("h3", {
436
- className: "text-base font-semibold text-text-primary mb-4",
437
- children: "Status Timeline"
438
- }), /* @__PURE__ */ F("div", {
439
- className: "relative",
440
- children: X.map((e, n) => {
441
- let r = n === X.length - 1, i = e.completed ? h : _;
442
- return /* @__PURE__ */ I("div", {
443
- className: "flex gap-3",
444
- children: [/* @__PURE__ */ I("div", {
445
- className: "flex flex-col items-center",
446
- children: [/* @__PURE__ */ F("div", {
447
- className: t("flex h-7 w-7 shrink-0 items-center justify-center rounded-full", e.completed ? "bg-green-500/10 text-green-600 dark:text-green-400" : "bg-bg-sunken text-text-secondary"),
448
- children: /* @__PURE__ */ F(i, { className: "h-3.5 w-3.5" })
449
- }), !r && /* @__PURE__ */ F("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-green-500/30" : "bg-border") })]
450
- }), /* @__PURE__ */ I("div", {
451
- className: t("pb-5", r && "pb-0"),
452
- children: [/* @__PURE__ */ F("p", {
395
+ })
396
+ ]
397
+ }), /* @__PURE__ */ I("div", {
398
+ className: "space-y-6",
399
+ children: [
400
+ /* @__PURE__ */ I("div", {
401
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5",
402
+ children: [/* @__PURE__ */ F("h3", {
403
+ className: "text-base font-semibold text-text-primary mb-3",
404
+ children: "Task Details"
405
+ }), /* @__PURE__ */ I("div", {
406
+ className: "space-y-3",
407
+ children: [
408
+ /* @__PURE__ */ I("div", {
409
+ className: "flex items-center gap-2",
410
+ children: [/* @__PURE__ */ F(y, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
411
+ className: "text-xs text-text-secondary",
412
+ children: "Order ID"
413
+ }), /* @__PURE__ */ F("p", {
414
+ className: "text-sm font-medium font-mono text-text-primary",
415
+ children: w.orderId
416
+ })] })]
417
+ }),
418
+ /* @__PURE__ */ I("div", {
419
+ className: "flex items-center gap-2",
420
+ children: [/* @__PURE__ */ F(O, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
421
+ className: "text-xs text-text-secondary",
422
+ children: "Cart"
423
+ }), /* @__PURE__ */ F("p", {
453
424
  className: "text-sm font-medium text-text-primary",
454
- children: e.label
425
+ children: w.cartName
426
+ })] })]
427
+ }),
428
+ /* @__PURE__ */ I("div", {
429
+ className: "flex items-center gap-2",
430
+ children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
431
+ className: "text-xs text-text-secondary",
432
+ children: "Due At"
433
+ }), /* @__PURE__ */ F("p", {
434
+ className: "text-sm text-text-primary",
435
+ children: a(w.dueTime)
436
+ })] })]
437
+ }),
438
+ /* @__PURE__ */ I("div", {
439
+ className: "flex items-center gap-2",
440
+ children: [/* @__PURE__ */ F(b, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
441
+ className: "text-xs text-text-secondary",
442
+ children: "Earnings"
455
443
  }), /* @__PURE__ */ F("p", {
456
- className: "mt-0.5 text-xs text-text-secondary",
457
- children: e.timestamp ? o(e.timestamp) : "Pending"
444
+ className: "text-sm font-medium text-status-success-text",
445
+ children: ee(w.earnings, { minimumFractionDigits: 0 })
446
+ })] })]
447
+ }),
448
+ w.distance != null && /* @__PURE__ */ I("div", {
449
+ className: "flex items-center gap-2",
450
+ children: [/* @__PURE__ */ F(C, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
451
+ className: "text-xs text-text-secondary",
452
+ children: "Distance"
453
+ }), /* @__PURE__ */ I("p", {
454
+ className: "text-sm text-text-primary",
455
+ children: [w.distance, " km"]
456
+ })] })]
457
+ }),
458
+ /* @__PURE__ */ I("div", {
459
+ className: "flex items-center gap-2",
460
+ children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
461
+ className: "text-xs text-text-secondary",
462
+ children: "Assigned At"
463
+ }), /* @__PURE__ */ F("p", {
464
+ className: "text-sm text-text-primary",
465
+ children: a(w.assignedTime)
466
+ })] })]
467
+ })
468
+ ]
469
+ })]
470
+ }),
471
+ /* @__PURE__ */ I("div", {
472
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5",
473
+ children: [/* @__PURE__ */ F("h3", {
474
+ className: "text-base font-semibold text-text-primary mb-4",
475
+ children: "Status Timeline"
476
+ }), /* @__PURE__ */ F("div", {
477
+ className: "relative",
478
+ children: $.map((e, n) => {
479
+ let r = n === $.length - 1, i = e.completed ? m : g;
480
+ return /* @__PURE__ */ I("div", {
481
+ className: "flex gap-3",
482
+ children: [/* @__PURE__ */ I("div", {
483
+ className: "flex flex-col items-center",
484
+ children: [/* @__PURE__ */ F("div", {
485
+ className: t("flex h-7 w-7 shrink-0 items-center justify-center rounded-full", e.completed ? "bg-status-success-bg/10 text-status-success-text" : "bg-bg-sunken text-text-secondary"),
486
+ children: /* @__PURE__ */ F(i, { className: "h-3.5 w-3.5" })
487
+ }), !r && /* @__PURE__ */ F("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-status-success-bg/30" : "bg-border") })]
488
+ }), /* @__PURE__ */ I("div", {
489
+ className: t("pb-5", r && "pb-0"),
490
+ children: [/* @__PURE__ */ F("p", {
491
+ className: "text-sm font-medium text-text-primary",
492
+ children: e.label
493
+ }), /* @__PURE__ */ F("p", {
494
+ className: "mt-0.5 text-xs text-text-secondary",
495
+ children: e.timestamp ? a(e.timestamp) : "Pending"
496
+ })]
458
497
  })]
459
- })]
460
- }, e.status);
461
- })
462
- })]
463
- }),
464
- /* @__PURE__ */ I("div", {
465
- className: "space-y-3",
466
- children: [
467
- w.status === "pending" && /* @__PURE__ */ I("button", {
468
- type: "button",
469
- onClick: G,
470
- className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-blue-500/10 px-4 py-3 text-sm font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-500/20 transition-colors",
471
- children: [/* @__PURE__ */ F(E, { className: "h-4 w-4" }), "Start Task"]
472
- }),
473
- w.status === "in_progress" && /* @__PURE__ */ I("button", {
474
- type: "button",
475
- onClick: K,
476
- className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-green-500/10 px-4 py-3 text-sm font-medium text-green-600 dark:text-green-400 hover:bg-green-500/20 transition-colors",
477
- children: [/* @__PURE__ */ F(h, { className: "h-4 w-4" }), "Complete Task"]
478
- }),
479
- /* @__PURE__ */ I("button", {
480
- type: "button",
481
- onClick: () => g("/worker/orders"),
482
- className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-accent px-4 py-3 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
483
- children: [/* @__PURE__ */ F(f, { className: "h-4 w-4" }), "Back to Tasks"]
484
- })
485
- ]
486
- })
487
- ]
488
- })]
489
- })]
498
+ }, e.status);
499
+ })
500
+ })]
501
+ }),
502
+ /* @__PURE__ */ I("div", {
503
+ className: "space-y-3",
504
+ children: [
505
+ w.status === "pending" && /* @__PURE__ */ I("button", {
506
+ type: "button",
507
+ onClick: J,
508
+ className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-status-info-bg/10 px-4 py-3 text-sm font-medium text-status-info-text hover:bg-status-info-bg/20 transition-colors",
509
+ children: [/* @__PURE__ */ F(E, { className: "h-4 w-4" }), "Start Task"]
510
+ }),
511
+ w.status === "in_progress" && /* @__PURE__ */ I("button", {
512
+ type: "button",
513
+ onClick: Y,
514
+ className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-status-success-bg/10 px-4 py-3 text-sm font-medium text-status-success-text hover:bg-status-success-bg/20 transition-colors",
515
+ children: [/* @__PURE__ */ F(m, { className: "h-4 w-4" }), "Complete Task"]
516
+ }),
517
+ /* @__PURE__ */ I("button", {
518
+ type: "button",
519
+ onClick: () => h("/worker/orders"),
520
+ className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-accent px-4 py-3 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
521
+ children: [/* @__PURE__ */ F(d, { className: "h-4 w-4" }), "Back to Tasks"]
522
+ })
523
+ ]
524
+ })
525
+ ]
526
+ })]
527
+ })
528
+ ]
490
529
  })
491
530
  });
492
531
  }
493
532
  //#endregion
494
- export { V as TaskDetailsPage };
533
+ export { W as TaskDetailsPage };
495
534
 
496
535
  //# sourceMappingURL=TaskDetailsPage.js.map