@burdenoff/microfe-movethewheels 2026.1108.5 → 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 (839) 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/generated/wspace-operations.d.ts +91 -0
  109. package/dist/generated/wspace-types.d.ts +43259 -9124
  110. package/dist/hooks/index.js +12 -11
  111. package/dist/hooks/useAnalytics.js +3 -3
  112. package/dist/hooks/useCarrierIntegrations.js +1 -2
  113. package/dist/hooks/useConsolidationAction.js +12 -13
  114. package/dist/hooks/useConsumedFuelPreview.js +17 -18
  115. package/dist/hooks/useContainerCondition.js +4 -3
  116. package/dist/hooks/useContainerLifecycle.js +70 -80
  117. package/dist/hooks/useCustomers.js +17 -16
  118. package/dist/hooks/useDebouncedValue.js +1 -2
  119. package/dist/hooks/useDemandForecast.js +1 -2
  120. package/dist/hooks/useDispatchPlan.js +3 -3
  121. package/dist/hooks/useDocumentExtractions.js +12 -13
  122. package/dist/hooks/useDriverDay.js +3 -4
  123. package/dist/hooks/useEmptyReuseAction.js +1 -2
  124. package/dist/hooks/useEntityDocuments.js +25 -27
  125. package/dist/hooks/useEntityExport.js +7 -8
  126. package/dist/hooks/useEntityImport.js +1 -2
  127. package/dist/hooks/useEpod.js +79 -81
  128. package/dist/hooks/useFleet.js +70 -74
  129. package/dist/hooks/useFleetIntelligence.js +1 -2
  130. package/dist/hooks/useForecastModelChoices.js +1 -2
  131. package/dist/hooks/useFreightRecoveryAction.js +15 -16
  132. package/dist/hooks/useInventory.js +59 -60
  133. package/dist/hooks/useInventoryCoverPlan.js +2 -3
  134. package/dist/hooks/useInvoiceComparisonRecovery.js +52 -52
  135. package/dist/hooks/useInvoiceReviewPermissions.js +1 -2
  136. package/dist/hooks/useMarketplace.js +1 -2
  137. package/dist/hooks/useMultiModalShipments.js +1 -2
  138. package/dist/hooks/useOrderDispatch.js +6 -5
  139. package/dist/hooks/useOrders.js +44 -46
  140. package/dist/hooks/usePalletPreview.js +19 -20
  141. package/dist/hooks/useProcedureAction.js +24 -25
  142. package/dist/hooks/useProcedureSelection.js +6 -7
  143. package/dist/hooks/useRefetchOnLeaveEdit.js +1 -2
  144. package/dist/hooks/useReuseRecoveryAction.js +26 -27
  145. package/dist/hooks/useRoutes.js +100 -63
  146. package/dist/hooks/useScenarioPlanning.js +20 -21
  147. package/dist/hooks/useShipmentDecision.js +1 -2
  148. package/dist/hooks/useShipmentPermissions.js +1 -2
  149. package/dist/hooks/useShipmentRisk.js +12 -14
  150. package/dist/hooks/useShipmentStatusAuthority.js +7 -5
  151. package/dist/hooks/useShippingCarriers.js +1 -2
  152. package/dist/hooks/useTracking.js +53 -52
  153. package/dist/hooks/useTrackingEventQuality.js +26 -27
  154. package/dist/index.js +15 -15
  155. package/dist/movethewheels/hooks/useRoutes.d.ts +3 -2
  156. package/dist/movethewheels/store/movethewheelsStore.d.ts +1 -1
  157. package/dist/movethewheels/types/index.d.ts +21 -1
  158. package/dist/node_modules/@react-leaflet/core/lib/attribution.js +1 -2
  159. package/dist/node_modules/@react-leaflet/core/lib/component.js +1 -2
  160. package/dist/node_modules/@react-leaflet/core/lib/context.js +0 -1
  161. package/dist/node_modules/@react-leaflet/core/lib/div-overlay.js +1 -2
  162. package/dist/node_modules/@react-leaflet/core/lib/element.js +1 -2
  163. package/dist/node_modules/@react-leaflet/core/lib/events.js +1 -2
  164. package/dist/node_modules/@react-leaflet/core/lib/generic.js +9 -6
  165. package/dist/node_modules/@react-leaflet/core/lib/grid-layer.js +1 -2
  166. package/dist/node_modules/@react-leaflet/core/lib/layer.js +1 -2
  167. package/dist/node_modules/@react-leaflet/core/lib/pane.js +1 -2
  168. package/dist/node_modules/@react-leaflet/core/lib/path.js +6 -7
  169. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  170. package/dist/node_modules/d3-array/dist/d3-array.js +202 -0
  171. package/dist/node_modules/d3-color/dist/d3-color.js +386 -0
  172. package/dist/node_modules/d3-format/dist/d3-format.js +184 -0
  173. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +183 -0
  174. package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +38 -13
  175. package/dist/node_modules/d3-scale/dist/d3-scale.js +620 -0
  176. package/dist/node_modules/d3-shape/dist/d3-shape.js +899 -0
  177. package/dist/node_modules/d3-time/dist/d3-time.js +239 -0
  178. package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +228 -173
  179. package/dist/node_modules/decimal.js-light/decimal.js +33 -30
  180. package/dist/node_modules/eventemitter3/index.js +2 -3
  181. package/dist/node_modules/fast-equals/dist/es/index.js +89 -72
  182. package/dist/node_modules/leaflet/dist/leaflet-src.js +114 -167
  183. package/dist/node_modules/lodash/_DataView.js +4 -5
  184. package/dist/node_modules/lodash/_Hash.js +1 -2
  185. package/dist/node_modules/lodash/_ListCache.js +1 -2
  186. package/dist/node_modules/lodash/_Map.js +4 -5
  187. package/dist/node_modules/lodash/_MapCache.js +1 -2
  188. package/dist/node_modules/lodash/_Promise.js +4 -5
  189. package/dist/node_modules/lodash/_Set.js +4 -5
  190. package/dist/node_modules/lodash/_SetCache.js +1 -2
  191. package/dist/node_modules/lodash/_Stack.js +1 -2
  192. package/dist/node_modules/lodash/_Symbol.js +1 -2
  193. package/dist/node_modules/lodash/_Uint8Array.js +1 -2
  194. package/dist/node_modules/lodash/_WeakMap.js +4 -5
  195. package/dist/node_modules/lodash/_apply.js +1 -2
  196. package/dist/node_modules/lodash/_arrayEvery.js +1 -2
  197. package/dist/node_modules/lodash/_arrayFilter.js +1 -2
  198. package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
  199. package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
  200. package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
  201. package/dist/node_modules/lodash/_arrayMap.js +1 -2
  202. package/dist/node_modules/lodash/_arrayPush.js +1 -2
  203. package/dist/node_modules/lodash/_arraySome.js +1 -2
  204. package/dist/node_modules/lodash/_asciiToArray.js +1 -2
  205. package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
  206. package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
  207. package/dist/node_modules/lodash/_baseEach.js +1 -2
  208. package/dist/node_modules/lodash/_baseEvery.js +1 -2
  209. package/dist/node_modules/lodash/_baseExtremum.js +1 -2
  210. package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
  211. package/dist/node_modules/lodash/_baseFlatten.js +1 -2
  212. package/dist/node_modules/lodash/_baseFor.js +1 -2
  213. package/dist/node_modules/lodash/_baseForOwn.js +4 -5
  214. package/dist/node_modules/lodash/_baseGet.js +1 -2
  215. package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
  216. package/dist/node_modules/lodash/_baseGetTag.js +1 -2
  217. package/dist/node_modules/lodash/_baseGt.js +1 -2
  218. package/dist/node_modules/lodash/_baseHasIn.js +1 -2
  219. package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
  220. package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
  221. package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
  222. package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
  223. package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
  224. package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
  225. package/dist/node_modules/lodash/_baseIsNative.js +5 -6
  226. package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
  227. package/dist/node_modules/lodash/_baseIteratee.js +6 -7
  228. package/dist/node_modules/lodash/_baseKeys.js +1 -2
  229. package/dist/node_modules/lodash/_baseLt.js +1 -2
  230. package/dist/node_modules/lodash/_baseMap.js +4 -5
  231. package/dist/node_modules/lodash/_baseMatches.js +1 -2
  232. package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
  233. package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
  234. package/dist/node_modules/lodash/_baseProperty.js +1 -2
  235. package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
  236. package/dist/node_modules/lodash/_baseRange.js +1 -2
  237. package/dist/node_modules/lodash/_baseRest.js +1 -2
  238. package/dist/node_modules/lodash/_baseSetToString.js +5 -6
  239. package/dist/node_modules/lodash/_baseSlice.js +1 -2
  240. package/dist/node_modules/lodash/_baseSome.js +1 -2
  241. package/dist/node_modules/lodash/_baseSortBy.js +1 -2
  242. package/dist/node_modules/lodash/_baseTimes.js +1 -2
  243. package/dist/node_modules/lodash/_baseToString.js +6 -7
  244. package/dist/node_modules/lodash/_baseTrim.js +1 -2
  245. package/dist/node_modules/lodash/_baseUnary.js +1 -2
  246. package/dist/node_modules/lodash/_baseUniq.js +7 -8
  247. package/dist/node_modules/lodash/_cacheHas.js +1 -2
  248. package/dist/node_modules/lodash/_castPath.js +1 -2
  249. package/dist/node_modules/lodash/_castSlice.js +1 -2
  250. package/dist/node_modules/lodash/_compareAscending.js +1 -2
  251. package/dist/node_modules/lodash/_compareMultiple.js +1 -2
  252. package/dist/node_modules/lodash/_coreJsData.js +1 -2
  253. package/dist/node_modules/lodash/_createBaseEach.js +1 -2
  254. package/dist/node_modules/lodash/_createBaseFor.js +1 -2
  255. package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
  256. package/dist/node_modules/lodash/_createFind.js +5 -6
  257. package/dist/node_modules/lodash/_createRange.js +4 -5
  258. package/dist/node_modules/lodash/_createSet.js +6 -7
  259. package/dist/node_modules/lodash/_defineProperty.js +1 -2
  260. package/dist/node_modules/lodash/_equalArrays.js +1 -2
  261. package/dist/node_modules/lodash/_equalByTag.js +5 -6
  262. package/dist/node_modules/lodash/_equalObjects.js +1 -2
  263. package/dist/node_modules/lodash/_freeGlobal.js +1 -2
  264. package/dist/node_modules/lodash/_getAllKeys.js +1 -2
  265. package/dist/node_modules/lodash/_getMapData.js +1 -2
  266. package/dist/node_modules/lodash/_getMatchData.js +4 -5
  267. package/dist/node_modules/lodash/_getNative.js +1 -2
  268. package/dist/node_modules/lodash/_getPrototype.js +1 -2
  269. package/dist/node_modules/lodash/_getRawTag.js +1 -2
  270. package/dist/node_modules/lodash/_getSymbols.js +1 -2
  271. package/dist/node_modules/lodash/_getTag.js +9 -10
  272. package/dist/node_modules/lodash/_getValue.js +1 -2
  273. package/dist/node_modules/lodash/_hasPath.js +8 -9
  274. package/dist/node_modules/lodash/_hasUnicode.js +1 -2
  275. package/dist/node_modules/lodash/_hashClear.js +1 -2
  276. package/dist/node_modules/lodash/_hashDelete.js +1 -2
  277. package/dist/node_modules/lodash/_hashGet.js +1 -2
  278. package/dist/node_modules/lodash/_hashHas.js +1 -2
  279. package/dist/node_modules/lodash/_hashSet.js +1 -2
  280. package/dist/node_modules/lodash/_isFlattenable.js +5 -6
  281. package/dist/node_modules/lodash/_isIndex.js +6 -7
  282. package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
  283. package/dist/node_modules/lodash/_isKey.js +1 -2
  284. package/dist/node_modules/lodash/_isKeyable.js +1 -2
  285. package/dist/node_modules/lodash/_isMasked.js +1 -2
  286. package/dist/node_modules/lodash/_isPrototype.js +1 -2
  287. package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
  288. package/dist/node_modules/lodash/_listCacheClear.js +1 -2
  289. package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
  290. package/dist/node_modules/lodash/_listCacheGet.js +1 -2
  291. package/dist/node_modules/lodash/_listCacheHas.js +1 -2
  292. package/dist/node_modules/lodash/_listCacheSet.js +1 -2
  293. package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
  294. package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
  295. package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
  296. package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
  297. package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
  298. package/dist/node_modules/lodash/_mapToArray.js +1 -2
  299. package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
  300. package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
  301. package/dist/node_modules/lodash/_nativeCreate.js +1 -2
  302. package/dist/node_modules/lodash/_nativeKeys.js +1 -2
  303. package/dist/node_modules/lodash/_nodeUtil.js +1 -2
  304. package/dist/node_modules/lodash/_objectToString.js +1 -2
  305. package/dist/node_modules/lodash/_overArg.js +1 -2
  306. package/dist/node_modules/lodash/_overRest.js +1 -2
  307. package/dist/node_modules/lodash/_root.js +1 -2
  308. package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
  309. package/dist/node_modules/lodash/_setCacheHas.js +1 -2
  310. package/dist/node_modules/lodash/_setToArray.js +1 -2
  311. package/dist/node_modules/lodash/_setToString.js +1 -2
  312. package/dist/node_modules/lodash/_shortOut.js +8 -9
  313. package/dist/node_modules/lodash/_stackClear.js +1 -2
  314. package/dist/node_modules/lodash/_stackDelete.js +1 -2
  315. package/dist/node_modules/lodash/_stackGet.js +1 -2
  316. package/dist/node_modules/lodash/_stackHas.js +1 -2
  317. package/dist/node_modules/lodash/_stackSet.js +1 -2
  318. package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
  319. package/dist/node_modules/lodash/_stringToArray.js +4 -5
  320. package/dist/node_modules/lodash/_stringToPath.js +1 -2
  321. package/dist/node_modules/lodash/_toKey.js +2 -3
  322. package/dist/node_modules/lodash/_toSource.js +1 -2
  323. package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
  324. package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
  325. package/dist/node_modules/lodash/constant.js +1 -2
  326. package/dist/node_modules/lodash/debounce.js +1 -2
  327. package/dist/node_modules/lodash/eq.js +1 -2
  328. package/dist/node_modules/lodash/every.js +7 -8
  329. package/dist/node_modules/lodash/find.js +1 -2
  330. package/dist/node_modules/lodash/findIndex.js +4 -5
  331. package/dist/node_modules/lodash/flatMap.js +1 -2
  332. package/dist/node_modules/lodash/get.js +1 -2
  333. package/dist/node_modules/lodash/hasIn.js +1 -2
  334. package/dist/node_modules/lodash/identity.js +1 -2
  335. package/dist/node_modules/lodash/isArguments.js +4 -5
  336. package/dist/node_modules/lodash/isArray.js +1 -2
  337. package/dist/node_modules/lodash/isArrayLike.js +1 -2
  338. package/dist/node_modules/lodash/isBoolean.js +1 -2
  339. package/dist/node_modules/lodash/isBuffer.js +1 -2
  340. package/dist/node_modules/lodash/isEqual.js +1 -2
  341. package/dist/node_modules/lodash/isFunction.js +1 -2
  342. package/dist/node_modules/lodash/isLength.js +4 -6
  343. package/dist/node_modules/lodash/isNaN.js +1 -2
  344. package/dist/node_modules/lodash/isNil.js +1 -2
  345. package/dist/node_modules/lodash/isNumber.js +1 -2
  346. package/dist/node_modules/lodash/isObject.js +1 -2
  347. package/dist/node_modules/lodash/isObjectLike.js +1 -2
  348. package/dist/node_modules/lodash/isPlainObject.js +4 -5
  349. package/dist/node_modules/lodash/isString.js +4 -5
  350. package/dist/node_modules/lodash/isSymbol.js +1 -2
  351. package/dist/node_modules/lodash/isTypedArray.js +1 -2
  352. package/dist/node_modules/lodash/keys.js +1 -2
  353. package/dist/node_modules/lodash/last.js +1 -2
  354. package/dist/node_modules/lodash/map.js +6 -7
  355. package/dist/node_modules/lodash/mapValues.js +4 -5
  356. package/dist/node_modules/lodash/max.js +5 -6
  357. package/dist/node_modules/lodash/maxBy.js +5 -6
  358. package/dist/node_modules/lodash/memoize.js +1 -2
  359. package/dist/node_modules/lodash/min.js +5 -6
  360. package/dist/node_modules/lodash/minBy.js +4 -5
  361. package/dist/node_modules/lodash/noop.js +1 -2
  362. package/dist/node_modules/lodash/now.js +1 -2
  363. package/dist/node_modules/lodash/property.js +6 -7
  364. package/dist/node_modules/lodash/range.js +1 -2
  365. package/dist/node_modules/lodash/some.js +7 -8
  366. package/dist/node_modules/lodash/sortBy.js +1 -2
  367. package/dist/node_modules/lodash/stubArray.js +1 -2
  368. package/dist/node_modules/lodash/stubFalse.js +1 -2
  369. package/dist/node_modules/lodash/throttle.js +4 -5
  370. package/dist/node_modules/lodash/toFinite.js +2 -3
  371. package/dist/node_modules/lodash/toInteger.js +1 -2
  372. package/dist/node_modules/lodash/toNumber.js +4 -5
  373. package/dist/node_modules/lodash/toString.js +1 -2
  374. package/dist/node_modules/lodash/uniqBy.js +1 -2
  375. package/dist/node_modules/lodash/upperFirst.js +1 -2
  376. package/dist/node_modules/lucide-react/dist/esm/Icon.js +6 -7
  377. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +3 -4
  378. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -3
  379. package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +3 -4
  380. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-right.js +3 -4
  381. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-up.js +3 -4
  382. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down.js +3 -4
  383. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left-right.js +3 -4
  384. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +3 -4
  385. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +3 -4
  386. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.js +3 -4
  387. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-right.js +3 -4
  388. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up.js +3 -4
  389. package/dist/node_modules/lucide-react/dist/esm/icons/badge-check.js +3 -4
  390. package/dist/node_modules/lucide-react/dist/esm/icons/bell-ring.js +3 -4
  391. package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +3 -4
  392. package/dist/node_modules/lucide-react/dist/esm/icons/bot.js +3 -4
  393. package/dist/node_modules/lucide-react/dist/esm/icons/box.js +3 -4
  394. package/dist/node_modules/lucide-react/dist/esm/icons/boxes.js +3 -4
  395. package/dist/node_modules/lucide-react/dist/esm/icons/building-2.js +3 -4
  396. package/dist/node_modules/lucide-react/dist/esm/icons/building.js +3 -4
  397. package/dist/node_modules/lucide-react/dist/esm/icons/calculator.js +3 -4
  398. package/dist/node_modules/lucide-react/dist/esm/icons/calendar-clock.js +3 -4
  399. package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +3 -4
  400. package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +3 -4
  401. package/dist/node_modules/lucide-react/dist/esm/icons/car.js +3 -4
  402. package/dist/node_modules/lucide-react/dist/esm/icons/chart-column.js +3 -4
  403. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +3 -4
  404. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +3 -4
  405. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +3 -4
  406. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +3 -4
  407. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +3 -4
  408. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +3 -4
  409. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +3 -4
  410. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js +3 -4
  411. package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +3 -4
  412. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check-big.js +3 -4
  413. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +3 -4
  414. package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +3 -4
  415. package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +3 -4
  416. package/dist/node_modules/lucide-react/dist/esm/icons/clock.js +3 -4
  417. package/dist/node_modules/lucide-react/dist/esm/icons/cloud-download.js +3 -4
  418. package/dist/node_modules/lucide-react/dist/esm/icons/coffee.js +3 -4
  419. package/dist/node_modules/lucide-react/dist/esm/icons/copy.js +3 -4
  420. package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +3 -4
  421. package/dist/node_modules/lucide-react/dist/esm/icons/dollar-sign.js +3 -4
  422. package/dist/node_modules/lucide-react/dist/esm/icons/download.js +3 -4
  423. package/dist/node_modules/lucide-react/dist/esm/icons/external-link.js +3 -4
  424. package/dist/node_modules/lucide-react/dist/esm/icons/file-chart-column-increasing.js +3 -4
  425. package/dist/node_modules/lucide-react/dist/esm/icons/file-check.js +3 -4
  426. package/dist/node_modules/lucide-react/dist/esm/icons/file-search.js +3 -4
  427. package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +3 -4
  428. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +3 -4
  429. package/dist/node_modules/lucide-react/dist/esm/icons/file-up.js +3 -4
  430. package/dist/node_modules/lucide-react/dist/esm/icons/filter.js +3 -4
  431. package/dist/node_modules/lucide-react/dist/esm/icons/fuel.js +3 -4
  432. package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +3 -4
  433. package/dist/node_modules/lucide-react/dist/esm/icons/git-compare.js +3 -4
  434. package/dist/node_modules/lucide-react/dist/esm/icons/history.js +3 -4
  435. package/dist/node_modules/lucide-react/dist/esm/icons/info.js +3 -4
  436. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +3 -4
  437. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +3 -4
  438. package/dist/node_modules/lucide-react/dist/esm/icons/leaf.js +3 -4
  439. package/dist/node_modules/lucide-react/dist/esm/icons/list.js +3 -4
  440. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +3 -4
  441. package/dist/node_modules/lucide-react/dist/esm/icons/lock.js +3 -4
  442. package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +3 -4
  443. package/dist/node_modules/lucide-react/dist/esm/icons/map-pin.js +3 -4
  444. package/dist/node_modules/lucide-react/dist/esm/icons/map.js +3 -4
  445. package/dist/node_modules/lucide-react/dist/esm/icons/navigation.js +3 -4
  446. package/dist/node_modules/lucide-react/dist/esm/icons/package-plus.js +3 -4
  447. package/dist/node_modules/lucide-react/dist/esm/icons/package.js +3 -4
  448. package/dist/node_modules/lucide-react/dist/esm/icons/pause.js +3 -4
  449. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +3 -4
  450. package/dist/node_modules/lucide-react/dist/esm/icons/pencil.js +3 -4
  451. package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +3 -4
  452. package/dist/node_modules/lucide-react/dist/esm/icons/plane.js +3 -4
  453. package/dist/node_modules/lucide-react/dist/esm/icons/play.js +3 -4
  454. package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +3 -4
  455. package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +3 -4
  456. package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +3 -4
  457. package/dist/node_modules/lucide-react/dist/esm/icons/radio-tower.js +3 -4
  458. package/dist/node_modules/lucide-react/dist/esm/icons/receipt.js +3 -4
  459. package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +3 -4
  460. package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +3 -4
  461. package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +3 -4
  462. package/dist/node_modules/lucide-react/dist/esm/icons/route.js +3 -4
  463. package/dist/node_modules/lucide-react/dist/esm/icons/save.js +3 -4
  464. package/dist/node_modules/lucide-react/dist/esm/icons/scale.js +3 -4
  465. package/dist/node_modules/lucide-react/dist/esm/icons/search.js +3 -4
  466. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +3 -4
  467. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js +3 -4
  468. package/dist/node_modules/lucide-react/dist/esm/icons/ship.js +3 -4
  469. package/dist/node_modules/lucide-react/dist/esm/icons/sigma.js +3 -4
  470. package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js +3 -4
  471. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +3 -4
  472. package/dist/node_modules/lucide-react/dist/esm/icons/square-pen.js +3 -4
  473. package/dist/node_modules/lucide-react/dist/esm/icons/star.js +3 -4
  474. package/dist/node_modules/lucide-react/dist/esm/icons/sticky-note.js +3 -4
  475. package/dist/node_modules/lucide-react/dist/esm/icons/store.js +3 -4
  476. package/dist/node_modules/lucide-react/dist/esm/icons/tag.js +3 -4
  477. package/dist/node_modules/lucide-react/dist/esm/icons/thermometer.js +3 -4
  478. package/dist/node_modules/lucide-react/dist/esm/icons/train-front.js +3 -4
  479. package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +3 -4
  480. package/dist/node_modules/lucide-react/dist/esm/icons/trending-down.js +3 -4
  481. package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +3 -4
  482. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +3 -4
  483. package/dist/node_modules/lucide-react/dist/esm/icons/truck.js +3 -4
  484. package/dist/node_modules/lucide-react/dist/esm/icons/type.js +3 -4
  485. package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +3 -4
  486. package/dist/node_modules/lucide-react/dist/esm/icons/user-check.js +3 -4
  487. package/dist/node_modules/lucide-react/dist/esm/icons/user-minus.js +3 -4
  488. package/dist/node_modules/lucide-react/dist/esm/icons/user-plus.js +3 -4
  489. package/dist/node_modules/lucide-react/dist/esm/icons/user-round.js +3 -4
  490. package/dist/node_modules/lucide-react/dist/esm/icons/user-x.js +3 -4
  491. package/dist/node_modules/lucide-react/dist/esm/icons/user.js +3 -4
  492. package/dist/node_modules/lucide-react/dist/esm/icons/users.js +3 -4
  493. package/dist/node_modules/lucide-react/dist/esm/icons/wand-sparkles.js +3 -4
  494. package/dist/node_modules/lucide-react/dist/esm/icons/warehouse.js +3 -4
  495. package/dist/node_modules/lucide-react/dist/esm/icons/wifi-off.js +3 -4
  496. package/dist/node_modules/lucide-react/dist/esm/icons/wrench.js +3 -4
  497. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +3 -4
  498. package/dist/node_modules/lucide-react/dist/esm/icons/zap.js +3 -4
  499. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +1 -2
  500. package/dist/node_modules/object-assign/index.js +1 -2
  501. package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
  502. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
  503. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
  504. package/dist/node_modules/prop-types/index.js +1 -2
  505. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
  506. package/dist/node_modules/prop-types/lib/has.js +1 -2
  507. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
  508. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
  509. package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
  510. package/dist/node_modules/react-leaflet/lib/MapContainer.js +1 -2
  511. package/dist/node_modules/react-leaflet/lib/Marker.js +7 -8
  512. package/dist/node_modules/react-leaflet/lib/Polyline.js +7 -8
  513. package/dist/node_modules/react-leaflet/lib/Popup.js +7 -7
  514. package/dist/node_modules/react-leaflet/lib/TileLayer.js +12 -12
  515. package/dist/node_modules/react-leaflet/lib/hooks.js +1 -2
  516. package/dist/node_modules/react-smooth/es6/Animate.js +31 -39
  517. package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
  518. package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
  519. package/dist/node_modules/react-smooth/es6/easing.js +1 -2
  520. package/dist/node_modules/react-smooth/es6/index.js +1 -2
  521. package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
  522. package/dist/node_modules/react-smooth/es6/util.js +17 -16
  523. package/dist/node_modules/recharts/es6/cartesian/Area.js +95 -96
  524. package/dist/node_modules/recharts/es6/cartesian/Bar.js +100 -101
  525. package/dist/node_modules/recharts/es6/cartesian/Brush.js +23 -24
  526. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +58 -65
  527. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +33 -34
  528. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +17 -18
  529. package/dist/node_modules/recharts/es6/cartesian/Line.js +76 -77
  530. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +28 -29
  531. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +22 -23
  532. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +28 -29
  533. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +8 -9
  534. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +8 -9
  535. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
  536. package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
  537. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -4
  538. package/dist/node_modules/recharts/es6/chart/AreaChart.js +5 -6
  539. package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
  540. package/dist/node_modules/recharts/es6/chart/LineChart.js +5 -6
  541. package/dist/node_modules/recharts/es6/chart/PieChart.js +11 -12
  542. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
  543. package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
  544. package/dist/node_modules/recharts/es6/component/Cursor.js +16 -17
  545. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +27 -28
  546. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +11 -12
  547. package/dist/node_modules/recharts/es6/component/Label.js +78 -79
  548. package/dist/node_modules/recharts/es6/component/LabelList.js +16 -17
  549. package/dist/node_modules/recharts/es6/component/Legend.js +25 -22
  550. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +14 -15
  551. package/dist/node_modules/recharts/es6/component/Text.js +17 -20
  552. package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
  553. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +1 -2
  554. package/dist/node_modules/recharts/es6/container/Layer.js +3 -4
  555. package/dist/node_modules/recharts/es6/container/Surface.js +3 -4
  556. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +20 -20
  557. package/dist/node_modules/recharts/es6/polar/Pie.js +102 -106
  558. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +28 -29
  559. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +36 -39
  560. package/dist/node_modules/recharts/es6/shape/Cross.js +3 -4
  561. package/dist/node_modules/recharts/es6/shape/Curve.js +38 -49
  562. package/dist/node_modules/recharts/es6/shape/Dot.js +2 -3
  563. package/dist/node_modules/recharts/es6/shape/Polygon.js +3 -4
  564. package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
  565. package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
  566. package/dist/node_modules/recharts/es6/shape/Symbols.js +26 -34
  567. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
  568. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +20 -21
  569. package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
  570. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +32 -33
  571. package/dist/node_modules/recharts/es6/util/ChartUtils.js +231 -236
  572. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
  573. package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
  574. package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
  575. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
  576. package/dist/node_modules/recharts/es6/util/Events.js +0 -1
  577. package/dist/node_modules/recharts/es6/util/Global.js +0 -1
  578. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
  579. package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
  580. package/dist/node_modules/recharts/es6/util/PolarUtils.js +5 -6
  581. package/dist/node_modules/recharts/es6/util/ReactUtils.js +10 -11
  582. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +4 -5
  583. package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
  584. package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
  585. package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
  586. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
  587. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
  588. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
  589. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
  590. package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
  591. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
  592. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
  593. package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
  594. package/dist/node_modules/recharts/es6/util/types.js +1 -2
  595. package/dist/node_modules/recharts/node_modules/react-is/cjs/react-is.development.js +31 -32
  596. package/dist/node_modules/recharts/node_modules/react-is/cjs/react-is.production.min.js +1 -2
  597. package/dist/node_modules/recharts/node_modules/react-is/index.js +2 -3
  598. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
  599. package/dist/node_modules/recharts-scale/es6/index.js +1 -1
  600. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
  601. package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
  602. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
  603. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
  604. package/dist/node_modules/victory-vendor/es/d3-scale.js +28 -45
  605. package/dist/node_modules/zustand/esm/middleware.js +209 -112
  606. package/dist/pages/AnalyticsPage.js +41 -42
  607. package/dist/pages/ConsolidationPage.js +8 -9
  608. package/dist/pages/ConsumedFuelPreviewPage.js +60 -61
  609. package/dist/pages/ContainerConditionPage.js +49 -50
  610. package/dist/pages/ContainersPage.js +53 -53
  611. package/dist/pages/CreateOrderPage.js +134 -144
  612. package/dist/pages/CustomerDetailsPage.js +342 -345
  613. package/dist/pages/CustomersPage.js +36 -37
  614. package/dist/pages/DashboardPage.js +92 -93
  615. package/dist/pages/DeliveryCapturePage.js +199 -200
  616. package/dist/pages/DispatchPlanPage.js +94 -95
  617. package/dist/pages/DriverDetailsPage.js +393 -399
  618. package/dist/pages/DriversPage.js +64 -65
  619. package/dist/pages/EmptyReusePage.js +320 -321
  620. package/dist/pages/FinancePage.js +72 -70
  621. package/dist/pages/FleetPage.js +88 -89
  622. package/dist/pages/FreeTimePage.js +92 -92
  623. package/dist/pages/FreightEstimatePage.js +92 -93
  624. package/dist/pages/FreightInvoicePage.js +123 -124
  625. package/dist/pages/ImportExportPage.js +173 -178
  626. package/dist/pages/IntegrationsPage.js +264 -267
  627. package/dist/pages/InventoryPage.js +233 -234
  628. package/dist/pages/LiveTrackingPage.js +120 -121
  629. package/dist/pages/LogisticsProceduresPage.js +10 -11
  630. package/dist/pages/MarketplacePage.js +170 -171
  631. package/dist/pages/MultiModalShipmentPage.js +172 -177
  632. package/dist/pages/OrderDetailsPage.js +317 -318
  633. package/dist/pages/OrdersListPage.js +163 -164
  634. package/dist/pages/PalletPreviewPage.js +113 -114
  635. package/dist/pages/PendingPickPage.js +32 -33
  636. package/dist/pages/ProductDetailsPage.js +164 -166
  637. package/dist/pages/ProductsPage.js +39 -40
  638. package/dist/pages/ReportsPage.js +315 -316
  639. package/dist/pages/RouteDetailsPage.js +425 -357
  640. package/dist/pages/RoutesPage.js +39 -40
  641. package/dist/pages/SettingsPage.js +87 -88
  642. package/dist/pages/ShipmentStatusAuthorityPage.js +67 -67
  643. package/dist/pages/ShippingRatesPage.js +31 -32
  644. package/dist/pages/StockBindingPage.js +39 -40
  645. package/dist/pages/StockObservationsPage.js +23 -24
  646. package/dist/pages/TrackingEventQualityPage.js +30 -31
  647. package/dist/pages/TrackingPage.js +88 -89
  648. package/dist/pages/TripUtilizationPage.js +24 -25
  649. package/dist/pages/VehicleDetailsPage.js +241 -243
  650. package/dist/pages/VehiclesPage.js +59 -60
  651. package/dist/pages/WarehouseDetailsPage.js +151 -156
  652. package/dist/pages/WarehousesPage.js +33 -34
  653. package/dist/providers/ModuleSettingsProvider.js +1 -2
  654. package/dist/providers/MoveTheWheelsProvider.js +2 -7
  655. package/dist/services/createSandboxAssistantTransport.js +1 -2
  656. package/dist/shared/hooks/useTr.js +1 -2
  657. package/dist/src/generated/consolidation-operations.js +1 -2
  658. package/dist/src/generated/consumed-fuel-preview-operations.js +1 -2
  659. package/dist/src/generated/container-condition-operations.js +1 -2
  660. package/dist/src/generated/container-operations.js +1 -2
  661. package/dist/src/generated/empty-reuse-operations.js +1 -2
  662. package/dist/src/generated/free-time-operations.js +1 -2
  663. package/dist/src/generated/freight-cost-operations.js +1 -2
  664. package/dist/src/generated/freight-invoice-operations.js +1 -2
  665. package/dist/src/generated/logistics-procedure-operations.js +1 -2
  666. package/dist/src/generated/pallet-preview-operations.js +1 -2
  667. package/dist/src/generated/pending-pick-operations.js +1 -2
  668. package/dist/src/generated/shipment-status-authority-operations.js +1 -2
  669. package/dist/src/generated/stock-binding-operations.js +1 -2
  670. package/dist/src/generated/stock-observation-operations.js +1 -2
  671. package/dist/src/generated/tracking-quality-operations.js +1 -2
  672. package/dist/src/generated/trip-utilization-operations.js +1 -2
  673. package/dist/src/generated/wspace-operations.js +1 -2
  674. package/dist/store/movethewheelsStore.js +1 -2
  675. package/dist/utils/carrierIntegrations.js +4 -5
  676. package/dist/utils/cn.js +2 -3
  677. package/dist/utils/consolidationHistoryTarget.js +1 -2
  678. package/dist/utils/consolidationInput.js +1 -2
  679. package/dist/utils/consolidationLot.js +1 -2
  680. package/dist/utils/consolidationPins.js +1 -2
  681. package/dist/utils/consolidationRecovery.js +1 -2
  682. package/dist/utils/consolidationReportHead.js +1 -2
  683. package/dist/utils/consumedFuelInput.js +2 -3
  684. package/dist/utils/consumedFuelResponse.js +2 -3
  685. package/dist/utils/customerNotifications.js +2 -3
  686. package/dist/utils/driverLicenseExpiry.js +1 -2
  687. package/dist/utils/driverNavigation.js +2 -3
  688. package/dist/utils/entityExport.js +3 -4
  689. package/dist/utils/entityImport.js +3 -4
  690. package/dist/utils/formatters.js +41 -36
  691. package/dist/utils/freeTimeDate.js +1 -2
  692. package/dist/utils/freightAcknowledgement.js +1 -2
  693. package/dist/utils/freightCommercial.js +2 -3
  694. package/dist/utils/freightDraft.js +1 -2
  695. package/dist/utils/freightRecovery.js +1 -2
  696. package/dist/utils/graphqlClient.js +1 -2
  697. package/dist/utils/invoiceComparison.js +5 -6
  698. package/dist/utils/invoiceReview.js +1 -2
  699. package/dist/utils/mapMarkers.js +2 -3
  700. package/dist/utils/moduleSettings.js +2 -3
  701. package/dist/utils/navigation.js +2 -3
  702. package/dist/utils/orderPricing.js +1 -2
  703. package/dist/utils/orderValidation.js +3 -4
  704. package/dist/utils/orderVehicleHold.js +2 -3
  705. package/dist/utils/palletPreviewInput.js +1 -2
  706. package/dist/utils/palletPreviewResponse.js +2 -3
  707. package/dist/utils/pendingPickDraft.js +1 -2
  708. package/dist/utils/pickReviewAcknowledgement.js +1 -2
  709. package/dist/utils/procedureInput.js +1 -2
  710. package/dist/utils/procedureRecovery.js +1 -2
  711. package/dist/utils/reports.js +1 -2
  712. package/dist/utils/reuseAttempt.js +1 -2
  713. package/dist/utils/reuseForm.js +1 -2
  714. package/dist/utils/reuseRecovery.js +2 -3
  715. package/dist/utils/shipmentStatusDraft.js +1 -2
  716. package/dist/utils/stockBindingForm.js +1 -2
  717. package/dist/utils/stockBindingLabels.js +1 -2
  718. package/dist/utils/stockObservationForm.js +2 -3
  719. package/dist/utils/trackingAlerts.js +1 -2
  720. package/dist/utils/tripDraftContext.js +1 -2
  721. package/dist/utils/tripUtilizationForm.js +2 -3
  722. package/package.json +136 -86
  723. package/src/generated/wspace-operations.ts +13 -12
  724. package/src/generated/wspace-types.ts +43737 -9125
  725. package/src/movethewheels/hooks/useRoutes.ts +37 -10
  726. package/src/movethewheels/pages/RouteDetailsPage.tsx +107 -10
  727. package/src/movethewheels/types/index.ts +27 -1
  728. package/src/movethewheels/utils/orderPricing.test.ts +1 -1
  729. package/src/operations/wspace/movethewheels/fragments/core.graphql +15 -0
  730. package/src/operations/wspace/movethewheels/mutations/logistics.graphql +2 -2
  731. package/dist/node_modules/d3-array/src/ascending.js +0 -6
  732. package/dist/node_modules/d3-array/src/bisect.js +0 -8
  733. package/dist/node_modules/d3-array/src/bisector.js +0 -41
  734. package/dist/node_modules/d3-array/src/descending.js +0 -6
  735. package/dist/node_modules/d3-array/src/max.js +0 -12
  736. package/dist/node_modules/d3-array/src/min.js +0 -12
  737. package/dist/node_modules/d3-array/src/number.js +0 -13
  738. package/dist/node_modules/d3-array/src/quantile.js +0 -23
  739. package/dist/node_modules/d3-array/src/quickselect.js +0 -24
  740. package/dist/node_modules/d3-array/src/range.js +0 -8
  741. package/dist/node_modules/d3-array/src/sort.js +0 -15
  742. package/dist/node_modules/d3-array/src/ticks.js +0 -32
  743. package/dist/node_modules/d3-color/src/color.js +0 -289
  744. package/dist/node_modules/d3-color/src/define.js +0 -11
  745. package/dist/node_modules/d3-format/src/defaultLocale.js +0 -13
  746. package/dist/node_modules/d3-format/src/exponent.js +0 -7
  747. package/dist/node_modules/d3-format/src/formatDecimal.js +0 -11
  748. package/dist/node_modules/d3-format/src/formatGroup.js +0 -9
  749. package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
  750. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -11
  751. package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
  752. package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -27
  753. package/dist/node_modules/d3-format/src/formatTrim.js +0 -18
  754. package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
  755. package/dist/node_modules/d3-format/src/identity.js +0 -6
  756. package/dist/node_modules/d3-format/src/locale.js +0 -84
  757. package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
  758. package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
  759. package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
  760. package/dist/node_modules/d3-interpolate/src/array.js +0 -13
  761. package/dist/node_modules/d3-interpolate/src/basis.js +0 -14
  762. package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -11
  763. package/dist/node_modules/d3-interpolate/src/color.js +0 -23
  764. package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
  765. package/dist/node_modules/d3-interpolate/src/date.js +0 -9
  766. package/dist/node_modules/d3-interpolate/src/number.js +0 -8
  767. package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -14
  768. package/dist/node_modules/d3-interpolate/src/object.js +0 -12
  769. package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
  770. package/dist/node_modules/d3-interpolate/src/rgb.js +0 -17
  771. package/dist/node_modules/d3-interpolate/src/round.js +0 -8
  772. package/dist/node_modules/d3-interpolate/src/string.js +0 -26
  773. package/dist/node_modules/d3-interpolate/src/value.js +0 -16
  774. package/dist/node_modules/d3-scale/src/band.js +0 -50
  775. package/dist/node_modules/d3-scale/src/constant.js +0 -8
  776. package/dist/node_modules/d3-scale/src/continuous.js +0 -71
  777. package/dist/node_modules/d3-scale/src/diverging.js +0 -80
  778. package/dist/node_modules/d3-scale/src/identity.js +0 -18
  779. package/dist/node_modules/d3-scale/src/init.js +0 -27
  780. package/dist/node_modules/d3-scale/src/linear.js +0 -34
  781. package/dist/node_modules/d3-scale/src/log.js +0 -75
  782. package/dist/node_modules/d3-scale/src/nice.js +0 -8
  783. package/dist/node_modules/d3-scale/src/number.js +0 -6
  784. package/dist/node_modules/d3-scale/src/ordinal.js +0 -29
  785. package/dist/node_modules/d3-scale/src/pow.js +0 -35
  786. package/dist/node_modules/d3-scale/src/quantile.js +0 -35
  787. package/dist/node_modules/d3-scale/src/quantize.js +0 -31
  788. package/dist/node_modules/d3-scale/src/radial.js +0 -37
  789. package/dist/node_modules/d3-scale/src/sequential.js +0 -65
  790. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -28
  791. package/dist/node_modules/d3-scale/src/symlog.js +0 -28
  792. package/dist/node_modules/d3-scale/src/threshold.js +0 -23
  793. package/dist/node_modules/d3-scale/src/tickFormat.js +0 -29
  794. package/dist/node_modules/d3-scale/src/time.js +0 -45
  795. package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
  796. package/dist/node_modules/d3-shape/src/area.js +0 -53
  797. package/dist/node_modules/d3-shape/src/array.js +0 -6
  798. package/dist/node_modules/d3-shape/src/constant.js +0 -8
  799. package/dist/node_modules/d3-shape/src/curve/basis.js +0 -47
  800. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -48
  801. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -44
  802. package/dist/node_modules/d3-shape/src/curve/bump.js +0 -38
  803. package/dist/node_modules/d3-shape/src/curve/linear.js +0 -34
  804. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
  805. package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -92
  806. package/dist/node_modules/d3-shape/src/curve/natural.js +0 -37
  807. package/dist/node_modules/d3-shape/src/curve/step.js +0 -45
  808. package/dist/node_modules/d3-shape/src/line.js +0 -28
  809. package/dist/node_modules/d3-shape/src/math.js +0 -6
  810. package/dist/node_modules/d3-shape/src/noop.js +0 -4
  811. package/dist/node_modules/d3-shape/src/offset/expand.js +0 -13
  812. package/dist/node_modules/d3-shape/src/offset/none.js +0 -6
  813. package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -13
  814. package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -19
  815. package/dist/node_modules/d3-shape/src/order/none.js +0 -7
  816. package/dist/node_modules/d3-shape/src/path.js +0 -17
  817. package/dist/node_modules/d3-shape/src/point.js +0 -9
  818. package/dist/node_modules/d3-shape/src/stack.js +0 -32
  819. package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -8
  820. package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -8
  821. package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -8
  822. package/dist/node_modules/d3-shape/src/symbol/square.js +0 -8
  823. package/dist/node_modules/d3-shape/src/symbol/star.js +0 -13
  824. package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -8
  825. package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -8
  826. package/dist/node_modules/d3-shape/src/symbol.js +0 -21
  827. package/dist/node_modules/d3-time/src/day.js +0 -19
  828. package/dist/node_modules/d3-time/src/duration.js +0 -4
  829. package/dist/node_modules/d3-time/src/hour.js +0 -17
  830. package/dist/node_modules/d3-time/src/interval.js +0 -26
  831. package/dist/node_modules/d3-time/src/millisecond.js +0 -12
  832. package/dist/node_modules/d3-time/src/minute.js +0 -17
  833. package/dist/node_modules/d3-time/src/month.js +0 -16
  834. package/dist/node_modules/d3-time/src/second.js +0 -11
  835. package/dist/node_modules/d3-time/src/ticks.js +0 -123
  836. package/dist/node_modules/d3-time/src/week.js +0 -23
  837. package/dist/node_modules/d3-time/src/year.js +0 -24
  838. package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -60
  839. package/dist/node_modules/internmap/src/index.js +0 -38
