@burdenoff/microfe-movethewheels 2026.1109.1 → 2026.1109.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 (828) hide show
  1. package/dist/MoveTheWheelsRoot.js +62 -61
  2. package/dist/MoveTheWheelsRoutes.js +6 -7
  3. package/dist/_virtual/_rolldown/runtime.js +4 -5
  4. package/dist/components/AssignmentSuggestions.js +18 -19
  5. package/dist/components/CarbonFootprintPanel.js +17 -18
  6. package/dist/components/CarrierRecommendationDialog.js +1 -2
  7. package/dist/components/ContainerEvidencePicker.js +15 -16
  8. package/dist/components/CustomerDeliveryUpdatesFields.js +1 -2
  9. package/dist/components/CustomerNotificationSettingsCard.js +43 -44
  10. package/dist/components/CustomerPicker.js +24 -26
  11. package/dist/components/DataTable.js +169 -170
  12. package/dist/components/DispatchDecisionCard.js +24 -25
  13. package/dist/components/DocumentsCard.js +54 -55
  14. package/dist/components/EntityCombobox.js +21 -22
  15. package/dist/components/EpodCaptureForm.js +113 -117
  16. package/dist/components/ExportStatusBanner.js +6 -7
  17. package/dist/components/FleetAlertsPanel.js +28 -29
  18. package/dist/components/ForecastModelsPanel.js +2 -3
  19. package/dist/components/FormError.js +2 -3
  20. package/dist/components/FreeTimeAgreementForm.js +54 -55
  21. package/dist/components/GlassPanel.js +1 -2
  22. package/dist/components/InventoryCoverPanel.js +68 -69
  23. package/dist/components/MetricCard.js +1 -2
  24. package/dist/components/Notice.js +3 -4
  25. package/dist/components/OrderItemRow.js +21 -22
  26. package/dist/components/PageLayout.js +1 -2
  27. package/dist/components/ProofOfDeliveryCard.js +19 -20
  28. package/dist/components/ReturnInstructionForm.js +28 -29
  29. package/dist/components/ReuseControls.js +1 -2
  30. package/dist/components/ReusePermissionForm.js +23 -24
  31. package/dist/components/ReuseProposalForm.js +168 -169
  32. package/dist/components/ReuseSourceFields.js +1 -2
  33. package/dist/components/ScenarioPlanningPanel.js +80 -81
  34. package/dist/components/ShipmentDecisionPanel.js +59 -60
  35. package/dist/components/ShipmentRiskDialog.js +32 -33
  36. package/dist/components/ShippingQuoteResults.js +32 -33
  37. package/dist/components/SignaturePad.js +7 -8
  38. package/dist/components/StatusBadge.js +1 -2
  39. package/dist/components/StockActionDialogs.js +77 -78
  40. package/dist/components/TrackingAlertList.js +26 -27
  41. package/dist/components/UpcomingDemandPanel.js +24 -25
  42. package/dist/components/VehicleServiceCard.js +34 -39
  43. package/dist/components/charts/ChartShell.js +1 -2
  44. package/dist/components/charts/Sparkline.js +14 -15
  45. package/dist/components/charts/StatusDonut.js +12 -13
  46. package/dist/components/charts/TrendChart.js +29 -30
  47. package/dist/components/charts/VolumeBar.js +21 -22
  48. package/dist/components/charts/chartTokens.js +1 -2
  49. package/dist/components/charts/index.js +7 -6
  50. package/dist/components/consolidation/ConsolidationHistory.js +1 -2
  51. package/dist/components/consolidation/ConsolidationLotEditor.js +22 -23
  52. package/dist/components/consolidation/ConsolidationManifestWorkbench.js +30 -31
  53. package/dist/components/consolidation/ConsolidationPlanForm.js +44 -45
  54. package/dist/components/consolidation/ConsolidationPlanWorkbench.js +106 -105
  55. package/dist/components/consolidation/ConsolidationReportForm.js +17 -18
  56. package/dist/components/consolidation/ConsolidationReportsWorkbench.js +35 -36
  57. package/dist/components/consolidation/ConsolidationSummary.js +1 -2
  58. package/dist/components/consolidation/OriginalConsolidationHistory.js +15 -16
  59. package/dist/components/freight-cost/FreightCommercialEditor.js +39 -40
  60. package/dist/components/freight-cost/FreightCommercialFactEditor.js +2 -3
  61. package/dist/components/freight-cost/FreightCommercialHistory.js +8 -9
  62. package/dist/components/freight-cost/FreightDraftForm.js +45 -47
  63. package/dist/components/freight-cost/FreightFields.js +1 -2
  64. package/dist/components/freight-cost/FreightFxEditor.js +1 -2
  65. package/dist/components/freight-cost/FreightHistory.js +32 -33
  66. package/dist/components/freight-cost/FreightLineEditor.js +1 -2
  67. package/dist/components/freight-cost/FreightScopeEditor.js +1 -2
  68. package/dist/components/freight-cost/FreightTotals.js +1 -2
  69. package/dist/components/freight-invoice/InvoiceForm.js +41 -42
  70. package/dist/components/freight-invoice/InvoiceResults.js +42 -43
  71. package/dist/components/freight-invoice/InvoiceReviewPanel.js +26 -28
  72. package/dist/components/freight-invoice/InvoiceReviewQueue.js +9 -10
  73. package/dist/components/index.js +22 -21
  74. package/dist/components/logistics-procedure/ProcedureDecisionForm.js +24 -25
  75. package/dist/components/logistics-procedure/ProcedureFields.js +1 -2
  76. package/dist/components/logistics-procedure/ProcedureHistory.js +29 -30
  77. package/dist/components/logistics-procedure/ProcedurePolicyForm.js +27 -28
  78. package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +23 -24
  79. package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +43 -44
  80. package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +30 -31
  81. package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +1 -2
  82. package/dist/components/maps/LogisticsMap.js +12 -13
  83. package/dist/components/maps/MapCanvas.js +31 -29
  84. package/dist/components/maps/RouteMap.js +6 -7
  85. package/dist/components/maps/TrackingMap.js +17 -18
  86. package/dist/components/maps/index.js +6 -5
  87. package/dist/components/maps/leaflet-setup.js +2 -3
  88. package/dist/components/marketplace/MarketplaceDialogs.js +26 -28
  89. package/dist/components/pallet-preview/PalletPreviewResults.js +2 -3
  90. package/dist/components/pending-pick/PendingPickDraft.js +1 -2
  91. package/dist/components/pending-pick/PendingPickHistory.js +32 -33
  92. package/dist/components/pending-pick/PickCapture.js +1 -2
  93. package/dist/components/pending-pick/PickLineSelection.js +1 -2
  94. package/dist/components/pending-pick/PickReviewPanel.js +53 -53
  95. package/dist/components/stock-binding/StockAssessmentDraft.js +5 -6
  96. package/dist/components/stock-binding/StockAssessmentHistory.js +18 -19
  97. package/dist/components/stock-binding/StockAssessmentSummary.js +1 -2
  98. package/dist/components/stock-binding/StockFactForm.js +5 -6
  99. package/dist/components/stock-observation/StockIssueForm.js +1 -2
  100. package/dist/components/stock-observation/StockIssueHistory.js +1 -2
  101. package/dist/components/stock-observation/StockIssueReadPanel.js +1 -2
  102. package/dist/components/trip-utilization/TripReportForm.js +6 -7
  103. package/dist/components/trip-utilization/TripReportHistory.js +15 -16
  104. package/dist/components/trip-utilization/TripReportSummary.js +1 -2
  105. package/dist/components/trip-utilization/TripSegmentFields.js +14 -15
  106. package/dist/components/ui.js +1 -2
  107. package/dist/constants/index.js +1 -2
  108. package/dist/hooks/index.js +12 -11
  109. package/dist/hooks/useAnalytics.js +3 -3
  110. package/dist/hooks/useCarrierIntegrations.js +1 -2
  111. package/dist/hooks/useConsolidationAction.js +12 -13
  112. package/dist/hooks/useConsumedFuelPreview.js +17 -18
  113. package/dist/hooks/useContainerCondition.js +4 -3
  114. package/dist/hooks/useContainerLifecycle.js +70 -80
  115. package/dist/hooks/useCustomers.js +17 -16
  116. package/dist/hooks/useDebouncedValue.js +1 -2
  117. package/dist/hooks/useDemandForecast.js +1 -2
  118. package/dist/hooks/useDispatchPlan.js +3 -3
  119. package/dist/hooks/useDocumentExtractions.js +12 -13
  120. package/dist/hooks/useDriverDay.js +3 -4
  121. package/dist/hooks/useEmptyReuseAction.js +1 -2
  122. package/dist/hooks/useEntityDocuments.js +25 -27
  123. package/dist/hooks/useEntityExport.js +7 -8
  124. package/dist/hooks/useEntityImport.js +1 -2
  125. package/dist/hooks/useEpod.js +79 -81
  126. package/dist/hooks/useFleet.js +70 -74
  127. package/dist/hooks/useFleetIntelligence.js +1 -2
  128. package/dist/hooks/useForecastModelChoices.js +1 -2
  129. package/dist/hooks/useFreightRecoveryAction.js +15 -16
  130. package/dist/hooks/useInventory.js +59 -60
  131. package/dist/hooks/useInventoryCoverPlan.js +2 -3
  132. package/dist/hooks/useInvoiceComparisonRecovery.js +52 -52
  133. package/dist/hooks/useInvoiceReviewPermissions.js +1 -2
  134. package/dist/hooks/useMarketplace.js +1 -2
  135. package/dist/hooks/useMultiModalShipments.js +1 -2
  136. package/dist/hooks/useOrderDispatch.js +6 -5
  137. package/dist/hooks/useOrders.js +44 -46
  138. package/dist/hooks/usePalletPreview.js +19 -20
  139. package/dist/hooks/useProcedureAction.js +24 -25
  140. package/dist/hooks/useProcedureSelection.js +6 -7
  141. package/dist/hooks/useRefetchOnLeaveEdit.js +1 -2
  142. package/dist/hooks/useReuseRecoveryAction.js +26 -27
  143. package/dist/hooks/useRoutes.js +12 -14
  144. package/dist/hooks/useScenarioPlanning.js +20 -21
  145. package/dist/hooks/useShipmentDecision.js +1 -2
  146. package/dist/hooks/useShipmentPermissions.js +1 -2
  147. package/dist/hooks/useShipmentRisk.js +12 -14
  148. package/dist/hooks/useShipmentStatusAuthority.js +7 -5
  149. package/dist/hooks/useShippingCarriers.js +1 -2
  150. package/dist/hooks/useTracking.js +53 -52
  151. package/dist/hooks/useTrackingEventQuality.js +26 -27
  152. package/dist/index.js +15 -15
  153. package/dist/movethewheels/store/movethewheelsStore.d.ts +1 -1
  154. package/dist/node_modules/@react-leaflet/core/lib/attribution.js +1 -2
  155. package/dist/node_modules/@react-leaflet/core/lib/component.js +1 -2
  156. package/dist/node_modules/@react-leaflet/core/lib/context.js +0 -1
  157. package/dist/node_modules/@react-leaflet/core/lib/div-overlay.js +1 -2
  158. package/dist/node_modules/@react-leaflet/core/lib/element.js +1 -2
  159. package/dist/node_modules/@react-leaflet/core/lib/events.js +1 -2
  160. package/dist/node_modules/@react-leaflet/core/lib/generic.js +9 -6
  161. package/dist/node_modules/@react-leaflet/core/lib/grid-layer.js +1 -2
  162. package/dist/node_modules/@react-leaflet/core/lib/layer.js +1 -2
  163. package/dist/node_modules/@react-leaflet/core/lib/pane.js +1 -2
  164. package/dist/node_modules/@react-leaflet/core/lib/path.js +6 -7
  165. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  166. package/dist/node_modules/d3-array/dist/d3-array.js +202 -0
  167. package/dist/node_modules/d3-color/dist/d3-color.js +386 -0
  168. package/dist/node_modules/d3-format/dist/d3-format.js +184 -0
  169. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +183 -0
  170. package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +38 -13
  171. package/dist/node_modules/d3-scale/dist/d3-scale.js +620 -0
  172. package/dist/node_modules/d3-shape/dist/d3-shape.js +899 -0
  173. package/dist/node_modules/d3-time/dist/d3-time.js +239 -0
  174. package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +228 -173
  175. package/dist/node_modules/decimal.js-light/decimal.js +33 -30
  176. package/dist/node_modules/eventemitter3/index.js +2 -3
  177. package/dist/node_modules/fast-equals/dist/es/index.js +89 -72
  178. package/dist/node_modules/leaflet/dist/leaflet-src.js +114 -167
  179. package/dist/node_modules/lodash/_DataView.js +4 -5
  180. package/dist/node_modules/lodash/_Hash.js +1 -2
  181. package/dist/node_modules/lodash/_ListCache.js +1 -2
  182. package/dist/node_modules/lodash/_Map.js +4 -5
  183. package/dist/node_modules/lodash/_MapCache.js +1 -2
  184. package/dist/node_modules/lodash/_Promise.js +4 -5
  185. package/dist/node_modules/lodash/_Set.js +4 -5
  186. package/dist/node_modules/lodash/_SetCache.js +1 -2
  187. package/dist/node_modules/lodash/_Stack.js +1 -2
  188. package/dist/node_modules/lodash/_Symbol.js +1 -2
  189. package/dist/node_modules/lodash/_Uint8Array.js +1 -2
  190. package/dist/node_modules/lodash/_WeakMap.js +4 -5
  191. package/dist/node_modules/lodash/_apply.js +1 -2
  192. package/dist/node_modules/lodash/_arrayEvery.js +1 -2
  193. package/dist/node_modules/lodash/_arrayFilter.js +1 -2
  194. package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
  195. package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
  196. package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
  197. package/dist/node_modules/lodash/_arrayMap.js +1 -2
  198. package/dist/node_modules/lodash/_arrayPush.js +1 -2
  199. package/dist/node_modules/lodash/_arraySome.js +1 -2
  200. package/dist/node_modules/lodash/_asciiToArray.js +1 -2
  201. package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
  202. package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
  203. package/dist/node_modules/lodash/_baseEach.js +1 -2
  204. package/dist/node_modules/lodash/_baseEvery.js +1 -2
  205. package/dist/node_modules/lodash/_baseExtremum.js +1 -2
  206. package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
  207. package/dist/node_modules/lodash/_baseFlatten.js +1 -2
  208. package/dist/node_modules/lodash/_baseFor.js +1 -2
  209. package/dist/node_modules/lodash/_baseForOwn.js +4 -5
  210. package/dist/node_modules/lodash/_baseGet.js +1 -2
  211. package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
  212. package/dist/node_modules/lodash/_baseGetTag.js +1 -2
  213. package/dist/node_modules/lodash/_baseGt.js +1 -2
  214. package/dist/node_modules/lodash/_baseHasIn.js +1 -2
  215. package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
  216. package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
  217. package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
  218. package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
  219. package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
  220. package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
  221. package/dist/node_modules/lodash/_baseIsNative.js +5 -6
  222. package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
  223. package/dist/node_modules/lodash/_baseIteratee.js +6 -7
  224. package/dist/node_modules/lodash/_baseKeys.js +1 -2
  225. package/dist/node_modules/lodash/_baseLt.js +1 -2
  226. package/dist/node_modules/lodash/_baseMap.js +4 -5
  227. package/dist/node_modules/lodash/_baseMatches.js +1 -2
  228. package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
  229. package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
  230. package/dist/node_modules/lodash/_baseProperty.js +1 -2
  231. package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
  232. package/dist/node_modules/lodash/_baseRange.js +1 -2
  233. package/dist/node_modules/lodash/_baseRest.js +1 -2
  234. package/dist/node_modules/lodash/_baseSetToString.js +5 -6
  235. package/dist/node_modules/lodash/_baseSlice.js +1 -2
  236. package/dist/node_modules/lodash/_baseSome.js +1 -2
  237. package/dist/node_modules/lodash/_baseSortBy.js +1 -2
  238. package/dist/node_modules/lodash/_baseTimes.js +1 -2
  239. package/dist/node_modules/lodash/_baseToString.js +6 -7
  240. package/dist/node_modules/lodash/_baseTrim.js +1 -2
  241. package/dist/node_modules/lodash/_baseUnary.js +1 -2
  242. package/dist/node_modules/lodash/_baseUniq.js +7 -8
  243. package/dist/node_modules/lodash/_cacheHas.js +1 -2
  244. package/dist/node_modules/lodash/_castPath.js +1 -2
  245. package/dist/node_modules/lodash/_castSlice.js +1 -2
  246. package/dist/node_modules/lodash/_compareAscending.js +1 -2
  247. package/dist/node_modules/lodash/_compareMultiple.js +1 -2
  248. package/dist/node_modules/lodash/_coreJsData.js +1 -2
  249. package/dist/node_modules/lodash/_createBaseEach.js +1 -2
  250. package/dist/node_modules/lodash/_createBaseFor.js +1 -2
  251. package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
  252. package/dist/node_modules/lodash/_createFind.js +5 -6
  253. package/dist/node_modules/lodash/_createRange.js +4 -5
  254. package/dist/node_modules/lodash/_createSet.js +6 -7
  255. package/dist/node_modules/lodash/_defineProperty.js +1 -2
  256. package/dist/node_modules/lodash/_equalArrays.js +1 -2
  257. package/dist/node_modules/lodash/_equalByTag.js +5 -6
  258. package/dist/node_modules/lodash/_equalObjects.js +1 -2
  259. package/dist/node_modules/lodash/_freeGlobal.js +1 -2
  260. package/dist/node_modules/lodash/_getAllKeys.js +1 -2
  261. package/dist/node_modules/lodash/_getMapData.js +1 -2
  262. package/dist/node_modules/lodash/_getMatchData.js +4 -5
  263. package/dist/node_modules/lodash/_getNative.js +1 -2
  264. package/dist/node_modules/lodash/_getPrototype.js +1 -2
  265. package/dist/node_modules/lodash/_getRawTag.js +1 -2
  266. package/dist/node_modules/lodash/_getSymbols.js +1 -2
  267. package/dist/node_modules/lodash/_getTag.js +9 -10
  268. package/dist/node_modules/lodash/_getValue.js +1 -2
  269. package/dist/node_modules/lodash/_hasPath.js +8 -9
  270. package/dist/node_modules/lodash/_hasUnicode.js +1 -2
  271. package/dist/node_modules/lodash/_hashClear.js +1 -2
  272. package/dist/node_modules/lodash/_hashDelete.js +1 -2
  273. package/dist/node_modules/lodash/_hashGet.js +1 -2
  274. package/dist/node_modules/lodash/_hashHas.js +1 -2
  275. package/dist/node_modules/lodash/_hashSet.js +1 -2
  276. package/dist/node_modules/lodash/_isFlattenable.js +5 -6
  277. package/dist/node_modules/lodash/_isIndex.js +6 -7
  278. package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
  279. package/dist/node_modules/lodash/_isKey.js +1 -2
  280. package/dist/node_modules/lodash/_isKeyable.js +1 -2
  281. package/dist/node_modules/lodash/_isMasked.js +1 -2
  282. package/dist/node_modules/lodash/_isPrototype.js +1 -2
  283. package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
  284. package/dist/node_modules/lodash/_listCacheClear.js +1 -2
  285. package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
  286. package/dist/node_modules/lodash/_listCacheGet.js +1 -2
  287. package/dist/node_modules/lodash/_listCacheHas.js +1 -2
  288. package/dist/node_modules/lodash/_listCacheSet.js +1 -2
  289. package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
  290. package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
  291. package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
  292. package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
  293. package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
  294. package/dist/node_modules/lodash/_mapToArray.js +1 -2
  295. package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
  296. package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
  297. package/dist/node_modules/lodash/_nativeCreate.js +1 -2
  298. package/dist/node_modules/lodash/_nativeKeys.js +1 -2
  299. package/dist/node_modules/lodash/_nodeUtil.js +1 -2
  300. package/dist/node_modules/lodash/_objectToString.js +1 -2
  301. package/dist/node_modules/lodash/_overArg.js +1 -2
  302. package/dist/node_modules/lodash/_overRest.js +1 -2
  303. package/dist/node_modules/lodash/_root.js +1 -2
  304. package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
  305. package/dist/node_modules/lodash/_setCacheHas.js +1 -2
  306. package/dist/node_modules/lodash/_setToArray.js +1 -2
  307. package/dist/node_modules/lodash/_setToString.js +1 -2
  308. package/dist/node_modules/lodash/_shortOut.js +8 -9
  309. package/dist/node_modules/lodash/_stackClear.js +1 -2
  310. package/dist/node_modules/lodash/_stackDelete.js +1 -2
  311. package/dist/node_modules/lodash/_stackGet.js +1 -2
  312. package/dist/node_modules/lodash/_stackHas.js +1 -2
  313. package/dist/node_modules/lodash/_stackSet.js +1 -2
  314. package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
  315. package/dist/node_modules/lodash/_stringToArray.js +4 -5
  316. package/dist/node_modules/lodash/_stringToPath.js +1 -2
  317. package/dist/node_modules/lodash/_toKey.js +2 -3
  318. package/dist/node_modules/lodash/_toSource.js +1 -2
  319. package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
  320. package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
  321. package/dist/node_modules/lodash/constant.js +1 -2
  322. package/dist/node_modules/lodash/debounce.js +1 -2
  323. package/dist/node_modules/lodash/eq.js +1 -2
  324. package/dist/node_modules/lodash/every.js +7 -8
  325. package/dist/node_modules/lodash/find.js +1 -2
  326. package/dist/node_modules/lodash/findIndex.js +4 -5
  327. package/dist/node_modules/lodash/flatMap.js +1 -2
  328. package/dist/node_modules/lodash/get.js +1 -2
  329. package/dist/node_modules/lodash/hasIn.js +1 -2
  330. package/dist/node_modules/lodash/identity.js +1 -2
  331. package/dist/node_modules/lodash/isArguments.js +4 -5
  332. package/dist/node_modules/lodash/isArray.js +1 -2
  333. package/dist/node_modules/lodash/isArrayLike.js +1 -2
  334. package/dist/node_modules/lodash/isBoolean.js +1 -2
  335. package/dist/node_modules/lodash/isBuffer.js +1 -2
  336. package/dist/node_modules/lodash/isEqual.js +1 -2
  337. package/dist/node_modules/lodash/isFunction.js +1 -2
  338. package/dist/node_modules/lodash/isLength.js +4 -6
  339. package/dist/node_modules/lodash/isNaN.js +1 -2
  340. package/dist/node_modules/lodash/isNil.js +1 -2
  341. package/dist/node_modules/lodash/isNumber.js +1 -2
  342. package/dist/node_modules/lodash/isObject.js +1 -2
  343. package/dist/node_modules/lodash/isObjectLike.js +1 -2
  344. package/dist/node_modules/lodash/isPlainObject.js +4 -5
  345. package/dist/node_modules/lodash/isString.js +4 -5
  346. package/dist/node_modules/lodash/isSymbol.js +1 -2
  347. package/dist/node_modules/lodash/isTypedArray.js +1 -2
  348. package/dist/node_modules/lodash/keys.js +1 -2
  349. package/dist/node_modules/lodash/last.js +1 -2
  350. package/dist/node_modules/lodash/map.js +6 -7
  351. package/dist/node_modules/lodash/mapValues.js +4 -5
  352. package/dist/node_modules/lodash/max.js +5 -6
  353. package/dist/node_modules/lodash/maxBy.js +5 -6
  354. package/dist/node_modules/lodash/memoize.js +1 -2
  355. package/dist/node_modules/lodash/min.js +5 -6
  356. package/dist/node_modules/lodash/minBy.js +4 -5
  357. package/dist/node_modules/lodash/noop.js +1 -2
  358. package/dist/node_modules/lodash/now.js +1 -2
  359. package/dist/node_modules/lodash/property.js +6 -7
  360. package/dist/node_modules/lodash/range.js +1 -2
  361. package/dist/node_modules/lodash/some.js +7 -8
  362. package/dist/node_modules/lodash/sortBy.js +1 -2
  363. package/dist/node_modules/lodash/stubArray.js +1 -2
  364. package/dist/node_modules/lodash/stubFalse.js +1 -2
  365. package/dist/node_modules/lodash/throttle.js +4 -5
  366. package/dist/node_modules/lodash/toFinite.js +2 -3
  367. package/dist/node_modules/lodash/toInteger.js +1 -2
  368. package/dist/node_modules/lodash/toNumber.js +4 -5
  369. package/dist/node_modules/lodash/toString.js +1 -2
  370. package/dist/node_modules/lodash/uniqBy.js +1 -2
  371. package/dist/node_modules/lodash/upperFirst.js +1 -2
  372. package/dist/node_modules/lucide-react/dist/esm/Icon.js +6 -7
  373. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +3 -4
  374. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -3
  375. package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +3 -4
  376. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-right.js +3 -4
  377. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-up.js +3 -4
  378. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down.js +3 -4
  379. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left-right.js +3 -4
  380. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +3 -4
  381. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +3 -4
  382. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.js +3 -4
  383. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-right.js +3 -4
  384. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up.js +3 -4
  385. package/dist/node_modules/lucide-react/dist/esm/icons/badge-check.js +3 -4
  386. package/dist/node_modules/lucide-react/dist/esm/icons/bell-ring.js +3 -4
  387. package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +3 -4
  388. package/dist/node_modules/lucide-react/dist/esm/icons/bot.js +3 -4
  389. package/dist/node_modules/lucide-react/dist/esm/icons/box.js +3 -4
  390. package/dist/node_modules/lucide-react/dist/esm/icons/boxes.js +3 -4
  391. package/dist/node_modules/lucide-react/dist/esm/icons/building-2.js +3 -4
  392. package/dist/node_modules/lucide-react/dist/esm/icons/building.js +3 -4
  393. package/dist/node_modules/lucide-react/dist/esm/icons/calculator.js +3 -4
  394. package/dist/node_modules/lucide-react/dist/esm/icons/calendar-clock.js +3 -4
  395. package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +3 -4
  396. package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +3 -4
  397. package/dist/node_modules/lucide-react/dist/esm/icons/car.js +3 -4
  398. package/dist/node_modules/lucide-react/dist/esm/icons/chart-column.js +3 -4
  399. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +3 -4
  400. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +3 -4
  401. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +3 -4
  402. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +3 -4
  403. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +3 -4
  404. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +3 -4
  405. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +3 -4
  406. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js +3 -4
  407. package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +3 -4
  408. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check-big.js +3 -4
  409. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +3 -4
  410. package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +3 -4
  411. package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +3 -4
  412. package/dist/node_modules/lucide-react/dist/esm/icons/clock.js +3 -4
  413. package/dist/node_modules/lucide-react/dist/esm/icons/cloud-download.js +3 -4
  414. package/dist/node_modules/lucide-react/dist/esm/icons/coffee.js +3 -4
  415. package/dist/node_modules/lucide-react/dist/esm/icons/copy.js +3 -4
  416. package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +3 -4
  417. package/dist/node_modules/lucide-react/dist/esm/icons/dollar-sign.js +3 -4
  418. package/dist/node_modules/lucide-react/dist/esm/icons/download.js +3 -4
  419. package/dist/node_modules/lucide-react/dist/esm/icons/external-link.js +3 -4
  420. package/dist/node_modules/lucide-react/dist/esm/icons/file-chart-column-increasing.js +3 -4
  421. package/dist/node_modules/lucide-react/dist/esm/icons/file-check.js +3 -4
  422. package/dist/node_modules/lucide-react/dist/esm/icons/file-search.js +3 -4
  423. package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +3 -4
  424. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +3 -4
  425. package/dist/node_modules/lucide-react/dist/esm/icons/file-up.js +3 -4
  426. package/dist/node_modules/lucide-react/dist/esm/icons/filter.js +3 -4
  427. package/dist/node_modules/lucide-react/dist/esm/icons/fuel.js +3 -4
  428. package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +3 -4
  429. package/dist/node_modules/lucide-react/dist/esm/icons/git-compare.js +3 -4
  430. package/dist/node_modules/lucide-react/dist/esm/icons/history.js +3 -4
  431. package/dist/node_modules/lucide-react/dist/esm/icons/info.js +3 -4
  432. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +3 -4
  433. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +3 -4
  434. package/dist/node_modules/lucide-react/dist/esm/icons/leaf.js +3 -4
  435. package/dist/node_modules/lucide-react/dist/esm/icons/list.js +3 -4
  436. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +3 -4
  437. package/dist/node_modules/lucide-react/dist/esm/icons/lock.js +3 -4
  438. package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +3 -4
  439. package/dist/node_modules/lucide-react/dist/esm/icons/map-pin.js +3 -4
  440. package/dist/node_modules/lucide-react/dist/esm/icons/map.js +3 -4
  441. package/dist/node_modules/lucide-react/dist/esm/icons/navigation.js +3 -4
  442. package/dist/node_modules/lucide-react/dist/esm/icons/package-plus.js +3 -4
  443. package/dist/node_modules/lucide-react/dist/esm/icons/package.js +3 -4
  444. package/dist/node_modules/lucide-react/dist/esm/icons/pause.js +3 -4
  445. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +3 -4
  446. package/dist/node_modules/lucide-react/dist/esm/icons/pencil.js +3 -4
  447. package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +3 -4
  448. package/dist/node_modules/lucide-react/dist/esm/icons/plane.js +3 -4
  449. package/dist/node_modules/lucide-react/dist/esm/icons/play.js +3 -4
  450. package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +3 -4
  451. package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +3 -4
  452. package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +3 -4
  453. package/dist/node_modules/lucide-react/dist/esm/icons/radio-tower.js +3 -4
  454. package/dist/node_modules/lucide-react/dist/esm/icons/receipt.js +3 -4
  455. package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +3 -4
  456. package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +3 -4
  457. package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +3 -4
  458. package/dist/node_modules/lucide-react/dist/esm/icons/route.js +3 -4
  459. package/dist/node_modules/lucide-react/dist/esm/icons/save.js +3 -4
  460. package/dist/node_modules/lucide-react/dist/esm/icons/scale.js +3 -4
  461. package/dist/node_modules/lucide-react/dist/esm/icons/search.js +3 -4
  462. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +3 -4
  463. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js +3 -4
  464. package/dist/node_modules/lucide-react/dist/esm/icons/ship.js +3 -4
  465. package/dist/node_modules/lucide-react/dist/esm/icons/sigma.js +3 -4
  466. package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js +3 -4
  467. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +3 -4
  468. package/dist/node_modules/lucide-react/dist/esm/icons/square-pen.js +3 -4
  469. package/dist/node_modules/lucide-react/dist/esm/icons/star.js +3 -4
  470. package/dist/node_modules/lucide-react/dist/esm/icons/sticky-note.js +3 -4
  471. package/dist/node_modules/lucide-react/dist/esm/icons/store.js +3 -4
  472. package/dist/node_modules/lucide-react/dist/esm/icons/tag.js +3 -4
  473. package/dist/node_modules/lucide-react/dist/esm/icons/thermometer.js +3 -4
  474. package/dist/node_modules/lucide-react/dist/esm/icons/train-front.js +3 -4
  475. package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +3 -4
  476. package/dist/node_modules/lucide-react/dist/esm/icons/trending-down.js +3 -4
  477. package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +3 -4
  478. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +3 -4
  479. package/dist/node_modules/lucide-react/dist/esm/icons/truck.js +3 -4
  480. package/dist/node_modules/lucide-react/dist/esm/icons/type.js +3 -4
  481. package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +3 -4
  482. package/dist/node_modules/lucide-react/dist/esm/icons/user-check.js +3 -4
  483. package/dist/node_modules/lucide-react/dist/esm/icons/user-minus.js +3 -4
  484. package/dist/node_modules/lucide-react/dist/esm/icons/user-plus.js +3 -4
  485. package/dist/node_modules/lucide-react/dist/esm/icons/user-round.js +3 -4
  486. package/dist/node_modules/lucide-react/dist/esm/icons/user-x.js +3 -4
  487. package/dist/node_modules/lucide-react/dist/esm/icons/user.js +3 -4
  488. package/dist/node_modules/lucide-react/dist/esm/icons/users.js +3 -4
  489. package/dist/node_modules/lucide-react/dist/esm/icons/wand-sparkles.js +3 -4
  490. package/dist/node_modules/lucide-react/dist/esm/icons/warehouse.js +3 -4
  491. package/dist/node_modules/lucide-react/dist/esm/icons/wifi-off.js +3 -4
  492. package/dist/node_modules/lucide-react/dist/esm/icons/wrench.js +3 -4
  493. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +3 -4
  494. package/dist/node_modules/lucide-react/dist/esm/icons/zap.js +3 -4
  495. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +1 -2
  496. package/dist/node_modules/object-assign/index.js +1 -2
  497. package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
  498. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
  499. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
  500. package/dist/node_modules/prop-types/index.js +1 -2
  501. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
  502. package/dist/node_modules/prop-types/lib/has.js +1 -2
  503. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
  504. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
  505. package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
  506. package/dist/node_modules/react-leaflet/lib/MapContainer.js +1 -2
  507. package/dist/node_modules/react-leaflet/lib/Marker.js +7 -8
  508. package/dist/node_modules/react-leaflet/lib/Polyline.js +7 -8
  509. package/dist/node_modules/react-leaflet/lib/Popup.js +7 -7
  510. package/dist/node_modules/react-leaflet/lib/TileLayer.js +12 -12
  511. package/dist/node_modules/react-leaflet/lib/hooks.js +1 -2
  512. package/dist/node_modules/react-smooth/es6/Animate.js +31 -39
  513. package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
  514. package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
  515. package/dist/node_modules/react-smooth/es6/easing.js +1 -2
  516. package/dist/node_modules/react-smooth/es6/index.js +1 -2
  517. package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
  518. package/dist/node_modules/react-smooth/es6/util.js +17 -16
  519. package/dist/node_modules/recharts/es6/cartesian/Area.js +95 -96
  520. package/dist/node_modules/recharts/es6/cartesian/Bar.js +100 -101
  521. package/dist/node_modules/recharts/es6/cartesian/Brush.js +23 -24
  522. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +58 -65
  523. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +33 -34
  524. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +17 -18
  525. package/dist/node_modules/recharts/es6/cartesian/Line.js +76 -77
  526. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +28 -29
  527. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +22 -23
  528. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +28 -29
  529. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +8 -9
  530. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +8 -9
  531. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
  532. package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
  533. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -4
  534. package/dist/node_modules/recharts/es6/chart/AreaChart.js +5 -6
  535. package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
  536. package/dist/node_modules/recharts/es6/chart/LineChart.js +5 -6
  537. package/dist/node_modules/recharts/es6/chart/PieChart.js +11 -12
  538. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
  539. package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
  540. package/dist/node_modules/recharts/es6/component/Cursor.js +16 -17
  541. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +27 -28
  542. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +11 -12
  543. package/dist/node_modules/recharts/es6/component/Label.js +78 -79
  544. package/dist/node_modules/recharts/es6/component/LabelList.js +16 -17
  545. package/dist/node_modules/recharts/es6/component/Legend.js +25 -22
  546. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +14 -15
  547. package/dist/node_modules/recharts/es6/component/Text.js +17 -20
  548. package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
  549. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +1 -2
  550. package/dist/node_modules/recharts/es6/container/Layer.js +3 -4
  551. package/dist/node_modules/recharts/es6/container/Surface.js +3 -4
  552. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +20 -20
  553. package/dist/node_modules/recharts/es6/polar/Pie.js +102 -106
  554. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +28 -29
  555. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +36 -39
  556. package/dist/node_modules/recharts/es6/shape/Cross.js +3 -4
  557. package/dist/node_modules/recharts/es6/shape/Curve.js +38 -49
  558. package/dist/node_modules/recharts/es6/shape/Dot.js +2 -3
  559. package/dist/node_modules/recharts/es6/shape/Polygon.js +3 -4
  560. package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
  561. package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
  562. package/dist/node_modules/recharts/es6/shape/Symbols.js +26 -34
  563. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
  564. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +20 -21
  565. package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
  566. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +32 -33
  567. package/dist/node_modules/recharts/es6/util/ChartUtils.js +231 -236
  568. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
  569. package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
  570. package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
  571. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
  572. package/dist/node_modules/recharts/es6/util/Events.js +0 -1
  573. package/dist/node_modules/recharts/es6/util/Global.js +0 -1
  574. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
  575. package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
  576. package/dist/node_modules/recharts/es6/util/PolarUtils.js +5 -6
  577. package/dist/node_modules/recharts/es6/util/ReactUtils.js +10 -11
  578. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +4 -5
  579. package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
  580. package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
  581. package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
  582. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
  583. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
  584. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
  585. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
  586. package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
  587. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
  588. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
  589. package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
  590. package/dist/node_modules/recharts/es6/util/types.js +1 -2
  591. package/dist/node_modules/recharts/node_modules/react-is/cjs/react-is.development.js +31 -32
  592. package/dist/node_modules/recharts/node_modules/react-is/cjs/react-is.production.min.js +1 -2
  593. package/dist/node_modules/recharts/node_modules/react-is/index.js +2 -3
  594. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
  595. package/dist/node_modules/recharts-scale/es6/index.js +1 -1
  596. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
  597. package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
  598. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
  599. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
  600. package/dist/node_modules/victory-vendor/es/d3-scale.js +28 -45
  601. package/dist/node_modules/zustand/esm/middleware.js +209 -112
  602. package/dist/pages/AnalyticsPage.js +41 -42
  603. package/dist/pages/ConsolidationPage.js +8 -9
  604. package/dist/pages/ConsumedFuelPreviewPage.js +60 -61
  605. package/dist/pages/ContainerConditionPage.js +49 -50
  606. package/dist/pages/ContainersPage.js +53 -53
  607. package/dist/pages/CreateOrderPage.js +134 -144
  608. package/dist/pages/CustomerDetailsPage.js +342 -345
  609. package/dist/pages/CustomersPage.js +36 -37
  610. package/dist/pages/DashboardPage.js +92 -93
  611. package/dist/pages/DeliveryCapturePage.js +199 -200
  612. package/dist/pages/DispatchPlanPage.js +94 -95
  613. package/dist/pages/DriverDetailsPage.js +393 -399
  614. package/dist/pages/DriversPage.js +64 -65
  615. package/dist/pages/EmptyReusePage.js +320 -321
  616. package/dist/pages/FinancePage.js +72 -70
  617. package/dist/pages/FleetPage.js +88 -89
  618. package/dist/pages/FreeTimePage.js +92 -92
  619. package/dist/pages/FreightEstimatePage.js +92 -93
  620. package/dist/pages/FreightInvoicePage.js +123 -124
  621. package/dist/pages/ImportExportPage.js +173 -178
  622. package/dist/pages/IntegrationsPage.js +264 -267
  623. package/dist/pages/InventoryPage.js +233 -234
  624. package/dist/pages/LiveTrackingPage.js +120 -121
  625. package/dist/pages/LogisticsProceduresPage.js +10 -11
  626. package/dist/pages/MarketplacePage.js +170 -171
  627. package/dist/pages/MultiModalShipmentPage.js +172 -177
  628. package/dist/pages/OrderDetailsPage.js +317 -318
  629. package/dist/pages/OrdersListPage.js +163 -164
  630. package/dist/pages/PalletPreviewPage.js +113 -114
  631. package/dist/pages/PendingPickPage.js +32 -33
  632. package/dist/pages/ProductDetailsPage.js +164 -166
  633. package/dist/pages/ProductsPage.js +39 -40
  634. package/dist/pages/ReportsPage.js +315 -316
  635. package/dist/pages/RouteDetailsPage.js +302 -304
  636. package/dist/pages/RoutesPage.js +39 -40
  637. package/dist/pages/SettingsPage.js +87 -88
  638. package/dist/pages/ShipmentStatusAuthorityPage.js +67 -67
  639. package/dist/pages/ShippingRatesPage.js +31 -32
  640. package/dist/pages/StockBindingPage.js +39 -40
  641. package/dist/pages/StockObservationsPage.js +23 -24
  642. package/dist/pages/TrackingEventQualityPage.js +30 -31
  643. package/dist/pages/TrackingPage.js +88 -89
  644. package/dist/pages/TripUtilizationPage.js +24 -25
  645. package/dist/pages/VehicleDetailsPage.js +241 -243
  646. package/dist/pages/VehiclesPage.js +59 -60
  647. package/dist/pages/WarehouseDetailsPage.js +151 -156
  648. package/dist/pages/WarehousesPage.js +33 -34
  649. package/dist/providers/ModuleSettingsProvider.js +1 -2
  650. package/dist/providers/MoveTheWheelsProvider.js +2 -7
  651. package/dist/services/createSandboxAssistantTransport.js +1 -2
  652. package/dist/shared/hooks/useTr.js +1 -2
  653. package/dist/src/generated/consolidation-operations.js +1 -2
  654. package/dist/src/generated/consumed-fuel-preview-operations.js +1 -2
  655. package/dist/src/generated/container-condition-operations.js +1 -2
  656. package/dist/src/generated/container-operations.js +1 -2
  657. package/dist/src/generated/empty-reuse-operations.js +1 -2
  658. package/dist/src/generated/free-time-operations.js +1 -2
  659. package/dist/src/generated/freight-cost-operations.js +1 -2
  660. package/dist/src/generated/freight-invoice-operations.js +1 -2
  661. package/dist/src/generated/logistics-procedure-operations.js +1 -2
  662. package/dist/src/generated/pallet-preview-operations.js +1 -2
  663. package/dist/src/generated/pending-pick-operations.js +1 -2
  664. package/dist/src/generated/shipment-status-authority-operations.js +1 -2
  665. package/dist/src/generated/stock-binding-operations.js +1 -2
  666. package/dist/src/generated/stock-observation-operations.js +1 -2
  667. package/dist/src/generated/tracking-quality-operations.js +1 -2
  668. package/dist/src/generated/trip-utilization-operations.js +1 -2
  669. package/dist/src/generated/wspace-operations.js +1 -2
  670. package/dist/store/movethewheelsStore.js +1 -2
  671. package/dist/utils/carrierIntegrations.js +4 -5
  672. package/dist/utils/cn.js +2 -3
  673. package/dist/utils/consolidationHistoryTarget.js +1 -2
  674. package/dist/utils/consolidationInput.js +1 -2
  675. package/dist/utils/consolidationLot.js +1 -2
  676. package/dist/utils/consolidationPins.js +1 -2
  677. package/dist/utils/consolidationRecovery.js +1 -2
  678. package/dist/utils/consolidationReportHead.js +1 -2
  679. package/dist/utils/consumedFuelInput.js +2 -3
  680. package/dist/utils/consumedFuelResponse.js +2 -3
  681. package/dist/utils/customerNotifications.js +2 -3
  682. package/dist/utils/driverLicenseExpiry.js +1 -2
  683. package/dist/utils/driverNavigation.js +2 -3
  684. package/dist/utils/entityExport.js +3 -4
  685. package/dist/utils/entityImport.js +3 -4
  686. package/dist/utils/formatters.js +37 -37
  687. package/dist/utils/freeTimeDate.js +1 -2
  688. package/dist/utils/freightAcknowledgement.js +1 -2
  689. package/dist/utils/freightCommercial.js +2 -3
  690. package/dist/utils/freightDraft.js +1 -2
  691. package/dist/utils/freightRecovery.js +1 -2
  692. package/dist/utils/graphqlClient.js +1 -2
  693. package/dist/utils/invoiceComparison.js +5 -6
  694. package/dist/utils/invoiceReview.js +1 -2
  695. package/dist/utils/mapMarkers.js +2 -3
  696. package/dist/utils/moduleSettings.js +2 -3
  697. package/dist/utils/navigation.js +2 -3
  698. package/dist/utils/orderPricing.js +1 -2
  699. package/dist/utils/orderValidation.js +3 -4
  700. package/dist/utils/orderVehicleHold.js +2 -3
  701. package/dist/utils/palletPreviewInput.js +1 -2
  702. package/dist/utils/palletPreviewResponse.js +2 -3
  703. package/dist/utils/pendingPickDraft.js +1 -2
  704. package/dist/utils/pickReviewAcknowledgement.js +1 -2
  705. package/dist/utils/procedureInput.js +1 -2
  706. package/dist/utils/procedureRecovery.js +1 -2
  707. package/dist/utils/reports.js +1 -2
  708. package/dist/utils/reuseAttempt.js +1 -2
  709. package/dist/utils/reuseForm.js +1 -2
  710. package/dist/utils/reuseRecovery.js +2 -3
  711. package/dist/utils/shipmentStatusDraft.js +1 -2
  712. package/dist/utils/stockBindingForm.js +1 -2
  713. package/dist/utils/stockBindingLabels.js +1 -2
  714. package/dist/utils/stockObservationForm.js +2 -3
  715. package/dist/utils/trackingAlerts.js +1 -2
  716. package/dist/utils/tripDraftContext.js +1 -2
  717. package/dist/utils/tripUtilizationForm.js +2 -3
  718. package/package.json +136 -86
  719. package/src/movethewheels/utils/orderPricing.test.ts +1 -1
  720. package/dist/node_modules/d3-array/src/ascending.js +0 -6
  721. package/dist/node_modules/d3-array/src/bisect.js +0 -8
  722. package/dist/node_modules/d3-array/src/bisector.js +0 -41
  723. package/dist/node_modules/d3-array/src/descending.js +0 -6
  724. package/dist/node_modules/d3-array/src/max.js +0 -12
  725. package/dist/node_modules/d3-array/src/min.js +0 -12
  726. package/dist/node_modules/d3-array/src/number.js +0 -13
  727. package/dist/node_modules/d3-array/src/quantile.js +0 -23
  728. package/dist/node_modules/d3-array/src/quickselect.js +0 -24
  729. package/dist/node_modules/d3-array/src/range.js +0 -8
  730. package/dist/node_modules/d3-array/src/sort.js +0 -15
  731. package/dist/node_modules/d3-array/src/ticks.js +0 -32
  732. package/dist/node_modules/d3-color/src/color.js +0 -289
  733. package/dist/node_modules/d3-color/src/define.js +0 -11
  734. package/dist/node_modules/d3-format/src/defaultLocale.js +0 -13
  735. package/dist/node_modules/d3-format/src/exponent.js +0 -7
  736. package/dist/node_modules/d3-format/src/formatDecimal.js +0 -11
  737. package/dist/node_modules/d3-format/src/formatGroup.js +0 -9
  738. package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
  739. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -11
  740. package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
  741. package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -27
  742. package/dist/node_modules/d3-format/src/formatTrim.js +0 -18
  743. package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
  744. package/dist/node_modules/d3-format/src/identity.js +0 -6
  745. package/dist/node_modules/d3-format/src/locale.js +0 -84
  746. package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
  747. package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
  748. package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
  749. package/dist/node_modules/d3-interpolate/src/array.js +0 -13
  750. package/dist/node_modules/d3-interpolate/src/basis.js +0 -14
  751. package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -11
  752. package/dist/node_modules/d3-interpolate/src/color.js +0 -23
  753. package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
  754. package/dist/node_modules/d3-interpolate/src/date.js +0 -9
  755. package/dist/node_modules/d3-interpolate/src/number.js +0 -8
  756. package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -14
  757. package/dist/node_modules/d3-interpolate/src/object.js +0 -12
  758. package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
  759. package/dist/node_modules/d3-interpolate/src/rgb.js +0 -17
  760. package/dist/node_modules/d3-interpolate/src/round.js +0 -8
  761. package/dist/node_modules/d3-interpolate/src/string.js +0 -26
  762. package/dist/node_modules/d3-interpolate/src/value.js +0 -16
  763. package/dist/node_modules/d3-scale/src/band.js +0 -50
  764. package/dist/node_modules/d3-scale/src/constant.js +0 -8
  765. package/dist/node_modules/d3-scale/src/continuous.js +0 -71
  766. package/dist/node_modules/d3-scale/src/diverging.js +0 -80
  767. package/dist/node_modules/d3-scale/src/identity.js +0 -18
  768. package/dist/node_modules/d3-scale/src/init.js +0 -27
  769. package/dist/node_modules/d3-scale/src/linear.js +0 -34
  770. package/dist/node_modules/d3-scale/src/log.js +0 -75
  771. package/dist/node_modules/d3-scale/src/nice.js +0 -8
  772. package/dist/node_modules/d3-scale/src/number.js +0 -6
  773. package/dist/node_modules/d3-scale/src/ordinal.js +0 -29
  774. package/dist/node_modules/d3-scale/src/pow.js +0 -35
  775. package/dist/node_modules/d3-scale/src/quantile.js +0 -35
  776. package/dist/node_modules/d3-scale/src/quantize.js +0 -31
  777. package/dist/node_modules/d3-scale/src/radial.js +0 -37
  778. package/dist/node_modules/d3-scale/src/sequential.js +0 -65
  779. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -28
  780. package/dist/node_modules/d3-scale/src/symlog.js +0 -28
  781. package/dist/node_modules/d3-scale/src/threshold.js +0 -23
  782. package/dist/node_modules/d3-scale/src/tickFormat.js +0 -29
  783. package/dist/node_modules/d3-scale/src/time.js +0 -45
  784. package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
  785. package/dist/node_modules/d3-shape/src/area.js +0 -53
  786. package/dist/node_modules/d3-shape/src/array.js +0 -6
  787. package/dist/node_modules/d3-shape/src/constant.js +0 -8
  788. package/dist/node_modules/d3-shape/src/curve/basis.js +0 -47
  789. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -48
  790. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -44
  791. package/dist/node_modules/d3-shape/src/curve/bump.js +0 -38
  792. package/dist/node_modules/d3-shape/src/curve/linear.js +0 -34
  793. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
  794. package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -92
  795. package/dist/node_modules/d3-shape/src/curve/natural.js +0 -37
  796. package/dist/node_modules/d3-shape/src/curve/step.js +0 -45
  797. package/dist/node_modules/d3-shape/src/line.js +0 -28
  798. package/dist/node_modules/d3-shape/src/math.js +0 -6
  799. package/dist/node_modules/d3-shape/src/noop.js +0 -4
  800. package/dist/node_modules/d3-shape/src/offset/expand.js +0 -13
  801. package/dist/node_modules/d3-shape/src/offset/none.js +0 -6
  802. package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -13
  803. package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -19
  804. package/dist/node_modules/d3-shape/src/order/none.js +0 -7
  805. package/dist/node_modules/d3-shape/src/path.js +0 -17
  806. package/dist/node_modules/d3-shape/src/point.js +0 -9
  807. package/dist/node_modules/d3-shape/src/stack.js +0 -32
  808. package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -8
  809. package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -8
  810. package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -8
  811. package/dist/node_modules/d3-shape/src/symbol/square.js +0 -8
  812. package/dist/node_modules/d3-shape/src/symbol/star.js +0 -13
  813. package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -8
  814. package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -8
  815. package/dist/node_modules/d3-shape/src/symbol.js +0 -21
  816. package/dist/node_modules/d3-time/src/day.js +0 -19
  817. package/dist/node_modules/d3-time/src/duration.js +0 -4
  818. package/dist/node_modules/d3-time/src/hour.js +0 -17
  819. package/dist/node_modules/d3-time/src/interval.js +0 -26
  820. package/dist/node_modules/d3-time/src/millisecond.js +0 -12
  821. package/dist/node_modules/d3-time/src/minute.js +0 -17
  822. package/dist/node_modules/d3-time/src/month.js +0 -16
  823. package/dist/node_modules/d3-time/src/second.js +0 -11
  824. package/dist/node_modules/d3-time/src/ticks.js +0 -123
  825. package/dist/node_modules/d3-time/src/week.js +0 -23
  826. package/dist/node_modules/d3-time/src/year.js +0 -24
  827. package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -60
  828. package/dist/node_modules/internmap/src/index.js +0 -38
