@burdenoff/microfe-product 2026.624.1 → 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 (63) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +1 -1
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +2 -2
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +1 -1
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +2 -2
  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 +1 -1
  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 +242 -231
  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 +1 -1
  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 +293 -282
  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 +1 -1
  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 +144 -136
  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 +1 -1
  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 +188 -204
  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 +1 -1
  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 +1 -1
  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 +95 -87
  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 +1 -1
  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 +250 -239
  36. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  37. package/dist/product-management/modules/products/components/ProductForm.js +1 -1
  38. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  39. package/dist/product-management/modules/products/pages/ProductCreatePage.js +1 -1
  40. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  41. package/dist/product-management/modules/products/pages/ProductDetailPage.js +407 -396
  42. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  43. package/dist/product-management/modules/products/pages/ProductEditPage.js +1 -1
  44. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  45. package/dist/product-management/modules/products/pages/ProductsListPage.js +286 -275
  46. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  47. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +1 -1
  48. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  49. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +1 -1
  50. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  51. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +236 -225
  52. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  53. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +1 -1
  54. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  55. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +261 -245
  56. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  57. package/dist/product-management/shared/components/feedback/ErrorState.js +1 -1
  58. package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -1
  59. package/dist/product-management/shared/components/feedback/LoadingState.js +1 -1
  60. package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -1
  61. package/dist/product-management/shared/hooks/useConfirmDialog.js +44 -0
  62. package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -0
  63. package/package.json +1 -1
@@ -5,14 +5,15 @@ import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.
5
5
  import { SearchInput as i } from "../../../shared/components/input/SearchInput.js";
6
6
  import { exportToCsv as a } from "../../../shared/utils/exportUtils.js";
7
7
  import { nativeConfirm as o, nativeImpact as s, nativeNotify as c } from "../../../../utils/nativeBridge.js";
8
- import { useDebounced as l } from "../../../shared/hooks/useDebounced.js";
9
- import { useDeletePressKitAsset as u, usePressKitAssets as d } from "../hooks/usePressKitAssets.js";
10
- import { useState as f } from "react";
11
- import { Download as p, Eye as m, FileText as h, Plus as g, RefreshCw as _, SquarePen as v, Trash2 as y } from "lucide-react";
12
- import { jsx as b, jsxs as x } from "react/jsx-runtime";
13
- import { PermissionGate as S } from "@burdenoff/fe-libs/shared/components";
8
+ import { useConfirmDialog as l } from "../../../shared/hooks/useConfirmDialog.js";
9
+ import { useDebounced as u } from "../../../shared/hooks/useDebounced.js";
10
+ import { useDeletePressKitAsset as d, usePressKitAssets as f } from "../hooks/usePressKitAssets.js";
11
+ import { useState as p } from "react";
12
+ import { Download as m, Eye as h, FileText as g, Plus as _, RefreshCw as v, SquarePen as y, Trash2 as b } from "lucide-react";
13
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
14
+ import { PermissionGate as C } from "@burdenoff/fe-libs/shared/components";
14
15
  //#region src/product-management/modules/press-kit/pages/PressKitListPage.tsx
