@burdenoff/microfe-movethewheels 2026.625.1 → 2026.626.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/{AIAssistantPage-CNyoKtID.js → AIAssistantPage-AvsMbunM.js} +35 -29
  2. package/dist/{AnalyticsPage-Ck615ox7.js → AnalyticsPage-CCLfHgQZ.js} +36 -25
  3. package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
  4. package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
  5. package/dist/CustomersPage-CGGfD4ki.js +163 -0
  6. package/dist/{DashboardPage-DTmyuC11.js → DashboardPage-D2HRqwg9.js} +93 -89
  7. package/dist/DataTable-CD9ZhpLB.js +249 -0
  8. package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
  9. package/dist/DriversPage-DKiynISH.js +167 -0
  10. package/dist/FinancePage-Vg8WPs38.js +158 -0
  11. package/dist/{FleetPage-DCfOmBa2.js → FleetPage-DddXt8r8.js} +109 -71
  12. package/dist/ImportExportPage-BW6qO3kc.js +248 -0
  13. package/dist/{InventoryPage-BW0QXWuf.js → InventoryPage-rMGuaJN-.js} +74 -70
  14. package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
  15. package/dist/MarketplacePage-DKrXAv62.js +219 -0
  16. package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
  17. package/dist/OrdersListPage-BHeT8S5o.js +309 -0
  18. package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
  19. package/dist/ProductsPage--xEpbQ8A.js +171 -0
  20. package/dist/{ReportsPage-Df3hciPy.js → ReportsPage-Bb7_90rK.js} +53 -45
  21. package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
  22. package/dist/RoutesPage-s57PtgcQ.js +163 -0
  23. package/dist/SettingsPage-BYNCBOpN.js +298 -0
  24. package/dist/{TrackingPage-CU0Vk4mx.js → TrackingPage-CcRc_dva.js} +77 -72
  25. package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
  26. package/dist/VehiclesPage-UlxPWP9K.js +167 -0
  27. package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
  28. package/dist/WarehousesPage-CuTO-OPp.js +164 -0
  29. package/dist/index.js +2 -2
  30. package/package.json +2 -2
  31. package/src/movethewheels/components/DataTable.tsx +37 -2
  32. package/src/movethewheels/components/MetricCard.tsx +3 -1
  33. package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
  34. package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
  35. package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
  36. package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
  37. package/src/movethewheels/pages/CustomersPage.tsx +40 -2
  38. package/src/movethewheels/pages/DashboardPage.tsx +8 -1
  39. package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
  40. package/src/movethewheels/pages/DriversPage.tsx +37 -1
  41. package/src/movethewheels/pages/FinancePage.tsx +45 -41
  42. package/src/movethewheels/pages/FleetPage.tsx +68 -25
  43. package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
  44. package/src/movethewheels/pages/InventoryPage.tsx +20 -23
  45. package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
  46. package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
  47. package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
  48. package/src/movethewheels/pages/OrdersListPage.tsx +62 -1
  49. package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
  50. package/src/movethewheels/pages/ProductsPage.tsx +33 -1
  51. package/src/movethewheels/pages/ReportsPage.tsx +23 -19
  52. package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
  53. package/src/movethewheels/pages/RoutesPage.tsx +41 -5
  54. package/src/movethewheels/pages/SettingsPage.tsx +68 -26
  55. package/src/movethewheels/pages/TrackingPage.tsx +50 -47
  56. package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
  57. package/src/movethewheels/pages/VehiclesPage.tsx +33 -1
  58. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
  59. package/src/movethewheels/pages/WarehousesPage.tsx +42 -4
  60. package/dist/CreateOrderPage-C9Vb57Yn.js +0 -471
  61. package/dist/CustomerDetailsPage-BVkHRZvi.js +0 -239
  62. package/dist/CustomersPage-DhQg-6h_.js +0 -118
  63. package/dist/DataTable-CfWvFw5B.js +0 -239
  64. package/dist/DriverDetailsPage-DaaCQ-2O.js +0 -297
  65. package/dist/DriversPage-D0RMBB_t.js +0 -129
  66. package/dist/FinancePage-BUXqW1IM.js +0 -154
  67. package/dist/ImportExportPage-BM1BoRcE.js +0 -232
  68. package/dist/LiveTrackingPage-DqcGXdkw.js +0 -332
  69. package/dist/MarketplacePage-DFqsxNYU.js +0 -192
  70. package/dist/OrderDetailsPage-Dx1m3cVA.js +0 -398
  71. package/dist/OrdersListPage-DHYBGrWf.js +0 -256
  72. package/dist/ProductDetailsPage-DOXO90kb.js +0 -168
  73. package/dist/ProductsPage-RLMTwWN0.js +0 -133
  74. package/dist/RouteDetailsPage-xzFDeR-X.js +0 -240
  75. package/dist/RoutesPage-DDFy1QVi.js +0 -118
  76. package/dist/SettingsPage-JH_-UPbf.js +0 -247
  77. package/dist/VehicleDetailsPage-P4xDttKw.js +0 -194
  78. package/dist/VehiclesPage-tJZ64QKV.js +0 -129
  79. package/dist/WarehouseDetailsPage-Bt_w2Yf7.js +0 -215
  80. package/dist/WarehousesPage-HsPpEFeG.js +0 -126
