@burdenoff/microfe-product 2026.715.1 → 2026.731.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 (28) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +42 -43
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductViewPage.js +88 -87
  4. package/dist/product/pages/ProductViewPage.js.map +1 -1
  5. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +341 -473
  6. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +8 -10
  8. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  9. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +250 -252
  10. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
  11. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +72 -72
  12. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  13. package/dist/product-management/modules/products/components/ProductForm.js +490 -492
  14. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  15. package/dist/product-management/modules/products/pages/ProductDetailPage.js +130 -129
  16. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  17. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +195 -203
  18. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  19. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +88 -87
  20. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  21. package/dist/shared/components/MarkdownEditor.js +161 -0
  22. package/dist/shared/components/MarkdownEditor.js.map +1 -0
  23. package/dist/shared/components/index.js +1 -0
  24. package/package.json +5 -5
  25. package/dist/node_modules/dompurify/dist/purify.es.js +0 -555
  26. package/dist/node_modules/dompurify/dist/purify.es.js.map +0 -1
  27. package/dist/shared/utils/renderMarkdown.js +0 -8
  28. package/dist/shared/utils/renderMarkdown.js.map +0 -1
@@ -1,389 +1,381 @@
1
1
  import { useTr as e } from "../../../shared/hooks/useTr.js";
2
2
  import { useProducts as t } from "../../products/hooks/useProducts.js";
3
- import { ZodError as n } from "../../../../node_modules/zod/v4/classic/errors.js";
4
- import { ShortcutCategories as r } from "../types/index.js";
5
- import { createShortcutSchema as i, updateShortcutSchema as a } from "../schemas/index.js";
6
- import { useEffect as o, useState as s } from "react";
7
- import { Loader2 as c } from "lucide-react";
8
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
3
+ import { MarkdownEditor as n } from "../../../../shared/components/MarkdownEditor.js";
4
+ import { ZodError as r } from "../../../../node_modules/zod/v4/classic/errors.js";
5
+ import { ShortcutCategories as i } from "../types/index.js";
6
+ import { createShortcutSchema as a, updateShortcutSchema as o } from "../schemas/index.js";
7
+ import { useEffect as s, useState as c } from "react";
8
+ import { Loader2 as l } from "lucide-react";
9
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
10
  //#region src/product-management/modules/shortcuts/components/ShortcutForm.tsx
