@cobaltcore-dev/aurora 2.0.0 → 2.1.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 (115) hide show
  1. package/dist/client/ContentHeader-fKKZVu-o.mjs +116 -0
  2. package/dist/client/ContentHeader-fKKZVu-o.mjs.map +1 -0
  3. package/dist/client/{DeleteFlavorModal-C2MqUgGR.mjs → DeleteFlavorModal-Be2GFiB_.mjs} +3 -2
  4. package/dist/client/DeleteFlavorModal-Be2GFiB_.mjs.map +1 -0
  5. package/dist/client/{RouteIdLevelDefaultError-CSseJ1yG.mjs → RouteIdLevelDefaultError-DPF_x2tG.mjs} +9 -9
  6. package/dist/client/RouteIdLevelDefaultError-DPF_x2tG.mjs.map +1 -0
  7. package/dist/client/StorageNotFound-B-zVinVD.mjs +30 -0
  8. package/dist/client/StorageNotFound-B-zVinVD.mjs.map +1 -0
  9. package/dist/client/{_flavorId-DYv_StX22.mjs → _flavorId-0PioWpEp.mjs} +4 -4
  10. package/dist/client/_flavorId-0PioWpEp.mjs.map +1 -0
  11. package/dist/client/{_flavorId-YV3jCS5g.mjs → _flavorId-B7fp6Nk8.mjs} +3 -3
  12. package/dist/client/{_flavorId-YV3jCS5g.mjs.map → _flavorId-B7fp6Nk8.mjs.map} +1 -1
  13. package/dist/client/{_flavorId-CaA4-Pnf.mjs → _flavorId-CgueqKTs.mjs} +3 -3
  14. package/dist/client/{_flavorId-CaA4-Pnf.mjs.map → _flavorId-CgueqKTs.mjs.map} +1 -1
  15. package/dist/client/{_floatingIpId-Dpsc7GU4.mjs → _floatingIpId-B8r64AL9.mjs} +3 -3
  16. package/dist/client/{_floatingIpId-Dpsc7GU4.mjs.map → _floatingIpId-B8r64AL9.mjs.map} +1 -1
  17. package/dist/client/{_floatingIpId-BeYElanB.mjs → _floatingIpId-lEobpOER.mjs} +2 -2
  18. package/dist/client/{_floatingIpId-BeYElanB.mjs.map → _floatingIpId-lEobpOER.mjs.map} +1 -1
  19. package/dist/client/{_imageId-pBSS0YcC.mjs → _imageId-Ccv8PedW.mjs} +3 -3
  20. package/dist/client/{_imageId-pBSS0YcC.mjs.map → _imageId-Ccv8PedW.mjs.map} +1 -1
  21. package/dist/client/_imageId-CiqEQB_J.mjs +558 -0
  22. package/dist/client/{_imageId-mfKp3JHn.mjs.map → _imageId-CiqEQB_J.mjs.map} +1 -1
  23. package/dist/client/{_imageId-mpXUMCh_.mjs → _imageId-D9LR-02T.mjs} +3 -3
  24. package/dist/client/{_imageId-mpXUMCh_.mjs.map → _imageId-D9LR-02T.mjs.map} +1 -1
  25. package/dist/client/{_projectId-BnTBxKfp.mjs → _projectId-BDARsteX.mjs} +3 -3
  26. package/dist/client/{_projectId-BnTBxKfp.mjs.map → _projectId-BDARsteX.mjs.map} +1 -1
  27. package/dist/client/{_projectId-CVrdJ52s.mjs → _projectId-CtyAHqhH.mjs} +2 -2
  28. package/dist/client/{_projectId-CVrdJ52s.mjs.map → _projectId-CtyAHqhH.mjs.map} +1 -1
  29. package/dist/client/_projectId-D3VOH5lN.mjs +94 -0
  30. package/dist/client/_projectId-D3VOH5lN.mjs.map +1 -0
  31. package/dist/client/{_projectId-AjgJX6Gl.mjs → _projectId-ZBk6vka0.mjs} +83 -81
  32. package/dist/client/_projectId-ZBk6vka0.mjs.map +1 -0
  33. package/dist/client/{_securityGroupId-AO3wnH8g.mjs → _securityGroupId-BwgZnoiR.mjs} +2 -2
  34. package/dist/client/{_securityGroupId-AO3wnH8g.mjs.map → _securityGroupId-BwgZnoiR.mjs.map} +1 -1
  35. package/dist/client/{_securityGroupId-Bq0ZyG6z.mjs → _securityGroupId-Cz2NUHdB.mjs} +3 -3
  36. package/dist/client/{_securityGroupId-Bq0ZyG6z.mjs.map → _securityGroupId-Cz2NUHdB.mjs.map} +1 -1
  37. package/dist/client/{_storageType-CzZ4u9x_.mjs → _storageType-BNpP1A2N.mjs} +3 -2
  38. package/dist/client/_storageType-BNpP1A2N.mjs.map +1 -0
  39. package/dist/client/_storageType-BxSGKhAI.mjs +15 -0
  40. package/dist/client/_storageType-BxSGKhAI.mjs.map +1 -0
  41. package/dist/client/_storageType-DZYCmiLt.mjs +30 -0
  42. package/dist/client/_storageType-DZYCmiLt.mjs.map +1 -0
  43. package/dist/client/{_storageType-c-DAu8qr.mjs → _storageType-UqAMP-8d.mjs} +286 -285
  44. package/dist/client/_storageType-UqAMP-8d.mjs.map +1 -0
  45. package/dist/client/_storageType-u51_7OwJ.mjs +7 -0
  46. package/dist/client/_storageType-u51_7OwJ.mjs.map +1 -0
  47. package/dist/client/components/Errors/RouteIdLevelDefaultError.d.ts +2 -1
  48. package/dist/client/{flavors-ZudiAiTU.mjs → flavors-Ce3J-cFa.mjs} +2 -2
  49. package/dist/client/{flavors-ZudiAiTU.mjs.map → flavors-Ce3J-cFa.mjs.map} +1 -1
  50. package/dist/client/{flavors-Bgq3KZmx.mjs → flavors-D5ThLaXO.mjs} +84 -77
  51. package/dist/client/flavors-D5ThLaXO.mjs.map +1 -0
  52. package/dist/client/{floatingips-B1oLH8z6.mjs → floatingips-DXnRlLvV.mjs} +2 -2
  53. package/dist/client/{floatingips-B1oLH8z6.mjs.map → floatingips-DXnRlLvV.mjs.map} +1 -1
  54. package/dist/client/{floatingips-BtLg3yEQ.mjs → floatingips-HRbuLxiN.mjs} +3 -3
  55. package/dist/client/{floatingips-BtLg3yEQ.mjs.map → floatingips-HRbuLxiN.mjs.map} +1 -1
  56. package/dist/client/{floatingips-BeQEkVH8.mjs → floatingips-nN1kQmsu.mjs} +2 -2
  57. package/dist/client/{floatingips-BeQEkVH8.mjs.map → floatingips-nN1kQmsu.mjs.map} +1 -1
  58. package/dist/client/{images-CnTW3bpy.mjs → images-C8M3ysWR.mjs} +3 -3
  59. package/dist/client/{images-CnTW3bpy.mjs.map → images-C8M3ysWR.mjs.map} +1 -1
  60. package/dist/client/{images-DZHDYDQu.mjs → images-Cf5R28NR.mjs} +2 -2
  61. package/dist/client/{images-DZHDYDQu.mjs.map → images-Cf5R28NR.mjs.map} +1 -1
  62. package/dist/client/index.js +198 -197
  63. package/dist/client/index.js.map +1 -1
  64. package/dist/client/{objects-jYQBFzwg.mjs → objects-BudUAfWY.mjs} +4265 -4275
  65. package/dist/client/objects-BudUAfWY.mjs.map +1 -0
  66. package/dist/client/objects-Dc7sKUr8.mjs +67 -0
  67. package/dist/client/objects-Dc7sKUr8.mjs.map +1 -0
  68. package/dist/client/objects-Dw7oeTq2.mjs +80 -0
  69. package/dist/client/objects-Dw7oeTq2.mjs.map +1 -0
  70. package/dist/client/objects-_g7nGIn5.mjs +25 -0
  71. package/dist/client/objects-_g7nGIn5.mjs.map +1 -0
  72. package/dist/client/objects-eBxvY6_n.mjs +78 -0
  73. package/dist/client/objects-eBxvY6_n.mjs.map +1 -0
  74. package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
  75. package/dist/client/{securitygroups-BRndk7wh.mjs → securitygroups-67fFxiwt.mjs} +2 -2
  76. package/dist/client/{securitygroups-BRndk7wh.mjs.map → securitygroups-67fFxiwt.mjs.map} +1 -1
  77. package/dist/client/{securitygroups--0PS2wbM.mjs → securitygroups-DXrfyuVF.mjs} +3 -3
  78. package/dist/client/{securitygroups--0PS2wbM.mjs.map → securitygroups-DXrfyuVF.mjs.map} +1 -1
  79. package/dist/client/{securitygroups-Cs2Op-tu.mjs → securitygroups-WLB1_IM6.mjs} +3 -3
  80. package/dist/client/{securitygroups-Cs2Op-tu.mjs.map → securitygroups-WLB1_IM6.mjs.map} +1 -1
  81. package/dist/client/{securitygroups-CdN4yAAw.mjs → securitygroups-o0IXZM6S.mjs} +2 -2
  82. package/dist/client/{securitygroups-CdN4yAAw.mjs.map → securitygroups-o0IXZM6S.mjs.map} +1 -1
  83. package/dist/client/serviceCatalog-B3lKWC9V.mjs +6 -0
  84. package/dist/client/serviceCatalog-B3lKWC9V.mjs.map +1 -0
  85. package/dist/client/storageProviders-CJ5rOh13.mjs +15 -0
  86. package/dist/client/storageProviders-CJ5rOh13.mjs.map +1 -0
  87. package/dist/client/trpcClient.d.ts +96 -3
  88. package/dist/client/utils/serviceCatalog.d.ts +9 -0
  89. package/dist/client/utils/storageProviders.d.ts +44 -0
  90. package/dist/server/index.d.ts +96 -3
  91. package/dist/server/index.js +1224 -387
  92. package/package.json +1 -1
  93. package/dist/client/ContentHeader-CPJbgYWn.mjs +0 -115
  94. package/dist/client/ContentHeader-CPJbgYWn.mjs.map +0 -1
  95. package/dist/client/DeleteFlavorModal-C2MqUgGR.mjs.map +0 -1
  96. package/dist/client/RouteIdLevelDefaultError-CSseJ1yG.mjs.map +0 -1
  97. package/dist/client/_flavorId-DYv_StX22.mjs.map +0 -1
  98. package/dist/client/_imageId-mfKp3JHn.mjs +0 -558
  99. package/dist/client/_projectId-AjgJX6Gl.mjs.map +0 -1
  100. package/dist/client/_projectId-DgciZslU.mjs +0 -92
  101. package/dist/client/_projectId-DgciZslU.mjs.map +0 -1
  102. package/dist/client/_storageType-BRWWJtow.mjs +0 -14
  103. package/dist/client/_storageType-BRWWJtow.mjs.map +0 -1
  104. package/dist/client/_storageType-CzZ4u9x_.mjs.map +0 -1
  105. package/dist/client/_storageType-c-DAu8qr.mjs.map +0 -1
  106. package/dist/client/_storageType-zeSZe--V.mjs +0 -7
  107. package/dist/client/_storageType-zeSZe--V.mjs.map +0 -1
  108. package/dist/client/flavors-Bgq3KZmx.mjs.map +0 -1
  109. package/dist/client/objects-25xsh4Ia.mjs +0 -66
  110. package/dist/client/objects-25xsh4Ia.mjs.map +0 -1
  111. package/dist/client/objects-KXY6dgwq.mjs +0 -82
  112. package/dist/client/objects-KXY6dgwq.mjs.map +0 -1
  113. package/dist/client/objects-QryuClU3.mjs +0 -82
  114. package/dist/client/objects-QryuClU3.mjs.map +0 -1
  115. package/dist/client/objects-jYQBFzwg.mjs.map +0 -1
