@cobaltcore-dev/aurora 0.9.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 (127) 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-CsBJzXoW.mjs +331 -0
  10. package/dist/client/DeleteVersionsModal-CsBJzXoW.mjs.map +1 -0
  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-VK7IYqQv.mjs → SortInput-D0Vb864D.mjs} +9 -9
  22. package/dist/client/SortInput-D0Vb864D.mjs.map +1 -0
  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-BwTvJJgh.mjs → _pcaId-B3PqECyO.mjs} +115 -115
  36. package/dist/client/{_pcaId-BwTvJJgh.mjs.map → _pcaId-B3PqECyO.mjs.map} +1 -1
  37. package/dist/client/{_pcaId-DUHQd0rB.mjs → _pcaId-DAJEt3ZI.mjs} +2 -2
  38. package/dist/client/{_pcaId-DUHQd0rB.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-DR_2U10f.mjs → _projectId-BnWXWTBR.mjs} +3 -3
  42. package/dist/client/_projectId-BnWXWTBR.mjs.map +1 -0
  43. package/dist/client/{_projectId-BaqZ4W50.mjs → _projectId-DRr9rLST.mjs} +103 -109
  44. package/dist/client/_projectId-DRr9rLST.mjs.map +1 -0
  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-fhK1CuZh.mjs → _securityGroupId-Cj9IotMJ.mjs} +2 -2
  48. package/dist/client/{_securityGroupId-fhK1CuZh.mjs.map → _securityGroupId-Cj9IotMJ.mjs.map} +1 -1
  49. package/dist/client/{_securityGroupId-DYxmXUOP.mjs → _securityGroupId-ClJiFh4R.mjs} +267 -267
  50. package/dist/client/{_securityGroupId-DYxmXUOP.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-D7-_Xwwl.mjs → _storageType-CSLH93js.mjs} +2 -2
  54. package/dist/client/{_storageType-D7-_Xwwl.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-J5nm9hbP.mjs → constants-BskfpGYY.mjs} +17 -17
  63. package/dist/client/{constants-J5nm9hbP.mjs.map → constants-BskfpGYY.mjs.map} +1 -1
  64. package/dist/client/{flavors-C-gY4XeQ.mjs → flavors-DAbtRoep.mjs} +151 -151
  65. package/dist/client/{flavors-C-gY4XeQ.mjs.map → flavors-DAbtRoep.mjs.map} +1 -1
  66. package/dist/client/{flavors-Dwy1ID_f.mjs → flavors-DODudzrA.mjs} +2 -2
  67. package/dist/client/{flavors-Dwy1ID_f.mjs.map → flavors-DODudzrA.mjs.map} +1 -1
  68. package/dist/client/flavors-DWMZ6TuJ.mjs.map +1 -1
  69. package/dist/client/{floatingips-Dq4DXQYb.mjs → floatingips-DJW9ftN_.mjs} +84 -84
  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-bG-MZZ7V.mjs → images-BbLnuYrL.mjs} +2 -2
  73. package/dist/client/{images-bG-MZZ7V.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-HG7TneK0.mjs → images-Cp6V1nF5.mjs} +455 -455
  77. package/dist/client/{images-HG7TneK0.mjs.map → images-Cp6V1nF5.mjs.map} +1 -1
  78. package/dist/client/images-NBf2bV43.mjs.map +1 -1
  79. package/dist/client/index.js +270 -266
  80. package/dist/client/index.js.map +1 -1
  81. package/dist/client/{md-CYTrL5dq.mjs → md-CyCflQee.mjs} +10 -28
  82. package/dist/client/{md-CYTrL5dq.mjs.map → md-CyCflQee.mjs.map} +1 -1
  83. package/dist/client/network-DuZm76BZ.mjs.map +1 -1
  84. package/dist/client/{objects-DKWp9RtR.mjs → objects-Bw96WXOs.mjs} +4 -3
  85. package/dist/client/objects-Bw96WXOs.mjs.map +1 -0
  86. package/dist/client/objects-DUmK3WgA.mjs +5998 -0
  87. package/dist/client/objects-DUmK3WgA.mjs.map +1 -0
  88. package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -1
  89. package/dist/client/{pca-D7DF_BZZ.mjs → pca-DKeGzbww.mjs} +2 -2
  90. package/dist/client/{pca-D7DF_BZZ.mjs.map → pca-DKeGzbww.mjs.map} +1 -1
  91. package/dist/client/{pca-BBxPCAH0.mjs → pca-Dc_tdh4-.mjs} +47 -47
  92. package/dist/client/{pca-BBxPCAH0.mjs.map → pca-Dc_tdh4-.mjs.map} +1 -1
  93. package/dist/client/{projects-DNd3UTas.mjs → projects-CRL37ftA.mjs} +16 -16
  94. package/dist/client/{projects-DNd3UTas.mjs.map → projects-CRL37ftA.mjs.map} +1 -1
  95. package/dist/client/{projects-B5topuei.mjs → projects-DUWOgB3m.mjs} +2 -2
  96. package/dist/client/{projects-B5topuei.mjs.map → projects-DUWOgB3m.mjs.map} +1 -1
  97. package/dist/client/{projects-CHYn7L5e.mjs → projects-DpXQYfKc.mjs} +2 -2
  98. package/dist/client/projects-DpXQYfKc.mjs.map +1 -0
  99. package/dist/client/{securitygroups-CNFLu9zS.mjs → securitygroups-CWWFSjjj.mjs} +94 -94
  100. package/dist/client/securitygroups-CWWFSjjj.mjs.map +1 -0
  101. package/dist/client/{useListWithFiltering-v2A0-SZb.mjs → useListWithFiltering-C9k7xWqz.mjs} +7 -7
  102. package/dist/client/{useListWithFiltering-v2A0-SZb.mjs.map → useListWithFiltering-C9k7xWqz.mjs.map} +1 -1
  103. package/dist/server/index.js +979 -454
  104. package/package.json +3 -3
  105. package/dist/client/AuthProvider-Co4d0WzB.mjs +0 -100
  106. package/dist/client/AuthProvider-Co4d0WzB.mjs.map +0 -1
  107. package/dist/client/ContentHeader-D4jlOG-9.mjs +0 -96
  108. package/dist/client/ContentHeader-D4jlOG-9.mjs.map +0 -1
  109. package/dist/client/SortInput-VK7IYqQv.mjs.map +0 -1
  110. package/dist/client/_auth-DXJkv9QO.mjs.map +0 -1
  111. package/dist/client/_imageId-BjfhqAje.mjs +0 -534
  112. package/dist/client/_imageId-BjfhqAje.mjs.map +0 -1
  113. package/dist/client/_projectId-B_2sZKk-.mjs.map +0 -1
  114. package/dist/client/_projectId-BaqZ4W50.mjs.map +0 -1
  115. package/dist/client/_projectId-CARHuZTU.mjs.map +0 -1
  116. package/dist/client/_projectId-DR_2U10f.mjs.map +0 -1
  117. package/dist/client/_storageType-B0eJODiQ.mjs +0 -3244
  118. package/dist/client/_storageType-B0eJODiQ.mjs.map +0 -1
  119. package/dist/client/about-Nsxkyh9U.mjs.map +0 -1
  120. package/dist/client/aurora-DDzsst74.mjs.map +0 -1
  121. package/dist/client/floatingips-Dq4DXQYb.mjs.map +0 -1
  122. package/dist/client/images-Dbjo4yKn.mjs.map +0 -1
  123. package/dist/client/objects-DKWp9RtR.mjs.map +0 -1
  124. package/dist/client/objects-DaCuy_CB.mjs +0 -5708
  125. package/dist/client/objects-DaCuy_CB.mjs.map +0 -1
  126. package/dist/client/projects-CHYn7L5e.mjs.map +0 -1
  127. package/dist/client/securitygroups-CNFLu9zS.mjs.map +0 -1
