@cobaltcore-dev/aurora 0.10.0 → 0.11.0
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/README.md +2 -1
- package/dist/client/AuroraApp.d.ts +2 -0
- package/dist/client/AuthProvider-DZqOvceF.mjs +64 -0
- package/dist/client/AuthProvider-DZqOvceF.mjs.map +1 -0
- package/dist/client/ContentHeader-DsuZD8fa.mjs +110 -0
- package/dist/client/ContentHeader-DsuZD8fa.mjs.map +1 -0
- package/dist/client/{DeleteFlavorModal-C3m7bQJu.mjs → DeleteFlavorModal-RnbspW_2.mjs} +135 -135
- package/dist/client/{DeleteFlavorModal-C3m7bQJu.mjs.map → DeleteFlavorModal-RnbspW_2.mjs.map} +1 -1
- package/dist/client/{DeleteVersionsModal-CyYZfB8d.mjs → DeleteVersionsModal-CsBJzXoW.mjs} +57 -57
- package/dist/client/{DeleteVersionsModal-CyYZfB8d.mjs.map → DeleteVersionsModal-CsBJzXoW.mjs.map} +1 -1
- package/dist/client/{EditSecurityGroupModal-DKusxfta.mjs → EditSecurityGroupModal-BPv3d7am.mjs} +15 -15
- package/dist/client/{EditSecurityGroupModal-DKusxfta.mjs.map → EditSecurityGroupModal-BPv3d7am.mjs.map} +1 -1
- package/dist/client/{FiltersInput-GzR4D0q6.mjs → FiltersInput-CViamP59.mjs} +2 -2
- package/dist/client/{FiltersInput-GzR4D0q6.mjs.map → FiltersInput-CViamP59.mjs.map} +1 -1
- package/dist/client/{FloatingIpActionModals-CRvROJ3H.mjs → FloatingIpActionModals-DTn3HFei.mjs} +45 -45
- package/dist/client/{FloatingIpActionModals-CRvROJ3H.mjs.map → FloatingIpActionModals-DTn3HFei.mjs.map} +1 -1
- package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs → ImageToastNotifications-CFKQZTgf.mjs} +261 -261
- package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs.map → ImageToastNotifications-CFKQZTgf.mjs.map} +1 -1
- package/dist/client/{RouteError-DVAiT0mT.mjs → RouteError-BebIhFpQ.mjs} +2 -2
- package/dist/client/{RouteError-DVAiT0mT.mjs.map → RouteError-BebIhFpQ.mjs.map} +1 -1
- package/dist/client/{SortInput-DLcusjGZ.mjs → SortInput-D0Vb864D.mjs} +2 -2
- package/dist/client/{SortInput-DLcusjGZ.mjs.map → SortInput-D0Vb864D.mjs.map} +1 -1
- package/dist/client/{_auth-DXJkv9QO.mjs → _auth-DnImOqR-.mjs} +2 -2
- package/dist/client/_auth-DnImOqR-.mjs.map +1 -0
- package/dist/client/{_flavorId-Dy7EYQum.mjs → _flavorId-C9SZd1jL.mjs} +8 -8
- package/dist/client/{_flavorId-Dy7EYQum.mjs.map → _flavorId-C9SZd1jL.mjs.map} +1 -1
- package/dist/client/{_flavorId-DsD2VTKA.mjs → _flavorId-DINgWoeV.mjs} +38 -38
- package/dist/client/{_flavorId-DsD2VTKA.mjs.map → _flavorId-DINgWoeV.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-j17rCQqG2.mjs → _floatingIpId-BACLbMzi2.mjs} +32 -32
- package/dist/client/{_floatingIpId-j17rCQqG2.mjs.map → _floatingIpId-BACLbMzi2.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-BjVbeNw_.mjs → _floatingIpId-BzVMOv97.mjs} +2 -2
- package/dist/client/{_floatingIpId-BjVbeNw_.mjs.map → _floatingIpId-BzVMOv97.mjs.map} +1 -1
- package/dist/client/_imageId-DCvaU7-S.mjs +534 -0
- package/dist/client/_imageId-DCvaU7-S.mjs.map +1 -0
- package/dist/client/{_pcaId-Bo7yHkNW.mjs → _pcaId-B3PqECyO.mjs} +115 -115
- package/dist/client/{_pcaId-Bo7yHkNW.mjs.map → _pcaId-B3PqECyO.mjs.map} +1 -1
- package/dist/client/{_pcaId-CKkCVC7b.mjs → _pcaId-DAJEt3ZI.mjs} +2 -2
- package/dist/client/{_pcaId-CKkCVC7b.mjs.map → _pcaId-DAJEt3ZI.mjs.map} +1 -1
- package/dist/client/{_projectId-CARHuZTU.mjs → _projectId-B2hG5peP.mjs} +3 -3
- package/dist/client/_projectId-B2hG5peP.mjs.map +1 -0
- package/dist/client/{_projectId-CY8W0IF6.mjs → _projectId-BnWXWTBR.mjs} +3 -3
- package/dist/client/{_projectId-CY8W0IF6.mjs.map → _projectId-BnWXWTBR.mjs.map} +1 -1
- package/dist/client/{_projectId-Dbck_MFa.mjs → _projectId-DRr9rLST.mjs} +66 -66
- package/dist/client/{_projectId-Dbck_MFa.mjs.map → _projectId-DRr9rLST.mjs.map} +1 -1
- package/dist/client/{_projectId-B_2sZKk-.mjs → _projectId-DU8qRiZk.mjs} +2 -2
- package/dist/client/_projectId-DU8qRiZk.mjs.map +1 -0
- package/dist/client/{_securityGroupId-gSEZbBII.mjs → _securityGroupId-Cj9IotMJ.mjs} +2 -2
- package/dist/client/{_securityGroupId-gSEZbBII.mjs.map → _securityGroupId-Cj9IotMJ.mjs.map} +1 -1
- package/dist/client/{_securityGroupId-CkN0CGVg.mjs → _securityGroupId-ClJiFh4R.mjs} +267 -267
- package/dist/client/{_securityGroupId-CkN0CGVg.mjs.map → _securityGroupId-ClJiFh4R.mjs.map} +1 -1
- package/dist/client/_storageType-BrHDa2bD.mjs +3005 -0
- package/dist/client/_storageType-BrHDa2bD.mjs.map +1 -0
- package/dist/client/{_storageType-6k8lUnQo.mjs → _storageType-CSLH93js.mjs} +2 -2
- package/dist/client/{_storageType-6k8lUnQo.mjs.map → _storageType-CSLH93js.mjs.map} +1 -1
- package/dist/client/_storageType-zeSZe--V.mjs.map +1 -1
- package/dist/client/{about-Nsxkyh9U.mjs → about-BnU297yB.mjs} +2 -2
- package/dist/client/about-BnU297yB.mjs.map +1 -0
- package/dist/client/{aurora-DDzsst74.mjs → aurora-6RsAZtnz.mjs} +2 -2
- package/dist/client/aurora-6RsAZtnz.mjs.map +1 -0
- package/dist/client/{build-BdRRmNf5.mjs → build-DF7MTyXG.mjs} +3582 -3114
- package/dist/client/{build-BdRRmNf5.mjs.map → build-DF7MTyXG.mjs.map} +1 -1
- package/dist/client/{constants-PMXUGI4Q.mjs → constants-BskfpGYY.mjs} +16 -16
- package/dist/client/{constants-PMXUGI4Q.mjs.map → constants-BskfpGYY.mjs.map} +1 -1
- package/dist/client/{flavors-p2TKcqP-.mjs → flavors-DAbtRoep.mjs} +151 -151
- package/dist/client/{flavors-p2TKcqP-.mjs.map → flavors-DAbtRoep.mjs.map} +1 -1
- package/dist/client/{flavors-BclEwobO.mjs → flavors-DODudzrA.mjs} +2 -2
- package/dist/client/{flavors-BclEwobO.mjs.map → flavors-DODudzrA.mjs.map} +1 -1
- package/dist/client/flavors-DWMZ6TuJ.mjs.map +1 -1
- package/dist/client/{floatingips-ph0ZxJw8.mjs → floatingips-DJW9ftN_.mjs} +83 -83
- package/dist/client/floatingips-DJW9ftN_.mjs.map +1 -0
- package/dist/client/{hooks-dSArr2Ca.mjs → hooks-CMgoYcDG.mjs} +1 -1
- package/dist/client/{images-CXdghaMW.mjs → images-BbLnuYrL.mjs} +2 -2
- package/dist/client/{images-CXdghaMW.mjs.map → images-BbLnuYrL.mjs.map} +1 -1
- package/dist/client/{images-Dbjo4yKn.mjs → images-C3JyPwer.mjs} +2 -2
- package/dist/client/images-C3JyPwer.mjs.map +1 -0
- package/dist/client/{images-BblnyWJq.mjs → images-Cp6V1nF5.mjs} +455 -455
- package/dist/client/{images-BblnyWJq.mjs.map → images-Cp6V1nF5.mjs.map} +1 -1
- package/dist/client/images-NBf2bV43.mjs.map +1 -1
- package/dist/client/index.js +257 -257
- package/dist/client/index.js.map +1 -1
- package/dist/client/network-DuZm76BZ.mjs.map +1 -1
- package/dist/client/{objects-B9Jh3SMG.mjs → objects-Bw96WXOs.mjs} +2 -2
- package/dist/client/{objects-B9Jh3SMG.mjs.map → objects-Bw96WXOs.mjs.map} +1 -1
- package/dist/client/{objects-Bw25cE1m.mjs → objects-DUmK3WgA.mjs} +1458 -1430
- package/dist/client/objects-DUmK3WgA.mjs.map +1 -0
- package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -1
- package/dist/client/{pca-DUrQ_tIg.mjs → pca-DKeGzbww.mjs} +2 -2
- package/dist/client/{pca-DUrQ_tIg.mjs.map → pca-DKeGzbww.mjs.map} +1 -1
- package/dist/client/{pca-CiLPHmK7.mjs → pca-Dc_tdh4-.mjs} +47 -47
- package/dist/client/{pca-CiLPHmK7.mjs.map → pca-Dc_tdh4-.mjs.map} +1 -1
- package/dist/client/{projects-DNd3UTas.mjs → projects-CRL37ftA.mjs} +16 -16
- package/dist/client/{projects-DNd3UTas.mjs.map → projects-CRL37ftA.mjs.map} +1 -1
- package/dist/client/{projects-B5topuei.mjs → projects-DUWOgB3m.mjs} +2 -2
- package/dist/client/{projects-B5topuei.mjs.map → projects-DUWOgB3m.mjs.map} +1 -1
- package/dist/client/{projects-CHYn7L5e.mjs → projects-DpXQYfKc.mjs} +2 -2
- package/dist/client/projects-DpXQYfKc.mjs.map +1 -0
- package/dist/client/{securitygroups-CcA2TpAt.mjs → securitygroups-CWWFSjjj.mjs} +94 -94
- package/dist/client/securitygroups-CWWFSjjj.mjs.map +1 -0
- package/dist/client/{useListWithFiltering-CVzhMyEA.mjs → useListWithFiltering-C9k7xWqz.mjs} +7 -7
- package/dist/client/{useListWithFiltering-CVzhMyEA.mjs.map → useListWithFiltering-C9k7xWqz.mjs.map} +1 -1
- package/dist/server/index.js +697 -406
- package/package.json +3 -3
- package/dist/client/AuthProvider-Co4d0WzB.mjs +0 -100
- package/dist/client/AuthProvider-Co4d0WzB.mjs.map +0 -1
- package/dist/client/ContentHeader-D4jlOG-9.mjs +0 -96
- package/dist/client/ContentHeader-D4jlOG-9.mjs.map +0 -1
- package/dist/client/_auth-DXJkv9QO.mjs.map +0 -1
- package/dist/client/_imageId-BjfhqAje.mjs +0 -534
- package/dist/client/_imageId-BjfhqAje.mjs.map +0 -1
- package/dist/client/_projectId-B_2sZKk-.mjs.map +0 -1
- package/dist/client/_projectId-CARHuZTU.mjs.map +0 -1
- package/dist/client/_storageType-CLTxXjQZ.mjs +0 -3048
- package/dist/client/_storageType-CLTxXjQZ.mjs.map +0 -1
- package/dist/client/about-Nsxkyh9U.mjs.map +0 -1
- package/dist/client/aurora-DDzsst74.mjs.map +0 -1
- package/dist/client/floatingips-ph0ZxJw8.mjs.map +0 -1
- package/dist/client/images-Dbjo4yKn.mjs.map +0 -1
- package/dist/client/objects-Bw25cE1m.mjs.map +0 -1
- package/dist/client/projects-CHYn7L5e.mjs.map +0 -1
- package/dist/client/securitygroups-CcA2TpAt.mjs.map +0 -1
package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs → ImageToastNotifications-CFKQZTgf.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as e, L as t, N as n, S as r, U as i, X as a, Y as o, _ as s, dt as c, f as l, l as u, m as d, n as f, nt as p, ot as m, p as h, ut as g, v as _, x as v } from "./build-DF7MTyXG.mjs";
|
|
2
2
|
import { r as y } from "./trpcClient-BzPUgiM2.mjs";
|
|
3
3
|
import { n as b } from "./formatBytes-CZv_XyCY.mjs";
|
|
4
4
|
import { t as x } from "./useProjectId-DBc5lpoU.mjs";
|
|
5
|
-
import "./hooks-
|
|
5
|
+
import "./hooks-CMgoYcDG.mjs";
|
|
6
6
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
7
7
|
import { useEffect as T, useMemo as E, useState as D } from "react";
|
|
8
8
|
import { Trans as O, useLingui as k } from "@lingui/react";
|
|
@@ -51,38 +51,38 @@ var j = {
|
|
|
51
51
|
OVF: "ovf",
|
|
52
52
|
OVA: "ova",
|
|
53
53
|
DOCKER: "docker"
|
|
54
|
-
}, I = ({ memberId: t, imageId:
|
|
55
|
-
let { i18n:
|
|
56
|
-
return /*#__PURE__*/ w(
|
|
54
|
+
}, I = ({ memberId: t, imageId: r, errors: i, isLoading: a, onMemberIdChange: o, onSave: l, onCancel: u }) => {
|
|
55
|
+
let { i18n: f, _: p } = k();
|
|
56
|
+
return /*#__PURE__*/ w(n, { children: [
|
|
57
57
|
/*#__PURE__*/ C(e, {
|
|
58
58
|
className: "break-all",
|
|
59
|
-
children:
|
|
59
|
+
children: r
|
|
60
60
|
}),
|
|
61
61
|
/*#__PURE__*/ C(e, {
|
|
62
62
|
className: "pl-0",
|
|
63
|
-
children: /*#__PURE__*/ C(
|
|
63
|
+
children: /*#__PURE__*/ C(d, {
|
|
64
64
|
value: t,
|
|
65
65
|
onChange: (e) => o(e.target.value),
|
|
66
|
-
placeholder:
|
|
67
|
-
errortext:
|
|
66
|
+
placeholder: f._({ id: "TpGxnq" }),
|
|
67
|
+
errortext: i.memberId,
|
|
68
68
|
required: !0
|
|
69
69
|
})
|
|
70
70
|
}),
|
|
71
71
|
/*#__PURE__*/ C(e, {}),
|
|
72
|
-
/*#__PURE__*/ C(e, { children: /*#__PURE__*/ w(
|
|
72
|
+
/*#__PURE__*/ C(e, { children: /*#__PURE__*/ w(c, { children: [/*#__PURE__*/ C(s, {
|
|
73
73
|
icon: "check",
|
|
74
|
-
onClick:
|
|
74
|
+
onClick: l,
|
|
75
75
|
variant: "primary",
|
|
76
|
-
title:
|
|
76
|
+
title: f._({ id: "3Qn0me" }),
|
|
77
77
|
disabled: a
|
|
78
78
|
}), /*#__PURE__*/ C(s, {
|
|
79
79
|
icon: "cancel",
|
|
80
|
-
onClick:
|
|
81
|
-
title:
|
|
80
|
+
onClick: u,
|
|
81
|
+
title: f._({ id: "dEgA5A" }),
|
|
82
82
|
disabled: a
|
|
83
83
|
})] }) })
|
|
84
84
|
] });
|
|
85
|
-
}, L = ({ member:
|
|
85
|
+
}, L = ({ member: t, isDeleting: r, onDelete: o, canDelete: c }) => {
|
|
86
86
|
let { i18n: l, _: u } = k(), [d, f] = D(!1);
|
|
87
87
|
T(() => {
|
|
88
88
|
if (d) {
|
|
@@ -93,16 +93,16 @@ var j = {
|
|
|
93
93
|
}
|
|
94
94
|
}, [d]);
|
|
95
95
|
let p = () => {
|
|
96
|
-
f(!1),
|
|
96
|
+
f(!1), o();
|
|
97
97
|
};
|
|
98
|
-
return /*#__PURE__*/ w(
|
|
98
|
+
return /*#__PURE__*/ w(n, { children: [
|
|
99
99
|
/*#__PURE__*/ C(e, {
|
|
100
100
|
className: "break-all",
|
|
101
|
-
children:
|
|
101
|
+
children: t.image_id
|
|
102
102
|
}),
|
|
103
103
|
/*#__PURE__*/ C(e, {
|
|
104
104
|
className: "break-all",
|
|
105
|
-
children:
|
|
105
|
+
children: t.member_id
|
|
106
106
|
}),
|
|
107
107
|
/*#__PURE__*/ C(e, {
|
|
108
108
|
className: `break-all text-theme-${((e) => {
|
|
@@ -112,7 +112,7 @@ var j = {
|
|
|
112
112
|
case j.REJECTED: return "danger";
|
|
113
113
|
default: return "default";
|
|
114
114
|
}
|
|
115
|
-
})(
|
|
115
|
+
})(t.status)}`,
|
|
116
116
|
children: ((e) => {
|
|
117
117
|
switch (e) {
|
|
118
118
|
case j.PENDING: return l._({ id: "UbRKMZ" });
|
|
@@ -120,13 +120,13 @@ var j = {
|
|
|
120
120
|
case j.REJECTED: return l._({ id: "ekCRTP" });
|
|
121
121
|
default: return e;
|
|
122
122
|
}
|
|
123
|
-
})(
|
|
123
|
+
})(t.status)
|
|
124
124
|
}),
|
|
125
|
-
/*#__PURE__*/ C(e, { children: r ? /*#__PURE__*/ C(
|
|
125
|
+
/*#__PURE__*/ C(e, { children: r ? /*#__PURE__*/ C(a, {
|
|
126
126
|
distribution: "center",
|
|
127
127
|
alignment: "center",
|
|
128
|
-
children: /*#__PURE__*/ C(
|
|
129
|
-
}) : /*#__PURE__*/ C(
|
|
128
|
+
children: /*#__PURE__*/ C(i, { variant: "primary" })
|
|
129
|
+
}) : /*#__PURE__*/ C(a, {
|
|
130
130
|
distribution: "end",
|
|
131
131
|
alignment: "end",
|
|
132
132
|
children: (() => {
|
|
@@ -141,7 +141,7 @@ var j = {
|
|
|
141
141
|
children: l._({ id: "t/YqKh" })
|
|
142
142
|
});
|
|
143
143
|
{
|
|
144
|
-
let e =
|
|
144
|
+
let e = t.member_id;
|
|
145
145
|
return /*#__PURE__*/ C(s, {
|
|
146
146
|
icon: "deleteForever",
|
|
147
147
|
onClick: () => f(!0),
|
|
@@ -164,29 +164,29 @@ var j = {
|
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/ImageMembersTable.tsx
|
|
166
166
|
function R() {
|
|
167
|
-
return /*#__PURE__*/ C(
|
|
167
|
+
return /*#__PURE__*/ C(n, { children: /*#__PURE__*/ C(e, {
|
|
168
168
|
colSpan: 4,
|
|
169
|
-
children: /*#__PURE__*/ C(
|
|
169
|
+
children: /*#__PURE__*/ C(a, {
|
|
170
170
|
distribution: "center",
|
|
171
171
|
alignment: "center",
|
|
172
|
-
children: /*#__PURE__*/ C(
|
|
172
|
+
children: /*#__PURE__*/ C(i, { variant: "primary" })
|
|
173
173
|
})
|
|
174
174
|
}) });
|
|
175
175
|
}
|
|
176
|
-
var z = ({ image:
|
|
176
|
+
var z = ({ image: r, imageMembers: i, isMembersLoading: c, canAdd: l, canRemove: u, isAddingMember: d, setIsAddingMember: f, setMessage: m, projectId: h }) => {
|
|
177
177
|
let { i18n: g, _ } = k(), v = y.useUtils(), [b, x] = D(""), [T, E] = D({}), [O, A] = D(/* @__PURE__ */ new Set()), j = y.compute.createImageMember.useMutation({ onSuccess: () => {
|
|
178
178
|
v.compute.listImageMembers.invalidate({
|
|
179
179
|
project_id: h,
|
|
180
|
-
imageId:
|
|
180
|
+
imageId: r.id
|
|
181
181
|
});
|
|
182
182
|
} }), M = y.compute.deleteImageMember.useMutation({ onSuccess: () => {
|
|
183
183
|
v.compute.listImageMembers.invalidate({
|
|
184
184
|
project_id: h,
|
|
185
|
-
imageId:
|
|
185
|
+
imageId: r.id
|
|
186
186
|
});
|
|
187
|
-
} }), N =
|
|
187
|
+
} }), N = r.visibility === "public", P = !i || i.length === 0, F = j.isPending || M.isPending, z = () => {
|
|
188
188
|
let e = b.trim(), t = {};
|
|
189
|
-
return e ?
|
|
189
|
+
return e ? i?.some((t) => t.member_id === e) && (t.memberId = g._({ id: "jyqLKs" })) : t.memberId = g._({ id: "S5CUKP" }), E(t), Object.keys(t).length === 0;
|
|
190
190
|
}, B = () => {
|
|
191
191
|
x(""), E({});
|
|
192
192
|
}, V = async () => {
|
|
@@ -201,7 +201,7 @@ var z = ({ image: t, imageMembers: a, isMembersLoading: c, canAdd: u, canRemove:
|
|
|
201
201
|
try {
|
|
202
202
|
await j.mutateAsync({
|
|
203
203
|
project_id: h,
|
|
204
|
-
imageId:
|
|
204
|
+
imageId: r.id,
|
|
205
205
|
member: e
|
|
206
206
|
}), m({
|
|
207
207
|
text: g._({
|
|
@@ -209,7 +209,7 @@ var z = ({ image: t, imageMembers: a, isMembersLoading: c, canAdd: u, canRemove:
|
|
|
209
209
|
values: { trimmedMemberId: e }
|
|
210
210
|
}),
|
|
211
211
|
type: "info"
|
|
212
|
-
}), B(),
|
|
212
|
+
}), B(), f(!1);
|
|
213
213
|
} catch (e) {
|
|
214
214
|
m({
|
|
215
215
|
text: e?.message || g._({ id: "9doWrf" }),
|
|
@@ -221,7 +221,7 @@ var z = ({ image: t, imageMembers: a, isMembersLoading: c, canAdd: u, canRemove:
|
|
|
221
221
|
try {
|
|
222
222
|
await M.mutateAsync({
|
|
223
223
|
project_id: h,
|
|
224
|
-
imageId:
|
|
224
|
+
imageId: r.id,
|
|
225
225
|
memberId: e
|
|
226
226
|
}), m({
|
|
227
227
|
text: g._({
|
|
@@ -245,39 +245,39 @@ var z = ({ image: t, imageMembers: a, isMembersLoading: c, canAdd: u, canRemove:
|
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
return c ? /*#__PURE__*/ w(
|
|
248
|
+
return c ? /*#__PURE__*/ w(p, {
|
|
249
249
|
columns: 4,
|
|
250
|
-
children: [/*#__PURE__*/ w(
|
|
251
|
-
/*#__PURE__*/ C(
|
|
252
|
-
/*#__PURE__*/ C(
|
|
253
|
-
/*#__PURE__*/ C(
|
|
254
|
-
/*#__PURE__*/ C(
|
|
250
|
+
children: [/*#__PURE__*/ w(n, { children: [
|
|
251
|
+
/*#__PURE__*/ C(t, { children: g._({ id: "vrPCbw" }) }),
|
|
252
|
+
/*#__PURE__*/ C(t, { children: g._({ id: "mSfwLL" }) }),
|
|
253
|
+
/*#__PURE__*/ C(t, { children: g._({ id: "uAQUqI" }) }),
|
|
254
|
+
/*#__PURE__*/ C(t, {})
|
|
255
255
|
] }), /*#__PURE__*/ C(R, {})]
|
|
256
|
-
}) : N ? /*#__PURE__*/ C(
|
|
256
|
+
}) : N ? /*#__PURE__*/ C(o, {
|
|
257
257
|
text: g._({ id: "6H/Lg1" }),
|
|
258
258
|
variant: "info"
|
|
259
|
-
}) : /*#__PURE__*/ w(S, { children: [
|
|
259
|
+
}) : /*#__PURE__*/ w(S, { children: [l && /*#__PURE__*/ C(a, {
|
|
260
260
|
direction: "horizontal",
|
|
261
261
|
className: "bg-theme-background-lvl-1 justify-end p-2",
|
|
262
262
|
children: /*#__PURE__*/ C(s, {
|
|
263
263
|
label: g._({ id: "VCM3KS" }),
|
|
264
264
|
"data-testid": "addMemberButton",
|
|
265
|
-
onClick: () =>
|
|
265
|
+
onClick: () => f(!0),
|
|
266
266
|
variant: "primary",
|
|
267
|
-
disabled:
|
|
267
|
+
disabled: d
|
|
268
268
|
})
|
|
269
|
-
}), /*#__PURE__*/ w(
|
|
269
|
+
}), /*#__PURE__*/ w(p, {
|
|
270
270
|
columns: 4,
|
|
271
271
|
children: [
|
|
272
|
-
/*#__PURE__*/ w(
|
|
273
|
-
/*#__PURE__*/ C(
|
|
274
|
-
/*#__PURE__*/ C(
|
|
275
|
-
/*#__PURE__*/ C(
|
|
276
|
-
/*#__PURE__*/ C(
|
|
272
|
+
/*#__PURE__*/ w(n, { children: [
|
|
273
|
+
/*#__PURE__*/ C(t, { children: g._({ id: "vrPCbw" }) }),
|
|
274
|
+
/*#__PURE__*/ C(t, { children: g._({ id: "NRVSdy" }) }),
|
|
275
|
+
/*#__PURE__*/ C(t, { children: g._({ id: "uAQUqI" }) }),
|
|
276
|
+
/*#__PURE__*/ C(t, {})
|
|
277
277
|
] }),
|
|
278
|
-
|
|
278
|
+
d && /*#__PURE__*/ C(I, {
|
|
279
279
|
memberId: b,
|
|
280
|
-
imageId:
|
|
280
|
+
imageId: r.id,
|
|
281
281
|
errors: T,
|
|
282
282
|
isLoading: F,
|
|
283
283
|
onMemberIdChange: (e) => {
|
|
@@ -288,24 +288,24 @@ var z = ({ image: t, imageMembers: a, isMembersLoading: c, canAdd: u, canRemove:
|
|
|
288
288
|
},
|
|
289
289
|
onSave: V,
|
|
290
290
|
onCancel: () => {
|
|
291
|
-
B(),
|
|
291
|
+
B(), f(!1), m(null);
|
|
292
292
|
}
|
|
293
293
|
}),
|
|
294
|
-
|
|
294
|
+
i?.map((e, t) => /*#__PURE__*/ C(L, {
|
|
295
295
|
member: e,
|
|
296
296
|
isDeleting: O.has(e.member_id),
|
|
297
297
|
onDelete: () => H(e.member_id),
|
|
298
|
-
canDelete:
|
|
298
|
+
canDelete: u
|
|
299
299
|
}, `${e.member_id}-${t}`)),
|
|
300
|
-
P && !
|
|
300
|
+
P && !d && /*#__PURE__*/ C(n, { children: /*#__PURE__*/ C(e, {
|
|
301
301
|
colSpan: 4,
|
|
302
302
|
className: "text-theme-default py-4 text-center",
|
|
303
303
|
children: g._({ id: "H7u085" })
|
|
304
304
|
}) })
|
|
305
305
|
]
|
|
306
306
|
})] });
|
|
307
|
-
}, B = ({ image: e, isOpen:
|
|
308
|
-
let { i18n:
|
|
307
|
+
}, B = ({ image: e, isOpen: t, isLoading: n = !1, onClose: o, onSave: c }) => {
|
|
308
|
+
let { i18n: l, _: p } = k(), [y, b] = D({
|
|
309
309
|
name: e.name || "",
|
|
310
310
|
tags: e.tags || [],
|
|
311
311
|
visibility: e.visibility || N.PRIVATE,
|
|
@@ -365,17 +365,17 @@ var z = ({ image: t, imageMembers: a, isMembersLoading: c, canAdd: u, canRemove:
|
|
|
365
365
|
}));
|
|
366
366
|
}, B = () => {
|
|
367
367
|
let e = {};
|
|
368
|
-
return (!y.name || y.name.trim() === "") && (e.name =
|
|
368
|
+
return (!y.name || y.name.trim() === "") && (e.name = l._({ id: "wyIOMP" })), y.min_disk < 0 && (e.min_disk = l._({ id: "K3bUTE" })), y.min_ram < 0 && (e.min_ram = l._({ id: "PEGvy+" })), E(e), Object.keys(e).length === 0;
|
|
369
369
|
};
|
|
370
|
-
return /*#__PURE__*/ w(
|
|
371
|
-
open:
|
|
370
|
+
return /*#__PURE__*/ w(g, {
|
|
371
|
+
open: t,
|
|
372
372
|
onCancel: () => {
|
|
373
|
-
E({}),
|
|
373
|
+
E({}), o();
|
|
374
374
|
},
|
|
375
375
|
size: "large",
|
|
376
|
-
title:
|
|
376
|
+
title: l._({ id: "M5Epeo" }),
|
|
377
377
|
onConfirm: (t) => {
|
|
378
|
-
t.preventDefault(), B() &&
|
|
378
|
+
t.preventDefault(), B() && c({
|
|
379
379
|
...e.name === y.name.trim() ? {} : { name: y.name.trim() },
|
|
380
380
|
...A(e.tags || [], y.tags) ? {} : { tags: y.tags },
|
|
381
381
|
...e.visibility === y.visibility ? {} : { visibility: y.visibility },
|
|
@@ -384,60 +384,60 @@ var z = ({ image: t, imageMembers: a, isMembersLoading: c, canAdd: u, canRemove:
|
|
|
384
384
|
...e.min_ram === y.min_ram ? {} : { min_ram: y.min_ram }
|
|
385
385
|
});
|
|
386
386
|
},
|
|
387
|
-
confirmButtonLabel:
|
|
388
|
-
cancelButtonLabel:
|
|
389
|
-
disableConfirmButton:
|
|
390
|
-
children: [
|
|
387
|
+
confirmButtonLabel: l._({ id: "IUwGEM" }),
|
|
388
|
+
cancelButtonLabel: l._({ id: "dEgA5A" }),
|
|
389
|
+
disableConfirmButton: n || j,
|
|
390
|
+
children: [n && /*#__PURE__*/ C(a, {
|
|
391
391
|
distribution: "center",
|
|
392
392
|
alignment: "center",
|
|
393
|
-
children: /*#__PURE__*/ C(
|
|
394
|
-
}), !
|
|
393
|
+
children: /*#__PURE__*/ C(i, { variant: "primary" })
|
|
394
|
+
}), !n && /*#__PURE__*/ w(v, { children: [/*#__PURE__*/ w(h, {
|
|
395
395
|
className: "mb-6",
|
|
396
396
|
children: [
|
|
397
|
-
/*#__PURE__*/ C(
|
|
397
|
+
/*#__PURE__*/ C(r, {
|
|
398
398
|
className: "mb-4",
|
|
399
|
-
children: /*#__PURE__*/ C(
|
|
399
|
+
children: /*#__PURE__*/ C(d, {
|
|
400
400
|
id: "name",
|
|
401
401
|
name: "name",
|
|
402
|
-
label:
|
|
402
|
+
label: l._({ id: "ExLULX" }),
|
|
403
403
|
value: y.name,
|
|
404
404
|
onChange: M,
|
|
405
405
|
required: !0,
|
|
406
406
|
errortext: T.name
|
|
407
407
|
})
|
|
408
408
|
}),
|
|
409
|
-
/*#__PURE__*/ C(
|
|
409
|
+
/*#__PURE__*/ C(r, {
|
|
410
410
|
className: "my-6",
|
|
411
411
|
children: /*#__PURE__*/ w("div", {
|
|
412
412
|
className: "w-full",
|
|
413
|
-
children: [/*#__PURE__*/ w(
|
|
413
|
+
children: [/*#__PURE__*/ w(a, {
|
|
414
414
|
gap: "2",
|
|
415
415
|
direction: "horizontal",
|
|
416
416
|
alignment: "start",
|
|
417
417
|
children: [/*#__PURE__*/ C("div", {
|
|
418
418
|
className: "flex-1",
|
|
419
|
-
children: /*#__PURE__*/ C(
|
|
419
|
+
children: /*#__PURE__*/ C(d, {
|
|
420
420
|
id: "tags",
|
|
421
421
|
name: "tags",
|
|
422
|
-
label:
|
|
422
|
+
label: l._({ id: "OYHzN1" }),
|
|
423
423
|
value: x,
|
|
424
424
|
onChange: I,
|
|
425
425
|
onKeyDown: R,
|
|
426
|
-
helptext:
|
|
427
|
-
placeholder:
|
|
426
|
+
helptext: l._({ id: "MOug+V" }),
|
|
427
|
+
placeholder: l._({ id: "y+KBOY" })
|
|
428
428
|
})
|
|
429
429
|
}), /*#__PURE__*/ C(s, {
|
|
430
430
|
variant: "primary",
|
|
431
431
|
onClick: L,
|
|
432
|
-
disabled:
|
|
432
|
+
disabled: n || x.trim() === "",
|
|
433
433
|
children: /*#__PURE__*/ C(O, { id: "m16xKo" })
|
|
434
434
|
})]
|
|
435
|
-
}), y.tags.length > 0 && /*#__PURE__*/ C(
|
|
435
|
+
}), y.tags.length > 0 && /*#__PURE__*/ C(a, {
|
|
436
436
|
gap: "2",
|
|
437
437
|
wrap: !0,
|
|
438
438
|
alignment: "center",
|
|
439
439
|
className: "mt-3",
|
|
440
|
-
children: y.tags.map((e) => /*#__PURE__*/ C(
|
|
440
|
+
children: y.tags.map((e) => /*#__PURE__*/ C(f, {
|
|
441
441
|
closeable: !0,
|
|
442
442
|
pillKey: "",
|
|
443
443
|
pillValue: e,
|
|
@@ -446,65 +446,65 @@ var z = ({ image: t, imageMembers: a, isMembersLoading: c, canAdd: u, canRemove:
|
|
|
446
446
|
})]
|
|
447
447
|
})
|
|
448
448
|
}),
|
|
449
|
-
/*#__PURE__*/ C(
|
|
449
|
+
/*#__PURE__*/ C(r, {
|
|
450
450
|
className: "mb-4",
|
|
451
451
|
children: /*#__PURE__*/ w(_, {
|
|
452
452
|
id: "visibility",
|
|
453
453
|
name: "visibility",
|
|
454
|
-
label:
|
|
454
|
+
label: l._({ id: "2q/Q7x" }),
|
|
455
455
|
value: y.visibility,
|
|
456
456
|
onChange: (e) => P("visibility", e),
|
|
457
457
|
children: [
|
|
458
|
-
/*#__PURE__*/ C(
|
|
458
|
+
/*#__PURE__*/ C(u, {
|
|
459
459
|
value: N.PUBLIC,
|
|
460
|
-
label:
|
|
460
|
+
label: l._({ id: "7d1a0d" })
|
|
461
461
|
}),
|
|
462
|
-
/*#__PURE__*/ C(
|
|
462
|
+
/*#__PURE__*/ C(u, {
|
|
463
463
|
value: N.PRIVATE,
|
|
464
|
-
label:
|
|
464
|
+
label: l._({ id: "zwBp5t" })
|
|
465
465
|
}),
|
|
466
|
-
/*#__PURE__*/ C(
|
|
466
|
+
/*#__PURE__*/ C(u, {
|
|
467
467
|
value: N.SHARED,
|
|
468
|
-
label:
|
|
468
|
+
label: l._({ id: "0Gd0NU" })
|
|
469
469
|
}),
|
|
470
|
-
/*#__PURE__*/ C(
|
|
470
|
+
/*#__PURE__*/ C(u, {
|
|
471
471
|
value: N.COMMUNITY,
|
|
472
|
-
label:
|
|
472
|
+
label: l._({ id: "chL5IG" })
|
|
473
473
|
})
|
|
474
474
|
]
|
|
475
475
|
})
|
|
476
476
|
}),
|
|
477
|
-
/*#__PURE__*/ C(
|
|
477
|
+
/*#__PURE__*/ C(r, { children: /*#__PURE__*/ C(m, {
|
|
478
478
|
id: "protected",
|
|
479
479
|
name: "protected",
|
|
480
|
-
label:
|
|
480
|
+
label: l._({ id: "644xgx" }),
|
|
481
481
|
checked: y.protected,
|
|
482
482
|
onChange: M,
|
|
483
|
-
helptext:
|
|
483
|
+
helptext: l._({ id: "lAsm87" })
|
|
484
484
|
}) })
|
|
485
485
|
]
|
|
486
|
-
}), /*#__PURE__*/ w(
|
|
486
|
+
}), /*#__PURE__*/ w(h, {
|
|
487
487
|
className: "mb-6",
|
|
488
|
-
children: [/*#__PURE__*/ C(
|
|
488
|
+
children: [/*#__PURE__*/ C(r, {
|
|
489
489
|
className: "mb-4",
|
|
490
|
-
children: /*#__PURE__*/ C(
|
|
490
|
+
children: /*#__PURE__*/ C(d, {
|
|
491
491
|
id: "min_disk",
|
|
492
492
|
name: "min_disk",
|
|
493
|
-
label:
|
|
493
|
+
label: l._({ id: "tbwGSx" }),
|
|
494
494
|
type: "number",
|
|
495
495
|
value: String(y.min_disk),
|
|
496
496
|
onChange: (e) => F("min_disk", e.target.value),
|
|
497
|
-
helptext:
|
|
497
|
+
helptext: l._({ id: "RFDYCD" }),
|
|
498
498
|
errortext: T.min_disk
|
|
499
499
|
})
|
|
500
|
-
}), /*#__PURE__*/ C(
|
|
500
|
+
}), /*#__PURE__*/ C(r, { children: /*#__PURE__*/ C(d, {
|
|
501
501
|
id: "min_ram",
|
|
502
502
|
name: "min_ram",
|
|
503
|
-
label:
|
|
503
|
+
label: l._({ id: "UYSopm" }),
|
|
504
504
|
type: "number",
|
|
505
505
|
value: String(y.min_ram),
|
|
506
506
|
onChange: (e) => F("min_ram", e.target.value),
|
|
507
|
-
helptext:
|
|
507
|
+
helptext: l._({ id: "WErCZy" }),
|
|
508
508
|
errortext: T.min_ram
|
|
509
509
|
}) })]
|
|
510
510
|
})] })]
|
|
@@ -528,28 +528,28 @@ function H(e, t) {
|
|
|
528
528
|
};
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
function U({ isLoading:
|
|
532
|
-
let { i18n:
|
|
531
|
+
function U({ isLoading: r, onClose: o, onSave: c, initialMetadata: l, excludedProperties: u }) {
|
|
532
|
+
let { i18n: f, _: m } = k(), [h, _] = D(l), [v, y] = D({}), [b, x] = D(!1), [S, E] = D(""), [O, A] = D(""), [j, M] = D(null);
|
|
533
533
|
T(() => {
|
|
534
534
|
if (j !== null) {
|
|
535
535
|
let e = setTimeout(() => M(null), 3e3);
|
|
536
536
|
return () => clearTimeout(e);
|
|
537
537
|
}
|
|
538
538
|
}, [j]);
|
|
539
|
-
let N =
|
|
539
|
+
let N = h.every((e) => !e.isNew && e.key === e.originalKey && e.value === e.originalValue) && l.length === h.length, P = (e, t, n) => {
|
|
540
540
|
let r = e?.trim().toLowerCase();
|
|
541
|
-
return r ?
|
|
541
|
+
return r ? u.has(r) ? f._({ id: "n3eQzA" }) : h.some((e, i) => e.key.trim().toLowerCase() === r && i !== n && e.originalKey !== t) ? f._({ id: "i6/ygf" }) : null : f._({ id: "QV1ZPO" });
|
|
542
542
|
}, F = () => {
|
|
543
|
-
let e = P(S, void 0,
|
|
543
|
+
let e = P(S, void 0, h.length);
|
|
544
544
|
if (e) {
|
|
545
545
|
y({ newKey: e });
|
|
546
546
|
return;
|
|
547
547
|
}
|
|
548
548
|
if (!O.trim()) {
|
|
549
|
-
y({ newValue:
|
|
549
|
+
y({ newValue: f._({ id: "hXUWyd" }) });
|
|
550
550
|
return;
|
|
551
551
|
}
|
|
552
|
-
_([...
|
|
552
|
+
_([...h, {
|
|
553
553
|
key: S.trim(),
|
|
554
554
|
value: O.trim(),
|
|
555
555
|
isNew: !0,
|
|
@@ -558,7 +558,7 @@ function U({ isLoading: n, onClose: a, onSave: u, initialMetadata: d, excludedPr
|
|
|
558
558
|
}, I = () => {
|
|
559
559
|
E(""), A(""), x(!1), y({});
|
|
560
560
|
}, L = (e) => {
|
|
561
|
-
M(null), _(
|
|
561
|
+
M(null), _(h.map((t, n) => n === e ? {
|
|
562
562
|
...t,
|
|
563
563
|
isEditing: !0
|
|
564
564
|
} : {
|
|
@@ -566,32 +566,32 @@ function U({ isLoading: n, onClose: a, onSave: u, initialMetadata: d, excludedPr
|
|
|
566
566
|
isEditing: !1
|
|
567
567
|
})), x(!1);
|
|
568
568
|
}, R = (e) => {
|
|
569
|
-
let t =
|
|
569
|
+
let t = h[e], n = P(t.key, t.originalKey, e);
|
|
570
570
|
if (n) {
|
|
571
571
|
y({ [`edit-${e}`]: n });
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
574
|
if (!t.value.trim()) {
|
|
575
|
-
y({ [`edit-${e}`]:
|
|
575
|
+
y({ [`edit-${e}`]: f._({ id: "hXUWyd" }) });
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
578
|
-
_(
|
|
578
|
+
_(h.map((t, n) => n === e ? {
|
|
579
579
|
...t,
|
|
580
580
|
isEditing: !1,
|
|
581
581
|
key: t.key.trim(),
|
|
582
582
|
value: t.value.trim()
|
|
583
583
|
} : t)), y({});
|
|
584
584
|
}, z = (e) => {
|
|
585
|
-
_(
|
|
585
|
+
_(h.map((t, n) => n === e ? {
|
|
586
586
|
...t,
|
|
587
587
|
isEditing: !1,
|
|
588
588
|
key: t.originalKey ?? t.key,
|
|
589
589
|
value: t.originalValue ?? t.value
|
|
590
590
|
} : t)), y({});
|
|
591
591
|
}, B = (e) => {
|
|
592
|
-
_(
|
|
592
|
+
_(h.filter((t, n) => n !== e)), M(null), y({});
|
|
593
593
|
}, V = (e, t) => {
|
|
594
|
-
_(
|
|
594
|
+
_(h.map((n, r) => r === e ? {
|
|
595
595
|
...n,
|
|
596
596
|
key: t
|
|
597
597
|
} : n)), v[`edit-${e}`] && y((t) => {
|
|
@@ -599,7 +599,7 @@ function U({ isLoading: n, onClose: a, onSave: u, initialMetadata: d, excludedPr
|
|
|
599
599
|
return delete n[`edit-${e}`], n;
|
|
600
600
|
});
|
|
601
601
|
}, H = (e, t) => {
|
|
602
|
-
_(
|
|
602
|
+
_(h.map((n, r) => r === e ? {
|
|
603
603
|
...n,
|
|
604
604
|
value: t
|
|
605
605
|
} : n)), v[`edit-${e}`] && y((t) => {
|
|
@@ -607,51 +607,51 @@ function U({ isLoading: n, onClose: a, onSave: u, initialMetadata: d, excludedPr
|
|
|
607
607
|
return delete n[`edit-${e}`], n;
|
|
608
608
|
});
|
|
609
609
|
};
|
|
610
|
-
return /*#__PURE__*/ w(
|
|
610
|
+
return /*#__PURE__*/ w(g, {
|
|
611
611
|
open: !0,
|
|
612
612
|
onCancel: () => {
|
|
613
|
-
_(
|
|
613
|
+
_(l), x(!1), E(""), A(""), y({}), o();
|
|
614
614
|
},
|
|
615
615
|
size: "large",
|
|
616
|
-
title:
|
|
616
|
+
title: f._({ id: "yTtJTy" }),
|
|
617
617
|
onConfirm: async () => {
|
|
618
|
-
let e = {}, t = Object.fromEntries(
|
|
619
|
-
|
|
618
|
+
let e = {}, t = Object.fromEntries(l.filter((e) => !h.map((e) => e.originalKey).includes(e.originalKey) || !h.map((e) => e.key).includes(e.key)).map((e) => [e.key, null]));
|
|
619
|
+
h.filter((e) => e.isNew || e.value !== e.originalValue || e.key !== e.originalKey).forEach((t) => {
|
|
620
620
|
e[t.key] = t.value;
|
|
621
|
-
}), await
|
|
621
|
+
}), await c({
|
|
622
622
|
...e,
|
|
623
623
|
...t
|
|
624
|
-
}) &&
|
|
624
|
+
}) && o();
|
|
625
625
|
},
|
|
626
|
-
confirmButtonLabel:
|
|
627
|
-
cancelButtonLabel:
|
|
628
|
-
disableConfirmButton:
|
|
629
|
-
children: [
|
|
626
|
+
confirmButtonLabel: f._({ id: "IUwGEM" }),
|
|
627
|
+
cancelButtonLabel: f._({ id: "dEgA5A" }),
|
|
628
|
+
disableConfirmButton: r || b || h.some((e) => e.isEditing) || N,
|
|
629
|
+
children: [r && /*#__PURE__*/ C(a, {
|
|
630
630
|
distribution: "center",
|
|
631
631
|
alignment: "center",
|
|
632
|
-
children: /*#__PURE__*/ C(
|
|
633
|
-
}), !
|
|
632
|
+
children: /*#__PURE__*/ C(i, { variant: "primary" })
|
|
633
|
+
}), !r && /*#__PURE__*/ w("div", { children: [/*#__PURE__*/ C(a, {
|
|
634
634
|
direction: "horizontal",
|
|
635
635
|
className: "jn:bg-theme-background-lvl-1 mb-4 justify-end p-2",
|
|
636
636
|
children: /*#__PURE__*/ C(s, {
|
|
637
|
-
label:
|
|
637
|
+
label: f._({ id: "sWBLli" }),
|
|
638
638
|
onClick: () => x(!0),
|
|
639
639
|
variant: "primary",
|
|
640
|
-
disabled: b ||
|
|
640
|
+
disabled: b || h.some((e) => e.isEditing),
|
|
641
641
|
icon: "addCircle"
|
|
642
642
|
})
|
|
643
|
-
}), /*#__PURE__*/ w(
|
|
643
|
+
}), /*#__PURE__*/ w(p, {
|
|
644
644
|
columns: 3,
|
|
645
645
|
minContentColumns: [2],
|
|
646
646
|
className: "mb-6",
|
|
647
647
|
children: [
|
|
648
|
-
/*#__PURE__*/ w(
|
|
649
|
-
/*#__PURE__*/ C(
|
|
650
|
-
/*#__PURE__*/ C(
|
|
651
|
-
/*#__PURE__*/ C(
|
|
648
|
+
/*#__PURE__*/ w(n, { children: [
|
|
649
|
+
/*#__PURE__*/ C(t, { children: f._({ id: "T8N6oi" }) }),
|
|
650
|
+
/*#__PURE__*/ C(t, { children: f._({ id: "wMHvYH" }) }),
|
|
651
|
+
/*#__PURE__*/ C(t, {})
|
|
652
652
|
] }),
|
|
653
|
-
b && /*#__PURE__*/ w(
|
|
654
|
-
/*#__PURE__*/ C(e, { children: /*#__PURE__*/ C(
|
|
653
|
+
b && /*#__PURE__*/ w(n, { children: [
|
|
654
|
+
/*#__PURE__*/ C(e, { children: /*#__PURE__*/ C(d, {
|
|
655
655
|
value: S,
|
|
656
656
|
onChange: (e) => {
|
|
657
657
|
E(e.target.value), v.newKey && y((e) => {
|
|
@@ -659,11 +659,11 @@ function U({ isLoading: n, onClose: a, onSave: u, initialMetadata: d, excludedPr
|
|
|
659
659
|
return delete t.newKey, t;
|
|
660
660
|
});
|
|
661
661
|
},
|
|
662
|
-
placeholder:
|
|
662
|
+
placeholder: f._({ id: "x9AdZ8" }),
|
|
663
663
|
errortext: v.newKey,
|
|
664
664
|
autoFocus: !0
|
|
665
665
|
}) }),
|
|
666
|
-
/*#__PURE__*/ C(e, { children: /*#__PURE__*/ C(
|
|
666
|
+
/*#__PURE__*/ C(e, { children: /*#__PURE__*/ C(d, {
|
|
667
667
|
value: O,
|
|
668
668
|
onChange: (e) => {
|
|
669
669
|
A(e.target.value), v.newValue && y((e) => {
|
|
@@ -671,10 +671,10 @@ function U({ isLoading: n, onClose: a, onSave: u, initialMetadata: d, excludedPr
|
|
|
671
671
|
return delete t.newValue, t;
|
|
672
672
|
});
|
|
673
673
|
},
|
|
674
|
-
placeholder:
|
|
674
|
+
placeholder: f._({ id: "wMHvYH" }),
|
|
675
675
|
errortext: v.newValue
|
|
676
676
|
}) }),
|
|
677
|
-
/*#__PURE__*/ C(e, { children: /*#__PURE__*/ w(
|
|
677
|
+
/*#__PURE__*/ C(e, { children: /*#__PURE__*/ w(a, {
|
|
678
678
|
direction: "horizontal",
|
|
679
679
|
gap: "2",
|
|
680
680
|
children: [/*#__PURE__*/ C(s, {
|
|
@@ -682,241 +682,241 @@ function U({ isLoading: n, onClose: a, onSave: u, initialMetadata: d, excludedPr
|
|
|
682
682
|
variant: "primary",
|
|
683
683
|
onClick: F,
|
|
684
684
|
icon: "check",
|
|
685
|
-
title:
|
|
685
|
+
title: f._({ id: "tfDRzk" })
|
|
686
686
|
}), /*#__PURE__*/ C(s, {
|
|
687
687
|
size: "small",
|
|
688
688
|
variant: "subdued",
|
|
689
689
|
onClick: I,
|
|
690
690
|
icon: "close",
|
|
691
|
-
title:
|
|
691
|
+
title: f._({ id: "bzSI52" })
|
|
692
692
|
})]
|
|
693
693
|
}) })
|
|
694
694
|
] }),
|
|
695
|
-
|
|
696
|
-
/*#__PURE__*/ C(e, { children: t.isEditing ? /*#__PURE__*/ C(
|
|
695
|
+
h.map((t, r) => /*#__PURE__*/ w(n, { children: [
|
|
696
|
+
/*#__PURE__*/ C(e, { children: t.isEditing ? /*#__PURE__*/ C(d, {
|
|
697
697
|
value: t.key,
|
|
698
|
-
onChange: (e) => V(
|
|
699
|
-
errortext: v[`edit-${
|
|
698
|
+
onChange: (e) => V(r, e.target.value),
|
|
699
|
+
errortext: v[`edit-${r}`]
|
|
700
700
|
}) : /*#__PURE__*/ C("span", {
|
|
701
701
|
className: "jn:text-theme-high block max-w-xs truncate font-mono",
|
|
702
702
|
title: t.key,
|
|
703
703
|
children: t.key
|
|
704
704
|
}) }),
|
|
705
|
-
/*#__PURE__*/ C(e, { children: t.isEditing ? /*#__PURE__*/ C(
|
|
705
|
+
/*#__PURE__*/ C(e, { children: t.isEditing ? /*#__PURE__*/ C(d, {
|
|
706
706
|
value: t.value,
|
|
707
|
-
onChange: (e) => H(
|
|
707
|
+
onChange: (e) => H(r, e.target.value)
|
|
708
708
|
}) : /*#__PURE__*/ C("span", {
|
|
709
709
|
className: "jn:text-theme-default block max-w-md truncate",
|
|
710
710
|
title: t.value,
|
|
711
711
|
children: t.value
|
|
712
712
|
}) }),
|
|
713
|
-
/*#__PURE__*/ C(e, { children: t.isEditing ? /*#__PURE__*/ w(
|
|
713
|
+
/*#__PURE__*/ C(e, { children: t.isEditing ? /*#__PURE__*/ w(a, {
|
|
714
714
|
direction: "horizontal",
|
|
715
715
|
gap: "2",
|
|
716
716
|
children: [/*#__PURE__*/ C(s, {
|
|
717
717
|
size: "small",
|
|
718
718
|
variant: "primary",
|
|
719
|
-
onClick: () => R(
|
|
719
|
+
onClick: () => R(r),
|
|
720
720
|
icon: "check",
|
|
721
|
-
title:
|
|
721
|
+
title: f._({ id: "tfDRzk" })
|
|
722
722
|
}), /*#__PURE__*/ C(s, {
|
|
723
723
|
size: "small",
|
|
724
724
|
variant: "subdued",
|
|
725
|
-
onClick: () => z(
|
|
725
|
+
onClick: () => z(r),
|
|
726
726
|
icon: "close",
|
|
727
|
-
title:
|
|
727
|
+
title: f._({ id: "bzSI52" })
|
|
728
728
|
})]
|
|
729
|
-
}) : /*#__PURE__*/ w(
|
|
729
|
+
}) : /*#__PURE__*/ w(a, {
|
|
730
730
|
direction: "horizontal",
|
|
731
731
|
gap: "2",
|
|
732
|
-
children: [j !==
|
|
732
|
+
children: [j !== r && /*#__PURE__*/ C(s, {
|
|
733
733
|
size: "small",
|
|
734
734
|
variant: "subdued",
|
|
735
|
-
onClick: () => L(
|
|
735
|
+
onClick: () => L(r),
|
|
736
736
|
icon: "edit",
|
|
737
737
|
"data-testid": `edit-${t.key}`,
|
|
738
|
-
title:
|
|
739
|
-
disabled: b ||
|
|
740
|
-
}), j ===
|
|
738
|
+
title: f._({ id: "ePK91l" }),
|
|
739
|
+
disabled: b || h.some((e) => e.isEditing)
|
|
740
|
+
}), j === r ? /*#__PURE__*/ C(s, {
|
|
741
741
|
size: "small",
|
|
742
742
|
variant: "primary-danger",
|
|
743
|
-
onClick: () => B(
|
|
743
|
+
onClick: () => B(r),
|
|
744
744
|
"data-testid": `confirm-delete-${t.key}`,
|
|
745
|
-
title:
|
|
746
|
-
disabled: b ||
|
|
747
|
-
children:
|
|
745
|
+
title: f._({ id: "cnGeoo" }),
|
|
746
|
+
disabled: b || h.some((e) => e.isEditing),
|
|
747
|
+
children: f._({ id: "cnGeoo" })
|
|
748
748
|
}) : /*#__PURE__*/ C(s, {
|
|
749
749
|
size: "small",
|
|
750
|
-
onClick: () => M(
|
|
750
|
+
onClick: () => M(r),
|
|
751
751
|
icon: "deleteForever",
|
|
752
752
|
"data-testid": `delete-${t.key}`,
|
|
753
|
-
title:
|
|
754
|
-
disabled: b ||
|
|
753
|
+
title: f._({ id: "cnGeoo" }),
|
|
754
|
+
disabled: b || h.some((e) => e.isEditing)
|
|
755
755
|
})]
|
|
756
756
|
}) })
|
|
757
|
-
] }, `${t.originalKey}-${
|
|
758
|
-
|
|
757
|
+
] }, `${t.originalKey}-${r}`)),
|
|
758
|
+
h.length === 0 && !b && /*#__PURE__*/ C(n, { children: /*#__PURE__*/ C(e, {
|
|
759
759
|
colSpan: 3,
|
|
760
760
|
className: "jn:text-theme-light py-8 text-center",
|
|
761
|
-
children: /*#__PURE__*/ C(
|
|
761
|
+
children: /*#__PURE__*/ C(a, {
|
|
762
762
|
alignment: "center",
|
|
763
|
-
children: /*#__PURE__*/ C("span", { children:
|
|
763
|
+
children: /*#__PURE__*/ C("span", { children: f._({ id: "t1POAD" }) })
|
|
764
764
|
})
|
|
765
765
|
}) })
|
|
766
766
|
]
|
|
767
767
|
})] })]
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
|
-
var W = ({ image: e, isOpen:
|
|
771
|
-
let { i18n: s, _:
|
|
770
|
+
var W = ({ image: e, isOpen: t, isLoading: n = !1, onClose: r, onSave: o }) => {
|
|
771
|
+
let { i18n: s, _: c } = k(), l = x(), { data: u, isLoading: d, isError: f } = y.compute.getImageMetadataExcludedProperties.useQuery({ project_id: l }, { enabled: t }), p = E(() => new Set((u ?? []).map((e) => e.toLowerCase())), [u]), m = E(() => H(e, p), [
|
|
772
772
|
e.id,
|
|
773
773
|
e.updated_at,
|
|
774
|
-
|
|
774
|
+
p
|
|
775
775
|
]);
|
|
776
|
-
return
|
|
776
|
+
return t ? d ? /*#__PURE__*/ C(g, {
|
|
777
777
|
open: !0,
|
|
778
|
-
onCancel:
|
|
778
|
+
onCancel: r,
|
|
779
779
|
size: "large",
|
|
780
780
|
title: s._({ id: "yTtJTy" }),
|
|
781
|
-
children: /*#__PURE__*/ C(
|
|
781
|
+
children: /*#__PURE__*/ C(a, {
|
|
782
782
|
distribution: "center",
|
|
783
783
|
alignment: "center",
|
|
784
|
-
children: /*#__PURE__*/ C(
|
|
784
|
+
children: /*#__PURE__*/ C(i, { variant: "primary" })
|
|
785
785
|
})
|
|
786
|
-
}) :
|
|
786
|
+
}) : f ? /*#__PURE__*/ C(g, {
|
|
787
787
|
open: !0,
|
|
788
|
-
onCancel:
|
|
788
|
+
onCancel: r,
|
|
789
789
|
size: "large",
|
|
790
790
|
title: s._({ id: "yTtJTy" }),
|
|
791
|
-
children: /*#__PURE__*/ C(
|
|
791
|
+
children: /*#__PURE__*/ C(a, {
|
|
792
792
|
distribution: "center",
|
|
793
793
|
alignment: "center",
|
|
794
794
|
children: /*#__PURE__*/ C("span", { children: s._({ id: "PYQUjU" }) })
|
|
795
795
|
})
|
|
796
796
|
}) : /*#__PURE__*/ C(U, {
|
|
797
|
-
isLoading:
|
|
798
|
-
onClose:
|
|
799
|
-
onSave:
|
|
800
|
-
initialMetadata:
|
|
801
|
-
excludedProperties:
|
|
802
|
-
}, `${e.id}-${e.updated_at}-${
|
|
803
|
-
}, G = ({ image:
|
|
804
|
-
if (!
|
|
797
|
+
isLoading: n,
|
|
798
|
+
onClose: r,
|
|
799
|
+
onSave: o,
|
|
800
|
+
initialMetadata: m,
|
|
801
|
+
excludedProperties: p
|
|
802
|
+
}, `${e.id}-${e.updated_at}-${p.size}`) : null;
|
|
803
|
+
}, G = ({ image: r, isOpen: u, isLoading: d, isDisabled: f, onClose: m, onDelete: h }) => {
|
|
804
|
+
if (!r) return null;
|
|
805
805
|
let { i18n: _, _: v } = k(), y = (e) => {
|
|
806
|
-
e.preventDefault(),
|
|
806
|
+
e.preventDefault(), h(r);
|
|
807
807
|
};
|
|
808
|
-
return /*#__PURE__*/ w(
|
|
809
|
-
onCancel:
|
|
808
|
+
return /*#__PURE__*/ w(g, {
|
|
809
|
+
onCancel: m,
|
|
810
810
|
size: "small",
|
|
811
811
|
title: "Delete Image",
|
|
812
|
-
open:
|
|
813
|
-
modalFooter: /*#__PURE__*/ C(
|
|
812
|
+
open: u,
|
|
813
|
+
modalFooter: /*#__PURE__*/ C(l, {
|
|
814
814
|
className: "flex justify-end",
|
|
815
|
-
children: /*#__PURE__*/ w(
|
|
815
|
+
children: /*#__PURE__*/ w(c, { children: [/*#__PURE__*/ C(s, {
|
|
816
816
|
variant: "default",
|
|
817
|
-
onClick:
|
|
817
|
+
onClick: m,
|
|
818
818
|
children: /*#__PURE__*/ C(O, { id: "dEgA5A" })
|
|
819
819
|
}), /*#__PURE__*/ C(s, {
|
|
820
820
|
variant: "primary-danger",
|
|
821
821
|
onClick: (e) => {
|
|
822
|
-
y(e),
|
|
822
|
+
y(e), m();
|
|
823
823
|
},
|
|
824
|
-
disabled:
|
|
824
|
+
disabled: d || f,
|
|
825
825
|
"data-testid": "delete-image-button",
|
|
826
|
-
children:
|
|
826
|
+
children: d ? /*#__PURE__*/ C(i, { size: "small" }) : /*#__PURE__*/ C(O, { id: "cnGeoo" })
|
|
827
827
|
})] })
|
|
828
828
|
}),
|
|
829
|
-
children: [
|
|
829
|
+
children: [d && /*#__PURE__*/ C(a, {
|
|
830
830
|
distribution: "center",
|
|
831
831
|
alignment: "center",
|
|
832
|
-
children: /*#__PURE__*/ C(
|
|
833
|
-
}), !
|
|
832
|
+
children: /*#__PURE__*/ C(i, { variant: "primary" })
|
|
833
|
+
}), !d && /*#__PURE__*/ w("div", { children: [/*#__PURE__*/ C(o, {
|
|
834
834
|
text: _._({ id: "2zceEg" }),
|
|
835
835
|
variant: "danger",
|
|
836
836
|
className: "mb-4"
|
|
837
|
-
}),
|
|
837
|
+
}), r && /*#__PURE__*/ w(p, {
|
|
838
838
|
columns: 2,
|
|
839
839
|
children: [
|
|
840
|
-
/*#__PURE__*/ w(
|
|
841
|
-
/*#__PURE__*/ w(
|
|
842
|
-
/*#__PURE__*/ w(
|
|
843
|
-
/*#__PURE__*/ w(
|
|
844
|
-
/*#__PURE__*/ w(
|
|
845
|
-
/*#__PURE__*/ w(
|
|
846
|
-
/*#__PURE__*/ w(
|
|
840
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: _._({ id: "6YtxFj" }) }), /*#__PURE__*/ C(e, { children: r.name || _._({ id: "MEIAzV" }) })] }),
|
|
841
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: _._({ id: "dFb5Nt" }) }), /*#__PURE__*/ C(e, { children: r.id })] }),
|
|
842
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: _._({ id: "uAQUqI" }) }), /*#__PURE__*/ C(e, { children: r.status })] }),
|
|
843
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: _._({ id: "2q/Q7x" }) }), /*#__PURE__*/ C(e, { children: r.visibility })] }),
|
|
844
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: _._({ id: "Cj2Gtd" }) }), /*#__PURE__*/ C(e, { children: /*#__PURE__*/ C(A, { size: r.size }) })] }),
|
|
845
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: _._({ id: "NopYGU" }) }), /*#__PURE__*/ C(e, { children: r.disk_format || _._({ id: "fj5byd" }) })] }),
|
|
846
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: _._({ id: "d+F6q9" }) }), /*#__PURE__*/ C(e, { children: r.created_at ? new Date(r.created_at).toLocaleDateString() : _._({ id: "fj5byd" }) })] })
|
|
847
847
|
]
|
|
848
848
|
})] })]
|
|
849
849
|
});
|
|
850
|
-
}, K = ({ image:
|
|
851
|
-
if (!
|
|
852
|
-
let { i18n:
|
|
853
|
-
return /*#__PURE__*/ w(
|
|
854
|
-
onCancel:
|
|
850
|
+
}, K = ({ image: r, isOpen: o, isLoading: s, onClose: c, onActivate: l }) => {
|
|
851
|
+
if (!r) return null;
|
|
852
|
+
let { i18n: u, _: d } = k();
|
|
853
|
+
return /*#__PURE__*/ w(g, {
|
|
854
|
+
onCancel: c,
|
|
855
855
|
size: "small",
|
|
856
|
-
title:
|
|
857
|
-
open:
|
|
856
|
+
title: u._({ id: "RSFkXF" }),
|
|
857
|
+
open: o,
|
|
858
858
|
onConfirm: (e) => {
|
|
859
|
-
e.preventDefault(),
|
|
859
|
+
e.preventDefault(), l(r);
|
|
860
860
|
},
|
|
861
|
-
confirmButtonLabel:
|
|
862
|
-
cancelButtonLabel:
|
|
861
|
+
confirmButtonLabel: u._({ id: "FQBaXG" }),
|
|
862
|
+
cancelButtonLabel: u._({ id: "dEgA5A" }),
|
|
863
863
|
disableConfirmButton: s,
|
|
864
|
-
children: [s && /*#__PURE__*/ C(
|
|
864
|
+
children: [s && /*#__PURE__*/ C(a, {
|
|
865
865
|
distribution: "center",
|
|
866
866
|
alignment: "center",
|
|
867
|
-
children: /*#__PURE__*/ C(
|
|
867
|
+
children: /*#__PURE__*/ C(i, { variant: "primary" })
|
|
868
868
|
}), !s && /*#__PURE__*/ w("div", { children: [/*#__PURE__*/ C("p", {
|
|
869
869
|
className: "mb-6",
|
|
870
870
|
children: /*#__PURE__*/ C(O, { id: "+NwLgN" })
|
|
871
|
-
}), /*#__PURE__*/ w(
|
|
871
|
+
}), /*#__PURE__*/ w(p, {
|
|
872
872
|
columns: 2,
|
|
873
873
|
children: [
|
|
874
|
-
/*#__PURE__*/ w(
|
|
875
|
-
/*#__PURE__*/ w(
|
|
876
|
-
/*#__PURE__*/ w(
|
|
877
|
-
/*#__PURE__*/ w(
|
|
878
|
-
/*#__PURE__*/ w(
|
|
879
|
-
/*#__PURE__*/ w(
|
|
880
|
-
/*#__PURE__*/ w(
|
|
881
|
-
let e = new Date(
|
|
882
|
-
return isNaN(e.getTime()) ?
|
|
874
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "6YtxFj" }) }), /*#__PURE__*/ C(e, { children: r.name || u._({ id: "MEIAzV" }) })] }),
|
|
875
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "dFb5Nt" }) }), /*#__PURE__*/ C(e, { children: r.id })] }),
|
|
876
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "uAQUqI" }) }), /*#__PURE__*/ C(e, { children: r.status })] }),
|
|
877
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "2q/Q7x" }) }), /*#__PURE__*/ C(e, { children: r.visibility })] }),
|
|
878
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "Cj2Gtd" }) }), /*#__PURE__*/ C(e, { children: /*#__PURE__*/ C(A, { size: r.size }) })] }),
|
|
879
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "NopYGU" }) }), /*#__PURE__*/ C(e, { children: r.disk_format || u._({ id: "fj5byd" }) })] }),
|
|
880
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "d+F6q9" }) }), /*#__PURE__*/ C(e, { children: (() => {
|
|
881
|
+
let e = new Date(r.created_at ?? "");
|
|
882
|
+
return isNaN(e.getTime()) ? u._({ id: "fj5byd" }) : e.toLocaleDateString();
|
|
883
883
|
})() })] })
|
|
884
884
|
]
|
|
885
885
|
})] })]
|
|
886
886
|
});
|
|
887
|
-
}, q = ({ image:
|
|
888
|
-
if (!
|
|
889
|
-
let { i18n:
|
|
890
|
-
return /*#__PURE__*/ w(
|
|
891
|
-
onCancel:
|
|
887
|
+
}, q = ({ image: r, isOpen: o, isLoading: s, onClose: c, onDeactivate: l }) => {
|
|
888
|
+
if (!r) return null;
|
|
889
|
+
let { i18n: u, _: d } = k();
|
|
890
|
+
return /*#__PURE__*/ w(g, {
|
|
891
|
+
onCancel: c,
|
|
892
892
|
size: "small",
|
|
893
|
-
title:
|
|
894
|
-
open:
|
|
893
|
+
title: u._({ id: "hQr1Cr" }),
|
|
894
|
+
open: o,
|
|
895
895
|
onConfirm: (e) => {
|
|
896
|
-
e.preventDefault(),
|
|
896
|
+
e.preventDefault(), l(r);
|
|
897
897
|
},
|
|
898
|
-
confirmButtonLabel:
|
|
899
|
-
cancelButtonLabel:
|
|
898
|
+
confirmButtonLabel: u._({ id: "5y3O+A" }),
|
|
899
|
+
cancelButtonLabel: u._({ id: "dEgA5A" }),
|
|
900
900
|
disableConfirmButton: s,
|
|
901
|
-
children: [s && /*#__PURE__*/ C(
|
|
901
|
+
children: [s && /*#__PURE__*/ C(a, {
|
|
902
902
|
distribution: "center",
|
|
903
903
|
alignment: "center",
|
|
904
|
-
children: /*#__PURE__*/ C(
|
|
904
|
+
children: /*#__PURE__*/ C(i, { variant: "primary" })
|
|
905
905
|
}), !s && /*#__PURE__*/ w("div", { children: [/*#__PURE__*/ C("p", {
|
|
906
906
|
className: "mb-6",
|
|
907
907
|
children: /*#__PURE__*/ C(O, { id: "8TSI9h" })
|
|
908
|
-
}), /*#__PURE__*/ w(
|
|
908
|
+
}), /*#__PURE__*/ w(p, {
|
|
909
909
|
columns: 2,
|
|
910
910
|
children: [
|
|
911
|
-
/*#__PURE__*/ w(
|
|
912
|
-
/*#__PURE__*/ w(
|
|
913
|
-
/*#__PURE__*/ w(
|
|
914
|
-
/*#__PURE__*/ w(
|
|
915
|
-
/*#__PURE__*/ w(
|
|
916
|
-
/*#__PURE__*/ w(
|
|
917
|
-
/*#__PURE__*/ w(
|
|
918
|
-
let e = new Date(
|
|
919
|
-
return isNaN(e.getTime()) ?
|
|
911
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "6YtxFj" }) }), /*#__PURE__*/ C(e, { children: r.name || u._({ id: "MEIAzV" }) })] }),
|
|
912
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "dFb5Nt" }) }), /*#__PURE__*/ C(e, { children: r.id })] }),
|
|
913
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "uAQUqI" }) }), /*#__PURE__*/ C(e, { children: r.status })] }),
|
|
914
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "2q/Q7x" }) }), /*#__PURE__*/ C(e, { children: r.visibility })] }),
|
|
915
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "Cj2Gtd" }) }), /*#__PURE__*/ C(e, { children: /*#__PURE__*/ C(A, { size: r.size }) })] }),
|
|
916
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "NopYGU" }) }), /*#__PURE__*/ C(e, { children: r.disk_format || u._({ id: "fj5byd" }) })] }),
|
|
917
|
+
/*#__PURE__*/ w(n, { children: [/*#__PURE__*/ C(t, { children: u._({ id: "d+F6q9" }) }), /*#__PURE__*/ C(e, { children: (() => {
|
|
918
|
+
let e = new Date(r.created_at ?? "");
|
|
919
|
+
return isNaN(e.getTime()) ? u._({ id: "fj5byd" }) : e.toLocaleDateString();
|
|
920
920
|
})() })] })
|
|
921
921
|
]
|
|
922
922
|
})] })]
|
|
@@ -925,7 +925,7 @@ var W = ({ image: e, isOpen: n, isLoading: r = !1, onClose: i, onSave: a }) => {
|
|
|
925
925
|
//#endregion
|
|
926
926
|
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/NotificationText.tsx
|
|
927
927
|
function J({ title: e, description: t }) {
|
|
928
|
-
return /*#__PURE__*/ w(
|
|
928
|
+
return /*#__PURE__*/ w(a, {
|
|
929
929
|
direction: "vertical",
|
|
930
930
|
gap: "1.5",
|
|
931
931
|
children: [/*#__PURE__*/ C("span", { children: e }), /*#__PURE__*/ C("span", {
|
|
@@ -1216,4 +1216,4 @@ var Y = (e, t) => ({
|
|
|
1216
1216
|
//#endregion
|
|
1217
1217
|
export { z as A, ve as C, G as D, K as E, j as F, A as I, P as M, M as N, W as O, N as P, Y as S, q as T, ae as _, me as a, $ as b, ce as c, he as d, ne as f, re as g, Z as h, pe as i, F as j, B as k, oe as l, Q as m, de as n, fe as o, ie as p, le as r, se as s, ue as t, ge as u, te as v, _e as w, X as x, ee as y };
|
|
1218
1218
|
|
|
1219
|
-
//# sourceMappingURL=ImageToastNotifications-
|
|
1219
|
+
//# sourceMappingURL=ImageToastNotifications-CFKQZTgf.mjs.map
|