@burdenoff/microfe-support 2026.824.2 → 2026.824.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.
@@ -1,52 +1,53 @@
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 ce, useGetJobApplicationInterviewRoundsQuery as le, useGetJobApplicationQuery as m, useGetJobApplicationResumePreviewUrlLazyQuery as h, useGetJobApplicationResumeUrlLazyQuery as ue, useGetJobPostingQuery as g, useRandomizeAndSendAssignmentMutation as _, useRecordAssignmentSubmissionMutation as de, useRemoveInterviewerFromRoundMutation as v, useReplyToJobApplicationMutation as y, useSendRoundMessageToCandidateMutation as fe, useSubmitInterviewFeedbackMutation as pe, useUpdateInterviewFeedbackMutation as me, useUpdateJobApplicationStatusMutation as he } from "../../generated/global-operations.js";
3
- import { InterviewRoundStatus as b, InterviewRoundType as x, InterviewVerdict as S, InterviewerRole as C } from "../../generated/global-types.js";
4
- import w from "../../node_modules/dompurify/dist/purify.es.js";
1
+ import { Badge as e, Button as t, Card as n, CardContent as r, CardHeader as i, CardTitle as ee, Dialog as a, DialogContent as te, DialogDescription as ne, DialogFooter as o, DialogHeader as re, DialogTitle as ie, Input as ae, Label as s, Select as c, SelectContent as l, SelectItem as u, SelectTrigger as d, SelectValue as f, Textarea as p } from "../components/ui.js";
2
+ import { useAssignInterviewersToRoundMutation as oe, useCreateInterviewRoundMutation as se, useGetInterviewersQuery as m, useGetJobApplicationInterviewRoundsQuery as ce, useGetJobApplicationQuery as h, useGetJobApplicationResumePreviewUrlLazyQuery as g, useGetJobApplicationResumeUrlLazyQuery as le, useGetJobPostingQuery as _, useRandomizeAndSendAssignmentMutation as v, useRecordAssignmentSubmissionMutation as ue, useRemoveInterviewerFromRoundMutation as y, useReplyToJobApplicationMutation as b, useSendRoundMessageToCandidateMutation as de, useSubmitInterviewFeedbackMutation as fe, useUpdateInterviewFeedbackMutation as pe, useUpdateJobApplicationStatusMutation as me } from "../../generated/global-operations.js";
3
+ import { InterviewRoundStatus as x, InterviewRoundType as S, InterviewVerdict as C, InterviewerRole as w } from "../../generated/global-types.js";
4
+ import he from "../../node_modules/dompurify/dist/purify.es.js";
5
5
  import { nativeCopyText as ge, nativeImpact as T } from "../../utils/nativeBridge.js";
6
6
  /* empty css */
7
7
  import { roundStatusConfig as _e } from "../constants/pipeline.js";
8
- import { useEffect as ve, useState as E } from "react";
9
- import { AlertCircle as D, Archive as O, ArrowLeft as k, Briefcase as ye, Building2 as A, Calendar as j, CheckCircle as M, Clock as N, Copy as P, Download as F, Edit3 as I, ExternalLink as L, Eye as R, FileText as z, Globe as be, Inbox as B, Link2 as V, Linkedin as H, Loader2 as U, Mail as W, MessageSquare as G, Package as xe, Phone as K, Plus as q, Send as Se, Star as J, User as Ce, UserPlus as we, UserX as Te, Users as Ee, XCircle as De } from "lucide-react";
10
- import { useLocation as Oe, useNavigate as ke, useParams as Ae } from "react-router";
11
- import { graphqlFetch as je } from "@burdenoff/fe-libs/shared/graphql/fetch";
12
- import { Fragment as Me, jsx as Y, jsxs as X } from "react/jsx-runtime";
13
- import { EmphasisPanel as Ne, IllustratedEmptyState as Pe, NextSteps as Fe, PagePurpose as Ie } from "@burdenoff/fe-libs/ui";
8
+ import { RichTextEditor as ve } from "../components/careers/RichTextEditor.js";
9
+ import { useEffect as E, useState as D } from "react";
10
+ import { AlertCircle as ye, Archive as O, 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 be, Inbox as V, Link2 as H, Linkedin as U, Loader2 as W, Mail as G, MessageSquare as xe, Package as K, Phone as Se, Plus as q, Send as J, Star as Ce, User as we, UserPlus as Te, UserX as Ee, Users as De, XCircle as Oe } from "lucide-react";
11
+ import { useLocation as ke, useNavigate as Ae, useParams as je } from "react-router";
12
+ import { graphqlFetch as Me } from "@burdenoff/fe-libs/shared/graphql/fetch";
13
+ import { Fragment as Ne, jsx as Y, jsxs as X } from "react/jsx-runtime";
14
+ import { EmphasisPanel as Pe, IllustratedEmptyState as Fe, NextSteps as Ie, PagePurpose as Le } from "@burdenoff/fe-libs/ui";
14
15
  //#region src/support/pages/JobApplicationDetailPage.tsx
