@cobaltcore-dev/aurora 0.4.0 → 0.6.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 (178) hide show
  1. package/README.md +73 -77
  2. package/dist/client/AuroraApp.d.ts +15 -0
  3. package/dist/client/{AuthProvider-D-5Jpa6F.mjs → AuthProvider-Co4d0WzB.mjs} +3 -3
  4. package/dist/client/{AuthProvider-D-5Jpa6F.mjs.map → AuthProvider-Co4d0WzB.mjs.map} +1 -1
  5. package/dist/client/{ContentHeader-BXZoN3B9.mjs → ContentHeader-kx1Th5Sq.mjs} +29 -29
  6. package/dist/client/{ContentHeader-BXZoN3B9.mjs.map → ContentHeader-kx1Th5Sq.mjs.map} +1 -1
  7. package/dist/client/DeleteFlavorModal-C3cb7YiJ.mjs +638 -0
  8. package/dist/client/DeleteFlavorModal-C3cb7YiJ.mjs.map +1 -0
  9. package/dist/client/{EditSecurityGroupModal-DK3WYikA.mjs → EditSecurityGroupModal-CpP54WIK.mjs} +22 -22
  10. package/dist/client/{EditSecurityGroupModal-DK3WYikA.mjs.map → EditSecurityGroupModal-CpP54WIK.mjs.map} +1 -1
  11. package/dist/client/{FiltersInput-OVeIJzIo.mjs → FiltersInput-DxcyR6Bp.mjs} +18 -18
  12. package/dist/client/{FiltersInput-OVeIJzIo.mjs.map → FiltersInput-DxcyR6Bp.mjs.map} +1 -1
  13. package/dist/client/{FloatingIpActionModals-Dok7fJss.mjs → FloatingIpActionModals-BP8RWHbu.mjs} +77 -77
  14. package/dist/client/{FloatingIpActionModals-Dok7fJss.mjs.map → FloatingIpActionModals-BP8RWHbu.mjs.map} +1 -1
  15. package/dist/client/ImageToastNotifications-TZ3EfQg-.mjs +1219 -0
  16. package/dist/client/ImageToastNotifications-TZ3EfQg-.mjs.map +1 -0
  17. package/dist/client/{RouteError-pDEWC_k7.mjs → RouteError-QSV7qOoJ.mjs} +6 -6
  18. package/dist/client/{RouteError-pDEWC_k7.mjs.map → RouteError-QSV7qOoJ.mjs.map} +1 -1
  19. package/dist/client/{SortInput-DXWSqSny.mjs → SortInput-CYv2_Pur.mjs} +6 -6
  20. package/dist/client/{SortInput-DXWSqSny.mjs.map → SortInput-CYv2_Pur.mjs.map} +1 -1
  21. package/dist/client/{_auth-CJj1Cnbm.mjs → _auth-DXJkv9QO.mjs} +3 -3
  22. package/dist/client/{_auth-CJj1Cnbm.mjs.map → _auth-DXJkv9QO.mjs.map} +1 -1
  23. package/dist/client/{_flavorId-BoNcxYmF.mjs → _flavorId-C2x43-6S.mjs} +15 -15
  24. package/dist/client/_flavorId-C2x43-6S.mjs.map +1 -0
  25. package/dist/client/_flavorId-CR8ZUI-P.mjs +194 -0
  26. package/dist/client/_flavorId-CR8ZUI-P.mjs.map +1 -0
  27. package/dist/client/{_floatingIpId-D33bOEmH.mjs → _floatingIpId-BCk41_Lb.mjs} +3 -3
  28. package/dist/client/{_floatingIpId-D33bOEmH.mjs.map → _floatingIpId-BCk41_Lb.mjs.map} +1 -1
  29. package/dist/client/{_floatingIpId-DF_BSJN6.mjs → _floatingIpId-BGrOAmPT.mjs} +48 -48
  30. package/dist/client/{_floatingIpId-DF_BSJN6.mjs.map → _floatingIpId-BGrOAmPT.mjs.map} +1 -1
  31. package/dist/client/_imageId-CvfD832b.mjs +534 -0
  32. package/dist/client/_imageId-CvfD832b.mjs.map +1 -0
  33. package/dist/client/_pcaId-BxBt5DXi.mjs +459 -0
  34. package/dist/client/_pcaId-BxBt5DXi.mjs.map +1 -0
  35. package/dist/client/{_pcaId-BYCoeK6_.mjs → _pcaId-DOHycvCf.mjs} +3 -3
  36. package/dist/client/{_pcaId-BYCoeK6_.mjs.map → _pcaId-DOHycvCf.mjs.map} +1 -1
  37. package/dist/client/_projectId-BDSWnMGj.mjs +46 -0
  38. package/dist/client/_projectId-BDSWnMGj.mjs.map +1 -0
  39. package/dist/client/{_projectId-OW2xkK43.mjs → _projectId-DOgwFiqD.mjs} +3 -3
  40. package/dist/client/{_projectId-OW2xkK43.mjs.map → _projectId-DOgwFiqD.mjs.map} +1 -1
  41. package/dist/client/_projectId-DS4nR59B.mjs +299 -0
  42. package/dist/client/_projectId-DS4nR59B.mjs.map +1 -0
  43. package/dist/client/{_projectId-BwLMEMGC.mjs → _projectId-MxcHrXW4.mjs} +21 -21
  44. package/dist/client/_projectId-MxcHrXW4.mjs.map +1 -0
  45. package/dist/client/{_securityGroupId-B-Z-CzLp.mjs → _securityGroupId-CJJanWiY.mjs} +3 -3
  46. package/dist/client/{_securityGroupId-B-Z-CzLp.mjs.map → _securityGroupId-CJJanWiY.mjs.map} +1 -1
  47. package/dist/client/{_securityGroupId-B1bOYRbX.mjs → _securityGroupId-KKw4RPdH.mjs} +445 -446
  48. package/dist/client/{_securityGroupId-B1bOYRbX.mjs.map → _securityGroupId-KKw4RPdH.mjs.map} +1 -1
  49. package/dist/client/{containers-BjWqjNOx.mjs → _storageType-4wSxI__0.mjs} +19 -16
  50. package/dist/client/_storageType-4wSxI__0.mjs.map +1 -0
  51. package/dist/client/_storageType-DYjo-6ej.mjs +3243 -0
  52. package/dist/client/_storageType-DYjo-6ej.mjs.map +1 -0
  53. package/dist/client/_storageType-zeSZe--V.mjs +7 -0
  54. package/dist/client/_storageType-zeSZe--V.mjs.map +1 -0
  55. package/dist/client/about-Bo9vxGHy.mjs +92 -0
  56. package/dist/client/{about-DLn1ShhF.mjs.map → about-Bo9vxGHy.mjs.map} +1 -1
  57. package/dist/client/aurora-DDzsst74.mjs +19 -0
  58. package/dist/client/{aurora-CRcxVUCo.mjs.map → aurora-DDzsst74.mjs.map} +1 -1
  59. package/dist/client/{build-BJDfnAyi.mjs → build-DeJcDjPi.mjs} +3802 -3376
  60. package/dist/client/build-DeJcDjPi.mjs.map +1 -0
  61. package/dist/client/{buildFilterParams-TeyosGyK.mjs → buildFilterParams-DoZzMKX9.mjs} +1 -1
  62. package/dist/client/{buildFilterParams-TeyosGyK.mjs.map → buildFilterParams-DoZzMKX9.mjs.map} +1 -1
  63. package/dist/client/{cn-C3laVXMm.mjs → cn-DM4Cy3jv.mjs} +1 -1
  64. package/dist/client/{cn-C3laVXMm.mjs.map → cn-DM4Cy3jv.mjs.map} +1 -1
  65. package/dist/client/constants-BmcGYeR-.mjs +153 -0
  66. package/dist/client/constants-BmcGYeR-.mjs.map +1 -0
  67. package/dist/client/{flavors-D8oElC2K.mjs → flavors-BxFVqgnb.mjs} +2 -2
  68. package/dist/client/{flavors-D8oElC2K.mjs.map → flavors-BxFVqgnb.mjs.map} +1 -1
  69. package/dist/client/flavors-CfdgjsZY.mjs +632 -0
  70. package/dist/client/flavors-CfdgjsZY.mjs.map +1 -0
  71. package/dist/client/{flavors-BXPYAFyQ.mjs → flavors-DWMZ6TuJ.mjs} +2 -2
  72. package/dist/client/{flavors-BXPYAFyQ.mjs.map → flavors-DWMZ6TuJ.mjs.map} +1 -1
  73. package/dist/client/{floatingips-Fa6ocNUu.mjs → floatingips-ByRb82wS.mjs} +138 -139
  74. package/dist/client/{floatingips-Fa6ocNUu.mjs.map → floatingips-ByRb82wS.mjs.map} +1 -1
  75. package/dist/client/{formatBytes-tQBEnPoL.mjs → formatBytes-CZv_XyCY.mjs} +1 -1
  76. package/dist/client/{formatBytes-tQBEnPoL.mjs.map → formatBytes-CZv_XyCY.mjs.map} +1 -1
  77. package/dist/client/{helpers--JWXi40U.mjs → helpers-1PpYf-fC.mjs} +1 -1
  78. package/dist/client/{helpers--JWXi40U.mjs.map → helpers-1PpYf-fC.mjs.map} +1 -1
  79. package/dist/client/hooks-dSArr2Ca.mjs +2 -0
  80. package/dist/client/images-CKqIXUq52.mjs +1873 -0
  81. package/dist/client/images-CKqIXUq52.mjs.map +1 -0
  82. package/dist/client/{images-tYfyOkX8.mjs → images-C_dX7nY6.mjs} +3 -3
  83. package/dist/client/{images-tYfyOkX8.mjs.map → images-C_dX7nY6.mjs.map} +1 -1
  84. package/dist/client/{images-CTLCY-yY.mjs → images-CenluYV8.mjs} +2 -2
  85. package/dist/client/{images-CTLCY-yY.mjs.map → images-CenluYV8.mjs.map} +1 -1
  86. package/dist/client/{images-DM9I8G0p.mjs → images-NBf2bV43.mjs} +2 -2
  87. package/dist/client/{images-DM9I8G0p.mjs.map → images-NBf2bV43.mjs.map} +1 -1
  88. package/dist/client/index.js +428 -477
  89. package/dist/client/index.js.map +1 -1
  90. package/dist/client/{md-BivyCkGC.mjs → md-CYTrL5dq.mjs} +58 -22
  91. package/dist/client/{md-BivyCkGC.mjs.map → md-CYTrL5dq.mjs.map} +1 -1
  92. package/dist/client/{network-rYLHyf15.mjs → network-DuZm76BZ.mjs} +2 -2
  93. package/dist/client/{network-rYLHyf15.mjs.map → network-DuZm76BZ.mjs.map} +1 -1
  94. package/dist/client/objects-BJM6YeuF.mjs +5708 -0
  95. package/dist/client/objects-BJM6YeuF.mjs.map +1 -0
  96. package/dist/client/objects-gxSjvbvF.mjs +101 -0
  97. package/dist/client/objects-gxSjvbvF.mjs.map +1 -0
  98. package/dist/client/objects-o2Cj_ndZ.mjs +8 -0
  99. package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -0
  100. package/dist/client/{pca-COmKvp3J.mjs → pca-Bl8NmoVZ.mjs} +2 -2
  101. package/dist/client/{pca-COmKvp3J.mjs.map → pca-Bl8NmoVZ.mjs.map} +1 -1
  102. package/dist/client/pca-RSiWpJs9.mjs +182 -0
  103. package/dist/client/pca-RSiWpJs9.mjs.map +1 -0
  104. package/dist/client/projects-CgclWI16.mjs +105 -0
  105. package/dist/client/projects-CgclWI16.mjs.map +1 -0
  106. package/dist/client/{projects-DI_L4oDw.mjs → projects-D2iewAzu.mjs} +2 -2
  107. package/dist/client/{projects-DI_L4oDw.mjs.map → projects-D2iewAzu.mjs.map} +1 -1
  108. package/dist/client/{projects-Dl5XkXUP.mjs → projects-pe2_dCnV.mjs} +3 -3
  109. package/dist/client/{projects-Dl5XkXUP.mjs.map → projects-pe2_dCnV.mjs.map} +1 -1
  110. package/dist/client/{projects-HoQ0gE5Y.mjs → projects-yiK0HGSA.mjs} +2 -2
  111. package/dist/client/{projects-HoQ0gE5Y.mjs.map → projects-yiK0HGSA.mjs.map} +1 -1
  112. package/dist/client/{securitygroups-BjkmHk2J.mjs → securitygroups-DahZkVYQ.mjs} +139 -140
  113. package/dist/client/{securitygroups-BjkmHk2J.mjs.map → securitygroups-DahZkVYQ.mjs.map} +1 -1
  114. package/dist/client/{trpcClient-BxguzNYF.mjs → trpcClient-BzPUgiM2.mjs} +1 -1
  115. package/dist/client/{trpcClient-BxguzNYF.mjs.map → trpcClient-BzPUgiM2.mjs.map} +1 -1
  116. package/dist/client/{useErrorTranslation-TZVwIAzq.mjs → useErrorTranslation-Dc0eE8Zt.mjs} +1 -1
  117. package/dist/client/{useErrorTranslation-TZVwIAzq.mjs.map → useErrorTranslation-Dc0eE8Zt.mjs.map} +1 -1
  118. package/dist/client/useListWithFiltering-DaYcu5AB.mjs +157 -0
  119. package/dist/client/useListWithFiltering-DaYcu5AB.mjs.map +1 -0
  120. package/dist/client/{useModal-DxxlilRm.mjs → useModal-DCs1OJh7.mjs} +1 -1
  121. package/dist/client/{useModal-DxxlilRm.mjs.map → useModal-DCs1OJh7.mjs.map} +1 -1
  122. package/dist/client/{useProjectId-OQv2KBbG.mjs → useProjectId-DBc5lpoU.mjs} +1 -1
  123. package/dist/client/{useProjectId-OQv2KBbG.mjs.map → useProjectId-DBc5lpoU.mjs.map} +1 -1
  124. package/dist/server/index.js +1285 -435
  125. package/package.json +5 -4
  126. package/dist/client/DeleteFlavorModal-BusYn32r.mjs +0 -629
  127. package/dist/client/DeleteFlavorModal-BusYn32r.mjs.map +0 -1
  128. package/dist/client/ImageToastNotifications-BG9LPnXf.mjs +0 -1267
  129. package/dist/client/ImageToastNotifications-BG9LPnXf.mjs.map +0 -1
  130. package/dist/client/ListToolbar-BojRTNbo.mjs +0 -129
  131. package/dist/client/ListToolbar-BojRTNbo.mjs.map +0 -1
  132. package/dist/client/_flavorId-BRonXvCo.mjs +0 -188
  133. package/dist/client/_flavorId-BRonXvCo.mjs.map +0 -1
  134. package/dist/client/_flavorId-BoNcxYmF.mjs.map +0 -1
  135. package/dist/client/_imageId-BL0I5_pv.mjs +0 -527
  136. package/dist/client/_imageId-BL0I5_pv.mjs.map +0 -1
  137. package/dist/client/_pcaId-CbBhBrX1.mjs +0 -466
  138. package/dist/client/_pcaId-CbBhBrX1.mjs.map +0 -1
  139. package/dist/client/_projectId-5NiasyXm.mjs +0 -26
  140. package/dist/client/_projectId-5NiasyXm.mjs.map +0 -1
  141. package/dist/client/_projectId-BwLMEMGC.mjs.map +0 -1
  142. package/dist/client/_projectId-D35MN1kY.mjs +0 -316
  143. package/dist/client/_projectId-D35MN1kY.mjs.map +0 -1
  144. package/dist/client/about-DLn1ShhF.mjs +0 -92
  145. package/dist/client/aurora-CRcxVUCo.mjs +0 -19
  146. package/dist/client/build-BJDfnAyi.mjs.map +0 -1
  147. package/dist/client/constants-B-P2r5F1.mjs +0 -128
  148. package/dist/client/constants-B-P2r5F1.mjs.map +0 -1
  149. package/dist/client/containers-BjWqjNOx.mjs.map +0 -1
  150. package/dist/client/containers-DsRWc1L5.mjs +0 -7
  151. package/dist/client/containers-DsRWc1L5.mjs.map +0 -1
  152. package/dist/client/containers-J7WFA18U.mjs +0 -3120
  153. package/dist/client/containers-J7WFA18U.mjs.map +0 -1
  154. package/dist/client/flavors-qvgPSI7J.mjs +0 -613
  155. package/dist/client/flavors-qvgPSI7J.mjs.map +0 -1
  156. package/dist/client/hooks-DEjb9d1F.mjs +0 -2
  157. package/dist/client/images-CSFfefAu.mjs +0 -1901
  158. package/dist/client/images-CSFfefAu.mjs.map +0 -1
  159. package/dist/client/objects-BciXwZ00.mjs +0 -86
  160. package/dist/client/objects-BciXwZ00.mjs.map +0 -1
  161. package/dist/client/objects-Cdew99tK.mjs +0 -8
  162. package/dist/client/objects-Cdew99tK.mjs.map +0 -1
  163. package/dist/client/objects-DaElrban.mjs +0 -5340
  164. package/dist/client/objects-DaElrban.mjs.map +0 -1
  165. package/dist/client/overview-BMhjFMIV.mjs +0 -15
  166. package/dist/client/overview-BMhjFMIV.mjs.map +0 -1
  167. package/dist/client/overview-BYIRj7_X.mjs +0 -15
  168. package/dist/client/overview-BYIRj7_X.mjs.map +0 -1
  169. package/dist/client/overview-DRCKNBH2.mjs +0 -15
  170. package/dist/client/overview-DRCKNBH2.mjs.map +0 -1
  171. package/dist/client/overview-urYLOVQE.mjs +0 -173
  172. package/dist/client/overview-urYLOVQE.mjs.map +0 -1
  173. package/dist/client/pca-oc7J0_Xd.mjs +0 -167
  174. package/dist/client/pca-oc7J0_Xd.mjs.map +0 -1
  175. package/dist/client/projects-BUabCzvw.mjs +0 -95
  176. package/dist/client/projects-BUabCzvw.mjs.map +0 -1
  177. package/dist/client/useListWithFiltering-CbhHJO4V.mjs +0 -32
  178. package/dist/client/useListWithFiltering-CbhHJO4V.mjs.map +0 -1
