@burdenoff/microfe-movethewheels 2026.624.1 → 2026.626.1

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 (119) hide show
  1. package/dist/{AIAssistantPage-BrHX2lQn.js → AIAssistantPage-AvsMbunM.js} +39 -33
  2. package/dist/{AnalyticsPage-DI6Wcaw5.js → AnalyticsPage-CCLfHgQZ.js} +44 -33
  3. package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
  4. package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
  5. package/dist/CustomersPage-CGGfD4ki.js +163 -0
  6. package/dist/{DashboardPage-3ZOnwg1a.js → DashboardPage-D2HRqwg9.js} +122 -111
  7. package/dist/DataTable-CD9ZhpLB.js +249 -0
  8. package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
  9. package/dist/DriversPage-DKiynISH.js +167 -0
  10. package/dist/FinancePage-Vg8WPs38.js +158 -0
  11. package/dist/{FleetPage-CPS7r4J3.js → FleetPage-DddXt8r8.js} +124 -85
  12. package/dist/ImportExportPage-BW6qO3kc.js +248 -0
  13. package/dist/InventoryPage-rMGuaJN-.js +222 -0
  14. package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
  15. package/dist/MarketplacePage-DKrXAv62.js +219 -0
  16. package/dist/MetricCard-B7yMyvMX.js +146 -0
  17. package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
  18. package/dist/OrdersListPage-BHeT8S5o.js +309 -0
  19. package/dist/{PageLayout-xDTiBTDS.js → PageLayout-D3N8MCTm.js} +213 -195
  20. package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
  21. package/dist/ProductsPage--xEpbQ8A.js +171 -0
  22. package/dist/{ReportsPage-B8OyWGzl.js → ReportsPage-Bb7_90rK.js} +57 -49
  23. package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
  24. package/dist/RoutesPage-s57PtgcQ.js +163 -0
  25. package/dist/SettingsPage-BYNCBOpN.js +298 -0
  26. package/dist/{StatusBadge-C--7NhoW.js → StatusBadge-CijYQXtb.js} +5 -2
  27. package/dist/{TrackingPage-BldUm_g7.js → TrackingPage-CcRc_dva.js} +88 -83
  28. package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
  29. package/dist/VehiclesPage-UlxPWP9K.js +167 -0
  30. package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
  31. package/dist/WarehousesPage-CuTO-OPp.js +164 -0
  32. package/dist/{arrow-left-Bk5GsGNk.js → arrow-left-CBpZKkpq.js} +1 -1
  33. package/dist/{box-BAMv2-7M.js → box-CAaiElsb.js} +1 -1
  34. package/dist/{chart-column-CAfkf4o6.js → chart-column-D1Ym15-S.js} +1 -1
  35. package/dist/{chevron-right-Czrt_Qew.js → chevron-right-BIFGi0UA.js} +1 -1
  36. package/dist/{circle-alert-CEuV9Pij.js → circle-alert-DjmNo5_L.js} +1 -1
  37. package/dist/{circle-check-big-Cx8aO6B-.js → circle-check-big-CjuPVo3_.js} +1 -1
  38. package/dist/{clock-Be95bq7_.js → clock-BjkdnddD.js} +1 -1
  39. package/dist/{dollar-sign-kJqItPli.js → dollar-sign-IB4O0wuQ.js} +1 -1
  40. package/dist/{download-caab0D3V.js → download-Dpa9vqoG.js} +1 -1
  41. package/dist/{file-text-b1qhrJn1.js → file-text-C8Uioy11.js} +1 -1
  42. package/dist/{filter-BWmLTZB-.js → filter-Da5OZaHI.js} +1 -1
  43. package/dist/index.js +16 -16
  44. package/dist/{map-CS2aFgyO.js → map-_Per4sT9.js} +1 -1
  45. package/dist/{map-pin-96FeqL7H.js → map-pin-BSaf5IDL.js} +1 -1
  46. package/dist/{navigation-i6UXEjTC.js → navigation-DaTbrhw2.js} +1 -1
  47. package/dist/{package-KhSi3xaT.js → package-BE7U0wQE.js} +1 -1
  48. package/dist/{phone-B-h3tbsr.js → phone-DV4StZiA.js} +1 -1
  49. package/dist/{plus-D2BYAzMn.js → plus-Dl1rLeJR.js} +1 -1
  50. package/dist/{refresh-cw-D5Sy01s-.js → refresh-cw-CWfERAit.js} +1 -1
  51. package/dist/{route-CBDXuwH9.js → route-Dp9JiN_E.js} +1 -1
  52. package/dist/{save-CMc7h-Vi.js → save-XH8vydOn.js} +1 -1
  53. package/dist/{search-DVrUQbOg.js → search-OxoIiL_C.js} +1 -1
  54. package/dist/{settings-BwzIRYv3.js → settings-3Rw5NwFF.js} +1 -1
  55. package/dist/{square-pen-DmW36Bau.js → square-pen-hLIbFQFV.js} +1 -1
  56. package/dist/{star-Cv2MzxZL.js → star-YsVV3MNQ.js} +1 -1
  57. package/dist/{store-CLH957vl.js → store-RCBl7HB-.js} +1 -1
  58. package/dist/{trending-up-l8M0BO_w.js → trending-up-C-85AwGT.js} +1 -1
  59. package/dist/{triangle-alert-BI45s6bH.js → triangle-alert-BOhfGgmh.js} +1 -1
  60. package/dist/{truck-DX3lNQkz.js → truck-CtDjNFbi.js} +1 -1
  61. package/dist/{user-D8EY1uvt.js → user-Dz5TJZFs.js} +1 -1
  62. package/dist/{users-CfG0J8wP.js → users-g2N0eL-Z.js} +1 -1
  63. package/dist/{warehouse-Dt_bAr82.js → warehouse-D3WWDeTX.js} +1 -1
  64. package/dist/{wrench-C50eI_Iy.js → wrench-CmxY1n4I.js} +1 -1
  65. package/package.json +2 -2
  66. package/src/movethewheels/components/DataTable.tsx +41 -6
  67. package/src/movethewheels/components/MetricCard.tsx +51 -20
  68. package/src/movethewheels/components/PageLayout.tsx +60 -5
  69. package/src/movethewheels/components/StatusBadge.tsx +2 -1
  70. package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
  71. package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
  72. package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
  73. package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
  74. package/src/movethewheels/pages/CustomersPage.tsx +51 -12
  75. package/src/movethewheels/pages/DashboardPage.tsx +62 -48
  76. package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
  77. package/src/movethewheels/pages/DriversPage.tsx +45 -12
  78. package/src/movethewheels/pages/FinancePage.tsx +45 -41
  79. package/src/movethewheels/pages/FleetPage.tsx +82 -34
  80. package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
  81. package/src/movethewheels/pages/InventoryPage.tsx +37 -33
  82. package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
  83. package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
  84. package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
  85. package/src/movethewheels/pages/OrdersListPage.tsx +81 -14
  86. package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
  87. package/src/movethewheels/pages/ProductsPage.tsx +41 -12
  88. package/src/movethewheels/pages/ReportsPage.tsx +23 -19
  89. package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
  90. package/src/movethewheels/pages/RoutesPage.tsx +48 -9
  91. package/src/movethewheels/pages/SettingsPage.tsx +68 -26
  92. package/src/movethewheels/pages/TrackingPage.tsx +52 -49
  93. package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
  94. package/src/movethewheels/pages/VehiclesPage.tsx +41 -15
  95. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
  96. package/src/movethewheels/pages/WarehousesPage.tsx +46 -9
  97. package/dist/CreateOrderPage-DfkSi6JF.js +0 -471
  98. package/dist/CustomerDetailsPage-DzAIu_tH.js +0 -239
  99. package/dist/CustomersPage-d21ixOYa.js +0 -119
  100. package/dist/DataTable-CZGz3SJu.js +0 -239
  101. package/dist/DriverDetailsPage-YuZSlPSV.js +0 -297
  102. package/dist/DriversPage-BOhqEBTv.js +0 -127
  103. package/dist/FinancePage-CnjUNXOb.js +0 -154
  104. package/dist/ImportExportPage-zNjs7xsV.js +0 -232
  105. package/dist/InventoryPage-C9g5d3SW.js +0 -223
  106. package/dist/LiveTrackingPage-DoBvtdBG.js +0 -332
  107. package/dist/MarketplacePage-BEj5hcBF.js +0 -192
  108. package/dist/MetricCard-DeHVeVwl.js +0 -135
  109. package/dist/OrderDetailsPage-D-9lDZYU.js +0 -398
  110. package/dist/OrdersListPage-CJzHbgY3.js +0 -257
  111. package/dist/ProductDetailsPage-3rKtzXpy.js +0 -168
  112. package/dist/ProductsPage-B0P_wjBJ.js +0 -131
  113. package/dist/RouteDetailsPage-DGjKTUMj.js +0 -240
  114. package/dist/RoutesPage-CpopY8xN.js +0 -116
  115. package/dist/SettingsPage-BvXSa3gi.js +0 -247
  116. package/dist/VehicleDetailsPage-Dqv--MVW.js +0 -194
  117. package/dist/VehiclesPage-CCBHRDHu.js +0 -127
  118. package/dist/WarehouseDetailsPage-ZObC_c7W.js +0 -215
  119. package/dist/WarehousesPage-CpgZEVW9.js +0 -121
