@burdenoff/microfe-product 2026.624.2 → 2026.624.3

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 (23) hide show
  1. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +241 -230
  2. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  3. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +292 -281
  4. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  5. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +143 -135
  6. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  7. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +25 -12
  8. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  9. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +94 -86
  10. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  11. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +249 -238
  12. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  13. package/dist/product-management/modules/products/pages/ProductDetailPage.js +406 -395
  14. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  15. package/dist/product-management/modules/products/pages/ProductsListPage.js +285 -274
  16. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  17. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +235 -224
  18. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  19. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +260 -244
  20. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  21. package/dist/product-management/shared/hooks/useConfirmDialog.js +44 -0
  22. package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -0
  23. package/package.json +1 -1
@@ -3,273 +3,284 @@ import { useProductConsole as t } from "../../../providers/ProductConsoleProvide
3
3
  import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
4
4
  import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
5
5
  import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
6
- import { useDeleteShortcut as s, useShortcut as c, useToggleShortcut as l } from "../hooks/useShortcuts.js";
7
- import { ShortcutCategoryBadge as u } from "../components/ShortcutCategoryBadge.js";
8
- import { ShortcutKeyBadge as d } from "../components/ShortcutKeyBadge.js";
9
- import { ArrowLeft as f, SquarePen as p, ToggleLeft as m, ToggleRight as h, Trash2 as g } from "lucide-react";
10
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
11
- import { useParams as b } from "react-router-dom";
6
+ import { useConfirmDialog as s } from "../../../shared/hooks/useConfirmDialog.js";
7
+ import { useDeleteShortcut as c, useShortcut as l, useToggleShortcut as u } from "../hooks/useShortcuts.js";
8
+ import { ShortcutCategoryBadge as d } from "../components/ShortcutCategoryBadge.js";
9
+ import { ShortcutKeyBadge as f } from "../components/ShortcutKeyBadge.js";
10
+ import { ArrowLeft as p, SquarePen as m, ToggleLeft as h, ToggleRight as g, Trash2 as _ } from "lucide-react";
11
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
12
+ import { useParams as x } from "react-router-dom";
12
13
  //#region src/product-management/modules/shortcuts/pages/ShortcutDetailPage.tsx
