@cobaltcore-dev/aurora 0.3.0 → 0.3.1

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 (111) hide show
  1. package/dist/client/{ContentHeader-B_PWrxbw.mjs → ContentHeader-BXZoN3B9.mjs} +16 -16
  2. package/dist/client/{ContentHeader-B_PWrxbw.mjs.map → ContentHeader-BXZoN3B9.mjs.map} +1 -1
  3. package/dist/client/{DeleteFlavorModal-BkPrQKyE.mjs → DeleteFlavorModal-BusYn32r.mjs} +152 -152
  4. package/dist/client/{DeleteFlavorModal-BkPrQKyE.mjs.map → DeleteFlavorModal-BusYn32r.mjs.map} +1 -1
  5. package/dist/client/{EditSecurityGroupModal-ad4uzlt0.mjs → EditSecurityGroupModal-Dl6m7wUe.mjs} +15 -15
  6. package/dist/client/{EditSecurityGroupModal-ad4uzlt0.mjs.map → EditSecurityGroupModal-Dl6m7wUe.mjs.map} +1 -1
  7. package/dist/client/FiltersInput-BgNaHFBt.mjs +81 -0
  8. package/dist/client/FiltersInput-BgNaHFBt.mjs.map +1 -0
  9. package/dist/client/{FloatingIpActionModals-lKMwLuL8.mjs → FloatingIpActionModals-By2hXR9m.mjs} +50 -50
  10. package/dist/client/{FloatingIpActionModals-lKMwLuL8.mjs.map → FloatingIpActionModals-By2hXR9m.mjs.map} +1 -1
  11. package/dist/client/{ImageToastNotifications--U13YiQ_.mjs → ImageToastNotifications-fHI8jB2j.mjs} +321 -321
  12. package/dist/client/{ImageToastNotifications--U13YiQ_.mjs.map → ImageToastNotifications-fHI8jB2j.mjs.map} +1 -1
  13. package/dist/client/ListToolbar-BvtCo8dk.mjs +129 -0
  14. package/dist/client/ListToolbar-BvtCo8dk.mjs.map +1 -0
  15. package/dist/client/{RouteError-iP1Vd6bY.mjs → RouteError-pDEWC_k7.mjs} +2 -2
  16. package/dist/client/{RouteError-iP1Vd6bY.mjs.map → RouteError-pDEWC_k7.mjs.map} +1 -1
  17. package/dist/client/SortInput-DXWSqSny.mjs +34 -0
  18. package/dist/client/SortInput-DXWSqSny.mjs.map +1 -0
  19. package/dist/client/{_flavorId-BaNXUJhA.mjs → _flavorId-BRonXvCo.mjs} +40 -40
  20. package/dist/client/{_flavorId-BaNXUJhA.mjs.map → _flavorId-BRonXvCo.mjs.map} +1 -1
  21. package/dist/client/{_flavorId-CnO76tuy.mjs → _flavorId-BoNcxYmF.mjs} +9 -9
  22. package/dist/client/{_flavorId-CnO76tuy.mjs.map → _flavorId-BoNcxYmF.mjs.map} +1 -1
  23. package/dist/client/_floatingIpId-BpUfL8Im2.mjs +228 -0
  24. package/dist/client/_floatingIpId-BpUfL8Im2.mjs.map +1 -0
  25. package/dist/client/{_floatingIpId-C8G20nNt.mjs → _floatingIpId-CwHiXazi.mjs} +2 -2
  26. package/dist/client/{_floatingIpId-C8G20nNt.mjs.map → _floatingIpId-CwHiXazi.mjs.map} +1 -1
  27. package/dist/client/{_imageId-DdSbxFqG.mjs → _imageId-CdOOJjw0.mjs} +127 -127
  28. package/dist/client/{_imageId-DdSbxFqG.mjs.map → _imageId-CdOOJjw0.mjs.map} +1 -1
  29. package/dist/client/{_pcaId-DFkYJEb5.mjs → _pcaId-CwlH1Kvl.mjs} +82 -82
  30. package/dist/client/{_pcaId-DFkYJEb5.mjs.map → _pcaId-CwlH1Kvl.mjs.map} +1 -1
  31. package/dist/client/{_pcaId-DX_S-3hE.mjs → _pcaId-D1ZEaCdp.mjs} +2 -2
  32. package/dist/client/{_pcaId-DX_S-3hE.mjs.map → _pcaId-D1ZEaCdp.mjs.map} +1 -1
  33. package/dist/client/{_projectId-DsSVV2EA.mjs → _projectId-D1gGribM.mjs} +69 -69
  34. package/dist/client/{_projectId-DsSVV2EA.mjs.map → _projectId-D1gGribM.mjs.map} +1 -1
  35. package/dist/client/{_projectId-DYrcZ3E3.mjs → _projectId-DhLpIalx.mjs} +3 -3
  36. package/dist/client/{_projectId-DYrcZ3E3.mjs.map → _projectId-DhLpIalx.mjs.map} +1 -1
  37. package/dist/client/{_projectId-Dha4XqX4.mjs → _projectId-Dj_InfSc.mjs} +3 -3
  38. package/dist/client/{_projectId-Dha4XqX4.mjs.map → _projectId-Dj_InfSc.mjs.map} +1 -1
  39. package/dist/client/{_projectId-KH5si25Q.mjs → _projectId-OW2xkK43.mjs} +2 -2
  40. package/dist/client/{_projectId-KH5si25Q.mjs.map → _projectId-OW2xkK43.mjs.map} +1 -1
  41. package/dist/client/{_securityGroupId-DgaSqYex.mjs → _securityGroupId-B0llWH9A.mjs} +2 -2
  42. package/dist/client/{_securityGroupId-DgaSqYex.mjs.map → _securityGroupId-B0llWH9A.mjs.map} +1 -1
  43. package/dist/client/{_securityGroupId-O7FXfx0M.mjs → _securityGroupId-gbUnd5Wv.mjs} +306 -306
  44. package/dist/client/{_securityGroupId-O7FXfx0M.mjs.map → _securityGroupId-gbUnd5Wv.mjs.map} +1 -1
  45. package/dist/client/{about-DN8n8sN8.mjs → about-DCe6LsKz.mjs} +2 -2
  46. package/dist/client/{about-DN8n8sN8.mjs.map → about-DCe6LsKz.mjs.map} +1 -1
  47. package/dist/client/{build-CZRvXrAL.mjs → build-BJDfnAyi.mjs} +541 -537
  48. package/dist/client/{build-CZRvXrAL.mjs.map → build-BJDfnAyi.mjs.map} +1 -1
  49. package/dist/client/{buildFilterParams-ngVK3ybs.mjs → buildFilterParams-By33pG59.mjs} +1 -1
  50. package/dist/client/{buildFilterParams-ngVK3ybs.mjs.map → buildFilterParams-By33pG59.mjs.map} +1 -1
  51. package/dist/client/{constants-akdIBeTX.mjs → constants-CAjjRTo_.mjs} +9 -9
  52. package/dist/client/{constants-akdIBeTX.mjs.map → constants-CAjjRTo_.mjs.map} +1 -1
  53. package/dist/client/{containers-BE2QiLBs.mjs → containers-BuXUVb1N.mjs} +702 -702
  54. package/dist/client/{containers-BE2QiLBs.mjs.map → containers-BuXUVb1N.mjs.map} +1 -1
  55. package/dist/client/{containers-Cs5vOeR2.mjs → containers-Ca5V1EBS.mjs} +1 -1
  56. package/dist/client/{containers-Cs5vOeR2.mjs.map → containers-Ca5V1EBS.mjs.map} +1 -1
  57. package/dist/client/{containers-DmwhE9Uz.mjs → containers-NW7RnHTI.mjs} +2 -2
  58. package/dist/client/{containers-DmwhE9Uz.mjs.map → containers-NW7RnHTI.mjs.map} +1 -1
  59. package/dist/client/{flavors-CY7A6--v.mjs → flavors-D8oElC2K.mjs} +2 -2
  60. package/dist/client/{flavors-CY7A6--v.mjs.map → flavors-D8oElC2K.mjs.map} +1 -1
  61. package/dist/client/flavors-qvgPSI7J.mjs +613 -0
  62. package/dist/client/flavors-qvgPSI7J.mjs.map +1 -0
  63. package/dist/client/{floatingips-BtL4d4m-.mjs → floatingips-Be3zLoaD.mjs} +85 -85
  64. package/dist/client/{floatingips-BtL4d4m-.mjs.map → floatingips-Be3zLoaD.mjs.map} +1 -1
  65. package/dist/client/{images-I9gQfRa7.mjs → images-BiEBENaj.mjs} +2 -2
  66. package/dist/client/{images-I9gQfRa7.mjs.map → images-BiEBENaj.mjs.map} +1 -1
  67. package/dist/client/images-CCYBAphP2.mjs +1900 -0
  68. package/dist/client/images-CCYBAphP2.mjs.map +1 -0
  69. package/dist/client/index.js +109 -109
  70. package/dist/client/index.js.map +1 -1
  71. package/dist/client/{network-SCVadZsv.mjs → network-nbSbl0X0.mjs} +1 -1
  72. package/dist/client/{network-SCVadZsv.mjs.map → network-nbSbl0X0.mjs.map} +1 -1
  73. package/dist/client/{objects-BrYe_RaJ.mjs → objects-CU5ws07o.mjs} +2 -2
  74. package/dist/client/{objects-BrYe_RaJ.mjs.map → objects-CU5ws07o.mjs.map} +1 -1
  75. package/dist/client/{objects-DOYFFn3Y.mjs → objects-FXN0VWLI.mjs} +1791 -1791
  76. package/dist/client/{objects-DOYFFn3Y.mjs.map → objects-FXN0VWLI.mjs.map} +1 -1
  77. package/dist/client/{objects-B4yrYf_a.mjs → objects-GmuIOaHd.mjs} +1 -1
  78. package/dist/client/{objects-B4yrYf_a.mjs.map → objects-GmuIOaHd.mjs.map} +1 -1
  79. package/dist/client/{overview-DTLIAKkJ.mjs → overview-B3gdnWTG.mjs} +2 -2
  80. package/dist/client/{overview-DTLIAKkJ.mjs.map → overview-B3gdnWTG.mjs.map} +1 -1
  81. package/dist/client/{overview-BjRSFSBh.mjs → overview-DzYBiNfD.mjs} +2 -2
  82. package/dist/client/{overview-BjRSFSBh.mjs.map → overview-DzYBiNfD.mjs.map} +1 -1
  83. package/dist/client/{overview-CmQkJ4Hh.mjs → overview-EhfPY8Je.mjs} +2 -2
  84. package/dist/client/{overview-CmQkJ4Hh.mjs.map → overview-EhfPY8Je.mjs.map} +1 -1
  85. package/dist/client/{overview-C4gjtc2q.mjs → overview-XueZI4LQ.mjs} +3 -3
  86. package/dist/client/{overview-C4gjtc2q.mjs.map → overview-XueZI4LQ.mjs.map} +1 -1
  87. package/dist/client/{pca-DzixU9Dl.mjs → pca-DSM71LhW.mjs} +2 -2
  88. package/dist/client/{pca-DzixU9Dl.mjs.map → pca-DSM71LhW.mjs.map} +1 -1
  89. package/dist/client/{pca-CYFJxSZ2.mjs → pca-x9if8xU-.mjs} +51 -51
  90. package/dist/client/{pca-CYFJxSZ2.mjs.map → pca-x9if8xU-.mjs.map} +1 -1
  91. package/dist/client/{projects-DwVawmll.mjs → projects-B6BPo2Ar.mjs} +2 -2
  92. package/dist/client/{projects-DwVawmll.mjs.map → projects-B6BPo2Ar.mjs.map} +1 -1
  93. package/dist/client/{projects-BsN4bvU2.mjs → projects-BilrmHLu.mjs} +1 -1
  94. package/dist/client/{projects-BsN4bvU2.mjs.map → projects-BilrmHLu.mjs.map} +1 -1
  95. package/dist/client/{projects-BtyjXGq2.mjs → projects-Bt0XptpG.mjs} +2 -2
  96. package/dist/client/{projects-BtyjXGq2.mjs.map → projects-Bt0XptpG.mjs.map} +1 -1
  97. package/dist/client/{projects-D3hOC1cy.mjs → projects-CnmZIB2Q.mjs} +25 -25
  98. package/dist/client/{projects-D3hOC1cy.mjs.map → projects-CnmZIB2Q.mjs.map} +1 -1
  99. package/dist/client/{securitygroups-DMCIDHQS.mjs → securitygroups-BdzieS7Z.mjs} +101 -101
  100. package/dist/client/{securitygroups-DMCIDHQS.mjs.map → securitygroups-BdzieS7Z.mjs.map} +1 -1
  101. package/dist/client/{useListWithFiltering-CEDh1LO-.mjs → useListWithFiltering-CqQbAjEe.mjs} +1 -1
  102. package/dist/client/{useListWithFiltering-CEDh1LO-.mjs.map → useListWithFiltering-CqQbAjEe.mjs.map} +1 -1
  103. package/package.json +2 -2
  104. package/dist/client/ListToolbar-C5lzTrit.mjs +0 -223
  105. package/dist/client/ListToolbar-C5lzTrit.mjs.map +0 -1
  106. package/dist/client/_floatingIpId-DdKnjdIV.mjs +0 -228
  107. package/dist/client/_floatingIpId-DdKnjdIV.mjs.map +0 -1
  108. package/dist/client/flavors-pEcGkCut.mjs +0 -565
  109. package/dist/client/flavors-pEcGkCut.mjs.map +0 -1
  110. package/dist/client/images-C19gCFSy.mjs +0 -1797
  111. package/dist/client/images-C19gCFSy.mjs.map +0 -1
