@burdenoff/microfe-product 2026.625.1 → 2026.626.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 (51) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +40 -36
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +71 -63
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +218 -181
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +27 -25
  8. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  9. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +99 -72
  10. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  11. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +32 -30
  12. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  13. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +96 -91
  14. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  15. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +25 -23
  16. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  17. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +136 -111
  18. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  19. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +35 -33
  20. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  21. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +130 -126
  22. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  23. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +27 -25
  24. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  25. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +95 -70
  26. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  27. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +32 -30
  28. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  29. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +63 -58
  30. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  31. package/dist/product-management/modules/products/components/ProductPlans.js +132 -143
  32. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  33. package/dist/product-management/modules/products/pages/ProductCreatePage.js +27 -25
  34. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  35. package/dist/product-management/modules/products/pages/ProductDetailPage.js +142 -114
  36. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  37. package/dist/product-management/modules/products/pages/ProductEditPage.js +31 -29
  38. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  39. package/dist/product-management/modules/products/pages/ProductsListPage.js +218 -210
  40. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  41. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +27 -22
  42. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  43. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +156 -129
  44. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  45. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +30 -25
  46. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  47. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +140 -132
  48. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  49. package/dist/product-management/shared/components/AuditHistoryTab.js +18 -16
  50. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  51. package/package.json +2 -2
@@ -10,220 +10,247 @@ import { ShortcutKeyBadge as f } from "../components/ShortcutKeyBadge.js";
10
10
  import { ArrowLeft as p, SquarePen as m, ToggleLeft as h, ToggleRight as g, Trash2 as _ } from "lucide-react";
11
11
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
12
12
  import { useParams as b } from "react-router-dom";
13
- import { CTAOverflowMenu as x, GradientText as S } from "@burdenoff/fe-libs/ui";
13
+ import { CTAOverflowMenu as x, EmphasisPanel as S, GradientText as C, NextSteps as w, PagePurpose as T } from "@burdenoff/fe-libs/ui";
14
14
  //#region src/product-management/modules/shortcuts/pages/ShortcutDetailPage.tsx