@@ -1,34 +1,34 @@
1
- import { ArrowLeft as e } from "../node_modules/lucide-react/dist/esm/icons/arrow-left.js";
2
- import { BellRing as t } from "../node_modules/lucide-react/dist/esm/icons/bell-ring.js";
3
- import { Building as n } from "../node_modules/lucide-react/dist/esm/icons/building.js";
4
- import { FileText as r } from "../node_modules/lucide-react/dist/esm/icons/file-text.js";
5
- import { Mail as i } from "../node_modules/lucide-react/dist/esm/icons/mail.js";
6
- import { MapPin as a } from "../node_modules/lucide-react/dist/esm/icons/map-pin.js";
7
- import { Package as o } from "../node_modules/lucide-react/dist/esm/icons/package.js";
8
- import { Phone as s } from "../node_modules/lucide-react/dist/esm/icons/phone.js";
9
- import { Save as c } from "../node_modules/lucide-react/dist/esm/icons/save.js";
10
- import { SquarePen as l } from "../node_modules/lucide-react/dist/esm/icons/square-pen.js";
11
- import { Star as u } from "../node_modules/lucide-react/dist/esm/icons/star.js";
12
- import { Trash2 as d } from "../node_modules/lucide-react/dist/esm/icons/trash-2.js";
13
- import { Users as f } from "../node_modules/lucide-react/dist/esm/icons/users.js";
14
- import { X as p } from "../node_modules/lucide-react/dist/esm/icons/x.js";
15
- import { buildOrderCustomerPath as m, getSafeCustomerReturnPath as h, joinPath as g } from "../utils/navigation.js";
16
- import { useMoveTheWheels as _ } from "../providers/MoveTheWheelsProvider.js";
17
- import { formatAddress as v, formatCurrency as y, formatDate as b } from "../utils/formatters.js";
18
- import { useOrders as x } from "../hooks/useOrders.js";
19
- import { useCustomer as ee, useCustomers as te } from "../hooks/useCustomers.js";
20
- import { Button as S, Card as C, CardContent as w, CardHeader as T, CardTitle as E, Input as D, Label as O, Select as k, SelectContent as ne, SelectItem as A, SelectTrigger as re, SelectValue as ie } from "../components/ui.js";
21
- import { ErrorState as ae, LoadingState as oe, PageLayout as se } from "../components/PageLayout.js";
22
- import { StatusBadge as ce, TypeBadge as le } from "../components/StatusBadge.js";
1
+ import e from "../node_modules/lucide-react/dist/esm/icons/users.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/square-pen.js";
4
+ import r from "../node_modules/lucide-react/dist/esm/icons/map-pin.js";
5
+ import i from "../node_modules/lucide-react/dist/esm/icons/mail.js";
6
+ import a from "../node_modules/lucide-react/dist/esm/icons/phone.js";
7
+ import o from "../node_modules/lucide-react/dist/esm/icons/star.js";
8
+ import ee from "../node_modules/lucide-react/dist/esm/icons/building.js";
9
+ import s from "../node_modules/lucide-react/dist/esm/icons/file-text.js";
10
+ import te from "../node_modules/lucide-react/dist/esm/icons/save.js";
11
+ import c from "../node_modules/lucide-react/dist/esm/icons/package.js";
12
+ import l from "../node_modules/lucide-react/dist/esm/icons/x.js";
13
+ import u from "../node_modules/lucide-react/dist/esm/icons/trash-2.js";
14
+ import d from "../node_modules/lucide-react/dist/esm/icons/bell-ring.js";
15
+ import { ErrorState as ne, LoadingState as f, PageLayout as p } from "../components/PageLayout.js";
16
+ import { StatusBadge as re, TypeBadge as m } from "../components/StatusBadge.js";
17
+ import { Button as h, Card as g, CardContent as _, CardHeader as v, CardTitle as y, Input as b, Label as x, Select as ie, SelectContent as ae, SelectItem as S, SelectTrigger as C, SelectValue as w } from "../components/ui.js";
18
+ import { useCustomer as oe, useCustomers as T } from "../hooks/useCustomers.js";
19
+ import { useOrders as se } from "../hooks/useOrders.js";
20
+ import { useMoveTheWheels as ce } from "../providers/MoveTheWheelsProvider.js";
21
+ import { formatAddress as le, formatCurrency as ue, formatDate as E } from "../utils/formatters.js";
22
+ import { buildOrderCustomerPath as D, getSafeCustomerReturnPath as O, joinPath as k } from "../utils/navigation.js";
23
+ import { CustomerDeliveryUpdatesFields as A, deliveryUpdatesSummary as de } from "../components/CustomerDeliveryUpdatesFields.js";
23
24
  import { FormError as j } from "../components/FormError.js";
