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