@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,16 +1,18 @@
|
|
|
1
|
-
import { Badge as e, Button as t, Card as n, CardContent as r, CardHeader as i, CardTitle as ee, Dialog as a, DialogContent as
|
|
2
|
-
import { useAssignInterviewersToRoundMutation as
|
|
3
|
-
import { InterviewRoundStatus as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { Badge as e, Button as t, Card as n, CardContent as r, CardHeader as i, CardTitle as ee, Dialog as a, DialogContent as te, DialogDescription as o, DialogFooter as s, DialogHeader as ne, DialogTitle as re, Input as ie, Label as c, Select as l, SelectContent as u, SelectItem as d, SelectTrigger as f, SelectValue as p, Textarea as ae } from "../components/ui.js";
|
|
2
|
+
import { useAssignInterviewersToRoundMutation as oe, useCreateInterviewRoundMutation as se, useGetInterviewersQuery as ce, useGetJobApplicationInterviewRoundsQuery as le, useGetJobApplicationQuery as m, useGetJobApplicationResumePreviewUrlLazyQuery as h, useGetJobApplicationResumeUrlLazyQuery as ue, useGetJobPostingQuery as g, useRandomizeAndSendAssignmentMutation as _, useRecordAssignmentSubmissionMutation as de, useRemoveInterviewerFromRoundMutation as v, useReplyToJobApplicationMutation as y, useSendRoundMessageToCandidateMutation as fe, useSubmitInterviewFeedbackMutation as pe, useUpdateInterviewFeedbackMutation as me, useUpdateJobApplicationStatusMutation as he } from "../../generated/global-operations.js";
|
|
3
|
+
import { InterviewRoundStatus as b, InterviewRoundType as x, InterviewVerdict as S, InterviewerRole as C } from "../../generated/global-types.js";
|
|
4
|
+
import w from "../../node_modules/dompurify/dist/purify.es.js";
|
|
5
|
+
import { nativeCopyText as ge, nativeImpact as T } from "../../utils/nativeBridge.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { roundStatusConfig as _e } from "../constants/pipeline.js";
|
|
8
|
+
import { useEffect as ve, useState as E } from "react";
|
|
9
|
+
import { AlertCircle as D, Archive as O, ArrowLeft as k, Briefcase as ye, Building2 as A, Calendar as j, CheckCircle as M, Clock as N, Copy as P, Download as F, Edit3 as I, ExternalLink as L, Eye as R, FileText as z, Globe as be, Inbox as B, Link2 as V, Linkedin as H, Loader2 as U, Mail as W, MessageSquare as G, Package as xe, Phone as K, Plus as q, Send as Se, Star as J, User as Ce, UserPlus as we, UserX as Te, Users as Ee, XCircle as De } from "lucide-react";
|
|
10
|
+
import { useLocation as Oe, useNavigate as ke, useParams as Ae } from "react-router";
|
|
11
|
+
import { graphqlFetch as je } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
12
|
+
import { Fragment as Me, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
13
|
+
import { EmphasisPanel as Ne, IllustratedEmptyState as Pe, NextSteps as Fe, PagePurpose as Ie } from "@burdenoff/fe-libs/ui";
|
|
12
14
|
//#region src/support/pages/JobApplicationDetailPage.tsx
|
|
13
|
-
var Z = "__custom__",
|
|
15
|
+
var Z = "__custom__", Le = {
|
|
14
16
|
NEW: {
|
|
15
17
|
label: "New",
|
|
16
18
|
color: "text-accent-blue",
|
|
@@ -20,37 +22,37 @@ var Z = "__custom__", Ie = {
|
|
|
20
22
|
SCREENING: {
|
|
21
23
|
label: "Screening",
|
|
22
24
|
color: "text-status-warning-text",
|
|
23
|
-
icon:
|
|
25
|
+
icon: R,
|
|
24
26
|
bg: "bg-status-warning-bg-subtle border-border-subtle"
|
|
25
27
|
},
|
|
26
28
|
SHORTLISTED: {
|
|
27
29
|
label: "Shortlisted",
|
|
28
30
|
color: "text-accent-purple",
|
|
29
|
-
icon:
|
|
31
|
+
icon: J,
|
|
30
32
|
bg: "bg-accent-purple-subtle border-border-subtle"
|
|
31
33
|
},
|
|
32
34
|
INTERVIEW: {
|
|
33
35
|
label: "Interview",
|
|
34
36
|
color: "text-accent-blue",
|
|
35
|
-
icon:
|
|
37
|
+
icon: Ee,
|
|
36
38
|
bg: "bg-accent-blue-subtle border-border-subtle"
|
|
37
39
|
},
|
|
38
40
|
HIRED: {
|
|
39
41
|
label: "Hired",
|
|
40
42
|
color: "text-status-success-text",
|
|
41
|
-
icon:
|
|
43
|
+
icon: M,
|
|
42
44
|
bg: "bg-status-success-bg-subtle border-border-subtle"
|
|
43
45
|
},
|
|
44
46
|
REJECTED: {
|
|
45
47
|
label: "Rejected",
|
|
46
48
|
color: "text-status-error-text",
|
|
47
|
-
icon:
|
|
49
|
+
icon: De,
|
|
48
50
|
bg: "bg-status-error-bg-subtle border-border-subtle"
|
|
49
51
|
},
|
|
50
52
|
ARCHIVED: {
|
|
51
53
|
label: "Archived",
|
|
52
54
|
color: "text-text-secondary",
|
|
53
|
-
icon:
|
|
55
|
+
icon: O,
|
|
54
56
|
bg: "bg-bg-canvas border-border-subtle"
|
|
55
57
|
}
|
|
56
58
|
};
|
|
@@ -64,7 +66,7 @@ function Q(e) {
|
|
|
64
66
|
minute: "2-digit"
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
|
-
function
|
|
69
|
+
function Re(e) {
|
|
68
70
|
let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 6e4);
|
|
69
71
|
if (n < 60) return `${n}m ago`;
|
|
70
72
|
let r = Math.floor(n / 60);
|
|
@@ -72,13 +74,13 @@ function Le(e) {
|
|
|
72
74
|
let i = Math.floor(r / 24);
|
|
73
75
|
return i < 30 ? `${i}d ago` : Q(e);
|
|
74
76
|
}
|
|
75
|
-
function
|
|
77
|
+
function ze(e) {
|
|
76
78
|
return !e || e <= 0 ? null : e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1048576).toFixed(1)} MB`;
|
|
77
79
|
}
|
|
78
80
|
function $(e) {
|
|
79
81
|
return e.replace(/_/g, " ").toLowerCase().replace(/\b\w/g, (e) => e.toUpperCase());
|
|
80
82
|
}
|
|
81
|
-
function
|
|
83
|
+
function Be(e) {
|
|
82
84
|
switch (e) {
|
|
83
85
|
case "STRONG_YES":
|
|
84
86
|
case "YES": return "bg-status-success-bg-subtle text-status-success-text";
|
|
@@ -88,7 +90,7 @@ function ze(e) {
|
|
|
88
90
|
default: return "bg-bg-sunken text-text-secondary";
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
|
-
function
|
|
93
|
+
function Ve(e) {
|
|
92
94
|
if (!e) return null;
|
|
93
95
|
try {
|
|
94
96
|
let t = new URL(e);
|
|
@@ -97,48 +99,48 @@ function Be(e) {
|
|
|
97
99
|
return null;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
|
-
function
|
|
101
|
-
let [
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
102
|
+
function He({ round: a, applicationId: te, interviewers: o, interviewersLoading: s, onAssign: ne, onRemoveInterviewer: re, onSendMessage: oe, onSubmitFeedback: se, onUpdateFeedback: ce }) {
|
|
103
|
+
let [le, m] = E(!1), [h, ue] = E(null), [g, v] = E(""), [y, fe] = E(""), [pe, me] = E(""), [he, b] = E(""), [C, ge] = E(a.submittedRepoUrl ?? ""), [T, ve] = E(a.submittedVideoUrl ?? ""), [O, k] = E(a.submittedNotes ?? ""), [ye, A] = E(null), [M, { loading: N }] = _({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [P, { loading: F }] = de({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), L = a.roundType === x.TakeHome || !!a.roundConfig?.isAssignmentRound, R = !!a.assignment, be = !!(a.submittedRepoUrl || a.submittedVideoUrl || a.submittedAt), B = R || be, V = a.emailLogs.find((e) => e.emailType === "ASSIGNMENT")?.sentAt, H = _e[a.status] ?? _e.SCHEDULED, W = () => {
|
|
104
|
+
ue(null), v(""), fe(""), me(""), b("");
|
|
105
|
+
}, xe = async () => {
|
|
106
|
+
A(null);
|
|
105
107
|
try {
|
|
106
|
-
await
|
|
107
|
-
applicationId:
|
|
108
|
+
await M({ variables: { input: {
|
|
109
|
+
applicationId: te,
|
|
108
110
|
roundId: a.id
|
|
109
111
|
} } });
|
|
110
112
|
} catch (e) {
|
|
111
|
-
console.error("Failed to randomize and send assignment:", e),
|
|
113
|
+
console.error("Failed to randomize and send assignment:", e), A("Failed to randomize and send assignment.");
|
|
112
114
|
}
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
let e =
|
|
116
|
-
if (e && !
|
|
117
|
-
|
|
115
|
+
}, K = async () => {
|
|
116
|
+
A(null);
|
|
117
|
+
let e = C.trim() || void 0, t = T.trim() || void 0, n = O.trim() || void 0;
|
|
118
|
+
if (e && !Ve(e)) {
|
|
119
|
+
A("GitHub repo URL must start with http:// or https://.");
|
|
118
120
|
return;
|
|
119
121
|
}
|
|
120
|
-
if (t && !
|
|
121
|
-
|
|
122
|
+
if (t && !Ve(t)) {
|
|
123
|
+
A("Jam video URL must start with http:// or https://.");
|
|
122
124
|
return;
|
|
123
125
|
}
|
|
124
126
|
if (!e && !t && !n) {
|
|
125
|
-
|
|
127
|
+
A("Please provide at least a repo URL, video URL, or notes.");
|
|
126
128
|
return;
|
|
127
129
|
}
|
|
128
130
|
try {
|
|
129
|
-
await
|
|
131
|
+
await P({ variables: { input: {
|
|
130
132
|
roundId: a.id,
|
|
131
133
|
repoUrl: e,
|
|
132
134
|
videoUrl: t,
|
|
133
135
|
notes: n
|
|
134
136
|
} } });
|
|
135
137
|
} catch (e) {
|
|
136
|
-
console.error("Failed to record assignment submission:", e),
|
|
138
|
+
console.error("Failed to record assignment submission:", e), A("Failed to record submission.");
|
|
137
139
|
}
|
|
138
|
-
},
|
|
139
|
-
W(),
|
|
140
|
-
},
|
|
141
|
-
|
|
140
|
+
}, Ce = () => {
|
|
141
|
+
W(), m(!0);
|
|
142
|
+
}, Ee = (e) => {
|
|
143
|
+
ue(e), v(e.interviewerId), fe(e.rating?.toString() ?? ""), me(e.verdict ?? ""), b(e.internalNotes ?? ""), m(!0);
|
|
142
144
|
};
|
|
143
145
|
return /* @__PURE__ */ X("div", {
|
|
144
146
|
className: "border border-border-default rounded-lg p-4 space-y-4",
|
|
@@ -164,18 +166,18 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
164
166
|
]
|
|
165
167
|
}), a.scheduledAt && /* @__PURE__ */ X("p", {
|
|
166
168
|
className: "text-xs text-text-secondary flex items-center gap-1",
|
|
167
|
-
children: [/* @__PURE__ */ Y(
|
|
169
|
+
children: [/* @__PURE__ */ Y(j, { size: 12 }), Q(a.scheduledAt)]
|
|
168
170
|
})] }), /* @__PURE__ */ X("div", {
|
|
169
171
|
className: "flex items-center gap-2",
|
|
170
172
|
children: [/* @__PURE__ */ X(t, {
|
|
171
173
|
variant: "outline",
|
|
172
174
|
size: "sm",
|
|
173
|
-
onClick:
|
|
174
|
-
children: [/* @__PURE__ */ Y(
|
|
175
|
+
onClick: ne,
|
|
176
|
+
children: [/* @__PURE__ */ Y(we, { size: 14 }), "Assign"]
|
|
175
177
|
}), /* @__PURE__ */ X(t, {
|
|
176
178
|
variant: "outline",
|
|
177
179
|
size: "sm",
|
|
178
|
-
onClick:
|
|
180
|
+
onClick: oe,
|
|
179
181
|
children: [/* @__PURE__ */ Y(G, { size: 14 }), "Message"]
|
|
180
182
|
})]
|
|
181
183
|
})]
|
|
@@ -201,10 +203,10 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
201
203
|
}),
|
|
202
204
|
/* @__PURE__ */ Y("button", {
|
|
203
205
|
type: "button",
|
|
204
|
-
onClick: () =>
|
|
206
|
+
onClick: () => re(a.id, t.interviewer.id),
|
|
205
207
|
className: "p-0.5 rounded-full hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
|
|
206
208
|
title: "Remove interviewer",
|
|
207
|
-
children: /* @__PURE__ */ Y(
|
|
209
|
+
children: /* @__PURE__ */ Y(Te, { size: 12 })
|
|
208
210
|
})
|
|
209
211
|
]
|
|
210
212
|
}, t.id))
|
|
@@ -227,27 +229,27 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
227
229
|
})
|
|
228
230
|
]
|
|
229
231
|
}),
|
|
230
|
-
|
|
232
|
+
L && /* @__PURE__ */ X(n, {
|
|
231
233
|
className: "border border-border-default bg-bg-surface",
|
|
232
234
|
children: [/* @__PURE__ */ Y(i, {
|
|
233
235
|
className: "pb-2",
|
|
234
236
|
children: /* @__PURE__ */ X(ee, {
|
|
235
237
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
236
|
-
children: [/* @__PURE__ */ Y(
|
|
238
|
+
children: [/* @__PURE__ */ Y(z, { size: 14 }), "Assignment"]
|
|
237
239
|
})
|
|
238
240
|
}), /* @__PURE__ */ X(r, {
|
|
239
241
|
className: "space-y-3",
|
|
240
|
-
children: [
|
|
242
|
+
children: [ye && /* @__PURE__ */ X("div", {
|
|
241
243
|
className: "p-2.5 rounded-lg bg-status-error-bg-subtle border border-border-subtle text-sm text-status-error-text flex items-center gap-2",
|
|
242
|
-
children: [/* @__PURE__ */ Y(
|
|
243
|
-
}), !
|
|
244
|
+
children: [/* @__PURE__ */ Y(D, { size: 14 }), ye]
|
|
245
|
+
}), !R && !be ? /* @__PURE__ */ X(t, {
|
|
244
246
|
size: "sm",
|
|
245
|
-
onClick:
|
|
246
|
-
disabled:
|
|
247
|
-
children: [
|
|
247
|
+
onClick: xe,
|
|
248
|
+
disabled: N,
|
|
249
|
+
children: [N ? /* @__PURE__ */ Y(U, {
|
|
248
250
|
size: 14,
|
|
249
251
|
className: "animate-spin mr-1"
|
|
250
|
-
}) : /* @__PURE__ */ Y(
|
|
252
|
+
}) : /* @__PURE__ */ Y(Se, { size: 14 }), "Randomize & Send Assignment"]
|
|
251
253
|
}) : /* @__PURE__ */ X("div", {
|
|
252
254
|
className: "space-y-4",
|
|
253
255
|
children: [a.assignment && /* @__PURE__ */ X("div", {
|
|
@@ -257,9 +259,9 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
257
259
|
className: "text-sm font-semibold text-text-primary",
|
|
258
260
|
children: a.assignment.title
|
|
259
261
|
}),
|
|
260
|
-
/* @__PURE__ */ Y("
|
|
261
|
-
className: "text-sm text-text-secondary
|
|
262
|
-
|
|
262
|
+
/* @__PURE__ */ Y("div", {
|
|
263
|
+
className: "support-richtext text-sm text-text-secondary",
|
|
264
|
+
dangerouslySetInnerHTML: { __html: w.sanitize(a.assignment.description) }
|
|
263
265
|
}),
|
|
264
266
|
V && /* @__PURE__ */ X("p", {
|
|
265
267
|
className: "text-[11px] text-text-secondary",
|
|
@@ -269,31 +271,31 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
269
271
|
}), B && /* @__PURE__ */ X("div", {
|
|
270
272
|
className: "space-y-3",
|
|
271
273
|
children: [
|
|
272
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
274
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
273
275
|
htmlFor: `assignment-repo-${a.id}`,
|
|
274
276
|
children: "GitHub Repo URL"
|
|
275
|
-
}), /* @__PURE__ */ Y(
|
|
277
|
+
}), /* @__PURE__ */ Y(ie, {
|
|
276
278
|
id: `assignment-repo-${a.id}`,
|
|
277
|
-
value:
|
|
278
|
-
onChange: (e) =>
|
|
279
|
+
value: C,
|
|
280
|
+
onChange: (e) => ge(e.target.value),
|
|
279
281
|
placeholder: "https://github.com/…"
|
|
280
282
|
})] }),
|
|
281
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
283
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
282
284
|
htmlFor: `assignment-video-${a.id}`,
|
|
283
285
|
children: "Jam Video URL"
|
|
284
|
-
}), /* @__PURE__ */ Y(
|
|
286
|
+
}), /* @__PURE__ */ Y(ie, {
|
|
285
287
|
id: `assignment-video-${a.id}`,
|
|
286
|
-
value:
|
|
287
|
-
onChange: (e) =>
|
|
288
|
+
value: T,
|
|
289
|
+
onChange: (e) => ve(e.target.value),
|
|
288
290
|
placeholder: "https://jam.dev/…"
|
|
289
291
|
})] }),
|
|
290
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
292
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
291
293
|
htmlFor: `assignment-notes-${a.id}`,
|
|
292
294
|
children: "Notes"
|
|
293
|
-
}), /* @__PURE__ */ Y(
|
|
295
|
+
}), /* @__PURE__ */ Y(ae, {
|
|
294
296
|
id: `assignment-notes-${a.id}`,
|
|
295
|
-
value:
|
|
296
|
-
onChange: (e) =>
|
|
297
|
+
value: O,
|
|
298
|
+
onChange: (e) => k(e.target.value),
|
|
297
299
|
placeholder: "Add submission notes…",
|
|
298
300
|
rows: 3
|
|
299
301
|
})] }),
|
|
@@ -301,8 +303,8 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
301
303
|
className: "flex items-center justify-end",
|
|
302
304
|
children: /* @__PURE__ */ X(t, {
|
|
303
305
|
size: "sm",
|
|
304
|
-
onClick:
|
|
305
|
-
disabled: F || !
|
|
306
|
+
onClick: K,
|
|
307
|
+
disabled: F || !C.trim() && !T.trim() && !O.trim(),
|
|
306
308
|
children: [F ? /* @__PURE__ */ Y(U, {
|
|
307
309
|
size: 14,
|
|
308
310
|
className: "animate-spin mr-1"
|
|
@@ -322,11 +324,11 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
322
324
|
children: [/* @__PURE__ */ Y("p", {
|
|
323
325
|
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
324
326
|
children: "Feedback"
|
|
325
|
-
}), !
|
|
327
|
+
}), !le && /* @__PURE__ */ X(t, {
|
|
326
328
|
variant: "ghost",
|
|
327
329
|
size: "sm",
|
|
328
|
-
onClick:
|
|
329
|
-
children: [/* @__PURE__ */ Y(
|
|
330
|
+
onClick: Ce,
|
|
331
|
+
children: [/* @__PURE__ */ Y(q, { size: 14 }), "Add Feedback"]
|
|
330
332
|
})]
|
|
331
333
|
}),
|
|
332
334
|
a.feedback.length > 0 && /* @__PURE__ */ Y("div", {
|
|
@@ -342,18 +344,18 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
342
344
|
className: "flex items-center gap-2 mt-1",
|
|
343
345
|
children: [n.rating && /* @__PURE__ */ Y("span", {
|
|
344
346
|
className: "inline-flex items-center gap-0.5 text-xs text-status-warning-text",
|
|
345
|
-
children: Array.from({ length: n.rating }).map((e, t) => /* @__PURE__ */ Y(
|
|
347
|
+
children: Array.from({ length: n.rating }).map((e, t) => /* @__PURE__ */ Y(J, {
|
|
346
348
|
size: 12,
|
|
347
349
|
fill: "currentColor"
|
|
348
350
|
}, t))
|
|
349
351
|
}), n.verdict && /* @__PURE__ */ Y(e, {
|
|
350
|
-
className: `${
|
|
352
|
+
className: `${Be(n.verdict)} text-xs`,
|
|
351
353
|
children: $(n.verdict)
|
|
352
354
|
})]
|
|
353
355
|
})] }), /* @__PURE__ */ Y(t, {
|
|
354
356
|
variant: "ghost",
|
|
355
357
|
size: "sm",
|
|
356
|
-
onClick: () =>
|
|
358
|
+
onClick: () => Ee(n),
|
|
357
359
|
children: /* @__PURE__ */ Y(I, { size: 14 })
|
|
358
360
|
})]
|
|
359
361
|
}), n.internalNotes && /* @__PURE__ */ Y("p", {
|
|
@@ -362,70 +364,70 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
362
364
|
})]
|
|
363
365
|
}, n.id))
|
|
364
366
|
}),
|
|
365
|
-
|
|
367
|
+
le && /* @__PURE__ */ X("div", {
|
|
366
368
|
className: "p-3 rounded-lg border border-border-default bg-bg-surface space-y-3",
|
|
367
369
|
children: [
|
|
368
|
-
!
|
|
370
|
+
!h && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
369
371
|
htmlFor: `feedback-interviewer-${a.id}`,
|
|
370
372
|
children: "Interviewer"
|
|
371
|
-
}), /* @__PURE__ */ X(
|
|
372
|
-
value:
|
|
373
|
-
onValueChange:
|
|
374
|
-
children: [/* @__PURE__ */ Y(
|
|
373
|
+
}), /* @__PURE__ */ X(l, {
|
|
374
|
+
value: g,
|
|
375
|
+
onValueChange: v,
|
|
376
|
+
children: [/* @__PURE__ */ Y(f, {
|
|
375
377
|
id: `feedback-interviewer-${a.id}`,
|
|
376
|
-
children: /* @__PURE__ */ Y(
|
|
377
|
-
}), /* @__PURE__ */ Y(
|
|
378
|
+
children: /* @__PURE__ */ Y(p, { placeholder: "Select interviewer" })
|
|
379
|
+
}), /* @__PURE__ */ Y(u, { children: s ? /* @__PURE__ */ Y(d, {
|
|
378
380
|
value: "loading",
|
|
379
381
|
disabled: !0,
|
|
380
382
|
children: "Loading…"
|
|
381
|
-
}) :
|
|
383
|
+
}) : o.map((e) => /* @__PURE__ */ Y(d, {
|
|
382
384
|
value: e.id,
|
|
383
385
|
children: e.name
|
|
384
386
|
}, e.id)) })]
|
|
385
387
|
})] }),
|
|
386
388
|
/* @__PURE__ */ X("div", {
|
|
387
389
|
className: "grid grid-cols-2 gap-3",
|
|
388
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
390
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
389
391
|
htmlFor: `feedback-rating-${a.id}`,
|
|
390
392
|
children: "Rating"
|
|
391
|
-
}), /* @__PURE__ */ X(
|
|
392
|
-
value:
|
|
393
|
-
onValueChange:
|
|
394
|
-
children: [/* @__PURE__ */ Y(
|
|
393
|
+
}), /* @__PURE__ */ X(l, {
|
|
394
|
+
value: y,
|
|
395
|
+
onValueChange: fe,
|
|
396
|
+
children: [/* @__PURE__ */ Y(f, {
|
|
395
397
|
id: `feedback-rating-${a.id}`,
|
|
396
|
-
children: /* @__PURE__ */ Y(
|
|
397
|
-
}), /* @__PURE__ */ Y(
|
|
398
|
+
children: /* @__PURE__ */ Y(p, { placeholder: "1–5" })
|
|
399
|
+
}), /* @__PURE__ */ Y(u, { children: [
|
|
398
400
|
1,
|
|
399
401
|
2,
|
|
400
402
|
3,
|
|
401
403
|
4,
|
|
402
404
|
5
|
|
403
|
-
].map((e) => /* @__PURE__ */ Y(
|
|
405
|
+
].map((e) => /* @__PURE__ */ Y(d, {
|
|
404
406
|
value: String(e),
|
|
405
407
|
children: e
|
|
406
408
|
}, e)) })]
|
|
407
|
-
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
409
|
+
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
408
410
|
htmlFor: `feedback-verdict-${a.id}`,
|
|
409
411
|
children: "Verdict"
|
|
410
|
-
}), /* @__PURE__ */ X(
|
|
411
|
-
value:
|
|
412
|
-
onValueChange: (e) =>
|
|
413
|
-
children: [/* @__PURE__ */ Y(
|
|
412
|
+
}), /* @__PURE__ */ X(l, {
|
|
413
|
+
value: pe,
|
|
414
|
+
onValueChange: (e) => me(e),
|
|
415
|
+
children: [/* @__PURE__ */ Y(f, {
|
|
414
416
|
id: `feedback-verdict-${a.id}`,
|
|
415
|
-
children: /* @__PURE__ */ Y(
|
|
416
|
-
}), /* @__PURE__ */ Y(
|
|
417
|
+
children: /* @__PURE__ */ Y(p, { placeholder: "Verdict" })
|
|
418
|
+
}), /* @__PURE__ */ Y(u, { children: Object.values(S).map((e) => /* @__PURE__ */ Y(d, {
|
|
417
419
|
value: e,
|
|
418
420
|
children: $(e)
|
|
419
421
|
}, e)) })]
|
|
420
422
|
})] })]
|
|
421
423
|
}),
|
|
422
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
424
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
423
425
|
htmlFor: `feedback-notes-${a.id}`,
|
|
424
426
|
children: "Internal Notes"
|
|
425
|
-
}), /* @__PURE__ */ Y(
|
|
427
|
+
}), /* @__PURE__ */ Y(ae, {
|
|
426
428
|
id: `feedback-notes-${a.id}`,
|
|
427
|
-
value:
|
|
428
|
-
onChange: (e) =>
|
|
429
|
+
value: he,
|
|
430
|
+
onChange: (e) => b(e.target.value),
|
|
429
431
|
placeholder: "Add private notes about this round…",
|
|
430
432
|
rows: 3
|
|
431
433
|
})] }),
|
|
@@ -435,31 +437,31 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
435
437
|
variant: "outline",
|
|
436
438
|
size: "sm",
|
|
437
439
|
onClick: () => {
|
|
438
|
-
W(),
|
|
440
|
+
W(), m(!1);
|
|
439
441
|
},
|
|
440
442
|
children: "Cancel"
|
|
441
443
|
}), /* @__PURE__ */ Y(t, {
|
|
442
444
|
size: "sm",
|
|
443
445
|
onClick: async () => {
|
|
444
|
-
let e =
|
|
445
|
-
if (
|
|
446
|
+
let e = y ? parseInt(y, 10) : void 0, t = pe || void 0, n = he.trim() || void 0;
|
|
447
|
+
if (h) await ce(h.id, {
|
|
446
448
|
rating: e,
|
|
447
449
|
verdict: t,
|
|
448
450
|
internalNotes: n
|
|
449
451
|
});
|
|
450
452
|
else {
|
|
451
|
-
if (!
|
|
452
|
-
await
|
|
453
|
-
interviewerId:
|
|
453
|
+
if (!g) return;
|
|
454
|
+
await se(a.id, {
|
|
455
|
+
interviewerId: g,
|
|
454
456
|
rating: e,
|
|
455
457
|
verdict: t,
|
|
456
458
|
internalNotes: n
|
|
457
459
|
});
|
|
458
460
|
}
|
|
459
|
-
W(),
|
|
461
|
+
W(), m(!1);
|
|
460
462
|
},
|
|
461
|
-
disabled: !
|
|
462
|
-
children:
|
|
463
|
+
disabled: !h && !g,
|
|
464
|
+
children: h ? "Update Feedback" : "Submit Feedback"
|
|
463
465
|
})]
|
|
464
466
|
})
|
|
465
467
|
]
|
|
@@ -469,71 +471,71 @@ function Ve({ round: a, applicationId: o, interviewers: s, interviewersLoading:
|
|
|
469
471
|
]
|
|
470
472
|
});
|
|
471
473
|
}
|
|
472
|
-
function
|
|
473
|
-
let { data: r, loading: i, error: ee } =
|
|
474
|
+
function Ue({ applicationId: e, jobPostingId: n }) {
|
|
475
|
+
let { data: r, loading: i, error: ee } = le({ variables: { applicationId: e } }), { data: m, loading: h } = g({
|
|
474
476
|
variables: { id: n ?? "" },
|
|
475
477
|
skip: !n
|
|
476
|
-
}), { data:
|
|
478
|
+
}), { data: ue, loading: _ } = ce({ variables: { limit: 200 } }), [de, { loading: y }] = se({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [he, { loading: S }] = oe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [w] = v({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ge, { loading: T }] = fe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [_e] = pe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ve] = me({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), O = r?.jobApplicationInterviewRounds ?? [], k = ue?.interviewers.items ?? [], ye = m?.jobPosting?.rounds ?? [], [A, j] = E(!1), [M, N] = E(Z), [P, F] = E({
|
|
477
479
|
name: "",
|
|
478
|
-
roundType:
|
|
479
|
-
status:
|
|
480
|
+
roundType: x.PhoneScreen,
|
|
481
|
+
status: b.Scheduled,
|
|
480
482
|
scheduledAt: ""
|
|
481
|
-
}), [
|
|
482
|
-
|
|
483
|
+
}), [I, L] = E(null), [R, z] = E([]), [be, B] = E(C.Panel), [V, H] = E(null), [W, G] = E(""), [xe, K] = E(null), Se = ye.filter((e) => !O.some((t) => t.roundConfigId === e.id)), J = () => {
|
|
484
|
+
N(Z), F({
|
|
483
485
|
name: "",
|
|
484
|
-
roundType:
|
|
485
|
-
status:
|
|
486
|
+
roundType: x.PhoneScreen,
|
|
487
|
+
status: b.Scheduled,
|
|
486
488
|
scheduledAt: ""
|
|
487
489
|
});
|
|
488
490
|
}, Ce = (e) => {
|
|
489
|
-
if (
|
|
490
|
-
|
|
491
|
+
if (N(e), e === Z) {
|
|
492
|
+
F((e) => ({
|
|
491
493
|
...e,
|
|
492
494
|
name: ""
|
|
493
495
|
}));
|
|
494
496
|
return;
|
|
495
497
|
}
|
|
496
|
-
let t =
|
|
497
|
-
t &&
|
|
498
|
+
let t = ye.find((t) => t.id === e);
|
|
499
|
+
t && F((e) => ({
|
|
498
500
|
...e,
|
|
499
501
|
name: t.name,
|
|
500
502
|
roundType: t.roundType
|
|
501
503
|
}));
|
|
502
504
|
}, we = () => {
|
|
503
|
-
let e =
|
|
504
|
-
e ? (
|
|
505
|
+
let e = Se[0];
|
|
506
|
+
e ? (N(e.id), F({
|
|
505
507
|
name: e.name,
|
|
506
508
|
roundType: e.roundType,
|
|
507
|
-
status:
|
|
509
|
+
status: b.Scheduled,
|
|
508
510
|
scheduledAt: ""
|
|
509
|
-
})) : J(),
|
|
510
|
-
},
|
|
511
|
-
if (
|
|
511
|
+
})) : J(), j(!0);
|
|
512
|
+
}, Te = async () => {
|
|
513
|
+
if (P.name.trim()) {
|
|
512
514
|
K(null);
|
|
513
515
|
try {
|
|
514
|
-
await
|
|
516
|
+
await de({ variables: { input: {
|
|
515
517
|
applicationId: e,
|
|
516
|
-
roundConfigId:
|
|
517
|
-
name:
|
|
518
|
-
roundType:
|
|
519
|
-
status:
|
|
520
|
-
scheduledAt:
|
|
521
|
-
} } }), J(),
|
|
518
|
+
roundConfigId: M === Z ? void 0 : M,
|
|
519
|
+
name: P.name.trim(),
|
|
520
|
+
roundType: P.roundType,
|
|
521
|
+
status: P.status,
|
|
522
|
+
scheduledAt: P.scheduledAt || void 0
|
|
523
|
+
} } }), J(), j(!1);
|
|
522
524
|
} catch (e) {
|
|
523
525
|
console.error("Failed to create interview round:", e), K("Failed to create interview round.");
|
|
524
526
|
}
|
|
525
527
|
}
|
|
526
528
|
}, De = async () => {
|
|
527
|
-
if (!(!
|
|
529
|
+
if (!(!I || R.length === 0)) {
|
|
528
530
|
K(null);
|
|
529
531
|
try {
|
|
530
|
-
await
|
|
531
|
-
roundId:
|
|
532
|
+
await he({ variables: { input: {
|
|
533
|
+
roundId: I,
|
|
532
534
|
assignments: R.map((e) => ({
|
|
533
535
|
interviewerId: e,
|
|
534
|
-
role:
|
|
536
|
+
role: be
|
|
535
537
|
}))
|
|
536
|
-
} } }), z([]),
|
|
538
|
+
} } }), z([]), B(C.Panel), L(null);
|
|
537
539
|
} catch (e) {
|
|
538
540
|
console.error("Failed to assign interviewers:", e), K("Failed to assign interviewers.");
|
|
539
541
|
}
|
|
@@ -541,7 +543,7 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
541
543
|
}, Oe = async (e, t) => {
|
|
542
544
|
K(null);
|
|
543
545
|
try {
|
|
544
|
-
await
|
|
546
|
+
await w({ variables: {
|
|
545
547
|
roundId: e,
|
|
546
548
|
interviewerId: t
|
|
547
549
|
} });
|
|
@@ -549,13 +551,13 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
549
551
|
console.error("Failed to remove interviewer:", e), K("Failed to remove interviewer.");
|
|
550
552
|
}
|
|
551
553
|
}, ke = async () => {
|
|
552
|
-
if (!(!
|
|
554
|
+
if (!(!V || !W.trim())) {
|
|
553
555
|
K(null);
|
|
554
556
|
try {
|
|
555
|
-
await
|
|
556
|
-
roundId:
|
|
557
|
-
message:
|
|
558
|
-
} } }),
|
|
557
|
+
await ge({ variables: { input: {
|
|
558
|
+
roundId: V,
|
|
559
|
+
message: W.trim()
|
|
560
|
+
} } }), G(""), H(null);
|
|
559
561
|
} catch (e) {
|
|
560
562
|
console.error("Failed to send candidate message:", e), K("Failed to send candidate message.");
|
|
561
563
|
}
|
|
@@ -563,7 +565,7 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
563
565
|
}, Ae = async (e, t) => {
|
|
564
566
|
K(null);
|
|
565
567
|
try {
|
|
566
|
-
await
|
|
568
|
+
await _e({ variables: { input: {
|
|
567
569
|
roundId: e,
|
|
568
570
|
...t
|
|
569
571
|
} } });
|
|
@@ -573,7 +575,7 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
573
575
|
}, je = async (e, t) => {
|
|
574
576
|
K(null);
|
|
575
577
|
try {
|
|
576
|
-
await
|
|
578
|
+
await ve({ variables: {
|
|
577
579
|
id: e,
|
|
578
580
|
input: t
|
|
579
581
|
} });
|
|
@@ -588,18 +590,18 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
588
590
|
className: "px-5 py-3.5 border-b border-border-default bg-bg-muted/50 flex items-center justify-between",
|
|
589
591
|
children: [/* @__PURE__ */ X("h2", {
|
|
590
592
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
591
|
-
children: [/* @__PURE__ */ Y(
|
|
593
|
+
children: [/* @__PURE__ */ Y(Ee, { size: 14 }), "Interview Rounds"]
|
|
592
594
|
}), /* @__PURE__ */ X(t, {
|
|
593
595
|
size: "sm",
|
|
594
596
|
onClick: we,
|
|
595
|
-
children: [/* @__PURE__ */ Y(
|
|
597
|
+
children: [/* @__PURE__ */ Y(q, { size: 14 }), "Add Round"]
|
|
596
598
|
})]
|
|
597
599
|
}),
|
|
598
600
|
/* @__PURE__ */ X("div", {
|
|
599
601
|
className: "p-5",
|
|
600
602
|
children: [xe && /* @__PURE__ */ X("div", {
|
|
601
603
|
className: "mb-4 p-3 rounded-lg bg-status-error-bg-subtle border border-border-subtle text-sm text-status-error-text flex items-center gap-2",
|
|
602
|
-
children: [/* @__PURE__ */ Y(
|
|
604
|
+
children: [/* @__PURE__ */ Y(D, { size: 16 }), xe]
|
|
603
605
|
}), i ? /* @__PURE__ */ X("div", {
|
|
604
606
|
className: "flex items-center gap-2 text-sm text-text-secondary py-4",
|
|
605
607
|
children: [/* @__PURE__ */ Y(U, {
|
|
@@ -608,23 +610,23 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
608
610
|
}), "Loading interview rounds…"]
|
|
609
611
|
}) : ee ? /* @__PURE__ */ X("div", {
|
|
610
612
|
className: "p-3 rounded-lg bg-status-error-bg-subtle text-status-error-text text-sm flex items-center gap-2",
|
|
611
|
-
children: [/* @__PURE__ */ Y(
|
|
612
|
-
}) :
|
|
613
|
+
children: [/* @__PURE__ */ Y(D, { size: 16 }), "Could not load interview rounds."]
|
|
614
|
+
}) : O.length === 0 ? /* @__PURE__ */ Y("p", {
|
|
613
615
|
className: "text-sm text-text-secondary",
|
|
614
616
|
children: "No interview rounds yet."
|
|
615
617
|
}) : /* @__PURE__ */ Y("div", {
|
|
616
618
|
className: "space-y-5",
|
|
617
|
-
children:
|
|
619
|
+
children: O.map((t) => /* @__PURE__ */ Y(He, {
|
|
618
620
|
round: t,
|
|
619
621
|
applicationId: e,
|
|
620
|
-
interviewers:
|
|
621
|
-
interviewersLoading:
|
|
622
|
+
interviewers: k,
|
|
623
|
+
interviewersLoading: _,
|
|
622
624
|
onAssign: () => {
|
|
623
|
-
L(t.id), z([]),
|
|
625
|
+
L(t.id), z([]), B(C.Panel);
|
|
624
626
|
},
|
|
625
627
|
onRemoveInterviewer: Oe,
|
|
626
628
|
onSendMessage: () => {
|
|
627
|
-
|
|
629
|
+
H(t.id), G("");
|
|
628
630
|
},
|
|
629
631
|
onSubmitFeedback: Ae,
|
|
630
632
|
onUpdateFeedback: je
|
|
@@ -632,30 +634,30 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
632
634
|
})]
|
|
633
635
|
}),
|
|
634
636
|
/* @__PURE__ */ Y(a, {
|
|
635
|
-
open:
|
|
637
|
+
open: A,
|
|
636
638
|
onOpenChange: (e) => {
|
|
637
|
-
|
|
639
|
+
j(e), e || J();
|
|
638
640
|
},
|
|
639
|
-
children: /* @__PURE__ */ X(
|
|
641
|
+
children: /* @__PURE__ */ X(te, {
|
|
640
642
|
className: "sm:max-w-md",
|
|
641
643
|
children: [
|
|
642
|
-
/* @__PURE__ */ X(
|
|
644
|
+
/* @__PURE__ */ X(ne, { children: [/* @__PURE__ */ Y(re, { children: "Add Interview Round" }), /* @__PURE__ */ Y(o, { children: "Schedule a new round for this candidate." })] }),
|
|
643
645
|
/* @__PURE__ */ X("div", {
|
|
644
646
|
className: "space-y-4 py-2",
|
|
645
647
|
children: [
|
|
646
648
|
n && /* @__PURE__ */ X("div", { children: [
|
|
647
|
-
/* @__PURE__ */ Y(
|
|
649
|
+
/* @__PURE__ */ Y(c, {
|
|
648
650
|
htmlFor: "round-config",
|
|
649
651
|
children: "Posting round"
|
|
650
652
|
}),
|
|
651
|
-
/* @__PURE__ */ X(
|
|
652
|
-
value:
|
|
653
|
+
/* @__PURE__ */ X(l, {
|
|
654
|
+
value: M,
|
|
653
655
|
onValueChange: Ce,
|
|
654
|
-
disabled:
|
|
655
|
-
children: [/* @__PURE__ */ Y(
|
|
656
|
+
disabled: h,
|
|
657
|
+
children: [/* @__PURE__ */ Y(f, {
|
|
656
658
|
id: "round-config",
|
|
657
|
-
children: /* @__PURE__ */ Y(
|
|
658
|
-
}), /* @__PURE__ */ X(
|
|
659
|
+
children: /* @__PURE__ */ Y(p, { placeholder: "Select a configured round" })
|
|
660
|
+
}), /* @__PURE__ */ X(u, { children: [Se.map((e) => /* @__PURE__ */ X(d, {
|
|
659
661
|
value: e.id,
|
|
660
662
|
children: [
|
|
661
663
|
"Round ",
|
|
@@ -663,7 +665,7 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
663
665
|
" — ",
|
|
664
666
|
e.name
|
|
665
667
|
]
|
|
666
|
-
}, e.id)), /* @__PURE__ */ Y(
|
|
668
|
+
}, e.id)), /* @__PURE__ */ Y(d, {
|
|
667
669
|
value: Z,
|
|
668
670
|
children: "Custom round"
|
|
669
671
|
})] })]
|
|
@@ -673,78 +675,78 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
673
675
|
children: "Configured rounds stay linked to posting-level bulk actions."
|
|
674
676
|
})
|
|
675
677
|
] }),
|
|
676
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
678
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
677
679
|
htmlFor: "round-name",
|
|
678
680
|
children: "Name"
|
|
679
|
-
}), /* @__PURE__ */ Y(
|
|
681
|
+
}), /* @__PURE__ */ Y(ie, {
|
|
680
682
|
id: "round-name",
|
|
681
|
-
value:
|
|
682
|
-
onChange: (e) =>
|
|
683
|
+
value: P.name,
|
|
684
|
+
onChange: (e) => F((t) => ({
|
|
683
685
|
...t,
|
|
684
686
|
name: e.target.value
|
|
685
687
|
})),
|
|
686
688
|
placeholder: "e.g. Technical Interview",
|
|
687
|
-
disabled:
|
|
689
|
+
disabled: M !== Z
|
|
688
690
|
})] }),
|
|
689
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
691
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
690
692
|
htmlFor: "round-type",
|
|
691
693
|
children: "Round Type"
|
|
692
|
-
}), /* @__PURE__ */ X(
|
|
693
|
-
value:
|
|
694
|
-
onValueChange: (e) =>
|
|
694
|
+
}), /* @__PURE__ */ X(l, {
|
|
695
|
+
value: P.roundType,
|
|
696
|
+
onValueChange: (e) => F((t) => ({
|
|
695
697
|
...t,
|
|
696
698
|
roundType: e
|
|
697
699
|
})),
|
|
698
|
-
disabled:
|
|
699
|
-
children: [/* @__PURE__ */ Y(
|
|
700
|
+
disabled: M !== Z,
|
|
701
|
+
children: [/* @__PURE__ */ Y(f, {
|
|
700
702
|
id: "round-type",
|
|
701
|
-
children: /* @__PURE__ */ Y(
|
|
702
|
-
}), /* @__PURE__ */ Y(
|
|
703
|
+
children: /* @__PURE__ */ Y(p, {})
|
|
704
|
+
}), /* @__PURE__ */ Y(u, { children: Object.values(x).map((e) => /* @__PURE__ */ Y(d, {
|
|
703
705
|
value: e,
|
|
704
706
|
children: $(e)
|
|
705
707
|
}, e)) })]
|
|
706
708
|
})] }),
|
|
707
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
709
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
708
710
|
htmlFor: "round-status",
|
|
709
711
|
children: "Status"
|
|
710
|
-
}), /* @__PURE__ */ X(
|
|
711
|
-
value:
|
|
712
|
-
onValueChange: (e) =>
|
|
712
|
+
}), /* @__PURE__ */ X(l, {
|
|
713
|
+
value: P.status,
|
|
714
|
+
onValueChange: (e) => F((t) => ({
|
|
713
715
|
...t,
|
|
714
716
|
status: e
|
|
715
717
|
})),
|
|
716
|
-
children: [/* @__PURE__ */ Y(
|
|
718
|
+
children: [/* @__PURE__ */ Y(f, {
|
|
717
719
|
id: "round-status",
|
|
718
|
-
children: /* @__PURE__ */ Y(
|
|
719
|
-
}), /* @__PURE__ */ Y(
|
|
720
|
+
children: /* @__PURE__ */ Y(p, {})
|
|
721
|
+
}), /* @__PURE__ */ Y(u, { children: Object.values(b).map((e) => /* @__PURE__ */ Y(d, {
|
|
720
722
|
value: e,
|
|
721
723
|
children: $(e)
|
|
722
724
|
}, e)) })]
|
|
723
725
|
})] }),
|
|
724
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
726
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
725
727
|
htmlFor: "round-scheduled",
|
|
726
728
|
children: "Scheduled At"
|
|
727
|
-
}), /* @__PURE__ */ Y(
|
|
729
|
+
}), /* @__PURE__ */ Y(ie, {
|
|
728
730
|
id: "round-scheduled",
|
|
729
731
|
type: "datetime-local",
|
|
730
|
-
value:
|
|
731
|
-
onChange: (e) =>
|
|
732
|
+
value: P.scheduledAt,
|
|
733
|
+
onChange: (e) => F((t) => ({
|
|
732
734
|
...t,
|
|
733
735
|
scheduledAt: e.target.value
|
|
734
736
|
}))
|
|
735
737
|
})] })
|
|
736
738
|
]
|
|
737
739
|
}),
|
|
738
|
-
/* @__PURE__ */ X(
|
|
740
|
+
/* @__PURE__ */ X(s, { children: [/* @__PURE__ */ Y(t, {
|
|
739
741
|
variant: "outline",
|
|
740
742
|
onClick: () => {
|
|
741
|
-
|
|
743
|
+
j(!1), J();
|
|
742
744
|
},
|
|
743
745
|
children: "Cancel"
|
|
744
746
|
}), /* @__PURE__ */ X(t, {
|
|
745
|
-
onClick:
|
|
746
|
-
disabled:
|
|
747
|
-
children: [
|
|
747
|
+
onClick: Te,
|
|
748
|
+
disabled: y || !P.name.trim(),
|
|
749
|
+
children: [y ? /* @__PURE__ */ Y(U, {
|
|
748
750
|
size: 14,
|
|
749
751
|
className: "animate-spin mr-1"
|
|
750
752
|
}) : null, "Create Round"]
|
|
@@ -753,39 +755,39 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
753
755
|
})
|
|
754
756
|
}),
|
|
755
757
|
/* @__PURE__ */ Y(a, {
|
|
756
|
-
open: !!
|
|
758
|
+
open: !!I,
|
|
757
759
|
onOpenChange: (e) => !e && L(null),
|
|
758
|
-
children: /* @__PURE__ */ X(
|
|
760
|
+
children: /* @__PURE__ */ X(te, {
|
|
759
761
|
className: "sm:max-w-md",
|
|
760
762
|
children: [
|
|
761
|
-
/* @__PURE__ */ X(
|
|
763
|
+
/* @__PURE__ */ X(ne, { children: [/* @__PURE__ */ Y(re, { children: "Assign Interviewers" }), /* @__PURE__ */ Y(o, { children: "Choose interviewers and a role for this round." })] }),
|
|
762
764
|
/* @__PURE__ */ X("div", {
|
|
763
765
|
className: "space-y-4 py-2",
|
|
764
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
766
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, {
|
|
765
767
|
htmlFor: "assign-role",
|
|
766
768
|
children: "Role"
|
|
767
|
-
}), /* @__PURE__ */ X(
|
|
768
|
-
value:
|
|
769
|
-
onValueChange: (e) =>
|
|
770
|
-
children: [/* @__PURE__ */ Y(
|
|
769
|
+
}), /* @__PURE__ */ X(l, {
|
|
770
|
+
value: be,
|
|
771
|
+
onValueChange: (e) => B(e),
|
|
772
|
+
children: [/* @__PURE__ */ Y(f, {
|
|
771
773
|
id: "assign-role",
|
|
772
|
-
children: /* @__PURE__ */ Y(
|
|
773
|
-
}), /* @__PURE__ */ Y(
|
|
774
|
+
children: /* @__PURE__ */ Y(p, {})
|
|
775
|
+
}), /* @__PURE__ */ Y(u, { children: Object.values(C).map((e) => /* @__PURE__ */ Y(d, {
|
|
774
776
|
value: e,
|
|
775
777
|
children: $(e)
|
|
776
778
|
}, e)) })]
|
|
777
|
-
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
779
|
+
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(c, { children: "Interviewers" }), /* @__PURE__ */ Y("div", {
|
|
778
780
|
className: "mt-1.5 max-h-60 overflow-y-auto border border-border-default rounded-lg p-2 space-y-1",
|
|
779
|
-
children:
|
|
781
|
+
children: _ ? /* @__PURE__ */ X("div", {
|
|
780
782
|
className: "flex items-center gap-2 text-sm text-text-secondary py-2",
|
|
781
783
|
children: [/* @__PURE__ */ Y(U, {
|
|
782
784
|
size: 14,
|
|
783
785
|
className: "animate-spin"
|
|
784
786
|
}), "Loading…"]
|
|
785
|
-
}) :
|
|
787
|
+
}) : k.length === 0 ? /* @__PURE__ */ Y("p", {
|
|
786
788
|
className: "text-sm text-text-secondary py-2",
|
|
787
789
|
children: "No interviewers found."
|
|
788
|
-
}) :
|
|
790
|
+
}) : k.map((e) => /* @__PURE__ */ X("label", {
|
|
789
791
|
className: "flex items-start gap-2 p-2 rounded-md hover:bg-bg-muted cursor-pointer",
|
|
790
792
|
children: [/* @__PURE__ */ Y("input", {
|
|
791
793
|
type: "checkbox",
|
|
@@ -807,14 +809,14 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
807
809
|
}, e.id))
|
|
808
810
|
})] })]
|
|
809
811
|
}),
|
|
810
|
-
/* @__PURE__ */ X(
|
|
812
|
+
/* @__PURE__ */ X(s, { children: [/* @__PURE__ */ Y(t, {
|
|
811
813
|
variant: "outline",
|
|
812
814
|
onClick: () => L(null),
|
|
813
815
|
children: "Cancel"
|
|
814
816
|
}), /* @__PURE__ */ X(t, {
|
|
815
817
|
onClick: De,
|
|
816
|
-
disabled:
|
|
817
|
-
children: [
|
|
818
|
+
disabled: S || R.length === 0,
|
|
819
|
+
children: [S ? /* @__PURE__ */ Y(U, {
|
|
818
820
|
size: 14,
|
|
819
821
|
className: "animate-spin mr-1"
|
|
820
822
|
}) : null, "Assign"]
|
|
@@ -823,29 +825,29 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
823
825
|
})
|
|
824
826
|
}),
|
|
825
827
|
/* @__PURE__ */ Y(a, {
|
|
826
|
-
open: !!
|
|
827
|
-
onOpenChange: (e) => !e &&
|
|
828
|
-
children: /* @__PURE__ */ X(
|
|
828
|
+
open: !!V,
|
|
829
|
+
onOpenChange: (e) => !e && H(null),
|
|
830
|
+
children: /* @__PURE__ */ X(te, {
|
|
829
831
|
className: "sm:max-w-md",
|
|
830
832
|
children: [
|
|
831
|
-
/* @__PURE__ */ X(
|
|
833
|
+
/* @__PURE__ */ X(ne, { children: [/* @__PURE__ */ Y(re, { children: "Send Candidate Message" }), /* @__PURE__ */ Y(o, { children: "This message will be emailed to the candidate for this round." })] }),
|
|
832
834
|
/* @__PURE__ */ Y("div", {
|
|
833
835
|
className: "py-2",
|
|
834
|
-
children: /* @__PURE__ */ Y(
|
|
835
|
-
value:
|
|
836
|
-
onChange: (e) =>
|
|
836
|
+
children: /* @__PURE__ */ Y(ae, {
|
|
837
|
+
value: W,
|
|
838
|
+
onChange: (e) => G(e.target.value),
|
|
837
839
|
placeholder: "Type the message to send…",
|
|
838
840
|
rows: 5
|
|
839
841
|
})
|
|
840
842
|
}),
|
|
841
|
-
/* @__PURE__ */ X(
|
|
843
|
+
/* @__PURE__ */ X(s, { children: [/* @__PURE__ */ Y(t, {
|
|
842
844
|
variant: "outline",
|
|
843
|
-
onClick: () =>
|
|
845
|
+
onClick: () => H(null),
|
|
844
846
|
children: "Cancel"
|
|
845
847
|
}), /* @__PURE__ */ X(t, {
|
|
846
848
|
onClick: ke,
|
|
847
|
-
disabled:
|
|
848
|
-
children: [
|
|
849
|
+
disabled: T || !W.trim(),
|
|
850
|
+
children: [T ? /* @__PURE__ */ Y(U, {
|
|
849
851
|
size: 14,
|
|
850
852
|
className: "animate-spin mr-1"
|
|
851
853
|
}) : null, "Send Message"]
|
|
@@ -856,74 +858,74 @@ function He({ applicationId: e, jobPostingId: n }) {
|
|
|
856
858
|
]
|
|
857
859
|
});
|
|
858
860
|
}
|
|
859
|
-
function
|
|
860
|
-
let { id: e } =
|
|
861
|
+
function We() {
|
|
862
|
+
let { id: e } = Ae(), t = ke(), n = Oe().search, [r, i] = E(!1), [ee, s] = E(!1), [ie, c] = E(!1), [l, u] = E(!1), [d, f] = E(""), [p, ae] = E(!1), [oe, se] = E(null), { data: ce, loading: le, error: g } = m({
|
|
861
863
|
variables: { id: e },
|
|
862
864
|
skip: !e
|
|
863
|
-
}),
|
|
864
|
-
|
|
865
|
-
if (!
|
|
866
|
-
|
|
865
|
+
}), _ = ce?.jobApplication?.productId ?? null;
|
|
866
|
+
ve(() => {
|
|
867
|
+
if (!_) {
|
|
868
|
+
se(null);
|
|
867
869
|
return;
|
|
868
870
|
}
|
|
869
871
|
let e = !1;
|
|
870
|
-
return
|
|
872
|
+
return je({
|
|
871
873
|
gateway: "global",
|
|
872
874
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
873
|
-
variables: { id:
|
|
875
|
+
variables: { id: _ }
|
|
874
876
|
}).then((t) => {
|
|
875
877
|
if (e) return;
|
|
876
878
|
let n = t.data?.platformProduct?.name;
|
|
877
|
-
n &&
|
|
879
|
+
n && se(n);
|
|
878
880
|
}).catch(() => {}), () => {
|
|
879
881
|
e = !0;
|
|
880
882
|
};
|
|
881
|
-
}, [
|
|
882
|
-
let [
|
|
883
|
-
if (!(!
|
|
884
|
-
(await
|
|
883
|
+
}, [_]);
|
|
884
|
+
let [de, { loading: v }] = he({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [fe, { loading: pe }] = ue({ fetchPolicy: "no-cache" }), [me, b] = E(!1), [x, S] = E(null), [C, w] = E(!1), [_e, { loading: I }] = h({ fetchPolicy: "no-cache" }), [B, { loading: G }] = y(), q = ce?.jobApplication, J = async () => {
|
|
885
|
+
if (!(!d.trim() || !e)) try {
|
|
886
|
+
(await B({ variables: {
|
|
885
887
|
id: e,
|
|
886
|
-
message:
|
|
887
|
-
} })).data?.replyToJobApplication.success && (
|
|
888
|
+
message: d.trim()
|
|
889
|
+
} })).data?.replyToJobApplication.success && (ae(!0), f(""), setTimeout(() => ae(!1), 3e3));
|
|
888
890
|
} catch (e) {
|
|
889
891
|
console.error("Failed to send reply:", e);
|
|
890
892
|
}
|
|
891
893
|
}, we = async (t) => {
|
|
892
894
|
if (e) {
|
|
893
|
-
|
|
895
|
+
s(!1);
|
|
894
896
|
try {
|
|
895
|
-
await
|
|
897
|
+
await de({ variables: {
|
|
896
898
|
id: e,
|
|
897
899
|
input: { status: t }
|
|
898
900
|
} }), i(!0), setTimeout(() => i(!1), 3e3);
|
|
899
901
|
} catch (e) {
|
|
900
|
-
console.error("Failed to update status:", e),
|
|
902
|
+
console.error("Failed to update status:", e), s(!0), setTimeout(() => s(!1), 4e3);
|
|
901
903
|
}
|
|
902
904
|
}
|
|
903
905
|
}, Te = async () => {
|
|
904
906
|
if (e) {
|
|
905
|
-
|
|
907
|
+
u(!1);
|
|
906
908
|
try {
|
|
907
|
-
let t = (await
|
|
908
|
-
t ? window.open(t, "_blank", "noopener,noreferrer") :
|
|
909
|
+
let t = (await fe({ variables: { id: e } })).data?.jobApplicationResumeUrl;
|
|
910
|
+
t ? window.open(t, "_blank", "noopener,noreferrer") : u(!0);
|
|
909
911
|
} catch (e) {
|
|
910
|
-
console.error("Failed to get resume URL:", e),
|
|
912
|
+
console.error("Failed to get resume URL:", e), u(!0);
|
|
911
913
|
}
|
|
912
914
|
}
|
|
913
915
|
}, Ee = async () => {
|
|
914
916
|
if (e) {
|
|
915
|
-
|
|
917
|
+
w(!1), S(null), b(!0);
|
|
916
918
|
try {
|
|
917
|
-
let t = (await
|
|
918
|
-
t ?
|
|
919
|
+
let t = (await _e({ variables: { id: e } })).data?.jobApplicationResumePreviewUrl;
|
|
920
|
+
t ? S(t) : w(!0);
|
|
919
921
|
} catch (e) {
|
|
920
|
-
console.error("Failed to get resume preview URL:", e),
|
|
922
|
+
console.error("Failed to get resume preview URL:", e), w(!0);
|
|
921
923
|
}
|
|
922
924
|
}
|
|
923
|
-
},
|
|
924
|
-
q?.email && (
|
|
925
|
+
}, De = async () => {
|
|
926
|
+
q?.email && (T("light"), await ge(q.email), c(!0), setTimeout(() => c(!1), 2e3));
|
|
925
927
|
};
|
|
926
|
-
if (
|
|
928
|
+
if (le) return /* @__PURE__ */ Y("div", {
|
|
927
929
|
className: "min-h-full flex items-center justify-center py-20",
|
|
928
930
|
children: /* @__PURE__ */ X("div", {
|
|
929
931
|
className: "text-center",
|
|
@@ -936,21 +938,21 @@ function Ue() {
|
|
|
936
938
|
})]
|
|
937
939
|
})
|
|
938
940
|
});
|
|
939
|
-
if (
|
|
941
|
+
if (g || !q) return /* @__PURE__ */ Y("div", {
|
|
940
942
|
className: "p-6",
|
|
941
|
-
children: /* @__PURE__ */ Y(
|
|
943
|
+
children: /* @__PURE__ */ Y(Pe, {
|
|
942
944
|
illustration: "empty-search",
|
|
943
945
|
title: "Application not found",
|
|
944
|
-
description:
|
|
946
|
+
description: g?.message || "This application may have been deleted or you don't have access.",
|
|
945
947
|
action: /* @__PURE__ */ X("button", {
|
|
946
948
|
type: "button",
|
|
947
949
|
onClick: () => t(`/support/applications${n}`),
|
|
948
950
|
className: "inline-flex items-center gap-2 px-5 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all",
|
|
949
|
-
children: [/* @__PURE__ */ Y(
|
|
951
|
+
children: [/* @__PURE__ */ Y(k, { size: 16 }), "Back to Applications"]
|
|
950
952
|
})
|
|
951
953
|
})
|
|
952
954
|
});
|
|
953
|
-
let
|
|
955
|
+
let Z = Le[q.status] || Le.NEW, $ = Z.icon, Be = `${q.firstName} ${q.lastName}`.trim(), He = ze(q.resumeFileSize), We = Ve(q.linkedinUrl), Ge = Ve(q.portfolioUrl);
|
|
954
956
|
return /* @__PURE__ */ X("div", {
|
|
955
957
|
className: "p-6 animate-in fade-in duration-200",
|
|
956
958
|
children: [
|
|
@@ -960,28 +962,28 @@ function Ue() {
|
|
|
960
962
|
type: "button",
|
|
961
963
|
onClick: () => t(`/support/applications${n}`),
|
|
962
964
|
className: "inline-flex items-center gap-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
963
|
-
children: [/* @__PURE__ */ Y(
|
|
965
|
+
children: [/* @__PURE__ */ Y(k, { size: 18 }), /* @__PURE__ */ Y("span", {
|
|
964
966
|
className: "text-sm font-medium",
|
|
965
967
|
children: "Back to Applications"
|
|
966
968
|
})]
|
|
967
969
|
}), /* @__PURE__ */ X("div", {
|
|
968
970
|
className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
|
|
969
|
-
children: [/* @__PURE__ */ Y(
|
|
971
|
+
children: [/* @__PURE__ */ Y(N, { size: 12 }), Re(q.createdAt)]
|
|
970
972
|
})]
|
|
971
973
|
}),
|
|
972
974
|
r && /* @__PURE__ */ X("div", {
|
|
973
975
|
className: "mb-5 p-3.5 bg-status-success-bg-subtle border border-border-subtle rounded-xl flex items-center gap-2.5 text-status-success-text text-sm font-medium animate-in slide-in-from-top-2 duration-200",
|
|
974
|
-
children: [/* @__PURE__ */ Y(
|
|
976
|
+
children: [/* @__PURE__ */ Y(M, { size: 18 }), "Status updated successfully"]
|
|
975
977
|
}),
|
|
976
978
|
ee && /* @__PURE__ */ X("div", {
|
|
977
979
|
className: "mb-5 p-3.5 bg-status-error-bg-subtle border border-border-subtle rounded-xl flex items-center gap-2.5 text-status-error-text text-sm font-medium animate-in slide-in-from-top-2 duration-200",
|
|
978
|
-
children: [/* @__PURE__ */ Y(
|
|
980
|
+
children: [/* @__PURE__ */ Y(D, { size: 18 }), "Couldn't update the status. Please try again."]
|
|
979
981
|
}),
|
|
980
|
-
/* @__PURE__ */ Y(
|
|
982
|
+
/* @__PURE__ */ Y(Ie, {
|
|
981
983
|
className: "mb-6",
|
|
982
984
|
children: "A single candidate's full application — contact details, resume, cover letter and links. Review their background, download the resume, and move them through your hiring pipeline from new to screening, interview, hire or rejection. Reply by branded email to keep the candidate informed at every stage."
|
|
983
985
|
}),
|
|
984
|
-
/* @__PURE__ */ Y(
|
|
986
|
+
/* @__PURE__ */ Y(Fe, {
|
|
985
987
|
storageKey: "support-application-detail",
|
|
986
988
|
title: "Move this candidate forward",
|
|
987
989
|
className: "mb-6",
|
|
@@ -1013,28 +1015,28 @@ function Ue() {
|
|
|
1013
1015
|
]
|
|
1014
1016
|
}),
|
|
1015
1017
|
/* @__PURE__ */ Y("div", {
|
|
1016
|
-
className: `rounded-xl border p-6 mb-6 ${
|
|
1018
|
+
className: `rounded-xl border p-6 mb-6 ${Z.bg}`,
|
|
1017
1019
|
children: /* @__PURE__ */ Y("div", {
|
|
1018
1020
|
className: "flex items-start justify-between",
|
|
1019
1021
|
children: /* @__PURE__ */ X("div", {
|
|
1020
1022
|
className: "flex items-start gap-4",
|
|
1021
1023
|
children: [/* @__PURE__ */ Y("div", {
|
|
1022
1024
|
className: "size-12 rounded-xl bg-bg-surface/80 dark:bg-bg-surface/10 flex items-center justify-center shadow-sm",
|
|
1023
|
-
children: /* @__PURE__ */ Y(
|
|
1025
|
+
children: /* @__PURE__ */ Y($, {
|
|
1024
1026
|
size: 24,
|
|
1025
|
-
className:
|
|
1027
|
+
className: Z.color
|
|
1026
1028
|
})
|
|
1027
1029
|
}), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("div", {
|
|
1028
1030
|
className: "flex items-center gap-3 mb-1.5",
|
|
1029
1031
|
children: /* @__PURE__ */ Y("h1", {
|
|
1030
1032
|
className: "text-xl font-bold text-[var(--color-text-primary)]",
|
|
1031
|
-
children:
|
|
1033
|
+
children: Be
|
|
1032
1034
|
})
|
|
1033
1035
|
}), /* @__PURE__ */ X("div", {
|
|
1034
1036
|
className: "flex items-center gap-3 text-sm flex-wrap",
|
|
1035
1037
|
children: [/* @__PURE__ */ X("span", {
|
|
1036
|
-
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${
|
|
1037
|
-
children: [/* @__PURE__ */ Y(
|
|
1038
|
+
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${Z.color} bg-bg-surface/60 dark:bg-bg-surface/10`,
|
|
1039
|
+
children: [/* @__PURE__ */ Y($, { size: 12 }), Z.label]
|
|
1038
1040
|
}), /* @__PURE__ */ X("span", {
|
|
1039
1041
|
className: "text-[var(--color-text-secondary)]",
|
|
1040
1042
|
children: [
|
|
@@ -1061,7 +1063,7 @@ function Ue() {
|
|
|
1061
1063
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1062
1064
|
children: /* @__PURE__ */ X("h2", {
|
|
1063
1065
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1064
|
-
children: [/* @__PURE__ */ Y(
|
|
1066
|
+
children: [/* @__PURE__ */ Y(Ce, { size: 14 }), "Applicant Information"]
|
|
1065
1067
|
})
|
|
1066
1068
|
}), /* @__PURE__ */ Y("div", {
|
|
1067
1069
|
className: "p-5",
|
|
@@ -1072,7 +1074,7 @@ function Ue() {
|
|
|
1072
1074
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1073
1075
|
children: [/* @__PURE__ */ Y("div", {
|
|
1074
1076
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
1075
|
-
children: /* @__PURE__ */ Y(
|
|
1077
|
+
children: /* @__PURE__ */ Y(Ce, {
|
|
1076
1078
|
size: 16,
|
|
1077
1079
|
className: "text-accent-blue"
|
|
1078
1080
|
})
|
|
@@ -1081,7 +1083,7 @@ function Ue() {
|
|
|
1081
1083
|
children: "Name"
|
|
1082
1084
|
}), /* @__PURE__ */ Y("p", {
|
|
1083
1085
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1084
|
-
children:
|
|
1086
|
+
children: Be
|
|
1085
1087
|
})] })]
|
|
1086
1088
|
}),
|
|
1087
1089
|
/* @__PURE__ */ X("div", {
|
|
@@ -1105,13 +1107,13 @@ function Ue() {
|
|
|
1105
1107
|
children: q.email
|
|
1106
1108
|
}), /* @__PURE__ */ Y("button", {
|
|
1107
1109
|
type: "button",
|
|
1108
|
-
onClick:
|
|
1110
|
+
onClick: De,
|
|
1109
1111
|
className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
|
|
1110
1112
|
title: "Copy email",
|
|
1111
|
-
children:
|
|
1113
|
+
children: ie ? /* @__PURE__ */ Y(M, {
|
|
1112
1114
|
size: 12,
|
|
1113
1115
|
className: "text-status-success-text"
|
|
1114
|
-
}) : /* @__PURE__ */ Y(
|
|
1116
|
+
}) : /* @__PURE__ */ Y(P, {
|
|
1115
1117
|
size: 12,
|
|
1116
1118
|
className: "text-[var(--color-text-secondary)]"
|
|
1117
1119
|
})
|
|
@@ -1123,7 +1125,7 @@ function Ue() {
|
|
|
1123
1125
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1124
1126
|
children: [/* @__PURE__ */ Y("div", {
|
|
1125
1127
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
1126
|
-
children: /* @__PURE__ */ Y(
|
|
1128
|
+
children: /* @__PURE__ */ Y(K, {
|
|
1127
1129
|
size: 16,
|
|
1128
1130
|
className: "text-status-success-text"
|
|
1129
1131
|
})
|
|
@@ -1140,7 +1142,7 @@ function Ue() {
|
|
|
1140
1142
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1141
1143
|
children: [/* @__PURE__ */ Y("div", {
|
|
1142
1144
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
|
|
1143
|
-
children: /* @__PURE__ */ Y(
|
|
1145
|
+
children: /* @__PURE__ */ Y(ye, {
|
|
1144
1146
|
size: 16,
|
|
1145
1147
|
className: "text-accent-blue"
|
|
1146
1148
|
})
|
|
@@ -1156,7 +1158,7 @@ function Ue() {
|
|
|
1156
1158
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1157
1159
|
children: [/* @__PURE__ */ Y("div", {
|
|
1158
1160
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
1159
|
-
children: /* @__PURE__ */ Y(
|
|
1161
|
+
children: /* @__PURE__ */ Y(A, {
|
|
1160
1162
|
size: 16,
|
|
1161
1163
|
className: "text-accent-purple"
|
|
1162
1164
|
})
|
|
@@ -1218,11 +1220,11 @@ function Ue() {
|
|
|
1218
1220
|
})]
|
|
1219
1221
|
})]
|
|
1220
1222
|
}),
|
|
1221
|
-
q.productId &&
|
|
1223
|
+
q.productId && oe && /* @__PURE__ */ X("div", {
|
|
1222
1224
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1223
1225
|
children: [/* @__PURE__ */ Y("div", {
|
|
1224
1226
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
1225
|
-
children: /* @__PURE__ */ Y(
|
|
1227
|
+
children: /* @__PURE__ */ Y(xe, {
|
|
1226
1228
|
size: 16,
|
|
1227
1229
|
className: "text-accent-purple"
|
|
1228
1230
|
})
|
|
@@ -1231,14 +1233,14 @@ function Ue() {
|
|
|
1231
1233
|
children: "Product"
|
|
1232
1234
|
}), /* @__PURE__ */ Y("p", {
|
|
1233
1235
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1234
|
-
children:
|
|
1236
|
+
children: oe
|
|
1235
1237
|
})] })]
|
|
1236
1238
|
}),
|
|
1237
1239
|
/* @__PURE__ */ X("div", {
|
|
1238
1240
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1239
1241
|
children: [/* @__PURE__ */ Y("div", {
|
|
1240
1242
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
1241
|
-
children: /* @__PURE__ */ Y(
|
|
1243
|
+
children: /* @__PURE__ */ Y(be, {
|
|
1242
1244
|
size: 16,
|
|
1243
1245
|
className: "text-status-success-text"
|
|
1244
1246
|
})
|
|
@@ -1254,9 +1256,9 @@ function Ue() {
|
|
|
1254
1256
|
})
|
|
1255
1257
|
})]
|
|
1256
1258
|
}),
|
|
1257
|
-
e && /* @__PURE__ */ Y(
|
|
1259
|
+
e && /* @__PURE__ */ Y(Ue, {
|
|
1258
1260
|
applicationId: e,
|
|
1259
|
-
jobPostingId:
|
|
1261
|
+
jobPostingId: ce.jobApplication.jobPostingId
|
|
1260
1262
|
}),
|
|
1261
1263
|
q.coverLetter && /* @__PURE__ */ X("div", {
|
|
1262
1264
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
@@ -1264,7 +1266,7 @@ function Ue() {
|
|
|
1264
1266
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1265
1267
|
children: /* @__PURE__ */ X("h2", {
|
|
1266
1268
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1267
|
-
children: [/* @__PURE__ */ Y(
|
|
1269
|
+
children: [/* @__PURE__ */ Y(z, { size: 14 }), "Cover Letter"]
|
|
1268
1270
|
})
|
|
1269
1271
|
}), /* @__PURE__ */ Y("div", {
|
|
1270
1272
|
className: "p-5",
|
|
@@ -1280,7 +1282,7 @@ function Ue() {
|
|
|
1280
1282
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1281
1283
|
children: /* @__PURE__ */ X("h2", {
|
|
1282
1284
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1283
|
-
children: [/* @__PURE__ */ Y(
|
|
1285
|
+
children: [/* @__PURE__ */ Y(L, { size: 14 }), "Additional Data"]
|
|
1284
1286
|
})
|
|
1285
1287
|
}), /* @__PURE__ */ Y("div", {
|
|
1286
1288
|
className: "p-5",
|
|
@@ -1309,16 +1311,16 @@ function Ue() {
|
|
|
1309
1311
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1310
1312
|
children: /* @__PURE__ */ X("h2", {
|
|
1311
1313
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1312
|
-
children: [/* @__PURE__ */ Y(
|
|
1314
|
+
children: [/* @__PURE__ */ Y(z, { size: 14 }), "Resume"]
|
|
1313
1315
|
})
|
|
1314
1316
|
}), /* @__PURE__ */ Y("div", {
|
|
1315
1317
|
className: "p-5",
|
|
1316
|
-
children: q.resumeFileName ? /* @__PURE__ */ X(
|
|
1318
|
+
children: q.resumeFileName ? /* @__PURE__ */ X(Me, { children: [
|
|
1317
1319
|
/* @__PURE__ */ X("div", {
|
|
1318
1320
|
className: "flex items-center gap-3 mb-3",
|
|
1319
1321
|
children: [/* @__PURE__ */ Y("div", {
|
|
1320
1322
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center flex-shrink-0",
|
|
1321
|
-
children: /* @__PURE__ */ Y(
|
|
1323
|
+
children: /* @__PURE__ */ Y(z, {
|
|
1322
1324
|
size: 16,
|
|
1323
1325
|
className: "text-accent-blue"
|
|
1324
1326
|
})
|
|
@@ -1327,18 +1329,18 @@ function Ue() {
|
|
|
1327
1329
|
children: [/* @__PURE__ */ Y("p", {
|
|
1328
1330
|
className: "text-sm font-medium text-[var(--color-text-primary)] truncate",
|
|
1329
1331
|
children: q.resumeFileName
|
|
1330
|
-
}),
|
|
1332
|
+
}), He ? /* @__PURE__ */ Y("p", {
|
|
1331
1333
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
1332
|
-
children:
|
|
1334
|
+
children: He
|
|
1333
1335
|
}) : null]
|
|
1334
1336
|
})]
|
|
1335
1337
|
}),
|
|
1336
1338
|
/* @__PURE__ */ X("button", {
|
|
1337
1339
|
type: "button",
|
|
1338
1340
|
onClick: Te,
|
|
1339
|
-
disabled:
|
|
1341
|
+
disabled: pe,
|
|
1340
1342
|
className: "w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all disabled:opacity-50",
|
|
1341
|
-
children: [
|
|
1343
|
+
children: [pe ? /* @__PURE__ */ Y(U, {
|
|
1342
1344
|
size: 15,
|
|
1343
1345
|
className: "animate-spin"
|
|
1344
1346
|
}) : /* @__PURE__ */ Y(F, { size: 15 }), "Download Resume"]
|
|
@@ -1346,14 +1348,14 @@ function Ue() {
|
|
|
1346
1348
|
/* @__PURE__ */ X("button", {
|
|
1347
1349
|
type: "button",
|
|
1348
1350
|
onClick: Ee,
|
|
1349
|
-
disabled:
|
|
1351
|
+
disabled: I,
|
|
1350
1352
|
className: "mt-2 w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] text-[var(--color-text-primary)] rounded-lg text-sm font-medium hover:bg-[var(--color-bg-muted)] transition-all disabled:opacity-50",
|
|
1351
|
-
children: [
|
|
1353
|
+
children: [I ? /* @__PURE__ */ Y(U, {
|
|
1352
1354
|
size: 15,
|
|
1353
1355
|
className: "animate-spin"
|
|
1354
|
-
}) : /* @__PURE__ */ Y(
|
|
1356
|
+
}) : /* @__PURE__ */ Y(R, { size: 15 }), "Preview Resume"]
|
|
1355
1357
|
}),
|
|
1356
|
-
|
|
1358
|
+
l && /* @__PURE__ */ Y("p", {
|
|
1357
1359
|
className: "mt-2 text-xs text-status-error-text",
|
|
1358
1360
|
children: "Could not generate a download link. Please try again."
|
|
1359
1361
|
})
|
|
@@ -1369,7 +1371,7 @@ function Ue() {
|
|
|
1369
1371
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1370
1372
|
children: /* @__PURE__ */ X("h2", {
|
|
1371
1373
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1372
|
-
children: [/* @__PURE__ */ Y(
|
|
1374
|
+
children: [/* @__PURE__ */ Y(j, { size: 14 }), "Timeline"]
|
|
1373
1375
|
})
|
|
1374
1376
|
}), /* @__PURE__ */ X("div", {
|
|
1375
1377
|
className: "p-5 space-y-4",
|
|
@@ -1394,40 +1396,40 @@ function Ue() {
|
|
|
1394
1396
|
})]
|
|
1395
1397
|
})]
|
|
1396
1398
|
}),
|
|
1397
|
-
/* @__PURE__ */ X(
|
|
1399
|
+
/* @__PURE__ */ X(Ne, {
|
|
1398
1400
|
"data-tour": "support-application-reply",
|
|
1399
1401
|
className: "overflow-hidden p-0",
|
|
1400
1402
|
children: [/* @__PURE__ */ Y("div", {
|
|
1401
1403
|
className: "px-5 py-3.5 border-b border-border-seam",
|
|
1402
1404
|
children: /* @__PURE__ */ X("h2", {
|
|
1403
1405
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
|
|
1404
|
-
children: [/* @__PURE__ */ Y(
|
|
1406
|
+
children: [/* @__PURE__ */ Y(Se, { size: 12 }), "Reply"]
|
|
1405
1407
|
})
|
|
1406
1408
|
}), /* @__PURE__ */ X("div", {
|
|
1407
1409
|
className: "p-5",
|
|
1408
1410
|
children: [
|
|
1409
|
-
|
|
1411
|
+
p && /* @__PURE__ */ X("div", {
|
|
1410
1412
|
className: "mb-3 p-2.5 rounded-lg bg-status-success-bg-subtle border border-border-subtle text-sm text-status-success-text flex items-center gap-2",
|
|
1411
|
-
children: [/* @__PURE__ */ Y(
|
|
1413
|
+
children: [/* @__PURE__ */ Y(M, { size: 14 }), "Reply sent to the applicant!"]
|
|
1412
1414
|
}),
|
|
1413
1415
|
/* @__PURE__ */ Y("textarea", {
|
|
1414
1416
|
"aria-label": "Reply message",
|
|
1415
|
-
value:
|
|
1416
|
-
onChange: (e) =>
|
|
1417
|
+
value: d,
|
|
1418
|
+
onChange: (e) => f(e.target.value),
|
|
1417
1419
|
placeholder: "Type your reply… This will be sent as a branded email to the applicant.",
|
|
1418
1420
|
rows: 4,
|
|
1419
|
-
disabled:
|
|
1421
|
+
disabled: G,
|
|
1420
1422
|
className: "w-full px-3 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-lg text-sm text-[var(--color-text-primary)] placeholder:text-[var(--color-text-secondary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-border-accent)]/50 disabled:opacity-50 resize-none transition-all"
|
|
1421
1423
|
}),
|
|
1422
1424
|
/* @__PURE__ */ X("button", {
|
|
1423
1425
|
type: "button",
|
|
1424
|
-
onClick:
|
|
1425
|
-
disabled:
|
|
1426
|
+
onClick: J,
|
|
1427
|
+
disabled: G || !d.trim(),
|
|
1426
1428
|
className: "mt-2 w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all disabled:opacity-50",
|
|
1427
|
-
children: [
|
|
1429
|
+
children: [G ? /* @__PURE__ */ Y(U, {
|
|
1428
1430
|
size: 15,
|
|
1429
1431
|
className: "animate-spin"
|
|
1430
|
-
}) : /* @__PURE__ */ Y(
|
|
1432
|
+
}) : /* @__PURE__ */ Y(Se, { size: 15 }), "Send Reply"]
|
|
1431
1433
|
})
|
|
1432
1434
|
]
|
|
1433
1435
|
})]
|
|
@@ -1451,7 +1453,7 @@ function Ue() {
|
|
|
1451
1453
|
id: "jobapplicationdetailpage-status-0",
|
|
1452
1454
|
value: q.status,
|
|
1453
1455
|
onChange: (e) => we(e.target.value),
|
|
1454
|
-
disabled:
|
|
1456
|
+
disabled: v,
|
|
1455
1457
|
className: "w-full px-3 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-lg text-sm text-[var(--color-text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-border-accent)]/50 disabled:opacity-50 transition-all",
|
|
1456
1458
|
children: [
|
|
1457
1459
|
/* @__PURE__ */ Y("option", {
|
|
@@ -1492,9 +1494,9 @@ function Ue() {
|
|
|
1492
1494
|
}), q.status !== "ARCHIVED" && /* @__PURE__ */ X("button", {
|
|
1493
1495
|
type: "button",
|
|
1494
1496
|
onClick: () => we("ARCHIVED"),
|
|
1495
|
-
disabled:
|
|
1497
|
+
disabled: v,
|
|
1496
1498
|
className: "w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] text-[var(--color-text-secondary)] rounded-lg text-sm font-medium hover:bg-[var(--color-bg-muted)] transition-all disabled:opacity-50",
|
|
1497
|
-
children: [/* @__PURE__ */ Y(
|
|
1499
|
+
children: [/* @__PURE__ */ Y(O, { size: 15 }), "Archive"]
|
|
1498
1500
|
})]
|
|
1499
1501
|
})]
|
|
1500
1502
|
})]
|
|
@@ -1503,13 +1505,13 @@ function Ue() {
|
|
|
1503
1505
|
})]
|
|
1504
1506
|
}),
|
|
1505
1507
|
/* @__PURE__ */ Y(a, {
|
|
1506
|
-
open:
|
|
1507
|
-
onOpenChange:
|
|
1508
|
-
children: /* @__PURE__ */ X(
|
|
1508
|
+
open: me,
|
|
1509
|
+
onOpenChange: b,
|
|
1510
|
+
children: /* @__PURE__ */ X(te, {
|
|
1509
1511
|
className: "sm:max-w-4xl",
|
|
1510
|
-
children: [/* @__PURE__ */ X(
|
|
1512
|
+
children: [/* @__PURE__ */ X(ne, { children: [/* @__PURE__ */ Y(re, { children: "Resume Preview" }), /* @__PURE__ */ Y(o, { children: q.resumeFileName ?? "Candidate resume" })] }), /* @__PURE__ */ Y("div", {
|
|
1511
1513
|
className: "h-[70vh] w-full rounded-lg border border-border-seam bg-bg-sunken/30 overflow-hidden",
|
|
1512
|
-
children:
|
|
1514
|
+
children: I ? /* @__PURE__ */ X("div", {
|
|
1513
1515
|
className: "h-full flex flex-col items-center justify-center gap-3",
|
|
1514
1516
|
children: [/* @__PURE__ */ Y(U, {
|
|
1515
1517
|
size: 28,
|
|
@@ -1518,9 +1520,9 @@ function Ue() {
|
|
|
1518
1520
|
className: "text-sm text-text-secondary",
|
|
1519
1521
|
children: "Loading preview…"
|
|
1520
1522
|
})]
|
|
1521
|
-
}) :
|
|
1523
|
+
}) : C || !x ? /* @__PURE__ */ X("div", {
|
|
1522
1524
|
className: "h-full flex flex-col items-center justify-center gap-3",
|
|
1523
|
-
children: [/* @__PURE__ */ Y(
|
|
1525
|
+
children: [/* @__PURE__ */ Y(D, {
|
|
1524
1526
|
size: 28,
|
|
1525
1527
|
className: "text-status-error-text"
|
|
1526
1528
|
}), /* @__PURE__ */ Y("p", {
|
|
@@ -1528,8 +1530,8 @@ function Ue() {
|
|
|
1528
1530
|
children: "Could not load the resume preview. Try downloading instead."
|
|
1529
1531
|
})]
|
|
1530
1532
|
}) : /* @__PURE__ */ Y("iframe", {
|
|
1531
|
-
src:
|
|
1532
|
-
title: `Resume preview — ${
|
|
1533
|
+
src: x,
|
|
1534
|
+
title: `Resume preview — ${Be}`,
|
|
1533
1535
|
className: "h-full w-full"
|
|
1534
1536
|
})
|
|
1535
1537
|
})]
|
|
@@ -1539,6 +1541,6 @@ function Ue() {
|
|
|
1539
1541
|
});
|
|
1540
1542
|
}
|
|
1541
1543
|
//#endregion
|
|
1542
|
-
export {
|
|
1544
|
+
export { We as JobApplicationDetailPage };
|
|
1543
1545
|
|
|
1544
1546
|
//# sourceMappingURL=JobApplicationDetailPage.js.map
|