15
- function C() {
16
- let { id: C } = b(), { navigate: w, basePath: T = "/products" } = t(), E = e(), { confirm: D, ConfirmDialog: O } = s(), k = C || "", { shortcut: A, loading: j, error: M, refetch: N } = l(k), { deleteShortcut: P, loading: F } = c(), { toggleShortcut: I, loading: L } = u(), R = async () => {
15
+ function E() {
16
+ let { id: E } = b(), { navigate: D, basePath: O = "/products" } = t(), k = e(), { confirm: A, ConfirmDialog: j } = s(), M = E || "", { shortcut: N, loading: P, error: F, refetch: I } = l(M), { deleteShortcut: L, loading: R } = c(), { toggleShortcut: z, loading: B } = u(), V = async () => {
17
17
  a("medium");
18
- let e = E("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
18
+ let e = k("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
19
19
  title: "Delete shortcut",
20
20
  message: e,
21
21
  okButtonTitle: "Delete",
22
22
  cancelButtonTitle: "Cancel"
23
23
  });
24
- if (t === null ? await D({
24
+ if (t === null ? await A({
25
25
  title: "Delete shortcut",
26
26
  message: e,
27
27
  okButtonTitle: "Delete",
28
28
  cancelButtonTitle: "Cancel",
29
29
  destructive: !0
30
30
  }) : t) try {
31
- await P(k), o("success"), w(`${T}/shortcuts`);
31
+ await L(M), o("success"), D(`${O}/shortcuts`);
32
32
  } catch (e) {
33
33
  o("error"), console.error("Failed to delete shortcut:", e);
34
34
  }
35
- }, z = async () => {
36
- if (A) {
35
+ }, H = async () => {
36
+ if (N) {
37
37
  a("medium");
38
38
  try {
39
- await I(k, !A.isEnabled), N();
39
+ await z(M, !N.isEnabled), I();
40
40
  } catch (e) {
41
41
  o("error"), console.error("Failed to toggle shortcut:", e);
42
42
  }
43
43
  }
44
44
  };
45
- return j ? /* @__PURE__ */ v("div", {
45
+ return P ? /* @__PURE__ */ v("div", {
46
46
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
47
- children: /* @__PURE__ */ v(n, { message: E("shortcuts.loadingShortcut", "Loading shortcut...") })
48
- }) : M ? /* @__PURE__ */ v("div", {
47
+ children: /* @__PURE__ */ v(n, { message: k("shortcuts.loadingShortcut", "Loading shortcut...") })
48
+ }) : F ? /* @__PURE__ */ v("div", {
49
49
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
50
50
  children: /* @__PURE__ */ v(r, {
51
- message: M.message,
51
+ message: F.message,
52
52
  action: {
53
- label: E("productCommon.retry", "Retry"),
54
- onClick: () => N()
53
+ label: k("productCommon.retry", "Retry"),
54
+ onClick: () => I()
55
55
  }
56
56
  })
57
- }) : A ? /* @__PURE__ */ y("div", {
57
+ }) : N ? /* @__PURE__ */ y("div", {
58
58
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
59
59
  children: [
60
60
  /* @__PURE__ */ y("div", {
61
61
  className: "mb-6",
62
62
  children: [/* @__PURE__ */ y("button", {
63
63
  type: "button",
64
- onClick: () => w(`${T}/shortcuts`),
64
+ onClick: () => D(`${O}/shortcuts`),
65
65
  className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n ",
66
- children: [/* @__PURE__ */ v(p, { size: 18 }), E("shortcuts.backToShortcuts", "Back to Shortcuts")]
66
+ children: [/* @__PURE__ */ v(p, { size: 18 }), k("shortcuts.backToShortcuts", "Back to Shortcuts")]
67
67
  }), /* @__PURE__ */ y("div", {
68
68
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",
69
69
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
70
70
  className: "flex flex-wrap items-center gap-3 mb-2",
71
71
  children: [/* @__PURE__ */ v("h1", {
72
72
  className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
73
- children: /* @__PURE__ */ v(S, { children: A.label })
74
- }), /* @__PURE__ */ v(d, { category: A.category })]
73
+ children: /* @__PURE__ */ v(C, { children: N.label })
74
+ }), /* @__PURE__ */ v(d, { category: N.category })]
75
75
  }), /* @__PURE__ */ y("div", {
76
76
  className: "flex items-center gap-3",
77
77
  children: [/* @__PURE__ */ v(f, {
78
- shortcutKey: A.shortcutKey,
79
- isSequence: A.isSequence
78
+ shortcutKey: N.shortcutKey,
79
+ isSequence: N.isSequence
80
80
  }), /* @__PURE__ */ y("span", {
81
81
  className: `
82
82
  inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium
83
- ${A.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-tertiary"}
83
+ ${N.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-tertiary"}
84
84
  `,
85
- children: [A.isEnabled && /* @__PURE__ */ v("span", { className: "size-1.5 rounded-full bg-[var(--color-status-success)] motion-safe:animate-vc-glow-pulse" }), A.isEnabled ? E("shortcuts.enabled", "Enabled") : E("shortcuts.disabled", "Disabled")]
85
+ children: [N.isEnabled && /* @__PURE__ */ v("span", { className: "size-1.5 rounded-full bg-[var(--color-status-success)] motion-safe:animate-vc-glow-pulse" }), N.isEnabled ? k("shortcuts.enabled", "Enabled") : k("shortcuts.disabled", "Disabled")]
86
86
  })]
87
87
  })] }), /* @__PURE__ */ v(x, {
88
88
  primary: {
89
- label: E("shortcuts.edit", "Edit"),
90
- onSelect: () => w(`${T}/shortcuts/${k}/edit`),
89
+ label: k("shortcuts.edit", "Edit"),
90
+ onSelect: () => D(`${O}/shortcuts/${M}/edit`),
91
91
  icon: /* @__PURE__ */ v(m, { className: "size-4" })
92
92
  },
93
93
  actions: [{
94
- label: A.isEnabled ? E("shortcuts.disable", "Disable") : E("shortcuts.enable", "Enable"),
94
+ label: N.isEnabled ? k("shortcuts.disable", "Disable") : k("shortcuts.enable", "Enable"),
95
95
  onSelect: () => {
96
- z();
96
+ H();
97
97
  },
98
- disabled: L,
99
- icon: A.isEnabled ? /* @__PURE__ */ v(h, { className: "size-4" }) : /* @__PURE__ */ v(g, { className: "size-4" })
98
+ disabled: B,
99
+ icon: N.isEnabled ? /* @__PURE__ */ v(h, { className: "size-4" }) : /* @__PURE__ */ v(g, { className: "size-4" })
100
100
  }, {
101
- label: E("shortcuts.delete", "Delete"),
101
+ label: k("shortcuts.delete", "Delete"),
102
102
  onSelect: () => {
103
- R();
103
+ V();
104
104
  },
105
105
  intent: "destructive",
106
- disabled: F,
106
+ disabled: R,
107
107
  icon: /* @__PURE__ */ v(_, { className: "size-4" })
108
108
  }]
109
109
  })]
110
110
  })]
111
111
  }),
112
+ /* @__PURE__ */ v(T, {
113
+ className: "mb-6",
114
+ children: k("shortcuts.detailPurpose", `This is the "${N.label}" shortcut — it fires the "${N.eventName}" event when pressed. Review its key bindings (including Mac and Windows/Linux variants), toggle it on or off, or edit it to change the keys or event.`)
115
+ }),
116
+ /* @__PURE__ */ v(w, {
117
+ storageKey: "product-shortcut-detail",
118
+ className: "mb-6",
119
+ steps: [
120
+ {
121
+ id: "edit",
122
+ label: k("shortcuts.steps.edit", "Edit this shortcut"),
123
+ description: k("shortcuts.steps.editDesc", "Change the key combination, event, category, or per-platform keys."),
124
+ onClick: () => D(`${O}/shortcuts/${M}/edit`)
125
+ },
126
+ {
127
+ id: "toggle",
128
+ label: N.isEnabled ? k("shortcuts.steps.disable", "Disable this shortcut") : k("shortcuts.steps.enable", "Enable this shortcut"),
129
+ description: k("shortcuts.steps.toggleDesc", "Turn it on or off without deleting it — useful while testing."),
130
+ onClick: () => {
131
+ H();
132
+ }
133
+ },
134
+ {
135
+ id: "back",
136
+ label: k("shortcuts.steps.back", "Back to all shortcuts"),
137
+ description: k("shortcuts.steps.backDesc", "Return to the list to manage the rest of your shortcuts."),
138
+ onClick: () => D(`${O}/shortcuts`)
139
+ }
140
+ ]
141
+ }),
112
142
  /* @__PURE__ */ y("div", {
113
143
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
114
- children: [/* @__PURE__ */ y("div", {
115
- className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card shadow-elevation-1 p-6",
116
- children: [/* @__PURE__ */ v("h2", {
117
- className: "text-lg font-semibold text-text-primary mb-4",
118
- children: E("shortcuts.shortcutDetails", "Shortcut Details")
119
- }), /* @__PURE__ */ y("dl", {
120
- className: "space-y-4",
121
- children: [
122
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
123
- className: "text-sm font-medium text-text-secondary",
124
- children: E("shortcuts.label", "Label")
125
- }), /* @__PURE__ */ v("dd", {
126
- className: "text-text-primary mt-1",
127
- children: A.label
128
- })] }),
129
- A.description && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
130
- className: "text-sm font-medium text-text-secondary",
131
- children: E("shortcuts.description", "Description")
132
- }), /* @__PURE__ */ v("dd", {
133
- className: "text-text-primary mt-1",
134
- children: A.description
135
- })] }),
136
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
137
- className: "text-sm font-medium text-text-secondary",
138
- children: E("shortcuts.shortcutKey", "Shortcut Key")
139
- }), /* @__PURE__ */ v("dd", {
140
- className: "mt-1",
141
- children: /* @__PURE__ */ v(f, {
142
- shortcutKey: A.shortcutKey,
143
- isSequence: A.isSequence
144
- })
145
- })] }),
146
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
147
- className: "text-sm font-medium text-text-secondary",
148
- children: E("shortcuts.eventName", "Event Name")
149
- }), /* @__PURE__ */ v("dd", {
150
- className: "mt-1",
151
- children: /* @__PURE__ */ v("code", {
152
- className: "text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono",
153
- children: A.eventName
154
- })
155
- })] }),
156
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
157
- className: "text-sm font-medium text-text-secondary",
158
- children: E("shortcuts.category", "Category")
159
- }), /* @__PURE__ */ v("dd", {
160
- className: "mt-1",
161
- children: /* @__PURE__ */ v(d, { category: A.category })
162
- })] }),
163
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
164
- className: "text-sm font-medium text-text-secondary",
165
- children: E("shortcuts.product", "Product")
166
- }), /* @__PURE__ */ v("dd", {
167
- className: "text-text-primary mt-1",
168
- children: A.product?.name || /* @__PURE__ */ v("span", {
169
- className: "text-text-tertiary italic",
170
- children: E("shortcuts.globalAllProducts", "Global (All Products)")
171
- })
172
- })] }),
173
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
174
- className: "text-sm font-medium text-text-secondary",
175
- children: E("shortcuts.type", "Type")
176
- }), /* @__PURE__ */ v("dd", {
177
- className: "text-text-primary mt-1",
178
- children: A.isSequence ? E("shortcuts.keySequence", "Key Sequence") : E("shortcuts.keyCombination", "Key Combination")
179
- })] }),
180
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
181
- className: "text-sm font-medium text-text-secondary",
182
- children: E("shortcuts.sortOrder", "Sort Order")
183
- }), /* @__PURE__ */ v("dd", {
184
- className: "text-text-primary mt-1",
185
- children: A.sortOrder
186
- })] })
187
- ]
188
- })]
189
- }), /* @__PURE__ */ y("div", {
144
+ children: [/* @__PURE__ */ y(S, { children: [/* @__PURE__ */ v("h2", {
145
+ className: "text-lg font-semibold text-text-primary mb-4",
146
+ children: k("shortcuts.shortcutDetails", "Shortcut Details")
147
+ }), /* @__PURE__ */ y("dl", {
148
+ className: "space-y-4",
149
+ children: [
150
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
151
+ className: "text-sm font-medium text-text-secondary",
152
+ children: k("shortcuts.label", "Label")
153
+ }), /* @__PURE__ */ v("dd", {
154
+ className: "text-text-primary mt-1",
155
+ children: N.label
156
+ })] }),
157
+ N.description && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
158
+ className: "text-sm font-medium text-text-secondary",
159
+ children: k("shortcuts.description", "Description")
160
+ }), /* @__PURE__ */ v("dd", {
161
+ className: "text-text-primary mt-1",
162
+ children: N.description
163
+ })] }),
164
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
165
+ className: "text-sm font-medium text-text-secondary",
166
+ children: k("shortcuts.shortcutKey", "Shortcut Key")
167
+ }), /* @__PURE__ */ v("dd", {
168
+ className: "mt-1",
169
+ children: /* @__PURE__ */ v(f, {
170
+ shortcutKey: N.shortcutKey,
171
+ isSequence: N.isSequence
172
+ })
173
+ })] }),
174
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
175
+ className: "text-sm font-medium text-text-secondary",
176
+ children: k("shortcuts.eventName", "Event Name")
177
+ }), /* @__PURE__ */ v("dd", {
178
+ className: "mt-1",
179
+ children: /* @__PURE__ */ v("code", {
180
+ className: "text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono",
181
+ children: N.eventName
182
+ })
183
+ })] }),
184
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
185
+ className: "text-sm font-medium text-text-secondary",
186
+ children: k("shortcuts.category", "Category")
187
+ }), /* @__PURE__ */ v("dd", {
188
+ className: "mt-1",
189
+ children: /* @__PURE__ */ v(d, { category: N.category })
190
+ })] }),
191
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
192
+ className: "text-sm font-medium text-text-secondary",
193
+ children: k("shortcuts.product", "Product")
194
+ }), /* @__PURE__ */ v("dd", {
195
+ className: "text-text-primary mt-1",
196
+ children: N.product?.name || /* @__PURE__ */ v("span", {
197
+ className: "text-text-tertiary italic",
198
+ children: k("shortcuts.globalAllProducts", "Global (All Products)")
199
+ })
200
+ })] }),
201
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
202
+ className: "text-sm font-medium text-text-secondary",
203
+ children: k("shortcuts.type", "Type")
204
+ }), /* @__PURE__ */ v("dd", {
205
+ className: "text-text-primary mt-1",
206
+ children: N.isSequence ? k("shortcuts.keySequence", "Key Sequence") : k("shortcuts.keyCombination", "Key Combination")
207
+ })] }),
208
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
209
+ className: "text-sm font-medium text-text-secondary",
210
+ children: k("shortcuts.sortOrder", "Sort Order")
211
+ }), /* @__PURE__ */ v("dd", {
212
+ className: "text-text-primary mt-1",
213
+ children: N.sortOrder
214
+ })] })
215
+ ]
216
+ })] }), /* @__PURE__ */ y("div", {
190
217
  className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card shadow-elevation-1 p-6",
191
218
  children: [
192
219
  /* @__PURE__ */ v("h2", {
193
220
  className: "text-lg font-semibold text-text-primary mb-4",
194
- children: E("shortcuts.platformKeys", "Platform Keys")
221
+ children: k("shortcuts.platformKeys", "Platform Keys")
195
222
  }),
196
223
  /* @__PURE__ */ y("dl", {
197
224
  className: "space-y-4",
198
225
  children: [
199
226
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
200
227
  className: "text-sm font-medium text-text-secondary",
201
- children: E("shortcuts.defaultKey", "Default Key")
228
+ children: k("shortcuts.defaultKey", "Default Key")
202
229
  }), /* @__PURE__ */ v("dd", {
203
230
  className: "mt-1",
204
231
  children: /* @__PURE__ */ v(f, {
205
- shortcutKey: A.shortcutKey,
206
- isSequence: A.isSequence
232
+ shortcutKey: N.shortcutKey,
233
+ isSequence: N.isSequence
207
234
  })
208
235
  })] }),
209
236
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
210
237
  className: "text-sm font-medium text-text-secondary",
211
- children: E("shortcuts.macKey", "Mac Key")
238
+ children: k("shortcuts.macKey", "Mac Key")
212
239
  }), /* @__PURE__ */ v("dd", {
213
240
  className: "mt-1",
214
- children: A.macKey ? /* @__PURE__ */ v(f, { shortcutKey: A.macKey }) : /* @__PURE__ */ v("span", {
241
+ children: N.macKey ? /* @__PURE__ */ v(f, { shortcutKey: N.macKey }) : /* @__PURE__ */ v("span", {
215
242
  className: "text-text-tertiary italic",
216
- children: E("shortcuts.sameAsDefault", "Same as default")
243
+ children: k("shortcuts.sameAsDefault", "Same as default")
217
244
  })
218
245
  })] }),