@@ -1,9 +1,9 @@
1
- import { D as e, E as t, G as n, H as r, J as i, L as a, N as o, Q as s, S as c, V as l, Y as u, _ as d, ct as f, et as p, it as m, k as h, m as g, ot as _, p as v, rt as y, x as b } from "./build-BdRRmNf5.mjs";
1
+ import { D as e, E as t, H as n, K as r, L as i, N as a, S as o, U as s, X as c, Y as l, _ as u, at as d, ct as f, et as p, k as m, m as h, nt as g, ot as _, p as v, ut as y, x as b } from "./build-DF7MTyXG.mjs";
2
2
  import { t as x } from "./useErrorTranslation-Dc0eE8Zt.mjs";
3
- import { t as S } from "./flavors-Dwy1ID_f.mjs";
4
- import { t as C } from "./ContentHeader-D4jlOG-9.mjs";
5
- import { n as w, r as T, t as E } from "./DeleteFlavorModal-C3m7bQJu.mjs";
6
- import { t as D } from "./SortInput-VK7IYqQv.mjs";
3
+ import { t as S } from "./flavors-DODudzrA.mjs";
4
+ import { t as C } from "./ContentHeader-DsuZD8fa.mjs";
5
+ import { n as w, r as T, t as E } from "./DeleteFlavorModal-RnbspW_2.mjs";
6
+ import { t as D } from "./SortInput-D0Vb864D.mjs";
7
7
  import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
8
8
  import { Suspense as j, startTransition as M, use as N, useCallback as P, useEffect as F, useRef as I, useState as L } from "react";
9
9
  import { useNavigate as R, useParams as ee, useSearch as z } from "@tanstack/react-router";
@@ -11,7 +11,7 @@ import { TRPCClientError as B } from "@trpc/client";
11
11
  import { Trans as V, useLingui as H } from "@lingui/react";
12
12
  import { ErrorBoundary as U } from "react-error-boundary";
13
13
  //#region src/client/routes/_auth/projects/$projectId/compute/-components/Flavors/-components/FlavorListContainer.tsx
