@cobaltcore-dev/aurora 1.2.0 → 2.0.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 (132) hide show
  1. package/dist/client/DeleteFlavorModal-C2MqUgGR.mjs +801 -0
  2. package/dist/client/DeleteFlavorModal-C2MqUgGR.mjs.map +1 -0
  3. package/dist/client/{FiltersInput-CKI6zWnm.mjs → FiltersInput-Becwxo_J.mjs} +36 -33
  4. package/dist/client/FiltersInput-Becwxo_J.mjs.map +1 -0
  5. package/dist/client/FloatingIpActionModals-Cq10WljB.mjs +466 -0
  6. package/dist/client/FloatingIpActionModals-Cq10WljB.mjs.map +1 -0
  7. package/dist/client/ImageToastNotifications-BWfzOUMc.mjs +1135 -0
  8. package/dist/client/ImageToastNotifications-BWfzOUMc.mjs.map +1 -0
  9. package/dist/client/RouteIdLevelDefaultError-CSseJ1yG.mjs +26 -0
  10. package/dist/client/RouteIdLevelDefaultError-CSseJ1yG.mjs.map +1 -0
  11. package/dist/client/{TwoColumnDescriptionList-NvgvErua.mjs → TwoColumnDescriptionList-DKS42RKa.mjs} +9 -3
  12. package/dist/client/TwoColumnDescriptionList-DKS42RKa.mjs.map +1 -0
  13. package/dist/client/{_flavorId-a9Gu66R1.mjs → _flavorId-CaA4-Pnf.mjs} +4 -3
  14. package/dist/client/_flavorId-CaA4-Pnf.mjs.map +1 -0
  15. package/dist/client/_flavorId-DYv_StX22.mjs +276 -0
  16. package/dist/client/_flavorId-DYv_StX22.mjs.map +1 -0
  17. package/dist/client/_flavorId-YV3jCS5g.mjs +22 -0
  18. package/dist/client/_flavorId-YV3jCS5g.mjs.map +1 -0
  19. package/dist/client/{_floatingIpId-AZ11Ksmu.mjs → _floatingIpId-BeYElanB.mjs} +2 -2
  20. package/dist/client/_floatingIpId-BeYElanB.mjs.map +1 -0
  21. package/dist/client/_floatingIpId-Dpsc7GU4.mjs +196 -0
  22. package/dist/client/_floatingIpId-Dpsc7GU4.mjs.map +1 -0
  23. package/dist/client/_imageId-mfKp3JHn.mjs +558 -0
  24. package/dist/client/_imageId-mfKp3JHn.mjs.map +1 -0
  25. package/dist/client/_imageId-mpXUMCh_.mjs +22 -0
  26. package/dist/client/_imageId-mpXUMCh_.mjs.map +1 -0
  27. package/dist/client/{_imageId-D76BxvFY.mjs → _imageId-pBSS0YcC.mjs} +4 -3
  28. package/dist/client/_imageId-pBSS0YcC.mjs.map +1 -0
  29. package/dist/client/{_projectId-B3wmSala.mjs → _projectId-AjgJX6Gl.mjs} +2 -2
  30. package/dist/client/_projectId-AjgJX6Gl.mjs.map +1 -0
  31. package/dist/client/{_projectId-DPzv0CCp.mjs → _projectId-BnTBxKfp.mjs} +4 -4
  32. package/dist/client/_projectId-BnTBxKfp.mjs.map +1 -0
  33. package/dist/client/{_projectId-DfeVJy0G.mjs → _projectId-CVrdJ52s.mjs} +2 -2
  34. package/dist/client/_projectId-CVrdJ52s.mjs.map +1 -0
  35. package/dist/client/_projectId-DgciZslU.mjs +92 -0
  36. package/dist/client/_projectId-DgciZslU.mjs.map +1 -0
  37. package/dist/client/{_securityGroupId-D85mSigA.mjs → _securityGroupId-AO3wnH8g.mjs} +2 -2
  38. package/dist/client/_securityGroupId-AO3wnH8g.mjs.map +1 -0
  39. package/dist/client/{_securityGroupId-C5huJNfO.mjs → _securityGroupId-Bq0ZyG6z.mjs} +750 -741
  40. package/dist/client/_securityGroupId-Bq0ZyG6z.mjs.map +1 -0
  41. package/dist/client/_storageType-c-DAu8qr.mjs +858 -0
  42. package/dist/client/_storageType-c-DAu8qr.mjs.map +1 -0
  43. package/dist/client/components/{Error → Errors}/RouteError.d.ts +5 -0
  44. package/dist/client/components/Errors/RouteIdLevelDefaultError.d.ts +17 -0
  45. package/dist/client/components/Errors/ServiceLevelDefaultError.d.ts +9 -0
  46. package/dist/client/components/ListToolbar/SelectedFilters.d.ts +7 -2
  47. package/dist/client/components/ListToolbar/types.d.ts +6 -0
  48. package/dist/client/components/ListToolbar/valueLabels.d.ts +11 -0
  49. package/dist/client/flavors-Bgq3KZmx.mjs +659 -0
  50. package/dist/client/flavors-Bgq3KZmx.mjs.map +1 -0
  51. package/dist/client/{flavors-B0rbqffG.mjs → flavors-ZudiAiTU.mjs} +2 -2
  52. package/dist/client/{flavors-B0rbqffG.mjs.map → flavors-ZudiAiTU.mjs.map} +1 -1
  53. package/dist/client/floatingips-B1oLH8z6.mjs +551 -0
  54. package/dist/client/floatingips-B1oLH8z6.mjs.map +1 -0
  55. package/dist/client/floatingips-BeQEkVH8.mjs +14 -0
  56. package/dist/client/floatingips-BeQEkVH8.mjs.map +1 -0
  57. package/dist/client/floatingips-BtLg3yEQ.mjs +22 -0
  58. package/dist/client/floatingips-BtLg3yEQ.mjs.map +1 -0
  59. package/dist/client/floatingips-Cz9k80cc.mjs.map +1 -1
  60. package/dist/client/{images-BGQv9kKT.mjs → images-CnTW3bpy.mjs} +810 -770
  61. package/dist/client/images-CnTW3bpy.mjs.map +1 -0
  62. package/dist/client/{images-CPmMa4SQ.mjs → images-DZHDYDQu.mjs} +2 -2
  63. package/dist/client/{images-CPmMa4SQ.mjs.map → images-DZHDYDQu.mjs.map} +1 -1
  64. package/dist/client/index.js +412 -409
  65. package/dist/client/index.js.map +1 -1
  66. package/dist/client/{objects-BN-59Th0.mjs → objects-25xsh4Ia.mjs} +2 -2
  67. package/dist/client/objects-25xsh4Ia.mjs.map +1 -0
  68. package/dist/client/objects-KXY6dgwq.mjs +82 -0
  69. package/dist/client/objects-KXY6dgwq.mjs.map +1 -0
  70. package/dist/client/objects-QryuClU3.mjs +82 -0
  71. package/dist/client/objects-QryuClU3.mjs.map +1 -0
  72. package/dist/client/{objects-BE_u5yRt.mjs → objects-jYQBFzwg.mjs} +4671 -4702
  73. package/dist/client/objects-jYQBFzwg.mjs.map +1 -0
  74. package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
  75. package/dist/client/securitygroups--0PS2wbM.mjs +580 -0
  76. package/dist/client/securitygroups--0PS2wbM.mjs.map +1 -0
  77. package/dist/client/{securitygroups-DEJQBcxm.mjs → securitygroups-BRndk7wh.mjs} +2 -2
  78. package/dist/client/{securitygroups-DEJQBcxm.mjs.map → securitygroups-BRndk7wh.mjs.map} +1 -1
  79. package/dist/client/securitygroups-CdN4yAAw.mjs +14 -0
  80. package/dist/client/securitygroups-CdN4yAAw.mjs.map +1 -0
  81. package/dist/client/securitygroups-Cs2Op-tu.mjs +22 -0
  82. package/dist/client/securitygroups-Cs2Op-tu.mjs.map +1 -0
  83. package/dist/client/securitygroups-CtKne8UQ.mjs.map +1 -1
  84. package/dist/client/trpcClient.d.ts +6 -1
  85. package/dist/client/useModalTracking-BYd37pXm.mjs +37 -0
  86. package/dist/client/useModalTracking-BYd37pXm.mjs.map +1 -0
  87. package/dist/client/useSecurityGroupPermissions--hK4aR8Y.mjs +294 -0
  88. package/dist/client/useSecurityGroupPermissions--hK4aR8Y.mjs.map +1 -0
  89. package/dist/server/index.d.ts +6 -1
  90. package/dist/server/index.js +96 -30
  91. package/package.json +4 -4
  92. package/dist/client/DeleteFlavorModal-V44QCJBd.mjs +0 -773
  93. package/dist/client/DeleteFlavorModal-V44QCJBd.mjs.map +0 -1
  94. package/dist/client/FiltersInput-CKI6zWnm.mjs.map +0 -1
  95. package/dist/client/FloatingIpActionModals-CwEC5GR-.mjs +0 -460
  96. package/dist/client/FloatingIpActionModals-CwEC5GR-.mjs.map +0 -1
  97. package/dist/client/ImageToastNotifications-m6c3tVPb.mjs +0 -1152
  98. package/dist/client/ImageToastNotifications-m6c3tVPb.mjs.map +0 -1
  99. package/dist/client/TwoColumnDescriptionList-NvgvErua.mjs.map +0 -1
  100. package/dist/client/_flavorId-9PcBBW52.mjs +0 -231
  101. package/dist/client/_flavorId-9PcBBW52.mjs.map +0 -1
  102. package/dist/client/_flavorId-a9Gu66R1.mjs.map +0 -1
  103. package/dist/client/_floatingIpId-AE9Fu8l6.mjs +0 -210
  104. package/dist/client/_floatingIpId-AE9Fu8l6.mjs.map +0 -1
  105. package/dist/client/_floatingIpId-AZ11Ksmu.mjs.map +0 -1
  106. package/dist/client/_imageId-BtAql2Kr.mjs +0 -570
  107. package/dist/client/_imageId-BtAql2Kr.mjs.map +0 -1
  108. package/dist/client/_imageId-D76BxvFY.mjs.map +0 -1
  109. package/dist/client/_projectId-7Nl1MQTJ.mjs +0 -99
  110. package/dist/client/_projectId-7Nl1MQTJ.mjs.map +0 -1
  111. package/dist/client/_projectId-B3wmSala.mjs.map +0 -1
  112. package/dist/client/_projectId-DPzv0CCp.mjs.map +0 -1
  113. package/dist/client/_projectId-DfeVJy0G.mjs.map +0 -1
  114. package/dist/client/_securityGroupId-C5huJNfO.mjs.map +0 -1
  115. package/dist/client/_securityGroupId-D85mSigA.mjs.map +0 -1
  116. package/dist/client/_storageType-Dy9uCVXr.mjs +0 -845
  117. package/dist/client/_storageType-Dy9uCVXr.mjs.map +0 -1
  118. package/dist/client/flavors-Rl20bxVU.mjs +0 -628
  119. package/dist/client/flavors-Rl20bxVU.mjs.map +0 -1
  120. package/dist/client/floatingips-xbO_mu4f.mjs +0 -576
  121. package/dist/client/floatingips-xbO_mu4f.mjs.map +0 -1
  122. package/dist/client/images-BGQv9kKT.mjs.map +0 -1
  123. package/dist/client/objects-BE_u5yRt.mjs.map +0 -1
  124. package/dist/client/objects-BN-59Th0.mjs.map +0 -1
  125. package/dist/client/objects-D9Luf9KB.mjs +0 -66
  126. package/dist/client/objects-D9Luf9KB.mjs.map +0 -1
  127. package/dist/client/securitygroups-BjhgLBHm.mjs +0 -620
  128. package/dist/client/securitygroups-BjhgLBHm.mjs.map +0 -1
  129. package/dist/client/useModalTracking-BcOKTYRN.mjs +0 -33
  130. package/dist/client/useModalTracking-BcOKTYRN.mjs.map +0 -1
  131. package/dist/client/useSecurityGroupPermissions-BOyLQLdC.mjs +0 -227
  132. package/dist/client/useSecurityGroupPermissions-BOyLQLdC.mjs.map +0 -1
