@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,15 +1,15 @@
1
- import { $ as e, A as t, C as n, K as r, N as i, O as a, T as o, U as s, V as c, W as l, Y as u, it as d, l as f, nt as p, r as m, rt as h, u as g, w as _, z as v } from "./build-Cf7iWbpH.mjs";
1
+ import { $ as e, A as t, C as n, F as r, H as i, J as a, K as o, T as s, W as c, Z as l, at as u, c as d, it as f, j as p, l as m, n as h, rt as g, tt as _, w as v } from "./build-CZRvXrAL.mjs";
2
2
  import { t as y } from "./useErrorTranslation-TZVwIAzq.mjs";
3
- import { t as b } from "./flavors-CUiALHcB.mjs";
4
- import { n as x, r as S, t as C } from "./DeleteFlavorModal-rmuYIafD.mjs";
5
- import { t as w } from "./ContentHeader-DtBiIwRY.mjs";
6
- import { t as T } from "./ListToolbar-DuazvsAu.mjs";
3
+ import { t as b } from "./flavors-CY7A6--v.mjs";
4
+ import { n as x, r as S, t as C } from "./DeleteFlavorModal-BkPrQKyE.mjs";
5
+ import { t as w } from "./ContentHeader-B_PWrxbw.mjs";
6
+ import { t as T } from "./ListToolbar-C5lzTrit.mjs";
7
7
  import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
8
8
  import { Suspense as k, startTransition as A, use as j, useCallback as M, useEffect as N, useState as P } from "react";
9
9
  import { Link as F, useNavigate as I, useParams as L, useSearch as R } from "@tanstack/react-router";
10
10
  import { Trans as z, useLingui as B } from "@lingui/react";
11
11
  //#region src/client/routes/_auth/projects/$projectId/compute/-components/Flavors/-components/FlavorListContainer.tsx