15
- var C = [
16
+ var w = [
16
17
  {
17
18
  label: "All",
18
19
  category: ""
@@ -50,268 +51,278 @@ var C = [
50
51
  category: "CONTRACT"
51
52
  }
52
53
  ];
53
- function w(e) {
54
+ function T(e) {
54
55
  return e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1024 / 1024).toFixed(1)} MB` : "—";
55
56
  }
56
- function T() {
57
- let { navigate: T, basePath: E = "/products" } = t(), D = `${E}/press-kit`, [O, k] = f(""), A = l(O, 300), j = e(), [M, N] = f({}), { assets: P, loading: F, error: I, refetch: L } = d(void 0, {
58
- ...M,
59
- search: A || void 0
60
- }, { limit: 50 }), { deletePressKitAsset: R, loading: z } = u(), B = async (e) => {
57
+ function E() {
58
+ let { navigate: E, basePath: D = "/products" } = t(), O = `${D}/press-kit`, [k, A] = p(""), j = u(k, 300), M = e(), [N, P] = p({}), { assets: F, loading: I, error: L, refetch: R } = f(void 0, {
59
+ ...N,
60
+ search: j || void 0
61
+ }, { limit: 50 }), { deletePressKitAsset: z, loading: B } = d(), { confirm: V, ConfirmDialog: H } = l(), U = async (e) => {
61
62
  s("medium");
62
- let t = j("pressKit.confirmDelete", "Delete this press kit asset?"), n = await o({
63
+ let t = M("pressKit.confirmDelete", "Delete this press kit asset?"), n = await o({
63
64
  title: "Delete press kit asset",
64
65
  message: t,
65
66
  okButtonTitle: "Delete",
66
67
  cancelButtonTitle: "Cancel"
67
68
  });
68
- if (n === null ? window.confirm(t) : n) try {
69
- if (!(await R(e)).data?.deletePressKitAsset) {
69
+ if (n === null ? await V({
70
+ title: "Delete press kit asset",
71
+ message: t,
72
+ okButtonTitle: "Delete",
73
+ cancelButtonTitle: "Cancel",
74
+ destructive: !0
75
+ }) : n) try {
76
+ if (!(await z(e)).data?.deletePressKitAsset) {
70
77
  c("error"), console.error("Press kit asset delete returned false:", e);
71
78
  return;
72
79
  }
73
- c("success"), L();
80
+ c("success"), R();
74
81
  } catch (e) {
75
82
  c("error"), console.error("Failed to delete press kit asset:", e);
76
83
  }
77
- }, V = (e) => e ? new Date(e).toLocaleDateString("en-US", {
84
+ }, W = (e) => e ? new Date(e).toLocaleDateString("en-US", {
78
85
  year: "numeric",
79
86
  month: "short",
80
87
  day: "numeric"
81
88
  }) : "—";
82
- return /* @__PURE__ */ x("div", {
83
- className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
84
- children: [/* @__PURE__ */ x("div", {
85
- className: "mb-6",
86
- children: [
87
- /* @__PURE__ */ x("div", {
88
- className: "flex items-center justify-between mb-4",
89
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("h1", {
90
- className: "text-3xl font-bold text-text-primary mb-2",
91
- children: j("pressKit.title", "Press Kit")
92
- }), /* @__PURE__ */ b("p", {
93
- className: "text-text-secondary",
94
- children: j("pressKit.subtitle", "Manage downloadable press & media assets")
95
- })] }), /* @__PURE__ */ b(S, {
96
- role: "super_admin",
97
- children: /* @__PURE__ */ x("button", {
98
- type: "button",
99
- onClick: () => T(`${D}/new`),
100
- className: "inline-flex items-center gap-2 px-4 py-2 bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-lg hover:opacity-90 transition-all duration-200 font-medium",
101
- children: [/* @__PURE__ */ b(g, { size: 20 }), j("pressKit.newAsset", "New Asset")]
102
- })
103
- })]
104
- }),
105
- /* @__PURE__ */ b("div", {
106
- className: "flex flex-wrap gap-1 border-b border-default pb-px",
107
- children: C.map((e) => /* @__PURE__ */ b("button", {
108
- type: "button",
109
- onClick: () => N({
110
- ...M,
111
- category: e.category || void 0
112
- }),
113
- className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(M.category ?? "") === e.category ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
114
- children: e.label
115
- }, e.label))
116
- }),
117
- /* @__PURE__ */ x("div", {
118
- className: "flex gap-4",
119
- children: [
120
- /* @__PURE__ */ b(i, {
121
- value: O,
122
- onChange: k,
123
- placeholder: j("pressKit.searchPlaceholder", "Search press kit assets..."),
124
- className: "flex-1"
125
- }),
126
- /* @__PURE__ */ b("button", {
127
- type: "button",
128
- onClick: () => L(),
129
- className: "inline-flex items-center gap-2 px-4 py-2 bg-surface text-text-primary border border-default rounded-lg hover:bg-bg-sunken transition-all duration-200",
130
- children: /* @__PURE__ */ b(_, { size: 18 })
131
- }),
132
- P.length > 0 && /* @__PURE__ */ b("button", {
89
+ return /* @__PURE__ */ S("div", {
90
+ className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
91
+ children: [
92
+ /* @__PURE__ */ S("div", {
93
+ className: "mb-6",
94
+ children: [
95
+ /* @__PURE__ */ S("div", {
96
+ className: "flex items-center justify-between mb-4",
97
+ children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h1", {
98
+ className: "text-3xl font-bold text-text-primary mb-2",
99
+ children: M("pressKit.title", "Press Kit")
100
+ }), /* @__PURE__ */ x("p", {
101
+ className: "text-text-secondary",
102
+ children: M("pressKit.subtitle", "Manage downloadable press & media assets")
103
+ })] }), /* @__PURE__ */ x(C, {
104
+ role: "super_admin",
105
+ children: /* @__PURE__ */ S("button", {
106
+ type: "button",
107
+ onClick: () => E(`${O}/new`),
108
+ className: "inline-flex items-center gap-2 px-4 py-2 bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-lg hover:opacity-90 transition-all duration-200 font-medium",
109
+ children: [/* @__PURE__ */ x(_, { size: 20 }), M("pressKit.newAsset", "New Asset")]
110
+ })
111
+ })]
112
+ }),
113
+ /* @__PURE__ */ x("div", {
114
+ className: "flex flex-wrap gap-1 border-b border-default pb-px",
115
+ children: w.map((e) => /* @__PURE__ */ x("button", {
133
116
  type: "button",
134
- onClick: () => a("press-kit-assets", P.map((e) => ({
135
- id: e.id,
136
- slug: e.slug,
137
- title: e.title,
138
- category: e.category,
139
- fileUrl: e.fileUrl,
140
- mimeType: e.mimeType ?? "",
141
- visibility: e.visibility,
142
- sortOrder: e.sortOrder,
143
- productId: e.productId,
144
- updatedAt: e.updatedAt
145
- }))),
146
- className: "inline-flex items-center gap-2 px-4 py-2 bg-surface text-text-primary border border-default rounded-lg hover:bg-bg-sunken transition-all duration-200",
147
- title: j("pressKit.exportCsv", "Export as CSV"),
148
- children: /* @__PURE__ */ b(p, { size: 18 })
149
- })
150
- ]
151
- })
152
- ]
153
- }), I ? /* @__PURE__ */ b(r, {
154
- message: I.message,
155
- action: {
156
- label: j("productCommon.retry", "Retry"),
157
- onClick: () => L()
158
- }
159
- }) : F && P.length === 0 ? /* @__PURE__ */ b(n, { message: j("pressKit.loadingAssets", "Loading press kit assets...") }) : P.length === 0 ? /* @__PURE__ */ x("div", {
160
- className: "bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-300",
161
- children: [/* @__PURE__ */ b("p", {
162
- className: "text-text-secondary mb-4",
163
- children: j("pressKit.noAssetsFound", "No press kit assets found")
164
- }), /* @__PURE__ */ b(S, {
165
- role: "super_admin",
166
- children: /* @__PURE__ */ x("button", {
167
- type: "button",
168
- onClick: () => T(`${D}/new`),
169
- className: "inline-flex items-center gap-2 px-4 py-2 bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-lg hover:opacity-90 transition-all duration-200 font-medium",
170
- children: [/* @__PURE__ */ b(g, { size: 20 }), j("pressKit.newAsset", "New Asset")]
171
- })
172
- })]
173
- }) : /* @__PURE__ */ b("div", {
174
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden",
175
- children: /* @__PURE__ */ x("table", {
176
- className: "w-full",
177
- children: [/* @__PURE__ */ b("thead", {
178
- className: "bg-bg-sunken border-b border-default",
179
- children: /* @__PURE__ */ x("tr", { children: [
180
- /* @__PURE__ */ b("th", {
181
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
182
- children: j("pressKit.columnAsset", "Asset")
183
- }),
184
- /* @__PURE__ */ b("th", {
185
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
186
- children: j("pressKit.columnCategory", "Category")
187
- }),
188
- /* @__PURE__ */ b("th", {
189
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
190
- children: j("pressKit.columnFile", "File")
191
- }),
192
- /* @__PURE__ */ b("th", {
193
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
194
- children: j("pressKit.columnVisibility", "Visibility")
195
- }),
196
- /* @__PURE__ */ b("th", {
197
- className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
198
- children: j("pressKit.columnUpdated", "Updated")
199
- }),
200
- /* @__PURE__ */ b("th", {
201
- className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
202
- children: j("pressKit.columnActions", "Actions")
203
- })
204
- ] })
205
- }), /* @__PURE__ */ b("tbody", {
206
- className: "divide-y divide-[var(--color-border-default)]",
207
- children: P.map((e) => /* @__PURE__ */ x("tr", {
208
- className: "hover:bg-bg-sunken transition-all duration-200 cursor-pointer",
209
- onClick: () => T(`${D}/${e.id}`),
117
+ onClick: () => P({
118
+ ...N,
119
+ category: e.category || void 0
120
+ }),
121
+ className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(N.category ?? "") === e.category ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
122
+ children: e.label
123
+ }, e.label))
124
+ }),
125
+ /* @__PURE__ */ S("div", {
126
+ className: "flex gap-4",
210
127
  children: [
211
- /* @__PURE__ */ b("td", {
212
- className: "px-6 py-4",
213
- children: /* @__PURE__ */ x("div", {
214
- className: "flex items-center gap-3",
215
- children: [/* @__PURE__ */ b("div", {
216
- className: "size-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center overflow-hidden",
217
- children: e.thumbnailUrl ? /* @__PURE__ */ b("img", {
218
- src: e.thumbnailUrl,
219
- alt: "",
220
- className: "w-full h-full object-cover"
221
- }) : /* @__PURE__ */ b(h, {
222
- size: 20,
223
- className: "text-[var(--color-status-info)]"
224
- })
225
- }), /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
226
- className: "font-medium text-text-primary",
227
- children: e.title
228
- }), /* @__PURE__ */ x("p", {
229
- className: "text-xs text-text-tertiary font-mono",
230
- children: ["/", e.slug]
231
- })] })]
232
- })
128
+ /* @__PURE__ */ x(i, {
129
+ value: k,
130
+ onChange: A,
131
+ placeholder: M("pressKit.searchPlaceholder", "Search press kit assets..."),
132
+ className: "flex-1"
233
133
  }),
234
- /* @__PURE__ */ b("td", {
235
- className: "px-6 py-4",
236
- children: /* @__PURE__ */ b("span", {
237
- className: "text-xs font-medium px-2 py-1 rounded-full bg-[var(--color-status-info-subtle)] text-[var(--color-status-info)]",
238
- children: e.category.replace(/_/g, " ")
239
- })
134
+ /* @__PURE__ */ x("button", {
135
+ type: "button",
136
+ onClick: () => R(),
137
+ className: "inline-flex items-center gap-2 px-4 py-2 bg-surface text-text-primary border border-default rounded-lg hover:bg-bg-sunken transition-all duration-200",
138
+ children: /* @__PURE__ */ x(v, { size: 18 })
240
139
  }),
241
- /* @__PURE__ */ b("td", {
242
- className: "px-6 py-4",
243
- children: /* @__PURE__ */ x("span", {
244
- className: "text-sm text-text-secondary",
245
- children: [
246
- (e.mimeType ?? "file").split("/").pop(),
247
- " · ",
248
- w(e.fileSize)
249
- ]
250
- })
140
+ F.length > 0 && /* @__PURE__ */ x("button", {
141
+ type: "button",
142
+ onClick: () => a("press-kit-assets", F.map((e) => ({
143
+ id: e.id,
144
+ slug: e.slug,
145
+ title: e.title,
146
+ category: e.category,
147
+ fileUrl: e.fileUrl,
148
+ mimeType: e.mimeType ?? "",
149
+ visibility: e.visibility,
150
+ sortOrder: e.sortOrder,
151
+ productId: e.productId,
152
+ updatedAt: e.updatedAt
153
+ }))),
154
+ className: "inline-flex items-center gap-2 px-4 py-2 bg-surface text-text-primary border border-default rounded-lg hover:bg-bg-sunken transition-all duration-200",
155
+ title: M("pressKit.exportCsv", "Export as CSV"),
156
+ children: /* @__PURE__ */ x(m, { size: 18 })
157
+ })
158
+ ]
159
+ })
160
+ ]
161
+ }),
162
+ L ? /* @__PURE__ */ x(r, {
163
+ message: L.message,
164
+ action: {
165
+ label: M("productCommon.retry", "Retry"),
166
+ onClick: () => R()
167
+ }
168
+ }) : I && F.length === 0 ? /* @__PURE__ */ x(n, { message: M("pressKit.loadingAssets", "Loading press kit assets...") }) : F.length === 0 ? /* @__PURE__ */ S("div", {
169
+ className: "bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-200",
170
+ children: [/* @__PURE__ */ x("p", {
171
+ className: "text-text-secondary mb-4",
172
+ children: M("pressKit.noAssetsFound", "No press kit assets found")
173
+ }), /* @__PURE__ */ x(C, {
174
+ role: "super_admin",
175
+ children: /* @__PURE__ */ S("button", {
176
+ type: "button",
177
+ onClick: () => E(`${O}/new`),
178
+ className: "inline-flex items-center gap-2 px-4 py-2 bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-lg hover:opacity-90 transition-all duration-200 font-medium",
179
+ children: [/* @__PURE__ */ x(_, { size: 20 }), M("pressKit.newAsset", "New Asset")]
180
+ })
181
+ })]
182
+ }) : /* @__PURE__ */ x("div", {
183
+ className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden",
184
+ children: /* @__PURE__ */ S("table", {
185
+ className: "w-full",
186
+ children: [/* @__PURE__ */ x("thead", {
187
+ className: "bg-bg-sunken border-b border-default",
188
+ children: /* @__PURE__ */ S("tr", { children: [
189
+ /* @__PURE__ */ x("th", {
190
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
191
+ children: M("pressKit.columnAsset", "Asset")
251
192
  }),
252
- /* @__PURE__ */ b("td", {
253
- className: "px-6 py-4",
254
- children: /* @__PURE__ */ b("span", {
255
- className: "text-sm text-text-secondary",
256
- children: e.visibility
257
- })
193
+ /* @__PURE__ */ x("th", {
194
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
195
+ children: M("pressKit.columnCategory", "Category")
258
196
  }),
259
- /* @__PURE__ */ b("td", {
260
- className: "px-6 py-4",
261
- children: /* @__PURE__ */ b("span", {
262
- className: "text-sm text-text-secondary",
263
- children: V(e.updatedAt)
264
- })
197
+ /* @__PURE__ */ x("th", {
198
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
199
+ children: M("pressKit.columnFile", "File")
265
200
  }),
266
- /* @__PURE__ */ b("td", {
267
- className: "px-6 py-4",
268
- children: /* @__PURE__ */ x("div", {
269
- className: "flex items-center justify-end gap-2",
270
- onClick: (e) => e.stopPropagation(),
271
- children: [
272
- /* @__PURE__ */ b("a", {
273
- href: e.fileUrl,
274
- target: "_blank",
275
- rel: "noopener noreferrer",
276
- className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
277
- title: j("pressKit.download", "Download"),
278
- children: /* @__PURE__ */ b(p, { size: 18 })
279
- }),
280
- /* @__PURE__ */ b("button", {
281
- type: "button",
282
- onClick: () => T(`${D}/${e.id}`),
283
- className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
284
- title: j("pressKit.viewDetails", "View details"),
285
- children: /* @__PURE__ */ b(m, { size: 18 })
286
- }),
287
- /* @__PURE__ */ x(S, {
288
- role: "super_admin",
289
- children: [/* @__PURE__ */ b("button", {
290
- type: "button",
291
- onClick: () => T(`${D}/${e.id}/edit`),
201
+ /* @__PURE__ */ x("th", {
202
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
203
+ children: M("pressKit.columnVisibility", "Visibility")
204
+ }),
205
+ /* @__PURE__ */ x("th", {
206
+ className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
207
+ children: M("pressKit.columnUpdated", "Updated")
208
+ }),
209
+ /* @__PURE__ */ x("th", {
210
+ className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
211
+ children: M("pressKit.columnActions", "Actions")
212
+ })
213
+ ] })
214
+ }), /* @__PURE__ */ x("tbody", {
215
+ className: "divide-y divide-[var(--color-border-default)]",
216
+ children: F.map((e) => /* @__PURE__ */ S("tr", {
217
+ className: "hover:bg-bg-sunken transition-all duration-200 cursor-pointer",
218
+ onClick: () => E(`${O}/${e.id}`),
219
+ children: [
220
+ /* @__PURE__ */ x("td", {
221
+ className: "px-6 py-4",
222
+ children: /* @__PURE__ */ S("div", {
223
+ className: "flex items-center gap-3",
224
+ children: [/* @__PURE__ */ x("div", {
225
+ className: "size-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center overflow-hidden",
226
+ children: e.thumbnailUrl ? /* @__PURE__ */ x("img", {
227
+ src: e.thumbnailUrl,
228
+ alt: "",
229
+ className: "w-full h-full object-cover"
230
+ }) : /* @__PURE__ */ x(g, {
231
+ size: 20,
232
+ className: "text-[var(--color-status-info)]"
233
+ })
234
+ }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
235
+ className: "font-medium text-text-primary",
236
+ children: e.title
237
+ }), /* @__PURE__ */ S("p", {
238
+ className: "text-xs text-text-tertiary font-mono",
239
+ children: ["/", e.slug]
240
+ })] })]
241
+ })
242
+ }),
243
+ /* @__PURE__ */ x("td", {
244
+ className: "px-6 py-4",
245
+ children: /* @__PURE__ */ x("span", {
246
+ className: "text-xs font-medium px-2 py-1 rounded-full bg-[var(--color-status-info-subtle)] text-[var(--color-status-info)]",
247
+ children: e.category.replace(/_/g, " ")
248
+ })
249
+ }),
250
+ /* @__PURE__ */ x("td", {
251
+ className: "px-6 py-4",
252
+ children: /* @__PURE__ */ S("span", {
253
+ className: "text-sm text-text-secondary",
254
+ children: [
255
+ (e.mimeType ?? "file").split("/").pop(),
256
+ " · ",
257
+ T(e.fileSize)
258
+ ]
259
+ })
260
+ }),
261
+ /* @__PURE__ */ x("td", {
262
+ className: "px-6 py-4",
263
+ children: /* @__PURE__ */ x("span", {
264
+ className: "text-sm text-text-secondary",
265
+ children: e.visibility
266
+ })
267
+ }),
268
+ /* @__PURE__ */ x("td", {
269
+ className: "px-6 py-4",
270
+ children: /* @__PURE__ */ x("span", {
271
+ className: "text-sm text-text-secondary",
272
+ children: W(e.updatedAt)
273
+ })
274
+ }),
275
+ /* @__PURE__ */ x("td", {
276
+ className: "px-6 py-4",
277
+ children: /* @__PURE__ */ S("div", {
278
+ className: "flex items-center justify-end gap-2",
279
+ onClick: (e) => e.stopPropagation(),
280
+ children: [
281
+ /* @__PURE__ */ x("a", {
282
+ href: e.fileUrl,
283
+ target: "_blank",
284
+ rel: "noopener noreferrer",
292
285
  className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
293
- title: j("pressKit.edit", "Edit"),
294
- children: /* @__PURE__ */ b(v, { size: 18 })
295
- }), /* @__PURE__ */ b("button", {
286
+ title: M("pressKit.download", "Download"),
287
+ children: /* @__PURE__ */ x(m, { size: 18 })
288
+ }),
289
+ /* @__PURE__ */ x("button", {
296
290
  type: "button",
297
- onClick: () => B(e.id),
298
- disabled: z,
299
- className: "p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50",
300
- title: j("pressKit.delete", "Delete"),
301
- children: /* @__PURE__ */ b(y, { size: 18 })
302
- })]
303
- })
304
- ]
291
+ onClick: () => E(`${O}/${e.id}`),
292
+ className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
293
+ title: M("pressKit.viewDetails", "View details"),
294
+ children: /* @__PURE__ */ x(h, { size: 18 })
295
+ }),
296
+ /* @__PURE__ */ S(C, {
297
+ role: "super_admin",
298
+ children: [/* @__PURE__ */ x("button", {
299
+ type: "button",
300
+ onClick: () => E(`${O}/${e.id}/edit`),
301
+ className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
302
+ title: M("pressKit.edit", "Edit"),
303
+ children: /* @__PURE__ */ x(y, { size: 18 })
304
+ }), /* @__PURE__ */ x("button", {
305
+ type: "button",
306
+ onClick: () => U(e.id),
307
+ disabled: B,
308
+ className: "p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50",
309
+ title: M("pressKit.delete", "Delete"),
310
+ children: /* @__PURE__ */ x(b, { size: 18 })
311
+ })]
312
+ })
313
+ ]
314
+ })
305
315
  })
306
- })
307
- ]
308
- }, e.id))
309
- })]
310
- })
311
- })]
316
+ ]
317
+ }, e.id))
318
+ })]
319
+ })
320
+ }),
321
+ H
322
+ ]
312
323
  });
313
324
  }
314
325
  //#endregion
315
- export { T as PressKitListPage };
326
+ export { E as PressKitListPage };
316
327
 
317
328
  //# sourceMappingURL=PressKitListPage.js.map