@@ -1,82 +1,92 @@
1
- import { M as e, a as t, d as n, f as r, g as i, h as a, i as o, l as s, u as c } from "./PageLayout-xDTiBTDS.js";
2
- import { t as l } from "./chevron-right-Czrt_Qew.js";
3
- import { t as u } from "./clock-Be95bq7_.js";
4
- import { t as d } from "./dollar-sign-kJqItPli.js";
5
- import { t as f } from "./map-pin-96FeqL7H.js";
6
- import { t as p } from "./package-KhSi3xaT.js";
7
- import { t as m } from "./trending-up-l8M0BO_w.js";
8
- import { t as h } from "./triangle-alert-BI45s6bH.js";
9
- import { t as g } from "./truck-DX3lNQkz.js";
10
- import { t as _ } from "./users-CfG0J8wP.js";
1
+ import { M as e, a as t, d as n, f as r, g as i, h as a, i as o, l as s, u as c } from "./PageLayout-D3N8MCTm.js";
2
+ import { t as l } from "./chevron-right-BIFGi0UA.js";
3
+ import { t as u } from "./clock-BjkdnddD.js";
4
+ import { t as d } from "./dollar-sign-IB4O0wuQ.js";
5
+ import { t as f } from "./map-pin-BSaf5IDL.js";
6
+ import { t as p } from "./package-BE7U0wQE.js";
7
+ import { t as m } from "./trending-up-C-85AwGT.js";
8
+ import { t as h } from "./triangle-alert-BOhfGgmh.js";
9
+ import { t as g } from "./truck-CtDjNFbi.js";
10
+ import { t as _ } from "./users-g2N0eL-Z.js";
11
11
  import { r as v } from "./graphqlClient-CdJyR_ed.js";
