@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.
- package/dist/{AIAssistantPage-CNyoKtID.js → AIAssistantPage-AvsMbunM.js} +35 -29
- package/dist/{AnalyticsPage-Ck615ox7.js → AnalyticsPage-CCLfHgQZ.js} +36 -25
- package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
- package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
- package/dist/CustomersPage-CGGfD4ki.js +163 -0
- package/dist/{DashboardPage-DTmyuC11.js → DashboardPage-D2HRqwg9.js} +93 -89
- package/dist/DataTable-CD9ZhpLB.js +249 -0
- package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
- package/dist/DriversPage-DKiynISH.js +167 -0
- package/dist/FinancePage-Vg8WPs38.js +158 -0
- package/dist/{FleetPage-DCfOmBa2.js → FleetPage-DddXt8r8.js} +109 -71
- package/dist/ImportExportPage-BW6qO3kc.js +248 -0
- package/dist/{InventoryPage-BW0QXWuf.js → InventoryPage-rMGuaJN-.js} +74 -70
- package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
- package/dist/MarketplacePage-DKrXAv62.js +219 -0
- package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
- package/dist/OrdersListPage-BHeT8S5o.js +309 -0
- package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
- package/dist/ProductsPage--xEpbQ8A.js +171 -0
- package/dist/{ReportsPage-Df3hciPy.js → ReportsPage-Bb7_90rK.js} +53 -45
- package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
- package/dist/RoutesPage-s57PtgcQ.js +163 -0
- package/dist/SettingsPage-BYNCBOpN.js +298 -0
- package/dist/{TrackingPage-CU0Vk4mx.js → TrackingPage-CcRc_dva.js} +77 -72
- package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
- package/dist/VehiclesPage-UlxPWP9K.js +167 -0
- package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
- package/dist/WarehousesPage-CuTO-OPp.js +164 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/movethewheels/components/DataTable.tsx +37 -2
- package/src/movethewheels/components/MetricCard.tsx +3 -1
- package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
- package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
- package/src/movethewheels/pages/CustomersPage.tsx +40 -2
- package/src/movethewheels/pages/DashboardPage.tsx +8 -1
- package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
- package/src/movethewheels/pages/DriversPage.tsx +37 -1
- package/src/movethewheels/pages/FinancePage.tsx +45 -41
- package/src/movethewheels/pages/FleetPage.tsx +68 -25
- package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
- package/src/movethewheels/pages/InventoryPage.tsx +20 -23
- package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
- package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
- package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
- package/src/movethewheels/pages/OrdersListPage.tsx +62 -1
- package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
- package/src/movethewheels/pages/ProductsPage.tsx +33 -1
- package/src/movethewheels/pages/ReportsPage.tsx +23 -19
- package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
- package/src/movethewheels/pages/RoutesPage.tsx +41 -5
- package/src/movethewheels/pages/SettingsPage.tsx +68 -26
- package/src/movethewheels/pages/TrackingPage.tsx +50 -47
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
- package/src/movethewheels/pages/VehiclesPage.tsx +33 -1
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
- package/src/movethewheels/pages/WarehousesPage.tsx +42 -4
- package/dist/CreateOrderPage-C9Vb57Yn.js +0 -471
- package/dist/CustomerDetailsPage-BVkHRZvi.js +0 -239
- package/dist/CustomersPage-DhQg-6h_.js +0 -118
- package/dist/DataTable-CfWvFw5B.js +0 -239
- package/dist/DriverDetailsPage-DaaCQ-2O.js +0 -297
- package/dist/DriversPage-D0RMBB_t.js +0 -129
- package/dist/FinancePage-BUXqW1IM.js +0 -154
- package/dist/ImportExportPage-BM1BoRcE.js +0 -232
- package/dist/LiveTrackingPage-DqcGXdkw.js +0 -332
- package/dist/MarketplacePage-DFqsxNYU.js +0 -192
- package/dist/OrderDetailsPage-Dx1m3cVA.js +0 -398
- package/dist/OrdersListPage-DHYBGrWf.js +0 -256
- package/dist/ProductDetailsPage-DOXO90kb.js +0 -168
- package/dist/ProductsPage-RLMTwWN0.js +0 -133
- package/dist/RouteDetailsPage-xzFDeR-X.js +0 -240
- package/dist/RoutesPage-DDFy1QVi.js +0 -118
- package/dist/SettingsPage-JH_-UPbf.js +0 -247
- package/dist/VehicleDetailsPage-P4xDttKw.js +0 -194
- package/dist/VehiclesPage-tJZ64QKV.js +0 -129
- package/dist/WarehouseDetailsPage-Bt_w2Yf7.js +0 -215
- package/dist/WarehousesPage-HsPpEFeG.js +0 -126
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { d as e, f as t, g as n, h as r, i, it as a, l as o, u as s } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
-
import { t as c } from "./download-Dpa9vqoG.js";
|
|
3
|
-
import { t as l } from "./file-text-C8Uioy11.js";
|
|
4
|
-
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
-
//#region node_modules/lucide-react/dist/esm/icons/check.js
|
|
6
|
-
var f = a("Check", [["path", {
|
|
7
|
-
d: "M20 6 9 17l-5-5",
|
|
8
|
-
key: "1gmf2c"
|
|
9
|
-
}]]), p = a("FileSpreadsheet", [
|
|
10
|
-
["path", {
|
|
11
|
-
d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",
|
|
12
|
-
key: "1rqfz7"
|
|
13
|
-
}],
|
|
14
|
-
["path", {
|
|
15
|
-
d: "M14 2v4a2 2 0 0 0 2 2h4",
|
|
16
|
-
key: "tnqrlb"
|
|
17
|
-
}],
|
|
18
|
-
["path", {
|
|
19
|
-
d: "M8 13h2",
|
|
20
|
-
key: "yr2amv"
|
|
21
|
-
}],
|
|
22
|
-
["path", {
|
|
23
|
-
d: "M14 13h2",
|
|
24
|
-
key: "un5t4a"
|
|
25
|
-
}],
|
|
26
|
-
["path", {
|
|
27
|
-
d: "M8 17h2",
|
|
28
|
-
key: "2yhykz"
|
|
29
|
-
}],
|
|
30
|
-
["path", {
|
|
31
|
-
d: "M14 17h2",
|
|
32
|
-
key: "10kma7"
|
|
33
|
-
}]
|
|
34
|
-
]), m = a("Upload", [
|
|
35
|
-
["path", {
|
|
36
|
-
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
37
|
-
key: "ih7n3h"
|
|
38
|
-
}],
|
|
39
|
-
["polyline", {
|
|
40
|
-
points: "17 8 12 3 7 8",
|
|
41
|
-
key: "t8dd8p"
|
|
42
|
-
}],
|
|
43
|
-
["line", {
|
|
44
|
-
x1: "12",
|
|
45
|
-
x2: "12",
|
|
46
|
-
y1: "3",
|
|
47
|
-
y2: "15",
|
|
48
|
-
key: "widbto"
|
|
49
|
-
}]
|
|
50
|
-
]);
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region src/movethewheels/pages/ImportExportPage.tsx
|
|
53
|
-
function h() {
|
|
54
|
-
return /* @__PURE__ */ d(i, {
|
|
55
|
-
title: "Import / Export",
|
|
56
|
-
subtitle: "Import and export your data",
|
|
57
|
-
icon: /* @__PURE__ */ u(l, { size: 24 }),
|
|
58
|
-
children: [/* @__PURE__ */ d("div", {
|
|
59
|
-
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
60
|
-
children: [/* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ d(n, {
|
|
61
|
-
className: "flex items-center gap-2",
|
|
62
|
-
children: [/* @__PURE__ */ u(m, { size: 18 }), " Import Data"]
|
|
63
|
-
}) }), /* @__PURE__ */ u(t, {
|
|
64
|
-
className: "space-y-4",
|
|
65
|
-
children: [
|
|
66
|
-
{
|
|
67
|
-
name: "Orders",
|
|
68
|
-
description: "Import orders from CSV or Excel",
|
|
69
|
-
icon: p,
|
|
70
|
-
format: "CSV, XLSX"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: "Customers",
|
|
74
|
-
description: "Import customer database",
|
|
75
|
-
icon: p,
|
|
76
|
-
format: "CSV, XLSX"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: "Products",
|
|
80
|
-
description: "Import product catalog",
|
|
81
|
-
icon: p,
|
|
82
|
-
format: "CSV, XLSX"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: "Inventory",
|
|
86
|
-
description: "Import inventory levels",
|
|
87
|
-
icon: p,
|
|
88
|
-
format: "CSV, XLSX"
|
|
89
|
-
}
|
|
90
|
-
].map((e) => /* @__PURE__ */ d("div", {
|
|
91
|
-
className: "flex items-center justify-between p-4 border rounded-lg hover:border-primary/50 transition-colors",
|
|
92
|
-
children: [/* @__PURE__ */ d("div", {
|
|
93
|
-
className: "flex items-center gap-3",
|
|
94
|
-
children: [/* @__PURE__ */ u("div", {
|
|
95
|
-
className: "w-10 h-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center",
|
|
96
|
-
children: /* @__PURE__ */ u(e.icon, {
|
|
97
|
-
size: 20,
|
|
98
|
-
className: "text-primary"
|
|
99
|
-
})
|
|
100
|
-
}), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
101
|
-
className: "font-medium",
|
|
102
|
-
children: e.name
|
|
103
|
-
}), /* @__PURE__ */ u("p", {
|
|
104
|
-
className: "text-sm text-text-secondary",
|
|
105
|
-
children: e.description
|
|
106
|
-
})] })]
|
|
107
|
-
}), /* @__PURE__ */ d("div", {
|
|
108
|
-
className: "text-right",
|
|
109
|
-
children: [/* @__PURE__ */ u(o, {
|
|
110
|
-
variant: "outline",
|
|
111
|
-
children: e.format
|
|
112
|
-
}), /* @__PURE__ */ u(s, {
|
|
113
|
-
variant: "outline",
|
|
114
|
-
size: "sm",
|
|
115
|
-
className: "ml-2",
|
|
116
|
-
children: /* @__PURE__ */ u(m, { size: 14 })
|
|
117
|
-
})]
|
|
118
|
-
})]
|
|
119
|
-
}, e.name))
|
|
120
|
-
})] }), /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ d(n, {
|
|
121
|
-
className: "flex items-center gap-2",
|
|
122
|
-
children: [/* @__PURE__ */ u(c, { size: 18 }), " Export Data"]
|
|
123
|
-
}) }), /* @__PURE__ */ u(t, {
|
|
124
|
-
className: "space-y-4",
|
|
125
|
-
children: [
|
|
126
|
-
{
|
|
127
|
-
name: "Orders Report",
|
|
128
|
-
description: "Export all orders data",
|
|
129
|
-
formats: [
|
|
130
|
-
"CSV",
|
|
131
|
-
"Excel",
|
|
132
|
-
"PDF"
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: "Financial Report",
|
|
137
|
-
description: "Export revenue and payments",
|
|
138
|
-
formats: [
|
|
139
|
-
"CSV",
|
|
140
|
-
"Excel",
|
|
141
|
-
"PDF"
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: "Fleet Report",
|
|
146
|
-
description: "Export vehicle and driver data",
|
|
147
|
-
formats: ["CSV", "Excel"]
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: "Analytics Report",
|
|
151
|
-
description: "Export performance metrics",
|
|
152
|
-
formats: [
|
|
153
|
-
"CSV",
|
|
154
|
-
"Excel",
|
|
155
|
-
"PDF"
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
].map((e) => /* @__PURE__ */ d("div", {
|
|
159
|
-
className: "flex items-center justify-between p-4 border rounded-lg hover:border-primary/50 transition-colors",
|
|
160
|
-
children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
161
|
-
className: "font-medium",
|
|
162
|
-
children: e.name
|
|
163
|
-
}), /* @__PURE__ */ u("p", {
|
|
164
|
-
className: "text-sm text-text-secondary",
|
|
165
|
-
children: e.description
|
|
166
|
-
})] }), /* @__PURE__ */ u("div", {
|
|
167
|
-
className: "flex gap-1",
|
|
168
|
-
children: e.formats.map((e) => /* @__PURE__ */ u(s, {
|
|
169
|
-
variant: "outline",
|
|
170
|
-
size: "sm",
|
|
171
|
-
children: e
|
|
172
|
-
}, e))
|
|
173
|
-
})]
|
|
174
|
-
}, e.name))
|
|
175
|
-
})] })]
|
|
176
|
-
}), /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(n, { children: "Recent Activity" }) }), /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u("div", {
|
|
177
|
-
className: "space-y-3",
|
|
178
|
-
children: [
|
|
179
|
-
{
|
|
180
|
-
type: "export",
|
|
181
|
-
name: "Orders Report",
|
|
182
|
-
date: "2024-01-15",
|
|
183
|
-
status: "completed"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
type: "import",
|
|
187
|
-
name: "Customer Data",
|
|
188
|
-
date: "2024-01-14",
|
|
189
|
-
status: "completed"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
type: "export",
|
|
193
|
-
name: "Financial Report",
|
|
194
|
-
date: "2024-01-13",
|
|
195
|
-
status: "completed"
|
|
196
|
-
}
|
|
197
|
-
].map((e, t) => /* @__PURE__ */ d("div", {
|
|
198
|
-
className: "flex items-center justify-between p-3 bg-bg-sunken/50 rounded-lg",
|
|
199
|
-
children: [/* @__PURE__ */ d("div", {
|
|
200
|
-
className: "flex items-center gap-3",
|
|
201
|
-
children: [e.type === "import" ? /* @__PURE__ */ u(m, {
|
|
202
|
-
size: 16,
|
|
203
|
-
className: "text-primary"
|
|
204
|
-
}) : /* @__PURE__ */ u(c, {
|
|
205
|
-
size: 16,
|
|
206
|
-
className: "text-primary"
|
|
207
|
-
}), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
|
|
208
|
-
className: "font-medium",
|
|
209
|
-
children: e.name
|
|
210
|
-
}), /* @__PURE__ */ d("p", {
|
|
211
|
-
className: "text-sm text-text-secondary",
|
|
212
|
-
children: [
|
|
213
|
-
e.type === "import" ? "Imported" : "Exported",
|
|
214
|
-
" on ",
|
|
215
|
-
e.date
|
|
216
|
-
]
|
|
217
|
-
})] })]
|
|
218
|
-
}), /* @__PURE__ */ d(o, {
|
|
219
|
-
variant: "default",
|
|
220
|
-
className: "gap-1",
|
|
221
|
-
children: [
|
|
222
|
-
/* @__PURE__ */ u(f, { size: 12 }),
|
|
223
|
-
" ",
|
|
224
|
-
e.status
|
|
225
|
-
]
|
|
226
|
-
})]
|
|
227
|
-
}, t))
|
|
228
|
-
}) })] })]
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
//#endregion
|
|
232
|
-
export { h as default };
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
import { J as e, N as t, X as n, Z as r, d as i, f as a, g as o, h as s, i as c, it as l, l as u, u as d } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
-
import { t as f } from "./map-pin-BSaf5IDL.js";
|
|
3
|
-
import { t as p } from "./map-_Per4sT9.js";
|
|
4
|
-
import { t as m } from "./package-BE7U0wQE.js";
|
|
5
|
-
import { t as h } from "./refresh-cw-CWfERAit.js";
|
|
6
|
-
import { t as g } from "./truck-CtDjNFbi.js";
|
|
7
|
-
import { r as _ } from "./graphqlClient-CdJyR_ed.js";
|
|
8
|
-
import { o as v, r as y } from "./useTracking-De2KIUNu.js";
|
|
9
|
-
import { r as b, t as x } from "./MetricCard-B7yMyvMX.js";
|
|
10
|
-
import { r as S } from "./StatusBadge-CijYQXtb.js";
|
|
11
|
-
import { r as C } from "./formatters-_vJlC-47.js";
|
|
12
|
-
import { t as w } from "./navigation-BgnOfsVd.js";
|
|
13
|
-
import { useState as T } from "react";
|
|
14
|
-
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
15
|
-
//#region node_modules/lucide-react/dist/esm/icons/list.js
|
|
16
|
-
var O = l("List", [
|
|
17
|
-
["path", {
|
|
18
|
-
d: "M3 12h.01",
|
|
19
|
-
key: "nlz23k"
|
|
20
|
-
}],
|
|
21
|
-
["path", {
|
|
22
|
-
d: "M3 18h.01",
|
|
23
|
-
key: "1tta3j"
|
|
24
|
-
}],
|
|
25
|
-
["path", {
|
|
26
|
-
d: "M3 6h.01",
|
|
27
|
-
key: "1rqtza"
|
|
28
|
-
}],
|
|
29
|
-
["path", {
|
|
30
|
-
d: "M8 12h13",
|
|
31
|
-
key: "1za7za"
|
|
32
|
-
}],
|
|
33
|
-
["path", {
|
|
34
|
-
d: "M8 18h13",
|
|
35
|
-
key: "1lx6n3"
|
|
36
|
-
}],
|
|
37
|
-
["path", {
|
|
38
|
-
d: "M8 6h13",
|
|
39
|
-
key: "ik3vkj"
|
|
40
|
-
}]
|
|
41
|
-
]);
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/movethewheels/pages/LiveTrackingPage.tsx
|
|
44
|
-
function k() {
|
|
45
|
-
let { basePath: l, navigate: k } = _(), { activeDeliveries: A, isLoading: j, refetch: M } = y(), { unacknowledgedAlerts: N } = v(), [P, F] = T("map"), [I, L] = T(null), R = (e) => {
|
|
46
|
-
k && k(w(l, e));
|
|
47
|
-
}, z = I ? A.find((e) => e.order?.id === I) : null;
|
|
48
|
-
return /* @__PURE__ */ D(c, {
|
|
49
|
-
title: "Live Tracking",
|
|
50
|
-
subtitle: `${A.length} active deliveries`,
|
|
51
|
-
icon: /* @__PURE__ */ E(f, { size: 24 }),
|
|
52
|
-
headerActions: /* @__PURE__ */ D("div", {
|
|
53
|
-
className: "flex gap-2",
|
|
54
|
-
children: [/* @__PURE__ */ D(d, {
|
|
55
|
-
variant: "outline",
|
|
56
|
-
onClick: M,
|
|
57
|
-
disabled: j,
|
|
58
|
-
children: [/* @__PURE__ */ E(h, {
|
|
59
|
-
size: 16,
|
|
60
|
-
className: j ? "animate-spin" : ""
|
|
61
|
-
}), "Refresh"]
|
|
62
|
-
}), /* @__PURE__ */ E(e, {
|
|
63
|
-
value: P,
|
|
64
|
-
onValueChange: (e) => F(e),
|
|
65
|
-
children: /* @__PURE__ */ D(n, { children: [/* @__PURE__ */ E(r, {
|
|
66
|
-
value: "map",
|
|
67
|
-
children: /* @__PURE__ */ E(p, { size: 16 })
|
|
68
|
-
}), /* @__PURE__ */ E(r, {
|
|
69
|
-
value: "list",
|
|
70
|
-
children: /* @__PURE__ */ E(O, { size: 16 })
|
|
71
|
-
})] })
|
|
72
|
-
})]
|
|
73
|
-
}),
|
|
74
|
-
children: [/* @__PURE__ */ D(b, {
|
|
75
|
-
columns: 4,
|
|
76
|
-
children: [
|
|
77
|
-
/* @__PURE__ */ E(x, {
|
|
78
|
-
size: "sm",
|
|
79
|
-
label: "Active Deliveries",
|
|
80
|
-
value: A.length,
|
|
81
|
-
icon: /* @__PURE__ */ E(g, { size: 18 })
|
|
82
|
-
}),
|
|
83
|
-
/* @__PURE__ */ E(x, {
|
|
84
|
-
size: "sm",
|
|
85
|
-
label: "In Transit",
|
|
86
|
-
value: A.filter((e) => e.order?.status === "in_transit").length,
|
|
87
|
-
icon: /* @__PURE__ */ E(m, { size: 18 })
|
|
88
|
-
}),
|
|
89
|
-
/* @__PURE__ */ E(x, {
|
|
90
|
-
size: "sm",
|
|
91
|
-
label: "Out for Delivery",
|
|
92
|
-
value: A.filter((e) => e.order?.status === "out_for_delivery").length,
|
|
93
|
-
icon: /* @__PURE__ */ E(f, { size: 18 })
|
|
94
|
-
}),
|
|
95
|
-
/* @__PURE__ */ E(x, {
|
|
96
|
-
size: "sm",
|
|
97
|
-
label: "Alerts",
|
|
98
|
-
value: N.length,
|
|
99
|
-
changeType: N.length > 0 ? "negative" : "neutral"
|
|
100
|
-
})
|
|
101
|
-
]
|
|
102
|
-
}), /* @__PURE__ */ D("div", {
|
|
103
|
-
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
104
|
-
children: [/* @__PURE__ */ E("div", {
|
|
105
|
-
className: "lg:col-span-2",
|
|
106
|
-
children: P === "map" ? /* @__PURE__ */ E(i, {
|
|
107
|
-
className: "h-[600px]",
|
|
108
|
-
children: /* @__PURE__ */ E(a, {
|
|
109
|
-
className: "p-0 h-full",
|
|
110
|
-
children: /* @__PURE__ */ E("div", {
|
|
111
|
-
className: "w-full h-full bg-bg-sunken rounded-lg flex items-center justify-center",
|
|
112
|
-
children: /* @__PURE__ */ D("div", {
|
|
113
|
-
className: "text-center text-text-secondary",
|
|
114
|
-
children: [
|
|
115
|
-
/* @__PURE__ */ E(f, {
|
|
116
|
-
size: 64,
|
|
117
|
-
className: "mx-auto mb-4 opacity-50"
|
|
118
|
-
}),
|
|
119
|
-
/* @__PURE__ */ E("p", {
|
|
120
|
-
className: "text-lg font-medium",
|
|
121
|
-
children: "Map View"
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ D("p", {
|
|
124
|
-
className: "text-sm",
|
|
125
|
-
children: [
|
|
126
|
-
"Interactive map showing ",
|
|
127
|
-
A.length,
|
|
128
|
-
" active deliveries"
|
|
129
|
-
]
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ E("p", {
|
|
132
|
-
className: "text-xs mt-2",
|
|
133
|
-
children: "(Map integration with Mapbox/Google Maps would go here)"
|
|
134
|
-
})
|
|
135
|
-
]
|
|
136
|
-
})
|
|
137
|
-
})
|
|
138
|
-
})
|
|
139
|
-
}) : /* @__PURE__ */ D(i, { children: [/* @__PURE__ */ E(s, { children: /* @__PURE__ */ E(o, { children: "Active Deliveries" }) }), /* @__PURE__ */ E(a, {
|
|
140
|
-
className: "p-0",
|
|
141
|
-
children: /* @__PURE__ */ E(t, {
|
|
142
|
-
className: "h-[550px]",
|
|
143
|
-
children: /* @__PURE__ */ D("div", {
|
|
144
|
-
className: "divide-y",
|
|
145
|
-
children: [A.map((e) => e.order ? /* @__PURE__ */ E("div", {
|
|
146
|
-
className: `p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors ${I === e.order.id ? "bg-bg-sunken/50" : ""}`,
|
|
147
|
-
onClick: () => L(e.order.id),
|
|
148
|
-
children: /* @__PURE__ */ D("div", {
|
|
149
|
-
className: "flex items-start justify-between",
|
|
150
|
-
children: [/* @__PURE__ */ D("div", { children: [
|
|
151
|
-
/* @__PURE__ */ D("div", {
|
|
152
|
-
className: "flex items-center gap-2 mb-1",
|
|
153
|
-
children: [/* @__PURE__ */ E("span", {
|
|
154
|
-
className: "font-medium",
|
|
155
|
-
children: e.order.orderNumber
|
|
156
|
-
}), /* @__PURE__ */ E(S, {
|
|
157
|
-
status: e.order.status,
|
|
158
|
-
type: "order",
|
|
159
|
-
size: "sm"
|
|
160
|
-
})]
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ E("p", {
|
|
163
|
-
className: "text-sm text-text-secondary",
|
|
164
|
-
children: e.order.customerInfo.name
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ D("p", {
|
|
167
|
-
className: "text-sm text-text-secondary",
|
|
168
|
-
children: [e.driver?.fullName || "Unassigned", e.vehicle && ` - ${e.vehicle.vehicleNumber}`]
|
|
169
|
-
})
|
|
170
|
-
] }), /* @__PURE__ */ D("div", {
|
|
171
|
-
className: "text-right",
|
|
172
|
-
children: [/* @__PURE__ */ D("p", {
|
|
173
|
-
className: "text-sm font-medium",
|
|
174
|
-
children: [
|
|
175
|
-
"ETA:",
|
|
176
|
-
" ",
|
|
177
|
-
e.estimatedArrival ? C(e.estimatedArrival, "time") : "N/A"
|
|
178
|
-
]
|
|
179
|
-
}), /* @__PURE__ */ E("p", {
|
|
180
|
-
className: "text-xs text-text-secondary",
|
|
181
|
-
children: e.tracking?.currentLocation.address || "Location updating..."
|
|
182
|
-
})]
|
|
183
|
-
})]
|
|
184
|
-
})
|
|
185
|
-
}, e.order.id) : null), A.length === 0 && /* @__PURE__ */ E("div", {
|
|
186
|
-
className: "p-8 text-center text-text-secondary",
|
|
187
|
-
children: "No active deliveries"
|
|
188
|
-
})]
|
|
189
|
-
})
|
|
190
|
-
})
|
|
191
|
-
})] })
|
|
192
|
-
}), /* @__PURE__ */ D("div", {
|
|
193
|
-
className: "space-y-6",
|
|
194
|
-
children: [
|
|
195
|
-
z ? /* @__PURE__ */ D(i, { children: [/* @__PURE__ */ E(s, { children: /* @__PURE__ */ D("div", {
|
|
196
|
-
className: "flex items-center justify-between",
|
|
197
|
-
children: [/* @__PURE__ */ E(o, { children: "Delivery Details" }), /* @__PURE__ */ E(d, {
|
|
198
|
-
variant: "ghost",
|
|
199
|
-
size: "sm",
|
|
200
|
-
onClick: () => L(null),
|
|
201
|
-
children: "Clear"
|
|
202
|
-
})]
|
|
203
|
-
}) }), /* @__PURE__ */ D(a, {
|
|
204
|
-
className: "space-y-4",
|
|
205
|
-
children: [
|
|
206
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
207
|
-
className: "text-sm text-text-secondary",
|
|
208
|
-
children: "Order"
|
|
209
|
-
}), /* @__PURE__ */ E("p", {
|
|
210
|
-
className: "font-medium",
|
|
211
|
-
children: z.order?.orderNumber ?? "-"
|
|
212
|
-
})] }),
|
|
213
|
-
/* @__PURE__ */ D("div", { children: [
|
|
214
|
-
/* @__PURE__ */ E("p", {
|
|
215
|
-
className: "text-sm text-text-secondary",
|
|
216
|
-
children: "Customer"
|
|
217
|
-
}),
|
|
218
|
-
/* @__PURE__ */ E("p", {
|
|
219
|
-
className: "font-medium",
|
|
220
|
-
children: z.order?.customerInfo.name ?? "-"
|
|
221
|
-
}),
|
|
222
|
-
/* @__PURE__ */ E("p", {
|
|
223
|
-
className: "text-sm text-text-secondary",
|
|
224
|
-
children: z.order?.customerInfo.phone ?? "-"
|
|
225
|
-
})
|
|
226
|
-
] }),
|
|
227
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
228
|
-
className: "text-sm text-text-secondary",
|
|
229
|
-
children: "Driver"
|
|
230
|
-
}), /* @__PURE__ */ E("p", {
|
|
231
|
-
className: "font-medium",
|
|
232
|
-
children: z.driver?.fullName || "Unassigned"
|
|
233
|
-
})] }),
|
|
234
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
235
|
-
className: "text-sm text-text-secondary",
|
|
236
|
-
children: "Vehicle"
|
|
237
|
-
}), /* @__PURE__ */ E("p", {
|
|
238
|
-
className: "font-medium",
|
|
239
|
-
children: z.vehicle ? `${z.vehicle.vehicleNumber} - ${z.vehicle.make} ${z.vehicle.model}` : "Not assigned"
|
|
240
|
-
})] }),
|
|
241
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
242
|
-
className: "text-sm text-text-secondary",
|
|
243
|
-
children: "Current Location"
|
|
244
|
-
}), /* @__PURE__ */ E("p", {
|
|
245
|
-
className: "text-sm",
|
|
246
|
-
children: z.tracking?.currentLocation.address || "Updating..."
|
|
247
|
-
})] }),
|
|
248
|
-
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
249
|
-
className: "text-sm text-text-secondary",
|
|
250
|
-
children: "Estimated Arrival"
|
|
251
|
-
}), /* @__PURE__ */ E("p", {
|
|
252
|
-
className: "font-medium",
|
|
253
|
-
children: z.estimatedArrival ? C(z.estimatedArrival, "full") : "Calculating..."
|
|
254
|
-
})] }),
|
|
255
|
-
/* @__PURE__ */ D("div", {
|
|
256
|
-
className: "pt-2 space-y-2",
|
|
257
|
-
children: [/* @__PURE__ */ E(d, {
|
|
258
|
-
className: "w-full",
|
|
259
|
-
onClick: () => z.order && R(`orders/${z.order.id}`),
|
|
260
|
-
disabled: !z.order,
|
|
261
|
-
children: "View Order"
|
|
262
|
-
}), /* @__PURE__ */ E(d, {
|
|
263
|
-
variant: "outline",
|
|
264
|
-
className: "w-full",
|
|
265
|
-
onClick: () => z.order && R(`tracking?order=${z.order.id}`),
|
|
266
|
-
disabled: !z.order,
|
|
267
|
-
children: "Track Details"
|
|
268
|
-
})]
|
|
269
|
-
})
|
|
270
|
-
]
|
|
271
|
-
})] }) : /* @__PURE__ */ E(i, { children: /* @__PURE__ */ D(a, {
|
|
272
|
-
className: "p-8 text-center text-text-secondary",
|
|
273
|
-
children: [/* @__PURE__ */ E(f, {
|
|
274
|
-
size: 32,
|
|
275
|
-
className: "mx-auto mb-2 opacity-50"
|
|
276
|
-
}), /* @__PURE__ */ E("p", { children: "Select a delivery to see details" })]
|
|
277
|
-
}) }),
|
|
278
|
-
/* @__PURE__ */ D(i, { children: [/* @__PURE__ */ E(s, { children: /* @__PURE__ */ D(o, {
|
|
279
|
-
className: "flex items-center gap-2",
|
|
280
|
-
children: ["Alerts", N.length > 0 && /* @__PURE__ */ E(u, {
|
|
281
|
-
variant: "destructive",
|
|
282
|
-
children: N.length
|
|
283
|
-
})]
|
|
284
|
-
}) }), /* @__PURE__ */ E(a, { children: N.length > 0 ? /* @__PURE__ */ E("div", {
|
|
285
|
-
className: "space-y-3",
|
|
286
|
-
children: N.slice(0, 5).map((e) => /* @__PURE__ */ D("div", {
|
|
287
|
-
className: `p-3 rounded-lg text-sm ${e.severity === "critical" || e.severity === "high" ? "bg-red-50 dark:bg-red-900/20" : "bg-yellow-50 dark:bg-yellow-900/20"}`,
|
|
288
|
-
children: [/* @__PURE__ */ E("p", {
|
|
289
|
-
className: "font-medium",
|
|
290
|
-
children: e.message
|
|
291
|
-
}), /* @__PURE__ */ E("p", {
|
|
292
|
-
className: "text-xs text-text-secondary mt-1",
|
|
293
|
-
children: C(e.timestamp, "relative")
|
|
294
|
-
})]
|
|
295
|
-
}, e.id))
|
|
296
|
-
}) : /* @__PURE__ */ E("div", {
|
|
297
|
-
className: "text-center text-text-secondary py-4",
|
|
298
|
-
children: /* @__PURE__ */ E("p", {
|
|
299
|
-
className: "text-sm",
|
|
300
|
-
children: "No active alerts"
|
|
301
|
-
})
|
|
302
|
-
}) })] }),
|
|
303
|
-
/* @__PURE__ */ D(i, { children: [/* @__PURE__ */ E(s, { children: /* @__PURE__ */ E(o, { children: "Quick Actions" }) }), /* @__PURE__ */ D(a, {
|
|
304
|
-
className: "space-y-2",
|
|
305
|
-
children: [
|
|
306
|
-
/* @__PURE__ */ D(d, {
|
|
307
|
-
variant: "outline",
|
|
308
|
-
className: "w-full",
|
|
309
|
-
onClick: () => R("orders/new"),
|
|
310
|
-
children: [/* @__PURE__ */ E(m, { size: 16 }), "Create Order"]
|
|
311
|
-
}),
|
|
312
|
-
/* @__PURE__ */ D(d, {
|
|
313
|
-
variant: "outline",
|
|
314
|
-
className: "w-full",
|
|
315
|
-
onClick: () => R("routes"),
|
|
316
|
-
children: [/* @__PURE__ */ E(f, { size: 16 }), "Manage Routes"]
|
|
317
|
-
}),
|
|
318
|
-
/* @__PURE__ */ D(d, {
|
|
319
|
-
variant: "outline",
|
|
320
|
-
className: "w-full",
|
|
321
|
-
onClick: () => R("fleet"),
|
|
322
|
-
children: [/* @__PURE__ */ E(g, { size: 16 }), "Fleet Status"]
|
|
323
|
-
})
|
|
324
|
-
]
|
|
325
|
-
})] })
|
|
326
|
-
]
|
|
327
|
-
})]
|
|
328
|
-
})]
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
//#endregion
|
|
332
|
-
export { k as default };
|