@burdenoff/microfe-assethandler 2026.813.1 → 2026.813.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/assethandler/components/charts/BarsChart.js +25 -25
  2. package/dist/assethandler/components/charts/ChartParts.js +27 -27
  3. package/dist/assethandler/components/charts/DonutChart.js +17 -17
  4. package/dist/assethandler/components/charts/ProgressMeter.js +5 -5
  5. package/dist/assethandler/components/charts/RadialGauge.js +13 -13
  6. package/dist/assethandler/components/charts/Sparkline.js +27 -27
  7. package/dist/assethandler/components/charts/TrendChart.js +47 -47
  8. package/dist/assethandler/components/index.js +1 -1
  9. package/dist/assethandler/pages/AiPredictionsPage.js +20 -20
  10. package/dist/assethandler/pages/AnalyticsPage.d.ts.map +1 -1
  11. package/dist/assethandler/pages/AnalyticsPage.js +133 -133
  12. package/dist/assethandler/pages/AnalyticsPage.js.map +1 -1
  13. package/dist/assethandler/pages/AssetsAssetCategoriesPage.d.ts.map +1 -1
  14. package/dist/assethandler/pages/AssetsAssetCategoriesPage.js +55 -55
  15. package/dist/assethandler/pages/AssetsAssetCategoriesPage.js.map +1 -1
  16. package/dist/assethandler/pages/AssetsAssetCreatePage.d.ts.map +1 -1
  17. package/dist/assethandler/pages/AssetsAssetCreatePage.js +77 -78
  18. package/dist/assethandler/pages/AssetsAssetCreatePage.js.map +1 -1
  19. package/dist/assethandler/pages/AssetsAssetDetailPage.d.ts.map +1 -1
  20. package/dist/assethandler/pages/AssetsAssetDetailPage.js +140 -141
  21. package/dist/assethandler/pages/AssetsAssetDetailPage.js.map +1 -1
  22. package/dist/assethandler/pages/AssetsAssetListPage.js +249 -249
  23. package/dist/assethandler/pages/AssetsAssetListPage.js.map +1 -1
  24. package/dist/assethandler/pages/AssetsAssetTrackingPage.js +8 -8
  25. package/dist/assethandler/pages/CmdbBrowserPage.js +34 -34
  26. package/dist/assethandler/pages/DashboardPage.d.ts.map +1 -1
  27. package/dist/assethandler/pages/DashboardPage.js +256 -255
  28. package/dist/assethandler/pages/DashboardPage.js.map +1 -1
  29. package/dist/assethandler/pages/DiscoveryJobsPage.js +27 -27
  30. package/dist/assethandler/pages/EsgDashboardPage.js +53 -53
  31. package/dist/assethandler/pages/FinanceBudgetDetailPage.d.ts.map +1 -1
  32. package/dist/assethandler/pages/FinanceBudgetDetailPage.js +156 -155
  33. package/dist/assethandler/pages/FinanceBudgetDetailPage.js.map +1 -1
  34. package/dist/assethandler/pages/FinanceFinanceHubPage.d.ts.map +1 -1
  35. package/dist/assethandler/pages/FinanceFinanceHubPage.js +475 -475
  36. package/dist/assethandler/pages/FinanceFinanceHubPage.js.map +1 -1
  37. package/dist/assethandler/pages/FinanceInvoiceDetailPage.d.ts.map +1 -1
  38. package/dist/assethandler/pages/FinanceInvoiceDetailPage.js +141 -140
  39. package/dist/assethandler/pages/FinanceInvoiceDetailPage.js.map +1 -1
  40. package/dist/assethandler/pages/ItilChangeManagementPage.js +21 -21
  41. package/dist/assethandler/pages/ItilIncidentManagementPage.js +34 -34
  42. package/dist/assethandler/pages/ItilProblemManagementPage.js +17 -17
  43. package/dist/assethandler/pages/KnowledgeBasePage.js +39 -39
  44. package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.d.ts.map +1 -1
  45. package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.js +114 -114
  46. package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.js.map +1 -1
  47. package/dist/assethandler/pages/OperationsMaintenanceDetailPage.d.ts.map +1 -1
  48. package/dist/assethandler/pages/OperationsMaintenanceDetailPage.js +158 -157
  49. package/dist/assethandler/pages/OperationsMaintenanceDetailPage.js.map +1 -1
  50. package/dist/assethandler/pages/OperationsOperationsHubPage.d.ts.map +1 -1
  51. package/dist/assethandler/pages/OperationsOperationsHubPage.js +253 -252
  52. package/dist/assethandler/pages/OperationsOperationsHubPage.js.map +1 -1
  53. package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.d.ts.map +1 -1
  54. package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.js +96 -95
  55. package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.js.map +1 -1
  56. package/dist/assethandler/pages/ProvenancePage.js +21 -21
  57. package/dist/assethandler/pages/ReportsDashboardPage.d.ts.map +1 -1
  58. package/dist/assethandler/pages/ReportsDashboardPage.js +301 -301
  59. package/dist/assethandler/pages/ReportsDashboardPage.js.map +1 -1
  60. package/dist/assethandler/pages/SecuritySecurityHubPage.js +126 -126
  61. package/dist/assethandler/pages/SecuritySecurityHubPage.js.map +1 -1
  62. package/dist/assethandler/pages/TransactionsTransactionDetailPage.d.ts.map +1 -1
  63. package/dist/assethandler/pages/TransactionsTransactionDetailPage.js +112 -113
  64. package/dist/assethandler/pages/TransactionsTransactionDetailPage.js.map +1 -1
  65. package/dist/assethandler/pages/TransactionsTransactionListPage.d.ts.map +1 -1
  66. package/dist/assethandler/pages/TransactionsTransactionListPage.js +136 -137
  67. package/dist/assethandler/pages/TransactionsTransactionListPage.js.map +1 -1
  68. package/dist/assethandler/providers/AssetHandlerProvider.d.ts +14 -0
  69. package/dist/assethandler/providers/AssetHandlerProvider.d.ts.map +1 -1
  70. package/dist/assethandler/providers/AssetHandlerProvider.js +44 -34
  71. package/dist/assethandler/providers/AssetHandlerProvider.js.map +1 -1
  72. package/dist/assethandler/types/index.d.ts +10 -0
  73. package/dist/assethandler/types/index.d.ts.map +1 -1
  74. package/dist/assethandler/utils/money.d.ts +34 -0
  75. package/dist/assethandler/utils/money.d.ts.map +1 -0
  76. package/dist/assethandler/utils/money.js +27 -0
  77. package/dist/assethandler/utils/money.js.map +1 -0
  78. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  import { useAssetHandlerStore as e } from "../store/assethandlerStore.js";
