@burdenoff/microfe-product 2026.624.3 → 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 (63) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +41 -36
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +63 -50
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +220 -178
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +7 -7
  8. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  9. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +28 -26
  10. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  11. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +119 -90
  12. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  13. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +33 -31
  14. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  15. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +171 -161
  16. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  17. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
  18. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
  19. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +26 -24
  20. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  21. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +152 -125
  22. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  23. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +36 -34
  24. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  25. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +144 -136
  26. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  27. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
  28. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
  29. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +28 -26
  30. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  31. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +111 -84
  32. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  33. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +33 -31
  34. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  35. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +85 -75
  36. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  37. package/dist/product-management/modules/products/components/ProductForm.js +8 -8
  38. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  39. package/dist/product-management/modules/products/components/ProductPlans.js +136 -147
  40. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  41. package/dist/product-management/modules/products/pages/ProductCreatePage.js +28 -26
  42. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  43. package/dist/product-management/modules/products/pages/ProductDetailPage.js +170 -140
  44. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  45. package/dist/product-management/modules/products/pages/ProductEditPage.js +32 -30
  46. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  47. package/dist/product-management/modules/products/pages/ProductsListPage.js +219 -202
  48. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  49. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +3 -3
  50. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  51. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +28 -23
  52. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  53. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +228 -209
  54. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  55. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +31 -26
  56. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  57. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +209 -198
  58. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  59. package/dist/product-management/shared/components/AuditHistoryTab.js +19 -17
  60. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  61. package/dist/product-management/shared/components/feedback/EmptyState.js +2 -20
  62. package/package.json +2 -2
  63. package/dist/product-management/shared/components/feedback/EmptyState.js.map +0 -1
@@ -1,301 +1,312 @@
1
1
  import { useTr as e } from "../../../shared/hooks/useTr.js";
2
2
  import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
3
3
  import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
