@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,11 +1,11 @@
1
- import { $ as e, A as t, C as n, F as r, K as i, L as a, N as o, O as s, T as c, U as l, V as u, W as d, X as f, Y as p, _ as m, f as h, h as g, i as _, it as v, l as y, nt as b, r as x, rt as ee, u as S, w as C, z as w } from "./build-Cf7iWbpH.mjs";
1
+ import { $ as e, A as t, C as n, F as r, H as i, J as a, K as o, L as s, T as c, W as l, Z as u, at as d, c as f, d as p, h as m, it as h, j as g, l as _, n as v, q as ee, r as y, rt as b, tt as x, w as S, y as C, z as w } from "./build-CZRvXrAL.mjs";
2
2
  import { n as T, r as E } from "./trpcClient-BxguzNYF.mjs";
3
3
  import { t as D } from "./cn-C3laVXMm.mjs";
4
- import { t as O } from "./images-BZP3pBqj.mjs";
4
+ import { t as O } from "./images-I9gQfRa7.mjs";
5
5
  import { t as k } from "./useModal-DxxlilRm.mjs";
6
- import { t as A } from "./ContentHeader-DtBiIwRY.mjs";
7
- import { t as te } from "./ListToolbar-DuazvsAu.mjs";
8
- import { A as j, C as ne, D as M, E as N, F as P, I as F, M as I, N as L, O as R, P as z, S as B, T as re, _ as ie, a as V, b as ae, c as oe, d as H, f as se, g as ce, h as le, i as ue, j as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as U, v as xe, w as Se, x as Ce, y as we } from "./ImageToastNotifications-Cw30RXsw.mjs";
6
+ import { t as A } from "./ContentHeader-B_PWrxbw.mjs";
7
+ import { t as te } from "./ListToolbar-C5lzTrit.mjs";
8
+ import { A as j, C as ne, D as M, E as N, F as P, I as F, M as I, N as L, O as R, P as z, S as B, T as re, _ as ie, a as V, b as ae, c as oe, d as H, f as se, g as ce, h as le, i as ue, j as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as U, v as xe, w as Se, x as Ce, y as we } from "./ImageToastNotifications--U13YiQ_.mjs";
9
9
  import { t as Te } from "./useProjectId-CgOTejka.mjs";
10
10
  import "./hooks-D0krAKvo.mjs";
11
11
  import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
@@ -16,8 +16,8 @@ import { Trans as J, useLingui as Y } from "@lingui/react";
16
16
  import { i18n as Ie } from "@lingui/core";
17
17
  import "@trpc/server";
18
18
  //#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/ImageTableRow.tsx