2
- import { useAssetHandlerNavigate as t } from "../hooks/useAssetHandlerNavigate.js";
3
- import { cn as n } from "../utils/cn.js";
4
- import { chartTokens as r, formatCurrencyCompact as i } from "../components/charts/chartTheme.js";
2
+ import { chartTokens as t } from "../components/charts/chartTheme.js";
3
+ import { useAssetMoney as n } from "../providers/AssetHandlerProvider.js";
4
+ import { useAssetHandlerNavigate as r } from "../hooks/useAssetHandlerNavigate.js";
5
+ import { cn as i } from "../utils/cn.js";
5
6
  import { TrendChart as ee } from "../components/charts/TrendChart.js";
6
7
  import { BarsChart as te } from "../components/charts/BarsChart.js";
7
8
  import { DonutChart as ne } from "../components/charts/DonutChart.js";
@@ -12,69 +13,69 @@ import { SectionHeader as l } from "../components/SectionHeader.js";
12
13
  import "../components/index.js";
13
14
  import { NewWorkOrderDialog as re } from "../ops/NewWorkOrderDialog.js";
14
15
  import { useMemo as u, useState as d } from "react";
15
- import { AlertTriangle as ie, BarChart3 as ae, CheckCircle2 as oe, ClipboardList as se, PieChart as f, Plus as p, TrendingUp as m, Wrench as ce } from "lucide-react";
16
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
17
- import { Button as v, IllustratedEmptyState as y, NextSteps as le, PagePurpose as b, Select as x, SelectContent as S, SelectItem as C, SelectTrigger as w, SelectValue as T, Tabs as ue, TabsContent as E, TabsList as de, TabsTrigger as D } from "@burdenoff/fe-libs/ui";
16
+ import { AlertTriangle as ie, BarChart3 as ae, CheckCircle2 as oe, ClipboardList as se, PieChart as ce, Plus as f, TrendingUp as le, Wrench as ue } from "lucide-react";
17
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
18
+ import { Button as g, IllustratedEmptyState as _, NextSteps as de, PagePurpose as v, Select as y, SelectContent as b, SelectItem as x, SelectTrigger as S, SelectValue as C, Tabs as fe, TabsContent as w, TabsList as T, TabsTrigger as E } from "@burdenoff/fe-libs/ui";
18
19
  //#region src/assethandler/pages/OperationsOperationsHubPage.tsx
