@burdenoff/microfe-atheletebridge 2026.625.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.
- package/dist/atheletebridge/pages/HomePage.js +272 -268
- package/dist/atheletebridge/pages/HomePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js +90 -82
- package/dist/atheletebridge/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminDashboard.js +76 -44
- package/dist/atheletebridge/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js +63 -55
- package/dist/atheletebridge/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js +244 -237
- package/dist/atheletebridge/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js +59 -57
- package/dist/atheletebridge/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js +110 -106
- package/dist/atheletebridge/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/CartManagementPage.js +166 -159
- package/dist/atheletebridge/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/admin/UserManagementPage.js +310 -303
- package/dist/atheletebridge/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js +86 -81
- package/dist/atheletebridge/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js +170 -166
- package/dist/atheletebridge/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js +141 -109
- package/dist/atheletebridge/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js +139 -134
- package/dist/atheletebridge/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js +109 -107
- package/dist/atheletebridge/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js +318 -318
- package/dist/atheletebridge/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js +262 -262
- package/dist/atheletebridge/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js +170 -162
- package/dist/atheletebridge/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/HelpSupportPage.js +292 -298
- package/dist/atheletebridge/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js +99 -91
- package/dist/atheletebridge/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/atheletebridge/pages/common/SettingsPage.js +742 -734
- package/dist/atheletebridge/pages/common/SettingsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js +364 -356
- package/dist/atheletebridge/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDetailPage.js +276 -241
- package/dist/atheletebridge/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js +260 -250
- package/dist/atheletebridge/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CheckoutPage.js +93 -89
- package/dist/atheletebridge/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js +430 -387
- package/dist/atheletebridge/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js +526 -490
- package/dist/atheletebridge/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js +523 -512
- package/dist/atheletebridge/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/FavoritesPage.js +83 -75
- package/dist/atheletebridge/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js +116 -108
- package/dist/atheletebridge/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js +65 -61
- package/dist/atheletebridge/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js +80 -75
- package/dist/atheletebridge/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/ReviewsPage.js +80 -72
- package/dist/atheletebridge/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js +62 -55
- package/dist/atheletebridge/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js +93 -61
- package/dist/atheletebridge/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js +89 -84
- package/dist/atheletebridge/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js +60 -55
- package/dist/atheletebridge/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js +345 -311
- package/dist/atheletebridge/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js +37 -32
- package/dist/atheletebridge/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js +75 -67
- package/dist/atheletebridge/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js +385 -381
- package/dist/atheletebridge/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js +352 -319
- package/dist/atheletebridge/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js +353 -318
- package/dist/atheletebridge/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js +133 -128
- package/dist/atheletebridge/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js +81 -77
- package/dist/atheletebridge/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js +352 -344
- package/dist/atheletebridge/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -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/atheletebridge/pages/worker/TaskDetailsPage.tsx
|
|
12
|
-
function
|
|
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
|
|
24
|
+
function V(e) {
|
|
24
25
|
switch (e) {
|
|
25
26
|
case "urgent": return "bg-red-500/20 text-red-600 dark:text-red-400";
|
|
26
27
|
case "high": return "bg-orange-500/20 text-orange-600 dark:text-orange-400";
|
|
@@ -29,7 +30,7 @@ function R(e) {
|
|
|
29
30
|
default: return "bg-secondary text-secondary-foreground";
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
|
-
function
|
|
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
|
|
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
|
|
63
|
-
let { taskId: p } = P(), { navigateTo: g } = e(), [w, k] = u(null), [M,
|
|
64
|
-
|
|
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),
|
|
101
|
+
k(e), K(e.notes || ""), W(!1);
|
|
101
102
|
}, 600);
|
|
102
103
|
}, [p]);
|
|
103
104
|
c(() => {
|
|
104
|
-
|
|
105
|
-
}, [
|
|
106
|
-
let
|
|
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
|
-
},
|
|
112
|
+
}, Y = () => {
|
|
112
113
|
w && (k({
|
|
113
114
|
...w,
|
|
114
115
|
status: "completed"
|
|
115
116
|
}), alert("Task completed successfully"));
|
|
116
|
-
},
|
|
117
|
+
}, X = () => {
|
|
117
118
|
w?.customerInfo?.phone && (window.location.href = `tel:${w.customerInfo.phone.replace(/\s/g, "")}`);
|
|
118
|
-
},
|
|
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
|
-
},
|
|
124
|
+
}, Q = () => {
|
|
124
125
|
w && (k({
|
|
125
126
|
...w,
|
|
126
|
-
notes:
|
|
127
|
+
notes: G
|
|
127
128
|
}), alert("Notes saved successfully"));
|
|
128
|
-
},
|
|
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", {
|
|
@@ -154,7 +155,7 @@ function V() {
|
|
|
154
155
|
})
|
|
155
156
|
})
|
|
156
157
|
});
|
|
157
|
-
let
|
|
158
|
+
let ee = B(w.type);
|
|
158
159
|
return /* @__PURE__ */ F(n, {
|
|
159
160
|
title: /* @__PURE__ */ I("div", {
|
|
160
161
|
className: "flex items-center gap-3",
|
|
@@ -168,330 +169,362 @@ function V() {
|
|
|
168
169
|
description: "Manage and track your assigned task",
|
|
169
170
|
children: /* @__PURE__ */ I("div", {
|
|
170
171
|
className: "space-y-6",
|
|
171
|
-
children: [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ F(z, { children: "The full brief for one assigned task. See what needs doing, where and by when, contact the customer or navigate to the location, jot down notes, and update the status as you start and finish. Everything you need to complete this task is here." }),
|
|
174
|
+
/* @__PURE__ */ F(R, {
|
|
175
|
+
storageKey: "atheletebridge-task-details",
|
|
176
|
+
steps: [
|
|
177
|
+
{
|
|
178
|
+
id: "start",
|
|
179
|
+
label: "Start this task",
|
|
180
|
+
description: "Mark it in-progress so your manager and customer know it is underway.",
|
|
181
|
+
icon: /* @__PURE__ */ F(E, { className: "h-4 w-4" }),
|
|
182
|
+
onClick: J,
|
|
183
|
+
done: w.status === "in_progress" || w.status === "completed"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
id: "navigate",
|
|
187
|
+
label: "Navigate to the location",
|
|
188
|
+
description: "Open directions to where the task needs to happen.",
|
|
189
|
+
icon: /* @__PURE__ */ F(S, { className: "h-4 w-4" }),
|
|
190
|
+
onClick: Z
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
id: "complete",
|
|
194
|
+
label: "Mark the task complete",
|
|
195
|
+
description: "Close it out once the work is done.",
|
|
196
|
+
icon: /* @__PURE__ */ F(h, { className: "h-4 w-4" }),
|
|
197
|
+
onClick: Y,
|
|
198
|
+
done: w.status === "completed"
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
}),
|
|
202
|
+
/* @__PURE__ */ I(L, {
|
|
203
|
+
className: "p-6",
|
|
204
|
+
children: [/* @__PURE__ */ I("div", {
|
|
205
|
+
className: "flex items-start justify-between mb-4",
|
|
206
|
+
children: [/* @__PURE__ */ I("div", {
|
|
207
|
+
className: "flex items-start gap-3",
|
|
208
|
+
children: [/* @__PURE__ */ F("div", {
|
|
209
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
210
|
+
children: /* @__PURE__ */ F(ee, { className: "h-5 w-5 text-text-secondary" })
|
|
211
|
+
}), /* @__PURE__ */ I("div", { children: [
|
|
212
|
+
/* @__PURE__ */ F("h2", {
|
|
213
|
+
className: "text-xl font-bold text-text-primary",
|
|
214
|
+
children: w.title
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ F("p", {
|
|
217
|
+
className: "text-sm text-text-secondary mt-1",
|
|
218
|
+
children: w.description
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ I("div", {
|
|
221
|
+
className: "flex flex-wrap items-center gap-2 mt-3",
|
|
222
|
+
children: [
|
|
223
|
+
/* @__PURE__ */ F("span", {
|
|
224
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium uppercase", V(w.priority)),
|
|
225
|
+
children: w.priority
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ F(r, { status: w.status }),
|
|
228
|
+
/* @__PURE__ */ I("span", {
|
|
229
|
+
className: "text-xs text-text-secondary flex items-center gap-1",
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ F(v, { className: "h-3 w-3" }),
|
|
232
|
+
w.estimatedTime,
|
|
233
|
+
" min"
|
|
234
|
+
]
|
|
235
|
+
})
|
|
236
|
+
]
|
|
237
|
+
})
|
|
238
|
+
] })]
|
|
239
|
+
}), /* @__PURE__ */ I("div", {
|
|
240
|
+
className: "text-right shrink-0",
|
|
241
|
+
children: [
|
|
242
|
+
/* @__PURE__ */ F("p", {
|
|
243
|
+
className: "text-xs text-text-secondary",
|
|
244
|
+
children: "Assigned by"
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ F("p", {
|
|
247
|
+
className: "text-sm font-medium text-text-primary",
|
|
248
|
+
children: w.assignedBy
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ F("p", {
|
|
251
|
+
className: "text-xs text-text-secondary mt-1",
|
|
252
|
+
children: U(w.assignedTime)
|
|
253
|
+
})
|
|
254
|
+
]
|
|
255
|
+
})]
|
|
256
|
+
}), w.dueTime && w.status !== "completed" && /* @__PURE__ */ F("div", {
|
|
257
|
+
className: "rounded-md bg-yellow-500/10 border border-yellow-500/20 p-3",
|
|
258
|
+
children: /* @__PURE__ */ I("div", {
|
|
259
|
+
className: "flex items-center gap-2",
|
|
260
|
+
children: [/* @__PURE__ */ F(j, { className: "h-4 w-4 text-yellow-600 dark:text-yellow-400 shrink-0" }), /* @__PURE__ */ I("span", {
|
|
261
|
+
className: "text-xs font-medium text-yellow-600 dark:text-yellow-400",
|
|
262
|
+
children: ["Due by ", U(w.dueTime)]
|
|
263
|
+
})]
|
|
264
|
+
})
|
|
265
|
+
})]
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ I("div", {
|
|
268
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
175
269
|
children: [/* @__PURE__ */ I("div", {
|
|
176
|
-
className: "
|
|
177
|
-
children: [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
270
|
+
className: "lg:col-span-2 space-y-6",
|
|
271
|
+
children: [
|
|
272
|
+
/* @__PURE__ */ I("div", {
|
|
273
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
274
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
275
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
276
|
+
children: "Customer Information"
|
|
277
|
+
}), /* @__PURE__ */ I("div", {
|
|
278
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-5",
|
|
279
|
+
children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", {
|
|
280
|
+
className: "space-y-3",
|
|
281
|
+
children: /* @__PURE__ */ I("div", {
|
|
282
|
+
className: "flex items-center gap-3",
|
|
283
|
+
children: [/* @__PURE__ */ F("div", {
|
|
284
|
+
className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
|
|
285
|
+
children: /* @__PURE__ */ F(N, { className: "h-5 w-5" })
|
|
286
|
+
}), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
287
|
+
className: "text-sm font-medium text-text-primary",
|
|
288
|
+
children: w.customerInfo.name
|
|
289
|
+
}), /* @__PURE__ */ F("p", {
|
|
290
|
+
className: "text-xs text-text-secondary",
|
|
291
|
+
children: w.customerInfo.phone
|
|
292
|
+
})] })]
|
|
293
|
+
})
|
|
294
|
+
}), /* @__PURE__ */ I("div", {
|
|
295
|
+
className: "flex gap-2 mt-4",
|
|
296
|
+
children: [/* @__PURE__ */ I("button", {
|
|
297
|
+
type: "button",
|
|
298
|
+
onClick: X,
|
|
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(T, { className: "h-3.5 w-3.5" }), "Call Customer"]
|
|
301
|
+
}), /* @__PURE__ */ I("button", {
|
|
302
|
+
type: "button",
|
|
303
|
+
onClick: Z,
|
|
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(C, { className: "h-3.5 w-3.5" }), "Navigate"]
|
|
306
|
+
})]
|
|
307
|
+
})] }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
308
|
+
className: "text-xs text-text-secondary mb-2",
|
|
309
|
+
children: "Delivery Address"
|
|
310
|
+
}), /* @__PURE__ */ F("div", {
|
|
311
|
+
className: "rounded-md bg-bg-sunken/50 p-3",
|
|
312
|
+
children: /* @__PURE__ */ I("p", {
|
|
313
|
+
className: "text-xs text-text-primary flex items-start gap-2",
|
|
314
|
+
children: [/* @__PURE__ */ F(S, { className: "h-3.5 w-3.5 shrink-0 mt-0.5 text-text-secondary" }), w.customerInfo.address]
|
|
315
|
+
})
|
|
316
|
+
})] })]
|
|
317
|
+
})]
|
|
318
|
+
}),
|
|
319
|
+
w.orderItems.length > 0 && /* @__PURE__ */ I("div", {
|
|
320
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
321
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
322
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
323
|
+
children: "Order Items"
|
|
324
|
+
}), /* @__PURE__ */ F("div", {
|
|
325
|
+
className: "space-y-2",
|
|
326
|
+
children: w.orderItems.map((e, t) => /* @__PURE__ */ F("div", {
|
|
327
|
+
className: "flex items-start justify-between p-3 rounded-md bg-bg-sunken/50",
|
|
328
|
+
children: /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ I("p", {
|
|
329
|
+
className: "text-sm font-medium text-text-primary",
|
|
330
|
+
children: [
|
|
331
|
+
e.quantity,
|
|
332
|
+
"x ",
|
|
333
|
+
e.name
|
|
334
|
+
]
|
|
335
|
+
}), e.specialInstructions && /* @__PURE__ */ I("p", {
|
|
336
|
+
className: "text-xs text-text-secondary mt-0.5",
|
|
337
|
+
children: ["Note: ", e.specialInstructions]
|
|
338
|
+
})] })
|
|
339
|
+
}, t))
|
|
340
|
+
})]
|
|
184
341
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
className: "
|
|
187
|
-
children:
|
|
342
|
+
w.specialInstructions && /* @__PURE__ */ I("div", {
|
|
343
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
344
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
345
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
346
|
+
children: "Special Instructions"
|
|
347
|
+
}), /* @__PURE__ */ F("div", {
|
|
348
|
+
className: "rounded-md bg-yellow-500/10 border border-yellow-500/20 p-4",
|
|
349
|
+
children: /* @__PURE__ */ I("p", {
|
|
350
|
+
className: "text-sm text-yellow-700 dark:text-yellow-300 flex items-start gap-2",
|
|
351
|
+
children: [/* @__PURE__ */ F(d, { className: "h-4 w-4 shrink-0 mt-0.5 text-yellow-600 dark:text-yellow-400" }), w.specialInstructions]
|
|
352
|
+
})
|
|
353
|
+
})]
|
|
354
|
+
}),
|
|
355
|
+
w.photos && w.photos.length > 0 && /* @__PURE__ */ I("div", {
|
|
356
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
357
|
+
children: [/* @__PURE__ */ I("h3", {
|
|
358
|
+
className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
359
|
+
children: [/* @__PURE__ */ F(m, { className: "h-4 w-4 text-text-secondary" }), "Reference Photos"]
|
|
360
|
+
}), /* @__PURE__ */ F("div", {
|
|
361
|
+
className: "grid grid-cols-2 md:grid-cols-3 gap-3",
|
|
362
|
+
children: w.photos.map((e, t) => /* @__PURE__ */ F("img", {
|
|
363
|
+
src: e,
|
|
364
|
+
alt: `Reference ${t + 1}`,
|
|
365
|
+
className: "w-full h-32 object-cover rounded-lg border border-border-subtle"
|
|
366
|
+
}, t))
|
|
367
|
+
})]
|
|
188
368
|
}),
|
|
189
369
|
/* @__PURE__ */ I("div", {
|
|
190
|
-
className: "
|
|
370
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
191
371
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
className:
|
|
194
|
-
children: w
|
|
372
|
+
/* @__PURE__ */ I("h3", {
|
|
373
|
+
className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
374
|
+
children: [/* @__PURE__ */ F(A, { className: "h-4 w-4 text-text-secondary" }), "Task Notes"]
|
|
375
|
+
}),
|
|
376
|
+
/* @__PURE__ */ F("textarea", {
|
|
377
|
+
value: G,
|
|
378
|
+
onChange: (e) => K(e.target.value),
|
|
379
|
+
placeholder: "Add your notes about this task...",
|
|
380
|
+
rows: 4,
|
|
381
|
+
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"
|
|
195
382
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
w.estimatedTime,
|
|
202
|
-
" min"
|
|
203
|
-
]
|
|
383
|
+
/* @__PURE__ */ I("button", {
|
|
384
|
+
type: "button",
|
|
385
|
+
onClick: Q,
|
|
386
|
+
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",
|
|
387
|
+
children: [/* @__PURE__ */ F(D, { className: "h-3.5 w-3.5" }), "Save Notes"]
|
|
204
388
|
})
|
|
205
389
|
]
|
|
206
390
|
})
|
|
207
|
-
]
|
|
391
|
+
]
|
|
208
392
|
}), /* @__PURE__ */ I("div", {
|
|
209
|
-
className: "
|
|
393
|
+
className: "space-y-6",
|
|
210
394
|
children: [
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
className: "
|
|
213
|
-
children: "
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
className: "text-sm font-medium text-text-primary",
|
|
217
|
-
children: w.assignedBy
|
|
218
|
-
}),
|
|
219
|
-
/* @__PURE__ */ F("p", {
|
|
220
|
-
className: "text-xs text-text-secondary mt-1",
|
|
221
|
-
children: B(w.assignedTime)
|
|
222
|
-
})
|
|
223
|
-
]
|
|
224
|
-
})]
|
|
225
|
-
}), w.dueTime && w.status !== "completed" && /* @__PURE__ */ F("div", {
|
|
226
|
-
className: "rounded-md bg-yellow-500/10 border border-yellow-500/20 p-3",
|
|
227
|
-
children: /* @__PURE__ */ I("div", {
|
|
228
|
-
className: "flex items-center gap-2",
|
|
229
|
-
children: [/* @__PURE__ */ F(j, { className: "h-4 w-4 text-yellow-600 dark:text-yellow-400 shrink-0" }), /* @__PURE__ */ I("span", {
|
|
230
|
-
className: "text-xs font-medium text-yellow-600 dark:text-yellow-400",
|
|
231
|
-
children: ["Due by ", B(w.dueTime)]
|
|
232
|
-
})]
|
|
233
|
-
})
|
|
234
|
-
})]
|
|
235
|
-
}), /* @__PURE__ */ I("div", {
|
|
236
|
-
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
237
|
-
children: [/* @__PURE__ */ I("div", {
|
|
238
|
-
className: "lg:col-span-2 space-y-6",
|
|
239
|
-
children: [
|
|
240
|
-
/* @__PURE__ */ I("div", {
|
|
241
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
242
|
-
children: [/* @__PURE__ */ F("h3", {
|
|
243
|
-
className: "text-base font-semibold text-text-primary mb-4",
|
|
244
|
-
children: "Customer Information"
|
|
245
|
-
}), /* @__PURE__ */ I("div", {
|
|
246
|
-
className: "grid grid-cols-1 md:grid-cols-2 gap-5",
|
|
247
|
-
children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", {
|
|
248
|
-
className: "space-y-3",
|
|
249
|
-
children: /* @__PURE__ */ I("div", {
|
|
250
|
-
className: "flex items-center gap-3",
|
|
251
|
-
children: [/* @__PURE__ */ F("div", {
|
|
252
|
-
className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
|
|
253
|
-
children: /* @__PURE__ */ F(N, { className: "h-5 w-5" })
|
|
254
|
-
}), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
255
|
-
className: "text-sm font-medium text-text-primary",
|
|
256
|
-
children: w.customerInfo.name
|
|
257
|
-
}), /* @__PURE__ */ F("p", {
|
|
258
|
-
className: "text-xs text-text-secondary",
|
|
259
|
-
children: w.customerInfo.phone
|
|
260
|
-
})] })]
|
|
261
|
-
})
|
|
395
|
+
/* @__PURE__ */ I("div", {
|
|
396
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
397
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
398
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
399
|
+
children: "Task Details"
|
|
262
400
|
}), /* @__PURE__ */ I("div", {
|
|
263
|
-
className: "
|
|
264
|
-
children: [
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
401
|
+
className: "space-y-3",
|
|
402
|
+
children: [
|
|
403
|
+
/* @__PURE__ */ I("div", {
|
|
404
|
+
className: "flex items-center gap-2",
|
|
405
|
+
children: [/* @__PURE__ */ F(y, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
406
|
+
className: "text-xs text-text-secondary",
|
|
407
|
+
children: "Order ID"
|
|
408
|
+
}), /* @__PURE__ */ F("p", {
|
|
409
|
+
className: "text-sm font-medium font-mono text-text-primary",
|
|
410
|
+
children: w.orderId
|
|
411
|
+
})] })]
|
|
412
|
+
}),
|
|
413
|
+
/* @__PURE__ */ I("div", {
|
|
414
|
+
className: "flex items-center gap-2",
|
|
415
|
+
children: [/* @__PURE__ */ F(O, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
416
|
+
className: "text-xs text-text-secondary",
|
|
417
|
+
children: "Cart"
|
|
418
|
+
}), /* @__PURE__ */ F("p", {
|
|
419
|
+
className: "text-sm font-medium text-text-primary",
|
|
420
|
+
children: w.cartName
|
|
421
|
+
})] })]
|
|
422
|
+
}),
|
|
423
|
+
/* @__PURE__ */ I("div", {
|
|
424
|
+
className: "flex items-center gap-2",
|
|
425
|
+
children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
426
|
+
className: "text-xs text-text-secondary",
|
|
427
|
+
children: "Due At"
|
|
428
|
+
}), /* @__PURE__ */ F("p", {
|
|
429
|
+
className: "text-sm text-text-primary",
|
|
430
|
+
children: o(w.dueTime)
|
|
431
|
+
})] })]
|
|
432
|
+
}),
|
|
433
|
+
/* @__PURE__ */ I("div", {
|
|
434
|
+
className: "flex items-center gap-2",
|
|
435
|
+
children: [/* @__PURE__ */ F(b, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
436
|
+
className: "text-xs text-text-secondary",
|
|
437
|
+
children: "Earnings"
|
|
438
|
+
}), /* @__PURE__ */ F("p", {
|
|
439
|
+
className: "text-sm font-medium text-green-600 dark:text-green-400",
|
|
440
|
+
children: a(w.earnings, { minimumFractionDigits: 0 })
|
|
441
|
+
})] })]
|
|
442
|
+
}),
|
|
443
|
+
w.distance != null && /* @__PURE__ */ I("div", {
|
|
444
|
+
className: "flex items-center gap-2",
|
|
445
|
+
children: [/* @__PURE__ */ F(C, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
446
|
+
className: "text-xs text-text-secondary",
|
|
447
|
+
children: "Distance"
|
|
448
|
+
}), /* @__PURE__ */ I("p", {
|
|
449
|
+
className: "text-sm text-text-primary",
|
|
450
|
+
children: [w.distance, " km"]
|
|
451
|
+
})] })]
|
|
452
|
+
}),
|
|
453
|
+
/* @__PURE__ */ I("div", {
|
|
454
|
+
className: "flex items-center gap-2",
|
|
455
|
+
children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
456
|
+
className: "text-xs text-text-secondary",
|
|
457
|
+
children: "Assigned At"
|
|
458
|
+
}), /* @__PURE__ */ F("p", {
|
|
459
|
+
className: "text-sm text-text-primary",
|
|
460
|
+
children: o(w.assignedTime)
|
|
461
|
+
})] })]
|
|
462
|
+
})
|
|
463
|
+
]
|
|
464
|
+
})]
|
|
465
|
+
}),
|
|
466
|
+
/* @__PURE__ */ I("div", {
|
|
467
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
468
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
469
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
470
|
+
children: "Status Timeline"
|
|
278
471
|
}), /* @__PURE__ */ F("div", {
|
|
279
|
-
className: "
|
|
280
|
-
children:
|
|
281
|
-
|
|
282
|
-
|
|
472
|
+
className: "relative",
|
|
473
|
+
children: $.map((e, n) => {
|
|
474
|
+
let r = n === $.length - 1, i = e.completed ? h : _;
|
|
475
|
+
return /* @__PURE__ */ I("div", {
|
|
476
|
+
className: "flex gap-3",
|
|
477
|
+
children: [/* @__PURE__ */ I("div", {
|
|
478
|
+
className: "flex flex-col items-center",
|
|
479
|
+
children: [/* @__PURE__ */ F("div", {
|
|
480
|
+
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"),
|
|
481
|
+
children: /* @__PURE__ */ F(i, { className: "h-3.5 w-3.5" })
|
|
482
|
+
}), !r && /* @__PURE__ */ F("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-green-500/30" : "bg-border") })]
|
|
483
|
+
}), /* @__PURE__ */ I("div", {
|
|
484
|
+
className: t("pb-5", r && "pb-0"),
|
|
485
|
+
children: [/* @__PURE__ */ F("p", {
|
|
486
|
+
className: "text-sm font-medium text-text-primary",
|
|
487
|
+
children: e.label
|
|
488
|
+
}), /* @__PURE__ */ F("p", {
|
|
489
|
+
className: "mt-0.5 text-xs text-text-secondary",
|
|
490
|
+
children: e.timestamp ? o(e.timestamp) : "Pending"
|
|
491
|
+
})]
|
|
492
|
+
})]
|
|
493
|
+
}, e.status);
|
|
283
494
|
})
|
|
284
|
-
})]
|
|
285
|
-
})
|
|
286
|
-
|
|
287
|
-
w.orderItems.length > 0 && /* @__PURE__ */ I("div", {
|
|
288
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
289
|
-
children: [/* @__PURE__ */ F("h3", {
|
|
290
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
291
|
-
children: "Order Items"
|
|
292
|
-
}), /* @__PURE__ */ F("div", {
|
|
293
|
-
className: "space-y-2",
|
|
294
|
-
children: w.orderItems.map((e, t) => /* @__PURE__ */ F("div", {
|
|
295
|
-
className: "flex items-start justify-between p-3 rounded-md bg-bg-sunken/50",
|
|
296
|
-
children: /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ I("p", {
|
|
297
|
-
className: "text-sm font-medium text-text-primary",
|
|
298
|
-
children: [
|
|
299
|
-
e.quantity,
|
|
300
|
-
"x ",
|
|
301
|
-
e.name
|
|
302
|
-
]
|
|
303
|
-
}), e.specialInstructions && /* @__PURE__ */ I("p", {
|
|
304
|
-
className: "text-xs text-text-secondary mt-0.5",
|
|
305
|
-
children: ["Note: ", e.specialInstructions]
|
|
306
|
-
})] })
|
|
307
|
-
}, t))
|
|
308
|
-
})]
|
|
309
|
-
}),
|
|
310
|
-
w.specialInstructions && /* @__PURE__ */ I("div", {
|
|
311
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
312
|
-
children: [/* @__PURE__ */ F("h3", {
|
|
313
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
314
|
-
children: "Special Instructions"
|
|
315
|
-
}), /* @__PURE__ */ F("div", {
|
|
316
|
-
className: "rounded-md bg-yellow-500/10 border border-yellow-500/20 p-4",
|
|
317
|
-
children: /* @__PURE__ */ I("p", {
|
|
318
|
-
className: "text-sm text-yellow-700 dark:text-yellow-300 flex items-start gap-2",
|
|
319
|
-
children: [/* @__PURE__ */ F(d, { className: "h-4 w-4 shrink-0 mt-0.5 text-yellow-600 dark:text-yellow-400" }), w.specialInstructions]
|
|
320
|
-
})
|
|
321
|
-
})]
|
|
322
|
-
}),
|
|
323
|
-
w.photos && w.photos.length > 0 && /* @__PURE__ */ I("div", {
|
|
324
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
325
|
-
children: [/* @__PURE__ */ I("h3", {
|
|
326
|
-
className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
327
|
-
children: [/* @__PURE__ */ F(m, { className: "h-4 w-4 text-text-secondary" }), "Reference Photos"]
|
|
328
|
-
}), /* @__PURE__ */ F("div", {
|
|
329
|
-
className: "grid grid-cols-2 md:grid-cols-3 gap-3",
|
|
330
|
-
children: w.photos.map((e, t) => /* @__PURE__ */ F("img", {
|
|
331
|
-
src: e,
|
|
332
|
-
alt: `Reference ${t + 1}`,
|
|
333
|
-
className: "w-full h-32 object-cover rounded-lg border border-border-subtle"
|
|
334
|
-
}, t))
|
|
335
|
-
})]
|
|
336
|
-
}),
|
|
337
|
-
/* @__PURE__ */ I("div", {
|
|
338
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
|
|
339
|
-
children: [
|
|
340
|
-
/* @__PURE__ */ I("h3", {
|
|
341
|
-
className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
342
|
-
children: [/* @__PURE__ */ F(A, { className: "h-4 w-4 text-text-secondary" }), "Task Notes"]
|
|
343
|
-
}),
|
|
344
|
-
/* @__PURE__ */ F("textarea", {
|
|
345
|
-
value: H,
|
|
346
|
-
onChange: (e) => U(e.target.value),
|
|
347
|
-
placeholder: "Add your notes about this task...",
|
|
348
|
-
rows: 4,
|
|
349
|
-
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"
|
|
350
|
-
}),
|
|
351
|
-
/* @__PURE__ */ I("button", {
|
|
352
|
-
type: "button",
|
|
353
|
-
onClick: Y,
|
|
354
|
-
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",
|
|
355
|
-
children: [/* @__PURE__ */ F(D, { className: "h-3.5 w-3.5" }), "Save Notes"]
|
|
356
|
-
})
|
|
357
|
-
]
|
|
358
|
-
})
|
|
359
|
-
]
|
|
360
|
-
}), /* @__PURE__ */ I("div", {
|
|
361
|
-
className: "space-y-6",
|
|
362
|
-
children: [
|
|
363
|
-
/* @__PURE__ */ I("div", {
|
|
364
|
-
className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
|
|
365
|
-
children: [/* @__PURE__ */ F("h3", {
|
|
366
|
-
className: "text-base font-semibold text-text-primary mb-3",
|
|
367
|
-
children: "Task Details"
|
|
368
|
-
}), /* @__PURE__ */ I("div", {
|
|
495
|
+
})]
|
|
496
|
+
}),
|
|
497
|
+
/* @__PURE__ */ I("div", {
|
|
369
498
|
className: "space-y-3",
|
|
370
499
|
children: [
|
|
371
|
-
/* @__PURE__ */ I("
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}), /* @__PURE__ */ F("p", {
|
|
377
|
-
className: "text-sm font-medium font-mono text-text-primary",
|
|
378
|
-
children: w.orderId
|
|
379
|
-
})] })]
|
|
380
|
-
}),
|
|
381
|
-
/* @__PURE__ */ I("div", {
|
|
382
|
-
className: "flex items-center gap-2",
|
|
383
|
-
children: [/* @__PURE__ */ F(O, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
384
|
-
className: "text-xs text-text-secondary",
|
|
385
|
-
children: "Cart"
|
|
386
|
-
}), /* @__PURE__ */ F("p", {
|
|
387
|
-
className: "text-sm font-medium text-text-primary",
|
|
388
|
-
children: w.cartName
|
|
389
|
-
})] })]
|
|
390
|
-
}),
|
|
391
|
-
/* @__PURE__ */ I("div", {
|
|
392
|
-
className: "flex items-center gap-2",
|
|
393
|
-
children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
394
|
-
className: "text-xs text-text-secondary",
|
|
395
|
-
children: "Due At"
|
|
396
|
-
}), /* @__PURE__ */ F("p", {
|
|
397
|
-
className: "text-sm text-text-primary",
|
|
398
|
-
children: o(w.dueTime)
|
|
399
|
-
})] })]
|
|
400
|
-
}),
|
|
401
|
-
/* @__PURE__ */ I("div", {
|
|
402
|
-
className: "flex items-center gap-2",
|
|
403
|
-
children: [/* @__PURE__ */ F(b, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
404
|
-
className: "text-xs text-text-secondary",
|
|
405
|
-
children: "Earnings"
|
|
406
|
-
}), /* @__PURE__ */ F("p", {
|
|
407
|
-
className: "text-sm font-medium text-green-600 dark:text-green-400",
|
|
408
|
-
children: a(w.earnings, { minimumFractionDigits: 0 })
|
|
409
|
-
})] })]
|
|
500
|
+
w.status === "pending" && /* @__PURE__ */ I("button", {
|
|
501
|
+
type: "button",
|
|
502
|
+
onClick: J,
|
|
503
|
+
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",
|
|
504
|
+
children: [/* @__PURE__ */ F(E, { className: "h-4 w-4" }), "Start Task"]
|
|
410
505
|
}),
|
|
411
|
-
w.
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}), /* @__PURE__ */ I("p", {
|
|
417
|
-
className: "text-sm text-text-primary",
|
|
418
|
-
children: [w.distance, " km"]
|
|
419
|
-
})] })]
|
|
506
|
+
w.status === "in_progress" && /* @__PURE__ */ I("button", {
|
|
507
|
+
type: "button",
|
|
508
|
+
onClick: Y,
|
|
509
|
+
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",
|
|
510
|
+
children: [/* @__PURE__ */ F(h, { className: "h-4 w-4" }), "Complete Task"]
|
|
420
511
|
}),
|
|
421
|
-
/* @__PURE__ */ I("
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}), /* @__PURE__ */ F("p", {
|
|
427
|
-
className: "text-sm text-text-primary",
|
|
428
|
-
children: o(w.assignedTime)
|
|
429
|
-
})] })]
|
|
512
|
+
/* @__PURE__ */ I("button", {
|
|
513
|
+
type: "button",
|
|
514
|
+
onClick: () => g("/worker/orders"),
|
|
515
|
+
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",
|
|
516
|
+
children: [/* @__PURE__ */ F(f, { className: "h-4 w-4" }), "Back to Tasks"]
|
|
430
517
|
})
|
|
431
518
|
]
|
|
432
|
-
})
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
className: "text-base font-semibold text-text-primary mb-4",
|
|
438
|
-
children: "Status Timeline"
|
|
439
|
-
}), /* @__PURE__ */ F("div", {
|
|
440
|
-
className: "relative",
|
|
441
|
-
children: X.map((e, n) => {
|
|
442
|
-
let r = n === X.length - 1, i = e.completed ? h : _;
|
|
443
|
-
return /* @__PURE__ */ I("div", {
|
|
444
|
-
className: "flex gap-3",
|
|
445
|
-
children: [/* @__PURE__ */ I("div", {
|
|
446
|
-
className: "flex flex-col items-center",
|
|
447
|
-
children: [/* @__PURE__ */ F("div", {
|
|
448
|
-
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"),
|
|
449
|
-
children: /* @__PURE__ */ F(i, { className: "h-3.5 w-3.5" })
|
|
450
|
-
}), !r && /* @__PURE__ */ F("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-green-500/30" : "bg-border") })]
|
|
451
|
-
}), /* @__PURE__ */ I("div", {
|
|
452
|
-
className: t("pb-5", r && "pb-0"),
|
|
453
|
-
children: [/* @__PURE__ */ F("p", {
|
|
454
|
-
className: "text-sm font-medium text-text-primary",
|
|
455
|
-
children: e.label
|
|
456
|
-
}), /* @__PURE__ */ F("p", {
|
|
457
|
-
className: "mt-0.5 text-xs text-text-secondary",
|
|
458
|
-
children: e.timestamp ? o(e.timestamp) : "Pending"
|
|
459
|
-
})]
|
|
460
|
-
})]
|
|
461
|
-
}, e.status);
|
|
462
|
-
})
|
|
463
|
-
})]
|
|
464
|
-
}),
|
|
465
|
-
/* @__PURE__ */ I("div", {
|
|
466
|
-
className: "space-y-3",
|
|
467
|
-
children: [
|
|
468
|
-
w.status === "pending" && /* @__PURE__ */ I("button", {
|
|
469
|
-
type: "button",
|
|
470
|
-
onClick: G,
|
|
471
|
-
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",
|
|
472
|
-
children: [/* @__PURE__ */ F(E, { className: "h-4 w-4" }), "Start Task"]
|
|
473
|
-
}),
|
|
474
|
-
w.status === "in_progress" && /* @__PURE__ */ I("button", {
|
|
475
|
-
type: "button",
|
|
476
|
-
onClick: K,
|
|
477
|
-
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",
|
|
478
|
-
children: [/* @__PURE__ */ F(h, { className: "h-4 w-4" }), "Complete Task"]
|
|
479
|
-
}),
|
|
480
|
-
/* @__PURE__ */ I("button", {
|
|
481
|
-
type: "button",
|
|
482
|
-
onClick: () => g("/worker/orders"),
|
|
483
|
-
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",
|
|
484
|
-
children: [/* @__PURE__ */ F(f, { className: "h-4 w-4" }), "Back to Tasks"]
|
|
485
|
-
})
|
|
486
|
-
]
|
|
487
|
-
})
|
|
488
|
-
]
|
|
489
|
-
})]
|
|
490
|
-
})]
|
|
519
|
+
})
|
|
520
|
+
]
|
|
521
|
+
})]
|
|
522
|
+
})
|
|
523
|
+
]
|
|
491
524
|
})
|
|
492
525
|
});
|
|
493
526
|
}
|
|
494
527
|
//#endregion
|
|
495
|
-
export {
|
|
528
|
+
export { W as TaskDetailsPage };
|
|
496
529
|
|
|
497
530
|
//# sourceMappingURL=TaskDetailsPage.js.map
|