@burdenoff/microfe-movethewheels 2026.626.2 → 2026.703.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 (135) hide show
  1. package/dist/{AIAssistantPage-AvsMbunM.js → AIAssistantPage-C3cPsWt-.js} +100 -73
  2. package/dist/AnalyticsPage-Dz6g2MvK.js +215 -0
  3. package/dist/{CreateOrderPage-CjlnEtk3.js → CreateOrderPage-C5iwnjp4.js} +36 -67
  4. package/dist/CustomerDetailsPage-B6nwFyLO.js +406 -0
  5. package/dist/{CustomersPage-CGGfD4ki.js → CustomersPage-2Y05LVyh.js} +26 -28
  6. package/dist/{DashboardPage-D2HRqwg9.js → DashboardPage-BVjQi0EB.js} +85 -83
  7. package/dist/{DataTable-CD9ZhpLB.js → DataTable-DmciIKKM.js} +3 -3
  8. package/dist/DriverDetailsPage-CN3WQ0B9.js +507 -0
  9. package/dist/{DriversPage-DKiynISH.js → DriversPage-B0Zpx8OQ.js} +25 -27
  10. package/dist/{FinancePage-Vg8WPs38.js → FinancePage-DEDykSOP.js} +9 -9
  11. package/dist/FleetPage-DqkFi3s3.js +365 -0
  12. package/dist/FormError-BlOjnXOq.js +15 -0
  13. package/dist/ImportExportPage-DKJRCezl.js +290 -0
  14. package/dist/InventoryPage-DwfgCUQq.js +253 -0
  15. package/dist/{LiveTrackingPage-DQ1q4Id3.js → LiveTrackingPage-DCX-K-LR.js} +60 -56
  16. package/dist/MarketplacePage-CIQ97_zp.js +247 -0
  17. package/dist/{MetricCard-B7yMyvMX.js → MetricCard-BY0QrMD4.js} +1 -1
  18. package/dist/{OrderDetailsPage-CFASgsYX.js → OrderDetailsPage-DYiZ-9UK.js} +83 -85
  19. package/dist/{OrdersListPage-BHeT8S5o.js → OrdersListPage-BjDlCKJd.js} +31 -33
  20. package/dist/{PageLayout-D3N8MCTm.js → PageLayout-D4LDHJJq.js} +483 -422
  21. package/dist/ProductDetailsPage-C9uOiYLp.js +350 -0
  22. package/dist/{ProductsPage--xEpbQ8A.js → ProductsPage-C1G9h7Xd.js} +22 -24
  23. package/dist/ReportsPage-Zp53q3_8.js +284 -0
  24. package/dist/RouteDetailsPage-DUStXSf9.js +531 -0
  25. package/dist/RoutesPage-DMfoicM1.js +144 -0
  26. package/dist/SettingsPage-Bn-v0mbQ.js +421 -0
  27. package/dist/StatusBadge-BZurYHMy.js +152 -0
  28. package/dist/{TrackingPage-CcRc_dva.js → TrackingPage-W-jtdM3Y.js} +59 -61
  29. package/dist/VehicleDetailsPage-Bceo5oz3.js +410 -0
  30. package/dist/{VehiclesPage-UlxPWP9K.js → VehiclesPage-VBtOep91.js} +20 -22
  31. package/dist/WarehouseDetailsPage-L_6sWigM.js +493 -0
  32. package/dist/{WarehousesPage-CuTO-OPp.js → WarehousesPage-DCbXXXWE.js} +16 -18
  33. package/dist/{arrow-left-CBpZKkpq.js → arrow-left-n48Y-Wis.js} +1 -1
  34. package/dist/{box-CAaiElsb.js → box-D9Pal4HM.js} +1 -1
  35. package/dist/{chart-column-D1Ym15-S.js → chart-column-BFIJysDR.js} +1 -1
  36. package/dist/{chevron-right-BIFGi0UA.js → chevron-right-EMIIyyJ1.js} +1 -1
  37. package/dist/{circle-alert-DjmNo5_L.js → circle-alert-iY24lSlp.js} +1 -1
  38. package/dist/{circle-check-big-CjuPVo3_.js → circle-check-big-w0TrLKMF.js} +1 -1
  39. package/dist/{clock-BjkdnddD.js → clock-DJZtdl8u.js} +1 -1
  40. package/dist/{dollar-sign-IB4O0wuQ.js → dollar-sign-CgKQRz_e.js} +1 -1
  41. package/dist/{download-Dpa9vqoG.js → download-DRXxoiQR.js} +1 -1
  42. package/dist/{file-text-C8Uioy11.js → file-text-DWWY6_f5.js} +1 -1
  43. package/dist/{filter-Da5OZaHI.js → filter-DloLC2eE.js} +1 -1
  44. package/dist/index.js +186 -162
  45. package/dist/{map-_Per4sT9.js → map-CkJaULb2.js} +1 -1
  46. package/dist/{map-pin-BSaf5IDL.js → map-pin-BGiCvyCs.js} +1 -1
  47. package/dist/{navigation-DaTbrhw2.js → navigation-D36prnAn.js} +1 -1
  48. package/dist/{package-BE7U0wQE.js → package-BChUzpJS.js} +1 -1
  49. package/dist/{phone-DV4StZiA.js → phone-Ac9s3mo_.js} +1 -1
  50. package/dist/{plus-Dl1rLeJR.js → plus-Z76q-FZm.js} +1 -1
  51. package/dist/{refresh-cw-CWfERAit.js → refresh-cw-DKt6f5T6.js} +1 -1
  52. package/dist/{save-XH8vydOn.js → save-CojywNhG.js} +1 -1
  53. package/dist/{search-OxoIiL_C.js → search-CDGefqb3.js} +1 -1
  54. package/dist/{square-pen-hLIbFQFV.js → square-pen-CopE9GmB.js} +1 -1
  55. package/dist/{star-YsVV3MNQ.js → star-nHlLjDKR.js} +1 -1
  56. package/dist/{store-RCBl7HB-.js → store-BR9Voi5E.js} +1 -1
  57. package/dist/trash-2-BKhar6Hs.js +32 -0
  58. package/dist/{trending-up-C-85AwGT.js → trending-up-Dohgd4t_.js} +1 -1
  59. package/dist/{triangle-alert-BOhfGgmh.js → triangle-alert-i-XQL9Rd.js} +1 -1
  60. package/dist/{truck-CtDjNFbi.js → truck-C0v_hbLR.js} +1 -1
  61. package/dist/{useAnalytics-ph7eTIK6.js → useAnalytics-DS8n0xgg.js} +40 -40
  62. package/dist/useAssistant-D4v3oxD3.js +84 -0
  63. package/dist/{useCustomers-bS3a4ytk.js → useCustomers-BmTNGxiI.js} +24 -24
  64. package/dist/{useFleet-BdETplNE.js → useFleet-DKqXZ16m.js} +133 -109
  65. package/dist/useImportExport-DHr-SWSw.js +55 -0
  66. package/dist/{useInventory-Dwn18FPz.js → useInventory-DkyiVY_A.js} +95 -75
  67. package/dist/{useOrders-D_3_hGMp.js → useOrders-Cfk1GLiq.js} +42 -42
  68. package/dist/useReports-CTqZr-AB.js +78 -0
  69. package/dist/{useRoutes-v4aBaS-E.js → useRoutes-BQWO607N.js} +31 -31
  70. package/dist/useSettings-CkDH_-gM.js +81 -0
  71. package/dist/{useTracking-De2KIUNu.js → useTracking-B-va1kO3.js} +22 -22
  72. package/dist/{user-Dz5TJZFs.js → user-jyFU3lXk.js} +1 -1
  73. package/dist/{users-g2N0eL-Z.js → users-DZ-ilS6B.js} +1 -1
  74. package/dist/{warehouse-D3WWDeTX.js → warehouse-6m5kXMLu.js} +1 -1
  75. package/dist/{wrench-CmxY1n4I.js → wrench-CANXWxF-.js} +1 -1
  76. package/package.json +1 -1
  77. package/src/movethewheels/MoveTheWheelsRoutes.tsx +31 -3
  78. package/src/movethewheels/components/FormError.tsx +25 -0
  79. package/src/movethewheels/components/StatusBadge.tsx +18 -37
  80. package/src/movethewheels/constants/index.ts +67 -26
  81. package/src/movethewheels/hooks/index.ts +12 -0
  82. package/src/movethewheels/hooks/useAnalytics.ts +20 -6
  83. package/src/movethewheels/hooks/useAssistant.ts +74 -0
  84. package/src/movethewheels/hooks/useFleet.ts +170 -59
  85. package/src/movethewheels/hooks/useImportExport.ts +101 -0
  86. package/src/movethewheels/hooks/useInventory.ts +107 -0
  87. package/src/movethewheels/hooks/useReports.ts +158 -0
  88. package/src/movethewheels/hooks/useSettings.ts +120 -0
  89. package/src/movethewheels/pages/AIAssistantPage.tsx +53 -15
  90. package/src/movethewheels/pages/AnalyticsPage.tsx +67 -64
  91. package/src/movethewheels/pages/CustomerDetailsPage.tsx +154 -21
  92. package/src/movethewheels/pages/CustomersPage.tsx +1 -1
  93. package/src/movethewheels/pages/DashboardPage.tsx +42 -22
  94. package/src/movethewheels/pages/DriverDetailsPage.tsx +160 -3
  95. package/src/movethewheels/pages/DriversPage.tsx +6 -2
  96. package/src/movethewheels/pages/FleetPage.tsx +96 -38
  97. package/src/movethewheels/pages/ImportExportPage.tsx +174 -68
  98. package/src/movethewheels/pages/InventoryPage.tsx +66 -28
  99. package/src/movethewheels/pages/LiveTrackingPage.tsx +12 -3
  100. package/src/movethewheels/pages/MarketplacePage.tsx +87 -45
  101. package/src/movethewheels/pages/OrderDetailsPage.tsx +2 -2
  102. package/src/movethewheels/pages/ProductDetailsPage.tsx +146 -3
  103. package/src/movethewheels/pages/ProductsPage.tsx +5 -1
  104. package/src/movethewheels/pages/ReportsPage.tsx +194 -90
  105. package/src/movethewheels/pages/RouteDetailsPage.tsx +290 -36
  106. package/src/movethewheels/pages/RoutesPage.tsx +4 -9
  107. package/src/movethewheels/pages/SettingsPage.tsx +234 -56
  108. package/src/movethewheels/pages/TrackingPage.tsx +6 -6
  109. package/src/movethewheels/pages/VehicleDetailsPage.tsx +158 -2
  110. package/src/movethewheels/pages/VehiclesPage.tsx +5 -1
  111. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +224 -2
  112. package/src/movethewheels/pages/WarehousesPage.tsx +5 -1
  113. package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +7 -6
  114. package/src/movethewheels/store/movethewheelsStore.ts +1 -1
  115. package/dist/AnalyticsPage-CCLfHgQZ.js +0 -212
  116. package/dist/CustomerDetailsPage-I6cdDHUi.js +0 -265
  117. package/dist/DriverDetailsPage-rg_pGNuP.js +0 -330
  118. package/dist/FleetPage-DddXt8r8.js +0 -332
  119. package/dist/ImportExportPage-BW6qO3kc.js +0 -248
  120. package/dist/InventoryPage-rMGuaJN-.js +0 -222
  121. package/dist/MarketplacePage-DKrXAv62.js +0 -219
  122. package/dist/ProductDetailsPage-CFGcbaHo.js +0 -195
  123. package/dist/ReportsPage-Bb7_90rK.js +0 -235
  124. package/dist/RouteDetailsPage-CVtDVb1N.js +0 -282
  125. package/dist/RoutesPage-s57PtgcQ.js +0 -163
  126. package/dist/SettingsPage-BYNCBOpN.js +0 -298
  127. package/dist/StatusBadge-CijYQXtb.js +0 -209
  128. package/dist/VehicleDetailsPage-3YDMPsPs.js +0 -220
  129. package/dist/WarehouseDetailsPage-Db7KeN-d.js +0 -238
  130. package/dist/graphqlClient-CdJyR_ed.js +0 -55
  131. package/dist/navigation-BgnOfsVd.js +0 -6
  132. package/dist/route-Dp9JiN_E.js +0 -51
  133. package/dist/settings-3Rw5NwFF.js +0 -28
  134. package/src/movethewheels/constants/mockData.ts +0 -1342
  135. /package/dist/{formatters-_vJlC-47.js → formatters-CF2S2l1m.js} +0 -0
