@cobaltcore-dev/aurora 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/client/App.d.ts +2 -1
  2. package/dist/client/AuroraApp.d.ts +25 -0
  3. package/dist/client/{AuthProvider-5TyZKZkx.mjs → AuthProvider-BS5OVv8n.mjs} +2 -2
  4. package/dist/client/AuthProvider-BS5OVv8n.mjs.map +1 -0
  5. package/dist/client/{ContentHeader-D64NtKvo.mjs → ContentHeader-BHMUzd9H.mjs} +16 -16
  6. package/dist/client/{ContentHeader-D64NtKvo.mjs.map → ContentHeader-BHMUzd9H.mjs.map} +1 -1
  7. package/dist/client/{DeleteFlavorModal-C2K43ABZ.mjs → DeleteFlavorModal-BP83t9zX.mjs} +283 -294
  8. package/dist/client/DeleteFlavorModal-BP83t9zX.mjs.map +1 -0
  9. package/dist/client/{FiltersInput-Bw8TFfwb.mjs → FiltersInput-B8CNBg1L.mjs} +23 -23
  10. package/dist/client/{FiltersInput-Bw8TFfwb.mjs.map → FiltersInput-B8CNBg1L.mjs.map} +1 -1
  11. package/dist/client/{FloatingIpActionModals-BfEDfYg9.mjs → FloatingIpActionModals-BraiJWBi.mjs} +48 -48
  12. package/dist/client/{FloatingIpActionModals-BfEDfYg9.mjs.map → FloatingIpActionModals-BraiJWBi.mjs.map} +1 -1
  13. package/dist/client/ImageToastNotifications-BXMHJaIH.mjs +1131 -0
  14. package/dist/client/ImageToastNotifications-BXMHJaIH.mjs.map +1 -0
  15. package/dist/client/{RouteError-B-NPGIv7.mjs → RouteError-hAF8_jbe.mjs} +2 -2
  16. package/dist/client/{RouteError-B-NPGIv7.mjs.map → RouteError-hAF8_jbe.mjs.map} +1 -1
  17. package/dist/client/{SortInput-DysAXpB3.mjs → SortInput-Cqs2poV3.mjs} +7 -7
  18. package/dist/client/{SortInput-DysAXpB3.mjs.map → SortInput-Cqs2poV3.mjs.map} +1 -1
  19. package/dist/client/{StatusError-DX-GvLjq.mjs → StatusError-C5KodQOq.mjs} +4 -4
  20. package/dist/client/{StatusError-DX-GvLjq.mjs.map → StatusError-C5KodQOq.mjs.map} +1 -1
  21. package/dist/client/{TwoColumnDescriptionList-B3xunXmz.mjs → TwoColumnDescriptionList-DiDx3PnH.mjs} +6 -6
  22. package/dist/client/{TwoColumnDescriptionList-B3xunXmz.mjs.map → TwoColumnDescriptionList-DiDx3PnH.mjs.map} +1 -1
  23. package/dist/client/{_auth-R5H2yKFf.mjs → _auth-DJ9wHZaj.mjs} +2 -2
  24. package/dist/client/{_auth-R5H2yKFf.mjs.map → _auth-DJ9wHZaj.mjs.map} +1 -1
  25. package/dist/client/{_flavorId-Zj7LNL-R.mjs → _flavorId-BN_qessZ.mjs} +2 -2
  26. package/dist/client/{_flavorId-Zj7LNL-R.mjs.map → _flavorId-BN_qessZ.mjs.map} +1 -1
  27. package/dist/client/{_flavorId-Dit5mM8I.mjs → _flavorId-CJjEB_Ao.mjs} +34 -34
  28. package/dist/client/{_flavorId-Dit5mM8I.mjs.map → _flavorId-CJjEB_Ao.mjs.map} +1 -1
  29. package/dist/client/{_floatingIpId-DCQQpNO-.mjs → _floatingIpId-CwDGHkWm.mjs} +2 -2
  30. package/dist/client/{_floatingIpId-DCQQpNO-.mjs.map → _floatingIpId-CwDGHkWm.mjs.map} +1 -1
  31. package/dist/client/{_floatingIpId-B0MCoqE3.mjs → _floatingIpId-foMIwbE4.mjs} +23 -23
  32. package/dist/client/{_floatingIpId-B0MCoqE3.mjs.map → _floatingIpId-foMIwbE4.mjs.map} +1 -1
  33. package/dist/client/_imageId-BtJ7GmYB.mjs +558 -0
  34. package/dist/client/{_imageId-CZYzBAVx.mjs.map → _imageId-BtJ7GmYB.mjs.map} +1 -1
  35. package/dist/client/{_projectId-DhSWowQo.mjs → _projectId-BmtCuzJu.mjs} +4 -4
  36. package/dist/client/{_projectId-DhSWowQo.mjs.map → _projectId-BmtCuzJu.mjs.map} +1 -1
  37. package/dist/client/_projectId-Byt3GQDW.mjs +99 -0
  38. package/dist/client/_projectId-Byt3GQDW.mjs.map +1 -0
  39. package/dist/client/_projectId-NYk1IN_a.mjs +291 -0
  40. package/dist/client/_projectId-NYk1IN_a.mjs.map +1 -0
  41. package/dist/client/{_projectId-D2pFfYIs.mjs → _projectId-QueiFczy.mjs} +3 -3
  42. package/dist/client/{_projectId-D2pFfYIs.mjs.map → _projectId-QueiFczy.mjs.map} +1 -1
  43. package/dist/client/{_securityGroupId-Mj8NJT2-.mjs → _securityGroupId-BcbkRhsN.mjs} +2 -2
  44. package/dist/client/{_securityGroupId-Mj8NJT2-.mjs.map → _securityGroupId-BcbkRhsN.mjs.map} +1 -1
  45. package/dist/client/{_securityGroupId-DZ4D4WwB.mjs → _securityGroupId-pPtJsCoe.mjs} +438 -442
  46. package/dist/client/{_securityGroupId-DZ4D4WwB.mjs.map → _securityGroupId-pPtJsCoe.mjs.map} +1 -1
  47. package/dist/client/_storageType-BmqrU06i.mjs +2202 -0
  48. package/dist/client/_storageType-BmqrU06i.mjs.map +1 -0
  49. package/dist/client/{about-WLyShNgE.mjs → about-_73VmpTB.mjs} +2 -2
  50. package/dist/client/{about-WLyShNgE.mjs.map → about-_73VmpTB.mjs.map} +1 -1
  51. package/dist/client/assets/{objectDownload.worker-BXFQIIU_.js.map → objectDownload.worker-CWWLPDyb.js.map} +1 -1
  52. package/dist/client/assets/{objectDownload.worker-ECvFtmOF.js.map → objectDownload.worker-kZlQuo3F.js.map} +1 -1
  53. package/dist/client/{aurora-IMO9HhqJ.mjs → aurora-EbwGRLLf.mjs} +2 -2
  54. package/dist/client/{aurora-IMO9HhqJ.mjs.map → aurora-EbwGRLLf.mjs.map} +1 -1
  55. package/dist/client/{build-DnD-T35u.mjs → build-C_4vRMCq.mjs} +2233 -2662
  56. package/dist/client/{build-DnD-T35u.mjs.map → build-C_4vRMCq.mjs.map} +1 -1
  57. package/dist/client/{flavors-Cp0LEGOH.mjs → flavors-CiHCYrtZ.mjs} +2 -2
  58. package/dist/client/{flavors-Cp0LEGOH.mjs.map → flavors-CiHCYrtZ.mjs.map} +1 -1
  59. package/dist/client/{flavors-CwMbDRHm2.mjs → flavors-DY-bDc8l.mjs} +164 -164
  60. package/dist/client/flavors-DY-bDc8l.mjs.map +1 -0
  61. package/dist/client/{floatingips-ICwo-rV_.mjs → floatingips-Ci4jHkaG.mjs} +177 -177
  62. package/dist/client/{floatingips-ICwo-rV_.mjs.map → floatingips-Ci4jHkaG.mjs.map} +1 -1
  63. package/dist/client/{hooks-CrriowRk.mjs → hooks-LutR2Yg3.mjs} +2 -2
  64. package/dist/client/{hooks-CrriowRk.mjs.map → hooks-LutR2Yg3.mjs.map} +1 -1
  65. package/dist/client/images-91U7tr9Y2.mjs +1976 -0
  66. package/dist/client/images-91U7tr9Y2.mjs.map +1 -0
  67. package/dist/client/{images-DWiM_72I.mjs → images-CS4kZQyu.mjs} +2 -2
  68. package/dist/client/{images-DWiM_72I.mjs.map → images-CS4kZQyu.mjs.map} +1 -1
  69. package/dist/client/index.d.ts +4 -1
  70. package/dist/client/index.js +444 -586
  71. package/dist/client/index.js.map +1 -1
  72. package/dist/client/{md-DNzcRhmz.mjs → md-kvaGCNAK.mjs} +4 -22
  73. package/dist/client/{md-DNzcRhmz.mjs.map → md-kvaGCNAK.mjs.map} +1 -1
  74. package/dist/client/{objects-DeK2WD5K.mjs → objects-C3azvW8m.mjs} +2019 -2023
  75. package/dist/client/{objects-DeK2WD5K.mjs.map → objects-C3azvW8m.mjs.map} +1 -1
  76. package/dist/client/{objects-DI1-tnKr.mjs → objects-CM265S6b.mjs} +2 -2
  77. package/dist/client/{objects-DI1-tnKr.mjs.map → objects-CM265S6b.mjs.map} +1 -1
  78. package/dist/client/{objects-D2MKUCxc.mjs → objects-EE9Cd1wI.mjs} +2 -2
  79. package/dist/client/{objects-D2MKUCxc.mjs.map → objects-EE9Cd1wI.mjs.map} +1 -1
  80. package/dist/client/{routeInfo-CdTRlSxv.mjs → routeInfo-DXqB2HCf.mjs} +3 -3
  81. package/dist/client/routeInfo-DXqB2HCf.mjs.map +1 -0
  82. package/dist/client/router.d.ts +2 -1
  83. package/dist/client/{routes-DOJr5onJ.mjs → routes-CBd8CCuM.mjs} +13 -13
  84. package/dist/client/{routes-DOJr5onJ.mjs.map → routes-CBd8CCuM.mjs.map} +1 -1
  85. package/dist/client/{routes-B05u5bk4.mjs → routes-CdDm-hhO.mjs} +2 -2
  86. package/dist/client/{routes-B05u5bk4.mjs.map → routes-CdDm-hhO.mjs.map} +1 -1
  87. package/dist/client/{securitygroups-Be2Qgmew.mjs → securitygroups-Bd_uV4S9.mjs} +198 -198
  88. package/dist/client/{securitygroups-Be2Qgmew.mjs.map → securitygroups-Bd_uV4S9.mjs.map} +1 -1
  89. package/dist/client/{securitygroups-_7SYN2jN.mjs → securitygroups-Byte-iSp.mjs} +2 -2
  90. package/dist/client/{securitygroups-_7SYN2jN.mjs.map → securitygroups-Byte-iSp.mjs.map} +1 -1
  91. package/dist/client/services-D1PbooD1.mjs +6 -0
  92. package/dist/client/services-D1PbooD1.mjs.map +1 -0
  93. package/dist/client/services-DEMVtFyn.mjs +9 -0
  94. package/dist/client/services-DEMVtFyn.mjs.map +1 -0
  95. package/dist/client/trpcClient.d.ts +18 -367
  96. package/dist/client/{useSecurityGroupPermissions-qPwm4mFt.mjs → useSecurityGroupPermissions-C29mzb3b.mjs} +15 -15
  97. package/dist/client/{useSecurityGroupPermissions-qPwm4mFt.mjs.map → useSecurityGroupPermissions-C29mzb3b.mjs.map} +1 -1
  98. package/dist/server/index.d.ts +43 -369
  99. package/dist/server/index.js +71 -276
  100. package/package.json +1 -3
  101. package/dist/client/AuthProvider-5TyZKZkx.mjs.map +0 -1
  102. package/dist/client/DeleteFlavorModal-C2K43ABZ.mjs.map +0 -1
  103. package/dist/client/DeletePcaModal-D9v8E0Ki.mjs +0 -92
  104. package/dist/client/DeletePcaModal-D9v8E0Ki.mjs.map +0 -1
  105. package/dist/client/DetailsInfo-h7rPJ4Jf.mjs +0 -61
  106. package/dist/client/DetailsInfo-h7rPJ4Jf.mjs.map +0 -1
  107. package/dist/client/ImageToastNotifications-C0Tluzq-.mjs +0 -1125
  108. package/dist/client/ImageToastNotifications-C0Tluzq-.mjs.map +0 -1
  109. package/dist/client/_imageId-CZYzBAVx.mjs +0 -558
  110. package/dist/client/_pcaId-CHRRsWmO.mjs +0 -605
  111. package/dist/client/_pcaId-CHRRsWmO.mjs.map +0 -1
  112. package/dist/client/_projectId-B8wWSxPu.mjs +0 -98
  113. package/dist/client/_projectId-B8wWSxPu.mjs.map +0 -1
  114. package/dist/client/_projectId-C5DUYIjt.mjs +0 -291
  115. package/dist/client/_projectId-C5DUYIjt.mjs.map +0 -1
  116. package/dist/client/_storageType-C-9bNkmZ.mjs +0 -2211
  117. package/dist/client/_storageType-C-9bNkmZ.mjs.map +0 -1
  118. package/dist/client/flavors-CwMbDRHm2.mjs.map +0 -1
  119. package/dist/client/images-DOGZmr3D.mjs +0 -1937
  120. package/dist/client/images-DOGZmr3D.mjs.map +0 -1
  121. package/dist/client/pca-BokFv4Gz.mjs +0 -239
  122. package/dist/client/pca-BokFv4Gz.mjs.map +0 -1
  123. package/dist/client/pca-D5jHAl0b.mjs +0 -26
  124. package/dist/client/pca-D5jHAl0b.mjs.map +0 -1
  125. package/dist/client/pcaAccess-Br4kVjLQ.mjs +0 -9
  126. package/dist/client/pcaAccess-Br4kVjLQ.mjs.map +0 -1
  127. package/dist/client/routeInfo-CdTRlSxv.mjs.map +0 -1