@@ -1,33 +1,33 @@
1
- import { ArrowLeft as e } from "../node_modules/lucide-react/dist/esm/icons/arrow-left.js";
2
- import { Fuel as t } from "../node_modules/lucide-react/dist/esm/icons/fuel.js";
3
- import { Mail as n } from "../node_modules/lucide-react/dist/esm/icons/mail.js";
4
- import { MapPin as r } from "../node_modules/lucide-react/dist/esm/icons/map-pin.js";
5
- import { Phone as i } from "../node_modules/lucide-react/dist/esm/icons/phone.js";
6
- import { Save as a } from "../node_modules/lucide-react/dist/esm/icons/save.js";
7
- import { SquarePen as o } from "../node_modules/lucide-react/dist/esm/icons/square-pen.js";
8
- import { Trash2 as s } from "../node_modules/lucide-react/dist/esm/icons/trash-2.js";
9
- import { Truck as c } from "../node_modules/lucide-react/dist/esm/icons/truck.js";
10
- import { UserRound as l } from "../node_modules/lucide-react/dist/esm/icons/user-round.js";
11
- import { joinPath as u } from "../utils/navigation.js";
12
- import { useMoveTheWheels as d } from "../providers/MoveTheWheelsProvider.js";
13
- import { formatDate as f, formatWeight as p, getInitials as m } from "../utils/formatters.js";
14
- import { toApiVehicleStatus as h, useFleet as g, useVehicle as _, useVehicleDrivers as v } from "../hooks/useFleet.js";
15
- import { Avatar as y, AvatarFallback as b, Button as x, Card as S, CardContent as C, CardHeader as w, CardTitle as T, Input as E, Label as D, Progress as O, Select as k, SelectContent as A, SelectItem as j, SelectTrigger as M, SelectValue as N } from "../components/ui.js";
16
- import { ErrorState as P, LoadingState as F, PageLayout as I } from "../components/PageLayout.js";
17
- import { VEHICLE_STATUS_LABELS as L } from "../constants/index.js";
18
- import { StatusBadge as R, VehicleTypeBadge as z } from "../components/StatusBadge.js";
19
- import { FormError as B } from "../components/FormError.js";
20
- import { Notice as V, useNotice as H } from "../components/Notice.js";
21
- import { DocumentsCard as U } from "../components/DocumentsCard.js";
22
- import { useRefetchOnLeaveEdit as W } from "../hooks/useRefetchOnLeaveEdit.js";
23
- import { useRecordVehicleService as ee } from "../hooks/useFleetIntelligence.js";
24
- import { VehicleServiceCard as te } from "../components/VehicleServiceCard.js";
1
+ import e from "../node_modules/lucide-react/dist/esm/icons/truck.js";
2
+ import t from "../node_modules/lucide-react/dist/esm/icons/arrow-left.js";
3
+ import n from "../node_modules/lucide-react/dist/esm/icons/map-pin.js";
4
+ import r from "../node_modules/lucide-react/dist/esm/icons/fuel.js";
5
+ import i from "../node_modules/lucide-react/dist/esm/icons/user-round.js";
6
+ import a from "../node_modules/lucide-react/dist/esm/icons/square-pen.js";
7
+ import o from "../node_modules/lucide-react/dist/esm/icons/save.js";
8
+ import s from "../node_modules/lucide-react/dist/esm/icons/mail.js";
9
+ import c from "../node_modules/lucide-react/dist/esm/icons/phone.js";
10
+ import l from "../node_modules/lucide-react/dist/esm/icons/trash-2.js";
11
+ import { ErrorState as u, LoadingState as d, PageLayout as f } from "../components/PageLayout.js";
12
+ import { StatusBadge as p, VehicleTypeBadge as m } from "../components/StatusBadge.js";
13
+ import { Avatar as h, AvatarFallback as g, Button as _, Card as v, CardContent as y, CardHeader as b, CardTitle as x, Input as S, Label as C, Progress as w, Select as T, SelectContent as E, SelectItem as D, SelectTrigger as O, SelectValue as k } from "../components/ui.js";
14
+ import { toApiVehicleStatus as A, useFleet as j, useVehicle as M, useVehicleDrivers as N } from "../hooks/useFleet.js";
15
+ import { VEHICLE_STATUS_LABELS as P } from "../constants/index.js";
16
+ import { useRecordVehicleService as F } from "../hooks/useFleetIntelligence.js";
17
+ import { useRefetchOnLeaveEdit as I } from "../hooks/useRefetchOnLeaveEdit.js";
18
+ import { VehicleServiceCard as L } from "../components/VehicleServiceCard.js";
19
+ import { useMoveTheWheels as R } from "../providers/MoveTheWheelsProvider.js";
20
+ import { formatDate as z, formatWeight as B, getInitials as V } from "../utils/formatters.js";
21
+ import { joinPath as H } from "../utils/navigation.js";
22
+ import { FormError as U } from "../components/FormError.js";
23
+ import { Notice as W, useNotice as ee } from "../components/Notice.js";
24
+ import { DocumentsCard as te } from "../components/DocumentsCard.js";
25
25
  import { useEffect as G, useState as K } from "react";