15
- var Z = "__custom__", Le = {
16
+ var Z = "__custom__", Re = {
16
17
  NEW: {
17
18
  label: "New",
18
19
  color: "text-accent-blue",
19
- icon: B,
20
+ icon: V,
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: R,
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: J,
32
+ icon: Ce,
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: Ee,
38
+ icon: De,
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: M,
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: De,
50
+ icon: Oe,
50
51
  bg: "bg-status-error-bg-subtle border-border-subtle"
51
52
  },
52
53
  ARCHIVED: {
@@ -66,7 +67,7 @@ function Q(e) {
66
67
  minute: "2-digit"
67
68
  });
68
69
  }
69
- function Re(e) {
70
+ function ze(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 ze(e) {
78
+ function Be(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 Be(e) {
84
+ function Ve(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 Ve(e) {
94
+ function He(e) {
94
95
  if (!e) return null;
95
96
  try {
96
97
  let t = new URL(e);
@@ -99,13 +100,13 @@ function Ve(e) {
99
100
  return null;
100
101
  }
101
102
  }
102
- function He({ round: a, applicationId: te, interviewers: o, interviewersLoading: s, onAssign: ne, onRemoveInterviewer: re, onSendMessage: oe, onSubmitFeedback: se, onUpdateFeedback: ce }) {
103
- let [le, m] = E(!1), [h, ue] = E(null), [g, v] = E(""), [y, fe] = E(""), [pe, me] = E(""), [he, b] = E(""), [C, ge] = E(a.submittedRepoUrl ?? ""), [T, ve] = E(a.submittedVideoUrl ?? ""), [O, k] = E(a.submittedNotes ?? ""), [ye, A] = E(null), [M, { loading: N }] = _({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [P, { loading: F }] = de({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), L = a.roundType === x.TakeHome || !!a.roundConfig?.isAssignmentRound, R = !!a.assignment, be = !!(a.submittedRepoUrl || a.submittedVideoUrl || a.submittedAt), B = R || be, V = a.emailLogs.find((e) => e.emailType === "ASSIGNMENT")?.sentAt, H = _e[a.status] ?? _e.SCHEDULED, W = () => {
104
- ue(null), v(""), fe(""), me(""), b("");
105
- }, xe = async () => {
103
+ function Ue({ round: a, applicationId: te, interviewers: ne, interviewersLoading: o, onAssign: re, onRemoveInterviewer: ie, onSendMessage: oe, onSubmitFeedback: se, onUpdateFeedback: m }) {
104
+ let [ce, h] = D(!1), [g, le] = D(null), [_, y] = D(""), [b, de] = D(""), [fe, pe] = D(""), [me, x] = D(""), [w, ge] = D(a.submittedRepoUrl ?? ""), [T, ve] = D(a.submittedVideoUrl ?? ""), [E, O] = D(a.submittedNotes ?? ""), [k, A] = D(null), [j, { loading: N }] = v({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [P, { loading: F }] = ue({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), I = a.roundType === S.TakeHome || !!a.roundConfig?.isAssignmentRound, R = !!a.assignment, z = !!(a.submittedRepoUrl || a.submittedVideoUrl || a.submittedAt), be = R || z, V = a.emailLogs.find((e) => e.emailType === "ASSIGNMENT")?.sentAt, H = _e[a.status] ?? _e.SCHEDULED, U = () => {
105
+ le(null), y(""), de(""), pe(""), x("");
106
+ }, G = async () => {
106
107
  A(null);
107
108
  try {
108
- await M({ variables: { input: {
109
+ await j({ variables: { input: {
109
110
  applicationId: te,
110
111
  roundId: a.id
111
112
  } } });
@@ -114,12 +115,12 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
114
115
  }
115
116
  }, K = async () => {
116
117
  A(null);
117
- let e = C.trim() || void 0, t = T.trim() || void 0, n = O.trim() || void 0;
118
- if (e && !Ve(e)) {
118
+ let e = w.trim() || void 0, t = T.trim() || void 0, n = E.trim() || void 0;
119
+ if (e && !He(e)) {
119
120
  A("GitHub repo URL must start with http:// or https://.");
120
121
  return;
121
122
  }
122
- if (t && !Ve(t)) {
123
+ if (t && !He(t)) {
123
124
  A("Jam video URL must start with http:// or https://.");
124
125
  return;
125
126
  }
@@ -137,10 +138,10 @@ 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
- }, Ce = () => {
141
- W(), m(!0);
142
- }, Ee = (e) => {
143
- ue(e), v(e.interviewerId), fe(e.rating?.toString() ?? ""), me(e.verdict ?? ""), b(e.internalNotes ?? ""), m(!0);
141
+ }, Se = () => {
142
+ U(), h(!0);
143
+ }, we = (e) => {
144
+ le(e), y(e.interviewerId), de(e.rating?.toString() ?? ""), pe(e.verdict ?? ""), x(e.internalNotes ?? ""), h(!0);
144
145
  };
145
146
  return /* @__PURE__ */ X("div", {
146
147
  className: "border border-border-default rounded-lg p-4 space-y-4",
@@ -166,19 +167,19 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
166
167
  ]
167
168
  }), a.scheduledAt && /* @__PURE__ */ X("p", {
168
169
  className: "text-xs text-text-secondary flex items-center gap-1",
169
- children: [/* @__PURE__ */ Y(j, { size: 12 }), Q(a.scheduledAt)]
170
+ children: [/* @__PURE__ */ Y(M, { size: 12 }), Q(a.scheduledAt)]
170
171
  })] }), /* @__PURE__ */ X("div", {
171
172
  className: "flex items-center gap-2",
172
173
  children: [/* @__PURE__ */ X(t, {
173
174
  variant: "outline",
174
175
  size: "sm",
175
- onClick: ne,
176
- children: [/* @__PURE__ */ Y(we, { size: 14 }), "Assign"]
176
+ onClick: re,
177
+ children: [/* @__PURE__ */ Y(Te, { size: 14 }), "Assign"]
177
178
  }), /* @__PURE__ */ X(t, {
178
179
  variant: "outline",
179
180
  size: "sm",
180
181
  onClick: oe,
181
- children: [/* @__PURE__ */ Y(G, { size: 14 }), "Message"]
182
+ children: [/* @__PURE__ */ Y(xe, { size: 14 }), "Message"]
182
183
  })]
183
184
  })]
184
185
  }),
@@ -203,10 +204,10 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
203
204
  }),
204
205
  /* @__PURE__ */ Y("button", {
205
206
  type: "button",
206
- onClick: () => re(a.id, t.interviewer.id),
207
+ onClick: () => ie(a.id, t.interviewer.id),
207
208
  className: "p-0.5 rounded-full hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
208
209
  title: "Remove interviewer",
209
- children: /* @__PURE__ */ Y(Te, { size: 12 })
210
+ children: /* @__PURE__ */ Y(Ee, { size: 12 })
210
211
  })
211
212
  ]
212
213
  }, t.id))
@@ -229,27 +230,27 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
229
230
  })
230
231
  ]
231
232
  }),
232
- L && /* @__PURE__ */ X(n, {
233
+ I && /* @__PURE__ */ X(n, {
233
234
  className: "border border-border-default bg-bg-surface",
234
235
  children: [/* @__PURE__ */ Y(i, {
235
236
  className: "pb-2",
236
237
  children: /* @__PURE__ */ X(ee, {
237
238
  className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
238
- children: [/* @__PURE__ */ Y(z, { size: 14 }), "Assignment"]
239
+ children: [/* @__PURE__ */ Y(B, { size: 14 }), "Assignment"]
239
240
  })
240
241
  }), /* @__PURE__ */ X(r, {
241
242
  className: "space-y-3",
242
- children: [ye && /* @__PURE__ */ X("div", {
243
+ children: [k && /* @__PURE__ */ X("div", {
243
244
  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(D, { size: 14 }), ye]
245
- }), !R && !be ? /* @__PURE__ */ X(t, {
245
+ children: [/* @__PURE__ */ Y(ye, { size: 14 }), k]
246
+ }), !R && !z ? /* @__PURE__ */ X(t, {
246
247
  size: "sm",
247
- onClick: xe,
248
+ onClick: G,
248
249
  disabled: N,
249
- children: [N ? /* @__PURE__ */ Y(U, {
250
+ children: [N ? /* @__PURE__ */ Y(W, {
250
251
  size: 14,
251
252
  className: "animate-spin mr-1"
252
- }) : /* @__PURE__ */ Y(Se, { size: 14 }), "Randomize & Send Assignment"]
253
+ }) : /* @__PURE__ */ Y(J, { size: 14 }), "Randomize & Send Assignment"]
253
254
  }) : /* @__PURE__ */ X("div", {
254
255
  className: "space-y-4",
255
256
  children: [a.assignment && /* @__PURE__ */ X("div", {
@@ -261,41 +262,41 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
261
262
  }),
262
263
  /* @__PURE__ */ Y("div", {
263
264
  className: "support-richtext text-sm text-text-secondary",
264
- dangerouslySetInnerHTML: { __html: w.sanitize(a.assignment.description) }
265
+ dangerouslySetInnerHTML: { __html: he.sanitize(a.assignment.description) }
265
266
  }),
266
267
  V && /* @__PURE__ */ X("p", {
267
268
  className: "text-[11px] text-text-secondary",
268
269
  children: ["Sent ", Q(V)]
269
270
  })
270
271
  ]
271
- }), B && /* @__PURE__ */ X("div", {
272
+ }), be && /* @__PURE__ */ X("div", {
272
273
  className: "space-y-3",
273
274
  children: [
274
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
275
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
275
276
  htmlFor: `assignment-repo-${a.id}`,
276
277
  children: "GitHub Repo URL"
277
- }), /* @__PURE__ */ Y(ie, {
278
+ }), /* @__PURE__ */ Y(ae, {
278
279
  id: `assignment-repo-${a.id}`,
279
- value: C,
280
+ value: w,
280
281
  onChange: (e) => ge(e.target.value),
281
282
  placeholder: "https://github.com/…"
282
283
  })] }),
283
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
284
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
284
285
  htmlFor: `assignment-video-${a.id}`,
285
286
  children: "Jam Video URL"
286
- }), /* @__PURE__ */ Y(ie, {
287
+ }), /* @__PURE__ */ Y(ae, {
287
288
  id: `assignment-video-${a.id}`,
288
289
  value: T,
289
290
  onChange: (e) => ve(e.target.value),
290
291
  placeholder: "https://jam.dev/…"
291
292
  })] }),
292
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
293
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
293
294
  htmlFor: `assignment-notes-${a.id}`,
294
295
  children: "Notes"
295
- }), /* @__PURE__ */ Y(ae, {
296
+ }), /* @__PURE__ */ Y(p, {
296
297
  id: `assignment-notes-${a.id}`,
297
- value: O,
298
- onChange: (e) => k(e.target.value),
298
+ value: E,
299
+ onChange: (e) => O(e.target.value),
299
300
  placeholder: "Add submission notes…",
300
301
  rows: 3
301
302
  })] }),
@@ -304,8 +305,8 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
304
305
  children: /* @__PURE__ */ X(t, {
305
306
  size: "sm",
306
307
  onClick: K,
307
- disabled: F || !C.trim() && !T.trim() && !O.trim(),
308
- children: [F ? /* @__PURE__ */ Y(U, {
308
+ disabled: F || !w.trim() && !T.trim() && !E.trim(),
309
+ children: [F ? /* @__PURE__ */ Y(W, {
309
310
  size: 14,
310
311
  className: "animate-spin mr-1"
311
312
  }) : null, "Record Submission"]
@@ -324,10 +325,10 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
324
325
  children: [/* @__PURE__ */ Y("p", {
325
326
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
326
327
  children: "Feedback"
327
- }), !le && /* @__PURE__ */ X(t, {
328
+ }), !ce && /* @__PURE__ */ X(t, {
328
329
  variant: "ghost",
329
330
  size: "sm",
330
- onClick: Ce,
331
+ onClick: Se,
331
332
  children: [/* @__PURE__ */ Y(q, { size: 14 }), "Add Feedback"]
332
333
  })]
333
334
  }),
@@ -344,19 +345,19 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
344
345
  className: "flex items-center gap-2 mt-1",
345
346
  children: [n.rating && /* @__PURE__ */ Y("span", {
346
347
  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(J, {
348
+ children: Array.from({ length: n.rating }).map((e, t) => /* @__PURE__ */ Y(Ce, {
348
349
  size: 12,
349
350
  fill: "currentColor"
350
351
  }, t))
351
352
  }), n.verdict && /* @__PURE__ */ Y(e, {
352
- className: `${Be(n.verdict)} text-xs`,
353
+ className: `${Ve(n.verdict)} text-xs`,
353
354
  children: $(n.verdict)
354
355
  })]
355
356
  })] }), /* @__PURE__ */ Y(t, {
356
357
  variant: "ghost",
357
358
  size: "sm",
358
- onClick: () => Ee(n),
359
- children: /* @__PURE__ */ Y(I, { size: 14 })
359
+ onClick: () => we(n),
360
+ children: /* @__PURE__ */ Y(L, { size: 14 })
360
361
  })]
361
362
  }), n.internalNotes && /* @__PURE__ */ Y("p", {
362
363
  className: "mt-2 text-sm text-text-secondary whitespace-pre-wrap",
@@ -364,70 +365,70 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
364
365
  })]