@@ -1,21 +1,22 @@
1
1
  import { C as e, D as t, H as n, L as r, Q as i, S as a, T as o, X as s, Z as c, c as l, d as u, ft as d, g as f, i as p, l as m, m as h, o as g, ot as _, p as v, rt as y, st as b, t as x, tt as S, x as C } from "./build-WuxXRAqf.mjs";
2
2
  import { a as w } from "./trpcClient-D7gpR7YG.mjs";
3
- import { D as T, E, T as D, _ as O, a as k, c as A, d as ee, f as te, g as j, h as M, i as ne, l as N, m as re, o as ie, p as ae, r as oe, s as se, u as ce, w as le, y as P } from "./objects-jYQBFzwg.mjs";
4
- import { t as F } from "./useProjectId-DBc5lpoU.mjs";
5
- import { t as ue } from "./SortInput-4g7nSTHW.mjs";
6
- import { t as I } from "./formatBytes-CZv_XyCY.mjs";
7
- import { t as L } from "./useModalTracking-BYd37pXm.mjs";
8
- import { t as R } from "./ContentHeader-CPJbgYWn.mjs";
9
- import { Fragment as de, jsx as z, jsxs as B } from "react/jsx-runtime";
10
- import { startTransition as V, useEffect as fe, useRef as pe, useState as H } from "react";
11
- import { useNavigate as me, useParams as he } from "@tanstack/react-router";
12
- import { Trans as U, useLingui as W } from "@lingui/react";
13
- import { z as G } from "zod";
14
- import { ErrorBoundary as K } from "react-error-boundary";
15
- import { useForm as q, useStore as ge } from "@tanstack/react-form";
3
+ import { t as T } from "./storageProviders-CJ5rOh13.mjs";
4
+ import { E, O as D, T as O, _ as k, a as A, c as ee, d as te, f as ne, g as j, h as re, i as M, l as ie, m as ae, o as oe, p as se, r as ce, s as le, u as ue, w as de, y as N } from "./objects-BudUAfWY.mjs";
5
+ import { t as P } from "./useProjectId-DBc5lpoU.mjs";
6
+ import { t as fe } from "./SortInput-4g7nSTHW.mjs";
7
+ import { t as F } from "./formatBytes-CZv_XyCY.mjs";
8
+ import { t as I } from "./useModalTracking-BYd37pXm.mjs";
9
+ import { t as L } from "./ContentHeader-fKKZVu-o.mjs";
10
+ import { Fragment as pe, jsx as R, jsxs as z } from "react/jsx-runtime";
11
+ import { startTransition as B, useEffect as me, useRef as he, useState as V } from "react";
12
+ import { useNavigate as ge, useParams as _e } from "@tanstack/react-router";
13
+ import { Trans as H, useLingui as U } from "@lingui/react";
14
+ import { z as W } from "zod";
15
+ import { ErrorBoundary as G } from "react-error-boundary";
16
+ import { useForm as ve, useStore as ye } from "@tanstack/react-form";
16
17
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Containers/CreateContainerModal.tsx
17
- var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContainerNameLength: o = 256, existingContainers: c = [] }) => {
18
- let { i18n: l, _: u } = W(), d = F(), [f, p] = H(""), [m, g] = H(null), [_, v] = H(null), { trackClose: y, markSubmitted: b, resetTracking: x } = L({
18
+ var K = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContainerNameLength: o = 256, existingContainers: c = [] }) => {
19
+ let { i18n: l, _: u } = U(), d = P(), [f, p] = V(""), [m, g] = V(null), [_, v] = V(null), { trackClose: y, markSubmitted: b, resetTracking: x } = I({
19
20
  isOpen: e,
20
21
  actionPrefix: "storage.swift.container.create"
21
22
  }), S = w.useUtils(), C = w.storage.swift.createContainer.useMutation({
@@ -44,7 +45,7 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
44
45
  container: f.trim()
45
46
  }));
46
47
  };