@@ -0,0 +1,249 @@
1
+ import { A as e, B as t, F as n, G as r, H as i, I as a, K as o, L as s, P as c, R as l, U as u, W as d, it as f, q as p, rt as m, u as h } from "./PageLayout-D3N8MCTm.js";
2
+ import { t as g } from "./chevron-right-BIFGi0UA.js";
3
+ import { t as ee } from "./search-OxoIiL_C.js";
4
+ import { useMemo as _, useState as v } from "react";
5
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
6
+ import { IllustratedEmptyState as x } from "@burdenoff/fe-libs/ui";
7
+ //#region node_modules/lucide-react/dist/esm/icons/arrow-down.js
8
+ var S = f("ArrowDown", [["path", {
9
+ d: "M12 5v14",
10
+ key: "s699le"
11
+ }], ["path", {
12
+ d: "m19 12-7 7-7-7",
13
+ key: "1idqje"
14
+ }]]), C = f("ArrowUpDown", [
15
+ ["path", {
16
+ d: "m21 16-4 4-4-4",
17
+ key: "f6ql7i"
18
+ }],
19
+ ["path", {
20
+ d: "M17 20V4",
21
+ key: "1ejh1v"
22
+ }],
23
+ ["path", {
24
+ d: "m3 8 4-4 4 4",
25
+ key: "11wl7u"
26
+ }],
27
+ ["path", {
28
+ d: "M7 4v16",
29
+ key: "1glfcx"
30
+ }]
31
+ ]), w = f("ArrowUp", [["path", {
32
+ d: "m5 12 7-7 7 7",
33
+ key: "hav0vg"
34
+ }], ["path", {
35
+ d: "M12 19V5",
36
+ key: "x0mq9r"
37
+ }]]), te = f("ChevronLeft", [["path", {
38
+ d: "m15 18-6-6 6-6",
39
+ key: "1wnfg3"
40
+ }]]), ne = f("ChevronsLeft", [["path", {
41
+ d: "m11 17-5-5 5-5",
42
+ key: "13zhaf"
43
+ }], ["path", {
44
+ d: "m18 17-5-5 5-5",
45
+ key: "h8a8et"
46
+ }]]), re = f("ChevronsRight", [["path", {
47
+ d: "m6 17 5-5-5-5",
48
+ key: "xnjwq"
49
+ }], ["path", {
50
+ d: "m13 17 5-5-5-5",
51
+ key: "17xmmf"
52
+ }]]);
53
+ //#endregion
54
+ //#region src/movethewheels/components/DataTable.tsx
55
+ function T({ columns: f, data: T, isLoading: E = !1, searchable: D = !1, searchPlaceholder: O = "Search...", searchFields: k, pagination: A = !0, pageSize: ie = 10, pageSizeOptions: j = [
56
+ 5,
57
+ 10,
58
+ 20,
59
+ 50
60
+ ], onRowClick: M, rowClassName: N, emptyMessage: P = "No data found", emptyIllustration: F, emptyTitle: I, emptyDescription: L, emptyAction: R, className: z, getRowId: B }) {
61
+ let [V, H] = v(""), [U, W] = v(null), [G, K] = v(null), [q, J] = v(1), [Y, ae] = v(ie), X = _(() => {
62
+ if (!V || !k || k.length === 0) return T;
63
+ let e = V.toLowerCase();
64
+ return T.filter((t) => k.some((n) => {
65
+ let r = t[n];
66
+ return r != null && String(r).toLowerCase().includes(e);
67
+ }));
68
+ }, [
69
+ T,
70
+ V,
71
+ k
72
+ ]), Z = _(() => {
73
+ if (!U || !G) return X;
74
+ let e = f.find((e) => e.id === U);
75
+ return e?.accessorKey ? [...X].sort((t, n) => {
76
+ let r = t[e.accessorKey], i = n[e.accessorKey];
77
+ if (r == null) return 1;
78
+ if (i == null) return -1;
79
+ let a = 0;
80
+ return a = typeof r == "string" && typeof i == "string" ? r.localeCompare(i) : typeof r == "number" && typeof i == "number" ? r - i : r instanceof Date && i instanceof Date ? r.getTime() - i.getTime() : String(r).localeCompare(String(i)), G === "asc" ? a : -a;
81
+ }) : X;
82
+ }, [
83
+ X,
84
+ U,
85
+ G,
86
+ f
87
+ ]), Q = _(() => {
88
+ if (!A) return Z;
89
+ let e = (q - 1) * Y;
90
+ return Z.slice(e, e + Y);
91
+ }, [
92
+ Z,
93
+ q,
94
+ Y,
95
+ A
96
+ ]), $ = Math.ceil(Z.length / Y), oe = (e) => {
97
+ U === e ? G === "asc" ? K("desc") : G === "desc" && (W(null), K(null)) : (W(e), K("asc"));
98
+ }, se = (e) => U === e ? y(G === "asc" ? w : S, { className: "w-4 h-4 text-primary" }) : /* @__PURE__ */ y(C, { className: "w-4 h-4 text-text-secondary/50" }), ce = (e, t) => {
99
+ if (t.cell) return t.cell(e);
100
+ if (t.accessorKey) {
101
+ let n = e[t.accessorKey];
102
+ return n == null ? "-" : n instanceof Date ? n.toLocaleDateString() : String(n);
103
+ }
104
+ return "-";
105
+ };
106
+ return E ? /* @__PURE__ */ b("div", {
107
+ className: m("space-y-4", z),
108
+ children: [D && /* @__PURE__ */ y("div", {
109
+ className: "flex items-center gap-4",
110
+ children: /* @__PURE__ */ y(t, { className: "h-10 w-64" })
111
+ }), /* @__PURE__ */ y("div", {
112
+ className: "rounded-card border border-border-seam bg-bg-surface shadow-elevation-1",
113
+ children: /* @__PURE__ */ b(i, { children: [/* @__PURE__ */ y(o, { children: /* @__PURE__ */ y(p, { children: f.map((e) => /* @__PURE__ */ y(r, { children: /* @__PURE__ */ y(t, { className: "h-4 w-20 motion-safe:animate-vc-shimmer" }) }, e.id)) }) }), /* @__PURE__ */ y(u, { children: Array.from({ length: 5 }).map((e, n) => /* @__PURE__ */ y(p, { children: f.map((e) => /* @__PURE__ */ y(d, { children: /* @__PURE__ */ y(t, { className: "h-4 w-full max-w-[100px] motion-safe:animate-vc-shimmer" }) }, e.id)) }, n)) })] })
114
+ })]
115
+ }) : /* @__PURE__ */ b("div", {
116
+ className: m("space-y-4", z),
117
+ children: [
118
+ D && /* @__PURE__ */ y("div", {
119
+ className: "flex items-center gap-4",
120
+ children: /* @__PURE__ */ b("div", {
121
+ className: "relative flex-1 max-w-sm",
122
+ children: [/* @__PURE__ */ y(ee, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-text-secondary" }), /* @__PURE__ */ y(e, {
123
+ placeholder: O,
124
+ value: V,
125
+ onChange: (e) => {
126
+ H(e.target.value), J(1);
127
+ },
128
+ className: "pl-9"
129
+ })]
130
+ })
131
+ }),
132
+ /* @__PURE__ */ y("div", {
133
+ className: "overflow-x-auto rounded-card border border-border-seam bg-bg-surface shadow-elevation-1",
134
+ children: /* @__PURE__ */ b(i, { children: [/* @__PURE__ */ y(o, { children: /* @__PURE__ */ y(p, { children: f.map((e) => /* @__PURE__ */ y(r, {
135
+ className: m(e.sortable && "cursor-pointer select-none hover:bg-bg-sunken/50", e.headerClassName),
136
+ onClick: () => e.sortable && oe(e.id),
137
+ children: /* @__PURE__ */ b("div", {
138
+ className: "flex items-center gap-2",
139
+ children: [e.header, e.sortable && se(e.id)]
140
+ })
141
+ }, e.id)) }) }), /* @__PURE__ */ y(u, { children: Q.length === 0 ? /* @__PURE__ */ y(p, { children: /* @__PURE__ */ y(d, {
142
+ colSpan: f.length,
143
+ className: "py-8 text-center",
144
+ children: F ? V ? /* @__PURE__ */ y(x, {
145
+ illustration: "empty-search",
146
+ title: "No matches",
147
+ description: `Nothing matches “${V}”. Try a different search.`
148
+ }) : /* @__PURE__ */ y(x, {
149
+ illustration: F,
150
+ title: I ?? P,
151
+ description: L,
152
+ action: R
153
+ }) : /* @__PURE__ */ y("p", {
154
+ className: "text-text-secondary",
155
+ children: P
156
+ })
157
+ }) }) : Q.map((e, t) => {
158
+ let n = B ? B(e) : t, r = typeof N == "function" ? N(e) : N;
159
+ return /* @__PURE__ */ y(p, {
160
+ className: m(M && "cursor-pointer hover:bg-bg-sunken/50", r),
161
+ onClick: () => M?.(e),
162
+ children: f.map((t) => /* @__PURE__ */ y(d, {
163
+ className: t.className,
164
+ children: ce(e, t)
165
+ }, t.id))
166
+ }, n);
167
+ }) })] })
168
+ }),
169
+ A && Z.length > 0 && /* @__PURE__ */ b("div", {
170
+ className: "flex items-center justify-between",
171
+ children: [/* @__PURE__ */ b("div", {
172
+ className: "flex items-center gap-2 text-sm text-text-secondary",
173
+ children: [
174
+ /* @__PURE__ */ b("span", { children: [
175
+ "Showing ",
176
+ (q - 1) * Y + 1,
177
+ " to",
178
+ " ",
179
+ Math.min(q * Y, Z.length),
180
+ " of ",
181
+ Z.length
182
+ ] }),
183
+ /* @__PURE__ */ b(c, {
184
+ value: String(Y),
185
+ onValueChange: (e) => {
186
+ ae(Number(e)), J(1);
187
+ },
188
+ children: [/* @__PURE__ */ y(s, {
189
+ className: "w-[70px] h-8",
190
+ children: /* @__PURE__ */ y(l, {})
191
+ }), /* @__PURE__ */ y(n, { children: j.map((e) => /* @__PURE__ */ y(a, {
192
+ value: String(e),
193
+ children: e
194
+ }, e)) })]
195
+ }),
196
+ /* @__PURE__ */ y("span", { children: "per page" })
197
+ ]
198
+ }), /* @__PURE__ */ b("div", {
199
+ className: "flex items-center gap-1",
200
+ children: [
201
+ /* @__PURE__ */ y(h, {
202
+ variant: "outline",
203
+ size: "icon",
204
+ className: "h-8 w-8",
205
+ onClick: () => J(1),
206
+ disabled: q === 1,
207
+ children: /* @__PURE__ */ y(ne, { className: "h-4 w-4" })
208
+ }),
209
+ /* @__PURE__ */ y(h, {
210
+ variant: "outline",
211
+ size: "icon",
212
+ className: "h-8 w-8",
213
+ onClick: () => J((e) => Math.max(1, e - 1)),
214
+ disabled: q === 1,
215
+ children: /* @__PURE__ */ y(te, { className: "h-4 w-4" })
216
+ }),
217
+ /* @__PURE__ */ b("span", {
218
+ className: "px-3 text-sm",
219
+ children: [
220
+ "Page ",
221
+ q,
222
+ " of ",
223
+ $
224
+ ]
225
+ }),
226
+ /* @__PURE__ */ y(h, {
227
+ variant: "outline",
228
+ size: "icon",
229
+ className: "h-8 w-8",
230
+ onClick: () => J((e) => Math.min($, e + 1)),
231
+ disabled: q === $,
232
+ children: /* @__PURE__ */ y(g, { className: "h-4 w-4" })
233
+ }),
234
+ /* @__PURE__ */ y(h, {
235
+ variant: "outline",
236
+ size: "icon",
237
+ className: "h-8 w-8",
238
+ onClick: () => J($),
239
+ disabled: q === $,
240
+ children: /* @__PURE__ */ y(re, { className: "h-4 w-4" })
241
+ })
242
+ ]
243
+ })]
244
+ })
245
+ ]
246
+ });
247
+ }
248
+ //#endregion
249
+ export { T as t };
@@ -0,0 +1,330 @@
1
+ import { M as e, d as t, f as n, g as r, h as i, i as a, l as o, n as s, r as c, u as l } from "./PageLayout-D3N8MCTm.js";
2
+ import { t as u } from "./arrow-left-CBpZKkpq.js";
3
+ import { t as d } from "./clock-BjkdnddD.js";
4
+ import { t as f } from "./dollar-sign-IB4O0wuQ.js";
5
+ import { t as p } from "./file-text-C8Uioy11.js";
6
+ import { t as m } from "./map-pin-BSaf5IDL.js";
7
+ import { t as h } from "./square-pen-hLIbFQFV.js";
8
+ import { t as g } from "./star-YsVV3MNQ.js";
9
+ import { t as _ } from "./users-g2N0eL-Z.js";
10
+ import { r as v } from "./graphqlClient-CdJyR_ed.js";
11
+ import { t as y } from "./useFleet-BdETplNE.js";
12
+ import { r as b } from "./StatusBadge-CijYQXtb.js";
13
+ import { n as x, r as S } from "./formatters-_vJlC-47.js";
14
+ import { t as C } from "./navigation-BgnOfsVd.js";
15
+ import { useParams as w } from "react-router-dom";
16
+ import { jsx as T, jsxs as E } from "react/jsx-runtime";
17
+ import { EmphasisPanel as D, NextSteps as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
18
+ //#region src/movethewheels/pages/DriverDetailsPage.tsx
19
+ function A() {
20
+ let { driverId: A } = w(), { basePath: j, navigate: M } = v(), { driver: N, isLoading: P, error: F, refetch: I } = y(A), L = () => M?.(C(j, "fleet/drivers")), R = (e) => M?.(C(j, e));
21
+ return P ? /* @__PURE__ */ T(c, { message: "Loading driver details..." }) : F || !N ? /* @__PURE__ */ T(s, {
22
+ title: "Driver not found",
23
+ onRetry: I
24
+ }) : /* @__PURE__ */ E(a, {
25
+ title: N.fullName,
26
+ subtitle: `Employee ID: ${N.employeeId}`,
27
+ icon: /* @__PURE__ */ T(_, { size: 24 }),
28
+ headerActions: /* @__PURE__ */ E("div", {
29
+ className: "flex gap-2",
30
+ children: [/* @__PURE__ */ E(l, {
31
+ variant: "outline",
32
+ onClick: L,
33
+ children: [/* @__PURE__ */ T(u, { size: 16 }), " Back"]
34
+ }), /* @__PURE__ */ E(l, { children: [/* @__PURE__ */ T(h, { size: 16 }), " Edit"] })]
35
+ }),
36
+ headerContent: /* @__PURE__ */ E("div", {
37
+ className: "flex items-center gap-4",
38
+ children: [/* @__PURE__ */ T(b, {
39
+ status: N.status,
40
+ type: "driver"
41
+ }), /* @__PURE__ */ E("div", {
42
+ className: "flex items-center gap-1",
43
+ children: [
44
+ /* @__PURE__ */ T(g, {
45
+ size: 16,
46
+ className: "text-yellow-500 fill-yellow-500"
47
+ }),
48
+ /* @__PURE__ */ T("span", {
49
+ className: "font-medium",
50
+ children: N.ratings.overall.toFixed(1)
51
+ }),
52
+ /* @__PURE__ */ E("span", {
53
+ className: "text-text-secondary",
54
+ children: [
55
+ "(",
56
+ N.ratings.totalRatings,
57
+ " ratings)"
58
+ ]
59
+ })
60
+ ]
61
+ })]
62
+ }),
63
+ children: [
64
+ /* @__PURE__ */ T(k, {
65
+ icon: /* @__PURE__ */ T(_, { size: 18 }),
66
+ children: "A driver's full profile — performance ratings, working hours, documents, earnings and live location. Use it to confirm someone is road-ready and compliant before assigning them an order or route."
67
+ }),
68
+ /* @__PURE__ */ T(O, {
69
+ storageKey: "movethewheels-driver-details",
70
+ steps: [
71
+ {
72
+ id: "assign",
73
+ label: "Assign to an order",
74
+ description: "Hand a pending delivery to this driver.",
75
+ icon: /* @__PURE__ */ T(m, { size: 16 }),
76
+ onClick: () => R("orders")
77
+ },
78
+ {
79
+ id: "routes",
80
+ label: "Plan their route",
81
+ description: "Batch nearby drop-offs into an optimized itinerary.",
82
+ icon: /* @__PURE__ */ T(d, { size: 16 }),
83
+ onClick: () => R("routes")
84
+ },
85
+ {
86
+ id: "edit",
87
+ label: "Update driver record",
88
+ description: "Refresh documents, shift or compliance details.",
89
+ icon: /* @__PURE__ */ T(h, { size: 16 }),
90
+ onClick: () => {}
91
+ }
92
+ ]
93
+ }),
94
+ /* @__PURE__ */ E("div", {
95
+ className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
96
+ children: [/* @__PURE__ */ E("div", {
97
+ className: "lg:col-span-2 space-y-6",
98
+ children: [
99
+ /* @__PURE__ */ E(D, { children: [/* @__PURE__ */ E("h2", {
100
+ className: "flex items-center gap-2 text-base font-semibold text-text-primary mb-4",
101
+ children: [/* @__PURE__ */ T(g, { size: 18 }), " Ratings"]
102
+ }), /* @__PURE__ */ T("div", {
103
+ className: "grid grid-cols-2 md:grid-cols-3 gap-4",
104
+ children: [
105
+ {
106
+ label: "Punctuality",
107
+ value: N.ratings.punctuality
108
+ },
109
+ {
110
+ label: "Communication",
111
+ value: N.ratings.communication
112
+ },
113
+ {
114
+ label: "Handling",
115
+ value: N.ratings.carefulHandling
116
+ },
117
+ {
118
+ label: "Professionalism",
119
+ value: N.ratings.professionalism
120
+ },
121
+ {
122
+ label: "On-Time Delivery",
123
+ value: N.ratings.onTimeDelivery
124
+ }
125
+ ].map((t) => /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
126
+ className: "text-sm text-text-secondary",
127
+ children: t.label
128
+ }), /* @__PURE__ */ E("div", {
129
+ className: "flex items-center gap-2 mt-1",
130
+ children: [/* @__PURE__ */ T(e, {
131
+ value: t.value * 20,
132
+ className: "flex-1 h-2"
133
+ }), /* @__PURE__ */ T("span", {
134
+ className: "text-sm font-medium",
135
+ children: t.value.toFixed(1)
136
+ })]
137
+ })] }, t.label))
138
+ })] }),
139
+ /* @__PURE__ */ E(t, { children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ E(r, {
140
+ className: "flex items-center gap-2",
141
+ children: [/* @__PURE__ */ T(d, { size: 18 }), " Working Hours"]
142
+ }) }), /* @__PURE__ */ T(n, { children: /* @__PURE__ */ E("div", {
143
+ className: "grid grid-cols-2 md:grid-cols-4 gap-4",
144
+ children: [
145
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
146
+ className: "text-sm text-text-secondary",
147
+ children: "Shift"
148
+ }), /* @__PURE__ */ E("p", {
149
+ className: "font-medium",
150
+ children: [
151
+ N.workingHours.startTime,
152
+ " - ",
153
+ N.workingHours.endTime
154
+ ]
155
+ })] }),
156
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
157
+ className: "text-sm text-text-secondary",
158
+ children: "Working Days"
159
+ }), /* @__PURE__ */ E("p", {
160
+ className: "font-medium",
161
+ children: [N.workingHours.workingDays.length, " days/week"]
162
+ })] }),
163
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
164
+ className: "text-sm text-text-secondary",
165
+ children: "Hours Today"
166
+ }), /* @__PURE__ */ E("p", {
167
+ className: "font-medium",
168
+ children: [
169
+ N.workingHours.currentHoursToday,
170
+ "h / ",
171
+ N.workingHours.maxHoursPerDay,
172
+ "h"
173
+ ]
174
+ })] }),
175
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
176
+ className: "text-sm text-text-secondary",
177
+ children: "Hours This Week"
178
+ }), /* @__PURE__ */ E("p", {
179
+ className: "font-medium",
180
+ children: [
181
+ N.workingHours.currentHoursThisWeek,
182
+ "h /",
183
+ " ",
184
+ N.workingHours.maxHoursPerWeek,
185
+ "h"
186
+ ]
187
+ })] })
188
+ ]
189
+ }) })] }),
190
+ /* @__PURE__ */ E(t, { children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ E(r, {
191
+ className: "flex items-center gap-2",
192
+ children: [/* @__PURE__ */ T(p, { size: 18 }), " Documents"]
193
+ }) }), /* @__PURE__ */ T(n, { children: /* @__PURE__ */ E("div", {
194
+ className: "space-y-3",
195
+ children: [/* @__PURE__ */ E("div", {
196
+ className: "flex items-center justify-between p-3 border rounded-lg",
197
+ children: [/* @__PURE__ */ E("div", { children: [
198
+ /* @__PURE__ */ T("p", {
199
+ className: "font-medium",
200
+ children: "Driver's License"
201
+ }),
202
+ /* @__PURE__ */ E("p", {
203
+ className: "text-sm text-text-secondary",
204
+ children: [
205
+ N.licenseNumber,
206
+ " - ",
207
+ N.licenseType
208
+ ]
209
+ }),
210
+ /* @__PURE__ */ E("p", {
211
+ className: "text-sm text-text-secondary",
212
+ children: ["Expires: ", S(N.licenseExpiry)]
213
+ })
214
+ ] }), /* @__PURE__ */ T(o, {
215
+ variant: "default",
216
+ children: "Valid"
217
+ })]
218
+ }), N.documents.map((e) => /* @__PURE__ */ E("div", {
219
+ className: "flex items-center justify-between p-3 border rounded-lg",
220
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
221
+ className: "font-medium capitalize",
222
+ children: e.type.replace("_", " ")
223
+ }), /* @__PURE__ */ E("p", {
224
+ className: "text-sm text-text-secondary",
225
+ children: ["Expires: ", S(e.expiryDate)]
226
+ })] }), /* @__PURE__ */ T(o, {
227
+ variant: e.verified ? "default" : "secondary",
228
+ children: e.verified ? "Verified" : "Pending"
229
+ })]
230
+ }, e.id))]
231
+ }) })] })
232
+ ]
233
+ }), /* @__PURE__ */ E("div", {
234
+ className: "space-y-6",
235
+ children: [
236
+ /* @__PURE__ */ E(t, { children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ T(r, { children: "Statistics" }) }), /* @__PURE__ */ E(n, {
237
+ className: "space-y-4",
238
+ children: [
239
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
240
+ className: "text-sm text-text-secondary",
241
+ children: "Total Deliveries"
242
+ }), /* @__PURE__ */ T("p", {
243
+ className: "text-2xl font-bold",
244
+ children: N.completedOrders.toLocaleString()
245
+ })] }),
246
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
247
+ className: "text-sm text-text-secondary",
248
+ children: "Today's Deliveries"
249
+ }), /* @__PURE__ */ T("p", {
250
+ className: "text-2xl font-bold",
251
+ children: N.todayOrders
252
+ })] }),
253
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
254
+ className: "text-sm text-text-secondary",
255
+ children: "Join Date"
256
+ }), /* @__PURE__ */ T("p", {
257
+ className: "font-medium",
258
+ children: S(N.joinDate)
259
+ })] })
260
+ ]
261
+ })] }),
262
+ /* @__PURE__ */ E(t, { children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ E(r, {
263
+ className: "flex items-center gap-2",
264
+ children: [/* @__PURE__ */ T(f, { size: 18 }), " Earnings"]
265
+ }) }), /* @__PURE__ */ E(n, {
266
+ className: "space-y-3",
267
+ children: [
268
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
269
+ className: "text-sm text-text-secondary",
270
+ children: "Total Earnings"
271
+ }), /* @__PURE__ */ T("p", {
272
+ className: "text-2xl font-bold",
273
+ children: x(N.earnings.totalEarnings)
274
+ })] }),
275
+ /* @__PURE__ */ E("div", {
276
+ className: "grid grid-cols-2 gap-3",
277
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
278
+ className: "text-sm text-text-secondary",
279
+ children: "This Week"
280
+ }), /* @__PURE__ */ T("p", {
281
+ className: "font-medium",
282
+ children: x(N.earnings.weeklyEarnings)
283
+ })] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
284
+ className: "text-sm text-text-secondary",
285
+ children: "This Month"
286
+ }), /* @__PURE__ */ T("p", {
287
+ className: "font-medium",
288
+ children: x(N.earnings.monthlyEarnings)
289
+ })] })]
290
+ }),
291
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
292
+ className: "text-sm text-text-secondary",
293
+ children: "Base Salary"
294
+ }), /* @__PURE__ */ E("p", {
295
+ className: "font-medium",
296
+ children: [x(N.baseSalary), "/year"]
297
+ })] })
298
+ ]
299
+ })] }),
300
+ N.currentLocation && /* @__PURE__ */ E(t, { children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ E(r, {
301
+ className: "flex items-center gap-2",
302
+ children: [/* @__PURE__ */ T(m, { size: 18 }), " Current Location"]
303
+ }) }), /* @__PURE__ */ E(n, { children: [/* @__PURE__ */ T("p", {
304
+ className: "text-sm",
305
+ children: N.currentLocation.address || "Location updating..."
306
+ }), /* @__PURE__ */ E("p", {
307
+ className: "text-xs text-text-secondary mt-1",
308
+ children: ["Updated ", S(N.currentLocation.timestamp || /* @__PURE__ */ new Date(), "relative")]
309
+ })] })] }),
310
+ /* @__PURE__ */ E(t, { children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ T(r, { children: "Compliance Status" }) }), /* @__PURE__ */ T(n, {
311
+ className: "space-y-2",
312
+ children: Object.entries(N.compliance).filter(([e]) => e !== "lastUpdate").map(([e, t]) => /* @__PURE__ */ E("div", {
313
+ className: "flex items-center justify-between",
314
+ children: [/* @__PURE__ */ T("span", {
315
+ className: "text-sm capitalize",
316
+ children: e.replace(/([A-Z])/g, " $1")
317
+ }), /* @__PURE__ */ T(o, {
318
+ variant: t ? "default" : "destructive",
319
+ children: t ? "Compliant" : "Non-compliant"
320
+ })]
321
+ }, e))
322
+ })] })
323
+ ]
324
+ })]
325
+ })
326
+ ]
327
+ });
328
+ }
329
+ //#endregion
330
+ export { A as default };