@burdenoff/microfe-security 2026.830.1 → 2026.1013.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 (88) 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/featureFlags.js.map +1 -1
  47. package/dist/security/constants/providers.js +10 -5
  48. package/dist/security/constants/providers.js.map +1 -1
  49. package/dist/security/constants/secretTypes.js +16 -8
  50. package/dist/security/constants/secretTypes.js.map +1 -1
  51. package/dist/security/hooks/useTr.js +14 -0
  52. package/dist/security/hooks/useTr.js.map +1 -0
  53. package/dist/security/index.js +1 -0
  54. package/dist/security/pages/AccessReviewPage.js +85 -84
  55. package/dist/security/pages/AccessReviewPage.js.map +1 -1
  56. package/dist/security/pages/AuditLogPage.js +98 -97
  57. package/dist/security/pages/AuditLogPage.js.map +1 -1
  58. package/dist/security/pages/ImportExportPage.js +21 -22
  59. package/dist/security/pages/ImportExportPage.js.map +1 -1
  60. package/dist/security/pages/ProviderDetailPage.js +164 -155
  61. package/dist/security/pages/ProviderDetailPage.js.map +1 -1
  62. package/dist/security/pages/ProvidersPage.js +89 -92
  63. package/dist/security/pages/ProvidersPage.js.map +1 -1
  64. package/dist/security/pages/SecretCreatePage.js +70 -71
  65. package/dist/security/pages/SecretCreatePage.js.map +1 -1
  66. package/dist/security/pages/SecretDetailPage.js +250 -251
  67. package/dist/security/pages/SecretDetailPage.js.map +1 -1
  68. package/dist/security/pages/SecurityDashboardPage.js +53 -54
  69. package/dist/security/pages/SecurityDashboardPage.js.map +1 -1
  70. package/dist/security/pages/SharedWithMePage.js +27 -28
  71. package/dist/security/pages/SharedWithMePage.js.map +1 -1
  72. package/dist/security/pages/VaultCreatePage.js +49 -50
  73. package/dist/security/pages/VaultCreatePage.js.map +1 -1
  74. package/dist/security/pages/VaultDetailPage.js +130 -131
  75. package/dist/security/pages/VaultDetailPage.js.map +1 -1
  76. package/dist/security/pages/VaultLandingPage.js +39 -38
  77. package/dist/security/pages/VaultLandingPage.js.map +1 -1
  78. package/dist/security/pages/VaultSettingsPage.js +198 -199
  79. package/dist/security/pages/VaultSettingsPage.js.map +1 -1
  80. package/dist/security/pages/VaultShareViewer.js +78 -80
  81. package/dist/security/pages/VaultShareViewer.js.map +1 -1
  82. package/dist/security/pages/VaultsDashboardPage.js +97 -98
  83. package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
  84. package/dist/security/translations/en.js +756 -0
  85. package/dist/security/translations/en.js.map +1 -0
  86. package/package.json +1 -1
  87. package/dist/security/utils/i18n.js +0 -9
  88. package/dist/security/utils/i18n.js.map +0 -1
@@ -1,432 +1,431 @@
1
- import { useSecurity as e } from "../providers/SecurityProvider.js";
1
+ import { useTr as e } from "../hooks/useTr.js";
2
+ import { useSecurity as ee } from "../providers/SecurityProvider.js";
2
3
  import { SECURITY_FEATURE_FLAGS as t } from "../constants/featureFlags.js";
3
4
  import { cn as n } from "../utils/cn.js";
4
5
  import { PageLayout as r } from "../components/PageLayout.js";
5
6
  import { Badge as i, Button as a, Card as o } from "../components/ui.js";
6
- import { translateWithFallback as ee } from "../utils/i18n.js";
7
7
  import { ConfirmDialog as te } from "../components/ConfirmDialog.js";
8
8
  import { useGetSecretVersionsQuery as ne } from "../../generated/wspace-operations.js";
9
- import { useSecurityEventEmitter as re } from "../hooks/useSecurityEventEmitter.js";
10
- import { useDeleteSecret as ie, useGetSecret as ae, useRollbackSecret as oe, useRotateSecret as s } from "../hooks/useSecretQueries.js";
11
- import { nativeConfirm as c, nativeImpact as l, nativeNotify as u } from "../../utils/nativeBridge.js";
12
- import { SecurityPermissionGuard as se } from "../components/SecurityPermissionGuard.js";
13
- import { SecretValueDisplay as ce } from "../components/SecretValueDisplay.js";
14
- import { SecretTypeBadge as le } from "../components/SecretTypeBadge.js";
15
- import { RotationStatusBadge as ue } from "../components/RotationStatusBadge.js";
16
- import { SecretShareDialog as de } from "../components/SecretShareDialog.js";
17
- import { useSecretValue as fe } from "../hooks/useSecretValue.js";
18
- import { useRef as pe, useState as d } from "react";
19
- import { useFeatureFlag as me, usePermission as f } from "@burdenoff/fe-libs/shared/providers/shell";
20
- import { useNavigate as he, useParams as ge } from "react-router";
21
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
22
- import { AlertTriangle as _e, ArrowLeft as h, Calendar as ve, Clock as ye, History as g, KeyRound as _, Loader2 as v, RefreshCw as y, Share2 as b, Shield as be, Trash2 as xe } from "lucide-react";
9
+ import { useSecurityEventEmitter as s } from "../hooks/useSecurityEventEmitter.js";
10
+ import { useDeleteSecret as c, useGetSecret as re, useRollbackSecret as ie, useRotateSecret as ae } from "../hooks/useSecretQueries.js";
11
+ import { nativeConfirm as oe, nativeImpact as se, nativeNotify as l } from "../../utils/nativeBridge.js";
12
+ import { SecurityPermissionGuard as ce } from "../components/SecurityPermissionGuard.js";
13
+ import { SecretValueDisplay as le } from "../components/SecretValueDisplay.js";
14
+ import { SecretTypeBadge as ue } from "../components/SecretTypeBadge.js";
15
+ import { RotationStatusBadge as de } from "../components/RotationStatusBadge.js";
16
+ import { SecretShareDialog as fe } from "../components/SecretShareDialog.js";
17
+ import { useSecretValue as pe } from "../hooks/useSecretValue.js";
18
+ import { useRef as me, useState as u } from "react";
19
+ import { useFeatureFlag as he, usePermission as d } from "@burdenoff/fe-libs/shared/providers/shell";
20
+ import { useNavigate as ge, useParams as _e } from "react-router";
21
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
22
+ import { AlertTriangle as ve, ArrowLeft as m, Calendar as h, Clock as ye, History as g, KeyRound as _, Loader2 as v, RefreshCw as y, Share2 as b, Shield as be, Trash2 as xe } from "lucide-react";
23
23
  import { CTAOverflowMenu as Se, Dialog as x, DialogContent as S, DialogHeader as C, DialogTitle as w, GlassCard as T, NextSteps as Ce, PagePurpose as we } from "@burdenoff/fe-libs/ui";
