@burdenoff/microfe-support 2026.817.3 → 2026.818.1

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