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