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