@cobaltcore-dev/aurora 0.23.0 → 1.0.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/dist/client/App.d.ts +1 -1
- package/dist/client/{AuthProvider-CQ6Yppoh.mjs → AuthProvider-5TyZKZkx.mjs} +3 -3
- package/dist/client/AuthProvider-5TyZKZkx.mjs.map +1 -0
- package/dist/client/{ContentHeader-9KZdhOoA.mjs → ContentHeader-D64NtKvo.mjs} +26 -25
- package/dist/client/ContentHeader-D64NtKvo.mjs.map +1 -0
- package/dist/client/DeleteFlavorModal-C2K43ABZ.mjs +732 -0
- package/dist/client/DeleteFlavorModal-C2K43ABZ.mjs.map +1 -0
- package/dist/client/DeletePcaModal-D9v8E0Ki.mjs +92 -0
- package/dist/client/DeletePcaModal-D9v8E0Ki.mjs.map +1 -0
- package/dist/client/DetailsInfo-h7rPJ4Jf.mjs +61 -0
- package/dist/client/DetailsInfo-h7rPJ4Jf.mjs.map +1 -0
- package/dist/client/FiltersInput-Bw8TFfwb.mjs +82 -0
- package/dist/client/FiltersInput-Bw8TFfwb.mjs.map +1 -0
- package/dist/client/{FloatingIpActionModals-BcceUHcg.mjs → FloatingIpActionModals-BfEDfYg9.mjs} +66 -66
- package/dist/client/{FloatingIpActionModals-BcceUHcg.mjs.map → FloatingIpActionModals-BfEDfYg9.mjs.map} +1 -1
- package/dist/client/ImageToastNotifications-C0Tluzq-.mjs +1125 -0
- package/dist/client/ImageToastNotifications-C0Tluzq-.mjs.map +1 -0
- package/dist/client/{RouteError-Rm08PcxN.mjs → RouteError-B-NPGIv7.mjs} +2 -2
- package/dist/client/{RouteError-Rm08PcxN.mjs.map → RouteError-B-NPGIv7.mjs.map} +1 -1
- package/dist/client/Slot-CWb612-_.mjs.map +1 -1
- package/dist/client/{SortInput-D_q_jDfe.mjs → SortInput-DysAXpB3.mjs} +6 -6
- package/dist/client/{SortInput-D_q_jDfe.mjs.map → SortInput-DysAXpB3.mjs.map} +1 -1
- package/dist/client/{StatusError-2ZU1gFpu.mjs → StatusError-DX-GvLjq.mjs} +8 -8
- package/dist/client/{StatusError-2ZU1gFpu.mjs.map → StatusError-DX-GvLjq.mjs.map} +1 -1
- package/dist/client/TwoColumnDescriptionList-B3xunXmz.mjs +22 -0
- package/dist/client/TwoColumnDescriptionList-B3xunXmz.mjs.map +1 -0
- package/dist/client/{_auth-D5_QNUos.mjs → _auth-R5H2yKFf.mjs} +2 -2
- package/dist/client/_auth-R5H2yKFf.mjs.map +1 -0
- package/dist/client/_flavorId-Dit5mM8I.mjs +210 -0
- package/dist/client/_flavorId-Dit5mM8I.mjs.map +1 -0
- package/dist/client/{_flavorId-CFmkmg2Y.mjs → _flavorId-Zj7LNL-R.mjs} +4 -4
- package/dist/client/{_flavorId-CFmkmg2Y.mjs.map → _flavorId-Zj7LNL-R.mjs.map} +1 -1
- package/dist/client/_floatingIpId-B0MCoqE3.mjs +215 -0
- package/dist/client/_floatingIpId-B0MCoqE3.mjs.map +1 -0
- package/dist/client/{_floatingIpId-Dzh6_JCI.mjs → _floatingIpId-DCQQpNO-.mjs} +4 -4
- package/dist/client/{_floatingIpId-Dzh6_JCI.mjs.map → _floatingIpId-DCQQpNO-.mjs.map} +1 -1
- package/dist/client/_imageId-CZYzBAVx.mjs +558 -0
- package/dist/client/_imageId-CZYzBAVx.mjs.map +1 -0
- package/dist/client/_pcaId-CHRRsWmO.mjs +605 -0
- package/dist/client/_pcaId-CHRRsWmO.mjs.map +1 -0
- package/dist/client/{_projectId-DNZsNxJw.mjs → _projectId-B8wWSxPu.mjs} +9 -9
- package/dist/client/_projectId-B8wWSxPu.mjs.map +1 -0
- package/dist/client/{_projectId-BuBIFdgG.mjs → _projectId-C5DUYIjt.mjs} +117 -117
- package/dist/client/{_projectId-BuBIFdgG.mjs.map → _projectId-C5DUYIjt.mjs.map} +1 -1
- package/dist/client/{_projectId-CAQkJHZ4.mjs → _projectId-D2pFfYIs.mjs} +3 -3
- package/dist/client/{_projectId-CAQkJHZ4.mjs.map → _projectId-D2pFfYIs.mjs.map} +1 -1
- package/dist/client/{_projectId-D-b7paXE.mjs → _projectId-DhSWowQo.mjs} +4 -4
- package/dist/client/{_projectId-D-b7paXE.mjs.map → _projectId-DhSWowQo.mjs.map} +1 -1
- package/dist/client/{_securityGroupId-DFdNKa2l.mjs → _securityGroupId-DZ4D4WwB.mjs} +635 -617
- package/dist/client/_securityGroupId-DZ4D4WwB.mjs.map +1 -0
- package/dist/client/{_securityGroupId-DRkY3Gt6.mjs → _securityGroupId-Mj8NJT2-.mjs} +4 -4
- package/dist/client/{_securityGroupId-DRkY3Gt6.mjs.map → _securityGroupId-Mj8NJT2-.mjs.map} +1 -1
- package/dist/client/_storageType-C-9bNkmZ.mjs +2211 -0
- package/dist/client/_storageType-C-9bNkmZ.mjs.map +1 -0
- package/dist/client/_storageType-zeSZe--V.mjs.map +1 -1
- package/dist/client/{about-C8tTrQaW.mjs → about-WLyShNgE.mjs} +8 -8
- package/dist/client/about-WLyShNgE.mjs.map +1 -0
- package/dist/client/assets/objectDownload.worker-BXFQIIU_.js.map +1 -0
- package/dist/client/assets/objectDownload.worker-ECvFtmOF.js.map +1 -0
- package/dist/client/{aurora-jyvXcI4T.mjs → aurora-IMO9HhqJ.mjs} +2 -2
- package/dist/client/aurora-IMO9HhqJ.mjs.map +1 -0
- package/dist/client/{build-CRLQyqu2.mjs → build-DnD-T35u.mjs} +8180 -8212
- package/dist/client/build-DnD-T35u.mjs.map +1 -0
- package/dist/client/components/Auth/LoginForm.d.ts +1 -1
- package/dist/client/components/Auth/SessionExpirationTimer.d.ts +1 -1
- package/dist/client/components/ContentHeader/ContentHeader.d.ts +1 -1
- package/dist/client/components/Error/RouteError.d.ts +1 -1
- package/dist/client/components/Error/StatusError.d.ts +1 -1
- package/dist/client/components/JsonEditor.d.ts +1 -1
- package/dist/client/components/ListToolbar/FiltersInput.d.ts +3 -1
- package/dist/client/components/ListToolbar/SelectedFilters.d.ts +1 -1
- package/dist/client/components/ListToolbar/index.d.ts +1 -1
- package/dist/client/components/ProjectView/ProjectInfoBox.d.ts +1 -1
- package/dist/client/components/Slot.d.ts +1 -1
- package/dist/client/components/TwoColumnDescriptionList.d.ts +11 -0
- package/dist/client/components/navigation/LanguageSelect.d.ts +1 -1
- package/dist/client/components/navigation/MainNavigation.d.ts +1 -1
- package/dist/client/components/navigation/UserMenu.d.ts +1 -1
- package/dist/client/{flavors-Dy-2mRGv.mjs → flavors-Cp0LEGOH.mjs} +2 -2
- package/dist/client/{flavors-Dy-2mRGv.mjs.map → flavors-Cp0LEGOH.mjs.map} +1 -1
- package/dist/client/{flavors-BfTXqmoD.mjs → flavors-CwMbDRHm2.mjs} +203 -201
- package/dist/client/flavors-CwMbDRHm2.mjs.map +1 -0
- package/dist/client/flavors-DWMZ6TuJ.mjs.map +1 -1
- package/dist/client/floatingips-ICwo-rV_.mjs +591 -0
- package/dist/client/floatingips-ICwo-rV_.mjs.map +1 -0
- package/dist/client/formatBytes-CZv_XyCY.mjs.map +1 -1
- package/dist/client/helpers-1PpYf-fC.mjs.map +1 -1
- package/dist/client/hooks/useAvailableViewportHeight.d.ts +33 -0
- package/dist/client/hooks/useVirtualizedTableBody.d.ts +37 -0
- package/dist/client/{hooks-Bw3sHHOg.mjs → hooks-CrriowRk.mjs} +2 -2
- package/dist/client/{hooks-Bw3sHHOg.mjs.map → hooks-CrriowRk.mjs.map} +1 -1
- package/dist/client/images-DOGZmr3D.mjs +1937 -0
- package/dist/client/images-DOGZmr3D.mjs.map +1 -0
- package/dist/client/{images-DPKUXryV.mjs → images-DWiM_72I.mjs} +2 -2
- package/dist/client/{images-DPKUXryV.mjs.map → images-DWiM_72I.mjs.map} +1 -1
- package/dist/client/images-NBf2bV43.mjs.map +1 -1
- package/dist/client/index.js +601 -445
- package/dist/client/index.js.map +1 -1
- package/dist/client/{md-CyCflQee.mjs → md-DNzcRhmz.mjs} +6 -60
- package/dist/client/{md-CyCflQee.mjs.map → md-DNzcRhmz.mjs.map} +1 -1
- package/dist/client/network-DuZm76BZ.mjs.map +1 -1
- package/dist/client/objects-D2MKUCxc.mjs +56 -0
- package/dist/client/objects-D2MKUCxc.mjs.map +1 -0
- package/dist/client/objects-DI1-tnKr.mjs +56 -0
- package/dist/client/objects-DI1-tnKr.mjs.map +1 -0
- package/dist/client/objects-DeK2WD5K.mjs +10078 -0
- package/dist/client/objects-DeK2WD5K.mjs.map +1 -0
- package/dist/client/pca-BokFv4Gz.mjs +239 -0
- package/dist/client/pca-BokFv4Gz.mjs.map +1 -0
- package/dist/client/{pca-D0kKxHp4.mjs → pca-D5jHAl0b.mjs} +4 -3
- package/dist/client/{pca-D0kKxHp4.mjs.map → pca-D5jHAl0b.mjs.map} +1 -1
- package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
- package/dist/client/routeInfo-CdTRlSxv.mjs.map +1 -1
- package/dist/client/{routes-CtfnI-aY.mjs → routes-B05u5bk4.mjs} +2 -2
- package/dist/client/{routes-CtfnI-aY.mjs.map → routes-B05u5bk4.mjs.map} +1 -1
- package/dist/client/{routes-BOf-GDMM.mjs → routes-DOJr5onJ.mjs} +31 -28
- package/dist/client/routes-DOJr5onJ.mjs.map +1 -0
- package/dist/client/{securitygroups-DRhFle2O.mjs → securitygroups-Be2Qgmew.mjs} +201 -195
- package/dist/client/securitygroups-Be2Qgmew.mjs.map +1 -0
- package/dist/client/{securitygroups-B8aLyFK7.mjs → securitygroups-_7SYN2jN.mjs} +2 -2
- package/dist/client/{securitygroups-B8aLyFK7.mjs.map → securitygroups-_7SYN2jN.mjs.map} +1 -1
- package/dist/client/store/AuthProvider.d.ts +1 -1
- package/dist/client/{trpcClient-Di56hpVv.mjs → trpcClient-D7gpR7YG.mjs} +2 -2
- package/dist/client/{trpcClient-Di56hpVv.mjs.map → trpcClient-D7gpR7YG.mjs.map} +1 -1
- package/dist/client/trpcClient.d.ts +125 -11
- package/dist/client/useModal-DCs1OJh7.mjs.map +1 -1
- package/dist/client/{useSecurityGroupPermissions-BPS1ibWq.mjs → useSecurityGroupPermissions-qPwm4mFt.mjs} +15 -15
- package/dist/client/{useSecurityGroupPermissions-BPS1ibWq.mjs.map → useSecurityGroupPermissions-qPwm4mFt.mjs.map} +1 -1
- package/dist/server/index.d.ts +125 -11
- package/dist/server/index.js +4142 -2845
- package/package.json +8 -8
- package/dist/client/AuthProvider-CQ6Yppoh.mjs.map +0 -1
- package/dist/client/BucketToastNotifications-BhPi4WWw.mjs +0 -613
- package/dist/client/BucketToastNotifications-BhPi4WWw.mjs.map +0 -1
- package/dist/client/ContentHeader-9KZdhOoA.mjs.map +0 -1
- package/dist/client/DeleteFlavorModal-Be2qZo4w.mjs +0 -713
- package/dist/client/DeleteFlavorModal-Be2qZo4w.mjs.map +0 -1
- package/dist/client/DeletePcaModal-CIFsGWyj.mjs +0 -80
- package/dist/client/DeletePcaModal-CIFsGWyj.mjs.map +0 -1
- package/dist/client/DetailsInfo-CHVD7d-W.mjs +0 -52
- package/dist/client/DetailsInfo-CHVD7d-W.mjs.map +0 -1
- package/dist/client/FiltersInput-DqT08Ib-.mjs +0 -81
- package/dist/client/FiltersInput-DqT08Ib-.mjs.map +0 -1
- package/dist/client/ImageToastNotifications-BGyX2J6j.mjs +0 -1219
- package/dist/client/ImageToastNotifications-BGyX2J6j.mjs.map +0 -1
- package/dist/client/_auth-D5_QNUos.mjs.map +0 -1
- package/dist/client/_flavorId-BsmqS9hP.mjs +0 -194
- package/dist/client/_flavorId-BsmqS9hP.mjs.map +0 -1
- package/dist/client/_floatingIpId-Bb9ZEJ6b.mjs +0 -228
- package/dist/client/_floatingIpId-Bb9ZEJ6b.mjs.map +0 -1
- package/dist/client/_imageId-C3As7sHE.mjs +0 -534
- package/dist/client/_imageId-C3As7sHE.mjs.map +0 -1
- package/dist/client/_pcaId-n0q0aDb6.mjs +0 -545
- package/dist/client/_pcaId-n0q0aDb6.mjs.map +0 -1
- package/dist/client/_projectId-DNZsNxJw.mjs.map +0 -1
- package/dist/client/_securityGroupId-DFdNKa2l.mjs.map +0 -1
- package/dist/client/_storageType-BKfQcpgp.mjs +0 -81
- package/dist/client/_storageType-BKfQcpgp.mjs.map +0 -1
- package/dist/client/_storageType-sMj9NEJz.mjs +0 -2870
- package/dist/client/_storageType-sMj9NEJz.mjs.map +0 -1
- package/dist/client/about-C8tTrQaW.mjs.map +0 -1
- package/dist/client/assets/objectDownload.worker-BAc5Au4B.js.map +0 -1
- package/dist/client/aurora-jyvXcI4T.mjs.map +0 -1
- package/dist/client/build-CRLQyqu2.mjs.map +0 -1
- package/dist/client/flavors-BfTXqmoD.mjs.map +0 -1
- package/dist/client/floatingips-zhNK6Xxn.mjs +0 -562
- package/dist/client/floatingips-zhNK6Xxn.mjs.map +0 -1
- package/dist/client/images-DhZnqUG_.mjs +0 -1890
- package/dist/client/images-DhZnqUG_.mjs.map +0 -1
- package/dist/client/objects-BG1saVLZ.mjs +0 -6648
- package/dist/client/objects-BG1saVLZ.mjs.map +0 -1
- package/dist/client/objects-Dahys529.mjs +0 -103
- package/dist/client/objects-Dahys529.mjs.map +0 -1
- package/dist/client/objects-o2Cj_ndZ.mjs +0 -8
- package/dist/client/objects-o2Cj_ndZ.mjs.map +0 -1
- package/dist/client/pca-B60iWWfG.mjs +0 -251
- package/dist/client/pca-B60iWWfG.mjs.map +0 -1
- package/dist/client/routes-BOf-GDMM.mjs.map +0 -1
- package/dist/client/securitygroups-DRhFle2O.mjs.map +0 -1
- package/dist/client/useListWithFiltering-aPTUNRaW.mjs +0 -32
- package/dist/client/useListWithFiltering-aPTUNRaW.mjs.map +0 -1
|
@@ -1,1219 +0,0 @@
|
|
|
1
|
-
import { B as e, E as t, G as n, H as r, I as i, K as a, P as o, R as s, U as c, c as l, dt as u, g as d, lt as f, m as p, o as m, r as h, tt as g, ut as _, y as v } from "./build-CRLQyqu2.mjs";
|
|
2
|
-
import { a as y } from "./trpcClient-Di56hpVv.mjs";
|
|
3
|
-
import { t as b } from "./useProjectId-DBc5lpoU.mjs";
|
|
4
|
-
import "./hooks-Bw3sHHOg.mjs";
|
|
5
|
-
import { n as x } from "./formatBytes-CZv_XyCY.mjs";
|
|
6
|
-
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
7
|
-
import { useEffect as T, useMemo as E, useState as D } from "react";
|
|
8
|
-
import { Trans as O, useLingui as k } from "@lingui/react";
|
|
9
|
-
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/SizeDisplay.tsx
|
|
10
|
-
function A({ size: e }) {
|
|
11
|
-
return e === void 0 ? /*#__PURE__*/ C("span", { children: "N/A" }) : /*#__PURE__*/ C("span", { children: x(e) });
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region src/client/routes/_auth/projects/$projectId/compute/-constants/filters.ts
|
|
15
|
-
var j = {
|
|
16
|
-
PENDING: "pending",
|
|
17
|
-
ACCEPTED: "accepted",
|
|
18
|
-
REJECTED: "rejected",
|
|
19
|
-
ALL: "all"
|
|
20
|
-
}, M = {
|
|
21
|
-
QUEUED: "queued",
|
|
22
|
-
SAVING: "saving",
|
|
23
|
-
ACTIVE: "active",
|
|
24
|
-
DEACTIVATED: "deactivated",
|
|
25
|
-
KILLED: "killed",
|
|
26
|
-
DELETED: "deleted",
|
|
27
|
-
PENDING_DELETE: "pending_delete"
|
|
28
|
-
}, N = {
|
|
29
|
-
PUBLIC: "public",
|
|
30
|
-
PRIVATE: "private",
|
|
31
|
-
SHARED: "shared",
|
|
32
|
-
COMMUNITY: "community",
|
|
33
|
-
ALL: "all"
|
|
34
|
-
}, P = {
|
|
35
|
-
AMI: "ami",
|
|
36
|
-
ARI: "ari",
|
|
37
|
-
AKI: "aki",
|
|
38
|
-
VHD: "vhd",
|
|
39
|
-
VHDX: "vhdx",
|
|
40
|
-
VMDK: "vmdk",
|
|
41
|
-
RAW: "raw",
|
|
42
|
-
QCOW2: "qcow2",
|
|
43
|
-
VDI: "vdi",
|
|
44
|
-
ISO: "iso",
|
|
45
|
-
PLOOP: "ploop"
|
|
46
|
-
}, F = {
|
|
47
|
-
AMI: "ami",
|
|
48
|
-
ARI: "ari",
|
|
49
|
-
AKI: "aki",
|
|
50
|
-
BARE: "bare",
|
|
51
|
-
OVF: "ovf",
|
|
52
|
-
OVA: "ova",
|
|
53
|
-
DOCKER: "docker"
|
|
54
|
-
}, I = ({ memberId: e, imageId: r, errors: i, isLoading: a, onMemberIdChange: o, onSave: s, onCancel: l }) => {
|
|
55
|
-
let { i18n: u, _: d } = k();
|
|
56
|
-
return /*#__PURE__*/ w(t, { children: [
|
|
57
|
-
/*#__PURE__*/ C(n, {
|
|
58
|
-
className: "break-all",
|
|
59
|
-
children: r
|
|
60
|
-
}),
|
|
61
|
-
/*#__PURE__*/ C(n, {
|
|
62
|
-
className: "pl-0",
|
|
63
|
-
children: /*#__PURE__*/ C(c, {
|
|
64
|
-
value: e,
|
|
65
|
-
onChange: (e) => o(e.target.value),
|
|
66
|
-
placeholder: u._({ id: "TpGxnq" }),
|
|
67
|
-
errortext: i.memberId,
|
|
68
|
-
required: !0
|
|
69
|
-
})
|
|
70
|
-
}),
|
|
71
|
-
/*#__PURE__*/ C(n, {}),
|
|
72
|
-
/*#__PURE__*/ C(n, { children: /*#__PURE__*/ w(_, { children: [/*#__PURE__*/ C(v, {
|
|
73
|
-
icon: "check",
|
|
74
|
-
onClick: s,
|
|
75
|
-
variant: "primary",
|
|
76
|
-
title: u._({ id: "3Qn0me" }),
|
|
77
|
-
disabled: a
|
|
78
|
-
}), /*#__PURE__*/ C(v, {
|
|
79
|
-
icon: "cancel",
|
|
80
|
-
onClick: l,
|
|
81
|
-
title: u._({ id: "dEgA5A" }),
|
|
82
|
-
disabled: a
|
|
83
|
-
})] }) })
|
|
84
|
-
] });
|
|
85
|
-
}, L = ({ member: e, isDeleting: r, onDelete: i, canDelete: o }) => {
|
|
86
|
-
let { i18n: s, _: c } = k(), [l, u] = D(!1);
|
|
87
|
-
T(() => {
|
|
88
|
-
if (l) {
|
|
89
|
-
let e = setTimeout(() => {
|
|
90
|
-
u(!1);
|
|
91
|
-
}, 3e3);
|
|
92
|
-
return () => clearTimeout(e);
|
|
93
|
-
}
|
|
94
|
-
}, [l]);
|
|
95
|
-
let d = () => {
|
|
96
|
-
u(!1), i();
|
|
97
|
-
};
|
|
98
|
-
return /*#__PURE__*/ w(t, { children: [
|
|
99
|
-
/*#__PURE__*/ C(n, {
|
|
100
|
-
className: "break-all",
|
|
101
|
-
children: e.image_id
|
|
102
|
-
}),
|
|
103
|
-
/*#__PURE__*/ C(n, {
|
|
104
|
-
className: "break-all",
|
|
105
|
-
children: e.member_id
|
|
106
|
-
}),
|
|
107
|
-
/*#__PURE__*/ C(n, {
|
|
108
|
-
className: `break-all text-theme-${((e) => {
|
|
109
|
-
switch (e) {
|
|
110
|
-
case j.PENDING: return "warning";
|
|
111
|
-
case j.ACCEPTED: return "success";
|
|
112
|
-
case j.REJECTED: return "danger";
|
|
113
|
-
default: return "default";
|
|
114
|
-
}
|
|
115
|
-
})(e.status)}`,
|
|
116
|
-
children: ((e) => {
|
|
117
|
-
switch (e) {
|
|
118
|
-
case j.PENDING: return s._({ id: "UbRKMZ" });
|
|
119
|
-
case j.ACCEPTED: return s._({ id: "bzMKg7" });
|
|
120
|
-
case j.REJECTED: return s._({ id: "ekCRTP" });
|
|
121
|
-
default: return e;
|
|
122
|
-
}
|
|
123
|
-
})(e.status)
|
|
124
|
-
}),
|
|
125
|
-
/*#__PURE__*/ C(n, { children: r ? /*#__PURE__*/ C(g, {
|
|
126
|
-
distribution: "center",
|
|
127
|
-
alignment: "center",
|
|
128
|
-
children: /*#__PURE__*/ C(a, { variant: "primary" })
|
|
129
|
-
}) : /*#__PURE__*/ C(g, {
|
|
130
|
-
distribution: "end",
|
|
131
|
-
alignment: "end",
|
|
132
|
-
children: (() => {
|
|
133
|
-
if (!o) return /*#__PURE__*/ C(S, {});
|
|
134
|
-
if (l) return /*#__PURE__*/ C(v, {
|
|
135
|
-
variant: "primary-danger",
|
|
136
|
-
onClick: d,
|
|
137
|
-
title: s._({ id: "n9jJG6" }),
|
|
138
|
-
"aria-label": s._({ id: "n9jJG6" }),
|
|
139
|
-
"data-testid": "confirm-removal",
|
|
140
|
-
disabled: r,
|
|
141
|
-
children: s._({ id: "t/YqKh" })
|
|
142
|
-
});
|
|
143
|
-
{
|
|
144
|
-
let t = e.member_id;
|
|
145
|
-
return /*#__PURE__*/ C(v, {
|
|
146
|
-
icon: "deleteForever",
|
|
147
|
-
onClick: () => u(!0),
|
|
148
|
-
title: s._({
|
|
149
|
-
id: "pebLmQ",
|
|
150
|
-
values: { memberIdDisplay: t }
|
|
151
|
-
}),
|
|
152
|
-
"aria-label": s._({
|
|
153
|
-
id: "pebLmQ",
|
|
154
|
-
values: { memberIdDisplay: t }
|
|
155
|
-
}),
|
|
156
|
-
"data-testid": `remove-${t}`,
|
|
157
|
-
disabled: r
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
})()
|
|
161
|
-
}) })
|
|
162
|
-
] });
|
|
163
|
-
};
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/ImageMembersTable.tsx
|
|
166
|
-
function R() {
|
|
167
|
-
return /*#__PURE__*/ C(t, { children: /*#__PURE__*/ C(n, {
|
|
168
|
-
colSpan: 4,
|
|
169
|
-
children: /*#__PURE__*/ C(g, {
|
|
170
|
-
distribution: "center",
|
|
171
|
-
alignment: "center",
|
|
172
|
-
children: /*#__PURE__*/ C(a, { variant: "primary" })
|
|
173
|
-
})
|
|
174
|
-
}) });
|
|
175
|
-
}
|
|
176
|
-
var z = ({ image: r, imageMembers: i, isMembersLoading: a, canAdd: c, canRemove: l, isAddingMember: u, setIsAddingMember: d, setMessage: f, projectId: p }) => {
|
|
177
|
-
let { i18n: m, _: h } = k(), _ = y.useUtils(), [b, x] = D(""), [T, E] = D({}), [O, A] = D(/* @__PURE__ */ new Set()), j = y.compute.createImageMember.useMutation({ onSuccess: () => {
|
|
178
|
-
_.compute.listImageMembers.invalidate({
|
|
179
|
-
project_id: p,
|
|
180
|
-
imageId: r.id
|
|
181
|
-
});
|
|
182
|
-
} }), M = y.compute.deleteImageMember.useMutation({ onSuccess: () => {
|
|
183
|
-
_.compute.listImageMembers.invalidate({
|
|
184
|
-
project_id: p,
|
|
185
|
-
imageId: r.id
|
|
186
|
-
});
|
|
187
|
-
} }), N = r.visibility === "public", P = !i || i.length === 0, F = j.isPending || M.isPending, z = () => {
|
|
188
|
-
let e = b.trim(), t = {};
|
|
189
|
-
return e ? i?.some((t) => t.member_id === e) && (t.memberId = m._({ id: "jyqLKs" })) : t.memberId = m._({ id: "S5CUKP" }), E(t), Object.keys(t).length === 0;
|
|
190
|
-
}, B = () => {
|
|
191
|
-
x(""), E({});
|
|
192
|
-
}, V = async () => {
|
|
193
|
-
if (!z()) {
|
|
194
|
-
f({
|
|
195
|
-
text: m._({ id: "CBFSfX" }),
|
|
196
|
-
type: "error"
|
|
197
|
-
});
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
let e = b.trim();
|
|
201
|
-
try {
|
|
202
|
-
await j.mutateAsync({
|
|
203
|
-
project_id: p,
|
|
204
|
-
imageId: r.id,
|
|
205
|
-
member: e
|
|
206
|
-
}), f({
|
|
207
|
-
text: m._({
|
|
208
|
-
id: "Sgz1vJ",
|
|
209
|
-
values: { trimmedMemberId: e }
|
|
210
|
-
}),
|
|
211
|
-
type: "info"
|
|
212
|
-
}), B(), d(!1);
|
|
213
|
-
} catch (e) {
|
|
214
|
-
f({
|
|
215
|
-
text: e?.message || m._({ id: "9doWrf" }),
|
|
216
|
-
type: "error"
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
}, H = async (e) => {
|
|
220
|
-
A((t) => new Set(t).add(e));
|
|
221
|
-
try {
|
|
222
|
-
await M.mutateAsync({
|
|
223
|
-
project_id: p,
|
|
224
|
-
imageId: r.id,
|
|
225
|
-
memberId: e
|
|
226
|
-
}), f({
|
|
227
|
-
text: m._({
|
|
228
|
-
id: "4O2AH3",
|
|
229
|
-
values: { memberIdToRemove: e }
|
|
230
|
-
}),
|
|
231
|
-
type: "info"
|
|
232
|
-
});
|
|
233
|
-
} catch (t) {
|
|
234
|
-
f({
|
|
235
|
-
text: t?.message || m._({ id: "n46oLW" }) || m._({
|
|
236
|
-
id: "7T1fHv",
|
|
237
|
-
values: { memberIdToRemove: e }
|
|
238
|
-
}),
|
|
239
|
-
type: "error"
|
|
240
|
-
});
|
|
241
|
-
} finally {
|
|
242
|
-
A((t) => {
|
|
243
|
-
let n = new Set(t);
|
|
244
|
-
return n.delete(e), n;
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
return a ? /*#__PURE__*/ w(o, {
|
|
249
|
-
columns: 4,
|
|
250
|
-
children: [/*#__PURE__*/ w(t, { children: [
|
|
251
|
-
/*#__PURE__*/ C(s, { children: m._({ id: "vrPCbw" }) }),
|
|
252
|
-
/*#__PURE__*/ C(s, { children: m._({ id: "mSfwLL" }) }),
|
|
253
|
-
/*#__PURE__*/ C(s, { children: m._({ id: "uAQUqI" }) }),
|
|
254
|
-
/*#__PURE__*/ C(s, {})
|
|
255
|
-
] }), /*#__PURE__*/ C(R, {})]
|
|
256
|
-
}) : N ? /*#__PURE__*/ C(e, {
|
|
257
|
-
text: m._({ id: "6H/Lg1" }),
|
|
258
|
-
variant: "info"
|
|
259
|
-
}) : /*#__PURE__*/ w(S, { children: [c && /*#__PURE__*/ C(g, {
|
|
260
|
-
direction: "horizontal",
|
|
261
|
-
className: "bg-theme-background-lvl-1 justify-end p-2",
|
|
262
|
-
children: /*#__PURE__*/ C(v, {
|
|
263
|
-
label: m._({ id: "VCM3KS" }),
|
|
264
|
-
"data-testid": "addMemberButton",
|
|
265
|
-
onClick: () => d(!0),
|
|
266
|
-
variant: "primary",
|
|
267
|
-
disabled: u
|
|
268
|
-
})
|
|
269
|
-
}), /*#__PURE__*/ w(o, {
|
|
270
|
-
columns: 4,
|
|
271
|
-
children: [
|
|
272
|
-
/*#__PURE__*/ w(t, { children: [
|
|
273
|
-
/*#__PURE__*/ C(s, { children: m._({ id: "vrPCbw" }) }),
|
|
274
|
-
/*#__PURE__*/ C(s, { children: m._({ id: "NRVSdy" }) }),
|
|
275
|
-
/*#__PURE__*/ C(s, { children: m._({ id: "uAQUqI" }) }),
|
|
276
|
-
/*#__PURE__*/ C(s, {})
|
|
277
|
-
] }),
|
|
278
|
-
u && /*#__PURE__*/ C(I, {
|
|
279
|
-
memberId: b,
|
|
280
|
-
imageId: r.id,
|
|
281
|
-
errors: T,
|
|
282
|
-
isLoading: F,
|
|
283
|
-
onMemberIdChange: (e) => {
|
|
284
|
-
x(e), T.memberId && E((e) => ({
|
|
285
|
-
...e,
|
|
286
|
-
memberId: void 0
|
|
287
|
-
}));
|
|
288
|
-
},
|
|
289
|
-
onSave: V,
|
|
290
|
-
onCancel: () => {
|
|
291
|
-
B(), d(!1), f(null);
|
|
292
|
-
}
|
|
293
|
-
}),
|
|
294
|
-
i?.map((e, t) => /*#__PURE__*/ C(L, {
|
|
295
|
-
member: e,
|
|
296
|
-
isDeleting: O.has(e.member_id),
|
|
297
|
-
onDelete: () => H(e.member_id),
|
|
298
|
-
canDelete: l
|
|
299
|
-
}, `${e.member_id}-${t}`)),
|
|
300
|
-
P && !u && /*#__PURE__*/ C(t, { children: /*#__PURE__*/ C(n, {
|
|
301
|
-
colSpan: 4,
|
|
302
|
-
className: "text-theme-default py-4 text-center",
|
|
303
|
-
children: m._({ id: "H7u085" })
|
|
304
|
-
}) })
|
|
305
|
-
]
|
|
306
|
-
})] });
|
|
307
|
-
}, B = ({ image: e, isOpen: t, isLoading: n = !1, onClose: o, onSave: s }) => {
|
|
308
|
-
let { i18n: d, _ } = k(), [y, b] = D({
|
|
309
|
-
name: e.name || "",
|
|
310
|
-
tags: e.tags || [],
|
|
311
|
-
visibility: e.visibility || N.PRIVATE,
|
|
312
|
-
protected: e.protected || !1,
|
|
313
|
-
min_disk: e.min_disk || 0,
|
|
314
|
-
min_ram: e.min_ram || 0
|
|
315
|
-
}), [x, S] = D(""), [T, E] = D({}), A = (e, t) => {
|
|
316
|
-
if (e.length !== t.length) return !1;
|
|
317
|
-
let n = [...e].sort(), r = [...t].sort();
|
|
318
|
-
return n.every((e, t) => e === r[t]);
|
|
319
|
-
}, j = e.name === y.name && A(e.tags || [], y.tags) && e.visibility === y.visibility && e.protected === y.protected && e.min_disk === y.min_disk && e.min_ram === y.min_ram, M = (e) => {
|
|
320
|
-
let { name: t, value: n, type: r, checked: i } = e.target;
|
|
321
|
-
b((e) => ({
|
|
322
|
-
...e,
|
|
323
|
-
[t]: r === "checkbox" ? i : n
|
|
324
|
-
})), T[t] && E((e) => {
|
|
325
|
-
let n = { ...e };
|
|
326
|
-
return delete n[t], n;
|
|
327
|
-
});
|
|
328
|
-
}, P = (e, t) => {
|
|
329
|
-
b((n) => ({
|
|
330
|
-
...n,
|
|
331
|
-
[e]: t
|
|
332
|
-
})), T[e] && E((t) => {
|
|
333
|
-
let n = { ...t };
|
|
334
|
-
return delete n[e], n;
|
|
335
|
-
});
|
|
336
|
-
}, F = (e, t) => {
|
|
337
|
-
let n = t === "" ? 0 : parseInt(t, 10);
|
|
338
|
-
isNaN(n) || (b((t) => ({
|
|
339
|
-
...t,
|
|
340
|
-
[e]: n
|
|
341
|
-
})), T[e] && E((t) => {
|
|
342
|
-
let n = { ...t };
|
|
343
|
-
return delete n[e], n;
|
|
344
|
-
}));
|
|
345
|
-
}, I = (e) => {
|
|
346
|
-
S(e.target.value);
|
|
347
|
-
}, L = () => {
|
|
348
|
-
let e = x.trim();
|
|
349
|
-
if (e !== "") {
|
|
350
|
-
if (y.tags.includes(e)) {
|
|
351
|
-
S("");
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
b((t) => ({
|
|
355
|
-
...t,
|
|
356
|
-
tags: [...t.tags, e]
|
|
357
|
-
})), S("");
|
|
358
|
-
}
|
|
359
|
-
}, R = (e) => {
|
|
360
|
-
e.key === "Enter" && (e.preventDefault(), L());
|
|
361
|
-
}, z = (e) => {
|
|
362
|
-
b((t) => ({
|
|
363
|
-
...t,
|
|
364
|
-
tags: t.tags.filter((t) => t !== e)
|
|
365
|
-
}));
|
|
366
|
-
}, B = () => {
|
|
367
|
-
let e = {};
|
|
368
|
-
return (!y.name || y.name.trim() === "") && (e.name = d._({ id: "wyIOMP" })), y.min_disk < 0 && (e.min_disk = d._({ id: "K3bUTE" })), y.min_ram < 0 && (e.min_ram = d._({ id: "PEGvy+" })), E(e), Object.keys(e).length === 0;
|
|
369
|
-
};
|
|
370
|
-
return /*#__PURE__*/ w(h, {
|
|
371
|
-
open: t,
|
|
372
|
-
onCancel: () => {
|
|
373
|
-
E({}), o();
|
|
374
|
-
},
|
|
375
|
-
size: "large",
|
|
376
|
-
title: d._({ id: "M5Epeo" }),
|
|
377
|
-
onConfirm: (t) => {
|
|
378
|
-
t.preventDefault(), B() && s({
|
|
379
|
-
...e.name === y.name.trim() ? {} : { name: y.name.trim() },
|
|
380
|
-
...A(e.tags || [], y.tags) ? {} : { tags: y.tags },
|
|
381
|
-
...e.visibility === y.visibility ? {} : { visibility: y.visibility },
|
|
382
|
-
...e.protected === y.protected ? {} : { protected: y.protected },
|
|
383
|
-
...e.min_disk === y.min_disk ? {} : { min_disk: y.min_disk },
|
|
384
|
-
...e.min_ram === y.min_ram ? {} : { min_ram: y.min_ram }
|
|
385
|
-
});
|
|
386
|
-
},
|
|
387
|
-
confirmButtonLabel: d._({ id: "IUwGEM" }),
|
|
388
|
-
cancelButtonLabel: d._({ id: "dEgA5A" }),
|
|
389
|
-
disableConfirmButton: n || j,
|
|
390
|
-
children: [n && /*#__PURE__*/ C(g, {
|
|
391
|
-
distribution: "center",
|
|
392
|
-
alignment: "center",
|
|
393
|
-
children: /*#__PURE__*/ C(a, { variant: "primary" })
|
|
394
|
-
}), !n && /*#__PURE__*/ w(m, { children: [/*#__PURE__*/ w(r, {
|
|
395
|
-
className: "mb-6",
|
|
396
|
-
children: [
|
|
397
|
-
/*#__PURE__*/ C(l, {
|
|
398
|
-
className: "mb-4",
|
|
399
|
-
children: /*#__PURE__*/ C(c, {
|
|
400
|
-
id: "name",
|
|
401
|
-
name: "name",
|
|
402
|
-
label: d._({ id: "ExLULX" }),
|
|
403
|
-
value: y.name,
|
|
404
|
-
onChange: M,
|
|
405
|
-
required: !0,
|
|
406
|
-
errortext: T.name
|
|
407
|
-
})
|
|
408
|
-
}),
|
|
409
|
-
/*#__PURE__*/ C(l, {
|
|
410
|
-
className: "my-6",
|
|
411
|
-
children: /*#__PURE__*/ w("div", {
|
|
412
|
-
className: "w-full",
|
|
413
|
-
children: [/*#__PURE__*/ w(g, {
|
|
414
|
-
gap: "2",
|
|
415
|
-
direction: "horizontal",
|
|
416
|
-
alignment: "start",
|
|
417
|
-
children: [/*#__PURE__*/ C("div", {
|
|
418
|
-
className: "flex-1",
|
|
419
|
-
children: /*#__PURE__*/ C(c, {
|
|
420
|
-
id: "tags",
|
|
421
|
-
name: "tags",
|
|
422
|
-
label: d._({ id: "OYHzN1" }),
|
|
423
|
-
value: x,
|
|
424
|
-
onChange: I,
|
|
425
|
-
onKeyDown: R,
|
|
426
|
-
helptext: d._({ id: "MOug+V" }),
|
|
427
|
-
placeholder: d._({ id: "y+KBOY" })
|
|
428
|
-
})
|
|
429
|
-
}), /*#__PURE__*/ C(v, {
|
|
430
|
-
variant: "primary",
|
|
431
|
-
onClick: L,
|
|
432
|
-
disabled: n || x.trim() === "",
|
|
433
|
-
children: /*#__PURE__*/ C(O, { id: "m16xKo" })
|
|
434
|
-
})]
|
|
435
|
-
}), y.tags.length > 0 && /*#__PURE__*/ C(g, {
|
|
436
|
-
gap: "2",
|
|
437
|
-
wrap: !0,
|
|
438
|
-
alignment: "center",
|
|
439
|
-
className: "mt-3",
|
|
440
|
-
children: y.tags.map((e) => /*#__PURE__*/ C(i, {
|
|
441
|
-
closeable: !0,
|
|
442
|
-
pillKey: "",
|
|
443
|
-
pillValue: e,
|
|
444
|
-
onClose: () => z(e)
|
|
445
|
-
}, e))
|
|
446
|
-
})]
|
|
447
|
-
})
|
|
448
|
-
}),
|
|
449
|
-
/*#__PURE__*/ C(l, {
|
|
450
|
-
className: "mb-4",
|
|
451
|
-
children: /*#__PURE__*/ w(u, {
|
|
452
|
-
id: "visibility",
|
|
453
|
-
name: "visibility",
|
|
454
|
-
label: d._({ id: "2q/Q7x" }),
|
|
455
|
-
value: y.visibility,
|
|
456
|
-
onChange: (e) => P("visibility", e),
|
|
457
|
-
children: [
|
|
458
|
-
/*#__PURE__*/ C(p, {
|
|
459
|
-
value: N.PUBLIC,
|
|
460
|
-
label: d._({ id: "7d1a0d" })
|
|
461
|
-
}),
|
|
462
|
-
/*#__PURE__*/ C(p, {
|
|
463
|
-
value: N.PRIVATE,
|
|
464
|
-
label: d._({ id: "zwBp5t" })
|
|
465
|
-
}),
|
|
466
|
-
/*#__PURE__*/ C(p, {
|
|
467
|
-
value: N.SHARED,
|
|
468
|
-
label: d._({ id: "0Gd0NU" })
|
|
469
|
-
}),
|
|
470
|
-
/*#__PURE__*/ C(p, {
|
|
471
|
-
value: N.COMMUNITY,
|
|
472
|
-
label: d._({ id: "chL5IG" })
|
|
473
|
-
})
|
|
474
|
-
]
|
|
475
|
-
})
|
|
476
|
-
}),
|
|
477
|
-
/*#__PURE__*/ C(l, { children: /*#__PURE__*/ C(f, {
|
|
478
|
-
id: "protected",
|
|
479
|
-
name: "protected",
|
|
480
|
-
label: d._({ id: "644xgx" }),
|
|
481
|
-
checked: y.protected,
|
|
482
|
-
onChange: M,
|
|
483
|
-
helptext: d._({ id: "lAsm87" })
|
|
484
|
-
}) })
|
|
485
|
-
]
|
|
486
|
-
}), /*#__PURE__*/ w(r, {
|
|
487
|
-
className: "mb-6",
|
|
488
|
-
children: [/*#__PURE__*/ C(l, {
|
|
489
|
-
className: "mb-4",
|
|
490
|
-
children: /*#__PURE__*/ C(c, {
|
|
491
|
-
id: "min_disk",
|
|
492
|
-
name: "min_disk",
|
|
493
|
-
label: d._({ id: "tbwGSx" }),
|
|
494
|
-
type: "number",
|
|
495
|
-
value: String(y.min_disk),
|
|
496
|
-
onChange: (e) => F("min_disk", e.target.value),
|
|
497
|
-
helptext: d._({ id: "RFDYCD" }),
|
|
498
|
-
errortext: T.min_disk
|
|
499
|
-
})
|
|
500
|
-
}), /*#__PURE__*/ C(l, { children: /*#__PURE__*/ C(c, {
|
|
501
|
-
id: "min_ram",
|
|
502
|
-
name: "min_ram",
|
|
503
|
-
label: d._({ id: "UYSopm" }),
|
|
504
|
-
type: "number",
|
|
505
|
-
value: String(y.min_ram),
|
|
506
|
-
onChange: (e) => F("min_ram", e.target.value),
|
|
507
|
-
helptext: d._({ id: "WErCZy" }),
|
|
508
|
-
errortext: T.min_ram
|
|
509
|
-
}) })]
|
|
510
|
-
})] })]
|
|
511
|
-
});
|
|
512
|
-
};
|
|
513
|
-
//#endregion
|
|
514
|
-
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/EditImageMetadataModal.tsx
|
|
515
|
-
function V(e) {
|
|
516
|
-
return e == null ? "" : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
517
|
-
}
|
|
518
|
-
function H(e, t) {
|
|
519
|
-
return Object.entries(e).filter(([e]) => !t.has(e.toLowerCase())).map(([e, t]) => {
|
|
520
|
-
let n = V(t);
|
|
521
|
-
return {
|
|
522
|
-
key: e,
|
|
523
|
-
value: n,
|
|
524
|
-
isNew: !1,
|
|
525
|
-
isEditing: !1,
|
|
526
|
-
originalKey: e,
|
|
527
|
-
originalValue: n
|
|
528
|
-
};
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
function U({ isLoading: e, onClose: r, onSave: i, initialMetadata: l, excludedProperties: u }) {
|
|
532
|
-
let { i18n: d, _: f } = k(), [p, m] = D(l), [_, y] = D({}), [b, x] = D(!1), [S, E] = D(""), [O, A] = D(""), [j, M] = D(null);
|
|
533
|
-
T(() => {
|
|
534
|
-
if (j !== null) {
|
|
535
|
-
let e = setTimeout(() => M(null), 3e3);
|
|
536
|
-
return () => clearTimeout(e);
|
|
537
|
-
}
|
|
538
|
-
}, [j]);
|
|
539
|
-
let N = p.every((e) => !e.isNew && e.key === e.originalKey && e.value === e.originalValue) && l.length === p.length, P = (e, t, n) => {
|
|
540
|
-
let r = e?.trim().toLowerCase();
|
|
541
|
-
return r ? u.has(r) ? d._({ id: "n3eQzA" }) : p.some((e, i) => e.key.trim().toLowerCase() === r && i !== n && e.originalKey !== t) ? d._({ id: "i6/ygf" }) : null : d._({ id: "QV1ZPO" });
|
|
542
|
-
}, F = () => {
|
|
543
|
-
let e = P(S, void 0, p.length);
|
|
544
|
-
if (e) {
|
|
545
|
-
y({ newKey: e });
|
|
546
|
-
return;
|
|
547
|
-
}
|
|
548
|
-
if (!O.trim()) {
|
|
549
|
-
y({ newValue: d._({ id: "hXUWyd" }) });
|
|
550
|
-
return;
|
|
551
|
-
}
|
|
552
|
-
m([...p, {
|
|
553
|
-
key: S.trim(),
|
|
554
|
-
value: O.trim(),
|
|
555
|
-
isNew: !0,
|
|
556
|
-
isEditing: !1
|
|
557
|
-
}]), E(""), A(""), x(!1), y({});
|
|
558
|
-
}, I = () => {
|
|
559
|
-
E(""), A(""), x(!1), y({});
|
|
560
|
-
}, L = (e) => {
|
|
561
|
-
M(null), m(p.map((t, n) => n === e ? {
|
|
562
|
-
...t,
|
|
563
|
-
isEditing: !0
|
|
564
|
-
} : {
|
|
565
|
-
...t,
|
|
566
|
-
isEditing: !1
|
|
567
|
-
})), x(!1);
|
|
568
|
-
}, R = (e) => {
|
|
569
|
-
let t = p[e], n = P(t.key, t.originalKey, e);
|
|
570
|
-
if (n) {
|
|
571
|
-
y({ [`edit-${e}`]: n });
|
|
572
|
-
return;
|
|
573
|
-
}
|
|
574
|
-
if (!t.value.trim()) {
|
|
575
|
-
y({ [`edit-${e}`]: d._({ id: "hXUWyd" }) });
|
|
576
|
-
return;
|
|
577
|
-
}
|
|
578
|
-
m(p.map((t, n) => n === e ? {
|
|
579
|
-
...t,
|
|
580
|
-
isEditing: !1,
|
|
581
|
-
key: t.key.trim(),
|
|
582
|
-
value: t.value.trim()
|
|
583
|
-
} : t)), y({});
|
|
584
|
-
}, z = (e) => {
|
|
585
|
-
m(p.map((t, n) => n === e ? {
|
|
586
|
-
...t,
|
|
587
|
-
isEditing: !1,
|
|
588
|
-
key: t.originalKey ?? t.key,
|
|
589
|
-
value: t.originalValue ?? t.value
|
|
590
|
-
} : t)), y({});
|
|
591
|
-
}, B = (e) => {
|
|
592
|
-
m(p.filter((t, n) => n !== e)), M(null), y({});
|
|
593
|
-
}, V = (e, t) => {
|
|
594
|
-
m(p.map((n, r) => r === e ? {
|
|
595
|
-
...n,
|
|
596
|
-
key: t
|
|
597
|
-
} : n)), _[`edit-${e}`] && y((t) => {
|
|
598
|
-
let n = { ...t };
|
|
599
|
-
return delete n[`edit-${e}`], n;
|
|
600
|
-
});
|
|
601
|
-
}, H = (e, t) => {
|
|
602
|
-
m(p.map((n, r) => r === e ? {
|
|
603
|
-
...n,
|
|
604
|
-
value: t
|
|
605
|
-
} : n)), _[`edit-${e}`] && y((t) => {
|
|
606
|
-
let n = { ...t };
|
|
607
|
-
return delete n[`edit-${e}`], n;
|
|
608
|
-
});
|
|
609
|
-
};
|
|
610
|
-
return /*#__PURE__*/ w(h, {
|
|
611
|
-
open: !0,
|
|
612
|
-
onCancel: () => {
|
|
613
|
-
m(l), x(!1), E(""), A(""), y({}), r();
|
|
614
|
-
},
|
|
615
|
-
size: "large",
|
|
616
|
-
title: d._({ id: "yTtJTy" }),
|
|
617
|
-
onConfirm: async () => {
|
|
618
|
-
let e = {}, t = Object.fromEntries(l.filter((e) => !p.map((e) => e.originalKey).includes(e.originalKey) || !p.map((e) => e.key).includes(e.key)).map((e) => [e.key, null]));
|
|
619
|
-
p.filter((e) => e.isNew || e.value !== e.originalValue || e.key !== e.originalKey).forEach((t) => {
|
|
620
|
-
e[t.key] = t.value;
|
|
621
|
-
}), await i({
|
|
622
|
-
...e,
|
|
623
|
-
...t
|
|
624
|
-
}) && r();
|
|
625
|
-
},
|
|
626
|
-
confirmButtonLabel: d._({ id: "IUwGEM" }),
|
|
627
|
-
cancelButtonLabel: d._({ id: "dEgA5A" }),
|
|
628
|
-
disableConfirmButton: e || b || p.some((e) => e.isEditing) || N,
|
|
629
|
-
children: [e && /*#__PURE__*/ C(g, {
|
|
630
|
-
distribution: "center",
|
|
631
|
-
alignment: "center",
|
|
632
|
-
children: /*#__PURE__*/ C(a, { variant: "primary" })
|
|
633
|
-
}), !e && /*#__PURE__*/ w("div", { children: [/*#__PURE__*/ C(g, {
|
|
634
|
-
direction: "horizontal",
|
|
635
|
-
className: "jn:bg-theme-background-lvl-1 mb-4 justify-end p-2",
|
|
636
|
-
children: /*#__PURE__*/ C(v, {
|
|
637
|
-
label: d._({ id: "sWBLli" }),
|
|
638
|
-
onClick: () => x(!0),
|
|
639
|
-
variant: "primary",
|
|
640
|
-
disabled: b || p.some((e) => e.isEditing),
|
|
641
|
-
icon: "addCircle"
|
|
642
|
-
})
|
|
643
|
-
}), /*#__PURE__*/ w(o, {
|
|
644
|
-
columns: 3,
|
|
645
|
-
minContentColumns: [2],
|
|
646
|
-
className: "mb-6",
|
|
647
|
-
children: [
|
|
648
|
-
/*#__PURE__*/ w(t, { children: [
|
|
649
|
-
/*#__PURE__*/ C(s, { children: d._({ id: "T8N6oi" }) }),
|
|
650
|
-
/*#__PURE__*/ C(s, { children: d._({ id: "wMHvYH" }) }),
|
|
651
|
-
/*#__PURE__*/ C(s, {})
|
|
652
|
-
] }),
|
|
653
|
-
b && /*#__PURE__*/ w(t, { children: [
|
|
654
|
-
/*#__PURE__*/ C(n, { children: /*#__PURE__*/ C(c, {
|
|
655
|
-
value: S,
|
|
656
|
-
onChange: (e) => {
|
|
657
|
-
E(e.target.value), _.newKey && y((e) => {
|
|
658
|
-
let t = { ...e };
|
|
659
|
-
return delete t.newKey, t;
|
|
660
|
-
});
|
|
661
|
-
},
|
|
662
|
-
placeholder: d._({ id: "x9AdZ8" }),
|
|
663
|
-
errortext: _.newKey,
|
|
664
|
-
autoFocus: !0
|
|
665
|
-
}) }),
|
|
666
|
-
/*#__PURE__*/ C(n, { children: /*#__PURE__*/ C(c, {
|
|
667
|
-
value: O,
|
|
668
|
-
onChange: (e) => {
|
|
669
|
-
A(e.target.value), _.newValue && y((e) => {
|
|
670
|
-
let t = { ...e };
|
|
671
|
-
return delete t.newValue, t;
|
|
672
|
-
});
|
|
673
|
-
},
|
|
674
|
-
placeholder: d._({ id: "wMHvYH" }),
|
|
675
|
-
errortext: _.newValue
|
|
676
|
-
}) }),
|
|
677
|
-
/*#__PURE__*/ C(n, { children: /*#__PURE__*/ w(g, {
|
|
678
|
-
direction: "horizontal",
|
|
679
|
-
gap: "2",
|
|
680
|
-
children: [/*#__PURE__*/ C(v, {
|
|
681
|
-
size: "small",
|
|
682
|
-
variant: "primary",
|
|
683
|
-
onClick: F,
|
|
684
|
-
icon: "check",
|
|
685
|
-
title: d._({ id: "tfDRzk" })
|
|
686
|
-
}), /*#__PURE__*/ C(v, {
|
|
687
|
-
size: "small",
|
|
688
|
-
variant: "subdued",
|
|
689
|
-
onClick: I,
|
|
690
|
-
icon: "close",
|
|
691
|
-
title: d._({ id: "bzSI52" })
|
|
692
|
-
})]
|
|
693
|
-
}) })
|
|
694
|
-
] }),
|
|
695
|
-
p.map((e, r) => /*#__PURE__*/ w(t, { children: [
|
|
696
|
-
/*#__PURE__*/ C(n, { children: e.isEditing ? /*#__PURE__*/ C(c, {
|
|
697
|
-
value: e.key,
|
|
698
|
-
onChange: (e) => V(r, e.target.value),
|
|
699
|
-
errortext: _[`edit-${r}`]
|
|
700
|
-
}) : /*#__PURE__*/ C("span", {
|
|
701
|
-
className: "jn:text-theme-high block max-w-xs truncate",
|
|
702
|
-
title: e.key,
|
|
703
|
-
children: e.key
|
|
704
|
-
}) }),
|
|
705
|
-
/*#__PURE__*/ C(n, { children: e.isEditing ? /*#__PURE__*/ C(c, {
|
|
706
|
-
value: e.value,
|
|
707
|
-
onChange: (e) => H(r, e.target.value)
|
|
708
|
-
}) : /*#__PURE__*/ C("span", {
|
|
709
|
-
className: "jn:text-theme-default block max-w-md truncate",
|
|
710
|
-
title: e.value,
|
|
711
|
-
children: e.value
|
|
712
|
-
}) }),
|
|
713
|
-
/*#__PURE__*/ C(n, { children: e.isEditing ? /*#__PURE__*/ w(g, {
|
|
714
|
-
direction: "horizontal",
|
|
715
|
-
gap: "2",
|
|
716
|
-
children: [/*#__PURE__*/ C(v, {
|
|
717
|
-
size: "small",
|
|
718
|
-
variant: "primary",
|
|
719
|
-
onClick: () => R(r),
|
|
720
|
-
icon: "check",
|
|
721
|
-
title: d._({ id: "tfDRzk" })
|
|
722
|
-
}), /*#__PURE__*/ C(v, {
|
|
723
|
-
size: "small",
|
|
724
|
-
variant: "subdued",
|
|
725
|
-
onClick: () => z(r),
|
|
726
|
-
icon: "close",
|
|
727
|
-
title: d._({ id: "bzSI52" })
|
|
728
|
-
})]
|
|
729
|
-
}) : /*#__PURE__*/ w(g, {
|
|
730
|
-
direction: "horizontal",
|
|
731
|
-
gap: "2",
|
|
732
|
-
children: [j !== r && /*#__PURE__*/ C(v, {
|
|
733
|
-
size: "small",
|
|
734
|
-
variant: "subdued",
|
|
735
|
-
onClick: () => L(r),
|
|
736
|
-
icon: "edit",
|
|
737
|
-
"data-testid": `edit-${e.key}`,
|
|
738
|
-
title: d._({ id: "ePK91l" }),
|
|
739
|
-
disabled: b || p.some((e) => e.isEditing)
|
|
740
|
-
}), j === r ? /*#__PURE__*/ C(v, {
|
|
741
|
-
size: "small",
|
|
742
|
-
variant: "primary-danger",
|
|
743
|
-
onClick: () => B(r),
|
|
744
|
-
"data-testid": `confirm-delete-${e.key}`,
|
|
745
|
-
title: d._({ id: "cnGeoo" }),
|
|
746
|
-
disabled: b || p.some((e) => e.isEditing),
|
|
747
|
-
children: d._({ id: "cnGeoo" })
|
|
748
|
-
}) : /*#__PURE__*/ C(v, {
|
|
749
|
-
size: "small",
|
|
750
|
-
onClick: () => M(r),
|
|
751
|
-
icon: "deleteForever",
|
|
752
|
-
"data-testid": `delete-${e.key}`,
|
|
753
|
-
title: d._({ id: "cnGeoo" }),
|
|
754
|
-
disabled: b || p.some((e) => e.isEditing)
|
|
755
|
-
})]
|
|
756
|
-
}) })
|
|
757
|
-
] }, `${e.originalKey}-${r}`)),
|
|
758
|
-
p.length === 0 && !b && /*#__PURE__*/ C(t, { children: /*#__PURE__*/ C(n, {
|
|
759
|
-
colSpan: 3,
|
|
760
|
-
className: "jn:text-theme-light py-8 text-center",
|
|
761
|
-
children: /*#__PURE__*/ C(g, {
|
|
762
|
-
alignment: "center",
|
|
763
|
-
children: /*#__PURE__*/ C("span", { children: d._({ id: "t1POAD" }) })
|
|
764
|
-
})
|
|
765
|
-
}) })
|
|
766
|
-
]
|
|
767
|
-
})] })]
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
var W = ({ image: e, isOpen: t, isLoading: n = !1, onClose: r, onSave: i }) => {
|
|
771
|
-
let { i18n: o, _: s } = k(), c = b(), { data: l, isLoading: u, isError: d } = y.compute.getImageMetadataExcludedProperties.useQuery({ project_id: c }, { enabled: t }), f = E(() => new Set((l ?? []).map((e) => e.toLowerCase())), [l]), p = E(() => H(e, f), [
|
|
772
|
-
e.id,
|
|
773
|
-
e.updated_at,
|
|
774
|
-
f
|
|
775
|
-
]);
|
|
776
|
-
return t ? u ? /*#__PURE__*/ C(h, {
|
|
777
|
-
open: !0,
|
|
778
|
-
onCancel: r,
|
|
779
|
-
size: "large",
|
|
780
|
-
title: o._({ id: "yTtJTy" }),
|
|
781
|
-
children: /*#__PURE__*/ C(g, {
|
|
782
|
-
distribution: "center",
|
|
783
|
-
alignment: "center",
|
|
784
|
-
children: /*#__PURE__*/ C(a, { variant: "primary" })
|
|
785
|
-
})
|
|
786
|
-
}) : d ? /*#__PURE__*/ C(h, {
|
|
787
|
-
open: !0,
|
|
788
|
-
onCancel: r,
|
|
789
|
-
size: "large",
|
|
790
|
-
title: o._({ id: "yTtJTy" }),
|
|
791
|
-
children: /*#__PURE__*/ C(g, {
|
|
792
|
-
distribution: "center",
|
|
793
|
-
alignment: "center",
|
|
794
|
-
children: /*#__PURE__*/ C("span", { children: o._({ id: "PYQUjU" }) })
|
|
795
|
-
})
|
|
796
|
-
}) : /*#__PURE__*/ C(U, {
|
|
797
|
-
isLoading: n,
|
|
798
|
-
onClose: r,
|
|
799
|
-
onSave: i,
|
|
800
|
-
initialMetadata: p,
|
|
801
|
-
excludedProperties: f
|
|
802
|
-
}, `${e.id}-${e.updated_at}-${f.size}`) : null;
|
|
803
|
-
}, G = ({ image: r, isOpen: i, isLoading: c, isDisabled: l, onClose: u, onDelete: f }) => {
|
|
804
|
-
if (!r) return null;
|
|
805
|
-
let { i18n: p, _: m } = k(), y = (e) => {
|
|
806
|
-
e.preventDefault(), f(r);
|
|
807
|
-
};
|
|
808
|
-
return /*#__PURE__*/ w(h, {
|
|
809
|
-
onCancel: u,
|
|
810
|
-
size: "small",
|
|
811
|
-
title: "Delete Image",
|
|
812
|
-
open: i,
|
|
813
|
-
modalFooter: /*#__PURE__*/ C(d, {
|
|
814
|
-
className: "flex justify-end",
|
|
815
|
-
children: /*#__PURE__*/ w(_, { children: [/*#__PURE__*/ C(v, {
|
|
816
|
-
variant: "default",
|
|
817
|
-
onClick: u,
|
|
818
|
-
children: /*#__PURE__*/ C(O, { id: "dEgA5A" })
|
|
819
|
-
}), /*#__PURE__*/ C(v, {
|
|
820
|
-
variant: "primary-danger",
|
|
821
|
-
onClick: (e) => {
|
|
822
|
-
y(e), u();
|
|
823
|
-
},
|
|
824
|
-
disabled: c || l,
|
|
825
|
-
"data-testid": "delete-image-button",
|
|
826
|
-
children: c ? /*#__PURE__*/ C(a, { size: "small" }) : /*#__PURE__*/ C(O, { id: "cnGeoo" })
|
|
827
|
-
})] })
|
|
828
|
-
}),
|
|
829
|
-
children: [c && /*#__PURE__*/ C(g, {
|
|
830
|
-
distribution: "center",
|
|
831
|
-
alignment: "center",
|
|
832
|
-
children: /*#__PURE__*/ C(a, { variant: "primary" })
|
|
833
|
-
}), !c && /*#__PURE__*/ w("div", { children: [/*#__PURE__*/ C(e, {
|
|
834
|
-
text: p._({ id: "2zceEg" }),
|
|
835
|
-
variant: "danger",
|
|
836
|
-
className: "mb-4"
|
|
837
|
-
}), r && /*#__PURE__*/ w(o, {
|
|
838
|
-
columns: 2,
|
|
839
|
-
children: [
|
|
840
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: p._({ id: "6YtxFj" }) }), /*#__PURE__*/ C(n, { children: r.name || p._({ id: "MEIAzV" }) })] }),
|
|
841
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: p._({ id: "dFb5Nt" }) }), /*#__PURE__*/ C(n, { children: r.id })] }),
|
|
842
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: p._({ id: "uAQUqI" }) }), /*#__PURE__*/ C(n, { children: r.status })] }),
|
|
843
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: p._({ id: "2q/Q7x" }) }), /*#__PURE__*/ C(n, { children: r.visibility })] }),
|
|
844
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: p._({ id: "Cj2Gtd" }) }), /*#__PURE__*/ C(n, { children: /*#__PURE__*/ C(A, { size: r.size }) })] }),
|
|
845
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: p._({ id: "NopYGU" }) }), /*#__PURE__*/ C(n, { children: r.disk_format || p._({ id: "fj5byd" }) })] }),
|
|
846
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: p._({ id: "d+F6q9" }) }), /*#__PURE__*/ C(n, { children: r.created_at ? new Date(r.created_at).toLocaleDateString() : p._({ id: "fj5byd" }) })] })
|
|
847
|
-
]
|
|
848
|
-
})] })]
|
|
849
|
-
});
|
|
850
|
-
}, K = ({ image: e, isOpen: r, isLoading: i, onClose: c, onActivate: l }) => {
|
|
851
|
-
if (!e) return null;
|
|
852
|
-
let { i18n: u, _: d } = k();
|
|
853
|
-
return /*#__PURE__*/ w(h, {
|
|
854
|
-
onCancel: c,
|
|
855
|
-
size: "small",
|
|
856
|
-
title: u._({ id: "RSFkXF" }),
|
|
857
|
-
open: r,
|
|
858
|
-
onConfirm: (t) => {
|
|
859
|
-
t.preventDefault(), l(e);
|
|
860
|
-
},
|
|
861
|
-
confirmButtonLabel: u._({ id: "FQBaXG" }),
|
|
862
|
-
cancelButtonLabel: u._({ id: "dEgA5A" }),
|
|
863
|
-
disableConfirmButton: i,
|
|
864
|
-
children: [i && /*#__PURE__*/ C(g, {
|
|
865
|
-
distribution: "center",
|
|
866
|
-
alignment: "center",
|
|
867
|
-
children: /*#__PURE__*/ C(a, { variant: "primary" })
|
|
868
|
-
}), !i && /*#__PURE__*/ w("div", { children: [/*#__PURE__*/ C("p", {
|
|
869
|
-
className: "mb-6",
|
|
870
|
-
children: /*#__PURE__*/ C(O, { id: "+NwLgN" })
|
|
871
|
-
}), /*#__PURE__*/ w(o, {
|
|
872
|
-
columns: 2,
|
|
873
|
-
children: [
|
|
874
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "6YtxFj" }) }), /*#__PURE__*/ C(n, { children: e.name || u._({ id: "MEIAzV" }) })] }),
|
|
875
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "dFb5Nt" }) }), /*#__PURE__*/ C(n, { children: e.id })] }),
|
|
876
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "uAQUqI" }) }), /*#__PURE__*/ C(n, { children: e.status })] }),
|
|
877
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "2q/Q7x" }) }), /*#__PURE__*/ C(n, { children: e.visibility })] }),
|
|
878
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "Cj2Gtd" }) }), /*#__PURE__*/ C(n, { children: /*#__PURE__*/ C(A, { size: e.size }) })] }),
|
|
879
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "NopYGU" }) }), /*#__PURE__*/ C(n, { children: e.disk_format || u._({ id: "fj5byd" }) })] }),
|
|
880
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "d+F6q9" }) }), /*#__PURE__*/ C(n, { children: (() => {
|
|
881
|
-
let t = new Date(e.created_at ?? "");
|
|
882
|
-
return isNaN(t.getTime()) ? u._({ id: "fj5byd" }) : t.toLocaleDateString();
|
|
883
|
-
})() })] })
|
|
884
|
-
]
|
|
885
|
-
})] })]
|
|
886
|
-
});
|
|
887
|
-
}, q = ({ image: e, isOpen: r, isLoading: i, onClose: c, onDeactivate: l }) => {
|
|
888
|
-
if (!e) return null;
|
|
889
|
-
let { i18n: u, _: d } = k();
|
|
890
|
-
return /*#__PURE__*/ w(h, {
|
|
891
|
-
onCancel: c,
|
|
892
|
-
size: "small",
|
|
893
|
-
title: u._({ id: "hQr1Cr" }),
|
|
894
|
-
open: r,
|
|
895
|
-
onConfirm: (t) => {
|
|
896
|
-
t.preventDefault(), l(e);
|
|
897
|
-
},
|
|
898
|
-
confirmButtonLabel: u._({ id: "5y3O+A" }),
|
|
899
|
-
cancelButtonLabel: u._({ id: "dEgA5A" }),
|
|
900
|
-
disableConfirmButton: i,
|
|
901
|
-
children: [i && /*#__PURE__*/ C(g, {
|
|
902
|
-
distribution: "center",
|
|
903
|
-
alignment: "center",
|
|
904
|
-
children: /*#__PURE__*/ C(a, { variant: "primary" })
|
|
905
|
-
}), !i && /*#__PURE__*/ w("div", { children: [/*#__PURE__*/ C("p", {
|
|
906
|
-
className: "mb-6",
|
|
907
|
-
children: /*#__PURE__*/ C(O, { id: "8TSI9h" })
|
|
908
|
-
}), /*#__PURE__*/ w(o, {
|
|
909
|
-
columns: 2,
|
|
910
|
-
children: [
|
|
911
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "6YtxFj" }) }), /*#__PURE__*/ C(n, { children: e.name || u._({ id: "MEIAzV" }) })] }),
|
|
912
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "dFb5Nt" }) }), /*#__PURE__*/ C(n, { children: e.id })] }),
|
|
913
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "uAQUqI" }) }), /*#__PURE__*/ C(n, { children: e.status })] }),
|
|
914
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "2q/Q7x" }) }), /*#__PURE__*/ C(n, { children: e.visibility })] }),
|
|
915
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "Cj2Gtd" }) }), /*#__PURE__*/ C(n, { children: /*#__PURE__*/ C(A, { size: e.size }) })] }),
|
|
916
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "NopYGU" }) }), /*#__PURE__*/ C(n, { children: e.disk_format || u._({ id: "fj5byd" }) })] }),
|
|
917
|
-
/*#__PURE__*/ w(t, { children: [/*#__PURE__*/ C(s, { children: u._({ id: "d+F6q9" }) }), /*#__PURE__*/ C(n, { children: (() => {
|
|
918
|
-
let t = new Date(e.created_at ?? "");
|
|
919
|
-
return isNaN(t.getTime()) ? u._({ id: "fj5byd" }) : t.toLocaleDateString();
|
|
920
|
-
})() })] })
|
|
921
|
-
]
|
|
922
|
-
})] })]
|
|
923
|
-
});
|
|
924
|
-
};
|
|
925
|
-
//#endregion
|
|
926
|
-
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/NotificationText.tsx
|
|
927
|
-
function J({ title: e, description: t }) {
|
|
928
|
-
return /*#__PURE__*/ w(g, {
|
|
929
|
-
direction: "vertical",
|
|
930
|
-
gap: "1.5",
|
|
931
|
-
children: [/*#__PURE__*/ C("span", { children: e }), /*#__PURE__*/ C("span", {
|
|
932
|
-
className: "text-theme-light",
|
|
933
|
-
children: t
|
|
934
|
-
})]
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
//#endregion
|
|
938
|
-
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/ImageToastNotifications.tsx
|
|
939
|
-
var Y = (e, t) => ({
|
|
940
|
-
variant: "success",
|
|
941
|
-
children: /*#__PURE__*/ C(J, {
|
|
942
|
-
title: /*#__PURE__*/ C(O, { id: "bM1O3m" }),
|
|
943
|
-
description: /*#__PURE__*/ C(O, {
|
|
944
|
-
id: "hHL/wm",
|
|
945
|
-
values: { imageName: e }
|
|
946
|
-
})
|
|
947
|
-
}),
|
|
948
|
-
onDismiss: t.onDismiss
|
|
949
|
-
}), X = (e, t, n) => ({
|
|
950
|
-
variant: "error",
|
|
951
|
-
children: /*#__PURE__*/ C(J, {
|
|
952
|
-
title: /*#__PURE__*/ C(O, { id: "9iz2XW" }),
|
|
953
|
-
description: /*#__PURE__*/ w(S, { children: [/*#__PURE__*/ C(O, {
|
|
954
|
-
id: "9SX0bO",
|
|
955
|
-
values: { imageName: e }
|
|
956
|
-
}), t] })
|
|
957
|
-
}),
|
|
958
|
-
onDismiss: n.onDismiss
|
|
959
|
-
}), Z = (e, t) => ({
|
|
960
|
-
variant: "success",
|
|
961
|
-
children: /*#__PURE__*/ C(J, {
|
|
962
|
-
title: /*#__PURE__*/ C(O, { id: "bM1O3m" }),
|
|
963
|
-
description: /*#__PURE__*/ C(O, {
|
|
964
|
-
id: "8AriEH",
|
|
965
|
-
values: { imageName: e }
|
|
966
|
-
})
|
|
967
|
-
}),
|
|
968
|
-
onDismiss: t.onDismiss
|
|
969
|
-
}), Q = (e, t, n) => ({
|
|
970
|
-
variant: "error",
|
|
971
|
-
children: /*#__PURE__*/ C(J, {
|
|
972
|
-
title: /*#__PURE__*/ C(O, { id: "lWTy+Y" }),
|
|
973
|
-
description: /*#__PURE__*/ w(S, { children: [/*#__PURE__*/ C(O, {
|
|
974
|
-
id: "jhU93c",
|
|
975
|
-
values: { imageName: e }
|
|
976
|
-
}), t] })
|
|
977
|
-
}),
|
|
978
|
-
onDismiss: n.onDismiss
|
|
979
|
-
}), $ = (e, t, n) => ({
|
|
980
|
-
variant: "error",
|
|
981
|
-
children: /*#__PURE__*/ C(J, {
|
|
982
|
-
title: /*#__PURE__*/ C(O, { id: "AGXLLY" }),
|
|
983
|
-
description: /*#__PURE__*/ w(S, { children: [/*#__PURE__*/ C(O, {
|
|
984
|
-
id: "bRgFkJ",
|
|
985
|
-
values: { fileName: e }
|
|
986
|
-
}), t] })
|
|
987
|
-
}),
|
|
988
|
-
onDismiss: n.onDismiss
|
|
989
|
-
}), ee = (e, t) => ({
|
|
990
|
-
variant: "success",
|
|
991
|
-
children: /*#__PURE__*/ C(J, {
|
|
992
|
-
title: /*#__PURE__*/ C(O, { id: "bM1O3m" }),
|
|
993
|
-
description: /*#__PURE__*/ C(O, {
|
|
994
|
-
id: "S1iTXO",
|
|
995
|
-
values: { imageName: e }
|
|
996
|
-
})
|
|
997
|
-
}),
|
|
998
|
-
onDismiss: t.onDismiss
|
|
999
|
-
}), te = (e, t, n) => ({
|
|
1000
|
-
variant: "error",
|
|
1001
|
-
children: /*#__PURE__*/ C(J, {
|
|
1002
|
-
title: /*#__PURE__*/ C(O, { id: "o/VDOG" }),
|
|
1003
|
-
description: /*#__PURE__*/ C(O, {
|
|
1004
|
-
id: "c1uL4p",
|
|
1005
|
-
values: {
|
|
1006
|
-
imageId: e,
|
|
1007
|
-
message: t
|
|
1008
|
-
}
|
|
1009
|
-
})
|
|
1010
|
-
}),
|
|
1011
|
-
onDismiss: n.onDismiss
|
|
1012
|
-
}), ne = (e, t) => ({
|
|
1013
|
-
variant: "success",
|
|
1014
|
-
children: /*#__PURE__*/ C(J, {
|
|
1015
|
-
title: /*#__PURE__*/ C(O, { id: "bM1O3m" }),
|
|
1016
|
-
description: /*#__PURE__*/ C(O, {
|
|
1017
|
-
id: "cj17eo",
|
|
1018
|
-
values: { imageName: e }
|
|
1019
|
-
})
|
|
1020
|
-
}),
|
|
1021
|
-
onDismiss: t.onDismiss
|
|
1022
|
-
}), re = (e, t) => ({
|
|
1023
|
-
variant: "success",
|
|
1024
|
-
children: /*#__PURE__*/ C(J, {
|
|
1025
|
-
title: /*#__PURE__*/ C(O, { id: "bM1O3m" }),
|
|
1026
|
-
description: /*#__PURE__*/ C(O, {
|
|
1027
|
-
id: "ZcWMT1",
|
|
1028
|
-
values: { imageName: e }
|
|
1029
|
-
})
|
|
1030
|
-
}),
|
|
1031
|
-
onDismiss: t.onDismiss
|
|
1032
|
-
}), ie = (e, t, n) => ({
|
|
1033
|
-
variant: "error",
|
|
1034
|
-
children: /*#__PURE__*/ C(J, {
|
|
1035
|
-
title: /*#__PURE__*/ C(O, { id: "tiflqy" }),
|
|
1036
|
-
description: /*#__PURE__*/ C(O, {
|
|
1037
|
-
id: "9dsDHD",
|
|
1038
|
-
values: {
|
|
1039
|
-
imageId: e,
|
|
1040
|
-
message: t
|
|
1041
|
-
}
|
|
1042
|
-
})
|
|
1043
|
-
}),
|
|
1044
|
-
onDismiss: n.onDismiss
|
|
1045
|
-
}), ae = (e, t, n) => ({
|
|
1046
|
-
variant: "error",
|
|
1047
|
-
children: /*#__PURE__*/ C(J, {
|
|
1048
|
-
title: /*#__PURE__*/ C(O, { id: "BYH/2L" }),
|
|
1049
|
-
description: /*#__PURE__*/ C(O, {
|
|
1050
|
-
id: "S63NbU",
|
|
1051
|
-
values: {
|
|
1052
|
-
imageId: e,
|
|
1053
|
-
message: t
|
|
1054
|
-
}
|
|
1055
|
-
})
|
|
1056
|
-
}),
|
|
1057
|
-
onDismiss: n.onDismiss
|
|
1058
|
-
}), oe = (e, t, n) => ({
|
|
1059
|
-
variant: "success",
|
|
1060
|
-
children: /*#__PURE__*/ C(J, {
|
|
1061
|
-
title: /*#__PURE__*/ C(O, { id: "CFMxC8" }),
|
|
1062
|
-
description: /*#__PURE__*/ C(O, {
|
|
1063
|
-
id: "T7mgdd",
|
|
1064
|
-
values: {
|
|
1065
|
-
successCount: e,
|
|
1066
|
-
totalCount: t
|
|
1067
|
-
}
|
|
1068
|
-
})
|
|
1069
|
-
}),
|
|
1070
|
-
onDismiss: n.onDismiss
|
|
1071
|
-
}), se = (e, t, n) => ({
|
|
1072
|
-
variant: "error",
|
|
1073
|
-
children: /*#__PURE__*/ C(J, {
|
|
1074
|
-
title: /*#__PURE__*/ C(O, { id: "fIvd7X" }),
|
|
1075
|
-
description: /*#__PURE__*/ C(O, {
|
|
1076
|
-
id: "xNZKYy",
|
|
1077
|
-
values: {
|
|
1078
|
-
failedCount: e,
|
|
1079
|
-
totalCount: t
|
|
1080
|
-
}
|
|
1081
|
-
})
|
|
1082
|
-
}),
|
|
1083
|
-
onDismiss: n.onDismiss
|
|
1084
|
-
}), ce = (e, t, n) => ({
|
|
1085
|
-
variant: "warning",
|
|
1086
|
-
children: /*#__PURE__*/ C(J, {
|
|
1087
|
-
title: /*#__PURE__*/ C(O, { id: "Z5r9vC" }),
|
|
1088
|
-
description: /*#__PURE__*/ C(O, {
|
|
1089
|
-
id: "plnnns",
|
|
1090
|
-
values: {
|
|
1091
|
-
successCount: e,
|
|
1092
|
-
failedCount: t
|
|
1093
|
-
}
|
|
1094
|
-
})
|
|
1095
|
-
}),
|
|
1096
|
-
onDismiss: n.onDismiss
|
|
1097
|
-
}), le = (e, t, n) => ({
|
|
1098
|
-
variant: "success",
|
|
1099
|
-
children: /*#__PURE__*/ C(J, {
|
|
1100
|
-
title: /*#__PURE__*/ C(O, { id: "ryf/ee" }),
|
|
1101
|
-
description: /*#__PURE__*/ C(O, {
|
|
1102
|
-
id: "J9QcnV",
|
|
1103
|
-
values: {
|
|
1104
|
-
successCount: e,
|
|
1105
|
-
totalCount: t
|
|
1106
|
-
}
|
|
1107
|
-
})
|
|
1108
|
-
}),
|
|
1109
|
-
onDismiss: n.onDismiss
|
|
1110
|
-
}), ue = (e, t, n) => ({
|
|
1111
|
-
variant: "error",
|
|
1112
|
-
children: /*#__PURE__*/ C(J, {
|
|
1113
|
-
title: /*#__PURE__*/ C(O, { id: "9njIiV" }),
|
|
1114
|
-
description: /*#__PURE__*/ C(O, {
|
|
1115
|
-
id: "R6u5CR",
|
|
1116
|
-
values: {
|
|
1117
|
-
failedCount: e,
|
|
1118
|
-
totalCount: t
|
|
1119
|
-
}
|
|
1120
|
-
})
|
|
1121
|
-
}),
|
|
1122
|
-
onDismiss: n.onDismiss
|
|
1123
|
-
}), de = (e, t, n) => ({
|
|
1124
|
-
variant: "warning",
|
|
1125
|
-
children: /*#__PURE__*/ C(J, {
|
|
1126
|
-
title: /*#__PURE__*/ C(O, { id: "YZmsaT" }),
|
|
1127
|
-
description: /*#__PURE__*/ C(O, {
|
|
1128
|
-
id: "GbKqnI",
|
|
1129
|
-
values: {
|
|
1130
|
-
successCount: e,
|
|
1131
|
-
failedCount: t
|
|
1132
|
-
}
|
|
1133
|
-
})
|
|
1134
|
-
}),
|
|
1135
|
-
onDismiss: n.onDismiss
|
|
1136
|
-
}), fe = (e, t, n) => ({
|
|
1137
|
-
variant: "success",
|
|
1138
|
-
children: /*#__PURE__*/ C(J, {
|
|
1139
|
-
title: /*#__PURE__*/ C(O, { id: "h8h6oz" }),
|
|
1140
|
-
description: /*#__PURE__*/ C(O, {
|
|
1141
|
-
id: "ZAy0zp",
|
|
1142
|
-
values: {
|
|
1143
|
-
successCount: e,
|
|
1144
|
-
totalCount: t
|
|
1145
|
-
}
|
|
1146
|
-
})
|
|
1147
|
-
}),
|
|
1148
|
-
onDismiss: n.onDismiss
|
|
1149
|
-
}), pe = (e, t, n) => ({
|
|
1150
|
-
variant: "error",
|
|
1151
|
-
children: /*#__PURE__*/ C(J, {
|
|
1152
|
-
title: /*#__PURE__*/ C(O, { id: "fJpv9x" }),
|
|
1153
|
-
description: /*#__PURE__*/ C(O, {
|
|
1154
|
-
id: "quU9wK",
|
|
1155
|
-
values: {
|
|
1156
|
-
failedCount: e,
|
|
1157
|
-
totalCount: t
|
|
1158
|
-
}
|
|
1159
|
-
})
|
|
1160
|
-
}),
|
|
1161
|
-
onDismiss: n.onDismiss
|
|
1162
|
-
}), me = (e, t, n) => ({
|
|
1163
|
-
variant: "warning",
|
|
1164
|
-
children: /*#__PURE__*/ C(J, {
|
|
1165
|
-
title: /*#__PURE__*/ C(O, { id: "JfWCsP" }),
|
|
1166
|
-
description: /*#__PURE__*/ C(O, {
|
|
1167
|
-
id: "8t1+HU",
|
|
1168
|
-
values: {
|
|
1169
|
-
successCount: e,
|
|
1170
|
-
failedCount: t
|
|
1171
|
-
}
|
|
1172
|
-
})
|
|
1173
|
-
}),
|
|
1174
|
-
onDismiss: n.onDismiss
|
|
1175
|
-
}), he = (e, t) => ({
|
|
1176
|
-
variant: "info",
|
|
1177
|
-
children: /*#__PURE__*/ C(J, {
|
|
1178
|
-
title: /*#__PURE__*/ C(O, { id: "V66Jih" }),
|
|
1179
|
-
description: /*#__PURE__*/ C(O, {
|
|
1180
|
-
id: "Vmojta",
|
|
1181
|
-
values: { newStatus: e }
|
|
1182
|
-
})
|
|
1183
|
-
}),
|
|
1184
|
-
onDismiss: t.onDismiss
|
|
1185
|
-
}), ge = (e, t) => ({
|
|
1186
|
-
variant: "error",
|
|
1187
|
-
children: /*#__PURE__*/ C(J, {
|
|
1188
|
-
title: /*#__PURE__*/ C(O, { id: "V66Jih" }),
|
|
1189
|
-
description: e || /*#__PURE__*/ C(O, { id: "QYiqYb" })
|
|
1190
|
-
}),
|
|
1191
|
-
onDismiss: t.onDismiss
|
|
1192
|
-
}), _e = (e, t, n) => ({
|
|
1193
|
-
variant: "success",
|
|
1194
|
-
children: /*#__PURE__*/ C(J, {
|
|
1195
|
-
title: /*#__PURE__*/ C(O, { id: "OSlLnz" }),
|
|
1196
|
-
description: /*#__PURE__*/ C(O, {
|
|
1197
|
-
id: "CA8ZeT",
|
|
1198
|
-
values: {
|
|
1199
|
-
imageName: e,
|
|
1200
|
-
visibility: t
|
|
1201
|
-
}
|
|
1202
|
-
})
|
|
1203
|
-
}),
|
|
1204
|
-
onDismiss: n.onDismiss
|
|
1205
|
-
}), ve = (e, t, n) => ({
|
|
1206
|
-
variant: "error",
|
|
1207
|
-
children: /*#__PURE__*/ C(J, {
|
|
1208
|
-
title: /*#__PURE__*/ C(O, { id: "aqagJH" }),
|
|
1209
|
-
description: /*#__PURE__*/ w(S, { children: [/*#__PURE__*/ C(O, {
|
|
1210
|
-
id: "hkjZ7P",
|
|
1211
|
-
values: { imageName: e }
|
|
1212
|
-
}), t] })
|
|
1213
|
-
}),
|
|
1214
|
-
onDismiss: n.onDismiss
|
|
1215
|
-
});
|
|
1216
|
-
//#endregion
|
|
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
|
-
|
|
1219
|
-
//# sourceMappingURL=ImageToastNotifications-BGyX2J6j.mjs.map
|