@burdenoff/microfe-assethandler 2026.710.1 → 2026.713.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 (36) hide show
  1. package/dist/assethandler/AssetHandlerRoot.d.ts.map +1 -1
  2. package/dist/assethandler/AssetHandlerRoot.js +16 -8
  3. package/dist/assethandler/AssetHandlerRoot.js.map +1 -1
  4. package/dist/assethandler/components/AttachmentsPanel.d.ts.map +1 -1
  5. package/dist/assethandler/components/AttachmentsPanel.js.map +1 -1
  6. package/dist/assethandler/pages/AssetsAssetCategoriesPage.d.ts.map +1 -1
  7. package/dist/assethandler/pages/AssetsAssetCategoriesPage.js +144 -137
  8. package/dist/assethandler/pages/AssetsAssetCategoriesPage.js.map +1 -1
  9. package/dist/assethandler/pages/AssetsAssetCreatePage.d.ts.map +1 -1
  10. package/dist/assethandler/pages/AssetsAssetCreatePage.js +202 -201
  11. package/dist/assethandler/pages/AssetsAssetCreatePage.js.map +1 -1
  12. package/dist/assethandler/pages/AssetsAssetListPage.d.ts.map +1 -1
  13. package/dist/assethandler/pages/AssetsAssetListPage.js +135 -132
  14. package/dist/assethandler/pages/AssetsAssetListPage.js.map +1 -1
  15. package/dist/assethandler/providers/AssetHandlerProvider.d.ts +14 -0
  16. package/dist/assethandler/providers/AssetHandlerProvider.d.ts.map +1 -1
  17. package/dist/assethandler/providers/AssetHandlerProvider.js +14 -2
  18. package/dist/assethandler/providers/AssetHandlerProvider.js.map +1 -1
  19. package/dist/assethandler/store/assethandlerStore.d.ts.map +1 -1
  20. package/dist/assethandler/store/assethandlerStore.js.map +1 -1
  21. package/dist/assethandler/types/index.d.ts +32 -0
  22. package/dist/assethandler/types/index.d.ts.map +1 -1
  23. package/dist/services/createSandboxAssistantTransport.d.ts +8 -26
  24. package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -1
  25. package/dist/services/createSandboxAssistantTransport.js +8 -114
  26. package/dist/services/createSandboxAssistantTransport.js.map +1 -1
  27. package/dist/types/assistant.d.ts.map +1 -1
  28. package/dist/utils/pageContext.d.ts.map +1 -1
  29. package/dist/utils/pageContext.js.map +1 -1
  30. package/package.json +2 -2
  31. package/dist/generated/wspace-operations.js +0 -255
  32. package/dist/generated/wspace-operations.js.map +0 -1
  33. package/dist/services/assistantApi.d.ts +0 -71
  34. package/dist/services/assistantApi.d.ts.map +0 -1
  35. package/dist/services/assistantApi.js +0 -215
  36. package/dist/services/assistantApi.js.map +0 -1
@@ -1,48 +1,49 @@
1
1
  import { useAssetHandlerStore as e } from "../store/assethandlerStore.js";
2
- import { useAssetHandlerNavigate as t } from "../hooks/useAssetHandlerNavigate.js";
3
- import { tWithFallback as n } from "../utils/i18n.js";
4
- import { notify as r } from "../utils/toast.js";
5
- import { formatCompact as i } from "../components/charts/chartTheme.js";
2
+ import { useHiddenCategoryIds as t } from "../providers/AssetHandlerProvider.js";
3
+ import { useAssetHandlerNavigate as n } from "../hooks/useAssetHandlerNavigate.js";
4
+ import { tWithFallback as r } from "../utils/i18n.js";
5
+ import { notify as i } from "../utils/toast.js";
6
+ import { formatCompact as a } from "../components/charts/chartTheme.js";
6
7
  import { BarsChart as ee } from "../components/charts/BarsChart.js";
7
8
  import { DonutChart as te } from "../components/charts/DonutChart.js";
8
9
  import { Pagination as ne, usePagination as re } from "../components/Pagination.js";
9
- import { StatTile as a } from "../components/StatTile.js";
10
- import { ChartCard as o } from "../components/ChartCard.js";
10
+ import { StatTile as o } from "../components/StatTile.js";
11
+ import { ChartCard as s } from "../components/ChartCard.js";
11
12
  import "../components/index.js";
