@burdenoff/microfe-support 2026.1109.1 → 2026.1115.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 +62 -0
- package/dist/generated/global-operations.js +104 -69
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js +17 -15
- package/dist/generated/global-types.js.map +1 -1
- package/dist/support/SupportUserRoot.js +32 -28
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.d.ts +1 -0
- package/dist/support/SupportUserRoutes.js +31 -28
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/PageLayout.js +35 -35
- package/dist/support/components/RouteHelpers.d.ts +2 -1
- package/dist/support/components/RouteHelpers.js +3 -3
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/help/RelatedArticles.d.ts +12 -0
- package/dist/support/components/help/RelatedArticles.js +55 -0
- package/dist/support/components/help/RelatedArticles.js.map +1 -0
- package/dist/support/components/help/RequestDetailHeader.d.ts +18 -0
- package/dist/support/components/help/RequestDetailHeader.js +129 -0
- package/dist/support/components/help/RequestDetailHeader.js.map +1 -0
- package/dist/support/components/help/SatisfactionReview.d.ts +18 -0
- package/dist/support/components/help/SatisfactionReview.js +103 -0
- package/dist/support/components/help/SatisfactionReview.js.map +1 -0
- package/dist/support/components/help/StarRating.d.ts +16 -0
- package/dist/support/components/help/StarRating.js +63 -0
- package/dist/support/components/help/StarRating.js.map +1 -0
- package/dist/support/components/help/StatusGroupPill.d.ts +11 -0
- package/dist/support/components/help/StatusGroupPill.js +19 -0
- package/dist/support/components/help/StatusGroupPill.js.map +1 -0
- package/dist/support/components/settings/TicketCategoriesSettings.js +69 -69
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +7 -7
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +54 -60
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/ui.js +1 -1
- package/dist/support/constants.d.ts +23 -0
- package/dist/support/constants.js +2 -2
- package/dist/support/constants.js.map +1 -1
- package/dist/support/hooks/useDebouncedValue.d.ts +6 -0
- package/dist/support/hooks/useDebouncedValue.js +12 -0
- package/dist/support/hooks/useDebouncedValue.js.map +1 -0
- package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +8 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js +86 -81
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useSupportVariant.d.ts +11 -0
- package/dist/support/hooks/useSupportVariant.js +11 -0
- package/dist/support/hooks/useSupportVariant.js.map +1 -0
- package/dist/support/hooks/useTicketCreatedToast.d.ts +16 -0
- package/dist/support/hooks/useTicketCreatedToast.js +25 -0
- package/dist/support/hooks/useTicketCreatedToast.js.map +1 -0
- package/dist/support/hooks/useTicketLabels.d.ts +22 -0
- package/dist/support/hooks/useTicketLabels.js +40 -0
- package/dist/support/hooks/useTicketLabels.js.map +1 -0
- package/dist/support/index.d.ts +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +84 -84
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.d.ts +5 -0
- package/dist/support/pages/ArticleDetailUserPage.js +133 -69
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/AskForHelpPage.d.ts +11 -0
- package/dist/support/pages/AskForHelpPage.js +396 -0
- package/dist/support/pages/AskForHelpPage.js.map +1 -0
- package/dist/support/pages/ContactInquiriesPage.js +73 -73
- package/dist/support/pages/ContactInquiryDetailPage.js +47 -47
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.d.ts +4 -0
- package/dist/support/pages/CreateTicketPage.js +121 -117
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/HelpHubPage.d.ts +9 -0
- package/dist/support/pages/HelpHubPage.js +272 -0
- package/dist/support/pages/HelpHubPage.js.map +1 -0
- package/dist/support/pages/JobApplicationDetailPage.js +388 -388
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +35 -35
- package/dist/support/pages/JobPostingDetailPage.js +236 -236
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.d.ts +6 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +188 -137
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/MyRequestsPage.d.ts +16 -0
- package/dist/support/pages/MyRequestsPage.js +389 -0
- package/dist/support/pages/MyRequestsPage.js.map +1 -0
- package/dist/support/pages/TicketDetailUserPage.d.ts +5 -0
- package/dist/support/pages/TicketDetailUserPage.js +285 -192
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.d.ts +7 -0
- package/dist/support/pages/TicketListPage.js +150 -153
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js +8 -7
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.d.ts +5 -0
- package/dist/support/store/supportStore.js +1 -0
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/translations/en.d.ts +279 -0
- package/dist/support/translations/en.js +270 -1
- package/dist/support/translations/en.js.map +1 -1
- package/dist/support/types/index.d.ts +13 -0
- package/dist/support/utils/cameFrom.d.ts +16 -0
- package/dist/support/utils/cameFrom.js +22 -0
- package/dist/support/utils/cameFrom.js.map +1 -0
- package/dist/support/utils/dates.d.ts +15 -0
- package/dist/support/utils/dates.js +35 -0
- package/dist/support/utils/dates.js.map +1 -0
- package/dist/support/utils/reopen.d.ts +27 -0
- package/dist/support/utils/reopen.js +27 -0
- package/dist/support/utils/reopen.js.map +1 -0
- package/dist/support/utils/requestTechnicalDetails.d.ts +13 -0
- package/dist/support/utils/requestTechnicalDetails.js +38 -0
- package/dist/support/utils/requestTechnicalDetails.js.map +1 -0
- package/dist/support/utils/ticketFilters.d.ts +16 -0
- package/dist/support/utils/ticketFilters.js +24 -12
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/ticketStatusGroups.d.ts +20 -0
- package/dist/support/utils/ticketStatusGroups.js +39 -0
- package/dist/support/utils/ticketStatusGroups.js.map +1 -0
- package/package.json +2 -2
|
@@ -2,11 +2,11 @@ import { useGetContactInquiriesQuery as e } from "../../generated/global-operati
|
|
|
2
2
|
import { humanizeCategory as t } from "../utils/index.js";
|
|
3
3
|
import { useTr as n } from "../hooks/useTr.js";
|
|
4
4
|
import { useEffect as r, useRef as i, useState as a } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { IllustratedEmptyState as o, PagePurpose as s } from "@burdenoff/fe-libs/ui";
|
|
6
|
+
import { AlertCircle as c, ChevronDown as l, Filter as u, Loader2 as d, Mail as f, Search as p } from "lucide-react";
|
|
7
|
+
import { useLocation as m, useNavigate as h } from "react-router";
|
|
8
|
+
import { graphqlFetch as g } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
9
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
10
10
|
// src/support/pages/ContactInquiriesPage.tsx
|
|
11
11
|
var b = {
|
|
12
12
|
NEW: "bg-status-info-bg-subtle text-status-info-text",
|
|
@@ -25,7 +25,7 @@ function x(e) {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
function S() {
|
|
28
|
-
let S =
|
|
28
|
+
let S = h(), C = m().search, w = n(), [T, E] = a(""), [D, O] = a(""), [k, A] = a(""), [j, M] = a(!1), [N, P] = a({}), F = i(N);
|
|
29
29
|
F.current = N;
|
|
30
30
|
let I = {
|
|
31
31
|
NEW: w("support.contactInquiries.status.new", "New"),
|
|
@@ -46,7 +46,7 @@ function S() {
|
|
|
46
46
|
return r(() => {
|
|
47
47
|
let e = K ? K.split(",").filter((e) => !F.current[e]) : [];
|
|
48
48
|
e.length !== 0 && e.forEach((e) => {
|
|
49
|
-
|
|
49
|
+
g({
|
|
50
50
|
gateway: "global",
|
|
51
51
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
52
52
|
variables: { id: e }
|
|
@@ -58,93 +58,93 @@ function S() {
|
|
|
58
58
|
}));
|
|
59
59
|
}).catch(() => {});
|
|
60
60
|
});
|
|
61
|
-
}, [K]), z && H.length === 0 ? /* @__PURE__ */
|
|
61
|
+
}, [K]), z && H.length === 0 ? /* @__PURE__ */ y("div", {
|
|
62
62
|
className: "p-3 sm:p-6",
|
|
63
|
-
children: [/* @__PURE__ */
|
|
63
|
+
children: [/* @__PURE__ */ y("div", {
|
|
64
64
|
className: "flex items-center gap-3 mb-6",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ v(f, {
|
|
66
66
|
size: 24,
|
|
67
67
|
className: "text-text-primary"
|
|
68
|
-
}), /* @__PURE__ */
|
|
68
|
+
}), /* @__PURE__ */ v("h1", {
|
|
69
69
|
className: "text-2xl font-bold text-text-primary",
|
|
70
70
|
children: w("support.contactInquiries.title", "Contact Inquiries")
|
|
71
71
|
})]
|
|
72
|
-
}), /* @__PURE__ */
|
|
72
|
+
}), /* @__PURE__ */ y("div", {
|
|
73
73
|
className: "flex flex-col items-center justify-center py-16",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ v(d, {
|
|
75
75
|
size: 32,
|
|
76
76
|
className: "animate-spin text-text-secondary mb-4"
|
|
77
|
-
}), /* @__PURE__ */
|
|
77
|
+
}), /* @__PURE__ */ v("p", {
|
|
78
78
|
className: "text-sm text-text-secondary",
|
|
79
79
|
children: w("support.contactInquiries.loading", "Loading inquiries…")
|
|
80
80
|
})]
|
|
81
81
|
})]
|
|
82
|
-
}) : B ? /* @__PURE__ */
|
|
82
|
+
}) : B ? /* @__PURE__ */ y("div", {
|
|
83
83
|
className: "p-3 sm:p-6",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
84
|
+
children: [/* @__PURE__ */ y("div", {
|
|
85
85
|
className: "flex items-center gap-3 mb-6",
|
|
86
|
-
children: [/* @__PURE__ */
|
|
86
|
+
children: [/* @__PURE__ */ v(f, {
|
|
87
87
|
size: 24,
|
|
88
88
|
className: "text-text-primary"
|
|
89
|
-
}), /* @__PURE__ */
|
|
89
|
+
}), /* @__PURE__ */ v("h1", {
|
|
90
90
|
className: "text-2xl font-bold text-text-primary",
|
|
91
91
|
children: w("support.contactInquiries.title", "Contact Inquiries")
|
|
92
92
|
})]
|
|
93
|
-
}), /* @__PURE__ */
|
|
93
|
+
}), /* @__PURE__ */ y("div", {
|
|
94
94
|
className: "flex flex-col items-center justify-center py-16 text-center",
|
|
95
95
|
children: [
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ v("div", {
|
|
97
97
|
className: "p-4 rounded-2xl bg-status-error-bg-subtle text-status-error-text mb-4",
|
|
98
|
-
children: /* @__PURE__ */
|
|
98
|
+
children: /* @__PURE__ */ v(c, { size: 48 })
|
|
99
99
|
}),
|
|
100
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ v("h3", {
|
|
101
101
|
className: "text-lg font-semibold text-text-primary mb-2",
|
|
102
102
|
children: w("support.contactInquiries.error.title", "Failed to load inquiries")
|
|
103
103
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ v("p", {
|
|
105
105
|
className: "text-sm text-text-secondary",
|
|
106
106
|
children: B.message
|
|
107
107
|
})
|
|
108
108
|
]
|
|
109
109
|
})]
|
|
110
|
-
}) : /* @__PURE__ */
|
|
110
|
+
}) : /* @__PURE__ */ y("div", {
|
|
111
111
|
className: "p-3 sm:p-6",
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ v("div", {
|
|
114
114
|
className: "flex flex-col gap-3 mb-6 sm:flex-row sm:items-center sm:justify-between",
|
|
115
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ y("div", {
|
|
116
116
|
className: "flex items-center gap-3",
|
|
117
117
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ v(f, {
|
|
119
119
|
size: 24,
|
|
120
120
|
className: "text-text-primary"
|
|
121
121
|
}),
|
|
122
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h1", {
|
|
123
123
|
className: "text-2xl font-bold text-text-primary",
|
|
124
124
|
children: w("support.contactInquiries.title", "Contact Inquiries")
|
|
125
|
-
}), /* @__PURE__ */
|
|
125
|
+
}), /* @__PURE__ */ v("p", {
|
|
126
126
|
className: "text-sm text-text-secondary",
|
|
127
127
|
children: w("support.contactInquiries.subtitle", "Website contact form submissions")
|
|
128
128
|
})] }),
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ v("span", {
|
|
130
130
|
className: "ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-bg-sunken text-text-secondary",
|
|
131
131
|
children: U
|
|
132
132
|
})
|
|
133
133
|
]
|
|
134
134
|
})
|
|
135
135
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ v(s, {
|
|
137
137
|
className: "mb-6",
|
|
138
138
|
children: w("support.contactInquiries.purpose", "Every message sent through your product websites' contact forms lands here. Triage sales and support leads, mark spam, and convert genuine inquiries into tickets so nothing from a prospective customer slips through the cracks. Open an inquiry to read it in full and take action.")
|
|
139
139
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ y("div", {
|
|
141
141
|
className: "flex flex-col sm:flex-row gap-3 mb-6",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
142
|
+
children: [/* @__PURE__ */ y("div", {
|
|
143
143
|
className: "relative flex-1",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ v(p, {
|
|
145
145
|
size: 16,
|
|
146
146
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
|
|
147
|
-
}), /* @__PURE__ */
|
|
147
|
+
}), /* @__PURE__ */ v("input", {
|
|
148
148
|
type: "text",
|
|
149
149
|
"aria-label": w("support.contactInquiries.search.aria", "Search inquiries"),
|
|
150
150
|
placeholder: w("support.contactInquiries.search.placeholder", "Search by name, email, or subject..."),
|
|
@@ -152,147 +152,147 @@ function S() {
|
|
|
152
152
|
onChange: (e) => E(e.target.value),
|
|
153
153
|
className: "w-full pl-9 pr-4 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-accent/50"
|
|
154
154
|
})]
|
|
155
|
-
}), /* @__PURE__ */
|
|
155
|
+
}), /* @__PURE__ */ y("button", {
|
|
156
156
|
type: "button",
|
|
157
157
|
onClick: () => M(!j),
|
|
158
158
|
className: "min-h-11 inline-flex items-center justify-center gap-2 px-4 py-2 bg-surface border border-default rounded-lg text-sm text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
|
|
159
159
|
children: [
|
|
160
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ v(u, { size: 16 }),
|
|
161
161
|
w("support.contactInquiries.filters.toggle", "Filters"),
|
|
162
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ v(l, {
|
|
163
163
|
size: 14,
|
|
164
164
|
className: j ? "rotate-180 transition-transform" : "transition-transform"
|
|
165
165
|
})
|
|
166
166
|
]
|
|
167
167
|
})]
|
|
168
168
|
}),
|
|
169
|
-
j && /* @__PURE__ */
|
|
169
|
+
j && /* @__PURE__ */ v("div", {
|
|
170
170
|
className: "mb-6 p-4 bg-bg-surface border border-border-seam rounded-lg",
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ y("div", {
|
|
172
172
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
|
|
174
174
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
175
175
|
htmlFor: "contactinquiriespage-status-0",
|
|
176
176
|
children: w("support.contactInquiries.filters.statusLabel", "Status")
|
|
177
|
-
}), /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ y("select", {
|
|
178
178
|
id: "contactinquiriespage-status-0",
|
|
179
179
|
value: D,
|
|
180
180
|
onChange: (e) => O(e.target.value),
|
|
181
181
|
className: "min-h-11 w-full px-3 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent/50",
|
|
182
182
|
children: [
|
|
183
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ v("option", {
|
|
184
184
|
value: "",
|
|
185
185
|
children: w("support.contactInquiries.filters.allStatuses", "All statuses")
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ v("option", {
|
|
188
188
|
value: "NEW",
|
|
189
189
|
children: I.NEW
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ v("option", {
|
|
192
192
|
value: "REVIEWED",
|
|
193
193
|
children: I.REVIEWED
|
|
194
194
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ v("option", {
|
|
196
196
|
value: "CONVERTED",
|
|
197
197
|
children: I.CONVERTED
|
|
198
198
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ v("option", {
|
|
200
200
|
value: "SPAM",
|
|
201
201
|
children: I.SPAM
|
|
202
202
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ v("option", {
|
|
204
204
|
value: "ARCHIVED",
|
|
205
205
|
children: I.ARCHIVED
|
|
206
206
|
})
|
|
207
207
|
]
|
|
208
|
-
})] }), /* @__PURE__ */
|
|
208
|
+
})] }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
|
|
209
209
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
210
210
|
htmlFor: "contactinquiriespage-product-2",
|
|
211
211
|
children: w("support.contactInquiries.filters.productLabel", "Product")
|
|
212
|
-
}), /* @__PURE__ */
|
|
212
|
+
}), /* @__PURE__ */ y("select", {
|
|
213
213
|
id: "contactinquiriespage-product-2",
|
|
214
214
|
value: k,
|
|
215
215
|
onChange: (e) => A(e.target.value),
|
|
216
216
|
className: "min-h-11 w-full px-3 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent/50",
|
|
217
|
-
children: [/* @__PURE__ */
|
|
217
|
+
children: [/* @__PURE__ */ v("option", {
|
|
218
218
|
value: "",
|
|
219
219
|
children: w("support.contactInquiries.filters.allProducts", "All products")
|
|
220
|
-
}), G.map((e) => /* @__PURE__ */
|
|
220
|
+
}), G.map((e) => /* @__PURE__ */ v("option", {
|
|
221
221
|
value: e,
|
|
222
222
|
children: N[e] || e
|
|
223
223
|
}, e))]
|
|
224
224
|
})] })]
|
|
225
225
|
})
|
|
226
226
|
}),
|
|
227
|
-
H.length === 0 ? /* @__PURE__ */
|
|
227
|
+
H.length === 0 ? /* @__PURE__ */ v(o, {
|
|
228
228
|
illustration: "empty-notifications",
|
|
229
229
|
title: w("support.contactInquiries.empty.title", "No inquiries yet"),
|
|
230
230
|
description: w("support.contactInquiries.empty.description", "Contact form submissions from your product websites will appear here.")
|
|
231
|
-
}) : /* @__PURE__ */ _
|
|
231
|
+
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
232
232
|
className: "space-y-3",
|
|
233
|
-
children: H.map((e) => /* @__PURE__ */
|
|
233
|
+
children: H.map((e) => /* @__PURE__ */ v("button", {
|
|
234
234
|
type: "button",
|
|
235
235
|
onClick: () => S(`/support/inquiries/${e.id}${C}`),
|
|
236
236
|
className: "w-full text-left p-4 bg-bg-surface border border-border-seam rounded-lg shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] transition-[box-shadow,border-color] duration-200 group",
|
|
237
|
-
children: /* @__PURE__ */
|
|
237
|
+
children: /* @__PURE__ */ y("div", {
|
|
238
238
|
className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
|
|
239
|
-
children: [/* @__PURE__ */
|
|
239
|
+
children: [/* @__PURE__ */ y("div", {
|
|
240
240
|
className: "flex-1 min-w-0",
|
|
241
241
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ y("div", {
|
|
243
243
|
className: "flex items-center gap-2 mb-1",
|
|
244
244
|
children: [
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ v("h3", {
|
|
246
246
|
className: "text-sm font-semibold text-text-primary truncate group-hover:text-primary transition-colors",
|
|
247
247
|
children: e.subject
|
|
248
248
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ v("span", {
|
|
250
250
|
className: `inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium ${b[e.status] || b.NEW} ${e.status === "NEW" ? "motion-safe:animate-vc-glow-pulse" : ""}`,
|
|
251
251
|
children: I[e.status] || e.status
|
|
252
252
|
}),
|
|
253
|
-
e.productId && N[e.productId] && /* @__PURE__ */
|
|
253
|
+
e.productId && N[e.productId] && /* @__PURE__ */ v("span", {
|
|
254
254
|
className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-accent-purple-subtle text-accent-purple",
|
|
255
255
|
title: w("support.contactInquiries.list.productTitle", "Product: {{name}}", { name: N[e.productId] }),
|
|
256
256
|
children: N[e.productId]
|
|
257
257
|
}),
|
|
258
|
-
e.category && /* @__PURE__ */
|
|
258
|
+
e.category && /* @__PURE__ */ v("span", {
|
|
259
259
|
className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-accent-blue-subtle text-accent-blue",
|
|
260
260
|
children: t(e.category)
|
|
261
261
|
})
|
|
262
262
|
]
|
|
263
263
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ y("p", {
|
|
265
265
|
className: "text-sm text-text-secondary mb-1",
|
|
266
266
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ v("span", {
|
|
268
268
|
className: "font-medium",
|
|
269
269
|
children: e.name
|
|
270
270
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ v("span", {
|
|
272
272
|
className: "mx-1.5 text-text-secondary/50",
|
|
273
273
|
children: "·"
|
|
274
274
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
e.company && /* @__PURE__ */ _
|
|
275
|
+
/* @__PURE__ */ v("span", { children: e.email }),
|
|
276
|
+
e.company && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
|
|
277
277
|
className: "mx-1.5 text-text-secondary/50",
|
|
278
278
|
children: "·"
|
|
279
|
-
}), /* @__PURE__ */
|
|
279
|
+
}), /* @__PURE__ */ v("span", { children: e.company })] })
|
|
280
280
|
]
|
|
281
281
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ v("p", {
|
|
283
283
|
className: "text-xs text-text-secondary truncate",
|
|
284
284
|
children: e.message
|
|
285
285
|
})
|
|
286
286
|
]
|
|
287
|
-
}), /* @__PURE__ */
|
|
287
|
+
}), /* @__PURE__ */ v("div", {
|
|
288
288
|
className: "text-xs text-text-secondary sm:whitespace-nowrap",
|
|
289
289
|
children: x(e.createdAt)
|
|
290
290
|
})]
|
|
291
291
|
})
|
|
292
292
|
}, e.id))
|
|
293
|
-
}), W && /* @__PURE__ */
|
|
293
|
+
}), W && /* @__PURE__ */ v("div", {
|
|
294
294
|
className: "flex justify-center mt-6",
|
|
295
|
-
children: /* @__PURE__ */
|
|
295
|
+
children: /* @__PURE__ */ y("button", {
|
|
296
296
|
type: "button",
|
|
297
297
|
onClick: () => {
|
|
298
298
|
W && V({
|
|
@@ -305,7 +305,7 @@ function S() {
|
|
|
305
305
|
},
|
|
306
306
|
disabled: z,
|
|
307
307
|
className: "min-h-11 inline-flex items-center justify-center gap-2 px-6 py-2 bg-surface border border-default rounded-lg text-sm text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors disabled:opacity-50",
|
|
308
|
-
children: [z ? /* @__PURE__ */
|
|
308
|
+
children: [z ? /* @__PURE__ */ v(d, {
|
|
309
309
|
size: 14,
|
|
310
310
|
className: "animate-spin"
|
|
311
311
|
}) : null, w("support.contactInquiries.loadMore", "Load more")]
|