@cobaltcore-dev/aurora 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +160 -20
  2. package/dist/client/AuroraApp.d.ts +38 -0
  3. package/dist/client/{ContentHeader-kx1Th5Sq.mjs → ContentHeader-DqsGNvtD.mjs} +17 -17
  4. package/dist/client/{ContentHeader-kx1Th5Sq.mjs.map → ContentHeader-DqsGNvtD.mjs.map} +1 -1
  5. package/dist/client/{DeleteFlavorModal-C3cb7YiJ.mjs → DeleteFlavorModal-C3m7bQJu.mjs} +163 -163
  6. package/dist/client/{DeleteFlavorModal-C3cb7YiJ.mjs.map → DeleteFlavorModal-C3m7bQJu.mjs.map} +1 -1
  7. package/dist/client/{EditSecurityGroupModal-CpP54WIK.mjs → EditSecurityGroupModal-DKusxfta.mjs} +18 -18
  8. package/dist/client/{EditSecurityGroupModal-CpP54WIK.mjs.map → EditSecurityGroupModal-DKusxfta.mjs.map} +1 -1
  9. package/dist/client/{FiltersInput-DxcyR6Bp.mjs → FiltersInput-GzR4D0q6.mjs} +21 -21
  10. package/dist/client/{FiltersInput-DxcyR6Bp.mjs.map → FiltersInput-GzR4D0q6.mjs.map} +1 -1
  11. package/dist/client/{FloatingIpActionModals-BP8RWHbu.mjs → FloatingIpActionModals-CRvROJ3H.mjs} +51 -51
  12. package/dist/client/{FloatingIpActionModals-BP8RWHbu.mjs.map → FloatingIpActionModals-CRvROJ3H.mjs.map} +1 -1
  13. package/dist/client/{ImageToastNotifications-TZ3EfQg-.mjs → ImageToastNotifications-BuDXpTkl.mjs} +344 -344
  14. package/dist/client/{ImageToastNotifications-TZ3EfQg-.mjs.map → ImageToastNotifications-BuDXpTkl.mjs.map} +1 -1
  15. package/dist/client/{RouteError-QSV7qOoJ.mjs → RouteError-DVAiT0mT.mjs} +2 -2
  16. package/dist/client/{RouteError-QSV7qOoJ.mjs.map → RouteError-DVAiT0mT.mjs.map} +1 -1
  17. package/dist/client/{SortInput-CYv2_Pur.mjs → SortInput-VK7IYqQv.mjs} +6 -6
  18. package/dist/client/{SortInput-CYv2_Pur.mjs.map → SortInput-VK7IYqQv.mjs.map} +1 -1
  19. package/dist/client/_auth-DXJkv9QO.mjs.map +1 -1
  20. package/dist/client/{_flavorId-C2x43-6S.mjs → _flavorId-B9Vqkraj.mjs} +8 -8
  21. package/dist/client/{_flavorId-C2x43-6S.mjs.map → _flavorId-B9Vqkraj.mjs.map} +1 -1
  22. package/dist/client/{_flavorId-CR8ZUI-P.mjs → _flavorId-CFpNGz52.mjs} +62 -62
  23. package/dist/client/{_flavorId-CR8ZUI-P.mjs.map → _flavorId-CFpNGz52.mjs.map} +1 -1
  24. package/dist/client/{_floatingIpId-BCk41_Lb.mjs → _floatingIpId-B5GMSLeQ.mjs} +2 -2
  25. package/dist/client/{_floatingIpId-BCk41_Lb.mjs.map → _floatingIpId-B5GMSLeQ.mjs.map} +1 -1
  26. package/dist/client/{_floatingIpId-BGrOAmPT.mjs → _floatingIpId-C2-BeRmF.mjs} +27 -27
  27. package/dist/client/{_floatingIpId-BGrOAmPT.mjs.map → _floatingIpId-C2-BeRmF.mjs.map} +1 -1
  28. package/dist/client/_imageId-9NZytfNs.mjs +534 -0
  29. package/dist/client/{_imageId-CvfD832b.mjs.map → _imageId-9NZytfNs.mjs.map} +1 -1
  30. package/dist/client/_pcaId-BwTvJJgh.mjs +479 -0
  31. package/dist/client/_pcaId-BwTvJJgh.mjs.map +1 -0
  32. package/dist/client/{_pcaId-DOHycvCf.mjs → _pcaId-DUHQd0rB.mjs} +2 -2
  33. package/dist/client/{_pcaId-DOHycvCf.mjs.map → _pcaId-DUHQd0rB.mjs.map} +1 -1
  34. package/dist/client/{_projectId-DOgwFiqD.mjs → _projectId-B_2sZKk-.mjs} +2 -2
  35. package/dist/client/{_projectId-DOgwFiqD.mjs.map → _projectId-B_2sZKk-.mjs.map} +1 -1
  36. package/dist/client/{_projectId-MxcHrXW4.mjs → _projectId-CLgClx24.mjs} +3 -3
  37. package/dist/client/{_projectId-MxcHrXW4.mjs.map → _projectId-CLgClx24.mjs.map} +1 -1
  38. package/dist/client/_projectId-cW9aQ4Ag.mjs +271 -0
  39. package/dist/client/_projectId-cW9aQ4Ag.mjs.map +1 -0
  40. package/dist/client/{_securityGroupId-KKw4RPdH.mjs → _securityGroupId-DYxmXUOP.mjs} +319 -319
  41. package/dist/client/{_securityGroupId-KKw4RPdH.mjs.map → _securityGroupId-DYxmXUOP.mjs.map} +1 -1
  42. package/dist/client/{_securityGroupId-CJJanWiY.mjs → _securityGroupId-fhK1CuZh.mjs} +2 -2
  43. package/dist/client/{_securityGroupId-CJJanWiY.mjs.map → _securityGroupId-fhK1CuZh.mjs.map} +1 -1
  44. package/dist/client/{_storageType-DYjo-6ej.mjs → _storageType-2_fau4B5.mjs} +698 -698
  45. package/dist/client/{_storageType-DYjo-6ej.mjs.map → _storageType-2_fau4B5.mjs.map} +1 -1
  46. package/dist/client/{_storageType-4wSxI__0.mjs → _storageType-dRTFMKG3.mjs} +2 -2
  47. package/dist/client/{_storageType-4wSxI__0.mjs.map → _storageType-dRTFMKG3.mjs.map} +1 -1
  48. package/dist/client/{about-Bo9vxGHy.mjs → about-Nsxkyh9U.mjs} +2 -2
  49. package/dist/client/{about-Bo9vxGHy.mjs.map → about-Nsxkyh9U.mjs.map} +1 -1
  50. package/dist/client/{build-DeJcDjPi.mjs → build-BdRRmNf5.mjs} +3290 -3274
  51. package/dist/client/{build-DeJcDjPi.mjs.map → build-BdRRmNf5.mjs.map} +1 -1
  52. package/dist/client/{constants-BmcGYeR-.mjs → constants-J5nm9hbP.mjs} +15 -15
  53. package/dist/client/{constants-BmcGYeR-.mjs.map → constants-J5nm9hbP.mjs.map} +1 -1
  54. package/dist/client/{flavors-BxFVqgnb.mjs → flavors-_P7R-CeT.mjs} +2 -2
  55. package/dist/client/{flavors-BxFVqgnb.mjs.map → flavors-_P7R-CeT.mjs.map} +1 -1
  56. package/dist/client/{flavors-CfdgjsZY.mjs → flavors-m1qDHzeS.mjs} +238 -221
  57. package/dist/client/flavors-m1qDHzeS.mjs.map +1 -0
  58. package/dist/client/{floatingips-ByRb82wS.mjs → floatingips-Dq4DXQYb.mjs} +90 -90
  59. package/dist/client/{floatingips-ByRb82wS.mjs.map → floatingips-Dq4DXQYb.mjs.map} +1 -1
  60. package/dist/client/{images-CenluYV8.mjs → images-CpM-T_jM.mjs} +2 -2
  61. package/dist/client/{images-CenluYV8.mjs.map → images-CpM-T_jM.mjs.map} +1 -1
  62. package/dist/client/images-DHmVgQAh2.mjs +1890 -0
  63. package/dist/client/images-DHmVgQAh2.mjs.map +1 -0
  64. package/dist/client/{images-C_dX7nY6.mjs → images-Dbjo4yKn.mjs} +2 -2
  65. package/dist/client/{images-C_dX7nY6.mjs.map → images-Dbjo4yKn.mjs.map} +1 -1
  66. package/dist/client/index.d.ts +1 -1
  67. package/dist/client/index.js +390 -356
  68. package/dist/client/index.js.map +1 -1
  69. package/dist/client/{objects-gxSjvbvF.mjs → objects-DKWp9RtR.mjs} +2 -2
  70. package/dist/client/{objects-gxSjvbvF.mjs.map → objects-DKWp9RtR.mjs.map} +1 -1
  71. package/dist/client/{objects-BJM6YeuF.mjs → objects-DaCuy_CB.mjs} +1156 -1156
  72. package/dist/client/{objects-BJM6YeuF.mjs.map → objects-DaCuy_CB.mjs.map} +1 -1
  73. package/dist/client/{pca-Bl8NmoVZ.mjs → pca-C8zWTSSt.mjs} +2 -2
  74. package/dist/client/{pca-Bl8NmoVZ.mjs.map → pca-C8zWTSSt.mjs.map} +1 -1
  75. package/dist/client/pca-CK5-j7Kk.mjs +202 -0
  76. package/dist/client/pca-CK5-j7Kk.mjs.map +1 -0
  77. package/dist/client/{projects-pe2_dCnV.mjs → projects-CHYn7L5e.mjs} +2 -2
  78. package/dist/client/{projects-pe2_dCnV.mjs.map → projects-CHYn7L5e.mjs.map} +1 -1
  79. package/dist/client/{projects-D2iewAzu.mjs → projects-CeLhtLvf.mjs} +2 -2
  80. package/dist/client/{projects-D2iewAzu.mjs.map → projects-CeLhtLvf.mjs.map} +1 -1
  81. package/dist/client/{projects-CgclWI16.mjs → projects-ClViaUuv.mjs} +11 -11
  82. package/dist/client/{projects-CgclWI16.mjs.map → projects-ClViaUuv.mjs.map} +1 -1
  83. package/dist/client/{_projectId-BDSWnMGj.mjs → routeInfo-DlDJZnpg.mjs} +34 -8
  84. package/dist/client/routeInfo-DlDJZnpg.mjs.map +1 -0
  85. package/dist/client/{securitygroups-DahZkVYQ.mjs → securitygroups-CNFLu9zS.mjs} +112 -112
  86. package/dist/client/{securitygroups-DahZkVYQ.mjs.map → securitygroups-CNFLu9zS.mjs.map} +1 -1
  87. package/dist/client/{useListWithFiltering-DaYcu5AB.mjs → useListWithFiltering-v2A0-SZb.mjs} +9 -9
  88. package/dist/client/{useListWithFiltering-DaYcu5AB.mjs.map → useListWithFiltering-v2A0-SZb.mjs.map} +1 -1
  89. package/dist/server/index.d.ts +576 -2
  90. package/dist/server/index.js +59 -217
  91. package/package.json +4 -5
  92. package/dist/client/_imageId-CvfD832b.mjs +0 -534
  93. package/dist/client/_pcaId-BxBt5DXi.mjs +0 -459
  94. package/dist/client/_pcaId-BxBt5DXi.mjs.map +0 -1
  95. package/dist/client/_projectId-BDSWnMGj.mjs.map +0 -1
  96. package/dist/client/_projectId-DS4nR59B.mjs +0 -299
  97. package/dist/client/_projectId-DS4nR59B.mjs.map +0 -1
  98. package/dist/client/flavors-CfdgjsZY.mjs.map +0 -1
  99. package/dist/client/images-CKqIXUq52.mjs +0 -1873
  100. package/dist/client/images-CKqIXUq52.mjs.map +0 -1
  101. package/dist/client/pca-RSiWpJs9.mjs +0 -182
  102. package/dist/client/pca-RSiWpJs9.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { B as e, C as t, F as n, G as r, J as i, M as a, P as o, Q as s, R as c, S as l, U as u, Z as d, _ as f, at as p, ct as m, et as h, f as g, i as _, it as v, k as y, l as b, n as x, nt as S, ot as C, r as w, st as T, tt as E, w as D } from "./build-DeJcDjPi.mjs";
1
+ import { $ as e, A as t, C as n, D as r, G as i, H as a, J as o, L as s, N as c, T as l, U as u, V as d, Y as f, _ as p, c as m, ct as h, d as g, et as _, f as v, it as y, k as b, lt as x, m as S, nt as C, o as w, ot as T, rt as E, t as D } from "./build-BdRRmNf5.mjs";
2
2
  import { r as O } from "./trpcClient-BzPUgiM2.mjs";
3
- import { t as k } from "./_storageType-4wSxI__0.mjs";
4
- import { t as A } from "./ContentHeader-kx1Th5Sq.mjs";
5
- import { t as j } from "./SortInput-CYv2_Pur.mjs";
3
+ import { t as k } from "./_storageType-dRTFMKG3.mjs";
4
+ import { t as A } from "./ContentHeader-DqsGNvtD.mjs";
5
+ import { t as j } from "./SortInput-VK7IYqQv.mjs";
6
6
  import { t as M } from "./formatBytes-CZv_XyCY.mjs";
7
7
  import { t as N } from "./useProjectId-DBc5lpoU.mjs";
8
8
  import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
@@ -14,33 +14,33 @@ import { ErrorBoundary as te } from "react-error-boundary";
14
14
  import { useVirtualizer as ne } from "@tanstack/react-virtual";
15
15
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/CreateContainerModal.tsx
16
16
  var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLength: i = 256 }) => {
17
- let { i18n: a, _: o } = W(), c = N(), [l, d] = V(""), [f, p] = V(null), m = O.useUtils(), h = O.storage.swift.createContainer.useMutation({
17
+ let { i18n: a, _: o } = W(), s = N(), [c, l] = V(""), [u, d] = V(null), p = O.useUtils(), m = O.storage.swift.createContainer.useMutation({
18
18
  onSuccess: () => {
19
- m.storage.swift.listContainers.invalidate();
20
- let e = l.trim();
19
+ p.storage.swift.listContainers.invalidate();
20
+ let e = c.trim();
21
21
  n?.(e);
22
22
  },
23
23
  onError: (e) => {
24
- r?.(l.trim(), e.message);
24
+ r?.(c.trim(), e.message);
25
25
  },
26
26
  onSettled: () => {
27
27
  g();
28
28
  }
29
29
  }), g = () => {
30
- d(""), p(null), h.reset(), t();
31
- }, _ = (e) => e.trim() ? e.length > i ? (p(a._({
30
+ l(""), d(null), m.reset(), t();
31
+ }, _ = (e) => e.trim() ? e.length > i ? (d(a._({
32
32
  id: "r5SQFW",
33
33
  values: { maxContainerNameLength: i }
34
- })), !1) : e.includes("/") ? (p(a._({ id: "9J93Xr" })), !1) : (p(null), !0) : (p(a._({ id: "JNGYAW" })), !1), v = (e) => {
34
+ })), !1) : e.includes("/") ? (d(a._({ id: "9J93Xr" })), !1) : (d(null), !0) : (d(a._({ id: "JNGYAW" })), !1), v = (e) => {
35
35
  let t = e.target.value;
36
- d(t), f && _(t);
36
+ l(t), u && _(t);
37
37
  }, y = () => {
38
- _(l) && h.mutate({
39
- project_id: c,
40
- container: l.trim()
38
+ _(c) && m.mutate({
39
+ project_id: s,
40
+ container: c.trim()
41
41
  });
42
42
  };
43
- return e ? /*#__PURE__*/ F(w, {
43
+ return e ? /*#__PURE__*/ F(h, {
44
44
  title: a._({ id: "vTh35P" }),
45
45
  open: e,
46
46
  onCancel: g,
@@ -48,65 +48,65 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
48
48
  onConfirm: y,
49
49
  cancelButtonLabel: a._({ id: "dEgA5A" }),
50
50
  size: "small",
51
- disableConfirmButton: h.isPending || !l.trim(),
52
- children: /*#__PURE__*/ I(s, {
51
+ disableConfirmButton: m.isPending || !c.trim(),
52
+ children: /*#__PURE__*/ I(f, {
53
53
  direction: "vertical",
54
54
  gap: "6",
55
55
  children: [/*#__PURE__*/ F("p", {
56
56
  className: "text-theme-default",
57
57
  children: /*#__PURE__*/ F(U, { id: "ne/GWZ" })
58
- }), /*#__PURE__*/ F(u, {
58
+ }), /*#__PURE__*/ F(S, {
59
59
  label: a._({ id: "SUSS9i" }),
60
60
  required: !0,
61
- value: l,
61
+ value: c,
62
62
  onChange: v,
63
63
  onKeyDown: (e) => {
64
64
  e.key === "Enter" && y();
65
65
  },
66
- invalid: !!f,
67
- errortext: f || void 0,
68
- disabled: h.isPending,
66
+ invalid: !!u,
67
+ errortext: u || void 0,
68
+ disabled: m.isPending,
69
69
  autoFocus: !0,
70
70
  placeholder: a._({ id: "W5FkH9" })
71
71
  })]
72
72
  })
73
73
  }) : null;
74
- }, re = ({ isOpen: e, container: t, onClose: i, onSuccess: a, onError: o }) => {
75
- let { i18n: l, _: d } = W(), f = N(), [p, h] = V(""), [v, x] = V(null), [S, C] = V(!1), T = B(""), E = () => {
74
+ }, re = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: o }) => {
75
+ let { i18n: l, _: u } = W(), d = N(), [g, y] = V(""), [b, C] = V(null), [w, T] = V(!1), E = B(""), D = () => {
76
76
  t && navigator.clipboard.writeText(t.name).then(() => {
77
- C(!0), setTimeout(() => C(!1), 2e3);
77
+ T(!0), setTimeout(() => T(!1), 2e3);
78
78
  });
79
79
  }, k = O.useUtils(), { data: A, isLoading: j, error: P } = O.storage.swift.listObjects.useQuery({
80
- project_id: f,
80
+ project_id: d,
81
81
  container: t?.name ?? "",
82
82
  format: "json",
83
83
  limit: 100
84
84
  }, { enabled: e && t !== null }), L = O.storage.swift.emptyContainer.useMutation({
85
85
  onSuccess: (e) => {
86
86
  k.storage.swift.listContainers.invalidate(), k.storage.swift.listObjects.invalidate({
87
- project_id: f,
88
- container: T.current
89
- }), a?.(T.current, e);
87
+ project_id: d,
88
+ container: E.current
89
+ }), r?.(E.current, e);
90
90
  },
91
91
  onError: (e) => {
92
- o?.(T.current, e.message);
92
+ o?.(E.current, e.message);
93
93
  },
94
94
  onSettled: () => {
95
95
  R();
96
96
  }
97
97
  }), R = () => {
98
- h(""), x(null), L.reset(), i();
98
+ y(""), C(null), L.reset(), n();
99
99
  }, z = (e) => {
100
100
  let t = e.target.value;
101
- h(t), v && x(null);
101
+ y(t), b && C(null);
102
102
  }, ee = () => {
103
103
  if (t) {
104
- if (p.trim() !== t.name) {
105
- x(l._({ id: "jS4B2+" }));
104
+ if (g.trim() !== t.name) {
105
+ C(l._({ id: "jS4B2+" }));
106
106
  return;
107
107
  }
108
- T.current = t.name, L.mutate({
109
- project_id: f,
108
+ E.current = t.name, L.mutate({
109
+ project_id: d,
110
110
  container: t.name
111
111
  });
112
112
  }
@@ -115,7 +115,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
115
115
  };
116
116
  if (!e || !t) return null;
117
117
  let G = A?.length ?? 0, te = !j && t.count === 0 && G === 0, ne = !j && t.count > 0 && G === 0, K = te || ne;
118
- return /*#__PURE__*/ I(w, {
118
+ return /*#__PURE__*/ I(h, {
119
119
  title: /* @__PURE__ */ I("span", {
120
120
  className: "flex max-w-[400px] items-center gap-2",
121
121
  children: [
@@ -130,11 +130,11 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
130
130
  }),
131
131
  !j && !K && /*#__PURE__*/ F("button", {
132
132
  type: "button",
133
- onClick: E,
134
- title: S ? l._({ id: "PiH3UR" }) : l._({ id: "NQU1Nn" }),
133
+ onClick: D,
134
+ title: w ? l._({ id: "PiH3UR" }) : l._({ id: "NQU1Nn" }),
135
135
  className: "text-theme-light hover:text-theme-default inline-flex items-center transition-colors",
136
- children: /*#__PURE__*/ F(b, {
137
- icon: S ? "checkCircle" : "contentCopy",
136
+ children: /*#__PURE__*/ F(m, {
137
+ icon: w ? "checkCircle" : "contentCopy",
138
138
  size: "16"
139
139
  })
140
140
  })
@@ -146,9 +146,9 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
146
146
  confirmButtonVariant: "primary-danger",
147
147
  onConfirm: K ? void 0 : ee,
148
148
  cancelButtonLabel: K ? void 0 : l._({ id: "dEgA5A" }),
149
- modalFooter: K ? /*#__PURE__*/ F(g, {
149
+ modalFooter: K ? /*#__PURE__*/ F(v, {
150
150
  className: "flex justify-end",
151
- children: /*#__PURE__*/ F(_, { children: /*#__PURE__*/ F(m, {
151
+ children: /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(p, {
152
152
  variant: "primary",
153
153
  onClick: R,
154
154
  "data-testid": "empty-info-close-button",
@@ -156,7 +156,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
156
156
  }) })
157
157
  }) : void 0,
158
158
  size: "small",
159
- disableConfirmButton: j || L.isPending || !K && !p.trim() || !K && p.trim() !== t.name,
159
+ disableConfirmButton: j || L.isPending || !K && !g.trim() || !K && g.trim() !== t.name,
160
160
  children: [P && /*#__PURE__*/ F("p", {
161
161
  className: "text-theme-error mb-4",
162
162
  children: (() => {
@@ -166,16 +166,16 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
166
166
  values: { errorMessage: e }
167
167
  });
168
168
  })()
169
- }), j ? /*#__PURE__*/ I(s, {
169
+ }), j ? /*#__PURE__*/ I(f, {
170
170
  direction: "horizontal",
171
171
  alignment: "center",
172
172
  gap: "2",
173
173
  className: "py-4",
174
- children: [/*#__PURE__*/ F(c, { size: "small" }), /*#__PURE__*/ F(U, { id: "ujK/QN" })]
174
+ children: [/*#__PURE__*/ F(a, { size: "small" }), /*#__PURE__*/ F(U, { id: "ujK/QN" })]
175
175
  }) : K && !P ? /*#__PURE__*/ F("p", {
176
176
  className: "text-theme-default py-2",
177
177
  children: te ? /*#__PURE__*/ F(U, { id: "jNm/qL" }) : /*#__PURE__*/ F(U, { id: "WefafP" })
178
- }) : P ? null : /*#__PURE__*/ I(s, {
178
+ }) : P ? null : /*#__PURE__*/ I(f, {
179
179
  direction: "vertical",
180
180
  gap: "6",
181
181
  children: [
@@ -210,41 +210,41 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
210
210
  });
211
211
  })()
212
212
  }),
213
- /*#__PURE__*/ F(y, {
213
+ /*#__PURE__*/ F(_, {
214
214
  columns: 3,
215
215
  className: "text-sm",
216
- children: /*#__PURE__*/ I(D, { children: [
217
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "6YtxFj" }) }),
218
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "Cj2Gtd" }) }),
219
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "sjMCOP" }) })
216
+ children: /*#__PURE__*/ I(c, { children: [
217
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "6YtxFj" }) }),
218
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "Cj2Gtd" }) }),
219
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "sjMCOP" }) })
220
220
  ] })
