@burdenoff/microfe-coolandlovely 2026.624.1 → 2026.625.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.
- package/dist/coolandlovely/components/EmptyState.js +17 -21
- package/dist/coolandlovely/components/EmptyState.js.map +1 -1
- package/dist/coolandlovely/components/InvestmentCard.js +25 -23
- package/dist/coolandlovely/components/InvestmentCard.js.map +1 -1
- package/dist/coolandlovely/components/MetricsCard.js +18 -12
- package/dist/coolandlovely/components/MetricsCard.js.map +1 -1
- package/dist/coolandlovely/components/PageLayout.js +38 -19
- package/dist/coolandlovely/components/PageLayout.js.map +1 -1
- package/dist/coolandlovely/components/RatingDisplay.js +3 -3
- package/dist/coolandlovely/components/RatingDisplay.js.map +1 -1
- package/dist/coolandlovely/components/StatusBadge.js +36 -16
- package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
- package/dist/coolandlovely/pages/HomePage.js +219 -204
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +98 -92
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +111 -77
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +49 -43
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +234 -229
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +67 -62
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +235 -230
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/CartManagementPage.js +291 -286
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +287 -282
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +108 -100
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +260 -255
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +596 -554
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +187 -182
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +229 -221
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +675 -674
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +525 -524
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +264 -266
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +137 -137
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +81 -75
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/SettingsPage.js +745 -736
- package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +394 -357
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDetailPage.js +189 -186
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +222 -211
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +219 -222
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +446 -404
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +525 -488
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +522 -513
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/FavoritesPage.js +94 -84
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +121 -112
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +312 -275
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +90 -84
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +99 -89
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +74 -68
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +317 -279
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +249 -243
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +87 -81
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +359 -323
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +115 -109
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +179 -146
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +397 -392
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +364 -327
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +580 -543
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +114 -109
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +115 -110
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +100 -95
- package/dist/coolandlovely/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/coolandlovely/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,16 +21,16 @@ function L(e) {
|
|
|
20
21
|
default: return y;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function V(e) {
|
|
24
25
|
switch (e) {
|
|
25
|
-
case "urgent": return "bg-
|
|
26
|
-
case "high": return "bg-orange-
|
|
27
|
-
case "medium": return "bg-
|
|
28
|
-
case "low": return "bg-
|
|
26
|
+
case "urgent": return "bg-status-error-bg-subtle/20 text-status-error-text";
|
|
27
|
+
case "high": return "bg-accent-orange-subtle/20 text-accent-orange";
|
|
28
|
+
case "medium": return "bg-status-warning-bg-subtle/20 text-status-warning-text";
|
|
29
|
+
case "low": return "bg-status-success-bg-subtle/20 text-status-success-text";
|
|
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", {
|
|
@@ -142,9 +143,9 @@ function V() {
|
|
|
142
143
|
if (!w) return /* @__PURE__ */ F(n, {
|
|
143
144
|
title: "Task Not Found",
|
|
144
145
|
children: /* @__PURE__ */ F(i, {
|
|
145
|
-
|
|
146
|
+
illustration: "empty-search",
|
|
146
147
|
title: "Task not found",
|
|
147
|
-
description: `No task found with ID
|
|
148
|
+
description: `No task found with ID"${p}".`,
|
|
148
149
|
action: /* @__PURE__ */ F("button", {
|
|
149
150
|
type: "button",
|
|
150
151
|
onClick: () => g("/worker/orders"),
|
|
@@ -153,8 +154,8 @@ function V() {
|
|
|
153
154
|
})
|
|
154
155
|
})
|
|
155
156
|
});
|
|
156
|
-
let
|
|
157
|
-
return /* @__PURE__ */
|
|
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,332 +166,368 @@ function V() {
|
|
|
165
166
|
}), /* @__PURE__ */ F("span", { children: "Task Details" })]
|
|
166
167
|
}),
|
|
167
168
|
description: "Manage and track your assigned task",
|
|
168
|
-
children:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ F(z, {
|
|
171
|
+
className: "mb-6",
|
|
172
|
+
icon: /* @__PURE__ */ F(y, { className: "h-4 w-4" }),
|
|
173
|
+
children: "The full brief for a single task: what to do, where, by when, and who it's for. Start the task when you begin, mark it complete when done, call or navigate to the customer, and log notes — so nothing about the job lives in your head alone."
|
|
174
|
+
}),
|
|
175
|
+
/* @__PURE__ */ F(R, {
|
|
176
|
+
className: "mb-6",
|
|
177
|
+
storageKey: "coolandlovely-task-details",
|
|
178
|
+
steps: [
|
|
179
|
+
{
|
|
180
|
+
id: "start",
|
|
181
|
+
label: "Start the task",
|
|
182
|
+
description: "Mark the task in progress when you begin work.",
|
|
183
|
+
icon: /* @__PURE__ */ F(E, { className: "h-4 w-4" }),
|
|
184
|
+
onClick: J,
|
|
185
|
+
done: w.status !== "pending"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: "navigate",
|
|
189
|
+
label: "Get directions",
|
|
190
|
+
description: "Open the task location in maps to find your way there.",
|
|
191
|
+
icon: /* @__PURE__ */ F(S, { className: "h-4 w-4" }),
|
|
192
|
+
onClick: Z
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: "complete",
|
|
196
|
+
label: "Complete the task",
|
|
197
|
+
description: "Wrap up and mark the task done once finished.",
|
|
198
|
+
icon: /* @__PURE__ */ F(h, { className: "h-4 w-4" }),
|
|
199
|
+
onClick: Y,
|
|
200
|
+
done: w.status === "completed"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ I("div", {
|
|
205
|
+
className: "space-y-6",
|
|
172
206
|
children: [/* @__PURE__ */ I("div", {
|
|
173
|
-
className: "
|
|
207
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
208
|
+
children: [/* @__PURE__ */ I("div", {
|
|
209
|
+
className: "flex items-start justify-between mb-4",
|
|
210
|
+
children: [/* @__PURE__ */ I("div", {
|
|
211
|
+
className: "flex items-start gap-3",
|
|
212
|
+
children: [/* @__PURE__ */ F("div", {
|
|
213
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
214
|
+
children: /* @__PURE__ */ F(ee, { className: "h-5 w-5 text-text-secondary" })
|
|
215
|
+
}), /* @__PURE__ */ I("div", { children: [
|
|
216
|
+
/* @__PURE__ */ F("h2", {
|
|
217
|
+
className: "text-xl font-bold text-text-primary",
|
|
218
|
+
children: w.title
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ F("p", {
|
|
221
|
+
className: "text-sm text-text-secondary mt-1",
|
|
222
|
+
children: w.description
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ I("div", {
|
|
225
|
+
className: "flex flex-wrap items-center gap-2 mt-3",
|
|
226
|
+
children: [
|
|
227
|
+
/* @__PURE__ */ F("span", {
|
|
228
|
+
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium uppercase", V(w.priority)),
|
|
229
|
+
children: w.priority
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ F(r, { status: w.status }),
|
|
232
|
+
/* @__PURE__ */ I("span", {
|
|
233
|
+
className: "text-xs text-text-secondary flex items-center gap-1",
|
|
234
|
+
children: [
|
|
235
|
+
/* @__PURE__ */ F(v, { className: "h-3 w-3" }),
|
|
236
|
+
w.estimatedTime,
|
|
237
|
+
" min"
|
|
238
|
+
]
|
|
239
|
+
})
|
|
240
|
+
]
|
|
241
|
+
})
|
|
242
|
+
] })]
|
|
243
|
+
}), /* @__PURE__ */ I("div", {
|
|
244
|
+
className: "text-right shrink-0",
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ F("p", {
|
|
247
|
+
className: "text-xs text-text-secondary",
|
|
248
|
+
children: "Assigned by"
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ F("p", {
|
|
251
|
+
className: "text-sm font-medium text-text-primary",
|
|
252
|
+
children: w.assignedBy
|
|
253
|
+
}),
|
|
254
|
+
/* @__PURE__ */ F("p", {
|
|
255
|
+
className: "text-xs text-text-secondary mt-1",
|
|
256
|
+
children: U(w.assignedTime)
|
|
257
|
+
})
|
|
258
|
+
]
|
|
259
|
+
})]
|
|
260
|
+
}), w.dueTime && w.status !== "completed" && /* @__PURE__ */ F("div", {
|
|
261
|
+
className: "rounded-md bg-status-warning-bg-subtle/10 border border-status-warning-border/20 p-3",
|
|
262
|
+
children: /* @__PURE__ */ I("div", {
|
|
263
|
+
className: "flex items-center gap-2",
|
|
264
|
+
children: [/* @__PURE__ */ F(j, { className: "h-4 w-4 text-status-warning-text shrink-0" }), /* @__PURE__ */ I("span", {
|
|
265
|
+
className: "text-xs font-medium text-status-warning-text",
|
|
266
|
+
children: ["Due by ", U(w.dueTime)]
|
|
267
|
+
})]
|
|
268
|
+
})
|
|
269
|
+
})]
|
|
270
|
+
}), /* @__PURE__ */ I("div", {
|
|
271
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
174
272
|
children: [/* @__PURE__ */ I("div", {
|
|
175
|
-
className: "
|
|
176
|
-
children: [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
273
|
+
className: "lg:col-span-2 space-y-6",
|
|
274
|
+
children: [
|
|
275
|
+
/* @__PURE__ */ I("div", {
|
|
276
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
277
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
278
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
279
|
+
children: "Customer Information"
|
|
280
|
+
}), /* @__PURE__ */ I("div", {
|
|
281
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-5",
|
|
282
|
+
children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", {
|
|
283
|
+
className: "space-y-3",
|
|
284
|
+
children: /* @__PURE__ */ I("div", {
|
|
285
|
+
className: "flex items-center gap-3",
|
|
286
|
+
children: [/* @__PURE__ */ F("div", {
|
|
287
|
+
className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
|
|
288
|
+
children: /* @__PURE__ */ F(N, { className: "h-5 w-5" })
|
|
289
|
+
}), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
290
|
+
className: "text-sm font-medium text-text-primary",
|
|
291
|
+
children: w.customerInfo.name
|
|
292
|
+
}), /* @__PURE__ */ F("p", {
|
|
293
|
+
className: "text-xs text-text-secondary",
|
|
294
|
+
children: w.customerInfo.phone
|
|
295
|
+
})] })]
|
|
296
|
+
})
|
|
297
|
+
}), /* @__PURE__ */ I("div", {
|
|
298
|
+
className: "flex gap-2 mt-4",
|
|
299
|
+
children: [/* @__PURE__ */ I("button", {
|
|
300
|
+
type: "button",
|
|
301
|
+
onClick: X,
|
|
302
|
+
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",
|
|
303
|
+
children: [/* @__PURE__ */ F(T, { className: "h-3.5 w-3.5" }), "Call Customer"]
|
|
304
|
+
}), /* @__PURE__ */ I("button", {
|
|
305
|
+
type: "button",
|
|
306
|
+
onClick: Z,
|
|
307
|
+
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",
|
|
308
|
+
children: [/* @__PURE__ */ F(C, { className: "h-3.5 w-3.5" }), "Navigate"]
|
|
309
|
+
})]
|
|
310
|
+
})] }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
311
|
+
className: "text-xs text-text-secondary mb-2",
|
|
312
|
+
children: "Delivery Address"
|
|
313
|
+
}), /* @__PURE__ */ F("div", {
|
|
314
|
+
className: "rounded-md bg-bg-sunken/50 p-3",
|
|
315
|
+
children: /* @__PURE__ */ I("p", {
|
|
316
|
+
className: "text-xs text-text-primary flex items-start gap-2",
|
|
317
|
+
children: [/* @__PURE__ */ F(S, { className: "h-3.5 w-3.5 shrink-0 mt-0.5 text-text-secondary" }), w.customerInfo.address]
|
|
318
|
+
})
|
|
319
|
+
})] })]
|
|
320
|
+
})]
|
|
321
|
+
}),
|
|
322
|
+
w.orderItems.length > 0 && /* @__PURE__ */ I("div", {
|
|
323
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
324
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
325
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
326
|
+
children: "Order Items"
|
|
327
|
+
}), /* @__PURE__ */ F("div", {
|
|
328
|
+
className: "space-y-2",
|
|
329
|
+
children: w.orderItems.map((e, t) => /* @__PURE__ */ F("div", {
|
|
330
|
+
className: "flex items-start justify-between p-3 rounded-md bg-bg-sunken/50",
|
|
331
|
+
children: /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ I("p", {
|
|
332
|
+
className: "text-sm font-medium text-text-primary",
|
|
333
|
+
children: [
|
|
334
|
+
e.quantity,
|
|
335
|
+
"x ",
|
|
336
|
+
e.name
|
|
337
|
+
]
|
|
338
|
+
}), e.specialInstructions && /* @__PURE__ */ I("p", {
|
|
339
|
+
className: "text-xs text-text-secondary mt-0.5",
|
|
340
|
+
children: ["Note: ", e.specialInstructions]
|
|
341
|
+
})] })
|
|
342
|
+
}, t))
|
|
343
|
+
})]
|
|
183
344
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
className: "
|
|
186
|
-
children:
|
|
345
|
+
w.specialInstructions && /* @__PURE__ */ I("div", {
|
|
346
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
347
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
348
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
349
|
+
children: "Special Instructions"
|
|
350
|
+
}), /* @__PURE__ */ F("div", {
|
|
351
|
+
className: "rounded-md bg-status-warning-bg-subtle/10 border border-status-warning-border/20 p-4",
|
|
352
|
+
children: /* @__PURE__ */ I("p", {
|
|
353
|
+
className: "text-sm text-status-warning-text flex items-start gap-2",
|
|
354
|
+
children: [/* @__PURE__ */ F(d, { className: "h-4 w-4 shrink-0 mt-0.5 text-status-warning-text" }), w.specialInstructions]
|
|
355
|
+
})
|
|
356
|
+
})]
|
|
357
|
+
}),
|
|
358
|
+
w.photos && w.photos.length > 0 && /* @__PURE__ */ I("div", {
|
|
359
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
360
|
+
children: [/* @__PURE__ */ I("h3", {
|
|
361
|
+
className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
362
|
+
children: [/* @__PURE__ */ F(m, { className: "h-4 w-4 text-text-secondary" }), "Reference Photos"]
|
|
363
|
+
}), /* @__PURE__ */ F("div", {
|
|
364
|
+
className: "grid grid-cols-2 md:grid-cols-3 gap-3",
|
|
365
|
+
children: w.photos.map((e, t) => /* @__PURE__ */ F("img", {
|
|
366
|
+
src: e,
|
|
367
|
+
alt: `Reference ${t + 1}`,
|
|
368
|
+
className: "w-full h-32 object-cover rounded-lg border border-border-subtle"
|
|
369
|
+
}, t))
|
|
370
|
+
})]
|
|
187
371
|
}),
|
|
188
372
|
/* @__PURE__ */ I("div", {
|
|
189
|
-
className: "
|
|
373
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
190
374
|
children: [
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
className:
|
|
193
|
-
children: w
|
|
375
|
+
/* @__PURE__ */ I("h3", {
|
|
376
|
+
className: "text-base font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
377
|
+
children: [/* @__PURE__ */ F(A, { className: "h-4 w-4 text-text-secondary" }), "Task Notes"]
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ F("textarea", {
|
|
380
|
+
value: G,
|
|
381
|
+
onChange: (e) => K(e.target.value),
|
|
382
|
+
placeholder: "Add your notes about this task...",
|
|
383
|
+
rows: 4,
|
|
384
|
+
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-accent-blue-subtle/40 resize-none"
|
|
194
385
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
w.estimatedTime,
|
|
201
|
-
" min"
|
|
202
|
-
]
|
|
386
|
+
/* @__PURE__ */ I("button", {
|
|
387
|
+
type: "button",
|
|
388
|
+
onClick: Q,
|
|
389
|
+
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",
|
|
390
|
+
children: [/* @__PURE__ */ F(D, { className: "h-3.5 w-3.5" }), "Save Notes"]
|
|
203
391
|
})
|
|
204
392
|
]
|
|
205
393
|
})
|
|
206
|
-
]
|
|
394
|
+
]
|
|
207
395
|
}), /* @__PURE__ */ I("div", {
|
|
208
|
-
className: "
|
|
396
|
+
className: "space-y-6",
|
|
209
397
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
className: "
|
|
212
|
-
children: "
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
className: "text-sm font-medium text-text-primary",
|
|
216
|
-
children: w.assignedBy
|
|
217
|
-
}),
|
|
218
|
-
/* @__PURE__ */ F("p", {
|
|
219
|
-
className: "text-xs text-text-secondary mt-1",
|
|
220
|
-
children: B(w.assignedTime)
|
|
221
|
-
})
|
|
222
|
-
]
|
|
223
|
-
})]
|
|
224
|
-
}), w.dueTime && w.status !== "completed" && /* @__PURE__ */ F("div", {
|
|
225
|
-
className: "rounded-md bg-yellow-500/10 border border-yellow-500/20 p-3",
|
|
226
|
-
children: /* @__PURE__ */ I("div", {
|
|
227
|
-
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)]
|
|
231
|
-
})]
|
|
232
|
-
})
|
|
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
|
-
})
|
|
398
|
+
/* @__PURE__ */ I("div", {
|
|
399
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
400
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
401
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
402
|
+
children: "Task Details"
|
|
261
403
|
}), /* @__PURE__ */ I("div", {
|
|
262
|
-
className: "
|
|
263
|
-
children: [
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
404
|
+
className: "space-y-3",
|
|
405
|
+
children: [
|
|
406
|
+
/* @__PURE__ */ I("div", {
|
|
407
|
+
className: "flex items-center gap-2",
|
|
408
|
+
children: [/* @__PURE__ */ F(y, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
409
|
+
className: "text-xs text-text-secondary",
|
|
410
|
+
children: "Order ID"
|
|
411
|
+
}), /* @__PURE__ */ F("p", {
|
|
412
|
+
className: "text-sm font-medium font-mono text-text-primary",
|
|
413
|
+
children: w.orderId
|
|
414
|
+
})] })]
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ I("div", {
|
|
417
|
+
className: "flex items-center gap-2",
|
|
418
|
+
children: [/* @__PURE__ */ F(O, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
419
|
+
className: "text-xs text-text-secondary",
|
|
420
|
+
children: "Cart"
|
|
421
|
+
}), /* @__PURE__ */ F("p", {
|
|
422
|
+
className: "text-sm font-medium text-text-primary",
|
|
423
|
+
children: w.cartName
|
|
424
|
+
})] })]
|
|
425
|
+
}),
|
|
426
|
+
/* @__PURE__ */ I("div", {
|
|
427
|
+
className: "flex items-center gap-2",
|
|
428
|
+
children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
429
|
+
className: "text-xs text-text-secondary",
|
|
430
|
+
children: "Due At"
|
|
431
|
+
}), /* @__PURE__ */ F("p", {
|
|
432
|
+
className: "text-sm text-text-primary",
|
|
433
|
+
children: o(w.dueTime)
|
|
434
|
+
})] })]
|
|
435
|
+
}),
|
|
436
|
+
/* @__PURE__ */ I("div", {
|
|
437
|
+
className: "flex items-center gap-2",
|
|
438
|
+
children: [/* @__PURE__ */ F(b, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
439
|
+
className: "text-xs text-text-secondary",
|
|
440
|
+
children: "Earnings"
|
|
441
|
+
}), /* @__PURE__ */ F("p", {
|
|
442
|
+
className: "text-sm font-medium text-status-success-text",
|
|
443
|
+
children: a(w.earnings, { minimumFractionDigits: 0 })
|
|
444
|
+
})] })]
|
|
445
|
+
}),
|
|
446
|
+
w.distance != null && /* @__PURE__ */ I("div", {
|
|
447
|
+
className: "flex items-center gap-2",
|
|
448
|
+
children: [/* @__PURE__ */ F(C, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
449
|
+
className: "text-xs text-text-secondary",
|
|
450
|
+
children: "Distance"
|
|
451
|
+
}), /* @__PURE__ */ I("p", {
|
|
452
|
+
className: "text-sm text-text-primary",
|
|
453
|
+
children: [w.distance, " km"]
|
|
454
|
+
})] })]
|
|
455
|
+
}),
|
|
456
|
+
/* @__PURE__ */ I("div", {
|
|
457
|
+
className: "flex items-center gap-2",
|
|
458
|
+
children: [/* @__PURE__ */ F(v, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
|
|
459
|
+
className: "text-xs text-text-secondary",
|
|
460
|
+
children: "Assigned At"
|
|
461
|
+
}), /* @__PURE__ */ F("p", {
|
|
462
|
+
className: "text-sm text-text-primary",
|
|
463
|
+
children: o(w.assignedTime)
|
|
464
|
+
})] })]
|
|
465
|
+
})
|
|
466
|
+
]
|
|
467
|
+
})]
|
|
468
|
+
}),
|
|
469
|
+
/* @__PURE__ */ I(L, {
|
|
470
|
+
className: "p-5",
|
|
471
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
472
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
473
|
+
children: "Status Timeline"
|
|
277
474
|
}), /* @__PURE__ */ F("div", {
|
|
278
|
-
className: "
|
|
279
|
-
children:
|
|
280
|
-
|
|
281
|
-
|
|
475
|
+
className: "relative",
|
|
476
|
+
children: $.map((e, n) => {
|
|
477
|
+
let r = n === $.length - 1, i = e.completed ? h : _;
|
|
478
|
+
return /* @__PURE__ */ I("div", {
|
|
479
|
+
className: "flex gap-3",
|
|
480
|
+
children: [/* @__PURE__ */ I("div", {
|
|
481
|
+
className: "flex flex-col items-center",
|
|
482
|
+
children: [/* @__PURE__ */ F("div", {
|
|
483
|
+
className: t("flex h-7 w-7 shrink-0 items-center justify-center rounded-full", e.completed ? "bg-status-success-bg-subtle/10 text-status-success-text" : "bg-bg-sunken text-text-secondary"),
|
|
484
|
+
children: /* @__PURE__ */ F(i, { className: "h-3.5 w-3.5" })
|
|
485
|
+
}), !r && /* @__PURE__ */ F("div", { className: t("w-0.5 flex-1 my-1", e.completed ? "bg-status-success-bg-subtle/30" : "bg-border") })]
|
|
486
|
+
}), /* @__PURE__ */ I("div", {
|
|
487
|
+
className: t("pb-5", r && "pb-0"),
|
|
488
|
+
children: [/* @__PURE__ */ F("p", {
|
|
489
|
+
className: "text-sm font-medium text-text-primary",
|
|
490
|
+
children: e.label
|
|
491
|
+
}), /* @__PURE__ */ F("p", {
|
|
492
|
+
className: "mt-0.5 text-xs text-text-secondary",
|
|
493
|
+
children: e.timestamp ? o(e.timestamp) : "Pending"
|
|
494
|
+
})]
|
|
495
|
+
})]
|
|
496
|
+
}, e.status);
|
|
282
497
|
})
|
|
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", {
|
|
340
|
-
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", {
|
|
498
|
+
})]
|
|
499
|
+
}),
|
|
500
|
+
/* @__PURE__ */ I("div", {
|
|
368
501
|
className: "space-y-3",
|
|
369
502
|
children: [
|
|
370
|
-
/* @__PURE__ */ I("
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
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
|
-
})] })]
|
|
503
|
+
w.status === "pending" && /* @__PURE__ */ I("button", {
|
|
504
|
+
type: "button",
|
|
505
|
+
onClick: J,
|
|
506
|
+
className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-accent-blue-subtle/10 px-4 py-3 text-sm font-medium text-accent-blue hover:bg-accent-blue-subtle/20 transition-colors",
|
|
507
|
+
children: [/* @__PURE__ */ F(E, { className: "h-4 w-4" }), "Start Task"]
|
|
409
508
|
}),
|
|
410
|
-
w.
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}), /* @__PURE__ */ I("p", {
|
|
416
|
-
className: "text-sm text-text-primary",
|
|
417
|
-
children: [w.distance, " km"]
|
|
418
|
-
})] })]
|
|
509
|
+
w.status === "in_progress" && /* @__PURE__ */ I("button", {
|
|
510
|
+
type: "button",
|
|
511
|
+
onClick: Y,
|
|
512
|
+
className: "w-full inline-flex items-center justify-center gap-2 rounded-lg bg-status-success-bg-subtle/10 px-4 py-3 text-sm font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
513
|
+
children: [/* @__PURE__ */ F(h, { className: "h-4 w-4" }), "Complete Task"]
|
|
419
514
|
}),
|
|
420
|
-
/* @__PURE__ */ I("
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}), /* @__PURE__ */ F("p", {
|
|
426
|
-
className: "text-sm text-text-primary",
|
|
427
|
-
children: o(w.assignedTime)
|
|
428
|
-
})] })]
|
|
515
|
+
/* @__PURE__ */ I("button", {
|
|
516
|
+
type: "button",
|
|
517
|
+
onClick: () => g("/worker/orders"),
|
|
518
|
+
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",
|
|
519
|
+
children: [/* @__PURE__ */ F(f, { className: "h-4 w-4" }), "Back to Tasks"]
|
|
429
520
|
})
|
|
430
521
|
]
|
|
431
|
-
})
|
|
432
|
-
|
|
433
|
-
|
|
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", {
|
|
453
|
-
className: "text-sm font-medium text-text-primary",
|
|
454
|
-
children: e.label
|
|
455
|
-
}), /* @__PURE__ */ F("p", {
|
|
456
|
-
className: "mt-0.5 text-xs text-text-secondary",
|
|
457
|
-
children: e.timestamp ? o(e.timestamp) : "Pending"
|
|
458
|
-
})]
|
|
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
|
-
]
|
|
522
|
+
})
|
|
523
|
+
]
|
|
524
|
+
})]
|
|
488
525
|
})]
|
|
489
|
-
})
|
|
490
|
-
|
|
526
|
+
})
|
|
527
|
+
]
|
|
491
528
|
});
|
|
492
529
|
}
|
|
493
530
|
//#endregion
|
|
494
|
-
export {
|
|
531
|
+
export { W as TaskDetailsPage };
|
|
495
532
|
|
|
496
533
|
//# sourceMappingURL=TaskDetailsPage.js.map
|