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