@@ -1,12 +1,11 @@
1
- import { B as e, D as t, E as n, G as r, I as i, M as a, Q as o, S as s, T as c, U as l, X as u, Y as d, at as f, c as p, d as m, et as h, h as g, it as _, j as v, n as y, nt as b, ot as x, q as S, r as C, s as w, t as T, z as E } from "./build-BJDfnAyi.mjs";
2
- import { r as D } from "./trpcClient-BxguzNYF.mjs";
3
- import { t as O } from "./_securityGroupId-B-Z-CzLp.mjs";
4
- import { t as k } from "./useModal-DxxlilRm.mjs";
5
- import { t as A } from "./useProjectId-OQv2KBbG.mjs";
6
- import "./hooks-DEjb9d1F.mjs";
7
- import { t as j } from "./ListToolbar-BojRTNbo.mjs";
8
- import { t as M } from "./useListWithFiltering-CbhHJO4V.mjs";
9
- import { t as N } from "./EditSecurityGroupModal-DK3WYikA.mjs";
1
+ import { $ as e, B as t, F as n, G as r, H as i, O as a, P as o, Q as s, R as c, U as l, Y as u, a as d, ct as f, et as p, f as m, i as h, it as g, k as _, lt as v, q as y, r as b, s as x, t as S, tt as C, u as w, v as T, w as E } from "./build-DeJcDjPi.mjs";
2
+ import { r as D } from "./trpcClient-BzPUgiM2.mjs";
3
+ import { t as O } from "./_securityGroupId-CJJanWiY.mjs";
4
+ import { t as k } from "./useModal-DCs1OJh7.mjs";
5
+ import { t as A } from "./useProjectId-DBc5lpoU.mjs";
6
+ import "./hooks-dSArr2Ca.mjs";
7
+ import { n as j, t as M } from "./useListWithFiltering-DaYcu5AB.mjs";
8
+ import { t as N } from "./EditSecurityGroupModal-CpP54WIK.mjs";
10
9
  import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
11
10
  import { useEffect as L, useMemo as R, useState as z } from "react";
12
11
  import { useNavigate as B } from "@tanstack/react-router";
@@ -15,71 +14,71 @@ import { z as U } from "zod";
15
14
  import { useForm as W, useStore as G } from "@tanstack/react-form";
