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