365
366
  }, n.id))
366
367
  }),
367
- le && /* @__PURE__ */ X("div", {
368
+ ce && /* @__PURE__ */ X("div", {
368
369
  className: "p-3 rounded-lg border border-border-default bg-bg-surface space-y-3",
369
370
  children: [
370
- !h && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
371
+ !g && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
371
372
  htmlFor: `feedback-interviewer-${a.id}`,
372
373
  children: "Interviewer"
373
- }), /* @__PURE__ */ X(l, {
374
- value: g,
375
- onValueChange: v,
376
- children: [/* @__PURE__ */ Y(f, {
374
+ }), /* @__PURE__ */ X(c, {
375
+ value: _,
376
+ onValueChange: y,
377
+ children: [/* @__PURE__ */ Y(d, {
377
378
  id: `feedback-interviewer-${a.id}`,
378
- children: /* @__PURE__ */ Y(p, { placeholder: "Select interviewer" })
379
- }), /* @__PURE__ */ Y(u, { children: s ? /* @__PURE__ */ Y(d, {
379
+ children: /* @__PURE__ */ Y(f, { placeholder: "Select interviewer" })
380
+ }), /* @__PURE__ */ Y(l, { children: o ? /* @__PURE__ */ Y(u, {
380
381
  value: "loading",
381
382
  disabled: !0,
382
383
  children: "Loading…"
383
- }) : o.map((e) => /* @__PURE__ */ Y(d, {
384
+ }) : ne.map((e) => /* @__PURE__ */ Y(u, {
384
385
  value: e.id,
385
386
  children: e.name
386
387
  }, e.id)) })]
387
388
  })] }),
388
389
  /* @__PURE__ */ X("div", {
389
390
  className: "grid grid-cols-2 gap-3",
390
- children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
391
+ children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
391
392
  htmlFor: `feedback-rating-${a.id}`,
392
393
  children: "Rating"
393
- }), /* @__PURE__ */ X(l, {
394
- value: y,
395
- onValueChange: fe,
396
- children: [/* @__PURE__ */ Y(f, {
394
+ }), /* @__PURE__ */ X(c, {
395
+ value: b,
396
+ onValueChange: de,
397
+ children: [/* @__PURE__ */ Y(d, {
397
398
  id: `feedback-rating-${a.id}`,
398
- children: /* @__PURE__ */ Y(p, { placeholder: "1–5" })
399
- }), /* @__PURE__ */ Y(u, { children: [
399
+ children: /* @__PURE__ */ Y(f, { placeholder: "1–5" })
400
+ }), /* @__PURE__ */ Y(l, { children: [
400
401
  1,
401
402
  2,
402
403
  3,
403
404
  4,
404
405
  5
405
- ].map((e) => /* @__PURE__ */ Y(d, {
406
+ ].map((e) => /* @__PURE__ */ Y(u, {
406
407
  value: String(e),
407
408
  children: e
408
409
  }, e)) })]
409
- })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
410
+ })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
410
411
  htmlFor: `feedback-verdict-${a.id}`,
411
412
  children: "Verdict"
412
- }), /* @__PURE__ */ X(l, {
413
- value: pe,
414
- onValueChange: (e) => me(e),
415
- children: [/* @__PURE__ */ Y(f, {
413
+ }), /* @__PURE__ */ X(c, {
414
+ value: fe,
415
+ onValueChange: (e) => pe(e),
416
+ children: [/* @__PURE__ */ Y(d, {
416
417
  id: `feedback-verdict-${a.id}`,
417
- children: /* @__PURE__ */ Y(p, { placeholder: "Verdict" })
418
- }), /* @__PURE__ */ Y(u, { children: Object.values(S).map((e) => /* @__PURE__ */ Y(d, {
418
+ children: /* @__PURE__ */ Y(f, { placeholder: "Verdict" })
419
+ }), /* @__PURE__ */ Y(l, { children: Object.values(C).map((e) => /* @__PURE__ */ Y(u, {
419
420
  value: e,
420
421
  children: $(e)
421
422
  }, e)) })]
422
423
  })] })]
423
424
  }),
424
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
425
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
425
426
  htmlFor: `feedback-notes-${a.id}`,
426
427
  children: "Internal Notes"
427
- }), /* @__PURE__ */ Y(ae, {
428
+ }), /* @__PURE__ */ Y(p, {
428
429
  id: `feedback-notes-${a.id}`,
429
- value: he,
430
- onChange: (e) => b(e.target.value),
430
+ value: me,
431
+ onChange: (e) => x(e.target.value),
431
432
  placeholder: "Add private notes about this round…",
432
433
  rows: 3
433
434
  })] }),
@@ -437,31 +438,31 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
437
438
  variant: "outline",
438
439
  size: "sm",
439
440
  onClick: () => {
440
- W(), m(!1);
441
+ U(), h(!1);
441
442
  },
442
443
  children: "Cancel"
443
444
  }), /* @__PURE__ */ Y(t, {
444
445
  size: "sm",
445
446
  onClick: async () => {
446
- let e = y ? parseInt(y, 10) : void 0, t = pe || void 0, n = he.trim() || void 0;
447
- if (h) await ce(h.id, {
447
+ let e = b ? parseInt(b, 10) : void 0, t = fe || void 0, n = me.trim() || void 0;
448
+ if (g) await m(g.id, {
448
449
  rating: e,
449
450
  verdict: t,
450
451
  internalNotes: n
451
452
  });
452
453
  else {
453
- if (!g) return;
454
+ if (!_) return;
454
455
  await se(a.id, {
455
- interviewerId: g,
456
+ interviewerId: _,
456
457
  rating: e,
457
458
  verdict: t,
458
459
  internalNotes: n
459
460
  });
460
461
  }
461
- W(), m(!1);
462
+ U(), h(!1);
462
463
  },
463
- disabled: !h && !g,
464
- children: h ? "Update Feedback" : "Submit Feedback"
464
+ disabled: !g && !_,
465
+ children: g ? "Update Feedback" : "Submit Feedback"
465
466
  })]
466
467
  })
467
468
  ]
@@ -471,20 +472,20 @@ function He({ round: a, applicationId: te, interviewers: o, interviewersLoading:
471
472
  ]
472
473
  });
473
474
  }
