@burdenoff/microfe-kadaikodi 2026.625.1 → 2026.626.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 (91) hide show
  1. package/dist/kadaikodi/pages/HomePage.js +19 -14
  2. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  3. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +118 -83
  4. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/kadaikodi/pages/admin/AdminDashboard.js +75 -46
  6. package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +144 -128
  8. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +255 -237
  10. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/kadaikodi/pages/admin/AdminProfilePage.js +129 -128
  12. package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +178 -150
  14. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/kadaikodi/pages/admin/CartManagementPage.js +182 -159
  16. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/kadaikodi/pages/admin/UserManagementPage.js +325 -303
  18. package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +500 -469
  20. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +534 -503
  22. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +73 -48
  24. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +103 -96
  26. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +130 -129
  28. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +673 -670
  30. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +517 -514
  32. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +140 -125
  34. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/kadaikodi/pages/common/HelpSupportPage.js +302 -311
  36. package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/kadaikodi/pages/common/NotificationCenterPage.js +102 -91
  38. package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/kadaikodi/pages/common/SettingsPage.js +766 -734
  40. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +366 -356
  42. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/kadaikodi/pages/customer/CartDetailPage.js +243 -213
  44. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +200 -195
  46. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/kadaikodi/pages/customer/CheckoutPage.js +95 -89
  48. package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/kadaikodi/pages/customer/CustomerDashboard.js +430 -387
  50. package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +488 -478
  52. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +523 -512
  54. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/kadaikodi/pages/customer/FavoritesPage.js +83 -75
  56. package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +116 -108
  58. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +67 -61
  60. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +90 -73
  62. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/kadaikodi/pages/customer/ReviewsPage.js +80 -72
  64. package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +70 -53
  66. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +289 -255
  68. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +92 -84
  70. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +63 -55
  72. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/kadaikodi/pages/investor/InvestorDashboard.js +339 -311
  74. package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +40 -32
  76. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +174 -150
  78. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +385 -381
  80. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +302 -273
  82. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/kadaikodi/pages/worker/WorkerDashboard.js +87 -59
  84. package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +82 -75
  86. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +81 -77
  88. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +78 -71
  90. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. package/package.json +2 -2