19
- var O = {
20
+ var D = {
20
21
  neutral: "bg-bg-sunken text-text-secondary",
21
22
  info: "bg-status-info-subtle text-status-info-text",
22
23
  warning: "bg-status-warning-subtle text-status-warning-text",
23
24
  success: "bg-status-success-subtle text-status-success-text",
24
25
  error: "bg-status-error-subtle text-status-error-text"
25
- }, fe = {
26
+ }, pe = {
26
27
  neutral: "var(--color-text-muted)",
27
- info: r.status.info,
28
- warning: r.status.warning,
29
- success: r.status.success,
30
- error: r.status.danger
31
- }, k = {
28
+ info: t.status.info,
29
+ warning: t.status.warning,
30
+ success: t.status.success,
31
+ error: t.status.danger
32
+ }, O = {
32
33
  critical: "error",
33
34
  high: "warning",
34
35
  medium: "info",
35
36
  low: "success"
36
- }, A = {
37
+ }, k = {
37
38
  draft: "neutral",
38
39
  scheduled: "neutral",
39
40
  approved: "info",
40
41
  in_progress: "info",
41
42
  completed: "success",
42
43
  cancelled: "error"
43
- }, j = {
44
+ }, A = {
44
45
  preventive: "success",
45
46
  corrective: "warning",
46
47
  predictive: "info",
47
48
  emergency: "error"
48
- }, M = {
49
+ }, j = {
49
50
  scheduled: "neutral",
50
51
  in_progress: "info",
51
52
  completed: "success",
52
53
  overdue: "error",
53
54
  cancelled: "error"
54
55
  };
55
- function N({ tone: e, children: t }) {
56
- return /* @__PURE__ */ g("span", {
57
- className: n("inline-flex items-center whitespace-nowrap rounded-full px-2 py-0.5 text-xs font-medium capitalize", O[e]),
56
+ function M({ tone: e, children: t }) {
57
+ return /* @__PURE__ */ m("span", {
58
+ className: i("inline-flex items-center whitespace-nowrap rounded-full px-2 py-0.5 text-xs font-medium capitalize", D[e]),
58
59
  children: t
59
60
  });
60
61
  }
61
- var P = (e) => e.toLowerCase().replace(/_/g, " ").replace(/^\w/, (e) => e.toUpperCase()), F = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`, I = (e) => {
62
+ var N = (e) => e.toLowerCase().replace(/_/g, " ").replace(/^\w/, (e) => e.toUpperCase()), P = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`, me = (e) => {
62
63
  let [t, n] = e.split("-");
63
64
  return new Date(Number(t), Number(n) - 1, 1).toLocaleDateString(void 0, { month: "short" });
64
65
  };
65
- function L() {
66
- let n = t(), { workOrders: O, maintenanceRecords: L, assets: R } = e(), [z, B] = d(!1), [V, pe] = d("all"), [H, me] = d("all"), [U, he] = d("all"), [W, ge] = d("all"), G = u(() => {
66
+ function F() {
67
+ let { compact: i, format: D } = n(), F = r(), { workOrders: I, maintenanceRecords: L, assets: R } = e(), [he, z] = d(!1), [B, ge] = d("all"), [V, _e] = d("all"), [H, ve] = d("all"), [U, ye] = d("all"), W = u(() => {
67
68
  let e = new Map(R.map((e) => [e.id, e.name]));
68
69
  return (t) => t ? e.get(t) ?? t : "—";
69
- }, [R]), _e = O.filter((e) => e.status !== "completed" && e.status !== "cancelled"), ve = O.filter((e) => e.status === "in_progress"), ye = O.filter((e) => e.status === "completed"), K = O.filter((e) => e.priority === "critical").length, be = /* @__PURE__ */ new Date(), q = L.filter((e) => e.scheduledDate != null && new Date(e.scheduledDate) < be && e.status !== "completed" && e.status !== "cancelled").length, xe = L.reduce((e, t) => e + (t.actualCost ?? t.estimatedCost ?? 0), 0), J = u(() => {
70
+ }, [R]), be = I.filter((e) => e.status !== "completed" && e.status !== "cancelled"), xe = I.filter((e) => e.status === "in_progress"), Se = I.filter((e) => e.status === "completed"), G = I.filter((e) => e.priority === "critical").length, Ce = /* @__PURE__ */ new Date(), K = L.filter((e) => e.scheduledDate != null && new Date(e.scheduledDate) < Ce && e.status !== "completed" && e.status !== "cancelled").length, q = L.reduce((e, t) => e + (t.actualCost ?? t.estimatedCost ?? 0), 0), J = u(() => {
70
71
  let e = /* @__PURE__ */ new Map();
71
- for (let t of O) {
72
+ for (let t of I) {
72
73
  if (!t.createdAt) continue;
73
- let n = F(new Date(t.createdAt));
74
+ let n = P(new Date(t.createdAt));
74
75
  e.set(n, (e.get(n) ?? 0) + 1);
75
76
  }
76
77
  return [...e.entries()].sort((e, t) => e[0] < t[0] ? -1 : 1).map(([, e]) => e);
77
- }, [O]), Se = u(() => {
78
+ }, [I]), we = u(() => {
78
79
  let e = [
79
80
  "draft",
80
81
  "scheduled",
@@ -83,162 +84,162 @@ function L() {
83
84
  "completed",
84
85
  "cancelled"
85
86
  ], t = /* @__PURE__ */ new Map();
86
- for (let e of O) t.set(e.status, (t.get(e.status) ?? 0) + 1);
87
+ for (let e of I) t.set(e.status, (t.get(e.status) ?? 0) + 1);
87
88
  return e.filter((e) => t.get(e)).map((e) => ({
88
- name: P(e),
89
+ name: N(e),
89
90
  value: t.get(e) ?? 0,
90
- color: fe[A[e] ?? "neutral"]
91
+ color: pe[k[e] ?? "neutral"]
91
92
  }));
92
- }, [O]), Ce = u(() => {
93
+ }, [I]), Te = u(() => {
93
94
  let e = [
94
95
  "critical",
95
96
  "high",
96
97
  "medium",
97
98
  "low"
98
99
  ], t = /* @__PURE__ */ new Map();
99
- for (let e of O) t.set(e.priority, (t.get(e.priority) ?? 0) + 1);
100
+ for (let e of I) t.set(e.priority, (t.get(e.priority) ?? 0) + 1);
100
101
  return e.filter((e) => t.get(e)).map((e) => ({
101
- priority: P(e),
102
+ priority: N(e),
102
103
  count: t.get(e) ?? 0
103
104
  }));
104
- }, [O]), Y = u(() => {
105
+ }, [I]), Y = u(() => {
105
106
  let e = /* @__PURE__ */ new Map();
106
107
  for (let t of L) {
107
108
  let n = t.completedDate ?? t.scheduledDate;
108
109
  if (!n) continue;
109
110
  let r = t.actualCost ?? t.estimatedCost ?? 0;
110
111
  if (r <= 0) continue;
111
- let i = F(new Date(n));
112
+ let i = P(new Date(n));
112
113
  e.set(i, (e.get(i) ?? 0) + r);
113
114
  }
114
115
  return [...e.entries()].sort((e, t) => e[0] < t[0] ? -1 : 1).map(([e, t]) => ({
115
- month: I(e),
116
+ month: me(e),
116
117
  cost: t
117
118
  }));
118
- }, [L]), we = O.length > 0, X = u(() => O.filter((e) => (V === "all" || e.status === V) && (H === "all" || e.priority === H) && (U === "all" || e.type === U)), [
119
- O,
119
+ }, [L]), Ee = I.length > 0, X = u(() => I.filter((e) => (B === "all" || e.status === B) && (V === "all" || e.priority === V) && (H === "all" || e.type === H)), [
120
+ I,
121
+ B,
120
122
  V,
121
- H,
122
- U
123
- ]), Z = u(() => L.filter((e) => W === "all" || e.status === W), [L, W]), Q = o(X, {
123
+ H
124
+ ]), Z = u(() => L.filter((e) => U === "all" || e.status === U), [L, U]), Q = o(X, {
124
125
  pageSize: 10,
125
- resetKey: `${V}|${H}|${U}`
126
+ resetKey: `${B}|${V}|${H}`
126
127
  }), $ = o(Z, {
127
128
  pageSize: 10,
128
- resetKey: W
129
+ resetKey: U
129
130
  });
130
- return /* @__PURE__ */ _("div", {
131
+ return /* @__PURE__ */ h("div", {
131
132
  className: "space-y-6 p-4 sm:p-6",
132
133
  children: [
133
- /* @__PURE__ */ g(l, {
134
+ /* @__PURE__ */ m(l, {
134
135
  hero: !0,
135
136
  title: "Operations Hub",
136
137
  description: "Raise and assign work orders, run scheduled and breakdown maintenance, and keep an eye on cost — so your team always knows what to fix next.",
137
- actions: /* @__PURE__ */ _(v, {
138
+ actions: /* @__PURE__ */ h(g, {
138
139
  size: "sm",
139
140
  className: "w-full sm:w-auto",
140
- onClick: () => B(!0),
141
- children: [/* @__PURE__ */ g(p, { className: "mr-2 h-4 w-4" }), "New Work Order"]
141
+ onClick: () => z(!0),
142
+ children: [/* @__PURE__ */ m(f, { className: "mr-2 h-4 w-4" }), "New Work Order"]
142
143
  })
143
144
  }),
144
- /* @__PURE__ */ g(re, {
145
- open: z,
146
- onOpenChange: B
145
+ /* @__PURE__ */ m(re, {
146
+ open: he,
147
+ onOpenChange: z
147
148
  }),
148
- /* @__PURE__ */ _("div", {
149
+ /* @__PURE__ */ h("div", {
149
150
  className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
150
151
  children: [
151
- /* @__PURE__ */ g(s, {
152
+ /* @__PURE__ */ m(s, {
152
153
  hero: !0,
153
154
  label: "Open Work Orders",
154
- value: _e.length,
155
+ value: be.length,
155
156
  icon: se,
156
157
  spark: J.length > 1 ? J : void 0
157
158
  }),
158
- /* @__PURE__ */ g(s, {
159
+ /* @__PURE__ */ m(s, {
159
160
  label: "In Progress",
160
- value: ve.length,
161
- icon: ce
161
+ value: xe.length,
162
+ icon: ue
162
163
  }),
163
- /* @__PURE__ */ g(s, {
164
+ /* @__PURE__ */ m(s, {
164
165
  label: "Completed",
165
- value: ye.length,
166
+ value: Se.length,
166
167
  icon: oe
167
168
  }),
168
- /* @__PURE__ */ g(s, {
169
+ /* @__PURE__ */ m(s, {
169
170
  label: "Overdue Maintenance",
170
- value: q,
171
+ value: K,
171
172
  icon: ie,
172
- delta: q > 0 ? "attention" : void 0,
173
- deltaDirection: q > 0 ? "up" : "neutral",
173
+ delta: K > 0 ? "attention" : void 0,
174
+ deltaDirection: K > 0 ? "up" : "neutral",
174
175
  deltaTone: "negative"
175
176
  })
176
177
  ]
177
178
  }),
178
- we ? /* @__PURE__ */ _("div", {
179
+ Ee ? /* @__PURE__ */ h("div", {
179
180
  className: "grid gap-4 lg:grid-cols-3",
180
181
  children: [
181
- /* @__PURE__ */ g(c, {
182
+ /* @__PURE__ */ m(c, {
182
183
  title: "Work orders by status",
183
184
  subtitle: "Current triage mix",
184
- icon: f,
185
- children: /* @__PURE__ */ g(ne, {
186
- data: Se,
185
+ icon: ce,
186
+ children: /* @__PURE__ */ m(ne, {
187
+ data: we,
187
188
  height: 220,
188
189
  centerLabel: "Work orders",
189
- centerValue: O.length,
190
+ centerValue: I.length,
190
191
  ariaLabel: "Work orders by status"
191
192
  })
192
193
  }),
193
- /* @__PURE__ */ g(c, {
194
+ /* @__PURE__ */ m(c, {
194
195
  title: "By priority",
195
196
  subtitle: "Where the urgency sits",
196
197
  icon: ae,
197
- children: /* @__PURE__ */ g(te, {
198
- data: Ce,
198
+ children: /* @__PURE__ */ m(te, {
199
+ data: Te,
199
200
  xKey: "priority",
200
201
  orientation: "horizontal",
201
202
  height: 220,
202
203
  series: [{
203
204
  key: "count",
204
205
  label: "Work orders",
205
- color: r.brand
206
+ color: t.brand
206
207
  }],
207
208
  ariaLabel: "Work orders by priority"
208
209
  })
209
210
  }),
210
- /* @__PURE__ */ g(c, {
211
+ /* @__PURE__ */ m(c, {
211
212
  title: "Maintenance spend",
212
213
  subtitle: "Cost by month",
213
- icon: m,
214
+ icon: le,
214
215
  bodyClassName: Y.length > 0 ? void 0 : "flex items-center",
215
- children: /* @__PURE__ */ g(ee, {
216
+ children: /* @__PURE__ */ m(ee, {
216
217
  data: Y,
217
218
  xKey: "month",
218
219
  height: 220,
219
220
  series: [{
220
221
  key: "cost",
221
222
  label: "Cost",
222
- color: r.brand
223
+ color: t.brand
223
224
  }],
224
- valueFormat: i("USD"),
225
+ valueFormat: i,
225
226
  emptyLabel: "No maintenance cost recorded yet",
226
227
  ariaLabel: "Maintenance spend by month"
227
228
  })
228
229
  })
229
230
  ]
230
231
  }) : null,
231
- /* @__PURE__ */ _(ue, {
232
+ /* @__PURE__ */ h(fe, {
232
233
  defaultValue: "work-orders",
233
234
  children: [
234
- /* @__PURE__ */ _(de, { children: [/* @__PURE__ */ _(D, {
235
+ /* @__PURE__ */ h(T, { children: [/* @__PURE__ */ h(E, {
235
236
  value: "work-orders",
236
237
  children: [
237
238
  "Work Orders (",
238
- O.length,
239
+ I.length,
239
240
  ")"
240
241
  ]
241
- }), /* @__PURE__ */ _(D, {
242
+ }), /* @__PURE__ */ h(E, {
242
243
  value: "maintenance",
243
244
  children: [
244
245
  "Maintenance (",
@@ -246,213 +247,213 @@ function L() {
246
247
  ")"
247
248
  ]
248
249
  })] }),
249
- /* @__PURE__ */ g(E, {
250
+ /* @__PURE__ */ m(w, {
250
251
  value: "work-orders",
251
252
  className: "mt-4 space-y-4",
252
- children: O.length === 0 ? /* @__PURE__ */ g(y, {
253
+ children: I.length === 0 ? /* @__PURE__ */ m(_, {
253
254
  illustration: "empty-generic",
254
255
  title: "No work orders",
255
256
  description: "Raise a work order when an asset needs repair, inspection or attention.",
256
- action: /* @__PURE__ */ _(v, {
257
+ action: /* @__PURE__ */ h(g, {
257
258
  size: "sm",
258
- onClick: () => B(!0),
259
- children: [/* @__PURE__ */ g(p, { className: "mr-2 h-4 w-4" }), "New Work Order"]
259
+ onClick: () => z(!0),
260
+ children: [/* @__PURE__ */ m(f, { className: "mr-2 h-4 w-4" }), "New Work Order"]
260
261
  })
261
- }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
262
+ }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
262
263
  className: "flex flex-col gap-3 sm:flex-row sm:flex-wrap",
263
264
  children: [
264
- /* @__PURE__ */ _(x, {
265
- value: V,
266
- onValueChange: pe,
267
- children: [/* @__PURE__ */ g(w, {
265
+ /* @__PURE__ */ h(y, {
266
+ value: B,
267
+ onValueChange: ge,
268
+ children: [/* @__PURE__ */ m(S, {
268
269
  className: "w-full sm:w-[170px]",
269
- children: /* @__PURE__ */ g(T, { placeholder: "Status" })
270
- }), /* @__PURE__ */ _(S, { children: [
271
- /* @__PURE__ */ g(C, {
270
+ children: /* @__PURE__ */ m(C, { placeholder: "Status" })
271
+ }), /* @__PURE__ */ h(b, { children: [
272
+ /* @__PURE__ */ m(x, {
272
273
  value: "all",
273
274
  children: "All statuses"
274
275
  }),
275
- /* @__PURE__ */ g(C, {
276
+ /* @__PURE__ */ m(x, {
276
277
  value: "draft",
277
278
  children: "Draft"
278
279
  }),
279
- /* @__PURE__ */ g(C, {
280
+ /* @__PURE__ */ m(x, {
280
281
  value: "scheduled",
281
282
  children: "Scheduled"
282
283
  }),
283
- /* @__PURE__ */ g(C, {
284
+ /* @__PURE__ */ m(x, {
284
285
  value: "approved",
285
286
  children: "Approved"
286
287
  }),
287
- /* @__PURE__ */ g(C, {
288
+ /* @__PURE__ */ m(x, {
288
289
  value: "in_progress",
289
290
  children: "In Progress"
290
291
  }),
291
- /* @__PURE__ */ g(C, {
292
+ /* @__PURE__ */ m(x, {
292
293
  value: "completed",
293
294
  children: "Completed"
294
295
  }),
295
- /* @__PURE__ */ g(C, {
296
+ /* @__PURE__ */ m(x, {
296
297
  value: "cancelled",
297
298
  children: "Cancelled"
298
299
  })
299
300
  ] })]
300
301
  }),
301
- /* @__PURE__ */ _(x, {
302
- value: H,
303
- onValueChange: me,
304
- children: [/* @__PURE__ */ g(w, {
302
+ /* @__PURE__ */ h(y, {
303
+ value: V,
304
+ onValueChange: _e,
305
+ children: [/* @__PURE__ */ m(S, {
305
306
  className: "w-full sm:w-[150px]",
306
- children: /* @__PURE__ */ g(T, { placeholder: "Priority" })
307
- }), /* @__PURE__ */ _(S, { children: [
308
- /* @__PURE__ */ g(C, {
307
+ children: /* @__PURE__ */ m(C, { placeholder: "Priority" })
308
+ }), /* @__PURE__ */ h(b, { children: [
309
+ /* @__PURE__ */ m(x, {
309
310
  value: "all",
310
311
  children: "All priorities"
311
312
  }),
312
- /* @__PURE__ */ g(C, {
313
+ /* @__PURE__ */ m(x, {
313
314
  value: "critical",
314
315
  children: "Critical"
315
316
  }),
316
- /* @__PURE__ */ g(C, {
317
+ /* @__PURE__ */ m(x, {
317
318
  value: "high",
318
319
  children: "High"
319
320
  }),
320
- /* @__PURE__ */ g(C, {
321
+ /* @__PURE__ */ m(x, {
321
322
  value: "medium",
322
323
  children: "Medium"
323
324
  }),
324
- /* @__PURE__ */ g(C, {
325
+ /* @__PURE__ */ m(x, {
325
326
  value: "low",
326
327
  children: "Low"
327
328
  })
328
329
  ] })]
329
330
  }),
330
- /* @__PURE__ */ _(x, {
331
- value: U,
332
- onValueChange: he,
333
- children: [/* @__PURE__ */ g(w, {
331
+ /* @__PURE__ */ h(y, {
332
+ value: H,
333
+ onValueChange: ve,
334
+ children: [/* @__PURE__ */ m(S, {
334
335
  className: "w-full sm:w-[160px]",
335
- children: /* @__PURE__ */ g(T, { placeholder: "Type" })
336
- }), /* @__PURE__ */ _(S, { children: [
337
- /* @__PURE__ */ g(C, {
336
+ children: /* @__PURE__ */ m(C, { placeholder: "Type" })
337
+ }), /* @__PURE__ */ h(b, { children: [
338
+ /* @__PURE__ */ m(x, {
338
339
  value: "all",
339
340
  children: "All types"
340
341
  }),
341
- /* @__PURE__ */ g(C, {
342
+ /* @__PURE__ */ m(x, {
342
343
  value: "corrective",
343
344
  children: "Corrective"
344
345
  }),
345
- /* @__PURE__ */ g(C, {
346
+ /* @__PURE__ */ m(x, {
346
347
  value: "preventive",
347
348
  children: "Preventive"
348
349
  }),
349
- /* @__PURE__ */ g(C, {
350
+ /* @__PURE__ */ m(x, {
350
351
  value: "predictive",
351
352
  children: "Predictive"
352
353
  }),
353
- /* @__PURE__ */ g(C, {
354
+ /* @__PURE__ */ m(x, {
354
355
  value: "emergency",
355
356
  children: "Emergency"
356
357
  })
357
358
  ] })]
358
359
  })
359
360
  ]
360
- }), X.length === 0 ? /* @__PURE__ */ g(y, {
361
+ }), X.length === 0 ? /* @__PURE__ */ m(_, {
361
362
  illustration: "empty-search",
362
363
  title: "No matching work orders",
363
364
  description: "No work orders match these filters — try clearing them."
364
- }) : /* @__PURE__ */ _(c, {
365
+ }) : /* @__PURE__ */ h(c, {
365
366
  title: "Work orders",
366
367
  subtitle: `${X.length} shown`,
367
368
  children: [
368
- /* @__PURE__ */ g("div", {
369
+ /* @__PURE__ */ m("div", {
369
370
  className: "hidden overflow-x-auto md:block",
370
- children: /* @__PURE__ */ _("table", {
371
+ children: /* @__PURE__ */ h("table", {
371
372
  className: "w-full min-w-[760px] text-sm",
372
- children: [/* @__PURE__ */ g("thead", { children: /* @__PURE__ */ _("tr", {
373
+ children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
373
374
  className: "border-b border-border-seam text-left text-text-secondary",
374
375
  children: [
375
- /* @__PURE__ */ g("th", {
376
+ /* @__PURE__ */ m("th", {
376
377
  className: "p-3 font-medium",
377
378
  children: "WO Number"
378
379
  }),
379
- /* @__PURE__ */ g("th", {
380
+ /* @__PURE__ */ m("th", {
380
381
  className: "p-3 font-medium",
381
382
  children: "Title"
382
383
  }),
383
- /* @__PURE__ */ g("th", {
384
+ /* @__PURE__ */ m("th", {
384
385
  className: "p-3 font-medium",
385
386
  children: "Asset"
386
387
  }),
387
- /* @__PURE__ */ g("th", {
388
+ /* @__PURE__ */ m("th", {
388
389
  className: "p-3 font-medium",
389
390
  children: "Type"
390
391
  }),
391
- /* @__PURE__ */ g("th", {
392
+ /* @__PURE__ */ m("th", {
392
393
  className: "p-3 font-medium",
393
394
  children: "Priority"
394
395
  }),
395
- /* @__PURE__ */ g("th", {
396
+ /* @__PURE__ */ m("th", {
396
397
  className: "p-3 font-medium",
397
398
  children: "Status"
398
399
  }),
399
- /* @__PURE__ */ g("th", {
400
+ /* @__PURE__ */ m("th", {
400
401
  className: "p-3 font-medium",
401
402
  children: "Assigned To"
402
403
  }),
403
- /* @__PURE__ */ g("th", {
404
+ /* @__PURE__ */ m("th", {
404
405
  className: "p-3 font-medium",
405
406
  children: "Created"
406
407
  })
407
408
  ]
408
- }) }), /* @__PURE__ */ g("tbody", { children: Q.pageItems.map((e) => /* @__PURE__ */ _("tr", {
409
+ }) }), /* @__PURE__ */ m("tbody", { children: Q.pageItems.map((e) => /* @__PURE__ */ h("tr", {
409
410
  className: "cursor-pointer border-b border-border-seam/60 hover:bg-bg-sunken/50",
410
- onClick: () => n("/operations/work-orders/" + e.id),
411
+ onClick: () => F("/operations/work-orders/" + e.id),
411
412
  children: [
412
- /* @__PURE__ */ g("td", {
413
+ /* @__PURE__ */ m("td", {
413
414
  className: "p-3 font-mono text-xs",
414
415
  children: e.id
415
416
  }),
416
- /* @__PURE__ */ _("td", {
417
+ /* @__PURE__ */ h("td", {
417
418
  className: "p-3",
418
- children: [/* @__PURE__ */ g("p", {
419
+ children: [/* @__PURE__ */ m("p", {
419
420
  className: "font-medium text-text-primary",
420
421
  children: e.title
421
- }), /* @__PURE__ */ g("p", {
422
+ }), /* @__PURE__ */ m("p", {
422
423
  className: "max-w-xs truncate text-xs text-text-secondary",
423
424
  children: e.description
424
425
  })]
425
426
  }),
426
- /* @__PURE__ */ g("td", {
427
+ /* @__PURE__ */ m("td", {
427
428
  className: "p-3 text-xs",
428
- children: G(e.assetId)
429
+ children: W(e.assetId)
429
430
  }),
430
- /* @__PURE__ */ g("td", {
431
+ /* @__PURE__ */ m("td", {
431
432
  className: "p-3",
432
- children: /* @__PURE__ */ g(N, {
433
- tone: j[e.type] ?? "neutral",
433
+ children: /* @__PURE__ */ m(M, {
434
+ tone: A[e.type] ?? "neutral",
434
435
  children: e.type
435
436
  })
436
437
  }),
437
- /* @__PURE__ */ g("td", {
438
+ /* @__PURE__ */ m("td", {
438
439
  className: "p-3",
439
- children: /* @__PURE__ */ g(N, {
440
- tone: k[e.priority] ?? "neutral",
440
+ children: /* @__PURE__ */ m(M, {
441
+ tone: O[e.priority] ?? "neutral",
441
442
  children: e.priority
442
443
  })
443
444
  }),
444
- /* @__PURE__ */ g("td", {
445
+ /* @__PURE__ */ m("td", {
445
446
  className: "p-3",
446
- children: /* @__PURE__ */ g(N, {
447
- tone: A[e.status] ?? "neutral",
447
+ children: /* @__PURE__ */ m(M, {
448
+ tone: k[e.status] ?? "neutral",
448
449
  children: e.status.replace(/_/g, " ")
449
450
  })
450
451
  }),
451
- /* @__PURE__ */ g("td", {
452
+ /* @__PURE__ */ m("td", {
452
453
  className: "p-3 text-xs",
453
454
  children: e.assignedTo || "—"
454
455
  }),
455
- /* @__PURE__ */ g("td", {
456
+ /* @__PURE__ */ m("td", {
456
457
  className: "p-3 text-xs tabular-nums",
457
458
  children: e.createdAt ? new Date(e.createdAt).toLocaleDateString() : "—"
458
459
  })
@@ -460,51 +461,51 @@ function L() {
460
461
  }, e.id)) })]
461
462
  })
462
463
  }),
463
- /* @__PURE__ */ g("ul", {
464
+ /* @__PURE__ */ m("ul", {
464
465
  className: "space-y-3 md:hidden",
465
- children: Q.pageItems.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ _("button", {
466
+ children: Q.pageItems.map((e) => /* @__PURE__ */ m("li", { children: /* @__PURE__ */ h("button", {
466
467
  type: "button",
467
468
  className: "w-full rounded-xl border border-border-seam bg-bg-surface p-4 text-left",
468
- onClick: () => n("/operations/work-orders/" + e.id),
469
+ onClick: () => F("/operations/work-orders/" + e.id),
469
470
  children: [
470
- /* @__PURE__ */ _("div", {
471
+ /* @__PURE__ */ h("div", {
471
472
  className: "flex items-start justify-between gap-2",
472
- children: [/* @__PURE__ */ _("div", {
473
+ children: [/* @__PURE__ */ h("div", {
473
474
  className: "min-w-0",
474
- children: [/* @__PURE__ */ g("p", {
475
+ children: [/* @__PURE__ */ m("p", {
475
476
  className: "truncate font-medium text-text-primary",
476
477
  children: e.title
477
- }), /* @__PURE__ */ g("p", {
478
+ }), /* @__PURE__ */ m("p", {
478
479
  className: "font-mono text-xs text-text-secondary",
479
480
  children: e.id
480
481
  })]
481
- }), /* @__PURE__ */ g(N, {
482
- tone: A[e.status] ?? "neutral",
482
+ }), /* @__PURE__ */ m(M, {
483
+ tone: k[e.status] ?? "neutral",
483
484
  children: e.status.replace(/_/g, " ")
484
485
  })]
485
486
  }),
486
- /* @__PURE__ */ _("div", {
487
+ /* @__PURE__ */ h("div", {
487
488
  className: "mt-3 flex flex-wrap items-center gap-2",
488
- children: [/* @__PURE__ */ g(N, {
489
- tone: j[e.type] ?? "neutral",
489
+ children: [/* @__PURE__ */ m(M, {
490
+ tone: A[e.type] ?? "neutral",
490
491
  children: e.type
491
- }), /* @__PURE__ */ g(N, {
492
- tone: k[e.priority] ?? "neutral",
492
+ }), /* @__PURE__ */ m(M, {
493
+ tone: O[e.priority] ?? "neutral",
493
494
  children: e.priority
494
495
  })]
495
496
  }),
496
- /* @__PURE__ */ _("dl", {
497
+ /* @__PURE__ */ h("dl", {
497
498
  className: "mt-3 grid grid-cols-2 gap-2 text-xs text-text-secondary",
498
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("dt", {
499
+ children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
499
500
  className: "text-text-muted",
500
501
  children: "Asset"
501
- }), /* @__PURE__ */ g("dd", {
502
+ }), /* @__PURE__ */ m("dd", {
502
503
  className: "text-text-primary",
503
- children: G(e.assetId)
504
- })] }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("dt", {
504
+ children: W(e.assetId)
505
+ })] }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("dt", {
505
506
  className: "text-text-muted",
506
507
  children: "Assigned"
507
- }), /* @__PURE__ */ g("dd", {
508
+ }), /* @__PURE__ */ m("dd", {
508
509
  className: "text-text-primary",
509
510
  children: e.assignedTo || "—"
510
511
  })] })]
@@ -512,9 +513,9 @@ function L() {
512
513
  ]
513
514
  }) }, e.id))
514
515
  }),
515
- /* @__PURE__ */ g("div", {
516
+ /* @__PURE__ */ m("div", {
516
517
  className: "pt-3",
517
- children: /* @__PURE__ */ g(a, {
518
+ children: /* @__PURE__ */ m(a, {
518
519
  page: Q.page,
519
520
  pageCount: Q.pageCount,
520
521
  rangeStart: Q.rangeStart,
@@ -530,205 +531,205 @@ function L() {
530
531
  ]
531
532
  })] })
532
533
  }),
533
- /* @__PURE__ */ g(E, {
534
+ /* @__PURE__ */ m(w, {
534
535
  value: "maintenance",
535
536
  className: "mt-4 space-y-4",
536
- children: L.length === 0 ? /* @__PURE__ */ g(y, {
537
+ children: L.length === 0 ? /* @__PURE__ */ m(_, {
537
538
  illustration: "empty-generic",
538
539
  title: "No maintenance scheduled",
539
540
  description: "Scheduled and completed maintenance for your assets will appear here.",
540
- action: /* @__PURE__ */ _(v, {
541
+ action: /* @__PURE__ */ h(g, {
541
542
  size: "sm",
542
- onClick: () => n("/maintenance/maintenance-scheduler"),
543
- children: [/* @__PURE__ */ g(p, { className: "mr-2 h-4 w-4" }), "Schedule Maintenance"]
543
+ onClick: () => F("/maintenance/maintenance-scheduler"),
544
+ children: [/* @__PURE__ */ m(f, { className: "mr-2 h-4 w-4" }), "Schedule Maintenance"]
544
545
  })
545
- }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
546
+ }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
546
547
  className: "flex flex-col gap-3 sm:flex-row sm:flex-wrap",
547
- children: [/* @__PURE__ */ _(x, {
548
- value: W,
549
- onValueChange: ge,
550
- children: [/* @__PURE__ */ g(w, {
548
+ children: [/* @__PURE__ */ h(y, {
549
+ value: U,
550
+ onValueChange: ye,
551
+ children: [/* @__PURE__ */ m(S, {
551
552
  className: "w-full sm:w-[180px]",
552
- children: /* @__PURE__ */ g(T, { placeholder: "Status" })
553
- }), /* @__PURE__ */ _(S, { children: [
554
- /* @__PURE__ */ g(C, {
553
+ children: /* @__PURE__ */ m(C, { placeholder: "Status" })
554
+ }), /* @__PURE__ */ h(b, { children: [
555
+ /* @__PURE__ */ m(x, {
555
556
  value: "all",
556
557
  children: "All statuses"
557
558
  }),
558
- /* @__PURE__ */ g(C, {
559
+ /* @__PURE__ */ m(x, {
559
560
  value: "scheduled",
560
561
  children: "Scheduled"
561
562
  }),
562
- /* @__PURE__ */ g(C, {
563
+ /* @__PURE__ */ m(x, {
563
564
  value: "in_progress",
564
565
  children: "In Progress"
565
566
  }),
566
- /* @__PURE__ */ g(C, {
567
+ /* @__PURE__ */ m(x, {
567
568
  value: "completed",
568
569
  children: "Completed"
569
570
  }),
570
- /* @__PURE__ */ g(C, {
571
+ /* @__PURE__ */ m(x, {
571
572
  value: "cancelled",
572
573
  children: "Cancelled"
573
574
  })
574
575
  ] })]
575
- }), /* @__PURE__ */ _("div", {
576
+ }), /* @__PURE__ */ h("div", {
576
577
  className: "flex items-center rounded-lg bg-bg-sunken px-3 py-2 text-sm text-text-secondary",
577
578
  children: [
578
579
  "Total cost\xA0",
579
- /* @__PURE__ */ _("span", {
580
+ /* @__PURE__ */ m("span", {
580
581
  className: "font-semibold tabular-nums text-text-primary",
581
- children: ["$", xe.toLocaleString()]
582
+ children: D(q)
582
583
  }),
583
- K > 0 ? /* @__PURE__ */ _("span", {
584
+ G > 0 ? /* @__PURE__ */ h("span", {
584
585
  className: "ml-3 text-status-error-text",
585
- children: [K, " critical"]
586
+ children: [G, " critical"]
586
587
  }) : null
587
588
  ]
588
589
  })]
589
- }), Z.length === 0 ? /* @__PURE__ */ g(y, {
590
+ }), Z.length === 0 ? /* @__PURE__ */ m(_, {
590
591
  illustration: "empty-search",
591
592
  title: "No matching maintenance",
592
593
  description: "No maintenance records match this filter."
593
- }) : /* @__PURE__ */ _(c, {
594
+ }) : /* @__PURE__ */ h(c, {
594
595
  title: "Maintenance activities",
595
596
  subtitle: `${Z.length} shown`,
596
597
  children: [
597
- /* @__PURE__ */ g("div", {
598
+ /* @__PURE__ */ m("div", {
598
599
  className: "hidden overflow-x-auto md:block",
599
- children: /* @__PURE__ */ _("table", {
600
+ children: /* @__PURE__ */ h("table", {
600
601
  className: "w-full min-w-[820px] text-sm",
601
- children: [/* @__PURE__ */ g("thead", { children: /* @__PURE__ */ _("tr", {
602
+ children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
602
603
  className: "border-b border-border-seam text-left text-text-secondary",
603
604
  children: [
604
- /* @__PURE__ */ g("th", {
605
+ /* @__PURE__ */ m("th", {
605
606
  className: "p-3 font-medium",
606
607
  children: "ID"
607
608
  }),
608
- /* @__PURE__ */ g("th", {
609
+ /* @__PURE__ */ m("th", {
609
610
  className: "p-3 font-medium",
610
611
  children: "Title"
611
612
  }),
612
- /* @__PURE__ */ g("th", {
613
+ /* @__PURE__ */ m("th", {
613
614
  className: "p-3 font-medium",
614
615
  children: "Asset"
615
616
  }),
616
- /* @__PURE__ */ g("th", {
617
+ /* @__PURE__ */ m("th", {
617
618
  className: "p-3 font-medium",
618
619
  children: "Type"
619
620
  }),
620
- /* @__PURE__ */ g("th", {
621
+ /* @__PURE__ */ m("th", {
621
622
  className: "p-3 font-medium",
622
623
  children: "Priority"
623
624
  }),
624
- /* @__PURE__ */ g("th", {
625
+ /* @__PURE__ */ m("th", {
625
626
  className: "p-3 font-medium",
626
627
  children: "Status"
627
628
  }),
628
- /* @__PURE__ */ g("th", {
629
+ /* @__PURE__ */ m("th", {
629
630
  className: "p-3 font-medium",
630
631
  children: "Date"
631
632
  }),
632
- /* @__PURE__ */ g("th", {
633
+ /* @__PURE__ */ m("th", {
633
634
  className: "p-3 text-right font-medium",
634
635
  children: "Cost"
635
636
  })
636
637
  ]
637
- }) }), /* @__PURE__ */ g("tbody", { children: $.pageItems.map((e) => /* @__PURE__ */ _("tr", {
638
+ }) }), /* @__PURE__ */ m("tbody", { children: $.pageItems.map((e) => /* @__PURE__ */ h("tr", {
638
639
  className: "cursor-pointer border-b border-border-seam/60 hover:bg-bg-sunken/50",
639
- onClick: () => n("/operations/maintenance/" + e.id),
640
+ onClick: () => F("/operations/maintenance/" + e.id),
640
641
  children: [
641
- /* @__PURE__ */ g("td", {
642
+ /* @__PURE__ */ m("td", {
642
643
  className: "p-3 font-mono text-xs",
643
644
  children: e.id
644
645
  }),
645
- /* @__PURE__ */ g("td", {
646
+ /* @__PURE__ */ m("td", {
646
647
  className: "p-3 font-medium text-text-primary",
647
648
  children: e.title
648
649
  }),
649
- /* @__PURE__ */ g("td", {
650
+ /* @__PURE__ */ m("td", {
650
651
  className: "p-3 text-xs",
651
- children: G(e.assetId)
652
+ children: W(e.assetId)
652
653
  }),
653
- /* @__PURE__ */ g("td", {
654
+ /* @__PURE__ */ m("td", {
654
655
  className: "p-3 text-xs capitalize",
655
656
  children: e.type
656
657
  }),
657
- /* @__PURE__ */ g("td", {
658
+ /* @__PURE__ */ m("td", {
658
659
  className: "p-3",
659
- children: /* @__PURE__ */ g(N, {
660
- tone: k[e.priority] ?? "neutral",
660
+ children: /* @__PURE__ */ m(M, {
661
+ tone: O[e.priority] ?? "neutral",
661
662
  children: e.priority
662
663
  })
663
664
  }),
664
- /* @__PURE__ */ g("td", {
665
+ /* @__PURE__ */ m("td", {
665
666
  className: "p-3",
666
- children: /* @__PURE__ */ g(N, {
667
- tone: M[e.status] ?? "neutral",
667
+ children: /* @__PURE__ */ m(M, {
668
+ tone: j[e.status] ?? "neutral",
668
669
  children: e.status.replace(/_/g, " ")
669
670
  })
670
671
  }),
671
- /* @__PURE__ */ g("td", {
672
+ /* @__PURE__ */ m("td", {
672
673
  className: "p-3 text-xs tabular-nums",
673
674
  children: e.scheduledDate ? new Date(e.scheduledDate).toLocaleDateString() : "—"
674
675
  }),
675
- /* @__PURE__ */ _("td", {
676
+ /* @__PURE__ */ m("td", {
676
677
  className: "p-3 text-right font-medium tabular-nums",
677
- children: ["$", (e.actualCost ?? e.estimatedCost ?? 0).toLocaleString()]
678
+ children: D(e.actualCost ?? e.estimatedCost ?? 0)
678
679
  })
679
680
  ]
680
681
  }, e.id)) })]
681
682
  })
682
683
  }),
683
- /* @__PURE__ */ g("ul", {
684
+ /* @__PURE__ */ m("ul", {
684
685
  className: "space-y-3 md:hidden",
685
- children: $.pageItems.map((e) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ _("button", {
686
+ children: $.pageItems.map((e) => /* @__PURE__ */ m("li", { children: /* @__PURE__ */ h("button", {
686
687
  type: "button",
687
688
  className: "w-full rounded-xl border border-border-seam bg-bg-surface p-4 text-left",
688
- onClick: () => n("/operations/maintenance/" + e.id),
689
+ onClick: () => F("/operations/maintenance/" + e.id),
689
690
  children: [
690
- /* @__PURE__ */ _("div", {
691
+ /* @__PURE__ */ h("div", {
691
692
  className: "flex items-start justify-between gap-2",
692
- children: [/* @__PURE__ */ _("div", {
693
+ children: [/* @__PURE__ */ h("div", {
693
694
  className: "min-w-0",
694
- children: [/* @__PURE__ */ g("p", {
695
+ children: [/* @__PURE__ */ m("p", {
695
696
  className: "truncate font-medium text-text-primary",
696
697
  children: e.title
697
- }), /* @__PURE__ */ g("p", {
698
+ }), /* @__PURE__ */ m("p", {
698
699
  className: "font-mono text-xs text-text-secondary",
699
700
  children: e.id
700
701
  })]
701
- }), /* @__PURE__ */ g(N, {
702
- tone: M[e.status] ?? "neutral",
702
+ }), /* @__PURE__ */ m(M, {
703
+ tone: j[e.status] ?? "neutral",
703
704
  children: e.status.replace(/_/g, " ")
704
705
  })]
705
706
  }),
706
- /* @__PURE__ */ _("div", {
707
+ /* @__PURE__ */ h("div", {
707
708
  className: "mt-3 flex flex-wrap items-center gap-2",
708
- children: [/* @__PURE__ */ g(N, {
709
- tone: k[e.priority] ?? "neutral",
709
+ children: [/* @__PURE__ */ m(M, {
710
+ tone: O[e.priority] ?? "neutral",
710
711
  children: e.priority
711
- }), /* @__PURE__ */ g("span", {
712
+ }), /* @__PURE__ */ m("span", {
712
713
  className: "text-xs capitalize text-text-secondary",
713
714
  children: e.type
714
715
  })]
715
716
  }),
716
- /* @__PURE__ */ _("div", {
717
+ /* @__PURE__ */ h("div", {
717
718
  className: "mt-3 flex items-center justify-between text-xs",
718
- children: [/* @__PURE__ */ g("span", {
719
+ children: [/* @__PURE__ */ m("span", {
719
720
  className: "text-text-secondary",
720
721
  children: e.scheduledDate ? new Date(e.scheduledDate).toLocaleDateString() : "—"
721
- }), /* @__PURE__ */ _("span", {
722
+ }), /* @__PURE__ */ m("span", {
722
723
  className: "font-semibold tabular-nums text-text-primary",
723
- children: ["$", (e.actualCost ?? e.estimatedCost ?? 0).toLocaleString()]
724
+ children: D(e.actualCost ?? e.estimatedCost ?? 0)
724
725
  })]
725
726
  })
726
727
  ]
727
728
  }) }, e.id))
728
729
  }),
729
- /* @__PURE__ */ g("div", {
730
+ /* @__PURE__ */ m("div", {
730
731
  className: "pt-3",
731
- children: /* @__PURE__ */ g(a, {
732
+ children: /* @__PURE__ */ m(a, {
732
733
  page: $.page,
733
734
  pageCount: $.pageCount,
734
735
  rangeStart: $.rangeStart,
@@ -746,27 +747,27 @@ function L() {
746
747
  })
747
748
  ]
748
749
  }),
749
- /* @__PURE__ */ g(b, { children: "Where the hands-on work gets coordinated: raise and assign work orders, run scheduled and breakdown maintenance, and keep an eye on cost — so your team always knows what to fix next." }),
750
- /* @__PURE__ */ g(le, {
750
+ /* @__PURE__ */ m(v, { children: "Where the hands-on work gets coordinated: raise and assign work orders, run scheduled and breakdown maintenance, and keep an eye on cost — so your team always knows what to fix next." }),
751
+ /* @__PURE__ */ m(de, {
751
752
  storageKey: "assethandler-operations-hub",
752
753
  steps: [
753
754
  {
754
755
  id: "scheduler",
755
756
  label: "Plan preventive maintenance",
756
757
  description: "Schedule upcoming maintenance before assets fail.",
757
- onClick: () => n("/maintenance/maintenance-scheduler")
758
+ onClick: () => F("/maintenance/maintenance-scheduler")
758
759
  },
759
760
  {
760
761
  id: "calendar",
761
762
  label: "View the maintenance calendar",
762
763
  description: "Spot clashes and overdue jobs at a glance.",
763
- onClick: () => n("/maintenance/maintenance-calendar")
764
+ onClick: () => F("/maintenance/maintenance-calendar")
764
765
  },
765
766
  {
766
767
  id: "assets",
767
768
  label: "Open the asset inventory",
768
769
  description: "Jump to an asset to log a work order against it.",
769
- onClick: () => n("/assets/asset-list")
770
+ onClick: () => F("/assets/asset-list")
770
771
  }
771
772
  ]
772
773
  })
@@ -774,6 +775,6 @@ function L() {
774
775
  });
775
776
  }
776
777
  //#endregion
777
- export { L as OperationsOperationsHubPage };
778
+ export { F as OperationsOperationsHubPage };
778
779
 
779
780
  //# sourceMappingURL=OperationsOperationsHubPage.js.map