@burdenoff/microfe-support 2026.830.1 → 2026.830.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/index.js +2 -1
- package/dist/support/SupportAdminRoot.js +31 -34
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportUserRoot.js +19 -22
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/components/PageLayout.d.ts +1 -1
- package/dist/support/components/PageLayout.js +46 -44
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js +24 -23
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js +27 -26
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js +48 -54
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js +56 -59
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js +27 -26
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +23 -21
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/kb/ArticleForm.js +145 -132
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js +104 -103
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js +120 -123
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js +175 -180
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js +21 -20
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +35 -35
- package/dist/support/components/tickets/MessageThread.js +55 -54
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +62 -57
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js +47 -47
- package/dist/support/components/tickets/TicketSidebar.js +122 -121
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/hooks/index.d.ts +1 -0
- package/dist/support/hooks/index.js +1 -0
- package/dist/support/hooks/useTr.d.ts +16 -0
- package/dist/support/hooks/useTr.js +12 -0
- package/dist/support/hooks/useTr.js.map +1 -0
- package/dist/support/index.d.ts +1 -0
- package/dist/support/index.js +2 -1
- package/dist/support/pages/AnalyticsPage.js +151 -145
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +134 -147
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +70 -79
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +140 -139
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +259 -232
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js +57 -56
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +151 -146
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js +80 -79
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js +92 -99
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +85 -92
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js +88 -87
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +91 -90
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +120 -118
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +139 -139
- package/dist/support/translations/en.d.ts +814 -0
- package/dist/support/translations/en.js +779 -0
- package/dist/support/translations/en.js.map +1 -0
- package/dist/support/translations/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,90 +1,91 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import l from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useSupport as t } from "../providers/SupportProvider.js";
|
|
3
|
+
import { Badge as n, Button as r, EmphasisPanel as i } from "../components/ui.js";
|
|
4
|
+
import { EmptyState as a, LoadingState as o, PageLayout as s } from "../components/PageLayout.js";
|
|
5
|
+
import { getCategoryBadgeClass as c } from "../utils/categoryColors.js";
|
|
6
|
+
import { useKnowledgeBaseOperations as l } from "../hooks/useKnowledgeBaseOperations.js";
|
|
7
|
+
import u from "../../node_modules/dompurify/dist/purify.es.js";
|
|
8
|
+
import { useEffect as d } from "react";
|
|
9
|
+
import { ArrowLeft as f, Calendar as p, Eye as m, Tag as h, ThumbsDown as g, ThumbsUp as _, User as v } from "lucide-react";
|
|
10
|
+
import { useNavigate as y, useParams as b } from "react-router";
|
|
11
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
11
12
|
//#region src/support/pages/ArticleDetailUserPage.tsx
|
|
12
|
-
function
|
|
13
|
-
let { slug:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}, [
|
|
17
|
-
let
|
|
18
|
-
if (
|
|
19
|
-
await
|
|
13
|
+
function C() {
|
|
14
|
+
let { slug: C } = b(), w = y(), { basePath: T = "" } = t(), E = e(), { articleDetail: D, articleLoading: O, articleError: k, voteArticle: A, recordView: j, ratingArticle: M } = l(C);
|
|
15
|
+
d(() => {
|
|
16
|
+
D?.id && j(D.id);
|
|
17
|
+
}, [D?.id, j]);
|
|
18
|
+
let N = async (e) => {
|
|
19
|
+
if (D) try {
|
|
20
|
+
await A(D.id, e);
|
|
20
21
|
} catch (e) {
|
|
21
22
|
console.error("Failed to vote:", e);
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
|
-
return
|
|
25
|
+
return O ? /* @__PURE__ */ x(s, {
|
|
25
26
|
showHeader: !1,
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
-
}) :
|
|
27
|
+
children: /* @__PURE__ */ x(o, { message: E("support.article.loading", "Loading article...") })
|
|
28
|
+
}) : k || !D ? /* @__PURE__ */ x(s, {
|
|
28
29
|
showHeader: !1,
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ x(a, {
|
|
30
31
|
illustration: "empty-search",
|
|
31
|
-
title: "Article not found",
|
|
32
|
-
description: "The article you're looking for doesn't exist or has been removed.",
|
|
33
|
-
action: /* @__PURE__ */
|
|
34
|
-
onClick: () =>
|
|
35
|
-
children: [/* @__PURE__ */
|
|
32
|
+
title: E("support.article.notFound.title", "Article not found"),
|
|
33
|
+
description: E("support.article.notFound.description", "The article you're looking for doesn't exist or has been removed."),
|
|
34
|
+
action: /* @__PURE__ */ S(r, {
|
|
35
|
+
onClick: () => w(`${T}/kb`),
|
|
36
|
+
children: [/* @__PURE__ */ x(f, { size: 18 }), E("support.article.actions.backToKnowledgeBase", "Back to Knowledge Base")]
|
|
36
37
|
})
|
|
37
38
|
})
|
|
38
|
-
}) : /* @__PURE__ */
|
|
39
|
+
}) : /* @__PURE__ */ S("div", {
|
|
39
40
|
className: "flex flex-col h-full",
|
|
40
41
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ S("div", {
|
|
42
43
|
className: "p-6 border-b border-border-subtle",
|
|
43
44
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ x("div", {
|
|
45
46
|
className: "flex items-center justify-between mb-4",
|
|
46
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ S(r, {
|
|
47
48
|
variant: "ghost",
|
|
48
49
|
size: "sm",
|
|
49
|
-
onClick: () =>
|
|
50
|
-
children: [/* @__PURE__ */
|
|
50
|
+
onClick: () => w(`${T}/kb`),
|
|
51
|
+
children: [/* @__PURE__ */ x(f, { size: 20 }), E("support.article.actions.backToKnowledgeBase", "Back to Knowledge Base")]
|
|
51
52
|
})
|
|
52
53
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ x("div", {
|
|
54
55
|
className: "flex items-center gap-3 mb-3",
|
|
55
|
-
children:
|
|
56
|
+
children: D.category && /* @__PURE__ */ x(n, {
|
|
56
57
|
variant: "outline",
|
|
57
|
-
className:
|
|
58
|
-
children:
|
|
58
|
+
className: c(D.category.color),
|
|
59
|
+
children: D.category.name
|
|
59
60
|
})
|
|
60
61
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ x("h1", {
|
|
62
63
|
className: "text-2xl font-bold mb-4 text-text-primary sm:text-3xl lg:text-4xl",
|
|
63
|
-
children:
|
|
64
|
+
children: D.title
|
|
64
65
|
}),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ S("div", {
|
|
66
67
|
className: "flex flex-wrap items-center gap-4 text-sm text-text-secondary",
|
|
67
68
|
children: [
|
|
68
|
-
|
|
69
|
+
D.author && /* @__PURE__ */ S("div", {
|
|
69
70
|
className: "flex items-center gap-2",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ x(v, { size: 16 }), /* @__PURE__ */ x("span", { children: D.author.name })]
|
|
71
72
|
}),
|
|
72
|
-
|
|
73
|
+
D.publishedAt && /* @__PURE__ */ S("div", {
|
|
73
74
|
className: "flex items-center gap-2",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
75
|
+
children: [/* @__PURE__ */ x(p, { size: 16 }), /* @__PURE__ */ x("span", { children: new Date(D.publishedAt).toLocaleDateString() })]
|
|
75
76
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ S("div", {
|
|
77
78
|
className: "flex items-center gap-2",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
79
|
+
children: [/* @__PURE__ */ x(m, { size: 16 }), /* @__PURE__ */ x("span", { children: E("support.article.views", "{{count}} views", { count: D.viewCount }) })]
|
|
79
80
|
})
|
|
80
81
|
]
|
|
81
82
|
}),
|
|
82
|
-
|
|
83
|
+
D.tags && D.tags.length > 0 && /* @__PURE__ */ S("div", {
|
|
83
84
|
className: "flex flex-wrap items-center gap-2 mt-4",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ x(h, {
|
|
85
86
|
size: 16,
|
|
86
87
|
className: "text-text-secondary"
|
|
87
|
-
}),
|
|
88
|
+
}), D.tags.map((e) => /* @__PURE__ */ x(n, {
|
|
88
89
|
variant: "outline",
|
|
89
90
|
className: "text-xs",
|
|
90
91
|
children: e
|
|
@@ -92,53 +93,43 @@ function S() {
|
|
|
92
93
|
})
|
|
93
94
|
]
|
|
94
95
|
}),
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ x("div", {
|
|
96
97
|
className: "flex-1 overflow-y-auto p-6",
|
|
97
|
-
children: /* @__PURE__ */
|
|
98
|
+
children: /* @__PURE__ */ x("div", {
|
|
98
99
|
className: "max-w-4xl mx-auto",
|
|
99
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ x("div", {
|
|
100
101
|
className: "prose prose-lg max-w-none dark:prose-invert text-text-primary",
|
|
101
|
-
dangerouslySetInnerHTML: { __html:
|
|
102
|
+
dangerouslySetInnerHTML: { __html: u.sanitize(D.content) }
|
|
102
103
|
})
|
|
103
104
|
})
|
|
104
105
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ x("div", {
|
|
106
107
|
className: "border-t border-border-subtle p-6 bg-bg-surface",
|
|
107
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ S(i, {
|
|
108
109
|
className: "max-w-4xl mx-auto p-5",
|
|
109
110
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ x("h3", {
|
|
111
112
|
className: "text-lg font-semibold mb-1 text-text-primary",
|
|
112
|
-
children: "Was this article helpful?"
|
|
113
|
+
children: E("support.article.feedback.title", "Was this article helpful?")
|
|
113
114
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ x("p", {
|
|
115
116
|
className: "mb-4 text-sm text-text-secondary",
|
|
116
|
-
children: "Your feedback helps us improve our guides for everyone."
|
|
117
|
+
children: E("support.article.feedback.userDescription", "Your feedback helps us improve our guides for everyone.")
|
|
117
118
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ S("div", {
|
|
119
120
|
className: "flex items-center gap-4",
|
|
120
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ S(r, {
|
|
121
122
|
variant: "outline",
|
|
122
|
-
onClick: () =>
|
|
123
|
-
disabled:
|
|
123
|
+
onClick: () => N(!0),
|
|
124
|
+
disabled: M,
|
|
124
125
|
className: "px-6",
|
|
125
|
-
children: [
|
|
126
|
-
|
|
127
|
-
"Yes (",
|
|
128
|
-
T.helpfulCount,
|
|
129
|
-
")"
|
|
130
|
-
]
|
|
131
|
-
}), /* @__PURE__ */ x(n, {
|
|
126
|
+
children: [/* @__PURE__ */ x(_, { size: 20 }), E("support.article.feedback.yes", "Yes ({{count}})", { count: D.helpfulCount })]
|
|
127
|
+
}), /* @__PURE__ */ S(r, {
|
|
132
128
|
variant: "outline",
|
|
133
|
-
onClick: () =>
|
|
134
|
-
disabled:
|
|
129
|
+
onClick: () => N(!1),
|
|
130
|
+
disabled: M,
|
|
135
131
|
className: "px-6",
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ b(h, { size: 20 }),
|
|
138
|
-
"No (",
|
|
139
|
-
T.notHelpfulCount,
|
|
140
|
-
")"
|
|
141
|
-
]
|
|
132
|
+
children: [/* @__PURE__ */ x(g, { size: 20 }), E("support.article.feedback.no", "No ({{count}})", { count: D.notHelpfulCount })]
|
|
142
133
|
})]
|
|
143
134
|
})
|
|
144
135
|
]
|
|
@@ -148,6 +139,6 @@ function S() {
|
|
|
148
139
|
});
|
|
149
140
|
}
|
|
150
141
|
//#endregion
|
|
151
|
-
export {
|
|
142
|
+
export { C as ArticleDetailUserPage };
|
|
152
143
|
|
|
153
144
|
//# sourceMappingURL=ArticleDetailUserPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleDetailUserPage.js","names":[],"sources":["../../../src/support/pages/ArticleDetailUserPage.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useParams, useNavigate } from 'react-router';\nimport DOMPurify from 'dompurify';\nimport { ArrowLeft, ThumbsUp, ThumbsDown, Eye, Calendar, User, Tag } from 'lucide-react';\nimport { Button, Badge, EmphasisPanel } from '../components/ui';\nimport { useKnowledgeBaseOperations } from '../hooks/useKnowledgeBaseOperations';\nimport { PageLayout, LoadingState, EmptyState } from '../components/PageLayout';\nimport { useSupport } from '../providers/SupportProvider';\nimport { getCategoryBadgeClass } from '../utils/categoryColors';\n\n/**\n * User-facing article detail page.\n *\n * Displays article content, metadata, tags, and voting feedback.\n * No admin controls (edit, publish, unpublish, archive, delete).\n */\nexport function ArticleDetailUserPage() {\n const { slug } = useParams<{ slug: string }>();\n const navigate = useNavigate();\n const { basePath = '' } = useSupport();\n const { articleDetail, articleLoading, articleError, voteArticle, recordView, ratingArticle } =\n useKnowledgeBaseOperations(slug);\n\n useEffect(() => {\n if (articleDetail?.id) {\n recordView(articleDetail.id);\n }\n }, [articleDetail?.id, recordView]);\n\n const handleVote = async (helpful: boolean) => {\n if (!articleDetail) return;\n try {\n await voteArticle(articleDetail.id, helpful);\n } catch (error) {\n console.error('Failed to vote:', error);\n }\n };\n\n if (articleLoading) {\n return (\n <PageLayout showHeader={false}>\n <LoadingState message
|
|
1
|
+
{"version":3,"file":"ArticleDetailUserPage.js","names":[],"sources":["../../../src/support/pages/ArticleDetailUserPage.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useParams, useNavigate } from 'react-router';\nimport DOMPurify from 'dompurify';\nimport { ArrowLeft, ThumbsUp, ThumbsDown, Eye, Calendar, User, Tag } from 'lucide-react';\nimport { Button, Badge, EmphasisPanel } from '../components/ui';\nimport { useTr } from '../hooks/useTr';\nimport { useKnowledgeBaseOperations } from '../hooks/useKnowledgeBaseOperations';\nimport { PageLayout, LoadingState, EmptyState } from '../components/PageLayout';\nimport { useSupport } from '../providers/SupportProvider';\nimport { getCategoryBadgeClass } from '../utils/categoryColors';\n\n/**\n * User-facing article detail page.\n *\n * Displays article content, metadata, tags, and voting feedback.\n * No admin controls (edit, publish, unpublish, archive, delete).\n */\nexport function ArticleDetailUserPage() {\n const { slug } = useParams<{ slug: string }>();\n const navigate = useNavigate();\n const { basePath = '' } = useSupport();\n const tr = useTr();\n const { articleDetail, articleLoading, articleError, voteArticle, recordView, ratingArticle } =\n useKnowledgeBaseOperations(slug);\n\n useEffect(() => {\n if (articleDetail?.id) {\n recordView(articleDetail.id);\n }\n }, [articleDetail?.id, recordView]);\n\n const handleVote = async (helpful: boolean) => {\n if (!articleDetail) return;\n try {\n await voteArticle(articleDetail.id, helpful);\n } catch (error) {\n console.error('Failed to vote:', error);\n }\n };\n\n if (articleLoading) {\n return (\n <PageLayout showHeader={false}>\n <LoadingState message={tr('support.article.loading', 'Loading article...')} />\n </PageLayout>\n );\n }\n\n if (articleError || !articleDetail) {\n return (\n <PageLayout showHeader={false}>\n <EmptyState\n illustration=\"empty-search\"\n title={tr('support.article.notFound.title', 'Article not found')}\n description={tr(\n 'support.article.notFound.description',\n \"The article you're looking for doesn't exist or has been removed.\"\n )}\n action={\n <Button onClick={() => navigate(`${basePath}/kb`)}>\n <ArrowLeft size={18} />\n {tr('support.article.actions.backToKnowledgeBase', 'Back to Knowledge Base')}\n </Button>\n }\n />\n </PageLayout>\n );\n }\n\n return (\n <div className=\"flex flex-col h-full\">\n {/* Header */}\n <div className=\"p-6 border-b border-border-subtle\">\n <div className=\"flex items-center justify-between mb-4\">\n <Button variant=\"ghost\" size=\"sm\" onClick={() => navigate(`${basePath}/kb`)}>\n <ArrowLeft size={20} />\n {tr('support.article.actions.backToKnowledgeBase', 'Back to Knowledge Base')}\n </Button>\n </div>\n\n <div className=\"flex items-center gap-3 mb-3\">\n {articleDetail.category && (\n <Badge\n variant=\"outline\"\n className={getCategoryBadgeClass(articleDetail.category.color)}\n >\n {articleDetail.category.name}\n </Badge>\n )}\n </div>\n\n <h1 className=\"text-2xl font-bold mb-4 text-text-primary sm:text-3xl lg:text-4xl\">\n {articleDetail.title}\n </h1>\n\n <div className=\"flex flex-wrap items-center gap-4 text-sm text-text-secondary\">\n {articleDetail.author && (\n <div className=\"flex items-center gap-2\">\n <User size={16} />\n <span>{articleDetail.author.name}</span>\n </div>\n )}\n {articleDetail.publishedAt && (\n <div className=\"flex items-center gap-2\">\n <Calendar size={16} />\n <span>{new Date(articleDetail.publishedAt).toLocaleDateString()}</span>\n </div>\n )}\n <div className=\"flex items-center gap-2\">\n <Eye size={16} />\n <span>\n {tr('support.article.views', '{{count}} views', {\n count: articleDetail.viewCount,\n })}\n </span>\n </div>\n </div>\n\n {articleDetail.tags && articleDetail.tags.length > 0 && (\n <div className=\"flex flex-wrap items-center gap-2 mt-4\">\n <Tag size={16} className=\"text-text-secondary\" />\n {articleDetail.tags.map((tag: string) => (\n <Badge key={tag} variant=\"outline\" className=\"text-xs\">\n {tag}\n </Badge>\n ))}\n </div>\n )}\n </div>\n\n {/* Content */}\n <div className=\"flex-1 overflow-y-auto p-6\">\n <div className=\"max-w-4xl mx-auto\">\n <div\n className=\"prose prose-lg max-w-none dark:prose-invert text-text-primary\"\n dangerouslySetInnerHTML={{ __html: DOMPurify.sanitize(articleDetail.content) }}\n />\n </div>\n </div>\n\n {/* Feedback — the page's single emphasis zone, inviting the reader to act */}\n <div className=\"border-t border-border-subtle p-6 bg-bg-surface\">\n <EmphasisPanel className=\"max-w-4xl mx-auto p-5\">\n <h3 className=\"text-lg font-semibold mb-1 text-text-primary\">\n {tr('support.article.feedback.title', 'Was this article helpful?')}\n </h3>\n <p className=\"mb-4 text-sm text-text-secondary\">\n {tr(\n 'support.article.feedback.userDescription',\n 'Your feedback helps us improve our guides for everyone.'\n )}\n </p>\n <div className=\"flex items-center gap-4\">\n <Button\n variant=\"outline\"\n onClick={() => handleVote(true)}\n disabled={ratingArticle}\n className=\"px-6\"\n >\n <ThumbsUp size={20} />\n {tr('support.article.feedback.yes', 'Yes ({{count}})', {\n count: articleDetail.helpfulCount,\n })}\n </Button>\n <Button\n variant=\"outline\"\n onClick={() => handleVote(false)}\n disabled={ratingArticle}\n className=\"px-6\"\n >\n <ThumbsDown size={20} />\n {tr('support.article.feedback.no', 'No ({{count}})', {\n count: articleDetail.notHelpfulCount,\n })}\n </Button>\n </div>\n </EmphasisPanel>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAiBA,SAAgB,IAAwB;CACtC,IAAM,EAAE,YAAS,EAA4B,GACvC,IAAW,EAAY,GACvB,EAAE,cAAW,OAAO,EAAW,GAC/B,IAAK,EAAM,GACX,EAAE,kBAAe,mBAAgB,iBAAc,gBAAa,eAAY,qBAC5E,EAA2B,CAAI;CAEjC,QAAgB;EACd,AAAI,GAAe,MACjB,EAAW,EAAc,EAAE;CAE/B,GAAG,CAAC,GAAe,IAAI,CAAU,CAAC;CAElC,IAAM,IAAa,OAAO,MAAqB;EACxC,OACL,IAAI;GACF,M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