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