219
246
  /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
220
247
  className: "text-sm font-medium text-text-secondary",
221
- children: E("shortcuts.windowsLinuxKey", "Windows/Linux Key")
248
+ children: k("shortcuts.windowsLinuxKey", "Windows/Linux Key")
222
249
  }), /* @__PURE__ */ v("dd", {
223
250
  className: "mt-1",
224
- children: A.windowsKey ? /* @__PURE__ */ v(f, { shortcutKey: A.windowsKey }) : /* @__PURE__ */ v("span", {
251
+ children: N.windowsKey ? /* @__PURE__ */ v(f, { shortcutKey: N.windowsKey }) : /* @__PURE__ */ v("span", {
225
252
  className: "text-text-tertiary italic",
226
- children: E("shortcuts.sameAsDefault", "Same as default")
253
+ children: k("shortcuts.sameAsDefault", "Same as default")
227
254
  })
228
255
  })] })
229
256
  ]
@@ -232,26 +259,26 @@ function C() {
232
259
  className: "mt-6 pt-4 border-t border-border-seam",
233
260
  children: [/* @__PURE__ */ v("h3", {
234
261
  className: "text-sm font-semibold text-text-secondary mb-3",
235
- children: E("shortcuts.timestamps", "Timestamps")
262
+ children: k("shortcuts.timestamps", "Timestamps")
236
263
  }), /* @__PURE__ */ y("dl", {
237
264
  className: "space-y-2 text-sm",
238
265
  children: [/* @__PURE__ */ y("div", {
239
266
  className: "flex justify-between",
240
267
  children: [/* @__PURE__ */ v("dt", {
241
268
  className: "text-text-tertiary",
242
- children: E("shortcuts.created", "Created")
269
+ children: k("shortcuts.created", "Created")
243
270
  }), /* @__PURE__ */ v("dd", {
244
271
  className: "text-text-primary",
245
- children: new Date(A.createdAt).toLocaleString()
272
+ children: new Date(N.createdAt).toLocaleString()
246
273
  })]
247
274
  }), /* @__PURE__ */ y("div", {
248
275
  className: "flex justify-between",
249
276
  children: [/* @__PURE__ */ v("dt", {
250
277
  className: "text-text-tertiary",
251
- children: E("shortcuts.updated", "Updated")
278
+ children: k("shortcuts.updated", "Updated")
252
279
  }), /* @__PURE__ */ v("dd", {
253
280
  className: "text-text-primary",
254
- children: new Date(A.updatedAt).toLocaleString()
281
+ children: new Date(N.updatedAt).toLocaleString()
255
282
  })]
256
283
  })]
257
284
  })]
@@ -259,20 +286,20 @@ function C() {
259
286
  ]
260
287
  })]
