@cobaltcore-dev/aurora 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/client/App.d.ts +2 -1
  2. package/dist/client/AuroraApp.d.ts +25 -0
  3. package/dist/client/{AuthProvider-5TyZKZkx.mjs → AuthProvider-BS5OVv8n.mjs} +2 -2
  4. package/dist/client/AuthProvider-BS5OVv8n.mjs.map +1 -0
  5. package/dist/client/{ContentHeader-D64NtKvo.mjs → ContentHeader-BHMUzd9H.mjs} +16 -16
  6. package/dist/client/{ContentHeader-D64NtKvo.mjs.map → ContentHeader-BHMUzd9H.mjs.map} +1 -1
  7. package/dist/client/{DeleteFlavorModal-C2K43ABZ.mjs → DeleteFlavorModal-BP83t9zX.mjs} +283 -294
  8. package/dist/client/DeleteFlavorModal-BP83t9zX.mjs.map +1 -0
  9. package/dist/client/{FiltersInput-Bw8TFfwb.mjs → FiltersInput-B8CNBg1L.mjs} +23 -23
  10. package/dist/client/{FiltersInput-Bw8TFfwb.mjs.map → FiltersInput-B8CNBg1L.mjs.map} +1 -1
  11. package/dist/client/{FloatingIpActionModals-BfEDfYg9.mjs → FloatingIpActionModals-BraiJWBi.mjs} +48 -48
  12. package/dist/client/{FloatingIpActionModals-BfEDfYg9.mjs.map → FloatingIpActionModals-BraiJWBi.mjs.map} +1 -1
  13. package/dist/client/ImageToastNotifications-BXMHJaIH.mjs +1131 -0
  14. package/dist/client/ImageToastNotifications-BXMHJaIH.mjs.map +1 -0
  15. package/dist/client/{RouteError-B-NPGIv7.mjs → RouteError-hAF8_jbe.mjs} +2 -2
  16. package/dist/client/{RouteError-B-NPGIv7.mjs.map → RouteError-hAF8_jbe.mjs.map} +1 -1
  17. package/dist/client/{SortInput-DysAXpB3.mjs → SortInput-Cqs2poV3.mjs} +7 -7
  18. package/dist/client/{SortInput-DysAXpB3.mjs.map → SortInput-Cqs2poV3.mjs.map} +1 -1
  19. package/dist/client/{StatusError-DX-GvLjq.mjs → StatusError-C5KodQOq.mjs} +4 -4
  20. package/dist/client/{StatusError-DX-GvLjq.mjs.map → StatusError-C5KodQOq.mjs.map} +1 -1
  21. package/dist/client/{TwoColumnDescriptionList-B3xunXmz.mjs → TwoColumnDescriptionList-DiDx3PnH.mjs} +6 -6
  22. package/dist/client/{TwoColumnDescriptionList-B3xunXmz.mjs.map → TwoColumnDescriptionList-DiDx3PnH.mjs.map} +1 -1
  23. package/dist/client/{_auth-R5H2yKFf.mjs → _auth-DJ9wHZaj.mjs} +2 -2
  24. package/dist/client/{_auth-R5H2yKFf.mjs.map → _auth-DJ9wHZaj.mjs.map} +1 -1
  25. package/dist/client/{_flavorId-Zj7LNL-R.mjs → _flavorId-BN_qessZ.mjs} +2 -2
  26. package/dist/client/{_flavorId-Zj7LNL-R.mjs.map → _flavorId-BN_qessZ.mjs.map} +1 -1
  27. package/dist/client/{_flavorId-Dit5mM8I.mjs → _flavorId-CJjEB_Ao.mjs} +34 -34
  28. package/dist/client/{_flavorId-Dit5mM8I.mjs.map → _flavorId-CJjEB_Ao.mjs.map} +1 -1
  29. package/dist/client/{_floatingIpId-DCQQpNO-.mjs → _floatingIpId-CwDGHkWm.mjs} +2 -2
  30. package/dist/client/{_floatingIpId-DCQQpNO-.mjs.map → _floatingIpId-CwDGHkWm.mjs.map} +1 -1
  31. package/dist/client/{_floatingIpId-B0MCoqE3.mjs → _floatingIpId-foMIwbE4.mjs} +23 -23
  32. package/dist/client/{_floatingIpId-B0MCoqE3.mjs.map → _floatingIpId-foMIwbE4.mjs.map} +1 -1
  33. package/dist/client/_imageId-BtJ7GmYB.mjs +558 -0
  34. package/dist/client/{_imageId-CZYzBAVx.mjs.map → _imageId-BtJ7GmYB.mjs.map} +1 -1
  35. package/dist/client/{_projectId-DhSWowQo.mjs → _projectId-BmtCuzJu.mjs} +4 -4
  36. package/dist/client/{_projectId-DhSWowQo.mjs.map → _projectId-BmtCuzJu.mjs.map} +1 -1
  37. package/dist/client/_projectId-Byt3GQDW.mjs +99 -0
  38. package/dist/client/_projectId-Byt3GQDW.mjs.map +1 -0
  39. package/dist/client/_projectId-NYk1IN_a.mjs +291 -0
  40. package/dist/client/_projectId-NYk1IN_a.mjs.map +1 -0
  41. package/dist/client/{_projectId-D2pFfYIs.mjs → _projectId-QueiFczy.mjs} +3 -3
  42. package/dist/client/{_projectId-D2pFfYIs.mjs.map → _projectId-QueiFczy.mjs.map} +1 -1
  43. package/dist/client/{_securityGroupId-Mj8NJT2-.mjs → _securityGroupId-BcbkRhsN.mjs} +2 -2
  44. package/dist/client/{_securityGroupId-Mj8NJT2-.mjs.map → _securityGroupId-BcbkRhsN.mjs.map} +1 -1
  45. package/dist/client/{_securityGroupId-DZ4D4WwB.mjs → _securityGroupId-pPtJsCoe.mjs} +438 -442
  46. package/dist/client/{_securityGroupId-DZ4D4WwB.mjs.map → _securityGroupId-pPtJsCoe.mjs.map} +1 -1
  47. package/dist/client/_storageType-BmqrU06i.mjs +2202 -0
  48. package/dist/client/_storageType-BmqrU06i.mjs.map +1 -0
  49. package/dist/client/{about-WLyShNgE.mjs → about-_73VmpTB.mjs} +2 -2
  50. package/dist/client/{about-WLyShNgE.mjs.map → about-_73VmpTB.mjs.map} +1 -1
  51. package/dist/client/assets/{objectDownload.worker-BXFQIIU_.js.map → objectDownload.worker-CWWLPDyb.js.map} +1 -1
  52. package/dist/client/assets/{objectDownload.worker-ECvFtmOF.js.map → objectDownload.worker-kZlQuo3F.js.map} +1 -1
  53. package/dist/client/{aurora-IMO9HhqJ.mjs → aurora-EbwGRLLf.mjs} +2 -2
  54. package/dist/client/{aurora-IMO9HhqJ.mjs.map → aurora-EbwGRLLf.mjs.map} +1 -1
  55. package/dist/client/{build-DnD-T35u.mjs → build-C_4vRMCq.mjs} +2233 -2662
  56. package/dist/client/{build-DnD-T35u.mjs.map → build-C_4vRMCq.mjs.map} +1 -1
  57. package/dist/client/{flavors-Cp0LEGOH.mjs → flavors-CiHCYrtZ.mjs} +2 -2
  58. package/dist/client/{flavors-Cp0LEGOH.mjs.map → flavors-CiHCYrtZ.mjs.map} +1 -1
  59. package/dist/client/{flavors-CwMbDRHm2.mjs → flavors-DY-bDc8l.mjs} +164 -164
  60. package/dist/client/flavors-DY-bDc8l.mjs.map +1 -0
  61. package/dist/client/{floatingips-ICwo-rV_.mjs → floatingips-Ci4jHkaG.mjs} +177 -177
  62. package/dist/client/{floatingips-ICwo-rV_.mjs.map → floatingips-Ci4jHkaG.mjs.map} +1 -1
  63. package/dist/client/{hooks-CrriowRk.mjs → hooks-LutR2Yg3.mjs} +2 -2
  64. package/dist/client/{hooks-CrriowRk.mjs.map → hooks-LutR2Yg3.mjs.map} +1 -1
  65. package/dist/client/images-91U7tr9Y2.mjs +1976 -0
  66. package/dist/client/images-91U7tr9Y2.mjs.map +1 -0
  67. package/dist/client/{images-DWiM_72I.mjs → images-CS4kZQyu.mjs} +2 -2
  68. package/dist/client/{images-DWiM_72I.mjs.map → images-CS4kZQyu.mjs.map} +1 -1
  69. package/dist/client/index.d.ts +4 -1
  70. package/dist/client/index.js +444 -586
  71. package/dist/client/index.js.map +1 -1
  72. package/dist/client/{md-DNzcRhmz.mjs → md-kvaGCNAK.mjs} +4 -22
  73. package/dist/client/{md-DNzcRhmz.mjs.map → md-kvaGCNAK.mjs.map} +1 -1
  74. package/dist/client/{objects-DeK2WD5K.mjs → objects-C3azvW8m.mjs} +2019 -2023
  75. package/dist/client/{objects-DeK2WD5K.mjs.map → objects-C3azvW8m.mjs.map} +1 -1
  76. package/dist/client/{objects-DI1-tnKr.mjs → objects-CM265S6b.mjs} +2 -2
  77. package/dist/client/{objects-DI1-tnKr.mjs.map → objects-CM265S6b.mjs.map} +1 -1
  78. package/dist/client/{objects-D2MKUCxc.mjs → objects-EE9Cd1wI.mjs} +2 -2
  79. package/dist/client/{objects-D2MKUCxc.mjs.map → objects-EE9Cd1wI.mjs.map} +1 -1
  80. package/dist/client/{routeInfo-CdTRlSxv.mjs → routeInfo-DXqB2HCf.mjs} +3 -3
  81. package/dist/client/routeInfo-DXqB2HCf.mjs.map +1 -0
  82. package/dist/client/router.d.ts +2 -1
  83. package/dist/client/{routes-DOJr5onJ.mjs → routes-CBd8CCuM.mjs} +13 -13
  84. package/dist/client/{routes-DOJr5onJ.mjs.map → routes-CBd8CCuM.mjs.map} +1 -1
  85. package/dist/client/{routes-B05u5bk4.mjs → routes-CdDm-hhO.mjs} +2 -2
  86. package/dist/client/{routes-B05u5bk4.mjs.map → routes-CdDm-hhO.mjs.map} +1 -1
  87. package/dist/client/{securitygroups-Be2Qgmew.mjs → securitygroups-Bd_uV4S9.mjs} +198 -198
  88. package/dist/client/{securitygroups-Be2Qgmew.mjs.map → securitygroups-Bd_uV4S9.mjs.map} +1 -1
  89. package/dist/client/{securitygroups-_7SYN2jN.mjs → securitygroups-Byte-iSp.mjs} +2 -2
  90. package/dist/client/{securitygroups-_7SYN2jN.mjs.map → securitygroups-Byte-iSp.mjs.map} +1 -1
  91. package/dist/client/services-D1PbooD1.mjs +6 -0
  92. package/dist/client/services-D1PbooD1.mjs.map +1 -0
  93. package/dist/client/services-DEMVtFyn.mjs +9 -0
  94. package/dist/client/services-DEMVtFyn.mjs.map +1 -0
  95. package/dist/client/trpcClient.d.ts +18 -367
  96. package/dist/client/{useSecurityGroupPermissions-qPwm4mFt.mjs → useSecurityGroupPermissions-C29mzb3b.mjs} +15 -15
  97. package/dist/client/{useSecurityGroupPermissions-qPwm4mFt.mjs.map → useSecurityGroupPermissions-C29mzb3b.mjs.map} +1 -1
  98. package/dist/server/index.d.ts +43 -369
  99. package/dist/server/index.js +71 -276
  100. package/package.json +1 -3
  101. package/dist/client/AuthProvider-5TyZKZkx.mjs.map +0 -1
  102. package/dist/client/DeleteFlavorModal-C2K43ABZ.mjs.map +0 -1
  103. package/dist/client/DeletePcaModal-D9v8E0Ki.mjs +0 -92
  104. package/dist/client/DeletePcaModal-D9v8E0Ki.mjs.map +0 -1
  105. package/dist/client/DetailsInfo-h7rPJ4Jf.mjs +0 -61
  106. package/dist/client/DetailsInfo-h7rPJ4Jf.mjs.map +0 -1
  107. package/dist/client/ImageToastNotifications-C0Tluzq-.mjs +0 -1125
  108. package/dist/client/ImageToastNotifications-C0Tluzq-.mjs.map +0 -1
  109. package/dist/client/_imageId-CZYzBAVx.mjs +0 -558
  110. package/dist/client/_pcaId-CHRRsWmO.mjs +0 -605
  111. package/dist/client/_pcaId-CHRRsWmO.mjs.map +0 -1
  112. package/dist/client/_projectId-B8wWSxPu.mjs +0 -98
  113. package/dist/client/_projectId-B8wWSxPu.mjs.map +0 -1
  114. package/dist/client/_projectId-C5DUYIjt.mjs +0 -291
  115. package/dist/client/_projectId-C5DUYIjt.mjs.map +0 -1
  116. package/dist/client/_storageType-C-9bNkmZ.mjs +0 -2211
  117. package/dist/client/_storageType-C-9bNkmZ.mjs.map +0 -1
  118. package/dist/client/flavors-CwMbDRHm2.mjs.map +0 -1
  119. package/dist/client/images-DOGZmr3D.mjs +0 -1937
  120. package/dist/client/images-DOGZmr3D.mjs.map +0 -1
  121. package/dist/client/pca-BokFv4Gz.mjs +0 -239
  122. package/dist/client/pca-BokFv4Gz.mjs.map +0 -1
  123. package/dist/client/pca-D5jHAl0b.mjs +0 -26
  124. package/dist/client/pca-D5jHAl0b.mjs.map +0 -1
  125. package/dist/client/pcaAccess-Br4kVjLQ.mjs +0 -9
  126. package/dist/client/pcaAccess-Br4kVjLQ.mjs.map +0 -1
  127. package/dist/client/routeInfo-CdTRlSxv.mjs.map +0 -1
