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