12
- import { useMemo as s, useState as c, useSyncExternalStore as l } from "react";
13
- import { ArrowDown as ie, ArrowUp as ae, Box as u, Boxes as oe, CheckCircle2 as se, ChevronsUpDown as d, Code as f, Copy as p, Eye as m, Grid3x3 as ce, List as le, Monitor as h, MoreHorizontal as g, Plus as _, Search as v, Server as y, Table as ue, Truck as b, Wifi as x, Wrench as S } from "lucide-react";
13
+ import { useMemo as c, useState as l, useSyncExternalStore as u } from "react";
14
+ import { ArrowDown as ie, ArrowUp as ae, Box as d, Boxes as oe, CheckCircle2 as se, ChevronsUpDown as ce, Code as f, Copy as p, Eye as m, Grid3x3 as le, List as ue, Monitor as h, MoreHorizontal as g, Plus as _, Search as v, Server as y, Table as de, Truck as b, Wifi as x, Wrench as S } from "lucide-react";
14
15
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
15
- import { Button as E, Card as D, CardContent as O, CardHeader as de, CardTitle as fe, DropdownMenu as k, DropdownMenuContent as A, DropdownMenuItem as j, DropdownMenuTrigger as M, GradientText as N, IllustratedEmptyState as pe, Input as me, PagePurpose as he, Select as P, SelectContent as F, SelectItem as I, SelectTrigger as L, SelectValue as R } from "@burdenoff/fe-libs/ui";
16
- import { useI18n as ge } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
16
+ import { Button as E, Card as D, CardContent as O, CardHeader as fe, CardTitle as pe, DropdownMenu as k, DropdownMenuContent as A, DropdownMenuItem as j, DropdownMenuTrigger as M, GradientText as me, IllustratedEmptyState as he, Input as ge, PagePurpose as _e, Select as N, SelectContent as P, SelectItem as F, SelectTrigger as I, SelectValue as L } from "@burdenoff/fe-libs/ui";
17
+ import { useI18n as ve } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
18
  //#region src/assethandler/pages/AssetsAssetListPage.tsx