47
- return e ? /*#__PURE__*/ z(s, {
48
+ return e ? /*#__PURE__*/ R(s, {
48
49
  title: l._({ id: "vTh35P" }),
49
50
  open: e,
50
51
  onCancel: T,
@@ -55,11 +56,11 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
55
56
  disableConfirmButton: C.isPending || !f.trim(),
56
57
  disableCancelButton: C.isPending,
57
58
  disableCloseButton: C.isPending,
58
- children: /*#__PURE__*/ B(i, {
59
+ children: /*#__PURE__*/ z(i, {
59
60
  direction: "vertical",
60
61
  gap: "6",
61
62
  children: [
62
- _ && /*#__PURE__*/ z(r, {
63
+ _ && /*#__PURE__*/ R(r, {
63
64
  variant: "error",
64
65
  dismissible: !0,
65
66
  onDismiss: () => v(null),
@@ -68,11 +69,11 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
68
69
  "data-testid": "create-container-error",
69
70
  children: _
70
71
  }),
71
- /*#__PURE__*/ z("p", {
72
+ /*#__PURE__*/ R("p", {
72
73
  className: "text-theme-default",
73
- children: /*#__PURE__*/ z(U, { id: "ne/GWZ" })
74
+ children: /*#__PURE__*/ R(H, { id: "ne/GWZ" })
74
75
  }),
75
- /*#__PURE__*/ z(h, {
76
+ /*#__PURE__*/ R(h, {
76
77
  label: l._({ id: "SUSS9i" }),
77
78
  required: !0,
78
79
  value: f,
@@ -89,58 +90,58 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
89
90
  ]
90
91
  })
91
92
  }) : null;
92
- }, ve = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContainerNameLength: i, existingContainers: s = [], onCreateSuccess: c, onCreatePartialSuccess: u, onEmptySuccess: d, onEmptyError: m, onDeleteSuccess: h, onDeleteError: _, onPropertiesSuccess: v, onPropertiesError: S, onAclSuccess: w, onAclError: T, selectedContainers: E, setSelectedContainers: k, hasAnyBulkAction: A = !0 }) => {
93
- let { projectId: ee, provider: te, storageType: ne } = he({ from: "/_auth/projects/$projectId/storage/$provider/$storageType/" }), { i18n: N, _: ie } = W(), ae = me(), [oe, se] = H(0), [ce, P] = H(null), [F, ue] = H(null), [L, R] = H(null), [V, pe] = H(null), { ref: G, elementRef: K, height: q, virtualItems: ge, totalSize: ve, measureElement: J } = le({ count: e.length });
94
- fe(() => {
95
- if (K.current) {
96
- let e = K.current.offsetWidth - K.current.clientWidth;
97
- se(e);
93
+ }, be = ({ containers: e, createModalOpen: n, setCreateModalOpen: r, maxContainerNameLength: i, existingContainers: s = [], onCreateSuccess: c, onCreatePartialSuccess: u, onEmptySuccess: d, onEmptyError: m, onDeleteSuccess: h, onDeleteError: _, onPropertiesSuccess: v, onPropertiesError: S, onAclSuccess: w, onAclError: T, selectedContainers: E, setSelectedContainers: D, hasAnyBulkAction: A = !0 }) => {
94
+ let { projectId: ee, provider: te, storageType: ne } = _e({ from: "/_auth/projects/$projectId/storage/$provider/$storageType/" }), { i18n: M, _: ie } = U(), oe = ge(), [se, ce] = V(0), [le, ue] = V(null), [N, P] = V(null), [fe, I] = V(null), [L, B] = V(null), { ref: he, elementRef: W, height: G, virtualItems: ve, totalSize: ye, measureElement: be } = de({ count: e.length });
95
+ me(() => {
96
+ if (W.current) {
97
+ let e = W.current.offsetWidth - W.current.clientWidth;
98
+ ce(e);
98
99
  }
99
- }, [e.length, q]);
100
- let Y = (e) => {
101
- E.includes(e) ? k(E.filter((t) => t !== e)) : k([...E, e]);
102
- }, X = A ? 6 : 5, Z = A ? "40px minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px" : "minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px";
103
- return /*#__PURE__*/ B(de, { children: [
104
- /*#__PURE__*/ B("div", {
100
+ }, [e.length, G]);
101
+ let q = (e) => {
102
+ E.includes(e) ? D(E.filter((t) => t !== e)) : D([...E, e]);
103
+ }, J = A ? 6 : 5, Y = A ? "40px minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px" : "minmax(200px, 2fr) minmax(100px, 1fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px";
104
+ return /*#__PURE__*/ z(pe, { children: [
105
+ /*#__PURE__*/ z("div", {
105
106
  className: "relative",
106
- children: [/*#__PURE__*/ z("div", {
107
- style: { paddingRight: `${oe}px` },
108
- children: /*#__PURE__*/ B(g, {
109
- columns: X,
110
- gridColumnTemplate: Z,
107
+ children: [/*#__PURE__*/ R("div", {
108
+ style: { paddingRight: `${se}px` },
109
+ children: /*#__PURE__*/ z(g, {
110
+ columns: J,
111
+ gridColumnTemplate: Y,
111
112
  className: "containers",
112
113
  "data-testid": "containers-table-header",
113
- children: [/*#__PURE__*/ B(o, { children: [
114
- A && /*#__PURE__*/ z(a, {}),
115
- /*#__PURE__*/ z(a, { children: /*#__PURE__*/ z(U, { id: "t0X9+8" }) }),
116
- /*#__PURE__*/ z(a, { children: /*#__PURE__*/ z(U, { id: "sxbP3b" }) }),
117
- /*#__PURE__*/ z(a, { children: /*#__PURE__*/ z(U, { id: "sjMCOP" }) }),
118
- /*#__PURE__*/ z(a, { children: /*#__PURE__*/ z(U, { id: "hgpMHD" }) }),
119
- /*#__PURE__*/ z(a, { style: { marginRight: `-${oe}px` } })
120
- ] }), (!e || e.length === 0) && /*#__PURE__*/ z(o, { children: /*#__PURE__*/ z(x, {
121
- colSpan: X,
122
- children: /*#__PURE__*/ z(y, {
114
+ children: [/*#__PURE__*/ z(o, { children: [
115
+ A && /*#__PURE__*/ R(a, {}),
116
+ /*#__PURE__*/ R(a, { children: /*#__PURE__*/ R(H, { id: "t0X9+8" }) }),
117
+ /*#__PURE__*/ R(a, { children: /*#__PURE__*/ R(H, { id: "sxbP3b" }) }),
118
+ /*#__PURE__*/ R(a, { children: /*#__PURE__*/ R(H, { id: "sjMCOP" }) }),
119
+ /*#__PURE__*/ R(a, { children: /*#__PURE__*/ R(H, { id: "hgpMHD" }) }),
120
+ /*#__PURE__*/ R(a, { style: { marginRight: `-${se}px` } })
121
+ ] }), (!e || e.length === 0) && /*#__PURE__*/ R(o, { children: /*#__PURE__*/ R(x, {
122
+ colSpan: J,
123
+ children: /*#__PURE__*/ R(y, {
123
124
  status: "empty",
124
- title: N._({ id: "Hiw1Ha" }),
125
- body: N._({ id: "x1bK0h" })
125
+ title: M._({ id: "Hiw1Ha" }),
126
+ body: M._({ id: "x1bK0h" })
126
127
  })
127
128
  }) })]
128
129
  })
129
- }), /*#__PURE__*/ z("div", {
130
- ref: G,
130
+ }), /*#__PURE__*/ R("div", {
131
+ ref: he,
131
132
  className: "overflow-auto",
132
- style: { height: `${q ?? 0}px` },
133
+ style: { height: `${G ?? 0}px` },
133
134
  "data-testid": "containers-table-body",
134
- children: /*#__PURE__*/ z(g, {
135
- columns: X,
136
- gridColumnTemplate: Z,
135
+ children: /*#__PURE__*/ R(g, {
136
+ columns: J,
137
+ gridColumnTemplate: Y,
137
138
  style: {
138
- height: `${ve}px`,
139
+ height: `${ye}px`,
139
140
  width: "100%",
140
141
  position: "relative"
141
142
  },
142
- children: ge.map((n) => {
143
- let r = e[n.index], i = E.includes(r.name), a = () => ae({
143
+ children: ve.map((n) => {
144
+ let r = e[n.index], i = E.includes(r.name), a = () => oe({
144
145
  to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
145
146
  params: {
146
147
  projectId: ee,
@@ -149,9 +150,9 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
149
150
  containerName: r.name
150
151
  }
151
152
  });
152
- return /*#__PURE__*/ B(o, {
153
+ return /*#__PURE__*/ z(o, {
153
154
  "data-index": n.index,
154
- ref: J,
155
+ ref: be,
155
156
  style: {
156
157
  position: "absolute",
157
158
  top: 0,
@@ -159,7 +160,7 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
159
160
  width: "100%",
160
161
  transform: `translateY(${n.start}px)`,
161
162
  display: "grid",
162
- gridTemplateColumns: Z,
163
+ gridTemplateColumns: Y,
163
164
  alignItems: "stretch"
164
165
  },
165
166
  "data-testid": `container-row-${r.name}`,
@@ -169,57 +170,57 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
169
170
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
170
171
  },
171
172
  children: [
172
- A && /*#__PURE__*/ z(x, {
173
+ A && /*#__PURE__*/ R(x, {
173
174
  onClick: (e) => e.stopPropagation(),
174
175
  onKeyDown: (e) => {
175
176
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
176
177
  },
177
- children: /*#__PURE__*/ z(b, {
178
+ children: /*#__PURE__*/ R(b, {
178
179
  checked: i,
179
- onChange: () => Y(r.name),
180
+ onChange: () => q(r.name),
180
181
  "data-testid": `select-container-${r.name}`
181
182
  })
182
183
  }),
183
- /*#__PURE__*/ z(x, {
184
+ /*#__PURE__*/ R(x, {
184
185
  className: "min-w-0 overflow-hidden",
185
- children: /*#__PURE__*/ z("span", {
186
+ children: /*#__PURE__*/ R("span", {
186
187
  className: "block truncate",
187
188
  title: r.name,
188
189
  children: r.name
189
190
  })
190
191
  }),
191
- /*#__PURE__*/ z(x, { children: r.count.toLocaleString() }),
192
- /*#__PURE__*/ z(x, { children: D(r.last_modified) ?? N._({ id: "fj5byd" }) }),
193
- /*#__PURE__*/ z(x, { children: I(r.bytes) }),
194
- /*#__PURE__*/ z(x, {
192
+ /*#__PURE__*/ R(x, { children: r.count.toLocaleString() }),
193
+ /*#__PURE__*/ R(x, { children: O(r.last_modified) ?? M._({ id: "fj5byd" }) }),
194
+ /*#__PURE__*/ R(x, { children: F(r.bytes) }),
195
+ /*#__PURE__*/ R(x, {
195
196
  onClick: (e) => e.stopPropagation(),
196
- children: /*#__PURE__*/ B(t, { children: [/*#__PURE__*/ z(l, {
197
+ children: /*#__PURE__*/ z(t, { children: [/*#__PURE__*/ R(l, {
197
198
  as: "div",
198
- children: /*#__PURE__*/ z(p, {
199
+ children: /*#__PURE__*/ R(p, {
199
200
  icon: "moreVert",
200
- title: N._({ id: "jnnDNd" }),
201
- "aria-label": N._({ id: "jnnDNd" }),
201
+ title: M._({ id: "jnnDNd" }),
202
+ "aria-label": M._({ id: "jnnDNd" }),
202
203
  className: "!bg-transparent"
203
204
  })
204
- }), /*#__PURE__*/ B(f, { children: [
205
- /*#__PURE__*/ z(C, {
206
- label: N._({ id: "cWbW6w" }),
207
- onClick: () => pe(r),
205
+ }), /*#__PURE__*/ z(f, { children: [
206
+ /*#__PURE__*/ R(C, {
207
+ label: M._({ id: "cWbW6w" }),
208
+ onClick: () => B(r),
208
209
  "data-testid": `access-control-action-${r.name}`
209
210
  }),
210
- /*#__PURE__*/ z(C, {
211
- label: N._({ id: "Oc8Aqv" }),
212
- onClick: () => R(r),
211
+ /*#__PURE__*/ R(C, {
212
+ label: M._({ id: "Oc8Aqv" }),
213
+ onClick: () => I(r),
213
214
  "data-testid": `properties-action-${r.name}`
214
215
  }),
215
- /*#__PURE__*/ z(C, {
216
- label: N._({ id: "foCwki" }),
217
- onClick: () => P(r),
216
+ /*#__PURE__*/ R(C, {
217
+ label: M._({ id: "foCwki" }),
218
+ onClick: () => ue(r),
218
219
  "data-testid": `empty-action-${r.name}`
219
220
  }),
220
- /*#__PURE__*/ z(C, {
221
- label: N._({ id: "t1J6VC" }),
222
- onClick: () => ue(r),
221
+ /*#__PURE__*/ R(C, {
222
+ label: M._({ id: "t1J6VC" }),
223
+ onClick: () => P(r),
223
224
  "data-testid": `delete-action-${r.name}`
224
225
  })
225
226
  ] })] })
@@ -230,7 +231,7 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
230
231
  })
231
232
  })]
232
233
  }),
233
- /*#__PURE__*/ z(_e, {
234
+ /*#__PURE__*/ R(K, {
234
235
  isOpen: n,
235
236
  onClose: () => r(!1),
236
237
  onSuccess: c,
@@ -238,64 +239,64 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
238
239
  maxContainerNameLength: i,
239
240
  existingContainers: s
240
241
  }),
241
- /*#__PURE__*/ z(M, {
242
- isOpen: ce !== null,
243
- container: ce,
244
- onClose: () => P(null),
242
+ /*#__PURE__*/ R(re, {
243
+ isOpen: le !== null,
244
+ container: le,
245
+ onClose: () => ue(null),
245
246
  onSuccess: d,
246
247
  onError: m
247
248
  }),
248
- /*#__PURE__*/ z(re, {
249
- isOpen: F !== null,
250
- container: F,
251
- onClose: () => ue(null),
249
+ /*#__PURE__*/ R(ae, {
250
+ isOpen: N !== null,
251
+ container: N,
252
+ onClose: () => P(null),
252
253
  onSuccess: h,
253
254
  onError: _
254
255
  }),
255
- /*#__PURE__*/ z(j, {
256
- isOpen: L !== null,
257
- container: L,
258
- onClose: () => R(null),
256
+ /*#__PURE__*/ R(j, {
257
+ isOpen: fe !== null,
258
+ container: fe,
259
+ onClose: () => I(null),
259
260
  onSuccess: v,
260
261
  onError: S
261
262
  }),
262
- /*#__PURE__*/ z(O, {
263
- isOpen: V !== null,
264
- container: V,
265
- onClose: () => pe(null),
263
+ /*#__PURE__*/ R(k, {
264
+ isOpen: L !== null,
265
+ container: L,
266
+ onClose: () => B(null),
266
267
  onSuccess: w,
267
268
  onError: T
268
269
  })
269
270
  ] });
270
- }, J = ({ label: e, value: t }) => t == null ? null : /*#__PURE__*/ B("span", {
271
+ }, q = ({ label: e, value: t }) => t == null ? null : /*#__PURE__*/ z("span", {
271
272
  className: "flex items-start gap-1.5",
272
- children: [/*#__PURE__*/ z(u, {
273
+ children: [/*#__PURE__*/ R(u, {
273
274
  icon: "check",
274
275
  size: "16px",
275
276
  className: "text-theme-success mt-0.5 shrink-0"
276
- }), /*#__PURE__*/ B("span", { children: [
277
- /*#__PURE__*/ B("span", {
277
+ }), /*#__PURE__*/ z("span", { children: [
278
+ /*#__PURE__*/ z("span", {
278
279
  className: "font-medium",
279
280
  children: [e, ":"]
280
281
  }),
281
282
  " ",
282
283
  t
283
284
  ] })]
284
- }), Y = ({ label: e }) => /*#__PURE__*/ B("span", {
285
+ }), J = ({ label: e }) => /*#__PURE__*/ z("span", {
285
286
  className: "flex items-start gap-1.5",
286
- children: [/*#__PURE__*/ z(u, {
287
+ children: [/*#__PURE__*/ R(u, {
287
288
  icon: "check",
288
289
  size: "16px",
289
290
  className: "text-theme-success mt-0.5 shrink-0"
290
- }), /*#__PURE__*/ z("span", { children: e })]
291
- }), X = ({ title: e, children: t }) => /*#__PURE__*/ B("span", {
291
+ }), /*#__PURE__*/ R("span", { children: e })]
292
+ }), Y = ({ title: e, children: t }) => /*#__PURE__*/ z("span", {
292
293
  className: "flex flex-col gap-1.5",
293
- children: [/*#__PURE__*/ z("span", {
294
+ children: [/*#__PURE__*/ R("span", {
294
295
  className: "text-theme-default block font-semibold",
295
296
  children: e
296
297
  }), t]
297
- }), Z = ({ serviceInfo: e, accountInfo: t, open: r }) => {
298
- let { i18n: i, _: a } = W(), o = e?.swift, s = {
298
+ }), xe = ({ serviceInfo: e, accountInfo: t, open: r }) => {
299
+ let { i18n: i, _: a } = U(), o = e?.swift, s = {
299
300
  account_quotas: i._({ id: "DJT9tB" }),
300
301
  container_quotas: i._({ id: "USiuNX" }),
301
302
  bulk_delete: i._({ id: "F6YIQe" }),
@@ -306,112 +307,112 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
306
307
  symlink: i._({ id: "Q2xmVl" }),
307
308
  versioned_writes: i._({ id: "8jLXs3" })
308
309
  }, l = Object.entries(s).filter(([e]) => o?.[e]).map(([, e]) => e);
309
- return /*#__PURE__*/ B(c, {
310
+ return /*#__PURE__*/ z(c, {
310
311
  triggerEvent: "hover",
311
312
  placement: "bottom-end",
312
313
  open: r,
313
- children: [/*#__PURE__*/ z(S, {
314
+ children: [/*#__PURE__*/ R(S, {
314
315
  className: "max-h-5",
315
- children: /*#__PURE__*/ z("span", { children: /*#__PURE__*/ z(u, {
316
+ children: /*#__PURE__*/ R("span", { children: /*#__PURE__*/ R(u, {
316
317
  icon: "info",
317
318
  size: "20px",
318
319
  className: "text-theme-light hover:text-theme-default cursor-pointer"
319
320
  }) })
320
- }), /*#__PURE__*/ z(n, {
321
+ }), /*#__PURE__*/ R(n, {
321
322
  className: "z-10 w-72 text-sm",
322
- children: /*#__PURE__*/ B("span", {
323
+ children: /*#__PURE__*/ z("span", {
323
324
  className: "flex flex-col gap-3 p-1",
324
325
  children: [
325
- t && /*#__PURE__*/ B(X, {
326
- title: /*#__PURE__*/ z(U, { id: "AeXO77" }),
326
+ t && /*#__PURE__*/ z(Y, {
327
+ title: /*#__PURE__*/ R(H, { id: "AeXO77" }),
327
328
  children: [
328
- /*#__PURE__*/ z(J, {
329
+ /*#__PURE__*/ R(q, {
329
330
  label: i._({ id: "B3toQF" }),
330
331
  value: t.objectCount.toLocaleString()
331
332
  }),
332
- /*#__PURE__*/ z(J, {
333
+ /*#__PURE__*/ R(q, {
333
334
  label: i._({ id: "aL1w5Z" }),
334
- value: I(t.bytesUsed)
335
+ value: F(t.bytesUsed)
335
336
  }),
336
- t.quotaBytes !== void 0 && /*#__PURE__*/ z(J, {
337
+ t.quotaBytes !== void 0 && /*#__PURE__*/ R(q, {
337
338
  label: i._({ id: "vEkTR9" }),
338
- value: I(t.quotaBytes)
339
+ value: F(t.quotaBytes)
339
340
  })
340
341
  ]
341
342
  }),
342
- o && /*#__PURE__*/ B(X, {
343
- title: /*#__PURE__*/ z(U, { id: "6BDqha" }),
343
+ o && /*#__PURE__*/ z(Y, {
344
+ title: /*#__PURE__*/ R(H, { id: "6BDqha" }),
344
345
  children: [
345
- /*#__PURE__*/ z(J, {
346
+ /*#__PURE__*/ R(q, {
346
347
  label: i._({ id: "wTg+FY" }),
347
- value: o.max_file_size === void 0 ? void 0 : I(o.max_file_size)
348
+ value: o.max_file_size === void 0 ? void 0 : F(o.max_file_size)
348
349
  }),
349
- /*#__PURE__*/ z(J, {
350
+ /*#__PURE__*/ R(q, {
350
351
  label: i._({ id: "Rih53k" }),
351
352
  value: o.max_container_name_length
352
353
  }),
353
- /*#__PURE__*/ z(J, {
354
+ /*#__PURE__*/ R(q, {
354
355
  label: i._({ id: "qAkkjP" }),
355
356
  value: o.max_object_name_length
356
357
  }),
357
- /*#__PURE__*/ z(J, {
358
+ /*#__PURE__*/ R(q, {
358
359
  label: i._({ id: "OZImTR" }),
359
360
  value: o.container_listing_limit?.toLocaleString()
360
361
  }),
361
- /*#__PURE__*/ z(J, {
362
+ /*#__PURE__*/ R(q, {
362
363
  label: i._({ id: "a4A2uB" }),
363
364
  value: o.account_listing_limit?.toLocaleString()
364
365
  }),
365
- /*#__PURE__*/ z(J, {
366
+ /*#__PURE__*/ R(q, {
366
367
  label: i._({ id: "zWb/Nn" }),
367
368
  value: o.max_header_size
368
369
  }),
369
- /*#__PURE__*/ z(J, {
370
+ /*#__PURE__*/ R(q, {
370
371
  label: i._({ id: "RGwfoL" }),
371
372
  value: o.max_meta_count
372
373
  }),
373
- /*#__PURE__*/ z(J, {
374
+ /*#__PURE__*/ R(q, {
374
375
  label: i._({ id: "8c3/77" }),
375
376
  value: o.max_meta_name_length
376
377
  }),
377
- /*#__PURE__*/ z(J, {
378
+ /*#__PURE__*/ R(q, {
378
379
  label: i._({ id: "5JDSvn" }),
379
380
  value: o.max_meta_value_length
380
381
  }),
381
- /*#__PURE__*/ z(J, {
382
+ /*#__PURE__*/ R(q, {
382
383
  label: i._({ id: "ZAx+d1" }),
383
384
  value: o.max_meta_overall_size
384
385
  }),
385
- o.bulk_delete && /*#__PURE__*/ z(J, {
386
+ o.bulk_delete && /*#__PURE__*/ R(q, {
386
387
  label: i._({ id: "lQ3EIe" }),
387
388
  value: o.bulk_delete.max_deletes_per_request.toLocaleString()
388
389
  }),
389
- o.bulk_upload && /*#__PURE__*/ z(J, {
390
+ o.bulk_upload && /*#__PURE__*/ R(q, {
390
391
  label: i._({ id: "STc+7E" }),
391
392
  value: o.bulk_upload.max_containers_per_extraction.toLocaleString()
392
393
  }),
393
- o.slo && /*#__PURE__*/ z(J, {
394
+ o.slo && /*#__PURE__*/ R(q, {
394
395
  label: i._({ id: "RNBvdl" }),
395
396
  value: o.slo.max_manifest_segments.toLocaleString()
396
397
  })
397
398
  ]
398
399
  }),
399
- l.length > 0 && /*#__PURE__*/ z(X, {
400
- title: /*#__PURE__*/ z(U, { id: "Qx7DM7" }),
401
- children: l.map((e) => /*#__PURE__*/ z(Y, { label: e }, e))
400
+ l.length > 0 && /*#__PURE__*/ R(Y, {
401
+ title: /*#__PURE__*/ R(H, { id: "Qx7DM7" }),
402
+ children: l.map((e) => /*#__PURE__*/ R(J, { label: e }, e))
402
403
  })
403
404
  ]
404
405
  })
405
406
  })]
406
407
  });
407
- }, ye = 20, Q = "empty", be = ({ isOpen: e, containers: t, onClose: n, onComplete: r }) => {
408
- let { i18n: a, i18n: o, _: c } = W(), l = F(), [u, f] = H(null), { trackClose: p, markSubmitted: m, resetTracking: g } = L({
408
+ }, X = 20, Z = "empty", Se = ({ isOpen: e, containers: t, onClose: n, onComplete: r }) => {
409
+ let { i18n: a, i18n: o, _: c } = U(), l = P(), [u, f] = V(null), { trackClose: p, markSubmitted: m, resetTracking: g } = I({
409
410
  isOpen: e,
410
411
  actionPrefix: "storage.swift.containers.empty"
411
- }), _ = G.object({ confirm: G.string().transform((e) => e.trim()).refine((e) => e === Q, { message: a._({
412
+ }), _ = W.object({ confirm: W.string().transform((e) => e.trim()).refine((e) => e === Z, { message: a._({
412
413
  id: "xyaMox",
413
- values: { CONFIRM_WORD: Q }
414
- }) }) }), b = q({
414
+ values: { CONFIRM_WORD: Z }
415
+ }) }) }), b = ve({
415
416
  defaultValues: { confirm: "" },
416
417
  validators: { onSubmit: _ },
417
418
  onSubmit: async () => {
@@ -441,13 +442,13 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
441
442
  errors: i
442
443
  }), T();
443
444
  }
444
- }), x = ge(b.store, (e) => e.isSubmitting || e.values.confirm.trim() !== Q), S = w.useUtils(), C = w.storage.swift.emptyContainer.useMutation(), T = () => {
445
+ }), x = ye(b.store, (e) => e.isSubmitting || e.values.confirm.trim() !== Z), S = w.useUtils(), C = w.storage.swift.emptyContainer.useMutation(), T = () => {
445
446
  p(), C.reset(), f(null), b.reset(), g(), n();
446
447
  };
447
448
  if (!e || t.length === 0) return null;
448
- let E = t.length, D = t.slice(0, ye), O = E - D.length, k = C.isPending || u !== null, A = u?.current, ee = u?.total;
449
- return /*#__PURE__*/ z(s, {
450
- title: /*#__PURE__*/ z(U, {
449
+ let E = t.length, D = t.slice(0, X), O = E - D.length, k = C.isPending || u !== null, A = u?.current, ee = u?.total;
450
+ return /*#__PURE__*/ R(s, {
451
+ title: /*#__PURE__*/ R(H, {
451
452
  id: "0efWir",
452
453
  values: { totalCount: E }
453
454
  }),
@@ -463,7 +464,7 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
463
464
  disableCancelButton: k,
464
465
  disableCloseButton: k,
465
466
  size: "small",
466
- children: k ? /*#__PURE__*/ z(y, {
467
+ children: k ? /*#__PURE__*/ R(y, {
467
468
  status: "progress",
468
469
  title: u ? a._({
469
470
  id: "3A+Lhe",
@@ -473,30 +474,30 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
473
474
  }
474
475
  }) : a._({ id: "s4Vnq2" }),
475
476
  className: "mt-0"
476
- }) : /*#__PURE__*/ B("div", { children: [
477
- /*#__PURE__*/ z("p", { children: /*#__PURE__*/ z(U, { id: "JuOpPY" }) }),
478
- /*#__PURE__*/ z("p", { children: /*#__PURE__*/ z(U, {
477
+ }) : /*#__PURE__*/ z("div", { children: [
478
+ /*#__PURE__*/ R("p", { children: /*#__PURE__*/ R(H, { id: "JuOpPY" }) }),
479
+ /*#__PURE__*/ R("p", { children: /*#__PURE__*/ R(H, {
479
480
  id: "XXjbEV",
480
481
  components: {
481
- 0: /*#__PURE__*/ z("strong", {}),
482
- 1: /*#__PURE__*/ z("strong", {})
482
+ 0: /*#__PURE__*/ R("strong", {}),
483
+ 1: /*#__PURE__*/ R("strong", {})
483
484
  }
484
485
  }) }),
485
- /*#__PURE__*/ B("div", {
486
+ /*#__PURE__*/ z("div", {
486
487
  className: "my-6",
487
- children: [/*#__PURE__*/ z("p", {
488
+ children: [/*#__PURE__*/ R("p", {
488
489
  className: "text-sm font-semibold",
489
- children: /*#__PURE__*/ z(U, { id: "F6WEvK" })
490
- }), /*#__PURE__*/ z("div", {
490
+ children: /*#__PURE__*/ R(H, { id: "F6WEvK" })
491
+ }), /*#__PURE__*/ R("div", {
491
492
  className: "bg-theme-background-lvl-2 mt-2 max-h-48 overflow-y-auto rounded p-3",
492
- children: /*#__PURE__*/ B(i, {
493
+ children: /*#__PURE__*/ z(i, {
493
494
  direction: "vertical",
494
495
  gap: "1",
495
496
  children: [D.map((e) => {
496
497
  let t = e.count;
497
- return /*#__PURE__*/ B("div", {
498
+ return /*#__PURE__*/ z("div", {
498
499
  className: "text-theme-default overflow-x-hidden text-sm wrap-anywhere",
499
- children: [e.name, t != null && /*#__PURE__*/ B("span", {
500
+ children: [e.name, t != null && /*#__PURE__*/ z("span", {
500
501
  className: "text-theme-light ml-2",
501
502
  children: [
502
503
  "(",
@@ -508,9 +509,9 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
508
509
  ]
509
510
  })]
510
511
  }, e.name);
511
- }), O > 0 && /*#__PURE__*/ z("div", {
512
+ }), O > 0 && /*#__PURE__*/ R("div", {
512
513
  className: "text-theme-light pt-2 text-sm",
513
- children: /*#__PURE__*/ z(U, {
514
+ children: /*#__PURE__*/ R(H, {
514
515
  id: "20afDk",
515
516
  values: { hiddenCount: O }
516
517
  })
@@ -518,17 +519,17 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
518
519
  })
519
520
  })]
520
521
  }),
521
- /*#__PURE__*/ z(d, {
522
+ /*#__PURE__*/ R(d, {
522
523
  className: "mb-0",
523
524
  id: "empty-containers-form",
524
525
  onSubmit: (e) => {
525
526
  e.preventDefault(), b.handleSubmit();
526
527
  },
527
- children: /*#__PURE__*/ z(v, { children: /*#__PURE__*/ z(b.Field, {
528
+ children: /*#__PURE__*/ R(v, { children: /*#__PURE__*/ R(b.Field, {
528
529
  name: "confirm",
529
- children: (e) => /*#__PURE__*/ z(h, {
530
+ children: (e) => /*#__PURE__*/ R(h, {
530
531
  label: a._({ id: "Ghp863" }),
531
- placeholder: Q,
532
+ placeholder: Z,
532
533
  id: e.name,
533
534
  name: e.name,
534
535
  value: e.state.value,
@@ -541,50 +542,50 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
541
542
  })
542
543
  ] })
543
544
  });
544
- }, xe = () => {
545
- let { i18n: n, i18n: r, _: a } = W(), o = F(), s = me({ from: T.fullPath }), { sortBy: c, sortDirection: u, search: d = "" } = T.useSearch(), [h, g] = H(!1), [v, x] = H(!1), [S, D] = H([]), [O, j] = H(d), M = pe(void 0);
546
- fe(() => () => clearTimeout(M.current), []), fe(() => {
547
- j(d);
545
+ }, Ce = () => {
546
+ let { i18n: n, i18n: r, _: a } = U(), o = P(), s = ge({ from: D.fullPath }), { sortBy: c, sortDirection: u, search: d = "" } = D.useSearch(), [h, g] = V(!1), [v, x] = V(!1), [S, T] = V([]), [O, k] = V(d), j = he(void 0);
547
+ me(() => () => clearTimeout(j.current), []), me(() => {
548
+ k(d);
548
549
  }, [d]);
549
550
  let re = (e) => {
550
- let { message: t, ...n } = k(e);
551
+ let { message: t, ...n } = A(e);
551
552
  _.success(t, n);
552
- }, le = (e, t) => {
553
- let { message: n, ...r } = ie(e, t);
553
+ }, ae = (e, t) => {
554
+ let { message: n, ...r } = oe(e, t);
554
555
  _.warning(n, r);
555
- }, P = (e, t) => {
556
- let { message: n, ...r } = N(e, t);
556
+ }, de = (e, t) => {
557
+ let { message: n, ...r } = ie(e, t);
557
558
  _.success(n, r);
558
- }, L = (e, t) => {
559
- let { message: n, ...r } = ce(e, t);
559
+ }, N = (e, t) => {
560
+ let { message: n, ...r } = ue(e, t);
560
561
  _.error(n, r);
561
- }, R = (e) => {
562
- let { message: t, ...n } = A(e);
562
+ }, I = (e) => {
563
+ let { message: t, ...n } = ee(e);
563
564
  _.success(t, n);
564
- }, he = (e, t) => {
565
- let { message: n, ...r } = se(e, t);
565
+ }, L = (e, t) => {
566
+ let { message: n, ...r } = le(e, t);
566
567
  _.error(n, r);
567
- }, G = (e) => {
568
- let { message: t, ...n } = te(e);
568
+ }, _e = (e) => {
569
+ let { message: t, ...n } = ne(e);
569
570
  _.success(t, n);
570
- }, K = (e, t) => {
571
- let { message: n, ...r } = ee(e, t);
571
+ }, W = (e, t) => {
572
+ let { message: n, ...r } = te(e, t);
572
573
  _.error(n, r);
573
- }, q = (e) => {
574
- let { message: t, ...n } = ne(e);
574
+ }, G = (e) => {
575
+ let { message: t, ...n } = M(e);
575
576
  _.success(t, n);
576
- }, ge = (e, t) => {
577
- let { message: n, ...r } = oe(e, t);
577
+ }, ve = (e, t) => {
578
+ let { message: n, ...r } = ce(e, t);
578
579
  _.error(n, r);
579
- }, _e = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
580
- if (n.length === 0) D([]);
580
+ }, ye = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
581
+ if (n.length === 0) T([]);
581
582
  else {
582
583
  let e = new Set(n.map((e) => e.split(": ")[0]));
583
- D((t) => t.filter((t) => e.has(t)));
584
+ T((t) => t.filter((t) => e.has(t)));
584
585
  }
585
- let { message: r, severity: i, ...a } = ae(e, t, n);
586
+ let { message: r, severity: i, ...a } = se(e, t, n);
586
587
  _[i](r, a);
587
- }, J = {
588
+ }, K = {
588
589
  options: [
589
590
  {
590
591
  label: n._({ id: "t0X9+8" }),
@@ -605,10 +606,10 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
605
606
  ],
606
607
  sortBy: c ?? "name",
607
608
  sortDirection: u ?? "asc"
608
- }, { data: Y, isLoading: X, error: ye } = w.storage.swift.listContainers.useQuery({
609
+ }, { data: q, isLoading: J, error: Y } = w.storage.swift.listContainers.useQuery({
609
610
  project_id: o,
610
611
  format: "json"
611
- }), { data: Q } = w.storage.swift.getAccountMetadata.useQuery({ project_id: o }), { data: xe } = w.storage.swift.getServiceInfo.useQuery(), Se = (e) => [...e].sort((e, t) => {
612
+ }), { data: X } = w.storage.swift.getAccountMetadata.useQuery({ project_id: o }), { data: Z } = w.storage.swift.getServiceInfo.useQuery(), Ce = (e) => [...e].sort((e, t) => {
612
613
  let n;
613
614
  switch (c ?? "name") {
614
615
  case "name":
@@ -630,17 +631,17 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
630
631
  default: n = e.name.localeCompare(t.name);
631
632
  }
632
633
  return (u ?? "asc") === "desc" ? -n : n;
633
- }), Ce = (Y || []).filter((e) => e.name.toLowerCase().includes(d.toLowerCase())), we = Se(Ce), Te = (e) => {
634
+ }), we = (q || []).filter((e) => e.name.toLowerCase().includes(d.toLowerCase())), Te = Ce(we), Ee = (e) => {
634
635
  let t = typeof e == "string" ? e : "";
635
- V(() => {
636
+ B(() => {
636
637
  s({ search: (e) => ({
637
638
  ...e,
638
639
  search: t || void 0
639
640
  }) });
640
641
  });
641
- }, Ee = (e) => {
642
+ }, De = (e) => {
642
643
  let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
643
- V(() => {
644
+ B(() => {
644
645
  s({ search: (e) => ({
645
646
  ...e,
646
647
  sortBy: t,
@@ -648,100 +649,100 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
648
649
  }) });
649
650
  });
650
651
  };
651
- if (X) return /*#__PURE__*/ z(y, {
652
+ if (J) return /*#__PURE__*/ R(y, {
652
653
  status: "progress",
653
654
  title: n._({ id: "WYiUDa" })
654
655
  });
655
- if (ye) return /*#__PURE__*/ z(y, {
656
+ if (Y) return /*#__PURE__*/ R(y, {
656
657
  status: "error",
657
658
  title: n._({ id: "WZWHIv" }),
658
- body: ye.message
659
+ body: Y.message
659
660
  });
660
- let De = Q?.bytesUsed || 0, Oe = Q?.quotaBytes || 0, ke = Oe > 0 ? Oe - De : 0, Ae = (Y || []).filter((e) => S.includes(e.name)), je = Ae.length > 0, Me = Ae.length, Ne = (Y || []).length, Pe = Ce.length, Fe = Pe !== Ne, $ = we.map((e) => e.name), Ie = $.length > 0 && $.every((e) => S.includes(e)), Le = $.some((e) => S.includes(e));
661
- return /*#__PURE__*/ B("div", {
661
+ let Oe = X?.bytesUsed || 0, Q = X?.quotaBytes || 0, ke = Q > 0 ? Q - Oe : 0, Ae = (q || []).filter((e) => S.includes(e.name)), je = Ae.length > 0, Me = Ae.length, Ne = (q || []).length, Pe = we.length, Fe = Pe !== Ne, $ = Te.map((e) => e.name), Ie = $.length > 0 && $.every((e) => S.includes(e)), Le = $.some((e) => S.includes(e));
662
+ return /*#__PURE__*/ z("div", {
662
663
  className: "relative",
663
664
  children: [
664
- /*#__PURE__*/ B(i, {
665
+ /*#__PURE__*/ z(i, {
665
666
  direction: "vertical",
666
667
  children: [
667
- /*#__PURE__*/ B(i, {
668
+ /*#__PURE__*/ z(i, {
668
669
  distribution: "end",
669
670
  alignment: "center",
670
671
  gap: "2",
671
672
  className: "pb-2",
672
- children: [/*#__PURE__*/ z(i, {
673
+ children: [/*#__PURE__*/ R(i, {
673
674
  gap: "0.5",
674
675
  alignment: "center",
675
- children: /*#__PURE__*/ z(ue, {
676
- options: J.options,
677
- sortBy: J.sortBy,
678
- sortDirection: J.sortDirection ?? "asc",
676
+ children: /*#__PURE__*/ R(fe, {
677
+ options: K.options,
678
+ sortBy: K.sortBy,
679
+ sortDirection: K.sortDirection ?? "asc",
679
680
  selectClassName: "min-w-40",
680
- onSortByChange: (e) => Ee({
681
- ...J,
681
+ onSortByChange: (e) => De({
682
+ ...K,
682
683
  sortBy: e,
683
- sortDirection: J.sortDirection
684
+ sortDirection: K.sortDirection
684
685
  }),
685
- onSortDirectionChange: (e) => Ee({
686
- ...J,
686
+ onSortDirectionChange: (e) => De({
687
+ ...K,
687
688
  sortDirection: e
688
689
  })
689
690
  })
690
- }), /*#__PURE__*/ z(p, {
691
+ }), /*#__PURE__*/ R(p, {
691
692
  variant: "primary",
692
693
  className: "whitespace-nowrap",
693
694
  onClick: () => g(!0),
694
- children: /*#__PURE__*/ z(U, { id: "vTh35P" })
695
+ children: /*#__PURE__*/ R(H, { id: "vTh35P" })
695
696
  })]
696
697
  }),
697
- /*#__PURE__*/ z(m, { children: /*#__PURE__*/ z(i, {
698
+ /*#__PURE__*/ R(m, { children: /*#__PURE__*/ R(i, {
698
699
  direction: "vertical",
699
700
  gap: "2",
700
- children: /*#__PURE__*/ z(i, {
701
+ children: /*#__PURE__*/ R(i, {
701
702
  distribution: "end",
702
703
  alignment: "center",
703
- children: /*#__PURE__*/ z(e, {
704
+ children: /*#__PURE__*/ R(e, {
704
705
  placeholder: n._({ id: "TipzDp" }),
705
706
  "data-testid": "searchbar",
706
707
  value: O,
707
708
  onInput: (e) => {
708
709
  let t = e.currentTarget.value;
709
- j(t), clearTimeout(M.current), M.current = window.setTimeout(() => Te(t), 500);
710
+ k(t), clearTimeout(j.current), j.current = window.setTimeout(() => Ee(t), 500);
710
711
  },
711
712
  onSearch: (e) => {
712
- clearTimeout(M.current), Te(typeof e == "string" ? e : "");
713
+ clearTimeout(j.current), Ee(typeof e == "string" ? e : "");
713
714
  },
714
715
  onClear: () => {
715
- clearTimeout(M.current), j(""), Te("");
716
+ clearTimeout(j.current), k(""), Ee("");
716
717
  }
717
718
  })
718
719
  })
719
720
  }) }),
720
- /*#__PURE__*/ z(m, { children: /*#__PURE__*/ B(i, {
721
+ /*#__PURE__*/ R(m, { children: /*#__PURE__*/ z(i, {
721
722
  distribution: "start",
722
723
  gap: "2",
723
724
  alignment: "center",
724
725
  className: "text-sm",
725
- children: [/*#__PURE__*/ B(i, {
726
+ children: [/*#__PURE__*/ z(i, {
726
727
  gap: "2",
727
728
  alignment: "center",
728
- children: [/*#__PURE__*/ z(b, {
729
+ children: [/*#__PURE__*/ R(b, {
729
730
  checked: Ie,
730
731
  indeterminate: Le && !Ie,
731
732
  onChange: () => {
732
- D(Ie ? (e) => e.filter((e) => !$.includes(e)) : (e) => [.../* @__PURE__ */ new Set([...e, ...$])]);
733
+ T(Ie ? (e) => e.filter((e) => !$.includes(e)) : (e) => [.../* @__PURE__ */ new Set([...e, ...$])]);
733
734
  }
734
- }), /*#__PURE__*/ B(t, {
735
+ }), /*#__PURE__*/ z(t, {
735
736
  className: "flex items-center",
736
- children: [/*#__PURE__*/ z(l, {
737
+ children: [/*#__PURE__*/ R(l, {
737
738
  as: "div",
738
- children: /*#__PURE__*/ z(p, {
739
+ children: /*#__PURE__*/ R(p, {
739
740
  disabled: !je,
740
741
  size: "small",
741
742
  icon: "moreVert",
742
743
  label: n._({ id: "7L01XJ" })
743
744
  })
744
- }), je && /*#__PURE__*/ z(f, { children: /*#__PURE__*/ z(C, {
745
+ }), je && /*#__PURE__*/ R(f, { children: /*#__PURE__*/ R(C, {
745
746
  disabled: !je,
746
747
  label: r._(n._({
747
748
  id: "0Th0CH",
@@ -750,109 +751,109 @@ var _e = ({ isOpen: e, onClose: t, onSuccess: n, onPartialSuccess: a, maxContain
750
751
  onClick: () => x(!0)
751
752
  }) })]
752
753
  })]
753
- }), /*#__PURE__*/ B("div", {
754
+ }), /*#__PURE__*/ z("div", {
754
755
  className: "text-theme-light ml-auto flex items-center gap-1",
755
756
  "data-testid": "containers-info-block",
756
757
  children: [
757
- Fe ? /*#__PURE__*/ z(U, {
758
+ Fe ? /*#__PURE__*/ R(H, {
758
759
  id: "8uPTwT",
759
760
  values: {
760
761
  filteredCount: Pe,
761
762
  totalCount: Ne
762
763
  }
763
- }) : /*#__PURE__*/ z(U, {
764
+ }) : /*#__PURE__*/ R(H, {
764
765
  id: "ywe1H/",
765
766
  values: { totalCount: Ne }
766
767
  }),
767
- Oe > 0 && /*#__PURE__*/ B(de, { children: [/*#__PURE__*/ z("span", { children: "," }), /*#__PURE__*/ B("span", { children: [
768
- /*#__PURE__*/ z(U, { id: "kKK8AH" }),
768
+ Q > 0 && /*#__PURE__*/ z(pe, { children: [/*#__PURE__*/ R("span", { children: "," }), /*#__PURE__*/ z("span", { children: [
769
+ /*#__PURE__*/ R(H, { id: "kKK8AH" }),
769
770
  " ",
770
- /*#__PURE__*/ z("span", {
771
+ /*#__PURE__*/ R("span", {
771
772
  className: "text-theme-default font-semibold",
772
- children: I(ke)
773
+ children: F(ke)
773
774
  })
774
775
  ] })] }),
775
- /*#__PURE__*/ z(Z, {
776
- serviceInfo: xe,
777
- accountInfo: Q
776
+ /*#__PURE__*/ R(xe, {
777
+ serviceInfo: Z,
778
+ accountInfo: X
778
779
  })
779
780
  ]
780
781
  })]
781
782
  }) })
782
783
  ]
783
784
  }),
784
- /*#__PURE__*/ z(ve, {
785
- containers: we,
785
+ /*#__PURE__*/ R(be, {
786
+ containers: Te,
786
787
  createModalOpen: h,
787
788
  setCreateModalOpen: g,
788
- maxContainerNameLength: xe?.swift?.max_container_name_length,
789
- existingContainers: Y,
789
+ maxContainerNameLength: Z?.swift?.max_container_name_length,
790
+ existingContainers: q,
790
791
  onCreateSuccess: re,
791
- onCreatePartialSuccess: le,
792
- onEmptySuccess: P,
793
- onEmptyError: L,
794
- onDeleteSuccess: R,
795
- onDeleteError: he,
796
- onPropertiesSuccess: G,
797
- onPropertiesError: K,
798
- onAclSuccess: q,
799
- onAclError: ge,
792
+ onCreatePartialSuccess: ae,
793
+ onEmptySuccess: de,
794
+ onEmptyError: N,
795
+ onDeleteSuccess: I,
796
+ onDeleteError: L,
797
+ onPropertiesSuccess: _e,
798
+ onPropertiesError: W,
799
+ onAclSuccess: G,
800
+ onAclError: ve,
800
801
  selectedContainers: S,
801
- setSelectedContainers: D,
802
+ setSelectedContainers: T,
802
803
  hasAnyBulkAction: !0
803
804
  }),
804
- /*#__PURE__*/ z(be, {
805
+ /*#__PURE__*/ R(Se, {
805
806
  isOpen: v,
806
807
  containers: Ae,
807
808
  onClose: () => x(!1),
808
- onComplete: _e
809
+ onComplete: ye
809
810
  })
810
811
  ]
811
812
  });
812
813
  };
813
814
  //#endregion
814
815
  //#region src/client/routes/_auth/projects/$projectId/storage/$provider/$storageType/index.tsx?tsr-split=component
815
- function Se() {
816
- let { project: e, provider: t } = he({
816
+ function we() {
817
+ let { project: e, provider: t } = _e({
817
818
  from: "/_auth/projects/$projectId/storage/$provider/$storageType/",
818
819
  select: (e) => ({
819
820
  project: e.projectId,
820
821
  provider: e.provider,
821
822
  storageType: e.storageType
822
823
  })
823
- }), { i18n: n, _: r } = W(), i;
824
+ }), { i18n: n, _: r } = U(), i;
824
825
  switch (t) {
825
- case "swift":
826
+ case T.SWIFT:
826
827
  i = n._({ id: "+OEi73" });
827
828
  break;
828
- case "ceph":
829
+ case T.CEPH:
829
830
  i = n._({ id: "KhNDX4" });
830
831
  break;
831
832
  default: i = n._({ id: "IWF68U" });
832
833
  }
833
- return /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z(R, {
834
+ return /*#__PURE__*/ z("div", { children: [/*#__PURE__*/ R(L, {
834
835
  title: i,
835
836
  projectId: e
836
- }), e ? /*#__PURE__*/ z(K, {
837
+ }), e ? /*#__PURE__*/ R(G, {
837
838
  resetKeys: [e, t],
838
- fallback: /*#__PURE__*/ z("div", {
839
+ fallback: /*#__PURE__*/ R("div", {
839
840
  className: "p-4 text-center",
840
- children: /*#__PURE__*/ z(U, { id: "diFNkW" })
841
+ children: /*#__PURE__*/ R(H, { id: "diFNkW" })
841
842
  }),
842
843
  children: (() => {
843
844
  switch (t) {
844
- case "swift": return /*#__PURE__*/ z(xe, {});
845
- case "ceph": return /*#__PURE__*/ z(P, {});
846
- default: return /*#__PURE__*/ z("div", { children: "Storage Overview Page" });
845
+ case T.SWIFT: return /*#__PURE__*/ R(Ce, {});
846
+ case T.CEPH: return /*#__PURE__*/ R(N, {});
847
+ default: return /*#__PURE__*/ R("div", { children: "Storage Overview Page" });
847
848
  }
848
849
  })()
849
- }) : /*#__PURE__*/ z("div", {
850
+ }) : /*#__PURE__*/ R("div", {
850
851
  className: "p-4 text-center",
851
- children: /*#__PURE__*/ z(U, { id: "Z2fZGD" })
852
+ children: /*#__PURE__*/ R(H, { id: "Z2fZGD" })
852
853
  })] });
853
854
  }
854
- var Ce = () => /*#__PURE__*/ z(Se, {});
855
+ var Te = () => /*#__PURE__*/ R(we, {});
855
856
  //#endregion
856
- export { Ce as component };
857
+ export { Te as component };
857
858
 
858
- //# sourceMappingURL=_storageType-c-DAu8qr.mjs.map
859
+ //# sourceMappingURL=_storageType-UqAMP-8d.mjs.map