@burdenoff/microfe-support 2026.903.1 → 2026.903.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,41 +1,41 @@
|
|
|
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 te, DialogDescription as
|
|
2
|
-
import { useAssignInterviewersToRoundMutation as
|
|
3
|
-
import { InterviewRoundStatus as
|
|
4
|
-
import { roundStatusConfig as
|
|
5
|
-
import
|
|
6
|
-
import { nativeCopyText as
|
|
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 te, DialogDescription as ne, DialogFooter as o, DialogHeader as re, DialogTitle as ie, Input as ae, Label as s, Select as c, SelectContent as l, SelectItem as u, SelectTrigger as d, SelectValue as f, Textarea as p } from "../components/ui.js";
|
|
2
|
+
import { useAssignInterviewersToRoundMutation as oe, useCreateInterviewRoundMutation as se, useGetInterviewersQuery as m, useGetJobApplicationInterviewRoundsQuery as ce, useGetJobApplicationQuery as h, useGetJobApplicationResumePreviewUrlLazyQuery as g, useGetJobApplicationResumeUrlLazyQuery as le, useGetJobPostingQuery as _, useRandomizeAndSendAssignmentMutation as v, useRecordAssignmentSubmissionMutation as ue, useRemoveInterviewerFromRoundMutation as y, useReplyToJobApplicationMutation as b, useSendRoundMessageToCandidateMutation as de, useSubmitInterviewFeedbackMutation as fe, useUpdateInterviewFeedbackMutation as pe, useUpdateInterviewRoundMutation as me, useUpdateJobApplicationStatusMutation as x } from "../../generated/global-operations.js";
|
|
3
|
+
import { InterviewRoundStatus as S, InterviewRoundType as C, InterviewVerdict as he, InterviewerRole as w } from "../../generated/global-types.js";
|
|
4
|
+
import { roundStatusConfig as ge, roundStatusOrder as T, statusLabels as _e, statusOrder as ve } from "../constants/pipeline.js";
|
|
5
|
+
import E from "../../node_modules/dompurify/dist/purify.es.js";
|
|
6
|
+
import { nativeCopyText as ye, nativeImpact as D } from "../../utils/nativeBridge.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { RichTextEditor as
|
|
8
|
+
import { RichTextEditor as be } from "../components/careers/RichTextEditor.js";
|
|
9
9
|
import { useEffect as O, useState as k } from "react";
|
|
10
|
-
import { AlertCircle as
|
|
11
|
-
import { useLocation as
|
|
12
|
-
import { graphqlFetch as
|
|
13
|
-
import { Fragment as
|
|
14
|
-
import { EmphasisPanel as
|
|
10
|
+
import { AlertCircle as xe, Archive as A, ArrowLeft as j, Briefcase as M, Building2 as N, Calendar as P, CheckCircle as F, Clock as I, Copy as L, Download as Se, Edit3 as R, ExternalLink as z, Eye as B, FileText as V, Globe as H, Inbox as U, Link2 as W, Linkedin as Ce, Loader2 as G, Mail as K, MessageSquare as we, Package as Te, Phone as Ee, Plus as De, Send as Oe, Star as ke, User as q, UserPlus as Ae, UserX as je, Users as J, XCircle as Me } from "lucide-react";
|
|
11
|
+
import { useLocation as Ne, useNavigate as Pe, useParams as Fe } from "react-router";
|
|
12
|
+
import { graphqlFetch as Ie } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
13
|
+
import { Fragment as Le, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
14
|
+
import { EmphasisPanel as Re, IllustratedEmptyState as ze, NextSteps as Be, PagePurpose as Ve } from "@burdenoff/fe-libs/ui";
|
|
15
15
|
//#region src/support/pages/JobApplicationDetailPage.tsx
|
|
16
|
-
var Z = "__custom__",
|
|
16
|
+
var Z = "__custom__", He = {
|
|
17
17
|
NEW: {
|
|
18
18
|
label: "New",
|
|
19
19
|
color: "text-accent-blue",
|
|
20
|
-
icon:
|
|
20
|
+
icon: U,
|
|
21
21
|
bg: "bg-status-info-bg-subtle border-border-subtle"
|
|
22
22
|
},
|
|
23
23
|
SCREENING: {
|
|
24
24
|
label: "Screening",
|
|
25
25
|
color: "text-status-warning-text",
|
|
26
|
-
icon:
|
|
26
|
+
icon: B,
|
|
27
27
|
bg: "bg-status-warning-bg-subtle border-border-subtle"
|
|
28
28
|
},
|
|
29
29
|
SHORTLISTED: {
|
|
30
30
|
label: "Shortlisted",
|
|
31
31
|
color: "text-accent-purple",
|
|
32
|
-
icon:
|
|
32
|
+
icon: ke,
|
|
33
33
|
bg: "bg-accent-purple-subtle border-border-subtle"
|
|
34
34
|
},
|
|
35
35
|
INTERVIEW: {
|
|
36
36
|
label: "Interview",
|
|
37
37
|
color: "text-accent-blue",
|
|
38
|
-
icon:
|
|
38
|
+
icon: J,
|
|
39
39
|
bg: "bg-accent-blue-subtle border-border-subtle"
|
|
40
40
|
},
|
|
41
41
|
HIRED: {
|
|
@@ -47,13 +47,13 @@ var Z = "__custom__", Be = {
|
|
|
47
47
|
REJECTED: {
|
|
48
48
|
label: "Rejected",
|
|
49
49
|
color: "text-status-error-text",
|
|
50
|
-
icon:
|
|
50
|
+
icon: Me,
|
|
51
51
|
bg: "bg-status-error-bg-subtle border-border-subtle"
|
|
52
52
|
},
|
|
53
53
|
ARCHIVED: {
|
|
54
54
|
label: "Archived",
|
|
55
55
|
color: "text-text-secondary",
|
|
56
|
-
icon:
|
|
56
|
+
icon: A,
|
|
57
57
|
bg: "bg-bg-canvas border-border-subtle"
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -67,7 +67,7 @@ function Q(e) {
|
|
|
67
67
|
minute: "2-digit"
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Ue(e) {
|
|
71
71
|
let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 6e4);
|
|
72
72
|
if (n < 60) return `${n}m ago`;
|
|
73
73
|
let r = Math.floor(n / 60);
|
|
@@ -75,13 +75,13 @@ function Ve(e) {
|
|
|
75
75
|
let i = Math.floor(r / 24);
|
|
76
76
|
return i < 30 ? `${i}d ago` : Q(e);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function We(e) {
|
|
79
79
|
return !e || e <= 0 ? null : e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1048576).toFixed(1)} MB`;
|
|
80
80
|
}
|
|
81
81
|
function $(e) {
|
|
82
82
|
return e.replace(/_/g, " ").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ge(e) {
|
|
85
85
|
switch (e) {
|
|
86
86
|
case "STRONG_YES":
|
|
87
87
|
case "YES": return "bg-status-success-bg-subtle text-status-success-text";
|
|
@@ -91,7 +91,7 @@ function Ue(e) {
|
|
|
91
91
|
default: return "bg-bg-sunken text-text-secondary";
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Ke(e) {
|
|
95
95
|
if (!e) return null;
|
|
96
96
|
try {
|
|
97
97
|
let t = new URL(e);
|
|
@@ -100,47 +100,47 @@ function We(e) {
|
|
|
100
100
|
return null;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
let [ce, h] = k(!1), [g, le] = k(null), [_, y] = k(""), [b, de] = k(""), [fe, pe] = k(""), [
|
|
105
|
-
le(null), y(""), de(""), pe(""),
|
|
106
|
-
},
|
|
107
|
-
|
|
103
|
+
function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading: o, onAssign: re, onRemoveInterviewer: ie, onSendMessage: oe, onSubmitFeedback: se, onUpdateFeedback: m }) {
|
|
104
|
+
let [ce, h] = k(!1), [g, le] = k(null), [_, y] = k(""), [b, de] = k(""), [fe, pe] = k(""), [x, S] = k(""), [w, _e] = k(a.submittedRepoUrl ?? ""), [ve, ye] = k(a.submittedVideoUrl ?? ""), [D, be] = k(a.submittedNotes ?? ""), [O, A] = k(null), [j, M] = k(a.notes ?? ""), [N, F] = k(!1), [I, { loading: L }] = v({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [Se, { loading: z }] = ue({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [B, { loading: H }] = me({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplications"] }), U = a.roundType === C.TakeHome || !!a.roundConfig?.isAssignmentRound, W = !!a.assignment, Ce = !!(a.submittedRepoUrl || a.submittedVideoUrl || a.submittedAt), K = W || Ce, Te = a.emailLogs.find((e) => e.emailType === "ASSIGNMENT")?.sentAt, Ee = ge[a.status] ?? ge.SCHEDULED, q = () => {
|
|
105
|
+
le(null), y(""), de(""), pe(""), S("");
|
|
106
|
+
}, J = async () => {
|
|
107
|
+
A(null);
|
|
108
108
|
try {
|
|
109
|
-
await
|
|
109
|
+
await I({ variables: { input: {
|
|
110
110
|
applicationId: te,
|
|
111
111
|
roundId: a.id
|
|
112
112
|
} } });
|
|
113
113
|
} catch (e) {
|
|
114
|
-
console.error("Failed to randomize and send assignment:", e),
|
|
114
|
+
console.error("Failed to randomize and send assignment:", e), A("Failed to randomize and send assignment.");
|
|
115
115
|
}
|
|
116
116
|
}, Me = async () => {
|
|
117
|
-
|
|
118
|
-
let e =
|
|
119
|
-
if (e && !
|
|
120
|
-
|
|
117
|
+
A(null);
|
|
118
|
+
let e = w.trim() || void 0, t = ve.trim() || void 0, n = D.trim() || void 0;
|
|
119
|
+
if (e && !Ke(e)) {
|
|
120
|
+
A("GitHub repo URL must start with http:// or https://.");
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
if (t && !
|
|
124
|
-
|
|
123
|
+
if (t && !Ke(t)) {
|
|
124
|
+
A("Jam video URL must start with http:// or https://.");
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
127
|
if (!e && !t && !n) {
|
|
128
|
-
|
|
128
|
+
A("Please provide at least a repo URL, video URL, or notes.");
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
try {
|
|
132
|
-
await
|
|
132
|
+
await Se({ variables: { input: {
|
|
133
133
|
roundId: a.id,
|
|
134
134
|
repoUrl: e,
|
|
135
135
|
videoUrl: t,
|
|
136
136
|
notes: n
|
|
137
137
|
} } });
|
|
138
138
|
} catch (e) {
|
|
139
|
-
console.error("Failed to record assignment submission:", e),
|
|
139
|
+
console.error("Failed to record assignment submission:", e), A("Failed to record submission.");
|
|
140
140
|
}
|
|
141
141
|
}, Ne = async (e) => {
|
|
142
142
|
if (e !== a.status) try {
|
|
143
|
-
await
|
|
143
|
+
await B({ variables: {
|
|
144
144
|
id: a.id,
|
|
145
145
|
input: { status: e }
|
|
146
146
|
} });
|
|
@@ -149,17 +149,17 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
149
149
|
}
|
|
150
150
|
}, Pe = async () => {
|
|
151
151
|
try {
|
|
152
|
-
await
|
|
152
|
+
await B({ variables: {
|
|
153
153
|
id: a.id,
|
|
154
|
-
input: { notes:
|
|
155
|
-
} }),
|
|
154
|
+
input: { notes: j.trim() || null }
|
|
155
|
+
} }), F(!0), setTimeout(() => F(!1), 2e3);
|
|
156
156
|
} catch (e) {
|
|
157
157
|
console.error("Failed to save round notes:", e);
|
|
158
158
|
}
|
|
159
159
|
}, Fe = () => {
|
|
160
|
-
|
|
160
|
+
q(), h(!0);
|
|
161
161
|
}, Ie = (e) => {
|
|
162
|
-
le(e), y(e.interviewerId), de(e.rating?.toString() ?? ""), pe(e.verdict ?? ""),
|
|
162
|
+
le(e), y(e.interviewerId), de(e.rating?.toString() ?? ""), pe(e.verdict ?? ""), S(e.internalNotes ?? ""), h(!0);
|
|
163
163
|
};
|
|
164
164
|
return /* @__PURE__ */ X("div", {
|
|
165
165
|
className: "border border-border-default rounded-lg p-4 space-y-4",
|
|
@@ -182,11 +182,11 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
182
182
|
"aria-label": "Round status",
|
|
183
183
|
value: a.status,
|
|
184
184
|
onChange: (e) => Ne(e.target.value),
|
|
185
|
-
disabled:
|
|
186
|
-
className: `text-xs font-medium rounded-full pl-2 pr-1.5 py-0.5 border-0 focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 ${
|
|
185
|
+
disabled: H,
|
|
186
|
+
className: `text-xs font-medium rounded-full pl-2 pr-1.5 py-0.5 border-0 focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 ${Ee.className}`,
|
|
187
187
|
children: T.map((e) => /* @__PURE__ */ Y("option", {
|
|
188
188
|
value: e,
|
|
189
|
-
children:
|
|
189
|
+
children: ge[e].label
|
|
190
190
|
}, e))
|
|
191
191
|
})
|
|
192
192
|
]
|
|
@@ -198,13 +198,13 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
198
198
|
children: [/* @__PURE__ */ X(t, {
|
|
199
199
|
variant: "outline",
|
|
200
200
|
size: "sm",
|
|
201
|
-
onClick:
|
|
202
|
-
children: [/* @__PURE__ */ Y(
|
|
201
|
+
onClick: re,
|
|
202
|
+
children: [/* @__PURE__ */ Y(Ae, { size: 14 }), "Assign"]
|
|
203
203
|
}), /* @__PURE__ */ X(t, {
|
|
204
204
|
variant: "outline",
|
|
205
205
|
size: "sm",
|
|
206
|
-
onClick:
|
|
207
|
-
children: [/* @__PURE__ */ Y(
|
|
206
|
+
onClick: oe,
|
|
207
|
+
children: [/* @__PURE__ */ Y(we, { size: 14 }), "Message"]
|
|
208
208
|
})]
|
|
209
209
|
})]
|
|
210
210
|
}),
|
|
@@ -229,10 +229,10 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
229
229
|
}),
|
|
230
230
|
/* @__PURE__ */ Y("button", {
|
|
231
231
|
type: "button",
|
|
232
|
-
onClick: () =>
|
|
232
|
+
onClick: () => ie(a.id, t.interviewer.id),
|
|
233
233
|
className: "p-0.5 rounded-full hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
|
|
234
234
|
title: "Remove interviewer",
|
|
235
|
-
children: /* @__PURE__ */ Y(
|
|
235
|
+
children: /* @__PURE__ */ Y(je, { size: 12 })
|
|
236
236
|
})
|
|
237
237
|
]
|
|
238
238
|
}, t.id))
|
|
@@ -247,21 +247,21 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
247
247
|
}),
|
|
248
248
|
/* @__PURE__ */ Y("textarea", {
|
|
249
249
|
"aria-label": "Round internal notes",
|
|
250
|
-
value:
|
|
251
|
-
onChange: (e) =>
|
|
250
|
+
value: j,
|
|
251
|
+
onChange: (e) => M(e.target.value),
|
|
252
252
|
placeholder: "Remarks for later evaluation — not visible to the candidate.",
|
|
253
253
|
rows: 2,
|
|
254
|
-
disabled:
|
|
254
|
+
disabled: H,
|
|
255
255
|
className: "w-full px-3 py-2 bg-bg-surface border border-border-default rounded-lg text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 resize-none"
|
|
256
256
|
}),
|
|
257
|
-
|
|
257
|
+
j.trim() !== (a.notes ?? "") && /* @__PURE__ */ Y(t, {
|
|
258
258
|
variant: "outline",
|
|
259
259
|
size: "sm",
|
|
260
260
|
onClick: Pe,
|
|
261
|
-
disabled:
|
|
261
|
+
disabled: H,
|
|
262
262
|
children: "Save notes"
|
|
263
263
|
}),
|
|
264
|
-
|
|
264
|
+
N && /* @__PURE__ */ Y("p", {
|
|
265
265
|
className: "text-xs text-status-success-text",
|
|
266
266
|
children: "Saved."
|
|
267
267
|
})
|
|
@@ -284,27 +284,27 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
284
284
|
})
|
|
285
285
|
]
|
|
286
286
|
}),
|
|
287
|
-
|
|
287
|
+
U && /* @__PURE__ */ X(n, {
|
|
288
288
|
className: "border border-border-default bg-bg-surface",
|
|
289
289
|
children: [/* @__PURE__ */ Y(i, {
|
|
290
290
|
className: "pb-2",
|
|
291
291
|
children: /* @__PURE__ */ X(ee, {
|
|
292
292
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
293
|
-
children: [/* @__PURE__ */ Y(
|
|
293
|
+
children: [/* @__PURE__ */ Y(V, { size: 14 }), "Assignment"]
|
|
294
294
|
})
|
|
295
295
|
}), /* @__PURE__ */ X(r, {
|
|
296
296
|
className: "space-y-3",
|
|
297
|
-
children: [
|
|
297
|
+
children: [O && /* @__PURE__ */ X("div", {
|
|
298
298
|
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",
|
|
299
|
-
children: [/* @__PURE__ */ Y(
|
|
300
|
-
}), !
|
|
299
|
+
children: [/* @__PURE__ */ Y(xe, { size: 14 }), O]
|
|
300
|
+
}), !W && !Ce ? /* @__PURE__ */ X(t, {
|
|
301
301
|
size: "sm",
|
|
302
|
-
onClick:
|
|
303
|
-
disabled:
|
|
304
|
-
children: [
|
|
302
|
+
onClick: J,
|
|
303
|
+
disabled: L,
|
|
304
|
+
children: [L ? /* @__PURE__ */ Y(G, {
|
|
305
305
|
size: 14,
|
|
306
306
|
className: "animate-spin mr-1"
|
|
307
|
-
}) : /* @__PURE__ */ Y(
|
|
307
|
+
}) : /* @__PURE__ */ Y(Oe, { size: 14 }), "Randomize & Send Assignment"]
|
|
308
308
|
}) : /* @__PURE__ */ X("div", {
|
|
309
309
|
className: "space-y-4",
|
|
310
310
|
children: [a.assignment && /* @__PURE__ */ X("div", {
|
|
@@ -316,41 +316,41 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
316
316
|
}),
|
|
317
317
|
/* @__PURE__ */ Y("div", {
|
|
318
318
|
className: "support-richtext text-sm text-text-secondary",
|
|
319
|
-
dangerouslySetInnerHTML: { __html:
|
|
319
|
+
dangerouslySetInnerHTML: { __html: E.sanitize(a.assignment.description) }
|
|
320
320
|
}),
|
|
321
|
-
|
|
321
|
+
Te && /* @__PURE__ */ X("p", {
|
|
322
322
|
className: "text-[11px] text-text-secondary",
|
|
323
|
-
children: ["Sent ", Q(
|
|
323
|
+
children: ["Sent ", Q(Te)]
|
|
324
324
|
})
|
|
325
325
|
]
|
|
326
|
-
}),
|
|
326
|
+
}), K && /* @__PURE__ */ X("div", {
|
|
327
327
|
className: "space-y-3",
|
|
328
328
|
children: [
|
|
329
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
329
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
330
330
|
htmlFor: `assignment-repo-${a.id}`,
|
|
331
331
|
children: "GitHub Repo URL"
|
|
332
|
-
}), /* @__PURE__ */ Y(
|
|
332
|
+
}), /* @__PURE__ */ Y(ae, {
|
|
333
333
|
id: `assignment-repo-${a.id}`,
|
|
334
|
-
value:
|
|
335
|
-
onChange: (e) =>
|
|
334
|
+
value: w,
|
|
335
|
+
onChange: (e) => _e(e.target.value),
|
|
336
336
|
placeholder: "https://github.com/…"
|
|
337
337
|
})] }),
|
|
338
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
338
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
339
339
|
htmlFor: `assignment-video-${a.id}`,
|
|
340
340
|
children: "Jam Video URL"
|
|
341
|
-
}), /* @__PURE__ */ Y(
|
|
341
|
+
}), /* @__PURE__ */ Y(ae, {
|
|
342
342
|
id: `assignment-video-${a.id}`,
|
|
343
|
-
value:
|
|
344
|
-
onChange: (e) =>
|
|
343
|
+
value: ve,
|
|
344
|
+
onChange: (e) => ye(e.target.value),
|
|
345
345
|
placeholder: "https://jam.dev/…"
|
|
346
346
|
})] }),
|
|
347
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
347
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
348
348
|
htmlFor: `assignment-notes-${a.id}`,
|
|
349
349
|
children: "Notes"
|
|
350
|
-
}), /* @__PURE__ */ Y(
|
|
350
|
+
}), /* @__PURE__ */ Y(p, {
|
|
351
351
|
id: `assignment-notes-${a.id}`,
|
|
352
|
-
value:
|
|
353
|
-
onChange: (e) =>
|
|
352
|
+
value: D,
|
|
353
|
+
onChange: (e) => be(e.target.value),
|
|
354
354
|
placeholder: "Add submission notes…",
|
|
355
355
|
rows: 3
|
|
356
356
|
})] }),
|
|
@@ -359,8 +359,8 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
359
359
|
children: /* @__PURE__ */ X(t, {
|
|
360
360
|
size: "sm",
|
|
361
361
|
onClick: Me,
|
|
362
|
-
disabled:
|
|
363
|
-
children: [
|
|
362
|
+
disabled: z || !w.trim() && !ve.trim() && !D.trim(),
|
|
363
|
+
children: [z ? /* @__PURE__ */ Y(G, {
|
|
364
364
|
size: 14,
|
|
365
365
|
className: "animate-spin mr-1"
|
|
366
366
|
}) : null, "Record Submission"]
|
|
@@ -383,7 +383,7 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
383
383
|
variant: "ghost",
|
|
384
384
|
size: "sm",
|
|
385
385
|
onClick: Fe,
|
|
386
|
-
children: [/* @__PURE__ */ Y(
|
|
386
|
+
children: [/* @__PURE__ */ Y(De, { size: 14 }), "Add Feedback"]
|
|
387
387
|
})]
|
|
388
388
|
}),
|
|
389
389
|
a.feedback.length > 0 && /* @__PURE__ */ Y("div", {
|
|
@@ -399,12 +399,12 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
399
399
|
className: "flex items-center gap-2 mt-1",
|
|
400
400
|
children: [n.rating && /* @__PURE__ */ Y("span", {
|
|
401
401
|
className: "inline-flex items-center gap-0.5 text-xs text-status-warning-text",
|
|
402
|
-
children: Array.from({ length: n.rating }).map((e, t) => /* @__PURE__ */ Y(
|
|
402
|
+
children: Array.from({ length: n.rating }).map((e, t) => /* @__PURE__ */ Y(ke, {
|
|
403
403
|
size: 12,
|
|
404
404
|
fill: "currentColor"
|
|
405
405
|
}, t))
|
|
406
406
|
}), n.verdict && /* @__PURE__ */ Y(e, {
|
|
407
|
-
className: `${
|
|
407
|
+
className: `${Ge(n.verdict)} text-xs`,
|
|
408
408
|
children: $(n.verdict)
|
|
409
409
|
})]
|
|
410
410
|
})] }), /* @__PURE__ */ Y(t, {
|
|
@@ -422,67 +422,67 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
422
422
|
ce && /* @__PURE__ */ X("div", {
|
|
423
423
|
className: "p-3 rounded-lg border border-border-default bg-bg-surface space-y-3",
|
|
424
424
|
children: [
|
|
425
|
-
!g && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
425
|
+
!g && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
426
426
|
htmlFor: `feedback-interviewer-${a.id}`,
|
|
427
427
|
children: "Interviewer"
|
|
428
|
-
}), /* @__PURE__ */ X(
|
|
428
|
+
}), /* @__PURE__ */ X(c, {
|
|
429
429
|
value: _,
|
|
430
430
|
onValueChange: y,
|
|
431
|
-
children: [/* @__PURE__ */ Y(
|
|
431
|
+
children: [/* @__PURE__ */ Y(d, {
|
|
432
432
|
id: `feedback-interviewer-${a.id}`,
|
|
433
|
-
children: /* @__PURE__ */ Y(
|
|
434
|
-
}), /* @__PURE__ */ Y(
|
|
433
|
+
children: /* @__PURE__ */ Y(f, { placeholder: "Select interviewer" })
|
|
434
|
+
}), /* @__PURE__ */ Y(l, { children: o ? /* @__PURE__ */ Y(u, {
|
|
435
435
|
value: "loading",
|
|
436
436
|
disabled: !0,
|
|
437
437
|
children: "Loading…"
|
|
438
|
-
}) :
|
|
438
|
+
}) : ne.map((e) => /* @__PURE__ */ Y(u, {
|
|
439
439
|
value: e.id,
|
|
440
440
|
children: e.name
|
|
441
441
|
}, e.id)) })]
|
|
442
442
|
})] }),
|
|
443
443
|
/* @__PURE__ */ X("div", {
|
|
444
444
|
className: "grid grid-cols-2 gap-3",
|
|
445
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
445
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
446
446
|
htmlFor: `feedback-rating-${a.id}`,
|
|
447
447
|
children: "Rating"
|
|
448
|
-
}), /* @__PURE__ */ X(
|
|
448
|
+
}), /* @__PURE__ */ X(c, {
|
|
449
449
|
value: b,
|
|
450
450
|
onValueChange: de,
|
|
451
|
-
children: [/* @__PURE__ */ Y(
|
|
451
|
+
children: [/* @__PURE__ */ Y(d, {
|
|
452
452
|
id: `feedback-rating-${a.id}`,
|
|
453
|
-
children: /* @__PURE__ */ Y(
|
|
454
|
-
}), /* @__PURE__ */ Y(
|
|
453
|
+
children: /* @__PURE__ */ Y(f, { placeholder: "1–5" })
|
|
454
|
+
}), /* @__PURE__ */ Y(l, { children: [
|
|
455
455
|
1,
|
|
456
456
|
2,
|
|
457
457
|
3,
|
|
458
458
|
4,
|
|
459
459
|
5
|
|
460
|
-
].map((e) => /* @__PURE__ */ Y(
|
|
460
|
+
].map((e) => /* @__PURE__ */ Y(u, {
|
|
461
461
|
value: String(e),
|
|
462
462
|
children: e
|
|
463
463
|
}, e)) })]
|
|
464
|
-
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
464
|
+
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
465
465
|
htmlFor: `feedback-verdict-${a.id}`,
|
|
466
466
|
children: "Verdict"
|
|
467
|
-
}), /* @__PURE__ */ X(
|
|
467
|
+
}), /* @__PURE__ */ X(c, {
|
|
468
468
|
value: fe,
|
|
469
469
|
onValueChange: (e) => pe(e),
|
|
470
|
-
children: [/* @__PURE__ */ Y(
|
|
470
|
+
children: [/* @__PURE__ */ Y(d, {
|
|
471
471
|
id: `feedback-verdict-${a.id}`,
|
|
472
|
-
children: /* @__PURE__ */ Y(
|
|
473
|
-
}), /* @__PURE__ */ Y(
|
|
472
|
+
children: /* @__PURE__ */ Y(f, { placeholder: "Verdict" })
|
|
473
|
+
}), /* @__PURE__ */ Y(l, { children: Object.values(he).map((e) => /* @__PURE__ */ Y(u, {
|
|
474
474
|
value: e,
|
|
475
475
|
children: $(e)
|
|
476
476
|
}, e)) })]
|
|
477
477
|
})] })]
|
|
478
478
|
}),
|
|
479
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
479
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
480
480
|
htmlFor: `feedback-notes-${a.id}`,
|
|
481
481
|
children: "Internal Notes"
|
|
482
|
-
}), /* @__PURE__ */ Y(
|
|
482
|
+
}), /* @__PURE__ */ Y(p, {
|
|
483
483
|
id: `feedback-notes-${a.id}`,
|
|
484
|
-
value:
|
|
485
|
-
onChange: (e) =>
|
|
484
|
+
value: x,
|
|
485
|
+
onChange: (e) => S(e.target.value),
|
|
486
486
|
placeholder: "Add private notes about this round…",
|
|
487
487
|
rows: 3
|
|
488
488
|
})] }),
|
|
@@ -492,28 +492,28 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
492
492
|
variant: "outline",
|
|
493
493
|
size: "sm",
|
|
494
494
|
onClick: () => {
|
|
495
|
-
|
|
495
|
+
q(), h(!1);
|
|
496
496
|
},
|
|
497
497
|
children: "Cancel"
|
|
498
498
|
}), /* @__PURE__ */ Y(t, {
|
|
499
499
|
size: "sm",
|
|
500
500
|
onClick: async () => {
|
|
501
|
-
let e = b ? parseInt(b, 10) : void 0, t = fe || void 0, n =
|
|
502
|
-
if (g) await
|
|
501
|
+
let e = b ? parseInt(b, 10) : void 0, t = fe || void 0, n = x.trim() || void 0;
|
|
502
|
+
if (g) await m(g.id, {
|
|
503
503
|
rating: e,
|
|
504
504
|
verdict: t,
|
|
505
505
|
internalNotes: n
|
|
506
506
|
});
|
|
507
507
|
else {
|
|
508
508
|
if (!_) return;
|
|
509
|
-
await
|
|
509
|
+
await se(a.id, {
|
|
510
510
|
interviewerId: _,
|
|
511
511
|
rating: e,
|
|
512
512
|
verdict: t,
|
|
513
513
|
internalNotes: n
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
q(), h(!1);
|
|
517
517
|
},
|
|
518
518
|
disabled: !g && !_,
|
|
519
519
|
children: g ? "Update Feedback" : "Submit Feedback"
|
|
@@ -526,116 +526,116 @@ function Ge({ round: a, applicationId: te, interviewers: o, interviewersLoading:
|
|
|
526
526
|
]
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Je({ applicationId: e, jobPostingId: n }) {
|
|
530
530
|
let { data: r, loading: i, error: ee } = ce({ variables: { applicationId: e } }), { data: h, loading: g } = _({
|
|
531
531
|
variables: { id: n ?? "" },
|
|
532
532
|
skip: !n
|
|
533
|
-
}), { data: le, loading: v } =
|
|
533
|
+
}), { data: le, loading: v } = m({ variables: { limit: 200 } }), [ue, { loading: b }] = se({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [me, { loading: x }] = oe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [he] = y({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ge, { loading: T }] = de({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [_e] = fe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ve] = pe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), E = r?.jobApplicationInterviewRounds ?? [], ye = le?.interviewers.items ?? [], D = h?.jobPosting?.rounds ?? [], [be, O] = k(!1), [A, j] = k(Z), [M, N] = k({
|
|
534
534
|
name: "",
|
|
535
|
-
roundType:
|
|
536
|
-
status:
|
|
535
|
+
roundType: C.PhoneScreen,
|
|
536
|
+
status: S.Scheduled,
|
|
537
537
|
scheduledAt: ""
|
|
538
|
-
}), [
|
|
539
|
-
|
|
538
|
+
}), [P, F] = k(null), [I, L] = k([]), [Se, R] = k(w.Panel), [z, B] = k(null), [V, H] = k(""), [U, W] = k(null), Ce = D.filter((e) => !E.some((t) => t.roundConfigId === e.id)), K = () => {
|
|
539
|
+
j(Z), N({
|
|
540
540
|
name: "",
|
|
541
|
-
roundType:
|
|
542
|
-
status:
|
|
541
|
+
roundType: C.PhoneScreen,
|
|
542
|
+
status: S.Scheduled,
|
|
543
543
|
scheduledAt: ""
|
|
544
544
|
});
|
|
545
545
|
}, we = (e) => {
|
|
546
|
-
if (
|
|
547
|
-
|
|
546
|
+
if (j(e), e === Z) {
|
|
547
|
+
N((e) => ({
|
|
548
548
|
...e,
|
|
549
549
|
name: ""
|
|
550
550
|
}));
|
|
551
551
|
return;
|
|
552
552
|
}
|
|
553
|
-
let t =
|
|
554
|
-
t &&
|
|
553
|
+
let t = D.find((t) => t.id === e);
|
|
554
|
+
t && N((e) => ({
|
|
555
555
|
...e,
|
|
556
556
|
name: t.name,
|
|
557
557
|
roundType: t.roundType
|
|
558
558
|
}));
|
|
559
|
-
},
|
|
559
|
+
}, Te = () => {
|
|
560
560
|
let e = Ce[0];
|
|
561
|
-
e ? (
|
|
561
|
+
e ? (j(e.id), N({
|
|
562
562
|
name: e.name,
|
|
563
563
|
roundType: e.roundType,
|
|
564
|
-
status:
|
|
564
|
+
status: S.Scheduled,
|
|
565
565
|
scheduledAt: ""
|
|
566
|
-
})) : K(),
|
|
567
|
-
},
|
|
568
|
-
if (
|
|
569
|
-
|
|
566
|
+
})) : K(), O(!0);
|
|
567
|
+
}, Ee = async () => {
|
|
568
|
+
if (M.name.trim()) {
|
|
569
|
+
W(null);
|
|
570
570
|
try {
|
|
571
571
|
await ue({ variables: { input: {
|
|
572
572
|
applicationId: e,
|
|
573
|
-
roundConfigId:
|
|
574
|
-
name:
|
|
575
|
-
roundType:
|
|
576
|
-
status:
|
|
577
|
-
scheduledAt:
|
|
578
|
-
} } }), K(),
|
|
573
|
+
roundConfigId: A === Z ? void 0 : A,
|
|
574
|
+
name: M.name.trim(),
|
|
575
|
+
roundType: M.roundType,
|
|
576
|
+
status: M.status,
|
|
577
|
+
scheduledAt: M.scheduledAt || void 0
|
|
578
|
+
} } }), K(), O(!1);
|
|
579
579
|
} catch (e) {
|
|
580
|
-
console.error("Failed to create interview round:", e),
|
|
580
|
+
console.error("Failed to create interview round:", e), W("Failed to create interview round.");
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
}, Oe = async () => {
|
|
584
|
-
if (!(!
|
|
585
|
-
|
|
584
|
+
if (!(!P || I.length === 0)) {
|
|
585
|
+
W(null);
|
|
586
586
|
try {
|
|
587
587
|
await me({ variables: { input: {
|
|
588
|
-
roundId:
|
|
589
|
-
assignments:
|
|
588
|
+
roundId: P,
|
|
589
|
+
assignments: I.map((e) => ({
|
|
590
590
|
interviewerId: e,
|
|
591
|
-
role:
|
|
591
|
+
role: Se
|
|
592
592
|
}))
|
|
593
|
-
} } }),
|
|
593
|
+
} } }), L([]), R(w.Panel), F(null);
|
|
594
594
|
} catch (e) {
|
|
595
|
-
console.error("Failed to assign interviewers:", e),
|
|
595
|
+
console.error("Failed to assign interviewers:", e), W("Failed to assign interviewers.");
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
}, ke = async (e, t) => {
|
|
599
|
-
|
|
599
|
+
W(null);
|
|
600
600
|
try {
|
|
601
|
-
await
|
|
601
|
+
await he({ variables: {
|
|
602
602
|
roundId: e,
|
|
603
603
|
interviewerId: t
|
|
604
604
|
} });
|
|
605
605
|
} catch (e) {
|
|
606
|
-
console.error("Failed to remove interviewer:", e),
|
|
606
|
+
console.error("Failed to remove interviewer:", e), W("Failed to remove interviewer.");
|
|
607
607
|
}
|
|
608
|
-
},
|
|
609
|
-
if (!(!
|
|
610
|
-
|
|
608
|
+
}, q = async () => {
|
|
609
|
+
if (!(!z || !V.trim())) {
|
|
610
|
+
W(null);
|
|
611
611
|
try {
|
|
612
|
-
await
|
|
613
|
-
roundId:
|
|
614
|
-
message:
|
|
615
|
-
} } }),
|
|
612
|
+
await ge({ variables: { input: {
|
|
613
|
+
roundId: z,
|
|
614
|
+
message: V.trim()
|
|
615
|
+
} } }), H(""), B(null);
|
|
616
616
|
} catch (e) {
|
|
617
|
-
console.error("Failed to send candidate message:", e),
|
|
617
|
+
console.error("Failed to send candidate message:", e), W("Failed to send candidate message.");
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
},
|
|
621
|
-
|
|
620
|
+
}, Ae = async (e, t) => {
|
|
621
|
+
W(null);
|
|
622
622
|
try {
|
|
623
623
|
await _e({ variables: { input: {
|
|
624
624
|
roundId: e,
|
|
625
625
|
...t
|
|
626
626
|
} } });
|
|
627
627
|
} catch (e) {
|
|
628
|
-
throw console.error("Failed to submit feedback:", e),
|
|
628
|
+
throw console.error("Failed to submit feedback:", e), W("Failed to submit feedback."), e;
|
|
629
629
|
}
|
|
630
630
|
}, je = async (e, t) => {
|
|
631
|
-
|
|
631
|
+
W(null);
|
|
632
632
|
try {
|
|
633
633
|
await ve({ variables: {
|
|
634
634
|
id: e,
|
|
635
635
|
input: t
|
|
636
636
|
} });
|
|
637
637
|
} catch (e) {
|
|
638
|
-
throw console.error("Failed to update feedback:", e),
|
|
638
|
+
throw console.error("Failed to update feedback:", e), W("Failed to update feedback."), e;
|
|
639
639
|
}
|
|
640
640
|
};
|
|
641
641
|
return /* @__PURE__ */ X("div", {
|
|
@@ -645,74 +645,74 @@ function Ke({ applicationId: e, jobPostingId: n }) {
|
|
|
645
645
|
className: "px-5 py-3.5 border-b border-border-default bg-bg-muted/50 flex items-center justify-between",
|
|
646
646
|
children: [/* @__PURE__ */ X("h2", {
|
|
647
647
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
648
|
-
children: [/* @__PURE__ */ Y(
|
|
648
|
+
children: [/* @__PURE__ */ Y(J, { size: 14 }), "Interview Rounds"]
|
|
649
649
|
}), /* @__PURE__ */ X(t, {
|
|
650
650
|
size: "sm",
|
|
651
|
-
onClick:
|
|
652
|
-
children: [/* @__PURE__ */ Y(
|
|
651
|
+
onClick: Te,
|
|
652
|
+
children: [/* @__PURE__ */ Y(De, { size: 14 }), "Add Round"]
|
|
653
653
|
})]
|
|
654
654
|
}),
|
|
655
655
|
/* @__PURE__ */ X("div", {
|
|
656
656
|
className: "p-5",
|
|
657
|
-
children: [
|
|
657
|
+
children: [U && /* @__PURE__ */ X("div", {
|
|
658
658
|
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",
|
|
659
|
-
children: [/* @__PURE__ */ Y(
|
|
659
|
+
children: [/* @__PURE__ */ Y(xe, { size: 16 }), U]
|
|
660
660
|
}), i ? /* @__PURE__ */ X("div", {
|
|
661
661
|
className: "flex items-center gap-2 text-sm text-text-secondary py-4",
|
|
662
|
-
children: [/* @__PURE__ */ Y(
|
|
662
|
+
children: [/* @__PURE__ */ Y(G, {
|
|
663
663
|
size: 16,
|
|
664
664
|
className: "animate-spin"
|
|
665
665
|
}), "Loading interview rounds…"]
|
|
666
666
|
}) : ee ? /* @__PURE__ */ X("div", {
|
|
667
667
|
className: "p-3 rounded-lg bg-status-error-bg-subtle text-status-error-text text-sm flex items-center gap-2",
|
|
668
|
-
children: [/* @__PURE__ */ Y(
|
|
668
|
+
children: [/* @__PURE__ */ Y(xe, { size: 16 }), "Could not load interview rounds."]
|
|
669
669
|
}) : E.length === 0 ? /* @__PURE__ */ Y("p", {
|
|
670
670
|
className: "text-sm text-text-secondary",
|
|
671
671
|
children: "No interview rounds yet."
|
|
672
672
|
}) : /* @__PURE__ */ Y("div", {
|
|
673
673
|
className: "space-y-5",
|
|
674
|
-
children: E.map((t) => /* @__PURE__ */ Y(
|
|
674
|
+
children: E.map((t) => /* @__PURE__ */ Y(qe, {
|
|
675
675
|
round: t,
|
|
676
676
|
applicationId: e,
|
|
677
|
-
interviewers:
|
|
677
|
+
interviewers: ye,
|
|
678
678
|
interviewersLoading: v,
|
|
679
679
|
onAssign: () => {
|
|
680
|
-
|
|
680
|
+
F(t.id), L([]), R(w.Panel);
|
|
681
681
|
},
|
|
682
682
|
onRemoveInterviewer: ke,
|
|
683
683
|
onSendMessage: () => {
|
|
684
|
-
|
|
684
|
+
B(t.id), H("");
|
|
685
685
|
},
|
|
686
|
-
onSubmitFeedback:
|
|
686
|
+
onSubmitFeedback: Ae,
|
|
687
687
|
onUpdateFeedback: je
|
|
688
688
|
}, t.id))
|
|
689
689
|
})]
|
|
690
690
|
}),
|
|
691
691
|
/* @__PURE__ */ Y(a, {
|
|
692
|
-
open:
|
|
692
|
+
open: be,
|
|
693
693
|
onOpenChange: (e) => {
|
|
694
|
-
|
|
694
|
+
O(e), e || K();
|
|
695
695
|
},
|
|
696
696
|
children: /* @__PURE__ */ X(te, {
|
|
697
697
|
className: "sm:max-w-md",
|
|
698
698
|
children: [
|
|
699
|
-
/* @__PURE__ */ X(
|
|
699
|
+
/* @__PURE__ */ X(re, { children: [/* @__PURE__ */ Y(ie, { children: "Add Interview Round" }), /* @__PURE__ */ Y(ne, { children: "Schedule a new round for this candidate." })] }),
|
|
700
700
|
/* @__PURE__ */ X("div", {
|
|
701
701
|
className: "space-y-4 py-2",
|
|
702
702
|
children: [
|
|
703
703
|
n && /* @__PURE__ */ X("div", { children: [
|
|
704
|
-
/* @__PURE__ */ Y(
|
|
704
|
+
/* @__PURE__ */ Y(s, {
|
|
705
705
|
htmlFor: "round-config",
|
|
706
706
|
children: "Posting round"
|
|
707
707
|
}),
|
|
708
|
-
/* @__PURE__ */ X(
|
|
709
|
-
value:
|
|
708
|
+
/* @__PURE__ */ X(c, {
|
|
709
|
+
value: A,
|
|
710
710
|
onValueChange: we,
|
|
711
711
|
disabled: g,
|
|
712
|
-
children: [/* @__PURE__ */ Y(
|
|
712
|
+
children: [/* @__PURE__ */ Y(d, {
|
|
713
713
|
id: "round-config",
|
|
714
|
-
children: /* @__PURE__ */ Y(
|
|
715
|
-
}), /* @__PURE__ */ X(
|
|
714
|
+
children: /* @__PURE__ */ Y(f, { placeholder: "Select a configured round" })
|
|
715
|
+
}), /* @__PURE__ */ X(l, { children: [Ce.map((e) => /* @__PURE__ */ X(u, {
|
|
716
716
|
value: e.id,
|
|
717
717
|
children: [
|
|
718
718
|
"Round ",
|
|
@@ -720,7 +720,7 @@ function Ke({ applicationId: e, jobPostingId: n }) {
|
|
|
720
720
|
" — ",
|
|
721
721
|
e.name
|
|
722
722
|
]
|
|
723
|
-
}, e.id)), /* @__PURE__ */ Y(
|
|
723
|
+
}, e.id)), /* @__PURE__ */ Y(u, {
|
|
724
724
|
value: Z,
|
|
725
725
|
children: "Custom round"
|
|
726
726
|
})] })]
|
|
@@ -730,78 +730,78 @@ function Ke({ applicationId: e, jobPostingId: n }) {
|
|
|
730
730
|
children: "Configured rounds stay linked to posting-level bulk actions."
|
|
731
731
|
})
|
|
732
732
|
] }),
|
|
733
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
733
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
734
734
|
htmlFor: "round-name",
|
|
735
735
|
children: "Name"
|
|
736
|
-
}), /* @__PURE__ */ Y(
|
|
736
|
+
}), /* @__PURE__ */ Y(ae, {
|
|
737
737
|
id: "round-name",
|
|
738
|
-
value:
|
|
739
|
-
onChange: (e) =>
|
|
738
|
+
value: M.name,
|
|
739
|
+
onChange: (e) => N((t) => ({
|
|
740
740
|
...t,
|
|
741
741
|
name: e.target.value
|
|
742
742
|
})),
|
|
743
743
|
placeholder: "e.g. Technical Interview",
|
|
744
|
-
disabled:
|
|
744
|
+
disabled: A !== Z
|
|
745
745
|
})] }),
|
|
746
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
746
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
747
747
|
htmlFor: "round-type",
|
|
748
748
|
children: "Round Type"
|
|
749
|
-
}), /* @__PURE__ */ X(
|
|
750
|
-
value:
|
|
751
|
-
onValueChange: (e) =>
|
|
749
|
+
}), /* @__PURE__ */ X(c, {
|
|
750
|
+
value: M.roundType,
|
|
751
|
+
onValueChange: (e) => N((t) => ({
|
|
752
752
|
...t,
|
|
753
753
|
roundType: e
|
|
754
754
|
})),
|
|
755
|
-
disabled:
|
|
756
|
-
children: [/* @__PURE__ */ Y(
|
|
755
|
+
disabled: A !== Z,
|
|
756
|
+
children: [/* @__PURE__ */ Y(d, {
|
|
757
757
|
id: "round-type",
|
|
758
|
-
children: /* @__PURE__ */ Y(
|
|
759
|
-
}), /* @__PURE__ */ Y(
|
|
758
|
+
children: /* @__PURE__ */ Y(f, {})
|
|
759
|
+
}), /* @__PURE__ */ Y(l, { children: Object.values(C).map((e) => /* @__PURE__ */ Y(u, {
|
|
760
760
|
value: e,
|
|
761
761
|
children: $(e)
|
|
762
762
|
}, e)) })]
|
|
763
763
|
})] }),
|
|
764
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
764
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
765
765
|
htmlFor: "round-status",
|
|
766
766
|
children: "Status"
|
|
767
|
-
}), /* @__PURE__ */ X(
|
|
768
|
-
value:
|
|
769
|
-
onValueChange: (e) =>
|
|
767
|
+
}), /* @__PURE__ */ X(c, {
|
|
768
|
+
value: M.status,
|
|
769
|
+
onValueChange: (e) => N((t) => ({
|
|
770
770
|
...t,
|
|
771
771
|
status: e
|
|
772
772
|
})),
|
|
773
|
-
children: [/* @__PURE__ */ Y(
|
|
773
|
+
children: [/* @__PURE__ */ Y(d, {
|
|
774
774
|
id: "round-status",
|
|
775
|
-
children: /* @__PURE__ */ Y(
|
|
776
|
-
}), /* @__PURE__ */ Y(
|
|
775
|
+
children: /* @__PURE__ */ Y(f, {})
|
|
776
|
+
}), /* @__PURE__ */ Y(l, { children: Object.values(S).map((e) => /* @__PURE__ */ Y(u, {
|
|
777
777
|
value: e,
|
|
778
778
|
children: $(e)
|
|
779
779
|
}, e)) })]
|
|
780
780
|
})] }),
|
|
781
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
781
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
782
782
|
htmlFor: "round-scheduled",
|
|
783
783
|
children: "Scheduled At"
|
|
784
|
-
}), /* @__PURE__ */ Y(
|
|
784
|
+
}), /* @__PURE__ */ Y(ae, {
|
|
785
785
|
id: "round-scheduled",
|
|
786
786
|
type: "datetime-local",
|
|
787
|
-
value:
|
|
788
|
-
onChange: (e) =>
|
|
787
|
+
value: M.scheduledAt,
|
|
788
|
+
onChange: (e) => N((t) => ({
|
|
789
789
|
...t,
|
|
790
790
|
scheduledAt: e.target.value
|
|
791
791
|
}))
|
|
792
792
|
})] })
|
|
793
793
|
]
|
|
794
794
|
}),
|
|
795
|
-
/* @__PURE__ */ X(
|
|
795
|
+
/* @__PURE__ */ X(o, { children: [/* @__PURE__ */ Y(t, {
|
|
796
796
|
variant: "outline",
|
|
797
797
|
onClick: () => {
|
|
798
|
-
|
|
798
|
+
O(!1), K();
|
|
799
799
|
},
|
|
800
800
|
children: "Cancel"
|
|
801
801
|
}), /* @__PURE__ */ X(t, {
|
|
802
|
-
onClick:
|
|
803
|
-
disabled: b || !
|
|
804
|
-
children: [b ? /* @__PURE__ */ Y(
|
|
802
|
+
onClick: Ee,
|
|
803
|
+
disabled: b || !M.name.trim(),
|
|
804
|
+
children: [b ? /* @__PURE__ */ Y(G, {
|
|
805
805
|
size: 14,
|
|
806
806
|
className: "animate-spin mr-1"
|
|
807
807
|
}) : null, "Create Round"]
|
|
@@ -810,46 +810,46 @@ function Ke({ applicationId: e, jobPostingId: n }) {
|
|
|
810
810
|
})
|
|
811
811
|
}),
|
|
812
812
|
/* @__PURE__ */ Y(a, {
|
|
813
|
-
open: !!
|
|
814
|
-
onOpenChange: (e) => !e &&
|
|
813
|
+
open: !!P,
|
|
814
|
+
onOpenChange: (e) => !e && F(null),
|
|
815
815
|
children: /* @__PURE__ */ X(te, {
|
|
816
816
|
className: "sm:max-w-md",
|
|
817
817
|
children: [
|
|
818
|
-
/* @__PURE__ */ X(
|
|
818
|
+
/* @__PURE__ */ X(re, { children: [/* @__PURE__ */ Y(ie, { children: "Assign Interviewers" }), /* @__PURE__ */ Y(ne, { children: "Choose interviewers and a role for this round." })] }),
|
|
819
819
|
/* @__PURE__ */ X("div", {
|
|
820
820
|
className: "space-y-4 py-2",
|
|
821
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
821
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
|
|
822
822
|
htmlFor: "assign-role",
|
|
823
823
|
children: "Role"
|
|
824
|
-
}), /* @__PURE__ */ X(
|
|
825
|
-
value:
|
|
826
|
-
onValueChange: (e) =>
|
|
827
|
-
children: [/* @__PURE__ */ Y(
|
|
824
|
+
}), /* @__PURE__ */ X(c, {
|
|
825
|
+
value: Se,
|
|
826
|
+
onValueChange: (e) => R(e),
|
|
827
|
+
children: [/* @__PURE__ */ Y(d, {
|
|
828
828
|
id: "assign-role",
|
|
829
|
-
children: /* @__PURE__ */ Y(
|
|
830
|
-
}), /* @__PURE__ */ Y(
|
|
829
|
+
children: /* @__PURE__ */ Y(f, {})
|
|
830
|
+
}), /* @__PURE__ */ Y(l, { children: Object.values(w).map((e) => /* @__PURE__ */ Y(u, {
|
|
831
831
|
value: e,
|
|
832
832
|
children: $(e)
|
|
833
833
|
}, e)) })]
|
|
834
|
-
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
834
|
+
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, { children: "Interviewers" }), /* @__PURE__ */ Y("div", {
|
|
835
835
|
className: "mt-1.5 max-h-60 overflow-y-auto border border-border-default rounded-lg p-2 space-y-1",
|
|
836
836
|
children: v ? /* @__PURE__ */ X("div", {
|
|
837
837
|
className: "flex items-center gap-2 text-sm text-text-secondary py-2",
|
|
838
|
-
children: [/* @__PURE__ */ Y(
|
|
838
|
+
children: [/* @__PURE__ */ Y(G, {
|
|
839
839
|
size: 14,
|
|
840
840
|
className: "animate-spin"
|
|
841
841
|
}), "Loading…"]
|
|
842
|
-
}) :
|
|
842
|
+
}) : ye.length === 0 ? /* @__PURE__ */ Y("p", {
|
|
843
843
|
className: "text-sm text-text-secondary py-2",
|
|
844
844
|
children: "No interviewers found."
|
|
845
|
-
}) :
|
|
845
|
+
}) : ye.map((e) => /* @__PURE__ */ X("label", {
|
|
846
846
|
className: "flex items-start gap-2 p-2 rounded-md hover:bg-bg-muted cursor-pointer",
|
|
847
847
|
children: [/* @__PURE__ */ Y("input", {
|
|
848
848
|
type: "checkbox",
|
|
849
849
|
className: "mt-1",
|
|
850
|
-
checked:
|
|
850
|
+
checked: I.includes(e.id),
|
|
851
851
|
onChange: (t) => {
|
|
852
|
-
|
|
852
|
+
L((n) => t.target.checked ? [...n, e.id] : n.filter((t) => t !== e.id));
|
|
853
853
|
}
|
|
854
854
|
}), /* @__PURE__ */ X("div", {
|
|
855
855
|
className: "text-sm",
|
|
@@ -864,14 +864,14 @@ function Ke({ applicationId: e, jobPostingId: n }) {
|
|
|
864
864
|
}, e.id))
|
|
865
865
|
})] })]
|
|
866
866
|
}),
|
|
867
|
-
/* @__PURE__ */ X(
|
|
867
|
+
/* @__PURE__ */ X(o, { children: [/* @__PURE__ */ Y(t, {
|
|
868
868
|
variant: "outline",
|
|
869
|
-
onClick: () =>
|
|
869
|
+
onClick: () => F(null),
|
|
870
870
|
children: "Cancel"
|
|
871
871
|
}), /* @__PURE__ */ X(t, {
|
|
872
872
|
onClick: Oe,
|
|
873
|
-
disabled:
|
|
874
|
-
children: [
|
|
873
|
+
disabled: x || I.length === 0,
|
|
874
|
+
children: [x ? /* @__PURE__ */ Y(G, {
|
|
875
875
|
size: 14,
|
|
876
876
|
className: "animate-spin mr-1"
|
|
877
877
|
}) : null, "Assign"]
|
|
@@ -880,29 +880,29 @@ function Ke({ applicationId: e, jobPostingId: n }) {
|
|
|
880
880
|
})
|
|
881
881
|
}),
|
|
882
882
|
/* @__PURE__ */ Y(a, {
|
|
883
|
-
open: !!
|
|
884
|
-
onOpenChange: (e) => !e &&
|
|
883
|
+
open: !!z,
|
|
884
|
+
onOpenChange: (e) => !e && B(null),
|
|
885
885
|
children: /* @__PURE__ */ X(te, {
|
|
886
886
|
className: "sm:max-w-md",
|
|
887
887
|
children: [
|
|
888
|
-
/* @__PURE__ */ X(
|
|
888
|
+
/* @__PURE__ */ X(re, { children: [/* @__PURE__ */ Y(ie, { children: "Send Candidate Message" }), /* @__PURE__ */ Y(ne, { children: "This message will be emailed to the candidate for this round." })] }),
|
|
889
889
|
/* @__PURE__ */ Y("div", {
|
|
890
890
|
className: "py-2",
|
|
891
|
-
children: /* @__PURE__ */ Y(
|
|
892
|
-
value:
|
|
893
|
-
onChange: (e) =>
|
|
891
|
+
children: /* @__PURE__ */ Y(p, {
|
|
892
|
+
value: V,
|
|
893
|
+
onChange: (e) => H(e.target.value),
|
|
894
894
|
placeholder: "Type the message to send…",
|
|
895
895
|
rows: 5
|
|
896
896
|
})
|
|
897
897
|
}),
|
|
898
|
-
/* @__PURE__ */ X(
|
|
898
|
+
/* @__PURE__ */ X(o, { children: [/* @__PURE__ */ Y(t, {
|
|
899
899
|
variant: "outline",
|
|
900
|
-
onClick: () =>
|
|
900
|
+
onClick: () => B(null),
|
|
901
901
|
children: "Cancel"
|
|
902
902
|
}), /* @__PURE__ */ X(t, {
|
|
903
|
-
onClick:
|
|
904
|
-
disabled: T || !
|
|
905
|
-
children: [T ? /* @__PURE__ */ Y(
|
|
903
|
+
onClick: q,
|
|
904
|
+
disabled: T || !V.trim(),
|
|
905
|
+
children: [T ? /* @__PURE__ */ Y(G, {
|
|
906
906
|
size: 14,
|
|
907
907
|
className: "animate-spin mr-1"
|
|
908
908
|
}) : null, "Send Message"]
|
|
@@ -913,78 +913,78 @@ function Ke({ applicationId: e, jobPostingId: n }) {
|
|
|
913
913
|
]
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
|
-
function
|
|
917
|
-
let { id: e } =
|
|
916
|
+
function Ye() {
|
|
917
|
+
let { id: e } = Fe(), t = Pe(), n = Ne().search, [r, i] = k(!1), [ee, o] = k(!1), [ae, s] = k(!1), [c, l] = k(!1), [u, d] = k(""), [f, p] = k(!1), [oe, se] = k(null), { data: m, loading: ce, error: _ } = h({
|
|
918
918
|
variables: { id: e },
|
|
919
919
|
skip: !e
|
|
920
|
-
}), v =
|
|
920
|
+
}), v = m?.jobApplication?.productId ?? null;
|
|
921
921
|
O(() => {
|
|
922
922
|
if (!v) {
|
|
923
|
-
|
|
923
|
+
se(null);
|
|
924
924
|
return;
|
|
925
925
|
}
|
|
926
926
|
let e = !1;
|
|
927
|
-
return
|
|
927
|
+
return Ie({
|
|
928
928
|
gateway: "global",
|
|
929
929
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
930
930
|
variables: { id: v }
|
|
931
931
|
}).then((t) => {
|
|
932
932
|
if (e) return;
|
|
933
933
|
let n = t.data?.platformProduct?.name;
|
|
934
|
-
n &&
|
|
934
|
+
n && se(n);
|
|
935
935
|
}).catch(() => {}), () => {
|
|
936
936
|
e = !0;
|
|
937
937
|
};
|
|
938
938
|
}, [v]);
|
|
939
|
-
let [ue, { loading: y }] =
|
|
940
|
-
if (!(!
|
|
941
|
-
(await
|
|
939
|
+
let [ue, { loading: y }] = x({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [de, { loading: fe }] = le({ fetchPolicy: "no-cache" }), [pe, me] = k(!1), [S, C] = k(null), [he, w] = k(!1), [ge, { loading: T }] = g({ fetchPolicy: "no-cache" }), [E, { loading: R }] = b(), U = m?.jobApplication, we = async () => {
|
|
940
|
+
if (!(!u.trim() || !e)) try {
|
|
941
|
+
(await E({ variables: {
|
|
942
942
|
id: e,
|
|
943
|
-
message:
|
|
944
|
-
} })).data?.replyToJobApplication.success && (
|
|
943
|
+
message: u.trim()
|
|
944
|
+
} })).data?.replyToJobApplication.success && (p(!0), d(""), setTimeout(() => p(!1), 3e3));
|
|
945
945
|
} catch (e) {
|
|
946
946
|
console.error("Failed to send reply:", e);
|
|
947
947
|
}
|
|
948
|
-
},
|
|
948
|
+
}, De = async (t) => {
|
|
949
949
|
if (e) {
|
|
950
|
-
|
|
950
|
+
o(!1);
|
|
951
951
|
try {
|
|
952
952
|
await ue({ variables: {
|
|
953
953
|
id: e,
|
|
954
954
|
input: { status: t }
|
|
955
955
|
} }), i(!0), setTimeout(() => i(!1), 3e3);
|
|
956
956
|
} catch (e) {
|
|
957
|
-
console.error("Failed to update status:", e),
|
|
957
|
+
console.error("Failed to update status:", e), o(!0), setTimeout(() => o(!1), 4e3);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
},
|
|
960
|
+
}, ke = async () => {
|
|
961
961
|
if (e) {
|
|
962
|
-
|
|
962
|
+
l(!1);
|
|
963
963
|
try {
|
|
964
964
|
let t = (await de({ variables: { id: e } })).data?.jobApplicationResumeUrl;
|
|
965
|
-
t ? window.open(t, "_blank", "noopener,noreferrer") :
|
|
965
|
+
t ? window.open(t, "_blank", "noopener,noreferrer") : l(!0);
|
|
966
966
|
} catch (e) {
|
|
967
|
-
console.error("Failed to get resume URL:", e),
|
|
967
|
+
console.error("Failed to get resume URL:", e), l(!0);
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
},
|
|
970
|
+
}, Ae = async () => {
|
|
971
971
|
if (e) {
|
|
972
|
-
|
|
972
|
+
w(!1), C(null), me(!0);
|
|
973
973
|
try {
|
|
974
|
-
let t = (await
|
|
975
|
-
t ?
|
|
974
|
+
let t = (await ge({ variables: { id: e } })).data?.jobApplicationResumePreviewUrl;
|
|
975
|
+
t ? C(t) : w(!0);
|
|
976
976
|
} catch (e) {
|
|
977
|
-
console.error("Failed to get resume preview URL:", e),
|
|
977
|
+
console.error("Failed to get resume preview URL:", e), w(!0);
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
|
-
},
|
|
981
|
-
|
|
980
|
+
}, je = async () => {
|
|
981
|
+
U?.email && (D("light"), await ye(U.email), s(!0), setTimeout(() => s(!1), 2e3));
|
|
982
982
|
};
|
|
983
983
|
if (ce) return /* @__PURE__ */ Y("div", {
|
|
984
984
|
className: "min-h-full flex items-center justify-center py-20",
|
|
985
985
|
children: /* @__PURE__ */ X("div", {
|
|
986
986
|
className: "text-center",
|
|
987
|
-
children: [/* @__PURE__ */ Y(
|
|
987
|
+
children: [/* @__PURE__ */ Y(G, {
|
|
988
988
|
size: 36,
|
|
989
989
|
className: "animate-spin text-[var(--color-text-secondary)] mx-auto mb-3"
|
|
990
990
|
}), /* @__PURE__ */ Y("p", {
|
|
@@ -993,9 +993,9 @@ function qe() {
|
|
|
993
993
|
})]
|
|
994
994
|
})
|
|
995
995
|
});
|
|
996
|
-
if (_ || !
|
|
996
|
+
if (_ || !U) return /* @__PURE__ */ Y("div", {
|
|
997
997
|
className: "p-6",
|
|
998
|
-
children: /* @__PURE__ */ Y(
|
|
998
|
+
children: /* @__PURE__ */ Y(ze, {
|
|
999
999
|
illustration: "empty-search",
|
|
1000
1000
|
title: "Application not found",
|
|
1001
1001
|
description: _?.message || "This application may have been deleted or you don't have access.",
|
|
@@ -1007,7 +1007,7 @@ function qe() {
|
|
|
1007
1007
|
})
|
|
1008
1008
|
})
|
|
1009
1009
|
});
|
|
1010
|
-
let
|
|
1010
|
+
let J = He[U.status] || He.NEW, Me = J.icon, Z = `${U.firstName} ${U.lastName}`.trim(), $ = We(U.resumeFileSize), Ge = Ke(U.linkedinUrl), qe = Ke(U.portfolioUrl);
|
|
1011
1011
|
return /* @__PURE__ */ X("div", {
|
|
1012
1012
|
className: "p-6 animate-in fade-in duration-200",
|
|
1013
1013
|
children: [
|
|
@@ -1023,7 +1023,7 @@ function qe() {
|
|
|
1023
1023
|
})]
|
|
1024
1024
|
}), /* @__PURE__ */ X("div", {
|
|
1025
1025
|
className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
|
|
1026
|
-
children: [/* @__PURE__ */ Y(
|
|
1026
|
+
children: [/* @__PURE__ */ Y(I, { size: 12 }), Ue(U.createdAt)]
|
|
1027
1027
|
})]
|
|
1028
1028
|
}),
|
|
1029
1029
|
r && /* @__PURE__ */ X("div", {
|
|
@@ -1032,22 +1032,22 @@ function qe() {
|
|
|
1032
1032
|
}),
|
|
1033
1033
|
ee && /* @__PURE__ */ X("div", {
|
|
1034
1034
|
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",
|
|
1035
|
-
children: [/* @__PURE__ */ Y(
|
|
1035
|
+
children: [/* @__PURE__ */ Y(xe, { size: 18 }), "Couldn't update the status. Please try again."]
|
|
1036
1036
|
}),
|
|
1037
|
-
/* @__PURE__ */ Y(
|
|
1037
|
+
/* @__PURE__ */ Y(Ve, {
|
|
1038
1038
|
className: "mb-6",
|
|
1039
1039
|
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."
|
|
1040
1040
|
}),
|
|
1041
|
-
/* @__PURE__ */ Y(
|
|
1041
|
+
/* @__PURE__ */ Y(Be, {
|
|
1042
1042
|
storageKey: "support-application-detail",
|
|
1043
1043
|
title: "Move this candidate forward",
|
|
1044
1044
|
className: "mb-6",
|
|
1045
1045
|
steps: [
|
|
1046
|
-
...
|
|
1046
|
+
...U.resumeFileName ? [{
|
|
1047
1047
|
id: "resume",
|
|
1048
1048
|
label: "Review the resume",
|
|
1049
1049
|
description: "Download and read the candidate's resume.",
|
|
1050
|
-
onClick: () => void
|
|
1050
|
+
onClick: () => void ke()
|
|
1051
1051
|
}] : [],
|
|
1052
1052
|
{
|
|
1053
1053
|
id: "advance",
|
|
@@ -1070,16 +1070,16 @@ function qe() {
|
|
|
1070
1070
|
]
|
|
1071
1071
|
}),
|
|
1072
1072
|
/* @__PURE__ */ Y("div", {
|
|
1073
|
-
className: `rounded-xl border p-6 mb-6 ${
|
|
1073
|
+
className: `rounded-xl border p-6 mb-6 ${J.bg}`,
|
|
1074
1074
|
children: /* @__PURE__ */ Y("div", {
|
|
1075
1075
|
className: "flex items-start justify-between",
|
|
1076
1076
|
children: /* @__PURE__ */ X("div", {
|
|
1077
1077
|
className: "flex items-start gap-4",
|
|
1078
1078
|
children: [/* @__PURE__ */ Y("div", {
|
|
1079
1079
|
className: "size-12 rounded-xl bg-bg-surface/80 dark:bg-bg-surface/10 flex items-center justify-center shadow-sm",
|
|
1080
|
-
children: /* @__PURE__ */ Y(
|
|
1080
|
+
children: /* @__PURE__ */ Y(Me, {
|
|
1081
1081
|
size: 24,
|
|
1082
|
-
className:
|
|
1082
|
+
className: J.color
|
|
1083
1083
|
})
|
|
1084
1084
|
}), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("div", {
|
|
1085
1085
|
className: "flex items-center gap-3 mb-1.5",
|
|
@@ -1090,8 +1090,8 @@ function qe() {
|
|
|
1090
1090
|
}), /* @__PURE__ */ X("div", {
|
|
1091
1091
|
className: "flex items-center gap-3 text-sm flex-wrap",
|
|
1092
1092
|
children: [/* @__PURE__ */ X("span", {
|
|
1093
|
-
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${
|
|
1094
|
-
children: [/* @__PURE__ */ Y(
|
|
1093
|
+
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`,
|
|
1094
|
+
children: [/* @__PURE__ */ Y(Me, { size: 12 }), J.label]
|
|
1095
1095
|
}), /* @__PURE__ */ X("span", {
|
|
1096
1096
|
className: "text-[var(--color-text-secondary)]",
|
|
1097
1097
|
children: [
|
|
@@ -1099,7 +1099,7 @@ function qe() {
|
|
|
1099
1099
|
" ",
|
|
1100
1100
|
/* @__PURE__ */ Y("strong", {
|
|
1101
1101
|
className: "text-[var(--color-text-primary)]",
|
|
1102
|
-
children:
|
|
1102
|
+
children: U.position
|
|
1103
1103
|
})
|
|
1104
1104
|
]
|
|
1105
1105
|
})]
|
|
@@ -1118,7 +1118,7 @@ function qe() {
|
|
|
1118
1118
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1119
1119
|
children: /* @__PURE__ */ X("h2", {
|
|
1120
1120
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1121
|
-
children: [/* @__PURE__ */ Y(
|
|
1121
|
+
children: [/* @__PURE__ */ Y(q, { size: 14 }), "Applicant Information"]
|
|
1122
1122
|
})
|
|
1123
1123
|
}), /* @__PURE__ */ Y("div", {
|
|
1124
1124
|
className: "p-5",
|
|
@@ -1129,7 +1129,7 @@ function qe() {
|
|
|
1129
1129
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1130
1130
|
children: [/* @__PURE__ */ Y("div", {
|
|
1131
1131
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
1132
|
-
children: /* @__PURE__ */ Y(
|
|
1132
|
+
children: /* @__PURE__ */ Y(q, {
|
|
1133
1133
|
size: 16,
|
|
1134
1134
|
className: "text-accent-blue"
|
|
1135
1135
|
})
|
|
@@ -1145,7 +1145,7 @@ function qe() {
|
|
|
1145
1145
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1146
1146
|
children: [/* @__PURE__ */ Y("div", {
|
|
1147
1147
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
1148
|
-
children: /* @__PURE__ */ Y(
|
|
1148
|
+
children: /* @__PURE__ */ Y(K, {
|
|
1149
1149
|
size: 16,
|
|
1150
1150
|
className: "text-accent-indigo"
|
|
1151
1151
|
})
|
|
@@ -1157,18 +1157,18 @@ function qe() {
|
|
|
1157
1157
|
}), /* @__PURE__ */ X("div", {
|
|
1158
1158
|
className: "flex items-center gap-1.5",
|
|
1159
1159
|
children: [/* @__PURE__ */ Y("a", {
|
|
1160
|
-
href: `mailto:${
|
|
1160
|
+
href: `mailto:${U.email}`,
|
|
1161
1161
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate",
|
|
1162
|
-
children:
|
|
1162
|
+
children: U.email
|
|
1163
1163
|
}), /* @__PURE__ */ Y("button", {
|
|
1164
1164
|
type: "button",
|
|
1165
|
-
onClick:
|
|
1165
|
+
onClick: je,
|
|
1166
1166
|
className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
|
|
1167
1167
|
title: "Copy email",
|
|
1168
|
-
children:
|
|
1168
|
+
children: ae ? /* @__PURE__ */ Y(F, {
|
|
1169
1169
|
size: 12,
|
|
1170
1170
|
className: "text-status-success-text"
|
|
1171
|
-
}) : /* @__PURE__ */ Y(
|
|
1171
|
+
}) : /* @__PURE__ */ Y(L, {
|
|
1172
1172
|
size: 12,
|
|
1173
1173
|
className: "text-[var(--color-text-secondary)]"
|
|
1174
1174
|
})
|
|
@@ -1176,11 +1176,11 @@ function qe() {
|
|
|
1176
1176
|
})]
|
|
1177
1177
|
})]
|
|
1178
1178
|
}),
|
|
1179
|
-
|
|
1179
|
+
U.phone && /* @__PURE__ */ X("div", {
|
|
1180
1180
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1181
1181
|
children: [/* @__PURE__ */ Y("div", {
|
|
1182
1182
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
1183
|
-
children: /* @__PURE__ */ Y(
|
|
1183
|
+
children: /* @__PURE__ */ Y(Ee, {
|
|
1184
1184
|
size: 16,
|
|
1185
1185
|
className: "text-status-success-text"
|
|
1186
1186
|
})
|
|
@@ -1188,9 +1188,9 @@ function qe() {
|
|
|
1188
1188
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
1189
1189
|
children: "Phone"
|
|
1190
1190
|
}), /* @__PURE__ */ Y("a", {
|
|
1191
|
-
href: `tel:${
|
|
1191
|
+
href: `tel:${U.phone}`,
|
|
1192
1192
|
className: "text-sm font-semibold text-[var(--color-text-primary)] hover:underline",
|
|
1193
|
-
children:
|
|
1193
|
+
children: U.phone
|
|
1194
1194
|
})] })]
|
|
1195
1195
|
}),
|
|
1196
1196
|
/* @__PURE__ */ X("div", {
|
|
@@ -1206,10 +1206,10 @@ function qe() {
|
|
|
1206
1206
|
children: "Position"
|
|
1207
1207
|
}), /* @__PURE__ */ Y("p", {
|
|
1208
1208
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1209
|
-
children:
|
|
1209
|
+
children: U.position
|
|
1210
1210
|
})] })]
|
|
1211
1211
|
}),
|
|
1212
|
-
|
|
1212
|
+
U.department && /* @__PURE__ */ X("div", {
|
|
1213
1213
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1214
1214
|
children: [/* @__PURE__ */ Y("div", {
|
|
1215
1215
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
@@ -1222,14 +1222,14 @@ function qe() {
|
|
|
1222
1222
|
children: "Department"
|
|
1223
1223
|
}), /* @__PURE__ */ Y("p", {
|
|
1224
1224
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1225
|
-
children:
|
|
1225
|
+
children: U.department
|
|
1226
1226
|
})] })]
|
|
1227
1227
|
}),
|
|
1228
|
-
|
|
1228
|
+
U.linkedinUrl && /* @__PURE__ */ X("div", {
|
|
1229
1229
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1230
1230
|
children: [/* @__PURE__ */ Y("div", {
|
|
1231
1231
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
1232
|
-
children: /* @__PURE__ */ Y(
|
|
1232
|
+
children: /* @__PURE__ */ Y(Ce, {
|
|
1233
1233
|
size: 16,
|
|
1234
1234
|
className: "text-accent-blue"
|
|
1235
1235
|
})
|
|
@@ -1238,23 +1238,23 @@ function qe() {
|
|
|
1238
1238
|
children: [/* @__PURE__ */ Y("p", {
|
|
1239
1239
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
1240
1240
|
children: "LinkedIn"
|
|
1241
|
-
}),
|
|
1242
|
-
href:
|
|
1241
|
+
}), Ge ? /* @__PURE__ */ Y("a", {
|
|
1242
|
+
href: Ge,
|
|
1243
1243
|
target: "_blank",
|
|
1244
1244
|
rel: "noopener noreferrer",
|
|
1245
1245
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
1246
|
-
children:
|
|
1246
|
+
children: U.linkedinUrl
|
|
1247
1247
|
}) : /* @__PURE__ */ Y("span", {
|
|
1248
1248
|
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
1249
|
-
children:
|
|
1249
|
+
children: U.linkedinUrl
|
|
1250
1250
|
})]
|
|
1251
1251
|
})]
|
|
1252
1252
|
}),
|
|
1253
|
-
|
|
1253
|
+
U.portfolioUrl && /* @__PURE__ */ X("div", {
|
|
1254
1254
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1255
1255
|
children: [/* @__PURE__ */ Y("div", {
|
|
1256
1256
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
1257
|
-
children: /* @__PURE__ */ Y(
|
|
1257
|
+
children: /* @__PURE__ */ Y(W, {
|
|
1258
1258
|
size: 16,
|
|
1259
1259
|
className: "text-accent-indigo"
|
|
1260
1260
|
})
|
|
@@ -1263,23 +1263,23 @@ function qe() {
|
|
|
1263
1263
|
children: [/* @__PURE__ */ Y("p", {
|
|
1264
1264
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
1265
1265
|
children: "Portfolio"
|
|
1266
|
-
}),
|
|
1267
|
-
href:
|
|
1266
|
+
}), qe ? /* @__PURE__ */ Y("a", {
|
|
1267
|
+
href: qe,
|
|
1268
1268
|
target: "_blank",
|
|
1269
1269
|
rel: "noopener noreferrer",
|
|
1270
1270
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
1271
|
-
children:
|
|
1271
|
+
children: U.portfolioUrl
|
|
1272
1272
|
}) : /* @__PURE__ */ Y("span", {
|
|
1273
1273
|
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
1274
|
-
children:
|
|
1274
|
+
children: U.portfolioUrl
|
|
1275
1275
|
})]
|
|
1276
1276
|
})]
|
|
1277
1277
|
}),
|
|
1278
|
-
|
|
1278
|
+
U.productId && oe && /* @__PURE__ */ X("div", {
|
|
1279
1279
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1280
1280
|
children: [/* @__PURE__ */ Y("div", {
|
|
1281
1281
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
1282
|
-
children: /* @__PURE__ */ Y(
|
|
1282
|
+
children: /* @__PURE__ */ Y(Te, {
|
|
1283
1283
|
size: 16,
|
|
1284
1284
|
className: "text-accent-purple"
|
|
1285
1285
|
})
|
|
@@ -1288,14 +1288,14 @@ function qe() {
|
|
|
1288
1288
|
children: "Product"
|
|
1289
1289
|
}), /* @__PURE__ */ Y("p", {
|
|
1290
1290
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1291
|
-
children:
|
|
1291
|
+
children: oe
|
|
1292
1292
|
})] })]
|
|
1293
1293
|
}),
|
|
1294
1294
|
/* @__PURE__ */ X("div", {
|
|
1295
1295
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1296
1296
|
children: [/* @__PURE__ */ Y("div", {
|
|
1297
1297
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
1298
|
-
children: /* @__PURE__ */ Y(
|
|
1298
|
+
children: /* @__PURE__ */ Y(H, {
|
|
1299
1299
|
size: 16,
|
|
1300
1300
|
className: "text-status-success-text"
|
|
1301
1301
|
})
|
|
@@ -1304,46 +1304,46 @@ function qe() {
|
|
|
1304
1304
|
children: "Source"
|
|
1305
1305
|
}), /* @__PURE__ */ Y("p", {
|
|
1306
1306
|
className: "text-sm font-semibold text-[var(--color-text-primary)] capitalize",
|
|
1307
|
-
children:
|
|
1307
|
+
children: U.source.toLowerCase()
|
|
1308
1308
|
})] })]
|
|
1309
1309
|
})
|
|
1310
1310
|
]
|
|
1311
1311
|
})
|
|
1312
1312
|
})]
|
|
1313
1313
|
}),
|
|
1314
|
-
e && /* @__PURE__ */ Y(
|
|
1314
|
+
e && /* @__PURE__ */ Y(Je, {
|
|
1315
1315
|
applicationId: e,
|
|
1316
|
-
jobPostingId:
|
|
1316
|
+
jobPostingId: m.jobApplication.jobPostingId
|
|
1317
1317
|
}),
|
|
1318
|
-
|
|
1318
|
+
U.coverLetter && /* @__PURE__ */ X("div", {
|
|
1319
1319
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
1320
1320
|
children: [/* @__PURE__ */ Y("div", {
|
|
1321
1321
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1322
1322
|
children: /* @__PURE__ */ X("h2", {
|
|
1323
1323
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1324
|
-
children: [/* @__PURE__ */ Y(
|
|
1324
|
+
children: [/* @__PURE__ */ Y(V, { size: 14 }), "Cover Letter"]
|
|
1325
1325
|
})
|
|
1326
1326
|
}), /* @__PURE__ */ Y("div", {
|
|
1327
1327
|
className: "p-5",
|
|
1328
1328
|
children: /* @__PURE__ */ Y("p", {
|
|
1329
1329
|
className: "text-sm text-[var(--color-text-primary)] leading-relaxed whitespace-pre-wrap",
|
|
1330
|
-
children:
|
|
1330
|
+
children: U.coverLetter
|
|
1331
1331
|
})
|
|
1332
1332
|
})]
|
|
1333
1333
|
}),
|
|
1334
|
-
|
|
1334
|
+
U.metadata && Object.keys(U.metadata).length > 0 && /* @__PURE__ */ X("div", {
|
|
1335
1335
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
1336
1336
|
children: [/* @__PURE__ */ Y("div", {
|
|
1337
1337
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1338
1338
|
children: /* @__PURE__ */ X("h2", {
|
|
1339
1339
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1340
|
-
children: [/* @__PURE__ */ Y(
|
|
1340
|
+
children: [/* @__PURE__ */ Y(z, { size: 14 }), "Additional Data"]
|
|
1341
1341
|
})
|
|
1342
1342
|
}), /* @__PURE__ */ Y("div", {
|
|
1343
1343
|
className: "p-5",
|
|
1344
1344
|
children: /* @__PURE__ */ Y("div", {
|
|
1345
1345
|
className: "space-y-2.5",
|
|
1346
|
-
children: Object.entries(
|
|
1346
|
+
children: Object.entries(U.metadata).map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
1347
1347
|
className: "flex items-start gap-3 py-1.5 border-b border-[var(--color-border-default)] last:border-0",
|
|
1348
1348
|
children: [/* @__PURE__ */ Y("span", {
|
|
1349
1349
|
className: "text-xs font-medium text-[var(--color-text-secondary)] min-w-[120px] uppercase tracking-wider",
|
|
@@ -1366,16 +1366,16 @@ function qe() {
|
|
|
1366
1366
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1367
1367
|
children: /* @__PURE__ */ X("h2", {
|
|
1368
1368
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1369
|
-
children: [/* @__PURE__ */ Y(
|
|
1369
|
+
children: [/* @__PURE__ */ Y(V, { size: 14 }), "Resume"]
|
|
1370
1370
|
})
|
|
1371
1371
|
}), /* @__PURE__ */ Y("div", {
|
|
1372
1372
|
className: "p-5",
|
|
1373
|
-
children:
|
|
1373
|
+
children: U.resumeFileName ? /* @__PURE__ */ X(Le, { children: [
|
|
1374
1374
|
/* @__PURE__ */ X("div", {
|
|
1375
1375
|
className: "flex items-center gap-3 mb-3",
|
|
1376
1376
|
children: [/* @__PURE__ */ Y("div", {
|
|
1377
1377
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center flex-shrink-0",
|
|
1378
|
-
children: /* @__PURE__ */ Y(
|
|
1378
|
+
children: /* @__PURE__ */ Y(V, {
|
|
1379
1379
|
size: 16,
|
|
1380
1380
|
className: "text-accent-blue"
|
|
1381
1381
|
})
|
|
@@ -1383,7 +1383,7 @@ function qe() {
|
|
|
1383
1383
|
className: "min-w-0",
|
|
1384
1384
|
children: [/* @__PURE__ */ Y("p", {
|
|
1385
1385
|
className: "text-sm font-medium text-[var(--color-text-primary)] truncate",
|
|
1386
|
-
children:
|
|
1386
|
+
children: U.resumeFileName
|
|
1387
1387
|
}), $ ? /* @__PURE__ */ Y("p", {
|
|
1388
1388
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
1389
1389
|
children: $
|
|
@@ -1392,25 +1392,25 @@ function qe() {
|
|
|
1392
1392
|
}),
|
|
1393
1393
|
/* @__PURE__ */ X("button", {
|
|
1394
1394
|
type: "button",
|
|
1395
|
-
onClick:
|
|
1395
|
+
onClick: ke,
|
|
1396
1396
|
disabled: fe,
|
|
1397
1397
|
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",
|
|
1398
|
-
children: [fe ? /* @__PURE__ */ Y(
|
|
1398
|
+
children: [fe ? /* @__PURE__ */ Y(G, {
|
|
1399
1399
|
size: 15,
|
|
1400
1400
|
className: "animate-spin"
|
|
1401
|
-
}) : /* @__PURE__ */ Y(
|
|
1401
|
+
}) : /* @__PURE__ */ Y(Se, { size: 15 }), "Download Resume"]
|
|
1402
1402
|
}),
|
|
1403
1403
|
/* @__PURE__ */ X("button", {
|
|
1404
1404
|
type: "button",
|
|
1405
|
-
onClick:
|
|
1405
|
+
onClick: Ae,
|
|
1406
1406
|
disabled: T,
|
|
1407
1407
|
className: "mt-2 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 disabled:opacity-50",
|
|
1408
|
-
children: [T ? /* @__PURE__ */ Y(
|
|
1408
|
+
children: [T ? /* @__PURE__ */ Y(G, {
|
|
1409
1409
|
size: 15,
|
|
1410
1410
|
className: "animate-spin"
|
|
1411
|
-
}) : /* @__PURE__ */ Y(
|
|
1411
|
+
}) : /* @__PURE__ */ Y(B, { size: 15 }), "Preview Resume"]
|
|
1412
1412
|
}),
|
|
1413
|
-
|
|
1413
|
+
c && /* @__PURE__ */ Y("p", {
|
|
1414
1414
|
className: "mt-2 text-xs text-status-error-text",
|
|
1415
1415
|
children: "Could not generate a download link. Please try again."
|
|
1416
1416
|
})
|
|
@@ -1437,51 +1437,51 @@ function qe() {
|
|
|
1437
1437
|
children: "Applied"
|
|
1438
1438
|
}), /* @__PURE__ */ Y("p", {
|
|
1439
1439
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
1440
|
-
children: Q(
|
|
1440
|
+
children: Q(U.createdAt)
|
|
1441
1441
|
})] })]
|
|
1442
|
-
}),
|
|
1442
|
+
}), U.updatedAt !== U.createdAt && /* @__PURE__ */ X("div", {
|
|
1443
1443
|
className: "flex items-start gap-3",
|
|
1444
1444
|
children: [/* @__PURE__ */ Y("div", { className: "size-2 rounded-full bg-status-warning-bg mt-1.5 flex-shrink-0" }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
|
|
1445
1445
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
1446
1446
|
children: "Last Updated"
|
|
1447
1447
|
}), /* @__PURE__ */ Y("p", {
|
|
1448
1448
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
1449
|
-
children: Q(
|
|
1449
|
+
children: Q(U.updatedAt)
|
|
1450
1450
|
})] })]
|
|
1451
1451
|
})]
|
|
1452
1452
|
})]
|
|
1453
1453
|
}),
|
|
1454
|
-
/* @__PURE__ */ X(
|
|
1454
|
+
/* @__PURE__ */ X(Re, {
|
|
1455
1455
|
"data-tour": "support-application-reply",
|
|
1456
1456
|
className: "overflow-hidden p-0",
|
|
1457
1457
|
children: [/* @__PURE__ */ Y("div", {
|
|
1458
1458
|
className: "px-5 py-3.5 border-b border-border-seam",
|
|
1459
1459
|
children: /* @__PURE__ */ X("h2", {
|
|
1460
1460
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
|
|
1461
|
-
children: [/* @__PURE__ */ Y(
|
|
1461
|
+
children: [/* @__PURE__ */ Y(Oe, { size: 12 }), "Reply"]
|
|
1462
1462
|
})
|
|
1463
1463
|
}), /* @__PURE__ */ X("div", {
|
|
1464
1464
|
className: "p-5",
|
|
1465
1465
|
children: [
|
|
1466
|
-
|
|
1466
|
+
f && /* @__PURE__ */ X("div", {
|
|
1467
1467
|
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",
|
|
1468
1468
|
children: [/* @__PURE__ */ Y(F, { size: 14 }), "Reply sent to the applicant!"]
|
|
1469
1469
|
}),
|
|
1470
|
-
/* @__PURE__ */ Y(
|
|
1470
|
+
/* @__PURE__ */ Y(be, {
|
|
1471
1471
|
id: "reply-message",
|
|
1472
|
-
value:
|
|
1473
|
-
onChange:
|
|
1472
|
+
value: u,
|
|
1473
|
+
onChange: d,
|
|
1474
1474
|
placeholder: "Type your reply… This will be sent as a branded email to the applicant."
|
|
1475
1475
|
}),
|
|
1476
1476
|
/* @__PURE__ */ X("button", {
|
|
1477
1477
|
type: "button",
|
|
1478
|
-
onClick:
|
|
1479
|
-
disabled: R || !
|
|
1478
|
+
onClick: we,
|
|
1479
|
+
disabled: R || !u.trim(),
|
|
1480
1480
|
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",
|
|
1481
|
-
children: [R ? /* @__PURE__ */ Y(
|
|
1481
|
+
children: [R ? /* @__PURE__ */ Y(G, {
|
|
1482
1482
|
size: 15,
|
|
1483
1483
|
className: "animate-spin"
|
|
1484
|
-
}) : /* @__PURE__ */ Y(
|
|
1484
|
+
}) : /* @__PURE__ */ Y(Oe, { size: 15 }), "Send Reply"]
|
|
1485
1485
|
})
|
|
1486
1486
|
]
|
|
1487
1487
|
})]
|
|
@@ -1501,54 +1501,28 @@ function qe() {
|
|
|
1501
1501
|
className: "block text-xs font-medium text-[var(--color-text-secondary)] mb-1.5",
|
|
1502
1502
|
htmlFor: "jobapplicationdetailpage-status-0",
|
|
1503
1503
|
children: "Status"
|
|
1504
|
-
}), /* @__PURE__ */
|
|
1504
|
+
}), /* @__PURE__ */ Y("select", {
|
|
1505
1505
|
id: "jobapplicationdetailpage-status-0",
|
|
1506
|
-
value:
|
|
1507
|
-
onChange: (e) =>
|
|
1506
|
+
value: U.status,
|
|
1507
|
+
onChange: (e) => De(e.target.value),
|
|
1508
1508
|
disabled: y,
|
|
1509
1509
|
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",
|
|
1510
|
-
children:
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
}),
|
|
1515
|
-
/* @__PURE__ */ Y("option", {
|
|
1516
|
-
value: "SCREENING",
|
|
1517
|
-
children: "Screening"
|
|
1518
|
-
}),
|
|
1519
|
-
/* @__PURE__ */ Y("option", {
|
|
1520
|
-
value: "SHORTLISTED",
|
|
1521
|
-
children: "Shortlisted"
|
|
1522
|
-
}),
|
|
1523
|
-
/* @__PURE__ */ Y("option", {
|
|
1524
|
-
value: "INTERVIEW",
|
|
1525
|
-
children: "Interview"
|
|
1526
|
-
}),
|
|
1527
|
-
/* @__PURE__ */ Y("option", {
|
|
1528
|
-
value: "HIRED",
|
|
1529
|
-
children: "Hired"
|
|
1530
|
-
}),
|
|
1531
|
-
/* @__PURE__ */ Y("option", {
|
|
1532
|
-
value: "REJECTED",
|
|
1533
|
-
children: "Rejected"
|
|
1534
|
-
}),
|
|
1535
|
-
/* @__PURE__ */ Y("option", {
|
|
1536
|
-
value: "ARCHIVED",
|
|
1537
|
-
children: "Archived"
|
|
1538
|
-
})
|
|
1539
|
-
]
|
|
1510
|
+
children: ve.map((e) => /* @__PURE__ */ Y("option", {
|
|
1511
|
+
value: e,
|
|
1512
|
+
children: _e[e] || e
|
|
1513
|
+
}, e))
|
|
1540
1514
|
})] }), /* @__PURE__ */ X("div", {
|
|
1541
1515
|
className: "space-y-2",
|
|
1542
1516
|
children: [/* @__PURE__ */ X("a", {
|
|
1543
|
-
href: `mailto:${
|
|
1517
|
+
href: `mailto:${U.email}?subject=${encodeURIComponent(`Your application for ${U.position}`)}`,
|
|
1544
1518
|
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",
|
|
1545
|
-
children: [/* @__PURE__ */ Y(
|
|
1546
|
-
}),
|
|
1519
|
+
children: [/* @__PURE__ */ Y(K, { size: 15 }), "Email Applicant"]
|
|
1520
|
+
}), U.status !== "ARCHIVED" && /* @__PURE__ */ X("button", {
|
|
1547
1521
|
type: "button",
|
|
1548
|
-
onClick: () =>
|
|
1522
|
+
onClick: () => De("ARCHIVED"),
|
|
1549
1523
|
disabled: y,
|
|
1550
1524
|
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",
|
|
1551
|
-
children: [/* @__PURE__ */ Y(
|
|
1525
|
+
children: [/* @__PURE__ */ Y(A, { size: 15 }), "Archive"]
|
|
1552
1526
|
})]
|
|
1553
1527
|
})]
|
|
1554
1528
|
})]
|
|
@@ -1561,20 +1535,20 @@ function qe() {
|
|
|
1561
1535
|
onOpenChange: me,
|
|
1562
1536
|
children: /* @__PURE__ */ X(te, {
|
|
1563
1537
|
className: "sm:max-w-4xl",
|
|
1564
|
-
children: [/* @__PURE__ */ X(
|
|
1538
|
+
children: [/* @__PURE__ */ X(re, { children: [/* @__PURE__ */ Y(ie, { children: "Resume Preview" }), /* @__PURE__ */ Y(ne, { children: U.resumeFileName ?? "Candidate resume" })] }), /* @__PURE__ */ Y("div", {
|
|
1565
1539
|
className: "h-[70vh] w-full rounded-lg border border-border-seam bg-bg-sunken/30 overflow-hidden",
|
|
1566
1540
|
children: T ? /* @__PURE__ */ X("div", {
|
|
1567
1541
|
className: "h-full flex flex-col items-center justify-center gap-3",
|
|
1568
|
-
children: [/* @__PURE__ */ Y(
|
|
1542
|
+
children: [/* @__PURE__ */ Y(G, {
|
|
1569
1543
|
size: 28,
|
|
1570
1544
|
className: "animate-spin text-text-secondary"
|
|
1571
1545
|
}), /* @__PURE__ */ Y("p", {
|
|
1572
1546
|
className: "text-sm text-text-secondary",
|
|
1573
1547
|
children: "Loading preview…"
|
|
1574
1548
|
})]
|
|
1575
|
-
}) :
|
|
1549
|
+
}) : he || !S ? /* @__PURE__ */ X("div", {
|
|
1576
1550
|
className: "h-full flex flex-col items-center justify-center gap-3",
|
|
1577
|
-
children: [/* @__PURE__ */ Y(
|
|
1551
|
+
children: [/* @__PURE__ */ Y(xe, {
|
|
1578
1552
|
size: 28,
|
|
1579
1553
|
className: "text-status-error-text"
|
|
1580
1554
|
}), /* @__PURE__ */ Y("p", {
|
|
@@ -1582,7 +1556,7 @@ function qe() {
|
|
|
1582
1556
|
children: "Could not load the resume preview. Try downloading instead."
|
|
1583
1557
|
})]
|
|
1584
1558
|
}) : /* @__PURE__ */ Y("iframe", {
|
|
1585
|
-
src:
|
|
1559
|
+
src: S,
|
|
1586
1560
|
title: `Resume preview — ${Z}`,
|
|
1587
1561
|
className: "h-full w-full"
|
|
1588
1562
|
})
|
|
@@ -1593,6 +1567,6 @@ function qe() {
|
|
|
1593
1567
|
});
|
|
1594
1568
|
}
|
|
1595
1569
|
//#endregion
|
|
1596
|
-
export {
|
|
1570
|
+
export { Ye as JobApplicationDetailPage };
|
|
1597
1571
|
|
|
1598
1572
|
//# sourceMappingURL=JobApplicationDetailPage.js.map
|