@burdenoff/microfe-movethewheels 2026.703.3 → 2026.703.5
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-C3cPsWt-.js → AIAssistantPage-D2gaEL1U.js} +16 -15
- package/dist/AnalyticsPage-DZMlEoBi.js +194 -0
- package/dist/CreateOrderPage-CWHx8yys.js +490 -0
- package/dist/CustomerDetailsPage-nR4oZ_ju.js +615 -0
- package/dist/CustomersPage-Bbvwvn8k.js +205 -0
- package/dist/DashboardPage-DrEhNf7N.js +542 -0
- package/dist/DataTable-CqMUD4er.js +340 -0
- package/dist/DocumentsCard-edDkgnJj.js +169 -0
- package/dist/DriverDetailsPage-whEMOWs9.js +490 -0
- package/dist/DriversPage-CHF2ZEzd.js +221 -0
- package/dist/FinancePage-Dn9GrW-1.js +175 -0
- package/dist/{FleetPage-DqkFi3s3.js → FleetPage-CrtGPy-p.js} +36 -35
- package/dist/{FormError-BlOjnXOq.js → FormError-BKcb_wT-.js} +1 -1
- package/dist/{ImportExportPage-DKJRCezl.js → ImportExportPage-WYdwZomZ.js} +52 -72
- package/dist/InventoryPage-l5A1f753.js +259 -0
- package/dist/LiveTrackingPage-DhEaNKZ4.js +429 -0
- package/dist/MarketplacePage-B9RYOb1Y.js +426 -0
- package/dist/MetricCard-y3bWHKUQ.js +191 -0
- package/dist/Notice-DOO-tjpV.js +46 -0
- package/dist/OrderDetailsPage-CwYHwk1K.js +584 -0
- package/dist/OrdersListPage-DhZJoQeI.js +386 -0
- package/dist/{PageLayout-D4LDHJJq.js → PageLayout-BniRJaQ6.js} +1 -1
- package/dist/{ProductDetailsPage-C9uOiYLp.js → ProductDetailsPage-1Gm9JKy0.js} +56 -56
- package/dist/ProductsPage-C8sn-1tN.js +186 -0
- package/dist/ReportsPage-D1tb0dcz.js +377 -0
- package/dist/RouteDetailsPage-CkMyR9b_.js +610 -0
- package/dist/{RoutesPage-DMfoicM1.js → RoutesPage-QkENzsE5.js} +58 -47
- package/dist/{SettingsPage-Bn-v0mbQ.js → SettingsPage-DV3_tU_X.js} +16 -38
- package/dist/Sparkline-K2RMJ58u.js +16729 -0
- package/dist/{StatusBadge-BZurYHMy.js → StatusBadge-BNHXYvZx.js} +7 -7
- package/dist/TrackingPage-BZrg4RCu.js +368 -0
- package/dist/VehicleDetailsPage-D-8XPZ2G.js +393 -0
- package/dist/VehiclesPage-D5BELbtM.js +184 -0
- package/dist/{WarehouseDetailsPage-L_6sWigM.js → WarehouseDetailsPage-Cmg-8Frn.js} +70 -70
- package/dist/WarehousesPage-C1Y1M867.js +182 -0
- package/dist/{arrow-left-n48Y-Wis.js → arrow-left-ClW4Isj7.js} +1 -1
- package/dist/arrow-right-CmKOmIkh.js +11 -0
- package/dist/arrow-up-BJijRLAZ.js +17 -0
- package/dist/{box-D9Pal4HM.js → box-BT3NsRQP.js} +1 -1
- package/dist/boxes-B_OGvQiW.js +54 -0
- package/dist/{chart-column-BFIJysDR.js → chart-column-DQTTdUPk.js} +1 -1
- package/dist/charts-Tj_PPTfA.js +2018 -0
- package/dist/chevron-left-B1rZyWWb.js +8 -0
- package/dist/{chevron-right-EMIIyyJ1.js → chevron-right-BIcwUJZq.js} +1 -1
- package/dist/chunk-BdsCSvBP.js +20 -0
- package/dist/{circle-alert-iY24lSlp.js → circle-alert-CNkuDNc6.js} +1 -1
- package/dist/circle-check-Cs1OVjtV.js +13 -0
- package/dist/{circle-check-big-w0TrLKMF.js → circle-check-big-C-p4eNwn.js} +1 -1
- package/dist/{clock-DJZtdl8u.js → clock-dRGG4rkF.js} +1 -1
- package/dist/{dollar-sign-CgKQRz_e.js → dollar-sign-B6RoYHHz.js} +1 -1
- package/dist/{download-DRXxoiQR.js → download-DP04iWTd.js} +1 -1
- package/dist/{file-text-DWWY6_f5.js → file-text-BuDx4hZp.js} +1 -1
- package/dist/{filter-DloLC2eE.js → filter-BD483_8g.js} +1 -1
- package/dist/{wrench-CANXWxF-.js → fuel-DLH1ag04.js} +3 -6
- package/dist/index.css +2 -0
- package/dist/index.js +150 -172
- package/dist/{map-CkJaULb2.js → map-DNQn9fyY.js} +1 -1
- package/dist/{map-pin-BGiCvyCs.js → map-pin-CqN1bbT1.js} +1 -1
- package/dist/mapMarkers-NCV9MRKR.js +28 -0
- package/dist/maps-yzLqiK_C.js +5070 -0
- package/dist/{navigation-D36prnAn.js → navigation-CgGUt2tR.js} +1 -1
- package/dist/{package-BChUzpJS.js → package-DmRF7iQD.js} +1 -1
- package/dist/{phone-Ac9s3mo_.js → phone-Cl32EXKW.js} +1 -1
- package/dist/{plus-Z76q-FZm.js → plus-DlANgOFx.js} +1 -1
- package/dist/{refresh-cw-DKt6f5T6.js → refresh-cw-rW59D4b7.js} +1 -1
- package/dist/route-CWjPrtAN.js +22 -0
- package/dist/{save-CojywNhG.js → save-UDlog7hg.js} +1 -1
- package/dist/{search-CDGefqb3.js → search-DNIG5Ck7.js} +1 -1
- package/dist/{square-pen-CopE9GmB.js → square-pen-BcfB3Grd.js} +1 -1
- package/dist/{star-nHlLjDKR.js → star-CVZHFwDx.js} +1 -1
- package/dist/{store-BR9Voi5E.js → store-bwnmCK9f.js} +1 -1
- package/dist/{trash-2-BKhar6Hs.js → trash-2-B80G12d4.js} +1 -1
- package/dist/{trending-up-Dohgd4t_.js → trending-up-CH4R4KOa.js} +1 -1
- package/dist/{triangle-alert-i-XQL9Rd.js → triangle-alert-CmS8AUU6.js} +1 -1
- package/dist/{truck-C0v_hbLR.js → truck-9rLDncav.js} +1 -1
- package/dist/upload-DanJY1Vo.js +21 -0
- package/dist/{useAssistant-D4v3oxD3.js → useAssistant-CnEwkTLm.js} +11 -28
- package/dist/{useCustomers-BmTNGxiI.js → useCustomers-ChJao1ET.js} +30 -27
- package/dist/{useFleet-DKqXZ16m.js → useFleet-g5Yri0G8.js} +82 -70
- package/dist/{useImportExport-DHr-SWSw.js → useImportExport-MYwIT3rE.js} +1 -1
- package/dist/{useInventory-DkyiVY_A.js → useInventory-BSOn-R1c.js} +84 -39
- package/dist/{useOrders-Cfk1GLiq.js → useOrders-BSiqo61w.js} +59 -48
- package/dist/{useReports-CTqZr-AB.js → useReports-fWESfsF9.js} +41 -35
- package/dist/{useRoutes-BQWO607N.js → useRoutes-zD8Yp323.js} +50 -42
- package/dist/{useSettings-CkDH_-gM.js → useSettings-B1lsWeZ1.js} +6 -6
- package/dist/{useTracking-B-va1kO3.js → useTracking-BKG0I2ln.js} +3 -3
- package/dist/{user-jyFU3lXk.js → user-DU51el3m.js} +1 -1
- package/dist/user-check-IMhk-qkX.js +20 -0
- package/dist/{users-DZ-ilS6B.js → users-B8KhJBGg.js} +1 -1
- package/dist/{warehouse-6m5kXMLu.js → warehouse-CcMMioeY.js} +1 -1
- package/dist/wrench-Dg-sgH2e.js +8 -0
- package/dist/x-C4ObLVEa.js +11 -0
- package/package.json +5 -1
- package/src/movethewheels/components/DataTable.tsx +252 -84
- package/src/movethewheels/components/DocumentsCard.tsx +102 -0
- package/src/movethewheels/components/GlassPanel.tsx +71 -0
- package/src/movethewheels/components/MetricCard.tsx +171 -73
- package/src/movethewheels/components/Notice.tsx +61 -0
- package/src/movethewheels/components/StatusBadge.tsx +7 -6
- package/src/movethewheels/components/charts/ChartShell.tsx +78 -0
- package/src/movethewheels/components/charts/Sparkline.tsx +85 -0
- package/src/movethewheels/components/charts/StatusDonut.tsx +115 -0
- package/src/movethewheels/components/charts/TrendChart.tsx +179 -0
- package/src/movethewheels/components/charts/VolumeBar.tsx +97 -0
- package/src/movethewheels/components/charts/chartTokens.ts +43 -0
- package/src/movethewheels/components/charts/index.ts +9 -0
- package/src/movethewheels/components/index.ts +51 -1
- package/src/movethewheels/components/maps/LogisticsMap.tsx +94 -0
- package/src/movethewheels/components/maps/MapCanvas.tsx +118 -0
- package/src/movethewheels/components/maps/RouteMap.tsx +71 -0
- package/src/movethewheels/components/maps/TrackingMap.tsx +102 -0
- package/src/movethewheels/components/maps/index.ts +16 -0
- package/src/movethewheels/components/maps/leaflet-setup.ts +124 -0
- package/src/movethewheels/components/maps/map-markers.css +121 -0
- package/src/movethewheels/hooks/index.ts +9 -0
- package/src/movethewheels/hooks/useAnalytics.ts +109 -4
- package/src/movethewheels/hooks/useCustomers.ts +11 -4
- package/src/movethewheels/hooks/useEntityDocuments.ts +132 -0
- package/src/movethewheels/hooks/useFleet.ts +26 -7
- package/src/movethewheels/hooks/useInventory.ts +70 -7
- package/src/movethewheels/hooks/useOrders.ts +32 -2
- package/src/movethewheels/hooks/useReports.ts +14 -4
- package/src/movethewheels/hooks/useRoutes.ts +20 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +93 -73
- package/src/movethewheels/pages/CreateOrderPage.tsx +48 -20
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +239 -33
- package/src/movethewheels/pages/CustomersPage.tsx +53 -28
- package/src/movethewheels/pages/DashboardPage.tsx +238 -12
- package/src/movethewheels/pages/DriverDetailsPage.tsx +17 -31
- package/src/movethewheels/pages/DriversPage.tsx +59 -31
- package/src/movethewheels/pages/FinancePage.tsx +103 -82
- package/src/movethewheels/pages/InventoryPage.tsx +15 -3
- package/src/movethewheels/pages/LiveTrackingPage.tsx +124 -16
- package/src/movethewheels/pages/MarketplacePage.tsx +265 -50
- package/src/movethewheels/pages/OrderDetailsPage.tsx +214 -10
- package/src/movethewheels/pages/OrdersListPage.tsx +118 -47
- package/src/movethewheels/pages/ProductsPage.tsx +52 -28
- package/src/movethewheels/pages/ReportsPage.tsx +88 -4
- package/src/movethewheels/pages/RouteDetailsPage.tsx +119 -19
- package/src/movethewheels/pages/RoutesPage.tsx +22 -6
- package/src/movethewheels/pages/SettingsPage.tsx +5 -21
- package/src/movethewheels/pages/TrackingPage.tsx +76 -6
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +4 -34
- package/src/movethewheels/pages/VehiclesPage.tsx +58 -27
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +1 -1
- package/src/movethewheels/pages/WarehousesPage.tsx +47 -36
- package/src/movethewheels/types/index.ts +9 -1
- package/src/movethewheels/utils/download.ts +62 -0
- package/src/movethewheels/utils/mapMarkers.ts +58 -0
- package/dist/AnalyticsPage-Dz6g2MvK.js +0 -215
- package/dist/CreateOrderPage-C5iwnjp4.js +0 -479
- package/dist/CustomerDetailsPage-B6nwFyLO.js +0 -406
- package/dist/CustomersPage-BKxMS1AV.js +0 -161
- package/dist/DashboardPage-BVjQi0EB.js +0 -387
- package/dist/DataTable-DmciIKKM.js +0 -249
- package/dist/DriverDetailsPage-CN3WQ0B9.js +0 -507
- package/dist/DriversPage-CH9rjQC-.js +0 -165
- package/dist/FinancePage-DEDykSOP.js +0 -158
- package/dist/InventoryPage-e0ze63iX.js +0 -253
- package/dist/LiveTrackingPage-DCX-K-LR.js +0 -379
- package/dist/MarketplacePage-CIQ97_zp.js +0 -247
- package/dist/MetricCard-BY0QrMD4.js +0 -146
- package/dist/OrderDetailsPage-DYiZ-9UK.js +0 -429
- package/dist/OrdersListPage-Cn90P1Xx.js +0 -307
- package/dist/ProductsPage-QJfHHpqB.js +0 -169
- package/dist/ReportsPage-Zp53q3_8.js +0 -284
- package/dist/RouteDetailsPage-DUStXSf9.js +0 -531
- package/dist/TrackingPage-W-jtdM3Y.js +0 -325
- package/dist/VehicleDetailsPage-Bceo5oz3.js +0 -410
- package/dist/VehiclesPage-ApKThYeG.js +0 -165
- package/dist/WarehousesPage-DCbXXXWE.js +0 -162
- package/dist/useAnalytics-DS8n0xgg.js +0 -297
- /package/dist/{formatters-CF2S2l1m.js → formatters-FWJDwTFv.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,85 +1,45 @@
|
|
|
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,
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as Me } from "./
|
|
5
|
-
import { t as Ne } from "./
|
|
6
|
-
import { t as Pe } from "./
|
|
7
|
-
import { n as Fe,
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { a as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { n as
|
|
24
|
-
import { a as
|
|
25
|
-
import {
|
|
26
|
-
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, b as de, c as fe, ct 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, m as Ce, n as v, nt as y, o as b, ot as x, p as S, q as C, r as w, rt as T, s as E, st as D, t as O, tt as k, u as A, ut as j, v as we, w as Te, x as Ee, y as De, z as Oe } from "./PageLayout-BniRJaQ6.js";
|
|
2
|
+
import { t as ke } from "./DataTable-CqMUD4er.js";
|
|
3
|
+
import { n as Ae, t as je } from "./useAssistant-CnEwkTLm.js";
|
|
4
|
+
import { t as Me } from "./boxes-B_OGvQiW.js";
|
|
5
|
+
import { t as Ne } from "./chart-column-DQTTdUPk.js";
|
|
6
|
+
import { t as Pe } from "./dollar-sign-B6RoYHHz.js";
|
|
7
|
+
import { n as Fe, t as Ie } from "./DocumentsCard-edDkgnJj.js";
|
|
8
|
+
import { t as Le } from "./file-text-BuDx4hZp.js";
|
|
9
|
+
import { n as Re, r as ze, t as Be } from "./useSettings-B1lsWeZ1.js";
|
|
10
|
+
import { n as Ve, t as He } from "./Notice-DOO-tjpV.js";
|
|
11
|
+
import { t as Ue } from "./map-DNQn9fyY.js";
|
|
12
|
+
import { t as We } from "./package-DmRF7iQD.js";
|
|
13
|
+
import { t as Ge } from "./route-CWjPrtAN.js";
|
|
14
|
+
import { t as Ke } from "./store-bwnmCK9f.js";
|
|
15
|
+
import { t as M } from "./truck-9rLDncav.js";
|
|
16
|
+
import { t as qe } from "./user-check-IMhk-qkX.js";
|
|
17
|
+
import { t as Je } from "./users-B8KhJBGg.js";
|
|
18
|
+
import { t as N } from "./warehouse-CcMMioeY.js";
|
|
19
|
+
import { n as Ye, r as Xe, t as Ze } from "./useOrders-BSiqo61w.js";
|
|
20
|
+
import { a as Qe, i as $e, n as et, o as tt, r as nt, t as rt } from "./useFleet-g5Yri0G8.js";
|
|
21
|
+
import { a as it, c as at, n as ot, o as st, r as ct, t as lt } from "./useInventory-BSOn-R1c.js";
|
|
22
|
+
import { n as ut, r as dt, t as ft } from "./useCustomers-ChJao1ET.js";
|
|
23
|
+
import { n as pt, r as mt, t as ht } from "./useRoutes-zD8Yp323.js";
|
|
24
|
+
import { a as gt, c as _t, d as vt, f as yt, i as bt, l as xt, n as St, o as Ct, r as wt, s as Tt, t as Et, u as Dt } from "./charts-Tj_PPTfA.js";
|
|
25
|
+
import { a as Ot, i as kt, n as At, o as jt, r as Mt, s as Nt, t as Pt } from "./useTracking-BKG0I2ln.js";
|
|
26
|
+
import { t as Ft } from "./useReports-fWESfsF9.js";
|
|
27
|
+
import { t as It } from "./useImportExport-MYwIT3rE.js";
|
|
28
|
+
import { n as Lt, r as Rt, t as zt } from "./Sparkline-K2RMJ58u.js";
|
|
29
|
+
import { n as Bt, r as Vt, t as Ht } from "./MetricCard-y3bWHKUQ.js";
|
|
30
|
+
import { a as Ut, c as Wt, i as Gt, n as Kt, o as qt, r as Jt, s as Yt, t as Xt } from "./maps-yzLqiK_C.js";
|
|
31
|
+
import { a as Zt, i as Qt, n as $t, r as en, t as tn } from "./StatusBadge-BNHXYvZx.js";
|
|
32
|
+
import { t as nn } from "./FormError-BKcb_wT-.js";
|
|
33
|
+
import { Suspense as rn, lazy as P, useEffect as F } from "react";
|
|
34
|
+
import { Route as I, Routes as an, useNavigate as on } from "react-router-dom";
|
|
27
35
|
import { jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
28
|
-
import { FeatureFlagProvider as
|
|
29
|
-
import { NotFoundPage as
|
|
30
|
-
import { create as
|
|
31
|
-
import { createProfileScopedStorage as
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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",
|
|
36
|
-
key: "lc1i9w"
|
|
37
|
-
}],
|
|
38
|
-
["path", {
|
|
39
|
-
d: "m7 16.5-4.74-2.85",
|
|
40
|
-
key: "1o9zyk"
|
|
41
|
-
}],
|
|
42
|
-
["path", {
|
|
43
|
-
d: "m7 16.5 5-3",
|
|
44
|
-
key: "va8pkn"
|
|
45
|
-
}],
|
|
46
|
-
["path", {
|
|
47
|
-
d: "M7 16.5v5.17",
|
|
48
|
-
key: "jnp8gn"
|
|
49
|
-
}],
|
|
50
|
-
["path", {
|
|
51
|
-
d: "M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",
|
|
52
|
-
key: "8zsnat"
|
|
53
|
-
}],
|
|
54
|
-
["path", {
|
|
55
|
-
d: "m17 16.5-5-3",
|
|
56
|
-
key: "8arw3v"
|
|
57
|
-
}],
|
|
58
|
-
["path", {
|
|
59
|
-
d: "m17 16.5 4.74-2.85",
|
|
60
|
-
key: "8rfmw"
|
|
61
|
-
}],
|
|
62
|
-
["path", {
|
|
63
|
-
d: "M17 16.5v5.17",
|
|
64
|
-
key: "k6z78m"
|
|
65
|
-
}],
|
|
66
|
-
["path", {
|
|
67
|
-
d: "M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",
|
|
68
|
-
key: "1xygjf"
|
|
69
|
-
}],
|
|
70
|
-
["path", {
|
|
71
|
-
d: "M12 8 7.26 5.15",
|
|
72
|
-
key: "1vbdud"
|
|
73
|
-
}],
|
|
74
|
-
["path", {
|
|
75
|
-
d: "m12 8 4.74-2.85",
|
|
76
|
-
key: "3rx089"
|
|
77
|
-
}],
|
|
78
|
-
["path", {
|
|
79
|
-
d: "M12 13.5V8",
|
|
80
|
-
key: "1io7kd"
|
|
81
|
-
}]
|
|
82
|
-
]), Bt = v("Car", [
|
|
36
|
+
import { FeatureFlagProvider as sn } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
37
|
+
import { NotFoundPage as cn } from "@burdenoff/fe-libs/shared/pages";
|
|
38
|
+
import { create as ln } from "zustand";
|
|
39
|
+
import { createProfileScopedStorage as un } from "@burdenoff/fe-libs/shared/utils";
|
|
40
|
+
import { GlassCard as dn } from "@burdenoff/fe-libs/ui";
|
|
41
|
+
//#region node_modules/lucide-react/dist/esm/icons/car.js
|
|
42
|
+
var fn = j("Car", [
|
|
83
43
|
["path", {
|
|
84
44
|
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",
|
|
85
45
|
key: "5owen"
|
|
@@ -100,7 +60,7 @@ var zt = v("Boxes", [
|
|
|
100
60
|
r: "2",
|
|
101
61
|
key: "axvx0g"
|
|
102
62
|
}]
|
|
103
|
-
]), z =
|
|
63
|
+
]), z = j("LayoutDashboard", [
|
|
104
64
|
["rect", {
|
|
105
65
|
width: "7",
|
|
106
66
|
height: "9",
|
|
@@ -133,34 +93,19 @@ var zt = v("Boxes", [
|
|
|
133
93
|
rx: "1",
|
|
134
94
|
key: "ldoo1y"
|
|
135
95
|
}]
|
|
136
|
-
]), Vt = v("UserCheck", [
|
|
137
|
-
["path", {
|
|
138
|
-
d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
|
|
139
|
-
key: "1yyitq"
|
|
140
|
-
}],
|
|
141
|
-
["circle", {
|
|
142
|
-
cx: "9",
|
|
143
|
-
cy: "7",
|
|
144
|
-
r: "4",
|
|
145
|
-
key: "nufk8"
|
|
146
|
-
}],
|
|
147
|
-
["polyline", {
|
|
148
|
-
points: "16 11 18 13 22 9",
|
|
149
|
-
key: "1pwet4"
|
|
150
|
-
}]
|
|
151
96
|
]);
|
|
152
97
|
//#endregion
|
|
153
98
|
//#region src/movethewheels/MoveTheWheelsRoutes.tsx
|
|
154
|
-
function
|
|
155
|
-
let { navigate: e, basePath: t } =
|
|
156
|
-
return /* @__PURE__ */ L(
|
|
99
|
+
function pn() {
|
|
100
|
+
let { navigate: e, basePath: t } = D(), n = on();
|
|
101
|
+
return /* @__PURE__ */ L(cn, {
|
|
157
102
|
homeLabel: "Back to MoveTheWheels",
|
|
158
103
|
onGoHome: () => {
|
|
159
104
|
e ? e(t || "/") : n("/");
|
|
160
105
|
}
|
|
161
106
|
});
|
|
162
107
|
}
|
|
163
|
-
function
|
|
108
|
+
function mn() {
|
|
164
109
|
return /* @__PURE__ */ L("div", {
|
|
165
110
|
className: "flex items-center justify-center min-h-[400px]",
|
|
166
111
|
children: /* @__PURE__ */ R("div", {
|
|
@@ -172,18 +117,18 @@ function Ut() {
|
|
|
172
117
|
})
|
|
173
118
|
});
|
|
174
119
|
}
|
|
175
|
-
var
|
|
176
|
-
function
|
|
177
|
-
return /* @__PURE__ */ L(
|
|
178
|
-
fallback: /* @__PURE__ */ L(
|
|
179
|
-
children: /* @__PURE__ */ R(
|
|
120
|
+
var hn = P(() => import("./DashboardPage-DrEhNf7N.js")), gn = P(() => import("./OrdersListPage-DhZJoQeI.js")), _n = P(() => import("./OrderDetailsPage-CwYHwk1K.js")), B = P(() => import("./CreateOrderPage-CWHx8yys.js")), vn = P(() => import("./TrackingPage-BZrg4RCu.js")), yn = P(() => import("./LiveTrackingPage-DhEaNKZ4.js")), bn = P(() => import("./FleetPage-CrtGPy-p.js")), xn = P(() => import("./VehiclesPage-D5BELbtM.js")), V = P(() => import("./VehicleDetailsPage-D-8XPZ2G.js")), Sn = P(() => import("./DriversPage-CHF2ZEzd.js")), H = P(() => import("./DriverDetailsPage-whEMOWs9.js")), Cn = P(() => import("./InventoryPage-l5A1f753.js")), wn = P(() => import("./ProductsPage-C8sn-1tN.js")), U = P(() => import("./ProductDetailsPage-1Gm9JKy0.js")), Tn = P(() => import("./WarehousesPage-C1Y1M867.js")), W = P(() => import("./WarehouseDetailsPage-Cmg-8Frn.js")), En = P(() => import("./CustomersPage-Bbvwvn8k.js")), G = P(() => import("./CustomerDetailsPage-nR4oZ_ju.js")), Dn = P(() => import("./RoutesPage-QkENzsE5.js")), K = P(() => import("./RouteDetailsPage-CkMyR9b_.js")), On = P(() => import("./AnalyticsPage-DZMlEoBi.js")), kn = P(() => import("./FinancePage-Dn9GrW-1.js")), An = P(() => import("./MarketplacePage-B9RYOb1Y.js")), jn = P(() => import("./ImportExportPage-WYdwZomZ.js")), Mn = P(() => import("./ReportsPage-D1tb0dcz.js")), Nn = P(() => import("./SettingsPage-DV3_tU_X.js")), Pn = P(() => import("./AIAssistantPage-D2gaEL1U.js"));
|
|
121
|
+
function Fn() {
|
|
122
|
+
return /* @__PURE__ */ L(rn, {
|
|
123
|
+
fallback: /* @__PURE__ */ L(mn, {}),
|
|
124
|
+
children: /* @__PURE__ */ R(an, { children: [
|
|
180
125
|
/* @__PURE__ */ L(I, {
|
|
181
126
|
index: !0,
|
|
182
|
-
element: /* @__PURE__ */ L(
|
|
127
|
+
element: /* @__PURE__ */ L(hn, {})
|
|
183
128
|
}),
|
|
184
129
|
/* @__PURE__ */ L(I, {
|
|
185
130
|
path: "orders",
|
|
186
|
-
element: /* @__PURE__ */ L(
|
|
131
|
+
element: /* @__PURE__ */ L(gn, {})
|
|
187
132
|
}),
|
|
188
133
|
/* @__PURE__ */ L(I, {
|
|
189
134
|
path: "orders/new",
|
|
@@ -191,7 +136,7 @@ function un() {
|
|
|
191
136
|
}),
|
|
192
137
|
/* @__PURE__ */ L(I, {
|
|
193
138
|
path: "orders/:orderId",
|
|
194
|
-
element: /* @__PURE__ */ L(
|
|
139
|
+
element: /* @__PURE__ */ L(_n, {})
|
|
195
140
|
}),
|
|
196
141
|
/* @__PURE__ */ L(I, {
|
|
197
142
|
path: "orders/:orderId/edit",
|
|
@@ -199,19 +144,19 @@ function un() {
|
|
|
199
144
|
}),
|
|
200
145
|
/* @__PURE__ */ L(I, {
|
|
201
146
|
path: "tracking",
|
|
202
|
-
element: /* @__PURE__ */ L(
|
|
147
|
+
element: /* @__PURE__ */ L(vn, {})
|
|
203
148
|
}),
|
|
204
149
|
/* @__PURE__ */ L(I, {
|
|
205
150
|
path: "tracking/live",
|
|
206
|
-
element: /* @__PURE__ */ L(
|
|
151
|
+
element: /* @__PURE__ */ L(yn, {})
|
|
207
152
|
}),
|
|
208
153
|
/* @__PURE__ */ L(I, {
|
|
209
154
|
path: "fleet",
|
|
210
|
-
element: /* @__PURE__ */ L(
|
|
155
|
+
element: /* @__PURE__ */ L(bn, {})
|
|
211
156
|
}),
|
|
212
157
|
/* @__PURE__ */ L(I, {
|
|
213
158
|
path: "fleet/vehicles",
|
|
214
|
-
element: /* @__PURE__ */ L(
|
|
159
|
+
element: /* @__PURE__ */ L(xn, {})
|
|
215
160
|
}),
|
|
216
161
|
/* @__PURE__ */ L(I, {
|
|
217
162
|
path: "fleet/vehicles/new",
|
|
@@ -223,7 +168,7 @@ function un() {
|
|
|
223
168
|
}),
|
|
224
169
|
/* @__PURE__ */ L(I, {
|
|
225
170
|
path: "fleet/drivers",
|
|
226
|
-
element: /* @__PURE__ */ L(
|
|
171
|
+
element: /* @__PURE__ */ L(Sn, {})
|
|
227
172
|
}),
|
|
228
173
|
/* @__PURE__ */ L(I, {
|
|
229
174
|
path: "fleet/drivers/new",
|
|
@@ -235,11 +180,11 @@ function un() {
|
|
|
235
180
|
}),
|
|
236
181
|
/* @__PURE__ */ L(I, {
|
|
237
182
|
path: "inventory",
|
|
238
|
-
element: /* @__PURE__ */ L(
|
|
183
|
+
element: /* @__PURE__ */ L(Cn, {})
|
|
239
184
|
}),
|
|
240
185
|
/* @__PURE__ */ L(I, {
|
|
241
186
|
path: "inventory/products",
|
|
242
|
-
element: /* @__PURE__ */ L(
|
|
187
|
+
element: /* @__PURE__ */ L(wn, {})
|
|
243
188
|
}),
|
|
244
189
|
/* @__PURE__ */ L(I, {
|
|
245
190
|
path: "inventory/products/new",
|
|
@@ -251,7 +196,7 @@ function un() {
|
|
|
251
196
|
}),
|
|
252
197
|
/* @__PURE__ */ L(I, {
|
|
253
198
|
path: "inventory/warehouses",
|
|
254
|
-
element: /* @__PURE__ */ L(
|
|
199
|
+
element: /* @__PURE__ */ L(Tn, {})
|
|
255
200
|
}),
|
|
256
201
|
/* @__PURE__ */ L(I, {
|
|
257
202
|
path: "inventory/warehouses/new",
|
|
@@ -263,7 +208,7 @@ function un() {
|
|
|
263
208
|
}),
|
|
264
209
|
/* @__PURE__ */ L(I, {
|
|
265
210
|
path: "customers",
|
|
266
|
-
element: /* @__PURE__ */ L(
|
|
211
|
+
element: /* @__PURE__ */ L(En, {})
|
|
267
212
|
}),
|
|
268
213
|
/* @__PURE__ */ L(I, {
|
|
269
214
|
path: "customers/new",
|
|
@@ -275,7 +220,7 @@ function un() {
|
|
|
275
220
|
}),
|
|
276
221
|
/* @__PURE__ */ L(I, {
|
|
277
222
|
path: "routes",
|
|
278
|
-
element: /* @__PURE__ */ L(
|
|
223
|
+
element: /* @__PURE__ */ L(Dn, {})
|
|
279
224
|
}),
|
|
280
225
|
/* @__PURE__ */ L(I, {
|
|
281
226
|
path: "routes/new",
|
|
@@ -287,42 +232,42 @@ function un() {
|
|
|
287
232
|
}),
|
|
288
233
|
/* @__PURE__ */ L(I, {
|
|
289
234
|
path: "analytics",
|
|
290
|
-
element: /* @__PURE__ */ L(
|
|
235
|
+
element: /* @__PURE__ */ L(On, {})
|
|
291
236
|
}),
|
|
292
237
|
/* @__PURE__ */ L(I, {
|
|
293
238
|
path: "finance",
|
|
294
|
-
element: /* @__PURE__ */ L(
|
|
239
|
+
element: /* @__PURE__ */ L(kn, {})
|
|
295
240
|
}),
|
|
296
241
|
/* @__PURE__ */ L(I, {
|
|
297
242
|
path: "marketplace",
|
|
298
|
-
element: /* @__PURE__ */ L(
|
|
243
|
+
element: /* @__PURE__ */ L(An, {})
|
|
299
244
|
}),
|
|
300
245
|
/* @__PURE__ */ L(I, {
|
|
301
246
|
path: "import-export",
|
|
302
|
-
element: /* @__PURE__ */ L(
|
|
247
|
+
element: /* @__PURE__ */ L(jn, {})
|
|
303
248
|
}),
|
|
304
249
|
/* @__PURE__ */ L(I, {
|
|
305
250
|
path: "reports",
|
|
306
|
-
element: /* @__PURE__ */ L(
|
|
251
|
+
element: /* @__PURE__ */ L(Mn, {})
|
|
307
252
|
}),
|
|
308
253
|
/* @__PURE__ */ L(I, {
|
|
309
254
|
path: "ai-assistant",
|
|
310
|
-
element: /* @__PURE__ */ L(
|
|
255
|
+
element: /* @__PURE__ */ L(Pn, {})
|
|
311
256
|
}),
|
|
312
257
|
/* @__PURE__ */ L(I, {
|
|
313
258
|
path: "settings",
|
|
314
|
-
element: /* @__PURE__ */ L(
|
|
259
|
+
element: /* @__PURE__ */ L(Nn, {})
|
|
315
260
|
}),
|
|
316
261
|
/* @__PURE__ */ L(I, {
|
|
317
262
|
path: "*",
|
|
318
|
-
element: /* @__PURE__ */ L(
|
|
263
|
+
element: /* @__PURE__ */ L(pn, {})
|
|
319
264
|
})
|
|
320
265
|
] })
|
|
321
266
|
});
|
|
322
267
|
}
|
|
323
268
|
//#endregion
|
|
324
269
|
//#region src/movethewheels/MoveTheWheelsRoot.tsx
|
|
325
|
-
var
|
|
270
|
+
var In = (e) => {
|
|
326
271
|
let { registerNavItems: t, registerFooterItems: n, basePath: r = "/" } = e, i = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
327
272
|
return F(() => {
|
|
328
273
|
if (t) return t({
|
|
@@ -344,14 +289,14 @@ var dn = (e) => {
|
|
|
344
289
|
id: "mtw-orders",
|
|
345
290
|
label: "Orders",
|
|
346
291
|
path: i(r, "orders"),
|
|
347
|
-
icon: /* @__PURE__ */ L(
|
|
292
|
+
icon: /* @__PURE__ */ L(We, { size: 16 }),
|
|
348
293
|
order: 2
|
|
349
294
|
},
|
|
350
295
|
{
|
|
351
296
|
id: "mtw-tracking",
|
|
352
297
|
label: "Tracking",
|
|
353
298
|
path: i(r, "tracking"),
|
|
354
|
-
icon: /* @__PURE__ */ L(
|
|
299
|
+
icon: /* @__PURE__ */ L(Ue, { size: 16 }),
|
|
355
300
|
order: 3
|
|
356
301
|
},
|
|
357
302
|
{
|
|
@@ -372,14 +317,14 @@ var dn = (e) => {
|
|
|
372
317
|
id: "mtw-vehicles",
|
|
373
318
|
label: "Vehicles",
|
|
374
319
|
path: i(r, "fleet/vehicles"),
|
|
375
|
-
icon: /* @__PURE__ */ L(
|
|
320
|
+
icon: /* @__PURE__ */ L(fn, { size: 14 }),
|
|
376
321
|
order: 2
|
|
377
322
|
},
|
|
378
323
|
{
|
|
379
324
|
id: "mtw-drivers",
|
|
380
325
|
label: "Drivers",
|
|
381
326
|
path: i(r, "fleet/drivers"),
|
|
382
|
-
icon: /* @__PURE__ */ L(
|
|
327
|
+
icon: /* @__PURE__ */ L(qe, { size: 14 }),
|
|
383
328
|
order: 3
|
|
384
329
|
}
|
|
385
330
|
]
|
|
@@ -402,7 +347,7 @@ var dn = (e) => {
|
|
|
402
347
|
id: "mtw-products",
|
|
403
348
|
label: "Products",
|
|
404
349
|
path: i(r, "inventory/products"),
|
|
405
|
-
icon: /* @__PURE__ */ L(
|
|
350
|
+
icon: /* @__PURE__ */ L(Me, { size: 14 }),
|
|
406
351
|
order: 2
|
|
407
352
|
},
|
|
408
353
|
{
|
|
@@ -418,49 +363,49 @@ var dn = (e) => {
|
|
|
418
363
|
id: "mtw-customers",
|
|
419
364
|
label: "Customers",
|
|
420
365
|
path: i(r, "customers"),
|
|
421
|
-
icon: /* @__PURE__ */ L(
|
|
366
|
+
icon: /* @__PURE__ */ L(Je, { size: 16 }),
|
|
422
367
|
order: 6
|
|
423
368
|
},
|
|
424
369
|
{
|
|
425
370
|
id: "mtw-routes",
|
|
426
371
|
label: "Routes",
|
|
427
372
|
path: i(r, "routes"),
|
|
428
|
-
icon: /* @__PURE__ */ L(
|
|
373
|
+
icon: /* @__PURE__ */ L(Ge, { size: 16 }),
|
|
429
374
|
order: 7
|
|
430
375
|
},
|
|
431
376
|
{
|
|
432
377
|
id: "mtw-analytics",
|
|
433
378
|
label: "Analytics",
|
|
434
379
|
path: i(r, "analytics"),
|
|
435
|
-
icon: /* @__PURE__ */ L(
|
|
380
|
+
icon: /* @__PURE__ */ L(Ne, { size: 16 }),
|
|
436
381
|
order: 8
|
|
437
382
|
},
|
|
438
383
|
{
|
|
439
384
|
id: "mtw-finance",
|
|
440
385
|
label: "Finance",
|
|
441
386
|
path: i(r, "finance"),
|
|
442
|
-
icon: /* @__PURE__ */ L(
|
|
387
|
+
icon: /* @__PURE__ */ L(Pe, { size: 16 }),
|
|
443
388
|
order: 9
|
|
444
389
|
},
|
|
445
390
|
{
|
|
446
391
|
id: "mtw-marketplace",
|
|
447
392
|
label: "Marketplace",
|
|
448
393
|
path: i(r, "marketplace"),
|
|
449
|
-
icon: /* @__PURE__ */ L(
|
|
394
|
+
icon: /* @__PURE__ */ L(Ke, { size: 16 }),
|
|
450
395
|
order: 10
|
|
451
396
|
},
|
|
452
397
|
{
|
|
453
398
|
id: "mtw-import-export",
|
|
454
399
|
label: "Import/Export",
|
|
455
400
|
path: i(r, "import-export"),
|
|
456
|
-
icon: /* @__PURE__ */ L(
|
|
401
|
+
icon: /* @__PURE__ */ L(ze, { size: 16 }),
|
|
457
402
|
order: 11
|
|
458
403
|
},
|
|
459
404
|
{
|
|
460
405
|
id: "mtw-reports",
|
|
461
406
|
label: "Reports",
|
|
462
407
|
path: i(r, "reports"),
|
|
463
|
-
icon: /* @__PURE__ */ L(
|
|
408
|
+
icon: /* @__PURE__ */ L(Le, { size: 16 }),
|
|
464
409
|
order: 12
|
|
465
410
|
},
|
|
466
411
|
{
|
|
@@ -474,7 +419,7 @@ var dn = (e) => {
|
|
|
474
419
|
id: "mtw-settings",
|
|
475
420
|
label: "Settings",
|
|
476
421
|
path: i(r, "settings"),
|
|
477
|
-
icon: /* @__PURE__ */ L(
|
|
422
|
+
icon: /* @__PURE__ */ L(Re, { size: 16 }),
|
|
478
423
|
order: 99
|
|
479
424
|
}
|
|
480
425
|
]
|
|
@@ -487,27 +432,27 @@ var dn = (e) => {
|
|
|
487
432
|
order: 20,
|
|
488
433
|
section: "left"
|
|
489
434
|
}]);
|
|
490
|
-
}, [n]), /* @__PURE__ */ L(
|
|
435
|
+
}, [n]), /* @__PURE__ */ L(sn, {
|
|
491
436
|
workspaceId: null,
|
|
492
437
|
gateway: "global",
|
|
493
438
|
defaultEnabled: !0,
|
|
494
|
-
children: /* @__PURE__ */ L(
|
|
439
|
+
children: /* @__PURE__ */ L(x, {
|
|
495
440
|
...e,
|
|
496
441
|
children: /* @__PURE__ */ L("div", {
|
|
497
442
|
className: "movethewheels-root h-full",
|
|
498
|
-
children: /* @__PURE__ */ L(
|
|
443
|
+
children: /* @__PURE__ */ L(Fn, {})
|
|
499
444
|
})
|
|
500
445
|
})
|
|
501
446
|
});
|
|
502
|
-
},
|
|
503
|
-
let t =
|
|
447
|
+
}, q = (e) => !!e.dispatchFromDevtools && typeof e.dispatch == "function", J = /* @__PURE__ */ new Map(), Y = (e) => {
|
|
448
|
+
let t = J.get(e);
|
|
504
449
|
return t ? Object.fromEntries(Object.entries(t.stores).map(([e, t]) => [e, t.getState()])) : {};
|
|
505
|
-
},
|
|
450
|
+
}, X = (e, t, n) => {
|
|
506
451
|
if (e === void 0) return {
|
|
507
452
|
type: "untracked",
|
|
508
453
|
connection: t.connect(n)
|
|
509
454
|
};
|
|
510
|
-
let r =
|
|
455
|
+
let r = J.get(n.name);
|
|
511
456
|
if (r) return {
|
|
512
457
|
type: "tracked",
|
|
513
458
|
store: e,
|
|
@@ -517,49 +462,49 @@ var dn = (e) => {
|
|
|
517
462
|
connection: t.connect(n),
|
|
518
463
|
stores: {}
|
|
519
464
|
};
|
|
520
|
-
return
|
|
465
|
+
return J.set(n.name, i), {
|
|
521
466
|
type: "tracked",
|
|
522
467
|
store: e,
|
|
523
468
|
...i
|
|
524
469
|
};
|
|
525
|
-
},
|
|
470
|
+
}, Ln = (e, t) => {
|
|
526
471
|
if (t === void 0) return;
|
|
527
|
-
let n =
|
|
528
|
-
n && (delete n.stores[t], Object.keys(n.stores).length === 0 &&
|
|
529
|
-
},
|
|
530
|
-
function
|
|
472
|
+
let n = J.get(e);
|
|
473
|
+
n && (delete n.stores[t], Object.keys(n.stores).length === 0 && J.delete(e));
|
|
474
|
+
}, Rn = /.+ (.+) .+/, zn = /^([^@]+)@/;
|
|
475
|
+
function Bn(e) {
|
|
531
476
|
if (!e) return;
|
|
532
477
|
let t = e.split("\n"), n = t.findIndex((e) => e.includes("api.setState"));
|
|
533
478
|
if (n < 0) return;
|
|
534
479
|
let r = t[n + 1]?.trim() || "";
|
|
535
|
-
return
|
|
480
|
+
return Rn.exec(r)?.[1] || zn.exec(r)?.[1];
|
|
536
481
|
}
|
|
537
|
-
var
|
|
482
|
+
var Vn = (e, t = {}) => (n, r, i) => {
|
|
538
483
|
let { enabled: a, anonymousActionType: o, store: s, ...c } = t, l;
|
|
539
484
|
try {
|
|
540
485
|
l = (a ?? !1) && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
541
486
|
} catch {}
|
|
542
487
|
if (!l) return e(n, r, i);
|
|
543
|
-
let { connection: u, ...d } =
|
|
488
|
+
let { connection: u, ...d } = X(s, l, c), f = !0;
|
|
544
489
|
i.setState = ((e, t, a) => {
|
|
545
490
|
let l = n(e, t);
|
|
546
491
|
if (!f) return l;
|
|
547
|
-
let d = a === void 0 ? { type: o ||
|
|
492
|
+
let d = a === void 0 ? { type: o || Bn((/* @__PURE__ */ Error()).stack) || "anonymous" } : typeof a == "string" ? { type: a } : a;
|
|
548
493
|
return s === void 0 ? (u?.send(d, r()), l) : (u?.send({
|
|
549
494
|
...d,
|
|
550
495
|
type: `${s}/${d.type}`
|
|
551
496
|
}, {
|
|
552
|
-
...
|
|
497
|
+
...Y(c.name),
|
|
553
498
|
[s]: i.getState()
|
|
554
499
|
}), l);
|
|
555
500
|
}), i.devtools = { cleanup: () => {
|
|
556
|
-
u && typeof u.unsubscribe == "function" && u.unsubscribe(),
|
|
501
|
+
u && typeof u.unsubscribe == "function" && u.unsubscribe(), Ln(c.name, s);
|
|
557
502
|
} };
|
|
558
503
|
let p = (...e) => {
|
|
559
504
|
let t = f;
|
|
560
505
|
f = !1, n(...e), f = t;
|
|
561
506
|
}, m = e(i.setState, r, 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()])))),
|
|
507
|
+
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)) {
|
|
563
508
|
let e = i.dispatch;
|
|
564
509
|
i.dispatch = (...t) => {
|
|
565
510
|
e(...t);
|
|
@@ -584,23 +529,23 @@ var _n = (e, t = {}) => (n, r, i) => {
|
|
|
584
529
|
JSON.stringify(i.getState()) !== JSON.stringify(t) && p(t);
|
|
585
530
|
return;
|
|
586
531
|
}
|
|
587
|
-
|
|
532
|
+
q(i) && i.dispatch(e);
|
|
588
533
|
});
|
|
589
534
|
case "DISPATCH":
|
|
590
535
|
switch (e.payload.type) {
|
|
591
|
-
case "RESET": return p(m), s === void 0 ? u?.init(i.getState()) : u?.init(
|
|
536
|
+
case "RESET": return p(m), s === void 0 ? u?.init(i.getState()) : u?.init(Y(c.name));
|
|
592
537
|
case "COMMIT":
|
|
593
538
|
if (s === void 0) {
|
|
594
539
|
u?.init(i.getState());
|
|
595
540
|
return;
|
|
596
541
|
}
|
|
597
|
-
return u?.init(
|
|
542
|
+
return u?.init(Y(c.name));
|
|
598
543
|
case "ROLLBACK": return Z(e.state, (e) => {
|
|
599
544
|
if (s === void 0) {
|
|
600
545
|
p(e), u?.init(i.getState());
|
|
601
546
|
return;
|
|
602
547
|
}
|
|
603
|
-
p(e[s]), u?.init(
|
|
548
|
+
p(e[s]), u?.init(Y(c.name));
|
|
604
549
|
});
|
|
605
550
|
case "JUMP_TO_STATE":
|
|
606
551
|
case "JUMP_TO_ACTION": return Z(e.state, (e) => {
|
|
@@ -630,7 +575,7 @@ var _n = (e, t = {}) => (n, r, i) => {
|
|
|
630
575
|
}
|
|
631
576
|
n !== void 0 && t(n);
|
|
632
577
|
};
|
|
633
|
-
function
|
|
578
|
+
function Hn(e, t) {
|
|
634
579
|
let n;
|
|
635
580
|
try {
|
|
636
581
|
n = e();
|
|
@@ -667,9 +612,9 @@ var Q = (e) => (t) => {
|
|
|
667
612
|
}
|
|
668
613
|
};
|
|
669
614
|
}
|
|
670
|
-
},
|
|
615
|
+
}, Un = (e, t) => (n, r, i) => {
|
|
671
616
|
let a = {
|
|
672
|
-
storage:
|
|
617
|
+
storage: Hn(() => window.localStorage),
|
|
673
618
|
partialize: (e) => e,
|
|
674
619
|
version: 0,
|
|
675
620
|
merge: (e, t) => ({
|
|
@@ -749,7 +694,7 @@ var Q = (e) => (t) => {
|
|
|
749
694
|
inventoryFilters: {},
|
|
750
695
|
customerFilters: {},
|
|
751
696
|
globalSearch: ""
|
|
752
|
-
},
|
|
697
|
+
}, Wn = ln()(Vn(Un((e) => ({
|
|
753
698
|
...$,
|
|
754
699
|
setViewMode: (t) => e({ viewMode: t }),
|
|
755
700
|
setSidebarCollapsed: (t) => e({ sidebarCollapsed: t }),
|
|
@@ -786,11 +731,44 @@ var Q = (e) => (t) => {
|
|
|
786
731
|
reset: () => e($)
|
|
787
732
|
}), {
|
|
788
733
|
name: "movethewheels-storage",
|
|
789
|
-
storage:
|
|
734
|
+
storage: un(),
|
|
790
735
|
partialize: (e) => ({
|
|
791
736
|
viewMode: e.viewMode,
|
|
792
737
|
sidebarCollapsed: e.sidebarCollapsed
|
|
793
738
|
})
|
|
794
|
-
}), { name: "MoveTheWheelsStore" }))
|
|
739
|
+
}), { name: "MoveTheWheelsStore" })), Gn = {
|
|
740
|
+
none: "p-0",
|
|
741
|
+
sm: "p-3",
|
|
742
|
+
md: "p-4 sm:p-5",
|
|
743
|
+
lg: "p-6"
|
|
744
|
+
};
|
|
745
|
+
function Kn({ title: e, action: t, description: n, padding: r = "md", treatment: i = "glass", glow: a = !1, className: o, bodyClassName: s, children: c, ...l }) {
|
|
746
|
+
let u = e != null || t != null || n != null;
|
|
747
|
+
return /* @__PURE__ */ R(dn, {
|
|
748
|
+
treatment: i,
|
|
749
|
+
glow: a,
|
|
750
|
+
className: T("overflow-hidden border-border-seam", o),
|
|
751
|
+
...l,
|
|
752
|
+
children: [u && /* @__PURE__ */ R("div", {
|
|
753
|
+
className: "flex items-start justify-between gap-3 border-b border-border-seam/70 px-4 py-3 sm:px-5",
|
|
754
|
+
children: [/* @__PURE__ */ R("div", {
|
|
755
|
+
className: "min-w-0 space-y-0.5",
|
|
756
|
+
children: [e != null && /* @__PURE__ */ L("h3", {
|
|
757
|
+
className: "truncate text-sm font-semibold text-text-primary",
|
|
758
|
+
children: e
|
|
759
|
+
}), n != null && /* @__PURE__ */ L("p", {
|
|
760
|
+
className: "text-xs text-text-secondary",
|
|
761
|
+
children: n
|
|
762
|
+
})]
|
|
763
|
+
}), t != null && /* @__PURE__ */ L("div", {
|
|
764
|
+
className: "flex shrink-0 items-center gap-2",
|
|
765
|
+
children: t
|
|
766
|
+
})]
|
|
767
|
+
}), /* @__PURE__ */ L("div", {
|
|
768
|
+
className: T(Gn[r], s),
|
|
769
|
+
children: c
|
|
770
|
+
})]
|
|
771
|
+
});
|
|
772
|
+
}
|
|
795
773
|
//#endregion
|
|
796
|
-
export {
|
|
774
|
+
export { b as Avatar, E as AvatarFallback, fe as AvatarImage, Se as Badge, A as Button, me as Card, ge as CardContent, S as CardDescription, Ce as CardFooter, ve as CardHeader, _e as CardTitle, bt as ChartEmpty, gt as ChartTooltip, le as Checkbox, ke as DataTable, we as Dialog, De as DialogContent, de as DialogDescription, Ee as DialogFooter, te as DialogHeader, r as DialogTitle, Te as DialogTrigger, Ie as DocumentsCard, ne as DropdownMenu, a as DropdownMenuContent, i as DropdownMenuItem, h as DropdownMenuSeparator, xe as DropdownMenuTrigger, O as EmptyState, v as ErrorState, nn as FormError, Kn as GlassPanel, t as Input, be as Label, w as LoadingState, Jt as LogisticsMap, Gt as MapCanvas, Ht as MetricCard, Bt as MetricCardSkeleton, Vt as MetricGrid, In as MoveTheWheelsRoot, He as Notice, ye as PageLayout, ue as PageSection, tn as PaymentStatusBadge, $t as PriorityBadge, p as Progress, Kt as RouteMap, m as ScrollArea, g as Select, o as SelectContent, l as SelectItem, f as SelectTrigger, ee as SelectValue, Oe as Separator, n as Skeleton, zt as Sparkline, en as StatusBadge, Et as StatusDonut, ie as Switch, c as Table, re as TableBody, ae as TableCell, s as TableHead, d as TableHeader, C as TableRow, u as Tabs, se as TabsContent, oe as TabsList, ce as TabsTrigger, _ as Textarea, e as Tooltip, he as TooltipContent, k as TooltipProvider, y as TooltipTrigger, Xt as TrackingMap, wt as TrendChart, Qt as TypeBadge, Zt as VehicleTypeBadge, St as VolumeBar, Lt as chartTokens, Ut as createCurrentIcon, qt as createPinIcon, Yt as createStopIcon, Wt as isRealCoord, Rt as seriesColor, Ct as useAnalytics, je as useAssistant, ft as useCustomer, ut as useCustomerStats, dt as useCustomers, Tt as useDashboardMetrics, rt as useDriver, Pt as useDriverTracking, et as useDrivers, Fe as useEntityDocuments, _t as useFinanceMetrics, nt as useFleet, xt as useFleetAnalytics, $e as useFleetStats, At as useGeofence, It as useImportExport, lt as useInventory, ot as useInventoryStats, Mt as useLiveTracking, Be as useModuleSettings, D as useMoveTheWheels, pe as useMoveTheWheelsNavigate, Wn as useMoveTheWheelsStore, Ve as useNotice, Ze as useOrder, Dt as useOrderAnalytics, Ye as useOrderStats, kt as useOrderTracking, Xe as useOrders, vt as usePerformanceAnalytics, ct as useProduct, it as useProducts, Ft as useReports, yt as useRevenueAnalytics, ht as useRoute, pt as useRouteStats, mt as useRoutes, Ot as useTracking, jt as useTrackingAlerts, Qe as useVehicle, Nt as useVehicleTracking, tt as useVehicles, st as useWarehouse, at as useWarehouses };
|