@cobaltcore-dev/aurora 0.2.2 → 0.3.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 (105) hide show
  1. package/dist/client/AuroraApp.d.ts +10 -0
  2. package/dist/client/{ContentHeader-DtBiIwRY.mjs → ContentHeader-B_PWrxbw.mjs} +17 -17
  3. package/dist/client/{ContentHeader-DtBiIwRY.mjs.map → ContentHeader-B_PWrxbw.mjs.map} +1 -1
  4. package/dist/client/{DeleteFlavorModal-rmuYIafD.mjs → DeleteFlavorModal-BkPrQKyE.mjs} +146 -146
  5. package/dist/client/{DeleteFlavorModal-rmuYIafD.mjs.map → DeleteFlavorModal-BkPrQKyE.mjs.map} +1 -1
  6. package/dist/client/{EditSecurityGroupModal-B7Sz9puM.mjs → EditSecurityGroupModal-ad4uzlt0.mjs} +14 -14
  7. package/dist/client/{EditSecurityGroupModal-B7Sz9puM.mjs.map → EditSecurityGroupModal-ad4uzlt0.mjs.map} +1 -1
  8. package/dist/client/{FloatingIpActionModals-CfRJiZqD.mjs → FloatingIpActionModals-lKMwLuL8.mjs} +51 -51
  9. package/dist/client/{FloatingIpActionModals-CfRJiZqD.mjs.map → FloatingIpActionModals-lKMwLuL8.mjs.map} +1 -1
  10. package/dist/client/{ImageToastNotifications-Cw30RXsw.mjs → ImageToastNotifications--U13YiQ_.mjs} +328 -328
  11. package/dist/client/{ImageToastNotifications-Cw30RXsw.mjs.map → ImageToastNotifications--U13YiQ_.mjs.map} +1 -1
  12. package/dist/client/{ListToolbar-DuazvsAu.mjs → ListToolbar-C5lzTrit.mjs} +56 -56
  13. package/dist/client/{ListToolbar-DuazvsAu.mjs.map → ListToolbar-C5lzTrit.mjs.map} +1 -1
  14. package/dist/client/{RouteError-Cyto623-.mjs → RouteError-iP1Vd6bY.mjs} +2 -2
  15. package/dist/client/{RouteError-Cyto623-.mjs.map → RouteError-iP1Vd6bY.mjs.map} +1 -1
  16. package/dist/client/{_flavorId-B-1fYadl.mjs → _flavorId-BaNXUJhA.mjs} +49 -49
  17. package/dist/client/_flavorId-BaNXUJhA.mjs.map +1 -0
  18. package/dist/client/{_flavorId-BYfIHIV_.mjs → _flavorId-CnO76tuy.mjs} +10 -10
  19. package/dist/client/_flavorId-CnO76tuy.mjs.map +1 -0
  20. package/dist/client/{_floatingIpId-IrnN-ozB.mjs → _floatingIpId-C8G20nNt.mjs} +2 -2
  21. package/dist/client/{_floatingIpId-IrnN-ozB.mjs.map → _floatingIpId-C8G20nNt.mjs.map} +1 -1
  22. package/dist/client/{_floatingIpId-FQ5P2qMV.mjs → _floatingIpId-DdKnjdIV.mjs} +36 -36
  23. package/dist/client/{_floatingIpId-FQ5P2qMV.mjs.map → _floatingIpId-DdKnjdIV.mjs.map} +1 -1
  24. package/dist/client/{_imageId-Tx_9bqEc.mjs → _imageId-DdSbxFqG.mjs} +135 -135
  25. package/dist/client/_imageId-DdSbxFqG.mjs.map +1 -0
  26. package/dist/client/{_pcaId-CFuKY82d.mjs → _pcaId-DFkYJEb5.mjs} +136 -136
  27. package/dist/client/{_pcaId-CFuKY82d.mjs.map → _pcaId-DFkYJEb5.mjs.map} +1 -1
  28. package/dist/client/{_pcaId-Bck7S7gJ.mjs → _pcaId-DX_S-3hE.mjs} +2 -2
  29. package/dist/client/{_pcaId-Bck7S7gJ.mjs.map → _pcaId-DX_S-3hE.mjs.map} +1 -1
  30. package/dist/client/{_projectId-PSpuCKO7.mjs → _projectId-DYrcZ3E3.mjs} +9 -9
  31. package/dist/client/{_projectId-PSpuCKO7.mjs.map → _projectId-DYrcZ3E3.mjs.map} +1 -1
  32. package/dist/client/{_projectId-B1VjDd0Z.mjs → _projectId-Dha4XqX4.mjs} +3 -3
  33. package/dist/client/{_projectId-B1VjDd0Z.mjs.map → _projectId-Dha4XqX4.mjs.map} +1 -1
  34. package/dist/client/_projectId-DsSVV2EA.mjs +316 -0
  35. package/dist/client/_projectId-DsSVV2EA.mjs.map +1 -0
  36. package/dist/client/{_projectId-Pxp-RXK4.mjs → _projectId-KH5si25Q.mjs} +2 -2
  37. package/dist/client/{_projectId-Pxp-RXK4.mjs.map → _projectId-KH5si25Q.mjs.map} +1 -1
  38. package/dist/client/{_securityGroupId-VV2lUcGQ.mjs → _securityGroupId-DgaSqYex.mjs} +2 -2
  39. package/dist/client/{_securityGroupId-VV2lUcGQ.mjs.map → _securityGroupId-DgaSqYex.mjs.map} +1 -1
  40. package/dist/client/{_securityGroupId-Dqi6ddw4.mjs → _securityGroupId-O7FXfx0M.mjs} +306 -306
  41. package/dist/client/{_securityGroupId-Dqi6ddw4.mjs.map → _securityGroupId-O7FXfx0M.mjs.map} +1 -1
  42. package/dist/client/{about-B2AzqxFI.mjs → about-DN8n8sN8.mjs} +8 -8
  43. package/dist/client/{about-B2AzqxFI.mjs.map → about-DN8n8sN8.mjs.map} +1 -1
  44. package/dist/client/{build-Cf7iWbpH.mjs → build-CZRvXrAL.mjs} +1047 -1042
  45. package/dist/client/{build-Cf7iWbpH.mjs.map → build-CZRvXrAL.mjs.map} +1 -1
  46. package/dist/client/{constants-CCgR6fKI.mjs → constants-akdIBeTX.mjs} +6 -6
  47. package/dist/client/{constants-CCgR6fKI.mjs.map → constants-akdIBeTX.mjs.map} +1 -1
  48. package/dist/client/{containers-BWERuY0O.mjs → containers-BE2QiLBs.mjs} +748 -748
  49. package/dist/client/{containers-BWERuY0O.mjs.map → containers-BE2QiLBs.mjs.map} +1 -1
  50. package/dist/client/containers-Cs5vOeR2.mjs.map +1 -1
  51. package/dist/client/{containers-DovytjVP.mjs → containers-DmwhE9Uz.mjs} +6 -6
  52. package/dist/client/containers-DmwhE9Uz.mjs.map +1 -0
  53. package/dist/client/flavors-BXPYAFyQ.mjs.map +1 -1
  54. package/dist/client/{flavors-CUiALHcB.mjs → flavors-CY7A6--v.mjs} +2 -2
  55. package/dist/client/{flavors-CUiALHcB.mjs.map → flavors-CY7A6--v.mjs.map} +1 -1
  56. package/dist/client/{flavors-Bovz-I2U.mjs → flavors-pEcGkCut.mjs} +150 -150
  57. package/dist/client/{flavors-Bovz-I2U.mjs.map → flavors-pEcGkCut.mjs.map} +1 -1
  58. package/dist/client/{floatingips-BrjDiY2t.mjs → floatingips-BtL4d4m-.mjs} +118 -118
  59. package/dist/client/{floatingips-BrjDiY2t.mjs.map → floatingips-BtL4d4m-.mjs.map} +1 -1
  60. package/dist/client/{images-DaaCUXMI.mjs → images-C19gCFSy.mjs} +389 -389
  61. package/dist/client/{images-DaaCUXMI.mjs.map → images-C19gCFSy.mjs.map} +1 -1
  62. package/dist/client/images-DM9I8G0p.mjs.map +1 -1
  63. package/dist/client/{images-BZP3pBqj.mjs → images-I9gQfRa7.mjs} +2 -2
  64. package/dist/client/{images-BZP3pBqj.mjs.map → images-I9gQfRa7.mjs.map} +1 -1
  65. package/dist/client/index.d.ts +2 -1
  66. package/dist/client/index.js +416 -418
  67. package/dist/client/index.js.map +1 -1
  68. package/dist/client/objects-B4yrYf_a.mjs.map +1 -1
  69. package/dist/client/{objects-D4zBka5e.mjs → objects-BrYe_RaJ.mjs} +6 -6
  70. package/dist/client/objects-BrYe_RaJ.mjs.map +1 -0
  71. package/dist/client/{objects-Cw4Vu01M.mjs → objects-DOYFFn3Y.mjs} +1013 -1013
  72. package/dist/client/{objects-Cw4Vu01M.mjs.map → objects-DOYFFn3Y.mjs.map} +1 -1
  73. package/dist/client/{overview-2J54-loz.mjs → overview-BjRSFSBh.mjs} +2 -2
  74. package/dist/client/{overview-2J54-loz.mjs.map → overview-BjRSFSBh.mjs.map} +1 -1
  75. package/dist/client/{overview-BnmukbFh.mjs → overview-C4gjtc2q.mjs} +7 -7
  76. package/dist/client/{overview-BnmukbFh.mjs.map → overview-C4gjtc2q.mjs.map} +1 -1
  77. package/dist/client/{overview-D0AAvsmL.mjs → overview-CmQkJ4Hh.mjs} +2 -2
  78. package/dist/client/{overview-D0AAvsmL.mjs.map → overview-CmQkJ4Hh.mjs.map} +1 -1
  79. package/dist/client/{overview-BtIXpYBo.mjs → overview-DTLIAKkJ.mjs} +2 -2
  80. package/dist/client/{overview-BtIXpYBo.mjs.map → overview-DTLIAKkJ.mjs.map} +1 -1
  81. package/dist/client/{pca-V2aaOxZA.mjs → pca-CYFJxSZ2.mjs} +70 -70
  82. package/dist/client/{pca-V2aaOxZA.mjs.map → pca-CYFJxSZ2.mjs.map} +1 -1
  83. package/dist/client/{pca-BqZycwCu.mjs → pca-DzixU9Dl.mjs} +2 -2
  84. package/dist/client/{pca-BqZycwCu.mjs.map → pca-DzixU9Dl.mjs.map} +1 -1
  85. package/dist/client/projects-BsN4bvU2.mjs.map +1 -1
  86. package/dist/client/{projects-0feOw_b6.mjs → projects-BtyjXGq2.mjs} +2 -2
  87. package/dist/client/projects-BtyjXGq2.mjs.map +1 -0
  88. package/dist/client/projects-D3hOC1cy.mjs +95 -0
  89. package/dist/client/projects-D3hOC1cy.mjs.map +1 -0
  90. package/dist/client/{projects-jyIHL6DE.mjs → projects-DwVawmll.mjs} +2 -2
  91. package/dist/client/projects-DwVawmll.mjs.map +1 -0
  92. package/dist/client/{securitygroups-B4MkSBtI.mjs → securitygroups-DMCIDHQS.mjs} +114 -114
  93. package/dist/client/{securitygroups-B4MkSBtI.mjs.map → securitygroups-DMCIDHQS.mjs.map} +1 -1
  94. package/package.json +3 -3
  95. package/dist/client/_flavorId-B-1fYadl.mjs.map +0 -1
  96. package/dist/client/_flavorId-BYfIHIV_.mjs.map +0 -1
  97. package/dist/client/_imageId-Tx_9bqEc.mjs.map +0 -1
  98. package/dist/client/_projectId-Bs4W9hos.mjs +0 -283
  99. package/dist/client/_projectId-Bs4W9hos.mjs.map +0 -1
  100. package/dist/client/containers-DovytjVP.mjs.map +0 -1
  101. package/dist/client/objects-D4zBka5e.mjs.map +0 -1
  102. package/dist/client/projects-0feOw_b6.mjs.map +0 -1
  103. package/dist/client/projects-C1IYOvFQ.mjs +0 -144
  104. package/dist/client/projects-C1IYOvFQ.mjs.map +0 -1
  105. package/dist/client/projects-jyIHL6DE.mjs.map +0 -1
@@ -1,9 +1,9 @@
1
- import { $ as e, A as t, C as n, E as r, G as i, K as a, N as o, T as s, U as c, V as l, W as u, X as d, Y as f, a as p, f as m, i as h, it as g, l as _, m as v, o as y, w as b, z as x } from "./build-Cf7iWbpH.mjs";
1
+ import { $ as e, C as t, E as n, F as r, H as i, J as a, K as o, T as s, W as c, Y as l, Z as u, a as d, at as f, c as p, d as m, i as h, j as g, m as _, q as v, r as y, tt as b, w as x } from "./build-CZRvXrAL.mjs";
2
2
  import { n as S, r as C } from "./trpcClient-BxguzNYF.mjs";
3
3
  import { t as w } from "./cn-C3laVXMm.mjs";
4
4
  import { a as T, d as E, f as D, h as O, l as k, m as A, o as j, r as M, t as N, u as P } from "./md-BivyCkGC.mjs";
5
- import { t as F } from "./objects-D4zBka5e.mjs";
6
- import { t as I } from "./ListToolbar-DuazvsAu.mjs";
5
+ import { t as F } from "./objects-BrYe_RaJ.mjs";
6
+ import { t as I } from "./ListToolbar-C5lzTrit.mjs";
7
7
  import { t as L } from "./formatBytes-D6oa0wU9.mjs";
8
8
  import { t as ee } from "./useProjectId-CgOTejka.mjs";
9
9
  import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
@@ -13,37 +13,37 @@ import { Trans as J, useLingui as te } from "@lingui/react";
13
13
  import { ErrorBoundary as Y } from "react-error-boundary";
14
14
  import { useVirtualizer as ne } from "@tanstack/react-virtual";
15
15
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Objects/DeleteFolderModal.tsx
16
- var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
17
- let { i18n: s, _: c } = te(), l = ee(), { containerName: u } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), d = C.useUtils(), f = W(""), p = C.storage.swift.deleteFolder.useMutation({
16
+ var re = ({ isOpen: e, folder: t, onClose: n, onSuccess: r, onError: i }) => {
17
+ let { i18n: a, _: o } = te(), s = ee(), { containerName: c } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), l = C.useUtils(), d = W(""), p = C.storage.swift.deleteFolder.useMutation({
18
18
  onSuccess: (e) => {
19
- d.storage.swift.listObjects.invalidate({
20
- project_id: l,
21
- container: u
22
- }), i?.(f.current, e);
19
+ l.storage.swift.listObjects.invalidate({
20
+ project_id: s,
21
+ container: c
22
+ }), r?.(d.current, e);
23
23
  },
24
24
  onError: (e) => {
25
- o?.(f.current, e.message);
25
+ i?.(d.current, e.message);
26
26
  },
27
27
  onSettled: () => {
28
28
  m();
29
29
  }
30
30
  });
31
31
  U(() => {
32
- t || p.reset();
33
- }, [t]);
32
+ e || p.reset();
33
+ }, [e]);
34
34
  let m = () => {
35
- p.reset(), r();
35
+ p.reset(), n();
36
36
  }, h = () => {
37
- n && (f.current = n.displayName, p.mutate({
38
- project_id: l,
39
- container: u,
40
- folderPath: n.name,
37
+ t && (d.current = t.displayName, p.mutate({
38
+ project_id: s,
39
+ container: c,
40
+ folderPath: t.name,
41
41
  recursive: !0
42
42
  }));
43
43
  };
44
- if (!t || !n) return null;
45
- let _ = n.displayName;
46
- return /* @__PURE__ */ z(g, {
44
+ if (!e || !t) return null;
45
+ let g = t.displayName;
46
+ return /* @__PURE__ */ z(f, {
47
47
  title: /* @__PURE__ */ B("span", {
48
48
  className: "flex max-w-[400px] items-center gap-1",
49
49
  children: [/* @__PURE__ */ z("span", {
@@ -51,32 +51,32 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
51
51
  children: /* @__PURE__ */ z(J, { id: "js24f6" })
52
52
  }), /* @__PURE__ */ z("span", {
53
53
  className: "truncate font-mono",
54
- title: _,
55
- children: _
54
+ title: g,
55
+ children: g
56
56
  })]
57
57
  }),
58
- open: t,
58
+ open: e,
59
59
  onCancel: m,
60
- confirmButtonLabel: p.isPending ? s._({ id: "EF2EU9" }) : s._({ id: "cnGeoo" }),
60
+ confirmButtonLabel: p.isPending ? a._({ id: "EF2EU9" }) : a._({ id: "cnGeoo" }),
61
61
  confirmButtonVariant: "primary-danger",
62
62
  onConfirm: h,
63
- cancelButtonLabel: s._({ id: "dEgA5A" }),
63
+ cancelButtonLabel: a._({ id: "dEgA5A" }),
64
64
  size: "small",
65
65
  disableConfirmButton: p.isPending,
66
- children: p.isPending ? /* @__PURE__ */ B(e, {
66
+ children: p.isPending ? /* @__PURE__ */ B(b, {
67
67
  direction: "horizontal",
68
68
  alignment: "center",
69
69
  gap: "2",
70
70
  className: "py-4",
71
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "ao/ZJi" })]
72
- }) : /* @__PURE__ */ B(e, {
71
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "ao/ZJi" })]
72
+ }) : /* @__PURE__ */ B(b, {
73
73
  direction: "vertical",
74
74
  gap: "4",
75
75
  children: [/* @__PURE__ */ z("p", {
76
76
  className: "text-theme-default",
77
77
  children: /* @__PURE__ */ z(J, {
78
78
  id: "hueclm",
79
- values: { folderDisplayName: _ },
79
+ values: { folderDisplayName: g },
80
80
  components: { 0: /* @__PURE__ */ z("span", { className: "font-mono font-semibold" }) }
81
81
  })
82
82
  }), /* @__PURE__ */ z("p", {
@@ -88,41 +88,41 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
88
88
  })]
89
89
  })
90
90
  });
91
- }, ie = ({ isOpen: t, object: r, onClose: i, onSuccess: o, onError: s }) => {
92
- let { i18n: c, _: l } = te(), u = ee(), { containerName: d } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), f = C.useUtils(), [p, m] = G(!1), h = W(""), { data: _, isLoading: v, error: y } = C.storage.swift.getObjectMetadata.useQuery({
93
- project_id: u,
94
- container: d,
95
- object: r?.name ?? ""
96
- }, { enabled: t && r !== null }), b = _?.staticLargeObject === !0, x = !!_?.objectManifest, S = C.storage.swift.deleteObject.useMutation({
91
+ }, ie = ({ isOpen: e, object: n, onClose: r, onSuccess: i, onError: a }) => {
92
+ let { i18n: o, _: s } = te(), c = ee(), { containerName: l } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), d = C.useUtils(), [p, m] = G(!1), h = W(""), { data: g, isLoading: _, error: v } = C.storage.swift.getObjectMetadata.useQuery({
93
+ project_id: c,
94
+ container: l,
95
+ object: n?.name ?? ""
96
+ }, { enabled: e && n !== null }), y = g?.staticLargeObject === !0, x = !!g?.objectManifest, S = C.storage.swift.deleteObject.useMutation({
97
97
  onSuccess: () => {
98
- f.storage.swift.listObjects.invalidate({
99
- project_id: u,
100
- container: d
101
- }), o?.(h.current);
98
+ d.storage.swift.listObjects.invalidate({
99
+ project_id: c,
100
+ container: l
101
+ }), i?.(h.current);
102
102
  },
103
103
  onError: (e) => {
104
- s?.(h.current, e.message);
104
+ a?.(h.current, e.message);
105
105
  },
106
106
  onSettled: () => {
107
107
  w();
108
108
  }
109
109
  });
110
110
  U(() => {
111
- t || (S.reset(), m(!1));
112
- }, [t]);
111
+ e || (S.reset(), m(!1));
112
+ }, [e]);
113
113
  let w = () => {
114
- S.reset(), i();
114
+ S.reset(), r();
115
115
  }, T = () => {
116
- r && (h.current = r.displayName, S.mutate({
117
- project_id: u,
118
- container: d,
119
- object: r.name,
120
- ...b && !p ? { multipartManifest: "delete" } : {}
116
+ n && (h.current = n.displayName, S.mutate({
117
+ project_id: c,
118
+ container: l,
119
+ object: n.name,
120
+ ...y && !p ? { multipartManifest: "delete" } : {}
121
121
  }));
122
122
  };
123
- if (!t || !r) return null;
124
- let E = r.displayName, D = v, O = S.isPending, k = y?.message ?? "";
125
- return /* @__PURE__ */ B(g, {
123
+ if (!e || !n) return null;
124
+ let E = n.displayName, D = _, O = S.isPending, k = v?.message ?? "";
125
+ return /* @__PURE__ */ B(f, {
126
126
  title: /* @__PURE__ */ B("span", {
127
127
  className: "flex max-w-[400px] items-center gap-1",
128
128
  children: [/* @__PURE__ */ z("span", {
@@ -134,33 +134,33 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
134
134
  children: E
135
135
  })]
136
136
  }),
137
- open: t,
137
+ open: e,
138
138
  onCancel: w,
139
- confirmButtonLabel: O ? c._({ id: "EF2EU9" }) : c._({ id: "cnGeoo" }),
139
+ confirmButtonLabel: O ? o._({ id: "EF2EU9" }) : o._({ id: "cnGeoo" }),
140
140
  confirmButtonVariant: "primary-danger",
141
141
  onConfirm: T,
142
- cancelButtonLabel: c._({ id: "dEgA5A" }),
142
+ cancelButtonLabel: o._({ id: "dEgA5A" }),
143
143
  size: "small",
144
- disableConfirmButton: D || O || !!y,
145
- children: [y && /* @__PURE__ */ z("p", {
144
+ disableConfirmButton: D || O || !!v,
145
+ children: [v && /* @__PURE__ */ z("p", {
146
146
  className: "text-theme-error mb-4",
147
147
  children: /* @__PURE__ */ z(J, {
148
148
  id: "+p6nHr",
149
149
  values: { metadataErrorMessage: k }
150
150
  })
151
- }), O ? /* @__PURE__ */ B(e, {
151
+ }), O ? /* @__PURE__ */ B(b, {
152
152
  direction: "horizontal",
153
153
  alignment: "center",
154
154
  gap: "2",
155
155
  className: "py-4",
156
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "EF2EU9" })]
157
- }) : D ? /* @__PURE__ */ B(e, {
156
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "EF2EU9" })]
157
+ }) : D ? /* @__PURE__ */ B(b, {
158
158
  direction: "horizontal",
159
159
  alignment: "center",
160
160
  gap: "2",
161
161
  className: "py-4",
162
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "lq/mBZ" })]
163
- }) : y ? null : /* @__PURE__ */ B(e, {
162
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "lq/mBZ" })]
163
+ }) : v ? null : /* @__PURE__ */ B(b, {
164
164
  direction: "vertical",
165
165
  gap: "4",
166
166
  children: [
@@ -172,14 +172,14 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
172
172
  components: { 0: /* @__PURE__ */ z("span", { className: "font-mono font-semibold" }) }
173
173
  })
174
174
  }),
175
- b && /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("p", {
175
+ y && /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("p", {
176
176
  className: "text-theme-default",
177
177
  children: /* @__PURE__ */ z(J, {
178
178
  id: "bQBMTH",
179
179
  components: { 0: /* @__PURE__ */ z("strong", {}) }
180
180
  })
181
- }), /* @__PURE__ */ z(n, {
182
- label: c._({ id: "01/uUD" }),
181
+ }), /* @__PURE__ */ z(t, {
182
+ label: o._({ id: "01/uUD" }),
183
183
  checked: p,
184
184
  onChange: (e) => m(e.target.checked)
185
185
  })] }),
@@ -196,86 +196,86 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
196
196
  ]
197
197
  })]
198
198
  });
199
- }, ae = 50, oe = ({ isOpen: t, object: n, onClose: r, onSuccess: i, onError: o }) => {
200
- let { i18n: s, _: c } = te(), l = ee(), { containerName: u } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), d = C.useUtils(), f = W(""), [p, m] = G(u), [h, x] = G(""), [S, w] = G({}), [E, D] = G(""), [O, A] = G(null), [M, P] = G(!1), [F, I] = G(!0), [L, R] = G(""), [V, K] = G(""), Y = W(null), re = W(null);
199
+ }, ae = 50, oe = ({ isOpen: e, object: t, onClose: n, onSuccess: r, onError: i }) => {
200
+ let { i18n: a, _: o } = te(), s = ee(), { containerName: c } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), l = C.useUtils(), m = W(""), [h, g] = G(c), [v, y] = G(""), [S, w] = G({}), [E, D] = G(""), [O, A] = G(null), [M, P] = G(!1), [F, I] = G(!0), [L, R] = G(""), [V, K] = G(""), Y = W(null), re = W(null);
201
201
  U(() => () => {
202
202
  Y.current && clearTimeout(Y.current);
203
203
  }, []), U(() => {
204
- t && (x(""), w((e) => {
204
+ e && (y(""), w((e) => {
205
205
  let t = { ...e };
206
- return delete t[p], t;
206
+ return delete t[h], t;
207
207
  }), D(""), A(null), P(!1), R(""), K(""));
208
- }, [t, p]), U(() => {
209
- t || (m(u), x(""), w({}), D(""), A(null), P(!1), R(""), K(""));
210
- }, [t, u]);
211
- let { data: ie, isLoading: oe } = C.storage.swift.listContainers.useQuery({ project_id: l }, { enabled: t }), { data: se, isLoading: ce } = C.storage.swift.listObjects.useQuery({
212
- project_id: l,
213
- container: p,
208
+ }, [e, h]), U(() => {
209
+ e || (g(c), y(""), w({}), D(""), A(null), P(!1), R(""), K(""));
210
+ }, [e, c]);
211
+ let { data: ie, isLoading: oe } = C.storage.swift.listContainers.useQuery({ project_id: s }, { enabled: e }), { data: se, isLoading: ce } = C.storage.swift.listObjects.useQuery({
212
+ project_id: s,
213
+ container: h,
214
214
  format: "json",
215
- prefix: h || void 0
216
- }, { enabled: t && !!p }), X = qe(se ?? [], h), Z = (S[p] ?? []).filter((e) => {
217
- let t = e.startsWith(h) ? e.slice(h.length) : null;
215
+ prefix: v || void 0
216
+ }, { enabled: e && !!h }), X = qe(se ?? [], v), Z = (S[h] ?? []).filter((e) => {
217
+ let t = e.startsWith(v) ? e.slice(v.length) : null;
218
218
  return t ? t.split("/").filter(Boolean).length === 1 : !1;
219
219
  }).filter((e) => !X.some((t) => t.name === e)).map((e) => ({
220
220
  kind: "folder",
221
221
  name: e,
222
- displayName: e.slice(h.length).replace(/\/$/, "")
222
+ displayName: e.slice(v.length).replace(/\/$/, "")
223
223
  })), Q = [
224
224
  ...X.filter((e) => e.kind === "folder"),
225
225
  ...Z,
226
226
  ...X.filter((e) => e.kind === "object")
227
227
  ], le = V.trim().length > 0 ? (ie ?? []).filter((e) => e.name.toLowerCase().includes(V.toLowerCase())) : [], ue = le.slice(0, ae), de = le.length - ue.length, fe = C.storage.swift.copyObject.useMutation({
228
228
  onSuccess: () => {
229
- d.storage.swift.listObjects.invalidate({
230
- project_id: l,
231
- container: p
232
- }), i?.(f.current, p, h), pe();
229
+ l.storage.swift.listObjects.invalidate({
230
+ project_id: s,
231
+ container: h
232
+ }), r?.(m.current, h, v), pe();
233
233
  },
234
234
  onError: (e) => {
235
- o?.(f.current, e.message);
235
+ i?.(m.current, e.message);
236
236
  }
237
237
  }), pe = () => {
238
- fe.reset(), r();
238
+ fe.reset(), n();
239
239
  }, me = H((e) => {
240
240
  let t = e.target.value;
241
241
  R(t), Y.current && clearTimeout(Y.current), Y.current = setTimeout(() => K(t), 300);
242
242
  }, []), he = (e) => {
243
243
  let t = Array.isArray(e) ? e[0] : typeof e == "number" ? String(e) : e;
244
- t && (m(t), x(""));
244
+ t && (g(t), y(""));
245
245
  }, ge = (e) => {
246
- x(e), P(!1), D(""), A(null);
246
+ y(e), P(!1), D(""), A(null);
247
247
  }, _e = () => {
248
- if (!h) return;
249
- let e = h.replace(/\/$/, "").split("/");
250
- e.pop(), x(e.length > 0 ? e.join("/") + "/" : ""), P(!1), D(""), A(null);
248
+ if (!v) return;
249
+ let e = v.replace(/\/$/, "").split("/");
250
+ e.pop(), y(e.length > 0 ? e.join("/") + "/" : ""), P(!1), D(""), A(null);
251
251
  }, ve = H((e) => {
252
252
  let t = e.trim();
253
- if (!t) return A(s._({ id: "Fzrzfe" })), !1;
254
- if (t.includes("/")) return A(s._({ id: "Vl4XTj" })), !1;
255
- if (t !== e) return A(s._({ id: "gFKJBP" })), !1;
256
- let n = `${h}${t}/`;
257
- return Q.some((e) => e.name === n) ? (A(s._({ id: "/Qox3b" })), !1) : (A(null), !0);
253
+ if (!t) return A(a._({ id: "Fzrzfe" })), !1;
254
+ if (t.includes("/")) return A(a._({ id: "Vl4XTj" })), !1;
255
+ if (t !== e) return A(a._({ id: "gFKJBP" })), !1;
256
+ let n = `${v}${t}/`;
257
+ return Q.some((e) => e.name === n) ? (A(a._({ id: "/Qox3b" })), !1) : (A(null), !0);
258
258
  }, [
259
259
  Q,
260
- h,
261
- c
260
+ v,
261
+ o
262
262
  ]), ye = () => {
263
263
  if (!ve(E)) return;
264
- let e = `${h}${E.trim()}/`;
264
+ let e = `${v}${E.trim()}/`;
265
265
  w((t) => ({
266
266
  ...t,
267
- [p]: [...t[p] ?? [], e]
268
- })), D(""), P(!1), A(null), x(e);
267
+ [h]: [...t[h] ?? [], e]
268
+ })), D(""), P(!1), A(null), y(e);
269
269
  }, be = (e) => {
270
270
  e.key === "Enter" && ye(), e.key === "Escape" && (P(!1), D(""), A(null));
271
271
  }, xe = () => {
272
- if (!n) return;
273
- f.current = n.displayName;
274
- let e = `/${p}/${h}${n.displayName}`;
272
+ if (!t) return;
273
+ m.current = t.displayName;
274
+ let e = `/${h}/${v}${t.displayName}`;
275
275
  fe.mutate({
276
- project_id: l,
277
- container: u,
278
- object: n.name,
276
+ project_id: s,
277
+ container: c,
278
+ object: t.name,
279
279
  destination: e,
280
280
  freshMetadata: !F
281
281
  });
@@ -285,9 +285,9 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
285
285
  estimateSize: () => 32,
286
286
  overscan: 5
287
287
  });
