@burdenoff/microfe-security 2026.525.3 → 2026.527.2

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 (76) hide show
  1. package/dist/security/SecurityAdminRoot.js +4 -4
  2. package/dist/security/SecurityAdminRoot.js.map +1 -1
  3. package/dist/security/SecurityRoot.js +4 -4
  4. package/dist/security/SecurityRoot.js.map +1 -1
  5. package/dist/security/SecurityUserRoot.js +4 -4
  6. package/dist/security/SecurityUserRoot.js.map +1 -1
  7. package/dist/security/components/ActivityTimeline.js +1 -1
  8. package/dist/security/components/ActivityTimeline.js.map +1 -1
  9. package/dist/security/components/BulkActionBar.js +6 -5
  10. package/dist/security/components/BulkActionBar.js.map +1 -1
  11. package/dist/security/components/ConfirmDialog.js +5 -3
  12. package/dist/security/components/ConfirmDialog.js.map +1 -1
  13. package/dist/security/components/CopyButton.js +4 -3
  14. package/dist/security/components/CopyButton.js.map +1 -1
  15. package/dist/security/components/ExportDialog.js +39 -38
  16. package/dist/security/components/ExportDialog.js.map +1 -1
  17. package/dist/security/components/ImportWizard.js +14 -13
  18. package/dist/security/components/ImportWizard.js.map +1 -1
  19. package/dist/security/components/PasswordGenerator.js +8 -4
  20. package/dist/security/components/PasswordGenerator.js.map +1 -1
  21. package/dist/security/components/RotationStatusBadge.js +1 -1
  22. package/dist/security/components/RotationStatusBadge.js.map +1 -1
  23. package/dist/security/components/SecretFormFields.js +88 -75
  24. package/dist/security/components/SecretFormFields.js.map +1 -1
  25. package/dist/security/components/SecretRow.js +11 -9
  26. package/dist/security/components/SecretRow.js.map +1 -1
  27. package/dist/security/components/SecretValueDisplay.js +45 -44
  28. package/dist/security/components/SecretValueDisplay.js.map +1 -1
  29. package/dist/security/components/SecurityPermissionGuard.js +1 -1
  30. package/dist/security/components/SecurityPermissionGuard.js.map +1 -1
  31. package/dist/security/components/VaultCard.js +5 -5
  32. package/dist/security/components/VaultCard.js.map +1 -1
  33. package/dist/security/components/VaultShareDialog.js +9 -6
  34. package/dist/security/components/VaultShareDialog.js.map +1 -1
  35. package/dist/security/components/ui.js +9 -8
  36. package/dist/security/components/ui.js.map +1 -1
  37. package/dist/security/constants/providers.js.map +1 -1
  38. package/dist/security/hooks/useProviderQueries.js.map +1 -1
  39. package/dist/security/hooks/useSecretQueries.js.map +1 -1
  40. package/dist/security/hooks/useSecretValue.js +12 -11
  41. package/dist/security/hooks/useSecretValue.js.map +1 -1
  42. package/dist/security/hooks/useSecurityDashboard.js +10 -10
  43. package/dist/security/hooks/useSecurityDashboard.js.map +1 -1
  44. package/dist/security/hooks/useSecuritySubscriptions.js.map +1 -1
  45. package/dist/security/pages/AccessReviewPage.js +4 -4
  46. package/dist/security/pages/AccessReviewPage.js.map +1 -1
  47. package/dist/security/pages/AuditLogPage.js +11 -5
  48. package/dist/security/pages/AuditLogPage.js.map +1 -1
  49. package/dist/security/pages/ImportExportPage.js +4 -2
  50. package/dist/security/pages/ImportExportPage.js.map +1 -1
  51. package/dist/security/pages/ProviderDetailPage.js +12 -12
  52. package/dist/security/pages/ProviderDetailPage.js.map +1 -1
  53. package/dist/security/pages/ProvidersPage.js +9 -9
  54. package/dist/security/pages/ProvidersPage.js.map +1 -1
  55. package/dist/security/pages/SecretCreatePage.js +5 -5
  56. package/dist/security/pages/SecretCreatePage.js.map +1 -1
  57. package/dist/security/pages/SecretDetailPage.js +213 -205
  58. package/dist/security/pages/SecretDetailPage.js.map +1 -1
  59. package/dist/security/pages/SecurityDashboardPage.js +7 -7
  60. package/dist/security/pages/SecurityDashboardPage.js.map +1 -1
  61. package/dist/security/pages/VaultCreatePage.js +2 -2
  62. package/dist/security/pages/VaultCreatePage.js.map +1 -1
  63. package/dist/security/pages/VaultDetailPage.js +13 -13
  64. package/dist/security/pages/VaultDetailPage.js.map +1 -1
  65. package/dist/security/pages/VaultSettingsPage.js +160 -140
  66. package/dist/security/pages/VaultSettingsPage.js.map +1 -1
  67. package/dist/security/pages/VaultsDashboardPage.js +147 -143
  68. package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
  69. package/dist/security/providers/SecurityProvider.js +1 -1
  70. package/dist/security/providers/SecurityProvider.js.map +1 -1
  71. package/dist/security/routes/routeUtils.js +4 -3
  72. package/dist/security/routes/routeUtils.js.map +1 -1
  73. package/dist/security/utils/clipboard.js.map +1 -1
  74. package/dist/security/utils/fileParser.js +4 -1
  75. package/dist/security/utils/fileParser.js.map +1 -1
  76. package/package.json +1 -1
