@burdenoff/microfe-movethewheels 2026.1031.2 → 2026.1031.4
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/MoveTheWheelsRoot.js +121 -104
- package/dist/MoveTheWheelsRoutes.js +142 -133
- package/dist/components/DocumentsCard.js +11 -11
- package/dist/components/ProofOfDeliveryCard.js +13 -13
- package/dist/components/ShipmentRiskDialog.js +24 -24
- package/dist/components/ShippingQuoteResults.js +46 -46
- package/dist/components/TrackingAlertList.js +17 -17
- package/dist/generated/tracking-quality-operations.d.ts +140 -0
- package/dist/hooks/useEntityImport.js +68 -0
- package/dist/hooks/useOrderDispatch.js +17 -17
- package/dist/movethewheels/hooks/useEntityImport.d.ts +19 -0
- package/dist/movethewheels/pages/ImportExportPage.d.ts +9 -0
- package/dist/movethewheels/pages/SettingsPage.d.ts +1 -0
- package/dist/movethewheels/providers/ModuleSettingsProvider.d.ts +17 -0
- package/dist/movethewheels/utils/entityImport.d.ts +109 -0
- package/dist/movethewheels/utils/formatters.d.ts +23 -3
- package/dist/movethewheels/utils/moduleSettings.d.ts +52 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-up.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +30 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-up.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
- package/dist/pages/AnalyticsPage.js +27 -27
- package/dist/pages/CreateOrderPage.js +340 -317
- package/dist/pages/CustomerDetailsPage.js +246 -246
- package/dist/pages/CustomersPage.js +88 -79
- package/dist/pages/DashboardPage.js +24 -24
- package/dist/pages/DeliveryCapturePage.js +74 -74
- package/dist/pages/DriverDetailsPage.js +337 -337
- package/dist/pages/DriversPage.js +119 -110
- package/dist/pages/FinancePage.js +26 -26
- package/dist/pages/ImportExportPage.js +435 -0
- package/dist/pages/InventoryPage.js +28 -28
- package/dist/pages/LiveTrackingPage.js +108 -108
- package/dist/pages/MarketplacePage.js +44 -44
- package/dist/pages/OrderDetailsPage.js +306 -306
- package/dist/pages/OrdersListPage.js +27 -27
- package/dist/pages/ProductDetailsPage.js +89 -89
- package/dist/pages/ProductsPage.js +86 -77
- package/dist/pages/RouteDetailsPage.js +282 -285
- package/dist/pages/RoutesPage.js +78 -78
- package/dist/pages/SettingsPage.js +459 -0
- package/dist/pages/TrackingPage.js +41 -41
- package/dist/pages/VehicleDetailsPage.js +207 -207
- package/dist/pages/VehiclesPage.js +100 -90
- package/dist/pages/WarehouseDetailsPage.js +132 -132
- package/dist/pages/WarehousesPage.js +97 -88
- package/dist/providers/ModuleSettingsProvider.js +74 -0
- package/dist/utils/entityImport.js +73 -0
- package/dist/utils/formatters.js +53 -26
- package/dist/utils/moduleSettings.js +132 -0
- package/package.json +4 -2
- package/src/generated/tracking-quality-operations.ts +184 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +22 -3
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +13 -0
- package/src/movethewheels/hooks/useEntityImport.ts +108 -0
- package/src/movethewheels/pages/CreateOrderPage.tsx +38 -6
- package/src/movethewheels/pages/CustomersPage.tsx +6 -1
- package/src/movethewheels/pages/DriversPage.tsx +6 -0
- package/src/movethewheels/pages/ImportExportPage.tsx +483 -0
- package/src/movethewheels/pages/ProductsPage.tsx +16 -3
- package/src/movethewheels/pages/RouteDetailsPage.tsx +3 -6
- package/src/movethewheels/pages/RoutesPage.tsx +2 -2
- package/src/movethewheels/pages/SettingsPage.tsx +516 -0
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +4 -2
- package/src/movethewheels/pages/VehiclesPage.tsx +8 -1
- package/src/movethewheels/pages/WarehousesPage.tsx +6 -1
- package/src/movethewheels/providers/ModuleSettingsProvider.tsx +133 -0
- package/src/movethewheels/utils/entityImport.ts +239 -0
- package/src/movethewheels/utils/formatters.ts +69 -10
- package/src/movethewheels/utils/moduleSettings.ts +224 -0
|
@@ -1,264 +1,273 @@
|
|
|
1
1
|
import { useMoveTheWheels as e } from "./providers/MoveTheWheelsProvider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useModuleSettings as t } from "./providers/ModuleSettingsProvider.js";
|
|
3
|
+
import { useTr as n } from "./shared/hooks/useTr.js";
|
|
3
4
|
import "./hooks/index.js";
|
|
4
|
-
import { Suspense as
|
|
5
|
-
import { Route as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { NotFoundPage as
|
|
5
|
+
import { Suspense as r, lazy as i } from "react";
|
|
6
|
+
import { Route as a, Routes as o, useNavigate as s } from "react-router";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
import { NotFoundPage as u } from "@burdenoff/fe-libs/shared/pages";
|
|
8
9
|
//#region src/movethewheels/MoveTheWheelsRoutes.tsx
|
|
9
|
-
function
|
|
10
|
-
let { navigate:
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
homeLabel:
|
|
10
|
+
function d() {
|
|
11
|
+
let { navigate: t, basePath: r } = e(), i = s();
|
|
12
|
+
return /* @__PURE__ */ c(u, {
|
|
13
|
+
homeLabel: n()("movethewheels.root.notFound.homeLabel", "Back to MoveTheWheels"),
|
|
13
14
|
onGoHome: () => {
|
|
14
|
-
|
|
15
|
+
t ? t(r || "/") : i("/");
|
|
15
16
|
}
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
let e =
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
function f() {
|
|
20
|
+
let e = n();
|
|
21
|
+
return /* @__PURE__ */ c("div", {
|
|
21
22
|
className: "flex items-center justify-center min-h-[400px]",
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ l("div", {
|
|
23
24
|
className: "flex flex-col items-center gap-3",
|
|
24
|
-
children: [/* @__PURE__ */
|
|
25
|
+
children: [/* @__PURE__ */ c("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }), /* @__PURE__ */ c("p", {
|
|
25
26
|
className: "text-sm text-text-secondary",
|
|
26
27
|
children: e("movethewheels.root.loading", "Loading...")
|
|
27
28
|
})]
|
|
28
29
|
})
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
var
|
|
32
|
-
function
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
fallback: /* @__PURE__ */
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
32
|
+
var p = i(() => import("./pages/DashboardPage.js")), m = i(() => import("./pages/OrdersListPage.js")), h = i(() => import("./pages/OrderDetailsPage.js")), g = i(() => import("./pages/CreateOrderPage.js")), _ = i(() => import("./pages/TrackingPage.js")), v = i(() => import("./pages/TrackingEventQualityPage.js")), y = i(() => import("./pages/ShipmentStatusAuthorityPage.js")), b = i(() => import("./pages/LiveTrackingPage.js")), x = i(() => import("./pages/FleetPage.js")), S = i(() => import("./pages/VehiclesPage.js")), C = i(() => import("./pages/VehicleDetailsPage.js")), w = i(() => import("./pages/DriversPage.js")), T = i(() => import("./pages/DriverDetailsPage.js")), E = i(() => import("./pages/InventoryPage.js")), D = i(() => import("./pages/ProductsPage.js")), O = i(() => import("./pages/ProductDetailsPage.js")), k = i(() => import("./pages/PalletPreviewPage.js")), A = i(() => import("./pages/WarehousesPage.js")), j = i(() => import("./pages/WarehouseDetailsPage.js")), M = i(() => import("./pages/CustomersPage.js")), N = i(() => import("./pages/CustomerDetailsPage.js")), P = i(() => import("./pages/MarketplacePage.js")), F = i(() => import("./pages/ImportExportPage.js")), ee = i(() => import("./pages/SettingsPage.js")), I = i(() => import("./pages/RoutesPage.js")), L = i(() => import("./pages/RouteDetailsPage.js")), R = i(() => import("./pages/AnalyticsPage.js")), z = i(() => import("./pages/FinancePage.js")), B = i(() => import("./pages/FreightEstimatePage.js")), V = i(() => import("./pages/FreightInvoicePage.js")), H = i(() => import("./pages/ConsolidationPage.js")), U = i(() => import("./pages/LogisticsProceduresPage.js")), W = i(() => import("./pages/AIAssistantPage.js")), G = i(() => import("./pages/DeliveryCapturePage.js")), K = i(() => import("./pages/MultiModalShipmentPage.js")), q = i(() => import("./pages/ShippingRatesPage.js")), J = i(() => import("./pages/ContainersPage.js")), Y = i(() => import("./pages/ContainerConditionPage.js")), X = i(() => import("./pages/FreeTimePage.js")), Z = i(() => import("./pages/PendingPickPage.js")), Q = i(() => import("./pages/StockObservationsPage.js")), $ = i(() => import("./pages/StockBindingPage.js")), te = i(() => import("./pages/TripUtilizationPage.js")), ne = i(() => import("./pages/ConsumedFuelPreviewPage.js")), re = i(() => import("./pages/EmptyReusePage.js"));
|
|
33
|
+
function ie() {
|
|
34
|
+
return t(), /* @__PURE__ */ c(r, {
|
|
35
|
+
fallback: /* @__PURE__ */ c(f, {}),
|
|
36
|
+
children: /* @__PURE__ */ l(o, { children: [
|
|
37
|
+
/* @__PURE__ */ c(a, {
|
|
37
38
|
index: !0,
|
|
38
|
-
element: /* @__PURE__ */
|
|
39
|
+
element: /* @__PURE__ */ c(p, {})
|
|
39
40
|
}),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ c(a, {
|
|
41
42
|
path: "orders",
|
|
42
|
-
element: /* @__PURE__ */
|
|
43
|
+
element: /* @__PURE__ */ c(m, {})
|
|
43
44
|
}),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ c(a, {
|
|
45
46
|
path: "orders/new",
|
|
46
|
-
element: /* @__PURE__ */
|
|
47
|
+
element: /* @__PURE__ */ c(g, {})
|
|
47
48
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ c(a, {
|
|
49
50
|
path: "orders/:orderId",
|
|
50
|
-
element: /* @__PURE__ */
|
|
51
|
+
element: /* @__PURE__ */ c(h, {})
|
|
51
52
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ c(a, {
|
|
53
54
|
path: "orders/:orderId/edit",
|
|
54
|
-
element: /* @__PURE__ */
|
|
55
|
+
element: /* @__PURE__ */ c(g, {})
|
|
55
56
|
}),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ c(a, {
|
|
57
58
|
path: "tracking",
|
|
58
|
-
element: /* @__PURE__ */
|
|
59
|
+
element: /* @__PURE__ */ c(_, {})
|
|
59
60
|
}),
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ c(a, {
|
|
61
62
|
path: "tracking/live",
|
|
62
|
-
element: /* @__PURE__ */
|
|
63
|
+
element: /* @__PURE__ */ c(b, {})
|
|
63
64
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ c(a, {
|
|
65
66
|
path: "tracking/event-quality",
|
|
66
|
-
element: /* @__PURE__ */
|
|
67
|
+
element: /* @__PURE__ */ c(v, {})
|
|
67
68
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ c(a, {
|
|
69
70
|
path: "shipments/status-authority",
|
|
70
|
-
element: /* @__PURE__ */
|
|
71
|
+
element: /* @__PURE__ */ c(y, {})
|
|
71
72
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ c(a, {
|
|
73
74
|
path: "deliveries/mine",
|
|
74
|
-
element: /* @__PURE__ */
|
|
75
|
+
element: /* @__PURE__ */ c(G, {})
|
|
75
76
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ c(a, {
|
|
77
78
|
path: "shipments/multi-modal",
|
|
78
|
-
element: /* @__PURE__ */
|
|
79
|
+
element: /* @__PURE__ */ c(K, {})
|
|
79
80
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ c(a, {
|
|
81
82
|
path: "shipments/rates",
|
|
82
|
-
element: /* @__PURE__ */
|
|
83
|
+
element: /* @__PURE__ */ c(q, {})
|
|
83
84
|
}),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ c(a, {
|
|
85
86
|
path: "containers",
|
|
86
|
-
element: /* @__PURE__ */
|
|
87
|
+
element: /* @__PURE__ */ c(J, {})
|
|
87
88
|
}),
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ c(a, {
|
|
89
90
|
path: "containers/condition",
|
|
90
|
-
element: /* @__PURE__ */
|
|
91
|
+
element: /* @__PURE__ */ c(Y, {})
|
|
91
92
|
}),
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ c(a, {
|
|
93
94
|
path: "containers/free-time",
|
|
94
|
-
element: /* @__PURE__ */
|
|
95
|
+
element: /* @__PURE__ */ c(X, {})
|
|
95
96
|
}),
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ c(a, {
|
|
97
98
|
path: "containers/empty-reuse",
|
|
98
|
-
element: /* @__PURE__ */
|
|
99
|
+
element: /* @__PURE__ */ c(re, {})
|
|
99
100
|
}),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ c(a, {
|
|
101
102
|
path: "containers/consolidation",
|
|
102
|
-
element: /* @__PURE__ */
|
|
103
|
+
element: /* @__PURE__ */ c(H, {})
|
|
103
104
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ c(a, {
|
|
105
106
|
path: "containers/procedures",
|
|
106
|
-
element: /* @__PURE__ */
|
|
107
|
+
element: /* @__PURE__ */ c(U, {})
|
|
107
108
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ c(a, {
|
|
109
110
|
path: "fleet",
|
|
110
|
-
element: /* @__PURE__ */
|
|
111
|
+
element: /* @__PURE__ */ c(x, {})
|
|
111
112
|
}),
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ c(a, {
|
|
113
114
|
path: "fleet/vehicles",
|
|
114
|
-
element: /* @__PURE__ */
|
|
115
|
+
element: /* @__PURE__ */ c(S, {})
|
|
115
116
|
}),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ c(a, {
|
|
117
118
|
path: "fleet/vehicles/new",
|
|
118
|
-
element: /* @__PURE__ */
|
|
119
|
+
element: /* @__PURE__ */ c(C, {})
|
|
119
120
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ c(a, {
|
|
121
122
|
path: "fleet/vehicles/:vehicleId",
|
|
122
|
-
element: /* @__PURE__ */
|
|
123
|
+
element: /* @__PURE__ */ c(C, {})
|
|
123
124
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ c(a, {
|
|
125
126
|
path: "fleet/vehicles/:vehicleId/edit",
|
|
126
|
-
element: /* @__PURE__ */
|
|
127
|
+
element: /* @__PURE__ */ c(C, {})
|
|
127
128
|
}),
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ c(a, {
|
|
129
130
|
path: "fleet/drivers",
|
|
130
|
-
element: /* @__PURE__ */
|
|
131
|
+
element: /* @__PURE__ */ c(w, {})
|
|
131
132
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ c(a, {
|
|
133
134
|
path: "fleet/drivers/new",
|
|
134
|
-
element: /* @__PURE__ */
|
|
135
|
+
element: /* @__PURE__ */ c(T, {})
|
|
135
136
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ c(a, {
|
|
137
138
|
path: "fleet/drivers/:driverId",
|
|
138
|
-
element: /* @__PURE__ */
|
|
139
|
+
element: /* @__PURE__ */ c(T, {})
|
|
139
140
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ c(a, {
|
|
141
142
|
path: "fleet/drivers/:driverId/edit",
|
|
142
|
-
element: /* @__PURE__ */
|
|
143
|
+
element: /* @__PURE__ */ c(T, {})
|
|
143
144
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ c(a, {
|
|
145
146
|
path: "inventory",
|
|
146
|
-
element: /* @__PURE__ */
|
|
147
|
+
element: /* @__PURE__ */ c(E, {})
|
|
147
148
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ c(a, {
|
|
149
150
|
path: "inventory/source-assessments",
|
|
150
|
-
element: /* @__PURE__ */
|
|
151
|
+
element: /* @__PURE__ */ c($, {})
|
|
151
152
|
}),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ c(a, {
|
|
153
154
|
path: "inventory/reported-issues",
|
|
154
|
-
element: /* @__PURE__ */
|
|
155
|
+
element: /* @__PURE__ */ c(Q, {})
|
|
155
156
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ c(a, {
|
|
157
158
|
path: "inventory/pending-picks",
|
|
158
|
-
element: /* @__PURE__ */
|
|
159
|
+
element: /* @__PURE__ */ c(Z, {})
|
|
159
160
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ c(a, {
|
|
161
162
|
path: "inventory/products",
|
|
162
|
-
element: /* @__PURE__ */
|
|
163
|
+
element: /* @__PURE__ */ c(D, {})
|
|
163
164
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ c(a, {
|
|
165
166
|
path: "inventory/products/new",
|
|
166
|
-
element: /* @__PURE__ */
|
|
167
|
+
element: /* @__PURE__ */ c(O, {})
|
|
167
168
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ c(a, {
|
|
169
170
|
path: "inventory/products/:productId",
|
|
170
|
-
element: /* @__PURE__ */
|
|
171
|
+
element: /* @__PURE__ */ c(O, {})
|
|
171
172
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ c(a, {
|
|
173
174
|
path: "inventory/products/:productId/edit",
|
|
174
|
-
element: /* @__PURE__ */
|
|
175
|
+
element: /* @__PURE__ */ c(O, {})
|
|
175
176
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ c(a, {
|
|
177
178
|
path: "inventory/warehouses",
|
|
178
|
-
element: /* @__PURE__ */
|
|
179
|
+
element: /* @__PURE__ */ c(A, {})
|
|
179
180
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ c(a, {
|
|
181
182
|
path: "inventory/warehouses/pallet-preview",
|
|
182
|
-
element: /* @__PURE__ */
|
|
183
|
+
element: /* @__PURE__ */ c(k, {})
|
|
183
184
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ c(a, {
|
|
185
186
|
path: "inventory/warehouses/new",
|
|
186
|
-
element: /* @__PURE__ */
|
|
187
|
+
element: /* @__PURE__ */ c(j, {})
|
|
187
188
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ c(a, {
|
|
189
190
|
path: "inventory/warehouses/:warehouseId",
|
|
190
|
-
element: /* @__PURE__ */
|
|
191
|
+
element: /* @__PURE__ */ c(j, {})
|
|
191
192
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ c(a, {
|
|
193
194
|
path: "inventory/warehouses/:warehouseId/edit",
|
|
194
|
-
element: /* @__PURE__ */
|
|
195
|
+
element: /* @__PURE__ */ c(j, {})
|
|
195
196
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ c(a, {
|
|
197
198
|
path: "customers",
|
|
198
|
-
element: /* @__PURE__ */
|
|
199
|
+
element: /* @__PURE__ */ c(M, {})
|
|
199
200
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ c(a, {
|
|
201
202
|
path: "customers/new",
|
|
202
|
-
element: /* @__PURE__ */
|
|
203
|
+
element: /* @__PURE__ */ c(N, {})
|
|
203
204
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ c(a, {
|
|
205
206
|
path: "customers/:customerId",
|
|
206
|
-
element: /* @__PURE__ */
|
|
207
|
+
element: /* @__PURE__ */ c(N, {})
|
|
207
208
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ c(a, {
|
|
209
210
|
path: "marketplace",
|
|
210
|
-
element: /* @__PURE__ */
|
|
211
|
+
element: /* @__PURE__ */ c(P, {})
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ c(a, {
|
|
214
|
+
path: "import-export",
|
|
215
|
+
element: /* @__PURE__ */ c(F, {})
|
|
216
|
+
}),
|
|
217
|
+
/* @__PURE__ */ c(a, {
|
|
218
|
+
path: "settings",
|
|
219
|
+
element: /* @__PURE__ */ c(ee, {})
|
|
211
220
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ c(a, {
|
|
213
222
|
path: "routes",
|
|
214
|
-
element: /* @__PURE__ */
|
|
223
|
+
element: /* @__PURE__ */ c(I, {})
|
|
215
224
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ c(a, {
|
|
217
226
|
path: "routes/trip-utilization",
|
|
218
|
-
element: /* @__PURE__ */
|
|
227
|
+
element: /* @__PURE__ */ c(te, {})
|
|
219
228
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ c(a, {
|
|
221
230
|
path: "fuel-preview",
|
|
222
|
-
element: /* @__PURE__ */
|
|
231
|
+
element: /* @__PURE__ */ c(ne, {})
|
|
223
232
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ c(a, {
|
|
225
234
|
path: "routes/new",
|
|
226
|
-
element: /* @__PURE__ */
|
|
235
|
+
element: /* @__PURE__ */ c(L, {})
|
|
227
236
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ c(a, {
|
|
229
238
|
path: "routes/:routeId",
|
|
230
|
-
element: /* @__PURE__ */
|
|
239
|
+
element: /* @__PURE__ */ c(L, {})
|
|
231
240
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ c(a, {
|
|
233
242
|
path: "routes/:routeId/edit",
|
|
234
|
-
element: /* @__PURE__ */
|
|
243
|
+
element: /* @__PURE__ */ c(L, {})
|
|
235
244
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ c(a, {
|
|
237
246
|
path: "analytics",
|
|
238
|
-
element: /* @__PURE__ */
|
|
247
|
+
element: /* @__PURE__ */ c(R, {})
|
|
239
248
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ c(a, {
|
|
241
250
|
path: "finance",
|
|
242
|
-
element: /* @__PURE__ */
|
|
251
|
+
element: /* @__PURE__ */ c(z, {})
|
|
243
252
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ c(a, {
|
|
245
254
|
path: "finance/freight-estimates",
|
|
246
|
-
element: /* @__PURE__ */
|
|
255
|
+
element: /* @__PURE__ */ c(B, {})
|
|
247
256
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ c(a, {
|
|
249
258
|
path: "finance/freight-invoice-comparisons",
|
|
250
|
-
element: /* @__PURE__ */
|
|
259
|
+
element: /* @__PURE__ */ c(V, {})
|
|
251
260
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ c(a, {
|
|
253
262
|
path: "ai-assistant",
|
|
254
|
-
element: /* @__PURE__ */
|
|
263
|
+
element: /* @__PURE__ */ c(W, {})
|
|
255
264
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ c(a, {
|
|
257
266
|
path: "*",
|
|
258
|
-
element: /* @__PURE__ */
|
|
267
|
+
element: /* @__PURE__ */ c(d, {})
|
|
259
268
|
})
|
|
260
269
|
] })
|
|
261
270
|
});
|
|
262
271
|
}
|
|
263
272
|
//#endregion
|
|
264
|
-
export {
|
|
273
|
+
export { ie as MoveTheWheelsRoutes };
|
|
@@ -3,9 +3,9 @@ import { ExternalLink as t } from "../node_modules/lucide-react/dist/esm/icons/e
|
|
|
3
3
|
import { FileText as n } from "../node_modules/lucide-react/dist/esm/icons/file-text.js";
|
|
4
4
|
import { Upload as r } from "../node_modules/lucide-react/dist/esm/icons/upload.js";
|
|
5
5
|
import { useMoveTheWheels as i } from "../providers/MoveTheWheelsProvider.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { formatDate as a } from "../utils/formatters.js";
|
|
7
|
+
import { useEntityDocuments as o } from "../hooks/useEntityDocuments.js";
|
|
8
|
+
import { Button as s, Card as c, CardContent as l, CardHeader as u, CardTitle as d } from "./ui.js";
|
|
9
9
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
10
|
//#region src/movethewheels/components/DocumentsCard.tsx
|
|
11
11
|
function m(e) {
|
|
@@ -20,19 +20,19 @@ function m(e) {
|
|
|
20
20
|
return `${n.toFixed(n >= 10 || r === 0 ? 0 : 1)} ${t[r]}`;
|
|
21
21
|
}
|
|
22
22
|
function h({ entityType: h, entityId: g }) {
|
|
23
|
-
let { navigate: _ } = i(), { documents: v, hasMore: y, isLoading: b, loadMore: x } =
|
|
24
|
-
return /* @__PURE__ */ p(
|
|
23
|
+
let { navigate: _ } = i(), { documents: v, hasMore: y, isLoading: b, loadMore: x } = o(h, g), S = () => _("/files/browse");
|
|
24
|
+
return /* @__PURE__ */ p(c, { children: [/* @__PURE__ */ p(u, {
|
|
25
25
|
className: "flex flex-row items-center justify-between",
|
|
26
|
-
children: [/* @__PURE__ */ p(
|
|
26
|
+
children: [/* @__PURE__ */ p(d, {
|
|
27
27
|
className: "flex items-center gap-2",
|
|
28
28
|
children: [/* @__PURE__ */ f(n, { size: 18 }), " Documents"]
|
|
29
|
-
}), /* @__PURE__ */ p(
|
|
29
|
+
}), /* @__PURE__ */ p(s, {
|
|
30
30
|
variant: "outline",
|
|
31
31
|
size: "sm",
|
|
32
32
|
onClick: S,
|
|
33
33
|
children: [/* @__PURE__ */ f(r, { size: 14 }), " Add / Manage"]
|
|
34
34
|
})]
|
|
35
|
-
}), /* @__PURE__ */ f(
|
|
35
|
+
}), /* @__PURE__ */ f(l, { children: b ? /* @__PURE__ */ f("p", {
|
|
36
36
|
className: "text-text-secondary text-center py-4",
|
|
37
37
|
children: "Loading documents…"
|
|
38
38
|
}) : v.length > 0 ? /* @__PURE__ */ p("div", {
|
|
@@ -49,7 +49,7 @@ function h({ entityType: h, entityId: g }) {
|
|
|
49
49
|
children: [
|
|
50
50
|
m(n.size),
|
|
51
51
|
" · ",
|
|
52
|
-
|
|
52
|
+
a(n.createdAt, "relative")
|
|
53
53
|
]
|
|
54
54
|
})]
|
|
55
55
|
}), n.downloadUrl ? /* @__PURE__ */ p("a", {
|
|
@@ -58,13 +58,13 @@ function h({ entityType: h, entityId: g }) {
|
|
|
58
58
|
rel: "noopener noreferrer",
|
|
59
59
|
className: "shrink-0 inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
60
60
|
children: [/* @__PURE__ */ f(e, { size: 14 }), " Open"]
|
|
61
|
-
}) : /* @__PURE__ */ p(
|
|
61
|
+
}) : /* @__PURE__ */ p(s, {
|
|
62
62
|
variant: "ghost",
|
|
63
63
|
size: "sm",
|
|
64
64
|
onClick: S,
|
|
65
65
|
children: [/* @__PURE__ */ f(t, { size: 14 }), " View"]
|
|
66
66
|
})]
|
|
67
|
-
}, n.id)), y && /* @__PURE__ */ f(
|
|
67
|
+
}, n.id)), y && /* @__PURE__ */ f(s, {
|
|
68
68
|
variant: "outline",
|
|
69
69
|
size: "sm",
|
|
70
70
|
onClick: x,
|
|
@@ -3,13 +3,13 @@ import { Clock as t } from "../node_modules/lucide-react/dist/esm/icons/clock.js
|
|
|
3
3
|
import { Download as n } from "../node_modules/lucide-react/dist/esm/icons/download.js";
|
|
4
4
|
import { MapPin as r } from "../node_modules/lucide-react/dist/esm/icons/map-pin.js";
|
|
5
5
|
import { User as i } from "../node_modules/lucide-react/dist/esm/icons/user.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { formatDateTime as a } from "../utils/formatters.js";
|
|
7
|
+
import { useEpod as o, useEpodPhotoUrl as s } from "../hooks/useEpod.js";
|
|
8
|
+
import { Badge as c, Card as l, CardContent as u, CardHeader as d, CardTitle as f } from "./ui.js";
|
|
9
9
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
10
|
//#region src/movethewheels/components/ProofOfDeliveryCard.tsx
|
|
11
11
|
function h({ fileId: e }) {
|
|
12
|
-
let { url: t, isLoading: n } =
|
|
12
|
+
let { url: t, isLoading: n } = s(e);
|
|
13
13
|
return n ? /* @__PURE__ */ p("div", { className: "h-20 w-20 rounded-lg bg-bg-sunken animate-pulse" }) : t ? /* @__PURE__ */ p("a", {
|
|
14
14
|
href: t,
|
|
15
15
|
target: "_blank",
|
|
@@ -22,18 +22,18 @@ function h({ fileId: e }) {
|
|
|
22
22
|
})
|
|
23
23
|
}) : null;
|
|
24
24
|
}
|
|
25
|
-
function g({ deliveryJobId:
|
|
26
|
-
let { epod: g, isLoading: _, error: v } =
|
|
27
|
-
return /* @__PURE__ */ m(
|
|
25
|
+
function g({ deliveryJobId: s }) {
|
|
26
|
+
let { epod: g, isLoading: _, error: v } = o(s);
|
|
27
|
+
return /* @__PURE__ */ m(l, { children: [/* @__PURE__ */ m(d, {
|
|
28
28
|
className: "flex flex-row items-center justify-between",
|
|
29
|
-
children: [/* @__PURE__ */ m(
|
|
29
|
+
children: [/* @__PURE__ */ m(f, {
|
|
30
30
|
className: "flex items-center gap-2",
|
|
31
31
|
children: [/* @__PURE__ */ p(e, { size: 18 }), " Proof of Delivery"]
|
|
32
|
-
}), g && /* @__PURE__ */ p(
|
|
32
|
+
}), g && /* @__PURE__ */ p(c, {
|
|
33
33
|
variant: "success",
|
|
34
34
|
children: "Captured"
|
|
35
35
|
})]
|
|
36
|
-
}), /* @__PURE__ */ p(
|
|
36
|
+
}), /* @__PURE__ */ p(u, { children: _ ? /* @__PURE__ */ p("p", {
|
|
37
37
|
className: "text-text-secondary text-center py-4",
|
|
38
38
|
children: "Loading proof of delivery…"
|
|
39
39
|
}) : v ? /* @__PURE__ */ p("p", {
|
|
@@ -68,7 +68,7 @@ function g({ deliveryJobId: o }) {
|
|
|
68
68
|
children: "Delivered at"
|
|
69
69
|
}), /* @__PURE__ */ p("p", {
|
|
70
70
|
className: "font-medium",
|
|
71
|
-
children:
|
|
71
|
+
children: a(g.deliveredAt)
|
|
72
72
|
})] })]
|
|
73
73
|
}),
|
|
74
74
|
g.latitude != null && g.longitude != null && /* @__PURE__ */ m("div", {
|
|
@@ -128,8 +128,8 @@ function g({ deliveryJobId: o }) {
|
|
|
128
128
|
children: g.photoFileIds.map((e) => /* @__PURE__ */ p(h, { fileId: e }, e))
|
|
129
129
|
})] }),
|
|
130
130
|
/* @__PURE__ */ m("a", {
|
|
131
|
-
href: `data:text/plain;charset=utf-8,${encodeURIComponent(`Proof of Delivery\nRecipient: ${g.recipientName}\nDelivered at: ${
|
|
132
|
-
download: `pod-${
|
|
131
|
+
href: `data:text/plain;charset=utf-8,${encodeURIComponent(`Proof of Delivery\nRecipient: ${g.recipientName}\nDelivered at: ${a(g.deliveredAt)}${g.latitude != null && g.longitude != null ? `\nLocation: ${g.latitude}, ${g.longitude}` : ""}${g.notes ? `\nNotes: ${g.notes}` : ""}`)}`,
|
|
132
|
+
download: `pod-${s}.txt`,
|
|
133
133
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
134
134
|
children: [/* @__PURE__ */ p(n, { size: 14 }), " Download record"]
|
|
135
135
|
})
|