@burdenoff/microfe-coolandlovely 2026.625.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/pages/HomePage.js +263 -258
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +67 -61
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +79 -45
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +39 -33
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +227 -222
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +65 -60
- 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 +268 -263
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +268 -263
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +92 -84
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +257 -252
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +587 -548
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +171 -166
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +219 -211
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +671 -670
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +515 -514
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +244 -246
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +96 -96
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +50 -44
- 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 +179 -176
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +215 -204
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +212 -215
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +438 -396
- 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 +86 -76
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +118 -109
- 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 +82 -76
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +83 -73
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +61 -55
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +293 -255
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +238 -232
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +61 -55
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +356 -320
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +107 -101
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +170 -137
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +386 -381
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +359 -322
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +574 -537
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +81 -76
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +82 -77
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +78 -73
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -7,8 +7,9 @@ import { formatCurrency as a } from "../../utils/formatters.js";
|
|
|
7
7
|
import { useCallback as o, useEffect as s, useState as c } from "react";
|
|
8
8
|
import { AlertTriangle as l, ArrowRight as u, CheckCircle2 as d, ChefHat as f, ClipboardList as p, CreditCard as m, Loader2 as h, MapPin as g, Navigation as _, Package as v, Phone as y, PlayCircle as b, ShoppingBag as x, Star as S, Truck as C } from "lucide-react";
|
|
9
9
|
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
10
11
|
//#region src/coolandlovely/pages/worker/WorkerOrdersPage.tsx
|
|
11
|
-
var
|
|
12
|
+
var O = [
|
|
12
13
|
{
|
|
13
14
|
id: "task-001",
|
|
14
15
|
orderId: "ORD-2024-001",
|
|
@@ -124,11 +125,11 @@ var E = [
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
];
|
|
127
|
-
function
|
|
128
|
+
function k(e) {
|
|
128
129
|
let t = /* @__PURE__ */ new Date(), n = new Date(e), r = Math.floor((n.getTime() - t.getTime()) / (1e3 * 60));
|
|
129
130
|
return r < 0 ? "Overdue" : r < 60 ? `${r} min` : `${Math.floor(r / 60)}h ${r % 60}m`;
|
|
130
131
|
}
|
|
131
|
-
function
|
|
132
|
+
function A(e) {
|
|
132
133
|
switch (e) {
|
|
133
134
|
case "delivery": return {
|
|
134
135
|
icon: C,
|
|
@@ -152,7 +153,7 @@ function O(e) {
|
|
|
152
153
|
};
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
+
function j(e) {
|
|
156
157
|
switch (e) {
|
|
157
158
|
case "urgent": return "bg-status-error-bg-subtle/20 text-status-error-text";
|
|
158
159
|
case "high": return "bg-accent-orange-subtle/20 text-accent-orange";
|
|
@@ -161,35 +162,35 @@ function k(e) {
|
|
|
161
162
|
default: return "bg-secondary text-secondary-foreground";
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
var
|
|
165
|
-
let { navigateTo: f } = e(), [v, x] = c(!0), [C,
|
|
165
|
+
var M = () => {
|
|
166
|
+
let { navigateTo: f } = e(), [v, x] = c(!0), [C, M] = c([]), [N, P] = c(null), [F, I] = c({
|
|
166
167
|
status: "",
|
|
167
168
|
type: "",
|
|
168
169
|
priority: "",
|
|
169
170
|
sortBy: "priority"
|
|
170
|
-
}), [
|
|
171
|
+
}), [L, R] = c({
|
|
171
172
|
totalTasks: 0,
|
|
172
173
|
completedToday: 0,
|
|
173
174
|
pendingTasks: 0,
|
|
174
175
|
averageTime: 0,
|
|
175
176
|
earnings: 0,
|
|
176
177
|
rating: 4.8
|
|
177
|
-
}), [,
|
|
178
|
+
}), [, z] = c(0);
|
|
178
179
|
s(() => {
|
|
179
|
-
let e = setInterval(() =>
|
|
180
|
+
let e = setInterval(() => z((e) => e + 1), 6e4);
|
|
180
181
|
return () => clearInterval(e);
|
|
181
182
|
}, []);
|
|
182
|
-
let
|
|
183
|
+
let B = o(() => {
|
|
183
184
|
x(!0), setTimeout(() => {
|
|
184
|
-
let e = [...
|
|
185
|
-
|
|
185
|
+
let e = [...O];
|
|
186
|
+
F.status && (e = e.filter((e) => e.status === F.status)), F.type && (e = e.filter((e) => e.type === F.type)), F.priority && (e = e.filter((e) => e.priority === F.priority));
|
|
186
187
|
let t = {
|
|
187
188
|
urgent: 0,
|
|
188
189
|
high: 1,
|
|
189
190
|
medium: 2,
|
|
190
191
|
low: 3
|
|
191
192
|
};
|
|
192
|
-
switch (
|
|
193
|
+
switch (F.sortBy) {
|
|
193
194
|
case "priority":
|
|
194
195
|
e.sort((e, n) => (t[e.priority] ?? 4) - (t[n.priority] ?? 4));
|
|
195
196
|
break;
|
|
@@ -200,7 +201,7 @@ var A = () => {
|
|
|
200
201
|
e.sort((e, t) => (e.distance ?? 999) - (t.distance ?? 999));
|
|
201
202
|
break;
|
|
202
203
|
}
|
|
203
|
-
|
|
204
|
+
M(e), P(O.find((e) => e.status === "in_progress") ?? null), R({
|
|
204
205
|
totalTasks: 45,
|
|
205
206
|
completedToday: 12,
|
|
206
207
|
pendingTasks: 3,
|
|
@@ -209,24 +210,24 @@ var A = () => {
|
|
|
209
210
|
rating: 4.8
|
|
210
211
|
}), x(!1);
|
|
211
212
|
}, 600);
|
|
212
|
-
}, [
|
|
213
|
+
}, [F]);
|
|
213
214
|
s(() => {
|
|
214
|
-
|
|
215
|
-
}, [
|
|
216
|
-
let
|
|
217
|
-
|
|
215
|
+
B();
|
|
216
|
+
}, [B]);
|
|
217
|
+
let V = (e, t) => {
|
|
218
|
+
I((n) => ({
|
|
218
219
|
...n,
|
|
219
220
|
[e]: t
|
|
220
221
|
}));
|
|
221
|
-
}, B = (e) => {
|
|
222
|
-
let t = E.find((t) => t.id === e);
|
|
223
|
-
t && (t.status = "in_progress", M(t), R());
|
|
224
|
-
}, V = (e) => {
|
|
225
|
-
let t = E.find((t) => t.id === e);
|
|
226
|
-
t && (t.status = "completed"), M(null), R(), alert("Task completed successfully");
|
|
227
222
|
}, H = (e) => {
|
|
228
|
-
|
|
223
|
+
let t = O.find((t) => t.id === e);
|
|
224
|
+
t && (t.status = "in_progress", P(t), B());
|
|
229
225
|
}, U = (e) => {
|
|
226
|
+
let t = O.find((t) => t.id === e);
|
|
227
|
+
t && (t.status = "completed"), P(null), B(), alert("Task completed successfully");
|
|
228
|
+
}, W = (e) => {
|
|
229
|
+
window.location.href = `tel:${e.replace(/\s/g, "")}`;
|
|
230
|
+
}, G = (e) => {
|
|
230
231
|
if (e.address) {
|
|
231
232
|
let t = encodeURIComponent(`${e.address.addressLine1}, ${e.address.city}`);
|
|
232
233
|
window.open(`https://maps.google.com?q=${t}`, "_blank");
|
|
@@ -245,14 +246,18 @@ var A = () => {
|
|
|
245
246
|
})]
|
|
246
247
|
})
|
|
247
248
|
})
|
|
248
|
-
}) : /* @__PURE__ */
|
|
249
|
+
}) : /* @__PURE__ */ T(n, {
|
|
249
250
|
title: "My Orders",
|
|
250
251
|
description: "Manage your assigned orders",
|
|
251
|
-
children: /* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ w(D, {
|
|
253
|
+
className: "mb-6",
|
|
254
|
+
icon: /* @__PURE__ */ w(p, { className: "h-4 w-4" }),
|
|
255
|
+
children: "Every order and task assigned to you, with the active one front and centre. Start, update and complete tasks as you work through them, filter to find a specific job, and watch today's completion count and earnings climb as you go."
|
|
256
|
+
}), /* @__PURE__ */ T("div", {
|
|
252
257
|
className: "space-y-6",
|
|
253
258
|
children: [
|
|
254
|
-
/* @__PURE__ */ T(
|
|
255
|
-
className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",
|
|
259
|
+
/* @__PURE__ */ T(E, {
|
|
260
|
+
className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3 p-4",
|
|
256
261
|
children: [
|
|
257
262
|
/* @__PURE__ */ T("div", {
|
|
258
263
|
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
@@ -261,7 +266,7 @@ var A = () => {
|
|
|
261
266
|
children: "Today's Tasks"
|
|
262
267
|
}), /* @__PURE__ */ w("p", {
|
|
263
268
|
className: "text-2xl font-bold text-text-primary",
|
|
264
|
-
children:
|
|
269
|
+
children: L.totalTasks
|
|
265
270
|
})]
|
|
266
271
|
}),
|
|
267
272
|
/* @__PURE__ */ T("div", {
|
|
@@ -271,7 +276,7 @@ var A = () => {
|
|
|
271
276
|
children: "Completed"
|
|
272
277
|
}), /* @__PURE__ */ w("p", {
|
|
273
278
|
className: "text-2xl font-bold text-status-success-text",
|
|
274
|
-
children:
|
|
279
|
+
children: L.completedToday
|
|
275
280
|
})]
|
|
276
281
|
}),
|
|
277
282
|
/* @__PURE__ */ T("div", {
|
|
@@ -281,7 +286,7 @@ var A = () => {
|
|
|
281
286
|
children: "Pending"
|
|
282
287
|
}), /* @__PURE__ */ w("p", {
|
|
283
288
|
className: "text-2xl font-bold text-status-warning-text",
|
|
284
|
-
children:
|
|
289
|
+
children: L.pendingTasks
|
|
285
290
|
})]
|
|
286
291
|
}),
|
|
287
292
|
/* @__PURE__ */ T("div", {
|
|
@@ -291,7 +296,7 @@ var A = () => {
|
|
|
291
296
|
children: "Avg Time"
|
|
292
297
|
}), /* @__PURE__ */ T("p", {
|
|
293
298
|
className: "text-2xl font-bold text-text-primary",
|
|
294
|
-
children: [
|
|
299
|
+
children: [L.averageTime, " min"]
|
|
295
300
|
})]
|
|
296
301
|
}),
|
|
297
302
|
/* @__PURE__ */ T("div", {
|
|
@@ -301,7 +306,7 @@ var A = () => {
|
|
|
301
306
|
children: "Today's Earnings"
|
|
302
307
|
}), /* @__PURE__ */ w("p", {
|
|
303
308
|
className: "text-2xl font-bold text-text-primary",
|
|
304
|
-
children: a(
|
|
309
|
+
children: a(L.earnings, { minimumFractionDigits: 0 })
|
|
305
310
|
})]
|
|
306
311
|
}),
|
|
307
312
|
/* @__PURE__ */ T("div", {
|
|
@@ -311,12 +316,12 @@ var A = () => {
|
|
|
311
316
|
children: "Rating"
|
|
312
317
|
}), /* @__PURE__ */ T("p", {
|
|
313
318
|
className: "text-2xl font-bold text-text-primary flex items-center gap-1",
|
|
314
|
-
children: [/* @__PURE__ */ w(S, { className: "h-4 w-4 fill-status-warning-text text-status-warning-text" }),
|
|
319
|
+
children: [/* @__PURE__ */ w(S, { className: "h-4 w-4 fill-status-warning-text text-status-warning-text" }), L.rating]
|
|
315
320
|
})]
|
|
316
321
|
})
|
|
317
322
|
]
|
|
318
323
|
}),
|
|
319
|
-
|
|
324
|
+
N && /* @__PURE__ */ T("div", {
|
|
320
325
|
className: "rounded-lg border-2 border-accent-blue-subtle/30 bg-accent-blue-subtle/5 p-5",
|
|
321
326
|
children: [/* @__PURE__ */ w("h2", {
|
|
322
327
|
className: "text-base font-semibold text-accent-blue mb-4",
|
|
@@ -330,28 +335,28 @@ var A = () => {
|
|
|
330
335
|
children: [
|
|
331
336
|
/* @__PURE__ */ T("h3", {
|
|
332
337
|
className: "text-sm font-semibold text-text-primary",
|
|
333
|
-
children: ["Order #",
|
|
338
|
+
children: ["Order #", N.orderId]
|
|
334
339
|
}),
|
|
335
340
|
(() => {
|
|
336
|
-
let e =
|
|
341
|
+
let e = A(N.type), n = e.icon;
|
|
337
342
|
return /* @__PURE__ */ T("span", {
|
|
338
343
|
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium", e.style),
|
|
339
344
|
children: [/* @__PURE__ */ w(n, { className: "h-3 w-3" }), e.label]
|
|
340
345
|
});
|
|
341
346
|
})(),
|
|
342
347
|
/* @__PURE__ */ w("span", {
|
|
343
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize",
|
|
344
|
-
children:
|
|
348
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", j(N.priority)),
|
|
349
|
+
children: N.priority
|
|
345
350
|
})
|
|
346
351
|
]
|
|
347
352
|
}), /* @__PURE__ */ w("p", {
|
|
348
353
|
className: "text-xs text-text-secondary mt-1",
|
|
349
|
-
children:
|
|
354
|
+
children: N.cartName
|
|
350
355
|
})] }), /* @__PURE__ */ T("div", {
|
|
351
356
|
className: "text-right",
|
|
352
357
|
children: [/* @__PURE__ */ w("p", {
|
|
353
358
|
className: "text-xl font-bold text-accent-blue",
|
|
354
|
-
children:
|
|
359
|
+
children: k(N.estimatedTime)
|
|
355
360
|
}), /* @__PURE__ */ w("p", {
|
|
356
361
|
className: "text-xs text-text-secondary",
|
|
357
362
|
children: "Time remaining"
|
|
@@ -369,14 +374,14 @@ var A = () => {
|
|
|
369
374
|
}),
|
|
370
375
|
/* @__PURE__ */ w("p", {
|
|
371
376
|
className: "text-sm font-medium text-text-primary",
|
|
372
|
-
children:
|
|
377
|
+
children: N.customerName
|
|
373
378
|
}),
|
|
374
|
-
|
|
379
|
+
N.address && /* @__PURE__ */ T("p", {
|
|
375
380
|
className: "text-xs text-text-secondary mt-1",
|
|
376
381
|
children: [
|
|
377
|
-
|
|
382
|
+
N.address.addressLine1,
|
|
378
383
|
", ",
|
|
379
|
-
|
|
384
|
+
N.address.city
|
|
380
385
|
]
|
|
381
386
|
})
|
|
382
387
|
] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
@@ -384,7 +389,7 @@ var A = () => {
|
|
|
384
389
|
children: "Items"
|
|
385
390
|
}), /* @__PURE__ */ w("div", {
|
|
386
391
|
className: "space-y-0.5",
|
|
387
|
-
children:
|
|
392
|
+
children: N.items.map((e, t) => /* @__PURE__ */ T("p", {
|
|
388
393
|
className: "text-xs text-text-primary",
|
|
389
394
|
children: [
|
|
390
395
|
e.quantity,
|
|
@@ -394,14 +399,14 @@ var A = () => {
|
|
|
394
399
|
}, t))
|
|
395
400
|
})] })]
|
|
396
401
|
}),
|
|
397
|
-
|
|
402
|
+
N.specialInstructions && /* @__PURE__ */ T("div", {
|
|
398
403
|
className: "mt-3 p-3 rounded-md bg-status-warning-bg-subtle/10 border border-status-warning-border/20",
|
|
399
404
|
children: [/* @__PURE__ */ T("p", {
|
|
400
405
|
className: "text-xs font-medium text-status-warning-text flex items-center gap-1",
|
|
401
406
|
children: [/* @__PURE__ */ w(l, { className: "h-3 w-3" }), "Special Instructions:"]
|
|
402
407
|
}), /* @__PURE__ */ w("p", {
|
|
403
408
|
className: "text-xs text-status-warning-text mt-0.5",
|
|
404
|
-
children:
|
|
409
|
+
children: N.specialInstructions
|
|
405
410
|
})]
|
|
406
411
|
}),
|
|
407
412
|
/* @__PURE__ */ T("div", {
|
|
@@ -409,19 +414,19 @@ var A = () => {
|
|
|
409
414
|
children: [
|
|
410
415
|
/* @__PURE__ */ T("button", {
|
|
411
416
|
type: "button",
|
|
412
|
-
onClick: () =>
|
|
417
|
+
onClick: () => W(N.customerPhone),
|
|
413
418
|
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",
|
|
414
419
|
children: [/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5" }), "Call Customer"]
|
|
415
420
|
}),
|
|
416
|
-
|
|
421
|
+
N.type === "delivery" && N.address && /* @__PURE__ */ T("button", {
|
|
417
422
|
type: "button",
|
|
418
|
-
onClick: () =>
|
|
423
|
+
onClick: () => G(N),
|
|
419
424
|
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",
|
|
420
425
|
children: [/* @__PURE__ */ w(_, { className: "h-3.5 w-3.5" }), "Navigate"]
|
|
421
426
|
}),
|
|
422
427
|
/* @__PURE__ */ T("button", {
|
|
423
428
|
type: "button",
|
|
424
|
-
onClick: () =>
|
|
429
|
+
onClick: () => U(N.id),
|
|
425
430
|
className: "ml-auto inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle/10 px-3 py-2 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
426
431
|
children: [/* @__PURE__ */ w(d, { className: "h-3.5 w-3.5" }), "Complete Task"]
|
|
427
432
|
})
|
|
@@ -437,8 +442,8 @@ var A = () => {
|
|
|
437
442
|
className: "grid grid-cols-1 md:grid-cols-4 gap-3",
|
|
438
443
|
children: [
|
|
439
444
|
/* @__PURE__ */ T("select", {
|
|
440
|
-
value:
|
|
441
|
-
onChange: (e) =>
|
|
445
|
+
value: F.status,
|
|
446
|
+
onChange: (e) => V("status", e.target.value),
|
|
442
447
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent-blue-subtle/40",
|
|
443
448
|
children: [
|
|
444
449
|
/* @__PURE__ */ w("option", {
|
|
@@ -460,8 +465,8 @@ var A = () => {
|
|
|
460
465
|
]
|
|
461
466
|
}),
|
|
462
467
|
/* @__PURE__ */ T("select", {
|
|
463
|
-
value:
|
|
464
|
-
onChange: (e) =>
|
|
468
|
+
value: F.type,
|
|
469
|
+
onChange: (e) => V("type", e.target.value),
|
|
465
470
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent-blue-subtle/40",
|
|
466
471
|
children: [
|
|
467
472
|
/* @__PURE__ */ w("option", {
|
|
@@ -483,8 +488,8 @@ var A = () => {
|
|
|
483
488
|
]
|
|
484
489
|
}),
|
|
485
490
|
/* @__PURE__ */ T("select", {
|
|
486
|
-
value:
|
|
487
|
-
onChange: (e) =>
|
|
491
|
+
value: F.priority,
|
|
492
|
+
onChange: (e) => V("priority", e.target.value),
|
|
488
493
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent-blue-subtle/40",
|
|
489
494
|
children: [
|
|
490
495
|
/* @__PURE__ */ w("option", {
|
|
@@ -510,8 +515,8 @@ var A = () => {
|
|
|
510
515
|
]
|
|
511
516
|
}),
|
|
512
517
|
/* @__PURE__ */ T("select", {
|
|
513
|
-
value:
|
|
514
|
-
onChange: (e) =>
|
|
518
|
+
value: F.sortBy,
|
|
519
|
+
onChange: (e) => V("sortBy", e.target.value),
|
|
515
520
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent-blue-subtle/40",
|
|
516
521
|
children: [
|
|
517
522
|
/* @__PURE__ */ w("option", {
|
|
@@ -532,13 +537,13 @@ var A = () => {
|
|
|
532
537
|
})
|
|
533
538
|
}),
|
|
534
539
|
C.length === 0 ? /* @__PURE__ */ w(i, {
|
|
535
|
-
|
|
540
|
+
illustration: "empty-sessions",
|
|
536
541
|
title: "No tasks available",
|
|
537
542
|
description: "Check back later for new tasks"
|
|
538
543
|
}) : /* @__PURE__ */ w("div", {
|
|
539
544
|
className: "space-y-3",
|
|
540
545
|
children: C.map((e) => {
|
|
541
|
-
let n =
|
|
546
|
+
let n = A(e.type), i = n.icon;
|
|
542
547
|
return /* @__PURE__ */ T("div", {
|
|
543
548
|
className: "rounded-lg border border-border-seam bg-bg-surface p-5 hover:shadow-md transition-shadow bg-gloss-card shadow-pop",
|
|
544
549
|
children: [
|
|
@@ -556,7 +561,7 @@ var A = () => {
|
|
|
556
561
|
children: [/* @__PURE__ */ w(i, { className: "h-3 w-3" }), n.label]
|
|
557
562
|
}),
|
|
558
563
|
/* @__PURE__ */ w("span", {
|
|
559
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize",
|
|
564
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", j(e.priority)),
|
|
560
565
|
children: e.priority
|
|
561
566
|
})
|
|
562
567
|
]
|
|
@@ -607,8 +612,8 @@ var A = () => {
|
|
|
607
612
|
className: "text-xs text-text-secondary",
|
|
608
613
|
children: "Time"
|
|
609
614
|
}), /* @__PURE__ */ w("p", {
|
|
610
|
-
className: t("text-xs font-medium",
|
|
611
|
-
children:
|
|
615
|
+
className: t("text-xs font-medium", k(e.estimatedTime) === "Overdue" ? "text-status-error-text" : "text-text-primary"),
|
|
616
|
+
children: k(e.estimatedTime)
|
|
612
617
|
})] })
|
|
613
618
|
]
|
|
614
619
|
}),
|
|
@@ -617,14 +622,14 @@ var A = () => {
|
|
|
617
622
|
children: [
|
|
618
623
|
/* @__PURE__ */ T("button", {
|
|
619
624
|
type: "button",
|
|
620
|
-
onClick: () =>
|
|
621
|
-
disabled:
|
|
622
|
-
className: t("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors",
|
|
623
|
-
children: [/* @__PURE__ */ w(b, { className: "h-3.5 w-3.5" }),
|
|
625
|
+
onClick: () => H(e.id),
|
|
626
|
+
disabled: N !== null,
|
|
627
|
+
className: t("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", N === null ? "bg-accent-blue-subtle/10 text-accent-blue hover:bg-accent-blue-subtle/20" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
628
|
+
children: [/* @__PURE__ */ w(b, { className: "h-3.5 w-3.5" }), N ? "Complete current first" : "Start Task"]
|
|
624
629
|
}),
|
|
625
630
|
/* @__PURE__ */ T("button", {
|
|
626
631
|
type: "button",
|
|
627
|
-
onClick: () =>
|
|
632
|
+
onClick: () => W(e.customerPhone),
|
|
628
633
|
className: "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",
|
|
629
634
|
children: [/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5" }), "Call"]
|
|
630
635
|
}),
|
|
@@ -638,11 +643,11 @@ var A = () => {
|
|
|
638
643
|
})
|
|
639
644
|
]
|
|
640
645
|
}),
|
|
641
|
-
e.status === "in_progress" && e.id !==
|
|
646
|
+
e.status === "in_progress" && e.id !== N?.id && /* @__PURE__ */ T("div", {
|
|
642
647
|
className: "flex items-center gap-2 border-t border-border-subtle pt-3",
|
|
643
648
|
children: [/* @__PURE__ */ T("button", {
|
|
644
649
|
type: "button",
|
|
645
|
-
onClick: () =>
|
|
650
|
+
onClick: () => U(e.id),
|
|
646
651
|
className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle/10 px-3 py-1.5 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
647
652
|
children: [/* @__PURE__ */ w(d, { className: "h-3.5 w-3.5" }), "Complete"]
|
|
648
653
|
}), /* @__PURE__ */ T("button", {
|
|
@@ -666,10 +671,10 @@ var A = () => {
|
|
|
666
671
|
})
|
|
667
672
|
})
|
|
668
673
|
]
|
|
669
|
-
})
|
|
674
|
+
})]
|
|
670
675
|
});
|
|
671
676
|
};
|
|
672
677
|
//#endregion
|
|
673
|
-
export {
|
|
678
|
+
export { M as WorkerOrdersPage };
|
|
674
679
|
|
|
675
680
|
//# sourceMappingURL=WorkerOrdersPage.js.map
|