@@ -1,141 +1,158 @@
1
1
  import { useSecurity as e } from "../providers/SecurityProvider.js";
2
2
  import { cn as t } from "../utils/cn.js";
3
3
  import { PageLayout as n } from "../components/PageLayout.js";
4
- import { Badge as r, Button as i, Card as a, Input as ee } from "../components/ui.js";
5
- import { translateWithFallback as te } from "../utils/i18n.js";
6
- import { ConfirmDialog as ne } from "../components/ConfirmDialog.js";
7
- import { useDeleteVault as o, useGetVault as s, useShareVault as re, useUnshareVault as c, useUpdateVault as l, useUpdateVaultMemberRole as u } from "../hooks/useVaultQueries.js";
8
- import { useSecurityEventEmitter as d } from "../hooks/useSecurityEventEmitter.js";
9
- import { getVaultRoleInfo as ie } from "../constants/permissions.js";
10
- import { nativeConfirm as ae, nativeImpact as oe, nativeNotify as f } from "../../utils/nativeBridge.js";
11
- import { SecurityPermissionGuard as p } from "../components/SecurityPermissionGuard.js";
12
- import { VaultShareDialog as se } from "../components/VaultShareDialog.js";
13
- import { useEffect as m, useState as h } from "react";
14
- import { usePermission as g } from "@burdenoff/fe-libs/shared/providers/shell";
15
- import { useNavigate as ce, useParams as _ } from "react-router-dom";
4
+ import { Badge as r, Button as i, Card as a, Input as o } from "../components/ui.js";
5
+ import { translateWithFallback as s } from "../utils/i18n.js";
6
+ import { ConfirmDialog as ee } from "../components/ConfirmDialog.js";
7
+ import { useDeleteVault as te, useGetVault as ne, useShareVault as re, useUnshareVault as ie, useUpdateVault as ae, useUpdateVaultMemberRole as c } from "../hooks/useVaultQueries.js";
8
+ import { useSecurityEventEmitter as l } from "../hooks/useSecurityEventEmitter.js";
9
+ import { getVaultRoleInfo as u } from "../constants/permissions.js";
10
+ import { nativeConfirm as d, nativeImpact as f, nativeNotify as p } from "../../utils/nativeBridge.js";
11
+ import { SecurityPermissionGuard as m } from "../components/SecurityPermissionGuard.js";
12
+ import { VaultShareDialog as h } from "../components/VaultShareDialog.js";
13
+ import { useEffect as oe, useState as g } from "react";
14
+ import { usePermission as _ } from "@burdenoff/fe-libs/shared/providers/shell";
15
+ import { useNavigate as se, useParams as ce } from "react-router-dom";
16
16
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
17
- import { AlertTriangle as le, Loader2 as b, Save as ue, Shield as x, Trash2 as de, UserPlus as fe, Users as S, X as pe } from "lucide-react";
18
- import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
+ import { AlertTriangle as le, Loader2 as b, Save as ue, Shield as x, Trash2 as de, UserPlus as fe, Users as S, X as C } from "lucide-react";
18
+ import { useI18n as w } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
19
19
  //#region src/security/pages/VaultSettingsPage.tsx
