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