@cobaltcore-dev/aurora 0.7.0 → 0.8.1

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 (108) hide show
  1. package/README.md +101 -7
  2. package/dist/client/AuroraApp.d.ts +38 -0
  3. package/dist/client/{ContentHeader-kx1Th5Sq.mjs → ContentHeader-C51H95X8.mjs} +24 -20
  4. package/dist/client/ContentHeader-C51H95X8.mjs.map +1 -0
  5. package/dist/client/{DeleteFlavorModal-C3cb7YiJ.mjs → DeleteFlavorModal-C3m7bQJu.mjs} +163 -163
  6. package/dist/client/{DeleteFlavorModal-C3cb7YiJ.mjs.map → DeleteFlavorModal-C3m7bQJu.mjs.map} +1 -1
  7. package/dist/client/{EditSecurityGroupModal-CpP54WIK.mjs → EditSecurityGroupModal-DKusxfta.mjs} +18 -18
  8. package/dist/client/{EditSecurityGroupModal-CpP54WIK.mjs.map → EditSecurityGroupModal-DKusxfta.mjs.map} +1 -1
  9. package/dist/client/{FiltersInput-DxcyR6Bp.mjs → FiltersInput-GzR4D0q6.mjs} +21 -21
  10. package/dist/client/{FiltersInput-DxcyR6Bp.mjs.map → FiltersInput-GzR4D0q6.mjs.map} +1 -1
  11. package/dist/client/{FloatingIpActionModals-BP8RWHbu.mjs → FloatingIpActionModals-CRvROJ3H.mjs} +51 -51
  12. package/dist/client/{FloatingIpActionModals-BP8RWHbu.mjs.map → FloatingIpActionModals-CRvROJ3H.mjs.map} +1 -1
  13. package/dist/client/{ImageToastNotifications-TZ3EfQg-.mjs → ImageToastNotifications-BuDXpTkl.mjs} +344 -344
  14. package/dist/client/{ImageToastNotifications-TZ3EfQg-.mjs.map → ImageToastNotifications-BuDXpTkl.mjs.map} +1 -1
  15. package/dist/client/{RouteError-QSV7qOoJ.mjs → RouteError-DVAiT0mT.mjs} +2 -2
  16. package/dist/client/{RouteError-QSV7qOoJ.mjs.map → RouteError-DVAiT0mT.mjs.map} +1 -1
  17. package/dist/client/{SortInput-CYv2_Pur.mjs → SortInput-VK7IYqQv.mjs} +6 -6
  18. package/dist/client/{SortInput-CYv2_Pur.mjs.map → SortInput-VK7IYqQv.mjs.map} +1 -1
  19. package/dist/client/{_flavorId-C2x43-6S.mjs → _flavorId-DU4gcFna.mjs} +8 -8
  20. package/dist/client/{_flavorId-C2x43-6S.mjs.map → _flavorId-DU4gcFna.mjs.map} +1 -1
  21. package/dist/client/{_flavorId-CR8ZUI-P.mjs → _flavorId-iZE2j210.mjs} +62 -62
  22. package/dist/client/{_flavorId-CR8ZUI-P.mjs.map → _flavorId-iZE2j210.mjs.map} +1 -1
  23. package/dist/client/{_floatingIpId-BCk41_Lb.mjs → _floatingIpId-B5GMSLeQ.mjs} +2 -2
  24. package/dist/client/{_floatingIpId-BCk41_Lb.mjs.map → _floatingIpId-B5GMSLeQ.mjs.map} +1 -1
  25. package/dist/client/{_floatingIpId-BGrOAmPT.mjs → _floatingIpId-C2-BeRmF.mjs} +27 -27
  26. package/dist/client/{_floatingIpId-BGrOAmPT.mjs.map → _floatingIpId-C2-BeRmF.mjs.map} +1 -1
  27. package/dist/client/_imageId-zmaSymWe.mjs +534 -0
  28. package/dist/client/{_imageId-CvfD832b.mjs.map → _imageId-zmaSymWe.mjs.map} +1 -1
  29. package/dist/client/_pcaId-BwTvJJgh.mjs +479 -0
  30. package/dist/client/_pcaId-BwTvJJgh.mjs.map +1 -0
  31. package/dist/client/{_pcaId-DOHycvCf.mjs → _pcaId-DUHQd0rB.mjs} +2 -2
  32. package/dist/client/{_pcaId-DOHycvCf.mjs.map → _pcaId-DUHQd0rB.mjs.map} +1 -1
  33. package/dist/client/{_projectId-DOgwFiqD.mjs → _projectId-B_2sZKk-.mjs} +2 -2
  34. package/dist/client/_projectId-B_2sZKk-.mjs.map +1 -0
  35. package/dist/client/_projectId-C8BaEHUj.mjs +273 -0
  36. package/dist/client/_projectId-C8BaEHUj.mjs.map +1 -0
  37. package/dist/client/_projectId-COt93OEF.mjs +84 -0
  38. package/dist/client/_projectId-COt93OEF.mjs.map +1 -0
  39. package/dist/client/{_securityGroupId-KKw4RPdH.mjs → _securityGroupId-DYxmXUOP.mjs} +319 -319
  40. package/dist/client/{_securityGroupId-KKw4RPdH.mjs.map → _securityGroupId-DYxmXUOP.mjs.map} +1 -1
  41. package/dist/client/{_securityGroupId-CJJanWiY.mjs → _securityGroupId-fhK1CuZh.mjs} +2 -2
  42. package/dist/client/{_securityGroupId-CJJanWiY.mjs.map → _securityGroupId-fhK1CuZh.mjs.map} +1 -1
  43. package/dist/client/{_storageType-DYjo-6ej.mjs → _storageType-B-qGcGUQ.mjs} +699 -698
  44. package/dist/client/_storageType-B-qGcGUQ.mjs.map +1 -0
  45. package/dist/client/{_storageType-4wSxI__0.mjs → _storageType-CepuevDG.mjs} +2 -2
  46. package/dist/client/{_storageType-4wSxI__0.mjs.map → _storageType-CepuevDG.mjs.map} +1 -1
  47. package/dist/client/{about-Bo9vxGHy.mjs → about-Nsxkyh9U.mjs} +2 -2
  48. package/dist/client/{about-Bo9vxGHy.mjs.map → about-Nsxkyh9U.mjs.map} +1 -1
  49. package/dist/client/{build-DeJcDjPi.mjs → build-BdRRmNf5.mjs} +3290 -3274
  50. package/dist/client/{build-DeJcDjPi.mjs.map → build-BdRRmNf5.mjs.map} +1 -1
  51. package/dist/client/{constants-BmcGYeR-.mjs → constants-J5nm9hbP.mjs} +15 -15
  52. package/dist/client/{constants-BmcGYeR-.mjs.map → constants-J5nm9hbP.mjs.map} +1 -1
  53. package/dist/client/{flavors-BxFVqgnb.mjs → flavors-8bZVlzzb.mjs} +2 -2
  54. package/dist/client/{flavors-BxFVqgnb.mjs.map → flavors-8bZVlzzb.mjs.map} +1 -1
  55. package/dist/client/{flavors-CfdgjsZY.mjs → flavors-BfsEBUE-.mjs} +238 -221
  56. package/dist/client/flavors-BfsEBUE-.mjs.map +1 -0
  57. package/dist/client/{floatingips-ByRb82wS.mjs → floatingips-Dq4DXQYb.mjs} +90 -90
  58. package/dist/client/{floatingips-ByRb82wS.mjs.map → floatingips-Dq4DXQYb.mjs.map} +1 -1
  59. package/dist/client/{images-CenluYV8.mjs → images-8FOgju2f.mjs} +2 -2
  60. package/dist/client/{images-CenluYV8.mjs.map → images-8FOgju2f.mjs.map} +1 -1
  61. package/dist/client/images-BPnTuKFO2.mjs +1890 -0
  62. package/dist/client/images-BPnTuKFO2.mjs.map +1 -0
  63. package/dist/client/{images-C_dX7nY6.mjs → images-Dbjo4yKn.mjs} +2 -2
  64. package/dist/client/{images-C_dX7nY6.mjs.map → images-Dbjo4yKn.mjs.map} +1 -1
  65. package/dist/client/index.d.ts +1 -1
  66. package/dist/client/index.js +382 -351
  67. package/dist/client/index.js.map +1 -1
  68. package/dist/client/{objects-gxSjvbvF.mjs → objects-DKWp9RtR.mjs} +2 -2
  69. package/dist/client/{objects-gxSjvbvF.mjs.map → objects-DKWp9RtR.mjs.map} +1 -1
  70. package/dist/client/{objects-BJM6YeuF.mjs → objects-DaCuy_CB.mjs} +1156 -1156
  71. package/dist/client/{objects-BJM6YeuF.mjs.map → objects-DaCuy_CB.mjs.map} +1 -1
  72. package/dist/client/pca-5wOBf_KI.mjs +202 -0
  73. package/dist/client/pca-5wOBf_KI.mjs.map +1 -0
  74. package/dist/client/{pca-Bl8NmoVZ.mjs → pca-dhrOFfrE.mjs} +2 -2
  75. package/dist/client/{pca-Bl8NmoVZ.mjs.map → pca-dhrOFfrE.mjs.map} +1 -1
  76. package/dist/client/{projects-D2iewAzu.mjs → projects-B_PPyZD1.mjs} +2 -2
  77. package/dist/client/{projects-D2iewAzu.mjs.map → projects-B_PPyZD1.mjs.map} +1 -1
  78. package/dist/client/{projects-pe2_dCnV.mjs → projects-CHYn7L5e.mjs} +2 -2
  79. package/dist/client/{projects-pe2_dCnV.mjs.map → projects-CHYn7L5e.mjs.map} +1 -1
  80. package/dist/client/{projects-CgclWI16.mjs → projects-Dmewygrp.mjs} +12 -12
  81. package/dist/client/projects-Dmewygrp.mjs.map +1 -0
  82. package/dist/client/routeInfo-CHiJfum5.mjs +73 -0
  83. package/dist/client/routeInfo-CHiJfum5.mjs.map +1 -0
  84. package/dist/client/{securitygroups-DahZkVYQ.mjs → securitygroups-CNFLu9zS.mjs} +112 -112
  85. package/dist/client/{securitygroups-DahZkVYQ.mjs.map → securitygroups-CNFLu9zS.mjs.map} +1 -1
  86. package/dist/client/{useListWithFiltering-DaYcu5AB.mjs → useListWithFiltering-v2A0-SZb.mjs} +9 -9
  87. package/dist/client/{useListWithFiltering-DaYcu5AB.mjs.map → useListWithFiltering-v2A0-SZb.mjs.map} +1 -1
  88. package/dist/server/index.d.ts +6 -1
  89. package/dist/server/index.js +37 -52
  90. package/package.json +4 -4
  91. package/dist/client/ContentHeader-kx1Th5Sq.mjs.map +0 -1
  92. package/dist/client/_imageId-CvfD832b.mjs +0 -534
  93. package/dist/client/_pcaId-BxBt5DXi.mjs +0 -459
  94. package/dist/client/_pcaId-BxBt5DXi.mjs.map +0 -1
  95. package/dist/client/_projectId-BDSWnMGj.mjs +0 -46
  96. package/dist/client/_projectId-BDSWnMGj.mjs.map +0 -1
  97. package/dist/client/_projectId-DOgwFiqD.mjs.map +0 -1
  98. package/dist/client/_projectId-DS4nR59B.mjs +0 -299
  99. package/dist/client/_projectId-DS4nR59B.mjs.map +0 -1
  100. package/dist/client/_projectId-MxcHrXW4.mjs +0 -84
  101. package/dist/client/_projectId-MxcHrXW4.mjs.map +0 -1
  102. package/dist/client/_storageType-DYjo-6ej.mjs.map +0 -1
  103. package/dist/client/flavors-CfdgjsZY.mjs.map +0 -1
  104. package/dist/client/images-CKqIXUq52.mjs +0 -1873
  105. package/dist/client/images-CKqIXUq52.mjs.map +0 -1
  106. package/dist/client/pca-RSiWpJs9.mjs +0 -182
  107. package/dist/client/pca-RSiWpJs9.mjs.map +0 -1
  108. package/dist/client/projects-CgclWI16.mjs.map +0 -1
