@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
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as k } from "./images-
|
|
5
|
-
import { t as A } from "./ContentHeader-
|
|
6
|
-
import { t as j } from "./SortInput-
|
|
7
|
-
import { A as M, C as ie, D as ae, E as oe, F as N, I as P, M as F, N as I, O as L, P as R, S as z, T as B, _ as V, a as se, b as ce, c as H, d as U, f as le, g as W, h as ue, i as de, j as fe, k as pe, l as me, m as he, n as ge, o as _e, p as ve, r as ye, s as be, t as xe, u as Se, v as Ce, w as we, x as Te, y as Ee } from "./ImageToastNotifications-
|
|
1
|
+
import { D as e, E as t, H as n, J as r, K as i, L as a, N as o, Q as s, S as c, U as l, X as u, Y as d, _ as f, at as p, ct as m, dt as h, et as g, f as _, it as v, k as y, l as b, m as x, n as ee, nt as S, ot as te, p as ne, tt as C, ut as w, v as T, x as re } from "./build-DF7MTyXG.mjs";
|
|
2
|
+
import { n as E, r as D } from "./trpcClient-BzPUgiM2.mjs";
|
|
3
|
+
import { t as O } from "./cn-DM4Cy3jv.mjs";
|
|
4
|
+
import { t as k } from "./images-BbLnuYrL.mjs";
|
|
5
|
+
import { t as A } from "./ContentHeader-DsuZD8fa.mjs";
|
|
6
|
+
import { t as j } from "./SortInput-D0Vb864D.mjs";
|
|
7
|
+
import { A as M, C as ie, D as ae, E as oe, F as N, I as P, M as F, N as I, O as L, P as R, S as z, T as B, _ as V, a as se, b as ce, c as H, d as U, f as le, g as W, h as ue, i as de, j as fe, k as pe, l as me, m as he, n as ge, o as _e, p as ve, r as ye, s as be, t as xe, u as Se, v as Ce, w as we, x as Te, y as Ee } from "./ImageToastNotifications-CFKQZTgf.mjs";
|
|
8
8
|
import { t as De } from "./useProjectId-DBc5lpoU.mjs";
|
|
9
|
-
import "./hooks-
|
|
10
|
-
import { n as Oe, t as ke } from "./FiltersInput-
|
|
9
|
+
import "./hooks-CMgoYcDG.mjs";
|
|
10
|
+
import { n as Oe, t as ke } from "./FiltersInput-CViamP59.mjs";
|
|
11
11
|
import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
|
|
12
12
|
import { Suspense as Ae, startTransition as je, use as Me, useCallback as Ne, useEffect as Pe, useMemo as Fe, useRef as Ie, useState as J } from "react";
|
|
13
13
|
import { useNavigate as Le, useParams as Re, useSearch as Y } from "@tanstack/react-router";
|
|
@@ -17,99 +17,99 @@ import { i18n as Be } from "@lingui/core";
|
|
|
17
17
|
import { ErrorBoundary as Ve } from "react-error-boundary";
|
|
18
18
|
import "@trpc/server";
|
|
19
19
|
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/ImageTableRow.tsx
|
|
20
|
-
function He({ image:
|
|
21
|
-
let { i18n: S, _:
|
|
20
|
+
function He({ image: t, isSelected: n, isPending: r, isAccepted: a, permissions: s, onEditDetails: c, onEditMetadata: u, onDelete: d, onSelect: f, onActivationStatusChange: p, onManageAccess: h, onUpdateVisibility: g, setToastData: _, uploadId: v, uploadProgressPercent: b, onMemberStatusChanged: x, showSelectColumn: ee = !1 }) {
|
|
21
|
+
let { i18n: S, _: ne } = Z(), { id: C, name: w, status: T, visibility: re, size: E, disk_format: O, created_at: k, owner: A } = t, j = w || S._({ id: "MEIAzV" }), { projectId: M } = Re({ from: "/_auth/projects/$projectId/compute/images/" }), ie = Le(), ae = D.useUtils(), oe = D.compute.updateImageMember.useMutation({ onSuccess: () => {
|
|
22
22
|
ae.compute.listImagesWithPagination.invalidate(), ae.compute.listSharedImagesByMemberStatus.invalidate();
|
|
23
23
|
} }), F = async (e) => {
|
|
24
24
|
try {
|
|
25
25
|
await oe.mutateAsync({
|
|
26
26
|
project_id: M,
|
|
27
|
-
imageId:
|
|
27
|
+
imageId: C,
|
|
28
28
|
memberId: M,
|
|
29
29
|
status: e
|
|
30
|
-
}),
|
|
30
|
+
}), _(U(e, { onDismiss: () => _(null) })), x?.();
|
|
31
31
|
} catch (e) {
|
|
32
32
|
let t = e?.message;
|
|
33
|
-
|
|
33
|
+
_(Se(t, { onDismiss: () => _(null) }));
|
|
34
34
|
}
|
|
35
|
-
}, L = M === A, z =
|
|
36
|
-
return /*#__PURE__*/ q(
|
|
37
|
-
"data-testid": `image-row-${
|
|
35
|
+
}, L = M === A, z = r || a, B = oe.isPending;
|
|
36
|
+
return /*#__PURE__*/ q(o, {
|
|
37
|
+
"data-testid": `image-row-${C}`,
|
|
38
38
|
onClick: () => ie({
|
|
39
39
|
to: "/projects/$projectId/compute/images/$imageId",
|
|
40
40
|
params: {
|
|
41
41
|
projectId: M,
|
|
42
|
-
imageId:
|
|
42
|
+
imageId: C
|
|
43
43
|
}
|
|
44
44
|
}),
|
|
45
45
|
children: [
|
|
46
|
-
ee && /*#__PURE__*/ K(
|
|
46
|
+
ee && /*#__PURE__*/ K(i, {
|
|
47
47
|
onClick: (e) => e.stopPropagation(),
|
|
48
|
-
children: /*#__PURE__*/ K(
|
|
48
|
+
children: /*#__PURE__*/ K(te, {
|
|
49
49
|
checked: n,
|
|
50
|
-
onChange: () => f(
|
|
50
|
+
onChange: () => f(t)
|
|
51
51
|
})
|
|
52
52
|
}),
|
|
53
|
-
/*#__PURE__*/ K(
|
|
54
|
-
/*#__PURE__*/ K(
|
|
55
|
-
/*#__PURE__*/ K(
|
|
56
|
-
/*#__PURE__*/ K(
|
|
57
|
-
/*#__PURE__*/ K(
|
|
58
|
-
/*#__PURE__*/ K(
|
|
59
|
-
/*#__PURE__*/ K(
|
|
60
|
-
/*#__PURE__*/ K(
|
|
53
|
+
/*#__PURE__*/ K(i, { children: T }),
|
|
54
|
+
/*#__PURE__*/ K(i, { children: j }),
|
|
55
|
+
/*#__PURE__*/ K(i, { children: re }),
|
|
56
|
+
/*#__PURE__*/ K(i, { children: t.protected ? S._({ id: "l75CjT" }) : S._({ id: "1UzENP" }) }),
|
|
57
|
+
/*#__PURE__*/ K(i, { children: v && v === C ? `${b}%` : /*#__PURE__*/ K(P, { size: E }) }),
|
|
58
|
+
/*#__PURE__*/ K(i, { children: O || S._({ id: "fj5byd" }) }),
|
|
59
|
+
/*#__PURE__*/ K(i, { children: k ? new Date(k).toLocaleDateString() : S._({ id: "fj5byd" }) }),
|
|
60
|
+
/*#__PURE__*/ K(i, {
|
|
61
61
|
onClick: (e) => e.stopPropagation(),
|
|
62
|
-
children: B ? /*#__PURE__*/ K(
|
|
62
|
+
children: B ? /*#__PURE__*/ K(l, {
|
|
63
63
|
variant: "primary",
|
|
64
64
|
size: "small"
|
|
65
|
-
}) : /*#__PURE__*/ K(
|
|
66
|
-
/*#__PURE__*/ K(
|
|
65
|
+
}) : /*#__PURE__*/ K(e, { children: /*#__PURE__*/ q(m, { children: [
|
|
66
|
+
/*#__PURE__*/ K(y, {
|
|
67
67
|
label: S._({ id: "v0hPHE" }),
|
|
68
68
|
onClick: () => ie({
|
|
69
69
|
to: "/projects/$projectId/compute/images/$imageId",
|
|
70
70
|
params: {
|
|
71
71
|
projectId: M,
|
|
72
|
-
imageId:
|
|
72
|
+
imageId: C
|
|
73
73
|
}
|
|
74
74
|
})
|
|
75
75
|
}),
|
|
76
|
-
z &&
|
|
76
|
+
z && s.canUpdateMember && /*#__PURE__*/ q(G, { children: [r && /*#__PURE__*/ K(y, {
|
|
77
77
|
label: S._({ id: "g3UF2V" }),
|
|
78
78
|
onClick: () => F(N.ACCEPTED)
|
|
79
|
-
}), /*#__PURE__*/ K(
|
|
79
|
+
}), /*#__PURE__*/ K(y, {
|
|
80
80
|
label: S._({ id: "1t/NnN" }),
|
|
81
81
|
onClick: () => F(N.REJECTED)
|
|
82
82
|
})] }),
|
|
83
|
-
!z &&
|
|
84
|
-
/*#__PURE__*/ K(
|
|
83
|
+
!z && s.canUpdate && /*#__PURE__*/ q(G, { children: [
|
|
84
|
+
/*#__PURE__*/ K(y, {
|
|
85
85
|
label: S._({ id: "Y1YKad" }),
|
|
86
|
-
onClick: () =>
|
|
86
|
+
onClick: () => c(t)
|
|
87
87
|
}),
|
|
88
|
-
/*#__PURE__*/ K(
|
|
88
|
+
/*#__PURE__*/ K(y, {
|
|
89
89
|
label: S._({ id: "SIfYq6" }),
|
|
90
|
-
onClick: () => u(
|
|
90
|
+
onClick: () => u(t)
|
|
91
91
|
}),
|
|
92
|
-
/*#__PURE__*/ K(
|
|
93
|
-
label:
|
|
94
|
-
onClick: () => p(
|
|
92
|
+
/*#__PURE__*/ K(y, {
|
|
93
|
+
label: t.status === I.DEACTIVATED ? S._({ id: "FQBaXG" }) : S._({ id: "5y3O+A" }),
|
|
94
|
+
onClick: () => p(t)
|
|
95
95
|
}),
|
|
96
|
-
|
|
96
|
+
t.visibility === R.SHARED && L && (s.canCreateMember || s.canDeleteMember) && /*#__PURE__*/ K(y, {
|
|
97
97
|
label: S._({ id: "cWbW6w" }),
|
|
98
|
-
onClick: () =>
|
|
98
|
+
onClick: () => h(t)
|
|
99
99
|
}),
|
|
100
|
-
|
|
100
|
+
t.visibility === R.PRIVATE && /*#__PURE__*/ K(y, {
|
|
101
101
|
label: S._({ id: "gMYsdZ" }),
|
|
102
|
-
onClick: () =>
|
|
102
|
+
onClick: () => g(t.id, R.SHARED, j)
|
|
103
103
|
})
|
|
104
104
|
] }),
|
|
105
|
-
!z &&
|
|
105
|
+
!z && s.canDelete && !t.protected && /*#__PURE__*/ K(y, {
|
|
106
106
|
label: S._({ id: "cnGeoo" }),
|
|
107
|
-
onClick: () => d(
|
|
107
|
+
onClick: () => d(t)
|
|
108
108
|
})
|
|
109
109
|
] }) })
|
|
110
110
|
})
|
|
111
111
|
]
|
|
112
|
-
},
|
|
112
|
+
}, C);
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region src/server/Compute/helpers/imageHelpers.ts
|
|
@@ -166,8 +166,8 @@ var Je = {
|
|
|
166
166
|
protected: !1,
|
|
167
167
|
min_disk: 0,
|
|
168
168
|
min_ram: 0
|
|
169
|
-
}, Ye = ({ isOpen: e, onClose: t, onCreate: n, isLoading: r = !1, isUploadPending:
|
|
170
|
-
let { i18n:
|
|
169
|
+
}, Ye = ({ isOpen: e, onClose: t, onCreate: n, isLoading: r = !1, isUploadPending: i = !1, uploadProgressPercent: a }) => {
|
|
170
|
+
let { i18n: o, _: s } = Z(), [p, m] = J({ ...Je }), [h, g] = J(""), [_, v] = J(null), [y, S] = J({}), [C, E] = J(!1), [D, k] = J(null), A = p.name.trim() !== "" && _ !== null && p.disk_format !== void 0 && p.disk_format.trim() !== "" && p.container_format !== void 0 && p.container_format.trim() !== "" && p.min_disk >= 0 && p.min_ram >= 0, j = Fe(() => p.disk_format ? Ge(p.disk_format) : [], [p.disk_format]), M = [
|
|
171
171
|
".qcow2",
|
|
172
172
|
".raw",
|
|
173
173
|
".vmdk",
|
|
@@ -182,60 +182,60 @@ var Je = {
|
|
|
182
182
|
".img"
|
|
183
183
|
], ie = M.join(", "), ae = (e) => {
|
|
184
184
|
let { name: t, value: n, type: r, checked: i } = e.target;
|
|
185
|
-
|
|
185
|
+
m((e) => ({
|
|
186
186
|
...e,
|
|
187
187
|
[t]: r === "checkbox" ? i : n
|
|
188
|
-
})),
|
|
188
|
+
})), y[t] && S((e) => {
|
|
189
189
|
let n = { ...e };
|
|
190
190
|
return delete n[t], n;
|
|
191
191
|
});
|
|
192
192
|
}, oe = (e) => {
|
|
193
193
|
let { name: t, value: n } = e.target;
|
|
194
|
-
t === "name" && (!n || n.trim() === "") &&
|
|
194
|
+
t === "name" && (!n || n.trim() === "") && S((e) => ({
|
|
195
195
|
...e,
|
|
196
|
-
name:
|
|
196
|
+
name: o._({ id: "wyIOMP" })
|
|
197
197
|
}));
|
|
198
198
|
}, N = (e, t) => {
|
|
199
199
|
if (e === "disk_format") {
|
|
200
200
|
let e = t, n = Ke(e);
|
|
201
|
-
|
|
201
|
+
m((t) => ({
|
|
202
202
|
...t,
|
|
203
203
|
disk_format: e,
|
|
204
204
|
container_format: n
|
|
205
205
|
}));
|
|
206
|
-
} else
|
|
206
|
+
} else m((n) => ({
|
|
207
207
|
...n,
|
|
208
208
|
[e]: t
|
|
209
209
|
}));
|
|
210
|
-
|
|
210
|
+
y[e] && S((t) => {
|
|
211
211
|
let n = { ...t };
|
|
212
212
|
return delete n[e], n;
|
|
213
213
|
});
|
|
214
214
|
}, P = (e, t) => {
|
|
215
215
|
let n = t === "" ? 0 : parseInt(t, 10);
|
|
216
|
-
isNaN(n) || (
|
|
216
|
+
isNaN(n) || (m((t) => ({
|
|
217
217
|
...t,
|
|
218
218
|
[e]: n
|
|
219
|
-
})),
|
|
219
|
+
})), y[e] && S((t) => {
|
|
220
220
|
let n = { ...t };
|
|
221
221
|
return delete n[e], n;
|
|
222
222
|
}));
|
|
223
223
|
}, I = (e, t) => {
|
|
224
|
-
t < 0 && (e === "min_disk" ?
|
|
224
|
+
t < 0 && (e === "min_disk" ? S((e) => ({
|
|
225
225
|
...e,
|
|
226
|
-
min_disk:
|
|
227
|
-
})) : e === "min_ram" &&
|
|
226
|
+
min_disk: o._({ id: "K3bUTE" })
|
|
227
|
+
})) : e === "min_ram" && S((e) => ({
|
|
228
228
|
...e,
|
|
229
|
-
min_ram:
|
|
229
|
+
min_ram: o._({ id: "PEGvy+" })
|
|
230
230
|
})));
|
|
231
231
|
}, L = (e) => {
|
|
232
232
|
let t = e.name.toLowerCase();
|
|
233
|
-
M.some((e) => t.endsWith(e)) ? (
|
|
233
|
+
M.some((e) => t.endsWith(e)) ? (v(e), y.file && S((e) => {
|
|
234
234
|
let t = { ...e };
|
|
235
235
|
return delete t.file, t;
|
|
236
|
-
})) :
|
|
236
|
+
})) : S((e) => ({
|
|
237
237
|
...e,
|
|
238
|
-
file:
|
|
238
|
+
file: o._({
|
|
239
239
|
id: "qzIZOL",
|
|
240
240
|
values: { supportedFileFormats: ie }
|
|
241
241
|
})
|
|
@@ -244,106 +244,106 @@ var Je = {
|
|
|
244
244
|
let t = e.target.files?.[0];
|
|
245
245
|
t && L(t);
|
|
246
246
|
}, B = (e) => {
|
|
247
|
-
e.preventDefault(), e.stopPropagation(),
|
|
247
|
+
e.preventDefault(), e.stopPropagation(), E(!0);
|
|
248
248
|
}, V = (e) => {
|
|
249
|
-
e.preventDefault(), e.stopPropagation(),
|
|
249
|
+
e.preventDefault(), e.stopPropagation(), E(!1);
|
|
250
250
|
}, se = (e) => {
|
|
251
|
-
e.preventDefault(), e.stopPropagation(),
|
|
251
|
+
e.preventDefault(), e.stopPropagation(), E(!1);
|
|
252
252
|
let t = e.dataTransfer.files;
|
|
253
253
|
t && t.length > 0 && L(t[0]);
|
|
254
254
|
}, ce = (e) => {
|
|
255
|
-
|
|
255
|
+
g(e.target.value);
|
|
256
256
|
}, H = () => {
|
|
257
|
-
let e =
|
|
257
|
+
let e = h.trim();
|
|
258
258
|
if (e !== "") {
|
|
259
|
-
if (
|
|
260
|
-
|
|
259
|
+
if (p.tags.includes(e)) {
|
|
260
|
+
g("");
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
m((t) => ({
|
|
264
264
|
...t,
|
|
265
265
|
tags: [...t.tags, e]
|
|
266
|
-
})),
|
|
266
|
+
})), g("");
|
|
267
267
|
}
|
|
268
268
|
}, U = (e) => {
|
|
269
269
|
e.key === "Enter" && (e.preventDefault(), H());
|
|
270
270
|
}, le = (e) => {
|
|
271
|
-
|
|
271
|
+
m((t) => ({
|
|
272
272
|
...t,
|
|
273
273
|
tags: t.tags.filter((t) => t !== e)
|
|
274
274
|
}));
|
|
275
275
|
}, W = () => {
|
|
276
276
|
let e = {};
|
|
277
|
-
return (!
|
|
277
|
+
return (!p.name || p.name.trim() === "") && (e.name = o._({ id: "wyIOMP" })), _ || (e.file = o._({ id: "aTqCTq" })), (!p.disk_format || p.disk_format.trim() === "") && (e.disk_format = o._({ id: "LK0pQN" })), (!p.container_format || p.container_format.trim() === "") && (e.container_format = o._({ id: "J4DKSM" })), p.disk_format && p.container_format && (qe(p.disk_format, p.container_format) || (e.container_format = o._({ id: "BgMp/T" }))), p.min_disk < 0 && (e.min_disk = o._({ id: "K3bUTE" })), p.min_ram < 0 && (e.min_ram = o._({ id: "PEGvy+" })), S(e), Object.keys(e).length === 0;
|
|
278
278
|
}, ue = async (e) => {
|
|
279
279
|
if (e.preventDefault(), k(null), !W()) {
|
|
280
|
-
k(
|
|
280
|
+
k(o._({ id: "CBFSfX" }));
|
|
281
281
|
return;
|
|
282
282
|
}
|
|
283
283
|
try {
|
|
284
284
|
await n({
|
|
285
|
-
name:
|
|
286
|
-
tags:
|
|
287
|
-
visibility:
|
|
288
|
-
disk_format:
|
|
289
|
-
container_format:
|
|
290
|
-
protected:
|
|
291
|
-
min_disk:
|
|
292
|
-
min_ram:
|
|
293
|
-
},
|
|
285
|
+
name: p.name.trim(),
|
|
286
|
+
tags: p.tags,
|
|
287
|
+
visibility: p.visibility,
|
|
288
|
+
disk_format: p.disk_format,
|
|
289
|
+
container_format: p.container_format,
|
|
290
|
+
protected: p.protected,
|
|
291
|
+
min_disk: p.min_disk,
|
|
292
|
+
min_ram: p.min_ram
|
|
293
|
+
}, _), de();
|
|
294
294
|
} catch (e) {
|
|
295
|
-
k(e instanceof Error ? e.message :
|
|
295
|
+
k(e instanceof Error ? e.message : o._({ id: "TQn3hH" }));
|
|
296
296
|
}
|
|
297
297
|
}, de = () => {
|
|
298
|
-
|
|
298
|
+
m({ ...Je }), g(""), v(null), S({}), k(null), t();
|
|
299
299
|
};
|
|
300
|
-
return /*#__PURE__*/ q(
|
|
300
|
+
return /*#__PURE__*/ q(w, {
|
|
301
301
|
open: e,
|
|
302
302
|
onCancel: r ? void 0 : de,
|
|
303
303
|
size: "large",
|
|
304
|
-
title:
|
|
304
|
+
title: o._({ id: "xw2UtT" }),
|
|
305
305
|
onConfirm: ue,
|
|
306
|
-
confirmButtonLabel:
|
|
307
|
-
cancelButtonLabel:
|
|
306
|
+
confirmButtonLabel: o._({ id: "a/nTb8" }),
|
|
307
|
+
cancelButtonLabel: o._({ id: "dEgA5A" }),
|
|
308
308
|
disableConfirmButton: r || !A,
|
|
309
309
|
closeable: !r,
|
|
310
310
|
closeOnEsc: !r,
|
|
311
311
|
children: [
|
|
312
|
-
r && !
|
|
312
|
+
r && !a && /*#__PURE__*/ q(u, {
|
|
313
313
|
distribution: "center",
|
|
314
314
|
alignment: "center",
|
|
315
315
|
className: "mt-4",
|
|
316
316
|
children: [
|
|
317
|
-
/*#__PURE__*/ K(
|
|
318
|
-
!
|
|
319
|
-
|
|
317
|
+
/*#__PURE__*/ K(l, { variant: "primary" }),
|
|
318
|
+
!i && /*#__PURE__*/ K(X, { id: "98Fs4G" }),
|
|
319
|
+
i && /*#__PURE__*/ K(X, { id: "3q1GLx" })
|
|
320
320
|
]
|
|
321
321
|
}),
|
|
322
|
-
r && !!
|
|
322
|
+
r && !!a && /*#__PURE__*/ K("div", {
|
|
323
323
|
className: "bg-neutral-quaternary mt-4 w-full rounded-full",
|
|
324
324
|
children: /*#__PURE__*/ q("div", {
|
|
325
325
|
className: "bg-theme-info flex h-4 items-center justify-center rounded-full p-0.5 text-center text-xs leading-none font-medium text-white",
|
|
326
|
-
style: { width: `${
|
|
327
|
-
children: [
|
|
326
|
+
style: { width: `${a}%` },
|
|
327
|
+
children: [a, "%"]
|
|
328
328
|
})
|
|
329
329
|
}),
|
|
330
|
-
!r && /*#__PURE__*/ q(
|
|
330
|
+
!r && /*#__PURE__*/ q(re, {
|
|
331
331
|
className: "mb-6",
|
|
332
332
|
children: [
|
|
333
|
-
|
|
333
|
+
D && /*#__PURE__*/ K(d, {
|
|
334
334
|
variant: "error",
|
|
335
335
|
className: "mb-6",
|
|
336
|
-
children:
|
|
336
|
+
children: D
|
|
337
337
|
}),
|
|
338
|
-
/*#__PURE__*/ K(
|
|
338
|
+
/*#__PURE__*/ K(ne, {
|
|
339
339
|
className: "mb-6",
|
|
340
|
-
children: /*#__PURE__*/ K(
|
|
340
|
+
children: /*#__PURE__*/ K(c, { children: /*#__PURE__*/ q("div", {
|
|
341
341
|
className: "w-full",
|
|
342
342
|
children: [
|
|
343
343
|
/*#__PURE__*/ q("label", {
|
|
344
344
|
htmlFor: "image-file",
|
|
345
345
|
className: "mb-2 block text-sm font-medium text-gray-900",
|
|
346
|
-
children: [
|
|
346
|
+
children: [o._({ id: "UKwOYH" }), /*#__PURE__*/ K("span", {
|
|
347
347
|
className: "ml-1 text-red-500",
|
|
348
348
|
children: "*"
|
|
349
349
|
})]
|
|
@@ -355,12 +355,12 @@ var Je = {
|
|
|
355
355
|
onDragOver: B,
|
|
356
356
|
onDragLeave: V,
|
|
357
357
|
onDrop: se,
|
|
358
|
-
className:
|
|
358
|
+
className: O("flex h-24 w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed transition-all", C ? "border-blue-500 bg-blue-50" : "border-gray-300 bg-gray-50 hover:bg-gray-100"),
|
|
359
359
|
children: [/*#__PURE__*/ q("div", {
|
|
360
360
|
className: "flex flex-col items-center justify-center pt-3 pb-3",
|
|
361
361
|
children: [
|
|
362
362
|
/*#__PURE__*/ K("svg", {
|
|
363
|
-
className:
|
|
363
|
+
className: O("mb-1 h-6 w-6 transition-colors", C ? "text-blue-500" : "text-gray-500"),
|
|
364
364
|
"aria-hidden": "true",
|
|
365
365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
366
366
|
fill: "none",
|
|
@@ -374,19 +374,19 @@ var Je = {
|
|
|
374
374
|
})
|
|
375
375
|
}),
|
|
376
376
|
/*#__PURE__*/ K("p", {
|
|
377
|
-
className:
|
|
378
|
-
children:
|
|
377
|
+
className: O("text-xs transition-colors", C ? "font-semibold text-blue-600" : "text-gray-500"),
|
|
378
|
+
children: C ? /*#__PURE__*/ K("span", { children: o._({ id: "vXmL4D" }) }) : /*#__PURE__*/ q(G, { children: [
|
|
379
379
|
/*#__PURE__*/ K("span", {
|
|
380
380
|
className: "font-semibold",
|
|
381
|
-
children:
|
|
381
|
+
children: o._({ id: "gYe+hC" })
|
|
382
382
|
}),
|
|
383
383
|
" ",
|
|
384
|
-
|
|
384
|
+
o._({ id: "Np28ib" })
|
|
385
385
|
] })
|
|
386
386
|
}),
|
|
387
387
|
/*#__PURE__*/ K("p", {
|
|
388
388
|
className: "text-xs text-gray-400",
|
|
389
|
-
children:
|
|
389
|
+
children: o._({ id: "jBIkmi" })
|
|
390
390
|
})
|
|
391
391
|
]
|
|
392
392
|
}), /*#__PURE__*/ K("input", {
|
|
@@ -399,7 +399,7 @@ var Je = {
|
|
|
399
399
|
})]
|
|
400
400
|
})
|
|
401
401
|
}),
|
|
402
|
-
|
|
402
|
+
_ && /*#__PURE__*/ q("div", {
|
|
403
403
|
className: "mt-2 flex items-center justify-between rounded-lg border border-green-200 bg-green-50 p-2 text-xs",
|
|
404
404
|
children: [/*#__PURE__*/ q("div", {
|
|
405
405
|
className: "flex items-center",
|
|
@@ -414,51 +414,51 @@ var Je = {
|
|
|
414
414
|
})
|
|
415
415
|
}), /*#__PURE__*/ K("span", {
|
|
416
416
|
className: "text-gray-700",
|
|
417
|
-
children:
|
|
417
|
+
children: _.name
|
|
418
418
|
})]
|
|
419
419
|
}), /*#__PURE__*/ K("button", {
|
|
420
420
|
type: "button",
|
|
421
421
|
onClick: () => {
|
|
422
|
-
|
|
422
|
+
v(null), y.file && S((e) => {
|
|
423
423
|
let t = { ...e };
|
|
424
424
|
return delete t.file, t;
|
|
425
425
|
});
|
|
426
426
|
},
|
|
427
427
|
className: "font-medium text-red-600 hover:text-red-800",
|
|
428
428
|
disabled: r,
|
|
429
|
-
children:
|
|
429
|
+
children: o._({ id: "t/YqKh" })
|
|
430
430
|
})]
|
|
431
431
|
}),
|
|
432
|
-
|
|
432
|
+
y.file && /*#__PURE__*/ K("p", {
|
|
433
433
|
className: "text-theme-error mt-1 text-xs text-red-600",
|
|
434
|
-
children:
|
|
434
|
+
children: y.file
|
|
435
435
|
})
|
|
436
436
|
]
|
|
437
437
|
}) })
|
|
438
438
|
}),
|
|
439
|
-
/*#__PURE__*/ q(
|
|
439
|
+
/*#__PURE__*/ q(ne, {
|
|
440
440
|
className: "mb-6",
|
|
441
441
|
children: [
|
|
442
|
-
/*#__PURE__*/ K(
|
|
442
|
+
/*#__PURE__*/ K(c, {
|
|
443
443
|
className: "mb-6",
|
|
444
444
|
children: /*#__PURE__*/ K(x, {
|
|
445
445
|
id: "name",
|
|
446
446
|
name: "name",
|
|
447
|
-
label:
|
|
448
|
-
value:
|
|
447
|
+
label: o._({ id: "ExLULX" }),
|
|
448
|
+
value: p.name,
|
|
449
449
|
onChange: ae,
|
|
450
450
|
onBlur: oe,
|
|
451
451
|
required: !0,
|
|
452
|
-
errortext:
|
|
453
|
-
placeholder:
|
|
452
|
+
errortext: y.name,
|
|
453
|
+
placeholder: o._({ id: "PsEGri" }),
|
|
454
454
|
disabled: r
|
|
455
455
|
})
|
|
456
456
|
}),
|
|
457
|
-
/*#__PURE__*/ K(
|
|
457
|
+
/*#__PURE__*/ K(c, {
|
|
458
458
|
className: "mb-6",
|
|
459
459
|
children: /*#__PURE__*/ q("div", {
|
|
460
460
|
className: "w-full",
|
|
461
|
-
children: [/*#__PURE__*/ q(
|
|
461
|
+
children: [/*#__PURE__*/ q(u, {
|
|
462
462
|
gap: "1",
|
|
463
463
|
direction: "horizontal",
|
|
464
464
|
alignment: "start",
|
|
@@ -467,26 +467,26 @@ var Je = {
|
|
|
467
467
|
children: /*#__PURE__*/ K(x, {
|
|
468
468
|
id: "tags",
|
|
469
469
|
name: "tags",
|
|
470
|
-
label:
|
|
471
|
-
value:
|
|
470
|
+
label: o._({ id: "OYHzN1" }),
|
|
471
|
+
value: h,
|
|
472
472
|
onChange: ce,
|
|
473
473
|
onKeyDown: U,
|
|
474
|
-
helptext:
|
|
475
|
-
placeholder:
|
|
474
|
+
helptext: o._({ id: "AN0DBJ" }),
|
|
475
|
+
placeholder: o._({ id: "tmpGvt" }),
|
|
476
476
|
disabled: r
|
|
477
477
|
})
|
|
478
|
-
}), /*#__PURE__*/ K(
|
|
478
|
+
}), /*#__PURE__*/ K(f, {
|
|
479
479
|
variant: "primary",
|
|
480
480
|
onClick: H,
|
|
481
|
-
disabled: r ||
|
|
481
|
+
disabled: r || h.trim() === "",
|
|
482
482
|
children: /*#__PURE__*/ K(X, { id: "m16xKo" })
|
|
483
483
|
})]
|
|
484
|
-
}),
|
|
484
|
+
}), p.tags.length > 0 && /*#__PURE__*/ K(u, {
|
|
485
485
|
gap: "1",
|
|
486
486
|
wrap: !0,
|
|
487
487
|
alignment: "center",
|
|
488
488
|
className: "mt-1",
|
|
489
|
-
children:
|
|
489
|
+
children: p.tags.map((e) => /*#__PURE__*/ K(ee, {
|
|
490
490
|
closeable: !0,
|
|
491
491
|
pillKey: "",
|
|
492
492
|
pillValue: e,
|
|
@@ -495,97 +495,97 @@ var Je = {
|
|
|
495
495
|
})]
|
|
496
496
|
})
|
|
497
497
|
}),
|
|
498
|
-
/*#__PURE__*/ K(
|
|
498
|
+
/*#__PURE__*/ K(c, {
|
|
499
499
|
className: "mb-6",
|
|
500
|
-
children: /*#__PURE__*/ q(
|
|
500
|
+
children: /*#__PURE__*/ q(T, {
|
|
501
501
|
id: "visibility",
|
|
502
502
|
name: "visibility",
|
|
503
|
-
label:
|
|
504
|
-
value:
|
|
503
|
+
label: o._({ id: "2q/Q7x" }),
|
|
504
|
+
value: p.visibility,
|
|
505
505
|
onChange: (e) => N("visibility", e),
|
|
506
506
|
disabled: r,
|
|
507
507
|
loading: r,
|
|
508
508
|
children: [
|
|
509
|
-
/*#__PURE__*/ K(
|
|
509
|
+
/*#__PURE__*/ K(b, {
|
|
510
510
|
value: R.PUBLIC,
|
|
511
|
-
label:
|
|
511
|
+
label: o._({ id: "7d1a0d" })
|
|
512
512
|
}),
|
|
513
|
-
/*#__PURE__*/ K(
|
|
513
|
+
/*#__PURE__*/ K(b, {
|
|
514
514
|
value: R.PRIVATE,
|
|
515
|
-
label:
|
|
515
|
+
label: o._({ id: "zwBp5t" })
|
|
516
516
|
}),
|
|
517
|
-
/*#__PURE__*/ K(
|
|
517
|
+
/*#__PURE__*/ K(b, {
|
|
518
518
|
value: R.SHARED,
|
|
519
|
-
label:
|
|
519
|
+
label: o._({ id: "0Gd0NU" })
|
|
520
520
|
}),
|
|
521
|
-
/*#__PURE__*/ K(
|
|
521
|
+
/*#__PURE__*/ K(b, {
|
|
522
522
|
value: R.COMMUNITY,
|
|
523
|
-
label:
|
|
523
|
+
label: o._({ id: "chL5IG" })
|
|
524
524
|
})
|
|
525
525
|
]
|
|
526
526
|
})
|
|
527
527
|
}),
|
|
528
|
-
/*#__PURE__*/ K(
|
|
528
|
+
/*#__PURE__*/ K(c, {
|
|
529
529
|
className: "mb-6",
|
|
530
|
-
children: /*#__PURE__*/ q(
|
|
530
|
+
children: /*#__PURE__*/ q(u, {
|
|
531
531
|
direction: "horizontal",
|
|
532
532
|
gap: "3",
|
|
533
533
|
distribution: "evenly",
|
|
534
534
|
className: "w-full",
|
|
535
535
|
children: [/*#__PURE__*/ K("div", {
|
|
536
536
|
className: "flex-1",
|
|
537
|
-
children: /*#__PURE__*/ q(
|
|
537
|
+
children: /*#__PURE__*/ q(T, {
|
|
538
538
|
id: "disk_format",
|
|
539
539
|
name: "disk_format",
|
|
540
|
-
label:
|
|
541
|
-
value:
|
|
540
|
+
label: o._({ id: "NopYGU" }),
|
|
541
|
+
value: p.disk_format,
|
|
542
542
|
onChange: (e) => N("disk_format", e),
|
|
543
543
|
disabled: r,
|
|
544
544
|
loading: r,
|
|
545
545
|
required: !0,
|
|
546
|
-
errortext:
|
|
546
|
+
errortext: y.disk_format,
|
|
547
547
|
children: [
|
|
548
|
-
/*#__PURE__*/ K(
|
|
548
|
+
/*#__PURE__*/ K(b, {
|
|
549
549
|
value: F.QCOW2,
|
|
550
550
|
label: "QCOW2 - QEMU Emulator"
|
|
551
551
|
}),
|
|
552
|
-
/*#__PURE__*/ K(
|
|
552
|
+
/*#__PURE__*/ K(b, {
|
|
553
553
|
value: F.RAW,
|
|
554
554
|
label: "Raw"
|
|
555
555
|
}),
|
|
556
|
-
/*#__PURE__*/ K(
|
|
556
|
+
/*#__PURE__*/ K(b, {
|
|
557
557
|
value: F.VMDK,
|
|
558
558
|
label: "VMDK - Virtual Machine Disk"
|
|
559
559
|
}),
|
|
560
|
-
/*#__PURE__*/ K(
|
|
560
|
+
/*#__PURE__*/ K(b, {
|
|
561
561
|
value: F.VHD,
|
|
562
562
|
label: "VHD - Virtual Hard Disk"
|
|
563
563
|
}),
|
|
564
|
-
/*#__PURE__*/ K(
|
|
564
|
+
/*#__PURE__*/ K(b, {
|
|
565
565
|
value: F.VHDX,
|
|
566
566
|
label: "VHDX - Virtual Hard Disk Extended"
|
|
567
567
|
}),
|
|
568
|
-
/*#__PURE__*/ K(
|
|
568
|
+
/*#__PURE__*/ K(b, {
|
|
569
569
|
value: F.VDI,
|
|
570
570
|
label: "VDI - Virtual Disk Image"
|
|
571
571
|
}),
|
|
572
|
-
/*#__PURE__*/ K(
|
|
572
|
+
/*#__PURE__*/ K(b, {
|
|
573
573
|
value: F.AMI,
|
|
574
574
|
label: "AMI - Amazon Machine Image"
|
|
575
575
|
}),
|
|
576
|
-
/*#__PURE__*/ K(
|
|
576
|
+
/*#__PURE__*/ K(b, {
|
|
577
577
|
value: F.ARI,
|
|
578
578
|
label: "ARI - Amazon Ramdisk Image"
|
|
579
579
|
}),
|
|
580
|
-
/*#__PURE__*/ K(
|
|
580
|
+
/*#__PURE__*/ K(b, {
|
|
581
581
|
value: F.AKI,
|
|
582
582
|
label: "AKI - Amazon Kernel Image"
|
|
583
583
|
}),
|
|
584
|
-
/*#__PURE__*/ K(
|
|
584
|
+
/*#__PURE__*/ K(b, {
|
|
585
585
|
value: F.ISO,
|
|
586
586
|
label: "ISO - Optical Disk Image"
|
|
587
587
|
}),
|
|
588
|
-
/*#__PURE__*/ K(
|
|
588
|
+
/*#__PURE__*/ K(b, {
|
|
589
589
|
value: F.PLOOP,
|
|
590
590
|
label: "PLOOP - Virtuozzo/Parallels Loopback Disk"
|
|
591
591
|
})
|
|
@@ -593,17 +593,17 @@ var Je = {
|
|
|
593
593
|
})
|
|
594
594
|
}), /*#__PURE__*/ K("div", {
|
|
595
595
|
className: "flex-1",
|
|
596
|
-
children: /*#__PURE__*/ K(
|
|
596
|
+
children: /*#__PURE__*/ K(T, {
|
|
597
597
|
id: "container_format",
|
|
598
598
|
name: "container_format",
|
|
599
|
-
label:
|
|
600
|
-
value:
|
|
599
|
+
label: o._({ id: "6/xipy" }),
|
|
600
|
+
value: p.container_format,
|
|
601
601
|
onChange: (e) => N("container_format", e),
|
|
602
|
-
disabled: r || !
|
|
602
|
+
disabled: r || !p.disk_format || !j.length,
|
|
603
603
|
required: !0,
|
|
604
|
-
errortext:
|
|
605
|
-
helptext: !j.length &&
|
|
606
|
-
children: j.map((e) => /*#__PURE__*/ K(
|
|
604
|
+
errortext: y.container_format,
|
|
605
|
+
helptext: !j.length && o._({ id: "A7CVME" }),
|
|
606
|
+
children: j.map((e) => /*#__PURE__*/ K(b, {
|
|
607
607
|
value: e,
|
|
608
608
|
label: e.toUpperCase()
|
|
609
609
|
}, e))
|
|
@@ -611,25 +611,25 @@ var Je = {
|
|
|
611
611
|
})]
|
|
612
612
|
})
|
|
613
613
|
}),
|
|
614
|
-
/*#__PURE__*/ K(
|
|
614
|
+
/*#__PURE__*/ K(c, {
|
|
615
615
|
className: "mb-0",
|
|
616
|
-
children: /*#__PURE__*/ K(
|
|
616
|
+
children: /*#__PURE__*/ K(te, {
|
|
617
617
|
id: "protected",
|
|
618
618
|
name: "protected",
|
|
619
|
-
label:
|
|
620
|
-
checked:
|
|
619
|
+
label: o._({ id: "644xgx" }),
|
|
620
|
+
checked: p.protected,
|
|
621
621
|
onChange: ae,
|
|
622
|
-
helptext:
|
|
622
|
+
helptext: o._({ id: "aV6KPH" }),
|
|
623
623
|
disabled: r
|
|
624
624
|
})
|
|
625
625
|
})
|
|
626
626
|
]
|
|
627
627
|
}),
|
|
628
|
-
/*#__PURE__*/ K(
|
|
628
|
+
/*#__PURE__*/ K(ne, {
|
|
629
629
|
className: "mb-6",
|
|
630
|
-
children: /*#__PURE__*/ K(
|
|
630
|
+
children: /*#__PURE__*/ K(c, {
|
|
631
631
|
className: "mb-0",
|
|
632
|
-
children: /*#__PURE__*/ q(
|
|
632
|
+
children: /*#__PURE__*/ q(u, {
|
|
633
633
|
direction: "horizontal",
|
|
634
634
|
gap: "3",
|
|
635
635
|
distribution: "evenly",
|
|
@@ -639,13 +639,13 @@ var Je = {
|
|
|
639
639
|
children: /*#__PURE__*/ K(x, {
|
|
640
640
|
id: "min_disk",
|
|
641
641
|
name: "min_disk",
|
|
642
|
-
label:
|
|
642
|
+
label: o._({ id: "NixRmA" }),
|
|
643
643
|
type: "number",
|
|
644
|
-
value: String(
|
|
644
|
+
value: String(p.min_disk),
|
|
645
645
|
onChange: (e) => P("min_disk", e.target.value),
|
|
646
|
-
onBlur: () => I("min_disk",
|
|
647
|
-
helptext:
|
|
648
|
-
errortext:
|
|
646
|
+
onBlur: () => I("min_disk", p.min_disk),
|
|
647
|
+
helptext: o._({ id: "4fh0Wj" }),
|
|
648
|
+
errortext: y.min_disk,
|
|
649
649
|
disabled: r
|
|
650
650
|
})
|
|
651
651
|
}), /*#__PURE__*/ K("div", {
|
|
@@ -653,13 +653,13 @@ var Je = {
|
|
|
653
653
|
children: /*#__PURE__*/ K(x, {
|
|
654
654
|
id: "min_ram",
|
|
655
655
|
name: "min_ram",
|
|
656
|
-
label:
|
|
656
|
+
label: o._({ id: "CgZxr7" }),
|
|
657
657
|
type: "number",
|
|
658
|
-
value: String(
|
|
658
|
+
value: String(p.min_ram),
|
|
659
659
|
onChange: (e) => P("min_ram", e.target.value),
|
|
660
|
-
onBlur: () => I("min_ram",
|
|
661
|
-
helptext:
|
|
662
|
-
errortext:
|
|
660
|
+
onBlur: () => I("min_ram", p.min_ram),
|
|
661
|
+
helptext: o._({ id: "KsIM0b" }),
|
|
662
|
+
errortext: y.min_ram,
|
|
663
663
|
disabled: r
|
|
664
664
|
})
|
|
665
665
|
})]
|
|
@@ -670,40 +670,40 @@ var Je = {
|
|
|
670
670
|
})
|
|
671
671
|
]
|
|
672
672
|
});
|
|
673
|
-
}, Xe = ({ deletableImages: e, protectedImages: t, isOpen: n, isLoading: r, onClose:
|
|
674
|
-
let { i18n:
|
|
675
|
-
return /*#__PURE__*/ q(
|
|
676
|
-
onCancel:
|
|
673
|
+
}, Xe = ({ deletableImages: e, protectedImages: t, isOpen: n, isLoading: r, onClose: i, onDelete: a }) => {
|
|
674
|
+
let { i18n: o, _: s } = Z(), c = e.length, p = t.length;
|
|
675
|
+
return /*#__PURE__*/ q(w, {
|
|
676
|
+
onCancel: i,
|
|
677
677
|
size: "small",
|
|
678
|
-
title:
|
|
678
|
+
title: o._({ id: "JtHgVz" }),
|
|
679
679
|
open: n,
|
|
680
|
-
modalFooter: /*#__PURE__*/ K(
|
|
680
|
+
modalFooter: /*#__PURE__*/ K(_, {
|
|
681
681
|
className: "flex justify-end",
|
|
682
|
-
children: /*#__PURE__*/ q(
|
|
682
|
+
children: /*#__PURE__*/ q(h, { children: [/*#__PURE__*/ K(f, {
|
|
683
683
|
variant: "default",
|
|
684
|
-
onClick:
|
|
684
|
+
onClick: i,
|
|
685
685
|
children: /*#__PURE__*/ K(X, { id: "dEgA5A" })
|
|
686
|
-
}), /*#__PURE__*/ K(
|
|
686
|
+
}), /*#__PURE__*/ K(f, {
|
|
687
687
|
variant: "primary-danger",
|
|
688
688
|
onClick: (t) => {
|
|
689
|
-
t.preventDefault(),
|
|
689
|
+
t.preventDefault(), a(e);
|
|
690
690
|
},
|
|
691
691
|
disabled: r,
|
|
692
692
|
"data-testid": "delete-image-button",
|
|
693
693
|
children: /*#__PURE__*/ K(X, { id: "cnGeoo" })
|
|
694
694
|
})] })
|
|
695
695
|
}),
|
|
696
|
-
children: [r && /*#__PURE__*/ K(
|
|
696
|
+
children: [r && /*#__PURE__*/ K(u, {
|
|
697
697
|
distribution: "center",
|
|
698
698
|
alignment: "center",
|
|
699
|
-
children: /*#__PURE__*/ K(
|
|
699
|
+
children: /*#__PURE__*/ K(l, { variant: "primary" })
|
|
700
700
|
}), !r && /*#__PURE__*/ q("div", {
|
|
701
701
|
className: "my-6",
|
|
702
702
|
children: [
|
|
703
|
-
|
|
704
|
-
text:
|
|
703
|
+
c > 0 && /*#__PURE__*/ q(G, { children: [/*#__PURE__*/ K(d, {
|
|
704
|
+
text: o._({
|
|
705
705
|
id: "Dh1qvV",
|
|
706
|
-
values: { deletableCount:
|
|
706
|
+
values: { deletableCount: c }
|
|
707
707
|
}),
|
|
708
708
|
variant: "danger",
|
|
709
709
|
className: "mb-6"
|
|
@@ -713,7 +713,7 @@ var Je = {
|
|
|
713
713
|
className: "jn:text-theme-high mb-3 font-semibold",
|
|
714
714
|
children: /*#__PURE__*/ K(X, {
|
|
715
715
|
id: "rwBVXS",
|
|
716
|
-
values: { deletableCount:
|
|
716
|
+
values: { deletableCount: c }
|
|
717
717
|
})
|
|
718
718
|
}), /*#__PURE__*/ K("div", {
|
|
719
719
|
className: "jn:bg-theme-background-lvl-1 max-h-24 overflow-y-auto rounded p-4",
|
|
@@ -726,7 +726,7 @@ var Je = {
|
|
|
726
726
|
})
|
|
727
727
|
})]
|
|
728
728
|
})] }),
|
|
729
|
-
|
|
729
|
+
p > 0 && /*#__PURE__*/ q("div", {
|
|
730
730
|
className: "mb-6",
|
|
731
731
|
children: [/*#__PURE__*/ K("h3", {
|
|
732
732
|
className: "jn:text-theme-high mb-3 font-semibold",
|
|
@@ -744,56 +744,56 @@ var Je = {
|
|
|
744
744
|
}),
|
|
745
745
|
/*#__PURE__*/ q("div", {
|
|
746
746
|
className: "jn:bg-theme-background-lvl-2 mb-6 rounded p-4",
|
|
747
|
-
children: [
|
|
747
|
+
children: [c > 0 && /*#__PURE__*/ q("div", {
|
|
748
748
|
className: "mb-2 flex justify-between",
|
|
749
749
|
children: [/*#__PURE__*/ K("span", {
|
|
750
750
|
className: "jn:text-theme-default",
|
|
751
751
|
children: /*#__PURE__*/ K(X, { id: "MJtNLd" })
|
|
752
752
|
}), /*#__PURE__*/ K("span", {
|
|
753
753
|
className: "jn:text-theme-highest font-semibold",
|
|
754
|
-
children:
|
|
754
|
+
children: c
|
|
755
755
|
})]
|
|
756
|
-
}),
|
|
756
|
+
}), p > 0 && /*#__PURE__*/ q("div", {
|
|
757
757
|
className: "flex justify-between",
|
|
758
758
|
children: [/*#__PURE__*/ K("span", {
|
|
759
759
|
className: "jn:text-theme-default",
|
|
760
760
|
children: /*#__PURE__*/ K(X, { id: "QxBGbh" })
|
|
761
761
|
}), /*#__PURE__*/ K("span", {
|
|
762
762
|
className: "jn:text-theme-warning font-semibold",
|
|
763
|
-
children:
|
|
763
|
+
children: p
|
|
764
764
|
})]
|
|
765
765
|
})]
|
|
766
766
|
})
|
|
767
767
|
]
|
|
768
768
|
})]
|
|
769
769
|
});
|
|
770
|
-
}, Ze = ({ activeImages: e, deactivatedImages: t, isOpen: n, isLoading: r, onClose:
|
|
771
|
-
let { i18n:
|
|
772
|
-
t.preventDefault(),
|
|
770
|
+
}, Ze = ({ activeImages: e, deactivatedImages: t, isOpen: n, isLoading: r, onClose: i, onDeactivate: a }) => {
|
|
771
|
+
let { i18n: o, _: s } = Z(), c = e.length, d = t.length, f = (t) => {
|
|
772
|
+
t.preventDefault(), a(e);
|
|
773
773
|
};
|
|
774
|
-
return /*#__PURE__*/ q(
|
|
775
|
-
onCancel:
|
|
774
|
+
return /*#__PURE__*/ q(w, {
|
|
775
|
+
onCancel: i,
|
|
776
776
|
size: "small",
|
|
777
|
-
title:
|
|
777
|
+
title: o._({ id: "+9CXS9" }),
|
|
778
778
|
open: n,
|
|
779
779
|
onConfirm: (e) => {
|
|
780
|
-
f(e),
|
|
780
|
+
f(e), i();
|
|
781
781
|
},
|
|
782
|
-
confirmButtonLabel:
|
|
783
|
-
cancelButtonLabel:
|
|
782
|
+
confirmButtonLabel: o._({ id: "5y3O+A" }),
|
|
783
|
+
cancelButtonLabel: o._({ id: "dEgA5A" }),
|
|
784
784
|
disableConfirmButton: r,
|
|
785
|
-
children: [r && /*#__PURE__*/ K(
|
|
785
|
+
children: [r && /*#__PURE__*/ K(u, {
|
|
786
786
|
distribution: "center",
|
|
787
787
|
alignment: "center",
|
|
788
|
-
children: /*#__PURE__*/ K(
|
|
788
|
+
children: /*#__PURE__*/ K(l, { variant: "primary" })
|
|
789
789
|
}), !r && /*#__PURE__*/ q("div", {
|
|
790
790
|
className: "my-6",
|
|
791
791
|
children: [
|
|
792
|
-
|
|
792
|
+
c > 0 && /*#__PURE__*/ q(G, { children: [/*#__PURE__*/ K("p", {
|
|
793
793
|
className: "mb-6",
|
|
794
794
|
children: /*#__PURE__*/ K(X, {
|
|
795
795
|
id: "zm7+/D",
|
|
796
|
-
values: { activeCount:
|
|
796
|
+
values: { activeCount: c },
|
|
797
797
|
components: { 0: /*#__PURE__*/ K("strong", {}) }
|
|
798
798
|
})
|
|
799
799
|
}), /*#__PURE__*/ q("div", {
|
|
@@ -802,7 +802,7 @@ var Je = {
|
|
|
802
802
|
className: "jn:text-theme-high mb-3 font-semibold",
|
|
803
803
|
children: /*#__PURE__*/ K(X, {
|
|
804
804
|
id: "ryxYVo",
|
|
805
|
-
values: { activeCount:
|
|
805
|
+
values: { activeCount: c }
|
|
806
806
|
})
|
|
807
807
|
}), /*#__PURE__*/ K("div", {
|
|
808
808
|
className: "jn:bg-theme-background-lvl-1 max-h-24 overflow-y-auto rounded p-4",
|
|
@@ -815,7 +815,7 @@ var Je = {
|
|
|
815
815
|
})
|
|
816
816
|
})]
|
|
817
817
|
})] }),
|
|
818
|
-
|
|
818
|
+
d > 0 && /*#__PURE__*/ q("div", {
|
|
819
819
|
className: "mb-6",
|
|
820
820
|
children: [/*#__PURE__*/ K("h3", {
|
|
821
821
|
className: "jn:text-theme-high mb-3 font-semibold",
|
|
@@ -833,54 +833,54 @@ var Je = {
|
|
|
833
833
|
}),
|
|
834
834
|
/*#__PURE__*/ q("div", {
|
|
835
835
|
className: "jn:bg-theme-background-lvl-2 mb-6 rounded p-4",
|
|
836
|
-
children: [
|
|
836
|
+
children: [c > 0 && /*#__PURE__*/ q("div", {
|
|
837
837
|
className: "mb-2 flex justify-between",
|
|
838
838
|
children: [/*#__PURE__*/ K("span", {
|
|
839
839
|
className: "jn:text-theme-default",
|
|
840
840
|
children: /*#__PURE__*/ K(X, { id: "rD9yV1" })
|
|
841
841
|
}), /*#__PURE__*/ K("span", {
|
|
842
842
|
className: "jn:text-theme-highest font-semibold",
|
|
843
|
-
children:
|
|
843
|
+
children: c
|
|
844
844
|
})]
|
|
845
|
-
}),
|
|
845
|
+
}), d > 0 && /*#__PURE__*/ q("div", {
|
|
846
846
|
className: "flex justify-between",
|
|
847
847
|
children: [/*#__PURE__*/ K("span", {
|
|
848
848
|
className: "jn:text-theme-default",
|
|
849
849
|
children: /*#__PURE__*/ K(X, { id: "NH2fsP" })
|
|
850
850
|
}), /*#__PURE__*/ K("span", {
|
|
851
851
|
className: "jn:text-theme-warning font-semibold",
|
|
852
|
-
children:
|
|
852
|
+
children: d
|
|
853
853
|
})]
|
|
854
854
|
})]
|
|
855
855
|
})
|
|
856
856
|
]
|
|
857
857
|
})]
|
|
858
858
|
});
|
|
859
|
-
}, Qe = ({ deactivatedImages: e, activeImages: t, isOpen: n, isLoading: r, onClose:
|
|
860
|
-
let { i18n:
|
|
861
|
-
return /*#__PURE__*/ q(
|
|
862
|
-
onCancel:
|
|
859
|
+
}, Qe = ({ deactivatedImages: e, activeImages: t, isOpen: n, isLoading: r, onClose: i, onActivate: a }) => {
|
|
860
|
+
let { i18n: o, _: s } = Z(), c = e.length, d = t.length;
|
|
861
|
+
return /*#__PURE__*/ q(w, {
|
|
862
|
+
onCancel: i,
|
|
863
863
|
size: "small",
|
|
864
|
-
title:
|
|
864
|
+
title: o._({ id: "UdcGJu" }),
|
|
865
865
|
open: n,
|
|
866
866
|
onConfirm: (t) => {
|
|
867
|
-
t.preventDefault(),
|
|
867
|
+
t.preventDefault(), a(e);
|
|
868
868
|
},
|
|
869
|
-
confirmButtonLabel:
|
|
870
|
-
cancelButtonLabel:
|
|
869
|
+
confirmButtonLabel: o._({ id: "FQBaXG" }),
|
|
870
|
+
cancelButtonLabel: o._({ id: "dEgA5A" }),
|
|
871
871
|
disableConfirmButton: r,
|
|
872
|
-
children: [r && /*#__PURE__*/ K(
|
|
872
|
+
children: [r && /*#__PURE__*/ K(u, {
|
|
873
873
|
distribution: "center",
|
|
874
874
|
alignment: "center",
|
|
875
|
-
children: /*#__PURE__*/ K(
|
|
875
|
+
children: /*#__PURE__*/ K(l, { variant: "primary" })
|
|
876
876
|
}), !r && /*#__PURE__*/ q("div", {
|
|
877
877
|
className: "my-6",
|
|
878
878
|
children: [
|
|
879
|
-
|
|
879
|
+
c > 0 && /*#__PURE__*/ q(G, { children: [/*#__PURE__*/ K("p", {
|
|
880
880
|
className: "mb-6",
|
|
881
881
|
children: /*#__PURE__*/ K(X, {
|
|
882
882
|
id: "MgZyuJ",
|
|
883
|
-
values: { deactivatedCount:
|
|
883
|
+
values: { deactivatedCount: c },
|
|
884
884
|
components: { 0: /*#__PURE__*/ K("strong", {}) }
|
|
885
885
|
})
|
|
886
886
|
}), /*#__PURE__*/ q("div", {
|
|
@@ -889,7 +889,7 @@ var Je = {
|
|
|
889
889
|
className: "jn:text-theme-high mb-3 font-semibold",
|
|
890
890
|
children: /*#__PURE__*/ K(X, {
|
|
891
891
|
id: "shKIZu",
|
|
892
|
-
values: { deactivatedCount:
|
|
892
|
+
values: { deactivatedCount: c }
|
|
893
893
|
})
|
|
894
894
|
}), /*#__PURE__*/ K("div", {
|
|
895
895
|
className: "jn:bg-theme-background-lvl-1 max-h-24 overflow-y-auto rounded p-4",
|
|
@@ -902,7 +902,7 @@ var Je = {
|
|
|
902
902
|
})
|
|
903
903
|
})]
|
|
904
904
|
})] }),
|
|
905
|
-
|
|
905
|
+
d > 0 && /*#__PURE__*/ q("div", {
|
|
906
906
|
className: "mb-6",
|
|
907
907
|
children: [/*#__PURE__*/ K("h3", {
|
|
908
908
|
className: "jn:text-theme-high mb-3 font-semibold",
|
|
@@ -920,23 +920,23 @@ var Je = {
|
|
|
920
920
|
}),
|
|
921
921
|
/*#__PURE__*/ q("div", {
|
|
922
922
|
className: "jn:bg-theme-background-lvl-2 mb-6 rounded p-4",
|
|
923
|
-
children: [
|
|
923
|
+
children: [c > 0 && /*#__PURE__*/ q("div", {
|
|
924
924
|
className: "mb-2 flex justify-between",
|
|
925
925
|
children: [/*#__PURE__*/ K("span", {
|
|
926
926
|
className: "jn:text-theme-default",
|
|
927
927
|
children: /*#__PURE__*/ K(X, { id: "4fvDRe" })
|
|
928
928
|
}), /*#__PURE__*/ K("span", {
|
|
929
929
|
className: "jn:text-theme-highest font-semibold",
|
|
930
|
-
children:
|
|
930
|
+
children: c
|
|
931
931
|
})]
|
|
932
|
-
}),
|
|
932
|
+
}), d > 0 && /*#__PURE__*/ q("div", {
|
|
933
933
|
className: "flex justify-between",
|
|
934
934
|
children: [/*#__PURE__*/ K("span", {
|
|
935
935
|
className: "jn:text-theme-default",
|
|
936
936
|
children: /*#__PURE__*/ K(X, { id: "x5l/TK" })
|
|
937
937
|
}), /*#__PURE__*/ K("span", {
|
|
938
938
|
className: "jn:text-theme-warning font-semibold",
|
|
939
|
-
children:
|
|
939
|
+
children: d
|
|
940
940
|
})]
|
|
941
941
|
})]
|
|
942
942
|
})
|
|
@@ -944,69 +944,69 @@ var Je = {
|
|
|
944
944
|
})]
|
|
945
945
|
});
|
|
946
946
|
}, $e = ({ isOpen: e, onClose: t, image: n, permissions: { canCreateMember: r, canDeleteMember: i } }) => {
|
|
947
|
-
let { i18n:
|
|
948
|
-
project_id:
|
|
947
|
+
let { i18n: a, _: o } = Z(), s = De(), [c, l] = J(null), [u, f] = J(!1), { data: p, isLoading: m } = D.compute.listImageMembers.useQuery({
|
|
948
|
+
project_id: s,
|
|
949
949
|
imageId: n?.id || ""
|
|
950
|
-
}, { enabled: e && !!n?.id }),
|
|
951
|
-
|
|
950
|
+
}, { enabled: e && !!n?.id }), h = () => {
|
|
951
|
+
l(null), f(!1), t();
|
|
952
952
|
};
|
|
953
953
|
if (!e || !n) return null;
|
|
954
|
-
let
|
|
955
|
-
return /*#__PURE__*/ K(
|
|
956
|
-
onCancel:
|
|
957
|
-
title:
|
|
954
|
+
let g = n.name || n.id;
|
|
955
|
+
return /*#__PURE__*/ K(w, {
|
|
956
|
+
onCancel: h,
|
|
957
|
+
title: a._({
|
|
958
958
|
id: "UQ7Wyv",
|
|
959
|
-
values: { imageName:
|
|
959
|
+
values: { imageName: g }
|
|
960
960
|
}),
|
|
961
961
|
open: e,
|
|
962
962
|
size: "xl",
|
|
963
|
-
children: /*#__PURE__*/ q("div", { children: [
|
|
964
|
-
onDismiss: () =>
|
|
965
|
-
text:
|
|
966
|
-
variant:
|
|
963
|
+
children: /*#__PURE__*/ q("div", { children: [c && /*#__PURE__*/ K(d, {
|
|
964
|
+
onDismiss: () => l(null),
|
|
965
|
+
text: c.text,
|
|
966
|
+
variant: c.type,
|
|
967
967
|
className: "mb-4"
|
|
968
968
|
}), /*#__PURE__*/ K(M, {
|
|
969
|
-
projectId:
|
|
969
|
+
projectId: s,
|
|
970
970
|
image: n,
|
|
971
971
|
imageMembers: p,
|
|
972
|
-
isMembersLoading:
|
|
972
|
+
isMembersLoading: m,
|
|
973
973
|
canAdd: r,
|
|
974
974
|
canRemove: i,
|
|
975
|
-
isAddingMember:
|
|
975
|
+
isAddingMember: u,
|
|
976
976
|
setIsAddingMember: f,
|
|
977
|
-
setMessage:
|
|
977
|
+
setMessage: l
|
|
978
978
|
})] })
|
|
979
979
|
});
|
|
980
980
|
};
|
|
981
981
|
//#endregion
|
|
982
982
|
//#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/ImageListView.tsx
|
|
983
|
-
function et({ images:
|
|
984
|
-
let F = De(), [R, U] = J(null), [fe, Se] = J(!1), [Oe, ke] = J(!1), [Ae, je] = J(!1), [Me, Ne] = J(!1), [Fe, Ie] = J(!1), [Le, Re] = J(!1), [Y, Z] = J(null), [Ve, Ue] = J(!1), [We, Ge] = J(null), [Ke, qe] = J(!1), [Je, et] = J(
|
|
983
|
+
function et({ images: e, suggestedImages: n, acceptedImages: r, permissions: s, isFetching: c, currentPage: d = 1, totalPages: f = 1, onPageChange: p, children: m, selectedImages: h, setSelectedImages: _, deleteAllModalOpen: v, setDeleteAllModalOpen: y, deactivateAllModalOpen: b, setDeactivateAllModalOpen: x, activateAllModalOpen: ee, setActivateAllModalOpen: ne, createModalOpen: w, setCreateModalOpen: T, deletableImages: re, protectedImages: O, activeImages: k, deactivatedImages: A, onImageUpdated: j, onImageDeleted: M, onMemberStatusChanged: N, hasAnyBulkAction: P }) {
|
|
984
|
+
let F = De(), [R, U] = J(null), [fe, Se] = J(!1), [Oe, ke] = J(!1), [Ae, je] = J(!1), [Me, Ne] = J(!1), [Fe, Ie] = J(!1), [Le, Re] = J(!1), [Y, Z] = J(null), [Ve, Ue] = J(!1), [We, Ge] = J(null), [Ke, qe] = J(!1), [Je, et] = J(d.toString());
|
|
985
985
|
Pe(() => {
|
|
986
|
-
et(
|
|
987
|
-
}, [
|
|
988
|
-
let Q =
|
|
986
|
+
et(d.toString());
|
|
987
|
+
}, [d]);
|
|
988
|
+
let Q = D.useUtils(), tt = D.compute.deleteImage.useMutation({ onSuccess: () => {
|
|
989
989
|
Q.compute.listImagesWithPagination.invalidate();
|
|
990
|
-
} }), nt =
|
|
990
|
+
} }), nt = D.compute.deactivateImage.useMutation({ onSuccess: () => {
|
|
991
991
|
Q.compute.listImagesWithPagination.invalidate(), Q.compute.getImageById.invalidate();
|
|
992
|
-
} }), rt =
|
|
992
|
+
} }), rt = D.compute.reactivateImage.useMutation({ onSuccess: () => {
|
|
993
993
|
Q.compute.listImagesWithPagination.invalidate(), Q.compute.getImageById.invalidate();
|
|
994
|
-
} }), it =
|
|
995
|
-
Q.compute.listImagesWithPagination.invalidate(),
|
|
996
|
-
} }), at =
|
|
997
|
-
Q.compute.listImagesWithPagination.invalidate(),
|
|
998
|
-
} }), ot =
|
|
999
|
-
Q.compute.listImagesWithPagination.invalidate(),
|
|
1000
|
-
} }), st =
|
|
994
|
+
} }), it = D.compute.deleteImages.useMutation({ onSuccess: () => {
|
|
995
|
+
Q.compute.listImagesWithPagination.invalidate(), _([]);
|
|
996
|
+
} }), at = D.compute.activateImages.useMutation({ onSuccess: () => {
|
|
997
|
+
Q.compute.listImagesWithPagination.invalidate(), _([]);
|
|
998
|
+
} }), ot = D.compute.deactivateImages.useMutation({ onSuccess: () => {
|
|
999
|
+
Q.compute.listImagesWithPagination.invalidate(), _([]);
|
|
1000
|
+
} }), st = D.compute.updateImage.useMutation({ onSuccess: (e) => {
|
|
1001
1001
|
Q.compute.listImagesWithPagination.invalidate(), Q.compute.getImageById.setData({
|
|
1002
1002
|
project_id: F,
|
|
1003
1003
|
imageId: e.id
|
|
1004
1004
|
}, e);
|
|
1005
|
-
} }), ct =
|
|
1005
|
+
} }), ct = D.compute.createImage.useMutation({ onSuccess: () => {
|
|
1006
1006
|
Q.compute.listImagesWithPagination.invalidate();
|
|
1007
|
-
} }), lt =
|
|
1007
|
+
} }), lt = D.compute.updateImageVisibility.useMutation({ onSuccess: (e) => {
|
|
1008
1008
|
j(e);
|
|
1009
|
-
} }), { data: ut } =
|
|
1009
|
+
} }), { data: ut } = D.compute.watchUploadProgress.useSubscription({
|
|
1010
1010
|
project_id: F,
|
|
1011
1011
|
uploadId: We || ""
|
|
1012
1012
|
}, { enabled: !!We && Ke }), dt = tt.isPending || nt.isPending || rt.isPending || it.isPending || at.isPending || ot.isPending || st.isPending, $ = () => U(null), ft = async (e, t, n) => {
|
|
@@ -1061,7 +1061,7 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1061
1061
|
project_id: F,
|
|
1062
1062
|
...e
|
|
1063
1063
|
});
|
|
1064
|
-
Ge(r.id), qe(!0), await
|
|
1064
|
+
Ge(r.id), qe(!0), await E.compute.uploadImage.mutate(t, { context: { headers: {
|
|
1065
1065
|
"x-project-id": F,
|
|
1066
1066
|
"x-upload-id": r.id,
|
|
1067
1067
|
"x-upload-size": String(t.size)
|
|
@@ -1073,7 +1073,7 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1073
1073
|
U(ce(t.name, n, { onDismiss: $ }));
|
|
1074
1074
|
}
|
|
1075
1075
|
} finally {
|
|
1076
|
-
Ue(!1),
|
|
1076
|
+
Ue(!1), T(!1), qe(!1), Ge(null);
|
|
1077
1077
|
}
|
|
1078
1078
|
}, gt = async (e) => {
|
|
1079
1079
|
Se(!1), ke(!1);
|
|
@@ -1133,7 +1133,7 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1133
1133
|
}, kt = () => {
|
|
1134
1134
|
Z(null), Re(!1);
|
|
1135
1135
|
}, At = async (e) => {
|
|
1136
|
-
|
|
1136
|
+
y(!1);
|
|
1137
1137
|
try {
|
|
1138
1138
|
let t = await it.mutateAsync({
|
|
1139
1139
|
project_id: F,
|
|
@@ -1145,7 +1145,7 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1145
1145
|
console.log("Bulk delete error: ", n), U(be(e.length, e.length, { onDismiss: $ }));
|
|
1146
1146
|
}
|
|
1147
1147
|
}, jt = async (e) => {
|
|
1148
|
-
|
|
1148
|
+
ne(!1);
|
|
1149
1149
|
try {
|
|
1150
1150
|
let t = await at.mutateAsync({
|
|
1151
1151
|
project_id: F,
|
|
@@ -1157,7 +1157,7 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1157
1157
|
console.log("Bulk activate error: ", n), U(xe(e.length, e.length, { onDismiss: $ }));
|
|
1158
1158
|
}
|
|
1159
1159
|
}, Mt = async (e) => {
|
|
1160
|
-
|
|
1160
|
+
x(!1);
|
|
1161
1161
|
try {
|
|
1162
1162
|
let t = await ot.mutateAsync({
|
|
1163
1163
|
project_id: F,
|
|
@@ -1169,30 +1169,30 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1169
1169
|
console.log("Bulk deactivate error: ", n), U(de(e.length, e.length, { onDismiss: $ }));
|
|
1170
1170
|
}
|
|
1171
1171
|
}, Nt = (e) => {
|
|
1172
|
-
e >= 1 && e <=
|
|
1172
|
+
e >= 1 && e <= f && (p?.(e), et(e.toString()));
|
|
1173
1173
|
};
|
|
1174
1174
|
return dt ? /*#__PURE__*/ K("div", {
|
|
1175
1175
|
"data-testid": "loading",
|
|
1176
|
-
children: /*#__PURE__*/ K(
|
|
1176
|
+
children: /*#__PURE__*/ K(o, { children: /*#__PURE__*/ K(i, {
|
|
1177
1177
|
colSpan: 3,
|
|
1178
|
-
children: /*#__PURE__*/ q(
|
|
1178
|
+
children: /*#__PURE__*/ q(u, {
|
|
1179
1179
|
distribution: "center",
|
|
1180
1180
|
alignment: "center",
|
|
1181
|
-
children: [/*#__PURE__*/ K(
|
|
1181
|
+
children: [/*#__PURE__*/ K(l, { variant: "primary" }), /*#__PURE__*/ K(X, { id: "Z3FXyt" })]
|
|
1182
1182
|
})
|
|
1183
1183
|
}) })
|
|
1184
1184
|
}) : /*#__PURE__*/ q(G, { children: [
|
|
1185
|
-
/*#__PURE__*/ K(G, { children:
|
|
1185
|
+
/*#__PURE__*/ K(G, { children: m }),
|
|
1186
1186
|
/*#__PURE__*/ q("div", {
|
|
1187
1187
|
className: "relative",
|
|
1188
1188
|
children: [
|
|
1189
|
-
|
|
1189
|
+
c && /*#__PURE__*/ K("div", {
|
|
1190
1190
|
className: "bg-theme-background-lvl-0/50 absolute inset-0 z-10 flex items-center justify-center backdrop-blur-sm",
|
|
1191
|
-
children: /*#__PURE__*/ q(
|
|
1191
|
+
children: /*#__PURE__*/ q(u, {
|
|
1192
1192
|
direction: "vertical",
|
|
1193
1193
|
alignment: "center",
|
|
1194
1194
|
gap: "2",
|
|
1195
|
-
children: [/*#__PURE__*/ K(
|
|
1195
|
+
children: [/*#__PURE__*/ K(l, {
|
|
1196
1196
|
variant: "primary",
|
|
1197
1197
|
size: "large"
|
|
1198
1198
|
}), /*#__PURE__*/ K("span", {
|
|
@@ -1201,44 +1201,44 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1201
1201
|
})]
|
|
1202
1202
|
})
|
|
1203
1203
|
}),
|
|
1204
|
-
|
|
1204
|
+
e.length > 0 ? /*#__PURE__*/ q(G, { children: [/*#__PURE__*/ q(S, {
|
|
1205
1205
|
columns: P ? 9 : 8,
|
|
1206
1206
|
minContentColumns: P ? [0, 8] : [7],
|
|
1207
1207
|
className: "images",
|
|
1208
1208
|
"data-testid": "images-table",
|
|
1209
|
-
children: [/*#__PURE__*/ q(
|
|
1210
|
-
P && /*#__PURE__*/ K(
|
|
1209
|
+
children: [/*#__PURE__*/ q(o, { children: [
|
|
1210
|
+
P && /*#__PURE__*/ K(a, { children: /*#__PURE__*/ K(te, {
|
|
1211
1211
|
checked: (() => {
|
|
1212
|
-
let
|
|
1213
|
-
return
|
|
1212
|
+
let t = e.map((e) => e.id);
|
|
1213
|
+
return t.length > 0 && t.every((e) => h.includes(e));
|
|
1214
1214
|
})(),
|
|
1215
1215
|
onChange: () => {
|
|
1216
|
-
let
|
|
1217
|
-
return
|
|
1216
|
+
let t = e.map((e) => e.id);
|
|
1217
|
+
return t.every((e) => h.includes(e)) ? _(h.filter((e) => !t.includes(e))) : _([...new Set([...h, ...t])]);
|
|
1218
1218
|
}
|
|
1219
1219
|
}) }),
|
|
1220
|
-
/*#__PURE__*/ K(
|
|
1221
|
-
/*#__PURE__*/ K(
|
|
1222
|
-
/*#__PURE__*/ K(
|
|
1223
|
-
/*#__PURE__*/ K(
|
|
1224
|
-
/*#__PURE__*/ K(
|
|
1225
|
-
/*#__PURE__*/ K(
|
|
1226
|
-
/*#__PURE__*/ K(
|
|
1227
|
-
/*#__PURE__*/ K(
|
|
1228
|
-
] }),
|
|
1220
|
+
/*#__PURE__*/ K(a, { children: /*#__PURE__*/ K(X, { id: "uAQUqI" }) }),
|
|
1221
|
+
/*#__PURE__*/ K(a, { children: /*#__PURE__*/ K(X, { id: "ExLULX" }) }),
|
|
1222
|
+
/*#__PURE__*/ K(a, { children: /*#__PURE__*/ K(X, { id: "2q/Q7x" }) }),
|
|
1223
|
+
/*#__PURE__*/ K(a, { children: /*#__PURE__*/ K(X, { id: "644xgx" }) }),
|
|
1224
|
+
/*#__PURE__*/ K(a, { children: /*#__PURE__*/ K(X, { id: "Cj2Gtd" }) }),
|
|
1225
|
+
/*#__PURE__*/ K(a, { children: /*#__PURE__*/ K(X, { id: "NopYGU" }) }),
|
|
1226
|
+
/*#__PURE__*/ K(a, { children: /*#__PURE__*/ K(X, { id: "d+F6q9" }) }),
|
|
1227
|
+
/*#__PURE__*/ K(a, {})
|
|
1228
|
+
] }), e.map((e) => /*#__PURE__*/ K(He, {
|
|
1229
1229
|
image: e,
|
|
1230
|
-
isSelected:
|
|
1231
|
-
isPending: !!
|
|
1232
|
-
isAccepted: !!
|
|
1233
|
-
permissions:
|
|
1230
|
+
isSelected: h.includes(e.id),
|
|
1231
|
+
isPending: !!n.find(({ id: t }) => t === e.id),
|
|
1232
|
+
isAccepted: !!r.find(({ id: t }) => t === e.id),
|
|
1233
|
+
permissions: s,
|
|
1234
1234
|
onEditDetails: bt,
|
|
1235
1235
|
onEditMetadata: xt,
|
|
1236
1236
|
onDelete: St,
|
|
1237
1237
|
onManageAccess: Ct,
|
|
1238
1238
|
showSelectColumn: P,
|
|
1239
1239
|
onSelect: (e) => {
|
|
1240
|
-
if (
|
|
1241
|
-
|
|
1240
|
+
if (h.includes(e.id)) return _(h.filter((t) => t !== e.id));
|
|
1241
|
+
_([...h, e.id]);
|
|
1242
1242
|
},
|
|
1243
1243
|
onActivationStatusChange: _t,
|
|
1244
1244
|
onUpdateVisibility: ft,
|
|
@@ -1247,14 +1247,14 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1247
1247
|
uploadProgressPercent: ut?.percent,
|
|
1248
1248
|
onMemberStatusChanged: N
|
|
1249
1249
|
}, e.id))]
|
|
1250
|
-
}),
|
|
1250
|
+
}), f > 1 && /*#__PURE__*/ K("div", {
|
|
1251
1251
|
className: "flex justify-center py-4",
|
|
1252
|
-
children: /*#__PURE__*/ K(
|
|
1252
|
+
children: /*#__PURE__*/ K(t, {
|
|
1253
1253
|
variant: "input",
|
|
1254
|
-
currentPage:
|
|
1255
|
-
pages:
|
|
1256
|
-
onPressPrevious: () => Nt(Math.max(
|
|
1257
|
-
onPressNext: () => Nt(Math.min(
|
|
1254
|
+
currentPage: d,
|
|
1255
|
+
pages: f,
|
|
1256
|
+
onPressPrevious: () => Nt(Math.max(d - 1, 1)),
|
|
1257
|
+
onPressNext: () => Nt(Math.min(d + 1, f)),
|
|
1258
1258
|
onSelectChange: (e) => {
|
|
1259
1259
|
Nt(e);
|
|
1260
1260
|
},
|
|
@@ -1264,18 +1264,18 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1264
1264
|
onKeyDown: (e) => {
|
|
1265
1265
|
if (e.key === "Enter" && Je !== "") {
|
|
1266
1266
|
let e = parseInt(Je, 10);
|
|
1267
|
-
!isNaN(e) && e >= 1 && e <=
|
|
1267
|
+
!isNaN(e) && e >= 1 && e <= f && Nt(e);
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
1270
|
})
|
|
1271
|
-
})] }) : /*#__PURE__*/ K(
|
|
1271
|
+
})] }) : /*#__PURE__*/ K(S, {
|
|
1272
1272
|
columns: 7,
|
|
1273
1273
|
minContentColumns: [0, 6],
|
|
1274
1274
|
className: "images",
|
|
1275
1275
|
"data-testid": "no-images",
|
|
1276
|
-
children: /*#__PURE__*/ K(
|
|
1276
|
+
children: /*#__PURE__*/ K(o, { children: /*#__PURE__*/ q(i, {
|
|
1277
1277
|
colSpan: 7,
|
|
1278
|
-
children: [/*#__PURE__*/ K(
|
|
1278
|
+
children: [/*#__PURE__*/ K(g, { children: /*#__PURE__*/ K(X, { id: "eYlnXt" }) }), /*#__PURE__*/ K("p", { children: /*#__PURE__*/ K(X, { id: "qvF2D8" }) })]
|
|
1279
1279
|
}) })
|
|
1280
1280
|
}),
|
|
1281
1281
|
Y && /*#__PURE__*/ q(G, { children: [
|
|
@@ -1297,7 +1297,7 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1297
1297
|
image: Y,
|
|
1298
1298
|
isOpen: Ae,
|
|
1299
1299
|
isLoading: dt,
|
|
1300
|
-
isDisabled: Y.protected || !
|
|
1300
|
+
isDisabled: Y.protected || !s.canDelete,
|
|
1301
1301
|
onClose: Et,
|
|
1302
1302
|
onDelete: gt
|
|
1303
1303
|
}),
|
|
@@ -1319,37 +1319,37 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1319
1319
|
image: Y,
|
|
1320
1320
|
isOpen: Le,
|
|
1321
1321
|
onClose: kt,
|
|
1322
|
-
permissions:
|
|
1322
|
+
permissions: s
|
|
1323
1323
|
})
|
|
1324
1324
|
] }),
|
|
1325
1325
|
/*#__PURE__*/ K(Xe, {
|
|
1326
|
-
isOpen:
|
|
1327
|
-
deletableImages:
|
|
1328
|
-
protectedImages:
|
|
1326
|
+
isOpen: v,
|
|
1327
|
+
deletableImages: re,
|
|
1328
|
+
protectedImages: O,
|
|
1329
1329
|
isLoading: dt,
|
|
1330
|
-
onClose: () =>
|
|
1330
|
+
onClose: () => y(!1),
|
|
1331
1331
|
onDelete: At
|
|
1332
1332
|
}),
|
|
1333
1333
|
/*#__PURE__*/ K(Ze, {
|
|
1334
|
-
isOpen:
|
|
1334
|
+
isOpen: b,
|
|
1335
1335
|
activeImages: k,
|
|
1336
1336
|
deactivatedImages: A,
|
|
1337
1337
|
isLoading: dt,
|
|
1338
|
-
onClose: () =>
|
|
1338
|
+
onClose: () => x(!1),
|
|
1339
1339
|
onDeactivate: Mt
|
|
1340
1340
|
}),
|
|
1341
1341
|
/*#__PURE__*/ K(Qe, {
|
|
1342
|
-
isOpen:
|
|
1342
|
+
isOpen: ee,
|
|
1343
1343
|
deactivatedImages: A,
|
|
1344
1344
|
activeImages: k,
|
|
1345
1345
|
isLoading: dt,
|
|
1346
|
-
onClose: () =>
|
|
1346
|
+
onClose: () => ne(!1),
|
|
1347
1347
|
onActivate: jt
|
|
1348
1348
|
}),
|
|
1349
1349
|
/*#__PURE__*/ K(Ye, {
|
|
1350
|
-
isOpen:
|
|
1350
|
+
isOpen: w,
|
|
1351
1351
|
onClose: () => {
|
|
1352
|
-
We && Q.compute.listImagesWithPagination.invalidate(),
|
|
1352
|
+
We && Q.compute.listImagesWithPagination.invalidate(), T(!1);
|
|
1353
1353
|
},
|
|
1354
1354
|
onCreate: ht,
|
|
1355
1355
|
isLoading: ct.isPending || Ke || Ve,
|
|
@@ -1358,7 +1358,7 @@ function et({ images: t, suggestedImages: a, acceptedImages: l, permissions: u,
|
|
|
1358
1358
|
})
|
|
1359
1359
|
]
|
|
1360
1360
|
}),
|
|
1361
|
-
R && /*#__PURE__*/ K(
|
|
1361
|
+
R && /*#__PURE__*/ K(C, {
|
|
1362
1362
|
...R,
|
|
1363
1363
|
className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
|
|
1364
1364
|
})
|
|
@@ -1466,10 +1466,10 @@ var Q = (e) => {
|
|
|
1466
1466
|
canDeleteMember: i,
|
|
1467
1467
|
canUpdateMember: a ?? !1
|
|
1468
1468
|
})), st = 50;
|
|
1469
|
-
function ct({ imagesPromise:
|
|
1470
|
-
let { i18n: N, _: P } = Z(), F = Me(
|
|
1469
|
+
function ct({ imagesPromise: t, imageOverrides: i, deletedImageIds: a, permissionsPromise: o, searchTerm: c, setSearchTerm: l, sortSettings: d, handleSortChange: h, filterSettings: g, handleFilterChange: _, selectedImages: b, setSelectedImages: x, createModalOpen: ee, setCreateModalOpen: S, deleteAllModalOpen: ne, setDeleteAllModalOpen: C, deactivateAllModalOpen: w, setDeactivateAllModalOpen: T, activateAllModalOpen: re, setActivateAllModalOpen: E, memberStatusView: D, setMemberStatusView: O, isFetching: k, currentPage: A, onPageChange: M, onImageUpdated: ie, onImageDeleted: ae, onMemberStatusChanged: oe }) {
|
|
1470
|
+
let { i18n: N, _: P } = Z(), F = Me(t), L = Me(o), [R, z] = J(c), B = Ie(void 0);
|
|
1471
1471
|
if (Pe(() => () => clearTimeout(B.current), []), F.listError) return /*#__PURE__*/ K("p", { children: F.listError });
|
|
1472
|
-
let V = F.images.filter((e) => !
|
|
1472
|
+
let V = F.images.filter((e) => !a.has(e.id)).map((e) => i.get(e.id) ?? e), se = Math.max(1, Math.ceil(V.length / st)), ce = Math.min(A, se), H = V.slice((ce - 1) * st, ce * st);
|
|
1473
1473
|
Pe(() => {
|
|
1474
1474
|
A !== 1 && A > se && M(1);
|
|
1475
1475
|
}, [
|
|
@@ -1477,11 +1477,11 @@ function ct({ imagesPromise: e, imageOverrides: n, deletedImageIds: r, permissio
|
|
|
1477
1477
|
A,
|
|
1478
1478
|
M
|
|
1479
1479
|
]);
|
|
1480
|
-
let U =
|
|
1481
|
-
...
|
|
1482
|
-
filters:
|
|
1483
|
-
selectedFilters: (
|
|
1484
|
-
} :
|
|
1480
|
+
let U = D === "pending" || D === "accepted" ? {
|
|
1481
|
+
...g,
|
|
1482
|
+
filters: g.filters.filter((e) => e.filterName !== "visibility"),
|
|
1483
|
+
selectedFilters: (g.selectedFilters || []).filter((e) => e.name !== "visibility")
|
|
1484
|
+
} : g, le = new Set(V.map((e) => e.id)), W = b.filter((e) => le.has(e)), ue = W.filter((e) => {
|
|
1485
1485
|
let t = V.find((t) => t.id === e);
|
|
1486
1486
|
return t && !t.protected;
|
|
1487
1487
|
}), de = W.filter((e) => {
|
|
@@ -1508,144 +1508,144 @@ function ct({ imagesPromise: e, imageOverrides: n, deletedImageIds: r, permissio
|
|
|
1508
1508
|
value: "pending"
|
|
1509
1509
|
}
|
|
1510
1510
|
],
|
|
1511
|
-
activeItem:
|
|
1512
|
-
onActiveItemChange: (e) =>
|
|
1511
|
+
activeItem: D,
|
|
1512
|
+
onActiveItemChange: (e) => O(e)
|
|
1513
1513
|
};
|
|
1514
1514
|
return /*#__PURE__*/ q(G, { children: [
|
|
1515
|
-
/*#__PURE__*/ q(
|
|
1515
|
+
/*#__PURE__*/ q(u, {
|
|
1516
1516
|
distribution: "between",
|
|
1517
1517
|
alignment: "center",
|
|
1518
1518
|
gap: "2",
|
|
1519
|
-
children: [/*#__PURE__*/ K(
|
|
1520
|
-
activeItem:
|
|
1519
|
+
children: [/*#__PURE__*/ K(s, {
|
|
1520
|
+
activeItem: D,
|
|
1521
1521
|
onActiveItemChange: _e.onActiveItemChange,
|
|
1522
|
-
children: _e.items.map((e) => /*#__PURE__*/ K(
|
|
1522
|
+
children: _e.items.map((e) => /*#__PURE__*/ K(r, {
|
|
1523
1523
|
label: e.label,
|
|
1524
1524
|
value: e.value
|
|
1525
1525
|
}, e.value))
|
|
1526
|
-
}), /*#__PURE__*/ q(
|
|
1526
|
+
}), /*#__PURE__*/ q(u, {
|
|
1527
1527
|
gap: "0.5",
|
|
1528
1528
|
alignment: "center",
|
|
1529
1529
|
children: [/*#__PURE__*/ K(j, {
|
|
1530
|
-
options:
|
|
1531
|
-
sortBy:
|
|
1532
|
-
sortDirection:
|
|
1533
|
-
onSortByChange: (e) =>
|
|
1534
|
-
...
|
|
1530
|
+
options: d.options,
|
|
1531
|
+
sortBy: d.sortBy,
|
|
1532
|
+
sortDirection: d.sortDirection ?? "desc",
|
|
1533
|
+
onSortByChange: (e) => h({
|
|
1534
|
+
...d,
|
|
1535
1535
|
sortBy: e,
|
|
1536
|
-
sortDirection:
|
|
1536
|
+
sortDirection: d.sortDirection
|
|
1537
1537
|
}),
|
|
1538
|
-
onSortDirectionChange: (e) =>
|
|
1539
|
-
...
|
|
1538
|
+
onSortDirectionChange: (e) => h({
|
|
1539
|
+
...d,
|
|
1540
1540
|
sortDirection: e
|
|
1541
1541
|
})
|
|
1542
|
-
}), L.canCreate && /*#__PURE__*/ K(
|
|
1543
|
-
onClick: () =>
|
|
1542
|
+
}), L.canCreate && /*#__PURE__*/ K(f, {
|
|
1543
|
+
onClick: () => S(!0),
|
|
1544
1544
|
variant: "primary",
|
|
1545
1545
|
children: /*#__PURE__*/ K(X, { id: "a/nTb8" })
|
|
1546
1546
|
})]
|
|
1547
1547
|
})]
|
|
1548
1548
|
}),
|
|
1549
|
-
/*#__PURE__*/ K(
|
|
1549
|
+
/*#__PURE__*/ K(p, { children: /*#__PURE__*/ q(u, {
|
|
1550
1550
|
direction: "vertical",
|
|
1551
1551
|
gap: "2",
|
|
1552
|
-
children: [/*#__PURE__*/ q(
|
|
1552
|
+
children: [/*#__PURE__*/ q(u, {
|
|
1553
1553
|
distribution: "between",
|
|
1554
1554
|
alignment: "center",
|
|
1555
1555
|
children: [/*#__PURE__*/ K(ke, {
|
|
1556
1556
|
filters: U.filters,
|
|
1557
1557
|
onChange: (e) => {
|
|
1558
1558
|
let t = nt(U.selectedFilters || [], e, U.filters);
|
|
1559
|
-
t !== (U.selectedFilters || []) &&
|
|
1560
|
-
...
|
|
1559
|
+
t !== (U.selectedFilters || []) && _({
|
|
1560
|
+
...g,
|
|
1561
1561
|
selectedFilters: t
|
|
1562
1562
|
});
|
|
1563
1563
|
}
|
|
1564
|
-
}), /*#__PURE__*/ K(
|
|
1564
|
+
}), /*#__PURE__*/ K(n, {
|
|
1565
1565
|
placeholder: N._({ id: "0cl0a5" }),
|
|
1566
1566
|
"data-testid": "searchbar",
|
|
1567
1567
|
value: R,
|
|
1568
1568
|
onInput: (e) => {
|
|
1569
1569
|
let t = e.currentTarget.value;
|
|
1570
|
-
z(t), clearTimeout(B.current), B.current = window.setTimeout(() =>
|
|
1570
|
+
z(t), clearTimeout(B.current), B.current = window.setTimeout(() => l(t), 500);
|
|
1571
1571
|
},
|
|
1572
1572
|
onSearch: (e) => {
|
|
1573
|
-
clearTimeout(B.current),
|
|
1573
|
+
clearTimeout(B.current), l(typeof e == "string" ? e : "");
|
|
1574
1574
|
},
|
|
1575
1575
|
onClear: () => {
|
|
1576
|
-
clearTimeout(B.current), z(""),
|
|
1576
|
+
clearTimeout(B.current), z(""), l("");
|
|
1577
1577
|
}
|
|
1578
1578
|
})]
|
|
1579
1579
|
}), U.selectedFilters && U.selectedFilters.length > 0 && /*#__PURE__*/ K(Oe, {
|
|
1580
1580
|
selectedFilters: U.selectedFilters,
|
|
1581
|
-
onDelete: (e) =>
|
|
1582
|
-
...
|
|
1583
|
-
selectedFilters: (
|
|
1581
|
+
onDelete: (e) => _({
|
|
1582
|
+
...g,
|
|
1583
|
+
selectedFilters: (g.selectedFilters || []).filter((t) => !(t.name === e.name && t.value === e.value))
|
|
1584
1584
|
}),
|
|
1585
|
-
onClear: () =>
|
|
1586
|
-
...
|
|
1585
|
+
onClear: () => _({
|
|
1586
|
+
...g,
|
|
1587
1587
|
selectedFilters: []
|
|
1588
1588
|
})
|
|
1589
1589
|
})]
|
|
1590
1590
|
}) }),
|
|
1591
|
-
(L.canDelete || L.canUpdate) && /*#__PURE__*/ K(
|
|
1591
|
+
(L.canDelete || L.canUpdate) && /*#__PURE__*/ K(p, { children: /*#__PURE__*/ K(u, {
|
|
1592
1592
|
distribution: "between",
|
|
1593
1593
|
alignment: "center",
|
|
1594
|
-
children: /*#__PURE__*/ q(
|
|
1594
|
+
children: /*#__PURE__*/ q(u, {
|
|
1595
1595
|
gap: "2",
|
|
1596
1596
|
alignment: "center",
|
|
1597
|
-
children: [/*#__PURE__*/ K(
|
|
1597
|
+
children: [/*#__PURE__*/ K(te, {
|
|
1598
1598
|
checked: W.length > 0 && H.every((e) => W.includes(e.id)),
|
|
1599
1599
|
indeterminate: W.length > 0 && !H.every((e) => W.includes(e.id)),
|
|
1600
1600
|
onChange: () => {
|
|
1601
1601
|
let e = H.map((e) => e.id);
|
|
1602
|
-
e.every((e) => W.includes(e)) ?
|
|
1602
|
+
e.every((e) => W.includes(e)) ? x(W.filter((t) => !e.includes(t))) : x([...new Set([...W, ...e])]);
|
|
1603
1603
|
}
|
|
1604
|
-
}), /*#__PURE__*/ q(
|
|
1604
|
+
}), /*#__PURE__*/ q(e, { children: [/*#__PURE__*/ K(v, {
|
|
1605
1605
|
as: "div",
|
|
1606
|
-
children: /*#__PURE__*/ K(
|
|
1606
|
+
children: /*#__PURE__*/ K(f, {
|
|
1607
1607
|
size: "small",
|
|
1608
1608
|
icon: "moreVert",
|
|
1609
1609
|
label: N._({ id: "7L01XJ" })
|
|
1610
1610
|
})
|
|
1611
|
-
}), /*#__PURE__*/ q(
|
|
1612
|
-
L.canDelete && /*#__PURE__*/ K(
|
|
1611
|
+
}), /*#__PURE__*/ q(m, { children: [
|
|
1612
|
+
L.canDelete && /*#__PURE__*/ K(y, {
|
|
1613
1613
|
disabled: me,
|
|
1614
1614
|
label: N._({ id: "c6b6fz" }),
|
|
1615
|
-
onClick: () =>
|
|
1615
|
+
onClick: () => C(!0)
|
|
1616
1616
|
}),
|
|
1617
|
-
L.canUpdate && /*#__PURE__*/ K(
|
|
1617
|
+
L.canUpdate && /*#__PURE__*/ K(y, {
|
|
1618
1618
|
disabled: he,
|
|
1619
1619
|
label: N._({ id: "UmQ3/m" }),
|
|
1620
|
-
onClick: () =>
|
|
1620
|
+
onClick: () => T(!0)
|
|
1621
1621
|
}),
|
|
1622
|
-
L.canUpdate && /*#__PURE__*/ K(
|
|
1622
|
+
L.canUpdate && /*#__PURE__*/ K(y, {
|
|
1623
1623
|
disabled: ge,
|
|
1624
1624
|
label: N._({ id: "d/I0J3" }),
|
|
1625
|
-
onClick: () =>
|
|
1625
|
+
onClick: () => E(!0)
|
|
1626
1626
|
})
|
|
1627
1627
|
] })] })]
|
|
1628
1628
|
})
|
|
1629
1629
|
}) }),
|
|
1630
1630
|
/*#__PURE__*/ K(et, {
|
|
1631
1631
|
images: H,
|
|
1632
|
-
suggestedImages:
|
|
1633
|
-
acceptedImages:
|
|
1632
|
+
suggestedImages: D === "pending" ? H : [],
|
|
1633
|
+
acceptedImages: D === "accepted" ? H : [],
|
|
1634
1634
|
permissions: L,
|
|
1635
1635
|
isFetching: k,
|
|
1636
1636
|
currentPage: ce,
|
|
1637
1637
|
totalPages: se,
|
|
1638
1638
|
onPageChange: M,
|
|
1639
|
-
selectedImages:
|
|
1640
|
-
setSelectedImages:
|
|
1641
|
-
deleteAllModalOpen:
|
|
1642
|
-
setDeleteAllModalOpen:
|
|
1643
|
-
deactivateAllModalOpen:
|
|
1644
|
-
setDeactivateAllModalOpen:
|
|
1645
|
-
activateAllModalOpen:
|
|
1646
|
-
setActivateAllModalOpen:
|
|
1647
|
-
createModalOpen:
|
|
1648
|
-
setCreateModalOpen:
|
|
1639
|
+
selectedImages: b,
|
|
1640
|
+
setSelectedImages: x,
|
|
1641
|
+
deleteAllModalOpen: ne,
|
|
1642
|
+
setDeleteAllModalOpen: C,
|
|
1643
|
+
deactivateAllModalOpen: w,
|
|
1644
|
+
setDeactivateAllModalOpen: T,
|
|
1645
|
+
activateAllModalOpen: re,
|
|
1646
|
+
setActivateAllModalOpen: E,
|
|
1647
|
+
createModalOpen: ee,
|
|
1648
|
+
setCreateModalOpen: S,
|
|
1649
1649
|
deletableImages: ue,
|
|
1650
1650
|
protectedImages: de,
|
|
1651
1651
|
activeImages: fe,
|
|
@@ -1658,7 +1658,7 @@ function ct({ imagesPromise: e, imageOverrides: n, deletedImageIds: r, permissio
|
|
|
1658
1658
|
] });
|
|
1659
1659
|
}
|
|
1660
1660
|
var lt = ({ client: e, project: t }) => {
|
|
1661
|
-
let { i18n: n, _: r } = Z(),
|
|
1661
|
+
let { i18n: n, _: r } = Z(), i = Le(), a = Y({ strict: !1 }), [o, s] = J({
|
|
1662
1662
|
options: [
|
|
1663
1663
|
{
|
|
1664
1664
|
label: n._({ id: "88kg0+" }),
|
|
@@ -1681,9 +1681,9 @@ var lt = ({ client: e, project: t }) => {
|
|
|
1681
1681
|
value: "status"
|
|
1682
1682
|
}
|
|
1683
1683
|
],
|
|
1684
|
-
sortBy:
|
|
1685
|
-
sortDirection:
|
|
1686
|
-
}), [
|
|
1684
|
+
sortBy: a.sortBy || "created_at",
|
|
1685
|
+
sortDirection: a.sortDirection || "desc"
|
|
1686
|
+
}), [c, f] = J({
|
|
1687
1687
|
filters: [
|
|
1688
1688
|
{
|
|
1689
1689
|
displayName: n._({ id: "uAQUqI" }),
|
|
@@ -1716,59 +1716,59 @@ var lt = ({ client: e, project: t }) => {
|
|
|
1716
1716
|
supportsMultiValue: !1
|
|
1717
1717
|
}
|
|
1718
1718
|
],
|
|
1719
|
-
selectedFilters: Q(
|
|
1720
|
-
}), [p, m] = J(
|
|
1721
|
-
|
|
1719
|
+
selectedFilters: Q(a)
|
|
1720
|
+
}), [p, m] = J(a.search || ""), h = a.page ?? 1, [g, _] = J([]), [v, y] = J(!1), [b, x] = J(!1), [ee, S] = J(!1), [te, ne] = J(!1), C = a.memberStatus ?? "all", [w, T] = J(!0), [re, E] = J(/* @__PURE__ */ new Map()), [D, O] = J(/* @__PURE__ */ new Set()), [k, A] = J(() => new Promise(() => {})), [j] = J(() => ot(e, t)), M = Ne((e) => {
|
|
1721
|
+
E((t) => new Map(t).set(e.id, e));
|
|
1722
1722
|
}, []), ie = Ne((e) => {
|
|
1723
|
-
|
|
1723
|
+
O((t) => {
|
|
1724
1724
|
let n = new Set(t);
|
|
1725
1725
|
return Array.isArray(e) ? e.forEach((e) => n.add(e)) : n.add(e), n;
|
|
1726
1726
|
});
|
|
1727
1727
|
}, []), ae = Ne(() => {
|
|
1728
|
-
|
|
1729
|
-
let n =
|
|
1728
|
+
E(/* @__PURE__ */ new Map()), T(!0);
|
|
1729
|
+
let n = a.memberStatus ?? "all", r = n === "all" ? void 0 : n;
|
|
1730
1730
|
je(() => {
|
|
1731
|
-
let i = n === "pending" || n === "accepted" ? (
|
|
1732
|
-
...tt(i,
|
|
1731
|
+
let i = n === "pending" || n === "accepted" ? (c.selectedFilters || []).filter((e) => e.name !== "visibility") : c.selectedFilters || [], a = at(e, t, o.sortBy, o.sortDirection, p, {
|
|
1732
|
+
...tt(i, c.filters),
|
|
1733
1733
|
member_status: r
|
|
1734
1734
|
});
|
|
1735
|
-
a.catch(() => {}).finally(() =>
|
|
1735
|
+
a.catch(() => {}).finally(() => T(!1)), A(a);
|
|
1736
1736
|
});
|
|
1737
1737
|
}, [
|
|
1738
1738
|
e,
|
|
1739
|
-
|
|
1739
|
+
o,
|
|
1740
1740
|
p,
|
|
1741
|
-
|
|
1742
|
-
|
|
1741
|
+
c,
|
|
1742
|
+
a.memberStatus
|
|
1743
1743
|
]);
|
|
1744
1744
|
Pe(() => {
|
|
1745
|
-
let n = Q(
|
|
1745
|
+
let n = Q(a), r = a.sortBy || "created_at", i = a.sortDirection || "desc", o = a.search || "";
|
|
1746
1746
|
f((e) => ({
|
|
1747
1747
|
...e,
|
|
1748
1748
|
selectedFilters: n
|
|
1749
|
-
})),
|
|
1749
|
+
})), s((e) => ({
|
|
1750
1750
|
...e,
|
|
1751
1751
|
sortBy: r,
|
|
1752
1752
|
sortDirection: i
|
|
1753
|
-
})), m(
|
|
1754
|
-
let
|
|
1753
|
+
})), m(o), _([]), E(/* @__PURE__ */ new Map()), T(!0);
|
|
1754
|
+
let l = a.memberStatus ?? "all", u = l === "all" ? void 0 : l;
|
|
1755
1755
|
je(() => {
|
|
1756
|
-
let
|
|
1757
|
-
...tt(
|
|
1758
|
-
member_status:
|
|
1756
|
+
let a = at(e, t, r, i, o, {
|
|
1757
|
+
...tt(l === "pending" || l === "accepted" ? (n || []).filter((e) => e.name !== "visibility") : n || [], c.filters),
|
|
1758
|
+
member_status: u
|
|
1759
1759
|
});
|
|
1760
|
-
|
|
1760
|
+
a.catch(() => {}).finally(() => T(!1)), A(a);
|
|
1761
1761
|
});
|
|
1762
1762
|
}, [
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1763
|
+
a.status,
|
|
1764
|
+
a.visibility,
|
|
1765
|
+
a.disk_format,
|
|
1766
|
+
a.container_format,
|
|
1767
|
+
a.protected,
|
|
1768
|
+
a.sortBy,
|
|
1769
|
+
a.sortDirection,
|
|
1770
|
+
a.search,
|
|
1771
|
+
a.memberStatus
|
|
1772
1772
|
]);
|
|
1773
1773
|
let oe = (e) => {
|
|
1774
1774
|
let t = {
|
|
@@ -1776,7 +1776,7 @@ var lt = ({ client: e, project: t }) => {
|
|
|
1776
1776
|
sortBy: e.sortBy?.toString() || "created_at",
|
|
1777
1777
|
sortDirection: e.sortDirection || "desc"
|
|
1778
1778
|
};
|
|
1779
|
-
|
|
1779
|
+
s(t), i({
|
|
1780
1780
|
search: (e) => ({
|
|
1781
1781
|
...e,
|
|
1782
1782
|
sortBy: t.sortBy,
|
|
@@ -1786,7 +1786,7 @@ var lt = ({ client: e, project: t }) => {
|
|
|
1786
1786
|
replace: !0
|
|
1787
1787
|
});
|
|
1788
1788
|
}, N = (e) => {
|
|
1789
|
-
f(e),
|
|
1789
|
+
f(e), i({
|
|
1790
1790
|
search: (t) => rt(e.selectedFilters || [], e.filters, {
|
|
1791
1791
|
search: t.search,
|
|
1792
1792
|
sortBy: t.sortBy,
|
|
@@ -1797,7 +1797,7 @@ var lt = ({ client: e, project: t }) => {
|
|
|
1797
1797
|
});
|
|
1798
1798
|
}, P = (e) => {
|
|
1799
1799
|
let t = typeof e == "string" ? e : "";
|
|
1800
|
-
m(t),
|
|
1800
|
+
m(t), i({
|
|
1801
1801
|
search: (e) => ({
|
|
1802
1802
|
...e,
|
|
1803
1803
|
search: t || void 0,
|
|
@@ -1806,32 +1806,32 @@ var lt = ({ client: e, project: t }) => {
|
|
|
1806
1806
|
replace: !0
|
|
1807
1807
|
});
|
|
1808
1808
|
}, L = (e) => {
|
|
1809
|
-
|
|
1809
|
+
i({ search: (t) => ({
|
|
1810
1810
|
sortBy: t.sortBy,
|
|
1811
1811
|
sortDirection: t.sortDirection,
|
|
1812
1812
|
search: t.search,
|
|
1813
1813
|
memberStatus: e === "all" ? void 0 : e
|
|
1814
1814
|
}) });
|
|
1815
1815
|
}, z = Ne((e) => {
|
|
1816
|
-
|
|
1816
|
+
i({ search: (t) => ({
|
|
1817
1817
|
...t,
|
|
1818
1818
|
page: e === 1 ? void 0 : e
|
|
1819
1819
|
}) });
|
|
1820
|
-
}, [
|
|
1820
|
+
}, [i]);
|
|
1821
1821
|
return /*#__PURE__*/ K("div", {
|
|
1822
1822
|
className: "relative",
|
|
1823
1823
|
children: /*#__PURE__*/ K(Ve, {
|
|
1824
|
-
fallbackRender: ({ error: e }) => /*#__PURE__*/ K(
|
|
1824
|
+
fallbackRender: ({ error: e }) => /*#__PURE__*/ K(d, {
|
|
1825
1825
|
variant: "error",
|
|
1826
1826
|
text: e instanceof Error ? e.message : n._({ id: "W5A0Ly" })
|
|
1827
1827
|
}),
|
|
1828
1828
|
children: /*#__PURE__*/ K(Ae, {
|
|
1829
|
-
fallback: /*#__PURE__*/ q(
|
|
1829
|
+
fallback: /*#__PURE__*/ q(u, {
|
|
1830
1830
|
className: "fixed inset-0",
|
|
1831
1831
|
distribution: "center",
|
|
1832
1832
|
alignment: "center",
|
|
1833
1833
|
direction: "vertical",
|
|
1834
|
-
children: [/*#__PURE__*/ K(
|
|
1834
|
+
children: [/*#__PURE__*/ K(l, {
|
|
1835
1835
|
variant: "primary",
|
|
1836
1836
|
size: "large",
|
|
1837
1837
|
className: "mb-2"
|
|
@@ -1839,14 +1839,14 @@ var lt = ({ client: e, project: t }) => {
|
|
|
1839
1839
|
}),
|
|
1840
1840
|
children: /*#__PURE__*/ K(ct, {
|
|
1841
1841
|
imagesPromise: k,
|
|
1842
|
-
imageOverrides:
|
|
1843
|
-
deletedImageIds:
|
|
1842
|
+
imageOverrides: re,
|
|
1843
|
+
deletedImageIds: D,
|
|
1844
1844
|
permissionsPromise: j,
|
|
1845
1845
|
searchTerm: p,
|
|
1846
1846
|
setSearchTerm: P,
|
|
1847
|
-
sortSettings:
|
|
1847
|
+
sortSettings: o,
|
|
1848
1848
|
handleSortChange: oe,
|
|
1849
|
-
filterSettings:
|
|
1849
|
+
filterSettings: c,
|
|
1850
1850
|
handleFilterChange: N,
|
|
1851
1851
|
selectedImages: g,
|
|
1852
1852
|
setSelectedImages: _,
|
|
@@ -1856,11 +1856,11 @@ var lt = ({ client: e, project: t }) => {
|
|
|
1856
1856
|
setDeleteAllModalOpen: x,
|
|
1857
1857
|
deactivateAllModalOpen: ee,
|
|
1858
1858
|
setDeactivateAllModalOpen: S,
|
|
1859
|
-
activateAllModalOpen:
|
|
1860
|
-
setActivateAllModalOpen:
|
|
1861
|
-
memberStatusView:
|
|
1859
|
+
activateAllModalOpen: te,
|
|
1860
|
+
setActivateAllModalOpen: ne,
|
|
1861
|
+
memberStatusView: C,
|
|
1862
1862
|
setMemberStatusView: L,
|
|
1863
|
-
isFetching:
|
|
1863
|
+
isFetching: w,
|
|
1864
1864
|
currentPage: h,
|
|
1865
1865
|
onPageChange: z,
|
|
1866
1866
|
onImageUpdated: M,
|
|
@@ -1887,4 +1887,4 @@ function ut() {
|
|
|
1887
1887
|
//#endregion
|
|
1888
1888
|
export { ut as component };
|
|
1889
1889
|
|
|
1890
|
-
//# sourceMappingURL=images-
|
|
1890
|
+
//# sourceMappingURL=images-Cp6V1nF5.mjs.map
|