@burdenoff/microfe-support 2026.625.1 → 2026.626.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/support/components/PageLayout.js +64 -51
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/ui.js +2 -2
- package/dist/support/pages/AnalyticsPage.js +145 -114
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +180 -143
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +56 -49
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +51 -61
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +225 -205
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js +50 -46
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +122 -116
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js +76 -80
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +292 -269
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +53 -63
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js +84 -81
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +79 -76
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js +215 -182
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +159 -129
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +175 -142
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +173 -169
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { useGetJobApplicationQuery as e, useGetJobApplicationResumeUrlLazyQuery as t, useReplyToJobApplicationMutation as n, useUpdateJobApplicationStatusMutation as r } from "../../generated/global-operations.js";
|
|
2
2
|
import { nativeCopyText as i, nativeImpact as ee } from "../../utils/nativeBridge.js";
|
|
3
3
|
import { useEffect as te, useState as a } from "react";
|
|
4
|
-
import { AlertCircle as
|
|
5
|
-
import { useLocation as
|
|
6
|
-
import { graphqlFetch as
|
|
7
|
-
import { Fragment as
|
|
4
|
+
import { AlertCircle as ne, Archive as o, ArrowLeft as s, Briefcase as re, Building2 as c, Calendar as ie, CheckCircle as l, Clock as ae, Copy as u, Download as oe, ExternalLink as se, Eye as d, FileText as f, Globe as ce, Inbox as p, Link2 as le, Linkedin as m, Loader2 as h, Mail as g, Package as _, Phone as ue, Send as v, Star as y, User as b, Users as x, XCircle as S } from "lucide-react";
|
|
5
|
+
import { useLocation as de, useNavigate as fe, useParams as pe } from "react-router-dom";
|
|
6
|
+
import { graphqlFetch as me } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
7
|
+
import { Fragment as he, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
8
|
+
import { EmphasisPanel as ge, IllustratedEmptyState as _e, NextSteps as ve, PagePurpose as ye } from "@burdenoff/fe-libs/ui";
|
|
8
9
|
//#region src/support/pages/JobApplicationDetailPage.tsx
|
|
9
|
-
var
|
|
10
|
+
var T = {
|
|
10
11
|
NEW: {
|
|
11
12
|
label: "New",
|
|
12
13
|
color: "text-accent-blue",
|
|
13
|
-
icon:
|
|
14
|
+
icon: p,
|
|
14
15
|
bg: "bg-status-info-bg-subtle border-border-subtle"
|
|
15
16
|
},
|
|
16
17
|
SCREENING: {
|
|
17
18
|
label: "Screening",
|
|
18
19
|
color: "text-status-warning-text",
|
|
19
|
-
icon:
|
|
20
|
+
icon: d,
|
|
20
21
|
bg: "bg-status-warning-bg-subtle border-border-subtle"
|
|
21
22
|
},
|
|
22
23
|
SHORTLISTED: {
|
|
@@ -34,7 +35,7 @@ var E = {
|
|
|
34
35
|
HIRED: {
|
|
35
36
|
label: "Hired",
|
|
36
37
|
color: "text-status-success-text",
|
|
37
|
-
icon:
|
|
38
|
+
icon: l,
|
|
38
39
|
bg: "bg-status-success-bg-subtle border-border-subtle"
|
|
39
40
|
},
|
|
40
41
|
REJECTED: {
|
|
@@ -46,11 +47,11 @@ var E = {
|
|
|
46
47
|
ARCHIVED: {
|
|
47
48
|
label: "Archived",
|
|
48
49
|
color: "text-text-secondary",
|
|
49
|
-
icon:
|
|
50
|
+
icon: o,
|
|
50
51
|
bg: "bg-bg-canvas border-border-subtle"
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
|
-
function
|
|
54
|
+
function E(e) {
|
|
54
55
|
return new Date(e).toLocaleDateString("en-US", {
|
|
55
56
|
weekday: "short",
|
|
56
57
|
month: "short",
|
|
@@ -60,18 +61,18 @@ function D(e) {
|
|
|
60
61
|
minute: "2-digit"
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function be(e) {
|
|
64
65
|
let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 6e4);
|
|
65
66
|
if (n < 60) return `${n}m ago`;
|
|
66
67
|
let r = Math.floor(n / 60);
|
|
67
68
|
if (r < 24) return `${r}h ago`;
|
|
68
69
|
let i = Math.floor(r / 24);
|
|
69
|
-
return i < 30 ? `${i}d ago` :
|
|
70
|
+
return i < 30 ? `${i}d ago` : E(e);
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function xe(e) {
|
|
72
73
|
return !e || e <= 0 ? null : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(0)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function D(e) {
|
|
75
76
|
if (!e) return null;
|
|
76
77
|
try {
|
|
77
78
|
let t = new URL(e);
|
|
@@ -80,163 +81,183 @@ function O(e) {
|
|
|
80
81
|
return null;
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
-
let { id:
|
|
85
|
-
variables: { id:
|
|
86
|
-
skip: !
|
|
87
|
-
}),
|
|
84
|
+
function O() {
|
|
85
|
+
let { id: d } = pe(), p = fe(), y = de().search, [x, S] = a(!1), [O, k] = a(!1), [A, j] = a(!1), [M, N] = a(!1), [P, F] = a(""), [Se, I] = a(!1), [L, R] = a(null), { data: z, loading: Ce, error: B } = e({
|
|
86
|
+
variables: { id: d },
|
|
87
|
+
skip: !d
|
|
88
|
+
}), V = z?.jobApplication?.productId ?? null;
|
|
88
89
|
te(() => {
|
|
89
|
-
if (!
|
|
90
|
-
|
|
90
|
+
if (!V) {
|
|
91
|
+
R(null);
|
|
91
92
|
return;
|
|
92
93
|
}
|
|
93
94
|
let e = !1;
|
|
94
|
-
return
|
|
95
|
+
return me({
|
|
95
96
|
gateway: "global",
|
|
96
97
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
97
|
-
variables: { id:
|
|
98
|
+
variables: { id: V }
|
|
98
99
|
}).then((t) => {
|
|
99
100
|
if (e) return;
|
|
100
101
|
let n = t.data?.platformProduct?.name;
|
|
101
|
-
n &&
|
|
102
|
+
n && R(n);
|
|
102
103
|
}).catch(() => {}), () => {
|
|
103
104
|
e = !0;
|
|
104
105
|
};
|
|
105
|
-
}, [
|
|
106
|
-
let [
|
|
107
|
-
if (!(!
|
|
108
|
-
(await
|
|
109
|
-
id:
|
|
110
|
-
message:
|
|
111
|
-
} })).data?.replyToJobApplication.success && (
|
|
106
|
+
}, [V]);
|
|
107
|
+
let [we, { loading: H }] = r({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [Te, { loading: U }] = t({ fetchPolicy: "no-cache" }), [Ee, { loading: W }] = n(), G = z?.jobApplication, De = async () => {
|
|
108
|
+
if (!(!P.trim() || !d)) try {
|
|
109
|
+
(await Ee({ variables: {
|
|
110
|
+
id: d,
|
|
111
|
+
message: P.trim()
|
|
112
|
+
} })).data?.replyToJobApplication.success && (I(!0), F(""), setTimeout(() => I(!1), 3e3));
|
|
112
113
|
} catch (e) {
|
|
113
114
|
console.error("Failed to send reply:", e);
|
|
114
115
|
}
|
|
115
|
-
},
|
|
116
|
-
if (
|
|
117
|
-
|
|
116
|
+
}, K = async (e) => {
|
|
117
|
+
if (d) {
|
|
118
|
+
k(!1);
|
|
118
119
|
try {
|
|
119
|
-
await
|
|
120
|
-
id:
|
|
120
|
+
await we({ variables: {
|
|
121
|
+
id: d,
|
|
121
122
|
input: { status: e }
|
|
122
123
|
} }), S(!0), setTimeout(() => S(!1), 3e3);
|
|
123
124
|
} catch (e) {
|
|
124
|
-
console.error("Failed to update status:", e),
|
|
125
|
+
console.error("Failed to update status:", e), k(!0), setTimeout(() => k(!1), 4e3);
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
|
-
},
|
|
128
|
-
if (
|
|
129
|
-
|
|
128
|
+
}, q = async () => {
|
|
129
|
+
if (d) {
|
|
130
|
+
N(!1);
|
|
130
131
|
try {
|
|
131
|
-
let e = (await
|
|
132
|
-
e ? window.open(e, "_blank", "noopener,noreferrer") :
|
|
132
|
+
let e = (await Te({ variables: { id: d } })).data?.jobApplicationResumeUrl;
|
|
133
|
+
e ? window.open(e, "_blank", "noopener,noreferrer") : N(!0);
|
|
133
134
|
} catch (e) {
|
|
134
|
-
console.error("Failed to get resume URL:", e),
|
|
135
|
+
console.error("Failed to get resume URL:", e), N(!0);
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
|
-
},
|
|
138
|
-
|
|
138
|
+
}, Oe = async () => {
|
|
139
|
+
G?.email && (ee("light"), await i(G.email), j(!0), setTimeout(() => j(!1), 2e3));
|
|
139
140
|
};
|
|
140
|
-
if (
|
|
141
|
+
if (Ce) return /* @__PURE__ */ C("div", {
|
|
141
142
|
className: "min-h-full flex items-center justify-center py-20",
|
|
142
|
-
children: /* @__PURE__ */
|
|
143
|
+
children: /* @__PURE__ */ w("div", {
|
|
143
144
|
className: "text-center",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ C(h, {
|
|
145
146
|
size: 36,
|
|
146
147
|
className: "animate-spin text-[var(--color-text-secondary)] mx-auto mb-3"
|
|
147
|
-
}), /* @__PURE__ */
|
|
148
|
+
}), /* @__PURE__ */ C("p", {
|
|
148
149
|
className: "text-sm text-[var(--color-text-secondary)]",
|
|
149
150
|
children: "Loading application details…"
|
|
150
151
|
})]
|
|
151
152
|
})
|
|
152
153
|
});
|
|
153
|
-
if (
|
|
154
|
-
className: "
|
|
155
|
-
children: /* @__PURE__ */
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
/* @__PURE__ */ w("h3", {
|
|
166
|
-
className: "text-lg font-semibold text-[var(--color-text-primary)] mb-2",
|
|
167
|
-
children: "Application not found"
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ w("p", {
|
|
170
|
-
className: "text-sm text-[var(--color-text-secondary)] mb-6",
|
|
171
|
-
children: V?.message || "This application may have been deleted or you don't have access."
|
|
172
|
-
}),
|
|
173
|
-
/* @__PURE__ */ T("button", {
|
|
174
|
-
type: "button",
|
|
175
|
-
onClick: () => h(`/support/applications${y}`),
|
|
176
|
-
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",
|
|
177
|
-
children: [/* @__PURE__ */ w(c, { size: 16 }), "Back to Applications"]
|
|
178
|
-
})
|
|
179
|
-
]
|
|
154
|
+
if (B || !G) return /* @__PURE__ */ C("div", {
|
|
155
|
+
className: "p-6",
|
|
156
|
+
children: /* @__PURE__ */ C(_e, {
|
|
157
|
+
illustration: "empty-search",
|
|
158
|
+
title: "Application not found",
|
|
159
|
+
description: B?.message || "This application may have been deleted or you don't have access.",
|
|
160
|
+
action: /* @__PURE__ */ w("button", {
|
|
161
|
+
type: "button",
|
|
162
|
+
onClick: () => p(`/support/applications${y}`),
|
|
163
|
+
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",
|
|
164
|
+
children: [/* @__PURE__ */ C(s, { size: 16 }), "Back to Applications"]
|
|
165
|
+
})
|
|
180
166
|
})
|
|
181
167
|
});
|
|
182
|
-
let J =
|
|
183
|
-
return /* @__PURE__ */
|
|
168
|
+
let J = T[G.status] || T.NEW, Y = J.icon, X = `${G.firstName} ${G.lastName}`.trim(), Z = xe(G.resumeFileSize), Q = D(G.linkedinUrl), $ = D(G.portfolioUrl);
|
|
169
|
+
return /* @__PURE__ */ w("div", {
|
|
184
170
|
className: "p-6 animate-in fade-in duration-200",
|
|
185
171
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ w("div", {
|
|
187
173
|
className: "flex items-center justify-between mb-6",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
174
|
+
children: [/* @__PURE__ */ w("button", {
|
|
189
175
|
type: "button",
|
|
190
|
-
onClick: () =>
|
|
176
|
+
onClick: () => p(`/support/applications${y}`),
|
|
191
177
|
className: "inline-flex items-center gap-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
192
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ C(s, { size: 18 }), /* @__PURE__ */ C("span", {
|
|
193
179
|
className: "text-sm font-medium",
|
|
194
180
|
children: "Back to Applications"
|
|
195
181
|
})]
|
|
196
|
-
}), /* @__PURE__ */
|
|
182
|
+
}), /* @__PURE__ */ w("div", {
|
|
197
183
|
className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ C(ae, { size: 12 }), be(G.createdAt)]
|
|
199
185
|
})]
|
|
200
186
|
}),
|
|
201
|
-
x && /* @__PURE__ */
|
|
187
|
+
x && /* @__PURE__ */ w("div", {
|
|
202
188
|
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",
|
|
203
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ C(l, { size: 18 }), "Status updated successfully"]
|
|
204
190
|
}),
|
|
205
|
-
|
|
191
|
+
O && /* @__PURE__ */ w("div", {
|
|
206
192
|
className: "mb-5 p-3.5 bg-status-error-bg-subtle border border-border-subtle rounded-xl flex items-center gap-2.5 text-status-error-text text-sm font-medium animate-in slide-in-from-top-2 duration-200",
|
|
207
|
-
children: [/* @__PURE__ */
|
|
193
|
+
children: [/* @__PURE__ */ C(ne, { size: 18 }), "Couldn't update the status. Please try again."]
|
|
208
194
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ C(ye, {
|
|
196
|
+
className: "mb-6",
|
|
197
|
+
children: "A single candidate's full application — contact details, resume, cover letter and links. Review their background, download the resume, and move them through your hiring pipeline from new to screening, interview, hire or rejection. Reply by branded email to keep the candidate informed at every stage."
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ C(ve, {
|
|
200
|
+
storageKey: "support-application-detail",
|
|
201
|
+
title: "Move this candidate forward",
|
|
202
|
+
className: "mb-6",
|
|
203
|
+
steps: [
|
|
204
|
+
...G.resumeFileName ? [{
|
|
205
|
+
id: "resume",
|
|
206
|
+
label: "Review the resume",
|
|
207
|
+
description: "Download and read the candidate's resume.",
|
|
208
|
+
onClick: () => void q()
|
|
209
|
+
}] : [],
|
|
210
|
+
{
|
|
211
|
+
id: "advance",
|
|
212
|
+
label: "Update the pipeline status",
|
|
213
|
+
description: "Move them to screening, interview, hire or reject.",
|
|
214
|
+
onClick: () => document.querySelector("[data-tour=\"support-application-actions\"]")?.scrollIntoView({
|
|
215
|
+
behavior: "smooth",
|
|
216
|
+
block: "center"
|
|
217
|
+
})
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: "reply",
|
|
221
|
+
label: "Reply to the candidate",
|
|
222
|
+
description: "Send a branded email update from the Reply panel.",
|
|
223
|
+
onClick: () => document.querySelector("[data-tour=\"support-application-reply\"]")?.scrollIntoView({
|
|
224
|
+
behavior: "smooth",
|
|
225
|
+
block: "center"
|
|
226
|
+
})
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}),
|
|
230
|
+
/* @__PURE__ */ C("div", {
|
|
210
231
|
className: `rounded-xl border p-6 mb-6 ${J.bg}`,
|
|
211
|
-
children: /* @__PURE__ */
|
|
232
|
+
children: /* @__PURE__ */ C("div", {
|
|
212
233
|
className: "flex items-start justify-between",
|
|
213
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ w("div", {
|
|
214
235
|
className: "flex items-start gap-4",
|
|
215
|
-
children: [/* @__PURE__ */
|
|
236
|
+
children: [/* @__PURE__ */ C("div", {
|
|
216
237
|
className: "size-12 rounded-xl bg-bg-surface/80 dark:bg-bg-surface/10 flex items-center justify-center shadow-sm",
|
|
217
|
-
children: /* @__PURE__ */
|
|
238
|
+
children: /* @__PURE__ */ C(Y, {
|
|
218
239
|
size: 24,
|
|
219
240
|
className: J.color
|
|
220
241
|
})
|
|
221
|
-
}), /* @__PURE__ */
|
|
242
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
|
|
222
243
|
className: "flex items-center gap-3 mb-1.5",
|
|
223
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ C("h1", {
|
|
224
245
|
className: "text-xl font-bold text-[var(--color-text-primary)]",
|
|
225
246
|
children: X
|
|
226
247
|
})
|
|
227
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ w("div", {
|
|
228
249
|
className: "flex items-center gap-3 text-sm flex-wrap",
|
|
229
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ w("span", {
|
|
230
251
|
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${J.color} bg-bg-surface/60 dark:bg-bg-surface/10`,
|
|
231
|
-
children: [/* @__PURE__ */
|
|
232
|
-
}), /* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ C(Y, { size: 12 }), J.label]
|
|
253
|
+
}), /* @__PURE__ */ w("span", {
|
|
233
254
|
className: "text-[var(--color-text-secondary)]",
|
|
234
255
|
children: [
|
|
235
256
|
"applying for",
|
|
236
257
|
" ",
|
|
237
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ C("strong", {
|
|
238
259
|
className: "text-[var(--color-text-primary)]",
|
|
239
|
-
children:
|
|
260
|
+
children: G.position
|
|
240
261
|
})
|
|
241
262
|
]
|
|
242
263
|
})]
|
|
@@ -244,68 +265,68 @@ function k() {
|
|
|
244
265
|
})
|
|
245
266
|
})
|
|
246
267
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ w("div", {
|
|
248
269
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
249
|
-
children: [/* @__PURE__ */
|
|
270
|
+
children: [/* @__PURE__ */ w("div", {
|
|
250
271
|
className: "lg:col-span-2 space-y-5",
|
|
251
272
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ w("div", {
|
|
253
274
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
254
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ C("div", {
|
|
255
276
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
256
|
-
children: /* @__PURE__ */
|
|
277
|
+
children: /* @__PURE__ */ w("h2", {
|
|
257
278
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
258
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ C(b, { size: 14 }), "Applicant Information"]
|
|
259
280
|
})
|
|
260
|
-
}), /* @__PURE__ */
|
|
281
|
+
}), /* @__PURE__ */ C("div", {
|
|
261
282
|
className: "p-5",
|
|
262
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ w("div", {
|
|
263
284
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
264
285
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ w("div", {
|
|
266
287
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
267
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ C("div", {
|
|
268
289
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
269
|
-
children: /* @__PURE__ */
|
|
290
|
+
children: /* @__PURE__ */ C(b, {
|
|
270
291
|
size: 16,
|
|
271
292
|
className: "text-accent-blue"
|
|
272
293
|
})
|
|
273
|
-
}), /* @__PURE__ */
|
|
294
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
274
295
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
275
296
|
children: "Name"
|
|
276
|
-
}), /* @__PURE__ */
|
|
297
|
+
}), /* @__PURE__ */ C("p", {
|
|
277
298
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
278
299
|
children: X
|
|
279
300
|
})] })]
|
|
280
301
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ w("div", {
|
|
282
303
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
304
|
+
children: [/* @__PURE__ */ C("div", {
|
|
284
305
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
285
|
-
children: /* @__PURE__ */
|
|
306
|
+
children: /* @__PURE__ */ C(g, {
|
|
286
307
|
size: 16,
|
|
287
308
|
className: "text-accent-indigo"
|
|
288
309
|
})
|
|
289
|
-
}), /* @__PURE__ */
|
|
310
|
+
}), /* @__PURE__ */ w("div", {
|
|
290
311
|
className: "flex-1 min-w-0",
|
|
291
|
-
children: [/* @__PURE__ */
|
|
312
|
+
children: [/* @__PURE__ */ C("p", {
|
|
292
313
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
293
314
|
children: "Email"
|
|
294
|
-
}), /* @__PURE__ */
|
|
315
|
+
}), /* @__PURE__ */ w("div", {
|
|
295
316
|
className: "flex items-center gap-1.5",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
297
|
-
href: `mailto:${
|
|
317
|
+
children: [/* @__PURE__ */ C("a", {
|
|
318
|
+
href: `mailto:${G.email}`,
|
|
298
319
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate",
|
|
299
|
-
children:
|
|
300
|
-
}), /* @__PURE__ */
|
|
320
|
+
children: G.email
|
|
321
|
+
}), /* @__PURE__ */ C("button", {
|
|
301
322
|
type: "button",
|
|
302
|
-
onClick:
|
|
323
|
+
onClick: Oe,
|
|
303
324
|
className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
|
|
304
325
|
title: "Copy email",
|
|
305
|
-
children:
|
|
326
|
+
children: A ? /* @__PURE__ */ C(l, {
|
|
306
327
|
size: 12,
|
|
307
328
|
className: "text-status-success-text"
|
|
308
|
-
}) : /* @__PURE__ */
|
|
329
|
+
}) : /* @__PURE__ */ C(u, {
|
|
309
330
|
size: 12,
|
|
310
331
|
className: "text-[var(--color-text-secondary)]"
|
|
311
332
|
})
|
|
@@ -313,175 +334,175 @@ function k() {
|
|
|
313
334
|
})]
|
|
314
335
|
})]
|
|
315
336
|
}),
|
|
316
|
-
|
|
337
|
+
G.phone && /* @__PURE__ */ w("div", {
|
|
317
338
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
318
|
-
children: [/* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ C("div", {
|
|
319
340
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
320
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ C(ue, {
|
|
321
342
|
size: 16,
|
|
322
343
|
className: "text-status-success-text"
|
|
323
344
|
})
|
|
324
|
-
}), /* @__PURE__ */
|
|
345
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
325
346
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
326
347
|
children: "Phone"
|
|
327
|
-
}), /* @__PURE__ */
|
|
328
|
-
href: `tel:${
|
|
348
|
+
}), /* @__PURE__ */ C("a", {
|
|
349
|
+
href: `tel:${G.phone}`,
|
|
329
350
|
className: "text-sm font-semibold text-[var(--color-text-primary)] hover:underline",
|
|
330
|
-
children:
|
|
351
|
+
children: G.phone
|
|
331
352
|
})] })]
|
|
332
353
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ w("div", {
|
|
334
355
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
335
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ C("div", {
|
|
336
357
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
|
|
337
|
-
children: /* @__PURE__ */
|
|
358
|
+
children: /* @__PURE__ */ C(re, {
|
|
338
359
|
size: 16,
|
|
339
360
|
className: "text-accent-blue"
|
|
340
361
|
})
|
|
341
|
-
}), /* @__PURE__ */
|
|
362
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
342
363
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
343
364
|
children: "Position"
|
|
344
|
-
}), /* @__PURE__ */
|
|
365
|
+
}), /* @__PURE__ */ C("p", {
|
|
345
366
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
346
|
-
children:
|
|
367
|
+
children: G.position
|
|
347
368
|
})] })]
|
|
348
369
|
}),
|
|
349
|
-
|
|
370
|
+
G.department && /* @__PURE__ */ w("div", {
|
|
350
371
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
351
|
-
children: [/* @__PURE__ */
|
|
372
|
+
children: [/* @__PURE__ */ C("div", {
|
|
352
373
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
353
|
-
children: /* @__PURE__ */
|
|
374
|
+
children: /* @__PURE__ */ C(c, {
|
|
354
375
|
size: 16,
|
|
355
376
|
className: "text-accent-purple"
|
|
356
377
|
})
|
|
357
|
-
}), /* @__PURE__ */
|
|
378
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
358
379
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
359
380
|
children: "Department"
|
|
360
|
-
}), /* @__PURE__ */
|
|
381
|
+
}), /* @__PURE__ */ C("p", {
|
|
361
382
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
362
|
-
children:
|
|
383
|
+
children: G.department
|
|
363
384
|
})] })]
|
|
364
385
|
}),
|
|
365
|
-
|
|
386
|
+
G.linkedinUrl && /* @__PURE__ */ w("div", {
|
|
366
387
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
388
|
+
children: [/* @__PURE__ */ C("div", {
|
|
368
389
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
369
|
-
children: /* @__PURE__ */
|
|
390
|
+
children: /* @__PURE__ */ C(m, {
|
|
370
391
|
size: 16,
|
|
371
392
|
className: "text-accent-blue"
|
|
372
393
|
})
|
|
373
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ w("div", {
|
|
374
395
|
className: "flex-1 min-w-0",
|
|
375
|
-
children: [/* @__PURE__ */
|
|
396
|
+
children: [/* @__PURE__ */ C("p", {
|
|
376
397
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
377
398
|
children: "LinkedIn"
|
|
378
|
-
}), Q ? /* @__PURE__ */
|
|
399
|
+
}), Q ? /* @__PURE__ */ C("a", {
|
|
379
400
|
href: Q,
|
|
380
401
|
target: "_blank",
|
|
381
402
|
rel: "noopener noreferrer",
|
|
382
403
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
383
|
-
children:
|
|
384
|
-
}) : /* @__PURE__ */
|
|
404
|
+
children: G.linkedinUrl
|
|
405
|
+
}) : /* @__PURE__ */ C("span", {
|
|
385
406
|
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
386
|
-
children:
|
|
407
|
+
children: G.linkedinUrl
|
|
387
408
|
})]
|
|
388
409
|
})]
|
|
389
410
|
}),
|
|
390
|
-
|
|
411
|
+
G.portfolioUrl && /* @__PURE__ */ w("div", {
|
|
391
412
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
392
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ C("div", {
|
|
393
414
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
394
|
-
children: /* @__PURE__ */
|
|
415
|
+
children: /* @__PURE__ */ C(le, {
|
|
395
416
|
size: 16,
|
|
396
417
|
className: "text-accent-indigo"
|
|
397
418
|
})
|
|
398
|
-
}), /* @__PURE__ */
|
|
419
|
+
}), /* @__PURE__ */ w("div", {
|
|
399
420
|
className: "flex-1 min-w-0",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ C("p", {
|
|
401
422
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
402
423
|
children: "Portfolio"
|
|
403
|
-
}), $ ? /* @__PURE__ */
|
|
424
|
+
}), $ ? /* @__PURE__ */ C("a", {
|
|
404
425
|
href: $,
|
|
405
426
|
target: "_blank",
|
|
406
427
|
rel: "noopener noreferrer",
|
|
407
428
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
408
|
-
children:
|
|
409
|
-
}) : /* @__PURE__ */
|
|
429
|
+
children: G.portfolioUrl
|
|
430
|
+
}) : /* @__PURE__ */ C("span", {
|
|
410
431
|
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
411
|
-
children:
|
|
432
|
+
children: G.portfolioUrl
|
|
412
433
|
})]
|
|
413
434
|
})]
|
|
414
435
|
}),
|
|
415
|
-
|
|
436
|
+
G.productId && L && /* @__PURE__ */ w("div", {
|
|
416
437
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
417
|
-
children: [/* @__PURE__ */
|
|
438
|
+
children: [/* @__PURE__ */ C("div", {
|
|
418
439
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
419
|
-
children: /* @__PURE__ */
|
|
440
|
+
children: /* @__PURE__ */ C(_, {
|
|
420
441
|
size: 16,
|
|
421
442
|
className: "text-accent-purple"
|
|
422
443
|
})
|
|
423
|
-
}), /* @__PURE__ */
|
|
444
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
424
445
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
425
446
|
children: "Product"
|
|
426
|
-
}), /* @__PURE__ */
|
|
447
|
+
}), /* @__PURE__ */ C("p", {
|
|
427
448
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
428
|
-
children:
|
|
449
|
+
children: L
|
|
429
450
|
})] })]
|
|
430
451
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
452
|
+
/* @__PURE__ */ w("div", {
|
|
432
453
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
433
|
-
children: [/* @__PURE__ */
|
|
454
|
+
children: [/* @__PURE__ */ C("div", {
|
|
434
455
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
435
|
-
children: /* @__PURE__ */
|
|
456
|
+
children: /* @__PURE__ */ C(ce, {
|
|
436
457
|
size: 16,
|
|
437
458
|
className: "text-status-success-text"
|
|
438
459
|
})
|
|
439
|
-
}), /* @__PURE__ */
|
|
460
|
+
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
440
461
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
441
462
|
children: "Source"
|
|
442
|
-
}), /* @__PURE__ */
|
|
463
|
+
}), /* @__PURE__ */ C("p", {
|
|
443
464
|
className: "text-sm font-semibold text-[var(--color-text-primary)] capitalize",
|
|
444
|
-
children:
|
|
465
|
+
children: G.source.toLowerCase()
|
|
445
466
|
})] })]
|
|
446
467
|
})
|
|
447
468
|
]
|
|
448
469
|
})
|
|
449
470
|
})]
|
|
450
471
|
}),
|
|
451
|
-
|
|
472
|
+
G.coverLetter && /* @__PURE__ */ w("div", {
|
|
452
473
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
453
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ C("div", {
|
|
454
475
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
455
|
-
children: /* @__PURE__ */
|
|
476
|
+
children: /* @__PURE__ */ w("h2", {
|
|
456
477
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
457
|
-
children: [/* @__PURE__ */
|
|
478
|
+
children: [/* @__PURE__ */ C(f, { size: 14 }), "Cover Letter"]
|
|
458
479
|
})
|
|
459
|
-
}), /* @__PURE__ */
|
|
480
|
+
}), /* @__PURE__ */ C("div", {
|
|
460
481
|
className: "p-5",
|
|
461
|
-
children: /* @__PURE__ */
|
|
482
|
+
children: /* @__PURE__ */ C("p", {
|
|
462
483
|
className: "text-sm text-[var(--color-text-primary)] leading-relaxed whitespace-pre-wrap",
|
|
463
|
-
children:
|
|
484
|
+
children: G.coverLetter
|
|
464
485
|
})
|
|
465
486
|
})]
|
|
466
487
|
}),
|
|
467
|
-
|
|
488
|
+
G.metadata && Object.keys(G.metadata).length > 0 && /* @__PURE__ */ w("div", {
|
|
468
489
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
469
|
-
children: [/* @__PURE__ */
|
|
490
|
+
children: [/* @__PURE__ */ C("div", {
|
|
470
491
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
471
|
-
children: /* @__PURE__ */
|
|
492
|
+
children: /* @__PURE__ */ w("h2", {
|
|
472
493
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
473
|
-
children: [/* @__PURE__ */
|
|
494
|
+
children: [/* @__PURE__ */ C(se, { size: 14 }), "Additional Data"]
|
|
474
495
|
})
|
|
475
|
-
}), /* @__PURE__ */
|
|
496
|
+
}), /* @__PURE__ */ C("div", {
|
|
476
497
|
className: "p-5",
|
|
477
|
-
children: /* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ C("div", {
|
|
478
499
|
className: "space-y-2.5",
|
|
479
|
-
children: Object.entries(
|
|
500
|
+
children: Object.entries(G.metadata).map(([e, t]) => /* @__PURE__ */ w("div", {
|
|
480
501
|
className: "flex items-start gap-3 py-1.5 border-b border-[var(--color-border-default)] last:border-0",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
502
|
+
children: [/* @__PURE__ */ C("span", {
|
|
482
503
|
className: "text-xs font-medium text-[var(--color-text-secondary)] min-w-[120px] uppercase tracking-wider",
|
|
483
504
|
children: e
|
|
484
|
-
}), /* @__PURE__ */
|
|
505
|
+
}), /* @__PURE__ */ C("span", {
|
|
485
506
|
className: "text-xs text-[var(--color-text-primary)] font-mono break-all",
|
|
486
507
|
children: typeof t == "object" && t ? JSON.stringify(t) : String(t)
|
|
487
508
|
})]
|
|
@@ -490,189 +511,191 @@ function k() {
|
|
|
490
511
|
})]
|
|
491
512
|
})
|
|
492
513
|
]
|
|
493
|
-
}), /* @__PURE__ */
|
|
514
|
+
}), /* @__PURE__ */ w("div", {
|
|
494
515
|
className: "space-y-5",
|
|
495
516
|
children: [
|
|
496
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ w("div", {
|
|
497
518
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
498
|
-
children: [/* @__PURE__ */
|
|
519
|
+
children: [/* @__PURE__ */ C("div", {
|
|
499
520
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
500
|
-
children: /* @__PURE__ */
|
|
521
|
+
children: /* @__PURE__ */ w("h2", {
|
|
501
522
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
502
|
-
children: [/* @__PURE__ */
|
|
523
|
+
children: [/* @__PURE__ */ C(f, { size: 14 }), "Resume"]
|
|
503
524
|
})
|
|
504
|
-
}), /* @__PURE__ */
|
|
525
|
+
}), /* @__PURE__ */ C("div", {
|
|
505
526
|
className: "p-5",
|
|
506
|
-
children:
|
|
507
|
-
/* @__PURE__ */
|
|
527
|
+
children: G.resumeFileName ? /* @__PURE__ */ w(he, { children: [
|
|
528
|
+
/* @__PURE__ */ w("div", {
|
|
508
529
|
className: "flex items-center gap-3 mb-3",
|
|
509
|
-
children: [/* @__PURE__ */
|
|
530
|
+
children: [/* @__PURE__ */ C("div", {
|
|
510
531
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center flex-shrink-0",
|
|
511
|
-
children: /* @__PURE__ */
|
|
532
|
+
children: /* @__PURE__ */ C(f, {
|
|
512
533
|
size: 16,
|
|
513
534
|
className: "text-accent-blue"
|
|
514
535
|
})
|
|
515
|
-
}), /* @__PURE__ */
|
|
536
|
+
}), /* @__PURE__ */ w("div", {
|
|
516
537
|
className: "min-w-0",
|
|
517
|
-
children: [/* @__PURE__ */
|
|
538
|
+
children: [/* @__PURE__ */ C("p", {
|
|
518
539
|
className: "text-sm font-medium text-[var(--color-text-primary)] truncate",
|
|
519
|
-
children:
|
|
520
|
-
}), Z ? /* @__PURE__ */
|
|
540
|
+
children: G.resumeFileName
|
|
541
|
+
}), Z ? /* @__PURE__ */ C("p", {
|
|
521
542
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
522
543
|
children: Z
|
|
523
544
|
}) : null]
|
|
524
545
|
})]
|
|
525
546
|
}),
|
|
526
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ w("button", {
|
|
527
548
|
type: "button",
|
|
528
|
-
onClick:
|
|
529
|
-
disabled:
|
|
549
|
+
onClick: q,
|
|
550
|
+
disabled: U,
|
|
530
551
|
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",
|
|
531
|
-
children: [
|
|
552
|
+
children: [U ? /* @__PURE__ */ C(h, {
|
|
532
553
|
size: 15,
|
|
533
554
|
className: "animate-spin"
|
|
534
|
-
}) : /* @__PURE__ */
|
|
555
|
+
}) : /* @__PURE__ */ C(oe, { size: 15 }), "Download Resume"]
|
|
535
556
|
}),
|
|
536
|
-
|
|
557
|
+
M && /* @__PURE__ */ C("p", {
|
|
537
558
|
className: "mt-2 text-xs text-status-error-text",
|
|
538
559
|
children: "Could not generate a download link. Please try again."
|
|
539
560
|
})
|
|
540
|
-
] }) : /* @__PURE__ */
|
|
561
|
+
] }) : /* @__PURE__ */ C("p", {
|
|
541
562
|
className: "text-sm text-[var(--color-text-secondary)]",
|
|
542
563
|
children: "No resume on file."
|
|
543
564
|
})
|
|
544
565
|
})]
|
|
545
566
|
}),
|
|
546
|
-
/* @__PURE__ */
|
|
567
|
+
/* @__PURE__ */ w("div", {
|
|
547
568
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
548
|
-
children: [/* @__PURE__ */
|
|
569
|
+
children: [/* @__PURE__ */ C("div", {
|
|
549
570
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
550
|
-
children: /* @__PURE__ */
|
|
571
|
+
children: /* @__PURE__ */ w("h2", {
|
|
551
572
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
552
|
-
children: [/* @__PURE__ */
|
|
573
|
+
children: [/* @__PURE__ */ C(ie, { size: 14 }), "Timeline"]
|
|
553
574
|
})
|
|
554
|
-
}), /* @__PURE__ */
|
|
575
|
+
}), /* @__PURE__ */ w("div", {
|
|
555
576
|
className: "p-5 space-y-4",
|
|
556
|
-
children: [/* @__PURE__ */
|
|
577
|
+
children: [/* @__PURE__ */ w("div", {
|
|
557
578
|
className: "flex items-start gap-3",
|
|
558
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ C("div", { className: "size-2 rounded-full bg-accent-blue mt-1.5 flex-shrink-0" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
559
580
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
560
581
|
children: "Applied"
|
|
561
|
-
}), /* @__PURE__ */
|
|
582
|
+
}), /* @__PURE__ */ C("p", {
|
|
562
583
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
563
|
-
children:
|
|
584
|
+
children: E(G.createdAt)
|
|
564
585
|
})] })]
|
|
565
|
-
}),
|
|
586
|
+
}), G.updatedAt !== G.createdAt && /* @__PURE__ */ w("div", {
|
|
566
587
|
className: "flex items-start gap-3",
|
|
567
|
-
children: [/* @__PURE__ */
|
|
588
|
+
children: [/* @__PURE__ */ C("div", { className: "size-2 rounded-full bg-status-warning-bg mt-1.5 flex-shrink-0" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
568
589
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
569
590
|
children: "Last Updated"
|
|
570
|
-
}), /* @__PURE__ */
|
|
591
|
+
}), /* @__PURE__ */ C("p", {
|
|
571
592
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
572
|
-
children:
|
|
593
|
+
children: E(G.updatedAt)
|
|
573
594
|
})] })]
|
|
574
595
|
})]
|
|
575
596
|
})]
|
|
576
597
|
}),
|
|
577
|
-
/* @__PURE__ */
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
598
|
+
/* @__PURE__ */ w(ge, {
|
|
599
|
+
"data-tour": "support-application-reply",
|
|
600
|
+
className: "overflow-hidden p-0",
|
|
601
|
+
children: [/* @__PURE__ */ C("div", {
|
|
602
|
+
className: "px-5 py-3.5 border-b border-border-seam",
|
|
603
|
+
children: /* @__PURE__ */ w("h2", {
|
|
582
604
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
|
|
583
|
-
children: [/* @__PURE__ */
|
|
605
|
+
children: [/* @__PURE__ */ C(v, { size: 12 }), "Reply"]
|
|
584
606
|
})
|
|
585
|
-
}), /* @__PURE__ */
|
|
607
|
+
}), /* @__PURE__ */ w("div", {
|
|
586
608
|
className: "p-5",
|
|
587
609
|
children: [
|
|
588
|
-
|
|
610
|
+
Se && /* @__PURE__ */ w("div", {
|
|
589
611
|
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",
|
|
590
|
-
children: [/* @__PURE__ */
|
|
612
|
+
children: [/* @__PURE__ */ C(l, { size: 14 }), "Reply sent to the applicant!"]
|
|
591
613
|
}),
|
|
592
|
-
/* @__PURE__ */
|
|
614
|
+
/* @__PURE__ */ C("textarea", {
|
|
593
615
|
"aria-label": "Reply message",
|
|
594
|
-
value:
|
|
595
|
-
onChange: (e) =>
|
|
616
|
+
value: P,
|
|
617
|
+
onChange: (e) => F(e.target.value),
|
|
596
618
|
placeholder: "Type your reply… This will be sent as a branded email to the applicant.",
|
|
597
619
|
rows: 4,
|
|
598
|
-
disabled:
|
|
620
|
+
disabled: W,
|
|
599
621
|
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"
|
|
600
622
|
}),
|
|
601
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ w("button", {
|
|
602
624
|
type: "button",
|
|
603
|
-
onClick:
|
|
604
|
-
disabled:
|
|
625
|
+
onClick: De,
|
|
626
|
+
disabled: W || !P.trim(),
|
|
605
627
|
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",
|
|
606
|
-
children: [
|
|
628
|
+
children: [W ? /* @__PURE__ */ C(h, {
|
|
607
629
|
size: 15,
|
|
608
630
|
className: "animate-spin"
|
|
609
|
-
}) : /* @__PURE__ */
|
|
631
|
+
}) : /* @__PURE__ */ C(v, { size: 15 }), "Send Reply"]
|
|
610
632
|
})
|
|
611
633
|
]
|
|
612
634
|
})]
|
|
613
635
|
}),
|
|
614
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ w("div", {
|
|
637
|
+
"data-tour": "support-application-actions",
|
|
615
638
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
616
|
-
children: [/* @__PURE__ */
|
|
639
|
+
children: [/* @__PURE__ */ C("div", {
|
|
617
640
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
618
|
-
children: /* @__PURE__ */
|
|
641
|
+
children: /* @__PURE__ */ C("h2", {
|
|
619
642
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
620
643
|
children: "Actions"
|
|
621
644
|
})
|
|
622
|
-
}), /* @__PURE__ */
|
|
645
|
+
}), /* @__PURE__ */ w("div", {
|
|
623
646
|
className: "p-5 space-y-4",
|
|
624
|
-
children: [/* @__PURE__ */
|
|
647
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
625
648
|
className: "block text-xs font-medium text-[var(--color-text-secondary)] mb-1.5",
|
|
626
649
|
htmlFor: "jobapplicationdetailpage-status-0",
|
|
627
650
|
children: "Status"
|
|
628
|
-
}), /* @__PURE__ */
|
|
651
|
+
}), /* @__PURE__ */ w("select", {
|
|
629
652
|
id: "jobapplicationdetailpage-status-0",
|
|
630
|
-
value:
|
|
631
|
-
onChange: (e) =>
|
|
632
|
-
disabled:
|
|
653
|
+
value: G.status,
|
|
654
|
+
onChange: (e) => K(e.target.value),
|
|
655
|
+
disabled: H,
|
|
633
656
|
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",
|
|
634
657
|
children: [
|
|
635
|
-
/* @__PURE__ */
|
|
658
|
+
/* @__PURE__ */ C("option", {
|
|
636
659
|
value: "NEW",
|
|
637
660
|
children: "New"
|
|
638
661
|
}),
|
|
639
|
-
/* @__PURE__ */
|
|
662
|
+
/* @__PURE__ */ C("option", {
|
|
640
663
|
value: "SCREENING",
|
|
641
664
|
children: "Screening"
|
|
642
665
|
}),
|
|
643
|
-
/* @__PURE__ */
|
|
666
|
+
/* @__PURE__ */ C("option", {
|
|
644
667
|
value: "SHORTLISTED",
|
|
645
668
|
children: "Shortlisted"
|
|
646
669
|
}),
|
|
647
|
-
/* @__PURE__ */
|
|
670
|
+
/* @__PURE__ */ C("option", {
|
|
648
671
|
value: "INTERVIEW",
|
|
649
672
|
children: "Interview"
|
|
650
673
|
}),
|
|
651
|
-
/* @__PURE__ */
|
|
674
|
+
/* @__PURE__ */ C("option", {
|
|
652
675
|
value: "HIRED",
|
|
653
676
|
children: "Hired"
|
|
654
677
|
}),
|
|
655
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ C("option", {
|
|
656
679
|
value: "REJECTED",
|
|
657
680
|
children: "Rejected"
|
|
658
681
|
}),
|
|
659
|
-
/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ C("option", {
|
|
660
683
|
value: "ARCHIVED",
|
|
661
684
|
children: "Archived"
|
|
662
685
|
})
|
|
663
686
|
]
|
|
664
|
-
})] }), /* @__PURE__ */
|
|
687
|
+
})] }), /* @__PURE__ */ w("div", {
|
|
665
688
|
className: "space-y-2",
|
|
666
|
-
children: [/* @__PURE__ */
|
|
667
|
-
href: `mailto:${
|
|
689
|
+
children: [/* @__PURE__ */ w("a", {
|
|
690
|
+
href: `mailto:${G.email}?subject=${encodeURIComponent(`Your application for ${G.position}`)}`,
|
|
668
691
|
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",
|
|
669
|
-
children: [/* @__PURE__ */
|
|
670
|
-
}),
|
|
692
|
+
children: [/* @__PURE__ */ C(g, { size: 15 }), "Email Applicant"]
|
|
693
|
+
}), G.status !== "ARCHIVED" && /* @__PURE__ */ w("button", {
|
|
671
694
|
type: "button",
|
|
672
|
-
onClick: () =>
|
|
673
|
-
disabled:
|
|
695
|
+
onClick: () => K("ARCHIVED"),
|
|
696
|
+
disabled: H,
|
|
674
697
|
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",
|
|
675
|
-
children: [/* @__PURE__ */
|
|
698
|
+
children: [/* @__PURE__ */ C(o, { size: 15 }), "Archive"]
|
|
676
699
|
})]
|
|
677
700
|
})]
|
|
678
701
|
})]
|
|
@@ -684,6 +707,6 @@ function k() {
|
|
|
684
707
|
});
|
|
685
708
|
}
|
|
686
709
|
//#endregion
|
|
687
|
-
export {
|
|
710
|
+
export { O as JobApplicationDetailPage };
|
|
688
711
|
|
|
689
712
|
//# sourceMappingURL=JobApplicationDetailPage.js.map
|