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