@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,47 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { humanizeCategory as t } from "../utils/index.js";
|
|
3
|
+
import { useGetContactInquiryQuery as n, useReplyToContactInquiryMutation as r, useUpdateContactInquiryStatusMutation as i } from "../../generated/global-operations.js";
|
|
4
|
+
import { nativeCopyText as a, nativeImpact as ee } from "../../utils/nativeBridge.js";
|
|
5
|
+
import { registerBreadcrumbName as te, unregisterBreadcrumbName as ne } from "../utils/breadcrumbRegistry.js";
|
|
6
|
+
import { useEffect as o, useRef as s, useState as c } from "react";
|
|
7
|
+
import { Archive as l, ArrowLeft as u, Building2 as d, Calendar as re, CheckCircle as f, Clock as ie, Copy as ae, ExternalLink as p, Eye as m, Globe as oe, Loader2 as h, Mail as g, MessageSquare as se, Package as ce, Send as _, ShieldAlert as v, Tag as le, Ticket as y, User as b } from "lucide-react";
|
|
8
|
+
import { useLocation as x, useNavigate as S, useParams as C } from "react-router";
|
|
9
|
+
import { graphqlFetch as w } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
10
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
11
|
+
import { EmphasisPanel as ue, IllustratedEmptyState as de, NextSteps as fe, PagePurpose as pe } from "@burdenoff/fe-libs/ui";
|
|
11
12
|
//#region src/support/pages/ContactInquiryDetailPage.tsx
|
|
12
|
-
var
|
|
13
|
+
var D = {
|
|
13
14
|
NEW: {
|
|
14
|
-
label: "New",
|
|
15
15
|
color: "text-accent-blue",
|
|
16
|
-
icon:
|
|
16
|
+
icon: g,
|
|
17
17
|
bg: "bg-status-info-bg-subtle border-border-subtle"
|
|
18
18
|
},
|
|
19
19
|
REVIEWED: {
|
|
20
|
-
label: "Reviewed",
|
|
21
20
|
color: "text-status-warning-text",
|
|
22
|
-
icon:
|
|
21
|
+
icon: m,
|
|
23
22
|
bg: "bg-status-warning-bg-subtle border-border-subtle"
|
|
24
23
|
},
|
|
25
24
|
CONVERTED: {
|
|
26
|
-
label: "Converted to Ticket",
|
|
27
25
|
color: "text-status-success-text",
|
|
28
|
-
icon:
|
|
26
|
+
icon: y,
|
|
29
27
|
bg: "bg-status-success-bg-subtle border-border-subtle"
|
|
30
28
|
},
|
|
31
29
|
SPAM: {
|
|
32
|
-
label: "Spam",
|
|
33
30
|
color: "text-status-error-text",
|
|
34
|
-
icon:
|
|
31
|
+
icon: v,
|
|
35
32
|
bg: "bg-status-error-bg-subtle border-border-subtle"
|
|
36
33
|
},
|
|
37
34
|
ARCHIVED: {
|
|
38
|
-
label: "Archived",
|
|
39
35
|
color: "text-text-secondary",
|
|
40
|
-
icon:
|
|
36
|
+
icon: l,
|
|
41
37
|
bg: "bg-bg-canvas border-border-subtle"
|
|
42
38
|
}
|
|
43
39
|
};
|
|
44
|
-
function
|
|
40
|
+
function O(e) {
|
|
45
41
|
return new Date(e).toLocaleDateString("en-US", {
|
|
46
42
|
weekday: "short",
|
|
47
43
|
month: "short",
|
|
@@ -51,30 +47,57 @@ function A(e) {
|
|
|
51
47
|
minute: "2-digit"
|
|
52
48
|
});
|
|
53
49
|
}
|
|
54
|
-
function
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
57
|
-
let
|
|
58
|
-
if (
|
|
59
|
-
let
|
|
60
|
-
return
|
|
50
|
+
function me(e, t) {
|
|
51
|
+
let n = Date.now() - new Date(e).getTime(), r = Math.floor(n / 6e4);
|
|
52
|
+
if (r < 60) return t("support.contactInquiryDetail.timeAgo.minutes", "{{minutes}}m ago", { minutes: r });
|
|
53
|
+
let i = Math.floor(r / 60);
|
|
54
|
+
if (i < 24) return t("support.contactInquiryDetail.timeAgo.hours", "{{hours}}h ago", { hours: i });
|
|
55
|
+
let a = Math.floor(i / 24);
|
|
56
|
+
return a < 30 ? t("support.contactInquiryDetail.timeAgo.days", "{{days}}d ago", { days: a }) : O(e);
|
|
61
57
|
}
|
|
62
|
-
function
|
|
63
|
-
let { id:
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
function k() {
|
|
59
|
+
let { id: m } = C(), v = S(), k = x().search, A = e(), [he, j] = c(!1), [M, N] = c(!1), [P, F] = c(""), [I, L] = c(!1), R = s(null), z = s(null), B = s(null), V = {
|
|
60
|
+
NEW: A("support.contactInquiryDetail.status.new", "New"),
|
|
61
|
+
REVIEWED: A("support.contactInquiryDetail.status.reviewed", "Reviewed"),
|
|
62
|
+
CONVERTED: A("support.contactInquiryDetail.status.converted", "Converted to Ticket"),
|
|
63
|
+
SPAM: A("support.contactInquiryDetail.status.spam", "Spam"),
|
|
64
|
+
ARCHIVED: A("support.contactInquiryDetail.status.archived", "Archived")
|
|
65
|
+
}, H = {
|
|
66
|
+
NEW: {
|
|
67
|
+
...D.NEW,
|
|
68
|
+
label: V.NEW
|
|
69
|
+
},
|
|
70
|
+
REVIEWED: {
|
|
71
|
+
...D.REVIEWED,
|
|
72
|
+
label: V.REVIEWED
|
|
73
|
+
},
|
|
74
|
+
CONVERTED: {
|
|
75
|
+
...D.CONVERTED,
|
|
76
|
+
label: V.CONVERTED
|
|
77
|
+
},
|
|
78
|
+
SPAM: {
|
|
79
|
+
...D.SPAM,
|
|
80
|
+
label: V.SPAM
|
|
81
|
+
},
|
|
82
|
+
ARCHIVED: {
|
|
83
|
+
...D.ARCHIVED,
|
|
84
|
+
label: V.ARCHIVED
|
|
85
|
+
}
|
|
86
|
+
}, [U, W] = c(null);
|
|
87
|
+
o(() => () => {
|
|
88
|
+
R.current && clearTimeout(R.current), z.current && clearTimeout(z.current), B.current && clearTimeout(B.current);
|
|
66
89
|
}, []);
|
|
67
|
-
let { data: G, loading:
|
|
68
|
-
variables: { id:
|
|
69
|
-
skip: !
|
|
90
|
+
let { data: G, loading: ge, error: K } = n({
|
|
91
|
+
variables: { id: m },
|
|
92
|
+
skip: !m
|
|
70
93
|
}), q = G?.contactInquiry?.productId ?? null;
|
|
71
|
-
|
|
94
|
+
o(() => {
|
|
72
95
|
if (!q) {
|
|
73
96
|
W(null);
|
|
74
97
|
return;
|
|
75
98
|
}
|
|
76
99
|
let e = !1;
|
|
77
|
-
return
|
|
100
|
+
return w({
|
|
78
101
|
gateway: "global",
|
|
79
102
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
80
103
|
variables: { id: q }
|
|
@@ -86,100 +109,100 @@ function j() {
|
|
|
86
109
|
e = !0;
|
|
87
110
|
};
|
|
88
111
|
}, [q]);
|
|
89
|
-
let [
|
|
90
|
-
if (!(!
|
|
91
|
-
(await
|
|
92
|
-
id:
|
|
93
|
-
message:
|
|
94
|
-
} })).data?.replyToContactInquiry.success && (
|
|
112
|
+
let [_e, { loading: J }] = i({ refetchQueries: ["GetContactInquiry", "GetContactInquiries"] }), [ve, { loading: Y }] = r({ refetchQueries: ["GetContactInquiry"] }), ye = async () => {
|
|
113
|
+
if (!(!P.trim() || !m)) try {
|
|
114
|
+
(await ve({ variables: {
|
|
115
|
+
id: m,
|
|
116
|
+
message: P.trim()
|
|
117
|
+
} })).data?.replyToContactInquiry.success && (L(!0), F(""), B.current && clearTimeout(B.current), B.current = setTimeout(() => L(!1), 3e3));
|
|
95
118
|
} catch (e) {
|
|
96
119
|
console.error("Failed to send reply:", e);
|
|
97
120
|
}
|
|
98
121
|
}, X = G?.contactInquiry;
|
|
99
|
-
|
|
122
|
+
o(() => {
|
|
100
123
|
let e = X?.subject?.trim() || X?.name?.trim() || X?.email?.trim();
|
|
101
|
-
return
|
|
124
|
+
return te(m, e), () => ne(m);
|
|
102
125
|
}, [
|
|
103
|
-
|
|
126
|
+
m,
|
|
104
127
|
X?.subject,
|
|
105
128
|
X?.name,
|
|
106
129
|
X?.email
|
|
107
130
|
]);
|
|
108
131
|
let Z = async (e) => {
|
|
109
|
-
if (
|
|
110
|
-
await
|
|
111
|
-
id:
|
|
132
|
+
if (m) try {
|
|
133
|
+
await _e({ variables: {
|
|
134
|
+
id: m,
|
|
112
135
|
input: { status: e }
|
|
113
|
-
} }),
|
|
136
|
+
} }), j(!0), R.current && clearTimeout(R.current), R.current = setTimeout(() => j(!1), 3e3);
|
|
114
137
|
} catch (e) {
|
|
115
138
|
console.error("Failed to update status:", e);
|
|
116
139
|
}
|
|
117
|
-
},
|
|
118
|
-
X?.email && (
|
|
140
|
+
}, be = async () => {
|
|
141
|
+
X?.email && (ee("light"), await a(X.email), N(!0), z.current && clearTimeout(z.current), z.current = setTimeout(() => N(!1), 2e3));
|
|
119
142
|
};
|
|
120
|
-
if (
|
|
143
|
+
if (ge) return /* @__PURE__ */ T("div", {
|
|
121
144
|
className: "min-h-full flex items-center justify-center py-20",
|
|
122
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ E("div", {
|
|
123
146
|
className: "text-center",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
147
|
+
children: [/* @__PURE__ */ T(h, {
|
|
125
148
|
size: 36,
|
|
126
149
|
className: "animate-spin text-[var(--color-text-secondary)] mx-auto mb-3"
|
|
127
|
-
}), /* @__PURE__ */
|
|
150
|
+
}), /* @__PURE__ */ T("p", {
|
|
128
151
|
className: "text-sm text-[var(--color-text-secondary)]",
|
|
129
|
-
children: "Loading inquiry details…"
|
|
152
|
+
children: A("support.contactInquiryDetail.loading", "Loading inquiry details…")
|
|
130
153
|
})]
|
|
131
154
|
})
|
|
132
155
|
});
|
|
133
|
-
if (K || !X) return /* @__PURE__ */
|
|
156
|
+
if (K || !X) return /* @__PURE__ */ T("div", {
|
|
134
157
|
className: "p-3 sm:p-6",
|
|
135
|
-
children: /* @__PURE__ */
|
|
158
|
+
children: /* @__PURE__ */ T(de, {
|
|
136
159
|
illustration: "empty-search",
|
|
137
|
-
title: "Inquiry not found",
|
|
138
|
-
description: K?.message || "This inquiry may have been deleted or you don't have access.",
|
|
139
|
-
action: /* @__PURE__ */
|
|
160
|
+
title: A("support.contactInquiryDetail.notFound.title", "Inquiry not found"),
|
|
161
|
+
description: K?.message || A("support.contactInquiryDetail.notFound.description", "This inquiry may have been deleted or you don't have access."),
|
|
162
|
+
action: /* @__PURE__ */ E("button", {
|
|
140
163
|
type: "button",
|
|
141
|
-
onClick: () =>
|
|
164
|
+
onClick: () => v(`/support/inquiries${k}`),
|
|
142
165
|
className: "min-h-11 inline-flex items-center justify-center gap-2 px-5 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all",
|
|
143
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ T(u, { size: 16 }), A("support.contactInquiryDetail.actions.backToInquiries", "Back to Inquiries")]
|
|
144
167
|
})
|
|
145
168
|
})
|
|
146
169
|
});
|
|
147
|
-
let Q =
|
|
148
|
-
return /* @__PURE__ */
|
|
170
|
+
let Q = H[X.status] || H.NEW, $ = Q.icon;
|
|
171
|
+
return /* @__PURE__ */ E("div", {
|
|
149
172
|
className: "p-3 animate-in fade-in duration-200 sm:p-6",
|
|
150
173
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ E("div", {
|
|
152
175
|
className: "flex flex-col gap-3 mb-6 sm:flex-row sm:items-center sm:justify-between",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
176
|
+
children: [/* @__PURE__ */ E("button", {
|
|
154
177
|
type: "button",
|
|
155
|
-
onClick: () =>
|
|
178
|
+
onClick: () => v(`/support/inquiries${k}`),
|
|
156
179
|
className: "min-h-11 inline-flex items-center gap-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
157
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ T(u, { size: 18 }), /* @__PURE__ */ T("span", {
|
|
158
181
|
className: "text-sm font-medium",
|
|
159
|
-
children: "Back to Inquiries"
|
|
182
|
+
children: A("support.contactInquiryDetail.actions.backToInquiries", "Back to Inquiries")
|
|
160
183
|
})]
|
|
161
|
-
}), /* @__PURE__ */
|
|
184
|
+
}), /* @__PURE__ */ E("div", {
|
|
162
185
|
className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ T(ie, { size: 12 }), me(X.createdAt, A)]
|
|
164
187
|
})]
|
|
165
188
|
}),
|
|
166
|
-
|
|
189
|
+
he && /* @__PURE__ */ E("div", {
|
|
167
190
|
className: "mb-5 p-3.5 bg-status-success-bg-subtle border border-border-subtle rounded-xl flex items-center gap-2.5 text-status-success-text text-sm font-medium animate-in slide-in-from-top-2 duration-200",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
191
|
+
children: [/* @__PURE__ */ T(f, { size: 18 }), A("support.contactInquiryDetail.notifications.statusUpdated", "Status updated successfully")]
|
|
169
192
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ T(pe, {
|
|
171
194
|
className: "mb-6",
|
|
172
|
-
children: "Everything a prospect or customer sent through your contact form, in one place. Read the message, reply by branded email, and decide what happens next — convert a genuine lead into a support ticket, mark it reviewed, or archive spam. Use the actions on the right to move it forward."
|
|
195
|
+
children: A("support.contactInquiryDetail.purpose", "Everything a prospect or customer sent through your contact form, in one place. Read the message, reply by branded email, and decide what happens next — convert a genuine lead into a support ticket, mark it reviewed, or archive spam. Use the actions on the right to move it forward.")
|
|
173
196
|
}),
|
|
174
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ T(fe, {
|
|
175
198
|
storageKey: "support-inquiry-detail",
|
|
176
|
-
title: "Handle this inquiry",
|
|
199
|
+
title: A("support.contactInquiryDetail.nextSteps.title", "Handle this inquiry"),
|
|
177
200
|
className: "mb-6",
|
|
178
201
|
steps: [
|
|
179
202
|
{
|
|
180
203
|
id: "reply",
|
|
181
|
-
label: "Reply to the sender",
|
|
182
|
-
description: "Send a branded email response from the Reply panel.",
|
|
204
|
+
label: A("support.contactInquiryDetail.nextSteps.reply.label", "Reply to the sender"),
|
|
205
|
+
description: A("support.contactInquiryDetail.nextSteps.reply.description", "Send a branded email response from the Reply panel."),
|
|
183
206
|
onClick: () => document.querySelector("[data-tour=\"support-inquiry-reply\"]")?.scrollIntoView({
|
|
184
207
|
behavior: "smooth",
|
|
185
208
|
block: "center"
|
|
@@ -187,116 +210,120 @@ function j() {
|
|
|
187
210
|
},
|
|
188
211
|
...X.status === "CONVERTED" ? [] : [{
|
|
189
212
|
id: "convert",
|
|
190
|
-
label: "Convert to a ticket",
|
|
191
|
-
description: "Turn a real request into a tracked support ticket.",
|
|
213
|
+
label: A("support.contactInquiryDetail.nextSteps.convert.label", "Convert to a ticket"),
|
|
214
|
+
description: A("support.contactInquiryDetail.nextSteps.convert.description", "Turn a real request into a tracked support ticket."),
|
|
192
215
|
onClick: () => void Z("CONVERTED")
|
|
193
216
|
}],
|
|
194
217
|
{
|
|
195
218
|
id: "archive",
|
|
196
|
-
label: "Archive or mark spam",
|
|
197
|
-
description: "Clear out anything that needs no follow-up.",
|
|
219
|
+
label: A("support.contactInquiryDetail.nextSteps.archive.label", "Archive or mark spam"),
|
|
220
|
+
description: A("support.contactInquiryDetail.nextSteps.archive.description", "Clear out anything that needs no follow-up."),
|
|
198
221
|
onClick: () => void Z("ARCHIVED"),
|
|
199
222
|
done: X.status === "ARCHIVED" || X.status === "SPAM"
|
|
200
223
|
}
|
|
201
224
|
]
|
|
202
225
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ T("div", {
|
|
204
227
|
className: `rounded-xl border p-6 mb-6 ${Q.bg}`,
|
|
205
|
-
children: /* @__PURE__ */
|
|
228
|
+
children: /* @__PURE__ */ T("div", {
|
|
206
229
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
207
|
-
children: /* @__PURE__ */
|
|
230
|
+
children: /* @__PURE__ */ E("div", {
|
|
208
231
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ T("div", {
|
|
210
233
|
className: "size-12 rounded-xl bg-bg-surface/80 dark:bg-bg-surface/10 flex items-center justify-center shadow-sm",
|
|
211
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ T($, {
|
|
212
235
|
size: 24,
|
|
213
236
|
className: Q.color
|
|
214
237
|
})
|
|
215
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("div", {
|
|
216
239
|
className: "flex items-center gap-3 mb-1.5",
|
|
217
|
-
children: /* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ T("h1", {
|
|
218
241
|
className: "text-xl font-bold text-[var(--color-text-primary)]",
|
|
219
242
|
children: X.subject
|
|
220
243
|
})
|
|
221
|
-
}), /* @__PURE__ */
|
|
244
|
+
}), /* @__PURE__ */ E("div", {
|
|
222
245
|
className: "flex flex-wrap items-center gap-3 text-sm",
|
|
223
|
-
children: [/* @__PURE__ */
|
|
246
|
+
children: [/* @__PURE__ */ E("span", {
|
|
224
247
|
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${Q.color} bg-bg-surface/60 dark:bg-bg-surface/10`,
|
|
225
|
-
children: [/* @__PURE__ */
|
|
226
|
-
}), /* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ T($, { size: 12 }), Q.label]
|
|
249
|
+
}), /* @__PURE__ */ E("span", {
|
|
227
250
|
className: "text-[var(--color-text-secondary)]",
|
|
228
|
-
children: [
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
251
|
+
children: [
|
|
252
|
+
A("support.contactInquiryDetail.from", "from"),
|
|
253
|
+
" ",
|
|
254
|
+
/* @__PURE__ */ T("strong", {
|
|
255
|
+
className: "text-[var(--color-text-primary)]",
|
|
256
|
+
children: X.name
|
|
257
|
+
})
|
|
258
|
+
]
|
|
232
259
|
})]
|
|
233
260
|
})] })]
|
|
234
261
|
})
|
|
235
262
|
})
|
|
236
263
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ E("div", {
|
|
238
265
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
239
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ E("div", {
|
|
240
267
|
className: "lg:col-span-2 space-y-5",
|
|
241
268
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ E("div", {
|
|
243
270
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ T("div", {
|
|
245
272
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
246
|
-
children: /* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ E("h2", {
|
|
247
274
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ T(b, { size: 14 }), A("support.contactInquiryDetail.contactInfo.title", "Contact Information")]
|
|
249
276
|
})
|
|
250
|
-
}), /* @__PURE__ */
|
|
277
|
+
}), /* @__PURE__ */ T("div", {
|
|
251
278
|
className: "p-5",
|
|
252
|
-
children: /* @__PURE__ */
|
|
279
|
+
children: /* @__PURE__ */ E("div", {
|
|
253
280
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
254
281
|
children: [
|
|
255
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ E("div", {
|
|
256
283
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ T("div", {
|
|
258
285
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
259
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ T(b, {
|
|
260
287
|
size: 16,
|
|
261
288
|
className: "text-accent-blue"
|
|
262
289
|
})
|
|
263
|
-
}), /* @__PURE__ */
|
|
290
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
264
291
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
265
|
-
children: "Name"
|
|
266
|
-
}), /* @__PURE__ */
|
|
292
|
+
children: A("support.contactInquiryDetail.contactInfo.labels.name", "Name")
|
|
293
|
+
}), /* @__PURE__ */ T("p", {
|
|
267
294
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
268
295
|
children: X.name
|
|
269
296
|
})] })]
|
|
270
297
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ E("div", {
|
|
272
299
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
273
|
-
children: [/* @__PURE__ */
|
|
300
|
+
children: [/* @__PURE__ */ T("div", {
|
|
274
301
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
275
|
-
children: /* @__PURE__ */
|
|
302
|
+
children: /* @__PURE__ */ T(g, {
|
|
276
303
|
size: 16,
|
|
277
304
|
className: "text-accent-indigo"
|
|
278
305
|
})
|
|
279
|
-
}), /* @__PURE__ */
|
|
306
|
+
}), /* @__PURE__ */ E("div", {
|
|
280
307
|
className: "flex-1 min-w-0",
|
|
281
|
-
children: [/* @__PURE__ */
|
|
308
|
+
children: [/* @__PURE__ */ T("p", {
|
|
282
309
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
283
|
-
children: "Email"
|
|
284
|
-
}), /* @__PURE__ */
|
|
310
|
+
children: A("support.contactInquiryDetail.contactInfo.labels.email", "Email")
|
|
311
|
+
}), /* @__PURE__ */ E("div", {
|
|
285
312
|
className: "flex items-center gap-1.5",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ T("a", {
|
|
287
314
|
href: `mailto:${X.email}`,
|
|
288
315
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate",
|
|
289
316
|
children: X.email
|
|
290
|
-
}), /* @__PURE__ */
|
|
317
|
+
}), /* @__PURE__ */ T("button", {
|
|
291
318
|
type: "button",
|
|
292
|
-
onClick:
|
|
319
|
+
onClick: be,
|
|
293
320
|
className: "min-h-11 min-w-11 flex-shrink-0 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
|
|
294
|
-
title: "Copy email",
|
|
295
|
-
"aria-label": "Copy email",
|
|
296
|
-
children:
|
|
321
|
+
title: A("support.contactInquiryDetail.contactInfo.copyEmail", "Copy email"),
|
|
322
|
+
"aria-label": A("support.contactInquiryDetail.contactInfo.copyEmail", "Copy email"),
|
|
323
|
+
children: M ? /* @__PURE__ */ T(f, {
|
|
297
324
|
size: 12,
|
|
298
325
|
className: "text-status-success-text"
|
|
299
|
-
}) : /* @__PURE__ */
|
|
326
|
+
}) : /* @__PURE__ */ T(ae, {
|
|
300
327
|
size: 12,
|
|
301
328
|
className: "text-[var(--color-text-secondary)]"
|
|
302
329
|
})
|
|
@@ -304,66 +331,66 @@ function j() {
|
|
|
304
331
|
})]
|
|
305
332
|
})]
|
|
306
333
|
}),
|
|
307
|
-
X.company && /* @__PURE__ */
|
|
334
|
+
X.company && /* @__PURE__ */ E("div", {
|
|
308
335
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
309
|
-
children: [/* @__PURE__ */
|
|
336
|
+
children: [/* @__PURE__ */ T("div", {
|
|
310
337
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
311
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ T(d, {
|
|
312
339
|
size: 16,
|
|
313
340
|
className: "text-accent-purple"
|
|
314
341
|
})
|
|
315
|
-
}), /* @__PURE__ */
|
|
342
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
316
343
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
317
|
-
children: "Company"
|
|
318
|
-
}), /* @__PURE__ */
|
|
344
|
+
children: A("support.contactInquiryDetail.contactInfo.labels.company", "Company")
|
|
345
|
+
}), /* @__PURE__ */ T("p", {
|
|
319
346
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
320
347
|
children: X.company
|
|
321
348
|
})] })]
|
|
322
349
|
}),
|
|
323
|
-
X.category && /* @__PURE__ */
|
|
350
|
+
X.category && /* @__PURE__ */ E("div", {
|
|
324
351
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
325
|
-
children: [/* @__PURE__ */
|
|
352
|
+
children: [/* @__PURE__ */ T("div", {
|
|
326
353
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
|
|
327
|
-
children: /* @__PURE__ */
|
|
354
|
+
children: /* @__PURE__ */ T(le, {
|
|
328
355
|
size: 16,
|
|
329
356
|
className: "text-accent-blue"
|
|
330
357
|
})
|
|
331
|
-
}), /* @__PURE__ */
|
|
358
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
332
359
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
333
|
-
children: "Category"
|
|
334
|
-
}), /* @__PURE__ */
|
|
360
|
+
children: A("support.contactInquiryDetail.contactInfo.labels.category", "Category")
|
|
361
|
+
}), /* @__PURE__ */ T("p", {
|
|
335
362
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
336
|
-
children:
|
|
363
|
+
children: t(X.category)
|
|
337
364
|
})] })]
|
|
338
365
|
}),
|
|
339
|
-
X.productId && U && /* @__PURE__ */
|
|
366
|
+
X.productId && U && /* @__PURE__ */ E("div", {
|
|
340
367
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
341
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ T("div", {
|
|
342
369
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
343
|
-
children: /* @__PURE__ */
|
|
370
|
+
children: /* @__PURE__ */ T(ce, {
|
|
344
371
|
size: 16,
|
|
345
372
|
className: "text-accent-purple"
|
|
346
373
|
})
|
|
347
|
-
}), /* @__PURE__ */
|
|
374
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
348
375
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
349
|
-
children: "Product"
|
|
350
|
-
}), /* @__PURE__ */
|
|
376
|
+
children: A("support.contactInquiryDetail.contactInfo.labels.product", "Product")
|
|
377
|
+
}), /* @__PURE__ */ T("p", {
|
|
351
378
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
352
379
|
children: U
|
|
353
380
|
})] })]
|
|
354
381
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ E("div", {
|
|
356
383
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
384
|
+
children: [/* @__PURE__ */ T("div", {
|
|
358
385
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
359
|
-
children: /* @__PURE__ */
|
|
386
|
+
children: /* @__PURE__ */ T(oe, {
|
|
360
387
|
size: 16,
|
|
361
388
|
className: "text-status-success-text"
|
|
362
389
|
})
|
|
363
|
-
}), /* @__PURE__ */
|
|
390
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
364
391
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
365
|
-
children: "Source"
|
|
366
|
-
}), /* @__PURE__ */
|
|
392
|
+
children: A("support.contactInquiryDetail.contactInfo.labels.source", "Source")
|
|
393
|
+
}), /* @__PURE__ */ T("p", {
|
|
367
394
|
className: "text-sm font-semibold text-[var(--color-text-primary)] capitalize",
|
|
368
395
|
children: X.source.toLowerCase()
|
|
369
396
|
})] })]
|
|
@@ -372,40 +399,40 @@ function j() {
|
|
|
372
399
|
})
|
|
373
400
|
})]
|
|
374
401
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ E("div", {
|
|
376
403
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
404
|
+
children: [/* @__PURE__ */ T("div", {
|
|
378
405
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
379
|
-
children: /* @__PURE__ */
|
|
406
|
+
children: /* @__PURE__ */ E("h2", {
|
|
380
407
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
381
|
-
children: [/* @__PURE__ */
|
|
408
|
+
children: [/* @__PURE__ */ T(se, { size: 14 }), A("support.contactInquiryDetail.message.title", "Message")]
|
|
382
409
|
})
|
|
383
|
-
}), /* @__PURE__ */
|
|
410
|
+
}), /* @__PURE__ */ T("div", {
|
|
384
411
|
className: "p-5",
|
|
385
|
-
children: /* @__PURE__ */
|
|
412
|
+
children: /* @__PURE__ */ T("p", {
|
|
386
413
|
className: "text-sm text-[var(--color-text-primary)] leading-relaxed whitespace-pre-wrap",
|
|
387
414
|
children: X.message
|
|
388
415
|
})
|
|
389
416
|
})]
|
|
390
417
|
}),
|
|
391
|
-
X.metadata && Object.keys(X.metadata).length > 0 && /* @__PURE__ */
|
|
418
|
+
X.metadata && Object.keys(X.metadata).length > 0 && /* @__PURE__ */ E("div", {
|
|
392
419
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
393
|
-
children: [/* @__PURE__ */
|
|
420
|
+
children: [/* @__PURE__ */ T("div", {
|
|
394
421
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
395
|
-
children: /* @__PURE__ */
|
|
422
|
+
children: /* @__PURE__ */ E("h2", {
|
|
396
423
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
424
|
+
children: [/* @__PURE__ */ T(p, { size: 14 }), A("support.contactInquiryDetail.additionalData.title", "Additional Data")]
|
|
398
425
|
})
|
|
399
|
-
}), /* @__PURE__ */
|
|
426
|
+
}), /* @__PURE__ */ T("div", {
|
|
400
427
|
className: "p-5",
|
|
401
|
-
children: /* @__PURE__ */
|
|
428
|
+
children: /* @__PURE__ */ T("div", {
|
|
402
429
|
className: "space-y-2.5",
|
|
403
|
-
children: Object.entries(X.metadata).map(([e, t]) => /* @__PURE__ */
|
|
430
|
+
children: Object.entries(X.metadata).map(([e, t]) => /* @__PURE__ */ E("div", {
|
|
404
431
|
className: "flex items-start gap-3 py-1.5 border-b border-[var(--color-border-default)] last:border-0",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
432
|
+
children: [/* @__PURE__ */ T("span", {
|
|
406
433
|
className: "text-xs font-medium text-[var(--color-text-secondary)] min-w-[120px] uppercase tracking-wider",
|
|
407
434
|
children: e
|
|
408
|
-
}), /* @__PURE__ */
|
|
435
|
+
}), /* @__PURE__ */ T("span", {
|
|
409
436
|
className: "text-xs text-[var(--color-text-primary)] font-mono break-all",
|
|
410
437
|
children: String(t)
|
|
411
438
|
})]
|
|
@@ -414,46 +441,46 @@ function j() {
|
|
|
414
441
|
})]
|
|
415
442
|
})
|
|
416
443
|
]
|
|
417
|
-
}), /* @__PURE__ */
|
|
444
|
+
}), /* @__PURE__ */ E("div", {
|
|
418
445
|
className: "space-y-5",
|
|
419
446
|
children: [
|
|
420
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ E("div", {
|
|
421
448
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
422
|
-
children: [/* @__PURE__ */
|
|
449
|
+
children: [/* @__PURE__ */ T("div", {
|
|
423
450
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
424
|
-
children: /* @__PURE__ */
|
|
451
|
+
children: /* @__PURE__ */ E("h2", {
|
|
425
452
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
426
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ T(re, { size: 14 }), A("support.contactInquiryDetail.timeline.title", "Timeline")]
|
|
427
454
|
})
|
|
428
|
-
}), /* @__PURE__ */
|
|
455
|
+
}), /* @__PURE__ */ E("div", {
|
|
429
456
|
className: "p-5 space-y-4",
|
|
430
457
|
children: [
|
|
431
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ E("div", {
|
|
432
459
|
className: "flex items-start gap-3",
|
|
433
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ T("div", { className: "size-2 rounded-full bg-accent-blue mt-1.5 flex-shrink-0" }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
434
461
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
435
|
-
children: "Submitted"
|
|
436
|
-
}), /* @__PURE__ */
|
|
462
|
+
children: A("support.contactInquiryDetail.timeline.submitted", "Submitted")
|
|
463
|
+
}), /* @__PURE__ */ T("p", {
|
|
437
464
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
438
|
-
children:
|
|
465
|
+
children: O(X.createdAt)
|
|
439
466
|
})] })]
|
|
440
467
|
}),
|
|
441
|
-
X.updatedAt !== X.createdAt && /* @__PURE__ */
|
|
468
|
+
X.updatedAt !== X.createdAt && /* @__PURE__ */ E("div", {
|
|
442
469
|
className: "flex items-start gap-3",
|
|
443
|
-
children: [/* @__PURE__ */
|
|
470
|
+
children: [/* @__PURE__ */ T("div", { className: "size-2 rounded-full bg-status-warning-bg mt-1.5 flex-shrink-0" }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
444
471
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
445
|
-
children: "Last Updated"
|
|
446
|
-
}), /* @__PURE__ */
|
|
472
|
+
children: A("support.contactInquiryDetail.timeline.lastUpdated", "Last Updated")
|
|
473
|
+
}), /* @__PURE__ */ T("p", {
|
|
447
474
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
448
|
-
children:
|
|
475
|
+
children: O(X.updatedAt)
|
|
449
476
|
})] })]
|
|
450
477
|
}),
|
|
451
|
-
X.convertedTicketId && /* @__PURE__ */
|
|
478
|
+
X.convertedTicketId && /* @__PURE__ */ E("div", {
|
|
452
479
|
className: "flex items-start gap-3",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
480
|
+
children: [/* @__PURE__ */ T("div", { className: "size-2 rounded-full bg-status-success-bg mt-1.5 flex-shrink-0" }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
454
481
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
455
|
-
children: "Converted to Ticket"
|
|
456
|
-
}), /* @__PURE__ */
|
|
482
|
+
children: A("support.contactInquiryDetail.timeline.converted", "Converted to Ticket")
|
|
483
|
+
}), /* @__PURE__ */ T("p", {
|
|
457
484
|
className: "text-[11px] font-mono text-[var(--color-text-secondary)]",
|
|
458
485
|
children: X.convertedTicketId
|
|
459
486
|
})] })]
|
|
@@ -461,107 +488,107 @@ function j() {
|
|
|
461
488
|
]
|
|
462
489
|
})]
|
|
463
490
|
}),
|
|
464
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ E(ue, {
|
|
465
492
|
"data-tour": "support-inquiry-reply",
|
|
466
493
|
className: "overflow-hidden p-0",
|
|
467
|
-
children: [/* @__PURE__ */
|
|
494
|
+
children: [/* @__PURE__ */ T("div", {
|
|
468
495
|
className: "px-5 py-3.5 border-b border-border-seam",
|
|
469
|
-
children: /* @__PURE__ */
|
|
496
|
+
children: /* @__PURE__ */ E("h2", {
|
|
470
497
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
|
|
471
|
-
children: [/* @__PURE__ */
|
|
498
|
+
children: [/* @__PURE__ */ T(_, { size: 12 }), A("support.contactInquiryDetail.reply.title", "Reply")]
|
|
472
499
|
})
|
|
473
|
-
}), /* @__PURE__ */
|
|
500
|
+
}), /* @__PURE__ */ E("div", {
|
|
474
501
|
className: "p-5",
|
|
475
502
|
children: [
|
|
476
|
-
|
|
503
|
+
I && /* @__PURE__ */ E("div", {
|
|
477
504
|
className: "mb-3 p-2.5 rounded-lg bg-status-success-bg-subtle border border-border-subtle text-sm text-status-success-text flex items-center gap-2",
|
|
478
|
-
children: [/* @__PURE__ */
|
|
505
|
+
children: [/* @__PURE__ */ T(f, { size: 14 }), A("support.contactInquiryDetail.notifications.replySent", "Reply sent successfully!")]
|
|
479
506
|
}),
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
"aria-label": "Reply message",
|
|
482
|
-
value:
|
|
483
|
-
onChange: (e) =>
|
|
484
|
-
placeholder: "Type your reply... This will be sent as a branded email to the contact.",
|
|
507
|
+
/* @__PURE__ */ T("textarea", {
|
|
508
|
+
"aria-label": A("support.contactInquiryDetail.reply.ariaLabel", "Reply message"),
|
|
509
|
+
value: P,
|
|
510
|
+
onChange: (e) => F(e.target.value),
|
|
511
|
+
placeholder: A("support.contactInquiryDetail.reply.placeholder", "Type your reply... This will be sent as a branded email to the contact."),
|
|
485
512
|
rows: 4,
|
|
486
513
|
disabled: Y,
|
|
487
514
|
className: "w-full px-3 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-lg text-sm text-[var(--color-text-primary)] placeholder:text-[var(--color-text-secondary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-border-accent)]/50 disabled:opacity-50 resize-none transition-all"
|
|
488
515
|
}),
|
|
489
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ E("button", {
|
|
490
517
|
type: "button",
|
|
491
|
-
onClick:
|
|
492
|
-
disabled: Y || !
|
|
518
|
+
onClick: ye,
|
|
519
|
+
disabled: Y || !P.trim(),
|
|
493
520
|
className: "mt-2 min-h-11 w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all disabled:opacity-50",
|
|
494
|
-
children: [Y ? /* @__PURE__ */
|
|
521
|
+
children: [Y ? /* @__PURE__ */ T(h, {
|
|
495
522
|
size: 15,
|
|
496
523
|
className: "animate-spin"
|
|
497
|
-
}) : /* @__PURE__ */
|
|
524
|
+
}) : /* @__PURE__ */ T(_, { size: 15 }), A("support.contactInquiryDetail.reply.send", "Send Reply")]
|
|
498
525
|
})
|
|
499
526
|
]
|
|
500
527
|
})]
|
|
501
528
|
}),
|
|
502
|
-
/* @__PURE__ */
|
|
529
|
+
/* @__PURE__ */ E("div", {
|
|
503
530
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
504
|
-
children: [/* @__PURE__ */
|
|
531
|
+
children: [/* @__PURE__ */ T("div", {
|
|
505
532
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
506
|
-
children: /* @__PURE__ */
|
|
533
|
+
children: /* @__PURE__ */ T("h2", {
|
|
507
534
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
508
|
-
children: "Actions"
|
|
535
|
+
children: A("support.contactInquiryDetail.actions.title", "Actions")
|
|
509
536
|
})
|
|
510
|
-
}), /* @__PURE__ */
|
|
537
|
+
}), /* @__PURE__ */ E("div", {
|
|
511
538
|
className: "p-5 space-y-4",
|
|
512
|
-
children: [/* @__PURE__ */
|
|
539
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
513
540
|
className: "block text-xs font-medium text-[var(--color-text-secondary)] mb-1.5",
|
|
514
541
|
htmlFor: "contactinquirydetailpage-status-0",
|
|
515
|
-
children: "Status"
|
|
516
|
-
}), /* @__PURE__ */
|
|
542
|
+
children: A("support.contactInquiryDetail.actions.statusLabel", "Status")
|
|
543
|
+
}), /* @__PURE__ */ E("select", {
|
|
517
544
|
id: "contactinquirydetailpage-status-0",
|
|
518
545
|
value: X.status,
|
|
519
546
|
onChange: (e) => Z(e.target.value),
|
|
520
547
|
disabled: J,
|
|
521
548
|
className: "w-full px-3 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-lg text-sm text-[var(--color-text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-border-accent)]/50 disabled:opacity-50 transition-all",
|
|
522
549
|
children: [
|
|
523
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ T("option", {
|
|
524
551
|
value: "NEW",
|
|
525
|
-
children:
|
|
552
|
+
children: V.NEW
|
|
526
553
|
}),
|
|
527
|
-
/* @__PURE__ */
|
|
554
|
+
/* @__PURE__ */ T("option", {
|
|
528
555
|
value: "REVIEWED",
|
|
529
|
-
children:
|
|
556
|
+
children: V.REVIEWED
|
|
530
557
|
}),
|
|
531
|
-
/* @__PURE__ */
|
|
558
|
+
/* @__PURE__ */ T("option", {
|
|
532
559
|
value: "CONVERTED",
|
|
533
|
-
children:
|
|
560
|
+
children: V.CONVERTED
|
|
534
561
|
}),
|
|
535
|
-
/* @__PURE__ */
|
|
562
|
+
/* @__PURE__ */ T("option", {
|
|
536
563
|
value: "SPAM",
|
|
537
|
-
children:
|
|
564
|
+
children: V.SPAM
|
|
538
565
|
}),
|
|
539
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ T("option", {
|
|
540
567
|
value: "ARCHIVED",
|
|
541
|
-
children:
|
|
568
|
+
children: V.ARCHIVED
|
|
542
569
|
})
|
|
543
570
|
]
|
|
544
|
-
})] }), /* @__PURE__ */
|
|
571
|
+
})] }), /* @__PURE__ */ E("div", {
|
|
545
572
|
className: "space-y-2",
|
|
546
573
|
children: [
|
|
547
|
-
X.status !== "CONVERTED" && /* @__PURE__ */
|
|
574
|
+
X.status !== "CONVERTED" && /* @__PURE__ */ E("button", {
|
|
548
575
|
type: "button",
|
|
549
576
|
onClick: () => Z("CONVERTED"),
|
|
550
577
|
disabled: J,
|
|
551
578
|
className: "min-h-11 w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all disabled:opacity-50",
|
|
552
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ T(y, { size: 15 }), A("support.contactInquiryDetail.actions.convertToTicket", "Convert to Ticket")]
|
|
553
580
|
}),
|
|
554
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ E("a", {
|
|
555
582
|
href: `mailto:${X.email}?subject=Re: ${encodeURIComponent(X.subject)}`,
|
|
556
583
|
className: "min-h-11 w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] text-[var(--color-text-primary)] rounded-lg text-sm font-medium hover:bg-[var(--color-bg-muted)] transition-all",
|
|
557
|
-
children: [/* @__PURE__ */
|
|
584
|
+
children: [/* @__PURE__ */ T(g, { size: 15 }), A("support.contactInquiryDetail.actions.replyViaEmail", "Reply via Email")]
|
|
558
585
|
}),
|
|
559
|
-
X.status !== "ARCHIVED" && X.status !== "SPAM" && /* @__PURE__ */
|
|
586
|
+
X.status !== "ARCHIVED" && X.status !== "SPAM" && /* @__PURE__ */ E("button", {
|
|
560
587
|
type: "button",
|
|
561
588
|
onClick: () => Z("ARCHIVED"),
|
|
562
589
|
disabled: J,
|
|
563
590
|
className: "min-h-11 w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] text-[var(--color-text-secondary)] rounded-lg text-sm font-medium hover:bg-[var(--color-bg-muted)] transition-all disabled:opacity-50",
|
|
564
|
-
children: [/* @__PURE__ */
|
|
591
|
+
children: [/* @__PURE__ */ T(l, { size: 15 }), A("support.contactInquiryDetail.actions.archive", "Archive")]
|
|
565
592
|
})
|
|
566
593
|
]
|
|
567
594
|
})]
|
|
@@ -574,6 +601,6 @@ function j() {
|
|
|
574
601
|
});
|
|
575
602
|
}
|
|
576
603
|
//#endregion
|
|
577
|
-
export {
|
|
604
|
+
export { k as ContactInquiryDetailPage };
|
|
578
605
|
|
|
579
606
|
//# sourceMappingURL=ContactInquiryDetailPage.js.map
|