24
- import { useI18n as Te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
25
24
  //#region src/security/pages/SecretDetailPage.tsx
26
25
  function E() {
27
- let { vaultId: E, secretId: D } = ge(), { basePath: O = "/", navigate: k } = e(), { t: Ee } = Te(), De = he(), { data: Oe, loading: ke, error: A, refetch: j } = ae(D ?? null), M = Oe?.getSecret, { data: Ae, loading: je } = ne({
26
+ let { vaultId: E, secretId: D } = _e(), { basePath: O = "/", navigate: k } = ee(), Te = ge(), A = e(), { data: Ee, loading: De, error: j, refetch: M } = re(D ?? null), N = Ee?.getSecret, { data: P, loading: Oe } = ne({
28
27
  variables: {
29
28
  secretId: D ?? "",
30
29
  pagination: { limit: 50 }
31
30
  },
32
31
  skip: !D,
33
32
  fetchPolicy: "network-only"
34
- }), Me = Ae?.getSecretVersionsPaginated?.items ?? [], { value: Ne, reveal: N, hide: P, loading: Pe, isRevealed: F } = fe(D ?? ""), [Fe, { loading: Ie }] = ie(), [Le, { loading: I }] = s(), [Re, { loading: ze }] = oe(), { emit: L } = re(), Be = f("secret:delete"), R = f("secret:update"), z = f("secret:decrypt"), B = me(t.SECRET_ROTATE, !1), [Ve, V] = d(!1), [He, H] = d(!1), [Ue, U] = d(!1), W = pe(null), G = () => {
35
- U(!0), requestAnimationFrame(() => W.current?.focus());
36
- }, [We, K] = d(!1), [q, J] = d(""), Y = (e, t, n) => ee(Ee, e, t, n), Ge = (e) => {
37
- k ? k(e) : De(e);
33
+ }), ke = P?.getSecretVersionsPaginated?.items ?? [], { value: Ae, reveal: F, hide: je, loading: Me, isRevealed: I } = pe(D ?? ""), [Ne, { loading: Pe }] = c(), [Fe, { loading: L }] = ae(), [Ie, { loading: Le }] = ie(), { emit: R } = s(), Re = d("secret:delete"), z = d("secret:update"), B = d("secret:decrypt"), V = he(t.SECRET_ROTATE, !1), [ze, H] = u(!1), [Be, U] = u(!1), [Ve, W] = u(!1), G = me(null), K = () => {
34
+ W(!0), requestAnimationFrame(() => G.current?.focus());
35
+ }, [He, q] = u(!1), [J, Y] = u(""), Ue = (e) => {
36
+ k ? k(e) : Te(e);
38
37
  }, X = () => {
39
- Ge(`${O}/vaults/${E}`);
38
+ Ue(`${O}/vaults/${E}`);
40
39
  }, Z = async () => {
41
40
  if (D) try {
42
- await Fe({ variables: { id: D } }), L("secret.deleted", {
41
+ await Ne({ variables: { id: D } }), R("secret.deleted", {
43
42
  secretId: D,
44
43
  vaultId: E
45
- }), V(!1), u("success"), X();
44
+ }), H(!1), l("success"), X();
46
45
  } catch (e) {
47
- console.error("Failed to delete secret:", e), u("error");
46
+ console.error("Failed to delete secret:", e), l("error");
48
47
  }
49
- }, Ke = async () => {
50
- l("medium");
51
- let e = await c({
48
+ }, We = async () => {
49
+ se("medium");
50
+ let e = await oe({
52
51
  title: "Delete Secret",
53
52
  message: "Delete this secret? This cannot be undone.",
54
53
  okButtonTitle: "Delete",
55
54
  cancelButtonTitle: "Cancel"
56
55
  });
57
56
  if (e === null) {
58
- V(!0);
57
+ H(!0);
59
58
  return;
60
59
  }
61
60
  e && await Z();
62
- }, qe = async () => {
63
- if (!(!D || !q.trim())) try {
64
- await Le({ variables: {
61
+ }, Ge = async () => {
62
+ if (!(!D || !J.trim())) try {
63
+ await Fe({ variables: {
65
64
  id: D,
66
- newValue: q.trim()
67
- } }), L("secret.rotated", {
65
+ newValue: J.trim()
66
+ } }), R("secret.rotated", {
68
67
  secretId: D,
69
68
  vaultId: E
70
- }), U(!1), J(""), j();
69
+ }), W(!1), Y(""), M();
71
70
  } catch (e) {
72
71
  console.error("Failed to rotate secret:", e);
73
72
  }
74
- }, Je = async (e) => {
73
+ }, Ke = async (e) => {
75
74
  if (D) try {
76
- await Re({ variables: {
75
+ await Ie({ variables: {
77
76
  id: D,
78
77
  version: e
79
- } }), L("secret.rollback", {
78
+ } }), R("secret.rollback", {
80
79
  secretId: D,
81
80
  vaultId: E
82
- }), j(), K(!1);
81
+ }), M(), q(!1);
83
82
  } catch (e) {
84
83
  console.error("Failed to rollback secret:", e);
85
84
  }
86
85
  };
87
- if (ke && !M) return /* @__PURE__ */ p(r, {
88
- title: Y("security.secretDetail.loading.title", "Loading Secret..."),
86
+ if (De && !N) return /* @__PURE__ */ f(r, {
87
+ title: A("security.secretDetail.loading.title", "Loading Secret..."),
89
88
  breadcrumbs: [{
90
- label: Y("security.common.breadcrumbs.security", "Security"),
89
+ label: A("security.common.breadcrumbs.security", "Security"),
91
90
  path: O
92
- }, { label: Y("security.common.breadcrumbs.secret", "Secret") }],
93
- children: /* @__PURE__ */ p("div", {
91
+ }, { label: A("security.common.breadcrumbs.secret", "Secret") }],
92
+ children: /* @__PURE__ */ f("div", {
94
93
  className: "flex items-center justify-center py-20",
95
- children: /* @__PURE__ */ p(v, { className: "size-10 animate-spin text-primary/60" })
94
+ children: /* @__PURE__ */ f(v, { className: "size-10 animate-spin text-primary/60" })
96
95
  })
97
96
  });
98
- if (A || !M) return /* @__PURE__ */ p(r, {
99
- title: Y("security.common.errorPage.title", "Error"),
97
+ if (j || !N) return /* @__PURE__ */ f(r, {
98
+ title: A("security.common.errorPage.title", "Error"),
100
99
  breadcrumbs: [{
101
- label: Y("security.common.breadcrumbs.security", "Security"),
100
+ label: A("security.common.breadcrumbs.security", "Security"),
102
101
  path: O
103
- }, { label: Y("security.common.breadcrumbs.secret", "Secret") }],
104
- children: /* @__PURE__ */ p(o, {
102
+ }, { label: A("security.common.breadcrumbs.secret", "Secret") }],
103
+ children: /* @__PURE__ */ f(o, {
105
104
  className: "p-8 text-center max-w-lg mx-auto mt-10",
106
- children: /* @__PURE__ */ m("div", {
105
+ children: /* @__PURE__ */ p("div", {
107
106
  className: "flex flex-col items-center gap-4",
108
107
  children: [
109
- /* @__PURE__ */ p("div", {
108
+ /* @__PURE__ */ f("div", {
110
109
  className: "p-3 rounded-full bg-status-error-bg/10",
111
- children: /* @__PURE__ */ p(_e, { className: "size-8 text-status-error-text" })
110
+ children: /* @__PURE__ */ f(ve, { className: "size-8 text-status-error-text" })
112
111
  }),
113
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h3", {
112
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
114
113
  className: "text-lg font-bold text-text-primary",
115
- children: Y("security.secretDetail.error.title", "Failed to load secret")
116
- }), /* @__PURE__ */ p("p", {
114
+ children: A("security.secretDetail.error.title", "Failed to load secret")
115
+ }), /* @__PURE__ */ f("p", {
117
116
  className: "text-sm text-text-secondary mt-2",
118
- children: A?.message ?? Y("security.secretDetail.error.description", "Secret not found or access denied.")
117
+ children: j?.message ?? A("security.secretDetail.error.description", "Secret not found or access denied.")
119
118
  })] }),
120
- /* @__PURE__ */ m(a, {
119
+ /* @__PURE__ */ p(a, {
121
120
  variant: "outline",
122
121
  onClick: X,
123
122
  className: "mt-4",
124
- children: [/* @__PURE__ */ p(h, { className: "size-4" }), Y("security.secretDetail.actions.backToVault", "Go Back to Vault")]
123
+ children: [/* @__PURE__ */ f(m, { className: "size-4" }), A("security.secretDetail.actions.backToVault", "Go Back to Vault")]
125
124
  })
126
125
  ]
127
126
  })
128
127
  })
129
128
  });
130
- let Q = M.versionCount ?? 0, $ = M.lastRotatedAt ? "healthy" : void 0;
131
- return /* @__PURE__ */ m(r, {
132
- title: M.name,
133
- description: M.description ?? Y("security.secretDetail.description", "View and manage this secret."),
129
+ let Q = N.versionCount ?? 0, $ = N.lastRotatedAt ? "healthy" : void 0;
130
+ return /* @__PURE__ */ p(r, {
131
+ title: N.name,
132
+ description: N.description ?? A("security.secretDetail.description", "View and manage this secret."),
134
133
  breadcrumbs: [
135
134
  {
136
- label: Y("security.common.breadcrumbs.security", "Security"),
135
+ label: A("security.common.breadcrumbs.security", "Security"),
137
136
  path: O
138
137
  },
139
138
  {
140
- label: Y("security.common.breadcrumbs.vault", "Vault"),
139
+ label: A("security.common.breadcrumbs.vault", "Vault"),
141
140
  path: `${O}/vaults/${E}`
142
141
  },
143
- { label: M.name }
142
+ { label: N.name }
144
143
  ],
145
144
  actions: (() => {
146
145
  let e = [];
147
- return R && e.push({
148
- label: Y("security.common.actions.share", "Share"),
149
- icon: /* @__PURE__ */ p(b, { className: "size-4" }),
150
- onSelect: () => H(!0)
151
- }), R && B && e.push({
152
- label: Y("security.secretDetail.actions.rotate", "Rotate"),
153
- icon: /* @__PURE__ */ p(y, { className: "size-4" }),
154
- onSelect: G
155
- }), Be && e.push({
156
- label: Y("security.common.actions.delete", "Delete"),
157
- icon: /* @__PURE__ */ p(xe, { className: "size-4" }),
146
+ return z && e.push({
147
+ label: A("security.common.actions.share", "Share"),
148
+ icon: /* @__PURE__ */ f(b, { className: "size-4" }),
149
+ onSelect: () => U(!0)
150
+ }), z && V && e.push({
151
+ label: A("security.secretDetail.actions.rotate", "Rotate"),
152
+ icon: /* @__PURE__ */ f(y, { className: "size-4" }),
153
+ onSelect: K
154
+ }), Re && e.push({
155
+ label: A("security.common.actions.delete", "Delete"),
156
+ icon: /* @__PURE__ */ f(xe, { className: "size-4" }),
158
157
  intent: "destructive",
159
- onSelect: () => void Ke()
160
- }), /* @__PURE__ */ m("div", {
158
+ onSelect: () => void We()
159
+ }), /* @__PURE__ */ p("div", {
161
160
  className: "flex flex-wrap items-center gap-2",
162
- children: [/* @__PURE__ */ m(a, {
161
+ children: [/* @__PURE__ */ p(a, {
163
162
  variant: "outline",
164
163
  size: "sm",
165
164
  onClick: X,
166
165
  children: [
167
- /* @__PURE__ */ p(h, { className: "size-4" }),
168
- /* @__PURE__ */ p("span", {
166
+ /* @__PURE__ */ f(m, { className: "size-4" }),
167
+ /* @__PURE__ */ f("span", {
169
168
  className: "hidden sm:inline",
170
- children: Y("security.secretDetail.actions.backToVault", "Back to Vault")
169
+ children: A("security.secretDetail.actions.backToVault", "Back to Vault")
171
170
  }),
172
- /* @__PURE__ */ p("span", {
171
+ /* @__PURE__ */ f("span", {
173
172
  className: "sm:hidden",
174
- children: Y("security.common.actions.back", "Back")
173
+ children: A("security.common.actions.back", "Back")
175
174
  })
176
175
  ]
177
- }), /* @__PURE__ */ p(Se, { actions: e })]
176
+ }), /* @__PURE__ */ f(Se, { actions: e })]
178
177
  });
179
178
  })(),
180
179
  children: [
181
- /* @__PURE__ */ m("div", {
180
+ /* @__PURE__ */ p("div", {
182
181
  className: "space-y-6",
183
182
  children: [
184
- /* @__PURE__ */ p(we, {
185
- icon: /* @__PURE__ */ p(_, { className: "size-4" }),
186
- children: Y("security.secretDetail.purpose", "This is a single secret — an encrypted credential such as an API key, password or connection string. Reveal and copy its value when you need it (every reveal is logged), rotate it to a new value while keeping the old one in version history, roll back to a previous version, or share it securely with someone outside this vault.")
183
+ /* @__PURE__ */ f(we, {
184
+ icon: /* @__PURE__ */ f(_, { className: "size-4" }),
185
+ children: A("security.secretDetail.purpose", "This is a single secret — an encrypted credential such as an API key, password or connection string. Reveal and copy its value when you need it (every reveal is logged), rotate it to a new value while keeping the old one in version history, roll back to a previous version, or share it securely with someone outside this vault.")
187
186
  }),
188
- (z || R) && /* @__PURE__ */ p(Ce, {
187
+ (B || z) && /* @__PURE__ */ f(Ce, {
189
188
  storageKey: "security-secret-detail",
190
189
  steps: [
191
- ...z ? [{
190
+ ...B ? [{
192
191
  id: "reveal",
193
- label: Y("security.secretDetail.next.reveal", "Reveal the value"),
194
- description: Y("security.secretDetail.next.revealDesc", "Decrypt and copy this secret when you need it."),
195
- icon: /* @__PURE__ */ p(_, { className: "size-4" }),
196
- onClick: F ? void 0 : () => void N(),
197
- done: F
192
+ label: A("security.secretDetail.next.reveal", "Reveal the value"),
193
+ description: A("security.secretDetail.next.revealDesc", "Decrypt and copy this secret when you need it."),
194
+ icon: /* @__PURE__ */ f(_, { className: "size-4" }),
195
+ onClick: I ? void 0 : () => void F(),
196
+ done: I
198
197
  }] : [],
199
- ...R ? [{
198
+ ...z ? [{
200
199
  id: "share",
201
- label: Y("security.secretDetail.next.share", "Share this secret"),
202
- description: Y("security.secretDetail.next.shareDesc", "Send a confidential, expiring link to someone."),
203
- icon: /* @__PURE__ */ p(b, { className: "size-4" }),
204
- onClick: () => H(!0)
200
+ label: A("security.secretDetail.next.share", "Share this secret"),
201
+ description: A("security.secretDetail.next.shareDesc", "Send a confidential, expiring link to someone."),
202
+ icon: /* @__PURE__ */ f(b, { className: "size-4" }),
203
+ onClick: () => U(!0)
205
204
  }] : [],
206
- ...R && B ? [{
205
+ ...z && V ? [{
207
206
  id: "rotate",
208
- label: Y("security.secretDetail.next.rotate", "Rotate the value"),
209
- description: Y("security.secretDetail.next.rotateDesc", "Replace the value and keep the old one in history."),
210
- icon: /* @__PURE__ */ p(y, { className: "size-4" }),
211
- onClick: G
207
+ label: A("security.secretDetail.next.rotate", "Rotate the value"),
208
+ description: A("security.secretDetail.next.rotateDesc", "Replace the value and keep the old one in history."),
209
+ icon: /* @__PURE__ */ f(y, { className: "size-4" }),
210
+ onClick: K
212
211
  }] : []
213
212
  ]
214
213
  }),
215
- /* @__PURE__ */ m("div", {
214
+ /* @__PURE__ */ p("div", {
216
215
  className: "flex flex-wrap items-center gap-3",
217
216
  children: [
218
- /* @__PURE__ */ p(le, { type: M.type }),
219
- $ && /* @__PURE__ */ p(ue, { status: $ }),
220
- /* @__PURE__ */ p(i, {
217
+ /* @__PURE__ */ f(ue, { type: N.type }),
218
+ $ && /* @__PURE__ */ f(de, { status: $ }),
219
+ /* @__PURE__ */ f(i, {
221
220
  variant: "outline",
222
221
  className: "bg-bg-surface/50",
223
- children: Y("security.secretDetail.status.label", "Status: {status}", { status: M.status })
222
+ children: A("security.secretDetail.status.label", "Status: {{status}}", { status: N.status })
224
223
  }),
225
- M.labels?.map((e) => /* @__PURE__ */ p(i, {
224
+ N.labels?.map((e) => /* @__PURE__ */ f(i, {
226
225
  variant: "outline",
227
226
  className: "border-primary/20 text-primary",
228
227
  children: e.label
229
228
  }, e.id))
230
229
  ]
231
230
  }),
232
- /* @__PURE__ */ m("div", {
231
+ /* @__PURE__ */ p("div", {
233
232
  className: "grid grid-cols-1 md:grid-cols-3 gap-6",
234
- children: [/* @__PURE__ */ m("div", {
233
+ children: [/* @__PURE__ */ p("div", {
235
234
  className: "md:col-span-2 space-y-6",
236
- children: [/* @__PURE__ */ m(T, {
235
+ children: [/* @__PURE__ */ p(T, {
237
236
  treatment: "glass",
238
237
  glow: !0,
239
238
  className: "p-6",
240
239
  children: [
241
- /* @__PURE__ */ m("div", {
240
+ /* @__PURE__ */ p("div", {
242
241
  className: "flex items-center justify-between mb-4",
243
- children: [/* @__PURE__ */ m("h2", {
242
+ children: [/* @__PURE__ */ p("h2", {
244
243
  className: "text-lg font-bold text-text-primary flex items-center gap-2",
245
- children: [/* @__PURE__ */ p(_, { className: "size-5 text-primary" }), Y("security.secretDetail.value.title", "Secret Value")]
246
- }), M.expiresAt && /* @__PURE__ */ m("div", {
244
+ children: [/* @__PURE__ */ f(_, { className: "size-5 text-primary" }), A("security.secretDetail.value.title", "Secret Value")]
245
+ }), N.expiresAt && /* @__PURE__ */ p("div", {
247
246
  className: "flex items-center gap-1.5 text-xs text-warning",
248
- children: [/* @__PURE__ */ p(ve, { className: "size-3.5" }), Y("security.secretDetail.value.expires", "Expires: {date}", { date: new Date(M.expiresAt).toLocaleDateString() })]
247
+ children: [/* @__PURE__ */ f(h, { className: "size-3.5" }), A("security.secretDetail.value.expires", "Expires: {{date}}", { date: new Date(N.expiresAt).toLocaleDateString() })]
249
248
  })]
250
249
  }),
251
- /* @__PURE__ */ p(ce, {
252
- value: Ne ?? "",
253
- isRevealed: F,
254
- onToggleReveal: z ? () => {
255
- F ? P() : N();
250
+ /* @__PURE__ */ f(le, {
251
+ value: Ae ?? "",
252
+ isRevealed: I,
253
+ onToggleReveal: B ? () => {
254
+ I ? je() : F();
256
255
  } : void 0,
257
- isLoading: Pe
256
+ isLoading: Me
258
257
  }),
259
- /* @__PURE__ */ p("p", {
258
+ /* @__PURE__ */ f("p", {
260
259
  className: "text-xs text-text-secondary mt-4 italic",
261
- children: Y("security.secretDetail.value.note", "Secret values are decrypted on-demand and never stored in plain text.")
260
+ children: A("security.secretDetail.value.note", "Secret values are decrypted on-demand and never stored in plain text.")
262
261
  })
263
262
  ]
264
- }), /* @__PURE__ */ m(o, {
263
+ }), /* @__PURE__ */ p(o, {
265
264
  className: "p-6 shadow-sm border-border-subtle/60",
266
- children: [/* @__PURE__ */ m("div", {
265
+ children: [/* @__PURE__ */ p("div", {
267
266
  className: "flex items-center justify-between mb-6",
268
- children: [/* @__PURE__ */ m("h2", {
267
+ children: [/* @__PURE__ */ p("h2", {
269
268
  className: "text-lg font-bold text-text-primary flex items-center gap-2",
270
- children: [/* @__PURE__ */ p(g, { className: "size-5 text-primary" }), Y("security.secretDetail.history.title", "Version History")]
271
- }), /* @__PURE__ */ p(i, {
269
+ children: [/* @__PURE__ */ f(g, { className: "size-5 text-primary" }), A("security.secretDetail.history.title", "Version History")]
270
+ }), /* @__PURE__ */ f(i, {
272
271
  variant: "outline",
273
272
  className: "bg-bg-sunken font-mono",
274
- children: Y("security.secretDetail.history.totalVersions", "{count} total versions", { count: Q })
273
+ children: A("security.secretDetail.history.totalVersions", "{{count}} total versions", { count: Q })
275
274
  })]
276
- }), /* @__PURE__ */ m("div", {
275
+ }), /* @__PURE__ */ p("div", {
277
276
  className: "space-y-4",
278
- children: [/* @__PURE__ */ m("div", {
277
+ children: [/* @__PURE__ */ p("div", {
279
278
  className: "flex items-center justify-between p-4 rounded-lg bg-action-primary-bg/5 border border-primary/10",
280
- children: [/* @__PURE__ */ m("div", {
279
+ children: [/* @__PURE__ */ p("div", {
281
280
  className: "flex items-center gap-3",
282
- children: [/* @__PURE__ */ m("div", {
281
+ children: [/* @__PURE__ */ p("div", {
283
282
  className: "size-8 rounded-full bg-action-primary-bg/10 flex items-center justify-center text-primary text-xs font-bold tabular-nums",
284
- children: ["v", M.version ?? Q]
285
- }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
283
+ children: ["v", N.version ?? Q]
284
+ }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
286
285
  className: "text-sm font-semibold",
287
- children: Y("security.secretDetail.history.currentVersion", "Current Active Version")
288
- }), /* @__PURE__ */ p("p", {
286
+ children: A("security.secretDetail.history.currentVersion", "Current Active Version")
287
+ }), /* @__PURE__ */ f("p", {
289
288
  className: "text-xs text-text-secondary",
290
- children: Y("security.secretDetail.history.lastUpdated", "Last updated {date}", { date: new Date(M.updatedAt).toLocaleString() })
289
+ children: A("security.secretDetail.history.lastUpdated", "Last updated {{date}}", { date: new Date(N.updatedAt).toLocaleString() })
291
290
  })] })]
292
- }), /* @__PURE__ */ p(i, {
291
+ }), /* @__PURE__ */ f(i, {
293
292
  variant: "success",
294
293
  className: "text-[10px] uppercase",
295
- children: Y("security.common.status.active", "Active")
294
+ children: A("security.common.status.active", "Active")
296
295
  })]
297
- }), Q > 1 && /* @__PURE__ */ m("div", {
296
+ }), Q > 1 && /* @__PURE__ */ p("div", {
298
297
  className: "text-center py-4 border-2 border-dashed border-border-subtle/40 rounded-lg bg-bg-sunken/20",
299
- children: [/* @__PURE__ */ p("p", {
298
+ children: [/* @__PURE__ */ f("p", {
300
299
  className: "text-sm text-text-secondary",
301
- children: Y("security.secretDetail.history.available", "Historical versions are available. You can rollback to a previous state if needed.")
302
- }), /* @__PURE__ */ p(a, {
300
+ children: A("security.secretDetail.history.available", "Historical versions are available. You can rollback to a previous state if needed.")
301
+ }), /* @__PURE__ */ f(a, {
303
302
  variant: "outline",
304
303
  size: "sm",
305
304
  className: "mt-3",
306
- onClick: () => K(!0),
307
- children: Y("security.secretDetail.history.viewFull", "View Full History")
305
+ onClick: () => q(!0),
306
+ children: A("security.secretDetail.history.viewFull", "View Full History")
308
307
  })]
309
308
  })]
310
309
  })]
311
310
  })]
312
- }), /* @__PURE__ */ m("div", {
311
+ }), /* @__PURE__ */ p("div", {
313
312
  className: "space-y-6",
314
- children: [/* @__PURE__ */ m(o, {
313
+ children: [/* @__PURE__ */ p(o, {
315
314
  className: "p-6 shadow-sm border-border-subtle/60 space-y-4",
316
- children: [/* @__PURE__ */ p("h3", {
315
+ children: [/* @__PURE__ */ f("h3", {
317
316
  className: "font-bold text-sm uppercase tracking-wider text-text-secondary",
318
- children: Y("security.secretDetail.details.title", "Details")
319
- }), /* @__PURE__ */ m("div", {
317
+ children: A("security.secretDetail.details.title", "Details")
318
+ }), /* @__PURE__ */ p("div", {
320
319
  className: "space-y-3",
321
320
  children: [
322
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
321
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
323
322
  className: "text-xs text-text-secondary",
324
- children: Y("security.secretDetail.details.keyIdentifier", "Key Identifier")
325
- }), /* @__PURE__ */ p("code", {
323
+ children: A("security.secretDetail.details.keyIdentifier", "Key Identifier")
324
+ }), /* @__PURE__ */ f("code", {
326
325
  className: "text-xs font-mono bg-bg-sunken px-1.5 py-0.5 rounded block mt-1 overflow-hidden text-ellipsis whitespace-nowrap",
327
- children: M.key
326
+ children: N.key
328
327
  })] }),
329
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
328
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
330
329
  className: "text-xs text-text-secondary",
331
- children: Y("security.secretDetail.details.createdBy", "Created By")
332
- }), /* @__PURE__ */ p("p", {
330
+ children: A("security.secretDetail.details.createdBy", "Created By")
331
+ }), /* @__PURE__ */ f("p", {
333
332
  className: "text-sm font-medium mt-1",
334
- children: M.createdBy
333
+ children: N.createdBy
335
334
  })] }),
336
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
335
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
337
336
  className: "text-xs text-text-secondary",
338
- children: Y("security.secretDetail.details.createdAt", "Created At")
339
- }), /* @__PURE__ */ m("div", {
337
+ children: A("security.secretDetail.details.createdAt", "Created At")
338
+ }), /* @__PURE__ */ p("div", {
340
339
  className: "flex items-center gap-1.5 text-sm mt-1",
341
- children: [/* @__PURE__ */ p(ye, { className: "size-3.5" }), new Date(M.createdAt).toLocaleDateString()]
340
+ children: [/* @__PURE__ */ f(ye, { className: "size-3.5" }), new Date(N.createdAt).toLocaleDateString()]
342
341
  })] }),
343
- M.lastRotatedAt && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
342
+ N.lastRotatedAt && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
344
343
  className: "text-xs text-text-secondary",
345
- children: Y("security.secretDetail.details.lastRotation", "Last Rotation")
346
- }), /* @__PURE__ */ p("p", {
344
+ children: A("security.secretDetail.details.lastRotation", "Last Rotation")
345
+ }), /* @__PURE__ */ f("p", {
347
346
  className: "text-sm mt-1",
348
- children: new Date(M.lastRotatedAt).toLocaleString()
347
+ children: new Date(N.lastRotatedAt).toLocaleString()
349
348
  })] })
350
349
  ]
351
350
  })]
352
- }), /* @__PURE__ */ m(T, {
351
+ }), /* @__PURE__ */ p(T, {
353
352
  treatment: "insight",
354
353
  className: "p-6 space-y-4",
355
- children: [/* @__PURE__ */ m("h3", {
354
+ children: [/* @__PURE__ */ p("h3", {
356
355
  className: "font-bold text-sm text-primary flex items-center gap-2",
357
- children: [/* @__PURE__ */ p(be, { className: "size-4" }), Y("security.secretDetail.security.title", "Security")]
358
- }), /* @__PURE__ */ p("p", {
356
+ children: [/* @__PURE__ */ f(be, { className: "size-4" }), A("security.secretDetail.security.title", "Security")]
357
+ }), /* @__PURE__ */ f("p", {
359
358
  className: "text-xs text-text-secondary leading-relaxed",
360
- children: Y("security.secretDetail.security.description", "This secret is protected by 256-bit encryption. All access is logged and monitored for suspicious activity.")
359
+ children: A("security.secretDetail.security.description", "This secret is protected by 256-bit encryption. All access is logged and monitored for suspicious activity.")
361
360
  })]
362
361
  })]
363
362
  })]
364
363
  })
365
364
  ]
366
365
  }),
367
- /* @__PURE__ */ p(x, {
368
- open: We,
366
+ /* @__PURE__ */ f(x, {
367
+ open: He,
369
368
  onOpenChange: (e) => {
370
- e || K(!1);
369
+ e || q(!1);
371
370
  },
372
- children: /* @__PURE__ */ m(S, {
371
+ children: /* @__PURE__ */ p(S, {
373
372
  className: "max-w-2xl border-primary/20 max-h-[80vh] flex flex-col gap-0 p-0",
374
- children: [/* @__PURE__ */ p(C, {
373
+ children: [/* @__PURE__ */ f(C, {
375
374
  className: "p-6 border-b border-border-subtle text-left",
376
- children: /* @__PURE__ */ m("div", {
375
+ children: /* @__PURE__ */ p("div", {
377
376
  className: "flex items-center gap-3",
378
- children: [/* @__PURE__ */ p("div", {
377
+ children: [/* @__PURE__ */ f("div", {
379
378
  className: "p-2 rounded-full bg-action-primary-bg/10 text-primary",
380
- children: /* @__PURE__ */ p(g, { className: "size-5" })
381
- }), /* @__PURE__ */ p(w, {
379
+ children: /* @__PURE__ */ f(g, { className: "size-5" })
380
+ }), /* @__PURE__ */ f(w, {
382
381
  className: "text-xl font-bold",
383
- children: Y("security.secretDetail.history.modalTitle", "Version History")
382
+ children: A("security.secretDetail.history.modalTitle", "Version History")
384
383
  })]
385
384
  })
386
- }), /* @__PURE__ */ p("div", {
385
+ }), /* @__PURE__ */ f("div", {
387
386
  className: "p-6 overflow-y-auto flex-1",
388
- children: je ? /* @__PURE__ */ p("div", {
387
+ children: Oe ? /* @__PURE__ */ f("div", {
389
388
  className: "flex justify-center py-8",
390
- children: /* @__PURE__ */ p(v, { className: "size-8 animate-spin text-primary/60" })
391
- }) : /* @__PURE__ */ p("div", {
389
+ children: /* @__PURE__ */ f(v, { className: "size-8 animate-spin text-primary/60" })
390
+ }) : /* @__PURE__ */ f("div", {
392
391
  className: "space-y-4",
393
- children: Me.map((e) => /* @__PURE__ */ p("div", {
394
- className: n("p-4 rounded-lg border", e.version === M.version ? "bg-action-primary-bg/5 border-primary/20" : "bg-bg-surface border-border-subtle"),
395
- children: /* @__PURE__ */ m("div", {
392
+ children: ke.map((e) => /* @__PURE__ */ f("div", {
393
+ className: n("p-4 rounded-lg border", e.version === N.version ? "bg-action-primary-bg/5 border-primary/20" : "bg-bg-surface border-border-subtle"),
394
+ children: /* @__PURE__ */ p("div", {
396
395
  className: "flex items-center justify-between",
397
- children: [/* @__PURE__ */ m("div", { children: [
398
- /* @__PURE__ */ m("div", {
396
+ children: [/* @__PURE__ */ p("div", { children: [
397
+ /* @__PURE__ */ p("div", {
399
398
  className: "flex items-center gap-2",
400
- children: [/* @__PURE__ */ p("span", {
399
+ children: [/* @__PURE__ */ f("span", {
401
400
  className: "font-semibold",
402
- children: Y("security.secretDetail.history.versionLabel", "Version {version}", { version: e.version })
403
- }), e.version === M.version && /* @__PURE__ */ p(i, {
401
+ children: A("security.secretDetail.history.versionLabel", "Version {{version}}", { version: e.version })
402
+ }), e.version === N.version && /* @__PURE__ */ f(i, {
404
403
  variant: "success",
405
404
  className: "text-[10px] uppercase",
406
- children: Y("security.common.status.active", "Active")
405
+ children: A("security.common.status.active", "Active")
407
406
  })]
408
407
  }),
409
- /* @__PURE__ */ p("p", {
408
+ /* @__PURE__ */ f("p", {
410
409
  className: "text-xs text-text-secondary mt-1",
411
- children: Y("security.secretDetail.history.versionMeta", "{date} by {createdBy}", {
410
+ children: A("security.secretDetail.history.versionMeta", "{date} by {createdBy}", {
412
411
  date: new Date(e.createdAt).toLocaleString(),
413
412
  createdBy: e.createdBy
414
413
  })
415
414
  }),
416
- e.changeReason && /* @__PURE__ */ p("p", {
415
+ e.changeReason && /* @__PURE__ */ f("p", {
417
416
  className: "text-sm mt-2",
418
417
  children: e.changeReason
419
418
  })
420
- ] }), e.version !== M.version && /* @__PURE__ */ p(se, {
419
+ ] }), e.version !== N.version && /* @__PURE__ */ f(ce, {
421
420
  permission: "secret:update",
422
421
  featureFlagKey: t.SECRET_ROLLBACK,
423
422
  featureFlagDefault: !1,
424
- children: /* @__PURE__ */ p(a, {
423
+ children: /* @__PURE__ */ f(a, {
425
424
  variant: "outline",
426
425
  size: "sm",
427
- onClick: () => Je(e.version),
428
- disabled: ze,
429
- children: Y("security.secretDetail.actions.rollback", "Rollback")
426
+ onClick: () => Ke(e.version),
427
+ disabled: Le,
428
+ children: A("security.secretDetail.actions.rollback", "Rollback")
430
429
  })
431
430
  })]
432
431
  })
@@ -435,82 +434,82 @@ function E() {
435
434
  })]
436
435
  })
437
436
  }),
438
- /* @__PURE__ */ p(te, {
439
- isOpen: Ve,
440
- onClose: () => V(!1),
437
+ /* @__PURE__ */ f(te, {
438
+ isOpen: ze,
439
+ onClose: () => H(!1),
441
440
  onConfirm: Z,
442
- title: Y("security.secretDetail.delete.title", "Delete Secret"),
443
- description: Y("security.secretDetail.delete.description", "Are you sure you want to delete \"{name}\"? This action cannot be undone and will permanently remove this secret from the vault.", { name: M.name }),
444
- confirmLabel: Ie ? Y("security.secretDetail.delete.deleting", "Deleting...") : Y("security.secretDetail.delete.confirm", "Delete Secret"),
441
+ title: A("security.secretDetail.delete.title", "Delete Secret"),
442
+ description: A("security.secretDetail.delete.description", "Are you sure you want to delete \"{name}\"? This action cannot be undone and will permanently remove this secret from the vault.", { name: N.name }),
443
+ confirmLabel: Pe ? A("security.secretDetail.delete.deleting", "Deleting...") : A("security.secretDetail.delete.confirm", "Delete Secret"),
445
444
  variant: "destructive"
446
445
  }),
447
- /* @__PURE__ */ p(x, {
448
- open: Ue,
446
+ /* @__PURE__ */ f(x, {
447
+ open: Ve,
449
448
  onOpenChange: (e) => {
450
- e || U(!1);
449
+ e || W(!1);
451
450
  },
452
- children: /* @__PURE__ */ p(S, {
451
+ children: /* @__PURE__ */ f(S, {
453
452
  className: "max-w-md border-primary/20",
454
- children: /* @__PURE__ */ m("div", {
453
+ children: /* @__PURE__ */ p("div", {
455
454
  className: "space-y-4",
456
455
  children: [
457
- /* @__PURE__ */ p(C, {
456
+ /* @__PURE__ */ f(C, {
458
457
  className: "text-left",
459
- children: /* @__PURE__ */ m("div", {
458
+ children: /* @__PURE__ */ p("div", {
460
459
  className: "flex items-center gap-3",
461
- children: [/* @__PURE__ */ p("div", {
460
+ children: [/* @__PURE__ */ f("div", {
462
461
  className: "p-2 rounded-full bg-action-primary-bg/10 text-primary",
463
- children: /* @__PURE__ */ p(y, { className: "size-5" })
464
- }), /* @__PURE__ */ p(w, {
462
+ children: /* @__PURE__ */ f(y, { className: "size-5" })
463
+ }), /* @__PURE__ */ f(w, {
465
464
  className: "text-xl font-bold",
466
- children: Y("security.secretDetail.rotate.title", "Rotate Secret")
465
+ children: A("security.secretDetail.rotate.title", "Rotate Secret")
467
466
  })]
468
467
  })
469
468
  }),
470
- /* @__PURE__ */ p("p", {
469
+ /* @__PURE__ */ f("p", {
471
470
  className: "text-sm text-text-secondary",
472
- children: Y("security.secretDetail.rotate.description", "Enter a new value for {name}. The current value will be moved to version history.", { name: M.name })
471
+ children: A("security.secretDetail.rotate.description", "Enter a new value for {name}. The current value will be moved to version history.", { name: N.name })
473
472
  }),
474
- /* @__PURE__ */ m("div", {
473
+ /* @__PURE__ */ p("div", {
475
474
  className: "space-y-2",
476
- children: [/* @__PURE__ */ p("label", {
475
+ children: [/* @__PURE__ */ f("label", {
477
476
  htmlFor: "new-secret-value",
478
477
  className: "text-sm font-medium",
479
- children: Y("security.secretDetail.rotate.newValue", "New Secret Value")
480
- }), /* @__PURE__ */ p("textarea", {
478
+ children: A("security.secretDetail.rotate.newValue", "New Secret Value")
479
+ }), /* @__PURE__ */ f("textarea", {
481
480
  id: "new-secret-value",
482
- "aria-label": Y("security.secretDetail.rotate.newValue", "New Secret Value"),
483
- ref: W,
484
- value: q,
485
- onChange: (e) => J(e.target.value),
486
- placeholder: Y("security.secretDetail.rotate.placeholder", "Enter new secret value..."),
481
+ "aria-label": A("security.secretDetail.rotate.newValue", "New Secret Value"),
482
+ ref: G,
483
+ value: J,
484
+ onChange: (e) => Y(e.target.value),
485
+ placeholder: A("security.secretDetail.rotate.placeholder", "Enter new secret value..."),
487
486
  rows: 4,
488
487
  className: n("w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm font-mono transition-all", "focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary", "placeholder:text-text-secondary/50")
489
488
  })]
490
489
  }),
491
- /* @__PURE__ */ m("div", {
490
+ /* @__PURE__ */ p("div", {
492
491
  className: "flex justify-end gap-3 pt-2",
493
- children: [/* @__PURE__ */ p(a, {
492
+ children: [/* @__PURE__ */ f(a, {
494
493
  variant: "outline",
495
- onClick: () => U(!1),
496
- disabled: I,
497
- children: Y("security.common.actions.cancel", "Cancel")
498
- }), /* @__PURE__ */ m(a, {
499
- onClick: qe,
500
- disabled: I || !q.trim(),
501
- children: [I ? /* @__PURE__ */ p(v, { className: "size-4 animate-spin" }) : /* @__PURE__ */ p(y, { className: "size-4" }), I ? Y("security.secretDetail.rotate.loading", "Rotating...") : Y("security.secretDetail.rotate.confirm", "Rotate Secret")]
494
+ onClick: () => W(!1),
495
+ disabled: L,
496
+ children: A("security.common.actions.cancel", "Cancel")
497
+ }), /* @__PURE__ */ p(a, {
498
+ onClick: Ge,
499
+ disabled: L || !J.trim(),
500
+ children: [L ? /* @__PURE__ */ f(v, { className: "size-4 animate-spin" }) : /* @__PURE__ */ f(y, { className: "size-4" }), L ? A("security.secretDetail.rotate.loading", "Rotating...") : A("security.secretDetail.rotate.confirm", "Rotate Secret")]
502
501
  })]
503
502
  })
504
503
  ]
505
504
  })
506
505
  })
507
506
  }),
508
- E && D && /* @__PURE__ */ p(de, {
509
- isOpen: He,
510
- onClose: () => H(!1),
507
+ E && D && /* @__PURE__ */ f(fe, {
508
+ isOpen: Be,
509
+ onClose: () => U(!1),
511
510
  vaultId: E,
512
511
  secretId: D,
513
- name: M.name
512
+ name: N.name
514
513
  })
515
514
  ]
516
515
  });