@@ -1,69 +1,69 @@
1
- import { C as e, E as t, G as n, I as r, M as i, P as a, S as o, Y as s, Z as c, _ as l, a as u, ct as d, dt as f, g as p, h as m, k as h, m as g, ot as _, rt as v, s as y, t as b, u as x, w as S } from "./build-DnD-T35u.mjs";
1
+ import { C as e, F as t, J as n, N as r, O as i, S as a, T as o, W as s, X as c, a as l, at as u, g as d, h as f, j as p, l as m, m as h, nt as g, o as _, p as v, st as y, t as b, ut as x, x as S } from "./build-C_4vRMCq.mjs";
2
2
  import { a as C } from "./trpcClient-D7gpR7YG.mjs";
3
- import { t as w } from "./securitygroups-_7SYN2jN.mjs";
3
+ import { t as w } from "./securitygroups-Byte-iSp.mjs";
4
4
  import { t as T } from "./useProjectId-DBc5lpoU.mjs";
5
- import { t as E } from "./SortInput-DysAXpB3.mjs";
6
- import "./hooks-CrriowRk.mjs";
7
- import { n as D, t as O } from "./FiltersInput-Bw8TFfwb.mjs";
8
- import { n as k, t as A } from "./useSecurityGroupPermissions-qPwm4mFt.mjs";
5
+ import { t as E } from "./SortInput-Cqs2poV3.mjs";
6
+ import "./hooks-LutR2Yg3.mjs";
7
+ import { n as D, t as O } from "./FiltersInput-B8CNBg1L.mjs";
8
+ import { n as k, t as A } from "./useSecurityGroupPermissions-C29mzb3b.mjs";
9
9
  import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
