@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, B as t, F as n, I as r, K as i, O as a, P as o, T as s, U as c, W as l, X as u, Y as d, b as f, h as p, j as m, l as h } from "./build-Cf7iWbpH.mjs";
1
+ import { $ as e, A as t, I as n, J as r, K as i, L as a, M as o, R as s, T as c, U as l, Z as u, b as d, c as f, h as p, q as m, tt as h } from "./build-CZRvXrAL.mjs";
2
2
  import { r as g } from "./trpcClient-BxguzNYF.mjs";
3
- import { t as ee } from "./ContentHeader-DtBiIwRY.mjs";
4
- import { A as _, D as te, E as ne, F as v, I as y, N as re, O as ie, P as b, T as ae, d as oe, k as se, u as ce } from "./ImageToastNotifications-Cw30RXsw.mjs";
3
+ import { t as ee } from "./ContentHeader-B_PWrxbw.mjs";
4
+ import { A as _, D as te, E as ne, F as v, I as y, N as re, O as ie, P as b, T as ae, d as oe, k as se, u as ce } from "./ImageToastNotifications--U13YiQ_.mjs";
5
5
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
6
6
  import w, { useState as T } from "react";
7
7
  import { useNavigate as le, useParams as ue, useSearch as de } from "@tanstack/react-router";
8
8
  import { Trans as E, useLingui as D } from "@lingui/react";
9
9
  //#region src/client/routes/_auth/projects/$projectId/compute/-components/Images/-components/ImageDetailsView.tsx
