@cobaltcore-dev/aurora 0.10.0 → 0.12.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 (122) 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-D2nIdJKJ.mjs +110 -0
  6. package/dist/client/ContentHeader-D2nIdJKJ.mjs.map +1 -0
  7. package/dist/client/{DeleteFlavorModal-C3m7bQJu.mjs → DeleteFlavorModal-Dwm0Hh84.mjs} +158 -158
  8. package/dist/client/{DeleteFlavorModal-C3m7bQJu.mjs.map → DeleteFlavorModal-Dwm0Hh84.mjs.map} +1 -1
  9. package/dist/client/{DeleteVersionsModal-CyYZfB8d.mjs → DeleteVersionsModal-DQO8lGmS.mjs} +58 -58
  10. package/dist/client/{DeleteVersionsModal-CyYZfB8d.mjs.map → DeleteVersionsModal-DQO8lGmS.mjs.map} +1 -1
  11. package/dist/client/{EditSecurityGroupModal-DKusxfta.mjs → EditSecurityGroupModal-BGPXglju.mjs} +16 -16
  12. package/dist/client/{EditSecurityGroupModal-DKusxfta.mjs.map → EditSecurityGroupModal-BGPXglju.mjs.map} +1 -1
  13. package/dist/client/{FiltersInput-GzR4D0q6.mjs → FiltersInput-cOaaRpcQ.mjs} +20 -20
  14. package/dist/client/{FiltersInput-GzR4D0q6.mjs.map → FiltersInput-cOaaRpcQ.mjs.map} +1 -1
  15. package/dist/client/{FloatingIpActionModals-CRvROJ3H.mjs → FloatingIpActionModals-RCvaamOg.mjs} +51 -51
  16. package/dist/client/{FloatingIpActionModals-CRvROJ3H.mjs.map → FloatingIpActionModals-RCvaamOg.mjs.map} +1 -1
  17. package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs → ImageToastNotifications-ClO-1yOH.mjs} +341 -341
  18. package/dist/client/{ImageToastNotifications-BuDXpTkl.mjs.map → ImageToastNotifications-ClO-1yOH.mjs.map} +1 -1
  19. package/dist/client/{RouteError-DVAiT0mT.mjs → RouteError-BmZRk_ss.mjs} +2 -2
  20. package/dist/client/{RouteError-DVAiT0mT.mjs.map → RouteError-BmZRk_ss.mjs.map} +1 -1
  21. package/dist/client/{SortInput-DLcusjGZ.mjs → SortInput-DjaEHvcO.mjs} +6 -6
  22. package/dist/client/{SortInput-DLcusjGZ.mjs.map → SortInput-DjaEHvcO.mjs.map} +1 -1
  23. package/dist/client/{_auth-DXJkv9QO.mjs → _auth-DnImOqR-.mjs} +2 -2
  24. package/dist/client/_auth-DnImOqR-.mjs.map +1 -0
  25. package/dist/client/{_flavorId-Dy7EYQum.mjs → _flavorId-CtQEd28h.mjs} +9 -9
  26. package/dist/client/{_flavorId-Dy7EYQum.mjs.map → _flavorId-CtQEd28h.mjs.map} +1 -1
  27. package/dist/client/{_flavorId-DsD2VTKA.mjs → _flavorId-DVsGdXUf.mjs} +42 -42
  28. package/dist/client/{_flavorId-DsD2VTKA.mjs.map → _flavorId-DVsGdXUf.mjs.map} +1 -1
  29. package/dist/client/{_floatingIpId-j17rCQqG2.mjs → _floatingIpId-CKMq7-4p2.mjs} +32 -32
  30. package/dist/client/{_floatingIpId-j17rCQqG2.mjs.map → _floatingIpId-CKMq7-4p2.mjs.map} +1 -1
  31. package/dist/client/{_floatingIpId-BjVbeNw_.mjs → _floatingIpId-DvTh6vdB.mjs} +2 -2
  32. package/dist/client/{_floatingIpId-BjVbeNw_.mjs.map → _floatingIpId-DvTh6vdB.mjs.map} +1 -1
  33. package/dist/client/{_imageId-BjfhqAje.mjs → _imageId-xG8hC49j.mjs} +129 -129
  34. package/dist/client/_imageId-xG8hC49j.mjs.map +1 -0
  35. package/dist/client/{_pcaId-Bo7yHkNW.mjs → _pcaId-Db_t0x6O.mjs} +149 -149
  36. package/dist/client/{_pcaId-Bo7yHkNW.mjs.map → _pcaId-Db_t0x6O.mjs.map} +1 -1
  37. package/dist/client/{_pcaId-CKkCVC7b.mjs → _pcaId-WCJoukIk.mjs} +2 -2
  38. package/dist/client/{_pcaId-CKkCVC7b.mjs.map → _pcaId-WCJoukIk.mjs.map} +1 -1
  39. package/dist/client/{_projectId-B_2sZKk-.mjs → _projectId-B2cvskLV.mjs} +2 -2
  40. package/dist/client/_projectId-B2cvskLV.mjs.map +1 -0
  41. package/dist/client/{_projectId-Dbck_MFa.mjs → _projectId-BCMkaH_h.mjs} +85 -85
  42. package/dist/client/_projectId-BCMkaH_h.mjs.map +1 -0
  43. package/dist/client/{_projectId-CARHuZTU.mjs → _projectId-BdqRntcN.mjs} +15 -14
  44. package/dist/client/_projectId-BdqRntcN.mjs.map +1 -0
  45. package/dist/client/{_projectId-CY8W0IF6.mjs → _projectId-C8RGOqZb.mjs} +3 -3
  46. package/dist/client/{_projectId-CY8W0IF6.mjs.map → _projectId-C8RGOqZb.mjs.map} +1 -1
  47. package/dist/client/{_securityGroupId-gSEZbBII.mjs → _securityGroupId-CyQ3XmpB.mjs} +2 -2
  48. package/dist/client/{_securityGroupId-gSEZbBII.mjs.map → _securityGroupId-CyQ3XmpB.mjs.map} +1 -1
  49. package/dist/client/{_securityGroupId-CkN0CGVg.mjs → _securityGroupId-DMi7YRux.mjs} +352 -352
  50. package/dist/client/{_securityGroupId-CkN0CGVg.mjs.map → _securityGroupId-DMi7YRux.mjs.map} +1 -1
  51. package/dist/client/_storageType-Bb6YZgXf.mjs +3002 -0
  52. package/dist/client/_storageType-Bb6YZgXf.mjs.map +1 -0
  53. package/dist/client/{_storageType-6k8lUnQo.mjs → _storageType-g1zkFFRh.mjs} +2 -2
  54. package/dist/client/{_storageType-6k8lUnQo.mjs.map → _storageType-g1zkFFRh.mjs.map} +1 -1
  55. package/dist/client/_storageType-zeSZe--V.mjs.map +1 -1
  56. package/dist/client/{about-Nsxkyh9U.mjs → about-B4sGnxeW.mjs} +8 -8
  57. package/dist/client/about-B4sGnxeW.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-DgeVmENN.mjs} +3632 -3159
  61. package/dist/client/{build-BdRRmNf5.mjs.map → build-DgeVmENN.mjs.map} +1 -1
  62. package/dist/client/{constants-PMXUGI4Q.mjs → constants-D6IO9bPs.mjs} +17 -17
  63. package/dist/client/{constants-PMXUGI4Q.mjs.map → constants-D6IO9bPs.mjs.map} +1 -1
  64. package/dist/client/{flavors-p2TKcqP-.mjs → flavors-CO5l_6d0.mjs} +164 -164
  65. package/dist/client/{flavors-p2TKcqP-.mjs.map → flavors-CO5l_6d0.mjs.map} +1 -1
  66. package/dist/client/{flavors-BclEwobO.mjs → flavors-D4nGSs0r.mjs} +2 -2
  67. package/dist/client/{flavors-BclEwobO.mjs.map → flavors-D4nGSs0r.mjs.map} +1 -1
  68. package/dist/client/flavors-DWMZ6TuJ.mjs.map +1 -1
  69. package/dist/client/{floatingips-ph0ZxJw8.mjs → floatingips-ClkRV7a7.mjs} +115 -115
  70. package/dist/client/floatingips-ClkRV7a7.mjs.map +1 -0
  71. package/dist/client/{hooks-dSArr2Ca.mjs → hooks-CMgoYcDG.mjs} +1 -1
  72. package/dist/client/{images-Dbjo4yKn.mjs → images-B5ktfqg6.mjs} +2 -2
  73. package/dist/client/images-B5ktfqg6.mjs.map +1 -0
  74. package/dist/client/{images-BblnyWJq.mjs → images-C_OYLPqv.mjs} +425 -425
  75. package/dist/client/{images-BblnyWJq.mjs.map → images-C_OYLPqv.mjs.map} +1 -1
  76. package/dist/client/{images-CXdghaMW.mjs → images-CvPxoPC0.mjs} +2 -2
  77. package/dist/client/{images-CXdghaMW.mjs.map → images-CvPxoPC0.mjs.map} +1 -1
  78. package/dist/client/images-NBf2bV43.mjs.map +1 -1
  79. package/dist/client/index.js +337 -337
  80. package/dist/client/index.js.map +1 -1
  81. package/dist/client/network-DuZm76BZ.mjs.map +1 -1
  82. package/dist/client/{objects-Bw25cE1m.mjs → objects-D0grS6pk.mjs} +1645 -1617
  83. package/dist/client/objects-D0grS6pk.mjs.map +1 -0
  84. package/dist/client/{objects-B9Jh3SMG.mjs → objects-UQyUQxBj.mjs} +2 -2
  85. package/dist/client/{objects-B9Jh3SMG.mjs.map → objects-UQyUQxBj.mjs.map} +1 -1
  86. package/dist/client/objects-o2Cj_ndZ.mjs.map +1 -1
  87. package/dist/client/{pca-CiLPHmK7.mjs → pca-BJPxOIgq.mjs} +68 -68
  88. package/dist/client/{pca-CiLPHmK7.mjs.map → pca-BJPxOIgq.mjs.map} +1 -1
  89. package/dist/client/{pca-DUrQ_tIg.mjs → pca-C9MKOi3Z.mjs} +2 -2
  90. package/dist/client/{pca-DUrQ_tIg.mjs.map → pca-C9MKOi3Z.mjs.map} +1 -1
  91. package/dist/client/{projects-DNd3UTas.mjs → projects-C3wR-lvM.mjs} +6 -9
  92. package/dist/client/projects-C3wR-lvM.mjs.map +1 -0
  93. package/dist/client/{projects-B5topuei.mjs → projects-CGjBlG2w.mjs} +2 -2
  94. package/dist/client/{projects-B5topuei.mjs.map → projects-CGjBlG2w.mjs.map} +1 -1
  95. package/dist/client/{projects-CHYn7L5e.mjs → projects-DvSiI5Vg.mjs} +2 -2
  96. package/dist/client/projects-DvSiI5Vg.mjs.map +1 -0
  97. package/dist/client/{securitygroups-CcA2TpAt.mjs → securitygroups-n8ujBpJP.mjs} +119 -119
  98. package/dist/client/securitygroups-n8ujBpJP.mjs.map +1 -0
  99. package/dist/client/{useListWithFiltering-CVzhMyEA.mjs → useListWithFiltering-BuhE81I6.mjs} +12 -12
  100. package/dist/client/{useListWithFiltering-CVzhMyEA.mjs.map → useListWithFiltering-BuhE81I6.mjs.map} +1 -1
  101. package/dist/server/index.d.ts +6 -2
  102. package/dist/server/index.js +701 -423
  103. package/package.json +4 -4
  104. package/dist/client/AuthProvider-Co4d0WzB.mjs +0 -100
  105. package/dist/client/AuthProvider-Co4d0WzB.mjs.map +0 -1
  106. package/dist/client/ContentHeader-D4jlOG-9.mjs +0 -96
  107. package/dist/client/ContentHeader-D4jlOG-9.mjs.map +0 -1
  108. package/dist/client/_auth-DXJkv9QO.mjs.map +0 -1
  109. package/dist/client/_imageId-BjfhqAje.mjs.map +0 -1
  110. package/dist/client/_projectId-B_2sZKk-.mjs.map +0 -1
  111. package/dist/client/_projectId-CARHuZTU.mjs.map +0 -1
  112. package/dist/client/_projectId-Dbck_MFa.mjs.map +0 -1
  113. package/dist/client/_storageType-CLTxXjQZ.mjs +0 -3048
  114. package/dist/client/_storageType-CLTxXjQZ.mjs.map +0 -1
  115. package/dist/client/about-Nsxkyh9U.mjs.map +0 -1
  116. package/dist/client/aurora-DDzsst74.mjs.map +0 -1
  117. package/dist/client/floatingips-ph0ZxJw8.mjs.map +0 -1
  118. package/dist/client/images-Dbjo4yKn.mjs.map +0 -1
  119. package/dist/client/objects-Bw25cE1m.mjs.map +0 -1
  120. package/dist/client/projects-CHYn7L5e.mjs.map +0 -1
  121. package/dist/client/projects-DNd3UTas.mjs.map +0 -1
  122. package/dist/client/securitygroups-CcA2TpAt.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
