@cobaltcore-dev/aurora 0.23.1 → 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 (188) hide show
  1. package/dist/client/App.d.ts +3 -2
  2. package/dist/client/AuroraApp.d.ts +25 -0
  3. package/dist/client/{AuthProvider-CQ6Yppoh.mjs → AuthProvider-BS5OVv8n.mjs} +4 -4
  4. package/dist/client/AuthProvider-BS5OVv8n.mjs.map +1 -0
  5. package/dist/client/{ContentHeader-9KZdhOoA.mjs → ContentHeader-BHMUzd9H.mjs} +27 -26
  6. package/dist/client/ContentHeader-BHMUzd9H.mjs.map +1 -0
  7. package/dist/client/DeleteFlavorModal-BP83t9zX.mjs +721 -0
  8. package/dist/client/DeleteFlavorModal-BP83t9zX.mjs.map +1 -0
  9. package/dist/client/FiltersInput-B8CNBg1L.mjs +82 -0
  10. package/dist/client/FiltersInput-B8CNBg1L.mjs.map +1 -0
  11. package/dist/client/{FloatingIpActionModals-BcceUHcg.mjs → FloatingIpActionModals-BraiJWBi.mjs} +66 -66
  12. package/dist/client/{FloatingIpActionModals-BcceUHcg.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-Rm08PcxN.mjs → RouteError-hAF8_jbe.mjs} +2 -2
  16. package/dist/client/{RouteError-Rm08PcxN.mjs.map → RouteError-hAF8_jbe.mjs.map} +1 -1
  17. package/dist/client/Slot-CWb612-_.mjs.map +1 -1
  18. package/dist/client/{SortInput-D_q_jDfe.mjs → SortInput-Cqs2poV3.mjs} +9 -9
  19. package/dist/client/{SortInput-D_q_jDfe.mjs.map → SortInput-Cqs2poV3.mjs.map} +1 -1
  20. package/dist/client/{StatusError-2ZU1gFpu.mjs → StatusError-C5KodQOq.mjs} +7 -7
  21. package/dist/client/{StatusError-2ZU1gFpu.mjs.map → StatusError-C5KodQOq.mjs.map} +1 -1
  22. package/dist/client/TwoColumnDescriptionList-DiDx3PnH.mjs +22 -0
  23. package/dist/client/TwoColumnDescriptionList-DiDx3PnH.mjs.map +1 -0
  24. package/dist/client/{_auth-D5_QNUos.mjs → _auth-DJ9wHZaj.mjs} +2 -2
  25. package/dist/client/_auth-DJ9wHZaj.mjs.map +1 -0
  26. package/dist/client/{_flavorId-CFmkmg2Y.mjs → _flavorId-BN_qessZ.mjs} +4 -4
  27. package/dist/client/{_flavorId-CFmkmg2Y.mjs.map → _flavorId-BN_qessZ.mjs.map} +1 -1
  28. package/dist/client/_flavorId-CJjEB_Ao.mjs +210 -0
  29. package/dist/client/_flavorId-CJjEB_Ao.mjs.map +1 -0
  30. package/dist/client/{_floatingIpId-Dzh6_JCI.mjs → _floatingIpId-CwDGHkWm.mjs} +4 -4
  31. package/dist/client/{_floatingIpId-Dzh6_JCI.mjs.map → _floatingIpId-CwDGHkWm.mjs.map} +1 -1
  32. package/dist/client/_floatingIpId-foMIwbE4.mjs +215 -0
  33. package/dist/client/_floatingIpId-foMIwbE4.mjs.map +1 -0
  34. package/dist/client/_imageId-BtJ7GmYB.mjs +558 -0
  35. package/dist/client/_imageId-BtJ7GmYB.mjs.map +1 -0
  36. package/dist/client/{_projectId-D-b7paXE.mjs → _projectId-BmtCuzJu.mjs} +4 -4
  37. package/dist/client/{_projectId-D-b7paXE.mjs.map → _projectId-BmtCuzJu.mjs.map} +1 -1
  38. package/dist/client/_projectId-Byt3GQDW.mjs +99 -0
  39. package/dist/client/_projectId-Byt3GQDW.mjs.map +1 -0
  40. package/dist/client/_projectId-NYk1IN_a.mjs +291 -0
  41. package/dist/client/_projectId-NYk1IN_a.mjs.map +1 -0
  42. package/dist/client/{_projectId-CAQkJHZ4.mjs → _projectId-QueiFczy.mjs} +3 -3
  43. package/dist/client/{_projectId-CAQkJHZ4.mjs.map → _projectId-QueiFczy.mjs.map} +1 -1
  44. package/dist/client/{_securityGroupId-DRkY3Gt6.mjs → _securityGroupId-BcbkRhsN.mjs} +4 -4
  45. package/dist/client/{_securityGroupId-DRkY3Gt6.mjs.map → _securityGroupId-BcbkRhsN.mjs.map} +1 -1
  46. package/dist/client/{_securityGroupId-DFdNKa2l.mjs → _securityGroupId-pPtJsCoe.mjs} +541 -527
  47. package/dist/client/_securityGroupId-pPtJsCoe.mjs.map +1 -0
  48. package/dist/client/_storageType-BmqrU06i.mjs +2202 -0
  49. package/dist/client/_storageType-BmqrU06i.mjs.map +1 -0
  50. package/dist/client/_storageType-zeSZe--V.mjs.map +1 -1
  51. package/dist/client/{about-C8tTrQaW.mjs → about-_73VmpTB.mjs} +8 -8
  52. package/dist/client/about-_73VmpTB.mjs.map +1 -0
  53. package/dist/client/assets/objectDownload.worker-CWWLPDyb.js.map +1 -0
  54. package/dist/client/assets/objectDownload.worker-kZlQuo3F.js.map +1 -0
  55. package/dist/client/{aurora-jyvXcI4T.mjs → aurora-EbwGRLLf.mjs} +2 -2
  56. package/dist/client/aurora-EbwGRLLf.mjs.map +1 -0
  57. package/dist/client/{build-CRLQyqu2.mjs → build-C_4vRMCq.mjs} +8072 -8533
  58. package/dist/client/build-C_4vRMCq.mjs.map +1 -0
  59. package/dist/client/components/Auth/LoginForm.d.ts +1 -1
  60. package/dist/client/components/Auth/SessionExpirationTimer.d.ts +1 -1
  61. package/dist/client/components/ContentHeader/ContentHeader.d.ts +1 -1
  62. package/dist/client/components/Error/RouteError.d.ts +1 -1
  63. package/dist/client/components/Error/StatusError.d.ts +1 -1
  64. package/dist/client/components/JsonEditor.d.ts +1 -1
  65. package/dist/client/components/ListToolbar/FiltersInput.d.ts +3 -1
  66. package/dist/client/components/ListToolbar/SelectedFilters.d.ts +1 -1
  67. package/dist/client/components/ListToolbar/index.d.ts +1 -1
  68. package/dist/client/components/ProjectView/ProjectInfoBox.d.ts +1 -1
  69. package/dist/client/components/Slot.d.ts +1 -1
  70. package/dist/client/components/TwoColumnDescriptionList.d.ts +11 -0
  71. package/dist/client/components/navigation/LanguageSelect.d.ts +1 -1
  72. package/dist/client/components/navigation/MainNavigation.d.ts +1 -1
  73. package/dist/client/components/navigation/UserMenu.d.ts +1 -1
  74. package/dist/client/{flavors-Dy-2mRGv.mjs → flavors-CiHCYrtZ.mjs} +2 -2
  75. package/dist/client/{flavors-Dy-2mRGv.mjs.map → flavors-CiHCYrtZ.mjs.map} +1 -1
  76. package/dist/client/flavors-DWMZ6TuJ.mjs.map +1 -1
  77. package/dist/client/{flavors-BfTXqmoD.mjs → flavors-DY-bDc8l.mjs} +196 -194
  78. package/dist/client/flavors-DY-bDc8l.mjs.map +1 -0
  79. package/dist/client/floatingips-Ci4jHkaG.mjs +591 -0
  80. package/dist/client/floatingips-Ci4jHkaG.mjs.map +1 -0
  81. package/dist/client/formatBytes-CZv_XyCY.mjs.map +1 -1
  82. package/dist/client/helpers-1PpYf-fC.mjs.map +1 -1
  83. package/dist/client/hooks/useAvailableViewportHeight.d.ts +8 -5
  84. package/dist/client/hooks/useVirtualizedTableBody.d.ts +1 -3
  85. package/dist/client/{hooks-Bw3sHHOg.mjs → hooks-LutR2Yg3.mjs} +2 -2
  86. package/dist/client/{hooks-Bw3sHHOg.mjs.map → hooks-LutR2Yg3.mjs.map} +1 -1
  87. package/dist/client/images-91U7tr9Y2.mjs +1976 -0
  88. package/dist/client/images-91U7tr9Y2.mjs.map +1 -0
  89. package/dist/client/{images-DPKUXryV.mjs → images-CS4kZQyu.mjs} +2 -2
  90. package/dist/client/{images-DPKUXryV.mjs.map → images-CS4kZQyu.mjs.map} +1 -1
  91. package/dist/client/images-NBf2bV43.mjs.map +1 -1
  92. package/dist/client/index.d.ts +4 -1
  93. package/dist/client/index.js +559 -545
  94. package/dist/client/index.js.map +1 -1
  95. package/dist/client/{md-CyCflQee.mjs → md-kvaGCNAK.mjs} +6 -78
  96. package/dist/client/{md-CyCflQee.mjs.map → md-kvaGCNAK.mjs.map} +1 -1
  97. package/dist/client/network-DuZm76BZ.mjs.map +1 -1
  98. package/dist/client/objects-C3azvW8m.mjs +10074 -0
  99. package/dist/client/objects-C3azvW8m.mjs.map +1 -0
  100. package/dist/client/objects-CM265S6b.mjs +56 -0
  101. package/dist/client/objects-CM265S6b.mjs.map +1 -0
  102. package/dist/client/objects-EE9Cd1wI.mjs +56 -0
  103. package/dist/client/objects-EE9Cd1wI.mjs.map +1 -0
  104. package/dist/client/projects-yiK0HGSA.mjs.map +1 -1
  105. package/dist/client/{routeInfo-CdTRlSxv.mjs → routeInfo-DXqB2HCf.mjs} +3 -3
  106. package/dist/client/routeInfo-DXqB2HCf.mjs.map +1 -0
  107. package/dist/client/router.d.ts +2 -1
  108. package/dist/client/{routes-BOf-GDMM.mjs → routes-CBd8CCuM.mjs} +27 -24
  109. package/dist/client/routes-CBd8CCuM.mjs.map +1 -0
  110. package/dist/client/{routes-CtfnI-aY.mjs → routes-CdDm-hhO.mjs} +2 -2
  111. package/dist/client/{routes-CtfnI-aY.mjs.map → routes-CdDm-hhO.mjs.map} +1 -1
  112. package/dist/client/securitygroups-Bd_uV4S9.mjs +595 -0
  113. package/dist/client/securitygroups-Bd_uV4S9.mjs.map +1 -0
  114. package/dist/client/{securitygroups-B8aLyFK7.mjs → securitygroups-Byte-iSp.mjs} +2 -2
  115. package/dist/client/{securitygroups-B8aLyFK7.mjs.map → securitygroups-Byte-iSp.mjs.map} +1 -1
  116. package/dist/client/services-D1PbooD1.mjs +6 -0
  117. package/dist/client/services-D1PbooD1.mjs.map +1 -0
  118. package/dist/client/services-DEMVtFyn.mjs +9 -0
  119. package/dist/client/services-DEMVtFyn.mjs.map +1 -0
  120. package/dist/client/store/AuthProvider.d.ts +1 -1
  121. package/dist/client/{trpcClient-Di56hpVv.mjs → trpcClient-D7gpR7YG.mjs} +2 -2
  122. package/dist/client/{trpcClient-Di56hpVv.mjs.map → trpcClient-D7gpR7YG.mjs.map} +1 -1
  123. package/dist/client/trpcClient.d.ts +139 -374
  124. package/dist/client/useModal-DCs1OJh7.mjs.map +1 -1
  125. package/dist/client/{useSecurityGroupPermissions-BPS1ibWq.mjs → useSecurityGroupPermissions-C29mzb3b.mjs} +15 -15
  126. package/dist/client/{useSecurityGroupPermissions-BPS1ibWq.mjs.map → useSecurityGroupPermissions-C29mzb3b.mjs.map} +1 -1
  127. package/dist/server/index.d.ts +164 -376
  128. package/dist/server/index.js +4223 -3131
  129. package/package.json +7 -9
  130. package/dist/client/AuthProvider-CQ6Yppoh.mjs.map +0 -1
  131. package/dist/client/BucketToastNotifications-Dq4dudkM.mjs +0 -665
  132. package/dist/client/BucketToastNotifications-Dq4dudkM.mjs.map +0 -1
  133. package/dist/client/ContentHeader-9KZdhOoA.mjs.map +0 -1
  134. package/dist/client/DeleteFlavorModal-Be2qZo4w.mjs +0 -713
  135. package/dist/client/DeleteFlavorModal-Be2qZo4w.mjs.map +0 -1
  136. package/dist/client/DeletePcaModal-CIFsGWyj.mjs +0 -80
  137. package/dist/client/DeletePcaModal-CIFsGWyj.mjs.map +0 -1
  138. package/dist/client/DetailsInfo-CHVD7d-W.mjs +0 -52
  139. package/dist/client/DetailsInfo-CHVD7d-W.mjs.map +0 -1
  140. package/dist/client/FiltersInput-DqT08Ib-.mjs +0 -81
  141. package/dist/client/FiltersInput-DqT08Ib-.mjs.map +0 -1
  142. package/dist/client/ImageToastNotifications-BGyX2J6j.mjs +0 -1219
  143. package/dist/client/ImageToastNotifications-BGyX2J6j.mjs.map +0 -1
  144. package/dist/client/_auth-D5_QNUos.mjs.map +0 -1
  145. package/dist/client/_flavorId-BsmqS9hP.mjs +0 -194
  146. package/dist/client/_flavorId-BsmqS9hP.mjs.map +0 -1
  147. package/dist/client/_floatingIpId-Bb9ZEJ6b.mjs +0 -228
  148. package/dist/client/_floatingIpId-Bb9ZEJ6b.mjs.map +0 -1
  149. package/dist/client/_imageId-C3As7sHE.mjs +0 -534
  150. package/dist/client/_imageId-C3As7sHE.mjs.map +0 -1
  151. package/dist/client/_pcaId-n0q0aDb6.mjs +0 -545
  152. package/dist/client/_pcaId-n0q0aDb6.mjs.map +0 -1
  153. package/dist/client/_projectId-BuBIFdgG.mjs +0 -291
  154. package/dist/client/_projectId-BuBIFdgG.mjs.map +0 -1
  155. package/dist/client/_projectId-DNZsNxJw.mjs +0 -98
  156. package/dist/client/_projectId-DNZsNxJw.mjs.map +0 -1
  157. package/dist/client/_securityGroupId-DFdNKa2l.mjs.map +0 -1
  158. package/dist/client/_storageType-Cn7TSOki.mjs +0 -81
  159. package/dist/client/_storageType-Cn7TSOki.mjs.map +0 -1
  160. package/dist/client/_storageType-_8Ambhxc.mjs +0 -2859
  161. package/dist/client/_storageType-_8Ambhxc.mjs.map +0 -1
  162. package/dist/client/about-C8tTrQaW.mjs.map +0 -1
  163. package/dist/client/assets/objectDownload.worker-BAc5Au4B.js.map +0 -1
  164. package/dist/client/aurora-jyvXcI4T.mjs.map +0 -1
  165. package/dist/client/build-CRLQyqu2.mjs.map +0 -1
  166. package/dist/client/flavors-BfTXqmoD.mjs.map +0 -1
  167. package/dist/client/floatingips-zhNK6Xxn.mjs +0 -562
  168. package/dist/client/floatingips-zhNK6Xxn.mjs.map +0 -1
  169. package/dist/client/images-DhZnqUG_.mjs +0 -1890
  170. package/dist/client/images-DhZnqUG_.mjs.map +0 -1
  171. package/dist/client/objects-B3mbk6V0.mjs +0 -6636
  172. package/dist/client/objects-B3mbk6V0.mjs.map +0 -1
  173. package/dist/client/objects-BQ8xvSW8.mjs +0 -103
  174. package/dist/client/objects-BQ8xvSW8.mjs.map +0 -1
  175. package/dist/client/objects-o2Cj_ndZ.mjs +0 -8
  176. package/dist/client/objects-o2Cj_ndZ.mjs.map +0 -1
  177. package/dist/client/pca-B60iWWfG.mjs +0 -251
  178. package/dist/client/pca-B60iWWfG.mjs.map +0 -1
  179. package/dist/client/pca-D0kKxHp4.mjs +0 -25
  180. package/dist/client/pca-D0kKxHp4.mjs.map +0 -1
  181. package/dist/client/pcaAccess-Br4kVjLQ.mjs +0 -9
  182. package/dist/client/pcaAccess-Br4kVjLQ.mjs.map +0 -1
  183. package/dist/client/routeInfo-CdTRlSxv.mjs.map +0 -1
  184. package/dist/client/routes-BOf-GDMM.mjs.map +0 -1
  185. package/dist/client/securitygroups-DRhFle2O.mjs +0 -589
  186. package/dist/client/securitygroups-DRhFle2O.mjs.map +0 -1
  187. package/dist/client/useListWithFiltering-aPTUNRaW.mjs +0 -32
  188. package/dist/client/useListWithFiltering-aPTUNRaW.mjs.map +0 -1