221
221
  }),
222
222
  /*#__PURE__*/ F("div", {
223
223
  className: "max-h-48 overflow-y-auto",
224
- children: /*#__PURE__*/ F(y, {
224
+ children: /*#__PURE__*/ F(_, {
225
225
  columns: 3,
226
226
  className: "text-sm",
227
- children: A.map((e) => /*#__PURE__*/ I(D, { children: [
228
- /*#__PURE__*/ F(r, {
227
+ children: A.map((e) => /*#__PURE__*/ I(c, { children: [
228
+ /*#__PURE__*/ F(i, {
229
229
  className: "max-w-[200px] truncate",
230
230
  title: e.name,
231
231
  children: e.name
232
232
  }),
233
- /*#__PURE__*/ F(r, { children: M(e.bytes) }),
234
- /*#__PURE__*/ F(r, { children: e.last_modified ? new Date(e.last_modified).toLocaleString() : l._({ id: "fj5byd" }) })
233
+ /*#__PURE__*/ F(i, { children: M(e.bytes) }),
234
+ /*#__PURE__*/ F(i, { children: e.last_modified ? new Date(e.last_modified).toLocaleString() : l._({ id: "fj5byd" }) })
235
235
  ] }, e.name))
236
236
  })
237
237
  })
238
238
  ]
239
239
  }),
240
- /*#__PURE__*/ F(u, {
240
+ /*#__PURE__*/ F(S, {
241
241
  label: l._({ id: "33F2A+" }),
242
242
  required: !0,
243
- value: p,
243
+ value: g,
244
244
  onChange: z,
245
245
  onKeyDown: H,
246
- invalid: !!v,
247
- errortext: v || void 0,
246
+ invalid: !!b,
247
+ errortext: b || void 0,
248
248
  disabled: L.isPending,
249
249
  autoFocus: !0,
250
250
  placeholder: t.name
@@ -253,13 +253,13 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
253
253
  })]
254
254
  });
255
255
  }, q = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) => {
256
- let { i18n: a, _: o } = W(), l = N(), [d, f] = V(""), [p, h] = V(null), [v, y] = V(!1), b = O.useUtils(), { data: x, isLoading: S, error: T } = O.storage.swift.listObjects.useQuery({
257
- project_id: l,
256
+ let { i18n: o, _: s } = W(), c = N(), [l, u] = V(""), [d, m] = V(null), [g, _] = V(!1), b = O.useUtils(), { data: C, isLoading: w, error: T } = O.storage.swift.listObjects.useQuery({
257
+ project_id: c,
258
258
  container: t?.name ?? "",
259
259
  format: "json",
260
260
  limit: 1
261
261
  }, { enabled: e && t !== null }), { data: E, error: D } = O.storage.swift.getContainerMetadata.useQuery({
262
- project_id: l,
262
+ project_id: c,
263
263
  container: t?.name ?? ""
264
264
  }, { enabled: e && t !== null }), k = !!(E?.versionsEnabled || E?.versionsLocation || E?.historyLocation), A = O.storage.swift.deleteContainer.useMutation({
265
265
  onSuccess: () => {
@@ -273,21 +273,21 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
273
273
  }
274
274
  });
275
275
  z(() => {
276
- e || (f(""), h(null), y(!1), A.reset());
276
+ e || (u(""), m(null), _(!1), A.reset());
277
277
  }, [e, t?.name]);
278
278
  let j = () => {
279
- f(""), h(null), y(!1), A.reset(), n();
279
+ u(""), m(null), _(!1), A.reset(), n();
280
280
  }, M = (e) => {
281
281
  let t = e.target.value;
282
- f(t), p && h(null);
282
+ u(t), d && m(null);
283
283
  }, P = () => {
284
284
  if (t && !(T || D)) {
285
- if (d.trim() !== "delete") {
286
- h(a._({ id: "b5aNMO" }));
285
+ if (l.trim() !== "delete") {
286
+ m(o._({ id: "b5aNMO" }));
287
287
  return;
288
288
  }
289
- k && !v || A.mutate({
290
- project_id: l,
289
+ k && !g || A.mutate({
290
+ project_id: c,
291
291
  container: t.name
292
292
  });
293
293
  }
@@ -295,8 +295,8 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
295
295
  e.key === "Enter" && P();
296
296
  };
297
297
  if (!e || !t) return null;
298
- let R = x?.length ?? 0, B = !S && (R > 0 || t.count > 0), ee = !S && t.count > 0 && R === 0, H = !!(T || D);
299
- return /*#__PURE__*/ I(w, {
298
+ let R = C?.length ?? 0, B = !w && (R > 0 || t.count > 0), ee = !w && t.count > 0 && R === 0, H = !!(T || D);
299
+ return /*#__PURE__*/ I(h, {
300
300
  title: /* @__PURE__ */ I("span", {
301
301
  className: "flex max-w-[400px] items-center gap-2",
302
302
  children: [/*#__PURE__*/ F("span", {
@@ -310,13 +310,13 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
310
310
  }),
311
311
  open: e,
312
312
  onCancel: j,
313
- confirmButtonLabel: B ? void 0 : a._({ id: "cnGeoo" }),
313
+ confirmButtonLabel: B ? void 0 : o._({ id: "cnGeoo" }),
314
314
  confirmButtonVariant: B ? void 0 : "primary-danger",
315
315
  onConfirm: B ? void 0 : P,
316
- cancelButtonLabel: B ? void 0 : a._({ id: "dEgA5A" }),
317
- modalFooter: B ? /*#__PURE__*/ F(g, {
316
+ cancelButtonLabel: B ? void 0 : o._({ id: "dEgA5A" }),
317
+ modalFooter: B ? /*#__PURE__*/ F(v, {
318
318
  className: "flex justify-end",
319
- children: /*#__PURE__*/ F(_, { children: /*#__PURE__*/ F(m, {
319
+ children: /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(p, {
320
320
  variant: "primary",
321
321
  onClick: j,
322
322
  "data-testid": "delete-has-objects-close-button",
@@ -324,8 +324,8 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
324
324
  }) })
325
325
  }) : void 0,
326
326
  size: "small",
327
- disableConfirmButton: S || H || A.isPending || !B && d.trim() !== "delete" || !B && k && !v,
328
- children: [(T || D) && /*#__PURE__*/ I(s, {
327
+ disableConfirmButton: w || H || A.isPending || !B && l.trim() !== "delete" || !B && k && !g,
328
+ children: [(T || D) && /*#__PURE__*/ I(f, {
329
329
  direction: "vertical",
330
330
  gap: "2",
331
331
  className: "mb-4",
@@ -350,13 +350,13 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
350
350
  });
351
351
  })()
352
352
  })]
353
- }), S ? /*#__PURE__*/ I(s, {
353
+ }), w ? /*#__PURE__*/ I(f, {
354
354
  direction: "horizontal",
355
355
  alignment: "center",
356
356
  gap: "2",
357
357
  className: "py-4",
358
- children: [/*#__PURE__*/ F(c, { size: "small" }), /*#__PURE__*/ F(U, { id: "Z3FXyt" })]
359
- }) : B ? /*#__PURE__*/ I(s, {
358
+ children: [/*#__PURE__*/ F(a, { size: "small" }), /*#__PURE__*/ F(U, { id: "Z3FXyt" })]
359
+ }) : B ? /*#__PURE__*/ I(f, {
360
360
  direction: "vertical",
361
361
  gap: "3",
362
362
  children: [/*#__PURE__*/ F("p", {
@@ -366,7 +366,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
366
366
  className: "text-theme-default",
367
367
  children: /*#__PURE__*/ F(U, { id: "x3T4pq" })
368
368
  })]
369
- }) : /*#__PURE__*/ I(s, {
369
+ }) : /*#__PURE__*/ I(f, {
370
370
  direction: "vertical",
371
371
  gap: "6",
372
372
  children: [
@@ -381,23 +381,23 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
381
381
  })
382
382
  ]
383
383
  }),
384
- k && /*#__PURE__*/ F(C, {
385
- label: a._({ id: "V/8B9A" }),
386
- checked: v,
387
- onChange: (e) => y(e.target.checked),
388
- invalid: !v
384
+ k && /*#__PURE__*/ F(y, {
385
+ label: o._({ id: "V/8B9A" }),
386
+ checked: g,
387
+ onChange: (e) => _(e.target.checked),
388
+ invalid: !g
389
389
  }),
390
- /*#__PURE__*/ F(u, {
391
- label: a._({ id: "QytzQr" }),
390
+ /*#__PURE__*/ F(S, {
391
+ label: o._({ id: "QytzQr" }),
392
392
  required: !0,
393
- value: d,
393
+ value: l,
394
394
  onChange: M,
395
395
  onKeyDown: L,
396
- invalid: !!p,
397
- errortext: p || void 0,
396
+ invalid: !!d,
397
+ errortext: d || void 0,
398
398
  disabled: A.isPending,
399
399
  autoFocus: !0,
400
- placeholder: a._({ id: "HNlEFZ" })
400
+ placeholder: o._({ id: "HNlEFZ" })
401
401
  })
402
402
  ]
403
403
  })]
@@ -409,23 +409,23 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
409
409
  "web-listings",
410
410
  "web-listings-css",
411
411
  "web-error"
412
- ]), ae = 50, oe = /^[a-zA-Z0-9!#$%&'*+\-.^_`|~]+$/, se = ({ isOpen: e, container: t, onClose: i, onSuccess: o, onError: l }) => {
413
- let { i18n: p, _: h } = W(), g = N(), { data: _, isLoading: v, isError: x, error: E } = O.storage.swift.getContainerMetadata.useQuery({
414
- project_id: g,
415
- container: t?.name ?? ""
416
- }, { enabled: e && t !== null }), k = _?.read === ".r:*,.rlistings", { data: A } = O.storage.swift.getContainerPublicUrl.useQuery({
417
- project_id: g,
418
- container: t?.name ?? ""
419
- }, { enabled: e && t !== null && k }), { data: j } = O.storage.swift.listContainers.useQuery({ project_id: g }, { enabled: e }), [M, P] = V(""), [L, ee] = V(""), H = B(null), G = R((e) => {
412
+ ]), ae = 50, oe = /^[a-zA-Z0-9!#$%&'*+\-.^_`|~]+$/, se = ({ isOpen: e, container: r, onClose: o, onSuccess: l, onError: u }) => {
413
+ let { i18n: d, _: v } = W(), b = N(), { data: x, isLoading: C, isError: T, error: E } = O.storage.swift.getContainerMetadata.useQuery({
414
+ project_id: b,
415
+ container: r?.name ?? ""
416
+ }, { enabled: e && r !== null }), k = x?.read === ".r:*,.rlistings", { data: A } = O.storage.swift.getContainerPublicUrl.useQuery({
417
+ project_id: b,
418
+ container: r?.name ?? ""
419
+ }, { enabled: e && r !== null && k }), { data: j } = O.storage.swift.listContainers.useQuery({ project_id: b }, { enabled: e }), [M, P] = V(""), [L, ee] = V(""), H = B(null), G = R((e) => {
420
420
  let t = e.target.value;
421
421
  P(t), H.current && clearTimeout(H.current), H.current = setTimeout(() => ee(t), 300);
422
- }, []), te = L.trim().length > 0 ? (j ?? []).filter((e) => e.name !== t?.name && e.name.toLowerCase().includes(L.toLowerCase())) : [], ne = te.slice(0, ae), K = te.length - ne.length, re = O.useUtils(), [q, se] = V(""), [ce, J] = V(null), [Y, le] = V(""), [ue, de] = V(null), [X, fe] = V(""), [pe, me] = V(!1), [he, Z] = V(!1), [ge, _e] = V(""), [Q, ve] = V([]), [ye, be] = V({}), [xe, Se] = V(!1), [Ce, we] = V(""), [Te, $] = V(""), [Ee, De] = V(null), [Oe, ke] = V(null);
422
+ }, []), te = L.trim().length > 0 ? (j ?? []).filter((e) => e.name !== r?.name && e.name.toLowerCase().includes(L.toLowerCase())) : [], ne = te.slice(0, ae), K = te.length - ne.length, re = O.useUtils(), [q, se] = V(""), [ce, J] = V(null), [Y, le] = V(""), [ue, de] = V(null), [X, fe] = V(""), [pe, me] = V(!1), [he, Z] = V(!1), [ge, _e] = V(""), [Q, ve] = V([]), [ye, be] = V({}), [xe, Se] = V(!1), [Ce, we] = V(""), [Te, $] = V(""), [Ee, De] = V(null), [Oe, ke] = V(null);
423
423
  z(() => {
424
- if (!_) return;
425
- se(_.quotaBytes == null ? "" : String(_.quotaBytes)), le(_.quotaCount == null ? "" : String(_.quotaCount)), Z(!!(_.versionsEnabled || _.versionsLocation || _.historyLocation)), _e(_.versionsLocation || _.historyLocation || "");
426
- let e = _.metadata ?? {};
424
+ if (!x) return;
425
+ se(x.quotaBytes == null ? "" : String(x.quotaBytes)), le(x.quotaCount == null ? "" : String(x.quotaCount)), Z(!!(x.versionsEnabled || x.versionsLocation || x.historyLocation)), _e(x.versionsLocation || x.historyLocation || "");
426
+ let e = x.metadata ?? {};
427
427
  fe(e["web-index"] ?? ""), me(e["web-listings"] === "1" || e["web-listings"] === "true");
428
- let t = _.metadata ?? {};
428
+ let t = x.metadata ?? {};
429
429
  ve(Object.entries(t).filter(([e]) => !ie.has(e)).map(([e, t]) => ({
430
430
  key: e,
431
431
  value: t,
@@ -434,29 +434,29 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
434
434
  originalKey: e,
435
435
  originalValue: t
436
436
  })));
437
- }, [_]), z(() => {
437
+ }, [x]), z(() => {
438
438
  e || Ae();
439
439
  }, [e]);
440
440
  let Ae = () => {
441
441
  se(""), J(null), le(""), de(null), fe(""), me(!1), Z(!1), _e(""), P(""), ee(""), H.current && clearTimeout(H.current), ve([]), be({}), Se(!1), we(""), $(""), De(null), ke(null), je.reset();
442
442
  }, je = O.storage.swift.updateContainerMetadata.useMutation({
443
443
  onSuccess: () => {
444
- re.storage.swift.getContainerMetadata.invalidate({ container: t.name }), re.storage.swift.listContainers.invalidate(), o?.(t.name), Ue();
444
+ re.storage.swift.getContainerMetadata.invalidate({ container: r.name }), re.storage.swift.listContainers.invalidate(), l?.(r.name), Ue();
445
445
  },
446
446
  onError: (e) => {
447
- l?.(t.name, e.message);
447
+ u?.(r.name, e.message);
448
448
  }
449
449
  }), Me = () => {
450
450
  let e = !0;
451
- return q !== "" && (isNaN(Number(q)) || Number(q) < 0) ? (J(p._({ id: "AuQtzx" })), e = !1) : J(null), Y !== "" && (isNaN(Number(Y)) || Number(Y) < 0) ? (de(p._({ id: "AuQtzx" })), e = !1) : de(null), e;
452
- }, Ne = (e, t) => e.trim() ? oe.test(e) ? /[a-zA-Z0-9]/.test(e) ? ie.has(e.toLowerCase()) ? p._({ id: "JeRXll" }) : Q.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 = () => {
451
+ return q !== "" && (isNaN(Number(q)) || Number(q) < 0) ? (J(d._({ id: "AuQtzx" })), e = !1) : J(null), Y !== "" && (isNaN(Number(Y)) || Number(Y) < 0) ? (de(d._({ id: "AuQtzx" })), e = !1) : de(null), e;
452
+ }, Ne = (e, t) => e.trim() ? oe.test(e) ? /[a-zA-Z0-9]/.test(e) ? ie.has(e.toLowerCase()) ? d._({ id: "JeRXll" }) : Q.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 = () => {
453
453
  let e = Ne(Ce);
454
454
  if (e) {
455
455
  De(e);
456
456
  return;
457
457
  }
458
458
  if (!Te.trim()) {
459
- ke(p._({ id: "hXUWyd" }));
459
+ ke(d._({ id: "hXUWyd" }));
460
460
  return;
461
461
  }
462
462
  ve([...Q, {
@@ -482,7 +482,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
482
482
  return;
483
483
  }
484
484
  if (!t.value.trim()) {
485
- be({ [`edit-${e}`]: p._({ id: "hXUWyd" }) });
485
+ be({ [`edit-${e}`]: d._({ id: "hXUWyd" }) });
486
486
  return;
487
487
  }
488
488
  ve(Q.map((t, n) => n === e ? {
@@ -517,32 +517,32 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
517
517
  return delete n[`edit-${e}`], n;
518
518
  });
519
519
  }, He = () => {
520
- if (!t || !Me()) return;
521
- let e = _?.metadata ?? {}, n = {}, r = [];
520
+ if (!r || !Me()) return;
521
+ let e = x?.metadata ?? {}, t = {}, n = [];
522
522
  Q.forEach((e) => {
523
- (e.isNew || e.value !== e.originalValue || e.key !== e.originalKey) && (n[e.key] = e.value, !e.isNew && e.originalKey && e.key !== e.originalKey && r.push(e.originalKey));
523
+ (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
524
  });
525
525
  let i = Object.keys(e).filter((e) => !ie.has(e)), a = Q.map((e) => e.originalKey).filter(Boolean);
526
526
  i.forEach((e) => {
527
- !a.includes(e) && !r.includes(e) && r.push(e);
528
- }), k && (X ? n["web-index"] = X : _?.metadata?.["web-index"] && r.push("web-index"), pe ? n["web-listings"] = "1" : _?.metadata?.["web-listings"] && r.push("web-listings"));
529
- let o = !!(_?.versionsEnabled || _?.versionsLocation || _?.historyLocation), s = _?.versionsLocation || _?.historyLocation || "";
527
+ !a.includes(e) && !n.includes(e) && n.push(e);
528
+ }), k && (X ? t["web-index"] = X : x?.metadata?.["web-index"] && n.push("web-index"), pe ? t["web-listings"] = "1" : x?.metadata?.["web-listings"] && n.push("web-listings"));
529
+ let o = !!(x?.versionsEnabled || x?.versionsLocation || x?.historyLocation), s = x?.versionsLocation || x?.historyLocation || "";
530
530
  je.mutate({
531
- project_id: g,
532
- container: t.name,
533
- metadata: n,
534
- removeMetadata: r.length ? r : void 0,
531
+ project_id: b,
532
+ container: r.name,
533
+ metadata: t,
534
+ removeMetadata: n.length ? n : void 0,
535
535
  quotaBytes: q === "" ? void 0 : Number(q),
536
536
  quotaCount: Y === "" ? void 0 : Number(Y),
537
537
  versionsLocation: he && (!o || ge !== s) && ge ? ge : void 0,
538
538
  removeVersionsLocation: !he && o ? !0 : void 0
539
539
  });
540
540
  }, Ue = () => {
541
- Ae(), i();
541
+ Ae(), o();
542
542
  };
543
- if (!e || !t) return null;
544
- let We = v || je.isPending, Ge = x && !v, Ke = Q.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) => !ie.has(e)), et = Q.length === $e.length && Q.every((e) => !e.isNew && e.key === e.originalKey && e.value === e.originalValue), tt = q === qe && Y === Je && he === Ye && ge === Xe && X === Ze && pe === Qe && et, nt = _?.quotaBytes == null ? null : `${_.quotaBytes} B`;
545
- return /*#__PURE__*/ I(w, {
543
+ if (!e || !r) return null;
544
+ let We = C || je.isPending, Ge = T && !C, Ke = Q.some((e) => e.isEditing), qe = x?.quotaBytes == null ? "" : String(x.quotaBytes), Je = x?.quotaCount == null ? "" : String(x.quotaCount), Ye = !!x?.versionsEnabled, Xe = x?.versionsLocation || x?.historyLocation || "", Ze = x?.metadata?.["web-index"] ?? "", Qe = x?.metadata?.["web-listings"] === "1" || x?.metadata?.["web-listings"] === "true", $e = Object.keys(x?.metadata ?? {}).filter((e) => !ie.has(e)), et = Q.length === $e.length && Q.every((e) => !e.isNew && e.key === e.originalKey && e.value === e.originalValue), tt = q === qe && Y === Je && he === Ye && ge === Xe && X === Ze && pe === Qe && et, nt = x?.quotaBytes == null ? null : `${x.quotaBytes} B`;
545
+ return /*#__PURE__*/ I(h, {
546
546
  title: /*#__PURE__*/ I("span", {
547
547
  className: "flex max-w-[500px] items-center gap-2",
548
548
  children: [/*#__PURE__*/ F("span", {
@@ -550,15 +550,15 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
550
550
  children: /*#__PURE__*/ F(U, { id: "y02Bu1" })
551
551
  }), /*#__PURE__*/ F("span", {
552
552
  className: "truncate",
553
- title: t.name,
554
- children: t.name
553
+ title: r.name,
554
+ children: r.name
555
555
  })]
556
556
  }),
557
557
  open: e,
558
558
  onCancel: Ue,
559
- confirmButtonLabel: p._({ id: "tfDRzk" }),
559
+ confirmButtonLabel: d._({ id: "tfDRzk" }),
560
560
  onConfirm: He,
561
- cancelButtonLabel: p._({ id: "dEgA5A" }),
561
+ cancelButtonLabel: d._({ id: "dEgA5A" }),
562
562
  size: "large",
563
563
  disableConfirmButton: We || xe || Ke || tt || Ge,
564
564
  children: [je.isError && /*#__PURE__*/ F("p", {
@@ -570,12 +570,12 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
570
570
  values: { errorMessage: e }
571
571
  });
572
572
  })()
573
- }), v ? /*#__PURE__*/ I(s, {
573
+ }), C ? /*#__PURE__*/ I(f, {
574
574
  direction: "horizontal",
575
575
  alignment: "center",
576
576
  gap: "2",
577
577
  className: "py-8",
578
- children: [/*#__PURE__*/ F(c, { size: "small" }), /*#__PURE__*/ F(U, { id: "WRZ3Mt" })]
578
+ children: [/*#__PURE__*/ F(a, { size: "small" }), /*#__PURE__*/ F(U, { id: "WRZ3Mt" })]
579
579
  }) : Ge ? /*#__PURE__*/ F("p", {
580
580
  className: "text-theme-error py-8 text-center",
581
581
  children: /*#__PURE__*/ F(U, {
@@ -584,43 +584,43 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
584
584
  })
585
585
  }) : /*#__PURE__*/ F("div", {
586
586
  className: "max-h-[65vh] overflow-y-auto pr-1 pl-1",
587
- children: /*#__PURE__*/ I(s, {
587
+ children: /*#__PURE__*/ I(f, {
588
588
  direction: "vertical",
589
589
  gap: "6",
590
590
  children: [
591
591
  /*#__PURE__*/ I("div", {
592
592
  className: "grid grid-cols-2 gap-4",
593
- children: [/*#__PURE__*/ F(u, {
594
- label: p._({ id: "z45o5B" }),
595
- value: String(t.count),
593
+ children: [/*#__PURE__*/ F(S, {
594
+ label: d._({ id: "z45o5B" }),
595
+ value: String(r.count),
596
596
  disabled: !0,
597
597
  readOnly: !0
598
- }), /*#__PURE__*/ F(u, {
599
- label: p._({ id: "/InK0O" }),
600
- value: _?.bytesUsed == null ? `${t.bytes.toLocaleString()} B` : `${_.bytesUsed.toLocaleString()} B`,
598
+ }), /*#__PURE__*/ F(S, {
599
+ label: d._({ id: "/InK0O" }),
600
+ value: x?.bytesUsed == null ? `${r.bytes.toLocaleString()} B` : `${x.bytesUsed.toLocaleString()} B`,
601
601
  disabled: !0,
602
602
  readOnly: !0
603
603
  })]
604
604
  }),
605
605
  /*#__PURE__*/ I("div", {
606
606
  className: "grid grid-cols-2 gap-4",
607
- children: [/*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(u, {
608
- label: p._({ id: "k0vAWv" }),
607
+ children: [/*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(S, {
608
+ label: d._({ id: "k0vAWv" }),
609
609
  value: Y,
610
610
  onChange: (e) => {
611
611
  le(e.target.value), ue && de(null);
612
612
  },
613
- placeholder: p._({ id: "qtoOYG" }),
613
+ placeholder: d._({ id: "qtoOYG" }),
614
614
  invalid: !!ue,
615
615
  errortext: ue ?? void 0,
616
616
  disabled: We
617
- }) }), /*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(u, {
618
- label: p._({ id: "KOpPMt" }),
617
+ }) }), /*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(S, {
618
+ label: d._({ id: "KOpPMt" }),
619
619
  value: q,
620
620
  onChange: (e) => {
621
621
  se(e.target.value), ce && J(null);
622
622
  },
623
- placeholder: p._({ id: "qtoOYG" }),
623
+ placeholder: d._({ id: "qtoOYG" }),
624
624
  invalid: !!ce,
625
625
  errortext: ce ?? void 0,
626
626
  disabled: We,
@@ -640,7 +640,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
640
640
  children: /*#__PURE__*/ F(U, { id: "Alx2/L" })
641
641
  })
642
642
  ]
643
- }), /*#__PURE__*/ F(u, {
643
+ }), /*#__PURE__*/ F(S, {
644
644
  value: A,
645
645
  disabled: !0,
646
646
  readOnly: !0
@@ -648,14 +648,14 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
648
648
  /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
649
649
  className: "text-theme-default mb-3 text-sm font-semibold",
650
650
  children: /*#__PURE__*/ F(U, { id: "6CDYXS" })
651
- }), k ? /*#__PURE__*/ I(s, {
651
+ }), k ? /*#__PURE__*/ I(f, {
652
652
  direction: "vertical",
653
653
  gap: "4",
654
- children: [/*#__PURE__*/ I(s, {
654
+ children: [/*#__PURE__*/ I(f, {
655
655
  direction: "vertical",
656
656
  gap: "1",
657
- children: [/*#__PURE__*/ F(C, {
658
- label: p._({ id: "6+7EwD" }),
657
+ children: [/*#__PURE__*/ F(y, {
658
+ label: d._({ id: "6+7EwD" }),
659
659
  checked: !!X,
660
660
  onChange: (e) => {
661
661
  e.target.checked ? X || fe("index.html") : fe("");
@@ -663,7 +663,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
663
663
  disabled: We
664
664
  }), /*#__PURE__*/ F("div", {
665
665
  className: "pl-6",
666
- children: /*#__PURE__*/ F(u, {
666
+ children: /*#__PURE__*/ F(S, {
667
667
  value: X,
668
668
  onChange: (e) => fe(e.target.value),
669
669
  placeholder: "index.html",
@@ -671,22 +671,22 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
671
671
  className: "flex-1"
672
672
  })
673
673
  })]
674
- }), /*#__PURE__*/ I(s, {
674
+ }), /*#__PURE__*/ I(f, {
675
675
  direction: "horizontal",
676
676
  alignment: "start",
677
677
  gap: "2",
678
- children: [/*#__PURE__*/ F(C, {
679
- label: p._({ id: "NeUjqc" }),
678
+ children: [/*#__PURE__*/ F(y, {
679
+ label: d._({ id: "NeUjqc" }),
680
680
  checked: pe,
681
681
  onChange: (e) => me(e.target.checked),
682
682
  disabled: We
683
- }), /*#__PURE__*/ I(T, {
683
+ }), /*#__PURE__*/ I(t, {
684
684
  triggerEvent: "hover",
685
- children: [/*#__PURE__*/ F(f, { children: /*#__PURE__*/ F(b, {
685
+ children: [/*#__PURE__*/ F(w, { children: /*#__PURE__*/ F(m, {
686
686
  icon: "help",
687
687
  size: "16",
688
688
  className: "text-theme-light cursor-help"
689
- }) }), /*#__PURE__*/ F(S, {
689
+ }) }), /*#__PURE__*/ F(n, {
690
690
  className: "z-10 max-w-[220px]",
691
691
  children: /*#__PURE__*/ F(U, { id: "Oxl1UN" })
692
692
  })]
@@ -702,23 +702,23 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
702
702
  /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
703
703
  className: "text-theme-default mb-2 text-sm font-semibold",
704
704
  children: /*#__PURE__*/ F(U, { id: "jNzyQo" })
705
- }), Ye && !ge ? /*#__PURE__*/ F(C, {
706
- label: p._({ id: "Nvfd2b" }),
705
+ }), Ye && !ge ? /*#__PURE__*/ F(y, {
706
+ label: d._({ id: "Nvfd2b" }),
707
707
  checked: !0,
708
708
  onChange: (e) => {
709
709
  e.target.checked || (Z(!1), _e(""), P(""), ee(""));
710
710
  },
711
711
  disabled: !0
712
- }) : !he && !ge ? /*#__PURE__*/ F(C, {
713
- label: p._({ id: "WyKwnD" }),
712
+ }) : !he && !ge ? /*#__PURE__*/ F(y, {
713
+ label: d._({ id: "WyKwnD" }),
714
714
  checked: !1,
715
715
  onChange: (e) => Z(e.target.checked),
716
716
  disabled: We
717
- }) : /*#__PURE__*/ I(s, {
717
+ }) : /*#__PURE__*/ I(f, {
718
718
  direction: "vertical",
719
719
  gap: "1",
720
- children: [/*#__PURE__*/ F(C, {
721
- label: p._({ id: "b0uU1G" }),
720
+ children: [/*#__PURE__*/ F(y, {
721
+ label: d._({ id: "b0uU1G" }),
722
722
  checked: he,
723
723
  onChange: (e) => {
724
724
  Z(e.target.checked), e.target.checked || (_e(""), P(""), ee(""));
@@ -726,16 +726,16 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
726
726
  disabled: We
727
727
  }), he && /*#__PURE__*/ F("div", {
728
728
  className: "pl-6",
729
- children: /*#__PURE__*/ F(d, {
729
+ children: /*#__PURE__*/ F(g, {
730
730
  value: ge,
731
731
  onChange: (e) => _e(e),
732
732
  onInputChange: G,
733
- placeholder: p._({ id: "a13wDR" }),
733
+ placeholder: d._({ id: "a13wDR" }),
734
734
  helptext: (() => {
735
- if (M.trim().length === 0) return p._({ id: "c+fUtV" });
735
+ if (M.trim().length === 0) return d._({ id: "c+fUtV" });
736
736
  if (K > 0) {
737
737
  let e = ae, t = te.length;
738
- return p._({
738
+ return d._({
739
739
  id: "qzhUb9",
740
740
  values: {
741
741
  maxOptions: e,
@@ -745,7 +745,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
745
745
  }
746
746
  })(),
747
747
  disabled: We,
748
- children: ne.map((e) => /*#__PURE__*/ F(a, {
748
+ children: ne.map((e) => /*#__PURE__*/ F(D, {
749
749
  value: e.name,
750
750
  children: e.name
751
751
  }, e.name))
@@ -753,7 +753,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
753
753
  })]
754
754
  })] }),
755
755
  /*#__PURE__*/ I("div", { children: [
756
- /*#__PURE__*/ I(s, {
756
+ /*#__PURE__*/ I(f, {
757
757
  direction: "horizontal",
758
758
  alignment: "center",
759
759
  distribution: "between",
@@ -766,11 +766,11 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
766
766
  children: /*#__PURE__*/ F(U, { id: "kuYWaD" })
767
767
  })]
768
768
  }),
769
- /*#__PURE__*/ F(s, {
769
+ /*#__PURE__*/ F(f, {
770
770
  direction: "horizontal",
771
771
  className: "jn:bg-theme-background-lvl-1 justify-end p-2",
772
- children: /*#__PURE__*/ F(m, {
773
- label: p._({ id: "sWBLli" }),
772
+ children: /*#__PURE__*/ F(p, {
773
+ label: d._({ id: "sWBLli" }),
774
774
  onClick: () => Se(!0),
775
775
  variant: "primary",
776
776
  icon: "addCircle",
@@ -778,54 +778,54 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
778
778
  disabled: xe || Ke || We
779
779
  })
780
780
  }),
781
- /*#__PURE__*/ I(y, {
781
+ /*#__PURE__*/ I(_, {
782
782
  columns: 3,
783
783
  children: [
784
- /*#__PURE__*/ I(D, { children: [
785
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "7sMeHQ" }) }),
786
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "wMHvYH" }) }),
787
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "7L01XJ" }) })
784
+ /*#__PURE__*/ I(c, { children: [
785
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "7sMeHQ" }) }),
786
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "wMHvYH" }) }),
787
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "7L01XJ" }) })
788
788
  ] }),
789
- xe && /*#__PURE__*/ I(D, { children: [
790
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(u, {
789
+ xe && /*#__PURE__*/ I(c, { children: [
790
+ /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(S, {
791
791
  value: Ce,
792
792
  onChange: (e) => {
793
793
  we(e.target.value), Ee && De(null);
794
794
  },
795
- placeholder: p._({ id: "x9AdZ8" }),
795
+ placeholder: d._({ id: "x9AdZ8" }),
796
796
  errortext: Ee ?? void 0,
797
797
  invalid: !!Ee,
798
798
  autoFocus: !0
799
799
  }) }),
800
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(u, {
800
+ /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(S, {
801
801
  value: Te,
802
802
  onChange: (e) => {
803
803
  $(e.target.value), Oe && ke(null);
804
804
  },
805
- placeholder: p._({ id: "wMHvYH" }),
805
+ placeholder: d._({ id: "wMHvYH" }),
806
806
  errortext: Oe ?? void 0,
807
807
  invalid: !!Oe
808
808
  }) }),
809
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ I(s, {
809
+ /*#__PURE__*/ F(i, { children: /*#__PURE__*/ I(f, {
810
810
  direction: "horizontal",
811
811
  gap: "2",
812
- children: [/*#__PURE__*/ F(m, {
812
+ children: [/*#__PURE__*/ F(p, {
813
813
  size: "small",
814
814
  variant: "primary",
815
815
  onClick: Pe,
816
816
  icon: "check",
817
- title: p._({ id: "tfDRzk" })
818
- }), /*#__PURE__*/ F(m, {
817
+ title: d._({ id: "tfDRzk" })
818
+ }), /*#__PURE__*/ F(p, {
819
819
  size: "small",
820
820
  variant: "subdued",
821
821
  onClick: Fe,
822
822
  icon: "close",
823
- title: p._({ id: "bzSI52" })
823
+ title: d._({ id: "bzSI52" })
824
824
  })]
825
825
  }) })
826
826
  ] }),
827
- Q.map((e, t) => /*#__PURE__*/ I(D, { children: [
828
- /*#__PURE__*/ F(r, { children: e.isEditing ? /*#__PURE__*/ F(u, {
827
+ Q.map((e, t) => /*#__PURE__*/ I(c, { children: [
828
+ /*#__PURE__*/ F(i, { children: e.isEditing ? /*#__PURE__*/ F(S, {
829
829
  value: e.key,
830
830
  onChange: (e) => Be(t, e.target.value),
831
831
  errortext: ye[`edit-${t}`],
@@ -835,7 +835,7 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
835
835
  title: e.key,
836
836
  children: e.key
837
837
  }) }),
838
- /*#__PURE__*/ F(r, { children: e.isEditing ? /*#__PURE__*/ F(u, {
838
+ /*#__PURE__*/ F(i, { children: e.isEditing ? /*#__PURE__*/ F(S, {
839
839
  value: e.value,
840
840
  onChange: (e) => Ve(t, e.target.value)
841
841
  }) : /*#__PURE__*/ F("span", {
@@ -843,46 +843,46 @@ var K = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
843
843
  title: e.value,
844
844
  children: e.value
845
845
  }) }),
846
- /*#__PURE__*/ F(r, { children: e.isEditing ? /*#__PURE__*/ I(s, {
846
+ /*#__PURE__*/ F(i, { children: e.isEditing ? /*#__PURE__*/ I(f, {
847
847
  direction: "horizontal",
848
848
  gap: "2",
849
- children: [/*#__PURE__*/ F(m, {
849
+ children: [/*#__PURE__*/ F(p, {
850
850
  size: "small",
851
851
  variant: "primary",
852
852
  onClick: () => Le(t),
853
853
  icon: "check",
854
- title: p._({ id: "tfDRzk" })
855
- }), /*#__PURE__*/ F(m, {
854
+ title: d._({ id: "tfDRzk" })
855
+ }), /*#__PURE__*/ F(p, {
856
856
  size: "small",
857
857
  variant: "subdued",
858
858
  onClick: () => Re(t),
859
859
  icon: "close",
860
- title: p._({ id: "bzSI52" })
860
+ title: d._({ id: "bzSI52" })
861
861
  })]
862
- }) : /*#__PURE__*/ I(s, {
862
+ }) : /*#__PURE__*/ I(f, {
863
863
  direction: "horizontal",
864
864
  gap: "2",
865
- children: [/*#__PURE__*/ F(m, {
865
+ children: [/*#__PURE__*/ F(p, {
866
866
  size: "small",
867
867
  variant: "subdued",
868
868
  onClick: () => Ie(t),
869
869
  icon: "edit",
870
- title: p._({ id: "ePK91l" }),
870
+ title: d._({ id: "ePK91l" }),
871
871
  disabled: xe || Ke || We
872
- }), /*#__PURE__*/ F(m, {
872
+ }), /*#__PURE__*/ F(p, {
873
873
  size: "small",
874
874
  variant: "primary-danger",
875
875
  onClick: () => ze(t),
876
876
  icon: "deleteForever",
877
- title: p._({ id: "cnGeoo" }),
877
+ title: d._({ id: "cnGeoo" }),
878
878
  disabled: xe || Ke || We
879
879
  })]
880
880
  }) })
881
881
  ] }, t)),
882
- Q.length === 0 && !xe && /*#__PURE__*/ F(D, { children: /*#__PURE__*/ F(r, {
882
+ Q.length === 0 && !xe && /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(i, {
883
883
  colSpan: 3,
884
884
  className: "py-6 text-center",
885
- children: /*#__PURE__*/ F(s, {
885
+ children: /*#__PURE__*/ F(f, {
886
886
  alignment: "center",
887
887
  children: /*#__PURE__*/ F("span", {
888
888
  className: "text-theme-light text-sm",
@@ -1020,23 +1020,23 @@ function X(e) {
1020
1020
  }
1021
1021
  }
1022
1022
  var fe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) => {
1023
- let { i18n: a, _: o } = W(), l = N(), [u, d] = V(""), [f, p] = V(""), [g, _] = V(!1), [v, y] = V(!1);
1023
+ let { i18n: o, _: s } = W(), c = N(), [l, d] = V(""), [m, g] = V(""), [_, v] = V(!1), [b, x] = V(!1);
1024
1024
  z(() => {
1025
- !u.trim() && !f.trim() && y(!1);
1026
- }, [u, f]);
1027
- let { data: b, isLoading: x, isError: S, error: T } = O.storage.swift.getContainerMetadata.useQuery({
1028
- project_id: l,
1025
+ !l.trim() && !m.trim() && x(!1);
1026
+ }, [l, m]);
1027
+ let { data: S, isLoading: C, isError: w, error: T } = O.storage.swift.getContainerMetadata.useQuery({
1028
+ project_id: c,
1029
1029
  container: t?.name ?? ""
1030
1030
  }, { enabled: e && t !== null });
1031
1031
  z(() => {
1032
- if (!b) return;
1033
- let e = b.read ?? "", t = b.write ?? "";
1034
- d(e), p(t), _(le(e));
1035
- }, [b]);
1032
+ if (!S) return;
1033
+ let e = S.read ?? "", t = S.write ?? "";
1034
+ d(e), g(t), v(le(e));
1035
+ }, [S]);
1036
1036
  let E = O.useUtils(), D = O.storage.swift.updateContainerMetadata.useMutation({
1037
1037
  onSuccess: () => {
1038
1038
  E.storage.swift.getContainerMetadata.invalidate({
1039
- project_id: l,
1039
+ project_id: c,
1040
1040
  container: t.name
1041
1041
  }), E.storage.swift.listContainers.invalidate(), r?.(t.name), A();
1042
1042
  },
@@ -1046,28 +1046,28 @@ var fe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1046
1046
  }), k = B(D.reset);
1047
1047
  k.current = D.reset;
1048
1048
  let A = () => {
1049
- d(""), p(""), _(!1), y(!1), D.reset(), n();
1049
+ d(""), g(""), v(!1), x(!1), D.reset(), n();
1050
1050
  };
1051
1051
  z(() => {
1052
- e || (d(""), p(""), _(!1), k.current());
1052
+ e || (d(""), g(""), v(!1), k.current());
1053
1053
  }, [e]);
1054
1054
  let j = (e) => {
1055
1055
  let t = e.target.checked;
1056
- _(t), d((e) => t ? ue(e) : de(e));
1056
+ v(t), d((e) => t ? ue(e) : de(e));
1057
1057
  }, M = (e) => {
1058
1058
  let t = e.target.value;
1059
- d(t), _(le(t));
1059
+ d(t), v(le(t));
1060
1060
  }, L = () => {
1061
1061
  t && D.mutate({
1062
- project_id: l,
1062
+ project_id: c,
1063
1063
  container: t.name,
1064
- read: u.trim(),
1065
- write: f.trim()
1064
+ read: l.trim(),
1065
+ write: m.trim()
1066
1066
  });
1067
1067
  };
1068
1068
  if (!e || !t) return null;
1069
- let R = x || D.isPending, ee = u.trim().length > 0 || f.trim().length > 0, H = J(u), G = J(f);
1070
- return /*#__PURE__*/ I(w, {
1069
+ let R = C || D.isPending, ee = l.trim().length > 0 || m.trim().length > 0, H = J(l), G = J(m);
1070
+ return /*#__PURE__*/ I(h, {
1071
1071
  title: /* @__PURE__ */ I("span", {
1072
1072
  className: "flex items-center gap-2",
1073
1073
  children: [/*#__PURE__*/ F(U, { id: "6Kjltl" }), /*#__PURE__*/ F("span", {
@@ -1078,11 +1078,11 @@ var fe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1078
1078
  }),
1079
1079
  open: e,
1080
1080
  onCancel: A,
1081
- confirmButtonLabel: a._({ id: "tfDRzk" }),
1081
+ confirmButtonLabel: o._({ id: "tfDRzk" }),
1082
1082
  onConfirm: L,
1083
- cancelButtonLabel: a._({ id: "dEgA5A" }),
1083
+ cancelButtonLabel: o._({ id: "dEgA5A" }),
1084
1084
  size: "xl",
1085
- disableConfirmButton: R || S,
1085
+ disableConfirmButton: R || w,
1086
1086
  children: [D.isError && /*#__PURE__*/ F("p", {
1087
1087
  className: "text-theme-error mb-4",
1088
1088
  children: (() => {
@@ -1103,13 +1103,13 @@ var fe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1103
1103
  className: "text-theme-default",
1104
1104
  children: /*#__PURE__*/ F(U, { id: "g9m7gK" })
1105
1105
  })]
1106
- }), x ? /*#__PURE__*/ I(s, {
1106
+ }), C ? /*#__PURE__*/ I(f, {
1107
1107
  direction: "horizontal",
1108
1108
  alignment: "center",
1109
1109
  gap: "2",
1110
1110
  className: "py-6",
1111
- children: [/*#__PURE__*/ F(c, { size: "small" }), /*#__PURE__*/ F(U, { id: "poCbZw" })]
1112
- }) : S ? /*#__PURE__*/ F("p", {
1111
+ children: [/*#__PURE__*/ F(a, { size: "small" }), /*#__PURE__*/ F(U, { id: "poCbZw" })]
1112
+ }) : w ? /*#__PURE__*/ F("p", {
1113
1113
  className: "text-theme-error py-2",
1114
1114
  children: /*#__PURE__*/ F(U, {
1115
1115
  id: "QNHur0",
@@ -1119,46 +1119,46 @@ var fe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1119
1119
  className: "flex gap-6",
1120
1120
  children: [/*#__PURE__*/ F("div", {
1121
1121
  className: "min-w-0 flex-1",
1122
- children: /*#__PURE__*/ I(s, {
1122
+ children: /*#__PURE__*/ I(f, {
1123
1123
  direction: "vertical",
1124
1124
  gap: "6",
1125
1125
  children: [
1126
1126
  /*#__PURE__*/ I("div", { children: [
1127
- /*#__PURE__*/ F(me, { label: a._({ id: "SBGiGm" }) }),
1128
- /*#__PURE__*/ F(h, {
1129
- value: u,
1127
+ /*#__PURE__*/ F(me, { label: o._({ id: "SBGiGm" }) }),
1128
+ /*#__PURE__*/ F(u, {
1129
+ value: l,
1130
1130
  onChange: M,
1131
- disabled: R || g,
1132
- placeholder: a._({ id: "FKL6Jv" }),
1131
+ disabled: R || _,
1132
+ placeholder: o._({ id: "FKL6Jv" }),
1133
1133
  className: "font-mono text-sm",
1134
1134
  rows: 3
1135
1135
  }),
1136
- /*#__PURE__*/ F(C, {
1137
- label: a._({ id: "23wBCX" }),
1138
- checked: g,
1136
+ /*#__PURE__*/ F(y, {
1137
+ label: o._({ id: "23wBCX" }),
1138
+ checked: _,
1139
1139
  onChange: j,
1140
1140
  disabled: R,
1141
1141
  className: "mt-2"
1142
1142
  })
1143
1143
  ] }),
1144
- /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F(me, { label: a._({ id: "6qzsuS" }) }), /*#__PURE__*/ F(h, {
1145
- value: f,
1144
+ /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F(me, { label: o._({ id: "6qzsuS" }) }), /*#__PURE__*/ F(u, {
1145
+ value: m,
1146
1146
  onChange: (e) => {
1147
1147
  let t = e.target.value;
1148
- p(t);
1148
+ g(t);
1149
1149
  },
1150
1150
  disabled: R,
1151
- placeholder: a._({ id: "UVFHGY" }),
1151
+ placeholder: o._({ id: "UVFHGY" }),
1152
1152
  className: "font-mono text-sm",
1153
1153
  rows: 3
1154
1154
  })] }),
1155
- ee && /*#__PURE__*/ F(m, {
1156
- label: v ? a._({ id: "we28Pq" }) : a._({ id: "YiMCKk" }),
1157
- onClick: () => y((e) => !e),
1155
+ ee && /*#__PURE__*/ F(p, {
1156
+ label: b ? o._({ id: "we28Pq" }) : o._({ id: "YiMCKk" }),
1157
+ onClick: () => x((e) => !e),
1158
1158
  variant: "subdued",
1159
1159
  disabled: R
1160
1160
  }),
1161
- v && (H.length > 0 || G.length > 0) && /*#__PURE__*/ I(s, {
1161
+ b && (H.length > 0 || G.length > 0) && /*#__PURE__*/ I(f, {
1162
1162
  direction: "vertical",
1163
1163
  gap: "4",
1164
1164
  children: [H.length > 0 && /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
@@ -1216,29 +1216,29 @@ var fe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1216
1216
  className: "text-theme-light mb-3 text-xs",
1217
1217
  children: /*#__PURE__*/ F(U, { id: "dd2ndz" })
1218
1218
  }),
1219
- /*#__PURE__*/ I(s, {
1219
+ /*#__PURE__*/ I(f, {
1220
1220
  direction: "vertical",
1221
1221
  gap: "4",
1222
1222
  children: [
1223
1223
  /*#__PURE__*/ F(pe, {
1224
1224
  code: ".r:*",
1225
- description: a._({ id: "VV1fdg" })
1225
+ description: o._({ id: "VV1fdg" })
1226
1226
  }),
1227
1227
  /*#__PURE__*/ F(pe, {
1228
1228
  code: ".rlistings",
1229
- description: a._({ id: "s/s1lz" })
1229
+ description: o._({ id: "s/s1lz" })
1230
1230
  }),
1231
1231
  /*#__PURE__*/ F(pe, {
1232
1232
  code: "PROJECT_ID:USER_ID",
1233
- description: a._({ id: "zhM8FP" })
1233
+ description: o._({ id: "zhM8FP" })
1234
1234
  }),
1235
1235
  /*#__PURE__*/ F(pe, {
1236
1236
  code: "PROJECT_ID:*",
1237
- description: a._({ id: "BCJPTn" })
1237
+ description: o._({ id: "BCJPTn" })
1238
1238
  }),
1239
1239
  /*#__PURE__*/ F(pe, {
1240
1240
  code: "*:USER_ID",
1241
- description: a._({ id: "/xnbdQ" })
1241
+ description: o._({ id: "/xnbdQ" })
1242
1242
  })
1243
1243
  ]
1244
1244
  }),
@@ -1276,13 +1276,13 @@ function me({ label: e }) {
1276
1276
  children: [/*#__PURE__*/ F("label", {
1277
1277
  className: "text-theme-default text-sm font-semibold",
1278
1278
  children: e
1279
- }), /*#__PURE__*/ I(T, {
1279
+ }), /*#__PURE__*/ I(t, {
1280
1280
  triggerEvent: "hover",
1281
- children: [/*#__PURE__*/ F(f, { children: /*#__PURE__*/ F(b, {
1281
+ children: [/*#__PURE__*/ F(w, { children: /*#__PURE__*/ F(m, {
1282
1282
  icon: "info",
1283
1283
  size: "14",
1284
1284
  className: "text-theme-light cursor-help"
1285
- }) }), /*#__PURE__*/ F(S, {
1285
+ }) }), /*#__PURE__*/ F(n, {
1286
1286
  className: "z-10 max-w-[350px]",
1287
1287
  children: /*#__PURE__*/ F(U, { id: "AdtLNV" })
1288
1288
  })]
@@ -1291,8 +1291,8 @@ function me({ label: e }) {
1291
1291
  }
1292
1292
  //#endregion
1293
1293
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ContainerTableView.tsx
1294
- var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: i, maxContainerNameLength: a, onCreateSuccess: s, onCreateError: c, onEmptySuccess: l, onEmptyError: u, onDeleteSuccess: d, onDeleteError: f, onPropertiesSuccess: p, onPropertiesError: m, onAclSuccess: h, onAclError: g, selectedContainers: _, setSelectedContainers: b, hasAnyBulkAction: x = !0 }) => {
1295
- let { projectId: S, provider: w, storageType: T } = H({ from: "/_auth/projects/$projectId/storage/$provider/$storageType/" }), { i18n: O, _: k } = W(), A = ee(), j = B(null), [N, L] = V(0), [R, G] = V(null), [te, ie] = V(null), [ae, oe] = V(null), [ce, J] = V(null);
1294
+ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContainerNameLength: a, onCreateSuccess: o, onCreateError: l, onEmptySuccess: u, onEmptyError: d, onDeleteSuccess: f, onDeleteError: p, onPropertiesSuccess: m, onPropertiesError: h, onAclSuccess: g, onAclError: v, selectedContainers: x, setSelectedContainers: S, hasAnyBulkAction: C = !0 }) => {
1295
+ let { projectId: w, provider: E, storageType: D } = H({ from: "/_auth/projects/$projectId/storage/$provider/$storageType/" }), { i18n: O, _: k } = W(), A = ee(), j = B(null), [N, L] = V(0), [R, G] = V(null), [te, ie] = V(null), [ae, oe] = V(null), [ce, J] = V(null);
1296
1296
  z(() => {
1297
1297
  j.current && L(j.current.offsetWidth - j.current.clientWidth);
1298
1298
  }, [e.length]);
@@ -1307,16 +1307,16 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: i, maxContain
1307
1307
  getScrollElement: () => j.current,
1308
1308
  estimateSize: () => 48,
1309
1309
  overscan: 10
1310
- }), ue = new Set(_), de = e.length > 0 && e.every((e) => ue.has(e.name)), X = () => {
1311
- b(de ? [] : e.map((e) => e.name));
1310
+ }), ue = new Set(x), de = e.length > 0 && e.every((e) => ue.has(e.name)), X = () => {
1311
+ S(de ? [] : e.map((e) => e.name));
1312
1312
  }, pe = (e) => {
1313
- _.includes(e) ? b(_.filter((t) => t !== e)) : b([..._, e]);
1313
+ x.includes(e) ? S(x.filter((t) => t !== e)) : S([...x, e]);
1314
1314
  };
1315
- if (!e || e.length === 0) return /*#__PURE__*/ I(P, { children: [/*#__PURE__*/ F(y, {
1315
+ if (!e || e.length === 0) return /*#__PURE__*/ I(P, { children: [/*#__PURE__*/ F(_, {
1316
1316
  columns: 4,
1317
1317
  className: "containers",
1318
1318
  "data-testid": "no-containers",
1319
- children: /*#__PURE__*/ F(D, { children: /*#__PURE__*/ F(r, {
1319
+ children: /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(i, {
1320
1320
  colSpan: 4,
1321
1321
  children: /*#__PURE__*/ I("div", {
1322
1322
  className: "py-8 text-center",
@@ -1331,33 +1331,33 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: i, maxContain
1331
1331
  }) })
1332
1332
  }), /*#__PURE__*/ F(K, {
1333
1333
  isOpen: t,
1334
- onClose: () => i(!1),
1335
- onSuccess: s,
1336
- onError: c,
1334
+ onClose: () => n(!1),
1335
+ onSuccess: o,
1336
+ onError: l,
1337
1337
  maxContainerNameLength: a
1338
1338
  })] });
1339
- let me = x ? 6 : 5, he = 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";
1339
+ let me = C ? 6 : 5, he = 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";
1340
1340
  return /*#__PURE__*/ I(P, { children: [
1341
1341
  /*#__PURE__*/ I("div", {
1342
1342
  className: "relative",
1343
1343
  children: [/*#__PURE__*/ F("div", {
1344
1344
  style: { paddingRight: `${N}px` },
1345
- children: /*#__PURE__*/ F(y, {
1345
+ children: /*#__PURE__*/ F(_, {
1346
1346
  columns: me,
1347
1347
  gridColumnTemplate: he,
1348
1348
  className: "containers",
1349
1349
  "data-testid": "containers-table-header",
1350
- children: /*#__PURE__*/ I(D, { children: [
1351
- x && /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(C, {
1350
+ children: /*#__PURE__*/ I(c, { children: [
1351
+ C && /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(y, {
1352
1352
  checked: de,
1353
1353
  onChange: X,
1354
1354
  "data-testid": "select-all-containers"
1355
1355
  }) }),
1356
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "t0X9+8" }) }),
1357
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "sxbP3b" }) }),
1358
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "sjMCOP" }) }),
1359
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "hgpMHD" }) }),
1360
- /*#__PURE__*/ F(n, { style: { marginRight: `-${N}px` } })
1356
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "t0X9+8" }) }),
1357
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "sxbP3b" }) }),
1358
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "sjMCOP" }) }),
1359
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "hgpMHD" }) }),
1360
+ /*#__PURE__*/ F(s, { style: { marginRight: `-${N}px` } })
1361
1361
  ] })
1362
1362
  })
1363
1363
  }), /*#__PURE__*/ F("div", {
@@ -1372,12 +1372,12 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: i, maxContain
1372
1372
  position: "relative"
1373
1373
  },
1374
1374
  children: le.getVirtualItems().map((t) => {
1375
- let n = e[t.index], i = _.includes(n.name), a = () => A({
1375
+ let n = e[t.index], a = x.includes(n.name), o = () => A({
1376
1376
  to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
1377
1377
  params: {
1378
- projectId: S,
1379
- provider: w,
1380
- storageType: T,
1378
+ projectId: w,
1379
+ provider: E,
1380
+ storageType: D,
1381
1381
  containerName: n.name
1382
1382
  }
1383
1383
  });
@@ -1398,23 +1398,23 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: i, maxContain
1398
1398
  "data-testid": `container-row-${n.name}`,
1399
1399
  role: "link",
1400
1400
  tabIndex: 0,
1401
- onClick: a,
1401
+ onClick: o,
1402
1402
  onKeyDown: (e) => {
1403
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
1403
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o());
1404
1404
  },
1405
1405
  children: [
1406
- x && /*#__PURE__*/ F(r, {
1406
+ C && /*#__PURE__*/ F(i, {
1407
1407
  onClick: (e) => e.stopPropagation(),
1408
1408
  onKeyDown: (e) => {
1409
1409
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
1410
1410
  },
1411
- children: /*#__PURE__*/ F(C, {
1412
- checked: i,
1411
+ children: /*#__PURE__*/ F(y, {
1412
+ checked: a,
1413
1413
  onChange: () => pe(n.name),
1414
1414
  "data-testid": `select-container-${n.name}`
1415
1415
  })
1416
1416
  }),
1417
- /*#__PURE__*/ F(r, {
1417
+ /*#__PURE__*/ F(i, {
1418
1418
  className: "min-w-0 overflow-hidden",
1419
1419
  children: /*#__PURE__*/ F("span", {
1420
1420
  className: "block truncate",
@@ -1422,28 +1422,28 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: i, maxContain
1422
1422
  children: n.name
1423
1423
  })
1424
1424
  }),
1425
- /*#__PURE__*/ F(r, { children: n.count.toLocaleString() }),
1426
- /*#__PURE__*/ F(r, { children: n.last_modified ? Y(n.last_modified) : O._({ id: "fj5byd" }) }),
1427
- /*#__PURE__*/ F(r, { children: M(n.bytes) }),
1428
- /*#__PURE__*/ F(r, {
1425
+ /*#__PURE__*/ F(i, { children: n.count.toLocaleString() }),
1426
+ /*#__PURE__*/ F(i, { children: n.last_modified ? Y(n.last_modified) : O._({ id: "fj5byd" }) }),
1427
+ /*#__PURE__*/ F(i, { children: M(n.bytes) }),
1428
+ /*#__PURE__*/ F(i, {
1429
1429
  onClick: (e) => e.stopPropagation(),
1430
- children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ I(E, { children: [
1431
- /*#__PURE__*/ F(v, {
1430
+ children: /*#__PURE__*/ F(r, { children: /*#__PURE__*/ I(T, { children: [
1431
+ /*#__PURE__*/ F(b, {
1432
1432
  label: O._({ id: "cWbW6w" }),
1433
1433
  onClick: () => J(n),
1434
1434
  "data-testid": `access-control-action-${n.name}`
1435
1435
  }),
1436
- /*#__PURE__*/ F(v, {
1436
+ /*#__PURE__*/ F(b, {
1437
1437
  label: O._({ id: "Oc8Aqv" }),
1438
1438
  onClick: () => oe(n),
1439
1439
  "data-testid": `properties-action-${n.name}`
1440
1440
  }),
1441
- /*#__PURE__*/ F(v, {
1441
+ /*#__PURE__*/ F(b, {
1442
1442
  label: O._({ id: "N2S1rs" }),
1443
1443
  onClick: () => G(n),
1444
1444
  "data-testid": `empty-action-${n.name}`
1445
1445
  }),
1446
- /*#__PURE__*/ F(v, {
1446
+ /*#__PURE__*/ F(b, {
1447
1447
  label: O._({ id: "cnGeoo" }),
1448
1448
  onClick: () => ie(n),
1449
1449
  "data-testid": `delete-action-${n.name}`
@@ -1458,45 +1458,45 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: i, maxContain
1458
1458
  }),
1459
1459
  /*#__PURE__*/ F(K, {
1460
1460
  isOpen: t,
1461
- onClose: () => i(!1),
1462
- onSuccess: s,
1463
- onError: c,
1461
+ onClose: () => n(!1),
1462
+ onSuccess: o,
1463
+ onError: l,
1464
1464
  maxContainerNameLength: a
1465
1465
  }),
1466
1466
  /*#__PURE__*/ F(re, {
1467
1467
  isOpen: R !== null,
1468
1468
  container: R,
1469
1469
  onClose: () => G(null),
1470
- onSuccess: l,
1471
- onError: u
1470
+ onSuccess: u,
1471
+ onError: d
1472
1472
  }),
1473
1473
  /*#__PURE__*/ F(q, {
1474
1474
  isOpen: te !== null,
1475
1475
  container: te,
1476
1476
  onClose: () => ie(null),
1477
- onSuccess: d,
1478
- onError: f
1477
+ onSuccess: f,
1478
+ onError: p
1479
1479
  }),
1480
1480
  /*#__PURE__*/ F(se, {
1481
1481
  isOpen: ae !== null,
1482
1482
  container: ae,
1483
1483
  onClose: () => oe(null),
1484
- onSuccess: p,
1485
- onError: m
1484
+ onSuccess: m,
1485
+ onError: h
1486
1486
  }),
1487
1487
  /*#__PURE__*/ F(fe, {
1488
1488
  isOpen: ce !== null,
1489
1489
  container: ce,
1490
1490
  onClose: () => J(null),
1491
- onSuccess: h,
1492
- onError: g
1491
+ onSuccess: g,
1492
+ onError: v
1493
1493
  })
1494
1494
  ] });
1495
1495
  };
1496
1496
  //#endregion
1497
1497
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ContainerToastNotifications.tsx
1498
1498
  function Z({ title: e, description: t }) {
1499
- return /*#__PURE__*/ I(s, {
1499
+ return /*#__PURE__*/ I(f, {
1500
1500
  direction: "vertical",
1501
1501
  gap: "1.5",
1502
1502
  children: [/*#__PURE__*/ F("span", { children: e }), /*#__PURE__*/ F("span", {
@@ -1638,7 +1638,7 @@ var ge = (e, t) => ({
1638
1638
  variant: o ? "warning" : i ? "error" : "success",
1639
1639
  children: /*#__PURE__*/ F(Z, {
1640
1640
  title: o ? /*#__PURE__*/ F(U, { id: "q44uUq" }) : i ? /*#__PURE__*/ F(U, { id: "wFaT8w" }) : /*#__PURE__*/ F(U, { id: "0WsqO0" }),
1641
- description: /*#__PURE__*/ I(s, {
1641
+ description: /*#__PURE__*/ I(f, {
1642
1642
  direction: "vertical",
1643
1643
  gap: "1",
1644
1644
  children: [a && /*#__PURE__*/ F("span", { children: /*#__PURE__*/ F(U, {
@@ -1660,7 +1660,7 @@ var ge = (e, t) => ({
1660
1660
  };
1661
1661
  }, $ = ({ label: e, value: t }) => t == null ? null : /*#__PURE__*/ I("span", {
1662
1662
  className: "flex items-start gap-1.5",
1663
- children: [/*#__PURE__*/ F(b, {
1663
+ children: [/*#__PURE__*/ F(m, {
1664
1664
  icon: "check",
1665
1665
  size: "16px",
1666
1666
  className: "text-theme-success mt-0.5 shrink-0"
@@ -1674,7 +1674,7 @@ var ge = (e, t) => ({
1674
1674
  ] })]
1675
1675
  }), Ee = ({ label: e }) => /*#__PURE__*/ I("span", {
1676
1676
  className: "flex items-start gap-1.5",
1677
- children: [/*#__PURE__*/ F(b, {
1677
+ children: [/*#__PURE__*/ F(m, {
1678
1678
  icon: "check",
1679
1679
  size: "16px",
1680
1680
  className: "text-theme-success mt-0.5 shrink-0"
@@ -1685,177 +1685,177 @@ var ge = (e, t) => ({
1685
1685
  className: "text-theme-default block font-semibold",
1686
1686
  children: e
1687
1687
  }), t]
1688
- }), Oe = ({ serviceInfo: e, accountInfo: t }) => {
1689
- let { i18n: n, _: r } = W(), i = e?.swift, a = {
1690
- account_quotas: n._({ id: "DJT9tB" }),
1691
- container_quotas: n._({ id: "USiuNX" }),
1692
- bulk_delete: n._({ id: "F6YIQe" }),
1693
- bulk_upload: n._({ id: "2Inn83" }),
1694
- slo: n._({ id: "cpw++p" }),
1695
- container_sync: n._({ id: "ezT9KW" }),
1696
- tempurl: n._({ id: "UO3hJ2" }),
1697
- symlink: n._({ id: "Q2xmVl" }),
1698
- versioned_writes: n._({ id: "8jLXs3" })
1699
- }, o = Object.entries(a).filter(([e]) => i?.[e]).map(([, e]) => e);
1700
- return /*#__PURE__*/ I(T, {
1688
+ }), Oe = ({ serviceInfo: e, accountInfo: r }) => {
1689
+ let { i18n: i, _: a } = W(), o = e?.swift, s = {
1690
+ account_quotas: i._({ id: "DJT9tB" }),
1691
+ container_quotas: i._({ id: "USiuNX" }),
1692
+ bulk_delete: i._({ id: "F6YIQe" }),
1693
+ bulk_upload: i._({ id: "2Inn83" }),
1694
+ slo: i._({ id: "cpw++p" }),
1695
+ container_sync: i._({ id: "ezT9KW" }),
1696
+ tempurl: i._({ id: "UO3hJ2" }),
1697
+ symlink: i._({ id: "Q2xmVl" }),
1698
+ versioned_writes: i._({ id: "8jLXs3" })
1699
+ }, c = Object.entries(s).filter(([e]) => o?.[e]).map(([, e]) => e);
1700
+ return /*#__PURE__*/ I(t, {
1701
1701
  triggerEvent: "hover",
1702
1702
  placement: "bottom-end",
1703
- children: [/*#__PURE__*/ F(f, {
1703
+ children: [/*#__PURE__*/ F(w, {
1704
1704
  asChild: !0,
1705
- children: /*#__PURE__*/ F(b, {
1705
+ children: /*#__PURE__*/ F(m, {
1706
1706
  icon: "info",
1707
1707
  size: "20px",
1708
1708
  className: "text-theme-light hover:text-theme-default cursor-pointer"
1709
1709
  })
1710
- }), /*#__PURE__*/ F(S, {
1710
+ }), /*#__PURE__*/ F(n, {
1711
1711
  className: "z-10 w-72 text-sm",
1712
1712
  children: /*#__PURE__*/ I("span", {
1713
1713
  className: "flex flex-col gap-3 p-1",
1714
1714
  children: [
1715
- t && /*#__PURE__*/ I(De, {
1715
+ r && /*#__PURE__*/ I(De, {
1716
1716
  title: /*#__PURE__*/ F(U, { id: "AeXO77" }),
1717
1717
  children: [
1718
1718
  /*#__PURE__*/ F($, {
1719
- label: n._({ id: "ClGcRq" }),
1720
- value: t.containerCount.toLocaleString()
1719
+ label: i._({ id: "ClGcRq" }),
1720
+ value: r.containerCount.toLocaleString()
1721
1721
  }),
1722
1722
  /*#__PURE__*/ F($, {
1723
- label: n._({ id: "B3toQF" }),
1724
- value: t.objectCount.toLocaleString()
1723
+ label: i._({ id: "B3toQF" }),
1724
+ value: r.objectCount.toLocaleString()
1725
1725
  }),
1726
1726
  /*#__PURE__*/ F($, {
1727
- label: n._({ id: "aL1w5Z" }),
1728
- value: M(t.bytesUsed)
1727
+ label: i._({ id: "aL1w5Z" }),
1728
+ value: M(r.bytesUsed)
1729
1729
  }),
1730
- t.quotaBytes !== void 0 && /*#__PURE__*/ F($, {
1731
- label: n._({ id: "vEkTR9" }),
1732
- value: M(t.quotaBytes)
1730
+ r.quotaBytes !== void 0 && /*#__PURE__*/ F($, {
1731
+ label: i._({ id: "vEkTR9" }),
1732
+ value: M(r.quotaBytes)
1733
1733
  })
1734
1734
  ]
1735
1735
  }),
1736
- i && /*#__PURE__*/ I(De, {
1736
+ o && /*#__PURE__*/ I(De, {
1737
1737
  title: /*#__PURE__*/ F(U, { id: "6BDqha" }),
1738
1738
  children: [
1739
1739
  /*#__PURE__*/ F($, {
1740
- label: n._({ id: "wTg+FY" }),
1741
- value: i.max_file_size === void 0 ? void 0 : M(i.max_file_size)
1740
+ label: i._({ id: "wTg+FY" }),
1741
+ value: o.max_file_size === void 0 ? void 0 : M(o.max_file_size)
1742
1742
  }),
1743
1743
  /*#__PURE__*/ F($, {
1744
- label: n._({ id: "Rih53k" }),
1745
- value: i.max_container_name_length
1744
+ label: i._({ id: "Rih53k" }),
1745
+ value: o.max_container_name_length
1746
1746
  }),
1747
1747
  /*#__PURE__*/ F($, {
1748
- label: n._({ id: "qAkkjP" }),
1749
- value: i.max_object_name_length
1748
+ label: i._({ id: "qAkkjP" }),
1749
+ value: o.max_object_name_length
1750
1750
  }),
1751
1751
  /*#__PURE__*/ F($, {
1752
- label: n._({ id: "OZImTR" }),
1753
- value: i.container_listing_limit?.toLocaleString()
1752
+ label: i._({ id: "OZImTR" }),
1753
+ value: o.container_listing_limit?.toLocaleString()
1754
1754
  }),
1755
1755
  /*#__PURE__*/ F($, {
1756
- label: n._({ id: "a4A2uB" }),
1757
- value: i.account_listing_limit?.toLocaleString()
1756
+ label: i._({ id: "a4A2uB" }),
1757
+ value: o.account_listing_limit?.toLocaleString()
1758
1758
  }),
1759
1759
  /*#__PURE__*/ F($, {
1760
- label: n._({ id: "zWb/Nn" }),
1761
- value: i.max_header_size
1760
+ label: i._({ id: "zWb/Nn" }),
1761
+ value: o.max_header_size
1762
1762
  }),
1763
1763
  /*#__PURE__*/ F($, {
1764
- label: n._({ id: "RGwfoL" }),
1765
- value: i.max_meta_count
1764
+ label: i._({ id: "RGwfoL" }),
1765
+ value: o.max_meta_count
1766
1766
  }),
1767
1767
  /*#__PURE__*/ F($, {
1768
- label: n._({ id: "8c3/77" }),
1769
- value: i.max_meta_name_length
1768
+ label: i._({ id: "8c3/77" }),
1769
+ value: o.max_meta_name_length
1770
1770
  }),
1771
1771
  /*#__PURE__*/ F($, {
1772
- label: n._({ id: "5JDSvn" }),
1773
- value: i.max_meta_value_length
1772
+ label: i._({ id: "5JDSvn" }),
1773
+ value: o.max_meta_value_length
1774
1774
  }),
1775
1775
  /*#__PURE__*/ F($, {
1776
- label: n._({ id: "ZAx+d1" }),
1777
- value: i.max_meta_overall_size
1776
+ label: i._({ id: "ZAx+d1" }),
1777
+ value: o.max_meta_overall_size
1778
1778
  }),
1779
- i.bulk_delete && /*#__PURE__*/ F($, {
1780
- label: n._({ id: "lQ3EIe" }),
1781
- value: i.bulk_delete.max_deletes_per_request.toLocaleString()
1779
+ o.bulk_delete && /*#__PURE__*/ F($, {
1780
+ label: i._({ id: "lQ3EIe" }),
1781
+ value: o.bulk_delete.max_deletes_per_request.toLocaleString()
1782
1782
  }),
1783
- i.bulk_upload && /*#__PURE__*/ F($, {
1784
- label: n._({ id: "STc+7E" }),
1785
- value: i.bulk_upload.max_containers_per_extraction.toLocaleString()
1783
+ o.bulk_upload && /*#__PURE__*/ F($, {
1784
+ label: i._({ id: "STc+7E" }),
1785
+ value: o.bulk_upload.max_containers_per_extraction.toLocaleString()
1786
1786
  }),
1787
- i.slo && /*#__PURE__*/ F($, {
1788
- label: n._({ id: "RNBvdl" }),
1789
- value: i.slo.max_manifest_segments.toLocaleString()
1787
+ o.slo && /*#__PURE__*/ F($, {
1788
+ label: i._({ id: "RNBvdl" }),
1789
+ value: o.slo.max_manifest_segments.toLocaleString()
1790
1790
  })
1791
1791
  ]
1792
1792
  }),
1793
- o.length > 0 && /*#__PURE__*/ F(De, {
1793
+ c.length > 0 && /*#__PURE__*/ F(De, {
1794
1794
  title: /*#__PURE__*/ F(U, { id: "Qx7DM7" }),
1795
- children: o.map((e) => /*#__PURE__*/ F(Ee, { label: e }, e))
1795
+ children: c.map((e) => /*#__PURE__*/ F(Ee, { label: e }, e))
1796
1796
  })
1797
1797
  ]
1798
1798
  })
1799
1799
  })]
1800
1800
  });
1801
1801
  }, ke = 20, Ae = ({ isOpen: e, containers: t, onClose: n, onComplete: r }) => {
1802
- let { i18n: i, _: a } = W(), o = N(), [l, u] = V(null), d = O.useUtils(), f = O.storage.swift.emptyContainer.useMutation(), p = () => {
1803
- f.reset(), u(null), n();
1802
+ let { i18n: i, _: o } = W(), s = N(), [c, l] = V(null), u = O.useUtils(), d = O.storage.swift.emptyContainer.useMutation(), p = () => {
1803
+ d.reset(), l(null), n();
1804
1804
  }, m = async () => {
1805
1805
  let e = 0, n = 0, i = [], a = t.length;
1806
1806
  for (let r = 0; r < t.length; r++) {
1807
- u({
1807
+ l({
1808
1808
  current: r + 1,
1809
1809
  total: a
1810
1810
  });
1811
- let s = t[r];
1811
+ let o = t[r];
1812
1812
  try {
1813
- let t = await f.mutateAsync({
1814
- project_id: o,
1815
- container: s.name
1813
+ let t = await d.mutateAsync({
1814
+ project_id: s,
1815
+ container: o.name
1816
1816
  });
1817
1817
  n += t, e++;
1818
1818
  } catch (e) {
1819
1819
  let t = e instanceof Error ? e.message : String(e);
1820
- i.push(`${s.name}: ${t}`);
1820
+ i.push(`${o.name}: ${t}`);
1821
1821
  }
1822
1822
  }
1823
- e > 0 && await d.storage.swift.listContainers.invalidate(), r?.({
1823
+ e > 0 && await u.storage.swift.listContainers.invalidate(), r?.({
1824
1824
  emptiedCount: e,
1825
1825
  totalDeleted: n,
1826
1826
  errors: i
1827
1827
  }), p();
1828
1828
  };
1829
1829
  if (!e || t.length === 0) return null;
1830
- let h = t.length, g = t.slice(0, ke), _ = h - g.length, v = f.isPending || l !== null, y = l?.current, b = l?.total;
1831
- return /*#__PURE__*/ F(w, {
1830
+ let g = t.length, _ = t.slice(0, ke), v = g - _.length, y = d.isPending || c !== null, b = c?.current, x = c?.total;
1831
+ return /*#__PURE__*/ F(h, {
1832
1832
  title: /*#__PURE__*/ F(U, {
1833
1833
  id: "/tejov",
1834
- values: { totalCount: h }
1834
+ values: { totalCount: g }
1835
1835
  }),
1836
1836
  open: e,
1837
1837
  onCancel: p,
1838
- confirmButtonLabel: v ? i._({ id: "s4Vnq2" }) : i._({ id: "N2S1rs" }),
1838
+ confirmButtonLabel: y ? i._({ id: "s4Vnq2" }) : i._({ id: "N2S1rs" }),
1839
1839
  confirmButtonVariant: "primary-danger",
1840
1840
  cancelButtonLabel: i._({ id: "dEgA5A" }),
1841
1841
  onConfirm: m,
1842
- disableConfirmButton: v,
1843
- disableCancelButton: v,
1844
- disableCloseButton: v,
1842
+ disableConfirmButton: y,
1843
+ disableCancelButton: y,
1844
+ disableCloseButton: y,
1845
1845
  size: "small",
1846
- children: v ? /*#__PURE__*/ I(s, {
1846
+ children: y ? /*#__PURE__*/ I(f, {
1847
1847
  direction: "vertical",
1848
1848
  distribution: "center",
1849
1849
  alignment: "center",
1850
1850
  gap: "2",
1851
1851
  className: "py-4",
1852
- children: [/*#__PURE__*/ F(c, { variant: "primary" }), l && /*#__PURE__*/ F("p", {
1852
+ children: [/*#__PURE__*/ F(a, { variant: "primary" }), c && /*#__PURE__*/ F("p", {
1853
1853
  className: "text-theme-light text-sm",
1854
1854
  children: /*#__PURE__*/ F(U, {
1855
1855
  id: "7NSdfG",
1856
1856
  values: {
1857
- progressCurrent: y,
1858
- progressTotal: b
1857
+ progressCurrent: b,
1858
+ progressTotal: x
1859
1859
  }
1860
1860
  })
1861
1861
  })]
@@ -1880,21 +1880,21 @@ var ge = (e, t) => ({
1880
1880
  className: "jn:text-theme-high mb-3 font-semibold",
1881
1881
  children: /*#__PURE__*/ F(U, {
1882
1882
  id: "VKmlZ+",
1883
- values: { totalCount: h }
1883
+ values: { totalCount: g }
1884
1884
  })
1885
1885
  }), /*#__PURE__*/ I("div", {
1886
1886
  className: "jn:bg-theme-background-lvl-1 max-h-48 overflow-y-auto rounded p-4",
1887
1887
  children: [/*#__PURE__*/ F("ul", {
1888
1888
  className: "space-y-1",
1889
- children: g.map((e) => /*#__PURE__*/ F("li", {
1889
+ children: _.map((e) => /*#__PURE__*/ F("li", {
1890
1890
  className: "jn:text-theme-default font-mono text-sm",
1891
1891
  children: e.name
1892
1892
  }, e.name))
1893
- }), _ > 0 && /*#__PURE__*/ F("p", {
1893
+ }), v > 0 && /*#__PURE__*/ F("p", {
1894
1894
  className: "text-theme-light mt-2 text-xs",
1895
1895
  children: /*#__PURE__*/ F(U, {
1896
1896
  id: "yqPflB",
1897
- values: { hiddenCount: _ }
1897
+ values: { hiddenCount: v }
1898
1898
  })
1899
1899
  })]
1900
1900
  })]
@@ -1902,64 +1902,64 @@ var ge = (e, t) => ({
1902
1902
  })
1903
1903
  });
1904
1904
  }, je = () => {
1905
- let { i18n: e, i18n: n, _: r } = W(), a = N(), l = ee({ from: k.fullPath }), { sortBy: u, sortDirection: d, search: f = "" } = k.useSearch(), [h, g] = V(!1), [_, y] = V(!1), [b, S] = V([]), [w, T] = V(null), [D, A] = V(f), R = B(void 0);
1905
+ let { i18n: t, i18n: n, _: i } = W(), o = N(), s = ee({ from: k.fullPath }), { sortBy: c, sortDirection: l, search: u = "" } = k.useSearch(), [m, h] = V(!1), [g, _] = V(!1), [v, x] = V([]), [S, w] = V(null), [D, A] = V(u), R = B(void 0);
1906
1906
  z(() => () => clearTimeout(R.current), []), z(() => {
1907
- A(f);
1908
- }, [f]);
1909
- let H = () => T(null), G = (e) => {
1910
- T(ge(e, { onDismiss: H }));
1907
+ A(u);
1908
+ }, [u]);
1909
+ let H = () => w(null), G = (e) => {
1910
+ w(ge(e, { onDismiss: H }));
1911
1911
  }, te = (e, t) => {
1912
- T(_e(e, t, { onDismiss: H }));
1912
+ w(_e(e, t, { onDismiss: H }));
1913
1913
  }, ne = (e, t) => {
1914
- T(Q(e, t, { onDismiss: H }));
1914
+ w(Q(e, t, { onDismiss: H }));
1915
1915
  }, K = (e, t) => {
1916
- T(ve(e, t, { onDismiss: H }));
1916
+ w(ve(e, t, { onDismiss: H }));
1917
1917
  }, re = (e) => {
1918
- T(ye(e, { onDismiss: H }));
1918
+ w(ye(e, { onDismiss: H }));
1919
1919
  }, q = (e, t) => {
1920
- T(be(e, t, { onDismiss: H }));
1920
+ w(be(e, t, { onDismiss: H }));
1921
1921
  }, ie = (e) => {
1922
- T(xe(e, { onDismiss: H }));
1922
+ w(xe(e, { onDismiss: H }));
1923
1923
  }, ae = (e, t) => {
1924
- T(Se(e, t, { onDismiss: H }));
1924
+ w(Se(e, t, { onDismiss: H }));
1925
1925
  }, oe = (e) => {
1926
- T(Ce(e, { onDismiss: H }));
1926
+ w(Ce(e, { onDismiss: H }));
1927
1927
  }, se = (e, t) => {
1928
- T(we(e, t, { onDismiss: H }));
1928
+ w(we(e, t, { onDismiss: H }));
1929
1929
  }, ce = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
1930
- if (n.length === 0) S([]);
1930
+ if (n.length === 0) x([]);
1931
1931
  else {
1932
1932
  let e = new Set(n.map((e) => e.split(": ")[0]));
1933
- S((t) => t.filter((t) => e.has(t)));
1933
+ x((t) => t.filter((t) => e.has(t)));
1934
1934
  }
1935
- T(Te(e, t, n, { onDismiss: H }));
1935
+ w(Te(e, t, n, { onDismiss: H }));
1936
1936
  }, J = {
1937
1937
  options: [
1938
1938
  {
1939
- label: e._({ id: "6YtxFj" }),
1939
+ label: t._({ id: "6YtxFj" }),
1940
1940
  value: "name"
1941
1941
  },
1942
1942
  {
1943
- label: e._({ id: "sxbP3b" }),
1943
+ label: t._({ id: "sxbP3b" }),
1944
1944
  value: "count"
1945
1945
  },
1946
1946
  {
1947
- label: e._({ id: "hgpMHD" }),
1947
+ label: t._({ id: "hgpMHD" }),
1948
1948
  value: "bytes"
1949
1949
  },
1950
1950
  {
1951
- label: e._({ id: "sjMCOP" }),
1951
+ label: t._({ id: "sjMCOP" }),
1952
1952
  value: "last_modified"
1953
1953
  }
1954
1954
  ],
1955
- sortBy: u ?? "name",
1956
- sortDirection: d ?? "asc"
1955
+ sortBy: c ?? "name",
1956
+ sortDirection: l ?? "asc"
1957
1957
  }, { data: Y, isLoading: le, error: ue } = O.storage.swift.listContainers.useQuery({
1958
- project_id: a,
1958
+ project_id: o,
1959
1959
  format: "json"
1960
- }), { data: de } = O.storage.swift.getAccountMetadata.useQuery({ project_id: a }), { data: X } = O.storage.swift.getServiceInfo.useQuery(), fe = (e) => [...e].sort((e, t) => {
1960
+ }), { data: de } = O.storage.swift.getAccountMetadata.useQuery({ project_id: o }), { data: X } = O.storage.swift.getServiceInfo.useQuery(), fe = (e) => [...e].sort((e, t) => {
1961
1961
  let n;
1962
- switch (u ?? "name") {
1962
+ switch (c ?? "name") {
1963
1963
  case "name":
1964
1964
  n = e.name.localeCompare(t.name);
1965
1965
  break;
@@ -1975,11 +1975,11 @@ var ge = (e, t) => ({
1975
1975
  break;
1976
1976
  default: n = e.name.localeCompare(t.name);
1977
1977
  }
1978
- return (d ?? "asc") === "desc" ? -n : n;
1979
- }), pe = (Y || []).filter((e) => e.name.toLowerCase().includes(f.toLowerCase())), me = fe(pe), Z = (e) => {
1978
+ return (l ?? "asc") === "desc" ? -n : n;
1979
+ }), pe = (Y || []).filter((e) => e.name.toLowerCase().includes(u.toLowerCase())), me = fe(pe), Z = (e) => {
1980
1980
  let t = typeof e == "string" ? e : "";
1981
1981
  L(() => {
1982
- l({ search: (e) => ({
1982
+ s({ search: (e) => ({
1983
1983
  ...e,
1984
1984
  search: t || void 0
1985
1985
  }) });
@@ -1987,19 +1987,19 @@ var ge = (e, t) => ({
1987
1987
  }, $ = (e) => {
1988
1988
  let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
1989
1989
  L(() => {
1990
- l({ search: (e) => ({
1990
+ s({ search: (e) => ({
1991
1991
  ...e,
1992
1992
  sortBy: t,
1993
1993
  sortDirection: n
1994
1994
  }) });
1995
1995
  });
1996
1996
  };
1997
- if (le) return /*#__PURE__*/ I(s, {
1997
+ if (le) return /*#__PURE__*/ I(f, {
1998
1998
  className: "absolute inset-0",
1999
1999
  distribution: "center",
2000
2000
  alignment: "center",
2001
2001
  direction: "vertical",
2002
- children: [/*#__PURE__*/ F(c, {
2002
+ children: [/*#__PURE__*/ F(a, {
2003
2003
  variant: "primary",
2004
2004
  size: "large",
2005
2005
  className: "mb-2"
@@ -2007,7 +2007,7 @@ var ge = (e, t) => ({
2007
2007
  });
2008
2008
  if (ue) {
2009
2009
  let e = ue.message;
2010
- return /*#__PURE__*/ F(s, {
2010
+ return /*#__PURE__*/ F(f, {
2011
2011
  className: "absolute inset-0",
2012
2012
  distribution: "center",
2013
2013
  alignment: "center",
@@ -2018,19 +2018,19 @@ var ge = (e, t) => ({
2018
2018
  })
2019
2019
  });
2020
2020
  }
2021
- let Ee = de?.bytesUsed || 0, De = de?.quotaBytes || 0, ke = De > 0 ? De - Ee : 0, je = (Y || []).filter((e) => b.includes(e.name)), Me = je.length > 0, Ne = je.length, Pe = (Y || []).length, Fe = pe.length, Ie = Fe !== Pe, Le = me.map((e) => e.name), Re = Le.length > 0 && Le.every((e) => b.includes(e)), ze = Le.some((e) => b.includes(e));
2021
+ let Ee = de?.bytesUsed || 0, De = de?.quotaBytes || 0, ke = De > 0 ? De - Ee : 0, je = (Y || []).filter((e) => v.includes(e.name)), Me = je.length > 0, Ne = je.length, Pe = (Y || []).length, Fe = pe.length, Ie = Fe !== Pe, Le = me.map((e) => e.name), Re = Le.length > 0 && Le.every((e) => v.includes(e)), ze = Le.some((e) => v.includes(e));
2022
2022
  return /*#__PURE__*/ I("div", {
2023
2023
  className: "relative",
2024
2024
  children: [
2025
- /*#__PURE__*/ I(s, {
2025
+ /*#__PURE__*/ I(f, {
2026
2026
  direction: "vertical",
2027
2027
  children: [
2028
- /*#__PURE__*/ I(s, {
2028
+ /*#__PURE__*/ I(f, {
2029
2029
  distribution: "end",
2030
2030
  alignment: "center",
2031
2031
  gap: "2",
2032
2032
  className: "pb-2",
2033
- children: [/*#__PURE__*/ F(s, {
2033
+ children: [/*#__PURE__*/ F(f, {
2034
2034
  gap: "0.5",
2035
2035
  alignment: "center",
2036
2036
  children: /*#__PURE__*/ F(j, {
@@ -2047,21 +2047,21 @@ var ge = (e, t) => ({
2047
2047
  sortDirection: e
2048
2048
  })
2049
2049
  })
2050
- }), /*#__PURE__*/ F(m, {
2050
+ }), /*#__PURE__*/ F(p, {
2051
2051
  variant: "primary",
2052
2052
  className: "whitespace-nowrap",
2053
- onClick: () => g(!0),
2053
+ onClick: () => h(!0),
2054
2054
  children: /*#__PURE__*/ F(U, { id: "vTh35P" })
2055
2055
  })]
2056
2056
  }),
2057
- /*#__PURE__*/ F(p, { children: /*#__PURE__*/ F(s, {
2057
+ /*#__PURE__*/ F(E, { children: /*#__PURE__*/ F(f, {
2058
2058
  direction: "vertical",
2059
2059
  gap: "2",
2060
- children: /*#__PURE__*/ F(s, {
2060
+ children: /*#__PURE__*/ F(f, {
2061
2061
  distribution: "end",
2062
2062
  alignment: "center",
2063
- children: /*#__PURE__*/ F(x, {
2064
- placeholder: e._({ id: "TipzDp" }),
2063
+ children: /*#__PURE__*/ F(d, {
2064
+ placeholder: t._({ id: "TipzDp" }),
2065
2065
  "data-testid": "searchbar",
2066
2066
  value: D,
2067
2067
  onInput: (e) => {
@@ -2077,37 +2077,37 @@ var ge = (e, t) => ({
2077
2077
  })
2078
2078
  })
2079
2079
  }) }),
2080
- /*#__PURE__*/ F(p, { children: /*#__PURE__*/ I(s, {
2080
+ /*#__PURE__*/ F(E, { children: /*#__PURE__*/ I(f, {
2081
2081
  distribution: "start",
2082
2082
  gap: "2",
2083
2083
  alignment: "center",
2084
2084
  className: "text-sm",
2085
- children: [/*#__PURE__*/ I(s, {
2085
+ children: [/*#__PURE__*/ I(f, {
2086
2086
  gap: "2",
2087
2087
  alignment: "center",
2088
- children: [/*#__PURE__*/ F(C, {
2088
+ children: [/*#__PURE__*/ F(y, {
2089
2089
  checked: Re,
2090
2090
  indeterminate: ze && !Re,
2091
2091
  onChange: () => {
2092
- S(Re ? (e) => e.filter((e) => !Le.includes(e)) : (e) => [...new Set([...e, ...Le])]);
2092
+ x(Re ? (e) => e.filter((e) => !Le.includes(e)) : (e) => [...new Set([...e, ...Le])]);
2093
2093
  }
2094
- }), /*#__PURE__*/ I(o, {
2094
+ }), /*#__PURE__*/ I(r, {
2095
2095
  className: "flex items-center",
2096
- children: [/*#__PURE__*/ F(t, {
2096
+ children: [/*#__PURE__*/ F(C, {
2097
2097
  as: "div",
2098
- children: /*#__PURE__*/ F(m, {
2098
+ children: /*#__PURE__*/ F(p, {
2099
2099
  disabled: !Me,
2100
2100
  size: "small",
2101
2101
  icon: "moreVert",
2102
- label: e._({ id: "7L01XJ" })
2102
+ label: t._({ id: "7L01XJ" })
2103
2103
  })
2104
- }), Me && /*#__PURE__*/ F(E, { children: /*#__PURE__*/ F(v, {
2104
+ }), Me && /*#__PURE__*/ F(T, { children: /*#__PURE__*/ F(b, {
2105
2105
  disabled: !Me,
2106
- label: n._(e._({
2106
+ label: n._(t._({
2107
2107
  id: "dBrBc5",
2108
2108
  values: { selectedCount: Ne }
2109
2109
  })),
2110
- onClick: () => y(!0)
2110
+ onClick: () => _(!0)
2111
2111
  }) })]
2112
2112
  })]
2113
2113
  }), /*#__PURE__*/ I("div", {
@@ -2143,8 +2143,8 @@ var ge = (e, t) => ({
2143
2143
  }),
2144
2144
  /*#__PURE__*/ F(he, {
2145
2145
  containers: me,
2146
- createModalOpen: h,
2147
- setCreateModalOpen: g,
2146
+ createModalOpen: m,
2147
+ setCreateModalOpen: h,
2148
2148
  maxContainerNameLength: X?.swift?.max_container_name_length,
2149
2149
  onCreateSuccess: G,
2150
2150
  onCreateError: te,
@@ -2156,18 +2156,18 @@ var ge = (e, t) => ({
2156
2156
  onPropertiesError: ae,
2157
2157
  onAclSuccess: oe,
2158
2158
  onAclError: se,
2159
- selectedContainers: b,
2160
- setSelectedContainers: S,
2159
+ selectedContainers: v,
2160
+ setSelectedContainers: x,
2161
2161
  hasAnyBulkAction: !0
2162
2162
  }),
2163
2163
  /*#__PURE__*/ F(Ae, {
2164
- isOpen: _,
2164
+ isOpen: g,
2165
2165
  containers: je,
2166
- onClose: () => y(!1),
2166
+ onClose: () => _(!1),
2167
2167
  onComplete: ce
2168
2168
  }),
2169
- w && /*#__PURE__*/ F(i, {
2170
- ...w,
2169
+ S && /*#__PURE__*/ F(e, {
2170
+ ...S,
2171
2171
  className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
2172
2172
  })
2173
2173
  ]
@@ -2183,58 +2183,58 @@ var ge = (e, t) => ({
2183
2183
  "--x-s3",
2184
2184
  "--table-s3"
2185
2185
  ], Ie = ({ isOpen: e, onClose: t, onSuccess: n, onError: r }) => {
2186
- let { i18n: i, _: a } = W(), o = N(), [c, l] = V(""), [d, f] = V(null), [p, m] = V(!1), h = O.useUtils(), g = O.storage.ceph.containers.create.useMutation({
2186
+ let { i18n: i, _: a } = W(), o = N(), [s, c] = V(""), [l, u] = V(null), [d, p] = V(!1), m = O.useUtils(), g = O.storage.ceph.containers.create.useMutation({
2187
2187
  onSuccess: () => {
2188
- h.storage.ceph.containers.list.invalidate();
2189
- let e = c.trim();
2188
+ m.storage.ceph.containers.list.invalidate();
2189
+ let e = s.trim();
2190
2190
  n?.(e);
2191
2191
  },
2192
2192
  onError: (e) => {
2193
- r?.(c.trim(), e.message);
2193
+ r?.(s.trim(), e.message);
2194
2194
  },
2195
2195
  onSettled: () => {
2196
2196
  _();
2197
2197
  }
2198
2198
  }), _ = () => {
2199
- l(""), f(null), m(!1), g.reset(), t();
2199
+ c(""), u(null), p(!1), g.reset(), t();
2200
2200
  }, v = (e) => {
2201
2201
  let t = e.trim();
2202
- if (!t) return f(i._({ id: "48bMai" })), !1;
2203
- if (t.length < 3) return f(i._({ id: "gjop1H" })), !1;
2204
- if (t.length > 63) return f(i._({ id: "is0Bhk" })), !1;
2205
- if (!Me.test(t)) return f(i._({ id: "IQldU4" })), !1;
2206
- if (!/^[a-z0-9]/.test(t) || !/[a-z0-9]$/.test(t)) return f(i._({ id: "VG2a+x" })), !1;
2207
- if (t.includes("..")) return f(i._({ id: "V8/eES" })), !1;
2208
- if (Ne.test(t)) return f(i._({ id: "W8Rb/w" })), !1;
2209
- for (let e of Pe) if (t.startsWith(e)) return f(i._({
2202
+ if (!t) return u(i._({ id: "48bMai" })), !1;
2203
+ if (t.length < 3) return u(i._({ id: "gjop1H" })), !1;
2204
+ if (t.length > 63) return u(i._({ id: "is0Bhk" })), !1;
2205
+ if (!Me.test(t)) return u(i._({ id: "IQldU4" })), !1;
2206
+ if (!/^[a-z0-9]/.test(t) || !/[a-z0-9]$/.test(t)) return u(i._({ id: "VG2a+x" })), !1;
2207
+ if (t.includes("..")) return u(i._({ id: "V8/eES" })), !1;
2208
+ if (Ne.test(t)) return u(i._({ id: "W8Rb/w" })), !1;
2209
+ for (let e of Pe) if (t.startsWith(e)) return u(i._({
2210
2210
  id: "B2SpR8",
2211
2211
  values: { prefix: e }
2212
2212
  })), !1;
2213
- for (let e of Fe) if (t.endsWith(e)) return f(i._({
2213
+ for (let e of Fe) if (t.endsWith(e)) return u(i._({
2214
2214
  id: "QRlXaL",
2215
2215
  values: { suffix: e }
2216
2216
  })), !1;
2217
- return f(null), !0;
2218
- }, y = (e) => {
2217
+ return u(null), !0;
2218
+ }, b = (e) => {
2219
2219
  let t = e.target.value;
2220
- l(t), d && v(t);
2221
- }, b = () => {
2222
- v(c) && g.mutate({
2220
+ c(t), l && v(t);
2221
+ }, x = () => {
2222
+ v(s) && g.mutate({
2223
2223
  project_id: o,
2224
- bucketName: c.trim(),
2225
- enableVersioning: p
2224
+ bucketName: s.trim(),
2225
+ enableVersioning: d
2226
2226
  });
2227
2227
  };
2228
- return e ? /*#__PURE__*/ F(w, {
2228
+ return e ? /*#__PURE__*/ F(h, {
2229
2229
  title: i._({ id: "HiDAFk" }),
2230
2230
  open: e,
2231
2231
  onCancel: _,
2232
2232
  confirmButtonLabel: i._({ id: "hYgDIe" }),
2233
- onConfirm: b,
2233
+ onConfirm: x,
2234
2234
  cancelButtonLabel: i._({ id: "dEgA5A" }),
2235
2235
  size: "small",
2236
- disableConfirmButton: g.isPending || !c.trim(),
2237
- children: /*#__PURE__*/ I(s, {
2236
+ disableConfirmButton: g.isPending || !s.trim(),
2237
+ children: /*#__PURE__*/ I(f, {
2238
2238
  direction: "vertical",
2239
2239
  gap: "6",
2240
2240
  children: [
@@ -2242,51 +2242,51 @@ var ge = (e, t) => ({
2242
2242
  className: "text-theme-default",
2243
2243
  children: /*#__PURE__*/ F(U, { id: "ASJMIw" })
2244
2244
  }),
2245
- /*#__PURE__*/ F(u, {
2245
+ /*#__PURE__*/ F(S, {
2246
2246
  label: i._({ id: "NNpgo3" }),
2247
2247
  required: !0,
2248
- value: c,
2249
- onChange: y,
2248
+ value: s,
2249
+ onChange: b,
2250
2250
  onKeyDown: (e) => {
2251
- e.key === "Enter" && b();
2251
+ e.key === "Enter" && x();
2252
2252
  },
2253
- invalid: !!d,
2254
- errortext: d || void 0,
2253
+ invalid: !!l,
2254
+ errortext: l || void 0,
2255
2255
  disabled: g.isPending,
2256
2256
  autoFocus: !0,
2257
2257
  placeholder: i._({ id: "yDHGP+" })
2258
2258
  }),
2259
- /*#__PURE__*/ F(C, {
2259
+ /*#__PURE__*/ F(y, {
2260
2260
  label: i._({ id: "ifQSTI" }),
2261
2261
  helptext: i._({ id: "WM+Nm7" }),
2262
- checked: p,
2263
- onChange: (e) => m(e.target.checked),
2262
+ checked: d,
2263
+ onChange: (e) => p(e.target.checked),
2264
2264
  disabled: g.isPending
2265
2265
  })
2266
2266
  ]
2267
2267
  })
2268
2268
  }) : null;
2269
2269
  }, Le = ({ isOpen: e, bucket: t, onClose: n, onSuccess: r, onError: i }) => {
2270
- let { i18n: a, _: o } = W(), c = N(), [l, d] = V(""), [f, p] = V(null), [h, v] = V(!1), y = O.useUtils(), b = () => {
2270
+ let { i18n: a, _: o } = W(), s = N(), [c, l] = V(""), [u, d] = V(null), [m, g] = V(!1), _ = O.useUtils(), y = () => {
2271
2271
  t && navigator.clipboard.writeText(t.name).then(() => {
2272
- v(!0), setTimeout(() => v(!1), 2e3);
2272
+ g(!0), setTimeout(() => g(!1), 2e3);
2273
2273
  });
2274
- }, x = O.storage.ceph.objects.deleteAll.useMutation({ onSettled: () => {
2275
- y.storage.ceph.containers.list.invalidate(), S();
2276
- } }), S = () => {
2277
- d(""), p(null), v(!1), x.reset(), n();
2278
- }, C = (e) => {
2274
+ }, b = O.storage.ceph.objects.deleteAll.useMutation({ onSettled: () => {
2275
+ _.storage.ceph.containers.list.invalidate(), C();
2276
+ } }), C = () => {
2277
+ l(""), d(null), g(!1), b.reset(), n();
2278
+ }, w = (e) => {
2279
2279
  let t = e.target.value;
2280
- d(t), f && p(null);
2280
+ l(t), u && d(null);
2281
2281
  }, T = () => {
2282
2282
  if (!t) return;
2283
- if (l.trim() !== t.name) {
2284
- p(a._({ id: "wxVsr5" }));
2283
+ if (c.trim() !== t.name) {
2284
+ d(a._({ id: "wxVsr5" }));
2285
2285
  return;
2286
2286
  }
2287
2287
  let e = t.name;
2288
- x.mutate({
2289
- project_id: c,
2288
+ b.mutate({
2289
+ project_id: s,
2290
2290
  containerName: e
2291
2291
  }, {
2292
2292
  onSuccess: (t) => {
@@ -2301,29 +2301,29 @@ var ge = (e, t) => ({
2301
2301
  };
2302
2302
  if (!e || !t) return null;
2303
2303
  let D = t.count === 0, k = t.count, A = t.name;
2304
- return /*#__PURE__*/ F(w, {
2304
+ return /*#__PURE__*/ F(h, {
2305
2305
  title: a._({ id: "CfKRC1" }),
2306
2306
  open: e,
2307
- onCancel: S,
2307
+ onCancel: C,
2308
2308
  confirmButtonLabel: D ? void 0 : a._({ id: "N2S1rs" }),
2309
2309
  confirmButtonVariant: "primary-danger",
2310
2310
  onConfirm: D ? void 0 : T,
2311
2311
  cancelButtonLabel: D ? void 0 : a._({ id: "dEgA5A" }),
2312
- modalFooter: D ? /*#__PURE__*/ F(g, {
2312
+ modalFooter: D ? /*#__PURE__*/ F(v, {
2313
2313
  className: "flex justify-end",
2314
- children: /*#__PURE__*/ F(_, { children: /*#__PURE__*/ F(m, {
2314
+ children: /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(p, {
2315
2315
  variant: "primary",
2316
- onClick: S,
2316
+ onClick: C,
2317
2317
  "data-testid": "empty-info-close-button",
2318
2318
  children: /*#__PURE__*/ F(U, { id: "yz7wBu" })
2319
2319
  }) })
2320
2320
  }) : void 0,
2321
2321
  size: "small",
2322
- disableConfirmButton: x.isPending || !D && l.trim() !== t.name,
2322
+ disableConfirmButton: b.isPending || !D && c.trim() !== t.name,
2323
2323
  children: D ? /*#__PURE__*/ F("p", {
2324
2324
  className: "text-theme-default py-2",
2325
2325
  children: /*#__PURE__*/ F(U, { id: "tL9it8" })
2326
- }) : /*#__PURE__*/ I(s, {
2326
+ }) : /*#__PURE__*/ I(f, {
2327
2327
  direction: "vertical",
2328
2328
  gap: "6",
2329
2329
  children: [
@@ -2338,7 +2338,7 @@ var ge = (e, t) => ({
2338
2338
  components: { 0: /*#__PURE__*/ F("strong", {}) }
2339
2339
  })
2340
2340
  }),
2341
- /*#__PURE__*/ I(s, {
2341
+ /*#__PURE__*/ I(f, {
2342
2342
  direction: "vertical",
2343
2343
  gap: "2",
2344
2344
  children: [/*#__PURE__*/ I("div", {
@@ -2346,27 +2346,27 @@ var ge = (e, t) => ({
2346
2346
  children: [/*#__PURE__*/ F("span", {
2347
2347
  className: "text-theme-light text-sm",
2348
2348
  children: /*#__PURE__*/ F(U, { id: "FrLdVI" })
2349
- }), /*#__PURE__*/ F(m, {
2349
+ }), /*#__PURE__*/ F(p, {
2350
2350
  size: "small",
2351
2351
  variant: "subdued",
2352
- onClick: b,
2353
- icon: h ? "check" : "contentCopy",
2354
- label: h ? a._({ id: "6V3Ea3" }) : a._({ id: "he3ygx" })
2352
+ onClick: y,
2353
+ icon: m ? "check" : "contentCopy",
2354
+ label: m ? a._({ id: "6V3Ea3" }) : a._({ id: "he3ygx" })
2355
2355
  })]
2356
2356
  }), /*#__PURE__*/ F("div", {
2357
2357
  className: "bg-theme-background-lvl-1 rounded p-2 text-sm",
2358
2358
  children: t.name
2359
2359
  })]
2360
2360
  }),
2361
- /*#__PURE__*/ F(u, {
2361
+ /*#__PURE__*/ F(S, {
2362
2362
  label: a._({ id: "dEHa3L" }),
2363
2363
  required: !0,
2364
- value: l,
2365
- onChange: C,
2364
+ value: c,
2365
+ onChange: w,
2366
2366
  onKeyDown: E,
2367
- invalid: !!f,
2368
- errortext: f || void 0,
2369
- disabled: x.isPending,
2367
+ invalid: !!u,
2368
+ errortext: u || void 0,
2369
+ disabled: b.isPending,
2370
2370
  placeholder: t.name,
2371
2371
  autoFocus: !0
2372
2372
  })
@@ -2374,34 +2374,34 @@ var ge = (e, t) => ({
2374
2374
  })
2375
2375
  });
2376
2376
  }, Re = ({ isOpen: e, bucket: t, onClose: n, onSuccess: r, onError: i }) => {
2377
- let { i18n: a, _: o } = W(), l = N(), [d, f] = V(""), [p, h] = V(null), [v, y] = V(!1), b = () => {
2377
+ let { i18n: o, _: s } = W(), c = N(), [l, u] = V(""), [d, m] = V(null), [g, _] = V(!1), y = () => {
2378
2378
  t && navigator.clipboard.writeText(t.name).then(() => {
2379
- y(!0), setTimeout(() => y(!1), 2e3);
2379
+ _(!0), setTimeout(() => _(!1), 2e3);
2380
2380
  });
2381
- }, x = O.useUtils(), { data: S, isLoading: C, error: T } = O.storage.ceph.objects.list.useQuery({
2382
- project_id: l ?? "",
2381
+ }, b = O.useUtils(), { data: C, isLoading: w, error: T } = O.storage.ceph.objects.list.useQuery({
2382
+ project_id: c ?? "",
2383
2383
  containerName: t?.name ?? "",
2384
2384
  maxKeys: 1
2385
2385
  }, { enabled: e && t !== null }), E = O.storage.ceph.containers.delete.useMutation({ onSettled: () => {
2386
- x.storage.ceph.containers.list.invalidate(), D();
2386
+ b.storage.ceph.containers.list.invalidate(), D();
2387
2387
  } });
2388
2388
  z(() => {
2389
- e || (f(""), h(null), E.reset());
2389
+ e || (u(""), m(null), E.reset());
2390
2390
  }, [e, t?.name]);
2391
2391
  let D = () => {
2392
- f(""), h(null), E.reset(), n();
2392
+ u(""), m(null), E.reset(), n();
2393
2393
  }, k = (e) => {
2394
2394
  let t = e.target.value;
2395
- f(t), p && h(null);
2395
+ u(t), d && m(null);
2396
2396
  }, A = () => {
2397
2397
  if (!t || T) return;
2398
- if (d.trim() !== t.name) {
2399
- h(a._({ id: "wxVsr5" }));
2398
+ if (l.trim() !== t.name) {
2399
+ m(o._({ id: "wxVsr5" }));
2400
2400
  return;
2401
2401
  }
2402
2402
  let e = t.name;
2403
2403
  E.mutate({
2404
- project_id: l,
2404
+ project_id: c,
2405
2405
  bucketName: e
2406
2406
  }, {
2407
2407
  onSuccess: () => {
@@ -2415,18 +2415,18 @@ var ge = (e, t) => ({
2415
2415
  e.key === "Enter" && A();
2416
2416
  };
2417
2417
  if (!e || !t) return null;
2418
- let M = S?.objects?.length ?? 0, L = M > 0, R = T?.message;
2419
- return /*#__PURE__*/ F(w, {
2420
- title: a._({ id: "IwlPLb" }),
2418
+ let M = C?.objects?.length ?? 0, L = M > 0, R = T?.message;
2419
+ return /*#__PURE__*/ F(h, {
2420
+ title: o._({ id: "IwlPLb" }),
2421
2421
  open: e,
2422
2422
  onCancel: D,
2423
- confirmButtonLabel: L ? void 0 : a._({ id: "IwlPLb" }),
2423
+ confirmButtonLabel: L ? void 0 : o._({ id: "IwlPLb" }),
2424
2424
  confirmButtonVariant: L ? void 0 : "primary-danger",
2425
2425
  onConfirm: L ? void 0 : A,
2426
- cancelButtonLabel: L ? void 0 : a._({ id: "dEgA5A" }),
2427
- modalFooter: L ? /*#__PURE__*/ F(g, {
2426
+ cancelButtonLabel: L ? void 0 : o._({ id: "dEgA5A" }),
2427
+ modalFooter: L ? /*#__PURE__*/ F(v, {
2428
2428
  className: "flex justify-end",
2429
- children: /*#__PURE__*/ F(_, { children: /*#__PURE__*/ F(m, {
2429
+ children: /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(p, {
2430
2430
  variant: "primary",
2431
2431
  onClick: D,
2432
2432
  "data-testid": "delete-has-objects-close-button",
@@ -2434,8 +2434,8 @@ var ge = (e, t) => ({
2434
2434
  }) })
2435
2435
  }) : void 0,
2436
2436
  size: "small",
2437
- disableConfirmButton: E.isPending || C || !!T || d.trim() !== t.name,
2438
- children: /*#__PURE__*/ I(s, {
2437
+ disableConfirmButton: E.isPending || w || !!T || l.trim() !== t.name,
2438
+ children: /*#__PURE__*/ I(f, {
2439
2439
  direction: "vertical",
2440
2440
  gap: "6",
2441
2441
  children: [T && /*#__PURE__*/ F("p", {
@@ -2446,11 +2446,11 @@ var ge = (e, t) => ({
2446
2446
  id: "MJLqeY",
2447
2447
  values: { errorMessage: R }
2448
2448
  })
2449
- }), C ? /*#__PURE__*/ I(s, {
2449
+ }), w ? /*#__PURE__*/ I(f, {
2450
2450
  direction: "horizontal",
2451
2451
  gap: "2",
2452
2452
  alignment: "center",
2453
- children: [/*#__PURE__*/ F(c, {}), /*#__PURE__*/ F("span", {
2453
+ children: [/*#__PURE__*/ F(a, {}), /*#__PURE__*/ F("span", {
2454
2454
  className: "text-juno-grey-light-1 text-sm",
2455
2455
  children: /*#__PURE__*/ F(U, { id: "rPuPb+" })
2456
2456
  })]
@@ -2465,7 +2465,7 @@ var ge = (e, t) => ({
2465
2465
  className: "text-theme-default",
2466
2466
  children: /*#__PURE__*/ F(U, { id: "/pOQrn" })
2467
2467
  }),
2468
- /*#__PURE__*/ I(s, {
2468
+ /*#__PURE__*/ I(f, {
2469
2469
  direction: "vertical",
2470
2470
  gap: "2",
2471
2471
  children: [/*#__PURE__*/ I("div", {
@@ -2473,59 +2473,59 @@ var ge = (e, t) => ({
2473
2473
  children: [/*#__PURE__*/ F("span", {
2474
2474
  className: "text-theme-light text-sm",
2475
2475
  children: /*#__PURE__*/ F(U, { id: "No++00" })
2476
- }), /*#__PURE__*/ F(m, {
2476
+ }), /*#__PURE__*/ F(p, {
2477
2477
  size: "small",
2478
2478
  variant: "subdued",
2479
- onClick: b,
2480
- icon: v ? "check" : "contentCopy",
2481
- label: v ? a._({ id: "6V3Ea3" }) : a._({ id: "he3ygx" })
2479
+ onClick: y,
2480
+ icon: g ? "check" : "contentCopy",
2481
+ label: g ? o._({ id: "6V3Ea3" }) : o._({ id: "he3ygx" })
2482
2482
  })]
2483
2483
  }), /*#__PURE__*/ F("div", {
2484
2484
  className: "bg-theme-background-lvl-1 rounded p-2 text-sm",
2485
2485
  children: t.name
2486
2486
  })]
2487
2487
  }),
2488
- /*#__PURE__*/ F(u, {
2489
- label: a._({ id: "dEHa3L" }),
2488
+ /*#__PURE__*/ F(S, {
2489
+ label: o._({ id: "dEHa3L" }),
2490
2490
  required: !0,
2491
- value: d,
2491
+ value: l,
2492
2492
  onChange: k,
2493
2493
  onKeyDown: j,
2494
- invalid: !!p,
2495
- errortext: p || void 0,
2494
+ invalid: !!d,
2495
+ errortext: d || void 0,
2496
2496
  disabled: E.isPending,
2497
2497
  placeholder: t.name
2498
2498
  })
2499
2499
  ] })]
2500
2500
  })
2501
2501
  });
2502
- }, ze = ({ buckets: e, createModalOpen: t, setCreateModalOpen: i, onCreateSuccess: a, onCreateError: s, onEmptySuccess: c, onEmptyError: l, onDeleteSuccess: u, onDeleteError: d, selectedBuckets: f, setSelectedBuckets: p, hasAnyBulkAction: m = !0 }) => {
2503
- let { projectId: h, provider: g, storageType: _ } = H({ strict: !1 }), { i18n: b, _: x } = W(), S = ee(), w = B(null), [T, O] = V(0), [k, A] = V(null), [j, N] = V(null);
2502
+ }, ze = ({ buckets: e, createModalOpen: t, setCreateModalOpen: n, onCreateSuccess: a, onCreateError: o, onEmptySuccess: l, onEmptyError: u, onDeleteSuccess: d, onDeleteError: f, selectedBuckets: p, setSelectedBuckets: m, hasAnyBulkAction: h = !0 }) => {
2503
+ let { projectId: g, provider: v, storageType: x } = H({ strict: !1 }), { i18n: S, _: C } = W(), w = ee(), E = B(null), [D, O] = V(0), [k, A] = V(null), [j, N] = V(null);
2504
2504
  z(() => {
2505
- w.current && O(w.current.offsetWidth - w.current.clientWidth);
2505
+ E.current && O(E.current.offsetWidth - E.current.clientWidth);
2506
2506
  }, [e.length]);
2507
2507
  let L = (e) => {
2508
2508
  try {
2509
2509
  return new Date(e).toLocaleString();
2510
2510
  } catch {
2511
- return b._({ id: "fj5byd" });
2511
+ return S._({ id: "fj5byd" });
2512
2512
  }
2513
2513
  }, R = ne({
2514
2514
  count: e.length,
2515
- getScrollElement: () => w.current,
2515
+ getScrollElement: () => E.current,
2516
2516
  estimateSize: () => 48,
2517
2517
  overscan: 10
2518
- }), G = new Set(f), te = e.length > 0 && e.every((e) => G.has(e.name)), K = () => {
2518
+ }), G = new Set(p), te = e.length > 0 && e.every((e) => G.has(e.name)), K = () => {
2519
2519
  let t = e.map((e) => e.name);
2520
- p(te ? f.filter((e) => !t.includes(e)) : [...new Set([...f, ...t])]);
2520
+ m(te ? p.filter((e) => !t.includes(e)) : [...new Set([...p, ...t])]);
2521
2521
  }, re = (e) => {
2522
- f.includes(e) ? p(f.filter((t) => t !== e)) : p([...f, e]);
2522
+ p.includes(e) ? m(p.filter((t) => t !== e)) : m([...p, e]);
2523
2523
  };
2524
- if (!e || e.length === 0) return /*#__PURE__*/ F(y, {
2524
+ if (!e || e.length === 0) return /*#__PURE__*/ F(_, {
2525
2525
  columns: 4,
2526
2526
  className: "buckets",
2527
2527
  "data-testid": "no-buckets",
2528
- children: /*#__PURE__*/ F(D, { children: /*#__PURE__*/ F(r, {
2528
+ children: /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(i, {
2529
2529
  colSpan: 4,
2530
2530
  children: /*#__PURE__*/ I("div", {
2531
2531
  className: "py-8 text-center",
@@ -2539,32 +2539,32 @@ var ge = (e, t) => ({
2539
2539
  })
2540
2540
  }) })
2541
2541
  });
2542
- let q = m ? 6 : 5, ie = m ? "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";
2542
+ let q = h ? 6 : 5, ie = 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";
2543
2543
  return /*#__PURE__*/ I(P, { children: [
2544
2544
  /*#__PURE__*/ I("div", {
2545
2545
  className: "relative",
2546
2546
  children: [/*#__PURE__*/ F("div", {
2547
- style: { paddingRight: `${T}px` },
2548
- children: /*#__PURE__*/ F(y, {
2547
+ style: { paddingRight: `${D}px` },
2548
+ children: /*#__PURE__*/ F(_, {
2549
2549
  columns: q,
2550
2550
  gridColumnTemplate: ie,
2551
2551
  className: "buckets",
2552
2552
  "data-testid": "buckets-table-header",
2553
- children: /*#__PURE__*/ I(D, { children: [
2554
- m && /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(C, {
2553
+ children: /*#__PURE__*/ I(c, { children: [
2554
+ h && /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(y, {
2555
2555
  checked: te,
2556
2556
  onChange: K,
2557
2557
  "data-testid": "select-all-buckets"
2558
2558
  }) }),
2559
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "BTsbBe" }) }),
2560
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "sxbP3b" }) }),
2561
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "sjMCOP" }) }),
2562
- /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(U, { id: "hgpMHD" }) }),
2563
- /*#__PURE__*/ F(n, { style: { marginRight: `-${T}px` } })
2559
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "BTsbBe" }) }),
2560
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "sxbP3b" }) }),
2561
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "sjMCOP" }) }),
2562
+ /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(U, { id: "hgpMHD" }) }),
2563
+ /*#__PURE__*/ F(s, { style: { marginRight: `-${D}px` } })
2564
2564
  ] })
2565
2565
  })
2566
2566
  }), /*#__PURE__*/ F("div", {
2567
- ref: w,
2567
+ ref: E,
2568
2568
  className: "overflow-auto",
2569
2569
  style: { height: "calc(100vh - 490px)" },
2570
2570
  "data-testid": "buckets-table-body",
@@ -2575,12 +2575,12 @@ var ge = (e, t) => ({
2575
2575
  position: "relative"
2576
2576
  },
2577
2577
  children: R.getVirtualItems().map((t) => {
2578
- let n = e[t.index], i = f.includes(n.name), a = () => S({
2578
+ let n = e[t.index], a = p.includes(n.name), o = () => w({
2579
2579
  to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
2580
2580
  params: {
2581
- projectId: h ?? "",
2582
- provider: g ?? "ceph",
2583
- storageType: _ ?? "buckets",
2581
+ projectId: g ?? "",
2582
+ provider: v ?? "ceph",
2583
+ storageType: x ?? "buckets",
2584
2584
  containerName: n.name
2585
2585
  }
2586
2586
  });
@@ -2601,23 +2601,23 @@ var ge = (e, t) => ({
2601
2601
  "data-testid": `bucket-row-${n.name}`,
2602
2602
  role: "link",
2603
2603
  tabIndex: 0,
2604
- onClick: a,
2604
+ onClick: o,
2605
2605
  onKeyDown: (e) => {
2606
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
2606
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o());
2607
2607
  },
2608
2608
  children: [
2609
- m && /*#__PURE__*/ F(r, {
2609
+ h && /*#__PURE__*/ F(i, {
2610
2610
  onClick: (e) => e.stopPropagation(),
2611
2611
  onKeyDown: (e) => {
2612
2612
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
2613
2613
  },
2614
- children: /*#__PURE__*/ F(C, {
2615
- checked: i,
2614
+ children: /*#__PURE__*/ F(y, {
2615
+ checked: a,
2616
2616
  onChange: () => re(n.name),
2617
2617
  "data-testid": `select-bucket-${n.name}`
2618
2618
  })
2619
2619
  }),
2620
- /*#__PURE__*/ F(r, {
2620
+ /*#__PURE__*/ F(i, {
2621
2621
  className: "min-w-0 overflow-hidden",
2622
2622
  children: /*#__PURE__*/ F("span", {
2623
2623
  className: "block truncate",
@@ -2625,17 +2625,17 @@ var ge = (e, t) => ({
2625
2625
  children: n.name
2626
2626
  })
2627
2627
  }),
2628
- /*#__PURE__*/ F(r, { children: n.count.toLocaleString() }),
2629
- /*#__PURE__*/ F(r, { children: L(n.last_modified || n.creationDate || "") }),
2630
- /*#__PURE__*/ F(r, { children: M(n.bytes) }),
2631
- /*#__PURE__*/ F(r, {
2628
+ /*#__PURE__*/ F(i, { children: n.count.toLocaleString() }),
2629
+ /*#__PURE__*/ F(i, { children: L(n.last_modified || n.creationDate || "") }),
2630
+ /*#__PURE__*/ F(i, { children: M(n.bytes) }),
2631
+ /*#__PURE__*/ F(i, {
2632
2632
  onClick: (e) => e.stopPropagation(),
2633
- children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ I(E, { children: [/*#__PURE__*/ F(v, {
2634
- label: b._({ id: "N2S1rs" }),
2633
+ children: /*#__PURE__*/ F(r, { children: /*#__PURE__*/ I(T, { children: [/*#__PURE__*/ F(b, {
2634
+ label: S._({ id: "N2S1rs" }),
2635
2635
  onClick: () => A(n),
2636
2636
  "data-testid": `empty-action-${n.name}`
2637
- }), /*#__PURE__*/ F(v, {
2638
- label: b._({ id: "cnGeoo" }),
2637
+ }), /*#__PURE__*/ F(b, {
2638
+ label: S._({ id: "cnGeoo" }),
2639
2639
  onClick: () => N(n),
2640
2640
  "data-testid": `delete-action-${n.name}`
2641
2641
  })] }) })
@@ -2648,30 +2648,30 @@ var ge = (e, t) => ({
2648
2648
  }),
2649
2649
  /*#__PURE__*/ F(Ie, {
2650
2650
  isOpen: t,
2651
- onClose: () => i(!1),
2651
+ onClose: () => n(!1),
2652
2652
  onSuccess: a,
2653
- onError: s
2653
+ onError: o
2654
2654
  }),
2655
2655
  /*#__PURE__*/ F(Le, {
2656
2656
  isOpen: k !== null,
2657
2657
  bucket: k,
2658
2658
  onClose: () => A(null),
2659
- onSuccess: c,
2660
- onError: l
2659
+ onSuccess: l,
2660
+ onError: u
2661
2661
  }),
2662
2662
  /*#__PURE__*/ F(Re, {
2663
2663
  isOpen: j !== null,
2664
2664
  bucket: j,
2665
2665
  onClose: () => N(null),
2666
- onSuccess: u,
2667
- onError: d
2666
+ onSuccess: d,
2667
+ onError: f
2668
2668
  })
2669
2669
  ] });
2670
2670
  };
2671
2671
  //#endregion
2672
2672
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/BucketToastNotifications.tsx
2673
2673
  function Be({ title: e, description: t }) {
2674
- return /*#__PURE__*/ I(s, {
2674
+ return /*#__PURE__*/ I(f, {
2675
2675
  direction: "vertical",
2676
2676
  gap: "1.5",
2677
2677
  children: [/*#__PURE__*/ F("span", { children: e }), /*#__PURE__*/ F("span", {
@@ -2785,72 +2785,72 @@ var Ve = (e, t) => ({
2785
2785
  }),
2786
2786
  onDismiss: r.onDismiss
2787
2787
  };
2788
- }, Je = 20, Ye = ({ isOpen: t, buckets: n, onClose: r, onComplete: i }) => {
2789
- let { i18n: a, _: o } = W(), l = N(), [d, f] = V(null), [p, m] = V(""), h = O.useUtils(), g = O.storage.ceph.objects.deleteAll.useMutation(), _ = () => {
2790
- g.reset(), f(null), m(""), r();
2788
+ }, Je = 20, Ye = ({ isOpen: e, buckets: t, onClose: n, onComplete: r }) => {
2789
+ let { i18n: i, _: s } = W(), c = N(), [l, u] = V(null), [d, p] = V(""), m = O.useUtils(), g = O.storage.ceph.objects.deleteAll.useMutation(), _ = () => {
2790
+ g.reset(), u(null), p(""), n();
2791
2791
  }, v = async () => {
2792
- let e = 0, t = 0, r = [], a = n.length;
2793
- for (let i = 0; i < n.length; i++) {
2794
- f({
2795
- current: i + 1,
2792
+ let e = 0, n = 0, i = [], a = t.length;
2793
+ for (let r = 0; r < t.length; r++) {
2794
+ u({
2795
+ current: r + 1,
2796
2796
  total: a
2797
2797
  });
2798
- let o = n[i];
2798
+ let o = t[r];
2799
2799
  try {
2800
- let n = await g.mutateAsync({
2801
- project_id: l,
2800
+ let t = await g.mutateAsync({
2801
+ project_id: c,
2802
2802
  containerName: o.name
2803
2803
  });
2804
- t += n, e++;
2804
+ n += t, e++;
2805
2805
  } catch (e) {
2806
2806
  let t = e instanceof Error ? e.message : String(e);
2807
- r.push(`${o.name}: ${t}`);
2807
+ i.push(`${o.name}: ${t}`);
2808
2808
  }
2809
2809
  }
2810
- e > 0 && await h.storage.ceph.containers.list.invalidate(), i?.({
2810
+ e > 0 && await m.storage.ceph.containers.list.invalidate(), r?.({
2811
2811
  emptiedCount: e,
2812
- totalDeleted: t,
2813
- errors: r
2812
+ totalDeleted: n,
2813
+ errors: i
2814
2814
  }), _();
2815
2815
  };
2816
- if (!t || n.length === 0) return null;
2817
- let y = n.length, b = n.slice(0, Je), x = y - b.length, S = g.isPending || d !== null, C = d?.current, T = d?.total, E = p === "empty";
2818
- return /*#__PURE__*/ F(w, {
2816
+ if (!e || t.length === 0) return null;
2817
+ let y = t.length, b = t.slice(0, Je), x = y - b.length, C = g.isPending || l !== null, w = l?.current, T = l?.total, E = d === "empty";
2818
+ return /*#__PURE__*/ F(h, {
2819
2819
  title: /*#__PURE__*/ F(U, {
2820
2820
  id: "DWBWmW",
2821
2821
  values: { totalCount: y }
2822
2822
  }),
2823
- open: t,
2823
+ open: e,
2824
2824
  onCancel: _,
2825
- confirmButtonLabel: S ? a._({ id: "s4Vnq2" }) : a._({ id: "N2S1rs" }),
2825
+ confirmButtonLabel: C ? i._({ id: "s4Vnq2" }) : i._({ id: "N2S1rs" }),
2826
2826
  confirmButtonVariant: "primary-danger",
2827
- cancelButtonLabel: a._({ id: "dEgA5A" }),
2827
+ cancelButtonLabel: i._({ id: "dEgA5A" }),
2828
2828
  onConfirm: v,
2829
- disableConfirmButton: S || !E,
2830
- disableCancelButton: S,
2831
- disableCloseButton: S,
2829
+ disableConfirmButton: C || !E,
2830
+ disableCancelButton: C,
2831
+ disableCloseButton: C,
2832
2832
  size: "small",
2833
- children: S ? /*#__PURE__*/ I(s, {
2833
+ children: C ? /*#__PURE__*/ I(f, {
2834
2834
  direction: "vertical",
2835
2835
  distribution: "center",
2836
2836
  alignment: "center",
2837
2837
  gap: "2",
2838
2838
  className: "py-4",
2839
- children: [/*#__PURE__*/ F(c, { variant: "primary" }), d && /*#__PURE__*/ F("p", {
2839
+ children: [/*#__PURE__*/ F(a, { variant: "primary" }), l && /*#__PURE__*/ F("p", {
2840
2840
  className: "text-theme-light text-sm",
2841
2841
  children: /*#__PURE__*/ F(U, {
2842
2842
  id: "NW1XEL",
2843
2843
  values: {
2844
- progressCurrent: C,
2844
+ progressCurrent: w,
2845
2845
  progressTotal: T
2846
2846
  }
2847
2847
  })
2848
2848
  })]
2849
- }) : /*#__PURE__*/ I(s, {
2849
+ }) : /*#__PURE__*/ I(f, {
2850
2850
  direction: "vertical",
2851
2851
  gap: "4",
2852
2852
  children: [
2853
- /*#__PURE__*/ F(e, {
2853
+ /*#__PURE__*/ F(o, {
2854
2854
  variant: "danger",
2855
2855
  children: /*#__PURE__*/ F(U, {
2856
2856
  id: "CtiFDz",
@@ -2885,10 +2885,10 @@ var Ve = (e, t) => ({
2885
2885
  })
2886
2886
  })]
2887
2887
  })] }),
2888
- /*#__PURE__*/ F(u, {
2889
- label: a._({ id: "Ghp863" }),
2890
- value: p,
2891
- onChange: (e) => m(e.target.value),
2888
+ /*#__PURE__*/ F(S, {
2889
+ label: i._({ id: "Ghp863" }),
2890
+ value: d,
2891
+ onChange: (e) => p(e.target.value),
2892
2892
  placeholder: "empty",
2893
2893
  autoFocus: !0
2894
2894
  })
@@ -2898,29 +2898,29 @@ var Ve = (e, t) => ({
2898
2898
  };
2899
2899
  //#endregion
2900
2900
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/CredentialPrompt.tsx
2901
- function Xe({ onSuccess: e }) {
2902
- let t = N(), [n, r] = V(null), a = O.useUtils(), o = O.storage.ceph.ec2Credentials.create.useMutation({
2901
+ function Xe({ onSuccess: t }) {
2902
+ let n = N(), [r, i] = V(null), a = O.useUtils(), o = O.storage.ceph.ec2Credentials.create.useMutation({
2903
2903
  onSuccess: () => {
2904
- a.storage.ceph.ec2Credentials.list.invalidate(), e();
2904
+ a.storage.ceph.ec2Credentials.list.invalidate(), t();
2905
2905
  },
2906
2906
  onError: (e) => {
2907
2907
  let t = e.message;
2908
- r({
2908
+ i({
2909
2909
  variant: "error",
2910
2910
  children: /*#__PURE__*/ F(U, {
2911
2911
  id: "rcBt6T",
2912
2912
  values: { errorMessage: t }
2913
2913
  }),
2914
- onDismiss: () => r(null)
2914
+ onDismiss: () => i(null)
2915
2915
  });
2916
2916
  }
2917
2917
  });
2918
- return /*#__PURE__*/ I(s, {
2918
+ return /*#__PURE__*/ I(f, {
2919
2919
  direction: "vertical",
2920
2920
  gap: "4",
2921
2921
  className: "mt-8 max-w-lg",
2922
2922
  children: [
2923
- n && /*#__PURE__*/ F(i, { ...n }),
2923
+ r && /*#__PURE__*/ F(e, { ...r }),
2924
2924
  /*#__PURE__*/ F("h2", {
2925
2925
  className: "text-lg font-semibold",
2926
2926
  children: /*#__PURE__*/ F(U, { id: "wXxPjv" })
@@ -2933,9 +2933,9 @@ function Xe({ onSuccess: e }) {
2933
2933
  className: "text-theme-default text-sm",
2934
2934
  children: /*#__PURE__*/ F(U, { id: "+1xG4p" })
2935
2935
  }),
2936
- /*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(m, {
2937
- onClick: () => t && o.mutate({ project_id: t }),
2938
- disabled: o.isPending || !t,
2936
+ /*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(p, {
2937
+ onClick: () => n && o.mutate({ project_id: n }),
2938
+ disabled: o.isPending || !n,
2939
2939
  children: o.isPending ? /*#__PURE__*/ F(U, { id: "k/zHK7" }) : /*#__PURE__*/ F(U, { id: "FJO48W" })
2940
2940
  }) })
2941
2941
  ]
@@ -2944,59 +2944,59 @@ function Xe({ onSuccess: e }) {
2944
2944
  //#endregion
2945
2945
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/index.tsx
2946
2946
  var Ze = () => {
2947
- let { i18n: e, i18n: n, _: r } = W(), a = N(), l = ee({ from: k.fullPath }), { sortBy: u, sortDirection: d, search: f = "" } = k.useSearch(), [h, g] = V(!1), [_, y] = V(!1), [b, S] = V([]), [w, T] = V(null), [D, A] = V(f), M = B(void 0);
2947
+ let { i18n: t, i18n: n, _: i } = W(), o = N(), s = ee({ from: k.fullPath }), { sortBy: c, sortDirection: l, search: u = "" } = k.useSearch(), [m, h] = V(!1), [g, _] = V(!1), [v, x] = V([]), [S, w] = V(null), [D, A] = V(u), M = B(void 0);
2948
2948
  z(() => () => clearTimeout(M.current), []), z(() => {
2949
- A(f);
2950
- }, [f]);
2951
- let P = () => T(null), R = (e) => {
2952
- T(Ve(e, { onDismiss: P }));
2949
+ A(u);
2950
+ }, [u]);
2951
+ let P = () => w(null), R = (e) => {
2952
+ w(Ve(e, { onDismiss: P }));
2953
2953
  }, H = (e, t) => {
2954
- T(He(e, t, { onDismiss: P }));
2954
+ w(He(e, t, { onDismiss: P }));
2955
2955
  }, G = (e, t) => {
2956
- T(Ue(e, t, { onDismiss: P }));
2956
+ w(Ue(e, t, { onDismiss: P }));
2957
2957
  }, te = (e, t) => {
2958
- T(We(e, t, { onDismiss: P }));
2958
+ w(We(e, t, { onDismiss: P }));
2959
2959
  }, ne = (e) => {
2960
- T(Ge(e, { onDismiss: P }));
2960
+ w(Ge(e, { onDismiss: P }));
2961
2961
  }, K = (e, t) => {
2962
- T(Ke(e, t, { onDismiss: P }));
2962
+ w(Ke(e, t, { onDismiss: P }));
2963
2963
  }, re = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
2964
- if (n.length === 0) S([]);
2964
+ if (n.length === 0) x([]);
2965
2965
  else {
2966
2966
  let e = new Set(n.map((e) => e.split(": ")[0]));
2967
- S((t) => t.filter((t) => e.has(t)));
2967
+ x((t) => t.filter((t) => e.has(t)));
2968
2968
  }
2969
- T(qe(e, t, n, { onDismiss: P }));
2969
+ w(qe(e, t, n, { onDismiss: P }));
2970
2970
  }, q = {
2971
2971
  options: [
2972
2972
  {
2973
- label: e._({ id: "6YtxFj" }),
2973
+ label: t._({ id: "6YtxFj" }),
2974
2974
  value: "name"
2975
2975
  },
2976
2976
  {
2977
- label: e._({ id: "sxbP3b" }),
2977
+ label: t._({ id: "sxbP3b" }),
2978
2978
  value: "count"
2979
2979
  },
2980
2980
  {
2981
- label: e._({ id: "hgpMHD" }),
2981
+ label: t._({ id: "hgpMHD" }),
2982
2982
  value: "bytes"
2983
2983
  },
2984
2984
  {
2985
- label: e._({ id: "sjMCOP" }),
2985
+ label: t._({ id: "sjMCOP" }),
2986
2986
  value: "last_modified"
2987
2987
  }
2988
2988
  ],
2989
- sortBy: u ?? "name",
2990
- sortDirection: d ?? "asc"
2989
+ sortBy: c ?? "name",
2990
+ sortDirection: l ?? "asc"
2991
2991
  }, { data: ie, isLoading: ae, error: oe } = O.storage.ceph.containers.list.useQuery({
2992
- project_id: a,
2992
+ project_id: o,
2993
2993
  includeMetadata: !0
2994
2994
  }, {
2995
- enabled: !!a,
2995
+ enabled: !!o,
2996
2996
  retry: !1
2997
2997
  }), se = (e) => [...e].sort((e, t) => {
2998
2998
  let n;
2999
- switch (u ?? "name") {
2999
+ switch (c ?? "name") {
3000
3000
  case "name":
3001
3001
  n = e.name.localeCompare(t.name);
3002
3002
  break;
@@ -3014,11 +3014,11 @@ var Ze = () => {
3014
3014
  break;
3015
3015
  default: n = e.name.localeCompare(t.name);
3016
3016
  }
3017
- return (d ?? "asc") === "desc" ? -n : n;
3018
- }), ce = (ie || []).filter((e) => e.name.toLowerCase().includes(f.toLowerCase())), J = se(ce), Y = (e) => {
3017
+ return (l ?? "asc") === "desc" ? -n : n;
3018
+ }), ce = (ie || []).filter((e) => e.name.toLowerCase().includes(u.toLowerCase())), J = se(ce), Y = (e) => {
3019
3019
  let t = typeof e == "string" ? e : "";
3020
3020
  L(() => {
3021
- l({ search: (e) => ({
3021
+ s({ search: (e) => ({
3022
3022
  ...e,
3023
3023
  search: t || void 0
3024
3024
  }) });
@@ -3026,19 +3026,19 @@ var Ze = () => {
3026
3026
  }, le = (e) => {
3027
3027
  let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
3028
3028
  L(() => {
3029
- l({ search: (e) => ({
3029
+ s({ search: (e) => ({
3030
3030
  ...e,
3031
3031
  sortBy: t,
3032
3032
  sortDirection: n
3033
3033
  }) });
3034
3034
  });
3035
3035
  };
3036
- if (ae) return /*#__PURE__*/ I(s, {
3036
+ if (ae) return /*#__PURE__*/ I(f, {
3037
3037
  className: "absolute inset-0",
3038
3038
  distribution: "center",
3039
3039
  alignment: "center",
3040
3040
  direction: "vertical",
3041
- children: [/*#__PURE__*/ F(c, {
3041
+ children: [/*#__PURE__*/ F(a, {
3042
3042
  variant: "primary",
3043
3043
  size: "large",
3044
3044
  className: "mb-2"
@@ -3059,19 +3059,19 @@ var Ze = () => {
3059
3059
  })
3060
3060
  });
3061
3061
  }
3062
- let ue = (ie || []).filter((e) => b.includes(e.name)), de = ue.length > 0, X = ue.length, fe = (ie || []).length, pe = ce.length, me = J.map((e) => e.name), he = me.length > 0 && me.every((e) => b.includes(e)), Z = me.some((e) => b.includes(e));
3062
+ let ue = (ie || []).filter((e) => v.includes(e.name)), de = ue.length > 0, X = ue.length, fe = (ie || []).length, pe = ce.length, me = J.map((e) => e.name), he = me.length > 0 && me.every((e) => v.includes(e)), Z = me.some((e) => v.includes(e));
3063
3063
  return /*#__PURE__*/ I("div", {
3064
3064
  className: "relative",
3065
3065
  children: [
3066
- /*#__PURE__*/ I(s, {
3066
+ /*#__PURE__*/ I(f, {
3067
3067
  direction: "vertical",
3068
3068
  children: [
3069
- /*#__PURE__*/ I(s, {
3069
+ /*#__PURE__*/ I(f, {
3070
3070
  distribution: "end",
3071
3071
  alignment: "center",
3072
3072
  gap: "2",
3073
3073
  className: "pb-2",
3074
- children: [/*#__PURE__*/ F(s, {
3074
+ children: [/*#__PURE__*/ F(f, {
3075
3075
  gap: "0.5",
3076
3076
  alignment: "center",
3077
3077
  children: /*#__PURE__*/ F(j, {
@@ -3088,21 +3088,21 @@ var Ze = () => {
3088
3088
  sortDirection: e
3089
3089
  })
3090
3090
  })
3091
- }), /*#__PURE__*/ F(m, {
3091
+ }), /*#__PURE__*/ F(p, {
3092
3092
  variant: "primary",
3093
3093
  className: "whitespace-nowrap",
3094
- onClick: () => g(!0),
3094
+ onClick: () => h(!0),
3095
3095
  children: /*#__PURE__*/ F(U, { id: "HiDAFk" })
3096
3096
  })]
3097
3097
  }),
3098
- /*#__PURE__*/ F(p, { children: /*#__PURE__*/ F(s, {
3098
+ /*#__PURE__*/ F(E, { children: /*#__PURE__*/ F(f, {
3099
3099
  direction: "vertical",
3100
3100
  gap: "2",
3101
- children: /*#__PURE__*/ F(s, {
3101
+ children: /*#__PURE__*/ F(f, {
3102
3102
  distribution: "end",
3103
3103
  alignment: "center",
3104
- children: /*#__PURE__*/ F(x, {
3105
- placeholder: e._({ id: "VeDAv2" }),
3104
+ children: /*#__PURE__*/ F(d, {
3105
+ placeholder: t._({ id: "VeDAv2" }),
3106
3106
  "data-testid": "searchbar",
3107
3107
  value: D,
3108
3108
  onInput: (e) => {
@@ -3118,43 +3118,43 @@ var Ze = () => {
3118
3118
  })
3119
3119
  })
3120
3120
  }) }),
3121
- /*#__PURE__*/ F(p, { children: /*#__PURE__*/ I(s, {
3121
+ /*#__PURE__*/ F(E, { children: /*#__PURE__*/ I(f, {
3122
3122
  distribution: "start",
3123
3123
  gap: "2",
3124
3124
  alignment: "center",
3125
3125
  className: "text-sm",
3126
- children: [/*#__PURE__*/ I(s, {
3126
+ children: [/*#__PURE__*/ I(f, {
3127
3127
  gap: "2",
3128
3128
  alignment: "center",
3129
- children: [/*#__PURE__*/ F(C, {
3129
+ children: [/*#__PURE__*/ F(y, {
3130
3130
  checked: he,
3131
3131
  indeterminate: Z && !he,
3132
3132
  onChange: () => {
3133
- S(he ? (e) => e.filter((e) => !me.includes(e)) : (e) => [...new Set([...e, ...me])]);
3133
+ x(he ? (e) => e.filter((e) => !me.includes(e)) : (e) => [...new Set([...e, ...me])]);
3134
3134
  }
3135
- }), /*#__PURE__*/ I(o, {
3135
+ }), /*#__PURE__*/ I(r, {
3136
3136
  className: "flex items-center",
3137
- children: [/*#__PURE__*/ F(t, {
3137
+ children: [/*#__PURE__*/ F(C, {
3138
3138
  as: "div",
3139
- children: /*#__PURE__*/ F(m, {
3139
+ children: /*#__PURE__*/ F(p, {
3140
3140
  disabled: !de,
3141
3141
  size: "small",
3142
3142
  icon: "moreVert",
3143
- label: e._({ id: "7L01XJ" })
3143
+ label: t._({ id: "7L01XJ" })
3144
3144
  })
3145
- }), de && /*#__PURE__*/ F(E, { children: /*#__PURE__*/ F(v, {
3145
+ }), de && /*#__PURE__*/ F(T, { children: /*#__PURE__*/ F(b, {
3146
3146
  disabled: !de,
3147
- label: n._(e._({
3147
+ label: n._(t._({
3148
3148
  id: "P2tWBZ",
3149
3149
  values: { selectedCount: X }
3150
3150
  })),
3151
- onClick: () => y(!0)
3151
+ onClick: () => _(!0)
3152
3152
  }) })]
3153
3153
  })]
3154
3154
  }), /*#__PURE__*/ F("div", {
3155
3155
  className: "text-theme-light flex items-center gap-1",
3156
3156
  "data-testid": "buckets-info-block",
3157
- children: f.trim() ? /*#__PURE__*/ F(U, {
3157
+ children: u.trim() ? /*#__PURE__*/ F(U, {
3158
3158
  id: "xOvKAE",
3159
3159
  values: {
3160
3160
  totalCount: fe,
@@ -3170,26 +3170,26 @@ var Ze = () => {
3170
3170
  }),
3171
3171
  /*#__PURE__*/ F(ze, {
3172
3172
  buckets: J,
3173
- createModalOpen: h,
3174
- setCreateModalOpen: g,
3173
+ createModalOpen: m,
3174
+ setCreateModalOpen: h,
3175
3175
  onCreateSuccess: R,
3176
3176
  onCreateError: H,
3177
3177
  onEmptySuccess: G,
3178
3178
  onEmptyError: te,
3179
3179
  onDeleteSuccess: ne,
3180
3180
  onDeleteError: K,
3181
- selectedBuckets: b,
3182
- setSelectedBuckets: S,
3181
+ selectedBuckets: v,
3182
+ setSelectedBuckets: x,
3183
3183
  hasAnyBulkAction: !0
3184
3184
  }),
3185
3185
  /*#__PURE__*/ F(Ye, {
3186
- isOpen: _,
3186
+ isOpen: g,
3187
3187
  buckets: ue,
3188
- onClose: () => y(!1),
3188
+ onClose: () => _(!1),
3189
3189
  onComplete: re
3190
3190
  }),
3191
- w && /*#__PURE__*/ F(i, {
3192
- ...w,
3191
+ S && /*#__PURE__*/ F(e, {
3192
+ ...S,
3193
3193
  className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
3194
3194
  })
3195
3195
  ]
@@ -3240,4 +3240,4 @@ var $e = () => /*#__PURE__*/ F(Qe, {});
3240
3240
  //#endregion
3241
3241
  export { $e as component };
3242
3242
 
3243
- //# sourceMappingURL=_storageType-DYjo-6ej.mjs.map
3243
+ //# sourceMappingURL=_storageType-2_fau4B5.mjs.map