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