474
- function Ue({ applicationId: e, jobPostingId: n }) {
475
- let { data: r, loading: i, error: ee } = le({ variables: { applicationId: e } }), { data: m, loading: h } = g({
475
+ function We({ applicationId: e, jobPostingId: n }) {
476
+ let { data: r, loading: i, error: ee } = ce({ variables: { applicationId: e } }), { data: h, loading: g } = _({
476
477
  variables: { id: n ?? "" },
477
478
  skip: !n
478
- }), { data: ue, loading: _ } = ce({ variables: { limit: 200 } }), [de, { loading: y }] = se({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [he, { loading: S }] = oe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [w] = v({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ge, { loading: T }] = fe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [_e] = pe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ve] = me({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), O = r?.jobApplicationInterviewRounds ?? [], k = ue?.interviewers.items ?? [], ye = m?.jobPosting?.rounds ?? [], [A, j] = E(!1), [M, N] = E(Z), [P, F] = E({
479
+ }), { data: le, loading: v } = m({ variables: { limit: 200 } }), [ue, { loading: b }] = se({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [me, { loading: C }] = oe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [he] = y({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ge, { loading: T }] = de({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [_e] = fe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ve] = pe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), E = r?.jobApplicationInterviewRounds ?? [], O = le?.interviewers.items ?? [], k = h?.jobPosting?.rounds ?? [], [A, j] = D(!1), [M, N] = D(Z), [P, F] = D({
479
480
  name: "",
480
- roundType: x.PhoneScreen,
481
- status: b.Scheduled,
481
+ roundType: S.PhoneScreen,
482
+ status: x.Scheduled,
482
483
  scheduledAt: ""
483
- }), [I, L] = E(null), [R, z] = E([]), [be, B] = E(C.Panel), [V, H] = E(null), [W, G] = E(""), [xe, K] = E(null), Se = ye.filter((e) => !O.some((t) => t.roundConfigId === e.id)), J = () => {
484
+ }), [I, L] = D(null), [R, z] = D([]), [B, be] = D(w.Panel), [V, H] = D(null), [U, G] = D(""), [xe, K] = D(null), Se = k.filter((e) => !E.some((t) => t.roundConfigId === e.id)), J = () => {
484
485
  N(Z), F({
485
486
  name: "",
486
- roundType: x.PhoneScreen,
487
- status: b.Scheduled,
487
+ roundType: S.PhoneScreen,
488
+ status: x.Scheduled,
488
489
  scheduledAt: ""
489
490
  });
490
491
  }, Ce = (e) => {
@@ -495,7 +496,7 @@ function Ue({ applicationId: e, jobPostingId: n }) {
495
496
  }));
496
497
  return;
497
498
  }
498
- let t = ye.find((t) => t.id === e);
499
+ let t = k.find((t) => t.id === e);
499
500
  t && F((e) => ({
500
501
  ...e,
501
502
  name: t.name,
@@ -506,14 +507,14 @@ function Ue({ applicationId: e, jobPostingId: n }) {
506
507
  e ? (N(e.id), F({
507
508
  name: e.name,
508
509
  roundType: e.roundType,
509
- status: b.Scheduled,
510
+ status: x.Scheduled,
510
511
  scheduledAt: ""
511
512
  })) : J(), j(!0);
512
513
  }, Te = async () => {
513
514
  if (P.name.trim()) {
514
515
  K(null);
515
516
  try {
516
- await de({ variables: { input: {
517
+ await ue({ variables: { input: {
517
518
  applicationId: e,
518
519
  roundConfigId: M === Z ? void 0 : M,
519
520
  name: P.name.trim(),
@@ -525,17 +526,17 @@ function Ue({ applicationId: e, jobPostingId: n }) {
525
526
  console.error("Failed to create interview round:", e), K("Failed to create interview round.");
526
527
  }
527
528
  }
528
- }, De = async () => {
529
+ }, Ee = async () => {
529
530
  if (!(!I || R.length === 0)) {
530
531
  K(null);
531
532
  try {
532
- await he({ variables: { input: {
533
+ await me({ variables: { input: {
533
534
  roundId: I,
534
535
  assignments: R.map((e) => ({
535
536
  interviewerId: e,
536
- role: be
537
+ role: B
537
538
  }))
538
- } } }), z([]), B(C.Panel), L(null);
539
+ } } }), z([]), be(w.Panel), L(null);
539
540
  } catch (e) {
540
541
  console.error("Failed to assign interviewers:", e), K("Failed to assign interviewers.");
541
542
  }
@@ -543,7 +544,7 @@ function Ue({ applicationId: e, jobPostingId: n }) {
543
544
  }, Oe = async (e, t) => {
544
545
  K(null);
545
546
  try {
546
- await w({ variables: {
547
+ await he({ variables: {
547
548
  roundId: e,
548
549
  interviewerId: t
549
550
  } });
@@ -551,12 +552,12 @@ function Ue({ applicationId: e, jobPostingId: n }) {
551
552
  console.error("Failed to remove interviewer:", e), K("Failed to remove interviewer.");
552
553
  }
553
554
  }, ke = async () => {
554
- if (!(!V || !W.trim())) {
555
+ if (!(!V || !U.trim())) {
555
556
  K(null);
556
557
  try {
557
558
  await ge({ variables: { input: {
558
559
  roundId: V,
559
- message: W.trim()
560
+ message: U.trim()
560
561
  } } }), G(""), H(null);
561
562
  } catch (e) {
562
563
  console.error("Failed to send candidate message:", e), K("Failed to send candidate message.");
@@ -590,7 +591,7 @@ function Ue({ applicationId: e, jobPostingId: n }) {
590
591
  className: "px-5 py-3.5 border-b border-border-default bg-bg-muted/50 flex items-center justify-between",
591
592
  children: [/* @__PURE__ */ X("h2", {
592
593
  className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
593
- children: [/* @__PURE__ */ Y(Ee, { size: 14 }), "Interview Rounds"]
594
+ children: [/* @__PURE__ */ Y(De, { size: 14 }), "Interview Rounds"]
594
595
  }), /* @__PURE__ */ X(t, {
595
596
  size: "sm",
596
597
  onClick: we,
@@ -601,28 +602,28 @@ function Ue({ applicationId: e, jobPostingId: n }) {
601
602
  className: "p-5",
602
603
  children: [xe && /* @__PURE__ */ X("div", {
603
604
  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(D, { size: 16 }), xe]
605
+ children: [/* @__PURE__ */ Y(ye, { size: 16 }), xe]
605
606
  }), i ? /* @__PURE__ */ X("div", {
606
607
  className: "flex items-center gap-2 text-sm text-text-secondary py-4",
607
- children: [/* @__PURE__ */ Y(U, {
608
+ children: [/* @__PURE__ */ Y(W, {
608
609
  size: 16,
609
610
  className: "animate-spin"
610
611
  }), "Loading interview rounds…"]
611
612
  }) : ee ? /* @__PURE__ */ X("div", {
612
613
  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(D, { size: 16 }), "Could not load interview rounds."]
614
- }) : O.length === 0 ? /* @__PURE__ */ Y("p", {
614
+ children: [/* @__PURE__ */ Y(ye, { size: 16 }), "Could not load interview rounds."]
615
+ }) : E.length === 0 ? /* @__PURE__ */ Y("p", {
615
616
  className: "text-sm text-text-secondary",
616
617
  children: "No interview rounds yet."
617
618
  }) : /* @__PURE__ */ Y("div", {
618
619
  className: "space-y-5",
619
- children: O.map((t) => /* @__PURE__ */ Y(He, {
620
+ children: E.map((t) => /* @__PURE__ */ Y(Ue, {
620
621
  round: t,
621
622
  applicationId: e,
622
- interviewers: k,
623
- interviewersLoading: _,
623
+ interviewers: O,
624
+ interviewersLoading: v,
624
625
  onAssign: () => {
625
- L(t.id), z([]), B(C.Panel);
626
+ L(t.id), z([]), be(w.Panel);
626
627
  },
627
628
  onRemoveInterviewer: Oe,
628
629
  onSendMessage: () => {
@@ -641,23 +642,23 @@ function Ue({ applicationId: e, jobPostingId: n }) {
641
642
  children: /* @__PURE__ */ X(te, {
642
643
  className: "sm:max-w-md",
643
644
  children: [
644
- /* @__PURE__ */ X(ne, { children: [/* @__PURE__ */ Y(re, { children: "Add Interview Round" }), /* @__PURE__ */ Y(o, { children: "Schedule a new round for this candidate." })] }),
645
+ /* @__PURE__ */ X(re, { children: [/* @__PURE__ */ Y(ie, { children: "Add Interview Round" }), /* @__PURE__ */ Y(ne, { children: "Schedule a new round for this candidate." })] }),
645
646
  /* @__PURE__ */ X("div", {
646
647
  className: "space-y-4 py-2",
647
648
  children: [
648
649
  n && /* @__PURE__ */ X("div", { children: [
649
- /* @__PURE__ */ Y(c, {
650
+ /* @__PURE__ */ Y(s, {
650
651
  htmlFor: "round-config",
651
652
  children: "Posting round"
652
653
  }),
653
- /* @__PURE__ */ X(l, {
654
+ /* @__PURE__ */ X(c, {
654
655
  value: M,
655
656
  onValueChange: Ce,
656
- disabled: h,
657
- children: [/* @__PURE__ */ Y(f, {
657
+ disabled: g,
658
+ children: [/* @__PURE__ */ Y(d, {
658
659
  id: "round-config",
659
- children: /* @__PURE__ */ Y(p, { placeholder: "Select a configured round" })
660
- }), /* @__PURE__ */ X(u, { children: [Se.map((e) => /* @__PURE__ */ X(d, {
660
+ children: /* @__PURE__ */ Y(f, { placeholder: "Select a configured round" })
661
+ }), /* @__PURE__ */ X(l, { children: [Se.map((e) => /* @__PURE__ */ X(u, {
661
662
  value: e.id,
662
663
  children: [
663
664
  "Round ",
@@ -665,7 +666,7 @@ function Ue({ applicationId: e, jobPostingId: n }) {
665
666
  " — ",
666
667
  e.name
667
668
  ]
668
- }, e.id)), /* @__PURE__ */ Y(d, {
669
+ }, e.id)), /* @__PURE__ */ Y(u, {
669
670
  value: Z,
670
671
  children: "Custom round"
671
672
  })] })]
@@ -675,10 +676,10 @@ function Ue({ applicationId: e, jobPostingId: n }) {
675
676
  children: "Configured rounds stay linked to posting-level bulk actions."
676
677
  })
677
678
  ] }),
678
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
679
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
679
680
  htmlFor: "round-name",
680
681
  children: "Name"
681
- }), /* @__PURE__ */ Y(ie, {
682
+ }), /* @__PURE__ */ Y(ae, {
682
683
  id: "round-name",
683
684
  value: P.name,
684
685
  onChange: (e) => F((t) => ({
@@ -688,45 +689,45 @@ function Ue({ applicationId: e, jobPostingId: n }) {
688
689
  placeholder: "e.g. Technical Interview",
689
690
  disabled: M !== Z
690
691
  })] }),
691
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
692
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
692
693
  htmlFor: "round-type",
693
694
  children: "Round Type"
694
- }), /* @__PURE__ */ X(l, {
695
+ }), /* @__PURE__ */ X(c, {
695
696
  value: P.roundType,
696
697
  onValueChange: (e) => F((t) => ({
697
698
  ...t,
698
699
  roundType: e
699
700
  })),
700
701
  disabled: M !== Z,
701
- children: [/* @__PURE__ */ Y(f, {
702
+ children: [/* @__PURE__ */ Y(d, {
702
703
  id: "round-type",
703
- children: /* @__PURE__ */ Y(p, {})
704
- }), /* @__PURE__ */ Y(u, { children: Object.values(x).map((e) => /* @__PURE__ */ Y(d, {
704
+ children: /* @__PURE__ */ Y(f, {})
705
+ }), /* @__PURE__ */ Y(l, { children: Object.values(S).map((e) => /* @__PURE__ */ Y(u, {
705
706
  value: e,
706
707
  children: $(e)
707
708
  }, e)) })]
708
709
  })] }),
709
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
710
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
710
711
  htmlFor: "round-status",
711
712
  children: "Status"
712
- }), /* @__PURE__ */ X(l, {
713
+ }), /* @__PURE__ */ X(c, {
713
714
  value: P.status,
714
715
  onValueChange: (e) => F((t) => ({
715
716
  ...t,
716
717
  status: e
717
718
  })),
718
- children: [/* @__PURE__ */ Y(f, {
719
+ children: [/* @__PURE__ */ Y(d, {
719
720
  id: "round-status",
720
- children: /* @__PURE__ */ Y(p, {})
721
- }), /* @__PURE__ */ Y(u, { children: Object.values(b).map((e) => /* @__PURE__ */ Y(d, {
721
+ children: /* @__PURE__ */ Y(f, {})
722
+ }), /* @__PURE__ */ Y(l, { children: Object.values(x).map((e) => /* @__PURE__ */ Y(u, {
722
723
  value: e,
723
724
  children: $(e)
724
725
  }, e)) })]
725
726
  })] }),
726
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
727
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
727
728
  htmlFor: "round-scheduled",
728
729
  children: "Scheduled At"
729
- }), /* @__PURE__ */ Y(ie, {
730
+ }), /* @__PURE__ */ Y(ae, {
730
731
  id: "round-scheduled",
731
732
  type: "datetime-local",
732
733
  value: P.scheduledAt,
@@ -737,7 +738,7 @@ function Ue({ applicationId: e, jobPostingId: n }) {
737
738
  })] })
738
739
  ]
739
740
  }),
740
- /* @__PURE__ */ X(s, { children: [/* @__PURE__ */ Y(t, {
741
+ /* @__PURE__ */ X(o, { children: [/* @__PURE__ */ Y(t, {
741
742
  variant: "outline",
742
743
  onClick: () => {
743
744
  j(!1), J();
@@ -745,8 +746,8 @@ function Ue({ applicationId: e, jobPostingId: n }) {
745
746
  children: "Cancel"
746
747
  }), /* @__PURE__ */ X(t, {
747
748
  onClick: Te,
748
- disabled: y || !P.name.trim(),
749
- children: [y ? /* @__PURE__ */ Y(U, {
749
+ disabled: b || !P.name.trim(),
750
+ children: [b ? /* @__PURE__ */ Y(W, {
750
751
  size: 14,
751
752
  className: "animate-spin mr-1"
752
753
  }) : null, "Create Round"]
@@ -760,34 +761,34 @@ function Ue({ applicationId: e, jobPostingId: n }) {
760
761
  children: /* @__PURE__ */ X(te, {
761
762
  className: "sm:max-w-md",
762
763
  children: [
763
- /* @__PURE__ */ X(ne, { children: [/* @__PURE__ */ Y(re, { children: "Assign Interviewers" }), /* @__PURE__ */ Y(o, { children: "Choose interviewers and a role for this round." })] }),
764
+ /* @__PURE__ */ X(re, { children: [/* @__PURE__ */ Y(ie, { children: "Assign Interviewers" }), /* @__PURE__ */ Y(ne, { children: "Choose interviewers and a role for this round." })] }),
764
765
  /* @__PURE__ */ X("div", {
765
766
  className: "space-y-4 py-2",
766
- children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
767
+ children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, {
767
768
  htmlFor: "assign-role",
768
769
  children: "Role"
769
- }), /* @__PURE__ */ X(l, {
770
- value: be,
771
- onValueChange: (e) => B(e),
772
- children: [/* @__PURE__ */ Y(f, {
770
+ }), /* @__PURE__ */ X(c, {
771
+ value: B,
772
+ onValueChange: (e) => be(e),
773
+ children: [/* @__PURE__ */ Y(d, {
773
774
  id: "assign-role",
774
- children: /* @__PURE__ */ Y(p, {})
775
- }), /* @__PURE__ */ Y(u, { children: Object.values(C).map((e) => /* @__PURE__ */ Y(d, {
775
+ children: /* @__PURE__ */ Y(f, {})
776
+ }), /* @__PURE__ */ Y(l, { children: Object.values(w).map((e) => /* @__PURE__ */ Y(u, {
776
777
  value: e,
777
778
  children: $(e)
778
779
  }, e)) })]
779
- })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, { children: "Interviewers" }), /* @__PURE__ */ Y("div", {
780
+ })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(s, { children: "Interviewers" }), /* @__PURE__ */ Y("div", {
780
781
  className: "mt-1.5 max-h-60 overflow-y-auto border border-border-default rounded-lg p-2 space-y-1",
781
- children: _ ? /* @__PURE__ */ X("div", {
782
+ children: v ? /* @__PURE__ */ X("div", {
782
783
  className: "flex items-center gap-2 text-sm text-text-secondary py-2",
783
- children: [/* @__PURE__ */ Y(U, {
784
+ children: [/* @__PURE__ */ Y(W, {
784
785
  size: 14,
785
786
  className: "animate-spin"
786
787
  }), "Loading…"]
787
- }) : k.length === 0 ? /* @__PURE__ */ Y("p", {
788
+ }) : O.length === 0 ? /* @__PURE__ */ Y("p", {
788
789
  className: "text-sm text-text-secondary py-2",
789
790
  children: "No interviewers found."
790
- }) : k.map((e) => /* @__PURE__ */ X("label", {
791
+ }) : O.map((e) => /* @__PURE__ */ X("label", {
791
792
  className: "flex items-start gap-2 p-2 rounded-md hover:bg-bg-muted cursor-pointer",
792
793
  children: [/* @__PURE__ */ Y("input", {
793
794
  type: "checkbox",
@@ -809,14 +810,14 @@ function Ue({ applicationId: e, jobPostingId: n }) {
809
810
  }, e.id))
810
811
  })] })]
811
812
  }),
812
- /* @__PURE__ */ X(s, { children: [/* @__PURE__ */ Y(t, {
813
+ /* @__PURE__ */ X(o, { children: [/* @__PURE__ */ Y(t, {
813
814
  variant: "outline",
814
815
  onClick: () => L(null),
815
816
  children: "Cancel"
816
817
  }), /* @__PURE__ */ X(t, {
817
- onClick: De,
818
- disabled: S || R.length === 0,
819
- children: [S ? /* @__PURE__ */ Y(U, {
818
+ onClick: Ee,
819
+ disabled: C || R.length === 0,
820
+ children: [C ? /* @__PURE__ */ Y(W, {
820
821
  size: 14,
821
822
  className: "animate-spin mr-1"
822
823
  }) : null, "Assign"]
@@ -830,24 +831,24 @@ function Ue({ applicationId: e, jobPostingId: n }) {
830
831
  children: /* @__PURE__ */ X(te, {
831
832
  className: "sm:max-w-md",
832
833
  children: [
833
- /* @__PURE__ */ X(ne, { children: [/* @__PURE__ */ Y(re, { children: "Send Candidate Message" }), /* @__PURE__ */ Y(o, { children: "This message will be emailed to the candidate for this round." })] }),
834
+ /* @__PURE__ */ X(re, { children: [/* @__PURE__ */ Y(ie, { children: "Send Candidate Message" }), /* @__PURE__ */ Y(ne, { children: "This message will be emailed to the candidate for this round." })] }),
834
835
  /* @__PURE__ */ Y("div", {
835
836
  className: "py-2",
836
- children: /* @__PURE__ */ Y(ae, {
837
- value: W,
837
+ children: /* @__PURE__ */ Y(p, {
838
+ value: U,
838
839
  onChange: (e) => G(e.target.value),
839
840
  placeholder: "Type the message to send…",
840
841
  rows: 5
841
842
  })
842
843
  }),
843
- /* @__PURE__ */ X(s, { children: [/* @__PURE__ */ Y(t, {
844
+ /* @__PURE__ */ X(o, { children: [/* @__PURE__ */ Y(t, {
844
845
  variant: "outline",
845
846
  onClick: () => H(null),
846
847
  children: "Cancel"
847
848
  }), /* @__PURE__ */ X(t, {
848
849
  onClick: ke,
849
- disabled: T || !W.trim(),
850
- children: [T ? /* @__PURE__ */ Y(U, {
850
+ disabled: T || !U.trim(),
851
+ children: [T ? /* @__PURE__ */ Y(W, {
851
852
  size: 14,
852
853
  className: "animate-spin mr-1"
853
854
  }) : null, "Send Message"]
@@ -858,21 +859,21 @@ function Ue({ applicationId: e, jobPostingId: n }) {
858
859
  ]
859
860
  });
860
861
  }
861
- function We() {
862
- let { id: e } = Ae(), t = ke(), n = Oe().search, [r, i] = E(!1), [ee, s] = E(!1), [ie, c] = E(!1), [l, u] = E(!1), [d, f] = E(""), [p, ae] = E(!1), [oe, se] = E(null), { data: ce, loading: le, error: g } = m({
862
+ function Ge() {
863
+ let { id: e } = je(), t = Ae(), n = ke().search, [r, i] = D(!1), [ee, o] = D(!1), [ae, s] = D(!1), [c, l] = D(!1), [u, d] = D(""), [f, p] = D(!1), [oe, se] = D(null), { data: m, loading: ce, error: _ } = h({
863
864
  variables: { id: e },
864
865
  skip: !e
865
- }), _ = ce?.jobApplication?.productId ?? null;
866
- ve(() => {
867
- if (!_) {
866
+ }), v = m?.jobApplication?.productId ?? null;
867
+ E(() => {
868
+ if (!v) {
868
869
  se(null);
869
870
  return;
870
871
  }
871
872
  let e = !1;
872
- return je({
873
+ return Me({
873
874
  gateway: "global",
874
875
  query: "query($id: ID!) { platformProduct(id: $id) { name } }",
875
- variables: { id: _ }
876
+ variables: { id: v }
876
877
  }).then((t) => {
877
878
  if (e) return;
878
879
  let n = t.data?.platformProduct?.name;
@@ -880,56 +881,56 @@ function We() {
880
881
  }).catch(() => {}), () => {
881
882
  e = !0;
882
883
  };
883
- }, [_]);
884
- let [de, { loading: v }] = he({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [fe, { loading: pe }] = ue({ fetchPolicy: "no-cache" }), [me, b] = E(!1), [x, S] = E(null), [C, w] = E(!1), [_e, { loading: I }] = h({ fetchPolicy: "no-cache" }), [B, { loading: G }] = y(), q = ce?.jobApplication, J = async () => {
885
- if (!(!d.trim() || !e)) try {
886
- (await B({ variables: {
884
+ }, [v]);
885
+ let [ue, { loading: y }] = me({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [de, { loading: fe }] = le({ fetchPolicy: "no-cache" }), [pe, x] = D(!1), [S, C] = D(null), [w, he] = D(!1), [_e, { loading: L }] = g({ fetchPolicy: "no-cache" }), [V, { loading: xe }] = b(), q = m?.jobApplication, Ce = async () => {
886
+ if (!(!u.trim() || !e)) try {
887
+ (await V({ variables: {
887
888
  id: e,
888
- message: d.trim()
889
- } })).data?.replyToJobApplication.success && (ae(!0), f(""), setTimeout(() => ae(!1), 3e3));
889
+ message: u.trim()
890
+ } })).data?.replyToJobApplication.success && (p(!0), d(""), setTimeout(() => p(!1), 3e3));
890
891
  } catch (e) {
891
892
  console.error("Failed to send reply:", e);
892
893
  }
893
- }, we = async (t) => {
894
+ }, Te = async (t) => {
894
895
  if (e) {
895
- s(!1);
896
+ o(!1);
896
897
  try {
897
- await de({ variables: {
898
+ await ue({ variables: {
898
899
  id: e,
899
900
  input: { status: t }
900
901
  } }), i(!0), setTimeout(() => i(!1), 3e3);
901
902
  } catch (e) {
902
- console.error("Failed to update status:", e), s(!0), setTimeout(() => s(!1), 4e3);
903
+ console.error("Failed to update status:", e), o(!0), setTimeout(() => o(!1), 4e3);
903
904
  }
904
905
  }
905
- }, Te = async () => {
906
+ }, Ee = async () => {
906
907
  if (e) {
907
- u(!1);
908
+ l(!1);
908
909
  try {
909
- let t = (await fe({ variables: { id: e } })).data?.jobApplicationResumeUrl;
910
- t ? window.open(t, "_blank", "noopener,noreferrer") : u(!0);
910
+ let t = (await de({ variables: { id: e } })).data?.jobApplicationResumeUrl;
911
+ t ? window.open(t, "_blank", "noopener,noreferrer") : l(!0);
911
912
  } catch (e) {
912
- console.error("Failed to get resume URL:", e), u(!0);
913
+ console.error("Failed to get resume URL:", e), l(!0);
913
914
  }
914
915
  }
915
- }, Ee = async () => {
916
+ }, De = async () => {
916
917
  if (e) {
917
- w(!1), S(null), b(!0);
918
+ he(!1), C(null), x(!0);
918
919
  try {
919
920
  let t = (await _e({ variables: { id: e } })).data?.jobApplicationResumePreviewUrl;
920
- t ? S(t) : w(!0);
921
+ t ? C(t) : he(!0);
921
922
  } catch (e) {
922
- console.error("Failed to get resume preview URL:", e), w(!0);
923
+ console.error("Failed to get resume preview URL:", e), he(!0);
923
924
  }
924
925
  }
925
- }, De = async () => {
926
- q?.email && (T("light"), await ge(q.email), c(!0), setTimeout(() => c(!1), 2e3));
926
+ }, Oe = async () => {
927
+ q?.email && (T("light"), await ge(q.email), s(!0), setTimeout(() => s(!1), 2e3));
927
928
  };
928
- if (le) return /* @__PURE__ */ Y("div", {
929
+ if (ce) return /* @__PURE__ */ Y("div", {
929
930
  className: "min-h-full flex items-center justify-center py-20",
930
931
  children: /* @__PURE__ */ X("div", {
931
932
  className: "text-center",
932
- children: [/* @__PURE__ */ Y(U, {
933
+ children: [/* @__PURE__ */ Y(W, {
933
934
  size: 36,
934
935
  className: "animate-spin text-[var(--color-text-secondary)] mx-auto mb-3"
935
936
  }), /* @__PURE__ */ Y("p", {
@@ -938,12 +939,12 @@ function We() {
938
939
  })]
939
940
  })
940
941
  });
941
- if (g || !q) return /* @__PURE__ */ Y("div", {
942
+ if (_ || !q) return /* @__PURE__ */ Y("div", {
942
943
  className: "p-6",
943
- children: /* @__PURE__ */ Y(Pe, {
944
+ children: /* @__PURE__ */ Y(Fe, {
944
945
  illustration: "empty-search",
945
946
  title: "Application not found",
946
- description: g?.message || "This application may have been deleted or you don't have access.",
947
+ description: _?.message || "This application may have been deleted or you don't have access.",
947
948
  action: /* @__PURE__ */ X("button", {
948
949
  type: "button",
949
950
  onClick: () => t(`/support/applications${n}`),
@@ -952,7 +953,7 @@ function We() {
952
953
  })
953
954
  })
954
955
  });
955
- let Z = Le[q.status] || Le.NEW, $ = Z.icon, Be = `${q.firstName} ${q.lastName}`.trim(), He = ze(q.resumeFileSize), We = Ve(q.linkedinUrl), Ge = Ve(q.portfolioUrl);
956
+ let Z = Re[q.status] || Re.NEW, $ = Z.icon, Ve = `${q.firstName} ${q.lastName}`.trim(), Ue = Be(q.resumeFileSize), Ge = He(q.linkedinUrl), Ke = He(q.portfolioUrl);
956
957
  return /* @__PURE__ */ X("div", {
957
958
  className: "p-6 animate-in fade-in duration-200",
958
959
  children: [
@@ -968,22 +969,22 @@ function We() {
968
969
  })]
969
970
  }), /* @__PURE__ */ X("div", {
970
971
  className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
971
- children: [/* @__PURE__ */ Y(N, { size: 12 }), Re(q.createdAt)]
972
+ children: [/* @__PURE__ */ Y(P, { size: 12 }), ze(q.createdAt)]
972
973
  })]
973
974
  }),
974
975
  r && /* @__PURE__ */ X("div", {
975
976
  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(M, { size: 18 }), "Status updated successfully"]
977
+ children: [/* @__PURE__ */ Y(N, { size: 18 }), "Status updated successfully"]
977
978
  }),
978
979
  ee && /* @__PURE__ */ X("div", {
979
980
  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(D, { size: 18 }), "Couldn't update the status. Please try again."]
981
+ children: [/* @__PURE__ */ Y(ye, { size: 18 }), "Couldn't update the status. Please try again."]
981
982
  }),
982
- /* @__PURE__ */ Y(Ie, {
983
+ /* @__PURE__ */ Y(Le, {
983
984
  className: "mb-6",
984
985
  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
986
  }),
986
- /* @__PURE__ */ Y(Fe, {
987
+ /* @__PURE__ */ Y(Ie, {
987
988
  storageKey: "support-application-detail",
988
989
  title: "Move this candidate forward",
989
990
  className: "mb-6",
@@ -992,7 +993,7 @@ function We() {
992
993
  id: "resume",
993
994
  label: "Review the resume",
994
995
  description: "Download and read the candidate's resume.",
995
- onClick: () => void Te()
996
+ onClick: () => void Ee()
996
997
  }] : [],
997
998
  {
998
999
  id: "advance",
@@ -1030,7 +1031,7 @@ function We() {
1030
1031
  className: "flex items-center gap-3 mb-1.5",
1031
1032
  children: /* @__PURE__ */ Y("h1", {
1032
1033
  className: "text-xl font-bold text-[var(--color-text-primary)]",
1033
- children: Be
1034
+ children: Ve
1034
1035
  })
1035
1036
  }), /* @__PURE__ */ X("div", {
1036
1037
  className: "flex items-center gap-3 text-sm flex-wrap",
@@ -1063,7 +1064,7 @@ function We() {
1063
1064
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1064
1065
  children: /* @__PURE__ */ X("h2", {
1065
1066
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1066
- children: [/* @__PURE__ */ Y(Ce, { size: 14 }), "Applicant Information"]
1067
+ children: [/* @__PURE__ */ Y(we, { size: 14 }), "Applicant Information"]
1067
1068
  })
1068
1069
  }), /* @__PURE__ */ Y("div", {
1069
1070
  className: "p-5",
@@ -1074,7 +1075,7 @@ function We() {
1074
1075
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1075
1076
  children: [/* @__PURE__ */ Y("div", {
1076
1077
  className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
1077
- children: /* @__PURE__ */ Y(Ce, {
1078
+ children: /* @__PURE__ */ Y(we, {
1078
1079
  size: 16,
1079
1080
  className: "text-accent-blue"
1080
1081
  })
@@ -1083,14 +1084,14 @@ function We() {
1083
1084
  children: "Name"
1084
1085
  }), /* @__PURE__ */ Y("p", {
1085
1086
  className: "text-sm font-semibold text-[var(--color-text-primary)]",
1086
- children: Be
1087
+ children: Ve
1087
1088
  })] })]
1088
1089
  }),
1089
1090
  /* @__PURE__ */ X("div", {
1090
1091
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1091
1092
  children: [/* @__PURE__ */ Y("div", {
1092
1093
  className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
1093
- children: /* @__PURE__ */ Y(W, {
1094
+ children: /* @__PURE__ */ Y(G, {
1094
1095
  size: 16,
1095
1096
  className: "text-accent-indigo"
1096
1097
  })
@@ -1107,13 +1108,13 @@ function We() {
1107
1108
  children: q.email
1108
1109
  }), /* @__PURE__ */ Y("button", {
1109
1110
  type: "button",
1110
- onClick: De,
1111
+ onClick: Oe,
1111
1112
  className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
1112
1113
  title: "Copy email",
1113
- children: ie ? /* @__PURE__ */ Y(M, {
1114
+ children: ae ? /* @__PURE__ */ Y(N, {
1114
1115
  size: 12,
1115
1116
  className: "text-status-success-text"
1116
- }) : /* @__PURE__ */ Y(P, {
1117
+ }) : /* @__PURE__ */ Y(F, {
1117
1118
  size: 12,
1118
1119
  className: "text-[var(--color-text-secondary)]"
1119
1120
  })
@@ -1125,7 +1126,7 @@ function We() {
1125
1126
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1126
1127
  children: [/* @__PURE__ */ Y("div", {
1127
1128
  className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
1128
- children: /* @__PURE__ */ Y(K, {
1129
+ children: /* @__PURE__ */ Y(Se, {
1129
1130
  size: 16,
1130
1131
  className: "text-status-success-text"
1131
1132
  })
@@ -1142,7 +1143,7 @@ function We() {
1142
1143
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1143
1144
  children: [/* @__PURE__ */ Y("div", {
1144
1145
  className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
1145
- children: /* @__PURE__ */ Y(ye, {
1146
+ children: /* @__PURE__ */ Y(A, {
1146
1147
  size: 16,
1147
1148
  className: "text-accent-blue"
1148
1149
  })
@@ -1158,7 +1159,7 @@ function We() {
1158
1159
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1159
1160
  children: [/* @__PURE__ */ Y("div", {
1160
1161
  className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
1161
- children: /* @__PURE__ */ Y(A, {
1162
+ children: /* @__PURE__ */ Y(j, {
1162
1163
  size: 16,
1163
1164
  className: "text-accent-purple"
1164
1165
  })
@@ -1174,7 +1175,7 @@ function We() {
1174
1175
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1175
1176
  children: [/* @__PURE__ */ Y("div", {
1176
1177
  className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
1177
- children: /* @__PURE__ */ Y(H, {
1178
+ children: /* @__PURE__ */ Y(U, {
1178
1179
  size: 16,
1179
1180
  className: "text-accent-blue"
1180
1181
  })
@@ -1183,8 +1184,8 @@ function We() {
1183
1184
  children: [/* @__PURE__ */ Y("p", {
1184
1185
  className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
1185
1186
  children: "LinkedIn"
1186
- }), We ? /* @__PURE__ */ Y("a", {
1187
- href: We,
1187
+ }), Ge ? /* @__PURE__ */ Y("a", {
1188
+ href: Ge,
1188
1189
  target: "_blank",
1189
1190
  rel: "noopener noreferrer",
1190
1191
  className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
@@ -1199,7 +1200,7 @@ function We() {
1199
1200
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1200
1201
  children: [/* @__PURE__ */ Y("div", {
1201
1202
  className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
1202
- children: /* @__PURE__ */ Y(V, {
1203
+ children: /* @__PURE__ */ Y(H, {
1203
1204
  size: 16,
1204
1205
  className: "text-accent-indigo"
1205
1206
  })
@@ -1208,8 +1209,8 @@ function We() {
1208
1209
  children: [/* @__PURE__ */ Y("p", {
1209
1210
  className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
1210
1211
  children: "Portfolio"
1211
- }), Ge ? /* @__PURE__ */ Y("a", {
1212
- href: Ge,
1212
+ }), Ke ? /* @__PURE__ */ Y("a", {
1213
+ href: Ke,
1213
1214
  target: "_blank",
1214
1215
  rel: "noopener noreferrer",
1215
1216
  className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
@@ -1224,7 +1225,7 @@ function We() {
1224
1225
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1225
1226
  children: [/* @__PURE__ */ Y("div", {
1226
1227
  className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
1227
- children: /* @__PURE__ */ Y(xe, {
1228
+ children: /* @__PURE__ */ Y(K, {
1228
1229
  size: 16,
1229
1230
  className: "text-accent-purple"
1230
1231
  })
@@ -1256,9 +1257,9 @@ function We() {
1256
1257
  })
1257
1258
  })]
1258
1259
  }),
1259
- e && /* @__PURE__ */ Y(Ue, {
1260
+ e && /* @__PURE__ */ Y(We, {
1260
1261
  applicationId: e,
1261
- jobPostingId: ce.jobApplication.jobPostingId
1262
+ jobPostingId: m.jobApplication.jobPostingId
1262
1263
  }),
1263
1264
  q.coverLetter && /* @__PURE__ */ X("div", {
1264
1265
  className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
@@ -1266,7 +1267,7 @@ function We() {
1266
1267
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1267
1268
  children: /* @__PURE__ */ X("h2", {
1268
1269
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1269
- children: [/* @__PURE__ */ Y(z, { size: 14 }), "Cover Letter"]
1270
+ children: [/* @__PURE__ */ Y(B, { size: 14 }), "Cover Letter"]
1270
1271
  })
1271
1272
  }), /* @__PURE__ */ Y("div", {
1272
1273
  className: "p-5",
@@ -1282,7 +1283,7 @@ function We() {
1282
1283
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1283
1284
  children: /* @__PURE__ */ X("h2", {
1284
1285
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1285
- children: [/* @__PURE__ */ Y(L, { size: 14 }), "Additional Data"]
1286
+ children: [/* @__PURE__ */ Y(R, { size: 14 }), "Additional Data"]
1286
1287
  })
1287
1288
  }), /* @__PURE__ */ Y("div", {
1288
1289
  className: "p-5",
@@ -1311,16 +1312,16 @@ function We() {
1311
1312
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1312
1313
  children: /* @__PURE__ */ X("h2", {
1313
1314
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1314
- children: [/* @__PURE__ */ Y(z, { size: 14 }), "Resume"]
1315
+ children: [/* @__PURE__ */ Y(B, { size: 14 }), "Resume"]
1315
1316
  })
1316
1317
  }), /* @__PURE__ */ Y("div", {
1317
1318
  className: "p-5",
1318
- children: q.resumeFileName ? /* @__PURE__ */ X(Me, { children: [
1319
+ children: q.resumeFileName ? /* @__PURE__ */ X(Ne, { children: [
1319
1320
  /* @__PURE__ */ X("div", {
1320
1321
  className: "flex items-center gap-3 mb-3",
1321
1322
  children: [/* @__PURE__ */ Y("div", {
1322
1323
  className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center flex-shrink-0",
1323
- children: /* @__PURE__ */ Y(z, {
1324
+ children: /* @__PURE__ */ Y(B, {
1324
1325
  size: 16,
1325
1326
  className: "text-accent-blue"
1326
1327
  })
@@ -1329,33 +1330,33 @@ function We() {
1329
1330
  children: [/* @__PURE__ */ Y("p", {
1330
1331
  className: "text-sm font-medium text-[var(--color-text-primary)] truncate",
1331
1332
  children: q.resumeFileName
1332
- }), He ? /* @__PURE__ */ Y("p", {
1333
+ }), Ue ? /* @__PURE__ */ Y("p", {
1333
1334
  className: "text-[11px] text-[var(--color-text-secondary)]",
1334
- children: He
1335
+ children: Ue
1335
1336
  }) : null]
1336
1337
  })]
1337
1338
  }),
1338
1339
  /* @__PURE__ */ X("button", {
1339
1340
  type: "button",
1340
- onClick: Te,
1341
- disabled: pe,
1341
+ onClick: Ee,
1342
+ disabled: fe,
1342
1343
  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: [pe ? /* @__PURE__ */ Y(U, {
1344
+ children: [fe ? /* @__PURE__ */ Y(W, {
1344
1345
  size: 15,
1345
1346
  className: "animate-spin"
1346
- }) : /* @__PURE__ */ Y(F, { size: 15 }), "Download Resume"]
1347
+ }) : /* @__PURE__ */ Y(I, { size: 15 }), "Download Resume"]
1347
1348
  }),
1348
1349
  /* @__PURE__ */ X("button", {
1349
1350
  type: "button",
1350
- onClick: Ee,
1351
- disabled: I,
1351
+ onClick: De,
1352
+ disabled: L,
1352
1353
  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: [I ? /* @__PURE__ */ Y(U, {
1354
+ children: [L ? /* @__PURE__ */ Y(W, {
1354
1355
  size: 15,
1355
1356
  className: "animate-spin"
1356
- }) : /* @__PURE__ */ Y(R, { size: 15 }), "Preview Resume"]
1357
+ }) : /* @__PURE__ */ Y(z, { size: 15 }), "Preview Resume"]
1357
1358
  }),
1358
- l && /* @__PURE__ */ Y("p", {
1359
+ c && /* @__PURE__ */ Y("p", {
1359
1360
  className: "mt-2 text-xs text-status-error-text",
1360
1361
  children: "Could not generate a download link. Please try again."
1361
1362
  })
@@ -1371,7 +1372,7 @@ function We() {
1371
1372
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1372
1373
  children: /* @__PURE__ */ X("h2", {
1373
1374
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1374
- children: [/* @__PURE__ */ Y(j, { size: 14 }), "Timeline"]
1375
+ children: [/* @__PURE__ */ Y(M, { size: 14 }), "Timeline"]
1375
1376
  })
1376
1377
  }), /* @__PURE__ */ X("div", {
1377
1378
  className: "p-5 space-y-4",
@@ -1396,40 +1397,37 @@ function We() {
1396
1397
  })]
1397
1398
  })]
1398
1399
  }),
1399
- /* @__PURE__ */ X(Ne, {
1400
+ /* @__PURE__ */ X(Pe, {
1400
1401
  "data-tour": "support-application-reply",
1401
1402
  className: "overflow-hidden p-0",
1402
1403
  children: [/* @__PURE__ */ Y("div", {
1403
1404
  className: "px-5 py-3.5 border-b border-border-seam",
1404
1405
  children: /* @__PURE__ */ X("h2", {
1405
1406
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
1406
- children: [/* @__PURE__ */ Y(Se, { size: 12 }), "Reply"]
1407
+ children: [/* @__PURE__ */ Y(J, { size: 12 }), "Reply"]
1407
1408
  })
1408
1409
  }), /* @__PURE__ */ X("div", {
1409
1410
  className: "p-5",
1410
1411
  children: [
1411
- p && /* @__PURE__ */ X("div", {
1412
+ f && /* @__PURE__ */ X("div", {
1412
1413
  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(M, { size: 14 }), "Reply sent to the applicant!"]
1414
+ children: [/* @__PURE__ */ Y(N, { size: 14 }), "Reply sent to the applicant!"]
1414
1415
  }),
1415
- /* @__PURE__ */ Y("textarea", {
1416
- "aria-label": "Reply message",
1417
- value: d,
1418
- onChange: (e) => f(e.target.value),
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"
1416
+ /* @__PURE__ */ Y(ve, {
1417
+ id: "reply-message",
1418
+ value: u,
1419
+ onChange: d,
1420
+ placeholder: "Type your reply… This will be sent as a branded email to the applicant."
1423
1421
  }),
1424
1422
  /* @__PURE__ */ X("button", {
1425
1423
  type: "button",
1426
- onClick: J,
1427
- disabled: G || !d.trim(),
1424
+ onClick: Ce,
1425
+ disabled: xe || !u.trim(),
1428
1426
  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: [G ? /* @__PURE__ */ Y(U, {
1427
+ children: [xe ? /* @__PURE__ */ Y(W, {
1430
1428
  size: 15,
1431
1429
  className: "animate-spin"
1432
- }) : /* @__PURE__ */ Y(Se, { size: 15 }), "Send Reply"]
1430
+ }) : /* @__PURE__ */ Y(J, { size: 15 }), "Send Reply"]
1433
1431
  })
1434
1432
  ]
1435
1433
  })]
@@ -1452,8 +1450,8 @@ function We() {
1452
1450
  }), /* @__PURE__ */ X("select", {
1453
1451
  id: "jobapplicationdetailpage-status-0",
1454
1452
  value: q.status,
1455
- onChange: (e) => we(e.target.value),
1456
- disabled: v,
1453
+ onChange: (e) => Te(e.target.value),
1454
+ disabled: y,
1457
1455
  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
1456
  children: [
1459
1457
  /* @__PURE__ */ Y("option", {
@@ -1490,11 +1488,11 @@ function We() {
1490
1488
  children: [/* @__PURE__ */ X("a", {
1491
1489
  href: `mailto:${q.email}?subject=${encodeURIComponent(`Your application for ${q.position}`)}`,
1492
1490
  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(W, { size: 15 }), "Email Applicant"]
1491
+ children: [/* @__PURE__ */ Y(G, { size: 15 }), "Email Applicant"]
1494
1492
  }), q.status !== "ARCHIVED" && /* @__PURE__ */ X("button", {
1495
1493
  type: "button",
1496
- onClick: () => we("ARCHIVED"),
1497
- disabled: v,
1494
+ onClick: () => Te("ARCHIVED"),
1495
+ disabled: y,
1498
1496
  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
1497
  children: [/* @__PURE__ */ Y(O, { size: 15 }), "Archive"]
1500
1498
  })]
@@ -1505,24 +1503,24 @@ function We() {
1505
1503
  })]
1506
1504
  }),
1507
1505
  /* @__PURE__ */ Y(a, {
1508
- open: me,
1509
- onOpenChange: b,
1506
+ open: pe,
1507
+ onOpenChange: x,
1510
1508
  children: /* @__PURE__ */ X(te, {
1511
1509
  className: "sm:max-w-4xl",
1512
- children: [/* @__PURE__ */ X(ne, { children: [/* @__PURE__ */ Y(re, { children: "Resume Preview" }), /* @__PURE__ */ Y(o, { children: q.resumeFileName ?? "Candidate resume" })] }), /* @__PURE__ */ Y("div", {
1510
+ children: [/* @__PURE__ */ X(re, { children: [/* @__PURE__ */ Y(ie, { children: "Resume Preview" }), /* @__PURE__ */ Y(ne, { children: q.resumeFileName ?? "Candidate resume" })] }), /* @__PURE__ */ Y("div", {
1513
1511
  className: "h-[70vh] w-full rounded-lg border border-border-seam bg-bg-sunken/30 overflow-hidden",
1514
- children: I ? /* @__PURE__ */ X("div", {
1512
+ children: L ? /* @__PURE__ */ X("div", {
1515
1513
  className: "h-full flex flex-col items-center justify-center gap-3",
1516
- children: [/* @__PURE__ */ Y(U, {
1514
+ children: [/* @__PURE__ */ Y(W, {
1517
1515
  size: 28,
1518
1516
  className: "animate-spin text-text-secondary"
1519
1517
  }), /* @__PURE__ */ Y("p", {
1520
1518
  className: "text-sm text-text-secondary",
1521
1519
  children: "Loading preview…"
1522
1520
  })]
1523
- }) : C || !x ? /* @__PURE__ */ X("div", {
1521
+ }) : w || !S ? /* @__PURE__ */ X("div", {
1524
1522
  className: "h-full flex flex-col items-center justify-center gap-3",
1525
- children: [/* @__PURE__ */ Y(D, {
1523
+ children: [/* @__PURE__ */ Y(ye, {
1526
1524
  size: 28,
1527
1525
  className: "text-status-error-text"
1528
1526
  }), /* @__PURE__ */ Y("p", {
@@ -1530,8 +1528,8 @@ function We() {
1530
1528
  children: "Could not load the resume preview. Try downloading instead."
1531
1529
  })]
1532
1530
  }) : /* @__PURE__ */ Y("iframe", {
1533
- src: x,
1534
- title: `Resume preview — ${Be}`,
1531
+ src: S,
1532
+ title: `Resume preview — ${Ve}`,
1535
1533
  className: "h-full w-full"
1536
1534
  })
1537
1535
  })]
@@ -1541,6 +1539,6 @@ function We() {
1541
1539
  });
1542
1540
  }
1543
1541
  //#endregion
1544
- export { We as JobApplicationDetailPage };
1542
+ export { Ge as JobApplicationDetailPage };
1545
1543
 
1546
1544
  //# sourceMappingURL=JobApplicationDetailPage.js.map