@cobaltcore-dev/aurora 0.10.0 → 0.11.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 (120) hide show
  1. package/README.md +2 -1
  2. package/dist/client/AuroraApp.d.ts +2 -0
  3. package/dist/client/AuthProvider-DZqOvceF.mjs +64 -0
  4. package/dist/client/AuthProvider-DZqOvceF.mjs.map +1 -0
  5. package/dist/client/ContentHeader-DsuZD8fa.mjs +110 -0
  6. package/dist/client/ContentHeader-DsuZD8fa.mjs.map +1 -0
  7. package/dist/client/{DeleteFlavorModal-C3m7bQJu.mjs → DeleteFlavorModal-RnbspW_2.mjs} +135 -135
  8. package/dist/client/{DeleteFlavorModal-C3m7bQJu.mjs.map → DeleteFlavorModal-RnbspW_2.mjs.map} +1 -1
  9. package/dist/client/{DeleteVersionsModal-CyYZfB8d.mjs → DeleteVersionsModal-CsBJzXoW.mjs} +57 -57
  10. package/dist/client/{DeleteVersionsModal-CyYZfB8d.mjs.map → DeleteVersionsModal-CsBJzXoW.mjs.map} +1 -1
  11. package/dist/client/{EditSecurityGroupModal-DKusxfta.mjs → EditSecurityGroupModal-BPv3d7am.mjs} +15 -15
  12. package/dist/client/{EditSecurityGroupModal-DKusxfta.mjs.map → EditSecurityGroupModal-BPv3d7am.mjs.map} +1 -1
  13. package/dist/client/{FiltersInput-GzR4D0q6.mjs → FiltersInput-CViamP59.mjs} +2 -2
  14. package/dist/client/{FiltersInput-GzR4D0q6.mjs.map → FiltersInput-CViamP59.mjs.map} +1 -1
  15. package/dist/client/{FloatingIpActionModals-CRvROJ3H.mjs → FloatingIpActionModals-DTn3HFei.mjs} +45 -45
  16. package/dist/client/{FloatingIpActionModals-CRvROJ3H.mjs.map → FloatingIpActionModals-DTn3HFei.mjs.map} +1 -1
  17. package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs → ImageToastNotifications-CFKQZTgf.mjs} +261 -261
  18. package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs.map → ImageToastNotifications-CFKQZTgf.mjs.map} +1 -1
  19. package/dist/client/{RouteError-DVAiT0mT.mjs → RouteError-BebIhFpQ.mjs} +2 -2
  20. package/dist/client/{RouteError-DVAiT0mT.mjs.map → RouteError-BebIhFpQ.mjs.map} +1 -1
  21. package/dist/client/{SortInput-DLcusjGZ.mjs → SortInput-D0Vb864D.mjs} +2 -2
  22. package/dist/client/{SortInput-DLcusjGZ.mjs.map → SortInput-D0Vb864D.mjs.map} +1 -1
  23. package/dist/client/{_auth-DXJkv9QO.mjs → _auth-DnImOqR-.mjs} +2 -2
  24. package/dist/client/_auth-DnImOqR-.mjs.map +1 -0
  25. package/dist/client/{_flavorId-Dy7EYQum.mjs → _flavorId-C9SZd1jL.mjs} +8 -8
  26. package/dist/client/{_flavorId-Dy7EYQum.mjs.map → _flavorId-C9SZd1jL.mjs.map} +1 -1
  27. package/dist/client/{_flavorId-DsD2VTKA.mjs → _flavorId-DINgWoeV.mjs} +38 -38
  28. package/dist/client/{_flavorId-DsD2VTKA.mjs.map → _flavorId-DINgWoeV.mjs.map} +1 -1
  29. package/dist/client/{_floatingIpId-j17rCQqG2.mjs → _floatingIpId-BACLbMzi2.mjs} +32 -32
  30. package/dist/client/{_floatingIpId-j17rCQqG2.mjs.map → _floatingIpId-BACLbMzi2.mjs.map} +1 -1
  31. package/dist/client/{_floatingIpId-BjVbeNw_.mjs → _floatingIpId-BzVMOv97.mjs} +2 -2
  32. package/dist/client/{_floatingIpId-BjVbeNw_.mjs.map → _floatingIpId-BzVMOv97.mjs.map} +1 -1
  33. package/dist/client/_imageId-DCvaU7-S.mjs +534 -0
  34. package/dist/client/_imageId-DCvaU7-S.mjs.map +1 -0
  35. package/dist/client/{_pcaId-Bo7yHkNW.mjs → _pcaId-B3PqECyO.mjs} +115 -115
  36. package/dist/client/{_pcaId-Bo7yHkNW.mjs.map → _pcaId-B3PqECyO.mjs.map} +1 -1
  37. package/dist/client/{_pcaId-CKkCVC7b.mjs → _pcaId-DAJEt3ZI.mjs} +2 -2
  38. package/dist/client/{_pcaId-CKkCVC7b.mjs.map → _pcaId-DAJEt3ZI.mjs.map} +1 -1
  39. package/dist/client/{_projectId-CARHuZTU.mjs → _projectId-B2hG5peP.mjs} +3 -3
  40. package/dist/client/_projectId-B2hG5peP.mjs.map +1 -0
  41. package/dist/client/{_projectId-CY8W0IF6.mjs → _projectId-BnWXWTBR.mjs} +3 -3
  42. package/dist/client/{_projectId-CY8W0IF6.mjs.map → _projectId-BnWXWTBR.mjs.map} +1 -1
  43. package/dist/client/{_projectId-Dbck_MFa.mjs → _projectId-DRr9rLST.mjs} +66 -66
  44. package/dist/client/{_projectId-Dbck_MFa.mjs.map → _projectId-DRr9rLST.mjs.map} +1 -1
  45. package/dist/client/{_projectId-B_2sZKk-.mjs → _projectId-DU8qRiZk.mjs} +2 -2
  46. package/dist/client/_projectId-DU8qRiZk.mjs.map +1 -0
  47. package/dist/client/{_securityGroupId-gSEZbBII.mjs → _securityGroupId-Cj9IotMJ.mjs} +2 -2
  48. package/dist/client/{_securityGroupId-gSEZbBII.mjs.map → _securityGroupId-Cj9IotMJ.mjs.map} +1 -1
  49. package/dist/client/{_securityGroupId-CkN0CGVg.mjs → _securityGroupId-ClJiFh4R.mjs} +267 -267
  50. package/dist/client/{_securityGroupId-CkN0CGVg.mjs.map → _securityGroupId-ClJiFh4R.mjs.map} +1 -1
  51. package/dist/client/_storageType-BrHDa2bD.mjs +3005 -0
  52. package/dist/client/_storageType-BrHDa2bD.mjs.map +1 -0
  53. package/dist/client/{_storageType-6k8lUnQo.mjs → _storageType-CSLH93js.mjs} +2 -2
  54. package/dist/client/{_storageType-6k8lUnQo.mjs.map → _storageType-CSLH93js.mjs.map} +1 -1
  55. package/dist/client/_storageType-zeSZe--V.mjs.map +1 -1
  56. package/dist/client/{about-Nsxkyh9U.mjs → about-BnU297yB.mjs} +2 -2
  57. package/dist/client/about-BnU297yB.mjs.map +1 -0
  58. package/dist/client/{aurora-DDzsst74.mjs → aurora-6RsAZtnz.mjs} +2 -2
  59. package/dist/client/aurora-6RsAZtnz.mjs.map +1 -0
  60. package/dist/client/{build-BdRRmNf5.mjs → build-DF7MTyXG.mjs} +3582 -3114
  61. package/dist/client/{build-BdRRmNf5.mjs.map → build-DF7MTyXG.mjs.map} +1 -1
  62. package/dist/client/{constants-PMXUGI4Q.mjs → constants-BskfpGYY.mjs} +16 -16
  63. package/dist/client/{constants-PMXUGI4Q.mjs.map → constants-BskfpGYY.mjs.map} +1 -1
  64. package/dist/client/{flavors-p2TKcqP-.mjs → flavors-DAbtRoep.mjs} +151 -151
  65. package/dist/client/{flavors-p2TKcqP-.mjs.map → flavors-DAbtRoep.mjs.map} +1 -1
  66. package/dist/client/{flavors-BclEwobO.mjs → flavors-DODudzrA.mjs} +2 -2
  67. package/dist/client/{flavors-BclEwobO.mjs.map → flavors-DODudzrA.mjs.map} +1 -1
  68. package/dist/client/flavors-DWMZ6TuJ.mjs.map +1 -1
  69. package/dist/client/{floatingips-ph0ZxJw8.mjs → floatingips-DJW9ftN_.mjs} +83 -83
  70. package/dist/client/floatingips-DJW9ftN_.mjs.map +1 -0
  71. package/dist/client/{hooks-dSArr2Ca.mjs → hooks-CMgoYcDG.mjs} +1 -1
  72. package/dist/client/{images-CXdghaMW.mjs → images-BbLnuYrL.mjs} +2 -2
  73. package/dist/client/{images-CXdghaMW.mjs.map → images-BbLnuYrL.mjs.map} +1 -1
  74. package/dist/client/{images-Dbjo4yKn.mjs → images-C3JyPwer.mjs} +2 -2
  75. package/dist/client/images-C3JyPwer.mjs.map +1 -0
  76. package/dist/client/{images-BblnyWJq.mjs → images-Cp6V1nF5.mjs} +455 -455
  77. package/dist/client/{images-BblnyWJq.mjs.map → images-Cp6V1nF5.mjs.map} +1 -1
  78. package/dist/client/images-NBf2bV43.mjs.map +1 -1
  79. package/dist/client/index.js +257 -257
  80. package/dist/client/index.js.map +1 -1
  81. package/dist/client/network-DuZm76BZ.mjs.map +1 -1
  82. package/dist/client/{objects-B9Jh3SMG.mjs → objects-Bw96WXOs.mjs} +2 -2
  83. package/dist/client/{objects-B9Jh3SMG.mjs.map → objects-Bw96WXOs.mjs.map} +1 -1
  84. package/dist/client/{objects-Bw25cE1m.mjs → objects-DUmK3WgA.mjs} +1458 -1430
  85. package/dist/client/objects-DUmK3WgA.mjs.map +1 -0
  86. package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -1
  87. package/dist/client/{pca-DUrQ_tIg.mjs → pca-DKeGzbww.mjs} +2 -2
  88. package/dist/client/{pca-DUrQ_tIg.mjs.map → pca-DKeGzbww.mjs.map} +1 -1
  89. package/dist/client/{pca-CiLPHmK7.mjs → pca-Dc_tdh4-.mjs} +47 -47
  90. package/dist/client/{pca-CiLPHmK7.mjs.map → pca-Dc_tdh4-.mjs.map} +1 -1
  91. package/dist/client/{projects-DNd3UTas.mjs → projects-CRL37ftA.mjs} +16 -16
  92. package/dist/client/{projects-DNd3UTas.mjs.map → projects-CRL37ftA.mjs.map} +1 -1
  93. package/dist/client/{projects-B5topuei.mjs → projects-DUWOgB3m.mjs} +2 -2
  94. package/dist/client/{projects-B5topuei.mjs.map → projects-DUWOgB3m.mjs.map} +1 -1
  95. package/dist/client/{projects-CHYn7L5e.mjs → projects-DpXQYfKc.mjs} +2 -2
  96. package/dist/client/projects-DpXQYfKc.mjs.map +1 -0
  97. package/dist/client/{securitygroups-CcA2TpAt.mjs → securitygroups-CWWFSjjj.mjs} +94 -94
  98. package/dist/client/securitygroups-CWWFSjjj.mjs.map +1 -0
  99. package/dist/client/{useListWithFiltering-CVzhMyEA.mjs → useListWithFiltering-C9k7xWqz.mjs} +7 -7
  100. package/dist/client/{useListWithFiltering-CVzhMyEA.mjs.map → useListWithFiltering-C9k7xWqz.mjs.map} +1 -1
  101. package/dist/server/index.js +697 -406
  102. package/package.json +3 -3
  103. package/dist/client/AuthProvider-Co4d0WzB.mjs +0 -100
  104. package/dist/client/AuthProvider-Co4d0WzB.mjs.map +0 -1
  105. package/dist/client/ContentHeader-D4jlOG-9.mjs +0 -96
  106. package/dist/client/ContentHeader-D4jlOG-9.mjs.map +0 -1
  107. package/dist/client/_auth-DXJkv9QO.mjs.map +0 -1
  108. package/dist/client/_imageId-BjfhqAje.mjs +0 -534
  109. package/dist/client/_imageId-BjfhqAje.mjs.map +0 -1
  110. package/dist/client/_projectId-B_2sZKk-.mjs.map +0 -1
  111. package/dist/client/_projectId-CARHuZTU.mjs.map +0 -1
  112. package/dist/client/_storageType-CLTxXjQZ.mjs +0 -3048
  113. package/dist/client/_storageType-CLTxXjQZ.mjs.map +0 -1
  114. package/dist/client/about-Nsxkyh9U.mjs.map +0 -1
  115. package/dist/client/aurora-DDzsst74.mjs.map +0 -1
  116. package/dist/client/floatingips-ph0ZxJw8.mjs.map +0 -1
  117. package/dist/client/images-Dbjo4yKn.mjs.map +0 -1
  118. package/dist/client/objects-Bw25cE1m.mjs.map +0 -1
  119. package/dist/client/projects-CHYn7L5e.mjs.map +0 -1
  120. package/dist/client/securitygroups-CcA2TpAt.mjs.map +0 -1
