@cobaltcore-dev/aurora 0.2.2 → 0.3.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 (105) hide show
  1. package/dist/client/AuroraApp.d.ts +10 -0
  2. package/dist/client/{ContentHeader-DtBiIwRY.mjs → ContentHeader-B_PWrxbw.mjs} +17 -17
  3. package/dist/client/{ContentHeader-DtBiIwRY.mjs.map → ContentHeader-B_PWrxbw.mjs.map} +1 -1
  4. package/dist/client/{DeleteFlavorModal-rmuYIafD.mjs → DeleteFlavorModal-BkPrQKyE.mjs} +146 -146
  5. package/dist/client/{DeleteFlavorModal-rmuYIafD.mjs.map → DeleteFlavorModal-BkPrQKyE.mjs.map} +1 -1
  6. package/dist/client/{EditSecurityGroupModal-B7Sz9puM.mjs → EditSecurityGroupModal-ad4uzlt0.mjs} +14 -14
  7. package/dist/client/{EditSecurityGroupModal-B7Sz9puM.mjs.map → EditSecurityGroupModal-ad4uzlt0.mjs.map} +1 -1
  8. package/dist/client/{FloatingIpActionModals-CfRJiZqD.mjs → FloatingIpActionModals-lKMwLuL8.mjs} +51 -51
  9. package/dist/client/{FloatingIpActionModals-CfRJiZqD.mjs.map → FloatingIpActionModals-lKMwLuL8.mjs.map} +1 -1
  10. package/dist/client/{ImageToastNotifications-Cw30RXsw.mjs → ImageToastNotifications--U13YiQ_.mjs} +328 -328
  11. package/dist/client/{ImageToastNotifications-Cw30RXsw.mjs.map → ImageToastNotifications--U13YiQ_.mjs.map} +1 -1
  12. package/dist/client/{ListToolbar-DuazvsAu.mjs → ListToolbar-C5lzTrit.mjs} +56 -56
  13. package/dist/client/{ListToolbar-DuazvsAu.mjs.map → ListToolbar-C5lzTrit.mjs.map} +1 -1
  14. package/dist/client/{RouteError-Cyto623-.mjs → RouteError-iP1Vd6bY.mjs} +2 -2
  15. package/dist/client/{RouteError-Cyto623-.mjs.map → RouteError-iP1Vd6bY.mjs.map} +1 -1
  16. package/dist/client/{_flavorId-B-1fYadl.mjs → _flavorId-BaNXUJhA.mjs} +49 -49
  17. package/dist/client/_flavorId-BaNXUJhA.mjs.map +1 -0
  18. package/dist/client/{_flavorId-BYfIHIV_.mjs → _flavorId-CnO76tuy.mjs} +10 -10
  19. package/dist/client/_flavorId-CnO76tuy.mjs.map +1 -0
  20. package/dist/client/{_floatingIpId-IrnN-ozB.mjs → _floatingIpId-C8G20nNt.mjs} +2 -2
  21. package/dist/client/{_floatingIpId-IrnN-ozB.mjs.map → _floatingIpId-C8G20nNt.mjs.map} +1 -1
  22. package/dist/client/{_floatingIpId-FQ5P2qMV.mjs → _floatingIpId-DdKnjdIV.mjs} +36 -36
  23. package/dist/client/{_floatingIpId-FQ5P2qMV.mjs.map → _floatingIpId-DdKnjdIV.mjs.map} +1 -1
  24. package/dist/client/{_imageId-Tx_9bqEc.mjs → _imageId-DdSbxFqG.mjs} +135 -135
  25. package/dist/client/_imageId-DdSbxFqG.mjs.map +1 -0
  26. package/dist/client/{_pcaId-CFuKY82d.mjs → _pcaId-DFkYJEb5.mjs} +136 -136
  27. package/dist/client/{_pcaId-CFuKY82d.mjs.map → _pcaId-DFkYJEb5.mjs.map} +1 -1
  28. package/dist/client/{_pcaId-Bck7S7gJ.mjs → _pcaId-DX_S-3hE.mjs} +2 -2
  29. package/dist/client/{_pcaId-Bck7S7gJ.mjs.map → _pcaId-DX_S-3hE.mjs.map} +1 -1
  30. package/dist/client/{_projectId-PSpuCKO7.mjs → _projectId-DYrcZ3E3.mjs} +9 -9
  31. package/dist/client/{_projectId-PSpuCKO7.mjs.map → _projectId-DYrcZ3E3.mjs.map} +1 -1
  32. package/dist/client/{_projectId-B1VjDd0Z.mjs → _projectId-Dha4XqX4.mjs} +3 -3
  33. package/dist/client/{_projectId-B1VjDd0Z.mjs.map → _projectId-Dha4XqX4.mjs.map} +1 -1
  34. package/dist/client/_projectId-DsSVV2EA.mjs +316 -0
  35. package/dist/client/_projectId-DsSVV2EA.mjs.map +1 -0
  36. package/dist/client/{_projectId-Pxp-RXK4.mjs → _projectId-KH5si25Q.mjs} +2 -2
  37. package/dist/client/{_projectId-Pxp-RXK4.mjs.map → _projectId-KH5si25Q.mjs.map} +1 -1
  38. package/dist/client/{_securityGroupId-VV2lUcGQ.mjs → _securityGroupId-DgaSqYex.mjs} +2 -2
  39. package/dist/client/{_securityGroupId-VV2lUcGQ.mjs.map → _securityGroupId-DgaSqYex.mjs.map} +1 -1
  40. package/dist/client/{_securityGroupId-Dqi6ddw4.mjs → _securityGroupId-O7FXfx0M.mjs} +306 -306
  41. package/dist/client/{_securityGroupId-Dqi6ddw4.mjs.map → _securityGroupId-O7FXfx0M.mjs.map} +1 -1
  42. package/dist/client/{about-B2AzqxFI.mjs → about-DN8n8sN8.mjs} +8 -8
  43. package/dist/client/{about-B2AzqxFI.mjs.map → about-DN8n8sN8.mjs.map} +1 -1
  44. package/dist/client/{build-Cf7iWbpH.mjs → build-CZRvXrAL.mjs} +1047 -1042
  45. package/dist/client/{build-Cf7iWbpH.mjs.map → build-CZRvXrAL.mjs.map} +1 -1
  46. package/dist/client/{constants-CCgR6fKI.mjs → constants-akdIBeTX.mjs} +6 -6
  47. package/dist/client/{constants-CCgR6fKI.mjs.map → constants-akdIBeTX.mjs.map} +1 -1
  48. package/dist/client/{containers-BWERuY0O.mjs → containers-BE2QiLBs.mjs} +748 -748
  49. package/dist/client/{containers-BWERuY0O.mjs.map → containers-BE2QiLBs.mjs.map} +1 -1
  50. package/dist/client/containers-Cs5vOeR2.mjs.map +1 -1
  51. package/dist/client/{containers-DovytjVP.mjs → containers-DmwhE9Uz.mjs} +6 -6
  52. package/dist/client/containers-DmwhE9Uz.mjs.map +1 -0
  53. package/dist/client/flavors-BXPYAFyQ.mjs.map +1 -1
  54. package/dist/client/{flavors-CUiALHcB.mjs → flavors-CY7A6--v.mjs} +2 -2
  55. package/dist/client/{flavors-CUiALHcB.mjs.map → flavors-CY7A6--v.mjs.map} +1 -1
  56. package/dist/client/{flavors-Bovz-I2U.mjs → flavors-pEcGkCut.mjs} +150 -150
  57. package/dist/client/{flavors-Bovz-I2U.mjs.map → flavors-pEcGkCut.mjs.map} +1 -1
  58. package/dist/client/{floatingips-BrjDiY2t.mjs → floatingips-BtL4d4m-.mjs} +118 -118
  59. package/dist/client/{floatingips-BrjDiY2t.mjs.map → floatingips-BtL4d4m-.mjs.map} +1 -1
  60. package/dist/client/{images-DaaCUXMI.mjs → images-C19gCFSy.mjs} +389 -389
  61. package/dist/client/{images-DaaCUXMI.mjs.map → images-C19gCFSy.mjs.map} +1 -1
  62. package/dist/client/images-DM9I8G0p.mjs.map +1 -1
  63. package/dist/client/{images-BZP3pBqj.mjs → images-I9gQfRa7.mjs} +2 -2
  64. package/dist/client/{images-BZP3pBqj.mjs.map → images-I9gQfRa7.mjs.map} +1 -1
  65. package/dist/client/index.d.ts +2 -1
  66. package/dist/client/index.js +416 -418
  67. package/dist/client/index.js.map +1 -1
  68. package/dist/client/objects-B4yrYf_a.mjs.map +1 -1
  69. package/dist/client/{objects-D4zBka5e.mjs → objects-BrYe_RaJ.mjs} +6 -6
  70. package/dist/client/objects-BrYe_RaJ.mjs.map +1 -0
  71. package/dist/client/{objects-Cw4Vu01M.mjs → objects-DOYFFn3Y.mjs} +1013 -1013
  72. package/dist/client/{objects-Cw4Vu01M.mjs.map → objects-DOYFFn3Y.mjs.map} +1 -1
  73. package/dist/client/{overview-2J54-loz.mjs → overview-BjRSFSBh.mjs} +2 -2
  74. package/dist/client/{overview-2J54-loz.mjs.map → overview-BjRSFSBh.mjs.map} +1 -1
  75. package/dist/client/{overview-BnmukbFh.mjs → overview-C4gjtc2q.mjs} +7 -7
  76. package/dist/client/{overview-BnmukbFh.mjs.map → overview-C4gjtc2q.mjs.map} +1 -1
  77. package/dist/client/{overview-D0AAvsmL.mjs → overview-CmQkJ4Hh.mjs} +2 -2
  78. package/dist/client/{overview-D0AAvsmL.mjs.map → overview-CmQkJ4Hh.mjs.map} +1 -1
  79. package/dist/client/{overview-BtIXpYBo.mjs → overview-DTLIAKkJ.mjs} +2 -2
  80. package/dist/client/{overview-BtIXpYBo.mjs.map → overview-DTLIAKkJ.mjs.map} +1 -1
  81. package/dist/client/{pca-V2aaOxZA.mjs → pca-CYFJxSZ2.mjs} +70 -70
  82. package/dist/client/{pca-V2aaOxZA.mjs.map → pca-CYFJxSZ2.mjs.map} +1 -1
  83. package/dist/client/{pca-BqZycwCu.mjs → pca-DzixU9Dl.mjs} +2 -2
  84. package/dist/client/{pca-BqZycwCu.mjs.map → pca-DzixU9Dl.mjs.map} +1 -1
  85. package/dist/client/projects-BsN4bvU2.mjs.map +1 -1
  86. package/dist/client/{projects-0feOw_b6.mjs → projects-BtyjXGq2.mjs} +2 -2
  87. package/dist/client/projects-BtyjXGq2.mjs.map +1 -0
  88. package/dist/client/projects-D3hOC1cy.mjs +95 -0
  89. package/dist/client/projects-D3hOC1cy.mjs.map +1 -0
  90. package/dist/client/{projects-jyIHL6DE.mjs → projects-DwVawmll.mjs} +2 -2
  91. package/dist/client/projects-DwVawmll.mjs.map +1 -0
  92. package/dist/client/{securitygroups-B4MkSBtI.mjs → securitygroups-DMCIDHQS.mjs} +114 -114
  93. package/dist/client/{securitygroups-B4MkSBtI.mjs.map → securitygroups-DMCIDHQS.mjs.map} +1 -1
  94. package/package.json +3 -3
  95. package/dist/client/_flavorId-B-1fYadl.mjs.map +0 -1
  96. package/dist/client/_flavorId-BYfIHIV_.mjs.map +0 -1
  97. package/dist/client/_imageId-Tx_9bqEc.mjs.map +0 -1
  98. package/dist/client/_projectId-Bs4W9hos.mjs +0 -283
  99. package/dist/client/_projectId-Bs4W9hos.mjs.map +0 -1
  100. package/dist/client/containers-DovytjVP.mjs.map +0 -1
  101. package/dist/client/objects-D4zBka5e.mjs.map +0 -1
  102. package/dist/client/projects-0feOw_b6.mjs.map +0 -1
  103. package/dist/client/projects-C1IYOvFQ.mjs +0 -144
  104. package/dist/client/projects-C1IYOvFQ.mjs.map +0 -1
  105. package/dist/client/projects-jyIHL6DE.mjs.map +0 -1
