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