@@ -1,21 +1,21 @@
1
- import { C as e, E as t, G as n, I as r, L as i, S as a, Y as o, Z as s, _ as c, a as l, ct as u, dt as d, h as f, k as p, m, nt as h, rt as g, s as _, t as v, u as y, w as b } from "./build-DnD-T35u.mjs";
1
+ import { C as e, F as t, I as n, J as r, O as i, S as a, T as o, W as s, X as c, a as l, g as u, l as d, m as f, nt as p, o as m, p as h, st as g, t as _, tt as v, ut as y, x as b } from "./build-C_4vRMCq.mjs";
2
2
  import { a as x } from "./trpcClient-D7gpR7YG.mjs";
3
3
  import { t as S } from "./useProjectId-DBc5lpoU.mjs";
4
- import { t as C } from "./SortInput-DysAXpB3.mjs";
5
- import { d as w, n as T, o as E } from "./md-DNzcRhmz.mjs";
6
- import "./hooks-CrriowRk.mjs";
4
+ import { t as C } from "./SortInput-Cqs2poV3.mjs";
5
+ import { d as w, n as T, o as E } from "./md-kvaGCNAK.mjs";
6
+ import "./hooks-LutR2Yg3.mjs";
7
7
  import { t as D } from "./useModal-DCs1OJh7.mjs";