20
- function w() {
21
- let { vaultId: w } = _(), { basePath: T = "/", navigate: E } = e(), { t: D } = C(), O = ce(), { data: k, loading: A, refetch: j } = s(w ?? null), M = k?.getVault, [N, { loading: P }] = l(), [F, { loading: I }] = o(), [L, { loading: me }] = re(), [R, { loading: he }] = c(), [ge, { loading: _e }] = u(), { emit: z } = d();
22
- g("vault:update"), g("vault:delete"), g("member:add");
23
- let B = g("member:remove");
24
- g("member:update_role");
25
- let [V, H] = h(""), [U, W] = h(""), [G, K] = h(30), [ve, q] = h(!1), [ye, J] = h(!1), [Y, X] = h(null), Z = (e, t, n) => te(D, e, t, n);
26
- m(() => {
27
- M && (H(M.name ?? ""), W(M.description ?? ""), K(M.lockAfterMinutes ?? 30));
28
- }, [M]);
29
- let be = (e) => {
30
- E ? E(e) : O(e);
31
- }, xe = async () => {
32
- if (w) {
33
- X(null);
20
+ function T() {
21
+ let { vaultId: T } = ce(), { basePath: E = "/", navigate: D } = e(), { t: O } = w(), k = se(), { data: A, loading: j, refetch: M } = ne(T ?? null), N = A?.getVault, [P, { loading: F }] = ae(), [I, { loading: L }] = te(), [R, { loading: pe }] = re(), [z, { loading: me }] = ie(), [he, { loading: ge }] = c(), { emit: B } = l();
22
+ _("vault:update"), _("vault:delete"), _("member:add");
23
+ let V = _("member:remove");
24
+ _("member:update_role");
25
+ let [_e, H] = g({
26
+ name: "",
27
+ description: "",
28
+ lockAfterMinutes: 30
29
+ }), { name: U, description: W, lockAfterMinutes: G } = _e, ve = (e) => H((t) => ({
30
+ ...t,
31
+ name: e
32
+ })), ye = (e) => H((t) => ({
33
+ ...t,
34
+ description: e
35
+ })), be = (e) => H((t) => ({
36
+ ...t,
37
+ lockAfterMinutes: e
38
+ })), [xe, K] = g(!1), [Se, q] = g(!1), [J, Y] = g(null), X = (e, t, n) => s(O, e, t, n);
39
+ oe(() => {
40
+ N && H({
41
+ name: N.name ?? "",
42
+ description: N.description ?? "",
43
+ lockAfterMinutes: N.lockAfterMinutes ?? 30
44
+ });
45
+ }, [N]);
46
+ let Ce = (e) => {
47
+ D ? D(e) : k(e);
48
+ }, we = async () => {
49
+ if (T) {
50
+ Y(null);
34
51
  try {
35
- await N({ variables: {
36
- id: w,
52
+ await P({ variables: {
53
+ id: T,
37
54
  input: {
38
- name: V,
39
- description: U,
55
+ name: U,
56
+ description: W,
40
57
  lockAfterMinutes: G
41
58
  }
42
- } }), z("vault.updated", { vaultId: w });
59
+ } }), B("vault.updated", { vaultId: T });
43
60
  } catch (e) {
44
- X(e instanceof Error ? e.message : Z("security.vaultSettings.error.updateVault", "Failed to update vault"));
61
+ Y(e instanceof Error ? e.message : X("security.vaultSettings.error.updateVault", "Failed to update vault"));
45
62
  }
46
63
  }
47
- }, Q = async () => {
48
- if (w) try {
49
- await F({ variables: { id: w } }), z("vault.deleted", { vaultId: w }), f("success"), be(T);
64
+ }, Z = async () => {
65
+ if (T) try {
66
+ await I({ variables: { id: T } }), B("vault.deleted", { vaultId: T }), p("success"), Ce(E);
50
67
  } catch (e) {
51
- X(e instanceof Error ? e.message : Z("security.vaultSettings.error.deleteVault", "Failed to delete vault")), f("error");
68
+ Y(e instanceof Error ? e.message : X("security.vaultSettings.error.deleteVault", "Failed to delete vault")), p("error");
52
69
  }
53
- }, Se = async () => {
54
- oe("medium");
55
- let e = await ae({
56
- title: Z("security.vaultSettings.deleteVault.title", "Delete Vault"),
57
- message: Z("security.vaultSettings.deleteVault.message", "Delete this vault? This cannot be undone."),
58
- okButtonTitle: Z("security.vaultSettings.deleteVault.confirm", "Delete"),
59
- cancelButtonTitle: Z("security.vaultSettings.deleteVault.cancel", "Cancel")
70
+ }, Q = async () => {
71
+ f("medium");
72
+ let e = await d({
73
+ title: X("security.vaultSettings.deleteVault.title", "Delete Vault"),
74
+ message: X("security.vaultSettings.deleteVault.message", "Delete this vault? This cannot be undone."),
75
+ okButtonTitle: X("security.vaultSettings.deleteVault.confirm", "Delete"),
76
+ cancelButtonTitle: X("security.vaultSettings.deleteVault.cancel", "Cancel")
60
77
  });
61
78
  if (e === null) {
62
- J(!0);
79
+ q(!0);
63
80
  return;
64
81
  }
65
- e && await Q();
66
- }, Ce = async (e, t) => {
67
- if (w) {
68
- X(null);
82
+ e && await Z();
83
+ }, Te = async (e, t) => {
84
+ if (T) {
85
+ Y(null);
69
86
  try {
70
- let n = await L({ variables: { input: {
71
- vaultId: w,
87
+ let n = await R({ variables: { input: {
88
+ vaultId: T,
72
89
  actorId: e,
73
90
  actorType: "user",
74
91
  role: t.toUpperCase()
75
92
  } } });
76
- n.data?.shareVault?.id && z("member.added", {
77
- vaultId: w,
93
+ n.data?.shareVault?.id && B("member.added", {
94
+ vaultId: T,
78
95
  memberId: n.data.shareVault.id,
79
96
  role: t
80
- }), q(!1), j();
97
+ }), K(!1), M();
81
98
  } catch (e) {
82
- X(e instanceof Error ? e.message : Z("security.vaultSettings.error.shareVault", "Failed to share vault"));
99
+ Y(e instanceof Error ? e.message : X("security.vaultSettings.error.shareVault", "Failed to share vault"));
83
100
  }
84
101
  }
85
- }, we = async (e, t) => {
86
- if (w) try {
87
- await R({ variables: {
88
- vaultId: w,
102
+ }, Ee = async (e, t) => {
103
+ if (T) try {
104
+ await z({ variables: {
105
+ vaultId: T,
89
106
  actorId: e,
90
107
  actorType: t
91
- } }), z("member.removed", {
92
- vaultId: w,
108
+ } }), B("member.removed", {
109
+ vaultId: T,
93
110
  memberId: e
94
- }), j();
111
+ }), M();
95
112
  } catch (e) {
96
- X(e instanceof Error ? e.message : Z("security.vaultSettings.error.removeMember", "Failed to remove member"));
113
+ Y(e instanceof Error ? e.message : X("security.vaultSettings.error.removeMember", "Failed to remove member"));
97
114
  }
98
- }, $ = M?.membersList?.items ?? [];
99
- return A && !M ? /* @__PURE__ */ v(n, {
100
- title: Z("security.vaultSettings.title", "Vault Settings"),
115
+ }, $ = N?.membersList?.items ?? [];
116
+ return j && !N ? /* @__PURE__ */ v(n, {
117
+ title: X("security.vaultSettings.title", "Vault Settings"),
101
118
  breadcrumbs: [
102
119
  {
103
- label: Z("security.common.breadcrumbs.security", "Security"),
104
- path: T
120
+ label: X("security.common.breadcrumbs.security", "Security"),
121
+ path: E
105
122
  },
106
123
  {
107
- label: Z("security.common.breadcrumbs.vault", "Vault"),
108
- path: `${T}/vaults/${w}`
124
+ label: X("security.common.breadcrumbs.vault", "Vault"),
125
+ path: `${E}/vaults/${T}`
109
126
  },
110
- { label: Z("security.common.actions.settings", "Settings") }
127
+ { label: X("security.common.actions.settings", "Settings") }
111
128
  ],
112
129
  children: /* @__PURE__ */ v("div", {
113
130
  className: "flex items-center justify-center py-20",
114
- children: /* @__PURE__ */ v(b, { className: "h-10 w-10 animate-spin text-primary/60" })
131
+ children: /* @__PURE__ */ v(b, { className: "size-10 animate-spin text-primary/60" })
115
132
  })
116
133
  }) : /* @__PURE__ */ y(n, {
117
- title: Z("security.vaultSettings.title", "Vault Settings"),
118
- description: Z("security.vaultSettings.description", "Configure {name} settings and access.", { name: M?.name ?? Z("security.common.breadcrumbs.vaultLowercase", "vault") }),
134
+ title: X("security.vaultSettings.title", "Vault Settings"),
135
+ description: X("security.vaultSettings.description", "Configure {name} settings and access.", { name: N?.name ?? X("security.common.breadcrumbs.vaultLowercase", "vault") }),
119
136
  breadcrumbs: [
120
137
  {
121
- label: Z("security.common.breadcrumbs.security", "Security"),
122
- path: T
138
+ label: X("security.common.breadcrumbs.security", "Security"),
139
+ path: E
123
140
  },
124
141
  {
125
- label: M?.name ?? Z("security.common.breadcrumbs.vault", "Vault"),
126
- path: `${T}/vaults/${w}`
142
+ label: N?.name ?? X("security.common.breadcrumbs.vault", "Vault"),
143
+ path: `${E}/vaults/${T}`
127
144
  },
128
- { label: Z("security.common.actions.settings", "Settings") }
145
+ { label: X("security.common.actions.settings", "Settings") }
129
146
  ],
130
147
  children: [
131
148
  /* @__PURE__ */ y("div", {
132
149
  className: "space-y-8 max-w-4xl mx-auto",
133
150
  children: [
134
- Y && /* @__PURE__ */ y("div", {
151
+ J && /* @__PURE__ */ y("div", {
135
152
  className: "p-4 rounded-lg bg-destructive/10 text-destructive border border-destructive/20 flex items-start gap-3",
136
- children: [/* @__PURE__ */ v(le, { className: "h-5 w-5 shrink-0 mt-0.5" }), /* @__PURE__ */ v("p", {
153
+ children: [/* @__PURE__ */ v(le, { className: "size-5 shrink-0 mt-0.5" }), /* @__PURE__ */ v("p", {
137
154
  className: "text-sm font-medium",
138
- children: Y
155
+ children: J
139
156
  })]
140
157
  }),
141
158
  /* @__PURE__ */ y(a, {
@@ -144,20 +161,20 @@ function w() {
144
161
  className: "flex items-center gap-3 mb-6",
145
162
  children: [/* @__PURE__ */ v("div", {
146
163
  className: "p-2 rounded-lg bg-primary/10 text-primary",
147
- children: /* @__PURE__ */ v(x, { className: "h-5 w-5" })
164
+ children: /* @__PURE__ */ v(x, { className: "size-5" })
148
165
  }), /* @__PURE__ */ v("h2", {
149
166
  className: "text-xl font-bold text-foreground",
150
- children: Z("security.vaultSettings.general.title", "General Settings")
167
+ children: X("security.vaultSettings.general.title", "General Settings")
151
168
  })]
152
169
  }), /* @__PURE__ */ y("div", {
153
170
  className: "space-y-6",
154
171
  children: [
155
- /* @__PURE__ */ v(ee, {
172
+ /* @__PURE__ */ v(o, {
156
173
  id: "vault-name",
157
- label: Z("security.vaultSettings.general.vaultName", "Vault Name"),
158
- value: V,
159
- onChange: (e) => H(e.target.value),
160
- placeholder: Z("security.vaultSettings.general.vaultNamePlaceholder", "e.g. Production Credentials"),
174
+ label: X("security.vaultSettings.general.vaultName", "Vault Name"),
175
+ value: U,
176
+ onChange: (e) => ve(e.target.value),
177
+ placeholder: X("security.vaultSettings.general.vaultNamePlaceholder", "e.g. Production Credentials"),
161
178
  className: "max-w-md"
162
179
  }),
163
180
  /* @__PURE__ */ y("div", {
@@ -165,12 +182,13 @@ function w() {
165
182
  children: [/* @__PURE__ */ v("label", {
166
183
  htmlFor: "vault-desc",
167
184
  className: "text-sm font-medium text-foreground",
168
- children: Z("security.vaultSettings.general.descriptionLabel", "Description")
185
+ children: X("security.vaultSettings.general.descriptionLabel", "Description")
169
186
  }), /* @__PURE__ */ v("textarea", {
170
187
  id: "vault-desc",
171
- value: U,
172
- onChange: (e) => W(e.target.value),
173
- placeholder: Z("security.vaultSettings.general.descriptionPlaceholder", "What is this vault for?"),
188
+ "aria-label": X("security.vaultSettings.general.descriptionLabel", "Description"),
189
+ value: W,
190
+ onChange: (e) => ye(e.target.value),
191
+ placeholder: X("security.vaultSettings.general.descriptionPlaceholder", "What is this vault for?"),
174
192
  rows: 3,
175
193
  className: t("flex w-full rounded-md border border-border bg-background px-3 py-2 text-sm transition-all", "focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary", "placeholder:text-muted-foreground/50 resize-y")
176
194
  })]
@@ -181,42 +199,43 @@ function w() {
181
199
  /* @__PURE__ */ y("label", {
182
200
  htmlFor: "auto-lock",
183
201
  className: "text-sm font-medium text-foreground flex items-center gap-2",
184
- children: [Z("security.vaultSettings.general.autoLock.title", "Auto-lock Timeout"), /* @__PURE__ */ v(r, {
202
+ children: [X("security.vaultSettings.general.autoLock.title", "Auto-lock Timeout"), /* @__PURE__ */ v(r, {
185
203
  variant: "outline",
186
204
  className: "font-normal text-[10px]",
187
- children: Z("security.common.breadcrumbs.security", "Security")
205
+ children: X("security.common.breadcrumbs.security", "Security")
188
206
  })]
189
207
  }),
190
208
  /* @__PURE__ */ y("div", {
191
209
  className: "flex items-center gap-3",
192
210
  children: [/* @__PURE__ */ v("input", {
193
211
  id: "auto-lock",
212
+ "aria-label": X("security.vaultSettings.general.autoLock.title", "Auto-lock Timeout"),
194
213
  type: "number",
195
214
  min: 0,
196
215
  max: 1440,
197
216
  value: G,
198
- onChange: (e) => K(parseInt(e.target.value, 10) || 0),
217
+ onChange: (e) => be(parseInt(e.target.value, 10) || 0),
199
218
  className: t("flex h-9 w-24 rounded-md border border-border bg-background px-3 py-1 text-sm transition-all", "focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary")
200
219
  }), /* @__PURE__ */ v("span", {
201
220
  className: "text-sm text-muted-foreground",
202
- children: Z("security.vaultSettings.general.autoLock.minutes", "minutes")
221
+ children: X("security.vaultSettings.general.autoLock.minutes", "minutes")
203
222
  })]
204
223
  }),
205
224
  /* @__PURE__ */ v("p", {
206
225
  className: "text-xs text-muted-foreground italic mt-1",
207
- children: Z("security.vaultSettings.general.autoLock.help", "The vault will automatically lock after this many minutes of inactivity. Set to 0 to disable.")
226
+ children: X("security.vaultSettings.general.autoLock.help", "The vault will automatically lock after this many minutes of inactivity. Set to 0 to disable.")
208
227
  })
209
228
  ]
210
229
  }),
211
230
  /* @__PURE__ */ v("div", {
212
231
  className: "flex justify-end pt-4 border-t border-border/40",
213
- children: /* @__PURE__ */ v(p, {
232
+ children: /* @__PURE__ */ v(m, {
214
233
  permission: "vault:update",
215
234
  children: /* @__PURE__ */ y(i, {
216
- onClick: xe,
217
- disabled: P || !V.trim(),
235
+ onClick: we,
236
+ disabled: F || !U.trim(),
218
237
  className: "shadow-sm",
219
- children: [P ? /* @__PURE__ */ v(b, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ v(ue, { className: "h-4 w-4" }), Z("security.vaultSettings.general.save", "Save General Settings")]
238
+ children: [F ? /* @__PURE__ */ v(b, { className: "size-4 animate-spin" }) : /* @__PURE__ */ v(ue, { className: "size-4" }), X("security.vaultSettings.general.save", "Save General Settings")]
220
239
  })
221
240
  })
222
241
  })
@@ -232,11 +251,11 @@ function w() {
232
251
  children: [
233
252
  /* @__PURE__ */ v("div", {
234
253
  className: "p-2 rounded-lg bg-secondary/10 text-secondary-foreground",
235
- children: /* @__PURE__ */ v(S, { className: "h-5 w-5" })
254
+ children: /* @__PURE__ */ v(S, { className: "size-5" })
236
255
  }),
237
256
  /* @__PURE__ */ v("h2", {
238
257
  className: "text-xl font-bold text-foreground",
239
- children: Z("security.vaultSettings.members.title", "Access & Members")
258
+ children: X("security.vaultSettings.members.title", "Access & Members")
240
259
  }),
241
260
  /* @__PURE__ */ v(r, {
242
261
  variant: "outline",
@@ -244,26 +263,26 @@ function w() {
244
263
  children: $.length
245
264
  })
246
265
  ]
247
- }), /* @__PURE__ */ v(p, {
266
+ }), /* @__PURE__ */ v(m, {
248
267
  permission: "member:add",
249
268
  children: /* @__PURE__ */ y(i, {
250
269
  variant: "outline",
251
270
  size: "sm",
252
- onClick: () => q(!0),
253
- children: [/* @__PURE__ */ v(fe, { className: "h-4 w-4" }), Z("security.vaultSettings.members.add", "Add Member")]
271
+ onClick: () => K(!0),
272
+ children: [/* @__PURE__ */ v(fe, { className: "size-4" }), X("security.vaultSettings.members.add", "Add Member")]
254
273
  })
255
274
  })]
256
275
  }), $.length > 0 ? /* @__PURE__ */ v("div", {
257
276
  className: "border border-border/60 rounded-lg overflow-hidden divide-y divide-border/40 bg-background/30",
258
277
  children: $.map((e) => {
259
- let t = ie(e.role.toLowerCase());
278
+ let t = u(e.role.toLowerCase());
260
279
  return /* @__PURE__ */ y("div", {
261
280
  className: "flex items-center justify-between p-4 hover:bg-muted/30 transition-colors",
262
281
  children: [/* @__PURE__ */ y("div", {
263
282
  className: "flex items-center gap-3",
264
283
  children: [/* @__PURE__ */ v("div", {
265
- className: "w-10 h-10 rounded-full bg-primary/5 border border-primary/10 flex items-center justify-center text-primary",
266
- children: e.actorType === "user" ? /* @__PURE__ */ v(S, { className: "h-5 w-5" }) : /* @__PURE__ */ v(x, { className: "h-5 w-5" })
284
+ className: "size-10 rounded-full bg-primary/5 border border-primary/10 flex items-center justify-center text-primary",
285
+ children: e.actorType === "user" ? /* @__PURE__ */ v(S, { className: "size-5" }) : /* @__PURE__ */ v(x, { className: "size-5" })
267
286
  }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
268
287
  className: "text-sm font-bold text-foreground",
269
288
  children: e.actorId
@@ -280,12 +299,13 @@ function w() {
280
299
  className: "font-medium text-[10px] uppercase tracking-tighter",
281
300
  children: t.label
282
301
  })
283
- }), e.role !== "OWNER" && B && /* @__PURE__ */ v("button", {
284
- onClick: () => we(e.actorId, e.actorType),
302
+ }), e.role !== "OWNER" && V && /* @__PURE__ */ v("button", {
303
+ type: "button",
304
+ onClick: () => Ee(e.actorId, e.actorType),
285
305
  className: "p-1.5 rounded-md text-muted-foreground hover:text-destructive hover:bg-destructive/10 transition-all",
286
- title: Z("security.vaultSettings.members.revoke", "Revoke Access"),
287
- "aria-label": Z("security.vaultSettings.members.revoke", "Revoke Access"),
288
- children: /* @__PURE__ */ v(pe, { className: "h-4 w-4" })
306
+ title: X("security.vaultSettings.members.revoke", "Revoke Access"),
307
+ "aria-label": X("security.vaultSettings.members.revoke", "Revoke Access"),
308
+ children: /* @__PURE__ */ v(C, { className: "size-4" })
289
309
  })]
290
310
  })]
291
311
  }, e.id);
@@ -293,16 +313,16 @@ function w() {
293
313
  }) : /* @__PURE__ */ y("div", {
294
314
  className: "text-center py-12 border-2 border-dashed border-border/40 rounded-xl bg-muted/10",
295
315
  children: [
296
- /* @__PURE__ */ v(S, { className: "h-12 w-12 text-muted-foreground/30 mx-auto mb-3" }),
316
+ /* @__PURE__ */ v(S, { className: "size-12 text-muted-foreground/30 mx-auto mb-3" }),
297
317
  /* @__PURE__ */ v("p", {
298
318
  className: "text-sm text-muted-foreground",
299
- children: Z("security.vaultSettings.members.empty.description", "No additional members have access to this vault.")
319
+ children: X("security.vaultSettings.members.empty.description", "No additional members have access to this vault.")
300
320
  }),
301
321
  /* @__PURE__ */ v(i, {
302
322
  variant: "link",
303
- onClick: () => q(!0),
323
+ onClick: () => K(!0),
304
324
  className: "mt-1",
305
- children: Z("security.vaultSettings.members.empty.action", "Invite your first colleague")
325
+ children: X("security.vaultSettings.members.empty.action", "Invite your first colleague")
306
326
  })
307
327
  ]
308
328
  })]
@@ -313,10 +333,10 @@ function w() {
313
333
  className: "flex items-center gap-3 mb-4",
314
334
  children: [/* @__PURE__ */ v("div", {
315
335
  className: "p-2 rounded-lg bg-destructive/10 text-destructive",
316
- children: /* @__PURE__ */ v(de, { className: "h-5 w-5" })
336
+ children: /* @__PURE__ */ v(de, { className: "size-5" })
317
337
  }), /* @__PURE__ */ v("h2", {
318
338
  className: "text-xl font-bold text-destructive",
319
- children: Z("security.vaultSettings.danger.title", "Danger Zone")
339
+ children: X("security.vaultSettings.danger.title", "Danger Zone")
320
340
  })]
321
341
  }), /* @__PURE__ */ y("div", {
322
342
  className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4",
@@ -324,43 +344,43 @@ function w() {
324
344
  className: "flex-1",
325
345
  children: [/* @__PURE__ */ v("p", {
326
346
  className: "text-sm font-semibold text-foreground mb-1",
327
- children: Z("security.vaultSettings.danger.deleteTitle", "Delete this vault")
347
+ children: X("security.vaultSettings.danger.deleteTitle", "Delete this vault")
328
348
  }), /* @__PURE__ */ v("p", {
329
349
  className: "text-xs text-muted-foreground max-w-lg",
330
- children: Z("security.vaultSettings.danger.deleteDescription", "Once you delete a vault, there is no going back. All secrets, version history, and access configurations will be permanently removed.")
350
+ children: X("security.vaultSettings.danger.deleteDescription", "Once you delete a vault, there is no going back. All secrets, version history, and access configurations will be permanently removed.")
331
351
  })]
332
- }), /* @__PURE__ */ v(p, {
352
+ }), /* @__PURE__ */ v(m, {
333
353
  permission: "vault:delete",
334
354
  children: /* @__PURE__ */ v(i, {
335
355
  variant: "destructive",
336
- onClick: () => void Se(),
356
+ onClick: () => void Q(),
337
357
  className: "shrink-0",
338
- children: Z("security.vaultSettings.danger.deleteAction", "Delete Vault")
358
+ children: X("security.vaultSettings.danger.deleteAction", "Delete Vault")
339
359
  })
340
360
  })]
341
361
  })]
342
362
  })
343
363
  ]
344
364
  }),
345
- /* @__PURE__ */ v(se, {
346
- isOpen: ve,
347
- onClose: () => q(!1),
348
- onInvite: Ce,
349
- vaultName: M?.name ?? Z("security.common.breadcrumbs.vault", "Vault")
365
+ /* @__PURE__ */ v(h, {
366
+ isOpen: xe,
367
+ onClose: () => K(!1),
368
+ onInvite: Te,
369
+ vaultName: N?.name ?? X("security.common.breadcrumbs.vault", "Vault")
350
370
  }),
351
- /* @__PURE__ */ v(ne, {
352
- isOpen: ye,
353
- onClose: () => J(!1),
354
- onConfirm: Q,
355
- title: Z("security.vaultSettings.delete.title", "Delete Vault"),
356
- description: Z("security.vaultSettings.delete.description", "Are you sure you want to delete \"{name}\"? This action cannot be undone and will result in permanent data loss.", { name: M?.name ?? "" }),
357
- confirmLabel: I ? Z("security.vaultSettings.delete.deleting", "Deleting...") : Z("security.vaultSettings.delete.confirm", "Delete Permanently"),
371
+ /* @__PURE__ */ v(ee, {
372
+ isOpen: Se,
373
+ onClose: () => q(!1),
374
+ onConfirm: Z,
375
+ title: X("security.vaultSettings.delete.title", "Delete Vault"),
376
+ description: X("security.vaultSettings.delete.description", "Are you sure you want to delete \"{name}\"? This action cannot be undone and will result in permanent data loss.", { name: N?.name ?? "" }),
377
+ confirmLabel: L ? X("security.vaultSettings.delete.deleting", "Deleting...") : X("security.vaultSettings.delete.confirm", "Delete Permanently"),
358
378
  variant: "destructive"
359
379
  })
360
380
  ]
361
381
  });
362
382
  }
363
383
  //#endregion
364
- export { w as VaultSettingsPage };
384
+ export { T as VaultSettingsPage };
365
385
 
366
386
  //# sourceMappingURL=VaultSettingsPage.js.map