26
26
  import { useLocation as ne, useParams as re } from "react-router";
27
27
  import { jsx as q, jsxs as J } from "react/jsx-runtime";
28
28
  import { useI18n as ie } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
29
29
  import { EmphasisPanel as Y, NextSteps as ae, PagePurpose as X, ResponsiveDialog as Z, ResponsiveDialogContent as Q, ResponsiveDialogDescription as $, ResponsiveDialogFooter as oe, ResponsiveDialogHeader as se, ResponsiveDialogTitle as ce } from "@burdenoff/fe-libs/ui";
30
- //#region src/movethewheels/pages/VehicleDetailsPage.tsx
30
+ // src/movethewheels/pages/VehicleDetailsPage.tsx
31
31
  var le = [
32
32
  {
33
33
  value: "TRUCK",
@@ -61,7 +61,7 @@ var le = [
61
61
  value: "DRONE",
62
62
  label: "Drone"
63
63
  }
64
- ], ue = Object.entries(L).map(([e, t]) => ({
64
+ ], ue = Object.entries(P).map(([e, t]) => ({
65
65
  value: e,
66
66
  label: t
67
67
  })), de = [
@@ -99,8 +99,8 @@ var le = [
99
99
  label: "Rented"
100
100
  }
101
101
  ];
102
- function pe({ editId: t }) {
103
- let { basePath: n, navigate: r } = d(), { createVehicle: i, updateVehicle: o, deleteVehicle: l } = g(), { vehicle: f } = _(t), p = !!t, [m, v] = K({
102
+ function pe({ editId: n }) {
103
+ let { basePath: r, navigate: i } = R(), { createVehicle: a, updateVehicle: s, deleteVehicle: c } = j(), { vehicle: u } = M(n), d = !!n, [p, m] = K({
104
104
  vehicleNumber: "",
105
105
  type: "VAN",
106
106
  make: "",
@@ -114,90 +114,89 @@ function pe({ editId: t }) {
114
114
  capacityWeight: "",
115
115
  capacityVolume: "",
116
116
  capacityPallets: ""
117
- }), [y, b] = K(!1), [O, P] = K(null), [F, L] = K(!1), [R, z] = K(!1), [V, H] = K(null);
117
+ }), [h, g] = K(!1), [w, N] = K(null), [P, F] = K(!1), [I, L] = K(!1), [z, B] = K(null);
118
118
  G(() => {
119
- t && f && v({
120
- vehicleNumber: f.vehicleNumber ?? "",
121
- type: f.type ? f.type.toUpperCase() : "VAN",
122
- make: f.make ?? "",
123
- model: f.model ?? "",
124
- licensePlate: f.licensePlate ?? "",
125
- ownershipType: f.ownershipType ?? "",
126
- year: f.year ? String(f.year) : "",
127
- status: f.status,
128
- fuelType: f.fuelType ?? "",
129
- fuelEfficiencyLPer100Km: f.fuelEfficiencyLPer100Km === void 0 ? "" : String(f.fuelEfficiencyLPer100Km),
130
- capacityWeight: f.capacity.weight ? String(f.capacity.weight) : "",
131
- capacityVolume: f.capacity.volume ? String(f.capacity.volume) : "",
132
- capacityPallets: f.capacity.pallets ? String(f.capacity.pallets) : ""
119
+ n && u && m({
120
+ vehicleNumber: u.vehicleNumber ?? "",
121
+ type: u.type ? u.type.toUpperCase() : "VAN",
122
+ make: u.make ?? "",
123
+ model: u.model ?? "",
124
+ licensePlate: u.licensePlate ?? "",
125
+ ownershipType: u.ownershipType ?? "",
126
+ year: u.year ? String(u.year) : "",
127
+ status: u.status,
128
+ fuelType: u.fuelType ?? "",
129
+ fuelEfficiencyLPer100Km: u.fuelEfficiencyLPer100Km === void 0 ? "" : String(u.fuelEfficiencyLPer100Km),
130
+ capacityWeight: u.capacity.weight ? String(u.capacity.weight) : "",
131
+ capacityVolume: u.capacity.volume ? String(u.capacity.volume) : "",
132
+ capacityPallets: u.capacity.pallets ? String(u.capacity.pallets) : ""
133
133
  });
134
- }, [t, f]);
135
- let U = () => r?.(u(n, "fleet/vehicles")), W = async (e) => {
136
- if (e.preventDefault(), !m.vehicleNumber.trim()) {
137
- P("Vehicle number is required.");
138
- return;
139
- }
140
- b(!0), P(null);
141
- try {
142
- let e = {
143
- vehicleNumber: m.vehicleNumber.trim(),
144
- type: m.type,
145
- make: m.make.trim() || void 0,
146
- model: m.model.trim() || void 0,
147
- licensePlate: m.licensePlate.trim() || void 0,
148
- ownershipType: m.ownershipType || void 0,
149
- year: m.year ? Number(m.year) : void 0,
150
- status: h(m.status),
151
- fuelType: m.fuelType || void 0,
152
- fuelEfficiencyLPer100Km: m.fuelEfficiencyLPer100Km ? Number(m.fuelEfficiencyLPer100Km) : void 0,
153
- capacity: m.capacityWeight || m.capacityVolume || m.capacityPallets ? {
154
- weight: m.capacityWeight ? Number(m.capacityWeight) : void 0,
155
- volume: m.capacityVolume ? Number(m.capacityVolume) : void 0,
156
- pallets: m.capacityPallets ? Number(m.capacityPallets) : void 0
157
- } : void 0
158
- };
159
- if (t) {
160
- let i = await o(t, e);
161
- r?.(u(n, `fleet/vehicles/${i.id}`));
162
- } else {
163
- let t = await i(e);
164
- r?.(u(n, `fleet/vehicles/${t.id}`));
134
+ }, [n, u]);
135
+ let V = () => i?.(H(r, "fleet/vehicles")), W = async (e) => {
136
+ if (e.preventDefault(), !p.vehicleNumber.trim()) N("Vehicle number is required.");
137
+ else {
138
+ g(!0), N(null);
139
+ try {
140
+ let e = {
141
+ vehicleNumber: p.vehicleNumber.trim(),
142
+ type: p.type,
143
+ make: p.make.trim() || void 0,
144
+ model: p.model.trim() || void 0,
145
+ licensePlate: p.licensePlate.trim() || void 0,
146
+ ownershipType: p.ownershipType || void 0,
147
+ year: p.year ? Number(p.year) : void 0,
148
+ status: A(p.status),
149
+ fuelType: p.fuelType || void 0,
150
+ fuelEfficiencyLPer100Km: p.fuelEfficiencyLPer100Km ? Number(p.fuelEfficiencyLPer100Km) : void 0,
151
+ capacity: p.capacityWeight || p.capacityVolume || p.capacityPallets ? {
152
+ weight: p.capacityWeight ? Number(p.capacityWeight) : void 0,
153
+ volume: p.capacityVolume ? Number(p.capacityVolume) : void 0,
154
+ pallets: p.capacityPallets ? Number(p.capacityPallets) : void 0
155
+ } : void 0
156
+ };
157
+ if (n) {
158
+ let t = await s(n, e);
159
+ i?.(H(r, `fleet/vehicles/${t.id}`));
160
+ } else {
161
+ let t = await a(e);
162
+ i?.(H(r, `fleet/vehicles/${t.id}`));
163
+ }
164
+ } catch (e) {
165
+ console.error("Failed to create vehicle:", e), N(e instanceof Error ? e.message : "Failed to create vehicle. Please try again."), g(!1);
165
166
  }
166
- } catch (e) {
167
- console.error("Failed to create vehicle:", e), P(e instanceof Error ? e.message : "Failed to create vehicle. Please try again."), b(!1);
168
167
  }
169
168
  };
170
- return /* @__PURE__ */ J(I, {
171
- title: p ? "Edit Vehicle" : "Add Vehicle",
169
+ return /* @__PURE__ */ J(f, {
170
+ title: d ? "Edit Vehicle" : "Add Vehicle",
172
171
  subtitle: "Register a new vehicle in your fleet",
173
- icon: /* @__PURE__ */ q(c, { size: 24 }),
172
+ icon: /* @__PURE__ */ q(e, { size: 24 }),
174
173
  headerActions: /* @__PURE__ */ J("div", {
175
174
  className: "flex gap-2",
176
- children: [/* @__PURE__ */ J(x, {
175
+ children: [/* @__PURE__ */ J(_, {
177
176
  variant: "outline",
178
- onClick: U,
179
- disabled: y,
180
- children: [/* @__PURE__ */ q(e, { size: 16 }), " Cancel"]
181
- }), /* @__PURE__ */ J(x, {
177
+ onClick: V,
178
+ disabled: h,
179
+ children: [/* @__PURE__ */ q(t, { size: 16 }), " Cancel"]
180
+ }), /* @__PURE__ */ J(_, {
182
181
  onClick: W,
183
- disabled: y,
182
+ disabled: h,
184
183
  children: [
185
- /* @__PURE__ */ q(a, { size: 16 }),
184
+ /* @__PURE__ */ q(o, { size: 16 }),
186
185
  " ",
187
- p ? y ? "Saving..." : "Save Changes" : y ? "Saving..." : "Add Vehicle"
186
+ d ? h ? "Saving..." : "Save Changes" : h ? "Saving..." : "Add Vehicle"
188
187
  ]
189
188
  })]
190
189
  }),
191
190
  children: [
192
191
  /* @__PURE__ */ q(X, {
193
- icon: /* @__PURE__ */ q(c, { size: 18 }),
192
+ icon: /* @__PURE__ */ q(e, { size: 18 }),
194
193
  children: "Add a vehicle so it can be assigned to deliveries and routes. Give it a fleet number and type to start — make, model and plate help identify it on the road."
195
194
  }),
196
195
  /* @__PURE__ */ J("form", {
197
196
  onSubmit: W,
198
197
  className: "max-w-2xl space-y-6",
199
198
  children: [
200
- /* @__PURE__ */ q(B, { message: O }),
199
+ /* @__PURE__ */ q(U, { message: w }),
201
200
  /* @__PURE__ */ J(Y, { children: [/* @__PURE__ */ q("h2", {
202
201
  className: "text-base font-semibold text-text-primary mb-4",
203
202
  children: "Vehicle Details"
@@ -208,16 +207,16 @@ function pe({ editId: t }) {
208
207
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
209
208
  children: [/* @__PURE__ */ J("div", {
210
209
  className: "space-y-2",
211
- children: [/* @__PURE__ */ J(D, {
210
+ children: [/* @__PURE__ */ J(C, {
212
211
  htmlFor: "vehicleNumber",
213
212
  children: ["Vehicle Number ", /* @__PURE__ */ q("span", {
214
213
  className: "text-status-error-text",
215
214
  children: "*"
216
215
  })]
217
- }), /* @__PURE__ */ q(E, {
216
+ }), /* @__PURE__ */ q(S, {
218
217
  id: "vehicleNumber",
219
- value: m.vehicleNumber,
220
- onChange: (e) => v((t) => ({
218
+ value: p.vehicleNumber,
219
+ onChange: (e) => m((t) => ({
221
220
  ...t,
222
221
  vehicleNumber: e.target.value
223
222
  })),
@@ -226,22 +225,22 @@ function pe({ editId: t }) {
226
225
  })]
227
226
  }), /* @__PURE__ */ J("div", {
228
227
  className: "space-y-2",
229
- children: [/* @__PURE__ */ J(D, {
228
+ children: [/* @__PURE__ */ J(C, {
230
229
  htmlFor: "type",
231
230
  children: ["Type ", /* @__PURE__ */ q("span", {
232
231
  className: "text-status-error-text",
233
232
  children: "*"
234
233
  })]
235
- }), /* @__PURE__ */ J(k, {
236
- value: m.type,
237
- onValueChange: (e) => v((t) => ({
234
+ }), /* @__PURE__ */ J(T, {
235
+ value: p.type,
236
+ onValueChange: (e) => m((t) => ({
238
237
  ...t,
239
238
  type: e
240
239
  })),
241
- children: [/* @__PURE__ */ q(M, {
240
+ children: [/* @__PURE__ */ q(O, {
242
241
  id: "type",
243
- children: /* @__PURE__ */ q(N, {})
244
- }), /* @__PURE__ */ q(A, { children: le.map((e) => /* @__PURE__ */ q(j, {
242
+ children: /* @__PURE__ */ q(k, {})
243
+ }), /* @__PURE__ */ q(E, { children: le.map((e) => /* @__PURE__ */ q(D, {
245
244
  value: e.value,
246
245
  children: e.label
247
246
  }, e.value)) })]
@@ -253,13 +252,13 @@ function pe({ editId: t }) {
253
252
  children: [
254
253
  /* @__PURE__ */ J("div", {
255
254
  className: "space-y-2",
256
- children: [/* @__PURE__ */ q(D, {
255
+ children: [/* @__PURE__ */ q(C, {
257
256
  htmlFor: "make",
258
257
  children: "Make"
259
- }), /* @__PURE__ */ q(E, {
258
+ }), /* @__PURE__ */ q(S, {
260
259
  id: "make",
261
- value: m.make,
262
- onChange: (e) => v((t) => ({
260
+ value: p.make,
261
+ onChange: (e) => m((t) => ({
263
262
  ...t,
264
263
  make: e.target.value
265
264
  })),
@@ -268,13 +267,13 @@ function pe({ editId: t }) {
268
267
  }),
269
268
  /* @__PURE__ */ J("div", {
270
269
  className: "space-y-2",
271
- children: [/* @__PURE__ */ q(D, {
270
+ children: [/* @__PURE__ */ q(C, {
272
271
  htmlFor: "model",
273
272
  children: "Model"
274
- }), /* @__PURE__ */ q(E, {
273
+ }), /* @__PURE__ */ q(S, {
275
274
  id: "model",
276
- value: m.model,
277
- onChange: (e) => v((t) => ({
275
+ value: p.model,
276
+ onChange: (e) => m((t) => ({
278
277
  ...t,
279
278
  model: e.target.value
280
279
  })),
@@ -283,13 +282,13 @@ function pe({ editId: t }) {
283
282
  }),
284
283
  /* @__PURE__ */ J("div", {
285
284
  className: "space-y-2",
286
- children: [/* @__PURE__ */ q(D, {
285
+ children: [/* @__PURE__ */ q(C, {
287
286
  htmlFor: "licensePlate",
288
287
  children: "License Plate"
289
- }), /* @__PURE__ */ q(E, {
288
+ }), /* @__PURE__ */ q(S, {
290
289
  id: "licensePlate",
291
- value: m.licensePlate,
292
- onChange: (e) => v((t) => ({
290
+ value: p.licensePlate,
291
+ onChange: (e) => m((t) => ({
293
292
  ...t,
294
293
  licensePlate: e.target.value
295
294
  })),
@@ -303,19 +302,19 @@ function pe({ editId: t }) {
303
302
  children: [
304
303
  /* @__PURE__ */ J("div", {
305
304
  className: "space-y-2",
306
- children: [/* @__PURE__ */ q(D, {
305
+ children: [/* @__PURE__ */ q(C, {
307
306
  htmlFor: "ownershipType",
308
307
  children: "Ownership"
309
- }), /* @__PURE__ */ J(k, {
310
- value: m.ownershipType || void 0,
311
- onValueChange: (e) => v((t) => ({
308
+ }), /* @__PURE__ */ J(T, {
309
+ value: p.ownershipType || void 0,
310
+ onValueChange: (e) => m((t) => ({
312
311
  ...t,
313
312
  ownershipType: e
314
313
  })),
315
- children: [/* @__PURE__ */ q(M, {
314
+ children: [/* @__PURE__ */ q(O, {
316
315
  id: "ownershipType",
317
- children: /* @__PURE__ */ q(N, { placeholder: "Select ownership" })
318
- }), /* @__PURE__ */ q(A, { children: fe.map((e) => /* @__PURE__ */ q(j, {
316
+ children: /* @__PURE__ */ q(k, { placeholder: "Select ownership" })
317
+ }), /* @__PURE__ */ q(E, { children: fe.map((e) => /* @__PURE__ */ q(D, {
319
318
  value: e.value,
320
319
  children: e.label
321
320
  }, e.value)) })]
@@ -323,16 +322,16 @@ function pe({ editId: t }) {
323
322
  }),
324
323
  /* @__PURE__ */ J("div", {
325
324
  className: "space-y-2",
326
- children: [/* @__PURE__ */ q(D, {
325
+ children: [/* @__PURE__ */ q(C, {
327
326
  htmlFor: "year",
328
327
  children: "Year"
329
- }), /* @__PURE__ */ q(E, {
328
+ }), /* @__PURE__ */ q(S, {
330
329
  id: "year",
331
330
  type: "number",
332
331
  min: 1980,
333
332
  max: (/* @__PURE__ */ new Date()).getFullYear() + 1,
334
- value: m.year,
335
- onChange: (e) => v((t) => ({
333
+ value: p.year,
334
+ onChange: (e) => m((t) => ({
336
335
  ...t,
337
336
  year: e.target.value
338
337
  })),
@@ -341,19 +340,19 @@ function pe({ editId: t }) {
341
340
  }),
342
341
  /* @__PURE__ */ J("div", {
343
342
  className: "space-y-2",
344
- children: [/* @__PURE__ */ q(D, {
343
+ children: [/* @__PURE__ */ q(C, {
345
344
  htmlFor: "vehicleStatus",
346
345
  children: "Status"
347
- }), /* @__PURE__ */ J(k, {
348
- value: m.status,
349
- onValueChange: (e) => v((t) => ({
346
+ }), /* @__PURE__ */ J(T, {
347
+ value: p.status,
348
+ onValueChange: (e) => m((t) => ({
350
349
  ...t,
351
350
  status: e
352
351
  })),
353
- children: [/* @__PURE__ */ q(M, {
352
+ children: [/* @__PURE__ */ q(O, {
354
353
  id: "vehicleStatus",
355
- children: /* @__PURE__ */ q(N, {})
356
- }), /* @__PURE__ */ q(A, { children: ue.map((e) => /* @__PURE__ */ q(j, {
354
+ children: /* @__PURE__ */ q(k, {})
355
+ }), /* @__PURE__ */ q(E, { children: ue.map((e) => /* @__PURE__ */ q(D, {
357
356
  value: e.value,
358
357
  children: e.label
359
358
  }, e.value)) })]
@@ -365,38 +364,38 @@ function pe({ editId: t }) {
365
364
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
366
365
  children: [/* @__PURE__ */ J("div", {
367
366
  className: "space-y-2",
368
- children: [/* @__PURE__ */ q(D, {
367
+ children: [/* @__PURE__ */ q(C, {
369
368
  htmlFor: "fuelType",
370
369
  children: "Fuel Type"
371
- }), /* @__PURE__ */ J(k, {
372
- value: m.fuelType || void 0,
370
+ }), /* @__PURE__ */ J(T, {
371
+ value: p.fuelType || void 0,
373
372
  onValueChange: (e) => {
374
373
  let t = de.find((t) => t.value === e)?.value;
375
- v((e) => ({
374
+ m((e) => ({
376
375
  ...e,
377
376
  fuelType: t ?? ""
378
377
  }));
379
378
  },
380
- children: [/* @__PURE__ */ q(M, {
379
+ children: [/* @__PURE__ */ q(O, {
381
380
  id: "fuelType",
382
- children: /* @__PURE__ */ q(N, { placeholder: "Select fuel type" })
383
- }), /* @__PURE__ */ q(A, { children: de.map((e) => /* @__PURE__ */ q(j, {
381
+ children: /* @__PURE__ */ q(k, { placeholder: "Select fuel type" })
382
+ }), /* @__PURE__ */ q(E, { children: de.map((e) => /* @__PURE__ */ q(D, {
384
383
  value: e.value,
385
384
  children: e.label
386
385
  }, e.value)) })]
387
386
  })]
388
387
  }), /* @__PURE__ */ J("div", {
389
388
  className: "space-y-2",
390
- children: [/* @__PURE__ */ q(D, {
389
+ children: [/* @__PURE__ */ q(C, {
391
390
  htmlFor: "fuelEfficiency",
392
391
  children: "Fuel Efficiency (L/100km)"
393
- }), /* @__PURE__ */ q(E, {
392
+ }), /* @__PURE__ */ q(S, {
394
393
  id: "fuelEfficiency",
395
394
  type: "number",
396
395
  min: 0,
397
396
  step: .1,
398
- value: m.fuelEfficiencyLPer100Km,
399
- onChange: (e) => v((t) => ({
397
+ value: p.fuelEfficiencyLPer100Km,
398
+ onChange: (e) => m((t) => ({
400
399
  ...t,
401
400
  fuelEfficiencyLPer100Km: e.target.value
402
401
  })),
@@ -409,15 +408,15 @@ function pe({ editId: t }) {
409
408
  children: [
410
409
  /* @__PURE__ */ J("div", {
411
410
  className: "space-y-2",
412
- children: [/* @__PURE__ */ q(D, {
411
+ children: [/* @__PURE__ */ q(C, {
413
412
  htmlFor: "capacityWeight",
414
413
  children: "Capacity — Weight (kg)"
415
- }), /* @__PURE__ */ q(E, {
414
+ }), /* @__PURE__ */ q(S, {
416
415
  id: "capacityWeight",
417
416
  type: "number",
418
417
  min: 0,
419
- value: m.capacityWeight,
420
- onChange: (e) => v((t) => ({
418
+ value: p.capacityWeight,
419
+ onChange: (e) => m((t) => ({
421
420
  ...t,
422
421
  capacityWeight: e.target.value
423
422
  })),
@@ -426,16 +425,16 @@ function pe({ editId: t }) {
426
425
  }),
427
426
  /* @__PURE__ */ J("div", {
428
427
  className: "space-y-2",
429
- children: [/* @__PURE__ */ q(D, {
428
+ children: [/* @__PURE__ */ q(C, {
430
429
  htmlFor: "capacityVolume",
431
430
  children: "Capacity — Volume (m³)"
432
- }), /* @__PURE__ */ q(E, {
431
+ }), /* @__PURE__ */ q(S, {
433
432
  id: "capacityVolume",
434
433
  type: "number",
435
434
  min: 0,
436
435
  step: .1,
437
- value: m.capacityVolume,
438
- onChange: (e) => v((t) => ({
436
+ value: p.capacityVolume,
437
+ onChange: (e) => m((t) => ({
439
438
  ...t,
440
439
  capacityVolume: e.target.value
441
440
  })),
@@ -444,15 +443,15 @@ function pe({ editId: t }) {
444
443
  }),
445
444
  /* @__PURE__ */ J("div", {
446
445
  className: "space-y-2",
447
- children: [/* @__PURE__ */ q(D, {
446
+ children: [/* @__PURE__ */ q(C, {
448
447
  htmlFor: "capacityPallets",
449
448
  children: "Capacity — Pallets"
450
- }), /* @__PURE__ */ q(E, {
449
+ }), /* @__PURE__ */ q(S, {
451
450
  id: "capacityPallets",
452
451
  type: "number",
453
452
  min: 0,
454
- value: m.capacityPallets,
455
- onChange: (e) => v((t) => ({
453
+ value: p.capacityPallets,
454
+ onChange: (e) => m((t) => ({
456
455
  ...t,
457
456
  capacityPallets: e.target.value
458
457
  })),
@@ -463,58 +462,58 @@ function pe({ editId: t }) {
463
462
  })
464
463
  ]
465
464
  })] }),
466
- p && /* @__PURE__ */ J(S, {
465
+ d && /* @__PURE__ */ J(v, {
467
466
  className: "border-status-error-border",
468
- children: [/* @__PURE__ */ q(w, { children: /* @__PURE__ */ J(T, {
467
+ children: [/* @__PURE__ */ q(b, { children: /* @__PURE__ */ J(x, {
469
468
  className: "flex items-center gap-2 text-status-error-text",
470
- children: [/* @__PURE__ */ q(s, { size: 18 }), " Delete Vehicle"]
471
- }) }), /* @__PURE__ */ J(C, { children: [/* @__PURE__ */ q("p", {
469
+ children: [/* @__PURE__ */ q(l, { size: 18 }), " Delete Vehicle"]
470
+ }) }), /* @__PURE__ */ J(y, { children: [/* @__PURE__ */ q("p", {
472
471
  className: "mb-3 text-sm text-text-secondary",
473
472
  children: "Removes this vehicle from the active fleet. It can no longer be assigned to drivers, orders, or routes. This cannot be undone from here."
474
- }), /* @__PURE__ */ J(x, {
473
+ }), /* @__PURE__ */ J(_, {
475
474
  type: "button",
476
475
  variant: "outline",
477
476
  className: "border-status-error-border text-status-error-text hover:bg-status-error-bg-subtle",
478
- onClick: () => L(!0),
479
- children: [/* @__PURE__ */ q(s, { size: 16 }), " Delete this vehicle"]
477
+ onClick: () => F(!0),
478
+ children: [/* @__PURE__ */ q(l, { size: 16 }), " Delete this vehicle"]
480
479
  })] })]
481
480
  })
482
481
  ]
483
482
  }),
484
483
  /* @__PURE__ */ q(Z, {
485
- open: F,
486
- onOpenChange: L,
484
+ open: P,
485
+ onOpenChange: F,
487
486
  children: /* @__PURE__ */ J(Q, { children: [
488
487
  /* @__PURE__ */ J(se, { children: [/* @__PURE__ */ q(ce, { children: "Delete this vehicle?" }), /* @__PURE__ */ J($, { children: [
489
488
  "This removes ",
490
- m.vehicleNumber || "this vehicle",
489
+ p.vehicleNumber || "this vehicle",
491
490
  " from the active fleet. It cannot be undone from here."
492
491
  ] })] }),
493
492
  /* @__PURE__ */ q("div", {
494
493
  className: "px-1",
495
- children: /* @__PURE__ */ q(B, { message: V })
494
+ children: /* @__PURE__ */ q(U, { message: z })
496
495
  }),
497
- /* @__PURE__ */ J(oe, { children: [/* @__PURE__ */ q(x, {
496
+ /* @__PURE__ */ J(oe, { children: [/* @__PURE__ */ q(_, {
498
497
  variant: "outline",
499
- onClick: () => L(!1),
500
- disabled: R,
498
+ onClick: () => F(!1),
499
+ disabled: I,
501
500
  children: "Cancel"
502
- }), /* @__PURE__ */ q(x, {
501
+ }), /* @__PURE__ */ q(_, {
503
502
  className: "bg-status-error-text text-text-inverse hover:opacity-90",
504
503
  onClick: async () => {
505
- if (t) {
506
- z(!0), H(null);
504
+ if (n) {
505
+ L(!0), B(null);
507
506
  try {
508
- await l(t), L(!1), r?.(u(n, "fleet/vehicles"));
507
+ await c(n), F(!1), i?.(H(r, "fleet/vehicles"));
509
508
  } catch (e) {
510
- H(e instanceof Error ? e.message : "Failed to delete vehicle.");
509
+ B(e instanceof Error ? e.message : "Failed to delete vehicle.");
511
510
  } finally {
512
- z(!1);
511
+ L(!1);
513
512
  }
514
513
  }
515
514
  },
516
- disabled: R,
517
- children: R ? "Deleting..." : "Delete vehicle"
515
+ disabled: I,
516
+ children: I ? "Deleting..." : "Delete vehicle"
518
517
  })] })
519
518
  ] })
520
519
  })
@@ -522,40 +521,40 @@ function pe({ editId: t }) {
522
521
  });
523
522
  }
524
523
  function me() {
525
- let { vehicleId: a } = re(), { basePath: s, navigate: h } = d(), { vehicle: g, isLoading: E, error: D, refetch: k } = _(a), A = ee(), { message: j, notify: M } = H(), { t: N } = ie(), L = (e, t) => {
526
- let n = N(e);
524
+ let { vehicleId: o } = re(), { basePath: l, navigate: S } = R(), { vehicle: C, isLoading: T, error: E, refetch: D } = M(o), O = F(), { message: k, notify: A } = ee(), { t: j } = ie(), P = (e, t) => {
525
+ let n = j(e);
527
526
  return n === e ? t : n;
528
- }, B = ne().pathname.endsWith("/edit");
529
- W(B, k);
530
- let { drivers: G, isLoading: K, error: Z } = v(B ? void 0 : a), Q = () => h?.(u(s, "fleet/vehicles")), $ = (e) => h?.(u(s, e));
531
- return a ? B ? /* @__PURE__ */ q(pe, { editId: a }) : E ? /* @__PURE__ */ q(F, { message: "Loading vehicle details..." }) : D || !g ? /* @__PURE__ */ q(P, {
527
+ }, U = ne().pathname.endsWith("/edit");
528
+ I(U, D);
529
+ let { drivers: G, isLoading: K, error: Z } = N(U ? void 0 : o), Q = () => S?.(H(l, "fleet/vehicles")), $ = (e) => S?.(H(l, e));
530
+ return o ? U ? /* @__PURE__ */ q(pe, { editId: o }) : T ? /* @__PURE__ */ q(d, { message: "Loading vehicle details..." }) : E || !C ? /* @__PURE__ */ q(u, {
532
531
  title: "Vehicle not found",
533
- onRetry: k
534
- }) : /* @__PURE__ */ J(I, {
535
- title: g.vehicleNumber,
536
- subtitle: `${g.make} ${g.model}${g.year ? ` (${g.year})` : ""}`,
537
- icon: /* @__PURE__ */ q(c, { size: 24 }),
532
+ onRetry: D
533
+ }) : /* @__PURE__ */ J(f, {
534
+ title: C.vehicleNumber,
535
+ subtitle: `${C.make} ${C.model}${C.year ? ` (${C.year})` : ""}`,
536
+ icon: /* @__PURE__ */ q(e, { size: 24 }),
538
537
  headerActions: /* @__PURE__ */ J("div", {
539
538
  className: "flex gap-2",
540
- children: [/* @__PURE__ */ J(x, {
539
+ children: [/* @__PURE__ */ J(_, {
541
540
  variant: "outline",
542
541
  onClick: Q,
543
- children: [/* @__PURE__ */ q(e, { size: 16 }), " Back"]
544
- }), /* @__PURE__ */ J(x, {
545
- onClick: () => h?.(u(s, "fleet/vehicles/" + a + "/edit")),
546
- children: [/* @__PURE__ */ q(o, { size: 16 }), " Edit"]
542
+ children: [/* @__PURE__ */ q(t, { size: 16 }), " Back"]
543
+ }), /* @__PURE__ */ J(_, {
544
+ onClick: () => S?.(H(l, "fleet/vehicles/" + o + "/edit")),
545
+ children: [/* @__PURE__ */ q(a, { size: 16 }), " Edit"]
547
546
  })]
548
547
  }),
549
548
  headerContent: /* @__PURE__ */ J("div", {
550
549
  className: "flex gap-2",
551
- children: [/* @__PURE__ */ q(R, {
552
- status: g.status,
550
+ children: [/* @__PURE__ */ q(p, {
551
+ status: C.status,
553
552
  type: "vehicle"
554
- }), /* @__PURE__ */ q(z, { type: g.type })]
553
+ }), /* @__PURE__ */ q(m, { type: C.type })]
555
554
  }),
556
555
  children: [
557
556
  /* @__PURE__ */ q(X, {
558
- icon: /* @__PURE__ */ q(c, { size: 18 }),
557
+ icon: /* @__PURE__ */ q(e, { size: 18 }),
559
558
  children: "The full record for this vehicle — specs, capacity, fuel and mileage, who is driving it and where it is right now. Use it to confirm a vehicle is fuelled, crewed and the right size before dispatching it on a delivery."
560
559
  }),
561
560
  /* @__PURE__ */ q(ae, {
@@ -564,20 +563,20 @@ function me() {
564
563
  id: "assign",
565
564
  label: "Assign to a delivery",
566
565
  description: "Put this vehicle on an order that fits its capacity.",
567
- icon: /* @__PURE__ */ q(r, { size: 16 }),
566
+ icon: /* @__PURE__ */ q(n, { size: 16 }),
568
567
  onClick: () => $("orders")
569
568
  }, {
570
569
  id: "driver",
571
570
  label: G.length > 0 ? "Review the assigned driver" : "Assign a driver",
572
571
  description: "A vehicle needs a driver before it can be dispatched.",
573
- icon: /* @__PURE__ */ q(l, { size: 16 }),
572
+ icon: /* @__PURE__ */ q(i, { size: 16 }),
574
573
  done: G.length > 0,
575
574
  onClick: () => G[0] ? $(`fleet/drivers/${G[0].id}`) : $("fleet/drivers")
576
575
  }]
577
576
  }),
578
- j && /* @__PURE__ */ q("div", {
577
+ k && /* @__PURE__ */ q("div", {
579
578
  className: "mb-2",
580
- children: /* @__PURE__ */ q(V, { message: j })
579
+ children: /* @__PURE__ */ q(W, { message: k })
581
580
  }),
582
581
  /* @__PURE__ */ J("div", {
583
582
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
@@ -595,46 +594,46 @@ function me() {
595
594
  children: "Type"
596
595
  }), /* @__PURE__ */ q("p", {
597
596
  className: "font-medium capitalize",
598
- children: g.type
597
+ children: C.type
599
598
  })] }),
600
599
  /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
601
600
  className: "text-sm text-text-secondary",
602
601
  children: "Make"
603
602
  }), /* @__PURE__ */ q("p", {
604
603
  className: "font-medium",
605
- children: g.make || "—"
604
+ children: C.make || "—"
606
605
  })] }),
607
606
  /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
608
607
  className: "text-sm text-text-secondary",
609
608
  children: "Model"
610
609
  }), /* @__PURE__ */ q("p", {
611
610
  className: "font-medium",
612
- children: g.model || "—"
611
+ children: C.model || "—"
613
612
  })] }),
614
613
  /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
615
614
  className: "text-sm text-text-secondary",
616
615
  children: "Year"
617
616
  }), /* @__PURE__ */ q("p", {
618
617
  className: "font-medium",
619
- children: g.year ?? "—"
618
+ children: C.year ?? "—"
620
619
  })] }),
621
620
  /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
622
621
  className: "text-sm text-text-secondary",
623
622
  children: "License Plate"
624
623
  }), /* @__PURE__ */ q("p", {
625
624
  className: "font-medium",
626
- children: g.licensePlate || "—"
625
+ children: C.licensePlate || "—"
627
626
  })] }),
628
627
  /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
629
628
  className: "text-sm text-text-secondary",
630
629
  children: "Ownership"
631
630
  }), /* @__PURE__ */ q("p", {
632
631
  className: "font-medium capitalize",
633
- children: g.ownershipType || "—"
632
+ children: C.ownershipType || "—"
634
633
  })] })
635
634
  ]
636
635
  })] }),
637
- /* @__PURE__ */ J(S, { children: [/* @__PURE__ */ q(w, { children: /* @__PURE__ */ q(T, { children: "Capacity" }) }), /* @__PURE__ */ q(C, { children: /* @__PURE__ */ J("div", {
636
+ /* @__PURE__ */ J(v, { children: [/* @__PURE__ */ q(b, { children: /* @__PURE__ */ q(x, { children: "Capacity" }) }), /* @__PURE__ */ q(y, { children: /* @__PURE__ */ J("div", {
638
637
  className: "grid grid-cols-1 sm:grid-cols-3 gap-6",
639
638
  children: [
640
639
  /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
@@ -642,49 +641,49 @@ function me() {
642
641
  children: "Weight"
643
642
  }), /* @__PURE__ */ q("p", {
644
643
  className: "text-2xl font-bold",
645
- children: g.capacity.weight === void 0 ? "—" : p(g.capacity.weight)
644
+ children: C.capacity.weight === void 0 ? "—" : B(C.capacity.weight)
646
645
  })] }),
647
646
  /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
648
647
  className: "text-sm text-text-secondary",
649
648
  children: "Volume"
650
649
  }), /* @__PURE__ */ q("p", {
651
650
  className: "text-2xl font-bold",
652
- children: g.capacity.volume === void 0 ? "—" : `${g.capacity.volume} m³`
651
+ children: C.capacity.volume === void 0 ? "—" : `${C.capacity.volume} m³`
653
652
  })] }),
654
- g.capacity.pallets && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
653
+ C.capacity.pallets && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
655
654
  className: "text-sm text-text-secondary",
656
655
  children: "Pallets"
657
656
  }), /* @__PURE__ */ q("p", {
658
657
  className: "text-2xl font-bold",
659
- children: g.capacity.pallets
658
+ children: C.capacity.pallets
660
659
  })] })
661
660
  ]
662
661
  }) })] }),
663
- /* @__PURE__ */ q(U, {
662
+ /* @__PURE__ */ q(te, {
664
663
  entityType: "vehicle",
665
- entityId: g.id
664
+ entityId: C.id
666
665
  })
667
666
  ]
668
667
  }), /* @__PURE__ */ J("div", {
669
668
  className: "space-y-6",
670
669
  children: [
671
- /* @__PURE__ */ J(S, { children: [/* @__PURE__ */ q(w, { children: /* @__PURE__ */ J(T, {
670
+ /* @__PURE__ */ J(v, { children: [/* @__PURE__ */ q(b, { children: /* @__PURE__ */ J(x, {
672
671
  className: "flex items-center gap-2",
673
- children: [/* @__PURE__ */ q(t, { size: 18 }), " Fuel & Mileage"]
674
- }) }), /* @__PURE__ */ J(C, {
672
+ children: [/* @__PURE__ */ q(r, { size: 18 }), " Fuel & Mileage"]
673
+ }) }), /* @__PURE__ */ J(y, {
675
674
  className: "space-y-4",
676
675
  children: [
677
- g.fuelLevel !== void 0 && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ J("div", {
676
+ C.fuelLevel !== void 0 && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ J("div", {
678
677
  className: "flex justify-between text-sm mb-2",
679
- children: [/* @__PURE__ */ q("span", { children: "Fuel Level" }), /* @__PURE__ */ J("span", { children: [g.fuelLevel, "%"] })]
680
- }), /* @__PURE__ */ q(O, { value: g.fuelLevel })] }),
681
- g.mileage !== void 0 && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
678
+ children: [/* @__PURE__ */ q("span", { children: "Fuel Level" }), /* @__PURE__ */ J("span", { children: [C.fuelLevel, "%"] })]
679
+ }), /* @__PURE__ */ q(w, { value: C.fuelLevel })] }),
680
+ C.mileage !== void 0 && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
682
681
  className: "text-sm text-text-secondary",
683
682
  children: "Total Mileage"
684
683
  }), /* @__PURE__ */ J("p", {
685
684
  className: "text-2xl font-bold",
686
685
  children: [
687
- g.mileage.toLocaleString(),
686
+ C.mileage.toLocaleString(),
688
687
  " ",
689
688
  /* @__PURE__ */ q("span", {
690
689
  className: "text-sm font-normal",
@@ -692,28 +691,28 @@ function me() {
692
691
  })
693
692
  ]
694
693
  })] }),
695
- (g.fuelType || g.fuelEfficiencyLPer100Km !== void 0) && /* @__PURE__ */ J("div", {
694
+ (C.fuelType || C.fuelEfficiencyLPer100Km !== void 0) && /* @__PURE__ */ J("div", {
696
695
  className: "grid grid-cols-2 gap-4",
697
- children: [g.fuelType && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
696
+ children: [C.fuelType && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
698
697
  className: "text-sm text-text-secondary",
699
698
  children: "Fuel Type"
700
699
  }), /* @__PURE__ */ q("p", {
701
700
  className: "font-medium",
702
- children: g.fuelType
703
- })] }), g.fuelEfficiencyLPer100Km !== void 0 && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
701
+ children: C.fuelType
702
+ })] }), C.fuelEfficiencyLPer100Km !== void 0 && /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q("p", {
704
703
  className: "text-sm text-text-secondary",
705
704
  children: "Efficiency"
706
705
  }), /* @__PURE__ */ J("p", {
707
706
  className: "font-medium",
708
- children: [g.fuelEfficiencyLPer100Km, " L/100km"]
707
+ children: [C.fuelEfficiencyLPer100Km, " L/100km"]
709
708
  })] })]
710
709
  })
711
710
  ]
712
711
  })] }),
713
- /* @__PURE__ */ J(S, { children: [/* @__PURE__ */ q(w, { children: /* @__PURE__ */ J(T, {
712
+ /* @__PURE__ */ J(v, { children: [/* @__PURE__ */ q(b, { children: /* @__PURE__ */ J(x, {
714
713
  className: "flex items-center gap-2",
715
- children: [/* @__PURE__ */ q(l, { size: 18 }), " Assigned Driver"]
716
- }) }), /* @__PURE__ */ q(C, {
714
+ children: [/* @__PURE__ */ q(i, { size: 18 }), " Assigned Driver"]
715
+ }) }), /* @__PURE__ */ q(y, {
717
716
  className: "space-y-4",
718
717
  children: K ? /* @__PURE__ */ q("p", {
719
718
  className: "text-sm text-text-secondary",
@@ -726,7 +725,7 @@ function me() {
726
725
  children: [/* @__PURE__ */ q("p", {
727
726
  className: "text-sm text-text-secondary",
728
727
  children: "No driver is assigned to this vehicle yet."
729
- }), /* @__PURE__ */ q(x, {
728
+ }), /* @__PURE__ */ q(_, {
730
729
  variant: "outline",
731
730
  size: "sm",
732
731
  onClick: () => $("fleet/drivers"),
@@ -740,7 +739,7 @@ function me() {
740
739
  onKeyDown: (t) => {
741
740
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), $(`fleet/drivers/${e.id}`));
742
741
  },
743
- children: [/* @__PURE__ */ q(y, { children: /* @__PURE__ */ q(b, { children: m(e.fullName) }) }), /* @__PURE__ */ J("div", {
742
+ children: [/* @__PURE__ */ q(h, { children: /* @__PURE__ */ q(g, { children: V(e.fullName) }) }), /* @__PURE__ */ J("div", {
744
743
  className: "min-w-0 space-y-1",
745
744
  children: [
746
745
  /* @__PURE__ */ q("p", {
@@ -751,7 +750,7 @@ function me() {
751
750
  className: "text-xs text-text-secondary",
752
751
  children: e.employeeId
753
752
  }),
754
- /* @__PURE__ */ q(R, {
753
+ /* @__PURE__ */ q(p, {
755
754
  status: e.status,
756
755
  type: "driver",
757
756
  size: "sm"
@@ -759,7 +758,7 @@ function me() {
759
758
  e.email && /* @__PURE__ */ J("p", {
760
759
  className: "flex items-center gap-1.5 truncate text-sm text-text-secondary",
761
760
  children: [
762
- /* @__PURE__ */ q(n, { size: 13 }),
761
+ /* @__PURE__ */ q(s, { size: 13 }),
763
762
  " ",
764
763
  e.email
765
764
  ]
@@ -767,7 +766,7 @@ function me() {
767
766
  e.phone && /* @__PURE__ */ J("p", {
768
767
  className: "flex items-center gap-1.5 text-sm text-text-secondary",
769
768
  children: [
770
- /* @__PURE__ */ q(i, { size: 13 }),
769
+ /* @__PURE__ */ q(c, { size: 13 }),
771
770
  " ",
772
771
  e.phone
773
772
  ]
@@ -776,22 +775,22 @@ function me() {
776
775
  })]
777
776
  }, e.id))
778
777
  })] }),
779
- /* @__PURE__ */ q(te, {
780
- vehicle: g,
781
- t: L,
778
+ /* @__PURE__ */ q(L, {
779
+ vehicle: C,
780
+ t: P,
782
781
  onRecord: async (e) => {
783
- await A(g.id, e), M(L("movethewheels.vehicles.service.saved", "Service recorded.")), k();
782
+ await O(C.id, e), A(P("movethewheels.vehicles.service.saved", "Service recorded.")), D();
784
783
  }
785
784
  }),
786
- g.currentLocation && /* @__PURE__ */ J(S, { children: [/* @__PURE__ */ q(w, { children: /* @__PURE__ */ J(T, {
785
+ C.currentLocation && /* @__PURE__ */ J(v, { children: [/* @__PURE__ */ q(b, { children: /* @__PURE__ */ J(x, {
787
786
  className: "flex items-center gap-2",
788
- children: [/* @__PURE__ */ q(r, { size: 18 }), " Current Location"]
789
- }) }), /* @__PURE__ */ J(C, { children: [/* @__PURE__ */ q("p", {
787
+ children: [/* @__PURE__ */ q(n, { size: 18 }), " Current Location"]
788
+ }) }), /* @__PURE__ */ J(y, { children: [/* @__PURE__ */ q("p", {
790
789
  className: "text-sm",
791
- children: g.currentLocation.address || "Location updating..."
790
+ children: C.currentLocation.address || "Location updating..."
792
791
  }), /* @__PURE__ */ q("p", {
793
792
  className: "text-xs text-text-secondary mt-1",
794
- children: g.currentLocation.timestamp ? `Updated ${f(g.currentLocation.timestamp, "relative")}` : "Update time not recorded"
793
+ children: C.currentLocation.timestamp ? `Updated ${z(C.currentLocation.timestamp, "relative")}` : "Update time not recorded"
795
794
  })] })] })
796
795
  ]
797
796
  })]
@@ -799,5 +798,4 @@ function me() {
799
798
  ]
800
799
  }) : /* @__PURE__ */ q(pe, {});
801
800
  }
802
- //#endregion
803
801
  export { me as default };