14
- var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f, canDeleteFlavor: m, canMangageAccess: g, canManageSpecs: v, canListSpecs: y, currentPage: b = 1, totalPages: x = 1, onPageChange: S }) => {
14
+ var W = ({ flavors: n, isLoading: o, client: l, project: u, onFlavorDeleted: d, canDeleteFlavor: h, canMangageAccess: _, canManageSpecs: v, canListSpecs: y, currentPage: b = 1, totalPages: x = 1, onPageChange: S }) => {
15
15
  let { i18n: C, _: D } = H(), j = R(), [M, N] = L(!1), [P, I] = L(!1), [z, B] = L(!1), [U, W] = L(null), [G, K] = L(b.toString());
16
16
  F(() => {
17
17
  K(b.toString());
@@ -25,46 +25,46 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
25
25
  }, Z = () => {
26
26
  N(!1), W(null);
27
27
  }, Q = () => {
28
- U && f && f(U.name || ""), Z();
28
+ U && d && d(U.name || ""), Z();
29
29
  }, $ = (e) => {
30
30
  e >= 1 && e <= x && (S?.(e), K(e.toString()));
31
31
  };
32
- return c ? /*#__PURE__*/ k("div", {
32
+ return o ? /*#__PURE__*/ k("div", {
33
33
  "data-testid": "loading",
34
34
  children: /*#__PURE__*/ k("div", {
35
35
  "data-testid": "loading",
36
- children: /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(n, {
36
+ children: /*#__PURE__*/ k(a, { children: /*#__PURE__*/ k(r, {
37
37
  colSpan: 3,
38
- children: /*#__PURE__*/ A(u, {
38
+ children: /*#__PURE__*/ A(c, {
39
39
  distribution: "center",
40
40
  alignment: "center",
41
- children: [/*#__PURE__*/ k(r, { variant: "primary" }), /*#__PURE__*/ k(V, { id: "Z3FXyt" })]
41
+ children: [/*#__PURE__*/ k(s, { variant: "primary" }), /*#__PURE__*/ k(V, { id: "Z3FXyt" })]
42
42
  })
43
43
  }) })
44
44
  })
45
- }) : !i || i.length === 0 ? /*#__PURE__*/ k(p, {
45
+ }) : !n || n.length === 0 ? /*#__PURE__*/ k(g, {
46
46
  columns: 7,
47
47
  className: "flavors",
48
48
  "data-testid": "no-flavors",
49
- children: /*#__PURE__*/ k(o, { children: /*#__PURE__*/ A(n, {
49
+ children: /*#__PURE__*/ k(a, { children: /*#__PURE__*/ A(r, {
50
50
  colSpan: 7,
51
- children: [/*#__PURE__*/ k(s, { children: /*#__PURE__*/ k(V, { id: "PiyQJ/" }) }), /*#__PURE__*/ k("p", { children: /*#__PURE__*/ k(V, { id: "KSW/GC" }) })]
51
+ children: [/*#__PURE__*/ k(p, { children: /*#__PURE__*/ k(V, { id: "PiyQJ/" }) }), /*#__PURE__*/ k("p", { children: /*#__PURE__*/ k(V, { id: "KSW/GC" }) })]
52
52
  }) })
53
53
  }) : /*#__PURE__*/ A(O, { children: [
54
- /*#__PURE__*/ A(p, {
54
+ /*#__PURE__*/ A(g, {
55
55
  columns: 7,
56
56
  minContentColumns: [6],
57
57
  className: "flavors",
58
58
  "data-testid": "flavors-table",
59
- children: [/*#__PURE__*/ A(o, { children: [
60
- /*#__PURE__*/ k(a, { children: /*#__PURE__*/ k(V, { id: "6YtxFj" }) }),
61
- /*#__PURE__*/ k(a, { children: /*#__PURE__*/ k(V, { id: "k5nYwm" }) }),
62
- /*#__PURE__*/ k(a, { children: /*#__PURE__*/ k(V, { id: "K+e/0e" }) }),
63
- /*#__PURE__*/ k(a, { children: /*#__PURE__*/ k(V, { id: "n0ZttO" }) }),
64
- /*#__PURE__*/ k(a, { children: /*#__PURE__*/ k(V, { id: "p4nMut" }) }),
65
- /*#__PURE__*/ k(a, { children: /*#__PURE__*/ k(V, { id: "HyyJ83" }) }),
66
- /*#__PURE__*/ k(a, {})
67
- ] }), i.map((t) => /*#__PURE__*/ A(o, {
59
+ children: [/*#__PURE__*/ A(a, { children: [
60
+ /*#__PURE__*/ k(i, { children: /*#__PURE__*/ k(V, { id: "6YtxFj" }) }),
61
+ /*#__PURE__*/ k(i, { children: /*#__PURE__*/ k(V, { id: "k5nYwm" }) }),
62
+ /*#__PURE__*/ k(i, { children: /*#__PURE__*/ k(V, { id: "K+e/0e" }) }),
63
+ /*#__PURE__*/ k(i, { children: /*#__PURE__*/ k(V, { id: "n0ZttO" }) }),
64
+ /*#__PURE__*/ k(i, { children: /*#__PURE__*/ k(V, { id: "p4nMut" }) }),
65
+ /*#__PURE__*/ k(i, { children: /*#__PURE__*/ k(V, { id: "HyyJ83" }) }),
66
+ /*#__PURE__*/ k(i, {})
67
+ ] }), n.map((t) => /*#__PURE__*/ A(a, {
68
68
  "data-testid": `flavor-row-${t.id}`,
69
69
  onClick: () => j({
70
70
  to: "/projects/$projectId/compute/flavors/$flavorId",
@@ -74,16 +74,16 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
74
74
  }
75
75
  }),
76
76
  children: [
77
- /*#__PURE__*/ k(n, { children: t.name || t.id }),
78
- /*#__PURE__*/ k(n, { children: t.vcpus || "–" }),
79
- /*#__PURE__*/ k(n, { children: t.ram || "–" }),
80
- /*#__PURE__*/ k(n, { children: t.disk || "–" }),
81
- /*#__PURE__*/ k(n, { children: t.swap || "–" }),
82
- /*#__PURE__*/ k(n, { children: t["os-flavor-access:is_public"] === !1 ? C._({ id: "zwBp5t" }) : C._({ id: "7d1a0d" }) }),
83
- /*#__PURE__*/ k(n, {
77
+ /*#__PURE__*/ k(r, { children: t.name || t.id }),
78
+ /*#__PURE__*/ k(r, { children: t.vcpus || "–" }),
79
+ /*#__PURE__*/ k(r, { children: t.ram || "–" }),
80
+ /*#__PURE__*/ k(r, { children: t.disk || "–" }),
81
+ /*#__PURE__*/ k(r, { children: t.swap || "–" }),
82
+ /*#__PURE__*/ k(r, { children: t["os-flavor-access:is_public"] === !1 ? C._({ id: "zwBp5t" }) : C._({ id: "7d1a0d" }) }),
83
+ /*#__PURE__*/ k(r, {
84
84
  onClick: (e) => e.stopPropagation(),
85
- children: /*#__PURE__*/ k(e, { children: /*#__PURE__*/ A(_, { children: [
86
- /*#__PURE__*/ k(h, {
85
+ children: /*#__PURE__*/ k(e, { children: /*#__PURE__*/ A(f, { children: [
86
+ /*#__PURE__*/ k(m, {
87
87
  label: C._({ id: "URmyfc" }),
88
88
  onClick: () => j({
89
89
  to: "/projects/$projectId/compute/flavors/$flavorId",
@@ -93,16 +93,16 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
93
93
  }
94
94
  })
95
95
  }),
96
- (v || y) && /*#__PURE__*/ k(h, {
96
+ (v || y) && /*#__PURE__*/ k(m, {
97
97
  label: v ? C._({ id: "SIfYq6" }) : C._({ id: "6GBt0m" }),
98
98
  onClick: () => Y(t)
99
99
  }),
100
- g && /*#__PURE__*/ k(h, {
100
+ _ && /*#__PURE__*/ k(m, {
101
101
  label: C._({ id: "cWbW6w" }),
102
102
  onClick: () => X(t),
103
103
  disabled: t["os-flavor-access:is_public"] !== !1
104
104
  }),
105
- m && /*#__PURE__*/ k(h, {
105
+ h && /*#__PURE__*/ k(m, {
106
106
  label: C._({ id: "JT3I1g" }),
107
107
  onClick: () => J(t)
108
108
  })
@@ -137,7 +137,7 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
137
137
  client: l,
138
138
  isOpen: M,
139
139
  onClose: Z,
140
- project: d,
140
+ project: u,
141
141
  flavor: U,
142
142
  onSuccess: Q
143
143
  }),
@@ -145,7 +145,7 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
145
145
  client: l,
146
146
  isOpen: P,
147
147
  onClose: () => I(!1),
148
- project: d,
148
+ project: u,
149
149
  flavor: U,
150
150
  canEdit: v
151
151
  }),
@@ -153,7 +153,7 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
153
153
  client: l,
154
154
  isOpen: z,
155
155
  onClose: () => B(!1),
156
- project: d,
156
+ project: u,
157
157
  flavor: U
158
158
  })
159
159
  ] });
@@ -207,21 +207,21 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
207
207
  disk: Number(e.disk)
208
208
  }, n = (e) => e != null && e !== "" && String(e).trim() !== "", r = (e) => e != null && e !== "" && String(e).trim() !== "" && !isNaN(Number(e));
209
209
  return n(e.id) && (t.id = String(e.id).trim()), n(e.description) && (t.description = String(e.description).trim()), r(e.swap) && (t.swap = Number(e.swap)), r(e.rxtx_factor) && (t.rxtx_factor = Number(e.rxtx_factor)), r(e["OS-FLV-EXT-DATA:ephemeral"]) && (t["OS-FLV-EXT-DATA:ephemeral"] = Number(e["OS-FLV-EXT-DATA:ephemeral"])), e["os-flavor-access:is_public"] !== void 0 && (t["os-flavor-access:is_public"] = !!e["os-flavor-access:is_public"]), t;
210
- }, q = ({ client: e, isOpen: t, onClose: n, project: a, onSuccess: o }) => {
211
- let { i18n: s, _: l } = H(), { translateError: d } = x(), [p, h] = L({ "os-flavor-access:is_public": !0 }), [_, y] = L({}), [S, C] = L(!1), [w, T] = L(null), E = (e) => {
210
+ }, q = ({ client: e, isOpen: t, onClose: n, project: r, onSuccess: i }) => {
211
+ let { i18n: a, _: u } = H(), { translateError: d } = x(), [f, p] = L({ "os-flavor-access:is_public": !0 }), [m, g] = L({}), [S, C] = L(!1), [w, T] = L(null), E = (e) => {
212
212
  let { name: t, value: n, type: r, checked: i } = e.target;
213
- h((e) => ({
213
+ p((e) => ({
214
214
  ...e,
215
215
  [t]: r === "checkbox" ? i : n
216
216
  })), w && T(null);
217
217
  }, D = (e, t) => {
218
- h((n) => ({
218
+ p((n) => ({
219
219
  ...n,
220
220
  [e]: t
221
221
  })), w && T(null);
222
222
  }, O = (e) => {
223
- let { name: t, value: n } = e.target, r = G(t, n, l);
224
- y((e) => ({
223
+ let { name: t, value: n } = e.target, r = G(t, n, u);
224
+ g((e) => ({
225
225
  ...e,
226
226
  [t]: r
227
227
  }));
@@ -234,7 +234,7 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
234
234
  "ram",
235
235
  "disk"
236
236
  ].forEach((e) => {
237
- let t = G(e, p[e], l);
237
+ let t = G(e, f[e], u);
238
238
  t && (n[e] = t);
239
239
  }), [
240
240
  "id",
@@ -244,146 +244,146 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
244
244
  "description",
245
245
  "os-flavor-access:is_public"
246
246
  ].forEach((e) => {
247
- let t = p[e];
247
+ let t = f[e];
248
248
  if (t !== void 0 && t !== "" && t !== null) {
249
- let r = G(e, t, l);
249
+ let r = G(e, t, u);
250
250
  r && (n[e] = r);
251
251
  }
252
252
  }), Object.keys(n).length > 0) {
253
- y(n), T(s._({ id: "CBFSfX" }));
253
+ g(n), T(a._({ id: "CBFSfX" }));
254
254
  return;
255
255
  }
256
256
  try {
257
257
  C(!0);
258
- let t = K(p);
258
+ let t = K(f);
259
259
  await e.compute.createFlavor.mutate({
260
- project_id: a,
260
+ project_id: r,
261
261
  flavor: t
262
- }), o(t.name), M();
262
+ }), i(t.name), M();
263
263
  } catch (e) {
264
- T(e?.message ? d(e.message) : s._({ id: "OxDN2m" }));
264
+ T(e?.message ? d(e.message) : a._({ id: "OxDN2m" }));
265
265
  } finally {
266
266
  C(!1);
267
267
  }
268
268
  }, M = () => {
269
- h({ "os-flavor-access:is_public": !0 }), y({}), T(null), n();
269
+ p({ "os-flavor-access:is_public": !0 }), g({}), T(null), n();
270
270
  };
271
- return /*#__PURE__*/ A(f, {
271
+ return /*#__PURE__*/ A(y, {
272
272
  onCancel: M,
273
273
  size: "large",
274
- title: s._({ id: "Rlp5zj" }),
274
+ title: a._({ id: "Rlp5zj" }),
275
275
  open: t,
276
276
  onConfirm: j,
277
- cancelButtonLabel: s._({ id: "dEgA5A" }),
278
- confirmButtonLabel: s._({ id: "wEfZld" }),
279
- children: [S && /*#__PURE__*/ k(u, {
277
+ cancelButtonLabel: a._({ id: "dEgA5A" }),
278
+ confirmButtonLabel: a._({ id: "wEfZld" }),
279
+ children: [S && /*#__PURE__*/ k(c, {
280
280
  distribution: "center",
281
281
  alignment: "center",
282
- children: /*#__PURE__*/ k(r, { variant: "primary" })
283
- }), !S && /*#__PURE__*/ A(b, { children: [w && /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(i, {
282
+ children: /*#__PURE__*/ k(s, { variant: "primary" })
283
+ }), !S && /*#__PURE__*/ A(b, { children: [w && /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(l, {
284
284
  onDismiss: () => {
285
285
  T(null);
286
286
  },
287
287
  text: w,
288
288
  variant: "error"
289
289
  }) }), /*#__PURE__*/ A(v, { children: [
290
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
290
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
291
291
  id: "id",
292
292
  name: "id",
293
- label: s._({ id: "s2ubkU" }),
294
- value: p.id || "",
293
+ label: a._({ id: "s2ubkU" }),
294
+ value: f.id || "",
295
295
  onChange: E,
296
296
  onBlur: O,
297
- errortext: _.id
297
+ errortext: m.id
298
298
  }) }),
299
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
299
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
300
300
  id: "name",
301
301
  name: "name",
302
- label: s._({ id: "lWxDDh" }),
303
- value: p.name || "",
302
+ label: a._({ id: "lWxDDh" }),
303
+ value: f.name || "",
304
304
  onChange: E,
305
305
  onBlur: O,
306
- errortext: _.name,
306
+ errortext: m.name,
307
307
  required: !0
308
308
  }) }),
309
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
309
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
310
310
  id: "description",
311
311
  name: "description",
312
- label: s._({ id: "Nu4oKW" }),
313
- value: p.description || "",
312
+ label: a._({ id: "Nu4oKW" }),
313
+ value: f.description || "",
314
314
  onChange: E,
315
315
  onBlur: O,
316
- errortext: _.description
316
+ errortext: m.description
317
317
  }) }),
318
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
318
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
319
319
  id: "vcpus",
320
320
  name: "vcpus",
321
- label: s._({ id: "MZGbkp" }),
322
- value: String(p.vcpus || ""),
321
+ label: a._({ id: "MZGbkp" }),
322
+ value: String(f.vcpus || ""),
323
323
  onChange: (e) => D("vcpus", Number(e.target.value)),
324
324
  onBlur: O,
325
- errortext: _.vcpus,
325
+ errortext: m.vcpus,
326
326
  type: "number",
327
327
  required: !0
328
328
  }) }),
329
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
329
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
330
330
  id: "ram",
331
331
  name: "ram",
332
- label: s._({ id: "K+e/0e" }),
333
- value: String(p.ram || ""),
332
+ label: a._({ id: "K+e/0e" }),
333
+ value: String(f.ram || ""),
334
334
  onChange: (e) => D("ram", Number(e.target.value)),
335
335
  onBlur: O,
336
- errortext: _.ram,
336
+ errortext: m.ram,
337
337
  type: "number",
338
338
  required: !0
339
339
  }) }),
340
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
340
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
341
341
  id: "disk",
342
342
  name: "disk",
343
- label: s._({ id: "AxZkIr" }),
344
- value: String(p.disk || ""),
343
+ label: a._({ id: "AxZkIr" }),
344
+ value: String(f.disk || ""),
345
345
  onChange: (e) => D("disk", Number(e.target.value)),
346
346
  onBlur: O,
347
- errortext: _.disk,
347
+ errortext: m.disk,
348
348
  type: "number",
349
349
  required: !0
350
350
  }) }),
351
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
351
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
352
352
  id: "OS-FLV-EXT-DATA:ephemeral",
353
353
  name: "OS-FLV-EXT-DATA:ephemeral",
354
- label: s._({ id: "X2OnDx" }),
355
- value: String(p["OS-FLV-EXT-DATA:ephemeral"] || ""),
354
+ label: a._({ id: "X2OnDx" }),
355
+ value: String(f["OS-FLV-EXT-DATA:ephemeral"] || ""),
356
356
  onChange: (e) => D("OS-FLV-EXT-DATA:ephemeral", Number(e.target.value)),
357
357
  onBlur: O,
358
- errortext: _["OS-FLV-EXT-DATA:ephemeral"],
358
+ errortext: m["OS-FLV-EXT-DATA:ephemeral"],
359
359
  type: "number"
360
360
  }) }),
361
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
361
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
362
362
  id: "swap",
363
363
  name: "swap",
364
- label: s._({ id: "p4nMut" }),
365
- value: String(p.swap || ""),
364
+ label: a._({ id: "p4nMut" }),
365
+ value: String(f.swap || ""),
366
366
  onChange: (e) => D("swap", e.target.value ? Number(e.target.value) : void 0),
367
367
  onBlur: O,
368
- errortext: _.swap,
368
+ errortext: m.swap,
369
369
  type: "number"
370
370
  }) }),
371
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(g, {
371
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(h, {
372
372
  id: "rxtx_factor",
373
373
  name: "rxtx_factor",
374
- label: s._({ id: "u5HztT" }),
374
+ label: a._({ id: "u5HztT" }),
375
375
  defaultValue: 1,
376
- value: String(p.rxtx_factor || ""),
376
+ value: String(f.rxtx_factor || ""),
377
377
  onChange: (e) => D("rxtx_factor", Number(e.target.value)),
378
378
  onBlur: O,
379
- errortext: _.rxtx_factor,
379
+ errortext: m.rxtx_factor,
380
380
  type: "number"
381
381
  }) }),
382
- /*#__PURE__*/ k(c, { children: /*#__PURE__*/ k(m, {
382
+ /*#__PURE__*/ k(o, { children: /*#__PURE__*/ k(_, {
383
383
  name: "os-flavor-access:is_public",
384
- label: s._({ id: "vbajgL" }),
385
- helptext: s._({ id: "3nh/7E" }),
386
- checked: !!p["os-flavor-access:is_public"],
384
+ label: a._({ id: "vbajgL" }),
385
+ helptext: a._({ id: "3nh/7E" }),
386
+ checked: !!f["os-flavor-access:is_public"],
387
387
  onChange: E
388
388
  }) })
389
389
  ] })] })]
@@ -420,80 +420,80 @@ var W = ({ flavors: i, isLoading: c, client: l, project: d, onFlavorDeleted: f,
420
420
  canManageSpecs: r || i,
421
421
  canListSpecs: a
422
422
  }));
423
- function Z({ flavorsPromise: e, permissionsPromise: t, client: n, project: r, onFlavorDeleted: a, onFlavorCreated: o, searchTerm: s, setSearchTerm: c, sortSettings: f, handleSortChange: p, createModalOpen: m, setCreateModalOpen: h, currentPage: g, onPageChange: _ }) {
424
- let { i18n: v, _: b } = H(), { flavors: x, privateFlavorError: S, listError: C } = N(e), w = N(t), [T, E] = L(s), j = I(void 0);
423
+ function Z({ flavorsPromise: e, permissionsPromise: t, client: r, project: i, onFlavorDeleted: a, onFlavorCreated: o, searchTerm: s, setSearchTerm: f, sortSettings: p, handleSortChange: m, createModalOpen: h, setCreateModalOpen: g, currentPage: _, onPageChange: v }) {
424
+ let { i18n: y, _: b } = H(), { flavors: x, privateFlavorError: S, listError: C } = N(e), w = N(t), [T, E] = L(s), j = I(void 0);
425
425
  if (F(() => () => clearTimeout(j.current), []), C) return /*#__PURE__*/ k("p", { children: C });
426
- let M = Math.max(1, Math.ceil(x.length / J)), P = Math.min(g, M), R = x.slice((P - 1) * J, P * J);
426
+ let M = Math.max(1, Math.ceil(x.length / J)), P = Math.min(_, M), R = x.slice((P - 1) * J, P * J);
427
427
  return F(() => {
428
- g > M && _(1);
428
+ _ > M && v(1);
429
429
  }, [
430
430
  M,
431
- g,
432
- _
431
+ _,
432
+ v
433
433
  ]), /*#__PURE__*/ A(O, { children: [
434
434
  /*#__PURE__*/ k(q, {
435
- client: n,
436
- isOpen: m,
437
- project: r,
438
- onClose: () => h(!1),
435
+ client: r,
436
+ isOpen: h,
437
+ project: i,
438
+ onClose: () => g(!1),
439
439
  onSuccess: o
440
440
  }),
441
- S && /*#__PURE__*/ k(i, {
441
+ S && /*#__PURE__*/ k(l, {
442
442
  className: "mb-4",
443
- text: v._({ id: "3oc18/" }),
443
+ text: y._({ id: "3oc18/" }),
444
444
  variant: "warning"
445
445
  }),
446
- /*#__PURE__*/ A(u, {
446
+ /*#__PURE__*/ A(c, {
447
447
  distribution: "end",
448
448
  alignment: "center",
449
449
  gap: "2",
450
450
  className: "pb-2",
451
- children: [/*#__PURE__*/ k(u, {
451
+ children: [/*#__PURE__*/ k(c, {
452
452
  gap: "0.5",
453
453
  children: /*#__PURE__*/ k(D, {
454
- options: f.options,
455
- sortBy: f.sortBy,
456
- sortDirection: f.sortDirection ?? "asc",
457
- onSortByChange: (e) => p({
458
- ...f,
454
+ options: p.options,
455
+ sortBy: p.sortBy,
456
+ sortDirection: p.sortDirection ?? "asc",
457
+ onSortByChange: (e) => m({
458
+ ...p,
459
459
  sortBy: e,
460
- sortDirection: f.sortDirection
460
+ sortDirection: p.sortDirection
461
461
  }),
462
- onSortDirectionChange: (e) => p({
463
- ...f,
462
+ onSortDirectionChange: (e) => m({
463
+ ...p,
464
464
  sortDirection: e
465
465
  })
466
466
  })
467
- }), w.canCreate && /*#__PURE__*/ k(d, {
467
+ }), w.canCreate && /*#__PURE__*/ k(u, {
468
468
  variant: "primary",
469
- label: v._({ id: "Rlp5zj" }),
470
- onClick: () => h(!0)
469
+ label: y._({ id: "Rlp5zj" }),
470
+ onClick: () => g(!0)
471
471
  })]
472
472
  }),
473
- /*#__PURE__*/ k(y, { children: /*#__PURE__*/ k(u, {
473
+ /*#__PURE__*/ k(d, { children: /*#__PURE__*/ k(c, {
474
474
  distribution: "end",
475
475
  alignment: "center",
476
- children: /*#__PURE__*/ k(l, {
477
- placeholder: v._({ id: "U0sPCo" }),
476
+ children: /*#__PURE__*/ k(n, {
477
+ placeholder: y._({ id: "U0sPCo" }),
478
478
  "data-testid": "searchbar",
479
479
  value: T,
480
480
  onInput: (e) => {
481
481
  let t = e.currentTarget.value;
482
- E(t), clearTimeout(j.current), j.current = window.setTimeout(() => c(t), 500);
482
+ E(t), clearTimeout(j.current), j.current = window.setTimeout(() => f(t), 500);
483
483
  },
484
484
  onSearch: (e) => {
485
- clearTimeout(j.current), c(typeof e == "string" ? e : "");
485
+ clearTimeout(j.current), f(typeof e == "string" ? e : "");
486
486
  },
487
487
  onClear: () => {
488
- clearTimeout(j.current), E(""), c("");
488
+ clearTimeout(j.current), E(""), f("");
489
489
  }
490
490
  })
491
491
  }) }),
492
492
  /*#__PURE__*/ k(W, {
493
493
  flavors: R,
494
494
  isLoading: !1,
495
- client: n,
496
- project: r,
495
+ client: r,
496
+ project: i,
497
497
  onFlavorDeleted: a,
498
498
  canDeleteFlavor: w.canDelete,
499
499
  canMangageAccess: w.canManageAccess,
@@ -501,12 +501,12 @@ function Z({ flavorsPromise: e, permissionsPromise: t, client: n, project: r, on
501
501
  canListSpecs: w.canListSpecs,
502
502
  currentPage: P,
503
503
  totalPages: M,
504
- onPageChange: _
504
+ onPageChange: v
505
505
  })
506
506
  ] });
507
507
  }
508
508
  var Q = ({ client: e, project: t }) => {
509
- let { i18n: n, _: a } = H(), o = R(), s = z({ strict: !1 }), [c, l] = L({
509
+ let { i18n: n, _: r } = H(), i = R(), a = z({ strict: !1 }), [o, u] = L({
510
510
  options: [
511
511
  {
512
512
  label: n._({ id: "6YtxFj" }),
@@ -529,11 +529,11 @@ var Q = ({ client: e, project: t }) => {
529
529
  value: "swap"
530
530
  }
531
531
  ],
532
- sortBy: s.sortBy || "name",
533
- sortDirection: s.sortDirection || "asc"
534
- }), [d, f] = L(s.search || ""), p = s.page ?? 1, [m, h] = L(), [g, _] = L(!1), [v, y] = L(() => Y(e, t, c.sortBy, c.sortDirection, d)), [b] = L(() => X(e, t)), x = () => {
532
+ sortBy: a.sortBy || "name",
533
+ sortDirection: a.sortDirection || "asc"
534
+ }), [d, f] = L(a.search || ""), p = a.page ?? 1, [m, h] = L(), [g, _] = L(!1), [v, y] = L(() => Y(e, t, o.sortBy, o.sortDirection, d)), [b] = L(() => X(e, t)), x = () => {
535
535
  M(() => {
536
- y(Y(e, t, c.sortBy, c.sortDirection, d));
536
+ y(Y(e, t, o.sortBy, o.sortDirection, d));
537
537
  });
538
538
  }, S = (e) => {
539
539
  h({
@@ -557,7 +557,7 @@ var Q = ({ client: e, project: t }) => {
557
557
  sortBy: n.sortBy?.toString() || "name",
558
558
  sortDirection: n.sortDirection || "asc"
559
559
  };
560
- l(r), o({
560
+ u(r), i({
561
561
  search: (e) => ({
562
562
  ...e,
563
563
  sortBy: r.sortBy,
@@ -570,7 +570,7 @@ var Q = ({ client: e, project: t }) => {
570
570
  });
571
571
  }, T = (n) => {
572
572
  let r = typeof n == "string" ? n : "";
573
- f(r), o({
573
+ f(r), i({
574
574
  search: (e) => ({
575
575
  ...e,
576
576
  search: r || void 0,
@@ -578,34 +578,34 @@ var Q = ({ client: e, project: t }) => {
578
578
  }),
579
579
  replace: !0
580
580
  }), M(() => {
581
- y(Y(e, t, c.sortBy, c.sortDirection, r));
581
+ y(Y(e, t, o.sortBy, o.sortDirection, r));
582
582
  });
583
583
  }, E = P((e) => {
584
- o({ search: (t) => ({
584
+ i({ search: (t) => ({
585
585
  ...t,
586
586
  page: e === 1 ? void 0 : e
587
587
  }) });
588
- }, [o]);
588
+ }, [i]);
589
589
  return /*#__PURE__*/ A("div", {
590
590
  className: "relative",
591
- children: [m && /*#__PURE__*/ k(i, {
591
+ children: [m && /*#__PURE__*/ k(l, {
592
592
  className: "absolute -top-14 right-0 left-0 z-50",
593
593
  text: m.message,
594
594
  variant: "info",
595
595
  onDismiss: () => h(void 0),
596
596
  dismissible: !0
597
597
  }), /*#__PURE__*/ k(U, {
598
- fallbackRender: ({ error: e }) => /*#__PURE__*/ k(i, {
598
+ fallbackRender: ({ error: e }) => /*#__PURE__*/ k(l, {
599
599
  variant: "error",
600
600
  text: e instanceof Error ? e.message : n._({ id: "W5A0Ly" })
601
601
  }),
602
602
  children: /*#__PURE__*/ k(j, {
603
- fallback: /*#__PURE__*/ A(u, {
603
+ fallback: /*#__PURE__*/ A(c, {
604
604
  className: "fixed inset-0",
605
605
  distribution: "center",
606
606
  alignment: "center",
607
607
  direction: "vertical",
608
- children: [/*#__PURE__*/ k(r, {
608
+ children: [/*#__PURE__*/ k(s, {
609
609
  variant: "primary",
610
610
  size: "large",
611
611
  className: "mb-2"
@@ -620,7 +620,7 @@ var Q = ({ client: e, project: t }) => {
620
620
  onFlavorCreated: C,
621
621
  searchTerm: d,
622
622
  setSearchTerm: T,
623
- sortSettings: c,
623
+ sortSettings: o,
624
624
  handleSortChange: w,
625
625
  createModalOpen: g,
626
626
  setCreateModalOpen: _,
@@ -646,4 +646,4 @@ function $() {
646
646
  //#endregion
647
647
  export { $ as component };
648
648
 
649
- //# sourceMappingURL=flavors-C-gY4XeQ.mjs.map
649
+ //# sourceMappingURL=flavors-DAbtRoep.mjs.map