@burdenoff/microfe-assethandler 2026.811.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 +172 -163
  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 +223 -224
  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,20 +1,20 @@
1
1
  import { useAssetHandlerStore as e } from "../store/assethandlerStore.js";
2
2
  import { formatAssetCategory as t } from "../utils/categoryPresentation.js";
3
- import { useAssetCategoryPresentation as n, useHiddenCategoryIds as r } from "../providers/AssetHandlerProvider.js";
4
- import { useAssetHandlerNavigate as i } from "../hooks/useAssetHandlerNavigate.js";
5
- import { notify as a } from "../utils/toast.js";
6
- import { formatCurrencyCompact as o } from "../components/charts/chartTheme.js";
7
- import { TrendChart as s } from "../components/charts/TrendChart.js";
8
- import { ChartCard as c } from "../components/ChartCard.js";
3
+ import { useAssetCategoryPresentation as n, useAssetMoney as r, useHiddenCategoryIds as i } from "../providers/AssetHandlerProvider.js";
4
+ import { useAssetHandlerNavigate as a } from "../hooks/useAssetHandlerNavigate.js";
5
+ import { useCopy as o } from "../hooks/useCopy.js";
6
+ import { notify as s } from "../utils/toast.js";
7
+ import { TrendChart as c } from "../components/charts/TrendChart.js";
8
+ import { ChartCard as ee } from "../components/ChartCard.js";
9
9
  import "../components/index.js";
10
- import { useMemo as l, useRef as ee, useState as u } from "react";
11
- import { ArrowLeft as d, Info as te, Loader2 as f, Save as p, TrendingDown as m, X as h } from "lucide-react";
12
- import { gql as g } from "@apollo/client";
13
- import { useMutation as _ } from "@apollo/client/react";
14
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
15
- import { Badge as b, Button as x, GlassCard as S, GradientText as ne, Input as C, Label as w, PagePurpose as T, Select as E, SelectContent as D, SelectItem as O, SelectTrigger as k, SelectValue as A, Textarea as j } from "@burdenoff/fe-libs/ui";
10
+ import { useMemo as l, useRef as u, useState as d } from "react";
11
+ import { ArrowLeft as te, Info as ne, Loader2 as f, Save as p, TrendingDown as re, X as m } from "lucide-react";
12
+ import { gql as h } from "@apollo/client";
13
+ import { useMutation as ie } from "@apollo/client/react";
14
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
15
+ import { Badge as v, Button as y, GlassCard as b, GradientText as ae, Input as x, Label as S, PagePurpose as C, Select as w, SelectContent as T, SelectItem as E, SelectTrigger as D, SelectValue as O, Textarea as k } from "@burdenoff/fe-libs/ui";
16
16
  //#region src/assethandler/pages/AssetsAssetCreatePage.tsx