13
- function x() {
14
- let { id: x } = b(), { navigate: S, basePath: C = "/products" } = t(), w = e(), T = x || "", { shortcut: E, loading: D, error: O, refetch: k } = c(T), { deleteShortcut: A, loading: j } = s(), { toggleShortcut: M, loading: N } = l();
15
- return D ? /* @__PURE__ */ v("div", {
14
+ function S() {
15
+ let { id: S } = x(), { navigate: C, basePath: w = "/products" } = t(), T = e(), { confirm: E, ConfirmDialog: D } = s(), O = S || "", { shortcut: k, loading: A, error: j, refetch: M } = l(O), { deleteShortcut: N, loading: P } = c(), { toggleShortcut: F, loading: I } = u();
16
+ return A ? /* @__PURE__ */ y("div", {
16
17
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
17
- children: /* @__PURE__ */ v(n, { message: w("shortcuts.loadingShortcut", "Loading shortcut...") })
18
- }) : O ? /* @__PURE__ */ v("div", {
18
+ children: /* @__PURE__ */ y(n, { message: T("shortcuts.loadingShortcut", "Loading shortcut...") })
19
+ }) : j ? /* @__PURE__ */ y("div", {
19
20
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
20
- children: /* @__PURE__ */ v(r, {
21
- message: O.message,
21
+ children: /* @__PURE__ */ y(r, {
22
+ message: j.message,
22
23
  action: {
23
- label: w("productCommon.retry", "Retry"),
24
- onClick: () => k()
24
+ label: T("productCommon.retry", "Retry"),
25
+ onClick: () => M()
25
26
  }
26
27
  })
27
- }) : E ? /* @__PURE__ */ y("div", {
28
+ }) : k ? /* @__PURE__ */ b("div", {
28
29
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
29
- children: [/* @__PURE__ */ y("div", {
30
- className: "mb-6",
31
- children: [/* @__PURE__ */ y("button", {
32
- type: "button",
33
- onClick: () => S(`${C}/shortcuts`),
34
- 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 ",
35
- children: [/* @__PURE__ */ v(f, { size: 18 }), w("shortcuts.backToShortcuts", "Back to Shortcuts")]
36
- }), /* @__PURE__ */ y("div", {
37
- className: "flex items-start justify-between",
38
- children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
39
- className: "flex items-center gap-3 mb-2",
40
- children: [/* @__PURE__ */ v("h1", {
41
- className: "text-3xl font-bold text-text-primary",
42
- children: E.label
43
- }), /* @__PURE__ */ v(u, { category: E.category })]
44
- }), /* @__PURE__ */ y("div", {
45
- className: "flex items-center gap-3",
46
- children: [/* @__PURE__ */ v(d, {
47
- shortcutKey: E.shortcutKey,
48
- isSequence: E.isSequence
49
- }), /* @__PURE__ */ v("span", {
50
- className: `
30
+ children: [
31
+ /* @__PURE__ */ b("div", {
32
+ className: "mb-6",
33
+ children: [/* @__PURE__ */ b("button", {
34
+ type: "button",
35
+ onClick: () => C(`${w}/shortcuts`),
36
+ 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 ",
37
+ children: [/* @__PURE__ */ y(p, { size: 18 }), T("shortcuts.backToShortcuts", "Back to Shortcuts")]
38
+ }), /* @__PURE__ */ b("div", {
39
+ className: "flex items-start justify-between",
40
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
41
+ className: "flex items-center gap-3 mb-2",
42
+ children: [/* @__PURE__ */ y("h1", {
43
+ className: "text-3xl font-bold text-text-primary",
44
+ children: k.label
45
+ }), /* @__PURE__ */ y(d, { category: k.category })]
46
+ }), /* @__PURE__ */ b("div", {
47
+ className: "flex items-center gap-3",
48
+ children: [/* @__PURE__ */ y(f, {
49
+ shortcutKey: k.shortcutKey,
50
+ isSequence: k.isSequence
51
+ }), /* @__PURE__ */ y("span", {
52
+ className: `
51
53
  inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium
52
- ${E.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-tertiary"}
54
+ ${k.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-tertiary"}
53
55
  `,
54
- children: E.isEnabled ? w("shortcuts.enabled", "Enabled") : w("shortcuts.disabled", "Disabled")
55
- })]
56
- })] }), /* @__PURE__ */ y("div", {
57
- className: "flex items-center gap-2",
58
- children: [
59
- /* @__PURE__ */ v("button", {
60
- type: "button",
61
- onClick: async () => {
62
- if (E) {
63
- a("medium");
64
- try {
65
- await M(T, !E.isEnabled), k();
66
- } catch (e) {
67
- o("error"), console.error("Failed to toggle shortcut:", e);
56
+ children: k.isEnabled ? T("shortcuts.enabled", "Enabled") : T("shortcuts.disabled", "Disabled")
57
+ })]
58
+ })] }), /* @__PURE__ */ b("div", {
59
+ className: "flex items-center gap-2",
60
+ children: [
61
+ /* @__PURE__ */ y("button", {
62
+ type: "button",
63
+ onClick: async () => {
64
+ if (k) {
65
+ a("medium");
66
+ try {
67
+ await F(O, !k.isEnabled), M();
68
+ } catch (e) {
69
+ o("error"), console.error("Failed to toggle shortcut:", e);
70
+ }
68
71
  }
69
- }
70
- },
71
- disabled: N,
72
- className: `
72
+ },
73
+ disabled: I,
74
+ className: `
73
75
  inline-flex items-center gap-2 px-4 py-2
74
76
  rounded-lg
75
77
  transition-all duration-200
76
78
  font-medium
77
79
  disabled:opacity-50
78
- ${E.isEnabled ? "bg-surface text-text-primary border border-default hover:bg-bg-sunken" : "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border border-[var(--color-status-success)] hover:bg-[var(--color-status-success)] hover:text-white"}
80
+ ${k.isEnabled ? "bg-surface text-text-primary border border-default hover:bg-bg-sunken" : "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border border-[var(--color-status-success)] hover:bg-[var(--color-status-success)] hover:text-white"}
79
81
  `,
80
- children: E.isEnabled ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(m, { size: 18 }), w("shortcuts.disable", "Disable")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(h, { size: 18 }), w("shortcuts.enable", "Enable")] })
81
- }),
82
- /* @__PURE__ */ y("button", {
83
- type: "button",
84
- onClick: () => S(`${C}/shortcuts/${T}/edit`),
85
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
86
- children: [/* @__PURE__ */ v(p, { size: 18 }), w("shortcuts.edit", "Edit")]
87
- }),
88
- /* @__PURE__ */ y("button", {
89
- type: "button",
90
- onClick: async () => {
91
- a("medium");
92
- let e = w("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
93
- title: "Delete shortcut",
94
- message: e,
95
- okButtonTitle: "Delete",
96
- cancelButtonTitle: "Cancel"
97
- });
98
- if (t === null ? window.confirm(e) : t) try {
99
- await A(T), o("success"), S(`${C}/shortcuts`);
100
- } catch (e) {
101
- o("error"), console.error("Failed to delete shortcut:", e);
102
- }
103
- },
104
- disabled: j,
105
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error)]\n rounded-lg\n hover:bg-[var(--color-status-error)] hover:text-white\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
106
- children: [/* @__PURE__ */ v(g, { size: 18 }), w("shortcuts.delete", "Delete")]
107
- })
108
- ]
109
- })]
110
- })]
111
- }), /* @__PURE__ */ y("div", {
112
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
113
- children: [/* @__PURE__ */ y("div", {
114
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
115
- children: [/* @__PURE__ */ v("h2", {
116
- className: "text-lg font-semibold text-text-primary mb-4",
117
- children: w("shortcuts.shortcutDetails", "Shortcut Details")
118
- }), /* @__PURE__ */ y("dl", {
119
- className: "space-y-4",
120
- children: [
121
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
122
- className: "text-sm font-medium text-text-secondary",
123
- children: w("shortcuts.label", "Label")
124
- }), /* @__PURE__ */ v("dd", {
125
- className: "text-text-primary mt-1",
126
- children: E.label
127
- })] }),
128
- E.description && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
129
- className: "text-sm font-medium text-text-secondary",
130
- children: w("shortcuts.description", "Description")
131
- }), /* @__PURE__ */ v("dd", {
132
- className: "text-text-primary mt-1",
133
- children: E.description
134
- })] }),
135
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
136
- className: "text-sm font-medium text-text-secondary",
137
- children: w("shortcuts.shortcutKey", "Shortcut Key")
138
- }), /* @__PURE__ */ v("dd", {
139
- className: "mt-1",
140
- children: /* @__PURE__ */ v(d, {
141
- shortcutKey: E.shortcutKey,
142
- isSequence: E.isSequence
143
- })
144
- })] }),
145
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
146
- className: "text-sm font-medium text-text-secondary",
147
- children: w("shortcuts.eventName", "Event Name")
148
- }), /* @__PURE__ */ v("dd", {
149
- className: "mt-1",
150
- children: /* @__PURE__ */ v("code", {
151
- className: "text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono",
152
- children: E.eventName
153
- })
154
- })] }),
155
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
156
- className: "text-sm font-medium text-text-secondary",
157
- children: w("shortcuts.category", "Category")
158
- }), /* @__PURE__ */ v("dd", {
159
- className: "mt-1",
160
- children: /* @__PURE__ */ v(u, { category: E.category })
161
- })] }),
162
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
163
- className: "text-sm font-medium text-text-secondary",
164
- children: w("shortcuts.product", "Product")
165
- }), /* @__PURE__ */ v("dd", {
166
- className: "text-text-primary mt-1",
167
- children: E.product?.name || /* @__PURE__ */ v("span", {
168
- className: "text-text-tertiary italic",
169
- children: w("shortcuts.globalAllProducts", "Global (All Products)")
82
+ children: k.isEnabled ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(h, { size: 18 }), T("shortcuts.disable", "Disable")] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(g, { size: 18 }), T("shortcuts.enable", "Enable")] })
83
+ }),
84
+ /* @__PURE__ */ b("button", {
85
+ type: "button",
86
+ onClick: () => C(`${w}/shortcuts/${O}/edit`),
87
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
88
+ children: [/* @__PURE__ */ y(m, { size: 18 }), T("shortcuts.edit", "Edit")]
89
+ }),
90
+ /* @__PURE__ */ b("button", {
91
+ type: "button",
92
+ onClick: async () => {
93
+ a("medium");
94
+ let e = T("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
95
+ title: "Delete shortcut",
96
+ message: e,
97
+ okButtonTitle: "Delete",
98
+ cancelButtonTitle: "Cancel"
99
+ });
100
+ if (t === null ? await E({
101
+ title: "Delete shortcut",
102
+ message: e,
103
+ okButtonTitle: "Delete",
104
+ cancelButtonTitle: "Cancel",
105
+ destructive: !0
106
+ }) : t) try {
107
+ await N(O), o("success"), C(`${w}/shortcuts`);
108
+ } catch (e) {
109
+ o("error"), console.error("Failed to delete shortcut:", e);
110
+ }
111
+ },
112
+ disabled: P,
113
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error)]\n rounded-lg\n hover:bg-[var(--color-status-error)] hover:text-white\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
114
+ children: [/* @__PURE__ */ y(_, { size: 18 }), T("shortcuts.delete", "Delete")]
170
115
  })