288
- if (!t || !n) return null;
289
- let $ = n.displayName, Ee = fe.isPending, De = ce, Oe = `/${p}/${h}${$}`, ke = n.name.endsWith(n.displayName) ? n.name.slice(0, n.name.length - n.displayName.length) : "", Ae = p === u && h === ke;
290
- return /* @__PURE__ */ z(g, {
288
+ if (!e || !t) return null;
289
+ let $ = t.displayName, Ee = fe.isPending, De = ce, Oe = `/${h}/${v}${$}`, ke = t.name.endsWith(t.displayName) ? t.name.slice(0, t.name.length - t.displayName.length) : "", Ae = h === c && v === ke;
290
+ return /* @__PURE__ */ z(f, {
291
291
  title: /* @__PURE__ */ B("span", {
292
292
  className: "flex max-w-[500px] items-center gap-1",
293
293
  children: [/* @__PURE__ */ z("span", {
@@ -299,20 +299,20 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
299
299
  children: $
300
300
  })]
301
301
  }),
302
- open: t,
302
+ open: e,
303
303
  onCancel: pe,
304
- confirmButtonLabel: Ee ? s._({ id: "OvEjsP" }) : s._({ id: "he3ygx" }),
304
+ confirmButtonLabel: Ee ? a._({ id: "OvEjsP" }) : a._({ id: "he3ygx" }),
305
305
  onConfirm: xe,
306
- cancelButtonLabel: s._({ id: "dEgA5A" }),
306
+ cancelButtonLabel: a._({ id: "dEgA5A" }),
307
307
  size: "large",
308
308
  disableConfirmButton: Ee || oe || Ae,
309
- children: Ee ? /* @__PURE__ */ B(e, {
309
+ children: Ee ? /* @__PURE__ */ B(b, {
310
310
  direction: "horizontal",
311
311
  alignment: "center",
312
312
  gap: "2",
313
313
  className: "py-8",
314
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "QEtDlS" })]
315
- }) : /* @__PURE__ */ B(e, {
314
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "QEtDlS" })]
315
+ }) : /* @__PURE__ */ B(b, {
316
316
  direction: "vertical",
317
317
  gap: "4",
318
318
  children: [
@@ -326,18 +326,18 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
326
326
  })
327
327
  });
328
328
  })(),
