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