19
- function Le({ image: e, isSelected: r, isPending: a, isAccepted: s, permissions: l, onEditDetails: u, onEditMetadata: f, onDelete: m, onSelect: h, onActivationStatusChange: g, onManageAccess: _, onUpdateVisibility: y, setToastData: b, uploadId: x, uploadProgressPercent: ee, onMemberStatusChanged: S }) {
20
- let { i18n: C, _: w } = Y(), { id: T, name: D, status: O, visibility: A, size: te, disk_format: j, created_at: ne, owner: M } = e, N = D || C._({ id: "MEIAzV" }), { projectId: I } = Ne({ from: "/_auth/projects/$projectId/compute/images/" }), R = Me(), B = E.useUtils(), re = E.compute.updateImageMember.useMutation({ onSuccess: () => {
19
+ function Le({ image: t, isSelected: i, isPending: o, isAccepted: s, permissions: l, onEditDetails: f, onEditMetadata: p, onDelete: m, onSelect: h, onActivationStatusChange: _, onManageAccess: v, onUpdateVisibility: ee, setToastData: y, uploadId: b, uploadProgressPercent: x, onMemberStatusChanged: S }) {
20
+ let { i18n: C, _: w } = Y(), { id: T, name: D, status: O, visibility: A, size: te, disk_format: j, created_at: ne, owner: M } = t, N = D || C._({ id: "MEIAzV" }), { projectId: I } = Ne({ from: "/_auth/projects/$projectId/compute/images/" }), R = Me(), B = E.useUtils(), re = E.compute.updateImageMember.useMutation({ onSuccess: () => {
21
21
  B.compute.listImagesWithPagination.invalidate(), B.compute.listSharedImagesByMemberStatus.invalidate();
22
22
  } }), ie = async (e) => {
23
23
  try {
@@ -26,13 +26,13 @@ function Le({ image: e, isSelected: r, isPending: a, isAccepted: s, permissions:
26
26
  imageId: T,
27
27
  memberId: I,
28
28
  status: e
29
- }), b(H(e, { onDismiss: () => b(null) })), S?.();
29
+ }), y(H(e, { onDismiss: () => y(null) })), S?.();
30
30
  } catch (e) {
31
31
  let t = e?.message;
32
- b(U(t, { onDismiss: () => b(null) }));
32
+ y(U(t, { onDismiss: () => y(null) }));
33
33
  }
34
- }, V = I === M, ae = a || s, oe = re.isPending, [se, ce] = k(), [le, ue] = k();
35
- return /* @__PURE__ */ K(o, {
34
+ }, V = I === M, ae = o || s, oe = re.isPending, [se, ce] = k(), [le, ue] = k();
35
+ return /* @__PURE__ */ K(r, {
36
36
  "data-testid": `image-row-${T}`,
37
37
  onClick: () => R({
38
38
  to: "/projects/$projectId/compute/images/$imageId",
@@ -42,28 +42,28 @@ function Le({ image: e, isSelected: r, isPending: a, isAccepted: s, permissions:
42
42
  }
43
43
  }),
44
44
  children: [
45
- /* @__PURE__ */ G(t, {
45
+ /* @__PURE__ */ G(g, {
46
46
  onClick: (e) => e.stopPropagation(),
47
47
  children: /* @__PURE__ */ G(n, {
48
- checked: r,
49
- onChange: () => h(e)
48
+ checked: i,
49
+ onChange: () => h(t)
50
50
  })
51
51
  }),
52
- /* @__PURE__ */ G(t, { children: O }),
53
- /* @__PURE__ */ G(t, { children: N }),
54
- /* @__PURE__ */ G(t, { children: A }),
55
- /* @__PURE__ */ G(t, { children: e.protected ? C._({ id: "l75CjT" }) : C._({ id: "1UzENP" }) }),
56
- /* @__PURE__ */ G(t, { children: x && x === T ? `${ee}%` : /* @__PURE__ */ G(F, { size: te }) }),
57
- /* @__PURE__ */ G(t, { children: j || C._({ id: "fj5byd" }) }),
58
- /* @__PURE__ */ G(t, { children: ne ? new Date(ne).toLocaleDateString() : C._({ id: "fj5byd" }) }),
59
- /* @__PURE__ */ K(t, {
52
+ /* @__PURE__ */ G(g, { children: O }),
53
+ /* @__PURE__ */ G(g, { children: N }),
54
+ /* @__PURE__ */ G(g, { children: A }),
55
+ /* @__PURE__ */ G(g, { children: t.protected ? C._({ id: "l75CjT" }) : C._({ id: "1UzENP" }) }),
56
+ /* @__PURE__ */ G(g, { children: b && b === T ? `${x}%` : /* @__PURE__ */ G(F, { size: te }) }),
57
+ /* @__PURE__ */ G(g, { children: j || C._({ id: "fj5byd" }) }),
58
+ /* @__PURE__ */ G(g, { children: ne ? new Date(ne).toLocaleDateString() : C._({ id: "fj5byd" }) }),
59
+ /* @__PURE__ */ K(g, {
60
60
  onClick: (e) => e.stopPropagation(),
61
61
  children: [
62
- oe ? /* @__PURE__ */ G(i, {
62
+ oe ? /* @__PURE__ */ G(u, {
63
63
  variant: "primary",
64
64
  size: "small"
65
- }) : /* @__PURE__ */ G(p, { children: /* @__PURE__ */ K(c, { children: [
66
- /* @__PURE__ */ G(d, {
65
+ }) : /* @__PURE__ */ G(e, { children: /* @__PURE__ */ K(c, { children: [
66
+ /* @__PURE__ */ G(a, {
67
67
  label: C._({ id: "v0hPHE" }),
68
68
  onClick: () => R({
69
69
  to: "/projects/$projectId/compute/images/$imageId",
@@ -73,41 +73,41 @@ function Le({ image: e, isSelected: r, isPending: a, isAccepted: s, permissions:
73
73
  }
74
74
  })
75
75
  }),
76
- ae && l.canUpdateMember && /* @__PURE__ */ K(W, { children: [a && /* @__PURE__ */ G(d, {
76
+ ae && l.canUpdateMember && /* @__PURE__ */ K(W, { children: [o && /* @__PURE__ */ G(a, {
77
77
  label: C._({ id: "g3UF2V" }),
78
78
  onClick: ce
79
- }), /* @__PURE__ */ G(d, {
79
+ }), /* @__PURE__ */ G(a, {
80
80
  label: C._({ id: "1t/NnN" }),
81
81
  onClick: ue
82
82
  })] }),
83
83
  !ae && l.canUpdate && /* @__PURE__ */ K(W, { children: [
84
- /* @__PURE__ */ G(d, {
84
+ /* @__PURE__ */ G(a, {
85
85
  label: C._({ id: "Y1YKad" }),
86
- onClick: () => u(e)
86
+ onClick: () => f(t)
87
87
  }),
88
- /* @__PURE__ */ G(d, {
88
+ /* @__PURE__ */ G(a, {
89
89
  label: C._({ id: "SIfYq6" }),
90
- onClick: () => f(e)
90
+ onClick: () => p(t)
91
91
  }),
92
- /* @__PURE__ */ G(d, {
93
- label: e.status === L.DEACTIVATED ? C._({ id: "FQBaXG" }) : C._({ id: "5y3O+A" }),
94
- onClick: () => g(e)
92
+ /* @__PURE__ */ G(a, {
93
+ label: t.status === L.DEACTIVATED ? C._({ id: "FQBaXG" }) : C._({ id: "5y3O+A" }),
94
+ onClick: () => _(t)
95
95
  }),
96
- e.visibility === z.SHARED && V && (l.canCreateMember || l.canDeleteMember) && /* @__PURE__ */ G(d, {
96
+ t.visibility === z.SHARED && V && (l.canCreateMember || l.canDeleteMember) && /* @__PURE__ */ G(a, {
97
97
  label: C._({ id: "cWbW6w" }),
98
- onClick: () => _(e)
98
+ onClick: () => v(t)
99
99
  }),
100
- e.visibility === z.PRIVATE && /* @__PURE__ */ G(d, {
100
+ t.visibility === z.PRIVATE && /* @__PURE__ */ G(a, {
101
101
  label: C._({ id: "gMYsdZ" }),
102
- onClick: () => y(e.id, z.SHARED, N)
102
+ onClick: () => ee(t.id, z.SHARED, N)
103
103
  })
104
104
  ] }),
105
- !ae && l.canDelete && !e.protected && /* @__PURE__ */ G(d, {
105
+ !ae && l.canDelete && !t.protected && /* @__PURE__ */ G(a, {
106
106
  label: C._({ id: "cnGeoo" }),
107
- onClick: () => m(e)
107
+ onClick: () => m(t)
108
108
  })
109
109
  ] }) }),
110
- se && /* @__PURE__ */ G(v, {
110
+ se && /* @__PURE__ */ G(d, {
111
111
  title: C._({ id: "psPHye" }),
112
112
  open: se,
113
113
  onCancel: ce,
@@ -123,7 +123,7 @@ function Le({ image: e, isSelected: r, isPending: a, isAccepted: s, permissions:
123
123
  C._({ id: "D/8vkD" })
124
124
  ] })
125
125
  }),
126
- le && /* @__PURE__ */ G(v, {
126
+ le && /* @__PURE__ */ G(d, {
127
127
  title: C._({ id: "UVSFVV" }),
128
128
  open: le,
129
129
  onCancel: ue,
@@ -199,8 +199,8 @@ var Ve = {
199
199
  protected: !1,
200
200
  min_disk: 0,
201
201
  min_ram: 0
202
- }, He = ({ isOpen: t, onClose: r, onCreate: a, isLoading: o = !1, isUploadPending: s = !1, uploadProgressPercent: c }) => {
203
- let { i18n: u, _: d } = Y(), [f, p] = q({ ...Ve }), [g, S] = q(""), [w, T] = q(null), [E, O] = q({}), [k, A] = q(!1), [te, j] = q(null), ne = f.name.trim() !== "" && w !== null && f.disk_format !== void 0 && f.disk_format.trim() !== "" && f.container_format !== void 0 && f.container_format.trim() !== "" && f.min_disk >= 0 && f.min_ram >= 0, M = je(() => f.disk_format ? X(f.disk_format) : [], [f.disk_format]), N = [
202
+ }, He = ({ isOpen: e, onClose: t, onCreate: r, isLoading: i = !1, isUploadPending: a = !1, uploadProgressPercent: s }) => {
203
+ let { i18n: c, _: l } = Y(), [m, g] = q({ ...Ve }), [_, ee] = q(""), [w, T] = q(null), [E, O] = q({}), [k, A] = q(!1), [te, j] = q(null), ne = m.name.trim() !== "" && w !== null && m.disk_format !== void 0 && m.disk_format.trim() !== "" && m.container_format !== void 0 && m.container_format.trim() !== "" && m.min_disk >= 0 && m.min_ram >= 0, M = je(() => m.disk_format ? X(m.disk_format) : [], [m.disk_format]), N = [
204
204
  ".qcow2",
205
205
  ".raw",
206
206
  ".vmdk",
@@ -215,7 +215,7 @@ var Ve = {
215
215
  ".img"
216
216
  ], P = N.join(", "), F = (e) => {
217
217
  let { name: t, value: n, type: r, checked: i } = e.target;
218
- p((e) => ({
218
+ g((e) => ({
219
219
  ...e,
220
220
  [t]: r === "checkbox" ? i : n
221
221
  })), E[t] && O((e) => {
@@ -226,17 +226,17 @@ var Ve = {
226
226
  let { name: t, value: n } = e.target;
227
227
  t === "name" && (!n || n.trim() === "") && O((e) => ({
228
228
  ...e,
229
- name: u._({ id: "wyIOMP" })
229
+ name: c._({ id: "wyIOMP" })
230
230
  }));
231
231
  }, R = (e, t) => {
232
232
  if (e === "disk_format") {
233
233
  let e = t, n = Z(e);
234
- p((t) => ({
234
+ g((t) => ({
235
235
  ...t,
236
236
  disk_format: e,
237
237
  container_format: n
238
238
  }));
239
- } else p((n) => ({
239
+ } else g((n) => ({
240
240
  ...n,
241
241
  [e]: t
242
242
  }));
@@ -246,7 +246,7 @@ var Ve = {
246
246
  });
247
247
  }, B = (e, t) => {
248
248
  let n = t === "" ? 0 : parseInt(t, 10);
249
- isNaN(n) || (p((t) => ({
249
+ isNaN(n) || (g((t) => ({
250
250
  ...t,
251
251
  [e]: n
252
252
  })), E[e] && O((t) => {
@@ -256,10 +256,10 @@ var Ve = {
256
256
  }, re = (e, t) => {
257
257
  t < 0 && (e === "min_disk" ? O((e) => ({
258
258
  ...e,
259
- min_disk: u._({ id: "K3bUTE" })
259
+ min_disk: c._({ id: "K3bUTE" })
260
260
  })) : e === "min_ram" && O((e) => ({
261
261
  ...e,
262
- min_ram: u._({ id: "PEGvy+" })
262
+ min_ram: c._({ id: "PEGvy+" })
263
263
  })));
264
264
  }, ie = (e) => {
265
265
  let t = e.name.toLowerCase();
@@ -268,7 +268,7 @@ var Ve = {
268
268
  return delete t.file, t;
269
269
  })) : O((e) => ({
270
270
  ...e,
271
- file: u._({
271
+ file: c._({
272
272
  id: "qzIZOL",
273
273
  values: { supportedFileFormats: P }
274
274
  })
@@ -285,90 +285,90 @@ var Ve = {
285
285
  let t = e.dataTransfer.files;
286
286
  t && t.length > 0 && ie(t[0]);
287
287
  }, se = (e) => {
288
- S(e.target.value);
288
+ ee(e.target.value);
289
289
  }, ce = () => {
290
- let e = g.trim();
290
+ let e = _.trim();
291
291
  if (e !== "") {
292
- if (f.tags.includes(e)) {
293
- S("");
292
+ if (m.tags.includes(e)) {
293
+ ee("");
294
294
  return;
295
295
  }
296
- p((t) => ({
296
+ g((t) => ({
297
297
  ...t,
298
298
  tags: [...t.tags, e]
299
- })), S("");
299
+ })), ee("");
300
300
  }
301
301
  }, le = (e) => {
302
302
  e.key === "Enter" && (e.preventDefault(), ce());
303
303
  }, ue = (e) => {
304
- p((t) => ({
304
+ g((t) => ({
305
305
  ...t,
306
306
  tags: t.tags.filter((t) => t !== e)
307
307
  }));
308
308
  }, de = () => {
309
309
  let e = {};
310
- return (!f.name || f.name.trim() === "") && (e.name = u._({ id: "wyIOMP" })), w || (e.file = u._({ id: "aTqCTq" })), (!f.disk_format || f.disk_format.trim() === "") && (e.disk_format = u._({ id: "LK0pQN" })), (!f.container_format || f.container_format.trim() === "") && (e.container_format = u._({ id: "J4DKSM" })), f.disk_format && f.container_format && (Be(f.disk_format, f.container_format) || (e.container_format = u._({ id: "BgMp/T" }))), f.min_disk < 0 && (e.min_disk = u._({ id: "K3bUTE" })), f.min_ram < 0 && (e.min_ram = u._({ id: "PEGvy+" })), O(e), Object.keys(e).length === 0;
310
+ return (!m.name || m.name.trim() === "") && (e.name = c._({ id: "wyIOMP" })), w || (e.file = c._({ id: "aTqCTq" })), (!m.disk_format || m.disk_format.trim() === "") && (e.disk_format = c._({ id: "LK0pQN" })), (!m.container_format || m.container_format.trim() === "") && (e.container_format = c._({ id: "J4DKSM" })), m.disk_format && m.container_format && (Be(m.disk_format, m.container_format) || (e.container_format = c._({ id: "BgMp/T" }))), m.min_disk < 0 && (e.min_disk = c._({ id: "K3bUTE" })), m.min_ram < 0 && (e.min_ram = c._({ id: "PEGvy+" })), O(e), Object.keys(e).length === 0;
311
311
  }, fe = async (e) => {
312
312
  if (e.preventDefault(), j(null), !de()) {
313
- j(u._({ id: "CBFSfX" }));
313
+ j(c._({ id: "CBFSfX" }));
314
314
  return;
315
315
  }
316
316
  try {
317
- await a({
318
- name: f.name.trim(),
319
- tags: f.tags,
320
- visibility: f.visibility,
321
- disk_format: f.disk_format,
322
- container_format: f.container_format,
323
- protected: f.protected,
324
- min_disk: f.min_disk,
325
- min_ram: f.min_ram
317
+ await r({
318
+ name: m.name.trim(),
319
+ tags: m.tags,
320
+ visibility: m.visibility,
321
+ disk_format: m.disk_format,
322
+ container_format: m.container_format,
323
+ protected: m.protected,
324
+ min_disk: m.min_disk,
325
+ min_ram: m.min_ram
326
326
  }, w), pe();
327
327
  } catch (e) {
328
- j(e instanceof Error ? e.message : u._({ id: "TQn3hH" }));
328
+ j(e instanceof Error ? e.message : c._({ id: "TQn3hH" }));
329
329
  }
330
330
  }, pe = () => {
331
- p({ ...Ve }), S(""), T(null), O({}), j(null), r();
331
+ g({ ...Ve }), ee(""), T(null), O({}), j(null), t();
332
332
  };
333
- return /* @__PURE__ */ K(v, {
334
- open: t,
335
- onCancel: o ? void 0 : pe,
333
+ return /* @__PURE__ */ K(d, {
334
+ open: e,
335
+ onCancel: i ? void 0 : pe,
336
336
  size: "large",
337
- title: u._({ id: "xw2UtT" }),
337
+ title: c._({ id: "xw2UtT" }),
338
338
  onConfirm: fe,
339
- confirmButtonLabel: u._({ id: "a/nTb8" }),
340
- cancelButtonLabel: u._({ id: "dEgA5A" }),
341
- disableConfirmButton: o || !ne,
342
- closeable: !o,
343
- closeOnEsc: !o,
339
+ confirmButtonLabel: c._({ id: "a/nTb8" }),
340
+ cancelButtonLabel: c._({ id: "dEgA5A" }),
341
+ disableConfirmButton: i || !ne,
342
+ closeable: !i,
343
+ closeOnEsc: !i,
344
344
  children: [
345
- o && !c && /* @__PURE__ */ K(e, {
345
+ i && !s && /* @__PURE__ */ K(x, {
346
346
  distribution: "center",
347
347
  alignment: "center",
348
348
  className: "mt-4",
349
349
  children: [
350
- /* @__PURE__ */ G(i, { variant: "primary" }),
351
- !s && /* @__PURE__ */ G(J, { id: "98Fs4G" }),
352
- s && /* @__PURE__ */ G(J, { id: "3q1GLx" })
350
+ /* @__PURE__ */ G(u, { variant: "primary" }),
351
+ !a && /* @__PURE__ */ G(J, { id: "98Fs4G" }),
352
+ a && /* @__PURE__ */ G(J, { id: "3q1GLx" })
353
353
  ]
354
354
  }),
355
- o && !!c && /* @__PURE__ */ G("div", {
355
+ i && !!s && /* @__PURE__ */ G("div", {
356
356
  className: "bg-neutral-quaternary mt-4 w-full rounded-full",
357
357
  children: /* @__PURE__ */ K("div", {
358
358
  className: "bg-theme-info flex h-4 items-center justify-center rounded-full p-0.5 text-center text-xs leading-none font-medium text-white",
359
- style: { width: `${c}%` },
360
- children: [c, "%"]
359
+ style: { width: `${s}%` },
360
+ children: [s, "%"]
361
361
  })
362
362
  }),
363
- !o && /* @__PURE__ */ K(ee, {
363
+ !i && /* @__PURE__ */ K(h, {
364
364
  className: "mb-6",
365
365
  children: [
366
- te && /* @__PURE__ */ G(l, {
366
+ te && /* @__PURE__ */ G(o, {
367
367
  variant: "error",
368
368
  className: "mb-6",
369
369
  children: te
370
370
  }),
371
- /* @__PURE__ */ G(x, {
371
+ /* @__PURE__ */ G(v, {
372
372
  className: "mb-6",
373
373
  children: /* @__PURE__ */ G(b, { children: /* @__PURE__ */ K("div", {
374
374
  className: "w-full",
@@ -376,7 +376,7 @@ var Ve = {
376
376
  /* @__PURE__ */ K("label", {
377
377
  htmlFor: "image-file",
378
378
  className: "mb-2 block text-sm font-medium text-gray-900",
379
- children: [u._({ id: "UKwOYH" }), /* @__PURE__ */ G("span", {
379
+ children: [c._({ id: "UKwOYH" }), /* @__PURE__ */ G("span", {
380
380
  className: "ml-1 text-red-500",
381
381
  children: "*"
382
382
  })]
@@ -408,18 +408,18 @@ var Ve = {
408
408
  }),
409
409
  /* @__PURE__ */ G("p", {
410
410
  className: D("text-xs transition-colors", k ? "font-semibold text-blue-600" : "text-gray-500"),
411
- children: k ? /* @__PURE__ */ G("span", { children: u._({ id: "vXmL4D" }) }) : /* @__PURE__ */ K(W, { children: [
411
+ children: k ? /* @__PURE__ */ G("span", { children: c._({ id: "vXmL4D" }) }) : /* @__PURE__ */ K(W, { children: [
412
412
  /* @__PURE__ */ G("span", {
413
413
  className: "font-semibold",
414
- children: u._({ id: "gYe+hC" })
414
+ children: c._({ id: "gYe+hC" })
415
415
  }),
416
416
  " ",
417
- u._({ id: "Np28ib" })
417
+ c._({ id: "Np28ib" })
418
418
  ] })
419
419
  }),
420
420
  /* @__PURE__ */ G("p", {
421
421
  className: "text-xs text-gray-400",
422
- children: u._({ id: "jBIkmi" })
422
+ children: c._({ id: "jBIkmi" })
423
423
  })
424
424
  ]
425
425
  }), /* @__PURE__ */ G("input", {
@@ -428,7 +428,7 @@ var Ve = {
428
428
  className: "hidden",
429
429
  onChange: V,
430
430
  accept: P,
431
- disabled: o
431
+ disabled: i
432
432
  })]
433
433
  })
434
434
  }),
@@ -458,8 +458,8 @@ var Ve = {
458
458
  });
459
459
  },
460
460
  className: "font-medium text-red-600 hover:text-red-800",
461
- disabled: o,
462
- children: u._({ id: "t/YqKh" })
461
+ disabled: i,
462
+ children: c._({ id: "t/YqKh" })
463
463
  })]
464
464
  }),
465
465
  E.file && /* @__PURE__ */ G("p", {
@@ -469,57 +469,57 @@ var Ve = {
469
469
  ]
470
470
  }) })
471
471
  }),
472
- /* @__PURE__ */ K(x, {
472
+ /* @__PURE__ */ K(v, {
473
473
  className: "mb-6",
474
474
  children: [
475
475
  /* @__PURE__ */ G(b, {
476
476
  className: "mb-6",
477
- children: /* @__PURE__ */ G(C, {
477
+ children: /* @__PURE__ */ G(S, {
478
478
  id: "name",
479
479
  name: "name",
480
- label: u._({ id: "ExLULX" }),
481
- value: f.name,
480
+ label: c._({ id: "ExLULX" }),
481
+ value: m.name,
482
482
  onChange: F,
483
483
  onBlur: L,
484
484
  required: !0,
485
485
  errortext: E.name,
486
- placeholder: u._({ id: "PsEGri" }),
487
- disabled: o
486
+ placeholder: c._({ id: "PsEGri" }),
487
+ disabled: i
488
488
  })
489
489
  }),
490
490
  /* @__PURE__ */ G(b, {
491
491
  className: "mb-6",
492
492
  children: /* @__PURE__ */ K("div", {
493
493
  className: "w-full",
494
- children: [/* @__PURE__ */ K(e, {
494
+ children: [/* @__PURE__ */ K(x, {
495
495
  gap: "1",
496
496
  direction: "horizontal",
497
497
  alignment: "start",
498
498
  children: [/* @__PURE__ */ G("div", {
499
499
  className: "flex-1",
500
- children: /* @__PURE__ */ G(C, {
500
+ children: /* @__PURE__ */ G(S, {
501
501
  id: "tags",
502
502
  name: "tags",
503
- label: u._({ id: "OYHzN1" }),
504
- value: g,
503
+ label: c._({ id: "OYHzN1" }),
504
+ value: _,
505
505
  onChange: se,
506
506
  onKeyDown: le,
507
- helptext: u._({ id: "AN0DBJ" }),
508
- placeholder: u._({ id: "tmpGvt" }),
509
- disabled: o
507
+ helptext: c._({ id: "AN0DBJ" }),
508
+ placeholder: c._({ id: "tmpGvt" }),
509
+ disabled: i
510
510
  })
511
- }), /* @__PURE__ */ G(y, {
511
+ }), /* @__PURE__ */ G(f, {
512
512
  variant: "primary",
513
513
  onClick: ce,
514
- disabled: o || g.trim() === "",
514
+ disabled: i || _.trim() === "",
515
515
  children: /* @__PURE__ */ G(J, { id: "m16xKo" })
516
516
  })]
517
- }), f.tags.length > 0 && /* @__PURE__ */ G(e, {
517
+ }), m.tags.length > 0 && /* @__PURE__ */ G(x, {
518
518
  gap: "1",
519
519
  wrap: !0,
520
520
  alignment: "center",
521
521
  className: "mt-1",
522
- children: f.tags.map((e) => /* @__PURE__ */ G(m, {
522
+ children: m.tags.map((e) => /* @__PURE__ */ G(C, {
523
523
  closeable: !0,
524
524
  pillKey: "",
525
525
  pillValue: e,
@@ -530,95 +530,95 @@ var Ve = {
530
530
  }),
531
531
  /* @__PURE__ */ G(b, {
532
532
  className: "mb-6",
533
- children: /* @__PURE__ */ K(_, {
533
+ children: /* @__PURE__ */ K(y, {
534
534
  id: "visibility",
535
535
  name: "visibility",
536
- label: u._({ id: "2q/Q7x" }),
537
- value: f.visibility,
536
+ label: c._({ id: "2q/Q7x" }),
537
+ value: m.visibility,
538
538
  onChange: (e) => R("visibility", e),
539
- disabled: o,
540
- loading: o,
539
+ disabled: i,
540
+ loading: i,
541
541
  children: [
542
- /* @__PURE__ */ G(h, {
542
+ /* @__PURE__ */ G(p, {
543
543
  value: z.PUBLIC,
544
- label: u._({ id: "7d1a0d" })
544
+ label: c._({ id: "7d1a0d" })
545
545
  }),
546
- /* @__PURE__ */ G(h, {
546
+ /* @__PURE__ */ G(p, {
547
547
  value: z.PRIVATE,
548
- label: u._({ id: "zwBp5t" })
548
+ label: c._({ id: "zwBp5t" })
549
549
  }),
550
- /* @__PURE__ */ G(h, {
550
+ /* @__PURE__ */ G(p, {
551
551
  value: z.SHARED,
552
- label: u._({ id: "0Gd0NU" })
552
+ label: c._({ id: "0Gd0NU" })
553
553
  }),
554
- /* @__PURE__ */ G(h, {
554
+ /* @__PURE__ */ G(p, {
555
555
  value: z.COMMUNITY,
556
- label: u._({ id: "chL5IG" })
556
+ label: c._({ id: "chL5IG" })
557
557
  })
558
558
  ]
559
559
  })
560
560
  }),
561
561
  /* @__PURE__ */ G(b, {
562
562
  className: "mb-6",
563
- children: /* @__PURE__ */ K(e, {
563
+ children: /* @__PURE__ */ K(x, {
564
564
  direction: "horizontal",
565
565
  gap: "3",
566
566
  distribution: "evenly",
567
567
  className: "w-full",
568
568
  children: [/* @__PURE__ */ G("div", {
569
569
  className: "flex-1",
570
- children: /* @__PURE__ */ K(_, {
570
+ children: /* @__PURE__ */ K(y, {
571
571
  id: "disk_format",
572
572
  name: "disk_format",
573
- label: u._({ id: "NopYGU" }),
574
- value: f.disk_format,
573
+ label: c._({ id: "NopYGU" }),
574
+ value: m.disk_format,
575
575
  onChange: (e) => R("disk_format", e),
576
- disabled: o,
577
- loading: o,
576
+ disabled: i,
577
+ loading: i,
578
578
  required: !0,
579
579
  errortext: E.disk_format,
580
580
  children: [
581
- /* @__PURE__ */ G(h, {
581
+ /* @__PURE__ */ G(p, {
582
582
  value: I.QCOW2,
583
583
  label: "QCOW2 - QEMU Emulator"
584
584
  }),
585
- /* @__PURE__ */ G(h, {
585
+ /* @__PURE__ */ G(p, {
586
586
  value: I.RAW,
587
587
  label: "Raw"
588
588
  }),
589
- /* @__PURE__ */ G(h, {
589
+ /* @__PURE__ */ G(p, {
590
590
  value: I.VMDK,
591
591
  label: "VMDK - Virtual Machine Disk"
592
592
  }),
593
- /* @__PURE__ */ G(h, {
593
+ /* @__PURE__ */ G(p, {
594
594
  value: I.VHD,
595
595
  label: "VHD - Virtual Hard Disk"
596
596
  }),
597
- /* @__PURE__ */ G(h, {
597
+ /* @__PURE__ */ G(p, {
598
598
  value: I.VHDX,
599
599
  label: "VHDX - Virtual Hard Disk Extended"
600
600
  }),
601
- /* @__PURE__ */ G(h, {
601
+ /* @__PURE__ */ G(p, {
602
602
  value: I.VDI,
603
603
  label: "VDI - Virtual Disk Image"
604
604
  }),
605
- /* @__PURE__ */ G(h, {
605
+ /* @__PURE__ */ G(p, {
606
606
  value: I.AMI,
607
607
  label: "AMI - Amazon Machine Image"
608
608
  }),
609
- /* @__PURE__ */ G(h, {
609
+ /* @__PURE__ */ G(p, {
610
610
  value: I.ARI,
611
611
  label: "ARI - Amazon Ramdisk Image"
612
612
  }),
613
- /* @__PURE__ */ G(h, {
613
+ /* @__PURE__ */ G(p, {
614
614
  value: I.AKI,
615
615
  label: "AKI - Amazon Kernel Image"
616
616
  }),
617
- /* @__PURE__ */ G(h, {
617
+ /* @__PURE__ */ G(p, {
618
618
  value: I.ISO,
619
619
  label: "ISO - Optical Disk Image"
620
620
  }),
621
- /* @__PURE__ */ G(h, {
621
+ /* @__PURE__ */ G(p, {
622
622
  value: I.PLOOP,
623
623
  label: "PLOOP - Virtuozzo/Parallels Loopback Disk"
624
624
  })
@@ -626,17 +626,17 @@ var Ve = {
626
626
  })
627
627
  }), /* @__PURE__ */ G("div", {
628
628
  className: "flex-1",
629
- children: /* @__PURE__ */ G(_, {
629
+ children: /* @__PURE__ */ G(y, {
630
630
  id: "container_format",
631
631
  name: "container_format",
632
- label: u._({ id: "6/xipy" }),
633
- value: f.container_format,
632
+ label: c._({ id: "6/xipy" }),
633
+ value: m.container_format,
634
634
  onChange: (e) => R("container_format", e),
635
- disabled: o || !f.disk_format || !M.length,
635
+ disabled: i || !m.disk_format || !M.length,
636
636
  required: !0,
637
637
  errortext: E.container_format,
638
- helptext: !M.length && u._({ id: "A7CVME" }),
639
- children: M.map((e) => /* @__PURE__ */ G(h, {
638
+ helptext: !M.length && c._({ id: "A7CVME" }),
639
+ children: M.map((e) => /* @__PURE__ */ G(p, {
640
640
  value: e,
641
641
  label: e.toUpperCase()
642
642
  }, e))
@@ -649,51 +649,51 @@ var Ve = {
649
649
  children: /* @__PURE__ */ G(n, {
650
650
  id: "protected",
651
651
  name: "protected",
652
- label: u._({ id: "644xgx" }),
653
- checked: f.protected,
652
+ label: c._({ id: "644xgx" }),
653
+ checked: m.protected,
654
654
  onChange: F,
655
- helptext: u._({ id: "aV6KPH" }),
656
- disabled: o
655
+ helptext: c._({ id: "aV6KPH" }),
656
+ disabled: i
657
657
  })
658
658
  })
659
659
  ]
660
660
  }),
661
- /* @__PURE__ */ G(x, {
661
+ /* @__PURE__ */ G(v, {
662
662
  className: "mb-6",
663
663
  children: /* @__PURE__ */ G(b, {
664
664
  className: "mb-0",
665
- children: /* @__PURE__ */ K(e, {
665
+ children: /* @__PURE__ */ K(x, {
666
666
  direction: "horizontal",
667
667
  gap: "3",
668
668
  distribution: "evenly",
669
669
  className: "w-full",
670
670
  children: [/* @__PURE__ */ G("div", {
671
671
  className: "flex-1",
672
- children: /* @__PURE__ */ G(C, {
672
+ children: /* @__PURE__ */ G(S, {
673
673
  id: "min_disk",
674
674
  name: "min_disk",
675
- label: u._({ id: "NixRmA" }),
675
+ label: c._({ id: "NixRmA" }),
676
676
  type: "number",
677
- value: String(f.min_disk),
677
+ value: String(m.min_disk),
678
678
  onChange: (e) => B("min_disk", e.target.value),
679
- onBlur: () => re("min_disk", f.min_disk),
680
- helptext: u._({ id: "4fh0Wj" }),
679
+ onBlur: () => re("min_disk", m.min_disk),
680
+ helptext: c._({ id: "4fh0Wj" }),
681
681
  errortext: E.min_disk,
682
- disabled: o
682
+ disabled: i
683
683
  })
684
684
  }), /* @__PURE__ */ G("div", {
685
685
  className: "flex-1",
686
- children: /* @__PURE__ */ G(C, {
686
+ children: /* @__PURE__ */ G(S, {
687
687
  id: "min_ram",
688
688
  name: "min_ram",
689
- label: u._({ id: "CgZxr7" }),
689
+ label: c._({ id: "CgZxr7" }),
690
690
  type: "number",
691
- value: String(f.min_ram),
691
+ value: String(m.min_ram),
692
692
  onChange: (e) => B("min_ram", e.target.value),
693
- onBlur: () => re("min_ram", f.min_ram),
694
- helptext: u._({ id: "KsIM0b" }),
693
+ onBlur: () => re("min_ram", m.min_ram),
694
+ helptext: c._({ id: "KsIM0b" }),
695
695
  errortext: E.min_ram,
696
- disabled: o
696
+ disabled: i
697
697
  })
698
698
  })]
699
699
  })
@@ -703,40 +703,40 @@ var Ve = {
703
703
  })
704
704
  ]
705
705
  });
706
- }, Ue = ({ deletableImages: t, protectedImages: n, isOpen: r, isLoading: o, onClose: s, onDelete: c }) => {
707
- let { i18n: u, _: d } = Y(), f = t.length, p = n.length;
708
- return /* @__PURE__ */ K(v, {
709
- onCancel: s,
706
+ }, Ue = ({ deletableImages: e, protectedImages: t, isOpen: n, isLoading: r, onClose: i, onDelete: a }) => {
707
+ let { i18n: s, _: c } = Y(), l = e.length, p = t.length;
708
+ return /* @__PURE__ */ K(d, {
709
+ onCancel: i,
710
710
  size: "small",
711
- title: u._({ id: "JtHgVz" }),
712
- open: r,
713
- modalFooter: /* @__PURE__ */ G(a, {
711
+ title: s._({ id: "JtHgVz" }),
712
+ open: n,
713
+ modalFooter: /* @__PURE__ */ G(w, {
714
714
  className: "flex justify-end",
715
- children: /* @__PURE__ */ K(g, { children: [/* @__PURE__ */ G(y, {
715
+ children: /* @__PURE__ */ K(m, { children: [/* @__PURE__ */ G(f, {
716
716
  variant: "default",
717
- onClick: s,
717
+ onClick: i,
718
718
  children: /* @__PURE__ */ G(J, { id: "dEgA5A" })
719
- }), /* @__PURE__ */ G(y, {
719
+ }), /* @__PURE__ */ G(f, {
720
720
  variant: "primary-danger",
721
- onClick: (e) => {
722
- e.preventDefault(), c(t);
721
+ onClick: (t) => {
722
+ t.preventDefault(), a(e);
723
723
  },
724
- disabled: o,
724
+ disabled: r,
725
725
  "data-testid": "delete-image-button",
726
726
  children: /* @__PURE__ */ G(J, { id: "cnGeoo" })
727
727
  })] })
728
728
  }),
729
- children: [o && /* @__PURE__ */ G(e, {
729
+ children: [r && /* @__PURE__ */ G(x, {
730
730
  distribution: "center",
731
731
  alignment: "center",
732
- children: /* @__PURE__ */ G(i, { variant: "primary" })
733
- }), !o && /* @__PURE__ */ K("div", {
732
+ children: /* @__PURE__ */ G(u, { variant: "primary" })
733
+ }), !r && /* @__PURE__ */ K("div", {
734
734
  className: "my-6",
735
735
  children: [
736
- f > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(l, {
737
- text: u._({
736
+ l > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(o, {
737
+ text: s._({
738
738
  id: "Dh1qvV",
739
- values: { deletableCount: f }
739
+ values: { deletableCount: l }
740
740
  }),
741
741
  variant: "danger",
742
742
  className: "mb-6"
@@ -746,13 +746,13 @@ var Ve = {
746
746
  className: "jn:text-theme-high mb-3 font-semibold",
747
747
  children: /* @__PURE__ */ G(J, {
748
748
  id: "rwBVXS",
749
- values: { deletableCount: f }
749
+ values: { deletableCount: l }
750
750
  })
751
751
  }), /* @__PURE__ */ G("div", {
752
752
  className: "jn:bg-theme-background-lvl-1 max-h-24 overflow-y-auto rounded p-4",
753
753
  children: /* @__PURE__ */ G("ul", {
754
754
  className: "space-y-2",
755
- children: t.map((e) => /* @__PURE__ */ G("li", {
755
+ children: e.map((e) => /* @__PURE__ */ G("li", {
756
756
  className: "jn:text-theme-default font-mono",
757
757
  children: e
758
758
  }, e))
@@ -768,7 +768,7 @@ var Ve = {
768
768
  className: "jn:bg-theme-warning/10 max-h-24 overflow-y-auto rounded border border-yellow-500/20 p-4",
769
769
  children: /* @__PURE__ */ G("ul", {
770
770
  className: "space-y-2",
771
- children: n.map((e) => /* @__PURE__ */ G("li", {
771
+ children: t.map((e) => /* @__PURE__ */ G("li", {
772
772
  className: "jn:text-theme-default font-mono",
773
773
  children: e
774
774
  }, e))
@@ -777,14 +777,14 @@ var Ve = {
777
777
  }),
778
778
  /* @__PURE__ */ K("div", {
779
779
  className: "jn:bg-theme-background-lvl-2 mb-6 rounded p-4",
780
- children: [f > 0 && /* @__PURE__ */ K("div", {
780
+ children: [l > 0 && /* @__PURE__ */ K("div", {
781
781
  className: "mb-2 flex justify-between",
782
782
  children: [/* @__PURE__ */ G("span", {
783
783
  className: "jn:text-theme-default",
784
784
  children: /* @__PURE__ */ G(J, { id: "MJtNLd" })
785
785
  }), /* @__PURE__ */ G("span", {
786
786
  className: "jn:text-theme-highest font-semibold",
787
- children: f
787
+ children: l
788
788
  })]
789
789
  }), p > 0 && /* @__PURE__ */ K("div", {
790
790
  className: "flex justify-between",
@@ -800,33 +800,33 @@ var Ve = {
800
800
  ]
801
801
  })]
802
802
  });
803
- }, We = ({ activeImages: t, deactivatedImages: n, isOpen: r, isLoading: a, onClose: o, onDeactivate: s }) => {
804
- let { i18n: c, _: l } = Y(), u = t.length, d = n.length, f = (e) => {
805
- e.preventDefault(), s(t);
803
+ }, We = ({ activeImages: e, deactivatedImages: t, isOpen: n, isLoading: r, onClose: i, onDeactivate: a }) => {
804
+ let { i18n: o, _: s } = Y(), c = e.length, l = t.length, f = (t) => {
805
+ t.preventDefault(), a(e);
806
806
  };
807
- return /* @__PURE__ */ K(v, {
808
- onCancel: o,
807
+ return /* @__PURE__ */ K(d, {
808
+ onCancel: i,
809
809
  size: "small",
810
- title: c._({ id: "+9CXS9" }),
811
- open: r,
810
+ title: o._({ id: "+9CXS9" }),
811
+ open: n,
812
812
  onConfirm: (e) => {
813
- f(e), o();
813
+ f(e), i();
814
814
  },
815
- confirmButtonLabel: c._({ id: "5y3O+A" }),
816
- cancelButtonLabel: c._({ id: "dEgA5A" }),
817
- disableConfirmButton: a,
818
- children: [a && /* @__PURE__ */ G(e, {
815
+ confirmButtonLabel: o._({ id: "5y3O+A" }),
816
+ cancelButtonLabel: o._({ id: "dEgA5A" }),
817
+ disableConfirmButton: r,
818
+ children: [r && /* @__PURE__ */ G(x, {
819
819
  distribution: "center",
820
820
  alignment: "center",
821
- children: /* @__PURE__ */ G(i, { variant: "primary" })
822
- }), !a && /* @__PURE__ */ K("div", {
821
+ children: /* @__PURE__ */ G(u, { variant: "primary" })
822
+ }), !r && /* @__PURE__ */ K("div", {
823
823
  className: "my-6",
824
824
  children: [
825
- u > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("p", {
825
+ c > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("p", {
826
826
  className: "mb-6",
827
827
  children: /* @__PURE__ */ G(J, {
828
828
  id: "zm7+/D",
829
- values: { activeCount: u },
829
+ values: { activeCount: c },
830
830
  components: { 0: /* @__PURE__ */ G("strong", {}) }
831
831
  })
832
832
  }), /* @__PURE__ */ K("div", {
@@ -835,20 +835,20 @@ var Ve = {
835
835
  className: "jn:text-theme-high mb-3 font-semibold",
836
836
  children: /* @__PURE__ */ G(J, {
837
837
  id: "ryxYVo",
838
- values: { activeCount: u }
838
+ values: { activeCount: c }
839
839
  })
840
840
  }), /* @__PURE__ */ G("div", {
841
841
  className: "jn:bg-theme-background-lvl-1 max-h-24 overflow-y-auto rounded p-4",
842
842
  children: /* @__PURE__ */ G("ul", {
843
843
  className: "space-y-2",
844
- children: t.map((e) => /* @__PURE__ */ G("li", {
844
+ children: e.map((e) => /* @__PURE__ */ G("li", {
845
845
  className: "jn:text-theme-default font-mono",
846
846
  children: e
847
847
  }, e))
848
848
  })
849
849
  })]
850
850
  })] }),
851
- d > 0 && /* @__PURE__ */ K("div", {
851
+ l > 0 && /* @__PURE__ */ K("div", {
852
852
  className: "mb-6",
853
853
  children: [/* @__PURE__ */ G("h3", {
854
854
  className: "jn:text-theme-high mb-3 font-semibold",
@@ -857,7 +857,7 @@ var Ve = {
857
857
  className: "jn:bg-theme-background-lvl-1 max-h-24 overflow-y-auto rounded p-4",
858
858
  children: /* @__PURE__ */ G("ul", {
859
859
  className: "space-y-2",
860
- children: n.map((e) => /* @__PURE__ */ G("li", {
860
+ children: t.map((e) => /* @__PURE__ */ G("li", {
861
861
  className: "jn:text-theme-default font-mono",
862
862
  children: e
863
863
  }, e))
@@ -866,54 +866,54 @@ var Ve = {
866
866
  }),
867
867
  /* @__PURE__ */ K("div", {
868
868
  className: "jn:bg-theme-background-lvl-2 mb-6 rounded p-4",
869
- children: [u > 0 && /* @__PURE__ */ K("div", {
869
+ children: [c > 0 && /* @__PURE__ */ K("div", {
870
870
  className: "mb-2 flex justify-between",
871
871
  children: [/* @__PURE__ */ G("span", {
872
872
  className: "jn:text-theme-default",
873
873
  children: /* @__PURE__ */ G(J, { id: "rD9yV1" })
874
874
  }), /* @__PURE__ */ G("span", {
875
875
  className: "jn:text-theme-highest font-semibold",
876
- children: u
876
+ children: c
877
877
  })]
878
- }), d > 0 && /* @__PURE__ */ K("div", {
878
+ }), l > 0 && /* @__PURE__ */ K("div", {
879
879
  className: "flex justify-between",
880
880
  children: [/* @__PURE__ */ G("span", {
881
881
  className: "jn:text-theme-default",
882
882
  children: /* @__PURE__ */ G(J, { id: "NH2fsP" })
883
883
  }), /* @__PURE__ */ G("span", {
884
884
  className: "jn:text-theme-warning font-semibold",
885
- children: d
885
+ children: l
886
886
  })]
887
887
  })]
888
888
  })
889
889
  ]
890
890
  })]
891
891
  });
892
- }, Ge = ({ deactivatedImages: t, activeImages: n, isOpen: r, isLoading: a, onClose: o, onActivate: s }) => {
893
- let { i18n: c, _: l } = Y(), u = t.length, d = n.length;
894
- return /* @__PURE__ */ K(v, {
895
- onCancel: o,
892
+ }, Ge = ({ deactivatedImages: e, activeImages: t, isOpen: n, isLoading: r, onClose: i, onActivate: a }) => {
893
+ let { i18n: o, _: s } = Y(), c = e.length, l = t.length;
894
+ return /* @__PURE__ */ K(d, {
895
+ onCancel: i,
896
896
  size: "small",
897
- title: c._({ id: "UdcGJu" }),
898
- open: r,
899
- onConfirm: (e) => {
900
- e.preventDefault(), s(t);
897
+ title: o._({ id: "UdcGJu" }),
898
+ open: n,
899
+ onConfirm: (t) => {
900
+ t.preventDefault(), a(e);
901
901
  },
902
- confirmButtonLabel: c._({ id: "FQBaXG" }),
903
- cancelButtonLabel: c._({ id: "dEgA5A" }),
904
- disableConfirmButton: a,
905
- children: [a && /* @__PURE__ */ G(e, {
902
+ confirmButtonLabel: o._({ id: "FQBaXG" }),
903
+ cancelButtonLabel: o._({ id: "dEgA5A" }),
904
+ disableConfirmButton: r,
905
+ children: [r && /* @__PURE__ */ G(x, {
906
906
  distribution: "center",
907
907
  alignment: "center",
908
- children: /* @__PURE__ */ G(i, { variant: "primary" })
909
- }), !a && /* @__PURE__ */ K("div", {
908
+ children: /* @__PURE__ */ G(u, { variant: "primary" })
909
+ }), !r && /* @__PURE__ */ K("div", {
910
910
  className: "my-6",
911
911
  children: [
912
- u > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("p", {
912
+ c > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("p", {
913
913
  className: "mb-6",
914
914
  children: /* @__PURE__ */ G(J, {
915
915
  id: "MgZyuJ",
916
- values: { deactivatedCount: u },
916
+ values: { deactivatedCount: c },
917
917
  components: { 0: /* @__PURE__ */ G("strong", {}) }
918
918
  })
919
919
  }), /* @__PURE__ */ K("div", {
@@ -922,20 +922,20 @@ var Ve = {
922
922
  className: "jn:text-theme-high mb-3 font-semibold",
923
923
  children: /* @__PURE__ */ G(J, {
924
924
  id: "shKIZu",
925
- values: { deactivatedCount: u }
925
+ values: { deactivatedCount: c }
926
926
  })
927
927
  }), /* @__PURE__ */ G("div", {
928
928
  className: "jn:bg-theme-background-lvl-1 max-h-24 overflow-y-auto rounded p-4",
929
929
  children: /* @__PURE__ */ G("ul", {
930
930
  className: "space-y-2",
931
- children: t.map((e) => /* @__PURE__ */ G("li", {
931
+ children: e.map((e) => /* @__PURE__ */ G("li", {
932
932
  className: "jn:text-theme-default font-mono",
933
933
  children: e
934
934
  }, e))
935
935
  })
936
936
  })]
937
937
  })] }),
938
- d > 0 && /* @__PURE__ */ K("div", {
938
+ l > 0 && /* @__PURE__ */ K("div", {
939
939
  className: "mb-6",
940
940
  children: [/* @__PURE__ */ G("h3", {
941
941
  className: "jn:text-theme-high mb-3 font-semibold",
@@ -944,7 +944,7 @@ var Ve = {
944
944
  className: "jn:bg-theme-warning/10 max-h-24 overflow-y-auto rounded border border-yellow-500/20 p-4",
945
945
  children: /* @__PURE__ */ G("ul", {
946
946
  className: "space-y-2",
947
- children: n.map((e) => /* @__PURE__ */ G("li", {
947
+ children: t.map((e) => /* @__PURE__ */ G("li", {
948
948
  className: "jn:text-theme-default font-mono",
949
949
  children: e
950
950
  }, e))
@@ -953,23 +953,23 @@ var Ve = {
953
953
  }),
954
954
  /* @__PURE__ */ K("div", {
955
955
  className: "jn:bg-theme-background-lvl-2 mb-6 rounded p-4",
956
- children: [u > 0 && /* @__PURE__ */ K("div", {
956
+ children: [c > 0 && /* @__PURE__ */ K("div", {
957
957
  className: "mb-2 flex justify-between",
958
958
  children: [/* @__PURE__ */ G("span", {
959
959
  className: "jn:text-theme-default",
960
960
  children: /* @__PURE__ */ G(J, { id: "4fvDRe" })
961
961
  }), /* @__PURE__ */ G("span", {
962
962
  className: "jn:text-theme-highest font-semibold",
963
- children: u
963
+ children: c
964
964
  })]
965
- }), d > 0 && /* @__PURE__ */ K("div", {
965
+ }), l > 0 && /* @__PURE__ */ K("div", {
966
966
  className: "flex justify-between",
967
967
  children: [/* @__PURE__ */ G("span", {
968
968
  className: "jn:text-theme-default",
969
969
  children: /* @__PURE__ */ G(J, { id: "x5l/TK" })
970
970
  }), /* @__PURE__ */ G("span", {
971
971
  className: "jn:text-theme-warning font-semibold",
972
- children: d
972
+ children: l
973
973
  })]
974
974
  })]
975
975
  })
@@ -977,43 +977,43 @@ var Ve = {
977
977
  })]
978
978
  });
979
979
  }, Ke = ({ isOpen: e, onClose: t, image: n, permissions: { canCreateMember: r, canDeleteMember: i } }) => {
980
- let { i18n: a, _: o } = Y(), s = Te(), [c, u] = q(null), [d, f] = q(!1), { data: p, isLoading: m } = E.compute.listImageMembers.useQuery({
981
- project_id: s,
980
+ let { i18n: a, _: s } = Y(), c = Te(), [l, u] = q(null), [f, p] = q(!1), { data: m, isLoading: h } = E.compute.listImageMembers.useQuery({
981
+ project_id: c,
982
982
  imageId: n?.id || ""
983
- }, { enabled: e && !!n?.id }), h = () => {
984
- u(null), f(!1), t();
983
+ }, { enabled: e && !!n?.id }), g = () => {
984
+ u(null), p(!1), t();
985
985
  };
986
986
  if (!e || !n) return null;
987
- let g = n.name || n.id;
988
- return /* @__PURE__ */ G(v, {
989
- onCancel: h,
987
+ let _ = n.name || n.id;
988
+ return /* @__PURE__ */ G(d, {
989
+ onCancel: g,
990
990
  title: a._({
991
991
  id: "UQ7Wyv",
992
- values: { imageName: g }
992
+ values: { imageName: _ }
993
993
  }),
994
994
  open: e,
995
995
  size: "xl",
996
- children: /* @__PURE__ */ K("div", { children: [c && /* @__PURE__ */ G(l, {
996
+ children: /* @__PURE__ */ K("div", { children: [l && /* @__PURE__ */ G(o, {
997
997
  onDismiss: () => u(null),
998
- text: c.text,
999
- variant: c.type,
998
+ text: l.text,
999
+ variant: l.type,
1000
1000
  className: "mb-4"
1001
1001
  }), /* @__PURE__ */ G(j, {
1002
- projectId: s,
1002
+ projectId: c,
1003
1003
  image: n,
1004
- imageMembers: p,
1005
- isMembersLoading: m,
1004
+ imageMembers: m,
1005
+ isMembersLoading: h,
1006
1006
  canAdd: r,
1007
1007
  canRemove: i,
1008
- isAddingMember: d,
1009
- setIsAddingMember: f,
1008
+ isAddingMember: f,
1009
+ setIsAddingMember: p,
1010
1010
  setMessage: u
1011
1011
  })] })
1012
1012
  });
1013
1013
  };
1014
1014
  //#endregion
1015
1015
  //#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/ImageListView.tsx
1016
- function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l, isFetching: d, currentPage: p = 1, totalPages: m = 1, onPageChange: h, children: g, selectedImages: _, setSelectedImages: v, deleteAllModalOpen: y, setDeleteAllModalOpen: b, deactivateAllModalOpen: x, setDeactivateAllModalOpen: ee, activateAllModalOpen: C, setActivateAllModalOpen: D, createModalOpen: O, setCreateModalOpen: k, deletableImages: A, protectedImages: te, activeImages: j, deactivatedImages: P, onImageUpdated: F, onImageDeleted: I, onMemberStatusChanged: z }) {
1016
+ function qe({ images: e, suggestedImages: a, acceptedImages: o, permissions: s, isFetching: c, currentPage: d = 1, totalPages: f = 1, onPageChange: p, children: m, selectedImages: h, setSelectedImages: v, deleteAllModalOpen: y, setDeleteAllModalOpen: b, deactivateAllModalOpen: S, setDeactivateAllModalOpen: C, activateAllModalOpen: w, setActivateAllModalOpen: D, createModalOpen: O, setCreateModalOpen: k, deletableImages: A, protectedImages: te, activeImages: j, deactivatedImages: P, onImageUpdated: F, onImageDeleted: I, onMemberStatusChanged: z }) {
1017
1017
  let H = Te(), [de, U] = q(null), [Ee, De] = q(!1), [Oe, ke] = q(!1), [Ae, je] = q(!1), [Me, Ne] = q(!1), [Pe, Y] = q(!1), [Re, ze] = q(!1), [X, Z] = q(null), [Be, Ve] = q(!1), [qe, Je] = q(null), [Ye, Xe] = q(!1), Q = E.useUtils(), Ze = E.compute.deleteImage.useMutation({ onSuccess: () => {
1018
1018
  Q.compute.listImagesWithPagination.invalidate();
1019
1019
  } }), Qe = E.compute.deactivateImage.useMutation({ onSuccess: () => {
@@ -1152,26 +1152,26 @@ function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l,
1152
1152
  };
1153
1153
  return st ? /* @__PURE__ */ G("div", {
1154
1154
  "data-testid": "loading",
1155
- children: /* @__PURE__ */ G(o, { children: /* @__PURE__ */ G(t, {
1155
+ children: /* @__PURE__ */ G(r, { children: /* @__PURE__ */ G(g, {
1156
1156
  colSpan: 3,
1157
- children: /* @__PURE__ */ K(e, {
1157
+ children: /* @__PURE__ */ K(x, {
1158
1158
  distribution: "center",
1159
1159
  alignment: "center",
1160
- children: [/* @__PURE__ */ G(i, { variant: "primary" }), /* @__PURE__ */ G(J, { id: "Z3FXyt" })]
1160
+ children: [/* @__PURE__ */ G(u, { variant: "primary" }), /* @__PURE__ */ G(J, { id: "Z3FXyt" })]
1161
1161
  })
1162
1162
  }) })
1163
1163
  }) : /* @__PURE__ */ K(W, { children: [
1164
- /* @__PURE__ */ G(W, { children: g }),
1164
+ /* @__PURE__ */ G(W, { children: m }),
1165
1165
  /* @__PURE__ */ K("div", {
1166
1166
  className: "relative",
1167
1167
  children: [
1168
- d && /* @__PURE__ */ G("div", {
1168
+ c && /* @__PURE__ */ G("div", {
1169
1169
  className: "bg-theme-background-lvl-0/50 absolute inset-0 z-10 flex items-center justify-center backdrop-blur-sm",
1170
- children: /* @__PURE__ */ K(e, {
1170
+ children: /* @__PURE__ */ K(x, {
1171
1171
  direction: "vertical",
1172
1172
  alignment: "center",
1173
1173
  gap: "2",
1174
- children: [/* @__PURE__ */ G(i, {
1174
+ children: [/* @__PURE__ */ G(u, {
1175
1175
  variant: "primary",
1176
1176
  size: "large"
1177
1177
  }), /* @__PURE__ */ G("span", {
@@ -1180,43 +1180,43 @@ function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l,
1180
1180
  })]
1181
1181
  })
1182
1182
  }),
1183
- r.length > 0 ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ K(w, {
1183
+ e.length > 0 ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ K(i, {
1184
1184
  columns: 9,
1185
1185
  minContentColumns: [0, 8],
1186
1186
  className: "images",
1187
1187
  "data-testid": "images-table",
1188
- children: [/* @__PURE__ */ K(o, { children: [
1189
- /* @__PURE__ */ G(u, { children: /* @__PURE__ */ G(n, {
1188
+ children: [/* @__PURE__ */ K(r, { children: [
1189
+ /* @__PURE__ */ G(l, { children: /* @__PURE__ */ G(n, {
1190
1190
  checked: (() => {
1191
- let e = r.map((e) => e.id);
1192
- return e.length > 0 && e.every((e) => _.includes(e));
1191
+ let t = e.map((e) => e.id);
1192
+ return t.length > 0 && t.every((e) => h.includes(e));
1193
1193
  })(),
1194
1194
  onChange: () => {
1195
- let e = r.map((e) => e.id);
1196
- return e.every((e) => _.includes(e)) ? v(_.filter((t) => !e.includes(t))) : v([...new Set([..._, ...e])]);
1195
+ let t = e.map((e) => e.id);
1196
+ return t.every((e) => h.includes(e)) ? v(h.filter((e) => !t.includes(e))) : v([...new Set([...h, ...t])]);
1197
1197
  }
1198
1198
  }) }),
1199
- /* @__PURE__ */ G(u, { children: /* @__PURE__ */ G(J, { id: "uAQUqI" }) }),
1200
- /* @__PURE__ */ G(u, { children: /* @__PURE__ */ G(J, { id: "ExLULX" }) }),
1201
- /* @__PURE__ */ G(u, { children: /* @__PURE__ */ G(J, { id: "2q/Q7x" }) }),
1202
- /* @__PURE__ */ G(u, { children: /* @__PURE__ */ G(J, { id: "644xgx" }) }),
1203
- /* @__PURE__ */ G(u, { children: /* @__PURE__ */ G(J, { id: "Cj2Gtd" }) }),
1204
- /* @__PURE__ */ G(u, { children: /* @__PURE__ */ G(J, { id: "NopYGU" }) }),
1205
- /* @__PURE__ */ G(u, { children: /* @__PURE__ */ G(J, { id: "d+F6q9" }) }),
1206
- /* @__PURE__ */ G(u, {})
1207
- ] }), r.map((e) => /* @__PURE__ */ G(Le, {
1199
+ /* @__PURE__ */ G(l, { children: /* @__PURE__ */ G(J, { id: "uAQUqI" }) }),
1200
+ /* @__PURE__ */ G(l, { children: /* @__PURE__ */ G(J, { id: "ExLULX" }) }),
1201
+ /* @__PURE__ */ G(l, { children: /* @__PURE__ */ G(J, { id: "2q/Q7x" }) }),
1202
+ /* @__PURE__ */ G(l, { children: /* @__PURE__ */ G(J, { id: "644xgx" }) }),
1203
+ /* @__PURE__ */ G(l, { children: /* @__PURE__ */ G(J, { id: "Cj2Gtd" }) }),
1204
+ /* @__PURE__ */ G(l, { children: /* @__PURE__ */ G(J, { id: "NopYGU" }) }),
1205
+ /* @__PURE__ */ G(l, { children: /* @__PURE__ */ G(J, { id: "d+F6q9" }) }),
1206
+ /* @__PURE__ */ G(l, {})
1207
+ ] }), e.map((e) => /* @__PURE__ */ G(Le, {
1208
1208
  image: e,
1209
- isSelected: _.includes(e.id),
1209
+ isSelected: h.includes(e.id),
1210
1210
  isPending: !!a.find(({ id: t }) => t === e.id),
1211
- isAccepted: !!c.find(({ id: t }) => t === e.id),
1212
- permissions: l,
1211
+ isAccepted: !!o.find(({ id: t }) => t === e.id),
1212
+ permissions: s,
1213
1213
  onEditDetails: gt,
1214
1214
  onEditMetadata: _t,
1215
1215
  onDelete: vt,
1216
1216
  onManageAccess: yt,
1217
1217
  onSelect: (e) => {
1218
- if (_.includes(e.id)) return v(_.filter((t) => t !== e.id));
1219
- v([..._, e.id]);
1218
+ if (h.includes(e.id)) return v(h.filter((t) => t !== e.id));
1219
+ v([...h, e.id]);
1220
1220
  },
1221
1221
  onActivationStatusChange: pt,
1222
1222
  onUpdateVisibility: ct,
@@ -1225,24 +1225,24 @@ function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l,
1225
1225
  uploadProgressPercent: ot?.percent,
1226
1226
  onMemberStatusChanged: z
1227
1227
  }, e.id))]
1228
- }), m > 1 && /* @__PURE__ */ G("div", {
1228
+ }), f > 1 && /* @__PURE__ */ G("div", {
1229
1229
  className: "flex justify-center py-4",
1230
- children: /* @__PURE__ */ G(S, {
1230
+ children: /* @__PURE__ */ G(_, {
1231
1231
  variant: "input",
1232
- currentPage: p,
1233
- pages: m,
1234
- onPressPrevious: () => h?.(Math.max(p - 1, 1)),
1235
- onPressNext: () => h?.(Math.min(p + 1, m)),
1236
- onSelectChange: (e) => h?.(e)
1232
+ currentPage: d,
1233
+ pages: f,
1234
+ onPressPrevious: () => p?.(Math.max(d - 1, 1)),
1235
+ onPressNext: () => p?.(Math.min(d + 1, f)),
1236
+ onSelectChange: (e) => p?.(e)
1237
1237
  })
1238
- })] }) : /* @__PURE__ */ G(w, {
1238
+ })] }) : /* @__PURE__ */ G(i, {
1239
1239
  columns: 7,
1240
1240
  minContentColumns: [0, 6],
1241
1241
  className: "images",
1242
1242
  "data-testid": "no-images",
1243
- children: /* @__PURE__ */ G(o, { children: /* @__PURE__ */ K(t, {
1243
+ children: /* @__PURE__ */ G(r, { children: /* @__PURE__ */ K(g, {
1244
1244
  colSpan: 7,
1245
- children: [/* @__PURE__ */ G(s, { children: /* @__PURE__ */ G(J, { id: "eYlnXt" }) }), /* @__PURE__ */ G("p", { children: /* @__PURE__ */ G(J, { id: "qvF2D8" }) })]
1245
+ children: [/* @__PURE__ */ G(t, { children: /* @__PURE__ */ G(J, { id: "eYlnXt" }) }), /* @__PURE__ */ G("p", { children: /* @__PURE__ */ G(J, { id: "qvF2D8" }) })]
1246
1246
  }) })
1247
1247
  }),
1248
1248
  X && /* @__PURE__ */ K(W, { children: [
@@ -1268,7 +1268,7 @@ function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l,
1268
1268
  image: X,
1269
1269
  isOpen: Ae,
1270
1270
  isLoading: st,
1271
- isDisabled: X.protected || !l.canDelete,
1271
+ isDisabled: X.protected || !s.canDelete,
1272
1272
  onClose: () => {
1273
1273
  Z(null), je(!1);
1274
1274
  },
@@ -1298,7 +1298,7 @@ function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l,
1298
1298
  onClose: () => {
1299
1299
  Z(null), ze(!1);
1300
1300
  },
1301
- permissions: l
1301
+ permissions: s
1302
1302
  })
1303
1303
  ] }),
1304
1304
  /* @__PURE__ */ G(Ue, {
@@ -1322,13 +1322,13 @@ function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l,
1322
1322
  }
1323
1323
  }),
1324
1324
  /* @__PURE__ */ G(We, {
1325
- isOpen: x,
1325
+ isOpen: S,
1326
1326
  activeImages: j,
1327
1327
  deactivatedImages: P,
1328
1328
  isLoading: st,
1329
- onClose: () => ee(!1),
1329
+ onClose: () => C(!1),
1330
1330
  onDeactivate: async (e) => {
1331
- ee(!1);
1331
+ C(!1);
1332
1332
  try {
1333
1333
  let t = await nt.mutateAsync({
1334
1334
  project_id: H,
@@ -1342,7 +1342,7 @@ function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l,
1342
1342
  }
1343
1343
  }),
1344
1344
  /* @__PURE__ */ G(Ge, {
1345
- isOpen: C,
1345
+ isOpen: w,
1346
1346
  deactivatedImages: P,
1347
1347
  activeImages: j,
1348
1348
  isLoading: st,
@@ -1373,7 +1373,7 @@ function qe({ images: r, suggestedImages: a, acceptedImages: c, permissions: l,
1373
1373
  })
1374
1374
  ]
1375
1375
  }),
1376
- de && /* @__PURE__ */ G(f, {
1376
+ de && /* @__PURE__ */ G(ee, {
1377
1377
  ...de,
1378
1378
  className: "border-theme-light fixed top-5 right-5 z-50 rounded-lg border shadow-lg"
1379
1379
  })
@@ -1462,8 +1462,8 @@ var Je = (e) => {
1462
1462
  canDeleteMember: i,
1463
1463
  canUpdateMember: a ?? !1
1464
1464
  })), Qe = 50;
1465
- function $e({ imagesPromise: t, imageOverrides: n, deletedImageIds: i, permissionsPromise: a, searchTerm: o, setSearchTerm: s, sortSettings: l, handleSortChange: u, filterSettings: f, handleFilterChange: m, selectedImages: h, setSelectedImages: g, createModalOpen: _, setCreateModalOpen: v, deleteAllModalOpen: b, setDeleteAllModalOpen: x, deactivateAllModalOpen: ee, setDeactivateAllModalOpen: S, activateAllModalOpen: C, setActivateAllModalOpen: w, memberStatusView: T, setMemberStatusView: E, isFetching: D, currentPage: O, onPageChange: k, onImageUpdated: A, onImageDeleted: j, onMemberStatusChanged: ne }) {
1466
- let { i18n: M, _: N } = Y(), P = Oe(t), F = Oe(a), I = P.images.filter((e) => !i.has(e.id)).map((e) => n.get(e.id) ?? e), R = Math.max(1, Math.ceil(I.length / Qe)), z = Math.min(O, R), B = I.slice((z - 1) * Qe, z * Qe);
1465
+ function $e({ imagesPromise: t, imageOverrides: n, deletedImageIds: r, permissionsPromise: i, searchTerm: o, setSearchTerm: l, sortSettings: u, handleSortChange: d, filterSettings: p, handleFilterChange: m, selectedImages: h, setSelectedImages: g, createModalOpen: _, setCreateModalOpen: v, deleteAllModalOpen: ee, setDeleteAllModalOpen: y, deactivateAllModalOpen: b, setDeactivateAllModalOpen: S, activateAllModalOpen: C, setActivateAllModalOpen: w, memberStatusView: T, setMemberStatusView: E, isFetching: D, currentPage: O, onPageChange: k, onImageUpdated: A, onImageDeleted: j, onMemberStatusChanged: ne }) {
1466
+ let { i18n: M, _: N } = Y(), P = Oe(t), F = Oe(i), I = P.images.filter((e) => !r.has(e.id)).map((e) => n.get(e.id) ?? e), R = Math.max(1, Math.ceil(I.length / Qe)), z = Math.min(O, R), B = I.slice((z - 1) * Qe, z * Qe);
1467
1467
  Ae(() => {
1468
1468
  O !== 1 && O > R && k(1);
1469
1469
  }, [
@@ -1472,10 +1472,10 @@ function $e({ imagesPromise: t, imageOverrides: n, deletedImageIds: i, permissio
1472
1472
  k
1473
1473
  ]);
1474
1474
  let re = T === "pending" || T === "accepted" ? {
1475
- ...f,
1476
- filters: f.filters.filter((e) => e.filterName !== "visibility"),
1477
- selectedFilters: (f.selectedFilters || []).filter((e) => e.name !== "visibility")
1478
- } : f, ie = new Set(I.map((e) => e.id)), V = h.filter((e) => ie.has(e)), ae = V.filter((e) => {
1475
+ ...p,
1476
+ filters: p.filters.filter((e) => e.filterName !== "visibility"),
1477
+ selectedFilters: (p.selectedFilters || []).filter((e) => e.name !== "visibility")
1478
+ } : p, ie = new Set(I.map((e) => e.id)), V = h.filter((e) => ie.has(e)), ae = V.filter((e) => {
1479
1479
  let t = I.find((t) => t.id === e);
1480
1480
  return t && !t.protected;
1481
1481
  }), oe = V.filter((e) => {
@@ -1489,12 +1489,12 @@ function $e({ imagesPromise: t, imageOverrides: n, deletedImageIds: i, permissio
1489
1489
  return t && t.status === L.DEACTIVATED;
1490
1490
  }), ce = !F.canDelete || V.length === 0 || I.filter((e) => V.includes(e.id)).every((e) => e.protected), le = !F.canUpdate || V.length === 0 || I.filter((e) => V.includes(e.id)).every((e) => e.status === L.DEACTIVATED), ue = !F.canUpdate || V.length === 0 || I.filter((e) => V.includes(e.id)).every((e) => e.status === L.ACTIVE);
1491
1491
  return /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(te, {
1492
- sortSettings: l,
1492
+ sortSettings: u,
1493
1493
  filterSettings: re,
1494
1494
  searchTerm: o,
1495
- onSort: u,
1495
+ onSort: d,
1496
1496
  onFilter: m,
1497
- onSearch: s,
1497
+ onSearch: l,
1498
1498
  tabs: {
1499
1499
  items: [
1500
1500
  {
@@ -1513,30 +1513,30 @@ function $e({ imagesPromise: t, imageOverrides: n, deletedImageIds: i, permissio
1513
1513
  activeItem: T,
1514
1514
  onActiveItemChange: (e) => E(e)
1515
1515
  },
1516
- actions: /* @__PURE__ */ G(W, { children: /* @__PURE__ */ K(e, {
1516
+ actions: /* @__PURE__ */ G(W, { children: /* @__PURE__ */ K(x, {
1517
1517
  gap: "2",
1518
- children: [F.canCreate && /* @__PURE__ */ G(y, {
1518
+ children: [F.canCreate && /* @__PURE__ */ G(f, {
1519
1519
  onClick: () => v(!0),
1520
1520
  variant: "primary",
1521
1521
  children: "Create Image"
1522
- }), /* @__PURE__ */ K(p, { children: [/* @__PURE__ */ G(r, {
1522
+ }), /* @__PURE__ */ K(e, { children: [/* @__PURE__ */ G(s, {
1523
1523
  as: "div",
1524
- children: /* @__PURE__ */ G(y, {
1524
+ children: /* @__PURE__ */ G(f, {
1525
1525
  icon: "moreVert",
1526
1526
  children: /* @__PURE__ */ G(J, { id: "PgNNGl" })
1527
1527
  })
1528
1528
  }), /* @__PURE__ */ K(c, { children: [
1529
- /* @__PURE__ */ G(d, {
1529
+ /* @__PURE__ */ G(a, {
1530
1530
  disabled: ce,
1531
1531
  label: M._({ id: "c6b6fz" }),
1532
- onClick: () => x(!0)
1532
+ onClick: () => y(!0)
1533
1533
  }),
1534
- /* @__PURE__ */ G(d, {
1534
+ /* @__PURE__ */ G(a, {
1535
1535
  disabled: le,
1536
1536
  label: M._({ id: "UmQ3/m" }),
1537
1537
  onClick: () => S(!0)
1538
1538
  }),
1539
- /* @__PURE__ */ G(d, {
1539
+ /* @__PURE__ */ G(a, {
1540
1540
  disabled: ue,
1541
1541
  label: M._({ id: "d/I0J3" }),
1542
1542
  onClick: () => w(!0)
@@ -1554,9 +1554,9 @@ function $e({ imagesPromise: t, imageOverrides: n, deletedImageIds: i, permissio
1554
1554
  onPageChange: k,
1555
1555
  selectedImages: h,
1556
1556
  setSelectedImages: g,
1557
- deleteAllModalOpen: b,
1558
- setDeleteAllModalOpen: x,
1559
- deactivateAllModalOpen: ee,
1557
+ deleteAllModalOpen: ee,
1558
+ setDeleteAllModalOpen: y,
1559
+ deactivateAllModalOpen: b,
1560
1560
  setDeactivateAllModalOpen: S,
1561
1561
  activateAllModalOpen: C,
1562
1562
  setActivateAllModalOpen: w,
@@ -1571,67 +1571,67 @@ function $e({ imagesPromise: t, imageOverrides: n, deletedImageIds: i, permissio
1571
1571
  onMemberStatusChanged: ne
1572
1572
  })] });
1573
1573
  }
1574
- var et = ({ client: t, project: n }) => {
1575
- let { i18n: r, _: a } = Y(), o = Me(), s = Pe({ strict: !1 }), [c, l] = q({
1574
+ var et = ({ client: e, project: t }) => {
1575
+ let { i18n: n, _: r } = Y(), i = Me(), a = Pe({ strict: !1 }), [o, s] = q({
1576
1576
  options: [
1577
1577
  {
1578
- label: r._({ id: "88kg0+" }),
1578
+ label: n._({ id: "88kg0+" }),
1579
1579
  value: "created_at"
1580
1580
  },
1581
1581
  {
1582
- label: r._({ id: "Llcakz" }),
1582
+ label: n._({ id: "Llcakz" }),
1583
1583
  value: "updated_at"
1584
1584
  },
1585
1585
  {
1586
- label: r._({ id: "6YtxFj" }),
1586
+ label: n._({ id: "6YtxFj" }),
1587
1587
  value: "name"
1588
1588
  },
1589
1589
  {
1590
- label: r._({ id: "Cj2Gtd" }),
1590
+ label: n._({ id: "Cj2Gtd" }),
1591
1591
  value: "size"
1592
1592
  },
1593
1593
  {
1594
- label: r._({ id: "uAQUqI" }),
1594
+ label: n._({ id: "uAQUqI" }),
1595
1595
  value: "status"
1596
1596
  }
1597
1597
  ],
1598
- sortBy: s.sortBy || "created_at",
1599
- sortDirection: s.sortDirection || "desc"
1600
- }), [u, d] = q({
1598
+ sortBy: a.sortBy || "created_at",
1599
+ sortDirection: a.sortDirection || "desc"
1600
+ }), [c, l] = q({
1601
1601
  filters: [
1602
1602
  {
1603
- displayName: r._({ id: "uAQUqI" }),
1603
+ displayName: n._({ id: "uAQUqI" }),
1604
1604
  filterName: "status",
1605
1605
  values: Object.values(L),
1606
1606
  supportsMultiValue: !0
1607
1607
  },
1608
1608
  {
1609
- displayName: r._({ id: "2q/Q7x" }),
1609
+ displayName: n._({ id: "2q/Q7x" }),
1610
1610
  filterName: "visibility",
1611
1611
  values: Object.values(z),
1612
1612
  supportsMultiValue: !1
1613
1613
  },
1614
1614
  {
1615
- displayName: r._({ id: "NopYGU" }),
1615
+ displayName: n._({ id: "NopYGU" }),
1616
1616
  filterName: "disk_format",
1617
1617
  values: Object.values(I),
1618
1618
  supportsMultiValue: !0
1619
1619
  },
1620
1620
  {
1621
- displayName: r._({ id: "6/xipy" }),
1621
+ displayName: n._({ id: "6/xipy" }),
1622
1622
  filterName: "container_format",
1623
1623
  values: Object.values(de),
1624
1624
  supportsMultiValue: !0
1625
1625
  },
1626
1626
  {
1627
- displayName: r._({ id: "644xgx" }),
1627
+ displayName: n._({ id: "644xgx" }),
1628
1628
  filterName: "protected",
1629
1629
  values: ["true", "false"],
1630
1630
  supportsMultiValue: !1
1631
1631
  }
1632
1632
  ],
1633
- selectedFilters: Je(s)
1634
- }), [f, p] = q(s.search || ""), m = s.page ?? 1, [h, g] = q([]), [_, v] = q(!1), [y, b] = q(!1), [x, ee] = q(!1), [S, C] = q(!1), w = s.memberStatus ?? "all", [T, E] = q(!0), [D, O] = q(/* @__PURE__ */ new Map()), [k, A] = q(/* @__PURE__ */ new Set()), [te, j] = q(() => new Promise(() => {})), [ne] = q(() => Ze(t, n)), M = ke((e) => {
1633
+ selectedFilters: Je(a)
1634
+ }), [d, f] = q(a.search || ""), p = a.page ?? 1, [m, h] = q([]), [g, _] = q(!1), [v, ee] = q(!1), [y, b] = q(!1), [S, C] = q(!1), w = a.memberStatus ?? "all", [T, E] = q(!0), [D, O] = q(/* @__PURE__ */ new Map()), [k, A] = q(/* @__PURE__ */ new Set()), [te, j] = q(() => new Promise(() => {})), [ne] = q(() => Ze(e, t)), M = ke((e) => {
1635
1635
  O((t) => new Map(t).set(e.id, e));
1636
1636
  }, []), N = ke((e) => {
1637
1637
  A((t) => {
@@ -1640,49 +1640,49 @@ var et = ({ client: t, project: n }) => {
1640
1640
  });
1641
1641
  }, []), P = ke(() => {
1642
1642
  O(/* @__PURE__ */ new Map()), E(!0);
1643
- let e = s.memberStatus ?? "all", r = e === "all" ? void 0 : e;
1643
+ let n = a.memberStatus ?? "all", r = n === "all" ? void 0 : n;
1644
1644
  De(() => {
1645
- let i = e === "pending" || e === "accepted" ? (u.selectedFilters || []).filter((e) => e.name !== "visibility") : u.selectedFilters || [], a = Q(t, n, c.sortBy, c.sortDirection, f, {
1646
- ...Ye(i, u.filters),
1645
+ let i = n === "pending" || n === "accepted" ? (c.selectedFilters || []).filter((e) => e.name !== "visibility") : c.selectedFilters || [], a = Q(e, t, o.sortBy, o.sortDirection, d, {
1646
+ ...Ye(i, c.filters),
1647
1647
  member_status: r
1648
1648
  });
1649
1649
  a.catch(() => {}).finally(() => E(!1)), j(a);
1650
1650
  });
1651
1651
  }, [
1652
- t,
1652
+ e,
1653
+ o,
1654
+ d,
1653
1655
  c,
1654
- f,
1655
- u,
1656
- s.memberStatus
1656
+ a.memberStatus
1657
1657
  ]);
1658
1658
  Ae(() => {
1659
- let e = Je(s), r = s.sortBy || "created_at", i = s.sortDirection || "desc", a = s.search || "";
1660
- d((t) => ({
1661
- ...t,
1662
- selectedFilters: e
1663
- })), l((e) => ({
1659
+ let n = Je(a), r = a.sortBy || "created_at", i = a.sortDirection || "desc", o = a.search || "";
1660
+ l((e) => ({
1661
+ ...e,
1662
+ selectedFilters: n
1663
+ })), s((e) => ({
1664
1664
  ...e,
1665
1665
  sortBy: r,
1666
1666
  sortDirection: i
1667
- })), p(a), g([]), O(/* @__PURE__ */ new Map()), E(!0);
1668
- let o = s.memberStatus ?? "all", c = o === "all" ? void 0 : o;
1667
+ })), f(o), h([]), O(/* @__PURE__ */ new Map()), E(!0);
1668
+ let u = a.memberStatus ?? "all", d = u === "all" ? void 0 : u;
1669
1669
  De(() => {
1670
- let s = Q(t, n, r, i, a, {
1671
- ...Ye(o === "pending" || o === "accepted" ? (e || []).filter((e) => e.name !== "visibility") : e || [], u.filters),
1672
- member_status: c
1670
+ let a = Q(e, t, r, i, o, {
1671
+ ...Ye(u === "pending" || u === "accepted" ? (n || []).filter((e) => e.name !== "visibility") : n || [], c.filters),
1672
+ member_status: d
1673
1673
  });
1674
- s.catch(() => {}).finally(() => E(!1)), j(s);
1674
+ a.catch(() => {}).finally(() => E(!1)), j(a);
1675
1675
  });
1676
1676
  }, [
1677
- s.status,
1678
- s.visibility,
1679
- s.disk_format,
1680
- s.container_format,
1681
- s.protected,
1682
- s.sortBy,
1683
- s.sortDirection,
1684
- s.search,
1685
- s.memberStatus
1677
+ a.status,
1678
+ a.visibility,
1679
+ a.disk_format,
1680
+ a.container_format,
1681
+ a.protected,
1682
+ a.sortBy,
1683
+ a.sortDirection,
1684
+ a.search,
1685
+ a.memberStatus
1686
1686
  ]);
1687
1687
  let F = (e) => {
1688
1688
  let t = {
@@ -1690,7 +1690,7 @@ var et = ({ client: t, project: n }) => {
1690
1690
  sortBy: e.sortBy?.toString() || "created_at",
1691
1691
  sortDirection: e.sortDirection || "desc"
1692
1692
  };
1693
- l(t), o({
1693
+ s(t), i({
1694
1694
  search: (e) => ({
1695
1695
  ...e,
1696
1696
  sortBy: t.sortBy,
@@ -1700,7 +1700,7 @@ var et = ({ client: t, project: n }) => {
1700
1700
  replace: !0
1701
1701
  });
1702
1702
  }, R = (e) => {
1703
- d(e), o({
1703
+ l(e), i({
1704
1704
  search: (t) => Xe(e.selectedFilters || [], e.filters, {
1705
1705
  search: t.search,
1706
1706
  sortBy: t.sortBy,
@@ -1711,7 +1711,7 @@ var et = ({ client: t, project: n }) => {
1711
1711
  });
1712
1712
  }, B = (e) => {
1713
1713
  let t = typeof e == "string" ? e : "";
1714
- p(t), o({
1714
+ f(t), i({
1715
1715
  search: (e) => ({
1716
1716
  ...e,
1717
1717
  search: t || void 0,
@@ -1720,27 +1720,27 @@ var et = ({ client: t, project: n }) => {
1720
1720
  replace: !0
1721
1721
  });
1722
1722
  }, re = (e) => {
1723
- o({ search: (t) => ({
1723
+ i({ search: (t) => ({
1724
1724
  sortBy: t.sortBy,
1725
1725
  sortDirection: t.sortDirection,
1726
1726
  search: t.search,
1727
1727
  memberStatus: e === "all" ? void 0 : e
1728
1728
  }) });
1729
1729
  }, ie = ke((e) => {
1730
- o({ search: (t) => ({
1730
+ i({ search: (t) => ({
1731
1731
  ...t,
1732
1732
  page: e === 1 ? void 0 : e
1733
1733
  }) });
1734
- }, [o]);
1734
+ }, [i]);
1735
1735
  return /* @__PURE__ */ G("div", {
1736
1736
  className: "relative",
1737
1737
  children: /* @__PURE__ */ G(Ee, {
1738
- fallback: /* @__PURE__ */ K(e, {
1738
+ fallback: /* @__PURE__ */ K(x, {
1739
1739
  className: "fixed inset-0",
1740
1740
  distribution: "center",
1741
1741
  alignment: "center",
1742
1742
  direction: "vertical",
1743
- children: [/* @__PURE__ */ G(i, {
1743
+ children: [/* @__PURE__ */ G(u, {
1744
1744
  variant: "primary",
1745
1745
  size: "large",
1746
1746
  className: "mb-2"
@@ -1751,26 +1751,26 @@ var et = ({ client: t, project: n }) => {
1751
1751
  imageOverrides: D,
1752
1752
  deletedImageIds: k,
1753
1753
  permissionsPromise: ne,
1754
- searchTerm: f,
1754
+ searchTerm: d,
1755
1755
  setSearchTerm: B,
1756
- sortSettings: c,
1756
+ sortSettings: o,
1757
1757
  handleSortChange: F,
1758
- filterSettings: u,
1758
+ filterSettings: c,
1759
1759
  handleFilterChange: R,
1760
- selectedImages: h,
1761
- setSelectedImages: g,
1762
- createModalOpen: _,
1763
- setCreateModalOpen: v,
1764
- deleteAllModalOpen: y,
1765
- setDeleteAllModalOpen: b,
1766
- deactivateAllModalOpen: x,
1767
- setDeactivateAllModalOpen: ee,
1760
+ selectedImages: m,
1761
+ setSelectedImages: h,
1762
+ createModalOpen: g,
1763
+ setCreateModalOpen: _,
1764
+ deleteAllModalOpen: v,
1765
+ setDeleteAllModalOpen: ee,
1766
+ deactivateAllModalOpen: y,
1767
+ setDeactivateAllModalOpen: b,
1768
1768
  activateAllModalOpen: S,
1769
1769
  setActivateAllModalOpen: C,
1770
1770
  memberStatusView: w,
1771
1771
  setMemberStatusView: re,
1772
1772
  isFetching: T,
1773
- currentPage: m,
1773
+ currentPage: p,
1774
1774
  onPageChange: ie,
1775
1775
  onImageUpdated: M,
1776
1776
  onImageDeleted: N,
@@ -1794,4 +1794,4 @@ function tt() {
1794
1794
  //#endregion
1795
1795
  export { tt as component };
1796
1796
 
1797
- //# sourceMappingURL=images-DaaCUXMI.mjs.map
1797
+ //# sourceMappingURL=images-C19gCFSy.mjs.map