@burdenoff/microfe-support 2026.902.1 → 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, BulkCustomEmailDialog as Ge, NotifyDuplicateApplicantsDialog as Ke } from "../components/careers/BulkCandidateDialogs.js";
10
- import { BulkSelectionSummary as qe } from "../components/careers/BulkSelectionSummary.js";
11
- import { requireBulkCandidateTargetPage as Je } from "../utils/bulkCandidateTargetQuery.js";
12
- import { useDebouncedUrlText as Ye } from "../hooks/useDebouncedUrlText.js";
13
- import { useCallback as l, useEffect as Xe, useMemo as u, useRef as d, useState as f } from "react";
14
- import { AlertCircle as Ze, Briefcase as Qe, ChevronDown as $e, Filter as et, Grid as tt, List as nt, Loader2 as rt, Mail as it, Paperclip as at, Plus as ot, Search as st, Send as ct, Shuffle as lt, UserPlus as ut, X as dt } from "lucide-react";
15
- import { useLocation as ft, useNavigate as pt, useSearchParams as mt } from "react-router";
16
- import { graphqlFetch as ht } from "@burdenoff/fe-libs/shared/graphql/fetch";
17
- import { Fragment as gt, jsx as p, jsxs as m } from "react/jsx-runtime";
18
- import { IllustratedEmptyState as _t, PagePurpose as vt } 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 yt = 50;
21
- function bt(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 bt(e) {
31
31
  }))
32
32
  };
33
33
  }
