@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
|
@@ -1,74 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as a } from "./DataTable-
|
|
3
|
-
import { t as o } from "./navigation-
|
|
4
|
-
import { t as s } from "./plus-
|
|
5
|
-
import { t as c } from "./refresh-cw-
|
|
6
|
-
import {
|
|
7
|
-
import { o as
|
|
8
|
-
import { r as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { i as e, l as t, lt as n, st as r, u as i } from "./PageLayout-BniRJaQ6.js";
|
|
2
|
+
import { t as a } from "./DataTable-CqMUD4er.js";
|
|
3
|
+
import { t as o } from "./navigation-CgGUt2tR.js";
|
|
4
|
+
import { t as s } from "./plus-DlANgOFx.js";
|
|
5
|
+
import { t as c } from "./refresh-cw-rW59D4b7.js";
|
|
6
|
+
import { n as l, r as u } from "./useRoutes-zD8Yp323.js";
|
|
7
|
+
import { o as d, r as f } from "./StatusBadge-BNHXYvZx.js";
|
|
8
|
+
import { r as p } from "./formatters-FWJDwTFv.js";
|
|
9
|
+
import { useState as m } from "react";
|
|
10
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
11
|
+
import { CTAOverflowMenu as _, EmphasisPanel as v, PagePurpose as y } from "@burdenoff/fe-libs/ui";
|
|
11
12
|
//#region src/movethewheels/pages/RoutesPage.tsx
|
|
12
|
-
function
|
|
13
|
-
let { basePath:
|
|
14
|
-
|
|
13
|
+
function b() {
|
|
14
|
+
let { basePath: b, navigate: x } = r(), [S, C] = m(0), [w, T] = m(25), { routes: E, hasMore: D, isLoading: O, refetch: k } = u({
|
|
15
|
+
limit: w,
|
|
16
|
+
offset: S * w
|
|
17
|
+
}), { stats: A } = l(), j = (e) => x?.(n(b, e));
|
|
18
|
+
return /* @__PURE__ */ g(e, {
|
|
15
19
|
title: "Routes",
|
|
16
|
-
subtitle: `${
|
|
17
|
-
icon: /* @__PURE__ */
|
|
18
|
-
headerActions: /* @__PURE__ */
|
|
20
|
+
subtitle: `${A.totalRoutes} routes`,
|
|
21
|
+
icon: /* @__PURE__ */ h(o, { size: 24 }),
|
|
22
|
+
headerActions: /* @__PURE__ */ h(_, {
|
|
19
23
|
primary: {
|
|
20
24
|
label: "Create Route",
|
|
21
|
-
icon: /* @__PURE__ */
|
|
22
|
-
onSelect: () =>
|
|
25
|
+
icon: /* @__PURE__ */ h(s, { size: 16 }),
|
|
26
|
+
onSelect: () => j("routes/new")
|
|
23
27
|
},
|
|
24
28
|
actions: [{
|
|
25
29
|
label: "Refresh",
|
|
26
|
-
icon: /* @__PURE__ */
|
|
27
|
-
onSelect: () =>
|
|
30
|
+
icon: /* @__PURE__ */ h(c, { size: 16 }),
|
|
31
|
+
onSelect: () => k()
|
|
28
32
|
}]
|
|
29
33
|
}),
|
|
30
34
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
icon: /* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ h(y, {
|
|
36
|
+
icon: /* @__PURE__ */ h(o, { size: 18 }),
|
|
33
37
|
children: "Routes group multiple delivery stops into an optimized driving plan. Build a route to batch nearby drop-offs, cut distance and fuel, and give drivers a single ordered itinerary — then open one to review stops, distance and optimization status."
|
|
34
38
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ g(v, { children: [/* @__PURE__ */ h("p", {
|
|
36
40
|
className: "text-sm font-medium text-text-secondary",
|
|
37
41
|
children: "Routes at a glance"
|
|
38
|
-
}), /* @__PURE__ */
|
|
42
|
+
}), /* @__PURE__ */ g("div", {
|
|
39
43
|
className: "mt-3 grid grid-cols-3 gap-4",
|
|
40
44
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
42
46
|
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
43
|
-
children:
|
|
44
|
-
}), /* @__PURE__ */
|
|
47
|
+
children: A.totalRoutes
|
|
48
|
+
}), /* @__PURE__ */ h("p", {
|
|
45
49
|
className: "text-xs text-text-secondary",
|
|
46
50
|
children: "Total routes"
|
|
47
51
|
})] }),
|
|
48
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
49
53
|
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
50
|
-
children:
|
|
51
|
-
}), /* @__PURE__ */
|
|
54
|
+
children: A.inProgressRoutes
|
|
55
|
+
}), /* @__PURE__ */ h("p", {
|
|
52
56
|
className: "text-xs text-text-secondary",
|
|
53
57
|
children: "In progress"
|
|
54
58
|
})] }),
|
|
55
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
56
60
|
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
57
|
-
children:
|
|
58
|
-
}), /* @__PURE__ */
|
|
61
|
+
children: A.optimizedRoutes
|
|
62
|
+
}), /* @__PURE__ */ h("p", {
|
|
59
63
|
className: "text-xs text-text-secondary",
|
|
60
64
|
children: "Optimized"
|
|
61
65
|
})] })
|
|
62
66
|
]
|
|
63
67
|
})] }),
|
|
64
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ h(a, {
|
|
65
69
|
columns: [
|
|
66
70
|
{
|
|
67
71
|
id: "name",
|
|
68
72
|
header: "Route Name",
|
|
69
73
|
accessorKey: "name",
|
|
70
74
|
sortable: !0,
|
|
71
|
-
cell: (e) => /* @__PURE__ */
|
|
75
|
+
cell: (e) => /* @__PURE__ */ h("span", {
|
|
72
76
|
className: "font-medium",
|
|
73
77
|
children: e.name
|
|
74
78
|
})
|
|
@@ -78,15 +82,15 @@ function v() {
|
|
|
78
82
|
header: "Status",
|
|
79
83
|
accessorKey: "status",
|
|
80
84
|
sortable: !0,
|
|
81
|
-
cell: (e) => /* @__PURE__ */
|
|
85
|
+
cell: (e) => /* @__PURE__ */ h(f, {
|
|
82
86
|
status: e.status,
|
|
83
|
-
customColors:
|
|
87
|
+
customColors: d[e.status]
|
|
84
88
|
})
|
|
85
89
|
},
|
|
86
90
|
{
|
|
87
91
|
id: "stops",
|
|
88
92
|
header: "Stops",
|
|
89
|
-
cell: (e) => /* @__PURE__ */
|
|
93
|
+
cell: (e) => /* @__PURE__ */ g(t, {
|
|
90
94
|
variant: "secondary",
|
|
91
95
|
children: [e.stops.length, " stops"]
|
|
92
96
|
})
|
|
@@ -106,7 +110,7 @@ function v() {
|
|
|
106
110
|
{
|
|
107
111
|
id: "optimized",
|
|
108
112
|
header: "Optimized",
|
|
109
|
-
cell: (e) => /* @__PURE__ */
|
|
113
|
+
cell: (e) => /* @__PURE__ */ h(t, {
|
|
110
114
|
variant: e.optimized ? "default" : "outline",
|
|
111
115
|
children: e.optimized ? "Yes" : "No"
|
|
112
116
|
})
|
|
@@ -116,22 +120,29 @@ function v() {
|
|
|
116
120
|
header: "Created",
|
|
117
121
|
accessorKey: "createdAt",
|
|
118
122
|
sortable: !0,
|
|
119
|
-
cell: (e) =>
|
|
123
|
+
cell: (e) => p(e.createdAt, "short")
|
|
120
124
|
}
|
|
121
125
|
],
|
|
122
|
-
data:
|
|
123
|
-
isLoading:
|
|
126
|
+
data: E,
|
|
127
|
+
isLoading: O,
|
|
124
128
|
searchable: !0,
|
|
125
129
|
searchPlaceholder: "Search routes...",
|
|
126
130
|
searchFields: ["name"],
|
|
127
|
-
onRowClick: (e) =>
|
|
131
|
+
onRowClick: (e) => j(`routes/${e.id}`),
|
|
128
132
|
getRowId: (e) => e.id,
|
|
133
|
+
pageIndex: S,
|
|
134
|
+
pageSize: w,
|
|
135
|
+
onPageChange: C,
|
|
136
|
+
onPageSizeChange: (e) => {
|
|
137
|
+
T(e), C(0);
|
|
138
|
+
},
|
|
139
|
+
hasNextPage: D,
|
|
129
140
|
emptyIllustration: "empty-data",
|
|
130
141
|
emptyTitle: "No routes yet",
|
|
131
142
|
emptyDescription: "Create a route to batch deliveries into an optimized driving plan.",
|
|
132
|
-
emptyAction: /* @__PURE__ */
|
|
133
|
-
onClick: () =>
|
|
134
|
-
children: [/* @__PURE__ */
|
|
143
|
+
emptyAction: /* @__PURE__ */ g(i, {
|
|
144
|
+
onClick: () => j("routes/new"),
|
|
145
|
+
children: [/* @__PURE__ */ h(s, {
|
|
135
146
|
size: 16,
|
|
136
147
|
className: "mr-1.5"
|
|
137
148
|
}), "Create Route"]
|
|
@@ -141,4 +152,4 @@ function v() {
|
|
|
141
152
|
});
|
|
142
153
|
}
|
|
143
154
|
//#endregion
|
|
144
|
-
export {
|
|
155
|
+
export { b as default };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as e, F as t, I as n, J as r, L as i, P as a, R as o, V as s, X as c, Y as l, Z as u, d, f, g as p, h as m, i as h, j as g,
|
|
2
|
-
import { n as b, r as x, t as S } from "./useSettings-
|
|
3
|
-
import { t as C } from "./save-
|
|
4
|
-
import { t as w } from "./user-
|
|
1
|
+
import { A as e, F as t, I as n, J as r, L as i, P as a, R as o, V as s, X as c, Y as l, Z as u, d, f, g as p, h as m, i as h, j as g, p as _, u as v, ut as y } from "./PageLayout-BniRJaQ6.js";
|
|
2
|
+
import { n as b, r as x, t as S } from "./useSettings-B1lsWeZ1.js";
|
|
3
|
+
import { t as C } from "./save-UDlog7hg.js";
|
|
4
|
+
import { t as w } from "./user-DU51el3m.js";
|
|
5
5
|
import { useEffect as T, useMemo as E, useState as D } from "react";
|
|
6
6
|
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
7
7
|
import { EmphasisPanel as A, NextSteps as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
8
8
|
//#region node_modules/lucide-react/dist/esm/icons/bell.js
|
|
9
|
-
var N =
|
|
9
|
+
var N = y("Bell", [["path", {
|
|
10
10
|
d: "M10.268 21a2 2 0 0 0 3.464 0",
|
|
11
11
|
key: "vwvbt9"
|
|
12
12
|
}], ["path", {
|
|
13
13
|
d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
|
|
14
14
|
key: "11g9vi"
|
|
15
|
-
}]]), P =
|
|
15
|
+
}]]), P = y("Shield", [["path", {
|
|
16
16
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
17
17
|
key: "oel41y"
|
|
18
|
-
}]]), F =
|
|
18
|
+
}]]), F = y("Webhook", [
|
|
19
19
|
["path", {
|
|
20
20
|
d: "M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",
|
|
21
21
|
key: "q3hayz"
|
|
@@ -88,7 +88,7 @@ function R(e) {
|
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
function z() {
|
|
91
|
-
let { preferences:
|
|
91
|
+
let { preferences: y, isLoading: z, isSaving: B, error: V, savePreferences: H } = S(), [U, W] = D("general"), [G, K] = D(() => R({})), [q, J] = D(!1), Y = E(() => R(y), [y]);
|
|
92
92
|
T(() => {
|
|
93
93
|
K(Y);
|
|
94
94
|
}, [Y]);
|
|
@@ -156,7 +156,7 @@ function z() {
|
|
|
156
156
|
{
|
|
157
157
|
id: "security",
|
|
158
158
|
label: "Secure your account",
|
|
159
|
-
description: "
|
|
159
|
+
description: "Enable two-factor authentication for an extra layer of security.",
|
|
160
160
|
icon: /* @__PURE__ */ O(P, { size: 16 }),
|
|
161
161
|
onClick: () => W("security")
|
|
162
162
|
},
|
|
@@ -207,7 +207,7 @@ function z() {
|
|
|
207
207
|
children: "Basic company details"
|
|
208
208
|
}),
|
|
209
209
|
/* @__PURE__ */ k("div", {
|
|
210
|
-
className: "grid grid-cols-2 gap-4",
|
|
210
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
211
211
|
children: [
|
|
212
212
|
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(g, { children: "Company Name" }), /* @__PURE__ */ O(e, {
|
|
213
213
|
value: G.company.name,
|
|
@@ -242,7 +242,7 @@ function z() {
|
|
|
242
242
|
}) }), /* @__PURE__ */ O(f, {
|
|
243
243
|
className: "space-y-4",
|
|
244
244
|
children: /* @__PURE__ */ k("div", {
|
|
245
|
-
className: "grid grid-cols-3 gap-4",
|
|
245
|
+
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
246
246
|
children: [
|
|
247
247
|
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(g, { children: "Timezone" }), /* @__PURE__ */ k(a, {
|
|
248
248
|
value: G.localization.timezone,
|
|
@@ -326,29 +326,7 @@ function z() {
|
|
|
326
326
|
/* @__PURE__ */ k(l, {
|
|
327
327
|
value: "security",
|
|
328
328
|
className: "space-y-6",
|
|
329
|
-
children: [/* @__PURE__ */
|
|
330
|
-
className: "space-y-4",
|
|
331
|
-
children: [
|
|
332
|
-
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(g, { children: "Current Password" }), /* @__PURE__ */ O(e, {
|
|
333
|
-
type: "password",
|
|
334
|
-
autoComplete: "current-password"
|
|
335
|
-
})] }),
|
|
336
|
-
/* @__PURE__ */ k("div", {
|
|
337
|
-
className: "grid grid-cols-2 gap-4",
|
|
338
|
-
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(g, { children: "New Password" }), /* @__PURE__ */ O(e, {
|
|
339
|
-
type: "password",
|
|
340
|
-
autoComplete: "new-password"
|
|
341
|
-
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(g, { children: "Confirm Password" }), /* @__PURE__ */ O(e, {
|
|
342
|
-
type: "password",
|
|
343
|
-
autoComplete: "new-password"
|
|
344
|
-
})] })]
|
|
345
|
-
}),
|
|
346
|
-
/* @__PURE__ */ O(y, {
|
|
347
|
-
variant: "outline",
|
|
348
|
-
children: "Update Password"
|
|
349
|
-
})
|
|
350
|
-
]
|
|
351
|
-
})] }), /* @__PURE__ */ k(d, { children: [/* @__PURE__ */ k(m, { children: [/* @__PURE__ */ O(p, { children: "Two-Factor Authentication" }), /* @__PURE__ */ O(v, { children: "Add an extra layer of security" })] }), /* @__PURE__ */ O(f, { children: /* @__PURE__ */ k("div", {
|
|
329
|
+
children: [/* @__PURE__ */ O(d, { children: /* @__PURE__ */ k(m, { children: [/* @__PURE__ */ O(p, { children: "Password" }), /* @__PURE__ */ O(_, { children: "Your password and sign-in credentials are managed centrally by your workspace identity provider — update them from your account security settings, not here." })] }) }), /* @__PURE__ */ k(d, { children: [/* @__PURE__ */ k(m, { children: [/* @__PURE__ */ O(p, { children: "Two-Factor Authentication" }), /* @__PURE__ */ O(_, { children: "Add an extra layer of security" })] }), /* @__PURE__ */ O(f, { children: /* @__PURE__ */ k("div", {
|
|
352
330
|
className: "flex items-center justify-between",
|
|
353
331
|
children: [/* @__PURE__ */ k("p", { children: [
|
|
354
332
|
"Status:",
|
|
@@ -357,7 +335,7 @@ function z() {
|
|
|
357
335
|
className: `font-medium ${G.twoFactorEnabled ? "text-status-success-text" : "text-status-warning-text"}`,
|
|
358
336
|
children: G.twoFactorEnabled ? "Enabled" : "Disabled"
|
|
359
337
|
})
|
|
360
|
-
] }), /* @__PURE__ */ O(
|
|
338
|
+
] }), /* @__PURE__ */ O(v, {
|
|
361
339
|
variant: "outline",
|
|
362
340
|
disabled: B,
|
|
363
341
|
onClick: () => K((e) => ({
|
|
@@ -371,7 +349,7 @@ function z() {
|
|
|
371
349
|
/* @__PURE__ */ O(l, {
|
|
372
350
|
value: "integrations",
|
|
373
351
|
className: "space-y-6",
|
|
374
|
-
children: /* @__PURE__ */ k(d, { children: [/* @__PURE__ */ k(m, { children: [/* @__PURE__ */ O(p, { children: "Connected Services" }), /* @__PURE__ */ O(
|
|
352
|
+
children: /* @__PURE__ */ k(d, { children: [/* @__PURE__ */ k(m, { children: [/* @__PURE__ */ O(p, { children: "Connected Services" }), /* @__PURE__ */ O(_, { children: "Connect the providers that power maps, payments and messaging." })] }), /* @__PURE__ */ O(f, {
|
|
375
353
|
className: "space-y-3",
|
|
376
354
|
children: I.map((e) => {
|
|
377
355
|
let t = G.integrations[e.key] === !0;
|
|
@@ -383,7 +361,7 @@ function z() {
|
|
|
383
361
|
}), /* @__PURE__ */ O("p", {
|
|
384
362
|
className: "text-sm text-text-secondary",
|
|
385
363
|
children: t ? "Connected" : "Not configured"
|
|
386
|
-
})] }), /* @__PURE__ */ O(
|
|
364
|
+
})] }), /* @__PURE__ */ O(v, {
|
|
387
365
|
variant: t ? "outline" : "default",
|
|
388
366
|
size: "sm",
|
|
389
367
|
disabled: B,
|
|
@@ -404,7 +382,7 @@ function z() {
|
|
|
404
382
|
}),
|
|
405
383
|
/* @__PURE__ */ O("div", {
|
|
406
384
|
className: "flex justify-end",
|
|
407
|
-
children: /* @__PURE__ */ k(
|
|
385
|
+
children: /* @__PURE__ */ k(v, {
|
|
408
386
|
onClick: () => void $(),
|
|
409
387
|
disabled: B || z,
|
|
410
388
|
children: [
|