@burdenoff/microfe-support 2026.802.1 → 2026.817.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 +1464 -19
- package/dist/generated/global-operations.js +925 -133
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +546 -0
- package/dist/generated/global-types.js +21 -7
- package/dist/generated/global-types.js.map +1 -1
- package/dist/support/SupportAdminRoot.js +53 -37
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportAdminRoutes.js +23 -11
- package/dist/support/SupportAdminRoutes.js.map +1 -1
- package/dist/support/components/ui.js +2 -2
- package/dist/support/pages/InterviewersPage.d.ts +1 -0
- package/dist/support/pages/InterviewersPage.js +459 -0
- package/dist/support/pages/InterviewersPage.js.map +1 -0
- package/dist/support/pages/JobApplicationDetailPage.js +1007 -268
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +327 -213
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/JobPostingDetailPage.d.ts +1 -0
- package/dist/support/pages/JobPostingDetailPage.js +996 -0
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -0
- package/dist/support/pages/JobPostingsPage.d.ts +1 -0
- package/dist/support/pages/JobPostingsPage.js +544 -0
- package/dist/support/pages/JobPostingsPage.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,57 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { Badge as e, Button as t, Card as n, CardContent as r, CardHeader as i, CardTitle as ee, Dialog as a, DialogContent as o, DialogDescription as s, DialogFooter as c, DialogHeader as l, DialogTitle as u, Input as d, Label as f, Select as p, SelectContent as m, SelectItem as h, SelectTrigger as g, SelectValue as _, Textarea as v } from "../components/ui.js";
|
|
2
|
+
import { useAssignInterviewersToRoundMutation as y, useCreateInterviewRoundMutation as te, useGetInterviewersQuery as ne, useGetJobApplicationInterviewRoundsQuery as re, useGetJobApplicationQuery as b, useGetJobApplicationResumeUrlLazyQuery as x, useRandomizeAndSendAssignmentMutation as S, useRecordAssignmentSubmissionMutation as ie, useRemoveInterviewerFromRoundMutation as C, useReplyToJobApplicationMutation as w, useSendRoundMessageToCandidateMutation as T, useSubmitInterviewFeedbackMutation as ae, useUpdateInterviewFeedbackMutation as E, useUpdateJobApplicationStatusMutation as oe } from "../../generated/global-operations.js";
|
|
3
|
+
import { InterviewRoundStatus as D, InterviewRoundType as O, InterviewVerdict as k, InterviewerRole as A } from "../../generated/global-types.js";
|
|
4
|
+
import { nativeCopyText as j, nativeImpact as M } from "../../utils/nativeBridge.js";
|
|
5
|
+
import { useEffect as se, useState as N } from "react";
|
|
6
|
+
import { AlertCircle as ce, Archive as P, ArrowLeft as F, Briefcase as I, Building2 as L, Calendar as R, CheckCircle as z, Clock as B, Copy as V, Download as H, Edit3 as U, ExternalLink as le, Eye as W, FileText as G, Globe as K, Inbox as q, Link2 as J, Linkedin as ue, Loader2 as Y, Mail as X, MessageSquare as de, Package as fe, Phone as pe, Plus as me, Send as he, Star as ge, User as _e, UserPlus as ve, UserX as ye, Users as be, XCircle as xe } from "lucide-react";
|
|
7
|
+
import { useLocation as Se, useNavigate as Ce, useParams as we } from "react-router";
|
|
8
|
+
import { graphqlFetch as Te } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
9
|
+
import { Fragment as Ee, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
10
|
+
import { EmphasisPanel as De, IllustratedEmptyState as Oe, NextSteps as ke, PagePurpose as Ae } from "@burdenoff/fe-libs/ui";
|
|
9
11
|
//#region src/support/pages/JobApplicationDetailPage.tsx
|
|
10
|
-
var
|
|
12
|
+
var je = {
|
|
11
13
|
NEW: {
|
|
12
14
|
label: "New",
|
|
13
15
|
color: "text-accent-blue",
|
|
14
|
-
icon:
|
|
16
|
+
icon: q,
|
|
15
17
|
bg: "bg-status-info-bg-subtle border-border-subtle"
|
|
16
18
|
},
|
|
17
19
|
SCREENING: {
|
|
18
20
|
label: "Screening",
|
|
19
21
|
color: "text-status-warning-text",
|
|
20
|
-
icon:
|
|
22
|
+
icon: W,
|
|
21
23
|
bg: "bg-status-warning-bg-subtle border-border-subtle"
|
|
22
24
|
},
|
|
23
25
|
SHORTLISTED: {
|
|
24
26
|
label: "Shortlisted",
|
|
25
27
|
color: "text-accent-purple",
|
|
26
|
-
icon:
|
|
28
|
+
icon: ge,
|
|
27
29
|
bg: "bg-accent-purple-subtle border-border-subtle"
|
|
28
30
|
},
|
|
29
31
|
INTERVIEW: {
|
|
30
32
|
label: "Interview",
|
|
31
33
|
color: "text-accent-blue",
|
|
32
|
-
icon:
|
|
34
|
+
icon: be,
|
|
33
35
|
bg: "bg-accent-blue-subtle border-border-subtle"
|
|
34
36
|
},
|
|
35
37
|
HIRED: {
|
|
36
38
|
label: "Hired",
|
|
37
39
|
color: "text-status-success-text",
|
|
38
|
-
icon:
|
|
40
|
+
icon: z,
|
|
39
41
|
bg: "bg-status-success-bg-subtle border-border-subtle"
|
|
40
42
|
},
|
|
41
43
|
REJECTED: {
|
|
42
44
|
label: "Rejected",
|
|
43
45
|
color: "text-status-error-text",
|
|
44
|
-
icon:
|
|
46
|
+
icon: xe,
|
|
45
47
|
bg: "bg-status-error-bg-subtle border-border-subtle"
|
|
46
48
|
},
|
|
47
49
|
ARCHIVED: {
|
|
48
50
|
label: "Archived",
|
|
49
51
|
color: "text-text-secondary",
|
|
50
|
-
icon:
|
|
52
|
+
icon: P,
|
|
51
53
|
bg: "bg-bg-canvas border-border-subtle"
|
|
52
54
|
}
|
|
55
|
+
}, Me = {
|
|
56
|
+
SCHEDULED: {
|
|
57
|
+
label: "Scheduled",
|
|
58
|
+
className: "bg-status-info-bg-subtle text-status-info-text"
|
|
59
|
+
},
|
|
60
|
+
AWAITING_SUBMISSION: {
|
|
61
|
+
label: "Awaiting Submission",
|
|
62
|
+
className: "bg-status-warning-bg-subtle text-status-warning-text"
|
|
63
|
+
},
|
|
64
|
+
SUBMITTED: {
|
|
65
|
+
label: "Submitted",
|
|
66
|
+
className: "bg-accent-blue-subtle text-accent-blue"
|
|
67
|
+
},
|
|
68
|
+
COMPLETED: {
|
|
69
|
+
label: "Completed",
|
|
70
|
+
className: "bg-status-success-bg-subtle text-status-success-text"
|
|
71
|
+
},
|
|
72
|
+
PASSED: {
|
|
73
|
+
label: "Passed",
|
|
74
|
+
className: "bg-status-success-bg-subtle text-status-success-text"
|
|
75
|
+
},
|
|
76
|
+
FAILED: {
|
|
77
|
+
label: "Failed",
|
|
78
|
+
className: "bg-status-error-bg-subtle text-status-error-text"
|
|
79
|
+
},
|
|
80
|
+
NO_SHOW: {
|
|
81
|
+
label: "No Show",
|
|
82
|
+
className: "bg-status-error-bg-subtle text-status-error-text"
|
|
83
|
+
},
|
|
84
|
+
CANCELLED: {
|
|
85
|
+
label: "Cancelled",
|
|
86
|
+
className: "bg-bg-sunken text-text-secondary"
|
|
87
|
+
}
|
|
53
88
|
};
|
|
54
|
-
function
|
|
89
|
+
function Ne(e) {
|
|
55
90
|
return new Date(e).toLocaleDateString("en-US", {
|
|
56
91
|
weekday: "short",
|
|
57
92
|
month: "short",
|
|
@@ -61,18 +96,31 @@ function E(e) {
|
|
|
61
96
|
minute: "2-digit"
|
|
62
97
|
});
|
|
63
98
|
}
|
|
64
|
-
function
|
|
99
|
+
function Pe(e) {
|
|
65
100
|
let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 6e4);
|
|
66
101
|
if (n < 60) return `${n}m ago`;
|
|
67
102
|
let r = Math.floor(n / 60);
|
|
68
103
|
if (r < 24) return `${r}h ago`;
|
|
69
104
|
let i = Math.floor(r / 24);
|
|
70
|
-
return i < 30 ? `${i}d ago` :
|
|
105
|
+
return i < 30 ? `${i}d ago` : Ne(e);
|
|
71
106
|
}
|
|
72
|
-
function
|
|
107
|
+
function Fe(e) {
|
|
73
108
|
return !e || e <= 0 ? null : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(0)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
74
109
|
}
|
|
75
|
-
function
|
|
110
|
+
function $(e) {
|
|
111
|
+
return e.replace(/_/g, " ").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
112
|
+
}
|
|
113
|
+
function Ie(e) {
|
|
114
|
+
switch (e) {
|
|
115
|
+
case "STRONG_YES":
|
|
116
|
+
case "YES": return "bg-status-success-bg-subtle text-status-success-text";
|
|
117
|
+
case "NEUTRAL": return "bg-status-warning-bg-subtle text-status-warning-text";
|
|
118
|
+
case "NO":
|
|
119
|
+
case "STRONG_NO": return "bg-status-error-bg-subtle text-status-error-text";
|
|
120
|
+
default: return "bg-bg-sunken text-text-secondary";
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function Le(e) {
|
|
76
124
|
if (!e) return null;
|
|
77
125
|
try {
|
|
78
126
|
let t = new URL(e);
|
|
@@ -81,131 +129,821 @@ function D(e) {
|
|
|
81
129
|
return null;
|
|
82
130
|
}
|
|
83
131
|
}
|
|
84
|
-
function
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
132
|
+
function Re({ round: a, applicationId: o, interviewers: s, interviewersLoading: c, onAssign: l, onRemoveInterviewer: u, onSendMessage: y, onSubmitFeedback: te, onUpdateFeedback: ne }) {
|
|
133
|
+
let [re, b] = N(!1), [x, C] = N(null), [w, T] = N(""), [ae, E] = N(""), [oe, D] = N(""), [A, j] = N(""), [M, se] = N(a.submittedRepoUrl ?? ""), [P, F] = N(a.submittedVideoUrl ?? ""), [I, L] = N(a.submittedNotes ?? ""), [z, B] = N(null), [V, { loading: H }] = S({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [le, { loading: W }] = ie({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), K = a.roundType === O.TakeHome || !!a.roundConfig?.isAssignmentRound, q = !!a.assignment, J = !!(a.submittedRepoUrl || a.submittedVideoUrl || a.submittedAt), ue = q || J, X = Me[a.status] ?? Me.SCHEDULED, fe = () => {
|
|
134
|
+
C(null), T(""), E(""), D(""), j("");
|
|
135
|
+
}, pe = async () => {
|
|
136
|
+
B(null);
|
|
137
|
+
try {
|
|
138
|
+
await V({ variables: { input: {
|
|
139
|
+
applicationId: o,
|
|
140
|
+
roundId: a.id
|
|
141
|
+
} } });
|
|
142
|
+
} catch (e) {
|
|
143
|
+
console.error("Failed to randomize and send assignment:", e), B("Failed to randomize and send assignment.");
|
|
144
|
+
}
|
|
145
|
+
}, _e = async () => {
|
|
146
|
+
B(null);
|
|
147
|
+
let e = M.trim() || void 0, t = P.trim() || void 0, n = I.trim() || void 0;
|
|
148
|
+
if (e && !Le(e)) {
|
|
149
|
+
B("GitHub repo URL must start with http:// or https://.");
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (t && !Le(t)) {
|
|
153
|
+
B("Jam video URL must start with http:// or https://.");
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
if (!e && !t && !n) {
|
|
157
|
+
B("Please provide at least a repo URL, video URL, or notes.");
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
try {
|
|
161
|
+
await le({ variables: { input: {
|
|
162
|
+
roundId: a.id,
|
|
163
|
+
repoUrl: e,
|
|
164
|
+
videoUrl: t,
|
|
165
|
+
notes: n
|
|
166
|
+
} } });
|
|
167
|
+
} catch (e) {
|
|
168
|
+
console.error("Failed to record assignment submission:", e), B("Failed to record submission.");
|
|
169
|
+
}
|
|
170
|
+
}, be = () => {
|
|
171
|
+
fe(), b(!0);
|
|
172
|
+
}, xe = (e) => {
|
|
173
|
+
C(e), T(e.interviewerId), E(e.rating?.toString() ?? ""), D(e.verdict ?? ""), j(e.internalNotes ?? ""), b(!0);
|
|
174
|
+
};
|
|
175
|
+
return /* @__PURE__ */ Q("div", {
|
|
176
|
+
className: "border border-border-default rounded-lg p-4 space-y-4",
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ Q("div", {
|
|
179
|
+
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
|
|
180
|
+
children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Q("div", {
|
|
181
|
+
className: "flex items-center gap-2 flex-wrap mb-1",
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ Z("h3", {
|
|
184
|
+
className: "text-sm font-semibold text-text-primary",
|
|
185
|
+
children: a.name
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ Z(e, {
|
|
188
|
+
variant: "outline",
|
|
189
|
+
className: "bg-accent-indigo-subtle text-accent-indigo text-xs",
|
|
190
|
+
children: $(a.roundType)
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ Z(e, {
|
|
193
|
+
className: `${X.className} text-xs`,
|
|
194
|
+
children: X.label
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
}), a.scheduledAt && /* @__PURE__ */ Q("p", {
|
|
198
|
+
className: "text-xs text-text-secondary flex items-center gap-1",
|
|
199
|
+
children: [/* @__PURE__ */ Z(R, { size: 12 }), Ne(a.scheduledAt)]
|
|
200
|
+
})] }), /* @__PURE__ */ Q("div", {
|
|
201
|
+
className: "flex items-center gap-2",
|
|
202
|
+
children: [/* @__PURE__ */ Q(t, {
|
|
203
|
+
variant: "outline",
|
|
204
|
+
size: "sm",
|
|
205
|
+
onClick: l,
|
|
206
|
+
children: [/* @__PURE__ */ Z(ve, { size: 14 }), "Assign"]
|
|
207
|
+
}), /* @__PURE__ */ Q(t, {
|
|
208
|
+
variant: "outline",
|
|
209
|
+
size: "sm",
|
|
210
|
+
onClick: y,
|
|
211
|
+
children: [/* @__PURE__ */ Z(de, { size: 14 }), "Message"]
|
|
212
|
+
})]
|
|
213
|
+
})]
|
|
214
|
+
}),
|
|
215
|
+
a.interviewers.length > 0 && /* @__PURE__ */ Q("div", {
|
|
216
|
+
className: "space-y-2",
|
|
217
|
+
children: [/* @__PURE__ */ Z("p", {
|
|
218
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
219
|
+
children: "Interviewers"
|
|
220
|
+
}), /* @__PURE__ */ Z("div", {
|
|
221
|
+
className: "flex flex-wrap gap-2",
|
|
222
|
+
children: a.interviewers.map((t) => /* @__PURE__ */ Q("div", {
|
|
223
|
+
className: "inline-flex items-center gap-2 pl-2 pr-1 py-1 rounded-full bg-bg-muted text-text-primary text-xs",
|
|
224
|
+
children: [
|
|
225
|
+
/* @__PURE__ */ Z("span", {
|
|
226
|
+
className: "font-medium",
|
|
227
|
+
children: t.interviewer.name
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ Z(e, {
|
|
230
|
+
variant: "outline",
|
|
231
|
+
className: "text-[10px] px-1.5 py-0",
|
|
232
|
+
children: $(t.role)
|
|
233
|
+
}),
|
|
234
|
+
/* @__PURE__ */ Z("button", {
|
|
235
|
+
type: "button",
|
|
236
|
+
onClick: () => u(a.id, t.interviewer.id),
|
|
237
|
+
className: "p-0.5 rounded-full hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
|
|
238
|
+
title: "Remove interviewer",
|
|
239
|
+
children: /* @__PURE__ */ Z(ye, { size: 12 })
|
|
240
|
+
})
|
|
241
|
+
]
|
|
242
|
+
}, t.id))
|
|
243
|
+
})]
|
|
244
|
+
}),
|
|
245
|
+
a.candidateMessage && /* @__PURE__ */ Q("div", {
|
|
246
|
+
className: "p-3 rounded-lg bg-status-info-bg-subtle border border-border-subtle",
|
|
247
|
+
children: [
|
|
248
|
+
/* @__PURE__ */ Z("p", {
|
|
249
|
+
className: "text-xs font-medium text-status-info-text mb-1",
|
|
250
|
+
children: "Candidate message"
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ Z("p", {
|
|
253
|
+
className: "text-sm text-text-primary whitespace-pre-wrap",
|
|
254
|
+
children: a.candidateMessage
|
|
255
|
+
}),
|
|
256
|
+
a.candidateMessageSentAt && /* @__PURE__ */ Q("p", {
|
|
257
|
+
className: "text-[11px] text-text-secondary mt-1",
|
|
258
|
+
children: ["Sent ", Ne(a.candidateMessageSentAt)]
|
|
259
|
+
})
|
|
260
|
+
]
|
|
261
|
+
}),
|
|
262
|
+
K && /* @__PURE__ */ Q(n, {
|
|
263
|
+
className: "border border-border-default bg-bg-surface",
|
|
264
|
+
children: [/* @__PURE__ */ Z(i, {
|
|
265
|
+
className: "pb-2",
|
|
266
|
+
children: /* @__PURE__ */ Q(ee, {
|
|
267
|
+
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
268
|
+
children: [/* @__PURE__ */ Z(G, { size: 14 }), "Assignment"]
|
|
269
|
+
})
|
|
270
|
+
}), /* @__PURE__ */ Q(r, {
|
|
271
|
+
className: "space-y-3",
|
|
272
|
+
children: [z && /* @__PURE__ */ Q("div", {
|
|
273
|
+
className: "p-2.5 rounded-lg bg-status-error-bg-subtle border border-border-subtle text-sm text-status-error-text flex items-center gap-2",
|
|
274
|
+
children: [/* @__PURE__ */ Z(ce, { size: 14 }), z]
|
|
275
|
+
}), !q && !J ? /* @__PURE__ */ Q(t, {
|
|
276
|
+
size: "sm",
|
|
277
|
+
onClick: pe,
|
|
278
|
+
disabled: H,
|
|
279
|
+
children: [H ? /* @__PURE__ */ Z(Y, {
|
|
280
|
+
size: 14,
|
|
281
|
+
className: "animate-spin mr-1"
|
|
282
|
+
}) : /* @__PURE__ */ Z(he, { size: 14 }), "Randomize & Send Assignment"]
|
|
283
|
+
}) : /* @__PURE__ */ Q("div", {
|
|
284
|
+
className: "space-y-4",
|
|
285
|
+
children: [a.assignment && /* @__PURE__ */ Q("div", {
|
|
286
|
+
className: "space-y-1",
|
|
287
|
+
children: [/* @__PURE__ */ Z("p", {
|
|
288
|
+
className: "text-sm font-semibold text-text-primary",
|
|
289
|
+
children: a.assignment.title
|
|
290
|
+
}), /* @__PURE__ */ Z("p", {
|
|
291
|
+
className: "text-sm text-text-secondary whitespace-pre-wrap",
|
|
292
|
+
children: a.assignment.description
|
|
293
|
+
})]
|
|
294
|
+
}), ue && /* @__PURE__ */ Q("div", {
|
|
295
|
+
className: "space-y-3",
|
|
296
|
+
children: [
|
|
297
|
+
/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
298
|
+
htmlFor: `assignment-repo-${a.id}`,
|
|
299
|
+
children: "GitHub Repo URL"
|
|
300
|
+
}), /* @__PURE__ */ Z(d, {
|
|
301
|
+
id: `assignment-repo-${a.id}`,
|
|
302
|
+
value: M,
|
|
303
|
+
onChange: (e) => se(e.target.value),
|
|
304
|
+
placeholder: "https://github.com/…"
|
|
305
|
+
})] }),
|
|
306
|
+
/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
307
|
+
htmlFor: `assignment-video-${a.id}`,
|
|
308
|
+
children: "Jam Video URL"
|
|
309
|
+
}), /* @__PURE__ */ Z(d, {
|
|
310
|
+
id: `assignment-video-${a.id}`,
|
|
311
|
+
value: P,
|
|
312
|
+
onChange: (e) => F(e.target.value),
|
|
313
|
+
placeholder: "https://jam.dev/…"
|
|
314
|
+
})] }),
|
|
315
|
+
/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
316
|
+
htmlFor: `assignment-notes-${a.id}`,
|
|
317
|
+
children: "Notes"
|
|
318
|
+
}), /* @__PURE__ */ Z(v, {
|
|
319
|
+
id: `assignment-notes-${a.id}`,
|
|
320
|
+
value: I,
|
|
321
|
+
onChange: (e) => L(e.target.value),
|
|
322
|
+
placeholder: "Add submission notes…",
|
|
323
|
+
rows: 3
|
|
324
|
+
})] }),
|
|
325
|
+
/* @__PURE__ */ Z("div", {
|
|
326
|
+
className: "flex items-center justify-end",
|
|
327
|
+
children: /* @__PURE__ */ Q(t, {
|
|
328
|
+
size: "sm",
|
|
329
|
+
onClick: _e,
|
|
330
|
+
disabled: W || !M.trim() && !P.trim() && !I.trim(),
|
|
331
|
+
children: [W ? /* @__PURE__ */ Z(Y, {
|
|
332
|
+
size: 14,
|
|
333
|
+
className: "animate-spin mr-1"
|
|
334
|
+
}) : null, "Record Submission"]
|
|
335
|
+
})
|
|
336
|
+
})
|
|
337
|
+
]
|
|
338
|
+
})]
|
|
339
|
+
})]
|
|
340
|
+
})]
|
|
341
|
+
}),
|
|
342
|
+
/* @__PURE__ */ Q("div", {
|
|
343
|
+
className: "space-y-3",
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ Q("div", {
|
|
346
|
+
className: "flex items-center justify-between",
|
|
347
|
+
children: [/* @__PURE__ */ Z("p", {
|
|
348
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
349
|
+
children: "Feedback"
|
|
350
|
+
}), !re && /* @__PURE__ */ Q(t, {
|
|
351
|
+
variant: "ghost",
|
|
352
|
+
size: "sm",
|
|
353
|
+
onClick: be,
|
|
354
|
+
children: [/* @__PURE__ */ Z(me, { size: 14 }), "Add Feedback"]
|
|
355
|
+
})]
|
|
356
|
+
}),
|
|
357
|
+
a.feedback.length > 0 && /* @__PURE__ */ Z("div", {
|
|
358
|
+
className: "space-y-2",
|
|
359
|
+
children: a.feedback.map((n) => /* @__PURE__ */ Q("div", {
|
|
360
|
+
className: "p-3 rounded-lg bg-bg-muted/30 border border-border-default",
|
|
361
|
+
children: [/* @__PURE__ */ Q("div", {
|
|
362
|
+
className: "flex items-start justify-between gap-3",
|
|
363
|
+
children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
364
|
+
className: "text-sm font-medium text-text-primary",
|
|
365
|
+
children: n.interviewer.name
|
|
366
|
+
}), /* @__PURE__ */ Q("div", {
|
|
367
|
+
className: "flex items-center gap-2 mt-1",
|
|
368
|
+
children: [n.rating && /* @__PURE__ */ Z("span", {
|
|
369
|
+
className: "inline-flex items-center gap-0.5 text-xs text-status-warning-text",
|
|
370
|
+
children: Array.from({ length: n.rating }).map((e, t) => /* @__PURE__ */ Z(ge, {
|
|
371
|
+
size: 12,
|
|
372
|
+
fill: "currentColor"
|
|
373
|
+
}, t))
|
|
374
|
+
}), n.verdict && /* @__PURE__ */ Z(e, {
|
|
375
|
+
className: `${Ie(n.verdict)} text-xs`,
|
|
376
|
+
children: $(n.verdict)
|
|
377
|
+
})]
|
|
378
|
+
})] }), /* @__PURE__ */ Z(t, {
|
|
379
|
+
variant: "ghost",
|
|
380
|
+
size: "sm",
|
|
381
|
+
onClick: () => xe(n),
|
|
382
|
+
children: /* @__PURE__ */ Z(U, { size: 14 })
|
|
383
|
+
})]
|
|
384
|
+
}), n.internalNotes && /* @__PURE__ */ Z("p", {
|
|
385
|
+
className: "mt-2 text-sm text-text-secondary whitespace-pre-wrap",
|
|
386
|
+
children: n.internalNotes
|
|
387
|
+
})]
|
|
388
|
+
}, n.id))
|
|
389
|
+
}),
|
|
390
|
+
re && /* @__PURE__ */ Q("div", {
|
|
391
|
+
className: "p-3 rounded-lg border border-border-default bg-bg-surface space-y-3",
|
|
392
|
+
children: [
|
|
393
|
+
!x && /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
394
|
+
htmlFor: `feedback-interviewer-${a.id}`,
|
|
395
|
+
children: "Interviewer"
|
|
396
|
+
}), /* @__PURE__ */ Q(p, {
|
|
397
|
+
value: w,
|
|
398
|
+
onValueChange: T,
|
|
399
|
+
children: [/* @__PURE__ */ Z(g, {
|
|
400
|
+
id: `feedback-interviewer-${a.id}`,
|
|
401
|
+
children: /* @__PURE__ */ Z(_, { placeholder: "Select interviewer" })
|
|
402
|
+
}), /* @__PURE__ */ Z(m, { children: c ? /* @__PURE__ */ Z(h, {
|
|
403
|
+
value: "loading",
|
|
404
|
+
disabled: !0,
|
|
405
|
+
children: "Loading…"
|
|
406
|
+
}) : s.map((e) => /* @__PURE__ */ Z(h, {
|
|
407
|
+
value: e.id,
|
|
408
|
+
children: e.name
|
|
409
|
+
}, e.id)) })]
|
|
410
|
+
})] }),
|
|
411
|
+
/* @__PURE__ */ Q("div", {
|
|
412
|
+
className: "grid grid-cols-2 gap-3",
|
|
413
|
+
children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
414
|
+
htmlFor: `feedback-rating-${a.id}`,
|
|
415
|
+
children: "Rating"
|
|
416
|
+
}), /* @__PURE__ */ Q(p, {
|
|
417
|
+
value: ae,
|
|
418
|
+
onValueChange: E,
|
|
419
|
+
children: [/* @__PURE__ */ Z(g, {
|
|
420
|
+
id: `feedback-rating-${a.id}`,
|
|
421
|
+
children: /* @__PURE__ */ Z(_, { placeholder: "1–5" })
|
|
422
|
+
}), /* @__PURE__ */ Z(m, { children: [
|
|
423
|
+
1,
|
|
424
|
+
2,
|
|
425
|
+
3,
|
|
426
|
+
4,
|
|
427
|
+
5
|
|
428
|
+
].map((e) => /* @__PURE__ */ Z(h, {
|
|
429
|
+
value: String(e),
|
|
430
|
+
children: e
|
|
431
|
+
}, e)) })]
|
|
432
|
+
})] }), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
433
|
+
htmlFor: `feedback-verdict-${a.id}`,
|
|
434
|
+
children: "Verdict"
|
|
435
|
+
}), /* @__PURE__ */ Q(p, {
|
|
436
|
+
value: oe,
|
|
437
|
+
onValueChange: (e) => D(e),
|
|
438
|
+
children: [/* @__PURE__ */ Z(g, {
|
|
439
|
+
id: `feedback-verdict-${a.id}`,
|
|
440
|
+
children: /* @__PURE__ */ Z(_, { placeholder: "Verdict" })
|
|
441
|
+
}), /* @__PURE__ */ Z(m, { children: Object.values(k).map((e) => /* @__PURE__ */ Z(h, {
|
|
442
|
+
value: e,
|
|
443
|
+
children: $(e)
|
|
444
|
+
}, e)) })]
|
|
445
|
+
})] })]
|
|
446
|
+
}),
|
|
447
|
+
/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
448
|
+
htmlFor: `feedback-notes-${a.id}`,
|
|
449
|
+
children: "Internal Notes"
|
|
450
|
+
}), /* @__PURE__ */ Z(v, {
|
|
451
|
+
id: `feedback-notes-${a.id}`,
|
|
452
|
+
value: A,
|
|
453
|
+
onChange: (e) => j(e.target.value),
|
|
454
|
+
placeholder: "Add private notes about this round…",
|
|
455
|
+
rows: 3
|
|
456
|
+
})] }),
|
|
457
|
+
/* @__PURE__ */ Q("div", {
|
|
458
|
+
className: "flex items-center justify-end gap-2",
|
|
459
|
+
children: [/* @__PURE__ */ Z(t, {
|
|
460
|
+
variant: "outline",
|
|
461
|
+
size: "sm",
|
|
462
|
+
onClick: () => {
|
|
463
|
+
fe(), b(!1);
|
|
464
|
+
},
|
|
465
|
+
children: "Cancel"
|
|
466
|
+
}), /* @__PURE__ */ Z(t, {
|
|
467
|
+
size: "sm",
|
|
468
|
+
onClick: async () => {
|
|
469
|
+
let e = ae ? parseInt(ae, 10) : void 0, t = oe || void 0, n = A.trim() || void 0;
|
|
470
|
+
if (x) await ne(x.id, {
|
|
471
|
+
rating: e,
|
|
472
|
+
verdict: t,
|
|
473
|
+
internalNotes: n
|
|
474
|
+
});
|
|
475
|
+
else {
|
|
476
|
+
if (!w) return;
|
|
477
|
+
await te(a.id, {
|
|
478
|
+
interviewerId: w,
|
|
479
|
+
rating: e,
|
|
480
|
+
verdict: t,
|
|
481
|
+
internalNotes: n
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
fe(), b(!1);
|
|
485
|
+
},
|
|
486
|
+
disabled: !x && !w,
|
|
487
|
+
children: x ? "Update Feedback" : "Submit Feedback"
|
|
488
|
+
})]
|
|
489
|
+
})
|
|
490
|
+
]
|
|
491
|
+
})
|
|
492
|
+
]
|
|
493
|
+
})
|
|
494
|
+
]
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
function ze({ applicationId: e }) {
|
|
498
|
+
let { data: n, loading: r, error: i } = re({ variables: { applicationId: e } }), { data: ee, loading: b } = ne({ variables: { limit: 200 } }), [x, { loading: S }] = te({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [ie, { loading: w }] = y({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [oe] = C({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [k, { loading: j }] = T({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [M] = ae({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [se] = E({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), P = n?.jobApplicationInterviewRounds ?? [], F = ee?.interviewers.items ?? [], [I, L] = N(!1), [R, z] = N({
|
|
499
|
+
name: "",
|
|
500
|
+
roundType: O.PhoneScreen,
|
|
501
|
+
status: D.Scheduled,
|
|
502
|
+
scheduledAt: ""
|
|
503
|
+
}), [B, V] = N(null), [H, U] = N([]), [le, W] = N(A.Panel), [G, K] = N(null), [q, J] = N(""), [ue, X] = N(null), de = () => {
|
|
504
|
+
z({
|
|
505
|
+
name: "",
|
|
506
|
+
roundType: O.PhoneScreen,
|
|
507
|
+
status: D.Scheduled,
|
|
508
|
+
scheduledAt: ""
|
|
509
|
+
});
|
|
510
|
+
}, fe = async () => {
|
|
511
|
+
if (R.name.trim()) {
|
|
512
|
+
X(null);
|
|
513
|
+
try {
|
|
514
|
+
await x({ variables: { input: {
|
|
515
|
+
applicationId: e,
|
|
516
|
+
name: R.name.trim(),
|
|
517
|
+
roundType: R.roundType,
|
|
518
|
+
status: R.status,
|
|
519
|
+
scheduledAt: R.scheduledAt || void 0
|
|
520
|
+
} } }), de(), L(!1);
|
|
521
|
+
} catch (e) {
|
|
522
|
+
console.error("Failed to create interview round:", e), X("Failed to create interview round.");
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}, pe = async () => {
|
|
526
|
+
if (!(!B || H.length === 0)) {
|
|
527
|
+
X(null);
|
|
528
|
+
try {
|
|
529
|
+
await ie({ variables: { input: {
|
|
530
|
+
roundId: B,
|
|
531
|
+
assignments: H.map((e) => ({
|
|
532
|
+
interviewerId: e,
|
|
533
|
+
role: le
|
|
534
|
+
}))
|
|
535
|
+
} } }), U([]), W(A.Panel), V(null);
|
|
536
|
+
} catch (e) {
|
|
537
|
+
console.error("Failed to assign interviewers:", e), X("Failed to assign interviewers.");
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}, he = async (e, t) => {
|
|
541
|
+
X(null);
|
|
542
|
+
try {
|
|
543
|
+
await oe({ variables: {
|
|
544
|
+
roundId: e,
|
|
545
|
+
interviewerId: t
|
|
546
|
+
} });
|
|
547
|
+
} catch (e) {
|
|
548
|
+
console.error("Failed to remove interviewer:", e), X("Failed to remove interviewer.");
|
|
549
|
+
}
|
|
550
|
+
}, ge = async () => {
|
|
551
|
+
if (!(!G || !q.trim())) {
|
|
552
|
+
X(null);
|
|
553
|
+
try {
|
|
554
|
+
await k({ variables: { input: {
|
|
555
|
+
roundId: G,
|
|
556
|
+
message: q.trim()
|
|
557
|
+
} } }), J(""), K(null);
|
|
558
|
+
} catch (e) {
|
|
559
|
+
console.error("Failed to send candidate message:", e), X("Failed to send candidate message.");
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}, _e = async (e, t) => {
|
|
563
|
+
X(null);
|
|
564
|
+
try {
|
|
565
|
+
await M({ variables: { input: {
|
|
566
|
+
roundId: e,
|
|
567
|
+
...t
|
|
568
|
+
} } });
|
|
569
|
+
} catch (e) {
|
|
570
|
+
throw console.error("Failed to submit feedback:", e), X("Failed to submit feedback."), e;
|
|
571
|
+
}
|
|
572
|
+
}, ve = async (e, t) => {
|
|
573
|
+
X(null);
|
|
574
|
+
try {
|
|
575
|
+
await se({ variables: {
|
|
576
|
+
id: e,
|
|
577
|
+
input: t
|
|
578
|
+
} });
|
|
579
|
+
} catch (e) {
|
|
580
|
+
throw console.error("Failed to update feedback:", e), X("Failed to update feedback."), e;
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
return /* @__PURE__ */ Q("div", {
|
|
584
|
+
className: "bg-bg-surface border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
585
|
+
children: [
|
|
586
|
+
/* @__PURE__ */ Q("div", {
|
|
587
|
+
className: "px-5 py-3.5 border-b border-border-default bg-bg-muted/50 flex items-center justify-between",
|
|
588
|
+
children: [/* @__PURE__ */ Q("h2", {
|
|
589
|
+
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
590
|
+
children: [/* @__PURE__ */ Z(be, { size: 14 }), "Interview Rounds"]
|
|
591
|
+
}), /* @__PURE__ */ Q(t, {
|
|
592
|
+
size: "sm",
|
|
593
|
+
onClick: () => L(!0),
|
|
594
|
+
children: [/* @__PURE__ */ Z(me, { size: 14 }), "Add Round"]
|
|
595
|
+
})]
|
|
596
|
+
}),
|
|
597
|
+
/* @__PURE__ */ Q("div", {
|
|
598
|
+
className: "p-5",
|
|
599
|
+
children: [ue && /* @__PURE__ */ Q("div", {
|
|
600
|
+
className: "mb-4 p-3 rounded-lg bg-status-error-bg-subtle border border-border-subtle text-sm text-status-error-text flex items-center gap-2",
|
|
601
|
+
children: [/* @__PURE__ */ Z(ce, { size: 16 }), ue]
|
|
602
|
+
}), r ? /* @__PURE__ */ Q("div", {
|
|
603
|
+
className: "flex items-center gap-2 text-sm text-text-secondary py-4",
|
|
604
|
+
children: [/* @__PURE__ */ Z(Y, {
|
|
605
|
+
size: 16,
|
|
606
|
+
className: "animate-spin"
|
|
607
|
+
}), "Loading interview rounds…"]
|
|
608
|
+
}) : i ? /* @__PURE__ */ Q("div", {
|
|
609
|
+
className: "p-3 rounded-lg bg-status-error-bg-subtle text-status-error-text text-sm flex items-center gap-2",
|
|
610
|
+
children: [/* @__PURE__ */ Z(ce, { size: 16 }), "Could not load interview rounds."]
|
|
611
|
+
}) : P.length === 0 ? /* @__PURE__ */ Z("p", {
|
|
612
|
+
className: "text-sm text-text-secondary",
|
|
613
|
+
children: "No interview rounds yet."
|
|
614
|
+
}) : /* @__PURE__ */ Z("div", {
|
|
615
|
+
className: "space-y-5",
|
|
616
|
+
children: P.map((t) => /* @__PURE__ */ Z(Re, {
|
|
617
|
+
round: t,
|
|
618
|
+
applicationId: e,
|
|
619
|
+
interviewers: F,
|
|
620
|
+
interviewersLoading: b,
|
|
621
|
+
onAssign: () => {
|
|
622
|
+
V(t.id), U([]), W(A.Panel);
|
|
623
|
+
},
|
|
624
|
+
onRemoveInterviewer: he,
|
|
625
|
+
onSendMessage: () => {
|
|
626
|
+
K(t.id), J("");
|
|
627
|
+
},
|
|
628
|
+
onSubmitFeedback: _e,
|
|
629
|
+
onUpdateFeedback: ve
|
|
630
|
+
}, t.id))
|
|
631
|
+
})]
|
|
632
|
+
}),
|
|
633
|
+
/* @__PURE__ */ Z(a, {
|
|
634
|
+
open: I,
|
|
635
|
+
onOpenChange: L,
|
|
636
|
+
children: /* @__PURE__ */ Q(o, {
|
|
637
|
+
className: "sm:max-w-md",
|
|
638
|
+
children: [
|
|
639
|
+
/* @__PURE__ */ Q(l, { children: [/* @__PURE__ */ Z(u, { children: "Add Interview Round" }), /* @__PURE__ */ Z(s, { children: "Schedule a new round for this candidate." })] }),
|
|
640
|
+
/* @__PURE__ */ Q("div", {
|
|
641
|
+
className: "space-y-4 py-2",
|
|
642
|
+
children: [
|
|
643
|
+
/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
644
|
+
htmlFor: "round-name",
|
|
645
|
+
children: "Name"
|
|
646
|
+
}), /* @__PURE__ */ Z(d, {
|
|
647
|
+
id: "round-name",
|
|
648
|
+
value: R.name,
|
|
649
|
+
onChange: (e) => z((t) => ({
|
|
650
|
+
...t,
|
|
651
|
+
name: e.target.value
|
|
652
|
+
})),
|
|
653
|
+
placeholder: "e.g. Technical Interview"
|
|
654
|
+
})] }),
|
|
655
|
+
/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
656
|
+
htmlFor: "round-type",
|
|
657
|
+
children: "Round Type"
|
|
658
|
+
}), /* @__PURE__ */ Q(p, {
|
|
659
|
+
value: R.roundType,
|
|
660
|
+
onValueChange: (e) => z((t) => ({
|
|
661
|
+
...t,
|
|
662
|
+
roundType: e
|
|
663
|
+
})),
|
|
664
|
+
children: [/* @__PURE__ */ Z(g, {
|
|
665
|
+
id: "round-type",
|
|
666
|
+
children: /* @__PURE__ */ Z(_, {})
|
|
667
|
+
}), /* @__PURE__ */ Z(m, { children: Object.values(O).map((e) => /* @__PURE__ */ Z(h, {
|
|
668
|
+
value: e,
|
|
669
|
+
children: $(e)
|
|
670
|
+
}, e)) })]
|
|
671
|
+
})] }),
|
|
672
|
+
/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
673
|
+
htmlFor: "round-status",
|
|
674
|
+
children: "Status"
|
|
675
|
+
}), /* @__PURE__ */ Q(p, {
|
|
676
|
+
value: R.status,
|
|
677
|
+
onValueChange: (e) => z((t) => ({
|
|
678
|
+
...t,
|
|
679
|
+
status: e
|
|
680
|
+
})),
|
|
681
|
+
children: [/* @__PURE__ */ Z(g, {
|
|
682
|
+
id: "round-status",
|
|
683
|
+
children: /* @__PURE__ */ Z(_, {})
|
|
684
|
+
}), /* @__PURE__ */ Z(m, { children: Object.values(D).map((e) => /* @__PURE__ */ Z(h, {
|
|
685
|
+
value: e,
|
|
686
|
+
children: $(e)
|
|
687
|
+
}, e)) })]
|
|
688
|
+
})] }),
|
|
689
|
+
/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
690
|
+
htmlFor: "round-scheduled",
|
|
691
|
+
children: "Scheduled At"
|
|
692
|
+
}), /* @__PURE__ */ Z(d, {
|
|
693
|
+
id: "round-scheduled",
|
|
694
|
+
type: "datetime-local",
|
|
695
|
+
value: R.scheduledAt,
|
|
696
|
+
onChange: (e) => z((t) => ({
|
|
697
|
+
...t,
|
|
698
|
+
scheduledAt: e.target.value
|
|
699
|
+
}))
|
|
700
|
+
})] })
|
|
701
|
+
]
|
|
702
|
+
}),
|
|
703
|
+
/* @__PURE__ */ Q(c, { children: [/* @__PURE__ */ Z(t, {
|
|
704
|
+
variant: "outline",
|
|
705
|
+
onClick: () => L(!1),
|
|
706
|
+
children: "Cancel"
|
|
707
|
+
}), /* @__PURE__ */ Q(t, {
|
|
708
|
+
onClick: fe,
|
|
709
|
+
disabled: S || !R.name.trim(),
|
|
710
|
+
children: [S ? /* @__PURE__ */ Z(Y, {
|
|
711
|
+
size: 14,
|
|
712
|
+
className: "animate-spin mr-1"
|
|
713
|
+
}) : null, "Create Round"]
|
|
714
|
+
})] })
|
|
715
|
+
]
|
|
716
|
+
})
|
|
717
|
+
}),
|
|
718
|
+
/* @__PURE__ */ Z(a, {
|
|
719
|
+
open: !!B,
|
|
720
|
+
onOpenChange: (e) => !e && V(null),
|
|
721
|
+
children: /* @__PURE__ */ Q(o, {
|
|
722
|
+
className: "sm:max-w-md",
|
|
723
|
+
children: [
|
|
724
|
+
/* @__PURE__ */ Q(l, { children: [/* @__PURE__ */ Z(u, { children: "Assign Interviewers" }), /* @__PURE__ */ Z(s, { children: "Choose interviewers and a role for this round." })] }),
|
|
725
|
+
/* @__PURE__ */ Q("div", {
|
|
726
|
+
className: "space-y-4 py-2",
|
|
727
|
+
children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, {
|
|
728
|
+
htmlFor: "assign-role",
|
|
729
|
+
children: "Role"
|
|
730
|
+
}), /* @__PURE__ */ Q(p, {
|
|
731
|
+
value: le,
|
|
732
|
+
onValueChange: (e) => W(e),
|
|
733
|
+
children: [/* @__PURE__ */ Z(g, {
|
|
734
|
+
id: "assign-role",
|
|
735
|
+
children: /* @__PURE__ */ Z(_, {})
|
|
736
|
+
}), /* @__PURE__ */ Z(m, { children: Object.values(A).map((e) => /* @__PURE__ */ Z(h, {
|
|
737
|
+
value: e,
|
|
738
|
+
children: $(e)
|
|
739
|
+
}, e)) })]
|
|
740
|
+
})] }), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z(f, { children: "Interviewers" }), /* @__PURE__ */ Z("div", {
|
|
741
|
+
className: "mt-1.5 max-h-60 overflow-y-auto border border-border-default rounded-lg p-2 space-y-1",
|
|
742
|
+
children: b ? /* @__PURE__ */ Q("div", {
|
|
743
|
+
className: "flex items-center gap-2 text-sm text-text-secondary py-2",
|
|
744
|
+
children: [/* @__PURE__ */ Z(Y, {
|
|
745
|
+
size: 14,
|
|
746
|
+
className: "animate-spin"
|
|
747
|
+
}), "Loading…"]
|
|
748
|
+
}) : F.length === 0 ? /* @__PURE__ */ Z("p", {
|
|
749
|
+
className: "text-sm text-text-secondary py-2",
|
|
750
|
+
children: "No interviewers found."
|
|
751
|
+
}) : F.map((e) => /* @__PURE__ */ Q("label", {
|
|
752
|
+
className: "flex items-start gap-2 p-2 rounded-md hover:bg-bg-muted cursor-pointer",
|
|
753
|
+
children: [/* @__PURE__ */ Z("input", {
|
|
754
|
+
type: "checkbox",
|
|
755
|
+
className: "mt-1",
|
|
756
|
+
checked: H.includes(e.id),
|
|
757
|
+
onChange: (t) => {
|
|
758
|
+
U((n) => t.target.checked ? [...n, e.id] : n.filter((t) => t !== e.id));
|
|
759
|
+
}
|
|
760
|
+
}), /* @__PURE__ */ Q("div", {
|
|
761
|
+
className: "text-sm",
|
|
762
|
+
children: [/* @__PURE__ */ Z("p", {
|
|
763
|
+
className: "font-medium text-text-primary",
|
|
764
|
+
children: e.name
|
|
765
|
+
}), /* @__PURE__ */ Z("p", {
|
|
766
|
+
className: "text-xs text-text-secondary",
|
|
767
|
+
children: e.email
|
|
768
|
+
})]
|
|
769
|
+
})]
|
|
770
|
+
}, e.id))
|
|
771
|
+
})] })]
|
|
772
|
+
}),
|
|
773
|
+
/* @__PURE__ */ Q(c, { children: [/* @__PURE__ */ Z(t, {
|
|
774
|
+
variant: "outline",
|
|
775
|
+
onClick: () => V(null),
|
|
776
|
+
children: "Cancel"
|
|
777
|
+
}), /* @__PURE__ */ Q(t, {
|
|
778
|
+
onClick: pe,
|
|
779
|
+
disabled: w || H.length === 0,
|
|
780
|
+
children: [w ? /* @__PURE__ */ Z(Y, {
|
|
781
|
+
size: 14,
|
|
782
|
+
className: "animate-spin mr-1"
|
|
783
|
+
}) : null, "Assign"]
|
|
784
|
+
})] })
|
|
785
|
+
]
|
|
786
|
+
})
|
|
787
|
+
}),
|
|
788
|
+
/* @__PURE__ */ Z(a, {
|
|
789
|
+
open: !!G,
|
|
790
|
+
onOpenChange: (e) => !e && K(null),
|
|
791
|
+
children: /* @__PURE__ */ Q(o, {
|
|
792
|
+
className: "sm:max-w-md",
|
|
793
|
+
children: [
|
|
794
|
+
/* @__PURE__ */ Q(l, { children: [/* @__PURE__ */ Z(u, { children: "Send Candidate Message" }), /* @__PURE__ */ Z(s, { children: "This message will be emailed to the candidate for this round." })] }),
|
|
795
|
+
/* @__PURE__ */ Z("div", {
|
|
796
|
+
className: "py-2",
|
|
797
|
+
children: /* @__PURE__ */ Z(v, {
|
|
798
|
+
value: q,
|
|
799
|
+
onChange: (e) => J(e.target.value),
|
|
800
|
+
placeholder: "Type the message to send…",
|
|
801
|
+
rows: 5
|
|
802
|
+
})
|
|
803
|
+
}),
|
|
804
|
+
/* @__PURE__ */ Q(c, { children: [/* @__PURE__ */ Z(t, {
|
|
805
|
+
variant: "outline",
|
|
806
|
+
onClick: () => K(null),
|
|
807
|
+
children: "Cancel"
|
|
808
|
+
}), /* @__PURE__ */ Q(t, {
|
|
809
|
+
onClick: ge,
|
|
810
|
+
disabled: j || !q.trim(),
|
|
811
|
+
children: [j ? /* @__PURE__ */ Z(Y, {
|
|
812
|
+
size: 14,
|
|
813
|
+
className: "animate-spin mr-1"
|
|
814
|
+
}) : null, "Send Message"]
|
|
815
|
+
})] })
|
|
816
|
+
]
|
|
817
|
+
})
|
|
818
|
+
})
|
|
819
|
+
]
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
function Be() {
|
|
823
|
+
let { id: e } = we(), t = Ce(), n = Se().search, [r, i] = N(!1), [ee, a] = N(!1), [o, s] = N(!1), [c, l] = N(!1), [u, d] = N(""), [f, p] = N(!1), [m, h] = N(null), { data: g, loading: _, error: v } = b({
|
|
824
|
+
variables: { id: e },
|
|
825
|
+
skip: !e
|
|
826
|
+
}), y = g?.jobApplication?.productId ?? null;
|
|
827
|
+
se(() => {
|
|
828
|
+
if (!y) {
|
|
829
|
+
h(null);
|
|
92
830
|
return;
|
|
93
831
|
}
|
|
94
832
|
let e = !1;
|
|
95
|
-
return
|
|
833
|
+
return Te({
|
|
96
834
|
gateway: "global",
|
|
97
835
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
98
|
-
variables: { id:
|
|
836
|
+
variables: { id: y }
|
|
99
837
|
}).then((t) => {
|
|
100
838
|
if (e) return;
|
|
101
839
|
let n = t.data?.platformProduct?.name;
|
|
102
|
-
n &&
|
|
840
|
+
n && h(n);
|
|
103
841
|
}).catch(() => {}), () => {
|
|
104
842
|
e = !0;
|
|
105
843
|
};
|
|
106
|
-
}, [
|
|
107
|
-
let [
|
|
108
|
-
if (!(!
|
|
109
|
-
(await
|
|
110
|
-
id:
|
|
111
|
-
message:
|
|
112
|
-
} })).data?.replyToJobApplication.success && (
|
|
844
|
+
}, [y]);
|
|
845
|
+
let [te, { loading: ne }] = oe({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [re, { loading: S }] = x({ fetchPolicy: "no-cache" }), [ie, { loading: C }] = w(), T = g?.jobApplication, ae = async () => {
|
|
846
|
+
if (!(!u.trim() || !e)) try {
|
|
847
|
+
(await ie({ variables: {
|
|
848
|
+
id: e,
|
|
849
|
+
message: u.trim()
|
|
850
|
+
} })).data?.replyToJobApplication.success && (p(!0), d(""), setTimeout(() => p(!1), 3e3));
|
|
113
851
|
} catch (e) {
|
|
114
852
|
console.error("Failed to send reply:", e);
|
|
115
853
|
}
|
|
116
|
-
},
|
|
117
|
-
if (
|
|
118
|
-
|
|
854
|
+
}, E = async (t) => {
|
|
855
|
+
if (e) {
|
|
856
|
+
a(!1);
|
|
119
857
|
try {
|
|
120
|
-
await
|
|
121
|
-
id:
|
|
122
|
-
input: { status:
|
|
123
|
-
} }),
|
|
858
|
+
await te({ variables: {
|
|
859
|
+
id: e,
|
|
860
|
+
input: { status: t }
|
|
861
|
+
} }), i(!0), setTimeout(() => i(!1), 3e3);
|
|
124
862
|
} catch (e) {
|
|
125
|
-
console.error("Failed to update status:", e),
|
|
863
|
+
console.error("Failed to update status:", e), a(!0), setTimeout(() => a(!1), 4e3);
|
|
126
864
|
}
|
|
127
865
|
}
|
|
128
|
-
},
|
|
129
|
-
if (
|
|
130
|
-
|
|
866
|
+
}, D = async () => {
|
|
867
|
+
if (e) {
|
|
868
|
+
l(!1);
|
|
131
869
|
try {
|
|
132
|
-
let
|
|
133
|
-
|
|
870
|
+
let t = (await re({ variables: { id: e } })).data?.jobApplicationResumeUrl;
|
|
871
|
+
t ? window.open(t, "_blank", "noopener,noreferrer") : l(!0);
|
|
134
872
|
} catch (e) {
|
|
135
|
-
console.error("Failed to get resume URL:", e),
|
|
873
|
+
console.error("Failed to get resume URL:", e), l(!0);
|
|
136
874
|
}
|
|
137
875
|
}
|
|
138
|
-
},
|
|
139
|
-
|
|
876
|
+
}, O = async () => {
|
|
877
|
+
T?.email && (M("light"), await j(T.email), s(!0), setTimeout(() => s(!1), 2e3));
|
|
140
878
|
};
|
|
141
|
-
if (
|
|
879
|
+
if (_) return /* @__PURE__ */ Z("div", {
|
|
142
880
|
className: "min-h-full flex items-center justify-center py-20",
|
|
143
|
-
children: /* @__PURE__ */
|
|
881
|
+
children: /* @__PURE__ */ Q("div", {
|
|
144
882
|
className: "text-center",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
883
|
+
children: [/* @__PURE__ */ Z(Y, {
|
|
146
884
|
size: 36,
|
|
147
885
|
className: "animate-spin text-[var(--color-text-secondary)] mx-auto mb-3"
|
|
148
|
-
}), /* @__PURE__ */
|
|
886
|
+
}), /* @__PURE__ */ Z("p", {
|
|
149
887
|
className: "text-sm text-[var(--color-text-secondary)]",
|
|
150
888
|
children: "Loading application details…"
|
|
151
889
|
})]
|
|
152
890
|
})
|
|
153
891
|
});
|
|
154
|
-
if (
|
|
892
|
+
if (v || !T) return /* @__PURE__ */ Z("div", {
|
|
155
893
|
className: "p-6",
|
|
156
|
-
children: /* @__PURE__ */
|
|
894
|
+
children: /* @__PURE__ */ Z(Oe, {
|
|
157
895
|
illustration: "empty-search",
|
|
158
896
|
title: "Application not found",
|
|
159
|
-
description:
|
|
160
|
-
action: /* @__PURE__ */
|
|
897
|
+
description: v?.message || "This application may have been deleted or you don't have access.",
|
|
898
|
+
action: /* @__PURE__ */ Q("button", {
|
|
161
899
|
type: "button",
|
|
162
|
-
onClick: () =>
|
|
900
|
+
onClick: () => t(`/support/applications${n}`),
|
|
163
901
|
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__ */
|
|
902
|
+
children: [/* @__PURE__ */ Z(F, { size: 16 }), "Back to Applications"]
|
|
165
903
|
})
|
|
166
904
|
})
|
|
167
905
|
});
|
|
168
|
-
let
|
|
169
|
-
return /* @__PURE__ */
|
|
906
|
+
let k = je[T.status] || je.NEW, A = k.icon, U = `${T.firstName} ${T.lastName}`.trim(), W = Fe(T.resumeFileSize), q = Le(T.linkedinUrl), de = Le(T.portfolioUrl);
|
|
907
|
+
return /* @__PURE__ */ Q("div", {
|
|
170
908
|
className: "p-6 animate-in fade-in duration-200",
|
|
171
909
|
children: [
|
|
172
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ Q("div", {
|
|
173
911
|
className: "flex items-center justify-between mb-6",
|
|
174
|
-
children: [/* @__PURE__ */
|
|
912
|
+
children: [/* @__PURE__ */ Q("button", {
|
|
175
913
|
type: "button",
|
|
176
|
-
onClick: () =>
|
|
914
|
+
onClick: () => t(`/support/applications${n}`),
|
|
177
915
|
className: "inline-flex items-center gap-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
916
|
+
children: [/* @__PURE__ */ Z(F, { size: 18 }), /* @__PURE__ */ Z("span", {
|
|
179
917
|
className: "text-sm font-medium",
|
|
180
918
|
children: "Back to Applications"
|
|
181
919
|
})]
|
|
182
|
-
}), /* @__PURE__ */
|
|
920
|
+
}), /* @__PURE__ */ Q("div", {
|
|
183
921
|
className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
922
|
+
children: [/* @__PURE__ */ Z(B, { size: 12 }), Pe(T.createdAt)]
|
|
185
923
|
})]
|
|
186
924
|
}),
|
|
187
|
-
|
|
925
|
+
r && /* @__PURE__ */ Q("div", {
|
|
188
926
|
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",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
927
|
+
children: [/* @__PURE__ */ Z(z, { size: 18 }), "Status updated successfully"]
|
|
190
928
|
}),
|
|
191
|
-
|
|
929
|
+
ee && /* @__PURE__ */ Q("div", {
|
|
192
930
|
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",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
931
|
+
children: [/* @__PURE__ */ Z(ce, { size: 18 }), "Couldn't update the status. Please try again."]
|
|
194
932
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ Z(Ae, {
|
|
196
934
|
className: "mb-6",
|
|
197
935
|
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
936
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ Z(ke, {
|
|
200
938
|
storageKey: "support-application-detail",
|
|
201
939
|
title: "Move this candidate forward",
|
|
202
940
|
className: "mb-6",
|
|
203
941
|
steps: [
|
|
204
|
-
...
|
|
942
|
+
...T.resumeFileName ? [{
|
|
205
943
|
id: "resume",
|
|
206
944
|
label: "Review the resume",
|
|
207
945
|
description: "Download and read the candidate's resume.",
|
|
208
|
-
onClick: () => void
|
|
946
|
+
onClick: () => void D()
|
|
209
947
|
}] : [],
|
|
210
948
|
{
|
|
211
949
|
id: "advance",
|
|
@@ -227,37 +965,37 @@ function O() {
|
|
|
227
965
|
}
|
|
228
966
|
]
|
|
229
967
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
className: `rounded-xl border p-6 mb-6 ${
|
|
232
|
-
children: /* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ Z("div", {
|
|
969
|
+
className: `rounded-xl border p-6 mb-6 ${k.bg}`,
|
|
970
|
+
children: /* @__PURE__ */ Z("div", {
|
|
233
971
|
className: "flex items-start justify-between",
|
|
234
|
-
children: /* @__PURE__ */
|
|
972
|
+
children: /* @__PURE__ */ Q("div", {
|
|
235
973
|
className: "flex items-start gap-4",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
974
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
237
975
|
className: "size-12 rounded-xl bg-bg-surface/80 dark:bg-bg-surface/10 flex items-center justify-center shadow-sm",
|
|
238
|
-
children: /* @__PURE__ */
|
|
976
|
+
children: /* @__PURE__ */ Z(A, {
|
|
239
977
|
size: 24,
|
|
240
|
-
className:
|
|
978
|
+
className: k.color
|
|
241
979
|
})
|
|
242
|
-
}), /* @__PURE__ */
|
|
980
|
+
}), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("div", {
|
|
243
981
|
className: "flex items-center gap-3 mb-1.5",
|
|
244
|
-
children: /* @__PURE__ */
|
|
982
|
+
children: /* @__PURE__ */ Z("h1", {
|
|
245
983
|
className: "text-xl font-bold text-[var(--color-text-primary)]",
|
|
246
|
-
children:
|
|
984
|
+
children: U
|
|
247
985
|
})
|
|
248
|
-
}), /* @__PURE__ */
|
|
986
|
+
}), /* @__PURE__ */ Q("div", {
|
|
249
987
|
className: "flex items-center gap-3 text-sm flex-wrap",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
251
|
-
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${
|
|
252
|
-
children: [/* @__PURE__ */
|
|
253
|
-
}), /* @__PURE__ */
|
|
988
|
+
children: [/* @__PURE__ */ Q("span", {
|
|
989
|
+
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${k.color} bg-bg-surface/60 dark:bg-bg-surface/10`,
|
|
990
|
+
children: [/* @__PURE__ */ Z(A, { size: 12 }), k.label]
|
|
991
|
+
}), /* @__PURE__ */ Q("span", {
|
|
254
992
|
className: "text-[var(--color-text-secondary)]",
|
|
255
993
|
children: [
|
|
256
994
|
"applying for",
|
|
257
995
|
" ",
|
|
258
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ Z("strong", {
|
|
259
997
|
className: "text-[var(--color-text-primary)]",
|
|
260
|
-
children:
|
|
998
|
+
children: T.position
|
|
261
999
|
})
|
|
262
1000
|
]
|
|
263
1001
|
})]
|
|
@@ -265,68 +1003,68 @@ function O() {
|
|
|
265
1003
|
})
|
|
266
1004
|
})
|
|
267
1005
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
1006
|
+
/* @__PURE__ */ Q("div", {
|
|
269
1007
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
1008
|
+
children: [/* @__PURE__ */ Q("div", {
|
|
271
1009
|
className: "lg:col-span-2 space-y-5",
|
|
272
1010
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
1011
|
+
/* @__PURE__ */ Q("div", {
|
|
274
1012
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
275
|
-
children: [/* @__PURE__ */
|
|
1013
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
276
1014
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
277
|
-
children: /* @__PURE__ */
|
|
1015
|
+
children: /* @__PURE__ */ Q("h2", {
|
|
278
1016
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
279
|
-
children: [/* @__PURE__ */
|
|
1017
|
+
children: [/* @__PURE__ */ Z(_e, { size: 14 }), "Applicant Information"]
|
|
280
1018
|
})
|
|
281
|
-
}), /* @__PURE__ */
|
|
1019
|
+
}), /* @__PURE__ */ Z("div", {
|
|
282
1020
|
className: "p-5",
|
|
283
|
-
children: /* @__PURE__ */
|
|
1021
|
+
children: /* @__PURE__ */ Q("div", {
|
|
284
1022
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
285
1023
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
1024
|
+
/* @__PURE__ */ Q("div", {
|
|
287
1025
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
1026
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
289
1027
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
290
|
-
children: /* @__PURE__ */
|
|
1028
|
+
children: /* @__PURE__ */ Z(_e, {
|
|
291
1029
|
size: 16,
|
|
292
1030
|
className: "text-accent-blue"
|
|
293
1031
|
})
|
|
294
|
-
}), /* @__PURE__ */
|
|
1032
|
+
}), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
295
1033
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
296
1034
|
children: "Name"
|
|
297
|
-
}), /* @__PURE__ */
|
|
1035
|
+
}), /* @__PURE__ */ Z("p", {
|
|
298
1036
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
299
|
-
children:
|
|
1037
|
+
children: U
|
|
300
1038
|
})] })]
|
|
301
1039
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
1040
|
+
/* @__PURE__ */ Q("div", {
|
|
303
1041
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
1042
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
305
1043
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
306
|
-
children: /* @__PURE__ */
|
|
1044
|
+
children: /* @__PURE__ */ Z(X, {
|
|
307
1045
|
size: 16,
|
|
308
1046
|
className: "text-accent-indigo"
|
|
309
1047
|
})
|
|
310
|
-
}), /* @__PURE__ */
|
|
1048
|
+
}), /* @__PURE__ */ Q("div", {
|
|
311
1049
|
className: "flex-1 min-w-0",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
1050
|
+
children: [/* @__PURE__ */ Z("p", {
|
|
313
1051
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
314
1052
|
children: "Email"
|
|
315
|
-
}), /* @__PURE__ */
|
|
1053
|
+
}), /* @__PURE__ */ Q("div", {
|
|
316
1054
|
className: "flex items-center gap-1.5",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
318
|
-
href: `mailto:${
|
|
1055
|
+
children: [/* @__PURE__ */ Z("a", {
|
|
1056
|
+
href: `mailto:${T.email}`,
|
|
319
1057
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate",
|
|
320
|
-
children:
|
|
321
|
-
}), /* @__PURE__ */
|
|
1058
|
+
children: T.email
|
|
1059
|
+
}), /* @__PURE__ */ Z("button", {
|
|
322
1060
|
type: "button",
|
|
323
|
-
onClick:
|
|
1061
|
+
onClick: O,
|
|
324
1062
|
className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
|
|
325
1063
|
title: "Copy email",
|
|
326
|
-
children:
|
|
1064
|
+
children: o ? /* @__PURE__ */ Z(z, {
|
|
327
1065
|
size: 12,
|
|
328
1066
|
className: "text-status-success-text"
|
|
329
|
-
}) : /* @__PURE__ */
|
|
1067
|
+
}) : /* @__PURE__ */ Z(V, {
|
|
330
1068
|
size: 12,
|
|
331
1069
|
className: "text-[var(--color-text-secondary)]"
|
|
332
1070
|
})
|
|
@@ -334,175 +1072,176 @@ function O() {
|
|
|
334
1072
|
})]
|
|
335
1073
|
})]
|
|
336
1074
|
}),
|
|
337
|
-
|
|
1075
|
+
T.phone && /* @__PURE__ */ Q("div", {
|
|
338
1076
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
339
|
-
children: [/* @__PURE__ */
|
|
1077
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
340
1078
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
341
|
-
children: /* @__PURE__ */
|
|
1079
|
+
children: /* @__PURE__ */ Z(pe, {
|
|
342
1080
|
size: 16,
|
|
343
1081
|
className: "text-status-success-text"
|
|
344
1082
|
})
|
|
345
|
-
}), /* @__PURE__ */
|
|
1083
|
+
}), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
346
1084
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
347
1085
|
children: "Phone"
|
|
348
|
-
}), /* @__PURE__ */
|
|
349
|
-
href: `tel:${
|
|
1086
|
+
}), /* @__PURE__ */ Z("a", {
|
|
1087
|
+
href: `tel:${T.phone}`,
|
|
350
1088
|
className: "text-sm font-semibold text-[var(--color-text-primary)] hover:underline",
|
|
351
|
-
children:
|
|
1089
|
+
children: T.phone
|
|
352
1090
|
})] })]
|
|
353
1091
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ Q("div", {
|
|
355
1093
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
356
|
-
children: [/* @__PURE__ */
|
|
1094
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
357
1095
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
|
|
358
|
-
children: /* @__PURE__ */
|
|
1096
|
+
children: /* @__PURE__ */ Z(I, {
|
|
359
1097
|
size: 16,
|
|
360
1098
|
className: "text-accent-blue"
|
|
361
1099
|
})
|
|
362
|
-
}), /* @__PURE__ */
|
|
1100
|
+
}), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
363
1101
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
364
1102
|
children: "Position"
|
|
365
|
-
}), /* @__PURE__ */
|
|
1103
|
+
}), /* @__PURE__ */ Z("p", {
|
|
366
1104
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
367
|
-
children:
|
|
1105
|
+
children: T.position
|
|
368
1106
|
})] })]
|
|
369
1107
|
}),
|
|
370
|
-
|
|
1108
|
+
T.department && /* @__PURE__ */ Q("div", {
|
|
371
1109
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
372
|
-
children: [/* @__PURE__ */
|
|
1110
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
373
1111
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
374
|
-
children: /* @__PURE__ */
|
|
1112
|
+
children: /* @__PURE__ */ Z(L, {
|
|
375
1113
|
size: 16,
|
|
376
1114
|
className: "text-accent-purple"
|
|
377
1115
|
})
|
|
378
|
-
}), /* @__PURE__ */
|
|
1116
|
+
}), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
379
1117
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
380
1118
|
children: "Department"
|
|
381
|
-
}), /* @__PURE__ */
|
|
1119
|
+
}), /* @__PURE__ */ Z("p", {
|
|
382
1120
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
383
|
-
children:
|
|
1121
|
+
children: T.department
|
|
384
1122
|
})] })]
|
|
385
1123
|
}),
|
|
386
|
-
|
|
1124
|
+
T.linkedinUrl && /* @__PURE__ */ Q("div", {
|
|
387
1125
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
1126
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
389
1127
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
390
|
-
children: /* @__PURE__ */
|
|
1128
|
+
children: /* @__PURE__ */ Z(ue, {
|
|
391
1129
|
size: 16,
|
|
392
1130
|
className: "text-accent-blue"
|
|
393
1131
|
})
|
|
394
|
-
}), /* @__PURE__ */
|
|
1132
|
+
}), /* @__PURE__ */ Q("div", {
|
|
395
1133
|
className: "flex-1 min-w-0",
|
|
396
|
-
children: [/* @__PURE__ */
|
|
1134
|
+
children: [/* @__PURE__ */ Z("p", {
|
|
397
1135
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
398
1136
|
children: "LinkedIn"
|
|
399
|
-
}),
|
|
400
|
-
href:
|
|
1137
|
+
}), q ? /* @__PURE__ */ Z("a", {
|
|
1138
|
+
href: q,
|
|
401
1139
|
target: "_blank",
|
|
402
1140
|
rel: "noopener noreferrer",
|
|
403
1141
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
404
|
-
children:
|
|
405
|
-
}) : /* @__PURE__ */
|
|
1142
|
+
children: T.linkedinUrl
|
|
1143
|
+
}) : /* @__PURE__ */ Z("span", {
|
|
406
1144
|
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
407
|
-
children:
|
|
1145
|
+
children: T.linkedinUrl
|
|
408
1146
|
})]
|
|
409
1147
|
})]
|
|
410
1148
|
}),
|
|
411
|
-
|
|
1149
|
+
T.portfolioUrl && /* @__PURE__ */ Q("div", {
|
|
412
1150
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
413
|
-
children: [/* @__PURE__ */
|
|
1151
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
414
1152
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
415
|
-
children: /* @__PURE__ */
|
|
1153
|
+
children: /* @__PURE__ */ Z(J, {
|
|
416
1154
|
size: 16,
|
|
417
1155
|
className: "text-accent-indigo"
|
|
418
1156
|
})
|
|
419
|
-
}), /* @__PURE__ */
|
|
1157
|
+
}), /* @__PURE__ */ Q("div", {
|
|
420
1158
|
className: "flex-1 min-w-0",
|
|
421
|
-
children: [/* @__PURE__ */
|
|
1159
|
+
children: [/* @__PURE__ */ Z("p", {
|
|
422
1160
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
423
1161
|
children: "Portfolio"
|
|
424
|
-
}),
|
|
425
|
-
href:
|
|
1162
|
+
}), de ? /* @__PURE__ */ Z("a", {
|
|
1163
|
+
href: de,
|
|
426
1164
|
target: "_blank",
|
|
427
1165
|
rel: "noopener noreferrer",
|
|
428
1166
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
429
|
-
children:
|
|
430
|
-
}) : /* @__PURE__ */
|
|
1167
|
+
children: T.portfolioUrl
|
|
1168
|
+
}) : /* @__PURE__ */ Z("span", {
|
|
431
1169
|
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
432
|
-
children:
|
|
1170
|
+
children: T.portfolioUrl
|
|
433
1171
|
})]
|
|
434
1172
|
})]
|
|
435
1173
|
}),
|
|
436
|
-
|
|
1174
|
+
T.productId && m && /* @__PURE__ */ Q("div", {
|
|
437
1175
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
1176
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
439
1177
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
440
|
-
children: /* @__PURE__ */
|
|
1178
|
+
children: /* @__PURE__ */ Z(fe, {
|
|
441
1179
|
size: 16,
|
|
442
1180
|
className: "text-accent-purple"
|
|
443
1181
|
})
|
|
444
|
-
}), /* @__PURE__ */
|
|
1182
|
+
}), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
445
1183
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
446
1184
|
children: "Product"
|
|
447
|
-
}), /* @__PURE__ */
|
|
1185
|
+
}), /* @__PURE__ */ Z("p", {
|
|
448
1186
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
449
|
-
children:
|
|
1187
|
+
children: m
|
|
450
1188
|
})] })]
|
|
451
1189
|
}),
|
|
452
|
-
/* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ Q("div", {
|
|
453
1191
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
1192
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
455
1193
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
456
|
-
children: /* @__PURE__ */
|
|
1194
|
+
children: /* @__PURE__ */ Z(K, {
|
|
457
1195
|
size: 16,
|
|
458
1196
|
className: "text-status-success-text"
|
|
459
1197
|
})
|
|
460
|
-
}), /* @__PURE__ */
|
|
1198
|
+
}), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
461
1199
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
462
1200
|
children: "Source"
|
|
463
|
-
}), /* @__PURE__ */
|
|
1201
|
+
}), /* @__PURE__ */ Z("p", {
|
|
464
1202
|
className: "text-sm font-semibold text-[var(--color-text-primary)] capitalize",
|
|
465
|
-
children:
|
|
1203
|
+
children: T.source.toLowerCase()
|
|
466
1204
|
})] })]
|
|
467
1205
|
})
|
|
468
1206
|
]
|
|
469
1207
|
})
|
|
470
1208
|
})]
|
|
471
1209
|
}),
|
|
472
|
-
|
|
1210
|
+
e && /* @__PURE__ */ Z(ze, { applicationId: e }),
|
|
1211
|
+
T.coverLetter && /* @__PURE__ */ Q("div", {
|
|
473
1212
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
474
|
-
children: [/* @__PURE__ */
|
|
1213
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
475
1214
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
476
|
-
children: /* @__PURE__ */
|
|
1215
|
+
children: /* @__PURE__ */ Q("h2", {
|
|
477
1216
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
478
|
-
children: [/* @__PURE__ */
|
|
1217
|
+
children: [/* @__PURE__ */ Z(G, { size: 14 }), "Cover Letter"]
|
|
479
1218
|
})
|
|
480
|
-
}), /* @__PURE__ */
|
|
1219
|
+
}), /* @__PURE__ */ Z("div", {
|
|
481
1220
|
className: "p-5",
|
|
482
|
-
children: /* @__PURE__ */
|
|
1221
|
+
children: /* @__PURE__ */ Z("p", {
|
|
483
1222
|
className: "text-sm text-[var(--color-text-primary)] leading-relaxed whitespace-pre-wrap",
|
|
484
|
-
children:
|
|
1223
|
+
children: T.coverLetter
|
|
485
1224
|
})
|
|
486
1225
|
})]
|
|
487
1226
|
}),
|
|
488
|
-
|
|
1227
|
+
T.metadata && Object.keys(T.metadata).length > 0 && /* @__PURE__ */ Q("div", {
|
|
489
1228
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
490
|
-
children: [/* @__PURE__ */
|
|
1229
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
491
1230
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
492
|
-
children: /* @__PURE__ */
|
|
1231
|
+
children: /* @__PURE__ */ Q("h2", {
|
|
493
1232
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
494
|
-
children: [/* @__PURE__ */
|
|
1233
|
+
children: [/* @__PURE__ */ Z(le, { size: 14 }), "Additional Data"]
|
|
495
1234
|
})
|
|
496
|
-
}), /* @__PURE__ */
|
|
1235
|
+
}), /* @__PURE__ */ Z("div", {
|
|
497
1236
|
className: "p-5",
|
|
498
|
-
children: /* @__PURE__ */
|
|
1237
|
+
children: /* @__PURE__ */ Z("div", {
|
|
499
1238
|
className: "space-y-2.5",
|
|
500
|
-
children: Object.entries(
|
|
1239
|
+
children: Object.entries(T.metadata).map(([e, t]) => /* @__PURE__ */ Q("div", {
|
|
501
1240
|
className: "flex items-start gap-3 py-1.5 border-b border-[var(--color-border-default)] last:border-0",
|
|
502
|
-
children: [/* @__PURE__ */
|
|
1241
|
+
children: [/* @__PURE__ */ Z("span", {
|
|
503
1242
|
className: "text-xs font-medium text-[var(--color-text-secondary)] min-w-[120px] uppercase tracking-wider",
|
|
504
1243
|
children: e
|
|
505
|
-
}), /* @__PURE__ */
|
|
1244
|
+
}), /* @__PURE__ */ Z("span", {
|
|
506
1245
|
className: "text-xs text-[var(--color-text-primary)] font-mono break-all",
|
|
507
1246
|
children: typeof t == "object" && t ? JSON.stringify(t) : String(t)
|
|
508
1247
|
})]
|
|
@@ -511,191 +1250,191 @@ function O() {
|
|
|
511
1250
|
})]
|
|
512
1251
|
})
|
|
513
1252
|
]
|
|
514
|
-
}), /* @__PURE__ */
|
|
1253
|
+
}), /* @__PURE__ */ Q("div", {
|
|
515
1254
|
className: "space-y-5",
|
|
516
1255
|
children: [
|
|
517
|
-
/* @__PURE__ */
|
|
1256
|
+
/* @__PURE__ */ Q("div", {
|
|
518
1257
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
519
|
-
children: [/* @__PURE__ */
|
|
1258
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
520
1259
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
521
|
-
children: /* @__PURE__ */
|
|
1260
|
+
children: /* @__PURE__ */ Q("h2", {
|
|
522
1261
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
523
|
-
children: [/* @__PURE__ */
|
|
1262
|
+
children: [/* @__PURE__ */ Z(G, { size: 14 }), "Resume"]
|
|
524
1263
|
})
|
|
525
|
-
}), /* @__PURE__ */
|
|
1264
|
+
}), /* @__PURE__ */ Z("div", {
|
|
526
1265
|
className: "p-5",
|
|
527
|
-
children:
|
|
528
|
-
/* @__PURE__ */
|
|
1266
|
+
children: T.resumeFileName ? /* @__PURE__ */ Q(Ee, { children: [
|
|
1267
|
+
/* @__PURE__ */ Q("div", {
|
|
529
1268
|
className: "flex items-center gap-3 mb-3",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
1269
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
531
1270
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center flex-shrink-0",
|
|
532
|
-
children: /* @__PURE__ */
|
|
1271
|
+
children: /* @__PURE__ */ Z(G, {
|
|
533
1272
|
size: 16,
|
|
534
1273
|
className: "text-accent-blue"
|
|
535
1274
|
})
|
|
536
|
-
}), /* @__PURE__ */
|
|
1275
|
+
}), /* @__PURE__ */ Q("div", {
|
|
537
1276
|
className: "min-w-0",
|
|
538
|
-
children: [/* @__PURE__ */
|
|
1277
|
+
children: [/* @__PURE__ */ Z("p", {
|
|
539
1278
|
className: "text-sm font-medium text-[var(--color-text-primary)] truncate",
|
|
540
|
-
children:
|
|
541
|
-
}),
|
|
1279
|
+
children: T.resumeFileName
|
|
1280
|
+
}), W ? /* @__PURE__ */ Z("p", {
|
|
542
1281
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
543
|
-
children:
|
|
1282
|
+
children: W
|
|
544
1283
|
}) : null]
|
|
545
1284
|
})]
|
|
546
1285
|
}),
|
|
547
|
-
/* @__PURE__ */
|
|
1286
|
+
/* @__PURE__ */ Q("button", {
|
|
548
1287
|
type: "button",
|
|
549
|
-
onClick:
|
|
550
|
-
disabled:
|
|
1288
|
+
onClick: D,
|
|
1289
|
+
disabled: S,
|
|
551
1290
|
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",
|
|
552
|
-
children: [
|
|
1291
|
+
children: [S ? /* @__PURE__ */ Z(Y, {
|
|
553
1292
|
size: 15,
|
|
554
1293
|
className: "animate-spin"
|
|
555
|
-
}) : /* @__PURE__ */
|
|
1294
|
+
}) : /* @__PURE__ */ Z(H, { size: 15 }), "Download Resume"]
|
|
556
1295
|
}),
|
|
557
|
-
|
|
1296
|
+
c && /* @__PURE__ */ Z("p", {
|
|
558
1297
|
className: "mt-2 text-xs text-status-error-text",
|
|
559
1298
|
children: "Could not generate a download link. Please try again."
|
|
560
1299
|
})
|
|
561
|
-
] }) : /* @__PURE__ */
|
|
1300
|
+
] }) : /* @__PURE__ */ Z("p", {
|
|
562
1301
|
className: "text-sm text-[var(--color-text-secondary)]",
|
|
563
1302
|
children: "No resume on file."
|
|
564
1303
|
})
|
|
565
1304
|
})]
|
|
566
1305
|
}),
|
|
567
|
-
/* @__PURE__ */
|
|
1306
|
+
/* @__PURE__ */ Q("div", {
|
|
568
1307
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
569
|
-
children: [/* @__PURE__ */
|
|
1308
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
570
1309
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
571
|
-
children: /* @__PURE__ */
|
|
1310
|
+
children: /* @__PURE__ */ Q("h2", {
|
|
572
1311
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
573
|
-
children: [/* @__PURE__ */
|
|
1312
|
+
children: [/* @__PURE__ */ Z(R, { size: 14 }), "Timeline"]
|
|
574
1313
|
})
|
|
575
|
-
}), /* @__PURE__ */
|
|
1314
|
+
}), /* @__PURE__ */ Q("div", {
|
|
576
1315
|
className: "p-5 space-y-4",
|
|
577
|
-
children: [/* @__PURE__ */
|
|
1316
|
+
children: [/* @__PURE__ */ Q("div", {
|
|
578
1317
|
className: "flex items-start gap-3",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
1318
|
+
children: [/* @__PURE__ */ Z("div", { className: "size-2 rounded-full bg-accent-blue mt-1.5 flex-shrink-0" }), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
580
1319
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
581
1320
|
children: "Applied"
|
|
582
|
-
}), /* @__PURE__ */
|
|
1321
|
+
}), /* @__PURE__ */ Z("p", {
|
|
583
1322
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
584
|
-
children:
|
|
1323
|
+
children: Ne(T.createdAt)
|
|
585
1324
|
})] })]
|
|
586
|
-
}),
|
|
1325
|
+
}), T.updatedAt !== T.createdAt && /* @__PURE__ */ Q("div", {
|
|
587
1326
|
className: "flex items-start gap-3",
|
|
588
|
-
children: [/* @__PURE__ */
|
|
1327
|
+
children: [/* @__PURE__ */ Z("div", { className: "size-2 rounded-full bg-status-warning-bg mt-1.5 flex-shrink-0" }), /* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("p", {
|
|
589
1328
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
590
1329
|
children: "Last Updated"
|
|
591
|
-
}), /* @__PURE__ */
|
|
1330
|
+
}), /* @__PURE__ */ Z("p", {
|
|
592
1331
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
593
|
-
children:
|
|
1332
|
+
children: Ne(T.updatedAt)
|
|
594
1333
|
})] })]
|
|
595
1334
|
})]
|
|
596
1335
|
})]
|
|
597
1336
|
}),
|
|
598
|
-
/* @__PURE__ */
|
|
1337
|
+
/* @__PURE__ */ Q(De, {
|
|
599
1338
|
"data-tour": "support-application-reply",
|
|
600
1339
|
className: "overflow-hidden p-0",
|
|
601
|
-
children: [/* @__PURE__ */
|
|
1340
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
602
1341
|
className: "px-5 py-3.5 border-b border-border-seam",
|
|
603
|
-
children: /* @__PURE__ */
|
|
1342
|
+
children: /* @__PURE__ */ Q("h2", {
|
|
604
1343
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
|
|
605
|
-
children: [/* @__PURE__ */
|
|
1344
|
+
children: [/* @__PURE__ */ Z(he, { size: 12 }), "Reply"]
|
|
606
1345
|
})
|
|
607
|
-
}), /* @__PURE__ */
|
|
1346
|
+
}), /* @__PURE__ */ Q("div", {
|
|
608
1347
|
className: "p-5",
|
|
609
1348
|
children: [
|
|
610
|
-
|
|
1349
|
+
f && /* @__PURE__ */ Q("div", {
|
|
611
1350
|
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",
|
|
612
|
-
children: [/* @__PURE__ */
|
|
1351
|
+
children: [/* @__PURE__ */ Z(z, { size: 14 }), "Reply sent to the applicant!"]
|
|
613
1352
|
}),
|
|
614
|
-
/* @__PURE__ */
|
|
1353
|
+
/* @__PURE__ */ Z("textarea", {
|
|
615
1354
|
"aria-label": "Reply message",
|
|
616
|
-
value:
|
|
617
|
-
onChange: (e) =>
|
|
1355
|
+
value: u,
|
|
1356
|
+
onChange: (e) => d(e.target.value),
|
|
618
1357
|
placeholder: "Type your reply… This will be sent as a branded email to the applicant.",
|
|
619
1358
|
rows: 4,
|
|
620
|
-
disabled:
|
|
1359
|
+
disabled: C,
|
|
621
1360
|
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"
|
|
622
1361
|
}),
|
|
623
|
-
/* @__PURE__ */
|
|
1362
|
+
/* @__PURE__ */ Q("button", {
|
|
624
1363
|
type: "button",
|
|
625
|
-
onClick:
|
|
626
|
-
disabled:
|
|
1364
|
+
onClick: ae,
|
|
1365
|
+
disabled: C || !u.trim(),
|
|
627
1366
|
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",
|
|
628
|
-
children: [
|
|
1367
|
+
children: [C ? /* @__PURE__ */ Z(Y, {
|
|
629
1368
|
size: 15,
|
|
630
1369
|
className: "animate-spin"
|
|
631
|
-
}) : /* @__PURE__ */
|
|
1370
|
+
}) : /* @__PURE__ */ Z(he, { size: 15 }), "Send Reply"]
|
|
632
1371
|
})
|
|
633
1372
|
]
|
|
634
1373
|
})]
|
|
635
1374
|
}),
|
|
636
|
-
/* @__PURE__ */
|
|
1375
|
+
/* @__PURE__ */ Q("div", {
|
|
637
1376
|
"data-tour": "support-application-actions",
|
|
638
1377
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
639
|
-
children: [/* @__PURE__ */
|
|
1378
|
+
children: [/* @__PURE__ */ Z("div", {
|
|
640
1379
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
641
|
-
children: /* @__PURE__ */
|
|
1380
|
+
children: /* @__PURE__ */ Z("h2", {
|
|
642
1381
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
643
1382
|
children: "Actions"
|
|
644
1383
|
})
|
|
645
|
-
}), /* @__PURE__ */
|
|
1384
|
+
}), /* @__PURE__ */ Q("div", {
|
|
646
1385
|
className: "p-5 space-y-4",
|
|
647
|
-
children: [/* @__PURE__ */
|
|
1386
|
+
children: [/* @__PURE__ */ Q("div", { children: [/* @__PURE__ */ Z("label", {
|
|
648
1387
|
className: "block text-xs font-medium text-[var(--color-text-secondary)] mb-1.5",
|
|
649
1388
|
htmlFor: "jobapplicationdetailpage-status-0",
|
|
650
1389
|
children: "Status"
|
|
651
|
-
}), /* @__PURE__ */
|
|
1390
|
+
}), /* @__PURE__ */ Q("select", {
|
|
652
1391
|
id: "jobapplicationdetailpage-status-0",
|
|
653
|
-
value:
|
|
654
|
-
onChange: (e) =>
|
|
655
|
-
disabled:
|
|
1392
|
+
value: T.status,
|
|
1393
|
+
onChange: (e) => E(e.target.value),
|
|
1394
|
+
disabled: ne,
|
|
656
1395
|
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",
|
|
657
1396
|
children: [
|
|
658
|
-
/* @__PURE__ */
|
|
1397
|
+
/* @__PURE__ */ Z("option", {
|
|
659
1398
|
value: "NEW",
|
|
660
1399
|
children: "New"
|
|
661
1400
|
}),
|
|
662
|
-
/* @__PURE__ */
|
|
1401
|
+
/* @__PURE__ */ Z("option", {
|
|
663
1402
|
value: "SCREENING",
|
|
664
1403
|
children: "Screening"
|
|
665
1404
|
}),
|
|
666
|
-
/* @__PURE__ */
|
|
1405
|
+
/* @__PURE__ */ Z("option", {
|
|
667
1406
|
value: "SHORTLISTED",
|
|
668
1407
|
children: "Shortlisted"
|
|
669
1408
|
}),
|
|
670
|
-
/* @__PURE__ */
|
|
1409
|
+
/* @__PURE__ */ Z("option", {
|
|
671
1410
|
value: "INTERVIEW",
|
|
672
1411
|
children: "Interview"
|
|
673
1412
|
}),
|
|
674
|
-
/* @__PURE__ */
|
|
1413
|
+
/* @__PURE__ */ Z("option", {
|
|
675
1414
|
value: "HIRED",
|
|
676
1415
|
children: "Hired"
|
|
677
1416
|
}),
|
|
678
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ Z("option", {
|
|
679
1418
|
value: "REJECTED",
|
|
680
1419
|
children: "Rejected"
|
|
681
1420
|
}),
|
|
682
|
-
/* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ Z("option", {
|
|
683
1422
|
value: "ARCHIVED",
|
|
684
1423
|
children: "Archived"
|
|
685
1424
|
})
|
|
686
1425
|
]
|
|
687
|
-
})] }), /* @__PURE__ */
|
|
1426
|
+
})] }), /* @__PURE__ */ Q("div", {
|
|
688
1427
|
className: "space-y-2",
|
|
689
|
-
children: [/* @__PURE__ */
|
|
690
|
-
href: `mailto:${
|
|
1428
|
+
children: [/* @__PURE__ */ Q("a", {
|
|
1429
|
+
href: `mailto:${T.email}?subject=${encodeURIComponent(`Your application for ${T.position}`)}`,
|
|
691
1430
|
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",
|
|
692
|
-
children: [/* @__PURE__ */
|
|
693
|
-
}),
|
|
1431
|
+
children: [/* @__PURE__ */ Z(X, { size: 15 }), "Email Applicant"]
|
|
1432
|
+
}), T.status !== "ARCHIVED" && /* @__PURE__ */ Q("button", {
|
|
694
1433
|
type: "button",
|
|
695
|
-
onClick: () =>
|
|
696
|
-
disabled:
|
|
1434
|
+
onClick: () => E("ARCHIVED"),
|
|
1435
|
+
disabled: ne,
|
|
697
1436
|
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",
|
|
698
|
-
children: [/* @__PURE__ */
|
|
1437
|
+
children: [/* @__PURE__ */ Z(P, { size: 15 }), "Archive"]
|
|
699
1438
|
})]
|
|
700
1439
|
})]
|
|
701
1440
|
})]
|
|
@@ -707,6 +1446,6 @@ function O() {
|
|
|
707
1446
|
});
|
|
708
1447
|
}
|
|
709
1448
|
//#endregion
|
|
710
|
-
export {
|
|
1449
|
+
export { Be as JobApplicationDetailPage };
|
|
711
1450
|
|
|
712
1451
|
//# sourceMappingURL=JobApplicationDetailPage.js.map
|