12
12
  import { n as y, r as b } from "./useOrders-D_3_hGMp.js";
13
13
  import { i as x } from "./useFleet-BdETplNE.js";
14
14
  import { n as S } from "./useAnalytics-ph7eTIK6.js";
15
15
  import { r as C } from "./useTracking-De2KIUNu.js";
16
- import { r as w, t as T } from "./MetricCard-DeHVeVwl.js";
17
- import { r as E } from "./StatusBadge-C--7NhoW.js";
16
+ import { r as w, t as T } from "./MetricCard-B7yMyvMX.js";
17
+ import { r as E } from "./StatusBadge-CijYQXtb.js";
18
18
  import { n as D, r as O } from "./formatters-_vJlC-47.js";
19
19
  import { t as k } from "./navigation-BgnOfsVd.js";
20
20
  import { jsx as A, jsxs as j } from "react/jsx-runtime";
21
- import { useI18n as M } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
21
+ import { CTAOverflowMenu as M, EmphasisPanel as N, PagePurpose as P } from "@burdenoff/fe-libs/ui";
22
+ import { useI18n as F } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
22
23
  //#region src/movethewheels/pages/DashboardPage.tsx
23
- function N() {
24
- let { t: N } = M(), P = (e, t) => {
25
- let n = N(e);
24
+ function I() {
25
+ let { t: I } = F(), L = (e, t) => {
26
+ let n = I(e);
26
27
  return n === e ? t : n;
27
- }, { basePath: F, navigate: I } = v(), { metrics: L } = S(), { orders: R } = b({ limit: 5 }), { stats: z } = y(), { stats: B } = x(), { activeDeliveries: V } = C(), H = (e) => {
28
- I && I(k(F, e));
28
+ }, { basePath: R, navigate: z } = v(), { metrics: B } = S(), { orders: V } = b({ limit: 5 }), { stats: H } = y(), { stats: U } = x(), { activeDeliveries: W } = C(), G = (e) => {
29
+ z && z(k(R, e));
29
30
  };
30
31
  return /* @__PURE__ */ j(o, {
31
- title: P("movethewheels.dashboard.title", "Dashboard"),
32
- subtitle: P("movethewheels.dashboard.subtitle", "Overview of your logistics operations"),
32
+ hero: !0,
33
+ titleAccent: L("movethewheels.dashboard.title", "Dashboard"),
34
+ title: L("movethewheels.dashboard.title", "Dashboard"),
35
+ subtitle: L("movethewheels.dashboard.subtitle", "Overview of your logistics operations"),
33
36
  icon: /* @__PURE__ */ A(m, { size: 24 }),
34
- headerActions: /* @__PURE__ */ j("div", {
35
- className: "flex gap-2",
36
- children: [/* @__PURE__ */ j(c, {
37
- variant: "outline",
38
- onClick: () => H("tracking/live"),
39
- children: [/* @__PURE__ */ A(f, { size: 16 }), P("movethewheels.dashboard.actions.liveMap", "Live Map")]
40
- }), /* @__PURE__ */ j(c, {
41
- onClick: () => H("orders/new"),
42
- children: [/* @__PURE__ */ A(p, { size: 16 }), P("movethewheels.dashboard.actions.newOrder", "New Order")]
43
- })]
37
+ headerActions: /* @__PURE__ */ A(M, {
38
+ primary: {
39
+ label: L("movethewheels.dashboard.actions.newOrder", "New Order"),
40
+ icon: /* @__PURE__ */ A(p, { size: 16 }),
41
+ onSelect: () => G("orders/new")
42
+ },
43
+ actions: [{
44
+ label: L("movethewheels.dashboard.actions.liveMap", "Live Map"),
45
+ icon: /* @__PURE__ */ A(f, { size: 16 }),
46
+ onSelect: () => G("tracking/live")
47
+ }]
44
48
  }),
45
49
  children: [
50
+ /* @__PURE__ */ A(P, {
51
+ icon: /* @__PURE__ */ A(m, { size: 18 }),
52
+ children: L("movethewheels.dashboard.purpose", "Your logistics command center — a live snapshot of orders, active deliveries, fleet health and revenue. Start here each day to spot what needs attention, then jump straight into an order, the live map or fleet status.")
53
+ }),
46
54
  /* @__PURE__ */ j(w, {
47
55
  columns: 4,
48
56
  children: [
49
57
  /* @__PURE__ */ A(T, {
50
- label: P("movethewheels.dashboard.metrics.totalOrders", "Total Orders"),
51
- value: L.orders.total,
58
+ label: L("movethewheels.dashboard.metrics.totalOrders", "Total Orders"),
59
+ value: B.orders.total,
52
60
  icon: /* @__PURE__ */ A(p, { size: 20 }),
53
- change: `+${L.orders.today} ${P("movethewheels.dashboard.metrics.today", "today")}`,
61
+ change: `+${B.orders.today} ${L("movethewheels.dashboard.metrics.today", "today")}`,
54
62
  changeType: "positive",
55
63
  trend: "up",
56
- onClick: () => H("orders")
64
+ onClick: () => G("orders")
57
65
  }),
58
66
  /* @__PURE__ */ A(T, {
59
- label: P("movethewheels.dashboard.metrics.activeDeliveries", "Active Deliveries"),
60
- value: L.orders.inTransit,
67
+ label: L("movethewheels.dashboard.metrics.activeDeliveries", "Active Deliveries"),
68
+ value: B.orders.inTransit,
61
69
  icon: /* @__PURE__ */ A(g, { size: 20 }),
62
- subtitle: `${L.orders.pending} ${P("movethewheels.dashboard.metrics.pending", "pending")}`,
63
- onClick: () => H("tracking")
70
+ subtitle: `${B.orders.pending} ${L("movethewheels.dashboard.metrics.pending", "pending")}`,
71
+ onClick: () => G("tracking")
64
72
  }),
65
73
  /* @__PURE__ */ A(T, {
66
- label: P("movethewheels.dashboard.metrics.fleetUtilization", "Fleet Utilization"),
67
- value: `${L.fleet.activeVehicles}/${L.fleet.totalVehicles}`,
74
+ label: L("movethewheels.dashboard.metrics.fleetUtilization", "Fleet Utilization"),
75
+ value: `${B.fleet.activeVehicles}/${B.fleet.totalVehicles}`,
68
76
  icon: /* @__PURE__ */ A(g, { size: 20 }),
69
- subtitle: `${L.fleet.availableDrivers} ${P("movethewheels.dashboard.metrics.driversAvailable", "drivers available")}`,
70
- onClick: () => H("fleet")
77
+ subtitle: `${B.fleet.availableDrivers} ${L("movethewheels.dashboard.metrics.driversAvailable", "drivers available")}`,
78
+ onClick: () => G("fleet")
71
79
  }),
72
80
  /* @__PURE__ */ A(T, {
73
- label: P("movethewheels.dashboard.metrics.revenue", "Revenue"),
74
- value: D(L.revenue.total),
81
+ treatment: "glass",
82
+ glow: !0,
83
+ label: L("movethewheels.dashboard.metrics.revenue", "Revenue"),
84
+ value: D(B.revenue.total),
75
85
  icon: /* @__PURE__ */ A(d, { size: 20 }),
76
86
  change: "+12.5%",
77
87
  changeType: "positive",
78
88
  trend: "up",
79
- onClick: () => H("analytics")
89
+ onClick: () => G("analytics")
80
90
  })
81
91
  ]
82
92
  }),
@@ -85,38 +95,38 @@ function N() {
85
95
  children: [
86
96
  /* @__PURE__ */ A(T, {
87
97
  size: "sm",
88
- label: P("movethewheels.dashboard.stats.onTimeDelivery", "On-Time Delivery"),
89
- value: `${L.performance.onTimeDeliveryRate.toFixed(1)}%`,
90
- changeType: L.performance.onTimeDeliveryRate >= 90 ? "positive" : "negative"
98
+ label: L("movethewheels.dashboard.stats.onTimeDelivery", "On-Time Delivery"),
99
+ value: `${B.performance.onTimeDeliveryRate.toFixed(1)}%`,
100
+ changeType: B.performance.onTimeDeliveryRate >= 90 ? "positive" : "negative"
91
101
  }),
92
102
  /* @__PURE__ */ A(T, {
93
103
  size: "sm",
94
- label: P("movethewheels.dashboard.stats.avgOrderValue", "Avg Order Value"),
95
- value: D(L.revenue.avgOrderValue)
104
+ label: L("movethewheels.dashboard.stats.avgOrderValue", "Avg Order Value"),
105
+ value: D(B.revenue.avgOrderValue)
96
106
  }),
97
107
  /* @__PURE__ */ A(T, {
98
108
  size: "sm",
99
- label: P("movethewheels.dashboard.stats.driverRating", "Driver Rating"),
100
- value: L.performance.avgDriverRating.toFixed(1),
101
- subtitle: P("movethewheels.dashboard.stats.outOfFive", "out of 5")
109
+ label: L("movethewheels.dashboard.stats.driverRating", "Driver Rating"),
110
+ value: B.performance.avgDriverRating.toFixed(1),
111
+ subtitle: L("movethewheels.dashboard.stats.outOfFive", "out of 5")
102
112
  }),
103
113
  /* @__PURE__ */ A(T, {
104
114
  size: "sm",
105
- label: P("movethewheels.dashboard.stats.deliveredToday", "Delivered Today"),
106
- value: L.orders.delivered
115
+ label: L("movethewheels.dashboard.stats.deliveredToday", "Delivered Today"),
116
+ value: B.orders.delivered
107
117
  })
108
118
  ]
109
119
  }),
110
120
  /* @__PURE__ */ j("div", {
111
121
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
112
122
  children: [/* @__PURE__ */ A(t, {
113
- title: P("movethewheels.dashboard.recentOrders.title", "Recent Orders"),
123
+ title: L("movethewheels.dashboard.recentOrders.title", "Recent Orders"),
114
124
  actions: /* @__PURE__ */ j(c, {
115
125
  variant: "ghost",
116
126
  size: "sm",
117
- onClick: () => H("orders"),
127
+ onClick: () => G("orders"),
118
128
  children: [
119
- P("movethewheels.dashboard.common.viewAll", "View all"),
129
+ L("movethewheels.dashboard.common.viewAll", "View all"),
120
130
  " ",
121
131
  /* @__PURE__ */ A(l, { size: 16 })
122
132
  ]
@@ -125,9 +135,9 @@ function N() {
125
135
  className: "p-0",
126
136
  children: /* @__PURE__ */ j("div", {
127
137
  className: "divide-y",
128
- children: [R.slice(0, 5).map((e) => /* @__PURE__ */ A("div", {
138
+ children: [V.slice(0, 5).map((e) => /* @__PURE__ */ A("div", {
129
139
  className: "p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors",
130
- onClick: () => H(`orders/${e.id}`),
140
+ onClick: () => G(`orders/${e.id}`),
131
141
  children: /* @__PURE__ */ j("div", {
132
142
  className: "flex items-center justify-between",
133
143
  children: [/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
@@ -148,20 +158,20 @@ function N() {
148
158
  })]
149
159
  })]
150
160
  })
151
- }, e.id)), R.length === 0 && /* @__PURE__ */ A("div", {
161
+ }, e.id)), V.length === 0 && /* @__PURE__ */ A("div", {
152
162
  className: "p-8 text-center text-text-secondary",
153
- children: P("movethewheels.dashboard.recentOrders.empty", "No recent orders")
163
+ children: L("movethewheels.dashboard.recentOrders.empty", "No recent orders")
154
164
  })]
155
165
  })
156
166
  }) })
157
167
  }), /* @__PURE__ */ A(t, {
158
- title: P("movethewheels.dashboard.activeDeliveries.title", "Active Deliveries"),
168
+ title: L("movethewheels.dashboard.activeDeliveries.title", "Active Deliveries"),
159
169
  actions: /* @__PURE__ */ j(c, {
160
170
  variant: "ghost",
161
171
  size: "sm",
162
- onClick: () => H("tracking/live"),
172
+ onClick: () => G("tracking/live"),
163
173
  children: [
164
- P("movethewheels.dashboard.activeDeliveries.liveTracking", "Live tracking"),
174
+ L("movethewheels.dashboard.activeDeliveries.liveTracking", "Live tracking"),
165
175
  " ",
166
176
  /* @__PURE__ */ A(l, { size: 16 })
167
177
  ]
@@ -170,9 +180,9 @@ function N() {
170
180
  className: "p-0",
171
181
  children: /* @__PURE__ */ j("div", {
172
182
  className: "divide-y",
173
- children: [V.slice(0, 5).map((e) => e.order ? /* @__PURE__ */ A("div", {
183
+ children: [W.slice(0, 5).map((e) => e.order ? /* @__PURE__ */ A("div", {
174
184
  className: "p-4 hover:bg-bg-sunken/50 cursor-pointer transition-colors",
175
- onClick: () => H(`tracking?order=${e.order.id}`),
185
+ onClick: () => G(`tracking?order=${e.order.id}`),
176
186
  children: /* @__PURE__ */ j("div", {
177
187
  className: "flex items-center justify-between",
178
188
  children: [/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
@@ -180,7 +190,7 @@ function N() {
180
190
  children: e.order.orderNumber
181
191
  }), /* @__PURE__ */ A("p", {
182
192
  className: "text-sm text-text-secondary",
183
- children: e.driver?.fullName || P("movethewheels.dashboard.activeDeliveries.unassigned", "Unassigned")
193
+ children: e.driver?.fullName || L("movethewheels.dashboard.activeDeliveries.unassigned", "Unassigned")
184
194
  })] }), /* @__PURE__ */ j("div", {
185
195
  className: "text-right",
186
196
  children: [/* @__PURE__ */ A(E, {
@@ -190,16 +200,16 @@ function N() {
190
200
  }), /* @__PURE__ */ j("p", {
191
201
  className: "text-sm text-text-secondary mt-1",
192
202
  children: [
193
- P("movethewheels.dashboard.activeDeliveries.eta", "ETA:"),
203
+ L("movethewheels.dashboard.activeDeliveries.eta", "ETA:"),
194
204
  " ",
195
- e.estimatedArrival ? O(e.estimatedArrival, "time") : P("movethewheels.dashboard.activeDeliveries.na", "N/A")
205
+ e.estimatedArrival ? O(e.estimatedArrival, "time") : L("movethewheels.dashboard.activeDeliveries.na", "N/A")
196
206
  ]
197
207
  })]
198
208
  })]
199
209
  })
200
- }, e.order.id) : null), V.length === 0 && /* @__PURE__ */ A("div", {
210
+ }, e.order.id) : null), W.length === 0 && /* @__PURE__ */ A("div", {
201
211
  className: "p-8 text-center text-text-secondary",
202
- children: P("movethewheels.dashboard.activeDeliveries.empty", "No active deliveries")
212
+ children: L("movethewheels.dashboard.activeDeliveries.empty", "No active deliveries")
203
213
  })]
204
214
  })
205
215
  }) })
@@ -208,32 +218,32 @@ function N() {
208
218
  /* @__PURE__ */ j("div", {
209
219
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
210
220
  children: [
211
- /* @__PURE__ */ j(n, { children: [/* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(i, {
212
- className: "text-base",
213
- children: P("movethewheels.dashboard.orderStatus.title", "Order Status")
214
- }) }), /* @__PURE__ */ A(r, {
221
+ /* @__PURE__ */ j(N, {
215
222
  className: "space-y-4",
216
- children: /* @__PURE__ */ A("div", {
223
+ children: [/* @__PURE__ */ A("h2", {
224
+ className: "text-base font-semibold text-text-primary",
225
+ children: L("movethewheels.dashboard.orderStatus.title", "Order Status")
226
+ }), /* @__PURE__ */ A("div", {
217
227
  className: "space-y-3",
218
228
  children: [
219
229
  {
220
230
  status: "pending",
221
- count: z.byStatus.pending,
231
+ count: H.byStatus.pending,
222
232
  color: "bg-yellow-500"
223
233
  },
224
234
  {
225
235
  status: "in_transit",
226
- count: z.byStatus.in_transit,
236
+ count: H.byStatus.in_transit,
227
237
  color: "bg-blue-500"
228
238
  },
229
239
  {
230
240
  status: "delivered",
231
- count: z.byStatus.delivered,
241
+ count: H.byStatus.delivered,
232
242
  color: "bg-green-500"
233
243
  },
234
244
  {
235
245
  status: "cancelled",
236
- count: z.byStatus.cancelled,
246
+ count: H.byStatus.cancelled,
237
247
  color: "bg-red-500"
238
248
  }
239
249
  ].map(({ status: e, count: t, color: n }) => /* @__PURE__ */ j("div", {
@@ -242,56 +252,57 @@ function N() {
242
252
  className: "flex items-center gap-2",
243
253
  children: [/* @__PURE__ */ A("div", { className: `w-2 h-2 rounded-full ${n}` }), /* @__PURE__ */ A("span", {
244
254
  className: "text-sm capitalize",
245
- children: P(`movethewheels.dashboard.orderStatus.status.${e}`, e.replace("_", " "))
255
+ children: L(`movethewheels.dashboard.orderStatus.status.${e}`, e.replace("_", " "))
246
256
  })]
247
257
  }), /* @__PURE__ */ A(s, {
248
258
  variant: "secondary",
259
+ className: "tabular-nums",
249
260
  children: t
250
261
  })]
251
262
  }, e))
252
- })
253
- })] }),
263
+ })]
264
+ }),
254
265
  /* @__PURE__ */ j(n, { children: [/* @__PURE__ */ A(a, { children: /* @__PURE__ */ A(i, {
255
266
  className: "text-base",
256
- children: P("movethewheels.dashboard.fleetStatus.title", "Fleet Status")
267
+ children: L("movethewheels.dashboard.fleetStatus.title", "Fleet Status")
257
268
  }) }), /* @__PURE__ */ j(r, {
258
269
  className: "space-y-4",
259
270
  children: [/* @__PURE__ */ j("div", {
260
271
  className: "space-y-2",
261
272
  children: [/* @__PURE__ */ j("div", {
262
273
  className: "flex justify-between text-sm",
263
- children: [/* @__PURE__ */ A("span", { children: P("movethewheels.dashboard.fleetStatus.vehicleUtilization", "Vehicle Utilization") }), /* @__PURE__ */ j("span", { children: [B.utilization.toFixed(0), "%"] })]
264
- }), /* @__PURE__ */ A(e, { value: B.utilization })]
274
+ children: [/* @__PURE__ */ A("span", { children: L("movethewheels.dashboard.fleetStatus.vehicleUtilization", "Vehicle Utilization") }), /* @__PURE__ */ j("span", { children: [U.utilization.toFixed(0), "%"] })]
275
+ }), /* @__PURE__ */ A(e, { value: U.utilization })]
265
276
  }), /* @__PURE__ */ j("div", {
266
277
  className: "grid grid-cols-2 gap-4 text-sm",
267
278
  children: [
268
279
  /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
269
280
  className: "text-text-secondary",
270
- children: P("movethewheels.dashboard.fleetStatus.available", "Available")
281
+ children: L("movethewheels.dashboard.fleetStatus.available", "Available")
271
282
  }), /* @__PURE__ */ A("p", {
272
283
  className: "text-lg font-semibold text-green-600",
273
- children: B.vehiclesByStatus.available
284
+ children: U.vehiclesByStatus.available
274
285
  })] }),
275
286
  /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
276
287
  className: "text-text-secondary",
277
- children: P("movethewheels.dashboard.fleetStatus.inUse", "In Use")
288
+ children: L("movethewheels.dashboard.fleetStatus.inUse", "In Use")
278
289
  }), /* @__PURE__ */ A("p", {
279
290
  className: "text-lg font-semibold text-blue-600",
280
- children: B.vehiclesByStatus.assigned
291
+ children: U.vehiclesByStatus.assigned
281
292
  })] }),
282
293
  /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
283
294
  className: "text-text-secondary",
284
- children: P("movethewheels.dashboard.fleetStatus.maintenance", "Maintenance")
295
+ children: L("movethewheels.dashboard.fleetStatus.maintenance", "Maintenance")
285
296
  }), /* @__PURE__ */ A("p", {
286
297
  className: "text-lg font-semibold text-yellow-600",
287
- children: B.vehiclesByStatus.maintenance
298
+ children: U.vehiclesByStatus.maintenance
288
299
  })] }),
289
300
  /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
290
301
  className: "text-text-secondary",
291
- children: P("movethewheels.dashboard.fleetStatus.avgFuel", "Avg Fuel")
302
+ children: L("movethewheels.dashboard.fleetStatus.avgFuel", "Avg Fuel")
292
303
  }), /* @__PURE__ */ j("p", {
293
304
  className: "text-lg font-semibold",
294
- children: [B.avgFuelLevel.toFixed(0), "%"]
305
+ children: [U.avgFuelLevel.toFixed(0), "%"]
295
306
  })] })