package/dist/index.js CHANGED
@@ -1,34 +1,36 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as ee, R as te, S as ne, T as re, U as ie, V as ae, W as oe, X as se, Y as ce, Z as le, _ as ue, a as de, b as fe, c as pe, d as me, et as he, f as ge, g as _e, h as ve, i as _, it as v, j as y, k as b, l as x, m as S, n as C, nt as w, o as T, p as E, q as D, r as O, s as k, t as A, tt as j, u as M, v as N, w as P, x as F, y as ye, z as be } from "./PageLayout-D3N8MCTm.js";
2
- import { t as xe } from "./DataTable-CD9ZhpLB.js";
3
- import { n as Se, t as Ce } from "./route-Dp9JiN_E.js";
4
- import { t as we } from "./chart-column-D1Ym15-S.js";
5
- import { t as Te } from "./dollar-sign-IB4O0wuQ.js";
6
- import { t as Ee } from "./file-text-C8Uioy11.js";
7
- import { n as De, t as Oe } from "./settings-3Rw5NwFF.js";
8
- import { t as ke } from "./map-_Per4sT9.js";
9
- import { t as Ae } from "./package-BE7U0wQE.js";
10
- import { t as je } from "./store-RCBl7HB-.js";
11
- import { t as I } from "./truck-CtDjNFbi.js";
12
- import { t as Me } from "./users-g2N0eL-Z.js";
13
- import { t as L } from "./warehouse-D3WWDeTX.js";
14
- import { i as Ne, n as Pe, r as Fe } from "./graphqlClient-CdJyR_ed.js";
15
- import { n as Ie, r as Le, t as Re } from "./useOrders-D_3_hGMp.js";
16
- import { a as ze, i as Be, n as Ve, o as He, r as Ue, t as We } from "./useFleet-BdETplNE.js";
17
- import { a as Ge, i as Ke, n as qe, o as Je, r as Ye, t as Xe } from "./useInventory-Dwn18FPz.js";
18
- import { n as Ze, r as Qe, t as $e } from "./useCustomers-bS3a4ytk.js";
19
- import { n as et, r as tt, t as nt } from "./useRoutes-v4aBaS-E.js";
20
- import { a as rt, i as it, n as at, o as ot, r as st, t as ct } from "./useAnalytics-ph7eTIK6.js";
21
- import { a as lt, i as ut, n as dt, o as ft, r as pt, s as mt, t as ht } from "./useTracking-De2KIUNu.js";
22
- import { n as gt, r as _t, t as vt } from "./MetricCard-B7yMyvMX.js";
23
- import { a as yt, i as bt, n as xt, r as St, t as Ct } from "./StatusBadge-CijYQXtb.js";
24
- import { Suspense as wt, lazy as R, useEffect as z } from "react";
25
- import { Navigate as Tt, Route as B, Routes as Et } from "react-router-dom";
26
- import { jsx as V, jsxs as H } from "react/jsx-runtime";
27
- import { FeatureFlagProvider as Dt } from "@burdenoff/fe-libs/shared/feature-flags";
28
- import { create as Ot } from "zustand";
29
- import { createProfileScopedStorage as kt } from "@burdenoff/fe-libs/shared/utils";
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as ee, S as te, T as ne, U as re, V as ie, W as ae, X as oe, Y as se, Z as ce, _ as le, a as ue, at as de, b as fe, c as pe, d as me, et as he, f as ge, g as _e, h as ve, i as ye, j as be, k as xe, l as Se, lt as v, m as y, n as b, nt as x, o as S, ot as C, p as w, q as T, r as E, s as D, st as O, t as k, tt as A, u as j, v as Ce, w as we, x as Te, y as Ee, z as De } from "./PageLayout-D4LDHJJq.js";
2
+ import { t as Oe } from "./DataTable-DmciIKKM.js";
3
+ import { n as ke, r as Ae, t as je } from "./useAssistant-D4v3oxD3.js";
4
+ import { t as Me } from "./chart-column-BFIJysDR.js";
5
+ import { t as Ne } from "./dollar-sign-CgKQRz_e.js";
6
+ import { t as Pe } from "./file-text-DWWY6_f5.js";
7
+ import { n as Fe, r as Ie, t as Le } from "./useSettings-CkDH_-gM.js";
8
+ import { t as Re } from "./map-CkJaULb2.js";
9
+ import { t as ze } from "./package-BChUzpJS.js";
10
+ import { t as Be } from "./store-BR9Voi5E.js";
11
+ import { t as M } from "./truck-C0v_hbLR.js";
12
+ import { t as Ve } from "./users-DZ-ilS6B.js";
13
+ import { t as N } from "./warehouse-6m5kXMLu.js";
14
+ import { n as He, r as Ue, t as We } from "./useOrders-Cfk1GLiq.js";
15
+ import { a as Ge, i as Ke, n as qe, o as Je, r as Ye, t as Xe } from "./useFleet-DKqXZ16m.js";
16
+ import { a as Ze, i as Qe, n as $e, o as et, r as tt, t as nt } from "./useInventory-DkyiVY_A.js";
17
+ import { n as rt, r as it, t as at } from "./useCustomers-BmTNGxiI.js";
18
+ import { n as ot, r as st, t as ct } from "./useRoutes-BQWO607N.js";
19
+ import { a as lt, i as ut, n as dt, o as ft, r as pt, t as mt } from "./useAnalytics-DS8n0xgg.js";
20
+ import { a as ht, i as gt, n as _t, o as vt, r as yt, s as bt, t as xt } from "./useTracking-B-va1kO3.js";
21
+ import { t as St } from "./useReports-CTqZr-AB.js";
22
+ import { t as Ct } from "./useImportExport-DHr-SWSw.js";
23
+ import { n as wt, r as Tt, t as Et } from "./MetricCard-BY0QrMD4.js";
24
+ import { a as Dt, i as Ot, n as kt, r as At, t as jt } from "./StatusBadge-BZurYHMy.js";
25
+ import { Suspense as Mt, lazy as P, useEffect as F } from "react";
26
+ import { Route as I, Routes as Nt, useNavigate as Pt } from "react-router-dom";
27
+ import { jsx as L, jsxs as R } from "react/jsx-runtime";
28
+ import { FeatureFlagProvider as Ft } from "@burdenoff/fe-libs/shared/feature-flags";
29
+ import { NotFoundPage as It } from "@burdenoff/fe-libs/shared/pages";
30
+ import { create as Lt } from "zustand";
31
+ import { createProfileScopedStorage as Rt } from "@burdenoff/fe-libs/shared/utils";
30
32
  //#region node_modules/lucide-react/dist/esm/icons/boxes.js