@@ -1,11 +1,11 @@
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";
1
+ import { B as e, D as t, G as n, K as r, L as i, N as a, O as o, S as s, U as c, W as l, X as u, Y as d, Z as f, _ as p, ct as m, dt as h, et as g, f as _, k as v, l as y, m as b, nt as x, p as S, ut as C, v as w, w as T, x as E } from "./build-DF7MTyXG.mjs";
2
2
  import { r as D } from "./trpcClient-BzPUgiM2.mjs";
3
- import { t as O } from "./_securityGroupId-gSEZbBII.mjs";
3
+ import { t as O } from "./_securityGroupId-Cj9IotMJ.mjs";
4
4
  import { t as k } from "./useModal-DCs1OJh7.mjs";
5
5
  import { t as A } from "./useProjectId-DBc5lpoU.mjs";
6
- import "./hooks-dSArr2Ca.mjs";
7
- import { n as j, t as M } from "./useListWithFiltering-CVzhMyEA.mjs";
8
- import { t as N } from "./EditSecurityGroupModal-DKusxfta.mjs";
6
+ import "./hooks-CMgoYcDG.mjs";
7
+ import { n as j, t as M } from "./useListWithFiltering-C9k7xWqz.mjs";
8
+ import { t as N } from "./EditSecurityGroupModal-BPv3d7am.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(s, { children: `'${e || t}' Details` }), /*#__PURE__*/ F("p", {
19
+ children: [/*#__PURE__*/ F(g, { 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,21 +24,21 @@ 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: n, isReadOnly: r = !1 }) {
27
+ function q({ securityGroup: e, onEdit: t, isReadOnly: n = !1 }) {
28
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: n && !r && /*#__PURE__*/ F(p, {
31
+ children: t && !n && /*#__PURE__*/ F(p, {
32
32
  variant: "primary",
33
- onClick: n,
34
- disabled: r,
33
+ onClick: t,
34
+ disabled: n,
35
35
  children: /*#__PURE__*/ F(V, { id: "ePK91l" })
36
36
  })
37
- }), /*#__PURE__*/ I(h, {
37
+ }), /*#__PURE__*/ I(x, {
38
38
  columns: 4,
39
39
  gridColumnTemplate: "15% 35% 15% 35%",
40
40
  children: [
41
- /*#__PURE__*/ I(a, { children: [/*#__PURE__*/ F(i, { children: o._({ id: "Nu4oKW" }) }), /*#__PURE__*/ F(t, {
41
+ /*#__PURE__*/ I(a, { children: [/*#__PURE__*/ F(i, { children: o._({ id: "Nu4oKW" }) }), /*#__PURE__*/ F(r, {
42
42
  colSpan: 3,
43
43
  children: /*#__PURE__*/ F("div", {
44
44
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
@@ -48,13 +48,13 @@ function q({ securityGroup: e, onEdit: n, isReadOnly: r = !1 }) {
48
48
  })] }),
49
49
  /*#__PURE__*/ I(a, { children: [
50
50
  /*#__PURE__*/ F(i, { children: o._({ id: "S0kLOH" }) }),
51
- /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F("div", {
51
+ /*#__PURE__*/ F(r, { 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
56
  /*#__PURE__*/ F(i, { children: o._({ id: "OYHzN1" }) }),
57
- /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F("div", {
57
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
58
58
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
59
59
  title: e.tags?.join(", ") || void 0,
60
60
  children: e.tags?.join(", ") || o._({ id: "h47p9L" })
@@ -62,23 +62,23 @@ function q({ securityGroup: e, onEdit: n, isReadOnly: r = !1 }) {
62
62
  ] }),
63
63
  /*#__PURE__*/ I(a, { children: [
64
64
  /*#__PURE__*/ F(i, { children: o._({ id: "6YtxFj" }) }),
65
- /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F("div", {
65
+ /*#__PURE__*/ F(r, { 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
70
  /*#__PURE__*/ F(i, { children: o._({ id: "Jim5X9" }) }),
71
- /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F(c, { value: e.stateful }) })
71
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F(c, { value: e.stateful }) })
72
72
  ] }),
73
73
  /*#__PURE__*/ I(a, { children: [
74
74
  /*#__PURE__*/ F(i, { children: o._({ id: "aI8Tgp" }) }),
75
- /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F("div", {
75
+ /*#__PURE__*/ F(r, { children: /*#__PURE__*/ F("div", {
76
76
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
77
77
  title: e.project_id || void 0,
78
78
  children: e.project_id || o._({ id: "h47p9L" })
79
79
  }) }),
80
80
  /*#__PURE__*/ F(i, { children: o._({ id: "0Gd0NU" }) }),
81
- /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F(c, { value: e.shared }) })
81
+ /*#__PURE__*/ F(r, { 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(f, {
92
+ children: /*#__PURE__*/ I(u, {
93
93
  direction: "horizontal",
94
94
  gap: "0",
95
95
  children: [/*#__PURE__*/ F("button", {
@@ -106,38 +106,38 @@ 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: 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);
109
+ function Y({ rule: e, open: t, onClose: n, onConfirm: r, isLoading: i, error: a }) {
110
+ let { i18n: o, _: s } = H(), [c, l] = z(""), u = () => {
111
+ e && c === "delete" && r(e.id);
112
112
  }, f = () => {
113
- u(""), n();
114
- }, h = l !== "delete" || a;
115
- return e ? /*#__PURE__*/ F(m, {
113
+ l(""), n();
114
+ }, m = c !== "delete" || i;
115
+ return e ? /*#__PURE__*/ F(C, {
116
116
  open: t,
117
117
  onCancel: f,
118
118
  size: "small",
119
- title: s._({ id: "TM93nK" }),
120
- modalFooter: /*#__PURE__*/ F(g, {
119
+ title: o._({ id: "TM93nK" }),
120
+ modalFooter: /*#__PURE__*/ F(_, {
121
121
  className: "flex justify-end",
122
- children: /*#__PURE__*/ I(y, { children: [/*#__PURE__*/ F(p, {
122
+ children: /*#__PURE__*/ I(h, { children: [/*#__PURE__*/ F(p, {
123
123
  variant: "default",
124
124
  onClick: f,
125
- disabled: a,
125
+ disabled: i,
126
126
  children: /*#__PURE__*/ F(V, { id: "dEgA5A" })
127
127
  }), /*#__PURE__*/ F(p, {
128
128
  variant: "primary-danger",
129
- onClick: d,
130
- disabled: h,
129
+ onClick: u,
130
+ disabled: m,
131
131
  "data-testid": "confirm-delete-rule-button",
132
- children: a ? /*#__PURE__*/ F(V, { id: "EF2EU9" }) : /*#__PURE__*/ F(V, { id: "lN3xvy" })
132
+ children: i ? /*#__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(r, {
136
+ a && /*#__PURE__*/ F(d, {
137
137
  dismissible: !1,
138
138
  variant: "error",
139
139
  className: "mt-4",
140
- children: o
140
+ children: a
141
141
  }),
142
142
  /*#__PURE__*/ F(V, { id: "CMVP7y" }),
143
143
  /*#__PURE__*/ I("div", {
@@ -196,11 +196,11 @@ function Y({ rule: e, open: t, onClose: n, onConfirm: i, isLoading: a, error: o
196
196
  components: { 0: /*#__PURE__*/ F("strong", {}) }
197
197
  })
198
198
  }), /*#__PURE__*/ F(b, {
199
- value: l,
200
- onChange: (e) => u(e.target.value),
201
- placeholder: s._({ id: "HNlEFZ" }),
199
+ value: c,
200
+ onChange: (e) => l(e.target.value),
201
+ placeholder: o._({ id: "HNlEFZ" }),
202
202
  autoComplete: "off",
203
- disabled: a,
203
+ disabled: i,
204
204
  "data-testid": "delete-rule-confirmation-input"
205
205
  })]
206
206
  })
@@ -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(c, {
554
+ children: (r) => /*#__PURE__*/ F(s, {
555
555
  className: "mb-6",
556
- children: /*#__PURE__*/ F(C, {
556
+ children: /*#__PURE__*/ F(w, {
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(v, {
570
+ children: Q.map((e) => e.value === "" ? /*#__PURE__*/ F(y, {
571
571
  value: e.value,
572
572
  label: n._({ id: "eh/k36" })
573
- }, e.value) : /*#__PURE__*/ F(v, {
573
+ }, e.value) : /*#__PURE__*/ F(y, {
574
574
  value: e.value,
575
575
  label: e.label
576
576
  }, e.value))
@@ -580,47 +580,47 @@ function se({ form: e, disabled: t = !1 }) {
580
580
  }
581
581
  //#endregion
582
582
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/DirectionEthertypeSection.tsx
583
- function ce({ form: e, disabled: t = !1 }) {
584
- let { i18n: n, _: r } = H();
585
- return /*#__PURE__*/ F(e.Field, {
583
+ function ce({ form: t, disabled: n = !1 }) {
584
+ let { i18n: r, _: i } = H();
585
+ return /*#__PURE__*/ F(t.Field, {
586
586
  name: "direction",
587
- children: (e) => /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(E, {
587
+ children: (t) => /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(e, {
588
588
  name: "direction",
589
- label: n._({ id: "MRB7nI" }),
590
- selected: e.state.value,
591
- onChange: (t) => e.handleChange(String(t)),
589
+ label: r._({ id: "MRB7nI" }),
590
+ selected: t.state.value,
591
+ onChange: (e) => t.handleChange(String(e)),
592
592
  required: !0,
593
- disabled: t,
593
+ disabled: n,
594
594
  children: /*#__PURE__*/ I("div", {
595
595
  className: "flex gap-4",
596
- children: [/*#__PURE__*/ F(w, {
596
+ children: [/*#__PURE__*/ F(T, {
597
597
  value: "ingress",
598
- label: n._({ id: "fzfAAa" })
599
- }), /*#__PURE__*/ F(w, {
598
+ label: r._({ id: "fzfAAa" })
599
+ }), /*#__PURE__*/ F(T, {
600
600
  value: "egress",
601
- label: n._({ id: "nETBrc" })
601
+ label: r._({ id: "nETBrc" })
602
602
  })]
603
603
  })
604
604
  }) })
605
605
  });
606
606
  }
607
- function le({ form: e, disabled: t = !1 }) {
608
- let { i18n: n, _: r } = H();
609
- return /*#__PURE__*/ F(e.Field, {
607
+ function le({ form: t, disabled: n = !1 }) {
608
+ let { i18n: r, _: i } = H();
609
+ return /*#__PURE__*/ F(t.Field, {
610
610
  name: "ethertype",
611
- children: (e) => /*#__PURE__*/ F(c, { children: /*#__PURE__*/ F(E, {
611
+ children: (t) => /*#__PURE__*/ F(s, { children: /*#__PURE__*/ F(e, {
612
612
  name: "ethertype",
613
- label: n._({ id: "16085O" }),
614
- selected: e.state.value,
615
- onChange: (t) => e.handleChange(String(t)),
613
+ label: r._({ id: "16085O" }),
614
+ selected: t.state.value,
615
+ onChange: (e) => t.handleChange(String(e)),
616
616
  required: !0,
617
- disabled: t,
617
+ disabled: n,
618
618
  children: /*#__PURE__*/ I("div", {
619
619
  className: "flex gap-4",
620
- children: [/*#__PURE__*/ F(w, {
620
+ children: [/*#__PURE__*/ F(T, {
621
621
  value: "IPv4",
622
622
  label: "IPv4"
623
- }), /*#__PURE__*/ F(w, {
623
+ }), /*#__PURE__*/ F(T, {
624
624
  value: "IPv6",
625
625
  label: "IPv6"
626
626
  })]
@@ -634,7 +634,7 @@ 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(c, {
637
+ children: (e) => /*#__PURE__*/ F(s, {
638
638
  className: "mb-6",
639
639
  children: /*#__PURE__*/ F(b, {
640
640
  id: "protocol",
@@ -652,8 +652,8 @@ function ue({ form: e, disabled: t = !1 }) {
652
652
  //#endregion
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
- 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(c, {
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), c = t || !i || i.trim() === "";
656
+ return /*#__PURE__*/ I(s, {
657
657
  className: "mb-6",
658
658
  children: [
659
659
  /*#__PURE__*/ I("div", {
@@ -696,7 +696,7 @@ function de({ form: e, disabled: t = !1 }) {
696
696
  },
697
697
  invalid: t.state.meta.errors.length > 0,
698
698
  placeholder: "",
699
- disabled: s
699
+ disabled: c
700
700
  })
701
701
  })
702
702
  })
@@ -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(c, {
720
+ return /*#__PURE__*/ F(s, {
721
721
  className: "mb-6",
722
722
  children: /*#__PURE__*/ I("div", {
723
723
  className: "flex w-full gap-4",
@@ -757,75 +757,75 @@ function fe({ form: e, disabled: t = !1 }) {
757
757
  }
758
758
  //#endregion
759
759
  //#region src/client/routes/_auth/projects/$projectId/network/securitygroups/$securityGroupId/-modals/AddRuleModal/sections/RemoteSourceSection.tsx
760
- function pe({ form: e, disabled: t = !1, availableSecurityGroups: n }) {
761
- let { i18n: r, _: i } = H();
760
+ function pe({ form: t, disabled: n = !1, availableSecurityGroups: r }) {
761
+ let { i18n: i, _: a } = H();
762
762
  return /*#__PURE__*/ I(P, { children: [
763
- /*#__PURE__*/ F(e.Field, {
763
+ /*#__PURE__*/ F(t.Field, {
764
764
  name: "remoteSourceType",
765
765
  mode: "value",
766
- children: (n) => /*#__PURE__*/ F(c, {
766
+ children: (r) => /*#__PURE__*/ F(s, {
767
767
  className: "mb-1",
768
- children: /*#__PURE__*/ F(E, {
768
+ children: /*#__PURE__*/ F(e, {
769
769
  name: "remoteSourceType",
770
- label: r._({ id: "I5kZVK" }),
771
- selected: n.state.value,
772
- onChange: (t) => {
773
- let r = String(t);
774
- n.handleChange(r), r !== "security_group" && e.setFieldValue("ethertype", "IPv4");
770
+ label: i._({ id: "I5kZVK" }),
771
+ selected: r.state.value,
772
+ onChange: (e) => {
773
+ let n = String(e);
774
+ r.handleChange(n), n !== "security_group" && t.setFieldValue("ethertype", "IPv4");
775
775
  },
776
- disabled: t,
776
+ disabled: n,
777
777
  children: /*#__PURE__*/ I("div", {
778
778
  className: "flex gap-4",
779
- children: [/*#__PURE__*/ F(w, {
779
+ children: [/*#__PURE__*/ F(T, {
780
780
  value: "cidr",
781
- label: r._({ id: "4uXhtt" })
782
- }), /*#__PURE__*/ F(w, {
781
+ label: i._({ id: "4uXhtt" })
782
+ }), /*#__PURE__*/ F(T, {
783
783
  value: "security_group",
784
- label: r._({ id: "bwhBhT" })
784
+ label: i._({ id: "bwhBhT" })
785
785
  })]
786
786
  })
787
787
  })
788
788
  })
789
789
  }),
790
- /*#__PURE__*/ F(e.Field, {
790
+ /*#__PURE__*/ F(t.Field, {
791
791
  name: "remoteSourceType",
792
- children: (n) => n.state.value === "cidr" ? /*#__PURE__*/ F(e.Field, {
792
+ children: (e) => e.state.value === "cidr" ? /*#__PURE__*/ F(t.Field, {
793
793
  name: "remoteCidr",
794
- children: (n) => /*#__PURE__*/ F(e.Field, {
794
+ children: (e) => /*#__PURE__*/ F(t.Field, {
795
795
  name: "ethertype",
796
- children: (e) => /*#__PURE__*/ F(c, {
796
+ children: (t) => /*#__PURE__*/ F(s, {
797
797
  className: "mb-6",
798
798
  children: /*#__PURE__*/ F(b, {
799
799
  id: "remoteCidr",
800
800
  name: "remoteCidr",
801
- label: r._({ id: "vmYyLY" }),
802
- value: n.state.value,
803
- onChange: (e) => n.handleChange(e.target.value),
804
- errortext: n.state.meta.errors[0]?.message,
805
- placeholder: e.state.value === "IPv4" ? Z : re,
806
- disabled: t
801
+ label: i._({ id: "vmYyLY" }),
802
+ value: e.state.value,
803
+ onChange: (t) => e.handleChange(t.target.value),
804
+ errortext: e.state.meta.errors[0]?.message,
805
+ placeholder: t.state.value === "IPv4" ? Z : re,
806
+ disabled: n
807
807
  })
808
808
  })
809
809
  })
810
810
  }) : null
811
811
  }),
812
- /*#__PURE__*/ F(e.Field, {
812
+ /*#__PURE__*/ F(t.Field, {
813
813
  name: "remoteSourceType",
814
- children: (i) => i.state.value === "security_group" ? /*#__PURE__*/ F(e.Field, {
814
+ children: (e) => e.state.value === "security_group" ? /*#__PURE__*/ F(t.Field, {
815
815
  name: "remoteSecurityGroupId",
816
- children: (e) => /*#__PURE__*/ F(c, {
816
+ children: (e) => /*#__PURE__*/ F(s, {
817
817
  className: "mb-6",
818
- children: /*#__PURE__*/ I(C, {
818
+ children: /*#__PURE__*/ I(w, {
819
819
  id: "remoteSecurityGroupId",
820
- label: r._({ id: "i9TIyi" }),
820
+ label: i._({ 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
- disabled: t,
825
- children: [/*#__PURE__*/ F(v, {
824
+ disabled: n,
825
+ children: [/*#__PURE__*/ F(y, {
826
826
  value: "",
827
- label: r._({ id: "ZvIpwi" })
828
- }), n.map((e) => /*#__PURE__*/ F(v, {
827
+ label: i._({ id: "ZvIpwi" })
828
+ }), r.map((e) => /*#__PURE__*/ F(y, {
829
829
  value: e.id,
830
830
  label: e.name || e.id
831
831
  }, e.id))]
@@ -841,7 +841,7 @@ 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(c, {
844
+ children: (e) => /*#__PURE__*/ F(s, {
845
845
  className: "mb-0",
846
846
  children: /*#__PURE__*/ F(l, {
847
847
  id: "description",
@@ -858,12 +858,12 @@ 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: t, onClose: i, onCreate: a, isLoading: o = !1, error: s = null, availableSecurityGroups: c = [] }) => {
862
- let { i18n: l, _: u } = H(), d = W({
861
+ var he = ({ securityGroupId: e, open: t, onClose: n, onCreate: r, isLoading: i = !1, error: a = null, availableSecurityGroups: o = [] }) => {
862
+ let { i18n: s, _: l } = H(), u = W({
863
863
  defaultValues: oe,
864
864
  validators: { onSubmit: ae },
865
865
  onSubmit: async ({ value: t }) => {
866
- if (o) return;
866
+ if (i) return;
867
867
  let n = {
868
868
  security_group_id: e,
869
869
  direction: t.direction,
@@ -878,91 +878,91 @@ var he = ({ securityGroupId: e, open: t, onClose: i, 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), f();
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 r(n), f();
882
882
  }
883
883
  }), f = () => {
884
- d.reset(), i();
884
+ u.reset(), n();
885
885
  };
886
- return /*#__PURE__*/ I(m, {
886
+ return /*#__PURE__*/ I(C, {
887
887
  open: t,
888
888
  onCancel: f,
889
889
  size: "large",
890
- title: l._({ id: "b2BLBa" }),
891
- modalFooter: /*#__PURE__*/ F(g, {
890
+ title: s._({ id: "b2BLBa" }),
891
+ modalFooter: /*#__PURE__*/ F(_, {
892
892
  className: "flex justify-end",
893
- children: /*#__PURE__*/ F(d.Subscribe, { children: (e) => {
893
+ children: /*#__PURE__*/ F(u.Subscribe, { children: (e) => {
894
894
  let t = !!e.values.ruleType;
895
- return /*#__PURE__*/ I(y, { children: [/*#__PURE__*/ F(p, {
895
+ return /*#__PURE__*/ I(h, { children: [/*#__PURE__*/ F(p, {
896
896
  variant: "default",
897
897
  onClick: f,
898
- disabled: o || e.isSubmitting,
898
+ disabled: i || e.isSubmitting,
899
899
  children: /*#__PURE__*/ F(V, { id: "dEgA5A" })
900
900
  }), /*#__PURE__*/ F(p, {
901
901
  variant: "primary",
902
902
  type: "button",
903
- onClick: () => d.handleSubmit(),
904
- disabled: o || e.isSubmitting || !t,
903
+ onClick: () => u.handleSubmit(),
904
+ disabled: i || e.isSubmitting || !t,
905
905
  "data-testid": "add-rule-button",
906
- children: e.isSubmitting || o ? /*#__PURE__*/ F(n, { size: "small" }) : /*#__PURE__*/ F(V, { id: "bmQLn5" })
906
+ children: e.isSubmitting || i ? /*#__PURE__*/ F(c, { size: "small" }) : /*#__PURE__*/ F(V, { id: "bmQLn5" })
907
907
  })] });
908
908
  } })
909
909
  }),
910
910
  children: [
911
- s && /*#__PURE__*/ F(r, {
911
+ a && /*#__PURE__*/ F(d, {
912
912
  dismissible: !1,
913
913
  variant: "error",
914
914
  className: "mb-4",
915
- children: s
915
+ children: a
916
916
  }),
917
- o && /*#__PURE__*/ I("div", {
917
+ i && /*#__PURE__*/ I("div", {
918
918
  className: "mb-4 flex items-center justify-center gap-2",
919
- children: [/*#__PURE__*/ F(n, { variant: "primary" }), /*#__PURE__*/ F("span", {
919
+ children: [/*#__PURE__*/ F(c, { 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(T, {
924
+ /*#__PURE__*/ F(E, {
925
925
  className: "mb-6",
926
926
  onSubmit: (e) => {
927
- e.preventDefault(), d.handleSubmit();
927
+ e.preventDefault(), u.handleSubmit();
928
928
  },
929
929
  children: /*#__PURE__*/ I(S, {
930
930
  className: "mb-6",
931
931
  children: [/*#__PURE__*/ F(se, {
932
- form: d,
933
- disabled: o
934
- }), /*#__PURE__*/ F(d.Subscribe, { children: (e) => {
932
+ form: u,
933
+ disabled: i
934
+ }), /*#__PURE__*/ F(u.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: d,
940
- disabled: o
939
+ form: u,
940
+ disabled: i
941
941
  }),
942
942
  e.values.ruleType === "other-protocol" && /*#__PURE__*/ F(ue, {
943
- form: d,
944
- disabled: o
943
+ form: u,
944
+ disabled: i
945
945
  }),
946
946
  t && /*#__PURE__*/ F(de, {
947
- form: d,
948
- disabled: o
947
+ form: u,
948
+ disabled: i
949
949
  }),
950
950
  n && /*#__PURE__*/ F(fe, {
951
- form: d,
952
- disabled: o
951
+ form: u,
952
+ disabled: i
953
953
  }),
954
954
  /*#__PURE__*/ F(pe, {
955
- form: d,
956
- disabled: o,
957
- availableSecurityGroups: c
955
+ form: u,
956
+ disabled: i,
957
+ availableSecurityGroups: o
958
958
  }),
959
959
  e.values.remoteSourceType === "security_group" && /*#__PURE__*/ F(le, {
960
- form: d,
961
- disabled: o
960
+ form: u,
961
+ disabled: i
962
962
  }),
963
963
  /*#__PURE__*/ F(me, {
964
- form: d,
965
- disabled: o
964
+ form: u,
965
+ disabled: i
966
966
  })
967
967
  ] });
968
968
  } })]
@@ -973,7 +973,7 @@ var he = ({ securityGroupId: e, open: t, onClose: i, 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: 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 }) {
976
+ function ge({ rules: e, totalRulesCount: n, onDeleteRule: o, isDeletingRule: s, deleteError: c, searchTerm: l = "", onSearchChange: d, sortSettings: f, onSortChange: h, filterSettings: g, onFilterChange: _, securityGroupId: y, onCreateRule: b, isCreatingRule: S = !1, createRuleError: C = null, availableSecurityGroups: w = [], readOnly: T = !1 }) {
977
977
  let { i18n: E, _: D } = H(), [O, A] = z(null), [M, N] = k(), R = (e) => {
978
978
  A(e);
979
979
  }, B = (e) => {
@@ -1001,26 +1001,26 @@ function ge({ rules: n, totalRulesCount: r, onDeleteRule: o, isDeletingRule: s,
1001
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(f, {
1004
+ /*#__PURE__*/ I(u, {
1005
1005
  direction: "vertical",
1006
1006
  gap: "4",
1007
1007
  children: [/*#__PURE__*/ F(j, {
1008
- totalCount: r ?? n.length,
1009
- filteredCount: n.length,
1008
+ totalCount: n ?? e.length,
1009
+ filteredCount: e.length,
1010
1010
  itemName: E._({ id: "j9hkgJ" }),
1011
1011
  filterSettings: g,
1012
- onFilter: v,
1013
- sortSettings: d,
1014
- onSort: m,
1012
+ onFilter: _,
1013
+ sortSettings: f,
1014
+ onSort: h,
1015
1015
  searchTerm: l,
1016
- onSearch: u,
1016
+ onSearch: d,
1017
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
- }), n.length === 0 ? /*#__PURE__*/ F(V, { id: "nnxwBn" }) : /*#__PURE__*/ I(h, {
1023
+ }), e.length === 0 ? /*#__PURE__*/ F(V, { id: "nnxwBn" }) : /*#__PURE__*/ I(x, {
1024
1024
  columns: T ? 5 : 6,
1025
1025
  className: "security-group-rules-table",
1026
1026
  children: [/*#__PURE__*/ I(a, { children: [
@@ -1030,24 +1030,24 @@ function ge({ rules: n, totalRulesCount: r, onDeleteRule: o, isDeletingRule: s,
1030
1030
  /*#__PURE__*/ F(i, { children: E._({ id: "6+OdGi" }) }),
1031
1031
  /*#__PURE__*/ F(i, { children: E._({ id: "6jAi8c" }) }),
1032
1032
  !T && /*#__PURE__*/ F(i, { children: E._({ id: "7L01XJ" }) })
1033
- ] }), n.map((n) => /*#__PURE__*/ I(a, {
1034
- "data-testid": `rule-row-${n.id}`,
1033
+ ] }), e.map((e) => /*#__PURE__*/ I(a, {
1034
+ "data-testid": `rule-row-${e.id}`,
1035
1035
  children: [
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, {
1036
+ /*#__PURE__*/ F(r, { children: e.direction || E._({ id: "h47p9L" }) }),
1037
+ /*#__PURE__*/ F(r, { children: e.description || E._({ id: "h47p9L" }) }),
1038
+ /*#__PURE__*/ F(r, { children: e.ethertype }),
1039
+ /*#__PURE__*/ F(r, { children: e.protocol || E._({ id: "eKC+EC" }) }),
1040
+ /*#__PURE__*/ F(r, { children: W(e) }),
1041
+ !T && /*#__PURE__*/ F(r, {
1042
1042
  onClick: (e) => e.stopPropagation(),
1043
1043
  className: "items-end justify-end pr-0",
1044
- children: /*#__PURE__*/ F(e, { children: /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(_, {
1044
+ children: /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F(m, { children: /*#__PURE__*/ F(v, {
1045
1045
  label: E._({ id: "cnGeoo" }),
1046
- onClick: () => R(n)
1046
+ onClick: () => R(e)
1047
1047
  }) }) })
1048
1048
  })
1049
1049
  ]
1050
- }, n.id))]
1050
+ }, e.id))]
1051
1051
  })]
1052
1052
  }),
1053
1053
  !T && /*#__PURE__*/ F(Y, {
@@ -1071,17 +1071,17 @@ function ge({ rules: n, totalRulesCount: r, onDeleteRule: o, isDeletingRule: s,
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: n, onDelete: r }) {
1074
+ function _e({ policy: e, onDelete: n }) {
1075
1075
  let { i18n: i, _: o } = H();
1076
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, {
1077
+ /*#__PURE__*/ F(r, { children: e.target_tenant }),
1078
+ /*#__PURE__*/ F(r, { children: e.action }),
1079
+ /*#__PURE__*/ F(r, {
1080
1080
  onClick: (e) => e.stopPropagation(),
1081
1081
  className: "items-end justify-end pr-0",
1082
- children: /*#__PURE__*/ F(e, { children: /*#__PURE__*/ F(x, { children: /*#__PURE__*/ F(_, {
1082
+ children: /*#__PURE__*/ F(t, { children: /*#__PURE__*/ F(m, { children: /*#__PURE__*/ F(v, {
1083
1083
  label: i._({ id: "t/YqKh" }),
1084
- onClick: r
1084
+ onClick: n
1085
1085
  }) }) })
1086
1086
  })
1087
1087
  ] });
@@ -1093,85 +1093,85 @@ function $(e) {
1093
1093
  return ve.test(e) || ye.test(e);
1094
1094
  }
1095
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,
1096
+ let { i18n: r, _: i } = H(), a = D.useUtils(), o = A(), [s, c] = z(!1), l = U.object({ targetTenant: U.string().min(1, r._({ id: "1RwosK" })).refine($, { message: r._({ id: "CunRry" }) }) }), u = D.network.rbacPolicy.create.useMutation({ onSuccess: () => {
1097
+ a.network.rbacPolicy.list.invalidate({
1098
+ project_id: o,
1099
1099
  securityGroupId: n
1100
- }), o.network.securityGroup.getById.invalidate({
1101
- project_id: s,
1100
+ }), a.network.securityGroup.getById.invalidate({
1101
+ project_id: o,
1102
1102
  securityGroupId: n
1103
1103
  }), p();
1104
1104
  } }), f = W({
1105
1105
  defaultValues: { targetTenant: "" },
1106
- validators: { onSubmit: u },
1106
+ validators: { onSubmit: l },
1107
1107
  onSubmit: async ({ value: e }) => {
1108
- d.isPending || d.mutate({
1109
- project_id: s,
1108
+ u.isPending || u.mutate({
1109
+ project_id: o,
1110
1110
  securityGroupId: n,
1111
1111
  targetTenant: e.targetTenant.trim()
1112
1112
  });
1113
1113
  }
1114
1114
  }), p = () => {
1115
- f.reset(), d.reset(), l(!1), t();
1116
- }, h = async () => {
1117
- l(!0), await f.handleSubmit();
1115
+ f.reset(), u.reset(), c(!1), t();
1116
+ }, m = async () => {
1117
+ c(!0), await f.handleSubmit();
1118
1118
  };
1119
- return /*#__PURE__*/ I(m, {
1119
+ return /*#__PURE__*/ I(C, {
1120
1120
  open: e,
1121
1121
  onCancel: p,
1122
- title: i._({ id: "vmRPFm" }),
1122
+ title: r._({ id: "vmRPFm" }),
1123
1123
  size: "large",
1124
- onConfirm: h,
1125
- cancelButtonLabel: i._({ id: "dEgA5A" }),
1126
- confirmButtonLabel: i._({ id: "Z8lGw6" }),
1127
- disableConfirmButton: d.isPending,
1124
+ onConfirm: m,
1125
+ cancelButtonLabel: r._({ id: "dEgA5A" }),
1126
+ confirmButtonLabel: r._({ id: "Z8lGw6" }),
1127
+ disableConfirmButton: u.isPending,
1128
1128
  children: [
1129
- d.error && /*#__PURE__*/ F(r, {
1129
+ u.error && /*#__PURE__*/ F(d, {
1130
1130
  variant: "error",
1131
1131
  className: "mb-4",
1132
1132
  children: (() => {
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;
1133
+ let e = u.error.message.toLowerCase();
1134
+ 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" }) : u.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(T, {
1141
+ /*#__PURE__*/ F(E, {
1142
1142
  className: "mb-0",
1143
1143
  onSubmit: (e) => {
1144
- e.preventDefault(), h();
1144
+ e.preventDefault(), m();
1145
1145
  },
1146
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 i._({ id: "1RwosK" });
1152
- if (!$(t)) return i._({ id: "CunRry" });
1151
+ if (!t) return r._({ id: "1RwosK" });
1152
+ if (!$(t)) return r._({ id: "CunRry" });
1153
1153
  },
1154
1154
  onChange: ({ value: e }) => {
1155
- if (!c) return;
1155
+ if (!s) return;
1156
1156
  let t = e.trim();
1157
- if (!t) return i._({ id: "1RwosK" });
1158
- if (!$(t)) return i._({ id: "CunRry" });
1157
+ if (!t) return r._({ id: "1RwosK" });
1158
+ if (!$(t)) return r._({ id: "CunRry" });
1159
1159
  }
1160
1160
  },
1161
1161
  children: (e) => {
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;
1162
+ 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;
1163
1163
  return /*#__PURE__*/ F(b, {
1164
1164
  id: e.name,
1165
1165
  name: e.name,
1166
- label: i._({ id: "WzVwU0" }),
1166
+ label: r._({ id: "WzVwU0" }),
1167
1167
  value: e.state.value,
1168
1168
  onChange: (t) => e.handleChange(t.target.value),
1169
1169
  onBlur: e.handleBlur,
1170
- placeholder: i._({ id: "he4q+i" }),
1170
+ placeholder: r._({ id: "he4q+i" }),
1171
1171
  required: !0,
1172
- helptext: i._({ id: "PkfPsB" }),
1173
- disabled: d.isPending,
1174
- errortext: r,
1172
+ helptext: r._({ id: "PkfPsB" }),
1173
+ disabled: u.isPending,
1174
+ errortext: i,
1175
1175
  invalid: t
1176
1176
  });
1177
1177
  }
@@ -1182,31 +1182,31 @@ function be({ isOpen: e, onClose: t, securityGroupId: n }) {
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: t, onClose: n, onConfirm: i, isLoading: a, error: o }) {
1186
- let { i18n: s, _: c } = H(), l = W({
1185
+ function xe({ policy: e, open: t, onClose: n, onConfirm: r, isLoading: i, error: a }) {
1186
+ let { i18n: o, _: s } = H(), c = W({
1187
1187
  defaultValues: { confirmText: "" },
1188
- validators: { onSubmit: U.object({ confirmText: U.string().refine((e) => e === "remove", { message: s._({ id: "SVLToM" }) }) }) },
1188
+ validators: { onSubmit: U.object({ confirmText: U.string().refine((e) => e === "remove", { message: o._({ id: "SVLToM" }) }) }) },
1189
1189
  onSubmit: async () => {
1190
- a || (i(e.id), d());
1190
+ i || (r(e.id), u());
1191
1191
  }
1192
- }), u = G(l.store, (e) => e.isSubmitting || e.values.confirmText !== "remove"), d = () => {
1193
- l.reset(), n();
1192
+ }), l = G(c.store, (e) => e.isSubmitting || e.values.confirmText !== "remove"), u = () => {
1193
+ c.reset(), n();
1194
1194
  };
1195
- return /*#__PURE__*/ F(m, {
1195
+ return /*#__PURE__*/ F(C, {
1196
1196
  open: t,
1197
- onCancel: d,
1197
+ onCancel: u,
1198
1198
  size: "small",
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,
1199
+ title: o._({ id: "Dt5W9T" }),
1200
+ onConfirm: c.handleSubmit,
1201
+ cancelButtonLabel: o._({ id: "dEgA5A" }),
1202
+ confirmButtonLabel: i ? o._({ id: "M5RhXF" }) : o._({ id: "qh5W8q" }),
1203
+ disableConfirmButton: i || l,
1204
1204
  children: /*#__PURE__*/ I("div", { children: [
1205
- o && /*#__PURE__*/ F(r, {
1205
+ a && /*#__PURE__*/ F(d, {
1206
1206
  dismissible: !1,
1207
1207
  variant: "error",
1208
1208
  className: "mt-4",
1209
- children: o
1209
+ children: a
1210
1210
  }),
1211
1211
  /*#__PURE__*/ F(V, { id: "BMTd81" }),
1212
1212
  /*#__PURE__*/ I("div", {
@@ -1235,10 +1235,10 @@ function xe({ policy: e, open: t, onClose: n, onConfirm: i, isLoading: a, error:
1235
1235
  ]
1236
1236
  })]
1237
1237
  }),
1238
- !a && /*#__PURE__*/ F(T, {
1238
+ !i && /*#__PURE__*/ F(E, {
1239
1239
  className: "mt-4 mb-0",
1240
1240
  onSubmit: (e) => {
1241
- e.preventDefault(), l.handleSubmit();
1241
+ e.preventDefault(), c.handleSubmit();
1242
1242
  },
1243
1243
  children: /*#__PURE__*/ I(S, { children: [/*#__PURE__*/ F("p", {
1244
1244
  className: "mb-2 text-sm",
@@ -1246,16 +1246,16 @@ function xe({ policy: e, open: t, onClose: n, onConfirm: i, isLoading: a, error:
1246
1246
  id: "Enpdmy",
1247
1247
  components: { 0: /*#__PURE__*/ F("strong", {}) }
1248
1248
  })
1249
- }), /*#__PURE__*/ F(l.Field, {
1249
+ }), /*#__PURE__*/ F(c.Field, {
1250
1250
  name: "confirmText",
1251
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: s._({ id: "tasfos" }),
1256
+ placeholder: o._({ id: "tasfos" }),
1257
1257
  autoComplete: "off",
1258
- disabled: a,
1258
+ disabled: i,
1259
1259
  "data-testid": "remove-policy-confirmation-input"
1260
1260
  })
1261
1261
  })] })
@@ -1266,22 +1266,22 @@ function xe({ policy: e, open: t, onClose: n, onConfirm: i, isLoading: a, 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 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,
1269
+ let t = D.useUtils(), { i18n: n, _: r } = H(), o = A(), [s, l] = k(), [f, m] = z(null), [h, g] = z(""), { data: _, isPending: v, isError: y, error: b } = D.network.rbacPolicy.list.useQuery({
1270
+ project_id: o,
1271
1271
  securityGroupId: e
1272
1272
  }, { refetchOnWindowFocus: !1 }), S = D.network.rbacPolicy.delete.useMutation({ onSuccess: () => {
1273
1273
  t.network.rbacPolicy.list.invalidate({
1274
- project_id: c,
1274
+ project_id: o,
1275
1275
  securityGroupId: e
1276
1276
  }), t.network.securityGroup.getById.invalidate({
1277
- project_id: c,
1277
+ project_id: o,
1278
1278
  securityGroupId: e
1279
1279
  });
1280
1280
  } }), C = (e) => {
1281
1281
  m(e);
1282
1282
  }, w = (e) => {
1283
1283
  S.mutate({
1284
- project_id: c,
1284
+ project_id: o,
1285
1285
  policyId: e
1286
1286
  });
1287
1287
  }, T = () => {
@@ -1295,42 +1295,42 @@ function Se({ securityGroupId: e }) {
1295
1295
  S.isSuccess
1296
1296
  ]);
1297
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 : "");
1298
+ if (!_) return [];
1299
+ if (!h) return _;
1300
+ let e = h.toLowerCase();
1301
+ return _.filter((t) => t.target_tenant?.toLowerCase().includes(e) || t.action?.toLowerCase().includes(e));
1302
+ }, [_, h]), O = (e) => {
1303
+ g(typeof e == "string" ? e : "");
1304
1304
  };
1305
- if (y) return /*#__PURE__*/ F(f, {
1305
+ if (v) return /*#__PURE__*/ F(u, {
1306
1306
  distribution: "center",
1307
1307
  alignment: "center",
1308
1308
  className: "py-8",
1309
- children: /*#__PURE__*/ F(n, { variant: "primary" })
1309
+ children: /*#__PURE__*/ F(c, { variant: "primary" })
1310
1310
  });
1311
- if (b) return /*#__PURE__*/ F(r, {
1311
+ if (y) return /*#__PURE__*/ F(d, {
1312
1312
  variant: "error",
1313
1313
  className: "mb-4",
1314
- children: x.message
1314
+ children: b.message
1315
1315
  });
1316
- let M = v?.length || 0, N = E.length;
1316
+ let M = _?.length || 0, N = E.length;
1317
1317
  return /*#__PURE__*/ I(P, { children: [
1318
- /*#__PURE__*/ I(f, {
1318
+ /*#__PURE__*/ I(u, {
1319
1319
  direction: "vertical",
1320
1320
  gap: "4",
1321
1321
  children: [/*#__PURE__*/ F(j, {
1322
1322
  totalCount: M,
1323
1323
  filteredCount: N,
1324
- itemName: o._({ id: "M9H+/G" }),
1325
- searchTerm: g,
1324
+ itemName: n._({ id: "M9H+/G" }),
1325
+ searchTerm: h,
1326
1326
  onSearch: O,
1327
1327
  actions: /*#__PURE__*/ F(p, {
1328
1328
  variant: "primary",
1329
1329
  icon: "addCircle",
1330
- onClick: u,
1330
+ onClick: l,
1331
1331
  children: /*#__PURE__*/ F(V, { id: "vmRPFm" })
1332
1332
  })
1333
- }), N === 0 ? g ? /*#__PURE__*/ F(V, { id: "qxxo7y" }) : /*#__PURE__*/ F(V, { id: "Dia2Ue" }) : /*#__PURE__*/ I(h, {
1333
+ }), N === 0 ? h ? /*#__PURE__*/ F(V, { id: "qxxo7y" }) : /*#__PURE__*/ F(V, { id: "Dia2Ue" }) : /*#__PURE__*/ I(x, {
1334
1334
  columns: 3,
1335
1335
  children: [/*#__PURE__*/ I(a, { children: [
1336
1336
  /*#__PURE__*/ F(i, { children: /*#__PURE__*/ F(V, { id: "WzVwU0" }) }),
@@ -1342,29 +1342,29 @@ function Se({ securityGroupId: e }) {
1342
1342
  }, e.id))]
1343
1343
  })]
1344
1344
  }),
1345
- !!d && /*#__PURE__*/ F(xe, {
1346
- policy: d,
1347
- open: !!d,
1345
+ !!f && /*#__PURE__*/ F(xe, {
1346
+ policy: f,
1347
+ open: !!f,
1348
1348
  onClose: T,
1349
1349
  onConfirm: w,
1350
1350
  isLoading: S.isPending,
1351
1351
  error: S.error?.message || null
1352
1352
  }),
1353
- l && /*#__PURE__*/ F(be, {
1354
- isOpen: l,
1355
- onClose: u,
1353
+ s && /*#__PURE__*/ F(be, {
1354
+ isOpen: s,
1355
+ onClose: l,
1356
1356
  securityGroupId: e
1357
1357
  })
1358
1358
  ] });
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: s, onCreateRule: c, isCreatingRule: l = !1, createRuleError: u = null, availableSecurityGroups: d = [], 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: d = null, availableSecurityGroups: f = [], currentProjectId: p }) {
1363
1363
  let [m, h] = z("rules"), g = e.project_id === p, _ = !g, v = g;
1364
1364
  return /*#__PURE__*/ F(o, {
1365
1365
  px: !1,
1366
1366
  py: !0,
1367
- children: /*#__PURE__*/ I(f, {
1367
+ children: /*#__PURE__*/ I(u, {
1368
1368
  direction: "vertical",
1369
1369
  gap: "4",
1370
1370
  children: [
@@ -1399,8 +1399,8 @@ function Ce({ securityGroup: e, filteredAndSortedRules: t, onEdit: n, onDeleteRu
1399
1399
  securityGroupId: e.id,
1400
1400
  onCreateRule: _ ? void 0 : c,
1401
1401
  isCreatingRule: l,
1402
- createRuleError: u,
1403
- availableSecurityGroups: d,
1402
+ createRuleError: d,
1403
+ availableSecurityGroups: f,
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: e } = O.useParams(), t = A(), r = B(), { i18n: i, _: a } = H(), { searchTerm: o, sortSettings: c, filterSettings: l, handleSearchChange: m, handleSortChange: h, handleFilterChange: g } = M({
1493
+ let { securityGroupId: e } = O.useParams(), t = A(), r = B(), { i18n: i, _: a } = H(), { searchTerm: o, sortSettings: s, filterSettings: l, handleSearchChange: d, handleSortChange: m, handleFilterChange: h } = M({
1494
1494
  defaultSortKey: "direction",
1495
1495
  defaultSortDir: "asc",
1496
1496
  sortOptions: [
@@ -1534,11 +1534,11 @@ function Te() {
1534
1534
  ] }
1535
1535
  }), _ = {
1536
1536
  searchTerm: o,
1537
- onSearchChange: m,
1538
- sortSettings: c,
1539
- onSortChange: h,
1537
+ onSearchChange: d,
1538
+ sortSettings: s,
1539
+ onSortChange: m,
1540
1540
  filterSettings: l,
1541
- onFilterChange: g
1541
+ onFilterChange: h
1542
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
1543
  securityGroupId: e,
1544
1544
  filterControls: _
@@ -1551,12 +1551,12 @@ function Te() {
1551
1551
  params: { projectId: t }
1552
1552
  });
1553
1553
  };
1554
- if (b) return /*#__PURE__*/ I(f, {
1554
+ if (b) return /*#__PURE__*/ I(u, {
1555
1555
  className: "fixed inset-0",
1556
1556
  distribution: "center",
1557
1557
  alignment: "center",
1558
1558
  direction: "vertical",
1559
- children: [/*#__PURE__*/ F(n, {
1559
+ children: [/*#__PURE__*/ F(c, {
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(f, {
1567
+ return /*#__PURE__*/ I(u, {
1568
1568
  className: "fixed inset-0",
1569
1569
  distribution: "center",
1570
1570
  alignment: "center",
@@ -1587,16 +1587,16 @@ function Te() {
1587
1587
  ]
1588
1588
  });
1589
1589
  }
1590
- return v ? /*#__PURE__*/ I(f, {
1590
+ return v ? /*#__PURE__*/ I(u, {
1591
1591
  direction: "vertical",
1592
1592
  children: [
1593
- /*#__PURE__*/ F(s, { children: v.name || v.id }),
1594
- /*#__PURE__*/ I(d, {
1593
+ /*#__PURE__*/ F(g, { children: v.name || v.id }),
1594
+ /*#__PURE__*/ I(f, {
1595
1595
  className: "my-6",
1596
- children: [/*#__PURE__*/ F(u, {
1596
+ children: [/*#__PURE__*/ F(n, {
1597
1597
  onClick: J,
1598
1598
  label: i._({ id: "4opp4r" })
1599
- }), /*#__PURE__*/ F(u, {
1599
+ }), /*#__PURE__*/ F(n, {
1600
1600
  active: !0,
1601
1601
  label: v.id
1602
1602
  })]
@@ -1624,7 +1624,7 @@ function Te() {
1624
1624
  error: w
1625
1625
  })
1626
1626
  ]
1627
- }) : /*#__PURE__*/ I(f, {
1627
+ }) : /*#__PURE__*/ I(u, {
1628
1628
  className: "fixed inset-0",
1629
1629
  distribution: "center",
1630
1630
  alignment: "center",
@@ -1643,4 +1643,4 @@ function Te() {
1643
1643
  //#endregion
1644
1644
  export { Te as component };
1645
1645
 
1646
- //# sourceMappingURL=_securityGroupId-CkN0CGVg.mjs.map
1646
+ //# sourceMappingURL=_securityGroupId-ClJiFh4R.mjs.map