261
288
  }),
262
- O
289
+ j
263
290
  ]
264
291
  }) : /* @__PURE__ */ v("div", {
265
292
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
266
293
  children: /* @__PURE__ */ v(r, {
267
- message: E("shortcuts.shortcutNotFound", "Shortcut not found"),
294
+ message: k("shortcuts.shortcutNotFound", "Shortcut not found"),
268
295
  action: {
269
- label: E("shortcuts.goBack", "Go Back"),
270
- onClick: () => w(`${T}/shortcuts`)
296
+ label: k("shortcuts.goBack", "Go Back"),
297
+ onClick: () => D(`${O}/shortcuts`)
271
298
  }
272
299
  })
273
300
  });
274
301
  }
275
302
  //#endregion
276
- export { C as ShortcutDetailPage };
303
+ export { E as ShortcutDetailPage };
277
304
 
278
305
  //# sourceMappingURL=ShortcutDetailPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShortcutDetailPage.js","names":[],"sources":["../../../../../src/product-management/modules/shortcuts/pages/ShortcutDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport { ArrowLeft, SquarePen, Trash2, ToggleLeft, ToggleRight } from 'lucide-react';\nimport { CTAOverflowMenu, GradientText } from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useShortcut, useDeleteShortcut, useToggleShortcut } from '../hooks/useShortcuts';\nimport { ShortcutCategoryBadge } from '../components/ShortcutCategoryBadge';\nimport { ShortcutKeyBadge } from '../components/ShortcutKeyBadge';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\nimport { useConfirmDialog } from '../../../shared/hooks/useConfirmDialog';\n\nexport function ShortcutDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const tr = useTr();\n const { confirm, ConfirmDialog } = useConfirmDialog();\n const shortcutId = id || '';\n\n const { shortcut, loading, error, refetch } = useShortcut(shortcutId);\n const { deleteShortcut, loading: deleteLoading } = useDeleteShortcut();\n const { toggleShortcut, loading: toggleLoading } = useToggleShortcut();\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const message = tr('shortcuts.confirmDelete', 'Are you sure you want to delete this shortcut?');\n const native = await nativeConfirm({\n title: 'Delete shortcut',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok =\n native === null\n ? await confirm({\n title: 'Delete shortcut',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n destructive: true,\n })\n : native;\n if (!ok) return;\n\n try {\n await deleteShortcut(shortcutId);\n void nativeNotify('success');\n navigate(`${basePath}/shortcuts`);\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to delete shortcut:', error);\n }\n };\n\n const handleToggle = async () => {\n if (!shortcut) return;\n void nativeImpact('medium');\n\n try {\n await toggleShortcut(shortcutId, !shortcut.isEnabled);\n refetch();\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to toggle shortcut:', error);\n }\n };\n\n if (loading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('shortcuts.loadingShortcut', 'Loading shortcut...')} />\n </div>\n );\n }\n\n if (error) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error.message}\n action={{\n label: tr('productCommon.retry', 'Retry'),\n onClick: () => refetch(),\n }}\n />\n </div>\n );\n }\n\n if (!shortcut) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={tr('shortcuts.shortcutNotFound', 'Shortcut not found')}\n action={{\n label: tr('shortcuts.goBack', 'Go Back'),\n onClick: () => navigate(`${basePath}/shortcuts`),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n type=\"button\"\n onClick={() => navigate(`${basePath}/shortcuts`)}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n \"\n >\n <ArrowLeft size={18} />\n {tr('shortcuts.backToShortcuts', 'Back to Shortcuts')}\n </button>\n\n <div className=\"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4\">\n <div>\n <div className=\"flex flex-wrap items-center gap-3 mb-2\">\n <h1 className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n <GradientText>{shortcut.label}</GradientText>\n </h1>\n <ShortcutCategoryBadge category={shortcut.category} />\n </div>\n <div className=\"flex items-center gap-3\">\n <ShortcutKeyBadge\n shortcutKey={shortcut.shortcutKey}\n isSequence={shortcut.isSequence}\n />\n <span\n className={`\n inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium\n ${\n shortcut.isEnabled\n ? 'bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]'\n : 'bg-bg-sunken text-text-tertiary'\n }\n `}\n >\n {shortcut.isEnabled && (\n <span className=\"size-1.5 rounded-full bg-[var(--color-status-success)] motion-safe:animate-vc-glow-pulse\" />\n )}\n {shortcut.isEnabled\n ? tr('shortcuts.enabled', 'Enabled')\n : tr('shortcuts.disabled', 'Disabled')}\n </span>\n </div>\n </div>\n\n <CTAOverflowMenu\n primary={{\n label: tr('shortcuts.edit', 'Edit'),\n onSelect: () => navigate(`${basePath}/shortcuts/${shortcutId}/edit`),\n icon: <SquarePen className=\"size-4\" />,\n }}\n actions={[\n {\n label: shortcut.isEnabled\n ? tr('shortcuts.disable', 'Disable')\n : tr('shortcuts.enable', 'Enable'),\n onSelect: () => {\n void handleToggle();\n },\n disabled: toggleLoading,\n icon: shortcut.isEnabled ? (\n <ToggleLeft className=\"size-4\" />\n ) : (\n <ToggleRight className=\"size-4\" />\n ),\n },\n {\n label: tr('shortcuts.delete', 'Delete'),\n onSelect: () => {\n void handleDelete();\n },\n intent: 'destructive',\n disabled: deleteLoading,\n icon: <Trash2 className=\"size-4\" />,\n },\n ]}\n />\n </div>\n </div>\n\n {/* Details Grid */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Main Info Card */}\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card shadow-elevation-1 p-6\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('shortcuts.shortcutDetails', 'Shortcut Details')}\n </h2>\n\n <dl className=\"space-y-4\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.label', 'Label')}\n </dt>\n <dd className=\"text-text-primary mt-1\">{shortcut.label}</dd>\n </div>\n\n {shortcut.description && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.description', 'Description')}\n </dt>\n <dd className=\"text-text-primary mt-1\">{shortcut.description}</dd>\n </div>\n )}\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.shortcutKey', 'Shortcut Key')}\n </dt>\n <dd className=\"mt-1\">\n <ShortcutKeyBadge\n shortcutKey={shortcut.shortcutKey}\n isSequence={shortcut.isSequence}\n />\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.eventName', 'Event Name')}\n </dt>\n <dd className=\"mt-1\">\n <code className=\"text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono\">\n {shortcut.eventName}\n </code>\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.category', 'Category')}\n </dt>\n <dd className=\"mt-1\">\n <ShortcutCategoryBadge category={shortcut.category} />\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.product', 'Product')}\n </dt>\n <dd className=\"text-text-primary mt-1\">\n {shortcut.product?.name || (\n <span className=\"text-text-tertiary italic\">\n {tr('shortcuts.globalAllProducts', 'Global (All Products)')}\n </span>\n )}\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.type', 'Type')}\n </dt>\n <dd className=\"text-text-primary mt-1\">\n {shortcut.isSequence\n ? tr('shortcuts.keySequence', 'Key Sequence')\n : tr('shortcuts.keyCombination', 'Key Combination')}\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.sortOrder', 'Sort Order')}\n </dt>\n <dd className=\"text-text-primary mt-1\">{shortcut.sortOrder}</dd>\n </div>\n </dl>\n </div>\n\n {/* Platform-Specific Keys Card */}\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card shadow-elevation-1 p-6\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('shortcuts.platformKeys', 'Platform Keys')}\n </h2>\n\n <dl className=\"space-y-4\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.defaultKey', 'Default Key')}\n </dt>\n <dd className=\"mt-1\">\n <ShortcutKeyBadge\n shortcutKey={shortcut.shortcutKey}\n isSequence={shortcut.isSequence}\n />\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.macKey', 'Mac Key')}\n </dt>\n <dd className=\"mt-1\">\n {shortcut.macKey ? (\n <ShortcutKeyBadge shortcutKey={shortcut.macKey} />\n ) : (\n <span className=\"text-text-tertiary italic\">\n {tr('shortcuts.sameAsDefault', 'Same as default')}\n </span>\n )}\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.windowsLinuxKey', 'Windows/Linux Key')}\n </dt>\n <dd className=\"mt-1\">\n {shortcut.windowsKey ? (\n <ShortcutKeyBadge shortcutKey={shortcut.windowsKey} />\n ) : (\n <span className=\"text-text-tertiary italic\">\n {tr('shortcuts.sameAsDefault', 'Same as default')}\n </span>\n )}\n </dd>\n </div>\n </dl>\n\n <div className=\"mt-6 pt-4 border-t border-border-seam\">\n <h3 className=\"text-sm font-semibold text-text-secondary mb-3\">\n {tr('shortcuts.timestamps', 'Timestamps')}\n </h3>\n <dl className=\"space-y-2 text-sm\">\n <div className=\"flex justify-between\">\n <dt className=\"text-text-tertiary\">{tr('shortcuts.created', 'Created')}</dt>\n <dd className=\"text-text-primary\">\n {new Date(shortcut.createdAt).toLocaleString()}\n </dd>\n </div>\n <div className=\"flex justify-between\">\n <dt className=\"text-text-tertiary\">{tr('shortcuts.updated', 'Updated')}</dt>\n <dd className=\"text-text-primary\">\n {new Date(shortcut.updatedAt).toLocaleString()}\n </dd>\n </div>\n </dl>\n </div>\n </div>\n </div>\n {ConfirmDialog}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,SAAgB,IAAqB;CACnC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAK,GAAO,EACZ,EAAE,YAAS,qBAAkB,GAAkB,EAC/C,IAAa,KAAM,IAEnB,EAAE,aAAU,YAAS,UAAO,eAAY,EAAY,EAAW,EAC/D,E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AAD;SAAI,WAAU;mBACX,EAAG,6BAA6B,oBAAoB;SAClD,CAAA,EACL,kBAAC,MAAD;SAAI,WAAU;mBACX,EAAS,aACR,kBAAC,GAAD,EAAkB,aAAa,EAAS,YAAc,CAAA,GAEtD,kBAAC,QAAD;UAAM,WAAU;oBACb,EAAG,2BAA2B,kBAAkB;UAC5C,CAAA;SAEN,CAAA,CACD,EAAA,CAAA;QACH;;MAEL,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,MAAD;QAAI,WAAU;kBACX,EAAG,wBAAwB,aAAa;QACtC,CAAA,EACL,kBAAC,MAAD;QAAI,WAAU;kBAAd,CACE,kBAAC,OAAD;SAAK,WAAU;mBAAf,CACE,kBAAC,MAAD;UAAI,WAAU;oBAAsB,EAAG,qBAAqB,UAAU;UAAM,CAAA,EAC5E,kBAAC,MAAD;UAAI,WAAU;oBACX,IAAI,KAAK,EAAS,UAAU,CAAC,gBAAgB;UAC3C,CAAA,CACD;YACN,kBAAC,OAAD;SAAK,WAAU;mBAAf,CACE,kBAAC,MAAD;UAAI,WAAU;oBAAsB,EAAG,qBAAqB,UAAU;UAAM,CAAA,EAC5E,kBAAC,MAAD;UAAI,WAAU;oBACX,IAAI,KAAK,EAAS,UAAU,CAAC,gBAAgB;UAC3C,CAAA,CACD;WACH;UACD;;MACF;OACF;;GACL;GACG;MApQJ,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GACE,SAAS,EAAG,8BAA8B,qBAAqB;GAC/D,QAAQ;IACN,OAAO,EAAG,oBAAoB,UAAU;IACxC,eAAe,EAAS,GAAG,EAAS,YAAY;IACjD;GACD,CAAA;EACE,CAAA"}
