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