@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.
- package/dist/{AIAssistantPage-AvsMbunM.js → AIAssistantPage-C3cPsWt-.js} +100 -73
- package/dist/AnalyticsPage-Dz6g2MvK.js +215 -0
- package/dist/{CreateOrderPage-CjlnEtk3.js → CreateOrderPage-C5iwnjp4.js} +36 -67
- package/dist/CustomerDetailsPage-B6nwFyLO.js +406 -0
- package/dist/{CustomersPage-CGGfD4ki.js → CustomersPage-2Y05LVyh.js} +26 -28
- package/dist/{DashboardPage-D2HRqwg9.js → DashboardPage-BVjQi0EB.js} +85 -83
- package/dist/{DataTable-CD9ZhpLB.js → DataTable-DmciIKKM.js} +3 -3
- package/dist/DriverDetailsPage-CN3WQ0B9.js +507 -0
- package/dist/{DriversPage-DKiynISH.js → DriversPage-B0Zpx8OQ.js} +25 -27
- package/dist/{FinancePage-Vg8WPs38.js → FinancePage-DEDykSOP.js} +9 -9
- package/dist/FleetPage-DqkFi3s3.js +365 -0
- package/dist/FormError-BlOjnXOq.js +15 -0
- package/dist/ImportExportPage-DKJRCezl.js +290 -0
- package/dist/InventoryPage-DwfgCUQq.js +253 -0
- package/dist/{LiveTrackingPage-DQ1q4Id3.js → LiveTrackingPage-DCX-K-LR.js} +60 -56
- package/dist/MarketplacePage-CIQ97_zp.js +247 -0
- package/dist/{MetricCard-B7yMyvMX.js → MetricCard-BY0QrMD4.js} +1 -1
- package/dist/{OrderDetailsPage-CFASgsYX.js → OrderDetailsPage-DYiZ-9UK.js} +83 -85
- package/dist/{OrdersListPage-BHeT8S5o.js → OrdersListPage-BjDlCKJd.js} +31 -33
- package/dist/{PageLayout-D3N8MCTm.js → PageLayout-D4LDHJJq.js} +483 -422
- package/dist/ProductDetailsPage-C9uOiYLp.js +350 -0
- package/dist/{ProductsPage--xEpbQ8A.js → ProductsPage-C1G9h7Xd.js} +22 -24
- package/dist/ReportsPage-Zp53q3_8.js +284 -0
- package/dist/RouteDetailsPage-DUStXSf9.js +531 -0
- package/dist/RoutesPage-DMfoicM1.js +144 -0
- package/dist/SettingsPage-Bn-v0mbQ.js +421 -0
- package/dist/StatusBadge-BZurYHMy.js +152 -0
- package/dist/{TrackingPage-CcRc_dva.js → TrackingPage-W-jtdM3Y.js} +59 -61
- package/dist/VehicleDetailsPage-Bceo5oz3.js +410 -0
- package/dist/{VehiclesPage-UlxPWP9K.js → VehiclesPage-VBtOep91.js} +20 -22
- package/dist/WarehouseDetailsPage-L_6sWigM.js +493 -0
- package/dist/{WarehousesPage-CuTO-OPp.js → WarehousesPage-DCbXXXWE.js} +16 -18
- package/dist/{arrow-left-CBpZKkpq.js → arrow-left-n48Y-Wis.js} +1 -1
- package/dist/{box-CAaiElsb.js → box-D9Pal4HM.js} +1 -1
- package/dist/{chart-column-D1Ym15-S.js → chart-column-BFIJysDR.js} +1 -1
- package/dist/{chevron-right-BIFGi0UA.js → chevron-right-EMIIyyJ1.js} +1 -1
- package/dist/{circle-alert-DjmNo5_L.js → circle-alert-iY24lSlp.js} +1 -1
- package/dist/{circle-check-big-CjuPVo3_.js → circle-check-big-w0TrLKMF.js} +1 -1
- package/dist/{clock-BjkdnddD.js → clock-DJZtdl8u.js} +1 -1
- package/dist/{dollar-sign-IB4O0wuQ.js → dollar-sign-CgKQRz_e.js} +1 -1
- package/dist/{download-Dpa9vqoG.js → download-DRXxoiQR.js} +1 -1
- package/dist/{file-text-C8Uioy11.js → file-text-DWWY6_f5.js} +1 -1
- package/dist/{filter-Da5OZaHI.js → filter-DloLC2eE.js} +1 -1
- package/dist/index.js +186 -162
- package/dist/{map-_Per4sT9.js → map-CkJaULb2.js} +1 -1
- package/dist/{map-pin-BSaf5IDL.js → map-pin-BGiCvyCs.js} +1 -1
- package/dist/{navigation-DaTbrhw2.js → navigation-D36prnAn.js} +1 -1
- package/dist/{package-BE7U0wQE.js → package-BChUzpJS.js} +1 -1
- package/dist/{phone-DV4StZiA.js → phone-Ac9s3mo_.js} +1 -1
- package/dist/{plus-Dl1rLeJR.js → plus-Z76q-FZm.js} +1 -1
- package/dist/{refresh-cw-CWfERAit.js → refresh-cw-DKt6f5T6.js} +1 -1
- package/dist/{save-XH8vydOn.js → save-CojywNhG.js} +1 -1
- package/dist/{search-OxoIiL_C.js → search-CDGefqb3.js} +1 -1
- package/dist/{square-pen-hLIbFQFV.js → square-pen-CopE9GmB.js} +1 -1
- package/dist/{star-YsVV3MNQ.js → star-nHlLjDKR.js} +1 -1
- package/dist/{store-RCBl7HB-.js → store-BR9Voi5E.js} +1 -1
- package/dist/trash-2-BKhar6Hs.js +32 -0
- package/dist/{trending-up-C-85AwGT.js → trending-up-Dohgd4t_.js} +1 -1
- package/dist/{triangle-alert-BOhfGgmh.js → triangle-alert-i-XQL9Rd.js} +1 -1
- package/dist/{truck-CtDjNFbi.js → truck-C0v_hbLR.js} +1 -1
- package/dist/{useAnalytics-ph7eTIK6.js → useAnalytics-DS8n0xgg.js} +40 -40
- package/dist/useAssistant-D4v3oxD3.js +84 -0
- package/dist/{useCustomers-bS3a4ytk.js → useCustomers-BmTNGxiI.js} +24 -24
- package/dist/{useFleet-BdETplNE.js → useFleet-DKqXZ16m.js} +133 -109
- package/dist/useImportExport-DHr-SWSw.js +55 -0
- package/dist/{useInventory-Dwn18FPz.js → useInventory-DkyiVY_A.js} +95 -75
- package/dist/{useOrders-D_3_hGMp.js → useOrders-Cfk1GLiq.js} +42 -42
- package/dist/useReports-CTqZr-AB.js +78 -0
- package/dist/{useRoutes-v4aBaS-E.js → useRoutes-BQWO607N.js} +31 -31
- package/dist/useSettings-CkDH_-gM.js +81 -0
- package/dist/{useTracking-De2KIUNu.js → useTracking-B-va1kO3.js} +22 -22
- package/dist/{user-Dz5TJZFs.js → user-jyFU3lXk.js} +1 -1
- package/dist/{users-g2N0eL-Z.js → users-DZ-ilS6B.js} +1 -1
- package/dist/{warehouse-D3WWDeTX.js → warehouse-6m5kXMLu.js} +1 -1
- package/dist/{wrench-CmxY1n4I.js → wrench-CANXWxF-.js} +1 -1
- package/package.json +1 -1
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +31 -3
- package/src/movethewheels/components/FormError.tsx +25 -0
- package/src/movethewheels/components/StatusBadge.tsx +18 -37
- package/src/movethewheels/constants/index.ts +67 -26
- package/src/movethewheels/hooks/index.ts +12 -0
- package/src/movethewheels/hooks/useAnalytics.ts +20 -6
- package/src/movethewheels/hooks/useAssistant.ts +74 -0
- package/src/movethewheels/hooks/useFleet.ts +170 -59
- package/src/movethewheels/hooks/useImportExport.ts +101 -0
- package/src/movethewheels/hooks/useInventory.ts +107 -0
- package/src/movethewheels/hooks/useReports.ts +158 -0
- package/src/movethewheels/hooks/useSettings.ts +120 -0
- package/src/movethewheels/pages/AIAssistantPage.tsx +53 -15
- package/src/movethewheels/pages/AnalyticsPage.tsx +67 -64
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +154 -21
- package/src/movethewheels/pages/CustomersPage.tsx +1 -1
- package/src/movethewheels/pages/DashboardPage.tsx +42 -22
- package/src/movethewheels/pages/DriverDetailsPage.tsx +160 -3
- package/src/movethewheels/pages/DriversPage.tsx +6 -2
- package/src/movethewheels/pages/FleetPage.tsx +96 -38
- package/src/movethewheels/pages/ImportExportPage.tsx +174 -68
- package/src/movethewheels/pages/InventoryPage.tsx +66 -28
- package/src/movethewheels/pages/LiveTrackingPage.tsx +12 -3
- package/src/movethewheels/pages/MarketplacePage.tsx +87 -45
- package/src/movethewheels/pages/OrderDetailsPage.tsx +2 -2
- package/src/movethewheels/pages/ProductDetailsPage.tsx +146 -3
- package/src/movethewheels/pages/ProductsPage.tsx +5 -1
- package/src/movethewheels/pages/ReportsPage.tsx +194 -90
- package/src/movethewheels/pages/RouteDetailsPage.tsx +290 -36
- package/src/movethewheels/pages/RoutesPage.tsx +4 -9
- package/src/movethewheels/pages/SettingsPage.tsx +234 -56
- package/src/movethewheels/pages/TrackingPage.tsx +6 -6
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +158 -2
- package/src/movethewheels/pages/VehiclesPage.tsx +5 -1
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +224 -2
- package/src/movethewheels/pages/WarehousesPage.tsx +5 -1
- package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +7 -6
- package/src/movethewheels/store/movethewheelsStore.ts +1 -1
- package/dist/AnalyticsPage-CCLfHgQZ.js +0 -212
- package/dist/CustomerDetailsPage-I6cdDHUi.js +0 -265
- package/dist/DriverDetailsPage-rg_pGNuP.js +0 -330
- package/dist/FleetPage-DddXt8r8.js +0 -332
- package/dist/ImportExportPage-BW6qO3kc.js +0 -248
- package/dist/InventoryPage-rMGuaJN-.js +0 -222
- package/dist/MarketplacePage-DKrXAv62.js +0 -219
- package/dist/ProductDetailsPage-CFGcbaHo.js +0 -195
- package/dist/ReportsPage-Bb7_90rK.js +0 -235
- package/dist/RouteDetailsPage-CVtDVb1N.js +0 -282
- package/dist/RoutesPage-s57PtgcQ.js +0 -163
- package/dist/SettingsPage-BYNCBOpN.js +0 -298
- package/dist/StatusBadge-CijYQXtb.js +0 -209
- package/dist/VehicleDetailsPage-3YDMPsPs.js +0 -220
- package/dist/WarehouseDetailsPage-Db7KeN-d.js +0 -238
- package/dist/graphqlClient-CdJyR_ed.js +0 -55
- package/dist/navigation-BgnOfsVd.js +0 -6
- package/dist/route-Dp9JiN_E.js +0 -51
- package/dist/settings-3Rw5NwFF.js +0 -28
- package/src/movethewheels/constants/mockData.ts +0 -1342
- /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
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
import { a as
|
|
17
|
-
import {
|
|
18
|
-
import { n as
|
|
19
|
-
import { n as
|
|
20
|
-
import { a as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
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
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
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
|
|
153
|
-
|
|
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__ */
|
|
166
|
+
children: /* @__PURE__ */ R("div", {
|
|
156
167
|
className: "flex flex-col items-center gap-3",
|
|
157
|
-
children: [/* @__PURE__ */
|
|
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
|
|
165
|
-
function
|
|
166
|
-
return /* @__PURE__ */
|
|
167
|
-
fallback: /* @__PURE__ */
|
|
168
|
-
children: /* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
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__ */
|
|
182
|
+
element: /* @__PURE__ */ L(Wt, {})
|
|
172
183
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ L(I, {
|
|
174
185
|
path: "orders",
|
|
175
|
-
element: /* @__PURE__ */
|
|
186
|
+
element: /* @__PURE__ */ L(Gt, {})
|
|
176
187
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ L(I, {
|
|
178
189
|
path: "orders/new",
|
|
179
|
-
element: /* @__PURE__ */
|
|
190
|
+
element: /* @__PURE__ */ L(B, {})
|
|
180
191
|
}),
|
|
181
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ L(I, {
|
|
182
193
|
path: "orders/:orderId",
|
|
183
|
-
element: /* @__PURE__ */
|
|
194
|
+
element: /* @__PURE__ */ L(Kt, {})
|
|
184
195
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ L(I, {
|
|
186
197
|
path: "orders/:orderId/edit",
|
|
187
|
-
element: /* @__PURE__ */
|
|
198
|
+
element: /* @__PURE__ */ L(B, {})
|
|
188
199
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ L(I, {
|
|
190
201
|
path: "tracking",
|
|
191
|
-
element: /* @__PURE__ */
|
|
202
|
+
element: /* @__PURE__ */ L(qt, {})
|
|
192
203
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ L(I, {
|
|
194
205
|
path: "tracking/live",
|
|
195
|
-
element: /* @__PURE__ */
|
|
206
|
+
element: /* @__PURE__ */ L(Jt, {})
|
|
196
207
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ L(I, {
|
|
198
209
|
path: "fleet",
|
|
199
|
-
element: /* @__PURE__ */
|
|
210
|
+
element: /* @__PURE__ */ L(Yt, {})
|
|
200
211
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ L(I, {
|
|
202
213
|
path: "fleet/vehicles",
|
|
203
|
-
element: /* @__PURE__ */
|
|
214
|
+
element: /* @__PURE__ */ L(Xt, {})
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ L(I, {
|
|
217
|
+
path: "fleet/vehicles/new",
|
|
218
|
+
element: /* @__PURE__ */ L(V, {})
|
|
204
219
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ L(I, {
|
|
206
221
|
path: "fleet/vehicles/:vehicleId",
|
|
207
|
-
element: /* @__PURE__ */ V
|
|
222
|
+
element: /* @__PURE__ */ L(V, {})
|
|
208
223
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ L(I, {
|
|
210
225
|
path: "fleet/drivers",
|
|
211
|
-
element: /* @__PURE__ */
|
|
226
|
+
element: /* @__PURE__ */ L(Zt, {})
|
|
212
227
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
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__ */
|
|
234
|
+
element: /* @__PURE__ */ L(H, {})
|
|
216
235
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ L(I, {
|
|
218
237
|
path: "inventory",
|
|
219
|
-
element: /* @__PURE__ */
|
|
238
|
+
element: /* @__PURE__ */ L(Qt, {})
|
|
220
239
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ L(I, {
|
|
222
241
|
path: "inventory/products",
|
|
223
|
-
element: /* @__PURE__ */
|
|
242
|
+
element: /* @__PURE__ */ L($t, {})
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ L(I, {
|
|
245
|
+
path: "inventory/products/new",
|
|
246
|
+
element: /* @__PURE__ */ L(U, {})
|
|
224
247
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ L(I, {
|
|
226
249
|
path: "inventory/products/:productId",
|
|
227
|
-
element: /* @__PURE__ */
|
|
250
|
+
element: /* @__PURE__ */ L(U, {})
|
|
228
251
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ L(I, {
|
|
230
253
|
path: "inventory/warehouses",
|
|
231
|
-
element: /* @__PURE__ */
|
|
254
|
+
element: /* @__PURE__ */ L(en, {})
|
|
255
|
+
}),
|
|
256
|
+
/* @__PURE__ */ L(I, {
|
|
257
|
+
path: "inventory/warehouses/new",
|
|
258
|
+
element: /* @__PURE__ */ L(W, {})
|
|
232
259
|
}),
|
|
233
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ L(I, {
|
|
234
261
|
path: "inventory/warehouses/:warehouseId",
|
|
235
|
-
element: /* @__PURE__ */
|
|
262
|
+
element: /* @__PURE__ */ L(W, {})
|
|
236
263
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ L(I, {
|
|
238
265
|
path: "customers",
|
|
239
|
-
element: /* @__PURE__ */
|
|
266
|
+
element: /* @__PURE__ */ L(tn, {})
|
|
240
267
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ L(I, {
|
|
242
269
|
path: "customers/new",
|
|
243
|
-
element: /* @__PURE__ */
|
|
270
|
+
element: /* @__PURE__ */ L(G, {})
|
|
244
271
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ L(I, {
|
|
246
273
|
path: "customers/:customerId",
|
|
247
|
-
element: /* @__PURE__ */
|
|
274
|
+
element: /* @__PURE__ */ L(G, {})
|
|
248
275
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ L(I, {
|
|
250
277
|
path: "routes",
|
|
251
|
-
element: /* @__PURE__ */
|
|
278
|
+
element: /* @__PURE__ */ L(nn, {})
|
|
252
279
|
}),
|
|
253
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ L(I, {
|
|
254
281
|
path: "routes/new",
|
|
255
|
-
element: /* @__PURE__ */
|
|
282
|
+
element: /* @__PURE__ */ L(K, {})
|
|
256
283
|
}),
|
|
257
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ L(I, {
|
|
258
285
|
path: "routes/:routeId",
|
|
259
|
-
element: /* @__PURE__ */
|
|
286
|
+
element: /* @__PURE__ */ L(K, {})
|
|
260
287
|
}),
|
|
261
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ L(I, {
|
|
262
289
|
path: "analytics",
|
|
263
|
-
element: /* @__PURE__ */
|
|
290
|
+
element: /* @__PURE__ */ L(rn, {})
|
|
264
291
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ L(I, {
|
|
266
293
|
path: "finance",
|
|
267
|
-
element: /* @__PURE__ */
|
|
294
|
+
element: /* @__PURE__ */ L(an, {})
|
|
268
295
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ L(I, {
|
|
270
297
|
path: "marketplace",
|
|
271
|
-
element: /* @__PURE__ */
|
|
298
|
+
element: /* @__PURE__ */ L(on, {})
|
|
272
299
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ L(I, {
|
|
274
301
|
path: "import-export",
|
|
275
|
-
element: /* @__PURE__ */
|
|
302
|
+
element: /* @__PURE__ */ L(sn, {})
|
|
276
303
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ L(I, {
|
|
278
305
|
path: "reports",
|
|
279
|
-
element: /* @__PURE__ */
|
|
306
|
+
element: /* @__PURE__ */ L(q, {})
|
|
280
307
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ L(I, {
|
|
282
309
|
path: "ai-assistant",
|
|
283
|
-
element: /* @__PURE__ */
|
|
310
|
+
element: /* @__PURE__ */ L(ln, {})
|
|
284
311
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ L(I, {
|
|
286
313
|
path: "settings",
|
|
287
|
-
element: /* @__PURE__ */
|
|
314
|
+
element: /* @__PURE__ */ L(cn, {})
|
|
288
315
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ L(I, {
|
|
290
317
|
path: "*",
|
|
291
|
-
element: /* @__PURE__ */
|
|
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
|
|
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
|
|
327
|
+
return F(() => {
|
|
304
328
|
if (t) return t({
|
|
305
329
|
id: "movethewheels",
|
|
306
330
|
label: "MoveTheWheels",
|
|
307
331
|
path: r,
|
|
308
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
477
|
+
icon: /* @__PURE__ */ L(Fe, { size: 16 }),
|
|
454
478
|
order: 99
|
|
455
479
|
}
|
|
456
480
|
]
|
|
457
481
|
});
|
|
458
|
-
}, [t, r]),
|
|
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__ */
|
|
490
|
+
}, [n]), /* @__PURE__ */ L(Ft, {
|
|
467
491
|
workspaceId: null,
|
|
468
492
|
gateway: "global",
|
|
469
493
|
defaultEnabled: !0,
|
|
470
|
-
children: /* @__PURE__ */
|
|
494
|
+
children: /* @__PURE__ */ L(de, {
|
|
471
495
|
...e,
|
|
472
|
-
children: /* @__PURE__ */
|
|
496
|
+
children: /* @__PURE__ */ L("div", {
|
|
473
497
|
className: "movethewheels-root h-full",
|
|
474
|
-
children: /* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ L(un, {})
|
|
475
499
|
})
|
|
476
500
|
})
|
|
477
501
|
});
|
|
478
|
-
},
|
|
479
|
-
let t =
|
|
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
|
-
},
|
|
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 =
|
|
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
|
|
520
|
+
return Y.set(n.name, i), {
|
|
497
521
|
type: "tracked",
|
|
498
522
|
store: e,
|
|
499
523
|
...i
|
|
500
524
|
};
|
|
501
|
-
},
|
|
525
|
+
}, pn = (e, t) => {
|
|
502
526
|
if (t === void 0) return;
|
|
503
|
-
let n =
|
|
504
|
-
n && (delete n.stores[t], Object.keys(n.stores).length === 0 &&
|
|
505
|
-
},
|
|
506
|
-
function
|
|
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
|
|
535
|
+
return mn.exec(r)?.[1] || hn.exec(r)?.[1];
|
|
512
536
|
}
|
|
513
|
-
var
|
|
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 } =
|
|
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 ||
|
|
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
|
-
...
|
|
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(),
|
|
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()])))),
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
-
},
|
|
670
|
+
}, yn = (e, t) => (n, r, i) => {
|
|
647
671
|
let a = {
|
|
648
|
-
storage:
|
|
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
|
-
},
|
|
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:
|
|
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 {
|
|
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 };
|