34
- function xt(e) {
34
+ function Ct(e) {
35
35
  return {
36
36
  ...e,
37
37
  ...e.ids ? { ids: [...e.ids] } : {},
@@ -39,10 +39,10 @@ function xt(e) {
39
39
  ...e.roundStatuses ? { roundStatuses: [...e.roundStatuses] } : {}
40
40
  };
41
41
  }
42
- function St(e, t) {
42
+ function wt(e, t) {
43
43
  return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
44
44
  }
45
- function Ct(e) {
45
+ function Tt(e) {
46
46
  return new Date(e).toLocaleDateString("en-US", {
47
47
  month: "short",
48
48
  day: "numeric",
@@ -51,27 +51,27 @@ function Ct(e) {
51
51
  minute: "2-digit"
52
52
  });
53
53
  }
54
- function wt(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` : Ct(e);
61
+ return i < 30 ? `${i}d ago` : Tt(e);
62
62
  }
63
- var h = "__none__", Tt = [
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
- ], Et = 10485760, Dt = ".pdf,.doc,.docx", Ot = /* @__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
- ]), kt = {
74
+ ]), jt = {
75
75
  name: "",
76
76
  email: "",
77
77
  phone: "",
@@ -82,7 +82,7 @@ var h = "__none__", Tt = [
82
82
  portfolio: "",
83
83
  coverLetter: ""
84
84
  };
85
- function At(e) {
85
+ function Mt(e) {
86
86
  return new Promise((t, n) => {
87
87
  let r = new FileReader();
88
88
  r.onload = () => {
@@ -96,40 +96,40 @@ function At(e) {
96
96
  }, r.onerror = () => n(r.error ?? /* @__PURE__ */ Error("Failed to read file")), r.readAsDataURL(e);
97
97
  });
98
98
  }
99
- function jt() {
100
- let Ct = pt(), jt = ft(), { organizationId: Mt, workspaceId: Nt, productId: Pt } = e(), [Ft, It] = mt(), Lt = Ft.toString(), g = u(() => Oe(new URLSearchParams(Lt)), [Lt]), _ = l((e) => {
101
- It((t) => e(Ee(t, typeof window > "u" ? "" : window.location.search)), { replace: !0 });
102
- }, [It]), v = l((e) => {
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
103
  _((t) => be(t, {
104
104
  ...Oe(t),
105
105
  ...e
106
106
  }));
107
- }, [_]), Rt = l((e, t) => {
107
+ }, [_]), Bt = l((e, t) => {
108
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
- }, [_]), 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, zt = g.duplicateEmail, Bt = g.assignmentOwnerEmail, E = g.interviewerId, Vt = l((e) => (v({ search: e }), De(e)), [v]), Ht = l((e) => (v({ assignmentOwnerEmail: e }), De(e)), [v]), [Ut, Wt, Gt] = Ye(y, Vt), [Kt, qt, Jt] = Ye(Bt, Ht), Yt = l(() => {
113
- Gt(), Jt(), _(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
- Gt,
116
- Jt,
115
+ qt,
116
+ Xt,
117
117
  _
118
- ]), Xt = be(Ee(new URLSearchParams(jt.search), typeof window > "u" ? "" : window.location.search), {
118
+ ]), Qt = be(Ee(new URLSearchParams(Nt.search), typeof window > "u" ? "" : window.location.search), {
119
119
  ...g,
120
- search: Ut,
121
- assignmentOwnerEmail: Kt
122
- }).toString(), Zt = Xt ? `?${Xt}` : "", D = Ce(g), Qt = we(g), $t = ke(Ft.get(ye)), en = (e) => Rt(ye, e === "list" ? null : e), tn = Ft.get(ve), nn = D > 0, O = tn === null ? nn : tn === "1", rn = () => {
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
123
  let e = !O;
124
- Rt(ve, e === nn ? null : e ? "1" : "0");
125
- }, [k, A] = f(c), [an, on] = f([]), [j, sn] = f(!1), [cn, M] = f(null), [N, ln] = f(null), [P, un] = f([]), [F, dn] = f(c), [I, fn] = f(!1), [L, pn] = f(null), [mn, R] = f(!1), [z, B] = f(kt), [V, hn] = f({}), [H, U] = f(null), [gn, _n] = f(""), [vn, yn] = f(!1), [bn, xn] = f(!1), [W, Sn] = f({}), Cn = d(yt), wn = d(W);
126
- wn.current = W;
127
- let G = xe(Mt, Nt, Pt), Tn = d(G);
128
- Xe(() => {
129
- let e = Tn.current;
130
- Tn.current = G, e !== G && (Te(e, G) || Yt());
131
- }, [G, Yt]);
132
- let K = Ut !== y, En = {
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
133
  ...y ? { search: y } : {},
134
134
  ...b.size > 0 ? { statuses: Array.from(b) } : {},
135
135
  ...x.size > 0 ? { roundStatuses: Array.from(x) } : {},
@@ -137,11 +137,11 @@ function jt() {
137
137
  ...C ? { jobPostingId: C } : {},
138
138
  ...w ? { roundConfigId: w } : {},
139
139
  ...T ? { configuredRoundState: T } : {},
140
- ...zt && C ? { duplicateEmail: !0 } : {},
141
- ...Bt ? { assignmentOwnerEmail: Bt } : {},
140
+ ...Vt && C ? { duplicateEmail: !0 } : {},
141
+ ...Ht ? { assignmentOwnerEmail: Ht } : {},
142
142
  ...E ? { interviewerId: E } : {}
143
- }, Dn = JSON.stringify({
144
- searchInput: Ut,
143
+ }, An = JSON.stringify({
144
+ searchInput: Gt,
145
145
  search: y,
146
146
  statuses: Array.from(b).sort(),
147
147
  roundStatuses: Array.from(x).sort(),
@@ -149,100 +149,100 @@ function jt() {
149
149
  jobPostingId: C,
150
150
  roundConfigId: w,
151
151
  configuredRoundState: T,
152
- duplicateEmail: zt && !!C,
153
- assignmentOwnerEmail: Bt,
152
+ duplicateEmail: Vt && !!C,
153
+ assignmentOwnerEmail: Ht,
154
154
  interviewerId: E
155
- }), On = d({
156
- key: Dn,
155
+ }), jn = d({
156
+ key: An,
157
157
  generation: 0
158
158
  });
159
- On.current.key !== Dn && (On.current = {
160
- key: Dn,
161
- generation: On.current.generation + 1
159
+ jn.current.key !== An && (jn.current = {
160
+ key: An,
161
+ generation: jn.current.generation + 1
162
162
  });
163
- let q = `${On.current.generation}:${Dn}`, J = d(q);
164
- J.current = q, Xe(() => {
165
- A(c()), on([]), sn(!1), M(null), ln(null), un([]), dn(c()), fn(!1), pn(null), xn(!1), Cn.current = yt;
166
- }, [q]);
167
- let { data: kn, loading: An, error: jn, fetchMore: Mn } = 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: En,
170
- limit: yt,
169
+ filter: kn,
170
+ limit: xt,
171
171
  offset: 0
172
172
  },
173
173
  fetchPolicy: "cache-and-network"
174
- }), [Nn] = fe({
174
+ }), [In] = fe({
175
175
  fetchPolicy: "network-only",
176
176
  errorPolicy: "none"
177
- }), { data: Pn, 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({
183
+ }), { data: zn, loading: Bn } = he({
184
184
  variables: { id: C },
185
185
  skip: !C,
186
186
  fetchPolicy: "cache-and-network"
187
- }), { data: Rn, loading: zn } = pe({ variables: { limit: 200 } }), [Bn] = de(), Vn = (Pn?.jobPostings?.items ?? []).filter((e) => e.status === _e.Open), Hn = kn?.jobApplications?.items ?? [], Un = /* @__PURE__ */ new Map();
188
- for (let e of Hn) Un.set(e.id, e);
189
- let Y = Array.from(Un.values()), X = kn?.jobApplications?.total ?? 0, Wn = kn?.jobApplications?.hasMore ?? !1, Gn = Y.map((e) => e.id), Kn = Re(k), Z = Le(k), qn = (k.mode === "all" ? an : Y.map(bt)).filter((e) => Kn.has(e.id)), Jn = qn.length === Z, Yn = !!C && Jn && qn.every((e) => e.jobPostingId === C), Xn = Gn.filter((e) => Kn.has(e)).length, Zn = Gn.length > 0 && Xn === Gn.length, Q = Yn && Z > 0 && !K && !j && !I, Qn = (Pn?.jobPostings?.items ?? []).reduce((e, t) => (e[t.id] = t, e), {}), $n = async (e) => {
190
- let t = xt(En);
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
- expectedTotal: X,
194
- getCurrentScopeKey: () => J.current,
193
+ expectedTotal: Y,
194
+ getCurrentScopeKey: () => q.current,
195
195
  fetchPage: async (e, n) => {
196
- let r = await Nn({ variables: {
196
+ let r = await In({ variables: {
197
197
  filter: t,
198
198
  limit: e,
199
199
  offset: n
200
- } }), i = Je(r);
200
+ } }), i = Ye(r);
201
201
  return {
202
- items: i.items.map(bt),
202
+ items: i.items.map(St),
203
203
  total: i.total,
204
204
  hasMore: i.hasMore
205
205
  };
206
206
  }
207
207
  });
208
- }, er = async () => {
209
- if (j || K || X === 0) return;
210
- let e = q;
211
- sn(!0), M(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 $n(e);
214
- if (J.current !== e) return;
215
- on(t), A(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" || J.current !== e) return;
217
+ if (t instanceof Ie && t.code === "STALE_SCOPE" || q.current !== e) return;
218
218
  M(t instanceof Error ? t.message : "Could not load all matching applications."), Ae("error");
219
219
  } finally {
220
- J.current === e && sn(!1);
220
+ q.current === e && ln(!1);
221
221
  }
222
- }, tr = (e) => {
223
- v({ statuses: St(g.statuses, e) });
224
- }, nr = (e) => {
225
- v({ roundStatuses: St(g.roundStatuses, e) });
226
- }, rr = (e) => {
222
+ }, ir = (e) => {
223
+ v({ statuses: wt(g.statuses, e) });
224
+ }, ar = (e) => {
225
+ v({ roundStatuses: wt(g.roundStatuses, e) });
226
+ }, or = (e) => {
227
227
  v({
228
228
  jobPostingId: e,
229
229
  roundConfigId: "",
230
230
  configuredRoundState: "",
231
231
  duplicateEmail: !1
232
232
  });
233
- }, ir = (e) => {
233
+ }, sr = (e) => {
234
234
  v({
235
235
  roundConfigId: e,
236
236
  configuredRoundState: ""
237
237
  });
238
- }, ar = (e) => {
238
+ }, cr = (e) => {
239
239
  v({ configuredRoundState: e });
240
- }, $ = (e) => {
241
- !Q || !C || (ln(e), un(qn), dn(k), pn(null), fn(!1));
242
- }, or = () => {
243
- ln(null), un([]), dn(c()), pn(null), fn(!1);
244
- }, sr = u(() => {
245
- let e = (In?.jobPosting?.rounds ?? []).map((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
  }));
@@ -250,8 +250,8 @@ function jt() {
250
250
  id: w,
251
251
  label: w
252
252
  }];
253
- }, [In, w]), cr = u(() => {
254
- let e = (Pn?.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
  }));
@@ -259,8 +259,8 @@ function jt() {
259
259
  id: C,
260
260
  label: C
261
261
  }];
262
- }, [Pn, C]), lr = 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
  }));
@@ -268,29 +268,29 @@ function jt() {
268
268
  id: E,
269
269
  label: E
270
270
  }];
271
- }, [Rn, E]), ur = Array.from(/* @__PURE__ */ new Set([...Y.flatMap((e) => e.productId ? [e.productId] : []), ...S ? [S] : []])).sort(), dr = ur.join(",");
272
- Xe(() => {
273
- let e = dr ? dr.split(",").filter((e) => !wn.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
- ht({
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 && Sn((t) => ({
281
+ n && Tn((t) => ({
282
282
  ...t,
283
283
  [e]: n
284
284
  }));
285
285
  }).catch(() => {});
286
286
  });
287
- }, [dr]);
288
- let fr = async () => {
289
- if (!Wn || bn) return;
290
- let e = Cn.current, t = q;
291
- xn(!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 Mn({
293
+ let n = await Fn({
294
294
  variables: { offset: e },
295
295
  updateQuery: (e, { fetchMoreResult: t }) => {
296
296
  if (!t) return e;
@@ -303,82 +303,82 @@ function jt() {
303
303
  } };
304
304
  }
305
305
  });
306
- J.current === t && (Cn.current = e + (n.data.jobApplications?.items.length ?? yt));
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
- J.current === t && xn(!1);
310
+ q.current === t && wn(!1);
311
311
  }
312
- }, pr = () => {
313
- B(kt), hn({}), U(null), _n("");
314
- }, mr = (e) => {
312
+ }, hr = () => {
313
+ z(jt), vn({}), H(null), bn("");
314
+ }, gr = (e) => {
315
315
  let t = e.target.files?.[0] ?? null;
316
- if (_n(""), !t) {
317
- U(null);
316
+ if (bn(""), !t) {
317
+ H(null);
318
318
  return;
319
319
  }
320
- if (t.size > Et) {
321
- _n("Resume must be 10 MB or smaller."), U(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 (!Ot.has(t.type) && ![
325
+ if (!At.has(t.type) && ![
326
326
  "pdf",
327
327
  "doc",
328
328
  "docx"
329
329
  ].includes(n)) {
330
- _n("Resume must be a PDF, DOC, or DOCX file."), U(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
- U(t);
334
- }, hr = () => {
333
+ H(t);
334
+ }, _r = () => {
335
335
  let e = {};
336
- return z.name.trim() || (e.name = "Name is required"), z.email.trim() ? /^\S+@\S+\.\S+$/.test(z.email.trim()) || (e.email = "Enter a valid email") : e.email = "Email is required", z.source.trim() || (e.source = "Source is required"), z.jobPostingId === h && !z.position.trim() && (e.position = "Position is required when no job posting is selected"), hn(e), Object.keys(e).length === 0;
337
- }, gr = async (e) => {
338
- if (e.preventDefault(), hr()) {
339
- yn(!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
- H && (t = await At(H), e = H.name, n = H.type || void 0);
343
- let r = z.jobPostingId !== h, 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: z.name.trim(),
346
- email: z.email.trim(),
347
- phone: z.phone.trim() || void 0,
348
- jobPostingId: r ? z.jobPostingId : void 0,
349
- position: r ? void 0 : z.position.trim() || void 0,
350
- source: z.source.trim(),
351
- linkedin: z.linkedin.trim() || void 0,
352
- portfolio: z.portfolio.trim() || void 0,
353
- coverLetter: z.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"), R(!1), pr(), i && Ct(`/support/applications/${i}${Zt}`);
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
- yn(!1);
364
+ Sn(!1);
365
365
  }
366
366
  }
367
- }, _r = Fe.reduce((e, t) => (e[t] = Y.filter((e) => e.status === t), e), {}), vr = (e, n = !1) => {
368
- let i = e.jobPostingId ? Qn[e.jobPostingId]?.title : void 0, ee = Kn.has(e.id);
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
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
371
  children: [/* @__PURE__ */ p("div", {
372
372
  className: "pt-0.5",
373
373
  children: /* @__PURE__ */ p(r, {
374
374
  checked: ee,
375
- disabled: j || K,
375
+ disabled: j || G,
376
376
  onCheckedChange: () => A((t) => He(t, e.id)),
377
377
  "aria-label": `Select ${e.firstName} ${e.lastName}`
378
378
  })
379
379
  }), /* @__PURE__ */ p("button", {
380
380
  type: "button",
381
- onClick: () => Ct(`/support/applications/${e.id}${Zt}`),
381
+ onClick: () => Tt(`/support/applications/${e.id}${$t}`),
382
382
  className: "flex-1 min-w-0 text-left",
383
383
  children: /* @__PURE__ */ m("div", {
384
384
  className: `flex ${n ? "flex-col" : "items-start"} justify-between gap-3`,
@@ -406,16 +406,16 @@ function jt() {
406
406
  title: `Job posting: ${i}`,
407
407
  children: i
408
408
  }),
409
- e.productId && W[e.productId] && /* @__PURE__ */ p(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: ${W[e.productId]}`,
413
- children: W[e.productId]
412
+ title: `Product: ${U[e.productId]}`,
413
+ children: U[e.productId]
414
414
  }),
415
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__ */ p(at, { size: n ? 10 : 11 }), "Resume"]
418
+ children: [/* @__PURE__ */ p(ot, { size: n ? 10 : 11 }), "Resume"]
419
419
  })
420
420
  ]