296
307
  ]
297
308
  })]
@@ -301,66 +312,66 @@ function N() {
301
312
  children: [/* @__PURE__ */ A(h, {
302
313
  size: 16,
303
314
  className: "text-yellow-500"
304
- }), P("movethewheels.dashboard.alerts.title", "Alerts")]
315
+ }), L("movethewheels.dashboard.alerts.title", "Alerts")]
305
316
  }) }), /* @__PURE__ */ A(r, { children: /* @__PURE__ */ j("div", {
306
317
  className: "space-y-3",
307
318
  children: [
308
- z.byStatus.pending > 5 && /* @__PURE__ */ j("div", {
319
+ H.byStatus.pending > 5 && /* @__PURE__ */ j("div", {
309
320
  className: "flex items-start gap-3 p-2 rounded bg-yellow-50 dark:bg-yellow-900/20",
310
321
  children: [/* @__PURE__ */ A(u, {
311
322
  size: 16,
312
323
  className: "text-yellow-600 mt-0.5"
313
324
  }), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
314
325
  className: "text-sm font-medium",
315
- children: P("movethewheels.dashboard.alerts.pendingOrders.title", "Pending Orders")
326
+ children: L("movethewheels.dashboard.alerts.pendingOrders.title", "Pending Orders")
316
327
  }), /* @__PURE__ */ j("p", {
317
328
  className: "text-xs text-text-secondary",
318
329
  children: [
319
- z.byStatus.pending,
330
+ H.byStatus.pending,
320
331
  " ",
321
- P("movethewheels.dashboard.alerts.pendingOrders.description", "orders awaiting confirmation")
332
+ L("movethewheels.dashboard.alerts.pendingOrders.description", "orders awaiting confirmation")
322
333
  ]
323
334
  })] })]
324
335
  }),
325
- B.vehiclesByStatus.maintenance > 0 && /* @__PURE__ */ j("div", {
336
+ U.vehiclesByStatus.maintenance > 0 && /* @__PURE__ */ j("div", {
326
337
  className: "flex items-start gap-3 p-2 rounded bg-orange-50 dark:bg-orange-900/20",
327
338
  children: [/* @__PURE__ */ A(g, {
328
339
  size: 16,
329
340
  className: "text-orange-600 mt-0.5"
330
341
  }), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
331
342
  className: "text-sm font-medium",
332
- children: P("movethewheels.dashboard.alerts.maintenanceVehicles.title", "Vehicles in Maintenance")
343
+ children: L("movethewheels.dashboard.alerts.maintenanceVehicles.title", "Vehicles in Maintenance")
333
344
  }), /* @__PURE__ */ j("p", {
334
345
  className: "text-xs text-text-secondary",
335
346
  children: [
336
- B.vehiclesByStatus.maintenance,
347
+ U.vehiclesByStatus.maintenance,
337
348
  " ",
338
- P("movethewheels.dashboard.alerts.maintenanceVehicles.description", "vehicles unavailable")
349
+ L("movethewheels.dashboard.alerts.maintenanceVehicles.description", "vehicles unavailable")
339
350
  ]
340
351
  })] })]
341
352
  }),