@@ -8,8 +8,9 @@ import { useCallback as s, useEffect as c, useMemo as l, useState as u } from "r
8
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";
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/kadaikodi/pages/worker/TaskDetailsPage.tsx
12
- function L(e) {
13
+ function B(e) {
13
14
  switch (e) {
14
15
  case "delivery": return M;
15
16
  case "preparation": return g;
@@ -20,7 +21,7 @@ function L(e) {
20
21
  default: return y;
21
22
  }
22
23
  }
23
- function R(e) {
24
+ function V(e) {
24
25
  switch (e) {
25
26
  case "urgent": return "bg-status-error-bg-subtle text-status-error-text";
26
27
  case "high": return "bg-status-warning-bg-subtle text-status-warning-text";
@@ -29,7 +30,7 @@ function R(e) {
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,16 +53,16 @@ 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: p } = P(), { navigateTo: g } = e(), [w, k] = u(null), [M, W] = u(!0), [G, K] = u(""), q = s(() => {
65
+ W(!0), setTimeout(() => {
65
66
  let e = {
66
67
  id: p || "TASK-001",
67
68
  orderId: "ORD-123",
@@ -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
103
  }, [p]);
103
104
  c(() => {
104
- W();
105
- }, [W]);
106
- let G = () => {
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
+ }, $ = l(() => w ? H(w) : [], [w]);
129
130
  if (M) return /* @__PURE__ */ F(n, {
130
131
  title: "Task Details",
131
132
  children: /* @__PURE__ */ F("div", {
@@ -153,8 +154,8 @@ function V() {
153
154
  })
154
155
  })
155
156
  });
156
- let Z = L(w.type);
157
- return /* @__PURE__ */ F(n, {
157
+ let ee = B(w.type);
158
+ return /* @__PURE__ */ I(n, {
158
159
  title: /* @__PURE__ */ I("div", {
159
160
  className: "flex items-center gap-3",
160
161
  children: [/* @__PURE__ */ F("button", {
@@ -165,17 +166,45 @@ function V() {
165
166
  }), /* @__PURE__ */ F("span", { children: "Task Details" })]
166
167
  }),
167
168
  description: "Manage and track your assigned task",
168
- children: /* @__PURE__ */ I("div", {
169
- 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", {
169
+ children: [
170
+ /* @__PURE__ */ F(z, {
171
+ className: "mb-6",
172
+ children: "Everything you need to complete one assigned task, in order. Use this page to see exactly what to do, reach the customer, navigate to their location, jot down notes, and mark the task started and then completed as you go — so nothing gets missed and your completion stats stay strong."
173
+ }),
174
+ /* @__PURE__ */ F(R, {
175
+ storageKey: "kadaikodi-task-details",
176
+ className: "mb-6",
177
+ steps: [
178
+ {
179
+ id: "navigate",
180
+ label: "Head to the location",
181
+ description: "Open directions to the customer.",
182
+ onClick: Z
183
+ },
184
+ {
185
+ id: "call",
186
+ label: "Call the customer",
187
+ description: "Confirm details before you start.",
188
+ onClick: X
189
+ },
190
+ {
191
+ id: "start",
192
+ label: w.status === "completed" ? "Task completed" : "Start & complete the task",
193
+ description: w.status === "completed" ? "This task is done — nice work." : "Mark it started, then completed when finished.",
194
+ onClick: w.status === "completed" ? Y : J,
195
+ done: w.status === "completed"
196
+ }
197
+ ]
198
+ }),
199
+ /* @__PURE__ */ I("div", {
200
+ className: "space-y-6",
201
+ children: [/* @__PURE__ */ I(L, { children: [/* @__PURE__ */ I("div", {
173
202
  className: "flex items-start justify-between mb-4",
174
203
  children: [/* @__PURE__ */ I("div", {
175
204
  className: "flex items-start gap-3",
176
205
  children: [/* @__PURE__ */ F("div", {
177
206
  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" })
207
+ children: /* @__PURE__ */ F(ee, { className: "h-5 w-5 text-text-secondary" })
179
208
  }), /* @__PURE__ */ I("div", { children: [
180
209
  /* @__PURE__ */ F("h2", {
181
210
  className: "text-xl font-bold text-text-primary",
@@ -189,7 +218,7 @@ function V() {
189
218
  className: "flex flex-wrap items-center gap-2 mt-3",
190
219
  children: [
191
220
  /* @__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)),
221
+ className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium uppercase", V(w.priority)),
193
222
  children: w.priority
194
223
  }),
195
224
  /* @__PURE__ */ F(r, { status: w.status }),
@@ -217,7 +246,7 @@ function V() {
217
246
  }),
218
247
  /* @__PURE__ */ F("p", {
219
248
  className: "text-xs text-text-secondary mt-1",
220
- children: B(w.assignedTime)
249
+ children: U(w.assignedTime)
221
250
  })
222
251
  ]
223
252
  })]
@@ -227,270 +256,270 @@ function V() {
227
256
  className: "flex items-center gap-2",
228
257
  children: [/* @__PURE__ */ F(j, { className: "h-4 w-4 text-status-warning-text shrink-0" }), /* @__PURE__ */ I("span", {
229
258
  className: "text-xs font-medium text-status-warning-text",
230
- children: ["Due by ", B(w.dueTime)]
259
+ children: ["Due by ", U(w.dueTime)]
231
260
  })]
232
261
  })
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
- })
262
+ })] }), /* @__PURE__ */ I("div", {
263
+ className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
264
+ children: [/* @__PURE__ */ I("div", {
265
+ className: "lg:col-span-2 space-y-6",
266
+ children: [
267
+ /* @__PURE__ */ I("div", {
268
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
269
+ children: [/* @__PURE__ */ F("h3", {
270
+ className: "text-base font-semibold text-text-primary mb-4",
271
+ children: "Customer Information"
261
272
  }), /* @__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"
273
+ className: "grid grid-cols-1 md:grid-cols-2 gap-5",
274
+ children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", {
275
+ className: "space-y-3",
276
+ children: /* @__PURE__ */ I("div", {
277
+ className: "flex items-center gap-3",
278
+ children: [/* @__PURE__ */ F("div", {
279
+ className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
280
+ children: /* @__PURE__ */ F(N, { className: "h-5 w-5" })
281
+ }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
282
+ className: "text-sm font-medium text-text-primary",
283
+ children: w.customerInfo.name
284
+ }), /* @__PURE__ */ F("p", {
285
+ className: "text-xs text-text-secondary",
286
+ children: w.customerInfo.phone
287
+ })] })]
288
+ })
289
+ }), /* @__PURE__ */ I("div", {
290
+ className: "flex gap-2 mt-4",
291
+ children: [/* @__PURE__ */ I("button", {
292
+ type: "button",
293
+ onClick: X,
294
+ 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",
295
+ children: [/* @__PURE__ */ F(T, { className: "h-3.5 w-3.5" }), "Call Customer"]
296
+ }), /* @__PURE__ */ I("button", {
297
+ type: "button",
298
+ onClick: Z,
299
+ 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",
300
+ children: [/* @__PURE__ */ F(C, { className: "h-3.5 w-3.5" }), "Navigate"]
301
+ })]
302
+ })] }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
303
+ className: "text-xs text-text-secondary mb-2",
304
+ children: "Delivery Address"
305
+ }), /* @__PURE__ */ F("div", {
306
+ className: "rounded-md bg-bg-sunken/50 p-3",
307
+ children: /* @__PURE__ */ I("p", {
308
+ className: "text-xs text-text-primary flex items-start gap-2",
309
+ children: [/* @__PURE__ */ F(S, { className: "h-3.5 w-3.5 shrink-0 mt-0.5 text-text-secondary" }), w.customerInfo.address]
310
+ })
311
+ })] })]
312
+ })]
313
+ }),
314
+ w.orderItems.length > 0 && /* @__PURE__ */ I("div", {
315
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
316
+ children: [/* @__PURE__ */ F("h3", {
317
+ className: "text-base font-semibold text-text-primary mb-3",
318
+ children: "Order Items"
319
+ }), /* @__PURE__ */ F("div", {
320
+ className: "space-y-2",
321
+ children: w.orderItems.map((e, t) => /* @__PURE__ */ F("div", {
322
+ className: "flex items-start justify-between p-3 rounded-md bg-bg-sunken/50",
323
+ children: /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ I("p", {
324
+ className: "text-sm font-medium text-text-primary",
325
+ children: [
326
+ e.quantity,
327
+ "x ",
328
+ e.name
329
+ ]
330
+ }), e.specialInstructions && /* @__PURE__ */ I("p", {
331
+ className: "text-xs text-text-secondary mt-0.5",
332
+ children: ["Note: ", e.specialInstructions]
333
+ })] })
334
+ }, t))
335
+ })]
336
+ }),
337
+ w.specialInstructions && /* @__PURE__ */ I("div", {
338
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
339
+ children: [/* @__PURE__ */ F("h3", {
340
+ className: "text-base font-semibold text-text-primary mb-3",
341
+ children: "Special Instructions"
277
342
  }), /* @__PURE__ */ F("div", {
278
- className: "rounded-md bg-bg-sunken/50 p-3",
343
+ className: "rounded-md bg-status-warning-bg-subtle border border-status-warning-text/20 p-4",
279
344
  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]
345
+ className: "text-sm text-status-warning-text flex items-start gap-2",
346
+ children: [/* @__PURE__ */ F(d, { className: "h-4 w-4 shrink-0 mt-0.5 text-status-warning-text" }), w.specialInstructions]
282
347
  })
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-status-warning-bg-subtle border border-status-warning-text/20 p-4",
316
- children: /* @__PURE__ */ I("p", {
317
- className: "text-sm text-status-warning-text flex items-start gap-2",
318
- children: [/* @__PURE__ */ F(d, { className: "h-4 w-4 shrink-0 mt-0.5 text-status-warning-text" }), 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", {
348
+ })]
349
+ }),
350
+ w.photos && w.photos.length > 0 && /* @__PURE__ */ I("div", {
351
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
352
+ children: [/* @__PURE__ */ I("h3", {
340
353
  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-border-focus/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",
354
+ children: [/* @__PURE__ */ F(m, { className: "h-4 w-4 text-text-secondary" }), "Reference Photos"]
355
+ }), /* @__PURE__ */ F("div", {
356
+ className: "grid grid-cols-2 md:grid-cols-3 gap-3",
357
+ children: w.photos.map((e, t) => /* @__PURE__ */ F("img", {
358
+ src: e,
359
+ alt: `Reference ${t + 1}`,
360
+ className: "w-full h-32 object-cover rounded-lg border border-border-subtle"
361
+ }, t))
362
+ })]
363
+ }),
364
+ /* @__PURE__ */ I("div", {
365
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
369
366
  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
- })] })]
367
+ /* @__PURE__ */ I("h3", {
368
+ className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
369
+ children: [/* @__PURE__ */ F(A, { className: "h-4 w-4 text-text-secondary" }), "Task Notes"]
399
370
  }),
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-status-success-text",
407
- children: a(w.earnings, { minimumFractionDigits: 0 })
408
- })] })]
371
+ /* @__PURE__ */ F("textarea", {
372
+ value: G,
373
+ onChange: (e) => K(e.target.value),
374
+ placeholder: "Add your notes about this task...",
375
+ rows: 4,
376
+ 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-border-focus/40 resize-none"
409
377
  }),
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
- })] })]
419
- }),
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
- })] })]
378
+ /* @__PURE__ */ I("button", {
379
+ type: "button",
380
+ onClick: Q,
381
+ 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",
382
+ children: [/* @__PURE__ */ F(D, { className: "h-3.5 w-3.5" }), "Save Notes"]
429
383
  })