10
- function d({ shortcut: d, onSubmit: f, onCancel: p, loading: m }) {
11
- let h = e(), { products: g } = t({}, { limit: 100 }), [_, v] = s({
12
- productId: d?.productId || "",
13
- shortcutKey: d?.shortcutKey || "",
14
- eventName: d?.eventName || "",
15
- category: d?.category || r.NAVIGATION,
16
- label: d?.label || "",
17
- description: d?.description || "",
18
- macKey: d?.macKey || "",
19
- windowsKey: d?.windowsKey || "",
20
- isEnabled: d?.isEnabled ?? !0,
21
- isSequence: d?.isSequence ?? !1,
22
- sortOrder: d?.sortOrder ?? 0
23
- }), [y, b] = s({});
24
- o(() => {
25
- let e = _.shortcutKey.includes(" "), t = _.shortcutKey.includes("+");
26
- e && !t ? v((e) => ({
11
+ function f({ shortcut: f, onSubmit: p, onCancel: m, loading: h }) {
12
+ let g = e(), { products: _ } = t({}, { limit: 100 }), [v, y] = c({
13
+ productId: f?.productId || "",
14
+ shortcutKey: f?.shortcutKey || "",
15
+ eventName: f?.eventName || "",
16
+ category: f?.category || i.NAVIGATION,
17
+ label: f?.label || "",
18
+ description: f?.description || "",
19
+ macKey: f?.macKey || "",
20
+ windowsKey: f?.windowsKey || "",
21
+ isEnabled: f?.isEnabled ?? !0,
22
+ isSequence: f?.isSequence ?? !1,
23
+ sortOrder: f?.sortOrder ?? 0
24
+ }), [b, x] = c({});
25
+ s(() => {
26
+ let e = v.shortcutKey.includes(" "), t = v.shortcutKey.includes("+");
27
+ e && !t ? y((e) => ({
27
28
  ...e,
28
29
  isSequence: !0
29
- })) : t && !e && v((e) => ({
30
+ })) : t && !e && y((e) => ({
30
31
  ...e,
31
32
  isSequence: !1
32
33
  }));
33
- }, [_.shortcutKey]);
34
- let x = () => {
34
+ }, [v.shortcutKey]);
35
+ let S = () => {
35
36
  try {
36
- return (d ? a : i).parse(_), b({}), !0;
37
+ return (f ? o : a).parse(v), x({}), !0;
37
38
  } catch (e) {
38
- if (e instanceof n) {
39
+ if (e instanceof r) {
39
40
  let t = {};
40
41
  e.issues.forEach((e) => {
41
42
  let n = e.path.join(".");
42
43
  t[n] = e.message;
43
- }), b(t);
44
+ }), x(t);
44
45
  }
45
46
  return !1;
46
47
  }
47
- }, S = async (e) => {
48
- e.preventDefault(), x() && await f(d ? {
49
- shortcutKey: _.shortcutKey === d.shortcutKey ? void 0 : _.shortcutKey,
50
- eventName: _.eventName === d.eventName ? void 0 : _.eventName,
51
- category: _.category === d.category ? void 0 : _.category,
52
- label: _.label === d.label ? void 0 : _.label,
53
- description: _.description === (d.description || "") ? void 0 : _.description || void 0,
54
- macKey: _.macKey === (d.macKey || "") ? void 0 : _.macKey || void 0,
55
- windowsKey: _.windowsKey === (d.windowsKey || "") ? void 0 : _.windowsKey || void 0,
56
- isEnabled: _.isEnabled === d.isEnabled ? void 0 : _.isEnabled,
57
- isSequence: _.isSequence === d.isSequence ? void 0 : _.isSequence,
58
- sortOrder: _.sortOrder === d.sortOrder ? void 0 : _.sortOrder
48
+ }, C = async (e) => {
49
+ e.preventDefault(), S() && await p(f ? {
50
+ shortcutKey: v.shortcutKey === f.shortcutKey ? void 0 : v.shortcutKey,
51
+ eventName: v.eventName === f.eventName ? void 0 : v.eventName,
52
+ category: v.category === f.category ? void 0 : v.category,
53
+ label: v.label === f.label ? void 0 : v.label,
54
+ description: v.description === (f.description || "") ? void 0 : v.description || void 0,
55
+ macKey: v.macKey === (f.macKey || "") ? void 0 : v.macKey || void 0,
56
+ windowsKey: v.windowsKey === (f.windowsKey || "") ? void 0 : v.windowsKey || void 0,
57
+ isEnabled: v.isEnabled === f.isEnabled ? void 0 : v.isEnabled,
58
+ isSequence: v.isSequence === f.isSequence ? void 0 : v.isSequence,
59
+ sortOrder: v.sortOrder === f.sortOrder ? void 0 : v.sortOrder
59
60
  } : {
60
- productId: _.productId || void 0,
61
- shortcutKey: _.shortcutKey,
62
- eventName: _.eventName,
63
- category: _.category,
64
- label: _.label,
65
- description: _.description || void 0,
66
- macKey: _.macKey || void 0,
67
- windowsKey: _.windowsKey || void 0,
68
- isEnabled: _.isEnabled,
69
- isSequence: _.isSequence,
70
- sortOrder: _.sortOrder
61
+ productId: v.productId || void 0,
62
+ shortcutKey: v.shortcutKey,
63
+ eventName: v.eventName,
64
+ category: v.category,
65
+ label: v.label,
66
+ description: v.description || void 0,
67
+ macKey: v.macKey || void 0,
68
+ windowsKey: v.windowsKey || void 0,
69
+ isEnabled: v.isEnabled,
70
+ isSequence: v.isSequence,
71
+ sortOrder: v.sortOrder
71
72
  });
72
- }, C = "\n w-full px-3 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n disabled:bg-bg-sunken disabled:cursor-not-allowed\n transition-all duration-200\n ";
73
- return /* @__PURE__ */ u("form", {
74
- onSubmit: S,
73
+ }, w = "\n w-full px-3 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n disabled:bg-bg-sunken disabled:cursor-not-allowed\n transition-all duration-200\n ";
74
+ return /* @__PURE__ */ d("form", {
75
+ onSubmit: C,
75
76
  className: "space-y-6 animate-in fade-in duration-200",
76
77
  children: [
77
- /* @__PURE__ */ u("div", {
78
+ /* @__PURE__ */ d("div", {
78
79
  className: "space-y-4",
79
80
  children: [
80
- /* @__PURE__ */ l("h3", {
81
+ /* @__PURE__ */ u("h3", {
81
82
  className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
82
- children: h("shortcuts.basicInformation", "Basic Information")
83
+ children: g("shortcuts.basicInformation", "Basic Information")
83
84
  }),
84
- /* @__PURE__ */ u("div", { children: [
85
- /* @__PURE__ */ l("label", {
85
+ /* @__PURE__ */ d("div", { children: [
86
+ /* @__PURE__ */ u("label", {
86
87
  htmlFor: "productId",
87
88
  className: "block text-sm font-medium text-text-primary mb-1",
88
- children: h("shortcuts.product", "Product")
89
+ children: g("shortcuts.product", "Product")
89
90
  }),
90
- /* @__PURE__ */ u("select", {
91
+ /* @__PURE__ */ d("select", {
91
92
  id: "productId",
92
- value: _.productId,
93
- onChange: (e) => v({
94
- ..._,
93
+ value: v.productId,
94
+ onChange: (e) => y({
95
+ ...v,
95
96
  productId: e.target.value
96
97
  }),
97
- className: C,
98
- disabled: m || !!d,
99
- children: [/* @__PURE__ */ l("option", {
98
+ className: w,
99
+ disabled: h || !!f,
100
+ children: [/* @__PURE__ */ u("option", {
100
101
  value: "",
101
- children: h("shortcuts.globalAllProducts", "Global (All Products)")
102
- }), g.map((e) => /* @__PURE__ */ l("option", {
102
+ children: g("shortcuts.globalAllProducts", "Global (All Products)")
103
+ }), _.map((e) => /* @__PURE__ */ u("option", {
103
104
  value: e.id,
104
105
  children: e.name
105
106
  }, e.id))]
106
107
  }),
107
- /* @__PURE__ */ l("p", {
108
+ /* @__PURE__ */ u("p", {
108
109
  className: "text-xs text-text-tertiary mt-1",
109
- children: h("shortcuts.globalShortcutHint", "Leave empty for global shortcuts that work across all products.")
110
+ children: g("shortcuts.globalShortcutHint", "Leave empty for global shortcuts that work across all products.")
110
111
  })
111
112
  ] }),
112
- /* @__PURE__ */ u("div", { children: [
113
- /* @__PURE__ */ u("label", {
113
+ /* @__PURE__ */ d("div", { children: [
114
+ /* @__PURE__ */ d("label", {
114
115
  htmlFor: "label",
115
116
  className: "block text-sm font-medium text-text-primary mb-1",
116
117
  children: [
117
- h("shortcuts.label", "Label"),
118
+ g("shortcuts.label", "Label"),
118
119
  " ",
119
- /* @__PURE__ */ l("span", {
120
+ /* @__PURE__ */ u("span", {
120
121
  className: "text-[var(--color-status-error)]",
121
122
  children: "*"
122
123
  })
123
124
  ]
124
125
  }),
125
- /* @__PURE__ */ l("input", {
126
+ /* @__PURE__ */ u("input", {
126
127
  id: "label",
127
128
  type: "text",
128
- value: _.label,
129
- onChange: (e) => v({
130
- ..._,
129
+ value: v.label,
130
+ onChange: (e) => y({
131
+ ...v,
131
132
  label: e.target.value
132
133
  }),
133
- className: C,
134
+ className: w,
134
135
  placeholder: "e.g., Go to Home",
135
- disabled: m,
136
+ disabled: h,
136
137
  required: !0
137
138
  }),
138
- y.label && /* @__PURE__ */ l("p", {
139
+ b.label && /* @__PURE__ */ u("p", {
139
140
  className: "text-sm text-[var(--color-status-error)] mt-1",
140
- children: y.label
141
+ children: b.label
141
142
  })
142
143
  ] }),
143
- /* @__PURE__ */ u("div", { children: [
144
- /* @__PURE__ */ u("label", {
144
+ /* @__PURE__ */ d("div", { children: [
145
+ /* @__PURE__ */ d("label", {
145
146
  htmlFor: "shortcutKey",
146
147
  className: "block text-sm font-medium text-text-primary mb-1",
147
148
  children: [
148
- h("shortcuts.shortcutKey", "Shortcut Key"),
149
+ g("shortcuts.shortcutKey", "Shortcut Key"),
149
150
  " ",
150
- /* @__PURE__ */ l("span", {
151
+ /* @__PURE__ */ u("span", {
151
152
  className: "text-[var(--color-status-error)]",
152
153
  children: "*"
153
154
  })
154
155
  ]
155
156
  }),
156
- /* @__PURE__ */ l("input", {
157
+ /* @__PURE__ */ u("input", {
157
158
  id: "shortcutKey",
158
159
  type: "text",
159
- value: _.shortcutKey,
160
- onChange: (e) => v({
161
- ..._,
160
+ value: v.shortcutKey,
161
+ onChange: (e) => y({
162
+ ...v,
162
163
  shortcutKey: e.target.value
163
164
  }),
164
- className: C,
165
+ className: w,
165
166
  placeholder: "e.g., g h or Cmd+K",
166
- disabled: m,
167
+ disabled: h,
167
168
  required: !0
168
169
  }),
169
- /* @__PURE__ */ l("p", {
170
+ /* @__PURE__ */ u("p", {
170
171
  className: "text-xs text-text-tertiary mt-1",
171
- children: h("shortcuts.shortcutKeyHint", "Use space for sequences (g h), use + for modifiers (Cmd+K, Ctrl+Shift+P)")
172
+ children: g("shortcuts.shortcutKeyHint", "Use space for sequences (g h), use + for modifiers (Cmd+K, Ctrl+Shift+P)")
172
173
  }),
173
- y.shortcutKey && /* @__PURE__ */ l("p", {
174
+ b.shortcutKey && /* @__PURE__ */ u("p", {
174
175
  className: "text-sm text-[var(--color-status-error)] mt-1",
175
- children: y.shortcutKey
176
+ children: b.shortcutKey
176
177
  })
177
178
  ] }),
178
- /* @__PURE__ */ u("div", { children: [
179
- /* @__PURE__ */ u("label", {
179
+ /* @__PURE__ */ d("div", { children: [
180
+ /* @__PURE__ */ d("label", {
180
181
  htmlFor: "eventName",
181
182
  className: "block text-sm font-medium text-text-primary mb-1",
182
183
  children: [
183
- h("shortcuts.eventName", "Event Name"),
184
+ g("shortcuts.eventName", "Event Name"),
184
185
  " ",
185
- /* @__PURE__ */ l("span", {
186
+ /* @__PURE__ */ u("span", {
186
187
  className: "text-[var(--color-status-error)]",
187
188
  children: "*"
188
189
  })
189
190
  ]
190
191
  }),
191
- /* @__PURE__ */ l("input", {
192
+ /* @__PURE__ */ u("input", {
192
193
  id: "eventName",
193
194
  type: "text",
194
- value: _.eventName,
195
- onChange: (e) => v({
196
- ..._,
195
+ value: v.eventName,
196
+ onChange: (e) => y({
197
+ ...v,
197
198
  eventName: e.target.value
198
199
  }),
199
- className: C,
200
+ className: w,
200
201
  placeholder: "e.g., navigate:home",
201
- disabled: m,
202
+ disabled: h,
202
203
  required: !0
203
204
  }),
204
- /* @__PURE__ */ l("p", {
205
+ /* @__PURE__ */ u("p", {
205
206
  className: "text-xs text-text-tertiary mt-1",
206
- children: h("shortcuts.eventNameHint", "The event name to emit when this shortcut is triggered.")
207
+ children: g("shortcuts.eventNameHint", "The event name to emit when this shortcut is triggered.")
207
208
  }),
208
- y.eventName && /* @__PURE__ */ l("p", {
209
+ b.eventName && /* @__PURE__ */ u("p", {
209
210
  className: "text-sm text-[var(--color-status-error)] mt-1",
210
- children: y.eventName
211
+ children: b.eventName
211
212
  })
212
213
  ] }),
213
- /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("label", {
214
+ /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ d("label", {
214
215
  htmlFor: "category",
215
216
  className: "block text-sm font-medium text-text-primary mb-1",
216
217
  children: [
217
- h("shortcuts.category", "Category"),
218
+ g("shortcuts.category", "Category"),
218
219
  " ",
219
- /* @__PURE__ */ l("span", {
220
+ /* @__PURE__ */ u("span", {
220
221
  className: "text-[var(--color-status-error)]",
221
222
  children: "*"
222
223
  })
223
224
  ]
224
- }), /* @__PURE__ */ l("select", {
225
+ }), /* @__PURE__ */ u("select", {
225
226
  id: "category",
226
- value: _.category,
227
- onChange: (e) => v({
228
- ..._,
227
+ value: v.category,
228
+ onChange: (e) => y({
229
+ ...v,
229
230
  category: e.target.value
230
231
  }),
231
- className: C,
232
- disabled: m,
233
- children: Object.values(r).map((e) => /* @__PURE__ */ l("option", {
232
+ className: w,
233
+ disabled: h,
234
+ children: Object.values(i).map((e) => /* @__PURE__ */ u("option", {
234
235
  value: e,
235
236
  children: e
236
237
  }, e))
237
238
  })] }),
238
- /* @__PURE__ */ u("div", { children: [
239
- /* @__PURE__ */ l("label", {
240
- htmlFor: "description",
241
- className: "block text-sm font-medium text-text-primary mb-1",
242
- children: h("shortcuts.description", "Description")
243
- }),
244
- /* @__PURE__ */ l("textarea", {
245
- id: "description",
246
- value: _.description,
247
- onChange: (e) => v({
248
- ..._,
249
- description: e.target.value
250
- }),
251
- rows: 2,
252
- className: C,
253
- placeholder: h("shortcuts.descriptionPlaceholder", "Enter a description for this shortcut"),
254
- disabled: m
239
+ /* @__PURE__ */ u(n, {
240
+ id: "description",
241
+ label: g("shortcuts.description", "Description"),
242
+ value: v.description,
243
+ onChange: (e) => y({
244
+ ...v,
245
+ description: e
255
246
  }),
256
- y.description && /* @__PURE__ */ l("p", {
257
- className: "text-sm text-[var(--color-status-error)] mt-1",
258
- children: y.description
259
- })
260
- ] })
247
+ placeholder: g("shortcuts.descriptionPlaceholder", "Enter a description for this shortcut"),
248
+ disabled: h,
249
+ error: b.description,
250
+ rows: 3,
251
+ minHeight: 90
252
+ })
261
253
  ]
262
254
  }),
263
- /* @__PURE__ */ u("div", {
255
+ /* @__PURE__ */ d("div", {
264
256
  className: "space-y-4 pt-4 border-t border-border-seam",
265
- children: [/* @__PURE__ */ l("h3", {
257
+ children: [/* @__PURE__ */ u("h3", {
266
258
  className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
267
- children: h("shortcuts.platformSpecificKeys", "Platform-Specific Keys (Optional)")
268
- }), /* @__PURE__ */ u("div", {
259
+ children: g("shortcuts.platformSpecificKeys", "Platform-Specific Keys (Optional)")
260
+ }), /* @__PURE__ */ d("div", {
269
261
  className: "grid grid-cols-2 gap-4",
270
- children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
262
+ children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("label", {
271
263
  htmlFor: "macKey",
272
264
  className: "block text-sm font-medium text-text-primary mb-1",
273
- children: h("shortcuts.macKeyOverride", "Mac Key Override")
274
- }), /* @__PURE__ */ l("input", {
265
+ children: g("shortcuts.macKeyOverride", "Mac Key Override")
266
+ }), /* @__PURE__ */ u("input", {
275
267
  id: "macKey",
276
268
  type: "text",
277
- value: _.macKey,
278
- onChange: (e) => v({
279
- ..._,
269
+ value: v.macKey,
270
+ onChange: (e) => y({
271
+ ...v,
280
272
  macKey: e.target.value
281
273
  }),
282
- className: C,
274
+ className: w,
283
275
  placeholder: "e.g., Cmd+K",
284
- disabled: m
285
- })] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
276
+ disabled: h
277
+ })] }), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("label", {
286
278
  htmlFor: "windowsKey",
287
279
  className: "block text-sm font-medium text-text-primary mb-1",
288
- children: h("shortcuts.windowsKeyOverride", "Windows Key Override")
289
- }), /* @__PURE__ */ l("input", {
280
+ children: g("shortcuts.windowsKeyOverride", "Windows Key Override")
281
+ }), /* @__PURE__ */ u("input", {
290
282
  id: "windowsKey",
291
283
  type: "text",
292
- value: _.windowsKey,
293
- onChange: (e) => v({
294
- ..._,
284
+ value: v.windowsKey,
285
+ onChange: (e) => y({
286
+ ...v,
295
287
  windowsKey: e.target.value
296
288
  }),
297
- className: C,
289
+ className: w,
298
290
  placeholder: "e.g., Ctrl+K",
299
- disabled: m
291
+ disabled: h
300
292
  })] })]
301
293
  })]
302
294
  }),
303
- /* @__PURE__ */ u("div", {
295
+ /* @__PURE__ */ d("div", {
304
296
  className: "space-y-4 pt-4 border-t border-border-seam",
305
297
  children: [
306
- /* @__PURE__ */ l("h3", {
298
+ /* @__PURE__ */ u("h3", {
307
299
  className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
308
- children: h("shortcuts.options", "Options")
300
+ children: g("shortcuts.options", "Options")
309
301
  }),
310
- /* @__PURE__ */ u("div", {
302
+ /* @__PURE__ */ d("div", {
311
303
  className: "flex items-center gap-6",
312
- children: [/* @__PURE__ */ u("label", {
304
+ children: [/* @__PURE__ */ d("label", {
313
305
  className: "flex items-center gap-2 cursor-pointer",
314
- children: [/* @__PURE__ */ l("input", {
306
+ children: [/* @__PURE__ */ u("input", {
315
307
  type: "checkbox",
316
- checked: _.isEnabled,
317
- onChange: (e) => v({
318
- ..._,
308
+ checked: v.isEnabled,
309
+ onChange: (e) => y({
310
+ ...v,
319
311
  isEnabled: e.target.checked
320
312
  }),
321
313
  className: "size-4 rounded border-default text-[var(--color-action-primary-bg)] focus:ring-[var(--color-border-focus)]",
322
- disabled: m
323
- }), /* @__PURE__ */ l("span", {
314
+ disabled: h
315
+ }), /* @__PURE__ */ u("span", {
324
316
  className: "text-sm text-text-primary",
325
- children: h("shortcuts.enabled", "Enabled")
317
+ children: g("shortcuts.enabled", "Enabled")
326
318
  })]
327
- }), /* @__PURE__ */ u("label", {
319
+ }), /* @__PURE__ */ d("label", {
328
320
  className: "flex items-center gap-2 cursor-pointer",
329
- children: [/* @__PURE__ */ l("input", {
321
+ children: [/* @__PURE__ */ u("input", {
330
322
  type: "checkbox",
331
- checked: _.isSequence,
332
- onChange: (e) => v({
333
- ..._,
323
+ checked: v.isSequence,
324
+ onChange: (e) => y({
325
+ ...v,
334
326
  isSequence: e.target.checked
335
327
  }),
336
328
  className: "size-4 rounded border-default text-[var(--color-action-primary-bg)] focus:ring-[var(--color-border-focus)]",
337
- disabled: m
338
- }), /* @__PURE__ */ l("span", {
329
+ disabled: h
330
+ }), /* @__PURE__ */ u("span", {
339
331
  className: "text-sm text-text-primary",
340
- children: h("shortcuts.keySequence", "Key Sequence")
332
+ children: g("shortcuts.keySequence", "Key Sequence")
341
333
  })]
342
334
  })]
343
335
  }),
344
- /* @__PURE__ */ u("div", {
336
+ /* @__PURE__ */ d("div", {
345
337
  className: "w-32",
346
- children: [/* @__PURE__ */ l("label", {
338
+ children: [/* @__PURE__ */ u("label", {
347
339
  htmlFor: "sortOrder",
348
340
  className: "block text-sm font-medium text-text-primary mb-1",
349
- children: h("shortcuts.sortOrder", "Sort Order")
350
- }), /* @__PURE__ */ l("input", {
341
+ children: g("shortcuts.sortOrder", "Sort Order")
342
+ }), /* @__PURE__ */ u("input", {
351
343
  id: "sortOrder",
352
344
  type: "number",
353
345
  min: 0,
354
- value: _.sortOrder,
355
- onChange: (e) => v({
356
- ..._,
346
+ value: v.sortOrder,
347
+ onChange: (e) => y({
348
+ ...v,
357
349
  sortOrder: parseInt(e.target.value) || 0
358
350
  }),
359
- className: C,
360
- disabled: m
351
+ className: w,
352
+ disabled: h
361
353
  })]
362
354
  })
363
355
  ]
364
356
  }),
365
- /* @__PURE__ */ u("div", {
357
+ /* @__PURE__ */ d("div", {
366
358
  className: "flex gap-3 pt-4 border-t border-border-seam",
367
- children: [/* @__PURE__ */ u("button", {
359
+ children: [/* @__PURE__ */ d("button", {
368
360
  type: "submit",
369
- disabled: m,
361
+ disabled: h,
370
362
  className: "\n inline-flex items-center gap-2 px-6 py-2.5\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 disabled:opacity-50 disabled:cursor-not-allowed\n ",
371
- children: [m && /* @__PURE__ */ l(c, {
363
+ children: [h && /* @__PURE__ */ u(l, {
372
364
  size: 16,
373
365
  className: "animate-spin"
374
- }), d ? h("shortcuts.updateShortcut", "Update Shortcut") : h("shortcuts.createShortcut", "Create Shortcut")]
375
- }), /* @__PURE__ */ l("button", {
366
+ }), f ? g("shortcuts.updateShortcut", "Update Shortcut") : g("shortcuts.createShortcut", "Create Shortcut")]
367
+ }), /* @__PURE__ */ u("button", {
376
368
  type: "button",
377
- onClick: p,
378
- disabled: m,
369
+ onClick: m,
370
+ disabled: h,
379
371
  className: "\n px-6 py-2.5\n bg-transparent\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 disabled:cursor-not-allowed\n ",
380
- children: h("productCommon.cancel", "Cancel")
372
+ children: g("productCommon.cancel", "Cancel")
381
373
  })]
382
374
  })
383
375
  ]
384
376
  });
385
377
  }
386
378
  //#endregion
387
- export { d as ShortcutForm };
379
+ export { f as ShortcutForm };
388
380
 
389
381
  //# sourceMappingURL=ShortcutForm.js.map