16
15
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupHeader.tsx
17
16
  function K({ name: e, id: t }) {
18
- return /* @__PURE__ */ I("div", {
17
+ return /*#__PURE__*/ I("div", {
19
18
  className: "mb-2",
20
- children: [/* @__PURE__ */ F(v, { children: `'${e || t}' Details` }), /* @__PURE__ */ F("p", {
19
+ children: [/*#__PURE__*/ F(y, { children: `'${e || t}' Details` }), /*#__PURE__*/ F("p", {
21
20
  className: "text-theme-secondary mt-2 text-sm",
22
- children: /* @__PURE__ */ F(V, { id: "kIuDMT" })
21
+ children: /*#__PURE__*/ F(V, { id: "kIuDMT" })
23
22
  })]
24
23
  });
25
24
  }
26
25
  //#endregion
27
26
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupBasicInfo.tsx
28
- function q({ securityGroup: e, onEdit: t, isReadOnly: n = !1 }) {
29
- let { i18n: o, _: s } = H(), c = ({ value: e }) => /* @__PURE__ */ F("span", { children: e ? o._({ id: "l75CjT" }) : o._({ id: "1UzENP" }) });
30
- return /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", {
27
+ function q({ securityGroup: e, onEdit: t, isReadOnly: i = !1 }) {
28
+ let { i18n: a, _: o } = H(), s = ({ value: e }) => /*#__PURE__*/ F("span", { children: e ? a._({ id: "l75CjT" }) : a._({ id: "1UzENP" }) });
29
+ return /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("div", {
31
30
  className: "mb-4 flex flex-row-reverse",
32
- children: t && !n && /* @__PURE__ */ F(p, {
31
+ children: t && !i && /*#__PURE__*/ F(f, {
33
32
  variant: "primary",
34
33
  onClick: t,
35
- disabled: n,
36
- children: /* @__PURE__ */ F(V, { id: "ePK91l" })
34
+ disabled: i,
35
+ children: /*#__PURE__*/ F(V, { id: "ePK91l" })
37
36
  })
38
- }), /* @__PURE__ */ I(l, {
37
+ }), /*#__PURE__*/ I(_, {
39
38
  columns: 4,
40
39
  gridColumnTemplate: "15% 35% 15% 35%",
41
40
  children: [
42
- /* @__PURE__ */ I(i, { children: [/* @__PURE__ */ F(r, { children: o._({ id: "Nu4oKW" }) }), /* @__PURE__ */ F(a, {
41
+ /*#__PURE__*/ I(E, { children: [/*#__PURE__*/ F(n, { children: a._({ id: "Nu4oKW" }) }), /*#__PURE__*/ F(r, {
43
42
  colSpan: 3,
44
- children: /* @__PURE__ */ F("div", {
43
+ children: /*#__PURE__*/ F("div", {
45
44
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
46
45
  title: e.description || void 0,
47
- children: e.description || o._({ id: "h47p9L" })
46
+ children: e.description || a._({ id: "h47p9L" })
48
47
  })
49
48
  })] }),
50
- /* @__PURE__ */ I(i, { children: [
51
- /* @__PURE__ */ F(r, { children: o._({ id: "S0kLOH" }) }),
52
- /* @__PURE__ */ F(a, { children: /* @__PURE__ */ F("div", {
49
+ /*#__PURE__*/ I(E, { children: [
50
+ /*#__PURE__*/ F(n, { children: a._({ id: "S0kLOH" }) }),
51
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
53
52
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
54
53
  title: e.id,
55
54
  children: e.id
56
55
  }) }),
57
- /* @__PURE__ */ F(r, { children: o._({ id: "OYHzN1" }) }),
58
- /* @__PURE__ */ F(a, { children: /* @__PURE__ */ F("div", {
56
+ /*#__PURE__*/ F(n, { children: a._({ id: "OYHzN1" }) }),
57
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
59
58
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
60
59
  title: e.tags?.join(", ") || void 0,
61
- children: e.tags?.join(", ") || o._({ id: "h47p9L" })
60
+ children: e.tags?.join(", ") || a._({ id: "h47p9L" })
62
61
  }) })
63
62
  ] }),
64
- /* @__PURE__ */ I(i, { children: [
65
- /* @__PURE__ */ F(r, { children: o._({ id: "6YtxFj" }) }),
66
- /* @__PURE__ */ F(a, { children: /* @__PURE__ */ F("div", {
63
+ /*#__PURE__*/ I(E, { children: [
64
+ /*#__PURE__*/ F(n, { children: a._({ id: "6YtxFj" }) }),
65
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
67
66
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
68
67
  title: e.name || void 0,
69
68
  children: e.name
70
69
  }) }),
71
- /* @__PURE__ */ F(r, { children: o._({ id: "Jim5X9" }) }),
72
- /* @__PURE__ */ F(a, { children: /* @__PURE__ */ F(c, { value: e.stateful }) })
70
+ /*#__PURE__*/ F(n, { children: a._({ id: "Jim5X9" }) }),
71
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(s, { value: e.stateful }) })
73
72
  ] }),
74
- /* @__PURE__ */ I(i, { children: [
75
- /* @__PURE__ */ F(r, { children: o._({ id: "aI8Tgp" }) }),
76
- /* @__PURE__ */ F(a, { children: /* @__PURE__ */ F("div", {
73
+ /*#__PURE__*/ I(E, { children: [
74
+ /*#__PURE__*/ F(n, { children: a._({ id: "aI8Tgp" }) }),
75
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
77
76
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
78
77
  title: e.project_id || void 0,
79
- children: e.project_id || o._({ id: "h47p9L" })
78
+ children: e.project_id || a._({ id: "h47p9L" })
80
79
  }) }),
81
- /* @__PURE__ */ F(r, { children: o._({ id: "0Gd0NU" }) }),
82
- /* @__PURE__ */ F(a, { children: /* @__PURE__ */ F(c, { value: e.shared }) })
80
+ /*#__PURE__*/ F(n, { children: a._({ id: "0Gd0NU" }) }),
81
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(s, { value: e.shared }) })
83
82
  ] })
84
83
  ]
85
84
  })] });
@@ -88,115 +87,115 @@ function q({ securityGroup: e, onEdit: t, isReadOnly: n = !1 }) {
88
87
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupTabs.tsx
89
88
  function J({ activeTab: e, onTabChange: t, showRBACTab: n = !0 }) {
90
89
  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"}`;
91
- return /* @__PURE__ */ F("div", {
90
+ return /*#__PURE__*/ F("div", {
92
91
  className: "border-theme-background-lvl-3 mt-1 border-b",
93
- children: /* @__PURE__ */ I(b, {
92
+ children: /*#__PURE__*/ I(s, {
94
93
  direction: "horizontal",
95
94
  gap: "0",
96
- children: [/* @__PURE__ */ F("button", {
95
+ children: [/*#__PURE__*/ F("button", {
97
96
  className: r("rules"),
98
97
  onClick: () => t("rules"),
99
- children: /* @__PURE__ */ F(V, { id: "4EZrJN" })
100
- }), n && /* @__PURE__ */ F("button", {
98
+ children: /*#__PURE__*/ F(V, { id: "4EZrJN" })
99
+ }), n && /*#__PURE__*/ F("button", {
101
100
  className: r("rbac"),
102
101
  onClick: () => t("rbac"),
103
- children: /* @__PURE__ */ F(V, { id: "/eFtWI" })
102
+ children: /*#__PURE__*/ F(V, { id: "/eFtWI" })
104
103
  })]
105
104
  })
106
105
  });
107
106
  }
108
107
  //#endregion
109
108
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/DeleteRuleDialog.tsx
110
- function Y({ rule: t, open: n, onClose: r, onConfirm: i, isLoading: a, error: o }) {
111
- let { i18n: s, _: l } = H(), [u, d] = z(""), f = () => {
112
- t && u === "delete" && i(t.id);
113
- }, m = () => {
109
+ function Y({ rule: e, open: n, onClose: r, onConfirm: i, isLoading: a, error: o }) {
110
+ let { i18n: s, _: c } = H(), [u, d] = z(""), p = () => {
111
+ e && u === "delete" && i(e.id);
112
+ }, g = () => {
114
113
  d(""), r();
115
- }, h = u !== "delete" || a;
116
- return t ? /* @__PURE__ */ F(x, {
114
+ }, _ = u !== "delete" || a;
115
+ return e ? /*#__PURE__*/ F(b, {
117
116
  open: n,
118
- onCancel: m,
117
+ onCancel: g,
119
118
  size: "small",
120
119
  title: s._({ id: "TM93nK" }),
121
- modalFooter: /* @__PURE__ */ F(e, {
120
+ modalFooter: /*#__PURE__*/ F(m, {
122
121
  className: "flex justify-end",
123
- children: /* @__PURE__ */ I(g, { children: [/* @__PURE__ */ F(p, {
122
+ children: /*#__PURE__*/ I(h, { children: [/*#__PURE__*/ F(f, {
124
123
  variant: "default",
125
- onClick: m,
124
+ onClick: g,
126
125
  disabled: a,
127
- children: /* @__PURE__ */ F(V, { id: "dEgA5A" })
128
- }), /* @__PURE__ */ F(p, {
126
+ children: /*#__PURE__*/ F(V, { id: "dEgA5A" })
127
+ }), /*#__PURE__*/ F(f, {
129
128
  variant: "primary-danger",
130
- onClick: f,
131
- disabled: h,
129
+ onClick: p,
130
+ disabled: _,
132
131
  "data-testid": "confirm-delete-rule-button",
133
- children: a ? /* @__PURE__ */ F(V, { id: "EF2EU9" }) : /* @__PURE__ */ F(V, { id: "lN3xvy" })
132
+ children: a ? /*#__PURE__*/ F(V, { id: "EF2EU9" }) : /*#__PURE__*/ F(V, { id: "lN3xvy" })
134
133
  })] })
135
134
  }),
136
- children: /* @__PURE__ */ I("div", { children: [
137
- o && /* @__PURE__ */ F(S, {
135
+ children: /*#__PURE__*/ I("div", { children: [
136
+ o && /*#__PURE__*/ F(t, {
138
137
  dismissible: !1,
139
138
  variant: "error",
140
139
  className: "mt-4",
141
140
  children: o
142
141
  }),
143
- /* @__PURE__ */ F(V, { id: "CMVP7y" }),
144
- /* @__PURE__ */ I("div", {
142
+ /*#__PURE__*/ F(V, { id: "CMVP7y" }),
143
+ /*#__PURE__*/ I("div", {
145
144
  className: "bg-theme-background-lvl-1 mt-4 mb-4 rounded p-4",
146
- children: [/* @__PURE__ */ F("p", {
145
+ children: [/*#__PURE__*/ F("p", {
147
146
  className: "mb-2 font-semibold",
148
- children: /* @__PURE__ */ F(V, { id: "uly9ET" })
149
- }), /* @__PURE__ */ I("ul", {
147
+ children: /*#__PURE__*/ F(V, { id: "uly9ET" })
148
+ }), /*#__PURE__*/ I("ul", {
150
149
  className: "list-inside list-disc space-y-1 text-sm",
151
150
  children: [
152
- /* @__PURE__ */ I("li", { children: [
153
- /* @__PURE__ */ F(V, { id: "MRB7nI" }),
151
+ /*#__PURE__*/ I("li", { children: [
152
+ /*#__PURE__*/ F(V, { id: "MRB7nI" }),
154
153
  ": ",
155
- t.direction
154
+ e.direction
156
155
  ] }),
157
- t.description && /* @__PURE__ */ I("li", { children: [
158
- /* @__PURE__ */ F(V, { id: "Nu4oKW" }),
156
+ e.description && /*#__PURE__*/ I("li", { children: [
157
+ /*#__PURE__*/ F(V, { id: "Nu4oKW" }),
159
158
  ": ",
160
- t.description
159
+ e.description
161
160
  ] }),
162
- /* @__PURE__ */ I("li", { children: [
163
- /* @__PURE__ */ F(V, { id: "yp0UjB" }),
161
+ /*#__PURE__*/ I("li", { children: [
162
+ /*#__PURE__*/ F(V, { id: "yp0UjB" }),
164
163
  ": ",
165
- t.ethertype
164
+ e.ethertype
166
165
  ] }),
167
- t.protocol && /* @__PURE__ */ I("li", { children: [
168
- /* @__PURE__ */ F(V, { id: "6+OdGi" }),
166
+ e.protocol && /*#__PURE__*/ I("li", { children: [
167
+ /*#__PURE__*/ F(V, { id: "6+OdGi" }),
169
168
  ": ",
170
- t.protocol
169
+ e.protocol
171
170
  ] }),
172
- t.port_range_min !== null && t.port_range_max !== null && /* @__PURE__ */ I("li", { children: [
173
- /* @__PURE__ */ F(V, { id: "tV/Ozb" }),
171
+ e.port_range_min !== null && e.port_range_max !== null && /*#__PURE__*/ I("li", { children: [
172
+ /*#__PURE__*/ F(V, { id: "tV/Ozb" }),
174
173
  ":",
175
174
  " ",
176
- t.port_range_min === t.port_range_max ? t.port_range_min : `${t.port_range_min}-${t.port_range_max}`
175
+ e.port_range_min === e.port_range_max ? e.port_range_min : `${e.port_range_min}-${e.port_range_max}`
177
176
  ] }),
178
- t.remote_ip_prefix && /* @__PURE__ */ I("li", { children: [
179
- /* @__PURE__ */ F(V, { id: "WoSkGY" }),
177
+ e.remote_ip_prefix && /*#__PURE__*/ I("li", { children: [
178
+ /*#__PURE__*/ F(V, { id: "WoSkGY" }),
180
179
  ": ",
181
- t.remote_ip_prefix
180
+ e.remote_ip_prefix
182
181
  ] }),
183
- t.remote_group_id && /* @__PURE__ */ I("li", { children: [
184
- /* @__PURE__ */ F(V, { id: "i9TIyi" }),
182
+ e.remote_group_id && /*#__PURE__*/ I("li", { children: [
183
+ /*#__PURE__*/ F(V, { id: "i9TIyi" }),
185
184
  ": ",
186
- t.remote_group_id
185
+ e.remote_group_id
187
186
  ] })
188
187
  ]
189
188
  })]
190
189
  }),
191
- /* @__PURE__ */ I("div", {
190
+ /*#__PURE__*/ I("div", {
192
191
  className: "mt-4",
193
- children: [/* @__PURE__ */ F("p", {
192
+ children: [/*#__PURE__*/ F("p", {
194
193
  className: "mb-2 text-sm",
195
- children: /* @__PURE__ */ F(V, {
194
+ children: /*#__PURE__*/ F(V, {
196
195
  id: "PHt+EV",
197
- components: { 0: /* @__PURE__ */ F("strong", {}) }
196
+ components: { 0: /*#__PURE__*/ F("strong", {}) }
198
197
  })
199
- }), /* @__PURE__ */ F(c, {
198
+ }), /*#__PURE__*/ F(l, {
200
199
  value: u,
201
200
  onChange: (e) => d(e.target.value),
202
201
  placeholder: s._({ id: "HNlEFZ" }),
@@ -549,12 +548,12 @@ var Z = "0.0.0.0/0", re = "::/0", ie = "other-protocol", ae = U.object({
549
548
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/RuleTypeSection.tsx
550
549
  function se({ form: e, disabled: t = !1 }) {
551
550
  let { i18n: n, _: r } = H();
552
- return /* @__PURE__ */ F(e.Field, {
551
+ return /*#__PURE__*/ F(e.Field, {
553
552
  name: "ruleType",
554
553
  mode: "value",
555
- children: (r) => /* @__PURE__ */ F(_, {
554
+ children: (r) => /*#__PURE__*/ F(x, {
556
555
  className: "mb-6",
557
- children: /* @__PURE__ */ F(C, {
556
+ children: /*#__PURE__*/ F(v, {
558
557
  id: "ruleType",
559
558
  label: n._({ id: "YuGQWb" }),
560
559
  value: r.state.value,
@@ -568,10 +567,10 @@ function se({ form: e, disabled: t = !1 }) {
568
567
  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", "")));
569
568
  },
570
569
  disabled: t,
571
- children: Q.map((e) => e.value === "" ? /* @__PURE__ */ F(m, {
570
+ children: Q.map((e) => e.value === "" ? /*#__PURE__*/ F(w, {
572
571
  value: e.value,
573
572
  label: n._({ id: "eh/k36" })
574
- }, e.value) : /* @__PURE__ */ F(m, {
573
+ }, e.value) : /*#__PURE__*/ F(w, {
575
574
  value: e.value,
576
575
  label: e.label
577
576
  }, e.value))
@@ -583,21 +582,21 @@ function se({ form: e, disabled: t = !1 }) {
583
582
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/DirectionEthertypeSection.tsx
584
583
  function ce({ form: e, disabled: t = !1 }) {
585
584
  let { i18n: n, _: r } = H();
586
- return /* @__PURE__ */ F(e.Field, {
585
+ return /*#__PURE__*/ F(e.Field, {
587
586
  name: "direction",
588
- children: (e) => /* @__PURE__ */ F(_, { children: /* @__PURE__ */ F(s, {
587
+ children: (e) => /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(S, {
589
588
  name: "direction",
590
589
  label: n._({ id: "MRB7nI" }),
591
590
  selected: e.state.value,
592
591
  onChange: (t) => e.handleChange(String(t)),
593
592
  required: !0,
594
593
  disabled: t,
595
- children: /* @__PURE__ */ I("div", {
594
+ children: /*#__PURE__*/ I("div", {
596
595
  className: "flex gap-4",
597
- children: [/* @__PURE__ */ F(T, {
596
+ children: [/*#__PURE__*/ F(T, {
598
597
  value: "ingress",
599
598
  label: n._({ id: "fzfAAa" })
600
- }), /* @__PURE__ */ F(T, {
599
+ }), /*#__PURE__*/ F(T, {
601
600
  value: "egress",
602
601
  label: n._({ id: "nETBrc" })
603
602
  })]
@@ -607,21 +606,21 @@ function ce({ form: e, disabled: t = !1 }) {
607
606
  }
608
607
  function le({ form: e, disabled: t = !1 }) {
609
608
  let { i18n: n, _: r } = H();
610
- return /* @__PURE__ */ F(e.Field, {
609
+ return /*#__PURE__*/ F(e.Field, {
611
610
  name: "ethertype",
612
- children: (e) => /* @__PURE__ */ F(_, { children: /* @__PURE__ */ F(s, {
611
+ children: (e) => /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(S, {
613
612
  name: "ethertype",
614
613
  label: n._({ id: "16085O" }),
615
614
  selected: e.state.value,
616
615
  onChange: (t) => e.handleChange(String(t)),
617
616
  required: !0,
618
617
  disabled: t,
619
- children: /* @__PURE__ */ I("div", {
618
+ children: /*#__PURE__*/ I("div", {
620
619
  className: "flex gap-4",
621
- children: [/* @__PURE__ */ F(T, {
620
+ children: [/*#__PURE__*/ F(T, {
622
621
  value: "IPv4",
623
622
  label: "IPv4"
624
- }), /* @__PURE__ */ F(T, {
623
+ }), /*#__PURE__*/ F(T, {
625
624
  value: "IPv6",
626
625
  label: "IPv6"
627
626
  })]
@@ -633,11 +632,11 @@ function le({ form: e, disabled: t = !1 }) {
633
632
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/ProtocolSection.tsx
634
633
  function ue({ form: e, disabled: t = !1 }) {
635
634
  let { i18n: n, _: r } = H();
636
- return /* @__PURE__ */ F(e.Field, {
635
+ return /*#__PURE__*/ F(e.Field, {
637
636
  name: "protocol",
638
- children: (e) => /* @__PURE__ */ F(_, {
637
+ children: (e) => /*#__PURE__*/ F(x, {
639
638
  className: "mb-6",
640
- children: /* @__PURE__ */ F(c, {
639
+ children: /*#__PURE__*/ F(l, {
641
640
  id: "protocol",
642
641
  name: "protocol",
643
642
  label: n._({ id: "6+OdGi" }),
@@ -654,17 +653,17 @@ function ue({ form: e, disabled: t = !1 }) {
654
653
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/PortRangeSection.tsx
655
654
  function de({ form: e, disabled: t = !1 }) {
656
655
  let { i18n: n, _: r } = H(), i = G(e.store, (e) => e.values.portFrom), a = G(e.store, (e) => e.fieldMeta.portFrom?.errors[0]?.message), o = G(e.store, (e) => e.fieldMeta.portTo?.errors[0]?.message), s = t || !i || i.trim() === "";
657
- return /* @__PURE__ */ I(_, {
656
+ return /*#__PURE__*/ I(x, {
658
657
  className: "mb-6",
659
658
  children: [
660
- /* @__PURE__ */ I("div", {
659
+ /*#__PURE__*/ I("div", {
661
660
  className: "flex items-center gap-4",
662
661
  children: [
663
- /* @__PURE__ */ F(e.Field, {
662
+ /*#__PURE__*/ F(e.Field, {
664
663
  name: "portFrom",
665
- children: (r) => /* @__PURE__ */ F("div", {
664
+ children: (r) => /*#__PURE__*/ F("div", {
666
665
  className: "flex-1",
667
- children: /* @__PURE__ */ F(c, {
666
+ children: /*#__PURE__*/ F(l, {
668
667
  id: "portFrom",
669
668
  name: "portFrom",
670
669
  label: n._({ id: "LMdsuJ" }),
@@ -679,15 +678,15 @@ function de({ form: e, disabled: t = !1 }) {
679
678
  })
680
679
  })
681
680
  }),
682
- /* @__PURE__ */ F("div", {
681
+ /*#__PURE__*/ F("div", {
683
682
  className: "text-theme-secondary flex items-center justify-center",
684
683
  children: "—"
685
684
  }),
686
- /* @__PURE__ */ F(e.Field, {
685
+ /*#__PURE__*/ F(e.Field, {
687
686
  name: "portTo",
688
- children: (t) => /* @__PURE__ */ F("div", {
687
+ children: (t) => /*#__PURE__*/ F("div", {
689
688
  className: "flex-1",
690
- children: /* @__PURE__ */ F(c, {
689
+ children: /*#__PURE__*/ F(l, {
691
690
  id: "portTo",
692
691
  name: "portTo",
693
692
  label: n._({ id: "a12lSo" }),
@@ -703,11 +702,11 @@ function de({ form: e, disabled: t = !1 }) {
703
702
  })
704
703
  ]
705
704
  }),
706
- (a || o) && /* @__PURE__ */ I("div", {
705
+ (a || o) && /*#__PURE__*/ I("div", {
707
706
  className: "text-theme-error mt-2 text-sm",
708
- children: [a && /* @__PURE__ */ F("div", { children: a }), o && /* @__PURE__ */ F("div", { children: o })]
707
+ children: [a && /*#__PURE__*/ F("div", { children: a }), o && /*#__PURE__*/ F("div", { children: o })]
709
708
  }),
710
- /* @__PURE__ */ F("p", {
709
+ /*#__PURE__*/ F("p", {
711
710
  className: "mt-2 text-sm",
712
711
  children: n._({ id: "QAUa4B" })
713
712
  })
@@ -718,15 +717,15 @@ function de({ form: e, disabled: t = !1 }) {
718
717
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/IcmpSection.tsx
719
718
  function fe({ form: e, disabled: t = !1 }) {
720
719
  let { i18n: n, _: r } = H();
721
- return /* @__PURE__ */ F(_, {
720
+ return /*#__PURE__*/ F(x, {
722
721
  className: "mb-6",
723
- children: /* @__PURE__ */ I("div", {
722
+ children: /*#__PURE__*/ I("div", {
724
723
  className: "flex w-full gap-4",
725
- children: [/* @__PURE__ */ F(e.Field, {
724
+ children: [/*#__PURE__*/ F(e.Field, {
726
725
  name: "icmpType",
727
- children: (e) => /* @__PURE__ */ F("div", {
726
+ children: (e) => /*#__PURE__*/ F("div", {
728
727
  className: "flex-1",
729
- children: /* @__PURE__ */ F(c, {
728
+ children: /*#__PURE__*/ F(l, {
730
729
  id: "icmpType",
731
730
  name: "icmpType",
732
731
  label: n._({ id: "yPWFWy" }),
@@ -737,11 +736,11 @@ function fe({ form: e, disabled: t = !1 }) {
737
736
  disabled: t
738
737
  })
739
738
  })
740
- }), /* @__PURE__ */ F(e.Field, {
739
+ }), /*#__PURE__*/ F(e.Field, {
741
740
  name: "icmpCode",
742
- children: (e) => /* @__PURE__ */ F("div", {
741
+ children: (e) => /*#__PURE__*/ F("div", {
743
742
  className: "flex-1",
744
- children: /* @__PURE__ */ F(c, {
743
+ children: /*#__PURE__*/ F(l, {
745
744
  id: "icmpCode",
746
745
  name: "icmpCode",
747
746
  label: n._({ id: "76RKuS" }),
@@ -760,13 +759,13 @@ function fe({ form: e, disabled: t = !1 }) {
760
759
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/RemoteSourceSection.tsx
761
760
  function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
762
761
  let { i18n: r, _: i } = H();
763
- return /* @__PURE__ */ I(P, { children: [
764
- /* @__PURE__ */ F(e.Field, {
762
+ return /*#__PURE__*/ I(P, { children: [
763
+ /*#__PURE__*/ F(e.Field, {
765
764
  name: "remoteSourceType",
766
765
  mode: "value",
767
- children: (n) => /* @__PURE__ */ F(_, {
766
+ children: (n) => /*#__PURE__*/ F(x, {
768
767
  className: "mb-1",
769
- children: /* @__PURE__ */ F(s, {
768
+ children: /*#__PURE__*/ F(S, {
770
769
  name: "remoteSourceType",
771
770
  label: r._({ id: "I5kZVK" }),
772
771
  selected: n.state.value,
@@ -775,12 +774,12 @@ function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
775
774
  n.handleChange(r), r !== "security_group" && e.setFieldValue("ethertype", "IPv4");
776
775
  },
777
776
  disabled: t,
778
- children: /* @__PURE__ */ I("div", {
777
+ children: /*#__PURE__*/ I("div", {
779
778
  className: "flex gap-4",
780
- children: [/* @__PURE__ */ F(T, {
779
+ children: [/*#__PURE__*/ F(T, {
781
780
  value: "cidr",
782
781
  label: r._({ id: "4uXhtt" })
783
- }), /* @__PURE__ */ F(T, {
782
+ }), /*#__PURE__*/ F(T, {
784
783
  value: "security_group",
785
784
  label: r._({ id: "bwhBhT" })
786
785
  })]
@@ -788,15 +787,15 @@ function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
788
787
  })
789
788
  })
790
789
  }),
791
- /* @__PURE__ */ F(e.Field, {
790
+ /*#__PURE__*/ F(e.Field, {
792
791
  name: "remoteSourceType",
793
- children: (n) => n.state.value === "cidr" ? /* @__PURE__ */ F(e.Field, {
792
+ children: (n) => n.state.value === "cidr" ? /*#__PURE__*/ F(e.Field, {
794
793
  name: "remoteCidr",
795
- children: (n) => /* @__PURE__ */ F(e.Field, {
794
+ children: (n) => /*#__PURE__*/ F(e.Field, {
796
795
  name: "ethertype",
797
- children: (e) => /* @__PURE__ */ F(_, {
796
+ children: (e) => /*#__PURE__*/ F(x, {
798
797
  className: "mb-6",
799
- children: /* @__PURE__ */ F(c, {
798
+ children: /*#__PURE__*/ F(l, {
800
799
  id: "remoteCidr",
801
800
  name: "remoteCidr",
802
801
  label: r._({ id: "vmYyLY" }),
@@ -810,23 +809,23 @@ function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
810
809
  })
811
810
  }) : null
812
811
  }),
813
- /* @__PURE__ */ F(e.Field, {
812
+ /*#__PURE__*/ F(e.Field, {
814
813
  name: "remoteSourceType",
815
- children: (i) => i.state.value === "security_group" ? /* @__PURE__ */ F(e.Field, {
814
+ children: (i) => i.state.value === "security_group" ? /*#__PURE__*/ F(e.Field, {
816
815
  name: "remoteSecurityGroupId",
817
- children: (e) => /* @__PURE__ */ F(_, {
816
+ children: (e) => /*#__PURE__*/ F(x, {
818
817
  className: "mb-6",
819
- children: /* @__PURE__ */ I(C, {
818
+ children: /*#__PURE__*/ I(v, {
820
819
  id: "remoteSecurityGroupId",
821
820
  label: r._({ id: "i9TIyi" }),
822
821
  value: e.state.value,
823
822
  onChange: (t) => e.handleChange(String(t)),
824
823
  errortext: e.state.meta.errors[0]?.message,
825
824
  disabled: t,
826
- children: [/* @__PURE__ */ F(m, {
825
+ children: [/*#__PURE__*/ F(w, {
827
826
  value: "",
828
827
  label: r._({ id: "ZvIpwi" })
829
- }), n.map((e) => /* @__PURE__ */ F(m, {
828
+ }), n.map((e) => /*#__PURE__*/ F(w, {
830
829
  value: e.id,
831
830
  label: e.name || e.id
832
831
  }, e.id))]
@@ -840,11 +839,11 @@ function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
840
839
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/DescriptionSection.tsx
841
840
  function me({ form: e, disabled: t = !1 }) {
842
841
  let { i18n: n, _: r } = H();
843
- return /* @__PURE__ */ F(e.Field, {
842
+ return /*#__PURE__*/ F(e.Field, {
844
843
  name: "description",
845
- children: (e) => /* @__PURE__ */ F(_, {
844
+ children: (e) => /*#__PURE__*/ F(x, {
846
845
  className: "mb-0",
847
- children: /* @__PURE__ */ F(w, {
846
+ children: /*#__PURE__*/ F(p, {
848
847
  id: "description",
849
848
  name: "description",
850
849
  label: n._({ id: "Nu4oKW" }),
@@ -859,111 +858,111 @@ function me({ form: e, disabled: t = !1 }) {
859
858
  }
860
859
  //#endregion
861
860
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/AddRuleModal.tsx
862
- var he = ({ securityGroupId: t, open: n, onClose: r, onCreate: i, isLoading: a = !1, error: s = null, availableSecurityGroups: c = [] }) => {
863
- let { i18n: l, _: u } = H(), d = W({
861
+ var he = ({ securityGroupId: e, open: n, onClose: r, onCreate: a, isLoading: o = !1, error: s = null, availableSecurityGroups: l = [] }) => {
862
+ let { i18n: u, _: p } = H(), g = W({
864
863
  defaultValues: oe,
865
864
  validators: { onSubmit: ae },
866
- onSubmit: async ({ value: e }) => {
867
- if (a) return;
865
+ onSubmit: async ({ value: t }) => {
866
+ if (o) return;
868
867
  let n = {
869
- security_group_id: t,
870
- direction: e.direction,
871
- ethertype: e.ethertype,
872
- description: e.description || void 0,
873
- protocol: e.protocol || null,
868
+ security_group_id: e,
869
+ direction: t.direction,
870
+ ethertype: t.ethertype,
871
+ description: t.description || void 0,
872
+ protocol: t.protocol || null,
874
873
  remote_ip_prefix: void 0,
875
874
  remote_group_id: void 0,
876
875
  remote_address_group_id: void 0
877
876
  };
878
- if ((e.protocol === "tcp" || e.protocol === "udp") && e.portFrom) {
879
- let t = parseInt(e.portFrom, 10);
880
- n.port_range_min = t, e.portTo ? n.port_range_max = parseInt(e.portTo, 10) : n.port_range_max = t;
877
+ if ((t.protocol === "tcp" || t.protocol === "udp") && t.portFrom) {
878
+ let e = parseInt(t.portFrom, 10);
879
+ n.port_range_min = e, t.portTo ? n.port_range_max = parseInt(t.portTo, 10) : n.port_range_max = e;
881
880
  }
882
- (e.protocol === "icmp" || e.protocol === "ipv6-icmp") && (e.icmpType && (n.port_range_min = parseInt(e.icmpType, 10)), e.icmpCode && (n.port_range_max = parseInt(e.icmpCode, 10))), e.remoteSourceType === "cidr" && e.remoteCidr ? n.remote_ip_prefix = e.remoteCidr : e.remoteSourceType === "security_group" && e.remoteSecurityGroupId && (n.remote_group_id = e.remoteSecurityGroupId), await i(n), m();
881
+ (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), _();
883
882
  }
884
- }), m = () => {
885
- d.reset(), r();
883
+ }), _ = () => {
884
+ g.reset(), r();
886
885
  };
887
- return /* @__PURE__ */ I(x, {
886
+ return /*#__PURE__*/ I(b, {
888
887
  open: n,
889
- onCancel: m,
888
+ onCancel: _,
890
889
  size: "large",
891
- title: l._({ id: "b2BLBa" }),
892
- modalFooter: /* @__PURE__ */ F(e, {
890
+ title: u._({ id: "b2BLBa" }),
891
+ modalFooter: /*#__PURE__*/ F(m, {
893
892
  className: "flex justify-end",
894
- children: /* @__PURE__ */ F(d.Subscribe, { children: (e) => {
893
+ children: /*#__PURE__*/ F(g.Subscribe, { children: (e) => {
895
894
  let t = !!e.values.ruleType;
896
- return /* @__PURE__ */ I(g, { children: [/* @__PURE__ */ F(p, {
895
+ return /*#__PURE__*/ I(h, { children: [/*#__PURE__*/ F(f, {
897
896
  variant: "default",
898
- onClick: m,
899
- disabled: a || e.isSubmitting,
900
- children: /* @__PURE__ */ F(V, { id: "dEgA5A" })
901
- }), /* @__PURE__ */ F(p, {
897
+ onClick: _,
898
+ disabled: o || e.isSubmitting,
899
+ children: /*#__PURE__*/ F(V, { id: "dEgA5A" })
900
+ }), /*#__PURE__*/ F(f, {
902
901
  variant: "primary",
903
902
  type: "button",
904
- onClick: () => d.handleSubmit(),
905
- disabled: a || e.isSubmitting || !t,
903
+ onClick: () => g.handleSubmit(),
904
+ disabled: o || e.isSubmitting || !t,
906
905
  "data-testid": "add-rule-button",
907
- children: e.isSubmitting || a ? /* @__PURE__ */ F(o, { size: "small" }) : /* @__PURE__ */ F(V, { id: "bmQLn5" })
906
+ children: e.isSubmitting || o ? /*#__PURE__*/ F(c, { size: "small" }) : /*#__PURE__*/ F(V, { id: "bmQLn5" })
908
907
  })] });
909
908
  } })
910
909
  }),
911
910
  children: [
912
- s && /* @__PURE__ */ F(S, {
911
+ s && /*#__PURE__*/ F(t, {
913
912
  dismissible: !1,
914
913
  variant: "error",
915
914
  className: "mb-4",
916
915
  children: s
917
916
  }),
918
- a && /* @__PURE__ */ I("div", {
917
+ o && /*#__PURE__*/ I("div", {
919
918
  className: "mb-4 flex items-center justify-center gap-2",
920
- children: [/* @__PURE__ */ F(o, { variant: "primary" }), /* @__PURE__ */ F("span", {
919
+ children: [/*#__PURE__*/ F(c, { variant: "primary" }), /*#__PURE__*/ F("span", {
921
920
  className: "text-theme-secondary text-sm",
922
- children: /* @__PURE__ */ F(V, { id: "gU7JFm" })
921
+ children: /*#__PURE__*/ F(V, { id: "gU7JFm" })
923
922
  })]
924
923
  }),
925
- /* @__PURE__ */ F(f, {
924
+ /*#__PURE__*/ F(d, {
926
925
  className: "mb-6",
927
926
  onSubmit: (e) => {
928
- e.preventDefault(), d.handleSubmit();
927
+ e.preventDefault(), g.handleSubmit();
929
928
  },
930
- children: /* @__PURE__ */ I(y, {
929
+ children: /*#__PURE__*/ I(i, {
931
930
  className: "mb-6",
932
- children: [/* @__PURE__ */ F(se, {
933
- form: d,
934
- disabled: a
935
- }), /* @__PURE__ */ F(d.Subscribe, { children: (e) => {
931
+ children: [/*#__PURE__*/ F(se, {
932
+ form: g,
933
+ disabled: o
934
+ }), /*#__PURE__*/ F(g.Subscribe, { children: (e) => {
936
935
  if (!e.values.ruleType) return null;
937
936
  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";
938
- return /* @__PURE__ */ I(P, { children: [
939
- /* @__PURE__ */ F(ce, {
940
- form: d,
941
- disabled: a
937
+ return /*#__PURE__*/ I(P, { children: [
938
+ /*#__PURE__*/ F(ce, {
939
+ form: g,
940
+ disabled: o
942
941
  }),
943
- e.values.ruleType === "other-protocol" && /* @__PURE__ */ F(ue, {
944
- form: d,
945
- disabled: a
942
+ e.values.ruleType === "other-protocol" && /*#__PURE__*/ F(ue, {
943
+ form: g,
944
+ disabled: o
946
945
  }),
947
- t && /* @__PURE__ */ F(de, {
948
- form: d,
949
- disabled: a
946
+ t && /*#__PURE__*/ F(de, {
947
+ form: g,
948
+ disabled: o
950
949
  }),
951
- n && /* @__PURE__ */ F(fe, {
952
- form: d,
953
- disabled: a
950
+ n && /*#__PURE__*/ F(fe, {
951
+ form: g,
952
+ disabled: o
954
953
  }),
955
- /* @__PURE__ */ F(pe, {
956
- form: d,
957
- disabled: a,
958
- availableSecurityGroups: c
954
+ /*#__PURE__*/ F(pe, {
955
+ form: g,
956
+ disabled: o,
957
+ availableSecurityGroups: l
959
958
  }),
960
- e.values.remoteSourceType === "security_group" && /* @__PURE__ */ F(le, {
961
- form: d,
962
- disabled: a
959
+ e.values.remoteSourceType === "security_group" && /*#__PURE__*/ F(le, {
960
+ form: g,
961
+ disabled: o
963
962
  }),
964
- /* @__PURE__ */ F(me, {
965
- form: d,
966
- disabled: a
963
+ /*#__PURE__*/ F(me, {
964
+ form: g,
965
+ disabled: o
967
966
  })
968
967
  ] });
969
968
  } })]
@@ -974,22 +973,22 @@ var he = ({ securityGroupId: t, open: n, onClose: r, onCreate: i, isLoading: a =
974
973
  };
975
974
  //#endregion
976
975
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupRulesTable.tsx
977
- function ge({ rules: e, totalRulesCount: t, onDeleteRule: o, isDeletingRule: s, deleteError: c, searchTerm: u = "", onSearchChange: f, sortSettings: m, onSortChange: g, filterSettings: _, onFilterChange: v, securityGroupId: y, onCreateRule: x, isCreatingRule: S = !1, createRuleError: C = null, availableSecurityGroups: w = [], readOnly: T = !1 }) {
978
- let { i18n: E, _: D } = H(), [O, A] = z(null), [M, N] = k(), R = (e) => {
976
+ function ge({ rules: e, totalRulesCount: t, onDeleteRule: i, isDeletingRule: a, deleteError: c, searchTerm: l = "", onSearchChange: u, sortSettings: d, onSortChange: p, filterSettings: m, onFilterChange: h, securityGroupId: v, onCreateRule: y, isCreatingRule: b = !1, createRuleError: x = null, availableSecurityGroups: S = [], readOnly: w = !1 }) {
977
+ let { i18n: T, _: D } = H(), [O, A] = z(null), [M, N] = k(), R = (e) => {
979
978
  A(e);
980
979
  }, B = (e) => {
981
- o(e);
980
+ i(e);
982
981
  }, U = () => {
983
- s || A(null);
982
+ a || A(null);
984
983
  };
985
984
  L(() => {
986
- !s && !c && A(null);
987
- }, [s, c]);
985
+ !a && !c && A(null);
986
+ }, [a, c]);
988
987
  let W = (e) => {
989
988
  if (e.protocol === "icmp" || e.protocol === "ipv6-icmp") {
990
989
  if (e.port_range_min !== null && e.port_range_max !== null) {
991
990
  let t = e.port_range_min, n = e.port_range_max;
992
- return E._({
991
+ return T._({
993
992
  id: "0p+s6m",
994
993
  values: {
995
994
  typeValue: t,
@@ -997,53 +996,53 @@ function ge({ rules: e, totalRulesCount: t, onDeleteRule: o, isDeletingRule: s,
997
996
  }
998
997
  });
999
998
  }
1000
- return E._({ id: "eKC+EC" });
999
+ return T._({ id: "eKC+EC" });
1001
1000
  }
1002
- return e.port_range_min === null || e.port_range_max === null ? E._({ id: "eKC+EC" }) : e.port_range_min === e.port_range_max ? String(e.port_range_min) : `${e.port_range_min}-${e.port_range_max}`;
1001
+ return e.port_range_min === null || e.port_range_max === null ? T._({ id: "eKC+EC" }) : e.port_range_min === e.port_range_max ? String(e.port_range_min) : `${e.port_range_min}-${e.port_range_max}`;
1003
1002
  };
1004
- return /* @__PURE__ */ I(P, { children: [
1005
- /* @__PURE__ */ I(b, {
1003
+ return /*#__PURE__*/ I(P, { children: [
1004
+ /*#__PURE__*/ I(s, {
1006
1005
  direction: "vertical",
1007
1006
  gap: "4",
1008
- children: [/* @__PURE__ */ F(j, {
1007
+ children: [/*#__PURE__*/ F(j, {
1009
1008
  totalCount: t ?? e.length,
1010
1009
  filteredCount: e.length,
1011
- itemName: E._({ id: "j9hkgJ" }),
1012
- filterSettings: _,
1013
- onFilter: v,
1014
- sortSettings: m,
1015
- onSort: g,
1016
- searchTerm: u,
1017
- onSearch: f,
1018
- actions: !T && x && /* @__PURE__ */ F(p, {
1010
+ itemName: T._({ id: "j9hkgJ" }),
1011
+ filterSettings: m,
1012
+ onFilter: h,
1013
+ sortSettings: d,
1014
+ onSort: p,
1015
+ searchTerm: l,
1016
+ onSearch: u,
1017
+ actions: !w && y && /*#__PURE__*/ F(f, {
1019
1018
  variant: "primary",
1020
1019
  icon: "addCircle",
1021
1020
  onClick: N,
1022
- children: /* @__PURE__ */ F(V, { id: "O8tK4v" })
1021
+ children: /*#__PURE__*/ F(V, { id: "O8tK4v" })
1023
1022
  })
1024
- }), e.length === 0 ? /* @__PURE__ */ F(V, { id: "nnxwBn" }) : /* @__PURE__ */ I(l, {
1025
- columns: T ? 5 : 6,
1023
+ }), e.length === 0 ? /*#__PURE__*/ F(V, { id: "nnxwBn" }) : /*#__PURE__*/ I(_, {
1024
+ columns: w ? 5 : 6,
1026
1025
  className: "security-group-rules-table",
1027
- children: [/* @__PURE__ */ I(i, { children: [
1028
- /* @__PURE__ */ F(r, { children: E._({ id: "MRB7nI" }) }),
1029
- /* @__PURE__ */ F(r, { children: E._({ id: "Nu4oKW" }) }),
1030
- /* @__PURE__ */ F(r, { children: E._({ id: "yp0UjB" }) }),
1031
- /* @__PURE__ */ F(r, { children: E._({ id: "6+OdGi" }) }),
1032
- /* @__PURE__ */ F(r, { children: E._({ id: "6jAi8c" }) }),
1033
- !T && /* @__PURE__ */ F(r, { children: E._({ id: "7L01XJ" }) })
1034
- ] }), e.map((e) => /* @__PURE__ */ I(i, {
1026
+ children: [/*#__PURE__*/ I(E, { children: [
1027
+ /*#__PURE__*/ F(n, { children: T._({ id: "MRB7nI" }) }),
1028
+ /*#__PURE__*/ F(n, { children: T._({ id: "Nu4oKW" }) }),
1029
+ /*#__PURE__*/ F(n, { children: T._({ id: "yp0UjB" }) }),
1030
+ /*#__PURE__*/ F(n, { children: T._({ id: "6+OdGi" }) }),
1031
+ /*#__PURE__*/ F(n, { children: T._({ id: "6jAi8c" }) }),
1032
+ !w && /*#__PURE__*/ F(n, { children: T._({ id: "7L01XJ" }) })
1033
+ ] }), e.map((e) => /*#__PURE__*/ I(E, {
1035
1034
  "data-testid": `rule-row-${e.id}`,
1036
1035
  children: [
1037
- /* @__PURE__ */ F(a, { children: e.direction || E._({ id: "h47p9L" }) }),
1038
- /* @__PURE__ */ F(a, { children: e.description || E._({ id: "h47p9L" }) }),
1039
- /* @__PURE__ */ F(a, { children: e.ethertype }),
1040
- /* @__PURE__ */ F(a, { children: e.protocol || E._({ id: "eKC+EC" }) }),
1041
- /* @__PURE__ */ F(a, { children: W(e) }),
1042
- !T && /* @__PURE__ */ F(a, {
1036
+ /*#__PURE__*/ F(r, { children: e.direction || T._({ id: "h47p9L" }) }),
1037
+ /*#__PURE__*/ F(r, { children: e.description || T._({ id: "h47p9L" }) }),
1038
+ /*#__PURE__*/ F(r, { children: e.ethertype }),
1039
+ /*#__PURE__*/ F(r, { children: e.protocol || T._({ id: "eKC+EC" }) }),
1040
+ /*#__PURE__*/ F(r, { children: W(e) }),
1041
+ !w && /*#__PURE__*/ F(r, {
1043
1042
  onClick: (e) => e.stopPropagation(),
1044
1043
  className: "items-end justify-end pr-0",
1045
- children: /* @__PURE__ */ F(h, { children: /* @__PURE__ */ F(n, { children: /* @__PURE__ */ F(d, {
1046
- label: E._({ id: "cnGeoo" }),
1044
+ children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ F(C, { children: /*#__PURE__*/ F(g, {
1045
+ label: T._({ id: "cnGeoo" }),
1047
1046
  onClick: () => R(e)
1048
1047
  }) }) })
1049
1048
  })
@@ -1051,37 +1050,37 @@ function ge({ rules: e, totalRulesCount: t, onDeleteRule: o, isDeletingRule: s,
1051
1050
  }, e.id))]
1052
1051
  })]
1053
1052
  }),
1054
- !T && /* @__PURE__ */ F(Y, {
1053
+ !w && /*#__PURE__*/ F(Y, {
1055
1054
  rule: O,
1056
1055
  open: !!O,
1057
1056
  onClose: U,
1058
1057
  onConfirm: B,
1059
- isLoading: s,
1058
+ isLoading: a,
1060
1059
  error: c
1061
1060
  }),
1062
- !T && y && x && M && /* @__PURE__ */ F(he, {
1063
- securityGroupId: y,
1061
+ !w && v && y && M && /*#__PURE__*/ F(he, {
1062
+ securityGroupId: v,
1064
1063
  open: M,
1065
1064
  onClose: N,
1066
- onCreate: x,
1067
- isLoading: S,
1068
- error: C,
1069
- availableSecurityGroups: w
1065
+ onCreate: y,
1066
+ isLoading: b,
1067
+ error: x,
1068
+ availableSecurityGroups: S
1070
1069
  })
1071
1070
  ] });
1072
1071
  }
1073
1072
  //#endregion
1074
1073
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/RBACPolicyRow.tsx
1075
1074
  function _e({ policy: e, onDelete: t }) {
1076
- let { i18n: r, _: o } = H();
1077
- return /* @__PURE__ */ I(i, { children: [
1078
- /* @__PURE__ */ F(a, { children: e.target_tenant }),
1079
- /* @__PURE__ */ F(a, { children: e.action }),
1080
- /* @__PURE__ */ F(a, {
1075
+ let { i18n: n, _: i } = H();
1076
+ return /*#__PURE__*/ I(E, { children: [
1077
+ /*#__PURE__*/ F(r, { children: e.target_tenant }),
1078
+ /*#__PURE__*/ F(r, { children: e.action }),
1079
+ /*#__PURE__*/ F(r, {
1081
1080
  onClick: (e) => e.stopPropagation(),
1082
1081
  className: "items-end justify-end pr-0",
1083
- children: /* @__PURE__ */ F(h, { children: /* @__PURE__ */ F(n, { children: /* @__PURE__ */ F(d, {
1084
- label: r._({ id: "t/YqKh" }),
1082
+ children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ F(C, { children: /*#__PURE__*/ F(g, {
1083
+ label: n._({ id: "t/YqKh" }),
1085
1084
  onClick: t
1086
1085
  }) }) })
1087
1086
  })
@@ -1093,86 +1092,86 @@ var ve = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, ye =
1093
1092
  function $(e) {
1094
1093
  return ve.test(e) || ye.test(e);
1095
1094
  }
1096
- function be({ isOpen: e, onClose: t, securityGroupId: n }) {
1097
- let { i18n: r, _: i } = H(), a = D.useUtils(), o = A(), [s, l] = z(!1), u = U.object({ targetTenant: U.string().min(1, r._({ id: "1RwosK" })).refine($, { message: r._({ id: "CunRry" }) }) }), d = D.network.rbacPolicy.create.useMutation({ onSuccess: () => {
1098
- a.network.rbacPolicy.list.invalidate({
1099
- project_id: o,
1100
- securityGroupId: n
1101
- }), a.network.securityGroup.getById.invalidate({
1102
- project_id: o,
1103
- securityGroupId: n
1104
- }), m();
1105
- } }), p = W({
1095
+ function be({ isOpen: e, onClose: n, securityGroupId: r }) {
1096
+ let { i18n: a, _: o } = H(), s = D.useUtils(), c = A(), [u, f] = z(!1), p = U.object({ targetTenant: U.string().min(1, a._({ id: "1RwosK" })).refine($, { message: a._({ id: "CunRry" }) }) }), m = D.network.rbacPolicy.create.useMutation({ onSuccess: () => {
1097
+ s.network.rbacPolicy.list.invalidate({
1098
+ project_id: c,
1099
+ securityGroupId: r
1100
+ }), s.network.securityGroup.getById.invalidate({
1101
+ project_id: c,
1102
+ securityGroupId: r
1103
+ }), g();
1104
+ } }), h = W({
1106
1105
  defaultValues: { targetTenant: "" },
1107
- validators: { onSubmit: u },
1106
+ validators: { onSubmit: p },
1108
1107
  onSubmit: async ({ value: e }) => {
1109
- d.isPending || d.mutate({
1110
- project_id: o,
1111
- securityGroupId: n,
1108
+ m.isPending || m.mutate({
1109
+ project_id: c,
1110
+ securityGroupId: r,
1112
1111
  targetTenant: e.targetTenant.trim()
1113
1112
  });
1114
1113
  }
1115
- }), m = () => {
1116
- p.reset(), d.reset(), l(!1), t();
1117
- }, h = async () => {
1118
- l(!0), await p.handleSubmit();
1114
+ }), g = () => {
1115
+ h.reset(), m.reset(), f(!1), n();
1116
+ }, _ = async () => {
1117
+ f(!0), await h.handleSubmit();
1119
1118
  };
1120
- return /* @__PURE__ */ I(x, {
1119
+ return /*#__PURE__*/ I(b, {
1121
1120
  open: e,
1122
- onCancel: m,
1123
- title: r._({ id: "vmRPFm" }),
1121
+ onCancel: g,
1122
+ title: a._({ id: "vmRPFm" }),
1124
1123
  size: "large",
1125
- onConfirm: h,
1126
- cancelButtonLabel: r._({ id: "dEgA5A" }),
1127
- confirmButtonLabel: r._({ id: "Z8lGw6" }),
1128
- disableConfirmButton: d.isPending,
1124
+ onConfirm: _,
1125
+ cancelButtonLabel: a._({ id: "dEgA5A" }),
1126
+ confirmButtonLabel: a._({ id: "Z8lGw6" }),
1127
+ disableConfirmButton: m.isPending,
1129
1128
  children: [
1130
- d.error && /* @__PURE__ */ F(S, {
1129
+ m.error && /*#__PURE__*/ F(t, {
1131
1130
  variant: "error",
1132
1131
  className: "mb-4",
1133
1132
  children: (() => {
1134
- let e = d.error.message.toLowerCase();
1135
- return e.includes("conflict") || e.includes("409") ? r._({ id: "rbuO5A" }) : e.includes("not found") || e.includes("404") ? r._({ id: "FwSyEp" }) : e.includes("forbidden") || e.includes("403") ? r._({ id: "kqJVBO" }) : d.error.message;
1133
+ let e = m.error.message.toLowerCase();
1134
+ 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" }) : m.error.message;
1136
1135
  })()
1137
1136
  }),
1138
- /* @__PURE__ */ F("p", {
1137
+ /*#__PURE__*/ F("p", {
1139
1138
  className: "mb-4",
1140
- children: /* @__PURE__ */ F(V, { id: "cjEOmc" })
1139
+ children: /*#__PURE__*/ F(V, { id: "cjEOmc" })
1141
1140
  }),
1142
- /* @__PURE__ */ F(f, {
1141
+ /*#__PURE__*/ F(d, {
1143
1142
  className: "mb-0",
1144
1143
  onSubmit: (e) => {
1145
- e.preventDefault(), h();
1144
+ e.preventDefault(), _();
1146
1145
  },
1147
- children: /* @__PURE__ */ F(y, { children: /* @__PURE__ */ F(p.Field, {
1146
+ children: /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(h.Field, {
1148
1147
  name: "targetTenant",
1149
1148
  validators: {
1150
1149
  onBlur: ({ value: e }) => {
1151
1150
  let t = e.trim();
1152
- if (!t) return r._({ id: "1RwosK" });
1153
- if (!$(t)) return r._({ id: "CunRry" });
1151
+ if (!t) return a._({ id: "1RwosK" });
1152
+ if (!$(t)) return a._({ id: "CunRry" });
1154
1153
  },
1155
1154
  onChange: ({ value: e }) => {
1156
- if (!s) return;
1155
+ if (!u) return;
1157
1156
  let t = e.trim();
1158
- if (!t) return r._({ id: "1RwosK" });
1159
- if (!$(t)) return r._({ id: "CunRry" });
1157
+ if (!t) return a._({ id: "1RwosK" });
1158
+ if (!$(t)) return a._({ id: "CunRry" });
1160
1159
  }
1161
1160
  },
1162
1161
  children: (e) => {
1163
- let t = (e.state.meta.isTouched || s) && e.state.meta.errors.length > 0, n = e.state.meta.errors[0], i = t ? typeof n == "string" ? n : n?.message : void 0;
1164
- return /* @__PURE__ */ F(c, {
1162
+ 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;
1163
+ return /*#__PURE__*/ F(l, {
1165
1164
  id: e.name,
1166
1165
  name: e.name,
1167
- label: r._({ id: "WzVwU0" }),
1166
+ label: a._({ id: "WzVwU0" }),
1168
1167
  value: e.state.value,
1169
1168
  onChange: (t) => e.handleChange(t.target.value),
1170
1169
  onBlur: e.handleBlur,
1171
- placeholder: r._({ id: "he4q+i" }),
1170
+ placeholder: a._({ id: "he4q+i" }),
1172
1171
  required: !0,
1173
- helptext: r._({ id: "PkfPsB" }),
1174
- disabled: d.isPending,
1175
- errortext: i,
1172
+ helptext: a._({ id: "PkfPsB" }),
1173
+ disabled: m.isPending,
1174
+ errortext: r,
1176
1175
  invalid: t
1177
1176
  });
1178
1177
  }
@@ -1183,80 +1182,80 @@ function be({ isOpen: e, onClose: t, securityGroupId: n }) {
1183
1182
  }
1184
1183
  //#endregion
1185
1184
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/DeleteRBACPolicyDialog.tsx
1186
- function xe({ policy: e, open: t, onClose: n, onConfirm: r, isLoading: i, error: a }) {
1187
- let { i18n: o, _: s } = H(), l = W({
1185
+ function xe({ policy: e, open: n, onClose: r, onConfirm: a, isLoading: o, error: s }) {
1186
+ let { i18n: c, _: u } = H(), f = W({
1188
1187
  defaultValues: { confirmText: "" },
1189
- validators: { onSubmit: U.object({ confirmText: U.string().refine((e) => e === "remove", { message: o._({ id: "SVLToM" }) }) }) },
1188
+ validators: { onSubmit: U.object({ confirmText: U.string().refine((e) => e === "remove", { message: c._({ id: "SVLToM" }) }) }) },
1190
1189
  onSubmit: async () => {
1191
- i || (r(e.id), d());
1190
+ o || (a(e.id), m());
1192
1191
  }
1193
- }), u = G(l.store, (e) => e.isSubmitting || e.values.confirmText !== "remove"), d = () => {
1194
- l.reset(), n();
1192
+ }), p = G(f.store, (e) => e.isSubmitting || e.values.confirmText !== "remove"), m = () => {
1193
+ f.reset(), r();
1195
1194
  };
1196
- return /* @__PURE__ */ F(x, {
1197
- open: t,
1198
- onCancel: d,
1195
+ return /*#__PURE__*/ F(b, {
1196
+ open: n,
1197
+ onCancel: m,
1199
1198
  size: "small",
1200
- title: o._({ id: "Dt5W9T" }),
1201
- onConfirm: l.handleSubmit,
1202
- cancelButtonLabel: o._({ id: "dEgA5A" }),
1203
- confirmButtonLabel: i ? o._({ id: "M5RhXF" }) : o._({ id: "qh5W8q" }),
1204
- disableConfirmButton: i || u,
1205
- children: /* @__PURE__ */ I("div", { children: [
1206
- a && /* @__PURE__ */ F(S, {
1199
+ title: c._({ id: "Dt5W9T" }),
1200
+ onConfirm: f.handleSubmit,
1201
+ cancelButtonLabel: c._({ id: "dEgA5A" }),
1202
+ confirmButtonLabel: o ? c._({ id: "M5RhXF" }) : c._({ id: "qh5W8q" }),
1203
+ disableConfirmButton: o || p,
1204
+ children: /*#__PURE__*/ I("div", { children: [
1205
+ s && /*#__PURE__*/ F(t, {
1207
1206
  dismissible: !1,
1208
1207
  variant: "error",
1209
1208
  className: "mt-4",
1210
- children: a
1209
+ children: s
1211
1210
  }),
1212
- /* @__PURE__ */ F(V, { id: "BMTd81" }),
1213
- /* @__PURE__ */ I("div", {
1211
+ /*#__PURE__*/ F(V, { id: "BMTd81" }),
1212
+ /*#__PURE__*/ I("div", {
1214
1213
  className: "bg-theme-background-lvl-1 mt-4 mb-4 rounded p-4",
1215
- children: [/* @__PURE__ */ F("p", {
1214
+ children: [/*#__PURE__*/ F("p", {
1216
1215
  className: "mb-2 font-semibold",
1217
- children: /* @__PURE__ */ F(V, { id: "nLvo6K" })
1218
- }), /* @__PURE__ */ I("ul", {
1216
+ children: /*#__PURE__*/ F(V, { id: "nLvo6K" })
1217
+ }), /*#__PURE__*/ I("ul", {
1219
1218
  className: "list-inside list-disc space-y-1 text-sm",
1220
1219
  children: [
1221
- /* @__PURE__ */ I("li", { children: [
1222
- /* @__PURE__ */ F(V, { id: "WzVwU0" }),
1220
+ /*#__PURE__*/ I("li", { children: [
1221
+ /*#__PURE__*/ F(V, { id: "WzVwU0" }),
1223
1222
  ": ",
1224
1223
  e.target_tenant
1225
1224
  ] }),
1226
- /* @__PURE__ */ I("li", { children: [
1227
- /* @__PURE__ */ F(V, { id: "bwRvnp" }),
1225
+ /*#__PURE__*/ I("li", { children: [
1226
+ /*#__PURE__*/ F(V, { id: "bwRvnp" }),
1228
1227
  ": ",
1229
1228
  e.action
1230
1229
  ] }),
1231
- /* @__PURE__ */ I("li", { children: [
1232
- /* @__PURE__ */ F(V, { id: "UGhVPl" }),
1230
+ /*#__PURE__*/ I("li", { children: [
1231
+ /*#__PURE__*/ F(V, { id: "UGhVPl" }),
1233
1232
  ": ",
1234
1233
  e.object_type
1235
1234
  ] })
1236
1235
  ]
1237
1236
  })]
1238
1237
  }),
1239
- !i && /* @__PURE__ */ F(f, {
1238
+ !o && /*#__PURE__*/ F(d, {
1240
1239
  className: "mt-4 mb-0",
1241
1240
  onSubmit: (e) => {
1242
- e.preventDefault(), l.handleSubmit();
1241
+ e.preventDefault(), f.handleSubmit();
1243
1242
  },
1244
- children: /* @__PURE__ */ I(y, { children: [/* @__PURE__ */ F("p", {
1243
+ children: /*#__PURE__*/ I(i, { children: [/*#__PURE__*/ F("p", {
1245
1244
  className: "mb-2 text-sm",
1246
- children: /* @__PURE__ */ F(V, {
1245
+ children: /*#__PURE__*/ F(V, {
1247
1246
  id: "Enpdmy",
1248
- components: { 0: /* @__PURE__ */ F("strong", {}) }
1247
+ components: { 0: /*#__PURE__*/ F("strong", {}) }
1249
1248
  })
1250
- }), /* @__PURE__ */ F(l.Field, {
1249
+ }), /*#__PURE__*/ F(f.Field, {
1251
1250
  name: "confirmText",
1252
- children: (e) => /* @__PURE__ */ F(c, {
1251
+ children: (e) => /*#__PURE__*/ F(l, {
1253
1252
  id: e.name,
1254
1253
  name: e.name,
1255
1254
  value: e.state.value,
1256
1255
  onChange: (t) => e.handleChange(t.target.value),
1257
- placeholder: o._({ id: "tasfos" }),
1256
+ placeholder: c._({ id: "tasfos" }),
1258
1257
  autoComplete: "off",
1259
- disabled: i,
1258
+ disabled: o,
1260
1259
  "data-testid": "remove-policy-confirmation-input"
1261
1260
  })
1262
1261
  })] })
@@ -1267,35 +1266,35 @@ function xe({ policy: e, open: t, onClose: n, onConfirm: r, isLoading: i, error:
1267
1266
  //#endregion
1268
1267
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupRBACPolicies.tsx
1269
1268
  function Se({ securityGroupId: e }) {
1270
- let t = D.useUtils(), { i18n: n, _: a } = H(), s = A(), [c, u] = k(), [d, f] = z(null), [m, h] = z(""), { data: g, isPending: _, isError: v, error: y } = D.network.rbacPolicy.list.useQuery({
1271
- project_id: s,
1269
+ let r = D.useUtils(), { i18n: i, _: a } = H(), o = A(), [l, u] = k(), [d, p] = z(null), [m, h] = z(""), { data: g, isPending: v, isError: y, error: b } = D.network.rbacPolicy.list.useQuery({
1270
+ project_id: o,
1272
1271
  securityGroupId: e
1273
1272
  }, { refetchOnWindowFocus: !1 }), x = D.network.rbacPolicy.delete.useMutation({ onSuccess: () => {
1274
- t.network.rbacPolicy.list.invalidate({
1275
- project_id: s,
1273
+ r.network.rbacPolicy.list.invalidate({
1274
+ project_id: o,
1276
1275
  securityGroupId: e
1277
- }), t.network.securityGroup.getById.invalidate({
1278
- project_id: s,
1276
+ }), r.network.securityGroup.getById.invalidate({
1277
+ project_id: o,
1279
1278
  securityGroupId: e
1280
1279
  });
1281
- } }), C = (e) => {
1282
- f(e);
1283
- }, w = (e) => {
1280
+ } }), S = (e) => {
1281
+ p(e);
1282
+ }, C = (e) => {
1284
1283
  x.mutate({
1285
- project_id: s,
1284
+ project_id: o,
1286
1285
  policyId: e
1287
1286
  });
1288
- }, T = () => {
1289
- x.isPending || f(null);
1287
+ }, w = () => {
1288
+ x.isPending || p(null);
1290
1289
  };
1291
1290
  L(() => {
1292
- !x.isPending && !x.error && x.isSuccess && f(null);
1291
+ !x.isPending && !x.error && x.isSuccess && p(null);
1293
1292
  }, [
1294
1293
  x.isPending,
1295
1294
  x.error,
1296
1295
  x.isSuccess
1297
1296
  ]);
1298
- let E = R(() => {
1297
+ let T = R(() => {
1299
1298
  if (!g) return [];
1300
1299
  if (!m) return g;
1301
1300
  let e = m.toLowerCase();
@@ -1303,56 +1302,56 @@ function Se({ securityGroupId: e }) {
1303
1302
  }, [g, m]), O = (e) => {
1304
1303
  h(typeof e == "string" ? e : "");
1305
1304
  };
1306
- if (_) return /* @__PURE__ */ F(b, {
1305
+ if (v) return /*#__PURE__*/ F(s, {
1307
1306
  distribution: "center",
1308
1307
  alignment: "center",
1309
1308
  className: "py-8",
1310
- children: /* @__PURE__ */ F(o, { variant: "primary" })
1309
+ children: /*#__PURE__*/ F(c, { variant: "primary" })
1311
1310
  });
1312
- if (v) return /* @__PURE__ */ F(S, {
1311
+ if (y) return /*#__PURE__*/ F(t, {
1313
1312
  variant: "error",
1314
1313
  className: "mb-4",
1315
- children: y.message
1314
+ children: b.message
1316
1315
  });
1317
- let M = g?.length || 0, N = E.length;
1318
- return /* @__PURE__ */ I(P, { children: [
1319
- /* @__PURE__ */ I(b, {
1316
+ let M = g?.length || 0, N = T.length;
1317
+ return /*#__PURE__*/ I(P, { children: [
1318
+ /*#__PURE__*/ I(s, {
1320
1319
  direction: "vertical",
1321
1320
  gap: "4",
1322
- children: [/* @__PURE__ */ F(j, {
1321
+ children: [/*#__PURE__*/ F(j, {
1323
1322
  totalCount: M,
1324
1323
  filteredCount: N,
1325
- itemName: n._({ id: "M9H+/G" }),
1324
+ itemName: i._({ id: "M9H+/G" }),
1326
1325
  searchTerm: m,
1327
1326
  onSearch: O,
1328
- actions: /* @__PURE__ */ F(p, {
1327
+ actions: /*#__PURE__*/ F(f, {
1329
1328
  variant: "primary",
1330
1329
  icon: "addCircle",
1331
1330
  onClick: u,
1332
- children: /* @__PURE__ */ F(V, { id: "vmRPFm" })
1331
+ children: /*#__PURE__*/ F(V, { id: "vmRPFm" })
1333
1332
  })
1334
- }), N === 0 ? m ? /* @__PURE__ */ F(V, { id: "qxxo7y" }) : /* @__PURE__ */ F(V, { id: "Dia2Ue" }) : /* @__PURE__ */ I(l, {
1333
+ }), N === 0 ? m ? /*#__PURE__*/ F(V, { id: "qxxo7y" }) : /*#__PURE__*/ F(V, { id: "Dia2Ue" }) : /*#__PURE__*/ I(_, {
1335
1334
  columns: 3,
1336
- children: [/* @__PURE__ */ I(i, { children: [
1337
- /* @__PURE__ */ F(r, { children: /* @__PURE__ */ F(V, { id: "WzVwU0" }) }),
1338
- /* @__PURE__ */ F(r, { children: /* @__PURE__ */ F(V, { id: "bwRvnp" }) }),
1339
- /* @__PURE__ */ F(r, { children: /* @__PURE__ */ F(V, { id: "7L01XJ" }) })
1340
- ] }), E.map((e) => /* @__PURE__ */ F(_e, {
1335
+ children: [/*#__PURE__*/ I(E, { children: [
1336
+ /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(V, { id: "WzVwU0" }) }),
1337
+ /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(V, { id: "bwRvnp" }) }),
1338
+ /*#__PURE__*/ F(n, { children: /*#__PURE__*/ F(V, { id: "7L01XJ" }) })
1339
+ ] }), T.map((e) => /*#__PURE__*/ F(_e, {
1341
1340
  policy: e,
1342
- onDelete: () => C(e)
1341
+ onDelete: () => S(e)
1343
1342
  }, e.id))]
1344
1343
  })]
1345
1344
  }),
1346
- !!d && /* @__PURE__ */ F(xe, {
1345
+ !!d && /*#__PURE__*/ F(xe, {
1347
1346
  policy: d,
1348
1347
  open: !!d,
1349
- onClose: T,
1350
- onConfirm: w,
1348
+ onClose: w,
1349
+ onConfirm: C,
1351
1350
  isLoading: x.isPending,
1352
1351
  error: x.error?.message || null
1353
1352
  }),
1354
- c && /* @__PURE__ */ F(be, {
1355
- isOpen: c,
1353
+ l && /*#__PURE__*/ F(be, {
1354
+ isOpen: l,
1356
1355
  onClose: u,
1357
1356
  securityGroupId: e
1358
1357
  })
@@ -1360,32 +1359,32 @@ function Se({ securityGroupId: e }) {
1360
1359
  }
1361
1360
  //#endregion
1362
1361
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/SecurityGroupDetailsView.tsx
1363
- function Ce({ 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: d }) {
1364
- let [f, p] = z("rules"), m = e.project_id === d, h = !m, g = m;
1365
- return /* @__PURE__ */ F(E, {
1362
+ function Ce({ securityGroup: e, filteredAndSortedRules: t, onEdit: n, onDeleteRule: r, isDeletingRule: i = !1, deleteRuleError: a = null, filterControls: o, onCreateRule: c, isCreatingRule: l = !1, createRuleError: d = null, availableSecurityGroups: f = [], currentProjectId: p }) {
1363
+ let [m, h] = z("rules"), g = e.project_id === p, _ = !g, v = g;
1364
+ return /*#__PURE__*/ F(u, {
1366
1365
  px: !1,
1367
1366
  py: !0,
1368
- children: /* @__PURE__ */ I(b, {
1367
+ children: /*#__PURE__*/ I(s, {
1369
1368
  direction: "vertical",
1370
1369
  gap: "4",
1371
1370
  children: [
1372
- /* @__PURE__ */ F(K, {
1371
+ /*#__PURE__*/ F(K, {
1373
1372
  name: e.name,
1374
1373
  id: e.id
1375
1374
  }),
1376
- /* @__PURE__ */ F(q, {
1375
+ /*#__PURE__*/ F(q, {
1377
1376
  securityGroup: e,
1378
1377
  onEdit: n,
1379
- isReadOnly: h
1378
+ isReadOnly: _
1380
1379
  }),
1381
- !h && /* @__PURE__ */ F(J, {
1382
- activeTab: f,
1383
- onTabChange: p,
1384
- showRBACTab: g
1380
+ !_ && /*#__PURE__*/ F(J, {
1381
+ activeTab: m,
1382
+ onTabChange: h,
1383
+ showRBACTab: v
1385
1384
  }),
1386
- /* @__PURE__ */ I("div", {
1385
+ /*#__PURE__*/ I("div", {
1387
1386
  className: "mt-6",
1388
- children: [f === "rules" && /* @__PURE__ */ F(ge, {
1387
+ children: [m === "rules" && /*#__PURE__*/ F(ge, {
1389
1388
  rules: t,
1390
1389
  totalRulesCount: e.security_group_rules?.length,
1391
1390
  onDeleteRule: r,
@@ -1398,12 +1397,12 @@ function Ce({ securityGroup: e, filteredAndSortedRules: t, onEdit: n, onDeleteRu
1398
1397
  filterSettings: o.filterSettings,
1399
1398
  onFilterChange: o.onFilterChange,
1400
1399
  securityGroupId: e.id,
1401
- onCreateRule: h ? void 0 : s,
1402
- isCreatingRule: c,
1403
- createRuleError: l,
1404
- availableSecurityGroups: u,
1405
- readOnly: h
1406
- }), f === "rbac" && /* @__PURE__ */ F(Se, { securityGroupId: e.id })]
1400
+ onCreateRule: _ ? void 0 : c,
1401
+ isCreatingRule: l,
1402
+ createRuleError: d,
1403
+ availableSecurityGroups: f,
1404
+ readOnly: _
1405
+ }), m === "rbac" && /*#__PURE__*/ F(Se, { securityGroupId: e.id })]
1407
1406
  })
1408
1407
  ]
1409
1408
  })
@@ -1491,7 +1490,7 @@ function we({ securityGroupId: e, filterControls: t }) {
1491
1490
  //#endregion
1492
1491
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/index.tsx?tsr-split=component
1493
1492
  function Te() {
1494
- let { securityGroupId: e } = O.useParams(), n = A(), r = B(), { i18n: i, _: a } = H(), { searchTerm: s, sortSettings: c, filterSettings: l, handleSearchChange: d, handleSortChange: f, handleFilterChange: m } = M({
1493
+ let { securityGroupId: t } = O.useParams(), n = A(), r = B(), { i18n: i, _: o } = H(), { searchTerm: l, sortSettings: u, filterSettings: d, handleSearchChange: p, handleSortChange: m, handleFilterChange: h } = M({
1495
1494
  defaultSortKey: "direction",
1496
1495
  defaultSortDir: "asc",
1497
1496
  sortOptions: [
@@ -1533,91 +1532,91 @@ function Te() {
1533
1532
  supportsMultiValue: !1
1534
1533
  }
1535
1534
  ] }
1536
- }), h = {
1537
- searchTerm: s,
1538
- onSearchChange: d,
1539
- sortSettings: c,
1540
- onSortChange: f,
1541
- filterSettings: l,
1542
- onFilterChange: m
1543
- }, { securityGroup: g, filteredAndSortedRules: _, isLoading: y, isError: x, error: S, isUpdating: C, updateError: w, isDeletingRule: T, deleteRuleError: E, isCreatingRule: k, createRuleError: j, editModalOpen: P, handleEdit: L, handleCloseEditModal: z, handleUpdate: U, handleDeleteRule: W, handleCreateRule: G } = we({
1544
- securityGroupId: e,
1545
- filterControls: h
1546
- }), { data: K } = D.network.securityGroup.list.useQuery({ project_id: n }), q = R(() => (K || []).filter((t) => t.id !== e).map((e) => ({
1535
+ }), g = {
1536
+ searchTerm: l,
1537
+ onSearchChange: p,
1538
+ sortSettings: u,
1539
+ onSortChange: m,
1540
+ filterSettings: d,
1541
+ onFilterChange: h
1542
+ }, { securityGroup: _, filteredAndSortedRules: v, isLoading: b, isError: x, error: S, isUpdating: C, updateError: w, isDeletingRule: T, deleteRuleError: E, isCreatingRule: k, createRuleError: j, editModalOpen: P, handleEdit: L, handleCloseEditModal: z, handleUpdate: U, handleDeleteRule: W, handleCreateRule: G } = we({
1543
+ securityGroupId: t,
1544
+ filterControls: g
1545
+ }), { data: K } = D.network.securityGroup.list.useQuery({ project_id: n }), q = R(() => (K || []).filter((e) => e.id !== t).map((e) => ({
1547
1546
  id: e.id,
1548
1547
  name: e.name || e.id
1549
- })), [K, e]), J = () => {
1548
+ })), [K, t]), J = () => {
1550
1549
  r({
1551
1550
  to: "/projects/$projectId/network/securitygroups",
1552
1551
  params: { projectId: n }
1553
1552
  });
1554
1553
  };
1555
- if (y) return /* @__PURE__ */ I(b, {
1554
+ if (b) return /*#__PURE__*/ I(s, {
1556
1555
  className: "fixed inset-0",
1557
1556
  distribution: "center",
1558
1557
  alignment: "center",
1559
1558
  direction: "vertical",
1560
- children: [/* @__PURE__ */ F(o, {
1559
+ children: [/*#__PURE__*/ F(c, {
1561
1560
  variant: "primary",
1562
1561
  size: "large",
1563
1562
  className: "mb-2"
1564
- }), /* @__PURE__ */ F(V, { id: "3x7Sws" })]
1563
+ }), /*#__PURE__*/ F(V, { id: "3x7Sws" })]
1565
1564
  });
1566
1565
  if (x) {
1567
1566
  let e = S?.message || "Unknown error";
1568
- return /* @__PURE__ */ I(b, {
1567
+ return /*#__PURE__*/ I(s, {
1569
1568
  className: "fixed inset-0",
1570
1569
  distribution: "center",
1571
1570
  alignment: "center",
1572
1571
  direction: "vertical",
1573
1572
  gap: "5",
1574
1573
  children: [
1575
- /* @__PURE__ */ F("p", {
1574
+ /*#__PURE__*/ F("p", {
1576
1575
  className: "text-theme-error font-semibold",
1577
- children: /* @__PURE__ */ F(V, { id: "FjPnAE" })
1576
+ children: /*#__PURE__*/ F(V, { id: "FjPnAE" })
1578
1577
  }),
1579
- /* @__PURE__ */ F("p", {
1578
+ /*#__PURE__*/ F("p", {
1580
1579
  className: "text-theme-highest",
1581
1580
  children: e
1582
1581
  }),
1583
- /* @__PURE__ */ F(p, {
1582
+ /*#__PURE__*/ F(f, {
1584
1583
  onClick: J,
1585
1584
  variant: "primary",
1586
- children: /* @__PURE__ */ F(V, { id: "U9q4M7" })
1585
+ children: /*#__PURE__*/ F(V, { id: "U9q4M7" })
1587
1586
  })
1588
1587
  ]
1589
1588
  });
1590
1589
  }
1591
- return g ? /* @__PURE__ */ I(b, {
1590
+ return _ ? /*#__PURE__*/ I(s, {
1592
1591
  direction: "vertical",
1593
1592
  children: [
1594
- /* @__PURE__ */ F(v, { children: g.name || g.id }),
1595
- /* @__PURE__ */ I(u, {
1593
+ /*#__PURE__*/ F(y, { children: _.name || _.id }),
1594
+ /*#__PURE__*/ I(a, {
1596
1595
  className: "my-6",
1597
- children: [/* @__PURE__ */ F(t, {
1596
+ children: [/*#__PURE__*/ F(e, {
1598
1597
  onClick: J,
1599
1598
  label: i._({ id: "4opp4r" })
1600
- }), /* @__PURE__ */ F(t, {
1599
+ }), /*#__PURE__*/ F(e, {
1601
1600
  active: !0,
1602
- label: g.id
1601
+ label: _.id
1603
1602
  })]
1604
1603
  }),
1605
- /* @__PURE__ */ F(Ce, {
1606
- securityGroup: g,
1607
- filteredAndSortedRules: _,
1604
+ /*#__PURE__*/ F(Ce, {
1605
+ securityGroup: _,
1606
+ filteredAndSortedRules: v,
1608
1607
  onEdit: L,
1609
1608
  onDeleteRule: W,
1610
1609
  isDeletingRule: T,
1611
1610
  deleteRuleError: E,
1612
- filterControls: h,
1611
+ filterControls: g,
1613
1612
  onCreateRule: G,
1614
1613
  isCreatingRule: k,
1615
1614
  createRuleError: j,
1616
1615
  availableSecurityGroups: q,
1617
1616
  currentProjectId: n
1618
1617
  }),
1619
- /* @__PURE__ */ F(N, {
1620
- securityGroup: g,
1618
+ /*#__PURE__*/ F(N, {
1619
+ securityGroup: _,
1621
1620
  open: P,
1622
1621
  onClose: z,
1623
1622
  onUpdate: U,
@@ -1625,23 +1624,23 @@ function Te() {
1625
1624
  error: w
1626
1625
  })
1627
1626
  ]
1628
- }) : /* @__PURE__ */ I(b, {
1627
+ }) : /*#__PURE__*/ I(s, {
1629
1628
  className: "fixed inset-0",
1630
1629
  distribution: "center",
1631
1630
  alignment: "center",
1632
1631
  direction: "vertical",
1633
1632
  gap: "5",
1634
- children: [/* @__PURE__ */ F("p", {
1633
+ children: [/*#__PURE__*/ F("p", {
1635
1634
  className: "text-theme-secondary",
1636
- children: /* @__PURE__ */ F(V, { id: "Zw8Q49" })
1637
- }), /* @__PURE__ */ F(p, {
1635
+ children: /*#__PURE__*/ F(V, { id: "Zw8Q49" })
1636
+ }), /*#__PURE__*/ F(f, {
1638
1637
  onClick: J,
1639
1638
  variant: "primary",
1640
- children: /* @__PURE__ */ F(V, { id: "U9q4M7" })
1639
+ children: /*#__PURE__*/ F(V, { id: "U9q4M7" })
1641
1640
  })]
1642
1641
  });
1643
1642
  }
1644
1643
  //#endregion
1645
1644
  export { Te as component };
1646
1645
 
1647
- //# sourceMappingURL=_securityGroupId-B1bOYRbX.mjs.map
1646
+ //# sourceMappingURL=_securityGroupId-KKw4RPdH.mjs.map