430
384
  ]
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-status-success-bg-subtle text-status-success-text" : "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-status-success-bg-subtle" : "bg-border") })]
450
- }), /* @__PURE__ */ I("div", {
451
- className: t("pb-5", r && "pb-0"),
452
- children: [/* @__PURE__ */ F("p", {
385
+ })
386
+ ]
387
+ }), /* @__PURE__ */ I("div", {
388
+ className: "space-y-6",
389
+ children: [
390
+ /* @__PURE__ */ I("div", {
391
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
392
+ children: [/* @__PURE__ */ F("h3", {
393
+ className: "text-base font-semibold text-text-primary mb-3",
394
+ children: "Task Details"
395
+ }), /* @__PURE__ */ I("div", {
396
+ className: "space-y-3",
397
+ children: [
398
+ /* @__PURE__ */ I("div", {
399
+ className: "flex items-center gap-2",
400
+ children: [/* @__PURE__ */ F(y, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
401
+ className: "text-xs text-text-secondary",
402
+ children: "Order ID"
403
+ }), /* @__PURE__ */ F("p", {
404
+ className: "text-sm font-medium font-mono text-text-primary",
405
+ children: w.orderId
406
+ })] })]
407
+ }),
408
+ /* @__PURE__ */ I("div", {
409
+ className: "flex items-center gap-2",
410
+ children: [/* @__PURE__ */ F(O, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
411
+ className: "text-xs text-text-secondary",
412
+ children: "Cart"
413
+ }), /* @__PURE__ */ F("p", {
453
414
  className: "text-sm font-medium text-text-primary",
454
- children: e.label
415
+ children: w.cartName
416
+ })] })]
417
+ }),
418
+ /* @__PURE__ */ I("div", {
419
+ className: "flex items-center gap-2",
420
+ children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
421
+ className: "text-xs text-text-secondary",
422
+ children: "Due At"
423
+ }), /* @__PURE__ */ F("p", {
424
+ className: "text-sm text-text-primary",
425
+ children: o(w.dueTime)
426
+ })] })]
427
+ }),
428
+ /* @__PURE__ */ I("div", {
429
+ className: "flex items-center gap-2",
430
+ children: [/* @__PURE__ */ F(b, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
431
+ className: "text-xs text-text-secondary",
432
+ children: "Earnings"
455
433
  }), /* @__PURE__ */ F("p", {
456
- className: "mt-0.5 text-xs text-text-secondary",
457
- children: e.timestamp ? o(e.timestamp) : "Pending"
434
+ className: "text-sm font-medium text-status-success-text",
435
+ children: a(w.earnings, { minimumFractionDigits: 0 })
436
+ })] })]
437
+ }),
438
+ w.distance != null && /* @__PURE__ */ I("div", {
439
+ className: "flex items-center gap-2",
440
+ children: [/* @__PURE__ */ F(C, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
441
+ className: "text-xs text-text-secondary",
442
+ children: "Distance"
443
+ }), /* @__PURE__ */ I("p", {
444
+ className: "text-sm text-text-primary",
445
+ children: [w.distance, " km"]
446
+ })] })]
447
+ }),
448
+ /* @__PURE__ */ I("div", {
449
+ className: "flex items-center gap-2",
450
+ children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
451
+ className: "text-xs text-text-secondary",
452
+ children: "Assigned At"
453
+ }), /* @__PURE__ */ F("p", {
454
+ className: "text-sm text-text-primary",
455
+ children: o(w.assignedTime)
456
+ })] })]
457
+ })
458
+ ]
459
+ })]
460
+ }),
461
+ /* @__PURE__ */ I("div", {
462
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
463
+ children: [/* @__PURE__ */ F("h3", {
464
+ className: "text-base font-semibold text-text-primary mb-4",
465
+ children: "Status Timeline"
466
+ }), /* @__PURE__ */ F("div", {
467
+ className: "relative",
468
+ children: $.map((e, n) => {
469
+ let r = n === $.length - 1, i = e.completed ? h : _;
470
+ return /* @__PURE__ */ I("div", {
471
+ className: "flex gap-3",
472
+ children: [/* @__PURE__ */ I("div", {
473
+ className: "flex flex-col items-center",
474
+ children: [/* @__PURE__ */ F("div", {
475
+ className: t("flex h-7 w-7 shrink-0 items-center justify-center rounded-full", e.completed ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-secondary"),
476
+ children: /* @__PURE__ */ F(i, { className: "h-3.5 w-3.5" })
477
+ }), !r && /* @__PURE__ */ F("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-status-success-bg-subtle" : "bg-border") })]
478
+ }), /* @__PURE__ */ I("div", {
479
+ className: t("pb-5", r && "pb-0"),
480
+ children: [/* @__PURE__ */ F("p", {
481
+ className: "text-sm font-medium text-text-primary",
482
+ children: e.label
483
+ }), /* @__PURE__ */ F("p", {
484
+ className: "mt-0.5 text-xs text-text-secondary",
485
+ children: e.timestamp ? o(e.timestamp) : "Pending"
486
+ })]
458
487
  })]
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-[var(--color-accent-soft)] px-4 py-3 text-sm font-medium text-text-primary hover:bg-[var(--color-accent-soft)] 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-status-success-bg-subtle px-4 py-3 text-sm font-medium text-status-success-text hover:bg-status-success-bg-subtle 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
+ }, e.status);
489
+ })
490
+ })]
491
+ }),
492
+ /* @__PURE__ */ I("div", {
493
+ className: "space-y-3",
494
+ children: [
495
+ w.status === "pending" && /* @__PURE__ */ I("button", {
496
+ type: "button",
497
+ onClick: J,
498
+ className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--color-accent-soft)] px-4 py-3 text-sm font-medium text-text-primary hover:bg-[var(--color-accent-soft)] transition-colors",
499
+ children: [/* @__PURE__ */ F(E, { className: "h-4 w-4" }), "Start Task"]
500
+ }),
501
+ w.status === "in_progress" && /* @__PURE__ */ I("button", {
502
+ type: "button",
503
+ onClick: Y,
504
+ className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-status-success-bg-subtle px-4 py-3 text-sm font-medium text-status-success-text hover:bg-status-success-bg-subtle transition-colors",
505
+ children: [/* @__PURE__ */ F(h, { className: "h-4 w-4" }), "Complete Task"]
506
+ }),
507
+ /* @__PURE__ */ I("button", {
508
+ type: "button",
509
+ onClick: () => g("/worker/orders"),
510
+ 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",
511
+ children: [/* @__PURE__ */ F(f, { className: "h-4 w-4" }), "Back to Tasks"]
512
+ })
513
+ ]
514
+ })
515
+ ]
516
+ })]
488
517
  })]
489
- })]
490
- })
518
+ })
519
+ ]
491
520
  });
492
521
  }
493
522
  //#endregion
494
- export { V as TaskDetailsPage };
523
+ export { W as TaskDetailsPage };
495
524
 
496
525
  //# sourceMappingURL=TaskDetailsPage.js.map