171
- })] }),
172
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
173
- className: "text-sm font-medium text-text-secondary",
174
- children: w("shortcuts.type", "Type")
175
- }), /* @__PURE__ */ v("dd", {
176
- className: "text-text-primary mt-1",
177
- children: E.isSequence ? w("shortcuts.keySequence", "Key Sequence") : w("shortcuts.keyCombination", "Key Combination")
178
- })] }),
179
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
180
- className: "text-sm font-medium text-text-secondary",
181
- children: w("shortcuts.sortOrder", "Sort Order")
182
- }), /* @__PURE__ */ v("dd", {
183
- className: "text-text-primary mt-1",
184
- children: E.sortOrder
185
- })] })
186
- ]
116
+ ]
117
+ })]
187
118
  })]
188
- }), /* @__PURE__ */ y("div", {
189
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
190
- children: [
191
- /* @__PURE__ */ v("h2", {
119
+ }),
120
+ /* @__PURE__ */ b("div", {
121
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
122
+ children: [/* @__PURE__ */ b("div", {
123
+ className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
124
+ children: [/* @__PURE__ */ y("h2", {
192
125
  className: "text-lg font-semibold text-text-primary mb-4",
193
- children: w("shortcuts.platformKeys", "Platform Keys")
194
- }),
195
- /* @__PURE__ */ y("dl", {
126
+ children: T("shortcuts.shortcutDetails", "Shortcut Details")
127
+ }), /* @__PURE__ */ b("dl", {
196
128
  className: "space-y-4",
197
129
  children: [
198
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
130
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
131
+ className: "text-sm font-medium text-text-secondary",
132
+ children: T("shortcuts.label", "Label")
133
+ }), /* @__PURE__ */ y("dd", {
134
+ className: "text-text-primary mt-1",
135
+ children: k.label
136
+ })] }),
137
+ k.description && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
199
138
  className: "text-sm font-medium text-text-secondary",
200
- children: w("shortcuts.defaultKey", "Default Key")
201
- }), /* @__PURE__ */ v("dd", {
139
+ children: T("shortcuts.description", "Description")
140
+ }), /* @__PURE__ */ y("dd", {
141
+ className: "text-text-primary mt-1",
142
+ children: k.description
143
+ })] }),
144
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
145
+ className: "text-sm font-medium text-text-secondary",
146
+ children: T("shortcuts.shortcutKey", "Shortcut Key")
147
+ }), /* @__PURE__ */ y("dd", {
202
148
  className: "mt-1",
203
- children: /* @__PURE__ */ v(d, {
204
- shortcutKey: E.shortcutKey,
205
- isSequence: E.isSequence
149
+ children: /* @__PURE__ */ y(f, {
150
+ shortcutKey: k.shortcutKey,
151
+ isSequence: k.isSequence
206
152
  })
207
153
  })] }),