12
- var V = ({ flavors: n, isLoading: s, client: d, project: f, onFlavorDeleted: p, canDeleteFlavor: m, canMangageAccess: h, currentPage: _ = 1, totalPages: y = 1, onPageChange: b }) => {
12
+ var V = ({ flavors: n, isLoading: o, client: u, project: d, onFlavorDeleted: f, canDeleteFlavor: h, canMangageAccess: g, currentPage: v = 1, totalPages: y = 1, onPageChange: b }) => {
13
13
  let { i18n: w, _: T } = B(), k = I(), [A, j] = P(!1), [M, N] = P(!1), [R, V] = P(!1), [H, U] = P(null), { projectId: W } = L({ from: "/_auth/projects/$projectId/compute/flavors/" }), G = (e) => {
14
14
  U(e), j(!0);
15
15
  }, K = (e) => {
@@ -19,117 +19,117 @@ var V = ({ flavors: n, isLoading: s, client: d, project: f, onFlavorDeleted: p,
19
19
  }, J = () => {
20
20
  j(!1), U(null);
21
21
  };
22
- return s ? /* @__PURE__ */ D("div", {
22
+ return o ? /* @__PURE__ */ D("div", {
23
23
  "data-testid": "loading",
24
24
  children: /* @__PURE__ */ D("div", {
25
25
  "data-testid": "loading",
26
- children: /* @__PURE__ */ D(i, { children: /* @__PURE__ */ D(t, {
26
+ children: /* @__PURE__ */ D(r, { children: /* @__PURE__ */ D(p, {
27
27
  colSpan: 3,
28
- children: /* @__PURE__ */ O(e, {
28
+ children: /* @__PURE__ */ O(_, {
29
29
  distribution: "center",
30
30
  alignment: "center",
31
- children: [/* @__PURE__ */ D(r, { variant: "primary" }), /* @__PURE__ */ D(z, { id: "Z3FXyt" })]
31
+ children: [/* @__PURE__ */ D(l, { variant: "primary" }), /* @__PURE__ */ D(z, { id: "Z3FXyt" })]
32
32
  })
33
33
  }) })
34
34
  })
35
- }) : !n || n.length === 0 ? /* @__PURE__ */ D(v, {
35
+ }) : !n || n.length === 0 ? /* @__PURE__ */ D(i, {
36
36
  columns: 7,
37
37
  className: "flavors",
38
38
  "data-testid": "no-flavors",
39
- children: /* @__PURE__ */ D(i, { children: /* @__PURE__ */ O(t, {
39
+ children: /* @__PURE__ */ D(r, { children: /* @__PURE__ */ O(p, {
40
40
  colSpan: 7,
41
- children: [/* @__PURE__ */ D(a, { children: /* @__PURE__ */ D(z, { id: "PiyQJ/" }) }), /* @__PURE__ */ D("p", { children: /* @__PURE__ */ D(z, { id: "KSW/GC" }) })]
41
+ children: [/* @__PURE__ */ D(t, { children: /* @__PURE__ */ D(z, { id: "PiyQJ/" }) }), /* @__PURE__ */ D("p", { children: /* @__PURE__ */ D(z, { id: "KSW/GC" }) })]
42
42
  }) })
43
43
  }) : /* @__PURE__ */ O(E, { children: [
44
- /* @__PURE__ */ O(v, {
44
+ /* @__PURE__ */ O(i, {
45
45
  columns: 6,
46
46
  minContentColumns: [5],
47
47
  className: "flavors",
48
48
  "data-testid": "flavors-table",
49
- children: [/* @__PURE__ */ O(i, { children: [
49
+ children: [/* @__PURE__ */ O(r, { children: [
50
50
  /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(z, { id: "6YtxFj" }) }),
51
51
  /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(z, { id: "k5nYwm" }) }),
52
52
  /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(z, { id: "K+e/0e" }) }),
53
53
  /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(z, { id: "n0ZttO" }) }),
54
54
  /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(z, { id: "p4nMut" }) }),
55
55
  /* @__PURE__ */ D(c, {})
56
- ] }), n.map((e) => /* @__PURE__ */ O(i, {
57
- "data-testid": `flavor-row-${e.id}`,
56
+ ] }), n.map((t) => /* @__PURE__ */ O(r, {
57
+ "data-testid": `flavor-row-${t.id}`,
58
58
  onClick: () => k({
59
59
  to: "/projects/$projectId/compute/flavors/$flavorId",
60
60
  params: {
61
61
  projectId: W,
62
- flavorId: e.id
62
+ flavorId: t.id
63
63
  }
64
64
  }),
65
65
  children: [
66
- /* @__PURE__ */ D(t, { children: e.name || e.id }),
67
- /* @__PURE__ */ D(t, { children: e.vcpus || "–" }),
68
- /* @__PURE__ */ D(t, { children: e.ram || "–" }),
69
- /* @__PURE__ */ D(t, { children: e.disk || "–" }),
70
- /* @__PURE__ */ D(t, { children: e.swap || "–" }),
71
- /* @__PURE__ */ D(t, {
66
+ /* @__PURE__ */ D(p, { children: t.name || t.id }),
67
+ /* @__PURE__ */ D(p, { children: t.vcpus || "–" }),
68
+ /* @__PURE__ */ D(p, { children: t.ram || "–" }),
69
+ /* @__PURE__ */ D(p, { children: t.disk || "–" }),
70
+ /* @__PURE__ */ D(p, { children: t.swap || "–" }),
71
+ /* @__PURE__ */ D(p, {
72
72
  onClick: (e) => e.stopPropagation(),
73
- children: /* @__PURE__ */ D(u, { children: /* @__PURE__ */ O(o, { children: [
74
- /* @__PURE__ */ D(l, { children: /* @__PURE__ */ D(F, {
73
+ children: /* @__PURE__ */ D(e, { children: /* @__PURE__ */ O(s, { children: [
74
+ /* @__PURE__ */ D(a, { children: /* @__PURE__ */ D(F, {
75
75
  to: "/projects/$projectId/compute/flavors/$flavorId",
76
76
  params: {
77
77
  projectId: W,
78
- flavorId: e.id
78
+ flavorId: t.id
79
79
  },
80
80
  className: "text-theme-default",
81
81
  children: w._({ id: "URmyfc" })
82
82
  }) }),
83
- /* @__PURE__ */ D(l, {
83
+ /* @__PURE__ */ D(a, {
84
84
  label: w._({ id: "6GBt0m" }),
85
- onClick: () => K(e)
85
+ onClick: () => K(t)
86
86
  }),
87
- h && /* @__PURE__ */ D(l, {
87
+ g && /* @__PURE__ */ D(a, {
88
88
  label: w._({ id: "cWbW6w" }),
89
- onClick: () => q(e)
89
+ onClick: () => q(t)
90
90
  }),
91
- m && /* @__PURE__ */ D(l, {
91
+ h && /* @__PURE__ */ D(a, {
92
92
  label: w._({ id: "JT3I1g" }),
93
- onClick: () => G(e)
93
+ onClick: () => G(t)
94
94
  })
95
95
  ] }) })
96
96
  })
97
97
  ]
98
- }, e.id))]
98
+ }, t.id))]
99
99
  }),
100
100
  y > 1 && /* @__PURE__ */ D("div", {
101
101
  className: "flex justify-center py-4",
102
- children: /* @__PURE__ */ D(g, {
102
+ children: /* @__PURE__ */ D(m, {
103
103
  variant: "input",
104
- currentPage: _,
104
+ currentPage: v,
105
105
  pages: y,
106
- onPressPrevious: () => b?.(Math.max(_ - 1, 1)),
107
- onPressNext: () => b?.(Math.min(_ + 1, y)),
106
+ onPressPrevious: () => b?.(Math.max(v - 1, 1)),
107
+ onPressNext: () => b?.(Math.min(v + 1, y)),
108
108
  onSelectChange: (e) => b?.(e)
109
109
  })
110
110
  }),
111
111
  /* @__PURE__ */ D(C, {
112
- client: d,
112
+ client: u,
113
113
  isOpen: A,
114
114
  onClose: J,
115
- project: f,
115
+ project: d,
116
116
  flavor: H,
117
117
  onSuccess: () => {
118
- H && p && p(H.name || ""), J();
118
+ H && f && f(H.name || ""), J();
119
119
  }
120
120
  }),
121
121
  /* @__PURE__ */ D(S, {
122
- client: d,
122
+ client: u,
123
123
  isOpen: M,
124
124
  onClose: () => N(!1),
125
- project: f,
125
+ project: d,
126
126
  flavor: H
127
127
  }),
128
128
  /* @__PURE__ */ D(x, {
129
- client: d,
129
+ client: u,
130
130
  isOpen: R,
131
131
  onClose: () => V(!1),
132
- project: f,
132
+ project: d,
133
133
  flavor: H
134
134
  })
135
135
  ] });
@@ -183,26 +183,26 @@ var V = ({ flavors: n, isLoading: s, client: d, project: f, onFlavorDeleted: p,
183
183
  disk: Number(e.disk)
184
184
  }, n = (e) => e != null && e !== "" && String(e).trim() !== "", r = (e) => e != null && e !== "" && String(e).trim() !== "" && !isNaN(Number(e));
185
185
  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;
186
- }, W = ({ client: t, isOpen: i, onClose: a, project: o, onSuccess: c }) => {
187
- let { i18n: l, _: u } = B(), { translateError: f } = y(), [g, v] = P({ "os-flavor-access:is_public": !0 }), [b, x] = P({}), [S, C] = P(!1), [w, T] = P(null), E = (e) => {
186
+ }, W = ({ client: e, isOpen: t, onClose: r, project: i, onSuccess: a }) => {
187
+ let { i18n: s, _: c } = B(), { translateError: d } = y(), [p, m] = P({ "os-flavor-access:is_public": !0 }), [b, x] = P({}), [S, C] = P(!1), [w, T] = P(null), E = (e) => {
188
188
  let { name: t, value: n, type: r, checked: i } = e.target;
189
- v((e) => ({
189
+ m((e) => ({
190
190
  ...e,
191
191
  [t]: r === "checkbox" ? i : n
192
192
  })), w && T(null);
193
193
  }, k = (e, t) => {
194
- v((n) => ({
194
+ m((n) => ({
195
195
  ...n,
196
196
  [e]: t
197
197
  })), w && T(null);
198
198
  }, A = (e) => {
199
- let { name: t, value: n } = e.target, r = H(t, n, u);
199
+ let { name: t, value: n } = e.target, r = H(t, n, c);
200
200
  x((e) => ({
201
201
  ...e,
202
202
  [t]: r
203
203
  }));
204
- }, j = async (e) => {
205
- e.preventDefault(), T(null);
204
+ }, j = async (t) => {
205
+ t.preventDefault(), T(null);
206
206
  let n = {};
207
207
  if ([
208
208
  "name",
@@ -210,7 +210,7 @@ var V = ({ flavors: n, isLoading: s, client: d, project: f, onFlavorDeleted: p,
210
210
  "ram",
211
211
  "disk"
212
212
  ].forEach((e) => {
213
- let t = H(e, g[e], u);
213
+ let t = H(e, p[e], c);
214
214
  t && (n[e] = t);
215
215
  }), [
216
216
  "id",
@@ -220,146 +220,146 @@ var V = ({ flavors: n, isLoading: s, client: d, project: f, onFlavorDeleted: p,
220
220
  "description",
221
221
  "os-flavor-access:is_public"
222
222
  ].forEach((e) => {
223
- let t = g[e];
223
+ let t = p[e];
224
224
  if (t !== void 0 && t !== "" && t !== null) {
225
- let r = H(e, t, u);
225
+ let r = H(e, t, c);
226
226
  r && (n[e] = r);
227
227
  }
228
228
  }), Object.keys(n).length > 0) {
229
- x(n), T(l._({ id: "CBFSfX" }));
229
+ x(n), T(s._({ id: "CBFSfX" }));
230
230
  return;
231
231
  }
232
232
  try {
233
233
  C(!0);
234
- let e = U(g);
235
- await t.compute.createFlavor.mutate({
236
- project_id: o,
237
- flavor: e
238
- }), c(e.name), M();
234
+ let t = U(p);
235
+ await e.compute.createFlavor.mutate({
236
+ project_id: i,
237
+ flavor: t
238
+ }), a(t.name), M();
239
239
  } catch (e) {
240
- T(e?.message ? f(e.message) : l._({ id: "OxDN2m" }));
240
+ T(e?.message ? d(e.message) : s._({ id: "OxDN2m" }));
241
241
  } finally {
242
242
  C(!1);
243
243
  }
244
244
  }, M = () => {
245
- v({ "os-flavor-access:is_public": !0 }), x({}), T(null), a();
245
+ m({ "os-flavor-access:is_public": !0 }), x({}), T(null), r();
246
246
  };
247
- return /* @__PURE__ */ O(d, {
247
+ return /* @__PURE__ */ O(u, {
248
248
  onCancel: M,
249
249
  size: "large",
250
- title: l._({ id: "Rlp5zj" }),
251
- open: i,
250
+ title: s._({ id: "Rlp5zj" }),
251
+ open: t,
252
252
  onConfirm: j,
253
- cancelButtonLabel: l._({ id: "dEgA5A" }),
254
- confirmButtonLabel: l._({ id: "wEfZld" }),
255
- children: [S && /* @__PURE__ */ D(e, {
253
+ cancelButtonLabel: s._({ id: "dEgA5A" }),
254
+ confirmButtonLabel: s._({ id: "wEfZld" }),
255
+ children: [S && /* @__PURE__ */ D(_, {
256
256
  distribution: "center",
257
257
  alignment: "center",
258
- children: /* @__PURE__ */ D(r, { variant: "primary" })
259
- }), !S && /* @__PURE__ */ O(h, { children: [w && /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(s, {
258
+ children: /* @__PURE__ */ D(l, { variant: "primary" })
259
+ }), !S && /* @__PURE__ */ O(f, { children: [w && /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(o, {
260
260
  onDismiss: () => {
261
261
  T(null);
262
262
  },
263
263
  text: w,
264
264
  variant: "error"
265
- }) }), /* @__PURE__ */ O(m, { children: [
266
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
265
+ }) }), /* @__PURE__ */ O(h, { children: [
266
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
267
267
  id: "id",
268
268
  name: "id",
269
- label: l._({ id: "s2ubkU" }),
270
- value: g.id || "",
269
+ label: s._({ id: "s2ubkU" }),
270
+ value: p.id || "",
271
271
  onChange: E,
272
272
  onBlur: A,
273
273
  errortext: b.id
274
274
  }) }),
275
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
275
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
276
276
  id: "name",
277
277
  name: "name",
278
- label: l._({ id: "lWxDDh" }),
279
- value: g.name || "",
278
+ label: s._({ id: "lWxDDh" }),
279
+ value: p.name || "",
280
280
  onChange: E,
281
281
  onBlur: A,
282
282
  errortext: b.name,
283
283
  required: !0
284
284
  }) }),
285
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
285
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
286
286
  id: "description",
287
287
  name: "description",
288
- label: l._({ id: "Nu4oKW" }),
289
- value: g.description || "",
288
+ label: s._({ id: "Nu4oKW" }),
289
+ value: p.description || "",
290
290
  onChange: E,
291
291
  onBlur: A,
292
292
  errortext: b.description
293
293
  }) }),
294
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
294
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
295
295
  id: "vcpus",
296
296
  name: "vcpus",
297
- label: l._({ id: "MZGbkp" }),
298
- value: String(g.vcpus || ""),
297
+ label: s._({ id: "MZGbkp" }),
298
+ value: String(p.vcpus || ""),
299
299
  onChange: (e) => k("vcpus", Number(e.target.value)),
300
300
  onBlur: A,
301
301
  errortext: b.vcpus,
302
302
  type: "number",
303
303
  required: !0
304
304
  }) }),
305
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
305
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
306
306
  id: "ram",
307
307
  name: "ram",
308
- label: l._({ id: "K+e/0e" }),
309
- value: String(g.ram || ""),
308
+ label: s._({ id: "K+e/0e" }),
309
+ value: String(p.ram || ""),
310
310
  onChange: (e) => k("ram", Number(e.target.value)),
311
311
  onBlur: A,
312
312
  errortext: b.ram,
313
313
  type: "number",
314
314
  required: !0
315
315
  }) }),
316
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
316
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
317
317
  id: "disk",
318
318
  name: "disk",
319
- label: l._({ id: "AxZkIr" }),
320
- value: String(g.disk || ""),
319
+ label: s._({ id: "AxZkIr" }),
320
+ value: String(p.disk || ""),
321
321
  onChange: (e) => k("disk", Number(e.target.value)),
322
322
  onBlur: A,
323
323
  errortext: b.disk,
324
324
  type: "number",
325
325
  required: !0
326
326
  }) }),
327
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
327
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
328
328
  id: "OS-FLV-EXT-DATA:ephemeral",
329
329
  name: "OS-FLV-EXT-DATA:ephemeral",
330
- label: l._({ id: "X2OnDx" }),
331
- value: String(g["OS-FLV-EXT-DATA:ephemeral"] || ""),
330
+ label: s._({ id: "X2OnDx" }),
331
+ value: String(p["OS-FLV-EXT-DATA:ephemeral"] || ""),
332
332
  onChange: (e) => k("OS-FLV-EXT-DATA:ephemeral", Number(e.target.value)),
333
333
  onBlur: A,
334
334
  errortext: b["OS-FLV-EXT-DATA:ephemeral"],
335
335
  type: "number"
336
336
  }) }),
337
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
337
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
338
338
  id: "swap",
339
339
  name: "swap",
340
- label: l._({ id: "p4nMut" }),
341
- value: String(g.swap || ""),
340
+ label: s._({ id: "p4nMut" }),
341
+ value: String(p.swap || ""),
342
342
  onChange: (e) => k("swap", e.target.value ? Number(e.target.value) : void 0),
343
343
  onBlur: A,
344
344
  errortext: b.swap,
345
345
  type: "number"
346
346
  }) }),
347
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(_, {
347
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(v, {
348
348
  id: "rxtx_factor",
349
349
  name: "rxtx_factor",
350
- label: l._({ id: "u5HztT" }),
350
+ label: s._({ id: "u5HztT" }),
351
351
  defaultValue: 1,
352
- value: String(g.rxtx_factor || ""),
352
+ value: String(p.rxtx_factor || ""),
353
353
  onChange: (e) => k("rxtx_factor", Number(e.target.value)),
354
354
  onBlur: A,
355
355
  errortext: b.rxtx_factor,
356
356
  type: "number"
357
357
  }) }),
358
- /* @__PURE__ */ D(p, { children: /* @__PURE__ */ D(n, {
358
+ /* @__PURE__ */ D(g, { children: /* @__PURE__ */ D(n, {
359
359
  name: "os-flavor-access:is_public",
360
- label: l._({ id: "vbajgL" }),
361
- helptext: l._({ id: "3nh/7E" }),
362
- checked: !!g["os-flavor-access:is_public"],
360
+ label: s._({ id: "vbajgL" }),
361
+ helptext: s._({ id: "3nh/7E" }),
362
+ checked: !!p["os-flavor-access:is_public"],
363
363
  onChange: E
364
364
  }) })
365
365
  ] })] })]
@@ -381,7 +381,7 @@ var V = ({ flavors: n, isLoading: s, client: d, project: f, onFlavorDeleted: p,
381
381
  canDelete: t,
382
382
  canManageAccess: n
383
383
  }));
384
- function J({ flavorsPromise: e, permissionsPromise: t, client: n, project: r, onFlavorDeleted: i, onFlavorCreated: a, searchTerm: o, setSearchTerm: c, sortSettings: l, handleSortChange: u, createModalOpen: d, setCreateModalOpen: p, currentPage: m, onPageChange: h }) {
384
+ function J({ flavorsPromise: e, permissionsPromise: t, client: n, project: r, onFlavorDeleted: i, onFlavorCreated: a, searchTerm: s, setSearchTerm: c, sortSettings: l, handleSortChange: u, createModalOpen: f, setCreateModalOpen: p, currentPage: m, onPageChange: h }) {
385
385
  let { i18n: g, _ } = B(), { flavors: v, privateFlavorError: y } = j(e), b = j(t), x = Math.max(1, Math.ceil(v.length / G)), S = Math.min(m, x), C = v.slice((S - 1) * G, S * G);
386
386
  return N(() => {
387
387
  m > x && h(1);
@@ -392,22 +392,22 @@ function J({ flavorsPromise: e, permissionsPromise: t, client: n, project: r, on
392
392
  ]), /* @__PURE__ */ O(E, { children: [
393
393
  /* @__PURE__ */ D(W, {
394
394
  client: n,
395
- isOpen: d,
395
+ isOpen: f,
396
396
  project: r,
397
397
  onClose: () => p(!1),
398
398
  onSuccess: a
399
399
  }),
400
- y && /* @__PURE__ */ D(s, {
400
+ y && /* @__PURE__ */ D(o, {
401
401
  className: "mb-4",
402
402
  text: g._({ id: "3oc18/" }),
403
403
  variant: "warning"
404
404
  }),
405
405
  /* @__PURE__ */ D(T, {
406
406
  sortSettings: l,
407
- searchTerm: o,
407
+ searchTerm: s,
408
408
  onSort: u,
409
409
  onSearch: c,
410
- actions: b.canCreate ? /* @__PURE__ */ D(f, {
410
+ actions: b.canCreate ? /* @__PURE__ */ D(d, {
411
411
  variant: "primary",
412
412
  label: g._({ id: "Rlp5zj" }),
413
413
  onClick: () => p(!0)
@@ -427,59 +427,59 @@ function J({ flavorsPromise: e, permissionsPromise: t, client: n, project: r, on
427
427
  })
428
428
  ] });
429
429
  }
430
- var Y = ({ client: t, project: n }) => {
431
- let { i18n: i, _: a } = B(), o = I(), c = R({ strict: !1 }), [l, u] = P({
430
+ var Y = ({ client: e, project: t }) => {
431
+ let { i18n: n, _: r } = B(), i = I(), a = R({ strict: !1 }), [s, c] = P({
432
432
  options: [
433
433
  {
434
- label: i._({ id: "6YtxFj" }),
434
+ label: n._({ id: "6YtxFj" }),
435
435
  value: "name"
436
436
  },
437
437
  {
438
- label: i._({ id: "MZGbkp" }),
438
+ label: n._({ id: "MZGbkp" }),
439
439
  value: "vcpus"
440
440
  },
441
441
  {
442
- label: i._({ id: "RGhYAo" }),
442
+ label: n._({ id: "RGhYAo" }),
443
443
  value: "ram"
444
444
  },
445
445
  {
446
- label: i._({ id: "cJDQIO" }),
446
+ label: n._({ id: "cJDQIO" }),
447
447
  value: "disk"
448
448
  },
449
449
  {
450
- label: i._({ id: "vH2C/2" }),
450
+ label: n._({ id: "vH2C/2" }),
451
451
  value: "swap"
452
452
  }
453
453
  ],
454
- sortBy: c.sortBy || "name",
455
- sortDirection: c.sortDirection || "asc"
456
- }), [d, f] = P(c.search || ""), p = c.page ?? 1, [m, h] = P(), [g, _] = P(!1), [v, y] = P(() => K(t, n, l.sortBy, l.sortDirection, d)), [b] = P(() => q(t, n)), x = () => {
454
+ sortBy: a.sortBy || "name",
455
+ sortDirection: a.sortDirection || "asc"
456
+ }), [u, d] = P(a.search || ""), f = a.page ?? 1, [p, m] = P(), [h, g] = P(!1), [v, y] = P(() => K(e, t, s.sortBy, s.sortDirection, u)), [b] = P(() => q(e, t)), x = () => {
457
457
  A(() => {
458
- y(K(t, n, l.sortBy, l.sortDirection, d));
458
+ y(K(e, t, s.sortBy, s.sortDirection, u));
459
459
  });
460
460
  }, S = (e) => {
461
- h({
462
- message: i._({
461
+ m({
462
+ message: n._({
463
463
  id: "20Kpaw",
464
464
  values: { flavorName: e }
465
465
  }),
466
466
  timestamp: Date.now()
467
- }), setTimeout(() => h(void 0), 5e3), x();
467
+ }), setTimeout(() => m(void 0), 5e3), x();
468
468
  }, C = (e) => {
469
- h({
470
- message: i._({
469
+ m({
470
+ message: n._({
471
471
  id: "eChIh7",
472
472
  values: { flavorName: e }
473
473
  }),
474
474
  timestamp: Date.now()
475
- }), setTimeout(() => h(void 0), 5e3), x();
476
- }, w = (e) => {
475
+ }), setTimeout(() => m(void 0), 5e3), x();
476
+ }, w = (n) => {
477
477
  let r = {
478
- options: e.options,
479
- sortBy: e.sortBy?.toString() || "name",
480
- sortDirection: e.sortDirection || "asc"
478
+ options: n.options,
479
+ sortBy: n.sortBy?.toString() || "name",
480
+ sortDirection: n.sortDirection || "asc"
481
481
  };
482
- u(r), o({
482
+ c(r), i({
483
483
  search: (e) => ({
484
484
  ...e,
485
485
  sortBy: r.sortBy,
@@ -488,11 +488,11 @@ var Y = ({ client: t, project: n }) => {
488
488
  }),
489
489
  replace: !0
490
490
  }), A(() => {
491
- y(K(t, n, r.sortBy, r.sortDirection, d));
491
+ y(K(e, t, r.sortBy, r.sortDirection, u));
492
492
  });
493
- }, T = (e) => {
494
- let r = typeof e == "string" ? e : "";
495
- f(r), o({
493
+ }, T = (n) => {
494
+ let r = typeof n == "string" ? n : "";
495
+ d(r), i({
496
496
  search: (e) => ({
497
497
  ...e,
498
498
  search: r || void 0,
@@ -500,29 +500,29 @@ var Y = ({ client: t, project: n }) => {
500
500
  }),
501
501
  replace: !0
502
502
  }), A(() => {
503
- y(K(t, n, l.sortBy, l.sortDirection, r));
503
+ y(K(e, t, s.sortBy, s.sortDirection, r));
504
504
  });
505
505
  }, E = M((e) => {
506
- o({ search: (t) => ({
506
+ i({ search: (t) => ({
507
507
  ...t,
508
508
  page: e === 1 ? void 0 : e
509
509
  }) });
510
- }, [o]);
510
+ }, [i]);
511
511
  return /* @__PURE__ */ O("div", {
512
512
  className: "relative",
513
- children: [m && /* @__PURE__ */ D(s, {
513
+ children: [p && /* @__PURE__ */ D(o, {
514
514
  className: "absolute -top-14 right-0 left-0 z-50",
515
- text: m.message,
515
+ text: p.message,
516
516
  variant: "info",
517
- onDismiss: () => h(void 0),
517
+ onDismiss: () => m(void 0),
518
518
  dismissible: !0
519
519
  }), /* @__PURE__ */ D(k, {
520
- fallback: /* @__PURE__ */ O(e, {
520
+ fallback: /* @__PURE__ */ O(_, {
521
521
  className: "fixed inset-0",
522
522
  distribution: "center",
523
523
  alignment: "center",
524
524
  direction: "vertical",
525
- children: [/* @__PURE__ */ D(r, {
525
+ children: [/* @__PURE__ */ D(l, {
526
526
  variant: "primary",
527
527
  size: "large",
528
528
  className: "mb-2"
@@ -531,17 +531,17 @@ var Y = ({ client: t, project: n }) => {
531
531
  children: /* @__PURE__ */ D(J, {
532
532
  flavorsPromise: v,
533
533
  permissionsPromise: b,
534
- client: t,
535
- project: n,
534
+ client: e,
535
+ project: t,
536
536
  onFlavorDeleted: S,
537
537
  onFlavorCreated: C,
538
- searchTerm: d,
538
+ searchTerm: u,
539
539
  setSearchTerm: T,
540
- sortSettings: l,
540
+ sortSettings: s,
541
541
  handleSortChange: w,
542
- createModalOpen: g,
543
- setCreateModalOpen: _,
544
- currentPage: p,
542
+ createModalOpen: h,
543
+ setCreateModalOpen: g,
544
+ currentPage: f,
545
545
  onPageChange: E
546
546
  })
547
547
  })]
@@ -562,4 +562,4 @@ function X() {
562
562
  //#endregion
563
563
  export { X as component };
564
564
 
565
- //# sourceMappingURL=flavors-Bovz-I2U.mjs.map
565
+ //# sourceMappingURL=flavors-pEcGkCut.mjs.map