@cobaltcore-dev/aurora 0.12.1 → 0.13.1
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/BucketToastNotifications-CxQ0_Spa.mjs +562 -0
- package/dist/client/BucketToastNotifications-CxQ0_Spa.mjs.map +1 -0
- package/dist/client/{ContentHeader-D2nIdJKJ.mjs → ContentHeader-BIScbvb4.mjs} +6 -2
- package/dist/client/ContentHeader-BIScbvb4.mjs.map +1 -0
- package/dist/client/{FloatingIpActionModals-RCvaamOg.mjs → FloatingIpActionModals-DWS9UO6o.mjs} +2 -2
- package/dist/client/{FloatingIpActionModals-RCvaamOg.mjs.map → FloatingIpActionModals-DWS9UO6o.mjs.map} +1 -1
- package/dist/client/{ImageToastNotifications-ClO-1yOH.mjs → ImageToastNotifications-B2BIyk1P.mjs} +2 -2
- package/dist/client/{ImageToastNotifications-ClO-1yOH.mjs.map → ImageToastNotifications-B2BIyk1P.mjs.map} +1 -1
- package/dist/client/{_flavorId-CtQEd28h.mjs → _flavorId-CSEkiIo3.mjs} +3 -2
- package/dist/client/_flavorId-CSEkiIo3.mjs.map +1 -0
- package/dist/client/{_flavorId-DVsGdXUf.mjs → _flavorId-DGYrR9ri.mjs} +4 -4
- package/dist/client/_flavorId-DGYrR9ri.mjs.map +1 -0
- package/dist/client/{_floatingIpId-CKMq7-4p2.mjs → _floatingIpId-DnSQdKNp2.mjs} +4 -4
- package/dist/client/{_floatingIpId-CKMq7-4p2.mjs.map → _floatingIpId-DnSQdKNp2.mjs.map} +1 -1
- package/dist/client/{_floatingIpId-DvTh6vdB.mjs → _floatingIpId-uQHRPZPg.mjs} +3 -2
- package/dist/client/_floatingIpId-uQHRPZPg.mjs.map +1 -0
- package/dist/client/{_imageId-xG8hC49j.mjs → _imageId-BFqkCs9I.mjs} +4 -4
- package/dist/client/_imageId-BFqkCs9I.mjs.map +1 -0
- package/dist/client/{_pcaId-Db_t0x6O.mjs → _pcaId-B1nd5Nm5.mjs} +4 -4
- package/dist/client/{_pcaId-Db_t0x6O.mjs.map → _pcaId-B1nd5Nm5.mjs.map} +1 -1
- package/dist/client/{_pcaId-WCJoukIk.mjs → _pcaId-CmcN3vRn.mjs} +12 -10
- package/dist/client/_pcaId-CmcN3vRn.mjs.map +1 -0
- package/dist/client/{_projectId-BCMkaH_h.mjs → _projectId-CX6OtON6.mjs} +54 -53
- package/dist/client/_projectId-CX6OtON6.mjs.map +1 -0
- package/dist/client/{_projectId-C8RGOqZb.mjs → _projectId-Dn_GjZnp.mjs} +2 -2
- package/dist/client/{_projectId-C8RGOqZb.mjs.map → _projectId-Dn_GjZnp.mjs.map} +1 -1
- package/dist/client/_projectId-w-tZz0FI.mjs +98 -0
- package/dist/client/_projectId-w-tZz0FI.mjs.map +1 -0
- package/dist/client/{_securityGroupId-DMi7YRux.mjs → _securityGroupId-BMzod4iC.mjs} +3 -3
- package/dist/client/{_securityGroupId-DMi7YRux.mjs.map → _securityGroupId-BMzod4iC.mjs.map} +1 -1
- package/dist/client/{_securityGroupId-CyQ3XmpB.mjs → _securityGroupId-Wa7Be5pg.mjs} +3 -2
- package/dist/client/_securityGroupId-Wa7Be5pg.mjs.map +1 -0
- package/dist/client/{_storageType-g1zkFFRh.mjs → _storageType-5VdpF4Wu.mjs} +4 -3
- package/dist/client/_storageType-5VdpF4Wu.mjs.map +1 -0
- package/dist/client/{_storageType-Bb6YZgXf.mjs → _storageType-BIMQazHh.mjs} +831 -908
- package/dist/client/_storageType-BIMQazHh.mjs.map +1 -0
- package/dist/client/_storageType-zeSZe--V.mjs.map +1 -1
- package/dist/client/{constants-D6IO9bPs.mjs → constants-D8Zrv7HP.mjs} +2 -2
- package/dist/client/{constants-D6IO9bPs.mjs.map → constants-D8Zrv7HP.mjs.map} +1 -1
- package/dist/client/{flavors-CO5l_6d0.mjs → flavors-D5aTQJT1.mjs} +3 -3
- package/dist/client/{flavors-CO5l_6d0.mjs.map → flavors-D5aTQJT1.mjs.map} +1 -1
- package/dist/client/flavors-DWMZ6TuJ.mjs.map +1 -1
- package/dist/client/{flavors-D4nGSs0r.mjs → flavors-TqwbWt4R.mjs} +3 -2
- package/dist/client/flavors-TqwbWt4R.mjs.map +1 -0
- package/dist/client/{floatingips-ClkRV7a7.mjs → floatingips-D7D6iFhe.mjs} +3 -3
- package/dist/client/{floatingips-ClkRV7a7.mjs.map → floatingips-D7D6iFhe.mjs.map} +1 -1
- package/dist/client/{images-CvPxoPC0.mjs → images-DEXWCufm.mjs} +3 -2
- package/dist/client/images-DEXWCufm.mjs.map +1 -0
- package/dist/client/{images-C_OYLPqv.mjs → images-N0oXygX-.mjs} +5 -5
- package/dist/client/{images-C_OYLPqv.mjs.map → images-N0oXygX-.mjs.map} +1 -1
- package/dist/client/index.js +190 -170
- package/dist/client/index.js.map +1 -1
- package/dist/client/{objects-D0grS6pk.mjs → objects-DjDr_S5Q.mjs} +2259 -1961
- package/dist/client/objects-DjDr_S5Q.mjs.map +1 -0
- package/dist/client/{objects-UQyUQxBj.mjs → objects-gNSKHCsp.mjs} +8 -7
- package/dist/client/objects-gNSKHCsp.mjs.map +1 -0
- package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -1
- package/dist/client/{pca-BJPxOIgq.mjs → pca-CXmRq6RN.mjs} +5 -5
- package/dist/client/{pca-BJPxOIgq.mjs.map → pca-CXmRq6RN.mjs.map} +1 -1
- package/dist/client/pca-D0mKfROV.mjs +25 -0
- package/dist/client/pca-D0mKfROV.mjs.map +1 -0
- package/dist/client/pcaAccess-BYUY700H.mjs +9 -0
- package/dist/client/pcaAccess-BYUY700H.mjs.map +1 -0
- package/dist/client/{projects-CGjBlG2w.mjs → projects-CDFynG9q.mjs} +3 -2
- package/dist/client/projects-CDFynG9q.mjs.map +1 -0
- package/dist/client/projects-DvSiI5Vg.mjs.map +1 -1
- package/dist/client/{projects-C3wR-lvM.mjs → projects-sn_XPdCh.mjs} +2 -2
- package/dist/client/{projects-C3wR-lvM.mjs.map → projects-sn_XPdCh.mjs.map} +1 -1
- package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
- package/dist/client/{routeInfo-Dy9l-wFB.mjs → routeInfo-CdTRlSxv.mjs} +8 -7
- package/dist/client/routeInfo-CdTRlSxv.mjs.map +1 -0
- package/dist/client/{securitygroups-n8ujBpJP.mjs → securitygroups-CEAGUVYa.mjs} +2 -2
- package/dist/client/{securitygroups-n8ujBpJP.mjs.map → securitygroups-CEAGUVYa.mjs.map} +1 -1
- package/dist/client/{trpcClient-BzPUgiM2.mjs → trpcClient-Dy_MP_Pv.mjs} +2 -2
- package/dist/client/trpcClient-Dy_MP_Pv.mjs.map +1 -0
- package/dist/server/index.js +592 -309
- package/package.json +3 -3
- package/dist/client/ContentHeader-D2nIdJKJ.mjs.map +0 -1
- package/dist/client/DeleteVersionsModal-DQO8lGmS.mjs +0 -331
- package/dist/client/DeleteVersionsModal-DQO8lGmS.mjs.map +0 -1
- package/dist/client/_flavorId-CtQEd28h.mjs.map +0 -1
- package/dist/client/_flavorId-DVsGdXUf.mjs.map +0 -1
- package/dist/client/_floatingIpId-DvTh6vdB.mjs.map +0 -1
- package/dist/client/_imageId-xG8hC49j.mjs.map +0 -1
- package/dist/client/_pcaId-WCJoukIk.mjs.map +0 -1
- package/dist/client/_projectId-BCMkaH_h.mjs.map +0 -1
- package/dist/client/_projectId-BdqRntcN.mjs +0 -107
- package/dist/client/_projectId-BdqRntcN.mjs.map +0 -1
- package/dist/client/_securityGroupId-CyQ3XmpB.mjs.map +0 -1
- package/dist/client/_storageType-Bb6YZgXf.mjs.map +0 -1
- package/dist/client/_storageType-g1zkFFRh.mjs.map +0 -1
- package/dist/client/flavors-D4nGSs0r.mjs.map +0 -1
- package/dist/client/images-CvPxoPC0.mjs.map +0 -1
- package/dist/client/objects-D0grS6pk.mjs.map +0 -1
- package/dist/client/objects-UQyUQxBj.mjs.map +0 -1
- package/dist/client/pca-C9MKOi3Z.mjs +0 -16
- package/dist/client/pca-C9MKOi3Z.mjs.map +0 -1
- package/dist/client/projects-CGjBlG2w.mjs.map +0 -1
- package/dist/client/routeInfo-Dy9l-wFB.mjs.map +0 -1
- package/dist/client/trpcClient-BzPUgiM2.mjs.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { $ as e, A as t, B as n, D as r, E as i, F as a, G as o, K as s, L as c, N as l, P as u, R as d, U as f, X as p, at as m, ct as h, et as g, f as _, g as v, l as y, lt as b, n as x, ot as S, q as C, r as w, rt as T, s as E, st as D, tt as O, ut as k, w as A, y as j } from "./build-DgeVmENN.mjs";
|
|
2
|
-
import { r as M } from "./trpcClient-
|
|
3
|
-
import { t as N } from "./_storageType-
|
|
4
|
-
import { t as P } from "./ContentHeader-
|
|
2
|
+
import { r as M } from "./trpcClient-Dy_MP_Pv.mjs";
|
|
3
|
+
import { t as N } from "./_storageType-5VdpF4Wu.mjs";
|
|
4
|
+
import { t as P } from "./ContentHeader-BIScbvb4.mjs";
|
|
5
5
|
import { t as ee } from "./SortInput-DjaEHvcO.mjs";
|
|
6
6
|
import { t as F } from "./formatBytes-CZv_XyCY.mjs";
|
|
7
7
|
import { t as I } from "./useProjectId-DBc5lpoU.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { useNavigate as
|
|
12
|
-
import { Trans as
|
|
13
|
-
import { i18n as
|
|
14
|
-
import { ErrorBoundary as
|
|
15
|
-
import { useVirtualizer as
|
|
8
|
+
import { _ as te, a as L, i as ne, l as re, n as ie, o as R, r as ae, t as oe, v as z } from "./BucketToastNotifications-CxQ0_Spa.mjs";
|
|
9
|
+
import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
|
|
10
|
+
import { Fragment as U, startTransition as se, useCallback as ce, useEffect as le, useRef as ue, useState as W } from "react";
|
|
11
|
+
import { useNavigate as de, useParams as fe } from "@tanstack/react-router";
|
|
12
|
+
import { Trans as G, useLingui as K } from "@lingui/react";
|
|
13
|
+
import { i18n as q } from "@lingui/core";
|
|
14
|
+
import { ErrorBoundary as pe } from "react-error-boundary";
|
|
15
|
+
import { useVirtualizer as me } from "@tanstack/react-virtual";
|
|
16
16
|
//#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/CreateContainerModal.tsx
|
|
17
|
-
var
|
|
18
|
-
let { i18n: a, _: o } =
|
|
17
|
+
var he = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLength: i = 256 }) => {
|
|
18
|
+
let { i18n: a, _: o } = K(), s = I(), [c, l] = W(""), [u, d] = W(null), p = M.useUtils(), m = M.storage.swift.createContainer.useMutation({
|
|
19
19
|
onSuccess: () => {
|
|
20
20
|
p.storage.swift.listContainers.invalidate();
|
|
21
21
|
let e = c.trim();
|
|
@@ -41,7 +41,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
41
41
|
container: c.trim()
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
return e ? /*#__PURE__*/
|
|
44
|
+
return e ? /*#__PURE__*/ V(w, {
|
|
45
45
|
title: a._({ id: "vTh35P" }),
|
|
46
46
|
open: e,
|
|
47
47
|
onCancel: h,
|
|
@@ -50,13 +50,13 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
50
50
|
cancelButtonLabel: a._({ id: "dEgA5A" }),
|
|
51
51
|
size: "small",
|
|
52
52
|
disableConfirmButton: m.isPending || !c.trim(),
|
|
53
|
-
children: /*#__PURE__*/
|
|
53
|
+
children: /*#__PURE__*/ H(O, {
|
|
54
54
|
direction: "vertical",
|
|
55
55
|
gap: "6",
|
|
56
|
-
children: [/*#__PURE__*/
|
|
56
|
+
children: [/*#__PURE__*/ V("p", {
|
|
57
57
|
className: "text-theme-default",
|
|
58
|
-
children: /*#__PURE__*/
|
|
59
|
-
}), /*#__PURE__*/
|
|
58
|
+
children: /*#__PURE__*/ V(G, { id: "ne/GWZ" })
|
|
59
|
+
}), /*#__PURE__*/ V(f, {
|
|
60
60
|
label: a._({ id: "SUSS9i" }),
|
|
61
61
|
required: !0,
|
|
62
62
|
value: c,
|
|
@@ -72,8 +72,8 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
72
72
|
})]
|
|
73
73
|
})
|
|
74
74
|
}) : null;
|
|
75
|
-
},
|
|
76
|
-
let { i18n: c, _: l } =
|
|
75
|
+
}, ge = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
|
|
76
|
+
let { i18n: c, _: l } = K(), p = I(), [m, h] = W(""), [g, y] = W(null), [b, x] = W(!1), S = ue(""), C = () => {
|
|
77
77
|
t && navigator.clipboard.writeText(t.name).then(() => {
|
|
78
78
|
x(!0), setTimeout(() => x(!1), 2e3);
|
|
79
79
|
});
|
|
@@ -115,26 +115,26 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
115
115
|
e.key === "Enter" && te();
|
|
116
116
|
};
|
|
117
117
|
if (!e || !t) return null;
|
|
118
|
-
let
|
|
119
|
-
return /*#__PURE__*/
|
|
120
|
-
title: /* @__PURE__ */
|
|
118
|
+
let ne = E?.length ?? 0, re = !D && t.count === 0 && ne === 0, ie = !D && t.count > 0 && ne === 0, R = re || ie;
|
|
119
|
+
return /*#__PURE__*/ H(w, {
|
|
120
|
+
title: /* @__PURE__ */ H("span", {
|
|
121
121
|
className: "flex max-w-[400px] items-center gap-2",
|
|
122
122
|
children: [
|
|
123
|
-
/*#__PURE__*/
|
|
123
|
+
/*#__PURE__*/ V("span", {
|
|
124
124
|
className: "shrink-0",
|
|
125
|
-
children: /*#__PURE__*/
|
|
125
|
+
children: /*#__PURE__*/ V(G, { id: "5Okch2" })
|
|
126
126
|
}),
|
|
127
|
-
/*#__PURE__*/
|
|
127
|
+
/*#__PURE__*/ V("span", {
|
|
128
128
|
className: "truncate",
|
|
129
129
|
title: t.name,
|
|
130
130
|
children: t.name
|
|
131
131
|
}),
|
|
132
|
-
!D && !
|
|
132
|
+
!D && !R && /*#__PURE__*/ V("button", {
|
|
133
133
|
type: "button",
|
|
134
134
|
onClick: C,
|
|
135
135
|
title: b ? c._({ id: "PiH3UR" }) : c._({ id: "NQU1Nn" }),
|
|
136
136
|
className: "text-theme-light hover:text-theme-default inline-flex items-center transition-colors",
|
|
137
|
-
children: /*#__PURE__*/
|
|
137
|
+
children: /*#__PURE__*/ V(_, {
|
|
138
138
|
icon: b ? "checkCircle" : "contentCopy",
|
|
139
139
|
size: "16"
|
|
140
140
|
})
|
|
@@ -143,102 +143,102 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
143
143
|
}),
|
|
144
144
|
open: e,
|
|
145
145
|
onCancel: P,
|
|
146
|
-
confirmButtonLabel:
|
|
146
|
+
confirmButtonLabel: R ? void 0 : c._({ id: "N2S1rs" }),
|
|
147
147
|
confirmButtonVariant: "primary-danger",
|
|
148
|
-
onConfirm:
|
|
149
|
-
cancelButtonLabel:
|
|
150
|
-
modalFooter:
|
|
148
|
+
onConfirm: R ? void 0 : te,
|
|
149
|
+
cancelButtonLabel: R ? void 0 : c._({ id: "dEgA5A" }),
|
|
150
|
+
modalFooter: R ? /*#__PURE__*/ V(v, {
|
|
151
151
|
className: "flex justify-end",
|
|
152
|
-
children: /*#__PURE__*/
|
|
152
|
+
children: /*#__PURE__*/ V(k, { children: /*#__PURE__*/ V(j, {
|
|
153
153
|
variant: "primary",
|
|
154
154
|
onClick: P,
|
|
155
155
|
"data-testid": "empty-info-close-button",
|
|
156
|
-
children: /*#__PURE__*/
|
|
156
|
+
children: /*#__PURE__*/ V(G, { id: "yz7wBu" })
|
|
157
157
|
}) })
|
|
158
158
|
}) : void 0,
|
|
159
159
|
size: "small",
|
|
160
|
-
disableConfirmButton: D || N.isPending || !
|
|
161
|
-
children: [A && /*#__PURE__*/
|
|
160
|
+
disableConfirmButton: D || N.isPending || !R && !m.trim() || !R && m.trim() !== t.name,
|
|
161
|
+
children: [A && /*#__PURE__*/ V("p", {
|
|
162
162
|
className: "text-theme-error mb-4",
|
|
163
163
|
children: (() => {
|
|
164
164
|
let e = A.message;
|
|
165
|
-
return /*#__PURE__*/
|
|
165
|
+
return /*#__PURE__*/ V(G, {
|
|
166
166
|
id: "56IxdF",
|
|
167
167
|
values: { errorMessage: e }
|
|
168
168
|
});
|
|
169
169
|
})()
|
|
170
|
-
}), D ? /*#__PURE__*/
|
|
170
|
+
}), D ? /*#__PURE__*/ H(O, {
|
|
171
171
|
direction: "horizontal",
|
|
172
172
|
alignment: "center",
|
|
173
173
|
gap: "2",
|
|
174
174
|
className: "py-4",
|
|
175
|
-
children: [/*#__PURE__*/
|
|
176
|
-
}) :
|
|
175
|
+
children: [/*#__PURE__*/ V(s, { size: "small" }), /*#__PURE__*/ V(G, { id: "ujK/QN" })]
|
|
176
|
+
}) : R && !A ? /*#__PURE__*/ V("p", {
|
|
177
177
|
className: "text-theme-default py-2",
|
|
178
|
-
children:
|
|
179
|
-
}) : A ? null : /*#__PURE__*/
|
|
178
|
+
children: re ? /*#__PURE__*/ V(G, { id: "jNm/qL" }) : /*#__PURE__*/ V(G, { id: "WefafP" })
|
|
179
|
+
}) : A ? null : /*#__PURE__*/ H(O, {
|
|
180
180
|
direction: "vertical",
|
|
181
181
|
gap: "6",
|
|
182
182
|
children: [
|
|
183
|
-
/*#__PURE__*/
|
|
183
|
+
/*#__PURE__*/ H("p", {
|
|
184
184
|
className: "text-theme-default",
|
|
185
185
|
children: [
|
|
186
|
-
/*#__PURE__*/
|
|
187
|
-
/*#__PURE__*/
|
|
188
|
-
/*#__PURE__*/
|
|
186
|
+
/*#__PURE__*/ V(G, { id: "Ioblgz" }),
|
|
187
|
+
/*#__PURE__*/ V("br", {}),
|
|
188
|
+
/*#__PURE__*/ V(G, {
|
|
189
189
|
id: "kiRrtv",
|
|
190
190
|
components: {
|
|
191
|
-
0: /*#__PURE__*/
|
|
192
|
-
1: /*#__PURE__*/
|
|
193
|
-
2: /*#__PURE__*/
|
|
191
|
+
0: /*#__PURE__*/ V("strong", {}),
|
|
192
|
+
1: /*#__PURE__*/ V("strong", {}),
|
|
193
|
+
2: /*#__PURE__*/ V("strong", {})
|
|
194
194
|
}
|
|
195
195
|
})
|
|
196
196
|
]
|
|
197
197
|
}),
|
|
198
|
-
/*#__PURE__*/
|
|
198
|
+
/*#__PURE__*/ H("div", {
|
|
199
199
|
className: "border-theme-background-lvl-3 overflow-hidden rounded border",
|
|
200
200
|
children: [
|
|
201
|
-
t.count >
|
|
201
|
+
t.count > ne && /*#__PURE__*/ V("p", {
|
|
202
202
|
className: "text-theme-light px-3 py-2 text-xs",
|
|
203
203
|
children: (() => {
|
|
204
204
|
let e = t.count;
|
|
205
|
-
return /*#__PURE__*/
|
|
205
|
+
return /*#__PURE__*/ V(G, {
|
|
206
206
|
id: "1iQtS2",
|
|
207
207
|
values: {
|
|
208
|
-
actualObjectCount:
|
|
208
|
+
actualObjectCount: ne,
|
|
209
209
|
total: e
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
})()
|
|
213
213
|
}),
|
|
214
|
-
/*#__PURE__*/
|
|
214
|
+
/*#__PURE__*/ V(u, {
|
|
215
215
|
columns: 3,
|
|
216
216
|
className: "text-sm",
|
|
217
|
-
children: /*#__PURE__*/
|
|
218
|
-
/*#__PURE__*/
|
|
219
|
-
/*#__PURE__*/
|
|
220
|
-
/*#__PURE__*/
|
|
217
|
+
children: /*#__PURE__*/ H(i, { children: [
|
|
218
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "6YtxFj" }) }),
|
|
219
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "Cj2Gtd" }) }),
|
|
220
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "sjMCOP" }) })
|
|
221
221
|
] })
|
|
222
222
|
}),
|
|
223
|
-
/*#__PURE__*/
|
|
223
|
+
/*#__PURE__*/ V("div", {
|
|
224
224
|
className: "max-h-48 overflow-y-auto",
|
|
225
|
-
children: /*#__PURE__*/
|
|
225
|
+
children: /*#__PURE__*/ V(u, {
|
|
226
226
|
columns: 3,
|
|
227
227
|
className: "text-sm",
|
|
228
|
-
children: E.map((e) => /*#__PURE__*/
|
|
229
|
-
/*#__PURE__*/
|
|
228
|
+
children: E.map((e) => /*#__PURE__*/ H(i, { children: [
|
|
229
|
+
/*#__PURE__*/ V(o, {
|
|
230
230
|
className: "max-w-[200px] truncate",
|
|
231
231
|
title: e.name,
|
|
232
232
|
children: e.name
|
|
233
233
|
}),
|
|
234
|
-
/*#__PURE__*/
|
|
235
|
-
/*#__PURE__*/
|
|
234
|
+
/*#__PURE__*/ V(o, { children: F(e.bytes) }),
|
|
235
|
+
/*#__PURE__*/ V(o, { children: e.last_modified ? new Date(e.last_modified).toLocaleString() : c._({ id: "fj5byd" }) })
|
|
236
236
|
] }, e.name))
|
|
237
237
|
})
|
|
238
238
|
})
|
|
239
239
|
]
|
|
240
240
|
}),
|
|
241
|
-
/*#__PURE__*/
|
|
241
|
+
/*#__PURE__*/ V(f, {
|
|
242
242
|
label: c._({ id: "33F2A+" }),
|
|
243
243
|
required: !0,
|
|
244
244
|
value: m,
|
|
@@ -253,8 +253,8 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
253
253
|
]
|
|
254
254
|
})]
|
|
255
255
|
});
|
|
256
|
-
},
|
|
257
|
-
let { i18n: a, _: o } =
|
|
256
|
+
}, _e = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) => {
|
|
257
|
+
let { i18n: a, _: o } = K(), c = I(), [l, u] = W(""), [d, p] = W(null), [m, h] = W(!1), g = M.useUtils(), { data: _, isLoading: y, error: x } = M.storage.swift.listObjects.useQuery({
|
|
258
258
|
project_id: c,
|
|
259
259
|
container: t?.name ?? "",
|
|
260
260
|
format: "json",
|
|
@@ -273,7 +273,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
273
273
|
D();
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
|
|
276
|
+
le(() => {
|
|
277
277
|
e || (u(""), p(null), h(!1), E.reset());
|
|
278
278
|
}, [e, t?.name]);
|
|
279
279
|
let D = () => {
|
|
@@ -297,13 +297,13 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
297
297
|
};
|
|
298
298
|
if (!e || !t) return null;
|
|
299
299
|
let ee = _?.length ?? 0, F = !y && (ee > 0 || t.count > 0), te = !y && t.count > 0 && ee === 0, L = !!(x || C);
|
|
300
|
-
return /*#__PURE__*/
|
|
301
|
-
title: /* @__PURE__ */
|
|
300
|
+
return /*#__PURE__*/ H(w, {
|
|
301
|
+
title: /* @__PURE__ */ H("span", {
|
|
302
302
|
className: "flex max-w-[400px] items-center gap-2",
|
|
303
|
-
children: [/*#__PURE__*/
|
|
303
|
+
children: [/*#__PURE__*/ V("span", {
|
|
304
304
|
className: "shrink-0",
|
|
305
|
-
children: /*#__PURE__*/
|
|
306
|
-
}), /*#__PURE__*/
|
|
305
|
+
children: /*#__PURE__*/ V(G, { id: "Vzlopx" })
|
|
306
|
+
}), /*#__PURE__*/ V("span", {
|
|
307
307
|
className: "truncate",
|
|
308
308
|
title: t.name,
|
|
309
309
|
children: t.name
|
|
@@ -315,80 +315,80 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
315
315
|
confirmButtonVariant: F ? void 0 : "primary-danger",
|
|
316
316
|
onConfirm: F ? void 0 : N,
|
|
317
317
|
cancelButtonLabel: F ? void 0 : a._({ id: "dEgA5A" }),
|
|
318
|
-
modalFooter: F ? /*#__PURE__*/
|
|
318
|
+
modalFooter: F ? /*#__PURE__*/ V(v, {
|
|
319
319
|
className: "flex justify-end",
|
|
320
|
-
children: /*#__PURE__*/
|
|
320
|
+
children: /*#__PURE__*/ V(k, { children: /*#__PURE__*/ V(j, {
|
|
321
321
|
variant: "primary",
|
|
322
322
|
onClick: D,
|
|
323
323
|
"data-testid": "delete-has-objects-close-button",
|
|
324
|
-
children: /*#__PURE__*/
|
|
324
|
+
children: /*#__PURE__*/ V(G, { id: "yz7wBu" })
|
|
325
325
|
}) })
|
|
326
326
|
}) : void 0,
|
|
327
327
|
size: "small",
|
|
328
328
|
disableConfirmButton: y || L || E.isPending || !F && l.trim() !== "delete" || !F && T && !m,
|
|
329
|
-
children: [(x || C) && /*#__PURE__*/
|
|
329
|
+
children: [(x || C) && /*#__PURE__*/ H(O, {
|
|
330
330
|
direction: "vertical",
|
|
331
331
|
gap: "2",
|
|
332
332
|
className: "mb-4",
|
|
333
333
|
role: "alert",
|
|
334
334
|
"aria-live": "assertive",
|
|
335
|
-
children: [x && /*#__PURE__*/
|
|
335
|
+
children: [x && /*#__PURE__*/ V("p", {
|
|
336
336
|
className: "text-theme-error",
|
|
337
337
|
children: (() => {
|
|
338
338
|
let e = x.message;
|
|
339
|
-
return /*#__PURE__*/
|
|
339
|
+
return /*#__PURE__*/ V(G, {
|
|
340
340
|
id: "56IxdF",
|
|
341
341
|
values: { errorMessage: e }
|
|
342
342
|
});
|
|
343
343
|
})()
|
|
344
|
-
}), C && /*#__PURE__*/
|
|
344
|
+
}), C && /*#__PURE__*/ V("p", {
|
|
345
345
|
className: "text-theme-error",
|
|
346
346
|
children: (() => {
|
|
347
347
|
let e = C.message;
|
|
348
|
-
return /*#__PURE__*/
|
|
348
|
+
return /*#__PURE__*/ V(G, {
|
|
349
349
|
id: "BCXapL",
|
|
350
350
|
values: { errorMessage: e }
|
|
351
351
|
});
|
|
352
352
|
})()
|
|
353
353
|
})]
|
|
354
|
-
}), y ? /*#__PURE__*/
|
|
354
|
+
}), y ? /*#__PURE__*/ H(O, {
|
|
355
355
|
direction: "horizontal",
|
|
356
356
|
alignment: "center",
|
|
357
357
|
gap: "2",
|
|
358
358
|
className: "py-4",
|
|
359
|
-
children: [/*#__PURE__*/
|
|
360
|
-
}) : F ? /*#__PURE__*/
|
|
359
|
+
children: [/*#__PURE__*/ V(s, { size: "small" }), /*#__PURE__*/ V(G, { id: "Z3FXyt" })]
|
|
360
|
+
}) : F ? /*#__PURE__*/ H(O, {
|
|
361
361
|
direction: "vertical",
|
|
362
362
|
gap: "3",
|
|
363
|
-
children: [/*#__PURE__*/
|
|
363
|
+
children: [/*#__PURE__*/ V("p", {
|
|
364
364
|
className: "text-theme-default",
|
|
365
|
-
children: /*#__PURE__*/
|
|
366
|
-
}), te && /*#__PURE__*/
|
|
365
|
+
children: /*#__PURE__*/ V(G, { id: "3dBmvU" })
|
|
366
|
+
}), te && /*#__PURE__*/ V("p", {
|
|
367
367
|
className: "text-theme-default",
|
|
368
|
-
children: /*#__PURE__*/
|
|
368
|
+
children: /*#__PURE__*/ V(G, { id: "x3T4pq" })
|
|
369
369
|
})]
|
|
370
|
-
}) : /*#__PURE__*/
|
|
370
|
+
}) : /*#__PURE__*/ H(O, {
|
|
371
371
|
direction: "vertical",
|
|
372
372
|
gap: "6",
|
|
373
373
|
children: [
|
|
374
|
-
/*#__PURE__*/
|
|
374
|
+
/*#__PURE__*/ H("p", {
|
|
375
375
|
className: "text-theme-default",
|
|
376
376
|
children: [
|
|
377
|
-
/*#__PURE__*/
|
|
378
|
-
/*#__PURE__*/
|
|
379
|
-
/*#__PURE__*/
|
|
377
|
+
/*#__PURE__*/ V(G, { id: "Y8M9Uc" }),
|
|
378
|
+
/*#__PURE__*/ V("br", {}),
|
|
379
|
+
/*#__PURE__*/ V(G, {
|
|
380
380
|
id: "YzUoh9",
|
|
381
|
-
components: { 0: /*#__PURE__*/
|
|
381
|
+
components: { 0: /*#__PURE__*/ V("strong", {}) }
|
|
382
382
|
})
|
|
383
383
|
]
|
|
384
384
|
}),
|
|
385
|
-
T && /*#__PURE__*/
|
|
385
|
+
T && /*#__PURE__*/ V(b, {
|
|
386
386
|
label: a._({ id: "V/8B9A" }),
|
|
387
387
|
checked: m,
|
|
388
388
|
onChange: (e) => h(e.target.checked),
|
|
389
389
|
invalid: !m
|
|
390
390
|
}),
|
|
391
|
-
/*#__PURE__*/
|
|
391
|
+
/*#__PURE__*/ V(f, {
|
|
392
392
|
label: a._({ id: "QytzQr" }),
|
|
393
393
|
required: !0,
|
|
394
394
|
value: l,
|
|
@@ -403,31 +403,31 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
403
403
|
]
|
|
404
404
|
})]
|
|
405
405
|
});
|
|
406
|
-
},
|
|
406
|
+
}, ve = new Set([
|
|
407
407
|
"quota-bytes",
|
|
408
408
|
"quota-count",
|
|
409
409
|
"web-index",
|
|
410
410
|
"web-listings",
|
|
411
411
|
"web-listings-css",
|
|
412
412
|
"web-error"
|
|
413
|
-
]),
|
|
414
|
-
let { i18n: p, _: m } =
|
|
413
|
+
]), ye = 50, be = /^[a-zA-Z0-9!#$%&'*+\-.^_`|~]+$/, J = ({ isOpen: t, container: n, onClose: r, onSuccess: a, onError: l }) => {
|
|
414
|
+
let { i18n: p, _: m } = K(), h = I(), { data: g, isLoading: v, isError: x, error: C } = M.storage.swift.getContainerMetadata.useQuery({
|
|
415
415
|
project_id: h,
|
|
416
416
|
container: n?.name ?? ""
|
|
417
417
|
}, { enabled: t && n !== null }), T = g?.read === ".r:*,.rlistings", { data: D } = M.storage.swift.getContainerPublicUrl.useQuery({
|
|
418
418
|
project_id: h,
|
|
419
419
|
container: n?.name ?? ""
|
|
420
|
-
}, { enabled: t && n !== null && T }), { data: k } = M.storage.swift.listContainers.useQuery({ project_id: h }, { enabled: t }), [A, N] =
|
|
420
|
+
}, { enabled: t && n !== null && T }), { data: k } = M.storage.swift.listContainers.useQuery({ project_id: h }, { enabled: t }), [A, N] = W(""), [P, ee] = W(""), F = ue(null), te = ce((e) => {
|
|
421
421
|
let t = e.target.value;
|
|
422
422
|
N(t), F.current && clearTimeout(F.current), F.current = setTimeout(() => ee(t), 300);
|
|
423
|
-
}, []), L = P.trim().length > 0 ? (k ?? []).filter((e) => e.name !== n?.name && e.name.toLowerCase().includes(P.toLowerCase())) : [],
|
|
424
|
-
|
|
423
|
+
}, []), L = P.trim().length > 0 ? (k ?? []).filter((e) => e.name !== n?.name && e.name.toLowerCase().includes(P.toLowerCase())) : [], ne = L.slice(0, ye), re = L.length - ne.length, ie = M.useUtils(), [R, ae] = W(""), [oe, z] = W(null), [B, U] = W(""), [se, de] = W(null), [fe, q] = W(""), [pe, me] = W(!1), [he, ge] = W(!1), [_e, J] = W(""), [Y, X] = W([]), [xe, Se] = W({}), [Ce, we] = W(!1), [Te, Ee] = W(""), [De, Oe] = W(""), [ke, Z] = W(null), [Ae, je] = W(null);
|
|
424
|
+
le(() => {
|
|
425
425
|
if (!g) return;
|
|
426
|
-
|
|
426
|
+
ae(g.quotaBytes == null ? "" : String(g.quotaBytes)), U(g.quotaCount == null ? "" : String(g.quotaCount)), ge(!!(g.versionsEnabled || g.versionsLocation || g.historyLocation)), J(g.versionsLocation || g.historyLocation || "");
|
|
427
427
|
let e = g.metadata ?? {};
|
|
428
|
-
|
|
428
|
+
q(e["web-index"] ?? ""), me(e["web-listings"] === "1" || e["web-listings"] === "true");
|
|
429
429
|
let t = g.metadata ?? {};
|
|
430
|
-
|
|
430
|
+
X(Object.entries(t).filter(([e]) => !ve.has(e)).map(([e, t]) => ({
|
|
431
431
|
key: e,
|
|
432
432
|
value: t,
|
|
433
433
|
isNew: !1,
|
|
@@ -435,307 +435,307 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
435
435
|
originalKey: e,
|
|
436
436
|
originalValue: t
|
|
437
437
|
})));
|
|
438
|
-
}, [g]),
|
|
439
|
-
t ||
|
|
438
|
+
}, [g]), le(() => {
|
|
439
|
+
t || Me();
|
|
440
440
|
}, [t]);
|
|
441
|
-
let
|
|
442
|
-
|
|
443
|
-
},
|
|
441
|
+
let Me = () => {
|
|
442
|
+
ae(""), z(null), U(""), de(null), q(""), me(!1), ge(!1), J(""), N(""), ee(""), F.current && clearTimeout(F.current), X([]), Se({}), we(!1), Ee(""), Oe(""), Z(null), je(null), Ne.reset();
|
|
443
|
+
}, Ne = M.storage.swift.updateContainerMetadata.useMutation({
|
|
444
444
|
onSuccess: () => {
|
|
445
|
-
|
|
445
|
+
ie.storage.swift.getContainerMetadata.invalidate({ container: n.name }), ie.storage.swift.listContainers.invalidate(), a?.(n.name), We();
|
|
446
446
|
},
|
|
447
447
|
onError: (e) => {
|
|
448
448
|
l?.(n.name, e.message);
|
|
449
449
|
}
|
|
450
|
-
}),
|
|
450
|
+
}), Pe = () => {
|
|
451
451
|
let e = !0;
|
|
452
|
-
return
|
|
453
|
-
},
|
|
454
|
-
let e =
|
|
452
|
+
return R !== "" && (isNaN(Number(R)) || Number(R) < 0) ? (z(p._({ id: "AuQtzx" })), e = !1) : z(null), B !== "" && (isNaN(Number(B)) || Number(B) < 0) ? (de(p._({ id: "AuQtzx" })), e = !1) : de(null), e;
|
|
453
|
+
}, Fe = (e, t) => e.trim() ? be.test(e) ? /[a-zA-Z0-9]/.test(e) ? ve.has(e.toLowerCase()) ? p._({ id: "JeRXll" }) : Y.some((n) => n.key.toLowerCase() === e.toLowerCase() && n.originalKey !== t) ? p._({ id: "i6/ygf" }) : null : p._({ id: "dTNzBI" }) : p._({ id: "XYZLy9" }) : p._({ id: "QV1ZPO" }), Ie = () => {
|
|
454
|
+
let e = Fe(Te);
|
|
455
455
|
if (e) {
|
|
456
|
-
|
|
456
|
+
Z(e);
|
|
457
457
|
return;
|
|
458
458
|
}
|
|
459
|
-
if (!
|
|
460
|
-
|
|
459
|
+
if (!De.trim()) {
|
|
460
|
+
je(p._({ id: "hXUWyd" }));
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
|
-
|
|
464
|
-
key:
|
|
465
|
-
value:
|
|
463
|
+
X([...Y, {
|
|
464
|
+
key: Te.trim(),
|
|
465
|
+
value: De.trim(),
|
|
466
466
|
isNew: !0,
|
|
467
467
|
isEditing: !1
|
|
468
|
-
}]),
|
|
469
|
-
},
|
|
470
|
-
|
|
471
|
-
},
|
|
472
|
-
|
|
468
|
+
}]), Ee(""), Oe(""), we(!1), Z(null), je(null);
|
|
469
|
+
}, Le = () => {
|
|
470
|
+
Ee(""), Oe(""), we(!1), Z(null), je(null);
|
|
471
|
+
}, Re = (e) => {
|
|
472
|
+
X(Y.map((t, n) => n === e ? {
|
|
473
473
|
...t,
|
|
474
474
|
isEditing: !0
|
|
475
475
|
} : {
|
|
476
476
|
...t,
|
|
477
477
|
isEditing: !1
|
|
478
|
-
})),
|
|
479
|
-
},
|
|
480
|
-
let t =
|
|
478
|
+
})), we(!1);
|
|
479
|
+
}, ze = (e) => {
|
|
480
|
+
let t = Y[e], n = Fe(t.key, t.originalKey);
|
|
481
481
|
if (n) {
|
|
482
|
-
|
|
482
|
+
Se({ [`edit-${e}`]: n });
|
|
483
483
|
return;
|
|
484
484
|
}
|
|
485
485
|
if (!t.value.trim()) {
|
|
486
|
-
|
|
486
|
+
Se({ [`edit-${e}`]: p._({ id: "hXUWyd" }) });
|
|
487
487
|
return;
|
|
488
488
|
}
|
|
489
|
-
|
|
489
|
+
X(Y.map((t, n) => n === e ? {
|
|
490
490
|
...t,
|
|
491
491
|
isEditing: !1,
|
|
492
492
|
key: t.key.trim(),
|
|
493
493
|
value: t.value.trim()
|
|
494
|
-
} : t)),
|
|
495
|
-
},
|
|
496
|
-
|
|
494
|
+
} : t)), Se({});
|
|
495
|
+
}, Be = (e) => {
|
|
496
|
+
X(Y.map((t, n) => n === e ? {
|
|
497
497
|
...t,
|
|
498
498
|
isEditing: !1,
|
|
499
499
|
key: t.originalKey ?? t.key,
|
|
500
500
|
value: t.originalValue ?? t.value
|
|
501
|
-
} : t)),
|
|
502
|
-
},
|
|
503
|
-
|
|
504
|
-
},
|
|
505
|
-
|
|
501
|
+
} : t)), Se({});
|
|
502
|
+
}, Q = (e) => {
|
|
503
|
+
X(Y.filter((t, n) => n !== e)), Se({});
|
|
504
|
+
}, Ve = (e, t) => {
|
|
505
|
+
X(Y.map((n, r) => r === e ? {
|
|
506
506
|
...n,
|
|
507
507
|
key: t
|
|
508
|
-
} : n)),
|
|
508
|
+
} : n)), Se((t) => {
|
|
509
509
|
let n = { ...t };
|
|
510
510
|
return delete n[`edit-${e}`], n;
|
|
511
511
|
});
|
|
512
|
-
},
|
|
513
|
-
|
|
512
|
+
}, He = (e, t) => {
|
|
513
|
+
X(Y.map((n, r) => r === e ? {
|
|
514
514
|
...n,
|
|
515
515
|
value: t
|
|
516
|
-
} : n)),
|
|
516
|
+
} : n)), Se((t) => {
|
|
517
517
|
let n = { ...t };
|
|
518
518
|
return delete n[`edit-${e}`], n;
|
|
519
519
|
});
|
|
520
|
-
},
|
|
521
|
-
if (!n ||
|
|
520
|
+
}, Ue = () => {
|
|
521
|
+
if (!n || !Pe()) return;
|
|
522
522
|
let e = g?.metadata ?? {}, t = {}, r = [];
|
|
523
|
-
|
|
523
|
+
Y.forEach((e) => {
|
|
524
524
|
(e.isNew || e.value !== e.originalValue || e.key !== e.originalKey) && (t[e.key] = e.value, !e.isNew && e.originalKey && e.key !== e.originalKey && r.push(e.originalKey));
|
|
525
525
|
});
|
|
526
|
-
let i = Object.keys(e).filter((e) => !
|
|
526
|
+
let i = Object.keys(e).filter((e) => !ve.has(e)), a = Y.map((e) => e.originalKey).filter(Boolean);
|
|
527
527
|
i.forEach((e) => {
|
|
528
528
|
!a.includes(e) && !r.includes(e) && r.push(e);
|
|
529
|
-
}), T && (
|
|
529
|
+
}), T && (fe ? t["web-index"] = fe : g?.metadata?.["web-index"] && r.push("web-index"), pe ? t["web-listings"] = "1" : g?.metadata?.["web-listings"] && r.push("web-listings"));
|
|
530
530
|
let o = !!(g?.versionsEnabled || g?.versionsLocation || g?.historyLocation), s = g?.versionsLocation || g?.historyLocation || "";
|
|
531
|
-
|
|
531
|
+
Ne.mutate({
|
|
532
532
|
project_id: h,
|
|
533
533
|
container: n.name,
|
|
534
534
|
metadata: t,
|
|
535
535
|
removeMetadata: r.length ? r : void 0,
|
|
536
|
-
quotaBytes:
|
|
537
|
-
quotaCount:
|
|
538
|
-
versionsLocation:
|
|
539
|
-
removeVersionsLocation: !
|
|
536
|
+
quotaBytes: R === "" ? void 0 : Number(R),
|
|
537
|
+
quotaCount: B === "" ? void 0 : Number(B),
|
|
538
|
+
versionsLocation: he && (!o || _e !== s) && _e ? _e : void 0,
|
|
539
|
+
removeVersionsLocation: !he && o ? !0 : void 0
|
|
540
540
|
});
|
|
541
|
-
},
|
|
542
|
-
|
|
541
|
+
}, We = () => {
|
|
542
|
+
Me(), r();
|
|
543
543
|
};
|
|
544
544
|
if (!t || !n) return null;
|
|
545
|
-
let
|
|
546
|
-
return /*#__PURE__*/
|
|
547
|
-
title: /*#__PURE__*/
|
|
545
|
+
let $ = v || Ne.isPending, Ge = x && !v, Ke = Y.some((e) => e.isEditing), qe = g?.quotaBytes == null ? "" : String(g.quotaBytes), Je = g?.quotaCount == null ? "" : String(g.quotaCount), Ye = !!g?.versionsEnabled, Xe = g?.versionsLocation || g?.historyLocation || "", Ze = g?.metadata?.["web-index"] ?? "", Qe = g?.metadata?.["web-listings"] === "1" || g?.metadata?.["web-listings"] === "true", $e = Object.keys(g?.metadata ?? {}).filter((e) => !ve.has(e)), et = Y.length === $e.length && Y.every((e) => !e.isNew && e.key === e.originalKey && e.value === e.originalValue), tt = R === qe && B === Je && he === Ye && _e === Xe && fe === Ze && pe === Qe && et, nt = g?.quotaBytes == null ? null : `${g.quotaBytes} B`;
|
|
546
|
+
return /*#__PURE__*/ H(w, {
|
|
547
|
+
title: /*#__PURE__*/ H("span", {
|
|
548
548
|
className: "flex max-w-[500px] items-center gap-2",
|
|
549
|
-
children: [/*#__PURE__*/
|
|
549
|
+
children: [/*#__PURE__*/ V("span", {
|
|
550
550
|
className: "shrink-0",
|
|
551
|
-
children: /*#__PURE__*/
|
|
552
|
-
}), /*#__PURE__*/
|
|
551
|
+
children: /*#__PURE__*/ V(G, { id: "y02Bu1" })
|
|
552
|
+
}), /*#__PURE__*/ V("span", {
|
|
553
553
|
className: "truncate",
|
|
554
554
|
title: n.name,
|
|
555
555
|
children: n.name
|
|
556
556
|
})]
|
|
557
557
|
}),
|
|
558
558
|
open: t,
|
|
559
|
-
onCancel:
|
|
559
|
+
onCancel: We,
|
|
560
560
|
confirmButtonLabel: p._({ id: "tfDRzk" }),
|
|
561
|
-
onConfirm:
|
|
561
|
+
onConfirm: Ue,
|
|
562
562
|
cancelButtonLabel: p._({ id: "dEgA5A" }),
|
|
563
563
|
size: "large",
|
|
564
|
-
disableConfirmButton:
|
|
565
|
-
children: [
|
|
564
|
+
disableConfirmButton: $ || Ce || Ke || tt || Ge,
|
|
565
|
+
children: [Ne.isError && /*#__PURE__*/ V("p", {
|
|
566
566
|
className: "text-theme-error mb-4",
|
|
567
567
|
children: (() => {
|
|
568
|
-
let e =
|
|
569
|
-
return /*#__PURE__*/
|
|
568
|
+
let e = Ne.error.message;
|
|
569
|
+
return /*#__PURE__*/ V(G, {
|
|
570
570
|
id: "nUuaq8",
|
|
571
571
|
values: { errorMessage: e }
|
|
572
572
|
});
|
|
573
573
|
})()
|
|
574
|
-
}), v ? /*#__PURE__*/
|
|
574
|
+
}), v ? /*#__PURE__*/ H(O, {
|
|
575
575
|
direction: "horizontal",
|
|
576
576
|
alignment: "center",
|
|
577
577
|
gap: "2",
|
|
578
578
|
className: "py-8",
|
|
579
|
-
children: [/*#__PURE__*/
|
|
580
|
-
}) : Ge ? /*#__PURE__*/
|
|
579
|
+
children: [/*#__PURE__*/ V(s, { size: "small" }), /*#__PURE__*/ V(G, { id: "WRZ3Mt" })]
|
|
580
|
+
}) : Ge ? /*#__PURE__*/ V("p", {
|
|
581
581
|
className: "text-theme-error py-8 text-center",
|
|
582
|
-
children: /*#__PURE__*/
|
|
582
|
+
children: /*#__PURE__*/ V(G, {
|
|
583
583
|
id: "BCXapL",
|
|
584
584
|
values: { errorMessage: C?.message ?? "Unknown error" }
|
|
585
585
|
})
|
|
586
|
-
}) : /*#__PURE__*/
|
|
586
|
+
}) : /*#__PURE__*/ V("div", {
|
|
587
587
|
className: "max-h-[65vh] overflow-y-auto pr-1 pl-1",
|
|
588
|
-
children: /*#__PURE__*/
|
|
588
|
+
children: /*#__PURE__*/ H(O, {
|
|
589
589
|
direction: "vertical",
|
|
590
590
|
gap: "6",
|
|
591
591
|
children: [
|
|
592
|
-
/*#__PURE__*/
|
|
592
|
+
/*#__PURE__*/ H("div", {
|
|
593
593
|
className: "grid grid-cols-2 gap-4",
|
|
594
|
-
children: [/*#__PURE__*/
|
|
594
|
+
children: [/*#__PURE__*/ V(f, {
|
|
595
595
|
label: p._({ id: "z45o5B" }),
|
|
596
596
|
value: String(n.count),
|
|
597
597
|
disabled: !0,
|
|
598
598
|
readOnly: !0
|
|
599
|
-
}), /*#__PURE__*/
|
|
599
|
+
}), /*#__PURE__*/ V(f, {
|
|
600
600
|
label: p._({ id: "/InK0O" }),
|
|
601
601
|
value: g?.bytesUsed == null ? `${n.bytes.toLocaleString()} B` : `${g.bytesUsed.toLocaleString()} B`,
|
|
602
602
|
disabled: !0,
|
|
603
603
|
readOnly: !0
|
|
604
604
|
})]
|
|
605
605
|
}),
|
|
606
|
-
/*#__PURE__*/
|
|
606
|
+
/*#__PURE__*/ H("div", {
|
|
607
607
|
className: "grid grid-cols-2 gap-4",
|
|
608
|
-
children: [/*#__PURE__*/
|
|
608
|
+
children: [/*#__PURE__*/ V("div", { children: /*#__PURE__*/ V(f, {
|
|
609
609
|
label: p._({ id: "k0vAWv" }),
|
|
610
|
-
value:
|
|
610
|
+
value: B,
|
|
611
611
|
onChange: (e) => {
|
|
612
|
-
|
|
612
|
+
U(e.target.value), se && de(null);
|
|
613
613
|
},
|
|
614
614
|
placeholder: p._({ id: "qtoOYG" }),
|
|
615
|
-
invalid: !!
|
|
616
|
-
errortext:
|
|
617
|
-
disabled:
|
|
618
|
-
}) }), /*#__PURE__*/
|
|
615
|
+
invalid: !!se,
|
|
616
|
+
errortext: se ?? void 0,
|
|
617
|
+
disabled: $
|
|
618
|
+
}) }), /*#__PURE__*/ V("div", { children: /*#__PURE__*/ V(f, {
|
|
619
619
|
label: p._({ id: "KOpPMt" }),
|
|
620
|
-
value:
|
|
620
|
+
value: R,
|
|
621
621
|
onChange: (e) => {
|
|
622
|
-
|
|
622
|
+
ae(e.target.value), oe && z(null);
|
|
623
623
|
},
|
|
624
624
|
placeholder: p._({ id: "qtoOYG" }),
|
|
625
|
-
invalid: !!
|
|
626
|
-
errortext:
|
|
627
|
-
disabled:
|
|
628
|
-
helptext:
|
|
625
|
+
invalid: !!oe,
|
|
626
|
+
errortext: oe ?? void 0,
|
|
627
|
+
disabled: $,
|
|
628
|
+
helptext: R && nt ? nt : void 0
|
|
629
629
|
}) })]
|
|
630
630
|
}),
|
|
631
|
-
T && D && /*#__PURE__*/
|
|
631
|
+
T && D && /*#__PURE__*/ H("div", { children: [/*#__PURE__*/ H("p", {
|
|
632
632
|
className: "text-theme-default mb-1 text-sm font-semibold",
|
|
633
633
|
children: [
|
|
634
|
-
/*#__PURE__*/
|
|
634
|
+
/*#__PURE__*/ V(G, { id: "mvz5Eo" }),
|
|
635
635
|
" ",
|
|
636
|
-
/*#__PURE__*/
|
|
636
|
+
/*#__PURE__*/ V("a", {
|
|
637
637
|
href: D,
|
|
638
638
|
target: "_blank",
|
|
639
639
|
rel: "noopener noreferrer",
|
|
640
640
|
className: "text-theme-info text-xs font-normal underline",
|
|
641
|
-
children: /*#__PURE__*/
|
|
641
|
+
children: /*#__PURE__*/ V(G, { id: "Alx2/L" })
|
|
642
642
|
})
|
|
643
643
|
]
|
|
644
|
-
}), /*#__PURE__*/
|
|
644
|
+
}), /*#__PURE__*/ V(f, {
|
|
645
645
|
value: D,
|
|
646
646
|
disabled: !0,
|
|
647
647
|
readOnly: !0
|
|
648
648
|
})] }),
|
|
649
|
-
/*#__PURE__*/
|
|
649
|
+
/*#__PURE__*/ H("div", { children: [/*#__PURE__*/ V("p", {
|
|
650
650
|
className: "text-theme-default mb-3 text-sm font-semibold",
|
|
651
|
-
children: /*#__PURE__*/
|
|
652
|
-
}), T ? /*#__PURE__*/
|
|
651
|
+
children: /*#__PURE__*/ V(G, { id: "6CDYXS" })
|
|
652
|
+
}), T ? /*#__PURE__*/ H(O, {
|
|
653
653
|
direction: "vertical",
|
|
654
654
|
gap: "4",
|
|
655
|
-
children: [/*#__PURE__*/
|
|
655
|
+
children: [/*#__PURE__*/ H(O, {
|
|
656
656
|
direction: "vertical",
|
|
657
657
|
gap: "1",
|
|
658
|
-
children: [/*#__PURE__*/
|
|
658
|
+
children: [/*#__PURE__*/ V(b, {
|
|
659
659
|
label: p._({ id: "6+7EwD" }),
|
|
660
|
-
checked: !!
|
|
660
|
+
checked: !!fe,
|
|
661
661
|
onChange: (e) => {
|
|
662
|
-
e.target.checked ?
|
|
662
|
+
e.target.checked ? fe || q("index.html") : q("");
|
|
663
663
|
},
|
|
664
|
-
disabled:
|
|
665
|
-
}), /*#__PURE__*/
|
|
664
|
+
disabled: $
|
|
665
|
+
}), /*#__PURE__*/ V("div", {
|
|
666
666
|
className: "pl-6",
|
|
667
|
-
children: /*#__PURE__*/
|
|
668
|
-
value:
|
|
669
|
-
onChange: (e) =>
|
|
667
|
+
children: /*#__PURE__*/ V(f, {
|
|
668
|
+
value: fe,
|
|
669
|
+
onChange: (e) => q(e.target.value),
|
|
670
670
|
placeholder: "index.html",
|
|
671
|
-
disabled:
|
|
671
|
+
disabled: $ || !fe,
|
|
672
672
|
className: "flex-1"
|
|
673
673
|
})
|
|
674
674
|
})]
|
|
675
|
-
}), /*#__PURE__*/
|
|
675
|
+
}), /*#__PURE__*/ H(O, {
|
|
676
676
|
direction: "horizontal",
|
|
677
677
|
alignment: "start",
|
|
678
678
|
gap: "2",
|
|
679
|
-
children: [/*#__PURE__*/
|
|
679
|
+
children: [/*#__PURE__*/ V(b, {
|
|
680
680
|
label: p._({ id: "NeUjqc" }),
|
|
681
|
-
checked:
|
|
682
|
-
onChange: (e) =>
|
|
683
|
-
disabled:
|
|
684
|
-
}), /*#__PURE__*/
|
|
681
|
+
checked: pe,
|
|
682
|
+
onChange: (e) => me(e.target.checked),
|
|
683
|
+
disabled: $
|
|
684
|
+
}), /*#__PURE__*/ H(S, {
|
|
685
685
|
triggerEvent: "hover",
|
|
686
|
-
children: [/*#__PURE__*/
|
|
686
|
+
children: [/*#__PURE__*/ V(E, { children: /*#__PURE__*/ V(_, {
|
|
687
687
|
icon: "help",
|
|
688
688
|
size: "16",
|
|
689
689
|
className: "text-theme-light cursor-help"
|
|
690
|
-
}) }), /*#__PURE__*/
|
|
690
|
+
}) }), /*#__PURE__*/ V(y, {
|
|
691
691
|
className: "z-10 max-w-[220px]",
|
|
692
|
-
children: /*#__PURE__*/
|
|
692
|
+
children: /*#__PURE__*/ V(G, { id: "Oxl1UN" })
|
|
693
693
|
})]
|
|
694
694
|
})]
|
|
695
695
|
})]
|
|
696
|
-
}) : /*#__PURE__*/
|
|
696
|
+
}) : /*#__PURE__*/ V("p", {
|
|
697
697
|
className: "text-theme-default text-sm",
|
|
698
|
-
children: /*#__PURE__*/
|
|
698
|
+
children: /*#__PURE__*/ V(G, {
|
|
699
699
|
id: "aSsVD3",
|
|
700
|
-
components: { 0: /*#__PURE__*/
|
|
700
|
+
components: { 0: /*#__PURE__*/ V("strong", {}) }
|
|
701
701
|
})
|
|
702
702
|
})] }),
|
|
703
|
-
/*#__PURE__*/
|
|
703
|
+
/*#__PURE__*/ H("div", { children: [/*#__PURE__*/ V("p", {
|
|
704
704
|
className: "text-theme-default mb-2 text-sm font-semibold",
|
|
705
|
-
children: /*#__PURE__*/
|
|
706
|
-
}), Ye && !
|
|
705
|
+
children: /*#__PURE__*/ V(G, { id: "jNzyQo" })
|
|
706
|
+
}), Ye && !_e ? /*#__PURE__*/ V(b, {
|
|
707
707
|
label: p._({ id: "Nvfd2b" }),
|
|
708
708
|
checked: !0,
|
|
709
709
|
onChange: (e) => {
|
|
710
|
-
e.target.checked || (
|
|
710
|
+
e.target.checked || (ge(!1), J(""), N(""), ee(""));
|
|
711
711
|
},
|
|
712
712
|
disabled: !0
|
|
713
|
-
}) : !
|
|
713
|
+
}) : !he && !_e ? /*#__PURE__*/ V(b, {
|
|
714
714
|
label: p._({ id: "WyKwnD" }),
|
|
715
715
|
checked: !1,
|
|
716
|
-
onChange: (e) =>
|
|
717
|
-
disabled:
|
|
718
|
-
}) : /*#__PURE__*/
|
|
716
|
+
onChange: (e) => ge(e.target.checked),
|
|
717
|
+
disabled: $
|
|
718
|
+
}) : /*#__PURE__*/ H(O, {
|
|
719
719
|
direction: "vertical",
|
|
720
720
|
gap: "1",
|
|
721
|
-
children: [/*#__PURE__*/
|
|
721
|
+
children: [/*#__PURE__*/ V(b, {
|
|
722
722
|
label: p._({ id: "b0uU1G" }),
|
|
723
|
-
checked:
|
|
723
|
+
checked: he,
|
|
724
724
|
onChange: (e) => {
|
|
725
|
-
|
|
725
|
+
ge(e.target.checked), e.target.checked || (J(""), N(""), ee(""));
|
|
726
726
|
},
|
|
727
|
-
disabled:
|
|
728
|
-
}),
|
|
727
|
+
disabled: $
|
|
728
|
+
}), he && /*#__PURE__*/ V("div", {
|
|
729
729
|
className: "pl-6",
|
|
730
|
-
children: /*#__PURE__*/
|
|
731
|
-
value:
|
|
732
|
-
onChange: (e) =>
|
|
730
|
+
children: /*#__PURE__*/ V(e, {
|
|
731
|
+
value: _e,
|
|
732
|
+
onChange: (e) => J(e),
|
|
733
733
|
onInputChange: te,
|
|
734
734
|
placeholder: p._({ id: "a13wDR" }),
|
|
735
735
|
helptext: (() => {
|
|
736
736
|
if (A.trim().length === 0) return p._({ id: "c+fUtV" });
|
|
737
|
-
if (
|
|
738
|
-
let e =
|
|
737
|
+
if (re > 0) {
|
|
738
|
+
let e = ye, t = L.length;
|
|
739
739
|
return p._({
|
|
740
740
|
id: "qzhUb9",
|
|
741
741
|
values: {
|
|
@@ -745,149 +745,149 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
})(),
|
|
748
|
-
disabled:
|
|
749
|
-
children:
|
|
748
|
+
disabled: $,
|
|
749
|
+
children: ne.map((e) => /*#__PURE__*/ V(c, {
|
|
750
750
|
value: e.name,
|
|
751
751
|
children: e.name
|
|
752
752
|
}, e.name))
|
|
753
753
|
})
|
|
754
754
|
})]
|
|
755
755
|
})] }),
|
|
756
|
-
/*#__PURE__*/
|
|
757
|
-
/*#__PURE__*/
|
|
756
|
+
/*#__PURE__*/ H("div", { children: [
|
|
757
|
+
/*#__PURE__*/ H(O, {
|
|
758
758
|
direction: "horizontal",
|
|
759
759
|
alignment: "center",
|
|
760
760
|
distribution: "between",
|
|
761
761
|
className: "mb-3",
|
|
762
|
-
children: [/*#__PURE__*/
|
|
762
|
+
children: [/*#__PURE__*/ V("p", {
|
|
763
763
|
className: "text-theme-default text-sm font-semibold",
|
|
764
|
-
children: /*#__PURE__*/
|
|
765
|
-
}), /*#__PURE__*/
|
|
764
|
+
children: /*#__PURE__*/ V(G, { id: "6GBt0m" })
|
|
765
|
+
}), /*#__PURE__*/ V("p", {
|
|
766
766
|
className: "text-theme-light text-xs",
|
|
767
|
-
children: /*#__PURE__*/
|
|
767
|
+
children: /*#__PURE__*/ V(G, { id: "kuYWaD" })
|
|
768
768
|
})]
|
|
769
769
|
}),
|
|
770
|
-
/*#__PURE__*/
|
|
770
|
+
/*#__PURE__*/ V(O, {
|
|
771
771
|
direction: "horizontal",
|
|
772
772
|
className: "jn:bg-theme-background-lvl-1 justify-end p-2",
|
|
773
|
-
children: /*#__PURE__*/
|
|
773
|
+
children: /*#__PURE__*/ V(j, {
|
|
774
774
|
label: p._({ id: "sWBLli" }),
|
|
775
|
-
onClick: () =>
|
|
775
|
+
onClick: () => we(!0),
|
|
776
776
|
variant: "primary",
|
|
777
777
|
icon: "addCircle",
|
|
778
778
|
size: "small",
|
|
779
|
-
disabled:
|
|
779
|
+
disabled: Ce || Ke || $
|
|
780
780
|
})
|
|
781
781
|
}),
|
|
782
|
-
/*#__PURE__*/
|
|
782
|
+
/*#__PURE__*/ H(u, {
|
|
783
783
|
columns: 3,
|
|
784
784
|
children: [
|
|
785
|
-
/*#__PURE__*/
|
|
786
|
-
/*#__PURE__*/
|
|
787
|
-
/*#__PURE__*/
|
|
788
|
-
/*#__PURE__*/
|
|
785
|
+
/*#__PURE__*/ H(i, { children: [
|
|
786
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "7sMeHQ" }) }),
|
|
787
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "wMHvYH" }) }),
|
|
788
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "7L01XJ" }) })
|
|
789
789
|
] }),
|
|
790
|
-
|
|
791
|
-
/*#__PURE__*/
|
|
792
|
-
value:
|
|
790
|
+
Ce && /*#__PURE__*/ H(i, { children: [
|
|
791
|
+
/*#__PURE__*/ V(o, { children: /*#__PURE__*/ V(f, {
|
|
792
|
+
value: Te,
|
|
793
793
|
onChange: (e) => {
|
|
794
|
-
|
|
794
|
+
Ee(e.target.value), ke && Z(null);
|
|
795
795
|
},
|
|
796
796
|
placeholder: p._({ id: "x9AdZ8" }),
|
|
797
|
-
errortext:
|
|
798
|
-
invalid: !!
|
|
797
|
+
errortext: ke ?? void 0,
|
|
798
|
+
invalid: !!ke,
|
|
799
799
|
autoFocus: !0
|
|
800
800
|
}) }),
|
|
801
|
-
/*#__PURE__*/
|
|
802
|
-
value:
|
|
801
|
+
/*#__PURE__*/ V(o, { children: /*#__PURE__*/ V(f, {
|
|
802
|
+
value: De,
|
|
803
803
|
onChange: (e) => {
|
|
804
|
-
|
|
804
|
+
Oe(e.target.value), Ae && je(null);
|
|
805
805
|
},
|
|
806
806
|
placeholder: p._({ id: "wMHvYH" }),
|
|
807
|
-
errortext:
|
|
808
|
-
invalid: !!
|
|
807
|
+
errortext: Ae ?? void 0,
|
|
808
|
+
invalid: !!Ae
|
|
809
809
|
}) }),
|
|
810
|
-
/*#__PURE__*/
|
|
810
|
+
/*#__PURE__*/ V(o, { children: /*#__PURE__*/ H(O, {
|
|
811
811
|
direction: "horizontal",
|
|
812
812
|
gap: "2",
|
|
813
|
-
children: [/*#__PURE__*/
|
|
813
|
+
children: [/*#__PURE__*/ V(j, {
|
|
814
814
|
size: "small",
|
|
815
815
|
variant: "primary",
|
|
816
|
-
onClick:
|
|
816
|
+
onClick: Ie,
|
|
817
817
|
icon: "check",
|
|
818
818
|
title: p._({ id: "tfDRzk" })
|
|
819
|
-
}), /*#__PURE__*/
|
|
819
|
+
}), /*#__PURE__*/ V(j, {
|
|
820
820
|
size: "small",
|
|
821
821
|
variant: "subdued",
|
|
822
|
-
onClick:
|
|
822
|
+
onClick: Le,
|
|
823
823
|
icon: "close",
|
|
824
824
|
title: p._({ id: "bzSI52" })
|
|
825
825
|
})]
|
|
826
826
|
}) })
|
|
827
827
|
] }),
|
|
828
|
-
|
|
829
|
-
/*#__PURE__*/
|
|
828
|
+
Y.map((e, t) => /*#__PURE__*/ H(i, { children: [
|
|
829
|
+
/*#__PURE__*/ V(o, { children: e.isEditing ? /*#__PURE__*/ V(f, {
|
|
830
830
|
value: e.key,
|
|
831
|
-
onChange: (e) =>
|
|
832
|
-
errortext:
|
|
833
|
-
invalid: !!
|
|
834
|
-
}) : /*#__PURE__*/
|
|
831
|
+
onChange: (e) => Ve(t, e.target.value),
|
|
832
|
+
errortext: xe[`edit-${t}`],
|
|
833
|
+
invalid: !!xe[`edit-${t}`]
|
|
834
|
+
}) : /*#__PURE__*/ V("span", {
|
|
835
835
|
className: "block max-w-xs truncate text-sm",
|
|
836
836
|
title: e.key,
|
|
837
837
|
children: e.key
|
|
838
838
|
}) }),
|
|
839
|
-
/*#__PURE__*/
|
|
839
|
+
/*#__PURE__*/ V(o, { children: e.isEditing ? /*#__PURE__*/ V(f, {
|
|
840
840
|
value: e.value,
|
|
841
|
-
onChange: (e) =>
|
|
842
|
-
}) : /*#__PURE__*/
|
|
841
|
+
onChange: (e) => He(t, e.target.value)
|
|
842
|
+
}) : /*#__PURE__*/ V("span", {
|
|
843
843
|
className: "block max-w-md truncate text-sm",
|
|
844
844
|
title: e.value,
|
|
845
845
|
children: e.value
|
|
846
846
|
}) }),
|
|
847
|
-
/*#__PURE__*/
|
|
847
|
+
/*#__PURE__*/ V(o, { children: e.isEditing ? /*#__PURE__*/ H(O, {
|
|
848
848
|
direction: "horizontal",
|
|
849
849
|
gap: "2",
|
|
850
|
-
children: [/*#__PURE__*/
|
|
850
|
+
children: [/*#__PURE__*/ V(j, {
|
|
851
851
|
size: "small",
|
|
852
852
|
variant: "primary",
|
|
853
|
-
onClick: () =>
|
|
853
|
+
onClick: () => ze(t),
|
|
854
854
|
icon: "check",
|
|
855
855
|
title: p._({ id: "tfDRzk" })
|
|
856
|
-
}), /*#__PURE__*/
|
|
856
|
+
}), /*#__PURE__*/ V(j, {
|
|
857
857
|
size: "small",
|
|
858
858
|
variant: "subdued",
|
|
859
|
-
onClick: () =>
|
|
859
|
+
onClick: () => Be(t),
|
|
860
860
|
icon: "close",
|
|
861
861
|
title: p._({ id: "bzSI52" })
|
|
862
862
|
})]
|
|
863
|
-
}) : /*#__PURE__*/
|
|
863
|
+
}) : /*#__PURE__*/ H(O, {
|
|
864
864
|
direction: "horizontal",
|
|
865
865
|
gap: "2",
|
|
866
|
-
children: [/*#__PURE__*/
|
|
866
|
+
children: [/*#__PURE__*/ V(j, {
|
|
867
867
|
size: "small",
|
|
868
868
|
variant: "subdued",
|
|
869
|
-
onClick: () =>
|
|
869
|
+
onClick: () => Re(t),
|
|
870
870
|
icon: "edit",
|
|
871
871
|
title: p._({ id: "ePK91l" }),
|
|
872
|
-
disabled:
|
|
873
|
-
}), /*#__PURE__*/
|
|
872
|
+
disabled: Ce || Ke || $
|
|
873
|
+
}), /*#__PURE__*/ V(j, {
|
|
874
874
|
size: "small",
|
|
875
875
|
variant: "primary-danger",
|
|
876
|
-
onClick: () =>
|
|
876
|
+
onClick: () => Q(t),
|
|
877
877
|
icon: "deleteForever",
|
|
878
878
|
title: p._({ id: "cnGeoo" }),
|
|
879
|
-
disabled:
|
|
879
|
+
disabled: Ce || Ke || $
|
|
880
880
|
})]
|
|
881
881
|
}) })
|
|
882
882
|
] }, t)),
|
|
883
|
-
|
|
883
|
+
Y.length === 0 && !Ce && /*#__PURE__*/ V(i, { children: /*#__PURE__*/ V(o, {
|
|
884
884
|
colSpan: 3,
|
|
885
885
|
className: "py-6 text-center",
|
|
886
|
-
children: /*#__PURE__*/
|
|
886
|
+
children: /*#__PURE__*/ V(O, {
|
|
887
887
|
alignment: "center",
|
|
888
|
-
children: /*#__PURE__*/
|
|
888
|
+
children: /*#__PURE__*/ V("span", {
|
|
889
889
|
className: "text-theme-light text-sm",
|
|
890
|
-
children: /*#__PURE__*/
|
|
890
|
+
children: /*#__PURE__*/ V(G, { id: "F02e8I" })
|
|
891
891
|
})
|
|
892
892
|
})
|
|
893
893
|
}) })
|
|
@@ -901,7 +901,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
|
|
|
901
901
|
};
|
|
902
902
|
//#endregion
|
|
903
903
|
//#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ManageContainerAccessModal.tsx
|
|
904
|
-
function
|
|
904
|
+
function Y(e) {
|
|
905
905
|
let t = e.trim();
|
|
906
906
|
if (t === ".r:*") return {
|
|
907
907
|
raw: t,
|
|
@@ -960,56 +960,56 @@ function pe(e) {
|
|
|
960
960
|
requiresToken: !0
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
return e.trim() ? e.split(",").map((e) => e.trim()).filter(Boolean).map(
|
|
963
|
+
function X(e) {
|
|
964
|
+
return e.trim() ? e.split(",").map((e) => e.trim()).filter(Boolean).map(Y) : [];
|
|
965
965
|
}
|
|
966
|
-
var
|
|
967
|
-
function
|
|
966
|
+
var xe = [".r:*", ".rlistings"];
|
|
967
|
+
function Se(e) {
|
|
968
968
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
969
|
-
return
|
|
969
|
+
return xe.every((e) => t.includes(e));
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Ce(e) {
|
|
972
972
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
973
|
-
return [...new Set([...
|
|
973
|
+
return [...new Set([...xe, ...t])].join(",");
|
|
974
974
|
}
|
|
975
|
-
function
|
|
976
|
-
return e.split(",").map((e) => e.trim()).filter((e) => !
|
|
975
|
+
function we(e) {
|
|
976
|
+
return e.split(",").map((e) => e.trim()).filter((e) => !xe.includes(e)).join(",");
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Te(e) {
|
|
979
979
|
switch (e.type) {
|
|
980
|
-
case "any-referrer": return
|
|
980
|
+
case "any-referrer": return q._({ id: "HVdrr1" });
|
|
981
981
|
case "denied-referrer": {
|
|
982
982
|
let t = e.host || "";
|
|
983
|
-
return
|
|
983
|
+
return q._({
|
|
984
984
|
id: "7XQ3QJ",
|
|
985
985
|
values: { host: t }
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
case "specific-referrer": {
|
|
989
989
|
let t = e.host || "";
|
|
990
|
-
return
|
|
990
|
+
return q._({
|
|
991
991
|
id: "Dqnh7K",
|
|
992
992
|
values: { host: t }
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
|
-
case "listing-access": return
|
|
995
|
+
case "listing-access": return q._({ id: "ntNlXu" });
|
|
996
996
|
case "all-project-users": {
|
|
997
997
|
let t = e.projectId || "";
|
|
998
|
-
return
|
|
998
|
+
return q._({
|
|
999
999
|
id: "sa4CV6",
|
|
1000
1000
|
values: { projectId: t }
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
1003
|
case "specific-user-any-project": {
|
|
1004
1004
|
let t = e.userId || "";
|
|
1005
|
-
return
|
|
1005
|
+
return q._({
|
|
1006
1006
|
id: "izMhIO",
|
|
1007
1007
|
values: { userId: t }
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
case "specific-user": {
|
|
1011
1011
|
let t = e.projectId || "", n = e.userId || "";
|
|
1012
|
-
return
|
|
1012
|
+
return q._({
|
|
1013
1013
|
id: "cXuXkb",
|
|
1014
1014
|
values: {
|
|
1015
1015
|
userId: n,
|
|
@@ -1020,19 +1020,19 @@ function ye(e) {
|
|
|
1020
1020
|
default: return e.raw;
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1024
|
-
let { i18n: l, _: u } =
|
|
1025
|
-
|
|
1023
|
+
var Ee = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
1024
|
+
let { i18n: l, _: u } = K(), d = I(), [f, p] = W(""), [m, h] = W(""), [_, v] = W(!1), [y, x] = W(!1);
|
|
1025
|
+
le(() => {
|
|
1026
1026
|
!f.trim() && !m.trim() && x(!1);
|
|
1027
1027
|
}, [f, m]);
|
|
1028
1028
|
let { data: S, isLoading: T, isError: E, error: D } = M.storage.swift.getContainerMetadata.useQuery({
|
|
1029
1029
|
project_id: d,
|
|
1030
1030
|
container: t?.name ?? ""
|
|
1031
1031
|
}, { enabled: e && t !== null });
|
|
1032
|
-
|
|
1032
|
+
le(() => {
|
|
1033
1033
|
if (!S) return;
|
|
1034
1034
|
let e = S.read ?? "", t = S.write ?? "";
|
|
1035
|
-
p(e), h(t), v(
|
|
1035
|
+
p(e), h(t), v(Se(e));
|
|
1036
1036
|
}, [S]);
|
|
1037
1037
|
let k = M.useUtils(), A = M.storage.swift.updateContainerMetadata.useMutation({
|
|
1038
1038
|
onSuccess: () => {
|
|
@@ -1044,20 +1044,20 @@ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
|
1044
1044
|
onError: (e) => {
|
|
1045
1045
|
c?.(t.name, e.message);
|
|
1046
1046
|
}
|
|
1047
|
-
}), N =
|
|
1047
|
+
}), N = ue(A.reset);
|
|
1048
1048
|
N.current = A.reset;
|
|
1049
1049
|
let P = () => {
|
|
1050
1050
|
p(""), h(""), v(!1), x(!1), A.reset(), i();
|
|
1051
1051
|
};
|
|
1052
|
-
|
|
1052
|
+
le(() => {
|
|
1053
1053
|
e || (p(""), h(""), v(!1), N.current());
|
|
1054
1054
|
}, [e]);
|
|
1055
1055
|
let ee = (e) => {
|
|
1056
1056
|
let t = e.target.checked;
|
|
1057
|
-
v(t), p((e) => t ?
|
|
1057
|
+
v(t), p((e) => t ? Ce(e) : we(e));
|
|
1058
1058
|
}, F = (e) => {
|
|
1059
1059
|
let t = e.target.value;
|
|
1060
|
-
p(t), v(
|
|
1060
|
+
p(t), v(Se(t));
|
|
1061
1061
|
}, te = () => {
|
|
1062
1062
|
t && A.mutate({
|
|
1063
1063
|
project_id: d,
|
|
@@ -1067,11 +1067,11 @@ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
|
1067
1067
|
});
|
|
1068
1068
|
};
|
|
1069
1069
|
if (!e || !t) return null;
|
|
1070
|
-
let L = T || A.isPending,
|
|
1071
|
-
return /*#__PURE__*/
|
|
1072
|
-
title: /* @__PURE__ */
|
|
1070
|
+
let L = T || A.isPending, ne = f.trim().length > 0 || m.trim().length > 0, re = X(f), ie = X(m);
|
|
1071
|
+
return /*#__PURE__*/ H(w, {
|
|
1072
|
+
title: /* @__PURE__ */ H("span", {
|
|
1073
1073
|
className: "flex items-center gap-2",
|
|
1074
|
-
children: [/*#__PURE__*/
|
|
1074
|
+
children: [/*#__PURE__*/ V(G, { id: "EdxcAN" }), /*#__PURE__*/ V("span", {
|
|
1075
1075
|
className: "max-w-[250px] truncate",
|
|
1076
1076
|
title: t.name,
|
|
1077
1077
|
children: t.name
|
|
@@ -1084,49 +1084,49 @@ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
|
1084
1084
|
cancelButtonLabel: l._({ id: "dEgA5A" }),
|
|
1085
1085
|
size: "xl",
|
|
1086
1086
|
disableConfirmButton: L || E,
|
|
1087
|
-
children: [A.isError && /*#__PURE__*/
|
|
1087
|
+
children: [A.isError && /*#__PURE__*/ V("p", {
|
|
1088
1088
|
className: "text-theme-error mb-4",
|
|
1089
1089
|
children: (() => {
|
|
1090
1090
|
let e = A.error.message;
|
|
1091
|
-
return /*#__PURE__*/
|
|
1091
|
+
return /*#__PURE__*/ V(G, {
|
|
1092
1092
|
id: "u2xIeO",
|
|
1093
1093
|
values: { errorMessage: e }
|
|
1094
1094
|
});
|
|
1095
1095
|
})()
|
|
1096
|
-
}), /*#__PURE__*/
|
|
1096
|
+
}), /*#__PURE__*/ H("div", {
|
|
1097
1097
|
className: "max-h-[70vh] overflow-y-auto pr-1 pl-1",
|
|
1098
1098
|
children: [
|
|
1099
|
-
/*#__PURE__*/
|
|
1099
|
+
/*#__PURE__*/ V("div", {
|
|
1100
1100
|
className: "mb-4",
|
|
1101
|
-
children: /*#__PURE__*/
|
|
1101
|
+
children: /*#__PURE__*/ V(n, {
|
|
1102
1102
|
variant: "warning",
|
|
1103
1103
|
className: "mb-4",
|
|
1104
|
-
children: /*#__PURE__*/
|
|
1104
|
+
children: /*#__PURE__*/ V(G, { id: "wH0MtN" })
|
|
1105
1105
|
})
|
|
1106
1106
|
}),
|
|
1107
|
-
T ? /*#__PURE__*/
|
|
1107
|
+
T ? /*#__PURE__*/ H(O, {
|
|
1108
1108
|
direction: "horizontal",
|
|
1109
1109
|
alignment: "center",
|
|
1110
1110
|
gap: "2",
|
|
1111
1111
|
className: "py-6",
|
|
1112
|
-
children: [/*#__PURE__*/
|
|
1113
|
-
}) : E ? /*#__PURE__*/
|
|
1112
|
+
children: [/*#__PURE__*/ V(s, { size: "small" }), /*#__PURE__*/ V(G, { id: "poCbZw" })]
|
|
1113
|
+
}) : E ? /*#__PURE__*/ V("p", {
|
|
1114
1114
|
className: "text-theme-error py-2",
|
|
1115
|
-
children: /*#__PURE__*/
|
|
1115
|
+
children: /*#__PURE__*/ V(G, {
|
|
1116
1116
|
id: "QNHur0",
|
|
1117
1117
|
values: { errorMessage: D?.message ?? "" }
|
|
1118
1118
|
})
|
|
1119
|
-
}) : /*#__PURE__*/
|
|
1119
|
+
}) : /*#__PURE__*/ V(B, { children: /*#__PURE__*/ H("div", {
|
|
1120
1120
|
className: "flex gap-6",
|
|
1121
|
-
children: [/*#__PURE__*/
|
|
1121
|
+
children: [/*#__PURE__*/ V("div", {
|
|
1122
1122
|
className: "min-w-0 flex-1",
|
|
1123
|
-
children: /*#__PURE__*/
|
|
1123
|
+
children: /*#__PURE__*/ H(O, {
|
|
1124
1124
|
direction: "vertical",
|
|
1125
1125
|
gap: "6",
|
|
1126
1126
|
children: [
|
|
1127
|
-
/*#__PURE__*/
|
|
1128
|
-
/*#__PURE__*/
|
|
1129
|
-
/*#__PURE__*/
|
|
1127
|
+
/*#__PURE__*/ H("div", { children: [
|
|
1128
|
+
/*#__PURE__*/ V(Oe, { label: l._({ id: "SBGiGm" }) }),
|
|
1129
|
+
/*#__PURE__*/ V(g, {
|
|
1130
1130
|
value: f,
|
|
1131
1131
|
onChange: F,
|
|
1132
1132
|
disabled: L || _,
|
|
@@ -1134,7 +1134,7 @@ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
|
1134
1134
|
className: "text-sm",
|
|
1135
1135
|
rows: 3
|
|
1136
1136
|
}),
|
|
1137
|
-
/*#__PURE__*/
|
|
1137
|
+
/*#__PURE__*/ V(b, {
|
|
1138
1138
|
label: l._({ id: "23wBCX" }),
|
|
1139
1139
|
checked: _,
|
|
1140
1140
|
onChange: ee,
|
|
@@ -1142,7 +1142,7 @@ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
|
1142
1142
|
className: "mt-2"
|
|
1143
1143
|
})
|
|
1144
1144
|
] }),
|
|
1145
|
-
/*#__PURE__*/
|
|
1145
|
+
/*#__PURE__*/ H("div", { children: [/*#__PURE__*/ V(Oe, { label: l._({ id: "6qzsuS" }) }), /*#__PURE__*/ V(g, {
|
|
1146
1146
|
value: m,
|
|
1147
1147
|
onChange: (e) => {
|
|
1148
1148
|
let t = e.target.value;
|
|
@@ -1153,67 +1153,67 @@ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
|
1153
1153
|
className: "text-sm",
|
|
1154
1154
|
rows: 3
|
|
1155
1155
|
})] }),
|
|
1156
|
-
|
|
1156
|
+
ne && /*#__PURE__*/ V(j, {
|
|
1157
1157
|
label: y ? l._({ id: "we28Pq" }) : l._({ id: "YiMCKk" }),
|
|
1158
1158
|
onClick: () => x((e) => !e),
|
|
1159
1159
|
variant: "subdued",
|
|
1160
1160
|
disabled: L,
|
|
1161
1161
|
className: "self-start"
|
|
1162
1162
|
}),
|
|
1163
|
-
y && (
|
|
1163
|
+
y && (re.length > 0 || ie.length > 0) && /*#__PURE__*/ H(O, {
|
|
1164
1164
|
direction: "vertical",
|
|
1165
1165
|
gap: "4",
|
|
1166
|
-
children: [
|
|
1166
|
+
children: [re.length > 0 && /*#__PURE__*/ H("div", { children: [/*#__PURE__*/ V("p", {
|
|
1167
1167
|
className: "text-theme-default mb-2 text-sm font-semibold",
|
|
1168
|
-
children: /*#__PURE__*/
|
|
1169
|
-
}), /*#__PURE__*/
|
|
1168
|
+
children: /*#__PURE__*/ V(G, { id: "x7SF89" })
|
|
1169
|
+
}), /*#__PURE__*/ V("div", {
|
|
1170
1170
|
className: "border-theme-background-lvl-3 rounded border p-3",
|
|
1171
|
-
children: /*#__PURE__*/
|
|
1171
|
+
children: /*#__PURE__*/ V(a, {
|
|
1172
1172
|
className: "grid-cols-2",
|
|
1173
1173
|
alignTerms: "left",
|
|
1174
|
-
children:
|
|
1174
|
+
children: re.map((e, t) => /*#__PURE__*/ H(U, { children: [/*#__PURE__*/ V(C, {
|
|
1175
1175
|
className: "col-span-1",
|
|
1176
|
-
children: /*#__PURE__*/
|
|
1176
|
+
children: /*#__PURE__*/ V("span", {
|
|
1177
1177
|
className: "block truncate text-xs",
|
|
1178
1178
|
title: e.raw,
|
|
1179
1179
|
children: e.raw
|
|
1180
1180
|
})
|
|
1181
|
-
}), /*#__PURE__*/
|
|
1181
|
+
}), /*#__PURE__*/ H(r, {
|
|
1182
1182
|
className: "col-span-1",
|
|
1183
|
-
children: [/*#__PURE__*/
|
|
1183
|
+
children: [/*#__PURE__*/ V("span", {
|
|
1184
1184
|
className: "block truncate text-sm",
|
|
1185
|
-
title:
|
|
1186
|
-
children:
|
|
1187
|
-
}), /*#__PURE__*/
|
|
1185
|
+
title: Te(e),
|
|
1186
|
+
children: Te(e)
|
|
1187
|
+
}), /*#__PURE__*/ V("span", {
|
|
1188
1188
|
className: "text-theme-light block text-xs",
|
|
1189
|
-
children: e.requiresToken ? /*#__PURE__*/
|
|
1189
|
+
children: e.requiresToken ? /*#__PURE__*/ V(G, { id: "z+zpLP" }) : /*#__PURE__*/ V(G, { id: "t7ff15" })
|
|
1190
1190
|
})]
|
|
1191
1191
|
})] }, t))
|
|
1192
1192
|
})
|
|
1193
|
-
})] }),
|
|
1193
|
+
})] }), ie.length > 0 && /*#__PURE__*/ H("div", { children: [/*#__PURE__*/ V("p", {
|
|
1194
1194
|
className: "text-theme-default mb-2 text-sm font-semibold",
|
|
1195
|
-
children: /*#__PURE__*/
|
|
1196
|
-
}), /*#__PURE__*/
|
|
1195
|
+
children: /*#__PURE__*/ V(G, { id: "lRRkwQ" })
|
|
1196
|
+
}), /*#__PURE__*/ V("div", {
|
|
1197
1197
|
className: "border-theme-background-lvl-3 rounded border p-3",
|
|
1198
|
-
children: /*#__PURE__*/
|
|
1198
|
+
children: /*#__PURE__*/ V(a, {
|
|
1199
1199
|
className: "grid-cols-2",
|
|
1200
1200
|
alignTerms: "left",
|
|
1201
|
-
children:
|
|
1201
|
+
children: ie.map((e, t) => /*#__PURE__*/ H(U, { children: [/*#__PURE__*/ V(C, {
|
|
1202
1202
|
className: "col-span-1",
|
|
1203
|
-
children: /*#__PURE__*/
|
|
1203
|
+
children: /*#__PURE__*/ V("span", {
|
|
1204
1204
|
className: "block truncate text-xs",
|
|
1205
1205
|
title: e.raw,
|
|
1206
1206
|
children: e.raw
|
|
1207
1207
|
})
|
|
1208
|
-
}), /*#__PURE__*/
|
|
1208
|
+
}), /*#__PURE__*/ H(r, {
|
|
1209
1209
|
className: "col-span-1",
|
|
1210
|
-
children: [/*#__PURE__*/
|
|
1210
|
+
children: [/*#__PURE__*/ V("span", {
|
|
1211
1211
|
className: "block truncate text-sm",
|
|
1212
|
-
title:
|
|
1213
|
-
children:
|
|
1214
|
-
}), /*#__PURE__*/
|
|
1212
|
+
title: Te(e),
|
|
1213
|
+
children: Te(e)
|
|
1214
|
+
}), /*#__PURE__*/ V("span", {
|
|
1215
1215
|
className: "text-theme-light block text-xs",
|
|
1216
|
-
children: e.requiresToken ? /*#__PURE__*/
|
|
1216
|
+
children: e.requiresToken ? /*#__PURE__*/ V(G, { id: "z+zpLP" }) : /*#__PURE__*/ V(G, { id: "t7ff15" })
|
|
1217
1217
|
})]
|
|
1218
1218
|
})] }, t))
|
|
1219
1219
|
})
|
|
@@ -1221,44 +1221,44 @@ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
|
1221
1221
|
})
|
|
1222
1222
|
]
|
|
1223
1223
|
})
|
|
1224
|
-
}), /*#__PURE__*/
|
|
1224
|
+
}), /*#__PURE__*/ H("div", {
|
|
1225
1225
|
className: "border-theme-background-lvl-3 w-72 shrink-0 border-l pl-6",
|
|
1226
1226
|
children: [
|
|
1227
|
-
/*#__PURE__*/
|
|
1227
|
+
/*#__PURE__*/ V("p", {
|
|
1228
1228
|
className: "text-theme-light mb-3 text-xs",
|
|
1229
|
-
children: /*#__PURE__*/
|
|
1229
|
+
children: /*#__PURE__*/ V(G, { id: "dd2ndz" })
|
|
1230
1230
|
}),
|
|
1231
|
-
/*#__PURE__*/
|
|
1231
|
+
/*#__PURE__*/ H(O, {
|
|
1232
1232
|
direction: "vertical",
|
|
1233
1233
|
gap: "4",
|
|
1234
1234
|
children: [
|
|
1235
|
-
/*#__PURE__*/
|
|
1235
|
+
/*#__PURE__*/ V(De, {
|
|
1236
1236
|
code: ".r:*",
|
|
1237
1237
|
description: l._({ id: "VV1fdg" })
|
|
1238
1238
|
}),
|
|
1239
|
-
/*#__PURE__*/
|
|
1239
|
+
/*#__PURE__*/ V(De, {
|
|
1240
1240
|
code: ".rlistings",
|
|
1241
1241
|
description: l._({ id: "s/s1lz" })
|
|
1242
1242
|
}),
|
|
1243
|
-
/*#__PURE__*/
|
|
1243
|
+
/*#__PURE__*/ V(De, {
|
|
1244
1244
|
code: "PROJECT_ID:USER_ID",
|
|
1245
1245
|
description: l._({ id: "zhM8FP" })
|
|
1246
1246
|
}),
|
|
1247
|
-
/*#__PURE__*/
|
|
1247
|
+
/*#__PURE__*/ V(De, {
|
|
1248
1248
|
code: "PROJECT_ID:*",
|
|
1249
1249
|
description: l._({ id: "BCJPTn" })
|
|
1250
1250
|
}),
|
|
1251
|
-
/*#__PURE__*/
|
|
1251
|
+
/*#__PURE__*/ V(De, {
|
|
1252
1252
|
code: "*:USER_ID",
|
|
1253
1253
|
description: l._({ id: "/xnbdQ" })
|
|
1254
1254
|
})
|
|
1255
1255
|
]
|
|
1256
1256
|
}),
|
|
1257
|
-
/*#__PURE__*/
|
|
1257
|
+
/*#__PURE__*/ V("p", {
|
|
1258
1258
|
className: "text-theme-light mt-4 text-xs",
|
|
1259
|
-
children: /*#__PURE__*/
|
|
1259
|
+
children: /*#__PURE__*/ V(G, {
|
|
1260
1260
|
id: "rrjuul",
|
|
1261
|
-
components: { 0: /*#__PURE__*/
|
|
1261
|
+
components: { 0: /*#__PURE__*/ V("a", {
|
|
1262
1262
|
href: "https://docs.openstack.org/swift/latest/overview_acl.html",
|
|
1263
1263
|
target: "_blank",
|
|
1264
1264
|
rel: "noopener noreferrer",
|
|
@@ -1269,120 +1269,120 @@ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
|
|
|
1269
1269
|
]
|
|
1270
1270
|
})]
|
|
1271
1271
|
}) }),
|
|
1272
|
-
!T && !E && /*#__PURE__*/
|
|
1272
|
+
!T && !E && /*#__PURE__*/ V("p", {
|
|
1273
1273
|
className: "text-theme-light mt-4 text-xs",
|
|
1274
|
-
children: /*#__PURE__*/
|
|
1274
|
+
children: /*#__PURE__*/ V(G, { id: "j9lCXl" })
|
|
1275
1275
|
})
|
|
1276
1276
|
]
|
|
1277
1277
|
})]
|
|
1278
1278
|
});
|
|
1279
1279
|
};
|
|
1280
|
-
function
|
|
1281
|
-
return /*#__PURE__*/
|
|
1280
|
+
function De({ code: e, description: t }) {
|
|
1281
|
+
return /*#__PURE__*/ H("div", { children: [/*#__PURE__*/ V(A, {
|
|
1282
1282
|
variant: "info",
|
|
1283
1283
|
className: "mb-1 text-xs",
|
|
1284
1284
|
children: e
|
|
1285
|
-
}), /*#__PURE__*/
|
|
1285
|
+
}), /*#__PURE__*/ V("p", {
|
|
1286
1286
|
className: "text-theme-light text-xs leading-relaxed",
|
|
1287
1287
|
children: t
|
|
1288
1288
|
})] });
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return /*#__PURE__*/
|
|
1290
|
+
function Oe({ label: e }) {
|
|
1291
|
+
return /*#__PURE__*/ H("div", {
|
|
1292
1292
|
className: "mb-1 flex items-center gap-1",
|
|
1293
|
-
children: [/*#__PURE__*/
|
|
1293
|
+
children: [/*#__PURE__*/ V("label", {
|
|
1294
1294
|
className: "text-theme-default text-sm font-semibold",
|
|
1295
1295
|
children: e
|
|
1296
|
-
}), /*#__PURE__*/
|
|
1296
|
+
}), /*#__PURE__*/ H(S, {
|
|
1297
1297
|
triggerEvent: "hover",
|
|
1298
|
-
children: [/*#__PURE__*/
|
|
1298
|
+
children: [/*#__PURE__*/ V(E, { children: /*#__PURE__*/ V(_, {
|
|
1299
1299
|
icon: "info",
|
|
1300
1300
|
size: "14",
|
|
1301
1301
|
className: "text-theme-light cursor-help"
|
|
1302
|
-
}) }), /*#__PURE__*/
|
|
1302
|
+
}) }), /*#__PURE__*/ V(y, {
|
|
1303
1303
|
className: "z-10 max-w-[350px]",
|
|
1304
|
-
children: /*#__PURE__*/
|
|
1304
|
+
children: /*#__PURE__*/ V(G, { id: "AdtLNV" })
|
|
1305
1305
|
})]
|
|
1306
1306
|
})]
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
1309
1309
|
//#endregion
|
|
1310
1310
|
//#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ContainerTableView.tsx
|
|
1311
|
-
var
|
|
1312
|
-
let { projectId: w, provider: E, storageType: D } =
|
|
1313
|
-
|
|
1311
|
+
var ke = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContainerNameLength: a, onCreateSuccess: s, onCreateError: c, onEmptySuccess: l, onEmptyError: f, onDeleteSuccess: p, onDeleteError: h, onPropertiesSuccess: g, onPropertiesError: _, onAclSuccess: v, onAclError: y, selectedContainers: x, setSelectedContainers: S, hasAnyBulkAction: C = !0 }) => {
|
|
1312
|
+
let { projectId: w, provider: E, storageType: D } = fe({ from: "/_auth/projects/$projectId/storage/$provider/$storageType/" }), { i18n: O, _: k } = K(), A = de(), j = ue(null), [M, N] = W(0), [P, ee] = W(null), [I, te] = W(null), [L, ne] = W(null), [re, ie] = W(null);
|
|
1313
|
+
le(() => {
|
|
1314
1314
|
j.current && N(j.current.offsetWidth - j.current.clientWidth);
|
|
1315
1315
|
}, [e.length]);
|
|
1316
|
-
let
|
|
1316
|
+
let R = (e) => {
|
|
1317
1317
|
try {
|
|
1318
1318
|
return new Date(e).toLocaleString();
|
|
1319
1319
|
} catch {
|
|
1320
1320
|
return O._({ id: "fj5byd" });
|
|
1321
1321
|
}
|
|
1322
|
-
},
|
|
1322
|
+
}, ae = me({
|
|
1323
1323
|
count: e.length,
|
|
1324
1324
|
getScrollElement: () => j.current,
|
|
1325
1325
|
estimateSize: () => 48,
|
|
1326
1326
|
overscan: 10
|
|
1327
|
-
}),
|
|
1327
|
+
}), oe = (e) => {
|
|
1328
1328
|
x.includes(e) ? S(x.filter((t) => t !== e)) : S([...x, e]);
|
|
1329
1329
|
};
|
|
1330
|
-
if (!e || e.length === 0) return /*#__PURE__*/ B
|
|
1330
|
+
if (!e || e.length === 0) return /*#__PURE__*/ H(B, { children: [/*#__PURE__*/ V(u, {
|
|
1331
1331
|
columns: 4,
|
|
1332
1332
|
className: "containers",
|
|
1333
1333
|
"data-testid": "no-containers",
|
|
1334
|
-
children: /*#__PURE__*/
|
|
1334
|
+
children: /*#__PURE__*/ V(i, { children: /*#__PURE__*/ V(o, {
|
|
1335
1335
|
colSpan: 4,
|
|
1336
|
-
children: /*#__PURE__*/
|
|
1336
|
+
children: /*#__PURE__*/ H("div", {
|
|
1337
1337
|
className: "py-8 text-center",
|
|
1338
|
-
children: [/*#__PURE__*/
|
|
1338
|
+
children: [/*#__PURE__*/ V("h3", {
|
|
1339
1339
|
className: "text-lg font-semibold",
|
|
1340
|
-
children: /*#__PURE__*/
|
|
1341
|
-
}), /*#__PURE__*/
|
|
1340
|
+
children: /*#__PURE__*/ V(G, { id: "Hiw1Ha" })
|
|
1341
|
+
}), /*#__PURE__*/ V("p", {
|
|
1342
1342
|
className: "text-theme-light mt-2",
|
|
1343
|
-
children: /*#__PURE__*/
|
|
1343
|
+
children: /*#__PURE__*/ V(G, { id: "x1bK0h" })
|
|
1344
1344
|
})]
|
|
1345
1345
|
})
|
|
1346
1346
|
}) })
|
|
1347
|
-
}), /*#__PURE__*/
|
|
1347
|
+
}), /*#__PURE__*/ V(he, {
|
|
1348
1348
|
isOpen: n,
|
|
1349
1349
|
onClose: () => r(!1),
|
|
1350
1350
|
onSuccess: s,
|
|
1351
1351
|
onError: c,
|
|
1352
1352
|
maxContainerNameLength: a
|
|
1353
1353
|
})] });
|
|
1354
|
-
let
|
|
1355
|
-
return /*#__PURE__*/ B
|
|
1356
|
-
/*#__PURE__*/
|
|
1354
|
+
let z = C ? 6 : 5, U = C ? "40px minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px" : "minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px";
|
|
1355
|
+
return /*#__PURE__*/ H(B, { children: [
|
|
1356
|
+
/*#__PURE__*/ H("div", {
|
|
1357
1357
|
className: "relative",
|
|
1358
|
-
children: [/*#__PURE__*/
|
|
1358
|
+
children: [/*#__PURE__*/ V("div", {
|
|
1359
1359
|
style: { paddingRight: `${M}px` },
|
|
1360
|
-
children: /*#__PURE__*/
|
|
1361
|
-
columns:
|
|
1362
|
-
gridColumnTemplate:
|
|
1360
|
+
children: /*#__PURE__*/ V(u, {
|
|
1361
|
+
columns: z,
|
|
1362
|
+
gridColumnTemplate: U,
|
|
1363
1363
|
className: "containers",
|
|
1364
1364
|
"data-testid": "containers-table-header",
|
|
1365
|
-
children: /*#__PURE__*/
|
|
1366
|
-
C && /*#__PURE__*/
|
|
1367
|
-
/*#__PURE__*/
|
|
1368
|
-
/*#__PURE__*/
|
|
1369
|
-
/*#__PURE__*/
|
|
1370
|
-
/*#__PURE__*/
|
|
1371
|
-
/*#__PURE__*/
|
|
1365
|
+
children: /*#__PURE__*/ H(i, { children: [
|
|
1366
|
+
C && /*#__PURE__*/ V(d, {}),
|
|
1367
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "t0X9+8" }) }),
|
|
1368
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "sxbP3b" }) }),
|
|
1369
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "sjMCOP" }) }),
|
|
1370
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "hgpMHD" }) }),
|
|
1371
|
+
/*#__PURE__*/ V(d, { style: { marginRight: `-${M}px` } })
|
|
1372
1372
|
] })
|
|
1373
1373
|
})
|
|
1374
|
-
}), /*#__PURE__*/
|
|
1374
|
+
}), /*#__PURE__*/ V("div", {
|
|
1375
1375
|
ref: j,
|
|
1376
1376
|
className: "overflow-auto",
|
|
1377
1377
|
style: { height: "calc(100vh - 490px)" },
|
|
1378
1378
|
"data-testid": "containers-table-body",
|
|
1379
|
-
children: /*#__PURE__*/
|
|
1379
|
+
children: /*#__PURE__*/ V("div", {
|
|
1380
1380
|
style: {
|
|
1381
|
-
height: `${
|
|
1381
|
+
height: `${ae.getTotalSize()}px`,
|
|
1382
1382
|
width: "100%",
|
|
1383
1383
|
position: "relative"
|
|
1384
1384
|
},
|
|
1385
|
-
children:
|
|
1385
|
+
children: ae.getVirtualItems().map((n) => {
|
|
1386
1386
|
let r = e[n.index], i = x.includes(r.name), a = () => A({
|
|
1387
1387
|
to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
|
|
1388
1388
|
params: {
|
|
@@ -1392,9 +1392,9 @@ var xe = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContain
|
|
|
1392
1392
|
containerName: r.name
|
|
1393
1393
|
}
|
|
1394
1394
|
});
|
|
1395
|
-
return /*#__PURE__*/
|
|
1395
|
+
return /*#__PURE__*/ H("div", {
|
|
1396
1396
|
"data-index": n.index,
|
|
1397
|
-
ref:
|
|
1397
|
+
ref: ae.measureElement,
|
|
1398
1398
|
className: "juno-datagrid group hover:bg-theme-background-lvl-1 cursor-pointer",
|
|
1399
1399
|
style: {
|
|
1400
1400
|
position: "absolute",
|
|
@@ -1403,7 +1403,7 @@ var xe = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContain
|
|
|
1403
1403
|
width: "100%",
|
|
1404
1404
|
transform: `translateY(${n.start}px)`,
|
|
1405
1405
|
display: "grid",
|
|
1406
|
-
gridTemplateColumns:
|
|
1406
|
+
gridTemplateColumns: U,
|
|
1407
1407
|
alignItems: "stretch"
|
|
1408
1408
|
},
|
|
1409
1409
|
"data-testid": `container-row-${r.name}`,
|
|
@@ -1414,47 +1414,47 @@ var xe = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContain
|
|
|
1414
1414
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
|
|
1415
1415
|
},
|
|
1416
1416
|
children: [
|
|
1417
|
-
C && /*#__PURE__*/
|
|
1417
|
+
C && /*#__PURE__*/ V(o, {
|
|
1418
1418
|
onClick: (e) => e.stopPropagation(),
|
|
1419
1419
|
onKeyDown: (e) => {
|
|
1420
1420
|
(e.key === "Enter" || e.key === " ") && e.stopPropagation();
|
|
1421
1421
|
},
|
|
1422
|
-
children: /*#__PURE__*/
|
|
1422
|
+
children: /*#__PURE__*/ V(b, {
|
|
1423
1423
|
checked: i,
|
|
1424
|
-
onChange: () =>
|
|
1424
|
+
onChange: () => oe(r.name),
|
|
1425
1425
|
"data-testid": `select-container-${r.name}`
|
|
1426
1426
|
})
|
|
1427
1427
|
}),
|
|
1428
|
-
/*#__PURE__*/
|
|
1428
|
+
/*#__PURE__*/ V(o, {
|
|
1429
1429
|
className: "min-w-0 overflow-hidden",
|
|
1430
|
-
children: /*#__PURE__*/
|
|
1430
|
+
children: /*#__PURE__*/ V("span", {
|
|
1431
1431
|
className: "block truncate",
|
|
1432
1432
|
title: r.name,
|
|
1433
1433
|
children: r.name
|
|
1434
1434
|
})
|
|
1435
1435
|
}),
|
|
1436
|
-
/*#__PURE__*/
|
|
1437
|
-
/*#__PURE__*/
|
|
1438
|
-
/*#__PURE__*/
|
|
1439
|
-
/*#__PURE__*/
|
|
1436
|
+
/*#__PURE__*/ V(o, { children: r.count.toLocaleString() }),
|
|
1437
|
+
/*#__PURE__*/ V(o, { children: r.last_modified ? R(r.last_modified) : O._({ id: "fj5byd" }) }),
|
|
1438
|
+
/*#__PURE__*/ V(o, { children: F(r.bytes) }),
|
|
1439
|
+
/*#__PURE__*/ V(o, {
|
|
1440
1440
|
onClick: (e) => e.stopPropagation(),
|
|
1441
|
-
children: /*#__PURE__*/
|
|
1442
|
-
/*#__PURE__*/
|
|
1441
|
+
children: /*#__PURE__*/ V(T, { children: /*#__PURE__*/ H(t, { children: [
|
|
1442
|
+
/*#__PURE__*/ V(m, {
|
|
1443
1443
|
label: O._({ id: "cWbW6w" }),
|
|
1444
|
-
onClick: () =>
|
|
1444
|
+
onClick: () => ie(r),
|
|
1445
1445
|
"data-testid": `access-control-action-${r.name}`
|
|
1446
1446
|
}),
|
|
1447
|
-
/*#__PURE__*/
|
|
1447
|
+
/*#__PURE__*/ V(m, {
|
|
1448
1448
|
label: O._({ id: "Oc8Aqv" }),
|
|
1449
1449
|
onClick: () => ne(r),
|
|
1450
1450
|
"data-testid": `properties-action-${r.name}`
|
|
1451
1451
|
}),
|
|
1452
|
-
/*#__PURE__*/
|
|
1452
|
+
/*#__PURE__*/ V(m, {
|
|
1453
1453
|
label: O._({ id: "N2S1rs" }),
|
|
1454
1454
|
onClick: () => ee(r),
|
|
1455
1455
|
"data-testid": `empty-action-${r.name}`
|
|
1456
1456
|
}),
|
|
1457
|
-
/*#__PURE__*/
|
|
1457
|
+
/*#__PURE__*/ V(m, {
|
|
1458
1458
|
label: O._({ id: "cnGeoo" }),
|
|
1459
1459
|
onClick: () => te(r),
|
|
1460
1460
|
"data-testid": `delete-action-${r.name}`
|
|
@@ -1467,38 +1467,38 @@ var xe = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContain
|
|
|
1467
1467
|
})
|
|
1468
1468
|
})]
|
|
1469
1469
|
}),
|
|
1470
|
-
/*#__PURE__*/
|
|
1470
|
+
/*#__PURE__*/ V(he, {
|
|
1471
1471
|
isOpen: n,
|
|
1472
1472
|
onClose: () => r(!1),
|
|
1473
1473
|
onSuccess: s,
|
|
1474
1474
|
onError: c,
|
|
1475
1475
|
maxContainerNameLength: a
|
|
1476
1476
|
}),
|
|
1477
|
-
/*#__PURE__*/
|
|
1477
|
+
/*#__PURE__*/ V(ge, {
|
|
1478
1478
|
isOpen: P !== null,
|
|
1479
1479
|
container: P,
|
|
1480
1480
|
onClose: () => ee(null),
|
|
1481
1481
|
onSuccess: l,
|
|
1482
1482
|
onError: f
|
|
1483
1483
|
}),
|
|
1484
|
-
/*#__PURE__*/
|
|
1484
|
+
/*#__PURE__*/ V(_e, {
|
|
1485
1485
|
isOpen: I !== null,
|
|
1486
1486
|
container: I,
|
|
1487
1487
|
onClose: () => te(null),
|
|
1488
1488
|
onSuccess: p,
|
|
1489
1489
|
onError: h
|
|
1490
1490
|
}),
|
|
1491
|
-
/*#__PURE__*/
|
|
1491
|
+
/*#__PURE__*/ V(J, {
|
|
1492
1492
|
isOpen: L !== null,
|
|
1493
1493
|
container: L,
|
|
1494
1494
|
onClose: () => ne(null),
|
|
1495
1495
|
onSuccess: g,
|
|
1496
1496
|
onError: _
|
|
1497
1497
|
}),
|
|
1498
|
-
/*#__PURE__*/
|
|
1498
|
+
/*#__PURE__*/ V(Ee, {
|
|
1499
1499
|
isOpen: re !== null,
|
|
1500
1500
|
container: re,
|
|
1501
|
-
onClose: () =>
|
|
1501
|
+
onClose: () => ie(null),
|
|
1502
1502
|
onSuccess: v,
|
|
1503
1503
|
onError: y
|
|
1504
1504
|
})
|
|
@@ -1506,31 +1506,31 @@ var xe = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContain
|
|
|
1506
1506
|
};
|
|
1507
1507
|
//#endregion
|
|
1508
1508
|
//#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ContainerToastNotifications.tsx
|
|
1509
|
-
function
|
|
1510
|
-
return /*#__PURE__*/
|
|
1509
|
+
function Z({ title: e, description: t }) {
|
|
1510
|
+
return /*#__PURE__*/ H(O, {
|
|
1511
1511
|
direction: "vertical",
|
|
1512
1512
|
gap: "1.5",
|
|
1513
|
-
children: [/*#__PURE__*/
|
|
1513
|
+
children: [/*#__PURE__*/ V("span", { children: e }), /*#__PURE__*/ V("span", {
|
|
1514
1514
|
className: "text-theme-light",
|
|
1515
1515
|
children: t
|
|
1516
1516
|
})]
|
|
1517
1517
|
});
|
|
1518
1518
|
}
|
|
1519
|
-
var
|
|
1519
|
+
var Ae = (e, t) => ({
|
|
1520
1520
|
variant: "success",
|
|
1521
|
-
children: /*#__PURE__*/
|
|
1522
|
-
title: /*#__PURE__*/
|
|
1523
|
-
description: /*#__PURE__*/
|
|
1521
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1522
|
+
title: /*#__PURE__*/ V(G, { id: "6w+VnM" }),
|
|
1523
|
+
description: /*#__PURE__*/ V(G, {
|
|
1524
1524
|
id: "XwxJJB",
|
|
1525
1525
|
values: { containerName: e }
|
|
1526
1526
|
})
|
|
1527
1527
|
}),
|
|
1528
1528
|
onDismiss: t.onDismiss
|
|
1529
|
-
}),
|
|
1529
|
+
}), je = (e, t, n) => ({
|
|
1530
1530
|
variant: "error",
|
|
1531
|
-
children: /*#__PURE__*/
|
|
1532
|
-
title: /*#__PURE__*/
|
|
1533
|
-
description: /*#__PURE__*/
|
|
1531
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1532
|
+
title: /*#__PURE__*/ V(G, { id: "Vj8XFg" }),
|
|
1533
|
+
description: /*#__PURE__*/ V(G, {
|
|
1534
1534
|
id: "Vz+7ZA",
|
|
1535
1535
|
values: {
|
|
1536
1536
|
containerName: e,
|
|
@@ -1539,20 +1539,20 @@ var Se = (e, t) => ({
|
|
|
1539
1539
|
})
|
|
1540
1540
|
}),
|
|
1541
1541
|
onDismiss: n.onDismiss
|
|
1542
|
-
}),
|
|
1542
|
+
}), Me = (e, t, n) => ({
|
|
1543
1543
|
variant: "success",
|
|
1544
|
-
children: /*#__PURE__*/
|
|
1545
|
-
title: /*#__PURE__*/
|
|
1546
|
-
description: t === 0 ? /*#__PURE__*/
|
|
1544
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1545
|
+
title: /*#__PURE__*/ V(G, { id: "6OopEX" }),
|
|
1546
|
+
description: t === 0 ? /*#__PURE__*/ V(G, {
|
|
1547
1547
|
id: "nkpZyk",
|
|
1548
1548
|
values: { containerName: e }
|
|
1549
|
-
}) : t === 1 ? /*#__PURE__*/
|
|
1549
|
+
}) : t === 1 ? /*#__PURE__*/ V(G, {
|
|
1550
1550
|
id: "TZJiVf",
|
|
1551
1551
|
values: {
|
|
1552
1552
|
containerName: e,
|
|
1553
1553
|
deletedCount: t
|
|
1554
1554
|
}
|
|
1555
|
-
}) : /*#__PURE__*/
|
|
1555
|
+
}) : /*#__PURE__*/ V(G, {
|
|
1556
1556
|
id: "Sb/VT5",
|
|
1557
1557
|
values: {
|
|
1558
1558
|
containerName: e,
|
|
@@ -1561,11 +1561,11 @@ var Se = (e, t) => ({
|
|
|
1561
1561
|
})
|
|
1562
1562
|
}),
|
|
1563
1563
|
onDismiss: n.onDismiss
|
|
1564
|
-
}),
|
|
1564
|
+
}), Ne = (e, t, n) => ({
|
|
1565
1565
|
variant: "error",
|
|
1566
|
-
children: /*#__PURE__*/
|
|
1567
|
-
title: /*#__PURE__*/
|
|
1568
|
-
description: /*#__PURE__*/
|
|
1566
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1567
|
+
title: /*#__PURE__*/ V(G, { id: "S8/j2h" }),
|
|
1568
|
+
description: /*#__PURE__*/ V(G, {
|
|
1569
1569
|
id: "1rLu3+",
|
|
1570
1570
|
values: {
|
|
1571
1571
|
containerName: e,
|
|
@@ -1574,21 +1574,21 @@ var Se = (e, t) => ({
|
|
|
1574
1574
|
})
|
|
1575
1575
|
}),
|
|
1576
1576
|
onDismiss: n.onDismiss
|
|
1577
|
-
}),
|
|
1577
|
+
}), Pe = (e, t) => ({
|
|
1578
1578
|
variant: "success",
|
|
1579
|
-
children: /*#__PURE__*/
|
|
1580
|
-
title: /*#__PURE__*/
|
|
1581
|
-
description: /*#__PURE__*/
|
|
1579
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1580
|
+
title: /*#__PURE__*/ V(G, { id: "odVI9Y" }),
|
|
1581
|
+
description: /*#__PURE__*/ V(G, {
|
|
1582
1582
|
id: "V1TzeS",
|
|
1583
1583
|
values: { containerName: e }
|
|
1584
1584
|
})
|
|
1585
1585
|
}),
|
|
1586
1586
|
onDismiss: t.onDismiss
|
|
1587
|
-
}),
|
|
1587
|
+
}), Fe = (e, t, n) => ({
|
|
1588
1588
|
variant: "error",
|
|
1589
|
-
children: /*#__PURE__*/
|
|
1590
|
-
title: /*#__PURE__*/
|
|
1591
|
-
description: /*#__PURE__*/
|
|
1589
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1590
|
+
title: /*#__PURE__*/ V(G, { id: "BJt+PJ" }),
|
|
1591
|
+
description: /*#__PURE__*/ V(G, {
|
|
1592
1592
|
id: "RGrgxg",
|
|
1593
1593
|
values: {
|
|
1594
1594
|
containerName: e,
|
|
@@ -1597,21 +1597,21 @@ var Se = (e, t) => ({
|
|
|
1597
1597
|
})
|
|
1598
1598
|
}),
|
|
1599
1599
|
onDismiss: n.onDismiss
|
|
1600
|
-
}),
|
|
1600
|
+
}), Ie = (e, t) => ({
|
|
1601
1601
|
variant: "success",
|
|
1602
|
-
children: /*#__PURE__*/
|
|
1603
|
-
title: /*#__PURE__*/
|
|
1604
|
-
description: /*#__PURE__*/
|
|
1602
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1603
|
+
title: /*#__PURE__*/ V(G, { id: "a7C4YS" }),
|
|
1604
|
+
description: /*#__PURE__*/ V(G, {
|
|
1605
1605
|
id: "/NeNjH",
|
|
1606
1606
|
values: { containerName: e }
|
|
1607
1607
|
})
|
|
1608
1608
|
}),
|
|
1609
1609
|
onDismiss: t.onDismiss
|
|
1610
|
-
}),
|
|
1610
|
+
}), Le = (e, t, n) => ({
|
|
1611
1611
|
variant: "error",
|
|
1612
|
-
children: /*#__PURE__*/
|
|
1613
|
-
title: /*#__PURE__*/
|
|
1614
|
-
description: /*#__PURE__*/
|
|
1612
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1613
|
+
title: /*#__PURE__*/ V(G, { id: "5MF8U2" }),
|
|
1614
|
+
description: /*#__PURE__*/ V(G, {
|
|
1615
1615
|
id: "uLtFAr",
|
|
1616
1616
|
values: {
|
|
1617
1617
|
containerName: e,
|
|
@@ -1620,21 +1620,21 @@ var Se = (e, t) => ({
|
|
|
1620
1620
|
})
|
|
1621
1621
|
}),
|
|
1622
1622
|
onDismiss: n.onDismiss
|
|
1623
|
-
}),
|
|
1623
|
+
}), Re = (e, t) => ({
|
|
1624
1624
|
variant: "success",
|
|
1625
|
-
children: /*#__PURE__*/
|
|
1626
|
-
title: /*#__PURE__*/
|
|
1627
|
-
description: /*#__PURE__*/
|
|
1625
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1626
|
+
title: /*#__PURE__*/ V(G, { id: "olfSYj" }),
|
|
1627
|
+
description: /*#__PURE__*/ V(G, {
|
|
1628
1628
|
id: "tM5SEI",
|
|
1629
1629
|
values: { containerName: e }
|
|
1630
1630
|
})
|
|
1631
1631
|
}),
|
|
1632
1632
|
onDismiss: t.onDismiss
|
|
1633
|
-
}),
|
|
1633
|
+
}), ze = (e, t, n) => ({
|
|
1634
1634
|
variant: "error",
|
|
1635
|
-
children: /*#__PURE__*/
|
|
1636
|
-
title: /*#__PURE__*/
|
|
1637
|
-
description: /*#__PURE__*/
|
|
1635
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1636
|
+
title: /*#__PURE__*/ V(G, { id: "p7DzCB" }),
|
|
1637
|
+
description: /*#__PURE__*/ V(G, {
|
|
1638
1638
|
id: "DcMIiu",
|
|
1639
1639
|
values: {
|
|
1640
1640
|
containerName: e,
|
|
@@ -1643,24 +1643,24 @@ var Se = (e, t) => ({
|
|
|
1643
1643
|
})
|
|
1644
1644
|
}),
|
|
1645
1645
|
onDismiss: n.onDismiss
|
|
1646
|
-
}),
|
|
1646
|
+
}), Be = (e, t, n, r) => {
|
|
1647
1647
|
let i = n.length > 0, a = e > 0, o = i && a;
|
|
1648
1648
|
return {
|
|
1649
1649
|
variant: o ? "warning" : i ? "error" : "success",
|
|
1650
|
-
children: /*#__PURE__*/
|
|
1651
|
-
title: o ? /*#__PURE__*/
|
|
1652
|
-
description: /*#__PURE__*/
|
|
1650
|
+
children: /*#__PURE__*/ V(Z, {
|
|
1651
|
+
title: o ? /*#__PURE__*/ V(G, { id: "q44uUq" }) : i ? /*#__PURE__*/ V(G, { id: "wFaT8w" }) : /*#__PURE__*/ V(G, { id: "0WsqO0" }),
|
|
1652
|
+
description: /*#__PURE__*/ H(O, {
|
|
1653
1653
|
direction: "vertical",
|
|
1654
1654
|
gap: "1",
|
|
1655
|
-
children: [a && /*#__PURE__*/
|
|
1655
|
+
children: [a && /*#__PURE__*/ V("span", { children: /*#__PURE__*/ V(G, {
|
|
1656
1656
|
id: "1NS3nd",
|
|
1657
1657
|
values: {
|
|
1658
1658
|
emptiedCount: e,
|
|
1659
1659
|
totalDeleted: t
|
|
1660
1660
|
}
|
|
1661
|
-
}) }), i && /*#__PURE__*/
|
|
1661
|
+
}) }), i && /*#__PURE__*/ V("span", {
|
|
1662
1662
|
className: "whitespace-pre-line",
|
|
1663
|
-
children: /*#__PURE__*/
|
|
1663
|
+
children: /*#__PURE__*/ V(G, {
|
|
1664
1664
|
id: "JrmKyf",
|
|
1665
1665
|
values: { errorDetails: n.join("\n") }
|
|
1666
1666
|
})
|
|
@@ -1669,35 +1669,35 @@ var Se = (e, t) => ({
|
|
|
1669
1669
|
}),
|
|
1670
1670
|
onDismiss: r.onDismiss
|
|
1671
1671
|
};
|
|
1672
|
-
},
|
|
1672
|
+
}, Q = ({ label: e, value: t }) => t == null ? null : /*#__PURE__*/ H("span", {
|
|
1673
1673
|
className: "flex items-start gap-1.5",
|
|
1674
|
-
children: [/*#__PURE__*/
|
|
1674
|
+
children: [/*#__PURE__*/ V(_, {
|
|
1675
1675
|
icon: "check",
|
|
1676
1676
|
size: "16px",
|
|
1677
1677
|
className: "text-theme-success mt-0.5 shrink-0"
|
|
1678
|
-
}), /*#__PURE__*/
|
|
1679
|
-
/*#__PURE__*/
|
|
1678
|
+
}), /*#__PURE__*/ H("span", { children: [
|
|
1679
|
+
/*#__PURE__*/ H("span", {
|
|
1680
1680
|
className: "font-medium",
|
|
1681
1681
|
children: [e, ":"]
|
|
1682
1682
|
}),
|
|
1683
1683
|
" ",
|
|
1684
1684
|
t
|
|
1685
1685
|
] })]
|
|
1686
|
-
}),
|
|
1686
|
+
}), Ve = ({ label: e }) => /*#__PURE__*/ H("span", {
|
|
1687
1687
|
className: "flex items-start gap-1.5",
|
|
1688
|
-
children: [/*#__PURE__*/
|
|
1688
|
+
children: [/*#__PURE__*/ V(_, {
|
|
1689
1689
|
icon: "check",
|
|
1690
1690
|
size: "16px",
|
|
1691
1691
|
className: "text-theme-success mt-0.5 shrink-0"
|
|
1692
|
-
}), /*#__PURE__*/
|
|
1693
|
-
}),
|
|
1692
|
+
}), /*#__PURE__*/ V("span", { children: e })]
|
|
1693
|
+
}), He = ({ title: e, children: t }) => /*#__PURE__*/ H("span", {
|
|
1694
1694
|
className: "flex flex-col gap-1.5",
|
|
1695
|
-
children: [/*#__PURE__*/
|
|
1695
|
+
children: [/*#__PURE__*/ V("span", {
|
|
1696
1696
|
className: "text-theme-default block font-semibold",
|
|
1697
1697
|
children: e
|
|
1698
1698
|
}), t]
|
|
1699
|
-
}),
|
|
1700
|
-
let { i18n: r, _: i } =
|
|
1699
|
+
}), Ue = ({ serviceInfo: e, accountInfo: t, open: n }) => {
|
|
1700
|
+
let { i18n: r, _: i } = K(), a = e?.swift, o = {
|
|
1701
1701
|
account_quotas: r._({ id: "DJT9tB" }),
|
|
1702
1702
|
container_quotas: r._({ id: "USiuNX" }),
|
|
1703
1703
|
bulk_delete: r._({ id: "F6YIQe" }),
|
|
@@ -1708,110 +1708,110 @@ var Se = (e, t) => ({
|
|
|
1708
1708
|
symlink: r._({ id: "Q2xmVl" }),
|
|
1709
1709
|
versioned_writes: r._({ id: "8jLXs3" })
|
|
1710
1710
|
}, s = Object.entries(o).filter(([e]) => a?.[e]).map(([, e]) => e);
|
|
1711
|
-
return /*#__PURE__*/
|
|
1711
|
+
return /*#__PURE__*/ H(S, {
|
|
1712
1712
|
triggerEvent: "hover",
|
|
1713
1713
|
placement: "bottom-end",
|
|
1714
1714
|
open: n,
|
|
1715
|
-
children: [/*#__PURE__*/
|
|
1715
|
+
children: [/*#__PURE__*/ V(E, {
|
|
1716
1716
|
asChild: !0,
|
|
1717
|
-
children: /*#__PURE__*/
|
|
1717
|
+
children: /*#__PURE__*/ V(_, {
|
|
1718
1718
|
icon: "info",
|
|
1719
1719
|
size: "20px",
|
|
1720
1720
|
className: "text-theme-light hover:text-theme-default cursor-pointer"
|
|
1721
1721
|
})
|
|
1722
|
-
}), /*#__PURE__*/
|
|
1722
|
+
}), /*#__PURE__*/ V(y, {
|
|
1723
1723
|
className: "z-10 w-72 text-sm",
|
|
1724
|
-
children: /*#__PURE__*/
|
|
1724
|
+
children: /*#__PURE__*/ H("span", {
|
|
1725
1725
|
className: "flex flex-col gap-3 p-1",
|
|
1726
1726
|
children: [
|
|
1727
|
-
t && /*#__PURE__*/
|
|
1728
|
-
title: /*#__PURE__*/
|
|
1727
|
+
t && /*#__PURE__*/ H(He, {
|
|
1728
|
+
title: /*#__PURE__*/ V(G, { id: "AeXO77" }),
|
|
1729
1729
|
children: [
|
|
1730
|
-
/*#__PURE__*/
|
|
1730
|
+
/*#__PURE__*/ V(Q, {
|
|
1731
1731
|
label: r._({ id: "ClGcRq" }),
|
|
1732
1732
|
value: t.containerCount.toLocaleString()
|
|
1733
1733
|
}),
|
|
1734
|
-
/*#__PURE__*/
|
|
1734
|
+
/*#__PURE__*/ V(Q, {
|
|
1735
1735
|
label: r._({ id: "B3toQF" }),
|
|
1736
1736
|
value: t.objectCount.toLocaleString()
|
|
1737
1737
|
}),
|
|
1738
|
-
/*#__PURE__*/
|
|
1738
|
+
/*#__PURE__*/ V(Q, {
|
|
1739
1739
|
label: r._({ id: "aL1w5Z" }),
|
|
1740
1740
|
value: F(t.bytesUsed)
|
|
1741
1741
|
}),
|
|
1742
|
-
t.quotaBytes !== void 0 && /*#__PURE__*/
|
|
1742
|
+
t.quotaBytes !== void 0 && /*#__PURE__*/ V(Q, {
|
|
1743
1743
|
label: r._({ id: "vEkTR9" }),
|
|
1744
1744
|
value: F(t.quotaBytes)
|
|
1745
1745
|
})
|
|
1746
1746
|
]
|
|
1747
1747
|
}),
|
|
1748
|
-
a && /*#__PURE__*/
|
|
1749
|
-
title: /*#__PURE__*/
|
|
1748
|
+
a && /*#__PURE__*/ H(He, {
|
|
1749
|
+
title: /*#__PURE__*/ V(G, { id: "6BDqha" }),
|
|
1750
1750
|
children: [
|
|
1751
|
-
/*#__PURE__*/
|
|
1751
|
+
/*#__PURE__*/ V(Q, {
|
|
1752
1752
|
label: r._({ id: "wTg+FY" }),
|
|
1753
1753
|
value: a.max_file_size === void 0 ? void 0 : F(a.max_file_size)
|
|
1754
1754
|
}),
|
|
1755
|
-
/*#__PURE__*/
|
|
1755
|
+
/*#__PURE__*/ V(Q, {
|
|
1756
1756
|
label: r._({ id: "Rih53k" }),
|
|
1757
1757
|
value: a.max_container_name_length
|
|
1758
1758
|
}),
|
|
1759
|
-
/*#__PURE__*/
|
|
1759
|
+
/*#__PURE__*/ V(Q, {
|
|
1760
1760
|
label: r._({ id: "qAkkjP" }),
|
|
1761
1761
|
value: a.max_object_name_length
|
|
1762
1762
|
}),
|
|
1763
|
-
/*#__PURE__*/
|
|
1763
|
+
/*#__PURE__*/ V(Q, {
|
|
1764
1764
|
label: r._({ id: "OZImTR" }),
|
|
1765
1765
|
value: a.container_listing_limit?.toLocaleString()
|
|
1766
1766
|
}),
|
|
1767
|
-
/*#__PURE__*/
|
|
1767
|
+
/*#__PURE__*/ V(Q, {
|
|
1768
1768
|
label: r._({ id: "a4A2uB" }),
|
|
1769
1769
|
value: a.account_listing_limit?.toLocaleString()
|
|
1770
1770
|
}),
|
|
1771
|
-
/*#__PURE__*/
|
|
1771
|
+
/*#__PURE__*/ V(Q, {
|
|
1772
1772
|
label: r._({ id: "zWb/Nn" }),
|
|
1773
1773
|
value: a.max_header_size
|
|
1774
1774
|
}),
|
|
1775
|
-
/*#__PURE__*/
|
|
1775
|
+
/*#__PURE__*/ V(Q, {
|
|
1776
1776
|
label: r._({ id: "RGwfoL" }),
|
|
1777
1777
|
value: a.max_meta_count
|
|
1778
1778
|
}),
|
|
1779
|
-
/*#__PURE__*/
|
|
1779
|
+
/*#__PURE__*/ V(Q, {
|
|
1780
1780
|
label: r._({ id: "8c3/77" }),
|
|
1781
1781
|
value: a.max_meta_name_length
|
|
1782
1782
|
}),
|
|
1783
|
-
/*#__PURE__*/
|
|
1783
|
+
/*#__PURE__*/ V(Q, {
|
|
1784
1784
|
label: r._({ id: "5JDSvn" }),
|
|
1785
1785
|
value: a.max_meta_value_length
|
|
1786
1786
|
}),
|
|
1787
|
-
/*#__PURE__*/
|
|
1787
|
+
/*#__PURE__*/ V(Q, {
|
|
1788
1788
|
label: r._({ id: "ZAx+d1" }),
|
|
1789
1789
|
value: a.max_meta_overall_size
|
|
1790
1790
|
}),
|
|
1791
|
-
a.bulk_delete && /*#__PURE__*/
|
|
1791
|
+
a.bulk_delete && /*#__PURE__*/ V(Q, {
|
|
1792
1792
|
label: r._({ id: "lQ3EIe" }),
|
|
1793
1793
|
value: a.bulk_delete.max_deletes_per_request.toLocaleString()
|
|
1794
1794
|
}),
|
|
1795
|
-
a.bulk_upload && /*#__PURE__*/
|
|
1795
|
+
a.bulk_upload && /*#__PURE__*/ V(Q, {
|
|
1796
1796
|
label: r._({ id: "STc+7E" }),
|
|
1797
1797
|
value: a.bulk_upload.max_containers_per_extraction.toLocaleString()
|
|
1798
1798
|
}),
|
|
1799
|
-
a.slo && /*#__PURE__*/
|
|
1799
|
+
a.slo && /*#__PURE__*/ V(Q, {
|
|
1800
1800
|
label: r._({ id: "RNBvdl" }),
|
|
1801
1801
|
value: a.slo.max_manifest_segments.toLocaleString()
|
|
1802
1802
|
})
|
|
1803
1803
|
]
|
|
1804
1804
|
}),
|
|
1805
|
-
s.length > 0 && /*#__PURE__*/
|
|
1806
|
-
title: /*#__PURE__*/
|
|
1807
|
-
children: s.map((e) => /*#__PURE__*/
|
|
1805
|
+
s.length > 0 && /*#__PURE__*/ V(He, {
|
|
1806
|
+
title: /*#__PURE__*/ V(G, { id: "Qx7DM7" }),
|
|
1807
|
+
children: s.map((e) => /*#__PURE__*/ V(Ve, { label: e }, e))
|
|
1808
1808
|
})
|
|
1809
1809
|
]
|
|
1810
1810
|
})
|
|
1811
1811
|
})]
|
|
1812
1812
|
});
|
|
1813
|
-
},
|
|
1814
|
-
let { i18n: c, i18n: l, _: u } =
|
|
1813
|
+
}, We = 20, $ = "empty", Ge = ({ isOpen: e, containers: t, onClose: i, onComplete: o }) => {
|
|
1814
|
+
let { i18n: c, i18n: l, _: u } = K(), d = I(), [p, m] = W(null), [h, g] = W(""), _ = h.trim() === $, v = M.useUtils(), y = M.storage.swift.emptyContainer.useMutation(), b = () => {
|
|
1815
1815
|
y.reset(), m(null), g(""), i();
|
|
1816
1816
|
}, x = async () => {
|
|
1817
1817
|
let e = 0, n = 0, r = [], i = t.length;
|
|
@@ -1839,9 +1839,9 @@ var Se = (e, t) => ({
|
|
|
1839
1839
|
}), b();
|
|
1840
1840
|
};
|
|
1841
1841
|
if (!e || t.length === 0) return null;
|
|
1842
|
-
let S = t.length, T = t.slice(0,
|
|
1843
|
-
return /*#__PURE__*/
|
|
1844
|
-
title: /*#__PURE__*/
|
|
1842
|
+
let S = t.length, T = t.slice(0, We), E = S - T.length, D = y.isPending || p !== null, k = p?.current, A = p?.total;
|
|
1843
|
+
return /*#__PURE__*/ V(w, {
|
|
1844
|
+
title: /*#__PURE__*/ V(G, {
|
|
1845
1845
|
id: "0efWir",
|
|
1846
1846
|
values: { totalCount: S }
|
|
1847
1847
|
}),
|
|
@@ -1855,15 +1855,15 @@ var Se = (e, t) => ({
|
|
|
1855
1855
|
disableCancelButton: D,
|
|
1856
1856
|
disableCloseButton: D,
|
|
1857
1857
|
size: "small",
|
|
1858
|
-
children: D ? /*#__PURE__*/
|
|
1858
|
+
children: D ? /*#__PURE__*/ H(O, {
|
|
1859
1859
|
direction: "vertical",
|
|
1860
1860
|
distribution: "center",
|
|
1861
1861
|
alignment: "center",
|
|
1862
1862
|
gap: "2",
|
|
1863
1863
|
className: "py-4",
|
|
1864
|
-
children: [/*#__PURE__*/
|
|
1864
|
+
children: [/*#__PURE__*/ V(s, { variant: "primary" }), p && /*#__PURE__*/ V("p", {
|
|
1865
1865
|
className: "text-theme-light text-sm",
|
|
1866
|
-
children: /*#__PURE__*/
|
|
1866
|
+
children: /*#__PURE__*/ V(G, {
|
|
1867
1867
|
id: "7NSdfG",
|
|
1868
1868
|
values: {
|
|
1869
1869
|
progressCurrent: k,
|
|
@@ -1871,49 +1871,49 @@ var Se = (e, t) => ({
|
|
|
1871
1871
|
}
|
|
1872
1872
|
})
|
|
1873
1873
|
})]
|
|
1874
|
-
}) : /*#__PURE__*/
|
|
1874
|
+
}) : /*#__PURE__*/ H("div", {
|
|
1875
1875
|
className: "my-6",
|
|
1876
1876
|
children: [
|
|
1877
|
-
/*#__PURE__*/
|
|
1877
|
+
/*#__PURE__*/ V(n, {
|
|
1878
1878
|
variant: "danger",
|
|
1879
1879
|
className: "mb-6",
|
|
1880
|
-
children: /*#__PURE__*/
|
|
1880
|
+
children: /*#__PURE__*/ V(G, { id: "JuOpPY" })
|
|
1881
1881
|
}),
|
|
1882
|
-
/*#__PURE__*/
|
|
1882
|
+
/*#__PURE__*/ V("p", {
|
|
1883
1883
|
className: "text-theme-default mb-6 text-sm",
|
|
1884
|
-
children: /*#__PURE__*/
|
|
1884
|
+
children: /*#__PURE__*/ V(G, {
|
|
1885
1885
|
id: "XXjbEV",
|
|
1886
1886
|
components: {
|
|
1887
|
-
0: /*#__PURE__*/
|
|
1888
|
-
1: /*#__PURE__*/
|
|
1887
|
+
0: /*#__PURE__*/ V("strong", {}),
|
|
1888
|
+
1: /*#__PURE__*/ V("strong", {})
|
|
1889
1889
|
}
|
|
1890
1890
|
})
|
|
1891
1891
|
}),
|
|
1892
|
-
/*#__PURE__*/
|
|
1892
|
+
/*#__PURE__*/ H("div", {
|
|
1893
1893
|
className: "mb-6",
|
|
1894
|
-
children: [/*#__PURE__*/
|
|
1894
|
+
children: [/*#__PURE__*/ V("h3", {
|
|
1895
1895
|
className: "jn:text-theme-high mb-3 font-semibold",
|
|
1896
|
-
children: /*#__PURE__*/
|
|
1896
|
+
children: /*#__PURE__*/ V(G, {
|
|
1897
1897
|
id: "VKmlZ+",
|
|
1898
1898
|
values: { totalCount: S }
|
|
1899
1899
|
})
|
|
1900
|
-
}), /*#__PURE__*/
|
|
1900
|
+
}), /*#__PURE__*/ H("div", {
|
|
1901
1901
|
className: "jn:bg-theme-background-lvl-1 max-h-48 overflow-y-auto rounded p-4",
|
|
1902
|
-
children: [/*#__PURE__*/
|
|
1902
|
+
children: [/*#__PURE__*/ V(a, {
|
|
1903
1903
|
className: "grid-cols-2",
|
|
1904
1904
|
alignTerms: "left",
|
|
1905
1905
|
children: T.map((e) => {
|
|
1906
1906
|
let t = e.count;
|
|
1907
|
-
return /*#__PURE__*/
|
|
1907
|
+
return /*#__PURE__*/ H(U, { children: [/*#__PURE__*/ V(C, {
|
|
1908
1908
|
className: "col-span-1",
|
|
1909
|
-
children: /*#__PURE__*/
|
|
1909
|
+
children: /*#__PURE__*/ V("span", {
|
|
1910
1910
|
className: "block truncate",
|
|
1911
1911
|
title: e.name,
|
|
1912
1912
|
children: e.name
|
|
1913
1913
|
})
|
|
1914
|
-
}), /*#__PURE__*/
|
|
1914
|
+
}), /*#__PURE__*/ V(r, {
|
|
1915
1915
|
className: "col-span-1",
|
|
1916
|
-
children: /*#__PURE__*/
|
|
1916
|
+
children: /*#__PURE__*/ V("span", {
|
|
1917
1917
|
className: "whitespace-nowrap",
|
|
1918
1918
|
children: t == null ? "" : l._(c._({
|
|
1919
1919
|
id: "7Ocn0b",
|
|
@@ -1922,57 +1922,57 @@ var Se = (e, t) => ({
|
|
|
1922
1922
|
})
|
|
1923
1923
|
})] }, e.name);
|
|
1924
1924
|
})
|
|
1925
|
-
}), E > 0 && /*#__PURE__*/
|
|
1925
|
+
}), E > 0 && /*#__PURE__*/ V("p", {
|
|
1926
1926
|
className: "text-theme-light mt-2 text-xs",
|
|
1927
|
-
children: /*#__PURE__*/
|
|
1927
|
+
children: /*#__PURE__*/ V(G, {
|
|
1928
1928
|
id: "yqPflB",
|
|
1929
1929
|
values: { hiddenCount: E }
|
|
1930
1930
|
})
|
|
1931
1931
|
})]
|
|
1932
1932
|
})]
|
|
1933
1933
|
}),
|
|
1934
|
-
/*#__PURE__*/
|
|
1934
|
+
/*#__PURE__*/ V(f, {
|
|
1935
1935
|
label: c._({ id: "Ghp863" }),
|
|
1936
|
-
placeholder:
|
|
1936
|
+
placeholder: $,
|
|
1937
1937
|
value: h,
|
|
1938
1938
|
onChange: (e) => g(e.target.value)
|
|
1939
1939
|
})
|
|
1940
1940
|
]
|
|
1941
1941
|
})
|
|
1942
1942
|
});
|
|
1943
|
-
},
|
|
1944
|
-
let { i18n: e, i18n: n, _: r } =
|
|
1945
|
-
|
|
1943
|
+
}, Ke = () => {
|
|
1944
|
+
let { i18n: e, i18n: n, _: r } = K(), i = I(), a = de({ from: N.fullPath }), { sortBy: o, sortDirection: c, search: l = "" } = N.useSearch(), [u, d] = W(!1), [f, g] = W(!1), [_, v] = W([]), [y, S] = W(null), [C, w] = W(l), E = ue(void 0);
|
|
1945
|
+
le(() => () => clearTimeout(E.current), []), le(() => {
|
|
1946
1946
|
w(l);
|
|
1947
1947
|
}, [l]);
|
|
1948
1948
|
let k = () => S(null), A = (e) => {
|
|
1949
|
-
S(
|
|
1949
|
+
S(Ae(e, { onDismiss: k }));
|
|
1950
1950
|
}, P = (e, t) => {
|
|
1951
|
-
S(
|
|
1951
|
+
S(je(e, t, { onDismiss: k }));
|
|
1952
1952
|
}, te = (e, t) => {
|
|
1953
|
-
S(
|
|
1953
|
+
S(Me(e, t, { onDismiss: k }));
|
|
1954
1954
|
}, L = (e, t) => {
|
|
1955
|
-
S(
|
|
1955
|
+
S(Ne(e, t, { onDismiss: k }));
|
|
1956
1956
|
}, ne = (e) => {
|
|
1957
|
-
S(
|
|
1958
|
-
},
|
|
1959
|
-
S(
|
|
1960
|
-
},
|
|
1961
|
-
S(
|
|
1962
|
-
},
|
|
1963
|
-
S(
|
|
1964
|
-
},
|
|
1965
|
-
S(
|
|
1966
|
-
},
|
|
1967
|
-
S(
|
|
1968
|
-
},
|
|
1957
|
+
S(Pe(e, { onDismiss: k }));
|
|
1958
|
+
}, re = (e, t) => {
|
|
1959
|
+
S(Fe(e, t, { onDismiss: k }));
|
|
1960
|
+
}, ie = (e) => {
|
|
1961
|
+
S(Ie(e, { onDismiss: k }));
|
|
1962
|
+
}, R = (e, t) => {
|
|
1963
|
+
S(Le(e, t, { onDismiss: k }));
|
|
1964
|
+
}, ae = (e) => {
|
|
1965
|
+
S(Re(e, { onDismiss: k }));
|
|
1966
|
+
}, oe = (e, t) => {
|
|
1967
|
+
S(ze(e, t, { onDismiss: k }));
|
|
1968
|
+
}, z = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
|
|
1969
1969
|
if (n.length === 0) v([]);
|
|
1970
1970
|
else {
|
|
1971
1971
|
let e = new Set(n.map((e) => e.split(": ")[0]));
|
|
1972
1972
|
v((t) => t.filter((t) => e.has(t)));
|
|
1973
1973
|
}
|
|
1974
|
-
S(
|
|
1975
|
-
},
|
|
1974
|
+
S(Be(e, t, n, { onDismiss: k }));
|
|
1975
|
+
}, U = {
|
|
1976
1976
|
options: [
|
|
1977
1977
|
{
|
|
1978
1978
|
label: e._({ id: "6YtxFj" }),
|
|
@@ -1993,10 +1993,10 @@ var Se = (e, t) => ({
|
|
|
1993
1993
|
],
|
|
1994
1994
|
sortBy: o ?? "name",
|
|
1995
1995
|
sortDirection: c ?? "asc"
|
|
1996
|
-
}, { data:
|
|
1996
|
+
}, { data: ce, isLoading: fe, error: q } = M.storage.swift.listContainers.useQuery({
|
|
1997
1997
|
project_id: i,
|
|
1998
1998
|
format: "json"
|
|
1999
|
-
}), { data:
|
|
1999
|
+
}), { data: pe } = M.storage.swift.getAccountMetadata.useQuery({ project_id: i }), { data: me } = M.storage.swift.getServiceInfo.useQuery(), he = (e) => [...e].sort((e, t) => {
|
|
2000
2000
|
let n;
|
|
2001
2001
|
switch (o ?? "name") {
|
|
2002
2002
|
case "name":
|
|
@@ -2015,17 +2015,17 @@ var Se = (e, t) => ({
|
|
|
2015
2015
|
default: n = e.name.localeCompare(t.name);
|
|
2016
2016
|
}
|
|
2017
2017
|
return (c ?? "asc") === "desc" ? -n : n;
|
|
2018
|
-
}),
|
|
2018
|
+
}), ge = (ce || []).filter((e) => e.name.toLowerCase().includes(l.toLowerCase())), _e = he(ge), ve = (e) => {
|
|
2019
2019
|
let t = typeof e == "string" ? e : "";
|
|
2020
|
-
|
|
2020
|
+
se(() => {
|
|
2021
2021
|
a({ search: (e) => ({
|
|
2022
2022
|
...e,
|
|
2023
2023
|
search: t || void 0
|
|
2024
2024
|
}) });
|
|
2025
2025
|
});
|
|
2026
|
-
},
|
|
2026
|
+
}, ye = (e) => {
|
|
2027
2027
|
let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
|
|
2028
|
-
|
|
2028
|
+
se(() => {
|
|
2029
2029
|
a({ search: (e) => ({
|
|
2030
2030
|
...e,
|
|
2031
2031
|
sortBy: t,
|
|
@@ -2033,196 +2033,196 @@ var Se = (e, t) => ({
|
|
|
2033
2033
|
}) });
|
|
2034
2034
|
});
|
|
2035
2035
|
};
|
|
2036
|
-
if (
|
|
2036
|
+
if (fe) return /*#__PURE__*/ H(O, {
|
|
2037
2037
|
className: "absolute inset-0",
|
|
2038
2038
|
distribution: "center",
|
|
2039
2039
|
alignment: "center",
|
|
2040
2040
|
direction: "vertical",
|
|
2041
|
-
children: [/*#__PURE__*/
|
|
2041
|
+
children: [/*#__PURE__*/ V(s, {
|
|
2042
2042
|
variant: "primary",
|
|
2043
2043
|
size: "large",
|
|
2044
2044
|
className: "mb-2"
|
|
2045
|
-
}), /*#__PURE__*/
|
|
2045
|
+
}), /*#__PURE__*/ V(G, { id: "WYiUDa" })]
|
|
2046
2046
|
});
|
|
2047
|
-
if (
|
|
2048
|
-
let e =
|
|
2049
|
-
return /*#__PURE__*/
|
|
2047
|
+
if (q) {
|
|
2048
|
+
let e = q.message;
|
|
2049
|
+
return /*#__PURE__*/ V(O, {
|
|
2050
2050
|
className: "absolute inset-0",
|
|
2051
2051
|
distribution: "center",
|
|
2052
2052
|
alignment: "center",
|
|
2053
2053
|
direction: "vertical",
|
|
2054
|
-
children: /*#__PURE__*/
|
|
2054
|
+
children: /*#__PURE__*/ V(G, {
|
|
2055
2055
|
id: "dLFiER",
|
|
2056
2056
|
values: { errorMessage: e }
|
|
2057
2057
|
})
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
|
-
let
|
|
2061
|
-
return /*#__PURE__*/
|
|
2060
|
+
let be = pe?.bytesUsed || 0, J = pe?.quotaBytes || 0, Y = J > 0 ? J - be : 0, X = (ce || []).filter((e) => _.includes(e.name)), xe = X.length > 0, Se = X.length, Ce = (ce || []).length, we = ge.length, Te = we !== Ce, Ee = _e.map((e) => e.name), De = Ee.length > 0 && Ee.every((e) => _.includes(e)), Oe = Ee.some((e) => _.includes(e));
|
|
2061
|
+
return /*#__PURE__*/ H("div", {
|
|
2062
2062
|
className: "relative",
|
|
2063
2063
|
children: [
|
|
2064
|
-
/*#__PURE__*/
|
|
2064
|
+
/*#__PURE__*/ H(O, {
|
|
2065
2065
|
direction: "vertical",
|
|
2066
2066
|
children: [
|
|
2067
|
-
/*#__PURE__*/
|
|
2067
|
+
/*#__PURE__*/ H(O, {
|
|
2068
2068
|
distribution: "end",
|
|
2069
2069
|
alignment: "center",
|
|
2070
2070
|
gap: "2",
|
|
2071
2071
|
className: "pb-2",
|
|
2072
|
-
children: [/*#__PURE__*/
|
|
2072
|
+
children: [/*#__PURE__*/ V(O, {
|
|
2073
2073
|
gap: "0.5",
|
|
2074
2074
|
alignment: "center",
|
|
2075
|
-
children: /*#__PURE__*/
|
|
2076
|
-
options:
|
|
2077
|
-
sortBy:
|
|
2078
|
-
sortDirection:
|
|
2079
|
-
onSortByChange: (e) =>
|
|
2080
|
-
...
|
|
2075
|
+
children: /*#__PURE__*/ V(ee, {
|
|
2076
|
+
options: U.options,
|
|
2077
|
+
sortBy: U.sortBy,
|
|
2078
|
+
sortDirection: U.sortDirection ?? "asc",
|
|
2079
|
+
onSortByChange: (e) => ye({
|
|
2080
|
+
...U,
|
|
2081
2081
|
sortBy: e,
|
|
2082
|
-
sortDirection:
|
|
2082
|
+
sortDirection: U.sortDirection
|
|
2083
2083
|
}),
|
|
2084
|
-
onSortDirectionChange: (e) =>
|
|
2085
|
-
...
|
|
2084
|
+
onSortDirectionChange: (e) => ye({
|
|
2085
|
+
...U,
|
|
2086
2086
|
sortDirection: e
|
|
2087
2087
|
})
|
|
2088
2088
|
})
|
|
2089
|
-
}), /*#__PURE__*/
|
|
2089
|
+
}), /*#__PURE__*/ V(j, {
|
|
2090
2090
|
variant: "primary",
|
|
2091
2091
|
className: "whitespace-nowrap",
|
|
2092
2092
|
onClick: () => d(!0),
|
|
2093
|
-
children: /*#__PURE__*/
|
|
2093
|
+
children: /*#__PURE__*/ V(G, { id: "vTh35P" })
|
|
2094
2094
|
})]
|
|
2095
2095
|
}),
|
|
2096
|
-
/*#__PURE__*/
|
|
2096
|
+
/*#__PURE__*/ V(h, { children: /*#__PURE__*/ V(O, {
|
|
2097
2097
|
direction: "vertical",
|
|
2098
2098
|
gap: "2",
|
|
2099
|
-
children: /*#__PURE__*/
|
|
2099
|
+
children: /*#__PURE__*/ V(O, {
|
|
2100
2100
|
distribution: "end",
|
|
2101
2101
|
alignment: "center",
|
|
2102
|
-
children: /*#__PURE__*/
|
|
2102
|
+
children: /*#__PURE__*/ V(x, {
|
|
2103
2103
|
placeholder: e._({ id: "TipzDp" }),
|
|
2104
2104
|
"data-testid": "searchbar",
|
|
2105
2105
|
value: C,
|
|
2106
2106
|
onInput: (e) => {
|
|
2107
2107
|
let t = e.currentTarget.value;
|
|
2108
|
-
w(t), clearTimeout(E.current), E.current = window.setTimeout(() =>
|
|
2108
|
+
w(t), clearTimeout(E.current), E.current = window.setTimeout(() => ve(t), 500);
|
|
2109
2109
|
},
|
|
2110
2110
|
onSearch: (e) => {
|
|
2111
|
-
clearTimeout(E.current),
|
|
2111
|
+
clearTimeout(E.current), ve(typeof e == "string" ? e : "");
|
|
2112
2112
|
},
|
|
2113
2113
|
onClear: () => {
|
|
2114
|
-
clearTimeout(E.current), w(""),
|
|
2114
|
+
clearTimeout(E.current), w(""), ve("");
|
|
2115
2115
|
}
|
|
2116
2116
|
})
|
|
2117
2117
|
})
|
|
2118
2118
|
}) }),
|
|
2119
|
-
/*#__PURE__*/
|
|
2119
|
+
/*#__PURE__*/ V(h, { children: /*#__PURE__*/ H(O, {
|
|
2120
2120
|
distribution: "start",
|
|
2121
2121
|
gap: "2",
|
|
2122
2122
|
alignment: "center",
|
|
2123
2123
|
className: "text-sm",
|
|
2124
|
-
children: [/*#__PURE__*/
|
|
2124
|
+
children: [/*#__PURE__*/ H(O, {
|
|
2125
2125
|
gap: "2",
|
|
2126
2126
|
alignment: "center",
|
|
2127
|
-
children: [/*#__PURE__*/
|
|
2128
|
-
checked:
|
|
2129
|
-
indeterminate:
|
|
2127
|
+
children: [/*#__PURE__*/ V(b, {
|
|
2128
|
+
checked: De,
|
|
2129
|
+
indeterminate: Oe && !De,
|
|
2130
2130
|
onChange: () => {
|
|
2131
|
-
v(
|
|
2131
|
+
v(De ? (e) => e.filter((e) => !Ee.includes(e)) : (e) => [...new Set([...e, ...Ee])]);
|
|
2132
2132
|
}
|
|
2133
|
-
}), /*#__PURE__*/
|
|
2133
|
+
}), /*#__PURE__*/ H(T, {
|
|
2134
2134
|
className: "flex items-center",
|
|
2135
|
-
children: [/*#__PURE__*/
|
|
2135
|
+
children: [/*#__PURE__*/ V(D, {
|
|
2136
2136
|
as: "div",
|
|
2137
|
-
children: /*#__PURE__*/
|
|
2138
|
-
disabled: !
|
|
2137
|
+
children: /*#__PURE__*/ V(j, {
|
|
2138
|
+
disabled: !xe,
|
|
2139
2139
|
size: "small",
|
|
2140
2140
|
icon: "moreVert",
|
|
2141
2141
|
label: e._({ id: "7L01XJ" })
|
|
2142
2142
|
})
|
|
2143
|
-
}),
|
|
2144
|
-
disabled: !
|
|
2143
|
+
}), xe && /*#__PURE__*/ V(t, { children: /*#__PURE__*/ V(m, {
|
|
2144
|
+
disabled: !xe,
|
|
2145
2145
|
label: n._(e._({
|
|
2146
2146
|
id: "0Th0CH",
|
|
2147
|
-
values: { selectedCount:
|
|
2147
|
+
values: { selectedCount: Se }
|
|
2148
2148
|
})),
|
|
2149
2149
|
onClick: () => g(!0)
|
|
2150
2150
|
}) })]
|
|
2151
2151
|
})]
|
|
2152
|
-
}), /*#__PURE__*/
|
|
2152
|
+
}), /*#__PURE__*/ H("div", {
|
|
2153
2153
|
className: "text-theme-light flex items-center gap-1",
|
|
2154
2154
|
"data-testid": "containers-info-block",
|
|
2155
2155
|
children: [
|
|
2156
|
-
|
|
2156
|
+
Te ? /*#__PURE__*/ V(G, {
|
|
2157
2157
|
id: "8uPTwT",
|
|
2158
2158
|
values: {
|
|
2159
|
-
filteredCount:
|
|
2160
|
-
totalCount:
|
|
2159
|
+
filteredCount: we,
|
|
2160
|
+
totalCount: Ce
|
|
2161
2161
|
}
|
|
2162
|
-
}) : /*#__PURE__*/
|
|
2162
|
+
}) : /*#__PURE__*/ V(G, {
|
|
2163
2163
|
id: "ywe1H/",
|
|
2164
|
-
values: { totalCount:
|
|
2164
|
+
values: { totalCount: Ce }
|
|
2165
2165
|
}),
|
|
2166
|
-
|
|
2167
|
-
/*#__PURE__*/
|
|
2166
|
+
J > 0 && /*#__PURE__*/ H(B, { children: [/*#__PURE__*/ V("span", { children: "," }), /*#__PURE__*/ H("span", { children: [
|
|
2167
|
+
/*#__PURE__*/ V(G, { id: "kKK8AH" }),
|
|
2168
2168
|
" ",
|
|
2169
|
-
/*#__PURE__*/
|
|
2169
|
+
/*#__PURE__*/ V("span", {
|
|
2170
2170
|
className: "text-theme-default font-semibold",
|
|
2171
|
-
children: F(
|
|
2171
|
+
children: F(Y)
|
|
2172
2172
|
})
|
|
2173
2173
|
] })] }),
|
|
2174
|
-
/*#__PURE__*/
|
|
2175
|
-
serviceInfo:
|
|
2176
|
-
accountInfo:
|
|
2174
|
+
/*#__PURE__*/ V(Ue, {
|
|
2175
|
+
serviceInfo: me,
|
|
2176
|
+
accountInfo: pe
|
|
2177
2177
|
})
|
|
2178
2178
|
]
|
|
2179
2179
|
})]
|
|
2180
2180
|
}) })
|
|
2181
2181
|
]
|
|
2182
2182
|
}),
|
|
2183
|
-
/*#__PURE__*/
|
|
2184
|
-
containers:
|
|
2183
|
+
/*#__PURE__*/ V(ke, {
|
|
2184
|
+
containers: _e,
|
|
2185
2185
|
createModalOpen: u,
|
|
2186
2186
|
setCreateModalOpen: d,
|
|
2187
|
-
maxContainerNameLength:
|
|
2187
|
+
maxContainerNameLength: me?.swift?.max_container_name_length,
|
|
2188
2188
|
onCreateSuccess: A,
|
|
2189
2189
|
onCreateError: P,
|
|
2190
2190
|
onEmptySuccess: te,
|
|
2191
2191
|
onEmptyError: L,
|
|
2192
2192
|
onDeleteSuccess: ne,
|
|
2193
|
-
onDeleteError:
|
|
2194
|
-
onPropertiesSuccess:
|
|
2195
|
-
onPropertiesError:
|
|
2196
|
-
onAclSuccess:
|
|
2197
|
-
onAclError:
|
|
2193
|
+
onDeleteError: re,
|
|
2194
|
+
onPropertiesSuccess: ie,
|
|
2195
|
+
onPropertiesError: R,
|
|
2196
|
+
onAclSuccess: ae,
|
|
2197
|
+
onAclError: oe,
|
|
2198
2198
|
selectedContainers: _,
|
|
2199
2199
|
setSelectedContainers: v,
|
|
2200
2200
|
hasAnyBulkAction: !0
|
|
2201
2201
|
}),
|
|
2202
|
-
/*#__PURE__*/
|
|
2202
|
+
/*#__PURE__*/ V(Ge, {
|
|
2203
2203
|
isOpen: f,
|
|
2204
|
-
containers:
|
|
2204
|
+
containers: X,
|
|
2205
2205
|
onClose: () => g(!1),
|
|
2206
|
-
onComplete:
|
|
2206
|
+
onComplete: z
|
|
2207
2207
|
}),
|
|
2208
|
-
y && /*#__PURE__*/
|
|
2208
|
+
y && /*#__PURE__*/ V(p, {
|
|
2209
2209
|
...y,
|
|
2210
2210
|
className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
|
|
2211
2211
|
})
|
|
2212
2212
|
]
|
|
2213
2213
|
});
|
|
2214
|
-
},
|
|
2214
|
+
}, qe = /^[a-z0-9][a-z0-9.-]*[a-z0-9]$/, Je = /^(\d{1,3}\.){3}\d{1,3}$/, Ye = [
|
|
2215
2215
|
"xn--",
|
|
2216
2216
|
"sthree-",
|
|
2217
2217
|
"amzn-s3-demo-"
|
|
2218
|
-
],
|
|
2218
|
+
], Xe = [
|
|
2219
2219
|
"-s3alias",
|
|
2220
2220
|
"--ol-s3",
|
|
2221
2221
|
".mrap",
|
|
2222
2222
|
"--x-s3",
|
|
2223
2223
|
"--table-s3"
|
|
2224
|
-
],
|
|
2225
|
-
let { i18n: i, _: a } =
|
|
2224
|
+
], Ze = ({ isOpen: e, onClose: t, onSuccess: n, onError: r }) => {
|
|
2225
|
+
let { i18n: i, _: a } = K(), o = I(), [s, c] = W(""), [l, u] = W(null), [d, p] = W(!1), m = M.useUtils(), h = M.storage.ceph.containers.create.useMutation({
|
|
2226
2226
|
onSuccess: () => {
|
|
2227
2227
|
m.storage.ceph.containers.list.invalidate();
|
|
2228
2228
|
let e = s.trim();
|
|
@@ -2241,15 +2241,15 @@ var Se = (e, t) => ({
|
|
|
2241
2241
|
if (!t) return u(i._({ id: "48bMai" })), !1;
|
|
2242
2242
|
if (t.length < 3) return u(i._({ id: "gjop1H" })), !1;
|
|
2243
2243
|
if (t.length > 63) return u(i._({ id: "is0Bhk" })), !1;
|
|
2244
|
-
if (!
|
|
2244
|
+
if (!qe.test(t)) return u(i._({ id: "IQldU4" })), !1;
|
|
2245
2245
|
if (!/^[a-z0-9]/.test(t) || !/[a-z0-9]$/.test(t)) return u(i._({ id: "VG2a+x" })), !1;
|
|
2246
2246
|
if (t.includes("..")) return u(i._({ id: "V8/eES" })), !1;
|
|
2247
|
-
if (
|
|
2248
|
-
for (let e of
|
|
2247
|
+
if (Je.test(t)) return u(i._({ id: "W8Rb/w" })), !1;
|
|
2248
|
+
for (let e of Ye) if (t.startsWith(e)) return u(i._({
|
|
2249
2249
|
id: "B2SpR8",
|
|
2250
2250
|
values: { prefix: e }
|
|
2251
2251
|
})), !1;
|
|
2252
|
-
for (let e of
|
|
2252
|
+
for (let e of Xe) if (t.endsWith(e)) return u(i._({
|
|
2253
2253
|
id: "QRlXaL",
|
|
2254
2254
|
values: { suffix: e }
|
|
2255
2255
|
})), !1;
|
|
@@ -2264,7 +2264,7 @@ var Se = (e, t) => ({
|
|
|
2264
2264
|
enableVersioning: d
|
|
2265
2265
|
});
|
|
2266
2266
|
};
|
|
2267
|
-
return e ? /*#__PURE__*/
|
|
2267
|
+
return e ? /*#__PURE__*/ V(w, {
|
|
2268
2268
|
title: i._({ id: "HiDAFk" }),
|
|
2269
2269
|
open: e,
|
|
2270
2270
|
onCancel: g,
|
|
@@ -2273,15 +2273,15 @@ var Se = (e, t) => ({
|
|
|
2273
2273
|
cancelButtonLabel: i._({ id: "dEgA5A" }),
|
|
2274
2274
|
size: "small",
|
|
2275
2275
|
disableConfirmButton: h.isPending || !s.trim(),
|
|
2276
|
-
children: /*#__PURE__*/
|
|
2276
|
+
children: /*#__PURE__*/ H(O, {
|
|
2277
2277
|
direction: "vertical",
|
|
2278
2278
|
gap: "6",
|
|
2279
2279
|
children: [
|
|
2280
|
-
/*#__PURE__*/
|
|
2280
|
+
/*#__PURE__*/ V("p", {
|
|
2281
2281
|
className: "text-theme-default",
|
|
2282
|
-
children: /*#__PURE__*/
|
|
2282
|
+
children: /*#__PURE__*/ V(G, { id: "ASJMIw" })
|
|
2283
2283
|
}),
|
|
2284
|
-
/*#__PURE__*/
|
|
2284
|
+
/*#__PURE__*/ V(f, {
|
|
2285
2285
|
label: i._({ id: "NNpgo3" }),
|
|
2286
2286
|
required: !0,
|
|
2287
2287
|
value: s,
|
|
@@ -2295,7 +2295,7 @@ var Se = (e, t) => ({
|
|
|
2295
2295
|
autoFocus: !0,
|
|
2296
2296
|
placeholder: i._({ id: "yDHGP+" })
|
|
2297
2297
|
}),
|
|
2298
|
-
/*#__PURE__*/
|
|
2298
|
+
/*#__PURE__*/ V(b, {
|
|
2299
2299
|
label: i._({ id: "ifQSTI" }),
|
|
2300
2300
|
helptext: i._({ id: "WM+Nm7" }),
|
|
2301
2301
|
checked: d,
|
|
@@ -2305,9 +2305,9 @@ var Se = (e, t) => ({
|
|
|
2305
2305
|
]
|
|
2306
2306
|
})
|
|
2307
2307
|
}) : null;
|
|
2308
|
-
},
|
|
2309
|
-
let { projectId: v, provider: y, storageType: x } =
|
|
2310
|
-
|
|
2308
|
+
}, Qe = ({ buckets: e, createModalOpen: n, setCreateModalOpen: r, onCreateSuccess: a, onCreateError: s, onEmptySuccess: c, onEmptyError: l, onDeleteSuccess: f, onDeleteError: p, selectedBuckets: h, setSelectedBuckets: g, hasAnyBulkAction: _ = !0 }) => {
|
|
2309
|
+
let { projectId: v, provider: y, storageType: x } = fe({ strict: !1 }), { i18n: S, _: C } = K(), w = de(), E = ue(null), [D, O] = W(0), [k, A] = W(null), [j, M] = W(null);
|
|
2310
|
+
le(() => {
|
|
2311
2311
|
E.current && O(E.current.offsetWidth - E.current.clientWidth);
|
|
2312
2312
|
}, [e.length]);
|
|
2313
2313
|
let N = (e) => {
|
|
@@ -2316,7 +2316,7 @@ var Se = (e, t) => ({
|
|
|
2316
2316
|
} catch {
|
|
2317
2317
|
return S._({ id: "fj5byd" });
|
|
2318
2318
|
}
|
|
2319
|
-
}, P =
|
|
2319
|
+
}, P = me({
|
|
2320
2320
|
count: e.length,
|
|
2321
2321
|
getScrollElement: () => E.current,
|
|
2322
2322
|
estimateSize: () => 48,
|
|
@@ -2324,50 +2324,50 @@ var Se = (e, t) => ({
|
|
|
2324
2324
|
}), ee = (e) => {
|
|
2325
2325
|
h.includes(e) ? g(h.filter((t) => t !== e)) : g([...h, e]);
|
|
2326
2326
|
};
|
|
2327
|
-
if (!e || e.length === 0) return /*#__PURE__*/
|
|
2327
|
+
if (!e || e.length === 0) return /*#__PURE__*/ V(u, {
|
|
2328
2328
|
columns: 4,
|
|
2329
2329
|
className: "buckets",
|
|
2330
2330
|
"data-testid": "no-buckets",
|
|
2331
|
-
children: /*#__PURE__*/
|
|
2331
|
+
children: /*#__PURE__*/ V(i, { children: /*#__PURE__*/ V(o, {
|
|
2332
2332
|
colSpan: 4,
|
|
2333
|
-
children: /*#__PURE__*/
|
|
2333
|
+
children: /*#__PURE__*/ H("div", {
|
|
2334
2334
|
className: "py-8 text-center",
|
|
2335
|
-
children: [/*#__PURE__*/
|
|
2335
|
+
children: [/*#__PURE__*/ V("h3", {
|
|
2336
2336
|
className: "text-lg font-semibold",
|
|
2337
|
-
children: /*#__PURE__*/
|
|
2338
|
-
}), /*#__PURE__*/
|
|
2337
|
+
children: /*#__PURE__*/ V(G, { id: "ih2lfP" })
|
|
2338
|
+
}), /*#__PURE__*/ V("p", {
|
|
2339
2339
|
className: "text-theme-light mt-2",
|
|
2340
|
-
children: /*#__PURE__*/
|
|
2340
|
+
children: /*#__PURE__*/ V(G, { id: "emkxJa" })
|
|
2341
2341
|
})]
|
|
2342
2342
|
})
|
|
2343
2343
|
}) })
|
|
2344
2344
|
});
|
|
2345
|
-
let I = _ ? 6 : 5,
|
|
2346
|
-
return /*#__PURE__*/ B
|
|
2347
|
-
/*#__PURE__*/
|
|
2345
|
+
let I = _ ? 6 : 5, L = _ ? "40px minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px" : "minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px";
|
|
2346
|
+
return /*#__PURE__*/ H(B, { children: [
|
|
2347
|
+
/*#__PURE__*/ H("div", {
|
|
2348
2348
|
className: "relative",
|
|
2349
|
-
children: [/*#__PURE__*/
|
|
2349
|
+
children: [/*#__PURE__*/ V("div", {
|
|
2350
2350
|
style: { paddingRight: `${D}px` },
|
|
2351
|
-
children: /*#__PURE__*/
|
|
2351
|
+
children: /*#__PURE__*/ V(u, {
|
|
2352
2352
|
columns: I,
|
|
2353
|
-
gridColumnTemplate:
|
|
2353
|
+
gridColumnTemplate: L,
|
|
2354
2354
|
className: "buckets",
|
|
2355
2355
|
"data-testid": "buckets-table-header",
|
|
2356
|
-
children: /*#__PURE__*/
|
|
2357
|
-
_ && /*#__PURE__*/
|
|
2358
|
-
/*#__PURE__*/
|
|
2359
|
-
/*#__PURE__*/
|
|
2360
|
-
/*#__PURE__*/
|
|
2361
|
-
/*#__PURE__*/
|
|
2362
|
-
/*#__PURE__*/
|
|
2356
|
+
children: /*#__PURE__*/ H(i, { children: [
|
|
2357
|
+
_ && /*#__PURE__*/ V(d, {}),
|
|
2358
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "BTsbBe" }) }),
|
|
2359
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "sxbP3b" }) }),
|
|
2360
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "sjMCOP" }) }),
|
|
2361
|
+
/*#__PURE__*/ V(d, { children: /*#__PURE__*/ V(G, { id: "hgpMHD" }) }),
|
|
2362
|
+
/*#__PURE__*/ V(d, { style: { marginRight: `-${D}px` } })
|
|
2363
2363
|
] })
|
|
2364
2364
|
})
|
|
2365
|
-
}), /*#__PURE__*/
|
|
2365
|
+
}), /*#__PURE__*/ V("div", {
|
|
2366
2366
|
ref: E,
|
|
2367
2367
|
className: "overflow-auto",
|
|
2368
2368
|
style: { height: "calc(100vh - 490px)" },
|
|
2369
2369
|
"data-testid": "buckets-table-body",
|
|
2370
|
-
children: /*#__PURE__*/
|
|
2370
|
+
children: /*#__PURE__*/ V("div", {
|
|
2371
2371
|
style: {
|
|
2372
2372
|
height: `${P.getTotalSize()}px`,
|
|
2373
2373
|
width: "100%",
|
|
@@ -2383,7 +2383,7 @@ var Se = (e, t) => ({
|
|
|
2383
2383
|
containerName: r.name
|
|
2384
2384
|
}
|
|
2385
2385
|
});
|
|
2386
|
-
return /*#__PURE__*/
|
|
2386
|
+
return /*#__PURE__*/ H("div", {
|
|
2387
2387
|
"data-index": n.index,
|
|
2388
2388
|
ref: P.measureElement,
|
|
2389
2389
|
className: "juno-datagrid group hover:bg-theme-background-lvl-1 cursor-pointer",
|
|
@@ -2394,7 +2394,7 @@ var Se = (e, t) => ({
|
|
|
2394
2394
|
width: "100%",
|
|
2395
2395
|
transform: `translateY(${n.start}px)`,
|
|
2396
2396
|
display: "grid",
|
|
2397
|
-
gridTemplateColumns:
|
|
2397
|
+
gridTemplateColumns: L,
|
|
2398
2398
|
alignItems: "stretch"
|
|
2399
2399
|
},
|
|
2400
2400
|
"data-testid": `bucket-row-${r.name}`,
|
|
@@ -2405,42 +2405,42 @@ var Se = (e, t) => ({
|
|
|
2405
2405
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
|
|
2406
2406
|
},
|
|
2407
2407
|
children: [
|
|
2408
|
-
_ && /*#__PURE__*/
|
|
2408
|
+
_ && /*#__PURE__*/ V(o, {
|
|
2409
2409
|
onClick: (e) => e.stopPropagation(),
|
|
2410
2410
|
onKeyDown: (e) => {
|
|
2411
2411
|
(e.key === "Enter" || e.key === " ") && e.stopPropagation();
|
|
2412
2412
|
},
|
|
2413
|
-
children: /*#__PURE__*/
|
|
2413
|
+
children: /*#__PURE__*/ V(b, {
|
|
2414
2414
|
checked: i,
|
|
2415
2415
|
onChange: () => ee(r.name),
|
|
2416
2416
|
"data-testid": `select-bucket-${r.name}`
|
|
2417
2417
|
})
|
|
2418
2418
|
}),
|
|
2419
|
-
/*#__PURE__*/
|
|
2419
|
+
/*#__PURE__*/ V(o, {
|
|
2420
2420
|
className: "min-w-0 overflow-hidden",
|
|
2421
|
-
children: /*#__PURE__*/
|
|
2421
|
+
children: /*#__PURE__*/ V("span", {
|
|
2422
2422
|
className: "block truncate",
|
|
2423
2423
|
title: r.name,
|
|
2424
2424
|
children: r.name
|
|
2425
2425
|
})
|
|
2426
2426
|
}),
|
|
2427
|
-
/*#__PURE__*/
|
|
2428
|
-
/*#__PURE__*/
|
|
2429
|
-
/*#__PURE__*/
|
|
2430
|
-
/*#__PURE__*/
|
|
2427
|
+
/*#__PURE__*/ V(o, { children: r.count.toLocaleString() }),
|
|
2428
|
+
/*#__PURE__*/ V(o, { children: N(r.last_modified || r.creationDate || "") }),
|
|
2429
|
+
/*#__PURE__*/ V(o, { children: F(r.bytes) }),
|
|
2430
|
+
/*#__PURE__*/ V(o, {
|
|
2431
2431
|
onClick: (e) => e.stopPropagation(),
|
|
2432
|
-
children: /*#__PURE__*/
|
|
2433
|
-
/*#__PURE__*/
|
|
2432
|
+
children: /*#__PURE__*/ V(T, { children: /*#__PURE__*/ H(t, { children: [
|
|
2433
|
+
/*#__PURE__*/ V(m, {
|
|
2434
2434
|
label: S._({ id: "v0hPHE" }),
|
|
2435
2435
|
onClick: a,
|
|
2436
2436
|
"data-testid": `show-details-action-${r.name}`
|
|
2437
2437
|
}),
|
|
2438
|
-
/*#__PURE__*/
|
|
2438
|
+
/*#__PURE__*/ V(m, {
|
|
2439
2439
|
label: S._({ id: "N2S1rs" }),
|
|
2440
2440
|
onClick: () => A(r),
|
|
2441
2441
|
"data-testid": `empty-action-${r.name}`
|
|
2442
2442
|
}),
|
|
2443
|
-
/*#__PURE__*/
|
|
2443
|
+
/*#__PURE__*/ V(m, {
|
|
2444
2444
|
label: S._({ id: "cnGeoo" }),
|
|
2445
2445
|
onClick: () => M(r),
|
|
2446
2446
|
"data-testid": `delete-action-${r.name}`
|
|
@@ -2453,20 +2453,20 @@ var Se = (e, t) => ({
|
|
|
2453
2453
|
})
|
|
2454
2454
|
})]
|
|
2455
2455
|
}),
|
|
2456
|
-
/*#__PURE__*/
|
|
2456
|
+
/*#__PURE__*/ V(Ze, {
|
|
2457
2457
|
isOpen: n,
|
|
2458
2458
|
onClose: () => r(!1),
|
|
2459
2459
|
onSuccess: a,
|
|
2460
2460
|
onError: s
|
|
2461
2461
|
}),
|
|
2462
|
-
/*#__PURE__*/ z
|
|
2462
|
+
/*#__PURE__*/ V(z, {
|
|
2463
2463
|
isOpen: k !== null,
|
|
2464
2464
|
bucket: k,
|
|
2465
2465
|
onClose: () => A(null),
|
|
2466
2466
|
onSuccess: c,
|
|
2467
2467
|
onError: l
|
|
2468
2468
|
}),
|
|
2469
|
-
/*#__PURE__*/
|
|
2469
|
+
/*#__PURE__*/ V(te, {
|
|
2470
2470
|
isOpen: j !== null,
|
|
2471
2471
|
bucket: j,
|
|
2472
2472
|
onClose: () => M(null),
|
|
@@ -2474,85 +2474,8 @@ var Se = (e, t) => ({
|
|
|
2474
2474
|
onError: p
|
|
2475
2475
|
})
|
|
2476
2476
|
] });
|
|
2477
|
-
}, Ke = (e) => ({
|
|
2478
|
-
message: /*#__PURE__*/ z(W, { id: "M3bysB" }),
|
|
2479
|
-
description: /*#__PURE__*/ z(W, {
|
|
2480
|
-
id: "VKCkZH",
|
|
2481
|
-
values: { bucketName: e }
|
|
2482
|
-
})
|
|
2483
|
-
}), qe = (e, t) => ({
|
|
2484
|
-
message: /*#__PURE__*/ z(W, { id: "UaP7Th" }),
|
|
2485
|
-
description: /*#__PURE__*/ z(W, {
|
|
2486
|
-
id: "boefwq",
|
|
2487
|
-
values: {
|
|
2488
|
-
bucketName: e,
|
|
2489
|
-
errorMessage: t
|
|
2490
|
-
}
|
|
2491
|
-
})
|
|
2492
|
-
}), Je = (e, t) => ({
|
|
2493
|
-
message: /*#__PURE__*/ z(W, { id: "b95YH9" }),
|
|
2494
|
-
description: t === 0 ? /*#__PURE__*/ z(W, {
|
|
2495
|
-
id: "8erw15",
|
|
2496
|
-
values: { bucketName: e }
|
|
2497
|
-
}) : t === 1 ? /*#__PURE__*/ z(W, {
|
|
2498
|
-
id: "QpbWpf",
|
|
2499
|
-
values: {
|
|
2500
|
-
bucketName: e,
|
|
2501
|
-
deletedCount: t
|
|
2502
|
-
}
|
|
2503
|
-
}) : /*#__PURE__*/ z(W, {
|
|
2504
|
-
id: "JPWqr2",
|
|
2505
|
-
values: {
|
|
2506
|
-
bucketName: e,
|
|
2507
|
-
deletedCount: t
|
|
2508
|
-
}
|
|
2509
|
-
})
|
|
2510
|
-
}), Ye = (e, t) => ({
|
|
2511
|
-
message: /*#__PURE__*/ z(W, { id: "66YUKF" }),
|
|
2512
|
-
description: /*#__PURE__*/ z(W, {
|
|
2513
|
-
id: "t7ewhH",
|
|
2514
|
-
values: {
|
|
2515
|
-
bucketName: e,
|
|
2516
|
-
errorMessage: t
|
|
2517
|
-
}
|
|
2518
|
-
})
|
|
2519
|
-
}), Xe = (e) => ({
|
|
2520
|
-
message: /*#__PURE__*/ z(W, { id: "bHUarC" }),
|
|
2521
|
-
description: /*#__PURE__*/ z(W, {
|
|
2522
|
-
id: "hQdfmR",
|
|
2523
|
-
values: { bucketName: e }
|
|
2524
|
-
})
|
|
2525
|
-
}), Ze = (e, t) => ({
|
|
2526
|
-
message: /*#__PURE__*/ z(W, { id: "1NFtQz" }),
|
|
2527
|
-
description: /*#__PURE__*/ z(W, {
|
|
2528
|
-
id: "CongmL",
|
|
2529
|
-
values: {
|
|
2530
|
-
bucketName: e,
|
|
2531
|
-
errorMessage: t
|
|
2532
|
-
}
|
|
2533
|
-
})
|
|
2534
|
-
}), Qe = (e, t, n) => {
|
|
2535
|
-
let r = n.length > 0, i = e + n.length, a = n.length;
|
|
2536
|
-
return {
|
|
2537
|
-
message: r ? /*#__PURE__*/ z(W, { id: "6fuDFZ" }) : /*#__PURE__*/ z(W, { id: "BOoOLQ" }),
|
|
2538
|
-
description: r ? /*#__PURE__*/ z(W, {
|
|
2539
|
-
id: "pD/2BQ",
|
|
2540
|
-
values: {
|
|
2541
|
-
emptiedCount: e,
|
|
2542
|
-
totalBuckets: i,
|
|
2543
|
-
totalDeleted: t,
|
|
2544
|
-
errorsLength: a
|
|
2545
|
-
}
|
|
2546
|
-
}) : /*#__PURE__*/ z(W, {
|
|
2547
|
-
id: "YVLcyI",
|
|
2548
|
-
values: {
|
|
2549
|
-
emptiedCount: e,
|
|
2550
|
-
totalDeleted: t
|
|
2551
|
-
}
|
|
2552
|
-
})
|
|
2553
|
-
};
|
|
2554
2477
|
}, $e = 20, et = ({ isOpen: e, buckets: t, onClose: n, onComplete: r }) => {
|
|
2555
|
-
let { i18n: i, _: a } =
|
|
2478
|
+
let { i18n: i, _: a } = K(), o = I(), [c, l] = W(null), [u, d] = W(""), p = M.useUtils(), m = M.storage.ceph.objects.deleteAll.useMutation(), h = () => {
|
|
2556
2479
|
m.reset(), l(null), d(""), n();
|
|
2557
2480
|
}, g = async () => {
|
|
2558
2481
|
let e = 0, n = 0, i = [], a = t.length;
|
|
@@ -2581,8 +2504,8 @@ var Se = (e, t) => ({
|
|
|
2581
2504
|
};
|
|
2582
2505
|
if (!e || t.length === 0) return null;
|
|
2583
2506
|
let _ = t.length, v = t.slice(0, $e), y = _ - v.length, b = m.isPending || c !== null, x = c?.current, S = c?.total, C = u === "empty";
|
|
2584
|
-
return /*#__PURE__*/
|
|
2585
|
-
title: /*#__PURE__*/
|
|
2507
|
+
return /*#__PURE__*/ V(w, {
|
|
2508
|
+
title: /*#__PURE__*/ V(G, {
|
|
2586
2509
|
id: "DWBWmW",
|
|
2587
2510
|
values: { totalCount: _ }
|
|
2588
2511
|
}),
|
|
@@ -2596,15 +2519,15 @@ var Se = (e, t) => ({
|
|
|
2596
2519
|
disableCancelButton: b,
|
|
2597
2520
|
disableCloseButton: b,
|
|
2598
2521
|
size: "small",
|
|
2599
|
-
children: b ? /*#__PURE__*/
|
|
2522
|
+
children: b ? /*#__PURE__*/ H(O, {
|
|
2600
2523
|
direction: "vertical",
|
|
2601
2524
|
distribution: "center",
|
|
2602
2525
|
alignment: "center",
|
|
2603
2526
|
gap: "2",
|
|
2604
2527
|
className: "py-4",
|
|
2605
|
-
children: [/*#__PURE__*/
|
|
2528
|
+
children: [/*#__PURE__*/ V(s, { variant: "primary" }), c && /*#__PURE__*/ V("p", {
|
|
2606
2529
|
className: "text-theme-light text-sm",
|
|
2607
|
-
children: /*#__PURE__*/
|
|
2530
|
+
children: /*#__PURE__*/ V(G, {
|
|
2608
2531
|
id: "NW1XEL",
|
|
2609
2532
|
values: {
|
|
2610
2533
|
progressCurrent: x,
|
|
@@ -2612,43 +2535,43 @@ var Se = (e, t) => ({
|
|
|
2612
2535
|
}
|
|
2613
2536
|
})
|
|
2614
2537
|
})]
|
|
2615
|
-
}) : /*#__PURE__*/
|
|
2538
|
+
}) : /*#__PURE__*/ H(O, {
|
|
2616
2539
|
direction: "vertical",
|
|
2617
2540
|
gap: "4",
|
|
2618
2541
|
children: [
|
|
2619
|
-
/*#__PURE__*/
|
|
2542
|
+
/*#__PURE__*/ V(G, {
|
|
2620
2543
|
id: "CtiFDz",
|
|
2621
2544
|
values: { totalCount: _ }
|
|
2622
2545
|
}),
|
|
2623
|
-
/*#__PURE__*/
|
|
2546
|
+
/*#__PURE__*/ H("div", { children: [/*#__PURE__*/ V("p", {
|
|
2624
2547
|
className: "text-theme-light mb-2 text-sm",
|
|
2625
|
-
children: /*#__PURE__*/
|
|
2626
|
-
}), /*#__PURE__*/
|
|
2548
|
+
children: /*#__PURE__*/ V(G, { id: "Zshv0H" })
|
|
2549
|
+
}), /*#__PURE__*/ H("ul", {
|
|
2627
2550
|
className: "list-inside list-disc space-y-1 text-sm",
|
|
2628
2551
|
children: [v.map((e) => {
|
|
2629
2552
|
let t = e.name, n = e.count;
|
|
2630
|
-
return /*#__PURE__*/
|
|
2553
|
+
return /*#__PURE__*/ H("li", { children: [t, n > 0 && /*#__PURE__*/ H("span", {
|
|
2631
2554
|
className: "text-theme-light ml-2",
|
|
2632
2555
|
children: [
|
|
2633
2556
|
"(",
|
|
2634
2557
|
n,
|
|
2635
2558
|
" ",
|
|
2636
|
-
/*#__PURE__*/
|
|
2559
|
+
/*#__PURE__*/ V(G, {
|
|
2637
2560
|
id: "gFsjJK",
|
|
2638
2561
|
values: { bucketCount: n }
|
|
2639
2562
|
}),
|
|
2640
2563
|
")"
|
|
2641
2564
|
]
|
|
2642
2565
|
})] }, t);
|
|
2643
|
-
}), y > 0 && /*#__PURE__*/
|
|
2566
|
+
}), y > 0 && /*#__PURE__*/ V("li", {
|
|
2644
2567
|
className: "text-theme-light",
|
|
2645
|
-
children: /*#__PURE__*/
|
|
2568
|
+
children: /*#__PURE__*/ V(G, {
|
|
2646
2569
|
id: "yqPflB",
|
|
2647
2570
|
values: { hiddenCount: y }
|
|
2648
2571
|
})
|
|
2649
2572
|
})]
|
|
2650
2573
|
})] }),
|
|
2651
|
-
/*#__PURE__*/
|
|
2574
|
+
/*#__PURE__*/ V(f, {
|
|
2652
2575
|
label: i._({ id: "Ghp863" }),
|
|
2653
2576
|
value: u,
|
|
2654
2577
|
onChange: (e) => d(e.target.value),
|
|
@@ -2668,33 +2591,33 @@ function tt({ onSuccess: e }) {
|
|
|
2668
2591
|
},
|
|
2669
2592
|
onError: (e) => {
|
|
2670
2593
|
let t = e.message;
|
|
2671
|
-
l.error(/*#__PURE__*/
|
|
2594
|
+
l.error(/*#__PURE__*/ V(G, {
|
|
2672
2595
|
id: "rcBt6T",
|
|
2673
2596
|
values: { errorMessage: t }
|
|
2674
2597
|
}));
|
|
2675
2598
|
}
|
|
2676
2599
|
});
|
|
2677
|
-
return /*#__PURE__*/
|
|
2600
|
+
return /*#__PURE__*/ H(O, {
|
|
2678
2601
|
direction: "vertical",
|
|
2679
2602
|
gap: "4",
|
|
2680
2603
|
className: "mt-8 max-w-lg",
|
|
2681
2604
|
children: [
|
|
2682
|
-
/*#__PURE__*/
|
|
2605
|
+
/*#__PURE__*/ V("h2", {
|
|
2683
2606
|
className: "text-lg font-semibold",
|
|
2684
|
-
children: /*#__PURE__*/
|
|
2607
|
+
children: /*#__PURE__*/ V(G, { id: "jq5wGQ" })
|
|
2685
2608
|
}),
|
|
2686
|
-
/*#__PURE__*/
|
|
2609
|
+
/*#__PURE__*/ V("p", {
|
|
2687
2610
|
className: "text-theme-default",
|
|
2688
|
-
children: /*#__PURE__*/
|
|
2611
|
+
children: /*#__PURE__*/ V(G, { id: "+8m5QE" })
|
|
2689
2612
|
}),
|
|
2690
|
-
/*#__PURE__*/
|
|
2613
|
+
/*#__PURE__*/ V("p", {
|
|
2691
2614
|
className: "text-theme-default text-sm",
|
|
2692
|
-
children: /*#__PURE__*/
|
|
2615
|
+
children: /*#__PURE__*/ V(G, { id: "+1xG4p" })
|
|
2693
2616
|
}),
|
|
2694
|
-
/*#__PURE__*/
|
|
2617
|
+
/*#__PURE__*/ V("div", { children: /*#__PURE__*/ V(j, {
|
|
2695
2618
|
onClick: () => t && r.mutate({ project_id: t }),
|
|
2696
2619
|
disabled: r.isPending || !t,
|
|
2697
|
-
children: r.isPending ? /*#__PURE__*/
|
|
2620
|
+
children: r.isPending ? /*#__PURE__*/ V(G, { id: "k/zHK7" }) : /*#__PURE__*/ V(G, { id: "FJO48W" })
|
|
2698
2621
|
}) })
|
|
2699
2622
|
]
|
|
2700
2623
|
});
|
|
@@ -2702,27 +2625,27 @@ function tt({ onSuccess: e }) {
|
|
|
2702
2625
|
//#endregion
|
|
2703
2626
|
//#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/index.tsx
|
|
2704
2627
|
var nt = () => {
|
|
2705
|
-
let { i18n: e, i18n: n, _: r } =
|
|
2706
|
-
|
|
2628
|
+
let { i18n: e, i18n: n, _: r } = K(), i = I(), a = de({ from: N.fullPath }), { sortBy: o, sortDirection: c, search: u = "" } = N.useSearch(), [d, f] = W(!1), [p, g] = W(!1), [_, v] = W([]), [y, S] = W(u), C = ue(void 0);
|
|
2629
|
+
le(() => () => clearTimeout(C.current), []), le(() => {
|
|
2707
2630
|
S(u);
|
|
2708
2631
|
}, [u]);
|
|
2709
2632
|
let w = (e) => {
|
|
2710
|
-
let { message: t, ...n } =
|
|
2633
|
+
let { message: t, ...n } = ie(e);
|
|
2711
2634
|
l.success(t, n);
|
|
2712
2635
|
}, E = (e, t) => {
|
|
2713
|
-
let { message: n, ...r } =
|
|
2636
|
+
let { message: n, ...r } = oe(e, t);
|
|
2714
2637
|
l.error(n, r);
|
|
2715
2638
|
}, k = (e, t) => {
|
|
2716
|
-
let { message: n, ...r } =
|
|
2639
|
+
let { message: n, ...r } = L(e, t);
|
|
2717
2640
|
l.success(n, r);
|
|
2718
2641
|
}, A = (e, t) => {
|
|
2719
|
-
let { message: n, ...r } =
|
|
2642
|
+
let { message: n, ...r } = R(e, t);
|
|
2720
2643
|
l.error(n, r);
|
|
2721
2644
|
}, P = (e) => {
|
|
2722
|
-
let { message: t, ...n } =
|
|
2645
|
+
let { message: t, ...n } = ne(e);
|
|
2723
2646
|
l.success(t, n);
|
|
2724
2647
|
}, F = (e, t) => {
|
|
2725
|
-
let { message: n, ...r } =
|
|
2648
|
+
let { message: n, ...r } = ae(e, t);
|
|
2726
2649
|
l.error(n, r);
|
|
2727
2650
|
}, te = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
|
|
2728
2651
|
if (n.length === 0) v([]);
|
|
@@ -2730,9 +2653,9 @@ var nt = () => {
|
|
|
2730
2653
|
let e = new Set(n.map((e) => e.split(": ")[0]));
|
|
2731
2654
|
v((t) => t.filter((t) => e.has(t)));
|
|
2732
2655
|
}
|
|
2733
|
-
let { message: r, ...i } =
|
|
2656
|
+
let { message: r, ...i } = re(e, t, n);
|
|
2734
2657
|
n.length > 0 ? l.warning(r, i) : l.success(r, i);
|
|
2735
|
-
},
|
|
2658
|
+
}, z = {
|
|
2736
2659
|
options: [
|
|
2737
2660
|
{
|
|
2738
2661
|
label: e._({ id: "6YtxFj" }),
|
|
@@ -2753,13 +2676,13 @@ var nt = () => {
|
|
|
2753
2676
|
],
|
|
2754
2677
|
sortBy: o ?? "name",
|
|
2755
2678
|
sortDirection: c ?? "asc"
|
|
2756
|
-
}, { data:
|
|
2679
|
+
}, { data: B, isLoading: U, error: ce } = M.storage.ceph.containers.list.useQuery({
|
|
2757
2680
|
project_id: i,
|
|
2758
2681
|
includeMetadata: !0
|
|
2759
2682
|
}, {
|
|
2760
2683
|
enabled: !!i,
|
|
2761
2684
|
retry: !1
|
|
2762
|
-
}),
|
|
2685
|
+
}), fe = (e) => [...e].sort((e, t) => {
|
|
2763
2686
|
let n;
|
|
2764
2687
|
switch (o ?? "name") {
|
|
2765
2688
|
case "name":
|
|
@@ -2780,17 +2703,17 @@ var nt = () => {
|
|
|
2780
2703
|
default: n = e.name.localeCompare(t.name);
|
|
2781
2704
|
}
|
|
2782
2705
|
return (c ?? "asc") === "desc" ? -n : n;
|
|
2783
|
-
}),
|
|
2706
|
+
}), q = (B || []).filter((e) => e.name.toLowerCase().includes(u.toLowerCase())), pe = fe(q), me = (e) => {
|
|
2784
2707
|
let t = typeof e == "string" ? e : "";
|
|
2785
|
-
|
|
2708
|
+
se(() => {
|
|
2786
2709
|
a({ search: (e) => ({
|
|
2787
2710
|
...e,
|
|
2788
2711
|
search: t || void 0
|
|
2789
2712
|
}) });
|
|
2790
2713
|
});
|
|
2791
|
-
},
|
|
2714
|
+
}, he = (e) => {
|
|
2792
2715
|
let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
|
|
2793
|
-
|
|
2716
|
+
se(() => {
|
|
2794
2717
|
a({ search: (e) => ({
|
|
2795
2718
|
...e,
|
|
2796
2719
|
sortBy: t,
|
|
@@ -2798,141 +2721,141 @@ var nt = () => {
|
|
|
2798
2721
|
}) });
|
|
2799
2722
|
});
|
|
2800
2723
|
};
|
|
2801
|
-
if (
|
|
2724
|
+
if (U) return /*#__PURE__*/ H(O, {
|
|
2802
2725
|
className: "absolute inset-0",
|
|
2803
2726
|
distribution: "center",
|
|
2804
2727
|
alignment: "center",
|
|
2805
2728
|
direction: "vertical",
|
|
2806
|
-
children: [/*#__PURE__*/
|
|
2729
|
+
children: [/*#__PURE__*/ V(s, {
|
|
2807
2730
|
variant: "primary",
|
|
2808
2731
|
size: "large",
|
|
2809
2732
|
className: "mb-2"
|
|
2810
|
-
}), /*#__PURE__*/
|
|
2733
|
+
}), /*#__PURE__*/ V(G, { id: "c5i+X0" })]
|
|
2811
2734
|
});
|
|
2812
|
-
if (
|
|
2813
|
-
let e =
|
|
2814
|
-
if (e === "NO_CEPH_CREDENTIALS") return /*#__PURE__*/
|
|
2735
|
+
if (ce) {
|
|
2736
|
+
let e = ce.message;
|
|
2737
|
+
if (e === "NO_CEPH_CREDENTIALS") return /*#__PURE__*/ V(tt, { onSuccess: () => window.location.reload() });
|
|
2815
2738
|
let t = e.includes("Access denied") || e.includes("AccessDenied"), n = e.includes("Invalid access key") || e.includes("InvalidAccessKeyId");
|
|
2816
|
-
return /*#__PURE__*/
|
|
2739
|
+
return /*#__PURE__*/ V("div", { children: /*#__PURE__*/ V("p", {
|
|
2817
2740
|
className: "text-theme-default text-sm",
|
|
2818
|
-
children: t ? /*#__PURE__*/
|
|
2741
|
+
children: t ? /*#__PURE__*/ V(G, { id: "HAcOOW" }) : n ? /*#__PURE__*/ V(G, { id: "xIXYTK" }) : /*#__PURE__*/ V(G, {
|
|
2819
2742
|
id: "yDAMyU",
|
|
2820
2743
|
values: { errorMessage: e }
|
|
2821
2744
|
})
|
|
2822
2745
|
}) });
|
|
2823
2746
|
}
|
|
2824
|
-
let
|
|
2825
|
-
return /*#__PURE__*/
|
|
2747
|
+
let ge = (B || []).filter((e) => _.includes(e.name)), _e = ge.length > 0, ve = ge.length, ye = (B || []).length, be = q.length, J = pe.map((e) => e.name), Y = J.length > 0 && J.every((e) => _.includes(e)), X = J.some((e) => _.includes(e));
|
|
2748
|
+
return /*#__PURE__*/ H("div", {
|
|
2826
2749
|
className: "relative",
|
|
2827
2750
|
children: [
|
|
2828
|
-
/*#__PURE__*/
|
|
2751
|
+
/*#__PURE__*/ H(O, {
|
|
2829
2752
|
direction: "vertical",
|
|
2830
2753
|
children: [
|
|
2831
|
-
/*#__PURE__*/
|
|
2754
|
+
/*#__PURE__*/ H(O, {
|
|
2832
2755
|
distribution: "end",
|
|
2833
2756
|
alignment: "center",
|
|
2834
2757
|
gap: "2",
|
|
2835
2758
|
className: "pb-2",
|
|
2836
|
-
children: [/*#__PURE__*/
|
|
2759
|
+
children: [/*#__PURE__*/ V(O, {
|
|
2837
2760
|
gap: "0.5",
|
|
2838
2761
|
alignment: "center",
|
|
2839
|
-
children: /*#__PURE__*/
|
|
2840
|
-
options:
|
|
2841
|
-
sortBy:
|
|
2842
|
-
sortDirection:
|
|
2762
|
+
children: /*#__PURE__*/ V(ee, {
|
|
2763
|
+
options: z.options,
|
|
2764
|
+
sortBy: z.sortBy,
|
|
2765
|
+
sortDirection: z.sortDirection ?? "asc",
|
|
2843
2766
|
selectClassName: "w-40",
|
|
2844
|
-
onSortByChange: (e) =>
|
|
2845
|
-
...
|
|
2767
|
+
onSortByChange: (e) => he({
|
|
2768
|
+
...z,
|
|
2846
2769
|
sortBy: e,
|
|
2847
|
-
sortDirection:
|
|
2770
|
+
sortDirection: z.sortDirection
|
|
2848
2771
|
}),
|
|
2849
|
-
onSortDirectionChange: (e) =>
|
|
2850
|
-
...
|
|
2772
|
+
onSortDirectionChange: (e) => he({
|
|
2773
|
+
...z,
|
|
2851
2774
|
sortDirection: e
|
|
2852
2775
|
})
|
|
2853
2776
|
})
|
|
2854
|
-
}), /*#__PURE__*/
|
|
2777
|
+
}), /*#__PURE__*/ V(j, {
|
|
2855
2778
|
variant: "primary",
|
|
2856
2779
|
className: "whitespace-nowrap",
|
|
2857
2780
|
onClick: () => f(!0),
|
|
2858
|
-
children: /*#__PURE__*/
|
|
2781
|
+
children: /*#__PURE__*/ V(G, { id: "HiDAFk" })
|
|
2859
2782
|
})]
|
|
2860
2783
|
}),
|
|
2861
|
-
/*#__PURE__*/
|
|
2784
|
+
/*#__PURE__*/ V(h, { children: /*#__PURE__*/ V(O, {
|
|
2862
2785
|
direction: "vertical",
|
|
2863
2786
|
gap: "2",
|
|
2864
|
-
children: /*#__PURE__*/
|
|
2787
|
+
children: /*#__PURE__*/ V(O, {
|
|
2865
2788
|
distribution: "end",
|
|
2866
2789
|
alignment: "center",
|
|
2867
|
-
children: /*#__PURE__*/
|
|
2790
|
+
children: /*#__PURE__*/ V(x, {
|
|
2868
2791
|
placeholder: e._({ id: "VeDAv2" }),
|
|
2869
2792
|
"data-testid": "searchbar",
|
|
2870
2793
|
value: y,
|
|
2871
2794
|
onInput: (e) => {
|
|
2872
2795
|
let t = e.currentTarget.value;
|
|
2873
|
-
S(t), clearTimeout(C.current), C.current = window.setTimeout(() =>
|
|
2796
|
+
S(t), clearTimeout(C.current), C.current = window.setTimeout(() => me(t), 500);
|
|
2874
2797
|
},
|
|
2875
2798
|
onSearch: (e) => {
|
|
2876
|
-
clearTimeout(C.current),
|
|
2799
|
+
clearTimeout(C.current), me(typeof e == "string" ? e : "");
|
|
2877
2800
|
},
|
|
2878
2801
|
onClear: () => {
|
|
2879
|
-
clearTimeout(C.current), S(""),
|
|
2802
|
+
clearTimeout(C.current), S(""), me("");
|
|
2880
2803
|
}
|
|
2881
2804
|
})
|
|
2882
2805
|
})
|
|
2883
2806
|
}) }),
|
|
2884
|
-
/*#__PURE__*/
|
|
2807
|
+
/*#__PURE__*/ V(h, { children: /*#__PURE__*/ H(O, {
|
|
2885
2808
|
distribution: "start",
|
|
2886
2809
|
gap: "2",
|
|
2887
2810
|
alignment: "center",
|
|
2888
2811
|
className: "text-sm",
|
|
2889
|
-
children: [/*#__PURE__*/
|
|
2812
|
+
children: [/*#__PURE__*/ H(O, {
|
|
2890
2813
|
gap: "2",
|
|
2891
2814
|
alignment: "center",
|
|
2892
|
-
children: [/*#__PURE__*/
|
|
2893
|
-
checked:
|
|
2894
|
-
indeterminate:
|
|
2815
|
+
children: [/*#__PURE__*/ V(b, {
|
|
2816
|
+
checked: Y,
|
|
2817
|
+
indeterminate: X && !Y,
|
|
2895
2818
|
onChange: () => {
|
|
2896
|
-
v(
|
|
2819
|
+
v(Y ? (e) => e.filter((e) => !J.includes(e)) : (e) => [...new Set([...e, ...J])]);
|
|
2897
2820
|
}
|
|
2898
|
-
}), /*#__PURE__*/
|
|
2821
|
+
}), /*#__PURE__*/ H(T, {
|
|
2899
2822
|
className: "flex items-center",
|
|
2900
|
-
children: [/*#__PURE__*/
|
|
2823
|
+
children: [/*#__PURE__*/ V(D, {
|
|
2901
2824
|
as: "div",
|
|
2902
|
-
children: /*#__PURE__*/
|
|
2903
|
-
disabled: !
|
|
2825
|
+
children: /*#__PURE__*/ V(j, {
|
|
2826
|
+
disabled: !_e,
|
|
2904
2827
|
size: "small",
|
|
2905
2828
|
icon: "moreVert",
|
|
2906
2829
|
label: e._({ id: "7L01XJ" })
|
|
2907
2830
|
})
|
|
2908
|
-
}),
|
|
2909
|
-
disabled: !
|
|
2831
|
+
}), _e && /*#__PURE__*/ V(t, { children: /*#__PURE__*/ V(m, {
|
|
2832
|
+
disabled: !_e,
|
|
2910
2833
|
label: n._(e._({
|
|
2911
2834
|
id: "P2tWBZ",
|
|
2912
|
-
values: { selectedCount:
|
|
2835
|
+
values: { selectedCount: ve }
|
|
2913
2836
|
})),
|
|
2914
2837
|
onClick: () => g(!0)
|
|
2915
2838
|
}) })]
|
|
2916
2839
|
})]
|
|
2917
|
-
}), /*#__PURE__*/
|
|
2840
|
+
}), /*#__PURE__*/ V("div", {
|
|
2918
2841
|
className: "text-theme-light flex items-center gap-1",
|
|
2919
2842
|
"data-testid": "buckets-info-block",
|
|
2920
|
-
children: u.trim() ? /*#__PURE__*/
|
|
2843
|
+
children: u.trim() ? /*#__PURE__*/ V(G, {
|
|
2921
2844
|
id: "xOvKAE",
|
|
2922
2845
|
values: {
|
|
2923
|
-
totalCount:
|
|
2924
|
-
filteredCount:
|
|
2846
|
+
totalCount: ye,
|
|
2847
|
+
filteredCount: be
|
|
2925
2848
|
}
|
|
2926
|
-
}) : /*#__PURE__*/
|
|
2849
|
+
}) : /*#__PURE__*/ V(G, {
|
|
2927
2850
|
id: "Ux/pNd",
|
|
2928
|
-
values: { totalCount:
|
|
2851
|
+
values: { totalCount: ye }
|
|
2929
2852
|
})
|
|
2930
2853
|
})]
|
|
2931
2854
|
}) })
|
|
2932
2855
|
]
|
|
2933
2856
|
}),
|
|
2934
|
-
/*#__PURE__*/
|
|
2935
|
-
buckets:
|
|
2857
|
+
/*#__PURE__*/ V(Qe, {
|
|
2858
|
+
buckets: pe,
|
|
2936
2859
|
createModalOpen: d,
|
|
2937
2860
|
setCreateModalOpen: f,
|
|
2938
2861
|
onCreateSuccess: w,
|
|
@@ -2945,9 +2868,9 @@ var nt = () => {
|
|
|
2945
2868
|
setSelectedBuckets: v,
|
|
2946
2869
|
hasAnyBulkAction: !0
|
|
2947
2870
|
}),
|
|
2948
|
-
/*#__PURE__*/
|
|
2871
|
+
/*#__PURE__*/ V(et, {
|
|
2949
2872
|
isOpen: p,
|
|
2950
|
-
buckets:
|
|
2873
|
+
buckets: ge,
|
|
2951
2874
|
onClose: () => g(!1),
|
|
2952
2875
|
onComplete: te
|
|
2953
2876
|
})
|
|
@@ -2957,14 +2880,14 @@ var nt = () => {
|
|
|
2957
2880
|
//#endregion
|
|
2958
2881
|
//#region src/client/routes/_auth/projects/$projectId/storage/$provider/$storageType/index.tsx?tsr-split=component
|
|
2959
2882
|
function rt() {
|
|
2960
|
-
let { project: e, provider: t } =
|
|
2883
|
+
let { project: e, provider: t } = fe({
|
|
2961
2884
|
from: "/_auth/projects/$projectId/storage/$provider/$storageType/",
|
|
2962
2885
|
select: (e) => ({
|
|
2963
2886
|
project: e.projectId,
|
|
2964
2887
|
provider: e.provider,
|
|
2965
2888
|
storageType: e.storageType
|
|
2966
2889
|
})
|
|
2967
|
-
}), { i18n: n, _: r } =
|
|
2890
|
+
}), { i18n: n, _: r } = K(), i;
|
|
2968
2891
|
switch (t) {
|
|
2969
2892
|
case "swift":
|
|
2970
2893
|
i = n._({ id: "+OEi73" });
|
|
@@ -2974,29 +2897,29 @@ function rt() {
|
|
|
2974
2897
|
break;
|
|
2975
2898
|
default: i = n._({ id: "IWF68U" });
|
|
2976
2899
|
}
|
|
2977
|
-
return /*#__PURE__*/
|
|
2900
|
+
return /*#__PURE__*/ H("div", { children: [/*#__PURE__*/ V(P, {
|
|
2978
2901
|
title: i,
|
|
2979
2902
|
projectId: e
|
|
2980
|
-
}), e ? /*#__PURE__*/
|
|
2903
|
+
}), e ? /*#__PURE__*/ V(pe, {
|
|
2981
2904
|
resetKeys: [e, t],
|
|
2982
|
-
fallback: /*#__PURE__*/
|
|
2905
|
+
fallback: /*#__PURE__*/ V("div", {
|
|
2983
2906
|
className: "p-4 text-center",
|
|
2984
|
-
children: /*#__PURE__*/
|
|
2907
|
+
children: /*#__PURE__*/ V(G, { id: "diFNkW" })
|
|
2985
2908
|
}),
|
|
2986
2909
|
children: (() => {
|
|
2987
2910
|
switch (t) {
|
|
2988
|
-
case "swift": return /*#__PURE__*/
|
|
2989
|
-
case "ceph": return /*#__PURE__*/
|
|
2990
|
-
default: return /*#__PURE__*/
|
|
2911
|
+
case "swift": return /*#__PURE__*/ V(Ke, {});
|
|
2912
|
+
case "ceph": return /*#__PURE__*/ V(nt, {});
|
|
2913
|
+
default: return /*#__PURE__*/ V("div", { children: "Storage Overview Page" });
|
|
2991
2914
|
}
|
|
2992
2915
|
})()
|
|
2993
|
-
}) : /*#__PURE__*/
|
|
2916
|
+
}) : /*#__PURE__*/ V("div", {
|
|
2994
2917
|
className: "p-4 text-center",
|
|
2995
|
-
children: /*#__PURE__*/
|
|
2918
|
+
children: /*#__PURE__*/ V(G, { id: "Z2fZGD" })
|
|
2996
2919
|
})] });
|
|
2997
2920
|
}
|
|
2998
|
-
var it = () => /*#__PURE__*/
|
|
2921
|
+
var it = () => /*#__PURE__*/ V(rt, {});
|
|
2999
2922
|
//#endregion
|
|
3000
2923
|
export { it as component };
|
|
3001
2924
|
|
|
3002
|
-
//# sourceMappingURL=_storageType-
|
|
2925
|
+
//# sourceMappingURL=_storageType-BIMQazHh.mjs.map
|