1
+ {"version":3,"file":"ShortcutDetailPage.js","names":[],"sources":["../../../../../src/product-management/modules/shortcuts/pages/ShortcutDetailPage.tsx"],"sourcesContent":["import { useParams } from 'react-router-dom';\nimport { ArrowLeft, SquarePen, Trash2, ToggleLeft, ToggleRight } from 'lucide-react';\nimport {\n CTAOverflowMenu,\n EmphasisPanel,\n GradientText,\n NextSteps,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useShortcut, useDeleteShortcut, useToggleShortcut } from '../hooks/useShortcuts';\nimport { ShortcutCategoryBadge } from '../components/ShortcutCategoryBadge';\nimport { ShortcutKeyBadge } from '../components/ShortcutKeyBadge';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../../../utils/nativeBridge';\nimport { useConfirmDialog } from '../../../shared/hooks/useConfirmDialog';\n\nexport function ShortcutDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const tr = useTr();\n const { confirm, ConfirmDialog } = useConfirmDialog();\n const shortcutId = id || '';\n\n const { shortcut, loading, error, refetch } = useShortcut(shortcutId);\n const { deleteShortcut, loading: deleteLoading } = useDeleteShortcut();\n const { toggleShortcut, loading: toggleLoading } = useToggleShortcut();\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const message = tr('shortcuts.confirmDelete', 'Are you sure you want to delete this shortcut?');\n const native = await nativeConfirm({\n title: 'Delete shortcut',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n const ok =\n native === null\n ? await confirm({\n title: 'Delete shortcut',\n message,\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n destructive: true,\n })\n : native;\n if (!ok) return;\n\n try {\n await deleteShortcut(shortcutId);\n void nativeNotify('success');\n navigate(`${basePath}/shortcuts`);\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to delete shortcut:', error);\n }\n };\n\n const handleToggle = async () => {\n if (!shortcut) return;\n void nativeImpact('medium');\n\n try {\n await toggleShortcut(shortcutId, !shortcut.isEnabled);\n refetch();\n } catch (error) {\n void nativeNotify('error');\n console.error('Failed to toggle shortcut:', error);\n }\n };\n\n if (loading) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('shortcuts.loadingShortcut', 'Loading shortcut...')} />\n </div>\n );\n }\n\n if (error) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error.message}\n action={{\n label: tr('productCommon.retry', 'Retry'),\n onClick: () => refetch(),\n }}\n />\n </div>\n );\n }\n\n if (!shortcut) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={tr('shortcuts.shortcutNotFound', 'Shortcut not found')}\n action={{\n label: tr('shortcuts.goBack', 'Go Back'),\n onClick: () => navigate(`${basePath}/shortcuts`),\n }}\n />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n {/* Page Header */}\n <div className=\"mb-6\">\n <button\n type=\"button\"\n onClick={() => navigate(`${basePath}/shortcuts`)}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n \"\n >\n <ArrowLeft size={18} />\n {tr('shortcuts.backToShortcuts', 'Back to Shortcuts')}\n </button>\n\n <div className=\"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4\">\n <div>\n <div className=\"flex flex-wrap items-center gap-3 mb-2\">\n <h1 className=\"text-2xl md:text-3xl font-semibold tracking-tight text-text-primary\">\n <GradientText>{shortcut.label}</GradientText>\n </h1>\n <ShortcutCategoryBadge category={shortcut.category} />\n </div>\n <div className=\"flex items-center gap-3\">\n <ShortcutKeyBadge\n shortcutKey={shortcut.shortcutKey}\n isSequence={shortcut.isSequence}\n />\n <span\n className={`\n inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium\n ${\n shortcut.isEnabled\n ? 'bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]'\n : 'bg-bg-sunken text-text-tertiary'\n }\n `}\n >\n {shortcut.isEnabled && (\n <span className=\"size-1.5 rounded-full bg-[var(--color-status-success)] motion-safe:animate-vc-glow-pulse\" />\n )}\n {shortcut.isEnabled\n ? tr('shortcuts.enabled', 'Enabled')\n : tr('shortcuts.disabled', 'Disabled')}\n </span>\n </div>\n </div>\n\n <CTAOverflowMenu\n primary={{\n label: tr('shortcuts.edit', 'Edit'),\n onSelect: () => navigate(`${basePath}/shortcuts/${shortcutId}/edit`),\n icon: <SquarePen className=\"size-4\" />,\n }}\n actions={[\n {\n label: shortcut.isEnabled\n ? tr('shortcuts.disable', 'Disable')\n : tr('shortcuts.enable', 'Enable'),\n onSelect: () => {\n void handleToggle();\n },\n disabled: toggleLoading,\n icon: shortcut.isEnabled ? (\n <ToggleLeft className=\"size-4\" />\n ) : (\n <ToggleRight className=\"size-4\" />\n ),\n },\n {\n label: tr('shortcuts.delete', 'Delete'),\n onSelect: () => {\n void handleDelete();\n },\n intent: 'destructive',\n disabled: deleteLoading,\n icon: <Trash2 className=\"size-4\" />,\n },\n ]}\n />\n </div>\n </div>\n\n <PagePurpose className=\"mb-6\">\n {tr(\n 'shortcuts.detailPurpose',\n `This is the \"${shortcut.label}\" shortcut — it fires the \"${shortcut.eventName}\" event when pressed. Review its key bindings (including Mac and Windows/Linux variants), toggle it on or off, or edit it to change the keys or event.`\n )}\n </PagePurpose>\n\n <NextSteps\n storageKey=\"product-shortcut-detail\"\n className=\"mb-6\"\n steps={[\n {\n id: 'edit',\n label: tr('shortcuts.steps.edit', 'Edit this shortcut'),\n description: tr(\n 'shortcuts.steps.editDesc',\n 'Change the key combination, event, category, or per-platform keys.'\n ),\n onClick: () => navigate(`${basePath}/shortcuts/${shortcutId}/edit`),\n },\n {\n id: 'toggle',\n label: shortcut.isEnabled\n ? tr('shortcuts.steps.disable', 'Disable this shortcut')\n : tr('shortcuts.steps.enable', 'Enable this shortcut'),\n description: tr(\n 'shortcuts.steps.toggleDesc',\n 'Turn it on or off without deleting it — useful while testing.'\n ),\n onClick: () => {\n void handleToggle();\n },\n },\n {\n id: 'back',\n label: tr('shortcuts.steps.back', 'Back to all shortcuts'),\n description: tr(\n 'shortcuts.steps.backDesc',\n 'Return to the list to manage the rest of your shortcuts.'\n ),\n onClick: () => navigate(`${basePath}/shortcuts`),\n },\n ]}\n />\n\n {/* Details Grid */}\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-6\">\n {/* Main Info Card — the page's emphasis zone */}\n <EmphasisPanel>\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('shortcuts.shortcutDetails', 'Shortcut Details')}\n </h2>\n\n <dl className=\"space-y-4\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.label', 'Label')}\n </dt>\n <dd className=\"text-text-primary mt-1\">{shortcut.label}</dd>\n </div>\n\n {shortcut.description && (\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.description', 'Description')}\n </dt>\n <dd className=\"text-text-primary mt-1\">{shortcut.description}</dd>\n </div>\n )}\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.shortcutKey', 'Shortcut Key')}\n </dt>\n <dd className=\"mt-1\">\n <ShortcutKeyBadge\n shortcutKey={shortcut.shortcutKey}\n isSequence={shortcut.isSequence}\n />\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.eventName', 'Event Name')}\n </dt>\n <dd className=\"mt-1\">\n <code className=\"text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono\">\n {shortcut.eventName}\n </code>\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.category', 'Category')}\n </dt>\n <dd className=\"mt-1\">\n <ShortcutCategoryBadge category={shortcut.category} />\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.product', 'Product')}\n </dt>\n <dd className=\"text-text-primary mt-1\">\n {shortcut.product?.name || (\n <span className=\"text-text-tertiary italic\">\n {tr('shortcuts.globalAllProducts', 'Global (All Products)')}\n </span>\n )}\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.type', 'Type')}\n </dt>\n <dd className=\"text-text-primary mt-1\">\n {shortcut.isSequence\n ? tr('shortcuts.keySequence', 'Key Sequence')\n : tr('shortcuts.keyCombination', 'Key Combination')}\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.sortOrder', 'Sort Order')}\n </dt>\n <dd className=\"text-text-primary mt-1\">{shortcut.sortOrder}</dd>\n </div>\n </dl>\n </EmphasisPanel>\n\n {/* Platform-Specific Keys Card */}\n <div className=\"bg-bg-surface bg-accent-wash border border-border-seam rounded-card shadow-elevation-1 p-6\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-4\">\n {tr('shortcuts.platformKeys', 'Platform Keys')}\n </h2>\n\n <dl className=\"space-y-4\">\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.defaultKey', 'Default Key')}\n </dt>\n <dd className=\"mt-1\">\n <ShortcutKeyBadge\n shortcutKey={shortcut.shortcutKey}\n isSequence={shortcut.isSequence}\n />\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.macKey', 'Mac Key')}\n </dt>\n <dd className=\"mt-1\">\n {shortcut.macKey ? (\n <ShortcutKeyBadge shortcutKey={shortcut.macKey} />\n ) : (\n <span className=\"text-text-tertiary italic\">\n {tr('shortcuts.sameAsDefault', 'Same as default')}\n </span>\n )}\n </dd>\n </div>\n\n <div>\n <dt className=\"text-sm font-medium text-text-secondary\">\n {tr('shortcuts.windowsLinuxKey', 'Windows/Linux Key')}\n </dt>\n <dd className=\"mt-1\">\n {shortcut.windowsKey ? (\n <ShortcutKeyBadge shortcutKey={shortcut.windowsKey} />\n ) : (\n <span className=\"text-text-tertiary italic\">\n {tr('shortcuts.sameAsDefault', 'Same as default')}\n </span>\n )}\n </dd>\n </div>\n </dl>\n\n <div className=\"mt-6 pt-4 border-t border-border-seam\">\n <h3 className=\"text-sm font-semibold text-text-secondary mb-3\">\n {tr('shortcuts.timestamps', 'Timestamps')}\n </h3>\n <dl className=\"space-y-2 text-sm\">\n <div className=\"flex justify-between\">\n <dt className=\"text-text-tertiary\">{tr('shortcuts.created', 'Created')}</dt>\n <dd className=\"text-text-primary\">\n {new Date(shortcut.createdAt).toLocaleString()}\n </dd>\n </div>\n <div className=\"flex justify-between\">\n <dt className=\"text-text-tertiary\">{tr('shortcuts.updated', 'Updated')}</dt>\n <dd className=\"text-text-primary\">\n {new Date(shortcut.updatedAt).toLocaleString()}\n </dd>\n </div>\n </dl>\n </div>\n </div>\n </div>\n {ConfirmDialog}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAmBA,SAAgB,IAAqB;CACnC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAK,GAAO,EACZ,EAAE,YAAS,qBAAkB,GAAkB,EAC/C,IAAa,KAAM,IAEnB,EAAE,aAAU,YAAS,UAAO,eAAY,EAAY,EAAW,EAC/D,EAAE,mBAAgB,SAAS,MAAkB,GAAmB,EAChE,EAAE,mBAAgB,SAAS,MAAkB,GAAmB,EAEhE,IAAe,YAAY;AAC1B,IAAa,SAAS;EAC3B,IAAM,IAAU,EAAG,2BAA2B,iDAAiD,EACzF,IAAS,MAAM,EAAc;GACjC,OAAO;GACP;GACA,eAAe;GACf,mBAAmB;GACpB,CAAC;AAEA,YAAW,OACP,MAAM,EAAQ;GACZ,OAAO;GACP;GACA,eAAe;GACf,mBAAmB;GACnB,aAAa;GACd,CAAC,GACF,EAGN,KAAI;AAGF,GAFA,MAAM,EAAe,EAAW,EAC3B,EAAa,UAAU,EAC5B,EAAS,GAAG,EAAS,YAAY;WAC1B,GAAO;AAEd,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