@@ -0,0 +1,858 @@
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
+ 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";
16
+ //#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({
19
+ isOpen: e,
20
+ actionPrefix: "storage.swift.container.create"
21
+ }), S = w.useUtils(), C = w.storage.swift.createContainer.useMutation({
22
+ onSuccess: (e) => {
23
+ S.storage.swift.listContainers.invalidate();
24
+ let t = f.trim();
25
+ e.optionsApplied ? n?.(t) : a?.(t, e.optionsError ?? l._({ id: "m7tlyr" })), T();
26
+ },
27
+ onError: (e) => {
28
+ e.data?.code === "CONFLICT" ? (g(l._({ id: "F75mLW" })), v(null)) : v(e.message || l._({ id: "19EgAF" })), x();
29
+ }
30
+ }), T = () => {
31
+ y(), p(""), g(null), v(null), x(), C.reset(), t();
32
+ }, E = (e) => {
33
+ let t = e.trim();
34
+ return t ? t.length > o ? (g(l._({
35
+ id: "r5SQFW",
36
+ values: { maxContainerNameLength: o }
37
+ })), !1) : t.includes("/") ? (g(l._({ id: "9J93Xr" })), !1) : c.some((e) => e.name === t) ? (g(l._({ id: "F75mLW" })), !1) : (g(null), !0) : (g(l._({ id: "JNGYAW" })), !1);
38
+ }, D = (e) => {
39
+ let t = e.target.value;
40
+ p(t), v(null), m && E(t);
41
+ }, O = () => {
42
+ E(f) && (v(null), b(), C.mutate({
43
+ project_id: d,
44
+ container: f.trim()
45
+ }));
46
+ };
47
+ return e ? /*#__PURE__*/ z(s, {
48
+ title: l._({ id: "vTh35P" }),
49
+ open: e,
50
+ onCancel: T,
51
+ confirmButtonLabel: C.isPending ? l._({ id: "HM56Bx" }) : l._({ id: "hYgDIe" }),
52
+ onConfirm: O,
53
+ cancelButtonLabel: l._({ id: "dEgA5A" }),
54
+ size: "small",
55
+ disableConfirmButton: C.isPending || !f.trim(),
56
+ disableCancelButton: C.isPending,
57
+ disableCloseButton: C.isPending,
58
+ children: /*#__PURE__*/ B(i, {
59
+ direction: "vertical",
60
+ gap: "6",
61
+ children: [
62
+ _ && /*#__PURE__*/ z(r, {
63
+ variant: "error",
64
+ dismissible: !0,
65
+ onDismiss: () => v(null),
66
+ role: "alert",
67
+ "aria-live": "assertive",
68
+ "data-testid": "create-container-error",
69
+ children: _
70
+ }),
71
+ /*#__PURE__*/ z("p", {
72
+ className: "text-theme-default",
73
+ children: /*#__PURE__*/ z(U, { id: "ne/GWZ" })
74
+ }),
75
+ /*#__PURE__*/ z(h, {
76
+ label: l._({ id: "SUSS9i" }),
77
+ required: !0,
78
+ value: f,
79
+ onChange: D,
80
+ onKeyDown: (e) => {
81
+ e.key === "Enter" && O();
82
+ },
83
+ invalid: !!m,
84
+ errortext: m || void 0,
85
+ disabled: C.isPending,
86
+ autoFocus: !0,
87
+ placeholder: l._({ id: "W5FkH9" })
88
+ })
89
+ ]
90
+ })
91
+ }) : 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);
98
+ }
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", {
105
+ className: "relative",
106
+ children: [/*#__PURE__*/ z("div", {
107
+ style: { paddingRight: `${oe}px` },
108
+ children: /*#__PURE__*/ B(g, {
109
+ columns: X,
110
+ gridColumnTemplate: Z,
111
+ className: "containers",
112
+ "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, {
123
+ status: "empty",
124
+ title: N._({ id: "Hiw1Ha" }),
125
+ body: N._({ id: "x1bK0h" })
126
+ })
127
+ }) })]
128
+ })
129
+ }), /*#__PURE__*/ z("div", {
130
+ ref: G,
131
+ className: "overflow-auto",
132
+ style: { height: `${q ?? 0}px` },
133
+ "data-testid": "containers-table-body",
134
+ children: /*#__PURE__*/ z(g, {
135
+ columns: X,
136
+ gridColumnTemplate: Z,
137
+ style: {
138
+ height: `${ve}px`,
139
+ width: "100%",
140
+ position: "relative"
141
+ },
142
+ children: ge.map((n) => {
143
+ let r = e[n.index], i = E.includes(r.name), a = () => ae({
144
+ to: "/projects/$projectId/storage/$provider/$storageType/$containerName/objects",
145
+ params: {
146
+ projectId: ee,
147
+ provider: te,
148
+ storageType: ne,
149
+ containerName: r.name
150
+ }
151
+ });
152
+ return /*#__PURE__*/ B(o, {
153
+ "data-index": n.index,
154
+ ref: J,
155
+ style: {
156
+ position: "absolute",
157
+ top: 0,
158
+ left: 0,
159
+ width: "100%",
160
+ transform: `translateY(${n.start}px)`,
161
+ display: "grid",
162
+ gridTemplateColumns: Z,
163
+ alignItems: "stretch"
164
+ },
165
+ "data-testid": `container-row-${r.name}`,
166
+ tabIndex: 0,
167
+ onClick: a,
168
+ onKeyDown: (e) => {
169
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
170
+ },
171
+ children: [
172
+ A && /*#__PURE__*/ z(x, {
173
+ onClick: (e) => e.stopPropagation(),
174
+ onKeyDown: (e) => {
175
+ (e.key === "Enter" || e.key === " ") && e.stopPropagation();
176
+ },
177
+ children: /*#__PURE__*/ z(b, {
178
+ checked: i,
179
+ onChange: () => Y(r.name),
180
+ "data-testid": `select-container-${r.name}`
181
+ })
182
+ }),
183
+ /*#__PURE__*/ z(x, {
184
+ className: "min-w-0 overflow-hidden",
185
+ children: /*#__PURE__*/ z("span", {
186
+ className: "block truncate",
187
+ title: r.name,
188
+ children: r.name
189
+ })
190
+ }),
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, {
195
+ onClick: (e) => e.stopPropagation(),
196
+ children: /*#__PURE__*/ B(t, { children: [/*#__PURE__*/ z(l, {
197
+ as: "div",
198
+ children: /*#__PURE__*/ z(p, {
199
+ icon: "moreVert",
200
+ title: N._({ id: "jnnDNd" }),
201
+ "aria-label": N._({ id: "jnnDNd" }),
202
+ className: "!bg-transparent"
203
+ })
204
+ }), /*#__PURE__*/ B(f, { children: [
205
+ /*#__PURE__*/ z(C, {
206
+ label: N._({ id: "cWbW6w" }),
207
+ onClick: () => pe(r),
208
+ "data-testid": `access-control-action-${r.name}`
209
+ }),
210
+ /*#__PURE__*/ z(C, {
211
+ label: N._({ id: "Oc8Aqv" }),
212
+ onClick: () => R(r),
213
+ "data-testid": `properties-action-${r.name}`
214
+ }),
215
+ /*#__PURE__*/ z(C, {
216
+ label: N._({ id: "foCwki" }),
217
+ onClick: () => P(r),
218
+ "data-testid": `empty-action-${r.name}`
219
+ }),
220
+ /*#__PURE__*/ z(C, {
221
+ label: N._({ id: "t1J6VC" }),
222
+ onClick: () => ue(r),
223
+ "data-testid": `delete-action-${r.name}`
224
+ })
225
+ ] })] })
226
+ })
227
+ ]
228
+ }, r.name);
229
+ })
230
+ })
231
+ })]
232
+ }),
233
+ /*#__PURE__*/ z(_e, {
234
+ isOpen: n,
235
+ onClose: () => r(!1),
236
+ onSuccess: c,
237
+ onPartialSuccess: u,
238
+ maxContainerNameLength: i,
239
+ existingContainers: s
240
+ }),
241
+ /*#__PURE__*/ z(M, {
242
+ isOpen: ce !== null,
243
+ container: ce,
244
+ onClose: () => P(null),
245
+ onSuccess: d,
246
+ onError: m
247
+ }),
248
+ /*#__PURE__*/ z(re, {
249
+ isOpen: F !== null,
250
+ container: F,
251
+ onClose: () => ue(null),
252
+ onSuccess: h,
253
+ onError: _
254
+ }),
255
+ /*#__PURE__*/ z(j, {
256
+ isOpen: L !== null,
257
+ container: L,
258
+ onClose: () => R(null),
259
+ onSuccess: v,
260
+ onError: S
261
+ }),
262
+ /*#__PURE__*/ z(O, {
263
+ isOpen: V !== null,
264
+ container: V,
265
+ onClose: () => pe(null),
266
+ onSuccess: w,
267
+ onError: T
268
+ })
269
+ ] });
270
+ }, J = ({ label: e, value: t }) => t == null ? null : /*#__PURE__*/ B("span", {
271
+ className: "flex items-start gap-1.5",
272
+ children: [/*#__PURE__*/ z(u, {
273
+ icon: "check",
274
+ size: "16px",
275
+ className: "text-theme-success mt-0.5 shrink-0"
276
+ }), /*#__PURE__*/ B("span", { children: [
277
+ /*#__PURE__*/ B("span", {
278
+ className: "font-medium",
279
+ children: [e, ":"]
280
+ }),
281
+ " ",
282
+ t
283
+ ] })]
284
+ }), Y = ({ label: e }) => /*#__PURE__*/ B("span", {
285
+ className: "flex items-start gap-1.5",
286
+ children: [/*#__PURE__*/ z(u, {
287
+ icon: "check",
288
+ size: "16px",
289
+ className: "text-theme-success mt-0.5 shrink-0"
290
+ }), /*#__PURE__*/ z("span", { children: e })]
291
+ }), X = ({ title: e, children: t }) => /*#__PURE__*/ B("span", {
292
+ className: "flex flex-col gap-1.5",
293
+ children: [/*#__PURE__*/ z("span", {
294
+ className: "text-theme-default block font-semibold",
295
+ children: e
296
+ }), t]
297
+ }), Z = ({ serviceInfo: e, accountInfo: t, open: r }) => {
298
+ let { i18n: i, _: a } = W(), o = e?.swift, s = {
299
+ account_quotas: i._({ id: "DJT9tB" }),
300
+ container_quotas: i._({ id: "USiuNX" }),
301
+ bulk_delete: i._({ id: "F6YIQe" }),
302
+ bulk_upload: i._({ id: "2Inn83" }),
303
+ slo: i._({ id: "cpw++p" }),
304
+ container_sync: i._({ id: "ezT9KW" }),
305
+ tempurl: i._({ id: "UO3hJ2" }),
306
+ symlink: i._({ id: "Q2xmVl" }),
307
+ versioned_writes: i._({ id: "8jLXs3" })
308
+ }, l = Object.entries(s).filter(([e]) => o?.[e]).map(([, e]) => e);
309
+ return /*#__PURE__*/ B(c, {
310
+ triggerEvent: "hover",
311
+ placement: "bottom-end",
312
+ open: r,
313
+ children: [/*#__PURE__*/ z(S, {
314
+ className: "max-h-5",
315
+ children: /*#__PURE__*/ z("span", { children: /*#__PURE__*/ z(u, {
316
+ icon: "info",
317
+ size: "20px",
318
+ className: "text-theme-light hover:text-theme-default cursor-pointer"
319
+ }) })
320
+ }), /*#__PURE__*/ z(n, {
321
+ className: "z-10 w-72 text-sm",
322
+ children: /*#__PURE__*/ B("span", {
323
+ className: "flex flex-col gap-3 p-1",
324
+ children: [
325
+ t && /*#__PURE__*/ B(X, {
326
+ title: /*#__PURE__*/ z(U, { id: "AeXO77" }),
327
+ children: [
328
+ /*#__PURE__*/ z(J, {
329
+ label: i._({ id: "B3toQF" }),
330
+ value: t.objectCount.toLocaleString()
331
+ }),
332
+ /*#__PURE__*/ z(J, {
333
+ label: i._({ id: "aL1w5Z" }),
334
+ value: I(t.bytesUsed)
335
+ }),
336
+ t.quotaBytes !== void 0 && /*#__PURE__*/ z(J, {
337
+ label: i._({ id: "vEkTR9" }),
338
+ value: I(t.quotaBytes)
339
+ })
340
+ ]
341
+ }),
342
+ o && /*#__PURE__*/ B(X, {
343
+ title: /*#__PURE__*/ z(U, { id: "6BDqha" }),
344
+ children: [
345
+ /*#__PURE__*/ z(J, {
346
+ label: i._({ id: "wTg+FY" }),
347
+ value: o.max_file_size === void 0 ? void 0 : I(o.max_file_size)
348
+ }),
349
+ /*#__PURE__*/ z(J, {
350
+ label: i._({ id: "Rih53k" }),
351
+ value: o.max_container_name_length
352
+ }),
353
+ /*#__PURE__*/ z(J, {
354
+ label: i._({ id: "qAkkjP" }),
355
+ value: o.max_object_name_length
356
+ }),
357
+ /*#__PURE__*/ z(J, {
358
+ label: i._({ id: "OZImTR" }),
359
+ value: o.container_listing_limit?.toLocaleString()
360
+ }),
361
+ /*#__PURE__*/ z(J, {
362
+ label: i._({ id: "a4A2uB" }),
363
+ value: o.account_listing_limit?.toLocaleString()
364
+ }),
365
+ /*#__PURE__*/ z(J, {
366
+ label: i._({ id: "zWb/Nn" }),
367
+ value: o.max_header_size
368
+ }),
369
+ /*#__PURE__*/ z(J, {
370
+ label: i._({ id: "RGwfoL" }),
371
+ value: o.max_meta_count
372
+ }),
373
+ /*#__PURE__*/ z(J, {
374
+ label: i._({ id: "8c3/77" }),
375
+ value: o.max_meta_name_length
376
+ }),
377
+ /*#__PURE__*/ z(J, {
378
+ label: i._({ id: "5JDSvn" }),
379
+ value: o.max_meta_value_length
380
+ }),
381
+ /*#__PURE__*/ z(J, {
382
+ label: i._({ id: "ZAx+d1" }),
383
+ value: o.max_meta_overall_size
384
+ }),
385
+ o.bulk_delete && /*#__PURE__*/ z(J, {
386
+ label: i._({ id: "lQ3EIe" }),
387
+ value: o.bulk_delete.max_deletes_per_request.toLocaleString()
388
+ }),
389
+ o.bulk_upload && /*#__PURE__*/ z(J, {
390
+ label: i._({ id: "STc+7E" }),
391
+ value: o.bulk_upload.max_containers_per_extraction.toLocaleString()
392
+ }),
393
+ o.slo && /*#__PURE__*/ z(J, {
394
+ label: i._({ id: "RNBvdl" }),
395
+ value: o.slo.max_manifest_segments.toLocaleString()
396
+ })
397
+ ]
398
+ }),
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))
402
+ })
403
+ ]
404
+ })
405
+ })]
406
+ });
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({
409
+ isOpen: e,
410
+ actionPrefix: "storage.swift.containers.empty"
411
+ }), _ = G.object({ confirm: G.string().transform((e) => e.trim()).refine((e) => e === Q, { message: a._({
412
+ id: "xyaMox",
413
+ values: { CONFIRM_WORD: Q }
414
+ }) }) }), b = q({
415
+ defaultValues: { confirm: "" },
416
+ validators: { onSubmit: _ },
417
+ onSubmit: async () => {
418
+ if (C.isPending || u !== null) return;
419
+ m();
420
+ let e = 0, n = 0, i = [], a = t.length;
421
+ for (let r = 0; r < t.length; r++) {
422
+ f({
423
+ current: r + 1,
424
+ total: a
425
+ });
426
+ let o = t[r];
427
+ try {
428
+ let t = await C.mutateAsync({
429
+ project_id: l,
430
+ container: o.name
431
+ });
432
+ n += t, e++;
433
+ } catch (e) {
434
+ let t = e instanceof Error ? e.message : String(e);
435
+ i.push(`${o.name}: ${t}`);
436
+ }
437
+ }
438
+ e > 0 && await S.storage.swift.listContainers.invalidate(), r?.({
439
+ emptiedCount: e,
440
+ totalDeleted: n,
441
+ errors: i
442
+ }), T();
443
+ }
444
+ }), x = ge(b.store, (e) => e.isSubmitting || e.values.confirm.trim() !== Q), S = w.useUtils(), C = w.storage.swift.emptyContainer.useMutation(), T = () => {
445
+ p(), C.reset(), f(null), b.reset(), g(), n();
446
+ };
447
+ 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, {
451
+ id: "0efWir",
452
+ values: { totalCount: E }
453
+ }),
454
+ open: e,
455
+ onCancel: () => {
456
+ p(), T();
457
+ },
458
+ confirmButtonLabel: k ? a._({ id: "s4Vnq2" }) : a._({ id: "N2S1rs" }),
459
+ confirmButtonVariant: "primary-danger",
460
+ cancelButtonLabel: a._({ id: "dEgA5A" }),
461
+ onConfirm: b.handleSubmit,
462
+ disableConfirmButton: k || x,
463
+ disableCancelButton: k,
464
+ disableCloseButton: k,
465
+ size: "small",
466
+ children: k ? /*#__PURE__*/ z(y, {
467
+ status: "progress",
468
+ title: u ? a._({
469
+ id: "3A+Lhe",
470
+ values: {
471
+ progressCurrent: A,
472
+ progressTotal: ee
473
+ }
474
+ }) : a._({ id: "s4Vnq2" }),
475
+ 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, {
479
+ id: "XXjbEV",
480
+ components: {
481
+ 0: /*#__PURE__*/ z("strong", {}),
482
+ 1: /*#__PURE__*/ z("strong", {})
483
+ }
484
+ }) }),
485
+ /*#__PURE__*/ B("div", {
486
+ className: "my-6",
487
+ children: [/*#__PURE__*/ z("p", {
488
+ className: "text-sm font-semibold",
489
+ children: /*#__PURE__*/ z(U, { id: "F6WEvK" })
490
+ }), /*#__PURE__*/ z("div", {
491
+ className: "bg-theme-background-lvl-2 mt-2 max-h-48 overflow-y-auto rounded p-3",
492
+ children: /*#__PURE__*/ B(i, {
493
+ direction: "vertical",
494
+ gap: "1",
495
+ children: [D.map((e) => {
496
+ let t = e.count;
497
+ return /*#__PURE__*/ B("div", {
498
+ className: "text-theme-default overflow-x-hidden text-sm wrap-anywhere",
499
+ children: [e.name, t != null && /*#__PURE__*/ B("span", {
500
+ className: "text-theme-light ml-2",
501
+ children: [
502
+ "(",
503
+ o._(a._({
504
+ id: "7Ocn0b",
505
+ values: { count: t }
506
+ })),
507
+ ")"
508
+ ]
509
+ })]
510
+ }, e.name);
511
+ }), O > 0 && /*#__PURE__*/ z("div", {
512
+ className: "text-theme-light pt-2 text-sm",
513
+ children: /*#__PURE__*/ z(U, {
514
+ id: "20afDk",
515
+ values: { hiddenCount: O }
516
+ })
517
+ })]
518
+ })
519
+ })]
520
+ }),
521
+ /*#__PURE__*/ z(d, {
522
+ className: "mb-0",
523
+ id: "empty-containers-form",
524
+ onSubmit: (e) => {
525
+ e.preventDefault(), b.handleSubmit();
526
+ },
527
+ children: /*#__PURE__*/ z(v, { children: /*#__PURE__*/ z(b.Field, {
528
+ name: "confirm",
529
+ children: (e) => /*#__PURE__*/ z(h, {
530
+ label: a._({ id: "Ghp863" }),
531
+ placeholder: Q,
532
+ id: e.name,
533
+ name: e.name,
534
+ value: e.state.value,
535
+ onChange: (t) => e.handleChange(t.target.value),
536
+ disabled: k,
537
+ autoFocus: !0,
538
+ required: !0
539
+ })
540
+ }) })
541
+ })
542
+ ] })
543
+ });
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);
548
+ }, [d]);
549
+ let re = (e) => {
550
+ let { message: t, ...n } = k(e);
551
+ _.success(t, n);
552
+ }, le = (e, t) => {
553
+ let { message: n, ...r } = ie(e, t);
554
+ _.warning(n, r);
555
+ }, P = (e, t) => {
556
+ let { message: n, ...r } = N(e, t);
557
+ _.success(n, r);
558
+ }, L = (e, t) => {
559
+ let { message: n, ...r } = ce(e, t);
560
+ _.error(n, r);
561
+ }, R = (e) => {
562
+ let { message: t, ...n } = A(e);
563
+ _.success(t, n);
564
+ }, he = (e, t) => {
565
+ let { message: n, ...r } = se(e, t);
566
+ _.error(n, r);
567
+ }, G = (e) => {
568
+ let { message: t, ...n } = te(e);
569
+ _.success(t, n);
570
+ }, K = (e, t) => {
571
+ let { message: n, ...r } = ee(e, t);
572
+ _.error(n, r);
573
+ }, q = (e) => {
574
+ let { message: t, ...n } = ne(e);
575
+ _.success(t, n);
576
+ }, ge = (e, t) => {
577
+ let { message: n, ...r } = oe(e, t);
578
+ _.error(n, r);
579
+ }, _e = ({ emptiedCount: e, totalDeleted: t, errors: n }) => {
580
+ if (n.length === 0) D([]);
581
+ else {
582
+ let e = new Set(n.map((e) => e.split(": ")[0]));
583
+ D((t) => t.filter((t) => e.has(t)));
584
+ }
585
+ let { message: r, severity: i, ...a } = ae(e, t, n);
586
+ _[i](r, a);
587
+ }, J = {
588
+ options: [
589
+ {
590
+ label: n._({ id: "t0X9+8" }),
591
+ value: "name"
592
+ },
593
+ {
594
+ label: n._({ id: "sxbP3b" }),
595
+ value: "count"
596
+ },
597
+ {
598
+ label: n._({ id: "hgpMHD" }),
599
+ value: "bytes"
600
+ },
601
+ {
602
+ label: n._({ id: "sjMCOP" }),
603
+ value: "last_modified"
604
+ }
605
+ ],
606
+ sortBy: c ?? "name",
607
+ sortDirection: u ?? "asc"
608
+ }, { data: Y, isLoading: X, error: ye } = w.storage.swift.listContainers.useQuery({
609
+ project_id: o,
610
+ 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
+ let n;
613
+ switch (c ?? "name") {
614
+ case "name":
615
+ n = e.name.localeCompare(t.name);
616
+ break;
617
+ case "count":
618
+ n = e.count - t.count;
619
+ break;
620
+ case "bytes":
621
+ n = e.bytes - t.bytes;
622
+ break;
623
+ case "last_modified": {
624
+ if (!e.last_modified && !t.last_modified) return 0;
625
+ if (!e.last_modified || !t.last_modified) return e.last_modified ? -1 : 1;
626
+ let r = E(e.last_modified)?.getTime(), i = E(t.last_modified)?.getTime();
627
+ n = r == null || i == null ? 0 : r - i;
628
+ break;
629
+ }
630
+ default: n = e.name.localeCompare(t.name);
631
+ }
632
+ return (u ?? "asc") === "desc" ? -n : n;
633
+ }), Ce = (Y || []).filter((e) => e.name.toLowerCase().includes(d.toLowerCase())), we = Se(Ce), Te = (e) => {
634
+ let t = typeof e == "string" ? e : "";
635
+ V(() => {
636
+ s({ search: (e) => ({
637
+ ...e,
638
+ search: t || void 0
639
+ }) });
640
+ });
641
+ }, Ee = (e) => {
642
+ let t = e.sortBy?.toString() || "name", n = e.sortDirection || "asc";
643
+ V(() => {
644
+ s({ search: (e) => ({
645
+ ...e,
646
+ sortBy: t,
647
+ sortDirection: n
648
+ }) });
649
+ });
650
+ };
651
+ if (X) return /*#__PURE__*/ z(y, {
652
+ status: "progress",
653
+ title: n._({ id: "WYiUDa" })
654
+ });
655
+ if (ye) return /*#__PURE__*/ z(y, {
656
+ status: "error",
657
+ title: n._({ id: "WZWHIv" }),
658
+ body: ye.message
659
+ });
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", {
662
+ className: "relative",
663
+ children: [
664
+ /*#__PURE__*/ B(i, {
665
+ direction: "vertical",
666
+ children: [
667
+ /*#__PURE__*/ B(i, {
668
+ distribution: "end",
669
+ alignment: "center",
670
+ gap: "2",
671
+ className: "pb-2",
672
+ children: [/*#__PURE__*/ z(i, {
673
+ gap: "0.5",
674
+ alignment: "center",
675
+ children: /*#__PURE__*/ z(ue, {
676
+ options: J.options,
677
+ sortBy: J.sortBy,
678
+ sortDirection: J.sortDirection ?? "asc",
679
+ selectClassName: "min-w-40",
680
+ onSortByChange: (e) => Ee({
681
+ ...J,
682
+ sortBy: e,
683
+ sortDirection: J.sortDirection
684
+ }),
685
+ onSortDirectionChange: (e) => Ee({
686
+ ...J,
687
+ sortDirection: e
688
+ })
689
+ })
690
+ }), /*#__PURE__*/ z(p, {
691
+ variant: "primary",
692
+ className: "whitespace-nowrap",
693
+ onClick: () => g(!0),
694
+ children: /*#__PURE__*/ z(U, { id: "vTh35P" })
695
+ })]
696
+ }),
697
+ /*#__PURE__*/ z(m, { children: /*#__PURE__*/ z(i, {
698
+ direction: "vertical",
699
+ gap: "2",
700
+ children: /*#__PURE__*/ z(i, {
701
+ distribution: "end",
702
+ alignment: "center",
703
+ children: /*#__PURE__*/ z(e, {
704
+ placeholder: n._({ id: "TipzDp" }),
705
+ "data-testid": "searchbar",
706
+ value: O,
707
+ onInput: (e) => {
708
+ let t = e.currentTarget.value;
709
+ j(t), clearTimeout(M.current), M.current = window.setTimeout(() => Te(t), 500);
710
+ },
711
+ onSearch: (e) => {
712
+ clearTimeout(M.current), Te(typeof e == "string" ? e : "");
713
+ },
714
+ onClear: () => {
715
+ clearTimeout(M.current), j(""), Te("");
716
+ }
717
+ })
718
+ })
719
+ }) }),
720
+ /*#__PURE__*/ z(m, { children: /*#__PURE__*/ B(i, {
721
+ distribution: "start",
722
+ gap: "2",
723
+ alignment: "center",
724
+ className: "text-sm",
725
+ children: [/*#__PURE__*/ B(i, {
726
+ gap: "2",
727
+ alignment: "center",
728
+ children: [/*#__PURE__*/ z(b, {
729
+ checked: Ie,
730
+ indeterminate: Le && !Ie,
731
+ onChange: () => {
732
+ D(Ie ? (e) => e.filter((e) => !$.includes(e)) : (e) => [.../* @__PURE__ */ new Set([...e, ...$])]);
733
+ }
734
+ }), /*#__PURE__*/ B(t, {
735
+ className: "flex items-center",
736
+ children: [/*#__PURE__*/ z(l, {
737
+ as: "div",
738
+ children: /*#__PURE__*/ z(p, {
739
+ disabled: !je,
740
+ size: "small",
741
+ icon: "moreVert",
742
+ label: n._({ id: "7L01XJ" })
743
+ })
744
+ }), je && /*#__PURE__*/ z(f, { children: /*#__PURE__*/ z(C, {
745
+ disabled: !je,
746
+ label: r._(n._({
747
+ id: "0Th0CH",
748
+ values: { selectedCount: Me }
749
+ })),
750
+ onClick: () => x(!0)
751
+ }) })]
752
+ })]
753
+ }), /*#__PURE__*/ B("div", {
754
+ className: "text-theme-light ml-auto flex items-center gap-1",
755
+ "data-testid": "containers-info-block",
756
+ children: [
757
+ Fe ? /*#__PURE__*/ z(U, {
758
+ id: "8uPTwT",
759
+ values: {
760
+ filteredCount: Pe,
761
+ totalCount: Ne
762
+ }
763
+ }) : /*#__PURE__*/ z(U, {
764
+ id: "ywe1H/",
765
+ values: { totalCount: Ne }
766
+ }),
767
+ Oe > 0 && /*#__PURE__*/ B(de, { children: [/*#__PURE__*/ z("span", { children: "," }), /*#__PURE__*/ B("span", { children: [
768
+ /*#__PURE__*/ z(U, { id: "kKK8AH" }),
769
+ " ",
770
+ /*#__PURE__*/ z("span", {
771
+ className: "text-theme-default font-semibold",
772
+ children: I(ke)
773
+ })
774
+ ] })] }),
775
+ /*#__PURE__*/ z(Z, {
776
+ serviceInfo: xe,
777
+ accountInfo: Q
778
+ })
779
+ ]
780
+ })]
781
+ }) })
782
+ ]
783
+ }),
784
+ /*#__PURE__*/ z(ve, {
785
+ containers: we,
786
+ createModalOpen: h,
787
+ setCreateModalOpen: g,
788
+ maxContainerNameLength: xe?.swift?.max_container_name_length,
789
+ existingContainers: Y,
790
+ 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,
800
+ selectedContainers: S,
801
+ setSelectedContainers: D,
802
+ hasAnyBulkAction: !0
803
+ }),
804
+ /*#__PURE__*/ z(be, {
805
+ isOpen: v,
806
+ containers: Ae,
807
+ onClose: () => x(!1),
808
+ onComplete: _e
809
+ })
810
+ ]
811
+ });
812
+ };
813
+ //#endregion
814
+ //#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({
817
+ from: "/_auth/projects/$projectId/storage/$provider/$storageType/",
818
+ select: (e) => ({
819
+ project: e.projectId,
820
+ provider: e.provider,
821
+ storageType: e.storageType
822
+ })
823
+ }), { i18n: n, _: r } = W(), i;
824
+ switch (t) {
825
+ case "swift":
826
+ i = n._({ id: "+OEi73" });
827
+ break;
828
+ case "ceph":
829
+ i = n._({ id: "KhNDX4" });
830
+ break;
831
+ default: i = n._({ id: "IWF68U" });
832
+ }
833
+ return /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z(R, {
834
+ title: i,
835
+ projectId: e
836
+ }), e ? /*#__PURE__*/ z(K, {
837
+ resetKeys: [e, t],
838
+ fallback: /*#__PURE__*/ z("div", {
839
+ className: "p-4 text-center",
840
+ children: /*#__PURE__*/ z(U, { id: "diFNkW" })
841
+ }),
842
+ children: (() => {
843
+ 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" });
847
+ }
848
+ })()
849
+ }) : /*#__PURE__*/ z("div", {
850
+ className: "p-4 text-center",
851
+ children: /*#__PURE__*/ z(U, { id: "Z2fZGD" })
852
+ })] });
853
+ }
854
+ var Ce = () => /*#__PURE__*/ z(Se, {});
855
+ //#endregion
856
+ export { Ce as component };
857
+
858
+ //# sourceMappingURL=_storageType-c-DAu8qr.mjs.map