421
421
  }),
@@ -424,7 +424,7 @@ function jt() {
424
424
  children: [/* @__PURE__ */ p("span", {
425
425
  className: "font-medium",
426
426
  children: e.position
427
- }), e.department && /* @__PURE__ */ m(gt, { children: [/* @__PURE__ */ p("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
430
  }), /* @__PURE__ */ p("span", { children: e.department })] })]
@@ -436,17 +436,17 @@ function jt() {
436
436
  ]
437
437
  }), /* @__PURE__ */ p("div", {
438
438
  className: `text-text-secondary whitespace-nowrap ${n ? "text-[11px]" : "text-xs"}`,
439
- children: wt(e.createdAt)
439
+ children: Et(e.createdAt)
440
440
  })]
441
441
  })
442
442
  })]
443
443
  }, e.id);
444
444
  };
445
- return An && Y.length === 0 ? /* @__PURE__ */ m("div", {
445
+ return Nn && J.length === 0 ? /* @__PURE__ */ m("div", {
446
446
  className: "p-6",
447
447
  children: [/* @__PURE__ */ m("div", {
448
448
  className: "flex items-center gap-3 mb-6",
449
- children: [/* @__PURE__ */ p(Qe, {
449
+ children: [/* @__PURE__ */ p($e, {
450
450
  size: 24,
451
451
  className: "text-text-primary"
452
452
  }), /* @__PURE__ */ p("h1", {
@@ -455,7 +455,7 @@ function jt() {
455
455
  })]
456
456
  }), /* @__PURE__ */ m("div", {
457
457
  className: "flex flex-col items-center justify-center py-16",
458
- children: [/* @__PURE__ */ p(rt, {
458
+ children: [/* @__PURE__ */ p(it, {
459
459
  size: 32,
460
460
  className: "animate-spin text-text-secondary mb-4"
461
461
  }), /* @__PURE__ */ p("p", {
@@ -463,11 +463,11 @@ function jt() {
463
463
  children: "Loading applications…"
464
464
  })]
465
465
  })]
466
- }) : jn ? /* @__PURE__ */ m("div", {
466
+ }) : Pn ? /* @__PURE__ */ m("div", {
467
467
  className: "p-6",
468
468
  children: [/* @__PURE__ */ m("div", {
469
469
  className: "flex items-center gap-3 mb-6",
470
- children: [/* @__PURE__ */ p(Qe, {
470
+ children: [/* @__PURE__ */ p($e, {
471
471
  size: 24,
472
472
  className: "text-text-primary"
473
473
  }), /* @__PURE__ */ p("h1", {
@@ -479,7 +479,7 @@ function jt() {
479
479
  children: [
480
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__ */ p(Ze, { size: 48 })
482
+ children: /* @__PURE__ */ p(Qe, { size: 48 })
483
483
  }),
484
484
  /* @__PURE__ */ p("h3", {
485
485
  className: "text-lg font-semibold text-text-primary mb-2",
@@ -487,7 +487,7 @@ function jt() {
487
487
  }),
488
488
  /* @__PURE__ */ p("p", {
489
489
  className: "text-sm text-text-secondary",
490
- children: jn.message
490
+ children: Pn.message
491
491
  })
492
492
  ]
493
493
  })]
@@ -499,7 +499,7 @@ function jt() {
499
499
  children: [/* @__PURE__ */ m("div", {
500
500
  className: "flex items-center gap-3",
501
501
  children: [
502
- /* @__PURE__ */ p(Qe, {
502
+ /* @__PURE__ */ p($e, {
503
503
  size: 24,
504
504
  className: "text-text-primary"
505
505
  }),
@@ -513,68 +513,68 @@ function jt() {
513
513
  /* @__PURE__ */ p(t, {
514
514
  variant: "secondary",
515
515
  className: "ml-2",
516
- children: X
516
+ children: Y
517
517
  })
518
518
  ]
519
519
  }), /* @__PURE__ */ m(n, {
520
- onClick: () => R(!0),
521
- children: [/* @__PURE__ */ p(ot, { size: 18 }), "Add Candidate"]
520
+ onClick: () => _n(!0),
521
+ children: [/* @__PURE__ */ p(st, { size: 18 }), "Add Candidate"]
522
522
  })]
523
523
  }),
524
- Y.length > 0 && /* @__PURE__ */ m("div", {
524
+ J.length > 0 && /* @__PURE__ */ m("div", {
525
525
  className: "mb-4 -mt-2 space-y-2",
526
526
  children: [/* @__PURE__ */ m("div", {
527
527
  className: "flex flex-wrap items-center gap-2",
528
528
  children: [
529
529
  /* @__PURE__ */ p(r, {
530
- checked: Zn ? !0 : Xn > 0 && "indeterminate",
531
- disabled: j || K,
532
- onCheckedChange: (e) => A((t) => Ve(t, Gn, e === !0)),
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__ */ p(qe, { selection: k }) : /* @__PURE__ */ m("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 ",
539
- Y.length,
539
+ J.length,
540
540
  " visible applications"
541
541
  ]
542
542
  }),
543
- X > 0 && (k.mode !== "all" || k.excludedIds.size > 0) ? /* @__PURE__ */ m(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 er(),
548
- disabled: j || K,
547
+ onClick: () => void rr(),
548
+ disabled: j || G,
549
549
  children: [
550
- j ? /* @__PURE__ */ p(rt, {
550
+ j ? /* @__PURE__ */ p(it, {
551
551
  size: 14,
552
552
  className: "animate-spin"
553
553
  }) : null,
554
554
  "Select all ",
555
- X,
555
+ Y,
556
556
  " matching applications"
557
557
  ]
558
558
  }) : null,
559
- Z > 0 ? /* @__PURE__ */ p("button", {
559
+ X > 0 ? /* @__PURE__ */ p("button", {
560
560
  type: "button",
561
561
  onClick: () => {
562
- A(c()), on([]), M(null);
562
+ A(c()), cn([]), M(null);
563
563
  },
564
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
- }), cn ? /* @__PURE__ */ p("p", {
569
+ }), un ? /* @__PURE__ */ p("p", {
570
570
  className: "text-sm text-status-error-text",
571
571
  role: "alert",
572
- children: cn
572
+ children: un
573
573
  }) : null]
574
574
  }),
575
- Z > 0 && /* @__PURE__ */ m("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__ */ p("div", { children: C ? Yn ? /* @__PURE__ */ p("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
580
  }) : /* @__PURE__ */ p("p", {
@@ -589,47 +589,55 @@ function jt() {
589
589
  /* @__PURE__ */ m(n, {
590
590
  variant: "outline",
591
591
  size: "sm",
592
- disabled: !Q,
593
- onClick: () => void $("addRound"),
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"),
594
602
  className: "gap-2",
595
- children: [/* @__PURE__ */ p(ut, { size: 14 }), "Add Selected to Round"]
603
+ children: [/* @__PURE__ */ p(lt, { size: 14 }), "Send Message"]
596
604
  }),
597
605
  /* @__PURE__ */ m(n, {
598
606
  variant: "outline",
599
607
  size: "sm",
600
- disabled: !Q,
601
- onClick: () => void $("message"),
608
+ disabled: !Z,
609
+ onClick: () => void Q("assignment"),
602
610
  className: "gap-2",
603
- children: [/* @__PURE__ */ p(ct, { size: 14 }), "Send Message"]
611
+ children: [/* @__PURE__ */ p(ut, { size: 14 }), "Assign & Email Random Take-Home"]
604
612
  }),
605
613
  /* @__PURE__ */ m(n, {
606
614
  variant: "outline",
607
615
  size: "sm",
608
- disabled: !Q,
609
- onClick: () => void $("assignment"),
616
+ disabled: !Z,
617
+ onClick: () => void Q("duplicateNotice"),
610
618
  className: "gap-2",
611
- children: [/* @__PURE__ */ p(lt, { size: 14 }), "Assign & Email Random Take-Home"]
619
+ children: [/* @__PURE__ */ p(at, { size: 14 }), "Notify Duplicate Applicants"]
612
620
  }),
613
621
  /* @__PURE__ */ m(n, {
614
622
  variant: "outline",
615
623
  size: "sm",
616
- disabled: !Q,
617
- onClick: () => void $("duplicateNotice"),
624
+ disabled: !Z,
625
+ onClick: () => void Q("customEmail"),
618
626
  className: "gap-2",
619
- children: [/* @__PURE__ */ p(it, { size: 14 }), "Notify Duplicate Applicants"]
627
+ children: [/* @__PURE__ */ p(at, { size: 14 }), "Send Custom Email"]
620
628
  }),
621
629
  /* @__PURE__ */ m(n, {
622
630
  variant: "outline",
623
631
  size: "sm",
624
- disabled: !Q,
625
- onClick: () => void $("customEmail"),
632
+ disabled: !Z,
633
+ onClick: () => void Q("updateStatus"),
626
634
  className: "gap-2",
627
- children: [/* @__PURE__ */ p(it, { size: 14 }), "Send Custom Email"]
635
+ children: [/* @__PURE__ */ p(dt, { size: 14 }), "Update Status"]
628
636
  })
629
637
  ]
630
638
  })]
631
639
  }),
632
- /* @__PURE__ */ p(vt, {
640
+ /* @__PURE__ */ p(bt, {
633
641
  className: "mb-6",
634
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."
635
643
  }),
@@ -638,62 +646,62 @@ function jt() {
638
646
  children: [
639
647
  /* @__PURE__ */ m("div", {
640
648
  className: "relative flex-1",
641
- children: [/* @__PURE__ */ p(st, {
649
+ children: [/* @__PURE__ */ p(ct, {
642
650
  size: 18,
643
651
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
644
652
  }), /* @__PURE__ */ p(a, {
645
653
  type: "text",
646
654
  "aria-label": "Search applications",
647
655
  placeholder: "Search by name, email, or position...",
648
- value: Ut,
649
- onChange: (e) => Wt(e.target.value),
656
+ value: Gt,
657
+ onChange: (e) => Kt(e.target.value),
650
658
  className: "pl-10"
651
659
  })]
652
660
  }),
653
661
  /* @__PURE__ */ m("div", {
654
662
  className: "flex items-center gap-1 p-1 rounded-lg border bg-bg-sunken/50",
655
663
  children: [/* @__PURE__ */ p(n, {
656
- variant: $t === "list" ? "secondary" : "ghost",
664
+ variant: tn === "list" ? "secondary" : "ghost",
657
665
  size: "sm",
658
- onClick: () => en("list"),
666
+ onClick: () => nn("list"),
659
667
  className: "px-3",
660
668
  "aria-label": "Show applications as a list",
661
- children: /* @__PURE__ */ p(nt, { size: 18 })
669
+ children: /* @__PURE__ */ p(rt, { size: 18 })
662
670
  }), /* @__PURE__ */ p(n, {
663
- variant: $t === "kanban" ? "secondary" : "ghost",
671
+ variant: tn === "kanban" ? "secondary" : "ghost",
664
672
  size: "sm",
665
- onClick: () => en("kanban"),
673
+ onClick: () => nn("kanban"),
666
674
  className: "px-3",
667
675
  "aria-label": "Show applications as a kanban board",
668
- children: /* @__PURE__ */ p(tt, { size: 18 })
676
+ children: /* @__PURE__ */ p(nt, { size: 18 })
669
677
  })]
670
678
  }),
671
679
  /* @__PURE__ */ m(n, {
672
680
  variant: O ? "secondary" : "outline",
673
681
  size: "sm",
674
- onClick: rn,
682
+ onClick: on,
675
683
  className: "gap-2",
676
684
  "aria-expanded": O,
677
685
  children: [
678
- /* @__PURE__ */ p(et, { size: 16 }),
686
+ /* @__PURE__ */ p(tt, { size: 16 }),
679
687
  "Filters",
680
688
  D > 0 ? /* @__PURE__ */ p("span", {
681
689
  className: "rounded-full bg-action-primary-bg px-1.5 py-0.5 text-[10px] font-semibold leading-none text-action-primary-text",
682
690
  "aria-label": `${D} active ${D === 1 ? "filter" : "filters"}`,
683
691
  children: D
684
692
  }) : null,
685
- /* @__PURE__ */ p($e, {
693
+ /* @__PURE__ */ p(et, {
686
694
  size: 14,
687
695
  className: O ? "rotate-180 transition-transform" : "transition-transform"
688
696
  })
689
697
  ]
690
698
  }),
691
- Qt ? /* @__PURE__ */ m(n, {
699
+ en ? /* @__PURE__ */ m(n, {
692
700
  variant: "ghost",
693
701
  size: "sm",
694
- onClick: Yt,
702
+ onClick: Zt,
695
703
  className: "gap-2",
696
- children: [/* @__PURE__ */ p(dt, { size: 16 }), "Clear all"]
704
+ children: [/* @__PURE__ */ p(pt, { size: 16 }), "Clear all"]
697
705
  }) : null
698
706
  ]
699
707
  }),
@@ -712,7 +720,7 @@ function jt() {
712
720
  let t = b.has(e);
713
721
  return /* @__PURE__ */ p("button", {
714
722
  type: "button",
715
- onClick: () => tr(e),
723
+ onClick: () => ir(e),
716
724
  "aria-pressed": t,
717
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"}`,
718
726
  children: Pe[e]
@@ -740,7 +748,7 @@ function jt() {
740
748
  let t = x.has(e), n = je[e], r = T === s.Missing;
741
749
  return /* @__PURE__ */ p("button", {
742
750
  type: "button",
743
- onClick: () => nr(e),
751
+ onClick: () => ar(e),
744
752
  "aria-pressed": t,
745
753
  disabled: r,
746
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"}`,
@@ -768,9 +776,9 @@ function jt() {
768
776
  children: [/* @__PURE__ */ p("option", {
769
777
  value: "",
770
778
  children: "All products"
771
- }), ur.map((e) => /* @__PURE__ */ p("option", {
779
+ }), fr.map((e) => /* @__PURE__ */ p("option", {
772
780
  value: e,
773
- children: W[e] || e
781
+ children: U[e] || e
774
782
  }, e))]
775
783
  })] }),
776
784
  /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
@@ -780,13 +788,13 @@ function jt() {
780
788
  }), /* @__PURE__ */ m("select", {
781
789
  id: "job-app-posting-filter",
782
790
  value: C,
783
- onChange: (e) => rr(e.target.value),
784
- disabled: Fn,
791
+ onChange: (e) => or(e.target.value),
792
+ disabled: Rn,
785
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",
786
794
  children: [/* @__PURE__ */ p("option", {
787
795
  value: "",
788
796
  children: "All postings"
789
- }), cr.map((e) => /* @__PURE__ */ p("option", {
797
+ }), ur.map((e) => /* @__PURE__ */ p("option", {
790
798
  value: e.id,
791
799
  children: e.label
792
800
  }, e.id))]
@@ -798,13 +806,13 @@ function jt() {
798
806
  }), /* @__PURE__ */ m("select", {
799
807
  id: "job-app-round-config-filter",
800
808
  value: w,
801
- onChange: (e) => ir(e.target.value),
802
- disabled: !C || Ln,
809
+ onChange: (e) => sr(e.target.value),
810
+ disabled: !C || Bn,
803
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",
804
812
  children: [/* @__PURE__ */ p("option", {
805
813
  value: "",
806
814
  children: "Any configured round"
807
- }), sr.map((e) => /* @__PURE__ */ p("option", {
815
+ }), lr.map((e) => /* @__PURE__ */ p("option", {
808
816
  value: e.id,
809
817
  children: e.label
810
818
  }, e.id))]
@@ -816,7 +824,7 @@ function jt() {
816
824
  }), /* @__PURE__ */ m("select", {
817
825
  id: "job-app-configured-round-state-filter",
818
826
  value: T,
819
- onChange: (e) => ar(Object.values(s).find((t) => t === e.target.value) ?? ""),
827
+ onChange: (e) => cr(Object.values(s).find((t) => t === e.target.value) ?? ""),
820
828
  disabled: !w,
821
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",
822
830
  children: [
@@ -845,7 +853,7 @@ function jt() {
845
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"}`,
846
854
  children: [/* @__PURE__ */ p(r, {
847
855
  id: "job-app-duplicate-email-filter",
848
- checked: zt,
856
+ checked: Vt,
849
857
  onCheckedChange: (e) => v({ duplicateEmail: e === !0 }),
850
858
  disabled: !C
851
859
  }), "Duplicate email only"]
@@ -858,8 +866,8 @@ function jt() {
858
866
  }), /* @__PURE__ */ p("input", {
859
867
  id: "job-app-assignment-owner-filter",
860
868
  type: "text",
861
- value: Kt,
862
- onChange: (e) => qt(e.target.value),
869
+ value: Jt,
870
+ onChange: (e) => Yt(e.target.value),
863
871
  placeholder: "owner@example.com",
864
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"
865
873
  })] }),
@@ -871,19 +879,19 @@ function jt() {
871
879
  id: "job-app-interviewer-filter",
872
880
  value: E,
873
881
  onChange: (e) => v({ interviewerId: e.target.value }),
874
- disabled: zn,
882
+ disabled: Hn,
875
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",
876
884
  children: [/* @__PURE__ */ p("option", {
877
885
  value: "",
878
886
  children: "Any interviewer"
879
- }), lr.map((e) => /* @__PURE__ */ p("option", {
887
+ }), dr.map((e) => /* @__PURE__ */ p("option", {
880
888
  value: e.id,
881
889
  children: e.label
882
890
  }, e.id))]
883
891
  })] })
884
892
  ]
885
893
  }),
886
- zt && C ? /* @__PURE__ */ m("p", {
894
+ Vt && C ? /* @__PURE__ */ m("p", {
887
895
  className: "text-xs text-text-secondary",
888
896
  children: [
889
897
  "Showing only candidates whose email matches another application for this same posting. Select the ones you want to reach and use ",
@@ -904,17 +912,17 @@ function jt() {
904
912
  }) : null
905
913
  ]
906
914
  }),
907
- Y.length === 0 ? /* @__PURE__ */ p(_t, {
915
+ J.length === 0 ? /* @__PURE__ */ p(yt, {
908
916
  illustration: "empty-people",
909
917
  title: "No applications yet",
910
918
  description: "Job applications from your careers pages will appear here."
911
- }) : /* @__PURE__ */ m(gt, { children: [$t === "list" ? /* @__PURE__ */ p("div", {
919
+ }) : /* @__PURE__ */ m(vt, { children: [tn === "list" ? /* @__PURE__ */ p("div", {
912
920
  className: "space-y-3",
913
- children: Y.map((e) => vr(e))
921
+ children: J.map((e) => br(e))
914
922
  }) : /* @__PURE__ */ p("div", {
915
923
  className: "flex gap-4 overflow-x-auto pb-4",
916
924
  children: Fe.map((e) => {
917
- let n = _r[e] ?? [];
925
+ let n = yr[e] ?? [];
918
926
  return /* @__PURE__ */ m("div", {
919
927
  className: "flex flex-col gap-3 w-[280px] flex-shrink-0 max-h-[calc(100vh-280px)]",
920
928
  children: [/* @__PURE__ */ m("div", {
@@ -935,28 +943,28 @@ function jt() {
935
943
  className: "text-xs text-text-secondary",
936
944
  children: "No applications"
937
945
  })
938
- }), n.map((e) => vr(e, !0))]
946
+ }), n.map((e) => br(e, !0))]
939
947
  })]
940
948
  }, e);
941
949
  })
942
- }), Wn && /* @__PURE__ */ p("div", {
950
+ }), qn && /* @__PURE__ */ p("div", {
943
951
  className: "flex justify-center mt-6",
944
952
  children: /* @__PURE__ */ m(n, {
945
953
  variant: "outline",
946
954
  size: "sm",
947
- onClick: () => void fr(),
948
- disabled: bn,
955
+ onClick: () => void mr(),
956
+ disabled: Cn,
949
957
  className: "gap-2",
950
- children: [bn ? /* @__PURE__ */ p(rt, {
958
+ children: [Cn ? /* @__PURE__ */ p(it, {
951
959
  size: 14,
952
960
  className: "animate-spin"
953
961
  }) : null, "Load more"]
954
962
  })
955
963
  })] }),
956
964
  /* @__PURE__ */ p(i, {
957
- open: mn,
965
+ open: gn,
958
966
  onOpenChange: (e) => {
959
- R(e), e || pr();
967
+ _n(e), e || hr();
960
968
  },
961
969
  children: /* @__PURE__ */ m(ee, {
962
970
  className: "sm:max-w-2xl max-h-[90vh] overflow-y-auto",
@@ -964,7 +972,7 @@ function jt() {
964
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)." })] }),
965
973
  /* @__PURE__ */ m("form", {
966
974
  id: "add-candidate-form",
967
- onSubmit: gr,
975
+ onSubmit: vr,
968
976
  className: "space-y-4",
969
977
  children: [
970
978
  /* @__PURE__ */ m("div", {
@@ -981,17 +989,17 @@ function jt() {
981
989
  }),
982
990
  /* @__PURE__ */ p(a, {
983
991
  id: "candidate-name",
984
- value: z.name,
985
- onChange: (e) => B((t) => ({
992
+ value: R.name,
993
+ onChange: (e) => z((t) => ({
986
994
  ...t,
987
995
  name: e.target.value
988
996
  })),
989
997
  placeholder: "Full name",
990
- "aria-invalid": !!V.name
998
+ "aria-invalid": !!B.name
991
999
  }),
992
- V.name && /* @__PURE__ */ p("p", {
1000
+ B.name && /* @__PURE__ */ p("p", {
993
1001
  className: "text-xs text-status-error-text",
994
- children: V.name
1002
+ children: B.name
995
1003
  })
996
1004
  ]
997
1005
  }), /* @__PURE__ */ m("div", {
@@ -1007,17 +1015,17 @@ function jt() {
1007
1015
  /* @__PURE__ */ p(a, {
1008
1016
  id: "candidate-email",
1009
1017
  type: "email",
1010
- value: z.email,
1011
- onChange: (e) => B((t) => ({
1018
+ value: R.email,
1019
+ onChange: (e) => z((t) => ({
1012
1020
  ...t,
1013
1021
  email: e.target.value
1014
1022
  })),
1015
1023
  placeholder: "email@example.com",
1016
- "aria-invalid": !!V.email
1024
+ "aria-invalid": !!B.email
1017
1025
  }),
1018
- V.email && /* @__PURE__ */ p("p", {
1026
+ B.email && /* @__PURE__ */ p("p", {
1019
1027
  className: "text-xs text-status-error-text",
1020
- children: V.email
1028
+ children: B.email
1021
1029
  })
1022
1030
  ]
1023
1031
  })]
@@ -1031,8 +1039,8 @@ function jt() {
1031
1039
  children: "Phone"
1032
1040
  }), /* @__PURE__ */ p(a, {
1033
1041
  id: "candidate-phone",
1034
- value: z.phone,
1035
- onChange: (e) => B((t) => ({
1042
+ value: R.phone,
1043
+ onChange: (e) => z((t) => ({
1036
1044
  ...t,
1037
1045
  phone: e.target.value
1038
1046
  })),
@@ -1051,21 +1059,21 @@ function jt() {
1051
1059
  /* @__PURE__ */ p(a, {
1052
1060
  id: "candidate-source",
1053
1061
  list: "candidate-source-suggestions",
1054
- value: z.source,
1055
- onChange: (e) => B((t) => ({
1062
+ value: R.source,
1063
+ onChange: (e) => z((t) => ({
1056
1064
  ...t,
1057
1065
  source: e.target.value
1058
1066
  })),
1059
1067
  placeholder: "e.g. LinkedIn",
1060
- "aria-invalid": !!V.source
1068
+ "aria-invalid": !!B.source
1061
1069
  }),
1062
1070
  /* @__PURE__ */ p("datalist", {
1063
1071
  id: "candidate-source-suggestions",
1064
- children: Tt.map((e) => /* @__PURE__ */ p("option", { value: e }, e))
1072
+ children: Dt.map((e) => /* @__PURE__ */ p("option", { value: e }, e))
1065
1073
  }),
1066
- V.source && /* @__PURE__ */ p("p", {
1074
+ B.source && /* @__PURE__ */ p("p", {
1067
1075
  className: "text-xs text-status-error-text",
1068
- children: V.source
1076
+ children: B.source
1069
1077
  })
1070
1078
  ]
1071
1079
  })]
@@ -1080,19 +1088,19 @@ function jt() {
1080
1088
  children: "Job Posting"
1081
1089
  }),
1082
1090
  /* @__PURE__ */ m(ae, {
1083
- value: z.jobPostingId,
1084
- onValueChange: (e) => B((t) => ({
1091
+ value: R.jobPostingId,
1092
+ onValueChange: (e) => z((t) => ({
1085
1093
  ...t,
1086
1094
  jobPostingId: e
1087
1095
  })),
1088
- disabled: Fn,
1096
+ disabled: Rn,
1089
1097
  children: [/* @__PURE__ */ p(ce, {
1090
1098
  id: "candidate-job-posting",
1091
1099
  children: /* @__PURE__ */ p(le, { placeholder: "Select an open posting" })
1092
1100
  }), /* @__PURE__ */ m(oe, { children: [/* @__PURE__ */ p(se, {
1093
1101
  value: h,
1094
1102
  children: "No posting (manual entry)"
1095
- }), Vn.map((e) => /* @__PURE__ */ p(se, {
1103
+ }), Wn.map((e) => /* @__PURE__ */ p(se, {
1096
1104
  value: e.id,
1097
1105
  children: e.title
1098
1106
  }, e.id))] })]
@@ -1110,7 +1118,7 @@ function jt() {
1110
1118
  children: [
1111
1119
  "Position",
1112
1120
  " ",
1113
- z.jobPostingId === h && /* @__PURE__ */ p("span", {
1121
+ R.jobPostingId === h && /* @__PURE__ */ p("span", {
1114
1122
  className: "text-status-error-text",
1115
1123
  children: "*"
1116
1124
  })
@@ -1118,18 +1126,18 @@ function jt() {
1118
1126
  }),
1119
1127
  /* @__PURE__ */ p(a, {
1120
1128
  id: "candidate-position",
1121
- value: z.position,
1122
- onChange: (e) => B((t) => ({
1129
+ value: R.position,
1130
+ onChange: (e) => z((t) => ({
1123
1131
  ...t,
1124
1132
  position: e.target.value
1125
1133
  })),
1126
1134
  placeholder: "e.g. Product Engineer",
1127
- disabled: z.jobPostingId !== h,
1128
- "aria-invalid": !!V.position
1135
+ disabled: R.jobPostingId !== h,
1136
+ "aria-invalid": !!B.position
1129
1137
  }),
1130
- V.position && /* @__PURE__ */ p("p", {
1138
+ B.position && /* @__PURE__ */ p("p", {
1131
1139
  className: "text-xs text-status-error-text",
1132
- children: V.position
1140
+ children: B.position
1133
1141
  })
1134
1142
  ]
1135
1143
  })]
@@ -1143,8 +1151,8 @@ function jt() {
1143
1151
  children: "LinkedIn"
1144
1152
  }), /* @__PURE__ */ p(a, {
1145
1153
  id: "candidate-linkedin",
1146
- value: z.linkedin,
1147
- onChange: (e) => B((t) => ({
1154
+ value: R.linkedin,
1155
+ onChange: (e) => z((t) => ({
1148
1156
  ...t,
1149
1157
  linkedin: e.target.value
1150
1158
  })),
@@ -1157,8 +1165,8 @@ function jt() {
1157
1165
  children: "Portfolio"
1158
1166
  }), /* @__PURE__ */ p(a, {
1159
1167
  id: "candidate-portfolio",
1160
- value: z.portfolio,
1161
- onChange: (e) => B((t) => ({
1168
+ value: R.portfolio,
1169
+ onChange: (e) => z((t) => ({
1162
1170
  ...t,
1163
1171
  portfolio: e.target.value
1164
1172
  })),
@@ -1173,8 +1181,8 @@ function jt() {
1173
1181
  children: "Cover Letter"
1174
1182
  }), /* @__PURE__ */ p(ue, {
1175
1183
  id: "candidate-cover-letter",
1176
- value: z.coverLetter,
1177
- onChange: (e) => B((t) => ({
1184
+ value: R.coverLetter,
1185
+ onChange: (e) => z((t) => ({
1178
1186
  ...t,
1179
1187
  coverLetter: e.target.value
1180
1188
  })),
@@ -1192,20 +1200,20 @@ function jt() {
1192
1200
  /* @__PURE__ */ p(a, {
1193
1201
  id: "candidate-resume",
1194
1202
  type: "file",
1195
- accept: Dt,
1196
- onChange: mr
1203
+ accept: kt,
1204
+ onChange: gr
1197
1205
  }),
1198
1206
  /* @__PURE__ */ m("p", {
1199
1207
  className: "text-xs text-text-secondary flex items-center gap-1",
1200
1208
  children: [
1201
- /* @__PURE__ */ p(at, { size: 11 }),
1209
+ /* @__PURE__ */ p(ot, { size: 11 }),
1202
1210
  "PDF, DOC, or DOCX up to 10 MB.",
1203
- H ? ` Selected: ${H.name}` : ""
1211
+ V ? ` Selected: ${V.name}` : ""
1204
1212
  ]
1205
1213
  }),
1206
- gn && /* @__PURE__ */ p("p", {
1214
+ yn && /* @__PURE__ */ p("p", {
1207
1215
  className: "text-xs text-status-error-text",
1208
- children: gn
1216
+ children: yn
1209
1217
  })
1210
1218
  ]
1211
1219
  })
@@ -1215,18 +1223,18 @@ function jt() {
1215
1223
  type: "button",
1216
1224
  variant: "outline",
1217
1225
  onClick: () => {
1218
- R(!1), pr();
1226
+ _n(!1), hr();
1219
1227
  },
1220
- disabled: vn,
1228
+ disabled: xn,
1221
1229
  children: "Cancel"
1222
1230
  }), /* @__PURE__ */ p(n, {
1223
1231
  type: "submit",
1224
1232
  form: "add-candidate-form",
1225
- disabled: vn,
1226
- children: vn ? /* @__PURE__ */ m(gt, { children: [/* @__PURE__ */ p(rt, {
1233
+ disabled: xn,
1234
+ children: xn ? /* @__PURE__ */ m(vt, { children: [/* @__PURE__ */ p(it, {
1227
1235
  size: 16,
1228
1236
  className: "animate-spin mr-2"
1229
- }), "Adding…"] }) : /* @__PURE__ */ m(gt, { children: [/* @__PURE__ */ p(ut, {
1237
+ }), "Adding…"] }) : /* @__PURE__ */ m(vt, { children: [/* @__PURE__ */ p(ft, {
1230
1238
  size: 16,
1231
1239
  className: "mr-2"
1232
1240
  }), "Add Candidate"] })
@@ -1237,8 +1245,8 @@ function jt() {
1237
1245
  N === "message" || N === "assignment" ? /* @__PURE__ */ p(We, {
1238
1246
  mode: N,
1239
1247
  open: !0,
1240
- onClose: or,
1241
- onOpenAddRound: () => void $("addRound"),
1248
+ onClose: $,
1249
+ onOpenAddRound: () => void Q("addRound"),
1242
1250
  targets: P,
1243
1251
  selection: F,
1244
1252
  jobPostingId: C,
@@ -1247,16 +1255,16 @@ function jt() {
1247
1255
  }) : null,
1248
1256
  N === "addRound" ? /* @__PURE__ */ p(Ue, {
1249
1257
  open: !0,
1250
- onClose: or,
1258
+ onClose: $,
1251
1259
  targets: P,
1252
1260
  selection: F,
1253
1261
  jobPostingId: C,
1254
1262
  previewLoading: I,
1255
1263
  previewError: L
1256
1264
  }) : null,
1257
- N === "duplicateNotice" ? /* @__PURE__ */ p(Ke, {
1265
+ N === "duplicateNotice" ? /* @__PURE__ */ p(qe, {
1258
1266
  open: !0,
1259
- onClose: or,
1267
+ onClose: $,
1260
1268
  targets: P,
1261
1269
  selection: F,
1262
1270
  jobPostingId: C,
@@ -1265,7 +1273,16 @@ function jt() {
1265
1273
  }) : null,
1266
1274
  N === "customEmail" ? /* @__PURE__ */ p(Ge, {
1267
1275
  open: !0,
1268
- onClose: or,
1276
+ onClose: $,
1277
+ targets: P,
1278
+ selection: F,
1279
+ jobPostingId: C,
1280
+ previewLoading: I,
1281
+ previewError: L
1282
+ }) : null,
1283
+ N === "updateStatus" ? /* @__PURE__ */ p(Ke, {
1284
+ open: !0,
1285
+ onClose: $,
1269
1286
  targets: P,
1270
1287
  selection: F,
1271
1288
  jobPostingId: C,
@@ -1276,6 +1293,6 @@ function jt() {
1276
1293
  });
1277
1294
  }
1278
1295
  //#endregion
1279
- export { jt as JobApplicationsPage };
1296
+ export { Nt as JobApplicationsPage };
1280
1297
 
1281
1298
  //# sourceMappingURL=JobApplicationsPage.js.map