10
10
  var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isLoading: i }) => {
11
- let { i18n: a, _: o } = D(), s = t.status === v.PENDING, c = t.status === v.REJECTED, l = t.status === v.ACCEPTED, u = t.created_at ? new Date(t.created_at).toLocaleString() : a._({ id: "fj5byd" }), d = t.updated_at ? new Date(t.updated_at).toLocaleString() : a._({ id: "fj5byd" }), m = e.owner ?? "";
12
- return /* @__PURE__ */ C(f, { children: [
11
+ let { i18n: a, _: o } = D(), s = t.status === v.PENDING, c = t.status === v.REJECTED, l = t.status === v.ACCEPTED, u = t.created_at ? new Date(t.created_at).toLocaleString() : a._({ id: "fj5byd" }), m = t.updated_at ? new Date(t.updated_at).toLocaleString() : a._({ id: "fj5byd" }), h = e.owner ?? "";
12
+ return /* @__PURE__ */ C(d, { children: [
13
13
  s && /* @__PURE__ */ S("p", {
14
14
  className: "text-theme-highest font-semibold",
15
15
  children: /* @__PURE__ */ S(E, { id: "/EcdUM" })
@@ -17,7 +17,7 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
17
17
  /* @__PURE__ */ S("p", { children: /* @__PURE__ */ S(E, {
18
18
  id: "Uwo8Xw",
19
19
  values: {
20
- ownerProject: m,
20
+ ownerProject: h,
21
21
  sharedAt: u
22
22
  },
23
23
  components: { 0: /* @__PURE__ */ S("span", { className: "font-semibold" }) }
@@ -45,23 +45,23 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
45
45
  children: /* @__PURE__ */ S(E, { id: "pFg+7w" })
46
46
  }),
47
47
  " ",
48
- d
48
+ m
49
49
  ] })
50
50
  ] }),
51
51
  n && /* @__PURE__ */ C(p, { children: [
52
- s && /* @__PURE__ */ S(h, {
52
+ s && /* @__PURE__ */ S(f, {
53
53
  onClick: () => r(v.REJECTED),
54
54
  disabled: i,
55
55
  variant: "subdued",
56
56
  children: /* @__PURE__ */ S(E, { id: "1t/NnN" })
57
57
  }),
58
- (s || c) && /* @__PURE__ */ S(h, {
58
+ (s || c) && /* @__PURE__ */ S(f, {
59
59
  onClick: () => r(v.ACCEPTED),
60
60
  disabled: i,
61
61
  variant: "primary",
62
62
  children: /* @__PURE__ */ S(E, { id: "g3UF2V" })
63
63
  }),
64
- l && /* @__PURE__ */ S(h, {
64
+ l && /* @__PURE__ */ S(f, {
65
65
  onClick: () => r(v.REJECTED),
66
66
  disabled: i,
67
67
  variant: "primary-danger",
@@ -70,63 +70,63 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
70
70
  ] })
71
71
  ] });
72
72
  }, k = ({ image: e }) => {
73
- let { i18n: n, _: i } = D();
74
- return /* @__PURE__ */ C(r, {
73
+ let { i18n: r, _: i } = D();
74
+ return /* @__PURE__ */ C(s, {
75
75
  px: !1,
76
76
  py: !0,
77
- children: [/* @__PURE__ */ S(a, { children: n._({ id: "nW/hX9" }) }), /* @__PURE__ */ C(t, {
77
+ children: [/* @__PURE__ */ S(t, { children: r._({ id: "nW/hX9" }) }), /* @__PURE__ */ C(l, {
78
78
  alignTerms: "right",
79
79
  children: [
80
- /* @__PURE__ */ S(m, { children: n._({ id: "S0kLOH" }) }),
81
- /* @__PURE__ */ S(o, { children: e.id }),
82
- /* @__PURE__ */ S(m, { children: n._({ id: "6YtxFj" }) }),
83
- /* @__PURE__ */ S(o, { children: e.name }),
84
- /* @__PURE__ */ S(m, { children: n._({ id: "uAQUqI" }) }),
85
- /* @__PURE__ */ S(o, { children: e.status }),
86
- /* @__PURE__ */ S(m, { children: n._({ id: "Cj2Gtd" }) }),
87
- /* @__PURE__ */ S(o, { children: /* @__PURE__ */ S(y, { size: e.size }) }),
88
- /* @__PURE__ */ S(m, { children: n._({ id: "Cxgv2U" }) }),
89
- /* @__PURE__ */ C(o, { children: [e.min_disk, " GB"] }),
90
- /* @__PURE__ */ S(m, { children: n._({ id: "B2Czeb" }) }),
91
- /* @__PURE__ */ C(o, { children: [e.min_ram, " MB"] }),
92
- /* @__PURE__ */ S(m, { children: n._({ id: "NopYGU" }) }),
93
- /* @__PURE__ */ S(o, { children: /* @__PURE__ */ S("span", {
80
+ /* @__PURE__ */ S(o, { children: r._({ id: "S0kLOH" }) }),
81
+ /* @__PURE__ */ S(n, { children: e.id }),
82
+ /* @__PURE__ */ S(o, { children: r._({ id: "6YtxFj" }) }),
83
+ /* @__PURE__ */ S(n, { children: e.name }),
84
+ /* @__PURE__ */ S(o, { children: r._({ id: "uAQUqI" }) }),
85
+ /* @__PURE__ */ S(n, { children: e.status }),
86
+ /* @__PURE__ */ S(o, { children: r._({ id: "Cj2Gtd" }) }),
87
+ /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S(y, { size: e.size }) }),
88
+ /* @__PURE__ */ S(o, { children: r._({ id: "Cxgv2U" }) }),
89
+ /* @__PURE__ */ C(n, { children: [e.min_disk, " GB"] }),
90
+ /* @__PURE__ */ S(o, { children: r._({ id: "B2Czeb" }) }),
91
+ /* @__PURE__ */ C(n, { children: [e.min_ram, " MB"] }),
92
+ /* @__PURE__ */ S(o, { children: r._({ id: "NopYGU" }) }),
93
+ /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S("span", {
94
94
  className: "uppercase",
95
95
  children: e.disk_format
96
96
  }) }),
97
- /* @__PURE__ */ S(m, { children: n._({ id: "6/xipy" }) }),
98
- /* @__PURE__ */ S(o, { children: /* @__PURE__ */ S("span", {
97
+ /* @__PURE__ */ S(o, { children: r._({ id: "6/xipy" }) }),
98
+ /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S("span", {
99
99
  className: "uppercase",
100
100
  children: e.container_format
101
101
  }) }),
102
- /* @__PURE__ */ S(m, { children: n._({ id: "88kg0+" }) }),
103
- /* @__PURE__ */ S(o, { children: e.created_at ? new Date(e.created_at).toLocaleDateString() : n._({ id: "fj5byd" }) }),
104
- /* @__PURE__ */ S(m, { children: n._({ id: "Llcakz" }) }),
105
- /* @__PURE__ */ S(o, { children: e.updated_at ? new Date(e.updated_at).toLocaleDateString() : n._({ id: "fj5byd" }) })
102
+ /* @__PURE__ */ S(o, { children: r._({ id: "88kg0+" }) }),
103
+ /* @__PURE__ */ S(n, { children: e.created_at ? new Date(e.created_at).toLocaleDateString() : r._({ id: "fj5byd" }) }),
104
+ /* @__PURE__ */ S(o, { children: r._({ id: "Llcakz" }) }),
105
+ /* @__PURE__ */ S(n, { children: e.updated_at ? new Date(e.updated_at).toLocaleDateString() : r._({ id: "fj5byd" }) })
106
106
  ]
107
107
  })]
108
108
  });
109
- }, A = ({ image: e, currentProjectId: n }) => {
110
- let { i18n: i, _: s } = D(), c = e.visibility === "shared" && e.owner !== void 0 && e.owner !== n;
111
- return /* @__PURE__ */ C(r, {
109
+ }, A = ({ image: e, currentProjectId: r }) => {
110
+ let { i18n: i, _: a } = D(), c = e.visibility === "shared" && e.owner !== void 0 && e.owner !== r;
111
+ return /* @__PURE__ */ C(s, {
112
112
  px: !1,
113
113
  py: !0,
114
- children: [/* @__PURE__ */ S(a, { children: i._({ id: "a3LDKx" }) }), /* @__PURE__ */ C(t, {
114
+ children: [/* @__PURE__ */ S(t, { children: i._({ id: "a3LDKx" }) }), /* @__PURE__ */ C(l, {
115
115
  alignTerms: "right",
116
116
  children: [
117
- /* @__PURE__ */ S(m, { children: c ? i._({ id: "20axE5" }) : i._({ id: "YsrbQh" }) }),
118
- /* @__PURE__ */ S(o, { children: e.owner }),
119
- /* @__PURE__ */ S(m, { children: i._({ id: "2q/Q7x" }) }),
120
- /* @__PURE__ */ S(o, { children: e.visibility }),
121
- /* @__PURE__ */ S(m, { children: i._({ id: "644xgx" }) }),
122
- /* @__PURE__ */ S(o, { children: e.protected ? i._({ id: "l75CjT" }) : i._({ id: "1UzENP" }) }),
123
- /* @__PURE__ */ S(m, { children: i._({ id: "PzgYM9" }) }),
124
- /* @__PURE__ */ S(o, { children: e?.checksum ? e.checksum : "" })
117
+ /* @__PURE__ */ S(o, { children: c ? i._({ id: "20axE5" }) : i._({ id: "YsrbQh" }) }),
118
+ /* @__PURE__ */ S(n, { children: e.owner }),
119
+ /* @__PURE__ */ S(o, { children: i._({ id: "2q/Q7x" }) }),
120
+ /* @__PURE__ */ S(n, { children: e.visibility }),
121
+ /* @__PURE__ */ S(o, { children: i._({ id: "644xgx" }) }),
122
+ /* @__PURE__ */ S(n, { children: e.protected ? i._({ id: "l75CjT" }) : i._({ id: "1UzENP" }) }),
123
+ /* @__PURE__ */ S(o, { children: i._({ id: "PzgYM9" }) }),
124
+ /* @__PURE__ */ S(n, { children: e?.checksum ? e.checksum : "" })
125
125
  ]
126
126
  })]
127
127
  });
128
128
  }, j = ({ image: e }) => {
129
- let { i18n: n, _: i } = D(), s = new Set([
129
+ let { i18n: r, _: i } = D(), a = new Set([
130
130
  "id",
131
131
  "name",
132
132
  "status",
@@ -141,46 +141,46 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
141
141
  "created_at",
142
142
  "updated_at",
143
143
  "checksum"
144
- ]), c = Object.entries(e).filter(([e]) => !s.has(e)).sort(([e], [t]) => e.localeCompare(t)), l = c.length > 0;
145
- return /* @__PURE__ */ C(r, {
144
+ ]), c = Object.entries(e).filter(([e]) => !a.has(e)).sort(([e], [t]) => e.localeCompare(t)), u = c.length > 0;
145
+ return /* @__PURE__ */ C(s, {
146
146
  px: !1,
147
147
  py: !0,
148
- children: [/* @__PURE__ */ S(a, { children: n._({ id: "bc67JN" }) }), l ? /* @__PURE__ */ S(t, {
148
+ children: [/* @__PURE__ */ S(t, { children: r._({ id: "bc67JN" }) }), u ? /* @__PURE__ */ S(l, {
149
149
  alignTerms: "right",
150
150
  className: "grid-cols-4",
151
- children: c.map(([e, t]) => /* @__PURE__ */ C(w.Fragment, { children: [/* @__PURE__ */ S(m, {
151
+ children: c.map(([e, t]) => /* @__PURE__ */ C(w.Fragment, { children: [/* @__PURE__ */ S(o, {
152
152
  className: "col-span-1",
153
153
  children: e
154
- }), /* @__PURE__ */ S(o, {
154
+ }), /* @__PURE__ */ S(n, {
155
155
  className: "col-span-1",
156
156
  children: t == null ? /* @__PURE__ */ S("span", { children: "null" }) : typeof t == "object" ? /* @__PURE__ */ S("span", {
157
157
  className: "break-all",
158
158
  children: JSON.stringify(t)
159
- }) : typeof t == "boolean" ? t ? n._({ id: "c+xCSz" }) : n._({ id: "ocUvR+" }) : /* @__PURE__ */ S("span", {
159
+ }) : typeof t == "boolean" ? t ? r._({ id: "c+xCSz" }) : r._({ id: "ocUvR+" }) : /* @__PURE__ */ S("span", {
160
160
  className: "break-all",
161
161
  children: String(t)
162
162
  })
163
163
  })] }, e))
164
164
  }) : /* @__PURE__ */ S("p", {
165
165
  className: "text-theme-light",
166
- children: n._({ id: "9v5VLp" })
166
+ children: r._({ id: "9v5VLp" })
167
167
  })]
168
168
  });
169
169
  }, M = (e) => {
170
170
  let t = "px-6 py-3 font-semibold border-b-2 transition-colors";
171
171
  return e ? `${t} border-theme-accent text-theme-highest` : `${t} border-transparent text-theme-secondary hover:text-theme-high`;
172
172
  }, N = ({ image: e, permissions: t, currentProjectId: n }) => {
173
- let [i, a] = T(!1), [o, s] = T(null), { data: l, isLoading: u } = g.compute.listImageMembers.useQuery({
173
+ let [r, a] = T(!1), [o, c] = T(null), { data: l, isLoading: u } = g.compute.listImageMembers.useQuery({
174
174
  project_id: n,
175
175
  imageId: e.id
176
176
  }, { enabled: !!e.id && !!n });
177
- return /* @__PURE__ */ C(r, {
177
+ return /* @__PURE__ */ C(s, {
178
178
  px: !1,
179
179
  py: !0,
180
- children: [o && /* @__PURE__ */ S(c, {
180
+ children: [o && /* @__PURE__ */ S(i, {
181
181
  text: o.text,
182
182
  variant: o.type,
183
- onDismiss: () => s(null),
183
+ onDismiss: () => c(null),
184
184
  className: "mb-4"
185
185
  }), /* @__PURE__ */ S(_, {
186
186
  image: e,
@@ -188,53 +188,53 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
188
188
  isMembersLoading: u,
189
189
  canAdd: t?.canCreateMember ?? !1,
190
190
  canRemove: t?.canDeleteMember ?? !1,
191
- isAddingMember: i,
191
+ isAddingMember: r,
192
192
  setIsAddingMember: a,
193
- setMessage: s,
193
+ setMessage: c,
194
194
  projectId: n
195
195
  })]
196
196
  });
197
- }, fe = ({ image: t, currentProjectId: n, activeTab: r = "details", onTabChange: i, permissions: a, myMemberData: o, onMemberStatusChange: s, isMemberStatusChanging: c, actions: l }) => {
198
- let { i18n: u, _: d } = D(), f = t.visibility === "shared" && t.owner !== void 0 && t.owner !== n, p = t.owner === n && t.visibility === "shared";
199
- return /* @__PURE__ */ C(e, {
197
+ }, fe = ({ image: e, currentProjectId: t, activeTab: n = "details", onTabChange: r, permissions: i, myMemberData: a, onMemberStatusChange: o, isMemberStatusChanging: s, actions: c }) => {
198
+ let { i18n: l, _: u } = D(), d = e.visibility === "shared" && e.owner !== void 0 && e.owner !== t, f = e.owner === t && e.visibility === "shared";
199
+ return /* @__PURE__ */ C(h, {
200
200
  direction: "vertical",
201
201
  gap: "6",
202
202
  children: [
203
- f && o && s && /* @__PURE__ */ S(O, {
204
- image: t,
205
- myMemberData: o,
206
- canUpdateMember: a?.canUpdateMember ?? !1,
207
- onStatusChange: s,
208
- isLoading: c ?? !1
203
+ d && a && o && /* @__PURE__ */ S(O, {
204
+ image: e,
205
+ myMemberData: a,
206
+ canUpdateMember: i?.canUpdateMember ?? !1,
207
+ onStatusChange: o,
208
+ isLoading: s ?? !1
209
209
  }),
210
- p && /* @__PURE__ */ S("div", {
210
+ f && /* @__PURE__ */ S("div", {
211
211
  className: "border-theme-background-lvl-3 border-b",
212
- children: /* @__PURE__ */ C(e, {
212
+ children: /* @__PURE__ */ C(h, {
213
213
  direction: "horizontal",
214
214
  gap: "0",
215
215
  children: [/* @__PURE__ */ S("button", {
216
- className: M(r === "details"),
217
- onClick: () => i?.("details"),
218
- children: u._({ id: "URmyfc" })
216
+ className: M(n === "details"),
217
+ onClick: () => r?.("details"),
218
+ children: l._({ id: "URmyfc" })
219
219
  }), /* @__PURE__ */ S("button", {
220
- className: M(r === "sharing"),
221
- onClick: () => i?.("sharing"),
222
- children: u._({ id: "aG9OiI" })
220
+ className: M(n === "sharing"),
221
+ onClick: () => r?.("sharing"),
222
+ children: l._({ id: "aG9OiI" })
223
223
  })]
224
224
  })
225
225
  }),
226
- (r === "details" || !p) && /* @__PURE__ */ C(x, { children: [
227
- l,
228
- /* @__PURE__ */ S(k, { image: t }),
226
+ (n === "details" || !f) && /* @__PURE__ */ C(x, { children: [
227
+ c,
228
+ /* @__PURE__ */ S(k, { image: e }),
229
229
  /* @__PURE__ */ S(A, {
230
- image: t,
231
- currentProjectId: n
230
+ image: e,
231
+ currentProjectId: t
232
232
  }),
233
- /* @__PURE__ */ S(j, { image: t })
233
+ /* @__PURE__ */ S(j, { image: e })
234
234
  ] }),
235
- r === "sharing" && p && /* @__PURE__ */ S(N, {
236
- image: t,
237
- permissions: a
235
+ n === "sharing" && f && /* @__PURE__ */ S(N, {
236
+ image: e,
237
+ permissions: i
238
238
  })
239
239
  ]
240
240
  });
@@ -242,9 +242,9 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
242
242
  //#endregion
243
243
  //#region src/client/routes/_auth/projects/$projectId/compute/images/$imageId.tsx?tsr-split=component
244
244
  function P() {
245
- let { projectId: t, imageId: r } = ue({ from: "/_auth/projects/$projectId/compute/images/$imageId" }), { tab: a } = de({ from: "/_auth/projects/$projectId/compute/images/$imageId" }), o = le(), { i18n: c, _: f } = D(), { data: m, status: _, error: v } = g.compute.getImageById.useQuery({
245
+ let { projectId: t, imageId: n } = ue({ from: "/_auth/projects/$projectId/compute/images/$imageId" }), { tab: i } = de({ from: "/_auth/projects/$projectId/compute/images/$imageId" }), o = le(), { i18n: s, _: l } = D(), { data: d, status: _, error: v } = g.compute.getImageById.useQuery({
246
246
  project_id: t,
247
- imageId: r
247
+ imageId: n
248
248
  }), { data: y } = g.compute.canUser.useQuery({
249
249
  project_id: t,
250
250
  permission: [
@@ -263,43 +263,43 @@ function P() {
263
263
  }, O = g.useUtils(), [k, A] = T(!1), [j, M] = T(!1), [N, P] = T(!1), [F, I] = T(!1), [L, R] = T(!1), [z, B] = T(null), V = g.compute.updateImage.useMutation({ onSuccess: (e) => {
264
264
  O.compute.getImageById.setData({
265
265
  project_id: t,
266
- imageId: r
266
+ imageId: n
267
267
  }, e), O.compute.listImagesWithPagination.invalidate();
268
268
  } }), H = g.compute.deleteImage.useMutation({ onSuccess: () => {
269
269
  O.compute.listImagesWithPagination.invalidate();
270
270
  } }), U = g.compute.deactivateImage.useMutation({ onSuccess: () => {
271
271
  O.compute.getImageById.invalidate({
272
272
  project_id: t,
273
- imageId: r
273
+ imageId: n
274
274
  });
275
275
  } }), W = g.compute.reactivateImage.useMutation({ onSuccess: () => {
276
276
  O.compute.getImageById.invalidate({
277
277
  project_id: t,
278
- imageId: r
278
+ imageId: n
279
279
  });
280
280
  } }), G = g.compute.updateImageVisibility.useMutation({ onSuccess: (e) => {
281
281
  O.compute.getImageById.setData({
282
282
  project_id: t,
283
- imageId: r
283
+ imageId: n
284
284
  }, e);
285
- } }), K = m?.visibility === b.SHARED && m?.owner !== void 0 && m?.owner !== t, { data: pe } = g.compute.getImageMember.useQuery({
285
+ } }), K = d?.visibility === b.SHARED && d?.owner !== void 0 && d?.owner !== t, { data: pe } = g.compute.getImageMember.useQuery({
286
286
  project_id: t,
287
- imageId: r,
287
+ imageId: n,
288
288
  memberId: t
289
- }, { enabled: K && !!r && !!t }), q = g.compute.updateImageMember.useMutation({ onSuccess: () => {
289
+ }, { enabled: K && !!n && !!t }), q = g.compute.updateImageMember.useMutation({ onSuccess: () => {
290
290
  O.compute.getImageMember.invalidate({
291
291
  project_id: t,
292
- imageId: r,
292
+ imageId: n,
293
293
  memberId: t
294
294
  }), O.compute.listImageMembers.invalidate({
295
295
  project_id: t,
296
- imageId: r
296
+ imageId: n
297
297
  }), O.compute.listImagesWithPagination.invalidate(), O.compute.listSharedImagesByMemberStatus.invalidate();
298
298
  } }), me = async (e) => {
299
299
  try {
300
300
  await q.mutateAsync({
301
301
  project_id: t,
302
- imageId: r,
302
+ imageId: n,
303
303
  memberId: t,
304
304
  status: e
305
305
  }), B(oe(e, { onDismiss: () => B(null) }));
@@ -330,13 +330,13 @@ function P() {
330
330
  }
331
331
  }), n;
332
332
  }, X = async (e) => {
333
- if (!m) return !1;
334
- let n = he(e, m);
333
+ if (!d) return !1;
334
+ let r = he(e, d);
335
335
  try {
336
336
  return await V.mutateAsync({
337
337
  project_id: t,
338
- imageId: r,
339
- operations: n
338
+ imageId: n,
339
+ operations: r
340
340
  }), A(!1), !0;
341
341
  } catch {
342
342
  return !1;
@@ -369,28 +369,28 @@ function P() {
369
369
  R(!1);
370
370
  }
371
371
  }, Z = async (e) => {
372
- if (m) try {
372
+ if (d) try {
373
373
  await G.mutateAsync({
374
374
  project_id: t,
375
- imageId: m.id,
375
+ imageId: d.id,
376
376
  visibility: e
377
377
  });
378
378
  } catch {}
379
379
  };
380
- if (_ === "pending") return /* @__PURE__ */ C(e, {
380
+ if (_ === "pending") return /* @__PURE__ */ C(h, {
381
381
  className: "fixed inset-0",
382
382
  distribution: "center",
383
383
  alignment: "center",
384
384
  direction: "vertical",
385
- children: [/* @__PURE__ */ S(i, {
385
+ children: [/* @__PURE__ */ S(u, {
386
386
  variant: "primary",
387
387
  size: "large",
388
388
  className: "mb-2"
389
389
  }), /* @__PURE__ */ S(E, { id: "hH3kDo" })]
390
390
  });
391
391
  if (_ === "error") {
392
- let t = v?.message || "Unknown error";
393
- return /* @__PURE__ */ C(e, {
392
+ let e = v?.message || "Unknown error";
393
+ return /* @__PURE__ */ C(h, {
394
394
  className: "fixed inset-0",
395
395
  distribution: "center",
396
396
  alignment: "center",
@@ -403,9 +403,9 @@ function P() {
403
403
  }),
404
404
  /* @__PURE__ */ S("p", {
405
405
  className: "text-theme-highest",
406
- children: t
406
+ children: e
407
407
  }),
408
- /* @__PURE__ */ S(h, {
408
+ /* @__PURE__ */ S(f, {
409
409
  onClick: J,
410
410
  variant: "primary",
411
411
  children: /* @__PURE__ */ S(E, { id: "bnql/K" })
@@ -413,7 +413,7 @@ function P() {
413
413
  ]
414
414
  });
415
415
  }
416
- if (!m) return /* @__PURE__ */ C(e, {
416
+ if (!d) return /* @__PURE__ */ C(h, {
417
417
  className: "fixed inset-0",
418
418
  distribution: "center",
419
419
  alignment: "center",
@@ -422,40 +422,40 @@ function P() {
422
422
  children: [/* @__PURE__ */ S("p", {
423
423
  className: "text-theme-highest",
424
424
  children: /* @__PURE__ */ S(E, { id: "1pdLQw" })
425
- }), /* @__PURE__ */ S(h, {
425
+ }), /* @__PURE__ */ S(f, {
426
426
  onClick: J,
427
427
  variant: "primary",
428
428
  children: /* @__PURE__ */ S(E, { id: "bnql/K" })
429
429
  })]
430
430
  });
431
- let Q = m.status === re.DEACTIVATED, ye = m.visibility === b.PRIVATE, $ = !K && (w.canUpdate || w.canDelete && !m.protected), be = !K && ($ || w.canUpdate) ? /* @__PURE__ */ C(p, { children: [
432
- $ && /* @__PURE__ */ C(d, { children: [/* @__PURE__ */ S(n, {
431
+ let Q = d.status === re.DEACTIVATED, ye = d.visibility === b.PRIVATE, $ = !K && (w.canUpdate || w.canDelete && !d.protected), be = !K && ($ || w.canUpdate) ? /* @__PURE__ */ C(p, { children: [
432
+ $ && /* @__PURE__ */ C(e, { children: [/* @__PURE__ */ S(a, {
433
433
  as: "div",
434
- children: /* @__PURE__ */ S(h, {
434
+ children: /* @__PURE__ */ S(f, {
435
435
  icon: "moreVert",
436
436
  disabled: Y,
437
437
  children: /* @__PURE__ */ S(E, { id: "PgNNGl" })
438
438
  })
439
- }), /* @__PURE__ */ C(s, { children: [
440
- w.canUpdate && /* @__PURE__ */ S(l, {
441
- label: Q ? c._({ id: "FQBaXG" }) : c._({ id: "5y3O+A" }),
439
+ }), /* @__PURE__ */ C(c, { children: [
440
+ w.canUpdate && /* @__PURE__ */ S(r, {
441
+ label: Q ? s._({ id: "FQBaXG" }) : s._({ id: "5y3O+A" }),
442
442
  onClick: () => Q ? I(!0) : R(!0)
443
443
  }),
444
- w.canUpdate && ye && /* @__PURE__ */ S(l, {
445
- label: c._({ id: "gMYsdZ" }),
444
+ w.canUpdate && ye && /* @__PURE__ */ S(r, {
445
+ label: s._({ id: "gMYsdZ" }),
446
446
  onClick: () => Z("shared")
447
447
  }),
448
- w.canDelete && !m.protected && /* @__PURE__ */ S(l, {
449
- label: c._({ id: "cnGeoo" }),
448
+ w.canDelete && !d.protected && /* @__PURE__ */ S(r, {
449
+ label: s._({ id: "cnGeoo" }),
450
450
  onClick: () => P(!0)
451
451
  })
452
452
  ] })] }),
453
- w.canUpdate && /* @__PURE__ */ S(h, {
453
+ w.canUpdate && /* @__PURE__ */ S(f, {
454
454
  onClick: () => M(!0),
455
455
  disabled: Y,
456
456
  children: /* @__PURE__ */ S(E, { id: "SIfYq6" })
457
457
  }),
458
- w.canUpdate && /* @__PURE__ */ S(h, {
458
+ w.canUpdate && /* @__PURE__ */ S(f, {
459
459
  onClick: () => A(!0),
460
460
  variant: "primary",
461
461
  disabled: Y,
@@ -464,14 +464,14 @@ function P() {
464
464
  ] }) : void 0;
465
465
  return /* @__PURE__ */ C(x, { children: [
466
466
  /* @__PURE__ */ S(ee, {
467
- title: String(m.name ?? m.id),
467
+ title: String(d.name ?? d.id),
468
468
  projectId: t,
469
469
  actions: be
470
470
  }),
471
471
  /* @__PURE__ */ S(fe, {
472
- image: m,
472
+ image: d,
473
473
  currentProjectId: t,
474
- activeTab: a ?? "details",
474
+ activeTab: i ?? "details",
475
475
  onTabChange: (e) => o({ search: { tab: e === "details" ? void 0 : e } }),
476
476
  permissions: {
477
477
  canCreateMember: w.canCreateMember,
@@ -481,39 +481,39 @@ function P() {
481
481
  myMemberData: pe,
482
482
  onMemberStatusChange: me,
483
483
  isMemberStatusChanging: q.isPending
484
- }, m.id),
485
- z && /* @__PURE__ */ S(u, { ...z }),
484
+ }, d.id),
485
+ z && /* @__PURE__ */ S(m, { ...z }),
486
486
  k && /* @__PURE__ */ S(se, {
487
- image: m,
487
+ image: d,
488
488
  isOpen: k,
489
489
  isLoading: V.isPending,
490
490
  onClose: () => A(!1),
491
491
  onSave: X
492
492
  }),
493
493
  j && /* @__PURE__ */ S(ie, {
494
- image: m,
494
+ image: d,
495
495
  isOpen: j,
496
496
  isLoading: V.isPending,
497
497
  onClose: () => M(!1),
498
498
  onSave: X
499
499
  }),
500
500
  N && /* @__PURE__ */ S(te, {
501
- image: m,
501
+ image: d,
502
502
  isOpen: N,
503
503
  isLoading: H.isPending,
504
- isDisabled: !!m.protected,
504
+ isDisabled: !!d.protected,
505
505
  onClose: () => P(!1),
506
506
  onDelete: ge
507
507
  }),
508
508
  F && /* @__PURE__ */ S(ne, {
509
- image: m,
509
+ image: d,
510
510
  isOpen: F,
511
511
  isLoading: W.isPending,
512
512
  onClose: () => I(!1),
513
513
  onActivate: _e
514
514
  }),
515
515
  L && /* @__PURE__ */ S(ae, {
516
- image: m,
516
+ image: d,
517
517
  isOpen: L,
518
518
  isLoading: U.isPending,
519
519
  onClose: () => R(!1),
@@ -524,4 +524,4 @@ function P() {
524
524
  //#endregion
525
525
  export { P as component };
526
526
 
527
- //# sourceMappingURL=_imageId-Tx_9bqEc.mjs.map
527
+ //# sourceMappingURL=_imageId-DdSbxFqG.mjs.map