342
- B.driversByStatus.offline > 0 && /* @__PURE__ */ j("div", {
353
+ U.driversByStatus.offline > 0 && /* @__PURE__ */ j("div", {
343
354
  className: "flex items-start gap-3 p-2 rounded bg-gray-50 dark:bg-gray-800",
344
355
  children: [/* @__PURE__ */ A(_, {
345
356
  size: 16,
346
357
  className: "text-gray-600 mt-0.5"
347
358
  }), /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
348
359
  className: "text-sm font-medium",
349
- children: P("movethewheels.dashboard.alerts.offlineDrivers.title", "Offline Drivers")
360
+ children: L("movethewheels.dashboard.alerts.offlineDrivers.title", "Offline Drivers")
350
361
  }), /* @__PURE__ */ j("p", {
351
362
  className: "text-xs text-text-secondary",
352
363
  children: [
353
- B.driversByStatus.offline,
364
+ U.driversByStatus.offline,
354
365
  " ",
355
- P("movethewheels.dashboard.alerts.offlineDrivers.description", "drivers currently offline")
366
+ L("movethewheels.dashboard.alerts.offlineDrivers.description", "drivers currently offline")
356
367
  ]
357
368
  })] })]
358
369
  }),
359
- z.byStatus.pending <= 5 && B.vehiclesByStatus.maintenance === 0 && B.driversByStatus.offline === 0 && /* @__PURE__ */ A("div", {
370
+ H.byStatus.pending <= 5 && U.vehiclesByStatus.maintenance === 0 && U.driversByStatus.offline === 0 && /* @__PURE__ */ A("div", {
360
371
  className: "text-center py-4 text-text-secondary",
361
372
  children: /* @__PURE__ */ A("p", {
362
373
  className: "text-sm",
363
- children: P("movethewheels.dashboard.alerts.allOperational", "All systems operational")
374
+ children: L("movethewheels.dashboard.alerts.allOperational", "All systems operational")
364
375
  })
365
376
  })
366
377
  ]
@@ -371,4 +382,4 @@ function N() {
371
382
  });
372
383
  }
373
384
  //#endregion
374
- export { N as default };
385
+ export { I as default };