10
10
  import { useEffect as P, useRef as F, useState as I } from "react";
11
- import { useNavigate as L, useSearch as R } from "@tanstack/react-router";
12
- import { Trans as z, useLingui as B } from "@lingui/react";
11
+ import { useNavigate as ee, useSearch as L } from "@tanstack/react-router";
12
+ import { Trans as R, useLingui as z } from "@lingui/react";
13
13
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/-components/-modals/DeleteSecurityGroupDialog.tsx
14
- var V = ({ isOpen: e, onClose: t, securityGroup: n, onDelete: o, isDeleting: c = !1, error: l = null }) => {
15
- let { i18n: d, _: f } = B(), [p, h] = I(""), g = d._({ id: "HNlEFZ" }), _ = p.toLowerCase() === g.toLowerCase(), v = n.name || n.id, y = (e) => {
16
- e.preventDefault(), _ && !c && o(n.id);
14
+ var B = ({ isOpen: e, onClose: i, securityGroup: a, onDelete: o, isDeleting: s = !1, error: c = null }) => {
15
+ let { i18n: u, _: d } = z(), [f, m] = I(""), g = u._({ id: "HNlEFZ" }), _ = f.toLowerCase() === g.toLowerCase(), v = a.name || a.id, y = (e) => {
16
+ e.preventDefault(), _ && !s && o(a.id);
17
17
  }, b = () => {
18
- h(""), t();
18
+ m(""), i();
19
19
  };
20
- return /*#__PURE__*/ M(s, {
20
+ return /*#__PURE__*/ M(n, {
21
21
  open: e,
22
22
  onCancel: b,
23
23
  size: "small",
24
- title: d._({
24
+ title: u._({
25
25
  id: "Y+2SDm",
26
26
  values: { securityGroupName: v }
27
27
  }),
28
- modalFooter: /*#__PURE__*/ M(a, {
28
+ modalFooter: /*#__PURE__*/ M(r, {
29
29
  className: "flex justify-end",
30
- children: /*#__PURE__*/ N(i, { children: [/*#__PURE__*/ M(u, {
30
+ children: /*#__PURE__*/ N(p, { children: [/*#__PURE__*/ M(l, {
31
31
  variant: "default",
32
32
  onClick: b,
33
- disabled: c,
34
- children: /*#__PURE__*/ M(z, { id: "dEgA5A" })
35
- }), /*#__PURE__*/ M(u, {
33
+ disabled: s,
34
+ children: /*#__PURE__*/ M(R, { id: "dEgA5A" })
35
+ }), /*#__PURE__*/ M(l, {
36
36
  variant: "primary-danger",
37
37
  onClick: y,
38
- disabled: !_ || c,
38
+ disabled: !_ || s,
39
39
  "data-testid": "confirm-delete-button",
40
- children: c ? /*#__PURE__*/ M(z, { id: "EF2EU9" }) : /*#__PURE__*/ M(z, { id: "cnGeoo" })
40
+ children: s ? /*#__PURE__*/ M(R, { id: "EF2EU9" }) : /*#__PURE__*/ M(R, { id: "cnGeoo" })
41
41
  })] })
42
42
  }),
43
43
  children: /*#__PURE__*/ N("div", { children: [
44
- l && /*#__PURE__*/ M(r, {
44
+ c && /*#__PURE__*/ M(t, {
45
45
  dismissible: !1,
46
46
  variant: "error",
47
47
  className: "mt-4",
48
- children: l
48
+ children: c
49
49
  }),
50
- /*#__PURE__*/ M(z, { id: "Qb+14I" }),
50
+ /*#__PURE__*/ M(R, { id: "Qb+14I" }),
51
51
  /*#__PURE__*/ N("div", {
52
52
  className: "mt-4",
53
53
  children: [/*#__PURE__*/ M("p", {
54
54
  className: "mb-2 text-sm",
55
- children: /*#__PURE__*/ M(z, {
55
+ children: /*#__PURE__*/ M(R, {
56
56
  id: "hLp49h",
57
57
  values: { deleteWord: g },
58
58
  components: { 0: /*#__PURE__*/ M("strong", {}) }
59
59
  })
60
- }), /*#__PURE__*/ M(m, {
60
+ }), /*#__PURE__*/ M(h, {
61
61
  id: "confirmation",
62
62
  name: "confirmation",
63
- value: p,
64
- onChange: (e) => h(e.target.value),
63
+ value: f,
64
+ onChange: (e) => m(e.target.value),
65
65
  placeholder: g,
66
- disabled: c,
66
+ disabled: s,
67
67
  autoComplete: "off",
68
68
  "data-testid": "delete-confirmation-input"
69
69
  })]
@@ -73,20 +73,20 @@ var V = ({ isOpen: e, onClose: t, securityGroup: n, onDelete: o, isDeleting: c =
73
73
  };
74
74
  //#endregion
75
75
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/-components/SecurityGroupTableRow.tsx
76
- function ee({ securityGroup: e, permissions: n, onEdit: r, onDelete: i, onViewDetails: a, isReadOnly: s = !1, showSelectColumn: c = !1, isSelected: u = !1, onSelect: d }) {
77
- let { i18n: f, _: p } = B(), m = ({ value: e }) => /*#__PURE__*/ M("span", { children: e ? f._({ id: "l75CjT" }) : f._({ id: "1UzENP" }) }), g = () => {
76
+ function V({ securityGroup: e, permissions: t, onEdit: n, onDelete: r, onViewDetails: a, isReadOnly: s = !1, showSelectColumn: c = !1, isSelected: l = !1, onSelect: f }) {
77
+ let { i18n: p, _: m } = z(), h = ({ value: e }) => /*#__PURE__*/ M("span", { children: e ? p._({ id: "l75CjT" }) : p._({ id: "1UzENP" }) }), g = () => {
78
78
  a && a(e);
79
79
  };
80
- return /*#__PURE__*/ N(t, {
80
+ return /*#__PURE__*/ N(o, {
81
81
  "data-testid": `security-group-row-${e.id}`,
82
82
  onClick: g,
83
83
  className: "hover:bg-theme-background-lvl-2 cursor-pointer",
84
84
  children: [
85
85
  c && /*#__PURE__*/ M(b, {
86
86
  onClick: (e) => e.stopPropagation(),
87
- children: /*#__PURE__*/ M(_, {
88
- checked: u,
89
- onChange: () => d?.(e)
87
+ children: /*#__PURE__*/ M(u, {
88
+ checked: l,
89
+ onChange: () => f?.(e)
90
90
  })
91
91
  }),
92
92
  /*#__PURE__*/ M(b, { children: /*#__PURE__*/ N("div", { children: [/*#__PURE__*/ M("p", {
@@ -96,31 +96,31 @@ function ee({ securityGroup: e, permissions: n, onEdit: r, onDelete: i, onViewDe
96
96
  className: "text-theme-light text-xs",
97
97
  children: e.id
98
98
  })] }) }),
99
- /*#__PURE__*/ M(b, { children: e.description || f._({ id: "h47p9L" }) }),
100
- /*#__PURE__*/ N(b, { children: [/*#__PURE__*/ M(m, { value: e.shared }), e.shared && /*#__PURE__*/ N("p", { children: [
101
- /*#__PURE__*/ M(z, { id: "LtI9AS" }),
99
+ /*#__PURE__*/ M(b, { children: e.description || p._({ id: "h47p9L" }) }),
100
+ /*#__PURE__*/ N(b, { children: [/*#__PURE__*/ M(h, { value: e.shared }), e.shared && /*#__PURE__*/ N("p", { children: [
101
+ /*#__PURE__*/ M(R, { id: "LtI9AS" }),
102
102
  ": ",
103
103
  /*#__PURE__*/ M("span", {
104
104
  className: "text-theme-light text-xs",
105
105
  children: e.project_id
106
106
  })
107
107
  ] })] }),
108
- /*#__PURE__*/ M(b, { children: /*#__PURE__*/ M(m, { value: e.stateful }) }),
108
+ /*#__PURE__*/ M(b, { children: /*#__PURE__*/ M(h, { value: e.stateful }) }),
109
109
  /*#__PURE__*/ M(b, {
110
110
  onClick: (e) => e.stopPropagation(),
111
111
  className: "items-end justify-end pr-0",
112
- children: /*#__PURE__*/ M(h, { children: /*#__PURE__*/ N(l, { children: [
113
- /*#__PURE__*/ M(o, {
114
- label: f._({ id: "v0hPHE" }),
112
+ children: /*#__PURE__*/ M(i, { children: /*#__PURE__*/ N(d, { children: [
113
+ /*#__PURE__*/ M(S, {
114
+ label: p._({ id: "v0hPHE" }),
115
115
  onClick: () => g()
116
116
  }),
117
- n.canUpdate && !s && /*#__PURE__*/ M(o, {
118
- label: f._({ id: "ePK91l" }),
119
- onClick: () => r(e)
117
+ t.canUpdate && !s && /*#__PURE__*/ M(S, {
118
+ label: p._({ id: "ePK91l" }),
119
+ onClick: () => n(e)
120
120
  }),
121
- n.canDelete && !s && /*#__PURE__*/ M(o, {
122
- label: f._({ id: "cnGeoo" }),
123
- onClick: () => i(e)
121
+ t.canDelete && !s && /*#__PURE__*/ M(S, {
122
+ label: p._({ id: "cnGeoo" }),
123
+ onClick: () => r(e)
124
124
  })
125
125
  ] }) })
126
126
  })
@@ -129,9 +129,9 @@ function ee({ securityGroup: e, permissions: n, onEdit: r, onDelete: i, onViewDe
129
129
  }
130
130
  //#endregion
131
131
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/-components/SecurityGroupListContainer.tsx
132
- var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s, onDeleteSecurityGroup: l, isDeletingSecurityGroup: u = !1, deleteError: d = null, onUpdateSecurityGroup: f, isUpdatingSecurityGroup: p = !1, updateError: m = null, currentProjectId: h, hasAnyBulkAction: g = !1, onClearUpdateError: _ }) => {
133
- let { i18n: v, _: b } = B(), x = L(), S = T(), [C, w] = I(null), [E, D] = I(!1), [O, A] = I(!1), R = F(!1), H = F(!1), U = (e) => {
134
- C && C.id !== e.id && _ && _(), w(e), D(!0);
132
+ var H = ({ securityGroups: e, isLoading: t, isError: n, error: r, permissions: i, onDeleteSecurityGroup: l, isDeletingSecurityGroup: u = !1, deleteError: d = null, onUpdateSecurityGroup: f, isUpdatingSecurityGroup: p = !1, updateError: m = null, currentProjectId: h, hasAnyBulkAction: g = !1, onClearUpdateError: v }) => {
133
+ let { i18n: y, _: b } = z(), x = ee(), S = T(), [C, w] = I(null), [E, D] = I(!1), [O, A] = I(!1), L = F(!1), H = F(!1), U = (e) => {
134
+ C && C.id !== e.id && v && v(), w(e), D(!0);
135
135
  }, W = (e) => {
136
136
  w(e), A(!0);
137
137
  }, G = (e) => {
@@ -148,7 +148,7 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
148
148
  w(null), A(!1);
149
149
  };
150
150
  return P(() => {
151
- R.current && !u && O && !d && q(), R.current = u;
151
+ L.current && !u && O && !d && q(), L.current = u;
152
152
  }, [
153
153
  u,
154
154
  d,
@@ -159,35 +159,35 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
159
159
  p,
160
160
  m,
161
161
  E
162
- ]), i ? /*#__PURE__*/ N(c, {
162
+ ]), t ? /*#__PURE__*/ N(c, {
163
163
  className: "py-8",
164
164
  distribution: "center",
165
165
  alignment: "center",
166
166
  direction: "vertical",
167
- children: [/*#__PURE__*/ M(n, {
167
+ children: [/*#__PURE__*/ M(s, {
168
168
  variant: "primary",
169
169
  size: "large",
170
170
  className: "mb-2"
171
- }), /*#__PURE__*/ M(z, { id: "Z3FXyt" })]
172
- }) : a ? /*#__PURE__*/ M(c, {
171
+ }), /*#__PURE__*/ M(R, { id: "Z3FXyt" })]
172
+ }) : n ? /*#__PURE__*/ M(c, {
173
173
  className: "py-8",
174
174
  distribution: "center",
175
175
  alignment: "center",
176
176
  direction: "vertical",
177
- children: o?.message ?? v._({ id: "Wca9WC" })
178
- }) : r.length === 0 ? /*#__PURE__*/ M(z, { id: "SfW/3r" }) : /*#__PURE__*/ N(j, { children: [/*#__PURE__*/ N(y, {
177
+ children: r?.message ?? y._({ id: "Wca9WC" })
178
+ }) : e.length === 0 ? /*#__PURE__*/ M(R, { id: "SfW/3r" }) : /*#__PURE__*/ N(j, { children: [/*#__PURE__*/ N(_, {
179
179
  columns: g ? 6 : 5,
180
- children: [/*#__PURE__*/ N(t, { children: [g && /*#__PURE__*/ M(e, {}), [
181
- v._({ id: "6YtxFj" }),
182
- v._({ id: "Nu4oKW" }),
183
- v._({ id: "0Gd0NU" }),
184
- v._({ id: "Jim5X9" }),
180
+ children: [/*#__PURE__*/ N(o, { children: [g && /*#__PURE__*/ M(a, {}), [
181
+ y._({ id: "6YtxFj" }),
182
+ y._({ id: "Nu4oKW" }),
183
+ y._({ id: "0Gd0NU" }),
184
+ y._({ id: "Jim5X9" }),
185
185
  ""
186
- ].map((t) => /*#__PURE__*/ M(e, { children: t }, t))] }), r.map((e) => {
186
+ ].map((e) => /*#__PURE__*/ M(a, { children: e }, e))] }), e.map((e) => {
187
187
  let t = !!(h && e.project_id && e.project_id !== h);
188
- return /*#__PURE__*/ M(ee, {
188
+ return /*#__PURE__*/ M(V, {
189
189
  securityGroup: e,
190
- permissions: s,
190
+ permissions: i,
191
191
  onEdit: U,
192
192
  onDelete: W,
193
193
  onViewDetails: G,
@@ -204,7 +204,7 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
204
204
  onUpdate: (e, t) => f ? f(e, t) : Promise.resolve(),
205
205
  isLoading: p,
206
206
  error: m
207
- }), /*#__PURE__*/ M(V, {
207
+ }), /*#__PURE__*/ M(B, {
208
208
  securityGroup: C,
209
209
  isOpen: O,
210
210
  onClose: q,
@@ -218,106 +218,106 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
218
218
  name: "",
219
219
  description: "",
220
220
  stateful: !0
221
- }, W = ({ isOpen: e, onClose: t, onCreate: o, isLoading: c = !1, error: l = null }) => {
222
- let { i18n: h, _: v } = B(), [y, b] = I({ ...U }), [x, S] = I({}), C = (e) => {
221
+ }, W = ({ isOpen: e, onClose: i, onCreate: a, isLoading: o = !1, error: c = null }) => {
222
+ let { i18n: d, _: m } = z(), [g, _] = I({ ...U }), [b, S] = I({}), C = (e) => {
223
223
  let { name: t, value: n, type: r } = e.target, i = e.target.checked;
224
- b((e) => ({
224
+ _((e) => ({
225
225
  ...e,
226
226
  [t]: r === "checkbox" ? i : n
227
- })), x[t] && S((e) => {
227
+ })), b[t] && S((e) => {
228
228
  let n = { ...e };
229
229
  return delete n[t], n;
230
230
  });
231
231
  }, w = () => {
232
232
  let e = {};
233
- return (!y.name || y.name.trim() === "") && (e.name = h._({ id: "lN/Z9n" })), S(e), Object.keys(e).length === 0;
233
+ return (!g.name || g.name.trim() === "") && (e.name = d._({ id: "lN/Z9n" })), S(e), Object.keys(e).length === 0;
234
234
  }, T = async (e) => {
235
- e.preventDefault(), w() && (await o({
236
- name: y.name.trim(),
237
- description: y.description.trim() || void 0,
238
- stateful: y.stateful
235
+ e.preventDefault(), w() && (await a({
236
+ name: g.name.trim(),
237
+ description: g.description.trim() || void 0,
238
+ stateful: g.stateful
239
239
  }), E());
240
240
  }, E = () => {
241
- b({ ...U }), S({}), t();
241
+ _({ ...U }), S({}), i();
242
242
  };
243
- return /*#__PURE__*/ N(s, {
243
+ return /*#__PURE__*/ N(n, {
244
244
  open: e,
245
245
  onCancel: E,
246
246
  size: "large",
247
- title: h._({ id: "YjAOtb" }),
248
- modalFooter: /*#__PURE__*/ M(a, {
247
+ title: d._({ id: "YjAOtb" }),
248
+ modalFooter: /*#__PURE__*/ M(r, {
249
249
  className: "flex justify-end",
250
- children: /*#__PURE__*/ N(i, { children: [/*#__PURE__*/ M(u, {
250
+ children: /*#__PURE__*/ N(p, { children: [/*#__PURE__*/ M(l, {
251
251
  variant: "default",
252
252
  onClick: E,
253
- disabled: c,
254
- children: /*#__PURE__*/ M(z, { id: "dEgA5A" })
255
- }), /*#__PURE__*/ M(u, {
253
+ disabled: o,
254
+ children: /*#__PURE__*/ M(R, { id: "dEgA5A" })
255
+ }), /*#__PURE__*/ M(l, {
256
256
  variant: "primary",
257
257
  onClick: (e) => {
258
258
  T(e);
259
259
  },
260
- disabled: c,
260
+ disabled: o,
261
261
  "data-testid": "create-security-group-button",
262
- children: c ? /*#__PURE__*/ M(n, { size: "small" }) : /*#__PURE__*/ M(z, { id: "YjAOtb" })
262
+ children: o ? /*#__PURE__*/ M(s, { size: "small" }) : /*#__PURE__*/ M(R, { id: "YjAOtb" })
263
263
  })] })
264
264
  }),
265
265
  children: [
266
- l && /*#__PURE__*/ M(r, {
266
+ c && /*#__PURE__*/ M(t, {
267
267
  dismissible: !1,
268
268
  variant: "error",
269
269
  className: "mb-4",
270
- children: l
270
+ children: c
271
271
  }),
272
- c && /*#__PURE__*/ N("div", {
272
+ o && /*#__PURE__*/ N("div", {
273
273
  className: "mb-4 flex items-center justify-center gap-2",
274
- children: [/*#__PURE__*/ M(n, { variant: "primary" }), /*#__PURE__*/ M("span", {
274
+ children: [/*#__PURE__*/ M(s, { variant: "primary" }), /*#__PURE__*/ M("span", {
275
275
  className: "text-theme-high text-sm",
276
- children: /*#__PURE__*/ M(z, { id: "Km4AGG" })
276
+ children: /*#__PURE__*/ M(R, { id: "Km4AGG" })
277
277
  })]
278
278
  }),
279
- !c && /*#__PURE__*/ M(f, {
279
+ !o && /*#__PURE__*/ M(x, {
280
280
  className: "mb-6",
281
- children: /*#__PURE__*/ N(g, {
281
+ children: /*#__PURE__*/ N(v, {
282
282
  className: "mb-6",
283
283
  children: [
284
- /*#__PURE__*/ M(p, {
284
+ /*#__PURE__*/ M(f, {
285
285
  className: "mb-6",
286
- children: /*#__PURE__*/ M(m, {
286
+ children: /*#__PURE__*/ M(h, {
287
287
  id: "name",
288
288
  name: "name",
289
- label: h._({ id: "6YtxFj" }),
290
- value: y.name,
289
+ label: d._({ id: "6YtxFj" }),
290
+ value: g.name,
291
291
  onChange: C,
292
292
  required: !0,
293
- errortext: x.name,
294
- placeholder: h._({ id: "Ac6dy9" }),
295
- disabled: c
293
+ errortext: b.name,
294
+ placeholder: d._({ id: "Ac6dy9" }),
295
+ disabled: o
296
296
  })
297
297
  }),
298
- /*#__PURE__*/ M(p, {
298
+ /*#__PURE__*/ M(f, {
299
299
  className: "mb-6",
300
- children: /*#__PURE__*/ M(d, {
300
+ children: /*#__PURE__*/ M(y, {
301
301
  id: "description",
302
302
  name: "description",
303
- label: h._({ id: "Nu4oKW" }),
304
- value: y.description,
303
+ label: d._({ id: "Nu4oKW" }),
304
+ value: g.description,
305
305
  onChange: C,
306
- placeholder: h._({ id: "Nu4oKW" }),
307
- disabled: c,
306
+ placeholder: d._({ id: "Nu4oKW" }),
307
+ disabled: o,
308
308
  rows: 3
309
309
  })
310
310
  }),
311
- /*#__PURE__*/ M(p, {
311
+ /*#__PURE__*/ M(f, {
312
312
  className: "mb-0",
313
- children: /*#__PURE__*/ M(_, {
313
+ children: /*#__PURE__*/ M(u, {
314
314
  id: "stateful",
315
315
  name: "stateful",
316
- label: h._({ id: "Jim5X9" }),
317
- checked: y.stateful,
316
+ label: d._({ id: "Jim5X9" }),
317
+ checked: g.stateful,
318
318
  onChange: C,
319
- disabled: c,
320
- helptext: h._({ id: "4cQTyf" })
319
+ disabled: o,
320
+ helptext: d._({ id: "4cQTyf" })
321
321
  })
322
322
  })
323
323
  ]
@@ -349,99 +349,99 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
349
349
  return Object.entries(i).forEach(([e, n]) => {
350
350
  t.find((t) => t.filterName === e)?.supportsMultiValue && n.length > 1 ? r[e] = `in:${n.join(",")}` : r[e] = n[0];
351
351
  }), r;
352
- }, J = ({ project: e }) => {
353
- let { i18n: t, _: n } = B(), r = L(), i = R({ strict: !1 }), [a, o] = I({
352
+ }, J = ({ project: t }) => {
353
+ let { i18n: n, _: r } = z(), i = ee(), a = L({ strict: !1 }), [o, s] = I({
354
354
  options: [{
355
- label: t._({ id: "6YtxFj" }),
355
+ label: n._({ id: "6YtxFj" }),
356
356
  value: "name"
357
357
  }, {
358
- label: t._({ id: "podzPY" }),
358
+ label: n._({ id: "podzPY" }),
359
359
  value: "project_id"
360
360
  }],
361
- sortBy: i.sortBy || "name",
362
- sortDirection: i.sortDirection || "asc"
363
- }), [s, l] = I({
361
+ sortBy: a.sortBy || "name",
362
+ sortDirection: a.sortDirection || "asc"
363
+ }), [u, d] = I({
364
364
  filters: [{
365
- displayName: t._({ id: "0Gd0NU" }),
365
+ displayName: n._({ id: "0Gd0NU" }),
366
366
  filterName: "shared",
367
367
  values: ["true", "false"],
368
368
  supportsMultiValue: !1
369
369
  }],
370
- selectedFilters: G(i)
371
- }), [d, f] = I(i.search || ""), [p, m] = I(!1), [h, g] = I(null), [_, v] = I(null), [y, b] = I(null), w = C.useUtils();
370
+ selectedFilters: G(a)
371
+ }), [f, p] = I(a.search || ""), [h, g] = I(!1), [_, v] = I(null), [y, b] = I(null), [x, S] = I(null), w = C.useUtils();
372
372
  P(() => {
373
- o((e) => ({
373
+ s((e) => ({
374
374
  ...e,
375
- sortBy: i.sortBy || "name",
376
- sortDirection: i.sortDirection || "asc"
377
- })), l((e) => ({
375
+ sortBy: a.sortBy || "name",
376
+ sortDirection: a.sortDirection || "asc"
377
+ })), d((e) => ({
378
378
  ...e,
379
- selectedFilters: G(i)
380
- })), f(i.search || "");
379
+ selectedFilters: G(a)
380
+ })), p(a.search || "");
381
381
  }, [
382
- i.sortBy,
383
- i.sortDirection,
384
- i.search,
385
- i.shared
382
+ a.sortBy,
383
+ a.sortDirection,
384
+ a.search,
385
+ a.shared
386
386
  ]);
387
- let T = G(i), k = i.sortBy || "name", F = i.sortDirection || "asc", V = i.search || "", { data: ee, isLoading: U, isError: J, error: Y } = C.network.securityGroup.list.useQuery({
388
- project_id: e || "",
387
+ let T = G(a), k = a.sortBy || "name", F = a.sortDirection || "asc", B = a.search || "", { data: V, isLoading: U, isError: J, error: Y } = C.network.securityGroup.list.useQuery({
388
+ project_id: t || "",
389
389
  sort_key: k,
390
390
  sort_dir: F,
391
- ...K(T, s.filters),
392
- ...V ? { searchTerm: V } : {}
393
- }, { refetchOnWindowFocus: !1 }), X = ee || [], ne = J && Y?.data?.code === "FORBIDDEN" ? t._({ id: "MdfAJn" }) : null, { permissions: Z } = A(e), Q = C.network.securityGroup.create.useMutation({
394
- onSuccess: (t) => {
395
- w.network.securityGroup.list.invalidate(), w.network.securityGroup.getById.invalidate(), v(null), r({
391
+ ...K(T, u.filters),
392
+ ...B ? { searchTerm: B } : {}
393
+ }, { refetchOnWindowFocus: !1 }), X = V || [], ne = J && Y?.data?.code === "FORBIDDEN" ? n._({ id: "MdfAJn" }) : null, { permissions: Z } = A(t), Q = C.network.securityGroup.create.useMutation({
394
+ onSuccess: (e) => {
395
+ w.network.securityGroup.list.invalidate(), w.network.securityGroup.getById.invalidate(), b(null), i({
396
396
  to: "/projects/$projectId/network/securitygroups/$securityGroupId",
397
397
  params: {
398
- projectId: e,
399
- securityGroupId: t.id
398
+ projectId: t,
399
+ securityGroupId: e.id
400
400
  }
401
401
  });
402
402
  },
403
403
  onError: (e) => {
404
- v(e.message || t._({ id: "o6M6l0" }));
404
+ b(e.message || n._({ id: "o6M6l0" }));
405
405
  }
406
406
  }), re = C.network.securityGroup.deleteById.useMutation({
407
407
  onSuccess: () => {
408
- w.network.securityGroup.list.invalidate(), w.network.securityGroup.getById.invalidate(), g(null);
408
+ w.network.securityGroup.list.invalidate(), w.network.securityGroup.getById.invalidate(), v(null);
409
409
  },
410
410
  onError: (e) => {
411
- g(e.message || t._({ id: "d0pLfy" }));
411
+ v(e.message || n._({ id: "d0pLfy" }));
412
412
  }
413
413
  }), ie = C.network.securityGroup.update.useMutation({
414
414
  onSuccess: () => {
415
- w.network.securityGroup.list.invalidate(), w.network.securityGroup.getById.invalidate(), b(null);
415
+ w.network.securityGroup.list.invalidate(), w.network.securityGroup.getById.invalidate(), S(null);
416
416
  },
417
417
  onError: (e) => {
418
- b(e.message || t._({ id: "jPxavx" }));
418
+ S(e.message || n._({ id: "jPxavx" }));
419
419
  }
420
- }), ae = async (t) => {
421
- v(null), await Q.mutateAsync({
422
- project_id: e,
423
- ...t
420
+ }), ae = async (e) => {
421
+ b(null), await Q.mutateAsync({
422
+ project_id: t,
423
+ ...e
424
424
  });
425
- }, oe = (t) => {
426
- g(null), re.mutate({
427
- project_id: e,
428
- securityGroupId: t
425
+ }, oe = (e) => {
426
+ v(null), re.mutate({
427
+ project_id: t,
428
+ securityGroupId: e
429
429
  });
430
- }, se = async (t, n) => {
431
- b(null), await ie.mutateAsync({
432
- project_id: e,
433
- securityGroupId: t,
430
+ }, se = async (e, n) => {
431
+ S(null), await ie.mutateAsync({
432
+ project_id: t,
433
+ securityGroupId: e,
434
434
  ...n
435
435
  });
436
436
  }, ce = () => {
437
- b(null);
437
+ S(null);
438
438
  }, le = (e) => {
439
439
  let t = {
440
440
  options: e.options,
441
441
  sortBy: e.sortBy?.toString() || "name",
442
442
  sortDirection: e.sortDirection || "asc"
443
443
  };
444
- o(t), r({
444
+ s(t), i({
445
445
  search: (e) => ({
446
446
  ...e,
447
447
  sortBy: t.sortBy,
@@ -450,7 +450,7 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
450
450
  replace: !0
451
451
  });
452
452
  }, $ = (e) => {
453
- l(e), r({
453
+ d(e), i({
454
454
  search: (t) => te(e.selectedFilters || [], e.filters, {
455
455
  search: t.search,
456
456
  sortBy: t.sortBy,
@@ -460,7 +460,7 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
460
460
  });
461
461
  }, ue = (e) => {
462
462
  let t = typeof e == "string" ? e : "";
463
- f(t), r({
463
+ p(t), i({
464
464
  search: (e) => ({
465
465
  ...e,
466
466
  search: t || void 0
@@ -473,13 +473,13 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
473
473
  distribution: "center",
474
474
  alignment: "center",
475
475
  direction: "vertical",
476
- children: /*#__PURE__*/ M(z, { id: "Z3FXyt" })
476
+ children: /*#__PURE__*/ M(R, { id: "Z3FXyt" })
477
477
  }) : J && !X.length ? /*#__PURE__*/ M(c, {
478
478
  className: "py-8",
479
479
  distribution: "center",
480
480
  alignment: "center",
481
481
  direction: "vertical",
482
- children: ne || t._({ id: "Wca9WC" })
482
+ children: ne || n._({ id: "Wca9WC" })
483
483
  }) : /*#__PURE__*/ N(j, { children: [
484
484
  /*#__PURE__*/ M(c, {
485
485
  distribution: "end",
@@ -489,67 +489,67 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
489
489
  children: /*#__PURE__*/ N(c, {
490
490
  gap: "2",
491
491
  children: [/*#__PURE__*/ M(E, {
492
- options: a.options,
493
- sortBy: a.sortBy,
494
- sortDirection: a.sortDirection ?? "asc",
492
+ options: o.options,
493
+ sortBy: o.sortBy,
494
+ sortDirection: o.sortDirection ?? "asc",
495
495
  selectClassName: "min-w-40",
496
496
  onSortByChange: (e) => le({
497
- ...a,
497
+ ...o,
498
498
  sortBy: e,
499
- sortDirection: a.sortDirection
499
+ sortDirection: o.sortDirection
500
500
  }),
501
501
  onSortDirectionChange: (e) => le({
502
- ...a,
502
+ ...o,
503
503
  sortDirection: e
504
504
  })
505
- }), Z.canCreate && /*#__PURE__*/ M(u, {
506
- onClick: () => m(!0),
505
+ }), Z.canCreate && /*#__PURE__*/ M(l, {
506
+ onClick: () => g(!0),
507
507
  variant: "primary",
508
508
  className: "whitespace-nowrap",
509
- children: /*#__PURE__*/ M(z, { id: "YjAOtb" })
509
+ children: /*#__PURE__*/ M(R, { id: "YjAOtb" })
510
510
  })]
511
511
  })
512
512
  }),
513
- /*#__PURE__*/ M(x, { children: /*#__PURE__*/ N(c, {
513
+ /*#__PURE__*/ M(m, { children: /*#__PURE__*/ N(c, {
514
514
  direction: "vertical",
515
515
  gap: "2",
516
516
  children: [/*#__PURE__*/ N(c, {
517
517
  distribution: "between",
518
518
  alignment: "center",
519
519
  children: [/*#__PURE__*/ M(O, {
520
- filters: s.filters,
520
+ filters: u.filters,
521
521
  selectClassName: "sm:min-w-40",
522
522
  comboboxClassName: "sm:min-w-40",
523
523
  onChange: (e) => {
524
- let t = q(s.selectedFilters || [], e, s.filters);
525
- t !== (s.selectedFilters || []) && $({
526
- ...s,
524
+ let t = q(u.selectedFilters || [], e, u.filters);
525
+ t !== (u.selectedFilters || []) && $({
526
+ ...u,
527
527
  selectedFilters: t
528
528
  });
529
529
  }
530
- }), /*#__PURE__*/ M(S, {
531
- placeholder: t._({ id: "rp7Ili" }),
530
+ }), /*#__PURE__*/ M(e, {
531
+ placeholder: n._({ id: "rp7Ili" }),
532
532
  "data-testid": "searchbar",
533
- value: d,
533
+ value: f,
534
534
  onInput: (e) => {
535
535
  let t = e.currentTarget.value;
536
- f(t);
536
+ p(t);
537
537
  },
538
538
  onSearch: (e) => {
539
539
  ue(typeof e == "string" ? e : "");
540
540
  },
541
541
  onClear: () => {
542
- f(""), ue("");
542
+ p(""), ue("");
543
543
  }
544
544
  })]
545
- }), s.selectedFilters && s.selectedFilters.length > 0 && /*#__PURE__*/ M(D, {
546
- selectedFilters: s.selectedFilters,
545
+ }), u.selectedFilters && u.selectedFilters.length > 0 && /*#__PURE__*/ M(D, {
546
+ selectedFilters: u.selectedFilters,
547
547
  onDelete: (e) => $({
548
- ...s,
549
- selectedFilters: (s.selectedFilters || []).filter((t) => t.name !== e.name || t.value !== e.value)
548
+ ...u,
549
+ selectedFilters: (u.selectedFilters || []).filter((t) => t.name !== e.name || t.value !== e.value)
550
550
  }),
551
551
  onClear: () => $({
552
- ...s,
552
+ ...u,
553
553
  selectedFilters: []
554
554
  })
555
555
  })]
@@ -560,36 +560,36 @@ var H = ({ securityGroups: r, isLoading: i, isError: a, error: o, permissions: s
560
560
  isError: !1,
561
561
  error: null,
562
562
  permissions: Z,
563
- onCreateClick: () => m(!0),
563
+ onCreateClick: () => g(!0),
564
564
  onDeleteSecurityGroup: oe,
565
565
  isDeletingSecurityGroup: re.isPending,
566
- deleteError: h,
566
+ deleteError: _,
567
567
  onUpdateSecurityGroup: se,
568
568
  isUpdatingSecurityGroup: ie.isPending,
569
- updateError: y,
570
- currentProjectId: e,
569
+ updateError: x,
570
+ currentProjectId: t,
571
571
  hasAnyBulkAction: !1,
572
572
  onClearUpdateError: ce
573
573
  }),
574
574
  /*#__PURE__*/ M(W, {
575
- isOpen: p,
575
+ isOpen: h,
576
576
  onClose: () => {
577
- v(null), m(!1);
577
+ b(null), g(!1);
578
578
  },
579
579
  onCreate: ae,
580
580
  isLoading: Q.isPending,
581
- error: _
581
+ error: y
582
582
  })
583
583
  ] });
584
584
  };
585
585
  //#endregion
586
586
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/index.tsx?tsr-split=component
587
587
  function Y() {
588
- let { i18n: e, _: t } = B(), { projectId: n } = w.useParams(), { trpcClient: r } = w.useRouteContext();
588
+ let { i18n: e, _: t } = z(), { projectId: n } = w.useParams(), { trpcClient: r } = w.useRouteContext();
589
589
  if (!r) throw Error("trpcClient is not available in route context");
590
- return /*#__PURE__*/ N(j, { children: [/*#__PURE__*/ M(v, { children: e._({ id: "4opp4r" }) }), /*#__PURE__*/ M(J, { project: n })] });
590
+ return /*#__PURE__*/ N(j, { children: [/*#__PURE__*/ M(g, { children: e._({ id: "4opp4r" }) }), /*#__PURE__*/ M(J, { project: n })] });
591
591
  }
592
592
  //#endregion
593
593
  export { Y as component };
594
594
 
595
- //# sourceMappingURL=securitygroups-Be2Qgmew.mjs.map
595
+ //# sourceMappingURL=securitygroups-Bd_uV4S9.mjs.map