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