@cobaltcore-dev/aurora 0.11.0 → 0.12.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.
Files changed (92) hide show
  1. package/dist/client/{ContentHeader-DsuZD8fa.mjs → ContentHeader-D2nIdJKJ.mjs} +22 -22
  2. package/dist/client/{ContentHeader-DsuZD8fa.mjs.map → ContentHeader-D2nIdJKJ.mjs.map} +1 -1
  3. package/dist/client/{DeleteFlavorModal-RnbspW_2.mjs → DeleteFlavorModal-Dwm0Hh84.mjs} +174 -174
  4. package/dist/client/{DeleteFlavorModal-RnbspW_2.mjs.map → DeleteFlavorModal-Dwm0Hh84.mjs.map} +1 -1
  5. package/dist/client/{DeleteVersionsModal-CsBJzXoW.mjs → DeleteVersionsModal-DQO8lGmS.mjs} +69 -69
  6. package/dist/client/{DeleteVersionsModal-CsBJzXoW.mjs.map → DeleteVersionsModal-DQO8lGmS.mjs.map} +1 -1
  7. package/dist/client/{EditSecurityGroupModal-BPv3d7am.mjs → EditSecurityGroupModal-BGPXglju.mjs} +17 -17
  8. package/dist/client/{EditSecurityGroupModal-BPv3d7am.mjs.map → EditSecurityGroupModal-BGPXglju.mjs.map} +1 -1
  9. package/dist/client/{FiltersInput-CViamP59.mjs → FiltersInput-cOaaRpcQ.mjs} +20 -20
  10. package/dist/client/{FiltersInput-CViamP59.mjs.map → FiltersInput-cOaaRpcQ.mjs.map} +1 -1
  11. package/dist/client/{FloatingIpActionModals-DTn3HFei.mjs → FloatingIpActionModals-RCvaamOg.mjs} +55 -55
  12. package/dist/client/{FloatingIpActionModals-DTn3HFei.mjs.map → FloatingIpActionModals-RCvaamOg.mjs.map} +1 -1
  13. package/dist/client/{ImageToastNotifications-CFKQZTgf.mjs → ImageToastNotifications-ClO-1yOH.mjs} +310 -310
  14. package/dist/client/{ImageToastNotifications-CFKQZTgf.mjs.map → ImageToastNotifications-ClO-1yOH.mjs.map} +1 -1
  15. package/dist/client/{RouteError-BebIhFpQ.mjs → RouteError-BmZRk_ss.mjs} +2 -2
  16. package/dist/client/{RouteError-BebIhFpQ.mjs.map → RouteError-BmZRk_ss.mjs.map} +1 -1
  17. package/dist/client/{SortInput-D0Vb864D.mjs → SortInput-DjaEHvcO.mjs} +6 -6
  18. package/dist/client/{SortInput-D0Vb864D.mjs.map → SortInput-DjaEHvcO.mjs.map} +1 -1
  19. package/dist/client/{_flavorId-C9SZd1jL.mjs → _flavorId-CtQEd28h.mjs} +8 -8
  20. package/dist/client/{_flavorId-C9SZd1jL.mjs.map → _flavorId-CtQEd28h.mjs.map} +1 -1
  21. package/dist/client/{_flavorId-DINgWoeV.mjs → _flavorId-DVsGdXUf.mjs} +46 -46
  22. package/dist/client/{_flavorId-DINgWoeV.mjs.map → _flavorId-DVsGdXUf.mjs.map} +1 -1
  23. package/dist/client/{_floatingIpId-BACLbMzi2.mjs → _floatingIpId-CKMq7-4p2.mjs} +36 -36
  24. package/dist/client/{_floatingIpId-BACLbMzi2.mjs.map → _floatingIpId-CKMq7-4p2.mjs.map} +1 -1
  25. package/dist/client/{_floatingIpId-BzVMOv97.mjs → _floatingIpId-DvTh6vdB.mjs} +2 -2
  26. package/dist/client/{_floatingIpId-BzVMOv97.mjs.map → _floatingIpId-DvTh6vdB.mjs.map} +1 -1
  27. package/dist/client/_imageId-xG8hC49j.mjs +534 -0
  28. package/dist/client/{_imageId-DCvaU7-S.mjs.map → _imageId-xG8hC49j.mjs.map} +1 -1
  29. package/dist/client/{_pcaId-B3PqECyO.mjs → _pcaId-Db_t0x6O.mjs} +147 -147
  30. package/dist/client/{_pcaId-B3PqECyO.mjs.map → _pcaId-Db_t0x6O.mjs.map} +1 -1
  31. package/dist/client/{_pcaId-DAJEt3ZI.mjs → _pcaId-WCJoukIk.mjs} +2 -2
  32. package/dist/client/{_pcaId-DAJEt3ZI.mjs.map → _pcaId-WCJoukIk.mjs.map} +1 -1
  33. package/dist/client/{_projectId-DU8qRiZk.mjs → _projectId-B2cvskLV.mjs} +2 -2
  34. package/dist/client/{_projectId-DU8qRiZk.mjs.map → _projectId-B2cvskLV.mjs.map} +1 -1
  35. package/dist/client/{_projectId-DRr9rLST.mjs → _projectId-BCMkaH_h.mjs} +35 -35
  36. package/dist/client/_projectId-BCMkaH_h.mjs.map +1 -0
  37. package/dist/client/{_projectId-B2hG5peP.mjs → _projectId-BdqRntcN.mjs} +15 -14
  38. package/dist/client/{_projectId-B2hG5peP.mjs.map → _projectId-BdqRntcN.mjs.map} +1 -1
  39. package/dist/client/{_projectId-BnWXWTBR.mjs → _projectId-C8RGOqZb.mjs} +3 -3
  40. package/dist/client/{_projectId-BnWXWTBR.mjs.map → _projectId-C8RGOqZb.mjs.map} +1 -1
  41. package/dist/client/{_securityGroupId-Cj9IotMJ.mjs → _securityGroupId-CyQ3XmpB.mjs} +2 -2
  42. package/dist/client/{_securityGroupId-Cj9IotMJ.mjs.map → _securityGroupId-CyQ3XmpB.mjs.map} +1 -1
  43. package/dist/client/{_securityGroupId-ClJiFh4R.mjs → _securityGroupId-DMi7YRux.mjs} +397 -397
  44. package/dist/client/{_securityGroupId-ClJiFh4R.mjs.map → _securityGroupId-DMi7YRux.mjs.map} +1 -1
  45. package/dist/client/{_storageType-BrHDa2bD.mjs → _storageType-Bb6YZgXf.mjs} +657 -660
  46. package/dist/client/{_storageType-BrHDa2bD.mjs.map → _storageType-Bb6YZgXf.mjs.map} +1 -1
  47. package/dist/client/{_storageType-CSLH93js.mjs → _storageType-g1zkFFRh.mjs} +2 -2
  48. package/dist/client/{_storageType-CSLH93js.mjs.map → _storageType-g1zkFFRh.mjs.map} +1 -1
  49. package/dist/client/{about-BnU297yB.mjs → about-B4sGnxeW.mjs} +8 -8
  50. package/dist/client/{about-BnU297yB.mjs.map → about-B4sGnxeW.mjs.map} +1 -1
  51. package/dist/client/{build-DF7MTyXG.mjs → build-DgeVmENN.mjs} +2395 -2390
  52. package/dist/client/{build-DF7MTyXG.mjs.map → build-DgeVmENN.mjs.map} +1 -1
  53. package/dist/client/{constants-BskfpGYY.mjs → constants-D6IO9bPs.mjs} +16 -16
  54. package/dist/client/{constants-BskfpGYY.mjs.map → constants-D6IO9bPs.mjs.map} +1 -1
  55. package/dist/client/{flavors-DAbtRoep.mjs → flavors-CO5l_6d0.mjs} +178 -178
  56. package/dist/client/{flavors-DAbtRoep.mjs.map → flavors-CO5l_6d0.mjs.map} +1 -1
  57. package/dist/client/{flavors-DODudzrA.mjs → flavors-D4nGSs0r.mjs} +2 -2
  58. package/dist/client/{flavors-DODudzrA.mjs.map → flavors-D4nGSs0r.mjs.map} +1 -1
  59. package/dist/client/{floatingips-DJW9ftN_.mjs → floatingips-ClkRV7a7.mjs} +108 -108
  60. package/dist/client/{floatingips-DJW9ftN_.mjs.map → floatingips-ClkRV7a7.mjs.map} +1 -1
  61. package/dist/client/{images-C3JyPwer.mjs → images-B5ktfqg6.mjs} +2 -2
  62. package/dist/client/{images-C3JyPwer.mjs.map → images-B5ktfqg6.mjs.map} +1 -1
  63. package/dist/client/{images-Cp6V1nF5.mjs → images-C_OYLPqv.mjs} +440 -440
  64. package/dist/client/{images-Cp6V1nF5.mjs.map → images-C_OYLPqv.mjs.map} +1 -1
  65. package/dist/client/{images-BbLnuYrL.mjs → images-CvPxoPC0.mjs} +2 -2
  66. package/dist/client/{images-BbLnuYrL.mjs.map → images-CvPxoPC0.mjs.map} +1 -1
  67. package/dist/client/index.js +274 -274
  68. package/dist/client/index.js.map +1 -1
  69. package/dist/client/{objects-DUmK3WgA.mjs → objects-D0grS6pk.mjs} +1361 -1361
  70. package/dist/client/{objects-DUmK3WgA.mjs.map → objects-D0grS6pk.mjs.map} +1 -1
  71. package/dist/client/{objects-Bw96WXOs.mjs → objects-UQyUQxBj.mjs} +2 -2
  72. package/dist/client/{objects-Bw96WXOs.mjs.map → objects-UQyUQxBj.mjs.map} +1 -1
  73. package/dist/client/{pca-Dc_tdh4-.mjs → pca-BJPxOIgq.mjs} +69 -69
  74. package/dist/client/{pca-Dc_tdh4-.mjs.map → pca-BJPxOIgq.mjs.map} +1 -1
  75. package/dist/client/{pca-DKeGzbww.mjs → pca-C9MKOi3Z.mjs} +2 -2
  76. package/dist/client/{pca-DKeGzbww.mjs.map → pca-C9MKOi3Z.mjs.map} +1 -1
  77. package/dist/client/{projects-CRL37ftA.mjs → projects-C3wR-lvM.mjs} +16 -19
  78. package/dist/client/projects-C3wR-lvM.mjs.map +1 -0
  79. package/dist/client/{projects-DUWOgB3m.mjs → projects-CGjBlG2w.mjs} +2 -2
  80. package/dist/client/{projects-DUWOgB3m.mjs.map → projects-CGjBlG2w.mjs.map} +1 -1
  81. package/dist/client/{projects-DpXQYfKc.mjs → projects-DvSiI5Vg.mjs} +2 -2
  82. package/dist/client/{projects-DpXQYfKc.mjs.map → projects-DvSiI5Vg.mjs.map} +1 -1
  83. package/dist/client/{securitygroups-CWWFSjjj.mjs → securitygroups-n8ujBpJP.mjs} +118 -118
  84. package/dist/client/{securitygroups-CWWFSjjj.mjs.map → securitygroups-n8ujBpJP.mjs.map} +1 -1
  85. package/dist/client/{useListWithFiltering-C9k7xWqz.mjs → useListWithFiltering-BuhE81I6.mjs} +10 -10
  86. package/dist/client/{useListWithFiltering-C9k7xWqz.mjs.map → useListWithFiltering-BuhE81I6.mjs.map} +1 -1
  87. package/dist/server/index.d.ts +6 -2
  88. package/dist/server/index.js +4 -17
  89. package/package.json +2 -2
  90. package/dist/client/_imageId-DCvaU7-S.mjs +0 -534
  91. package/dist/client/_projectId-DRr9rLST.mjs.map +0 -1
  92. package/dist/client/projects-CRL37ftA.mjs.map +0 -1
@@ -1,11 +1,11 @@
1
- import { $ as e, A as t, C as n, D as r, F as i, H as a, K as o, L as s, N as c, T as l, U as u, W as d, X as f, Y as p, _ as m, at as h, c as g, ct as _, d as v, dt as y, f as b, it as x, k as S, m as C, nt as w, o as T, ot as E, q as D, rt as O, t as k, tt as A, ut as j } from "./build-DF7MTyXG.mjs";
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
2
  import { r as M } from "./trpcClient-BzPUgiM2.mjs";
3
- import { t as N } from "./_storageType-CSLH93js.mjs";
4
- import { t as P } from "./ContentHeader-DsuZD8fa.mjs";
5
- import { t as ee } from "./SortInput-D0Vb864D.mjs";
3
+ import { t as N } from "./_storageType-g1zkFFRh.mjs";
4
+ import { t as P } from "./ContentHeader-D2nIdJKJ.mjs";
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 { n as te, r as L } from "./DeleteVersionsModal-CsBJzXoW.mjs";
8
+ import { n as te, r as L } from "./DeleteVersionsModal-DQO8lGmS.mjs";
9
9
  import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
10
10
  import { Fragment as ne, startTransition as re, useCallback as V, useEffect as ie, useRef as ae, useState as H } from "react";
11
11
  import { useNavigate as U, useParams as oe } from "@tanstack/react-router";
@@ -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__*/ z(j, {
44
+ return e ? /*#__PURE__*/ z(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__*/ B(f, {
53
+ children: /*#__PURE__*/ B(O, {
54
54
  direction: "vertical",
55
55
  gap: "6",
56
56
  children: [/*#__PURE__*/ z("p", {
57
57
  className: "text-theme-default",
58
58
  children: /*#__PURE__*/ z(W, { id: "ne/GWZ" })
59
- }), /*#__PURE__*/ z(C, {
59
+ }), /*#__PURE__*/ z(f, {
60
60
  label: a._({ id: "SUSS9i" }),
61
61
  required: !0,
62
62
  value: c,
@@ -72,42 +72,42 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
72
72
  })]
73
73
  })
74
74
  }) : null;
75
- }, J = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) => {
76
- let { i18n: a, _: l } = G(), d = I(), [p, h] = H(""), [_, v] = H(null), [x, S] = H(!1), T = ae(""), E = () => {
75
+ }, J = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
76
+ let { i18n: c, _: l } = G(), p = I(), [m, h] = H(""), [g, y] = H(null), [b, x] = H(!1), S = ae(""), C = () => {
77
77
  t && navigator.clipboard.writeText(t.name).then(() => {
78
- S(!0), setTimeout(() => S(!1), 2e3);
78
+ x(!0), setTimeout(() => x(!1), 2e3);
79
79
  });
80
- }, D = M.useUtils(), { data: O, isLoading: k, error: A } = M.storage.swift.listObjects.useQuery({
81
- project_id: d,
80
+ }, T = M.useUtils(), { data: E, isLoading: D, error: A } = M.storage.swift.listObjects.useQuery({
81
+ project_id: p,
82
82
  container: t?.name ?? "",
83
83
  format: "json",
84
84
  limit: 100
85
85
  }, { enabled: e && t !== null }), N = M.storage.swift.emptyContainer.useMutation({
86
86
  onSuccess: (e) => {
87
- D.storage.swift.listContainers.invalidate(), D.storage.swift.listObjects.invalidate({
88
- project_id: d,
89
- container: T.current
90
- }), r?.(T.current, e);
87
+ T.storage.swift.listContainers.invalidate(), T.storage.swift.listObjects.invalidate({
88
+ project_id: p,
89
+ container: S.current
90
+ }), r?.(S.current, e);
91
91
  },
92
92
  onError: (e) => {
93
- i?.(T.current, e.message);
93
+ a?.(S.current, e.message);
94
94
  },
95
95
  onSettled: () => {
96
96
  P();
97
97
  }
98
98
  }), P = () => {
99
- h(""), v(null), N.reset(), n();
99
+ h(""), y(null), N.reset(), n();
100
100
  }, ee = (e) => {
101
101
  let t = e.target.value;
102
- h(t), _ && v(null);
102
+ h(t), g && y(null);
103
103
  }, te = () => {
104
104
  if (t) {
105
- if (p.trim() !== t.name) {
106
- v(a._({ id: "jS4B2+" }));
105
+ if (m.trim() !== t.name) {
106
+ y(c._({ id: "jS4B2+" }));
107
107
  return;
108
108
  }
109
- T.current = t.name, N.mutate({
110
- project_id: d,
109
+ S.current = t.name, N.mutate({
110
+ project_id: p,
111
111
  container: t.name
112
112
  });
113
113
  }
@@ -115,8 +115,8 @@ 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 R = O?.length ?? 0, ne = !k && t.count === 0 && R === 0, re = !k && t.count > 0 && R === 0, V = ne || re;
119
- return /*#__PURE__*/ B(j, {
118
+ let R = E?.length ?? 0, ne = !D && t.count === 0 && R === 0, re = !D && t.count > 0 && R === 0, V = ne || re;
119
+ return /*#__PURE__*/ B(w, {
120
120
  title: /* @__PURE__ */ B("span", {
121
121
  className: "flex max-w-[400px] items-center gap-2",
122
122
  children: [
@@ -129,13 +129,13 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
129
129
  title: t.name,
130
130
  children: t.name
131
131
  }),
132
- !k && !V && /*#__PURE__*/ z("button", {
132
+ !D && !V && /*#__PURE__*/ z("button", {
133
133
  type: "button",
134
- onClick: E,
135
- title: x ? a._({ id: "PiH3UR" }) : a._({ id: "NQU1Nn" }),
134
+ onClick: C,
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__*/ z(g, {
138
- icon: x ? "checkCircle" : "contentCopy",
137
+ children: /*#__PURE__*/ z(_, {
138
+ icon: b ? "checkCircle" : "contentCopy",
139
139
  size: "16"
140
140
  })
141
141
  })
@@ -143,13 +143,13 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
143
143
  }),
144
144
  open: e,
145
145
  onCancel: P,
146
- confirmButtonLabel: V ? void 0 : a._({ id: "N2S1rs" }),
146
+ confirmButtonLabel: V ? void 0 : c._({ id: "N2S1rs" }),
147
147
  confirmButtonVariant: "primary-danger",
148
148
  onConfirm: V ? void 0 : te,
149
- cancelButtonLabel: V ? void 0 : a._({ id: "dEgA5A" }),
150
- modalFooter: V ? /*#__PURE__*/ z(b, {
149
+ cancelButtonLabel: V ? void 0 : c._({ id: "dEgA5A" }),
150
+ modalFooter: V ? /*#__PURE__*/ z(v, {
151
151
  className: "flex justify-end",
152
- children: /*#__PURE__*/ z(y, { children: /*#__PURE__*/ z(m, {
152
+ children: /*#__PURE__*/ z(k, { children: /*#__PURE__*/ z(j, {
153
153
  variant: "primary",
154
154
  onClick: P,
155
155
  "data-testid": "empty-info-close-button",
@@ -157,7 +157,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
157
157
  }) })
158
158
  }) : void 0,
159
159
  size: "small",
160
- disableConfirmButton: k || N.isPending || !V && !p.trim() || !V && p.trim() !== t.name,
160
+ disableConfirmButton: D || N.isPending || !V && !m.trim() || !V && m.trim() !== t.name,
161
161
  children: [A && /*#__PURE__*/ z("p", {
162
162
  className: "text-theme-error mb-4",
163
163
  children: (() => {
@@ -167,16 +167,16 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
167
167
  values: { errorMessage: e }
168
168
  });
169
169
  })()
170
- }), k ? /*#__PURE__*/ B(f, {
170
+ }), D ? /*#__PURE__*/ B(O, {
171
171
  direction: "horizontal",
172
172
  alignment: "center",
173
173
  gap: "2",
174
174
  className: "py-4",
175
- children: [/*#__PURE__*/ z(u, { size: "small" }), /*#__PURE__*/ z(W, { id: "ujK/QN" })]
175
+ children: [/*#__PURE__*/ z(s, { size: "small" }), /*#__PURE__*/ z(W, { id: "ujK/QN" })]
176
176
  }) : V && !A ? /*#__PURE__*/ z("p", {
177
177
  className: "text-theme-default py-2",
178
178
  children: ne ? /*#__PURE__*/ z(W, { id: "jNm/qL" }) : /*#__PURE__*/ z(W, { id: "WefafP" })
179
- }) : A ? null : /*#__PURE__*/ B(f, {
179
+ }) : A ? null : /*#__PURE__*/ B(O, {
180
180
  direction: "vertical",
181
181
  gap: "6",
182
182
  children: [
@@ -211,41 +211,41 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
211
211
  });
212
212
  })()
213
213
  }),
214
- /*#__PURE__*/ z(w, {
214
+ /*#__PURE__*/ z(u, {
215
215
  columns: 3,
216
216
  className: "text-sm",
217
- children: /*#__PURE__*/ B(c, { children: [
218
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "6YtxFj" }) }),
219
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "Cj2Gtd" }) }),
220
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "sjMCOP" }) })
217
+ children: /*#__PURE__*/ B(i, { children: [
218
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "6YtxFj" }) }),
219
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "Cj2Gtd" }) }),
220
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "sjMCOP" }) })
221
221
  ] })