- import { D as e, E as t, F as n, G as r, H as i, J as a, K as o, L as s, N as c, Q as l, U as u, Y as d, _ as f, ct as p, et as m, j as h, k as g, ot as _, p as v, tt as y, x as b } from "./build-BdRRmNf5.mjs";
1
+ import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, K as c, P as l, R as u, W as d, Y as f, at as p, et as m, o as h, q as g, r as _, rt as v, tt as y, y as b } from "./build-DgeVmENN.mjs";
2
2
  import { r as x } from "./trpcClient-BzPUgiM2.mjs";
3
- import { t as S } from "./_pcaId-CKkCVC7b.mjs";
3
+ import { t as S } from "./_pcaId-WCJoukIk.mjs";
4
4
  import { t as C } from "./useModal-DCs1OJh7.mjs";
5
5
  import { t as w } from "./useProjectId-DBc5lpoU.mjs";
6
- import "./hooks-dSArr2Ca.mjs";
7
- import { r as T, t as E } from "./constants-PMXUGI4Q.mjs";
6
+ import "./hooks-CMgoYcDG.mjs";
7
+ import { r as T, t as E } from "./constants-D6IO9bPs.mjs";
8
8
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
9
9
  import { Fragment as A, useRef as j, useState as M } from "react";
10
10
  import { useNavigate as N } from "@tanstack/react-router";