@@ -1,15 +1,15 @@
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";
1
+ import { E as e, J as t, L as n, N as r, Q as i, R as a, W as o, Y as s, b as c, c as l, et as u, h as d, j as f, nt as p, q as m, z as h } from "./build-BJDfnAyi.mjs";
2
2
  import { r as g } from "./trpcClient-BxguzNYF.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";
3
+ import { t as ee } from "./ContentHeader-BXZoN3B9.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-fHI8jB2j.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" }), m = t.updated_at ? new Date(t.updated_at).toLocaleString() : a._({ id: "fj5byd" }), h = e.owner ?? "";
12
- return /* @__PURE__ */ C(d, { children: [
11
+ let { i18n: a, _: o } = D(), s = t.status === v.PENDING, u = t.status === v.REJECTED, f = t.status === v.ACCEPTED, p = 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(c, { children: [
13
13
  s && /* @__PURE__ */ S("p", {
14
14
  className: "text-theme-highest font-semibold",
15
15
  children: /* @__PURE__ */ S(E, { id: "/EcdUM" })
@@ -18,7 +18,7 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
18
18
  id: "Uwo8Xw",
19
19
  values: {
20
20
  ownerProject: h,
21
- sharedAt: u
21
+ sharedAt: p
22
22
  },
23
23
  components: { 0: /* @__PURE__ */ S("span", { className: "font-semibold" }) }
24
24
  }) }),
@@ -37,7 +37,7 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
37
37
  children: /* @__PURE__ */ S(E, { id: "G6AP+o" })
38
38
  }),
39
39
  " ",
40
- u
40
+ p
41
41
  ] }),
