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