8
- import { n as O, t as k } from "./FiltersInput-Bw8TFfwb.mjs";
9
- import { t as A } from "./FloatingIpActionModals-BfEDfYg9.mjs";
8
+ import { n as O, t as k } from "./FiltersInput-B8CNBg1L.mjs";
9
+ import { t as A } from "./FloatingIpActionModals-BraiJWBi.mjs";
10
10
  import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
11
11
  import { useEffect as P, useRef as F, useState as I } from "react";
12
- import { useNavigate as L, useSearch as ee } from "@tanstack/react-router";
13
- import { Trans as R, useLingui as z } from "@lingui/react";
14
- import { z as B } from "zod";
15
- import { i18n as V } from "@lingui/core";
16
- import { useForm as H, useStore as U } from "@tanstack/react-form";
12
+ import { useNavigate as L, useSearch as R } from "@tanstack/react-router";
13
+ import { Trans as z, useLingui as B } from "@lingui/react";
14
+ import { z as V } from "zod";
15
+ import { i18n as H } from "@lingui/core";
16
+ import { useForm as U, useStore as W } from "@tanstack/react-form";
17
17
  //#region src/client/routes/_auth/projects/$projectId/network/floatingips/-components/-table/constants.tsx
18
- var W = {
18
+ var G = {
19
19
  ACTIVE: {
20
20
  text: "Active",
21
21
  icon: /*#__PURE__*/ M(T, {
@@ -40,106 +40,106 @@ var W = {
40
40
  fill: "#C70000"
41
41
  })
42
42
  }
43
- }, G = () => [
44
- V._({ id: "uAQUqI" }),
45
- V._({ id: "xNG/3n" }),
46
- V._({ id: "Nc7QKU" }),
47
- V._({ id: "7NC3vm" }),
48
- V._({ id: "Nu4oKW" }),
43
+ }, K = () => [
44
+ H._({ id: "uAQUqI" }),
45
+ H._({ id: "xNG/3n" }),
46
+ H._({ id: "Nc7QKU" }),
47
+ H._({ id: "7NC3vm" }),
48
+ H._({ id: "Nu4oKW" }),
49
49
  ""
50
- ], K = ({ floatingIp: e }) => {
51
- let { i18n: n, _: r } = z(), i = L(), o = S(), s = () => {
52
- i({
50
+ ], q = ({ floatingIp: e }) => {
51
+ let { i18n: t, _: n } = B(), r = L(), a = S(), s = () => {
52
+ r({
53
53
  to: "/projects/$projectId/network/floatingips/$floatingIpId",
54
54
  params: {
55
- projectId: o,
55
+ projectId: a,
56
56
  floatingIpId: e.id
57
57
  }
58
58
  });
59
59
  };
60
- return /*#__PURE__*/ N(t, {
60
+ return /*#__PURE__*/ N(o, {
61
61
  "data-testid": `floating-ip-row-${e.id}`,
62
62
  onClick: s,
63
63
  children: [
64
- /*#__PURE__*/ M(v, { children: /*#__PURE__*/ N("div", {
64
+ /*#__PURE__*/ M(_, { children: /*#__PURE__*/ N("div", {
65
65
  className: "flex items-center gap-2",
66
- children: [W[e.status].icon, W[e.status].text]
66
+ children: [G[e.status].icon, G[e.status].text]
67
67
  }) }),
68
- /*#__PURE__*/ M(v, { children: e.floating_ip_address }),
69
- /*#__PURE__*/ M(v, { children: e.fixed_ip_address || "—" }),
70
- /*#__PURE__*/ M(v, { children: e.floating_network_id }),
71
- /*#__PURE__*/ M(v, { children: e.description || "—" }),
72
- /*#__PURE__*/ M(v, {
68
+ /*#__PURE__*/ M(_, { children: e.floating_ip_address }),
69
+ /*#__PURE__*/ M(_, { children: e.fixed_ip_address || "—" }),
70
+ /*#__PURE__*/ M(_, { children: e.floating_network_id }),
71
+ /*#__PURE__*/ M(_, { children: e.description || "—" }),
72
+ /*#__PURE__*/ M(_, {
73
73
  onClick: (e) => e.stopPropagation(),
74
74
  className: "items-end pr-0",
75
75
  children: /*#__PURE__*/ M(A, {
76
76
  floatingIp: e,
77
- children: ({ toggleEditModal: e, toggleAttachModal: t, toggleDetachModal: r, toggleReleaseModal: i }) => /*#__PURE__*/ M(p, { children: /*#__PURE__*/ N(c, { children: [
78
- /*#__PURE__*/ M(a, {
79
- label: n._({ id: "rdUucN" }),
77
+ children: ({ toggleEditModal: e, toggleAttachModal: n, toggleDetachModal: r, toggleReleaseModal: a }) => /*#__PURE__*/ M(i, { children: /*#__PURE__*/ N(u, { children: [
78
+ /*#__PURE__*/ M(b, {
79
+ label: t._({ id: "rdUucN" }),
80
80
  onClick: s
81
81
  }),
82
- /*#__PURE__*/ M(a, {
83
- label: n._({ id: "n22YIM" }),
82
+ /*#__PURE__*/ M(b, {
83
+ label: t._({ id: "n22YIM" }),
84
84
  onClick: e
85
85
  }),
86
- /*#__PURE__*/ M(a, {
87
- label: n._({ id: "igVDFt" }),
88
- onClick: t
86
+ /*#__PURE__*/ M(b, {
87
+ label: t._({ id: "igVDFt" }),
88
+ onClick: n
89
89
  }),
90
- /*#__PURE__*/ M(a, {
91
- label: n._({ id: "FOcBn3" }),
90
+ /*#__PURE__*/ M(b, {
91
+ label: t._({ id: "FOcBn3" }),
92
92
  onClick: r
93
93
  }),
94
- /*#__PURE__*/ M(a, {
95
- label: n._({ id: "H+a5j6" }),
96
- onClick: i
94
+ /*#__PURE__*/ M(b, {
95
+ label: t._({ id: "H+a5j6" }),
96
+ onClick: a
97
97
  })
98
98
  ] }) })
99
99
  })
100
100
  })
101
101
  ]
102
102
  }, e.id);
103
- }, q = ({ floatingIps: r, isLoading: i, isError: a, error: o }) => {
104
- let { i18n: c, _: l } = z(), u = G(), d = u.length;
105
- return i ? /*#__PURE__*/ N(s, {
103
+ }, J = ({ floatingIps: e, isLoading: t, isError: n, error: r }) => {
104
+ let { i18n: i, _: l } = B(), u = K(), d = u.length;
105
+ return t ? /*#__PURE__*/ N(c, {
106
106
  className: "py-8",
107
107
  distribution: "center",
108
108
  alignment: "center",
109
109
  direction: "vertical",
110
- children: [/*#__PURE__*/ M(n, {
110
+ children: [/*#__PURE__*/ M(s, {
111
111
  variant: "primary",
112
112
  size: "large",
113
113
  className: "mb-2"
114
- }), /*#__PURE__*/ M(R, { id: "Z3FXyt" })]
115
- }) : a ? /*#__PURE__*/ M(s, {
114
+ }), /*#__PURE__*/ M(z, { id: "Z3FXyt" })]
115
+ }) : n ? /*#__PURE__*/ M(c, {
116
116
  className: "py-8",
117
117
  distribution: "center",
118
118
  alignment: "center",
119
119
  direction: "vertical",
120
- children: o?.message ?? c._({ id: "+Nx1wc" })
121
- }) : r.length === 0 ? /*#__PURE__*/ M(_, {
120
+ children: r?.message ?? i._({ id: "+Nx1wc" })
121
+ }) : e.length === 0 ? /*#__PURE__*/ M(m, {
122
122
  columns: d,
123
123
  className: "floating-ips",
124
124
  "data-testid": "no-floating-ips",
125
- children: /*#__PURE__*/ M(t, { children: /*#__PURE__*/ N(v, {
125
+ children: /*#__PURE__*/ M(o, { children: /*#__PURE__*/ N(_, {
126
126
  colSpan: d,
127
- children: [/*#__PURE__*/ M(g, { children: /*#__PURE__*/ M(R, { id: "WCLyHI" }) }), /*#__PURE__*/ M("p", { children: /*#__PURE__*/ M(R, { id: "0eY8Mz" }) })]
127
+ children: [/*#__PURE__*/ M(p, { children: /*#__PURE__*/ M(z, { id: "WCLyHI" }) }), /*#__PURE__*/ M("p", { children: /*#__PURE__*/ M(z, { id: "0eY8Mz" }) })]
128
128
  }) })
129
- }) : /*#__PURE__*/ N(_, {
129
+ }) : /*#__PURE__*/ N(m, {
130
130
  columns: d,
131
- children: [/*#__PURE__*/ M(t, { children: u.map((t) => /*#__PURE__*/ M(e, { children: t }, t)) }), r.map((e) => /*#__PURE__*/ M(K, { floatingIp: e }, e.id))]
131
+ children: [/*#__PURE__*/ M(o, { children: u.map((e) => /*#__PURE__*/ M(a, { children: e }, e)) }), e.map((e) => /*#__PURE__*/ M(q, { floatingIp: e }, e.id))]
132
132
  });
133
- }, J = /^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/, Y = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|(([0-9a-fA-F]{1,4}:){1,7}:)|(([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2})|(([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3})|(([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4})|(([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5})|([0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6}))|(:((:[0-9a-fA-F]{1,4}){1,7}|:))|(::([fF]{4}(:0{1,4})?:)?((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|(([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})))$/, X = (e) => J.test(e) || Y.test(e), te = /^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)*[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/, ne = ({ open: e, onClose: t }) => {
134
- let { i18n: a, _: s } = z(), c = S(), l = x.useUtils(), { isPending: p, ...g } = x.network.floatingIp.create.useMutation({ onSettled: () => l.network.floatingIp.list.invalidate() }), { data: _ = [], isLoading: v, error: y } = x.network.floatingIp.listExternalNetworks.useQuery({ project_id: c }), { data: b = [], isLoading: C, error: w } = x.network.floatingIp.listDnsDomains.useQuery({ project_id: c }), { data: T = [], isLoading: E, error: D } = x.network.floatingIp.listAvailablePorts.useQuery({ project_id: c }), O = B.object({
135
- floating_network_id: B.string(),
136
- dns_domain: B.string(),
137
- dns_name: B.string().trim().max(63, a._({ id: "Zq6Y5u" })).refine((e) => e === "" || te.test(e), { message: a._({ id: "R6kcsL" }) }),
138
- description: B.string().trim().max(255, a._({ id: "lZvIXd" })),
139
- floating_ip_address: B.string().trim().refine((e) => e === "" || X(e), { message: a._({ id: "AZyHwC" }) }),
140
- port_id: B.string(),
141
- fixed_ip_address: B.string()
142
- }), k = H({
133
+ }, Y = /^(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/, X = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|(([0-9a-fA-F]{1,4}:){1,7}:)|(([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2})|(([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3})|(([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4})|(([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5})|([0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6}))|(:((:[0-9a-fA-F]{1,4}){1,7}|:))|(::([fF]{4}(:0{1,4})?:)?((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|(([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})))$/, ee = (e) => Y.test(e) || X.test(e), te = /^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)*[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/, ne = ({ open: e, onClose: i }) => {
134
+ let { i18n: a, _: o } = B(), c = S(), l = x.useUtils(), { isPending: u, ...d } = x.network.floatingIp.create.useMutation({ onSettled: () => l.network.floatingIp.list.invalidate() }), { data: p = [], isLoading: m, error: _ } = x.network.floatingIp.listExternalNetworks.useQuery({ project_id: c }), { data: b = [], isLoading: C, error: w } = x.network.floatingIp.listDnsDomains.useQuery({ project_id: c }), { data: T = [], isLoading: E, error: D } = x.network.floatingIp.listAvailablePorts.useQuery({ project_id: c }), O = V.object({
135
+ floating_network_id: V.string(),
136
+ dns_domain: V.string(),
137
+ dns_name: V.string().trim().max(63, a._({ id: "Zq6Y5u" })).refine((e) => e === "" || te.test(e), { message: a._({ id: "R6kcsL" }) }),
138
+ description: V.string().trim().max(255, a._({ id: "lZvIXd" })),
139
+ floating_ip_address: V.string().trim().refine((e) => e === "" || ee(e), { message: a._({ id: "AZyHwC" }) }),
140
+ port_id: V.string(),
141
+ fixed_ip_address: V.string()
142
+ }), k = U({
143
143
  defaultValues: {
144
144
  floating_network_id: "",
145
145
  dns_domain: "",
@@ -151,7 +151,7 @@ var W = {
151
151
  },
152
152
  validators: { onSubmit: O },
153
153
  onSubmit: async ({ value: e }) => {
154
- p || (await g.mutateAsync({
154
+ u || (await d.mutateAsync({
155
155
  project_id: c,
156
156
  tenant_id: c,
157
157
  floating_network_id: e.floating_network_id,
@@ -164,9 +164,9 @@ var W = {
164
164
  }), A());
165
165
  }
166
166
  }), A = () => {
167
- p || (k.reset(), g.reset(), t());
168
- }, j = U(k.store, (e) => e.values.port_id), P = U(k.store, (e) => e.values.floating_network_id), F = T.find((e) => e.id === j)?.fixed_ips ?? [], I = (y?.message || w?.message || D?.message) ?? g.error?.message ?? null;
169
- return /*#__PURE__*/ N(o, {
167
+ u || (k.reset(), d.reset(), i());
168
+ }, j = W(k.store, (e) => e.values.port_id), P = W(k.store, (e) => e.values.floating_network_id), F = T.find((e) => e.id === j)?.fixed_ips ?? [], I = (_?.message || w?.message || D?.message) ?? d.error?.message ?? null;
169
+ return /*#__PURE__*/ N(r, {
170
170
  open: e,
171
171
  size: "large",
172
172
  title: a._({ id: "h99+4y" }),
@@ -174,33 +174,33 @@ var W = {
174
174
  cancelButtonLabel: a._({ id: "dEgA5A" }),
175
175
  confirmButtonLabel: a._({ id: "9X8lAk" }),
176
176
  onConfirm: k.handleSubmit,
177
- disableConfirmButton: p || !P,
177
+ disableConfirmButton: u || !P,
178
178
  children: [
179
- I && /*#__PURE__*/ M(r, {
179
+ I && /*#__PURE__*/ M(t, {
180
180
  dismissible: !1,
181
181
  variant: "error",
182
182
  className: "mb-4",
183
183
  children: I
184
184
  }),
185
- p && /*#__PURE__*/ N("div", {
185
+ u && /*#__PURE__*/ N("div", {
186
186
  className: "mb-4 flex items-center justify-center gap-2",
187
- children: [/*#__PURE__*/ M(n, { variant: "primary" }), /*#__PURE__*/ M("span", {
187
+ children: [/*#__PURE__*/ M(s, { variant: "primary" }), /*#__PURE__*/ M("span", {
188
188
  className: "text-theme-high text-sm",
189
- children: /*#__PURE__*/ M(R, { id: "HuA8iQ" })
189
+ children: /*#__PURE__*/ M(z, { id: "HuA8iQ" })
190
190
  })]
191
191
  }),
192
- !p && /*#__PURE__*/ N(d, {
192
+ !u && /*#__PURE__*/ N(y, {
193
193
  className: "mb-0",
194
194
  id: "allocate-floating-ip-form",
195
195
  onSubmit: (e) => {
196
196
  e.preventDefault(), k.handleSubmit();
197
197
  },
198
198
  children: [
199
- /*#__PURE__*/ M(m, {
199
+ /*#__PURE__*/ M(h, {
200
200
  className: "mb-4",
201
201
  children: /*#__PURE__*/ M(k.Field, {
202
202
  name: "floating_network_id",
203
- children: (e) => /*#__PURE__*/ M(h, {
203
+ children: (e) => /*#__PURE__*/ M(v, {
204
204
  id: e.name,
205
205
  name: e.name,
206
206
  value: e.state.value,
@@ -208,37 +208,37 @@ var W = {
208
208
  label: a._({ id: "kA2lMP" }),
209
209
  helptext: a._({ id: "BoIAP6" }),
210
210
  placeholder: a._({ id: "T6Gm5y" }),
211
- disabled: p || v,
211
+ disabled: u || m,
212
212
  required: !0,
213
- loading: v,
214
- children: _.map(({ id: e, name: t }) => /*#__PURE__*/ M(i, {
213
+ loading: m,
214
+ children: p.map(({ id: e, name: t }) => /*#__PURE__*/ M(n, {
215
215
  value: e,
216
216
  label: t ? `${t} (${e})` : e
217
217
  }, e))
218
218
  })
219
219
  })
220
220
  }),
221
- /*#__PURE__*/ M(m, {
221
+ /*#__PURE__*/ M(h, {
222
222
  className: "mb-4",
223
223
  children: /*#__PURE__*/ M(k.Field, {
224
224
  name: "dns_domain",
225
- children: (e) => /*#__PURE__*/ M(h, {
225
+ children: (e) => /*#__PURE__*/ M(v, {
226
226
  id: e.name,
227
227
  name: e.name,
228
228
  value: e.state.value,
229
229
  onChange: (t) => e.handleChange(typeof t == "string" ? t : ""),
230
230
  label: a._({ id: "WlpcJv" }),
231
231
  helptext: a._({ id: "1ojTVo" }),
232
- disabled: p || C,
232
+ disabled: u || C,
233
233
  loading: C,
234
- children: b.map(({ id: e, name: t }) => /*#__PURE__*/ M(i, {
234
+ children: b.map(({ id: e, name: t }) => /*#__PURE__*/ M(n, {
235
235
  value: t,
236
236
  label: t
237
237
  }, e))
238
238
  })
239
239
  })
240
240
  }),
241
- /*#__PURE__*/ M(m, {
241
+ /*#__PURE__*/ M(h, {
242
242
  className: "mb-4",
243
243
  children: /*#__PURE__*/ M(k.Field, {
244
244
  name: "dns_name",
@@ -252,15 +252,15 @@ var W = {
252
252
  placeholder: a._({ id: "SLEH7X" }),
253
253
  helptext: a._({ id: "Tx4Ym+" }),
254
254
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
255
- disabled: p
255
+ disabled: u
256
256
  })
257
257
  })
258
258
  }),
259
- /*#__PURE__*/ M(m, {
259
+ /*#__PURE__*/ M(h, {
260
260
  className: "mb-4",
261
261
  children: /*#__PURE__*/ M(k.Field, {
262
262
  name: "description",
263
- children: (e) => /*#__PURE__*/ M(u, {
263
+ children: (e) => /*#__PURE__*/ M(g, {
264
264
  id: e.name,
265
265
  name: e.name,
266
266
  value: e.state.value,
@@ -268,11 +268,11 @@ var W = {
268
268
  onChange: (t) => e.handleChange(t.target.value),
269
269
  placeholder: a._({ id: "Nu4oKW" }),
270
270
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
271
- disabled: p
271
+ disabled: u
272
272
  })
273
273
  })
274
274
  }),
275
- /*#__PURE__*/ M(m, {
275
+ /*#__PURE__*/ M(h, {
276
276
  className: "mb-4",
277
277
  children: /*#__PURE__*/ M(k.Field, {
278
278
  name: "floating_ip_address",
@@ -286,15 +286,15 @@ var W = {
286
286
  placeholder: a._({ id: "5/wyf8" }),
287
287
  helptext: a._({ id: "PAKSdy" }),
288
288
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
289
- disabled: p
289
+ disabled: u
290
290
  })
291
291
  })
292
292
  }),
293
- /*#__PURE__*/ M(m, {
293
+ /*#__PURE__*/ M(h, {
294
294
  className: "mb-4",
295
295
  children: /*#__PURE__*/ M(k.Field, {
296
296
  name: "port_id",
297
- children: (e) => /*#__PURE__*/ M(h, {
297
+ children: (e) => /*#__PURE__*/ M(v, {
298
298
  id: e.name,
299
299
  name: e.name,
300
300
  value: e.state.value,
@@ -307,18 +307,18 @@ var W = {
307
307
  label: a._({ id: "eks7oA" }),
308
308
  placeholder: a._({ id: "UztfYZ" }),
309
309
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
310
- disabled: p || E,
310
+ disabled: u || E,
311
311
  loading: E,
312
- children: T.map((e) => /*#__PURE__*/ M(i, {
312
+ children: T.map((e) => /*#__PURE__*/ M(n, {
313
313
  value: e.id,
314
314
  label: e.name ? `${e.name} (${e.id})` : e.id
315
315
  }, e.id))
316
316
  })
317
317
  })
318
318
  }),
319
- /*#__PURE__*/ M(m, { children: /*#__PURE__*/ M(k.Field, {
319
+ /*#__PURE__*/ M(h, { children: /*#__PURE__*/ M(k.Field, {
320
320
  name: "fixed_ip_address",
321
- children: (e) => /*#__PURE__*/ M(h, {
321
+ children: (e) => /*#__PURE__*/ M(v, {
322
322
  id: e.name,
323
323
  name: e.name,
324
324
  value: e.state.value,
@@ -328,8 +328,8 @@ var W = {
328
328
  placeholder: a._({ id: "i41Xuw" }),
329
329
  helptext: a._({ id: "PtjzS+" }),
330
330
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
331
- disabled: p || F.length === 0,
332
- children: F.map(({ ip_address: e }) => /*#__PURE__*/ M(i, {
331
+ disabled: u || F.length === 0,
332
+ children: F.map(({ ip_address: e }) => /*#__PURE__*/ M(n, {
333
333
  value: e,
334
334
  label: e
335
335
  }, e))
@@ -364,48 +364,48 @@ var W = {
364
364
  t.find((t) => t.filterName === e)?.supportsMultiValue && n.length > 1 ? r[e] = `in:${n.join(",")}` : r[e] = n[0];
365
365
  }), r;
366
366
  }, Q = "fixed_ip_address", $ = "asc", oe = () => {
367
- let { i18n: e, _: t } = z(), n = L(), i = ee({ strict: !1 }), a = S(), [o, c] = D(!1), [u, d] = I(i.search || ""), f = F(void 0);
368
- P(() => () => clearTimeout(f.current), []);
369
- let [p, m] = I({
367
+ let { i18n: n, _: r } = B(), i = L(), a = R({ strict: !1 }), o = S(), [s, u] = D(!1), [f, p] = I(a.search || ""), m = F(void 0);
368
+ P(() => () => clearTimeout(m.current), []);
369
+ let [h, g] = I({
370
370
  options: [
371
371
  {
372
- label: e._({ id: "Nc7QKU" }),
372
+ label: n._({ id: "Nc7QKU" }),
373
373
  value: "fixed_ip_address"
374
374
  },
375
375
  {
376
- label: e._({ id: "xNG/3n" }),
376
+ label: n._({ id: "xNG/3n" }),
377
377
  value: "floating_ip_address"
378
378
  },
379
379
  {
380
- label: e._({ id: "2cJIlz" }),
380
+ label: n._({ id: "2cJIlz" }),
381
381
  value: "floating_network_id"
382
382
  },
383
383
  {
384
- label: e._({ id: "S0kLOH" }),
384
+ label: n._({ id: "S0kLOH" }),
385
385
  value: "id"
386
386
  },
387
387
  {
388
- label: e._({ id: "/bUiYk" }),
388
+ label: n._({ id: "/bUiYk" }),
389
389
  value: "router_id"
390
390
  },
391
391
  {
392
- label: e._({ id: "uAQUqI" }),
392
+ label: n._({ id: "uAQUqI" }),
393
393
  value: "status"
394
394
  },
395
395
  {
396
- label: e._({ id: "T9Mtpi" }),
396
+ label: n._({ id: "T9Mtpi" }),
397
397
  value: "tenant_id"
398
398
  },
399
399
  {
400
- label: e._({ id: "mSfwLL" }),
400
+ label: n._({ id: "mSfwLL" }),
401
401
  value: "project_id"
402
402
  }
403
403
  ],
404
- sortBy: i.sortBy || Q,
405
- sortDirection: i.sortDirection || $
406
- }), [h, g] = I({
404
+ sortBy: a.sortBy || Q,
405
+ sortDirection: a.sortDirection || $
406
+ }), [_, v] = I({
407
407
  filters: [{
408
- displayName: e._({ id: "uAQUqI" }),
408
+ displayName: n._({ id: "uAQUqI" }),
409
409
  filterName: "status",
410
410
  values: [
411
411
  "ACTIVE",
@@ -414,26 +414,26 @@ var W = {
414
414
  ],
415
415
  supportsMultiValue: !1
416
416
  }],
417
- selectedFilters: Z(i)
418
- }), _ = i.search || "", { data: v } = x.network.canUser.useQuery({
419
- project_id: a,
417
+ selectedFilters: Z(a)
418
+ }), y = a.search || "", { data: b } = x.network.canUser.useQuery({
419
+ project_id: o,
420
420
  permission: ["network:floatingips:create"]
421
421
  }, { select: ([e]) => ({ canCreate: e }) });
422
422
  P(() => {
423
- let e = Z(i), t = i.sortBy || Q, n = i.sortDirection || $, r = i.search || "";
424
- g((t) => ({
423
+ let e = Z(a), t = a.sortBy || Q, n = a.sortDirection || $, r = a.search || "";
424
+ v((t) => ({
425
425
  ...t,
426
426
  selectedFilters: e
427
- })), m((e) => ({
427
+ })), g((e) => ({
428
428
  ...e,
429
429
  sortBy: t,
430
430
  sortDirection: n
431
- })), d(r);
431
+ })), p(r);
432
432
  }, [
433
- i.status,
434
- i.sortBy,
435
- i.sortDirection,
436
- i.search
433
+ a.status,
434
+ a.sortBy,
435
+ a.sortDirection,
436
+ a.search
437
437
  ]);
438
438
  let w = (e) => {
439
439
  let t = {
@@ -441,7 +441,7 @@ var W = {
441
441
  sortBy: e.sortBy?.toString() || Q,
442
442
  sortDirection: e.sortDirection || $
443
443
  };
444
- m(t), n({
444
+ g(t), i({
445
445
  search: (e) => ({
446
446
  ...e,
447
447
  sortBy: t.sortBy,
@@ -450,7 +450,7 @@ var W = {
450
450
  replace: !1
451
451
  });
452
452
  }, T = (e) => {
453
- g(e), n({
453
+ v(e), i({
454
454
  search: (t) => ae(e.selectedFilters || [], e.filters, {
455
455
  search: t.search,
456
456
  sortBy: t.sortBy,
@@ -459,122 +459,122 @@ var W = {
459
459
  replace: !1
460
460
  });
461
461
  }, E = (e, t = !1) => {
462
- n({
462
+ i({
463
463
  search: (t) => ({
464
464
  ...t,
465
465
  search: e || void 0
466
466
  }),
467
467
  replace: t
468
468
  });
469
- }, { data: A = [], isLoading: j, isError: B, error: V } = x.network.floatingIp.list.useQuery({
470
- project_id: a,
471
- sort_key: p.sortBy,
472
- sort_dir: p.sortDirection,
473
- ...re(h.selectedFilters || [], h.filters),
474
- ..._ ? { searchTerm: _ } : {}
469
+ }, { data: A = [], isLoading: j, isError: V, error: H } = x.network.floatingIp.list.useQuery({
470
+ project_id: o,
471
+ sort_key: h.sortBy,
472
+ sort_dir: h.sortDirection,
473
+ ...re(_.selectedFilters || [], _.filters),
474
+ ...y ? { searchTerm: y } : {}
475
475
  }, { placeholderData: (e) => e });
476
- return j && !A.length ? /*#__PURE__*/ M(s, {
476
+ return j && !A.length ? /*#__PURE__*/ M(c, {
477
477
  className: "py-8",
478
478
  distribution: "center",
479
479
  alignment: "center",
480
480
  direction: "vertical",
481
- children: /*#__PURE__*/ M(R, { id: "Z3FXyt" })
482
- }) : B && !A.length ? /*#__PURE__*/ M(s, {
481
+ children: /*#__PURE__*/ M(z, { id: "Z3FXyt" })
482
+ }) : V && !A.length ? /*#__PURE__*/ M(c, {
483
483
  className: "py-8",
484
484
  distribution: "center",
485
485
  alignment: "center",
486
486
  direction: "vertical",
487
- children: V?.message ?? e._({ id: "+Nx1wc" })
487
+ children: H?.message ?? n._({ id: "+Nx1wc" })
488
488
  }) : /*#__PURE__*/ N("div", {
489
489
  className: "relative",
490
490
  children: [
491
- B && A.length > 0 && /*#__PURE__*/ M(r, {
491
+ V && A.length > 0 && /*#__PURE__*/ M(t, {
492
492
  variant: "error",
493
493
  className: "mb-4",
494
- children: V?.message ?? e._({ id: "cL8dHR" })
494
+ children: H?.message ?? n._({ id: "cL8dHR" })
495
495
  }),
496
- /*#__PURE__*/ M(s, {
496
+ /*#__PURE__*/ M(c, {
497
497
  distribution: "end",
498
498
  alignment: "center",
499
499
  gap: "2",
500
500
  className: "pb-2",
501
- children: /*#__PURE__*/ N(s, {
501
+ children: /*#__PURE__*/ N(c, {
502
502
  gap: "2",
503
503
  children: [/*#__PURE__*/ M(C, {
504
- options: p.options,
505
- sortBy: p.sortBy,
506
- sortDirection: p.sortDirection ?? "asc",
504
+ options: h.options,
505
+ sortBy: h.sortBy,
506
+ sortDirection: h.sortDirection ?? "asc",
507
507
  selectClassName: "min-w-40",
508
508
  onSortByChange: (e) => w({
509
- ...p,
509
+ ...h,
510
510
  sortBy: e,
511
- sortDirection: p.sortDirection
511
+ sortDirection: h.sortDirection
512
512
  }),
513
513
  onSortDirectionChange: (e) => w({
514
- ...p,
514
+ ...h,
515
515
  sortDirection: e
516
516
  })
517
- }), v?.canCreate && /*#__PURE__*/ M(l, {
518
- onClick: c,
517
+ }), b?.canCreate && /*#__PURE__*/ M(l, {
518
+ onClick: u,
519
519
  variant: "primary",
520
520
  className: "whitespace-nowrap",
521
- children: /*#__PURE__*/ M(R, { id: "h99+4y" })
521
+ children: /*#__PURE__*/ M(z, { id: "h99+4y" })
522
522
  })]
523
523
  })
524
524
  }),
525
- /*#__PURE__*/ M(y, { children: /*#__PURE__*/ N(s, {
525
+ /*#__PURE__*/ M(d, { children: /*#__PURE__*/ N(c, {
526
526
  direction: "vertical",
527
527
  gap: "2",
528
- children: [/*#__PURE__*/ N(s, {
528
+ children: [/*#__PURE__*/ N(c, {
529
529
  distribution: "between",
530
530
  alignment: "center",
531
531
  children: [/*#__PURE__*/ M(k, {
532
- filters: h.filters,
532
+ filters: _.filters,
533
533
  selectClassName: "sm:min-w-40",
534
534
  comboboxClassName: "sm:min-w-40",
535
535
  onChange: (e) => {
536
- let t = ie(h.selectedFilters || [], e, h.filters);
537
- t !== (h.selectedFilters || []) && T({
538
- ...h,
536
+ let t = ie(_.selectedFilters || [], e, _.filters);
537
+ t !== (_.selectedFilters || []) && T({
538
+ ..._,
539
539
  selectedFilters: t
540
540
  });
541
541
  }
542
- }), /*#__PURE__*/ M(b, {
543
- placeholder: e._({ id: "s6lr1k" }),
542
+ }), /*#__PURE__*/ M(e, {
543
+ placeholder: n._({ id: "s6lr1k" }),
544
544
  "data-testid": "searchbar",
545
- value: u,
545
+ value: f,
546
546
  onInput: (e) => {
547
547
  let t = e.currentTarget.value;
548
- d(t), clearTimeout(f.current), f.current = window.setTimeout(() => E(t, !0), 500);
548
+ p(t), clearTimeout(m.current), m.current = window.setTimeout(() => E(t, !0), 500);
549
549
  },
550
550
  onSearch: (e) => {
551
- clearTimeout(f.current), E(typeof e == "string" ? e : "", !1);
551
+ clearTimeout(m.current), E(typeof e == "string" ? e : "", !1);
552
552
  },
553
553
  onClear: () => {
554
- clearTimeout(f.current), d(""), E("", !1);
554
+ clearTimeout(m.current), p(""), E("", !1);
555
555
  }
556
556
  })]
557
- }), h.selectedFilters && h.selectedFilters.length > 0 && /*#__PURE__*/ M(O, {
558
- selectedFilters: h.selectedFilters,
557
+ }), _.selectedFilters && _.selectedFilters.length > 0 && /*#__PURE__*/ M(O, {
558
+ selectedFilters: _.selectedFilters,
559
559
  onDelete: (e) => T({
560
- ...h,
561
- selectedFilters: (h.selectedFilters || []).filter((t) => t.name !== e.name || t.value !== e.value)
560
+ ..._,
561
+ selectedFilters: (_.selectedFilters || []).filter((t) => t.name !== e.name || t.value !== e.value)
562
562
  }),
563
563
  onClear: () => T({
564
- ...h,
564
+ ..._,
565
565
  selectedFilters: []
566
566
  })
567
567
  })]
568
568
  }) }),
569
- /*#__PURE__*/ M(q, {
569
+ /*#__PURE__*/ M(J, {
570
570
  floatingIps: A,
571
571
  isLoading: j,
572
- isError: B && !A.length,
573
- error: V
572
+ isError: V && !A.length,
573
+ error: H
574
574
  }),
575
- o && /*#__PURE__*/ M(ne, {
576
- open: o,
577
- onClose: c
575
+ s && /*#__PURE__*/ M(ne, {
576
+ open: s,
577
+ onClose: u
578
578
  })
579
579
  ]
580
580
  });
@@ -582,10 +582,10 @@ var W = {
582
582
  //#endregion
583
583
  //#region src/client/routes/_auth/projects/$projectId/network/floatingips/index.tsx?tsr-split=component
584
584
  function se() {
585
- let { i18n: e, _: t } = z();
586
- return /*#__PURE__*/ N(j, { children: [/*#__PURE__*/ M(g, { children: e._({ id: "u77/s4" }) }), /*#__PURE__*/ M(oe, {})] });
585
+ let { i18n: e, _: t } = B();
586
+ return /*#__PURE__*/ N(j, { children: [/*#__PURE__*/ M(p, { children: e._({ id: "u77/s4" }) }), /*#__PURE__*/ M(oe, {})] });
587
587
  }
588
588
  //#endregion
589
589
  export { se as component };
590
590
 
591
- //# sourceMappingURL=floatingips-ICwo-rV_.mjs.map
591
+ //# sourceMappingURL=floatingips-Ci4jHkaG.mjs.map