18
- var z = {
19
+ var R = {
19
20
  active: "bg-status-success-bg-subtle text-status-success-text",
20
21
  maintenance: "bg-status-warning-bg-subtle text-status-warning-text",
21
22
  inactive: "bg-bg-sunken text-text-secondary",
22
23
  retired: "bg-bg-sunken text-text-secondary",
23
24
  disposed: "bg-status-error-bg-subtle text-status-error-text"
24
- }, B = {
25
+ }, z = {
25
26
  excellent: "text-status-success-text bg-status-success-bg-subtle",
26
27
  good: "text-status-info-text bg-status-info-bg-subtle",
27
28
  fair: "text-status-warning-text bg-status-warning-bg-subtle",
28
29
  poor: "text-status-warning-text bg-status-warning-bg-subtle",
29
30
  damaged: "text-status-error-text bg-status-error-bg-subtle"
30
- }, _e = {
31
+ }, ye = {
31
32
  active: "var(--color-status-success-bg)",
32
33
  maintenance: "var(--color-status-warning-bg)",
33
34
  inactive: "var(--color-status-info-bg)",
34
35
  retired: "var(--color-text-muted)",
35
36
  disposed: "var(--color-status-error-bg)"
36
- }, V = {
37
+ }, B = {
37
38
  electronics: h,
38
39
  it_hardware: h,
39
- furniture: u,
40
+ furniture: d,
40
41
  vehicles: b,
41
42
  equipment: S,
42
43
  software: f,
43
44
  networking: x,
44
45
  servers: y
45
- }, H = {
46
+ }, V = {
46
47
  electronics: "bg-status-info-bg-subtle text-status-info-text",
47
48
  it_hardware: "bg-status-info-bg-subtle text-status-info-text",
48
49
  furniture: "bg-status-warning-bg-subtle text-status-warning-text",
@@ -52,38 +53,40 @@ var z = {
52
53
  networking: "bg-status-info-bg-subtle text-status-info-text",
53
54
  servers: "bg-status-error-bg-subtle text-status-error-text"
54
55
  };
55
- function U({ category: e }) {
56
- let t = V[e] ?? u;
56
+ function H({ category: e }) {
57
+ let t = B[e] ?? d;
57
58
  return /* @__PURE__ */ w("span", {
58
- className: `inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md ${H[e] ?? "bg-bg-sunken text-text-secondary"}`,
59
+ className: `inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md ${V[e] ?? "bg-bg-sunken text-text-secondary"}`,
59
60
  children: /* @__PURE__ */ w(t, { className: "h-4 w-4" })
60
61
  });
61
62
  }
62
- function W({ status: e }) {
63
+ function U({ status: e }) {
63
64
  return /* @__PURE__ */ w("span", {
64
- className: `inline-flex rounded-full px-2.5 py-0.5 text-xs font-medium capitalize ${z[e] || "bg-bg-sunken text-text-secondary"}`,
65
+ className: `inline-flex rounded-full px-2.5 py-0.5 text-xs font-medium capitalize ${R[e] || "bg-bg-sunken text-text-secondary"}`,
65
66
  children: e.replace(/_/g, " ")
66
67
  });
67
68
  }
68
- function ve() {
69
- return l((e) => {
69
+ function be() {
70
+ return u((e) => {
70
71
  if (typeof window > "u" || !window.matchMedia) return () => {};
71
72
  let t = window.matchMedia("(max-width: 767px)");
72
73
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
73
74
  }, () => typeof window < "u" && window.matchMedia ? window.matchMedia("(max-width: 767px)").matches : !1, () => !1);
74
75
  }
75
- function G() {
76
- let { t: l } = ge(), f = t(), { assets: p, hydrated: m } = e(), h = ve(), [g, y] = c(""), [b, x] = c("all"), [S, k] = c("all"), [A, j] = c("table"), [M, z] = c(!1), [V, H] = c("name"), [G, K] = c("asc"), q = !M && h && A === "table" ? "list" : A, J = (e) => {
77
- z(!0), j(e);
78
- }, Y = s(() => [...new Set(p.map((e) => e.category).filter(Boolean))].sort(), [p]), X = s(() => p.filter((e) => {
79
- let t = g === "" || e.name.toLowerCase().includes(g.toLowerCase()) || e.assetTag.toLowerCase().includes(g.toLowerCase()) || e.serialNumber.toLowerCase().includes(g.toLowerCase()), n = b === "all" || e.category === b, r = S === "all" || e.status === S;
76
+ function W() {
77
+ let { t: u } = ve(), f = n(), p = t(), { assets: m, hydrated: h } = e(), g = be(), [y, b] = l(""), [x, S] = l("all"), [k, A] = l("all"), [j, M] = l("table"), [R, B] = l(!1), [V, W] = l("name"), [G, K] = l("asc"), q = !R && g && j === "table" ? "list" : j, J = (e) => {
78
+ B(!0), M(e);
79
+ }, Y = c(() => [...new Set(m.map((e) => e.category).filter(Boolean))].filter((e) => !p.has(e)).sort(), [m, p]), X = c(() => m.filter((e) => {
80
+ if (p.has(e.category)) return !1;
81
+ let t = y === "" || e.name.toLowerCase().includes(y.toLowerCase()) || e.assetTag.toLowerCase().includes(y.toLowerCase()) || e.serialNumber.toLowerCase().includes(y.toLowerCase()), n = x === "all" || e.category === x, r = k === "all" || e.status === k;
80
82
  return t && n && r;
81
83
  }), [
82
- p,
83
- g,
84
- b,
85
- S
86
- ]), be = s(() => {
84
+ m,
85
+ y,
86
+ x,
87
+ k,
88
+ p
89
+ ]), Se = c(() => {
87
90
  let e = G === "asc" ? 1 : -1;
88
91
  return [...X].sort((t, n) => {
89
92
  let r = (t[V] ?? "").toString().toLowerCase(), i = (n[V] ?? "").toString().toLowerCase();
@@ -93,36 +96,36 @@ function G() {
93
96
  X,
94
97
  V,
95
98
  G
96
- ]), Z = p.filter((e) => e.status === "active").length, xe = s(() => {
99
+ ]), Z = m.filter((e) => e.status === "active").length, Ce = c(() => {
97
100
  let e = {};
98
- for (let t of p) e[t.status] = (e[t.status] || 0) + 1;
101
+ for (let t of m) e[t.status] = (e[t.status] || 0) + 1;
99
102
  return Object.entries(e).map(([e, t]) => ({
100
103
  name: e.charAt(0).toUpperCase() + e.slice(1),
101
104
  value: t,
102
- color: _e[e]
105
+ color: ye[e]
103
106
  }));
104
- }, [p]), Se = s(() => {
107
+ }, [m]), we = c(() => {
105
108
  let e = {};
106
- for (let t of p) e[t.category] = (e[t.category] || 0) + 1;
109
+ for (let t of m) e[t.category] = (e[t.category] || 0) + 1;
107
110
  return Object.entries(e).sort((e, t) => t[1] - e[1]).slice(0, 8).map(([e, t]) => ({
108
111
  category: e.replace(/_/g, " "),
109
112
  count: t
110
113
  }));
111
- }, [p]), Q = re(be, {
114
+ }, [m]), Q = re(Se, {
112
115
  pageSize: 12,
113
- resetKey: `${g}|${b}|${S}|${V}|${G}`
114
- }), Ce = (e) => {
115
- V === e ? K((e) => e === "asc" ? "desc" : "asc") : (H(e), K("asc"));
116
+ resetKey: `${y}|${x}|${k}|${V}|${G}`
117
+ }), Te = (e) => {
118
+ V === e ? K((e) => e === "asc" ? "desc" : "asc") : (W(e), K("asc"));
116
119
  }, $ = (e, t) => /* @__PURE__ */ w("th", {
117
120
  className: "p-3 text-left font-medium",
118
121
  children: /* @__PURE__ */ T("button", {
119
122
  type: "button",
120
- onClick: () => Ce(t),
123
+ onClick: () => Te(t),
121
124
  className: "inline-flex items-center gap-1 hover:text-text-primary",
122
- children: [e, V === t ? w(G === "asc" ? ae : ie, { className: "h-3 w-3 text-action-primary-bg" }) : /* @__PURE__ */ w(d, { className: "h-3 w-3 text-text-muted" })]
125
+ children: [e, V === t ? w(G === "asc" ? ae : ie, { className: "h-3 w-3 text-action-primary-bg" }) : /* @__PURE__ */ w(ce, { className: "h-3 w-3 text-text-muted" })]
123
126
  })
124
- }), we = (e) => {
125
- navigator.clipboard?.writeText(e), r.success("Asset tag copied", `${e} copied to clipboard.`);
127
+ }), Ee = (e) => {
128
+ navigator.clipboard?.writeText(e), i.success("Asset tag copied", `${e} copied to clipboard.`);
126
129
  };
127
130
  return /* @__PURE__ */ T("div", {
128
131
  className: "space-y-6 p-4 sm:p-6",
@@ -131,77 +134,77 @@ function G() {
131
134
  className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
132
135
  children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
133
136
  className: "text-2xl font-bold",
134
- children: /* @__PURE__ */ w(N, { children: n(l, "assethandler.assets.list.title", "Asset Inventory") })
137
+ children: /* @__PURE__ */ w(me, { children: r(u, "assethandler.assets.list.title", "Asset Inventory") })
135
138
  }), /* @__PURE__ */ T("p", {
136
139
  className: "text-sm text-text-secondary",
137
140
  children: [
138
- p.length,
141
+ m.length,
139
142
  " ",
140
- n(l, "assethandler.assets.list.subtitle.totalAssets", "total assets"),
143
+ r(u, "assethandler.assets.list.subtitle.totalAssets", "total assets"),
141
144
  " ",
142
145
  "· ",
143
146
  Z,
144
147
  " ",
145
- n(l, "assethandler.assets.list.subtitle.active", "active")
148
+ r(u, "assethandler.assets.list.subtitle.active", "active")
146
149
  ]
147
150
  })] }), /* @__PURE__ */ T(E, {
148
151
  className: "w-full sm:w-auto",
149
152
  size: "sm",
150
153
  onClick: () => f("/assets/asset-create"),
151
- children: [/* @__PURE__ */ w(_, { className: "mr-2 h-4 w-4" }), n(l, "assethandler.assets.list.actions.addAsset", "Add Asset")]
154
+ children: [/* @__PURE__ */ w(_, { className: "mr-2 h-4 w-4" }), r(u, "assethandler.assets.list.actions.addAsset", "Add Asset")]
152
155
  })]
153
156
  }),
154
- /* @__PURE__ */ w(he, { children: n(l, "assethandler.assets.list.purpose", "The single source of truth for every asset you own or manage. Search, filter and group by category, status or condition to find any item fast, review its assignment, then drill in to update, check it in/out or schedule maintenance.") }),
155
- p.length > 0 ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T("div", {
157
+ /* @__PURE__ */ w(_e, { children: r(u, "assethandler.assets.list.purpose", "The single source of truth for every asset you own or manage. Search, filter and group by category, status or condition to find any item fast, review its assignment, then drill in to update, check it in/out or schedule maintenance.") }),
158
+ m.length > 0 ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T("div", {
156
159
  className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-4",
157
160
  children: [
158
- /* @__PURE__ */ w(a, {
161
+ /* @__PURE__ */ w(o, {
159
162
  label: "Total assets",
160
- value: p.length,
161
- format: i,
163
+ value: m.length,
164
+ format: a,
162
165
  icon: oe,
163
166
  hero: !0
164
167
  }),
165
- /* @__PURE__ */ w(a, {
168
+ /* @__PURE__ */ w(o, {
166
169
  label: "Active",
167
170
  value: Z,
168
- format: i,
171
+ format: a,
169
172
  icon: se
170
173
  }),
171
- /* @__PURE__ */ w(a, {
174
+ /* @__PURE__ */ w(o, {
172
175
  label: "Categories",
173
176
  value: Y.length,
174
- format: i,
175
- icon: u
177
+ format: a,
178
+ icon: d
176
179
  }),
177
- /* @__PURE__ */ w(a, {
180
+ /* @__PURE__ */ w(o, {
178
181
  label: "Showing",
179
182
  value: X.length,
180
- format: i,
183
+ format: a,
181
184
  icon: v
182
185
  })
183
186
  ]
184
187
  }), /* @__PURE__ */ T("div", {
185
188
  className: "grid gap-4 lg:grid-cols-2",
186
- children: [/* @__PURE__ */ w(o, {
189
+ children: [/* @__PURE__ */ w(s, {
187
190
  title: "Status mix",
188
191
  subtitle: "Assets by lifecycle status",
189
192
  children: /* @__PURE__ */ w(te, {
190
- data: xe,
193
+ data: Ce,
191
194
  centerLabel: "Total",
192
- centerValue: p.length,
195
+ centerValue: m.length,
193
196
  height: 220
194
197
  })
195
- }), /* @__PURE__ */ w(o, {
198
+ }), /* @__PURE__ */ w(s, {
196
199
  title: "By category",
197
200
  subtitle: "Top categories by asset count",
198
201
  children: /* @__PURE__ */ w(ee, {
199
- data: Se,
202
+ data: we,
200
203
  xKey: "category",
201
204
  orientation: "horizontal",
202
205
  height: 220,
203
206
  categoryWidth: 110,
204
- valueFormat: i,
207
+ valueFormat: a,
205
208
  series: [{
206
209
  key: "count",
207
210
  label: "Assets"
@@ -216,58 +219,58 @@ function G() {
216
219
  children: [
217
220
  /* @__PURE__ */ T("div", {
218
221
  className: "relative min-w-0 flex-1",
219
- children: [/* @__PURE__ */ w(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ w(me, {
220
- placeholder: n(l, "assethandler.assets.list.search.placeholder", "Search by name, asset tag, serial number..."),
221
- value: g,
222
- onChange: (e) => y(e.target.value),
222
+ children: [/* @__PURE__ */ w(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ w(ge, {
223
+ placeholder: r(u, "assethandler.assets.list.search.placeholder", "Search by name, asset tag, serial number..."),
224
+ value: y,
225
+ onChange: (e) => b(e.target.value),
223
226
  className: "pl-9"
224
227
  })]
225
228
  }),
226
- /* @__PURE__ */ T(P, {
227
- value: b,
228
- onValueChange: x,
229
- children: [/* @__PURE__ */ w(L, {
229
+ /* @__PURE__ */ T(N, {
230
+ value: x,
231
+ onValueChange: S,
232
+ children: [/* @__PURE__ */ w(I, {
230
233
  className: "w-full sm:w-[180px]",
231
- children: /* @__PURE__ */ w(R, { placeholder: n(l, "assethandler.assets.list.filters.category.placeholder", "Category") })
232
- }), /* @__PURE__ */ T(F, { children: [/* @__PURE__ */ w(I, {
234
+ children: /* @__PURE__ */ w(L, { placeholder: r(u, "assethandler.assets.list.filters.category.placeholder", "Category") })
235
+ }), /* @__PURE__ */ T(P, { children: [/* @__PURE__ */ w(F, {
233
236
  value: "all",
234
- children: n(l, "assethandler.assets.list.filters.category.all", "All Categories")
235
- }), Y.map((e) => /* @__PURE__ */ w(I, {
237
+ children: r(u, "assethandler.assets.list.filters.category.all", "All Categories")
238
+ }), Y.map((e) => /* @__PURE__ */ w(F, {
236
239
  value: e,
237
240
  className: "capitalize",
238
241
  children: e.replace(/_/g, " ")
239
242
  }, e))] })]
240
243
  }),
241
- /* @__PURE__ */ T(P, {
242
- value: S,
243
- onValueChange: k,
244
- children: [/* @__PURE__ */ w(L, {
244
+ /* @__PURE__ */ T(N, {
245
+ value: k,
246
+ onValueChange: A,
247
+ children: [/* @__PURE__ */ w(I, {
245
248
  className: "w-full sm:w-[160px]",
246
- children: /* @__PURE__ */ w(R, { placeholder: n(l, "assethandler.assets.list.filters.status.placeholder", "Status") })
247
- }), /* @__PURE__ */ T(F, { children: [
248
- /* @__PURE__ */ w(I, {
249
+ children: /* @__PURE__ */ w(L, { placeholder: r(u, "assethandler.assets.list.filters.status.placeholder", "Status") })
250
+ }), /* @__PURE__ */ T(P, { children: [
251
+ /* @__PURE__ */ w(F, {
249
252
  value: "all",
250
- children: n(l, "assethandler.assets.list.filters.status.all", "All Statuses")
253
+ children: r(u, "assethandler.assets.list.filters.status.all", "All Statuses")
251
254
  }),
252
- /* @__PURE__ */ w(I, {
255
+ /* @__PURE__ */ w(F, {
253
256
  value: "active",
254
- children: n(l, "assethandler.assets.list.filters.status.active", "Active")
257
+ children: r(u, "assethandler.assets.list.filters.status.active", "Active")
255
258
  }),
256
- /* @__PURE__ */ w(I, {
259
+ /* @__PURE__ */ w(F, {
257
260
  value: "inactive",
258
- children: n(l, "assethandler.assets.list.filters.status.inactive", "Inactive")
261
+ children: r(u, "assethandler.assets.list.filters.status.inactive", "Inactive")
259
262
  }),
260
- /* @__PURE__ */ w(I, {
263
+ /* @__PURE__ */ w(F, {
261
264
  value: "maintenance",
262
- children: n(l, "assethandler.assets.list.filters.status.maintenance", "Maintenance")
265
+ children: r(u, "assethandler.assets.list.filters.status.maintenance", "Maintenance")
263
266
  }),
264
- /* @__PURE__ */ w(I, {
267
+ /* @__PURE__ */ w(F, {
265
268
  value: "retired",
266
- children: n(l, "assethandler.assets.list.filters.status.retired", "Retired")
269
+ children: r(u, "assethandler.assets.list.filters.status.retired", "Retired")
267
270
  }),
268
- /* @__PURE__ */ w(I, {
271
+ /* @__PURE__ */ w(F, {
269
272
  value: "disposed",
270
- children: n(l, "assethandler.assets.list.filters.status.disposed", "Disposed")
273
+ children: r(u, "assethandler.assets.list.filters.status.disposed", "Disposed")
271
274
  })
272
275
  ] })]
273
276
  }),
@@ -280,7 +283,7 @@ function G() {
280
283
  className: "h-8 gap-1.5 px-2",
281
284
  "aria-pressed": q === "table",
282
285
  onClick: () => J("table"),
283
- children: [/* @__PURE__ */ w(ue, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", {
286
+ children: [/* @__PURE__ */ w(de, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", {
284
287
  className: "hidden sm:inline",
285
288
  children: "Table"
286
289
  })]
@@ -291,7 +294,7 @@ function G() {
291
294
  className: "h-8 gap-1.5 px-2",
292
295
  "aria-pressed": q === "grid",
293
296
  onClick: () => J("grid"),
294
- children: [/* @__PURE__ */ w(ce, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", {
297
+ children: [/* @__PURE__ */ w(le, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", {
295
298
  className: "hidden sm:inline",
296
299
  children: "Grid"
297
300
  })]
@@ -302,7 +305,7 @@ function G() {
302
305
  className: "h-8 gap-1.5 px-2",
303
306
  "aria-pressed": q === "list",
304
307
  onClick: () => J("list"),
305
- children: [/* @__PURE__ */ w(le, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", {
308
+ children: [/* @__PURE__ */ w(ue, { className: "h-4 w-4" }), /* @__PURE__ */ w("span", {
306
309
  className: "hidden sm:inline",
307
310
  children: "List"
308
311
  })]
@@ -312,7 +315,7 @@ function G() {
312
315
  ]
313
316
  })
314
317
  }) }),
315
- !m && p.length === 0 ? /* @__PURE__ */ w("div", {
318
+ !h && m.length === 0 ? /* @__PURE__ */ w("div", {
316
319
  className: "space-y-2",
317
320
  children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ w("div", { className: "h-10 rounded-md bg-bg-sunken motion-safe:animate-vc-shimmer" }, t))
318
321
  }) : null,
@@ -325,16 +328,16 @@ function G() {
325
328
  children: [/* @__PURE__ */ w("thead", { children: /* @__PURE__ */ T("tr", {
326
329
  className: "border-b bg-bg-sunken/50 text-text-secondary",
327
330
  children: [
328
- $(n(l, "assethandler.assets.list.table.assetTag", "Asset Tag"), "assetTag"),
329
- $(n(l, "assethandler.assets.list.table.name", "Name"), "name"),
330
- $(n(l, "assethandler.assets.list.table.category", "Category"), "category"),
331
- $(n(l, "assethandler.assets.list.table.status", "Status"), "status"),
332
- $(n(l, "assethandler.assets.list.table.condition", "Condition"), "condition"),
331
+ $(r(u, "assethandler.assets.list.table.assetTag", "Asset Tag"), "assetTag"),
332
+ $(r(u, "assethandler.assets.list.table.name", "Name"), "name"),
333
+ $(r(u, "assethandler.assets.list.table.category", "Category"), "category"),
334
+ $(r(u, "assethandler.assets.list.table.status", "Status"), "status"),
335
+ $(r(u, "assethandler.assets.list.table.condition", "Condition"), "condition"),
333
336
  /* @__PURE__ */ w("th", {
334
337
  className: "p-3 text-left font-medium",
335
- children: n(l, "assethandler.assets.list.table.location", "Location")
338
+ children: r(u, "assethandler.assets.list.table.location", "Location")
336
339
  }),
337
- $(n(l, "assethandler.assets.list.table.assignedTo", "Assigned To"), "assignedTo"),
340
+ $(r(u, "assethandler.assets.list.table.assignedTo", "Assigned To"), "assignedTo"),
338
341
  /* @__PURE__ */ w("th", { className: "w-10 p-3" })
339
342
  ]
340
343
  }) }), /* @__PURE__ */ w("tbody", { children: Q.pageItems.map((e) => /* @__PURE__ */ T("tr", {
@@ -345,7 +348,7 @@ function G() {
345
348
  className: "p-3",
346
349
  children: /* @__PURE__ */ T("span", {
347
350
  className: "flex items-center gap-3",
348
- children: [/* @__PURE__ */ w(U, { category: e.category }), /* @__PURE__ */ w("span", {
351
+ children: [/* @__PURE__ */ w(H, { category: e.category }), /* @__PURE__ */ w("span", {
349
352
  className: "font-mono text-xs",
350
353
  children: e.assetTag
351
354
  })]
@@ -367,12 +370,12 @@ function G() {
367
370
  }),
368
371
  /* @__PURE__ */ w("td", {
369
372
  className: "p-3",
370
- children: /* @__PURE__ */ w(W, { status: e.status })
373
+ children: /* @__PURE__ */ w(U, { status: e.status })
371
374
  }),
372
375
  /* @__PURE__ */ w("td", {
373
376
  className: "p-3",
374
377
  children: /* @__PURE__ */ w("span", {
375
- className: `inline-flex rounded-md px-2 py-0.5 text-xs font-medium capitalize ${B[e.condition] || ""}`,
378
+ className: `inline-flex rounded-md px-2 py-0.5 text-xs font-medium capitalize ${z[e.condition] || ""}`,
376
379
  children: e.condition
377
380
  })
378
381
  }),
@@ -387,9 +390,9 @@ function G() {
387
390
  /* @__PURE__ */ w("td", {
388
391
  className: "p-3",
389
392
  onClick: (e) => e.stopPropagation(),
390
- children: /* @__PURE__ */ w(ye, {
393
+ children: /* @__PURE__ */ w(xe, {
391
394
  onView: () => f(`/assets/${e.id}`),
392
- onCopy: () => we(e.assetTag)
395
+ onCopy: () => Ee(e.assetTag)
393
396
  })
394
397
  })
395
398
  ]
@@ -402,18 +405,18 @@ function G() {
402
405
  children: Q.pageItems.map((e) => /* @__PURE__ */ T(D, {
403
406
  className: "cursor-pointer",
404
407
  onClick: () => f(`/assets/${e.id}`),
405
- children: [/* @__PURE__ */ T(de, {
408
+ children: [/* @__PURE__ */ T(fe, {
406
409
  className: "pb-2",
407
410
  children: [/* @__PURE__ */ T("div", {
408
411
  className: "flex items-center justify-between gap-2",
409
412
  children: [/* @__PURE__ */ T("span", {
410
413
  className: "flex min-w-0 items-center gap-2.5",
411
- children: [/* @__PURE__ */ w(U, { category: e.category }), /* @__PURE__ */ w("span", {
414
+ children: [/* @__PURE__ */ w(H, { category: e.category }), /* @__PURE__ */ w("span", {
412
415
  className: "font-mono text-xs text-text-secondary",
413
416
  children: e.assetTag
414
417
  })]
415
- }), /* @__PURE__ */ w(W, { status: e.status })]
416
- }), /* @__PURE__ */ w(fe, {
418
+ }), /* @__PURE__ */ w(U, { status: e.status })]
419
+ }), /* @__PURE__ */ w(pe, {
417
420
  className: "mt-2 text-base",
418
421
  children: e.name
419
422
  })]
@@ -424,7 +427,7 @@ function G() {
424
427
  className: "flex justify-between",
425
428
  children: [/* @__PURE__ */ w("span", {
426
429
  className: "text-text-secondary",
427
- children: n(l, "assethandler.assets.list.grid.category", "Category")
430
+ children: r(u, "assethandler.assets.list.grid.category", "Category")
428
431
  }), /* @__PURE__ */ w("span", {
429
432
  className: "capitalize",
430
433
  children: e.category.replace(/_/g, " ")
@@ -434,9 +437,9 @@ function G() {
434
437
  className: "flex justify-between",
435
438
  children: [/* @__PURE__ */ w("span", {
436
439
  className: "text-text-secondary",
437
- children: n(l, "assethandler.assets.list.grid.condition", "Condition")
440
+ children: r(u, "assethandler.assets.list.grid.condition", "Condition")
438
441
  }), /* @__PURE__ */ w("span", {
439
- className: `rounded-md px-2 py-0.5 text-xs font-medium capitalize ${B[e.condition] || ""}`,
442
+ className: `rounded-md px-2 py-0.5 text-xs font-medium capitalize ${z[e.condition] || ""}`,
440
443
  children: e.condition
441
444
  })]
442
445
  }),
@@ -444,7 +447,7 @@ function G() {
444
447
  className: "flex justify-between",
445
448
  children: [/* @__PURE__ */ w("span", {
446
449
  className: "text-text-secondary",
447
- children: n(l, "assethandler.assets.list.grid.assignedTo", "Assigned To")
450
+ children: r(u, "assethandler.assets.list.grid.assignedTo", "Assigned To")
448
451
  }), /* @__PURE__ */ w("span", {
449
452
  className: "text-xs",
450
453
  children: e.assignedTo || "—"
@@ -463,14 +466,14 @@ function G() {
463
466
  className: "px-4 py-3",
464
467
  children: /* @__PURE__ */ T("div", {
465
468
  className: "flex items-center gap-3",
466
- children: [/* @__PURE__ */ w(U, { category: e.category }), /* @__PURE__ */ T("div", {
469
+ children: [/* @__PURE__ */ w(H, { category: e.category }), /* @__PURE__ */ T("div", {
467
470
  className: "min-w-0 flex-1",
468
471
  children: [/* @__PURE__ */ T("div", {
469
472
  className: "flex items-center justify-between gap-2",
470
473
  children: [/* @__PURE__ */ w("p", {
471
474
  className: "truncate text-sm font-medium",
472
475
  children: e.name
473
- }), /* @__PURE__ */ w(W, { status: e.status })]
476
+ }), /* @__PURE__ */ w(U, { status: e.status })]
474
477
  }), /* @__PURE__ */ T("p", {
475
478
  className: "truncate text-xs text-text-secondary",
476
479
  children: [
@@ -496,20 +499,20 @@ function G() {
496
499
  onNext: Q.nextPage,
497
500
  itemLabel: "assets"
498
501
  }),
499
- m && X.length === 0 && /* @__PURE__ */ w(pe, {
500
- illustration: g || b !== "all" || S !== "all" ? "empty-search" : "empty-data",
501
- title: n(l, "assethandler.assets.list.empty.title", "No assets found"),
502
- description: n(l, "assethandler.assets.list.empty.description", "Try adjusting your filters or add a new asset to get started."),
502
+ h && X.length === 0 && /* @__PURE__ */ w(he, {
503
+ illustration: y || x !== "all" || k !== "all" ? "empty-search" : "empty-data",
504
+ title: r(u, "assethandler.assets.list.empty.title", "No assets found"),
505
+ description: r(u, "assethandler.assets.list.empty.description", "Try adjusting your filters or add a new asset to get started."),
503
506
  action: /* @__PURE__ */ T(E, {
504
507
  size: "sm",
505
508
  onClick: () => f("/assets/asset-create"),
506
- children: [/* @__PURE__ */ w(_, { className: "mr-2 h-4 w-4" }), n(l, "assethandler.assets.list.actions.addAsset", "Add Asset")]
509
+ children: [/* @__PURE__ */ w(_, { className: "mr-2 h-4 w-4" }), r(u, "assethandler.assets.list.actions.addAsset", "Add Asset")]
507
510
  })
508
511
  })
509
512
  ]
510
513
  });
511
514
  }
512
- function ye({ onView: e, onCopy: t }) {
515
+ function xe({ onView: e, onCopy: t }) {
513
516
  return /* @__PURE__ */ T(k, { children: [/* @__PURE__ */ w(M, {
514
517
  asChild: !0,
515
518
  children: /* @__PURE__ */ w(E, {
@@ -531,6 +534,6 @@ function ye({ onView: e, onCopy: t }) {
531
534
  })] });
532
535
  }
533
536
  //#endregion
534
- export { G as AssetsAssetListPage };
537
+ export { W as AssetsAssetListPage };
535
538
 
536
539
  //# sourceMappingURL=AssetsAssetListPage.js.map