@burdenoff/microfe-product 2026.521.1 → 2026.521.2
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/generated/global-operations.d.ts +7 -0
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +5 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +3 -0
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.d.ts.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +419 -317
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +216 -194
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/schemas/index.d.ts +2 -0
- package/dist/product-management/modules/products/schemas/index.d.ts.map +1 -1
- package/dist/product-management/modules/products/schemas/index.js +6 -3
- package/dist/product-management/modules/products/schemas/index.js.map +1 -1
- package/dist/product-management/modules/products/types/index.d.ts +3 -0
- package/dist/product-management/modules/products/types/index.d.ts.map +1 -1
- package/dist/product-management/modules/products/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,263 +7,263 @@ import { nativeConfirm as o, nativeImpact as s, nativeNotify as c } from "../../
|
|
|
7
7
|
import { TagList as l } from "../../../shared/components/TagList.js";
|
|
8
8
|
import { AuditHistoryTab as u } from "../../../shared/components/AuditHistoryTab.js";
|
|
9
9
|
import { ProductPlans as d } from "../components/ProductPlans.js";
|
|
10
|
-
import { ArrowLeft as f, Edit as p, ExternalLink as m, FileText as h,
|
|
11
|
-
import { useI18n as
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { useParams as
|
|
10
|
+
import { ArrowLeft as f, Edit as p, ExternalLink as m, FileText as h, Link as g, Mail as _, MapPin as v, Package as y, Phone as b, Search as x, Share2 as S, Shield as C, Trash2 as w } from "lucide-react";
|
|
11
|
+
import { useI18n as T } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
13
|
+
import { useParams as O } from "react-router-dom";
|
|
14
14
|
//#region src/product-management/modules/products/pages/ProductDetailPage.tsx
|
|
15
|
-
function
|
|
16
|
-
let { id:
|
|
17
|
-
let n =
|
|
15
|
+
function k() {
|
|
16
|
+
let { id: k } = O(), { navigate: A, basePath: j = "/products" } = e(), { t: M } = T(), N = (e, t) => {
|
|
17
|
+
let n = M(e);
|
|
18
18
|
return n === e ? t : n;
|
|
19
|
-
}, { product:
|
|
19
|
+
}, { product: P, loading: F, error: I } = i(k), { deleteProduct: L, loading: R } = r(), z = async () => {
|
|
20
20
|
s("medium");
|
|
21
|
-
let e =
|
|
21
|
+
let e = N("products.confirmDeleteProduct", "Are you sure you want to delete this product?"), t = await o({
|
|
22
22
|
title: "Delete product",
|
|
23
23
|
message: e,
|
|
24
24
|
okButtonTitle: "Delete",
|
|
25
25
|
cancelButtonTitle: "Cancel"
|
|
26
26
|
});
|
|
27
27
|
if (t === null ? window.confirm(e) : t) try {
|
|
28
|
-
await
|
|
28
|
+
await L(k), c("success"), A(j);
|
|
29
29
|
} catch (e) {
|
|
30
30
|
c("error"), console.error("Failed to delete product:", e);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
if (
|
|
33
|
+
if (F) return /* @__PURE__ */ E("div", {
|
|
34
34
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
35
|
-
children: /* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ E(t, { message: N("products.loadingProductDetails", "Loading product details...") })
|
|
36
36
|
});
|
|
37
|
-
if (
|
|
37
|
+
if (I || !P) return /* @__PURE__ */ E("div", {
|
|
38
38
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
39
|
-
children: /* @__PURE__ */
|
|
40
|
-
message:
|
|
39
|
+
children: /* @__PURE__ */ E(n, {
|
|
40
|
+
message: I?.message || N("products.productNotFound", "Product not found"),
|
|
41
41
|
action: {
|
|
42
|
-
label:
|
|
43
|
-
onClick: () =>
|
|
42
|
+
label: N("products.backToProducts", "Back to Products"),
|
|
43
|
+
onClick: () => A(j)
|
|
44
44
|
}
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
|
-
let
|
|
47
|
+
let B = (e) => new Date(e).toLocaleDateString("en-US", {
|
|
48
48
|
year: "numeric",
|
|
49
49
|
month: "long",
|
|
50
50
|
day: "numeric",
|
|
51
51
|
hour: "2-digit",
|
|
52
52
|
minute: "2-digit"
|
|
53
|
-
}),
|
|
54
|
-
return /* @__PURE__ */
|
|
53
|
+
}), V = P.contactEmail || P.supportEmail || P.contactPhone || P.contactAddress, H = P.seoTitle || P.seoDescription || P.seoKeywords || P.ogImage, U = P.appStoreUrl || P.playStoreUrl, W = P.socialLinks && Object.keys(P.socialLinks).length > 0, G = P.resourceLinks && Object.keys(P.resourceLinks).length > 0;
|
|
54
|
+
return /* @__PURE__ */ D("div", {
|
|
55
55
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
56
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ D("div", {
|
|
57
57
|
className: "mb-6",
|
|
58
|
-
children: [/* @__PURE__ */
|
|
59
|
-
onClick: () =>
|
|
58
|
+
children: [/* @__PURE__ */ D("button", {
|
|
59
|
+
onClick: () => A(j),
|
|
60
60
|
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 ",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ E(f, { size: 20 }), /* @__PURE__ */ E("span", {
|
|
62
62
|
className: "text-sm font-medium",
|
|
63
|
-
children:
|
|
63
|
+
children: N("products.backToProducts", "Back to Products")
|
|
64
64
|
})]
|
|
65
|
-
}), /* @__PURE__ */
|
|
65
|
+
}), /* @__PURE__ */ D("div", {
|
|
66
66
|
className: "flex items-start justify-between",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ D("div", {
|
|
68
68
|
className: "flex items-center gap-4",
|
|
69
|
-
children: [
|
|
70
|
-
src:
|
|
71
|
-
alt:
|
|
69
|
+
children: [P.logoUrl ? /* @__PURE__ */ E("img", {
|
|
70
|
+
src: P.logoUrl,
|
|
71
|
+
alt: P.name,
|
|
72
72
|
className: "w-16 h-16 rounded-lg object-cover"
|
|
73
|
-
}) : /* @__PURE__ */
|
|
73
|
+
}) : /* @__PURE__ */ E("div", {
|
|
74
74
|
className: "w-16 h-16 rounded-lg bg-[var(--color-status-warning-subtle)] flex items-center justify-center",
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ E(y, {
|
|
76
76
|
size: 32,
|
|
77
77
|
className: "text-[var(--color-status-warning)]"
|
|
78
78
|
})
|
|
79
|
-
}), /* @__PURE__ */
|
|
79
|
+
}), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
80
80
|
className: "flex items-center gap-3 mb-2",
|
|
81
|
-
children: [/* @__PURE__ */
|
|
81
|
+
children: [/* @__PURE__ */ E("h1", {
|
|
82
82
|
className: "text-3xl font-bold text-text-primary",
|
|
83
|
-
children:
|
|
84
|
-
}), /* @__PURE__ */
|
|
85
|
-
}), /* @__PURE__ */
|
|
83
|
+
children: P.name
|
|
84
|
+
}), /* @__PURE__ */ E(a, { status: P.status })]
|
|
85
|
+
}), /* @__PURE__ */ D("p", {
|
|
86
86
|
className: "text-text-secondary",
|
|
87
|
-
children: ["/",
|
|
87
|
+
children: ["/", P.slug]
|
|
88
88
|
})] })]
|
|
89
|
-
}), /* @__PURE__ */
|
|
89
|
+
}), /* @__PURE__ */ D("div", {
|
|
90
90
|
className: "flex gap-2",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
92
|
-
onClick: () =>
|
|
91
|
+
children: [/* @__PURE__ */ D("button", {
|
|
92
|
+
onClick: () => A(`${j}/${k}/edit`),
|
|
93
93
|
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-muted\n transition-all duration-200\n font-medium\n ",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
95
|
-
}), /* @__PURE__ */
|
|
96
|
-
onClick:
|
|
97
|
-
disabled:
|
|
94
|
+
children: [/* @__PURE__ */ E(p, { size: 16 }), N("products.editProduct", "Edit Product")]
|
|
95
|
+
}), /* @__PURE__ */ D("button", {
|
|
96
|
+
onClick: z,
|
|
97
|
+
disabled: R,
|
|
98
98
|
className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error-border)]\n rounded-lg\n hover:opacity-80\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
|
|
99
|
-
children: [/* @__PURE__ */
|
|
99
|
+
children: [/* @__PURE__ */ E(w, { size: 16 }), N("products.delete", "Delete")]
|
|
100
100
|
})]
|
|
101
101
|
})]
|
|
102
102
|
})]
|
|
103
|
-
}), /* @__PURE__ */
|
|
103
|
+
}), /* @__PURE__ */ D("div", {
|
|
104
104
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
105
105
|
children: [
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ D("div", {
|
|
107
107
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
109
109
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
110
|
-
children:
|
|
111
|
-
}), /* @__PURE__ */
|
|
110
|
+
children: N("products.basicInformation", "Basic Information")
|
|
111
|
+
}), /* @__PURE__ */ D("dl", {
|
|
112
112
|
className: "space-y-3",
|
|
113
113
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
115
115
|
className: "text-sm font-medium text-text-secondary",
|
|
116
|
-
children:
|
|
117
|
-
}), /* @__PURE__ */
|
|
116
|
+
children: N("products.name", "Name")
|
|
117
|
+
}), /* @__PURE__ */ E("dd", {
|
|
118
118
|
className: "text-sm text-text-primary mt-1",
|
|
119
|
-
children:
|
|
119
|
+
children: P.name
|
|
120
120
|
})] }),
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
122
122
|
className: "text-sm font-medium text-text-secondary",
|
|
123
|
-
children:
|
|
124
|
-
}), /* @__PURE__ */
|
|
123
|
+
children: N("products.slug", "Slug")
|
|
124
|
+
}), /* @__PURE__ */ E("dd", {
|
|
125
125
|
className: "text-sm text-text-primary mt-1 font-mono",
|
|
126
|
-
children:
|
|
126
|
+
children: P.slug
|
|
127
127
|
})] }),
|
|
128
|
-
|
|
128
|
+
P.tags && P.tags.length > 0 && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
129
129
|
className: "text-sm font-medium text-text-secondary mb-1",
|
|
130
|
-
children:
|
|
131
|
-
}), /* @__PURE__ */
|
|
130
|
+
children: N("products.tags", "Tags")
|
|
131
|
+
}), /* @__PURE__ */ E("dd", { children: /* @__PURE__ */ E(l, { tags: P.tags }) })] })
|
|
132
132
|
]
|
|
133
133
|
})]
|
|
134
134
|
}),
|
|
135
|
-
|
|
135
|
+
P.description && /* @__PURE__ */ D("div", {
|
|
136
136
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
137
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
138
138
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
139
|
-
children:
|
|
140
|
-
}), /* @__PURE__ */
|
|
139
|
+
children: N("products.description", "Description")
|
|
140
|
+
}), /* @__PURE__ */ E("p", {
|
|
141
141
|
className: "text-sm text-text-secondary leading-relaxed",
|
|
142
|
-
children:
|
|
142
|
+
children: P.description
|
|
143
143
|
})]
|
|
144
144
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ D("div", {
|
|
146
146
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
147
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
148
148
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
149
|
-
children:
|
|
150
|
-
}), /* @__PURE__ */
|
|
149
|
+
children: N("products.timestamps", "Timestamps")
|
|
150
|
+
}), /* @__PURE__ */ D("dl", {
|
|
151
151
|
className: "space-y-3",
|
|
152
|
-
children: [/* @__PURE__ */
|
|
152
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
153
153
|
className: "text-sm font-medium text-text-secondary",
|
|
154
|
-
children:
|
|
155
|
-
}), /* @__PURE__ */
|
|
154
|
+
children: N("products.created", "Created")
|
|
155
|
+
}), /* @__PURE__ */ E("dd", {
|
|
156
156
|
className: "text-sm text-text-primary mt-1",
|
|
157
|
-
children:
|
|
158
|
-
})] }), /* @__PURE__ */
|
|
157
|
+
children: B(P.createdAt)
|
|
158
|
+
})] }), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
159
159
|
className: "text-sm font-medium text-text-secondary",
|
|
160
|
-
children:
|
|
161
|
-
}), /* @__PURE__ */
|
|
160
|
+
children: N("products.lastUpdated", "Last Updated")
|
|
161
|
+
}), /* @__PURE__ */ E("dd", {
|
|
162
162
|
className: "text-sm text-text-primary mt-1",
|
|
163
|
-
children:
|
|
163
|
+
children: B(P.updatedAt)
|
|
164
164
|
})] })]
|
|
165
165
|
})]
|
|
166
166
|
}),
|
|
167
|
-
|
|
167
|
+
V && /* @__PURE__ */ D("div", {
|
|
168
168
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
169
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
170
170
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
171
|
-
children:
|
|
172
|
-
}), /* @__PURE__ */
|
|
171
|
+
children: N("products.contactInformation", "Contact Information")
|
|
172
|
+
}), /* @__PURE__ */ D("dl", {
|
|
173
173
|
className: "space-y-3",
|
|
174
174
|
children: [
|
|
175
|
-
|
|
175
|
+
P.contactEmail && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("dt", {
|
|
176
176
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
177
|
-
children: [/* @__PURE__ */
|
|
178
|
-
}), /* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ E(_, { size: 14 }), N("products.contactEmail", "Contact Email")]
|
|
178
|
+
}), /* @__PURE__ */ E("dd", {
|
|
179
179
|
className: "text-sm mt-1",
|
|
180
|
-
children: /* @__PURE__ */
|
|
181
|
-
href: `mailto:${
|
|
180
|
+
children: /* @__PURE__ */ E("a", {
|
|
181
|
+
href: `mailto:${P.contactEmail}`,
|
|
182
182
|
className: "text-[var(--color-text-link)] hover:underline",
|
|
183
|
-
children:
|
|
183
|
+
children: P.contactEmail
|
|
184
184
|
})
|
|
185
185
|
})] }),
|
|
186
|
-
|
|
186
|
+
P.supportEmail && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("dt", {
|
|
187
187
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
189
|
-
}), /* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ E(_, { size: 14 }), N("products.supportEmail", "Support Email")]
|
|
189
|
+
}), /* @__PURE__ */ E("dd", {
|
|
190
190
|
className: "text-sm mt-1",
|
|
191
|
-
children: /* @__PURE__ */
|
|
192
|
-
href: `mailto:${
|
|
191
|
+
children: /* @__PURE__ */ E("a", {
|
|
192
|
+
href: `mailto:${P.supportEmail}`,
|
|
193
193
|
className: "text-[var(--color-text-link)] hover:underline",
|
|
194
|
-
children:
|
|
194
|
+
children: P.supportEmail
|
|
195
195
|
})
|
|
196
196
|
})] }),
|
|
197
|
-
|
|
197
|
+
P.contactPhone && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("dt", {
|
|
198
198
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
200
|
-
}), /* @__PURE__ */
|
|
199
|
+
children: [/* @__PURE__ */ E(b, { size: 14 }), N("products.phone", "Phone")]
|
|
200
|
+
}), /* @__PURE__ */ E("dd", {
|
|
201
201
|
className: "text-sm mt-1",
|
|
202
|
-
children: /* @__PURE__ */
|
|
203
|
-
href: `tel:${
|
|
202
|
+
children: /* @__PURE__ */ E("a", {
|
|
203
|
+
href: `tel:${P.contactPhone}`,
|
|
204
204
|
className: "text-[var(--color-text-link)] hover:underline",
|
|
205
|
-
children:
|
|
205
|
+
children: P.contactPhone
|
|
206
206
|
})
|
|
207
207
|
})] }),
|
|
208
|
-
|
|
208
|
+
P.contactAddress && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("dt", {
|
|
209
209
|
className: "text-sm font-medium text-text-secondary flex items-center gap-1.5",
|
|
210
|
-
children: [/* @__PURE__ */
|
|
211
|
-
}), /* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ E(v, { size: 14 }), N("products.address", "Address")]
|
|
211
|
+
}), /* @__PURE__ */ E("dd", {
|
|
212
212
|
className: "text-sm text-text-primary mt-1",
|
|
213
|
-
children:
|
|
213
|
+
children: P.contactAddress
|
|
214
214
|
})] })
|
|
215
215
|
]
|
|
216
216
|
})]
|
|
217
217
|
}),
|
|
218
|
-
|
|
218
|
+
H && /* @__PURE__ */ D("div", {
|
|
219
219
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
220
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
221
221
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
223
|
-
}), /* @__PURE__ */
|
|
222
|
+
children: [/* @__PURE__ */ E(x, { size: 18 }), N("products.seoMetadata", "SEO Metadata")]
|
|
223
|
+
}), /* @__PURE__ */ D("dl", {
|
|
224
224
|
className: "space-y-3",
|
|
225
225
|
children: [
|
|
226
|
-
|
|
226
|
+
P.seoTitle && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
227
227
|
className: "text-sm font-medium text-text-secondary",
|
|
228
|
-
children:
|
|
229
|
-
}), /* @__PURE__ */
|
|
228
|
+
children: N("products.seoTitle", "SEO Title")
|
|
229
|
+
}), /* @__PURE__ */ E("dd", {
|
|
230
230
|
className: "text-sm text-text-primary mt-1",
|
|
231
|
-
children:
|
|
231
|
+
children: P.seoTitle
|
|
232
232
|
})] }),
|
|
233
|
-
|
|
233
|
+
P.seoDescription && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
234
234
|
className: "text-sm font-medium text-text-secondary",
|
|
235
|
-
children:
|
|
236
|
-
}), /* @__PURE__ */
|
|
235
|
+
children: N("products.seoDescription", "SEO Description")
|
|
236
|
+
}), /* @__PURE__ */ E("dd", {
|
|
237
237
|
className: "text-sm text-text-primary mt-1 leading-relaxed",
|
|
238
|
-
children:
|
|
238
|
+
children: P.seoDescription
|
|
239
239
|
})] }),
|
|
240
|
-
|
|
240
|
+
P.seoKeywords && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
241
241
|
className: "text-sm font-medium text-text-secondary",
|
|
242
|
-
children:
|
|
243
|
-
}), /* @__PURE__ */
|
|
242
|
+
children: N("products.keywords", "Keywords")
|
|
243
|
+
}), /* @__PURE__ */ E("dd", {
|
|
244
244
|
className: "text-sm text-text-primary mt-1",
|
|
245
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ E("div", {
|
|
246
246
|
className: "flex flex-wrap gap-1.5 mt-1",
|
|
247
|
-
children: (typeof
|
|
247
|
+
children: (typeof P.seoKeywords == "string" ? P.seoKeywords.split(",").map((e) => e.trim()) : P.seoKeywords).map((e) => /* @__PURE__ */ E("span", {
|
|
248
248
|
className: "inline-flex px-2 py-0.5 text-xs font-medium rounded-full bg-muted text-text-secondary border border-default",
|
|
249
249
|
children: e
|
|
250
250
|
}, e))
|
|
251
251
|
})
|
|
252
252
|
})] }),
|
|
253
|
-
|
|
253
|
+
P.ogImage && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
254
254
|
className: "text-sm font-medium text-text-secondary",
|
|
255
|
-
children:
|
|
256
|
-
}), /* @__PURE__ */
|
|
255
|
+
children: N("products.ogImage", "OG Image")
|
|
256
|
+
}), /* @__PURE__ */ D("dd", {
|
|
257
257
|
className: "text-sm mt-1",
|
|
258
|
-
children: [/* @__PURE__ */
|
|
259
|
-
href:
|
|
258
|
+
children: [/* @__PURE__ */ E("a", {
|
|
259
|
+
href: P.ogImage,
|
|
260
260
|
target: "_blank",
|
|
261
261
|
rel: "noopener noreferrer",
|
|
262
262
|
className: "text-[var(--color-text-link)] hover:underline break-all",
|
|
263
|
-
children:
|
|
264
|
-
}), /* @__PURE__ */
|
|
265
|
-
src:
|
|
266
|
-
alt:
|
|
263
|
+
children: P.ogImage
|
|
264
|
+
}), /* @__PURE__ */ E("img", {
|
|
265
|
+
src: P.ogImage,
|
|
266
|
+
alt: N("products.ogImagePreview", "OG Image preview"),
|
|
267
267
|
className: "mt-2 max-w-[200px] max-h-[120px] rounded border border-default object-cover",
|
|
268
268
|
onError: (e) => {
|
|
269
269
|
e.target.style.display = "none";
|
|
@@ -273,140 +273,162 @@ function O() {
|
|
|
273
273
|
]
|
|
274
274
|
})]
|
|
275
275
|
}),
|
|
276
|
-
|
|
276
|
+
U && /* @__PURE__ */ D("div", {
|
|
277
277
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
279
279
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
281
|
-
}), /* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ E(m, { size: 18 }), N("products.appStoreLinks", "App Store Links")]
|
|
281
|
+
}), /* @__PURE__ */ D("dl", {
|
|
282
282
|
className: "space-y-3",
|
|
283
|
-
children: [
|
|
283
|
+
children: [P.appStoreUrl && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
284
284
|
className: "text-sm font-medium text-text-secondary",
|
|
285
|
-
children:
|
|
286
|
-
}), /* @__PURE__ */
|
|
285
|
+
children: N("products.appleAppStore", "Apple App Store")
|
|
286
|
+
}), /* @__PURE__ */ E("dd", {
|
|
287
287
|
className: "text-sm mt-1",
|
|
288
|
-
children: /* @__PURE__ */
|
|
289
|
-
href:
|
|
288
|
+
children: /* @__PURE__ */ D("a", {
|
|
289
|
+
href: P.appStoreUrl,
|
|
290
290
|
target: "_blank",
|
|
291
291
|
rel: "noopener noreferrer",
|
|
292
292
|
className: "inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline",
|
|
293
|
-
children: [
|
|
293
|
+
children: [P.appStoreUrl, /* @__PURE__ */ E(m, { size: 12 })]
|
|
294
294
|
})
|
|
295
|
-
})] }),
|
|
295
|
+
})] }), P.playStoreUrl && /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
296
296
|
className: "text-sm font-medium text-text-secondary",
|
|
297
|
-
children:
|
|
298
|
-
}), /* @__PURE__ */
|
|
297
|
+
children: N("products.googlePlayStore", "Google Play Store")
|
|
298
|
+
}), /* @__PURE__ */ E("dd", {
|
|
299
299
|
className: "text-sm mt-1",
|
|
300
|
-
children: /* @__PURE__ */
|
|
301
|
-
href:
|
|
300
|
+
children: /* @__PURE__ */ D("a", {
|
|
301
|
+
href: P.playStoreUrl,
|
|
302
302
|
target: "_blank",
|
|
303
303
|
rel: "noopener noreferrer",
|
|
304
304
|
className: "inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline",
|
|
305
|
-
children: [
|
|
305
|
+
children: [P.playStoreUrl, /* @__PURE__ */ E(m, { size: 12 })]
|
|
306
306
|
})
|
|
307
307
|
})] })]
|
|
308
308
|
})]
|
|
309
309
|
}),
|
|
310
|
-
|
|
310
|
+
W && /* @__PURE__ */ D("div", {
|
|
311
311
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
312
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
313
313
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
315
|
-
}), /* @__PURE__ */
|
|
314
|
+
children: [/* @__PURE__ */ E(S, { size: 18 }), N("products.socialMediaLinks", "Social Media Links")]
|
|
315
|
+
}), /* @__PURE__ */ E("dl", {
|
|
316
316
|
className: "space-y-3",
|
|
317
|
-
children: Object.entries(
|
|
317
|
+
children: Object.entries(P.socialLinks).map(([e, t]) => /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
318
318
|
className: "text-sm font-medium text-text-secondary capitalize",
|
|
319
319
|
children: e
|
|
320
|
-
}), /* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ E("dd", {
|
|
321
321
|
className: "text-sm mt-1",
|
|
322
|
-
children: /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ D("a", {
|
|
323
323
|
href: t,
|
|
324
324
|
target: "_blank",
|
|
325
325
|
rel: "noopener noreferrer",
|
|
326
326
|
className: "inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline",
|
|
327
|
-
children: [t, /* @__PURE__ */
|
|
327
|
+
children: [t, /* @__PURE__ */ E(m, { size: 12 })]
|
|
328
328
|
})
|
|
329
329
|
})] }, e))
|
|
330
330
|
})]
|
|
331
331
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
G && /* @__PURE__ */ D("div", {
|
|
333
|
+
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
334
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
335
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
336
|
+
children: [/* @__PURE__ */ E(g, { size: 18 }), N("products.resourceLinks", "Resource Links")]
|
|
337
|
+
}), /* @__PURE__ */ E("dl", {
|
|
338
|
+
className: "space-y-3",
|
|
339
|
+
children: Object.entries(P.resourceLinks).map(([e, t]) => /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
340
|
+
className: "text-sm font-medium text-text-secondary capitalize",
|
|
341
|
+
children: e
|
|
342
|
+
}), /* @__PURE__ */ E("dd", {
|
|
343
|
+
className: "text-sm mt-1",
|
|
344
|
+
children: /* @__PURE__ */ D("a", {
|
|
345
|
+
href: t,
|
|
346
|
+
target: "_blank",
|
|
347
|
+
rel: "noopener noreferrer",
|
|
348
|
+
className: "inline-flex items-center gap-1.5 text-[var(--color-text-link)] hover:underline",
|
|
349
|
+
children: [t, /* @__PURE__ */ E(m, { size: 12 })]
|
|
350
|
+
})
|
|
351
|
+
})] }, e))
|
|
352
|
+
})]
|
|
353
|
+
}),
|
|
354
|
+
/* @__PURE__ */ D("div", {
|
|
333
355
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
334
356
|
children: [
|
|
335
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ D("h2", {
|
|
336
358
|
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
337
|
-
children: [/* @__PURE__ */
|
|
359
|
+
children: [/* @__PURE__ */ E(h, { size: 18 }), N("products.contentPages", "Content Pages")]
|
|
338
360
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ E("p", {
|
|
340
362
|
className: "text-sm text-text-secondary mb-4",
|
|
341
|
-
children:
|
|
363
|
+
children: N("products.manageContentPages", "Manage content pages associated with this product.")
|
|
342
364
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
onClick: () =>
|
|
365
|
+
/* @__PURE__ */ D("button", {
|
|
366
|
+
onClick: () => A(`${j}/content-pages`),
|
|
345
367
|
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-muted\n transition-all duration-200\n font-medium\n text-sm\n ",
|
|
346
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ E(h, { size: 16 }), N("products.viewContentPages", "View Content Pages")]
|
|
347
369
|
})
|
|
348
370
|
]
|
|
349
371
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ D("div", {
|
|
351
373
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
352
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ D("div", {
|
|
353
375
|
className: "flex items-center gap-2 mb-4",
|
|
354
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ E(C, {
|
|
355
377
|
size: 20,
|
|
356
378
|
className: "text-text-secondary"
|
|
357
|
-
}), /* @__PURE__ */
|
|
379
|
+
}), /* @__PURE__ */ E("h2", {
|
|
358
380
|
className: "text-lg font-semibold text-text-primary",
|
|
359
|
-
children:
|
|
381
|
+
children: N("products.integrations", "Integrations")
|
|
360
382
|
})]
|
|
361
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ D("div", {
|
|
362
384
|
className: "space-y-3",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
364
386
|
className: "text-sm font-medium text-text-secondary",
|
|
365
|
-
children:
|
|
366
|
-
}), /* @__PURE__ */
|
|
387
|
+
children: N("products.recaptchaSiteKey", "reCAPTCHA Site Key")
|
|
388
|
+
}), /* @__PURE__ */ E("dd", {
|
|
367
389
|
className: "text-sm text-text-primary mt-0.5 font-mono",
|
|
368
|
-
children:
|
|
390
|
+
children: P.recaptchaSiteKey || /* @__PURE__ */ E("span", {
|
|
369
391
|
className: "text-text-secondary italic",
|
|
370
|
-
children:
|
|
392
|
+
children: N("products.notConfigured", "Not configured")
|
|
371
393
|
})
|
|
372
|
-
})] }), /* @__PURE__ */
|
|
394
|
+
})] }), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
373
395
|
className: "text-sm font-medium text-text-secondary",
|
|
374
|
-
children:
|
|
375
|
-
}), /* @__PURE__ */
|
|
396
|
+
children: N("products.recaptchaSecretKey", "reCAPTCHA Secret Key")
|
|
397
|
+
}), /* @__PURE__ */ E("dd", {
|
|
376
398
|
className: "text-sm text-text-primary mt-0.5",
|
|
377
|
-
children: /* @__PURE__ */
|
|
399
|
+
children: /* @__PURE__ */ E("span", {
|
|
378
400
|
className: "text-text-secondary italic",
|
|
379
|
-
children:
|
|
401
|
+
children: N("products.hiddenSetViaEdit", "Hidden — set via Edit page")
|
|
380
402
|
})
|
|
381
403
|
})] })]
|
|
382
404
|
})]
|
|
383
405
|
}),
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
-
productId:
|
|
386
|
-
productName:
|
|
406
|
+
/* @__PURE__ */ E(d, {
|
|
407
|
+
productId: P.slug,
|
|
408
|
+
productName: P.name,
|
|
387
409
|
readOnly: !0
|
|
388
410
|
}),
|
|
389
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ D("div", {
|
|
390
412
|
className: "lg:col-span-2 bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
392
414
|
className: "text-lg font-semibold text-text-primary p-6 pb-0",
|
|
393
|
-
children:
|
|
394
|
-
}), /* @__PURE__ */
|
|
395
|
-
resourceId:
|
|
415
|
+
children: N("products.activityHistory", "Activity History")
|
|
416
|
+
}), /* @__PURE__ */ E(u, {
|
|
417
|
+
resourceId: P.id,
|
|
396
418
|
resourceType: "PlatformProduct"
|
|
397
419
|
})]
|
|
398
420
|
}),
|
|
399
|
-
|
|
421
|
+
P.metadata && Object.keys(P.metadata).length > 0 && /* @__PURE__ */ D("div", {
|
|
400
422
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
423
|
+
children: [/* @__PURE__ */ E("h2", {
|
|
402
424
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
403
|
-
children:
|
|
404
|
-
}), /* @__PURE__ */
|
|
425
|
+
children: N("products.metadata", "Metadata")
|
|
426
|
+
}), /* @__PURE__ */ E("dl", {
|
|
405
427
|
className: "space-y-3",
|
|
406
|
-
children: Object.entries(
|
|
428
|
+
children: Object.entries(P.metadata).map(([e, t]) => /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("dt", {
|
|
407
429
|
className: "text-sm font-medium text-text-secondary capitalize",
|
|
408
430
|
children: e.replace(/([A-Z])/g, " $1").trim()
|
|
409
|
-
}), /* @__PURE__ */
|
|
431
|
+
}), /* @__PURE__ */ E("dd", {
|
|
410
432
|
className: "text-sm text-text-primary mt-1 font-mono",
|
|
411
433
|
children: JSON.stringify(t)
|
|
412
434
|
})] }, e))
|
|
@@ -417,6 +439,6 @@ function O() {
|
|
|
417
439
|
});
|
|
418
440
|
}
|
|
419
441
|
//#endregion
|
|
420
|
-
export {
|
|
442
|
+
export { k as ProductDetailPage };
|
|
421
443
|
|
|
422
444
|
//# sourceMappingURL=ProductDetailPage.js.map
|