@@ -1,188 +1,170 @@
1
- import { A as e, B as t, E as n, G as r, H as i, K as a, P as o, Q as s, R as c, U as l, Y as u, Z as d, at as f, c as p, ct as m, dt as h, et as g, g as _, h as v, m as y, n as b, nt as x, o as S, p as C, r as w, rt as T, tt as E, ut as D, y as O } from "./build-CRLQyqu2.mjs";
2
- import { a as k } from "./trpcClient-Di56hpVv.mjs";
3
- import { t as A } from "./_securityGroupId-DRkY3Gt6.mjs";
1
+ import { A as e, C as t, F as n, I as r, J as i, L as a, N as o, O as s, Q as c, S as l, T as u, W as d, X as f, a as p, g as m, h, j as g, l as _, m as v, nt as y, o as b, p as x, q as S, st as C, t as w, tt as T, ut as E, v as D, x as O } from "./build-C_4vRMCq.mjs";
2
+ import { a as k } from "./trpcClient-D7gpR7YG.mjs";
3
+ import { t as A } from "./_securityGroupId-BcbkRhsN.mjs";
4
4
  import { t as j } from "./useProjectId-DBc5lpoU.mjs";
5
- import "./hooks-Bw3sHHOg.mjs";
6
- import { t as M } from "./useModal-DCs1OJh7.mjs";
7
- import { t as N } from "./SortInput-D_q_jDfe.mjs";
8
- import { n as P, t as F } from "./FiltersInput-DqT08Ib-.mjs";
9
- import { t as I } from "./useListWithFiltering-aPTUNRaW.mjs";
10
- import { n as L, t as ee } from "./useSecurityGroupPermissions-BPS1ibWq.mjs";
5
+ import { t as M } from "./SortInput-Cqs2poV3.mjs";
6
+ import "./hooks-LutR2Yg3.mjs";
7
+ import { t as N } from "./TwoColumnDescriptionList-DiDx3PnH.mjs";
8
+ import { t as P } from "./useModal-DCs1OJh7.mjs";
9
+ import { n as F, t as I } from "./FiltersInput-B8CNBg1L.mjs";
10
+ import { n as L, t as ee } from "./useSecurityGroupPermissions-C29mzb3b.mjs";
11
11
  import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