@@ -1,11 +1,11 @@
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";
1
+ import { D as e, G as t, H as n, J as r, L as i, N as a, O as o, Q as s, S as c, U as l, W as u, X as d, Y as f, _ as p, ct as m, et as h, f as g, k as _, l as v, lt as y, m as b, ot as x, p as S, v as C, w, x as T, z as E } from "./build-BdRRmNf5.mjs";
2
2
  import { r as D } from "./trpcClient-BzPUgiM2.mjs";
3
- import { t as O } from "./_securityGroupId-CJJanWiY.mjs";
3
+ import { t as O } from "./_securityGroupId-fhK1CuZh.mjs";
4
4
  import { t as k } from "./useModal-DCs1OJh7.mjs";
5
5
  import { t as A } from "./useProjectId-DBc5lpoU.mjs";
6
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";
7
+ import { n as j, t as M } from "./useListWithFiltering-v2A0-SZb.mjs";
8
+ import { t as N } from "./EditSecurityGroupModal-DKusxfta.mjs";
9
9
  import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
10
10
  import { useEffect as L, useMemo as R, useState as z } from "react";
11
11
  import { useNavigate as B } from "@tanstack/react-router";
@@ -16,7 +16,7 @@ import { useForm as W, useStore as G } from "@tanstack/react-form";
16
16
  function K({ name: e, id: t }) {
17
17
  return /*#__PURE__*/ I("div", {
18
18
  className: "mb-2",
19
- children: [/*#__PURE__*/ F(y, { children: `'${e || t}' Details` }), /*#__PURE__*/ F("p", {
19
+ children: [/*#__PURE__*/ F(s, { children: `'${e || t}' Details` }), /*#__PURE__*/ F("p", {
20
20
  className: "text-theme-secondary mt-2 text-sm",
21
21
  children: /*#__PURE__*/ F(V, { id: "kIuDMT" })
22
22
  })]
@@ -24,61 +24,61 @@ function K({ name: e, id: t }) {
24
24
  }
25
25
  //#endregion
26
26
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupBasicInfo.tsx
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" }) });
27
+ function q({ securityGroup: e, onEdit: n, isReadOnly: r = !1 }) {
28
+ let { i18n: o, _: s } = H(), c = ({ value: e }) => /*#__PURE__*/ F("span", { children: e ? o._({ id: "l75CjT" }) : o._({ id: "1UzENP" }) });
29
29
  return /*#__PURE__*/ I("div", { children: [/*#__PURE__*/ F("div", {
30
30
  className: "mb-4 flex flex-row-reverse",
31
- children: t && !i && /*#__PURE__*/ F(f, {
31
+ children: n && !r && /*#__PURE__*/ F(p, {
32
32
  variant: "primary",
33
- onClick: t,
34
- disabled: i,
33
+ onClick: n,
34
+ disabled: r,
35
35
  children: /*#__PURE__*/ F(V, { id: "ePK91l" })
36
36
  })
37
- }), /*#__PURE__*/ I(_, {
37
+ }), /*#__PURE__*/ I(h, {
38
38
  columns: 4,
39
39
  gridColumnTemplate: "15% 35% 15% 35%",
40
40
  children: [
41
- /*#__PURE__*/ I(E, { children: [/*#__PURE__*/ F(n, { children: a._({ id: "Nu4oKW" }) }), /*#__PURE__*/ F(r, {
41
+ /*#__PURE__*/ I(a, { children: [/*#__PURE__*/ F(i, { children: o._({ id: "Nu4oKW" }) }), /*#__PURE__*/ F(t, {
42
42
  colSpan: 3,
43
43
  children: /*#__PURE__*/ F("div", {
44
44
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
45
45
  title: e.description || void 0,
46
- children: e.description || a._({ id: "h47p9L" })
46
+ children: e.description || o._({ id: "h47p9L" })
47
47
  })
48
48
  })] }),
49
- /*#__PURE__*/ I(E, { children: [
50
- /*#__PURE__*/ F(n, { children: a._({ id: "S0kLOH" }) }),
51
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
49
+ /*#__PURE__*/ I(a, { children: [
50
+ /*#__PURE__*/ F(i, { children: o._({ id: "S0kLOH" }) }),
51
+ /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F("div", {
52
52
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
53
53
  title: e.id,
54
54
  children: e.id
55
55
  }) }),
56
- /*#__PURE__*/ F(n, { children: a._({ id: "OYHzN1" }) }),
57
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
56
+ /*#__PURE__*/ F(i, { children: o._({ id: "OYHzN1" }) }),
57
+ /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F("div", {
58
58
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
59
59
  title: e.tags?.join(", ") || void 0,
60
- children: e.tags?.join(", ") || a._({ id: "h47p9L" })
60
+ children: e.tags?.join(", ") || o._({ id: "h47p9L" })
61
61
  }) })
62
62
  ] }),
63
- /*#__PURE__*/ I(E, { children: [
64
- /*#__PURE__*/ F(n, { children: a._({ id: "6YtxFj" }) }),
65
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
63
+ /*#__PURE__*/ I(a, { children: [
64
+ /*#__PURE__*/ F(i, { children: o._({ id: "6YtxFj" }) }),
65
+ /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F("div", {
66
66
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
67
67
  title: e.name || void 0,
68
68
  children: e.name
69
69
  }) }),
70
- /*#__PURE__*/ F(n, { children: a._({ id: "Jim5X9" }) }),
71
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(s, { value: e.stateful }) })
70
+ /*#__PURE__*/ F(i, { children: o._({ id: "Jim5X9" }) }),
71
+ /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F(c, { value: e.stateful }) })
72
72
  ] }),
73
- /*#__PURE__*/ I(E, { children: [
74
- /*#__PURE__*/ F(n, { children: a._({ id: "aI8Tgp" }) }),
75
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
73
+ /*#__PURE__*/ I(a, { children: [
74
+ /*#__PURE__*/ F(i, { children: o._({ id: "aI8Tgp" }) }),
75
+ /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F("div", {
76
76
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
77
77
  title: e.project_id || void 0,
78
- children: e.project_id || a._({ id: "h47p9L" })
78
+ children: e.project_id || o._({ id: "h47p9L" })
79
79
  }) }),
80
- /*#__PURE__*/ F(n, { children: a._({ id: "0Gd0NU" }) }),
81
- /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(s, { value: e.shared }) })
80
+ /*#__PURE__*/ F(i, { children: o._({ id: "0Gd0NU" }) }),
81
+ /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F(c, { value: e.shared }) })
82
82
  ] })
83
83
  ]
84
84
  })] });
@@ -89,7 +89,7 @@ function J({ activeTab: e, onTabChange: t, showRBACTab: n = !0 }) {
89
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"}`;
90
90
  return /*#__PURE__*/ F("div", {
91
91
  className: "border-theme-background-lvl-3 mt-1 border-b",
92
- children: /*#__PURE__*/ I(s, {
92
+ children: /*#__PURE__*/ I(f, {
93
93
  direction: "horizontal",
94
94
  gap: "0",
95
95
  children: [/*#__PURE__*/ F("button", {
@@ -106,34 +106,34 @@ function J({ activeTab: e, onTabChange: t, showRBACTab: n = !0 }) {
106
106
  }
107
107
  //#endregion
108
108
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/DeleteRuleDialog.tsx
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 = () => {
113
- d(""), r();
114
- }, _ = u !== "delete" || a;
115
- return e ? /*#__PURE__*/ F(b, {
116
- open: n,
117
- onCancel: g,
109
+ function Y({ rule: e, open: t, onClose: n, onConfirm: i, isLoading: a, error: o }) {
110
+ let { i18n: s, _: c } = H(), [l, u] = z(""), d = () => {
111
+ e && l === "delete" && i(e.id);
112
+ }, f = () => {
113
+ u(""), n();
114
+ }, h = l !== "delete" || a;
115
+ return e ? /*#__PURE__*/ F(m, {
116
+ open: t,
117
+ onCancel: f,
118
118
  size: "small",
119
119
  title: s._({ id: "TM93nK" }),
120
- modalFooter: /*#__PURE__*/ F(m, {
120
+ modalFooter: /*#__PURE__*/ F(g, {
121
121
  className: "flex justify-end",
122
- children: /*#__PURE__*/ I(h, { children: [/*#__PURE__*/ F(f, {
122
+ children: /*#__PURE__*/ I(y, { children: [/*#__PURE__*/ F(p, {
123
123
  variant: "default",
124
- onClick: g,
124
+ onClick: f,
125
125
  disabled: a,
126
126
  children: /*#__PURE__*/ F(V, { id: "dEgA5A" })
127
- }), /*#__PURE__*/ F(f, {
127
+ }), /*#__PURE__*/ F(p, {
128
128
  variant: "primary-danger",
129
- onClick: p,
130
- disabled: _,
129
+ onClick: d,
130
+ disabled: h,
131
131
  "data-testid": "confirm-delete-rule-button",
132
132
  children: a ? /*#__PURE__*/ F(V, { id: "EF2EU9" }) : /*#__PURE__*/ F(V, { id: "lN3xvy" })
133
133
  })] })
134
134
  }),
135
135
  children: /*#__PURE__*/ I("div", { children: [
136
- o && /*#__PURE__*/ F(t, {
136
+ o && /*#__PURE__*/ F(r, {
137
137
  dismissible: !1,
138
138
  variant: "error",
139
139
  className: "mt-4",
@@ -195,9 +195,9 @@ function Y({ rule: e, open: n, onClose: r, onConfirm: i, isLoading: a, error: o
195
195
  id: "PHt+EV",
196
196
  components: { 0: /*#__PURE__*/ F("strong", {}) }
197
197
  })
198
- }), /*#__PURE__*/ F(l, {
199
- value: u,
200
- onChange: (e) => d(e.target.value),
198
+ }), /*#__PURE__*/ F(b, {
199
+ value: l,
200
+ onChange: (e) => u(e.target.value),
201
201
  placeholder: s._({ id: "HNlEFZ" }),
202
202
  autoComplete: "off",
203
203
  disabled: a,
@@ -551,9 +551,9 @@ function se({ form: e, disabled: t = !1 }) {
551
551
  return /*#__PURE__*/ F(e.Field, {
552
552
  name: "ruleType",
553
553
  mode: "value",
554
- children: (r) => /*#__PURE__*/ F(x, {
554
+ children: (r) => /*#__PURE__*/ F(c, {
555
555
  className: "mb-6",
556
- children: /*#__PURE__*/ F(v, {
556
+ children: /*#__PURE__*/ F(C, {
557
557
  id: "ruleType",
558
558
  label: n._({ id: "YuGQWb" }),
559
559
  value: r.state.value,
@@ -567,10 +567,10 @@ function se({ form: e, disabled: t = !1 }) {
567
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", "")));
568
568
  },
569
569
  disabled: t,
570
- children: Q.map((e) => e.value === "" ? /*#__PURE__*/ F(w, {
570
+ children: Q.map((e) => e.value === "" ? /*#__PURE__*/ F(v, {
571
571
  value: e.value,
572
572
  label: n._({ id: "eh/k36" })
573
- }, e.value) : /*#__PURE__*/ F(w, {
573
+ }, e.value) : /*#__PURE__*/ F(v, {
574
574
  value: e.value,
575
575
  label: e.label
576
576
  }, e.value))
@@ -584,7 +584,7 @@ function ce({ form: e, disabled: t = !1 }) {
584
584
  let { i18n: n, _: r } = H();
585
585
  return /*#__PURE__*/ F(e.Field, {
586
586
  name: "direction",
587
- children: (e) => /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(S, {
587
+ children: (e) => /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(E, {
588
588
  name: "direction",
589
589
  label: n._({ id: "MRB7nI" }),
590
590
  selected: e.state.value,
@@ -593,10 +593,10 @@ function ce({ form: e, disabled: t = !1 }) {
593
593
  disabled: t,
594
594
  children: /*#__PURE__*/ I("div", {
595
595
  className: "flex gap-4",
596
- children: [/*#__PURE__*/ F(T, {
596
+ children: [/*#__PURE__*/ F(w, {
597
597
  value: "ingress",
598
598
  label: n._({ id: "fzfAAa" })
599
- }), /*#__PURE__*/ F(T, {
599
+ }), /*#__PURE__*/ F(w, {
600
600
  value: "egress",
601
601
  label: n._({ id: "nETBrc" })
602
602
  })]
@@ -608,7 +608,7 @@ function le({ form: e, disabled: t = !1 }) {
608
608
  let { i18n: n, _: r } = H();
609
609
  return /*#__PURE__*/ F(e.Field, {
610
610
  name: "ethertype",
611
- children: (e) => /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(S, {
611
+ children: (e) => /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(E, {
612
612
  name: "ethertype",
613
613
  label: n._({ id: "16085O" }),
614
614
  selected: e.state.value,
@@ -617,10 +617,10 @@ function le({ form: e, disabled: t = !1 }) {
617
617
  disabled: t,
618
618
  children: /*#__PURE__*/ I("div", {
619
619
  className: "flex gap-4",
620
- children: [/*#__PURE__*/ F(T, {
620
+ children: [/*#__PURE__*/ F(w, {
621
621
  value: "IPv4",
622
622
  label: "IPv4"
623
- }), /*#__PURE__*/ F(T, {
623
+ }), /*#__PURE__*/ F(w, {
624
624
  value: "IPv6",
625
625
  label: "IPv6"
626
626
  })]
@@ -634,9 +634,9 @@ function ue({ form: e, disabled: t = !1 }) {
634
634
  let { i18n: n, _: r } = H();
635
635
  return /*#__PURE__*/ F(e.Field, {
636
636
  name: "protocol",
637
- children: (e) => /*#__PURE__*/ F(x, {
637
+ children: (e) => /*#__PURE__*/ F(c, {
638
638
  className: "mb-6",
639
- children: /*#__PURE__*/ F(l, {
639
+ children: /*#__PURE__*/ F(b, {
640
640
  id: "protocol",
641
641
  name: "protocol",
642
642
  label: n._({ id: "6+OdGi" }),
@@ -653,7 +653,7 @@ function ue({ form: e, disabled: t = !1 }) {
653
653
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/PortRangeSection.tsx
654
654
  function de({ form: e, disabled: t = !1 }) {
655
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() === "";
656
- return /*#__PURE__*/ I(x, {
656
+ return /*#__PURE__*/ I(c, {
657
657
  className: "mb-6",
658
658
  children: [
659
659
  /*#__PURE__*/ I("div", {
@@ -663,7 +663,7 @@ function de({ form: e, disabled: t = !1 }) {
663
663
  name: "portFrom",
664
664
  children: (r) => /*#__PURE__*/ F("div", {
665
665
  className: "flex-1",
666
- children: /*#__PURE__*/ F(l, {
666
+ children: /*#__PURE__*/ F(b, {
667
667
  id: "portFrom",
668
668
  name: "portFrom",
669
669
  label: n._({ id: "LMdsuJ" }),
@@ -686,7 +686,7 @@ function de({ form: e, disabled: t = !1 }) {
686
686
  name: "portTo",
687
687
  children: (t) => /*#__PURE__*/ F("div", {
688
688
  className: "flex-1",
689
- children: /*#__PURE__*/ F(l, {
689
+ children: /*#__PURE__*/ F(b, {
690
690
  id: "portTo",
691
691
  name: "portTo",
692
692
  label: n._({ id: "a12lSo" }),
@@ -717,7 +717,7 @@ function de({ form: e, disabled: t = !1 }) {
717
717
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/IcmpSection.tsx
718
718
  function fe({ form: e, disabled: t = !1 }) {
719
719
  let { i18n: n, _: r } = H();
720
- return /*#__PURE__*/ F(x, {
720
+ return /*#__PURE__*/ F(c, {
721
721
  className: "mb-6",
722
722
  children: /*#__PURE__*/ I("div", {
723
723
  className: "flex w-full gap-4",
@@ -725,7 +725,7 @@ function fe({ form: e, disabled: t = !1 }) {
725
725
  name: "icmpType",
726
726
  children: (e) => /*#__PURE__*/ F("div", {
727
727
  className: "flex-1",
728
- children: /*#__PURE__*/ F(l, {
728
+ children: /*#__PURE__*/ F(b, {
729
729
  id: "icmpType",
730
730
  name: "icmpType",
731
731
  label: n._({ id: "yPWFWy" }),
@@ -740,7 +740,7 @@ function fe({ form: e, disabled: t = !1 }) {
740
740
  name: "icmpCode",
741
741
  children: (e) => /*#__PURE__*/ F("div", {
742
742
  className: "flex-1",
743
- children: /*#__PURE__*/ F(l, {
743
+ children: /*#__PURE__*/ F(b, {
744
744
  id: "icmpCode",
745
745
  name: "icmpCode",
746
746
  label: n._({ id: "76RKuS" }),
@@ -763,9 +763,9 @@ function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
763
763
  /*#__PURE__*/ F(e.Field, {
764
764
  name: "remoteSourceType",
765
765
  mode: "value",
766
- children: (n) => /*#__PURE__*/ F(x, {
766
+ children: (n) => /*#__PURE__*/ F(c, {
767
767
  className: "mb-1",
768
- children: /*#__PURE__*/ F(S, {
768
+ children: /*#__PURE__*/ F(E, {
769
769
  name: "remoteSourceType",
770
770
  label: r._({ id: "I5kZVK" }),
771
771
  selected: n.state.value,
@@ -776,10 +776,10 @@ function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
776
776
  disabled: t,
777
777
  children: /*#__PURE__*/ I("div", {
778
778
  className: "flex gap-4",
779
- children: [/*#__PURE__*/ F(T, {
779
+ children: [/*#__PURE__*/ F(w, {
780
780
  value: "cidr",
781
781
  label: r._({ id: "4uXhtt" })
782
- }), /*#__PURE__*/ F(T, {
782
+ }), /*#__PURE__*/ F(w, {
783
783
  value: "security_group",
784
784
  label: r._({ id: "bwhBhT" })
785
785
  })]
@@ -793,9 +793,9 @@ function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
793
793
  name: "remoteCidr",
794
794
  children: (n) => /*#__PURE__*/ F(e.Field, {
795
795
  name: "ethertype",
796
- children: (e) => /*#__PURE__*/ F(x, {
796
+ children: (e) => /*#__PURE__*/ F(c, {
797
797
  className: "mb-6",
798
- children: /*#__PURE__*/ F(l, {
798
+ children: /*#__PURE__*/ F(b, {
799
799
  id: "remoteCidr",
800
800
  name: "remoteCidr",
801
801
  label: r._({ id: "vmYyLY" }),
@@ -813,19 +813,19 @@ function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
813
813
  name: "remoteSourceType",
814
814
  children: (i) => i.state.value === "security_group" ? /*#__PURE__*/ F(e.Field, {
815
815
  name: "remoteSecurityGroupId",
816
- children: (e) => /*#__PURE__*/ F(x, {
816
+ children: (e) => /*#__PURE__*/ F(c, {
817
817
  className: "mb-6",
818
- children: /*#__PURE__*/ I(v, {
818
+ children: /*#__PURE__*/ I(C, {
819
819
  id: "remoteSecurityGroupId",
820
820
  label: r._({ id: "i9TIyi" }),
821
821
  value: e.state.value,
822
822
  onChange: (t) => e.handleChange(String(t)),
823
823
  errortext: e.state.meta.errors[0]?.message,
824
824
  disabled: t,
825
- children: [/*#__PURE__*/ F(w, {
825
+ children: [/*#__PURE__*/ F(v, {
826
826
  value: "",
827
827
  label: r._({ id: "ZvIpwi" })
828
- }), n.map((e) => /*#__PURE__*/ F(w, {
828
+ }), n.map((e) => /*#__PURE__*/ F(v, {
829
829
  value: e.id,
830
830
  label: e.name || e.id
831
831
  }, e.id))]
@@ -841,9 +841,9 @@ function me({ form: e, disabled: t = !1 }) {
841
841
  let { i18n: n, _: r } = H();
842
842
  return /*#__PURE__*/ F(e.Field, {
843
843
  name: "description",
844
- children: (e) => /*#__PURE__*/ F(x, {
844
+ children: (e) => /*#__PURE__*/ F(c, {
845
845
  className: "mb-0",
846
- children: /*#__PURE__*/ F(p, {
846
+ children: /*#__PURE__*/ F(l, {
847
847
  id: "description",
848
848
  name: "description",
849
849
  label: n._({ id: "Nu4oKW" }),
@@ -858,8 +858,8 @@ function me({ form: e, disabled: t = !1 }) {
858
858
  }
859
859
  //#endregion
860
860
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/AddRuleModal.tsx
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({
861
+ var he = ({ securityGroupId: e, open: t, onClose: i, onCreate: a, isLoading: o = !1, error: s = null, availableSecurityGroups: c = [] }) => {
862
+ let { i18n: l, _: u } = H(), d = W({
863
863
  defaultValues: oe,
864
864
  validators: { onSubmit: ae },
865
865
  onSubmit: async ({ value: t }) => {
@@ -878,37 +878,37 @@ var he = ({ securityGroupId: e, open: n, onClose: r, onCreate: a, isLoading: o =
878
878
  let e = parseInt(t.portFrom, 10);
879
879
  n.port_range_min = e, t.portTo ? n.port_range_max = parseInt(t.portTo, 10) : n.port_range_max = e;
880
880
  }
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), _();
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), f();
882
882
  }
883
- }), _ = () => {
884
- g.reset(), r();
883
+ }), f = () => {
884
+ d.reset(), i();
885
885
  };
886
- return /*#__PURE__*/ I(b, {
887
- open: n,
888
- onCancel: _,
886
+ return /*#__PURE__*/ I(m, {
887
+ open: t,
888
+ onCancel: f,
889
889
  size: "large",
890
- title: u._({ id: "b2BLBa" }),
891
- modalFooter: /*#__PURE__*/ F(m, {
890
+ title: l._({ id: "b2BLBa" }),
891
+ modalFooter: /*#__PURE__*/ F(g, {
892
892
  className: "flex justify-end",
893
- children: /*#__PURE__*/ F(g.Subscribe, { children: (e) => {
893
+ children: /*#__PURE__*/ F(d.Subscribe, { children: (e) => {
894
894
  let t = !!e.values.ruleType;
895
- return /*#__PURE__*/ I(h, { children: [/*#__PURE__*/ F(f, {
895
+ return /*#__PURE__*/ I(y, { children: [/*#__PURE__*/ F(p, {
896
896
  variant: "default",
897
- onClick: _,
897
+ onClick: f,
898
898
  disabled: o || e.isSubmitting,
899
899
  children: /*#__PURE__*/ F(V, { id: "dEgA5A" })
900
- }), /*#__PURE__*/ F(f, {
900
+ }), /*#__PURE__*/ F(p, {
901
901
  variant: "primary",
902
902
  type: "button",
903
- onClick: () => g.handleSubmit(),
903
+ onClick: () => d.handleSubmit(),
904
904
  disabled: o || e.isSubmitting || !t,
905
905
  "data-testid": "add-rule-button",
906
- children: e.isSubmitting || o ? /*#__PURE__*/ F(c, { size: "small" }) : /*#__PURE__*/ F(V, { id: "bmQLn5" })
906
+ children: e.isSubmitting || o ? /*#__PURE__*/ F(n, { size: "small" }) : /*#__PURE__*/ F(V, { id: "bmQLn5" })
907
907
  })] });
908
908
  } })
909
909
  }),
910
910
  children: [
911
- s && /*#__PURE__*/ F(t, {
911
+ s && /*#__PURE__*/ F(r, {
912
912
  dismissible: !1,
913
913
  variant: "error",
914
914
  className: "mb-4",
@@ -916,52 +916,52 @@ var he = ({ securityGroupId: e, open: n, onClose: r, onCreate: a, isLoading: o =
916
916
  }),
917
917
  o && /*#__PURE__*/ I("div", {
918
918
  className: "mb-4 flex items-center justify-center gap-2",
919
- children: [/*#__PURE__*/ F(c, { variant: "primary" }), /*#__PURE__*/ F("span", {
919
+ children: [/*#__PURE__*/ F(n, { variant: "primary" }), /*#__PURE__*/ F("span", {
920
920
  className: "text-theme-secondary text-sm",
921
921
  children: /*#__PURE__*/ F(V, { id: "gU7JFm" })
922
922
  })]
923
923
  }),
924
- /*#__PURE__*/ F(d, {
924
+ /*#__PURE__*/ F(T, {
925
925
  className: "mb-6",
926
926
  onSubmit: (e) => {
927
- e.preventDefault(), g.handleSubmit();
927
+ e.preventDefault(), d.handleSubmit();
928
928
  },
929
- children: /*#__PURE__*/ I(i, {
929
+ children: /*#__PURE__*/ I(S, {
930
930
  className: "mb-6",
931
931
  children: [/*#__PURE__*/ F(se, {
932
- form: g,
932
+ form: d,
933
933
  disabled: o
934
- }), /*#__PURE__*/ F(g.Subscribe, { children: (e) => {
934
+ }), /*#__PURE__*/ F(d.Subscribe, { children: (e) => {
935
935
  if (!e.values.ruleType) return null;
936
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";
937
937
  return /*#__PURE__*/ I(P, { children: [
938
938
  /*#__PURE__*/ F(ce, {
939
- form: g,
939
+ form: d,
940
940
  disabled: o
941
941
  }),
942
942
  e.values.ruleType === "other-protocol" && /*#__PURE__*/ F(ue, {
943
- form: g,
943
+ form: d,
944
944
  disabled: o
945
945
  }),
946
946
  t && /*#__PURE__*/ F(de, {
947
- form: g,
947
+ form: d,
948
948
  disabled: o
949
949
  }),
950
950
  n && /*#__PURE__*/ F(fe, {
951
- form: g,
951
+ form: d,
952
952
  disabled: o
953
953
  }),
954
954
  /*#__PURE__*/ F(pe, {
955
- form: g,
955
+ form: d,
956
956
  disabled: o,
957
- availableSecurityGroups: l
957
+ availableSecurityGroups: c
958
958
  }),
959
959
  e.values.remoteSourceType === "security_group" && /*#__PURE__*/ F(le, {
960
- form: g,
960
+ form: d,
961
961
  disabled: o
962
962
  }),
963
963
  /*#__PURE__*/ F(me, {
964
- form: g,
964
+ form: d,
965
965
  disabled: o
966
966
  })
967
967
  ] });
@@ -973,22 +973,22 @@ var he = ({ securityGroupId: e, open: n, onClose: r, onCreate: a, isLoading: o =
973
973
  };
974
974
  //#endregion
975
975
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupRulesTable.tsx
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) => {
976
+ function ge({ rules: n, totalRulesCount: r, onDeleteRule: o, isDeletingRule: s, deleteError: c, searchTerm: l = "", onSearchChange: u, sortSettings: d, onSortChange: m, filterSettings: g, onFilterChange: v, securityGroupId: y, onCreateRule: b, isCreatingRule: S = !1, createRuleError: C = null, availableSecurityGroups: w = [], readOnly: T = !1 }) {
977
+ let { i18n: E, _: D } = H(), [O, A] = z(null), [M, N] = k(), R = (e) => {
978
978
  A(e);
979
979
  }, B = (e) => {
980
- i(e);
980
+ o(e);
981
981
  }, U = () => {
982
- a || A(null);
982
+ s || A(null);
983
983
  };
984
984
  L(() => {
985
- !a && !c && A(null);
986
- }, [a, c]);
985
+ !s && !c && A(null);
986
+ }, [s, c]);
987
987
  let W = (e) => {
988
988
  if (e.protocol === "icmp" || e.protocol === "ipv6-icmp") {
989
989
  if (e.port_range_min !== null && e.port_range_max !== null) {
990
990
  let t = e.port_range_min, n = e.port_range_max;
991
- return T._({
991
+ return E._({
992
992
  id: "0p+s6m",
993
993
  values: {
994
994
  typeValue: t,
@@ -996,92 +996,92 @@ function ge({ rules: e, totalRulesCount: t, onDeleteRule: i, isDeletingRule: a,
996
996
  }
997
997
  });
998
998
  }
999
- return T._({ id: "eKC+EC" });
999
+ return E._({ id: "eKC+EC" });
1000
1000
  }
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}`;
1001
+ 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}`;
1002
1002
  };
1003
1003
  return /*#__PURE__*/ I(P, { children: [
1004
- /*#__PURE__*/ I(s, {
1004
+ /*#__PURE__*/ I(f, {
1005
1005
  direction: "vertical",
1006
1006
  gap: "4",
1007
1007
  children: [/*#__PURE__*/ F(j, {
1008
- totalCount: t ?? e.length,
1009
- filteredCount: e.length,
1010
- itemName: T._({ id: "j9hkgJ" }),
1011
- filterSettings: m,
1012
- onFilter: h,
1008
+ totalCount: r ?? n.length,
1009
+ filteredCount: n.length,
1010
+ itemName: E._({ id: "j9hkgJ" }),
1011
+ filterSettings: g,
1012
+ onFilter: v,
1013
1013
  sortSettings: d,
1014
- onSort: p,
1014
+ onSort: m,
1015
1015
  searchTerm: l,
1016
1016
  onSearch: u,
1017
- actions: !w && y && /*#__PURE__*/ F(f, {
1017
+ actions: !T && b && /*#__PURE__*/ F(p, {
1018
1018
  variant: "primary",
1019
1019
  icon: "addCircle",
1020
1020
  onClick: N,
1021
1021
  children: /*#__PURE__*/ F(V, { id: "O8tK4v" })
1022
1022
  })
1023
- }), e.length === 0 ? /*#__PURE__*/ F(V, { id: "nnxwBn" }) : /*#__PURE__*/ I(_, {
1024
- columns: w ? 5 : 6,
1023
+ }), n.length === 0 ? /*#__PURE__*/ F(V, { id: "nnxwBn" }) : /*#__PURE__*/ I(h, {
1024
+ columns: T ? 5 : 6,
1025
1025
  className: "security-group-rules-table",
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, {
1034
- "data-testid": `rule-row-${e.id}`,
1026
+ children: [/*#__PURE__*/ I(a, { children: [
1027
+ /*#__PURE__*/ F(i, { children: E._({ id: "MRB7nI" }) }),
1028
+ /*#__PURE__*/ F(i, { children: E._({ id: "Nu4oKW" }) }),
1029
+ /*#__PURE__*/ F(i, { children: E._({ id: "yp0UjB" }) }),
1030
+ /*#__PURE__*/ F(i, { children: E._({ id: "6+OdGi" }) }),
1031
+ /*#__PURE__*/ F(i, { children: E._({ id: "6jAi8c" }) }),
1032
+ !T && /*#__PURE__*/ F(i, { children: E._({ id: "7L01XJ" }) })
1033
+ ] }), n.map((n) => /*#__PURE__*/ I(a, {
1034
+ "data-testid": `rule-row-${n.id}`,
1035
1035
  children: [
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, {
1036
+ /*#__PURE__*/ F(t, { children: n.direction || E._({ id: "h47p9L" }) }),
1037
+ /*#__PURE__*/ F(t, { children: n.description || E._({ id: "h47p9L" }) }),
1038
+ /*#__PURE__*/ F(t, { children: n.ethertype }),
1039
+ /*#__PURE__*/ F(t, { children: n.protocol || E._({ id: "eKC+EC" }) }),
1040
+ /*#__PURE__*/ F(t, { children: W(n) }),
1041
+ !T && /*#__PURE__*/ F(t, {
1042
1042
  onClick: (e) => e.stopPropagation(),
1043
1043
  className: "items-end justify-end pr-0",
1044
- children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ F(C, { children: /*#__PURE__*/ F(g, {
1045
- label: T._({ id: "cnGeoo" }),
1046
- onClick: () => R(e)
1044
+ children: /*#__PURE__*/ F(e, { children: /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(_, {
1045
+ label: E._({ id: "cnGeoo" }),
1046
+ onClick: () => R(n)
1047
1047
  }) }) })
1048
1048
  })
1049
1049
  ]
1050
- }, e.id))]
1050
+ }, n.id))]
1051
1051
  })]
1052
1052
  }),
1053
- !w && /*#__PURE__*/ F(Y, {
1053
+ !T && /*#__PURE__*/ F(Y, {
1054
1054
  rule: O,
1055
1055
  open: !!O,
1056
1056
  onClose: U,
1057
1057
  onConfirm: B,
1058
- isLoading: a,
1058
+ isLoading: s,
1059
1059
  error: c
1060
1060
  }),
1061
- !w && v && y && M && /*#__PURE__*/ F(he, {
1062
- securityGroupId: v,
1061
+ !T && y && b && M && /*#__PURE__*/ F(he, {
1062
+ securityGroupId: y,
1063
1063
  open: M,
1064
1064
  onClose: N,
1065
- onCreate: y,
1066
- isLoading: b,
1067
- error: x,
1068
- availableSecurityGroups: S
1065
+ onCreate: b,
1066
+ isLoading: S,
1067
+ error: C,
1068
+ availableSecurityGroups: w
1069
1069
  })
1070
1070
  ] });
1071
1071
  }
1072
1072
  //#endregion
1073
1073
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/RBACPolicyRow.tsx
1074
- function _e({ policy: e, onDelete: t }) {
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, {
1074
+ function _e({ policy: n, onDelete: r }) {
1075
+ let { i18n: i, _: o } = H();
1076
+ return /*#__PURE__*/ I(a, { children: [
1077
+ /*#__PURE__*/ F(t, { children: n.target_tenant }),
1078
+ /*#__PURE__*/ F(t, { children: n.action }),
1079
+ /*#__PURE__*/ F(t, {
1080
1080
  onClick: (e) => e.stopPropagation(),
1081
1081
  className: "items-end justify-end pr-0",
1082
- children: /*#__PURE__*/ F(o, { children: /*#__PURE__*/ F(C, { children: /*#__PURE__*/ F(g, {
1083
- label: n._({ id: "t/YqKh" }),
1084
- onClick: t
1082
+ children: /*#__PURE__*/ F(e, { children: /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(_, {
1083
+ label: i._({ id: "t/YqKh" }),
1084
+ onClick: r
1085
1085
  }) }) })
1086
1086
  })
1087
1087
  ] });
@@ -1092,85 +1092,85 @@ var ve = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, ye =
1092
1092
  function $(e) {
1093
1093
  return ve.test(e) || ye.test(e);
1094
1094
  }
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({
1095
+ function be({ isOpen: e, onClose: t, securityGroupId: n }) {
1096
+ let { i18n: i, _: a } = H(), o = D.useUtils(), s = A(), [c, l] = z(!1), u = U.object({ targetTenant: U.string().min(1, i._({ id: "1RwosK" })).refine($, { message: i._({ id: "CunRry" }) }) }), d = D.network.rbacPolicy.create.useMutation({ onSuccess: () => {
1097
+ o.network.rbacPolicy.list.invalidate({
1098
+ project_id: s,
1099
+ securityGroupId: n
1100
+ }), o.network.securityGroup.getById.invalidate({
1101
+ project_id: s,
1102
+ securityGroupId: n
1103
+ }), p();
1104
+ } }), f = W({
1105
1105
  defaultValues: { targetTenant: "" },
1106
- validators: { onSubmit: p },
1106
+ validators: { onSubmit: u },
1107
1107
  onSubmit: async ({ value: e }) => {
1108
- m.isPending || m.mutate({
1109
- project_id: c,
1110
- securityGroupId: r,
1108
+ d.isPending || d.mutate({
1109
+ project_id: s,
1110
+ securityGroupId: n,
1111
1111
  targetTenant: e.targetTenant.trim()
1112
1112
  });
1113
1113
  }
1114
- }), g = () => {
1115
- h.reset(), m.reset(), f(!1), n();
1116
- }, _ = async () => {
1117
- f(!0), await h.handleSubmit();
1114
+ }), p = () => {
1115
+ f.reset(), d.reset(), l(!1), t();
1116
+ }, h = async () => {
1117
+ l(!0), await f.handleSubmit();
1118
1118
  };
1119
- return /*#__PURE__*/ I(b, {
1119
+ return /*#__PURE__*/ I(m, {
1120
1120
  open: e,
1121
- onCancel: g,
1122
- title: a._({ id: "vmRPFm" }),
1121
+ onCancel: p,
1122
+ title: i._({ id: "vmRPFm" }),
1123
1123
  size: "large",
1124
- onConfirm: _,
1125
- cancelButtonLabel: a._({ id: "dEgA5A" }),
1126
- confirmButtonLabel: a._({ id: "Z8lGw6" }),
1127
- disableConfirmButton: m.isPending,
1124
+ onConfirm: h,
1125
+ cancelButtonLabel: i._({ id: "dEgA5A" }),
1126
+ confirmButtonLabel: i._({ id: "Z8lGw6" }),
1127
+ disableConfirmButton: d.isPending,
1128
1128
  children: [
1129
- m.error && /*#__PURE__*/ F(t, {
1129
+ d.error && /*#__PURE__*/ F(r, {
1130
1130
  variant: "error",
1131
1131
  className: "mb-4",
1132
1132
  children: (() => {
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;
1133
+ let e = d.error.message.toLowerCase();
1134
+ return e.includes("conflict") || e.includes("409") ? i._({ id: "rbuO5A" }) : e.includes("not found") || e.includes("404") ? i._({ id: "FwSyEp" }) : e.includes("forbidden") || e.includes("403") ? i._({ id: "kqJVBO" }) : d.error.message;
1135
1135
  })()
1136
1136
  }),
1137
1137
  /*#__PURE__*/ F("p", {
1138
1138
  className: "mb-4",
1139
1139
  children: /*#__PURE__*/ F(V, { id: "cjEOmc" })
1140
1140
  }),
1141
- /*#__PURE__*/ F(d, {
1141
+ /*#__PURE__*/ F(T, {
1142
1142
  className: "mb-0",
1143
1143
  onSubmit: (e) => {
1144
- e.preventDefault(), _();
1144
+ e.preventDefault(), h();
1145
1145
  },
1146
- children: /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(h.Field, {
1146
+ children: /*#__PURE__*/ F(S, { children: /*#__PURE__*/ F(f.Field, {
1147
1147
  name: "targetTenant",
1148
1148
  validators: {
1149
1149
  onBlur: ({ value: e }) => {
1150
1150
  let t = e.trim();
1151
- if (!t) return a._({ id: "1RwosK" });
1152
- if (!$(t)) return a._({ id: "CunRry" });
1151
+ if (!t) return i._({ id: "1RwosK" });
1152
+ if (!$(t)) return i._({ id: "CunRry" });
1153
1153
  },
1154
1154
  onChange: ({ value: e }) => {
1155
- if (!u) return;
1155
+ if (!c) return;
1156
1156
  let t = e.trim();
1157
- if (!t) return a._({ id: "1RwosK" });
1158
- if (!$(t)) return a._({ id: "CunRry" });
1157
+ if (!t) return i._({ id: "1RwosK" });
1158
+ if (!$(t)) return i._({ id: "CunRry" });
1159
1159
  }
1160
1160
  },
1161
1161
  children: (e) => {
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, {
1162
+ let t = (e.state.meta.isTouched || c) && 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(b, {
1164
1164
  id: e.name,
1165
1165
  name: e.name,
1166
- label: a._({ id: "WzVwU0" }),
1166
+ label: i._({ id: "WzVwU0" }),
1167
1167
  value: e.state.value,
1168
1168
  onChange: (t) => e.handleChange(t.target.value),
1169
1169
  onBlur: e.handleBlur,
1170
- placeholder: a._({ id: "he4q+i" }),
1170
+ placeholder: i._({ id: "he4q+i" }),
1171
1171
  required: !0,
1172
- helptext: a._({ id: "PkfPsB" }),
1173
- disabled: m.isPending,
1172
+ helptext: i._({ id: "PkfPsB" }),
1173
+ disabled: d.isPending,
1174
1174
  errortext: r,
1175
1175
  invalid: t
1176
1176
  });
@@ -1182,31 +1182,31 @@ function be({ isOpen: e, onClose: n, securityGroupId: r }) {
1182
1182
  }
1183
1183
  //#endregion
1184
1184
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/DeleteRBACPolicyDialog.tsx
1185
- function xe({ policy: e, open: n, onClose: r, onConfirm: a, isLoading: o, error: s }) {
1186
- let { i18n: c, _: u } = H(), f = W({
1185
+ function xe({ policy: e, open: t, onClose: n, onConfirm: i, isLoading: a, error: o }) {
1186
+ let { i18n: s, _: c } = H(), l = W({
1187
1187
  defaultValues: { confirmText: "" },
1188
- validators: { onSubmit: U.object({ confirmText: U.string().refine((e) => e === "remove", { message: c._({ id: "SVLToM" }) }) }) },
1188
+ validators: { onSubmit: U.object({ confirmText: U.string().refine((e) => e === "remove", { message: s._({ id: "SVLToM" }) }) }) },
1189
1189
  onSubmit: async () => {
1190
- o || (a(e.id), m());
1190
+ a || (i(e.id), d());
1191
1191
  }
1192
- }), p = G(f.store, (e) => e.isSubmitting || e.values.confirmText !== "remove"), m = () => {
1193
- f.reset(), r();
1192
+ }), u = G(l.store, (e) => e.isSubmitting || e.values.confirmText !== "remove"), d = () => {
1193
+ l.reset(), n();
1194
1194
  };
1195
- return /*#__PURE__*/ F(b, {
1196
- open: n,
1197
- onCancel: m,
1195
+ return /*#__PURE__*/ F(m, {
1196
+ open: t,
1197
+ onCancel: d,
1198
1198
  size: "small",
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,
1199
+ title: s._({ id: "Dt5W9T" }),
1200
+ onConfirm: l.handleSubmit,
1201
+ cancelButtonLabel: s._({ id: "dEgA5A" }),
1202
+ confirmButtonLabel: a ? s._({ id: "M5RhXF" }) : s._({ id: "qh5W8q" }),
1203
+ disableConfirmButton: a || u,
1204
1204
  children: /*#__PURE__*/ I("div", { children: [
1205
- s && /*#__PURE__*/ F(t, {
1205
+ o && /*#__PURE__*/ F(r, {
1206
1206
  dismissible: !1,
1207
1207
  variant: "error",
1208
1208
  className: "mt-4",
1209
- children: s
1209
+ children: o
1210
1210
  }),
1211
1211
  /*#__PURE__*/ F(V, { id: "BMTd81" }),
1212
1212
  /*#__PURE__*/ I("div", {
@@ -1235,27 +1235,27 @@ function xe({ policy: e, open: n, onClose: r, onConfirm: a, isLoading: o, error:
1235
1235
  ]
1236
1236
  })]
1237
1237
  }),
1238
- !o && /*#__PURE__*/ F(d, {
1238
+ !a && /*#__PURE__*/ F(T, {
1239
1239
  className: "mt-4 mb-0",
1240
1240
  onSubmit: (e) => {
1241
- e.preventDefault(), f.handleSubmit();
1241
+ e.preventDefault(), l.handleSubmit();
1242
1242
  },
1243
- children: /*#__PURE__*/ I(i, { children: [/*#__PURE__*/ F("p", {
1243
+ children: /*#__PURE__*/ I(S, { children: [/*#__PURE__*/ F("p", {
1244
1244
  className: "mb-2 text-sm",
1245
1245
  children: /*#__PURE__*/ F(V, {
1246
1246
  id: "Enpdmy",
1247
1247
  components: { 0: /*#__PURE__*/ F("strong", {}) }
1248
1248
  })
1249
- }), /*#__PURE__*/ F(f.Field, {
1249
+ }), /*#__PURE__*/ F(l.Field, {
1250
1250
  name: "confirmText",
1251
- children: (e) => /*#__PURE__*/ F(l, {
1251
+ children: (e) => /*#__PURE__*/ F(b, {
1252
1252
  id: e.name,
1253
1253
  name: e.name,
1254
1254
  value: e.state.value,
1255
1255
  onChange: (t) => e.handleChange(t.target.value),
1256
- placeholder: c._({ id: "tasfos" }),
1256
+ placeholder: s._({ id: "tasfos" }),
1257
1257
  autoComplete: "off",
1258
- disabled: o,
1258
+ disabled: a,
1259
1259
  "data-testid": "remove-policy-confirmation-input"
1260
1260
  })
1261
1261
  })] })
@@ -1266,89 +1266,89 @@ function xe({ policy: e, open: n, onClose: r, onConfirm: a, isLoading: o, error:
1266
1266
  //#endregion
1267
1267
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/-details/SecurityGroupRBACPolicies.tsx
1268
1268
  function Se({ securityGroupId: e }) {
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,
1269
+ let t = D.useUtils(), { i18n: o, _: s } = H(), c = A(), [l, u] = k(), [d, m] = z(null), [g, _] = z(""), { data: v, isPending: y, isError: b, error: x } = D.network.rbacPolicy.list.useQuery({
1270
+ project_id: c,
1271
1271
  securityGroupId: e
1272
- }, { refetchOnWindowFocus: !1 }), x = D.network.rbacPolicy.delete.useMutation({ onSuccess: () => {
1273
- r.network.rbacPolicy.list.invalidate({
1274
- project_id: o,
1272
+ }, { refetchOnWindowFocus: !1 }), S = D.network.rbacPolicy.delete.useMutation({ onSuccess: () => {
1273
+ t.network.rbacPolicy.list.invalidate({
1274
+ project_id: c,
1275
1275
  securityGroupId: e
1276
- }), r.network.securityGroup.getById.invalidate({
1277
- project_id: o,
1276
+ }), t.network.securityGroup.getById.invalidate({
1277
+ project_id: c,
1278
1278
  securityGroupId: e
1279
1279
  });
1280
- } }), S = (e) => {
1281
- p(e);
1282
- }, C = (e) => {
1283
- x.mutate({
1284
- project_id: o,
1280
+ } }), C = (e) => {
1281
+ m(e);
1282
+ }, w = (e) => {
1283
+ S.mutate({
1284
+ project_id: c,
1285
1285
  policyId: e
1286
1286
  });
1287
- }, w = () => {
1288
- x.isPending || p(null);
1287
+ }, T = () => {
1288
+ S.isPending || m(null);
1289
1289
  };
1290
1290
  L(() => {
1291
- !x.isPending && !x.error && x.isSuccess && p(null);
1291
+ !S.isPending && !S.error && S.isSuccess && m(null);
1292
1292
  }, [
1293
- x.isPending,
1294
- x.error,
1295
- x.isSuccess
1293
+ S.isPending,
1294
+ S.error,
1295
+ S.isSuccess
1296
1296
  ]);
1297
- let T = R(() => {
1298
- if (!g) return [];
1299
- if (!m) return g;
1300
- let e = m.toLowerCase();
1301
- return g.filter((t) => t.target_tenant?.toLowerCase().includes(e) || t.action?.toLowerCase().includes(e));
1302
- }, [g, m]), O = (e) => {
1303
- h(typeof e == "string" ? e : "");
1297
+ let E = R(() => {
1298
+ if (!v) return [];
1299
+ if (!g) return v;
1300
+ let e = g.toLowerCase();
1301
+ return v.filter((t) => t.target_tenant?.toLowerCase().includes(e) || t.action?.toLowerCase().includes(e));
1302
+ }, [v, g]), O = (e) => {
1303
+ _(typeof e == "string" ? e : "");
1304
1304
  };
1305
- if (v) return /*#__PURE__*/ F(s, {
1305
+ if (y) return /*#__PURE__*/ F(f, {
1306
1306
  distribution: "center",
1307
1307
  alignment: "center",
1308
1308
  className: "py-8",
1309
- children: /*#__PURE__*/ F(c, { variant: "primary" })
1309
+ children: /*#__PURE__*/ F(n, { variant: "primary" })
1310
1310
  });
1311
- if (y) return /*#__PURE__*/ F(t, {
1311
+ if (b) return /*#__PURE__*/ F(r, {
1312
1312
  variant: "error",
1313
1313
  className: "mb-4",
1314
- children: b.message
1314
+ children: x.message
1315
1315
  });
1316
- let M = g?.length || 0, N = T.length;
1316
+ let M = v?.length || 0, N = E.length;
1317
1317
  return /*#__PURE__*/ I(P, { children: [
1318
- /*#__PURE__*/ I(s, {
1318
+ /*#__PURE__*/ I(f, {
1319
1319
  direction: "vertical",
1320
1320
  gap: "4",
1321
1321
  children: [/*#__PURE__*/ F(j, {
1322
1322
  totalCount: M,
1323
1323
  filteredCount: N,
1324
- itemName: i._({ id: "M9H+/G" }),
1325
- searchTerm: m,
1324
+ itemName: o._({ id: "M9H+/G" }),
1325
+ searchTerm: g,
1326
1326
  onSearch: O,
1327
- actions: /*#__PURE__*/ F(f, {
1327
+ actions: /*#__PURE__*/ F(p, {
1328
1328
  variant: "primary",
1329
1329
  icon: "addCircle",
1330
1330
  onClick: u,
1331
1331
  children: /*#__PURE__*/ F(V, { id: "vmRPFm" })
1332
1332
  })
1333
- }), N === 0 ? m ? /*#__PURE__*/ F(V, { id: "qxxo7y" }) : /*#__PURE__*/ F(V, { id: "Dia2Ue" }) : /*#__PURE__*/ I(_, {
1333
+ }), N === 0 ? g ? /*#__PURE__*/ F(V, { id: "qxxo7y" }) : /*#__PURE__*/ F(V, { id: "Dia2Ue" }) : /*#__PURE__*/ I(h, {
1334
1334
  columns: 3,
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, {
1335
+ children: [/*#__PURE__*/ I(a, { children: [
1336
+ /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(V, { id: "WzVwU0" }) }),
1337
+ /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(V, { id: "bwRvnp" }) }),
1338
+ /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(V, { id: "7L01XJ" }) })
1339
+ ] }), E.map((e) => /*#__PURE__*/ F(_e, {
1340
1340
  policy: e,
1341
- onDelete: () => S(e)
1341
+ onDelete: () => C(e)
1342
1342
  }, e.id))]
1343
1343
  })]
1344
1344
  }),
1345
1345
  !!d && /*#__PURE__*/ F(xe, {
1346
1346
  policy: d,
1347
1347
  open: !!d,
1348
- onClose: w,
1349
- onConfirm: C,
1350
- isLoading: x.isPending,
1351
- error: x.error?.message || null
1348
+ onClose: T,
1349
+ onConfirm: w,
1350
+ isLoading: S.isPending,
1351
+ error: S.error?.message || null
1352
1352
  }),
1353
1353
  l && /*#__PURE__*/ F(be, {
1354
1354
  isOpen: l,
@@ -1359,12 +1359,12 @@ function Se({ securityGroupId: e }) {
1359
1359
  }
1360
1360
  //#endregion
1361
1361
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-components/SecurityGroupDetailsView.tsx
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 }) {
1362
+ function Ce({ securityGroup: e, filteredAndSortedRules: t, onEdit: n, onDeleteRule: r, isDeletingRule: i = !1, deleteRuleError: a = null, filterControls: s, onCreateRule: c, isCreatingRule: l = !1, createRuleError: u = null, availableSecurityGroups: d = [], currentProjectId: p }) {
1363
1363
  let [m, h] = z("rules"), g = e.project_id === p, _ = !g, v = g;
1364
- return /*#__PURE__*/ F(u, {
1364
+ return /*#__PURE__*/ F(o, {
1365
1365
  px: !1,
1366
1366
  py: !0,
1367
- children: /*#__PURE__*/ I(s, {
1367
+ children: /*#__PURE__*/ I(f, {
1368
1368
  direction: "vertical",
1369
1369
  gap: "4",
1370
1370
  children: [
@@ -1390,17 +1390,17 @@ function Ce({ securityGroup: e, filteredAndSortedRules: t, onEdit: n, onDeleteRu
1390
1390
  onDeleteRule: r,
1391
1391
  isDeletingRule: i,
1392
1392
  deleteError: a,
1393
- searchTerm: o.searchTerm,
1394
- onSearchChange: o.onSearchChange,
1395
- sortSettings: o.sortSettings,
1396
- onSortChange: o.onSortChange,
1397
- filterSettings: o.filterSettings,
1398
- onFilterChange: o.onFilterChange,
1393
+ searchTerm: s.searchTerm,
1394
+ onSearchChange: s.onSearchChange,
1395
+ sortSettings: s.sortSettings,
1396
+ onSortChange: s.onSortChange,
1397
+ filterSettings: s.filterSettings,
1398
+ onFilterChange: s.onFilterChange,
1399
1399
  securityGroupId: e.id,
1400
1400
  onCreateRule: _ ? void 0 : c,
1401
1401
  isCreatingRule: l,
1402
- createRuleError: d,
1403
- availableSecurityGroups: f,
1402
+ createRuleError: u,
1403
+ availableSecurityGroups: d,
1404
1404
  readOnly: _
1405
1405
  }), m === "rbac" && /*#__PURE__*/ F(Se, { securityGroupId: e.id })]
1406
1406
  })
@@ -1490,7 +1490,7 @@ function we({ securityGroupId: e, filterControls: t }) {
1490
1490
  //#endregion
1491
1491
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/index.tsx?tsr-split=component
1492
1492
  function Te() {
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({
1493
+ let { securityGroupId: e } = O.useParams(), t = A(), r = B(), { i18n: i, _: a } = H(), { searchTerm: o, sortSettings: c, filterSettings: l, handleSearchChange: m, handleSortChange: h, handleFilterChange: g } = M({
1494
1494
  defaultSortKey: "direction",
1495
1495
  defaultSortDir: "asc",
1496
1496
  sortOptions: [
@@ -1532,31 +1532,31 @@ function Te() {
1532
1532
  supportsMultiValue: !1
1533
1533
  }
1534
1534
  ] }
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) => ({
1535
+ }), _ = {
1536
+ searchTerm: o,
1537
+ onSearchChange: m,
1538
+ sortSettings: c,
1539
+ onSortChange: h,
1540
+ filterSettings: l,
1541
+ onFilterChange: g
1542
+ }, { securityGroup: v, filteredAndSortedRules: y, 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: e,
1544
+ filterControls: _
1545
+ }), { data: K } = D.network.securityGroup.list.useQuery({ project_id: t }), q = R(() => (K || []).filter((t) => t.id !== e).map((e) => ({
1546
1546
  id: e.id,
1547
1547
  name: e.name || e.id
1548
- })), [K, t]), J = () => {
1548
+ })), [K, e]), J = () => {
1549
1549
  r({
1550
1550
  to: "/projects/$projectId/network/securitygroups",
1551
- params: { projectId: n }
1551
+ params: { projectId: t }
1552
1552
  });
1553
1553
  };
1554
- if (b) return /*#__PURE__*/ I(s, {
1554
+ if (b) return /*#__PURE__*/ I(f, {
1555
1555
  className: "fixed inset-0",
1556
1556
  distribution: "center",
1557
1557
  alignment: "center",
1558
1558
  direction: "vertical",
1559
- children: [/*#__PURE__*/ F(c, {
1559
+ children: [/*#__PURE__*/ F(n, {
1560
1560
  variant: "primary",
1561
1561
  size: "large",
1562
1562
  className: "mb-2"
@@ -1564,7 +1564,7 @@ function Te() {
1564
1564
  });
1565
1565
  if (x) {
1566
1566
  let e = S?.message || "Unknown error";
1567
- return /*#__PURE__*/ I(s, {
1567
+ return /*#__PURE__*/ I(f, {
1568
1568
  className: "fixed inset-0",
1569
1569
  distribution: "center",
1570
1570
  alignment: "center",
@@ -1579,7 +1579,7 @@ function Te() {
1579
1579
  className: "text-theme-highest",
1580
1580
  children: e
1581
1581
  }),
1582
- /*#__PURE__*/ F(f, {
1582
+ /*#__PURE__*/ F(p, {
1583
1583
  onClick: J,
1584
1584
  variant: "primary",
1585
1585
  children: /*#__PURE__*/ F(V, { id: "U9q4M7" })
@@ -1587,36 +1587,36 @@ function Te() {
1587
1587
  ]
1588
1588
  });
1589
1589
  }
1590
- return _ ? /*#__PURE__*/ I(s, {
1590
+ return v ? /*#__PURE__*/ I(f, {
1591
1591
  direction: "vertical",
1592
1592
  children: [
1593
- /*#__PURE__*/ F(y, { children: _.name || _.id }),
1594
- /*#__PURE__*/ I(a, {
1593
+ /*#__PURE__*/ F(s, { children: v.name || v.id }),
1594
+ /*#__PURE__*/ I(d, {
1595
1595
  className: "my-6",
1596
- children: [/*#__PURE__*/ F(e, {
1596
+ children: [/*#__PURE__*/ F(u, {
1597
1597
  onClick: J,
1598
1598
  label: i._({ id: "4opp4r" })
1599
- }), /*#__PURE__*/ F(e, {
1599
+ }), /*#__PURE__*/ F(u, {
1600
1600
  active: !0,
1601
- label: _.id
1601
+ label: v.id
1602
1602
  })]
1603
1603
  }),
1604
1604
  /*#__PURE__*/ F(Ce, {
1605
- securityGroup: _,
1606
- filteredAndSortedRules: v,
1605
+ securityGroup: v,
1606
+ filteredAndSortedRules: y,
1607
1607
  onEdit: L,
1608
1608
  onDeleteRule: W,
1609
1609
  isDeletingRule: T,
1610
1610
  deleteRuleError: E,
1611
- filterControls: g,
1611
+ filterControls: _,
1612
1612
  onCreateRule: G,
1613
1613
  isCreatingRule: k,
1614
1614
  createRuleError: j,
1615
1615
  availableSecurityGroups: q,
1616
- currentProjectId: n
1616
+ currentProjectId: t
1617
1617
  }),
1618
1618
  /*#__PURE__*/ F(N, {
1619
- securityGroup: _,
1619
+ securityGroup: v,
1620
1620
  open: P,
1621
1621
  onClose: z,
1622
1622
  onUpdate: U,
@@ -1624,7 +1624,7 @@ function Te() {
1624
1624
  error: w
1625
1625
  })
1626
1626
  ]
1627
- }) : /*#__PURE__*/ I(s, {
1627
+ }) : /*#__PURE__*/ I(f, {
1628
1628
  className: "fixed inset-0",
1629
1629
  distribution: "center",
1630
1630
  alignment: "center",
@@ -1633,7 +1633,7 @@ function Te() {
1633
1633
  children: [/*#__PURE__*/ F("p", {
1634
1634
  className: "text-theme-secondary",
1635
1635
  children: /*#__PURE__*/ F(V, { id: "Zw8Q49" })
1636
- }), /*#__PURE__*/ F(f, {
1636
+ }), /*#__PURE__*/ F(p, {
1637
1637
  onClick: J,
1638
1638
  variant: "primary",
1639
1639
  children: /*#__PURE__*/ F(V, { id: "U9q4M7" })
@@ -1643,4 +1643,4 @@ function Te() {
1643
1643
  //#endregion
1644
1644
  export { Te as component };
1645
1645
 
1646
- //# sourceMappingURL=_securityGroupId-KKw4RPdH.mjs.map
1646
+ //# sourceMappingURL=_securityGroupId-DYxmXUOP.mjs.map