@burdenoff/microfe-support 2026.819.2 → 2026.819.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- import { Badge as e, Button as t, Checkbox as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as ee, DialogHeader as te, DialogTitle as ne, Input as o, Label as s, Select as re, SelectContent as ie, SelectItem as ae, SelectTrigger as oe, SelectValue as se, Textarea as ce } from "../components/ui.js";
2
- import { useCreateJobApplicationMutation as le, useGetBulkCandidateTargetsLazyQuery as ue, useGetJobApplicationsQuery as de, useGetJobPostingsQuery as fe } from "../../generated/global-operations.js";
3
- import { JobPostingStatus as pe } from "../../generated/global-types.js";
1
+ import { Badge as e, Button as t, Checkbox as n, Dialog as r, DialogContent as i, DialogDescription as ee, DialogFooter as te, DialogHeader as ne, DialogTitle as re, Input as a, Label as o, Select as ie, SelectContent as ae, SelectItem as oe, SelectTrigger as se, SelectValue as ce, Textarea as le } from "../components/ui.js";
2
+ import { useCreateJobApplicationMutation as ue, useGetBulkCandidateTargetsLazyQuery as de, useGetJobApplicationsQuery as fe, useGetJobPostingQuery as pe, useGetJobPostingsQuery as me } from "../../generated/global-operations.js";
3
+ import { ConfiguredRoundState as s, JobPostingStatus as he } from "../../generated/global-types.js";
4
4
  import { nativeNotify as c } from "../../utils/nativeBridge.js";
5
- import { roundStatusConfig as me, roundStatusOrder as he, statusColors as l, statusLabels as ge, statusOrder as _e } from "../constants/pipeline.js";
6
- import { CandidateMaterializationError as ve, createEmptyCandidateSelection as u, getCandidateSelectionCount as ye, getSelectedCandidateIds as be, materializeCandidateTargets as xe, materializeCandidateTargetsByIds as Se, selectAllMaterializedCandidates as Ce, setVisibleCandidateSelection as we, toggleCandidateSelection as Te } from "../utils/bulkCandidateOperations.js";
7
- import { AddSelectedToRoundDialog as Ee, BulkCandidateSendDialog as De } from "../components/careers/BulkCandidateDialogs.js";
8
- import { BulkSelectionSummary as Oe } from "../components/careers/BulkSelectionSummary.js";
9
- import { requireBulkCandidateTargetPage as ke } from "../utils/bulkCandidateTargetQuery.js";
10
- import { useEffect as Ae, useRef as d, useState as f } from "react";
11
- import { AlertCircle as je, Briefcase as Me, ChevronDown as Ne, Filter as Pe, Grid as Fe, List as Ie, Loader2 as p, Paperclip as Le, Plus as Re, Search as ze, Send as Be, Shuffle as Ve, UserPlus as He } from "lucide-react";
12
- import { useLocation as Ue, useNavigate as We } from "react-router";
13
- import { graphqlFetch as Ge } from "@burdenoff/fe-libs/shared/graphql/fetch";
5
+ import { roundStatusConfig as ge, roundStatusOrder as _e, statusColors as l, statusLabels as ve, statusOrder as ye } from "../constants/pipeline.js";
6
+ import { CandidateMaterializationError as be, createEmptyCandidateSelection as u, getCandidateSelectionCount as xe, getSelectedCandidateIds as Se, materializeCandidateTargets as Ce, selectAllMaterializedCandidates as we, setVisibleCandidateSelection as Te, toggleCandidateSelection as Ee } from "../utils/bulkCandidateOperations.js";
7
+ import { AddSelectedToRoundDialog as De, BulkCandidateSendDialog as Oe } from "../components/careers/BulkCandidateDialogs.js";
8
+ import { BulkSelectionSummary as ke } from "../components/careers/BulkSelectionSummary.js";
9
+ import { requireBulkCandidateTargetPage as Ae } from "../utils/bulkCandidateTargetQuery.js";
10
+ import { useEffect as je, useRef as d, useState as f } from "react";
11
+ import { AlertCircle as Me, Briefcase as Ne, ChevronDown as Pe, Filter as Fe, Grid as Ie, List as Le, Loader2 as p, Paperclip as Re, Plus as ze, Search as Be, Send as Ve, Shuffle as He, UserPlus as Ue } from "lucide-react";
12
+ import { useLocation as We, useNavigate as Ge } from "react-router";
13
+ import { graphqlFetch as Ke } from "@burdenoff/fe-libs/shared/graphql/fetch";
14
14
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
15
- import { IllustratedEmptyState as Ke, PagePurpose as qe } from "@burdenoff/fe-libs/ui";
15
+ import { IllustratedEmptyState as qe, PagePurpose as Je } from "@burdenoff/fe-libs/ui";
16
16
  //#region src/support/pages/JobApplicationsPage.tsx
17
17
  var _ = 50;
18
- function Je(e) {
18
+ function Ye(e) {
19
19
  return {
20
20
  id: e.id,
21
21
  jobPostingId: e.jobPostingId ?? null,
@@ -28,7 +28,7 @@ function Je(e) {
28
28
  }))
29
29
  };
30
30
  }
