@cobaltcore-dev/aurora 0.5.0 → 0.6.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 (113) hide show
  1. package/dist/client/{ContentHeader-xQVhO2yT.mjs → ContentHeader-kx1Th5Sq.mjs} +18 -18
  2. package/dist/client/{ContentHeader-xQVhO2yT.mjs.map → ContentHeader-kx1Th5Sq.mjs.map} +1 -1
  3. package/dist/client/{DeleteFlavorModal-CHTUZ3YV.mjs → DeleteFlavorModal-C3cb7YiJ.mjs} +155 -155
  4. package/dist/client/{DeleteFlavorModal-CHTUZ3YV.mjs.map → DeleteFlavorModal-C3cb7YiJ.mjs.map} +1 -1
  5. package/dist/client/{EditSecurityGroupModal-CWHHx2Xk.mjs → EditSecurityGroupModal-CpP54WIK.mjs} +18 -18
  6. package/dist/client/{EditSecurityGroupModal-CWHHx2Xk.mjs.map → EditSecurityGroupModal-CpP54WIK.mjs.map} +1 -1
  7. package/dist/client/{FiltersInput-UKJpNFdr.mjs → FiltersInput-DxcyR6Bp.mjs} +18 -18
  8. package/dist/client/{FiltersInput-UKJpNFdr.mjs.map → FiltersInput-DxcyR6Bp.mjs.map} +1 -1
  9. package/dist/client/{FloatingIpActionModals-caXn6bYo.mjs → FloatingIpActionModals-BP8RWHbu.mjs} +55 -55
  10. package/dist/client/{FloatingIpActionModals-caXn6bYo.mjs.map → FloatingIpActionModals-BP8RWHbu.mjs.map} +1 -1
  11. package/dist/client/{ImageToastNotifications-BWimIzu_.mjs → ImageToastNotifications-TZ3EfQg-.mjs} +323 -371
  12. package/dist/client/ImageToastNotifications-TZ3EfQg-.mjs.map +1 -0
  13. package/dist/client/{RouteError-CUj_m3gu.mjs → RouteError-QSV7qOoJ.mjs} +2 -2
  14. package/dist/client/{RouteError-CUj_m3gu.mjs.map → RouteError-QSV7qOoJ.mjs.map} +1 -1
  15. package/dist/client/{SortInput-GQlQBlAj.mjs → SortInput-CYv2_Pur.mjs} +5 -5
  16. package/dist/client/{SortInput-GQlQBlAj.mjs.map → SortInput-CYv2_Pur.mjs.map} +1 -1
  17. package/dist/client/{_flavorId-sUWG0xuy.mjs → _flavorId-C2x43-6S.mjs} +9 -9
  18. package/dist/client/{_flavorId-sUWG0xuy.mjs.map → _flavorId-C2x43-6S.mjs.map} +1 -1
  19. package/dist/client/{_flavorId-C5dc1N_j.mjs → _flavorId-CR8ZUI-P.mjs} +46 -46
  20. package/dist/client/{_flavorId-C5dc1N_j.mjs.map → _flavorId-CR8ZUI-P.mjs.map} +1 -1
  21. package/dist/client/{_floatingIpId-CT4y-60o.mjs → _floatingIpId-BCk41_Lb.mjs} +2 -2
  22. package/dist/client/{_floatingIpId-CT4y-60o.mjs.map → _floatingIpId-BCk41_Lb.mjs.map} +1 -1
  23. package/dist/client/{_floatingIpId-COK_TBrz2.mjs → _floatingIpId-BGrOAmPT.mjs} +33 -33
  24. package/dist/client/_floatingIpId-BGrOAmPT.mjs.map +1 -0
  25. package/dist/client/_imageId-CvfD832b.mjs +534 -0
  26. package/dist/client/{_imageId-n3RcnhAR.mjs.map → _imageId-CvfD832b.mjs.map} +1 -1
  27. package/dist/client/_pcaId-BxBt5DXi.mjs +459 -0
  28. package/dist/client/_pcaId-BxBt5DXi.mjs.map +1 -0
  29. package/dist/client/{_pcaId-ChnM_t-9.mjs → _pcaId-DOHycvCf.mjs} +2 -2
  30. package/dist/client/{_pcaId-ChnM_t-9.mjs.map → _pcaId-DOHycvCf.mjs.map} +1 -1
  31. package/dist/client/{_projectId-26bw-_rm.mjs → _projectId-BDSWnMGj.mjs} +3 -3
  32. package/dist/client/{_projectId-26bw-_rm.mjs.map → _projectId-BDSWnMGj.mjs.map} +1 -1
  33. package/dist/client/{_projectId-Dhb4AyBD.mjs → _projectId-DOgwFiqD.mjs} +2 -2
  34. package/dist/client/{_projectId-Dhb4AyBD.mjs.map → _projectId-DOgwFiqD.mjs.map} +1 -1
  35. package/dist/client/_projectId-DS4nR59B.mjs +299 -0
  36. package/dist/client/_projectId-DS4nR59B.mjs.map +1 -0
  37. package/dist/client/{_projectId-BK9UqeYw.mjs → _projectId-MxcHrXW4.mjs} +12 -12
  38. package/dist/client/_projectId-MxcHrXW4.mjs.map +1 -0
  39. package/dist/client/{_securityGroupId-CR1mKICQ.mjs → _securityGroupId-CJJanWiY.mjs} +2 -2
  40. package/dist/client/{_securityGroupId-CR1mKICQ.mjs.map → _securityGroupId-CJJanWiY.mjs.map} +1 -1
  41. package/dist/client/{_securityGroupId-DroYG6cA.mjs → _securityGroupId-KKw4RPdH.mjs} +328 -328
  42. package/dist/client/{_securityGroupId-DroYG6cA.mjs.map → _securityGroupId-KKw4RPdH.mjs.map} +1 -1
  43. package/dist/client/{containers-DGY2hoWw.mjs → _storageType-4wSxI__0.mjs} +18 -15
  44. package/dist/client/_storageType-4wSxI__0.mjs.map +1 -0
  45. package/dist/client/{containers-ZMFTRaQL.mjs → _storageType-DYjo-6ej.mjs} +1054 -1088
  46. package/dist/client/_storageType-DYjo-6ej.mjs.map +1 -0
  47. package/dist/client/{containers-xfsYgRyf.mjs → _storageType-zeSZe--V.mjs} +2 -2
  48. package/dist/client/_storageType-zeSZe--V.mjs.map +1 -0
  49. package/dist/client/{about-969pIiZ9.mjs → about-Bo9vxGHy.mjs} +8 -8
  50. package/dist/client/{about-969pIiZ9.mjs.map → about-Bo9vxGHy.mjs.map} +1 -1
  51. package/dist/client/{build-DracvfrJ.mjs → build-DeJcDjPi.mjs} +3798 -3372
  52. package/dist/client/build-DeJcDjPi.mjs.map +1 -0
  53. package/dist/client/constants-BmcGYeR-.mjs +153 -0
  54. package/dist/client/constants-BmcGYeR-.mjs.map +1 -0
  55. package/dist/client/{flavors-C4GtoybP.mjs → flavors-BxFVqgnb.mjs} +2 -2
  56. package/dist/client/{flavors-C4GtoybP.mjs.map → flavors-BxFVqgnb.mjs.map} +1 -1
  57. package/dist/client/{flavors-CpirO_nr.mjs → flavors-CfdgjsZY.mjs} +192 -192
  58. package/dist/client/{flavors-CpirO_nr.mjs.map → flavors-CfdgjsZY.mjs.map} +1 -1
  59. package/dist/client/{floatingips-BUf_oLRl.mjs → floatingips-ByRb82wS.mjs} +123 -123
  60. package/dist/client/{floatingips-BUf_oLRl.mjs.map → floatingips-ByRb82wS.mjs.map} +1 -1
  61. package/dist/client/{images-Da1t5KPh.mjs → images-CKqIXUq52.mjs} +613 -613
  62. package/dist/client/images-CKqIXUq52.mjs.map +1 -0
  63. package/dist/client/{images-CsonlmFx.mjs → images-C_dX7nY6.mjs} +2 -2
  64. package/dist/client/{images-CsonlmFx.mjs.map → images-C_dX7nY6.mjs.map} +1 -1
  65. package/dist/client/{images-QnWf63uj.mjs → images-CenluYV8.mjs} +2 -2
  66. package/dist/client/{images-QnWf63uj.mjs.map → images-CenluYV8.mjs.map} +1 -1
  67. package/dist/client/index.js +382 -425
  68. package/dist/client/index.js.map +1 -1
  69. package/dist/client/{md-sBiSNVSQ.mjs → md-CYTrL5dq.mjs} +52 -16
  70. package/dist/client/{md-sBiSNVSQ.mjs.map → md-CYTrL5dq.mjs.map} +1 -1
  71. package/dist/client/{objects-H0NN_Sja.mjs → objects-BJM6YeuF.mjs} +2131 -1883
  72. package/dist/client/objects-BJM6YeuF.mjs.map +1 -0
  73. package/dist/client/{objects-B89dYCBq.mjs → objects-gxSjvbvF.mjs} +36 -21
  74. package/dist/client/objects-gxSjvbvF.mjs.map +1 -0
  75. package/dist/client/{objects-CuFLUOe1.mjs → objects-o2Cj_ndZ.mjs} +2 -2
  76. package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -0
  77. package/dist/client/{pca-CtU6REww.mjs → pca-Bl8NmoVZ.mjs} +2 -2
  78. package/dist/client/{pca-CtU6REww.mjs.map → pca-Bl8NmoVZ.mjs.map} +1 -1
  79. package/dist/client/pca-RSiWpJs9.mjs +182 -0
  80. package/dist/client/pca-RSiWpJs9.mjs.map +1 -0
  81. package/dist/client/{projects-DNXsDnJM.mjs → projects-CgclWI16.mjs} +33 -27
  82. package/dist/client/{projects-DNXsDnJM.mjs.map → projects-CgclWI16.mjs.map} +1 -1
  83. package/dist/client/{projects-dhnQkuvV.mjs → projects-D2iewAzu.mjs} +2 -2
  84. package/dist/client/{projects-dhnQkuvV.mjs.map → projects-D2iewAzu.mjs.map} +1 -1
  85. package/dist/client/{projects-C-sjd9T5.mjs → projects-pe2_dCnV.mjs} +2 -2
  86. package/dist/client/{projects-C-sjd9T5.mjs.map → projects-pe2_dCnV.mjs.map} +1 -1
  87. package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
  88. package/dist/client/{securitygroups-wHdrxZXd.mjs → securitygroups-DahZkVYQ.mjs} +111 -111
  89. package/dist/client/{securitygroups-wHdrxZXd.mjs.map → securitygroups-DahZkVYQ.mjs.map} +1 -1
  90. package/dist/client/{useListWithFiltering-DrgUwXef.mjs → useListWithFiltering-DaYcu5AB.mjs} +12 -12
  91. package/dist/client/{useListWithFiltering-DrgUwXef.mjs.map → useListWithFiltering-DaYcu5AB.mjs.map} +1 -1
  92. package/dist/server/index.js +7 -6
  93. package/package.json +4 -4
  94. package/dist/client/ImageToastNotifications-BWimIzu_.mjs.map +0 -1
  95. package/dist/client/_floatingIpId-COK_TBrz2.mjs.map +0 -1
  96. package/dist/client/_imageId-n3RcnhAR.mjs +0 -534
  97. package/dist/client/_pcaId-B-f_6kqs.mjs +0 -466
  98. package/dist/client/_pcaId-B-f_6kqs.mjs.map +0 -1
  99. package/dist/client/_projectId-BK9UqeYw.mjs.map +0 -1
  100. package/dist/client/_projectId-CCtpAQ8m.mjs +0 -299
  101. package/dist/client/_projectId-CCtpAQ8m.mjs.map +0 -1
  102. package/dist/client/build-DracvfrJ.mjs.map +0 -1
  103. package/dist/client/constants-4lVQXort.mjs +0 -128
  104. package/dist/client/constants-4lVQXort.mjs.map +0 -1
  105. package/dist/client/containers-DGY2hoWw.mjs.map +0 -1
  106. package/dist/client/containers-ZMFTRaQL.mjs.map +0 -1
  107. package/dist/client/containers-xfsYgRyf.mjs.map +0 -1
  108. package/dist/client/images-Da1t5KPh.mjs.map +0 -1
  109. package/dist/client/objects-B89dYCBq.mjs.map +0 -1
  110. package/dist/client/objects-CuFLUOe1.mjs.map +0 -1
  111. package/dist/client/objects-H0NN_Sja.mjs.map +0 -1
  112. package/dist/client/pca-C-UFjicP.mjs +0 -167
  113. package/dist/client/pca-C-UFjicP.mjs.map +0 -1
@@ -1,139 +1,139 @@
1
- import { $ as e, A as t, B as n, C as r, E as i, G as a, I as o, J as s, M as c, P as l, Q as u, R as d, T as f, U as p, Y as m, Z as h, a as g, c as _, et as v, f as y, h as b, i as x, m as S, nt as C, ot as w, q as T, s as E, w as D } from "./build-DracvfrJ.mjs";
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";
2
2
  import { r as O } from "./trpcClient-BzPUgiM2.mjs";
