@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.
- package/dist/assethandler/components/charts/BarsChart.js +25 -25
- package/dist/assethandler/components/charts/ChartParts.js +27 -27
- package/dist/assethandler/components/charts/DonutChart.js +17 -17
- package/dist/assethandler/components/charts/ProgressMeter.js +5 -5
- package/dist/assethandler/components/charts/RadialGauge.js +13 -13
- package/dist/assethandler/components/charts/Sparkline.js +27 -27
- package/dist/assethandler/components/charts/TrendChart.js +47 -47
- package/dist/assethandler/components/index.js +1 -1
- package/dist/assethandler/pages/AiPredictionsPage.js +20 -20
- package/dist/assethandler/pages/AnalyticsPage.d.ts.map +1 -1
- package/dist/assethandler/pages/AnalyticsPage.js +133 -133
- package/dist/assethandler/pages/AnalyticsPage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetCategoriesPage.d.ts.map +1 -1
- package/dist/assethandler/pages/AssetsAssetCategoriesPage.js +55 -55
- package/dist/assethandler/pages/AssetsAssetCategoriesPage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetCreatePage.d.ts.map +1 -1
- package/dist/assethandler/pages/AssetsAssetCreatePage.js +172 -163
- package/dist/assethandler/pages/AssetsAssetCreatePage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetDetailPage.d.ts.map +1 -1
- package/dist/assethandler/pages/AssetsAssetDetailPage.js +223 -224
- package/dist/assethandler/pages/AssetsAssetDetailPage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetListPage.js +249 -249
- package/dist/assethandler/pages/AssetsAssetListPage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetTrackingPage.js +8 -8
- package/dist/assethandler/pages/CmdbBrowserPage.js +34 -34
- package/dist/assethandler/pages/DashboardPage.d.ts.map +1 -1
- package/dist/assethandler/pages/DashboardPage.js +256 -255
- package/dist/assethandler/pages/DashboardPage.js.map +1 -1
- package/dist/assethandler/pages/DiscoveryJobsPage.js +27 -27
- package/dist/assethandler/pages/EsgDashboardPage.js +53 -53
- package/dist/assethandler/pages/FinanceBudgetDetailPage.d.ts.map +1 -1
- package/dist/assethandler/pages/FinanceBudgetDetailPage.js +156 -155
- package/dist/assethandler/pages/FinanceBudgetDetailPage.js.map +1 -1
- package/dist/assethandler/pages/FinanceFinanceHubPage.d.ts.map +1 -1
- package/dist/assethandler/pages/FinanceFinanceHubPage.js +475 -475
- package/dist/assethandler/pages/FinanceFinanceHubPage.js.map +1 -1
- package/dist/assethandler/pages/FinanceInvoiceDetailPage.d.ts.map +1 -1
- package/dist/assethandler/pages/FinanceInvoiceDetailPage.js +141 -140
- package/dist/assethandler/pages/FinanceInvoiceDetailPage.js.map +1 -1
- package/dist/assethandler/pages/ItilChangeManagementPage.js +21 -21
- package/dist/assethandler/pages/ItilIncidentManagementPage.js +34 -34
- package/dist/assethandler/pages/ItilProblemManagementPage.js +17 -17
- package/dist/assethandler/pages/KnowledgeBasePage.js +39 -39
- package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.d.ts.map +1 -1
- package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.js +114 -114
- package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.js.map +1 -1
- package/dist/assethandler/pages/OperationsMaintenanceDetailPage.d.ts.map +1 -1
- package/dist/assethandler/pages/OperationsMaintenanceDetailPage.js +158 -157
- package/dist/assethandler/pages/OperationsMaintenanceDetailPage.js.map +1 -1
- package/dist/assethandler/pages/OperationsOperationsHubPage.d.ts.map +1 -1
- package/dist/assethandler/pages/OperationsOperationsHubPage.js +253 -252
- package/dist/assethandler/pages/OperationsOperationsHubPage.js.map +1 -1
- package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.d.ts.map +1 -1
- package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.js +96 -95
- package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.js.map +1 -1
- package/dist/assethandler/pages/ProvenancePage.js +21 -21
- package/dist/assethandler/pages/ReportsDashboardPage.d.ts.map +1 -1
- package/dist/assethandler/pages/ReportsDashboardPage.js +301 -301
- package/dist/assethandler/pages/ReportsDashboardPage.js.map +1 -1
- package/dist/assethandler/pages/SecuritySecurityHubPage.js +126 -126
- package/dist/assethandler/pages/SecuritySecurityHubPage.js.map +1 -1
- package/dist/assethandler/pages/TransactionsTransactionDetailPage.d.ts.map +1 -1
- package/dist/assethandler/pages/TransactionsTransactionDetailPage.js +112 -113
- package/dist/assethandler/pages/TransactionsTransactionDetailPage.js.map +1 -1
- package/dist/assethandler/pages/TransactionsTransactionListPage.d.ts.map +1 -1
- package/dist/assethandler/pages/TransactionsTransactionListPage.js +136 -137
- package/dist/assethandler/pages/TransactionsTransactionListPage.js.map +1 -1
- package/dist/assethandler/providers/AssetHandlerProvider.d.ts +14 -0
- package/dist/assethandler/providers/AssetHandlerProvider.d.ts.map +1 -1
- package/dist/assethandler/providers/AssetHandlerProvider.js +44 -34
- package/dist/assethandler/providers/AssetHandlerProvider.js.map +1 -1
- package/dist/assethandler/types/index.d.ts +10 -0
- package/dist/assethandler/types/index.d.ts.map +1 -1
- package/dist/assethandler/utils/money.d.ts +34 -0
- package/dist/assethandler/utils/money.d.ts.map +1 -0
- package/dist/assethandler/utils/money.js +27 -0
- package/dist/assethandler/utils/money.js.map +1 -0
- 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,
|
|
4
|
-
import { useAssetHandlerNavigate as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { TrendChart as
|
|
8
|
-
import { ChartCard as
|
|
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
|
|
11
|
-
import { ArrowLeft as
|
|
12
|
-
import { gql as
|
|
13
|
-
import { useMutation as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { Badge as
|
|
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
|
|
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
|
-
`,
|
|
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
|
-
],
|
|
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
|
|
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
|
|
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__ */
|
|
95
|
+
children: /* @__PURE__ */ _("div", {
|
|
96
96
|
className: "space-y-4 p-5 sm:p-6",
|
|
97
|
-
children: [/* @__PURE__ */
|
|
97
|
+
children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h2", {
|
|
98
98
|
className: "text-lg font-semibold",
|
|
99
99
|
children: e
|
|
100
|
-
}), t ? /* @__PURE__ */
|
|
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
|
|
107
|
-
let
|
|
108
|
-
let e = new Set(I?.map((e) => e.id) ??
|
|
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) => !
|
|
110
|
+
return [...e].filter((e) => !P.has(e)).sort();
|
|
111
111
|
}, [
|
|
112
112
|
L,
|
|
113
113
|
I,
|
|
114
|
-
|
|
115
|
-
]), [
|
|
114
|
+
P
|
|
115
|
+
]), [ue, { loading: Y }] = ie(oe, {
|
|
116
116
|
refetchQueries: ["AssetHandlerBootstrap"],
|
|
117
117
|
onCompleted: (e) => {
|
|
118
|
-
|
|
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
|
-
})) :
|
|
121
|
+
})) : b(`/assets/${e.createAsset.id}`);
|
|
122
122
|
},
|
|
123
123
|
onError: (e) => {
|
|
124
|
-
q(null),
|
|
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
|
-
},
|
|
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(() =>
|
|
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
|
-
|
|
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"),
|
|
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__ */
|
|
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__ */
|
|
198
|
+
/* @__PURE__ */ _("div", {
|
|
199
199
|
className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
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: () =>
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
210
|
-
}), /* @__PURE__ */
|
|
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
|
|
213
|
+
h("assethandler.assets.create.subtitle", "Register a new {{assetLower}} in the inventory"),
|
|
214
214
|
" ",
|
|
215
|
-
|
|
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__ */
|
|
224
|
-
/* @__PURE__ */
|
|
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
|
|
227
|
+
description: h("assethandler.assets.create.general.description", "Basic {{assetLower}} details and identification"),
|
|
227
228
|
glow: !0,
|
|
228
229
|
children: [
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ _("div", {
|
|
230
231
|
className: "grid gap-4 md:grid-cols-2",
|
|
231
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ _("div", {
|
|
232
233
|
className: "space-y-2",
|
|
233
234
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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__ */
|
|
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__ */
|
|
254
|
+
}), /* @__PURE__ */ _("div", {
|
|
250
255
|
className: "space-y-2",
|
|
251
256
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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__ */
|
|
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__ */
|
|
278
|
+
/* @__PURE__ */ _("div", {
|
|
270
279
|
className: "space-y-2",
|
|
271
|
-
children: [/* @__PURE__ */
|
|
272
|
-
placeholder: "Brief description of the
|
|
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__ */
|
|
287
|
+
/* @__PURE__ */ _("div", {
|
|
279
288
|
className: "grid gap-4 md:grid-cols-3",
|
|
280
289
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ _("div", {
|
|
282
291
|
className: "space-y-2",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ _(S, { children: ["Category ", /* @__PURE__ */ g("span", {
|
|
284
293
|
className: "text-status-error-text",
|
|
285
294
|
children: "*"
|
|
286
|
-
})] }), /* @__PURE__ */
|
|
295
|
+
})] }), /* @__PURE__ */ _(w, {
|
|
287
296
|
value: R.category,
|
|
288
297
|
onValueChange: (e) => X("category", e),
|
|
289
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
305
|
+
/* @__PURE__ */ _("div", {
|
|
297
306
|
className: "space-y-2",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
307
|
+
children: [/* @__PURE__ */ g(S, { children: "Status" }), /* @__PURE__ */ _(w, {
|
|
299
308
|
value: R.status,
|
|
300
309
|
onValueChange: (e) => X("status", e),
|
|
301
|
-
children: [/* @__PURE__ */
|
|
302
|
-
/* @__PURE__ */
|
|
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__ */
|
|
315
|
+
/* @__PURE__ */ g(E, {
|
|
307
316
|
value: "INACTIVE",
|
|
308
317
|
children: "Inactive"
|
|
309
318
|
}),
|
|
310
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ g(E, {
|
|
311
320
|
value: "MAINTENANCE",
|
|
312
321
|
children: "Maintenance"
|
|
313
322
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ g(E, {
|
|
315
324
|
value: "RETIRED",
|
|
316
325
|
children: "Retired"
|
|
317
326
|
})
|
|
318
327
|
] })]
|
|
319
328
|
})]
|
|
320
329
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ _("div", {
|
|
322
331
|
className: "space-y-2",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
332
|
+
children: [/* @__PURE__ */ g(S, { children: "Condition" }), /* @__PURE__ */ _(w, {
|
|
324
333
|
value: R.condition,
|
|
325
334
|
onValueChange: (e) => X("condition", e),
|
|
326
|
-
children: [/* @__PURE__ */
|
|
327
|
-
/* @__PURE__ */
|
|
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__ */
|
|
340
|
+
/* @__PURE__ */ g(E, {
|
|
332
341
|
value: "GOOD",
|
|
333
342
|
children: "Good"
|
|
334
343
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ g(E, {
|
|
336
345
|
value: "FAIR",
|
|
337
346
|
children: "Fair"
|
|
338
347
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ g(E, {
|
|
340
349
|
value: "POOR",
|
|
341
350
|
children: "Poor"
|
|
342
351
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
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__ */
|
|
361
|
+
/* @__PURE__ */ _("div", {
|
|
353
362
|
className: "space-y-2",
|
|
354
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
375
|
+
/* @__PURE__ */ _("div", {
|
|
367
376
|
className: "grid gap-4 md:grid-cols-3",
|
|
368
377
|
children: [
|
|
369
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ _("div", {
|
|
370
379
|
className: "space-y-2",
|
|
371
380
|
children: [
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ g(S, { children: "Purchase Value" }),
|
|
382
|
+
/* @__PURE__ */ _("div", {
|
|
374
383
|
className: "relative",
|
|
375
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
404
|
+
/* @__PURE__ */ _("div", {
|
|
396
405
|
className: "space-y-2",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
412
|
+
/* @__PURE__ */ _("div", {
|
|
404
413
|
className: "space-y-2",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
422
|
+
/* @__PURE__ */ _("div", {
|
|
414
423
|
className: "grid gap-4 md:grid-cols-3",
|
|
415
424
|
children: [
|
|
416
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ _("div", {
|
|
417
426
|
className: "space-y-2",
|
|
418
427
|
children: [
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ g(S, { children: "Useful Life" }),
|
|
429
|
+
/* @__PURE__ */ _("div", {
|
|
421
430
|
className: "relative",
|
|
422
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
451
|
+
/* @__PURE__ */ _("div", {
|
|
443
452
|
className: "space-y-2",
|
|
444
453
|
children: [
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ g(S, { children: "Salvage Value" }),
|
|
455
|
+
/* @__PURE__ */ _("div", {
|
|
447
456
|
className: "relative",
|
|
448
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
477
|
+
/* @__PURE__ */ _("div", {
|
|
469
478
|
className: "space-y-2",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
474
|
-
/* @__PURE__ */
|
|
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__ */
|
|
487
|
+
/* @__PURE__ */ g(E, {
|
|
479
488
|
value: "REDUCING_BALANCE",
|
|
480
489
|
children: "Reducing balance (200%)"
|
|
481
490
|
}),
|
|
482
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ g(E, {
|
|
483
492
|
value: "DECLINING_BALANCE",
|
|
484
493
|
children: "Declining balance (150%)"
|
|
485
494
|
}),
|
|
486
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ g(E, {
|
|
487
496
|
value: "SUM_OF_YEARS_DIGITS",
|
|
488
497
|
children: "Sum of years' digits"
|
|
489
498
|
}),
|
|
490
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ g(E, {
|
|
491
500
|
value: "UNITS_OF_PRODUCTION",
|
|
492
501
|
children: "Units of production"
|
|
493
502
|
}),
|
|
494
|
-
/* @__PURE__ */
|
|
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__ */
|
|
512
|
+
R.depreciationMethod === "UNITS_OF_PRODUCTION" ? /* @__PURE__ */ _("div", {
|
|
504
513
|
className: "grid gap-4 md:grid-cols-2",
|
|
505
|
-
children: [/* @__PURE__ */
|
|
514
|
+
children: [/* @__PURE__ */ _("div", {
|
|
506
515
|
className: "space-y-2",
|
|
507
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
524
|
+
}), /* @__PURE__ */ _("div", {
|
|
516
525
|
className: "space-y-2",
|
|
517
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
536
|
+
/* @__PURE__ */ _("div", {
|
|
528
537
|
className: "space-y-2",
|
|
529
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
544
|
+
/* @__PURE__ */ g(ee, {
|
|
536
545
|
title: "Depreciation preview",
|
|
537
|
-
subtitle: "Projected book value over the
|
|
538
|
-
icon:
|
|
539
|
-
children: Q.length > 0 ? /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
565
|
+
/* @__PURE__ */ g(M, {
|
|
557
566
|
title: "Assignment & Location",
|
|
558
567
|
description: "Who holds it and where it lives",
|
|
559
|
-
children: /* @__PURE__ */
|
|
568
|
+
children: /* @__PURE__ */ _("div", {
|
|
560
569
|
className: "grid gap-4 md:grid-cols-2",
|
|
561
570
|
children: [
|
|
562
|
-
/* @__PURE__ */
|
|
571
|
+
/* @__PURE__ */ _("div", {
|
|
563
572
|
className: "space-y-2",
|
|
564
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
579
|
+
/* @__PURE__ */ _("div", {
|
|
571
580
|
className: "space-y-2",
|
|
572
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
587
|
+
/* @__PURE__ */ _("div", {
|
|
579
588
|
className: "space-y-2",
|
|
580
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
595
|
+
/* @__PURE__ */ _("div", {
|
|
587
596
|
className: "space-y-2",
|
|
588
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
599
|
+
children: [B.map((e) => /* @__PURE__ */ _(v, {
|
|
591
600
|
variant: "secondary",
|
|
592
601
|
className: "gap-1",
|
|
593
|
-
children: [e, /* @__PURE__ */
|
|
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__ */
|
|
607
|
+
children: /* @__PURE__ */ g(m, { className: "h-3 w-3" })
|
|
599
608
|
})]
|
|
600
|
-
}, e)), /* @__PURE__ */
|
|
609
|
+
}, e)), /* @__PURE__ */ g("input", {
|
|
601
610
|
value: H,
|
|
602
611
|
onChange: (e) => U(e.target.value),
|
|
603
|
-
onKeyDown:
|
|
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__ */
|
|
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__ */
|
|
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
|
|
627
|
+
/* @__PURE__ */ _(y, {
|
|
619
628
|
variant: "outline",
|
|
620
629
|
className: "w-full sm:w-auto",
|
|
621
|
-
onClick: () =>
|
|
630
|
+
onClick: () => b("/assets/asset-list"),
|
|
622
631
|
disabled: Y,
|
|
623
|
-
children: [/* @__PURE__ */
|
|
632
|
+
children: [/* @__PURE__ */ g(m, { className: "mr-2 h-4 w-4" }), "Cancel"]
|
|
624
633
|
}),
|
|
625
|
-
/* @__PURE__ */ y
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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 {
|
|
654
|
+
export { N as AssetsAssetCreatePage };
|
|
646
655
|
|
|
647
656
|
//# sourceMappingURL=AssetsAssetCreatePage.js.map
|