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