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