17
- var re = g`
17
+ var oe = h`
18
18
  mutation AssetHandlerCreateAsset($input: CreateAssetInput!) {
19
19
  createAsset(input: $input) {
20
20
  id
@@ -22,7 +22,7 @@ var re = g`
22
22
  name
23
23
  }
24
24
  }
25
- `, ie = [
25
+ `, se = [
26
26
  "electronics",
27
27
  "it_hardware",
28
28
  "furniture",
@@ -31,7 +31,7 @@ var re = g`
31
31
  "software",
32
32
  "networking",
33
33
  "servers"
34
- ], M = {
34
+ ], A = {
35
35
  name: "",
36
36
  description: "",
37
37
  category: "it_hardware",
@@ -52,7 +52,7 @@ var re = g`
52
52
  supplier: "",
53
53
  department: ""
54
54
  };
55
- function N(e) {
55
+ function j(e) {
56
56
  let t = e.purchaseValue, n = e.usefulLifeMonths;
57
57
  if (!t || t <= 0 || !n || n <= 0) return [];
58
58
  let r = Math.max(0, Math.min(e.salvageValue ?? 0, t)), i = e.method.toLowerCase(), a = Math.max(1, Math.round(n / 12));
@@ -88,40 +88,40 @@ function N(e) {
88
88
  }
89
89
  return o;
90
90
  }
91
- var P = ({ title: e, description: t, children: n, glow: r }) => /* @__PURE__ */ v(S, {
91
+ var M = ({ title: e, description: t, children: n, glow: r }) => /* @__PURE__ */ g(b, {
92
92
  treatment: "glass",
93
93
  glow: r,
94
94
  className: "border-border-seam",
95
- children: /* @__PURE__ */ y("div", {
95
+ children: /* @__PURE__ */ _("div", {
96
96
  className: "space-y-4 p-5 sm:p-6",
97
- children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
97
+ children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h2", {
98
98
  className: "text-lg font-semibold",
99
99
  children: e
100
- }), t ? /* @__PURE__ */ v("p", {
100
+ }), t ? /* @__PURE__ */ g("p", {
101
101
  className: "mt-0.5 text-sm text-text-secondary",
102
102
  children: t
103
103
  }) : null] }), n]
104
104
  })
105
105
  });
106
- function F() {
107
- let g = i(), S = r(), { labels: F, options: I } = n(), { assets: L } = e(), [R, z] = u(M), [B, V] = u([]), [H, U] = u(""), [W, G] = u({}), [K, q] = u(null), J = ee(!1), ae = l(() => {
108
- let e = new Set(I?.map((e) => e.id) ?? ie);
106
+ function N() {
107
+ let h = o(), b = a(), { symbol: N, compact: ce } = r(), P = i(), { labels: F, options: I } = n(), { assets: L } = e(), [R, z] = d(A), [B, V] = d([]), [H, U] = d(""), [W, G] = d({}), [K, q] = d(null), J = u(!1), le = l(() => {
108
+ let e = new Set(I?.map((e) => e.id) ?? se);
109
109
  if (!I) for (let t of L) t.category && e.add(t.category);
110
- return [...e].filter((e) => !S.has(e)).sort();
110
+ return [...e].filter((e) => !P.has(e)).sort();
111
111
  }, [
112
112
  L,
113
113
  I,
114
- S
115
- ]), [oe, { loading: Y }] = _(re, {
114
+ P
115
+ ]), [ue, { loading: Y }] = ie(oe, {
116
116
  refetchQueries: ["AssetHandlerBootstrap"],
117
117
  onCompleted: (e) => {
118
- a.success("Asset created", `${e.createAsset.name} was registered in the inventory.`), q(null), J.current ? (J.current = !1, z(M), V([]), U(""), G({}), typeof window < "u" && window.scrollTo({
118
+ s.success(h("assethandler.assets.create.toast.title", "{{asset}} created"), h("assethandler.assets.create.toast.body", "{{name}} was registered in the inventory.", { name: e.createAsset.name })), q(null), J.current ? (J.current = !1, z(A), V([]), U(""), G({}), typeof window < "u" && window.scrollTo({
119
119
  top: 0,
120
120
  behavior: "smooth"
121
- })) : g(`/assets/${e.createAsset.id}`);
121
+ })) : b(`/assets/${e.createAsset.id}`);
122
122
  },
123
123
  onError: (e) => {
124
- q(null), a.error("Could not create asset", e.message);
124
+ q(null), s.error("Could not create asset", e.message);
125
125
  }
126
126
  }), X = (e, t) => {
127
127
  z((n) => ({
@@ -135,9 +135,9 @@ function F() {
135
135
  }, Z = () => {
136
136
  let e = H.trim().replace(/,$/, "").trim();
137
137
  e && !B.includes(e) && V((t) => [...t, e]), U("");
138
- }, se = (e) => {
138
+ }, de = (e) => {
139
139
  e.key === "Enter" || e.key === "," ? (e.preventDefault(), Z()) : e.key === "Backspace" && H === "" && B.length > 0 && V((e) => e.slice(0, -1));
140
- }, Q = l(() => N({
140
+ }, Q = l(() => j({
141
141
  purchaseValue: R.purchaseValue.trim() ? Number(R.purchaseValue) : null,
142
142
  salvageValue: R.salvageValue.trim() ? Number(R.salvageValue) : null,
143
143
  usefulLifeMonths: R.usefulLifeMonths.trim() ? Number(R.usefulLifeMonths) : null,
@@ -160,7 +160,7 @@ function F() {
160
160
  (Number.isNaN(i) || i < 0) && (t[r] = `${n} must be a positive number`);
161
161
  };
162
162
  if (n(R.purchaseValue, "Purchase value", "purchaseValue"), n(R.salvageValue, "Salvage value", "salvageValue"), n(R.usefulLifeMonths, "Useful life", "usefulLifeMonths"), G(t), Object.keys(t).length > 0) {
163
- a.warning("Missing required fields", "Fill in the highlighted fields and try again.");
163
+ s.warning("Missing required fields", "Fill in the highlighted fields and try again.");
164
164
  return;
165
165
  }
166
166
  let r = (e) => {
@@ -169,7 +169,7 @@ function F() {
169
169
  let n = Number(t);
170
170
  return Number.isNaN(n) ? null : n;
171
171
  }, i = (e) => e.trim() === "" ? null : new Date(e).toISOString();
172
- J.current = e, q(e ? "add" : "create"), oe({ variables: { input: {
172
+ J.current = e, q(e ? "add" : "create"), ue({ variables: { input: {
173
173
  name: R.name.trim(),
174
174
  assetNumber: R.assetNumber.trim(),
175
175
  category: R.category,
@@ -192,27 +192,28 @@ function F() {
192
192
  department: R.department.trim() || null
193
193
  } } });
194
194
  };
195
- return /* @__PURE__ */ y("div", {
195
+ return /* @__PURE__ */ _("div", {
196
196
  className: "mx-auto max-w-4xl space-y-6 p-4 pb-28 sm:p-6 sm:pb-28",
197
197
  children: [
198
- /* @__PURE__ */ y("div", {
198
+ /* @__PURE__ */ _("div", {
199
199
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",
200
- children: [/* @__PURE__ */ v(x, {
200
+ children: [/* @__PURE__ */ g(y, {
201
201
  variant: "ghost",
202
202
  size: "icon",
203
203
  "aria-label": "Go back",
204
204
  className: "w-fit",
205
- onClick: () => g("/assets/asset-list"),
206
- children: /* @__PURE__ */ v(d, { className: "h-4 w-4" })
207
- }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h1", {
205
+ onClick: () => b("/assets/asset-list"),
206
+ children: /* @__PURE__ */ g(te, { className: "h-4 w-4" })
207
+ }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h1", {
208
208
  className: "text-2xl font-bold",
209
- children: /* @__PURE__ */ v(ne, { children: "Create New Asset" })
210
- }), /* @__PURE__ */ y("p", {
209
+ children: /* @__PURE__ */ g(ae, { children: h("assethandler.assets.create.title", "Create New {{asset}}") })
210
+ }), /* @__PURE__ */ _("p", {
211
211
  className: "text-sm text-text-secondary",
212
212
  children: [
213
- "Register a new asset in the inventory ·",
213
+ h("assethandler.assets.create.subtitle", "Register a new {{assetLower}} in the inventory"),
214
214
  " ",
215
- /* @__PURE__ */ v("span", {
215
+ "· ",
216
+ /* @__PURE__ */ g("span", {
216
217
  className: "text-status-error-text",
217
218
  children: "*"
218
219
  }),
@@ -220,127 +221,135 @@ function F() {
220
221
  ]
221
222
  })] })]
222
223
  }),
223
- /* @__PURE__ */ v(T, { children: "Register a new asset so it can be tracked, maintained and assigned from day one. Capture its identity, category and condition, then its financials and location — the more you fill in now, the better your reports and audits later." }),
224
- /* @__PURE__ */ y(P, {
224
+ /* @__PURE__ */ g(C, { children: h("assethandler.assets.create.purpose", "Register a new {{assetLower}} so it can be tracked, maintained and assigned from day one. Capture its identity, category and condition, then its financials and location — the more you fill in now, the better your reports and audits later.") }),
225
+ /* @__PURE__ */ _(M, {
225
226
  title: "General Information",
226
- description: "Basic asset details and identification",
227
+ description: h("assethandler.assets.create.general.description", "Basic {{assetLower}} details and identification"),
227
228
  glow: !0,
228
229
  children: [
229
- /* @__PURE__ */ y("div", {
230
+ /* @__PURE__ */ _("div", {
230
231
  className: "grid gap-4 md:grid-cols-2",
231
- children: [/* @__PURE__ */ y("div", {
232
+ children: [/* @__PURE__ */ _("div", {
232
233
  className: "space-y-2",
233
234
  children: [
234
- /* @__PURE__ */ y(w, { children: ["Asset Name ", /* @__PURE__ */ v("span", {
235
- className: "text-status-error-text",
236
- children: "*"
237
- })] }),
238
- /* @__PURE__ */ v(C, {
239
- placeholder: "e.g., Dell OptiPlex 7090",
235
+ /* @__PURE__ */ _(S, { children: [
236
+ h("assethandler.assets.create.field.name", "{{asset}} Name"),
237
+ " ",
238
+ /* @__PURE__ */ g("span", {
239
+ className: "text-status-error-text",
240
+ children: "*"
241
+ })
242
+ ] }),
243
+ /* @__PURE__ */ g(x, {
244
+ placeholder: h("assethandler.assets.create.field.namePlaceholder", "e.g., Dell OptiPlex 7090"),
240
245
  value: R.name,
241
246
  onChange: (e) => X("name", e.target.value),
242
247
  "aria-invalid": !!W.name
243
248
  }),
244
- W.name ? /* @__PURE__ */ v("p", {
249
+ W.name ? /* @__PURE__ */ g("p", {
245
250
  className: "text-xs text-status-error-text",
246
251
  children: W.name
247
252
  }) : null
248
253
  ]
249
- }), /* @__PURE__ */ y("div", {
254
+ }), /* @__PURE__ */ _("div", {
250
255
  className: "space-y-2",
251
256
  children: [
252
- /* @__PURE__ */ y(w, { children: ["Asset Tag ", /* @__PURE__ */ v("span", {
253
- className: "text-status-error-text",
254
- children: "*"
255
- })] }),
256
- /* @__PURE__ */ v(C, {
257
- placeholder: "e.g., IT-HW-001",
257
+ /* @__PURE__ */ _(S, { children: [
258
+ h("assethandler.assets.create.field.tag", "{{asset}} Tag"),
259
+ " ",
260
+ /* @__PURE__ */ g("span", {
261
+ className: "text-status-error-text",
262
+ children: "*"
263
+ })
264
+ ] }),
265
+ /* @__PURE__ */ g(x, {
266
+ placeholder: h("assethandler.assets.create.field.tagPlaceholder", "e.g., IT-HW-001"),
258
267
  value: R.assetNumber,
259
268
  onChange: (e) => X("assetNumber", e.target.value),
260
269
  "aria-invalid": !!W.assetNumber
261
270
  }),
262
- W.assetNumber ? /* @__PURE__ */ v("p", {
271
+ W.assetNumber ? /* @__PURE__ */ g("p", {
263
272
  className: "text-xs text-status-error-text",
264
273
  children: W.assetNumber
265
274
  }) : null
266
275
  ]
267
276
  })]
268
277
  }),
269
- /* @__PURE__ */ y("div", {
278
+ /* @__PURE__ */ _("div", {
270
279
  className: "space-y-2",
271
- children: [/* @__PURE__ */ v(w, { children: "Description" }), /* @__PURE__ */ v(j, {
272
- placeholder: "Brief description of the asset...",
280
+ children: [/* @__PURE__ */ g(S, { children: "Description" }), /* @__PURE__ */ g(k, {
281
+ placeholder: h("assethandler.assets.create.field.descriptionPlaceholder", "Brief description of the {{assetLower}}..."),
273
282
  value: R.description,
274
283
  onChange: (e) => X("description", e.target.value),
275
284
  rows: 3
276
285
  })]
277
286
  }),
278
- /* @__PURE__ */ y("div", {
287
+ /* @__PURE__ */ _("div", {
279
288
  className: "grid gap-4 md:grid-cols-3",
280
289
  children: [
281
- /* @__PURE__ */ y("div", {
290
+ /* @__PURE__ */ _("div", {
282
291
  className: "space-y-2",
283
- children: [/* @__PURE__ */ y(w, { children: ["Category ", /* @__PURE__ */ v("span", {
292
+ children: [/* @__PURE__ */ _(S, { children: ["Category ", /* @__PURE__ */ g("span", {
284
293
  className: "text-status-error-text",
285
294
  children: "*"
286
- })] }), /* @__PURE__ */ y(E, {
295
+ })] }), /* @__PURE__ */ _(w, {
287
296
  value: R.category,
288
297
  onValueChange: (e) => X("category", e),
289
- children: [/* @__PURE__ */ v(k, { children: /* @__PURE__ */ v(A, {}) }), /* @__PURE__ */ v(D, { children: ae.map((e) => /* @__PURE__ */ v(O, {
298
+ children: [/* @__PURE__ */ g(D, { children: /* @__PURE__ */ g(O, {}) }), /* @__PURE__ */ g(T, { children: le.map((e) => /* @__PURE__ */ g(E, {
290
299
  value: e,
291
300
  className: "capitalize",
292
301
  children: I?.find((t) => t.id === e)?.label ?? t(e, F)
293
302
  }, e)) })]
294
303
  })]
295
304
  }),
296
- /* @__PURE__ */ y("div", {
305
+ /* @__PURE__ */ _("div", {
297
306
  className: "space-y-2",
298
- children: [/* @__PURE__ */ v(w, { children: "Status" }), /* @__PURE__ */ y(E, {
307
+ children: [/* @__PURE__ */ g(S, { children: "Status" }), /* @__PURE__ */ _(w, {
299
308
  value: R.status,
300
309
  onValueChange: (e) => X("status", e),
301
- children: [/* @__PURE__ */ v(k, { children: /* @__PURE__ */ v(A, {}) }), /* @__PURE__ */ y(D, { children: [
302
- /* @__PURE__ */ v(O, {
310
+ children: [/* @__PURE__ */ g(D, { children: /* @__PURE__ */ g(O, {}) }), /* @__PURE__ */ _(T, { children: [
311
+ /* @__PURE__ */ g(E, {
303
312
  value: "ACTIVE",
304
313
  children: "Active"
305
314
  }),
306
- /* @__PURE__ */ v(O, {
315
+ /* @__PURE__ */ g(E, {
307
316
  value: "INACTIVE",
308
317
  children: "Inactive"
309
318
  }),
310
- /* @__PURE__ */ v(O, {
319
+ /* @__PURE__ */ g(E, {
311
320
  value: "MAINTENANCE",
312
321
  children: "Maintenance"
313
322
  }),
314
- /* @__PURE__ */ v(O, {
323
+ /* @__PURE__ */ g(E, {
315
324
  value: "RETIRED",
316
325
  children: "Retired"
317
326
  })
318
327
  ] })]
319
328
  })]
320
329
  }),
321
- /* @__PURE__ */ y("div", {
330
+ /* @__PURE__ */ _("div", {
322
331
  className: "space-y-2",
323
- children: [/* @__PURE__ */ v(w, { children: "Condition" }), /* @__PURE__ */ y(E, {
332
+ children: [/* @__PURE__ */ g(S, { children: "Condition" }), /* @__PURE__ */ _(w, {
324
333
  value: R.condition,
325
334
  onValueChange: (e) => X("condition", e),
326
- children: [/* @__PURE__ */ v(k, { children: /* @__PURE__ */ v(A, {}) }), /* @__PURE__ */ y(D, { children: [
327
- /* @__PURE__ */ v(O, {
335
+ children: [/* @__PURE__ */ g(D, { children: /* @__PURE__ */ g(O, {}) }), /* @__PURE__ */ _(T, { children: [
336
+ /* @__PURE__ */ g(E, {
328
337
  value: "EXCELLENT",
329
338
  children: "Excellent"
330
339
  }),
331
- /* @__PURE__ */ v(O, {
340
+ /* @__PURE__ */ g(E, {
332
341
  value: "GOOD",
333
342
  children: "Good"
334
343
  }),
335
- /* @__PURE__ */ v(O, {
344
+ /* @__PURE__ */ g(E, {
336
345
  value: "FAIR",
337
346
  children: "Fair"
338
347
  }),
339
- /* @__PURE__ */ v(O, {
348
+ /* @__PURE__ */ g(E, {
340
349
  value: "POOR",
341
350
  children: "Poor"
342
351
  }),
343
- /* @__PURE__ */ v(O, {
352
+ /* @__PURE__ */ g(E, {
344
353
  value: "DAMAGED",
345
354
  children: "Damaged"
346
355
  })
@@ -349,9 +358,9 @@ function F() {
349
358
  })
350
359
  ]
351
360
  }),
352
- /* @__PURE__ */ y("div", {
361
+ /* @__PURE__ */ _("div", {
353
362
  className: "space-y-2",
354
- children: [/* @__PURE__ */ v(w, { children: "Serial Number" }), /* @__PURE__ */ v(C, {
363
+ children: [/* @__PURE__ */ g(S, { children: "Serial Number" }), /* @__PURE__ */ g(x, {
355
364
  placeholder: "e.g., DELL-7090-X1A2B3",
356
365
  value: R.serialNumber,
357
366
  onChange: (e) => X("serialNumber", e.target.value)
@@ -359,23 +368,23 @@ function F() {
359
368
  })
360
369
  ]
361
370
  }),
362
- /* @__PURE__ */ y(P, {
371
+ /* @__PURE__ */ _(M, {
363
372
  title: "Financial Details",
364
373
  description: "Purchase and depreciation data powers book value, TCO and finance reports",
365
374
  children: [
366
- /* @__PURE__ */ y("div", {
375
+ /* @__PURE__ */ _("div", {
367
376
  className: "grid gap-4 md:grid-cols-3",
368
377
  children: [
369
- /* @__PURE__ */ y("div", {
378
+ /* @__PURE__ */ _("div", {
370
379
  className: "space-y-2",
371
380
  children: [
372
- /* @__PURE__ */ v(w, { children: "Purchase Value" }),
373
- /* @__PURE__ */ y("div", {
381
+ /* @__PURE__ */ g(S, { children: "Purchase Value" }),
382
+ /* @__PURE__ */ _("div", {
374
383
  className: "relative",
375
- children: [/* @__PURE__ */ v("span", {
384
+ children: [/* @__PURE__ */ g("span", {
376
385
  className: "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-sm text-text-secondary",
377
- children: "$"
378
- }), /* @__PURE__ */ v(C, {
386
+ children: N
387
+ }), /* @__PURE__ */ g(x, {
379
388
  type: "number",
380
389
  min: "0",
381
390
  step: "0.01",
@@ -386,23 +395,23 @@ function F() {
386
395
  "aria-invalid": !!W.purchaseValue
387
396
  })]
388
397
  }),
389
- W.purchaseValue ? /* @__PURE__ */ v("p", {
398
+ W.purchaseValue ? /* @__PURE__ */ g("p", {
390
399
  className: "text-xs text-status-error-text",
391
400
  children: W.purchaseValue
392
401
  }) : null
393
402
  ]
394
403
  }),
395
- /* @__PURE__ */ y("div", {
404
+ /* @__PURE__ */ _("div", {
396
405
  className: "space-y-2",
397
- children: [/* @__PURE__ */ v(w, { children: "Purchase Date" }), /* @__PURE__ */ v(C, {
406
+ children: [/* @__PURE__ */ g(S, { children: "Purchase Date" }), /* @__PURE__ */ g(x, {
398
407
  type: "date",
399
408
  value: R.purchaseDate,
400
409
  onChange: (e) => X("purchaseDate", e.target.value)
401
410
  })]
402
411
  }),
403
- /* @__PURE__ */ y("div", {
412
+ /* @__PURE__ */ _("div", {
404
413
  className: "space-y-2",
405
- children: [/* @__PURE__ */ v(w, { children: "Supplier" }), /* @__PURE__ */ v(C, {
414
+ children: [/* @__PURE__ */ g(S, { children: "Supplier" }), /* @__PURE__ */ g(x, {
406
415
  placeholder: "e.g., Dell Technologies",
407
416
  value: R.supplier,
408
417
  onChange: (e) => X("supplier", e.target.value)
@@ -410,16 +419,16 @@ function F() {
410
419
  })
411
420
  ]
412
421
  }),
413
- /* @__PURE__ */ y("div", {
422
+ /* @__PURE__ */ _("div", {
414
423
  className: "grid gap-4 md:grid-cols-3",
415
424
  children: [
416
- /* @__PURE__ */ y("div", {
425
+ /* @__PURE__ */ _("div", {
417
426
  className: "space-y-2",
418
427
  children: [
419
- /* @__PURE__ */ v(w, { children: "Useful Life" }),
420
- /* @__PURE__ */ y("div", {
428
+ /* @__PURE__ */ g(S, { children: "Useful Life" }),
429
+ /* @__PURE__ */ _("div", {
421
430
  className: "relative",
422
- children: [/* @__PURE__ */ v(C, {
431
+ children: [/* @__PURE__ */ g(x, {
423
432
  type: "number",
424
433
  min: "0",
425
434
  step: "1",
@@ -428,27 +437,27 @@ function F() {
428
437
  value: R.usefulLifeMonths,
429
438
  onChange: (e) => X("usefulLifeMonths", e.target.value),
430
439
  "aria-invalid": !!W.usefulLifeMonths
431
- }), /* @__PURE__ */ v("span", {
440
+ }), /* @__PURE__ */ g("span", {
432
441
  className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-sm text-text-secondary",
433
442
  children: "months"
434
443
  })]
435
444
  }),
436
- W.usefulLifeMonths ? /* @__PURE__ */ v("p", {
445
+ W.usefulLifeMonths ? /* @__PURE__ */ g("p", {
437
446
  className: "text-xs text-status-error-text",
438
447
  children: W.usefulLifeMonths
439
448
  }) : null
440
449
  ]
441
450
  }),
442
- /* @__PURE__ */ y("div", {
451
+ /* @__PURE__ */ _("div", {
443
452
  className: "space-y-2",
444
453
  children: [
445
- /* @__PURE__ */ v(w, { children: "Salvage Value" }),
446
- /* @__PURE__ */ y("div", {
454
+ /* @__PURE__ */ g(S, { children: "Salvage Value" }),
455
+ /* @__PURE__ */ _("div", {
447
456
  className: "relative",
448
- children: [/* @__PURE__ */ v("span", {
457
+ children: [/* @__PURE__ */ g("span", {
449
458
  className: "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-sm text-text-secondary",
450
- children: "$"
451
- }), /* @__PURE__ */ v(C, {
459
+ children: N
460
+ }), /* @__PURE__ */ g(x, {
452
461
  type: "number",
453
462
  min: "0",
454
463
  step: "0.01",
@@ -459,39 +468,39 @@ function F() {
459
468
  "aria-invalid": !!W.salvageValue
460
469
  })]
461
470
  }),
462
- W.salvageValue ? /* @__PURE__ */ v("p", {
471
+ W.salvageValue ? /* @__PURE__ */ g("p", {
463
472
  className: "text-xs text-status-error-text",
464
473
  children: W.salvageValue
465
474
  }) : null
466
475
  ]
467
476
  }),
468
- /* @__PURE__ */ y("div", {
477
+ /* @__PURE__ */ _("div", {
469
478
  className: "space-y-2",
470
- children: [/* @__PURE__ */ v(w, { children: "Depreciation Method" }), /* @__PURE__ */ y(E, {
479
+ children: [/* @__PURE__ */ g(S, { children: "Depreciation Method" }), /* @__PURE__ */ _(w, {
471
480
  value: R.depreciationMethod,
472
481
  onValueChange: (e) => X("depreciationMethod", e),
473
- children: [/* @__PURE__ */ v(k, { children: /* @__PURE__ */ v(A, {}) }), /* @__PURE__ */ y(D, { children: [
474
- /* @__PURE__ */ v(O, {
482
+ children: [/* @__PURE__ */ g(D, { children: /* @__PURE__ */ g(O, {}) }), /* @__PURE__ */ _(T, { children: [
483
+ /* @__PURE__ */ g(E, {
475
484
  value: "STRAIGHT_LINE",
476
485
  children: "Straight line"
477
486
  }),
478
- /* @__PURE__ */ v(O, {
487
+ /* @__PURE__ */ g(E, {
479
488
  value: "REDUCING_BALANCE",
480
489
  children: "Reducing balance (200%)"
481
490
  }),
482
- /* @__PURE__ */ v(O, {
491
+ /* @__PURE__ */ g(E, {
483
492
  value: "DECLINING_BALANCE",
484
493
  children: "Declining balance (150%)"
485
494
  }),
486
- /* @__PURE__ */ v(O, {
495
+ /* @__PURE__ */ g(E, {
487
496
  value: "SUM_OF_YEARS_DIGITS",
488
497
  children: "Sum of years' digits"
489
498
  }),
490
- /* @__PURE__ */ v(O, {
499
+ /* @__PURE__ */ g(E, {
491
500
  value: "UNITS_OF_PRODUCTION",
492
501
  children: "Units of production"
493
502
  }),
494
- /* @__PURE__ */ v(O, {
503
+ /* @__PURE__ */ g(E, {
495
504
  value: "NONE",
496
505
  children: "None"
497
506
  })
@@ -500,11 +509,11 @@ function F() {
500
509
  })
501
510
  ]
502
511
  }),
503
- R.depreciationMethod === "UNITS_OF_PRODUCTION" ? /* @__PURE__ */ y("div", {
512
+ R.depreciationMethod === "UNITS_OF_PRODUCTION" ? /* @__PURE__ */ _("div", {
504
513
  className: "grid gap-4 md:grid-cols-2",
505
- children: [/* @__PURE__ */ y("div", {
514
+ children: [/* @__PURE__ */ _("div", {
506
515
  className: "space-y-2",
507
- children: [/* @__PURE__ */ v(w, { children: "Lifetime Capacity (units)" }), /* @__PURE__ */ v(C, {
516
+ children: [/* @__PURE__ */ g(S, { children: "Lifetime Capacity (units)" }), /* @__PURE__ */ g(x, {
508
517
  type: "number",
509
518
  min: "0",
510
519
  step: "1",
@@ -512,9 +521,9 @@ function F() {
512
521
  value: R.unitsOfProductionCapacity,
513
522
  onChange: (e) => X("unitsOfProductionCapacity", e.target.value)
514
523
  })]
515
- }), /* @__PURE__ */ y("div", {
524
+ }), /* @__PURE__ */ _("div", {
516
525
  className: "space-y-2",
517
- children: [/* @__PURE__ */ v(w, { children: "Units Produced To Date" }), /* @__PURE__ */ v(C, {
526
+ children: [/* @__PURE__ */ g(S, { children: "Units Produced To Date" }), /* @__PURE__ */ g(x, {
518
527
  type: "number",
519
528
  min: "0",
520
529
  step: "1",
@@ -524,83 +533,83 @@ function F() {
524
533
  })]
525
534
  })]
526
535
  }) : null,
527
- /* @__PURE__ */ y("div", {
536
+ /* @__PURE__ */ _("div", {
528
537
  className: "space-y-2",
529
- children: [/* @__PURE__ */ v(w, { children: "Warranty Expiry" }), /* @__PURE__ */ v(C, {
538
+ children: [/* @__PURE__ */ g(S, { children: "Warranty Expiry" }), /* @__PURE__ */ g(x, {
530
539
  type: "date",
531
540
  value: R.warrantyExpiry,
532
541
  onChange: (e) => X("warrantyExpiry", e.target.value)
533
542
  })]
534
543
  }),
535
- /* @__PURE__ */ v(c, {
544
+ /* @__PURE__ */ g(ee, {
536
545
  title: "Depreciation preview",
537
- subtitle: "Projected book value over the asset's useful life",
538
- icon: m,
539
- children: Q.length > 0 ? /* @__PURE__ */ v(s, {
546
+ subtitle: h("assethandler.assets.create.depreciation.subtitle", "Projected book value over the {{assetLower}}'s useful life"),
547
+ icon: re,
548
+ children: Q.length > 0 ? /* @__PURE__ */ g(c, {
540
549
  data: Q,
541
550
  xKey: "year",
542
551
  height: 240,
543
- valueFormat: o("USD"),
552
+ valueFormat: ce,
544
553
  xTickFormat: (e) => `${e}y`,
545
554
  series: [{
546
555
  key: "bookValue",
547
556
  label: "Book value"
548
557
  }]
549
- }) : /* @__PURE__ */ y("div", {
558
+ }) : /* @__PURE__ */ _("div", {
550
559
  className: "flex flex-col items-center gap-2 py-10 text-center text-sm text-text-secondary",
551
- children: [/* @__PURE__ */ v(te, { className: "h-5 w-5 text-text-muted" }), "Enter a purchase value and useful life to preview the depreciation schedule."]
560
+ children: [/* @__PURE__ */ g(ne, { className: "h-5 w-5 text-text-muted" }), "Enter a purchase value and useful life to preview the depreciation schedule."]
552
561
  })
553
562
  })
554
563
  ]
555
564
  }),
556
- /* @__PURE__ */ v(P, {
565
+ /* @__PURE__ */ g(M, {
557
566
  title: "Assignment & Location",
558
567
  description: "Who holds it and where it lives",
559
- children: /* @__PURE__ */ y("div", {
568
+ children: /* @__PURE__ */ _("div", {
560
569
  className: "grid gap-4 md:grid-cols-2",
561
570
  children: [
562
- /* @__PURE__ */ y("div", {
571
+ /* @__PURE__ */ _("div", {
563
572
  className: "space-y-2",
564
- children: [/* @__PURE__ */ v(w, { children: "Assigned To" }), /* @__PURE__ */ v(C, {
573
+ children: [/* @__PURE__ */ g(S, { children: "Assigned To" }), /* @__PURE__ */ g(x, {
565
574
  placeholder: "e.g., john.smith@company.com",
566
575
  value: R.assignedTo,
567
576
  onChange: (e) => X("assignedTo", e.target.value)
568
577
  })]
569
578
  }),
570
- /* @__PURE__ */ y("div", {
579
+ /* @__PURE__ */ _("div", {
571
580
  className: "space-y-2",
572
- children: [/* @__PURE__ */ v(w, { children: "Location" }), /* @__PURE__ */ v(C, {
581
+ children: [/* @__PURE__ */ g(S, { children: "Location" }), /* @__PURE__ */ g(x, {
573
582
  placeholder: "e.g., Building A, Floor 3, Desk 15",
574
583
  value: R.locationName,
575
584
  onChange: (e) => X("locationName", e.target.value)
576
585
  })]
577
586
  }),
578
- /* @__PURE__ */ y("div", {
587
+ /* @__PURE__ */ _("div", {
579
588
  className: "space-y-2",
580
- children: [/* @__PURE__ */ v(w, { children: "Department" }), /* @__PURE__ */ v(C, {
589
+ children: [/* @__PURE__ */ g(S, { children: "Department" }), /* @__PURE__ */ g(x, {
581
590
  placeholder: "e.g., Engineering",
582
591
  value: R.department,
583
592
  onChange: (e) => X("department", e.target.value)
584
593
  })]
585
594
  }),
586
- /* @__PURE__ */ y("div", {
595
+ /* @__PURE__ */ _("div", {
587
596
  className: "space-y-2",
588
- children: [/* @__PURE__ */ v(w, { children: "Tags" }), /* @__PURE__ */ y("div", {
597
+ children: [/* @__PURE__ */ g(S, { children: "Tags" }), /* @__PURE__ */ _("div", {
589
598
  className: "flex flex-wrap items-center gap-1.5 rounded-md border border-border-strong bg-bg-surface px-2 py-1.5 focus-within:border-action-primary-bg",
590
- children: [B.map((e) => /* @__PURE__ */ y(b, {
599
+ children: [B.map((e) => /* @__PURE__ */ _(v, {
591
600
  variant: "secondary",
592
601
  className: "gap-1",
593
- children: [e, /* @__PURE__ */ v("button", {
602
+ children: [e, /* @__PURE__ */ g("button", {
594
603
  type: "button",
595
604
  "aria-label": `Remove ${e}`,
596
605
  onClick: () => V((t) => t.filter((t) => t !== e)),
597
606
  className: "text-text-secondary hover:text-text-primary",
598
- children: /* @__PURE__ */ v(h, { className: "h-3 w-3" })
607
+ children: /* @__PURE__ */ g(m, { className: "h-3 w-3" })
599
608
  })]
600
- }, e)), /* @__PURE__ */ v("input", {
609
+ }, e)), /* @__PURE__ */ g("input", {
601
610
  value: H,
602
611
  onChange: (e) => U(e.target.value),
603
- onKeyDown: se,
612
+ onKeyDown: de,
604
613
  onBlur: Z,
605
614
  placeholder: B.length === 0 ? "Type a tag and press Enter" : "",
606
615
  className: "min-w-[8rem] flex-1 border-0 bg-transparent text-sm outline-none placeholder:text-text-secondary"
@@ -610,30 +619,30 @@ function F() {
610
619
  ]
611
620
  })
612
621
  }),
613
- /* @__PURE__ */ v("div", {
622
+ /* @__PURE__ */ g("div", {
614
623
  className: "sticky bottom-0 -mx-4 mt-6 border-t border-border-seam bg-bg-surface/95 px-4 py-3 backdrop-blur sm:-mx-6 sm:px-6",
615
- children: /* @__PURE__ */ y("div", {
624
+ children: /* @__PURE__ */ _("div", {
616
625
  className: "mx-auto flex max-w-4xl flex-col gap-2 sm:flex-row sm:justify-end",
617
626
  children: [
618
- /* @__PURE__ */ y(x, {
627
+ /* @__PURE__ */ _(y, {
619
628
  variant: "outline",
620
629
  className: "w-full sm:w-auto",
621
- onClick: () => g("/assets/asset-list"),
630
+ onClick: () => b("/assets/asset-list"),
622
631
  disabled: Y,
623
- children: [/* @__PURE__ */ v(h, { className: "mr-2 h-4 w-4" }), "Cancel"]
632
+ children: [/* @__PURE__ */ g(m, { className: "mr-2 h-4 w-4" }), "Cancel"]
624
633
  }),
625
- /* @__PURE__ */ y(x, {
634
+ /* @__PURE__ */ _(y, {
626
635
  variant: "outline",
627
636
  className: "w-full sm:w-auto",
628
637
  onClick: () => $(!0),
629
638
  disabled: Y,
630
- children: [Y && K === "add" ? /* @__PURE__ */ v(f, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ v(p, { className: "mr-2 h-4 w-4" }), "Save & add another"]
639
+ children: [Y && K === "add" ? /* @__PURE__ */ g(f, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(p, { className: "mr-2 h-4 w-4" }), "Save & add another"]
631
640
  }),
632
- /* @__PURE__ */ y(x, {
641
+ /* @__PURE__ */ _(y, {
633
642
  className: "w-full sm:w-auto",
634
643
  onClick: () => $(!1),
635
644
  disabled: Y,
636
- children: [Y && K === "create" ? /* @__PURE__ */ v(f, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ v(p, { className: "mr-2 h-4 w-4" }), Y ? "Creating..." : "Create Asset"]
645
+ children: [Y && K === "create" ? /* @__PURE__ */ g(f, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(p, { className: "mr-2 h-4 w-4" }), Y ? "Creating..." : "Create Asset"]
637
646
  })
638
647
  ]
639
648
  })
@@ -642,6 +651,6 @@ function F() {
642
651
  });
643
652
  }
644
653
  //#endregion
645
- export { F as AssetsAssetCreatePage };
654
+ export { N as AssetsAssetCreatePage };
646
655
 
647
656
  //# sourceMappingURL=AssetsAssetCreatePage.js.map