@burdenoff/microfe-support 2026.825.1 → 2026.830.1

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