4
- import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
5
- import { SearchInput as i } from "../../../shared/components/input/SearchInput.js";
6
- import { nativeConfirm as a, nativeImpact as o, nativeNotify as s } from "../../../../utils/nativeBridge.js";
7
- import { useConfirmDialog as c } from "../../../shared/hooks/useConfirmDialog.js";
8
- import { useDebounced as l } from "../../../shared/hooks/useDebounced.js";
9
- import { useDeleteShortcut as u, useSeedDefaultShortcuts as d, useShortcuts as f, useToggleShortcut as p } from "../hooks/useShortcuts.js";
10
- import { ShortcutCategories as m } from "../types/index.js";
11
- import { ShortcutCategoryBadge as h } from "../components/ShortcutCategoryBadge.js";
12
- import { ShortcutKeyBadge as g } from "../components/ShortcutKeyBadge.js";
13
- import { useState as _ } from "react";
14
- import { Eye as v, Plus as y, RefreshCw as b, Sparkles as x, SquarePen as S, ToggleLeft as C, ToggleRight as w, Trash2 as T } from "lucide-react";
15
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
16
- import { PermissionGate as O } from "@burdenoff/fe-libs/shared/components";
4
+ import { ErrorState as ee } from "../../../shared/components/feedback/ErrorState.js";
5
+ import { SearchInput as r } from "../../../shared/components/input/SearchInput.js";
6
+ import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
7
+ import { useConfirmDialog as s } from "../../../shared/hooks/useConfirmDialog.js";
8
+ import { useDebounced as c } from "../../../shared/hooks/useDebounced.js";
9
+ import { useDeleteShortcut as l, useSeedDefaultShortcuts as u, useShortcuts as d, useToggleShortcut as f } from "../hooks/useShortcuts.js";
10
+ import { ShortcutCategories as p } from "../types/index.js";
11
+ import { ShortcutCategoryBadge as m } from "../components/ShortcutCategoryBadge.js";
12
+ import { ShortcutKeyBadge as h } from "../components/ShortcutKeyBadge.js";
13
+ import { useState as g } from "react";
14
+ import { Eye as _, Plus as v, RefreshCw as te, Sparkles as y, SquarePen as b, ToggleLeft as x, ToggleRight as S, Trash2 as C } from "lucide-react";
15
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
16
+ import { PermissionGate as E } from "@burdenoff/fe-libs/shared/components";
17
+ import { Button as D, CTAOverflowMenu as O, GlassCard as k, GradientText as A, IllustratedEmptyState as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
17
18
  //#region src/product-management/modules/shortcuts/pages/ShortcutsListPage.tsx
18
- function k() {
19
- let { navigate: k, basePath: A = "/products" } = t(), j = e(), { confirm: M, ConfirmDialog: N } = c(), [P, F] = _(""), I = l(P, 300), [L, R] = _({}), { shortcuts: z, loading: B, error: V, refetch: H } = f({
20
- ...L,
21
- search: I || void 0
22
- }, { limit: 50 }), { deleteShortcut: U, loading: W } = u(), { toggleShortcut: G, loading: K } = p(), { seedDefaultShortcuts: q, loading: J } = d(), Y = async (e) => {
23
- o("medium");
24
- let t = j("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), n = await a({
19
+ function N() {
20
+ let { navigate: N, basePath: P = "/products" } = t(), F = e(), { confirm: I, ConfirmDialog: L } = s(), [R, z] = g(""), B = c(R, 300), [V, H] = g({}), { shortcuts: U, loading: W, error: G, refetch: K } = d({
21
+ ...V,
22
+ search: B || void 0
23
+ }, { limit: 50 }), { deleteShortcut: q, loading: J } = l(), { toggleShortcut: Y, loading: X } = f(), { seedDefaultShortcuts: Z, loading: Q } = u(), ne = async (e) => {
24
+ a("medium");
25
+ let t = F("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), n = await i({
25
26
  title: "Delete shortcut",
26
27
  message: t,
27
28
  okButtonTitle: "Delete",
28
29
  cancelButtonTitle: "Cancel"
29
30
  });
30
- if (n === null ? await M({
31
+ if (n === null ? await I({
31
32
  title: "Delete shortcut",
32
33
  message: t,
33
34
  okButtonTitle: "Delete",
34
35
  cancelButtonTitle: "Cancel",
35
36
  destructive: !0
36
37
  }) : n) try {
37
- await U(e), s("success"), H();
38
+ await q(e), o("success"), K();
38
39
  } catch (e) {
39
- s("error"), console.error("Failed to delete shortcut:", e);
40
+ o("error"), console.error("Failed to delete shortcut:", e);
40
41
  }
41
- }, X = async (e, t) => {
42
- o("medium");
42
+ }, re = async (e, t) => {
43
+ a("medium");
43
44
  try {
44
- await G(e, !t), H();
45
+ await Y(e, !t), K();
45
46
  } catch (e) {
46
- s("error"), console.error("Failed to toggle shortcut:", e);
47
+ o("error"), console.error("Failed to toggle shortcut:", e);
47
48
  }
48
- }, Z = async () => {
49
- o("light");
50
- let e = j("shortcuts.confirmSeedDefaults", "This will create default global shortcuts. Continue?"), t = await a({
49
+ }, $ = async () => {
50
+ a("light");
51
+ let e = F("shortcuts.confirmSeedDefaults", "This will create default global shortcuts. Continue?"), t = await i({
51
52
  title: "Seed defaults",
52
53
  message: e,
53
54
  okButtonTitle: "Continue",
54
55
  cancelButtonTitle: "Cancel"
55
56
  });
56
- if (t === null ? await M({
57
+ if (t === null ? await I({
57
58
  title: "Seed defaults",
58
59
  message: e,
59
60
  okButtonTitle: "Continue",
60
61
  cancelButtonTitle: "Cancel"
61
62
  }) : t) try {
62
- let e = (await q()).data?.seedDefaultShortcuts || 0;
63
- s("success"), alert(`Created ${e} default shortcuts.`), H();
63
+ let e = (await Z()).data?.seedDefaultShortcuts || 0;
64
+ o("success"), alert(`Created ${e} default shortcuts.`), K();
64
65
  } catch (e) {
65
- s("error"), console.error("Failed to seed shortcuts:", e);
66
+ o("error"), console.error("Failed to seed shortcuts:", e);
66
67
  }
67
68
  };
68
- return /* @__PURE__ */ D("div", {
69
+ return /* @__PURE__ */ T("div", {
69
70
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
70
71
  children: [
71
- /* @__PURE__ */ D("div", {
72
+ /* @__PURE__ */ T("div", {
72
73
  className: "mb-6",
73
- children: [/* @__PURE__ */ D("div", {
74
- className: "flex items-center justify-between mb-4",
75
- children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h1", {
76
- className: "text-3xl font-bold text-text-primary mb-2",
77
- children: j("shortcuts.title", "Keyboard Shortcuts")
78
- }), /* @__PURE__ */ E("p", {
79
- className: "text-text-secondary",
80
- children: j("shortcuts.subtitle", "Manage keyboard shortcuts across all Burdenoff products")
81
- })] }), /* @__PURE__ */ E(O, {
82
- role: "super_admin",
83
- children: /* @__PURE__ */ D("div", {
84
- className: "flex items-center gap-2",
85
- children: [/* @__PURE__ */ D("button", {
86
- type: "button",
87
- onClick: Z,
88
- disabled: J,
89
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
90
- children: [/* @__PURE__ */ E(x, { size: 18 }), j("shortcuts.seedDefaults", "Seed Defaults")]
91
- }), /* @__PURE__ */ D("button", {
92
- type: "button",
93
- onClick: () => k(`${A}/shortcuts/new`),
94
- 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 ",
95
- children: [/* @__PURE__ */ E(y, { size: 20 }), j("shortcuts.createShortcut", "Create Shortcut")]
96
- })]
97
- })
98
- })]
99
- }), /* @__PURE__ */ D("div", {
100
- className: "flex gap-4",
101
- children: [
102
- /* @__PURE__ */ E(i, {
103
- value: P,
104
- onChange: F,
105
- placeholder: j("shortcuts.searchPlaceholder", "Search shortcuts..."),
106
- className: "flex-1"
107
- }),
108
- /* @__PURE__ */ D("select", {
109
- value: L.category || "",
110
- onChange: (e) => R({
111
- ...L,
112
- category: e.target.value || void 0
113
- }),
114
- className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
115
- children: [/* @__PURE__ */ E("option", {
116
- value: "",
117
- children: j("shortcuts.allCategories", "All Categories")
118
- }), Object.values(m).map((e) => /* @__PURE__ */ E("option", {
119
- value: e,
120
- children: e
121
- }, e))]
122
- }),
123
- /* @__PURE__ */ D("select", {
124
- value: L.isEnabled === void 0 || L.isEnabled === null ? "" : L.isEnabled.toString(),
125
- onChange: (e) => R({
126
- ...L,
127
- isEnabled: e.target.value === "" ? void 0 : e.target.value === "true"
74
+ children: [
75
+ /* @__PURE__ */ T("div", {
76
+ className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",
77
+ children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
78
+ className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary mb-2",
79
+ children: /* @__PURE__ */ w(A, { children: F("shortcuts.title", "Keyboard Shortcuts") })
80
+ }), /* @__PURE__ */ w("p", {
81
+ className: "text-text-secondary",
82
+ children: F("shortcuts.subtitle", "Manage keyboard shortcuts across all Burdenoff products")
83
+ })] }), /* @__PURE__ */ w(E, {
84
+ role: "super_admin",
85
+ children: /* @__PURE__ */ w(O, {
86
+ primary: {
87
+ label: F("shortcuts.createShortcut", "Create Shortcut"),
88
+ onSelect: () => N(`${P}/shortcuts/new`),
89
+ icon: /* @__PURE__ */ w(v, { className: "size-4" })
90
+ },
91
+ actions: [{
92
+ label: F("shortcuts.seedDefaults", "Seed Defaults"),
93
+ onSelect: () => {
94
+ $();
95
+ },
96
+ disabled: Q,
97
+ icon: /* @__PURE__ */ w(y, { className: "size-4" })
98
+ }]
99
+ })
100
+ })]
101
+ }),
102
+ /* @__PURE__ */ w(M, {
103
+ className: "mb-4",
104
+ children: F("shortcuts.purpose", "Keyboard shortcuts map a key combination to an in-app event so power users can move fast. Define product-specific or global shortcuts, enable or disable them on the fly, and use \"Seed Defaults\" to load the standard set in one click.")
105
+ }),
106
+ /* @__PURE__ */ T("div", {
107
+ className: "flex gap-4",
108
+ children: [
109
+ /* @__PURE__ */ w(r, {
110
+ value: R,
111
+ onChange: z,
112
+ placeholder: F("shortcuts.searchPlaceholder", "Search shortcuts..."),
113
+ className: "flex-1"
128
114
  }),
129
- className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
130
- children: [
131
- /* @__PURE__ */ E("option", {
132
- value: "",
133
- children: j("shortcuts.allStatus", "All Status")
115
+ /* @__PURE__ */ T("select", {
116
+ value: V.category || "",
117
+ onChange: (e) => H({
118
+ ...V,
119
+ category: e.target.value || void 0
134
120
  }),
135
- /* @__PURE__ */ E("option", {
136
- value: "true",
137
- children: j("shortcuts.enabled", "Enabled")
121
+ className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
122
+ children: [/* @__PURE__ */ w("option", {
123
+ value: "",
124
+ children: F("shortcuts.allCategories", "All Categories")
125
+ }), Object.values(p).map((e) => /* @__PURE__ */ w("option", {
126
+ value: e,
127
+ children: e
128
+ }, e))]
129
+ }),
130
+ /* @__PURE__ */ T("select", {
131
+ value: V.isEnabled === void 0 || V.isEnabled === null ? "" : V.isEnabled.toString(),
132
+ onChange: (e) => H({
133
+ ...V,
134
+ isEnabled: e.target.value === "" ? void 0 : e.target.value === "true"
138
135
  }),
139
- /* @__PURE__ */ E("option", {
140
- value: "false",
141
- children: j("shortcuts.disabled", "Disabled")
142
- })
143
- ]
144
- }),
145
- /* @__PURE__ */ E("button", {
146
- type: "button",
147
- onClick: () => H(),
148
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
149
- children: /* @__PURE__ */ E(b, { size: 18 })
150
- })
151
- ]
152
- })]
136
+ className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
137
+ children: [
138
+ /* @__PURE__ */ w("option", {
139
+ value: "",
140
+ children: F("shortcuts.allStatus", "All Status")
141
+ }),
142
+ /* @__PURE__ */ w("option", {
143
+ value: "true",
144
+ children: F("shortcuts.enabled", "Enabled")
145
+ }),
146
+ /* @__PURE__ */ w("option", {
147
+ value: "false",
148
+ children: F("shortcuts.disabled", "Disabled")
149
+ })
150
+ ]
151
+ }),
152
+ /* @__PURE__ */ w("button", {
153
+ type: "button",
154
+ onClick: () => K(),
155
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
156
+ children: /* @__PURE__ */ w(te, { size: 18 })
157
+ })
158
+ ]
159
+ })
160
+ ]
153
161
  }),
154
- V ? /* @__PURE__ */ E(r, {
155
- message: V.message,
162
+ G ? /* @__PURE__ */ w(ee, {
163
+ message: G.message,
156
164
  action: {
157
- label: j("productCommon.retry", "Retry"),
158
- onClick: () => H()
165
+ label: F("productCommon.retry", "Retry"),
166
+ onClick: () => K()
159
167
  }
160
- }) : B && z.length === 0 ? /* @__PURE__ */ E(n, { message: j("shortcuts.loadingShortcuts", "Loading keyboard shortcuts...") }) : z.length === 0 ? /* @__PURE__ */ D("div", {
161
- className: "bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-200",
162
- children: [/* @__PURE__ */ E("p", {
163
- className: "text-text-secondary mb-4",
164
- children: j("shortcuts.noShortcutsFound", "No keyboard shortcuts found")
165
- }), /* @__PURE__ */ D("div", {
166
- className: "flex items-center justify-center gap-3",
167
- children: [/* @__PURE__ */ D("button", {
168
- type: "button",
169
- onClick: Z,
170
- disabled: J,
171
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n font-medium\n ",
172
- children: [/* @__PURE__ */ E(x, { size: 18 }), j("shortcuts.seedDefaults", "Seed Defaults")]
173
- }), /* @__PURE__ */ D("button", {
174
- type: "button",
175
- onClick: () => k(`${A}/shortcuts/new`),
176
- 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 ",
177
- children: [/* @__PURE__ */ E(y, { size: 20 }), j("shortcuts.createShortcut", "Create Shortcut")]
178
- })]
179
- })]
180
- }) : /* @__PURE__ */ E("div", {
181
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden",
182
- children: /* @__PURE__ */ D("table", {
168
+ }) : W && U.length === 0 ? /* @__PURE__ */ w(n, { message: F("shortcuts.loadingShortcuts", "Loading keyboard shortcuts...") }) : U.length === 0 ? /* @__PURE__ */ w(k, {
169
+ treatment: "insight",
170
+ className: "animate-in fade-in duration-200",
171
+ children: /* @__PURE__ */ w(j, {
172
+ illustration: R || V.category || V.isEnabled !== void 0 ? "empty-search" : "empty-data",
173
+ title: F("shortcuts.noShortcutsFound", "No keyboard shortcuts found"),
174
+ action: /* @__PURE__ */ T("div", {
175
+ className: "flex flex-wrap items-center justify-center gap-3",
176
+ children: [/* @__PURE__ */ T(D, {
177
+ type: "button",
178
+ variant: "outline",
179
+ onClick: $,
180
+ disabled: Q,
181
+ children: [/* @__PURE__ */ w(y, { className: "size-4" }), F("shortcuts.seedDefaults", "Seed Defaults")]
182
+ }), /* @__PURE__ */ T(D, {
183
+ type: "button",
184
+ onClick: () => N(`${P}/shortcuts/new`),
185
+ children: [/* @__PURE__ */ w(v, { className: "size-4" }), F("shortcuts.createShortcut", "Create Shortcut")]
186
+ })]
187
+ })
188
+ })
189
+ }) : /* @__PURE__ */ w(k, {
190
+ treatment: "glass",
191
+ glow: !0,
192
+ className: "overflow-hidden p-0",
193
+ children: /* @__PURE__ */ T("table", {
183
194
  className: "w-full",
184
- children: [/* @__PURE__ */ E("thead", {
185
- className: "bg-bg-sunken border-b border-default",
186
- children: /* @__PURE__ */ D("tr", { children: [
187
- /* @__PURE__ */ E("th", {
195
+ children: [/* @__PURE__ */ w("thead", {
196
+ className: "bg-bg-sunken/60 border-b border-border-seam",
197
+ children: /* @__PURE__ */ T("tr", { children: [
198
+ /* @__PURE__ */ w("th", {
188
199
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
189
- children: j("shortcuts.columnShortcut", "Shortcut")
200
+ children: F("shortcuts.columnShortcut", "Shortcut")
190
201
  }),
191
- /* @__PURE__ */ E("th", {
202
+ /* @__PURE__ */ w("th", {
192
203
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
193
- children: j("shortcuts.columnLabel", "Label")
204
+ children: F("shortcuts.columnLabel", "Label")
194
205
  }),
195
- /* @__PURE__ */ E("th", {
206
+ /* @__PURE__ */ w("th", {
196
207
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
197
- children: j("shortcuts.columnCategory", "Category")
208
+ children: F("shortcuts.columnCategory", "Category")
198
209
  }),
199
- /* @__PURE__ */ E("th", {
210
+ /* @__PURE__ */ w("th", {
200
211
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
201
- children: j("shortcuts.columnEvent", "Event")
212
+ children: F("shortcuts.columnEvent", "Event")
202
213
  }),
203
- /* @__PURE__ */ E("th", {
214
+ /* @__PURE__ */ w("th", {
204
215
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
205
- children: j("shortcuts.columnProduct", "Product")
216
+ children: F("shortcuts.columnProduct", "Product")
206
217
  }),
207
- /* @__PURE__ */ E("th", {
218
+ /* @__PURE__ */ w("th", {
208
219
  className: "text-center px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
209
- children: j("shortcuts.columnEnabled", "Enabled")
220
+ children: F("shortcuts.columnEnabled", "Enabled")
210
221
  }),
211
- /* @__PURE__ */ E("th", {
222
+ /* @__PURE__ */ w("th", {
212
223
  className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
213
- children: j("shortcuts.columnActions", "Actions")
224
+ children: F("shortcuts.columnActions", "Actions")
214
225
  })
215
226
  ] })
216
- }), /* @__PURE__ */ E("tbody", {
217
- className: "divide-y divide-[var(--color-border-default)]",
218
- children: z.map((e) => /* @__PURE__ */ D("tr", {
219
- className: "hover:bg-bg-sunken transition-all duration-200",
227
+ }), /* @__PURE__ */ w("tbody", {
228
+ className: "divide-y divide-border-seam",
229
+ children: U.map((e) => /* @__PURE__ */ T("tr", {
230
+ className: "hover:bg-bg-sunken/70 transition-colors duration-200",
220
231
  children: [
221
- /* @__PURE__ */ E("td", {
232
+ /* @__PURE__ */ w("td", {
222
233
  className: "px-6 py-4",
223
- children: /* @__PURE__ */ E(g, {
234
+ children: /* @__PURE__ */ w(h, {
224
235
  shortcutKey: e.shortcutKey,
225
236
  isSequence: e.isSequence
226
237
  })
227
238
  }),
228
- /* @__PURE__ */ E("td", {
239
+ /* @__PURE__ */ w("td", {
229
240
  className: "px-6 py-4",
230
- children: /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
241
+ children: /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
231
242
  className: "font-medium text-text-primary",
232
243
  children: e.label
233
- }), e.description && /* @__PURE__ */ E("p", {
244
+ }), e.description && /* @__PURE__ */ w("p", {
234
245
  className: "text-sm text-text-tertiary line-clamp-1",
235
246
  children: e.description
236
247
  })] })
237
248
  }),
238
- /* @__PURE__ */ E("td", {
249
+ /* @__PURE__ */ w("td", {
239
250
  className: "px-6 py-4",
240
- children: /* @__PURE__ */ E(h, { category: e.category })
251
+ children: /* @__PURE__ */ w(m, { category: e.category })
241
252
  }),
242
- /* @__PURE__ */ E("td", {
253
+ /* @__PURE__ */ w("td", {
243
254
  className: "px-6 py-4",
244
- children: /* @__PURE__ */ E("code", {
255
+ children: /* @__PURE__ */ w("code", {
245
256
  className: "text-sm text-text-secondary bg-bg-sunken px-1.5 py-0.5 rounded font-mono",
246
257
  children: e.eventName
247
258
  })
248
259
  }),
249
- /* @__PURE__ */ E("td", {
260
+ /* @__PURE__ */ w("td", {
250
261
  className: "px-6 py-4",
251
- children: /* @__PURE__ */ E("span", {
262
+ children: /* @__PURE__ */ w("span", {
252
263
  className: "text-sm text-text-primary",
253
- children: e.product?.name || /* @__PURE__ */ E("span", {
264
+ children: e.product?.name || /* @__PURE__ */ w("span", {
254
265
  className: "text-text-tertiary italic",
255
- children: j("shortcuts.global", "Global")
266
+ children: F("shortcuts.global", "Global")
256
267
  })
257
268
  })
258
269
  }),
259
- /* @__PURE__ */ E("td", {
270
+ /* @__PURE__ */ w("td", {
260
271
  className: "px-6 py-4 text-center",
261
- children: /* @__PURE__ */ E("button", {
272
+ children: /* @__PURE__ */ w("button", {
262
273
  type: "button",
263
- onClick: () => X(e.id, e.isEnabled),
264
- disabled: K,
274
+ onClick: () => re(e.id, e.isEnabled),
275
+ disabled: X,
265
276
  className: `
266
277
  p-1 rounded-lg transition-all duration-200
267
278
  ${e.isEnabled ? "text-[var(--color-status-success)] hover:bg-[var(--color-status-success-subtle)]" : "text-text-tertiary hover:bg-bg-sunken"}
268
279
  disabled:opacity-50
269
280
  `,
270
- title: e.isEnabled ? j("shortcuts.disable", "Disable") : j("shortcuts.enable", "Enable"),
271
- children: e.isEnabled ? /* @__PURE__ */ E(w, { size: 24 }) : /* @__PURE__ */ E(C, { size: 24 })
281
+ title: e.isEnabled ? F("shortcuts.disable", "Disable") : F("shortcuts.enable", "Enable"),
282
+ children: e.isEnabled ? /* @__PURE__ */ w(S, { size: 24 }) : /* @__PURE__ */ w(x, { size: 24 })
272
283
  })
273
284
  }),
274
- /* @__PURE__ */ E("td", {
285
+ /* @__PURE__ */ w("td", {
275
286
  className: "px-6 py-4",
276
- children: /* @__PURE__ */ D("div", {
287
+ children: /* @__PURE__ */ T("div", {
277
288
  className: "flex items-center justify-end gap-2",
278
- children: [/* @__PURE__ */ E("button", {
289
+ children: [/* @__PURE__ */ w("button", {
279
290
  type: "button",
280
- onClick: () => k(`${A}/shortcuts/${e.id}`),
291
+ onClick: () => N(`${P}/shortcuts/${e.id}`),
281
292
  className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
282
- title: j("shortcuts.viewDetails", "View details"),
283
- children: /* @__PURE__ */ E(v, { size: 18 })
284
- }), /* @__PURE__ */ D(O, {
293
+ title: F("shortcuts.viewDetails", "View details"),
294
+ children: /* @__PURE__ */ w(_, { size: 18 })
295
+ }), /* @__PURE__ */ T(E, {
285
296
  role: "super_admin",
286
- children: [/* @__PURE__ */ E("button", {
297
+ children: [/* @__PURE__ */ w("button", {
287
298
  type: "button",
288
- onClick: () => k(`${A}/shortcuts/${e.id}/edit`),
299
+ onClick: () => N(`${P}/shortcuts/${e.id}/edit`),
289
300
  className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
290
- title: j("shortcuts.edit", "Edit"),
291
- children: /* @__PURE__ */ E(S, { size: 18 })
292
- }), /* @__PURE__ */ E("button", {
301
+ title: F("shortcuts.edit", "Edit"),
302
+ children: /* @__PURE__ */ w(b, { size: 18 })
303
+ }), /* @__PURE__ */ w("button", {
293
304
  type: "button",
294
- onClick: () => Y(e.id),
295
- disabled: W,
305
+ onClick: () => ne(e.id),
306
+ disabled: J,
296
307
  className: "p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50",
297
- title: j("shortcuts.delete", "Delete"),
298
- children: /* @__PURE__ */ E(T, { size: 18 })
308
+ title: F("shortcuts.delete", "Delete"),
309
+ children: /* @__PURE__ */ w(C, { size: 18 })
299
310
  })]
300
311
  })]
301
312
  })
@@ -305,11 +316,11 @@ function k() {
305
316
  })]
306
317
  })
307
318
  }),
308
- N
319
+ L
309
320
  ]
310
321
  });
311
322
  }
312
323
  //#endregion
313
- export { k as ShortcutsListPage };
324
+ export { N as ShortcutsListPage };
314
325
 
315
326
  //# sourceMappingURL=ShortcutsListPage.js.map