@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.
- package/dist/product/pages/ContentPageViewPage.js +42 -43
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +88 -87
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +341 -473
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +8 -10
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +250 -252
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +72 -72
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +490 -492
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +130 -129
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +195 -203
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +88 -87
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/shared/components/MarkdownEditor.js +161 -0
- package/dist/shared/components/MarkdownEditor.js.map +1 -0
- package/dist/shared/components/index.js +1 -0
- package/package.json +5 -5
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -555
- package/dist/node_modules/dompurify/dist/purify.es.js.map +0 -1
- package/dist/shared/utils/renderMarkdown.js +0 -8
- package/dist/shared/utils/renderMarkdown.js.map +0 -1
|
@@ -12,53 +12,54 @@ import { ArrowLeft as p, Edit as m, ExternalLink as h, FileText as g, Link as _,
|
|
|
12
12
|
import { useI18n as E } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
13
13
|
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
14
14
|
import { useParams as k } from "react-router-dom";
|
|
15
|
-
import {
|
|
15
|
+
import { Markdown as A } from "@burdenoff/fe-libs/shared/components";
|
|
16
|
+
import { CTAOverflowMenu as j, EmphasisPanel as M, NextSteps as N, PagePurpose as P } from "@burdenoff/fe-libs/ui";
|
|
16
17
|
//#region src/product-management/modules/products/pages/ProductDetailPage.tsx
|
|
17
|
-
function
|
|
18
|
-
let { id:
|
|
19
|
-
let n =
|
|
18
|
+
function F() {
|
|
19
|
+
let { id: F } = k(), { navigate: I, basePath: L = "/products" } = e(), { t: R } = E(), z = (e, t) => {
|
|
20
|
+
let n = R(e);
|
|
20
21
|
return n === e ? t : n;
|
|
21
|
-
}, { product:
|
|
22
|
+
}, { product: B, loading: V, error: H } = i(F), { deleteProduct: U, loading: W } = r(), { confirm: G, ConfirmDialog: K } = l(), q = async () => {
|
|
22
23
|
s("medium");
|
|
23
|
-
let e =
|
|
24
|
+
let e = z("products.confirmDeleteProduct", "Are you sure you want to delete this product?"), t = await o({
|
|
24
25
|
title: "Delete product",
|
|
25
26
|
message: e,
|
|
26
27
|
okButtonTitle: "Delete",
|
|
27
28
|
cancelButtonTitle: "Cancel"
|
|
28
29
|
});
|
|
29
|
-
if (t === null ? await
|
|
30
|
+
if (t === null ? await G({
|
|
30
31
|
title: "Delete product",
|
|
31
32
|
message: e,
|
|
32
33
|
okButtonTitle: "Delete",
|
|
33
34
|
cancelButtonTitle: "Cancel",
|
|
34
35
|
destructive: !0
|
|
35
36
|
}) : t) try {
|
|
36
|
-
await
|
|
37
|
+
await U(B.id), c("success"), I(L);
|
|
37
38
|
} catch (e) {
|
|
38
39
|
c("error"), console.error("Failed to delete product:", e);
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
|
-
if (
|
|
42
|
+
if (V) return /* @__PURE__ */ D("div", {
|
|
42
43
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
43
|
-
children: /* @__PURE__ */ D(t, { message:
|
|
44
|
+
children: /* @__PURE__ */ D(t, { message: z("products.loadingProductDetails", "Loading product details...") })
|
|
44
45
|
});
|
|
45
|
-
if (
|
|
46
|
+
if (H || !B) return /* @__PURE__ */ D("div", {
|
|
46
47
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
47
48
|
children: /* @__PURE__ */ D(n, {
|
|
48
|
-
message:
|
|
49
|
+
message: H?.message || z("products.productNotFound", "Product not found"),
|
|
49
50
|
action: {
|
|
50
|
-
label:
|
|
51
|
-
onClick: () =>
|
|
51
|
+
label: z("products.backToProducts", "Back to Products"),
|
|
52
|
+
onClick: () => I(L)
|
|
52
53
|
}
|
|
53
54
|
})
|
|
54
55
|
});
|
|
55
|
-
let
|
|
56
|
+
let J = (e) => new Date(e).toLocaleDateString("en-US", {
|
|
56
57
|
year: "numeric",
|
|
57
58
|
month: "long",
|
|
58
59
|
day: "numeric",
|
|
59
60
|
hour: "2-digit",
|
|
60
61
|
minute: "2-digit"
|
|
61
|
-
}),
|
|
62
|
+
}), Y = B.contactEmail || B.supportEmail || B.contactPhone || B.contactAddress, X = B.seoTitle || B.seoDescription || B.seoKeywords || B.ogImage, Z = B.appStoreUrl || B.playStoreUrl, Q = B.socialLinks && Object.keys(B.socialLinks).length > 0, $ = B.resourceLinks && Object.keys(B.resourceLinks).length > 0;
|
|
62
63
|
return /* @__PURE__ */ O("div", {
|
|
63
64
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
|
|
64
65
|
children: [
|
|
@@ -66,19 +67,19 @@ function P() {
|
|
|
66
67
|
className: "mb-6",
|
|
67
68
|
children: [/* @__PURE__ */ O("button", {
|
|
68
69
|
type: "button",
|
|
69
|
-
onClick: () =>
|
|
70
|
+
onClick: () => I(L),
|
|
70
71
|
className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n ",
|
|
71
72
|
children: [/* @__PURE__ */ D(p, { size: 20 }), /* @__PURE__ */ D("span", {
|
|
72
73
|
className: "text-sm font-medium",
|
|
73
|
-
children:
|
|
74
|
+
children: z("products.backToProducts", "Back to Products")
|
|
74
75
|
})]
|
|
75
|
-
}), /* @__PURE__ */ O(
|
|
76
|
+
}), /* @__PURE__ */ O(M, {
|
|
76
77
|
className: "relative overflow-hidden flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",
|
|
77
78
|
children: [/* @__PURE__ */ O("div", {
|
|
78
79
|
className: "flex items-center gap-4",
|
|
79
|
-
children: [
|
|
80
|
-
src:
|
|
81
|
-
alt:
|
|
80
|
+
children: [B.logoUrl ? /* @__PURE__ */ D("img", {
|
|
81
|
+
src: B.logoUrl,
|
|
82
|
+
alt: B.name,
|
|
82
83
|
className: "size-16 rounded-card object-cover border border-border-seam"
|
|
83
84
|
}) : /* @__PURE__ */ D("div", {
|
|
84
85
|
className: "size-16 rounded-card bg-[var(--color-status-warning-subtle)] flex items-center justify-center",
|
|
@@ -90,55 +91,55 @@ function P() {
|
|
|
90
91
|
className: "flex items-center gap-3 mb-2",
|
|
91
92
|
children: [/* @__PURE__ */ D("h1", {
|
|
92
93
|
className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
|
|
93
|
-
children:
|
|
94
|
-
}), /* @__PURE__ */ D(a, { status:
|
|
94
|
+
children: B.name
|
|
95
|
+
}), /* @__PURE__ */ D(a, { status: B.status })]
|
|
95
96
|
}), /* @__PURE__ */ O("p", {
|
|
96
97
|
className: "text-text-secondary font-mono",
|
|
97
|
-
children: ["/",
|
|
98
|
+
children: ["/", B.slug]
|
|
98
99
|
})] })]
|
|
99
|
-
}), /* @__PURE__ */ D(
|
|
100
|
+
}), /* @__PURE__ */ D(j, {
|
|
100
101
|
primary: {
|
|
101
|
-
label:
|
|
102
|
-
onSelect: () =>
|
|
102
|
+
label: z("products.editProduct", "Edit Product"),
|
|
103
|
+
onSelect: () => I(`${L}/${B.id}/edit`),
|
|
103
104
|
icon: /* @__PURE__ */ D(m, { className: "size-4" })
|
|
104
105
|
},
|
|
105
106
|
actions: [{
|
|
106
|
-
label:
|
|
107
|
+
label: z("products.delete", "Delete"),
|
|
107
108
|
onSelect: () => {
|
|
108
|
-
|
|
109
|
+
q();
|
|
109
110
|
},
|
|
110
111
|
intent: "destructive",
|
|
111
|
-
disabled:
|
|
112
|
+
disabled: W,
|
|
112
113
|
icon: /* @__PURE__ */ D(T, { className: "size-4" })
|
|
113
114
|
}]
|
|
114
115
|
})]
|
|
115
116
|
})]
|
|
116
117
|
}),
|
|
117
|
-
/* @__PURE__ */ D(
|
|
118
|
+
/* @__PURE__ */ D(P, {
|
|
118
119
|
className: "mb-6",
|
|
119
|
-
children:
|
|
120
|
+
children: z("products.detailPurpose", `This is the control center for ${B.name} — review and edit everything users see (details, contact info, SEO, store links), manage its content pages, and check the activity history of who changed what.`)
|
|
120
121
|
}),
|
|
121
|
-
/* @__PURE__ */ D(
|
|
122
|
+
/* @__PURE__ */ D(N, {
|
|
122
123
|
storageKey: "product-product-detail",
|
|
123
124
|
className: "mb-6",
|
|
124
125
|
steps: [
|
|
125
126
|
{
|
|
126
127
|
id: "edit-product",
|
|
127
|
-
label:
|
|
128
|
-
description:
|
|
129
|
-
onClick: () =>
|
|
128
|
+
label: z("products.steps.edit", "Edit product details"),
|
|
129
|
+
description: z("products.steps.editDesc", "Update the name, description, status, links and metadata."),
|
|
130
|
+
onClick: () => I(`${L}/${B.id}/edit`)
|
|
130
131
|
},
|
|
131
132
|
{
|
|
132
133
|
id: "content-pages",
|
|
133
|
-
label:
|
|
134
|
-
description:
|
|
135
|
-
onClick: () =>
|
|
134
|
+
label: z("products.steps.content", "Manage content pages"),
|
|
135
|
+
description: z("products.steps.contentDesc", "Add guides, policies, or announcements shown for this product."),
|
|
136
|
+
onClick: () => I(`${L}/content-pages`)
|
|
136
137
|
},
|
|
137
138
|
{
|
|
138
139
|
id: "review-status",
|
|
139
|
-
label:
|
|
140
|
-
description:
|
|
141
|
-
onClick: () =>
|
|
140
|
+
label: z("products.steps.status", "Confirm the launch status"),
|
|
141
|
+
description: z("products.steps.statusDesc", "Make sure draft / waitlist / coming-soon / active reflects reality before users see it."),
|
|
142
|
+
onClick: () => I(`${L}/${B.id}/edit`)
|
|
142
143
|
}
|
|
143
144
|
]
|
|
144
145
|
}),
|
|
@@ -149,163 +150,163 @@ function P() {
|
|
|
149
150
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
150
151
|
children: [/* @__PURE__ */ D("h2", {
|
|
151
152
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
152
|
-
children:
|
|
153
|
+
children: z("products.basicInformation", "Basic Information")
|
|
153
154
|
}), /* @__PURE__ */ O("dl", {
|
|
154
155
|
className: "space-y-3",
|
|
155
156
|
children: [
|
|
156
157
|
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
157
158
|
className: "text-sm font-medium text-text-secondary",
|
|
158
|
-
children:
|
|
159
|
+
children: z("products.name", "Name")
|
|
159
160
|
}), /* @__PURE__ */ D("dd", {
|
|
160
161
|
className: "text-sm text-text-primary mt-1",
|
|
161
|
-
children:
|
|
162
|
+
children: B.name
|
|
162
163
|
})] }),
|
|
163
164
|
/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
164
165
|
className: "text-sm font-medium text-text-secondary",
|
|
165
|
-
children:
|
|
166
|
+
children: z("products.slug", "Slug")
|
|
166
167
|
}), /* @__PURE__ */ D("dd", {
|
|
167
168
|
className: "text-sm text-text-primary mt-1 font-mono",
|
|
168
|
-
children:
|
|
169
|
+
children: B.slug
|
|
169
170
|
})] }),
|
|
170
|
-
|
|
171
|
+
B.tags && B.tags.length > 0 && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
171
172
|
className: "text-sm font-medium text-text-secondary mb-1",
|
|
172
|
-
children:
|
|
173
|
-
}), /* @__PURE__ */ D("dd", { children: /* @__PURE__ */ D(u, { tags:
|
|
173
|
+
children: z("products.tags", "Tags")
|
|
174
|
+
}), /* @__PURE__ */ D("dd", { children: /* @__PURE__ */ D(u, { tags: B.tags }) })] })
|
|
174
175
|
]
|
|
175
176
|
})]
|
|
176
177
|
}),
|
|
177
|
-
|
|
178
|
+
B.description && /* @__PURE__ */ O("div", {
|
|
178
179
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
179
180
|
children: [/* @__PURE__ */ D("h2", {
|
|
180
181
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
181
|
-
children:
|
|
182
|
-
}), /* @__PURE__ */ D("
|
|
182
|
+
children: z("products.description", "Description")
|
|
183
|
+
}), /* @__PURE__ */ D("div", {
|
|
183
184
|
className: "text-sm text-text-secondary leading-relaxed",
|
|
184
|
-
children:
|
|
185
|
+
children: /* @__PURE__ */ D(A, { children: B.description })
|
|
185
186
|
})]
|
|
186
187
|
}),
|
|
187
188
|
/* @__PURE__ */ O("div", {
|
|
188
189
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
189
190
|
children: [/* @__PURE__ */ D("h2", {
|
|
190
191
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
191
|
-
children:
|
|
192
|
+
children: z("products.timestamps", "Timestamps")
|
|
192
193
|
}), /* @__PURE__ */ O("dl", {
|
|
193
194
|
className: "space-y-3",
|
|
194
195
|
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
195
196
|
className: "text-sm font-medium text-text-secondary",
|
|
196
|
-
children:
|
|
197
|
+
children: z("products.created", "Created")
|
|
197
198
|
}), /* @__PURE__ */ D("dd", {
|
|
198
199
|
className: "text-sm text-text-primary mt-1",
|
|
199
|
-
children:
|
|
200
|
+
children: J(B.createdAt)
|
|
200
201
|
})] }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
201
202
|
className: "text-sm font-medium text-text-secondary",
|
|
202
|
-
children:
|
|
203
|
+
children: z("products.lastUpdated", "Last Updated")
|
|
203
204
|
}), /* @__PURE__ */ D("dd", {
|
|
204
205
|
className: "text-sm text-text-primary mt-1",
|
|
205
|
-
children:
|
|
206
|
+
children: J(B.updatedAt)
|
|
206
207
|
})] })]
|
|
207
208
|
})]
|
|
208
209
|
}),
|
|
209
|
-
|
|
210
|
+
Y && /* @__PURE__ */ O("div", {
|
|
210
211
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
211
212
|
children: [/* @__PURE__ */ D("h2", {
|
|
212
213
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
213
|
-
children:
|
|
214
|
+
children: z("products.contactInformation", "Contact Information")
|
|
214
215
|
}), /* @__PURE__ */ O("dl", {
|
|
215
216
|
className: "space-y-3",
|
|
216
217
|
children: [
|
|
217
|
-
|
|
218
|
+
B.contactEmail && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("dt", {
|
|
218
219
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
219
|
-
children: [/* @__PURE__ */ D(v, { size: 14 }),
|
|
220
|
+
children: [/* @__PURE__ */ D(v, { size: 14 }), z("products.contactEmail", "Contact Email")]
|
|
220
221
|
}), /* @__PURE__ */ D("dd", {
|
|
221
222
|
className: "text-sm mt-1",
|
|
222
223
|
children: /* @__PURE__ */ D("a", {
|
|
223
|
-
href: `mailto:${
|
|
224
|
+
href: `mailto:${B.contactEmail}`,
|
|
224
225
|
className: "text-[var(--color-text-link)] hover:underline",
|
|
225
|
-
children:
|
|
226
|
+
children: B.contactEmail
|
|
226
227
|
})
|
|
227
228
|
})] }),
|
|
228
|
-
|
|
229
|
+
B.supportEmail && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("dt", {
|
|
229
230
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
230
|
-
children: [/* @__PURE__ */ D(v, { size: 14 }),
|
|
231
|
+
children: [/* @__PURE__ */ D(v, { size: 14 }), z("products.supportEmail", "Support Email")]
|
|
231
232
|
}), /* @__PURE__ */ D("dd", {
|
|
232
233
|
className: "text-sm mt-1",
|
|
233
234
|
children: /* @__PURE__ */ D("a", {
|
|
234
|
-
href: `mailto:${
|
|
235
|
+
href: `mailto:${B.supportEmail}`,
|
|
235
236
|
className: "text-[var(--color-text-link)] hover:underline",
|
|
236
|
-
children:
|
|
237
|
+
children: B.supportEmail
|
|
237
238
|
})
|
|
238
239
|
})] }),
|
|
239
|
-
|
|
240
|
+
B.contactPhone && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("dt", {
|
|
240
241
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
241
|
-
children: [/* @__PURE__ */ D(x, { size: 14 }),
|
|
242
|
+
children: [/* @__PURE__ */ D(x, { size: 14 }), z("products.phone", "Phone")]
|
|
242
243
|
}), /* @__PURE__ */ D("dd", {
|
|
243
244
|
className: "text-sm mt-1",
|
|
244
245
|
children: /* @__PURE__ */ D("a", {
|
|
245
|
-
href: `tel:${
|
|
246
|
+
href: `tel:${B.contactPhone}`,
|
|
246
247
|
className: "text-[var(--color-text-link)] hover:underline",
|
|
247
|
-
children:
|
|
248
|
+
children: B.contactPhone
|
|
248
249
|
})
|
|
249
250
|
})] }),
|
|
250
|
-
|
|
251
|
+
B.contactAddress && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("dt", {
|
|
251
252
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
252
|
-
children: [/* @__PURE__ */ D(y, { size: 14 }),
|
|
253
|
+
children: [/* @__PURE__ */ D(y, { size: 14 }), z("products.address", "Address")]
|
|
253
254
|
}), /* @__PURE__ */ D("dd", {
|
|
254
255
|
className: "text-sm text-text-primary mt-1",
|
|
255
|
-
children:
|
|
256
|
+
children: B.contactAddress
|
|
256
257
|
})] })
|
|
257
258
|
]
|
|
258
259
|
})]
|
|
259
260
|
}),
|
|
260
|
-
|
|
261
|
+
X && /* @__PURE__ */ O("div", {
|
|
261
262
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
262
263
|
children: [/* @__PURE__ */ O("h2", {
|
|
263
264
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
264
|
-
children: [/* @__PURE__ */ D(S, { size: 18 }),
|
|
265
|
+
children: [/* @__PURE__ */ D(S, { size: 18 }), z("products.seoMetadata", "SEO Metadata")]
|
|
265
266
|
}), /* @__PURE__ */ O("dl", {
|
|
266
267
|
className: "space-y-3",
|
|
267
268
|
children: [
|
|
268
|
-
|
|
269
|
+
B.seoTitle && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
269
270
|
className: "text-sm font-medium text-text-secondary",
|
|
270
|
-
children:
|
|
271
|
+
children: z("products.seoTitle", "SEO Title")
|
|
271
272
|
}), /* @__PURE__ */ D("dd", {
|
|
272
273
|
className: "text-sm text-text-primary mt-1",
|
|
273
|
-
children:
|
|
274
|
+
children: B.seoTitle
|
|
274
275
|
})] }),
|
|
275
|
-
|
|
276
|
+
B.seoDescription && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
276
277
|
className: "text-sm font-medium text-text-secondary",
|
|
277
|
-
children:
|
|
278
|
+
children: z("products.seoDescription", "SEO Description")
|
|
278
279
|
}), /* @__PURE__ */ D("dd", {
|
|
279
280
|
className: "text-sm text-text-primary mt-1 leading-relaxed",
|
|
280
|
-
children:
|
|
281
|
+
children: B.seoDescription
|
|
281
282
|
})] }),
|
|
282
|
-
|
|
283
|
+
B.seoKeywords && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
283
284
|
className: "text-sm font-medium text-text-secondary",
|
|
284
|
-
children:
|
|
285
|
+
children: z("products.keywords", "Keywords")
|
|
285
286
|
}), /* @__PURE__ */ D("dd", {
|
|
286
287
|
className: "text-sm text-text-primary mt-1",
|
|
287
288
|
children: /* @__PURE__ */ D("div", {
|
|
288
289
|
className: "flex flex-wrap gap-1.5 mt-1",
|
|
289
|
-
children: (typeof
|
|
290
|
+
children: (typeof B.seoKeywords == "string" ? B.seoKeywords.split(",").map((e) => e.trim()) : B.seoKeywords).map((e) => /* @__PURE__ */ D("span", {
|
|
290
291
|
className: "inline-flex px-2 py-0.5 text-xs font-medium rounded-full bg-bg-sunken text-text-secondary border border-default",
|
|
291
292
|
children: e
|
|
292
293
|
}, e))
|
|
293
294
|
})
|
|
294
295
|
})] }),
|
|
295
|
-
|
|
296
|
+
B.ogImage && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
296
297
|
className: "text-sm font-medium text-text-secondary",
|
|
297
|
-
children:
|
|
298
|
+
children: z("products.ogImage", "OG Image")
|
|
298
299
|
}), /* @__PURE__ */ O("dd", {
|
|
299
300
|
className: "text-sm mt-1",
|
|
300
301
|
children: [/* @__PURE__ */ D("a", {
|
|
301
|
-
href:
|
|
302
|
+
href: B.ogImage,
|
|
302
303
|
target: "_blank",
|
|
303
304
|
rel: "noopener noreferrer",
|
|
304
305
|
className: "text-[var(--color-text-link)] hover:underline break-all",
|
|
305
|
-
children:
|
|
306
|
+
children: B.ogImage
|
|
306
307
|
}), /* @__PURE__ */ D("img", {
|
|
307
|
-
src:
|
|
308
|
-
alt:
|
|
308
|
+
src: B.ogImage,
|
|
309
|
+
alt: z("products.ogImagePreview", "OG Image preview"),
|
|
309
310
|
className: "mt-2 max-w-[200px] max-h-[120px] rounded border border-default object-cover",
|
|
310
311
|
onError: (e) => {
|
|
311
312
|
e.target.style.display = "none";
|
|
@@ -315,48 +316,48 @@ function P() {
|
|
|
315
316
|
]
|
|
316
317
|
})]
|
|
317
318
|
}),
|
|
318
|
-
|
|
319
|
+
Z && /* @__PURE__ */ O("div", {
|
|
319
320
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
320
321
|
children: [/* @__PURE__ */ O("h2", {
|
|
321
322
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
322
|
-
children: [/* @__PURE__ */ D(h, { size: 18 }),
|
|
323
|
+
children: [/* @__PURE__ */ D(h, { size: 18 }), z("products.appStoreLinks", "App Store Links")]
|
|
323
324
|
}), /* @__PURE__ */ O("dl", {
|
|
324
325
|
className: "space-y-3",
|
|
325
|
-
children: [
|
|
326
|
+
children: [B.appStoreUrl && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
326
327
|
className: "text-sm font-medium text-text-secondary",
|
|
327
|
-
children:
|
|
328
|
+
children: z("products.appleAppStore", "Apple App Store")
|
|
328
329
|
}), /* @__PURE__ */ D("dd", {
|
|
329
330
|
className: "text-sm mt-1",
|
|
330
331
|
children: /* @__PURE__ */ O("a", {
|
|
331
|
-
href:
|
|
332
|
+
href: B.appStoreUrl,
|
|
332
333
|
target: "_blank",
|
|
333
334
|
rel: "noopener noreferrer",
|
|
334
335
|
className: "inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline",
|
|
335
|
-
children: [
|
|
336
|
+
children: [B.appStoreUrl, /* @__PURE__ */ D(h, { size: 12 })]
|
|
336
337
|
})
|
|
337
|
-
})] }),
|
|
338
|
+
})] }), B.playStoreUrl && /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
338
339
|
className: "text-sm font-medium text-text-secondary",
|
|
339
|
-
children:
|
|
340
|
+
children: z("products.googlePlayStore", "Google Play Store")
|
|
340
341
|
}), /* @__PURE__ */ D("dd", {
|
|
341
342
|
className: "text-sm mt-1",
|
|
342
343
|
children: /* @__PURE__ */ O("a", {
|
|
343
|
-
href:
|
|
344
|
+
href: B.playStoreUrl,
|
|
344
345
|
target: "_blank",
|
|
345
346
|
rel: "noopener noreferrer",
|
|
346
347
|
className: "inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline",
|
|
347
|
-
children: [
|
|
348
|
+
children: [B.playStoreUrl, /* @__PURE__ */ D(h, { size: 12 })]
|
|
348
349
|
})
|
|
349
350
|
})] })]
|
|
350
351
|
})]
|
|
351
352
|
}),
|
|
352
|
-
|
|
353
|
+
Q && /* @__PURE__ */ O("div", {
|
|
353
354
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
354
355
|
children: [/* @__PURE__ */ O("h2", {
|
|
355
356
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
356
|
-
children: [/* @__PURE__ */ D(C, { size: 18 }),
|
|
357
|
+
children: [/* @__PURE__ */ D(C, { size: 18 }), z("products.socialMediaLinks", "Social Media Links")]
|
|
357
358
|
}), /* @__PURE__ */ D("dl", {
|
|
358
359
|
className: "space-y-3",
|
|
359
|
-
children: Object.entries(
|
|
360
|
+
children: Object.entries(B.socialLinks).map(([e, t]) => /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
360
361
|
className: "text-sm font-medium text-text-secondary capitalize",
|
|
361
362
|
children: e
|
|
362
363
|
}), /* @__PURE__ */ D("dd", {
|
|
@@ -371,14 +372,14 @@ function P() {
|
|
|
371
372
|
})] }, e))
|
|
372
373
|
})]
|
|
373
374
|
}),
|
|
374
|
-
|
|
375
|
+
$ && /* @__PURE__ */ O("div", {
|
|
375
376
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
376
377
|
children: [/* @__PURE__ */ O("h2", {
|
|
377
378
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
378
|
-
children: [/* @__PURE__ */ D(_, { size: 18 }),
|
|
379
|
+
children: [/* @__PURE__ */ D(_, { size: 18 }), z("products.resourceLinks", "Resource Links")]
|
|
379
380
|
}), /* @__PURE__ */ D("dl", {
|
|
380
381
|
className: "space-y-3",
|
|
381
|
-
children: Object.entries(
|
|
382
|
+
children: Object.entries(B.resourceLinks).map(([e, t]) => /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
382
383
|
className: "text-sm font-medium text-text-secondary capitalize",
|
|
383
384
|
children: e
|
|
384
385
|
}), /* @__PURE__ */ D("dd", {
|
|
@@ -398,17 +399,17 @@ function P() {
|
|
|
398
399
|
children: [
|
|
399
400
|
/* @__PURE__ */ O("h2", {
|
|
400
401
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
401
|
-
children: [/* @__PURE__ */ D(g, { size: 18 }),
|
|
402
|
+
children: [/* @__PURE__ */ D(g, { size: 18 }), z("products.contentPages", "Content Pages")]
|
|
402
403
|
}),
|
|
403
404
|
/* @__PURE__ */ D("p", {
|
|
404
405
|
className: "text-sm text-text-secondary mb-4",
|
|
405
|
-
children:
|
|
406
|
+
children: z("products.manageContentPages", "Manage content pages associated with this product.")
|
|
406
407
|
}),
|
|
407
408
|
/* @__PURE__ */ O("button", {
|
|
408
409
|
type: "button",
|
|
409
|
-
onClick: () =>
|
|
410
|
+
onClick: () => I(`${L}/content-pages`),
|
|
410
411
|
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 text-sm\n ",
|
|
411
|
-
children: [/* @__PURE__ */ D(g, { size: 16 }),
|
|
412
|
+
children: [/* @__PURE__ */ D(g, { size: 16 }), z("products.viewContentPages", "View Content Pages")]
|
|
412
413
|
})
|
|
413
414
|
]
|
|
414
415
|
}),
|
|
@@ -421,54 +422,54 @@ function P() {
|
|
|
421
422
|
className: "text-text-secondary"
|
|
422
423
|
}), /* @__PURE__ */ D("h2", {
|
|
423
424
|
className: "text-lg font-semibold text-text-primary",
|
|
424
|
-
children:
|
|
425
|
+
children: z("products.integrations", "Integrations")
|
|
425
426
|
})]
|
|
426
427
|
}), /* @__PURE__ */ O("div", {
|
|
427
428
|
className: "space-y-3",
|
|
428
429
|
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
429
430
|
className: "text-sm font-medium text-text-secondary",
|
|
430
|
-
children:
|
|
431
|
+
children: z("products.recaptchaSiteKey", "reCAPTCHA Site Key")
|
|
431
432
|
}), /* @__PURE__ */ D("dd", {
|
|
432
433
|
className: "text-sm text-text-primary mt-0.5 font-mono",
|
|
433
|
-
children:
|
|
434
|
+
children: B.recaptchaSiteKey || /* @__PURE__ */ D("span", {
|
|
434
435
|
className: "text-text-secondary italic",
|
|
435
|
-
children:
|
|
436
|
+
children: z("products.notConfigured", "Not configured")
|
|
436
437
|
})
|
|
437
438
|
})] }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
438
439
|
className: "text-sm font-medium text-text-secondary",
|
|
439
|
-
children:
|
|
440
|
+
children: z("products.recaptchaSecretKey", "reCAPTCHA Secret Key")
|
|
440
441
|
}), /* @__PURE__ */ D("dd", {
|
|
441
442
|
className: "text-sm text-text-primary mt-0.5",
|
|
442
443
|
children: /* @__PURE__ */ D("span", {
|
|
443
444
|
className: "text-text-secondary italic",
|
|
444
|
-
children:
|
|
445
|
+
children: z("products.hiddenSetViaEdit", "Hidden — set via Edit page")
|
|
445
446
|
})
|
|
446
447
|
})] })]
|
|
447
448
|
})]
|
|
448
449
|
}),
|
|
449
450
|
/* @__PURE__ */ D(f, {
|
|
450
|
-
productId:
|
|
451
|
-
productName:
|
|
451
|
+
productId: B.slug,
|
|
452
|
+
productName: B.name,
|
|
452
453
|
readOnly: !0
|
|
453
454
|
}),
|
|
454
455
|
/* @__PURE__ */ O("div", {
|
|
455
456
|
className: "lg:col-span-2 bg-bg-surface border border-border-seam rounded-card shadow-elevation-1",
|
|
456
457
|
children: [/* @__PURE__ */ D("h2", {
|
|
457
458
|
className: "text-lg font-semibold text-text-primary p-6 pb-0",
|
|
458
|
-
children:
|
|
459
|
+
children: z("products.activityHistory", "Activity History")
|
|
459
460
|
}), /* @__PURE__ */ D(d, {
|
|
460
|
-
resourceId:
|
|
461
|
+
resourceId: B.id,
|
|
461
462
|
resourceType: "PlatformProduct"
|
|
462
463
|
})]
|
|
463
464
|
}),
|
|
464
|
-
|
|
465
|
+
B.metadata && Object.keys(B.metadata).length > 0 && /* @__PURE__ */ O("div", {
|
|
465
466
|
className: "bg-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 shadow-elevation-1 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-[var(--shadow-pop)]",
|
|
466
467
|
children: [/* @__PURE__ */ D("h2", {
|
|
467
468
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
468
|
-
children:
|
|
469
|
+
children: z("products.metadata", "Metadata")
|
|
469
470
|
}), /* @__PURE__ */ D("dl", {
|
|
470
471
|
className: "space-y-3",
|
|
471
|
-
children: Object.entries(
|
|
472
|
+
children: Object.entries(B.metadata).map(([e, t]) => /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("dt", {
|
|
472
473
|
className: "text-sm font-medium text-text-secondary capitalize",
|
|
473
474
|
children: e.replace(/([A-Z])/g, " $1").trim()
|
|
474
475
|
}), /* @__PURE__ */ D("dd", {
|
|
@@ -479,11 +480,11 @@ function P() {
|
|
|
479
480
|
})
|
|
480
481
|
]
|
|
481
482
|
}),
|
|
482
|
-
|
|
483
|
+
K
|
|
483
484
|
]
|
|
484
485
|
});
|
|
485
486
|
}
|
|
486
487
|
//#endregion
|
|
487
|
-
export {
|
|
488
|
+
export { F as ProductDetailPage };
|
|
488
489
|
|
|
489
490
|
//# sourceMappingURL=ProductDetailPage.js.map
|