3
- import { t as k } from "./containers-DGY2hoWw.mjs";
4
- import { t as A } from "./ContentHeader-xQVhO2yT.mjs";
5
- import { t as j } from "./SortInput-GQlQBlAj.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";
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";
9
- import { startTransition as L, useCallback as R, useEffect as ee, useRef as z, useState as B } from "react";
10
- import { useNavigate as te, useParams as V } from "@tanstack/react-router";
11
- import { Trans as H, useLingui as U } from "@lingui/react";
12
- import { i18n as W } from "@lingui/core";
13
- import { ErrorBoundary as ne } from "react-error-boundary";
14
- import { useVirtualizer as re } from "@tanstack/react-virtual";
9
+ import { startTransition as L, useCallback as R, useEffect as z, useRef as B, useState as V } from "react";
10
+ import { useNavigate as ee, useParams as H } from "@tanstack/react-router";
11
+ import { Trans as U, useLingui as W } from "@lingui/react";
12
+ import { i18n as G } from "@lingui/core";
13
+ import { ErrorBoundary as te } from "react-error-boundary";
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
- var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLength: i = 256 }) => {
17
- let { i18n: a, _: o } = U(), s = N(), [c, l] = B(""), [u, d] = B(null), p = O.useUtils(), m = O.storage.swift.createContainer.useMutation({
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({
18
18
  onSuccess: () => {
19
- p.storage.swift.listContainers.invalidate();
20
- let e = c.trim();
19
+ m.storage.swift.listContainers.invalidate();
20
+ let e = l.trim();
21
21
  n?.(e);
22
22
  },
23
23
  onError: (e) => {
24
- r?.(c.trim(), e.message);
24
+ r?.(l.trim(), e.message);
25
25
  },
26
26
  onSettled: () => {
27
- h();
27
+ g();
28
28
  }
29
- }), h = () => {
30
- l(""), d(null), m.reset(), t();
31
- }, g = (e) => e.trim() ? e.length > i ? (d(a._({
29
+ }), g = () => {
30
+ d(""), p(null), h.reset(), t();
31
+ }, _ = (e) => e.trim() ? e.length > i ? (p(a._({
32
32
  id: "r5SQFW",
33
33
  values: { maxContainerNameLength: i }
34
- })), !1) : e.includes("/") ? (d(a._({ id: "9J93Xr" })), !1) : (d(null), !0) : (d(a._({ id: "JNGYAW" })), !1), _ = (e) => {
34
+ })), !1) : e.includes("/") ? (p(a._({ id: "9J93Xr" })), !1) : (p(null), !0) : (p(a._({ id: "JNGYAW" })), !1), v = (e) => {
35
35
  let t = e.target.value;
36
- l(t), u && g(t);
37
- }, v = () => {
38
- g(c) && m.mutate({
39
- project_id: s,
40
- container: c.trim()
36
+ d(t), f && _(t);
37
+ }, y = () => {
38
+ _(l) && h.mutate({
39
+ project_id: c,
40
+ container: l.trim()
41
41
  });
42
42
  };
43
43
  return e ? /*#__PURE__*/ F(w, {
44
44
  title: a._({ id: "vTh35P" }),
45
45
  open: e,
46
- onCancel: h,
46
+ onCancel: g,
47
47
  confirmButtonLabel: a._({ id: "hYgDIe" }),
48
- onConfirm: v,
48
+ onConfirm: y,
49
49
  cancelButtonLabel: a._({ id: "dEgA5A" }),
50
50
  size: "small",
51
- disableConfirmButton: m.isPending || !c.trim(),
52
- children: /*#__PURE__*/ I(C, {
51
+ disableConfirmButton: h.isPending || !l.trim(),
52
+ children: /*#__PURE__*/ I(s, {
53
53
  direction: "vertical",
54
54
  gap: "6",
55
55
  children: [/*#__PURE__*/ F("p", {
56
56
  className: "text-theme-default",
57
- children: /*#__PURE__*/ F(H, { id: "ne/GWZ" })
58
- }), /*#__PURE__*/ F(f, {
57
+ children: /*#__PURE__*/ F(U, { id: "ne/GWZ" })
58
+ }), /*#__PURE__*/ F(u, {
59
59
  label: a._({ id: "SUSS9i" }),
60
60
  required: !0,
61
- value: c,
62
- onChange: _,
61
+ value: l,
62
+ onChange: v,
63
63
  onKeyDown: (e) => {
64
- e.key === "Enter" && v();
64
+ e.key === "Enter" && y();
65
65
  },
66
- invalid: !!u,
67
- errortext: u || void 0,
68
- disabled: m.isPending,
66
+ invalid: !!f,
67
+ errortext: f || void 0,
68
+ disabled: h.isPending,
69
69
  autoFocus: !0,
70
70
  placeholder: a._({ id: "W5FkH9" })
71
71
  })]
72
72
  })
73
73
  }) : null;
74
- }, ie = ({ isOpen: e, container: t, onClose: r, onSuccess: i, onError: s }) => {
75
- let { i18n: l, _: d } = U(), m = N(), [h, g] = B(""), [v, y] = B(null), [S, T] = B(!1), E = z(""), D = () => {
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 = () => {
76
76
  t && navigator.clipboard.writeText(t.name).then(() => {
77
- T(!0), setTimeout(() => T(!1), 2e3);
77
+ C(!0), setTimeout(() => C(!1), 2e3);
78
78
  });
79
79
  }, k = O.useUtils(), { data: A, isLoading: j, error: P } = O.storage.swift.listObjects.useQuery({
80
- project_id: m,
80
+ project_id: f,
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: m,
88
- container: E.current
89
- }), i?.(E.current, e);
87
+ project_id: f,
88
+ container: T.current
89
+ }), a?.(T.current, e);
90
90
  },
91
91
  onError: (e) => {
92
- s?.(E.current, e.message);
92
+ o?.(T.current, e.message);
93
93
  },
94
94
  onSettled: () => {
95
95
  R();
96
96
  }
97
97
  }), R = () => {
98
- g(""), y(null), L.reset(), r();
99
- }, ee = (e) => {
98
+ h(""), x(null), L.reset(), i();
99
+ }, z = (e) => {
100
100
  let t = e.target.value;
101
- g(t), v && y(null);
102
- }, te = () => {
101
+ h(t), v && x(null);
102
+ }, ee = () => {
103
103
  if (t) {
104
- if (h.trim() !== t.name) {
105
- y(l._({ id: "jS4B2+" }));
104
+ if (p.trim() !== t.name) {
105
+ x(l._({ id: "jS4B2+" }));
106
106
  return;
107
107
  }
108
- E.current = t.name, L.mutate({
109
- project_id: m,
108
+ T.current = t.name, L.mutate({
109
+ project_id: f,
110
110
  container: t.name
111
111
  });
112
112
  }
113
- }, V = (e) => {
114
- e.key === "Enter" && te();
113
+ }, H = (e) => {
114
+ e.key === "Enter" && ee();
115
115
  };
116
116
  if (!e || !t) return null;
117
- let W = A?.length ?? 0, ne = !j && t.count === 0 && W === 0, re = !j && t.count > 0 && W === 0, G = ne || re;
117
+ let G = A?.length ?? 0, te = !j && t.count === 0 && G === 0, ne = !j && t.count > 0 && G === 0, K = te || ne;
118
118
  return /*#__PURE__*/ I(w, {
119
119
  title: /* @__PURE__ */ I("span", {
120
120
  className: "flex max-w-[400px] items-center gap-2",
121
121
  children: [
122
122
  /*#__PURE__*/ F("span", {
123
123
  className: "shrink-0",
124
- children: /*#__PURE__*/ F(H, { id: "5Okch2" })
124
+ children: /*#__PURE__*/ F(U, { id: "5Okch2" })
125
125
  }),
126
126
  /*#__PURE__*/ F("span", {
127
127
  className: "truncate",
128
128
  title: t.name,
129
129
  children: t.name
130
130
  }),
131
- !j && !G && /*#__PURE__*/ F("button", {
131
+ !j && !K && /*#__PURE__*/ F("button", {
132
132
  type: "button",
133
- onClick: D,
133
+ onClick: E,
134
134
  title: S ? 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(x, {
136
+ children: /*#__PURE__*/ F(b, {
137
137
  icon: S ? "checkCircle" : "contentCopy",
138
138
  size: "16"
139
139
  })
@@ -142,49 +142,49 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
142
142
  }),
143
143
  open: e,
144
144
  onCancel: R,
145
- confirmButtonLabel: G ? void 0 : l._({ id: "N2S1rs" }),
145
+ confirmButtonLabel: K ? void 0 : l._({ id: "N2S1rs" }),
146
146
  confirmButtonVariant: "primary-danger",
147
- onConfirm: G ? void 0 : te,
148
- cancelButtonLabel: G ? void 0 : l._({ id: "dEgA5A" }),
149
- modalFooter: G ? /*#__PURE__*/ F(n, {
147
+ onConfirm: K ? void 0 : ee,
148
+ cancelButtonLabel: K ? void 0 : l._({ id: "dEgA5A" }),
149
+ modalFooter: K ? /*#__PURE__*/ F(g, {
150
150
  className: "flex justify-end",
151
- children: /*#__PURE__*/ F(b, { children: /*#__PURE__*/ F(_, {
151
+ children: /*#__PURE__*/ F(_, { children: /*#__PURE__*/ F(m, {
152
152
  variant: "primary",
153
153
  onClick: R,
154
154
  "data-testid": "empty-info-close-button",
155
- children: /*#__PURE__*/ F(H, { id: "yz7wBu" })
155
+ children: /*#__PURE__*/ F(U, { id: "yz7wBu" })
156
156
  }) })
157
157
  }) : void 0,
158
158
  size: "small",
159
- disableConfirmButton: j || L.isPending || !G && !h.trim() || !G && h.trim() !== t.name,
159
+ disableConfirmButton: j || L.isPending || !K && !p.trim() || !K && p.trim() !== t.name,
160
160
  children: [P && /*#__PURE__*/ F("p", {
161
161
  className: "text-theme-error mb-4",
162
162
  children: (() => {
163
163
  let e = P.message;
164
- return /*#__PURE__*/ F(H, {
164
+ return /*#__PURE__*/ F(U, {
165
165
  id: "56IxdF",
166
166
  values: { errorMessage: e }
167
167
  });
168
168
  })()
169
- }), j ? /*#__PURE__*/ I(C, {
169
+ }), j ? /*#__PURE__*/ I(s, {
170
170
  direction: "horizontal",
171
171
  alignment: "center",
172
172
  gap: "2",
173
173
  className: "py-4",
174
- children: [/*#__PURE__*/ F(u, { size: "small" }), /*#__PURE__*/ F(H, { id: "ujK/QN" })]
175
- }) : G && !P ? /*#__PURE__*/ F("p", {
174
+ children: [/*#__PURE__*/ F(c, { size: "small" }), /*#__PURE__*/ F(U, { id: "ujK/QN" })]
175
+ }) : K && !P ? /*#__PURE__*/ F("p", {
176
176
  className: "text-theme-default py-2",
177
- children: ne ? /*#__PURE__*/ F(H, { id: "jNm/qL" }) : /*#__PURE__*/ F(H, { id: "WefafP" })
178
- }) : P ? null : /*#__PURE__*/ I(C, {
177
+ children: te ? /*#__PURE__*/ F(U, { id: "jNm/qL" }) : /*#__PURE__*/ F(U, { id: "WefafP" })
178
+ }) : P ? null : /*#__PURE__*/ I(s, {
179
179
  direction: "vertical",
180
180
  gap: "6",
181
181
  children: [
182
182
  /*#__PURE__*/ I("p", {
183
183
  className: "text-theme-default",
184
184
  children: [
185
- /*#__PURE__*/ F(H, { id: "Ioblgz" }),
185
+ /*#__PURE__*/ F(U, { id: "Ioblgz" }),
186
186
  /*#__PURE__*/ F("br", {}),
187
- /*#__PURE__*/ F(H, {
187
+ /*#__PURE__*/ F(U, {
188
188
  id: "kiRrtv",
189
189
  components: {
190
190
  0: /*#__PURE__*/ F("strong", {}),
@@ -197,52 +197,52 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
197
197
  /*#__PURE__*/ I("div", {
198
198
  className: "border-theme-background-lvl-3 overflow-hidden rounded border",
199
199
  children: [
200
- t.count > W && /*#__PURE__*/ F("p", {
200
+ t.count > G && /*#__PURE__*/ F("p", {
201
201
  className: "text-theme-light px-3 py-2 text-xs",
202
202
  children: (() => {
203
203
  let e = t.count;
204
- return /*#__PURE__*/ F(H, {
204
+ return /*#__PURE__*/ F(U, {
205
205
  id: "1iQtS2",
206
206
  values: {
207
- actualObjectCount: W,
207
+ actualObjectCount: G,
208
208
  total: e
209
209
  }
210
210
  });
211
211
  })()
212
212
  }),
213
- /*#__PURE__*/ F(p, {
213
+ /*#__PURE__*/ F(y, {
214
214
  columns: 3,
215
215
  className: "text-sm",
216
- children: /*#__PURE__*/ I(o, { children: [
217
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "6YtxFj" }) }),
218
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "Cj2Gtd" }) }),
219
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "sjMCOP" }) })
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" }) })
220
220
  ] })
221
221
  }),
222
222
  /*#__PURE__*/ F("div", {
223
223
  className: "max-h-48 overflow-y-auto",
224
- children: /*#__PURE__*/ F(p, {
224
+ children: /*#__PURE__*/ F(y, {
225
225
  columns: 3,
226
226
  className: "text-sm",
227
- children: A.map((e) => /*#__PURE__*/ I(o, { children: [
228
- /*#__PURE__*/ F(c, {
227
+ children: A.map((e) => /*#__PURE__*/ I(D, { children: [
228
+ /*#__PURE__*/ F(r, {
229
229
  className: "max-w-[200px] truncate",
230
230
  title: e.name,
231
231
  children: e.name
232
232
  }),
233
- /*#__PURE__*/ F(c, { children: M(e.bytes) }),
234
- /*#__PURE__*/ F(c, { children: e.last_modified ? new Date(e.last_modified).toLocaleString() : l._({ id: "fj5byd" }) })
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" }) })
235
235
  ] }, e.name))
236
236
  })
237
237
  })
238
238
  ]
239
239
  }),
240
- /*#__PURE__*/ F(f, {
240
+ /*#__PURE__*/ F(u, {
241
241
  label: l._({ id: "33F2A+" }),
242
242
  required: !0,
243
- value: h,
244
- onChange: ee,
245
- onKeyDown: V,
243
+ value: p,
244
+ onChange: z,
245
+ onKeyDown: H,
246
246
  invalid: !!v,
247
247
  errortext: v || void 0,
248
248
  disabled: L.isPending,
@@ -252,42 +252,42 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
252
252
  ]
253
253
  })]
254
254
  });
255
- }, K = ({ isOpen: e, container: t, onClose: r, onSuccess: i, onError: a }) => {
256
- let { i18n: o, _: s } = U(), c = N(), [l, d] = B(""), [p, m] = B(null), [h, g] = B(!1), v = O.useUtils(), { data: y, isLoading: x, error: S } = O.storage.swift.listObjects.useQuery({
257
- project_id: c,
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,
258
258
  container: t?.name ?? "",
259
259
  format: "json",
260
260
  limit: 1
261
- }, { enabled: e && t !== null }), { data: T, error: E } = O.storage.swift.getContainerMetadata.useQuery({
262
- project_id: c,
261
+ }, { enabled: e && t !== null }), { data: E, error: D } = O.storage.swift.getContainerMetadata.useQuery({
262
+ project_id: l,
263
263
  container: t?.name ?? ""
264
- }, { enabled: e && t !== null }), k = !!(T?.versionsEnabled || T?.versionsLocation || T?.historyLocation), A = O.storage.swift.deleteContainer.useMutation({
264
+ }, { enabled: e && t !== null }), k = !!(E?.versionsEnabled || E?.versionsLocation || E?.historyLocation), A = O.storage.swift.deleteContainer.useMutation({
265
265
  onSuccess: () => {
266
- v.storage.swift.listContainers.invalidate(), i?.(t.name);
266
+ b.storage.swift.listContainers.invalidate(), r?.(t.name);
267
267
  },
268
268
  onError: (e) => {
269
- a?.(t.name, e.message);
269
+ i?.(t.name, e.message);
270
270
  },
271
271
  onSettled: () => {
272
272
  j();
273
273
  }
274
274
  });
275
- ee(() => {
276
- e || (d(""), m(null), g(!1), A.reset());
275
+ z(() => {
276
+ e || (f(""), h(null), y(!1), A.reset());
277
277
  }, [e, t?.name]);
278
278
  let j = () => {
279
- d(""), m(null), g(!1), A.reset(), r();
279
+ f(""), h(null), y(!1), A.reset(), n();
280
280
  }, M = (e) => {
281
281
  let t = e.target.value;
282
- d(t), p && m(null);
282
+ f(t), p && h(null);
283
283
  }, P = () => {
284
- if (t && !(S || E)) {
285
- if (l.trim() !== "delete") {
286
- m(o._({ id: "b5aNMO" }));
284
+ if (t && !(T || D)) {
285
+ if (d.trim() !== "delete") {
286
+ h(a._({ id: "b5aNMO" }));
287
287
  return;
288
288
  }
289
- k && !h || A.mutate({
290
- project_id: c,
289
+ k && !v || A.mutate({
290
+ project_id: l,
291
291
  container: t.name
292
292
  });
293
293
  }
@@ -295,13 +295,13 @@ var G = ({ 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 = y?.length ?? 0, z = !x && (R > 0 || t.count > 0), te = !x && t.count > 0 && R === 0, V = !!(S || E);
298
+ let R = x?.length ?? 0, B = !S && (R > 0 || t.count > 0), ee = !S && t.count > 0 && R === 0, H = !!(T || D);
299
299
  return /*#__PURE__*/ I(w, {
300
300
  title: /* @__PURE__ */ I("span", {
301
301
  className: "flex max-w-[400px] items-center gap-2",
302
302
  children: [/*#__PURE__*/ F("span", {
303
303
  className: "shrink-0",
304
- children: /*#__PURE__*/ F(H, { id: "Vzlopx" })
304
+ children: /*#__PURE__*/ F(U, { id: "Vzlopx" })
305
305
  }), /*#__PURE__*/ F("span", {
306
306
  className: "truncate",
307
307
  title: t.name,
@@ -310,123 +310,123 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
310
310
  }),
311
311
  open: e,
312
312
  onCancel: j,
313
- confirmButtonLabel: z ? void 0 : o._({ id: "cnGeoo" }),
314
- confirmButtonVariant: z ? void 0 : "primary-danger",
315
- onConfirm: z ? void 0 : P,
316
- cancelButtonLabel: z ? void 0 : o._({ id: "dEgA5A" }),
317
- modalFooter: z ? /*#__PURE__*/ F(n, {
313
+ confirmButtonLabel: B ? void 0 : a._({ id: "cnGeoo" }),
314
+ confirmButtonVariant: B ? void 0 : "primary-danger",
315
+ onConfirm: B ? void 0 : P,
316
+ cancelButtonLabel: B ? void 0 : a._({ id: "dEgA5A" }),
317
+ modalFooter: B ? /*#__PURE__*/ F(g, {
318
318
  className: "flex justify-end",
319
- children: /*#__PURE__*/ F(b, { children: /*#__PURE__*/ F(_, {
319
+ children: /*#__PURE__*/ F(_, { children: /*#__PURE__*/ F(m, {
320
320
  variant: "primary",
321
321
  onClick: j,
322
322
  "data-testid": "delete-has-objects-close-button",
323
- children: /*#__PURE__*/ F(H, { id: "yz7wBu" })
323
+ children: /*#__PURE__*/ F(U, { id: "yz7wBu" })
324
324
  }) })
325
325
  }) : void 0,
326
326
  size: "small",
327
- disableConfirmButton: x || V || A.isPending || !z && l.trim() !== "delete" || !z && k && !h,
328
- children: [(S || E) && /*#__PURE__*/ I(C, {
327
+ disableConfirmButton: S || H || A.isPending || !B && d.trim() !== "delete" || !B && k && !v,
328
+ children: [(T || D) && /*#__PURE__*/ I(s, {
329
329
  direction: "vertical",
330
330
  gap: "2",
331
331
  className: "mb-4",
332
332
  role: "alert",
333
333
  "aria-live": "assertive",
334
- children: [S && /*#__PURE__*/ F("p", {
334
+ children: [T && /*#__PURE__*/ F("p", {
335
335
  className: "text-theme-error",
336
336
  children: (() => {
337
- let e = S.message;
338
- return /*#__PURE__*/ F(H, {
337
+ let e = T.message;
338
+ return /*#__PURE__*/ F(U, {
339
339
  id: "56IxdF",
340
340
  values: { errorMessage: e }
341
341
  });
342
342
  })()
343
- }), E && /*#__PURE__*/ F("p", {
343
+ }), D && /*#__PURE__*/ F("p", {
344
344
  className: "text-theme-error",
345
345
  children: (() => {
346
- let e = E.message;
347
- return /*#__PURE__*/ F(H, {
346
+ let e = D.message;
347
+ return /*#__PURE__*/ F(U, {
348
348
  id: "BCXapL",
349
349
  values: { errorMessage: e }
350
350
  });
351
351
  })()
352
352
  })]
353
- }), x ? /*#__PURE__*/ I(C, {
353
+ }), S ? /*#__PURE__*/ I(s, {
354
354
  direction: "horizontal",
355
355
  alignment: "center",
356
356
  gap: "2",
357
357
  className: "py-4",
358
- children: [/*#__PURE__*/ F(u, { size: "small" }), /*#__PURE__*/ F(H, { id: "Z3FXyt" })]
359
- }) : z ? /*#__PURE__*/ I(C, {
358
+ children: [/*#__PURE__*/ F(c, { size: "small" }), /*#__PURE__*/ F(U, { id: "Z3FXyt" })]
359
+ }) : B ? /*#__PURE__*/ I(s, {
360
360
  direction: "vertical",
361
361
  gap: "3",
362
362
  children: [/*#__PURE__*/ F("p", {
363
363
  className: "text-theme-default",
364
- children: /*#__PURE__*/ F(H, { id: "3dBmvU" })
365
- }), te && /*#__PURE__*/ F("p", {
364
+ children: /*#__PURE__*/ F(U, { id: "3dBmvU" })
365
+ }), ee && /*#__PURE__*/ F("p", {
366
366
  className: "text-theme-default",
367
- children: /*#__PURE__*/ F(H, { id: "x3T4pq" })
367
+ children: /*#__PURE__*/ F(U, { id: "x3T4pq" })
368
368
  })]
369
- }) : /*#__PURE__*/ I(C, {
369
+ }) : /*#__PURE__*/ I(s, {
370
370
  direction: "vertical",
371
371
  gap: "6",
372
372
  children: [
373
373
  /*#__PURE__*/ I("p", {
374
374
  className: "text-theme-default",
375
375
  children: [
376
- /*#__PURE__*/ F(H, { id: "Y8M9Uc" }),
376
+ /*#__PURE__*/ F(U, { id: "Y8M9Uc" }),
377
377
  /*#__PURE__*/ F("br", {}),
378
- /*#__PURE__*/ F(H, {
378
+ /*#__PURE__*/ F(U, {
379
379
  id: "YzUoh9",
380
380
  components: { 0: /*#__PURE__*/ F("strong", {}) }
381
381
  })
382
382
  ]
383
383
  }),
384
- k && /*#__PURE__*/ F(D, {
385
- label: o._({ id: "V/8B9A" }),
386
- checked: h,
387
- onChange: (e) => g(e.target.checked),
388
- invalid: !h
384
+ k && /*#__PURE__*/ F(C, {
385
+ label: a._({ id: "V/8B9A" }),
386
+ checked: v,
387
+ onChange: (e) => y(e.target.checked),
388
+ invalid: !v
389
389
  }),
390
- /*#__PURE__*/ F(f, {
391
- label: o._({ id: "QytzQr" }),
390
+ /*#__PURE__*/ F(u, {
391
+ label: a._({ id: "QytzQr" }),
392
392
  required: !0,
393
- value: l,
393
+ value: d,
394
394
  onChange: M,
395
395
  onKeyDown: L,
396
396
  invalid: !!p,
397
397
  errortext: p || void 0,
398
398
  disabled: A.isPending,
399
399
  autoFocus: !0,
400
- placeholder: o._({ id: "HNlEFZ" })
400
+ placeholder: a._({ id: "HNlEFZ" })
401
401
  })
402
402
  ]
403
403
  })]
404
404
  });
405
- }, ae = new Set([
405
+ }, ie = new Set([
406
406
  "quota-bytes",
407
407
  "quota-count",
408
408
  "web-index",
409
409
  "web-listings",
410
410
  "web-listings-css",
411
411
  "web-error"
412
- ]), oe = 50, se = /^[a-zA-Z0-9!#$%&'*+\-.^_`|~]+$/, ce = ({ isOpen: e, container: n, onClose: r, onSuccess: i, onError: s }) => {
413
- let { i18n: d, _: m } = U(), v = N(), { data: y, isLoading: b, isError: T, error: E } = O.storage.swift.getContainerMetadata.useQuery({
414
- project_id: v,
415
- container: n?.name ?? ""
416
- }, { enabled: e && n !== null }), k = y?.read === ".r:*,.rlistings", { data: A } = O.storage.swift.getContainerPublicUrl.useQuery({
417
- project_id: v,
418
- container: n?.name ?? ""
419
- }, { enabled: e && n !== null && k }), { data: j } = O.storage.swift.listContainers.useQuery({ project_id: v }, { enabled: e }), [M, P] = B(""), [L, te] = B(""), V = z(null), W = R((e) => {
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) => {
420
420
  let t = e.target.value;
421
- P(t), V.current && clearTimeout(V.current), V.current = setTimeout(() => te(t), 300);
422
- }, []), ne = L.trim().length > 0 ? (j ?? []).filter((e) => e.name !== n?.name && e.name.toLowerCase().includes(L.toLowerCase())) : [], re = ne.slice(0, oe), G = ne.length - re.length, ie = O.useUtils(), [K, ce] = B(""), [le, q] = B(null), [J, ue] = B(""), [de, fe] = B(null), [Y, pe] = B(""), [me, X] = B(!1), [he, Z] = B(!1), [ge, _e] = B(""), [Q, ve] = B([]), [ye, be] = B({}), [xe, Se] = B(!1), [Ce, we] = B(""), [Te, $] = B(""), [Ee, De] = B(null), [Oe, ke] = B(null);
423
- ee(() => {
424
- if (!y) return;
425
- ce(y.quotaBytes == null ? "" : String(y.quotaBytes)), ue(y.quotaCount == null ? "" : String(y.quotaCount)), Z(!!(y.versionsEnabled || y.versionsLocation || y.historyLocation)), _e(y.versionsLocation || y.historyLocation || "");
426
- let e = y.metadata ?? {};
427
- pe(e["web-index"] ?? ""), X(e["web-listings"] === "1" || e["web-listings"] === "true");
428
- let t = y.metadata ?? {};
429
- ve(Object.entries(t).filter(([e]) => !ae.has(e)).map(([e, t]) => ({
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);
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 ?? {};
427
+ fe(e["web-index"] ?? ""), me(e["web-listings"] === "1" || e["web-listings"] === "true");
428
+ let t = _.metadata ?? {};
429
+ ve(Object.entries(t).filter(([e]) => !ie.has(e)).map(([e, t]) => ({
430
430
  key: e,
431
431
  value: t,
432
432
  isNew: !1,
@@ -434,29 +434,29 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
434
434
  originalKey: e,
435
435
  originalValue: t
436
436
  })));
437
- }, [y]), ee(() => {
437
+ }, [_]), z(() => {
438
438
  e || Ae();
439
439
  }, [e]);
440
440
  let Ae = () => {
441
- ce(""), q(null), ue(""), fe(null), pe(""), X(!1), Z(!1), _e(""), P(""), te(""), V.current && clearTimeout(V.current), ve([]), be({}), Se(!1), we(""), $(""), De(null), ke(null), je.reset();
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
- ie.storage.swift.getContainerMetadata.invalidate({ container: n.name }), ie.storage.swift.listContainers.invalidate(), i?.(n.name), Ue();
444
+ re.storage.swift.getContainerMetadata.invalidate({ container: t.name }), re.storage.swift.listContainers.invalidate(), o?.(t.name), Ue();
445
445
  },
446
446
  onError: (e) => {
447
- s?.(n.name, e.message);
447
+ l?.(t.name, e.message);
448
448
  }
449
449
  }), Me = () => {
450
450
  let e = !0;
451
- return K !== "" && (isNaN(Number(K)) || Number(K) < 0) ? (q(d._({ id: "AuQtzx" })), e = !1) : q(null), J !== "" && (isNaN(Number(J)) || Number(J) < 0) ? (fe(d._({ id: "AuQtzx" })), e = !1) : fe(null), e;
452
- }, Ne = (e, t) => e.trim() ? se.test(e) ? /[a-zA-Z0-9]/.test(e) ? ae.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 = () => {
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 = () => {
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(d._({ id: "hXUWyd" }));
459
+ ke(p._({ id: "hXUWyd" }));
460
460
  return;
461
461
  }
462
462
  ve([...Q, {
@@ -482,7 +482,7 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
482
482
  return;
483
483
  }
484
484
  if (!t.value.trim()) {
485
- be({ [`edit-${e}`]: d._({ id: "hXUWyd" }) });
485
+ be({ [`edit-${e}`]: p._({ id: "hXUWyd" }) });
486
486
  return;
487
487
  }
488
488
  ve(Q.map((t, n) => n === e ? {
@@ -517,225 +517,225 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
517
517
  return delete n[`edit-${e}`], n;
518
518
  });
519
519
  }, He = () => {
520
- if (!n || !Me()) return;
521
- let e = y?.metadata ?? {}, t = {}, r = [];
520
+ if (!t || !Me()) return;
521
+ let e = _?.metadata ?? {}, n = {}, r = [];
522
522
  Q.forEach((e) => {
523
- (e.isNew || e.value !== e.originalValue || e.key !== e.originalKey) && (t[e.key] = e.value, !e.isNew && e.originalKey && e.key !== e.originalKey && r.push(e.originalKey));
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));
524
524
  });
525
- let i = Object.keys(e).filter((e) => !ae.has(e)), a = Q.map((e) => e.originalKey).filter(Boolean);
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
527
  !a.includes(e) && !r.includes(e) && r.push(e);
528
- }), k && (Y ? t["web-index"] = Y : y?.metadata?.["web-index"] && r.push("web-index"), me ? t["web-listings"] = "1" : y?.metadata?.["web-listings"] && r.push("web-listings"));
529
- let o = !!(y?.versionsEnabled || y?.versionsLocation || y?.historyLocation), s = y?.versionsLocation || y?.historyLocation || "";
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 || "";
530
530
  je.mutate({
531
- project_id: v,
532
- container: n.name,
533
- metadata: t,
531
+ project_id: g,
532
+ container: t.name,
533
+ metadata: n,
534
534
  removeMetadata: r.length ? r : void 0,
535
- quotaBytes: K === "" ? void 0 : Number(K),
536
- quotaCount: J === "" ? void 0 : Number(J),
535
+ quotaBytes: q === "" ? void 0 : Number(q),
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(), r();
541
+ Ae(), i();
542
542
  };
543
- if (!e || !n) return null;
544
- let We = b || je.isPending, Ge = T && !b, Ke = Q.some((e) => e.isEditing), qe = y?.quotaBytes == null ? "" : String(y.quotaBytes), Je = y?.quotaCount == null ? "" : String(y.quotaCount), Ye = !!y?.versionsEnabled, Xe = y?.versionsLocation || y?.historyLocation || "", Ze = y?.metadata?.["web-index"] ?? "", Qe = y?.metadata?.["web-listings"] === "1" || y?.metadata?.["web-listings"] === "true", $e = Object.keys(y?.metadata ?? {}).filter((e) => !ae.has(e)), et = Q.length === $e.length && Q.every((e) => !e.isNew && e.key === e.originalKey && e.value === e.originalValue), tt = K === qe && J === Je && he === Ye && ge === Xe && Y === Ze && me === Qe && et, nt = y?.quotaBytes == null ? null : `${y.quotaBytes} B`;
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
545
  return /*#__PURE__*/ I(w, {
546
546
  title: /*#__PURE__*/ I("span", {
547
547
  className: "flex max-w-[500px] items-center gap-2",
548
548
  children: [/*#__PURE__*/ F("span", {
549
549
  className: "shrink-0",
550
- children: /*#__PURE__*/ F(H, { id: "y02Bu1" })
550
+ children: /*#__PURE__*/ F(U, { id: "y02Bu1" })
551
551
  }), /*#__PURE__*/ F("span", {
552
552
  className: "truncate",
553
- title: n.name,
554
- children: n.name
553
+ title: t.name,
554
+ children: t.name
555
555
  })]
556
556
  }),
557
557
  open: e,
558
558
  onCancel: Ue,
559
- confirmButtonLabel: d._({ id: "tfDRzk" }),
559
+ confirmButtonLabel: p._({ id: "tfDRzk" }),
560
560
  onConfirm: He,
561
- cancelButtonLabel: d._({ id: "dEgA5A" }),
561
+ cancelButtonLabel: p._({ id: "dEgA5A" }),
562
562
  size: "large",
563
563
  disableConfirmButton: We || xe || Ke || tt || Ge,
564
564
  children: [je.isError && /*#__PURE__*/ F("p", {
565
565
  className: "text-theme-error mb-4",
566
566
  children: (() => {
567
567
  let e = je.error.message;
568
- return /*#__PURE__*/ F(H, {
568
+ return /*#__PURE__*/ F(U, {
569
569
  id: "nUuaq8",
570
570
  values: { errorMessage: e }
571
571
  });
572
572
  })()
573
- }), b ? /*#__PURE__*/ I(C, {
573
+ }), v ? /*#__PURE__*/ I(s, {
574
574
  direction: "horizontal",
575
575
  alignment: "center",
576
576
  gap: "2",
577
577
  className: "py-8",
578
- children: [/*#__PURE__*/ F(u, { size: "small" }), /*#__PURE__*/ F(H, { id: "WRZ3Mt" })]
578
+ children: [/*#__PURE__*/ F(c, { size: "small" }), /*#__PURE__*/ F(U, { id: "WRZ3Mt" })]
579
579
  }) : Ge ? /*#__PURE__*/ F("p", {
580
580
  className: "text-theme-error py-8 text-center",
581
- children: /*#__PURE__*/ F(H, {
581
+ children: /*#__PURE__*/ F(U, {
582
582
  id: "BCXapL",
583
583
  values: { errorMessage: E?.message ?? "Unknown error" }
584
584
  })
585
585
  }) : /*#__PURE__*/ F("div", {
586
586
  className: "max-h-[65vh] overflow-y-auto pr-1 pl-1",
587
- children: /*#__PURE__*/ I(C, {
587
+ children: /*#__PURE__*/ I(s, {
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(f, {
594
- label: d._({ id: "z45o5B" }),
595
- value: String(n.count),
593
+ children: [/*#__PURE__*/ F(u, {
594
+ label: p._({ id: "z45o5B" }),
595
+ value: String(t.count),
596
596
  disabled: !0,
597
597
  readOnly: !0
598
- }), /*#__PURE__*/ F(f, {
599
- label: d._({ id: "/InK0O" }),
600
- value: y?.bytesUsed == null ? `${n.bytes.toLocaleString()} B` : `${y.bytesUsed.toLocaleString()} B`,
598
+ }), /*#__PURE__*/ F(u, {
599
+ label: p._({ id: "/InK0O" }),
600
+ value: _?.bytesUsed == null ? `${t.bytes.toLocaleString()} B` : `${_.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(f, {
608
- label: d._({ id: "k0vAWv" }),
609
- value: J,
607
+ children: [/*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(u, {
608
+ label: p._({ id: "k0vAWv" }),
609
+ value: Y,
610
610
  onChange: (e) => {
611
- ue(e.target.value), de && fe(null);
611
+ le(e.target.value), ue && de(null);
612
612
  },
613
- placeholder: d._({ id: "qtoOYG" }),
614
- invalid: !!de,
615
- errortext: de ?? void 0,
613
+ placeholder: p._({ id: "qtoOYG" }),
614
+ invalid: !!ue,
615
+ errortext: ue ?? void 0,
616
616
  disabled: We
617
- }) }), /*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(f, {
618
- label: d._({ id: "KOpPMt" }),
619
- value: K,
617
+ }) }), /*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(u, {
618
+ label: p._({ id: "KOpPMt" }),
619
+ value: q,
620
620
  onChange: (e) => {
621
- ce(e.target.value), le && q(null);
621
+ se(e.target.value), ce && J(null);
622
622
  },
623
- placeholder: d._({ id: "qtoOYG" }),
624
- invalid: !!le,
625
- errortext: le ?? void 0,
623
+ placeholder: p._({ id: "qtoOYG" }),
624
+ invalid: !!ce,
625
+ errortext: ce ?? void 0,
626
626
  disabled: We,
627
- helptext: K && nt ? nt : void 0
627
+ helptext: q && nt ? nt : void 0
628
628
  }) })]
629
629
  }),
630
630
  k && A && /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ I("p", {
631
631
  className: "text-theme-default mb-1 text-sm font-semibold",
632
632
  children: [
633
- /*#__PURE__*/ F(H, { id: "mvz5Eo" }),
633
+ /*#__PURE__*/ F(U, { id: "mvz5Eo" }),
634
634
  " ",
635
635
  /*#__PURE__*/ F("a", {
636
636
  href: A,
637
637
  target: "_blank",
638
638
  rel: "noopener noreferrer",
639
639
  className: "text-theme-info text-xs font-normal underline",
640
- children: /*#__PURE__*/ F(H, { id: "Alx2/L" })
640
+ children: /*#__PURE__*/ F(U, { id: "Alx2/L" })
641
641
  })
642
642
  ]
643
- }), /*#__PURE__*/ F(f, {
643
+ }), /*#__PURE__*/ F(u, {
644
644
  value: A,
645
645
  disabled: !0,
646
646
  readOnly: !0
647
647
  })] }),
648
648
  /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
649
649
  className: "text-theme-default mb-3 text-sm font-semibold",
650
- children: /*#__PURE__*/ F(H, { id: "6CDYXS" })
651
- }), k ? /*#__PURE__*/ I(C, {
650
+ children: /*#__PURE__*/ F(U, { id: "6CDYXS" })
651
+ }), k ? /*#__PURE__*/ I(s, {
652
652
  direction: "vertical",
653
653
  gap: "4",
654
- children: [/*#__PURE__*/ I(C, {
654
+ children: [/*#__PURE__*/ I(s, {
655
655
  direction: "vertical",
656
656
  gap: "1",
657
- children: [/*#__PURE__*/ F(D, {
658
- label: d._({ id: "6+7EwD" }),
659
- checked: !!Y,
657
+ children: [/*#__PURE__*/ F(C, {
658
+ label: p._({ id: "6+7EwD" }),
659
+ checked: !!X,
660
660
  onChange: (e) => {
661
- e.target.checked ? Y || pe("index.html") : pe("");
661
+ e.target.checked ? X || fe("index.html") : fe("");
662
662
  },
663
663
  disabled: We
664
664
  }), /*#__PURE__*/ F("div", {
665
665
  className: "pl-6",
666
- children: /*#__PURE__*/ F(f, {
667
- value: Y,
668
- onChange: (e) => pe(e.target.value),
666
+ children: /*#__PURE__*/ F(u, {
667
+ value: X,
668
+ onChange: (e) => fe(e.target.value),
669
669
  placeholder: "index.html",
670
- disabled: We || !Y,
670
+ disabled: We || !X,
671
671
  className: "flex-1"
672
672
  })
673
673
  })]
674
- }), /*#__PURE__*/ I(C, {
674
+ }), /*#__PURE__*/ I(s, {
675
675
  direction: "horizontal",
676
676
  alignment: "start",
677
677
  gap: "2",
678
- children: [/*#__PURE__*/ F(D, {
679
- label: d._({ id: "NeUjqc" }),
680
- checked: me,
681
- onChange: (e) => X(e.target.checked),
678
+ children: [/*#__PURE__*/ F(C, {
679
+ label: p._({ id: "NeUjqc" }),
680
+ checked: pe,
681
+ onChange: (e) => me(e.target.checked),
682
682
  disabled: We
683
- }), /*#__PURE__*/ I(h, {
683
+ }), /*#__PURE__*/ I(T, {
684
684
  triggerEvent: "hover",
685
- children: [/*#__PURE__*/ F(l, { children: /*#__PURE__*/ F(x, {
685
+ children: [/*#__PURE__*/ F(f, { children: /*#__PURE__*/ F(b, {
686
686
  icon: "help",
687
687
  size: "16",
688
688
  className: "text-theme-light cursor-help"
689
- }) }), /*#__PURE__*/ F(t, {
689
+ }) }), /*#__PURE__*/ F(S, {
690
690
  className: "z-10 max-w-[220px]",
691
- children: /*#__PURE__*/ F(H, { id: "Oxl1UN" })
691
+ children: /*#__PURE__*/ F(U, { id: "Oxl1UN" })
692
692
  })]
693
693
  })]
694
694
  })]
695
695
  }) : /*#__PURE__*/ F("p", {
696
696
  className: "text-theme-default text-sm",
697
- children: /*#__PURE__*/ F(H, {
697
+ children: /*#__PURE__*/ F(U, {
698
698
  id: "aSsVD3",
699
699
  components: { 0: /*#__PURE__*/ F("strong", {}) }
700
700
  })
701
701
  })] }),
702
702
  /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
703
703
  className: "text-theme-default mb-2 text-sm font-semibold",
704
- children: /*#__PURE__*/ F(H, { id: "jNzyQo" })
705
- }), Ye && !ge ? /*#__PURE__*/ F(D, {
706
- label: d._({ id: "Nvfd2b" }),
704
+ children: /*#__PURE__*/ F(U, { id: "jNzyQo" })
705
+ }), Ye && !ge ? /*#__PURE__*/ F(C, {
706
+ label: p._({ id: "Nvfd2b" }),
707
707
  checked: !0,
708
708
  onChange: (e) => {
709
- e.target.checked || (Z(!1), _e(""), P(""), te(""));
709
+ e.target.checked || (Z(!1), _e(""), P(""), ee(""));
710
710
  },
711
711
  disabled: !0
712
- }) : !he && !ge ? /*#__PURE__*/ F(D, {
713
- label: d._({ id: "WyKwnD" }),
712
+ }) : !he && !ge ? /*#__PURE__*/ F(C, {
713
+ label: p._({ id: "WyKwnD" }),
714
714
  checked: !1,
715
715
  onChange: (e) => Z(e.target.checked),
716
716
  disabled: We
717
- }) : /*#__PURE__*/ I(C, {
717
+ }) : /*#__PURE__*/ I(s, {
718
718
  direction: "vertical",
719
719
  gap: "1",
720
- children: [/*#__PURE__*/ F(D, {
721
- label: d._({ id: "b0uU1G" }),
720
+ children: [/*#__PURE__*/ F(C, {
721
+ label: p._({ id: "b0uU1G" }),
722
722
  checked: he,
723
723
  onChange: (e) => {
724
- Z(e.target.checked), e.target.checked || (_e(""), P(""), te(""));
724
+ Z(e.target.checked), e.target.checked || (_e(""), P(""), ee(""));
725
725
  },
726
726
  disabled: We
727
727
  }), he && /*#__PURE__*/ F("div", {
728
728
  className: "pl-6",
729
- children: /*#__PURE__*/ F(g, {
729
+ children: /*#__PURE__*/ F(d, {
730
730
  value: ge,
731
731
  onChange: (e) => _e(e),
732
- onInputChange: W,
733
- placeholder: d._({ id: "a13wDR" }),
732
+ onInputChange: G,
733
+ placeholder: p._({ id: "a13wDR" }),
734
734
  helptext: (() => {
735
- if (M.trim().length === 0) return d._({ id: "c+fUtV" });
736
- if (G > 0) {
737
- let e = oe, t = ne.length;
738
- return d._({
735
+ if (M.trim().length === 0) return p._({ id: "c+fUtV" });
736
+ if (K > 0) {
737
+ let e = ae, t = te.length;
738
+ return p._({
739
739
  id: "qzhUb9",
740
740
  values: {
741
741
  maxOptions: e,
@@ -745,7 +745,7 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
745
745
  }
746
746
  })(),
747
747
  disabled: We,
748
- children: re.map((e) => /*#__PURE__*/ F(S, {
748
+ children: ne.map((e) => /*#__PURE__*/ F(a, {
749
749
  value: e.name,
750
750
  children: e.name
751
751
  }, e.name))
@@ -753,24 +753,24 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
753
753
  })]
754
754
  })] }),
755
755
  /*#__PURE__*/ I("div", { children: [
756
- /*#__PURE__*/ I(C, {
756
+ /*#__PURE__*/ I(s, {
757
757
  direction: "horizontal",
758
758
  alignment: "center",
759
759
  distribution: "between",
760
760
  className: "mb-3",
761
761
  children: [/*#__PURE__*/ F("p", {
762
762
  className: "text-theme-default text-sm font-semibold",
763
- children: /*#__PURE__*/ F(H, { id: "6GBt0m" })
763
+ children: /*#__PURE__*/ F(U, { id: "6GBt0m" })
764
764
  }), /*#__PURE__*/ F("p", {
765
765
  className: "text-theme-light text-xs",
766
- children: /*#__PURE__*/ F(H, { id: "kuYWaD" })
766
+ children: /*#__PURE__*/ F(U, { id: "kuYWaD" })
767
767
  })]
768
768
  }),
769
- /*#__PURE__*/ F(C, {
769
+ /*#__PURE__*/ F(s, {
770
770
  direction: "horizontal",
771
771
  className: "jn:bg-theme-background-lvl-1 justify-end p-2",
772
- children: /*#__PURE__*/ F(_, {
773
- label: d._({ id: "sWBLli" }),
772
+ children: /*#__PURE__*/ F(m, {
773
+ label: p._({ id: "sWBLli" }),
774
774
  onClick: () => Se(!0),
775
775
  variant: "primary",
776
776
  icon: "addCircle",
@@ -778,54 +778,54 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
778
778
  disabled: xe || Ke || We
779
779
  })
780
780
  }),
781
- /*#__PURE__*/ I(p, {
781
+ /*#__PURE__*/ I(y, {
782
782
  columns: 3,
783
783
  children: [
784
- /*#__PURE__*/ I(o, { children: [
785
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "7sMeHQ" }) }),
786
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "wMHvYH" }) }),
787
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "7L01XJ" }) })
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" }) })
788
788
  ] }),
789
- xe && /*#__PURE__*/ I(o, { children: [
790
- /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(f, {
789
+ xe && /*#__PURE__*/ I(D, { children: [
790
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(u, {
791
791
  value: Ce,
792
792
  onChange: (e) => {
793
793
  we(e.target.value), Ee && De(null);
794
794
  },
795
- placeholder: d._({ id: "x9AdZ8" }),
795
+ placeholder: p._({ id: "x9AdZ8" }),
796
796
  errortext: Ee ?? void 0,
797
797
  invalid: !!Ee,
798
798
  autoFocus: !0
799
799
  }) }),
800
- /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(f, {
800
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(u, {
801
801
  value: Te,
802
802
  onChange: (e) => {
803
803
  $(e.target.value), Oe && ke(null);
804
804
  },
805
- placeholder: d._({ id: "wMHvYH" }),
805
+ placeholder: p._({ id: "wMHvYH" }),
806
806
  errortext: Oe ?? void 0,
807
807
  invalid: !!Oe
808
808
  }) }),
809
- /*#__PURE__*/ F(c, { children: /*#__PURE__*/ I(C, {
809
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ I(s, {
810
810
  direction: "horizontal",
811
811
  gap: "2",
812
- children: [/*#__PURE__*/ F(_, {
812
+ children: [/*#__PURE__*/ F(m, {
813
813
  size: "small",
814
814
  variant: "primary",
815
815
  onClick: Pe,
816
816
  icon: "check",
817
- title: d._({ id: "tfDRzk" })
818
- }), /*#__PURE__*/ F(_, {
817
+ title: p._({ id: "tfDRzk" })
818
+ }), /*#__PURE__*/ F(m, {
819
819
  size: "small",
820
820
  variant: "subdued",
821
821
  onClick: Fe,
822
822
  icon: "close",
823
- title: d._({ id: "bzSI52" })
823
+ title: p._({ id: "bzSI52" })
824
824
  })]
825
825
  }) })
826
826
  ] }),
827
- Q.map((e, t) => /*#__PURE__*/ I(o, { children: [
828
- /*#__PURE__*/ F(c, { children: e.isEditing ? /*#__PURE__*/ F(f, {
827
+ Q.map((e, t) => /*#__PURE__*/ I(D, { children: [
828
+ /*#__PURE__*/ F(r, { children: e.isEditing ? /*#__PURE__*/ F(u, {
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 G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
835
835
  title: e.key,
836
836
  children: e.key
837
837
  }) }),
838
- /*#__PURE__*/ F(c, { children: e.isEditing ? /*#__PURE__*/ F(f, {
838
+ /*#__PURE__*/ F(r, { children: e.isEditing ? /*#__PURE__*/ F(u, {
839
839
  value: e.value,
840
840
  onChange: (e) => Ve(t, e.target.value)
841
841
  }) : /*#__PURE__*/ F("span", {
@@ -843,50 +843,50 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
843
843
  title: e.value,
844
844
  children: e.value
845
845
  }) }),
846
- /*#__PURE__*/ F(c, { children: e.isEditing ? /*#__PURE__*/ I(C, {
846
+ /*#__PURE__*/ F(r, { children: e.isEditing ? /*#__PURE__*/ I(s, {
847
847
  direction: "horizontal",
848
848
  gap: "2",
849
- children: [/*#__PURE__*/ F(_, {
849
+ children: [/*#__PURE__*/ F(m, {
850
850
  size: "small",
851
851
  variant: "primary",
852
852
  onClick: () => Le(t),
853
853
  icon: "check",
854
- title: d._({ id: "tfDRzk" })
855
- }), /*#__PURE__*/ F(_, {
854
+ title: p._({ id: "tfDRzk" })
855
+ }), /*#__PURE__*/ F(m, {
856
856
  size: "small",
857
857
  variant: "subdued",
858
858
  onClick: () => Re(t),
859
859
  icon: "close",
860
- title: d._({ id: "bzSI52" })
860
+ title: p._({ id: "bzSI52" })
861
861
  })]
862
- }) : /*#__PURE__*/ I(C, {
862
+ }) : /*#__PURE__*/ I(s, {
863
863
  direction: "horizontal",
864
864
  gap: "2",
865
- children: [/*#__PURE__*/ F(_, {
865
+ children: [/*#__PURE__*/ F(m, {
866
866
  size: "small",
867
867
  variant: "subdued",
868
868
  onClick: () => Ie(t),
869
869
  icon: "edit",
870
- title: d._({ id: "ePK91l" }),
870
+ title: p._({ id: "ePK91l" }),
871
871
  disabled: xe || Ke || We
872
- }), /*#__PURE__*/ F(_, {
872
+ }), /*#__PURE__*/ F(m, {
873
873
  size: "small",
874
874
  variant: "primary-danger",
875
875
  onClick: () => ze(t),
876
876
  icon: "deleteForever",
877
- title: d._({ id: "cnGeoo" }),
877
+ title: p._({ id: "cnGeoo" }),
878
878
  disabled: xe || Ke || We
879
879
  })]
880
880
  }) })
881
881
  ] }, t)),
882
- Q.length === 0 && !xe && /*#__PURE__*/ F(o, { children: /*#__PURE__*/ F(c, {
882
+ Q.length === 0 && !xe && /*#__PURE__*/ F(D, { children: /*#__PURE__*/ F(r, {
883
883
  colSpan: 3,
884
884
  className: "py-6 text-center",
885
- children: /*#__PURE__*/ F(C, {
885
+ children: /*#__PURE__*/ F(s, {
886
886
  alignment: "center",
887
887
  children: /*#__PURE__*/ F("span", {
888
888
  className: "text-theme-light text-sm",
889
- children: /*#__PURE__*/ F(H, { id: "F02e8I" })
889
+ children: /*#__PURE__*/ F(U, { id: "F02e8I" })
890
890
  })
891
891
  })
892
892
  }) })
@@ -900,7 +900,7 @@ var G = ({ isOpen: e, onClose: t, onSuccess: n, onError: r, maxContainerNameLeng
900
900
  };
901
901
  //#endregion
902
902
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ManageContainerAccessModal.tsx
903
- function le(e) {
903
+ function ce(e) {
904
904
  let t = e.trim();
905
905
  if (t === ".r:*") return {
906
906
  raw: t,
@@ -959,56 +959,56 @@ function le(e) {
959
959
  requiresToken: !0
960
960
  };
961
961
  }
962
- function q(e) {
963
- return e.trim() ? e.split(",").map((e) => e.trim()).filter(Boolean).map(le) : [];
962
+ function J(e) {
963
+ return e.trim() ? e.split(",").map((e) => e.trim()).filter(Boolean).map(ce) : [];
964
964
  }
965
- var J = [".r:*", ".rlistings"];
966
- function ue(e) {
965
+ var Y = [".r:*", ".rlistings"];
966
+ function le(e) {
967
967
  let t = e.split(",").map((e) => e.trim()).filter(Boolean);
968
- return J.every((e) => t.includes(e));
968
+ return Y.every((e) => t.includes(e));
969
969
  }
970
- function de(e) {
970
+ function ue(e) {
971
971
  let t = e.split(",").map((e) => e.trim()).filter(Boolean);
972
- return [...new Set([...J, ...t])].join(",");
972
+ return [...new Set([...Y, ...t])].join(",");
973
973
  }
974
- function fe(e) {
975
- return e.split(",").map((e) => e.trim()).filter((e) => !J.includes(e)).join(",");
974
+ function de(e) {
975
+ return e.split(",").map((e) => e.trim()).filter((e) => !Y.includes(e)).join(",");
976
976
  }
977
- function Y(e) {
977
+ function X(e) {
978
978
  switch (e.type) {
979
- case "any-referrer": return W._({ id: "HVdrr1" });
979
+ case "any-referrer": return G._({ id: "HVdrr1" });
980
980
  case "denied-referrer": {
981
981
  let t = e.host || "";
982
- return W._({
982
+ return G._({
983
983
  id: "7XQ3QJ",
984
984
  values: { host: t }
985
985
  });
986
986
  }
987
987
  case "specific-referrer": {
988
988
  let t = e.host || "";
989
- return W._({
989
+ return G._({
990
990
  id: "Dqnh7K",
991
991
  values: { host: t }
992
992
  });
993
993
  }
994
- case "listing-access": return W._({ id: "ntNlXu" });
994
+ case "listing-access": return G._({ id: "ntNlXu" });
995
995
  case "all-project-users": {
996
996
  let t = e.projectId || "";
997
- return W._({
997
+ return G._({
998
998
  id: "sa4CV6",
999
999
  values: { projectId: t }
1000
1000
  });
1001
1001
  }
1002
1002
  case "specific-user-any-project": {
1003
1003
  let t = e.userId || "";
1004
- return W._({
1004
+ return G._({
1005
1005
  id: "izMhIO",
1006
1006
  values: { userId: t }
1007
1007
  });
1008
1008
  }
1009
1009
  case "specific-user": {
1010
1010
  let t = e.projectId || "", n = e.userId || "";
1011
- return W._({
1011
+ return G._({
1012
1012
  id: "cXuXkb",
1013
1013
  values: {
1014
1014
  userId: n,
@@ -1019,58 +1019,58 @@ function Y(e) {
1019
1019
  default: return e.raw;
1020
1020
  }
1021
1021
  }
1022
- var pe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) => {
1023
- let { i18n: a, _: o } = U(), s = N(), [c, l] = B(""), [d, f] = B(""), [p, m] = B(!1), [h, g] = B(!1);
1024
- ee(() => {
1025
- !c.trim() && !d.trim() && g(!1);
1026
- }, [c, d]);
1027
- let { data: v, isLoading: y, isError: b, error: x } = O.storage.swift.getContainerMetadata.useQuery({
1028
- project_id: s,
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);
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,
1029
1029
  container: t?.name ?? ""
1030
1030
  }, { enabled: e && t !== null });
1031
- ee(() => {
1032
- if (!v) return;
1033
- let e = v.read ?? "", t = v.write ?? "";
1034
- l(e), f(t), m(ue(e));
1035
- }, [v]);
1036
- let S = O.useUtils(), T = O.storage.swift.updateContainerMetadata.useMutation({
1031
+ z(() => {
1032
+ if (!b) return;
1033
+ let e = b.read ?? "", t = b.write ?? "";
1034
+ d(e), p(t), _(le(e));
1035
+ }, [b]);
1036
+ let E = O.useUtils(), D = O.storage.swift.updateContainerMetadata.useMutation({
1037
1037
  onSuccess: () => {
1038
- S.storage.swift.getContainerMetadata.invalidate({
1039
- project_id: s,
1038
+ E.storage.swift.getContainerMetadata.invalidate({
1039
+ project_id: l,
1040
1040
  container: t.name
1041
- }), S.storage.swift.listContainers.invalidate(), r?.(t.name), A();
1041
+ }), E.storage.swift.listContainers.invalidate(), r?.(t.name), A();
1042
1042
  },
1043
1043
  onError: (e) => {
1044
1044
  i?.(t.name, e.message);
1045
1045
  }
1046
- }), k = z(T.reset);
1047
- k.current = T.reset;
1046
+ }), k = B(D.reset);
1047
+ k.current = D.reset;
1048
1048
  let A = () => {
1049
- l(""), f(""), m(!1), g(!1), T.reset(), n();
1049
+ d(""), p(""), _(!1), y(!1), D.reset(), n();
1050
1050
  };
1051
- ee(() => {
1052
- e || (l(""), f(""), m(!1), k.current());
1051
+ z(() => {
1052
+ e || (d(""), p(""), _(!1), k.current());
1053
1053
  }, [e]);
1054
1054
  let j = (e) => {
1055
1055
  let t = e.target.checked;
1056
- m(t), l((e) => t ? de(e) : fe(e));
1056
+ _(t), d((e) => t ? ue(e) : de(e));
1057
1057
  }, M = (e) => {
1058
1058
  let t = e.target.value;
1059
- l(t), m(ue(t));
1059
+ d(t), _(le(t));
1060
1060
  }, L = () => {
1061
- t && T.mutate({
1062
- project_id: s,
1061
+ t && D.mutate({
1062
+ project_id: l,
1063
1063
  container: t.name,
1064
- read: c.trim(),
1065
- write: d.trim()
1064
+ read: u.trim(),
1065
+ write: f.trim()
1066
1066
  });
1067
1067
  };
1068
1068
  if (!e || !t) return null;
1069
- let R = y || T.isPending, te = c.trim().length > 0 || d.trim().length > 0, V = q(c), W = q(d);
1069
+ let R = x || D.isPending, ee = u.trim().length > 0 || f.trim().length > 0, H = J(u), G = J(f);
1070
1070
  return /*#__PURE__*/ I(w, {
1071
1071
  title: /* @__PURE__ */ I("span", {
1072
1072
  className: "flex items-center gap-2",
1073
- children: [/*#__PURE__*/ F(H, { id: "6Kjltl" }), /*#__PURE__*/ F("span", {
1073
+ children: [/*#__PURE__*/ F(U, { id: "6Kjltl" }), /*#__PURE__*/ F("span", {
1074
1074
  className: "max-w-[250px] truncate font-mono",
1075
1075
  title: t.name,
1076
1076
  children: t.name
@@ -1082,12 +1082,12 @@ var pe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1082
1082
  onConfirm: L,
1083
1083
  cancelButtonLabel: a._({ id: "dEgA5A" }),
1084
1084
  size: "xl",
1085
- disableConfirmButton: R || b,
1086
- children: [T.isError && /*#__PURE__*/ F("p", {
1085
+ disableConfirmButton: R || S,
1086
+ children: [D.isError && /*#__PURE__*/ F("p", {
1087
1087
  className: "text-theme-error mb-4",
1088
1088
  children: (() => {
1089
- let e = T.error.message;
1090
- return /*#__PURE__*/ F(H, {
1089
+ let e = D.error.message;
1090
+ return /*#__PURE__*/ F(U, {
1091
1091
  id: "u2xIeO",
1092
1092
  values: { errorMessage: e }
1093
1093
  });
@@ -1098,107 +1098,107 @@ var pe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1098
1098
  className: "mb-4",
1099
1099
  children: [/*#__PURE__*/ F("p", {
1100
1100
  className: "text-theme-default mb-2",
1101
- children: /*#__PURE__*/ F(H, { id: "PHsq3v" })
1101
+ children: /*#__PURE__*/ F(U, { id: "PHsq3v" })
1102
1102
  }), /*#__PURE__*/ F("p", {
1103
1103
  className: "text-theme-default",
1104
- children: /*#__PURE__*/ F(H, { id: "g9m7gK" })
1104
+ children: /*#__PURE__*/ F(U, { id: "g9m7gK" })
1105
1105
  })]
1106
- }), y ? /*#__PURE__*/ I(C, {
1106
+ }), x ? /*#__PURE__*/ I(s, {
1107
1107
  direction: "horizontal",
1108
1108
  alignment: "center",
1109
1109
  gap: "2",
1110
1110
  className: "py-6",
1111
- children: [/*#__PURE__*/ F(u, { size: "small" }), /*#__PURE__*/ F(H, { id: "poCbZw" })]
1112
- }) : b ? /*#__PURE__*/ F("p", {
1111
+ children: [/*#__PURE__*/ F(c, { size: "small" }), /*#__PURE__*/ F(U, { id: "poCbZw" })]
1112
+ }) : S ? /*#__PURE__*/ F("p", {
1113
1113
  className: "text-theme-error py-2",
1114
- children: /*#__PURE__*/ F(H, {
1114
+ children: /*#__PURE__*/ F(U, {
1115
1115
  id: "QNHur0",
1116
- values: { errorMessage: x?.message ?? "" }
1116
+ values: { errorMessage: T?.message ?? "" }
1117
1117
  })
1118
1118
  }) : /*#__PURE__*/ F(P, { children: /*#__PURE__*/ I("div", {
1119
1119
  className: "flex gap-6",
1120
1120
  children: [/*#__PURE__*/ F("div", {
1121
1121
  className: "min-w-0 flex-1",
1122
- children: /*#__PURE__*/ I(C, {
1122
+ children: /*#__PURE__*/ I(s, {
1123
1123
  direction: "vertical",
1124
1124
  gap: "6",
1125
1125
  children: [
1126
1126
  /*#__PURE__*/ I("div", { children: [
1127
- /*#__PURE__*/ F(X, { label: a._({ id: "SBGiGm" }) }),
1128
- /*#__PURE__*/ F(E, {
1129
- value: c,
1127
+ /*#__PURE__*/ F(me, { label: a._({ id: "SBGiGm" }) }),
1128
+ /*#__PURE__*/ F(h, {
1129
+ value: u,
1130
1130
  onChange: M,
1131
- disabled: R || p,
1131
+ disabled: R || g,
1132
1132
  placeholder: a._({ id: "FKL6Jv" }),
1133
1133
  className: "font-mono text-sm",
1134
1134
  rows: 3
1135
1135
  }),
1136
- /*#__PURE__*/ F(D, {
1136
+ /*#__PURE__*/ F(C, {
1137
1137
  label: a._({ id: "23wBCX" }),
1138
- checked: p,
1138
+ checked: g,
1139
1139
  onChange: j,
1140
1140
  disabled: R,
1141
1141
  className: "mt-2"
1142
1142
  })
1143
1143
  ] }),
1144
- /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F(X, { label: a._({ id: "6qzsuS" }) }), /*#__PURE__*/ F(E, {
1145
- value: d,
1144
+ /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F(me, { label: a._({ id: "6qzsuS" }) }), /*#__PURE__*/ F(h, {
1145
+ value: f,
1146
1146
  onChange: (e) => {
1147
1147
  let t = e.target.value;
1148
- f(t);
1148
+ p(t);
1149
1149
  },
1150
1150
  disabled: R,
1151
1151
  placeholder: a._({ id: "UVFHGY" }),
1152
1152
  className: "font-mono text-sm",
1153
1153
  rows: 3
1154
1154
  })] }),
1155
- te && /*#__PURE__*/ F(_, {
1156
- label: h ? a._({ id: "we28Pq" }) : a._({ id: "YiMCKk" }),
1157
- onClick: () => g((e) => !e),
1155
+ ee && /*#__PURE__*/ F(m, {
1156
+ label: v ? a._({ id: "we28Pq" }) : a._({ id: "YiMCKk" }),
1157
+ onClick: () => y((e) => !e),
1158
1158
  variant: "subdued",
1159
1159
  disabled: R
1160
1160
  }),
1161
- h && (V.length > 0 || W.length > 0) && /*#__PURE__*/ I(C, {
1161
+ v && (H.length > 0 || G.length > 0) && /*#__PURE__*/ I(s, {
1162
1162
  direction: "vertical",
1163
1163
  gap: "4",
1164
- children: [V.length > 0 && /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
1164
+ children: [H.length > 0 && /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
1165
1165
  className: "text-theme-default mb-2 text-sm font-semibold",
1166
- children: /*#__PURE__*/ F(H, { id: "SBGiGm" })
1166
+ children: /*#__PURE__*/ F(U, { id: "SBGiGm" })
1167
1167
  }), /*#__PURE__*/ F("div", {
1168
1168
  className: "border-theme-background-lvl-3 divide-theme-background-lvl-3 divide-y rounded border",
1169
- children: V.map((e, t) => /*#__PURE__*/ I("div", {
1169
+ children: H.map((e, t) => /*#__PURE__*/ I("div", {
1170
1170
  className: "flex flex-col gap-1 px-3 py-2",
1171
1171
  children: [/*#__PURE__*/ I("div", {
1172
1172
  className: "flex items-center justify-between gap-3",
1173
1173
  children: [/*#__PURE__*/ F("p", {
1174
1174
  className: "text-theme-default min-w-0 truncate text-sm font-medium",
1175
- title: Y(e),
1176
- children: Y(e)
1175
+ title: X(e),
1176
+ children: X(e)
1177
1177
  }), /*#__PURE__*/ F("p", {
1178
1178
  className: "text-theme-light shrink-0 text-xs",
1179
- children: e.requiresToken ? /*#__PURE__*/ F(H, { id: "z+zpLP" }) : /*#__PURE__*/ F(H, { id: "t7ff15" })
1179
+ children: e.requiresToken ? /*#__PURE__*/ F(U, { id: "z+zpLP" }) : /*#__PURE__*/ F(U, { id: "t7ff15" })
1180
1180
  })]
1181
1181
  }), /*#__PURE__*/ F("code", {
1182
1182
  className: "text-theme-light bg-theme-background-lvl-2 block w-full rounded px-2 py-1 font-mono text-xs break-all",
1183
1183
  children: e.raw
1184
1184
  })]
1185
1185
  }, t))
1186
- })] }), W.length > 0 && /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
1186
+ })] }), G.length > 0 && /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
1187
1187
  className: "text-theme-default mb-2 text-sm font-semibold",
1188
- children: /*#__PURE__*/ F(H, { id: "6qzsuS" })
1188
+ children: /*#__PURE__*/ F(U, { id: "6qzsuS" })
1189
1189
  }), /*#__PURE__*/ F("div", {
1190
1190
  className: "border-theme-background-lvl-3 divide-theme-background-lvl-3 divide-y rounded border",
1191
- children: W.map((e, t) => /*#__PURE__*/ I("div", {
1191
+ children: G.map((e, t) => /*#__PURE__*/ I("div", {
1192
1192
  className: "flex flex-col gap-1 px-3 py-2",
1193
1193
  children: [/*#__PURE__*/ I("div", {
1194
1194
  className: "flex items-center justify-between gap-3",
1195
1195
  children: [/*#__PURE__*/ F("p", {
1196
1196
  className: "text-theme-default min-w-0 truncate text-sm font-medium",
1197
- title: Y(e),
1198
- children: Y(e)
1197
+ title: X(e),
1198
+ children: X(e)
1199
1199
  }), /*#__PURE__*/ F("p", {
1200
1200
  className: "text-theme-light shrink-0 text-xs",
1201
- children: /*#__PURE__*/ F(H, { id: "z+zpLP" })
1201
+ children: /*#__PURE__*/ F(U, { id: "z+zpLP" })
1202
1202
  })]
1203
1203
  }), /*#__PURE__*/ F("code", {
1204
1204
  className: "text-theme-light bg-theme-background-lvl-2 block w-full rounded px-2 py-1 font-mono text-xs break-all",
@@ -1214,29 +1214,29 @@ var pe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1214
1214
  children: [
1215
1215
  /*#__PURE__*/ F("p", {
1216
1216
  className: "text-theme-light mb-3 text-xs",
1217
- children: /*#__PURE__*/ F(H, { id: "dd2ndz" })
1217
+ children: /*#__PURE__*/ F(U, { id: "dd2ndz" })
1218
1218
  }),
1219
- /*#__PURE__*/ I(C, {
1219
+ /*#__PURE__*/ I(s, {
1220
1220
  direction: "vertical",
1221
1221
  gap: "4",
1222
1222
  children: [
1223
- /*#__PURE__*/ F(me, {
1223
+ /*#__PURE__*/ F(pe, {
1224
1224
  code: ".r:*",
1225
1225
  description: a._({ id: "VV1fdg" })
1226
1226
  }),
1227
- /*#__PURE__*/ F(me, {
1227
+ /*#__PURE__*/ F(pe, {
1228
1228
  code: ".rlistings",
1229
1229
  description: a._({ id: "s/s1lz" })
1230
1230
  }),
1231
- /*#__PURE__*/ F(me, {
1231
+ /*#__PURE__*/ F(pe, {
1232
1232
  code: "PROJECT_ID:USER_ID",
1233
1233
  description: a._({ id: "zhM8FP" })
1234
1234
  }),
1235
- /*#__PURE__*/ F(me, {
1235
+ /*#__PURE__*/ F(pe, {
1236
1236
  code: "PROJECT_ID:*",
1237
1237
  description: a._({ id: "BCJPTn" })
1238
1238
  }),
1239
- /*#__PURE__*/ F(me, {
1239
+ /*#__PURE__*/ F(pe, {
1240
1240
  code: "*:USER_ID",
1241
1241
  description: a._({ id: "/xnbdQ" })
1242
1242
  })
@@ -1244,7 +1244,7 @@ var pe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1244
1244
  }),
1245
1245
  /*#__PURE__*/ F("p", {
1246
1246
  className: "text-theme-light mt-4 text-xs",
1247
- children: /*#__PURE__*/ F(H, {
1247
+ children: /*#__PURE__*/ F(U, {
1248
1248
  id: "rrjuul",
1249
1249
  components: { 0: /*#__PURE__*/ F("a", {
1250
1250
  href: "https://docs.openstack.org/swift/latest/overview_acl.html",
@@ -1260,129 +1260,130 @@ var pe = ({ isOpen: e, container: t, onClose: n, onSuccess: r, onError: i }) =>
1260
1260
  })]
1261
1261
  });
1262
1262
  };
1263
- function me({ code: t, description: n }) {
1264
- return /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F(e, {
1263
+ function pe({ code: e, description: t }) {
1264
+ return /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F(l, {
1265
1265
  variant: "info",
1266
1266
  className: "mb-1 font-mono text-xs",
1267
- children: t
1267
+ children: e
1268
1268
  }), /*#__PURE__*/ F("p", {
1269
1269
  className: "text-theme-light text-xs leading-relaxed",
1270
- children: n
1270
+ children: t
1271
1271
  })] });
1272
1272
  }
1273
- function X({ label: e }) {
1273
+ function me({ label: e }) {
1274
1274
  return /*#__PURE__*/ I("div", {
1275
1275
  className: "mb-1 flex items-center gap-1",
1276
1276
  children: [/*#__PURE__*/ F("label", {
1277
1277
  className: "text-theme-default text-sm font-semibold",
1278
1278
  children: e
1279
- }), /*#__PURE__*/ I(h, {
1279
+ }), /*#__PURE__*/ I(T, {
1280
1280
  triggerEvent: "hover",
1281
- children: [/*#__PURE__*/ F(l, { children: /*#__PURE__*/ F(x, {
1281
+ children: [/*#__PURE__*/ F(f, { children: /*#__PURE__*/ F(b, {
1282
1282
  icon: "info",
1283
1283
  size: "14",
1284
1284
  className: "text-theme-light cursor-help"
1285
- }) }), /*#__PURE__*/ F(t, {
1285
+ }) }), /*#__PURE__*/ F(S, {
1286
1286
  className: "z-10 max-w-[350px]",
1287
- children: /*#__PURE__*/ F(H, { id: "AdtLNV" })
1287
+ children: /*#__PURE__*/ F(U, { id: "AdtLNV" })
1288
1288
  })]
1289
1289
  })]
1290
1290
  });
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: n, maxContainerNameLength: r, onCreateSuccess: s, onCreateError: l, onEmptySuccess: u, onEmptyError: d, onDeleteSuccess: f, onDeleteError: h, onPropertiesSuccess: g, onPropertiesError: _, onAclSuccess: y, onAclError: b, selectedContainers: x, setSelectedContainers: S, hasAnyBulkAction: C = !0 }) => {
1295
- let { projectId: w, provider: T } = V({ from: "/_auth/projects/$projectId/storage/$provider/containers/" }), { i18n: E, _: O } = U(), k = te(), A = z(null), [j, N] = B(0), [L, R] = B(null), [W, ne] = B(null), [ae, oe] = B(null), [se, le] = B(null);
1296
- ee(() => {
1297
- A.current && N(A.current.offsetWidth - A.current.clientWidth);
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);
1296
+ z(() => {
1297
+ j.current && L(j.current.offsetWidth - j.current.clientWidth);
1298
1298
  }, [e.length]);
1299
- let q = (e) => {
1299
+ let Y = (e) => {
1300
1300
  try {
1301
1301
  return new Date(e).toLocaleString();
1302
1302
  } catch {
1303
- return E._({ id: "fj5byd" });
1303
+ return O._({ id: "fj5byd" });
1304
1304
  }
1305
- }, J = re({
1305
+ }, le = ne({
1306
1306
  count: e.length,
1307
- getScrollElement: () => A.current,
1307
+ getScrollElement: () => j.current,
1308
1308
  estimateSize: () => 48,
1309
1309
  overscan: 10
1310
- }), ue = new Set(x), de = e.length > 0 && e.every((e) => ue.has(e.name)), fe = () => {
1311
- S(de ? [] : e.map((e) => e.name));
1312
- }, Y = (e) => {
1313
- x.includes(e) ? S(x.filter((t) => t !== e)) : S([...x, e]);
1310
+ }), ue = new Set(_), de = e.length > 0 && e.every((e) => ue.has(e.name)), X = () => {
1311
+ b(de ? [] : e.map((e) => e.name));
1312
+ }, pe = (e) => {
1313
+ _.includes(e) ? b(_.filter((t) => t !== e)) : b([..._, e]);
1314
1314
  };
1315
- if (!e || e.length === 0) return /*#__PURE__*/ I(P, { children: [/*#__PURE__*/ F(p, {
1315
+ if (!e || e.length === 0) return /*#__PURE__*/ I(P, { children: [/*#__PURE__*/ F(y, {
1316
1316
  columns: 4,
1317
1317
  className: "containers",
1318
1318
  "data-testid": "no-containers",
1319
- children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ F(c, {
1319
+ children: /*#__PURE__*/ F(D, { children: /*#__PURE__*/ F(r, {
1320
1320
  colSpan: 4,
1321
1321
  children: /*#__PURE__*/ I("div", {
1322
1322
  className: "py-8 text-center",
1323
1323
  children: [/*#__PURE__*/ F("h3", {
1324
1324
  className: "text-lg font-semibold",
1325
- children: /*#__PURE__*/ F(H, { id: "Hiw1Ha" })
1325
+ children: /*#__PURE__*/ F(U, { id: "Hiw1Ha" })
1326
1326
  }), /*#__PURE__*/ F("p", {
1327
1327
  className: "text-theme-light mt-2",
1328
- children: /*#__PURE__*/ F(H, { id: "x1bK0h" })
1328
+ children: /*#__PURE__*/ F(U, { id: "x1bK0h" })
1329
1329
  })]
1330
1330
  })
1331
1331
  }) })
1332
- }), /*#__PURE__*/ F(G, {
1332
+ }), /*#__PURE__*/ F(K, {
1333
1333
  isOpen: t,
1334
- onClose: () => n(!1),
1334
+ onClose: () => i(!1),
1335
1335
  onSuccess: s,
1336
- onError: l,
1337
- maxContainerNameLength: r
1336
+ onError: c,
1337
+ maxContainerNameLength: a
1338
1338
  })] });
1339
- let me = C ? 6 : 5, X = 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";
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";
1340
1340
  return /*#__PURE__*/ I(P, { children: [
1341
1341
  /*#__PURE__*/ I("div", {
1342
1342
  className: "relative",
1343
1343
  children: [/*#__PURE__*/ F("div", {
1344
- style: { paddingRight: `${j}px` },
1345
- children: /*#__PURE__*/ F(p, {
1344
+ style: { paddingRight: `${N}px` },
1345
+ children: /*#__PURE__*/ F(y, {
1346
1346
  columns: me,
1347
- gridColumnTemplate: X,
1347
+ gridColumnTemplate: he,
1348
1348
  className: "containers",
1349
1349
  "data-testid": "containers-table-header",
1350
- children: /*#__PURE__*/ I(o, { children: [
1351
- C && /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(D, {
1350
+ children: /*#__PURE__*/ I(D, { children: [
1351
+ x && /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(C, {
1352
1352
  checked: de,
1353
- onChange: fe,
1353
+ onChange: X,
1354
1354
  "data-testid": "select-all-containers"
1355
1355
  }) }),
1356
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "t0X9+8" }) }),
1357
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "sxbP3b" }) }),
1358
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "sjMCOP" }) }),
1359
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "hgpMHD" }) }),
1360
- /*#__PURE__*/ F(a, { style: { marginRight: `-${j}px` } })
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` } })
1361
1361
  ] })
1362
1362
  })
1363
1363
  }), /*#__PURE__*/ F("div", {
1364
- ref: A,
1364
+ ref: j,
1365
1365
  className: "overflow-auto",
1366
1366
  style: { height: "calc(100vh - 490px)" },
1367
1367
  "data-testid": "containers-table-body",
1368
1368
  children: /*#__PURE__*/ F("div", {
1369
1369
  style: {
1370
- height: `${J.getTotalSize()}px`,
1370
+ height: `${le.getTotalSize()}px`,
1371
1371
  width: "100%",
1372
1372
  position: "relative"
1373
1373
  },
1374
- children: J.getVirtualItems().map((t) => {
1375
- let n = e[t.index], r = x.includes(n.name), a = () => k({
1376
- to: "/projects/$projectId/storage/$provider/containers/$containerName/objects",
1374
+ children: le.getVirtualItems().map((t) => {
1375
+ let n = e[t.index], i = _.includes(n.name), a = () => A({
1376
+ to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
1377
1377
  params: {
1378
- projectId: w,
1379
- provider: T,
1378
+ projectId: S,
1379
+ provider: w,
1380
+ storageType: T,
1380
1381
  containerName: n.name
1381
1382
  }
1382
1383
  });
1383
1384
  return /*#__PURE__*/ I("div", {
1384
1385
  "data-index": t.index,
1385
- ref: J.measureElement,
1386
+ ref: le.measureElement,
1386
1387
  className: "juno-datagrid group hover:bg-theme-background-lvl-1 cursor-pointer",
1387
1388
  style: {
1388
1389
  position: "absolute",
@@ -1391,7 +1392,7 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1391
1392
  width: "100%",
1392
1393
  transform: `translateY(${t.start}px)`,
1393
1394
  display: "grid",
1394
- gridTemplateColumns: X,
1395
+ gridTemplateColumns: he,
1395
1396
  alignItems: "stretch"
1396
1397
  },
1397
1398
  "data-testid": `container-row-${n.name}`,
@@ -1402,18 +1403,18 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1402
1403
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
1403
1404
  },
1404
1405
  children: [
1405
- C && /*#__PURE__*/ F(c, {
1406
+ x && /*#__PURE__*/ F(r, {
1406
1407
  onClick: (e) => e.stopPropagation(),
1407
1408
  onKeyDown: (e) => {
1408
1409
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
1409
1410
  },
1410
- children: /*#__PURE__*/ F(D, {
1411
- checked: r,
1412
- onChange: () => Y(n.name),
1411
+ children: /*#__PURE__*/ F(C, {
1412
+ checked: i,
1413
+ onChange: () => pe(n.name),
1413
1414
  "data-testid": `select-container-${n.name}`
1414
1415
  })
1415
1416
  }),
1416
- /*#__PURE__*/ F(c, {
1417
+ /*#__PURE__*/ F(r, {
1417
1418
  className: "min-w-0 overflow-hidden",
1418
1419
  children: /*#__PURE__*/ F("span", {
1419
1420
  className: "block truncate",
@@ -1421,30 +1422,30 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1421
1422
  children: n.name
1422
1423
  })
1423
1424
  }),
1424
- /*#__PURE__*/ F(c, { children: n.count.toLocaleString() }),
1425
- /*#__PURE__*/ F(c, { children: n.last_modified ? q(n.last_modified) : E._({ id: "fj5byd" }) }),
1426
- /*#__PURE__*/ F(c, { children: M(n.bytes) }),
1427
- /*#__PURE__*/ F(c, {
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, {
1428
1429
  onClick: (e) => e.stopPropagation(),
1429
- children: /*#__PURE__*/ F(v, { children: /*#__PURE__*/ I(i, { children: [
1430
- /*#__PURE__*/ F(m, {
1431
- label: E._({ id: "cWbW6w" }),
1432
- onClick: () => le(n),
1430
+ children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ I(E, { children: [
1431
+ /*#__PURE__*/ F(v, {
1432
+ label: O._({ id: "cWbW6w" }),
1433
+ onClick: () => J(n),
1433
1434
  "data-testid": `access-control-action-${n.name}`
1434
1435
  }),
1435
- /*#__PURE__*/ F(m, {
1436
- label: E._({ id: "Oc8Aqv" }),
1436
+ /*#__PURE__*/ F(v, {
1437
+ label: O._({ id: "Oc8Aqv" }),
1437
1438
  onClick: () => oe(n),
1438
1439
  "data-testid": `properties-action-${n.name}`
1439
1440
  }),
1440
- /*#__PURE__*/ F(m, {
1441
- label: E._({ id: "N2S1rs" }),
1442
- onClick: () => R(n),
1441
+ /*#__PURE__*/ F(v, {
1442
+ label: O._({ id: "N2S1rs" }),
1443
+ onClick: () => G(n),
1443
1444
  "data-testid": `empty-action-${n.name}`
1444
1445
  }),
1445
- /*#__PURE__*/ F(m, {
1446
- label: E._({ id: "cnGeoo" }),
1447
- onClick: () => ne(n),
1446
+ /*#__PURE__*/ F(v, {
1447
+ label: O._({ id: "cnGeoo" }),
1448
+ onClick: () => ie(n),
1448
1449
  "data-testid": `delete-action-${n.name}`
1449
1450
  })
1450
1451
  ] }) })
@@ -1455,47 +1456,47 @@ var he = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, maxContain
1455
1456
  })
1456
1457
  })]
1457
1458
  }),
1458
- /*#__PURE__*/ F(G, {
1459
+ /*#__PURE__*/ F(K, {
1459
1460
  isOpen: t,
1460
- onClose: () => n(!1),
1461
+ onClose: () => i(!1),
1461
1462
  onSuccess: s,
1462
- onError: l,
1463
- maxContainerNameLength: r
1463
+ onError: c,
1464
+ maxContainerNameLength: a
1464
1465
  }),
1465
- /*#__PURE__*/ F(ie, {
1466
- isOpen: L !== null,
1467
- container: L,
1468
- onClose: () => R(null),
1469
- onSuccess: u,
1470
- onError: d
1466
+ /*#__PURE__*/ F(re, {
1467
+ isOpen: R !== null,
1468
+ container: R,
1469
+ onClose: () => G(null),
1470
+ onSuccess: l,
1471
+ onError: u
1471
1472
  }),
1472
- /*#__PURE__*/ F(K, {
1473
- isOpen: W !== null,
1474
- container: W,
1475
- onClose: () => ne(null),
1476
- onSuccess: f,
1477
- onError: h
1473
+ /*#__PURE__*/ F(q, {
1474
+ isOpen: te !== null,
1475
+ container: te,
1476
+ onClose: () => ie(null),
1477
+ onSuccess: d,
1478
+ onError: f
1478
1479
  }),
1479
- /*#__PURE__*/ F(ce, {
1480
+ /*#__PURE__*/ F(se, {
1480
1481
  isOpen: ae !== null,
1481
1482
  container: ae,
1482
1483
  onClose: () => oe(null),
1483
- onSuccess: g,
1484
- onError: _
1484
+ onSuccess: p,
1485
+ onError: m
1485
1486
  }),
1486
- /*#__PURE__*/ F(pe, {
1487
- isOpen: se !== null,
1488
- container: se,
1489
- onClose: () => le(null),
1490
- onSuccess: y,
1491
- onError: b
1487
+ /*#__PURE__*/ F(fe, {
1488
+ isOpen: ce !== null,
1489
+ container: ce,
1490
+ onClose: () => J(null),
1491
+ onSuccess: h,
1492
+ onError: g
1492
1493
  })
1493
1494
  ] });
1494
1495
  };
1495
1496
  //#endregion
1496
1497
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/ContainerToastNotifications.tsx
1497
1498
  function Z({ title: e, description: t }) {
1498
- return /*#__PURE__*/ I(C, {
1499
+ return /*#__PURE__*/ I(s, {
1499
1500
  direction: "vertical",
1500
1501
  gap: "1.5",
1501
1502
  children: [/*#__PURE__*/ F("span", { children: e }), /*#__PURE__*/ F("span", {
@@ -1507,20 +1508,18 @@ function Z({ title: e, description: t }) {
1507
1508
  var ge = (e, t) => ({
1508
1509
  variant: "success",
1509
1510
  children: /*#__PURE__*/ F(Z, {
1510
- title: /*#__PURE__*/ F(H, { id: "6w+VnM" }),
1511
- description: /*#__PURE__*/ F(H, {
1511
+ title: /*#__PURE__*/ F(U, { id: "6w+VnM" }),
1512
+ description: /*#__PURE__*/ F(U, {
1512
1513
  id: "XwxJJB",
1513
1514
  values: { containerName: e }
1514
1515
  })
1515
1516
  }),
1516
- autoDismiss: !0,
1517
- autoDismissTimeout: t.autoDismissTimeout ?? 5e3,
1518
1517
  onDismiss: t.onDismiss
1519
1518
  }), _e = (e, t, n) => ({
1520
1519
  variant: "error",
1521
1520
  children: /*#__PURE__*/ F(Z, {
1522
- title: /*#__PURE__*/ F(H, { id: "Vj8XFg" }),
1523
- description: /*#__PURE__*/ F(H, {
1521
+ title: /*#__PURE__*/ F(U, { id: "Vj8XFg" }),
1522
+ description: /*#__PURE__*/ F(U, {
1524
1523
  id: "Vz+7ZA",
1525
1524
  values: {
1526
1525
  containerName: e,
@@ -1528,23 +1527,21 @@ var ge = (e, t) => ({
1528
1527
  }
1529
1528
  })
1530
1529
  }),
1531
- autoDismiss: !0,
1532
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
1533
1530
  onDismiss: n.onDismiss
1534
1531
  }), Q = (e, t, n) => ({
1535
1532
  variant: "success",
1536
1533
  children: /*#__PURE__*/ F(Z, {
1537
- title: /*#__PURE__*/ F(H, { id: "6OopEX" }),
1538
- description: t === 0 ? /*#__PURE__*/ F(H, {
1534
+ title: /*#__PURE__*/ F(U, { id: "6OopEX" }),
1535
+ description: t === 0 ? /*#__PURE__*/ F(U, {
1539
1536
  id: "nkpZyk",
1540
1537
  values: { containerName: e }
1541
- }) : t === 1 ? /*#__PURE__*/ F(H, {
1538
+ }) : t === 1 ? /*#__PURE__*/ F(U, {
1542
1539
  id: "TZJiVf",
1543
1540
  values: {
1544
1541
  containerName: e,
1545
1542
  deletedCount: t
1546
1543
  }
1547
- }) : /*#__PURE__*/ F(H, {
1544
+ }) : /*#__PURE__*/ F(U, {
1548
1545
  id: "Sb/VT5",
1549
1546
  values: {
1550
1547
  containerName: e,
@@ -1552,14 +1549,12 @@ var ge = (e, t) => ({
1552
1549
  }
1553
1550
  })
1554
1551
  }),
1555
- autoDismiss: !0,
1556
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
1557
1552
  onDismiss: n.onDismiss
1558
1553
  }), ve = (e, t, n) => ({
1559
1554
  variant: "error",
1560
1555
  children: /*#__PURE__*/ F(Z, {
1561
- title: /*#__PURE__*/ F(H, { id: "S8/j2h" }),
1562
- description: /*#__PURE__*/ F(H, {
1556
+ title: /*#__PURE__*/ F(U, { id: "S8/j2h" }),
1557
+ description: /*#__PURE__*/ F(U, {
1563
1558
  id: "1rLu3+",
1564
1559
  values: {
1565
1560
  containerName: e,
@@ -1567,26 +1562,22 @@ var ge = (e, t) => ({
1567
1562
  }
1568
1563
  })
1569
1564
  }),
1570
- autoDismiss: !0,
1571
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
1572
1565
  onDismiss: n.onDismiss
1573
1566
  }), ye = (e, t) => ({
1574
1567
  variant: "success",
1575
1568
  children: /*#__PURE__*/ F(Z, {
1576
- title: /*#__PURE__*/ F(H, { id: "odVI9Y" }),
1577
- description: /*#__PURE__*/ F(H, {
1569
+ title: /*#__PURE__*/ F(U, { id: "odVI9Y" }),
1570
+ description: /*#__PURE__*/ F(U, {
1578
1571
  id: "V1TzeS",
1579
1572
  values: { containerName: e }
1580
1573
  })
1581
1574
  }),
1582
- autoDismiss: !0,
1583
- autoDismissTimeout: t.autoDismissTimeout ?? 5e3,
1584
1575
  onDismiss: t.onDismiss
1585
1576
  }), be = (e, t, n) => ({
1586
1577
  variant: "error",
1587
1578
  children: /*#__PURE__*/ F(Z, {
1588
- title: /*#__PURE__*/ F(H, { id: "BJt+PJ" }),
1589
- description: /*#__PURE__*/ F(H, {
1579
+ title: /*#__PURE__*/ F(U, { id: "BJt+PJ" }),
1580
+ description: /*#__PURE__*/ F(U, {
1590
1581
  id: "RGrgxg",
1591
1582
  values: {
1592
1583
  containerName: e,
@@ -1594,26 +1585,22 @@ var ge = (e, t) => ({
1594
1585
  }
1595
1586
  })
1596
1587
  }),
1597
- autoDismiss: !0,
1598
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
1599
1588
  onDismiss: n.onDismiss
1600
1589
  }), xe = (e, t) => ({
1601
1590
  variant: "success",
1602
1591
  children: /*#__PURE__*/ F(Z, {
1603
- title: /*#__PURE__*/ F(H, { id: "a7C4YS" }),
1604
- description: /*#__PURE__*/ F(H, {
1592
+ title: /*#__PURE__*/ F(U, { id: "a7C4YS" }),
1593
+ description: /*#__PURE__*/ F(U, {
1605
1594
  id: "/NeNjH",
1606
1595
  values: { containerName: e }
1607
1596
  })
1608
1597
  }),
1609
- autoDismiss: !0,
1610
- autoDismissTimeout: t.autoDismissTimeout ?? 5e3,
1611
1598
  onDismiss: t.onDismiss
1612
1599
  }), Se = (e, t, n) => ({
1613
1600
  variant: "error",
1614
1601
  children: /*#__PURE__*/ F(Z, {
1615
- title: /*#__PURE__*/ F(H, { id: "5MF8U2" }),
1616
- description: /*#__PURE__*/ F(H, {
1602
+ title: /*#__PURE__*/ F(U, { id: "5MF8U2" }),
1603
+ description: /*#__PURE__*/ F(U, {
1617
1604
  id: "uLtFAr",
1618
1605
  values: {
1619
1606
  containerName: e,
@@ -1621,26 +1608,22 @@ var ge = (e, t) => ({
1621
1608
  }
1622
1609
  })
1623
1610
  }),
1624
- autoDismiss: !0,
1625
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
1626
1611
  onDismiss: n.onDismiss
1627
1612
  }), Ce = (e, t) => ({
1628
1613
  variant: "success",
1629
1614
  children: /*#__PURE__*/ F(Z, {
1630
- title: /*#__PURE__*/ F(H, { id: "olfSYj" }),
1631
- description: /*#__PURE__*/ F(H, {
1615
+ title: /*#__PURE__*/ F(U, { id: "olfSYj" }),
1616
+ description: /*#__PURE__*/ F(U, {
1632
1617
  id: "tM5SEI",
1633
1618
  values: { containerName: e }
1634
1619
  })
1635
1620
  }),
1636
- autoDismiss: !0,
1637
- autoDismissTimeout: t.autoDismissTimeout ?? 5e3,
1638
1621
  onDismiss: t.onDismiss
1639
1622
  }), we = (e, t, n) => ({
1640
1623
  variant: "error",
1641
1624
  children: /*#__PURE__*/ F(Z, {
1642
- title: /*#__PURE__*/ F(H, { id: "p7DzCB" }),
1643
- description: /*#__PURE__*/ F(H, {
1625
+ title: /*#__PURE__*/ F(U, { id: "p7DzCB" }),
1626
+ description: /*#__PURE__*/ F(U, {
1644
1627
  id: "DcMIiu",
1645
1628
  values: {
1646
1629
  containerName: e,
@@ -1648,19 +1631,17 @@ var ge = (e, t) => ({
1648
1631
  }
1649
1632
  })
1650
1633
  }),
1651
- autoDismiss: !0,
1652
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
1653
1634
  onDismiss: n.onDismiss
1654
1635
  }), Te = (e, t, n, r) => {
1655
1636
  let i = n.length > 0, a = e > 0, o = i && a;
1656
1637
  return {
1657
1638
  variant: o ? "warning" : i ? "error" : "success",
1658
1639
  children: /*#__PURE__*/ F(Z, {
1659
- title: o ? /*#__PURE__*/ F(H, { id: "q44uUq" }) : i ? /*#__PURE__*/ F(H, { id: "wFaT8w" }) : /*#__PURE__*/ F(H, { id: "0WsqO0" }),
1660
- description: /*#__PURE__*/ I(C, {
1640
+ title: o ? /*#__PURE__*/ F(U, { id: "q44uUq" }) : i ? /*#__PURE__*/ F(U, { id: "wFaT8w" }) : /*#__PURE__*/ F(U, { id: "0WsqO0" }),
1641
+ description: /*#__PURE__*/ I(s, {
1661
1642
  direction: "vertical",
1662
1643
  gap: "1",
1663
- children: [a && /*#__PURE__*/ F("span", { children: /*#__PURE__*/ F(H, {
1644
+ children: [a && /*#__PURE__*/ F("span", { children: /*#__PURE__*/ F(U, {
1664
1645
  id: "1NS3nd",
1665
1646
  values: {
1666
1647
  emptiedCount: e,
@@ -1668,20 +1649,18 @@ var ge = (e, t) => ({
1668
1649
  }
1669
1650
  }) }), i && /*#__PURE__*/ F("span", {
1670
1651
  className: "whitespace-pre-line",
1671
- children: /*#__PURE__*/ F(H, {
1652
+ children: /*#__PURE__*/ F(U, {
1672
1653
  id: "JrmKyf",
1673
1654
  values: { errorDetails: n.join("\n") }
1674
1655
  })
1675
1656
  })]
1676
1657
  })
1677
1658
  }),
1678
- autoDismiss: !0,
1679
- autoDismissTimeout: r.autoDismissTimeout ?? 5e3,
1680
1659
  onDismiss: r.onDismiss
1681
1660
  };
1682
1661
  }, $ = ({ label: e, value: t }) => t == null ? null : /*#__PURE__*/ I("span", {
1683
1662
  className: "flex items-start gap-1.5",
1684
- children: [/*#__PURE__*/ F(x, {
1663
+ children: [/*#__PURE__*/ F(b, {
1685
1664
  icon: "check",
1686
1665
  size: "16px",
1687
1666
  className: "text-theme-success mt-0.5 shrink-0"
@@ -1695,7 +1674,7 @@ var ge = (e, t) => ({
1695
1674
  ] })]
1696
1675
  }), Ee = ({ label: e }) => /*#__PURE__*/ I("span", {
1697
1676
  className: "flex items-start gap-1.5",
1698
- children: [/*#__PURE__*/ F(x, {
1677
+ children: [/*#__PURE__*/ F(b, {
1699
1678
  icon: "check",
1700
1679
  size: "16px",
1701
1680
  className: "text-theme-success mt-0.5 shrink-0"
@@ -1706,132 +1685,132 @@ var ge = (e, t) => ({
1706
1685
  className: "text-theme-default block font-semibold",
1707
1686
  children: e
1708
1687
  }), t]
1709
- }), Oe = ({ serviceInfo: e, accountInfo: n }) => {
1710
- let { i18n: r, _: i } = U(), a = e?.swift, o = {
1711
- account_quotas: r._({ id: "DJT9tB" }),
1712
- container_quotas: r._({ id: "USiuNX" }),
1713
- bulk_delete: r._({ id: "F6YIQe" }),
1714
- bulk_upload: r._({ id: "2Inn83" }),
1715
- slo: r._({ id: "cpw++p" }),
1716
- container_sync: r._({ id: "ezT9KW" }),
1717
- tempurl: r._({ id: "UO3hJ2" }),
1718
- symlink: r._({ id: "Q2xmVl" }),
1719
- versioned_writes: r._({ id: "8jLXs3" })
1720
- }, s = Object.entries(o).filter(([e]) => a?.[e]).map(([, e]) => e);
1721
- return /*#__PURE__*/ I(h, {
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, {
1722
1701
  triggerEvent: "hover",
1723
1702
  placement: "bottom-end",
1724
- children: [/*#__PURE__*/ F(l, {
1703
+ children: [/*#__PURE__*/ F(f, {
1725
1704
  asChild: !0,
1726
- children: /*#__PURE__*/ F(x, {
1705
+ children: /*#__PURE__*/ F(b, {
1727
1706
  icon: "info",
1728
1707
  size: "20px",
1729
1708
  className: "text-theme-light hover:text-theme-default cursor-pointer"
1730
1709
  })
1731
- }), /*#__PURE__*/ F(t, {
1710
+ }), /*#__PURE__*/ F(S, {
1732
1711
  className: "z-10 w-72 text-sm",
1733
1712
  children: /*#__PURE__*/ I("span", {
1734
1713
  className: "flex flex-col gap-3 p-1",
1735
1714
  children: [
1736
- n && /*#__PURE__*/ I(De, {
1737
- title: /*#__PURE__*/ F(H, { id: "AeXO77" }),
1715
+ t && /*#__PURE__*/ I(De, {
1716
+ title: /*#__PURE__*/ F(U, { id: "AeXO77" }),
1738
1717
  children: [
1739
1718
  /*#__PURE__*/ F($, {
1740
- label: r._({ id: "ClGcRq" }),
1741
- value: n.containerCount.toLocaleString()
1719
+ label: n._({ id: "ClGcRq" }),
1720
+ value: t.containerCount.toLocaleString()
1742
1721
  }),
1743
1722
  /*#__PURE__*/ F($, {
1744
- label: r._({ id: "B3toQF" }),
1745
- value: n.objectCount.toLocaleString()
1723
+ label: n._({ id: "B3toQF" }),
1724
+ value: t.objectCount.toLocaleString()
1746
1725
  }),
1747
1726
  /*#__PURE__*/ F($, {
1748
- label: r._({ id: "aL1w5Z" }),
1749
- value: M(n.bytesUsed)
1727
+ label: n._({ id: "aL1w5Z" }),
1728
+ value: M(t.bytesUsed)
1750
1729
  }),
1751
- n.quotaBytes !== void 0 && /*#__PURE__*/ F($, {
1752
- label: r._({ id: "vEkTR9" }),
1753
- value: M(n.quotaBytes)
1730
+ t.quotaBytes !== void 0 && /*#__PURE__*/ F($, {
1731
+ label: n._({ id: "vEkTR9" }),
1732
+ value: M(t.quotaBytes)
1754
1733
  })
1755
1734
  ]
1756
1735
  }),
1757
- a && /*#__PURE__*/ I(De, {
1758
- title: /*#__PURE__*/ F(H, { id: "6BDqha" }),
1736
+ i && /*#__PURE__*/ I(De, {
1737
+ title: /*#__PURE__*/ F(U, { id: "6BDqha" }),
1759
1738
  children: [
1760
1739
  /*#__PURE__*/ F($, {
1761
- label: r._({ id: "wTg+FY" }),
1762
- value: a.max_file_size === void 0 ? void 0 : M(a.max_file_size)
1740
+ label: n._({ id: "wTg+FY" }),
1741
+ value: i.max_file_size === void 0 ? void 0 : M(i.max_file_size)
1763
1742
  }),
1764
1743
  /*#__PURE__*/ F($, {
1765
- label: r._({ id: "Rih53k" }),
1766
- value: a.max_container_name_length
1744
+ label: n._({ id: "Rih53k" }),
1745
+ value: i.max_container_name_length
1767
1746
  }),
1768
1747
  /*#__PURE__*/ F($, {
1769
- label: r._({ id: "qAkkjP" }),
1770
- value: a.max_object_name_length
1748
+ label: n._({ id: "qAkkjP" }),
1749
+ value: i.max_object_name_length
1771
1750
  }),
1772
1751
  /*#__PURE__*/ F($, {
1773
- label: r._({ id: "OZImTR" }),
1774
- value: a.container_listing_limit?.toLocaleString()
1752
+ label: n._({ id: "OZImTR" }),
1753
+ value: i.container_listing_limit?.toLocaleString()
1775
1754
  }),
1776
1755
  /*#__PURE__*/ F($, {
1777
- label: r._({ id: "a4A2uB" }),
1778
- value: a.account_listing_limit?.toLocaleString()
1756
+ label: n._({ id: "a4A2uB" }),
1757
+ value: i.account_listing_limit?.toLocaleString()
1779
1758
  }),
1780
1759
  /*#__PURE__*/ F($, {
1781
- label: r._({ id: "zWb/Nn" }),
1782
- value: a.max_header_size
1760
+ label: n._({ id: "zWb/Nn" }),
1761
+ value: i.max_header_size
1783
1762
  }),
1784
1763
  /*#__PURE__*/ F($, {
1785
- label: r._({ id: "RGwfoL" }),
1786
- value: a.max_meta_count
1764
+ label: n._({ id: "RGwfoL" }),
1765
+ value: i.max_meta_count
1787
1766
  }),
1788
1767
  /*#__PURE__*/ F($, {
1789
- label: r._({ id: "8c3/77" }),
1790
- value: a.max_meta_name_length
1768
+ label: n._({ id: "8c3/77" }),
1769
+ value: i.max_meta_name_length
1791
1770
  }),
1792
1771
  /*#__PURE__*/ F($, {
1793
- label: r._({ id: "5JDSvn" }),
1794
- value: a.max_meta_value_length
1772
+ label: n._({ id: "5JDSvn" }),
1773
+ value: i.max_meta_value_length
1795
1774
  }),
1796
1775
  /*#__PURE__*/ F($, {
1797
- label: r._({ id: "ZAx+d1" }),
1798
- value: a.max_meta_overall_size
1776
+ label: n._({ id: "ZAx+d1" }),
1777
+ value: i.max_meta_overall_size
1799
1778
  }),
1800
- a.bulk_delete && /*#__PURE__*/ F($, {
1801
- label: r._({ id: "lQ3EIe" }),
1802
- value: a.bulk_delete.max_deletes_per_request.toLocaleString()
1779
+ i.bulk_delete && /*#__PURE__*/ F($, {
1780
+ label: n._({ id: "lQ3EIe" }),
1781
+ value: i.bulk_delete.max_deletes_per_request.toLocaleString()
1803
1782
  }),
1804
- a.bulk_upload && /*#__PURE__*/ F($, {
1805
- label: r._({ id: "STc+7E" }),
1806
- value: a.bulk_upload.max_containers_per_extraction.toLocaleString()
1783
+ i.bulk_upload && /*#__PURE__*/ F($, {
1784
+ label: n._({ id: "STc+7E" }),
1785
+ value: i.bulk_upload.max_containers_per_extraction.toLocaleString()
1807
1786
  }),
1808
- a.slo && /*#__PURE__*/ F($, {
1809
- label: r._({ id: "RNBvdl" }),
1810
- value: a.slo.max_manifest_segments.toLocaleString()
1787
+ i.slo && /*#__PURE__*/ F($, {
1788
+ label: n._({ id: "RNBvdl" }),
1789
+ value: i.slo.max_manifest_segments.toLocaleString()
1811
1790
  })
1812
1791
  ]
1813
1792
  }),
1814
- s.length > 0 && /*#__PURE__*/ F(De, {
1815
- title: /*#__PURE__*/ F(H, { id: "Qx7DM7" }),
1816
- children: s.map((e) => /*#__PURE__*/ F(Ee, { label: e }, e))
1793
+ o.length > 0 && /*#__PURE__*/ F(De, {
1794
+ title: /*#__PURE__*/ F(U, { id: "Qx7DM7" }),
1795
+ children: o.map((e) => /*#__PURE__*/ F(Ee, { label: e }, e))
1817
1796
  })
1818
1797
  ]
1819
1798
  })
1820
1799
  })]
1821
1800
  });
1822
1801
  }, ke = 20, Ae = ({ isOpen: e, containers: t, onClose: n, onComplete: r }) => {
1823
- let { i18n: i, _: a } = U(), o = N(), [s, c] = B(null), l = O.useUtils(), d = O.storage.swift.emptyContainer.useMutation(), f = () => {
1824
- d.reset(), c(null), n();
1825
- }, p = async () => {
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();
1804
+ }, m = async () => {
1826
1805
  let e = 0, n = 0, i = [], a = t.length;
1827
1806
  for (let r = 0; r < t.length; r++) {
1828
- c({
1807
+ u({
1829
1808
  current: r + 1,
1830
1809
  total: a
1831
1810
  });
1832
1811
  let s = t[r];
1833
1812
  try {
1834
- let t = await d.mutateAsync({
1813
+ let t = await f.mutateAsync({
1835
1814
  project_id: o,
1836
1815
  container: s.name
1837
1816
  });
@@ -1841,42 +1820,42 @@ var ge = (e, t) => ({
1841
1820
  i.push(`${s.name}: ${t}`);
1842
1821
  }
1843
1822
  }
1844
- e > 0 && await l.storage.swift.listContainers.invalidate(), r?.({
1823
+ e > 0 && await d.storage.swift.listContainers.invalidate(), r?.({
1845
1824
  emptiedCount: e,
1846
1825
  totalDeleted: n,
1847
1826
  errors: i
1848
- }), f();
1827
+ }), p();
1849
1828
  };
1850
1829
  if (!e || t.length === 0) return null;
1851
- let m = t.length, h = t.slice(0, ke), g = m - h.length, _ = d.isPending || s !== null, v = s?.current, y = s?.total;
1830
+ let h = t.length, g = t.slice(0, ke), _ = h - g.length, v = f.isPending || l !== null, y = l?.current, b = l?.total;
1852
1831
  return /*#__PURE__*/ F(w, {
1853
- title: /*#__PURE__*/ F(H, {
1832
+ title: /*#__PURE__*/ F(U, {
1854
1833
  id: "/tejov",
1855
- values: { totalCount: m }
1834
+ values: { totalCount: h }
1856
1835
  }),
1857
1836
  open: e,
1858
- onCancel: f,
1859
- confirmButtonLabel: _ ? i._({ id: "s4Vnq2" }) : i._({ id: "N2S1rs" }),
1837
+ onCancel: p,
1838
+ confirmButtonLabel: v ? i._({ id: "s4Vnq2" }) : i._({ id: "N2S1rs" }),
1860
1839
  confirmButtonVariant: "primary-danger",
1861
1840
  cancelButtonLabel: i._({ id: "dEgA5A" }),
1862
- onConfirm: p,
1863
- disableConfirmButton: _,
1864
- disableCancelButton: _,
1865
- disableCloseButton: _,
1841
+ onConfirm: m,
1842
+ disableConfirmButton: v,
1843
+ disableCancelButton: v,
1844
+ disableCloseButton: v,
1866
1845
  size: "small",
1867
- children: _ ? /*#__PURE__*/ I(C, {
1846
+ children: v ? /*#__PURE__*/ I(s, {
1868
1847
  direction: "vertical",
1869
1848
  distribution: "center",
1870
1849
  alignment: "center",
1871
1850
  gap: "2",
1872
1851
  className: "py-4",
1873
- children: [/*#__PURE__*/ F(u, { variant: "primary" }), s && /*#__PURE__*/ F("p", {
1852
+ children: [/*#__PURE__*/ F(c, { variant: "primary" }), l && /*#__PURE__*/ F("p", {
1874
1853
  className: "text-theme-light text-sm",
1875
- children: /*#__PURE__*/ F(H, {
1854
+ children: /*#__PURE__*/ F(U, {
1876
1855
  id: "7NSdfG",
1877
1856
  values: {
1878
- progressCurrent: v,
1879
- progressTotal: y
1857
+ progressCurrent: y,
1858
+ progressTotal: b
1880
1859
  }
1881
1860
  })
1882
1861
  })]
@@ -1885,9 +1864,9 @@ var ge = (e, t) => ({
1885
1864
  children: [/*#__PURE__*/ I("p", {
1886
1865
  className: "text-theme-default mb-6",
1887
1866
  children: [
1888
- /*#__PURE__*/ F(H, { id: "JuOpPY" }),
1867
+ /*#__PURE__*/ F(U, { id: "JuOpPY" }),
1889
1868
  /*#__PURE__*/ F("br", {}),
1890
- /*#__PURE__*/ F(H, {
1869
+ /*#__PURE__*/ F(U, {
1891
1870
  id: "sheDTJ",
1892
1871
  components: {
1893
1872
  0: /*#__PURE__*/ F("strong", {}),
@@ -1899,23 +1878,23 @@ var ge = (e, t) => ({
1899
1878
  className: "mb-6",
1900
1879
  children: [/*#__PURE__*/ F("h3", {
1901
1880
  className: "jn:text-theme-high mb-3 font-semibold",
1902
- children: /*#__PURE__*/ F(H, {
1881
+ children: /*#__PURE__*/ F(U, {
1903
1882
  id: "VKmlZ+",
1904
- values: { totalCount: m }
1883
+ values: { totalCount: h }
1905
1884
  })
1906
1885
  }), /*#__PURE__*/ I("div", {
1907
1886
  className: "jn:bg-theme-background-lvl-1 max-h-48 overflow-y-auto rounded p-4",
1908
1887
  children: [/*#__PURE__*/ F("ul", {
1909
1888
  className: "space-y-1",
1910
- children: h.map((e) => /*#__PURE__*/ F("li", {
1889
+ children: g.map((e) => /*#__PURE__*/ F("li", {
1911
1890
  className: "jn:text-theme-default font-mono text-sm",
1912
1891
  children: e.name
1913
1892
  }, e.name))
1914
- }), g > 0 && /*#__PURE__*/ F("p", {
1893
+ }), _ > 0 && /*#__PURE__*/ F("p", {
1915
1894
  className: "text-theme-light mt-2 text-xs",
1916
- children: /*#__PURE__*/ F(H, {
1895
+ children: /*#__PURE__*/ F(U, {
1917
1896
  id: "yqPflB",
1918
- values: { hiddenCount: g }
1897
+ values: { hiddenCount: _ }
1919
1898
  })
1920
1899
  })]
1921
1900
  })]
@@ -1923,38 +1902,38 @@ var ge = (e, t) => ({
1923
1902
  })
1924
1903
  });
1925
1904
  }, je = () => {
1926
- let { i18n: e, i18n: t, _: n } = U(), a = N(), o = te({ from: k.fullPath }), { sortBy: c, sortDirection: l, search: f = "" } = k.useSearch(), [p, h] = B(!1), [g, b] = B(!1), [x, S] = B([]), [w, T] = B(null), [E, A] = B(f), R = z(void 0);
1927
- ee(() => () => clearTimeout(R.current), []), ee(() => {
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);
1906
+ z(() => () => clearTimeout(R.current), []), z(() => {
1928
1907
  A(f);
1929
1908
  }, [f]);
1930
- let V = () => T(null), W = (e) => {
1931
- T(ge(e, { onDismiss: V }));
1909
+ let H = () => T(null), G = (e) => {
1910
+ T(ge(e, { onDismiss: H }));
1911
+ }, te = (e, t) => {
1912
+ T(_e(e, t, { onDismiss: H }));
1932
1913
  }, ne = (e, t) => {
1933
- T(_e(e, t, { onDismiss: V }));
1934
- }, re = (e, t) => {
1935
- T(Q(e, t, { onDismiss: V }));
1936
- }, G = (e, t) => {
1937
- T(ve(e, t, { onDismiss: V }));
1938
- }, ie = (e) => {
1939
- T(ye(e, { onDismiss: V }));
1914
+ T(Q(e, t, { onDismiss: H }));
1940
1915
  }, K = (e, t) => {
1941
- T(be(e, t, { onDismiss: V }));
1942
- }, ae = (e) => {
1943
- T(xe(e, { onDismiss: V }));
1944
- }, oe = (e, t) => {
1945
- T(Se(e, t, { onDismiss: V }));
1946
- }, se = (e) => {
1947
- T(Ce(e, { onDismiss: V }));
1948
- }, ce = (e, t) => {
1949
- T(we(e, t, { onDismiss: V }));
1950
- }, le = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
1916
+ T(ve(e, t, { onDismiss: H }));
1917
+ }, re = (e) => {
1918
+ T(ye(e, { onDismiss: H }));
1919
+ }, q = (e, t) => {
1920
+ T(be(e, t, { onDismiss: H }));
1921
+ }, ie = (e) => {
1922
+ T(xe(e, { onDismiss: H }));
1923
+ }, ae = (e, t) => {
1924
+ T(Se(e, t, { onDismiss: H }));
1925
+ }, oe = (e) => {
1926
+ T(Ce(e, { onDismiss: H }));
1927
+ }, se = (e, t) => {
1928
+ T(we(e, t, { onDismiss: H }));
1929
+ }, ce = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
1951
1930
  if (n.length === 0) S([]);
1952
1931
  else {
1953
1932
  let e = new Set(n.map((e) => e.split(": ")[0]));
1954
1933
  S((t) => t.filter((t) => e.has(t)));
1955
1934
  }
1956
- T(Te(e, t, n, { onDismiss: V }));
1957
- }, q = {
1935
+ T(Te(e, t, n, { onDismiss: H }));
1936
+ }, J = {
1958
1937
  options: [
1959
1938
  {
1960
1939
  label: e._({ id: "6YtxFj" }),
@@ -1973,14 +1952,14 @@ var ge = (e, t) => ({
1973
1952
  value: "last_modified"
1974
1953
  }
1975
1954
  ],
1976
- sortBy: c ?? "name",
1977
- sortDirection: l ?? "asc"
1978
- }, { data: J, isLoading: ue, error: de } = O.storage.swift.listContainers.useQuery({
1955
+ sortBy: u ?? "name",
1956
+ sortDirection: d ?? "asc"
1957
+ }, { data: Y, isLoading: le, error: ue } = O.storage.swift.listContainers.useQuery({
1979
1958
  project_id: a,
1980
1959
  format: "json"
1981
- }), { data: fe } = O.storage.swift.getAccountMetadata.useQuery({ project_id: a }), { data: Y } = O.storage.swift.getServiceInfo.useQuery(), pe = (e) => [...e].sort((e, t) => {
1960
+ }), { data: de } = O.storage.swift.getAccountMetadata.useQuery({ project_id: a }), { data: X } = O.storage.swift.getServiceInfo.useQuery(), fe = (e) => [...e].sort((e, t) => {
1982
1961
  let n;
1983
- switch (c ?? "name") {
1962
+ switch (u ?? "name") {
1984
1963
  case "name":
1985
1964
  n = e.name.localeCompare(t.name);
1986
1965
  break;
@@ -1996,11 +1975,11 @@ var ge = (e, t) => ({
1996
1975
  break;
1997
1976
  default: n = e.name.localeCompare(t.name);
1998
1977
  }
1999
- return (l ?? "asc") === "desc" ? -n : n;
2000
- }), me = (J || []).filter((e) => e.name.toLowerCase().includes(f.toLowerCase())), X = pe(me), Z = (e) => {
1978
+ return (d ?? "asc") === "desc" ? -n : n;
1979
+ }), pe = (Y || []).filter((e) => e.name.toLowerCase().includes(f.toLowerCase())), me = fe(pe), Z = (e) => {
2001
1980
  let t = typeof e == "string" ? e : "";
2002
1981
  L(() => {
2003
- o({ search: (e) => ({
1982
+ l({ search: (e) => ({
2004
1983
  ...e,
2005
1984
  search: t || void 0
2006
1985
  }) });
@@ -2008,83 +1987,83 @@ var ge = (e, t) => ({
2008
1987
  }, $ = (e) => {
2009
1988
  let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
2010
1989
  L(() => {
2011
- o({ search: (e) => ({
1990
+ l({ search: (e) => ({
2012
1991
  ...e,
2013
1992
  sortBy: t,
2014
1993
  sortDirection: n
2015
1994
  }) });
2016
1995
  });
2017
1996
  };
2018
- if (ue) return /*#__PURE__*/ I(C, {
1997
+ if (le) return /*#__PURE__*/ I(s, {
2019
1998
  className: "absolute inset-0",
2020
1999
  distribution: "center",
2021
2000
  alignment: "center",
2022
2001
  direction: "vertical",
2023
- children: [/*#__PURE__*/ F(u, {
2002
+ children: [/*#__PURE__*/ F(c, {
2024
2003
  variant: "primary",
2025
2004
  size: "large",
2026
2005
  className: "mb-2"
2027
- }), /*#__PURE__*/ F(H, { id: "WYiUDa" })]
2006
+ }), /*#__PURE__*/ F(U, { id: "WYiUDa" })]
2028
2007
  });
2029
- if (de) {
2030
- let e = de.message;
2031
- return /*#__PURE__*/ F(C, {
2008
+ if (ue) {
2009
+ let e = ue.message;
2010
+ return /*#__PURE__*/ F(s, {
2032
2011
  className: "absolute inset-0",
2033
2012
  distribution: "center",
2034
2013
  alignment: "center",
2035
2014
  direction: "vertical",
2036
- children: /*#__PURE__*/ F(H, {
2015
+ children: /*#__PURE__*/ F(U, {
2037
2016
  id: "dLFiER",
2038
2017
  values: { errorMessage: e }
2039
2018
  })
2040
2019
  });
2041
2020
  }
2042
- let Ee = fe?.bytesUsed || 0, De = fe?.quotaBytes || 0, ke = De > 0 ? De - Ee : 0, je = (J || []).filter((e) => x.includes(e.name)), Me = je.length > 0, Ne = je.length, Pe = (J || []).length, Fe = me.length, Ie = Fe !== Pe, Le = X.map((e) => e.name), Re = Le.length > 0 && Le.every((e) => x.includes(e)), ze = Le.some((e) => x.includes(e));
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));
2043
2022
  return /*#__PURE__*/ I("div", {
2044
2023
  className: "relative",
2045
2024
  children: [
2046
- /*#__PURE__*/ I(C, {
2025
+ /*#__PURE__*/ I(s, {
2047
2026
  direction: "vertical",
2048
2027
  children: [
2049
- /*#__PURE__*/ I(C, {
2028
+ /*#__PURE__*/ I(s, {
2050
2029
  distribution: "end",
2051
2030
  alignment: "center",
2052
2031
  gap: "2",
2053
2032
  className: "pb-2",
2054
- children: [/*#__PURE__*/ F(C, {
2033
+ children: [/*#__PURE__*/ F(s, {
2055
2034
  gap: "0.5",
2056
2035
  alignment: "center",
2057
2036
  children: /*#__PURE__*/ F(j, {
2058
- options: q.options,
2059
- sortBy: q.sortBy,
2060
- sortDirection: q.sortDirection ?? "asc",
2037
+ options: J.options,
2038
+ sortBy: J.sortBy,
2039
+ sortDirection: J.sortDirection ?? "asc",
2061
2040
  onSortByChange: (e) => $({
2062
- ...q,
2041
+ ...J,
2063
2042
  sortBy: e,
2064
- sortDirection: q.sortDirection
2043
+ sortDirection: J.sortDirection
2065
2044
  }),
2066
2045
  onSortDirectionChange: (e) => $({
2067
- ...q,
2046
+ ...J,
2068
2047
  sortDirection: e
2069
2048
  })
2070
2049
  })
2071
- }), /*#__PURE__*/ F(_, {
2050
+ }), /*#__PURE__*/ F(m, {
2072
2051
  variant: "primary",
2073
2052
  className: "whitespace-nowrap",
2074
- onClick: () => h(!0),
2075
- children: /*#__PURE__*/ F(H, { id: "vTh35P" })
2053
+ onClick: () => g(!0),
2054
+ children: /*#__PURE__*/ F(U, { id: "vTh35P" })
2076
2055
  })]
2077
2056
  }),
2078
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(C, {
2057
+ /*#__PURE__*/ F(p, { children: /*#__PURE__*/ F(s, {
2079
2058
  direction: "vertical",
2080
2059
  gap: "2",
2081
- children: /*#__PURE__*/ F(C, {
2060
+ children: /*#__PURE__*/ F(s, {
2082
2061
  distribution: "end",
2083
2062
  alignment: "center",
2084
- children: /*#__PURE__*/ F(y, {
2063
+ children: /*#__PURE__*/ F(x, {
2085
2064
  placeholder: e._({ id: "TipzDp" }),
2086
2065
  "data-testid": "searchbar",
2087
- value: E,
2066
+ value: D,
2088
2067
  onInput: (e) => {
2089
2068
  let t = e.currentTarget.value;
2090
2069
  A(t), clearTimeout(R.current), R.current = window.setTimeout(() => Z(t), 500);
@@ -2098,55 +2077,55 @@ var ge = (e, t) => ({
2098
2077
  })
2099
2078
  })
2100
2079
  }) }),
2101
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ I(C, {
2080
+ /*#__PURE__*/ F(p, { children: /*#__PURE__*/ I(s, {
2102
2081
  distribution: "start",
2103
2082
  gap: "2",
2104
2083
  alignment: "center",
2105
2084
  className: "text-sm",
2106
- children: [/*#__PURE__*/ I(C, {
2085
+ children: [/*#__PURE__*/ I(s, {
2107
2086
  gap: "2",
2108
2087
  alignment: "center",
2109
- children: [/*#__PURE__*/ F(D, {
2088
+ children: [/*#__PURE__*/ F(C, {
2110
2089
  checked: Re,
2111
2090
  indeterminate: ze && !Re,
2112
2091
  onChange: () => {
2113
2092
  S(Re ? (e) => e.filter((e) => !Le.includes(e)) : (e) => [...new Set([...e, ...Le])]);
2114
2093
  }
2115
- }), /*#__PURE__*/ I(v, {
2094
+ }), /*#__PURE__*/ I(o, {
2116
2095
  className: "flex items-center",
2117
- children: [/*#__PURE__*/ F(d, {
2096
+ children: [/*#__PURE__*/ F(t, {
2118
2097
  as: "div",
2119
- children: /*#__PURE__*/ F(_, {
2098
+ children: /*#__PURE__*/ F(m, {
2120
2099
  disabled: !Me,
2121
2100
  size: "small",
2122
2101
  icon: "moreVert",
2123
2102
  label: e._({ id: "7L01XJ" })
2124
2103
  })
2125
- }), Me && /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(m, {
2104
+ }), Me && /*#__PURE__*/ F(E, { children: /*#__PURE__*/ F(v, {
2126
2105
  disabled: !Me,
2127
- label: t._(e._({
2106
+ label: n._(e._({
2128
2107
  id: "dBrBc5",
2129
2108
  values: { selectedCount: Ne }
2130
2109
  })),
2131
- onClick: () => b(!0)
2110
+ onClick: () => y(!0)
2132
2111
  }) })]
2133
2112
  })]
2134
2113
  }), /*#__PURE__*/ I("div", {
2135
2114
  className: "text-theme-light flex items-center gap-1",
2136
2115
  "data-testid": "containers-info-block",
2137
2116
  children: [
2138
- Ie ? /*#__PURE__*/ F(H, {
2117
+ Ie ? /*#__PURE__*/ F(U, {
2139
2118
  id: "8uPTwT",
2140
2119
  values: {
2141
2120
  filteredCount: Fe,
2142
2121
  totalCount: Pe
2143
2122
  }
2144
- }) : /*#__PURE__*/ F(H, {
2123
+ }) : /*#__PURE__*/ F(U, {
2145
2124
  id: "ywe1H/",
2146
2125
  values: { totalCount: Pe }
2147
2126
  }),
2148
2127
  De > 0 && /*#__PURE__*/ I(P, { children: [/*#__PURE__*/ F("span", { children: "," }), /*#__PURE__*/ I("span", { children: [
2149
- /*#__PURE__*/ F(H, { id: "kKK8AH" }),
2128
+ /*#__PURE__*/ F(U, { id: "kKK8AH" }),
2150
2129
  " ",
2151
2130
  /*#__PURE__*/ F("span", {
2152
2131
  className: "text-theme-default font-semibold",
@@ -2154,8 +2133,8 @@ var ge = (e, t) => ({
2154
2133
  })
2155
2134
  ] })] }),
2156
2135
  /*#__PURE__*/ F(Oe, {
2157
- serviceInfo: Y,
2158
- accountInfo: fe
2136
+ serviceInfo: X,
2137
+ accountInfo: de
2159
2138
  })
2160
2139
  ]
2161
2140
  })]
@@ -2163,31 +2142,31 @@ var ge = (e, t) => ({
2163
2142
  ]
2164
2143
  }),
2165
2144
  /*#__PURE__*/ F(he, {
2166
- containers: X,
2167
- createModalOpen: p,
2168
- setCreateModalOpen: h,
2169
- maxContainerNameLength: Y?.swift?.max_container_name_length,
2170
- onCreateSuccess: W,
2171
- onCreateError: ne,
2172
- onEmptySuccess: re,
2173
- onEmptyError: G,
2174
- onDeleteSuccess: ie,
2175
- onDeleteError: K,
2176
- onPropertiesSuccess: ae,
2177
- onPropertiesError: oe,
2178
- onAclSuccess: se,
2179
- onAclError: ce,
2180
- selectedContainers: x,
2145
+ containers: me,
2146
+ createModalOpen: h,
2147
+ setCreateModalOpen: g,
2148
+ maxContainerNameLength: X?.swift?.max_container_name_length,
2149
+ onCreateSuccess: G,
2150
+ onCreateError: te,
2151
+ onEmptySuccess: ne,
2152
+ onEmptyError: K,
2153
+ onDeleteSuccess: re,
2154
+ onDeleteError: q,
2155
+ onPropertiesSuccess: ie,
2156
+ onPropertiesError: ae,
2157
+ onAclSuccess: oe,
2158
+ onAclError: se,
2159
+ selectedContainers: b,
2181
2160
  setSelectedContainers: S,
2182
2161
  hasAnyBulkAction: !0
2183
2162
  }),
2184
2163
  /*#__PURE__*/ F(Ae, {
2185
- isOpen: g,
2164
+ isOpen: _,
2186
2165
  containers: je,
2187
- onClose: () => b(!1),
2188
- onComplete: le
2166
+ onClose: () => y(!1),
2167
+ onComplete: ce
2189
2168
  }),
2190
- w && /*#__PURE__*/ F(s, {
2169
+ w && /*#__PURE__*/ F(i, {
2191
2170
  ...w,
2192
2171
  className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
2193
2172
  })
@@ -2204,117 +2183,117 @@ var ge = (e, t) => ({
2204
2183
  "--x-s3",
2205
2184
  "--table-s3"
2206
2185
  ], Ie = ({ isOpen: e, onClose: t, onSuccess: n, onError: r }) => {
2207
- let { i18n: i, _: a } = U(), o = N(), [s, c] = B(""), [l, u] = B(null), [d, p] = B(!1), m = O.useUtils(), h = O.storage.ceph.containers.create.useMutation({
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({
2208
2187
  onSuccess: () => {
2209
- m.storage.ceph.containers.list.invalidate();
2210
- let e = s.trim();
2188
+ h.storage.ceph.containers.list.invalidate();
2189
+ let e = c.trim();
2211
2190
  n?.(e);
2212
2191
  },
2213
2192
  onError: (e) => {
2214
- r?.(s.trim(), e.message);
2193
+ r?.(c.trim(), e.message);
2215
2194
  },
2216
2195
  onSettled: () => {
2217
- g();
2196
+ _();
2218
2197
  }
2219
- }), g = () => {
2220
- c(""), u(null), p(!1), h.reset(), t();
2221
- }, _ = (e) => {
2198
+ }), _ = () => {
2199
+ l(""), f(null), m(!1), g.reset(), t();
2200
+ }, v = (e) => {
2222
2201
  let t = e.trim();
2223
- if (!t) return u(i._({ id: "48bMai" })), !1;
2224
- if (t.length < 3) return u(i._({ id: "gjop1H" })), !1;
2225
- if (t.length > 63) return u(i._({ id: "is0Bhk" })), !1;
2226
- if (!Me.test(t)) return u(i._({ id: "IQldU4" })), !1;
2227
- if (!/^[a-z0-9]/.test(t) || !/[a-z0-9]$/.test(t)) return u(i._({ id: "VG2a+x" })), !1;
2228
- if (t.includes("..")) return u(i._({ id: "V8/eES" })), !1;
2229
- if (Ne.test(t)) return u(i._({ id: "W8Rb/w" })), !1;
2230
- for (let e of Pe) if (t.startsWith(e)) return u(i._({
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._({
2231
2210
  id: "B2SpR8",
2232
2211
  values: { prefix: e }
2233
2212
  })), !1;
2234
- for (let e of Fe) if (t.endsWith(e)) return u(i._({
2213
+ for (let e of Fe) if (t.endsWith(e)) return f(i._({
2235
2214
  id: "QRlXaL",
2236
2215
  values: { suffix: e }
2237
2216
  })), !1;
2238
- return u(null), !0;
2239
- }, v = (e) => {
2217
+ return f(null), !0;
2218
+ }, y = (e) => {
2240
2219
  let t = e.target.value;
2241
- c(t), l && _(t);
2242
- }, y = () => {
2243
- _(s) && h.mutate({
2220
+ l(t), d && v(t);
2221
+ }, b = () => {
2222
+ v(c) && g.mutate({
2244
2223
  project_id: o,
2245
- bucketName: s.trim(),
2246
- enableVersioning: d
2224
+ bucketName: c.trim(),
2225
+ enableVersioning: p
2247
2226
  });
2248
2227
  };
2249
2228
  return e ? /*#__PURE__*/ F(w, {
2250
2229
  title: i._({ id: "HiDAFk" }),
2251
2230
  open: e,
2252
- onCancel: g,
2231
+ onCancel: _,
2253
2232
  confirmButtonLabel: i._({ id: "hYgDIe" }),
2254
- onConfirm: y,
2233
+ onConfirm: b,
2255
2234
  cancelButtonLabel: i._({ id: "dEgA5A" }),
2256
2235
  size: "small",
2257
- disableConfirmButton: h.isPending || !s.trim(),
2258
- children: /*#__PURE__*/ I(C, {
2236
+ disableConfirmButton: g.isPending || !c.trim(),
2237
+ children: /*#__PURE__*/ I(s, {
2259
2238
  direction: "vertical",
2260
2239
  gap: "6",
2261
2240
  children: [
2262
2241
  /*#__PURE__*/ F("p", {
2263
2242
  className: "text-theme-default",
2264
- children: /*#__PURE__*/ F(H, { id: "ASJMIw" })
2243
+ children: /*#__PURE__*/ F(U, { id: "ASJMIw" })
2265
2244
  }),
2266
- /*#__PURE__*/ F(f, {
2245
+ /*#__PURE__*/ F(u, {
2267
2246
  label: i._({ id: "NNpgo3" }),
2268
2247
  required: !0,
2269
- value: s,
2270
- onChange: v,
2248
+ value: c,
2249
+ onChange: y,
2271
2250
  onKeyDown: (e) => {
2272
- e.key === "Enter" && y();
2251
+ e.key === "Enter" && b();
2273
2252
  },
2274
- invalid: !!l,
2275
- errortext: l || void 0,
2276
- disabled: h.isPending,
2253
+ invalid: !!d,
2254
+ errortext: d || void 0,
2255
+ disabled: g.isPending,
2277
2256
  autoFocus: !0,
2278
2257
  placeholder: i._({ id: "yDHGP+" })
2279
2258
  }),
2280
- /*#__PURE__*/ F(D, {
2259
+ /*#__PURE__*/ F(C, {
2281
2260
  label: i._({ id: "ifQSTI" }),
2282
2261
  helptext: i._({ id: "WM+Nm7" }),
2283
- checked: d,
2284
- onChange: (e) => p(e.target.checked),
2285
- disabled: h.isPending
2262
+ checked: p,
2263
+ onChange: (e) => m(e.target.checked),
2264
+ disabled: g.isPending
2286
2265
  })
2287
2266
  ]
2288
2267
  })
2289
2268
  }) : null;
2290
- }, Le = ({ isOpen: e, bucket: t, onClose: r, onSuccess: i, onError: a }) => {
2291
- let { i18n: o, _: s } = U(), c = N(), [l, u] = B(""), [d, p] = B(null), [m, h] = B(!1), g = O.useUtils(), v = () => {
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 = () => {
2292
2271
  t && navigator.clipboard.writeText(t.name).then(() => {
2293
- h(!0), setTimeout(() => h(!1), 2e3);
2272
+ v(!0), setTimeout(() => v(!1), 2e3);
2294
2273
  });
2295
- }, y = O.storage.ceph.objects.deleteAll.useMutation({ onSettled: () => {
2296
- g.storage.ceph.containers.list.invalidate(), x();
2297
- } }), x = () => {
2298
- u(""), p(null), h(!1), y.reset(), r();
2299
- }, S = (e) => {
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) => {
2300
2279
  let t = e.target.value;
2301
- u(t), d && p(null);
2280
+ d(t), f && p(null);
2302
2281
  }, T = () => {
2303
2282
  if (!t) return;
2304
2283
  if (l.trim() !== t.name) {
2305
- p(o._({ id: "wxVsr5" }));
2284
+ p(a._({ id: "wxVsr5" }));
2306
2285
  return;
2307
2286
  }
2308
2287
  let e = t.name;
2309
- y.mutate({
2288
+ x.mutate({
2310
2289
  project_id: c,
2311
2290
  containerName: e
2312
2291
  }, {
2313
2292
  onSuccess: (t) => {
2314
- i?.(e, t);
2293
+ r?.(e, t);
2315
2294
  },
2316
2295
  onError: (t) => {
2317
- a?.(e, t.message);
2296
+ i?.(e, t.message);
2318
2297
  }
2319
2298
  });
2320
2299
  }, E = (e) => {
@@ -2323,34 +2302,34 @@ var ge = (e, t) => ({
2323
2302
  if (!e || !t) return null;
2324
2303
  let D = t.count === 0, k = t.count, A = t.name;
2325
2304
  return /*#__PURE__*/ F(w, {
2326
- title: o._({ id: "CfKRC1" }),
2305
+ title: a._({ id: "CfKRC1" }),
2327
2306
  open: e,
2328
- onCancel: x,
2329
- confirmButtonLabel: D ? void 0 : o._({ id: "N2S1rs" }),
2307
+ onCancel: S,
2308
+ confirmButtonLabel: D ? void 0 : a._({ id: "N2S1rs" }),
2330
2309
  confirmButtonVariant: "primary-danger",
2331
2310
  onConfirm: D ? void 0 : T,
2332
- cancelButtonLabel: D ? void 0 : o._({ id: "dEgA5A" }),
2333
- modalFooter: D ? /*#__PURE__*/ F(n, {
2311
+ cancelButtonLabel: D ? void 0 : a._({ id: "dEgA5A" }),
2312
+ modalFooter: D ? /*#__PURE__*/ F(g, {
2334
2313
  className: "flex justify-end",
2335
- children: /*#__PURE__*/ F(b, { children: /*#__PURE__*/ F(_, {
2314
+ children: /*#__PURE__*/ F(_, { children: /*#__PURE__*/ F(m, {
2336
2315
  variant: "primary",
2337
- onClick: x,
2316
+ onClick: S,
2338
2317
  "data-testid": "empty-info-close-button",
2339
- children: /*#__PURE__*/ F(H, { id: "yz7wBu" })
2318
+ children: /*#__PURE__*/ F(U, { id: "yz7wBu" })
2340
2319
  }) })
2341
2320
  }) : void 0,
2342
2321
  size: "small",
2343
- disableConfirmButton: y.isPending || !D && l.trim() !== t.name,
2322
+ disableConfirmButton: x.isPending || !D && l.trim() !== t.name,
2344
2323
  children: D ? /*#__PURE__*/ F("p", {
2345
2324
  className: "text-theme-default py-2",
2346
- children: /*#__PURE__*/ F(H, { id: "tL9it8" })
2347
- }) : /*#__PURE__*/ I(C, {
2325
+ children: /*#__PURE__*/ F(U, { id: "tL9it8" })
2326
+ }) : /*#__PURE__*/ I(s, {
2348
2327
  direction: "vertical",
2349
2328
  gap: "6",
2350
2329
  children: [
2351
2330
  /*#__PURE__*/ F("p", {
2352
2331
  className: "text-theme-default",
2353
- children: /*#__PURE__*/ F(H, {
2332
+ children: /*#__PURE__*/ F(U, {
2354
2333
  id: "8HrqL8",
2355
2334
  values: {
2356
2335
  bucketCount: k,
@@ -2359,157 +2338,157 @@ var ge = (e, t) => ({
2359
2338
  components: { 0: /*#__PURE__*/ F("strong", {}) }
2360
2339
  })
2361
2340
  }),
2362
- /*#__PURE__*/ I(C, {
2341
+ /*#__PURE__*/ I(s, {
2363
2342
  direction: "vertical",
2364
2343
  gap: "2",
2365
2344
  children: [/*#__PURE__*/ I("div", {
2366
2345
  className: "flex items-center justify-between",
2367
2346
  children: [/*#__PURE__*/ F("span", {
2368
2347
  className: "text-theme-light text-sm",
2369
- children: /*#__PURE__*/ F(H, { id: "FrLdVI" })
2370
- }), /*#__PURE__*/ F(_, {
2348
+ children: /*#__PURE__*/ F(U, { id: "FrLdVI" })
2349
+ }), /*#__PURE__*/ F(m, {
2371
2350
  size: "small",
2372
2351
  variant: "subdued",
2373
- onClick: v,
2374
- icon: m ? "check" : "contentCopy",
2375
- label: m ? o._({ id: "6V3Ea3" }) : o._({ id: "he3ygx" })
2352
+ onClick: b,
2353
+ icon: h ? "check" : "contentCopy",
2354
+ label: h ? a._({ id: "6V3Ea3" }) : a._({ id: "he3ygx" })
2376
2355
  })]
2377
2356
  }), /*#__PURE__*/ F("div", {
2378
2357
  className: "bg-theme-background-lvl-1 rounded p-2 text-sm",
2379
2358
  children: t.name
2380
2359
  })]
2381
2360
  }),
2382
- /*#__PURE__*/ F(f, {
2383
- label: o._({ id: "dEHa3L" }),
2361
+ /*#__PURE__*/ F(u, {
2362
+ label: a._({ id: "dEHa3L" }),
2384
2363
  required: !0,
2385
2364
  value: l,
2386
- onChange: S,
2365
+ onChange: C,
2387
2366
  onKeyDown: E,
2388
- invalid: !!d,
2389
- errortext: d || void 0,
2390
- disabled: y.isPending,
2367
+ invalid: !!f,
2368
+ errortext: f || void 0,
2369
+ disabled: x.isPending,
2391
2370
  placeholder: t.name,
2392
2371
  autoFocus: !0
2393
2372
  })
2394
2373
  ]
2395
2374
  })
2396
2375
  });
2397
- }, Re = ({ isOpen: e, bucket: t, onClose: r, onSuccess: i, onError: a }) => {
2398
- let { i18n: o, _: s } = U(), c = N(), [l, d] = B(""), [p, m] = B(null), [h, g] = B(!1), v = () => {
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 = () => {
2399
2378
  t && navigator.clipboard.writeText(t.name).then(() => {
2400
- g(!0), setTimeout(() => g(!1), 2e3);
2379
+ y(!0), setTimeout(() => y(!1), 2e3);
2401
2380
  });
2402
- }, y = O.useUtils(), { data: x, isLoading: S, error: T } = O.storage.ceph.objects.list.useQuery({
2403
- project_id: c ?? "",
2381
+ }, x = O.useUtils(), { data: S, isLoading: C, error: T } = O.storage.ceph.objects.list.useQuery({
2382
+ project_id: l ?? "",
2404
2383
  containerName: t?.name ?? "",
2405
2384
  maxKeys: 1
2406
2385
  }, { enabled: e && t !== null }), E = O.storage.ceph.containers.delete.useMutation({ onSettled: () => {
2407
- y.storage.ceph.containers.list.invalidate(), D();
2386
+ x.storage.ceph.containers.list.invalidate(), D();
2408
2387
  } });
2409
- ee(() => {
2410
- e || (d(""), m(null), E.reset());
2388
+ z(() => {
2389
+ e || (f(""), h(null), E.reset());
2411
2390
  }, [e, t?.name]);
2412
2391
  let D = () => {
2413
- d(""), m(null), E.reset(), r();
2392
+ f(""), h(null), E.reset(), n();
2414
2393
  }, k = (e) => {
2415
2394
  let t = e.target.value;
2416
- d(t), p && m(null);
2395
+ f(t), p && h(null);
2417
2396
  }, A = () => {
2418
2397
  if (!t || T) return;
2419
- if (l.trim() !== t.name) {
2420
- m(o._({ id: "wxVsr5" }));
2398
+ if (d.trim() !== t.name) {
2399
+ h(a._({ id: "wxVsr5" }));
2421
2400
  return;
2422
2401
  }
2423
2402
  let e = t.name;
2424
2403
  E.mutate({
2425
- project_id: c,
2404
+ project_id: l,
2426
2405
  bucketName: e
2427
2406
  }, {
2428
2407
  onSuccess: () => {
2429
- i?.(e);
2408
+ r?.(e);
2430
2409
  },
2431
2410
  onError: (t) => {
2432
- a?.(e, t.message);
2411
+ i?.(e, t.message);
2433
2412
  }
2434
2413
  });
2435
2414
  }, j = (e) => {
2436
2415
  e.key === "Enter" && A();
2437
2416
  };
2438
2417
  if (!e || !t) return null;
2439
- let M = x?.objects?.length ?? 0, L = M > 0, R = T?.message;
2418
+ let M = S?.objects?.length ?? 0, L = M > 0, R = T?.message;
2440
2419
  return /*#__PURE__*/ F(w, {
2441
- title: o._({ id: "IwlPLb" }),
2420
+ title: a._({ id: "IwlPLb" }),
2442
2421
  open: e,
2443
2422
  onCancel: D,
2444
- confirmButtonLabel: L ? void 0 : o._({ id: "IwlPLb" }),
2423
+ confirmButtonLabel: L ? void 0 : a._({ id: "IwlPLb" }),
2445
2424
  confirmButtonVariant: L ? void 0 : "primary-danger",
2446
2425
  onConfirm: L ? void 0 : A,
2447
- cancelButtonLabel: L ? void 0 : o._({ id: "dEgA5A" }),
2448
- modalFooter: L ? /*#__PURE__*/ F(n, {
2426
+ cancelButtonLabel: L ? void 0 : a._({ id: "dEgA5A" }),
2427
+ modalFooter: L ? /*#__PURE__*/ F(g, {
2449
2428
  className: "flex justify-end",
2450
- children: /*#__PURE__*/ F(b, { children: /*#__PURE__*/ F(_, {
2429
+ children: /*#__PURE__*/ F(_, { children: /*#__PURE__*/ F(m, {
2451
2430
  variant: "primary",
2452
2431
  onClick: D,
2453
2432
  "data-testid": "delete-has-objects-close-button",
2454
- children: /*#__PURE__*/ F(H, { id: "yz7wBu" })
2433
+ children: /*#__PURE__*/ F(U, { id: "yz7wBu" })
2455
2434
  }) })
2456
2435
  }) : void 0,
2457
2436
  size: "small",
2458
- disableConfirmButton: E.isPending || S || !!T || l.trim() !== t.name,
2459
- children: /*#__PURE__*/ I(C, {
2437
+ disableConfirmButton: E.isPending || C || !!T || d.trim() !== t.name,
2438
+ children: /*#__PURE__*/ I(s, {
2460
2439
  direction: "vertical",
2461
2440
  gap: "6",
2462
2441
  children: [T && /*#__PURE__*/ F("p", {
2463
2442
  className: "text-theme-error",
2464
2443
  role: "alert",
2465
2444
  "aria-live": "assertive",
2466
- children: /*#__PURE__*/ F(H, {
2445
+ children: /*#__PURE__*/ F(U, {
2467
2446
  id: "MJLqeY",
2468
2447
  values: { errorMessage: R }
2469
2448
  })
2470
- }), S ? /*#__PURE__*/ I(C, {
2449
+ }), C ? /*#__PURE__*/ I(s, {
2471
2450
  direction: "horizontal",
2472
2451
  gap: "2",
2473
2452
  alignment: "center",
2474
- children: [/*#__PURE__*/ F(u, {}), /*#__PURE__*/ F("span", {
2453
+ children: [/*#__PURE__*/ F(c, {}), /*#__PURE__*/ F("span", {
2475
2454
  className: "text-juno-grey-light-1 text-sm",
2476
- children: /*#__PURE__*/ F(H, { id: "rPuPb+" })
2455
+ children: /*#__PURE__*/ F(U, { id: "rPuPb+" })
2477
2456
  })]
2478
2457
  }) : L ? /*#__PURE__*/ F("p", {
2479
2458
  className: "text-theme-default",
2480
- children: /*#__PURE__*/ F(H, {
2459
+ children: /*#__PURE__*/ F(U, {
2481
2460
  id: "50Piuj",
2482
2461
  values: { actualObjectCount: M }
2483
2462
  })
2484
2463
  }) : /*#__PURE__*/ I(P, { children: [
2485
2464
  /*#__PURE__*/ F("p", {
2486
2465
  className: "text-theme-default",
2487
- children: /*#__PURE__*/ F(H, { id: "/pOQrn" })
2466
+ children: /*#__PURE__*/ F(U, { id: "/pOQrn" })
2488
2467
  }),
2489
- /*#__PURE__*/ I(C, {
2468
+ /*#__PURE__*/ I(s, {
2490
2469
  direction: "vertical",
2491
2470
  gap: "2",
2492
2471
  children: [/*#__PURE__*/ I("div", {
2493
2472
  className: "flex items-center justify-between",
2494
2473
  children: [/*#__PURE__*/ F("span", {
2495
2474
  className: "text-theme-light text-sm",
2496
- children: /*#__PURE__*/ F(H, { id: "No++00" })
2497
- }), /*#__PURE__*/ F(_, {
2475
+ children: /*#__PURE__*/ F(U, { id: "No++00" })
2476
+ }), /*#__PURE__*/ F(m, {
2498
2477
  size: "small",
2499
2478
  variant: "subdued",
2500
- onClick: v,
2501
- icon: h ? "check" : "contentCopy",
2502
- label: h ? o._({ id: "6V3Ea3" }) : o._({ id: "he3ygx" })
2479
+ onClick: b,
2480
+ icon: v ? "check" : "contentCopy",
2481
+ label: v ? a._({ id: "6V3Ea3" }) : a._({ id: "he3ygx" })
2503
2482
  })]
2504
2483
  }), /*#__PURE__*/ F("div", {
2505
2484
  className: "bg-theme-background-lvl-1 rounded p-2 text-sm",
2506
2485
  children: t.name
2507
2486
  })]
2508
2487
  }),
2509
- /*#__PURE__*/ F(f, {
2510
- label: o._({ id: "dEHa3L" }),
2488
+ /*#__PURE__*/ F(u, {
2489
+ label: a._({ id: "dEHa3L" }),
2511
2490
  required: !0,
2512
- value: l,
2491
+ value: d,
2513
2492
  onChange: k,
2514
2493
  onKeyDown: j,
2515
2494
  invalid: !!p,
@@ -2520,92 +2499,94 @@ var ge = (e, t) => ({
2520
2499
  ] })]
2521
2500
  })
2522
2501
  });
2523
- }, ze = ({ containers: e, createModalOpen: t, setCreateModalOpen: n, onCreateSuccess: r, onCreateError: s, onEmptySuccess: l, onEmptyError: u, onDeleteSuccess: d, onDeleteError: f, selectedContainers: h, setSelectedContainers: g, hasAnyBulkAction: _ = !0 }) => {
2524
- let { projectId: y, provider: b } = V({ strict: !1 }), { i18n: x, _: S } = U(), C = te(), w = z(null), [T, E] = B(0), [O, k] = B(null), [A, j] = B(null);
2525
- ee(() => {
2526
- w.current && E(w.current.offsetWidth - w.current.clientWidth);
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);
2504
+ z(() => {
2505
+ w.current && O(w.current.offsetWidth - w.current.clientWidth);
2527
2506
  }, [e.length]);
2528
- let N = (e) => {
2507
+ let L = (e) => {
2529
2508
  try {
2530
2509
  return new Date(e).toLocaleString();
2531
2510
  } catch {
2532
- return x._({ id: "fj5byd" });
2511
+ return b._({ id: "fj5byd" });
2533
2512
  }
2534
- }, L = re({
2513
+ }, R = ne({
2535
2514
  count: e.length,
2536
2515
  getScrollElement: () => w.current,
2537
2516
  estimateSize: () => 48,
2538
2517
  overscan: 10
2539
- }), R = new Set(h), W = e.length > 0 && e.every((e) => R.has(e.name)), ne = () => {
2540
- g(W ? [] : e.map((e) => e.name));
2541
- }, G = (e) => {
2542
- h.includes(e) ? g(h.filter((t) => t !== e)) : g([...h, e]);
2518
+ }), G = new Set(f), te = e.length > 0 && e.every((e) => G.has(e.name)), K = () => {
2519
+ let t = e.map((e) => e.name);
2520
+ p(te ? f.filter((e) => !t.includes(e)) : [...new Set([...f, ...t])]);
2521
+ }, re = (e) => {
2522
+ f.includes(e) ? p(f.filter((t) => t !== e)) : p([...f, e]);
2543
2523
  };
2544
- if (!e || e.length === 0) return /*#__PURE__*/ F(p, {
2524
+ if (!e || e.length === 0) return /*#__PURE__*/ F(y, {
2545
2525
  columns: 4,
2546
- className: "containers",
2547
- "data-testid": "no-containers",
2548
- children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ F(c, {
2526
+ className: "buckets",
2527
+ "data-testid": "no-buckets",
2528
+ children: /*#__PURE__*/ F(D, { children: /*#__PURE__*/ F(r, {
2549
2529
  colSpan: 4,
2550
2530
  children: /*#__PURE__*/ I("div", {
2551
2531
  className: "py-8 text-center",
2552
2532
  children: [/*#__PURE__*/ F("h3", {
2553
2533
  className: "text-lg font-semibold",
2554
- children: /*#__PURE__*/ F(H, { id: "ih2lfP" })
2534
+ children: /*#__PURE__*/ F(U, { id: "ih2lfP" })
2555
2535
  }), /*#__PURE__*/ F("p", {
2556
2536
  className: "text-theme-light mt-2",
2557
- children: /*#__PURE__*/ F(H, { id: "emkxJa" })
2537
+ children: /*#__PURE__*/ F(U, { id: "emkxJa" })
2558
2538
  })]
2559
2539
  })
2560
2540
  }) })
2561
2541
  });
2562
- let ie = _ ? 6 : 5, K = _ ? "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 = 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";
2563
2543
  return /*#__PURE__*/ I(P, { children: [
2564
2544
  /*#__PURE__*/ I("div", {
2565
2545
  className: "relative",
2566
2546
  children: [/*#__PURE__*/ F("div", {
2567
2547
  style: { paddingRight: `${T}px` },
2568
- children: /*#__PURE__*/ F(p, {
2569
- columns: ie,
2570
- gridColumnTemplate: K,
2571
- className: "containers",
2572
- "data-testid": "containers-table-header",
2573
- children: /*#__PURE__*/ I(o, { children: [
2574
- _ && /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(D, {
2575
- checked: W,
2576
- onChange: ne,
2577
- "data-testid": "select-all-containers"
2548
+ children: /*#__PURE__*/ F(y, {
2549
+ columns: q,
2550
+ gridColumnTemplate: ie,
2551
+ className: "buckets",
2552
+ "data-testid": "buckets-table-header",
2553
+ children: /*#__PURE__*/ I(D, { children: [
2554
+ m && /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(C, {
2555
+ checked: te,
2556
+ onChange: K,
2557
+ "data-testid": "select-all-buckets"
2578
2558
  }) }),
2579
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "BTsbBe" }) }),
2580
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "sxbP3b" }) }),
2581
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "sjMCOP" }) }),
2582
- /*#__PURE__*/ F(a, { children: /*#__PURE__*/ F(H, { id: "hgpMHD" }) }),
2583
- /*#__PURE__*/ F(a, { style: { marginRight: `-${T}px` } })
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` } })
2584
2564
  ] })
2585
2565
  })
2586
2566
  }), /*#__PURE__*/ F("div", {
2587
2567
  ref: w,
2588
2568
  className: "overflow-auto",
2589
2569
  style: { height: "calc(100vh - 490px)" },
2590
- "data-testid": "containers-table-body",
2570
+ "data-testid": "buckets-table-body",
2591
2571
  children: /*#__PURE__*/ F("div", {
2592
2572
  style: {
2593
- height: `${L.getTotalSize()}px`,
2573
+ height: `${R.getTotalSize()}px`,
2594
2574
  width: "100%",
2595
2575
  position: "relative"
2596
2576
  },
2597
- children: L.getVirtualItems().map((t) => {
2598
- let n = e[t.index], r = h.includes(n.name), a = () => C({
2599
- to: "/projects/$projectId/storage/$provider/containers/$containerName/objects",
2577
+ children: R.getVirtualItems().map((t) => {
2578
+ let n = e[t.index], i = f.includes(n.name), a = () => S({
2579
+ to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
2600
2580
  params: {
2601
- projectId: y ?? "",
2602
- provider: b ?? "ceph",
2581
+ projectId: h ?? "",
2582
+ provider: g ?? "ceph",
2583
+ storageType: _ ?? "buckets",
2603
2584
  containerName: n.name
2604
2585
  }
2605
2586
  });
2606
2587
  return /*#__PURE__*/ I("div", {
2607
2588
  "data-index": t.index,
2608
- ref: L.measureElement,
2589
+ ref: R.measureElement,
2609
2590
  className: "juno-datagrid group hover:bg-theme-background-lvl-1 cursor-pointer",
2610
2591
  style: {
2611
2592
  position: "absolute",
@@ -2614,10 +2595,10 @@ var ge = (e, t) => ({
2614
2595
  width: "100%",
2615
2596
  transform: `translateY(${t.start}px)`,
2616
2597
  display: "grid",
2617
- gridTemplateColumns: K,
2598
+ gridTemplateColumns: ie,
2618
2599
  alignItems: "stretch"
2619
2600
  },
2620
- "data-testid": `container-row-${n.name}`,
2601
+ "data-testid": `bucket-row-${n.name}`,
2621
2602
  role: "link",
2622
2603
  tabIndex: 0,
2623
2604
  onClick: a,
@@ -2625,18 +2606,18 @@ var ge = (e, t) => ({
2625
2606
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
2626
2607
  },
2627
2608
  children: [
2628
- _ && /*#__PURE__*/ F(c, {
2609
+ m && /*#__PURE__*/ F(r, {
2629
2610
  onClick: (e) => e.stopPropagation(),
2630
2611
  onKeyDown: (e) => {
2631
2612
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
2632
2613
  },
2633
- children: /*#__PURE__*/ F(D, {
2634
- checked: r,
2635
- onChange: () => G(n.name),
2636
- "data-testid": `select-container-${n.name}`
2614
+ children: /*#__PURE__*/ F(C, {
2615
+ checked: i,
2616
+ onChange: () => re(n.name),
2617
+ "data-testid": `select-bucket-${n.name}`
2637
2618
  })
2638
2619
  }),
2639
- /*#__PURE__*/ F(c, {
2620
+ /*#__PURE__*/ F(r, {
2640
2621
  className: "min-w-0 overflow-hidden",
2641
2622
  children: /*#__PURE__*/ F("span", {
2642
2623
  className: "block truncate",
@@ -2644,18 +2625,18 @@ var ge = (e, t) => ({
2644
2625
  children: n.name
2645
2626
  })
2646
2627
  }),
2647
- /*#__PURE__*/ F(c, { children: n.count.toLocaleString() }),
2648
- /*#__PURE__*/ F(c, { children: N(n.last_modified || n.creationDate || "") }),
2649
- /*#__PURE__*/ F(c, { children: M(n.bytes) }),
2650
- /*#__PURE__*/ F(c, {
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, {
2651
2632
  onClick: (e) => e.stopPropagation(),
2652
- children: /*#__PURE__*/ F(v, { children: /*#__PURE__*/ I(i, { children: [/*#__PURE__*/ F(m, {
2653
- label: x._({ id: "N2S1rs" }),
2654
- onClick: () => k(n),
2633
+ children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ I(E, { children: [/*#__PURE__*/ F(v, {
2634
+ label: b._({ id: "N2S1rs" }),
2635
+ onClick: () => A(n),
2655
2636
  "data-testid": `empty-action-${n.name}`
2656
- }), /*#__PURE__*/ F(m, {
2657
- label: x._({ id: "cnGeoo" }),
2658
- onClick: () => j(n),
2637
+ }), /*#__PURE__*/ F(v, {
2638
+ label: b._({ id: "cnGeoo" }),
2639
+ onClick: () => N(n),
2659
2640
  "data-testid": `delete-action-${n.name}`
2660
2641
  })] }) })
2661
2642
  })
@@ -2667,30 +2648,30 @@ var ge = (e, t) => ({
2667
2648
  }),
2668
2649
  /*#__PURE__*/ F(Ie, {
2669
2650
  isOpen: t,
2670
- onClose: () => n(!1),
2671
- onSuccess: r,
2651
+ onClose: () => i(!1),
2652
+ onSuccess: a,
2672
2653
  onError: s
2673
2654
  }),
2674
2655
  /*#__PURE__*/ F(Le, {
2675
- isOpen: O !== null,
2676
- bucket: O,
2677
- onClose: () => k(null),
2678
- onSuccess: l,
2679
- onError: u
2656
+ isOpen: k !== null,
2657
+ bucket: k,
2658
+ onClose: () => A(null),
2659
+ onSuccess: c,
2660
+ onError: l
2680
2661
  }),
2681
2662
  /*#__PURE__*/ F(Re, {
2682
- isOpen: A !== null,
2683
- bucket: A,
2684
- onClose: () => j(null),
2685
- onSuccess: d,
2686
- onError: f
2663
+ isOpen: j !== null,
2664
+ bucket: j,
2665
+ onClose: () => N(null),
2666
+ onSuccess: u,
2667
+ onError: d
2687
2668
  })
2688
2669
  ] });
2689
2670
  };
2690
2671
  //#endregion
2691
- //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Containers/ContainerToastNotifications.tsx
2672
+ //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/BucketToastNotifications.tsx
2692
2673
  function Be({ title: e, description: t }) {
2693
- return /*#__PURE__*/ I(C, {
2674
+ return /*#__PURE__*/ I(s, {
2694
2675
  direction: "vertical",
2695
2676
  gap: "1.5",
2696
2677
  children: [/*#__PURE__*/ F("span", { children: e }), /*#__PURE__*/ F("span", {
@@ -2702,20 +2683,18 @@ function Be({ title: e, description: t }) {
2702
2683
  var Ve = (e, t) => ({
2703
2684
  variant: "success",
2704
2685
  children: /*#__PURE__*/ F(Be, {
2705
- title: /*#__PURE__*/ F(H, { id: "M3bysB" }),
2706
- description: /*#__PURE__*/ F(H, {
2686
+ title: /*#__PURE__*/ F(U, { id: "M3bysB" }),
2687
+ description: /*#__PURE__*/ F(U, {
2707
2688
  id: "VKCkZH",
2708
2689
  values: { bucketName: e }
2709
2690
  })
2710
2691
  }),
2711
- autoDismiss: !0,
2712
- autoDismissTimeout: t.autoDismissTimeout ?? 5e3,
2713
2692
  onDismiss: t.onDismiss
2714
2693
  }), He = (e, t, n) => ({
2715
2694
  variant: "error",
2716
2695
  children: /*#__PURE__*/ F(Be, {
2717
- title: /*#__PURE__*/ F(H, { id: "UaP7Th" }),
2718
- description: /*#__PURE__*/ F(H, {
2696
+ title: /*#__PURE__*/ F(U, { id: "UaP7Th" }),
2697
+ description: /*#__PURE__*/ F(U, {
2719
2698
  id: "boefwq",
2720
2699
  values: {
2721
2700
  bucketName: e,
@@ -2723,23 +2702,21 @@ var Ve = (e, t) => ({
2723
2702
  }
2724
2703
  })
2725
2704
  }),
2726
- autoDismiss: !0,
2727
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
2728
2705
  onDismiss: n.onDismiss
2729
2706
  }), Ue = (e, t, n) => ({
2730
2707
  variant: "success",
2731
2708
  children: /*#__PURE__*/ F(Be, {
2732
- title: /*#__PURE__*/ F(H, { id: "b95YH9" }),
2733
- description: t === 0 ? /*#__PURE__*/ F(H, {
2709
+ title: /*#__PURE__*/ F(U, { id: "b95YH9" }),
2710
+ description: t === 0 ? /*#__PURE__*/ F(U, {
2734
2711
  id: "8erw15",
2735
2712
  values: { bucketName: e }
2736
- }) : t === 1 ? /*#__PURE__*/ F(H, {
2713
+ }) : t === 1 ? /*#__PURE__*/ F(U, {
2737
2714
  id: "QpbWpf",
2738
2715
  values: {
2739
2716
  bucketName: e,
2740
2717
  deletedCount: t
2741
2718
  }
2742
- }) : /*#__PURE__*/ F(H, {
2719
+ }) : /*#__PURE__*/ F(U, {
2743
2720
  id: "JPWqr2",
2744
2721
  values: {
2745
2722
  bucketName: e,
@@ -2747,14 +2724,12 @@ var Ve = (e, t) => ({
2747
2724
  }
2748
2725
  })
2749
2726
  }),
2750
- autoDismiss: !0,
2751
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
2752
2727
  onDismiss: n.onDismiss
2753
2728
  }), We = (e, t, n) => ({
2754
2729
  variant: "error",
2755
2730
  children: /*#__PURE__*/ F(Be, {
2756
- title: /*#__PURE__*/ F(H, { id: "66YUKF" }),
2757
- description: /*#__PURE__*/ F(H, {
2731
+ title: /*#__PURE__*/ F(U, { id: "66YUKF" }),
2732
+ description: /*#__PURE__*/ F(U, {
2758
2733
  id: "t7ewhH",
2759
2734
  values: {
2760
2735
  bucketName: e,
@@ -2762,26 +2737,22 @@ var Ve = (e, t) => ({
2762
2737
  }
2763
2738
  })
2764
2739
  }),
2765
- autoDismiss: !0,
2766
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
2767
2740
  onDismiss: n.onDismiss
2768
2741
  }), Ge = (e, t) => ({
2769
2742
  variant: "success",
2770
2743
  children: /*#__PURE__*/ F(Be, {
2771
- title: /*#__PURE__*/ F(H, { id: "bHUarC" }),
2772
- description: /*#__PURE__*/ F(H, {
2744
+ title: /*#__PURE__*/ F(U, { id: "bHUarC" }),
2745
+ description: /*#__PURE__*/ F(U, {
2773
2746
  id: "hQdfmR",
2774
2747
  values: { bucketName: e }
2775
2748
  })
2776
2749
  }),
2777
- autoDismiss: !0,
2778
- autoDismissTimeout: t.autoDismissTimeout ?? 5e3,
2779
2750
  onDismiss: t.onDismiss
2780
2751
  }), Ke = (e, t, n) => ({
2781
2752
  variant: "error",
2782
2753
  children: /*#__PURE__*/ F(Be, {
2783
- title: /*#__PURE__*/ F(H, { id: "1NFtQz" }),
2784
- description: /*#__PURE__*/ F(H, {
2754
+ title: /*#__PURE__*/ F(U, { id: "1NFtQz" }),
2755
+ description: /*#__PURE__*/ F(U, {
2785
2756
  id: "CongmL",
2786
2757
  values: {
2787
2758
  bucketName: e,
@@ -2789,16 +2760,14 @@ var Ve = (e, t) => ({
2789
2760
  }
2790
2761
  })
2791
2762
  }),
2792
- autoDismiss: !0,
2793
- autoDismissTimeout: n.autoDismissTimeout ?? 5e3,
2794
2763
  onDismiss: n.onDismiss
2795
2764
  }), qe = (e, t, n, r) => {
2796
2765
  let i = n.length > 0, a = e + n.length, o = n.length;
2797
2766
  return {
2798
2767
  variant: i ? "warning" : "success",
2799
2768
  children: /*#__PURE__*/ F(Be, {
2800
- title: i ? /*#__PURE__*/ F(H, { id: "6fuDFZ" }) : /*#__PURE__*/ F(H, { id: "BOoOLQ" }),
2801
- description: i ? /*#__PURE__*/ F(H, {
2769
+ title: i ? /*#__PURE__*/ F(U, { id: "6fuDFZ" }) : /*#__PURE__*/ F(U, { id: "BOoOLQ" }),
2770
+ description: i ? /*#__PURE__*/ F(U, {
2802
2771
  id: "pD/2BQ",
2803
2772
  values: {
2804
2773
  emptiedCount: e,
@@ -2806,7 +2775,7 @@ var Ve = (e, t) => ({
2806
2775
  totalDeleted: t,
2807
2776
  errorsLength: o
2808
2777
  }
2809
- }) : /*#__PURE__*/ F(H, {
2778
+ }) : /*#__PURE__*/ F(U, {
2810
2779
  id: "YVLcyI",
2811
2780
  values: {
2812
2781
  emptiedCount: e,
@@ -2814,88 +2783,86 @@ var Ve = (e, t) => ({
2814
2783
  }
2815
2784
  })
2816
2785
  }),
2817
- autoDismiss: !i,
2818
- autoDismissTimeout: r.autoDismissTimeout ?? 5e3,
2819
2786
  onDismiss: r.onDismiss
2820
2787
  };
2821
- }, Je = 20, Ye = ({ isOpen: e, buckets: t, onClose: n, onComplete: r }) => {
2822
- let { i18n: i, _: a } = U(), o = N(), [s, c] = B(null), [l, d] = B(""), p = O.useUtils(), m = O.storage.ceph.objects.deleteAll.useMutation(), h = () => {
2823
- m.reset(), c(null), d(""), n();
2824
- }, g = async () => {
2825
- let e = 0, n = 0, i = [], a = t.length;
2826
- for (let r = 0; r < t.length; r++) {
2827
- c({
2828
- current: r + 1,
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();
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,
2829
2796
  total: a
2830
2797
  });
2831
- let s = t[r];
2798
+ let o = n[i];
2832
2799
  try {
2833
- let t = await m.mutateAsync({
2834
- project_id: o,
2835
- containerName: s.name
2800
+ let n = await g.mutateAsync({
2801
+ project_id: l,
2802
+ containerName: o.name
2836
2803
  });
2837
- n += t, e++;
2804
+ t += n, e++;
2838
2805
  } catch (e) {
2839
2806
  let t = e instanceof Error ? e.message : String(e);
2840
- i.push(`${s.name}: ${t}`);
2807
+ r.push(`${o.name}: ${t}`);
2841
2808
  }
2842
2809
  }
2843
- e > 0 && await p.storage.ceph.containers.list.invalidate(), r?.({
2810
+ e > 0 && await h.storage.ceph.containers.list.invalidate(), i?.({
2844
2811
  emptiedCount: e,
2845
- totalDeleted: n,
2846
- errors: i
2847
- }), h();
2812
+ totalDeleted: t,
2813
+ errors: r
2814
+ }), _();
2848
2815
  };
2849
- if (!e || t.length === 0) return null;
2850
- let _ = t.length, v = t.slice(0, Je), y = _ - v.length, b = m.isPending || s !== null, x = s?.current, S = s?.total, E = l === "empty";
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";
2851
2818
  return /*#__PURE__*/ F(w, {
2852
- title: /*#__PURE__*/ F(H, {
2819
+ title: /*#__PURE__*/ F(U, {
2853
2820
  id: "DWBWmW",
2854
- values: { totalCount: _ }
2821
+ values: { totalCount: y }
2855
2822
  }),
2856
- open: e,
2857
- onCancel: h,
2858
- confirmButtonLabel: b ? i._({ id: "s4Vnq2" }) : i._({ id: "N2S1rs" }),
2823
+ open: t,
2824
+ onCancel: _,
2825
+ confirmButtonLabel: S ? a._({ id: "s4Vnq2" }) : a._({ id: "N2S1rs" }),
2859
2826
  confirmButtonVariant: "primary-danger",
2860
- cancelButtonLabel: i._({ id: "dEgA5A" }),
2861
- onConfirm: g,
2862
- disableConfirmButton: b || !E,
2863
- disableCancelButton: b,
2864
- disableCloseButton: b,
2827
+ cancelButtonLabel: a._({ id: "dEgA5A" }),
2828
+ onConfirm: v,
2829
+ disableConfirmButton: S || !E,
2830
+ disableCancelButton: S,
2831
+ disableCloseButton: S,
2865
2832
  size: "small",
2866
- children: b ? /*#__PURE__*/ I(C, {
2833
+ children: S ? /*#__PURE__*/ I(s, {
2867
2834
  direction: "vertical",
2868
2835
  distribution: "center",
2869
2836
  alignment: "center",
2870
2837
  gap: "2",
2871
2838
  className: "py-4",
2872
- children: [/*#__PURE__*/ F(u, { variant: "primary" }), s && /*#__PURE__*/ F("p", {
2839
+ children: [/*#__PURE__*/ F(c, { variant: "primary" }), d && /*#__PURE__*/ F("p", {
2873
2840
  className: "text-theme-light text-sm",
2874
- children: /*#__PURE__*/ F(H, {
2841
+ children: /*#__PURE__*/ F(U, {
2875
2842
  id: "NW1XEL",
2876
2843
  values: {
2877
- progressCurrent: x,
2878
- progressTotal: S
2844
+ progressCurrent: C,
2845
+ progressTotal: T
2879
2846
  }
2880
2847
  })
2881
2848
  })]
2882
- }) : /*#__PURE__*/ I(C, {
2849
+ }) : /*#__PURE__*/ I(s, {
2883
2850
  direction: "vertical",
2884
2851
  gap: "4",
2885
2852
  children: [
2886
- /*#__PURE__*/ F(T, {
2853
+ /*#__PURE__*/ F(e, {
2887
2854
  variant: "danger",
2888
- children: /*#__PURE__*/ F(H, {
2855
+ children: /*#__PURE__*/ F(U, {
2889
2856
  id: "CtiFDz",
2890
- values: { totalCount: _ }
2857
+ values: { totalCount: y }
2891
2858
  })
2892
2859
  }),
2893
2860
  /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("p", {
2894
2861
  className: "text-theme-light mb-2 text-sm",
2895
- children: /*#__PURE__*/ F(H, { id: "Zshv0H" })
2862
+ children: /*#__PURE__*/ F(U, { id: "Zshv0H" })
2896
2863
  }), /*#__PURE__*/ I("ul", {
2897
2864
  className: "list-inside list-disc space-y-1 text-sm",
2898
- children: [v.map((e) => {
2865
+ children: [b.map((e) => {
2899
2866
  let t = e.name, n = e.count;
2900
2867
  return /*#__PURE__*/ I("li", { children: [t, n > 0 && /*#__PURE__*/ I("span", {
2901
2868
  className: "text-theme-light ml-2",
@@ -2903,25 +2870,25 @@ var Ve = (e, t) => ({
2903
2870
  "(",
2904
2871
  n,
2905
2872
  " ",
2906
- /*#__PURE__*/ F(H, {
2873
+ /*#__PURE__*/ F(U, {
2907
2874
  id: "gFsjJK",
2908
2875
  values: { bucketCount: n }
2909
2876
  }),
2910
2877
  ")"
2911
2878
  ]
2912
2879
  })] }, t);
2913
- }), y > 0 && /*#__PURE__*/ F("li", {
2880
+ }), x > 0 && /*#__PURE__*/ F("li", {
2914
2881
  className: "text-theme-light",
2915
- children: /*#__PURE__*/ F(H, {
2882
+ children: /*#__PURE__*/ F(U, {
2916
2883
  id: "yqPflB",
2917
- values: { hiddenCount: y }
2884
+ values: { hiddenCount: x }
2918
2885
  })
2919
2886
  })]
2920
2887
  })] }),
2921
- /*#__PURE__*/ F(f, {
2922
- label: i._({ id: "Ghp863" }),
2923
- value: l,
2924
- onChange: (e) => d(e.target.value),
2888
+ /*#__PURE__*/ F(u, {
2889
+ label: a._({ id: "Ghp863" }),
2890
+ value: p,
2891
+ onChange: (e) => m(e.target.value),
2925
2892
  placeholder: "empty",
2926
2893
  autoFocus: !0
2927
2894
  })
@@ -2930,79 +2897,77 @@ var Ve = (e, t) => ({
2930
2897
  });
2931
2898
  };
2932
2899
  //#endregion
2933
- //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Containers/CredentialPrompt.tsx
2900
+ //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/CredentialPrompt.tsx
2934
2901
  function Xe({ onSuccess: e }) {
2935
- let t = N(), [n, r] = B(null), i = O.useUtils(), a = O.storage.ceph.ec2Credentials.create.useMutation({
2902
+ let t = N(), [n, r] = V(null), a = O.useUtils(), o = O.storage.ceph.ec2Credentials.create.useMutation({
2936
2903
  onSuccess: () => {
2937
- i.storage.ceph.ec2Credentials.list.invalidate(), e();
2904
+ a.storage.ceph.ec2Credentials.list.invalidate(), e();
2938
2905
  },
2939
2906
  onError: (e) => {
2940
2907
  let t = e.message;
2941
2908
  r({
2942
2909
  variant: "error",
2943
- children: /*#__PURE__*/ F(H, {
2910
+ children: /*#__PURE__*/ F(U, {
2944
2911
  id: "rcBt6T",
2945
2912
  values: { errorMessage: t }
2946
2913
  }),
2947
- autoDismiss: !0,
2948
- autoDismissTimeout: 5e3,
2949
2914
  onDismiss: () => r(null)
2950
2915
  });
2951
2916
  }
2952
2917
  });
2953
- return /*#__PURE__*/ I(C, {
2918
+ return /*#__PURE__*/ I(s, {
2954
2919
  direction: "vertical",
2955
2920
  gap: "4",
2956
2921
  className: "mt-8 max-w-lg",
2957
2922
  children: [
2958
- n && /*#__PURE__*/ F(s, { ...n }),
2923
+ n && /*#__PURE__*/ F(i, { ...n }),
2959
2924
  /*#__PURE__*/ F("h2", {
2960
2925
  className: "text-lg font-semibold",
2961
- children: /*#__PURE__*/ F(H, { id: "wXxPjv" })
2926
+ children: /*#__PURE__*/ F(U, { id: "wXxPjv" })
2962
2927
  }),
2963
2928
  /*#__PURE__*/ F("p", {
2964
2929
  className: "text-theme-default",
2965
- children: /*#__PURE__*/ F(H, { id: "+8m5QE" })
2930
+ children: /*#__PURE__*/ F(U, { id: "+8m5QE" })
2966
2931
  }),
2967
2932
  /*#__PURE__*/ F("p", {
2968
2933
  className: "text-theme-default text-sm",
2969
- children: /*#__PURE__*/ F(H, { id: "+1xG4p" })
2934
+ children: /*#__PURE__*/ F(U, { id: "+1xG4p" })
2970
2935
  }),
2971
- /*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(_, {
2972
- onClick: () => t && a.mutate({ project_id: t }),
2973
- disabled: a.isPending || !t,
2974
- children: a.isPending ? /*#__PURE__*/ F(H, { id: "k/zHK7" }) : /*#__PURE__*/ F(H, { id: "FJO48W" })
2936
+ /*#__PURE__*/ F("div", { children: /*#__PURE__*/ F(m, {
2937
+ onClick: () => t && o.mutate({ project_id: t }),
2938
+ disabled: o.isPending || !t,
2939
+ children: o.isPending ? /*#__PURE__*/ F(U, { id: "k/zHK7" }) : /*#__PURE__*/ F(U, { id: "FJO48W" })
2975
2940
  }) })
2976
2941
  ]
2977
2942
  });
2978
2943
  }
2979
2944
  //#endregion
2980
- //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Containers/index.tsx
2945
+ //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Buckets/index.tsx
2981
2946
  var Ze = () => {
2982
- let { i18n: e, i18n: t, _: n } = U(), a = N(), o = te({ from: k.fullPath }), { sortBy: c, sortDirection: l, search: f = "" } = k.useSearch(), [p, h] = B(!1), [g, b] = B(!1), [x, S] = B([]), [w, T] = B(null), [E, A] = B(f), M = z(void 0);
2983
- ee(() => () => clearTimeout(M.current), []), ee(() => {
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);
2948
+ z(() => () => clearTimeout(M.current), []), z(() => {
2984
2949
  A(f);
2985
2950
  }, [f]);
2986
2951
  let P = () => T(null), R = (e) => {
2987
2952
  T(Ve(e, { onDismiss: P }));
2988
- }, V = (e, t) => {
2953
+ }, H = (e, t) => {
2989
2954
  T(He(e, t, { onDismiss: P }));
2990
- }, W = (e, t) => {
2955
+ }, G = (e, t) => {
2991
2956
  T(Ue(e, t, { onDismiss: P }));
2992
- }, ne = (e, t) => {
2957
+ }, te = (e, t) => {
2993
2958
  T(We(e, t, { onDismiss: P }));
2994
- }, re = (e) => {
2959
+ }, ne = (e) => {
2995
2960
  T(Ge(e, { onDismiss: P }));
2996
- }, G = (e, t) => {
2961
+ }, K = (e, t) => {
2997
2962
  T(Ke(e, t, { onDismiss: P }));
2998
- }, ie = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
2963
+ }, re = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
2999
2964
  if (n.length === 0) S([]);
3000
2965
  else {
3001
2966
  let e = new Set(n.map((e) => e.split(": ")[0]));
3002
2967
  S((t) => t.filter((t) => e.has(t)));
3003
2968
  }
3004
2969
  T(qe(e, t, n, { onDismiss: P }));
3005
- }, K = {
2970
+ }, q = {
3006
2971
  options: [
3007
2972
  {
3008
2973
  label: e._({ id: "6YtxFj" }),
@@ -3021,17 +2986,17 @@ var Ze = () => {
3021
2986
  value: "last_modified"
3022
2987
  }
3023
2988
  ],
3024
- sortBy: c ?? "name",
3025
- sortDirection: l ?? "asc"
3026
- }, { data: ae, isLoading: oe, error: se } = O.storage.ceph.containers.list.useQuery({
2989
+ sortBy: u ?? "name",
2990
+ sortDirection: d ?? "asc"
2991
+ }, { data: ie, isLoading: ae, error: oe } = O.storage.ceph.containers.list.useQuery({
3027
2992
  project_id: a,
3028
2993
  includeMetadata: !0
3029
2994
  }, {
3030
2995
  enabled: !!a,
3031
2996
  retry: !1
3032
- }), ce = (e) => [...e].sort((e, t) => {
2997
+ }), se = (e) => [...e].sort((e, t) => {
3033
2998
  let n;
3034
- switch (c ?? "name") {
2999
+ switch (u ?? "name") {
3035
3000
  case "name":
3036
3001
  n = e.name.localeCompare(t.name);
3037
3002
  break;
@@ -3049,181 +3014,181 @@ var Ze = () => {
3049
3014
  break;
3050
3015
  default: n = e.name.localeCompare(t.name);
3051
3016
  }
3052
- return (l ?? "asc") === "desc" ? -n : n;
3053
- }), le = (ae || []).filter((e) => e.name.toLowerCase().includes(f.toLowerCase())), q = ce(le), J = (e) => {
3017
+ return (d ?? "asc") === "desc" ? -n : n;
3018
+ }), ce = (ie || []).filter((e) => e.name.toLowerCase().includes(f.toLowerCase())), J = se(ce), Y = (e) => {
3054
3019
  let t = typeof e == "string" ? e : "";
3055
3020
  L(() => {
3056
- o({ search: (e) => ({
3021
+ l({ search: (e) => ({
3057
3022
  ...e,
3058
3023
  search: t || void 0
3059
3024
  }) });
3060
3025
  });
3061
- }, ue = (e) => {
3026
+ }, le = (e) => {
3062
3027
  let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
3063
3028
  L(() => {
3064
- o({ search: (e) => ({
3029
+ l({ search: (e) => ({
3065
3030
  ...e,
3066
3031
  sortBy: t,
3067
3032
  sortDirection: n
3068
3033
  }) });
3069
3034
  });
3070
3035
  };
3071
- if (oe) return /*#__PURE__*/ I(C, {
3036
+ if (ae) return /*#__PURE__*/ I(s, {
3072
3037
  className: "absolute inset-0",
3073
3038
  distribution: "center",
3074
3039
  alignment: "center",
3075
3040
  direction: "vertical",
3076
- children: [/*#__PURE__*/ F(u, {
3041
+ children: [/*#__PURE__*/ F(c, {
3077
3042
  variant: "primary",
3078
3043
  size: "large",
3079
3044
  className: "mb-2"
3080
- }), /*#__PURE__*/ F(H, { id: "c5i+X0" })]
3045
+ }), /*#__PURE__*/ F(U, { id: "c5i+X0" })]
3081
3046
  });
3082
- if (se) {
3083
- let e = se.message;
3047
+ if (oe) {
3048
+ let e = oe.message;
3084
3049
  if (e === "NO_CEPH_CREDENTIALS") return /*#__PURE__*/ F(Xe, { onSuccess: () => window.location.reload() });
3085
3050
  let t = e.includes("Access denied") || e.includes("AccessDenied"), n = e.includes("Invalid access key") || e.includes("InvalidAccessKeyId");
3086
3051
  return /*#__PURE__*/ F("div", {
3087
3052
  className: "p-8",
3088
3053
  children: /*#__PURE__*/ F("p", {
3089
3054
  className: "text-theme-default text-sm",
3090
- children: t ? /*#__PURE__*/ F(H, { id: "HAcOOW" }) : n ? /*#__PURE__*/ F(H, { id: "xIXYTK" }) : /*#__PURE__*/ F(H, {
3091
- id: "BZpsYm",
3055
+ children: t ? /*#__PURE__*/ F(U, { id: "HAcOOW" }) : n ? /*#__PURE__*/ F(U, { id: "xIXYTK" }) : /*#__PURE__*/ F(U, {
3056
+ id: "yDAMyU",
3092
3057
  values: { errorMessage: e }
3093
3058
  })
3094
3059
  })
3095
3060
  });
3096
3061
  }
3097
- let de = (ae || []).filter((e) => x.includes(e.name)), fe = de.length > 0, Y = de.length, pe = (ae || []).length, me = le.length, X = q.map((e) => e.name), he = X.length > 0 && X.every((e) => x.includes(e)), Z = X.some((e) => x.includes(e));
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));
3098
3063
  return /*#__PURE__*/ I("div", {
3099
3064
  className: "relative",
3100
3065
  children: [
3101
- /*#__PURE__*/ I(C, {
3066
+ /*#__PURE__*/ I(s, {
3102
3067
  direction: "vertical",
3103
3068
  children: [
3104
- /*#__PURE__*/ I(C, {
3069
+ /*#__PURE__*/ I(s, {
3105
3070
  distribution: "end",
3106
3071
  alignment: "center",
3107
3072
  gap: "2",
3108
3073
  className: "pb-2",
3109
- children: [/*#__PURE__*/ F(C, {
3074
+ children: [/*#__PURE__*/ F(s, {
3110
3075
  gap: "0.5",
3111
3076
  alignment: "center",
3112
3077
  children: /*#__PURE__*/ F(j, {
3113
- options: K.options,
3114
- sortBy: K.sortBy,
3115
- sortDirection: K.sortDirection ?? "asc",
3116
- onSortByChange: (e) => ue({
3117
- ...K,
3078
+ options: q.options,
3079
+ sortBy: q.sortBy,
3080
+ sortDirection: q.sortDirection ?? "asc",
3081
+ onSortByChange: (e) => le({
3082
+ ...q,
3118
3083
  sortBy: e,
3119
- sortDirection: K.sortDirection
3084
+ sortDirection: q.sortDirection
3120
3085
  }),
3121
- onSortDirectionChange: (e) => ue({
3122
- ...K,
3086
+ onSortDirectionChange: (e) => le({
3087
+ ...q,
3123
3088
  sortDirection: e
3124
3089
  })
3125
3090
  })
3126
- }), /*#__PURE__*/ F(_, {
3091
+ }), /*#__PURE__*/ F(m, {
3127
3092
  variant: "primary",
3128
3093
  className: "whitespace-nowrap",
3129
- onClick: () => h(!0),
3130
- children: /*#__PURE__*/ F(H, { id: "HiDAFk" })
3094
+ onClick: () => g(!0),
3095
+ children: /*#__PURE__*/ F(U, { id: "HiDAFk" })
3131
3096
  })]
3132
3097
  }),
3133
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(C, {
3098
+ /*#__PURE__*/ F(p, { children: /*#__PURE__*/ F(s, {
3134
3099
  direction: "vertical",
3135
3100
  gap: "2",
3136
- children: /*#__PURE__*/ F(C, {
3101
+ children: /*#__PURE__*/ F(s, {
3137
3102
  distribution: "end",
3138
3103
  alignment: "center",
3139
- children: /*#__PURE__*/ F(y, {
3104
+ children: /*#__PURE__*/ F(x, {
3140
3105
  placeholder: e._({ id: "VeDAv2" }),
3141
3106
  "data-testid": "searchbar",
3142
- value: E,
3107
+ value: D,
3143
3108
  onInput: (e) => {
3144
3109
  let t = e.currentTarget.value;
3145
- A(t), clearTimeout(M.current), M.current = window.setTimeout(() => J(t), 500);
3110
+ A(t), clearTimeout(M.current), M.current = window.setTimeout(() => Y(t), 500);
3146
3111
  },
3147
3112
  onSearch: (e) => {
3148
- clearTimeout(M.current), J(typeof e == "string" ? e : "");
3113
+ clearTimeout(M.current), Y(typeof e == "string" ? e : "");
3149
3114
  },
3150
3115
  onClear: () => {
3151
- clearTimeout(M.current), A(""), J("");
3116
+ clearTimeout(M.current), A(""), Y("");
3152
3117
  }
3153
3118
  })
3154
3119
  })
3155
3120
  }) }),
3156
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ I(C, {
3121
+ /*#__PURE__*/ F(p, { children: /*#__PURE__*/ I(s, {
3157
3122
  distribution: "start",
3158
3123
  gap: "2",
3159
3124
  alignment: "center",
3160
3125
  className: "text-sm",
3161
- children: [/*#__PURE__*/ I(C, {
3126
+ children: [/*#__PURE__*/ I(s, {
3162
3127
  gap: "2",
3163
3128
  alignment: "center",
3164
- children: [/*#__PURE__*/ F(D, {
3129
+ children: [/*#__PURE__*/ F(C, {
3165
3130
  checked: he,
3166
3131
  indeterminate: Z && !he,
3167
3132
  onChange: () => {
3168
- S(he ? (e) => e.filter((e) => !X.includes(e)) : (e) => [...new Set([...e, ...X])]);
3133
+ S(he ? (e) => e.filter((e) => !me.includes(e)) : (e) => [...new Set([...e, ...me])]);
3169
3134
  }
3170
- }), /*#__PURE__*/ I(v, {
3135
+ }), /*#__PURE__*/ I(o, {
3171
3136
  className: "flex items-center",
3172
- children: [/*#__PURE__*/ F(d, {
3137
+ children: [/*#__PURE__*/ F(t, {
3173
3138
  as: "div",
3174
- children: /*#__PURE__*/ F(_, {
3175
- disabled: !fe,
3139
+ children: /*#__PURE__*/ F(m, {
3140
+ disabled: !de,
3176
3141
  size: "small",
3177
3142
  icon: "moreVert",
3178
3143
  label: e._({ id: "7L01XJ" })
3179
3144
  })
3180
- }), fe && /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(m, {
3181
- disabled: !fe,
3182
- label: t._(e._({
3145
+ }), de && /*#__PURE__*/ F(E, { children: /*#__PURE__*/ F(v, {
3146
+ disabled: !de,
3147
+ label: n._(e._({
3183
3148
  id: "P2tWBZ",
3184
- values: { selectedCount: Y }
3149
+ values: { selectedCount: X }
3185
3150
  })),
3186
- onClick: () => b(!0)
3151
+ onClick: () => y(!0)
3187
3152
  }) })]
3188
3153
  })]
3189
3154
  }), /*#__PURE__*/ F("div", {
3190
3155
  className: "text-theme-light flex items-center gap-1",
3191
- "data-testid": "containers-info-block",
3192
- children: f.trim() ? /*#__PURE__*/ F(H, {
3156
+ "data-testid": "buckets-info-block",
3157
+ children: f.trim() ? /*#__PURE__*/ F(U, {
3193
3158
  id: "xOvKAE",
3194
3159
  values: {
3195
- totalCount: pe,
3196
- filteredCount: me
3160
+ totalCount: fe,
3161
+ filteredCount: pe
3197
3162
  }
3198
- }) : /*#__PURE__*/ F(H, {
3163
+ }) : /*#__PURE__*/ F(U, {
3199
3164
  id: "Ux/pNd",
3200
- values: { totalCount: pe }
3165
+ values: { totalCount: fe }
3201
3166
  })
3202
3167
  })]
3203
3168
  }) })
3204
3169
  ]
3205
3170
  }),
3206
3171
  /*#__PURE__*/ F(ze, {
3207
- containers: q,
3208
- createModalOpen: p,
3209
- setCreateModalOpen: h,
3172
+ buckets: J,
3173
+ createModalOpen: h,
3174
+ setCreateModalOpen: g,
3210
3175
  onCreateSuccess: R,
3211
- onCreateError: V,
3212
- onEmptySuccess: W,
3213
- onEmptyError: ne,
3214
- onDeleteSuccess: re,
3215
- onDeleteError: G,
3216
- selectedContainers: x,
3217
- setSelectedContainers: S,
3176
+ onCreateError: H,
3177
+ onEmptySuccess: G,
3178
+ onEmptyError: te,
3179
+ onDeleteSuccess: ne,
3180
+ onDeleteError: K,
3181
+ selectedBuckets: b,
3182
+ setSelectedBuckets: S,
3218
3183
  hasAnyBulkAction: !0
3219
3184
  }),
3220
3185
  /*#__PURE__*/ F(Ye, {
3221
- isOpen: g,
3222
- buckets: de,
3223
- onClose: () => b(!1),
3224
- onComplete: ie
3186
+ isOpen: _,
3187
+ buckets: ue,
3188
+ onClose: () => y(!1),
3189
+ onComplete: re
3225
3190
  }),
3226
- w && /*#__PURE__*/ F(s, {
3191
+ w && /*#__PURE__*/ F(i, {
3227
3192
  ...w,
3228
3193
  className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
3229
3194
  })
@@ -3231,15 +3196,16 @@ var Ze = () => {
3231
3196
  });
3232
3197
  };
3233
3198
  //#endregion
3234
- //#region src/client/routes/_auth/projects/$projectId/storage/$provider/containers/index.tsx?tsr-split=component
3199
+ //#region src/client/routes/_auth/projects/$projectId/storage/$provider/$storageType/index.tsx?tsr-split=component
3235
3200
  function Qe() {
3236
- let { project: e, provider: t } = V({
3237
- from: "/_auth/projects/$projectId/storage/$provider/containers/",
3201
+ let { project: e, provider: t } = H({
3202
+ from: "/_auth/projects/$projectId/storage/$provider/$storageType/",
3238
3203
  select: (e) => ({
3239
3204
  project: e.projectId,
3240
- provider: e.provider
3205
+ provider: e.provider,
3206
+ storageType: e.storageType
3241
3207
  })
3242
- }), { i18n: n, _: r } = U(), i;
3208
+ }), { i18n: n, _: r } = W(), i;
3243
3209
  switch (t) {
3244
3210
  case "swift":
3245
3211
  i = n._({ id: "+OEi73" });
@@ -3252,11 +3218,11 @@ function Qe() {
3252
3218
  return /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F(A, {
3253
3219
  title: i,
3254
3220
  projectId: e
3255
- }), e ? /*#__PURE__*/ F(ne, {
3221
+ }), e ? /*#__PURE__*/ F(te, {
3256
3222
  resetKeys: [e, t],
3257
3223
  fallback: /*#__PURE__*/ F("div", {
3258
3224
  className: "p-4 text-center",
3259
- children: /*#__PURE__*/ F(H, { id: "diFNkW" })
3225
+ children: /*#__PURE__*/ F(U, { id: "diFNkW" })
3260
3226
  }),
3261
3227
  children: (() => {
3262
3228
  switch (t) {
@@ -3267,11 +3233,11 @@ function Qe() {
3267
3233
  })()
3268
3234
  }) : /*#__PURE__*/ F("div", {
3269
3235
  className: "p-4 text-center",
3270
- children: /*#__PURE__*/ F(H, { id: "Z2fZGD" })
3236
+ children: /*#__PURE__*/ F(U, { id: "Z2fZGD" })
3271
3237
  })] });
3272
3238
  }
3273
3239
  var $e = () => /*#__PURE__*/ F(Qe, {});
3274
3240
  //#endregion
3275
3241
  export { $e as component };
3276
3242
 
3277
- //# sourceMappingURL=containers-ZMFTRaQL.mjs.map
3243
+ //# sourceMappingURL=_storageType-DYjo-6ej.mjs.map