42
42
  /* @__PURE__ */ C("li", { children: [
43
43
  /* @__PURE__ */ S("span", {
@@ -48,20 +48,20 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
48
48
  m
49
49
  ] })
50
50
  ] }),
51
- n && /* @__PURE__ */ C(p, { children: [
52
- s && /* @__PURE__ */ S(f, {
51
+ n && /* @__PURE__ */ C(d, { children: [
52
+ s && /* @__PURE__ */ S(l, {
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(f, {
58
+ (s || u) && /* @__PURE__ */ S(l, {
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(f, {
64
+ f && /* @__PURE__ */ S(l, {
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: r, _: i } = D();
74
- return /* @__PURE__ */ C(s, {
73
+ let { i18n: t, _: i } = D();
74
+ return /* @__PURE__ */ C(h, {
75
75
  px: !1,
76
76
  py: !0,
77
- children: [/* @__PURE__ */ S(t, { children: r._({ id: "nW/hX9" }) }), /* @__PURE__ */ C(l, {
77
+ children: [/* @__PURE__ */ S(f, { children: t._({ id: "nW/hX9" }) }), /* @__PURE__ */ C(o, {
78
78
  alignTerms: "right",
79
79
  children: [
80
- /* @__PURE__ */ S(o, { children: r._({ id: "S0kLOH" }) }),
80
+ /* @__PURE__ */ S(r, { children: t._({ id: "S0kLOH" }) }),
81
81
  /* @__PURE__ */ S(n, { children: e.id }),
82
- /* @__PURE__ */ S(o, { children: r._({ id: "6YtxFj" }) }),
82
+ /* @__PURE__ */ S(r, { children: t._({ id: "6YtxFj" }) }),
83
83
  /* @__PURE__ */ S(n, { children: e.name }),
84
- /* @__PURE__ */ S(o, { children: r._({ id: "uAQUqI" }) }),
84
+ /* @__PURE__ */ S(r, { children: t._({ id: "uAQUqI" }) }),
85
85
  /* @__PURE__ */ S(n, { children: e.status }),
86
- /* @__PURE__ */ S(o, { children: r._({ id: "Cj2Gtd" }) }),
86
+ /* @__PURE__ */ S(r, { children: t._({ id: "Cj2Gtd" }) }),
87
87
  /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S(y, { size: e.size }) }),
88
- /* @__PURE__ */ S(o, { children: r._({ id: "Cxgv2U" }) }),
88
+ /* @__PURE__ */ S(r, { children: t._({ id: "Cxgv2U" }) }),
89
89
  /* @__PURE__ */ C(n, { children: [e.min_disk, " GB"] }),
90
- /* @__PURE__ */ S(o, { children: r._({ id: "B2Czeb" }) }),
90
+ /* @__PURE__ */ S(r, { children: t._({ id: "B2Czeb" }) }),
91
91
  /* @__PURE__ */ C(n, { children: [e.min_ram, " MB"] }),
92
- /* @__PURE__ */ S(o, { children: r._({ id: "NopYGU" }) }),
92
+ /* @__PURE__ */ S(r, { children: t._({ id: "NopYGU" }) }),
93
93
  /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S("span", {
94
94
  className: "uppercase",
95
95
  children: e.disk_format
96
96
  }) }),
97
- /* @__PURE__ */ S(o, { children: r._({ id: "6/xipy" }) }),
97
+ /* @__PURE__ */ S(r, { children: t._({ id: "6/xipy" }) }),
98
98
  /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S("span", {
99
99
  className: "uppercase",
100
100
  children: e.container_format
101
101
  }) }),
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" }) })
102
+ /* @__PURE__ */ S(r, { children: t._({ id: "88kg0+" }) }),
103
+ /* @__PURE__ */ S(n, { children: e.created_at ? new Date(e.created_at).toLocaleDateString() : t._({ id: "fj5byd" }) }),
104
+ /* @__PURE__ */ S(r, { children: t._({ id: "Llcakz" }) }),
105
+ /* @__PURE__ */ S(n, { children: e.updated_at ? new Date(e.updated_at).toLocaleDateString() : t._({ id: "fj5byd" }) })
106
106
  ]
107
107
  })]
108
108
  });
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, {
109
+ }, A = ({ image: e, currentProjectId: t }) => {
110
+ let { i18n: i, _: a } = D(), s = e.visibility === "shared" && e.owner !== void 0 && e.owner !== t;
111
+ return /* @__PURE__ */ C(h, {
112
112
  px: !1,
113
113
  py: !0,
114
- children: [/* @__PURE__ */ S(t, { children: i._({ id: "a3LDKx" }) }), /* @__PURE__ */ C(l, {
114
+ children: [/* @__PURE__ */ S(f, { children: i._({ id: "a3LDKx" }) }), /* @__PURE__ */ C(o, {
115
115
  alignTerms: "right",
116
116
  children: [
117
- /* @__PURE__ */ S(o, { children: c ? i._({ id: "20axE5" }) : i._({ id: "YsrbQh" }) }),
117
+ /* @__PURE__ */ S(r, { children: s ? i._({ id: "20axE5" }) : i._({ id: "YsrbQh" }) }),
118
118
  /* @__PURE__ */ S(n, { children: e.owner }),
119
- /* @__PURE__ */ S(o, { children: i._({ id: "2q/Q7x" }) }),
119
+ /* @__PURE__ */ S(r, { children: i._({ id: "2q/Q7x" }) }),
120
120
  /* @__PURE__ */ S(n, { children: e.visibility }),
121
- /* @__PURE__ */ S(o, { children: i._({ id: "644xgx" }) }),
121
+ /* @__PURE__ */ S(r, { children: i._({ id: "644xgx" }) }),
122
122
  /* @__PURE__ */ S(n, { children: e.protected ? i._({ id: "l75CjT" }) : i._({ id: "1UzENP" }) }),
123
- /* @__PURE__ */ S(o, { children: i._({ id: "PzgYM9" }) }),
123
+ /* @__PURE__ */ S(r, { children: i._({ id: "PzgYM9" }) }),
124
124
  /* @__PURE__ */ S(n, { children: e?.checksum ? e.checksum : "" })
125
125
  ]
126
126
  })]
127
127
  });
128
128
  }, j = ({ image: e }) => {
129
- let { i18n: r, _: i } = D(), a = new Set([
129
+ let { i18n: t, _: i } = D(), a = new Set([
130
130
  "id",
131
131
  "name",
132
132
  "status",
@@ -141,62 +141,62 @@ 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]) => !a.has(e)).sort(([e], [t]) => e.localeCompare(t)), u = c.length > 0;
145
- return /* @__PURE__ */ C(s, {
144
+ ]), s = Object.entries(e).filter(([e]) => !a.has(e)).sort(([e], [t]) => e.localeCompare(t)), c = s.length > 0;
145
+ return /* @__PURE__ */ C(h, {
146
146
  px: !1,
147
147
  py: !0,
148
- children: [/* @__PURE__ */ S(t, { children: r._({ id: "bc67JN" }) }), u ? /* @__PURE__ */ S(l, {
148
+ children: [/* @__PURE__ */ S(f, { children: t._({ id: "bc67JN" }) }), c ? /* @__PURE__ */ S(o, {
149
149
  alignTerms: "right",
150
150
  className: "grid-cols-4",
151
- children: c.map(([e, t]) => /* @__PURE__ */ C(w.Fragment, { children: [/* @__PURE__ */ S(o, {
151
+ children: s.map(([e, i]) => /* @__PURE__ */ C(w.Fragment, { children: [/* @__PURE__ */ S(r, {
152
152
  className: "col-span-1",
153
153
  children: e
154
154
  }), /* @__PURE__ */ S(n, {
155
155
  className: "col-span-1",
156
- children: t == null ? /* @__PURE__ */ S("span", { children: "null" }) : typeof t == "object" ? /* @__PURE__ */ S("span", {
156
+ children: i == null ? /* @__PURE__ */ S("span", { children: "null" }) : typeof i == "object" ? /* @__PURE__ */ S("span", {
157
157
  className: "break-all",
158
- children: JSON.stringify(t)
159
- }) : typeof t == "boolean" ? t ? r._({ id: "c+xCSz" }) : r._({ id: "ocUvR+" }) : /* @__PURE__ */ S("span", {
158
+ children: JSON.stringify(i)
159
+ }) : typeof i == "boolean" ? i ? t._({ id: "c+xCSz" }) : t._({ id: "ocUvR+" }) : /* @__PURE__ */ S("span", {
160
160
  className: "break-all",
161
- children: String(t)
161
+ children: String(i)
162
162
  })
163
163
  })] }, e))
164
164
  }) : /* @__PURE__ */ S("p", {
165
165
  className: "text-theme-light",
166
- children: r._({ id: "9v5VLp" })
166
+ children: t._({ 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 [r, a] = T(!1), [o, c] = T(null), { data: l, isLoading: u } = g.compute.listImageMembers.useQuery({
173
+ let [r, i] = T(!1), [a, o] = T(null), { data: s, isLoading: c } = g.compute.listImageMembers.useQuery({
174
174
  project_id: n,
175
175
  imageId: e.id
176
176
  }, { enabled: !!e.id && !!n });
177
- return /* @__PURE__ */ C(s, {
177
+ return /* @__PURE__ */ C(h, {
178
178
  px: !1,
179
179
  py: !0,
180
- children: [o && /* @__PURE__ */ S(i, {
181
- text: o.text,
182
- variant: o.type,
183
- onDismiss: () => c(null),
180
+ children: [a && /* @__PURE__ */ S(m, {
181
+ text: a.text,
182
+ variant: a.type,
183
+ onDismiss: () => o(null),
184
184
  className: "mb-4"
185
185
  }), /* @__PURE__ */ S(_, {
186
186
  image: e,
187
- imageMembers: l,
188
- isMembersLoading: u,
187
+ imageMembers: s,
188
+ isMembersLoading: c,
189
189
  canAdd: t?.canCreateMember ?? !1,
190
190
  canRemove: t?.canDeleteMember ?? !1,
191
191
  isAddingMember: r,
192
- setIsAddingMember: a,
193
- setMessage: c,
192
+ setIsAddingMember: i,
193
+ setMessage: o,
194
194
  projectId: n
195
195
  })]
196
196
  });
197
197
  }, fe = ({ image: e, currentProjectId: t, activeTab: n = "details", onTabChange: r, permissions: i, myMemberData: a, onMemberStatusChange: o, isMemberStatusChanging: s, actions: c }) => {
198
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, {
199
+ return /* @__PURE__ */ C(p, {
200
200
  direction: "vertical",
201
201
  gap: "6",
202
202
  children: [
@@ -209,7 +209,7 @@ var O = ({ image: e, myMemberData: t, canUpdateMember: n, onStatusChange: r, isL
209
209
  }),
210
210
  f && /* @__PURE__ */ S("div", {
211
211
  className: "border-theme-background-lvl-3 border-b",
212
- children: /* @__PURE__ */ C(h, {
212
+ children: /* @__PURE__ */ C(p, {
213
213
  direction: "horizontal",
214
214
  gap: "0",
215
215
  children: [/* @__PURE__ */ S("button", {
@@ -242,11 +242,11 @@ 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: 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
- project_id: t,
247
- imageId: n
245
+ let { projectId: n, imageId: r } = ue({ from: "/_auth/projects/$projectId/compute/images/$imageId" }), { tab: o } = de({ from: "/_auth/projects/$projectId/compute/images/$imageId" }), c = le(), { i18n: f, _: m } = D(), { data: h, status: _, error: v } = g.compute.getImageById.useQuery({
246
+ project_id: n,
247
+ imageId: r
248
248
  }), { data: y } = g.compute.canUser.useQuery({
249
- project_id: t,
249
+ project_id: n,
250
250
  permission: [
251
251
  "images:delete",
252
252
  "images:update",
@@ -262,45 +262,45 @@ function P() {
262
262
  canUpdateMember: y?.[4] ?? !1
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
- project_id: t,
266
- imageId: n
265
+ project_id: n,
266
+ imageId: r
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
- project_id: t,
273
- imageId: n
272
+ project_id: n,
273
+ imageId: r
274
274
  });
275
275
  } }), W = g.compute.reactivateImage.useMutation({ onSuccess: () => {
276
276
  O.compute.getImageById.invalidate({
277
- project_id: t,
278
- imageId: n
277
+ project_id: n,
278
+ imageId: r
279
279
  });
280
280
  } }), G = g.compute.updateImageVisibility.useMutation({ onSuccess: (e) => {
281
281
  O.compute.getImageById.setData({
282
- project_id: t,
283
- imageId: n
282
+ project_id: n,
283
+ imageId: r
284
284
  }, e);
285
- } }), K = d?.visibility === b.SHARED && d?.owner !== void 0 && d?.owner !== t, { data: pe } = g.compute.getImageMember.useQuery({
286
- project_id: t,
287
- imageId: n,
288
- memberId: t
289
- }, { enabled: K && !!n && !!t }), q = g.compute.updateImageMember.useMutation({ onSuccess: () => {
285
+ } }), K = h?.visibility === b.SHARED && h?.owner !== void 0 && h?.owner !== n, { data: pe } = g.compute.getImageMember.useQuery({
286
+ project_id: n,
287
+ imageId: r,
288
+ memberId: n
289
+ }, { enabled: K && !!r && !!n }), q = g.compute.updateImageMember.useMutation({ onSuccess: () => {
290
290
  O.compute.getImageMember.invalidate({
291
- project_id: t,
292
- imageId: n,
293
- memberId: t
291
+ project_id: n,
292
+ imageId: r,
293
+ memberId: n
294
294
  }), O.compute.listImageMembers.invalidate({
295
- project_id: t,
296
- imageId: n
295
+ project_id: n,
296
+ imageId: r
297
297
  }), O.compute.listImagesWithPagination.invalidate(), O.compute.listSharedImagesByMemberStatus.invalidate();
298
298
  } }), me = async (e) => {
299
299
  try {
300
300
  await q.mutateAsync({
301
- project_id: t,
302
- imageId: n,
303
- memberId: t,
301
+ project_id: n,
302
+ imageId: r,
303
+ memberId: n,
304
304
  status: e
305
305
  }), B(oe(e, { onDismiss: () => B(null) }));
306
306
  } catch (e) {
@@ -308,9 +308,9 @@ function P() {
308
308
  B(ce(t, { onDismiss: () => B(null) }));
309
309
  }
310
310
  }, J = () => {
311
- o({
311
+ c({
312
312
  to: "/projects/$projectId/compute/images",
313
- params: { projectId: t }
313
+ params: { projectId: n }
314
314
  });
315
315
  }, Y = V.isPending || H.isPending || U.isPending || W.isPending || G.isPending, he = (e, t) => {
316
316
  let n = [];
@@ -330,13 +330,13 @@ function P() {
330
330
  }
331
331
  }), n;
332
332
  }, X = async (e) => {
333
- if (!d) return !1;
334
- let r = he(e, d);
333
+ if (!h) return !1;
334
+ let t = he(e, h);
335
335
  try {
336
336
  return await V.mutateAsync({
337
- project_id: t,
338
- imageId: n,
339
- operations: r
337
+ project_id: n,
338
+ imageId: r,
339
+ operations: t
340
340
  }), A(!1), !0;
341
341
  } catch {
342
342
  return !1;
@@ -344,7 +344,7 @@ function P() {
344
344
  }, ge = async (e) => {
345
345
  try {
346
346
  await H.mutateAsync({
347
- project_id: t,
347
+ project_id: n,
348
348
  imageId: e.id
349
349
  }), P(!1), J();
350
350
  } catch {
@@ -353,7 +353,7 @@ function P() {
353
353
  }, _e = async (e) => {
354
354
  try {
355
355
  await W.mutateAsync({
356
- project_id: t,
356
+ project_id: n,
357
357
  imageId: e.id
358
358
  }), I(!1);
359
359
  } catch {
@@ -362,27 +362,27 @@ function P() {
362
362
  }, ve = async (e) => {
363
363
  try {
364
364
  await U.mutateAsync({
365
- project_id: t,
365
+ project_id: n,
366
366
  imageId: e.id
367
367
  }), R(!1);
368
368
  } catch {
369
369
  R(!1);
370
370
  }
371
371
  }, Z = async (e) => {
372
- if (d) try {
372
+ if (h) try {
373
373
  await G.mutateAsync({
374
- project_id: t,
375
- imageId: d.id,
374
+ project_id: n,
375
+ imageId: h.id,
376
376
  visibility: e
377
377
  });
378
378
  } catch {}
379
379
  };
380
- if (_ === "pending") return /* @__PURE__ */ C(h, {
380
+ if (_ === "pending") return /* @__PURE__ */ C(p, {
381
381
  className: "fixed inset-0",
382
382
  distribution: "center",
383
383
  alignment: "center",
384
384
  direction: "vertical",
385
- children: [/* @__PURE__ */ S(u, {
385
+ children: [/* @__PURE__ */ S(i, {
386
386
  variant: "primary",
387
387
  size: "large",
388
388
  className: "mb-2"
@@ -390,7 +390,7 @@ function P() {
390
390
  });
391
391
  if (_ === "error") {
392
392
  let e = v?.message || "Unknown error";
393
- return /* @__PURE__ */ C(h, {
393
+ return /* @__PURE__ */ C(p, {
394
394
  className: "fixed inset-0",
395
395
  distribution: "center",
396
396
  alignment: "center",
@@ -405,7 +405,7 @@ function P() {
405
405
  className: "text-theme-highest",
406
406
  children: e
407
407
  }),
408
- /* @__PURE__ */ S(f, {
408
+ /* @__PURE__ */ S(l, {
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 (!d) return /* @__PURE__ */ C(h, {
416
+ if (!h) return /* @__PURE__ */ C(p, {
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(f, {
425
+ }), /* @__PURE__ */ S(l, {
426
426
  onClick: J,
427
427
  variant: "primary",
428
428
  children: /* @__PURE__ */ S(E, { id: "bnql/K" })
429
429
  })]
430
430
  });
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, {
431
+ let Q = h.status === re.DEACTIVATED, ye = h.visibility === b.PRIVATE, $ = !K && (w.canUpdate || w.canDelete && !h.protected), be = !K && ($ || w.canUpdate) ? /* @__PURE__ */ C(d, { children: [
432
+ $ && /* @__PURE__ */ C(u, { children: [/* @__PURE__ */ S(a, {
433
433
  as: "div",
434
- children: /* @__PURE__ */ S(f, {
434
+ children: /* @__PURE__ */ S(l, {
435
435
  icon: "moreVert",
436
436
  disabled: Y,
437
437
  children: /* @__PURE__ */ S(E, { id: "PgNNGl" })
438
438
  })
439
- }), /* @__PURE__ */ C(c, { children: [
440
- w.canUpdate && /* @__PURE__ */ S(r, {
441
- label: Q ? s._({ id: "FQBaXG" }) : s._({ id: "5y3O+A" }),
439
+ }), /* @__PURE__ */ C(e, { children: [
440
+ w.canUpdate && /* @__PURE__ */ S(s, {
441
+ label: Q ? f._({ id: "FQBaXG" }) : f._({ id: "5y3O+A" }),
442
442
  onClick: () => Q ? I(!0) : R(!0)
443
443
  }),
444
- w.canUpdate && ye && /* @__PURE__ */ S(r, {
445
- label: s._({ id: "gMYsdZ" }),
444
+ w.canUpdate && ye && /* @__PURE__ */ S(s, {
445
+ label: f._({ id: "gMYsdZ" }),
446
446
  onClick: () => Z("shared")
447
447
  }),
448
- w.canDelete && !d.protected && /* @__PURE__ */ S(r, {
449
- label: s._({ id: "cnGeoo" }),
448
+ w.canDelete && !h.protected && /* @__PURE__ */ S(s, {
449
+ label: f._({ id: "cnGeoo" }),
450
450
  onClick: () => P(!0)
451
451
  })
452
452
  ] })] }),
453
- w.canUpdate && /* @__PURE__ */ S(f, {
453
+ w.canUpdate && /* @__PURE__ */ S(l, {
454
454
  onClick: () => M(!0),
455
455
  disabled: Y,
456
456
  children: /* @__PURE__ */ S(E, { id: "SIfYq6" })
457
457
  }),
458
- w.canUpdate && /* @__PURE__ */ S(f, {
458
+ w.canUpdate && /* @__PURE__ */ S(l, {
459
459
  onClick: () => A(!0),
460
460
  variant: "primary",
461
461
  disabled: Y,
@@ -464,15 +464,15 @@ function P() {
464
464
  ] }) : void 0;
465
465
  return /* @__PURE__ */ C(x, { children: [
466
466
  /* @__PURE__ */ S(ee, {
467
- title: String(d.name ?? d.id),
468
- projectId: t,
467
+ title: String(h.name ?? h.id),
468
+ projectId: n,
469
469
  actions: be
470
470
  }),
471
471
  /* @__PURE__ */ S(fe, {
472
- image: d,
473
- currentProjectId: t,
474
- activeTab: i ?? "details",
475
- onTabChange: (e) => o({ search: { tab: e === "details" ? void 0 : e } }),
472
+ image: h,
473
+ currentProjectId: n,
474
+ activeTab: o ?? "details",
475
+ onTabChange: (e) => c({ search: { tab: e === "details" ? void 0 : e } }),
476
476
  permissions: {
477
477
  canCreateMember: w.canCreateMember,
478
478
  canDeleteMember: w.canDeleteMember,
@@ -481,39 +481,39 @@ function P() {
481
481
  myMemberData: pe,
482
482
  onMemberStatusChange: me,
483
483
  isMemberStatusChanging: q.isPending
484
- }, d.id),
485
- z && /* @__PURE__ */ S(m, { ...z }),
484
+ }, h.id),
485
+ z && /* @__PURE__ */ S(t, { ...z }),
486
486
  k && /* @__PURE__ */ S(se, {
487
- image: d,
487
+ image: h,
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: d,
494
+ image: h,
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: d,
501
+ image: h,
502
502
  isOpen: N,
503
503
  isLoading: H.isPending,
504
- isDisabled: !!d.protected,
504
+ isDisabled: !!h.protected,
505
505
  onClose: () => P(!1),
506
506
  onDelete: ge
507
507
  }),
508
508
  F && /* @__PURE__ */ S(ne, {
509
- image: d,
509
+ image: h,
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: d,
516
+ image: h,
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-DdSbxFqG.mjs.map
527
+ //# sourceMappingURL=_imageId-CdOOJjw0.mjs.map