329
- /* @__PURE__ */ z(y, {
330
- label: s._({ id: "QvqBQa" }),
331
- value: p,
329
+ /* @__PURE__ */ z(d, {
330
+ label: a._({ id: "QvqBQa" }),
331
+ value: h,
332
332
  onChange: he,
333
333
  onInputChange: me,
334
- placeholder: s._({ id: "a13wDR" }),
334
+ placeholder: a._({ id: "a13wDR" }),
335
335
  helptext: (() => {
336
- if (oe) return s._({ id: "rhaNn7" });
337
- if (L.trim().length === 0) return s._({ id: "c+fUtV" });
336
+ if (oe) return a._({ id: "rhaNn7" });
337
+ if (L.trim().length === 0) return a._({ id: "c+fUtV" });
338
338
  if (de > 0) {
339
339
  let e = ae, t = le.length;
340
- return s._({
340
+ return a._({
341
341
  id: "qzhUb9",
342
342
  values: {
343
343
  maxOptions: e,
@@ -348,7 +348,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
348
348
  })(),
349
349
  disabled: oe || Ee,
350
350
  required: !0,
351
- children: ue.map((e) => /* @__PURE__ */ z(v, {
351
+ children: ue.map((e) => /* @__PURE__ */ z(_, {
352
352
  value: e.name,
353
353
  children: e.name
354
354
  }, e.name))
@@ -359,7 +359,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
359
359
  children: [/* @__PURE__ */ z("span", {
360
360
  className: "text-sm font-medium",
361
361
  children: /* @__PURE__ */ z(J, { id: "Afh/Lb" })
362
- }), /* @__PURE__ */ z(_, {
362
+ }), /* @__PURE__ */ z(p, {
363
363
  size: "small",
364
364
  variant: "subdued",
365
365
  icon: "addCircle",
@@ -367,13 +367,13 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
367
367
  P(!0), D(""), A(null);
368
368
  },
369
369
  disabled: Ee,
370
- title: s._({ id: "mxPfpY" }),
370
+ title: a._({ id: "mxPfpY" }),
371
371
  children: /* @__PURE__ */ z(J, { id: "tX5yOZ" })
372
372
  })]
373
373
  }),
374
374
  /* @__PURE__ */ B("div", {
375
375
  className: "border-theme-background-lvl-2 bg-theme-background-lvl-1 flex items-center gap-2 border-b px-3 py-2 text-sm",
376
- children: [h ? /* @__PURE__ */ B("button", {
376
+ children: [v ? /* @__PURE__ */ B("button", {
377
377
  type: "button",
378
378
  onClick: _e,
379
379
  className: "text-theme-link hover:text-theme-default flex items-center gap-1",
@@ -381,20 +381,20 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
381
381
  }) : /* @__PURE__ */ z("span", {
382
382
  className: "text-theme-light",
383
383
  children: /* @__PURE__ */ z(J, { id: "eyRsaH" })
384
- }), h && /* @__PURE__ */ B("span", {
384
+ }), v && /* @__PURE__ */ B("span", {
385
385
  className: "text-theme-light truncate font-mono text-xs",
386
- children: ["/ ", h]
386
+ children: ["/ ", v]
387
387
  })]
388
388
  }),
389
389
  /* @__PURE__ */ B("div", {
390
390
  ref: re,
391
391
  className: "border-theme-background-lvl-2 max-h-56 overflow-y-auto rounded-b border",
392
- children: [De ? /* @__PURE__ */ B(e, {
392
+ children: [De ? /* @__PURE__ */ B(b, {
393
393
  direction: "horizontal",
394
394
  alignment: "center",
395
395
  gap: "2",
396
396
  className: "py-6",
397
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "Z3FXyt" })]
397
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "Z3FXyt" })]
398
398
  }) : we.length === 0 && !M ? /* @__PURE__ */ z("div", {
399
399
  className: "text-theme-light px-4 py-6 text-center text-sm",
400
400
  children: /* @__PURE__ */ z(J, { id: "vcQSZh" })
@@ -440,10 +440,10 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
440
440
  })
441
441
  }), M && /* @__PURE__ */ z("div", {
442
442
  className: "border-theme-background-lvl-2 border-t px-4 py-3",
443
- children: /* @__PURE__ */ z(e, {
443
+ children: /* @__PURE__ */ z(b, {
444
444
  direction: "vertical",
445
445
  gap: "2",
446
- children: /* @__PURE__ */ B(e, {
446
+ children: /* @__PURE__ */ B(b, {
447
447
  direction: "horizontal",
448
448
  gap: "2",
449
449
  alignment: "center",
@@ -452,26 +452,26 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
452
452
  size: 16,
453
453
  className: "text-theme-light shrink-0"
454
454
  }),
455
- /* @__PURE__ */ z(b, {
455
+ /* @__PURE__ */ z(x, {
456
456
  value: E,
457
457
  onChange: (e) => {
458
458
  D(e.target.value), O && A(null);
459
459
  },
460
460
  onKeyDown: be,
461
- placeholder: s._({ id: "KzUd7m" }),
461
+ placeholder: a._({ id: "KzUd7m" }),
462
462
  invalid: !!O,
463
463
  errortext: O ?? void 0,
464
464
  autoFocus: !0,
465
465
  className: "flex-1"
466
466
  }),
467
- /* @__PURE__ */ z(_, {
467
+ /* @__PURE__ */ z(p, {
468
468
  size: "small",
469
469
  variant: "primary",
470
470
  onClick: ye,
471
471
  disabled: !E.trim(),
472
472
  children: /* @__PURE__ */ z(J, { id: "hYgDIe" })
473
473
  }),
474
- /* @__PURE__ */ z(_, {
474
+ /* @__PURE__ */ z(p, {
475
475
  size: "small",
476
476
  variant: "subdued",
477
477
  onClick: () => {
@@ -488,8 +488,8 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
488
488
  /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("p", {
489
489
  className: "text-theme-light mb-1",
490
490
  children: /* @__PURE__ */ z(J, { id: "Z/eWPC" })
491
- }), /* @__PURE__ */ z(b, {
492
- label: s._({ id: "Vh/Uj5" }),
491
+ }), /* @__PURE__ */ z(x, {
492
+ label: a._({ id: "Vh/Uj5" }),
493
493
  value: Oe,
494
494
  readOnly: !0,
495
495
  className: "font-mono"
@@ -509,107 +509,107 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
509
509
  ]
510
510
  })
511
511
  });
512
- }, se = 50, ce = ({ isOpen: t, object: n, onClose: r, onSuccess: i, onError: o }) => {
513
- let { i18n: s, _: c } = te(), l = ee(), { containerName: u } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), d = C.useUtils(), f = W(""), [p, m] = G(u), [h, x] = G(""), [S, w] = G(""), [E, D] = G(null), [O, A] = G({}), [M, P] = G(""), [F, I] = G(null), [L, R] = G(!1), [V, K] = G(""), [Y, re] = G(""), ie = W(null), ae = W(null);
512
+ }, se = 50, ce = ({ isOpen: e, object: t, onClose: n, onSuccess: r, onError: i }) => {
513
+ let { i18n: a, _: o } = te(), s = ee(), { containerName: c } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), l = C.useUtils(), m = W(""), [h, g] = G(c), [v, y] = G(""), [S, w] = G(""), [E, D] = G(null), [O, A] = G({}), [M, P] = G(""), [F, I] = G(null), [L, R] = G(!1), [V, K] = G(""), [Y, re] = G(""), ie = W(null), ae = W(null);
514
514
  U(() => () => {
515
515
  ie.current && clearTimeout(ie.current);
516
516
  }, []), U(() => {
517
- t && (x(""), A((e) => {
517
+ e && (y(""), A((e) => {
518
518
  let t = { ...e };
519
- return delete t[p], t;
519
+ return delete t[h], t;
520
520
  }), P(""), I(null), R(!1), K(""), re(""), D(null));
521
- }, [t, p]), U(() => {
522
- t && n && w(n.displayName);
523
- }, [t, n]), U(() => {
524
- t || (m(u), x(""), A({}), P(""), I(null), R(!1), K(""), re(""), w(""), D(null));
525
- }, [t, u]);
526
- let { data: oe, isLoading: ce } = C.storage.swift.listContainers.useQuery({ project_id: l }, { enabled: t }), { data: X, isLoading: Z } = C.storage.swift.listObjects.useQuery({
527
- project_id: l,
528
- container: p,
521
+ }, [e, h]), U(() => {
522
+ e && t && w(t.displayName);
523
+ }, [e, t]), U(() => {
524
+ e || (g(c), y(""), A({}), P(""), I(null), R(!1), K(""), re(""), w(""), D(null));
525
+ }, [e, c]);
526
+ let { data: oe, isLoading: ce } = C.storage.swift.listContainers.useQuery({ project_id: s }, { enabled: e }), { data: X, isLoading: Z } = C.storage.swift.listObjects.useQuery({
527
+ project_id: s,
528
+ container: h,
529
529
  format: "json",
530
- prefix: h || void 0
531
- }, { enabled: t && !!p }), Q = qe(X ?? [], h), le = (O[p] ?? []).filter((e) => {
532
- let t = e.startsWith(h) ? e.slice(h.length) : null;
530
+ prefix: v || void 0
531
+ }, { enabled: e && !!h }), Q = qe(X ?? [], v), le = (O[h] ?? []).filter((e) => {
532
+ let t = e.startsWith(v) ? e.slice(v.length) : null;
533
533
  return t ? t.split("/").filter(Boolean).length === 1 : !1;
534
534
  }).filter((e) => !Q.some((t) => t.name === e)).map((e) => ({
535
535
  kind: "folder",
536
536
  name: e,
537
- displayName: e.slice(h.length).replace(/\/$/, "")
537
+ displayName: e.slice(v.length).replace(/\/$/, "")
538
538
  })), ue = [
539
539
  ...Q.filter((e) => e.kind === "folder"),
540
540
  ...le,
541
541
  ...Q.filter((e) => e.kind === "object")
542
542
  ], de = Y.trim().length > 0 ? (oe ?? []).filter((e) => e.name.toLowerCase().includes(Y.toLowerCase())) : [], fe = de.slice(0, se), pe = de.length - fe.length, me = C.storage.swift.deleteObject.useMutation({
543
543
  onSuccess: () => {
544
- [...new Set([u, p])].forEach((e) => d.storage.swift.listObjects.invalidate({
545
- project_id: l,
544
+ [...new Set([c, h])].forEach((e) => l.storage.swift.listObjects.invalidate({
545
+ project_id: s,
546
546
  container: e
547
- })), i?.(f.current, p, h);
547
+ })), r?.(m.current, h, v);
548
548
  },
549
549
  onError: (e) => {
550
- o?.(f.current, e.message);
550
+ i?.(m.current, e.message);
551
551
  },
552
552
  onSettled: () => {
553
553
  ge();
554
554
  }
555
555
  }), he = C.storage.swift.copyObject.useMutation({
556
556
  onSuccess: () => {
557
- n && me.mutate({
558
- project_id: l,
559
- container: u,
560
- object: n.name
557
+ t && me.mutate({
558
+ project_id: s,
559
+ container: c,
560
+ object: t.name
561
561
  });
562
562
  },
563
563
  onError: (e) => {
564
- o?.(f.current, e.message), ge();
564
+ i?.(m.current, e.message), ge();
565
565
  }
566
566
  }), ge = () => {
567
- he.reset(), me.reset(), r();
567
+ he.reset(), me.reset(), n();
568
568
  }, _e = H((e) => {
569
569
  let t = e.target.value;
570
570
  K(t), ie.current && clearTimeout(ie.current), ie.current = setTimeout(() => re(t), 300);
571
571
  }, []), ve = (e) => {
572
572
  let t = Array.isArray(e) ? e[0] : typeof e == "number" ? String(e) : e;
573
- t && (m(t), x(""));
573
+ t && (g(t), y(""));
574
574
  }, ye = (e) => {
575
- x(e), R(!1), P(""), I(null);
575
+ y(e), R(!1), P(""), I(null);
576
576
  }, be = () => {
577
- if (!h) return;
578
- let e = h.replace(/\/$/, "").split("/");
579
- e.pop(), x(e.length > 0 ? e.join("/") + "/" : ""), R(!1), P(""), I(null);
577
+ if (!v) return;
578
+ let e = v.replace(/\/$/, "").split("/");
579
+ e.pop(), y(e.length > 0 ? e.join("/") + "/" : ""), R(!1), P(""), I(null);
580
580
  }, xe = H((e) => {
581
581
  let t = e.trim();
582
- if (!t) return I(s._({ id: "Fzrzfe" })), !1;
583
- if (t.includes("/")) return I(s._({ id: "Vl4XTj" })), !1;
584
- if (t !== e) return I(s._({ id: "gFKJBP" })), !1;
585
- let n = `${h}${t}/`;
586
- return ue.some((e) => e.name === n) ? (I(s._({ id: "/Qox3b" })), !1) : (I(null), !0);
582
+ if (!t) return I(a._({ id: "Fzrzfe" })), !1;
583
+ if (t.includes("/")) return I(a._({ id: "Vl4XTj" })), !1;
584
+ if (t !== e) return I(a._({ id: "gFKJBP" })), !1;
585
+ let n = `${v}${t}/`;
586
+ return ue.some((e) => e.name === n) ? (I(a._({ id: "/Qox3b" })), !1) : (I(null), !0);
587
587
  }, [
588
588
  ue,
589
- h,
590
- c
589
+ v,
590
+ o
591
591
  ]), Se = H((e) => {
592
592
  let t = e.trim();
593
- return t ? t.includes("/") ? (D(s._({ id: "NZJhro" })), !1) : t === e ? (D(null), !0) : (D(s._({ id: "Erlvqg" })), !1) : (D(s._({ id: "MtzSbv" })), !1);
594
- }, [c]), Ce = () => {
593
+ return t ? t.includes("/") ? (D(a._({ id: "NZJhro" })), !1) : t === e ? (D(null), !0) : (D(a._({ id: "Erlvqg" })), !1) : (D(a._({ id: "MtzSbv" })), !1);
594
+ }, [o]), Ce = () => {
595
595
  if (!xe(M)) return;
596
- let e = `${h}${M.trim()}/`;
596
+ let e = `${v}${M.trim()}/`;
597
597
  A((t) => ({
598
598
  ...t,
599
- [p]: [...t[p] ?? [], e]
600
- })), P(""), R(!1), I(null), x(e);
599
+ [h]: [...t[h] ?? [], e]
600
+ })), P(""), R(!1), I(null), y(e);
601
601
  }, we = (e) => {
602
602
  e.key === "Enter" && Ce(), e.key === "Escape" && (R(!1), P(""), I(null));
603
603
  }, Te = () => {
604
- if (!n || !Se(S)) return;
604
+ if (!t || !Se(S)) return;
605
605
  let e = S.trim();
606
- f.current = e;
607
- let t = `/${p}/${h}${e}`;
606
+ m.current = e;
607
+ let n = `/${h}/${v}${e}`;
608
608
  he.mutate({
609
- project_id: l,
610
- container: u,
611
- object: n.name,
612
- destination: t,
609
+ project_id: s,
610
+ container: c,
611
+ object: t.name,
612
+ destination: n,
613
613
  freshMetadata: !1
614
614
  });
615
615
  }, $ = ue.filter((e) => e.kind === "folder"), Ee = ue.filter((e) => e.kind === "object"), De = [...$, ...Ee], Oe = ne({
@@ -618,9 +618,9 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
618
618
  estimateSize: () => 32,
619
619
  overscan: 5
620
620
  });
621
- if (!t || !n) return null;
622
- let ke = he.isPending || me.isPending, Ae = Z, je = `/${p}/${h}${S.trim() || n.displayName}`, Me = n.name.endsWith(n.displayName) ? n.name.slice(0, n.name.length - n.displayName.length) : "", Ne = p === u && h === Me && S.trim() === n.displayName;
623
- return /* @__PURE__ */ z(g, {
621
+ if (!e || !t) return null;
622
+ let ke = he.isPending || me.isPending, Ae = Z, je = `/${h}/${v}${S.trim() || t.displayName}`, Me = t.name.endsWith(t.displayName) ? t.name.slice(0, t.name.length - t.displayName.length) : "", Ne = h === c && v === Me && S.trim() === t.displayName;
623
+ return /* @__PURE__ */ z(f, {
624
624
  title: /* @__PURE__ */ B("span", {
625
625
  className: "flex max-w-[500px] items-center gap-1",
626
626
  children: [/* @__PURE__ */ z("span", {
@@ -628,24 +628,24 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
628
628
  children: /* @__PURE__ */ z(J, { id: "J6EOll" })
629
629
  }), /* @__PURE__ */ z("span", {
630
630
  className: "truncate font-mono",
631
- title: n.displayName,
632
- children: n.displayName
631
+ title: t.displayName,
632
+ children: t.displayName
633
633
  })]
634
634
  }),
635
- open: t,
635
+ open: e,
636
636
  onCancel: ge,
637
- confirmButtonLabel: ke ? s._({ id: "K8Qnlj" }) : s._({ id: "QWdKwH" }),
637
+ confirmButtonLabel: ke ? a._({ id: "K8Qnlj" }) : a._({ id: "QWdKwH" }),
638
638
  onConfirm: Te,
639
- cancelButtonLabel: s._({ id: "dEgA5A" }),
639
+ cancelButtonLabel: a._({ id: "dEgA5A" }),
640
640
  size: "large",
641
641
  disableConfirmButton: ke || ce || Ne,
642
- children: ke ? /* @__PURE__ */ B(e, {
642
+ children: ke ? /* @__PURE__ */ B(b, {
643
643
  direction: "horizontal",
644
644
  alignment: "center",
645
645
  gap: "2",
646
646
  className: "py-8",
647
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "1H2g6v" })]
648
- }) : /* @__PURE__ */ B(e, {
647
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "1H2g6v" })]
648
+ }) : /* @__PURE__ */ B(b, {
649
649
  direction: "vertical",
650
650
  gap: "4",
651
651
  children: [
@@ -665,8 +665,8 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
665
665
  /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("p", {
666
666
  className: "text-theme-light mb-1",
667
667
  children: /* @__PURE__ */ z(J, { id: "rAtQcX" })
668
- }), /* @__PURE__ */ z(b, {
669
- label: s._({ id: "f+Uq1E" }),
668
+ }), /* @__PURE__ */ z(x, {
669
+ label: a._({ id: "f+Uq1E" }),
670
670
  value: S,
671
671
  onChange: (e) => {
672
672
  w(e.target.value), E && D(null);
@@ -675,18 +675,18 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
675
675
  errortext: E ?? void 0,
676
676
  required: !0
677
677
  })] }),
678
- /* @__PURE__ */ z(y, {
679
- label: s._({ id: "QvqBQa" }),
680
- value: p,
678
+ /* @__PURE__ */ z(d, {
679
+ label: a._({ id: "QvqBQa" }),
680
+ value: h,
681
681
  onChange: ve,
682
682
  onInputChange: _e,
683
- placeholder: s._({ id: "a13wDR" }),
683
+ placeholder: a._({ id: "a13wDR" }),
684
684
  helptext: (() => {
685
- if (ce) return s._({ id: "rhaNn7" });
686
- if (V.trim().length === 0) return s._({ id: "c+fUtV" });
685
+ if (ce) return a._({ id: "rhaNn7" });
686
+ if (V.trim().length === 0) return a._({ id: "c+fUtV" });
687
687
  if (pe > 0) {
688
688
  let e = se, t = de.length;
689
- return s._({
689
+ return a._({
690
690
  id: "qzhUb9",
691
691
  values: {
692
692
  maxOptions: e,
@@ -697,7 +697,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
697
697
  })(),
698
698
  disabled: ce || ke,
699
699
  required: !0,
700
- children: fe.map((e) => /* @__PURE__ */ z(v, {
700
+ children: fe.map((e) => /* @__PURE__ */ z(_, {
701
701
  value: e.name,
702
702
  children: e.name
703
703
  }, e.name))
@@ -708,7 +708,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
708
708
  children: [/* @__PURE__ */ z("span", {
709
709
  className: "text-sm font-medium",
710
710
  children: /* @__PURE__ */ z(J, { id: "Afh/Lb" })
711
- }), /* @__PURE__ */ z(_, {
711
+ }), /* @__PURE__ */ z(p, {
712
712
  size: "small",
713
713
  variant: "subdued",
714
714
  icon: "addCircle",
@@ -716,13 +716,13 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
716
716
  R(!0), P(""), I(null);
717
717
  },
718
718
  disabled: ke,
719
- title: s._({ id: "mxPfpY" }),
719
+ title: a._({ id: "mxPfpY" }),
720
720
  children: /* @__PURE__ */ z(J, { id: "tX5yOZ" })
721
721
  })]
722
722
  }),
723
723
  /* @__PURE__ */ B("div", {
724
724
  className: "border-theme-background-lvl-2 bg-theme-background-lvl-1 flex items-center gap-2 border-b px-3 py-2 text-sm",
725
- children: [h ? /* @__PURE__ */ B("button", {
725
+ children: [v ? /* @__PURE__ */ B("button", {
726
726
  type: "button",
727
727
  onClick: be,
728
728
  className: "text-theme-link hover:text-theme-default flex items-center gap-1",
@@ -730,20 +730,20 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
730
730
  }) : /* @__PURE__ */ z("span", {
731
731
  className: "text-theme-light",
732
732
  children: /* @__PURE__ */ z(J, { id: "eyRsaH" })
733
- }), h && /* @__PURE__ */ B("span", {
733
+ }), v && /* @__PURE__ */ B("span", {
734
734
  className: "text-theme-light truncate font-mono text-xs",
735
- children: ["/ ", h]
735
+ children: ["/ ", v]
736
736
  })]
737
737
  }),
738
738
  /* @__PURE__ */ B("div", {
739
739
  ref: ae,
740
740
  className: "border-theme-background-lvl-2 max-h-56 overflow-y-auto rounded-b border",
741
- children: [Ae ? /* @__PURE__ */ B(e, {
741
+ children: [Ae ? /* @__PURE__ */ B(b, {
742
742
  direction: "horizontal",
743
743
  alignment: "center",
744
744
  gap: "2",
745
745
  className: "py-6",
746
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "Z3FXyt" })]
746
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "Z3FXyt" })]
747
747
  }) : De.length === 0 && !L ? /* @__PURE__ */ z("div", {
748
748
  className: "text-theme-light px-4 py-6 text-center text-sm",
749
749
  children: /* @__PURE__ */ z(J, { id: "vcQSZh" })
@@ -789,10 +789,10 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
789
789
  })
790
790
  }), L && /* @__PURE__ */ z("div", {
791
791
  className: "border-theme-background-lvl-2 border-t px-4 py-3",
792
- children: /* @__PURE__ */ z(e, {
792
+ children: /* @__PURE__ */ z(b, {
793
793
  direction: "vertical",
794
794
  gap: "2",
795
- children: /* @__PURE__ */ B(e, {
795
+ children: /* @__PURE__ */ B(b, {
796
796
  direction: "horizontal",
797
797
  gap: "2",
798
798
  alignment: "center",
@@ -801,26 +801,26 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
801
801
  size: 16,
802
802
  className: "text-theme-light shrink-0"
803
803
  }),
804
- /* @__PURE__ */ z(b, {
804
+ /* @__PURE__ */ z(x, {
805
805
  value: M,
806
806
  onChange: (e) => {
807
807
  P(e.target.value), F && I(null);
808
808
  },
809
809
  onKeyDown: we,
810
- placeholder: s._({ id: "KzUd7m" }),
810
+ placeholder: a._({ id: "KzUd7m" }),
811
811
  invalid: !!F,
812
812
  errortext: F ?? void 0,
813
813
  autoFocus: !0,
814
814
  className: "flex-1"
815
815
  }),
816
- /* @__PURE__ */ z(_, {
816
+ /* @__PURE__ */ z(p, {
817
817
  size: "small",
818
818
  variant: "primary",
819
819
  onClick: Ce,
820
820
  disabled: !M.trim(),
821
821
  children: /* @__PURE__ */ z(J, { id: "hYgDIe" })
822
822
  }),
823
- /* @__PURE__ */ z(_, {
823
+ /* @__PURE__ */ z(p, {
824
824
  size: "small",
825
825
  variant: "subdued",
826
826
  onClick: () => {
@@ -837,8 +837,8 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
837
837
  /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("p", {
838
838
  className: "text-theme-light mb-1",
839
839
  children: /* @__PURE__ */ z(J, { id: "rlgAtt" })
840
- }), /* @__PURE__ */ z(b, {
841
- label: s._({ id: "Vh/Uj5" }),
840
+ }), /* @__PURE__ */ z(x, {
841
+ label: a._({ id: "Vh/Uj5" }),
842
842
  value: je,
843
843
  readOnly: !0,
844
844
  className: "font-mono"
@@ -846,86 +846,86 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
846
846
  ]
847
847
  })
848
848
  });
849
- }, X = "custom", Z = ({ isOpen: t, object: n, account: r, onClose: i, onCopySuccess: o }) => {
850
- let { i18n: s, _: c } = te(), l = ee(), { containerName: u } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), d = [
849
+ }, X = "custom", Z = ({ isOpen: e, object: t, account: n, onClose: r, onCopySuccess: i }) => {
850
+ let { i18n: a, _: o } = te(), s = ee(), { containerName: c } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), l = [
851
851
  {
852
- labelKey: s._({ id: "vp5vfW" }),
852
+ labelKey: a._({ id: "vp5vfW" }),
853
853
  seconds: 3600
854
854
  },
855
855
  {
856
- labelKey: s._({ id: "VaA9mu" }),
856
+ labelKey: a._({ id: "VaA9mu" }),
857
857
  seconds: 86400
858
858
  },
859
859
  {
860
- labelKey: s._({ id: "rJe6vw" }),
860
+ labelKey: a._({ id: "rJe6vw" }),
861
861
  seconds: 604800
862
862
  }
863
- ], [f, _] = G(String(d[1].seconds)), [v, y] = G(""), [x, S] = G(null), [w, T] = G(!1), [E, D] = G(null), [O, k] = G(null), [A, j] = G(!1), [M, N] = G(null), [P, F] = G(null), I = W(""), L = W(null), R = W(0), V = (e) => {
863
+ ], [d, p] = G(String(l[1].seconds)), [g, _] = G(""), [v, S] = G(null), [w, T] = G(!1), [E, D] = G(null), [O, k] = G(null), [A, j] = G(!1), [M, N] = G(null), [P, F] = G(null), I = W(""), L = W(null), R = W(0), V = (e) => {
864
864
  D(e.url), k(e.expiresAt), j(!1), N(null);
865
865
  }, H = (e) => {
866
866
  e.message.includes("Temp URL key not configured") ? (j(!0), N(null)) : (N(e.message), j(!1));
867
867
  }, K = C.storage.swift.generateTempUrl.useMutation();
868
- U(() => (t || (R.current += 1, L.current &&= (clearTimeout(L.current), null), K.reset(), D(null), k(null), _(String(d[1].seconds)), y(""), S(null), T(!1), j(!1), N(null), F(null)), () => {
868
+ U(() => (e || (R.current += 1, L.current &&= (clearTimeout(L.current), null), K.reset(), D(null), k(null), p(String(l[1].seconds)), _(""), S(null), T(!1), j(!1), N(null), F(null)), () => {
869
869
  L.current && clearTimeout(L.current);
870
- }), [t]);
870
+ }), [e]);
871
871
  let Y = () => {
872
- if (!v.trim()) return null;
873
- let e = Number(v);
872
+ if (!g.trim()) return null;
873
+ let e = Number(g);
874
874
  return Number.isInteger(e) && e > 0 ? e : null;
875
875
  }, ne = () => {
876
- if (f === X) {
876
+ if (d === X) {
877
877
  let e = Y();
878
878
  return e === null ? null : e * 60;
879
879
  }
880
- return parseInt(f, 10);
880
+ return parseInt(d, 10);
881
881
  }, re = () => {
882
- if (!n) return;
883
- if (f === X) {
882
+ if (!t) return;
883
+ if (d === X) {
884
884
  if (Y() === null) {
885
- S(s._({ id: "jSG7wx" }));
885
+ S(a._({ id: "jSG7wx" }));
886
886
  return;
887
887
  }
888
888
  S(null);
889
889
  }
890
890
  let e = ne();
891
891
  if (e === null) return;
892
- I.current = n.displayName, D(null), k(null), T(!1);
893
- let t = ++R.current;
892
+ I.current = t.displayName, D(null), k(null), T(!1);
893
+ let r = ++R.current;
894
894
  K.mutate({
895
- project_id: l,
896
- container: u,
897
- object: n.name,
895
+ project_id: s,
896
+ container: c,
897
+ object: t.name,
898
898
  method: "GET",
899
899
  expiresIn: e,
900
- ...r ? { account: r } : {}
900
+ ...n ? { account: n } : {}
901
901
  }, {
902
902
  onSuccess: (e) => {
903
- t === R.current && V(e);
903
+ r === R.current && V(e);
904
904
  },
905
905
  onError: (e) => {
906
- t === R.current && H(e);
906
+ r === R.current && H(e);
907
907
  }
908
908
  });
909
909
  }, ie = () => {
910
910
  E && (F(null), navigator.clipboard.writeText(E).then(() => {
911
- T(!0), o?.(I.current), L.current && clearTimeout(L.current), L.current = setTimeout(() => {
911
+ T(!0), i?.(I.current), L.current && clearTimeout(L.current), L.current = setTimeout(() => {
912
912
  L.current = null, T(!1);
913
913
  }, 2e3);
914
914
  }).catch(() => {
915
- F(s._({ id: "go0J2x" }));
915
+ F(a._({ id: "go0J2x" }));
916
916
  }));
917
917
  }, ae = (e) => {
918
- let t = String(d[1].seconds), n = typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) && typeof e[0] == "string" ? e[0] : "", r = new Set([...d.map((e) => String(e.seconds)), X]), i = n && r.has(n) ? n : t;
919
- _(i), i !== X && (y(""), S(null)), D(null), k(null), T(!1), N(null), F(null), j(!1);
918
+ let t = String(l[1].seconds), n = typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) && typeof e[0] == "string" ? e[0] : "", r = new Set([...l.map((e) => String(e.seconds)), X]), i = n && r.has(n) ? n : t;
919
+ p(i), i !== X && (_(""), S(null)), D(null), k(null), T(!1), N(null), F(null), j(!1);
920
920
  }, oe = (e) => {
921
- y(e.target.value), x && S(null), D(null), k(null), T(!1), N(null), F(null), j(!1);
921
+ _(e.target.value), v && S(null), D(null), k(null), T(!1), N(null), F(null), j(!1);
922
922
  };
923
- if (!t || !n) return null;
924
- let se = n.displayName, ce = K.isPending, Z = f === X, Q = O ? (/* @__PURE__ */ new Date(O * 1e3)).toLocaleString() : null, le = f === X ? v ? Y() === 1 ? s._({ id: "4mbrAq" }) : s._({
923
+ if (!e || !t) return null;
924
+ let se = t.displayName, ce = K.isPending, Z = d === X, Q = O ? (/* @__PURE__ */ new Date(O * 1e3)).toLocaleString() : null, le = d === X ? g ? Y() === 1 ? a._({ id: "4mbrAq" }) : a._({
925
925
  id: "wbqM4L",
926
- values: { customMinutes: v }
927
- }) : null : d.find((e) => String(e.seconds) === f)?.labelKey ?? null;
928
- return /* @__PURE__ */ z(g, {
926
+ values: { customMinutes: g }
927
+ }) : null : l.find((e) => String(e.seconds) === d)?.labelKey ?? null;
928
+ return /* @__PURE__ */ z(f, {
929
929
  title: /* @__PURE__ */ B("span", {
930
930
  className: "flex max-w-[400px] items-center gap-1",
931
931
  children: [/* @__PURE__ */ z("span", {
@@ -937,14 +937,14 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
937
937
  children: se
938
938
  })]
939
939
  }),
940
- open: t,
941
- onCancel: i,
942
- confirmButtonLabel: ce ? s._({ id: "NOdFZR" }) : s._({ id: "vpt8cE" }),
940
+ open: e,
941
+ onCancel: r,
942
+ confirmButtonLabel: ce ? a._({ id: "NOdFZR" }) : a._({ id: "vpt8cE" }),
943
943
  onConfirm: re,
944
- cancelButtonLabel: s._({ id: "yz7wBu" }),
944
+ cancelButtonLabel: a._({ id: "yz7wBu" }),
945
945
  size: "small",
946
- disableConfirmButton: ce || Z && (!v.trim() || !!x),
947
- children: /* @__PURE__ */ B(e, {
946
+ disableConfirmButton: ce || Z && (!g.trim() || !!v),
947
+ children: /* @__PURE__ */ B(b, {
948
948
  direction: "vertical",
949
949
  gap: "4",
950
950
  children: [
@@ -978,54 +978,54 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
978
978
  "aria-live": "assertive",
979
979
  children: P
980
980
  }),
981
- /* @__PURE__ */ B(h, {
982
- label: s._({ id: "i9qiyR" }),
983
- value: f,
981
+ /* @__PURE__ */ B(y, {
982
+ label: a._({ id: "i9qiyR" }),
983
+ value: d,
984
984
  onChange: ae,
985
985
  disabled: ce,
986
- children: [d.map((e) => /* @__PURE__ */ z(m, {
986
+ children: [l.map((e) => /* @__PURE__ */ z(m, {
987
987
  value: String(e.seconds),
988
988
  label: e.labelKey
989
989
  }, e.seconds)), /* @__PURE__ */ z(m, {
990
990
  value: X,
991
- label: s._({ id: "8Tg/JR" })
991
+ label: a._({ id: "8Tg/JR" })
992
992
  })]
993
993
  }),
994
- Z && /* @__PURE__ */ z(b, {
995
- label: s._({ id: "3n+vCm" }),
996
- value: v,
994
+ Z && /* @__PURE__ */ z(x, {
995
+ label: a._({ id: "3n+vCm" }),
996
+ value: g,
997
997
  onChange: oe,
998
- invalid: !!x,
999
- errortext: x || void 0,
998
+ invalid: !!v,
999
+ errortext: v || void 0,
1000
1000
  disabled: ce,
1001
1001
  placeholder: "60",
1002
1002
  type: "number"
1003
1003
  }),
1004
- ce && /* @__PURE__ */ B(e, {
1004
+ ce && /* @__PURE__ */ B(b, {
1005
1005
  direction: "horizontal",
1006
1006
  alignment: "center",
1007
1007
  gap: "2",
1008
1008
  className: "py-2",
1009
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "UK2mpr" })]
1009
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "UK2mpr" })]
1010
1010
  }),
1011
- E && /* @__PURE__ */ B(e, {
1011
+ E && /* @__PURE__ */ B(b, {
1012
1012
  direction: "vertical",
1013
1013
  gap: "2",
1014
1014
  children: [/* @__PURE__ */ B("div", {
1015
1015
  className: "relative",
1016
- children: [/* @__PURE__ */ z(b, {
1017
- label: s._({ id: "GSIPwA" }),
1016
+ children: [/* @__PURE__ */ z(x, {
1017
+ label: a._({ id: "GSIPwA" }),
1018
1018
  value: E,
1019
1019
  readOnly: !0,
1020
1020
  className: "pr-10 font-mono text-xs"
1021
1021
  }), /* @__PURE__ */ z("button", {
1022
1022
  type: "button",
1023
1023
  onClick: ie,
1024
- title: w ? s._({ id: "PiH3UR" }) : s._({ id: "E6nRW7" }),
1025
- "aria-label": w ? s._({ id: "PiH3UR" }) : s._({ id: "E6nRW7" }),
1024
+ title: w ? a._({ id: "PiH3UR" }) : a._({ id: "E6nRW7" }),
1025
+ "aria-label": w ? a._({ id: "PiH3UR" }) : a._({ id: "E6nRW7" }),
1026
1026
  className: "text-theme-light hover:text-theme-default absolute top-1/2 right-2 inline-flex items-center transition-colors",
1027
1027
  style: { transform: "translateY(-50%)" },
1028
- children: /* @__PURE__ */ z(p, {
1028
+ children: /* @__PURE__ */ z(h, {
1029
1029
  icon: w ? "checkCircle" : "contentCopy",
1030
1030
  size: "18"
1031
1031
  })
@@ -1063,20 +1063,20 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1063
1063
  }, pe = (e) => {
1064
1064
  let t = /* @__PURE__ */ new Date(e * 1e3), n = (e) => String(e).padStart(2, "0");
1065
1065
  return `${t.getUTCFullYear()}-${n(t.getUTCMonth() + 1)}-${n(t.getUTCDate())} ${n(t.getUTCHours())}:${n(t.getUTCMinutes())}:${n(t.getUTCSeconds())}`;
1066
- }, me = ({ isOpen: n, object: r, onClose: i, onSuccess: s, onError: c }) => {
1067
- let { i18n: u, _: d } = te(), f = ee(), { containerName: p } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), m = C.useUtils(), { data: h, isLoading: v, isError: y, error: S } = C.storage.swift.getObjectMetadata.useQuery({
1068
- project_id: f,
1069
- container: p,
1070
- object: r?.name ?? ""
1066
+ }, me = ({ isOpen: e, object: t, onClose: n, onSuccess: a, onError: o }) => {
1067
+ let { i18n: s, _: l } = te(), d = ee(), { containerName: m } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), h = C.useUtils(), { data: _, isLoading: v, isError: y, error: S } = C.storage.swift.getObjectMetadata.useQuery({
1068
+ project_id: d,
1069
+ container: m,
1070
+ object: t?.name ?? ""
1071
1071
  }, {
1072
- enabled: n && r !== null,
1072
+ enabled: e && t !== null,
1073
1073
  refetchOnWindowFocus: !1
1074
1074
  }), w = W(0), T = () => ++w.current, [E, D] = G(""), [O, k] = G(null), [A, j] = G([]), [M, N] = G({}), [P, F] = G(!1), [I, R] = G(""), [V, H] = G(""), [K, Y] = G(null), ne = W(""), re = W([]), ie = W(""), ae = W(""), oe = W(null);
1075
1075
  U(() => {
1076
- if (!h) return;
1077
- let e = h.deleteAt == null ? "" : pe(h.deleteAt);
1076
+ if (!_) return;
1077
+ let e = _.deleteAt == null ? "" : pe(_.deleteAt);
1078
1078
  D(e), ne.current = e;
1079
- let t = Object.entries(h.customMetadata ?? {}).map(([e, t]) => ({
1079
+ let t = Object.entries(_.customMetadata ?? {}).map(([e, t]) => ({
1080
1080
  uid: T(),
1081
1081
  key: e,
1082
1082
  value: t,
@@ -1085,9 +1085,9 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1085
1085
  originalValue: t
1086
1086
  }));
1087
1087
  j(t), re.current = t.map((e) => ({ ...e }));
1088
- }, [h]), U(() => {
1089
- n || se();
1090
- }, [n]);
1088
+ }, [_]), U(() => {
1089
+ e || se();
1090
+ }, [e]);
1091
1091
  let se = () => {
1092
1092
  oe.current && clearTimeout(oe.current), D(""), k(null), j([]), N({}), F(!1), R(""), H(""), Y(null), Z.reset();
1093
1093
  }, ce = (() => {
@@ -1096,33 +1096,33 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1096
1096
  return A.some((t) => e.get(t.key) !== t.value);
1097
1097
  })(), X = A.some((e) => e.isEditing), Z = C.storage.swift.updateObjectMetadata.useMutation({
1098
1098
  onSuccess: () => {
1099
- m.storage.swift.getObjectMetadata.invalidate({
1100
- project_id: f,
1101
- container: p,
1099
+ h.storage.swift.getObjectMetadata.invalidate({
1100
+ project_id: d,
1101
+ container: m,
1102
1102
  object: ae.current
1103
- }), m.storage.swift.listObjects.invalidate({
1104
- project_id: f,
1105
- container: p
1106
- }), s?.(ie.current), Q();
1103
+ }), h.storage.swift.listObjects.invalidate({
1104
+ project_id: d,
1105
+ container: m
1106
+ }), a?.(ie.current), Q();
1107
1107
  },
1108
1108
  onError: (e) => {
1109
- c?.(ie.current, e.message);
1109
+ o?.(ie.current, e.message);
1110
1110
  }
1111
1111
  }), Q = () => {
1112
- se(), i();
1112
+ se(), n();
1113
1113
  }, le = () => {
1114
- if (!r) return;
1114
+ if (!t) return;
1115
1115
  if (E.trim() && !ue(E.trim())) {
1116
1116
  k("invalid");
1117
1117
  return;
1118
1118
  }
1119
- k(null), ie.current = r.displayName, ae.current = r.name;
1119
+ k(null), ie.current = t.displayName, ae.current = t.name;
1120
1120
  let e = {};
1121
1121
  for (let t of A) e[t.key] = t.value;
1122
1122
  Z.mutate({
1123
- project_id: f,
1124
- container: p,
1125
- object: r.name,
1123
+ project_id: d,
1124
+ container: m,
1125
+ object: t.name,
1126
1126
  metadata: e,
1127
1127
  ...E.trim() ? { deleteAt: Math.floor((/* @__PURE__ */ new Date(E.trim().replace(" ", "T") + "Z")).getTime() / 1e3) } : {}
1128
1128
  });
@@ -1147,7 +1147,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1147
1147
  }, _e = (e) => {
1148
1148
  let t = A[e], n = de(t.key);
1149
1149
  if (n) {
1150
- let t = n === "required" ? u._({ id: "QV1ZPO" }) : n === "invalid-chars" ? u._({ id: "XYZLy9" }) : u._({ id: "dTNzBI" });
1150
+ let t = n === "required" ? s._({ id: "QV1ZPO" }) : n === "invalid-chars" ? s._({ id: "XYZLy9" }) : s._({ id: "dTNzBI" });
1151
1151
  N((n) => ({
1152
1152
  ...n,
1153
1153
  [`edit-${e}`]: t
@@ -1157,7 +1157,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1157
1157
  if (A.some((n, r) => r !== e && n.key.toLowerCase() === t.key.toLowerCase())) {
1158
1158
  N((t) => ({
1159
1159
  ...t,
1160
- [`edit-${e}`]: u._({ id: "q6K46F" })
1160
+ [`edit-${e}`]: s._({ id: "q6K46F" })
1161
1161
  }));
1162
1162
  return;
1163
1163
  }
@@ -1182,11 +1182,11 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1182
1182
  }, be = () => {
1183
1183
  let e = de(I);
1184
1184
  if (e) {
1185
- Y(e === "required" ? u._({ id: "QV1ZPO" }) : e === "invalid-chars" ? u._({ id: "XYZLy9" }) : u._({ id: "dTNzBI" }));
1185
+ Y(e === "required" ? s._({ id: "QV1ZPO" }) : e === "invalid-chars" ? s._({ id: "XYZLy9" }) : s._({ id: "dTNzBI" }));
1186
1186
  return;
1187
1187
  }
1188
1188
  if (A.some((e) => e.key.toLowerCase() === I.trim().toLowerCase())) {
1189
- Y(u._({ id: "q6K46F" }));
1189
+ Y(s._({ id: "q6K46F" }));
1190
1190
  return;
1191
1191
  }
1192
1192
  j((e) => [...e, {
@@ -1198,9 +1198,9 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1198
1198
  }, xe = () => {
1199
1199
  R(""), H(""), Y(null), F(!1);
1200
1200
  };
1201
- if (!n || !r) return null;
1202
- let Se = r.displayName, Ce = Z.isPending, we = Ce || v, Te = h?.staticLargeObject === !0, $ = !!h?.objectManifest, Ee = S?.message ?? "", De = Z.error?.message ?? "";
1203
- return /* @__PURE__ */ z(g, {
1201
+ if (!e || !t) return null;
1202
+ let Se = t.displayName, Ce = Z.isPending, we = Ce || v, Te = _?.staticLargeObject === !0, $ = !!_?.objectManifest, Ee = S?.message ?? "", De = Z.error?.message ?? "";
1203
+ return /* @__PURE__ */ z(f, {
1204
1204
  title: /* @__PURE__ */ z("span", {
1205
1205
  className: "flex max-w-[400px] items-center gap-1",
1206
1206
  children: /* @__PURE__ */ z(J, {
@@ -1215,26 +1215,26 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1215
1215
  }
1216
1216
  })
1217
1217
  }),
1218
- open: n,
1218
+ open: e,
1219
1219
  onCancel: Q,
1220
- confirmButtonLabel: Ce ? u._({ id: "XvjC4F" }) : u._({ id: "V/SINY" }),
1220
+ confirmButtonLabel: Ce ? s._({ id: "XvjC4F" }) : s._({ id: "V/SINY" }),
1221
1221
  onConfirm: le,
1222
- cancelButtonLabel: u._({ id: "dEgA5A" }),
1222
+ cancelButtonLabel: s._({ id: "dEgA5A" }),
1223
1223
  size: P ? "xl" : "large",
1224
1224
  disableConfirmButton: we || !ce || X || P,
1225
- children: v ? /* @__PURE__ */ B(e, {
1225
+ children: v ? /* @__PURE__ */ B(b, {
1226
1226
  direction: "horizontal",
1227
1227
  alignment: "center",
1228
1228
  gap: "2",
1229
1229
  className: "py-8",
1230
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "O80bQY" })]
1230
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "O80bQY" })]
1231
1231
  }) : y ? /* @__PURE__ */ z("p", {
1232
1232
  className: "text-theme-error",
1233
1233
  children: /* @__PURE__ */ z(J, {
1234
1234
  id: "+p6nHr",
1235
1235
  values: { metadataErrorMessage: Ee }
1236
1236
  })
1237
- }) : /* @__PURE__ */ B(e, {
1237
+ }) : /* @__PURE__ */ B(b, {
1238
1238
  direction: "vertical",
1239
1239
  gap: "6",
1240
1240
  children: [
@@ -1271,7 +1271,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1271
1271
  }),
1272
1272
  /* @__PURE__ */ z("span", {
1273
1273
  className: "font-mono",
1274
- children: h?.contentType ?? "—"
1274
+ children: _?.contentType ?? "—"
1275
1275
  }),
1276
1276
  /* @__PURE__ */ z("span", {
1277
1277
  className: "text-theme-light text-right",
@@ -1279,25 +1279,25 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1279
1279
  }),
1280
1280
  /* @__PURE__ */ z("span", {
1281
1281
  className: "font-mono break-all",
1282
- children: h?.etag ?? "—"
1282
+ children: _?.etag ?? "—"
1283
1283
  }),
1284
1284
  /* @__PURE__ */ z("span", {
1285
1285
  className: "text-theme-light text-right",
1286
1286
  children: /* @__PURE__ */ z(J, { id: "Cj2Gtd" })
1287
1287
  }),
1288
- /* @__PURE__ */ z("span", { children: h?.contentLength == null ? "—" : L(h.contentLength) }),
1288
+ /* @__PURE__ */ z("span", { children: _?.contentLength == null ? "—" : L(_.contentLength) }),
1289
1289
  /* @__PURE__ */ z("span", {
1290
1290
  className: "text-theme-light text-right",
1291
1291
  children: /* @__PURE__ */ z(J, { id: "TfC9O+" })
1292
1292
  }),
1293
- /* @__PURE__ */ z("span", { children: h?.lastModified ? fe(h.lastModified) : r.last_modified ? fe(r.last_modified) : "—" })
1293
+ /* @__PURE__ */ z("span", { children: _?.lastModified ? fe(_.lastModified) : t.last_modified ? fe(t.last_modified) : "—" })
1294
1294
  ]
1295
1295
  })] }),
1296
1296
  /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("p", {
1297
1297
  className: "text-theme-light mb-1",
1298
1298
  children: /* @__PURE__ */ z(J, { id: "8Pcsi8" })
1299
- }), /* @__PURE__ */ z(b, {
1300
- label: u._({ id: "eu70nA" }),
1299
+ }), /* @__PURE__ */ z(x, {
1300
+ label: s._({ id: "eu70nA" }),
1301
1301
  value: E,
1302
1302
  onChange: (e) => {
1303
1303
  let t = e.target.value;
@@ -1306,12 +1306,12 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1306
1306
  }, 600);
1307
1307
  },
1308
1308
  invalid: !!O,
1309
- errortext: O ? u._({ id: "48QXFO" }) : void 0,
1310
- placeholder: u._({ id: "Mj5iQ0" }),
1309
+ errortext: O ? s._({ id: "48QXFO" }) : void 0,
1310
+ placeholder: s._({ id: "Mj5iQ0" }),
1311
1311
  disabled: we
1312
1312
  })] }),
1313
1313
  /* @__PURE__ */ B("div", { children: [
1314
- /* @__PURE__ */ B(e, {
1314
+ /* @__PURE__ */ B(b, {
1315
1315
  direction: "horizontal",
1316
1316
  alignment: "center",
1317
1317
  distribution: "between",
@@ -1323,11 +1323,11 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1323
1323
  children: /* @__PURE__ */ z(J, { id: "2TtIL2" })
1324
1324
  })]
1325
1325
  }),
1326
- /* @__PURE__ */ z(e, {
1326
+ /* @__PURE__ */ z(b, {
1327
1327
  direction: "horizontal",
1328
1328
  className: "jn:bg-theme-background-lvl-1 mb-3 justify-end p-2",
1329
- children: /* @__PURE__ */ z(_, {
1330
- label: u._({ id: "sWBLli" }),
1329
+ children: /* @__PURE__ */ z(p, {
1330
+ label: s._({ id: "sWBLli" }),
1331
1331
  onClick: () => F(!0),
1332
1332
  variant: "primary",
1333
1333
  size: "small",
@@ -1335,107 +1335,107 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1335
1335
  disabled: P || X || we
1336
1336
  })
1337
1337
  }),
1338
- /* @__PURE__ */ B(x, {
1338
+ /* @__PURE__ */ B(i, {
1339
1339
  columns: 3,
1340
1340
  children: [
1341
- /* @__PURE__ */ B(o, { children: [
1342
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "7sMeHQ" }) }),
1343
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "wMHvYH" }) }),
1344
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "7L01XJ" }) })
1341
+ /* @__PURE__ */ B(r, { children: [
1342
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "7sMeHQ" }) }),
1343
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "wMHvYH" }) }),
1344
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "7L01XJ" }) })
1345
1345
  ] }),
1346
- P && /* @__PURE__ */ B(o, { children: [
1347
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ z(b, {
1346
+ P && /* @__PURE__ */ B(r, { children: [
1347
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ z(x, {
1348
1348
  value: I,
1349
1349
  onChange: (e) => {
1350
1350
  R(e.target.value), K && Y(null);
1351
1351
  },
1352
- placeholder: u._({ id: "x9AdZ8" }),
1352
+ placeholder: s._({ id: "x9AdZ8" }),
1353
1353
  errortext: K ?? void 0,
1354
1354
  invalid: !!K,
1355
1355
  autoFocus: !0
1356
1356
  }) }),
1357
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ z(b, {
1357
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ z(x, {
1358
1358
  value: V,
1359
1359
  onChange: (e) => H(e.target.value),
1360
- placeholder: u._({ id: "wMHvYH" })
1360
+ placeholder: s._({ id: "wMHvYH" })
1361
1361
  }) }),
1362
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ B(e, {
1362
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ B(b, {
1363
1363
  direction: "horizontal",
1364
1364
  gap: "2",
1365
- children: [/* @__PURE__ */ z(_, {
1365
+ children: [/* @__PURE__ */ z(p, {
1366
1366
  size: "small",
1367
1367
  variant: "primary",
1368
1368
  onClick: be,
1369
1369
  icon: "check",
1370
- title: u._({ id: "tfDRzk" })
1371
- }), /* @__PURE__ */ z(_, {
1370
+ title: s._({ id: "tfDRzk" })
1371
+ }), /* @__PURE__ */ z(p, {
1372
1372
  size: "small",
1373
1373
  variant: "subdued",
1374
1374
  onClick: xe,
1375
1375
  icon: "close",
1376
- title: u._({ id: "bzSI52" })
1376
+ title: s._({ id: "bzSI52" })
1377
1377
  })]
1378
1378
  }) })
1379
1379
  ] }),
1380
- A.map((n, r) => /* @__PURE__ */ B(o, { children: [
1381
- /* @__PURE__ */ z(t, { children: n.isEditing ? /* @__PURE__ */ z(b, {
1382
- value: n.key,
1383
- onChange: (e) => he(r, e.target.value),
1384
- errortext: M[`edit-${r}`],
1385
- invalid: !!M[`edit-${r}`]
1380
+ A.map((e, t) => /* @__PURE__ */ B(r, { children: [
1381
+ /* @__PURE__ */ z(g, { children: e.isEditing ? /* @__PURE__ */ z(x, {
1382
+ value: e.key,
1383
+ onChange: (e) => he(t, e.target.value),
1384
+ errortext: M[`edit-${t}`],
1385
+ invalid: !!M[`edit-${t}`]
1386
1386
  }) : /* @__PURE__ */ z("span", {
1387
1387
  className: "block max-w-xs truncate font-mono text-sm",
1388
- title: n.key,
1389
- children: n.key
1388
+ title: e.key,
1389
+ children: e.key
1390
1390
  }) }),
1391
- /* @__PURE__ */ z(t, { children: n.isEditing ? /* @__PURE__ */ z(b, {
1392
- value: n.value,
1393
- onChange: (e) => ge(r, e.target.value)
1391
+ /* @__PURE__ */ z(g, { children: e.isEditing ? /* @__PURE__ */ z(x, {
1392
+ value: e.value,
1393
+ onChange: (e) => ge(t, e.target.value)
1394
1394
  }) : /* @__PURE__ */ z("span", {
1395
1395
  className: "block max-w-md truncate text-sm",
1396
- title: n.value,
1397
- children: n.value
1396
+ title: e.value,
1397
+ children: e.value
1398
1398
  }) }),
1399
- /* @__PURE__ */ z(t, { children: n.isEditing ? /* @__PURE__ */ B(e, {
1399
+ /* @__PURE__ */ z(g, { children: e.isEditing ? /* @__PURE__ */ B(b, {
1400
1400
  direction: "horizontal",
1401
1401
  gap: "2",
1402
- children: [/* @__PURE__ */ z(_, {
1402
+ children: [/* @__PURE__ */ z(p, {
1403
1403
  size: "small",
1404
1404
  variant: "primary",
1405
- onClick: () => _e(r),
1405
+ onClick: () => _e(t),
1406
1406
  icon: "check",
1407
- title: u._({ id: "tfDRzk" })
1408
- }), /* @__PURE__ */ z(_, {
1407
+ title: s._({ id: "tfDRzk" })
1408
+ }), /* @__PURE__ */ z(p, {
1409
1409
  size: "small",
1410
1410
  variant: "subdued",
1411
- onClick: () => ve(r),
1411
+ onClick: () => ve(t),
1412
1412
  icon: "close",
1413
- title: u._({ id: "bzSI52" })
1413
+ title: s._({ id: "bzSI52" })
1414
1414
  })]
1415
- }) : /* @__PURE__ */ B(e, {
1415
+ }) : /* @__PURE__ */ B(b, {
1416
1416
  direction: "horizontal",
1417
1417
  gap: "2",
1418
- children: [/* @__PURE__ */ z(_, {
1418
+ children: [/* @__PURE__ */ z(p, {
1419
1419
  size: "small",
1420
1420
  variant: "subdued",
1421
- onClick: () => me(r),
1421
+ onClick: () => me(t),
1422
1422
  icon: "edit",
1423
- title: u._({ id: "ePK91l" }),
1423
+ title: s._({ id: "ePK91l" }),
1424
1424
  disabled: P || X || we
1425
- }), /* @__PURE__ */ z(_, {
1425
+ }), /* @__PURE__ */ z(p, {
1426
1426
  size: "small",
1427
1427
  variant: "default",
1428
- onClick: () => ye(r),
1428
+ onClick: () => ye(t),
1429
1429
  icon: "deleteForever",
1430
- title: u._({ id: "cnGeoo" }),
1430
+ title: s._({ id: "cnGeoo" }),
1431
1431
  disabled: P || X || we
1432
1432
  })]
1433
1433
  }) })
1434
- ] }, n.uid)),
1435
- A.length === 0 && !P && /* @__PURE__ */ z(o, { children: /* @__PURE__ */ z(t, {
1434
+ ] }, e.uid)),
1435
+ A.length === 0 && !P && /* @__PURE__ */ z(r, { children: /* @__PURE__ */ z(g, {
1436
1436
  colSpan: 3,
1437
1437
  className: "py-6 text-center",
1438
- children: /* @__PURE__ */ z(e, {
1438
+ children: /* @__PURE__ */ z(b, {
1439
1439
  alignment: "center",
1440
1440
  children: /* @__PURE__ */ z("span", {
1441
1441
  className: "text-theme-light text-sm",
@@ -1473,30 +1473,30 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1473
1473
  if (!e) return !1;
1474
1474
  let t = e.split(";")[0].trim().toLowerCase();
1475
1475
  return he.has(t) ? !0 : t === "image/svg+xml" ? !1 : !!(t.startsWith("image/") || t.startsWith("video/") || t.startsWith("audio/"));
1476
- }, _e = "40px minmax(200px, 3fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px", ve = ({ rows: e, searchTerm: r, container: i, account: c, onFolderClick: d, onDeleteFolderSuccess: p, onDeleteFolderError: m, onDownloadError: h, onDeleteObjectSuccess: g, onDeleteObjectError: _, onCopyObjectSuccess: v, onCopyObjectError: y, onMoveObjectSuccess: b, onMoveObjectError: w, onTempUrlCopySuccess: T, onEditMetadataSuccess: E, onEditMetadataError: D, selectedObjects: O, setSelectedObjects: A }) => {
1476
+ }, _e = "40px minmax(200px, 3fr) minmax(180px, 2fr) minmax(100px, 1fr) 60px", ve = ({ rows: n, searchTerm: o, container: l, account: d, onFolderClick: f, onDeleteFolderSuccess: p, onDeleteFolderError: m, onDownloadError: h, onDeleteObjectSuccess: _, onDeleteObjectError: v, onCopyObjectSuccess: y, onCopyObjectError: b, onMoveObjectSuccess: x, onMoveObjectError: w, onTempUrlCopySuccess: T, onEditMetadataSuccess: E, onEditMetadataError: D, selectedObjects: O, setSelectedObjects: A }) => {
1477
1477
  let { i18n: M, _: N } = te(), P = ee(), F = W(null), I = W(!0);
1478
1478
  U(() => (I.current = !0, () => {
1479
1479
  I.current = !1;
1480
1480
  }), []);
1481
1481
  let [V, H] = G(0), [K, q] = G(null), [Y, ae] = G(null), [se, X] = G(null), [Q, le] = G(null), [ue, de] = G(null), [fe, pe] = G(null), [he, ve] = G(null), [ye, be] = G(null), [xe, Se] = G(null), { data: Ce } = C.storage.swift.watchDownloadProgress.useSubscription({ downloadId: ye ?? "" }, { enabled: !!ye && he !== null }), we = async (e, t) => {
1482
- let n = e.content_type ?? "application/octet-stream", r = e.displayName, a = await S.storage.swift.downloadObject.mutate({
1482
+ let n = e.content_type ?? "application/octet-stream", r = e.displayName, i = await S.storage.swift.downloadObject.mutate({
1483
1483
  project_id: P,
1484
- container: i,
1484
+ container: l,
1485
1485
  object: e.name,
1486
1486
  filename: e.displayName,
1487
1487
  downloadId: t,
1488
- ...c ? { account: c } : {}
1489
- }), o = [];
1490
- for await (let { chunk: e, contentType: t, filename: i } of a) t && (n = t), i && (r = i), o.push(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
1488
+ ...d ? { account: d } : {}
1489
+ }), a = [];
1490
+ for await (let { chunk: e, contentType: t, filename: o } of i) t && (n = t), o && (r = o), a.push(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
1491
1491
  return {
1492
- blob: new Blob(o, { type: n }),
1492
+ blob: new Blob(a, { type: n }),
1493
1493
  filename: r
1494
1494
  };
1495
1495
  }, Te = (e, t) => {
1496
1496
  let n = document.createElement("a");
1497
1497
  n.href = e, n.download = t, document.body.appendChild(n), n.click(), document.body.removeChild(n), setTimeout(() => URL.revokeObjectURL(e), 1e4);
1498
1498
  }, $ = async (e) => {
1499
- let t = `${i}:${e.name}:${crypto.randomUUID()}`;
1499
+ let t = `${l}:${e.name}:${crypto.randomUUID()}`;
1500
1500
  ve(e), be(t);
1501
1501
  try {
1502
1502
  let { blob: n, filename: r } = await we(e, t);
@@ -1507,7 +1507,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1507
1507
  I.current && (ve(null), be(null));
1508
1508
  }
1509
1509
  }, Ee = async (e) => {
1510
- let t = `${i}:${e.name}:${crypto.randomUUID()}`, n = ge(e.content_type);
1510
+ let t = `${l}:${e.name}:${crypto.randomUUID()}`, n = ge(e.content_type);
1511
1511
  n ? Se(e) : (ve(e), be(t));
1512
1512
  let r = n ? window.open("", "_blank") : null;
1513
1513
  r && (r.opener = null);
@@ -1522,25 +1522,25 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1522
1522
  };
1523
1523
  U(() => {
1524
1524
  F.current && H(F.current.offsetWidth - F.current.clientWidth);
1525
- }, [e.length]);
1525
+ }, [n.length]);
1526
1526
  let De = ne({
1527
- count: e.length,
1527
+ count: n.length,
1528
1528
  getScrollElement: () => F.current,
1529
1529
  estimateSize: () => 48,
1530
1530
  overscan: 10
1531
1531
  }), Oe = (e) => {
1532
1532
  let t = new Date(e);
1533
1533
  return Number.isNaN(t.getTime()) ? M._({ id: "fj5byd" }) : t.toLocaleString();
1534
- }, ke = e.filter((e) => e.kind === "object"), Ae = new Set(O), je = ke.length > 0 && ke.every((e) => Ae.has(e.name)), Me = () => {
1534
+ }, ke = n.filter((e) => e.kind === "object"), Ae = new Set(O), je = ke.length > 0 && ke.every((e) => Ae.has(e.name)), Me = () => {
1535
1535
  A(je ? [] : ke.map((e) => e.name));
1536
1536
  }, Ne = (e) => {
1537
1537
  O.includes(e) ? A(O.filter((t) => t !== e)) : A([...O, e]);
1538
1538
  };
1539
- if (e.length === 0) return /* @__PURE__ */ z(x, {
1539
+ if (n.length === 0) return /* @__PURE__ */ z(i, {
1540
1540
  columns: 5,
1541
1541
  className: "objects",
1542
1542
  "data-testid": "no-objects",
1543
- children: /* @__PURE__ */ z(o, { children: /* @__PURE__ */ z(t, {
1543
+ children: /* @__PURE__ */ z(r, { children: /* @__PURE__ */ z(g, {
1544
1544
  colSpan: 5,
1545
1545
  children: /* @__PURE__ */ B("div", {
1546
1546
  className: "py-8 text-center",
@@ -1549,33 +1549,33 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1549
1549
  children: /* @__PURE__ */ z(J, { id: "arel2K" })
1550
1550
  }), /* @__PURE__ */ z("p", {
1551
1551
  className: "text-theme-light mt-2",
1552
- children: r ? /* @__PURE__ */ z(J, { id: "H4Qwmp" }) : /* @__PURE__ */ z(J, { id: "Pkw7J9" })
1552
+ children: o ? /* @__PURE__ */ z(J, { id: "H4Qwmp" }) : /* @__PURE__ */ z(J, { id: "Pkw7J9" })
1553
1553
  })]
1554
1554
  })
1555
1555
  }) })
1556
1556
  });
1557
- let Pe = e.length, Fe = he !== null || xe !== null;
1557
+ let Pe = n.length, Fe = he !== null || xe !== null;
1558
1558
  return /* @__PURE__ */ B(R, { children: [
1559
1559
  /* @__PURE__ */ B("div", {
1560
1560
  className: "relative",
1561
1561
  children: [
1562
1562
  /* @__PURE__ */ z("div", {
1563
1563
  style: { paddingRight: `${V}px` },
1564
- children: /* @__PURE__ */ z(x, {
1564
+ children: /* @__PURE__ */ z(i, {
1565
1565
  columns: 5,
1566
1566
  gridColumnTemplate: _e,
1567
1567
  className: "objects",
1568
1568
  "data-testid": "objects-table-header",
1569
- children: /* @__PURE__ */ B(o, { children: [
1570
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(n, {
1569
+ children: /* @__PURE__ */ B(r, { children: [
1570
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(t, {
1571
1571
  checked: je,
1572
1572
  onChange: Me,
1573
1573
  "data-testid": "select-all-objects"
1574
1574
  }) }),
1575
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "wrXcuy" }) }),
1576
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "sjMCOP" }) }),
1577
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "Cj2Gtd" }) }),
1578
- /* @__PURE__ */ z(l, { style: { marginRight: `-${V}px` } })
1575
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "wrXcuy" }) }),
1576
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "sjMCOP" }) }),
1577
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "Cj2Gtd" }) }),
1578
+ /* @__PURE__ */ z(c, { style: { marginRight: `-${V}px` } })
1579
1579
  ] })
1580
1580
  })
1581
1581
  }),
@@ -1591,7 +1591,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1591
1591
  position: "relative"
1592
1592
  },
1593
1593
  children: De.getVirtualItems().map((r) => {
1594
- let i = e[r.index], o = i.kind === "folder", c = !o && he?.name === i.name, l = i.displayName, p = !o && O.includes(i.name);
1594
+ let i = n[r.index], o = i.kind === "folder", c = !o && he?.name === i.name, l = i.displayName, d = !o && O.includes(i.name);
1595
1595
  return /* @__PURE__ */ B("div", {
1596
1596
  "data-index": r.index,
1597
1597
  ref: De.measureElement,
@@ -1608,20 +1608,20 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1608
1608
  },
1609
1609
  "data-testid": `object-row-${i.name}`,
1610
1610
  children: [
1611
- /* @__PURE__ */ z(t, {
1611
+ /* @__PURE__ */ z(g, {
1612
1612
  onClick: (e) => e.stopPropagation(),
1613
- children: !o && /* @__PURE__ */ z(n, {
1614
- checked: p,
1613
+ children: !o && /* @__PURE__ */ z(t, {
1614
+ checked: d,
1615
1615
  onChange: () => Ne(i.name),
1616
1616
  "data-testid": `select-object-${i.name}`
1617
1617
  })
1618
1618
  }),
1619
- /* @__PURE__ */ z(t, {
1619
+ /* @__PURE__ */ z(g, {
1620
1620
  className: "min-w-0 overflow-hidden",
1621
1621
  children: o ? /* @__PURE__ */ B("button", {
1622
1622
  type: "button",
1623
1623
  className: "focus-visible:outline-theme-focus flex min-w-0 items-center gap-2 rounded text-left hover:underline focus-visible:outline focus-visible:outline-2",
1624
- onClick: () => d(i.name),
1624
+ onClick: () => f(i.name),
1625
1625
  "data-testid": `folder-${i.name}`,
1626
1626
  title: i.displayName,
1627
1627
  children: [/* @__PURE__ */ z(k, {
@@ -1644,7 +1644,7 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1644
1644
  id: "LI8Z2I",
1645
1645
  values: { rowDisplayName: l }
1646
1646
  }),
1647
- children: [xe?.name === i.name ? /* @__PURE__ */ z(a, {
1647
+ children: [xe?.name === i.name ? /* @__PURE__ */ z(u, {
1648
1648
  size: "small",
1649
1649
  className: "shrink-0"
1650
1650
  }) : /* @__PURE__ */ z(j, {
@@ -1656,13 +1656,13 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1656
1656
  })]
1657
1657
  })
1658
1658
  }),
1659
- /* @__PURE__ */ z(t, { children: c ? /* @__PURE__ */ z("span", {
1659
+ /* @__PURE__ */ z(g, { children: c ? /* @__PURE__ */ z("span", {
1660
1660
  className: "flex min-w-0 flex-col gap-1",
1661
1661
  children: (() => {
1662
1662
  let e = Ce?.percent ?? null;
1663
1663
  return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ B("span", {
1664
1664
  className: "text-theme-light flex items-center gap-2 text-sm",
1665
- children: [/* @__PURE__ */ z(a, { size: "small" }), e === null ? /* @__PURE__ */ z(J, { id: "cCfxH1" }) : /* @__PURE__ */ z(J, {
1665
+ children: [/* @__PURE__ */ z(u, { size: "small" }), e === null ? /* @__PURE__ */ z(J, { id: "cCfxH1" }) : /* @__PURE__ */ z(J, {
1666
1666
  id: "Flugry",
1667
1667
  values: { progressPct: e }
1668
1668
  })]
@@ -1675,43 +1675,43 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1675
1675
  })] });
1676
1676
  })()
1677
1677
  }) : !o && i.last_modified ? Oe(i.last_modified) : "—" }),
1678
- /* @__PURE__ */ z(t, { children: o ? "—" : L(i.bytes) }),
1679
- /* @__PURE__ */ z(t, {
1678
+ /* @__PURE__ */ z(g, { children: o ? "—" : L(i.bytes) }),
1679
+ /* @__PURE__ */ z(g, {
1680
1680
  onClick: (e) => e.stopPropagation(),
1681
- children: /* @__PURE__ */ z(f, {
1681
+ children: /* @__PURE__ */ z(e, {
1682
1682
  disabled: Fe,
1683
- children: /* @__PURE__ */ z(s, { children: o ? /* @__PURE__ */ z(u, {
1683
+ children: /* @__PURE__ */ z(s, { children: o ? /* @__PURE__ */ z(a, {
1684
1684
  label: M._({ id: "9vSW3U" }),
1685
1685
  onClick: () => q(i),
1686
1686
  "data-testid": `delete-recursively-action-${i.name}`
1687
1687
  }) : /* @__PURE__ */ B(R, { children: [
1688
- /* @__PURE__ */ z(u, {
1688
+ /* @__PURE__ */ z(a, {
1689
1689
  label: c ? M._({ id: "cCfxH1" }) : M._({ id: "mzI/c+" }),
1690
1690
  disabled: c,
1691
1691
  onClick: () => $(i),
1692
1692
  "data-testid": `download-action-${i.name}`
1693
1693
  }),
1694
- /* @__PURE__ */ z(u, {
1694
+ /* @__PURE__ */ z(a, {
1695
1695
  label: M._({ id: "SIfYq6" }),
1696
1696
  onClick: () => pe(i),
1697
1697
  "data-testid": `edit-metadata-action-${i.name}`
1698
1698
  }),
1699
- /* @__PURE__ */ z(u, {
1699
+ /* @__PURE__ */ z(a, {
1700
1700
  label: M._({ id: "he3ygx" }),
1701
1701
  onClick: () => X(i),
1702
1702
  "data-testid": `copy-action-${i.name}`
1703
1703
  }),
1704
- /* @__PURE__ */ z(u, {
1704
+ /* @__PURE__ */ z(a, {
1705
1705
  label: M._({ id: "v3djpU" }),
1706
1706
  onClick: () => le(i),
1707
1707
  "data-testid": `move-rename-action-${i.name}`
1708
1708
  }),
1709
- /* @__PURE__ */ z(u, {
1709
+ /* @__PURE__ */ z(a, {
1710
1710
  label: M._({ id: "WrUky8" }),
1711
1711
  onClick: () => de(i),
1712
1712
  "data-testid": `temp-url-action-${i.name}`
1713
1713
  }),
1714
- /* @__PURE__ */ z(u, {
1714
+ /* @__PURE__ */ z(a, {
1715
1715
  label: M._({ id: "cnGeoo" }),
1716
1716
  onClick: () => ae(i),
1717
1717
  "data-testid": `delete-action-${i.name}`
@@ -1744,27 +1744,27 @@ var re = ({ isOpen: t, folder: n, onClose: r, onSuccess: i, onError: o }) => {
1744
1744
  isOpen: Y !== null,
1745
1745
  object: Y,
1746
1746
  onClose: () => ae(null),
1747
- onSuccess: g,
1748
- onError: _
1747
+ onSuccess: _,
1748
+ onError: v
1749
1749
  }),
1750
1750
  /* @__PURE__ */ z(oe, {
1751
1751
  isOpen: se !== null,
1752
1752
  object: se,
1753
1753
  onClose: () => X(null),
1754
- onSuccess: v,
1755
- onError: y
1754
+ onSuccess: y,
1755
+ onError: b
1756
1756
  }),
1757
1757
  /* @__PURE__ */ z(ce, {
1758
1758
  isOpen: Q !== null,
1759
1759
  object: Q,
1760
1760
  onClose: () => le(null),
1761
- onSuccess: b,
1761
+ onSuccess: x,
1762
1762
  onError: w
1763
1763
  }),
1764
1764
  /* @__PURE__ */ z(Z, {
1765
1765
  isOpen: ue !== null,
1766
1766
  object: ue,
1767
- account: c,
1767
+ account: d,
1768
1768
  onClose: () => de(null),
1769
1769
  onCopySuccess: T
1770
1770
  }),
@@ -1787,40 +1787,40 @@ function ye(e) {
1787
1787
  prefix: t.slice(0, n + 1).join("/") + "/"
1788
1788
  }));
1789
1789
  }
1790
- var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName: e, currentPrefix: t, onContainersClick: n, onPrefixClick: a }) => {
1791
- let { i18n: o, _: s } = te(), c = ye(t), l = c.length === 0;
1790
+ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName: e, currentPrefix: t, onContainersClick: r, onPrefixClick: i }) => {
1791
+ let { i18n: a, _: o } = te(), s = ye(t), c = s.length === 0;
1792
1792
  return /* @__PURE__ */ z("div", {
1793
1793
  className: "mb-2 px-2 pt-2",
1794
- children: /* @__PURE__ */ B(i, { children: [
1795
- /* @__PURE__ */ z(r, {
1796
- onClick: n,
1794
+ children: /* @__PURE__ */ B(l, { children: [
1795
+ /* @__PURE__ */ z(n, {
1796
+ onClick: r,
1797
1797
  label: /* @__PURE__ */ B("span", {
1798
1798
  className: "flex items-center gap-1",
1799
1799
  children: [/* @__PURE__ */ z(A, {
1800
1800
  size: 15,
1801
1801
  className: "shrink-0"
1802
- }), o._({ id: "PLwzWR" })]
1802
+ }), a._({ id: "PLwzWR" })]
1803
1803
  })
1804
1804
  }),
1805
- /* @__PURE__ */ z(r, {
1806
- onClick: l ? void 0 : () => a(""),
1807
- active: l,
1805
+ /* @__PURE__ */ z(n, {
1806
+ onClick: c ? void 0 : () => i(""),
1807
+ active: c,
1808
1808
  label: /* @__PURE__ */ B("span", {
1809
- className: `flex items-center gap-1 ${l ? be : ""}`,
1810
- children: [z(l ? D : E, {
1809
+ className: `flex items-center gap-1 ${c ? be : ""}`,
1810
+ children: [z(c ? D : E, {
1811
1811
  size: 15,
1812
1812
  className: "shrink-0"
1813
1813
  }), e]
1814
1814
  })
1815
1815
  }),
1816
- c.map((e, t) => {
1817
- let n = t === c.length - 1;
1818
- return /* @__PURE__ */ z(r, {
1819
- onClick: n ? void 0 : () => a(e.prefix),
1820
- active: n,
1816
+ s.map((e, t) => {
1817
+ let r = t === s.length - 1;
1818
+ return /* @__PURE__ */ z(n, {
1819
+ onClick: r ? void 0 : () => i(e.prefix),
1820
+ active: r,
1821
1821
  label: /* @__PURE__ */ B("span", {
1822
- className: `flex items-center gap-1 ${n ? be : ""}`,
1823
- children: [z(n ? P : k, {
1822
+ className: `flex items-center gap-1 ${r ? be : ""}`,
1823
+ children: [z(r ? P : k, {
1824
1824
  size: 15,
1825
1825
  className: "shrink-0"
1826
1826
  }), e.label]
@@ -1829,38 +1829,38 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
1829
1829
  })
1830
1830
  ] })
1831
1831
  });
1832
- }, Se = ({ isOpen: t, currentPrefix: n, onClose: r, onSuccess: i, onError: a }) => {
1833
- let { i18n: o, _: s } = te(), c = ee(), { containerName: l } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), [u, d] = G(""), [f, p] = G(null), m = C.useUtils(), h = W(""), _ = C.storage.swift.createFolder.useMutation({
1832
+ }, Se = ({ isOpen: e, currentPrefix: t, onClose: n, onSuccess: r, onError: i }) => {
1833
+ let { i18n: a, _: o } = te(), s = ee(), { containerName: c } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), [l, u] = G(""), [d, p] = G(null), m = C.useUtils(), h = W(""), g = C.storage.swift.createFolder.useMutation({
1834
1834
  onSuccess: () => {
1835
- m.storage.swift.listObjects.invalidate(), i?.(h.current);
1835
+ m.storage.swift.listObjects.invalidate(), r?.(h.current);
1836
1836
  },
1837
1837
  onError: (e) => {
1838
- a?.(h.current, e.message);
1838
+ i?.(h.current, e.message);
1839
1839
  },
1840
1840
  onSettled: () => {
1841
- v();
1841
+ _();
1842
1842
  }
1843
- }), v = () => {
1844
- d(""), p(null), _.reset(), r();
1845
- }, y = (e) => {
1843
+ }), _ = () => {
1844
+ u(""), p(null), g.reset(), n();
1845
+ }, v = (e) => {
1846
1846
  let t = e.trim();
1847
- return t ? t.includes("/") ? (p(o._({ id: "Vl4XTj" })), !1) : t === e ? (p(null), !0) : (p(o._({ id: "gFKJBP" })), !1) : (p(o._({ id: "Fzrzfe" })), !1);
1848
- }, x = (e) => {
1847
+ return t ? t.includes("/") ? (p(a._({ id: "Vl4XTj" })), !1) : t === e ? (p(null), !0) : (p(a._({ id: "gFKJBP" })), !1) : (p(a._({ id: "Fzrzfe" })), !1);
1848
+ }, y = (e) => {
1849
1849
  let t = e.target.value;
1850
- d(t), f && y(t);
1850
+ u(t), d && v(t);
1851
1851
  }, S = () => {
1852
- if (!y(u)) return;
1853
- h.current = u.trim();
1854
- let e = `${n}${h.current}/`;
1855
- _.mutate({
1856
- project_id: c,
1857
- container: l,
1852
+ if (!v(l)) return;
1853
+ h.current = l.trim();
1854
+ let e = `${t}${h.current}/`;
1855
+ g.mutate({
1856
+ project_id: s,
1857
+ container: c,
1858
1858
  folderPath: e
1859
1859
  });
1860
1860
  }, w = (e) => {
1861
1861
  e.key === "Enter" && S();
1862
- }, T = n || "/";
1863
- return t ? /* @__PURE__ */ z(g, {
1862
+ }, T = t || "/";
1863
+ return e ? /* @__PURE__ */ z(f, {
1864
1864
  title: /* @__PURE__ */ B("span", {
1865
1865
  className: "flex max-w-[400px] items-center gap-1",
1866
1866
  children: [/* @__PURE__ */ z("span", {
@@ -1872,88 +1872,88 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
1872
1872
  children: T
1873
1873
  })]
1874
1874
  }),
1875
- open: t,
1876
- onCancel: v,
1877
- confirmButtonLabel: o._({ id: "boJ+Y1" }),
1875
+ open: e,
1876
+ onCancel: _,
1877
+ confirmButtonLabel: a._({ id: "boJ+Y1" }),
1878
1878
  onConfirm: S,
1879
- cancelButtonLabel: o._({ id: "dEgA5A" }),
1879
+ cancelButtonLabel: a._({ id: "dEgA5A" }),
1880
1880
  size: "small",
1881
- disableConfirmButton: _.isPending || !u.trim(),
1882
- children: /* @__PURE__ */ B(e, {
1881
+ disableConfirmButton: g.isPending || !l.trim(),
1882
+ children: /* @__PURE__ */ B(b, {
1883
1883
  direction: "vertical",
1884
1884
  gap: "6",
1885
1885
  children: [/* @__PURE__ */ z("p", {
1886
1886
  className: "text-theme-default",
1887
1887
  children: /* @__PURE__ */ z(J, { id: "Z42tfY" })
1888
- }), /* @__PURE__ */ z(b, {
1889
- label: o._({ id: "cqQyPB" }),
1888
+ }), /* @__PURE__ */ z(x, {
1889
+ label: a._({ id: "cqQyPB" }),
1890
1890
  required: !0,
1891
- value: u,
1892
- onChange: x,
1891
+ value: l,
1892
+ onChange: y,
1893
1893
  onKeyDown: w,
1894
- invalid: !!f,
1895
- errortext: f || void 0,
1896
- disabled: _.isPending,
1894
+ invalid: !!d,
1895
+ errortext: d || void 0,
1896
+ disabled: g.isPending,
1897
1897
  autoFocus: !0,
1898
- placeholder: o._({ id: "Zw49f9" })
1898
+ placeholder: a._({ id: "Zw49f9" })
1899
1899
  })]
1900
1900
  })
1901
1901
  }) : null;
1902
- }, Ce = ({ isOpen: t, currentPrefix: n, container: r, projectId: i, account: o, onClose: s, onSuccess: c, onError: l, onCancelled: u }) => {
1903
- let { i18n: d, _: f } = te(), [p, m] = G(null), [h, _] = G(null), [v, y] = G(!1), [b, x] = G(null), [T, E] = G(null), [D, O] = G(!1), k = W(""), A = W(null), j = W(null), N = C.useUtils(), P = () => {
1902
+ }, Ce = ({ isOpen: e, currentPrefix: t, container: n, projectId: r, account: i, onClose: a, onSuccess: o, onError: s, onCancelled: c }) => {
1903
+ let { i18n: l, _: d } = te(), [p, m] = G(null), [h, g] = G(null), [_, v] = G(!1), [y, x] = G(null), [T, E] = G(null), [D, O] = G(!1), k = W(""), A = W(null), j = W(null), N = C.useUtils(), P = () => {
1904
1904
  j.current?.abort();
1905
- }, { data: F } = C.storage.swift.watchUploadProgress.useSubscription({ uploadId: b ?? "" }, { enabled: !!b && D }), I = () => {
1905
+ }, { data: F } = C.storage.swift.watchUploadProgress.useSubscription({ uploadId: y ?? "" }, { enabled: !!y && D }), I = () => {
1906
1906
  D || ee();
1907
1907
  }, ee = () => {
1908
- m(null), _(null), y(!1), x(null), E(null), A.current && (A.current.value = ""), s();
1908
+ m(null), g(null), v(!1), x(null), E(null), A.current && (A.current.value = ""), a();
1909
1909
  }, V = (e) => {
1910
1910
  let t = e.target.files?.[0];
1911
- t && (_(null), E(null), m(t));
1911
+ t && (g(null), E(null), m(t));
1912
1912
  }, H = (e) => {
1913
- e.preventDefault(), e.stopPropagation(), !D && y(!0);
1913
+ e.preventDefault(), e.stopPropagation(), !D && v(!0);
1914
1914
  }, U = (e) => {
1915
- e.preventDefault(), e.stopPropagation(), !D && y(!1);
1915
+ e.preventDefault(), e.stopPropagation(), !D && v(!1);
1916
1916
  }, K = (e) => {
1917
- if (e.preventDefault(), e.stopPropagation(), y(!1), D) return;
1917
+ if (e.preventDefault(), e.stopPropagation(), v(!1), D) return;
1918
1918
  let t = e.dataTransfer.files?.[0];
1919
- t && (_(null), E(null), m(t));
1919
+ t && (g(null), E(null), m(t));
1920
1920
  }, q = async () => {
1921
1921
  if (!p) {
1922
- _(d._({ id: "AB4Tnl" }));
1922
+ g(l._({ id: "AB4Tnl" }));
1923
1923
  return;
1924
1924
  }
1925
- let e = `${n}${p.name}`, t = `${r}:${e}:${crypto.randomUUID()}`;
1925
+ let e = `${t}${p.name}`, a = `${n}:${e}:${crypto.randomUUID()}`;
1926
1926
  k.current = p.name, E(null);
1927
- let a = new AbortController();
1928
- j.current = a, x(t), O(!0);
1927
+ let u = new AbortController();
1928
+ j.current = u, x(a), O(!0);
1929
1929
  try {
1930
- let n = { headers: {
1931
- "x-upload-project-id": i,
1932
- "x-upload-container": r,
1930
+ let t = { headers: {
1931
+ "x-upload-project-id": r,
1932
+ "x-upload-container": n,
1933
1933
  "x-upload-object": e,
1934
1934
  "x-upload-type": p.type || "application/octet-stream",
1935
1935
  "x-upload-size": String(p.size),
1936
- "x-upload-id": t,
1937
- ...o ? { "x-upload-account": o } : {}
1936
+ "x-upload-id": a,
1937
+ ...i ? { "x-upload-account": i } : {}
1938
1938
  } };
1939
1939
  await S.storage.swift.uploadObject.mutate(p, {
1940
- context: n,
1941
- signal: a.signal
1942
- }), N.storage.swift.listObjects.invalidate({ container: r }), c?.(k.current), ee();
1940
+ context: t,
1941
+ signal: u.signal
1942
+ }), N.storage.swift.listObjects.invalidate({ container: n }), o?.(k.current), ee();
1943
1943
  } catch (e) {
1944
1944
  if (e instanceof Error && (e.name === "AbortError" || e.message === "Request canceled" || e.message.includes("signal is aborted") || e.message.includes("aborted"))) {
1945
- u?.(k.current), ee();
1945
+ c?.(k.current), ee();
1946
1946
  return;
1947
1947
  }
1948
1948
  let t = e instanceof Error ? e.message : String(e);
1949
- E(t), l?.(k.current, t);
1949
+ E(t), s?.(k.current, t);
1950
1950
  } finally {
1951
1951
  O(!1), x(null), j.current = null;
1952
1952
  }
1953
1953
  }, Y = F?.percent ?? null;
1954
- if (!t) return null;
1955
- let ne = n || "/", re = p ? `${n}${p.name}` : "";
1956
- return /* @__PURE__ */ z(g, {
1954
+ if (!e) return null;
1955
+ let ne = t || "/", re = p ? `${t}${p.name}` : "";
1956
+ return /* @__PURE__ */ z(f, {
1957
1957
  title: /* @__PURE__ */ B("span", {
1958
1958
  className: "flex max-w-[400px] items-center gap-1",
1959
1959
  children: [/* @__PURE__ */ z("span", {
@@ -1965,15 +1965,15 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
1965
1965
  children: ne
1966
1966
  })]
1967
1967
  }),
1968
- open: t,
1968
+ open: e,
1969
1969
  onCancel: D ? P : I,
1970
- confirmButtonLabel: D ? d._({ id: "GxkJXS" }) : d._({ id: "ONWvwQ" }),
1970
+ confirmButtonLabel: D ? l._({ id: "GxkJXS" }) : l._({ id: "ONWvwQ" }),
1971
1971
  onConfirm: q,
1972
- cancelButtonLabel: D ? d._({ id: "k99j0U" }) : d._({ id: "dEgA5A" }),
1972
+ cancelButtonLabel: D ? l._({ id: "k99j0U" }) : l._({ id: "dEgA5A" }),
1973
1973
  size: "small",
1974
1974
  disableConfirmButton: D || !p,
1975
1975
  disableCloseButton: D,
1976
- children: /* @__PURE__ */ B(e, {
1976
+ children: /* @__PURE__ */ B(b, {
1977
1977
  direction: "vertical",
1978
1978
  gap: "4",
1979
1979
  children: [
@@ -1995,7 +1995,7 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
1995
1995
  /* @__PURE__ */ B("div", { children: [
1996
1996
  /* @__PURE__ */ B("label", {
1997
1997
  htmlFor: "upload-object-file",
1998
- className: w("flex flex-col items-center justify-center rounded-lg border-2 border-dashed px-6 py-8 text-center transition-colors", v ? "border-theme-accent bg-theme-background-lvl-2" : D ? "border-theme-background-lvl-4 pointer-events-none cursor-not-allowed opacity-60" : "border-theme-background-lvl-4 hover:border-theme-accent hover:bg-theme-background-lvl-1 cursor-pointer"),
1998
+ className: w("flex flex-col items-center justify-center rounded-lg border-2 border-dashed px-6 py-8 text-center transition-colors", _ ? "border-theme-accent bg-theme-background-lvl-2" : D ? "border-theme-background-lvl-4 pointer-events-none cursor-not-allowed opacity-60" : "border-theme-background-lvl-4 hover:border-theme-accent hover:bg-theme-background-lvl-1 cursor-pointer"),
1999
1999
  onDragOver: H,
2000
2000
  onDragLeave: U,
2001
2001
  onDrop: K,
@@ -2006,18 +2006,18 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
2006
2006
  }),
2007
2007
  /* @__PURE__ */ z("p", {
2008
2008
  className: "text-theme-default text-sm font-medium",
2009
- children: v ? /* @__PURE__ */ z("span", { children: d._({ id: "DvB4XF" }) }) : /* @__PURE__ */ B(R, { children: [
2009
+ children: _ ? /* @__PURE__ */ z("span", { children: l._({ id: "DvB4XF" }) }) : /* @__PURE__ */ B(R, { children: [
2010
2010
  /* @__PURE__ */ z("span", {
2011
2011
  className: "font-semibold",
2012
- children: d._({ id: "gYe+hC" })
2012
+ children: l._({ id: "gYe+hC" })
2013
2013
  }),
2014
2014
  " ",
2015
- d._({ id: "Np28ib" })
2015
+ l._({ id: "Np28ib" })
2016
2016
  ] })
2017
2017
  }),
2018
2018
  /* @__PURE__ */ z("p", {
2019
2019
  className: "text-theme-light mt-1 text-xs",
2020
- children: d._({ id: "x/XQrD" })
2020
+ children: l._({ id: "x/XQrD" })
2021
2021
  }),
2022
2022
  /* @__PURE__ */ z("input", {
2023
2023
  ref: A,
@@ -2060,10 +2060,10 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
2060
2060
  }), !D && /* @__PURE__ */ z("button", {
2061
2061
  type: "button",
2062
2062
  onClick: () => {
2063
- m(null), _(null), E(null), A.current && (A.current.value = "");
2063
+ m(null), g(null), E(null), A.current && (A.current.value = "");
2064
2064
  },
2065
2065
  className: "ml-2 shrink-0 font-medium text-red-600 hover:text-red-800",
2066
- children: d._({ id: "t/YqKh" })
2066
+ children: l._({ id: "t/YqKh" })
2067
2067
  })]
2068
2068
  }),
2069
2069
  h && /* @__PURE__ */ z("p", {
@@ -2075,7 +2075,7 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
2075
2075
  className: "flex flex-col gap-2",
2076
2076
  children: [/* @__PURE__ */ B("span", {
2077
2077
  className: "text-theme-light flex items-center gap-2 text-sm",
2078
- children: [/* @__PURE__ */ z(a, { size: "small" }), Y === null ? /* @__PURE__ */ z(J, { id: "GxkJXS" }) : /* @__PURE__ */ z(J, {
2078
+ children: [/* @__PURE__ */ z(u, { size: "small" }), Y === null ? /* @__PURE__ */ z(J, { id: "GxkJXS" }) : /* @__PURE__ */ z(J, {
2079
2079
  id: "oEGiW3",
2080
2080
  values: { progressPct: Y }
2081
2081
  })]
@@ -2090,52 +2090,52 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
2090
2090
  ]
2091
2091
  })
2092
2092
  });
2093
- }, we = 20, Te = ({ isOpen: t, objectNames: n, objectKeys: r, container: i, account: o, onClose: s, onSuccess: c, onError: l }) => {
2094
- let { i18n: u, _: d } = te(), f = ee(), p = C.useUtils(), m = C.storage.swift.bulkDelete.useMutation({
2093
+ }, we = 20, Te = ({ isOpen: e, objectNames: t, objectKeys: n, container: r, account: i, onClose: a, onSuccess: o, onError: s }) => {
2094
+ let { i18n: c, _: l } = te(), d = ee(), p = C.useUtils(), m = C.storage.swift.bulkDelete.useMutation({
2095
2095
  onSuccess: (e) => {
2096
- if (p.storage.swift.listObjects.invalidate({ container: i }), e.errors.length > 0) {
2097
- let t = e.errors.map((e) => `${e.path}: ${e.error}`).join("\n"), n = new Set(e.errors.map((e) => e.path)), a = r.filter((e) => !n.has(`/${encodeURIComponent(i)}/${encodeURIComponent(e)}`)), { numberDeleted: o } = e, s = o > 0 ? `${u._({
2096
+ if (p.storage.swift.listObjects.invalidate({ container: r }), e.errors.length > 0) {
2097
+ let t = e.errors.map((e) => `${e.path}: ${e.error}`).join("\n"), i = new Set(e.errors.map((e) => e.path)), a = n.filter((e) => !i.has(`/${encodeURIComponent(r)}/${encodeURIComponent(e)}`)), { numberDeleted: o } = e, l = o > 0 ? `${c._({
2098
2098
  id: "Q9f2QF",
2099
2099
  values: { numberDeleted: o }
2100
2100
  })}\n${t}` : t;
2101
- l?.(s, a);
2102
- } else c?.(e.numberDeleted);
2101
+ s?.(l, a);
2102
+ } else o?.(e.numberDeleted);
2103
2103
  },
2104
2104
  onError: (e) => {
2105
- l?.(e.message, []);
2105
+ s?.(e.message, []);
2106
2106
  },
2107
2107
  onSettled: () => {
2108
2108
  h();
2109
2109
  }
2110
2110
  }), h = () => {
2111
- m.reset(), s();
2112
- }, _ = () => {
2113
- let e = r.map((e) => `/${encodeURIComponent(i)}/${encodeURIComponent(e)}`);
2111
+ m.reset(), a();
2112
+ }, g = () => {
2113
+ let e = n.map((e) => `/${encodeURIComponent(r)}/${encodeURIComponent(e)}`);
2114
2114
  m.mutate({
2115
- project_id: f,
2115
+ project_id: d,
2116
2116
  objects: e,
2117
- ...o ? { account: o } : {}
2117
+ ...i ? { account: i } : {}
2118
2118
  });
2119
2119
  };
2120
- if (!t || r.length === 0) return null;
2121
- let v = r.length, y = n.slice(0, we), b = v - y.length, x = m.isPending;
2122
- return /* @__PURE__ */ z(g, {
2123
- title: u._({ id: "p6CSHM" }),
2124
- open: t,
2120
+ if (!e || n.length === 0) return null;
2121
+ let _ = n.length, v = t.slice(0, we), y = _ - v.length, x = m.isPending;
2122
+ return /* @__PURE__ */ z(f, {
2123
+ title: c._({ id: "p6CSHM" }),
2124
+ open: e,
2125
2125
  onCancel: h,
2126
- confirmButtonLabel: x ? u._({ id: "EF2EU9" }) : u._({ id: "cnGeoo" }),
2126
+ confirmButtonLabel: x ? c._({ id: "EF2EU9" }) : c._({ id: "cnGeoo" }),
2127
2127
  confirmButtonVariant: "primary-danger",
2128
- cancelButtonLabel: u._({ id: "dEgA5A" }),
2129
- onConfirm: _,
2128
+ cancelButtonLabel: c._({ id: "dEgA5A" }),
2129
+ onConfirm: g,
2130
2130
  disableConfirmButton: x,
2131
2131
  disableCancelButton: x,
2132
2132
  disableCloseButton: x,
2133
2133
  size: "small",
2134
- children: x ? /* @__PURE__ */ z(e, {
2134
+ children: x ? /* @__PURE__ */ z(b, {
2135
2135
  distribution: "center",
2136
2136
  alignment: "center",
2137
2137
  className: "py-4",
2138
- children: /* @__PURE__ */ z(a, { variant: "primary" })
2138
+ children: /* @__PURE__ */ z(u, { variant: "primary" })
2139
2139
  }) : /* @__PURE__ */ B("div", {
2140
2140
  className: "my-6",
2141
2141
  children: [/* @__PURE__ */ z("p", {
@@ -2147,21 +2147,21 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
2147
2147
  className: "jn:text-theme-high mb-3 font-semibold",
2148
2148
  children: /* @__PURE__ */ z(J, {
2149
2149
  id: "B2i9cQ",
2150
- values: { totalCount: v }
2150
+ values: { totalCount: _ }
2151
2151
  })
2152
2152
  }), /* @__PURE__ */ B("div", {
2153
2153
  className: "jn:bg-theme-background-lvl-1 max-h-48 overflow-y-auto rounded p-4",
2154
2154
  children: [/* @__PURE__ */ z("ul", {
2155
2155
  className: "space-y-1",
2156
- children: y.map((e) => /* @__PURE__ */ z("li", {
2156
+ children: v.map((e) => /* @__PURE__ */ z("li", {
2157
2157
  className: "jn:text-theme-default font-mono text-sm",
2158
2158
  children: e
2159
2159
  }, e))
2160
- }), b > 0 && /* @__PURE__ */ z("p", {
2160
+ }), y > 0 && /* @__PURE__ */ z("p", {
2161
2161
  className: "text-theme-light mt-2 text-xs",
2162
2162
  children: /* @__PURE__ */ z(J, {
2163
2163
  id: "yqPflB",
2164
- values: { hiddenCount: b }
2164
+ values: { hiddenCount: y }
2165
2165
  })
2166
2166
  })]
2167
2167
  })]
@@ -2171,13 +2171,13 @@ var be = "bg-theme-background-lvl-4 rounded px-2 py-0.5", xe = ({ containerName:
2171
2171
  };
2172
2172
  //#endregion
2173
2173
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Swift/Objects/ObjectToastNotifications.tsx
2174
- function $({ title: t, description: n }) {
2175
- return /* @__PURE__ */ B(e, {
2174
+ function $({ title: e, description: t }) {
2175
+ return /* @__PURE__ */ B(b, {
2176
2176
  direction: "vertical",
2177
2177
  gap: "1.5",
2178
- children: [/* @__PURE__ */ z("span", { children: t }), /* @__PURE__ */ z("span", {
2178
+ children: [/* @__PURE__ */ z("span", { children: e }), /* @__PURE__ */ z("span", {
2179
2179
  className: "text-theme-light",
2180
- children: n
2180
+ children: t
2181
2181
  })]
2182
2182
  });
2183
2183
  }
@@ -2519,10 +2519,10 @@ var Je = [
2519
2519
  return typeof t == "string" && Je.includes(t) ? t : void 0;
2520
2520
  }
2521
2521
  }, Xe = () => {
2522
- let { i18n: t, _: n } = te(), r = ee(), i = K({ from: F.fullPath }), { provider: o, containerName: s } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), { prefix: c, sortBy: l, sortDirection: u, search: f = "" } = F.useSearch(), p = Ke(c), [m, h] = G(!1), [g, v] = G(!1), [y, b] = G(!1), [x, S] = G([]);
2522
+ let { i18n: e, _: t } = te(), n = ee(), r = K({ from: F.fullPath }), { provider: i, containerName: a } = q({ from: "/_auth/projects/$projectId/storage/$provider/containers/$containerName/objects/" }), { prefix: o, sortBy: s, sortDirection: c, search: l = "" } = F.useSearch(), d = Ke(o), [f, m] = G(!1), [h, g] = G(!1), [_, y] = G(!1), [x, S] = G([]);
2523
2523
  U(() => {
2524
2524
  S([]);
2525
- }, [p]);
2525
+ }, [d]);
2526
2526
  let [w, T] = G(null), E = () => T(null), D = (e) => T(Ee(e, { onDismiss: E })), O = (e, t) => T(De(e, t, { onDismiss: E })), k = (e) => T(Be(e, { onDismiss: E })), A = (e) => T(Ve(e, { onDismiss: E })), j = (e, t) => T(He(e, t, { onDismiss: E })), M = (e, t) => {
2527
2527
  T(Oe(e, Math.max(0, t - 1), { onDismiss: E }));
2528
2528
  }, N = (e, t) => T(ke(e, t, { onDismiss: E })), P = (e, t) => T(Ae(e, t, { onDismiss: E })), L = (e) => {
@@ -2536,41 +2536,41 @@ var Je = [
2536
2536
  }, ce = {
2537
2537
  options: [
2538
2538
  {
2539
- label: t._({ id: "6YtxFj" }),
2539
+ label: e._({ id: "6YtxFj" }),
2540
2540
  value: "name"
2541
2541
  },
2542
2542
  {
2543
- label: t._({ id: "sjMCOP" }),
2543
+ label: e._({ id: "sjMCOP" }),
2544
2544
  value: "last_modified"
2545
2545
  },
2546
2546
  {
2547
- label: t._({ id: "Cj2Gtd" }),
2547
+ label: e._({ id: "Cj2Gtd" }),
2548
2548
  value: "bytes"
2549
2549
  }
2550
2550
  ],
2551
- sortBy: l ?? void 0,
2552
- sortDirection: u ?? "asc"
2551
+ sortBy: s ?? void 0,
2552
+ sortDirection: c ?? "asc"
2553
2553
  }, { data: X, isLoading: Z, error: Q } = C.storage.swift.listObjects.useQuery({
2554
- project_id: r,
2555
- container: s,
2554
+ project_id: n,
2555
+ container: a,
2556
2556
  format: "json",
2557
- prefix: p || void 0
2557
+ prefix: d || void 0
2558
2558
  }), le = () => {
2559
- i({
2559
+ r({
2560
2560
  to: "/projects/$projectId/storage/$provider/containers",
2561
2561
  params: {
2562
- projectId: r,
2563
- provider: o
2562
+ projectId: n,
2563
+ provider: i
2564
2564
  }
2565
2565
  });
2566
2566
  }, ue = (e) => {
2567
- S([]), i({ search: (t) => ({
2567
+ S([]), r({ search: (t) => ({
2568
2568
  ...t,
2569
2569
  prefix: Ge(e)
2570
2570
  }) });
2571
- }, de = qe(X ?? [], p).filter((e) => e.displayName.toLowerCase().includes(f.toLowerCase().trim())), fe = l ? [...de].sort((e, t) => {
2571
+ }, de = qe(X ?? [], d).filter((e) => e.displayName.toLowerCase().includes(l.toLowerCase().trim())), fe = s ? [...de].sort((e, t) => {
2572
2572
  let n = 0;
2573
- switch (l) {
2573
+ switch (s) {
2574
2574
  case "name":
2575
2575
  n = e.displayName.localeCompare(t.displayName);
2576
2576
  break;
@@ -2584,11 +2584,11 @@ var Je = [
2584
2584
  n = (e.kind === "object" ? e.bytes : 0) - (t.kind === "object" ? t.bytes : 0);
2585
2585
  break;
2586
2586
  }
2587
- return (u ?? "asc") === "desc" ? -n : n;
2587
+ return (c ?? "asc") === "desc" ? -n : n;
2588
2588
  }) : de, pe = (e) => {
2589
2589
  let t = typeof e == "string" ? e : "";
2590
2590
  V(() => {
2591
- i({ search: (e) => ({
2591
+ r({ search: (e) => ({
2592
2592
  ...e,
2593
2593
  search: t || void 0
2594
2594
  }) });
@@ -2596,34 +2596,34 @@ var Je = [
2596
2596
  }, me = (e) => {
2597
2597
  let t = Ye(e.sortBy), n = e.sortDirection || "asc";
2598
2598
  V(() => {
2599
- i({ search: (e) => ({
2599
+ r({ search: (e) => ({
2600
2600
  ...e,
2601
2601
  sortBy: t,
2602
2602
  sortDirection: t ? n : void 0
2603
2603
  }) });
2604
2604
  });
2605
2605
  };
2606
- if (Z) return /* @__PURE__ */ B(e, {
2606
+ if (Z) return /* @__PURE__ */ B(b, {
2607
2607
  className: "fixed inset-0",
2608
2608
  distribution: "center",
2609
2609
  alignment: "center",
2610
2610
  direction: "vertical",
2611
- children: [/* @__PURE__ */ z(a, {
2611
+ children: [/* @__PURE__ */ z(u, {
2612
2612
  variant: "primary",
2613
2613
  size: "large",
2614
2614
  className: "mb-2"
2615
2615
  }), /* @__PURE__ */ z(J, { id: "GEgjm+" })]
2616
2616
  });
2617
2617
  if (Q) {
2618
- let t = Q.message;
2619
- return /* @__PURE__ */ z(e, {
2618
+ let e = Q.message;
2619
+ return /* @__PURE__ */ z(b, {
2620
2620
  className: "fixed inset-0",
2621
2621
  distribution: "center",
2622
2622
  alignment: "center",
2623
2623
  direction: "vertical",
2624
2624
  children: /* @__PURE__ */ z(J, {
2625
2625
  id: "BP4Fwj",
2626
- values: { errorMessage: t }
2626
+ values: { errorMessage: e }
2627
2627
  })
2628
2628
  });
2629
2629
  }
@@ -2632,32 +2632,32 @@ var Je = [
2632
2632
  className: "relative",
2633
2633
  children: [
2634
2634
  /* @__PURE__ */ z(xe, {
2635
- containerName: s,
2636
- currentPrefix: p,
2635
+ containerName: a,
2636
+ currentPrefix: d,
2637
2637
  onContainersClick: le,
2638
2638
  onPrefixClick: ue
2639
2639
  }),
2640
2640
  /* @__PURE__ */ z(I, {
2641
2641
  sortSettings: ce,
2642
- searchTerm: f,
2642
+ searchTerm: l,
2643
2643
  onSort: me,
2644
2644
  onSearch: pe,
2645
- actions: /* @__PURE__ */ B(e, {
2645
+ actions: /* @__PURE__ */ B(b, {
2646
2646
  direction: "horizontal",
2647
2647
  gap: "2",
2648
2648
  children: [
2649
- /* @__PURE__ */ z(_, {
2649
+ /* @__PURE__ */ z(p, {
2650
2650
  variant: "primary",
2651
- onClick: () => h(!0),
2651
+ onClick: () => m(!0),
2652
2652
  children: /* @__PURE__ */ z(J, { id: "boJ+Y1" })
2653
2653
  }),
2654
- /* @__PURE__ */ z(_, {
2655
- onClick: () => v(!0),
2654
+ /* @__PURE__ */ z(p, {
2655
+ onClick: () => g(!0),
2656
2656
  children: /* @__PURE__ */ z(J, { id: "MXoA/6" })
2657
2657
  }),
2658
- /* @__PURE__ */ z(_, {
2658
+ /* @__PURE__ */ z(p, {
2659
2659
  variant: "primary-danger",
2660
- onClick: () => b(!0),
2660
+ onClick: () => y(!0),
2661
2661
  disabled: !he,
2662
2662
  children: he ? /* @__PURE__ */ z(J, {
2663
2663
  id: "3AUpb4",
@@ -2669,8 +2669,8 @@ var Je = [
2669
2669
  }),
2670
2670
  /* @__PURE__ */ z(ve, {
2671
2671
  rows: fe,
2672
- searchTerm: f,
2673
- container: s,
2672
+ searchTerm: l,
2673
+ container: a,
2674
2674
  onFolderClick: ue,
2675
2675
  onDeleteFolderSuccess: M,
2676
2676
  onDeleteFolderError: N,
@@ -2688,32 +2688,32 @@ var Je = [
2688
2688
  setSelectedObjects: S
2689
2689
  }),
2690
2690
  /* @__PURE__ */ z(Te, {
2691
- isOpen: y,
2691
+ isOpen: _,
2692
2692
  objectNames: _e,
2693
2693
  objectKeys: x,
2694
- container: s,
2695
- onClose: () => b(!1),
2694
+ container: a,
2695
+ onClose: () => y(!1),
2696
2696
  onSuccess: oe,
2697
2697
  onError: se
2698
2698
  }),
2699
2699
  /* @__PURE__ */ z(Se, {
2700
- isOpen: m,
2701
- currentPrefix: p,
2702
- onClose: () => h(!1),
2700
+ isOpen: f,
2701
+ currentPrefix: d,
2702
+ onClose: () => m(!1),
2703
2703
  onSuccess: D,
2704
2704
  onError: O
2705
2705
  }),
2706
2706
  /* @__PURE__ */ z(Ce, {
2707
- projectId: r,
2708
- isOpen: g,
2709
- currentPrefix: p,
2710
- container: s,
2711
- onClose: () => v(!1),
2707
+ projectId: n,
2708
+ isOpen: h,
2709
+ currentPrefix: d,
2710
+ container: a,
2711
+ onClose: () => g(!1),
2712
2712
  onSuccess: k,
2713
2713
  onCancelled: A,
2714
2714
  onError: j
2715
2715
  }),
2716
- w && /* @__PURE__ */ z(d, {
2716
+ w && /* @__PURE__ */ z(v, {
2717
2717
  ...w,
2718
2718
  className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
2719
2719
  })
@@ -2722,36 +2722,36 @@ var Je = [
2722
2722
  };
2723
2723
  //#endregion
2724
2724
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Objects/DeleteObjectModal.tsx
2725
- function Ze({ bucketName: t, objectKey: n, objectSize: r, lastModified: i, isOpen: a, onClose: o, onSuccess: s, onError: c }) {
2726
- let { i18n: l, _: u } = te(), d = ee(), [f, p] = G(""), m = C.useUtils(), h = C.storage.ceph.objects.delete.useMutation({
2725
+ function Ze({ bucketName: e, objectKey: t, objectSize: n, lastModified: r, isOpen: i, onClose: a, onSuccess: o, onError: s }) {
2726
+ let { i18n: c, _: l } = te(), u = ee(), [d, m] = G(""), h = C.useUtils(), g = C.storage.ceph.objects.delete.useMutation({
2727
2727
  onSuccess: () => {
2728
- m.storage.ceph.objects.list.invalidate(), s(n), v();
2728
+ h.storage.ceph.objects.list.invalidate(), o(t), _();
2729
2729
  },
2730
2730
  onError: (e) => {
2731
- c(n, e.message);
2731
+ s(t, e.message);
2732
2732
  }
2733
- }), v = () => {
2734
- p(""), h.reset(), o();
2735
- }, y = () => {
2736
- d && h.mutate({
2737
- project_id: d,
2738
- containerName: t,
2739
- objectKey: n
2733
+ }), _ = () => {
2734
+ m(""), g.reset(), a();
2735
+ }, v = () => {
2736
+ u && g.mutate({
2737
+ project_id: u,
2738
+ containerName: e,
2739
+ objectKey: t
2740
2740
  });
2741
- }, x = n.endsWith("/"), S = n.split("/").filter(Boolean).pop() || n, w = f === "DELETE";
2742
- return /* @__PURE__ */ B(g, {
2743
- open: a,
2744
- onCancel: v,
2745
- title: x ? /* @__PURE__ */ z(J, { id: "97QUV6" }) : /* @__PURE__ */ z(J, { id: "JT+lLV" }),
2741
+ }, y = t.endsWith("/"), S = t.split("/").filter(Boolean).pop() || t, w = d === "DELETE";
2742
+ return /* @__PURE__ */ B(f, {
2743
+ open: i,
2744
+ onCancel: _,
2745
+ title: y ? /* @__PURE__ */ z(J, { id: "97QUV6" }) : /* @__PURE__ */ z(J, { id: "JT+lLV" }),
2746
2746
  size: "large",
2747
- children: [/* @__PURE__ */ B(e, {
2747
+ children: [/* @__PURE__ */ B(b, {
2748
2748
  direction: "vertical",
2749
2749
  gap: "4",
2750
2750
  children: [
2751
- /* @__PURE__ */ z("p", { children: x ? /* @__PURE__ */ z(J, { id: "gJKQwG" }) : /* @__PURE__ */ z(J, { id: "uFQALo" }) }),
2751
+ /* @__PURE__ */ z("p", { children: y ? /* @__PURE__ */ z(J, { id: "gJKQwG" }) : /* @__PURE__ */ z(J, { id: "uFQALo" }) }),
2752
2752
  /* @__PURE__ */ z("div", {
2753
2753
  className: "bg-theme-background-lvl-2 rounded p-4",
2754
- children: /* @__PURE__ */ B(e, {
2754
+ children: /* @__PURE__ */ B(b, {
2755
2755
  direction: "vertical",
2756
2756
  gap: "2",
2757
2757
  children: [
@@ -2762,26 +2762,26 @@ function Ze({ bucketName: t, objectKey: n, objectSize: r, lastModified: i, isOpe
2762
2762
  className: "mt-1 font-mono text-sm",
2763
2763
  children: S
2764
2764
  })] }),
2765
- !x && r !== void 0 && /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("span", {
2765
+ !y && n !== void 0 && /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("span", {
2766
2766
  className: "text-juno-grey-light-1 text-sm",
2767
2767
  children: /* @__PURE__ */ z(J, { id: "QdGvPV" })
2768
2768
  }), /* @__PURE__ */ z("div", {
2769
2769
  className: "mt-1 font-mono text-sm",
2770
- children: L(r)
2770
+ children: L(n)
2771
2771
  })] }),
2772
- !x && i && /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("span", {
2772
+ !y && r && /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("span", {
2773
2773
  className: "text-juno-grey-light-1 text-sm",
2774
2774
  children: /* @__PURE__ */ z(J, { id: "8BjKi0" })
2775
2775
  }), /* @__PURE__ */ z("div", {
2776
2776
  className: "mt-1 font-mono text-sm",
2777
- children: new Date(i).toLocaleString()
2777
+ children: new Date(r).toLocaleString()
2778
2778
  })] }),
2779
2779
  /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("span", {
2780
2780
  className: "text-juno-grey-light-1 text-sm",
2781
2781
  children: /* @__PURE__ */ z(J, { id: "t/cZdQ" })
2782
2782
  }), /* @__PURE__ */ z("div", {
2783
2783
  className: "mt-1 font-mono text-sm break-all",
2784
- children: n
2784
+ children: t
2785
2785
  })] })
2786
2786
  ]
2787
2787
  })
@@ -2789,34 +2789,34 @@ function Ze({ bucketName: t, objectKey: n, objectSize: r, lastModified: i, isOpe
2789
2789
  /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("p", {
2790
2790
  className: "text-juno-red mb-2 text-sm",
2791
2791
  children: /* @__PURE__ */ z(J, { id: "2xOCJW" })
2792
- }), /* @__PURE__ */ z(b, {
2793
- label: l._({ id: "sCPiLi" }),
2794
- value: f,
2795
- onChange: (e) => p(e.target.value),
2792
+ }), /* @__PURE__ */ z(x, {
2793
+ label: c._({ id: "sCPiLi" }),
2794
+ value: d,
2795
+ onChange: (e) => m(e.target.value),
2796
2796
  placeholder: "DELETE",
2797
2797
  autoFocus: !0
2798
2798
  })] }),
2799
- h.error && /* @__PURE__ */ B("p", {
2799
+ g.error && /* @__PURE__ */ B("p", {
2800
2800
  className: "text-juno-red text-sm",
2801
2801
  children: [
2802
2802
  /* @__PURE__ */ z(J, { id: "4BITzH" }),
2803
2803
  " ",
2804
- h.error.message
2804
+ g.error.message
2805
2805
  ]
2806
2806
  })
2807
2807
  ]
2808
2808
  }), /* @__PURE__ */ B("div", {
2809
2809
  className: "mt-6 flex justify-end gap-2",
2810
- children: [/* @__PURE__ */ z(_, {
2810
+ children: [/* @__PURE__ */ z(p, {
2811
2811
  variant: "subdued",
2812
- onClick: v,
2813
- disabled: h.isPending,
2812
+ onClick: _,
2813
+ disabled: g.isPending,
2814
2814
  children: /* @__PURE__ */ z(J, { id: "dEgA5A" })
2815
- }), /* @__PURE__ */ z(_, {
2815
+ }), /* @__PURE__ */ z(p, {
2816
2816
  variant: "primary-danger",
2817
- onClick: y,
2818
- disabled: !w || h.isPending,
2819
- children: h.isPending ? /* @__PURE__ */ z(J, { id: "EF2EU9" }) : /* @__PURE__ */ z(J, { id: "cnGeoo" })
2817
+ onClick: v,
2818
+ disabled: !w || g.isPending,
2819
+ children: g.isPending ? /* @__PURE__ */ z(J, { id: "EF2EU9" }) : /* @__PURE__ */ z(J, { id: "cnGeoo" })
2820
2820
  })]
2821
2821
  })]
2822
2822
  });
@@ -2967,24 +2967,24 @@ var Qe = (e, t, n = "") => {
2967
2967
  ...r,
2968
2968
  resetAll: l
2969
2969
  };
2970
- }, ot = 50, st = ({ isOpen: t, bucketName: n, objectKey: r, objectSize: i, onClose: o, onSuccess: s, onError: l }) => {
2971
- let { i18n: u, _: d } = te(), f = ee(), p = C.useUtils(), m = W(""), [h, x] = G(!0), [S, w] = G(!1), [E, D] = G(!1), O = W(null), { data: A, isLoading: M } = C.storage.ceph.containers.list.useQuery({
2972
- project_id: f ?? "",
2970
+ }, ot = 50, st = ({ isOpen: e, bucketName: t, objectKey: n, objectSize: r, onClose: i, onSuccess: a, onError: s }) => {
2971
+ let { i18n: c, _: l } = te(), m = ee(), h = C.useUtils(), g = W(""), [v, y] = G(!0), [S, w] = G(!1), [E, D] = G(!1), O = W(null), { data: A, isLoading: M } = C.storage.ceph.containers.list.useQuery({
2972
+ project_id: m ?? "",
2973
2973
  includeMetadata: !1
2974
- }, { enabled: t && !!f }), P = at({
2975
- initialBucket: n,
2974
+ }, { enabled: e && !!m }), P = at({
2975
+ initialBucket: t,
2976
2976
  allBuckets: A ?? [],
2977
2977
  existingRows: []
2978
2978
  }), { data: F, isLoading: I } = C.storage.ceph.objects.list.useQuery({
2979
- project_id: f ?? "",
2979
+ project_id: m ?? "",
2980
2980
  containerName: P.targetBucket,
2981
2981
  prefix: P.currentPrefix || void 0,
2982
2982
  delimiter: "/",
2983
2983
  maxKeys: 1e3
2984
- }, { enabled: t && !!P.targetBucket && !!f });
2984
+ }, { enabled: e && !!P.targetBucket && !!m });
2985
2985
  U(() => {
2986
- t && P.resetAll();
2987
- }, [t]);
2986
+ e && P.resetAll();
2987
+ }, [e]);
2988
2988
  let L = (() => {
2989
2989
  if (!F) return [];
2990
2990
  let e = F.folders.map((e) => ({
@@ -3013,24 +3013,24 @@ var Qe = (e, t, n = "") => {
3013
3013
  ...L.filter((e) => e.kind === "object")
3014
3014
  ], K = C.storage.ceph.objects.copy.useMutation({
3015
3015
  onSuccess: () => {
3016
- p.storage.ceph.objects.list.invalidate();
3016
+ h.storage.ceph.objects.list.invalidate();
3017
3017
  let e = `${P.currentPrefix}${q}`;
3018
- s?.(m.current, P.targetBucket, e, S), re();
3018
+ a?.(g.current, P.targetBucket, e, S), re();
3019
3019
  },
3020
3020
  onError: (e) => {
3021
- l?.(m.current, e.message);
3021
+ s?.(g.current, e.message);
3022
3022
  }
3023
- }), q = r.split("/").filter(Boolean).pop() ?? r, Y = H(async () => {
3024
- if (!f || !P.targetBucket) return;
3023
+ }), q = n.split("/").filter(Boolean).pop() ?? n, Y = H(async () => {
3024
+ if (!m || !P.targetBucket) return;
3025
3025
  let e = `${P.currentPrefix}${q}`;
3026
- if (P.targetBucket === n && e === r) {
3026
+ if (P.targetBucket === t && e === n) {
3027
3027
  w(!1);
3028
3028
  return;
3029
3029
  }
3030
3030
  D(!0);
3031
3031
  try {
3032
- await p.storage.ceph.objects.getDetails.fetch({
3033
- project_id: f,
3032
+ await h.storage.ceph.objects.getDetails.fetch({
3033
+ project_id: m,
3034
3034
  containerName: P.targetBucket,
3035
3035
  objectKey: e
3036
3036
  }), w(!0);
@@ -3040,35 +3040,35 @@ var Qe = (e, t, n = "") => {
3040
3040
  D(!1);
3041
3041
  }
3042
3042
  }, [
3043
- f,
3043
+ m,
3044
3044
  P.targetBucket,
3045
3045
  P.currentPrefix,
3046
3046
  q,
3047
+ t,
3047
3048
  n,
3048
- r,
3049
- p
3049
+ h
3050
3050
  ]);
3051
3051
  U(() => {
3052
- t && Y();
3053
- }, [t, Y]);
3052
+ e && Y();
3053
+ }, [e, Y]);
3054
3054
  let re = () => {
3055
- K.reset(), o();
3055
+ K.reset(), i();
3056
3056
  }, ie = (e) => {
3057
3057
  let t = Array.isArray(e) ? e[0] : typeof e == "number" ? String(e) : e;
3058
3058
  t && P.setTargetBucket(t);
3059
3059
  }, ae = (e) => {
3060
3060
  e.key === "Enter" && P.createFolder(), e.key === "Escape" && P.cancelCreateFolder();
3061
3061
  }, oe = () => {
3062
- if (!f) return;
3063
- m.current = r;
3062
+ if (!m) return;
3063
+ g.current = n;
3064
3064
  let e = `${P.currentPrefix}${q}`;
3065
3065
  K.mutate({
3066
- project_id: f,
3067
- sourceBucket: n,
3068
- sourceKey: r,
3066
+ project_id: m,
3067
+ sourceBucket: t,
3068
+ sourceKey: n,
3069
3069
  destinationBucket: P.targetBucket,
3070
3070
  destinationKey: e,
3071
- copyMetadata: h
3071
+ copyMetadata: v
3072
3072
  });
3073
3073
  }, se = V.filter((e) => e.kind === "folder"), ce = V.filter((e) => e.kind === "object"), X = [...se, ...ce], Z = ne({
3074
3074
  count: X.length,
@@ -3076,9 +3076,9 @@ var Qe = (e, t, n = "") => {
3076
3076
  estimateSize: () => 32,
3077
3077
  overscan: 5
3078
3078
  });
3079
- if (!t) return null;
3080
- let Q = K.isPending, le = I, ue = `${P.targetBucket}/${P.currentPrefix}${q}`, de = r.endsWith(q) ? r.slice(0, r.length - q.length) : "", fe = P.targetBucket === n && P.currentPrefix === de;
3081
- return /* @__PURE__ */ z(g, {
3079
+ if (!e) return null;
3080
+ let Q = K.isPending, le = I, ue = `${P.targetBucket}/${P.currentPrefix}${q}`, de = n.endsWith(q) ? n.slice(0, n.length - q.length) : "", fe = P.targetBucket === t && P.currentPrefix === de;
3081
+ return /* @__PURE__ */ z(f, {
3082
3082
  title: /* @__PURE__ */ B("span", {
3083
3083
  className: "flex max-w-[500px] items-center gap-1",
3084
3084
  children: [/* @__PURE__ */ z("span", {
@@ -3090,20 +3090,20 @@ var Qe = (e, t, n = "") => {
3090
3090
  children: q
3091
3091
  })]
3092
3092
  }),
3093
- open: t,
3093
+ open: e,
3094
3094
  onCancel: re,
3095
- confirmButtonLabel: Q ? u._({ id: "OvEjsP" }) : u._({ id: "he3ygx" }),
3095
+ confirmButtonLabel: Q ? c._({ id: "OvEjsP" }) : c._({ id: "he3ygx" }),
3096
3096
  onConfirm: oe,
3097
- cancelButtonLabel: u._({ id: "dEgA5A" }),
3097
+ cancelButtonLabel: c._({ id: "dEgA5A" }),
3098
3098
  size: "large",
3099
3099
  disableConfirmButton: Q || M || fe,
3100
- children: Q ? /* @__PURE__ */ B(e, {
3100
+ children: Q ? /* @__PURE__ */ B(b, {
3101
3101
  direction: "horizontal",
3102
3102
  alignment: "center",
3103
3103
  gap: "2",
3104
3104
  className: "py-8",
3105
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "QEtDlS" })]
3106
- }) : /* @__PURE__ */ B(e, {
3105
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "QEtDlS" })]
3106
+ }) : /* @__PURE__ */ B(b, {
3107
3107
  direction: "vertical",
3108
3108
  gap: "4",
3109
3109
  children: [
@@ -3116,26 +3116,26 @@ var Qe = (e, t, n = "") => {
3116
3116
  }),
3117
3117
  /* @__PURE__ */ z("div", {
3118
3118
  className: "mt-1 font-mono text-sm",
3119
- children: `${n}/${r}`
3119
+ children: `${t}/${n}`
3120
3120
  }),
3121
- i !== void 0 && /* @__PURE__ */ B("div", {
3121
+ r !== void 0 && /* @__PURE__ */ B("div", {
3122
3122
  className: "text-theme-light mt-1 text-xs",
3123
- children: [(i / 1024).toFixed(2), " KB"]
3123
+ children: [(r / 1024).toFixed(2), " KB"]
3124
3124
  })
3125
3125
  ]
3126
3126
  }),
3127
- /* @__PURE__ */ z(y, {
3128
- label: u._({ id: "6EcekU" }),
3127
+ /* @__PURE__ */ z(d, {
3128
+ label: c._({ id: "6EcekU" }),
3129
3129
  value: P.targetBucket,
3130
3130
  onChange: ie,
3131
3131
  onInputChange: P.handleSearchChange,
3132
- placeholder: u._({ id: "0XLPG9" }),
3132
+ placeholder: c._({ id: "0XLPG9" }),
3133
3133
  helptext: (() => {
3134
- if (M) return u._({ id: "WV/4x1" });
3135
- if (P.searchTerm.trim().length === 0) return u._({ id: "WzsMfv" });
3134
+ if (M) return c._({ id: "WV/4x1" });
3135
+ if (P.searchTerm.trim().length === 0) return c._({ id: "WzsMfv" });
3136
3136
  if (P.hiddenCount > 0) {
3137
3137
  let e = P.visibleBuckets.length + P.hiddenCount;
3138
- return u._({
3138
+ return c._({
3139
3139
  id: "vIxhHW",
3140
3140
  values: {
3141
3141
  MAX_COMBO_OPTIONS: ot,
@@ -3146,7 +3146,7 @@ var Qe = (e, t, n = "") => {
3146
3146
  })(),
3147
3147
  disabled: M || Q,
3148
3148
  required: !0,
3149
- children: P.visibleBuckets.map((e) => /* @__PURE__ */ z(v, {
3149
+ children: P.visibleBuckets.map((e) => /* @__PURE__ */ z(_, {
3150
3150
  value: e.name,
3151
3151
  children: e.name
3152
3152
  }, e.name))
@@ -3157,13 +3157,13 @@ var Qe = (e, t, n = "") => {
3157
3157
  children: [/* @__PURE__ */ z("span", {
3158
3158
  className: "text-sm font-medium",
3159
3159
  children: /* @__PURE__ */ z(J, { id: "Afh/Lb" })
3160
- }), /* @__PURE__ */ z(_, {
3160
+ }), /* @__PURE__ */ z(p, {
3161
3161
  size: "small",
3162
3162
  variant: "subdued",
3163
3163
  icon: "addCircle",
3164
3164
  onClick: P.startCreateFolder,
3165
3165
  disabled: Q,
3166
- title: u._({ id: "mxPfpY" }),
3166
+ title: c._({ id: "mxPfpY" }),
3167
3167
  children: /* @__PURE__ */ z(J, { id: "tX5yOZ" })
3168
3168
  })]
3169
3169
  }),
@@ -3185,12 +3185,12 @@ var Qe = (e, t, n = "") => {
3185
3185
  /* @__PURE__ */ B("div", {
3186
3186
  ref: O,
3187
3187
  className: "border-theme-background-lvl-2 max-h-56 overflow-y-auto rounded-b border",
3188
- children: [le ? /* @__PURE__ */ B(e, {
3188
+ children: [le ? /* @__PURE__ */ B(b, {
3189
3189
  direction: "horizontal",
3190
3190
  alignment: "center",
3191
3191
  gap: "2",
3192
3192
  className: "py-6",
3193
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "Z3FXyt" })]
3193
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "Z3FXyt" })]
3194
3194
  }) : X.length === 0 && !P.showNewFolderInput ? /* @__PURE__ */ z("div", {
3195
3195
  className: "text-theme-light px-4 py-6 text-center text-sm",
3196
3196
  children: /* @__PURE__ */ z(J, { id: "vcQSZh" })
@@ -3236,10 +3236,10 @@ var Qe = (e, t, n = "") => {
3236
3236
  })
3237
3237
  }), P.showNewFolderInput && /* @__PURE__ */ z("div", {
3238
3238
  className: "border-theme-background-lvl-2 border-t px-4 py-3",
3239
- children: /* @__PURE__ */ z(e, {
3239
+ children: /* @__PURE__ */ z(b, {
3240
3240
  direction: "vertical",
3241
3241
  gap: "2",
3242
- children: /* @__PURE__ */ B(e, {
3242
+ children: /* @__PURE__ */ B(b, {
3243
3243
  direction: "horizontal",
3244
3244
  gap: "2",
3245
3245
  alignment: "center",
@@ -3248,24 +3248,24 @@ var Qe = (e, t, n = "") => {
3248
3248
  size: 16,
3249
3249
  className: "text-theme-light shrink-0"
3250
3250
  }),
3251
- /* @__PURE__ */ z(b, {
3251
+ /* @__PURE__ */ z(x, {
3252
3252
  value: P.newFolderName,
3253
3253
  onChange: (e) => P.setNewFolderName(e.target.value),
3254
3254
  onKeyDown: ae,
3255
- placeholder: u._({ id: "KzUd7m" }),
3255
+ placeholder: c._({ id: "KzUd7m" }),
3256
3256
  invalid: !!P.newFolderError,
3257
3257
  errortext: P.newFolderError ?? void 0,
3258
3258
  autoFocus: !0,
3259
3259
  className: "flex-1"
3260
3260
  }),
3261
- /* @__PURE__ */ z(_, {
3261
+ /* @__PURE__ */ z(p, {
3262
3262
  size: "small",
3263
3263
  variant: "primary",
3264
3264
  onClick: P.createFolder,
3265
3265
  disabled: !P.newFolderName.trim(),
3266
3266
  children: /* @__PURE__ */ z(J, { id: "hYgDIe" })
3267
3267
  }),
3268
- /* @__PURE__ */ z(_, {
3268
+ /* @__PURE__ */ z(p, {
3269
3269
  size: "small",
3270
3270
  variant: "subdued",
3271
3271
  onClick: P.cancelCreateFolder,
@@ -3277,22 +3277,22 @@ var Qe = (e, t, n = "") => {
3277
3277
  })]
3278
3278
  })
3279
3279
  ] }),
3280
- /* @__PURE__ */ z(b, {
3281
- label: u._({ id: "Vh/Uj5" }),
3280
+ /* @__PURE__ */ z(x, {
3281
+ label: c._({ id: "Vh/Uj5" }),
3282
3282
  value: ue,
3283
3283
  readOnly: !0,
3284
3284
  className: "font-mono",
3285
- helptext: u._({ id: "Z/eWPC" })
3285
+ helptext: c._({ id: "Z/eWPC" })
3286
3286
  }),
3287
- E ? /* @__PURE__ */ z(c, {
3287
+ E ? /* @__PURE__ */ z(o, {
3288
3288
  variant: "info",
3289
- children: /* @__PURE__ */ B(e, {
3289
+ children: /* @__PURE__ */ B(b, {
3290
3290
  direction: "horizontal",
3291
3291
  alignment: "center",
3292
3292
  gap: "2",
3293
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "WIJz7N" })]
3293
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "WIJz7N" })]
3294
3294
  })
3295
- }) : S ? /* @__PURE__ */ z(c, {
3295
+ }) : S ? /* @__PURE__ */ z(o, {
3296
3296
  variant: "warning",
3297
3297
  children: /* @__PURE__ */ z(J, { id: "G3pRO8" })
3298
3298
  }) : null,
@@ -3300,8 +3300,8 @@ var Qe = (e, t, n = "") => {
3300
3300
  className: "flex cursor-pointer items-center gap-2",
3301
3301
  children: [/* @__PURE__ */ z("input", {
3302
3302
  type: "checkbox",
3303
- checked: h,
3304
- onChange: (e) => x(e.target.checked),
3303
+ checked: v,
3304
+ onChange: (e) => y(e.target.checked),
3305
3305
  className: "h-4 w-4"
3306
3306
  }), /* @__PURE__ */ z("span", {
3307
3307
  className: "text-sm",
@@ -3310,7 +3310,7 @@ var Qe = (e, t, n = "") => {
3310
3310
  }),
3311
3311
  K.isError && (() => {
3312
3312
  let e = K.error.message;
3313
- return /* @__PURE__ */ z(c, {
3313
+ return /* @__PURE__ */ z(o, {
3314
3314
  variant: "danger",
3315
3315
  children: /* @__PURE__ */ z(J, {
3316
3316
  id: "IOkHLC",
@@ -3321,26 +3321,26 @@ var Qe = (e, t, n = "") => {
3321
3321
  ]
3322
3322
  })
3323
3323
  });
3324
- }, ct = 50, lt = ({ isOpen: t, bucketName: n, objectKey: r, objectSize: i, onClose: o, onSuccess: s, onError: l }) => {
3325
- let { i18n: u, _: d } = te(), f = ee(), p = C.useUtils(), m = W(""), h = W(""), x = W(""), [S, w] = G(""), [E, D] = G(null), A = W(null), { data: M, isLoading: P } = C.storage.ceph.containers.list.useQuery({
3326
- project_id: f ?? "",
3324
+ }, ct = 50, lt = ({ isOpen: e, bucketName: t, objectKey: n, objectSize: r, onClose: i, onSuccess: a, onError: s }) => {
3325
+ let { i18n: c, _: l } = te(), m = ee(), h = C.useUtils(), g = W(""), v = W(""), y = W(""), [S, w] = G(""), [E, D] = G(null), A = W(null), { data: M, isLoading: P } = C.storage.ceph.containers.list.useQuery({
3326
+ project_id: m ?? "",
3327
3327
  includeMetadata: !1
3328
- }, { enabled: t && !!f }), F = at({
3329
- initialBucket: n,
3328
+ }, { enabled: e && !!m }), F = at({
3329
+ initialBucket: t,
3330
3330
  allBuckets: M ?? [],
3331
3331
  existingRows: []
3332
3332
  }), { data: I, isLoading: L } = C.storage.ceph.objects.list.useQuery({
3333
- project_id: f ?? "",
3333
+ project_id: m ?? "",
3334
3334
  containerName: F.targetBucket,
3335
3335
  prefix: F.currentPrefix || void 0,
3336
3336
  delimiter: "/",
3337
3337
  maxKeys: 1e3
3338
- }, { enabled: t && !!F.targetBucket && !!f });
3338
+ }, { enabled: e && !!F.targetBucket && !!m });
3339
3339
  U(() => {
3340
- t && r && (w(r.split("/").filter(Boolean).pop() ?? r), F.resetAll());
3341
- }, [t, r]), U(() => {
3342
- t || (w(""), D(null));
3343
- }, [t]);
3340
+ e && n && (w(n.split("/").filter(Boolean).pop() ?? n), F.resetAll());
3341
+ }, [e, n]), U(() => {
3342
+ e || (w(""), D(null));
3343
+ }, [e]);
3344
3344
  let R = (() => {
3345
3345
  if (!I) return [];
3346
3346
  let e = I.folders.map((e) => ({
@@ -3369,10 +3369,10 @@ var Qe = (e, t, n = "") => {
3369
3369
  ...R.filter((e) => e.kind === "object")
3370
3370
  ], K = C.storage.ceph.objects.delete.useMutation({
3371
3371
  onSuccess: () => {
3372
- p.storage.ceph.objects.list.invalidate(), s?.(m.current, x.current, h.current);
3372
+ h.storage.ceph.objects.list.invalidate(), a?.(g.current, y.current, v.current);
3373
3373
  },
3374
3374
  onError: (e) => {
3375
- l?.(m.current, e.message);
3375
+ s?.(g.current, e.message);
3376
3376
  },
3377
3377
  onSettled: () => {
3378
3378
  Y();
@@ -3380,33 +3380,33 @@ var Qe = (e, t, n = "") => {
3380
3380
  }), q = C.storage.ceph.objects.copy.useMutation({
3381
3381
  onSuccess: () => {
3382
3382
  K.mutate({
3383
- project_id: f ?? "",
3384
- containerName: n,
3385
- objectKey: r
3383
+ project_id: m ?? "",
3384
+ containerName: t,
3385
+ objectKey: n
3386
3386
  });
3387
3387
  },
3388
3388
  onError: (e) => {
3389
- l?.(m.current, e.message), Y();
3389
+ s?.(g.current, e.message), Y();
3390
3390
  }
3391
3391
  }), Y = () => {
3392
- q.reset(), K.reset(), o();
3392
+ q.reset(), K.reset(), i();
3393
3393
  }, re = (e) => {
3394
3394
  let t = Array.isArray(e) ? e[0] : typeof e == "number" ? String(e) : e;
3395
3395
  t && F.setTargetBucket(t);
3396
3396
  }, ie = (e) => {
3397
3397
  e.key === "Enter" && F.createFolder(), e.key === "Escape" && F.cancelCreateFolder();
3398
3398
  }, ae = () => {
3399
- if (!f) return;
3399
+ if (!m) return;
3400
3400
  let e = $e(S);
3401
3401
  if (e) {
3402
- D(u._(e.message));
3402
+ D(c._(e.message));
3403
3403
  return;
3404
3404
  }
3405
- let t = S.trim(), i = `${F.currentPrefix}${t}`;
3406
- m.current = r, h.current = i, x.current = F.targetBucket, q.mutate({
3407
- project_id: f,
3408
- sourceBucket: n,
3409
- sourceKey: r,
3405
+ let r = S.trim(), i = `${F.currentPrefix}${r}`;
3406
+ g.current = n, v.current = i, y.current = F.targetBucket, q.mutate({
3407
+ project_id: m,
3408
+ sourceBucket: t,
3409
+ sourceKey: n,
3410
3410
  destinationBucket: F.targetBucket,
3411
3411
  destinationKey: i,
3412
3412
  copyMetadata: !0
@@ -3417,9 +3417,9 @@ var Qe = (e, t, n = "") => {
3417
3417
  estimateSize: () => 32,
3418
3418
  overscan: 5
3419
3419
  });
3420
- if (!t) return null;
3421
- let Z = r.split("/").filter(Boolean).pop() ?? r, Q = q.isPending || K.isPending, le = L, ue = `${F.targetBucket}/${F.currentPrefix}${S.trim() || Z}`, de = r.endsWith(Z) ? r.slice(0, r.length - Z.length) : "", fe = F.targetBucket === n && F.currentPrefix === de && S.trim() === Z;
3422
- return /* @__PURE__ */ z(g, {
3420
+ if (!e) return null;
3421
+ let Z = n.split("/").filter(Boolean).pop() ?? n, Q = q.isPending || K.isPending, le = L, ue = `${F.targetBucket}/${F.currentPrefix}${S.trim() || Z}`, de = n.endsWith(Z) ? n.slice(0, n.length - Z.length) : "", fe = F.targetBucket === t && F.currentPrefix === de && S.trim() === Z;
3422
+ return /* @__PURE__ */ z(f, {
3423
3423
  title: /* @__PURE__ */ B("span", {
3424
3424
  className: "flex max-w-[500px] items-center gap-1",
3425
3425
  children: [/* @__PURE__ */ z("span", {
@@ -3431,35 +3431,35 @@ var Qe = (e, t, n = "") => {
3431
3431
  children: Z
3432
3432
  })]
3433
3433
  }),
3434
- open: t,
3434
+ open: e,
3435
3435
  onCancel: Y,
3436
- confirmButtonLabel: Q ? u._({ id: "K8Qnlj" }) : u._({ id: "QWdKwH" }),
3436
+ confirmButtonLabel: Q ? c._({ id: "K8Qnlj" }) : c._({ id: "QWdKwH" }),
3437
3437
  onConfirm: ae,
3438
- cancelButtonLabel: u._({ id: "dEgA5A" }),
3438
+ cancelButtonLabel: c._({ id: "dEgA5A" }),
3439
3439
  size: "large",
3440
3440
  disableConfirmButton: Q || P || fe,
3441
- children: Q ? /* @__PURE__ */ B(e, {
3441
+ children: Q ? /* @__PURE__ */ B(b, {
3442
3442
  direction: "horizontal",
3443
3443
  alignment: "center",
3444
3444
  gap: "2",
3445
3445
  className: "py-8",
3446
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "1H2g6v" })]
3447
- }) : /* @__PURE__ */ B(e, {
3446
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "1H2g6v" })]
3447
+ }) : /* @__PURE__ */ B(b, {
3448
3448
  direction: "vertical",
3449
3449
  gap: "4",
3450
3450
  children: [
3451
- /* @__PURE__ */ z(b, {
3452
- label: u._({ id: "f+Uq1E" }),
3451
+ /* @__PURE__ */ z(x, {
3452
+ label: c._({ id: "f+Uq1E" }),
3453
3453
  value: S,
3454
3454
  onChange: (e) => {
3455
3455
  w(e.target.value), E && D(null);
3456
3456
  },
3457
3457
  invalid: !!E,
3458
3458
  errortext: E ?? void 0,
3459
- helptext: u._({ id: "rAtQcX" }),
3459
+ helptext: c._({ id: "rAtQcX" }),
3460
3460
  required: !0
3461
3461
  }),
3462
- /* @__PURE__ */ z(c, {
3462
+ /* @__PURE__ */ z(o, {
3463
3463
  variant: "warning",
3464
3464
  children: /* @__PURE__ */ B("div", {
3465
3465
  className: "flex items-start gap-2",
@@ -3482,26 +3482,26 @@ var Qe = (e, t, n = "") => {
3482
3482
  }),
3483
3483
  /* @__PURE__ */ z("div", {
3484
3484
  className: "mt-1 font-mono text-sm",
3485
- children: `${n}/${r}`
3485
+ children: `${t}/${n}`
3486
3486
  }),
3487
- i !== void 0 && /* @__PURE__ */ B("div", {
3487
+ r !== void 0 && /* @__PURE__ */ B("div", {
3488
3488
  className: "text-theme-light mt-1 text-xs",
3489
- children: [(i / 1024).toFixed(2), " KB"]
3489
+ children: [(r / 1024).toFixed(2), " KB"]
3490
3490
  })
3491
3491
  ]
3492
3492
  }),
3493
- /* @__PURE__ */ z(y, {
3494
- label: u._({ id: "6EcekU" }),
3493
+ /* @__PURE__ */ z(d, {
3494
+ label: c._({ id: "6EcekU" }),
3495
3495
  value: F.targetBucket,
3496
3496
  onChange: re,
3497
3497
  onInputChange: F.handleSearchChange,
3498
- placeholder: u._({ id: "0XLPG9" }),
3498
+ placeholder: c._({ id: "0XLPG9" }),
3499
3499
  helptext: (() => {
3500
- if (P) return u._({ id: "WV/4x1" });
3501
- if (F.searchTerm.trim().length === 0) return u._({ id: "WzsMfv" });
3500
+ if (P) return c._({ id: "WV/4x1" });
3501
+ if (F.searchTerm.trim().length === 0) return c._({ id: "WzsMfv" });
3502
3502
  if (F.hiddenCount > 0) {
3503
3503
  let e = F.visibleBuckets.length + F.hiddenCount;
3504
- return u._({
3504
+ return c._({
3505
3505
  id: "vIxhHW",
3506
3506
  values: {
3507
3507
  MAX_COMBO_OPTIONS: ct,
@@ -3512,7 +3512,7 @@ var Qe = (e, t, n = "") => {
3512
3512
  })(),
3513
3513
  disabled: P || Q,
3514
3514
  required: !0,
3515
- children: F.visibleBuckets.map((e) => /* @__PURE__ */ z(v, {
3515
+ children: F.visibleBuckets.map((e) => /* @__PURE__ */ z(_, {
3516
3516
  value: e.name,
3517
3517
  children: e.name
3518
3518
  }, e.name))
@@ -3523,13 +3523,13 @@ var Qe = (e, t, n = "") => {
3523
3523
  children: [/* @__PURE__ */ z("span", {
3524
3524
  className: "text-sm font-medium",
3525
3525
  children: /* @__PURE__ */ z(J, { id: "Afh/Lb" })
3526
- }), /* @__PURE__ */ z(_, {
3526
+ }), /* @__PURE__ */ z(p, {
3527
3527
  size: "small",
3528
3528
  variant: "subdued",
3529
3529
  icon: "addCircle",
3530
3530
  onClick: F.startCreateFolder,
3531
3531
  disabled: Q,
3532
- title: u._({ id: "mxPfpY" }),
3532
+ title: c._({ id: "mxPfpY" }),
3533
3533
  children: /* @__PURE__ */ z(J, { id: "tX5yOZ" })
3534
3534
  })]
3535
3535
  }),
@@ -3551,12 +3551,12 @@ var Qe = (e, t, n = "") => {
3551
3551
  /* @__PURE__ */ B("div", {
3552
3552
  ref: A,
3553
3553
  className: "border-theme-background-lvl-2 max-h-56 overflow-y-auto rounded-b border",
3554
- children: [le ? /* @__PURE__ */ B(e, {
3554
+ children: [le ? /* @__PURE__ */ B(b, {
3555
3555
  direction: "horizontal",
3556
3556
  alignment: "center",
3557
3557
  gap: "2",
3558
3558
  className: "py-6",
3559
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "Z3FXyt" })]
3559
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "Z3FXyt" })]
3560
3560
  }) : ce.length === 0 && !F.showNewFolderInput ? /* @__PURE__ */ z("div", {
3561
3561
  className: "text-theme-light px-4 py-6 text-center text-sm",
3562
3562
  children: /* @__PURE__ */ z(J, { id: "vcQSZh" })
@@ -3602,10 +3602,10 @@ var Qe = (e, t, n = "") => {
3602
3602
  })
3603
3603
  }), F.showNewFolderInput && /* @__PURE__ */ z("div", {
3604
3604
  className: "border-theme-background-lvl-2 border-t px-4 py-3",
3605
- children: /* @__PURE__ */ z(e, {
3605
+ children: /* @__PURE__ */ z(b, {
3606
3606
  direction: "vertical",
3607
3607
  gap: "2",
3608
- children: /* @__PURE__ */ B(e, {
3608
+ children: /* @__PURE__ */ B(b, {
3609
3609
  direction: "horizontal",
3610
3610
  gap: "2",
3611
3611
  alignment: "center",
@@ -3614,24 +3614,24 @@ var Qe = (e, t, n = "") => {
3614
3614
  size: 16,
3615
3615
  className: "text-theme-light shrink-0"
3616
3616
  }),
3617
- /* @__PURE__ */ z(b, {
3617
+ /* @__PURE__ */ z(x, {
3618
3618
  value: F.newFolderName,
3619
3619
  onChange: (e) => F.setNewFolderName(e.target.value),
3620
3620
  onKeyDown: ie,
3621
- placeholder: u._({ id: "KzUd7m" }),
3621
+ placeholder: c._({ id: "KzUd7m" }),
3622
3622
  invalid: !!F.newFolderError,
3623
3623
  errortext: F.newFolderError ?? void 0,
3624
3624
  autoFocus: !0,
3625
3625
  className: "flex-1"
3626
3626
  }),
3627
- /* @__PURE__ */ z(_, {
3627
+ /* @__PURE__ */ z(p, {
3628
3628
  size: "small",
3629
3629
  variant: "primary",
3630
3630
  onClick: F.createFolder,
3631
3631
  disabled: !F.newFolderName.trim(),
3632
3632
  children: /* @__PURE__ */ z(J, { id: "hYgDIe" })
3633
3633
  }),
3634
- /* @__PURE__ */ z(_, {
3634
+ /* @__PURE__ */ z(p, {
3635
3635
  size: "small",
3636
3636
  variant: "subdued",
3637
3637
  onClick: F.cancelCreateFolder,
@@ -3643,21 +3643,21 @@ var Qe = (e, t, n = "") => {
3643
3643
  })]
3644
3644
  })
3645
3645
  ] }),
3646
- /* @__PURE__ */ z(b, {
3647
- label: u._({ id: "Vh/Uj5" }),
3646
+ /* @__PURE__ */ z(x, {
3647
+ label: c._({ id: "Vh/Uj5" }),
3648
3648
  value: ue,
3649
3649
  readOnly: !0,
3650
3650
  className: "font-mono",
3651
- helptext: fe ? u._({ id: "ZKb0D4" }) : u._({ id: "rlgAtt" }),
3651
+ helptext: fe ? c._({ id: "ZKb0D4" }) : c._({ id: "rlgAtt" }),
3652
3652
  invalid: fe
3653
3653
  }),
3654
- /* @__PURE__ */ z(c, {
3654
+ /* @__PURE__ */ z(o, {
3655
3655
  variant: "info",
3656
3656
  children: /* @__PURE__ */ z(J, { id: "TVsqbi" })
3657
3657
  }),
3658
3658
  (q.isError || K.isError) && (() => {
3659
3659
  let e = q.error?.message ?? "", t = K.error?.message ?? "";
3660
- return /* @__PURE__ */ z(c, {
3660
+ return /* @__PURE__ */ z(o, {
3661
3661
  variant: "danger",
3662
3662
  children: q.isError ? /* @__PURE__ */ z(J, {
3663
3663
  id: "i5MEDc",
@@ -3684,13 +3684,13 @@ var Qe = (e, t, n = "") => {
3684
3684
  let t = 0;
3685
3685
  for (let n of e) t += 11 + n.key.length + 2 + n.value.length + 2;
3686
3686
  return t;
3687
- }, ft = 2048, pt = ({ isOpen: n, bucketName: r, objectKey: i, onClose: s, onSuccess: u, onError: d }) => {
3688
- let { i18n: f, _: p } = te(), m = ee(), h = C.useUtils(), { data: v, isLoading: y, isError: S, error: w } = C.storage.ceph.objects.getDetails.useQuery({
3689
- project_id: m ?? "",
3690
- containerName: r,
3691
- objectKey: i
3687
+ }, ft = 2048, pt = ({ isOpen: e, bucketName: t, objectKey: n, onClose: a, onSuccess: s, onError: l }) => {
3688
+ let { i18n: d, _: m } = te(), h = ee(), _ = C.useUtils(), { data: v, isLoading: y, isError: S, error: w } = C.storage.ceph.objects.getDetails.useQuery({
3689
+ project_id: h ?? "",
3690
+ containerName: t,
3691
+ objectKey: n
3692
3692
  }, {
3693
- enabled: n && !!m,
3693
+ enabled: e && !!h,
3694
3694
  refetchOnWindowFocus: !1
3695
3695
  }), T = W(0), E = () => ++T.current, [D, O] = G([]), [k, A] = G({}), [j, M] = G(!1), [N, P] = G(""), [F, I] = G(""), [R, V] = G(null), H = W([]), K = W("");
3696
3696
  U(() => {
@@ -3705,8 +3705,8 @@ var Qe = (e, t, n = "") => {
3705
3705
  }));
3706
3706
  O(e), H.current = e.map((e) => ({ ...e }));
3707
3707
  }, [v]), U(() => {
3708
- n || q();
3709
- }, [n]);
3708
+ e || q();
3709
+ }, [e]);
3710
3710
  let q = () => {
3711
3711
  O([]), A({}), M(!1), P(""), I(""), V(null), ae.reset();
3712
3712
  }, Y = (() => {
@@ -3715,26 +3715,26 @@ var Qe = (e, t, n = "") => {
3715
3715
  return D.some((t) => e.get(t.key) !== t.value);
3716
3716
  })(), ne = D.some((e) => e.isEditing), re = dt(D), ie = re > ft, ae = C.storage.ceph.objects.updateMetadata.useMutation({
3717
3717
  onSuccess: () => {
3718
- h.storage.ceph.objects.getDetails.invalidate({
3719
- project_id: m ?? "",
3720
- containerName: r,
3718
+ _.storage.ceph.objects.getDetails.invalidate({
3719
+ project_id: h ?? "",
3720
+ containerName: t,
3721
3721
  objectKey: K.current
3722
- }), h.storage.ceph.objects.list.invalidate(), u?.(K.current), oe();
3722
+ }), _.storage.ceph.objects.list.invalidate(), s?.(K.current), oe();
3723
3723
  },
3724
3724
  onError: (e) => {
3725
- d?.(K.current, e.message);
3725
+ l?.(K.current, e.message);
3726
3726
  }
3727
3727
  }), oe = () => {
3728
- q(), s();
3728
+ q(), a();
3729
3729
  }, se = () => {
3730
- if (!m || ie) return;
3731
- K.current = i;
3730
+ if (!h || ie) return;
3731
+ K.current = n;
3732
3732
  let e = {};
3733
3733
  for (let t of D) e[t.key] = t.value;
3734
3734
  ae.mutate({
3735
- project_id: m,
3736
- containerName: r,
3737
- objectKey: i,
3735
+ project_id: h,
3736
+ containerName: t,
3737
+ objectKey: n,
3738
3738
  metadata: e
3739
3739
  });
3740
3740
  }, ce = (e) => {
@@ -3760,14 +3760,14 @@ var Qe = (e, t, n = "") => {
3760
3760
  if (n) {
3761
3761
  A((t) => ({
3762
3762
  ...t,
3763
- [`edit-${e}`]: f._(n.message)
3763
+ [`edit-${e}`]: d._(n.message)
3764
3764
  }));
3765
3765
  return;
3766
3766
  }
3767
3767
  if (D.some((n, r) => r !== e && n.key.toLowerCase() === t.key.toLowerCase())) {
3768
3768
  A((t) => ({
3769
3769
  ...t,
3770
- [`edit-${e}`]: f._({ id: "q6K46F" })
3770
+ [`edit-${e}`]: d._({ id: "q6K46F" })
3771
3771
  }));
3772
3772
  return;
3773
3773
  }
@@ -3792,11 +3792,11 @@ var Qe = (e, t, n = "") => {
3792
3792
  }, de = () => {
3793
3793
  let e = et(N);
3794
3794
  if (e) {
3795
- V(f._(e.message));
3795
+ V(d._(e.message));
3796
3796
  return;
3797
3797
  }
3798
3798
  if (D.some((e) => e.key.toLowerCase() === N.trim().toLowerCase())) {
3799
- V(f._({ id: "q6K46F" }));
3799
+ V(d._({ id: "q6K46F" }));
3800
3800
  return;
3801
3801
  }
3802
3802
  O((e) => [...e, {
@@ -3808,9 +3808,9 @@ var Qe = (e, t, n = "") => {
3808
3808
  }, fe = () => {
3809
3809
  P(""), I(""), V(null), M(!1);
3810
3810
  };
3811
- if (!n) return null;
3812
- let pe = i.split("/").filter(Boolean).pop() ?? i, me = ae.isPending, he = me || y, ge = w?.message ?? "", _e = ae.error?.message ?? "";
3813
- return /* @__PURE__ */ z(g, {
3811
+ if (!e) return null;
3812
+ let pe = n.split("/").filter(Boolean).pop() ?? n, me = ae.isPending, he = me || y, ge = w?.message ?? "", _e = ae.error?.message ?? "";
3813
+ return /* @__PURE__ */ z(f, {
3814
3814
  title: /* @__PURE__ */ z("span", {
3815
3815
  className: "flex max-w-[400px] items-center gap-1",
3816
3816
  children: /* @__PURE__ */ z(J, {
@@ -3825,26 +3825,26 @@ var Qe = (e, t, n = "") => {
3825
3825
  }
3826
3826
  })
3827
3827
  }),
3828
- open: n,
3828
+ open: e,
3829
3829
  onCancel: oe,
3830
- confirmButtonLabel: me ? f._({ id: "XvjC4F" }) : f._({ id: "V/SINY" }),
3830
+ confirmButtonLabel: me ? d._({ id: "XvjC4F" }) : d._({ id: "V/SINY" }),
3831
3831
  onConfirm: se,
3832
- cancelButtonLabel: f._({ id: "dEgA5A" }),
3832
+ cancelButtonLabel: d._({ id: "dEgA5A" }),
3833
3833
  size: "large",
3834
3834
  disableConfirmButton: he || !Y || ne || j || ie,
3835
- children: y ? /* @__PURE__ */ B(e, {
3835
+ children: y ? /* @__PURE__ */ B(b, {
3836
3836
  direction: "horizontal",
3837
3837
  alignment: "center",
3838
3838
  gap: "2",
3839
3839
  className: "py-8",
3840
- children: [/* @__PURE__ */ z(a, { size: "small" }), /* @__PURE__ */ z(J, { id: "O80bQY" })]
3841
- }) : S ? /* @__PURE__ */ z(c, {
3840
+ children: [/* @__PURE__ */ z(u, { size: "small" }), /* @__PURE__ */ z(J, { id: "O80bQY" })]
3841
+ }) : S ? /* @__PURE__ */ z(o, {
3842
3842
  variant: "danger",
3843
3843
  children: /* @__PURE__ */ z(J, {
3844
3844
  id: "+p6nHr",
3845
3845
  values: { metadataErrorMessage: ge }
3846
3846
  })
3847
- }) : /* @__PURE__ */ B(e, {
3847
+ }) : /* @__PURE__ */ B(b, {
3848
3848
  direction: "vertical",
3849
3849
  gap: "6",
3850
3850
  children: [
@@ -3883,7 +3883,7 @@ var Qe = (e, t, n = "") => {
3883
3883
  ]
3884
3884
  })] }),
3885
3885
  /* @__PURE__ */ B("div", { children: [
3886
- /* @__PURE__ */ B(e, {
3886
+ /* @__PURE__ */ B(b, {
3887
3887
  direction: "horizontal",
3888
3888
  alignment: "center",
3889
3889
  distribution: "between",
@@ -3907,123 +3907,123 @@ var Qe = (e, t, n = "") => {
3907
3907
  })]
3908
3908
  })]
3909
3909
  }),
3910
- ie && /* @__PURE__ */ z(c, {
3910
+ ie && /* @__PURE__ */ z(o, {
3911
3911
  variant: "warning",
3912
3912
  className: "mb-3",
3913
3913
  children: /* @__PURE__ */ z(J, { id: "tkRT08" })
3914
3914
  }),
3915
- /* @__PURE__ */ z(e, {
3915
+ /* @__PURE__ */ z(b, {
3916
3916
  direction: "horizontal",
3917
3917
  className: "jn:bg-theme-background-lvl-1 mb-3 justify-end p-2",
3918
- children: /* @__PURE__ */ z(_, {
3919
- label: f._({ id: "sWBLli" }),
3918
+ children: /* @__PURE__ */ z(p, {
3919
+ label: d._({ id: "sWBLli" }),
3920
3920
  onClick: () => M(!0),
3921
3921
  variant: "primary",
3922
3922
  icon: "addCircle",
3923
3923
  disabled: j || ne || he
3924
3924
  })
3925
3925
  }),
3926
- /* @__PURE__ */ B(x, {
3926
+ /* @__PURE__ */ B(i, {
3927
3927
  columns: 3,
3928
3928
  children: [
3929
- /* @__PURE__ */ B(o, { children: [
3930
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "7sMeHQ" }) }),
3931
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "wMHvYH" }) }),
3932
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "7L01XJ" }) })
3929
+ /* @__PURE__ */ B(r, { children: [
3930
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "7sMeHQ" }) }),
3931
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "wMHvYH" }) }),
3932
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "7L01XJ" }) })
3933
3933
  ] }),
3934
- j && /* @__PURE__ */ B(o, { children: [
3935
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ z(b, {
3934
+ j && /* @__PURE__ */ B(r, { children: [
3935
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ z(x, {
3936
3936
  value: N,
3937
3937
  onChange: (e) => {
3938
3938
  P(e.target.value), R && V(null);
3939
3939
  },
3940
- placeholder: f._({ id: "TSclU4" }),
3940
+ placeholder: d._({ id: "TSclU4" }),
3941
3941
  errortext: R ?? void 0,
3942
3942
  invalid: !!R,
3943
3943
  autoFocus: !0
3944
3944
  }) }),
3945
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ z(b, {
3945
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ z(x, {
3946
3946
  value: F,
3947
3947
  onChange: (e) => I(e.target.value),
3948
- placeholder: f._({ id: "wMHvYH" })
3948
+ placeholder: d._({ id: "wMHvYH" })
3949
3949
  }) }),
3950
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ B(e, {
3950
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ B(b, {
3951
3951
  direction: "horizontal",
3952
3952
  gap: "2",
3953
- children: [/* @__PURE__ */ z(_, {
3953
+ children: [/* @__PURE__ */ z(p, {
3954
3954
  size: "small",
3955
3955
  variant: "primary",
3956
3956
  onClick: de,
3957
3957
  icon: "check",
3958
- title: f._({ id: "tfDRzk" })
3959
- }), /* @__PURE__ */ z(_, {
3958
+ title: d._({ id: "tfDRzk" })
3959
+ }), /* @__PURE__ */ z(p, {
3960
3960
  size: "small",
3961
3961
  variant: "subdued",
3962
3962
  onClick: fe,
3963
3963
  icon: "close",
3964
- title: f._({ id: "bzSI52" })
3964
+ title: d._({ id: "bzSI52" })
3965
3965
  })]
3966
3966
  }) })
3967
3967
  ] }),
3968
- D.map((n, r) => /* @__PURE__ */ B(o, { children: [
3969
- /* @__PURE__ */ z(t, { children: n.isEditing ? /* @__PURE__ */ z(b, {
3970
- value: n.key,
3971
- onChange: (e) => X(r, e.target.value),
3972
- errortext: k[`edit-${r}`],
3973
- invalid: !!k[`edit-${r}`]
3968
+ D.map((e, t) => /* @__PURE__ */ B(r, { children: [
3969
+ /* @__PURE__ */ z(g, { children: e.isEditing ? /* @__PURE__ */ z(x, {
3970
+ value: e.key,
3971
+ onChange: (e) => X(t, e.target.value),
3972
+ errortext: k[`edit-${t}`],
3973
+ invalid: !!k[`edit-${t}`]
3974
3974
  }) : /* @__PURE__ */ z("span", {
3975
3975
  className: "block max-w-xs truncate font-mono text-sm",
3976
- title: n.key,
3977
- children: n.key
3976
+ title: e.key,
3977
+ children: e.key
3978
3978
  }) }),
3979
- /* @__PURE__ */ z(t, { children: n.isEditing ? /* @__PURE__ */ z(b, {
3980
- value: n.value,
3981
- onChange: (e) => Z(r, e.target.value)
3979
+ /* @__PURE__ */ z(g, { children: e.isEditing ? /* @__PURE__ */ z(x, {
3980
+ value: e.value,
3981
+ onChange: (e) => Z(t, e.target.value)
3982
3982
  }) : /* @__PURE__ */ z("span", {
3983
3983
  className: "block max-w-md truncate text-sm",
3984
- title: n.value,
3985
- children: n.value
3984
+ title: e.value,
3985
+ children: e.value
3986
3986
  }) }),
3987
- /* @__PURE__ */ z(t, { children: n.isEditing ? /* @__PURE__ */ B(e, {
3987
+ /* @__PURE__ */ z(g, { children: e.isEditing ? /* @__PURE__ */ B(b, {
3988
3988
  direction: "horizontal",
3989
3989
  gap: "2",
3990
- children: [/* @__PURE__ */ z(_, {
3990
+ children: [/* @__PURE__ */ z(p, {
3991
3991
  size: "small",
3992
3992
  variant: "primary",
3993
- onClick: () => Q(r),
3993
+ onClick: () => Q(t),
3994
3994
  icon: "check",
3995
- title: f._({ id: "tfDRzk" })
3996
- }), /* @__PURE__ */ z(_, {
3995
+ title: d._({ id: "tfDRzk" })
3996
+ }), /* @__PURE__ */ z(p, {
3997
3997
  size: "small",
3998
3998
  variant: "subdued",
3999
- onClick: () => le(r),
3999
+ onClick: () => le(t),
4000
4000
  icon: "close",
4001
- title: f._({ id: "bzSI52" })
4001
+ title: d._({ id: "bzSI52" })
4002
4002
  })]
4003
- }) : /* @__PURE__ */ B(e, {
4003
+ }) : /* @__PURE__ */ B(b, {
4004
4004
  direction: "horizontal",
4005
4005
  gap: "2",
4006
- children: [/* @__PURE__ */ z(_, {
4006
+ children: [/* @__PURE__ */ z(p, {
4007
4007
  size: "small",
4008
4008
  variant: "subdued",
4009
- onClick: () => ce(r),
4009
+ onClick: () => ce(t),
4010
4010
  icon: "edit",
4011
- title: f._({ id: "ePK91l" }),
4011
+ title: d._({ id: "ePK91l" }),
4012
4012
  disabled: j || ne || he
4013
- }), /* @__PURE__ */ z(_, {
4013
+ }), /* @__PURE__ */ z(p, {
4014
4014
  size: "small",
4015
4015
  variant: "primary-danger",
4016
- onClick: () => ue(r),
4016
+ onClick: () => ue(t),
4017
4017
  icon: "deleteForever",
4018
- title: f._({ id: "cnGeoo" }),
4018
+ title: d._({ id: "cnGeoo" }),
4019
4019
  disabled: j || ne || he
4020
4020
  })]
4021
4021
  }) })
4022
- ] }, n.uid)),
4023
- D.length === 0 && !j && /* @__PURE__ */ z(o, { children: /* @__PURE__ */ z(t, {
4022
+ ] }, e.uid)),
4023
+ D.length === 0 && !j && /* @__PURE__ */ z(r, { children: /* @__PURE__ */ z(g, {
4024
4024
  colSpan: 3,
4025
4025
  className: "py-6 text-center",
4026
- children: /* @__PURE__ */ z(e, {
4026
+ children: /* @__PURE__ */ z(b, {
4027
4027
  alignment: "center",
4028
4028
  children: /* @__PURE__ */ z("span", {
4029
4029
  className: "text-theme-light text-sm",
@@ -4034,7 +4034,7 @@ var Qe = (e, t, n = "") => {
4034
4034
  ]
4035
4035
  })
4036
4036
  ] }),
4037
- ae.isError && /* @__PURE__ */ z(c, {
4037
+ ae.isError && /* @__PURE__ */ z(o, {
4038
4038
  variant: "danger",
4039
4039
  children: /* @__PURE__ */ z(J, {
4040
4040
  id: "7ZnTL8",
@@ -4047,16 +4047,16 @@ var Qe = (e, t, n = "") => {
4047
4047
  };
4048
4048
  //#endregion
4049
4049
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Objects/ObjectsTableView.tsx
4050
- function mt({ bucketName: e, objects: n, folders: r, currentPrefix: i, onFolderClick: a, onDeleteObjectSuccess: c, onDeleteObjectError: d, onCopyObjectSuccess: p, onCopyObjectError: m, onMoveObjectSuccess: h, onMoveObjectError: g, onEditMetadataSuccess: _, onEditMetadataError: v }) {
4051
- let { i18n: y, _: b } = te(), [S, C] = G(null), [w, T] = G(null), [E, D] = G(null), [O, A] = G(null), M = (e) => i ? e.replace(i, "") : e;
4052
- return r.length === 0 && n.length === 0 ? /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ B(x, {
4050
+ function mt({ bucketName: t, objects: n, folders: o, currentPrefix: l, onFolderClick: u, onDeleteObjectSuccess: d, onDeleteObjectError: f, onCopyObjectSuccess: p, onCopyObjectError: m, onMoveObjectSuccess: h, onMoveObjectError: _, onEditMetadataSuccess: v, onEditMetadataError: y }) {
4051
+ let { i18n: b, _: x } = te(), [S, C] = G(null), [w, T] = G(null), [E, D] = G(null), [O, A] = G(null), M = (e) => l ? e.replace(l, "") : e;
4052
+ return o.length === 0 && n.length === 0 ? /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ B(i, {
4053
4053
  columns: 4,
4054
- children: [/* @__PURE__ */ B(o, { children: [
4055
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "6YtxFj" }) }),
4056
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "Cj2Gtd" }) }),
4057
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "sjMCOP" }) }),
4058
- /* @__PURE__ */ z(l, {})
4059
- ] }), /* @__PURE__ */ z(o, { children: /* @__PURE__ */ z(t, {
4054
+ children: [/* @__PURE__ */ B(r, { children: [
4055
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "6YtxFj" }) }),
4056
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "Cj2Gtd" }) }),
4057
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "sjMCOP" }) }),
4058
+ /* @__PURE__ */ z(c, {})
4059
+ ] }), /* @__PURE__ */ z(r, { children: /* @__PURE__ */ z(g, {
4060
4060
  colSpan: 4,
4061
4061
  children: /* @__PURE__ */ z("div", {
4062
4062
  className: "py-8 text-center",
@@ -4067,32 +4067,32 @@ function mt({ bucketName: e, objects: n, folders: r, currentPrefix: i, onFolderC
4067
4067
  })
4068
4068
  }) })]
4069
4069
  }), /* @__PURE__ */ z(Ze, {
4070
- bucketName: e,
4070
+ bucketName: t,
4071
4071
  objectKey: S?.key ?? "",
4072
4072
  objectSize: S?.size,
4073
4073
  lastModified: S?.lastModified,
4074
4074
  isOpen: S !== null,
4075
4075
  onClose: () => C(null),
4076
- onSuccess: c,
4077
- onError: d
4076
+ onSuccess: d,
4077
+ onError: f
4078
4078
  })] }) : /* @__PURE__ */ B(R, { children: [
4079
- /* @__PURE__ */ B(x, {
4079
+ /* @__PURE__ */ B(i, {
4080
4080
  columns: 4,
4081
4081
  children: [
4082
- /* @__PURE__ */ B(o, { children: [
4083
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "6YtxFj" }) }),
4084
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "Cj2Gtd" }) }),
4085
- /* @__PURE__ */ z(l, { children: /* @__PURE__ */ z(J, { id: "sjMCOP" }) }),
4086
- /* @__PURE__ */ z(l, {})
4082
+ /* @__PURE__ */ B(r, { children: [
4083
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "6YtxFj" }) }),
4084
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "Cj2Gtd" }) }),
4085
+ /* @__PURE__ */ z(c, { children: /* @__PURE__ */ z(J, { id: "sjMCOP" }) }),
4086
+ /* @__PURE__ */ z(c, {})
4087
4087
  ] }),
4088
- r.map((e) => {
4089
- let n = M(e.prefix).replace(/\/$/, "");
4090
- return /* @__PURE__ */ B(o, { children: [
4091
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ B("button", {
4088
+ o.map((t) => {
4089
+ let n = M(t.prefix).replace(/\/$/, "");
4090
+ return /* @__PURE__ */ B(r, { children: [
4091
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ B("button", {
4092
4092
  type: "button",
4093
4093
  className: "flex min-w-0 items-center gap-2 rounded text-left hover:underline focus-visible:outline focus-visible:outline-2",
4094
- onClick: () => a(e.prefix),
4095
- title: e.prefix,
4094
+ onClick: () => u(t.prefix),
4095
+ title: t.prefix,
4096
4096
  children: [/* @__PURE__ */ z(k, {
4097
4097
  size: 18,
4098
4098
  className: "text-theme-light shrink-0"
@@ -4101,24 +4101,24 @@ function mt({ bucketName: e, objects: n, folders: r, currentPrefix: i, onFolderC
4101
4101
  children: n
4102
4102
  })]
4103
4103
  }) }),
4104
- /* @__PURE__ */ z(t, { children: "—" }),
4105
- /* @__PURE__ */ z(t, { children: "—" }),
4106
- /* @__PURE__ */ z(t, {
4104
+ /* @__PURE__ */ z(g, { children: "—" }),
4105
+ /* @__PURE__ */ z(g, { children: "—" }),
4106
+ /* @__PURE__ */ z(g, {
4107
4107
  onClick: (e) => e.stopPropagation(),
4108
4108
  children: /* @__PURE__ */ z("div", {
4109
4109
  className: "flex justify-end",
4110
- children: /* @__PURE__ */ z(f, { children: /* @__PURE__ */ z(s, { children: /* @__PURE__ */ z(u, {
4111
- label: y._({ id: "cnGeoo" }),
4112
- onClick: () => C({ key: e.prefix })
4110
+ children: /* @__PURE__ */ z(e, { children: /* @__PURE__ */ z(s, { children: /* @__PURE__ */ z(a, {
4111
+ label: b._({ id: "cnGeoo" }),
4112
+ onClick: () => C({ key: t.prefix })
4113
4113
  }) }) })
4114
4114
  })
4115
4115
  })
4116
- ] }, e.prefix);
4116
+ ] }, t.prefix);
4117
4117
  }),
4118
- n.map((e) => {
4119
- let n = M(e.key);
4120
- return /* @__PURE__ */ B(o, { children: [
4121
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ B("div", {
4118
+ n.map((t) => {
4119
+ let n = M(t.key);
4120
+ return /* @__PURE__ */ B(r, { children: [
4121
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ B("div", {
4122
4122
  className: "flex items-center gap-2",
4123
4123
  children: [/* @__PURE__ */ z(j, {
4124
4124
  size: 18,
@@ -4128,64 +4128,64 @@ function mt({ bucketName: e, objects: n, folders: r, currentPrefix: i, onFolderC
4128
4128
  children: n
4129
4129
  })]
4130
4130
  }) }),
4131
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ z("span", {
4131
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ z("span", {
4132
4132
  className: "text-juno-grey-light-1 text-sm",
4133
- children: L(e.size)
4133
+ children: L(t.size)
4134
4134
  }) }),
4135
- /* @__PURE__ */ z(t, { children: /* @__PURE__ */ z("span", {
4135
+ /* @__PURE__ */ z(g, { children: /* @__PURE__ */ z("span", {
4136
4136
  className: "text-juno-grey-light-1 text-sm",
4137
- children: e.lastModified ? new Date(e.lastModified).toLocaleString() : "—"
4137
+ children: t.lastModified ? new Date(t.lastModified).toLocaleString() : "—"
4138
4138
  }) }),
4139
- /* @__PURE__ */ z(t, {
4139
+ /* @__PURE__ */ z(g, {
4140
4140
  onClick: (e) => e.stopPropagation(),
4141
4141
  children: /* @__PURE__ */ z("div", {
4142
4142
  className: "flex justify-end",
4143
- children: /* @__PURE__ */ z(f, { children: /* @__PURE__ */ B(s, { children: [
4144
- /* @__PURE__ */ z(u, {
4145
- label: y._({ id: "he3ygx" }),
4143
+ children: /* @__PURE__ */ z(e, { children: /* @__PURE__ */ B(s, { children: [
4144
+ /* @__PURE__ */ z(a, {
4145
+ label: b._({ id: "he3ygx" }),
4146
4146
  onClick: () => T({
4147
- key: e.key,
4148
- size: e.size
4147
+ key: t.key,
4148
+ size: t.size
4149
4149
  })
4150
4150
  }),
4151
- /* @__PURE__ */ z(u, {
4152
- label: y._({ id: "QWdKwH" }),
4151
+ /* @__PURE__ */ z(a, {
4152
+ label: b._({ id: "QWdKwH" }),
4153
4153
  onClick: () => D({
4154
- key: e.key,
4155
- size: e.size
4154
+ key: t.key,
4155
+ size: t.size
4156
4156
  })
4157
4157
  }),
4158
- /* @__PURE__ */ z(u, {
4159
- label: y._({ id: "SIfYq6" }),
4160
- onClick: () => A(e.key)
4158
+ /* @__PURE__ */ z(a, {
4159
+ label: b._({ id: "SIfYq6" }),
4160
+ onClick: () => A(t.key)
4161
4161
  }),
4162
- /* @__PURE__ */ z(u, {
4163
- label: y._({ id: "cnGeoo" }),
4162
+ /* @__PURE__ */ z(a, {
4163
+ label: b._({ id: "cnGeoo" }),
4164
4164
  onClick: () => C({
4165
- key: e.key,
4166
- size: e.size,
4167
- lastModified: e.lastModified
4165
+ key: t.key,
4166
+ size: t.size,
4167
+ lastModified: t.lastModified
4168
4168
  })
4169
4169
  })
4170
4170
  ] }) })
4171
4171
  })
4172
4172
  })
4173
- ] }, e.key);
4173
+ ] }, t.key);
4174
4174
  })
4175
4175
  ]
4176
4176
  }),
4177
4177
  /* @__PURE__ */ z(Ze, {
4178
- bucketName: e,
4178
+ bucketName: t,
4179
4179
  objectKey: S?.key ?? "",
4180
4180
  objectSize: S?.size,
4181
4181
  lastModified: S?.lastModified,
4182
4182
  isOpen: S !== null,
4183
4183
  onClose: () => C(null),
4184
- onSuccess: c,
4185
- onError: d
4184
+ onSuccess: d,
4185
+ onError: f
4186
4186
  }),
4187
4187
  /* @__PURE__ */ z(st, {
4188
- bucketName: e,
4188
+ bucketName: t,
4189
4189
  objectKey: w?.key ?? "",
4190
4190
  objectSize: w?.size,
4191
4191
  isOpen: w !== null,
@@ -4194,21 +4194,21 @@ function mt({ bucketName: e, objects: n, folders: r, currentPrefix: i, onFolderC
4194
4194
  onError: m
4195
4195
  }),
4196
4196
  /* @__PURE__ */ z(lt, {
4197
- bucketName: e,
4197
+ bucketName: t,
4198
4198
  objectKey: E?.key ?? "",
4199
4199
  objectSize: E?.size,
4200
4200
  isOpen: E !== null,
4201
4201
  onClose: () => D(null),
4202
4202
  onSuccess: h,
4203
- onError: g
4203
+ onError: _
4204
4204
  }),
4205
4205
  /* @__PURE__ */ z(pt, {
4206
- bucketName: e,
4206
+ bucketName: t,
4207
4207
  objectKey: O ?? "",
4208
4208
  isOpen: O !== null,
4209
4209
  onClose: () => A(null),
4210
- onSuccess: _,
4211
- onError: v
4210
+ onSuccess: v,
4211
+ onError: y
4212
4212
  })
4213
4213
  ] });
4214
4214
  }
@@ -4223,28 +4223,28 @@ function ht(e) {
4223
4223
  }));
4224
4224
  }
4225
4225
  var gt = "bg-theme-background-lvl-4 rounded px-2 py-0.5";
4226
- function _t({ bucketName: e, prefix: t, onPrefixClick: n }) {
4227
- let a = ht(t), o = a.length === 0;
4226
+ function _t({ bucketName: e, prefix: t, onPrefixClick: r }) {
4227
+ let i = ht(t), a = i.length === 0;
4228
4228
  return /* @__PURE__ */ z("div", {
4229
4229
  className: "mb-2 px-2 pt-2",
4230
- children: /* @__PURE__ */ B(i, { children: [/* @__PURE__ */ z(r, {
4231
- onClick: o ? void 0 : () => n(""),
4232
- active: o,
4230
+ children: /* @__PURE__ */ B(l, { children: [/* @__PURE__ */ z(n, {
4231
+ onClick: a ? void 0 : () => r(""),
4232
+ active: a,
4233
4233
  label: /* @__PURE__ */ B("span", {
4234
- className: `flex items-center gap-1 ${o ? gt : ""}`,
4235
- children: [z(o ? D : E, {
4234
+ className: `flex items-center gap-1 ${a ? gt : ""}`,
4235
+ children: [z(a ? D : E, {
4236
4236
  size: 15,
4237
4237
  className: "shrink-0"
4238
4238
  }), e]
4239
4239
  })
4240
- }), a.map((e, t) => {
4241
- let i = t === a.length - 1;
4242
- return /* @__PURE__ */ z(r, {
4243
- onClick: i ? void 0 : () => n(e.prefix),
4244
- active: i,
4240
+ }), i.map((e, t) => {
4241
+ let a = t === i.length - 1;
4242
+ return /* @__PURE__ */ z(n, {
4243
+ onClick: a ? void 0 : () => r(e.prefix),
4244
+ active: a,
4245
4245
  label: /* @__PURE__ */ B("span", {
4246
- className: `flex items-center gap-1 ${i ? gt : ""}`,
4247
- children: [z(i ? P : k, {
4246
+ className: `flex items-center gap-1 ${a ? gt : ""}`,
4247
+ children: [z(a ? P : k, {
4248
4248
  size: 15,
4249
4249
  className: "shrink-0"
4250
4250
  }), e.label]
@@ -4255,65 +4255,65 @@ function _t({ bucketName: e, prefix: t, onPrefixClick: n }) {
4255
4255
  }
4256
4256
  //#endregion
4257
4257
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Objects/CreateFolderModal.tsx
4258
- function vt({ bucketName: t, currentPrefix: n, isOpen: r, onClose: i, onSuccess: a }) {
4259
- let { i18n: o, _: s } = te(), c = ee(), [l, u] = G(""), [d, f] = G(null), p = C.useUtils(), { data: m } = C.storage.ceph.objects.list.useQuery({
4260
- project_id: c ?? "",
4261
- containerName: t,
4262
- prefix: n || void 0,
4258
+ function vt({ bucketName: e, currentPrefix: t, isOpen: n, onClose: r, onSuccess: i }) {
4259
+ let { i18n: a, _: o } = te(), s = ee(), [c, l] = G(""), [u, d] = G(null), m = C.useUtils(), { data: h } = C.storage.ceph.objects.list.useQuery({
4260
+ project_id: s ?? "",
4261
+ containerName: e,
4262
+ prefix: t || void 0,
4263
4263
  delimiter: "/",
4264
4264
  maxKeys: 1e3
4265
- }, { enabled: r && !!c && !!t }), h = C.storage.ceph.objects.createFolder.useMutation({ onSuccess: (e, t) => {
4266
- p.storage.ceph.objects.list.invalidate(), a(t.folderPath.endsWith("/") ? t.folderPath : `${t.folderPath}/`), v();
4267
- } }), v = () => {
4268
- u(""), f(null), h.reset(), i();
4269
- }, y = (e) => {
4270
- u(e);
4271
- let t = Qe(e, m?.folders.map((e) => e.prefix) ?? [], n);
4272
- f(t ? o._(t.message) : null);
4273
- }, x = () => {
4274
- if (!c) return;
4275
- let e = Qe(l, m?.folders.map((e) => e.prefix) ?? [], n);
4276
- if (e) {
4277
- f(o._(e.message));
4265
+ }, { enabled: n && !!s && !!e }), g = C.storage.ceph.objects.createFolder.useMutation({ onSuccess: (e, t) => {
4266
+ m.storage.ceph.objects.list.invalidate(), i(t.folderPath.endsWith("/") ? t.folderPath : `${t.folderPath}/`), _();
4267
+ } }), _ = () => {
4268
+ l(""), d(null), g.reset(), r();
4269
+ }, v = (e) => {
4270
+ l(e);
4271
+ let n = Qe(e, h?.folders.map((e) => e.prefix) ?? [], t);
4272
+ d(n ? a._(n.message) : null);
4273
+ }, y = () => {
4274
+ if (!s) return;
4275
+ let n = Qe(c, h?.folders.map((e) => e.prefix) ?? [], t);
4276
+ if (n) {
4277
+ d(a._(n.message));
4278
4278
  return;
4279
4279
  }
4280
- let r = n + l.trim();
4281
- h.mutate({
4282
- project_id: c,
4283
- containerName: t,
4280
+ let r = t + c.trim();
4281
+ g.mutate({
4282
+ project_id: s,
4283
+ containerName: e,
4284
4284
  folderPath: r
4285
4285
  });
4286
- }, S = !d && l.trim().length > 0;
4287
- return /* @__PURE__ */ B(g, {
4288
- open: r,
4289
- onCancel: v,
4286
+ }, S = !u && c.trim().length > 0;
4287
+ return /* @__PURE__ */ B(f, {
4288
+ open: n,
4289
+ onCancel: _,
4290
4290
  title: /* @__PURE__ */ z(J, { id: "sYJvnu" }),
4291
4291
  size: "large",
4292
- children: [/* @__PURE__ */ B(e, {
4292
+ children: [/* @__PURE__ */ B(b, {
4293
4293
  direction: "vertical",
4294
4294
  gap: "4",
4295
4295
  children: [
4296
4296
  /* @__PURE__ */ z("p", { children: /* @__PURE__ */ z(J, { id: "2G+7C1" }) }),
4297
- n && /* @__PURE__ */ B("div", {
4297
+ t && /* @__PURE__ */ B("div", {
4298
4298
  className: "bg-theme-background-lvl-2 rounded p-3",
4299
4299
  children: [/* @__PURE__ */ z("span", {
4300
4300
  className: "text-juno-grey-light-1 text-sm",
4301
4301
  children: /* @__PURE__ */ z(J, { id: "Z30x/C" })
4302
4302
  }), /* @__PURE__ */ z("div", {
4303
4303
  className: "mt-1 font-mono text-sm",
4304
- children: n
4304
+ children: t
4305
4305
  })]
4306
4306
  }),
4307
- /* @__PURE__ */ z(b, {
4308
- label: o._({ id: "XXRutf" }),
4309
- value: l,
4310
- onChange: (e) => y(e.target.value),
4307
+ /* @__PURE__ */ z(x, {
4308
+ label: a._({ id: "XXRutf" }),
4309
+ value: c,
4310
+ onChange: (e) => v(e.target.value),
4311
4311
  placeholder: "my-folder",
4312
4312
  autoFocus: !0,
4313
- invalid: !!d,
4314
- errortext: d || void 0,
4313
+ invalid: !!u,
4314
+ errortext: u || void 0,
4315
4315
  onKeyDown: (e) => {
4316
- e.key === "Enter" && S && !h.isPending && x();
4316
+ e.key === "Enter" && S && !g.isPending && y();
4317
4317
  }
4318
4318
  }),
4319
4319
  /* @__PURE__ */ B("div", {
@@ -4323,43 +4323,43 @@ function vt({ bucketName: t, currentPrefix: n, isOpen: r, onClose: i, onSuccess:
4323
4323
  children: /* @__PURE__ */ z(J, { id: "oAMLhA" })
4324
4324
  }), /* @__PURE__ */ z("div", {
4325
4325
  className: "mt-1 font-mono text-sm break-all",
4326
- children: n + l.trim() + "/"
4326
+ children: t + c.trim() + "/"
4327
4327
  })]
4328
4328
  }),
4329
- h.error && /* @__PURE__ */ B("p", {
4329
+ g.error && /* @__PURE__ */ B("p", {
4330
4330
  className: "text-juno-red text-sm",
4331
4331
  children: [
4332
4332
  /* @__PURE__ */ z(J, { id: "4BITzH" }),
4333
4333
  " ",
4334
- h.error.message
4334
+ g.error.message
4335
4335
  ]
4336
4336
  })
4337
4337
  ]
4338
4338
  }), /* @__PURE__ */ B("div", {
4339
4339
  className: "mt-6 flex justify-end gap-2",
4340
- children: [/* @__PURE__ */ z(_, {
4340
+ children: [/* @__PURE__ */ z(p, {
4341
4341
  variant: "subdued",
4342
- onClick: v,
4343
- disabled: h.isPending,
4342
+ onClick: _,
4343
+ disabled: g.isPending,
4344
4344
  children: /* @__PURE__ */ z(J, { id: "dEgA5A" })
4345
- }), /* @__PURE__ */ z(_, {
4345
+ }), /* @__PURE__ */ z(p, {
4346
4346
  variant: "primary",
4347
- onClick: x,
4348
- disabled: !S || h.isPending,
4349
- children: h.isPending ? /* @__PURE__ */ z(J, { id: "HM56Bx" }) : /* @__PURE__ */ z(J, { id: "boJ+Y1" })
4347
+ onClick: y,
4348
+ disabled: !S || g.isPending,
4349
+ children: g.isPending ? /* @__PURE__ */ z(J, { id: "HM56Bx" }) : /* @__PURE__ */ z(J, { id: "boJ+Y1" })
4350
4350
  })]
4351
4351
  })]
4352
4352
  });
4353
4353
  }
4354
4354
  //#endregion
4355
4355
  //#region src/client/routes/_auth/projects/$projectId/storage/-components/Ceph/Objects/ObjectToastNotifications.tsx
4356
- function yt({ title: t, description: n }) {
4357
- return /* @__PURE__ */ B(e, {
4356
+ function yt({ title: e, description: t }) {
4357
+ return /* @__PURE__ */ B(b, {
4358
4358
  direction: "vertical",
4359
4359
  gap: "1.5",
4360
- children: [/* @__PURE__ */ z("span", { children: t }), /* @__PURE__ */ z("span", {
4360
+ children: [/* @__PURE__ */ z("span", { children: e }), /* @__PURE__ */ z("span", {
4361
4361
  className: "text-theme-light",
4362
- children: n
4362
+ children: t
4363
4363
  })]
4364
4364
  });
4365
4365
  }
@@ -4531,38 +4531,38 @@ var bt = (e, t) => ({
4531
4531
  return "";
4532
4532
  }
4533
4533
  };
4534
- function jt({ bucketName: t }) {
4535
- let { i18n: n, _: r } = te(), i = ee(), o = K({ from: F.fullPath }), { prefix: s, sortBy: c, sortDirection: l, search: u = "" } = F.useSearch(), f = At(s), [p, m] = G(void 0), [h, g] = G([]), [v, y] = G([]), [b, x] = G(!1), [S, w] = G(!1), [T, E] = G(null), D = () => E(null), { data: O, isLoading: k, error: A } = C.storage.ceph.objects.list.useQuery({
4536
- project_id: i ?? "",
4537
- containerName: t,
4538
- prefix: f || void 0,
4534
+ function jt({ bucketName: e }) {
4535
+ let { i18n: t, _: n } = te(), r = ee(), i = K({ from: F.fullPath }), { prefix: a, sortBy: o, sortDirection: s, search: c = "" } = F.useSearch(), l = At(a), [d, f] = G(void 0), [m, h] = G([]), [g, _] = G([]), [y, x] = G(!1), [S, w] = G(!1), [T, E] = G(null), D = () => E(null), { data: O, isLoading: k, error: A } = C.storage.ceph.objects.list.useQuery({
4536
+ project_id: r ?? "",
4537
+ containerName: e,
4538
+ prefix: l || void 0,
4539
4539
  delimiter: "/",
4540
4540
  maxKeys: 1e3,
4541
- continuationToken: p
4542
- }, { enabled: !!i });
4541
+ continuationToken: d
4542
+ }, { enabled: !!r });
4543
4543
  U(() => {
4544
4544
  if (O) {
4545
4545
  let e = O.objects.filter((e) => {
4546
- let t = f ? e.key.replace(f, "") : e.key;
4546
+ let t = l ? e.key.replace(l, "") : e.key;
4547
4547
  return t !== "" && t !== "/";
4548
4548
  });
4549
- p ? (g((t) => [...t, ...e]), y((e) => [...e, ...O.folders])) : (g(e), y(O.folders)), x(O.isTruncated ?? !1);
4549
+ d ? (h((t) => [...t, ...e]), _((e) => [...e, ...O.folders])) : (h(e), _(O.folders)), x(O.isTruncated ?? !1);
4550
4550
  }
4551
4551
  }, [
4552
4552
  O,
4553
- p,
4554
- f
4553
+ d,
4554
+ l
4555
4555
  ]);
4556
4556
  let j = (e) => {
4557
- m(void 0), g([]), y([]), x(!1), o({ search: (t) => ({
4557
+ f(void 0), h([]), _([]), x(!1), i({ search: (t) => ({
4558
4558
  ...t,
4559
4559
  prefix: e ? kt(e) : void 0
4560
4560
  }) });
4561
4561
  }, M = () => {
4562
- O?.nextContinuationToken && m(O.nextContinuationToken);
4563
- }, N = (e) => f ? e.replace(f, "") : e, P = h.filter((e) => N(e.key).toLowerCase().includes(u.toLowerCase().trim())), L = v.filter((e) => N(e.prefix).toLowerCase().includes(u.toLowerCase().trim())), R = c ? [...P].sort((e, t) => {
4562
+ O?.nextContinuationToken && f(O.nextContinuationToken);
4563
+ }, N = (e) => l ? e.replace(l, "") : e, P = m.filter((e) => N(e.key).toLowerCase().includes(c.toLowerCase().trim())), L = g.filter((e) => N(e.prefix).toLowerCase().includes(c.toLowerCase().trim())), R = o ? [...P].sort((e, t) => {
4564
4564
  let n = 0;
4565
- switch (c) {
4565
+ switch (o) {
4566
4566
  case "name":
4567
4567
  n = N(e.key).localeCompare(N(t.key));
4568
4568
  break;
@@ -4578,28 +4578,28 @@ function jt({ bucketName: t }) {
4578
4578
  n = e.size - t.size;
4579
4579
  break;
4580
4580
  }
4581
- return l === "desc" ? -n : n;
4582
- }) : P, H = c ? [...L].sort((e, t) => c === "name" ? l === "desc" ? N(t.prefix).localeCompare(N(e.prefix)) : N(e.prefix).localeCompare(N(t.prefix)) : 0) : L, W = {
4581
+ return s === "desc" ? -n : n;
4582
+ }) : P, H = o ? [...L].sort((e, t) => o === "name" ? s === "desc" ? N(t.prefix).localeCompare(N(e.prefix)) : N(e.prefix).localeCompare(N(t.prefix)) : 0) : L, W = {
4583
4583
  options: [
4584
4584
  {
4585
- label: n._({ id: "6YtxFj" }),
4585
+ label: t._({ id: "6YtxFj" }),
4586
4586
  value: "name"
4587
4587
  },
4588
4588
  {
4589
- label: n._({ id: "sjMCOP" }),
4589
+ label: t._({ id: "sjMCOP" }),
4590
4590
  value: "lastModified"
4591
4591
  },
4592
4592
  {
4593
- label: n._({ id: "Cj2Gtd" }),
4593
+ label: t._({ id: "Cj2Gtd" }),
4594
4594
  value: "size"
4595
4595
  }
4596
4596
  ],
4597
- sortBy: c ?? void 0,
4598
- sortDirection: l ?? "asc"
4597
+ sortBy: o ?? void 0,
4598
+ sortDirection: s ?? "asc"
4599
4599
  }, q = (e) => {
4600
4600
  let t = typeof e == "string" ? e : "";
4601
4601
  V(() => {
4602
- o({ search: (e) => ({
4602
+ i({ search: (e) => ({
4603
4603
  ...e,
4604
4604
  search: t || void 0
4605
4605
  }) });
@@ -4607,19 +4607,19 @@ function jt({ bucketName: t }) {
4607
4607
  }, Y = (e) => {
4608
4608
  let t = e.sortBy, n = e.sortDirection || "asc";
4609
4609
  V(() => {
4610
- o({ search: (e) => ({
4610
+ i({ search: (e) => ({
4611
4611
  ...e,
4612
4612
  sortBy: t,
4613
4613
  sortDirection: t ? n : void 0
4614
4614
  }) });
4615
4615
  });
4616
4616
  };
4617
- if (k && !p) return /* @__PURE__ */ B(e, {
4617
+ if (k && !d) return /* @__PURE__ */ B(b, {
4618
4618
  direction: "horizontal",
4619
4619
  gap: "2",
4620
4620
  alignment: "center",
4621
4621
  className: "mt-8",
4622
- children: [/* @__PURE__ */ z(a, {}), /* @__PURE__ */ z("span", {
4622
+ children: [/* @__PURE__ */ z(u, {}), /* @__PURE__ */ z("span", {
4623
4623
  className: "text-juno-grey-light-1 text-sm",
4624
4624
  children: /* @__PURE__ */ z(J, { id: "ujK/QN" })
4625
4625
  })]
@@ -4638,19 +4638,19 @@ function jt({ bucketName: t }) {
4638
4638
  className: "relative",
4639
4639
  children: [
4640
4640
  /* @__PURE__ */ z(_t, {
4641
- bucketName: t,
4642
- prefix: f,
4641
+ bucketName: e,
4642
+ prefix: l,
4643
4643
  onPrefixClick: j
4644
4644
  }),
4645
4645
  /* @__PURE__ */ z(I, {
4646
4646
  sortSettings: W,
4647
- searchTerm: u,
4647
+ searchTerm: c,
4648
4648
  onSort: Y,
4649
4649
  onSearch: q,
4650
- actions: /* @__PURE__ */ z(e, {
4650
+ actions: /* @__PURE__ */ z(b, {
4651
4651
  direction: "horizontal",
4652
4652
  gap: "2",
4653
- children: /* @__PURE__ */ z(_, {
4653
+ children: /* @__PURE__ */ z(p, {
4654
4654
  variant: "primary",
4655
4655
  onClick: () => w(!0),
4656
4656
  children: /* @__PURE__ */ z(J, { id: "boJ+Y1" })
@@ -4658,10 +4658,10 @@ function jt({ bucketName: t }) {
4658
4658
  })
4659
4659
  }),
4660
4660
  /* @__PURE__ */ z(mt, {
4661
- bucketName: t,
4661
+ bucketName: e,
4662
4662
  objects: R,
4663
4663
  folders: H,
4664
- currentPrefix: f,
4664
+ currentPrefix: l,
4665
4665
  onFolderClick: j,
4666
4666
  onDeleteObjectSuccess: (e) => {
4667
4667
  E(xt(e, { onDismiss: D }));
@@ -4688,9 +4688,9 @@ function jt({ bucketName: t }) {
4688
4688
  E(Ot(e, t, { onDismiss: D }));
4689
4689
  }
4690
4690
  }),
4691
- b && /* @__PURE__ */ z("div", {
4691
+ y && /* @__PURE__ */ z("div", {
4692
4692
  className: "mt-4 flex justify-center",
4693
- children: /* @__PURE__ */ z(_, {
4693
+ children: /* @__PURE__ */ z(p, {
4694
4694
  onClick: M,
4695
4695
  disabled: k,
4696
4696
  variant: "subdued",
@@ -4698,15 +4698,15 @@ function jt({ bucketName: t }) {
4698
4698
  })
4699
4699
  }),
4700
4700
  /* @__PURE__ */ z(vt, {
4701
- bucketName: t,
4702
- currentPrefix: f,
4701
+ bucketName: e,
4702
+ currentPrefix: l,
4703
4703
  isOpen: S,
4704
4704
  onClose: () => w(!1),
4705
4705
  onSuccess: (e) => {
4706
4706
  w(!1), E(bt(e, { onDismiss: D })), j(e);
4707
4707
  }
4708
4708
  }),
4709
- T && /* @__PURE__ */ z(d, { ...T })
4709
+ T && /* @__PURE__ */ z(v, { ...T })
4710
4710
  ]
4711
4711
  });
4712
4712
  }
@@ -4757,4 +4757,4 @@ var Nt = () => /* @__PURE__ */ z(Mt, {});
4757
4757
  //#endregion
4758
4758
  export { Nt as component };
4759
4759
 
4760
- //# sourceMappingURL=objects-Cw4Vu01M.mjs.map
4760
+ //# sourceMappingURL=objects-DOYFFn3Y.mjs.map