208
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
154
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
209
155
  className: "text-sm font-medium text-text-secondary",
210
- children: w("shortcuts.macKey", "Mac Key")
211
- }), /* @__PURE__ */ v("dd", {
156
+ children: T("shortcuts.eventName", "Event Name")
157
+ }), /* @__PURE__ */ y("dd", {
212
158
  className: "mt-1",
213
- children: E.macKey ? /* @__PURE__ */ v(d, { shortcutKey: E.macKey }) : /* @__PURE__ */ v("span", {
214
- className: "text-text-tertiary italic",
215
- children: w("shortcuts.sameAsDefault", "Same as default")
159
+ children: /* @__PURE__ */ y("code", {
160
+ className: "text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono",
161
+ children: k.eventName
216
162
  })
217
163
  })] }),
218
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
164
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
219
165
  className: "text-sm font-medium text-text-secondary",
220
- children: w("shortcuts.windowsLinuxKey", "Windows/Linux Key")
221
- }), /* @__PURE__ */ v("dd", {
166
+ children: T("shortcuts.category", "Category")
167
+ }), /* @__PURE__ */ y("dd", {
222
168
  className: "mt-1",
223
- children: E.windowsKey ? /* @__PURE__ */ v(d, { shortcutKey: E.windowsKey }) : /* @__PURE__ */ v("span", {
169
+ children: /* @__PURE__ */ y(d, { category: k.category })
170
+ })] }),
171
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
172
+ className: "text-sm font-medium text-text-secondary",
173
+ children: T("shortcuts.product", "Product")
174
+ }), /* @__PURE__ */ y("dd", {
175
+ className: "text-text-primary mt-1",
176
+ children: k.product?.name || /* @__PURE__ */ y("span", {
224
177
  className: "text-text-tertiary italic",
225
- children: w("shortcuts.sameAsDefault", "Same as default")
178
+ children: T("shortcuts.globalAllProducts", "Global (All Products)")
226
179
  })
180
+ })] }),
181
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
182
+ className: "text-sm font-medium text-text-secondary",
183
+ children: T("shortcuts.type", "Type")
184
+ }), /* @__PURE__ */ y("dd", {
185
+ className: "text-text-primary mt-1",
186
+ children: k.isSequence ? T("shortcuts.keySequence", "Key Sequence") : T("shortcuts.keyCombination", "Key Combination")
187
+ })] }),
188
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
189
+ className: "text-sm font-medium text-text-secondary",
190
+ children: T("shortcuts.sortOrder", "Sort Order")
191
+ }), /* @__PURE__ */ y("dd", {
192
+ className: "text-text-primary mt-1",
193
+ children: k.sortOrder
227
194
  })] })