@@ -13,7 +13,7 @@ import { z as I } from "zod";
13
13
  import { useForm as L, useStore as R } from "@tanstack/react-form";
14
14
  //#region src/client/routes/_auth/projects/$projectId/services/pca/$pcaId/-components/-table/PcaCertificatesTableRow.tsx
15
15
  var z = ({ certificate: t }) => {
16
- let { i18n: n, _: i } = F(), a = N(), o = () => a({
16
+ let { i18n: n, _: r } = F(), a = N(), s = () => a({
17
17
  from: "/projects/$projectId/services/pca/$pcaId/",
18
18
  to: "$certificateId",
19
19
  params: (e) => ({
@@ -21,57 +21,57 @@ var z = ({ certificate: t }) => {
21
21
  certificateId: t.id
22
22
  })
23
23
  });
24
- return /*#__PURE__*/ k(c, {
24
+ return /*#__PURE__*/ k(i, {
25
25
  "data-testid": `pca-certificate-row-${t.id}`,
26
- onClick: o,
26
+ onClick: s,
27
27
  children: [
28
- /*#__PURE__*/ O(r, { children: t.certificate_authority_id }),
29
- /*#__PURE__*/ O(r, { children: t.id }),
30
- /*#__PURE__*/ O(r, {
28
+ /*#__PURE__*/ O(o, { children: t.certificate_authority_id }),
29
+ /*#__PURE__*/ O(o, { children: t.id }),
30
+ /*#__PURE__*/ O(o, {
31
31
  onClick: (e) => e.stopPropagation(),
32
32
  className: "items-end pr-0",
33
- children: /*#__PURE__*/ O(e, { children: /*#__PURE__*/ O(_, { children: /*#__PURE__*/ O(g, {
33
+ children: /*#__PURE__*/ O(v, { children: /*#__PURE__*/ O(e, { children: /*#__PURE__*/ O(p, {
34
34
  label: n._({ id: "v0hPHE" }),
35
- onClick: o
35
+ onClick: s
36
36
  }) }) })
37
37
  })
38
38
  ]
39
39
  }, t.id);
40
- }, B = ({ open: e, onClose: t, pcaId: n }) => {
41
- let { i18n: r, _: o } = F(), s = N(), c = w(), l = x.useUtils(), { isPending: d, ...f } = x.services.pca.createCertificate.useMutation({ onSettled: () => l.services.pca.listCertificates.invalidate() }), m = L({
40
+ }, B = ({ open: e, onClose: n, pcaId: r }) => {
41
+ let { i18n: i, _: a } = F(), o = N(), l = w(), u = x.useUtils(), { isPending: d, ...f } = x.services.pca.createCertificate.useMutation({ onSettled: () => u.services.pca.listCertificates.invalidate() }), p = L({
42
42
  defaultValues: { csr: "" },
43
43
  validators: { onSubmit: I.object({ csr: I.string().trim().min(1) }) },
44
44
  onSubmit: async ({ value: e }) => {
45
45
  if (d) return;
46
46
  let t = await f.mutateAsync({
47
- project_id: c,
48
- certificate_authority_id: n,
47
+ project_id: l,
48
+ certificate_authority_id: r,
49
49
  csr: e.csr.replace(/\\n/g, "\n"),
50
50
  configuration: { validity: { not_after: Math.floor(Date.now() / 1e3) + 480 * 60 } }
51
51
  });
52
- h(), await s({
52
+ g(), await o({
53
53
  to: "/projects/$projectId/services/pca/$pcaId/$certificateId",
54
54
  params: {
55
- projectId: c,
56
- pcaId: n,
55
+ projectId: l,
56
+ pcaId: r,
57
57
  certificateId: t.id
58
58
  }
59
59
  });
60
60
  }
61
- }), h = () => {
62
- d || (m.reset(), f.reset(), t());
63
- }, g = R(m.store, (e) => e.values.csr);
64
- return /*#__PURE__*/ k(p, {
61
+ }), g = () => {
62
+ d || (p.reset(), f.reset(), n());
63
+ }, v = R(p.store, (e) => e.values.csr);
64
+ return /*#__PURE__*/ k(_, {
65
65
  open: e,
66
66
  size: "large",
67
- title: r._({ id: "9kDPaB" }),
68
- onCancel: h,
69
- cancelButtonLabel: r._({ id: "dEgA5A" }),
70
- confirmButtonLabel: r._({ id: "tfDRzk" }),
71
- onConfirm: m.handleSubmit,
72
- disableConfirmButton: d || !(g.trim().length > 0),
67
+ title: i._({ id: "9kDPaB" }),
68
+ onCancel: g,
69
+ cancelButtonLabel: i._({ id: "dEgA5A" }),
70
+ confirmButtonLabel: i._({ id: "tfDRzk" }),
71
+ onConfirm: p.handleSubmit,
72
+ disableConfirmButton: d || !(v.trim().length > 0),
73
73
  children: [
74
- f.error && /*#__PURE__*/ O(a, {
74
+ f.error && /*#__PURE__*/ O(t, {
75
75
  dismissible: !1,
76
76
  variant: "error",
77
77
  className: "mb-4",
@@ -79,26 +79,26 @@ var z = ({ certificate: t }) => {
79
79
  }),
80
80
  d && /*#__PURE__*/ k("div", {
81
81
  className: "mb-4 flex items-center justify-center gap-2",
82
- children: [/*#__PURE__*/ O(i, { variant: "primary" }), /*#__PURE__*/ O("span", {
82
+ children: [/*#__PURE__*/ O(c, { variant: "primary" }), /*#__PURE__*/ O("span", {
83
83
  className: "text-theme-high text-sm",
84
84
  children: /*#__PURE__*/ O(P, { id: "NG+FZC" })
85
85
  })]
86
86
  }),
87
- !d && /*#__PURE__*/ O(b, {
87
+ !d && /*#__PURE__*/ O(h, {
88
88
  className: "mb-0",
89
89
  id: "issue-end-entity-certificate-form",
90
90
  onSubmit: (e) => {
91
- e.preventDefault(), m.handleSubmit();
91
+ e.preventDefault(), p.handleSubmit();
92
92
  },
93
- children: /*#__PURE__*/ O(v, { children: /*#__PURE__*/ O(m.Field, {
93
+ children: /*#__PURE__*/ O(s, { children: /*#__PURE__*/ O(p.Field, {
94
94
  name: "csr",
95
- children: (e) => /*#__PURE__*/ O(u, {
95
+ children: (e) => /*#__PURE__*/ O(m, {
96
96
  id: e.name,
97
97
  name: e.name,
98
98
  value: e.state.value,
99
99
  onBlur: e.handleBlur,
100
100
  onChange: (t) => e.handleChange(t.target.value),
101
- placeholder: r._({ id: "h6JDtI" }),
101
+ placeholder: i._({ id: "h6JDtI" }),
102
102
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
103
103
  disabled: d
104
104
  })
@@ -106,158 +106,158 @@ var z = ({ certificate: t }) => {
106
106
  })
107
107
  ]
108
108
  });
109
- }, V = 50, H = ({ pcaId: e, pcaState: n }) => {
110
- let { i18n: a, _: o } = F(), u = w(), [p, h] = C(!1), [g, _] = M([void 0]), [v, y] = M(1), b = () => [
111
- a._({ id: "c1OE1x" }),
112
- a._({ id: "S0kLOH" }),
109
+ }, V = 50, H = ({ pcaId: e, pcaState: t }) => {
110
+ let { i18n: r, _: a } = F(), s = w(), [d, p] = C(!1), [m, h] = M([void 0]), [g, _] = M(1), v = () => [
111
+ r._({ id: "c1OE1x" }),
112
+ r._({ id: "S0kLOH" }),
113
113
  ""
114
- ], S = b().length, T = g[v - 1], { data: E, isLoading: A, isError: j, error: N } = x.services.pca.listCertificates.useQuery({
115
- project_id: u,
114
+ ], S = v().length, T = m[g - 1], { data: E, isLoading: A, isError: j, error: N } = x.services.pca.listCertificates.useQuery({
115
+ project_id: s,
116
116
  certificate_authority_id: e,
117
117
  limit: V,
118
118
  next_page_marker: T
119
- }), I = E?.certificates ?? [], L = E?.next_page_marker, R = L ? v + 1 : v, H = Math.max(R, g.length), U = (e) => {
120
- e < 1 || e > H || (e > v && L && _((t) => {
119
+ }), I = E?.certificates ?? [], L = E?.next_page_marker, R = L ? g + 1 : g, H = Math.max(R, m.length), U = (e) => {
120
+ e < 1 || e > H || (e > g && L && h((t) => {
121
121
  let n = [...t];
122
122
  return n[e - 1] = L, n;
123
- }), y(e));
123
+ }), _(e));
124
124
  };
125
- return A ? /*#__PURE__*/ k(d, {
125
+ return A ? /*#__PURE__*/ k(y, {
126
126
  className: "py-8",
127
127
  distribution: "center",
128
128
  alignment: "center",
129
129
  direction: "vertical",
130
- children: [/*#__PURE__*/ O(i, {
130
+ children: [/*#__PURE__*/ O(c, {
131
131
  variant: "primary",
132
132
  size: "large",
133
133
  className: "mb-2"
134
134
  }), /*#__PURE__*/ O(P, { id: "T9o/az" })]
135
- }) : j ? /*#__PURE__*/ O(d, {
135
+ }) : j ? /*#__PURE__*/ O(y, {
136
136
  className: "py-8",
137
137
  distribution: "center",
138
138
  alignment: "center",
139
139
  direction: "vertical",
140
- children: N?.message ?? a._({ id: "hz9da7" })
140
+ children: N?.message ?? r._({ id: "hz9da7" })
141
141
  }) : /*#__PURE__*/ k("div", {
142
142
  className: "relative",
143
143
  children: [
144
- n === "READY" && /*#__PURE__*/ k(D, { children: [/*#__PURE__*/ O(d, {
144
+ t === "READY" && /*#__PURE__*/ k(D, { children: [/*#__PURE__*/ O(y, {
145
145
  className: "pt-3 pb-2",
146
146
  distribution: "end",
147
- children: /*#__PURE__*/ O(f, {
147
+ children: /*#__PURE__*/ O(b, {
148
148
  variant: "primary",
149
- label: a._({ id: "9kDPaB" }),
150
- onClick: h
149
+ label: r._({ id: "9kDPaB" }),
150
+ onClick: p
151
151
  })
152
- }), p && /*#__PURE__*/ O(B, {
153
- open: p,
154
- onClose: h,
152
+ }), d && /*#__PURE__*/ O(B, {
153
+ open: d,
154
+ onClose: p,
155
155
  pcaId: e
156
156
  })] }),
157
- I.length === 0 && v === 1 ? /*#__PURE__*/ O(m, {
157
+ I.length === 0 && g === 1 ? /*#__PURE__*/ O(l, {
158
158
  columns: S,
159
159
  className: "pca-certificates",
160
160
  "data-testid": "no-pcas-certificates",
161
- children: /*#__PURE__*/ O(c, { children: /*#__PURE__*/ k(r, {
161
+ children: /*#__PURE__*/ O(i, { children: /*#__PURE__*/ k(o, {
162
162
  colSpan: S,
163
- children: [/*#__PURE__*/ O(l, { children: /*#__PURE__*/ O(P, { id: "kNeZrV" }) }), /*#__PURE__*/ O("p", { children: /*#__PURE__*/ O(P, { id: "7huC4O" }) })]
163
+ children: [/*#__PURE__*/ O(f, { children: /*#__PURE__*/ O(P, { id: "kNeZrV" }) }), /*#__PURE__*/ O("p", { children: /*#__PURE__*/ O(P, { id: "7huC4O" }) })]
164
164
  }) })
165
- }) : /*#__PURE__*/ k(m, {
165
+ }) : /*#__PURE__*/ k(l, {
166
166
  columns: S,
167
- children: [/*#__PURE__*/ O(c, { children: b().map((e) => /*#__PURE__*/ O(s, { children: e }, e)) }), I.map((e) => /*#__PURE__*/ O(z, { certificate: e }, e.id))]
167
+ children: [/*#__PURE__*/ O(i, { children: v().map((e) => /*#__PURE__*/ O(u, { children: e }, e)) }), I.map((e) => /*#__PURE__*/ O(z, { certificate: e }, e.id))]
168
168
  }),
169
169
  H > 1 && /*#__PURE__*/ O("div", {
170
170
  className: "flex justify-center py-4",
171
- children: /*#__PURE__*/ O(t, {
171
+ children: /*#__PURE__*/ O(n, {
172
172
  variant: "input",
173
- currentPage: v,
173
+ currentPage: g,
174
174
  pages: H,
175
- onPressPrevious: () => U(v - 1),
176
- onPressNext: () => U(v + 1)
175
+ onPressPrevious: () => U(g - 1),
176
+ onPressNext: () => U(g + 1)
177
177
  })
178
178
  })
179
179
  ]
180
180
  });
181
- }, U = 86400, W = ({ open: e, onClose: t, pca: n }) => {
182
- let { i18n: r, _: o } = F(), s = w(), c = x.useUtils(), { isPending: l, ...u } = x.services.pca.createCertificate.useMutation({ onSettled: () => c.services.pca.listCertificates.invalidate() });
183
- return /*#__PURE__*/ k(p, {
181
+ }, U = 86400, W = ({ open: e, onClose: n, pca: r }) => {
182
+ let { i18n: i, _: a } = F(), o = w(), s = x.useUtils(), { isPending: l, ...u } = x.services.pca.createCertificate.useMutation({ onSettled: () => s.services.pca.listCertificates.invalidate() });
183
+ return /*#__PURE__*/ k(_, {
184
184
  open: e,
185
- title: r._({ id: "AirKNZ" }),
185
+ title: i._({ id: "AirKNZ" }),
186
186
  onCancel: () => {
187
- l || (u.reset(), t());
187
+ l || (u.reset(), n());
188
188
  },
189
- cancelButtonLabel: r._({ id: "dEgA5A" }),
190
- confirmButtonLabel: r._({ id: "rx4T2i" }),
189
+ cancelButtonLabel: i._({ id: "dEgA5A" }),
190
+ confirmButtonLabel: i._({ id: "rx4T2i" }),
191
191
  onConfirm: async () => {
192
- l || !n.csr || (await u.mutateAsync({
193
- project_id: s,
194
- certificate_authority_id: n.id,
195
- csr: n.csr,
192
+ l || !r.csr || (await u.mutateAsync({
193
+ project_id: o,
194
+ certificate_authority_id: r.id,
195
+ csr: r.csr,
196
196
  configuration: { validity: { not_after: Math.floor(Date.now() / 1e3) + U } }
197
- }), t());
197
+ }), n());
198
198
  },
199
- disableConfirmButton: l || !n.csr,
200
- children: [u.error && /*#__PURE__*/ O(a, {
199
+ disableConfirmButton: l || !r.csr,
200
+ children: [u.error && /*#__PURE__*/ O(t, {
201
201
  dismissible: !1,
202
202
  variant: "error",
203
203
  className: "mb-4",
204
204
  children: u.error?.message
205
205
  }), l ? /*#__PURE__*/ k("div", {
206
206
  className: "flex items-center justify-center gap-2",
207
- children: [/*#__PURE__*/ O(i, { variant: "primary" }), /*#__PURE__*/ O("span", {
207
+ children: [/*#__PURE__*/ O(c, { variant: "primary" }), /*#__PURE__*/ O("span", {
208
208
  className: "text-theme-high text-sm",
209
209
  children: /*#__PURE__*/ O(P, { id: "1DbiGM" })
210
210
  })]
211
211
  }) : /*#__PURE__*/ O(P, { id: "MI6aae" })]
212
212
  });
213
- }, G = ({ open: e, onClose: t, pcaId: n }) => {
214
- let { i18n: r, _: o } = F(), s = w(), c = x.useUtils(), { isPending: l, ...d } = x.services.pca.import.useMutation({ onSettled: () => c.services.pca.getById.invalidate() }), m = L({
213
+ }, G = ({ open: e, onClose: n, pcaId: r }) => {
214
+ let { i18n: i, _: a } = F(), o = w(), l = x.useUtils(), { isPending: u, ...d } = x.services.pca.import.useMutation({ onSettled: () => l.services.pca.getById.invalidate() }), f = L({
215
215
  defaultValues: { imported_certificate_chain: "" },
216
216
  validators: { onSubmit: I.object({ imported_certificate_chain: I.string().trim().min(1) }) },
217
217
  onSubmit: async () => {
218
- l || (await d.mutateAsync({
219
- project_id: s,
220
- certificate_authority_id: n,
221
- imported_certificate_chain: m.state.values.imported_certificate_chain
222
- }), h());
218
+ u || (await d.mutateAsync({
219
+ project_id: o,
220
+ certificate_authority_id: r,
221
+ imported_certificate_chain: f.state.values.imported_certificate_chain
222
+ }), p());
223
223
  }
224
- }), h = () => {
225
- l || (m.reset(), d.reset(), t());
226
- }, g = j(null), _ = R(m.store, (e) => e.values.imported_certificate_chain);
227
- return /*#__PURE__*/ k(p, {
224
+ }), p = () => {
225
+ u || (f.reset(), d.reset(), n());
226
+ }, g = j(null), v = R(f.store, (e) => e.values.imported_certificate_chain);
227
+ return /*#__PURE__*/ k(_, {
228
228
  open: e,
229
229
  size: "large",
230
- title: r._({ id: "+1rTEL" }),
231
- onCancel: h,
232
- cancelButtonLabel: r._({ id: "dEgA5A" }),
233
- confirmButtonLabel: r._({ id: "tfDRzk" }),
234
- onConfirm: m.handleSubmit,
235
- disableConfirmButton: l || !_.trim(),
230
+ title: i._({ id: "+1rTEL" }),
231
+ onCancel: p,
232
+ cancelButtonLabel: i._({ id: "dEgA5A" }),
233
+ confirmButtonLabel: i._({ id: "tfDRzk" }),
234
+ onConfirm: f.handleSubmit,
235
+ disableConfirmButton: u || !v.trim(),
236
236
  children: [
237
- d.error && /*#__PURE__*/ O(a, {
237
+ d.error && /*#__PURE__*/ O(t, {
238
238
  dismissible: !1,
239
239
  variant: "error",
240
240
  className: "mb-4",
241
241
  children: d.error?.message
242
242
  }),
243
- l && /*#__PURE__*/ k("div", {
243
+ u && /*#__PURE__*/ k("div", {
244
244
  className: "mb-4 flex items-center justify-center gap-2",
245
- children: [/*#__PURE__*/ O(i, { variant: "primary" }), /*#__PURE__*/ O("span", {
245
+ children: [/*#__PURE__*/ O(c, { variant: "primary" }), /*#__PURE__*/ O("span", {
246
246
  className: "text-theme-high text-sm",
247
247
  children: /*#__PURE__*/ O(P, { id: "pYR76U" })
248
248
  })]
249
249
  }),
250
- !l && /*#__PURE__*/ O(b, {
250
+ !u && /*#__PURE__*/ O(h, {
251
251
  className: "mb-0",
252
252
  id: "import-externally-signed-certificate-form",
253
253
  onSubmit: (e) => {
254
- e.preventDefault(), m.handleSubmit();
254
+ e.preventDefault(), f.handleSubmit();
255
255
  },
256
- children: /*#__PURE__*/ k(v, { children: [/*#__PURE__*/ k("div", {
256
+ children: /*#__PURE__*/ k(s, { children: [/*#__PURE__*/ k("div", {
257
257
  className: "mb-2",
258
- children: [/*#__PURE__*/ O(f, {
258
+ children: [/*#__PURE__*/ O(b, {
259
259
  onClick: () => g.current?.click(),
260
- children: r._({ id: "E7kdtm" })
260
+ children: i._({ id: "E7kdtm" })
261
261
  }), /*#__PURE__*/ O("input", {
262
262
  ref: g,
263
263
  type: "file",
@@ -276,37 +276,37 @@ var z = ({ certificate: t }) => {
276
276
  } catch {
277
277
  r = n;
278
278
  }
279
- m.setFieldValue("imported_certificate_chain", r);
279
+ f.setFieldValue("imported_certificate_chain", r);
280
280
  } catch (e) {
281
281
  console.error("Failed to read certificate file:", e);
282
282
  }
283
283
  }, n.readAsText(t);
284
284
  }
285
285
  })]
286
- }), /*#__PURE__*/ O(m.Field, {
286
+ }), /*#__PURE__*/ O(f.Field, {
287
287
  name: "imported_certificate_chain",
288
- children: (e) => /*#__PURE__*/ O(u, {
288
+ children: (e) => /*#__PURE__*/ O(m, {
289
289
  id: e.name,
290
290
  name: e.name,
291
291
  value: e.state.value,
292
292
  onBlur: e.handleBlur,
293
293
  onChange: (t) => e.handleChange(t.target.value),
294
- placeholder: r._({ id: "FAA/qW" }),
294
+ placeholder: i._({ id: "FAA/qW" }),
295
295
  errortext: e.state.meta.errors.map((e) => e?.message).join(", "),
296
- disabled: l
296
+ disabled: u
297
297
  })
298
298
  })] })
299
299
  })
300
300
  ]
301
301
  });
302
302
  }, K = ({ pca: e }) => {
303
- let { i18n: t, _: r } = F(), i = N(), a = w(), s = e.configuration?.subject?.common_name ?? "", c = t._({
303
+ let { i18n: t, _: n } = F(), i = N(), o = w(), s = e.configuration?.subject?.common_name ?? "", c = t._({
304
304
  id: "NZVIMV",
305
305
  values: { subjectCommonName: s }
306
- }), [l, u] = C(!1), [p, m] = C(!1), [g, _] = C(!1), v = () => i({
306
+ }), [l, u] = C(!1), [f, p] = C(!1), [m, h] = C(!1), _ = () => i({
307
307
  to: "/projects/$projectId/services/pca",
308
- params: { projectId: a }
309
- }), b = [
308
+ params: { projectId: o }
309
+ }), v = [
310
310
  {
311
311
  label: t._({ id: "c1OE1x" }),
312
312
  value: e.id
@@ -325,22 +325,22 @@ var z = ({ certificate: t }) => {
325
325
  }
326
326
  ];
327
327
  return /*#__PURE__*/ k(D, { children: [
328
- /*#__PURE__*/ k(d, {
328
+ /*#__PURE__*/ k(y, {
329
329
  direction: "vertical",
330
330
  gap: "3",
331
331
  children: [
332
- /*#__PURE__*/ k(d, {
332
+ /*#__PURE__*/ k(y, {
333
333
  direction: "horizontal",
334
334
  distribution: "between",
335
- children: [/*#__PURE__*/ k(d, {
335
+ children: [/*#__PURE__*/ k(y, {
336
336
  gap: "2",
337
337
  alignment: "center",
338
338
  children: [/*#__PURE__*/ O("div", {
339
339
  className: "text-theme-default text-2xl font-semibold",
340
340
  children: `${e.configuration?.subject?.common_name} Certificate Authority Details`
341
341
  }), E[e.state].badge]
342
- }), /*#__PURE__*/ O(f, {
343
- onClick: _,
342
+ }), /*#__PURE__*/ O(b, {
343
+ onClick: h,
344
344
  children: /*#__PURE__*/ O(P, { id: "Blsc/x" })
345
345
  })]
346
346
  }),
@@ -348,38 +348,38 @@ var z = ({ certificate: t }) => {
348
348
  className: "text-theme-highest text-sm",
349
349
  children: /*#__PURE__*/ O(P, { id: "dxMaZH" })
350
350
  }),
351
- e.state === "AWAITING_CERTIFICATE" && /*#__PURE__*/ k(d, {
351
+ e.state === "AWAITING_CERTIFICATE" && /*#__PURE__*/ k(y, {
352
352
  direction: "vertical",
353
353
  gap: "1",
354
354
  className: "bg-dt-background mb-1 rounded-sm p-2",
355
- children: [/*#__PURE__*/ k(d, {
355
+ children: [/*#__PURE__*/ k(y, {
356
356
  direction: "vertical",
357
357
  gap: "1",
358
358
  children: [/*#__PURE__*/ O("div", {
359
359
  className: "text-base font-bold",
360
360
  children: /*#__PURE__*/ O(P, { id: "cUKFby" })
361
361
  }), /*#__PURE__*/ O("div", { children: /*#__PURE__*/ O(P, { id: "+HVj+D" }) })]
362
- }), /*#__PURE__*/ k(d, {
362
+ }), /*#__PURE__*/ k(y, {
363
363
  direction: "horizontal",
364
364
  gap: "2",
365
365
  distribution: "end",
366
- children: [/*#__PURE__*/ O(f, {
366
+ children: [/*#__PURE__*/ O(b, {
367
367
  onClick: u,
368
368
  children: /*#__PURE__*/ O(P, { id: "AirKNZ" })
369
- }), /*#__PURE__*/ O(f, {
370
- onClick: m,
369
+ }), /*#__PURE__*/ O(b, {
370
+ onClick: p,
371
371
  children: /*#__PURE__*/ O(P, { id: "3uDz8n" })
372
372
  })]
373
373
  })]
374
374
  }),
375
- /*#__PURE__*/ k(d, {
375
+ /*#__PURE__*/ k(y, {
376
376
  gap: "4",
377
377
  className: "grid grid-cols-2 items-start",
378
- children: [/*#__PURE__*/ O(y, {
378
+ children: [/*#__PURE__*/ O(a, {
379
379
  alignTerms: "right",
380
380
  className: "w-full",
381
- children: b.map(({ label: e, value: t }) => /*#__PURE__*/ k(A, { children: [/*#__PURE__*/ O(o, { children: e }), /*#__PURE__*/ O(n, { children: t || "—" })] }, e))
382
- }), /*#__PURE__*/ O(h, {
381
+ children: v.map(({ label: e, value: t }) => /*#__PURE__*/ k(A, { children: [/*#__PURE__*/ O(g, { children: e }), /*#__PURE__*/ O(r, { children: t || "—" })] }, e))
382
+ }), /*#__PURE__*/ O(d, {
383
383
  heading: c,
384
384
  content: e?.csr ?? "",
385
385
  className: "w-full [&_pre_code]:block [&_pre_code]:w-full",
@@ -388,21 +388,21 @@ var z = ({ certificate: t }) => {
388
388
  })
389
389
  ]
390
390
  }),
391
- p && /*#__PURE__*/ O(G, {
391
+ f && /*#__PURE__*/ O(G, {
392
392
  pcaId: e.id,
393
- open: p,
394
- onClose: m
393
+ open: f,
394
+ onClose: p
395
395
  }),
396
396
  l && /*#__PURE__*/ O(W, {
397
397
  pca: e,
398
398
  open: l,
399
399
  onClose: u
400
400
  }),
401
- g && /*#__PURE__*/ O(T, {
401
+ m && /*#__PURE__*/ O(T, {
402
402
  pca: e,
403
- open: g,
404
- onClose: _,
405
- onSuccess: v
403
+ open: m,
404
+ onClose: h,
405
+ onSuccess: _
406
406
  }),
407
407
  /*#__PURE__*/ O(H, {
408
408
  pcaId: e.id,
@@ -413,28 +413,28 @@ var z = ({ certificate: t }) => {
413
413
  //#endregion
414
414
  //#region src/client/routes/_auth/projects/$projectId/services/pca/$pcaId/index.tsx?tsr-split=component
415
415
  function q() {
416
- let e = N(), t = w(), { pcaId: n } = S.useParams(), { isLoading: r, isError: a, error: o, data: s } = x.services.pca.getById.useQuery({
416
+ let e = N(), t = w(), { pcaId: n } = S.useParams(), { isLoading: r, isError: i, error: a, data: o } = x.services.pca.getById.useQuery({
417
417
  project_id: t,
418
418
  certificate_authority_id: n
419
419
  });
420
- if (r) return /*#__PURE__*/ k(d, {
420
+ if (r) return /*#__PURE__*/ k(y, {
421
421
  className: "fixed inset-0",
422
422
  distribution: "center",
423
423
  alignment: "center",
424
424
  direction: "vertical",
425
- children: [/*#__PURE__*/ O(i, {
425
+ children: [/*#__PURE__*/ O(c, {
426
426
  variant: "primary",
427
427
  size: "large",
428
428
  className: "mb-2"
429
429
  }), /*#__PURE__*/ O(P, { id: "og1m+J" })]
430
430
  });
431
- let c = () => e({
431
+ let s = () => e({
432
432
  to: "/projects/$projectId/services/pca",
433
433
  params: { projectId: t }
434
434
  });
435
- if (a) {
436
- let e = o?.message || "Unknown error";
437
- return /*#__PURE__*/ k(d, {
435
+ if (i) {
436
+ let e = a?.message || "Unknown error";
437
+ return /*#__PURE__*/ k(y, {
438
438
  className: "fixed inset-0",
439
439
  distribution: "center",
440
440
  alignment: "center",
@@ -449,15 +449,15 @@ function q() {
449
449
  className: "text-theme-highest",
450
450
  children: e
451
451
  }),
452
- /*#__PURE__*/ O(f, {
453
- onClick: c,
452
+ /*#__PURE__*/ O(b, {
453
+ onClick: s,
454
454
  variant: "primary",
455
455
  children: /*#__PURE__*/ O(P, { id: "HG0uMz" })
456
456
  })
457
457
  ]
458
458
  });
459
459
  }
460
- return s ? /*#__PURE__*/ O(K, { pca: s }) : /*#__PURE__*/ k(d, {
460
+ return o ? /*#__PURE__*/ O(K, { pca: o }) : /*#__PURE__*/ k(y, {
461
461
  className: "fixed inset-0",
462
462
  distribution: "center",
463
463
  alignment: "center",
@@ -466,8 +466,8 @@ function q() {
466
466
  children: [/*#__PURE__*/ O("p", {
467
467
  className: "text-theme-secondary",
468
468
  children: /*#__PURE__*/ O(P, { id: "Io2Dvq" })
469
- }), /*#__PURE__*/ O(f, {
470
- onClick: c,
469
+ }), /*#__PURE__*/ O(b, {
470
+ onClick: s,
471
471
  variant: "primary",
472
472
  children: /*#__PURE__*/ O(P, { id: "HG0uMz" })
473
473
  })]
@@ -476,4 +476,4 @@ function q() {
476
476
  //#endregion
477
477
  export { q as component };
478
478
 
479
- //# sourceMappingURL=_pcaId-Bo7yHkNW.mjs.map
479
+ //# sourceMappingURL=_pcaId-Db_t0x6O.mjs.map