@@ -1,11 +1,11 @@
1
- import { $ as e, A as t, K as n, N as r, O as i, T as a, U as o, V as s, W as c, Y as l, c as u, f as d, i as f, it as p, l as m, r as h, rt as g, w as _, z as v } from "./build-Cf7iWbpH.mjs";
1
+ import { $ as e, A as t, F as n, H as r, J as i, K as a, T as o, W as s, Z as c, at as l, c as u, d, it as f, j as p, n as m, r as h, s as g, tt as _, w as v } from "./build-CZRvXrAL.mjs";
2
2
  import { r as y } from "./trpcClient-BxguzNYF.mjs";
3
3
  import { c as b, n as x, p as S } from "./md-BivyCkGC.mjs";
4
4
  import { t as C } from "./useModal-DxxlilRm.mjs";
5
- import { t as w } from "./ListToolbar-DuazvsAu.mjs";
5
+ import { t as w } from "./ListToolbar-C5lzTrit.mjs";
6
6
  import { t as T } from "./useProjectId-CgOTejka.mjs";
7
7
  import "./hooks-D0krAKvo.mjs";
8
- import { t as E } from "./FloatingIpActionModals-CfRJiZqD.mjs";
8
+ import { t as E } from "./FloatingIpActionModals-lKMwLuL8.mjs";
9
9
  import { t as D } from "./buildFilterParams-ngVK3ybs.mjs";