228
195
  ]
229
- }),
230
- /* @__PURE__ */ y("div", {
231
- className: "mt-6 pt-4 border-t border-default",
232
- children: [/* @__PURE__ */ v("h3", {
233
- className: "text-sm font-semibold text-text-secondary mb-3",
234
- children: w("shortcuts.timestamps", "Timestamps")
235
- }), /* @__PURE__ */ y("dl", {
236
- className: "space-y-2 text-sm",
237
- children: [/* @__PURE__ */ y("div", {
238
- className: "flex justify-between",
239
- children: [/* @__PURE__ */ v("dt", {
240
- className: "text-text-tertiary",
241
- children: w("shortcuts.created", "Created")
242
- }), /* @__PURE__ */ v("dd", {
243
- className: "text-text-primary",
244
- children: new Date(E.createdAt).toLocaleString()
245
- })]
246
- }), /* @__PURE__ */ y("div", {
247
- className: "flex justify-between",
248
- children: [/* @__PURE__ */ v("dt", {
249
- className: "text-text-tertiary",
250
- children: w("shortcuts.updated", "Updated")
251
- }), /* @__PURE__ */ v("dd", {
252
- className: "text-text-primary",
253
- children: new Date(E.updatedAt).toLocaleString()
196
+ })]
197
+ }), /* @__PURE__ */ b("div", {
198
+ className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
199
+ children: [
200
+ /* @__PURE__ */ y("h2", {
201
+ className: "text-lg font-semibold text-text-primary mb-4",
202
+ children: T("shortcuts.platformKeys", "Platform Keys")
203
+ }),
204
+ /* @__PURE__ */ b("dl", {
205
+ className: "space-y-4",
206
+ children: [
207
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
208
+ className: "text-sm font-medium text-text-secondary",
209
+ children: T("shortcuts.defaultKey", "Default Key")
210
+ }), /* @__PURE__ */ y("dd", {
211
+ className: "mt-1",
212
+ children: /* @__PURE__ */ y(f, {
213
+ shortcutKey: k.shortcutKey,
214
+ isSequence: k.isSequence
215
+ })
216
+ })] }),
217
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
218
+ className: "text-sm font-medium text-text-secondary",
219
+ children: T("shortcuts.macKey", "Mac Key")
220
+ }), /* @__PURE__ */ y("dd", {
221
+ className: "mt-1",
222
+ children: k.macKey ? /* @__PURE__ */ y(f, { shortcutKey: k.macKey }) : /* @__PURE__ */ y("span", {
223
+ className: "text-text-tertiary italic",
224
+ children: T("shortcuts.sameAsDefault", "Same as default")
225
+ })
226
+ })] }),
227
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
228
+ className: "text-sm font-medium text-text-secondary",
229
+ children: T("shortcuts.windowsLinuxKey", "Windows/Linux Key")
230
+ }), /* @__PURE__ */ y("dd", {
231
+ className: "mt-1",
232
+ children: k.windowsKey ? /* @__PURE__ */ y(f, { shortcutKey: k.windowsKey }) : /* @__PURE__ */ y("span", {
233
+ className: "text-text-tertiary italic",
234
+ children: T("shortcuts.sameAsDefault", "Same as default")
235
+ })
236
+ })] })
237
+ ]
238
+ }),
239
+ /* @__PURE__ */ b("div", {
240
+ className: "mt-6 pt-4 border-t border-default",
241
+ children: [/* @__PURE__ */ y("h3", {
242
+ className: "text-sm font-semibold text-text-secondary mb-3",
243
+ children: T("shortcuts.timestamps", "Timestamps")
244
+ }), /* @__PURE__ */ b("dl", {
245
+ className: "space-y-2 text-sm",
246
+ children: [/* @__PURE__ */ b("div", {
247
+ className: "flex justify-between",
248
+ children: [/* @__PURE__ */ y("dt", {
249
+ className: "text-text-tertiary",
250
+ children: T("shortcuts.created", "Created")
251
+ }), /* @__PURE__ */ y("dd", {
252
+ className: "text-text-primary",
253
+ children: new Date(k.createdAt).toLocaleString()
254
+ })]
255
+ }), /* @__PURE__ */ b("div", {
256
+ className: "flex justify-between",
257
+ children: [/* @__PURE__ */ y("dt", {
258
+ className: "text-text-tertiary",
259
+ children: T("shortcuts.updated", "Updated")
260
+ }), /* @__PURE__ */ y("dd", {
261
+ className: "text-text-primary",
262
+ children: new Date(k.updatedAt).toLocaleString()
263
+ })]
254
264
  })]
255
265
  })]
256
- })]
257
- })
258
- ]
259
- })]
260
- })]
261
- }) : /* @__PURE__ */ v("div", {
266
+ })
267
+ ]
268
+ })]
269
+ }),
270
+ D
271
+ ]
272
+ }) : /* @__PURE__ */ y("div", {
262
273
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
263
- children: /* @__PURE__ */ v(r, {
264
- message: w("shortcuts.shortcutNotFound", "Shortcut not found"),
274
+ children: /* @__PURE__ */ y(r, {
275
+ message: T("shortcuts.shortcutNotFound", "Shortcut not found"),
265
276
  action: {
266
- label: w("shortcuts.goBack", "Go Back"),
267
- onClick: () => S(`${C}/shortcuts`)
277
+ label: T("shortcuts.goBack", "Go Back"),
278
+ onClick: () => C(`${w}/shortcuts`)
268
279
  }
269
280
  })
270
281
  });
271
282
  }
272
283
  //#endregion
273
- export { x as ShortcutDetailPage };
284
+ export { S as ShortcutDetailPage };
274
285
 
275
286
  //# 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 { 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';\n\nexport function ShortcutDetailPage() {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath = '/products' } = useProductConsole();\n const tr = useTr();\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 = native === null ? window.confirm(message) : 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 items-start justify-between\">\n <div>\n <div className=\"flex items-center gap-3 mb-2\">\n <h1 className=\"text-3xl font-bold text-text-primary\">{shortcut.label}</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 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 ? tr('shortcuts.enabled', 'Enabled')\n : tr('shortcuts.disabled', 'Disabled')}\n </span>\n </div>\n </div>\n\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={handleToggle}\n disabled={toggleLoading}\n className={`\n inline-flex items-center gap-2 px-4 py-2\n rounded-lg\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ${\n shortcut.isEnabled\n ? 'bg-surface text-text-primary border border-default hover:bg-bg-sunken'\n : 'bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border border-[var(--color-status-success)] hover:bg-[var(--color-status-success)] hover:text-white'\n }\n `}\n >\n {shortcut.isEnabled ? (\n <>\n <ToggleLeft size={18} />\n {tr('shortcuts.disable', 'Disable')}\n </>\n ) : (\n <>\n <ToggleRight size={18} />\n {tr('shortcuts.enable', 'Enable')}\n </>\n )}\n </button>\n\n <button\n type=\"button\"\n onClick={() => navigate(`${basePath}/shortcuts/${shortcutId}/edit`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n \"\n >\n <SquarePen size={18} />\n {tr('shortcuts.edit', 'Edit')}\n </button>\n\n <button\n type=\"button\"\n onClick={handleDelete}\n disabled={deleteLoading}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error)]\n rounded-lg\n hover:bg-[var(--color-status-error)] hover:text-white\n transition-all duration-200\n font-medium\n disabled:opacity-50\n \"\n >\n <Trash2 size={18} />\n {tr('shortcuts.delete', 'Delete')}\n </button>\n </div>\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-surface border border-default rounded-lg shadow-[var(--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-surface border border-default rounded-lg shadow-[var(--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-default\">\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 </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAWA,SAAgB,IAAqB;CACnC,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAK,GAAO,EACZ,IAAa,KAAM,IAEnB,EAAE,aAAU,YAAS,UAAO,eAAY,EAAY,EAAW,EAC/D,EA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AAD;QAAI,WAAU;kBACX,EAAG,6BAA6B,oBAAoB;QAClD,CAAA,EACL,kBAAC,MAAD;QAAI,WAAU;kBACX,EAAS,aACR,kBAAC,GAAD,EAAkB,aAAa,EAAS,YAAc,CAAA,GAEtD,kBAAC,QAAD;SAAM,WAAU;mBACb,EAAG,2BAA2B,kBAAkB;SAC5C,CAAA;QAEN,CAAA,CACD,EAAA,CAAA;OACH;;KAEL,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,MAAD;OAAI,WAAU;iBACX,EAAG,wBAAwB,aAAa;OACtC,CAAA,EACL,kBAAC,MAAD;OAAI,WAAU;iBAAd,CACE,kBAAC,OAAD;QAAK,WAAU;kBAAf,CACE,kBAAC,MAAD;SAAI,WAAU;mBAAsB,EAAG,qBAAqB,UAAU;SAAM,CAAA,EAC5E,kBAAC,MAAD;SAAI,WAAU;mBACX,IAAI,KAAK,EAAS,UAAU,CAAC,gBAAgB;SAC3C,CAAA,CACD;WACN,kBAAC,OAAD;QAAK,WAAU;kBAAf,CACE,kBAAC,MAAD;SAAI,WAAU;mBAAsB,EAAG,qBAAqB,UAAU;SAAM,CAAA,EAC5E,kBAAC,MAAD;SAAI,WAAU;mBACX,IAAI,KAAK,EAAS,UAAU,CAAC,gBAAgB;SAC3C,CAAA,CACD;UACH;SACD;;KACF;MACF;KACF;MAlSJ,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 { 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 items-start justify-between\">\n <div>\n <div className=\"flex items-center gap-3 mb-2\">\n <h1 className=\"text-3xl font-bold text-text-primary\">{shortcut.label}</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 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 ? tr('shortcuts.enabled', 'Enabled')\n : tr('shortcuts.disabled', 'Disabled')}\n </span>\n </div>\n </div>\n\n <div className=\"flex items-center gap-2\">\n <button\n type=\"button\"\n onClick={handleToggle}\n disabled={toggleLoading}\n className={`\n inline-flex items-center gap-2 px-4 py-2\n rounded-lg\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ${\n shortcut.isEnabled\n ? 'bg-surface text-text-primary border border-default hover:bg-bg-sunken'\n : 'bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border border-[var(--color-status-success)] hover:bg-[var(--color-status-success)] hover:text-white'\n }\n `}\n >\n {shortcut.isEnabled ? (\n <>\n <ToggleLeft size={18} />\n {tr('shortcuts.disable', 'Disable')}\n </>\n ) : (\n <>\n <ToggleRight size={18} />\n {tr('shortcuts.enable', 'Enable')}\n </>\n )}\n </button>\n\n <button\n type=\"button\"\n onClick={() => navigate(`${basePath}/shortcuts/${shortcutId}/edit`)}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n \"\n >\n <SquarePen size={18} />\n {tr('shortcuts.edit', 'Edit')}\n </button>\n\n <button\n type=\"button\"\n onClick={handleDelete}\n disabled={deleteLoading}\n className=\"\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error)]\n rounded-lg\n hover:bg-[var(--color-status-error)] hover:text-white\n transition-all duration-200\n font-medium\n disabled:opacity-50\n \"\n >\n <Trash2 size={18} />\n {tr('shortcuts.delete', 'Delete')}\n </button>\n </div>\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-surface border border-default rounded-lg shadow-[var(--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-surface border border-default rounded-lg shadow-[var(--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-default\">\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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