31
- var At = v("Boxes", [
33
+ var zt = v("Boxes", [
32
34
  ["path", {
33
35
  d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",
34
36
  key: "lc1i9w"
@@ -77,7 +79,7 @@ var At = v("Boxes", [
77
79
  d: "M12 13.5V8",
78
80
  key: "1io7kd"
79
81
  }]
80
- ]), jt = v("Car", [
82
+ ]), Bt = v("Car", [
81
83
  ["path", {
82
84
  d: "M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",
83
85
  key: "5owen"
@@ -98,7 +100,7 @@ var At = v("Boxes", [
98
100
  r: "2",
99
101
  key: "axvx0g"
100
102
  }]
101
- ]), U = v("LayoutDashboard", [
103
+ ]), z = v("LayoutDashboard", [
102
104
  ["rect", {
103
105
  width: "7",
104
106
  height: "9",
@@ -131,7 +133,7 @@ var At = v("Boxes", [
131
133
  rx: "1",
132
134
  key: "ldoo1y"
133
135
  }]
134
- ]), Mt = v("UserCheck", [
136
+ ]), Vt = v("UserCheck", [
135
137
  ["path", {
136
138
  d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
137
139
  key: "1yyitq"
@@ -149,163 +151,185 @@ var At = v("Boxes", [
149
151
  ]);
150
152
  //#endregion
151
153
  //#region src/movethewheels/MoveTheWheelsRoutes.tsx
152
- function Nt() {
153
- return /* @__PURE__ */ V("div", {
154
+ function Ht() {
155
+ let { navigate: e, basePath: t } = C(), n = Pt();
156
+ return /* @__PURE__ */ L(It, {
157
+ homeLabel: "Back to MoveTheWheels",
158
+ onGoHome: () => {
159
+ e ? e(t || "/") : n("/");
160
+ }
161
+ });
162
+ }
163
+ function Ut() {
164
+ return /* @__PURE__ */ L("div", {
154
165
  className: "flex items-center justify-center min-h-[400px]",
155
- children: /* @__PURE__ */ H("div", {
166
+ children: /* @__PURE__ */ R("div", {
156
167
  className: "flex flex-col items-center gap-3",
157
- children: [/* @__PURE__ */ V("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }), /* @__PURE__ */ V("p", {
168
+ children: [/* @__PURE__ */ L("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }), /* @__PURE__ */ L("p", {
158
169
  className: "text-sm text-text-secondary",
159
170
  children: "Loading..."
160
171
  })]
161
172
  })
162
173
  });
163
174
  }
164
- var Pt = R(() => import("./DashboardPage-D2HRqwg9.js")), Ft = R(() => import("./OrdersListPage-BHeT8S5o.js")), It = R(() => import("./OrderDetailsPage-CFASgsYX.js")), W = R(() => import("./CreateOrderPage-CjlnEtk3.js")), Lt = R(() => import("./TrackingPage-CcRc_dva.js")), Rt = R(() => import("./LiveTrackingPage-DQ1q4Id3.js")), zt = R(() => import("./FleetPage-DddXt8r8.js")), Bt = R(() => import("./VehiclesPage-UlxPWP9K.js")), Vt = R(() => import("./VehicleDetailsPage-3YDMPsPs.js")), Ht = R(() => import("./DriversPage-DKiynISH.js")), Ut = R(() => import("./DriverDetailsPage-rg_pGNuP.js")), Wt = R(() => import("./InventoryPage-rMGuaJN-.js")), Gt = R(() => import("./ProductsPage--xEpbQ8A.js")), Kt = R(() => import("./ProductDetailsPage-CFGcbaHo.js")), qt = R(() => import("./WarehousesPage-CuTO-OPp.js")), Jt = R(() => import("./WarehouseDetailsPage-Db7KeN-d.js")), Yt = R(() => import("./CustomersPage-CGGfD4ki.js")), G = R(() => import("./CustomerDetailsPage-I6cdDHUi.js")), Xt = R(() => import("./RoutesPage-s57PtgcQ.js")), K = R(() => import("./RouteDetailsPage-CVtDVb1N.js")), Zt = R(() => import("./AnalyticsPage-CCLfHgQZ.js")), Qt = R(() => import("./FinancePage-Vg8WPs38.js")), $t = R(() => import("./MarketplacePage-DKrXAv62.js")), en = R(() => import("./ImportExportPage-BW6qO3kc.js")), tn = R(() => import("./ReportsPage-Bb7_90rK.js")), nn = R(() => import("./SettingsPage-BYNCBOpN.js")), rn = R(() => import("./AIAssistantPage-AvsMbunM.js"));
165
- function an() {
166
- return /* @__PURE__ */ V(wt, {
167
- fallback: /* @__PURE__ */ V(Nt, {}),
168
- children: /* @__PURE__ */ H(Et, { children: [
169
- /* @__PURE__ */ V(B, {
175
+ var Wt = P(() => import("./DashboardPage-BVjQi0EB.js")), Gt = P(() => import("./OrdersListPage-BjDlCKJd.js")), Kt = P(() => import("./OrderDetailsPage-DYiZ-9UK.js")), B = P(() => import("./CreateOrderPage-C5iwnjp4.js")), qt = P(() => import("./TrackingPage-W-jtdM3Y.js")), Jt = P(() => import("./LiveTrackingPage-DCX-K-LR.js")), Yt = P(() => import("./FleetPage-DqkFi3s3.js")), Xt = P(() => import("./VehiclesPage-VBtOep91.js")), V = P(() => import("./VehicleDetailsPage-Bceo5oz3.js")), Zt = P(() => import("./DriversPage-B0Zpx8OQ.js")), H = P(() => import("./DriverDetailsPage-CN3WQ0B9.js")), Qt = P(() => import("./InventoryPage-DwfgCUQq.js")), $t = P(() => import("./ProductsPage-C1G9h7Xd.js")), U = P(() => import("./ProductDetailsPage-C9uOiYLp.js")), en = P(() => import("./WarehousesPage-DCbXXXWE.js")), W = P(() => import("./WarehouseDetailsPage-L_6sWigM.js")), tn = P(() => import("./CustomersPage-2Y05LVyh.js")), G = P(() => import("./CustomerDetailsPage-B6nwFyLO.js")), nn = P(() => import("./RoutesPage-DMfoicM1.js")), K = P(() => import("./RouteDetailsPage-DUStXSf9.js")), rn = P(() => import("./AnalyticsPage-Dz6g2MvK.js")), an = P(() => import("./FinancePage-DEDykSOP.js")), on = P(() => import("./MarketplacePage-CIQ97_zp.js")), sn = P(() => import("./ImportExportPage-DKJRCezl.js")), q = P(() => import("./ReportsPage-Zp53q3_8.js")), cn = P(() => import("./SettingsPage-Bn-v0mbQ.js")), ln = P(() => import("./AIAssistantPage-C3cPsWt-.js"));
176
+ function un() {
177
+ return /* @__PURE__ */ L(Mt, {
178
+ fallback: /* @__PURE__ */ L(Ut, {}),
179
+ children: /* @__PURE__ */ R(Nt, { children: [
180
+ /* @__PURE__ */ L(I, {
170
181
  index: !0,
171
- element: /* @__PURE__ */ V(Pt, {})
182
+ element: /* @__PURE__ */ L(Wt, {})
172
183
  }),
173
- /* @__PURE__ */ V(B, {
184
+ /* @__PURE__ */ L(I, {
174
185
  path: "orders",
175
- element: /* @__PURE__ */ V(Ft, {})
186
+ element: /* @__PURE__ */ L(Gt, {})
176
187
  }),
177
- /* @__PURE__ */ V(B, {
188
+ /* @__PURE__ */ L(I, {
178
189
  path: "orders/new",
179
- element: /* @__PURE__ */ V(W, {})
190
+ element: /* @__PURE__ */ L(B, {})
180
191
  }),
181
- /* @__PURE__ */ V(B, {
192
+ /* @__PURE__ */ L(I, {
182
193
  path: "orders/:orderId",
183
- element: /* @__PURE__ */ V(It, {})
194
+ element: /* @__PURE__ */ L(Kt, {})
184
195
  }),
185
- /* @__PURE__ */ V(B, {
196
+ /* @__PURE__ */ L(I, {
186
197
  path: "orders/:orderId/edit",
187
- element: /* @__PURE__ */ V(W, {})
198
+ element: /* @__PURE__ */ L(B, {})
188
199
  }),
189
- /* @__PURE__ */ V(B, {
200
+ /* @__PURE__ */ L(I, {
190
201
  path: "tracking",
191
- element: /* @__PURE__ */ V(Lt, {})
202
+ element: /* @__PURE__ */ L(qt, {})
192
203
  }),
193
- /* @__PURE__ */ V(B, {
204
+ /* @__PURE__ */ L(I, {
194
205
  path: "tracking/live",
195
- element: /* @__PURE__ */ V(Rt, {})
206
+ element: /* @__PURE__ */ L(Jt, {})
196
207
  }),
197
- /* @__PURE__ */ V(B, {
208
+ /* @__PURE__ */ L(I, {
198
209
  path: "fleet",
199
- element: /* @__PURE__ */ V(zt, {})
210
+ element: /* @__PURE__ */ L(Yt, {})
200
211
  }),
201
- /* @__PURE__ */ V(B, {
212
+ /* @__PURE__ */ L(I, {
202
213
  path: "fleet/vehicles",
203
- element: /* @__PURE__ */ V(Bt, {})
214
+ element: /* @__PURE__ */ L(Xt, {})
215
+ }),
216
+ /* @__PURE__ */ L(I, {
217
+ path: "fleet/vehicles/new",
218
+ element: /* @__PURE__ */ L(V, {})
204
219
  }),
205
- /* @__PURE__ */ V(B, {
220
+ /* @__PURE__ */ L(I, {
206
221
  path: "fleet/vehicles/:vehicleId",
207
- element: /* @__PURE__ */ V(Vt, {})
222
+ element: /* @__PURE__ */ L(V, {})
208
223
  }),
209
- /* @__PURE__ */ V(B, {
224
+ /* @__PURE__ */ L(I, {
210
225
  path: "fleet/drivers",
211
- element: /* @__PURE__ */ V(Ht, {})
226
+ element: /* @__PURE__ */ L(Zt, {})
212
227
  }),
213
- /* @__PURE__ */ V(B, {
228
+ /* @__PURE__ */ L(I, {
229
+ path: "fleet/drivers/new",
230
+ element: /* @__PURE__ */ L(H, {})
231
+ }),
232
+ /* @__PURE__ */ L(I, {
214
233
  path: "fleet/drivers/:driverId",
215
- element: /* @__PURE__ */ V(Ut, {})
234
+ element: /* @__PURE__ */ L(H, {})
216
235
  }),
217
- /* @__PURE__ */ V(B, {
236
+ /* @__PURE__ */ L(I, {
218
237
  path: "inventory",
219
- element: /* @__PURE__ */ V(Wt, {})
238
+ element: /* @__PURE__ */ L(Qt, {})
220
239
  }),
221
- /* @__PURE__ */ V(B, {
240
+ /* @__PURE__ */ L(I, {
222
241
  path: "inventory/products",
223
- element: /* @__PURE__ */ V(Gt, {})
242
+ element: /* @__PURE__ */ L($t, {})
243
+ }),
244
+ /* @__PURE__ */ L(I, {
245
+ path: "inventory/products/new",
246
+ element: /* @__PURE__ */ L(U, {})
224
247
  }),
225
- /* @__PURE__ */ V(B, {
248
+ /* @__PURE__ */ L(I, {
226
249
  path: "inventory/products/:productId",
227
- element: /* @__PURE__ */ V(Kt, {})
250
+ element: /* @__PURE__ */ L(U, {})
228
251
  }),
229
- /* @__PURE__ */ V(B, {
252
+ /* @__PURE__ */ L(I, {
230
253
  path: "inventory/warehouses",
231
- element: /* @__PURE__ */ V(qt, {})
254
+ element: /* @__PURE__ */ L(en, {})
255
+ }),
256
+ /* @__PURE__ */ L(I, {
257
+ path: "inventory/warehouses/new",
258
+ element: /* @__PURE__ */ L(W, {})
232
259
  }),
233
- /* @__PURE__ */ V(B, {
260
+ /* @__PURE__ */ L(I, {
234
261
  path: "inventory/warehouses/:warehouseId",
235
- element: /* @__PURE__ */ V(Jt, {})
262
+ element: /* @__PURE__ */ L(W, {})
236
263
  }),
237
- /* @__PURE__ */ V(B, {
264
+ /* @__PURE__ */ L(I, {
238
265
  path: "customers",
239
- element: /* @__PURE__ */ V(Yt, {})
266
+ element: /* @__PURE__ */ L(tn, {})
240
267
  }),
241
- /* @__PURE__ */ V(B, {
268
+ /* @__PURE__ */ L(I, {
242
269
  path: "customers/new",
243
- element: /* @__PURE__ */ V(G, {})
270
+ element: /* @__PURE__ */ L(G, {})
244
271
  }),
245
- /* @__PURE__ */ V(B, {
272
+ /* @__PURE__ */ L(I, {
246
273
  path: "customers/:customerId",
247
- element: /* @__PURE__ */ V(G, {})
274
+ element: /* @__PURE__ */ L(G, {})
248
275
  }),
249
- /* @__PURE__ */ V(B, {
276
+ /* @__PURE__ */ L(I, {
250
277
  path: "routes",
251
- element: /* @__PURE__ */ V(Xt, {})
278
+ element: /* @__PURE__ */ L(nn, {})
252
279
  }),
253
- /* @__PURE__ */ V(B, {
280
+ /* @__PURE__ */ L(I, {
254
281
  path: "routes/new",
255
- element: /* @__PURE__ */ V(K, {})
282
+ element: /* @__PURE__ */ L(K, {})
256
283
  }),
257
- /* @__PURE__ */ V(B, {
284
+ /* @__PURE__ */ L(I, {
258
285
  path: "routes/:routeId",
259
- element: /* @__PURE__ */ V(K, {})
286
+ element: /* @__PURE__ */ L(K, {})
260
287
  }),
261
- /* @__PURE__ */ V(B, {
288
+ /* @__PURE__ */ L(I, {
262
289
  path: "analytics",
263
- element: /* @__PURE__ */ V(Zt, {})
290
+ element: /* @__PURE__ */ L(rn, {})
264
291
  }),
265
- /* @__PURE__ */ V(B, {
292
+ /* @__PURE__ */ L(I, {
266
293
  path: "finance",
267
- element: /* @__PURE__ */ V(Qt, {})
294
+ element: /* @__PURE__ */ L(an, {})
268
295
  }),
269
- /* @__PURE__ */ V(B, {
296
+ /* @__PURE__ */ L(I, {
270
297
  path: "marketplace",
271
- element: /* @__PURE__ */ V($t, {})
298
+ element: /* @__PURE__ */ L(on, {})
272
299
  }),
273
- /* @__PURE__ */ V(B, {
300
+ /* @__PURE__ */ L(I, {
274
301
  path: "import-export",
275
- element: /* @__PURE__ */ V(en, {})
302
+ element: /* @__PURE__ */ L(sn, {})
276
303
  }),
277
- /* @__PURE__ */ V(B, {
304
+ /* @__PURE__ */ L(I, {
278
305
  path: "reports",
279
- element: /* @__PURE__ */ V(tn, {})
306
+ element: /* @__PURE__ */ L(q, {})
280
307
  }),
281
- /* @__PURE__ */ V(B, {
308
+ /* @__PURE__ */ L(I, {
282
309
  path: "ai-assistant",
283
- element: /* @__PURE__ */ V(rn, {})
310
+ element: /* @__PURE__ */ L(ln, {})
284
311
  }),
285
- /* @__PURE__ */ V(B, {
312
+ /* @__PURE__ */ L(I, {
286
313
  path: "settings",
287
- element: /* @__PURE__ */ V(nn, {})
314
+ element: /* @__PURE__ */ L(cn, {})
288
315
  }),
289
- /* @__PURE__ */ V(B, {
316
+ /* @__PURE__ */ L(I, {
290
317
  path: "*",
291
- element: /* @__PURE__ */ V(Tt, {
292
- to: "",
293
- replace: !0
294
- })
318
+ element: /* @__PURE__ */ L(Ht, {})
295
319
  })
296
320
  ] })
297
321
  });
298
322
  }
299
323
  //#endregion
300
324
  //#region src/movethewheels/MoveTheWheelsRoot.tsx
301
- var on = (e) => {
325
+ var dn = (e) => {
302
326
  let { registerNavItems: t, registerFooterItems: n, basePath: r = "/" } = e, i = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
303
- return z(() => {
327
+ return F(() => {
304
328
  if (t) return t({
305
329
  id: "movethewheels",
306
330
  label: "MoveTheWheels",
307
331
  path: r,
308
- icon: /* @__PURE__ */ V(I, { size: 20 }),
332
+ icon: /* @__PURE__ */ L(M, { size: 20 }),
309
333
  order: 25,
310
334
  group: "workspace",
311
335
  children: [
@@ -313,49 +337,49 @@ var on = (e) => {
313
337
  id: "mtw-dashboard",
314
338
  label: "Dashboard",
315
339
  path: r,
316
- icon: /* @__PURE__ */ V(U, { size: 16 }),
340
+ icon: /* @__PURE__ */ L(z, { size: 16 }),
317
341
  order: 1
318
342
  },
319
343
  {
320
344
  id: "mtw-orders",
321
345
  label: "Orders",
322
346
  path: i(r, "orders"),
323
- icon: /* @__PURE__ */ V(Ae, { size: 16 }),
347
+ icon: /* @__PURE__ */ L(ze, { size: 16 }),
324
348
  order: 2
325
349
  },
326
350
  {
327
351
  id: "mtw-tracking",
328
352
  label: "Tracking",
329
353
  path: i(r, "tracking"),
330
- icon: /* @__PURE__ */ V(ke, { size: 16 }),
354
+ icon: /* @__PURE__ */ L(Re, { size: 16 }),
331
355
  order: 3
332
356
  },
333
357
  {
334
358
  id: "mtw-fleet",
335
359
  label: "Fleet",
336
360
  path: i(r, "fleet"),
337
- icon: /* @__PURE__ */ V(I, { size: 16 }),
361
+ icon: /* @__PURE__ */ L(M, { size: 16 }),
338
362
  order: 4,
339
363
  children: [
340
364
  {
341
365
  id: "mtw-fleet-overview",
342
366
  label: "Overview",
343
367
  path: i(r, "fleet"),
344
- icon: /* @__PURE__ */ V(U, { size: 14 }),
368
+ icon: /* @__PURE__ */ L(z, { size: 14 }),
345
369
  order: 1
346
370
  },
347
371
  {
348
372
  id: "mtw-vehicles",
349
373
  label: "Vehicles",
350
374
  path: i(r, "fleet/vehicles"),
351
- icon: /* @__PURE__ */ V(jt, { size: 14 }),
375
+ icon: /* @__PURE__ */ L(Bt, { size: 14 }),
352
376
  order: 2
353
377
  },
354
378
  {
355
379
  id: "mtw-drivers",
356
380
  label: "Drivers",
357
381
  path: i(r, "fleet/drivers"),
358
- icon: /* @__PURE__ */ V(Mt, { size: 14 }),
382
+ icon: /* @__PURE__ */ L(Vt, { size: 14 }),
359
383
  order: 3
360
384
  }
361
385
  ]
@@ -364,28 +388,28 @@ var on = (e) => {
364
388
  id: "mtw-inventory",
365
389
  label: "Inventory",
366
390
  path: i(r, "inventory"),
367
- icon: /* @__PURE__ */ V(L, { size: 16 }),
391
+ icon: /* @__PURE__ */ L(N, { size: 16 }),
368
392
  order: 5,
369
393
  children: [
370
394
  {
371
395
  id: "mtw-inventory-overview",
372
396
  label: "Overview",
373
397
  path: i(r, "inventory"),
374
- icon: /* @__PURE__ */ V(U, { size: 14 }),
398
+ icon: /* @__PURE__ */ L(z, { size: 14 }),
375
399
  order: 1
376
400
  },
377
401
  {
378
402
  id: "mtw-products",
379
403
  label: "Products",
380
404
  path: i(r, "inventory/products"),
381
- icon: /* @__PURE__ */ V(At, { size: 14 }),
405
+ icon: /* @__PURE__ */ L(zt, { size: 14 }),
382
406
  order: 2
383
407
  },
384
408
  {
385
409
  id: "mtw-warehouses",
386
410
  label: "Warehouses",
387
411
  path: i(r, "inventory/warehouses"),
388
- icon: /* @__PURE__ */ V(L, { size: 14 }),
412
+ icon: /* @__PURE__ */ L(N, { size: 14 }),
389
413
  order: 3
390
414
  }
391
415
  ]
@@ -394,68 +418,68 @@ var on = (e) => {
394
418
  id: "mtw-customers",
395
419
  label: "Customers",
396
420
  path: i(r, "customers"),
397
- icon: /* @__PURE__ */ V(Me, { size: 16 }),
421
+ icon: /* @__PURE__ */ L(Ve, { size: 16 }),
398
422
  order: 6
399
423
  },
400
424
  {
401
425
  id: "mtw-routes",
402
426
  label: "Routes",
403
427
  path: i(r, "routes"),
404
- icon: /* @__PURE__ */ V(Ce, { size: 16 }),
428
+ icon: /* @__PURE__ */ L(ke, { size: 16 }),
405
429
  order: 7
406
430
  },
407
431
  {
408
432
  id: "mtw-analytics",
409
433
  label: "Analytics",
410
434
  path: i(r, "analytics"),
411
- icon: /* @__PURE__ */ V(we, { size: 16 }),
435
+ icon: /* @__PURE__ */ L(Me, { size: 16 }),
412
436
  order: 8
413
437
  },
414
438
  {
415
439
  id: "mtw-finance",
416
440
  label: "Finance",
417
441
  path: i(r, "finance"),
418
- icon: /* @__PURE__ */ V(Te, { size: 16 }),
442
+ icon: /* @__PURE__ */ L(Ne, { size: 16 }),
419
443
  order: 9
420
444
  },
421
445
  {
422
446
  id: "mtw-marketplace",
423
447
  label: "Marketplace",
424
448
  path: i(r, "marketplace"),
425
- icon: /* @__PURE__ */ V(je, { size: 16 }),
449
+ icon: /* @__PURE__ */ L(Be, { size: 16 }),
426
450
  order: 10
427
451
  },
428
452
  {
429
453
  id: "mtw-import-export",
430
454
  label: "Import/Export",
431
455
  path: i(r, "import-export"),
432
- icon: /* @__PURE__ */ V(De, { size: 16 }),
456
+ icon: /* @__PURE__ */ L(Ie, { size: 16 }),
433
457
  order: 11
434
458
  },
435
459
  {
436
460
  id: "mtw-reports",
437
461
  label: "Reports",
438
462
  path: i(r, "reports"),
439
- icon: /* @__PURE__ */ V(Ee, { size: 16 }),
463
+ icon: /* @__PURE__ */ L(Pe, { size: 16 }),
440
464
  order: 12
441
465
  },
442
466
  {
443
467
  id: "mtw-ai-assistant",
444
468
  label: "AI Assistant",
445
469
  path: i(r, "ai-assistant"),
446
- icon: /* @__PURE__ */ V(Se, { size: 16 }),
470
+ icon: /* @__PURE__ */ L(Ae, { size: 16 }),
447
471
  order: 13
448
472
  },
449
473
  {
450
474
  id: "mtw-settings",
451
475
  label: "Settings",
452
476
  path: i(r, "settings"),
453
- icon: /* @__PURE__ */ V(Oe, { size: 16 }),
477
+ icon: /* @__PURE__ */ L(Fe, { size: 16 }),
454
478
  order: 99
455
479
  }
456
480
  ]
457
481
  });
458
- }, [t, r]), z(() => {
482
+ }, [t, r]), F(() => {
459
483
  if (n) return n([{
460
484
  id: "mtw-status",
461
485
  label: "Logistics Ready",
@@ -463,27 +487,27 @@ var on = (e) => {
463
487
  order: 20,
464
488
  section: "left"
465
489
  }]);
466
- }, [n]), /* @__PURE__ */ V(Dt, {
490
+ }, [n]), /* @__PURE__ */ L(Ft, {
467
491
  workspaceId: null,
468
492
  gateway: "global",
469
493
  defaultEnabled: !0,
470
- children: /* @__PURE__ */ V(Pe, {
494
+ children: /* @__PURE__ */ L(de, {
471
495
  ...e,
472
- children: /* @__PURE__ */ V("div", {
496
+ children: /* @__PURE__ */ L("div", {
473
497
  className: "movethewheels-root h-full",
474
- children: /* @__PURE__ */ V(an, {})
498
+ children: /* @__PURE__ */ L(un, {})
475
499
  })
476
500
  })
477
501
  });
478
- }, q = (e) => !!e.dispatchFromDevtools && typeof e.dispatch == "function", J = /* @__PURE__ */ new Map(), Y = (e) => {
479
- let t = J.get(e);
502
+ }, J = (e) => !!e.dispatchFromDevtools && typeof e.dispatch == "function", Y = /* @__PURE__ */ new Map(), X = (e) => {
503
+ let t = Y.get(e);
480
504
  return t ? Object.fromEntries(Object.entries(t.stores).map(([e, t]) => [e, t.getState()])) : {};
481
- }, sn = (e, t, n) => {
505
+ }, fn = (e, t, n) => {
482
506
  if (e === void 0) return {
483
507
  type: "untracked",
484
508
  connection: t.connect(n)
485
509
  };
486
- let r = J.get(n.name);
510
+ let r = Y.get(n.name);
487
511
  if (r) return {
488
512
  type: "tracked",
489
513
  store: e,
@@ -493,49 +517,49 @@ var on = (e) => {
493
517
  connection: t.connect(n),
494
518
  stores: {}
495
519
  };
496
- return J.set(n.name, i), {
520
+ return Y.set(n.name, i), {
497
521
  type: "tracked",
498
522
  store: e,
499
523
  ...i
500
524
  };
501
- }, cn = (e, t) => {
525
+ }, pn = (e, t) => {
502
526
  if (t === void 0) return;
503
- let n = J.get(e);
504
- n && (delete n.stores[t], Object.keys(n.stores).length === 0 && J.delete(e));
505
- }, ln = /.+ (.+) .+/, un = /^([^@]+)@/;
506
- function X(e) {
527
+ let n = Y.get(e);
528
+ n && (delete n.stores[t], Object.keys(n.stores).length === 0 && Y.delete(e));
529
+ }, mn = /.+ (.+) .+/, hn = /^([^@]+)@/;
530
+ function gn(e) {
507
531
  if (!e) return;
508
532
  let t = e.split("\n"), n = t.findIndex((e) => e.includes("api.setState"));
509
533
  if (n < 0) return;
510
534
  let r = t[n + 1]?.trim() || "";
511
- return ln.exec(r)?.[1] || un.exec(r)?.[1];
535
+ return mn.exec(r)?.[1] || hn.exec(r)?.[1];
512
536
  }
513
- var dn = (e, t = {}) => (n, r, i) => {
537
+ var _n = (e, t = {}) => (n, r, i) => {
514
538
  let { enabled: a, anonymousActionType: o, store: s, ...c } = t, l;
515
539
  try {
516
540
  l = (a ?? !1) && window.__REDUX_DEVTOOLS_EXTENSION__;
517
541
  } catch {}
518
542
  if (!l) return e(n, r, i);
519
- let { connection: u, ...d } = sn(s, l, c), f = !0;
543
+ let { connection: u, ...d } = fn(s, l, c), f = !0;
520
544
  i.setState = ((e, t, a) => {
521
545
  let l = n(e, t);
522
546
  if (!f) return l;
523
- let d = a === void 0 ? { type: o || X((/* @__PURE__ */ Error()).stack) || "anonymous" } : typeof a == "string" ? { type: a } : a;
547
+ let d = a === void 0 ? { type: o || gn((/* @__PURE__ */ Error()).stack) || "anonymous" } : typeof a == "string" ? { type: a } : a;
524
548
  return s === void 0 ? (u?.send(d, r()), l) : (u?.send({
525
549
  ...d,
526
550
  type: `${s}/${d.type}`
527
551
  }, {
528
- ...Y(c.name),
552
+ ...X(c.name),
529
553
  [s]: i.getState()
530
554
  }), l);
531
555
  }), i.devtools = { cleanup: () => {
532
- u && typeof u.unsubscribe == "function" && u.unsubscribe(), cn(c.name, s);
556
+ u && typeof u.unsubscribe == "function" && u.unsubscribe(), pn(c.name, s);
533
557
  } };
534
558
  let p = (...e) => {
535
559
  let t = f;
536
560
  f = !1, n(...e), f = t;
537
561
  }, m = e(i.setState, r, i);
538
- if (d.type === "untracked" ? u?.init(m) : (d.stores[d.store] = i, u?.init(Object.fromEntries(Object.entries(d.stores).map(([e, t]) => [e, e === d.store ? m : t.getState()])))), q(i)) {
562
+ if (d.type === "untracked" ? u?.init(m) : (d.stores[d.store] = i, u?.init(Object.fromEntries(Object.entries(d.stores).map(([e, t]) => [e, e === d.store ? m : t.getState()])))), J(i)) {
539
563
  let e = i.dispatch;
540
564
  i.dispatch = (...t) => {
541
565
  e(...t);
@@ -560,23 +584,23 @@ var dn = (e, t = {}) => (n, r, i) => {
560
584
  JSON.stringify(i.getState()) !== JSON.stringify(t) && p(t);
561
585
  return;
562
586
  }
563
- q(i) && i.dispatch(e);
587
+ J(i) && i.dispatch(e);
564
588
  });
565
589
  case "DISPATCH":
566
590
  switch (e.payload.type) {
567
- case "RESET": return p(m), s === void 0 ? u?.init(i.getState()) : u?.init(Y(c.name));
591
+ case "RESET": return p(m), s === void 0 ? u?.init(i.getState()) : u?.init(X(c.name));
568
592
  case "COMMIT":
569
593
  if (s === void 0) {
570
594
  u?.init(i.getState());
571
595
  return;
572
596
  }
573
- return u?.init(Y(c.name));
597
+ return u?.init(X(c.name));
574
598
  case "ROLLBACK": return Z(e.state, (e) => {
575
599
  if (s === void 0) {
576
600
  p(e), u?.init(i.getState());
577
601
  return;
578
602
  }
579
- p(e[s]), u?.init(Y(c.name));
603
+ p(e[s]), u?.init(X(c.name));
580
604
  });
581
605
  case "JUMP_TO_STATE":
582
606
  case "JUMP_TO_ACTION": return Z(e.state, (e) => {
@@ -606,7 +630,7 @@ var dn = (e, t = {}) => (n, r, i) => {
606
630
  }
607
631
  n !== void 0 && t(n);
608
632
  };
609
- function fn(e, t) {
633
+ function vn(e, t) {
610
634
  let n;
611
635
  try {
612
636
  n = e();
@@ -643,9 +667,9 @@ var Q = (e) => (t) => {
643
667
  }
644
668
  };
645
669
  }
646
- }, pn = (e, t) => (n, r, i) => {
670
+ }, yn = (e, t) => (n, r, i) => {
647
671
  let a = {
648
- storage: fn(() => window.localStorage),
672
+ storage: vn(() => window.localStorage),
649
673
  partialize: (e) => e,
650
674
  version: 0,
651
675
  merge: (e, t) => ({
@@ -725,7 +749,7 @@ var Q = (e) => (t) => {
725
749
  inventoryFilters: {},
726
750
  customerFilters: {},
727
751
  globalSearch: ""
728
- }, mn = Ot()(dn(pn((e) => ({
752
+ }, bn = Lt()(_n(yn((e) => ({
729
753
  ...$,
730
754
  setViewMode: (t) => e({ viewMode: t }),
731
755
  setSidebarCollapsed: (t) => e({ sidebarCollapsed: t }),
@@ -762,11 +786,11 @@ var Q = (e) => (t) => {
762
786
  reset: () => e($)
763
787
  }), {
764
788
  name: "movethewheels-storage",
765
- storage: kt(),
789
+ storage: Rt(),
766
790
  partialize: (e) => ({
767
791
  viewMode: e.viewMode,
768
792
  sidebarCollapsed: e.sidebarCollapsed
769
793
  })
770
794
  }), { name: "MoveTheWheelsStore" }));
771
795
  //#endregion
772
- export { T as Avatar, k as AvatarFallback, pe as AvatarImage, x as Badge, M as Button, me as Card, ge as CardContent, E as CardDescription, S as CardFooter, ve as CardHeader, _e as CardTitle, ue as Checkbox, xe as DataTable, N as Dialog, ye as DialogContent, fe as DialogDescription, F as DialogFooter, ne as DialogHeader, r as DialogTitle, P as DialogTrigger, re as DropdownMenu, a as DropdownMenuContent, i as DropdownMenuItem, h as DropdownMenuSeparator, b as DropdownMenuTrigger, A as EmptyState, C as ErrorState, t as Input, y as Label, O as LoadingState, vt as MetricCard, gt as MetricCardSkeleton, _t as MetricGrid, on as MoveTheWheelsRoot, _ as PageLayout, de as PageSection, Ct as PaymentStatusBadge, xt as PriorityBadge, p as Progress, m as ScrollArea, g as Select, o as SelectContent, l as SelectItem, f as SelectTrigger, te as SelectValue, be as Separator, n as Skeleton, St as StatusBadge, ae as Switch, c as Table, ie as TableBody, oe as TableCell, s as TableHead, d as TableHeader, D as TableRow, u as Tabs, ce as TabsContent, se as TabsList, le as TabsTrigger, ee as Textarea, e as Tooltip, he as TooltipContent, j as TooltipProvider, w as TooltipTrigger, bt as TypeBadge, yt as VehicleTypeBadge, ct as useAnalytics, $e as useCustomer, Ze as useCustomerStats, Qe as useCustomers, at as useDashboardMetrics, We as useDriver, ht as useDriverTracking, Ve as useDrivers, Ue as useFleet, st as useFleetAnalytics, Be as useFleetStats, dt as useGeofence, Xe as useInventory, qe as useInventoryStats, pt as useLiveTracking, Fe as useMoveTheWheels, Ne as useMoveTheWheelsNavigate, mn as useMoveTheWheelsStore, Re as useOrder, it as useOrderAnalytics, Ie as useOrderStats, ut as useOrderTracking, Le as useOrders, rt as usePerformanceAnalytics, Ye as useProduct, Ke as useProducts, ot as useRevenueAnalytics, nt as useRoute, et as useRouteStats, tt as useRoutes, lt as useTracking, ft as useTrackingAlerts, ze as useVehicle, mt as useVehicleTracking, He as useVehicles, Ge as useWarehouse, Je as useWarehouses };
796
+ export { S as Avatar, D as AvatarFallback, pe as AvatarImage, Se as Badge, j as Button, me as Card, ge as CardContent, w as CardDescription, y as CardFooter, ve as CardHeader, _e as CardTitle, le as Checkbox, Oe as DataTable, Ce as Dialog, Ee as DialogContent, fe as DialogDescription, Te as DialogFooter, te as DialogHeader, r as DialogTitle, we as DialogTrigger, ne as DropdownMenu, a as DropdownMenuContent, i as DropdownMenuItem, h as DropdownMenuSeparator, xe as DropdownMenuTrigger, k as EmptyState, b as ErrorState, t as Input, be as Label, E as LoadingState, Et as MetricCard, wt as MetricCardSkeleton, Tt as MetricGrid, dn as MoveTheWheelsRoot, ye as PageLayout, ue as PageSection, jt as PaymentStatusBadge, kt as PriorityBadge, p as Progress, m as ScrollArea, g as Select, o as SelectContent, l as SelectItem, f as SelectTrigger, ee as SelectValue, De as Separator, n as Skeleton, At as StatusBadge, ie as Switch, c as Table, re as TableBody, ae as TableCell, s as TableHead, d as TableHeader, T as TableRow, u as Tabs, se as TabsContent, oe as TabsList, ce as TabsTrigger, _ as Textarea, e as Tooltip, he as TooltipContent, A as TooltipProvider, x as TooltipTrigger, Ot as TypeBadge, Dt as VehicleTypeBadge, mt as useAnalytics, je as useAssistant, at as useCustomer, rt as useCustomerStats, it as useCustomers, dt as useDashboardMetrics, Xe as useDriver, xt as useDriverTracking, qe as useDrivers, Ye as useFleet, pt as useFleetAnalytics, Ke as useFleetStats, _t as useGeofence, Ct as useImportExport, nt as useInventory, $e as useInventoryStats, yt as useLiveTracking, Le as useModuleSettings, C as useMoveTheWheels, O as useMoveTheWheelsNavigate, bn as useMoveTheWheelsStore, We as useOrder, ut as useOrderAnalytics, He as useOrderStats, gt as useOrderTracking, Ue as useOrders, lt as usePerformanceAnalytics, tt as useProduct, Qe as useProducts, St as useReports, ft as useRevenueAnalytics, ct as useRoute, ot as useRouteStats, st as useRoutes, ht as useTracking, vt as useTrackingAlerts, Ge as useVehicle, bt as useVehicleTracking, Je as useVehicles, Ze as useWarehouse, et as useWarehouses };