222
222
  }),
223
223
  /*#__PURE__*/ z("div", {
224
224
  className: "max-h-48 overflow-y-auto",
225
- children: /*#__PURE__*/ z(w, {
225
+ children: /*#__PURE__*/ z(u, {
226
226
  columns: 3,
227
227
  className: "text-sm",
228
- children: O.map((e) => /*#__PURE__*/ B(c, { children: [
228
+ children: E.map((e) => /*#__PURE__*/ B(i, { children: [
229
229
  /*#__PURE__*/ z(o, {
230
230
  className: "max-w-[200px] truncate",
231
231
  title: e.name,
232
232
  children: e.name
233
233
  }),
234
234
  /*#__PURE__*/ z(o, { children: F(e.bytes) }),
235
- /*#__PURE__*/ z(o, { children: e.last_modified ? new Date(e.last_modified).toLocaleString() : a._({ id: "fj5byd" }) })
235
+ /*#__PURE__*/ z(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__*/ z(C, {
242
- label: a._({ id: "33F2A+" }),
241
+ /*#__PURE__*/ z(f, {
242
+ label: c._({ id: "33F2A+" }),
243
243
  required: !0,
244
- value: p,
244
+ value: m,
245
245
  onChange: ee,
246
246
  onKeyDown: L,
247
- invalid: !!_,
248
- errortext: _ || void 0,
247
+ invalid: !!g,
248
+ errortext: g || void 0,
249
249
  disabled: N.isPending,
250
250
  autoFocus: !0,
251
251
  placeholder: t.name
@@ -254,41 +254,41 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
254
254
  })]
255
255
  });
256
256
  }, le = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) => {
257
- let { i18n: a, _: o } = G(), s = I(), [c, l] = H(""), [d, p] = H(null), [h, g] = H(!1), _ = M.useUtils(), { data: v, isLoading: x, error: S } = M.storage.swift.listObjects.useQuery({
258
- project_id: s,
257
+ let { i18n: a, _: o } = G(), c = I(), [l, u] = H(""), [d, p] = H(null), [m, h] = H(!1), g = M.useUtils(), { data: _, isLoading: y, error: x } = M.storage.swift.listObjects.useQuery({
258
+ project_id: c,
259
259
  container: t?.name ?? "",
260
260
  format: "json",
261
261
  limit: 1
262
- }, { enabled: e && t !== null }), { data: w, error: T } = M.storage.swift.getContainerMetadata.useQuery({
263
- project_id: s,
262
+ }, { enabled: e && t !== null }), { data: S, error: C } = M.storage.swift.getContainerMetadata.useQuery({
263
+ project_id: c,
264
264
  container: t?.name ?? ""
265
- }, { enabled: e && t !== null }), D = !!(w?.versionsEnabled || w?.versionsLocation || w?.historyLocation), O = M.storage.swift.deleteContainer.useMutation({
265
+ }, { enabled: e && t !== null }), T = !!(S?.versionsEnabled || S?.versionsLocation || S?.historyLocation), E = M.storage.swift.deleteContainer.useMutation({
266
266
  onSuccess: () => {
267
- _.storage.swift.listContainers.invalidate(), r?.(t.name);
267
+ g.storage.swift.listContainers.invalidate(), r?.(t.name);
268
268
  },
269
269
  onError: (e) => {
270
270
  i?.(t.name, e.message);
271
271
  },
272
272
  onSettled: () => {
273
- k();
273
+ D();
274
274
  }
275
275
  });
276
276
  ie(() => {
277
- e || (l(""), p(null), g(!1), O.reset());
277
+ e || (u(""), p(null), h(!1), E.reset());
278
278
  }, [e, t?.name]);
279
- let k = () => {
280
- l(""), p(null), g(!1), O.reset(), n();
279
+ let D = () => {
280
+ u(""), p(null), h(!1), E.reset(), n();
281
281
  }, A = (e) => {
282
282
  let t = e.target.value;
283
- l(t), d && p(null);
283
+ u(t), d && p(null);
284
284
  }, N = () => {
285
- if (t && !(S || T)) {
286
- if (c.trim() !== "delete") {
285
+ if (t && !(x || C)) {
286
+ if (l.trim() !== "delete") {
287
287
  p(a._({ id: "b5aNMO" }));
288
288
  return;
289
289
  }
290
- D && !h || O.mutate({
291
- project_id: s,
290
+ T && !m || E.mutate({
291
+ project_id: c,
292
292
  container: t.name
293
293
  });
294
294
  }
@@ -296,8 +296,8 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
296
296
  e.key === "Enter" && N();
297
297
  };
298
298
  if (!e || !t) return null;
299
- let ee = v?.length ?? 0, F = !x && (ee > 0 || t.count > 0), te = !x && t.count > 0 && ee === 0, L = !!(S || T);
300
- return /*#__PURE__*/ B(j, {
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__*/ B(w, {
301
301
  title: /* @__PURE__ */ B("span", {
302
302
  className: "flex max-w-[400px] items-center gap-2",
303
303
  children: [/*#__PURE__*/ z("span", {
@@ -310,54 +310,54 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
310
310
  })]
311
311
  }),
312
312
  open: e,
313
- onCancel: k,
313
+ onCancel: D,
314
314
  confirmButtonLabel: F ? void 0 : a._({ id: "cnGeoo" }),
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__*/ z(b, {
318
+ modalFooter: F ? /*#__PURE__*/ z(v, {
319
319
  className: "flex justify-end",
320
- children: /*#__PURE__*/ z(y, { children: /*#__PURE__*/ z(m, {
320
+ children: /*#__PURE__*/ z(k, { children: /*#__PURE__*/ z(j, {
321
321
  variant: "primary",
322
- onClick: k,
322
+ onClick: D,
323
323
  "data-testid": "delete-has-objects-close-button",
324
324
  children: /*#__PURE__*/ z(W, { id: "yz7wBu" })
325
325
  }) })
326
326
  }) : void 0,
327
327
  size: "small",
328
- disableConfirmButton: x || L || O.isPending || !F && c.trim() !== "delete" || !F && D && !h,
329
- children: [(S || T) && /*#__PURE__*/ B(f, {
328
+ disableConfirmButton: y || L || E.isPending || !F && l.trim() !== "delete" || !F && T && !m,
329
+ children: [(x || C) && /*#__PURE__*/ B(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: [S && /*#__PURE__*/ z("p", {
335
+ children: [x && /*#__PURE__*/ z("p", {
336
336
  className: "text-theme-error",
337
337
  children: (() => {
338
- let e = S.message;
338
+ let e = x.message;
339
339
  return /*#__PURE__*/ z(W, {
340
340
  id: "56IxdF",
341
341
  values: { errorMessage: e }
342
342
  });
343
343
  })()
344
- }), T && /*#__PURE__*/ z("p", {
344
+ }), C && /*#__PURE__*/ z("p", {
345
345
  className: "text-theme-error",
346
346
  children: (() => {
347
- let e = T.message;
347
+ let e = C.message;
348
348
  return /*#__PURE__*/ z(W, {
349
349
  id: "BCXapL",
350
350
  values: { errorMessage: e }
351
351
  });
352
352
  })()
353
353
  })]
354
- }), x ? /*#__PURE__*/ B(f, {
354
+ }), y ? /*#__PURE__*/ B(O, {
355
355
  direction: "horizontal",
356
356
  alignment: "center",
357
357
  gap: "2",
358
358
  className: "py-4",
359
- children: [/*#__PURE__*/ z(u, { size: "small" }), /*#__PURE__*/ z(W, { id: "Z3FXyt" })]
360
- }) : F ? /*#__PURE__*/ B(f, {
359
+ children: [/*#__PURE__*/ z(s, { size: "small" }), /*#__PURE__*/ z(W, { id: "Z3FXyt" })]
360
+ }) : F ? /*#__PURE__*/ B(O, {
361
361
  direction: "vertical",
362
362
  gap: "3",
363
363
  children: [/*#__PURE__*/ z("p", {
@@ -367,7 +367,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
367
367
  className: "text-theme-default",
368
368
  children: /*#__PURE__*/ z(W, { id: "x3T4pq" })
369
369
  })]
370
- }) : /*#__PURE__*/ B(f, {
370
+ }) : /*#__PURE__*/ B(O, {
371
371
  direction: "vertical",
372
372
  gap: "6",
373
373
  children: [
@@ -382,21 +382,21 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
382
382
  })
383
383
  ]
384
384
  }),
385
- D && /*#__PURE__*/ z(E, {
385
+ T && /*#__PURE__*/ z(b, {
386
386
  label: a._({ id: "V/8B9A" }),
387
- checked: h,
388
- onChange: (e) => g(e.target.checked),
389
- invalid: !h
387
+ checked: m,
388
+ onChange: (e) => h(e.target.checked),
389
+ invalid: !m
390
390
  }),
391
- /*#__PURE__*/ z(C, {
391
+ /*#__PURE__*/ z(f, {
392
392
  label: a._({ id: "QytzQr" }),
393
393
  required: !0,
394
- value: c,
394
+ value: l,
395
395
  onChange: A,
396
396
  onKeyDown: P,
397
397
  invalid: !!d,
398
398
  errortext: d || void 0,
399
- disabled: O.isPending,
399
+ disabled: E.isPending,
400
400
  autoFocus: !0,
401
401
  placeholder: a._({ id: "HNlEFZ" })
402
402
  })
@@ -410,23 +410,23 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
410
410
  "web-listings",
411
411
  "web-listings-css",
412
412
  "web-error"
413
- ]), de = 50, fe = /^[a-zA-Z0-9!#$%&'*+\-.^_`|~]+$/, Y = ({ isOpen: e, container: r, onClose: i, onSuccess: a, onError: l }) => {
414
- let { i18n: d, _: p } = G(), h = I(), { data: _, isLoading: y, isError: b, error: x } = M.storage.swift.getContainerMetadata.useQuery({
413
+ ]), de = 50, fe = /^[a-zA-Z0-9!#$%&'*+\-.^_`|~]+$/, Y = ({ isOpen: t, container: n, onClose: r, onSuccess: a, onError: l }) => {
414
+ let { i18n: p, _: m } = G(), h = I(), { data: g, isLoading: v, isError: x, error: C } = M.storage.swift.getContainerMetadata.useQuery({
415
415
  project_id: h,
416
- container: r?.name ?? ""
417
- }, { enabled: e && r !== null }), S = _?.read === ".r:*,.rlistings", { data: D } = M.storage.swift.getContainerPublicUrl.useQuery({
416
+ container: n?.name ?? ""
417
+ }, { enabled: t && n !== null }), T = g?.read === ".r:*,.rlistings", { data: D } = M.storage.swift.getContainerPublicUrl.useQuery({
418
418
  project_id: h,
419
- container: r?.name ?? ""
420
- }, { enabled: e && r !== null && S }), { data: O } = M.storage.swift.listContainers.useQuery({ project_id: h }, { enabled: e }), [A, N] = H(""), [P, ee] = H(""), F = ae(null), te = V((e) => {
419
+ container: n?.name ?? ""
420
+ }, { enabled: t && n !== null && T }), { data: k } = M.storage.swift.listContainers.useQuery({ project_id: h }, { enabled: t }), [A, N] = H(""), [P, ee] = H(""), F = ae(null), te = V((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 ? (O ?? []).filter((e) => e.name !== r?.name && e.name.toLowerCase().includes(P.toLowerCase())) : [], R = L.slice(0, de), ne = L.length - R.length, re = M.useUtils(), [U, oe] = H(""), [K, se] = H(null), [q, ce] = H(""), [J, le] = H(null), [Y, pe] = H(""), [me, he] = H(!1), [ge, _e] = H(!1), [ve, ye] = H(""), [X, Z] = H([]), [be, xe] = H({}), [Q, Se] = H(!1), [Ce, we] = H(""), [Te, Ee] = H(""), [De, Oe] = H(null), [ke, Ae] = H(null);
423
+ }, []), L = P.trim().length > 0 ? (k ?? []).filter((e) => e.name !== n?.name && e.name.toLowerCase().includes(P.toLowerCase())) : [], R = L.slice(0, de), ne = L.length - R.length, re = M.useUtils(), [U, oe] = H(""), [K, se] = H(null), [q, ce] = H(""), [J, le] = H(null), [Y, pe] = H(""), [me, he] = H(!1), [ge, _e] = H(!1), [ve, ye] = H(""), [X, Z] = H([]), [be, xe] = H({}), [Q, Se] = H(!1), [Ce, we] = H(""), [Te, Ee] = H(""), [De, Oe] = H(null), [ke, Ae] = H(null);
424
424
  ie(() => {
425
- if (!_) return;
426
- oe(_.quotaBytes == null ? "" : String(_.quotaBytes)), ce(_.quotaCount == null ? "" : String(_.quotaCount)), _e(!!(_.versionsEnabled || _.versionsLocation || _.historyLocation)), ye(_.versionsLocation || _.historyLocation || "");
427
- let e = _.metadata ?? {};
425
+ if (!g) return;
426
+ oe(g.quotaBytes == null ? "" : String(g.quotaBytes)), ce(g.quotaCount == null ? "" : String(g.quotaCount)), _e(!!(g.versionsEnabled || g.versionsLocation || g.historyLocation)), ye(g.versionsLocation || g.historyLocation || "");
427
+ let e = g.metadata ?? {};
428
428
  pe(e["web-index"] ?? ""), he(e["web-listings"] === "1" || e["web-listings"] === "true");
429
- let t = _.metadata ?? {};
429
+ let t = g.metadata ?? {};
430
430
  Z(Object.entries(t).filter(([e]) => !ue.has(e)).map(([e, t]) => ({
431
431
  key: e,
432
432
  value: t,
@@ -435,29 +435,29 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
435
435
  originalKey: e,
436
436
  originalValue: t
437
437
  })));
438
- }, [_]), ie(() => {
439
- e || je();
440
- }, [e]);
438
+ }, [g]), ie(() => {
439
+ t || je();
440
+ }, [t]);
441
441
  let je = () => {
442
442
  oe(""), se(null), ce(""), le(null), pe(""), he(!1), _e(!1), ye(""), N(""), ee(""), F.current && clearTimeout(F.current), Z([]), xe({}), Se(!1), we(""), Ee(""), Oe(null), Ae(null), Me.reset();
443
443
  }, Me = M.storage.swift.updateContainerMetadata.useMutation({
444
444
  onSuccess: () => {
445
- re.storage.swift.getContainerMetadata.invalidate({ container: r.name }), re.storage.swift.listContainers.invalidate(), a?.(r.name), Ue();
445
+ re.storage.swift.getContainerMetadata.invalidate({ container: n.name }), re.storage.swift.listContainers.invalidate(), a?.(n.name), Ue();
446
446
  },
447
447
  onError: (e) => {
448
- l?.(r.name, e.message);
448
+ l?.(n.name, e.message);
449
449
  }
450
450
  }), $ = () => {
451
451
  let e = !0;
452
- return U !== "" && (isNaN(Number(U)) || Number(U) < 0) ? (se(d._({ id: "AuQtzx" })), e = !1) : se(null), q !== "" && (isNaN(Number(q)) || Number(q) < 0) ? (le(d._({ id: "AuQtzx" })), e = !1) : le(null), e;
453
- }, Ne = (e, t) => e.trim() ? fe.test(e) ? /[a-zA-Z0-9]/.test(e) ? ue.has(e.toLowerCase()) ? d._({ id: "JeRXll" }) : X.some((n) => n.key.toLowerCase() === e.toLowerCase() && n.originalKey !== t) ? d._({ id: "i6/ygf" }) : null : d._({ id: "dTNzBI" }) : d._({ id: "XYZLy9" }) : d._({ id: "QV1ZPO" }), Pe = () => {
452
+ return U !== "" && (isNaN(Number(U)) || Number(U) < 0) ? (se(p._({ id: "AuQtzx" })), e = !1) : se(null), q !== "" && (isNaN(Number(q)) || Number(q) < 0) ? (le(p._({ id: "AuQtzx" })), e = !1) : le(null), e;
453
+ }, Ne = (e, t) => e.trim() ? fe.test(e) ? /[a-zA-Z0-9]/.test(e) ? ue.has(e.toLowerCase()) ? p._({ id: "JeRXll" }) : X.some((n) => n.key.toLowerCase() === e.toLowerCase() && n.originalKey !== t) ? p._({ id: "i6/ygf" }) : null : p._({ id: "dTNzBI" }) : p._({ id: "XYZLy9" }) : p._({ id: "QV1ZPO" }), Pe = () => {
454
454
  let e = Ne(Ce);
455
455
  if (e) {
456
456
  Oe(e);
457
457
  return;
458
458
  }
459
459
  if (!Te.trim()) {
460
- Ae(d._({ id: "hXUWyd" }));
460
+ Ae(p._({ id: "hXUWyd" }));
461
461
  return;
462
462
  }
463
463
  Z([...X, {
@@ -483,7 +483,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
483
483
  return;
484
484
  }
485
485
  if (!t.value.trim()) {
486
- xe({ [`edit-${e}`]: d._({ id: "hXUWyd" }) });
486
+ xe({ [`edit-${e}`]: p._({ id: "hXUWyd" }) });
487
487
  return;
488
488
  }
489
489
  Z(X.map((t, n) => n === e ? {
@@ -518,32 +518,32 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
518
518
  return delete n[`edit-${e}`], n;
519
519
  });
520
520
  }, He = () => {
521
- if (!r || !$()) return;
522
- let e = _?.metadata ?? {}, t = {}, n = [];
521
+ if (!n || !$()) return;
522
+ let e = g?.metadata ?? {}, t = {}, r = [];
523
523
  X.forEach((e) => {
524
- (e.isNew || e.value !== e.originalValue || e.key !== e.originalKey) && (t[e.key] = e.value, !e.isNew && e.originalKey && e.key !== e.originalKey && n.push(e.originalKey));
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
526
  let i = Object.keys(e).filter((e) => !ue.has(e)), a = X.map((e) => e.originalKey).filter(Boolean);
527
527
  i.forEach((e) => {
528
- !a.includes(e) && !n.includes(e) && n.push(e);
529
- }), S && (Y ? t["web-index"] = Y : _?.metadata?.["web-index"] && n.push("web-index"), me ? t["web-listings"] = "1" : _?.metadata?.["web-listings"] && n.push("web-listings"));
530
- let o = !!(_?.versionsEnabled || _?.versionsLocation || _?.historyLocation), s = _?.versionsLocation || _?.historyLocation || "";
528
+ !a.includes(e) && !r.includes(e) && r.push(e);
529
+ }), T && (Y ? t["web-index"] = Y : g?.metadata?.["web-index"] && r.push("web-index"), me ? t["web-listings"] = "1" : g?.metadata?.["web-listings"] && r.push("web-listings"));
530
+ let o = !!(g?.versionsEnabled || g?.versionsLocation || g?.historyLocation), s = g?.versionsLocation || g?.historyLocation || "";
531
531
  Me.mutate({
532
532
  project_id: h,
533
- container: r.name,
533
+ container: n.name,
534
534
  metadata: t,
535
- removeMetadata: n.length ? n : void 0,
535
+ removeMetadata: r.length ? r : void 0,
536
536
  quotaBytes: U === "" ? void 0 : Number(U),
537
537
  quotaCount: q === "" ? void 0 : Number(q),
538
538
  versionsLocation: ge && (!o || ve !== s) && ve ? ve : void 0,
539
539
  removeVersionsLocation: !ge && o ? !0 : void 0
540
540
  });
541
541
  }, Ue = () => {
542
- je(), i();
542
+ je(), r();
543
543
  };
544
- if (!e || !r) return null;
545
- let We = y || Me.isPending, Ge = b && !y, Ke = X.some((e) => e.isEditing), qe = _?.quotaBytes == null ? "" : String(_.quotaBytes), Je = _?.quotaCount == null ? "" : String(_.quotaCount), Ye = !!_?.versionsEnabled, Xe = _?.versionsLocation || _?.historyLocation || "", Ze = _?.metadata?.["web-index"] ?? "", Qe = _?.metadata?.["web-listings"] === "1" || _?.metadata?.["web-listings"] === "true", $e = Object.keys(_?.metadata ?? {}).filter((e) => !ue.has(e)), et = X.length === $e.length && X.every((e) => !e.isNew && e.key === e.originalKey && e.value === e.originalValue), tt = U === qe && q === Je && ge === Ye && ve === Xe && Y === Ze && me === Qe && et, nt = _?.quotaBytes == null ? null : `${_.quotaBytes} B`;
546
- return /*#__PURE__*/ B(j, {
544
+ if (!t || !n) return null;
545
+ let We = v || Me.isPending, Ge = x && !v, Ke = X.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) => !ue.has(e)), et = X.length === $e.length && X.every((e) => !e.isNew && e.key === e.originalKey && e.value === e.originalValue), tt = U === qe && q === Je && ge === Ye && ve === Xe && Y === Ze && me === Qe && et, nt = g?.quotaBytes == null ? null : `${g.quotaBytes} B`;
546
+ return /*#__PURE__*/ B(w, {
547
547
  title: /*#__PURE__*/ B("span", {
548
548
  className: "flex max-w-[500px] items-center gap-2",
549
549
  children: [/*#__PURE__*/ z("span", {
@@ -551,15 +551,15 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
551
551
  children: /*#__PURE__*/ z(W, { id: "y02Bu1" })
552
552
  }), /*#__PURE__*/ z("span", {
553
553
  className: "truncate",
554
- title: r.name,
555
- children: r.name
554
+ title: n.name,
555
+ children: n.name
556
556
  })]
557
557
  }),
558
- open: e,
558
+ open: t,
559
559
  onCancel: Ue,
560
- confirmButtonLabel: d._({ id: "tfDRzk" }),
560
+ confirmButtonLabel: p._({ id: "tfDRzk" }),
561
561
  onConfirm: He,
562
- cancelButtonLabel: d._({ id: "dEgA5A" }),
562
+ cancelButtonLabel: p._({ id: "dEgA5A" }),
563
563
  size: "large",
564
564
  disableConfirmButton: We || Q || Ke || tt || Ge,
565
565
  children: [Me.isError && /*#__PURE__*/ z("p", {
@@ -571,64 +571,64 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
571
571
  values: { errorMessage: e }
572
572
  });
573
573
  })()
574
- }), y ? /*#__PURE__*/ B(f, {
574
+ }), v ? /*#__PURE__*/ B(O, {
575
575
  direction: "horizontal",
576
576
  alignment: "center",
577
577
  gap: "2",
578
578
  className: "py-8",
579
- children: [/*#__PURE__*/ z(u, { size: "small" }), /*#__PURE__*/ z(W, { id: "WRZ3Mt" })]
579
+ children: [/*#__PURE__*/ z(s, { size: "small" }), /*#__PURE__*/ z(W, { id: "WRZ3Mt" })]
580
580
  }) : Ge ? /*#__PURE__*/ z("p", {
581
581
  className: "text-theme-error py-8 text-center",
582
582
  children: /*#__PURE__*/ z(W, {
583
583
  id: "BCXapL",
584
- values: { errorMessage: x?.message ?? "Unknown error" }
584
+ values: { errorMessage: C?.message ?? "Unknown error" }
585
585
  })
586
586
  }) : /*#__PURE__*/ z("div", {
587
587
  className: "max-h-[65vh] overflow-y-auto pr-1 pl-1",
588
- children: /*#__PURE__*/ B(f, {
588
+ children: /*#__PURE__*/ B(O, {
589
589
  direction: "vertical",
590
590
  gap: "6",
591
591
  children: [
592
592
  /*#__PURE__*/ B("div", {
593
593
  className: "grid grid-cols-2 gap-4",
594
- children: [/*#__PURE__*/ z(C, {
595
- label: d._({ id: "z45o5B" }),
596
- value: String(r.count),
594
+ children: [/*#__PURE__*/ z(f, {
595
+ label: p._({ id: "z45o5B" }),
596
+ value: String(n.count),
597
597
  disabled: !0,
598
598
  readOnly: !0
599
- }), /*#__PURE__*/ z(C, {
600
- label: d._({ id: "/InK0O" }),
601
- value: _?.bytesUsed == null ? `${r.bytes.toLocaleString()} B` : `${_.bytesUsed.toLocaleString()} B`,
599
+ }), /*#__PURE__*/ z(f, {
600
+ label: p._({ id: "/InK0O" }),
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
606
  /*#__PURE__*/ B("div", {
607
607
  className: "grid grid-cols-2 gap-4",
608
- children: [/*#__PURE__*/ z("div", { children: /*#__PURE__*/ z(C, {
609
- label: d._({ id: "k0vAWv" }),
608
+ children: [/*#__PURE__*/ z("div", { children: /*#__PURE__*/ z(f, {
609
+ label: p._({ id: "k0vAWv" }),
610
610
  value: q,
611
611
  onChange: (e) => {
612
612
  ce(e.target.value), J && le(null);
613
613
  },
614
- placeholder: d._({ id: "qtoOYG" }),
614
+ placeholder: p._({ id: "qtoOYG" }),
615
615
  invalid: !!J,
616
616
  errortext: J ?? void 0,
617
617
  disabled: We
618
- }) }), /*#__PURE__*/ z("div", { children: /*#__PURE__*/ z(C, {
619
- label: d._({ id: "KOpPMt" }),
618
+ }) }), /*#__PURE__*/ z("div", { children: /*#__PURE__*/ z(f, {
619
+ label: p._({ id: "KOpPMt" }),
620
620
  value: U,
621
621
  onChange: (e) => {
622
622
  oe(e.target.value), K && se(null);
623
623
  },
624
- placeholder: d._({ id: "qtoOYG" }),
624
+ placeholder: p._({ id: "qtoOYG" }),
625
625
  invalid: !!K,
626
626
  errortext: K ?? void 0,
627
627
  disabled: We,
628
628
  helptext: U && nt ? nt : void 0
629
629
  }) })]
630
630
  }),
631
- S && D && /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ B("p", {
631
+ T && D && /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ B("p", {
632
632
  className: "text-theme-default mb-1 text-sm font-semibold",
633
633
  children: [
634
634
  /*#__PURE__*/ z(W, { id: "mvz5Eo" }),
@@ -641,7 +641,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
641
641
  children: /*#__PURE__*/ z(W, { id: "Alx2/L" })
642
642
  })
643
643
  ]
644
- }), /*#__PURE__*/ z(C, {
644
+ }), /*#__PURE__*/ z(f, {
645
645
  value: D,
646
646
  disabled: !0,
647
647
  readOnly: !0
@@ -649,14 +649,14 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
649
649
  /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z("p", {
650
650
  className: "text-theme-default mb-3 text-sm font-semibold",
651
651
  children: /*#__PURE__*/ z(W, { id: "6CDYXS" })
652
- }), S ? /*#__PURE__*/ B(f, {
652
+ }), T ? /*#__PURE__*/ B(O, {
653
653
  direction: "vertical",
654
654
  gap: "4",
655
- children: [/*#__PURE__*/ B(f, {
655
+ children: [/*#__PURE__*/ B(O, {
656
656
  direction: "vertical",
657
657
  gap: "1",
658
- children: [/*#__PURE__*/ z(E, {
659
- label: d._({ id: "6+7EwD" }),
658
+ children: [/*#__PURE__*/ z(b, {
659
+ label: p._({ id: "6+7EwD" }),
660
660
  checked: !!Y,
661
661
  onChange: (e) => {
662
662
  e.target.checked ? Y || pe("index.html") : pe("");
@@ -664,7 +664,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
664
664
  disabled: We
665
665
  }), /*#__PURE__*/ z("div", {
666
666
  className: "pl-6",
667
- children: /*#__PURE__*/ z(C, {
667
+ children: /*#__PURE__*/ z(f, {
668
668
  value: Y,
669
669
  onChange: (e) => pe(e.target.value),
670
670
  placeholder: "index.html",
@@ -672,22 +672,22 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
672
672
  className: "flex-1"
673
673
  })
674
674
  })]
675
- }), /*#__PURE__*/ B(f, {
675
+ }), /*#__PURE__*/ B(O, {
676
676
  direction: "horizontal",
677
677
  alignment: "start",
678
678
  gap: "2",
679
- children: [/*#__PURE__*/ z(E, {
680
- label: d._({ id: "NeUjqc" }),
679
+ children: [/*#__PURE__*/ z(b, {
680
+ label: p._({ id: "NeUjqc" }),
681
681
  checked: me,
682
682
  onChange: (e) => he(e.target.checked),
683
683
  disabled: We
684
- }), /*#__PURE__*/ B(t, {
684
+ }), /*#__PURE__*/ B(S, {
685
685
  triggerEvent: "hover",
686
- children: [/*#__PURE__*/ z(T, { children: /*#__PURE__*/ z(g, {
686
+ children: [/*#__PURE__*/ z(E, { children: /*#__PURE__*/ z(_, {
687
687
  icon: "help",
688
688
  size: "16",
689
689
  className: "text-theme-light cursor-help"
690
- }) }), /*#__PURE__*/ z(n, {
690
+ }) }), /*#__PURE__*/ z(y, {
691
691
  className: "z-10 max-w-[220px]",
692
692
  children: /*#__PURE__*/ z(W, { id: "Oxl1UN" })
693
693
  })]
@@ -703,23 +703,23 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
703
703
  /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z("p", {
704
704
  className: "text-theme-default mb-2 text-sm font-semibold",
705
705
  children: /*#__PURE__*/ z(W, { id: "jNzyQo" })
706
- }), Ye && !ve ? /*#__PURE__*/ z(E, {
707
- label: d._({ id: "Nvfd2b" }),
706
+ }), Ye && !ve ? /*#__PURE__*/ z(b, {
707
+ label: p._({ id: "Nvfd2b" }),
708
708
  checked: !0,
709
709
  onChange: (e) => {
710
710
  e.target.checked || (_e(!1), ye(""), N(""), ee(""));
711
711
  },
712
712
  disabled: !0
713
- }) : !ge && !ve ? /*#__PURE__*/ z(E, {
714
- label: d._({ id: "WyKwnD" }),
713
+ }) : !ge && !ve ? /*#__PURE__*/ z(b, {
714
+ label: p._({ id: "WyKwnD" }),
715
715
  checked: !1,
716
716
  onChange: (e) => _e(e.target.checked),
717
717
  disabled: We
718
- }) : /*#__PURE__*/ B(f, {
718
+ }) : /*#__PURE__*/ B(O, {
719
719
  direction: "vertical",
720
720
  gap: "1",
721
- children: [/*#__PURE__*/ z(E, {
722
- label: d._({ id: "b0uU1G" }),
721
+ children: [/*#__PURE__*/ z(b, {
722
+ label: p._({ id: "b0uU1G" }),
723
723
  checked: ge,
724
724
  onChange: (e) => {
725
725
  _e(e.target.checked), e.target.checked || (ye(""), N(""), ee(""));
@@ -727,16 +727,16 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
727
727
  disabled: We
728
728
  }), ge && /*#__PURE__*/ z("div", {
729
729
  className: "pl-6",
730
- children: /*#__PURE__*/ z(v, {
730
+ children: /*#__PURE__*/ z(e, {
731
731
  value: ve,
732
732
  onChange: (e) => ye(e),
733
733
  onInputChange: te,
734
- placeholder: d._({ id: "a13wDR" }),
734
+ placeholder: p._({ id: "a13wDR" }),
735
735
  helptext: (() => {
736
- if (A.trim().length === 0) return d._({ id: "c+fUtV" });
736
+ if (A.trim().length === 0) return p._({ id: "c+fUtV" });
737
737
  if (ne > 0) {
738
738
  let e = de, t = L.length;
739
- return d._({
739
+ return p._({
740
740
  id: "qzhUb9",
741
741
  values: {
742
742
  maxOptions: e,
@@ -746,7 +746,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
746
746
  }
747
747
  })(),
748
748
  disabled: We,
749
- children: R.map((e) => /*#__PURE__*/ z(k, {
749
+ children: R.map((e) => /*#__PURE__*/ z(c, {
750
750
  value: e.name,
751
751
  children: e.name
752
752
  }, e.name))
@@ -754,7 +754,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
754
754
  })]
755
755
  })] }),
756
756
  /*#__PURE__*/ B("div", { children: [
757
- /*#__PURE__*/ B(f, {
757
+ /*#__PURE__*/ B(O, {
758
758
  direction: "horizontal",
759
759
  alignment: "center",
760
760
  distribution: "between",
@@ -767,11 +767,11 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
767
767
  children: /*#__PURE__*/ z(W, { id: "kuYWaD" })
768
768
  })]
769
769
  }),
770
- /*#__PURE__*/ z(f, {
770
+ /*#__PURE__*/ z(O, {
771
771
  direction: "horizontal",
772
772
  className: "jn:bg-theme-background-lvl-1 justify-end p-2",
773
- children: /*#__PURE__*/ z(m, {
774
- label: d._({ id: "sWBLli" }),
773
+ children: /*#__PURE__*/ z(j, {
774
+ label: p._({ id: "sWBLli" }),
775
775
  onClick: () => Se(!0),
776
776
  variant: "primary",
777
777
  icon: "addCircle",
@@ -779,54 +779,54 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
779
779
  disabled: Q || Ke || We
780
780
  })
781
781
  }),
782
- /*#__PURE__*/ B(w, {
782
+ /*#__PURE__*/ B(u, {
783
783
  columns: 3,
784
784
  children: [
785
- /*#__PURE__*/ B(c, { children: [
786
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "7sMeHQ" }) }),
787
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "wMHvYH" }) }),
788
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "7L01XJ" }) })
785
+ /*#__PURE__*/ B(i, { children: [
786
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "7sMeHQ" }) }),
787
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "wMHvYH" }) }),
788
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "7L01XJ" }) })
789
789
  ] }),
790
- Q && /*#__PURE__*/ B(c, { children: [
791
- /*#__PURE__*/ z(o, { children: /*#__PURE__*/ z(C, {
790
+ Q && /*#__PURE__*/ B(i, { children: [
791
+ /*#__PURE__*/ z(o, { children: /*#__PURE__*/ z(f, {
792
792
  value: Ce,
793
793
  onChange: (e) => {
794
794
  we(e.target.value), De && Oe(null);
795
795
  },
796
- placeholder: d._({ id: "x9AdZ8" }),
796
+ placeholder: p._({ id: "x9AdZ8" }),
797
797
  errortext: De ?? void 0,
798
798
  invalid: !!De,
799
799
  autoFocus: !0
800
800
  }) }),
801
- /*#__PURE__*/ z(o, { children: /*#__PURE__*/ z(C, {
801
+ /*#__PURE__*/ z(o, { children: /*#__PURE__*/ z(f, {
802
802
  value: Te,
803
803
  onChange: (e) => {
804
804
  Ee(e.target.value), ke && Ae(null);
805
805
  },
806
- placeholder: d._({ id: "wMHvYH" }),
806
+ placeholder: p._({ id: "wMHvYH" }),
807
807
  errortext: ke ?? void 0,
808
808
  invalid: !!ke
809
809
  }) }),
810
- /*#__PURE__*/ z(o, { children: /*#__PURE__*/ B(f, {
810
+ /*#__PURE__*/ z(o, { children: /*#__PURE__*/ B(O, {
811
811
  direction: "horizontal",
812
812
  gap: "2",
813
- children: [/*#__PURE__*/ z(m, {
813
+ children: [/*#__PURE__*/ z(j, {
814
814
  size: "small",
815
815
  variant: "primary",
816
816
  onClick: Pe,
817
817
  icon: "check",
818
- title: d._({ id: "tfDRzk" })
819
- }), /*#__PURE__*/ z(m, {
818
+ title: p._({ id: "tfDRzk" })
819
+ }), /*#__PURE__*/ z(j, {
820
820
  size: "small",
821
821
  variant: "subdued",
822
822
  onClick: Fe,
823
823
  icon: "close",
824
- title: d._({ id: "bzSI52" })
824
+ title: p._({ id: "bzSI52" })
825
825
  })]
826
826
  }) })
827
827
  ] }),
828
- X.map((e, t) => /*#__PURE__*/ B(c, { children: [
829
- /*#__PURE__*/ z(o, { children: e.isEditing ? /*#__PURE__*/ z(C, {
828
+ X.map((e, t) => /*#__PURE__*/ B(i, { children: [
829
+ /*#__PURE__*/ z(o, { children: e.isEditing ? /*#__PURE__*/ z(f, {
830
830
  value: e.key,
831
831
  onChange: (e) => Be(t, e.target.value),
832
832
  errortext: be[`edit-${t}`],
@@ -836,7 +836,7 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
836
836
  title: e.key,
837
837
  children: e.key
838
838
  }) }),
839
- /*#__PURE__*/ z(o, { children: e.isEditing ? /*#__PURE__*/ z(C, {
839
+ /*#__PURE__*/ z(o, { children: e.isEditing ? /*#__PURE__*/ z(f, {
840
840
  value: e.value,
841
841
  onChange: (e) => Ve(t, e.target.value)
842
842
  }) : /*#__PURE__*/ z("span", {
@@ -844,46 +844,46 @@ var ce = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLen
844
844
  title: e.value,
845
845
  children: e.value
846
846
  }) }),
847
- /*#__PURE__*/ z(o, { children: e.isEditing ? /*#__PURE__*/ B(f, {
847
+ /*#__PURE__*/ z(o, { children: e.isEditing ? /*#__PURE__*/ B(O, {
848
848
  direction: "horizontal",
849
849
  gap: "2",
850
- children: [/*#__PURE__*/ z(m, {
850
+ children: [/*#__PURE__*/ z(j, {
851
851
  size: "small",
852
852
  variant: "primary",
853
853
  onClick: () => Le(t),
854
854
  icon: "check",
855
- title: d._({ id: "tfDRzk" })
856
- }), /*#__PURE__*/ z(m, {
855
+ title: p._({ id: "tfDRzk" })
856
+ }), /*#__PURE__*/ z(j, {
857
857
  size: "small",
858
858
  variant: "subdued",
859
859
  onClick: () => Re(t),
860
860
  icon: "close",
861
- title: d._({ id: "bzSI52" })
861
+ title: p._({ id: "bzSI52" })
862
862
  })]
863
- }) : /*#__PURE__*/ B(f, {
863
+ }) : /*#__PURE__*/ B(O, {
864
864
  direction: "horizontal",
865
865
  gap: "2",
866
- children: [/*#__PURE__*/ z(m, {
866
+ children: [/*#__PURE__*/ z(j, {
867
867
  size: "small",
868
868
  variant: "subdued",
869
869
  onClick: () => Ie(t),
870
870
  icon: "edit",
871
- title: d._({ id: "ePK91l" }),
871
+ title: p._({ id: "ePK91l" }),
872
872
  disabled: Q || Ke || We
873
- }), /*#__PURE__*/ z(m, {
873
+ }), /*#__PURE__*/ z(j, {
874
874
  size: "small",
875
875
  variant: "primary-danger",
876
876
  onClick: () => ze(t),
877
877
  icon: "deleteForever",
878
- title: d._({ id: "cnGeoo" }),
878
+ title: p._({ id: "cnGeoo" }),
879
879
  disabled: Q || Ke || We
880
880
  })]
881
881
  }) })
882
882
  ] }, t)),
883
- X.length === 0 && !Q && /*#__PURE__*/ z(c, { children: /*#__PURE__*/ z(o, {
883
+ X.length === 0 && !Q && /*#__PURE__*/ z(i, { children: /*#__PURE__*/ z(o, {
884
884
  colSpan: 3,
885
885
  className: "py-6 text-center",
886
- children: /*#__PURE__*/ z(f, {
886
+ children: /*#__PURE__*/ z(O, {
887
887
  alignment: "center",
888
888
  children: /*#__PURE__*/ z("span", {
889
889
  className: "text-theme-light text-sm",
@@ -1020,55 +1020,55 @@ function ye(e) {
1020
1020
  default: return e.raw;
1021
1021
  }
1022
1022
  }
1023
- var X = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
1024
- let { i18n: o, _: s } = G(), c = I(), [l, h] = H(""), [g, _] = H(""), [v, y] = H(!1), [b, x] = H(!1);
1023
+ var X = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: c }) => {
1024
+ let { i18n: l, _: u } = G(), d = I(), [f, p] = H(""), [m, h] = H(""), [_, v] = H(!1), [y, x] = H(!1);
1025
1025
  ie(() => {
1026
- !l.trim() && !g.trim() && x(!1);
1027
- }, [l, g]);
1028
- let { data: S, isLoading: C, isError: w, error: T } = M.storage.swift.getContainerMetadata.useQuery({
1029
- project_id: c,
1026
+ !f.trim() && !m.trim() && x(!1);
1027
+ }, [f, m]);
1028
+ let { data: S, isLoading: T, isError: E, error: D } = M.storage.swift.getContainerMetadata.useQuery({
1029
+ project_id: d,
1030
1030
  container: t?.name ?? ""
1031
1031
  }, { enabled: e && t !== null });
1032
1032
  ie(() => {
1033
1033
  if (!S) return;
1034
1034
  let e = S.read ?? "", t = S.write ?? "";
1035
- h(e), _(t), y(ge(e));
1035
+ p(e), h(t), v(ge(e));
1036
1036
  }, [S]);
1037
1037
  let k = M.useUtils(), A = M.storage.swift.updateContainerMetadata.useMutation({
1038
1038
  onSuccess: () => {
1039
1039
  k.storage.swift.getContainerMetadata.invalidate({
1040
- project_id: c,
1040
+ project_id: d,
1041
1041
  container: t.name
1042
- }), k.storage.swift.listContainers.invalidate(), r?.(t.name), P();
1042
+ }), k.storage.swift.listContainers.invalidate(), o?.(t.name), P();
1043
1043
  },
1044
1044
  onError: (e) => {
1045
- a?.(t.name, e.message);
1045
+ c?.(t.name, e.message);
1046
1046
  }
1047
1047
  }), N = ae(A.reset);
1048
1048
  N.current = A.reset;
1049
1049
  let P = () => {
1050
- h(""), _(""), y(!1), x(!1), A.reset(), n();
1050
+ p(""), h(""), v(!1), x(!1), A.reset(), i();
1051
1051
  };
1052
1052
  ie(() => {
1053
- e || (h(""), _(""), y(!1), N.current());
1053
+ e || (p(""), h(""), v(!1), N.current());
1054
1054
  }, [e]);
1055
1055
  let ee = (e) => {
1056
1056
  let t = e.target.checked;
1057
- y(t), h((e) => t ? _e(e) : ve(e));
1057
+ v(t), p((e) => t ? _e(e) : ve(e));
1058
1058
  }, F = (e) => {
1059
1059
  let t = e.target.value;
1060
- h(t), y(ge(t));
1060
+ p(t), v(ge(t));
1061
1061
  }, te = () => {
1062
1062
  t && A.mutate({
1063
- project_id: c,
1063
+ project_id: d,
1064
1064
  container: t.name,
1065
- read: l.trim(),
1066
- write: g.trim()
1065
+ read: f.trim(),
1066
+ write: m.trim()
1067
1067
  });
1068
1068
  };
1069
1069
  if (!e || !t) return null;
1070
- let L = C || A.isPending, re = l.trim().length > 0 || g.trim().length > 0, V = me(l), U = me(g);
1071
- return /*#__PURE__*/ B(j, {
1070
+ let L = T || A.isPending, re = f.trim().length > 0 || m.trim().length > 0, V = me(f), U = me(m);
1071
+ return /*#__PURE__*/ B(w, {
1072
1072
  title: /* @__PURE__ */ B("span", {
1073
1073
  className: "flex items-center gap-2",
1074
1074
  children: [/*#__PURE__*/ z(W, { id: "EdxcAN" }), /*#__PURE__*/ z("span", {
@@ -1079,11 +1079,11 @@ var X = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
1079
1079
  }),
1080
1080
  open: e,
1081
1081
  onCancel: P,
1082
- confirmButtonLabel: o._({ id: "tfDRzk" }),
1082
+ confirmButtonLabel: l._({ id: "tfDRzk" }),
1083
1083
  onConfirm: te,
1084
- cancelButtonLabel: o._({ id: "dEgA5A" }),
1084
+ cancelButtonLabel: l._({ id: "dEgA5A" }),
1085
1085
  size: "xl",
1086
- disableConfirmButton: L || w,
1086
+ disableConfirmButton: L || E,
1087
1087
  children: [A.isError && /*#__PURE__*/ z("p", {
1088
1088
  className: "text-theme-error mb-4",
1089
1089
  children: (() => {
@@ -1098,69 +1098,69 @@ var X = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
1098
1098
  children: [
1099
1099
  /*#__PURE__*/ z("div", {
1100
1100
  className: "mb-4",
1101
- children: /*#__PURE__*/ z(p, {
1101
+ children: /*#__PURE__*/ z(n, {
1102
1102
  variant: "warning",
1103
1103
  className: "mb-4",
1104
1104
  children: /*#__PURE__*/ z(W, { id: "wH0MtN" })
1105
1105
  })
1106
1106
  }),
1107
- C ? /*#__PURE__*/ B(f, {
1107
+ T ? /*#__PURE__*/ B(O, {
1108
1108
  direction: "horizontal",
1109
1109
  alignment: "center",
1110
1110
  gap: "2",
1111
1111
  className: "py-6",
1112
- children: [/*#__PURE__*/ z(u, { size: "small" }), /*#__PURE__*/ z(W, { id: "poCbZw" })]
1113
- }) : w ? /*#__PURE__*/ z("p", {
1112
+ children: [/*#__PURE__*/ z(s, { size: "small" }), /*#__PURE__*/ z(W, { id: "poCbZw" })]
1113
+ }) : E ? /*#__PURE__*/ z("p", {
1114
1114
  className: "text-theme-error py-2",
1115
1115
  children: /*#__PURE__*/ z(W, {
1116
1116
  id: "QNHur0",
1117
- values: { errorMessage: T?.message ?? "" }
1117
+ values: { errorMessage: D?.message ?? "" }
1118
1118
  })
1119
1119
  }) : /*#__PURE__*/ z(R, { children: /*#__PURE__*/ B("div", {
1120
1120
  className: "flex gap-6",
1121
1121
  children: [/*#__PURE__*/ z("div", {
1122
1122
  className: "min-w-0 flex-1",
1123
- children: /*#__PURE__*/ B(f, {
1123
+ children: /*#__PURE__*/ B(O, {
1124
1124
  direction: "vertical",
1125
1125
  gap: "6",
1126
1126
  children: [
1127
1127
  /*#__PURE__*/ B("div", { children: [
1128
- /*#__PURE__*/ z(be, { label: o._({ id: "SBGiGm" }) }),
1129
- /*#__PURE__*/ z(d, {
1130
- value: l,
1128
+ /*#__PURE__*/ z(be, { label: l._({ id: "SBGiGm" }) }),
1129
+ /*#__PURE__*/ z(g, {
1130
+ value: f,
1131
1131
  onChange: F,
1132
- disabled: L || v,
1133
- placeholder: o._({ id: "FKL6Jv" }),
1132
+ disabled: L || _,
1133
+ placeholder: l._({ id: "FKL6Jv" }),
1134
1134
  className: "text-sm",
1135
1135
  rows: 3
1136
1136
  }),
1137
- /*#__PURE__*/ z(E, {
1138
- label: o._({ id: "23wBCX" }),
1139
- checked: v,
1137
+ /*#__PURE__*/ z(b, {
1138
+ label: l._({ id: "23wBCX" }),
1139
+ checked: _,
1140
1140
  onChange: ee,
1141
1141
  disabled: L,
1142
1142
  className: "mt-2"
1143
1143
  })
1144
1144
  ] }),
1145
- /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z(be, { label: o._({ id: "6qzsuS" }) }), /*#__PURE__*/ z(d, {
1146
- value: g,
1145
+ /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z(be, { label: l._({ id: "6qzsuS" }) }), /*#__PURE__*/ z(g, {
1146
+ value: m,
1147
1147
  onChange: (e) => {
1148
1148
  let t = e.target.value;
1149
- _(t);
1149
+ h(t);
1150
1150
  },
1151
1151
  disabled: L,
1152
- placeholder: o._({ id: "UVFHGY" }),
1152
+ placeholder: l._({ id: "UVFHGY" }),
1153
1153
  className: "text-sm",
1154
1154
  rows: 3
1155
1155
  })] }),
1156
- re && /*#__PURE__*/ z(m, {
1157
- label: b ? o._({ id: "we28Pq" }) : o._({ id: "YiMCKk" }),
1156
+ re && /*#__PURE__*/ z(j, {
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
- b && (V.length > 0 || U.length > 0) && /*#__PURE__*/ B(f, {
1163
+ y && (V.length > 0 || U.length > 0) && /*#__PURE__*/ B(O, {
1164
1164
  direction: "vertical",
1165
1165
  gap: "4",
1166
1166
  children: [V.length > 0 && /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z("p", {
@@ -1168,17 +1168,17 @@ var X = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
1168
1168
  children: /*#__PURE__*/ z(W, { id: "x7SF89" })
1169
1169
  }), /*#__PURE__*/ z("div", {
1170
1170
  className: "border-theme-background-lvl-3 rounded border p-3",
1171
- children: /*#__PURE__*/ z(O, {
1171
+ children: /*#__PURE__*/ z(a, {
1172
1172
  className: "grid-cols-2",
1173
1173
  alignTerms: "left",
1174
- children: V.map((e, t) => /*#__PURE__*/ B(ne, { children: [/*#__PURE__*/ z(D, {
1174
+ children: V.map((e, t) => /*#__PURE__*/ B(ne, { children: [/*#__PURE__*/ z(C, {
1175
1175
  className: "col-span-1",
1176
1176
  children: /*#__PURE__*/ z("span", {
1177
1177
  className: "block truncate text-xs",
1178
1178
  title: e.raw,
1179
1179
  children: e.raw
1180
1180
  })
1181
- }), /*#__PURE__*/ B(i, {
1181
+ }), /*#__PURE__*/ B(r, {
1182
1182
  className: "col-span-1",
1183
1183
  children: [/*#__PURE__*/ z("span", {
1184
1184
  className: "block truncate text-sm",
@@ -1195,17 +1195,17 @@ var X = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
1195
1195
  children: /*#__PURE__*/ z(W, { id: "lRRkwQ" })
1196
1196
  }), /*#__PURE__*/ z("div", {
1197
1197
  className: "border-theme-background-lvl-3 rounded border p-3",
1198
- children: /*#__PURE__*/ z(O, {
1198
+ children: /*#__PURE__*/ z(a, {
1199
1199
  className: "grid-cols-2",
1200
1200
  alignTerms: "left",
1201
- children: U.map((e, t) => /*#__PURE__*/ B(ne, { children: [/*#__PURE__*/ z(D, {
1201
+ children: U.map((e, t) => /*#__PURE__*/ B(ne, { children: [/*#__PURE__*/ z(C, {
1202
1202
  className: "col-span-1",
1203
1203
  children: /*#__PURE__*/ z("span", {
1204
1204
  className: "block truncate text-xs",
1205
1205
  title: e.raw,
1206
1206
  children: e.raw
1207
1207
  })
1208
- }), /*#__PURE__*/ B(i, {
1208
+ }), /*#__PURE__*/ B(r, {
1209
1209
  className: "col-span-1",
1210
1210
  children: [/*#__PURE__*/ z("span", {
1211
1211
  className: "block truncate text-sm",
@@ -1228,29 +1228,29 @@ var X = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
1228
1228
  className: "text-theme-light mb-3 text-xs",
1229
1229
  children: /*#__PURE__*/ z(W, { id: "dd2ndz" })
1230
1230
  }),
1231
- /*#__PURE__*/ B(f, {
1231
+ /*#__PURE__*/ B(O, {
1232
1232
  direction: "vertical",
1233
1233
  gap: "4",
1234
1234
  children: [
1235
1235
  /*#__PURE__*/ z(Z, {
1236
1236
  code: ".r:*",
1237
- description: o._({ id: "VV1fdg" })
1237
+ description: l._({ id: "VV1fdg" })
1238
1238
  }),
1239
1239
  /*#__PURE__*/ z(Z, {
1240
1240
  code: ".rlistings",
1241
- description: o._({ id: "s/s1lz" })
1241
+ description: l._({ id: "s/s1lz" })
1242
1242
  }),
1243
1243
  /*#__PURE__*/ z(Z, {
1244
1244
  code: "PROJECT_ID:USER_ID",
1245
- description: o._({ id: "zhM8FP" })
1245
+ description: l._({ id: "zhM8FP" })
1246
1246
  }),
1247
1247
  /*#__PURE__*/ z(Z, {
1248
1248
  code: "PROJECT_ID:*",
1249
- description: o._({ id: "BCJPTn" })
1249
+ description: l._({ id: "BCJPTn" })
1250
1250
  }),
1251
1251
  /*#__PURE__*/ z(Z, {
1252
1252
  code: "*:USER_ID",
1253
- description: o._({ id: "/xnbdQ" })
1253
+ description: l._({ id: "/xnbdQ" })
1254
1254
  })
1255
1255
  ]
1256
1256
  }),
@@ -1269,7 +1269,7 @@ var X = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
1269
1269
  ]
1270
1270
  })]
1271
1271
  }) }),
1272
- !C && !w && /*#__PURE__*/ z("p", {
1272
+ !T && !E && /*#__PURE__*/ z("p", {
1273
1273
  className: "text-theme-light mt-4 text-xs",
1274
1274
  children: /*#__PURE__*/ z(W, { id: "j9lCXl" })
1275
1275
  })
@@ -1278,7 +1278,7 @@ var X = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: a }) => {
1278
1278
  });
1279
1279
  };
1280
1280
  function Z({ code: e, description: t }) {
1281
- return /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z(l, {
1281
+ return /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z(A, {
1282
1282
  variant: "info",
1283
1283
  className: "mb-1 text-xs",
1284
1284
  children: e
@@ -1293,13 +1293,13 @@ function be({ label: e }) {
1293
1293
  children: [/*#__PURE__*/ z("label", {
1294
1294
  className: "text-theme-default text-sm font-semibold",
1295
1295
  children: e
1296
- }), /*#__PURE__*/ B(t, {
1296
+ }), /*#__PURE__*/ B(S, {
1297
1297
  triggerEvent: "hover",
1298
- children: [/*#__PURE__*/ z(T, { children: /*#__PURE__*/ z(g, {
1298
+ children: [/*#__PURE__*/ z(E, { children: /*#__PURE__*/ z(_, {
1299
1299
  icon: "info",
1300
1300
  size: "14",
1301
1301
  className: "text-theme-light cursor-help"
1302
- }) }), /*#__PURE__*/ z(n, {
1302
+ }) }), /*#__PURE__*/ z(y, {
1303
1303
  className: "z-10 max-w-[350px]",
1304
1304
  children: /*#__PURE__*/ z(W, { id: "AdtLNV" })
1305
1305
  })]
@@ -1308,8 +1308,8 @@ function be({ label: e }) {
1308
1308
  }
1309
1309
  //#endregion
1310
1310
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ContainerTableView.tsx
1311
- var xe = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContainerNameLength: i, onCreateSuccess: a, onCreateError: l, onEmptySuccess: u, onEmptyError: d, onDeleteSuccess: f, onDeleteError: p, onPropertiesSuccess: m, onPropertiesError: h, onAclSuccess: g, onAclError: v, selectedContainers: y, setSelectedContainers: b, hasAnyBulkAction: x = !0 }) => {
1312
- let { projectId: C, provider: T, storageType: D } = oe({ from: "/_auth/projects/$projectId/storage/$provider/$storageType/" }), { i18n: O, _: k } = G(), A = U(), j = ae(null), [M, N] = H(0), [P, ee] = H(null), [I, te] = H(null), [L, ne] = H(null), [re, V] = H(null);
1311
+ var xe = ({ 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 } = oe({ from: "/_auth/projects/$projectId/storage/$provider/$storageType/" }), { i18n: O, _: k } = G(), A = U(), j = ae(null), [M, N] = H(0), [P, ee] = H(null), [I, te] = H(null), [L, ne] = H(null), [re, V] = H(null);
1313
1313
  ie(() => {
1314
1314
  j.current && N(j.current.offsetWidth - j.current.clientWidth);
1315
1315
  }, [e.length]);
@@ -1325,13 +1325,13 @@ var xe = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1325
1325
  estimateSize: () => 48,
1326
1326
  overscan: 10
1327
1327
  }), ue = (e) => {
1328
- y.includes(e) ? b(y.filter((t) => t !== e)) : b([...y, e]);
1328
+ x.includes(e) ? S(x.filter((t) => t !== e)) : S([...x, e]);
1329
1329
  };
1330
- if (!e || e.length === 0) return /*#__PURE__*/ B(R, { children: [/*#__PURE__*/ z(w, {
1330
+ if (!e || e.length === 0) return /*#__PURE__*/ B(R, { children: [/*#__PURE__*/ z(u, {
1331
1331
  columns: 4,
1332
1332
  className: "containers",
1333
1333
  "data-testid": "no-containers",
1334
- children: /*#__PURE__*/ z(c, { children: /*#__PURE__*/ z(o, {
1334
+ children: /*#__PURE__*/ z(i, { children: /*#__PURE__*/ z(o, {
1335
1335
  colSpan: 4,
1336
1336
  children: /*#__PURE__*/ B("div", {
1337
1337
  className: "py-8 text-center",
@@ -1345,30 +1345,30 @@ var xe = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1345
1345
  })
1346
1346
  }) })
1347
1347
  }), /*#__PURE__*/ z(ce, {
1348
- isOpen: t,
1349
- onClose: () => n(!1),
1350
- onSuccess: a,
1351
- onError: l,
1352
- maxContainerNameLength: i
1348
+ isOpen: n,
1349
+ onClose: () => r(!1),
1350
+ onSuccess: s,
1351
+ onError: c,
1352
+ maxContainerNameLength: a
1353
1353
  })] });
1354
- let de = x ? 6 : 5, fe = x ? "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";
1354
+ let de = C ? 6 : 5, fe = 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
1355
  return /*#__PURE__*/ B(R, { children: [
1356
1356
  /*#__PURE__*/ B("div", {
1357
1357
  className: "relative",
1358
1358
  children: [/*#__PURE__*/ z("div", {
1359
1359
  style: { paddingRight: `${M}px` },
1360
- children: /*#__PURE__*/ z(w, {
1360
+ children: /*#__PURE__*/ z(u, {
1361
1361
  columns: de,
1362
1362
  gridColumnTemplate: fe,
1363
1363
  className: "containers",
1364
1364
  "data-testid": "containers-table-header",
1365
- children: /*#__PURE__*/ B(c, { children: [
1366
- x && /*#__PURE__*/ z(s, {}),
1367
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "t0X9+8" }) }),
1368
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "sxbP3b" }) }),
1369
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "sjMCOP" }) }),
1370
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "hgpMHD" }) }),
1371
- /*#__PURE__*/ z(s, { style: { marginRight: `-${M}px` } })
1365
+ children: /*#__PURE__*/ B(i, { children: [
1366
+ C && /*#__PURE__*/ z(d, {}),
1367
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "t0X9+8" }) }),
1368
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "sxbP3b" }) }),
1369
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "sjMCOP" }) }),
1370
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "hgpMHD" }) }),
1371
+ /*#__PURE__*/ z(d, { style: { marginRight: `-${M}px` } })
1372
1372
  ] })
1373
1373
  })
1374
1374
  }), /*#__PURE__*/ z("div", {
@@ -1382,18 +1382,18 @@ var xe = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1382
1382
  width: "100%",
1383
1383
  position: "relative"
1384
1384
  },
1385
- children: se.getVirtualItems().map((t) => {
1386
- let n = e[t.index], i = y.includes(n.name), a = () => A({
1385
+ children: se.getVirtualItems().map((n) => {
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: {
1389
- projectId: C,
1390
- provider: T,
1389
+ projectId: w,
1390
+ provider: E,
1391
1391
  storageType: D,
1392
- containerName: n.name
1392
+ containerName: r.name
1393
1393
  }
1394
1394
  });
1395
1395
  return /*#__PURE__*/ B("div", {
1396
- "data-index": t.index,
1396
+ "data-index": n.index,
1397
1397
  ref: se.measureElement,
1398
1398
  className: "juno-datagrid group hover:bg-theme-background-lvl-1 cursor-pointer",
1399
1399
  style: {
@@ -1401,12 +1401,12 @@ var xe = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1401
1401
  top: 0,
1402
1402
  left: 0,
1403
1403
  width: "100%",
1404
- transform: `translateY(${t.start}px)`,
1404
+ transform: `translateY(${n.start}px)`,
1405
1405
  display: "grid",
1406
1406
  gridTemplateColumns: fe,
1407
1407
  alignItems: "stretch"
1408
1408
  },
1409
- "data-testid": `container-row-${n.name}`,
1409
+ "data-testid": `container-row-${r.name}`,
1410
1410
  role: "link",
1411
1411
  tabIndex: 0,
1412
1412
  onClick: a,
@@ -1414,100 +1414,100 @@ var xe = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1414
1414
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
1415
1415
  },
1416
1416
  children: [
1417
- x && /*#__PURE__*/ z(o, {
1417
+ C && /*#__PURE__*/ z(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__*/ z(E, {
1422
+ children: /*#__PURE__*/ z(b, {
1423
1423
  checked: i,
1424
- onChange: () => ue(n.name),
1425
- "data-testid": `select-container-${n.name}`
1424
+ onChange: () => ue(r.name),
1425
+ "data-testid": `select-container-${r.name}`
1426
1426
  })
1427
1427
  }),
1428
1428
  /*#__PURE__*/ z(o, {
1429
1429
  className: "min-w-0 overflow-hidden",
1430
1430
  children: /*#__PURE__*/ z("span", {
1431
1431
  className: "block truncate",
1432
- title: n.name,
1433
- children: n.name
1432
+ title: r.name,
1433
+ children: r.name
1434
1434
  })
1435
1435
  }),
1436
- /*#__PURE__*/ z(o, { children: n.count.toLocaleString() }),
1437
- /*#__PURE__*/ z(o, { children: n.last_modified ? K(n.last_modified) : O._({ id: "fj5byd" }) }),
1438
- /*#__PURE__*/ z(o, { children: F(n.bytes) }),
1436
+ /*#__PURE__*/ z(o, { children: r.count.toLocaleString() }),
1437
+ /*#__PURE__*/ z(o, { children: r.last_modified ? K(r.last_modified) : O._({ id: "fj5byd" }) }),
1438
+ /*#__PURE__*/ z(o, { children: F(r.bytes) }),
1439
1439
  /*#__PURE__*/ z(o, {
1440
1440
  onClick: (e) => e.stopPropagation(),
1441
- children: /*#__PURE__*/ z(r, { children: /*#__PURE__*/ B(_, { children: [
1442
- /*#__PURE__*/ z(S, {
1441
+ children: /*#__PURE__*/ z(T, { children: /*#__PURE__*/ B(t, { children: [
1442
+ /*#__PURE__*/ z(m, {
1443
1443
  label: O._({ id: "cWbW6w" }),
1444
- onClick: () => V(n),
1445
- "data-testid": `access-control-action-${n.name}`
1444
+ onClick: () => V(r),
1445
+ "data-testid": `access-control-action-${r.name}`
1446
1446
  }),
1447
- /*#__PURE__*/ z(S, {
1447
+ /*#__PURE__*/ z(m, {
1448
1448
  label: O._({ id: "Oc8Aqv" }),
1449
- onClick: () => ne(n),
1450
- "data-testid": `properties-action-${n.name}`
1449
+ onClick: () => ne(r),
1450
+ "data-testid": `properties-action-${r.name}`
1451
1451
  }),
1452
- /*#__PURE__*/ z(S, {
1452
+ /*#__PURE__*/ z(m, {
1453
1453
  label: O._({ id: "N2S1rs" }),
1454
- onClick: () => ee(n),
1455
- "data-testid": `empty-action-${n.name}`
1454
+ onClick: () => ee(r),
1455
+ "data-testid": `empty-action-${r.name}`
1456
1456
  }),
1457
- /*#__PURE__*/ z(S, {
1457
+ /*#__PURE__*/ z(m, {
1458
1458
  label: O._({ id: "cnGeoo" }),
1459
- onClick: () => te(n),
1460
- "data-testid": `delete-action-${n.name}`
1459
+ onClick: () => te(r),
1460
+ "data-testid": `delete-action-${r.name}`
1461
1461
  })
1462
1462
  ] }) })
1463
1463
  })
1464
1464
  ]
1465
- }, n.name);
1465
+ }, r.name);
1466
1466
  })
1467
1467
  })
1468
1468
  })]
1469
1469
  }),
1470
1470
  /*#__PURE__*/ z(ce, {
1471
- isOpen: t,
1472
- onClose: () => n(!1),
1473
- onSuccess: a,
1474
- onError: l,
1475
- maxContainerNameLength: i
1471
+ isOpen: n,
1472
+ onClose: () => r(!1),
1473
+ onSuccess: s,
1474
+ onError: c,
1475
+ maxContainerNameLength: a
1476
1476
  }),
1477
1477
  /*#__PURE__*/ z(J, {
1478
1478
  isOpen: P !== null,
1479
1479
  container: P,
1480
1480
  onClose: () => ee(null),
1481
- onSuccess: u,
1482
- onError: d
1481
+ onSuccess: l,
1482
+ onError: f
1483
1483
  }),
1484
1484
  /*#__PURE__*/ z(le, {
1485
1485
  isOpen: I !== null,
1486
1486
  container: I,
1487
1487
  onClose: () => te(null),
1488
- onSuccess: f,
1489
- onError: p
1488
+ onSuccess: p,
1489
+ onError: h
1490
1490
  }),
1491
1491
  /*#__PURE__*/ z(Y, {
1492
1492
  isOpen: L !== null,
1493
1493
  container: L,
1494
1494
  onClose: () => ne(null),
1495
- onSuccess: m,
1496
- onError: h
1495
+ onSuccess: g,
1496
+ onError: _
1497
1497
  }),
1498
1498
  /*#__PURE__*/ z(X, {
1499
1499
  isOpen: re !== null,
1500
1500
  container: re,
1501
1501
  onClose: () => V(null),
1502
- onSuccess: g,
1503
- onError: v
1502
+ onSuccess: v,
1503
+ onError: y
1504
1504
  })
1505
1505
  ] });
1506
1506
  };
1507
1507
  //#endregion
1508
1508
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ContainerToastNotifications.tsx
1509
1509
  function Q({ title: e, description: t }) {
1510
- return /*#__PURE__*/ B(f, {
1510
+ return /*#__PURE__*/ B(O, {
1511
1511
  direction: "vertical",
1512
1512
  gap: "1.5",
1513
1513
  children: [/*#__PURE__*/ z("span", { children: e }), /*#__PURE__*/ z("span", {
@@ -1649,7 +1649,7 @@ var Se = (e, t) => ({
1649
1649
  variant: o ? "warning" : i ? "error" : "success",
1650
1650
  children: /*#__PURE__*/ z(Q, {
1651
1651
  title: o ? /*#__PURE__*/ z(W, { id: "q44uUq" }) : i ? /*#__PURE__*/ z(W, { id: "wFaT8w" }) : /*#__PURE__*/ z(W, { id: "0WsqO0" }),
1652
- description: /*#__PURE__*/ B(f, {
1652
+ description: /*#__PURE__*/ B(O, {
1653
1653
  direction: "vertical",
1654
1654
  gap: "1",
1655
1655
  children: [a && /*#__PURE__*/ z("span", { children: /*#__PURE__*/ z(W, {
@@ -1671,7 +1671,7 @@ var Se = (e, t) => ({
1671
1671
  };
1672
1672
  }, $ = ({ label: e, value: t }) => t == null ? null : /*#__PURE__*/ B("span", {
1673
1673
  className: "flex items-start gap-1.5",
1674
- children: [/*#__PURE__*/ z(g, {
1674
+ children: [/*#__PURE__*/ z(_, {
1675
1675
  icon: "check",
1676
1676
  size: "16px",
1677
1677
  className: "text-theme-success mt-0.5 shrink-0"
@@ -1685,7 +1685,7 @@ var Se = (e, t) => ({
1685
1685
  ] })]
1686
1686
  }), Ne = ({ label: e }) => /*#__PURE__*/ B("span", {
1687
1687
  className: "flex items-start gap-1.5",
1688
- children: [/*#__PURE__*/ z(g, {
1688
+ children: [/*#__PURE__*/ z(_, {
1689
1689
  icon: "check",
1690
1690
  size: "16px",
1691
1691
  className: "text-theme-success mt-0.5 shrink-0"
@@ -1696,185 +1696,185 @@ var Se = (e, t) => ({
1696
1696
  className: "text-theme-default block font-semibold",
1697
1697
  children: e
1698
1698
  }), t]
1699
- }), Fe = ({ serviceInfo: e, accountInfo: r, open: i }) => {
1700
- let { i18n: a, _: o } = G(), s = e?.swift, c = {
1701
- account_quotas: a._({ id: "DJT9tB" }),
1702
- container_quotas: a._({ id: "USiuNX" }),
1703
- bulk_delete: a._({ id: "F6YIQe" }),
1704
- bulk_upload: a._({ id: "2Inn83" }),
1705
- slo: a._({ id: "cpw++p" }),
1706
- container_sync: a._({ id: "ezT9KW" }),
1707
- tempurl: a._({ id: "UO3hJ2" }),
1708
- symlink: a._({ id: "Q2xmVl" }),
1709
- versioned_writes: a._({ id: "8jLXs3" })
1710
- }, l = Object.entries(c).filter(([e]) => s?.[e]).map(([, e]) => e);
1711
- return /*#__PURE__*/ B(t, {
1699
+ }), Fe = ({ serviceInfo: e, accountInfo: t, open: n }) => {
1700
+ let { i18n: r, _: i } = G(), a = e?.swift, o = {
1701
+ account_quotas: r._({ id: "DJT9tB" }),
1702
+ container_quotas: r._({ id: "USiuNX" }),
1703
+ bulk_delete: r._({ id: "F6YIQe" }),
1704
+ bulk_upload: r._({ id: "2Inn83" }),
1705
+ slo: r._({ id: "cpw++p" }),
1706
+ container_sync: r._({ id: "ezT9KW" }),
1707
+ tempurl: r._({ id: "UO3hJ2" }),
1708
+ symlink: r._({ id: "Q2xmVl" }),
1709
+ versioned_writes: r._({ id: "8jLXs3" })
1710
+ }, s = Object.entries(o).filter(([e]) => a?.[e]).map(([, e]) => e);
1711
+ return /*#__PURE__*/ B(S, {
1712
1712
  triggerEvent: "hover",
1713
1713
  placement: "bottom-end",
1714
- open: i,
1715
- children: [/*#__PURE__*/ z(T, {
1714
+ open: n,
1715
+ children: [/*#__PURE__*/ z(E, {
1716
1716
  asChild: !0,
1717
- children: /*#__PURE__*/ z(g, {
1717
+ children: /*#__PURE__*/ z(_, {
1718
1718
  icon: "info",
1719
1719
  size: "20px",
1720
1720
  className: "text-theme-light hover:text-theme-default cursor-pointer"
1721
1721
  })
1722
- }), /*#__PURE__*/ z(n, {
1722
+ }), /*#__PURE__*/ z(y, {
1723
1723
  className: "z-10 w-72 text-sm",
1724
1724
  children: /*#__PURE__*/ B("span", {
1725
1725
  className: "flex flex-col gap-3 p-1",
1726
1726
  children: [
1727
- r && /*#__PURE__*/ B(Pe, {
1727
+ t && /*#__PURE__*/ B(Pe, {
1728
1728
  title: /*#__PURE__*/ z(W, { id: "AeXO77" }),
1729
1729
  children: [
1730
1730
  /*#__PURE__*/ z($, {
1731
- label: a._({ id: "ClGcRq" }),
1732
- value: r.containerCount.toLocaleString()
1731
+ label: r._({ id: "ClGcRq" }),
1732
+ value: t.containerCount.toLocaleString()
1733
1733
  }),
1734
1734
  /*#__PURE__*/ z($, {
1735
- label: a._({ id: "B3toQF" }),
1736
- value: r.objectCount.toLocaleString()
1735
+ label: r._({ id: "B3toQF" }),
1736
+ value: t.objectCount.toLocaleString()
1737
1737
  }),
1738
1738
  /*#__PURE__*/ z($, {
1739
- label: a._({ id: "aL1w5Z" }),
1740
- value: F(r.bytesUsed)
1739
+ label: r._({ id: "aL1w5Z" }),
1740
+ value: F(t.bytesUsed)
1741
1741
  }),
1742
- r.quotaBytes !== void 0 && /*#__PURE__*/ z($, {
1743
- label: a._({ id: "vEkTR9" }),
1744
- value: F(r.quotaBytes)
1742
+ t.quotaBytes !== void 0 && /*#__PURE__*/ z($, {
1743
+ label: r._({ id: "vEkTR9" }),
1744
+ value: F(t.quotaBytes)
1745
1745
  })
1746
1746
  ]
1747
1747
  }),
1748
- s && /*#__PURE__*/ B(Pe, {
1748
+ a && /*#__PURE__*/ B(Pe, {
1749
1749
  title: /*#__PURE__*/ z(W, { id: "6BDqha" }),
1750
1750
  children: [
1751
1751
  /*#__PURE__*/ z($, {
1752
- label: a._({ id: "wTg+FY" }),
1753
- value: s.max_file_size === void 0 ? void 0 : F(s.max_file_size)
1752
+ label: r._({ id: "wTg+FY" }),
1753
+ value: a.max_file_size === void 0 ? void 0 : F(a.max_file_size)
1754
1754
  }),
1755
1755
  /*#__PURE__*/ z($, {
1756
- label: a._({ id: "Rih53k" }),
1757
- value: s.max_container_name_length
1756
+ label: r._({ id: "Rih53k" }),
1757
+ value: a.max_container_name_length
1758
1758
  }),
1759
1759
  /*#__PURE__*/ z($, {
1760
- label: a._({ id: "qAkkjP" }),
1761
- value: s.max_object_name_length
1760
+ label: r._({ id: "qAkkjP" }),
1761
+ value: a.max_object_name_length
1762
1762
  }),
1763
1763
  /*#__PURE__*/ z($, {
1764
- label: a._({ id: "OZImTR" }),
1765
- value: s.container_listing_limit?.toLocaleString()
1764
+ label: r._({ id: "OZImTR" }),
1765
+ value: a.container_listing_limit?.toLocaleString()
1766
1766
  }),
1767
1767
  /*#__PURE__*/ z($, {
1768
- label: a._({ id: "a4A2uB" }),
1769
- value: s.account_listing_limit?.toLocaleString()
1768
+ label: r._({ id: "a4A2uB" }),
1769
+ value: a.account_listing_limit?.toLocaleString()
1770
1770
  }),
1771
1771
  /*#__PURE__*/ z($, {
1772
- label: a._({ id: "zWb/Nn" }),
1773
- value: s.max_header_size
1772
+ label: r._({ id: "zWb/Nn" }),
1773
+ value: a.max_header_size
1774
1774
  }),
1775
1775
  /*#__PURE__*/ z($, {
1776
- label: a._({ id: "RGwfoL" }),
1777
- value: s.max_meta_count
1776
+ label: r._({ id: "RGwfoL" }),
1777
+ value: a.max_meta_count
1778
1778
  }),
1779
1779
  /*#__PURE__*/ z($, {
1780
- label: a._({ id: "8c3/77" }),
1781
- value: s.max_meta_name_length
1780
+ label: r._({ id: "8c3/77" }),
1781
+ value: a.max_meta_name_length
1782
1782
  }),
1783
1783
  /*#__PURE__*/ z($, {
1784
- label: a._({ id: "5JDSvn" }),
1785
- value: s.max_meta_value_length
1784
+ label: r._({ id: "5JDSvn" }),
1785
+ value: a.max_meta_value_length
1786
1786
  }),
1787
1787
  /*#__PURE__*/ z($, {
1788
- label: a._({ id: "ZAx+d1" }),
1789
- value: s.max_meta_overall_size
1788
+ label: r._({ id: "ZAx+d1" }),
1789
+ value: a.max_meta_overall_size
1790
1790
  }),
1791
- s.bulk_delete && /*#__PURE__*/ z($, {
1792
- label: a._({ id: "lQ3EIe" }),
1793
- value: s.bulk_delete.max_deletes_per_request.toLocaleString()
1791
+ a.bulk_delete && /*#__PURE__*/ z($, {
1792
+ label: r._({ id: "lQ3EIe" }),
1793
+ value: a.bulk_delete.max_deletes_per_request.toLocaleString()
1794
1794
  }),
1795
- s.bulk_upload && /*#__PURE__*/ z($, {
1796
- label: a._({ id: "STc+7E" }),
1797
- value: s.bulk_upload.max_containers_per_extraction.toLocaleString()
1795
+ a.bulk_upload && /*#__PURE__*/ z($, {
1796
+ label: r._({ id: "STc+7E" }),
1797
+ value: a.bulk_upload.max_containers_per_extraction.toLocaleString()
1798
1798
  }),
1799
- s.slo && /*#__PURE__*/ z($, {
1800
- label: a._({ id: "RNBvdl" }),
1801
- value: s.slo.max_manifest_segments.toLocaleString()
1799
+ a.slo && /*#__PURE__*/ z($, {
1800
+ label: r._({ id: "RNBvdl" }),
1801
+ value: a.slo.max_manifest_segments.toLocaleString()
1802
1802
  })
1803
1803
  ]
1804
1804
  }),
1805
- l.length > 0 && /*#__PURE__*/ z(Pe, {
1805
+ s.length > 0 && /*#__PURE__*/ z(Pe, {
1806
1806
  title: /*#__PURE__*/ z(W, { id: "Qx7DM7" }),
1807
- children: l.map((e) => /*#__PURE__*/ z(Ne, { label: e }, e))
1807
+ children: s.map((e) => /*#__PURE__*/ z(Ne, { label: e }, e))
1808
1808
  })
1809
1809
  ]
1810
1810
  })
1811
1811
  })]
1812
1812
  });
1813
- }, Ie = 20, Le = "empty", Re = ({ isOpen: e, containers: t, onClose: n, onComplete: r }) => {
1814
- let { i18n: a, i18n: o, _: s } = G(), c = I(), [l, d] = H(null), [m, h] = H(""), g = m.trim() === Le, _ = M.useUtils(), v = M.storage.swift.emptyContainer.useMutation(), y = () => {
1815
- v.reset(), d(null), h(""), n();
1816
- }, b = async () => {
1817
- let e = 0, n = 0, i = [], a = t.length;
1818
- for (let r = 0; r < t.length; r++) {
1819
- d({
1820
- current: r + 1,
1821
- total: a
1813
+ }, Ie = 20, Le = "empty", Re = ({ isOpen: e, containers: t, onClose: i, onComplete: o }) => {
1814
+ let { i18n: c, i18n: l, _: u } = G(), d = I(), [p, m] = H(null), [h, g] = H(""), _ = h.trim() === Le, v = M.useUtils(), y = M.storage.swift.emptyContainer.useMutation(), b = () => {
1815
+ y.reset(), m(null), g(""), i();
1816
+ }, x = async () => {
1817
+ let e = 0, n = 0, r = [], i = t.length;
1818
+ for (let a = 0; a < t.length; a++) {
1819
+ m({
1820
+ current: a + 1,
1821
+ total: i
1822
1822
  });
1823
- let o = t[r];
1823
+ let o = t[a];
1824
1824
  try {
1825
- let t = await v.mutateAsync({
1826
- project_id: c,
1825
+ let t = await y.mutateAsync({
1826
+ project_id: d,
1827
1827
  container: o.name
1828
1828
  });
1829
1829
  n += t, e++;
1830
1830
  } catch (e) {
1831
1831
  let t = e instanceof Error ? e.message : String(e);
1832
- i.push(`${o.name}: ${t}`);
1832
+ r.push(`${o.name}: ${t}`);
1833
1833
  }
1834
1834
  }
1835
- e > 0 && await _.storage.swift.listContainers.invalidate(), r?.({
1835
+ e > 0 && await v.storage.swift.listContainers.invalidate(), o?.({
1836
1836
  emptiedCount: e,
1837
1837
  totalDeleted: n,
1838
- errors: i
1839
- }), y();
1838
+ errors: r
1839
+ }), b();
1840
1840
  };
1841
1841
  if (!e || t.length === 0) return null;
1842
- let x = t.length, S = t.slice(0, Ie), w = x - S.length, T = v.isPending || l !== null, E = l?.current, k = l?.total;
1843
- return /*#__PURE__*/ z(j, {
1842
+ let S = t.length, T = t.slice(0, Ie), E = S - T.length, D = y.isPending || p !== null, k = p?.current, A = p?.total;
1843
+ return /*#__PURE__*/ z(w, {
1844
1844
  title: /*#__PURE__*/ z(W, {
1845
1845
  id: "0efWir",
1846
- values: { totalCount: x }
1846
+ values: { totalCount: S }
1847
1847
  }),
1848
1848
  open: e,
1849
- onCancel: y,
1850
- confirmButtonLabel: T ? a._({ id: "s4Vnq2" }) : a._({ id: "N2S1rs" }),
1849
+ onCancel: b,
1850
+ confirmButtonLabel: D ? c._({ id: "s4Vnq2" }) : c._({ id: "N2S1rs" }),
1851
1851
  confirmButtonVariant: "primary-danger",
1852
- cancelButtonLabel: a._({ id: "dEgA5A" }),
1853
- onConfirm: b,
1854
- disableConfirmButton: T || !g,
1855
- disableCancelButton: T,
1856
- disableCloseButton: T,
1852
+ cancelButtonLabel: c._({ id: "dEgA5A" }),
1853
+ onConfirm: x,
1854
+ disableConfirmButton: D || !_,
1855
+ disableCancelButton: D,
1856
+ disableCloseButton: D,
1857
1857
  size: "small",
1858
- children: T ? /*#__PURE__*/ B(f, {
1858
+ children: D ? /*#__PURE__*/ B(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__*/ z(u, { variant: "primary" }), l && /*#__PURE__*/ z("p", {
1864
+ children: [/*#__PURE__*/ z(s, { variant: "primary" }), p && /*#__PURE__*/ z("p", {
1865
1865
  className: "text-theme-light text-sm",
1866
1866
  children: /*#__PURE__*/ z(W, {
1867
1867
  id: "7NSdfG",
1868
1868
  values: {
1869
- progressCurrent: E,
1870
- progressTotal: k
1869
+ progressCurrent: k,
1870
+ progressTotal: A
1871
1871
  }
1872
1872
  })
1873
1873
  })]
1874
1874
  }) : /*#__PURE__*/ B("div", {
1875
1875
  className: "my-6",
1876
1876
  children: [
1877
- /*#__PURE__*/ z(p, {
1877
+ /*#__PURE__*/ z(n, {
1878
1878
  variant: "danger",
1879
1879
  className: "mb-6",
1880
1880
  children: /*#__PURE__*/ z(W, { id: "JuOpPY" })
@@ -1895,83 +1895,83 @@ var Se = (e, t) => ({
1895
1895
  className: "jn:text-theme-high mb-3 font-semibold",
1896
1896
  children: /*#__PURE__*/ z(W, {
1897
1897
  id: "VKmlZ+",
1898
- values: { totalCount: x }
1898
+ values: { totalCount: S }
1899
1899
  })
1900
1900
  }), /*#__PURE__*/ B("div", {
1901
1901
  className: "jn:bg-theme-background-lvl-1 max-h-48 overflow-y-auto rounded p-4",
1902
- children: [/*#__PURE__*/ z(O, {
1902
+ children: [/*#__PURE__*/ z(a, {
1903
1903
  className: "grid-cols-2",
1904
1904
  alignTerms: "left",
1905
- children: S.map((e) => {
1905
+ children: T.map((e) => {
1906
1906
  let t = e.count;
1907
- return /*#__PURE__*/ B(ne, { children: [/*#__PURE__*/ z(D, {
1907
+ return /*#__PURE__*/ B(ne, { children: [/*#__PURE__*/ z(C, {
1908
1908
  className: "col-span-1",
1909
1909
  children: /*#__PURE__*/ z("span", {
1910
1910
  className: "block truncate",
1911
1911
  title: e.name,
1912
1912
  children: e.name
1913
1913
  })
1914
- }), /*#__PURE__*/ z(i, {
1914
+ }), /*#__PURE__*/ z(r, {
1915
1915
  className: "col-span-1",
1916
1916
  children: /*#__PURE__*/ z("span", {
1917
1917
  className: "whitespace-nowrap",
1918
- children: t == null ? "" : o._(a._({
1918
+ children: t == null ? "" : l._(c._({
1919
1919
  id: "7Ocn0b",
1920
1920
  values: { count: t }
1921
1921
  }))
1922
1922
  })
1923
1923
  })] }, e.name);
1924
1924
  })
1925
- }), w > 0 && /*#__PURE__*/ z("p", {
1925
+ }), E > 0 && /*#__PURE__*/ z("p", {
1926
1926
  className: "text-theme-light mt-2 text-xs",
1927
1927
  children: /*#__PURE__*/ z(W, {
1928
1928
  id: "yqPflB",
1929
- values: { hiddenCount: w }
1929
+ values: { hiddenCount: E }
1930
1930
  })
1931
1931
  })]
1932
1932
  })]
1933
1933
  }),
1934
- /*#__PURE__*/ z(C, {
1935
- label: a._({ id: "Ghp863" }),
1934
+ /*#__PURE__*/ z(f, {
1935
+ label: c._({ id: "Ghp863" }),
1936
1936
  placeholder: Le,
1937
- value: m,
1938
- onChange: (e) => h(e.target.value)
1937
+ value: h,
1938
+ onChange: (e) => g(e.target.value)
1939
1939
  })
1940
1940
  ]
1941
1941
  })
1942
1942
  });
1943
1943
  }, ze = () => {
1944
- let { i18n: e, i18n: t, _: n } = G(), i = I(), o = U({ from: N.fullPath }), { sortBy: s, sortDirection: c, search: l = "" } = N.useSearch(), [d, p] = H(!1), [g, v] = H(!1), [y, b] = H([]), [C, w] = H(null), [T, D] = H(l), O = ae(void 0);
1945
- ie(() => () => clearTimeout(O.current), []), ie(() => {
1946
- D(l);
1944
+ let { i18n: e, i18n: n, _: r } = G(), i = I(), a = U({ from: N.fullPath }), { sortBy: o, sortDirection: c, search: l = "" } = N.useSearch(), [u, d] = H(!1), [f, g] = H(!1), [_, v] = H([]), [y, S] = H(null), [C, w] = H(l), E = ae(void 0);
1945
+ ie(() => () => clearTimeout(E.current), []), ie(() => {
1946
+ w(l);
1947
1947
  }, [l]);
1948
- let k = () => w(null), j = (e) => {
1949
- w(Se(e, { onDismiss: k }));
1948
+ let k = () => S(null), A = (e) => {
1949
+ S(Se(e, { onDismiss: k }));
1950
1950
  }, P = (e, t) => {
1951
- w(Ce(e, t, { onDismiss: k }));
1951
+ S(Ce(e, t, { onDismiss: k }));
1952
1952
  }, te = (e, t) => {
1953
- w(we(e, t, { onDismiss: k }));
1953
+ S(we(e, t, { onDismiss: k }));
1954
1954
  }, L = (e, t) => {
1955
- w(Te(e, t, { onDismiss: k }));
1955
+ S(Te(e, t, { onDismiss: k }));
1956
1956
  }, ne = (e) => {
1957
- w(Ee(e, { onDismiss: k }));
1957
+ S(Ee(e, { onDismiss: k }));
1958
1958
  }, V = (e, t) => {
1959
- w(De(e, t, { onDismiss: k }));
1959
+ S(De(e, t, { onDismiss: k }));
1960
1960
  }, oe = (e) => {
1961
- w(Oe(e, { onDismiss: k }));
1961
+ S(Oe(e, { onDismiss: k }));
1962
1962
  }, K = (e, t) => {
1963
- w(ke(e, t, { onDismiss: k }));
1963
+ S(ke(e, t, { onDismiss: k }));
1964
1964
  }, se = (e) => {
1965
- w(Ae(e, { onDismiss: k }));
1965
+ S(Ae(e, { onDismiss: k }));
1966
1966
  }, q = (e, t) => {
1967
- w(je(e, t, { onDismiss: k }));
1967
+ S(je(e, t, { onDismiss: k }));
1968
1968
  }, ce = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
1969
- if (n.length === 0) b([]);
1969
+ if (n.length === 0) v([]);
1970
1970
  else {
1971
1971
  let e = new Set(n.map((e) => e.split(": ")[0]));
1972
- b((t) => t.filter((t) => e.has(t)));
1972
+ v((t) => t.filter((t) => e.has(t)));
1973
1973
  }
1974
- w(Me(e, t, n, { onDismiss: k }));
1974
+ S(Me(e, t, n, { onDismiss: k }));
1975
1975
  }, J = {
1976
1976
  options: [
1977
1977
  {
@@ -1991,14 +1991,14 @@ var Se = (e, t) => ({
1991
1991
  value: "last_modified"
1992
1992
  }
1993
1993
  ],
1994
- sortBy: s ?? "name",
1994
+ sortBy: o ?? "name",
1995
1995
  sortDirection: c ?? "asc"
1996
1996
  }, { data: le, isLoading: ue, error: de } = M.storage.swift.listContainers.useQuery({
1997
1997
  project_id: i,
1998
1998
  format: "json"
1999
1999
  }), { data: fe } = M.storage.swift.getAccountMetadata.useQuery({ project_id: i }), { data: Y } = M.storage.swift.getServiceInfo.useQuery(), pe = (e) => [...e].sort((e, t) => {
2000
2000
  let n;
2001
- switch (s ?? "name") {
2001
+ switch (o ?? "name") {
2002
2002
  case "name":
2003
2003
  n = e.name.localeCompare(t.name);
2004
2004
  break;
@@ -2018,7 +2018,7 @@ var Se = (e, t) => ({
2018
2018
  }), me = (le || []).filter((e) => e.name.toLowerCase().includes(l.toLowerCase())), he = pe(me), ge = (e) => {
2019
2019
  let t = typeof e == "string" ? e : "";
2020
2020
  re(() => {
2021
- o({ search: (e) => ({
2021
+ a({ search: (e) => ({
2022
2022
  ...e,
2023
2023
  search: t || void 0
2024
2024
  }) });
@@ -2026,19 +2026,19 @@ var Se = (e, t) => ({
2026
2026
  }, _e = (e) => {
2027
2027
  let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
2028
2028
  re(() => {
2029
- o({ search: (e) => ({
2029
+ a({ search: (e) => ({
2030
2030
  ...e,
2031
2031
  sortBy: t,
2032
2032
  sortDirection: n
2033
2033
  }) });
2034
2034
  });
2035
2035
  };
2036
- if (ue) return /*#__PURE__*/ B(f, {
2036
+ if (ue) return /*#__PURE__*/ B(O, {
2037
2037
  className: "absolute inset-0",
2038
2038
  distribution: "center",
2039
2039
  alignment: "center",
2040
2040
  direction: "vertical",
2041
- children: [/*#__PURE__*/ z(u, {
2041
+ children: [/*#__PURE__*/ z(s, {
2042
2042
  variant: "primary",
2043
2043
  size: "large",
2044
2044
  className: "mb-2"
@@ -2046,7 +2046,7 @@ var Se = (e, t) => ({
2046
2046
  });
2047
2047
  if (de) {
2048
2048
  let e = de.message;
2049
- return /*#__PURE__*/ z(f, {
2049
+ return /*#__PURE__*/ z(O, {
2050
2050
  className: "absolute inset-0",
2051
2051
  distribution: "center",
2052
2052
  alignment: "center",
@@ -2057,19 +2057,19 @@ var Se = (e, t) => ({
2057
2057
  })
2058
2058
  });
2059
2059
  }
2060
- let ve = fe?.bytesUsed || 0, ye = fe?.quotaBytes || 0, X = ye > 0 ? ye - ve : 0, Z = (le || []).filter((e) => y.includes(e.name)), be = Z.length > 0, Q = Z.length, $ = (le || []).length, Ne = me.length, Pe = Ne !== $, Ie = he.map((e) => e.name), Le = Ie.length > 0 && Ie.every((e) => y.includes(e)), ze = Ie.some((e) => y.includes(e));
2060
+ let ve = fe?.bytesUsed || 0, ye = fe?.quotaBytes || 0, X = ye > 0 ? ye - ve : 0, Z = (le || []).filter((e) => _.includes(e.name)), be = Z.length > 0, Q = Z.length, $ = (le || []).length, Ne = me.length, Pe = Ne !== $, Ie = he.map((e) => e.name), Le = Ie.length > 0 && Ie.every((e) => _.includes(e)), ze = Ie.some((e) => _.includes(e));
2061
2061
  return /*#__PURE__*/ B("div", {
2062
2062
  className: "relative",
2063
2063
  children: [
2064
- /*#__PURE__*/ B(f, {
2064
+ /*#__PURE__*/ B(O, {
2065
2065
  direction: "vertical",
2066
2066
  children: [
2067
- /*#__PURE__*/ B(f, {
2067
+ /*#__PURE__*/ B(O, {
2068
2068
  distribution: "end",
2069
2069
  alignment: "center",
2070
2070
  gap: "2",
2071
2071
  className: "pb-2",
2072
- children: [/*#__PURE__*/ z(f, {
2072
+ children: [/*#__PURE__*/ z(O, {
2073
2073
  gap: "0.5",
2074
2074
  alignment: "center",
2075
2075
  children: /*#__PURE__*/ z(ee, {
@@ -2086,67 +2086,67 @@ var Se = (e, t) => ({
2086
2086
  sortDirection: e
2087
2087
  })
2088
2088
  })
2089
- }), /*#__PURE__*/ z(m, {
2089
+ }), /*#__PURE__*/ z(j, {
2090
2090
  variant: "primary",
2091
2091
  className: "whitespace-nowrap",
2092
- onClick: () => p(!0),
2092
+ onClick: () => d(!0),
2093
2093
  children: /*#__PURE__*/ z(W, { id: "vTh35P" })
2094
2094
  })]
2095
2095
  }),
2096
- /*#__PURE__*/ z(h, { children: /*#__PURE__*/ z(f, {
2096
+ /*#__PURE__*/ z(h, { children: /*#__PURE__*/ z(O, {
2097
2097
  direction: "vertical",
2098
2098
  gap: "2",
2099
- children: /*#__PURE__*/ z(f, {
2099
+ children: /*#__PURE__*/ z(O, {
2100
2100
  distribution: "end",
2101
2101
  alignment: "center",
2102
- children: /*#__PURE__*/ z(a, {
2102
+ children: /*#__PURE__*/ z(x, {
2103
2103
  placeholder: e._({ id: "TipzDp" }),
2104
2104
  "data-testid": "searchbar",
2105
- value: T,
2105
+ value: C,
2106
2106
  onInput: (e) => {
2107
2107
  let t = e.currentTarget.value;
2108
- D(t), clearTimeout(O.current), O.current = window.setTimeout(() => ge(t), 500);
2108
+ w(t), clearTimeout(E.current), E.current = window.setTimeout(() => ge(t), 500);
2109
2109
  },
2110
2110
  onSearch: (e) => {
2111
- clearTimeout(O.current), ge(typeof e == "string" ? e : "");
2111
+ clearTimeout(E.current), ge(typeof e == "string" ? e : "");
2112
2112
  },
2113
2113
  onClear: () => {
2114
- clearTimeout(O.current), D(""), ge("");
2114
+ clearTimeout(E.current), w(""), ge("");
2115
2115
  }
2116
2116
  })
2117
2117
  })
2118
2118
  }) }),
2119
- /*#__PURE__*/ z(h, { children: /*#__PURE__*/ B(f, {
2119
+ /*#__PURE__*/ z(h, { children: /*#__PURE__*/ B(O, {
2120
2120
  distribution: "start",
2121
2121
  gap: "2",
2122
2122
  alignment: "center",
2123
2123
  className: "text-sm",
2124
- children: [/*#__PURE__*/ B(f, {
2124
+ children: [/*#__PURE__*/ B(O, {
2125
2125
  gap: "2",
2126
2126
  alignment: "center",
2127
- children: [/*#__PURE__*/ z(E, {
2127
+ children: [/*#__PURE__*/ z(b, {
2128
2128
  checked: Le,
2129
2129
  indeterminate: ze && !Le,
2130
2130
  onChange: () => {
2131
- b(Le ? (e) => e.filter((e) => !Ie.includes(e)) : (e) => [...new Set([...e, ...Ie])]);
2131
+ v(Le ? (e) => e.filter((e) => !Ie.includes(e)) : (e) => [...new Set([...e, ...Ie])]);
2132
2132
  }
2133
- }), /*#__PURE__*/ B(r, {
2133
+ }), /*#__PURE__*/ B(T, {
2134
2134
  className: "flex items-center",
2135
- children: [/*#__PURE__*/ z(x, {
2135
+ children: [/*#__PURE__*/ z(D, {
2136
2136
  as: "div",
2137
- children: /*#__PURE__*/ z(m, {
2137
+ children: /*#__PURE__*/ z(j, {
2138
2138
  disabled: !be,
2139
2139
  size: "small",
2140
2140
  icon: "moreVert",
2141
2141
  label: e._({ id: "7L01XJ" })
2142
2142
  })
2143
- }), be && /*#__PURE__*/ z(_, { children: /*#__PURE__*/ z(S, {
2143
+ }), be && /*#__PURE__*/ z(t, { children: /*#__PURE__*/ z(m, {
2144
2144
  disabled: !be,
2145
- label: t._(e._({
2145
+ label: n._(e._({
2146
2146
  id: "0Th0CH",
2147
2147
  values: { selectedCount: Q }
2148
2148
  })),
2149
- onClick: () => v(!0)
2149
+ onClick: () => g(!0)
2150
2150
  }) })]
2151
2151
  })]
2152
2152
  }), /*#__PURE__*/ B("div", {
@@ -2182,10 +2182,10 @@ var Se = (e, t) => ({
2182
2182
  }),
2183
2183
  /*#__PURE__*/ z(xe, {
2184
2184
  containers: he,
2185
- createModalOpen: d,
2186
- setCreateModalOpen: p,
2185
+ createModalOpen: u,
2186
+ setCreateModalOpen: d,
2187
2187
  maxContainerNameLength: Y?.swift?.max_container_name_length,
2188
- onCreateSuccess: j,
2188
+ onCreateSuccess: A,
2189
2189
  onCreateError: P,
2190
2190
  onEmptySuccess: te,
2191
2191
  onEmptyError: L,
@@ -2195,18 +2195,18 @@ var Se = (e, t) => ({
2195
2195
  onPropertiesError: K,
2196
2196
  onAclSuccess: se,
2197
2197
  onAclError: q,
2198
- selectedContainers: y,
2199
- setSelectedContainers: b,
2198
+ selectedContainers: _,
2199
+ setSelectedContainers: v,
2200
2200
  hasAnyBulkAction: !0
2201
2201
  }),
2202
2202
  /*#__PURE__*/ z(Re, {
2203
- isOpen: g,
2203
+ isOpen: f,
2204
2204
  containers: Z,
2205
- onClose: () => v(!1),
2205
+ onClose: () => g(!1),
2206
2206
  onComplete: ce
2207
2207
  }),
2208
- C && /*#__PURE__*/ z(A, {
2209
- ...C,
2208
+ y && /*#__PURE__*/ z(p, {
2209
+ ...y,
2210
2210
  className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
2211
2211
  })
2212
2212
  ]
@@ -2264,7 +2264,7 @@ var Se = (e, t) => ({
2264
2264
  enableVersioning: d
2265
2265
  });
2266
2266
  };
2267
- return e ? /*#__PURE__*/ z(j, {
2267
+ return e ? /*#__PURE__*/ z(w, {
2268
2268
  title: i._({ id: "HiDAFk" }),
2269
2269
  open: e,
2270
2270
  onCancel: g,
@@ -2273,7 +2273,7 @@ var Se = (e, t) => ({
2273
2273
  cancelButtonLabel: i._({ id: "dEgA5A" }),
2274
2274
  size: "small",
2275
2275
  disableConfirmButton: h.isPending || !s.trim(),
2276
- children: /*#__PURE__*/ B(f, {
2276
+ children: /*#__PURE__*/ B(O, {
2277
2277
  direction: "vertical",
2278
2278
  gap: "6",
2279
2279
  children: [
@@ -2281,7 +2281,7 @@ var Se = (e, t) => ({
2281
2281
  className: "text-theme-default",
2282
2282
  children: /*#__PURE__*/ z(W, { id: "ASJMIw" })
2283
2283
  }),
2284
- /*#__PURE__*/ z(C, {
2284
+ /*#__PURE__*/ z(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__*/ z(E, {
2298
+ /*#__PURE__*/ z(b, {
2299
2299
  label: i._({ id: "ifQSTI" }),
2300
2300
  helptext: i._({ id: "WM+Nm7" }),
2301
2301
  checked: d,
@@ -2305,30 +2305,30 @@ var Se = (e, t) => ({
2305
2305
  ]
2306
2306
  })
2307
2307
  }) : null;
2308
- }, Ge = ({ buckets: e, createModalOpen: t, setCreateModalOpen: n, onCreateSuccess: i, onCreateError: a, onEmptySuccess: l, onEmptyError: u, onDeleteSuccess: d, onDeleteError: f, selectedBuckets: p, setSelectedBuckets: m, hasAnyBulkAction: h = !0 }) => {
2309
- let { projectId: g, provider: v, storageType: y } = oe({ strict: !1 }), { i18n: b, _: x } = G(), C = U(), T = ae(null), [D, O] = H(0), [k, A] = H(null), [j, M] = H(null);
2308
+ }, Ge = ({ 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 } = oe({ strict: !1 }), { i18n: S, _: C } = G(), w = U(), E = ae(null), [D, O] = H(0), [k, A] = H(null), [j, M] = H(null);
2310
2310
  ie(() => {
2311
- T.current && O(T.current.offsetWidth - T.current.clientWidth);
2311
+ E.current && O(E.current.offsetWidth - E.current.clientWidth);
2312
2312
  }, [e.length]);
2313
2313
  let N = (e) => {
2314
2314
  try {
2315
2315
  return new Date(e).toLocaleString();
2316
2316
  } catch {
2317
- return b._({ id: "fj5byd" });
2317
+ return S._({ id: "fj5byd" });
2318
2318
  }
2319
2319
  }, P = q({
2320
2320
  count: e.length,
2321
- getScrollElement: () => T.current,
2321
+ getScrollElement: () => E.current,
2322
2322
  estimateSize: () => 48,
2323
2323
  overscan: 10
2324
2324
  }), ee = (e) => {
2325
- p.includes(e) ? m(p.filter((t) => t !== e)) : m([...p, e]);
2325
+ h.includes(e) ? g(h.filter((t) => t !== e)) : g([...h, e]);
2326
2326
  };
2327
- if (!e || e.length === 0) return /*#__PURE__*/ z(w, {
2327
+ if (!e || e.length === 0) return /*#__PURE__*/ z(u, {
2328
2328
  columns: 4,
2329
2329
  className: "buckets",
2330
2330
  "data-testid": "no-buckets",
2331
- children: /*#__PURE__*/ z(c, { children: /*#__PURE__*/ z(o, {
2331
+ children: /*#__PURE__*/ z(i, { children: /*#__PURE__*/ z(o, {
2332
2332
  colSpan: 4,
2333
2333
  children: /*#__PURE__*/ B("div", {
2334
2334
  className: "py-8 text-center",
@@ -2342,28 +2342,28 @@ var Se = (e, t) => ({
2342
2342
  })
2343
2343
  }) })
2344
2344
  });
2345
- let I = h ? 6 : 5, ne = h ? "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";
2345
+ let I = _ ? 6 : 5, ne = _ ? "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
2346
  return /*#__PURE__*/ B(R, { children: [
2347
2347
  /*#__PURE__*/ B("div", {
2348
2348
  className: "relative",
2349
2349
  children: [/*#__PURE__*/ z("div", {
2350
2350
  style: { paddingRight: `${D}px` },
2351
- children: /*#__PURE__*/ z(w, {
2351
+ children: /*#__PURE__*/ z(u, {
2352
2352
  columns: I,
2353
2353
  gridColumnTemplate: ne,
2354
2354
  className: "buckets",
2355
2355
  "data-testid": "buckets-table-header",
2356
- children: /*#__PURE__*/ B(c, { children: [
2357
- h && /*#__PURE__*/ z(s, {}),
2358
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "BTsbBe" }) }),
2359
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "sxbP3b" }) }),
2360
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "sjMCOP" }) }),
2361
- /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(W, { id: "hgpMHD" }) }),
2362
- /*#__PURE__*/ z(s, { style: { marginRight: `-${D}px` } })
2356
+ children: /*#__PURE__*/ B(i, { children: [
2357
+ _ && /*#__PURE__*/ z(d, {}),
2358
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "BTsbBe" }) }),
2359
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "sxbP3b" }) }),
2360
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "sjMCOP" }) }),
2361
+ /*#__PURE__*/ z(d, { children: /*#__PURE__*/ z(W, { id: "hgpMHD" }) }),
2362
+ /*#__PURE__*/ z(d, { style: { marginRight: `-${D}px` } })
2363
2363
  ] })
2364
2364
  })
2365
2365
  }), /*#__PURE__*/ z("div", {
2366
- ref: T,
2366
+ ref: E,
2367
2367
  className: "overflow-auto",
2368
2368
  style: { height: "calc(100vh - 490px)" },
2369
2369
  "data-testid": "buckets-table-body",
@@ -2373,18 +2373,18 @@ var Se = (e, t) => ({
2373
2373
  width: "100%",
2374
2374
  position: "relative"
2375
2375
  },
2376
- children: P.getVirtualItems().map((t) => {
2377
- let n = e[t.index], i = p.includes(n.name), a = () => C({
2376
+ children: P.getVirtualItems().map((n) => {
2377
+ let r = e[n.index], i = h.includes(r.name), a = () => w({
2378
2378
  to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
2379
2379
  params: {
2380
- projectId: g ?? "",
2381
- provider: v ?? "ceph",
2382
- storageType: y ?? "buckets",
2383
- containerName: n.name
2380
+ projectId: v ?? "",
2381
+ provider: y ?? "ceph",
2382
+ storageType: x ?? "buckets",
2383
+ containerName: r.name
2384
2384
  }
2385
2385
  });
2386
2386
  return /*#__PURE__*/ B("div", {
2387
- "data-index": t.index,
2387
+ "data-index": n.index,
2388
2388
  ref: P.measureElement,
2389
2389
  className: "juno-datagrid group hover:bg-theme-background-lvl-1 cursor-pointer",
2390
2390
  style: {
@@ -2392,12 +2392,12 @@ var Se = (e, t) => ({
2392
2392
  top: 0,
2393
2393
  left: 0,
2394
2394
  width: "100%",
2395
- transform: `translateY(${t.start}px)`,
2395
+ transform: `translateY(${n.start}px)`,
2396
2396
  display: "grid",
2397
2397
  gridTemplateColumns: ne,
2398
2398
  alignItems: "stretch"
2399
2399
  },
2400
- "data-testid": `bucket-row-${n.name}`,
2400
+ "data-testid": `bucket-row-${r.name}`,
2401
2401
  role: "link",
2402
2402
  tabIndex: 0,
2403
2403
  onClick: a,
@@ -2405,73 +2405,73 @@ var Se = (e, t) => ({
2405
2405
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
2406
2406
  },
2407
2407
  children: [
2408
- h && /*#__PURE__*/ z(o, {
2408
+ _ && /*#__PURE__*/ z(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__*/ z(E, {
2413
+ children: /*#__PURE__*/ z(b, {
2414
2414
  checked: i,
2415
- onChange: () => ee(n.name),
2416
- "data-testid": `select-bucket-${n.name}`
2415
+ onChange: () => ee(r.name),
2416
+ "data-testid": `select-bucket-${r.name}`
2417
2417
  })
2418
2418
  }),
2419
2419
  /*#__PURE__*/ z(o, {
2420
2420
  className: "min-w-0 overflow-hidden",
2421
2421
  children: /*#__PURE__*/ z("span", {
2422
2422
  className: "block truncate",
2423
- title: n.name,
2424
- children: n.name
2423
+ title: r.name,
2424
+ children: r.name
2425
2425
  })
2426
2426
  }),
2427
- /*#__PURE__*/ z(o, { children: n.count.toLocaleString() }),
2428
- /*#__PURE__*/ z(o, { children: N(n.last_modified || n.creationDate || "") }),
2429
- /*#__PURE__*/ z(o, { children: F(n.bytes) }),
2427
+ /*#__PURE__*/ z(o, { children: r.count.toLocaleString() }),
2428
+ /*#__PURE__*/ z(o, { children: N(r.last_modified || r.creationDate || "") }),
2429
+ /*#__PURE__*/ z(o, { children: F(r.bytes) }),
2430
2430
  /*#__PURE__*/ z(o, {
2431
2431
  onClick: (e) => e.stopPropagation(),
2432
- children: /*#__PURE__*/ z(r, { children: /*#__PURE__*/ B(_, { children: [
2433
- /*#__PURE__*/ z(S, {
2434
- label: b._({ id: "v0hPHE" }),
2432
+ children: /*#__PURE__*/ z(T, { children: /*#__PURE__*/ B(t, { children: [
2433
+ /*#__PURE__*/ z(m, {
2434
+ label: S._({ id: "v0hPHE" }),
2435
2435
  onClick: a,
2436
- "data-testid": `show-details-action-${n.name}`
2436
+ "data-testid": `show-details-action-${r.name}`
2437
2437
  }),
2438
- /*#__PURE__*/ z(S, {
2439
- label: b._({ id: "N2S1rs" }),
2440
- onClick: () => A(n),
2441
- "data-testid": `empty-action-${n.name}`
2438
+ /*#__PURE__*/ z(m, {
2439
+ label: S._({ id: "N2S1rs" }),
2440
+ onClick: () => A(r),
2441
+ "data-testid": `empty-action-${r.name}`
2442
2442
  }),
2443
- /*#__PURE__*/ z(S, {
2444
- label: b._({ id: "cnGeoo" }),
2445
- onClick: () => M(n),
2446
- "data-testid": `delete-action-${n.name}`
2443
+ /*#__PURE__*/ z(m, {
2444
+ label: S._({ id: "cnGeoo" }),
2445
+ onClick: () => M(r),
2446
+ "data-testid": `delete-action-${r.name}`
2447
2447
  })
2448
2448
  ] }) })
2449
2449
  })
2450
2450
  ]
2451
- }, n.name);
2451
+ }, r.name);
2452
2452
  })
2453
2453
  })
2454
2454
  })]
2455
2455
  }),
2456
2456
  /*#__PURE__*/ z(We, {
2457
- isOpen: t,
2458
- onClose: () => n(!1),
2459
- onSuccess: i,
2460
- onError: a
2457
+ isOpen: n,
2458
+ onClose: () => r(!1),
2459
+ onSuccess: a,
2460
+ onError: s
2461
2461
  }),
2462
2462
  /*#__PURE__*/ z(L, {
2463
2463
  isOpen: k !== null,
2464
2464
  bucket: k,
2465
2465
  onClose: () => A(null),
2466
- onSuccess: l,
2467
- onError: u
2466
+ onSuccess: c,
2467
+ onError: l
2468
2468
  }),
2469
2469
  /*#__PURE__*/ z(te, {
2470
2470
  isOpen: j !== null,
2471
2471
  bucket: j,
2472
2472
  onClose: () => M(null),
2473
- onSuccess: d,
2474
- onError: f
2473
+ onSuccess: f,
2474
+ onError: p
2475
2475
  })
2476
2476
  ] });
2477
2477
  }, Ke = (e) => ({
@@ -2552,12 +2552,12 @@ var Se = (e, t) => ({
2552
2552
  })
2553
2553
  };
2554
2554
  }, $e = 20, et = ({ isOpen: e, buckets: t, onClose: n, onComplete: r }) => {
2555
- let { i18n: i, _: a } = G(), o = I(), [s, c] = H(null), [l, d] = H(""), p = M.useUtils(), m = M.storage.ceph.objects.deleteAll.useMutation(), h = () => {
2556
- m.reset(), c(null), d(""), n();
2555
+ let { i18n: i, _: a } = G(), o = I(), [c, l] = H(null), [u, d] = H(""), p = M.useUtils(), m = M.storage.ceph.objects.deleteAll.useMutation(), h = () => {
2556
+ m.reset(), l(null), d(""), n();
2557
2557
  }, g = async () => {
2558
2558
  let e = 0, n = 0, i = [], a = t.length;
2559
2559
  for (let r = 0; r < t.length; r++) {
2560
- c({
2560
+ l({
2561
2561
  current: r + 1,
2562
2562
  total: a
2563
2563
  });
@@ -2580,8 +2580,8 @@ var Se = (e, t) => ({
2580
2580
  }), h();
2581
2581
  };
2582
2582
  if (!e || t.length === 0) return null;
2583
- let _ = t.length, v = t.slice(0, $e), y = _ - v.length, b = m.isPending || s !== null, x = s?.current, S = s?.total, w = l === "empty";
2584
- return /*#__PURE__*/ z(j, {
2583
+ 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__*/ z(w, {
2585
2585
  title: /*#__PURE__*/ z(W, {
2586
2586
  id: "DWBWmW",
2587
2587
  values: { totalCount: _ }
@@ -2592,17 +2592,17 @@ var Se = (e, t) => ({
2592
2592
  confirmButtonVariant: "primary-danger",
2593
2593
  cancelButtonLabel: i._({ id: "dEgA5A" }),
2594
2594
  onConfirm: g,
2595
- disableConfirmButton: b || !w,
2595
+ disableConfirmButton: b || !C,
2596
2596
  disableCancelButton: b,
2597
2597
  disableCloseButton: b,
2598
2598
  size: "small",
2599
- children: b ? /*#__PURE__*/ B(f, {
2599
+ children: b ? /*#__PURE__*/ B(O, {
2600
2600
  direction: "vertical",
2601
2601
  distribution: "center",
2602
2602
  alignment: "center",
2603
2603
  gap: "2",
2604
2604
  className: "py-4",
2605
- children: [/*#__PURE__*/ z(u, { variant: "primary" }), s && /*#__PURE__*/ z("p", {
2605
+ children: [/*#__PURE__*/ z(s, { variant: "primary" }), c && /*#__PURE__*/ z("p", {
2606
2606
  className: "text-theme-light text-sm",
2607
2607
  children: /*#__PURE__*/ z(W, {
2608
2608
  id: "NW1XEL",
@@ -2612,7 +2612,7 @@ var Se = (e, t) => ({
2612
2612
  }
2613
2613
  })
2614
2614
  })]
2615
- }) : /*#__PURE__*/ B(f, {
2615
+ }) : /*#__PURE__*/ B(O, {
2616
2616
  direction: "vertical",
2617
2617
  gap: "4",
2618
2618
  children: [
@@ -2648,9 +2648,9 @@ var Se = (e, t) => ({
2648
2648
  })
2649
2649
  })]
2650
2650
  })] }),
2651
- /*#__PURE__*/ z(C, {
2651
+ /*#__PURE__*/ z(f, {
2652
2652
  label: i._({ id: "Ghp863" }),
2653
- value: l,
2653
+ value: u,
2654
2654
  onChange: (e) => d(e.target.value),
2655
2655
  placeholder: "empty",
2656
2656
  autoFocus: !0
@@ -2661,20 +2661,20 @@ var Se = (e, t) => ({
2661
2661
  };
2662
2662
  //#endregion
2663
2663
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/CredentialPrompt.tsx
2664
- function tt({ onSuccess: t }) {
2665
- let n = I(), r = M.useUtils(), i = M.storage.ceph.ec2Credentials.create.useMutation({
2664
+ function tt({ onSuccess: e }) {
2665
+ let t = I(), n = M.useUtils(), r = M.storage.ceph.ec2Credentials.create.useMutation({
2666
2666
  onSuccess: () => {
2667
- r.storage.ceph.ec2Credentials.list.invalidate(), t();
2667
+ n.storage.ceph.ec2Credentials.list.invalidate(), e();
2668
2668
  },
2669
- onError: (t) => {
2670
- let n = t.message;
2671
- e.error(/*#__PURE__*/ z(W, {
2669
+ onError: (e) => {
2670
+ let t = e.message;
2671
+ l.error(/*#__PURE__*/ z(W, {
2672
2672
  id: "rcBt6T",
2673
- values: { errorMessage: n }
2673
+ values: { errorMessage: t }
2674
2674
  }));
2675
2675
  }
2676
2676
  });
2677
- return /*#__PURE__*/ B(f, {
2677
+ return /*#__PURE__*/ B(O, {
2678
2678
  direction: "vertical",
2679
2679
  gap: "4",
2680
2680
  className: "mt-8 max-w-lg",
@@ -2691,10 +2691,10 @@ function tt({ onSuccess: t }) {
2691
2691
  className: "text-theme-default text-sm",
2692
2692
  children: /*#__PURE__*/ z(W, { id: "+1xG4p" })
2693
2693
  }),
2694
- /*#__PURE__*/ z("div", { children: /*#__PURE__*/ z(m, {
2695
- onClick: () => n && i.mutate({ project_id: n }),
2696
- disabled: i.isPending || !n,
2697
- children: i.isPending ? /*#__PURE__*/ z(W, { id: "k/zHK7" }) : /*#__PURE__*/ z(W, { id: "FJO48W" })
2694
+ /*#__PURE__*/ z("div", { children: /*#__PURE__*/ z(j, {
2695
+ onClick: () => t && r.mutate({ project_id: t }),
2696
+ disabled: r.isPending || !t,
2697
+ children: r.isPending ? /*#__PURE__*/ z(W, { id: "k/zHK7" }) : /*#__PURE__*/ z(W, { id: "FJO48W" })
2698
2698
  }) })
2699
2699
  ]
2700
2700
  });
@@ -2702,66 +2702,66 @@ function tt({ onSuccess: t }) {
2702
2702
  //#endregion
2703
2703
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/index.tsx
2704
2704
  var nt = () => {
2705
- let { i18n: t, i18n: n, _: i } = G(), o = I(), s = U({ from: N.fullPath }), { sortBy: c, sortDirection: l, search: d = "" } = N.useSearch(), [p, g] = H(!1), [v, y] = H(!1), [b, C] = H([]), [w, T] = H(d), D = ae(void 0);
2706
- ie(() => () => clearTimeout(D.current), []), ie(() => {
2707
- T(d);
2708
- }, [d]);
2709
- let O = (t) => {
2710
- let { message: n, ...r } = Ke(t);
2711
- e.success(n, r);
2712
- }, k = (t, n) => {
2713
- let { message: r, ...i } = qe(t, n);
2714
- e.error(r, i);
2715
- }, A = (t, n) => {
2716
- let { message: r, ...i } = Je(t, n);
2717
- e.success(r, i);
2718
- }, j = (t, n) => {
2719
- let { message: r, ...i } = Ye(t, n);
2720
- e.error(r, i);
2721
- }, P = (t) => {
2722
- let { message: n, ...r } = Xe(t);
2723
- e.success(n, r);
2724
- }, F = (t, n) => {
2725
- let { message: r, ...i } = Ze(t, n);
2726
- e.error(r, i);
2727
- }, te = ({ emptiedCount: t, totalDeleted: n, errors: r }) => {
2728
- if (r.length === 0) C([]);
2705
+ let { i18n: e, i18n: n, _: r } = G(), i = I(), a = U({ from: N.fullPath }), { sortBy: o, sortDirection: c, search: u = "" } = N.useSearch(), [d, f] = H(!1), [p, g] = H(!1), [_, v] = H([]), [y, S] = H(u), C = ae(void 0);
2706
+ ie(() => () => clearTimeout(C.current), []), ie(() => {
2707
+ S(u);
2708
+ }, [u]);
2709
+ let w = (e) => {
2710
+ let { message: t, ...n } = Ke(e);
2711
+ l.success(t, n);
2712
+ }, E = (e, t) => {
2713
+ let { message: n, ...r } = qe(e, t);
2714
+ l.error(n, r);
2715
+ }, k = (e, t) => {
2716
+ let { message: n, ...r } = Je(e, t);
2717
+ l.success(n, r);
2718
+ }, A = (e, t) => {
2719
+ let { message: n, ...r } = Ye(e, t);
2720
+ l.error(n, r);
2721
+ }, P = (e) => {
2722
+ let { message: t, ...n } = Xe(e);
2723
+ l.success(t, n);
2724
+ }, F = (e, t) => {
2725
+ let { message: n, ...r } = Ze(e, t);
2726
+ l.error(n, r);
2727
+ }, te = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
2728
+ if (n.length === 0) v([]);
2729
2729
  else {
2730
- let e = new Set(r.map((e) => e.split(": ")[0]));
2731
- C((t) => t.filter((t) => e.has(t)));
2730
+ let e = new Set(n.map((e) => e.split(": ")[0]));
2731
+ v((t) => t.filter((t) => e.has(t)));
2732
2732
  }
2733
- let { message: i, ...a } = Qe(t, n, r);
2734
- r.length > 0 ? e.warning(i, a) : e.success(i, a);
2733
+ let { message: r, ...i } = Qe(e, t, n);
2734
+ n.length > 0 ? l.warning(r, i) : l.success(r, i);
2735
2735
  }, L = {
2736
2736
  options: [
2737
2737
  {
2738
- label: t._({ id: "6YtxFj" }),
2738
+ label: e._({ id: "6YtxFj" }),
2739
2739
  value: "name"
2740
2740
  },
2741
2741
  {
2742
- label: t._({ id: "sxbP3b" }),
2742
+ label: e._({ id: "sxbP3b" }),
2743
2743
  value: "count"
2744
2744
  },
2745
2745
  {
2746
- label: t._({ id: "hgpMHD" }),
2746
+ label: e._({ id: "hgpMHD" }),
2747
2747
  value: "bytes"
2748
2748
  },
2749
2749
  {
2750
- label: t._({ id: "sjMCOP" }),
2750
+ label: e._({ id: "sjMCOP" }),
2751
2751
  value: "last_modified"
2752
2752
  }
2753
2753
  ],
2754
- sortBy: c ?? "name",
2755
- sortDirection: l ?? "asc"
2754
+ sortBy: o ?? "name",
2755
+ sortDirection: c ?? "asc"
2756
2756
  }, { data: R, isLoading: ne, error: V } = M.storage.ceph.containers.list.useQuery({
2757
- project_id: o,
2757
+ project_id: i,
2758
2758
  includeMetadata: !0
2759
2759
  }, {
2760
- enabled: !!o,
2760
+ enabled: !!i,
2761
2761
  retry: !1
2762
2762
  }), oe = (e) => [...e].sort((e, t) => {
2763
2763
  let n;
2764
- switch (c ?? "name") {
2764
+ switch (o ?? "name") {
2765
2765
  case "name":
2766
2766
  n = e.name.localeCompare(t.name);
2767
2767
  break;
@@ -2779,11 +2779,11 @@ var nt = () => {
2779
2779
  break;
2780
2780
  default: n = e.name.localeCompare(t.name);
2781
2781
  }
2782
- return (l ?? "asc") === "desc" ? -n : n;
2783
- }), K = (R || []).filter((e) => e.name.toLowerCase().includes(d.toLowerCase())), se = oe(K), q = (e) => {
2782
+ return (c ?? "asc") === "desc" ? -n : n;
2783
+ }), K = (R || []).filter((e) => e.name.toLowerCase().includes(u.toLowerCase())), se = oe(K), q = (e) => {
2784
2784
  let t = typeof e == "string" ? e : "";
2785
2785
  re(() => {
2786
- s({ search: (e) => ({
2786
+ a({ search: (e) => ({
2787
2787
  ...e,
2788
2788
  search: t || void 0
2789
2789
  }) });
@@ -2791,19 +2791,19 @@ var nt = () => {
2791
2791
  }, ce = (e) => {
2792
2792
  let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
2793
2793
  re(() => {
2794
- s({ search: (e) => ({
2794
+ a({ search: (e) => ({
2795
2795
  ...e,
2796
2796
  sortBy: t,
2797
2797
  sortDirection: n
2798
2798
  }) });
2799
2799
  });
2800
2800
  };
2801
- if (ne) return /*#__PURE__*/ B(f, {
2801
+ if (ne) return /*#__PURE__*/ B(O, {
2802
2802
  className: "absolute inset-0",
2803
2803
  distribution: "center",
2804
2804
  alignment: "center",
2805
2805
  direction: "vertical",
2806
- children: [/*#__PURE__*/ z(u, {
2806
+ children: [/*#__PURE__*/ z(s, {
2807
2807
  variant: "primary",
2808
2808
  size: "large",
2809
2809
  className: "mb-2"
@@ -2813,30 +2813,27 @@ var nt = () => {
2813
2813
  let e = V.message;
2814
2814
  if (e === "NO_CEPH_CREDENTIALS") return /*#__PURE__*/ z(tt, { onSuccess: () => window.location.reload() });
2815
2815
  let t = e.includes("Access denied") || e.includes("AccessDenied"), n = e.includes("Invalid access key") || e.includes("InvalidAccessKeyId");
2816
- return /*#__PURE__*/ z("div", {
2817
- className: "p-8",
2818
- children: /*#__PURE__*/ z("p", {
2819
- className: "text-theme-default text-sm",
2820
- children: t ? /*#__PURE__*/ z(W, { id: "HAcOOW" }) : n ? /*#__PURE__*/ z(W, { id: "xIXYTK" }) : /*#__PURE__*/ z(W, {
2821
- id: "yDAMyU",
2822
- values: { errorMessage: e }
2823
- })
2816
+ return /*#__PURE__*/ z("div", { children: /*#__PURE__*/ z("p", {
2817
+ className: "text-theme-default text-sm",
2818
+ children: t ? /*#__PURE__*/ z(W, { id: "HAcOOW" }) : n ? /*#__PURE__*/ z(W, { id: "xIXYTK" }) : /*#__PURE__*/ z(W, {
2819
+ id: "yDAMyU",
2820
+ values: { errorMessage: e }
2824
2821
  })
2825
- });
2822
+ }) });
2826
2823
  }
2827
- let J = (R || []).filter((e) => b.includes(e.name)), le = J.length > 0, ue = J.length, de = (R || []).length, fe = K.length, Y = se.map((e) => e.name), pe = Y.length > 0 && Y.every((e) => b.includes(e)), me = Y.some((e) => b.includes(e));
2824
+ let J = (R || []).filter((e) => _.includes(e.name)), le = J.length > 0, ue = J.length, de = (R || []).length, fe = K.length, Y = se.map((e) => e.name), pe = Y.length > 0 && Y.every((e) => _.includes(e)), me = Y.some((e) => _.includes(e));
2828
2825
  return /*#__PURE__*/ B("div", {
2829
2826
  className: "relative",
2830
2827
  children: [
2831
- /*#__PURE__*/ B(f, {
2828
+ /*#__PURE__*/ B(O, {
2832
2829
  direction: "vertical",
2833
2830
  children: [
2834
- /*#__PURE__*/ B(f, {
2831
+ /*#__PURE__*/ B(O, {
2835
2832
  distribution: "end",
2836
2833
  alignment: "center",
2837
2834
  gap: "2",
2838
2835
  className: "pb-2",
2839
- children: [/*#__PURE__*/ z(f, {
2836
+ children: [/*#__PURE__*/ z(O, {
2840
2837
  gap: "0.5",
2841
2838
  alignment: "center",
2842
2839
  children: /*#__PURE__*/ z(ee, {
@@ -2854,73 +2851,73 @@ var nt = () => {
2854
2851
  sortDirection: e
2855
2852
  })
2856
2853
  })
2857
- }), /*#__PURE__*/ z(m, {
2854
+ }), /*#__PURE__*/ z(j, {
2858
2855
  variant: "primary",
2859
2856
  className: "whitespace-nowrap",
2860
- onClick: () => g(!0),
2857
+ onClick: () => f(!0),
2861
2858
  children: /*#__PURE__*/ z(W, { id: "HiDAFk" })
2862
2859
  })]
2863
2860
  }),
2864
- /*#__PURE__*/ z(h, { children: /*#__PURE__*/ z(f, {
2861
+ /*#__PURE__*/ z(h, { children: /*#__PURE__*/ z(O, {
2865
2862
  direction: "vertical",
2866
2863
  gap: "2",
2867
- children: /*#__PURE__*/ z(f, {
2864
+ children: /*#__PURE__*/ z(O, {
2868
2865
  distribution: "end",
2869
2866
  alignment: "center",
2870
- children: /*#__PURE__*/ z(a, {
2871
- placeholder: t._({ id: "VeDAv2" }),
2867
+ children: /*#__PURE__*/ z(x, {
2868
+ placeholder: e._({ id: "VeDAv2" }),
2872
2869
  "data-testid": "searchbar",
2873
- value: w,
2870
+ value: y,
2874
2871
  onInput: (e) => {
2875
2872
  let t = e.currentTarget.value;
2876
- T(t), clearTimeout(D.current), D.current = window.setTimeout(() => q(t), 500);
2873
+ S(t), clearTimeout(C.current), C.current = window.setTimeout(() => q(t), 500);
2877
2874
  },
2878
2875
  onSearch: (e) => {
2879
- clearTimeout(D.current), q(typeof e == "string" ? e : "");
2876
+ clearTimeout(C.current), q(typeof e == "string" ? e : "");
2880
2877
  },
2881
2878
  onClear: () => {
2882
- clearTimeout(D.current), T(""), q("");
2879
+ clearTimeout(C.current), S(""), q("");
2883
2880
  }
2884
2881
  })
2885
2882
  })
2886
2883
  }) }),
2887
- /*#__PURE__*/ z(h, { children: /*#__PURE__*/ B(f, {
2884
+ /*#__PURE__*/ z(h, { children: /*#__PURE__*/ B(O, {
2888
2885
  distribution: "start",
2889
2886
  gap: "2",
2890
2887
  alignment: "center",
2891
2888
  className: "text-sm",
2892
- children: [/*#__PURE__*/ B(f, {
2889
+ children: [/*#__PURE__*/ B(O, {
2893
2890
  gap: "2",
2894
2891
  alignment: "center",
2895
- children: [/*#__PURE__*/ z(E, {
2892
+ children: [/*#__PURE__*/ z(b, {
2896
2893
  checked: pe,
2897
2894
  indeterminate: me && !pe,
2898
2895
  onChange: () => {
2899
- C(pe ? (e) => e.filter((e) => !Y.includes(e)) : (e) => [...new Set([...e, ...Y])]);
2896
+ v(pe ? (e) => e.filter((e) => !Y.includes(e)) : (e) => [...new Set([...e, ...Y])]);
2900
2897
  }
2901
- }), /*#__PURE__*/ B(r, {
2898
+ }), /*#__PURE__*/ B(T, {
2902
2899
  className: "flex items-center",
2903
- children: [/*#__PURE__*/ z(x, {
2900
+ children: [/*#__PURE__*/ z(D, {
2904
2901
  as: "div",
2905
- children: /*#__PURE__*/ z(m, {
2902
+ children: /*#__PURE__*/ z(j, {
2906
2903
  disabled: !le,
2907
2904
  size: "small",
2908
2905
  icon: "moreVert",
2909
- label: t._({ id: "7L01XJ" })
2906
+ label: e._({ id: "7L01XJ" })
2910
2907
  })
2911
- }), le && /*#__PURE__*/ z(_, { children: /*#__PURE__*/ z(S, {
2908
+ }), le && /*#__PURE__*/ z(t, { children: /*#__PURE__*/ z(m, {
2912
2909
  disabled: !le,
2913
- label: n._(t._({
2910
+ label: n._(e._({
2914
2911
  id: "P2tWBZ",
2915
2912
  values: { selectedCount: ue }
2916
2913
  })),
2917
- onClick: () => y(!0)
2914
+ onClick: () => g(!0)
2918
2915
  }) })]
2919
2916
  })]
2920
2917
  }), /*#__PURE__*/ z("div", {
2921
2918
  className: "text-theme-light flex items-center gap-1",
2922
2919
  "data-testid": "buckets-info-block",
2923
- children: d.trim() ? /*#__PURE__*/ z(W, {
2920
+ children: u.trim() ? /*#__PURE__*/ z(W, {
2924
2921
  id: "xOvKAE",
2925
2922
  values: {
2926
2923
  totalCount: de,
@@ -2936,22 +2933,22 @@ var nt = () => {
2936
2933
  }),
2937
2934
  /*#__PURE__*/ z(Ge, {
2938
2935
  buckets: se,
2939
- createModalOpen: p,
2940
- setCreateModalOpen: g,
2941
- onCreateSuccess: O,
2942
- onCreateError: k,
2943
- onEmptySuccess: A,
2944
- onEmptyError: j,
2936
+ createModalOpen: d,
2937
+ setCreateModalOpen: f,
2938
+ onCreateSuccess: w,
2939
+ onCreateError: E,
2940
+ onEmptySuccess: k,
2941
+ onEmptyError: A,
2945
2942
  onDeleteSuccess: P,
2946
2943
  onDeleteError: F,
2947
- selectedBuckets: b,
2948
- setSelectedBuckets: C,
2944
+ selectedBuckets: _,
2945
+ setSelectedBuckets: v,
2949
2946
  hasAnyBulkAction: !0
2950
2947
  }),
2951
2948
  /*#__PURE__*/ z(et, {
2952
- isOpen: v,
2949
+ isOpen: p,
2953
2950
  buckets: J,
2954
- onClose: () => y(!1),
2951
+ onClose: () => g(!1),
2955
2952
  onComplete: te
2956
2953
  })
2957
2954
  ]
@@ -3002,4 +2999,4 @@ var it = () => /*#__PURE__*/ z(rt, {});
3002
2999
  //#endregion
3003
3000
  export { it as component };
3004
3001
 
3005
- //# sourceMappingURL=_storageType-BrHDa2bD.mjs.map
3002
+ //# sourceMappingURL=_storageType-Bb6YZgXf.mjs.map