@burdenoff/microfe-support 2026.817.2 → 2026.817.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/global-operations.d.ts +93 -0
- package/dist/generated/global-operations.js +220 -171
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +1525 -632
- package/dist/generated/global-types.js.map +1 -1
- package/dist/support/SupportAdminRoot.js +3 -3
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +1 -1
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +617 -564
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +541 -165
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/JobPostingDetailPage.js +370 -230
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/JobPostingsPage.js +383 -247
- package/dist/support/pages/JobPostingsPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { Badge as e, Button as t,
|
|
2
|
-
import { useGetJobApplicationsQuery as
|
|
3
|
-
import { JobApplicationStatus as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { Badge as e, Button as t, Dialog as n, DialogContent as r, DialogDescription as i, DialogFooter as ee, DialogHeader as te, DialogTitle as ne, Input as a, Label as o, Select as re, SelectContent as ie, SelectItem as s, SelectTrigger as ae, SelectValue as oe, Textarea as se } from "../components/ui.js";
|
|
2
|
+
import { useCreateJobApplicationMutation as ce, useGetJobApplicationsQuery as le, useGetJobPostingsQuery as ue } from "../../generated/global-operations.js";
|
|
3
|
+
import { JobApplicationStatus as c, JobPostingStatus as de } from "../../generated/global-types.js";
|
|
4
|
+
import { nativeNotify as l } from "../../utils/nativeBridge.js";
|
|
5
|
+
import { useEffect as u, useRef as fe, useState as d } from "react";
|
|
6
|
+
import { AlertCircle as pe, Briefcase as f, ChevronDown as me, Filter as he, Grid as ge, List as _e, Loader2 as p, Paperclip as m, Plus as ve, Search as ye, UserPlus as be } from "lucide-react";
|
|
7
|
+
import { useLocation as xe, useNavigate as Se } from "react-router";
|
|
8
|
+
import { graphqlFetch as Ce } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
9
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
10
|
+
import { IllustratedEmptyState as we, PagePurpose as Te } from "@burdenoff/fe-libs/ui";
|
|
10
11
|
//#region src/support/pages/JobApplicationsPage.tsx
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
],
|
|
12
|
+
var v = [
|
|
13
|
+
c.New,
|
|
14
|
+
c.Screening,
|
|
15
|
+
c.Shortlisted,
|
|
16
|
+
c.Interview,
|
|
17
|
+
c.Hired,
|
|
18
|
+
c.Rejected,
|
|
19
|
+
c.Archived
|
|
20
|
+
], y = {
|
|
20
21
|
NEW: "bg-status-info-bg-subtle text-status-info-text",
|
|
21
22
|
SCREENING: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
22
23
|
SHORTLISTED: "bg-accent-purple-subtle text-accent-purple",
|
|
@@ -24,7 +25,7 @@ var S = [
|
|
|
24
25
|
HIRED: "bg-status-success-bg-subtle text-status-success-text",
|
|
25
26
|
REJECTED: "bg-status-error-bg-subtle text-status-error-text",
|
|
26
27
|
ARCHIVED: "bg-bg-sunken text-text-secondary"
|
|
27
|
-
},
|
|
28
|
+
}, b = {
|
|
28
29
|
NEW: "New",
|
|
29
30
|
SCREENING: "Screening",
|
|
30
31
|
SHORTLISTED: "Shortlisted",
|
|
@@ -33,7 +34,7 @@ var S = [
|
|
|
33
34
|
REJECTED: "Rejected",
|
|
34
35
|
ARCHIVED: "Archived"
|
|
35
36
|
};
|
|
36
|
-
function
|
|
37
|
+
function x(e) {
|
|
37
38
|
return new Date(e).toLocaleDateString("en-US", {
|
|
38
39
|
month: "short",
|
|
39
40
|
day: "numeric",
|
|
@@ -42,342 +43,436 @@ function T(e) {
|
|
|
42
43
|
minute: "2-digit"
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function Ee(e) {
|
|
46
47
|
let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 6e4);
|
|
47
48
|
if (n < 2) return "just now";
|
|
48
49
|
if (n < 60) return `${n}m ago`;
|
|
49
50
|
let r = Math.floor(n / 60);
|
|
50
51
|
if (r < 24) return `${r}h ago`;
|
|
51
52
|
let i = Math.floor(r / 24);
|
|
52
|
-
return i < 30 ? `${i}d ago` :
|
|
53
|
+
return i < 30 ? `${i}d ago` : x(e);
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
var S = "__none__", De = [
|
|
56
|
+
"LinkedIn",
|
|
57
|
+
"Referral",
|
|
58
|
+
"Indeed",
|
|
59
|
+
"Email",
|
|
60
|
+
"Walk-in",
|
|
61
|
+
"Other"
|
|
62
|
+
], Oe = 10 * 1024 * 1024, ke = ".pdf,.doc,.docx", Ae = new Set([
|
|
63
|
+
"application/pdf",
|
|
64
|
+
"application/msword",
|
|
65
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
66
|
+
]), C = {
|
|
67
|
+
name: "",
|
|
68
|
+
email: "",
|
|
69
|
+
phone: "",
|
|
70
|
+
jobPostingId: S,
|
|
71
|
+
position: "",
|
|
72
|
+
source: "",
|
|
73
|
+
linkedin: "",
|
|
74
|
+
portfolio: "",
|
|
75
|
+
coverLetter: ""
|
|
76
|
+
};
|
|
77
|
+
function je(e) {
|
|
78
|
+
return new Promise((t, n) => {
|
|
79
|
+
let r = new FileReader();
|
|
80
|
+
r.onload = () => {
|
|
81
|
+
let e = r.result;
|
|
82
|
+
if (typeof e != "string") {
|
|
83
|
+
n(/* @__PURE__ */ Error("Failed to read file"));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
let i = e.indexOf(",");
|
|
87
|
+
t(i >= 0 ? e.slice(i + 1) : e);
|
|
88
|
+
}, r.onerror = () => n(r.error ?? /* @__PURE__ */ Error("Failed to read file")), r.readAsDataURL(e);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function w() {
|
|
92
|
+
let c = Se(), x = xe().search, [w, Me] = d(""), [T, Ne] = d(""), [E, Pe] = d(""), [D, Fe] = d(""), [O, Ie] = d(""), [k, Le] = d(!1), [A, j] = d("list"), [Re, M] = d(!1), [N, P] = d(C), [F, I] = d({}), [L, R] = d(null), [z, B] = d(""), [V, H] = d(!1), [U, ze] = d({}), W = fe(U);
|
|
93
|
+
W.current = U, u(() => {
|
|
94
|
+
let e = setTimeout(() => Ne(w), 300);
|
|
58
95
|
return () => clearTimeout(e);
|
|
59
|
-
}, [
|
|
60
|
-
let { data:
|
|
96
|
+
}, [w]);
|
|
97
|
+
let { data: G, loading: K, error: q, fetchMore: Be } = le({
|
|
61
98
|
variables: {
|
|
62
99
|
filter: {
|
|
63
|
-
...
|
|
64
|
-
...
|
|
65
|
-
...
|
|
66
|
-
...
|
|
100
|
+
...T ? { search: T } : {},
|
|
101
|
+
...E ? { status: E } : {},
|
|
102
|
+
...D ? { productId: D } : {},
|
|
103
|
+
...O ? { jobPostingId: O } : {}
|
|
67
104
|
},
|
|
68
105
|
limit: 50,
|
|
69
106
|
offset: 0
|
|
70
107
|
},
|
|
71
108
|
fetchPolicy: "cache-and-network"
|
|
72
|
-
}), { data:
|
|
109
|
+
}), { data: J, loading: Y } = ue({
|
|
73
110
|
variables: {
|
|
74
111
|
limit: 200,
|
|
75
112
|
offset: 0
|
|
76
113
|
},
|
|
77
114
|
fetchPolicy: "cache-and-network"
|
|
78
|
-
}), J =
|
|
79
|
-
|
|
80
|
-
let e = Q ? Q.split(",").filter((e) => !
|
|
115
|
+
}), [Ve] = ce(), He = (J?.jobPostings?.items ?? []).filter((e) => e.status === de.Open), X = G?.jobApplications?.items ?? [], Ue = G?.jobApplications?.total ?? 0, Z = G?.jobApplications?.hasMore ?? !1, We = (J?.jobPostings?.items ?? []).reduce((e, t) => (e[t.id] = t, e), {}), Ge = Array.from(new Set(X.flatMap((e) => e.productId ? [e.productId] : []))).sort(), Q = Ge.join(",");
|
|
116
|
+
u(() => {
|
|
117
|
+
let e = Q ? Q.split(",").filter((e) => !W.current[e]) : [];
|
|
81
118
|
e.length !== 0 && e.forEach((e) => {
|
|
82
|
-
|
|
119
|
+
Ce({
|
|
83
120
|
gateway: "global",
|
|
84
121
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
85
122
|
variables: { id: e }
|
|
86
123
|
}).then((t) => {
|
|
87
124
|
let n = t.data?.platformProduct?.name;
|
|
88
|
-
n &&
|
|
125
|
+
n && ze((t) => ({
|
|
89
126
|
...t,
|
|
90
127
|
[e]: n
|
|
91
128
|
}));
|
|
92
129
|
}).catch(() => {});
|
|
93
130
|
});
|
|
94
131
|
}, [Q]);
|
|
95
|
-
let
|
|
96
|
-
|
|
97
|
-
variables: { offset:
|
|
132
|
+
let Ke = () => {
|
|
133
|
+
Z && Be({
|
|
134
|
+
variables: { offset: X.length },
|
|
98
135
|
updateQuery: (e, { fetchMoreResult: t }) => t ? { jobApplications: {
|
|
99
136
|
...t.jobApplications,
|
|
100
137
|
items: [...e.jobApplications?.items ?? [], ...t.jobApplications?.items ?? []]
|
|
101
138
|
} } : e
|
|
102
139
|
});
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
140
|
+
}, $ = () => {
|
|
141
|
+
P(C), I({}), R(null), B("");
|
|
142
|
+
}, qe = (e) => {
|
|
143
|
+
let t = e.target.files?.[0] ?? null;
|
|
144
|
+
if (B(""), !t) {
|
|
145
|
+
R(null);
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (t.size > Oe) {
|
|
149
|
+
B("Resume must be 10 MB or smaller."), R(null), e.target.value = "";
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
let n = t.name.toLowerCase().split(".").pop() ?? "";
|
|
153
|
+
if (!Ae.has(t.type) && ![
|
|
154
|
+
"pdf",
|
|
155
|
+
"doc",
|
|
156
|
+
"docx"
|
|
157
|
+
].includes(n)) {
|
|
158
|
+
B("Resume must be a PDF, DOC, or DOCX file."), R(null), e.target.value = "";
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
R(t);
|
|
162
|
+
}, Je = () => {
|
|
163
|
+
let e = {};
|
|
164
|
+
return N.name.trim() || (e.name = "Name is required"), N.email.trim() ? /^\S+@\S+\.\S+$/.test(N.email.trim()) || (e.email = "Enter a valid email") : e.email = "Email is required", N.source.trim() || (e.source = "Source is required"), N.jobPostingId === S && !N.position.trim() && (e.position = "Position is required when no job posting is selected"), I(e), Object.keys(e).length === 0;
|
|
165
|
+
}, Ye = async (e) => {
|
|
166
|
+
if (e.preventDefault(), Je()) {
|
|
167
|
+
H(!0);
|
|
168
|
+
try {
|
|
169
|
+
let e, t, n;
|
|
170
|
+
L && (t = await je(L), e = L.name, n = L.type || void 0);
|
|
171
|
+
let r = N.jobPostingId !== S, i = (await Ve({
|
|
172
|
+
variables: { input: {
|
|
173
|
+
name: N.name.trim(),
|
|
174
|
+
email: N.email.trim(),
|
|
175
|
+
phone: N.phone.trim() || void 0,
|
|
176
|
+
jobPostingId: r ? N.jobPostingId : void 0,
|
|
177
|
+
position: r ? void 0 : N.position.trim() || void 0,
|
|
178
|
+
source: N.source.trim(),
|
|
179
|
+
linkedin: N.linkedin.trim() || void 0,
|
|
180
|
+
portfolio: N.portfolio.trim() || void 0,
|
|
181
|
+
coverLetter: N.coverLetter.trim() || void 0,
|
|
182
|
+
resumeFileName: e,
|
|
183
|
+
resumeBase64: t,
|
|
184
|
+
resumeMimeType: n
|
|
185
|
+
} },
|
|
186
|
+
refetchQueries: ["GetJobApplications"]
|
|
187
|
+
})).data?.createJobApplication?.id;
|
|
188
|
+
l("success"), M(!1), $(), i && c(`/support/applications/${i}${x}`);
|
|
189
|
+
} catch (e) {
|
|
190
|
+
console.error("Failed to create candidate:", e), l("error");
|
|
191
|
+
} finally {
|
|
192
|
+
H(!1);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}, Xe = v.reduce((e, t) => (e[t] = X.filter((e) => e.status === t), e), {}), Ze = (t, n = !1) => {
|
|
196
|
+
let r = t.jobPostingId ? We[t.jobPostingId]?.title : void 0;
|
|
197
|
+
return /* @__PURE__ */ g("button", {
|
|
106
198
|
type: "button",
|
|
107
|
-
onClick: () =>
|
|
199
|
+
onClick: () => c(`/support/applications/${t.id}${x}`),
|
|
108
200
|
className: `w-full text-left bg-bg-surface border border-border-seam rounded-lg shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] transition-[box-shadow,border-color] duration-200 group ${n ? "p-3" : "p-4"}`,
|
|
109
|
-
children: /* @__PURE__ */
|
|
201
|
+
children: /* @__PURE__ */ _("div", {
|
|
110
202
|
className: `flex ${n ? "flex-col" : "items-start"} justify-between gap-3`,
|
|
111
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ _("div", {
|
|
112
204
|
className: "flex-1 min-w-0",
|
|
113
205
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ _("div", {
|
|
115
207
|
className: "flex items-center gap-2 mb-1 flex-wrap",
|
|
116
208
|
children: [
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
className: "font-semibold text-text-primary truncate group-hover:text-
|
|
209
|
+
/* @__PURE__ */ _("h3", {
|
|
210
|
+
className: "font-semibold text-text-primary truncate group-hover:text-primary transition-colors text-sm",
|
|
119
211
|
children: [
|
|
120
212
|
t.firstName,
|
|
121
213
|
" ",
|
|
122
214
|
t.lastName
|
|
123
215
|
]
|
|
124
216
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ g(e, {
|
|
126
218
|
variant: "secondary",
|
|
127
|
-
className: `${
|
|
128
|
-
children:
|
|
219
|
+
className: `${y[t.status] || y.NEW} ${t.status === "NEW" ? "motion-safe:animate-vc-glow-pulse" : ""}`,
|
|
220
|
+
children: b[t.status] || t.status
|
|
129
221
|
}),
|
|
130
|
-
r && /* @__PURE__ */
|
|
222
|
+
r && /* @__PURE__ */ g(e, {
|
|
131
223
|
variant: "outline",
|
|
132
224
|
title: `Job posting: ${r}`,
|
|
133
225
|
children: r
|
|
134
226
|
}),
|
|
135
|
-
t.productId &&
|
|
227
|
+
t.productId && U[t.productId] && /* @__PURE__ */ g(e, {
|
|
136
228
|
variant: "secondary",
|
|
137
229
|
className: "bg-accent-purple-subtle text-accent-purple",
|
|
138
|
-
title: `Product: ${
|
|
139
|
-
children:
|
|
230
|
+
title: `Product: ${U[t.productId]}`,
|
|
231
|
+
children: U[t.productId]
|
|
140
232
|
}),
|
|
141
|
-
t.resumeFileName && /* @__PURE__ */
|
|
233
|
+
t.resumeFileName && /* @__PURE__ */ _(e, {
|
|
142
234
|
variant: "secondary",
|
|
143
235
|
className: "bg-accent-blue-subtle text-accent-blue gap-1",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
236
|
+
children: [/* @__PURE__ */ g(m, { size: n ? 10 : 11 }), "Resume"]
|
|
145
237
|
})
|
|
146
238
|
]
|
|
147
239
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ _("p", {
|
|
149
241
|
className: `text-text-secondary mb-1 ${n ? "text-xs" : "text-sm"}`,
|
|
150
|
-
children: [/* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ g("span", {
|
|
151
243
|
className: "font-medium",
|
|
152
244
|
children: t.position
|
|
153
|
-
}), t.department && /* @__PURE__ */
|
|
245
|
+
}), t.department && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("span", {
|
|
154
246
|
className: "mx-1.5 text-text-secondary/50",
|
|
155
247
|
children: "·"
|
|
156
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ g("span", { children: t.department })] })]
|
|
157
249
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ g("p", {
|
|
159
251
|
className: `text-text-secondary truncate ${n ? "text-[11px]" : "text-xs"}`,
|
|
160
252
|
children: t.email
|
|
161
253
|
})
|
|
162
254
|
]
|
|
163
|
-
}), /* @__PURE__ */
|
|
255
|
+
}), /* @__PURE__ */ g("div", {
|
|
164
256
|
className: `text-text-secondary whitespace-nowrap ${n ? "text-[11px]" : "text-xs"}`,
|
|
165
|
-
children:
|
|
257
|
+
children: Ee(t.createdAt)
|
|
166
258
|
})]
|
|
167
259
|
})
|
|
168
260
|
}, t.id);
|
|
169
261
|
};
|
|
170
|
-
return
|
|
262
|
+
return K && X.length === 0 ? /* @__PURE__ */ _("div", {
|
|
171
263
|
className: "p-6",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
264
|
+
children: [/* @__PURE__ */ _("div", {
|
|
173
265
|
className: "flex items-center gap-3 mb-6",
|
|
174
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ g(f, {
|
|
175
267
|
size: 24,
|
|
176
268
|
className: "text-text-primary"
|
|
177
|
-
}), /* @__PURE__ */
|
|
269
|
+
}), /* @__PURE__ */ g("h1", {
|
|
178
270
|
className: "text-2xl font-bold text-text-primary",
|
|
179
271
|
children: "Job Applications"
|
|
180
272
|
})]
|
|
181
|
-
}), /* @__PURE__ */
|
|
273
|
+
}), /* @__PURE__ */ _("div", {
|
|
182
274
|
className: "flex flex-col items-center justify-center py-16",
|
|
183
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ g(p, {
|
|
184
276
|
size: 32,
|
|
185
277
|
className: "animate-spin text-text-secondary mb-4"
|
|
186
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ g("p", {
|
|
187
279
|
className: "text-sm text-text-secondary",
|
|
188
280
|
children: "Loading applications…"
|
|
189
281
|
})]
|
|
190
282
|
})]
|
|
191
|
-
}) :
|
|
283
|
+
}) : q ? /* @__PURE__ */ _("div", {
|
|
192
284
|
className: "p-6",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ _("div", {
|
|
194
286
|
className: "flex items-center gap-3 mb-6",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ g(f, {
|
|
196
288
|
size: 24,
|
|
197
289
|
className: "text-text-primary"
|
|
198
|
-
}), /* @__PURE__ */
|
|
290
|
+
}), /* @__PURE__ */ g("h1", {
|
|
199
291
|
className: "text-2xl font-bold text-text-primary",
|
|
200
292
|
children: "Job Applications"
|
|
201
293
|
})]
|
|
202
|
-
}), /* @__PURE__ */
|
|
294
|
+
}), /* @__PURE__ */ _("div", {
|
|
203
295
|
className: "flex flex-col items-center justify-center py-16 text-center",
|
|
204
296
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ g("div", {
|
|
206
298
|
className: "p-4 rounded-2xl bg-status-error-bg-subtle text-status-error-text mb-4",
|
|
207
|
-
children: /* @__PURE__ */
|
|
299
|
+
children: /* @__PURE__ */ g(pe, { size: 48 })
|
|
208
300
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ g("h3", {
|
|
210
302
|
className: "text-lg font-semibold text-text-primary mb-2",
|
|
211
303
|
children: "Failed to load applications"
|
|
212
304
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ g("p", {
|
|
214
306
|
className: "text-sm text-text-secondary",
|
|
215
|
-
children:
|
|
307
|
+
children: q.message
|
|
216
308
|
})
|
|
217
309
|
]
|
|
218
310
|
})]
|
|
219
|
-
}) : /* @__PURE__ */
|
|
311
|
+
}) : /* @__PURE__ */ _("div", {
|
|
220
312
|
className: "p-6",
|
|
221
313
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ _("div", {
|
|
223
315
|
className: "flex items-center justify-between mb-6",
|
|
224
|
-
children: /* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ _("div", {
|
|
225
317
|
className: "flex items-center gap-3",
|
|
226
318
|
children: [
|
|
227
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ g(f, {
|
|
228
320
|
size: 24,
|
|
229
321
|
className: "text-text-primary"
|
|
230
322
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h1", {
|
|
232
324
|
className: "text-2xl font-bold text-text-primary",
|
|
233
325
|
children: "Job Applications"
|
|
234
|
-
}), /* @__PURE__ */
|
|
326
|
+
}), /* @__PURE__ */ g("p", {
|
|
235
327
|
className: "text-sm text-text-secondary",
|
|
236
328
|
children: "Careers form submissions"
|
|
237
329
|
})] }),
|
|
238
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ g(e, {
|
|
239
331
|
variant: "secondary",
|
|
240
332
|
className: "ml-2",
|
|
241
|
-
children:
|
|
333
|
+
children: Ue
|
|
242
334
|
})
|
|
243
335
|
]
|
|
244
|
-
})
|
|
336
|
+
}), /* @__PURE__ */ _(t, {
|
|
337
|
+
onClick: () => M(!0),
|
|
338
|
+
children: [/* @__PURE__ */ g(ve, { size: 18 }), "Add Candidate"]
|
|
339
|
+
})]
|
|
245
340
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ g(Te, {
|
|
247
342
|
className: "mb-6",
|
|
248
343
|
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."
|
|
249
344
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ _("div", {
|
|
251
346
|
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",
|
|
252
347
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ _("div", {
|
|
254
349
|
className: "relative flex-1",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
350
|
+
children: [/* @__PURE__ */ g(ye, {
|
|
256
351
|
size: 18,
|
|
257
352
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
|
|
258
|
-
}), /* @__PURE__ */
|
|
353
|
+
}), /* @__PURE__ */ g(a, {
|
|
259
354
|
type: "text",
|
|
260
355
|
"aria-label": "Search applications",
|
|
261
356
|
placeholder: "Search by name, email, or position...",
|
|
262
|
-
value:
|
|
263
|
-
onChange: (e) =>
|
|
357
|
+
value: w,
|
|
358
|
+
onChange: (e) => Me(e.target.value),
|
|
264
359
|
className: "pl-10"
|
|
265
360
|
})]
|
|
266
361
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ _("div", {
|
|
268
363
|
className: "flex items-center gap-1 p-1 rounded-lg border bg-bg-sunken/50",
|
|
269
|
-
children: [/* @__PURE__ */
|
|
270
|
-
variant:
|
|
364
|
+
children: [/* @__PURE__ */ g(t, {
|
|
365
|
+
variant: A === "list" ? "secondary" : "ghost",
|
|
271
366
|
size: "sm",
|
|
272
|
-
onClick: () =>
|
|
367
|
+
onClick: () => j("list"),
|
|
273
368
|
className: "px-3",
|
|
274
369
|
"aria-label": "Show applications as a list",
|
|
275
|
-
children: /* @__PURE__ */
|
|
276
|
-
}), /* @__PURE__ */
|
|
277
|
-
variant:
|
|
370
|
+
children: /* @__PURE__ */ g(_e, { size: 18 })
|
|
371
|
+
}), /* @__PURE__ */ g(t, {
|
|
372
|
+
variant: A === "kanban" ? "secondary" : "ghost",
|
|
278
373
|
size: "sm",
|
|
279
|
-
onClick: () =>
|
|
374
|
+
onClick: () => j("kanban"),
|
|
280
375
|
className: "px-3",
|
|
281
376
|
"aria-label": "Show applications as a kanban board",
|
|
282
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ g(ge, { size: 18 })
|
|
283
378
|
})]
|
|
284
379
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
-
variant:
|
|
380
|
+
/* @__PURE__ */ _(t, {
|
|
381
|
+
variant: k ? "secondary" : "outline",
|
|
287
382
|
size: "sm",
|
|
288
|
-
onClick: () =>
|
|
383
|
+
onClick: () => Le(!k),
|
|
289
384
|
className: "gap-2",
|
|
290
385
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ g(he, { size: 16 }),
|
|
292
387
|
"Filters",
|
|
293
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ g(me, {
|
|
294
389
|
size: 14,
|
|
295
|
-
className:
|
|
390
|
+
className: k ? "rotate-180 transition-transform" : "transition-transform"
|
|
296
391
|
})
|
|
297
392
|
]
|
|
298
393
|
})
|
|
299
394
|
]
|
|
300
395
|
}),
|
|
301
|
-
|
|
396
|
+
k && /* @__PURE__ */ g("div", {
|
|
302
397
|
className: "mb-6 p-4 bg-bg-surface border border-border-seam rounded-lg",
|
|
303
|
-
children: /* @__PURE__ */
|
|
398
|
+
children: /* @__PURE__ */ _("div", {
|
|
304
399
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
305
400
|
children: [
|
|
306
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
|
|
307
402
|
htmlFor: "job-app-status-filter",
|
|
308
403
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
309
404
|
children: "Status"
|
|
310
|
-
}), /* @__PURE__ */
|
|
405
|
+
}), /* @__PURE__ */ _("select", {
|
|
311
406
|
id: "job-app-status-filter",
|
|
312
|
-
value:
|
|
313
|
-
onChange: (e) =>
|
|
407
|
+
value: E,
|
|
408
|
+
onChange: (e) => Pe(e.target.value),
|
|
314
409
|
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",
|
|
315
410
|
children: [
|
|
316
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ g("option", {
|
|
317
412
|
value: "",
|
|
318
413
|
children: "All statuses"
|
|
319
414
|
}),
|
|
320
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ g("option", {
|
|
321
416
|
value: "NEW",
|
|
322
417
|
children: "New"
|
|
323
418
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ g("option", {
|
|
325
420
|
value: "SCREENING",
|
|
326
421
|
children: "Screening"
|
|
327
422
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ g("option", {
|
|
329
424
|
value: "SHORTLISTED",
|
|
330
425
|
children: "Shortlisted"
|
|
331
426
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ g("option", {
|
|
333
428
|
value: "INTERVIEW",
|
|
334
429
|
children: "Interview"
|
|
335
430
|
}),
|
|
336
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ g("option", {
|
|
337
432
|
value: "HIRED",
|
|
338
433
|
children: "Hired"
|
|
339
434
|
}),
|
|
340
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ g("option", {
|
|
341
436
|
value: "REJECTED",
|
|
342
437
|
children: "Rejected"
|
|
343
438
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ g("option", {
|
|
345
440
|
value: "ARCHIVED",
|
|
346
441
|
children: "Archived"
|
|
347
442
|
})
|
|
348
443
|
]
|
|
349
444
|
})] }),
|
|
350
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
|
|
351
446
|
htmlFor: "job-app-product-filter",
|
|
352
447
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
353
448
|
children: "Product"
|
|
354
|
-
}), /* @__PURE__ */
|
|
449
|
+
}), /* @__PURE__ */ _("select", {
|
|
355
450
|
id: "job-app-product-filter",
|
|
356
|
-
value:
|
|
357
|
-
onChange: (e) =>
|
|
451
|
+
value: D,
|
|
452
|
+
onChange: (e) => Fe(e.target.value),
|
|
358
453
|
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",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
454
|
+
children: [/* @__PURE__ */ g("option", {
|
|
360
455
|
value: "",
|
|
361
456
|
children: "All products"
|
|
362
|
-
}),
|
|
457
|
+
}), Ge.map((e) => /* @__PURE__ */ g("option", {
|
|
363
458
|
value: e,
|
|
364
|
-
children:
|
|
459
|
+
children: U[e] || e
|
|
365
460
|
}, e))]
|
|
366
461
|
})] }),
|
|
367
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
|
|
368
463
|
htmlFor: "job-app-posting-filter",
|
|
369
464
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
370
465
|
children: "Job Posting"
|
|
371
|
-
}), /* @__PURE__ */
|
|
466
|
+
}), /* @__PURE__ */ _("select", {
|
|
372
467
|
id: "job-app-posting-filter",
|
|
373
|
-
value:
|
|
374
|
-
onChange: (e) =>
|
|
375
|
-
disabled:
|
|
468
|
+
value: O,
|
|
469
|
+
onChange: (e) => Ie(e.target.value),
|
|
470
|
+
disabled: Y,
|
|
376
471
|
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",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
472
|
+
children: [/* @__PURE__ */ g("option", {
|
|
378
473
|
value: "",
|
|
379
474
|
children: "All postings"
|
|
380
|
-
}), (
|
|
475
|
+
}), (J?.jobPostings?.items ?? []).map((e) => /* @__PURE__ */ g("option", {
|
|
381
476
|
value: e.id,
|
|
382
477
|
children: e.title
|
|
383
478
|
}, e.id))]
|
|
@@ -385,59 +480,340 @@ function D() {
|
|
|
385
480
|
]
|
|
386
481
|
})
|
|
387
482
|
}),
|
|
388
|
-
|
|
483
|
+
X.length === 0 ? /* @__PURE__ */ g(we, {
|
|
389
484
|
illustration: "empty-people",
|
|
390
485
|
title: "No applications yet",
|
|
391
486
|
description: "Job applications from your careers pages will appear here."
|
|
392
|
-
}) : /* @__PURE__ */
|
|
487
|
+
}) : /* @__PURE__ */ _(h, { children: [A === "list" ? /* @__PURE__ */ g("div", {
|
|
393
488
|
className: "space-y-3",
|
|
394
|
-
children:
|
|
395
|
-
}) : /* @__PURE__ */
|
|
489
|
+
children: X.map((e) => Ze(e))
|
|
490
|
+
}) : /* @__PURE__ */ g("div", {
|
|
396
491
|
className: "flex gap-4 overflow-x-auto pb-4",
|
|
397
|
-
children:
|
|
398
|
-
let n =
|
|
399
|
-
return /* @__PURE__ */
|
|
492
|
+
children: v.map((t) => {
|
|
493
|
+
let n = Xe[t] ?? [];
|
|
494
|
+
return /* @__PURE__ */ _("div", {
|
|
400
495
|
className: "flex flex-col gap-3 w-[280px] flex-shrink-0 max-h-[calc(100vh-280px)]",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ _("div", {
|
|
402
497
|
className: "flex items-center justify-between px-1",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
498
|
+
children: [/* @__PURE__ */ g("h3", {
|
|
404
499
|
className: "text-sm font-semibold text-text-primary",
|
|
405
|
-
children:
|
|
406
|
-
}), /* @__PURE__ */
|
|
500
|
+
children: b[t]
|
|
501
|
+
}), /* @__PURE__ */ g(e, {
|
|
407
502
|
variant: "secondary",
|
|
408
|
-
className:
|
|
503
|
+
className: y[t],
|
|
409
504
|
children: n.length
|
|
410
505
|
})]
|
|
411
|
-
}), /* @__PURE__ */
|
|
506
|
+
}), /* @__PURE__ */ _("div", {
|
|
412
507
|
className: "flex flex-col gap-3 overflow-y-auto pr-1",
|
|
413
|
-
children: [n.length === 0 && /* @__PURE__ */
|
|
508
|
+
children: [n.length === 0 && /* @__PURE__ */ g("div", {
|
|
414
509
|
className: "text-center py-6 px-3 rounded-lg border border-dashed border-border-seam bg-bg-sunken/30",
|
|
415
|
-
children: /* @__PURE__ */
|
|
510
|
+
children: /* @__PURE__ */ g("p", {
|
|
416
511
|
className: "text-xs text-text-secondary",
|
|
417
512
|
children: "No applications"
|
|
418
513
|
})
|
|
419
|
-
}), n.map((e) =>
|
|
514
|
+
}), n.map((e) => Ze(e, !0))]
|
|
420
515
|
})]
|
|
421
516
|
}, t);
|
|
422
517
|
})
|
|
423
|
-
}),
|
|
518
|
+
}), Z && /* @__PURE__ */ g("div", {
|
|
424
519
|
className: "flex justify-center mt-6",
|
|
425
|
-
children: /* @__PURE__ */
|
|
520
|
+
children: /* @__PURE__ */ _(t, {
|
|
426
521
|
variant: "outline",
|
|
427
522
|
size: "sm",
|
|
428
|
-
onClick:
|
|
429
|
-
disabled:
|
|
523
|
+
onClick: Ke,
|
|
524
|
+
disabled: K,
|
|
430
525
|
className: "gap-2",
|
|
431
|
-
children: [
|
|
526
|
+
children: [K ? /* @__PURE__ */ g(p, {
|
|
432
527
|
size: 14,
|
|
433
528
|
className: "animate-spin"
|
|
434
529
|
}) : null, "Load more"]
|
|
435
530
|
})
|
|
436
|
-
})] })
|
|
531
|
+
})] }),
|
|
532
|
+
/* @__PURE__ */ g(n, {
|
|
533
|
+
open: Re,
|
|
534
|
+
onOpenChange: (e) => {
|
|
535
|
+
M(e), e || $();
|
|
536
|
+
},
|
|
537
|
+
children: /* @__PURE__ */ _(r, {
|
|
538
|
+
className: "sm:max-w-2xl max-h-[90vh] overflow-y-auto",
|
|
539
|
+
children: [
|
|
540
|
+
/* @__PURE__ */ _(te, { children: [/* @__PURE__ */ g(ne, { children: "Add Candidate" }), /* @__PURE__ */ g(i, { children: "Manually add a candidate to the hiring pipeline. Resumes are optional and can be attached as PDF, DOC, or DOCX (max 10 MB)." })] }),
|
|
541
|
+
/* @__PURE__ */ _("form", {
|
|
542
|
+
id: "add-candidate-form",
|
|
543
|
+
onSubmit: Ye,
|
|
544
|
+
className: "space-y-4",
|
|
545
|
+
children: [
|
|
546
|
+
/* @__PURE__ */ _("div", {
|
|
547
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
548
|
+
children: [/* @__PURE__ */ _("div", {
|
|
549
|
+
className: "space-y-1.5",
|
|
550
|
+
children: [
|
|
551
|
+
/* @__PURE__ */ _(o, {
|
|
552
|
+
htmlFor: "candidate-name",
|
|
553
|
+
children: ["Name ", /* @__PURE__ */ g("span", {
|
|
554
|
+
className: "text-status-error-text",
|
|
555
|
+
children: "*"
|
|
556
|
+
})]
|
|
557
|
+
}),
|
|
558
|
+
/* @__PURE__ */ g(a, {
|
|
559
|
+
id: "candidate-name",
|
|
560
|
+
value: N.name,
|
|
561
|
+
onChange: (e) => P((t) => ({
|
|
562
|
+
...t,
|
|
563
|
+
name: e.target.value
|
|
564
|
+
})),
|
|
565
|
+
placeholder: "Full name",
|
|
566
|
+
"aria-invalid": !!F.name
|
|
567
|
+
}),
|
|
568
|
+
F.name && /* @__PURE__ */ g("p", {
|
|
569
|
+
className: "text-xs text-status-error-text",
|
|
570
|
+
children: F.name
|
|
571
|
+
})
|
|
572
|
+
]
|
|
573
|
+
}), /* @__PURE__ */ _("div", {
|
|
574
|
+
className: "space-y-1.5",
|
|
575
|
+
children: [
|
|
576
|
+
/* @__PURE__ */ _(o, {
|
|
577
|
+
htmlFor: "candidate-email",
|
|
578
|
+
children: ["Email ", /* @__PURE__ */ g("span", {
|
|
579
|
+
className: "text-status-error-text",
|
|
580
|
+
children: "*"
|
|
581
|
+
})]
|
|
582
|
+
}),
|
|
583
|
+
/* @__PURE__ */ g(a, {
|
|
584
|
+
id: "candidate-email",
|
|
585
|
+
type: "email",
|
|
586
|
+
value: N.email,
|
|
587
|
+
onChange: (e) => P((t) => ({
|
|
588
|
+
...t,
|
|
589
|
+
email: e.target.value
|
|
590
|
+
})),
|
|
591
|
+
placeholder: "email@example.com",
|
|
592
|
+
"aria-invalid": !!F.email
|
|
593
|
+
}),
|
|
594
|
+
F.email && /* @__PURE__ */ g("p", {
|
|
595
|
+
className: "text-xs text-status-error-text",
|
|
596
|
+
children: F.email
|
|
597
|
+
})
|
|
598
|
+
]
|
|
599
|
+
})]
|
|
600
|
+
}),
|
|
601
|
+
/* @__PURE__ */ _("div", {
|
|
602
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
603
|
+
children: [/* @__PURE__ */ _("div", {
|
|
604
|
+
className: "space-y-1.5",
|
|
605
|
+
children: [/* @__PURE__ */ g(o, {
|
|
606
|
+
htmlFor: "candidate-phone",
|
|
607
|
+
children: "Phone"
|
|
608
|
+
}), /* @__PURE__ */ g(a, {
|
|
609
|
+
id: "candidate-phone",
|
|
610
|
+
value: N.phone,
|
|
611
|
+
onChange: (e) => P((t) => ({
|
|
612
|
+
...t,
|
|
613
|
+
phone: e.target.value
|
|
614
|
+
})),
|
|
615
|
+
placeholder: "+91 98765 43210"
|
|
616
|
+
})]
|
|
617
|
+
}), /* @__PURE__ */ _("div", {
|
|
618
|
+
className: "space-y-1.5",
|
|
619
|
+
children: [
|
|
620
|
+
/* @__PURE__ */ _(o, {
|
|
621
|
+
htmlFor: "candidate-source",
|
|
622
|
+
children: ["Source ", /* @__PURE__ */ g("span", {
|
|
623
|
+
className: "text-status-error-text",
|
|
624
|
+
children: "*"
|
|
625
|
+
})]
|
|
626
|
+
}),
|
|
627
|
+
/* @__PURE__ */ g(a, {
|
|
628
|
+
id: "candidate-source",
|
|
629
|
+
list: "candidate-source-suggestions",
|
|
630
|
+
value: N.source,
|
|
631
|
+
onChange: (e) => P((t) => ({
|
|
632
|
+
...t,
|
|
633
|
+
source: e.target.value
|
|
634
|
+
})),
|
|
635
|
+
placeholder: "e.g. LinkedIn",
|
|
636
|
+
"aria-invalid": !!F.source
|
|
637
|
+
}),
|
|
638
|
+
/* @__PURE__ */ g("datalist", {
|
|
639
|
+
id: "candidate-source-suggestions",
|
|
640
|
+
children: De.map((e) => /* @__PURE__ */ g("option", { value: e }, e))
|
|
641
|
+
}),
|
|
642
|
+
F.source && /* @__PURE__ */ g("p", {
|
|
643
|
+
className: "text-xs text-status-error-text",
|
|
644
|
+
children: F.source
|
|
645
|
+
})
|
|
646
|
+
]
|
|
647
|
+
})]
|
|
648
|
+
}),
|
|
649
|
+
/* @__PURE__ */ _("div", {
|
|
650
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
651
|
+
children: [/* @__PURE__ */ _("div", {
|
|
652
|
+
className: "space-y-1.5",
|
|
653
|
+
children: [
|
|
654
|
+
/* @__PURE__ */ g(o, {
|
|
655
|
+
htmlFor: "candidate-job-posting",
|
|
656
|
+
children: "Job Posting"
|
|
657
|
+
}),
|
|
658
|
+
/* @__PURE__ */ _(re, {
|
|
659
|
+
value: N.jobPostingId,
|
|
660
|
+
onValueChange: (e) => P((t) => ({
|
|
661
|
+
...t,
|
|
662
|
+
jobPostingId: e
|
|
663
|
+
})),
|
|
664
|
+
disabled: Y,
|
|
665
|
+
children: [/* @__PURE__ */ g(ae, {
|
|
666
|
+
id: "candidate-job-posting",
|
|
667
|
+
children: /* @__PURE__ */ g(oe, { placeholder: "Select an open posting" })
|
|
668
|
+
}), /* @__PURE__ */ _(ie, { children: [/* @__PURE__ */ g(s, {
|
|
669
|
+
value: S,
|
|
670
|
+
children: "No posting (manual entry)"
|
|
671
|
+
}), He.map((e) => /* @__PURE__ */ g(s, {
|
|
672
|
+
value: e.id,
|
|
673
|
+
children: e.title
|
|
674
|
+
}, e.id))] })]
|
|
675
|
+
}),
|
|
676
|
+
/* @__PURE__ */ g("p", {
|
|
677
|
+
className: "text-xs text-text-secondary",
|
|
678
|
+
children: "Position and department are derived from the selected posting."
|
|
679
|
+
})
|
|
680
|
+
]
|
|
681
|
+
}), /* @__PURE__ */ _("div", {
|
|
682
|
+
className: "space-y-1.5",
|
|
683
|
+
children: [
|
|
684
|
+
/* @__PURE__ */ _(o, {
|
|
685
|
+
htmlFor: "candidate-position",
|
|
686
|
+
children: [
|
|
687
|
+
"Position",
|
|
688
|
+
" ",
|
|
689
|
+
N.jobPostingId === S && /* @__PURE__ */ g("span", {
|
|
690
|
+
className: "text-status-error-text",
|
|
691
|
+
children: "*"
|
|
692
|
+
})
|
|
693
|
+
]
|
|
694
|
+
}),
|
|
695
|
+
/* @__PURE__ */ g(a, {
|
|
696
|
+
id: "candidate-position",
|
|
697
|
+
value: N.position,
|
|
698
|
+
onChange: (e) => P((t) => ({
|
|
699
|
+
...t,
|
|
700
|
+
position: e.target.value
|
|
701
|
+
})),
|
|
702
|
+
placeholder: "e.g. Product Engineer",
|
|
703
|
+
disabled: N.jobPostingId !== S,
|
|
704
|
+
"aria-invalid": !!F.position
|
|
705
|
+
}),
|
|
706
|
+
F.position && /* @__PURE__ */ g("p", {
|
|
707
|
+
className: "text-xs text-status-error-text",
|
|
708
|
+
children: F.position
|
|
709
|
+
})
|
|
710
|
+
]
|
|
711
|
+
})]
|
|
712
|
+
}),
|
|
713
|
+
/* @__PURE__ */ _("div", {
|
|
714
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
715
|
+
children: [/* @__PURE__ */ _("div", {
|
|
716
|
+
className: "space-y-1.5",
|
|
717
|
+
children: [/* @__PURE__ */ g(o, {
|
|
718
|
+
htmlFor: "candidate-linkedin",
|
|
719
|
+
children: "LinkedIn"
|
|
720
|
+
}), /* @__PURE__ */ g(a, {
|
|
721
|
+
id: "candidate-linkedin",
|
|
722
|
+
value: N.linkedin,
|
|
723
|
+
onChange: (e) => P((t) => ({
|
|
724
|
+
...t,
|
|
725
|
+
linkedin: e.target.value
|
|
726
|
+
})),
|
|
727
|
+
placeholder: "https://linkedin.com/in/…"
|
|
728
|
+
})]
|
|
729
|
+
}), /* @__PURE__ */ _("div", {
|
|
730
|
+
className: "space-y-1.5",
|
|
731
|
+
children: [/* @__PURE__ */ g(o, {
|
|
732
|
+
htmlFor: "candidate-portfolio",
|
|
733
|
+
children: "Portfolio"
|
|
734
|
+
}), /* @__PURE__ */ g(a, {
|
|
735
|
+
id: "candidate-portfolio",
|
|
736
|
+
value: N.portfolio,
|
|
737
|
+
onChange: (e) => P((t) => ({
|
|
738
|
+
...t,
|
|
739
|
+
portfolio: e.target.value
|
|
740
|
+
})),
|
|
741
|
+
placeholder: "https://…"
|
|
742
|
+
})]
|
|
743
|
+
})]
|
|
744
|
+
}),
|
|
745
|
+
/* @__PURE__ */ _("div", {
|
|
746
|
+
className: "space-y-1.5",
|
|
747
|
+
children: [/* @__PURE__ */ g(o, {
|
|
748
|
+
htmlFor: "candidate-cover-letter",
|
|
749
|
+
children: "Cover Letter"
|
|
750
|
+
}), /* @__PURE__ */ g(se, {
|
|
751
|
+
id: "candidate-cover-letter",
|
|
752
|
+
value: N.coverLetter,
|
|
753
|
+
onChange: (e) => P((t) => ({
|
|
754
|
+
...t,
|
|
755
|
+
coverLetter: e.target.value
|
|
756
|
+
})),
|
|
757
|
+
placeholder: "Notes or cover letter from the candidate",
|
|
758
|
+
rows: 4
|
|
759
|
+
})]
|
|
760
|
+
}),
|
|
761
|
+
/* @__PURE__ */ _("div", {
|
|
762
|
+
className: "space-y-1.5",
|
|
763
|
+
children: [
|
|
764
|
+
/* @__PURE__ */ g(o, {
|
|
765
|
+
htmlFor: "candidate-resume",
|
|
766
|
+
children: "Resume (optional)"
|
|
767
|
+
}),
|
|
768
|
+
/* @__PURE__ */ g(a, {
|
|
769
|
+
id: "candidate-resume",
|
|
770
|
+
type: "file",
|
|
771
|
+
accept: ke,
|
|
772
|
+
onChange: qe
|
|
773
|
+
}),
|
|
774
|
+
/* @__PURE__ */ _("p", {
|
|
775
|
+
className: "text-xs text-text-secondary flex items-center gap-1",
|
|
776
|
+
children: [
|
|
777
|
+
/* @__PURE__ */ g(m, { size: 11 }),
|
|
778
|
+
"PDF, DOC, or DOCX up to 10 MB.",
|
|
779
|
+
L ? ` Selected: ${L.name}` : ""
|
|
780
|
+
]
|
|
781
|
+
}),
|
|
782
|
+
z && /* @__PURE__ */ g("p", {
|
|
783
|
+
className: "text-xs text-status-error-text",
|
|
784
|
+
children: z
|
|
785
|
+
})
|
|
786
|
+
]
|
|
787
|
+
})
|
|
788
|
+
]
|
|
789
|
+
}),
|
|
790
|
+
/* @__PURE__ */ _(ee, { children: [/* @__PURE__ */ g(t, {
|
|
791
|
+
type: "button",
|
|
792
|
+
variant: "outline",
|
|
793
|
+
onClick: () => {
|
|
794
|
+
M(!1), $();
|
|
795
|
+
},
|
|
796
|
+
disabled: V,
|
|
797
|
+
children: "Cancel"
|
|
798
|
+
}), /* @__PURE__ */ g(t, {
|
|
799
|
+
type: "submit",
|
|
800
|
+
form: "add-candidate-form",
|
|
801
|
+
disabled: V,
|
|
802
|
+
children: V ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(p, {
|
|
803
|
+
size: 16,
|
|
804
|
+
className: "animate-spin mr-2"
|
|
805
|
+
}), "Adding…"] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(be, {
|
|
806
|
+
size: 16,
|
|
807
|
+
className: "mr-2"
|
|
808
|
+
}), "Add Candidate"] })
|
|
809
|
+
})] })
|
|
810
|
+
]
|
|
811
|
+
})
|
|
812
|
+
})
|
|
437
813
|
]
|
|
438
814
|
});
|
|
439
815
|
}
|
|
440
816
|
//#endregion
|
|
441
|
-
export {
|
|
817
|
+
export { w as JobApplicationsPage };
|
|
442
818
|
|
|
443
819
|
//# sourceMappingURL=JobApplicationsPage.js.map
|