24
- import { Notice as ue, useNotice as de } from "../components/Notice.js";
25
- import { CustomerDeliveryUpdatesFields as M, deliveryUpdatesSummary as fe } from "../components/CustomerDeliveryUpdatesFields.js";
26
- import { useEffect as pe, useState as N } from "react";
27
- import { useParams as me, useSearchParams as P } from "react-router";
28
- import { Fragment as he, jsx as F, jsxs as I } from "react/jsx-runtime";
29
- import { EmphasisPanel as L, NextSteps as ge, PagePurpose as R, ResponsiveDialog as _e, ResponsiveDialogContent as ve, ResponsiveDialogDescription as ye, ResponsiveDialogFooter as be, ResponsiveDialogHeader as xe, ResponsiveDialogTitle as Se } from "@burdenoff/fe-libs/ui";
30
- //#region src/movethewheels/pages/CustomerDetailsPage.tsx
31
- var z = {
25
+ import { Notice as fe, useNotice as pe } from "../components/Notice.js";
26
+ import { useEffect as me, useState as M } from "react";
27
+ import { useParams as he, useSearchParams as N } from "react-router";
28
+ import { Fragment as ge, jsx as P, jsxs as F } from "react/jsx-runtime";
29
+ import { EmphasisPanel as I, NextSteps as _e, PagePurpose as L, ResponsiveDialog as ve, ResponsiveDialogContent as ye, ResponsiveDialogDescription as be, ResponsiveDialogFooter as xe, ResponsiveDialogHeader as Se, ResponsiveDialogTitle as Ce } from "@burdenoff/fe-libs/ui";
30
+ // src/movethewheels/pages/CustomerDetailsPage.tsx
31
+ var R = {
32
32
  name: "",
33
33
  type: "b2c",
34
34
  email: "",
@@ -45,143 +45,142 @@ var z = {
45
45
  notifyByEmail: !0,
46
46
  notifyBySms: !1
47
47
  };
48
- function Ce() {
49
- let { basePath: t, navigate: n } = _(), [i] = P(), o = h(i.get("returnTo")), { createCustomer: s } = te(), [l, u] = N(z), [d, p] = N(!1), [v, y] = N(null), b = () => n?.(g(t, "customers")), x = async (e) => {
50
- if (e.preventDefault(), !l.name.trim()) {
51
- y("Customer name is required.");
52
- return;
53
- }
54
- p(!0), y(null);
55
- try {
56
- let e = await s({
57
- name: l.name.trim(),
58
- type: l.type,
59
- email: l.email.trim() || void 0,
60
- phone: l.phone.trim() || void 0,
61
- company: l.company.trim() || void 0,
62
- address: l.street || l.city || l.state || l.postalCode || l.country ? {
63
- street: l.street.trim(),
64
- city: l.city.trim(),
65
- state: l.state.trim(),
66
- postalCode: l.postalCode.trim(),
67
- country: l.country.trim()
68
- } : void 0,
69
- businessLicense: l.businessLicense.trim() || void 0,
70
- taxId: l.taxId.trim() || void 0,
71
- rating: l.rating ? Number(l.rating) : void 0,
72
- notifyByEmail: l.notifyByEmail,
73
- notifyBySms: l.notifyBySms
74
- }), r = o ? m(o, e.id) : `customers/${e.id}`;
75
- n?.(g(t, r));
76
- } catch (e) {
77
- console.error("Failed to create customer:", e), y(e instanceof Error ? e.message : "Failed to create customer. Please try again."), p(!1);
48
+ function we() {
49
+ let { basePath: n, navigate: i } = ce(), [a] = N(), o = O(a.get("returnTo")), { createCustomer: ee } = T(), [c, l] = M(R), [u, d] = M(!1), [ne, f] = M(null), re = () => i?.(k(n, "customers")), m = async (e) => {
50
+ if (e.preventDefault(), !c.name.trim()) f("Customer name is required.");
51
+ else {
52
+ d(!0), f(null);
53
+ try {
54
+ let e = await ee({
55
+ name: c.name.trim(),
56
+ type: c.type,
57
+ email: c.email.trim() || void 0,
58
+ phone: c.phone.trim() || void 0,
59
+ company: c.company.trim() || void 0,
60
+ address: c.street || c.city || c.state || c.postalCode || c.country ? {
61
+ street: c.street.trim(),
62
+ city: c.city.trim(),
63
+ state: c.state.trim(),
64
+ postalCode: c.postalCode.trim(),
65
+ country: c.country.trim()
66
+ } : void 0,
67
+ businessLicense: c.businessLicense.trim() || void 0,
68
+ taxId: c.taxId.trim() || void 0,
69
+ rating: c.rating ? Number(c.rating) : void 0,
70
+ notifyByEmail: c.notifyByEmail,
71
+ notifyBySms: c.notifyBySms
72
+ }), t = o ? D(o, e.id) : `customers/${e.id}`;
73
+ i?.(k(n, t));
74
+ } catch (e) {
75
+ console.error("Failed to create customer:", e), f(e instanceof Error ? e.message : "Failed to create customer. Please try again."), d(!1);
76
+ }
78
77
  }
79
78
  };
80
- return /* @__PURE__ */ I(se, {
79
+ return /* @__PURE__ */ F(p, {
81
80
  title: "New Customer",
82
81
  subtitle: "Add a new customer to your account",
83
- icon: /* @__PURE__ */ F(f, { size: 24 }),
84
- headerActions: /* @__PURE__ */ I("div", {
82
+ icon: /* @__PURE__ */ P(e, { size: 24 }),
83
+ headerActions: /* @__PURE__ */ F("div", {
85
84
  className: "flex gap-2",
86
- children: [/* @__PURE__ */ I(S, {
85
+ children: [/* @__PURE__ */ F(h, {
87
86
  variant: "outline",
88
- onClick: b,
89
- disabled: d,
90
- children: [/* @__PURE__ */ F(e, { size: 16 }), " Cancel"]
91
- }), /* @__PURE__ */ I(S, {
92
- onClick: x,
93
- disabled: d,
87
+ onClick: re,
88
+ disabled: u,
89
+ children: [/* @__PURE__ */ P(t, { size: 16 }), " Cancel"]
90
+ }), /* @__PURE__ */ F(h, {
91
+ onClick: m,
92
+ disabled: u,
94
93
  children: [
95
- /* @__PURE__ */ F(c, { size: 16 }),
94
+ /* @__PURE__ */ P(te, { size: 16 }),
96
95
  " ",
97
- d ? "Saving..." : "Create Customer"
96
+ u ? "Saving..." : "Create Customer"
98
97
  ]
99
98
  })]
100
99
  }),
101
- children: [/* @__PURE__ */ F(R, {
102
- icon: /* @__PURE__ */ F(f, { size: 18 }),
100
+ children: [/* @__PURE__ */ P(L, {
101
+ icon: /* @__PURE__ */ P(e, { size: 18 }),
103
102
  children: "Add a customer once and their contact details auto-fill every future order you book for them. Only a name is required — add email, phone and company to make deliveries easier to arrange."
104
- }), /* @__PURE__ */ I("form", {
105
- onSubmit: x,
103
+ }), /* @__PURE__ */ F("form", {
104
+ onSubmit: m,
106
105
  className: "max-w-2xl space-y-6",
107
106
  children: [
108
- /* @__PURE__ */ F(j, { message: v }),
109
- /* @__PURE__ */ I(L, { children: [/* @__PURE__ */ F("h2", {
107
+ /* @__PURE__ */ P(j, { message: ne }),
108
+ /* @__PURE__ */ F(I, { children: [/* @__PURE__ */ P("h2", {
110
109
  className: "text-base font-semibold text-text-primary mb-4",
111
110
  children: "Customer Details"
112
- }), /* @__PURE__ */ I("div", {
111
+ }), /* @__PURE__ */ F("div", {
113
112
  className: "space-y-4",
114
113
  children: [
115
- /* @__PURE__ */ I("div", {
114
+ /* @__PURE__ */ F("div", {
116
115
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
117
- children: [/* @__PURE__ */ I("div", {
116
+ children: [/* @__PURE__ */ F("div", {
118
117
  className: "space-y-2",
119
- children: [/* @__PURE__ */ I(O, {
118
+ children: [/* @__PURE__ */ F(x, {
120
119
  htmlFor: "name",
121
- children: ["Name ", /* @__PURE__ */ F("span", {
120
+ children: ["Name ", /* @__PURE__ */ P("span", {
122
121
  className: "text-status-error-text",
123
122
  children: "*"
124
123
  })]
125
- }), /* @__PURE__ */ F(D, {
124
+ }), /* @__PURE__ */ P(b, {
126
125
  id: "name",
127
- value: l.name,
128
- onChange: (e) => u((t) => ({
126
+ value: c.name,
127
+ onChange: (e) => l((t) => ({
129
128
  ...t,
130
129
  name: e.target.value
131
130
  })),
132
131
  placeholder: "Acme Corp or Jane Doe",
133
132
  required: !0
134
133
  })]
135
- }), /* @__PURE__ */ I("div", {
134
+ }), /* @__PURE__ */ F("div", {
136
135
  className: "space-y-2",
137
- children: [/* @__PURE__ */ F(O, {
136
+ children: [/* @__PURE__ */ P(x, {
138
137
  htmlFor: "type",
139
138
  children: "Customer Type"
140
- }), /* @__PURE__ */ I(k, {
141
- value: l.type,
142
- onValueChange: (e) => u((t) => ({
139
+ }), /* @__PURE__ */ F(ie, {
140
+ value: c.type,
141
+ onValueChange: (e) => l((t) => ({
143
142
  ...t,
144
143
  type: e
145
144
  })),
146
- children: [/* @__PURE__ */ F(re, {
145
+ children: [/* @__PURE__ */ P(C, {
147
146
  id: "type",
148
- children: /* @__PURE__ */ F(ie, {})
149
- }), /* @__PURE__ */ I(ne, { children: [/* @__PURE__ */ F(A, {
147
+ children: /* @__PURE__ */ P(w, {})
148
+ }), /* @__PURE__ */ F(ae, { children: [/* @__PURE__ */ P(S, {
150
149
  value: "b2c",
151
150
  children: "B2C (Individual)"
152
- }), /* @__PURE__ */ F(A, {
151
+ }), /* @__PURE__ */ P(S, {
153
152
  value: "b2b",
154
153
  children: "B2B (Business)"
155
154
  })] })]
156
155
  })]
157
156
  })]
158
157
  }),
159
- /* @__PURE__ */ I("div", {
158
+ /* @__PURE__ */ F("div", {
160
159
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
161
- children: [/* @__PURE__ */ I("div", {
160
+ children: [/* @__PURE__ */ F("div", {
162
161
  className: "space-y-2",
163
- children: [/* @__PURE__ */ F(O, {
162
+ children: [/* @__PURE__ */ P(x, {
164
163
  htmlFor: "email",
165
164
  children: "Email"
166
- }), /* @__PURE__ */ F(D, {
165
+ }), /* @__PURE__ */ P(b, {
167
166
  id: "email",
168
167
  type: "email",
169
- value: l.email,
170
- onChange: (e) => u((t) => ({
168
+ value: c.email,
169
+ onChange: (e) => l((t) => ({
171
170
  ...t,
172
171
  email: e.target.value
173
172
  })),
174
173
  placeholder: "customer@example.com"
175
174
  })]
176
- }), /* @__PURE__ */ I("div", {
175
+ }), /* @__PURE__ */ F("div", {
177
176
  className: "space-y-2",
178
- children: [/* @__PURE__ */ F(O, {
177
+ children: [/* @__PURE__ */ P(x, {
179
178
  htmlFor: "phone",
180
179
  children: "Phone"
181
- }), /* @__PURE__ */ F(D, {
180
+ }), /* @__PURE__ */ P(b, {
182
181
  id: "phone",
183
- value: l.phone,
184
- onChange: (e) => u((t) => ({
182
+ value: c.phone,
183
+ onChange: (e) => l((t) => ({
185
184
  ...t,
186
185
  phone: e.target.value
187
186
  })),
@@ -189,15 +188,15 @@ function Ce() {
189
188
  })]
190
189
  })]
191
190
  }),
192
- /* @__PURE__ */ I("div", {
191
+ /* @__PURE__ */ F("div", {
193
192
  className: "space-y-2",
194
- children: [/* @__PURE__ */ F(O, {
193
+ children: [/* @__PURE__ */ P(x, {
195
194
  htmlFor: "company",
196
195
  children: "Company"
197
- }), /* @__PURE__ */ F(D, {
196
+ }), /* @__PURE__ */ P(b, {
198
197
  id: "company",
199
- value: l.company,
200
- onChange: (e) => u((t) => ({
198
+ value: c.company,
199
+ onChange: (e) => l((t) => ({
201
200
  ...t,
202
201
  company: e.target.value
203
202
  })),
@@ -206,79 +205,79 @@ function Ce() {
206
205
  })
207
206
  ]
208
207
  })] }),
209
- /* @__PURE__ */ I(C, { children: [/* @__PURE__ */ F(T, { children: /* @__PURE__ */ I(E, {
208
+ /* @__PURE__ */ F(g, { children: [/* @__PURE__ */ P(v, { children: /* @__PURE__ */ F(y, {
210
209
  className: "flex items-center gap-2",
211
- children: [/* @__PURE__ */ F(a, { size: 18 }), " Address"]
212
- }) }), /* @__PURE__ */ I(w, {
210
+ children: [/* @__PURE__ */ P(r, { size: 18 }), " Address"]
211
+ }) }), /* @__PURE__ */ F(_, {
213
212
  className: "space-y-4",
214
- children: [/* @__PURE__ */ I("div", {
213
+ children: [/* @__PURE__ */ F("div", {
215
214
  className: "space-y-2",
216
- children: [/* @__PURE__ */ F(O, {
215
+ children: [/* @__PURE__ */ P(x, {
217
216
  htmlFor: "street",
218
217
  children: "Street"
219
- }), /* @__PURE__ */ F(D, {
218
+ }), /* @__PURE__ */ P(b, {
220
219
  id: "street",
221
- value: l.street,
222
- onChange: (e) => u((t) => ({
220
+ value: c.street,
221
+ onChange: (e) => l((t) => ({
223
222
  ...t,
224
223
  street: e.target.value
225
224
  })),
226
225
  placeholder: "123 Main St"
227
226
  })]
228
- }), /* @__PURE__ */ I("div", {
227
+ }), /* @__PURE__ */ F("div", {
229
228
  className: "grid grid-cols-1 md:grid-cols-4 gap-4",
230
229
  children: [
231
- /* @__PURE__ */ I("div", {
230
+ /* @__PURE__ */ F("div", {
232
231
  className: "space-y-2",
233
- children: [/* @__PURE__ */ F(O, {
232
+ children: [/* @__PURE__ */ P(x, {
234
233
  htmlFor: "city",
235
234
  children: "City"
236
- }), /* @__PURE__ */ F(D, {
235
+ }), /* @__PURE__ */ P(b, {
237
236
  id: "city",
238
- value: l.city,
239
- onChange: (e) => u((t) => ({
237
+ value: c.city,
238
+ onChange: (e) => l((t) => ({
240
239
  ...t,
241
240
  city: e.target.value
242
241
  }))
243
242
  })]
244
243
  }),
245
- /* @__PURE__ */ I("div", {
244
+ /* @__PURE__ */ F("div", {
246
245
  className: "space-y-2",
247
- children: [/* @__PURE__ */ F(O, {
246
+ children: [/* @__PURE__ */ P(x, {
248
247
  htmlFor: "state",
249
248
  children: "State"
250
- }), /* @__PURE__ */ F(D, {
249
+ }), /* @__PURE__ */ P(b, {
251
250
  id: "state",
252
- value: l.state,
253
- onChange: (e) => u((t) => ({
251
+ value: c.state,
252
+ onChange: (e) => l((t) => ({
254
253
  ...t,
255
254
  state: e.target.value
256
255
  }))
257
256
  })]
258
257
  }),
259
- /* @__PURE__ */ I("div", {
258
+ /* @__PURE__ */ F("div", {
260
259
  className: "space-y-2",
261
- children: [/* @__PURE__ */ F(O, {
260
+ children: [/* @__PURE__ */ P(x, {
262
261
  htmlFor: "postalCode",
263
262
  children: "Postal Code"
264
- }), /* @__PURE__ */ F(D, {
263
+ }), /* @__PURE__ */ P(b, {
265
264
  id: "postalCode",
266
- value: l.postalCode,
267
- onChange: (e) => u((t) => ({
265
+ value: c.postalCode,
266
+ onChange: (e) => l((t) => ({
268
267
  ...t,
269
268
  postalCode: e.target.value
270
269
  }))
271
270
  })]
272
271
  }),
273
- /* @__PURE__ */ I("div", {
272
+ /* @__PURE__ */ F("div", {
274
273
  className: "space-y-2",
275
- children: [/* @__PURE__ */ F(O, {
274
+ children: [/* @__PURE__ */ P(x, {
276
275
  htmlFor: "country",
277
276
  children: "Country"
278
- }), /* @__PURE__ */ F(D, {
277
+ }), /* @__PURE__ */ P(b, {
279
278
  id: "country",
280
- value: l.country,
281
- onChange: (e) => u((t) => ({
279
+ value: c.country,
280
+ onChange: (e) => l((t) => ({
282
281
  ...t,
283
282
  country: e.target.value
284
283
  }))
@@ -287,68 +286,68 @@ function Ce() {
287
286
  ]
288
287
  })]
289
288
  })] }),
290
- /* @__PURE__ */ I(C, { children: [/* @__PURE__ */ F(T, { children: /* @__PURE__ */ I(E, {
289
+ /* @__PURE__ */ F(g, { children: [/* @__PURE__ */ P(v, { children: /* @__PURE__ */ F(y, {
291
290
  className: "flex items-center gap-2",
292
- children: [/* @__PURE__ */ F(r, { size: 18 }), " Business Details"]
293
- }) }), /* @__PURE__ */ I(w, { children: [/* @__PURE__ */ I("div", {
291
+ children: [/* @__PURE__ */ P(s, { size: 18 }), " Business Details"]
292
+ }) }), /* @__PURE__ */ F(_, { children: [/* @__PURE__ */ F("div", {
294
293
  className: "grid grid-cols-1 md:grid-cols-3 gap-4",
295
294
  children: [
296
- /* @__PURE__ */ I("div", {
295
+ /* @__PURE__ */ F("div", {
297
296
  className: "space-y-2",
298
- children: [/* @__PURE__ */ F(O, {
297
+ children: [/* @__PURE__ */ P(x, {
299
298
  htmlFor: "businessLicense",
300
299
  children: "Business License"
301
- }), /* @__PURE__ */ F(D, {
300
+ }), /* @__PURE__ */ P(b, {
302
301
  id: "businessLicense",
303
- value: l.businessLicense,
304
- onChange: (e) => u((t) => ({
302
+ value: c.businessLicense,
303
+ onChange: (e) => l((t) => ({
305
304
  ...t,
306
305
  businessLicense: e.target.value
307
306
  }))
308
307
  })]
309
308
  }),
310
- /* @__PURE__ */ I("div", {
309
+ /* @__PURE__ */ F("div", {
311
310
  className: "space-y-2",
312
- children: [/* @__PURE__ */ F(O, {
311
+ children: [/* @__PURE__ */ P(x, {
313
312
  htmlFor: "taxId",
314
313
  children: "Tax ID"
315
- }), /* @__PURE__ */ F(D, {
314
+ }), /* @__PURE__ */ P(b, {
316
315
  id: "taxId",
317
- value: l.taxId,
318
- onChange: (e) => u((t) => ({
316
+ value: c.taxId,
317
+ onChange: (e) => l((t) => ({
319
318
  ...t,
320
319
  taxId: e.target.value
321
320
  }))
322
321
  })]
323
322
  }),
324
- /* @__PURE__ */ I("div", {
323
+ /* @__PURE__ */ F("div", {
325
324
  className: "space-y-2",
326
- children: [/* @__PURE__ */ F(O, {
325
+ children: [/* @__PURE__ */ P(x, {
327
326
  htmlFor: "rating",
328
327
  children: "Rating (0–5)"
329
- }), /* @__PURE__ */ F(D, {
328
+ }), /* @__PURE__ */ P(b, {
330
329
  id: "rating",
331
330
  type: "number",
332
331
  min: 0,
333
332
  max: 5,
334
333
  step: .1,
335
- value: l.rating,
336
- onChange: (e) => u((t) => ({
334
+ value: c.rating,
335
+ onChange: (e) => l((t) => ({
337
336
  ...t,
338
337
  rating: e.target.value
339
338
  }))
340
339
  })]
341
340
  })
342
341
  ]
343
- }), /* @__PURE__ */ F("div", {
342
+ }), /* @__PURE__ */ P("div", {
344
343
  className: "mt-6",
345
- children: /* @__PURE__ */ F(M, {
344
+ children: /* @__PURE__ */ P(A, {
346
345
  idPrefix: "new-customer",
347
346
  value: {
348
- notifyByEmail: l.notifyByEmail,
349
- notifyBySms: l.notifyBySms
347
+ notifyByEmail: c.notifyByEmail,
348
+ notifyBySms: c.notifyBySms
350
349
  },
351
- onChange: (e) => u((t) => ({
350
+ onChange: (e) => l((t) => ({
352
351
  ...t,
353
352
  ...e
354
353
  }))
@@ -358,7 +357,7 @@ function Ce() {
358
357
  })]
359
358
  });
360
359
  }
361
- function we(e) {
360
+ function z(e) {
362
361
  return {
363
362
  name: e.name,
364
363
  email: e.email,
@@ -378,141 +377,140 @@ function we(e) {
378
377
  };
379
378
  }
380
379
  function B() {
381
- let { customerId: h } = me(), { basePath: P, navigate: B } = _(), { customer: V, isLoading: Te, error: Ee, refetch: H } = ee(h), { updateCustomer: De, deleteCustomer: Oe } = te(), { orders: U, isLoading: ke } = x({ filters: { customerId: h } }), { message: W, notify: Ae } = de(), [G, K] = N(!1), [q, je] = N(!1), [Me, J] = N(null), [Y, X] = N(z), [Ne, Z] = N(!1), [Q, Pe] = N(!1), [Fe, Ie] = N(null);
382
- pe(() => {
383
- V && X(we(V));
380
+ let { customerId: O } = he(), { basePath: N, navigate: B } = ce(), { customer: V, isLoading: Te, error: Ee, refetch: H } = oe(O), { updateCustomer: De, deleteCustomer: Oe } = T(), { orders: U, isLoading: ke } = se({ filters: { customerId: O } }), { message: W, notify: Ae } = pe(), [G, K] = M(!1), [q, je] = M(!1), [Me, J] = M(null), [Y, X] = M(R), [Ne, Z] = M(!1), [Q, Pe] = M(!1), [Fe, Ie] = M(null);
381
+ me(() => {
382
+ V && X(z(V));
384
383
  }, [V]);
385
- let Le = () => B?.(g(P, "customers")), $ = (e) => B?.(g(P, e)), Re = () => {
384
+ let Le = () => B?.(k(N, "customers")), $ = (e) => B?.(k(N, e)), Re = () => {
386
385
  J(null), K(!0);
387
386
  };
388
- return h ? Te ? /* @__PURE__ */ F(oe, { message: "Loading customer details..." }) : Ee || !V ? /* @__PURE__ */ F(ae, {
387
+ return O ? Te ? /* @__PURE__ */ P(f, { message: "Loading customer details..." }) : Ee || !V ? /* @__PURE__ */ P(ne, {
389
388
  title: "Customer not found",
390
389
  onRetry: H
391
- }) : /* @__PURE__ */ I(se, {
390
+ }) : /* @__PURE__ */ F(p, {
392
391
  title: V.name,
393
392
  subtitle: V.company || V.email,
394
- icon: /* @__PURE__ */ F(f, { size: 24 }),
395
- headerActions: /* @__PURE__ */ I("div", {
393
+ icon: /* @__PURE__ */ P(e, { size: 24 }),
394
+ headerActions: /* @__PURE__ */ F("div", {
396
395
  className: "flex gap-2",
397
- children: [/* @__PURE__ */ I(S, {
396
+ children: [/* @__PURE__ */ F(h, {
398
397
  variant: "outline",
399
398
  onClick: Le,
400
- children: [/* @__PURE__ */ F(e, { size: 16 }), " Back"]
401
- }), G ? /* @__PURE__ */ I(he, { children: [/* @__PURE__ */ I(S, {
399
+ children: [/* @__PURE__ */ P(t, { size: 16 }), " Back"]
400
+ }), G ? /* @__PURE__ */ F(ge, { children: [/* @__PURE__ */ F(h, {
402
401
  variant: "outline",
403
402
  onClick: () => {
404
- J(null), K(!1), V && X(we(V));
403
+ J(null), K(!1), V && X(z(V));
405
404
  },
406
405
  disabled: q,
407
- children: [/* @__PURE__ */ F(p, { size: 16 }), " Cancel"]
408
- }), /* @__PURE__ */ I(S, {
406
+ children: [/* @__PURE__ */ P(l, { size: 16 }), " Cancel"]
407
+ }), /* @__PURE__ */ F(h, {
409
408
  onClick: async () => {
410
- if (h) {
411
- if (!Y.name.trim()) {
412
- J("Customer name is required.");
413
- return;
414
- }
415
- je(!0), J(null);
416
- try {
417
- await De(h, {
418
- name: Y.name.trim(),
419
- email: Y.email.trim(),
420
- phone: Y.phone.trim(),
421
- company: Y.company.trim() || void 0,
422
- type: Y.type,
423
- address: {
424
- street: Y.street.trim(),
425
- city: Y.city.trim(),
426
- state: Y.state.trim(),
427
- postalCode: Y.postalCode.trim(),
428
- country: Y.country.trim()
429
- },
430
- businessLicense: Y.businessLicense.trim() || void 0,
431
- taxId: Y.taxId.trim() || void 0,
432
- rating: Y.rating ? Number(Y.rating) : void 0,
433
- notifyByEmail: Y.notifyByEmail,
434
- notifyBySms: Y.notifyBySms
435
- }), Ae("Customer updated."), K(!1), H();
436
- } catch (e) {
437
- J(e instanceof Error ? e.message : "Failed to update customer.");
438
- } finally {
439
- je(!1);
409
+ if (O) {
410
+ if (!Y.name.trim()) J("Customer name is required.");
411
+ else {
412
+ je(!0), J(null);
413
+ try {
414
+ await De(O, {
415
+ name: Y.name.trim(),
416
+ email: Y.email.trim(),
417
+ phone: Y.phone.trim(),
418
+ company: Y.company.trim() || void 0,
419
+ type: Y.type,
420
+ address: {
421
+ street: Y.street.trim(),
422
+ city: Y.city.trim(),
423
+ state: Y.state.trim(),
424
+ postalCode: Y.postalCode.trim(),
425
+ country: Y.country.trim()
426
+ },
427
+ businessLicense: Y.businessLicense.trim() || void 0,
428
+ taxId: Y.taxId.trim() || void 0,
429
+ rating: Y.rating ? Number(Y.rating) : void 0,
430
+ notifyByEmail: Y.notifyByEmail,
431
+ notifyBySms: Y.notifyBySms
432
+ }), Ae("Customer updated."), K(!1), H();
433
+ } catch (e) {
434
+ J(e instanceof Error ? e.message : "Failed to update customer.");
435
+ } finally {
436
+ je(!1);
437
+ }
440
438
  }
441
439
  }
442
440
  },
443
441
  disabled: q,
444
442
  children: [
445
- /* @__PURE__ */ F(c, { size: 16 }),
443
+ /* @__PURE__ */ P(te, { size: 16 }),
446
444
  " ",
447
445
  q ? "Saving…" : "Save"
448
446
  ]
449
- })] }) : /* @__PURE__ */ I(S, {
447
+ })] }) : /* @__PURE__ */ F(h, {
450
448
  onClick: Re,
451
- children: [/* @__PURE__ */ F(l, { size: 16 }), " Edit"]
449
+ children: [/* @__PURE__ */ P(n, { size: 16 }), " Edit"]
452
450
  })]
453
451
  }),
454
- headerContent: /* @__PURE__ */ I("div", {
452
+ headerContent: /* @__PURE__ */ F("div", {
455
453
  className: "flex items-center gap-4",
456
- children: [/* @__PURE__ */ F(le, { type: V.type }), V.rating !== void 0 && /* @__PURE__ */ I("div", {
454
+ children: [/* @__PURE__ */ P(m, { type: V.type }), V.rating !== void 0 && /* @__PURE__ */ F("div", {
457
455
  className: "flex items-center gap-1",
458
- children: [/* @__PURE__ */ F(u, {
456
+ children: [/* @__PURE__ */ P(o, {
459
457
  size: 16,
460
458
  className: "text-status-warning-text fill-current"
461
- }), /* @__PURE__ */ F("span", {
459
+ }), /* @__PURE__ */ P("span", {
462
460
  className: "font-medium",
463
461
  children: V.rating.toFixed(1)
464
462
  })]
465
463
  })]
466
464
  }),
467
465
  children: [
468
- /* @__PURE__ */ F(R, {
469
- icon: /* @__PURE__ */ F(f, { size: 18 }),
466
+ /* @__PURE__ */ P(L, {
467
+ icon: /* @__PURE__ */ P(e, { size: 18 }),
470
468
  children: "Everything you know about this customer — how to reach them, where they are, and their account standing. Use it to confirm contact details before a delivery, check their rating, or book their next order."
471
469
  }),
472
- /* @__PURE__ */ F(ge, {
470
+ /* @__PURE__ */ P(_e, {
473
471
  storageKey: "movethewheels-customer-details",
474
472
  steps: [{
475
473
  id: "new-order",
476
474
  label: "Book a delivery for this customer",
477
475
  description: "Start a new order pre-filled for this account.",
478
- icon: /* @__PURE__ */ F(r, { size: 16 }),
479
- onClick: () => $(m("orders/new", V.id))
476
+ icon: /* @__PURE__ */ P(s, { size: 16 }),
477
+ onClick: () => $(D("orders/new", V.id))
480
478
  }, {
481
479
  id: "edit",
482
480
  label: "Update contact details",
483
481
  description: "Keep email, phone and address current.",
484
- icon: /* @__PURE__ */ F(l, { size: 16 }),
482
+ icon: /* @__PURE__ */ P(n, { size: 16 }),
485
483
  onClick: Re
486
484
  }]
487
485
  }),
488
- W && /* @__PURE__ */ F("div", {
486
+ W && /* @__PURE__ */ P("div", {
489
487
  className: "mb-2",
490
- children: /* @__PURE__ */ F(ue, { message: W })
488
+ children: /* @__PURE__ */ P(fe, { message: W })
491
489
  }),
492
- /* @__PURE__ */ I("div", {
490
+ /* @__PURE__ */ F("div", {
493
491
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
494
- children: [/* @__PURE__ */ I("div", {
492
+ children: [/* @__PURE__ */ F("div", {
495
493
  className: "lg:col-span-2 space-y-6",
496
494
  children: [
497
- /* @__PURE__ */ I(L, { children: [/* @__PURE__ */ F("h2", {
495
+ /* @__PURE__ */ F(I, { children: [/* @__PURE__ */ P("h2", {
498
496
  className: "text-base font-semibold text-text-primary mb-4",
499
497
  children: "Contact Information"
500
- }), G ? /* @__PURE__ */ I("div", {
498
+ }), G ? /* @__PURE__ */ F("div", {
501
499
  className: "space-y-4",
502
500
  children: [
503
- /* @__PURE__ */ F(j, { message: Me }),
504
- /* @__PURE__ */ I("div", {
501
+ /* @__PURE__ */ P(j, { message: Me }),
502
+ /* @__PURE__ */ F("div", {
505
503
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
506
504
  children: [
507
- /* @__PURE__ */ I("div", {
505
+ /* @__PURE__ */ F("div", {
508
506
  className: "space-y-2",
509
- children: [/* @__PURE__ */ I(O, {
507
+ children: [/* @__PURE__ */ F(x, {
510
508
  htmlFor: "edit-name",
511
- children: ["Name ", /* @__PURE__ */ F("span", {
509
+ children: ["Name ", /* @__PURE__ */ P("span", {
512
510
  className: "text-status-error-text",
513
511
  children: "*"
514
512
  })]
515
- }), /* @__PURE__ */ F(D, {
513
+ }), /* @__PURE__ */ P(b, {
516
514
  id: "edit-name",
517
515
  value: Y.name,
518
516
  onChange: (e) => X((t) => ({
@@ -521,12 +519,12 @@ function B() {
521
519
  }))
522
520
  })]
523
521
  }),
524
- /* @__PURE__ */ I("div", {
522
+ /* @__PURE__ */ F("div", {
525
523
  className: "space-y-2",
526
- children: [/* @__PURE__ */ F(O, {
524
+ children: [/* @__PURE__ */ P(x, {
527
525
  htmlFor: "edit-company",
528
526
  children: "Company"
529
- }), /* @__PURE__ */ F(D, {
527
+ }), /* @__PURE__ */ P(b, {
530
528
  id: "edit-company",
531
529
  value: Y.company,
532
530
  onChange: (e) => X((t) => ({
@@ -536,12 +534,12 @@ function B() {
536
534
  placeholder: "Company name (for B2B accounts)"
537
535
  })]
538
536
  }),
539
- /* @__PURE__ */ I("div", {
537
+ /* @__PURE__ */ F("div", {
540
538
  className: "space-y-2",
541
- children: [/* @__PURE__ */ F(O, {
539
+ children: [/* @__PURE__ */ P(x, {
542
540
  htmlFor: "edit-email",
543
541
  children: "Email"
544
- }), /* @__PURE__ */ F(D, {
542
+ }), /* @__PURE__ */ P(b, {
545
543
  id: "edit-email",
546
544
  type: "email",
547
545
  value: Y.email,
@@ -551,12 +549,12 @@ function B() {
551
549
  }))
552
550
  })]
553
551
  }),
554
- /* @__PURE__ */ I("div", {
552
+ /* @__PURE__ */ F("div", {
555
553
  className: "space-y-2",
556
- children: [/* @__PURE__ */ F(O, {
554
+ children: [/* @__PURE__ */ P(x, {
557
555
  htmlFor: "edit-phone",
558
556
  children: "Phone"
559
- }), /* @__PURE__ */ F(D, {
557
+ }), /* @__PURE__ */ P(b, {
560
558
  id: "edit-phone",
561
559
  value: Y.phone,
562
560
  onChange: (e) => X((t) => ({
@@ -565,35 +563,35 @@ function B() {
565
563
  }))
566
564
  })]
567
565
  }),
568
- /* @__PURE__ */ I("div", {
566
+ /* @__PURE__ */ F("div", {
569
567
  className: "space-y-2",
570
- children: [/* @__PURE__ */ F(O, {
568
+ children: [/* @__PURE__ */ P(x, {
571
569
  htmlFor: "edit-type",
572
570
  children: "Customer Type"
573
- }), /* @__PURE__ */ I(k, {
571
+ }), /* @__PURE__ */ F(ie, {
574
572
  value: Y.type,
575
573
  onValueChange: (e) => X((t) => ({
576
574
  ...t,
577
575
  type: e
578
576
  })),
579
- children: [/* @__PURE__ */ F(re, {
577
+ children: [/* @__PURE__ */ P(C, {
580
578
  id: "edit-type",
581
- children: /* @__PURE__ */ F(ie, {})
582
- }), /* @__PURE__ */ I(ne, { children: [/* @__PURE__ */ F(A, {
579
+ children: /* @__PURE__ */ P(w, {})
580
+ }), /* @__PURE__ */ F(ae, { children: [/* @__PURE__ */ P(S, {
583
581
  value: "b2c",
584
582
  children: "B2C (Individual)"
585
- }), /* @__PURE__ */ F(A, {
583
+ }), /* @__PURE__ */ P(S, {
586
584
  value: "b2b",
587
585
  children: "B2B (Business)"
588
586
  })] })]
589
587
  })]
590
588
  }),
591
- /* @__PURE__ */ I("div", {
589
+ /* @__PURE__ */ F("div", {
592
590
  className: "space-y-2",
593
- children: [/* @__PURE__ */ F(O, {
591
+ children: [/* @__PURE__ */ P(x, {
594
592
  htmlFor: "edit-rating",
595
593
  children: "Rating (0–5)"
596
- }), /* @__PURE__ */ F(D, {
594
+ }), /* @__PURE__ */ P(b, {
597
595
  id: "edit-rating",
598
596
  type: "number",
599
597
  min: 0,
@@ -608,15 +606,15 @@ function B() {
608
606
  })
609
607
  ]
610
608
  }),
611
- /* @__PURE__ */ I("div", {
609
+ /* @__PURE__ */ F("div", {
612
610
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
613
611
  children: [
614
- /* @__PURE__ */ I("div", {
612
+ /* @__PURE__ */ F("div", {
615
613
  className: "space-y-2",
616
- children: [/* @__PURE__ */ F(O, {
614
+ children: [/* @__PURE__ */ P(x, {
617
615
  htmlFor: "edit-street",
618
616
  children: "Street"
619
- }), /* @__PURE__ */ F(D, {
617
+ }), /* @__PURE__ */ P(b, {
620
618
  id: "edit-street",
621
619
  value: Y.street,
622
620
  onChange: (e) => X((t) => ({
@@ -625,12 +623,12 @@ function B() {
625
623
  }))
626
624
  })]
627
625
  }),
628
- /* @__PURE__ */ I("div", {
626
+ /* @__PURE__ */ F("div", {
629
627
  className: "space-y-2",
630
- children: [/* @__PURE__ */ F(O, {
628
+ children: [/* @__PURE__ */ P(x, {
631
629
  htmlFor: "edit-city",
632
630
  children: "City"
633
- }), /* @__PURE__ */ F(D, {
631
+ }), /* @__PURE__ */ P(b, {
634
632
  id: "edit-city",
635
633
  value: Y.city,
636
634
  onChange: (e) => X((t) => ({
@@ -639,12 +637,12 @@ function B() {
639
637
  }))
640
638
  })]
641
639
  }),
642
- /* @__PURE__ */ I("div", {
640
+ /* @__PURE__ */ F("div", {
643
641
  className: "space-y-2",
644
- children: [/* @__PURE__ */ F(O, {
642
+ children: [/* @__PURE__ */ P(x, {
645
643
  htmlFor: "edit-state",
646
644
  children: "State"
647
- }), /* @__PURE__ */ F(D, {
645
+ }), /* @__PURE__ */ P(b, {
648
646
  id: "edit-state",
649
647
  value: Y.state,
650
648
  onChange: (e) => X((t) => ({
@@ -653,12 +651,12 @@ function B() {
653
651
  }))
654
652
  })]
655
653
  }),
656
- /* @__PURE__ */ I("div", {
654
+ /* @__PURE__ */ F("div", {
657
655
  className: "space-y-2",
658
- children: [/* @__PURE__ */ F(O, {
656
+ children: [/* @__PURE__ */ P(x, {
659
657
  htmlFor: "edit-postalCode",
660
658
  children: "Postal Code"
661
- }), /* @__PURE__ */ F(D, {
659
+ }), /* @__PURE__ */ P(b, {
662
660
  id: "edit-postalCode",
663
661
  value: Y.postalCode,
664
662
  onChange: (e) => X((t) => ({
@@ -667,12 +665,12 @@ function B() {
667
665
  }))
668
666
  })]
669
667
  }),
670
- /* @__PURE__ */ I("div", {
668
+ /* @__PURE__ */ F("div", {
671
669
  className: "space-y-2",
672
- children: [/* @__PURE__ */ F(O, {
670
+ children: [/* @__PURE__ */ P(x, {
673
671
  htmlFor: "edit-country",
674
672
  children: "Country"
675
- }), /* @__PURE__ */ F(D, {
673
+ }), /* @__PURE__ */ P(b, {
676
674
  id: "edit-country",
677
675
  value: Y.country,
678
676
  onChange: (e) => X((t) => ({
@@ -681,12 +679,12 @@ function B() {
681
679
  }))
682
680
  })]
683
681
  }),
684
- /* @__PURE__ */ I("div", {
682
+ /* @__PURE__ */ F("div", {
685
683
  className: "space-y-2",
686
- children: [/* @__PURE__ */ F(O, {
684
+ children: [/* @__PURE__ */ P(x, {
687
685
  htmlFor: "edit-businessLicense",
688
686
  children: "Business License"
689
- }), /* @__PURE__ */ F(D, {
687
+ }), /* @__PURE__ */ P(b, {
690
688
  id: "edit-businessLicense",
691
689
  value: Y.businessLicense,
692
690
  onChange: (e) => X((t) => ({
@@ -695,12 +693,12 @@ function B() {
695
693
  }))
696
694
  })]
697
695
  }),
698
- /* @__PURE__ */ I("div", {
696
+ /* @__PURE__ */ F("div", {
699
697
  className: "space-y-2",
700
- children: [/* @__PURE__ */ F(O, {
698
+ children: [/* @__PURE__ */ P(x, {
701
699
  htmlFor: "edit-taxId",
702
700
  children: "Tax ID"
703
- }), /* @__PURE__ */ F(D, {
701
+ }), /* @__PURE__ */ P(b, {
704
702
  id: "edit-taxId",
705
703
  value: Y.taxId,
706
704
  onChange: (e) => X((t) => ({
@@ -711,7 +709,7 @@ function B() {
711
709
  })
712
710
  ]
713
711
  }),
714
- /* @__PURE__ */ F(M, {
712
+ /* @__PURE__ */ P(A, {
715
713
  idPrefix: "edit-customer",
716
714
  value: {
717
715
  notifyByEmail: Y.notifyByEmail,
@@ -724,202 +722,202 @@ function B() {
724
722
  disabled: q
725
723
  })
726
724
  ]
727
- }) : /* @__PURE__ */ I("div", {
725
+ }) : /* @__PURE__ */ F("div", {
728
726
  className: "grid grid-cols-1 md:grid-cols-2 gap-6",
729
- children: [/* @__PURE__ */ I("div", {
727
+ children: [/* @__PURE__ */ F("div", {
730
728
  className: "space-y-4",
731
- children: [/* @__PURE__ */ I("div", {
729
+ children: [/* @__PURE__ */ F("div", {
732
730
  className: "flex items-center gap-3",
733
- children: [/* @__PURE__ */ F(i, {
731
+ children: [/* @__PURE__ */ P(i, {
734
732
  size: 18,
735
733
  className: "text-text-secondary"
736
- }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
734
+ }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
737
735
  className: "text-sm text-text-secondary",
738
736
  children: "Email"
739
- }), /* @__PURE__ */ F("p", {
737
+ }), /* @__PURE__ */ P("p", {
740
738
  className: "font-medium",
741
739
  children: V.email || "—"
742
740
  })] })]
743
- }), /* @__PURE__ */ I("div", {
741
+ }), /* @__PURE__ */ F("div", {
744
742
  className: "flex items-center gap-3",
745
- children: [/* @__PURE__ */ F(s, {
743
+ children: [/* @__PURE__ */ P(a, {
746
744
  size: 18,
747
745
  className: "text-text-secondary"
748
- }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
746
+ }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
749
747
  className: "text-sm text-text-secondary",
750
748
  children: "Phone"
751
- }), /* @__PURE__ */ F("p", {
749
+ }), /* @__PURE__ */ P("p", {
752
750
  className: "font-medium",
753
751
  children: V.phone || "—"
754
752
  })] })]
755
753
  })]
756
- }), /* @__PURE__ */ I("div", {
754
+ }), /* @__PURE__ */ F("div", {
757
755
  className: "space-y-4",
758
- children: [V.company && /* @__PURE__ */ I("div", {
756
+ children: [V.company && /* @__PURE__ */ F("div", {
759
757
  className: "flex items-center gap-3",
760
- children: [/* @__PURE__ */ F(n, {
758
+ children: [/* @__PURE__ */ P(ee, {
761
759
  size: 18,
762
760
  className: "text-text-secondary"
763
- }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
761
+ }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
764
762
  className: "text-sm text-text-secondary",
765
763
  children: "Company"
766
- }), /* @__PURE__ */ F("p", {
764
+ }), /* @__PURE__ */ P("p", {
767
765
  className: "font-medium",
768
766
  children: V.company
769
767
  })] })]
770
- }), /* @__PURE__ */ I("div", {
768
+ }), /* @__PURE__ */ F("div", {
771
769
  className: "flex items-center gap-3",
772
- children: [/* @__PURE__ */ F(t, {
770
+ children: [/* @__PURE__ */ P(d, {
773
771
  size: 18,
774
772
  className: "text-text-secondary"
775
- }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
773
+ }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
776
774
  className: "text-sm text-text-secondary",
777
775
  children: "Delivery updates"
778
- }), /* @__PURE__ */ F("p", {
776
+ }), /* @__PURE__ */ P("p", {
779
777
  className: "font-medium",
780
778
  "data-testid": "customer-delivery-updates",
781
- children: fe(V)
779
+ children: de(V)
782
780
  })] })]
783
781
  })]
784
782
  })]
785
783
  })] }),
786
- /* @__PURE__ */ I(C, { children: [/* @__PURE__ */ F(T, { children: /* @__PURE__ */ I(E, {
784
+ /* @__PURE__ */ F(g, { children: [/* @__PURE__ */ P(v, { children: /* @__PURE__ */ F(y, {
787
785
  className: "flex items-center gap-2",
788
- children: [/* @__PURE__ */ F(a, { size: 18 }), " Address"]
789
- }) }), /* @__PURE__ */ F(w, { children: /* @__PURE__ */ F("p", { children: v(V.address) || "—" }) })] }),
790
- /* @__PURE__ */ I(C, { children: [/* @__PURE__ */ I(T, {
786
+ children: [/* @__PURE__ */ P(r, { size: 18 }), " Address"]
787
+ }) }), /* @__PURE__ */ P(_, { children: /* @__PURE__ */ P("p", { children: le(V.address) || "—" }) })] }),
788
+ /* @__PURE__ */ F(g, { children: [/* @__PURE__ */ F(v, {
791
789
  className: "flex flex-row items-center justify-between",
792
- children: [/* @__PURE__ */ I(E, {
790
+ children: [/* @__PURE__ */ F(y, {
793
791
  className: "flex items-center gap-2",
794
- children: [/* @__PURE__ */ F(o, { size: 18 }), " Orders"]
795
- }), /* @__PURE__ */ I(S, {
792
+ children: [/* @__PURE__ */ P(c, { size: 18 }), " Orders"]
793
+ }), /* @__PURE__ */ F(h, {
796
794
  variant: "outline",
797
795
  size: "sm",
798
- onClick: () => $(m("orders/new", V.id)),
799
- children: [/* @__PURE__ */ F(r, { size: 14 }), " New order"]
796
+ onClick: () => $(D("orders/new", V.id)),
797
+ children: [/* @__PURE__ */ P(s, { size: 14 }), " New order"]
800
798
  })]
801
- }), /* @__PURE__ */ F(w, { children: ke ? /* @__PURE__ */ F("p", {
799
+ }), /* @__PURE__ */ P(_, { children: ke ? /* @__PURE__ */ P("p", {
802
800
  className: "text-text-secondary text-center py-4",
803
801
  children: "Loading orders…"
804
- }) : U.length > 0 ? /* @__PURE__ */ F("div", {
802
+ }) : U.length > 0 ? /* @__PURE__ */ P("div", {
805
803
  className: "space-y-2",
806
- children: U.map((e) => /* @__PURE__ */ I("button", {
804
+ children: U.map((e) => /* @__PURE__ */ F("button", {
807
805
  type: "button",
808
806
  onClick: () => $(`orders/${e.id}`),
809
807
  className: "w-full flex items-center justify-between gap-3 p-3 border rounded-lg text-left hover:bg-bg-sunken/50 transition-colors",
810
- children: [/* @__PURE__ */ I("div", {
808
+ children: [/* @__PURE__ */ F("div", {
811
809
  className: "min-w-0",
812
- children: [/* @__PURE__ */ F("p", {
810
+ children: [/* @__PURE__ */ P("p", {
813
811
  className: "font-medium truncate",
814
812
  children: e.orderNumber
815
- }), /* @__PURE__ */ I("p", {
813
+ }), /* @__PURE__ */ F("p", {
816
814
  className: "text-sm text-text-secondary",
817
815
  children: [
818
- b(e.createdAt, "relative"),
816
+ E(e.createdAt, "relative"),
819
817
  " ·",
820
818
  " ",
821
- y(e.pricing.total)
819
+ ue(e.pricing.total)
822
820
  ]
823
821
  })]
824
- }), /* @__PURE__ */ F(ce, {
822
+ }), /* @__PURE__ */ P(re, {
825
823
  status: e.status,
826
824
  type: "order",
827
825
  size: "sm"
828
826
  })]
829
827
  }, e.id))
830
- }) : /* @__PURE__ */ I("div", {
828
+ }) : /* @__PURE__ */ F("div", {
831
829
  className: "text-center py-6",
832
830
  children: [
833
- /* @__PURE__ */ F(o, {
831
+ /* @__PURE__ */ P(c, {
834
832
  size: 32,
835
833
  className: "mx-auto mb-2 text-text-secondary opacity-50"
836
834
  }),
837
- /* @__PURE__ */ F("p", {
835
+ /* @__PURE__ */ P("p", {
838
836
  className: "text-text-secondary",
839
837
  children: "No orders yet for this customer"
840
838
  }),
841
- /* @__PURE__ */ F("button", {
839
+ /* @__PURE__ */ P("button", {
842
840
  type: "button",
843
- onClick: () => $(m("orders/new", V.id)),
841
+ onClick: () => $(D("orders/new", V.id)),
844
842
  className: "mt-1 text-sm text-primary hover:underline",
845
843
  children: "Book their first delivery"
846
844
  })
847
845
  ]
848
846
  }) })] })
849
847
  ]
850
- }), /* @__PURE__ */ I("div", {
848
+ }), /* @__PURE__ */ F("div", {
851
849
  className: "space-y-6",
852
850
  children: [
853
- (V.businessLicense || V.taxId) && /* @__PURE__ */ I(C, { children: [/* @__PURE__ */ F(T, { children: /* @__PURE__ */ F(E, { children: "Business Details" }) }), /* @__PURE__ */ I(w, {
851
+ (V.businessLicense || V.taxId) && /* @__PURE__ */ F(g, { children: [/* @__PURE__ */ P(v, { children: /* @__PURE__ */ P(y, { children: "Business Details" }) }), /* @__PURE__ */ F(_, {
854
852
  className: "space-y-3",
855
- children: [V.businessLicense && /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
853
+ children: [V.businessLicense && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
856
854
  className: "text-sm text-text-secondary",
857
855
  children: "Business License"
858
- }), /* @__PURE__ */ F("p", {
856
+ }), /* @__PURE__ */ P("p", {
859
857
  className: "font-mono",
860
858
  children: V.businessLicense
861
- })] }), V.taxId && /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
859
+ })] }), V.taxId && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
862
860
  className: "text-sm text-text-secondary",
863
861
  children: "Tax ID"
864
- }), /* @__PURE__ */ F("p", {
862
+ }), /* @__PURE__ */ P("p", {
865
863
  className: "font-mono",
866
864
  children: V.taxId
867
865
  })] })]
868
866
  })] }),
869
- /* @__PURE__ */ I(C, { children: [/* @__PURE__ */ F(T, { children: /* @__PURE__ */ F(E, { children: "Account Info" }) }), /* @__PURE__ */ I(w, {
867
+ /* @__PURE__ */ F(g, { children: [/* @__PURE__ */ P(v, { children: /* @__PURE__ */ P(y, { children: "Account Info" }) }), /* @__PURE__ */ F(_, {
870
868
  className: "space-y-3",
871
- children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
869
+ children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
872
870
  className: "text-sm text-text-secondary",
873
871
  children: "Created"
874
- }), /* @__PURE__ */ F("p", { children: b(V.createdAt, "full") })] }), /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", {
872
+ }), /* @__PURE__ */ P("p", { children: E(V.createdAt, "full") })] }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
875
873
  className: "text-sm text-text-secondary",
876
874
  children: "Last Updated"
877
- }), /* @__PURE__ */ F("p", { children: b(V.updatedAt, "relative") })] })]
875
+ }), /* @__PURE__ */ P("p", { children: E(V.updatedAt, "relative") })] })]
878
876
  })] }),
879
- /* @__PURE__ */ I(C, {
877
+ /* @__PURE__ */ F(g, {
880
878
  className: "border-status-error-border",
881
- children: [/* @__PURE__ */ F(T, { children: /* @__PURE__ */ I(E, {
879
+ children: [/* @__PURE__ */ P(v, { children: /* @__PURE__ */ F(y, {
882
880
  className: "flex items-center gap-2 text-status-error-text",
883
- children: [/* @__PURE__ */ F(d, { size: 18 }), " Delete Customer"]
884
- }) }), /* @__PURE__ */ I(w, { children: [/* @__PURE__ */ F("p", {
881
+ children: [/* @__PURE__ */ P(u, { size: 18 }), " Delete Customer"]
882
+ }) }), /* @__PURE__ */ F(_, { children: [/* @__PURE__ */ P("p", {
885
883
  className: "mb-3 text-sm text-text-secondary",
886
884
  children: "Removes this customer from your account. Their past orders stay on record. This cannot be undone from here."
887
- }), /* @__PURE__ */ I(S, {
885
+ }), /* @__PURE__ */ F(h, {
888
886
  type: "button",
889
887
  variant: "outline",
890
888
  className: "border-status-error-border text-status-error-text hover:bg-status-error-bg-subtle",
891
889
  onClick: () => Z(!0),
892
- children: [/* @__PURE__ */ F(d, { size: 16 }), " Delete this customer"]
890
+ children: [/* @__PURE__ */ P(u, { size: 16 }), " Delete this customer"]
893
891
  })] })]
894
892
  })
895
893
  ]
896
894
  })]
897
895
  }),
898
- /* @__PURE__ */ F(_e, {
896
+ /* @__PURE__ */ P(ve, {
899
897
  open: Ne,
900
898
  onOpenChange: Z,
901
- children: /* @__PURE__ */ I(ve, { children: [
902
- /* @__PURE__ */ I(xe, { children: [/* @__PURE__ */ F(Se, { children: "Delete this customer?" }), /* @__PURE__ */ I(ye, { children: [
899
+ children: /* @__PURE__ */ F(ye, { children: [
900
+ /* @__PURE__ */ F(Se, { children: [/* @__PURE__ */ P(Ce, { children: "Delete this customer?" }), /* @__PURE__ */ F(be, { children: [
903
901
  "This removes ",
904
902
  V.name,
905
903
  " from your account. It cannot be undone from here."
906
904
  ] })] }),
907
- /* @__PURE__ */ F("div", {
905
+ /* @__PURE__ */ P("div", {
908
906
  className: "px-1",
909
- children: /* @__PURE__ */ F(j, { message: Fe })
907
+ children: /* @__PURE__ */ P(j, { message: Fe })
910
908
  }),
911
- /* @__PURE__ */ I(be, { children: [/* @__PURE__ */ F(S, {
909
+ /* @__PURE__ */ F(xe, { children: [/* @__PURE__ */ P(h, {
912
910
  variant: "outline",
913
911
  onClick: () => Z(!1),
914
912
  disabled: Q,
915
913
  children: "Cancel"
916
- }), /* @__PURE__ */ F(S, {
914
+ }), /* @__PURE__ */ P(h, {
917
915
  className: "bg-status-error-text text-text-inverse hover:opacity-90",
918
916
  onClick: async () => {
919
- if (h) {
917
+ if (O) {
920
918
  Pe(!0), Ie(null);
921
919
  try {
922
- await Oe(h), Z(!1), Le();
920
+ await Oe(O), Z(!1), Le();
923
921
  } catch (e) {
924
922
  Ie(e instanceof Error ? e.message : "Failed to delete customer."), Pe(!1);
925
923
  }
@@ -931,7 +929,6 @@ function B() {
931
929
  ] })
932
930
  })
933
931
  ]
934
- }) : /* @__PURE__ */ F(Ce, {});
932
+ }) : /* @__PURE__ */ P(we, {});
935
933
  }
936
- //#endregion
937
934
  export { B as default };