31
- function Ye(e) {
31
+ function Xe(e) {
32
32
  return {
33
33
  ...e,
34
34
  ...e.ids ? { ids: [...e.ids] } : {},
@@ -36,11 +36,11 @@ function Ye(e) {
36
36
  ...e.roundStatuses ? { roundStatuses: [...e.roundStatuses] } : {}
37
37
  };
38
38
  }
39
- function Xe(e, t) {
39
+ function Ze(e, t) {
40
40
  let n = new Set(e);
41
41
  return n.has(t) ? n.delete(t) : n.add(t), n;
42
42
  }
43
- function Ze(e) {
43
+ function Qe(e) {
44
44
  return new Date(e).toLocaleDateString("en-US", {
45
45
  month: "short",
46
46
  day: "numeric",
@@ -49,27 +49,27 @@ function Ze(e) {
49
49
  minute: "2-digit"
50
50
  });
51
51
  }
52
- function Qe(e) {
52
+ function $e(e) {
53
53
  let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 6e4);
54
54
  if (n < 2) return "just now";
55
55
  if (n < 60) return `${n}m ago`;
56
56
  let r = Math.floor(n / 60);
57
57
  if (r < 24) return `${r}h ago`;
58
58
  let i = Math.floor(r / 24);
59
- return i < 30 ? `${i}d ago` : Ze(e);
59
+ return i < 30 ? `${i}d ago` : Qe(e);
60
60
  }
61
- var v = "__none__", $e = [
61
+ var v = "__none__", et = [
62
62
  "LinkedIn",
63
63
  "Referral",
64
64
  "Indeed",
65
65
  "Email",
66
66
  "Walk-in",
67
67
  "Other"
68
- ], et = 10485760, tt = ".pdf,.doc,.docx", nt = /* @__PURE__ */ new Set([
68
+ ], tt = 10485760, nt = ".pdf,.doc,.docx", rt = /* @__PURE__ */ new Set([
69
69
  "application/pdf",
70
70
  "application/msword",
71
71
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
72
- ]), rt = {
72
+ ]), it = {
73
73
  name: "",
74
74
  email: "",
75
75
  phone: "",
@@ -80,7 +80,7 @@ var v = "__none__", $e = [
80
80
  portfolio: "",
81
81
  coverLetter: ""
82
82
  };
83
- function it(e) {
83
+ function at(e) {
84
84
  return new Promise((t, n) => {
85
85
  let r = new FileReader();
86
86
  r.onload = () => {
@@ -94,25 +94,29 @@ function it(e) {
94
94
  }, r.onerror = () => n(r.error ?? /* @__PURE__ */ Error("Failed to read file")), r.readAsDataURL(e);
95
95
  });
96
96
  }
97
- function at() {
98
- let Ze = We(), at = Ue().search, [y, ot] = f(""), [b, st] = f(""), [x, ct] = f(/* @__PURE__ */ new Set()), [S, lt] = f(/* @__PURE__ */ new Set()), [C, ut] = f(""), [w, dt] = f(""), [T, ft] = f(!1), [pt, mt] = f("list"), [E, D] = f(u), [ht, gt] = f([]), [O, _t] = f(!1), [vt, k] = f(null), [A, yt] = f(null), [bt, j] = f([]), [xt, St] = f(u), [Ct, M] = f(!1), [wt, N] = f(null), [Tt, P] = f(!1), [F, I] = f(rt), [L, Et] = f({}), [R, z] = f(null), [Dt, B] = f(""), [Ot, kt] = f(!1), [At, jt] = f(!1), [V, Mt] = f({}), Nt = d(_), H = d(0), Pt = d(V);
99
- Pt.current = V, Ae(() => {
100
- let e = setTimeout(() => st(y), 300);
97
+ function ot() {
98
+ let Qe = Ge(), ot = We().search, [y, st] = f(""), [b, ct] = f(""), [x, lt] = f(/* @__PURE__ */ new Set()), [S, ut] = f(/* @__PURE__ */ new Set()), [C, dt] = f(""), [w, ft] = f(""), [T, pt] = f(""), [E, mt] = f(""), [D, ht] = f(!1), [O, gt] = f("list"), [k, A] = f(u), [_t, j] = f([]), [M, vt] = f(!1), [yt, N] = f(null), [P, bt] = f(null), [xt, St] = f([]), [Ct, wt] = f(u), [Tt, Et] = f(!1), [Dt, Ot] = f(null), [kt, F] = f(!1), [I, L] = f(it), [R, At] = f({}), [z, B] = f(null), [jt, V] = f(""), [Mt, Nt] = f(!1), [Pt, Ft] = f(!1), [H, It] = f({}), Lt = d(_), Rt = d(H);
99
+ Rt.current = H, je(() => {
100
+ let e = setTimeout(() => ct(y), 300);
101
101
  return () => clearTimeout(e);
102
102
  }, [y]);
103
- let U = y !== b, Ft = {
103
+ let U = y !== b, zt = {
104
104
  ...b ? { search: b } : {},
105
105
  ...x.size > 0 ? { statuses: Array.from(x) } : {},
106
106
  ...S.size > 0 ? { roundStatuses: Array.from(S) } : {},
107
107
  ...C ? { productId: C } : {},
108
- ...w ? { jobPostingId: w } : {}
108
+ ...w ? { jobPostingId: w } : {},
109
+ ...T ? { roundConfigId: T } : {},
110
+ ...E ? { configuredRoundState: E } : {}
109
111
  }, W = JSON.stringify({
110
112
  searchInput: y,
111
113
  search: b,
112
114
  statuses: Array.from(x).sort(),
113
115
  roundStatuses: Array.from(S).sort(),
114
116
  productId: C,
115
- jobPostingId: w
117
+ jobPostingId: w,
118
+ roundConfigId: T,
119
+ configuredRoundState: E
116
120
  }), G = d({
117
121
  key: W,
118
122
  generation: 0
@@ -122,125 +126,95 @@ function at() {
122
126
  generation: G.current.generation + 1
123
127
  });
124
128
  let K = `${G.current.generation}:${W}`, q = d(K);
125
- q.current = K, Ae(() => {
126
- H.current += 1, D(u()), gt([]), _t(!1), k(null), yt(null), j([]), St(u()), M(!1), N(null), jt(!1), Nt.current = _;
129
+ q.current = K, je(() => {
130
+ A(u()), j([]), vt(!1), N(null), bt(null), St([]), wt(u()), Et(!1), Ot(null), Ft(!1), Lt.current = _;
127
131
  }, [K]);
128
- let { data: It, loading: Lt, error: Rt, fetchMore: zt } = de({
132
+ let { data: Bt, loading: Vt, error: Ht, fetchMore: Ut } = fe({
129
133
  variables: {
130
- filter: Ft,
134
+ filter: zt,
131
135
  limit: _,
132
136
  offset: 0
133
137
  },
134
138
  fetchPolicy: "cache-and-network"
135
- }), [Bt] = ue({
139
+ }), [Wt] = de({
136
140
  fetchPolicy: "network-only",
137
141
  errorPolicy: "none"
138
- }), { data: Vt, loading: Ht } = fe({
142
+ }), { data: Gt, loading: Kt } = me({
139
143
  variables: {
140
144
  limit: 200,
141
145
  offset: 0
142
146
  },
143
147
  fetchPolicy: "cache-and-network"
144
- }), [Ut] = le(), Wt = (Vt?.jobPostings?.items ?? []).filter((e) => e.status === pe.Open), Gt = It?.jobApplications?.items ?? [], Kt = /* @__PURE__ */ new Map();
145
- for (let e of Gt) Kt.set(e.id, e);
146
- let J = Array.from(Kt.values()), Y = It?.jobApplications?.total ?? 0, qt = It?.jobApplications?.hasMore ?? !1, X = J.map((e) => e.id), Jt = be(E), Z = ye(E), Yt = (E.mode === "all" ? ht : J.map(Je)).filter((e) => Jt.has(e.id)), Xt = Yt.length === Z, Zt = !!w && Xt && Yt.every((e) => e.jobPostingId === w), Qt = X.filter((e) => Jt.has(e)).length, $t = X.length > 0 && Qt === X.length, Q = Zt && Z > 0 && !U && !O && !Ct, en = (Vt?.jobPostings?.items ?? []).reduce((e, t) => (e[t.id] = t, e), {}), tn = async (e) => {
147
- let t = Ye(Ft);
148
- return xe({
148
+ }), { data: qt, loading: Jt } = pe({
149
+ variables: { id: w },
150
+ skip: !w,
151
+ fetchPolicy: "cache-and-network"
152
+ }), [Yt] = ue(), Xt = (Gt?.jobPostings?.items ?? []).filter((e) => e.status === he.Open), Zt = qt?.jobPosting?.rounds ?? [], Qt = Bt?.jobApplications?.items ?? [], $t = /* @__PURE__ */ new Map();
153
+ for (let e of Qt) $t.set(e.id, e);
154
+ let J = Array.from($t.values()), Y = Bt?.jobApplications?.total ?? 0, en = Bt?.jobApplications?.hasMore ?? !1, X = J.map((e) => e.id), tn = Se(k), Z = xe(k), nn = (k.mode === "all" ? _t : J.map(Ye)).filter((e) => tn.has(e.id)), rn = nn.length === Z, an = !!w && rn && nn.every((e) => e.jobPostingId === w), on = X.filter((e) => tn.has(e)).length, sn = X.length > 0 && on === X.length, Q = an && Z > 0 && !U && !M && !Tt, cn = (Gt?.jobPostings?.items ?? []).reduce((e, t) => (e[t.id] = t, e), {}), ln = async (e) => {
155
+ let t = Xe(zt);
156
+ return Ce({
149
157
  scopeKey: e,
150
158
  expectedTotal: Y,
151
159
  getCurrentScopeKey: () => q.current,
152
160
  fetchPage: async (e, n) => {
153
- let r = await Bt({ variables: {
161
+ let r = await Wt({ variables: {
154
162
  filter: t,
155
163
  limit: e,
156
164
  offset: n
157
- } }), i = ke(r);
165
+ } }), i = Ae(r);
158
166
  return {
159
- items: i.items.map(Je),
167
+ items: i.items.map(Ye),
160
168
  total: i.total,
161
169
  hasMore: i.hasMore
162
170
  };
163
171
  }
164
172
  });
165
- }, nn = async (e, t) => {
166
- let n = Ye(Ft);
167
- return Se({
168
- scopeKey: e,
169
- applicationIds: t,
170
- getCurrentScopeKey: () => q.current,
171
- fetchChunkPage: async (e, t, r) => {
172
- let i = await Bt({ variables: {
173
- filter: {
174
- ...n,
175
- ids: [...e]
176
- },
177
- limit: t,
178
- offset: r
179
- } }), a = ke(i);
180
- return {
181
- items: a.items.map(Je),
182
- total: a.total,
183
- hasMore: a.hasMore
184
- };
185
- }
186
- });
187
- }, rn = async () => {
188
- if (O || U || Y === 0) return;
173
+ }, un = async () => {
174
+ if (M || U || Y === 0) return;
189
175
  let e = K;
190
- _t(!0), k(null);
176
+ vt(!0), N(null);
191
177
  try {
192
- let t = await tn(e);
178
+ let t = await ln(e);
193
179
  if (q.current !== e) return;
194
- gt(t), D(Ce(t.map((e) => e.id)));
180
+ j(t), A(we(t.map((e) => e.id)));
195
181
  } catch (t) {
196
- if (t instanceof ve && t.code === "STALE_SCOPE" || q.current !== e) return;
197
- k(t instanceof Error ? t.message : "Could not load all matching applications."), c("error");
198
- } finally {
199
- q.current === e && _t(!1);
200
- }
201
- }, $ = async (e) => {
202
- if (!Q || !w) return;
203
- let t = K, n = H.current + 1;
204
- H.current = n;
205
- let r = be(E);
206
- yt(e), j(Yt), St(E), N(null), M(!0);
207
- try {
208
- let e = await nn(t, [...r]);
209
- if (q.current !== t || H.current !== n) return;
210
- let i = new Map(e.map((e) => [e.id, e])), a = [...r].map((e) => i.get(e)).filter((e) => !!e);
211
- if (a.length !== r.size) throw Error("Some selected applications no longer match the frozen filter. Clear and select again.");
212
- j(a);
213
- } catch (e) {
214
- if (e instanceof ve && e.code === "STALE_SCOPE" || q.current !== t || H.current !== n) return;
215
- N(e instanceof Error ? e.message : "Could not refresh the selected applications."), c("error");
182
+ if (t instanceof be && t.code === "STALE_SCOPE" || q.current !== e) return;
183
+ N(t instanceof Error ? t.message : "Could not load all matching applications."), c("error");
216
184
  } finally {
217
- q.current === t && H.current === n && M(!1);
185
+ q.current === e && vt(!1);
218
186
  }
219
- }, an = () => {
220
- H.current += 1, yt(null), j([]), St(u()), N(null), M(!1);
221
- }, on = Array.from(new Set(J.flatMap((e) => e.productId ? [e.productId] : []))).sort(), sn = on.join(",");
222
- Ae(() => {
223
- let e = sn ? sn.split(",").filter((e) => !Pt.current[e]) : [];
187
+ }, dn = (e) => {
188
+ ft(e), pt(""), mt("");
189
+ }, fn = (e) => {
190
+ mt(e), e === s.Missing && ut(/* @__PURE__ */ new Set());
191
+ }, $ = (e) => {
192
+ !Q || !w || (bt(e), St(nn), wt(k), Ot(null), Et(!1));
193
+ }, pn = () => {
194
+ bt(null), St([]), wt(u()), Ot(null), Et(!1);
195
+ }, mn = Array.from(new Set(J.flatMap((e) => e.productId ? [e.productId] : []))).sort(), hn = mn.join(",");
196
+ je(() => {
197
+ let e = hn ? hn.split(",").filter((e) => !Rt.current[e]) : [];
224
198
  e.length !== 0 && e.forEach((e) => {
225
- Ge({
199
+ Ke({
226
200
  gateway: "global",
227
201
  query: "query($id: ID!) { platformProduct(id: $id) { name } }",
228
202
  variables: { id: e }
229
203
  }).then((t) => {
230
204
  let n = t.data?.platformProduct?.name;
231
- n && Mt((t) => ({
205
+ n && It((t) => ({
232
206
  ...t,
233
207
  [e]: n
234
208
  }));
235
209
  }).catch(() => {});
236
210
  });
237
- }, [sn]);
238
- let cn = async () => {
239
- if (!qt || At) return;
240
- let e = Nt.current, t = K;
241
- jt(!0);
211
+ }, [hn]);
212
+ let gn = async () => {
213
+ if (!en || Pt) return;
214
+ let e = Lt.current, t = K;
215
+ Ft(!0);
242
216
  try {
243
- let n = await zt({
217
+ let n = await Ut({
244
218
  variables: { offset: e },
245
219
  updateQuery: (e, { fetchMoreResult: t }) => {
246
220
  if (!t) return e;
@@ -253,82 +227,82 @@ function at() {
253
227
  } };
254
228
  }
255
229
  });
256
- q.current === t && (Nt.current = e + (n.data.jobApplications?.items.length ?? _));
230
+ q.current === t && (Lt.current = e + (n.data.jobApplications?.items.length ?? _));
257
231
  } catch (e) {
258
232
  console.error("Failed to load more applications:", e), c("error");
259
233
  } finally {
260
- q.current === t && jt(!1);
234
+ q.current === t && Ft(!1);
261
235
  }
262
- }, ln = () => {
263
- I(rt), Et({}), z(null), B("");
264
- }, un = (e) => {
236
+ }, _n = () => {
237
+ L(it), At({}), B(null), V("");
238
+ }, vn = (e) => {
265
239
  let t = e.target.files?.[0] ?? null;
266
- if (B(""), !t) {
267
- z(null);
240
+ if (V(""), !t) {
241
+ B(null);
268
242
  return;
269
243
  }
270
- if (t.size > et) {
271
- B("Resume must be 10 MB or smaller."), z(null), e.target.value = "";
244
+ if (t.size > tt) {
245
+ V("Resume must be 10 MB or smaller."), B(null), e.target.value = "";
272
246
  return;
273
247
  }
274
248
  let n = t.name.toLowerCase().split(".").pop() ?? "";
275
- if (!nt.has(t.type) && ![
249
+ if (!rt.has(t.type) && ![
276
250
  "pdf",
277
251
  "doc",
278
252
  "docx"
279
253
  ].includes(n)) {
280
- B("Resume must be a PDF, DOC, or DOCX file."), z(null), e.target.value = "";
254
+ V("Resume must be a PDF, DOC, or DOCX file."), B(null), e.target.value = "";
281
255
  return;
282
256
  }
283
- z(t);
284
- }, dn = () => {
257
+ B(t);
258
+ }, yn = () => {
285
259
  let e = {};
286
- return F.name.trim() || (e.name = "Name is required"), F.email.trim() ? /^\S+@\S+\.\S+$/.test(F.email.trim()) || (e.email = "Enter a valid email") : e.email = "Email is required", F.source.trim() || (e.source = "Source is required"), F.jobPostingId === v && !F.position.trim() && (e.position = "Position is required when no job posting is selected"), Et(e), Object.keys(e).length === 0;
287
- }, fn = async (e) => {
288
- if (e.preventDefault(), dn()) {
289
- kt(!0);
260
+ return I.name.trim() || (e.name = "Name is required"), I.email.trim() ? /^\S+@\S+\.\S+$/.test(I.email.trim()) || (e.email = "Enter a valid email") : e.email = "Email is required", I.source.trim() || (e.source = "Source is required"), I.jobPostingId === v && !I.position.trim() && (e.position = "Position is required when no job posting is selected"), At(e), Object.keys(e).length === 0;
261
+ }, bn = async (e) => {
262
+ if (e.preventDefault(), yn()) {
263
+ Nt(!0);
290
264
  try {
291
265
  let e, t, n;
292
- R && (t = await it(R), e = R.name, n = R.type || void 0);
293
- let r = F.jobPostingId !== v, i = (await Ut({
266
+ z && (t = await at(z), e = z.name, n = z.type || void 0);
267
+ let r = I.jobPostingId !== v, i = (await Yt({
294
268
  variables: { input: {
295
- name: F.name.trim(),
296
- email: F.email.trim(),
297
- phone: F.phone.trim() || void 0,
298
- jobPostingId: r ? F.jobPostingId : void 0,
299
- position: r ? void 0 : F.position.trim() || void 0,
300
- source: F.source.trim(),
301
- linkedin: F.linkedin.trim() || void 0,
302
- portfolio: F.portfolio.trim() || void 0,
303
- coverLetter: F.coverLetter.trim() || void 0,
269
+ name: I.name.trim(),
270
+ email: I.email.trim(),
271
+ phone: I.phone.trim() || void 0,
272
+ jobPostingId: r ? I.jobPostingId : void 0,
273
+ position: r ? void 0 : I.position.trim() || void 0,
274
+ source: I.source.trim(),
275
+ linkedin: I.linkedin.trim() || void 0,
276
+ portfolio: I.portfolio.trim() || void 0,
277
+ coverLetter: I.coverLetter.trim() || void 0,
304
278
  resumeFileName: e,
305
279
  resumeBase64: t,
306
280
  resumeMimeType: n
307
281
  } },
308
282
  refetchQueries: ["GetJobApplications"]
309
283
  })).data?.createJobApplication?.id;
310
- c("success"), P(!1), ln(), i && Ze(`/support/applications/${i}${at}`);
284
+ c("success"), F(!1), _n(), i && Qe(`/support/applications/${i}${ot}`);
311
285
  } catch (e) {
312
286
  console.error("Failed to create candidate:", e), c("error");
313
287
  } finally {
314
- kt(!1);
288
+ Nt(!1);
315
289
  }
316
290
  }
317
- }, pn = _e.reduce((e, t) => (e[t] = J.filter((e) => e.status === t), e), {}), mn = (t, r = !1) => {
318
- let i = t.jobPostingId ? en[t.jobPostingId]?.title : void 0, a = Jt.has(t.id);
291
+ }, xn = ye.reduce((e, t) => (e[t] = J.filter((e) => e.status === t), e), {}), Sn = (t, r = !1) => {
292
+ let i = t.jobPostingId ? cn[t.jobPostingId]?.title : void 0, ee = tn.has(t.id);
319
293
  return /* @__PURE__ */ g("div", {
320
- className: `w-full bg-bg-surface border rounded-lg shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] transition-[box-shadow,border-color] duration-200 group flex items-start gap-2 ${r ? "p-3" : "p-4"} ${a ? "border-primary" : "border-border-seam"}`,
294
+ className: `w-full bg-bg-surface border rounded-lg shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] transition-[box-shadow,border-color] duration-200 group flex items-start gap-2 ${r ? "p-3" : "p-4"} ${ee ? "border-primary" : "border-border-seam"}`,
321
295
  children: [/* @__PURE__ */ h("div", {
322
296
  className: "pt-0.5",
323
297
  children: /* @__PURE__ */ h(n, {
324
- checked: a,
325
- disabled: O || U,
326
- onCheckedChange: () => D((e) => Te(e, t.id)),
298
+ checked: ee,
299
+ disabled: M || U,
300
+ onCheckedChange: () => A((e) => Ee(e, t.id)),
327
301
  "aria-label": `Select ${t.firstName} ${t.lastName}`
328
302
  })
329
303
  }), /* @__PURE__ */ h("button", {
330
304
  type: "button",
331
- onClick: () => Ze(`/support/applications/${t.id}${at}`),
305
+ onClick: () => Qe(`/support/applications/${t.id}${ot}`),
332
306
  className: "flex-1 min-w-0 text-left",
333
307
  children: /* @__PURE__ */ g("div", {
334
308
  className: `flex ${r ? "flex-col" : "items-start"} justify-between gap-3`,
@@ -349,23 +323,23 @@ function at() {
349
323
  /* @__PURE__ */ h(e, {
350
324
  variant: "secondary",
351
325
  className: `${l[t.status] || l.NEW} ${t.status === "NEW" ? "motion-safe:animate-vc-glow-pulse" : ""}`,
352
- children: ge[t.status] || t.status
326
+ children: ve[t.status] || t.status
353
327
  }),
354
328
  i && /* @__PURE__ */ h(e, {
355
329
  variant: "outline",
356
330
  title: `Job posting: ${i}`,
357
331
  children: i
358
332
  }),
359
- t.productId && V[t.productId] && /* @__PURE__ */ h(e, {
333
+ t.productId && H[t.productId] && /* @__PURE__ */ h(e, {
360
334
  variant: "secondary",
361
335
  className: "bg-accent-purple-subtle text-accent-purple",
362
- title: `Product: ${V[t.productId]}`,
363
- children: V[t.productId]
336
+ title: `Product: ${H[t.productId]}`,
337
+ children: H[t.productId]
364
338
  }),
365
339
  t.resumeFileName && /* @__PURE__ */ g(e, {
366
340
  variant: "secondary",
367
341
  className: "bg-accent-blue-subtle text-accent-blue gap-1",
368
- children: [/* @__PURE__ */ h(Le, { size: r ? 10 : 11 }), "Resume"]
342
+ children: [/* @__PURE__ */ h(Re, { size: r ? 10 : 11 }), "Resume"]
369
343
  })
370
344
  ]
371
345
  }),
@@ -386,17 +360,17 @@ function at() {
386
360
  ]
387
361
  }), /* @__PURE__ */ h("div", {
388
362
  className: `text-text-secondary whitespace-nowrap ${r ? "text-[11px]" : "text-xs"}`,
389
- children: Qe(t.createdAt)
363
+ children: $e(t.createdAt)
390
364
  })]
391
365
  })
392
366
  })]
393
367
  }, t.id);
394
368
  };
395
- return Lt && J.length === 0 ? /* @__PURE__ */ g("div", {
369
+ return Vt && J.length === 0 ? /* @__PURE__ */ g("div", {
396
370
  className: "p-6",
397
371
  children: [/* @__PURE__ */ g("div", {
398
372
  className: "flex items-center gap-3 mb-6",
399
- children: [/* @__PURE__ */ h(Me, {
373
+ children: [/* @__PURE__ */ h(Ne, {
400
374
  size: 24,
401
375
  className: "text-text-primary"
402
376
  }), /* @__PURE__ */ h("h1", {
@@ -413,11 +387,11 @@ function at() {
413
387
  children: "Loading applications…"
414
388
  })]
415
389
  })]
416
- }) : Rt ? /* @__PURE__ */ g("div", {
390
+ }) : Ht ? /* @__PURE__ */ g("div", {
417
391
  className: "p-6",
418
392
  children: [/* @__PURE__ */ g("div", {
419
393
  className: "flex items-center gap-3 mb-6",
420
- children: [/* @__PURE__ */ h(Me, {
394
+ children: [/* @__PURE__ */ h(Ne, {
421
395
  size: 24,
422
396
  className: "text-text-primary"
423
397
  }), /* @__PURE__ */ h("h1", {
@@ -429,7 +403,7 @@ function at() {
429
403
  children: [
430
404
  /* @__PURE__ */ h("div", {
431
405
  className: "p-4 rounded-2xl bg-status-error-bg-subtle text-status-error-text mb-4",
432
- children: /* @__PURE__ */ h(je, { size: 48 })
406
+ children: /* @__PURE__ */ h(Me, { size: 48 })
433
407
  }),
434
408
  /* @__PURE__ */ h("h3", {
435
409
  className: "text-lg font-semibold text-text-primary mb-2",
@@ -437,7 +411,7 @@ function at() {
437
411
  }),
438
412
  /* @__PURE__ */ h("p", {
439
413
  className: "text-sm text-text-secondary",
440
- children: Rt.message
414
+ children: Ht.message
441
415
  })
442
416
  ]
443
417
  })]
@@ -449,7 +423,7 @@ function at() {
449
423
  children: [/* @__PURE__ */ g("div", {
450
424
  className: "flex items-center gap-3",
451
425
  children: [
452
- /* @__PURE__ */ h(Me, {
426
+ /* @__PURE__ */ h(Ne, {
453
427
  size: 24,
454
428
  className: "text-text-primary"
455
429
  }),
@@ -467,8 +441,8 @@ function at() {
467
441
  })
468
442
  ]
469
443
  }), /* @__PURE__ */ g(t, {
470
- onClick: () => P(!0),
471
- children: [/* @__PURE__ */ h(Re, { size: 18 }), "Add Candidate"]
444
+ onClick: () => F(!0),
445
+ children: [/* @__PURE__ */ h(ze, { size: 18 }), "Add Candidate"]
472
446
  })]
473
447
  }),
474
448
  J.length > 0 && /* @__PURE__ */ g("div", {
@@ -477,12 +451,12 @@ function at() {
477
451
  className: "flex flex-wrap items-center gap-2",
478
452
  children: [
479
453
  /* @__PURE__ */ h(n, {
480
- checked: $t ? !0 : Qt > 0 && "indeterminate",
481
- disabled: O || U,
482
- onCheckedChange: (e) => D((t) => we(t, X, e === !0)),
454
+ checked: sn ? !0 : on > 0 && "indeterminate",
455
+ disabled: M || U,
456
+ onCheckedChange: (e) => A((t) => Te(t, X, e === !0)),
483
457
  "aria-label": "Select all visible applications"
484
458
  }),
485
- Z > 0 ? /* @__PURE__ */ h(Oe, { selection: E }) : /* @__PURE__ */ g("span", {
459
+ Z > 0 ? /* @__PURE__ */ h(ke, { selection: k }) : /* @__PURE__ */ g("span", {
486
460
  className: "text-xs text-text-secondary",
487
461
  children: [
488
462
  "Select all ",
@@ -490,14 +464,14 @@ function at() {
490
464
  " visible applications"
491
465
  ]
492
466
  }),
493
- Y > 0 && (E.mode !== "all" || E.excludedIds.size > 0) ? /* @__PURE__ */ g(t, {
467
+ Y > 0 && (k.mode !== "all" || k.excludedIds.size > 0) ? /* @__PURE__ */ g(t, {
494
468
  type: "button",
495
469
  variant: "ghost",
496
470
  size: "sm",
497
- onClick: () => void rn(),
498
- disabled: O || U,
471
+ onClick: () => void un(),
472
+ disabled: M || U,
499
473
  children: [
500
- O ? /* @__PURE__ */ h(p, {
474
+ M ? /* @__PURE__ */ h(p, {
501
475
  size: 14,
502
476
  className: "animate-spin"
503
477
  }) : null,
@@ -509,22 +483,22 @@ function at() {
509
483
  Z > 0 ? /* @__PURE__ */ h("button", {
510
484
  type: "button",
511
485
  onClick: () => {
512
- D(u()), gt([]), k(null);
486
+ A(u()), j([]), N(null);
513
487
  },
514
- disabled: O,
488
+ disabled: M,
515
489
  className: "text-xs text-text-secondary underline hover:text-text-primary disabled:cursor-not-allowed disabled:opacity-50",
516
490
  children: "Clear"
517
491
  }) : null
518
492
  ]
519
- }), vt ? /* @__PURE__ */ h("p", {
493
+ }), yt ? /* @__PURE__ */ h("p", {
520
494
  className: "text-sm text-status-error-text",
521
495
  role: "alert",
522
- children: vt
496
+ children: yt
523
497
  }) : null]
524
498
  }),
525
499
  Z > 0 && /* @__PURE__ */ g("div", {
526
500
  className: "mb-4 flex flex-col justify-between gap-3 rounded-lg border border-primary/30 bg-primary/5 p-3 sm:flex-row sm:items-center",
527
- children: [/* @__PURE__ */ h("div", { children: w ? Zt ? /* @__PURE__ */ h("p", {
501
+ children: [/* @__PURE__ */ h("div", { children: w ? an ? /* @__PURE__ */ h("p", {
528
502
  className: "text-xs text-text-secondary",
529
503
  children: "Bulk actions run sequential requests of no more than 100 candidates each."
530
504
  }) : /* @__PURE__ */ h("p", {
@@ -542,7 +516,7 @@ function at() {
542
516
  disabled: !Q,
543
517
  onClick: () => void $("addRound"),
544
518
  className: "gap-2",
545
- children: [/* @__PURE__ */ h(He, { size: 14 }), "Add Selected to Round"]
519
+ children: [/* @__PURE__ */ h(Ue, { size: 14 }), "Add Selected to Round"]
546
520
  }),
547
521
  /* @__PURE__ */ g(t, {
548
522
  variant: "outline",
@@ -550,7 +524,7 @@ function at() {
550
524
  disabled: !Q,
551
525
  onClick: () => void $("message"),
552
526
  className: "gap-2",
553
- children: [/* @__PURE__ */ h(Be, { size: 14 }), "Send Message"]
527
+ children: [/* @__PURE__ */ h(Ve, { size: 14 }), "Send Message"]
554
528
  }),
555
529
  /* @__PURE__ */ g(t, {
556
530
  variant: "outline",
@@ -558,12 +532,12 @@ function at() {
558
532
  disabled: !Q,
559
533
  onClick: () => void $("assignment"),
560
534
  className: "gap-2",
561
- children: [/* @__PURE__ */ h(Ve, { size: 14 }), "Assign & Email Random Take-Home"]
535
+ children: [/* @__PURE__ */ h(He, { size: 14 }), "Assign & Email Random Take-Home"]
562
536
  })
563
537
  ]
564
538
  })]
565
539
  }),
566
- /* @__PURE__ */ h(qe, {
540
+ /* @__PURE__ */ h(Je, {
567
541
  className: "mb-6",
568
542
  children: "Candidates who apply through your careers pages show up here. Review resumes and move applicants through your hiring pipeline — from new submission to screening, interview and hire — so promising people get a timely response. Open an application to see the full profile and resume."
569
543
  }),
@@ -572,53 +546,53 @@ function at() {
572
546
  children: [
573
547
  /* @__PURE__ */ g("div", {
574
548
  className: "relative flex-1",
575
- children: [/* @__PURE__ */ h(ze, {
549
+ children: [/* @__PURE__ */ h(Be, {
576
550
  size: 18,
577
551
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
578
- }), /* @__PURE__ */ h(o, {
552
+ }), /* @__PURE__ */ h(a, {
579
553
  type: "text",
580
554
  "aria-label": "Search applications",
581
555
  placeholder: "Search by name, email, or position...",
582
556
  value: y,
583
- onChange: (e) => ot(e.target.value),
557
+ onChange: (e) => st(e.target.value),
584
558
  className: "pl-10"
585
559
  })]
586
560
  }),
587
561
  /* @__PURE__ */ g("div", {
588
562
  className: "flex items-center gap-1 p-1 rounded-lg border bg-bg-sunken/50",
589
563
  children: [/* @__PURE__ */ h(t, {
590
- variant: pt === "list" ? "secondary" : "ghost",
564
+ variant: O === "list" ? "secondary" : "ghost",
591
565
  size: "sm",
592
- onClick: () => mt("list"),
566
+ onClick: () => gt("list"),
593
567
  className: "px-3",
594
568
  "aria-label": "Show applications as a list",
595
- children: /* @__PURE__ */ h(Ie, { size: 18 })
569
+ children: /* @__PURE__ */ h(Le, { size: 18 })
596
570
  }), /* @__PURE__ */ h(t, {
597
- variant: pt === "kanban" ? "secondary" : "ghost",
571
+ variant: O === "kanban" ? "secondary" : "ghost",
598
572
  size: "sm",
599
- onClick: () => mt("kanban"),
573
+ onClick: () => gt("kanban"),
600
574
  className: "px-3",
601
575
  "aria-label": "Show applications as a kanban board",
602
- children: /* @__PURE__ */ h(Fe, { size: 18 })
576
+ children: /* @__PURE__ */ h(Ie, { size: 18 })
603
577
  })]
604
578
  }),
605
579
  /* @__PURE__ */ g(t, {
606
- variant: T ? "secondary" : "outline",
580
+ variant: D ? "secondary" : "outline",
607
581
  size: "sm",
608
- onClick: () => ft(!T),
582
+ onClick: () => ht(!D),
609
583
  className: "gap-2",
610
584
  children: [
611
- /* @__PURE__ */ h(Pe, { size: 16 }),
585
+ /* @__PURE__ */ h(Fe, { size: 16 }),
612
586
  "Filters",
613
- /* @__PURE__ */ h(Ne, {
587
+ /* @__PURE__ */ h(Pe, {
614
588
  size: 14,
615
- className: T ? "rotate-180 transition-transform" : "transition-transform"
589
+ className: D ? "rotate-180 transition-transform" : "transition-transform"
616
590
  })
617
591
  ]
618
592
  })
619
593
  ]
620
594
  }),
621
- T && /* @__PURE__ */ g("div", {
595
+ D && /* @__PURE__ */ g("div", {
622
596
  className: "mb-6 p-4 bg-bg-surface border border-border-seam rounded-lg space-y-4",
623
597
  children: [
624
598
  /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ g("p", {
@@ -629,103 +603,175 @@ function at() {
629
603
  })]
630
604
  }), /* @__PURE__ */ g("div", {
631
605
  className: "flex flex-wrap gap-1.5",
632
- children: [_e.map((e) => {
606
+ children: [ye.map((e) => {
633
607
  let t = x.has(e);
634
608
  return /* @__PURE__ */ h("button", {
635
609
  type: "button",
636
- onClick: () => ct((t) => Xe(t, e)),
610
+ onClick: () => lt((t) => Ze(t, e)),
637
611
  "aria-pressed": t,
638
612
  className: `px-2.5 py-1 rounded-full text-xs font-medium border transition-colors ${t ? `${l[e]} border-transparent` : "bg-bg-surface text-text-secondary border-border-seam hover:border-border-strong"}`,
639
- children: ge[e]
613
+ children: ve[e]
640
614
  }, e);
641
615
  }), x.size > 0 && /* @__PURE__ */ h("button", {
642
616
  type: "button",
643
- onClick: () => ct(/* @__PURE__ */ new Set()),
617
+ onClick: () => lt(/* @__PURE__ */ new Set()),
644
618
  className: "px-2.5 py-1 rounded-full text-xs font-medium text-text-secondary hover:text-text-primary underline",
645
619
  children: "Clear"
646
620
  })]
647
621
  })] }),
648
622
  /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ g("p", {
649
623
  className: "block text-xs font-medium text-text-secondary mb-1.5",
650
- children: ["Interview round stage ", /* @__PURE__ */ h("span", {
651
- className: "font-normal",
652
- children: "(select any number)"
653
- })]
624
+ children: [
625
+ "Interview round stage",
626
+ " ",
627
+ /* @__PURE__ */ h("span", {
628
+ className: "font-normal",
629
+ children: T ? "(for the exact configured round)" : "(select any number)"
630
+ })
631
+ ]
654
632
  }), /* @__PURE__ */ g("div", {
655
633
  className: "flex flex-wrap gap-1.5",
656
- children: [he.map((e) => {
657
- let t = S.has(e), n = me[e];
634
+ children: [_e.map((e) => {
635
+ let t = S.has(e), n = ge[e], r = E === s.Missing;
658
636
  return /* @__PURE__ */ h("button", {
659
637
  type: "button",
660
- onClick: () => lt((t) => Xe(t, e)),
638
+ onClick: () => ut((t) => Ze(t, e)),
661
639
  "aria-pressed": t,
662
- className: `px-2.5 py-1 rounded-full text-xs font-medium border transition-colors ${t ? `${n.className} border-transparent` : "bg-bg-surface text-text-secondary border-border-seam hover:border-border-strong"}`,
640
+ disabled: r,
641
+ className: `px-2.5 py-1 rounded-full text-xs font-medium border transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${t ? `${n.className} border-transparent` : "bg-bg-surface text-text-secondary border-border-seam hover:border-border-strong"}`,
663
642
  children: n.label
664
643
  }, e);
665
644
  }), S.size > 0 && /* @__PURE__ */ h("button", {
666
645
  type: "button",
667
- onClick: () => lt(/* @__PURE__ */ new Set()),
646
+ onClick: () => ut(/* @__PURE__ */ new Set()),
668
647
  className: "px-2.5 py-1 rounded-full text-xs font-medium text-text-secondary hover:text-text-primary underline",
669
648
  children: "Clear"
670
649
  })]
671
650
  })] }),
672
651
  /* @__PURE__ */ g("div", {
673
- className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
674
- children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
675
- htmlFor: "job-app-product-filter",
676
- className: "block text-xs font-medium text-text-secondary mb-1",
677
- children: "Product"
678
- }), /* @__PURE__ */ g("select", {
679
- id: "job-app-product-filter",
680
- value: C,
681
- onChange: (e) => ut(e.target.value),
682
- className: "w-full px-3 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent/50",
683
- children: [/* @__PURE__ */ h("option", {
684
- value: "",
685
- children: "All products"
686
- }), on.map((e) => /* @__PURE__ */ h("option", {
687
- value: e,
688
- children: V[e] || e
689
- }, e))]
690
- })] }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
691
- htmlFor: "job-app-posting-filter",
692
- className: "block text-xs font-medium text-text-secondary mb-1",
693
- children: "Job Posting"
694
- }), /* @__PURE__ */ g("select", {
695
- id: "job-app-posting-filter",
696
- value: w,
697
- onChange: (e) => dt(e.target.value),
698
- disabled: Ht,
699
- className: "w-full px-3 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent/50 disabled:opacity-50",
700
- children: [/* @__PURE__ */ h("option", {
701
- value: "",
702
- children: "All postings"
703
- }), (Vt?.jobPostings?.items ?? []).map((e) => /* @__PURE__ */ h("option", {
704
- value: e.id,
705
- children: e.title
706
- }, e.id))]
707
- })] })]
708
- })
652
+ className: "grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-4",
653
+ children: [
654
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
655
+ htmlFor: "job-app-product-filter",
656
+ className: "block text-xs font-medium text-text-secondary mb-1",
657
+ children: "Product"
658
+ }), /* @__PURE__ */ g("select", {
659
+ id: "job-app-product-filter",
660
+ value: C,
661
+ onChange: (e) => dt(e.target.value),
662
+ className: "w-full px-3 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent/50",
663
+ children: [/* @__PURE__ */ h("option", {
664
+ value: "",
665
+ children: "All products"
666
+ }), mn.map((e) => /* @__PURE__ */ h("option", {
667
+ value: e,
668
+ children: H[e] || e
669
+ }, e))]
670
+ })] }),
671
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
672
+ htmlFor: "job-app-posting-filter",
673
+ className: "block text-xs font-medium text-text-secondary mb-1",
674
+ children: "Job Posting"
675
+ }), /* @__PURE__ */ g("select", {
676
+ id: "job-app-posting-filter",
677
+ value: w,
678
+ onChange: (e) => dn(e.target.value),
679
+ disabled: Kt,
680
+ className: "w-full px-3 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent/50 disabled:opacity-50",
681
+ children: [/* @__PURE__ */ h("option", {
682
+ value: "",
683
+ children: "All postings"
684
+ }), (Gt?.jobPostings?.items ?? []).map((e) => /* @__PURE__ */ h("option", {
685
+ value: e.id,
686
+ children: e.title
687
+ }, e.id))]
688
+ })] }),
689
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
690
+ htmlFor: "job-app-round-config-filter",
691
+ className: "block text-xs font-medium text-text-secondary mb-1",
692
+ children: "Exact configured round"
693
+ }), /* @__PURE__ */ g("select", {
694
+ id: "job-app-round-config-filter",
695
+ value: T,
696
+ onChange: (e) => {
697
+ pt(e.target.value), mt("");
698
+ },
699
+ disabled: !w || Jt,
700
+ className: "w-full px-3 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent/50 disabled:opacity-50",
701
+ children: [/* @__PURE__ */ h("option", {
702
+ value: "",
703
+ children: "Any configured round"
704
+ }), Zt.map((e) => /* @__PURE__ */ g("option", {
705
+ value: e.id,
706
+ children: [
707
+ "Round ",
708
+ e.roundNumber,
709
+ " — ",
710
+ e.name
711
+ ]
712
+ }, e.id))]
713
+ })] }),
714
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
715
+ htmlFor: "job-app-configured-round-state-filter",
716
+ className: "block text-xs font-medium text-text-secondary mb-1",
717
+ children: "Exact round assignment"
718
+ }), /* @__PURE__ */ g("select", {
719
+ id: "job-app-configured-round-state-filter",
720
+ value: E,
721
+ onChange: (e) => fn(Object.values(s).find((t) => t === e.target.value) ?? ""),
722
+ disabled: !T,
723
+ className: "w-full px-3 py-2 bg-surface border border-default rounded-lg text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent/50 disabled:opacity-50",
724
+ children: [
725
+ /* @__PURE__ */ h("option", {
726
+ value: "",
727
+ children: "Any assignment state"
728
+ }),
729
+ /* @__PURE__ */ h("option", {
730
+ value: s.Missing,
731
+ children: "Missing this round"
732
+ }),
733
+ /* @__PURE__ */ h("option", {
734
+ value: s.Unassigned,
735
+ children: "Round exists, no assignment"
736
+ }),
737
+ /* @__PURE__ */ h("option", {
738
+ value: s.Assigned,
739
+ children: "Assignment already attached"
740
+ })
741
+ ]
742
+ })] })
743
+ ]
744
+ }),
745
+ T && E === s.Unassigned ? /* @__PURE__ */ g("p", {
746
+ className: "text-xs text-text-secondary",
747
+ children: [
748
+ "For the next assignment batch, select ",
749
+ /* @__PURE__ */ h("strong", { children: "Scheduled" }),
750
+ " above. Successful sends move the exact round to ",
751
+ /* @__PURE__ */ h("strong", { children: "Awaiting Submission" }),
752
+ ", so those candidates leave this filtered queue after refresh."
753
+ ]
754
+ }) : null
709
755
  ]
710
756
  }),
711
- J.length === 0 ? /* @__PURE__ */ h(Ke, {
757
+ J.length === 0 ? /* @__PURE__ */ h(qe, {
712
758
  illustration: "empty-people",
713
759
  title: "No applications yet",
714
760
  description: "Job applications from your careers pages will appear here."
715
- }) : /* @__PURE__ */ g(m, { children: [pt === "list" ? /* @__PURE__ */ h("div", {
761
+ }) : /* @__PURE__ */ g(m, { children: [O === "list" ? /* @__PURE__ */ h("div", {
716
762
  className: "space-y-3",
717
- children: J.map((e) => mn(e))
763
+ children: J.map((e) => Sn(e))
718
764
  }) : /* @__PURE__ */ h("div", {
719
765
  className: "flex gap-4 overflow-x-auto pb-4",
720
- children: _e.map((t) => {
721
- let n = pn[t] ?? [];
766
+ children: ye.map((t) => {
767
+ let n = xn[t] ?? [];
722
768
  return /* @__PURE__ */ g("div", {
723
769
  className: "flex flex-col gap-3 w-[280px] flex-shrink-0 max-h-[calc(100vh-280px)]",
724
770
  children: [/* @__PURE__ */ g("div", {
725
771
  className: "flex items-center justify-between px-1",
726
772
  children: [/* @__PURE__ */ h("h3", {
727
773
  className: "text-sm font-semibold text-text-primary",
728
- children: ge[t]
774
+ children: ve[t]
729
775
  }), /* @__PURE__ */ h(e, {
730
776
  variant: "secondary",
731
777
  className: l[t],
@@ -739,36 +785,36 @@ function at() {
739
785
  className: "text-xs text-text-secondary",
740
786
  children: "No applications"
741
787
  })
742
- }), n.map((e) => mn(e, !0))]
788
+ }), n.map((e) => Sn(e, !0))]
743
789
  })]
744
790
  }, t);
745
791
  })
746
- }), qt && /* @__PURE__ */ h("div", {
792
+ }), en && /* @__PURE__ */ h("div", {
747
793
  className: "flex justify-center mt-6",
748
794
  children: /* @__PURE__ */ g(t, {
749
795
  variant: "outline",
750
796
  size: "sm",
751
- onClick: () => void cn(),
752
- disabled: At,
797
+ onClick: () => void gn(),
798
+ disabled: Pt,
753
799
  className: "gap-2",
754
- children: [At ? /* @__PURE__ */ h(p, {
800
+ children: [Pt ? /* @__PURE__ */ h(p, {
755
801
  size: 14,
756
802
  className: "animate-spin"
757
803
  }) : null, "Load more"]
758
804
  })
759
805
  })] }),
760
806
  /* @__PURE__ */ h(r, {
761
- open: Tt,
807
+ open: kt,
762
808
  onOpenChange: (e) => {
763
- P(e), e || ln();
809
+ F(e), e || _n();
764
810
  },
765
811
  children: /* @__PURE__ */ g(i, {
766
812
  className: "sm:max-w-2xl max-h-[90vh] overflow-y-auto",
767
813
  children: [
768
- /* @__PURE__ */ g(te, { children: [/* @__PURE__ */ h(ne, { children: "Add Candidate" }), /* @__PURE__ */ h(a, { children: "Manually add a candidate to the hiring pipeline. Resumes are optional and can be attached as PDF, DOC, or DOCX (max 10 MB)." })] }),
814
+ /* @__PURE__ */ g(ne, { children: [/* @__PURE__ */ h(re, { children: "Add Candidate" }), /* @__PURE__ */ h(ee, { children: "Manually add a candidate to the hiring pipeline. Resumes are optional and can be attached as PDF, DOC, or DOCX (max 10 MB)." })] }),
769
815
  /* @__PURE__ */ g("form", {
770
816
  id: "add-candidate-form",
771
- onSubmit: fn,
817
+ onSubmit: bn,
772
818
  className: "space-y-4",
773
819
  children: [
774
820
  /* @__PURE__ */ g("div", {
@@ -776,52 +822,52 @@ function at() {
776
822
  children: [/* @__PURE__ */ g("div", {
777
823
  className: "space-y-1.5",
778
824
  children: [
779
- /* @__PURE__ */ g(s, {
825
+ /* @__PURE__ */ g(o, {
780
826
  htmlFor: "candidate-name",
781
827
  children: ["Name ", /* @__PURE__ */ h("span", {
782
828
  className: "text-status-error-text",
783
829
  children: "*"
784
830
  })]
785
831
  }),
786
- /* @__PURE__ */ h(o, {
832
+ /* @__PURE__ */ h(a, {
787
833
  id: "candidate-name",
788
- value: F.name,
789
- onChange: (e) => I((t) => ({
834
+ value: I.name,
835
+ onChange: (e) => L((t) => ({
790
836
  ...t,
791
837
  name: e.target.value
792
838
  })),
793
839
  placeholder: "Full name",
794
- "aria-invalid": !!L.name
840
+ "aria-invalid": !!R.name
795
841
  }),
796
- L.name && /* @__PURE__ */ h("p", {
842
+ R.name && /* @__PURE__ */ h("p", {
797
843
  className: "text-xs text-status-error-text",
798
- children: L.name
844
+ children: R.name
799
845
  })
800
846
  ]
801
847
  }), /* @__PURE__ */ g("div", {
802
848
  className: "space-y-1.5",
803
849
  children: [
804
- /* @__PURE__ */ g(s, {
850
+ /* @__PURE__ */ g(o, {
805
851
  htmlFor: "candidate-email",
806
852
  children: ["Email ", /* @__PURE__ */ h("span", {
807
853
  className: "text-status-error-text",
808
854
  children: "*"
809
855
  })]
810
856
  }),
811
- /* @__PURE__ */ h(o, {
857
+ /* @__PURE__ */ h(a, {
812
858
  id: "candidate-email",
813
859
  type: "email",
814
- value: F.email,
815
- onChange: (e) => I((t) => ({
860
+ value: I.email,
861
+ onChange: (e) => L((t) => ({
816
862
  ...t,
817
863
  email: e.target.value
818
864
  })),
819
865
  placeholder: "email@example.com",
820
- "aria-invalid": !!L.email
866
+ "aria-invalid": !!R.email
821
867
  }),
822
- L.email && /* @__PURE__ */ h("p", {
868
+ R.email && /* @__PURE__ */ h("p", {
823
869
  className: "text-xs text-status-error-text",
824
- children: L.email
870
+ children: R.email
825
871
  })
826
872
  ]
827
873
  })]
@@ -830,13 +876,13 @@ function at() {
830
876
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
831
877
  children: [/* @__PURE__ */ g("div", {
832
878
  className: "space-y-1.5",
833
- children: [/* @__PURE__ */ h(s, {
879
+ children: [/* @__PURE__ */ h(o, {
834
880
  htmlFor: "candidate-phone",
835
881
  children: "Phone"
836
- }), /* @__PURE__ */ h(o, {
882
+ }), /* @__PURE__ */ h(a, {
837
883
  id: "candidate-phone",
838
- value: F.phone,
839
- onChange: (e) => I((t) => ({
884
+ value: I.phone,
885
+ onChange: (e) => L((t) => ({
840
886
  ...t,
841
887
  phone: e.target.value
842
888
  })),
@@ -845,31 +891,31 @@ function at() {
845
891
  }), /* @__PURE__ */ g("div", {
846
892
  className: "space-y-1.5",
847
893
  children: [
848
- /* @__PURE__ */ g(s, {
894
+ /* @__PURE__ */ g(o, {
849
895
  htmlFor: "candidate-source",
850
896
  children: ["Source ", /* @__PURE__ */ h("span", {
851
897
  className: "text-status-error-text",
852
898
  children: "*"
853
899
  })]
854
900
  }),
855
- /* @__PURE__ */ h(o, {
901
+ /* @__PURE__ */ h(a, {
856
902
  id: "candidate-source",
857
903
  list: "candidate-source-suggestions",
858
- value: F.source,
859
- onChange: (e) => I((t) => ({
904
+ value: I.source,
905
+ onChange: (e) => L((t) => ({
860
906
  ...t,
861
907
  source: e.target.value
862
908
  })),
863
909
  placeholder: "e.g. LinkedIn",
864
- "aria-invalid": !!L.source
910
+ "aria-invalid": !!R.source
865
911
  }),
866
912
  /* @__PURE__ */ h("datalist", {
867
913
  id: "candidate-source-suggestions",
868
- children: $e.map((e) => /* @__PURE__ */ h("option", { value: e }, e))
914
+ children: et.map((e) => /* @__PURE__ */ h("option", { value: e }, e))
869
915
  }),
870
- L.source && /* @__PURE__ */ h("p", {
916
+ R.source && /* @__PURE__ */ h("p", {
871
917
  className: "text-xs text-status-error-text",
872
- children: L.source
918
+ children: R.source
873
919
  })
874
920
  ]
875
921
  })]
@@ -879,24 +925,24 @@ function at() {
879
925
  children: [/* @__PURE__ */ g("div", {
880
926
  className: "space-y-1.5",
881
927
  children: [
882
- /* @__PURE__ */ h(s, {
928
+ /* @__PURE__ */ h(o, {
883
929
  htmlFor: "candidate-job-posting",
884
930
  children: "Job Posting"
885
931
  }),
886
- /* @__PURE__ */ g(re, {
887
- value: F.jobPostingId,
888
- onValueChange: (e) => I((t) => ({
932
+ /* @__PURE__ */ g(ie, {
933
+ value: I.jobPostingId,
934
+ onValueChange: (e) => L((t) => ({
889
935
  ...t,
890
936
  jobPostingId: e
891
937
  })),
892
- disabled: Ht,
893
- children: [/* @__PURE__ */ h(oe, {
938
+ disabled: Kt,
939
+ children: [/* @__PURE__ */ h(se, {
894
940
  id: "candidate-job-posting",
895
- children: /* @__PURE__ */ h(se, { placeholder: "Select an open posting" })
896
- }), /* @__PURE__ */ g(ie, { children: [/* @__PURE__ */ h(ae, {
941
+ children: /* @__PURE__ */ h(ce, { placeholder: "Select an open posting" })
942
+ }), /* @__PURE__ */ g(ae, { children: [/* @__PURE__ */ h(oe, {
897
943
  value: v,
898
944
  children: "No posting (manual entry)"
899
- }), Wt.map((e) => /* @__PURE__ */ h(ae, {
945
+ }), Xt.map((e) => /* @__PURE__ */ h(oe, {
900
946
  value: e.id,
901
947
  children: e.title
902
948
  }, e.id))] })]
@@ -909,31 +955,31 @@ function at() {
909
955
  }), /* @__PURE__ */ g("div", {
910
956
  className: "space-y-1.5",
911
957
  children: [
912
- /* @__PURE__ */ g(s, {
958
+ /* @__PURE__ */ g(o, {
913
959
  htmlFor: "candidate-position",
914
960
  children: [
915
961
  "Position",
916
962
  " ",
917
- F.jobPostingId === v && /* @__PURE__ */ h("span", {
963
+ I.jobPostingId === v && /* @__PURE__ */ h("span", {
918
964
  className: "text-status-error-text",
919
965
  children: "*"
920
966
  })
921
967
  ]
922
968
  }),
923
- /* @__PURE__ */ h(o, {
969
+ /* @__PURE__ */ h(a, {
924
970
  id: "candidate-position",
925
- value: F.position,
926
- onChange: (e) => I((t) => ({
971
+ value: I.position,
972
+ onChange: (e) => L((t) => ({
927
973
  ...t,
928
974
  position: e.target.value
929
975
  })),
930
976
  placeholder: "e.g. Product Engineer",
931
- disabled: F.jobPostingId !== v,
932
- "aria-invalid": !!L.position
977
+ disabled: I.jobPostingId !== v,
978
+ "aria-invalid": !!R.position
933
979
  }),
934
- L.position && /* @__PURE__ */ h("p", {
980
+ R.position && /* @__PURE__ */ h("p", {
935
981
  className: "text-xs text-status-error-text",
936
- children: L.position
982
+ children: R.position
937
983
  })
938
984
  ]
939
985
  })]
@@ -942,13 +988,13 @@ function at() {
942
988
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
943
989
  children: [/* @__PURE__ */ g("div", {
944
990
  className: "space-y-1.5",
945
- children: [/* @__PURE__ */ h(s, {
991
+ children: [/* @__PURE__ */ h(o, {
946
992
  htmlFor: "candidate-linkedin",
947
993
  children: "LinkedIn"
948
- }), /* @__PURE__ */ h(o, {
994
+ }), /* @__PURE__ */ h(a, {
949
995
  id: "candidate-linkedin",
950
- value: F.linkedin,
951
- onChange: (e) => I((t) => ({
996
+ value: I.linkedin,
997
+ onChange: (e) => L((t) => ({
952
998
  ...t,
953
999
  linkedin: e.target.value
954
1000
  })),
@@ -956,13 +1002,13 @@ function at() {
956
1002
  })]
957
1003
  }), /* @__PURE__ */ g("div", {
958
1004
  className: "space-y-1.5",
959
- children: [/* @__PURE__ */ h(s, {
1005
+ children: [/* @__PURE__ */ h(o, {
960
1006
  htmlFor: "candidate-portfolio",
961
1007
  children: "Portfolio"
962
- }), /* @__PURE__ */ h(o, {
1008
+ }), /* @__PURE__ */ h(a, {
963
1009
  id: "candidate-portfolio",
964
- value: F.portfolio,
965
- onChange: (e) => I((t) => ({
1010
+ value: I.portfolio,
1011
+ onChange: (e) => L((t) => ({
966
1012
  ...t,
967
1013
  portfolio: e.target.value
968
1014
  })),
@@ -972,13 +1018,13 @@ function at() {
972
1018
  }),
973
1019
  /* @__PURE__ */ g("div", {
974
1020
  className: "space-y-1.5",
975
- children: [/* @__PURE__ */ h(s, {
1021
+ children: [/* @__PURE__ */ h(o, {
976
1022
  htmlFor: "candidate-cover-letter",
977
1023
  children: "Cover Letter"
978
- }), /* @__PURE__ */ h(ce, {
1024
+ }), /* @__PURE__ */ h(le, {
979
1025
  id: "candidate-cover-letter",
980
- value: F.coverLetter,
981
- onChange: (e) => I((t) => ({
1026
+ value: I.coverLetter,
1027
+ onChange: (e) => L((t) => ({
982
1028
  ...t,
983
1029
  coverLetter: e.target.value
984
1030
  })),
@@ -989,48 +1035,48 @@ function at() {
989
1035
  /* @__PURE__ */ g("div", {
990
1036
  className: "space-y-1.5",
991
1037
  children: [
992
- /* @__PURE__ */ h(s, {
1038
+ /* @__PURE__ */ h(o, {
993
1039
  htmlFor: "candidate-resume",
994
1040
  children: "Resume (optional)"
995
1041
  }),
996
- /* @__PURE__ */ h(o, {
1042
+ /* @__PURE__ */ h(a, {
997
1043
  id: "candidate-resume",
998
1044
  type: "file",
999
- accept: tt,
1000
- onChange: un
1045
+ accept: nt,
1046
+ onChange: vn
1001
1047
  }),
1002
1048
  /* @__PURE__ */ g("p", {
1003
1049
  className: "text-xs text-text-secondary flex items-center gap-1",
1004
1050
  children: [
1005
- /* @__PURE__ */ h(Le, { size: 11 }),
1051
+ /* @__PURE__ */ h(Re, { size: 11 }),
1006
1052
  "PDF, DOC, or DOCX up to 10 MB.",
1007
- R ? ` Selected: ${R.name}` : ""
1053
+ z ? ` Selected: ${z.name}` : ""
1008
1054
  ]
1009
1055
  }),
1010
- Dt && /* @__PURE__ */ h("p", {
1056
+ jt && /* @__PURE__ */ h("p", {
1011
1057
  className: "text-xs text-status-error-text",
1012
- children: Dt
1058
+ children: jt
1013
1059
  })
1014
1060
  ]
1015
1061
  })
1016
1062
  ]
1017
1063
  }),
1018
- /* @__PURE__ */ g(ee, { children: [/* @__PURE__ */ h(t, {
1064
+ /* @__PURE__ */ g(te, { children: [/* @__PURE__ */ h(t, {
1019
1065
  type: "button",
1020
1066
  variant: "outline",
1021
1067
  onClick: () => {
1022
- P(!1), ln();
1068
+ F(!1), _n();
1023
1069
  },
1024
- disabled: Ot,
1070
+ disabled: Mt,
1025
1071
  children: "Cancel"
1026
1072
  }), /* @__PURE__ */ h(t, {
1027
1073
  type: "submit",
1028
1074
  form: "add-candidate-form",
1029
- disabled: Ot,
1030
- children: Ot ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(p, {
1075
+ disabled: Mt,
1076
+ children: Mt ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(p, {
1031
1077
  size: 16,
1032
1078
  className: "animate-spin mr-2"
1033
- }), "Adding…"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(He, {
1079
+ }), "Adding…"] }) : /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Ue, {
1034
1080
  size: 16,
1035
1081
  className: "mr-2"
1036
1082
  }), "Add Candidate"] })
@@ -1038,32 +1084,30 @@ function at() {
1038
1084
  ]
1039
1085
  })
1040
1086
  }),
1041
- A === "message" || A === "assignment" ? /* @__PURE__ */ h(De, {
1042
- mode: A,
1087
+ P === "message" || P === "assignment" ? /* @__PURE__ */ h(Oe, {
1088
+ mode: P,
1043
1089
  open: !0,
1044
- onClose: an,
1090
+ onClose: pn,
1045
1091
  onOpenAddRound: () => void $("addRound"),
1046
- targets: bt,
1047
- selection: xt,
1092
+ targets: xt,
1093
+ selection: Ct,
1048
1094
  jobPostingId: w,
1049
- previewLoading: Ct,
1050
- previewError: wt,
1051
- refreshTargets: (e) => nn(K, e)
1095
+ previewLoading: Tt,
1096
+ previewError: Dt
1052
1097
  }) : null,
1053
- A === "addRound" ? /* @__PURE__ */ h(Ee, {
1098
+ P === "addRound" ? /* @__PURE__ */ h(De, {
1054
1099
  open: !0,
1055
- onClose: an,
1056
- targets: bt,
1057
- selection: xt,
1100
+ onClose: pn,
1101
+ targets: xt,
1102
+ selection: Ct,
1058
1103
  jobPostingId: w,
1059
- previewLoading: Ct,
1060
- previewError: wt,
1061
- refreshTargets: (e) => nn(K, e)
1104
+ previewLoading: Tt,
1105
+ previewError: Dt
1062
1106
  }) : null
1063
1107
  ]
1064
1108
  });
1065
1109
  }
1066
1110
  //#endregion
1067
- export { at as JobApplicationsPage };
1111
+ export { ot as JobApplicationsPage };
1068
1112
 
1069
1113
  //# sourceMappingURL=JobApplicationsPage.js.map