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