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