@burdenoff/microfe-support 2026.830.2 → 2026.902.2

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