10
10
  import { t as O } from "./useListWithFiltering-CEDh1LO-.mjs";
11
11
  import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
@@ -47,91 +47,91 @@ var z = {
47
47
  I._({ id: "7NC3vm" }),
48
48
  I._({ id: "Nu4oKW" }),
49
49
  ""
50
- ], V = ({ floatingIp: e }) => {
51
- let { i18n: n, _: i } = P(), o = M(), s = T(), u = () => {
52
- o({
50
+ ], V = ({ floatingIp: t }) => {
51
+ let { i18n: r, _: a } = P(), s = M(), c = T(), l = () => {
52
+ s({
53
53
  to: "/projects/$projectId/network/floatingips/$floatingIpId",
54
54
  params: {
55
- projectId: s,
56
- floatingIpId: e.id
55
+ projectId: c,
56
+ floatingIpId: t.id
57
57
  }
58
58
  });
59
59
  };
60
- return /* @__PURE__ */ j(r, {
61
- "data-testid": `floating-ip-row-${e.id}`,
62
- onClick: u,
60
+ return /* @__PURE__ */ j(n, {
61
+ "data-testid": `floating-ip-row-${t.id}`,
62
+ onClick: l,
63
63
  children: [
64
- /* @__PURE__ */ A(t, { children: /* @__PURE__ */ j("div", {
64
+ /* @__PURE__ */ A(p, { children: /* @__PURE__ */ j("div", {
65
65
  className: "flex items-center gap-2",
66
- children: [z[e.status].icon, z[e.status].text]
66
+ children: [z[t.status].icon, z[t.status].text]
67
67
  }) }),
68
- /* @__PURE__ */ A(t, { children: e.floating_ip_address }),
69
- /* @__PURE__ */ A(t, { children: e.fixed_ip_address || "—" }),
70
- /* @__PURE__ */ A(t, { children: e.floating_network_id }),
71
- /* @__PURE__ */ A(t, { children: e.description || "—" }),
72
- /* @__PURE__ */ A(t, {
68
+ /* @__PURE__ */ A(p, { children: t.floating_ip_address }),
69
+ /* @__PURE__ */ A(p, { children: t.fixed_ip_address || "—" }),
70
+ /* @__PURE__ */ A(p, { children: t.floating_network_id }),
71
+ /* @__PURE__ */ A(p, { children: t.description || "—" }),
72
+ /* @__PURE__ */ A(p, {
73
73
  onClick: (e) => e.stopPropagation(),
74
74
  className: "items-end pr-0",
75
75
  children: /* @__PURE__ */ A(E, {
76
- floatingIp: e,
77
- children: ({ toggleEditModal: e, toggleAttachModal: t, toggleDetachModal: r, toggleReleaseModal: i }) => /* @__PURE__ */ A(l, { children: /* @__PURE__ */ j(a, { children: [
78
- /* @__PURE__ */ A(c, {
79
- label: n._({ id: "rdUucN" }),
80
- onClick: u
76
+ floatingIp: t,
77
+ children: ({ toggleEditModal: t, toggleAttachModal: n, toggleDetachModal: a, toggleReleaseModal: s }) => /* @__PURE__ */ A(e, { children: /* @__PURE__ */ j(o, { children: [
78
+ /* @__PURE__ */ A(i, {
79
+ label: r._({ id: "rdUucN" }),
80
+ onClick: l
81
81
  }),
82
- /* @__PURE__ */ A(c, {
83
- label: n._({ id: "n22YIM" }),
84
- onClick: e
85
- }),
86
- /* @__PURE__ */ A(c, {
87
- label: n._({ id: "igVDFt" }),
82
+ /* @__PURE__ */ A(i, {
83
+ label: r._({ id: "n22YIM" }),
88
84
  onClick: t
89
85
  }),
90
- /* @__PURE__ */ A(c, {
91
- label: n._({ id: "FOcBn3" }),
92
- onClick: r
86
+ /* @__PURE__ */ A(i, {
87
+ label: r._({ id: "igVDFt" }),
88
+ onClick: n
89
+ }),
90
+ /* @__PURE__ */ A(i, {
91
+ label: r._({ id: "FOcBn3" }),
92
+ onClick: a
93
93
  }),
94
- /* @__PURE__ */ A(c, {
95
- label: n._({ id: "H+a5j6" }),
96
- onClick: i
94
+ /* @__PURE__ */ A(i, {
95
+ label: r._({ id: "H+a5j6" }),
96
+ onClick: s
97
97
  })
98
98
  ] }) })
99
99
  })
100
100
  })
101
101
  ]
102
- }, e.id);
103
- }, H = ({ floatingIps: a, isLoading: o, isError: c, error: l }) => {
104
- let { i18n: u, _: d } = P(), f = B();
105
- return o ? /* @__PURE__ */ j(e, {
102
+ }, t.id);
103
+ }, H = ({ floatingIps: e, isLoading: i, isError: a, error: o }) => {
104
+ let { i18n: l, _: u } = P(), d = B();
105
+ return i ? /* @__PURE__ */ j(_, {
106
106
  className: "py-8",
107
107
  distribution: "center",
108
108
  alignment: "center",
109
109
  direction: "vertical",
110
- children: [/* @__PURE__ */ A(n, {
110
+ children: [/* @__PURE__ */ A(c, {
111
111
  variant: "primary",
112
112
  size: "large",
113
113
  className: "mb-2"
114
114
  }), /* @__PURE__ */ A(N, { id: "Z3FXyt" })]
115
- }) : c ? /* @__PURE__ */ A(e, {
115
+ }) : a ? /* @__PURE__ */ A(_, {
116
116
  className: "py-8",
117
117
  distribution: "center",
118
118
  alignment: "center",
119
119
  direction: "vertical",
120
- children: l?.message ?? u._({ id: "+Nx1wc" })
121
- }) : a.length === 0 ? /* @__PURE__ */ A(v, {
122
- columns: f.length,
120
+ children: o?.message ?? l._({ id: "+Nx1wc" })
121
+ }) : e.length === 0 ? /* @__PURE__ */ A(r, {
122
+ columns: d.length,
123
123
  className: "floating-ips",
124
124
  "data-testid": "no-floating-ips",
125
- children: /* @__PURE__ */ A(r, { children: /* @__PURE__ */ j(t, {
126
- colSpan: f.length,
127
- children: [/* @__PURE__ */ A(i, { children: /* @__PURE__ */ A(N, { id: "WCLyHI" }) }), /* @__PURE__ */ A("p", { children: /* @__PURE__ */ A(N, { id: "0eY8Mz" }) })]
125
+ children: /* @__PURE__ */ A(n, { children: /* @__PURE__ */ j(p, {
126
+ colSpan: d.length,
127
+ children: [/* @__PURE__ */ A(t, { children: /* @__PURE__ */ A(N, { id: "WCLyHI" }) }), /* @__PURE__ */ A("p", { children: /* @__PURE__ */ A(N, { id: "0eY8Mz" }) })]
128
128
  }) })
129
- }) : /* @__PURE__ */ j(v, {
130
- columns: f.length,
131
- children: [/* @__PURE__ */ A(r, { children: f.map((e) => /* @__PURE__ */ A(s, { children: e }, e)) }), a.map((e) => /* @__PURE__ */ A(V, { floatingIp: e }, e.id))]
129
+ }) : /* @__PURE__ */ j(r, {
130
+ columns: d.length,
131
+ children: [/* @__PURE__ */ A(n, { children: d.map((e) => /* @__PURE__ */ A(s, { children: e }, e)) }), e.map((e) => /* @__PURE__ */ A(V, { floatingIp: e }, e.id))]
132
132
  });
133
133
  }, U = /^(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}$/, W = /^(([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})))$/, G = (e) => U.test(e) || W.test(e), K = /^([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])?$/, q = ({ open: e, onClose: t }) => {
134
- let { i18n: r, _: i } = P(), a = T(), s = y.useUtils(), { isPending: c, ...l } = y.network.floatingIp.create.useMutation({ onSettled: () => s.network.floatingIp.list.invalidate() }), { data: m = [], isLoading: v, error: b } = y.network.floatingIp.listExternalNetworks.useQuery({ project_id: a }), { data: x = [], isLoading: S, error: C } = y.network.floatingIp.listDnsDomains.useQuery({ project_id: a }), { data: w = [], isLoading: E, error: D } = y.network.floatingIp.listAvailablePorts.useQuery({ project_id: a }), O = L({
134
+ let { i18n: n, _: r } = P(), i = T(), o = y.useUtils(), { isPending: s, ...u } = y.network.floatingIp.create.useMutation({ onSettled: () => o.network.floatingIp.list.invalidate() }), { data: p = [], isLoading: _, error: b } = y.network.floatingIp.listExternalNetworks.useQuery({ project_id: i }), { data: x = [], isLoading: S, error: C } = y.network.floatingIp.listDnsDomains.useQuery({ project_id: i }), { data: w = [], isLoading: E, error: D } = y.network.floatingIp.listAvailablePorts.useQuery({ project_id: i }), O = L({
135
135
  defaultValues: {
136
136
  floating_network_id: "",
137
137
  dns_domain: "",
@@ -144,16 +144,16 @@ var z = {
144
144
  validators: { onSubmit: F.object({
145
145
  floating_network_id: F.string(),
146
146
  dns_domain: F.string(),
147
- dns_name: F.string().trim().max(63, r._({ id: "Zq6Y5u" })).refine((e) => e === "" || K.test(e), { message: r._({ id: "R6kcsL" }) }),
148
- description: F.string().trim().max(255, r._({ id: "lZvIXd" })),
149
- floating_ip_address: F.string().trim().refine((e) => e === "" || G(e), { message: r._({ id: "AZyHwC" }) }),
147
+ dns_name: F.string().trim().max(63, n._({ id: "Zq6Y5u" })).refine((e) => e === "" || K.test(e), { message: n._({ id: "R6kcsL" }) }),
148
+ description: F.string().trim().max(255, n._({ id: "lZvIXd" })),
149
+ floating_ip_address: F.string().trim().refine((e) => e === "" || G(e), { message: n._({ id: "AZyHwC" }) }),
150
150
  port_id: F.string(),
151
151
  fixed_ip_address: F.string()
152
152
  }) },
153
153
  onSubmit: async ({ value: e }) => {
154
- c || (await l.mutateAsync({
155
- project_id: a,
156
- tenant_id: a,
154
+ s || (await u.mutateAsync({
155
+ project_id: i,
156
+ tenant_id: i,
157
157
  floating_network_id: e.floating_network_id,
158
158
  ...e.dns_domain && { dns_domain: e.dns_domain },
159
159
  ...e.dns_name && { dns_name: e.dns_name },
@@ -164,72 +164,72 @@ var z = {
164
164
  }), k());
165
165
  }
166
166
  }), k = () => {
167
- c || (O.reset(), l.reset(), t());
168
- }, M = R(O.store, (e) => e.values.port_id), I = R(O.store, (e) => e.values.floating_network_id), z = w.find((e) => e.id === M)?.fixed_ips ?? [], B = (b?.message || C?.message || D?.message) ?? l.error?.message ?? null;
169
- return /* @__PURE__ */ j(p, {
167
+ s || (O.reset(), u.reset(), t());
168
+ }, M = R(O.store, (e) => e.values.port_id), I = R(O.store, (e) => e.values.floating_network_id), z = w.find((e) => e.id === M)?.fixed_ips ?? [], B = (b?.message || C?.message || D?.message) ?? u.error?.message ?? null;
169
+ return /* @__PURE__ */ j(l, {
170
170
  open: e,
171
171
  size: "large",
172
- title: r._({ id: "h99+4y" }),
172
+ title: n._({ id: "h99+4y" }),
173
173
  onCancel: k,
174
- cancelButtonLabel: r._({ id: "dEgA5A" }),
175
- confirmButtonLabel: r._({ id: "9X8lAk" }),
174
+ cancelButtonLabel: n._({ id: "dEgA5A" }),
175
+ confirmButtonLabel: n._({ id: "9X8lAk" }),
176
176
  onConfirm: O.handleSubmit,
177
- disableConfirmButton: c || !I,
177
+ disableConfirmButton: s || !I,
178
178
  children: [
179
- B && /* @__PURE__ */ A(o, {
179
+ B && /* @__PURE__ */ A(a, {
180
180
  dismissible: !1,
181
181
  variant: "error",
182
182
  className: "mb-4",
183
183
  children: B
184
184
  }),
185
- c && /* @__PURE__ */ j("div", {
185
+ s && /* @__PURE__ */ j("div", {
186
186
  className: "mb-4 flex items-center justify-center gap-2",
187
- children: [/* @__PURE__ */ A(n, { variant: "primary" }), /* @__PURE__ */ A("span", {
187
+ children: [/* @__PURE__ */ A(c, { variant: "primary" }), /* @__PURE__ */ A("span", {
188
188
  className: "text-theme-high text-sm",
189
189
  children: /* @__PURE__ */ A(N, { id: "HuA8iQ" })
190
190
  })]
191
191
  }),
192
- !c && /* @__PURE__ */ j(g, {
192
+ !s && /* @__PURE__ */ j(f, {
193
193
  className: "mb-0",
194
194
  id: "allocate-floating-ip-form",
195
195
  onSubmit: (e) => {
196
196
  e.preventDefault(), O.handleSubmit();
197
197
  },
198
198
  children: [
199
- /* @__PURE__ */ A(h, {
199
+ /* @__PURE__ */ A(m, {
200
200
  className: "mb-4",
201
201
  children: /* @__PURE__ */ A(O.Field, {
202
202
  name: "floating_network_id",
203
- children: (e) => /* @__PURE__ */ A(f, {
203
+ children: (e) => /* @__PURE__ */ A(h, {
204
204
  id: e.name,
205
205
  name: e.name,
206
206
  value: e.state.value,
207
207
  onChange: (t) => e.handleChange(typeof t == "string" ? t : ""),
208
- label: r._({ id: "kA2lMP" }),
209
- helptext: r._({ id: "BoIAP6" }),
210
- placeholder: r._({ id: "T6Gm5y" }),
211
- disabled: c || v,
208
+ label: n._({ id: "kA2lMP" }),
209
+ helptext: n._({ id: "BoIAP6" }),
210
+ placeholder: n._({ id: "T6Gm5y" }),
211
+ disabled: s || _,
212
212
  required: !0,
213
- loading: v,
214
- children: m.map(({ id: e, name: t }) => /* @__PURE__ */ A(d, {
213
+ loading: _,
214
+ children: p.map(({ id: e, name: t }) => /* @__PURE__ */ A(d, {
215
215
  value: e,
216
216
  label: t ? `${t} (${e})` : e
217
217
  }, e))
218
218
  })
219
219
  })
220
220
  }),
221
- /* @__PURE__ */ A(h, {
221
+ /* @__PURE__ */ A(m, {
222
222
  className: "mb-4",
223
223
  children: /* @__PURE__ */ A(O.Field, {
224
224
  name: "dns_domain",
225
- children: (e) => /* @__PURE__ */ A(f, {
225
+ children: (e) => /* @__PURE__ */ A(h, {
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
- label: r._({ id: "WlpcJv" }),
231
- helptext: r._({ id: "1ojTVo" }),
232
- disabled: c || S,
230
+ label: n._({ id: "WlpcJv" }),
231
+ helptext: n._({ id: "1ojTVo" }),
232
+ disabled: s || S,
233
233
  loading: S,
234
234
  children: x.map(({ id: e, name: t }) => /* @__PURE__ */ A(d, {
235
235
  value: t,
@@ -238,63 +238,63 @@ var z = {
238
238
  })
239
239
  })
240
240
  }),
241
- /* @__PURE__ */ A(h, {
241
+ /* @__PURE__ */ A(m, {
242
242
  className: "mb-4",
243
243
  children: /* @__PURE__ */ A(O.Field, {
244
244
  name: "dns_name",
245
- children: (e) => /* @__PURE__ */ A(_, {
245
+ children: (e) => /* @__PURE__ */ A(v, {
246
246
  id: e.name,
247
247
  name: e.name,
248
248
  value: e.state.value,
249
249
  onBlur: e.handleBlur,
250
250
  onChange: (t) => e.handleChange(t.target.value),
251
- label: r._({ id: "eGEHJE" }),
252
- placeholder: r._({ id: "SLEH7X" }),
253
- helptext: r._({ id: "Tx4Ym+" }),
251
+ label: n._({ id: "eGEHJE" }),
252
+ placeholder: n._({ id: "SLEH7X" }),
253
+ helptext: n._({ id: "Tx4Ym+" }),
254
254
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
255
- disabled: c
255
+ disabled: s
256
256
  })
257
257
  })
258
258
  }),
259
- /* @__PURE__ */ A(h, {
259
+ /* @__PURE__ */ A(m, {
260
260
  className: "mb-4",
261
261
  children: /* @__PURE__ */ A(O.Field, {
262
262
  name: "description",
263
- children: (e) => /* @__PURE__ */ A(u, {
263
+ children: (e) => /* @__PURE__ */ A(g, {
264
264
  id: e.name,
265
265
  name: e.name,
266
266
  value: e.state.value,
267
267
  onBlur: e.handleBlur,
268
268
  onChange: (t) => e.handleChange(t.target.value),
269
- placeholder: r._({ id: "Nu4oKW" }),
269
+ placeholder: n._({ id: "Nu4oKW" }),
270
270
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
271
- disabled: c
271
+ disabled: s
272
272
  })
273
273
  })
274
274
  }),
275
- /* @__PURE__ */ A(h, {
275
+ /* @__PURE__ */ A(m, {
276
276
  className: "mb-4",
277
277
  children: /* @__PURE__ */ A(O.Field, {
278
278
  name: "floating_ip_address",
279
- children: (e) => /* @__PURE__ */ A(_, {
279
+ children: (e) => /* @__PURE__ */ A(v, {
280
280
  id: e.name,
281
281
  name: e.name,
282
282
  value: e.state.value,
283
283
  onBlur: e.handleBlur,
284
284
  onChange: (t) => e.handleChange(t.target.value),
285
- label: r._({ id: "xNG/3n" }),
286
- placeholder: r._({ id: "5/wyf8" }),
287
- helptext: r._({ id: "PAKSdy" }),
285
+ label: n._({ id: "xNG/3n" }),
286
+ placeholder: n._({ id: "5/wyf8" }),
287
+ helptext: n._({ id: "PAKSdy" }),
288
288
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
289
- disabled: c
289
+ disabled: s
290
290
  })
291
291
  })
292
292
  }),
293
- /* @__PURE__ */ A(h, {
293
+ /* @__PURE__ */ A(m, {
294
294
  className: "mb-4",
295
295
  children: /* @__PURE__ */ A(O.Field, {
296
296
  name: "port_id",
297
- children: (e) => /* @__PURE__ */ A(f, {
297
+ children: (e) => /* @__PURE__ */ A(h, {
298
298
  id: e.name,
299
299
  name: e.name,
300
300
  value: e.state.value,
@@ -304,10 +304,10 @@ var z = {
304
304
  let r = w.find((e) => e.id === n)?.fixed_ips ?? [];
305
305
  O.setFieldValue("fixed_ip_address", r.length === 1 ? r[0].ip_address : "");
306
306
  },
307
- label: r._({ id: "eks7oA" }),
308
- placeholder: r._({ id: "UztfYZ" }),
307
+ label: n._({ id: "eks7oA" }),
308
+ placeholder: n._({ id: "UztfYZ" }),
309
309
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
310
- disabled: c || E,
310
+ disabled: s || E,
311
311
  loading: E,
312
312
  children: w.map((e) => /* @__PURE__ */ A(d, {
313
313
  value: e.id,
@@ -316,19 +316,19 @@ var z = {
316
316
  })
317
317
  })
318
318
  }),
319
- /* @__PURE__ */ A(h, { children: /* @__PURE__ */ A(O.Field, {
319
+ /* @__PURE__ */ A(m, { children: /* @__PURE__ */ A(O.Field, {
320
320
  name: "fixed_ip_address",
321
- children: (e) => /* @__PURE__ */ A(f, {
321
+ children: (e) => /* @__PURE__ */ A(h, {
322
322
  id: e.name,
323
323
  name: e.name,
324
324
  value: e.state.value,
325
325
  onBlur: e.handleBlur,
326
326
  onChange: (t) => e.handleChange(typeof t == "string" ? t : ""),
327
- label: r._({ id: "Nc7QKU" }),
328
- placeholder: r._({ id: "i41Xuw" }),
329
- helptext: r._({ id: "PtjzS+" }),
327
+ label: n._({ id: "Nc7QKU" }),
328
+ placeholder: n._({ id: "i41Xuw" }),
329
+ helptext: n._({ id: "PtjzS+" }),
330
330
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
331
- disabled: c || z.length === 0,
331
+ disabled: s || z.length === 0,
332
332
  children: z.map(({ ip_address: e }) => /* @__PURE__ */ A(d, {
333
333
  value: e,
334
334
  label: e
@@ -340,7 +340,7 @@ var z = {
340
340
  ]
341
341
  });
342
342
  }, J = "fixed_ip_address", Y = "asc", X = () => {
343
- let { i18n: e, _: t } = P(), n = T(), [r, i] = C(!1), { searchTerm: a, handleSearchChange: o, sortSettings: s, handleSortChange: c, filterSettings: l, handleFilterChange: u } = O({
343
+ let { i18n: e, _: t } = P(), n = T(), [r, i] = C(!1), { searchTerm: a, handleSearchChange: o, sortSettings: s, handleSortChange: c, filterSettings: l, handleFilterChange: d } = O({
344
344
  defaultSortKey: J,
345
345
  defaultSortDir: Y,
346
346
  sortOptions: [
@@ -387,7 +387,7 @@ var z = {
387
387
  ],
388
388
  supportsMultiValue: !1
389
389
  }] }
390
- }), { data: d = [], isLoading: f, isError: p, error: h } = y.network.floatingIp.list.useQuery({
390
+ }), { data: f = [], isLoading: p, isError: m, error: h } = y.network.floatingIp.list.useQuery({
391
391
  project_id: n,
392
392
  sort_key: s.sortBy,
393
393
  sort_dir: s.sortDirection,
@@ -403,17 +403,17 @@ var z = {
403
403
  sortSettings: s,
404
404
  onSort: c,
405
405
  filterSettings: l,
406
- onFilter: u,
407
- actions: /* @__PURE__ */ A(m, {
406
+ onFilter: d,
407
+ actions: /* @__PURE__ */ A(u, {
408
408
  variant: "primary",
409
409
  label: e._({ id: "h99+4y" }),
410
410
  onClick: i
411
411
  })
412
412
  }),
413
413
  /* @__PURE__ */ A(H, {
414
- floatingIps: d,
415
- isLoading: f,
416
- isError: p,
414
+ floatingIps: f,
415
+ isLoading: p,
416
+ isError: m,
417
417
  error: h
418
418
  }),
419
419
  r && /* @__PURE__ */ A(q, {
@@ -426,10 +426,10 @@ var z = {
426
426
  //#endregion
427
427
  //#region src/client/routes/_auth/projects/$projectId/network/floatingips/index.tsx?tsr-split=component
428
428
  function Z() {
429
- let { i18n: e, _: t } = P();
430
- return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(i, { children: e._({ id: "u77/s4" }) }), /* @__PURE__ */ A(X, {})] });
429
+ let { i18n: e, _: n } = P();
430
+ return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(t, { children: e._({ id: "u77/s4" }) }), /* @__PURE__ */ A(X, {})] });
431
431
  }
432
432
  //#endregion
433
433
  export { Z as component };
434
434
 
435
- //# sourceMappingURL=floatingips-BrjDiY2t.mjs.map
435
+ //# sourceMappingURL=floatingips-BtL4d4m-.mjs.map