12
- import { useEffect as V, useMemo as H, useRef as U, useState as W } from "react";
13
- import { useNavigate as G } from "@tanstack/react-router";
14
- import { Trans as K, useLingui as q } from "@lingui/react";
15
- import { z as J } from "zod";
16
- import { useForm as Y, useStore as X } from "@tanstack/react-form";
12
+ import { startTransition as V, useEffect as H, useMemo as U, useRef as W, useState as G } from "react";
13
+ import { useNavigate as K } from "@tanstack/react-router";
14
+ import { Trans as q, useLingui as J } from "@lingui/react";
15
+ import { z as Y } from "zod";
16
+ import { useForm as X, useStore as Z } from "@tanstack/react-form";
17
17
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupHeader.tsx
18
18
  function te({ name: e, id: t }) {
19
19
  return /*#__PURE__*/ B("div", {
20
20
  className: "mb-2",
21
- children: [/*#__PURE__*/ z(u, { children: `'${e || t}' Details` }), /*#__PURE__*/ z("p", {
21
+ children: [/*#__PURE__*/ z(y, { children: `'${e || t}' Details` }), /*#__PURE__*/ z("p", {
22
22
  className: "text-theme-secondary mt-2 text-sm",
23
- children: /*#__PURE__*/ z(K, { id: "kIuDMT" })
23
+ children: /*#__PURE__*/ z(q, { id: "kIuDMT" })
24
24
  })]
25
25
  });
26
26
  }
27
27
  //#endregion
28
28
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupBasicInfo.tsx
29
- function Z({ securityGroup: e, onEdit: t, canUpdate: i }) {
30
- let { i18n: a, _: s } = q(), l = ({ value: e }) => /*#__PURE__*/ z("span", { children: e ? a._({ id: "l75CjT" }) : a._({ id: "1UzENP" }) });
31
- return /*#__PURE__*/ B("div", { children: [/*#__PURE__*/ z("div", {
29
+ function Q({ securityGroup: e, onEdit: t, canUpdate: n }) {
30
+ let { i18n: r, _: i } = J(), a = [
31
+ {
32
+ label: r._({ id: "Nu4oKW" }),
33
+ value: e.description || r._({ id: "h47p9L" })
34
+ },
35
+ {
36
+ label: r._({ id: "S0kLOH" }),
37
+ value: e.id
38
+ },
39
+ {
40
+ label: r._({ id: "OYHzN1" }),
41
+ value: e.tags?.join(", ") || r._({ id: "h47p9L" })
42
+ },
43
+ {
44
+ label: r._({ id: "6YtxFj" }),
45
+ value: e.name || r._({ id: "h47p9L" })
46
+ },
47
+ {
48
+ label: r._({ id: "Jim5X9" }),
49
+ value: e.stateful ? r._({ id: "l75CjT" }) : r._({ id: "1UzENP" })
50
+ },
51
+ {
52
+ label: r._({ id: "aI8Tgp" }),
53
+ value: e.project_id || r._({ id: "h47p9L" })
54
+ },
55
+ {
56
+ label: r._({ id: "0Gd0NU" }),
57
+ value: e.shared ? r._({ id: "l75CjT" }) : r._({ id: "1UzENP" })
58
+ }
59
+ ];
60
+ return /*#__PURE__*/ B(R, { children: [/*#__PURE__*/ z("div", {
32
61
  className: "mb-4 flex flex-row-reverse",
33
- children: t && i && /*#__PURE__*/ z(O, {
62
+ children: t && n && /*#__PURE__*/ z(p, {
34
63
  variant: "primary",
35
64
  onClick: t,
36
- disabled: !i,
37
- children: /*#__PURE__*/ z(K, { id: "ePK91l" })
65
+ disabled: !n,
66
+ children: /*#__PURE__*/ z(q, { id: "ePK91l" })
38
67
  })
39
- }), /*#__PURE__*/ B(o, {
40
- columns: 4,
41
- gridColumnTemplate: "15% 35% 15% 35%",
42
- children: [
43
- /*#__PURE__*/ B(n, { children: [/*#__PURE__*/ z(c, { children: a._({ id: "Nu4oKW" }) }), /*#__PURE__*/ z(r, {
44
- colSpan: 3,
45
- children: /*#__PURE__*/ z("div", {
46
- className: "overflow-hidden text-ellipsis whitespace-nowrap",
47
- title: e.description || void 0,
48
- children: e.description || a._({ id: "h47p9L" })
49
- })
50
- })] }),
51
- /*#__PURE__*/ B(n, { children: [
52
- /*#__PURE__*/ z(c, { children: a._({ id: "S0kLOH" }) }),
53
- /*#__PURE__*/ z(r, { children: /*#__PURE__*/ z("div", {
54
- className: "overflow-hidden text-ellipsis whitespace-nowrap",
55
- title: e.id,
56
- children: e.id
57
- }) }),
58
- /*#__PURE__*/ z(c, { children: a._({ id: "OYHzN1" }) }),
59
- /*#__PURE__*/ z(r, { children: /*#__PURE__*/ z("div", {
60
- className: "overflow-hidden text-ellipsis whitespace-nowrap",
61
- title: e.tags?.join(", ") || void 0,
62
- children: e.tags?.join(", ") || a._({ id: "h47p9L" })
63
- }) })
64
- ] }),
65
- /*#__PURE__*/ B(n, { children: [
66
- /*#__PURE__*/ z(c, { children: a._({ id: "6YtxFj" }) }),
67
- /*#__PURE__*/ z(r, { children: /*#__PURE__*/ z("div", {
68
- className: "overflow-hidden text-ellipsis whitespace-nowrap",
69
- title: e.name || void 0,
70
- children: e.name
71
- }) }),
72
- /*#__PURE__*/ z(c, { children: a._({ id: "Jim5X9" }) }),
73
- /*#__PURE__*/ z(r, { children: /*#__PURE__*/ z(l, { value: e.stateful }) })
74
- ] }),
75
- /*#__PURE__*/ B(n, { children: [
76
- /*#__PURE__*/ z(c, { children: a._({ id: "aI8Tgp" }) }),
77
- /*#__PURE__*/ z(r, { children: /*#__PURE__*/ z("div", {
78
- className: "overflow-hidden text-ellipsis whitespace-nowrap",
79
- title: e.project_id || void 0,
80
- children: e.project_id || a._({ id: "h47p9L" })
81
- }) }),
82
- /*#__PURE__*/ z(c, { children: a._({ id: "0Gd0NU" }) }),
83
- /*#__PURE__*/ z(r, { children: /*#__PURE__*/ z(l, { value: e.shared }) })
84
- ] })
85
- ]
86
- })] });
68
+ }), /*#__PURE__*/ z(N, { items: a })] });
87
69
  }
88
70
  //#endregion
89
71
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupTabs.tsx
90
- function Q({ activeTab: e, onTabChange: t, showRBACTab: n = !0 }) {
72
+ function $({ activeTab: e, onTabChange: t, showRBACTab: n = !0 }) {
91
73
  let r = (t) => `px-6 py-3 font-semibold border-b-2 transition-colors ${e === t ? "border-theme-accent text-theme-highest" : "border-transparent text-theme-secondary hover:text-theme-high"}`;
92
74
  return /*#__PURE__*/ z("div", {
93
75
  className: "border-theme-background-lvl-3 mt-1 border-b",
94
- children: /*#__PURE__*/ B(E, {
76
+ children: /*#__PURE__*/ B(f, {
95
77
  direction: "horizontal",
96
78
  gap: "0",
97
79
  children: [/*#__PURE__*/ z("button", {
98
80
  className: r("rules"),
99
81
  onClick: () => t("rules"),
100
- children: /*#__PURE__*/ z(K, { id: "4EZrJN" })
82
+ children: /*#__PURE__*/ z(q, { id: "4EZrJN" })
101
83
  }), n && /*#__PURE__*/ z("button", {
102
84
  className: r("rbac"),
103
85
  onClick: () => t("rbac"),
104
- children: /*#__PURE__*/ z(K, { id: "/eFtWI" })
86
+ children: /*#__PURE__*/ z(q, { id: "/eFtWI" })
105
87
  })]
106
88
  })
107
89
  });
108
90
  }
109
91
  //#endregion
110
92
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/DeleteRuleDialog.tsx
111
- function ne({ rule: e, open: n, onClose: r, onConfirm: i, isLoading: a, error: o }) {
112
- let { i18n: s, _: c } = q(), [u, d] = W(""), f = () => {
113
- e && u === "delete" && i(e.id);
114
- }, p = () => {
115
- d(""), r();
116
- }, m = u !== "delete" || a;
117
- return e ? /*#__PURE__*/ z(w, {
118
- open: n,
119
- onCancel: p,
93
+ function ne({ rule: e, open: t, onClose: r, onConfirm: a, isLoading: s, error: c }) {
94
+ let { i18n: l, _: u } = J(), [d, f] = G(""), m = () => {
95
+ e && d === "delete" && a(e.id);
96
+ }, h = () => {
97
+ f(""), r();
98
+ }, _ = d !== "delete" || s;
99
+ return e ? /*#__PURE__*/ z(i, {
100
+ open: t,
101
+ onCancel: h,
120
102
  size: "small",
121
- title: s._({ id: "TM93nK" }),
122
- modalFooter: /*#__PURE__*/ z(_, {
103
+ title: l._({ id: "TM93nK" }),
104
+ modalFooter: /*#__PURE__*/ z(o, {
123
105
  className: "flex justify-end",
124
- children: /*#__PURE__*/ B(D, { children: [/*#__PURE__*/ z(O, {
106
+ children: /*#__PURE__*/ B(g, { children: [/*#__PURE__*/ z(p, {
125
107
  variant: "default",
126
- onClick: p,
127
- disabled: a,
128
- children: /*#__PURE__*/ z(K, { id: "dEgA5A" })
129
- }), /*#__PURE__*/ z(O, {
108
+ onClick: h,
109
+ disabled: s,
110
+ children: /*#__PURE__*/ z(q, { id: "dEgA5A" })
111
+ }), /*#__PURE__*/ z(p, {
130
112
  variant: "primary-danger",
131
- onClick: f,
132
- disabled: m,
113
+ onClick: m,
114
+ disabled: _,
133
115
  "data-testid": "confirm-delete-rule-button",
134
- children: a ? /*#__PURE__*/ z(K, { id: "EF2EU9" }) : /*#__PURE__*/ z(K, { id: "lN3xvy" })
116
+ children: s ? /*#__PURE__*/ z(q, { id: "EF2EU9" }) : /*#__PURE__*/ z(q, { id: "lN3xvy" })
135
117
  })] })
136
118
  }),
137
119
  children: /*#__PURE__*/ B("div", { children: [
138
- o && /*#__PURE__*/ z(t, {
120
+ c && /*#__PURE__*/ z(n, {
139
121
  dismissible: !1,
140
122
  variant: "error",
141
123
  className: "mt-4",
142
- children: o
124
+ children: c
143
125
  }),
144
- /*#__PURE__*/ z(K, { id: "CMVP7y" }),
126
+ /*#__PURE__*/ z(q, { id: "CMVP7y" }),
145
127
  /*#__PURE__*/ B("div", {
146
128
  className: "bg-theme-background-lvl-1 mt-4 mb-4 rounded p-4",
147
129
  children: [/*#__PURE__*/ z("p", {
148
130
  className: "mb-2 font-semibold",
149
- children: /*#__PURE__*/ z(K, { id: "uly9ET" })
131
+ children: /*#__PURE__*/ z(q, { id: "uly9ET" })
150
132
  }), /*#__PURE__*/ B("ul", {
151
133
  className: "list-inside list-disc space-y-1 text-sm",
152
134
  children: [
153
135
  /*#__PURE__*/ B("li", { children: [
154
- /*#__PURE__*/ z(K, { id: "MRB7nI" }),
136
+ /*#__PURE__*/ z(q, { id: "MRB7nI" }),
155
137
  ": ",
156
138
  e.direction
157
139
  ] }),
158
140
  e.description && /*#__PURE__*/ B("li", { children: [
159
- /*#__PURE__*/ z(K, { id: "Nu4oKW" }),
141
+ /*#__PURE__*/ z(q, { id: "Nu4oKW" }),
160
142
  ": ",
161
143
  e.description
162
144
  ] }),
163
145
  /*#__PURE__*/ B("li", { children: [
164
- /*#__PURE__*/ z(K, { id: "yp0UjB" }),
146
+ /*#__PURE__*/ z(q, { id: "yp0UjB" }),
165
147
  ": ",
166
148
  e.ethertype
167
149
  ] }),
168
150
  e.protocol && /*#__PURE__*/ B("li", { children: [
169
- /*#__PURE__*/ z(K, { id: "6+OdGi" }),
151
+ /*#__PURE__*/ z(q, { id: "6+OdGi" }),
170
152
  ": ",
171
153
  e.protocol
172
154
  ] }),
173
155
  e.port_range_min !== null && e.port_range_max !== null && /*#__PURE__*/ B("li", { children: [
174
- /*#__PURE__*/ z(K, { id: "tV/Ozb" }),
156
+ /*#__PURE__*/ z(q, { id: "tV/Ozb" }),
175
157
  ":",
176
158
  " ",
177
159
  e.port_range_min === e.port_range_max ? e.port_range_min : `${e.port_range_min}-${e.port_range_max}`
178
160
  ] }),
179
161
  e.remote_ip_prefix && /*#__PURE__*/ B("li", { children: [
180
- /*#__PURE__*/ z(K, { id: "WoSkGY" }),
162
+ /*#__PURE__*/ z(q, { id: "WoSkGY" }),
181
163
  ": ",
182
164
  e.remote_ip_prefix
183
165
  ] }),
184
166
  e.remote_group_id && /*#__PURE__*/ B("li", { children: [
185
- /*#__PURE__*/ z(K, { id: "i9TIyi" }),
167
+ /*#__PURE__*/ z(q, { id: "i9TIyi" }),
186
168
  ": ",
187
169
  e.remote_group_id
188
170
  ] })
@@ -193,16 +175,16 @@ function ne({ rule: e, open: n, onClose: r, onConfirm: i, isLoading: a, error: o
193
175
  className: "mt-4",
194
176
  children: [/*#__PURE__*/ z("p", {
195
177
  className: "mb-2 text-sm",
196
- children: /*#__PURE__*/ z(K, {
178
+ children: /*#__PURE__*/ z(q, {
197
179
  id: "PHt+EV",
198
180
  components: { 0: /*#__PURE__*/ z("strong", {}) }
199
181
  })
200
- }), /*#__PURE__*/ z(l, {
201
- value: u,
202
- onChange: (e) => d(e.target.value),
203
- placeholder: s._({ id: "HNlEFZ" }),
182
+ }), /*#__PURE__*/ z(v, {
183
+ value: d,
184
+ onChange: (e) => f(e.target.value),
185
+ placeholder: l._({ id: "HNlEFZ" }),
204
186
  autoComplete: "off",
205
- disabled: a,
187
+ disabled: s,
206
188
  "data-testid": "delete-rule-confirmation-input"
207
189
  })]
208
190
  })
@@ -211,10 +193,10 @@ function ne({ rule: e, open: n, onClose: r, onConfirm: i, isLoading: a, error: o
211
193
  }
212
194
  //#endregion
213
195
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/validation/validationHelpers.ts
214
- function $(e) {
196
+ function re(e) {
215
197
  return e.includes(".") ? "IPv4" : e.includes(":") ? "IPv6" : null;
216
198
  }
217
- function re(e, t, n) {
199
+ function ie(e, t, n) {
218
200
  if (e != null && isNaN(e) || t != null && isNaN(t)) return {
219
201
  valid: !1,
220
202
  error: "Port must be a valid number"
@@ -233,7 +215,7 @@ function re(e, t, n) {
233
215
  error: "port_range_min must be less than or equal to port_range_max"
234
216
  } : { valid: !0 };
235
217
  }
236
- function ie(e, t) {
218
+ function ae(e, t) {
237
219
  return e != null && isNaN(e) ? {
238
220
  valid: !1,
239
221
  error: "ICMP type must be a valid number"
@@ -248,7 +230,7 @@ function ie(e, t) {
248
230
  error: "ICMP code must be between 0 and 255"
249
231
  } : { valid: !0 };
250
232
  }
251
- function ae(e) {
233
+ function oe(e) {
252
234
  let t = e.split("/");
253
235
  if (t.length !== 2) return !1;
254
236
  let [n, r] = t;
@@ -277,61 +259,61 @@ function ae(e) {
277
259
  }
278
260
  //#endregion
279
261
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/constants.ts
280
- var oe = "0.0.0.0/0", se = "::/0", ce = "other-protocol", le = J.object({
281
- ruleType: J.string().min(1, "Rule type is required"),
282
- direction: J.enum(["ingress", "egress"]),
283
- ethertype: J.enum(["IPv4", "IPv6"]),
284
- description: J.string(),
285
- protocol: J.string().nullable(),
286
- portFrom: J.string(),
287
- portTo: J.string(),
288
- icmpType: J.string(),
289
- icmpCode: J.string(),
290
- remoteSourceType: J.enum(["cidr", "security_group"]),
291
- remoteCidr: J.string(),
292
- remoteSecurityGroupId: J.string()
262
+ var se = "0.0.0.0/0", ce = "::/0", le = "other-protocol", ue = Y.object({
263
+ ruleType: Y.string().min(1, "Rule type is required"),
264
+ direction: Y.enum(["ingress", "egress"]),
265
+ ethertype: Y.enum(["IPv4", "IPv6"]),
266
+ description: Y.string(),
267
+ protocol: Y.string().nullable(),
268
+ portFrom: Y.string(),
269
+ portTo: Y.string(),
270
+ icmpType: Y.string(),
271
+ icmpCode: Y.string(),
272
+ remoteSourceType: Y.enum(["cidr", "security_group"]),
273
+ remoteCidr: Y.string(),
274
+ remoteSecurityGroupId: Y.string()
293
275
  }).superRefine((e, t) => {
294
- let n = e.protocol === "tcp" || e.protocol === "udp", r = e.protocol === "icmp" || e.protocol === "ipv6-icmp", i = e.ruleType === ce, a = n && ["custom-tcp", "custom-udp"].includes(e.ruleType);
276
+ let n = e.protocol === "tcp" || e.protocol === "udp", r = e.protocol === "icmp" || e.protocol === "ipv6-icmp", i = e.ruleType === le, a = n && ["custom-tcp", "custom-udp"].includes(e.ruleType);
295
277
  if (i && !e.protocol && t.addIssue({
296
- code: J.ZodIssueCode.custom,
278
+ code: Y.ZodIssueCode.custom,
297
279
  message: "Protocol is required",
298
280
  path: ["protocol"]
299
281
  }), a) if (!e.portFrom) t.addIssue({
300
- code: J.ZodIssueCode.custom,
282
+ code: Y.ZodIssueCode.custom,
301
283
  message: "Port (from) is required",
302
284
  path: ["portFrom"]
303
285
  });
304
286
  else {
305
287
  let n = parseInt(e.portFrom, 10);
306
288
  if (isNaN(n)) t.addIssue({
307
- code: J.ZodIssueCode.custom,
289
+ code: Y.ZodIssueCode.custom,
308
290
  message: "Port must be a valid number",
309
291
  path: ["portFrom"]
310
292
  });
311
293
  else if (e.portTo) {
312
294
  let r = parseInt(e.portTo, 10);
313
295
  if (isNaN(r)) t.addIssue({
314
- code: J.ZodIssueCode.custom,
296
+ code: Y.ZodIssueCode.custom,
315
297
  message: "Port must be a valid number",
316
298
  path: ["portTo"]
317
299
  });
318
300
  else if (n >= r) t.addIssue({
319
- code: J.ZodIssueCode.custom,
301
+ code: Y.ZodIssueCode.custom,
320
302
  message: "\"Port (from)\" must be less than \"Port (to)\"",
321
303
  path: ["portFrom"]
322
304
  });
323
305
  else {
324
- let i = re(n, r, e.protocol);
306
+ let i = ie(n, r, e.protocol);
325
307
  i.valid || t.addIssue({
326
- code: J.ZodIssueCode.custom,
308
+ code: Y.ZodIssueCode.custom,
327
309
  message: i.error || "Invalid port range",
328
310
  path: ["portFrom"]
329
311
  });
330
312
  }
331
313
  } else {
332
- let r = re(n, n, e.protocol);
314
+ let r = ie(n, n, e.protocol);
333
315
  r.valid || t.addIssue({
334
- code: J.ZodIssueCode.custom,
316
+ code: Y.ZodIssueCode.custom,
335
317
  message: r.error || "Invalid port",
336
318
  path: ["portFrom"]
337
319
  });
@@ -340,44 +322,44 @@ var oe = "0.0.0.0/0", se = "::/0", ce = "other-protocol", le = J.object({
340
322
  if (r) {
341
323
  let n = e.icmpType ? parseInt(e.icmpType, 10) : null, r = e.icmpCode ? parseInt(e.icmpCode, 10) : null;
342
324
  if (e.icmpType && isNaN(n) && t.addIssue({
343
- code: J.ZodIssueCode.custom,
325
+ code: Y.ZodIssueCode.custom,
344
326
  message: "ICMP type must be a valid number",
345
327
  path: ["icmpType"]
346
328
  }), e.icmpCode && isNaN(r) && t.addIssue({
347
- code: J.ZodIssueCode.custom,
329
+ code: Y.ZodIssueCode.custom,
348
330
  message: "ICMP code must be a valid number",
349
331
  path: ["icmpCode"]
350
332
  }), e.icmpCode && !e.icmpType && t.addIssue({
351
- code: J.ZodIssueCode.custom,
333
+ code: Y.ZodIssueCode.custom,
352
334
  message: "ICMP type is required when ICMP code is specified",
353
335
  path: ["icmpType"]
354
336
  }), n !== null || r !== null) {
355
- let e = ie(n, r);
337
+ let e = ae(n, r);
356
338
  e.valid || (e.error?.includes("type") && t.addIssue({
357
- code: J.ZodIssueCode.custom,
339
+ code: Y.ZodIssueCode.custom,
358
340
  message: "ICMP type must be between 0 and 255",
359
341
  path: ["icmpType"]
360
342
  }), e.error?.includes("code") && t.addIssue({
361
- code: J.ZodIssueCode.custom,
343
+ code: Y.ZodIssueCode.custom,
362
344
  message: "ICMP code must be between 0 and 255",
363
345
  path: ["icmpCode"]
364
346
  }));
365
347
  }
366
348
  }
367
- if (e.remoteSourceType === "cidr" && e.remoteCidr) if (!ae(e.remoteCidr)) t.addIssue({
368
- code: J.ZodIssueCode.custom,
349
+ if (e.remoteSourceType === "cidr" && e.remoteCidr) if (!oe(e.remoteCidr)) t.addIssue({
350
+ code: Y.ZodIssueCode.custom,
369
351
  message: "Invalid CIDR format. Examples: 0.0.0.0/0 (IPv4) or ::/0 (IPv6)",
370
352
  path: ["remoteCidr"]
371
353
  });
372
354
  else {
373
- let n = $(e.remoteCidr);
355
+ let n = re(e.remoteCidr);
374
356
  n && n !== e.ethertype && t.addIssue({
375
- code: J.ZodIssueCode.custom,
357
+ code: Y.ZodIssueCode.custom,
376
358
  message: `CIDR family (${n}) must match Ethertype (${e.ethertype})`,
377
359
  path: ["remoteCidr"]
378
360
  });
379
361
  }
380
- }), ue = {
362
+ }), de = {
381
363
  ruleType: "",
382
364
  direction: "ingress",
383
365
  ethertype: "IPv4",
@@ -388,9 +370,9 @@ var oe = "0.0.0.0/0", se = "::/0", ce = "other-protocol", le = J.object({
388
370
  icmpType: "",
389
371
  icmpCode: "",
390
372
  remoteSourceType: "cidr",
391
- remoteCidr: oe,
373
+ remoteCidr: se,
392
374
  remoteSecurityGroupId: ""
393
- }, de = [
375
+ }, fe = [
394
376
  {
395
377
  value: "",
396
378
  label: "",
@@ -548,31 +530,31 @@ var oe = "0.0.0.0/0", se = "::/0", ce = "other-protocol", le = J.object({
548
530
  ];
549
531
  //#endregion
550
532
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/RuleTypeSection.tsx
551
- function fe({ form: e, disabled: t = !1 }) {
552
- let { i18n: n, _: r } = q();
533
+ function pe({ form: e, disabled: t = !1 }) {
534
+ let { i18n: n, _: i } = J();
553
535
  return /*#__PURE__*/ z(e.Field, {
554
536
  name: "ruleType",
555
537
  mode: "value",
556
- children: (r) => /*#__PURE__*/ z(p, {
538
+ children: (i) => /*#__PURE__*/ z(h, {
557
539
  className: "mb-6",
558
- children: /*#__PURE__*/ z(h, {
540
+ children: /*#__PURE__*/ z(T, {
559
541
  id: "ruleType",
560
542
  label: n._({ id: "YuGQWb" }),
561
- value: r.state.value,
543
+ value: i.state.value,
562
544
  onChange: (t) => {
563
545
  let n = String(t || "");
564
- if (r.handleChange(n), !n) {
546
+ if (i.handleChange(n), !n) {
565
547
  e.setFieldValue("protocol", null), e.setFieldValue("portFrom", ""), e.setFieldValue("portTo", ""), e.setFieldValue("icmpType", ""), e.setFieldValue("icmpCode", "");
566
548
  return;
567
549
  }
568
- let i = de.find((e) => e.value === n);
569
- i && (e.setFieldValue("protocol", i.protocol), (i.protocol === "tcp" || i.protocol === "udp") && i.portRangeMin !== null && i.portRangeMax !== null ? (e.setFieldValue("portFrom", String(i.portRangeMin)), e.setFieldValue("portTo", String(i.portRangeMax))) : (e.setFieldValue("portFrom", ""), e.setFieldValue("portTo", "")), i.protocol !== "icmp" && i.protocol !== "ipv6-icmp" && (e.setFieldValue("icmpType", ""), e.setFieldValue("icmpCode", "")));
550
+ let r = fe.find((e) => e.value === n);
551
+ r && (e.setFieldValue("protocol", r.protocol), (r.protocol === "tcp" || r.protocol === "udp") && r.portRangeMin !== null && r.portRangeMax !== null ? (e.setFieldValue("portFrom", String(r.portRangeMin)), e.setFieldValue("portTo", String(r.portRangeMax))) : (e.setFieldValue("portFrom", ""), e.setFieldValue("portTo", "")), r.protocol !== "icmp" && r.protocol !== "ipv6-icmp" && (e.setFieldValue("icmpType", ""), e.setFieldValue("icmpCode", "")));
570
552
  },
571
553
  disabled: t,
572
- children: de.map((e) => e.value === "" ? /*#__PURE__*/ z(y, {
554
+ children: fe.map((e) => e.value === "" ? /*#__PURE__*/ z(r, {
573
555
  value: e.value,
574
556
  label: n._({ id: "eh/k36" })
575
- }, e.value) : /*#__PURE__*/ z(y, {
557
+ }, e.value) : /*#__PURE__*/ z(r, {
576
558
  value: e.value,
577
559
  label: e.label
578
560
  }, e.value))
@@ -582,11 +564,11 @@ function fe({ form: e, disabled: t = !1 }) {
582
564
  }
583
565
  //#endregion
584
566
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/DirectionEthertypeSection.tsx
585
- function pe({ form: e, disabled: t = !1 }) {
586
- let { i18n: n, _: r } = q();
567
+ function me({ form: e, disabled: t = !1 }) {
568
+ let { i18n: n, _: r } = J();
587
569
  return /*#__PURE__*/ z(e.Field, {
588
570
  name: "direction",
589
- children: (e) => /*#__PURE__*/ z(p, { children: /*#__PURE__*/ z(v, {
571
+ children: (e) => /*#__PURE__*/ z(h, { children: /*#__PURE__*/ z(D, {
590
572
  name: "direction",
591
573
  label: n._({ id: "MRB7nI" }),
592
574
  selected: e.state.value,
@@ -595,10 +577,10 @@ function pe({ form: e, disabled: t = !1 }) {
595
577
  disabled: t,
596
578
  children: /*#__PURE__*/ B("div", {
597
579
  className: "flex gap-4",
598
- children: [/*#__PURE__*/ z(C, {
580
+ children: [/*#__PURE__*/ z(c, {
599
581
  value: "ingress",
600
582
  label: n._({ id: "fzfAAa" })
601
- }), /*#__PURE__*/ z(C, {
583
+ }), /*#__PURE__*/ z(c, {
602
584
  value: "egress",
603
585
  label: n._({ id: "nETBrc" })
604
586
  })]
@@ -606,11 +588,11 @@ function pe({ form: e, disabled: t = !1 }) {
606
588
  }) })
607
589
  });
608
590
  }
609
- function me({ form: e, disabled: t = !1 }) {
610
- let { i18n: n, _: r } = q();
591
+ function he({ form: e, disabled: t = !1 }) {
592
+ let { i18n: n, _: r } = J();
611
593
  return /*#__PURE__*/ z(e.Field, {
612
594
  name: "ethertype",
613
- children: (e) => /*#__PURE__*/ z(p, { children: /*#__PURE__*/ z(v, {
595
+ children: (e) => /*#__PURE__*/ z(h, { children: /*#__PURE__*/ z(D, {
614
596
  name: "ethertype",
615
597
  label: n._({ id: "16085O" }),
616
598
  selected: e.state.value,
@@ -619,10 +601,10 @@ function me({ form: e, disabled: t = !1 }) {
619
601
  disabled: t,
620
602
  children: /*#__PURE__*/ B("div", {
621
603
  className: "flex gap-4",
622
- children: [/*#__PURE__*/ z(C, {
604
+ children: [/*#__PURE__*/ z(c, {
623
605
  value: "IPv4",
624
606
  label: "IPv4"
625
- }), /*#__PURE__*/ z(C, {
607
+ }), /*#__PURE__*/ z(c, {
626
608
  value: "IPv6",
627
609
  label: "IPv6"
628
610
  })]
@@ -632,13 +614,13 @@ function me({ form: e, disabled: t = !1 }) {
632
614
  }
633
615
  //#endregion
634
616
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/ProtocolSection.tsx
635
- function he({ form: e, disabled: t = !1 }) {
636
- let { i18n: n, _: r } = q();
617
+ function ge({ form: e, disabled: t = !1 }) {
618
+ let { i18n: n, _: r } = J();
637
619
  return /*#__PURE__*/ z(e.Field, {
638
620
  name: "protocol",
639
- children: (e) => /*#__PURE__*/ z(p, {
621
+ children: (e) => /*#__PURE__*/ z(h, {
640
622
  className: "mb-6",
641
- children: /*#__PURE__*/ z(l, {
623
+ children: /*#__PURE__*/ z(v, {
642
624
  id: "protocol",
643
625
  name: "protocol",
644
626
  label: n._({ id: "6+OdGi" }),
@@ -653,9 +635,9 @@ function he({ form: e, disabled: t = !1 }) {
653
635
  }
654
636
  //#endregion
655
637
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/PortRangeSection.tsx
656
- function ge({ form: e, disabled: t = !1 }) {
657
- let { i18n: n, _: r } = q(), i = X(e.store, (e) => e.values.portFrom), a = X(e.store, (e) => e.fieldMeta.portFrom?.errors[0]?.message), o = X(e.store, (e) => e.fieldMeta.portTo?.errors[0]?.message), s = t || !i || i.trim() === "";
658
- return /*#__PURE__*/ B(p, {
638
+ function _e({ form: e, disabled: t = !1 }) {
639
+ let { i18n: n, _: r } = J(), i = Z(e.store, (e) => e.values.portFrom), a = Z(e.store, (e) => e.fieldMeta.portFrom?.errors[0]?.message), o = Z(e.store, (e) => e.fieldMeta.portTo?.errors[0]?.message), s = t || !i || i.trim() === "";
640
+ return /*#__PURE__*/ B(h, {
659
641
  className: "mb-6",
660
642
  children: [
661
643
  /*#__PURE__*/ B("div", {
@@ -665,7 +647,7 @@ function ge({ form: e, disabled: t = !1 }) {
665
647
  name: "portFrom",
666
648
  children: (r) => /*#__PURE__*/ z("div", {
667
649
  className: "flex-1",
668
- children: /*#__PURE__*/ z(l, {
650
+ children: /*#__PURE__*/ z(v, {
669
651
  id: "portFrom",
670
652
  name: "portFrom",
671
653
  label: n._({ id: "LMdsuJ" }),
@@ -688,7 +670,7 @@ function ge({ form: e, disabled: t = !1 }) {
688
670
  name: "portTo",
689
671
  children: (t) => /*#__PURE__*/ z("div", {
690
672
  className: "flex-1",
691
- children: /*#__PURE__*/ z(l, {
673
+ children: /*#__PURE__*/ z(v, {
692
674
  id: "portTo",
693
675
  name: "portTo",
694
676
  label: n._({ id: "a12lSo" }),
@@ -717,9 +699,9 @@ function ge({ form: e, disabled: t = !1 }) {
717
699
  }
718
700
  //#endregion
719
701
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/IcmpSection.tsx
720
- function _e({ form: e, disabled: t = !1 }) {
721
- let { i18n: n, _: r } = q();
722
- return /*#__PURE__*/ z(p, {
702
+ function ve({ form: e, disabled: t = !1 }) {
703
+ let { i18n: n, _: r } = J();
704
+ return /*#__PURE__*/ z(h, {
723
705
  className: "mb-6",
724
706
  children: /*#__PURE__*/ B("div", {
725
707
  className: "flex w-full gap-4",
@@ -727,7 +709,7 @@ function _e({ form: e, disabled: t = !1 }) {
727
709
  name: "icmpType",
728
710
  children: (e) => /*#__PURE__*/ z("div", {
729
711
  className: "flex-1",
730
- children: /*#__PURE__*/ z(l, {
712
+ children: /*#__PURE__*/ z(v, {
731
713
  id: "icmpType",
732
714
  name: "icmpType",
733
715
  label: n._({ id: "yPWFWy" }),
@@ -742,7 +724,7 @@ function _e({ form: e, disabled: t = !1 }) {
742
724
  name: "icmpCode",
743
725
  children: (e) => /*#__PURE__*/ z("div", {
744
726
  className: "flex-1",
745
- children: /*#__PURE__*/ z(l, {
727
+ children: /*#__PURE__*/ z(v, {
746
728
  id: "icmpCode",
747
729
  name: "icmpCode",
748
730
  label: n._({ id: "76RKuS" }),
@@ -759,17 +741,17 @@ function _e({ form: e, disabled: t = !1 }) {
759
741
  }
760
742
  //#endregion
761
743
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/RemoteSourceSection.tsx
762
- function ve({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
763
- let { i18n: r, _: i } = q();
744
+ function ye({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
745
+ let { i18n: i, _: a } = J();
764
746
  return /*#__PURE__*/ B(R, { children: [
765
747
  /*#__PURE__*/ z(e.Field, {
766
748
  name: "remoteSourceType",
767
749
  mode: "value",
768
- children: (n) => /*#__PURE__*/ z(p, {
750
+ children: (n) => /*#__PURE__*/ z(h, {
769
751
  className: "mb-1",
770
- children: /*#__PURE__*/ z(v, {
752
+ children: /*#__PURE__*/ z(D, {
771
753
  name: "remoteSourceType",
772
- label: r._({ id: "I5kZVK" }),
754
+ label: i._({ id: "I5kZVK" }),
773
755
  selected: n.state.value,
774
756
  onChange: (t) => {
775
757
  let r = String(t);
@@ -778,12 +760,12 @@ function ve({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
778
760
  disabled: t,
779
761
  children: /*#__PURE__*/ B("div", {
780
762
  className: "flex gap-4",
781
- children: [/*#__PURE__*/ z(C, {
763
+ children: [/*#__PURE__*/ z(c, {
782
764
  value: "cidr",
783
- label: r._({ id: "4uXhtt" })
784
- }), /*#__PURE__*/ z(C, {
765
+ label: i._({ id: "4uXhtt" })
766
+ }), /*#__PURE__*/ z(c, {
785
767
  value: "security_group",
786
- label: r._({ id: "bwhBhT" })
768
+ label: i._({ id: "bwhBhT" })
787
769
  })]
788
770
  })
789
771
  })
@@ -795,16 +777,16 @@ function ve({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
795
777
  name: "remoteCidr",
796
778
  children: (n) => /*#__PURE__*/ z(e.Field, {
797
779
  name: "ethertype",
798
- children: (e) => /*#__PURE__*/ z(p, {
780
+ children: (e) => /*#__PURE__*/ z(h, {
799
781
  className: "mb-6",
800
- children: /*#__PURE__*/ z(l, {
782
+ children: /*#__PURE__*/ z(v, {
801
783
  id: "remoteCidr",
802
784
  name: "remoteCidr",
803
- label: r._({ id: "vmYyLY" }),
785
+ label: i._({ id: "vmYyLY" }),
804
786
  value: n.state.value,
805
787
  onChange: (e) => n.handleChange(e.target.value),
806
788
  errortext: n.state.meta.errors[0]?.message,
807
- placeholder: e.state.value === "IPv4" ? oe : se,
789
+ placeholder: e.state.value === "IPv4" ? se : ce,
808
790
  disabled: t
809
791
  })
810
792
  })
@@ -813,21 +795,21 @@ function ve({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
813
795
  }),
814
796
  /*#__PURE__*/ z(e.Field, {
815
797
  name: "remoteSourceType",
816
- children: (i) => i.state.value === "security_group" ? /*#__PURE__*/ z(e.Field, {
798
+ children: (a) => a.state.value === "security_group" ? /*#__PURE__*/ z(e.Field, {
817
799
  name: "remoteSecurityGroupId",
818
- children: (e) => /*#__PURE__*/ z(p, {
800
+ children: (e) => /*#__PURE__*/ z(h, {
819
801
  className: "mb-6",
820
- children: /*#__PURE__*/ B(h, {
802
+ children: /*#__PURE__*/ B(T, {
821
803
  id: "remoteSecurityGroupId",
822
- label: r._({ id: "i9TIyi" }),
804
+ label: i._({ id: "i9TIyi" }),
823
805
  value: e.state.value,
824
806
  onChange: (t) => e.handleChange(String(t)),
825
807
  errortext: e.state.meta.errors[0]?.message,
826
808
  disabled: t,
827
- children: [/*#__PURE__*/ z(y, {
809
+ children: [/*#__PURE__*/ z(r, {
828
810
  value: "",
829
- label: r._({ id: "ZvIpwi" })
830
- }), n.map((e) => /*#__PURE__*/ z(y, {
811
+ label: i._({ id: "ZvIpwi" })
812
+ }), n.map((e) => /*#__PURE__*/ z(r, {
831
813
  value: e.id,
832
814
  label: e.name || e.id
833
815
  }, e.id))]
@@ -839,13 +821,13 @@ function ve({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
839
821
  }
840
822
  //#endregion
841
823
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/DescriptionSection.tsx
842
- function ye({ form: e, disabled: t = !1 }) {
843
- let { i18n: n, _: r } = q();
824
+ function be({ form: e, disabled: t = !1 }) {
825
+ let { i18n: n, _: r } = J();
844
826
  return /*#__PURE__*/ z(e.Field, {
845
827
  name: "description",
846
- children: (e) => /*#__PURE__*/ z(p, {
828
+ children: (e) => /*#__PURE__*/ z(h, {
847
829
  className: "mb-0",
848
- children: /*#__PURE__*/ z(g, {
830
+ children: /*#__PURE__*/ z(C, {
849
831
  id: "description",
850
832
  name: "description",
851
833
  label: n._({ id: "Nu4oKW" }),
@@ -860,10 +842,10 @@ function ye({ form: e, disabled: t = !1 }) {
860
842
  }
861
843
  //#endregion
862
844
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/AddRuleModal.tsx
863
- var be = ({ securityGroupId: e, open: n, onClose: r, onCreate: o, isLoading: s = !1, error: c = null, availableSecurityGroups: l = [] }) => {
864
- let { i18n: u, _: d } = q(), f = Y({
865
- defaultValues: ue,
866
- validators: { onSubmit: le },
845
+ var xe = ({ securityGroupId: e, open: t, onClose: r, onCreate: a, isLoading: s = !1, error: c = null, availableSecurityGroups: l = [] }) => {
846
+ let { i18n: u, _: f } = J(), m = X({
847
+ defaultValues: de,
848
+ validators: { onSubmit: ue },
867
849
  onSubmit: async ({ value: t }) => {
868
850
  if (s) return;
869
851
  let n = {
@@ -878,39 +860,39 @@ var be = ({ securityGroupId: e, open: n, onClose: r, onCreate: o, isLoading: s =
878
860
  };
879
861
  if ((t.protocol === "tcp" || t.protocol === "udp") && t.portFrom) {
880
862
  let e = parseInt(t.portFrom, 10);
881
- n.port_range_min = e, t.portTo ? n.port_range_max = parseInt(t.portTo, 10) : n.port_range_max = e;
863
+ n.port_range_min = e, n.port_range_max = t.portTo ? parseInt(t.portTo, 10) : e;
882
864
  }
883
- (t.protocol === "icmp" || t.protocol === "ipv6-icmp") && (t.icmpType && (n.port_range_min = parseInt(t.icmpType, 10)), t.icmpCode && (n.port_range_max = parseInt(t.icmpCode, 10))), t.remoteSourceType === "cidr" && t.remoteCidr ? n.remote_ip_prefix = t.remoteCidr : t.remoteSourceType === "security_group" && t.remoteSecurityGroupId && (n.remote_group_id = t.remoteSecurityGroupId), await o(n), p();
865
+ (t.protocol === "icmp" || t.protocol === "ipv6-icmp") && (t.icmpType && (n.port_range_min = parseInt(t.icmpType, 10)), t.icmpCode && (n.port_range_max = parseInt(t.icmpCode, 10))), t.remoteSourceType === "cidr" && t.remoteCidr ? n.remote_ip_prefix = t.remoteCidr : t.remoteSourceType === "security_group" && t.remoteSecurityGroupId && (n.remote_group_id = t.remoteSecurityGroupId), await a(n), h();
884
866
  }
885
- }), p = () => {
886
- f.reset(), r();
867
+ }), h = () => {
868
+ m.reset(), r();
887
869
  };
888
- return /*#__PURE__*/ B(w, {
889
- open: n,
890
- onCancel: p,
870
+ return /*#__PURE__*/ B(i, {
871
+ open: t,
872
+ onCancel: h,
891
873
  size: "large",
892
874
  title: u._({ id: "b2BLBa" }),
893
- modalFooter: /*#__PURE__*/ z(_, {
875
+ modalFooter: /*#__PURE__*/ z(o, {
894
876
  className: "flex justify-end",
895
- children: /*#__PURE__*/ z(f.Subscribe, { children: (e) => {
877
+ children: /*#__PURE__*/ z(m.Subscribe, { children: (e) => {
896
878
  let t = !!e.values.ruleType;
897
- return /*#__PURE__*/ B(D, { children: [/*#__PURE__*/ z(O, {
879
+ return /*#__PURE__*/ B(g, { children: [/*#__PURE__*/ z(p, {
898
880
  variant: "default",
899
- onClick: p,
881
+ onClick: h,
900
882
  disabled: s || e.isSubmitting,
901
- children: /*#__PURE__*/ z(K, { id: "dEgA5A" })
902
- }), /*#__PURE__*/ z(O, {
883
+ children: /*#__PURE__*/ z(q, { id: "dEgA5A" })
884
+ }), /*#__PURE__*/ z(p, {
903
885
  variant: "primary",
904
886
  type: "button",
905
- onClick: () => f.handleSubmit(),
887
+ onClick: () => m.handleSubmit(),
906
888
  disabled: s || e.isSubmitting || !t,
907
889
  "data-testid": "add-rule-button",
908
- children: e.isSubmitting || s ? /*#__PURE__*/ z(a, { size: "small" }) : /*#__PURE__*/ z(K, { id: "bmQLn5" })
890
+ children: e.isSubmitting || s ? /*#__PURE__*/ z(d, { size: "small" }) : /*#__PURE__*/ z(q, { id: "bmQLn5" })
909
891
  })] });
910
892
  } })
911
893
  }),
912
894
  children: [
913
- c && /*#__PURE__*/ z(t, {
895
+ c && /*#__PURE__*/ z(n, {
914
896
  dismissible: !1,
915
897
  variant: "error",
916
898
  className: "mb-4",
@@ -918,52 +900,52 @@ var be = ({ securityGroupId: e, open: n, onClose: r, onCreate: o, isLoading: s =
918
900
  }),
919
901
  s && /*#__PURE__*/ B("div", {
920
902
  className: "mb-4 flex items-center justify-center gap-2",
921
- children: [/*#__PURE__*/ z(a, { variant: "primary" }), /*#__PURE__*/ z("span", {
903
+ children: [/*#__PURE__*/ z(d, { variant: "primary" }), /*#__PURE__*/ z("span", {
922
904
  className: "text-theme-secondary text-sm",
923
- children: /*#__PURE__*/ z(K, { id: "gU7JFm" })
905
+ children: /*#__PURE__*/ z(q, { id: "gU7JFm" })
924
906
  })]
925
907
  }),
926
- /*#__PURE__*/ z(S, {
908
+ /*#__PURE__*/ z(E, {
927
909
  className: "mb-6",
928
910
  onSubmit: (e) => {
929
- e.preventDefault(), f.handleSubmit();
911
+ e.preventDefault(), m.handleSubmit();
930
912
  },
931
- children: /*#__PURE__*/ B(i, {
913
+ children: /*#__PURE__*/ B(x, {
932
914
  className: "mb-6",
933
- children: [/*#__PURE__*/ z(fe, {
934
- form: f,
915
+ children: [/*#__PURE__*/ z(pe, {
916
+ form: m,
935
917
  disabled: s
936
- }), /*#__PURE__*/ z(f.Subscribe, { children: (e) => {
918
+ }), /*#__PURE__*/ z(m.Subscribe, { children: (e) => {
937
919
  if (!e.values.ruleType) return null;
938
920
  let t = (e.values.protocol === "tcp" || e.values.protocol === "udp") && ["custom-tcp", "custom-udp"].includes(e.values.ruleType), n = e.values.protocol === "icmp" || e.values.protocol === "ipv6-icmp";
939
921
  return /*#__PURE__*/ B(R, { children: [
940
- /*#__PURE__*/ z(pe, {
941
- form: f,
922
+ /*#__PURE__*/ z(me, {
923
+ form: m,
942
924
  disabled: s
943
925
  }),
944
- e.values.ruleType === "other-protocol" && /*#__PURE__*/ z(he, {
945
- form: f,
926
+ e.values.ruleType === "other-protocol" && /*#__PURE__*/ z(ge, {
927
+ form: m,
946
928
  disabled: s
947
929
  }),
948
- t && /*#__PURE__*/ z(ge, {
949
- form: f,
930
+ t && /*#__PURE__*/ z(_e, {
931
+ form: m,
950
932
  disabled: s
951
933
  }),
952
- n && /*#__PURE__*/ z(_e, {
953
- form: f,
934
+ n && /*#__PURE__*/ z(ve, {
935
+ form: m,
954
936
  disabled: s
955
937
  }),
956
- /*#__PURE__*/ z(ve, {
957
- form: f,
938
+ /*#__PURE__*/ z(ye, {
939
+ form: m,
958
940
  disabled: s,
959
941
  availableSecurityGroups: l
960
942
  }),
961
- e.values.remoteSourceType === "security_group" && /*#__PURE__*/ z(me, {
962
- form: f,
943
+ e.values.remoteSourceType === "security_group" && /*#__PURE__*/ z(he, {
944
+ form: m,
963
945
  disabled: s
964
946
  }),
965
- /*#__PURE__*/ z(ye, {
966
- form: f,
947
+ /*#__PURE__*/ z(be, {
948
+ form: m,
967
949
  disabled: s
968
950
  })
969
951
  ] });
@@ -975,20 +957,20 @@ var be = ({ securityGroupId: e, open: n, onClose: r, onCreate: o, isLoading: s =
975
957
  };
976
958
  //#endregion
977
959
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupRulesTable.tsx
978
- function xe({ rules: t, totalRulesCount: i, onDeleteRule: a, isDeletingRule: s, deleteError: l, searchTerm: u = "", onSearchChange: d, sortSettings: p, onSortChange: h, filterSettings: g, onFilterChange: _, securityGroupId: v, onCreateRule: y, isCreatingRule: x = !1, createRuleError: S = null, availableSecurityGroups: C = [], canCreateRule: w, canDeleteRule: D }) {
979
- let { i18n: k, _: A } = q(), [j, I] = W(null), [L, ee] = M(), [H, G] = W(u), J = U(void 0);
980
- V(() => () => clearTimeout(J.current), []);
960
+ function Se({ rules: e, totalRulesCount: n, onDeleteRule: r, isDeletingRule: i, deleteError: a, searchTerm: o = "", onSearchChange: c, sortSettings: d, onSortChange: h, filterSettings: g, onFilterChange: v, securityGroupId: y, onCreateRule: x, isCreatingRule: S = !1, createRuleError: C = null, availableSecurityGroups: T = [], canCreateRule: E, canDeleteRule: D }) {
961
+ let { i18n: k, _: A } = J(), [j, N] = G(null), [L, ee] = P(), [V, U] = G(o), K = W(void 0);
962
+ H(() => () => clearTimeout(K.current), []);
981
963
  let Y = (e) => {
982
- I(e);
964
+ N(e);
983
965
  }, X = (e) => {
984
- a(e);
985
- }, te = () => {
986
- s || I(null);
966
+ r(e);
967
+ }, Z = () => {
968
+ i || N(null);
987
969
  };
988
- V(() => {
989
- !s && !l && I(null);
990
- }, [s, l]);
991
- let Z = (e) => {
970
+ H(() => {
971
+ !i && !a && N(null);
972
+ }, [i, a]);
973
+ let te = (e) => {
992
974
  if (e.protocol === "icmp" || e.protocol === "ipv6-icmp") {
993
975
  if (e.port_range_min !== null && e.port_range_max !== null) {
994
976
  let t = e.port_range_min, n = e.port_range_max;
@@ -1003,238 +985,241 @@ function xe({ rules: t, totalRulesCount: i, onDeleteRule: a, isDeletingRule: s,
1003
985
  return k._({ id: "eKC+EC" });
1004
986
  }
1005
987
  return e.port_range_min === null || e.port_range_max === null ? k._({ id: "eKC+EC" }) : e.port_range_min === e.port_range_max ? String(e.port_range_min) : `${e.port_range_min}-${e.port_range_max}`;
1006
- }, Q = t.length, $ = i;
988
+ }, Q = e.length, $ = n;
1007
989
  return /*#__PURE__*/ B(R, { children: [
1008
- /*#__PURE__*/ B(E, {
990
+ /*#__PURE__*/ B(f, {
1009
991
  direction: "vertical",
1010
992
  gap: "4",
1011
993
  children: [
1012
- /*#__PURE__*/ B(E, {
994
+ /*#__PURE__*/ B(f, {
1013
995
  distribution: "between",
1014
996
  alignment: "center",
1015
997
  gap: "2",
1016
998
  className: "pb-2",
1017
999
  children: [/*#__PURE__*/ z("span", {
1018
1000
  className: "theme-color-text-light text-sm",
1019
- children: $ !== void 0 && Q !== $ ? /*#__PURE__*/ z(K, {
1001
+ children: $ !== void 0 && Q !== $ ? /*#__PURE__*/ z(q, {
1020
1002
  id: "xuVMLX",
1021
1003
  values: {
1022
1004
  rulesLength: Q,
1023
1005
  totalCount: $
1024
1006
  }
1025
- }) : /*#__PURE__*/ z(K, {
1007
+ }) : /*#__PURE__*/ z(q, {
1026
1008
  id: "UHciG3",
1027
1009
  values: { rulesLength: Q }
1028
1010
  })
1029
- }), /*#__PURE__*/ B(E, {
1011
+ }), /*#__PURE__*/ B(f, {
1030
1012
  gap: "2",
1031
- children: [p && h && /*#__PURE__*/ z(N, {
1032
- options: p.options,
1033
- sortBy: p.sortBy,
1034
- sortDirection: p.sortDirection ?? "asc",
1013
+ children: [d && h && /*#__PURE__*/ z(M, {
1014
+ options: d.options,
1015
+ sortBy: d.sortBy,
1016
+ sortDirection: d.sortDirection ?? "asc",
1017
+ selectClassName: "min-w-40",
1035
1018
  onSortByChange: (e) => h({
1036
- ...p,
1019
+ ...d,
1037
1020
  sortBy: e,
1038
- sortDirection: p.sortDirection
1021
+ sortDirection: d.sortDirection
1039
1022
  }),
1040
1023
  onSortDirectionChange: (e) => h({
1041
- ...p,
1024
+ ...d,
1042
1025
  sortDirection: e
1043
1026
  })
1044
- }), w && y && /*#__PURE__*/ z(O, {
1027
+ }), E && x && /*#__PURE__*/ z(p, {
1045
1028
  variant: "primary",
1046
1029
  icon: "addCircle",
1047
1030
  onClick: ee,
1048
1031
  className: "whitespace-nowrap",
1049
- children: /*#__PURE__*/ z(K, { id: "O8tK4v" })
1032
+ children: /*#__PURE__*/ z(q, { id: "O8tK4v" })
1050
1033
  })]
1051
1034
  })]
1052
1035
  }),
1053
- (g || d) && /*#__PURE__*/ z(m, { children: /*#__PURE__*/ B(E, {
1036
+ (g || c) && /*#__PURE__*/ z(_, { children: /*#__PURE__*/ B(f, {
1054
1037
  direction: "vertical",
1055
1038
  gap: "2",
1056
- children: [/*#__PURE__*/ B(E, {
1039
+ children: [/*#__PURE__*/ B(f, {
1057
1040
  distribution: "between",
1058
1041
  alignment: "center",
1059
- children: [g && _ && /*#__PURE__*/ z(F, {
1042
+ children: [g && v && /*#__PURE__*/ z(I, {
1060
1043
  filters: g.filters,
1044
+ selectClassName: "sm:min-w-40",
1045
+ comboboxClassName: "sm:min-w-40",
1061
1046
  onChange: (e) => {
1062
1047
  if ((g.selectedFilters || []).some((t) => t.name === e.name && t.value === e.value)) return;
1063
1048
  let t = g.filters.find((t) => t.filterName === e.name)?.supportsMultiValue ? [...g.selectedFilters || [], e] : [...(g.selectedFilters || []).filter((t) => t.name !== e.name), e];
1064
- _({
1049
+ v({
1065
1050
  ...g,
1066
1051
  selectedFilters: t
1067
1052
  });
1068
1053
  }
1069
- }), d && /*#__PURE__*/ z(b, {
1054
+ }), c && /*#__PURE__*/ z(t, {
1070
1055
  placeholder: k._({ id: "HMV+cw" }),
1071
1056
  "data-testid": "searchbar",
1072
- value: H,
1057
+ value: V,
1073
1058
  onInput: (e) => {
1074
1059
  let t = e.currentTarget.value;
1075
- G(t), clearTimeout(J.current), J.current = window.setTimeout(() => d(t), 500);
1060
+ U(t), clearTimeout(K.current), K.current = window.setTimeout(() => c(t), 500);
1076
1061
  },
1077
1062
  onSearch: (e) => {
1078
- clearTimeout(J.current), d(typeof e == "string" ? e : "");
1063
+ clearTimeout(K.current), c(typeof e == "string" ? e : "");
1079
1064
  },
1080
1065
  onClear: () => {
1081
- clearTimeout(J.current), G(""), d("");
1066
+ clearTimeout(K.current), U(""), c("");
1082
1067
  }
1083
1068
  })]
1084
- }), g?.selectedFilters && g.selectedFilters.length > 0 && /*#__PURE__*/ z(P, {
1069
+ }), g?.selectedFilters && g.selectedFilters.length > 0 && /*#__PURE__*/ z(F, {
1085
1070
  selectedFilters: g.selectedFilters,
1086
- onDelete: (e) => _?.({
1071
+ onDelete: (e) => v?.({
1087
1072
  ...g,
1088
- selectedFilters: (g.selectedFilters || []).filter((t) => !(t.name === e.name && t.value === e.value))
1073
+ selectedFilters: (g.selectedFilters || []).filter((t) => t.name !== e.name || t.value !== e.value)
1089
1074
  }),
1090
- onClear: () => _?.({
1075
+ onClear: () => v?.({
1091
1076
  ...g,
1092
1077
  selectedFilters: []
1093
1078
  })
1094
1079
  })]
1095
1080
  }) }),
1096
- t.length === 0 ? /*#__PURE__*/ z(K, { id: "nnxwBn" }) : /*#__PURE__*/ B(o, {
1081
+ e.length === 0 ? /*#__PURE__*/ z(q, { id: "nnxwBn" }) : /*#__PURE__*/ B(b, {
1097
1082
  columns: D ? 6 : 5,
1098
1083
  className: "security-group-rules-table",
1099
- children: [/*#__PURE__*/ B(n, { children: [
1100
- /*#__PURE__*/ z(c, { children: k._({ id: "MRB7nI" }) }),
1101
- /*#__PURE__*/ z(c, { children: k._({ id: "Nu4oKW" }) }),
1102
- /*#__PURE__*/ z(c, { children: k._({ id: "yp0UjB" }) }),
1103
- /*#__PURE__*/ z(c, { children: k._({ id: "6+OdGi" }) }),
1104
- /*#__PURE__*/ z(c, { children: k._({ id: "6jAi8c" }) }),
1105
- D && /*#__PURE__*/ z(c, { children: k._({ id: "7L01XJ" }) })
1106
- ] }), t.map((t) => /*#__PURE__*/ B(n, {
1107
- "data-testid": `rule-row-${t.id}`,
1084
+ children: [/*#__PURE__*/ B(u, { children: [
1085
+ /*#__PURE__*/ z(l, { children: k._({ id: "MRB7nI" }) }),
1086
+ /*#__PURE__*/ z(l, { children: k._({ id: "Nu4oKW" }) }),
1087
+ /*#__PURE__*/ z(l, { children: k._({ id: "yp0UjB" }) }),
1088
+ /*#__PURE__*/ z(l, { children: k._({ id: "6+OdGi" }) }),
1089
+ /*#__PURE__*/ z(l, { children: k._({ id: "6jAi8c" }) }),
1090
+ D && /*#__PURE__*/ z(l, { children: k._({ id: "7L01XJ" }) })
1091
+ ] }), e.map((e) => /*#__PURE__*/ B(u, {
1092
+ "data-testid": `rule-row-${e.id}`,
1108
1093
  children: [
1109
- /*#__PURE__*/ z(r, { children: t.direction || k._({ id: "h47p9L" }) }),
1110
- /*#__PURE__*/ z(r, { children: t.description || k._({ id: "h47p9L" }) }),
1111
- /*#__PURE__*/ z(r, { children: t.ethertype }),
1112
- /*#__PURE__*/ z(r, { children: t.protocol || k._({ id: "eKC+EC" }) }),
1113
- /*#__PURE__*/ z(r, { children: Z(t) }),
1114
- D && /*#__PURE__*/ z(r, {
1094
+ /*#__PURE__*/ z(w, { children: e.direction || k._({ id: "h47p9L" }) }),
1095
+ /*#__PURE__*/ z(w, { children: e.description || k._({ id: "h47p9L" }) }),
1096
+ /*#__PURE__*/ z(w, { children: e.ethertype }),
1097
+ /*#__PURE__*/ z(w, { children: e.protocol || k._({ id: "eKC+EC" }) }),
1098
+ /*#__PURE__*/ z(w, { children: te(e) }),
1099
+ D && /*#__PURE__*/ z(w, {
1115
1100
  onClick: (e) => e.stopPropagation(),
1116
1101
  className: "items-end justify-end pr-0",
1117
- children: /*#__PURE__*/ z(T, { children: /*#__PURE__*/ z(e, { children: /*#__PURE__*/ z(f, {
1102
+ children: /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(m, { children: /*#__PURE__*/ z(O, {
1118
1103
  label: k._({ id: "cnGeoo" }),
1119
- onClick: () => Y(t)
1104
+ onClick: () => Y(e)
1120
1105
  }) }) })
1121
1106
  })
1122
1107
  ]
1123
- }, t.id))]
1108
+ }, e.id))]
1124
1109
  })
1125
1110
  ]
1126
1111
  }),
1127
1112
  D && /*#__PURE__*/ z(ne, {
1128
1113
  rule: j,
1129
1114
  open: !!j,
1130
- onClose: te,
1115
+ onClose: Z,
1131
1116
  onConfirm: X,
1132
- isLoading: s,
1133
- error: l
1117
+ isLoading: i,
1118
+ error: a
1134
1119
  }),
1135
- w && v && y && L && /*#__PURE__*/ z(be, {
1136
- securityGroupId: v,
1120
+ E && y && x && L && /*#__PURE__*/ z(xe, {
1121
+ securityGroupId: y,
1137
1122
  open: L,
1138
1123
  onClose: ee,
1139
- onCreate: y,
1140
- isLoading: x,
1141
- error: S,
1142
- availableSecurityGroups: C
1124
+ onCreate: x,
1125
+ isLoading: S,
1126
+ error: C,
1127
+ availableSecurityGroups: T
1143
1128
  })
1144
1129
  ] });
1145
1130
  }
1146
1131
  //#endregion
1147
1132
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/RBACPolicyRow.tsx
1148
- function Se({ policy: t, onDelete: i, canDelete: a }) {
1149
- let { i18n: o, _: s } = q();
1150
- return /*#__PURE__*/ B(n, { children: [
1151
- /*#__PURE__*/ z(r, { children: t.target_tenant }),
1152
- /*#__PURE__*/ z(r, { children: t.action }),
1153
- /*#__PURE__*/ z(r, {
1133
+ function Ce({ policy: e, onDelete: t, canDelete: n }) {
1134
+ let { i18n: r, _: i } = J();
1135
+ return /*#__PURE__*/ B(u, { children: [
1136
+ /*#__PURE__*/ z(w, { children: e.target_tenant }),
1137
+ /*#__PURE__*/ z(w, { children: e.action }),
1138
+ /*#__PURE__*/ z(w, {
1154
1139
  onClick: (e) => e.stopPropagation(),
1155
1140
  className: "items-end justify-end pr-0",
1156
- children: a && /*#__PURE__*/ z(T, { children: /*#__PURE__*/ z(e, { children: /*#__PURE__*/ z(f, {
1157
- label: o._({ id: "t/YqKh" }),
1158
- onClick: i
1141
+ children: n && /*#__PURE__*/ z(s, { children: /*#__PURE__*/ z(m, { children: /*#__PURE__*/ z(O, {
1142
+ label: r._({ id: "t/YqKh" }),
1143
+ onClick: t
1159
1144
  }) }) })
1160
1145
  })
1161
1146
  ] });
1162
1147
  }
1163
1148
  //#endregion
1164
1149
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRBACPolicyModal.tsx
1165
- var Ce = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, we = /^[0-9a-f]{32}$/i;
1166
- function Te(e) {
1167
- return Ce.test(e) || we.test(e);
1150
+ var we = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, Te = /^[0-9a-f]{32}$/i;
1151
+ function Ee(e) {
1152
+ return we.test(e) || Te.test(e);
1168
1153
  }
1169
- function Ee({ isOpen: e, onClose: n, securityGroupId: r }) {
1170
- let { i18n: a, _: o } = q(), s = k.useUtils(), c = j(), [u, d] = W(!1), f = J.object({ targetTenant: J.string().min(1, a._({ id: "1RwosK" })).refine(Te, { message: a._({ id: "CunRry" }) }) }), p = k.network.rbacPolicy.create.useMutation({ onSuccess: () => {
1154
+ function De({ isOpen: e, onClose: t, securityGroupId: r }) {
1155
+ let { i18n: a, _: o } = J(), s = k.useUtils(), c = j(), [l, u] = G(!1), d = Y.object({ targetTenant: Y.string().min(1, a._({ id: "1RwosK" })).refine(Ee, { message: a._({ id: "CunRry" }) }) }), f = k.network.rbacPolicy.create.useMutation({ onSuccess: () => {
1171
1156
  s.network.rbacPolicy.list.invalidate({
1172
1157
  project_id: c,
1173
1158
  securityGroupId: r
1174
1159
  }), s.network.securityGroup.getById.invalidate({
1175
1160
  project_id: c,
1176
1161
  securityGroupId: r
1177
- }), h();
1178
- } }), m = Y({
1162
+ }), m();
1163
+ } }), p = X({
1179
1164
  defaultValues: { targetTenant: "" },
1180
- validators: { onSubmit: f },
1165
+ validators: { onSubmit: d },
1181
1166
  onSubmit: async ({ value: e }) => {
1182
- p.isPending || p.mutate({
1167
+ f.isPending || f.mutate({
1183
1168
  project_id: c,
1184
1169
  securityGroupId: r,
1185
1170
  targetTenant: e.targetTenant.trim()
1186
1171
  });
1187
1172
  }
1188
- }), h = () => {
1189
- m.reset(), p.reset(), d(!1), n();
1190
- }, g = async () => {
1191
- d(!0), await m.handleSubmit();
1173
+ }), m = () => {
1174
+ p.reset(), f.reset(), u(!1), t();
1175
+ }, h = async () => {
1176
+ u(!0), await p.handleSubmit();
1192
1177
  };
1193
- return /*#__PURE__*/ B(w, {
1178
+ return /*#__PURE__*/ B(i, {
1194
1179
  open: e,
1195
- onCancel: h,
1180
+ onCancel: m,
1196
1181
  title: a._({ id: "vmRPFm" }),
1197
1182
  size: "large",
1198
- onConfirm: g,
1183
+ onConfirm: h,
1199
1184
  cancelButtonLabel: a._({ id: "dEgA5A" }),
1200
1185
  confirmButtonLabel: a._({ id: "Z8lGw6" }),
1201
- disableConfirmButton: p.isPending,
1186
+ disableConfirmButton: f.isPending,
1202
1187
  children: [
1203
- p.error && /*#__PURE__*/ z(t, {
1188
+ f.error && /*#__PURE__*/ z(n, {
1204
1189
  variant: "error",
1205
1190
  className: "mb-4",
1206
1191
  children: (() => {
1207
- let e = p.error.message.toLowerCase();
1208
- return e.includes("conflict") || e.includes("409") ? a._({ id: "rbuO5A" }) : e.includes("not found") || e.includes("404") ? a._({ id: "FwSyEp" }) : e.includes("forbidden") || e.includes("403") ? a._({ id: "kqJVBO" }) : p.error.message;
1192
+ let e = f.error.message.toLowerCase();
1193
+ return e.includes("conflict") || e.includes("409") ? a._({ id: "rbuO5A" }) : e.includes("not found") || e.includes("404") ? a._({ id: "FwSyEp" }) : e.includes("forbidden") || e.includes("403") ? a._({ id: "kqJVBO" }) : f.error.message;
1209
1194
  })()
1210
1195
  }),
1211
1196
  /*#__PURE__*/ z("p", {
1212
1197
  className: "mb-4",
1213
- children: /*#__PURE__*/ z(K, { id: "cjEOmc" })
1198
+ children: /*#__PURE__*/ z(q, { id: "cjEOmc" })
1214
1199
  }),
1215
- /*#__PURE__*/ z(S, {
1200
+ /*#__PURE__*/ z(E, {
1216
1201
  className: "mb-0",
1217
1202
  onSubmit: (e) => {
1218
- e.preventDefault(), g();
1203
+ e.preventDefault(), h();
1219
1204
  },
1220
- children: /*#__PURE__*/ z(i, { children: /*#__PURE__*/ z(m.Field, {
1205
+ children: /*#__PURE__*/ z(x, { children: /*#__PURE__*/ z(p.Field, {
1221
1206
  name: "targetTenant",
1222
1207
  validators: {
1223
1208
  onBlur: ({ value: e }) => {
1224
1209
  let t = e.trim();
1225
1210
  if (!t) return a._({ id: "1RwosK" });
1226
- if (!Te(t)) return a._({ id: "CunRry" });
1211
+ if (!Ee(t)) return a._({ id: "CunRry" });
1227
1212
  },
1228
1213
  onChange: ({ value: e }) => {
1229
- if (!u) return;
1214
+ if (!l) return;
1230
1215
  let t = e.trim();
1231
1216
  if (!t) return a._({ id: "1RwosK" });
1232
- if (!Te(t)) return a._({ id: "CunRry" });
1217
+ if (!Ee(t)) return a._({ id: "CunRry" });
1233
1218
  }
1234
1219
  },
1235
1220
  children: (e) => {
1236
- let t = (e.state.meta.isTouched || u) && e.state.meta.errors.length > 0, n = e.state.meta.errors[0], r = t ? typeof n == "string" ? n : n?.message : void 0;
1237
- return /*#__PURE__*/ z(l, {
1221
+ let t = (e.state.meta.isTouched || l) && e.state.meta.errors.length > 0, n = e.state.meta.errors[0], r = t ? typeof n == "string" ? n : n?.message : void 0;
1222
+ return /*#__PURE__*/ z(v, {
1238
1223
  id: e.name,
1239
1224
  name: e.name,
1240
1225
  label: a._({ id: "WzVwU0" }),
@@ -1244,7 +1229,7 @@ function Ee({ isOpen: e, onClose: n, securityGroupId: r }) {
1244
1229
  placeholder: a._({ id: "he4q+i" }),
1245
1230
  required: !0,
1246
1231
  helptext: a._({ id: "PkfPsB" }),
1247
- disabled: p.isPending,
1232
+ disabled: f.isPending,
1248
1233
  errortext: r,
1249
1234
  invalid: t
1250
1235
  });
@@ -1256,18 +1241,18 @@ function Ee({ isOpen: e, onClose: n, securityGroupId: r }) {
1256
1241
  }
1257
1242
  //#endregion
1258
1243
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/DeleteRBACPolicyDialog.tsx
1259
- function De({ policy: e, open: n, onClose: r, onConfirm: a, isLoading: o, error: s }) {
1260
- let { i18n: c, _: u } = q(), d = Y({
1244
+ function Oe({ policy: e, open: t, onClose: r, onConfirm: a, isLoading: o, error: s }) {
1245
+ let { i18n: c, _: l } = J(), u = Y.object({ confirmText: Y.string().refine((e) => e === "remove", { message: c._({ id: "SVLToM" }) }) }), d = X({
1261
1246
  defaultValues: { confirmText: "" },
1262
- validators: { onSubmit: J.object({ confirmText: J.string().refine((e) => e === "remove", { message: c._({ id: "SVLToM" }) }) }) },
1247
+ validators: { onSubmit: u },
1263
1248
  onSubmit: async () => {
1264
1249
  o || (a(e.id), p());
1265
1250
  }
1266
- }), f = X(d.store, (e) => e.isSubmitting || e.values.confirmText !== "remove"), p = () => {
1251
+ }), f = Z(d.store, (e) => e.isSubmitting || e.values.confirmText !== "remove"), p = () => {
1267
1252
  d.reset(), r();
1268
1253
  };
1269
- return /*#__PURE__*/ z(w, {
1270
- open: n,
1254
+ return /*#__PURE__*/ z(i, {
1255
+ open: t,
1271
1256
  onCancel: p,
1272
1257
  size: "small",
1273
1258
  title: c._({ id: "Dt5W9T" }),
@@ -1276,53 +1261,53 @@ function De({ policy: e, open: n, onClose: r, onConfirm: a, isLoading: o, error:
1276
1261
  confirmButtonLabel: o ? c._({ id: "M5RhXF" }) : c._({ id: "qh5W8q" }),
1277
1262
  disableConfirmButton: o || f,
1278
1263
  children: /*#__PURE__*/ B("div", { children: [
1279
- s && /*#__PURE__*/ z(t, {
1264
+ s && /*#__PURE__*/ z(n, {
1280
1265
  dismissible: !1,
1281
1266
  variant: "error",
1282
1267
  className: "mt-4",
1283
1268
  children: s
1284
1269
  }),
1285
- /*#__PURE__*/ z(K, { id: "BMTd81" }),
1270
+ /*#__PURE__*/ z(q, { id: "BMTd81" }),
1286
1271
  /*#__PURE__*/ B("div", {
1287
1272
  className: "bg-theme-background-lvl-1 mt-4 mb-4 rounded p-4",
1288
1273
  children: [/*#__PURE__*/ z("p", {
1289
1274
  className: "mb-2 font-semibold",
1290
- children: /*#__PURE__*/ z(K, { id: "nLvo6K" })
1275
+ children: /*#__PURE__*/ z(q, { id: "nLvo6K" })
1291
1276
  }), /*#__PURE__*/ B("ul", {
1292
1277
  className: "list-inside list-disc space-y-1 text-sm",
1293
1278
  children: [
1294
1279
  /*#__PURE__*/ B("li", { children: [
1295
- /*#__PURE__*/ z(K, { id: "WzVwU0" }),
1280
+ /*#__PURE__*/ z(q, { id: "WzVwU0" }),
1296
1281
  ": ",
1297
1282
  e.target_tenant
1298
1283
  ] }),
1299
1284
  /*#__PURE__*/ B("li", { children: [
1300
- /*#__PURE__*/ z(K, { id: "bwRvnp" }),
1285
+ /*#__PURE__*/ z(q, { id: "bwRvnp" }),
1301
1286
  ": ",
1302
1287
  e.action
1303
1288
  ] }),
1304
1289
  /*#__PURE__*/ B("li", { children: [
1305
- /*#__PURE__*/ z(K, { id: "UGhVPl" }),
1290
+ /*#__PURE__*/ z(q, { id: "UGhVPl" }),
1306
1291
  ": ",
1307
1292
  e.object_type
1308
1293
  ] })
1309
1294
  ]
1310
1295
  })]
1311
1296
  }),
1312
- !o && /*#__PURE__*/ z(S, {
1297
+ !o && /*#__PURE__*/ z(E, {
1313
1298
  className: "mt-4 mb-0",
1314
1299
  onSubmit: (e) => {
1315
1300
  e.preventDefault(), d.handleSubmit();
1316
1301
  },
1317
- children: /*#__PURE__*/ B(i, { children: [/*#__PURE__*/ z("p", {
1302
+ children: /*#__PURE__*/ B(x, { children: [/*#__PURE__*/ z("p", {
1318
1303
  className: "mb-2 text-sm",
1319
- children: /*#__PURE__*/ z(K, {
1304
+ children: /*#__PURE__*/ z(q, {
1320
1305
  id: "Enpdmy",
1321
1306
  components: { 0: /*#__PURE__*/ z("strong", {}) }
1322
1307
  })
1323
1308
  }), /*#__PURE__*/ z(d.Field, {
1324
1309
  name: "confirmText",
1325
- children: (e) => /*#__PURE__*/ z(l, {
1310
+ children: (e) => /*#__PURE__*/ z(v, {
1326
1311
  id: e.name,
1327
1312
  name: e.name,
1328
1313
  value: e.state.value,
@@ -1339,111 +1324,111 @@ function De({ policy: e, open: n, onClose: r, onConfirm: a, isLoading: o, error:
1339
1324
  }
1340
1325
  //#endregion
1341
1326
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupRBACPolicies.tsx
1342
- function Oe({ securityGroupId: e, canManageAccess: r }) {
1343
- let i = k.useUtils(), { i18n: s, _: l } = q(), u = j(), [d, f] = M(), [p, h] = W(null), [g, _] = W(""), [v, y] = W(""), x = U(void 0);
1344
- V(() => () => clearTimeout(x.current), []);
1345
- let { data: S, isPending: C, isError: w, error: T } = k.network.rbacPolicy.list.useQuery({
1346
- project_id: u,
1327
+ function ke({ securityGroupId: e, canManageAccess: r }) {
1328
+ let i = k.useUtils(), { i18n: a, _: o } = J(), s = j(), [c, m] = P(), [h, g] = G(null), [v, y] = G(""), [x, S] = G(""), C = W(void 0);
1329
+ H(() => () => clearTimeout(C.current), []);
1330
+ let { data: w, isPending: T, isError: E, error: D } = k.network.rbacPolicy.list.useQuery({
1331
+ project_id: s,
1347
1332
  securityGroupId: e
1348
- }, { refetchOnWindowFocus: !1 }), D = k.network.rbacPolicy.delete.useMutation({ onSuccess: () => {
1333
+ }, { refetchOnWindowFocus: !1 }), O = k.network.rbacPolicy.delete.useMutation({ onSuccess: () => {
1349
1334
  i.network.rbacPolicy.list.invalidate({
1350
- project_id: u,
1335
+ project_id: s,
1351
1336
  securityGroupId: e
1352
1337
  }), i.network.securityGroup.getById.invalidate({
1353
- project_id: u,
1338
+ project_id: s,
1354
1339
  securityGroupId: e
1355
1340
  });
1356
1341
  } }), A = (e) => {
1357
- h(e);
1358
- }, N = (e) => {
1359
- D.mutate({
1360
- project_id: u,
1342
+ g(e);
1343
+ }, M = (e) => {
1344
+ O.mutate({
1345
+ project_id: s,
1361
1346
  policyId: e
1362
1347
  });
1363
- }, P = () => {
1364
- D.isPending || h(null);
1348
+ }, N = () => {
1349
+ O.isPending || g(null);
1365
1350
  };
1366
- V(() => {
1367
- !D.isPending && !D.error && D.isSuccess && h(null);
1351
+ H(() => {
1352
+ !O.isPending && !O.error && O.isSuccess && g(null);
1368
1353
  }, [
1369
- D.isPending,
1370
- D.error,
1371
- D.isSuccess
1354
+ O.isPending,
1355
+ O.error,
1356
+ O.isSuccess
1372
1357
  ]);
1373
- let F = H(() => {
1374
- if (!S) return [];
1375
- if (!g) return S;
1376
- let e = g.toLowerCase();
1377
- return S.filter((t) => t.target_tenant?.toLowerCase().includes(e) || t.action?.toLowerCase().includes(e));
1378
- }, [S, g]);
1379
- if (C) return /*#__PURE__*/ z(E, {
1358
+ let F = U(() => {
1359
+ if (!w) return [];
1360
+ if (!v) return w;
1361
+ let e = v.toLowerCase();
1362
+ return w.filter((t) => t.target_tenant?.toLowerCase().includes(e) || t.action?.toLowerCase().includes(e));
1363
+ }, [w, v]);
1364
+ if (T) return /*#__PURE__*/ z(f, {
1380
1365
  distribution: "center",
1381
1366
  alignment: "center",
1382
1367
  className: "py-8",
1383
- children: /*#__PURE__*/ z(a, { variant: "primary" })
1368
+ children: /*#__PURE__*/ z(d, { variant: "primary" })
1384
1369
  });
1385
- if (w) return /*#__PURE__*/ z(t, {
1370
+ if (E) return /*#__PURE__*/ z(n, {
1386
1371
  variant: "error",
1387
1372
  className: "mb-4",
1388
- children: T.message
1373
+ children: D.message
1389
1374
  });
1390
- let I = S?.length || 0, L = F.length;
1375
+ let I = w?.length || 0, L = F.length;
1391
1376
  return /*#__PURE__*/ B(R, { children: [
1392
- /*#__PURE__*/ B(E, {
1377
+ /*#__PURE__*/ B(f, {
1393
1378
  direction: "vertical",
1394
1379
  gap: "4",
1395
1380
  children: [
1396
- /*#__PURE__*/ B(E, {
1381
+ /*#__PURE__*/ B(f, {
1397
1382
  distribution: "between",
1398
1383
  alignment: "center",
1399
1384
  gap: "2",
1400
1385
  className: "pb-2",
1401
1386
  children: [/*#__PURE__*/ z("span", {
1402
1387
  className: "theme-color-text-light text-sm",
1403
- children: I === L ? /*#__PURE__*/ z(K, {
1388
+ children: I === L ? /*#__PURE__*/ z(q, {
1404
1389
  id: "xx2KP5",
1405
1390
  values: { totalCount: I }
1406
- }) : /*#__PURE__*/ z(K, {
1391
+ }) : /*#__PURE__*/ z(q, {
1407
1392
  id: "VcWhM0",
1408
1393
  values: {
1409
1394
  filteredCount: L,
1410
1395
  totalCount: I
1411
1396
  }
1412
1397
  })
1413
- }), r && /*#__PURE__*/ z(O, {
1398
+ }), r && /*#__PURE__*/ z(p, {
1414
1399
  variant: "primary",
1415
1400
  icon: "addCircle",
1416
- onClick: f,
1401
+ onClick: m,
1417
1402
  className: "whitespace-nowrap",
1418
- children: /*#__PURE__*/ z(K, { id: "vmRPFm" })
1403
+ children: /*#__PURE__*/ z(q, { id: "vmRPFm" })
1419
1404
  })]
1420
1405
  }),
1421
- /*#__PURE__*/ z(m, { children: /*#__PURE__*/ z(E, {
1406
+ /*#__PURE__*/ z(_, { children: /*#__PURE__*/ z(f, {
1422
1407
  distribution: "between",
1423
1408
  alignment: "center",
1424
- children: /*#__PURE__*/ z(b, {
1425
- placeholder: s._({ id: "mlxk2U" }),
1409
+ children: /*#__PURE__*/ z(t, {
1410
+ placeholder: a._({ id: "mlxk2U" }),
1426
1411
  "data-testid": "searchbar",
1427
- value: v,
1412
+ value: x,
1428
1413
  onInput: (e) => {
1429
1414
  let t = e.currentTarget.value;
1430
- y(t), clearTimeout(x.current), x.current = window.setTimeout(() => _(t), 500);
1415
+ S(t), clearTimeout(C.current), C.current = window.setTimeout(() => y(t), 500);
1431
1416
  },
1432
1417
  onSearch: (e) => {
1433
- clearTimeout(x.current), _(typeof e == "string" ? e : "");
1418
+ clearTimeout(C.current), y(typeof e == "string" ? e : "");
1434
1419
  },
1435
1420
  onClear: () => {
1436
- clearTimeout(x.current), y(""), _("");
1421
+ clearTimeout(C.current), S(""), y("");
1437
1422
  }
1438
1423
  })
1439
1424
  }) }),
1440
- L === 0 ? g ? /*#__PURE__*/ z(K, { id: "qxxo7y" }) : /*#__PURE__*/ z(K, { id: "Dia2Ue" }) : /*#__PURE__*/ B(o, {
1425
+ L === 0 ? v ? /*#__PURE__*/ z(q, { id: "qxxo7y" }) : /*#__PURE__*/ z(q, { id: "Dia2Ue" }) : /*#__PURE__*/ B(b, {
1441
1426
  columns: 3,
1442
- children: [/*#__PURE__*/ B(n, { children: [
1443
- /*#__PURE__*/ z(c, { children: /*#__PURE__*/ z(K, { id: "WzVwU0" }) }),
1444
- /*#__PURE__*/ z(c, { children: /*#__PURE__*/ z(K, { id: "bwRvnp" }) }),
1445
- /*#__PURE__*/ z(c, { children: /*#__PURE__*/ z(K, { id: "7L01XJ" }) })
1446
- ] }), F.map((e) => /*#__PURE__*/ z(Se, {
1427
+ children: [/*#__PURE__*/ B(u, { children: [
1428
+ /*#__PURE__*/ z(l, { children: /*#__PURE__*/ z(q, { id: "WzVwU0" }) }),
1429
+ /*#__PURE__*/ z(l, { children: /*#__PURE__*/ z(q, { id: "bwRvnp" }) }),
1430
+ /*#__PURE__*/ z(l, { children: /*#__PURE__*/ z(q, { id: "7L01XJ" }) })
1431
+ ] }), F.map((e) => /*#__PURE__*/ z(Ce, {
1447
1432
  policy: e,
1448
1433
  onDelete: () => A(e),
1449
1434
  canDelete: r
@@ -1451,70 +1436,70 @@ function Oe({ securityGroupId: e, canManageAccess: r }) {
1451
1436
  })
1452
1437
  ]
1453
1438
  }),
1454
- !!p && /*#__PURE__*/ z(De, {
1455
- policy: p,
1456
- open: !!p,
1457
- onClose: P,
1458
- onConfirm: N,
1459
- isLoading: D.isPending,
1460
- error: D.error?.message || null
1439
+ !!h && /*#__PURE__*/ z(Oe, {
1440
+ policy: h,
1441
+ open: !!h,
1442
+ onClose: N,
1443
+ onConfirm: M,
1444
+ isLoading: O.isPending,
1445
+ error: O.error?.message || null
1461
1446
  }),
1462
- d && /*#__PURE__*/ z(Ee, {
1463
- isOpen: d,
1464
- onClose: f,
1447
+ c && /*#__PURE__*/ z(De, {
1448
+ isOpen: c,
1449
+ onClose: m,
1465
1450
  securityGroupId: e
1466
1451
  })
1467
1452
  ] });
1468
1453
  }
1469
1454
  //#endregion
1470
1455
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/SecurityGroupDetailsView.tsx
1471
- function ke({ securityGroup: e, filteredAndSortedRules: t, onEdit: n, onDeleteRule: r, isDeletingRule: i = !1, deleteRuleError: a = null, filterControls: o, onCreateRule: s, isCreatingRule: c = !1, createRuleError: l = null, availableSecurityGroups: u = [], currentProjectId: f, permissions: p }) {
1472
- let [m, h] = W("rules"), g = e.project_id === f && p.canViewRBAC;
1473
- return /*#__PURE__*/ z(d, {
1456
+ function Ae({ securityGroup: t, filteredAndSortedRules: n, onEdit: r, onDeleteRule: i, isDeletingRule: a = !1, deleteRuleError: o = null, filterControls: s, onCreateRule: c, isCreatingRule: l = !1, createRuleError: u = null, availableSecurityGroups: d = [], currentProjectId: p, permissions: m }) {
1457
+ let [h, g] = G("rules"), _ = t.project_id === p && m.canViewRBAC;
1458
+ return /*#__PURE__*/ z(e, {
1474
1459
  px: !1,
1475
1460
  py: !0,
1476
- children: /*#__PURE__*/ B(E, {
1461
+ children: /*#__PURE__*/ B(f, {
1477
1462
  direction: "vertical",
1478
1463
  gap: "4",
1479
1464
  children: [
1480
1465
  /*#__PURE__*/ z(te, {
1481
- name: e.name,
1482
- id: e.id
1483
- }),
1484
- /*#__PURE__*/ z(Z, {
1485
- securityGroup: e,
1486
- onEdit: n,
1487
- canUpdate: p.canUpdate
1466
+ name: t.name,
1467
+ id: t.id
1488
1468
  }),
1489
1469
  /*#__PURE__*/ z(Q, {
1490
- activeTab: m,
1491
- onTabChange: h,
1492
- showRBACTab: g
1470
+ securityGroup: t,
1471
+ onEdit: r,
1472
+ canUpdate: m.canUpdate
1473
+ }),
1474
+ /*#__PURE__*/ z($, {
1475
+ activeTab: h,
1476
+ onTabChange: g,
1477
+ showRBACTab: _
1493
1478
  }),
1494
1479
  /*#__PURE__*/ B("div", {
1495
1480
  className: "mt-6",
1496
- children: [m === "rules" && /*#__PURE__*/ z(xe, {
1497
- rules: t,
1498
- totalRulesCount: e.security_group_rules?.length,
1499
- onDeleteRule: r,
1500
- isDeletingRule: i,
1501
- deleteError: a,
1502
- searchTerm: o.searchTerm,
1503
- onSearchChange: o.onSearchChange,
1504
- sortSettings: o.sortSettings,
1505
- onSortChange: o.onSortChange,
1506
- filterSettings: o.filterSettings,
1507
- onFilterChange: o.onFilterChange,
1508
- securityGroupId: e.id,
1509
- onCreateRule: p.canCreateRule ? s : void 0,
1510
- isCreatingRule: c,
1511
- createRuleError: l,
1512
- availableSecurityGroups: u,
1513
- canCreateRule: p.canCreateRule,
1514
- canDeleteRule: p.canDeleteRule
1515
- }), m === "rbac" && /*#__PURE__*/ z(Oe, {
1516
- securityGroupId: e.id,
1517
- canManageAccess: p.canManageAccess
1481
+ children: [h === "rules" && /*#__PURE__*/ z(Se, {
1482
+ rules: n,
1483
+ totalRulesCount: t.security_group_rules?.length,
1484
+ onDeleteRule: i,
1485
+ isDeletingRule: a,
1486
+ deleteError: o,
1487
+ searchTerm: s.searchTerm,
1488
+ onSearchChange: s.onSearchChange,
1489
+ sortSettings: s.sortSettings,
1490
+ onSortChange: s.onSortChange,
1491
+ filterSettings: s.filterSettings,
1492
+ onFilterChange: s.onFilterChange,
1493
+ securityGroupId: t.id,
1494
+ onCreateRule: m.canCreateRule ? c : void 0,
1495
+ isCreatingRule: l,
1496
+ createRuleError: u,
1497
+ availableSecurityGroups: d,
1498
+ canCreateRule: m.canCreateRule,
1499
+ canDeleteRule: m.canDeleteRule
1500
+ }), h === "rbac" && /*#__PURE__*/ z(ke, {
1501
+ securityGroupId: t.id,
1502
+ canManageAccess: m.canManageAccess
1518
1503
  })]
1519
1504
  })
1520
1505
  ]
@@ -1523,16 +1508,16 @@ function ke({ securityGroup: e, filteredAndSortedRules: t, onEdit: n, onDeleteRu
1523
1508
  }
1524
1509
  //#endregion
1525
1510
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-hooks/useSecurityGroupDetails.ts
1526
- function Ae({ securityGroupId: e, filterControls: t }) {
1527
- let [n, r] = W(!1), i = j(), a = k.useUtils(), o = k.network.securityGroup.getById.useQuery({
1511
+ function je({ securityGroupId: e, filterControls: t }) {
1512
+ let [n, r] = G(!1), i = j(), a = k.useUtils(), o = k.network.securityGroup.getById.useQuery({
1528
1513
  project_id: i,
1529
1514
  securityGroupId: e
1530
1515
  }, { placeholderData: () => a.network.securityGroup.getById.getData({
1531
1516
  project_id: i,
1532
1517
  securityGroupId: e
1533
- }) }), s = H(() => {
1518
+ }) }), s = U(() => {
1534
1519
  let e = o.data?.security_group_rules || [], n = t.filterSettings.selectedFilters?.find((e) => e.name === "direction")?.value, r = t.filterSettings.selectedFilters?.find((e) => e.name === "ethertype")?.value, i = t.filterSettings.selectedFilters?.find((e) => e.name === "protocol")?.value;
1535
- if (n && n !== "all" && (e = e.filter((e) => e.direction === n)), r && r !== "all" && (e = e.filter((e) => e.ethertype === r)), i && i !== "all" && (e = e.filter((e) => e.protocol === null ? !1 : e.protocol === i)), t.searchTerm) {
1520
+ if (n && n !== "all" && (e = e.filter((e) => e.direction === n)), r && r !== "all" && (e = e.filter((e) => e.ethertype === r)), i && i !== "all" && (e = e.filter((e) => e.protocol !== null && e.protocol === i)), t.searchTerm) {
1536
1521
  let n = t.searchTerm.toLowerCase();
1537
1522
  e = e.filter((e) => e.description?.toLowerCase().includes(n) || e.protocol?.toLowerCase().includes(n) || e.ethertype?.toLowerCase().includes(n));
1538
1523
  }
@@ -1601,11 +1586,40 @@ function Ae({ securityGroupId: e, filterControls: t }) {
1601
1586
  };
1602
1587
  }
1603
1588
  //#endregion
1589
+ //#region src/client/utils/useListWithFiltering.ts
1590
+ function Me({ defaultSortKey: e, defaultSortDir: t, sortOptions: n, filterSettings: r }) {
1591
+ let [i, a] = G(""), o = (e) => {
1592
+ let t = typeof e == "string" ? e : "";
1593
+ V(() => a(t));
1594
+ }, [s, c] = G({
1595
+ options: n,
1596
+ sortBy: e,
1597
+ sortDirection: t
1598
+ }), l = (n) => {
1599
+ let r = {
1600
+ options: n.options ?? s.options,
1601
+ sortBy: n.sortBy?.toString() || e,
1602
+ sortDirection: n.sortDirection || t
1603
+ };
1604
+ c(r);
1605
+ }, [u, d] = G(r);
1606
+ return {
1607
+ searchTerm: i,
1608
+ sortSettings: s,
1609
+ filterSettings: u,
1610
+ handleSearchChange: o,
1611
+ handleSortChange: l,
1612
+ handleFilterChange: (e) => {
1613
+ V(() => d(e));
1614
+ }
1615
+ };
1616
+ }
1617
+ //#endregion
1604
1618
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/index.tsx?tsr-split=component
1605
- function je() {
1606
- let { securityGroupId: e } = A.useParams(), { trpcClient: t } = A.useRouteContext(), n = j(), r = G(), { i18n: i, _: o } = q();
1619
+ function Ne() {
1620
+ let { securityGroupId: e } = A.useParams(), { trpcClient: t } = A.useRouteContext(), n = j(), r = K(), { i18n: i, _: o } = J();
1607
1621
  if (!t) throw Error("trpcClient is not available in route context");
1608
- let { permissions: c, isLoading: l, isError: d } = ee(n), { searchTerm: f, sortSettings: p, filterSettings: m, handleSearchChange: h, handleSortChange: g, handleFilterChange: _ } = I({
1622
+ let { permissions: s, isLoading: c, isError: l } = ee(n), { searchTerm: u, sortSettings: m, filterSettings: h, handleSearchChange: g, handleSortChange: _, handleFilterChange: v } = Me({
1609
1623
  defaultSortKey: "direction",
1610
1624
  defaultSortDir: "asc",
1611
1625
  sortOptions: [
@@ -1647,37 +1661,37 @@ function je() {
1647
1661
  supportsMultiValue: !1
1648
1662
  }
1649
1663
  ] }
1650
- }), v = {
1651
- searchTerm: f,
1652
- onSearchChange: h,
1653
- sortSettings: p,
1654
- onSortChange: g,
1655
- filterSettings: m,
1656
- onFilterChange: _
1657
- }, { securityGroup: y, filteredAndSortedRules: b, isLoading: S, isError: C, error: w, isUpdating: T, updateError: D, isDeletingRule: M, deleteRuleError: N, isCreatingRule: P, createRuleError: F, editModalOpen: R, handleEdit: V, handleCloseEditModal: U, handleUpdate: W, handleDeleteRule: J, handleCreateRule: Y } = Ae({
1664
+ }), b = {
1665
+ searchTerm: u,
1666
+ onSearchChange: g,
1667
+ sortSettings: m,
1668
+ onSortChange: _,
1669
+ filterSettings: h,
1670
+ onFilterChange: v
1671
+ }, { securityGroup: x, filteredAndSortedRules: C, isLoading: w, isError: T, error: E, isUpdating: D, updateError: O, isDeletingRule: M, deleteRuleError: N, isCreatingRule: P, createRuleError: F, editModalOpen: I, handleEdit: R, handleCloseEditModal: V, handleUpdate: H, handleDeleteRule: W, handleCreateRule: G } = je({
1658
1672
  securityGroupId: e,
1659
- filterControls: v
1660
- }), { data: X } = k.network.securityGroup.list.useQuery({ project_id: n }), te = H(() => (X || []).filter((t) => t.id !== e).map((e) => ({
1673
+ filterControls: b
1674
+ }), { data: Y } = k.network.securityGroup.list.useQuery({ project_id: n }), X = U(() => (Y || []).filter((t) => t.id !== e).map((e) => ({
1661
1675
  id: e.id,
1662
1676
  name: e.name || e.id
1663
- })), [X, e]), Z = () => {
1677
+ })), [Y, e]), Z = () => {
1664
1678
  r({
1665
1679
  to: "/projects/$projectId/network/securitygroups",
1666
1680
  params: { projectId: n }
1667
1681
  });
1668
1682
  };
1669
- if (l) return /*#__PURE__*/ B(E, {
1683
+ if (c) return /*#__PURE__*/ B(f, {
1670
1684
  className: "fixed inset-0",
1671
1685
  distribution: "center",
1672
1686
  alignment: "center",
1673
1687
  direction: "vertical",
1674
- children: [/*#__PURE__*/ z(a, {
1688
+ children: [/*#__PURE__*/ z(d, {
1675
1689
  variant: "primary",
1676
1690
  size: "large",
1677
1691
  className: "mb-2"
1678
- }), /*#__PURE__*/ z(K, { id: "EpWoJ9" })]
1692
+ }), /*#__PURE__*/ z(q, { id: "EpWoJ9" })]
1679
1693
  });
1680
- let Q = d ? {
1694
+ let te = l ? {
1681
1695
  canView: !1,
1682
1696
  canCreate: !1,
1683
1697
  canUpdate: !1,
@@ -1686,21 +1700,21 @@ function je() {
1686
1700
  canDeleteRule: !1,
1687
1701
  canManageAccess: !1,
1688
1702
  canViewRBAC: !1
1689
- } : c;
1690
- if (S) return /*#__PURE__*/ B(E, {
1703
+ } : s;
1704
+ if (w) return /*#__PURE__*/ B(f, {
1691
1705
  className: "fixed inset-0",
1692
1706
  distribution: "center",
1693
1707
  alignment: "center",
1694
1708
  direction: "vertical",
1695
- children: [/*#__PURE__*/ z(a, {
1709
+ children: [/*#__PURE__*/ z(d, {
1696
1710
  variant: "primary",
1697
1711
  size: "large",
1698
1712
  className: "mb-2"
1699
- }), /*#__PURE__*/ z(K, { id: "3x7Sws" })]
1713
+ }), /*#__PURE__*/ z(q, { id: "3x7Sws" })]
1700
1714
  });
1701
- if (C) {
1702
- let e = w?.message || "Unknown error";
1703
- return /*#__PURE__*/ B(E, {
1715
+ if (T) {
1716
+ let e = E?.message || "Unknown error";
1717
+ return /*#__PURE__*/ B(f, {
1704
1718
  className: "fixed inset-0",
1705
1719
  distribution: "center",
1706
1720
  alignment: "center",
@@ -1709,59 +1723,59 @@ function je() {
1709
1723
  children: [
1710
1724
  /*#__PURE__*/ z("p", {
1711
1725
  className: "text-theme-error font-semibold",
1712
- children: /*#__PURE__*/ z(K, { id: "FjPnAE" })
1726
+ children: /*#__PURE__*/ z(q, { id: "FjPnAE" })
1713
1727
  }),
1714
1728
  /*#__PURE__*/ z("p", {
1715
1729
  className: "text-theme-highest",
1716
1730
  children: e
1717
1731
  }),
1718
- /*#__PURE__*/ z(O, {
1732
+ /*#__PURE__*/ z(p, {
1719
1733
  onClick: Z,
1720
1734
  variant: "primary",
1721
- children: /*#__PURE__*/ z(K, { id: "U9q4M7" })
1735
+ children: /*#__PURE__*/ z(q, { id: "U9q4M7" })
1722
1736
  })
1723
1737
  ]
1724
1738
  });
1725
1739
  }
1726
- return y ? /*#__PURE__*/ B(E, {
1740
+ return x ? /*#__PURE__*/ B(f, {
1727
1741
  direction: "vertical",
1728
1742
  children: [
1729
- /*#__PURE__*/ z(u, { children: y.name || y.id }),
1730
- /*#__PURE__*/ B(x, {
1743
+ /*#__PURE__*/ z(y, { children: x.name || x.id }),
1744
+ /*#__PURE__*/ B(S, {
1731
1745
  className: "my-6",
1732
- children: [/*#__PURE__*/ z(s, {
1746
+ children: [/*#__PURE__*/ z(a, {
1733
1747
  onClick: Z,
1734
1748
  label: i._({ id: "4opp4r" })
1735
- }), /*#__PURE__*/ z(s, {
1749
+ }), /*#__PURE__*/ z(a, {
1736
1750
  active: !0,
1737
- label: y.id
1751
+ label: x.id
1738
1752
  })]
1739
1753
  }),
1740
- /*#__PURE__*/ z(ke, {
1741
- securityGroup: y,
1742
- filteredAndSortedRules: b,
1743
- onEdit: V,
1744
- onDeleteRule: J,
1754
+ /*#__PURE__*/ z(Ae, {
1755
+ securityGroup: x,
1756
+ filteredAndSortedRules: C,
1757
+ onEdit: R,
1758
+ onDeleteRule: W,
1745
1759
  isDeletingRule: M,
1746
1760
  deleteRuleError: N,
1747
- filterControls: v,
1748
- onCreateRule: Y,
1761
+ filterControls: b,
1762
+ onCreateRule: G,
1749
1763
  isCreatingRule: P,
1750
1764
  createRuleError: F,
1751
- availableSecurityGroups: te,
1765
+ availableSecurityGroups: X,
1752
1766
  currentProjectId: n,
1753
- permissions: Q
1767
+ permissions: te
1754
1768
  }),
1755
1769
  /*#__PURE__*/ z(L, {
1756
- securityGroup: y,
1757
- open: R,
1758
- onClose: U,
1759
- onUpdate: W,
1760
- isLoading: T,
1761
- error: D
1770
+ securityGroup: x,
1771
+ open: I,
1772
+ onClose: V,
1773
+ onUpdate: H,
1774
+ isLoading: D,
1775
+ error: O
1762
1776
  })
1763
1777
  ]
1764
- }) : /*#__PURE__*/ B(E, {
1778
+ }) : /*#__PURE__*/ B(f, {
1765
1779
  className: "fixed inset-0",
1766
1780
  distribution: "center",
1767
1781
  alignment: "center",
@@ -1769,15 +1783,15 @@ function je() {
1769
1783
  gap: "5",
1770
1784
  children: [/*#__PURE__*/ z("p", {
1771
1785
  className: "text-theme-secondary",
1772
- children: /*#__PURE__*/ z(K, { id: "Zw8Q49" })
1773
- }), /*#__PURE__*/ z(O, {
1786
+ children: /*#__PURE__*/ z(q, { id: "Zw8Q49" })
1787
+ }), /*#__PURE__*/ z(p, {
1774
1788
  onClick: Z,
1775
1789
  variant: "primary",
1776
- children: /*#__PURE__*/ z(K, { id: "U9q4M7" })
1790
+ children: /*#__PURE__*/ z(q, { id: "U9q4M7" })
1777
1791
  })]
1778
1792
  });
1779
1793
  }
1780
1794
  //#endregion
1781
- export { je as component };
1795
+ export { Ne as component };
1782
1796
 
1783
- //# sourceMappingURL=_securityGroupId-DFdNKa2l.mjs.map
1797
+ //# sourceMappingURL=_securityGroupId-pPtJsCoe.mjs.map