@burdenoff/microfe-support 2026.1114.1 → 2026.1115.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/global-operations.d.ts +62 -0
- package/dist/generated/global-operations.js +104 -69
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js +17 -15
- package/dist/generated/global-types.js.map +1 -1
- package/dist/support/SupportUserRoot.js +32 -28
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.d.ts +1 -0
- package/dist/support/SupportUserRoutes.js +31 -28
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/PageLayout.js +35 -35
- package/dist/support/components/RouteHelpers.d.ts +2 -1
- package/dist/support/components/RouteHelpers.js +3 -3
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/help/RelatedArticles.d.ts +12 -0
- package/dist/support/components/help/RelatedArticles.js +55 -0
- package/dist/support/components/help/RelatedArticles.js.map +1 -0
- package/dist/support/components/help/RequestDetailHeader.d.ts +18 -0
- package/dist/support/components/help/RequestDetailHeader.js +129 -0
- package/dist/support/components/help/RequestDetailHeader.js.map +1 -0
- package/dist/support/components/help/SatisfactionReview.d.ts +18 -0
- package/dist/support/components/help/SatisfactionReview.js +103 -0
- package/dist/support/components/help/SatisfactionReview.js.map +1 -0
- package/dist/support/components/help/StarRating.d.ts +16 -0
- package/dist/support/components/help/StarRating.js +63 -0
- package/dist/support/components/help/StarRating.js.map +1 -0
- package/dist/support/components/help/StatusGroupPill.d.ts +11 -0
- package/dist/support/components/help/StatusGroupPill.js +19 -0
- package/dist/support/components/help/StatusGroupPill.js.map +1 -0
- package/dist/support/components/settings/TicketCategoriesSettings.js +69 -69
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +7 -7
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +54 -60
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/ui.js +1 -1
- package/dist/support/constants.d.ts +23 -0
- package/dist/support/constants.js +2 -2
- package/dist/support/constants.js.map +1 -1
- package/dist/support/hooks/useDebouncedValue.d.ts +6 -0
- package/dist/support/hooks/useDebouncedValue.js +12 -0
- package/dist/support/hooks/useDebouncedValue.js.map +1 -0
- package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +8 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js +86 -81
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useSupportVariant.d.ts +11 -0
- package/dist/support/hooks/useSupportVariant.js +11 -0
- package/dist/support/hooks/useSupportVariant.js.map +1 -0
- package/dist/support/hooks/useTicketCreatedToast.d.ts +16 -0
- package/dist/support/hooks/useTicketCreatedToast.js +25 -0
- package/dist/support/hooks/useTicketCreatedToast.js.map +1 -0
- package/dist/support/hooks/useTicketLabels.d.ts +22 -0
- package/dist/support/hooks/useTicketLabels.js +40 -0
- package/dist/support/hooks/useTicketLabels.js.map +1 -0
- package/dist/support/index.d.ts +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +84 -84
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.d.ts +5 -0
- package/dist/support/pages/ArticleDetailUserPage.js +133 -69
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/AskForHelpPage.d.ts +11 -0
- package/dist/support/pages/AskForHelpPage.js +396 -0
- package/dist/support/pages/AskForHelpPage.js.map +1 -0
- package/dist/support/pages/ContactInquiriesPage.js +73 -73
- package/dist/support/pages/ContactInquiryDetailPage.js +47 -47
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.d.ts +4 -0
- package/dist/support/pages/CreateTicketPage.js +121 -117
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/HelpHubPage.d.ts +9 -0
- package/dist/support/pages/HelpHubPage.js +272 -0
- package/dist/support/pages/HelpHubPage.js.map +1 -0
- package/dist/support/pages/JobApplicationDetailPage.js +388 -388
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +35 -35
- package/dist/support/pages/JobPostingDetailPage.js +236 -236
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.d.ts +6 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +188 -137
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/MyRequestsPage.d.ts +16 -0
- package/dist/support/pages/MyRequestsPage.js +389 -0
- package/dist/support/pages/MyRequestsPage.js.map +1 -0
- package/dist/support/pages/TicketDetailUserPage.d.ts +5 -0
- package/dist/support/pages/TicketDetailUserPage.js +285 -192
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.d.ts +7 -0
- package/dist/support/pages/TicketListPage.js +150 -153
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js +8 -7
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.d.ts +5 -0
- package/dist/support/store/supportStore.js +1 -0
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/translations/en.d.ts +279 -0
- package/dist/support/translations/en.js +270 -1
- package/dist/support/translations/en.js.map +1 -1
- package/dist/support/types/index.d.ts +13 -0
- package/dist/support/utils/cameFrom.d.ts +16 -0
- package/dist/support/utils/cameFrom.js +22 -0
- package/dist/support/utils/cameFrom.js.map +1 -0
- package/dist/support/utils/dates.d.ts +15 -0
- package/dist/support/utils/dates.js +35 -0
- package/dist/support/utils/dates.js.map +1 -0
- package/dist/support/utils/reopen.d.ts +27 -0
- package/dist/support/utils/reopen.js +27 -0
- package/dist/support/utils/reopen.js.map +1 -0
- package/dist/support/utils/requestTechnicalDetails.d.ts +13 -0
- package/dist/support/utils/requestTechnicalDetails.js +38 -0
- package/dist/support/utils/requestTechnicalDetails.js.map +1 -0
- package/dist/support/utils/ticketFilters.d.ts +16 -0
- package/dist/support/utils/ticketFilters.js +24 -12
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/ticketStatusGroups.d.ts +20 -0
- package/dist/support/utils/ticketStatusGroups.js +39 -0
- package/dist/support/utils/ticketStatusGroups.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import e from "../../node_modules/dompurify/dist/purify.es.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { useAssignInterviewersToRoundMutation as t, useCreateInterviewRoundMutation as n, useGetInterviewersQuery as r, useGetJobApplicationInterviewRoundsQuery as i, useGetJobApplicationQuery as
|
|
4
|
-
import { InterviewRoundStatus as
|
|
5
|
-
import { nativeCopyText as
|
|
6
|
-
import { roundStatusConfig as
|
|
7
|
-
import { RichTextEditor as
|
|
8
|
-
import { Badge as
|
|
9
|
-
import { useEffect as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
3
|
+
import { useAssignInterviewersToRoundMutation as t, useCreateInterviewRoundMutation as n, useGetInterviewersQuery as r, useGetJobApplicationInterviewRoundsQuery as i, useGetJobApplicationQuery as ee, useGetJobApplicationResumePreviewUrlLazyQuery as te, useGetJobApplicationResumeUrlLazyQuery as ne, useGetJobPostingQuery as re, useRandomizeAndSendAssignmentMutation as ie, useRecordAssignmentSubmissionMutation as ae, useRemoveInterviewerFromRoundMutation as oe, useReplyToJobApplicationMutation as se, useSendRoundMessageToCandidateMutation as a, useSubmitInterviewFeedbackMutation as o, useUpdateInterviewFeedbackMutation as s, useUpdateInterviewRoundMutation as ce, useUpdateJobApplicationStatusMutation as c } from "../../generated/global-operations.js";
|
|
4
|
+
import { InterviewRoundStatus as l, InterviewRoundType as u, InterviewVerdict as le, InterviewerRole as d } from "../../generated/global-types.js";
|
|
5
|
+
import { nativeCopyText as f, nativeImpact as ue } from "../../utils/nativeBridge.js";
|
|
6
|
+
import { roundStatusConfig as p, roundStatusOrder as de, statusLabels as fe, statusOrder as pe } from "../constants/pipeline.js";
|
|
7
|
+
import { RichTextEditor as me } from "../components/careers/RichTextEditor.js";
|
|
8
|
+
import { Badge as m, Button as h, Card as he, CardContent as g, CardHeader as ge, CardTitle as _e, Dialog as _, DialogContent as v, DialogDescription as y, DialogFooter as b, DialogHeader as x, DialogTitle as ve, Input as S, Label as C, Select as w, SelectContent as T, SelectItem as E, SelectTrigger as D, SelectValue as O, Textarea as ye } from "../components/ui.js";
|
|
9
|
+
import { useEffect as k, useState as A } from "react";
|
|
10
|
+
import { EmphasisPanel as j, IllustratedEmptyState as M, NextSteps as N, PagePurpose as P } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { AlertCircle as be, Archive as F, ArrowLeft as I, Briefcase as L, Building2 as xe, Calendar as Se, CheckCircle as R, Clock as z, Copy as B, Download as V, Edit3 as H, ExternalLink as Ce, Eye as U, FileText as W, Globe as G, Inbox as K, Link2 as we, Linkedin as Te, Loader2 as q, Mail as Ee, MessageSquare as De, Package as Oe, Phone as ke, Plus as Ae, Send as je, Star as Me, User as Ne, UserPlus as Pe, UserX as Fe, Users as J, XCircle as Ie } from "lucide-react";
|
|
12
|
+
import { useLocation as Le, useNavigate as Re, useParams as ze } from "react-router";
|
|
13
|
+
import { graphqlFetch as Be } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
14
|
+
import { Fragment as Ve, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
15
15
|
// src/support/pages/JobApplicationDetailPage.tsx
|
|
16
16
|
var Z = "__custom__", He = {
|
|
17
17
|
NEW: {
|
|
18
18
|
label: "New",
|
|
19
19
|
color: "text-accent-blue",
|
|
20
|
-
icon:
|
|
20
|
+
icon: K,
|
|
21
21
|
bg: "bg-status-info-bg-subtle border-border-subtle"
|
|
22
22
|
},
|
|
23
23
|
SCREENING: {
|
|
24
24
|
label: "Screening",
|
|
25
25
|
color: "text-status-warning-text",
|
|
26
|
-
icon:
|
|
26
|
+
icon: U,
|
|
27
27
|
bg: "bg-status-warning-bg-subtle border-border-subtle"
|
|
28
28
|
},
|
|
29
29
|
SHORTLISTED: {
|
|
30
30
|
label: "Shortlisted",
|
|
31
31
|
color: "text-accent-purple",
|
|
32
|
-
icon:
|
|
32
|
+
icon: Me,
|
|
33
33
|
bg: "bg-accent-purple-subtle border-border-subtle"
|
|
34
34
|
},
|
|
35
35
|
INTERVIEW: {
|
|
@@ -41,19 +41,19 @@ var Z = "__custom__", He = {
|
|
|
41
41
|
HIRED: {
|
|
42
42
|
label: "Hired",
|
|
43
43
|
color: "text-status-success-text",
|
|
44
|
-
icon:
|
|
44
|
+
icon: R,
|
|
45
45
|
bg: "bg-status-success-bg-subtle border-border-subtle"
|
|
46
46
|
},
|
|
47
47
|
REJECTED: {
|
|
48
48
|
label: "Rejected",
|
|
49
49
|
color: "text-status-error-text",
|
|
50
|
-
icon:
|
|
50
|
+
icon: Ie,
|
|
51
51
|
bg: "bg-status-error-bg-subtle border-border-subtle"
|
|
52
52
|
},
|
|
53
53
|
ARCHIVED: {
|
|
54
54
|
label: "Archived",
|
|
55
55
|
color: "text-text-secondary",
|
|
56
|
-
icon:
|
|
56
|
+
icon: F,
|
|
57
57
|
bg: "bg-bg-canvas border-border-subtle"
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -100,10 +100,10 @@ function Ke(e) {
|
|
|
100
100
|
return null;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading: i, onAssign:
|
|
104
|
-
let [
|
|
105
|
-
|
|
106
|
-
},
|
|
103
|
+
function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading: i, onAssign: ee, onRemoveInterviewer: te, onSendMessage: ne, onSubmitFeedback: re, onUpdateFeedback: oe }) {
|
|
104
|
+
let [se, a] = A(!1), [o, s] = A(null), [c, l] = A(""), [d, f] = A(""), [ue, fe] = A(""), [pe, me] = A(""), [_, v] = A(t.submittedRepoUrl ?? ""), [y, b] = A(t.submittedVideoUrl ?? ""), [x, ve] = A(t.submittedNotes ?? ""), [k, j] = A(null), [M, N] = A(t.notes ?? ""), [P, F] = A(!1), [I, { loading: L }] = ie({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [xe, { loading: R }] = ae({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [z, { loading: B }] = ce({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplications"] }), V = t.roundType === u.TakeHome || !!t.roundConfig?.isAssignmentRound, Ce = !!t.assignment, U = !!(t.submittedRepoUrl || t.submittedVideoUrl || t.submittedAt), G = Ce || U, K = t.emailLogs.find((e) => e.emailType === "ASSIGNMENT")?.sentAt, we = p[t.status] ?? p.SCHEDULED, Te = () => {
|
|
105
|
+
s(null), l(""), f(""), fe(""), me("");
|
|
106
|
+
}, Ee = async () => {
|
|
107
107
|
j(null);
|
|
108
108
|
try {
|
|
109
109
|
await I({ variables: { input: {
|
|
@@ -113,14 +113,14 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
113
113
|
} catch (e) {
|
|
114
114
|
console.error("Failed to randomize and send assignment:", e), j("Failed to randomize and send assignment.");
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, Oe = async () => {
|
|
117
117
|
j(null);
|
|
118
|
-
let e =
|
|
118
|
+
let e = _.trim() || void 0, n = y.trim() || void 0, r = x.trim() || void 0;
|
|
119
119
|
if (e && !Ke(e)) j("GitHub repo URL must start with http:// or https://.");
|
|
120
120
|
else if (n && !Ke(n)) j("Jam video URL must start with http:// or https://.");
|
|
121
121
|
else if (!e && !n && !r) j("Please provide at least a repo URL, video URL, or notes.");
|
|
122
122
|
else try {
|
|
123
|
-
await
|
|
123
|
+
await xe({ variables: { input: {
|
|
124
124
|
roundId: t.id,
|
|
125
125
|
repoUrl: e,
|
|
126
126
|
videoUrl: n,
|
|
@@ -129,28 +129,28 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
129
129
|
} catch (e) {
|
|
130
130
|
console.error("Failed to record assignment submission:", e), j("Failed to record submission.");
|
|
131
131
|
}
|
|
132
|
-
},
|
|
132
|
+
}, ke = async (e) => {
|
|
133
133
|
if (e !== t.status) try {
|
|
134
|
-
await
|
|
134
|
+
await z({ variables: {
|
|
135
135
|
id: t.id,
|
|
136
136
|
input: { status: e }
|
|
137
137
|
} });
|
|
138
138
|
} catch (e) {
|
|
139
139
|
console.error("Failed to update round status:", e);
|
|
140
140
|
}
|
|
141
|
-
},
|
|
141
|
+
}, Ne = async () => {
|
|
142
142
|
try {
|
|
143
|
-
await
|
|
143
|
+
await z({ variables: {
|
|
144
144
|
id: t.id,
|
|
145
145
|
input: { notes: M.trim() || null }
|
|
146
146
|
} }), F(!0), setTimeout(() => F(!1), 2e3);
|
|
147
147
|
} catch (e) {
|
|
148
148
|
console.error("Failed to save round notes:", e);
|
|
149
149
|
}
|
|
150
|
-
},
|
|
151
|
-
|
|
150
|
+
}, J = () => {
|
|
151
|
+
Te(), a(!0);
|
|
152
152
|
}, Ie = (e) => {
|
|
153
|
-
|
|
153
|
+
s(e), l(e.interviewerId), f(e.rating?.toString() ?? ""), fe(e.verdict ?? ""), me(e.internalNotes ?? ""), a(!0);
|
|
154
154
|
};
|
|
155
155
|
return /* @__PURE__ */ X("div", {
|
|
156
156
|
className: "border border-border-default rounded-lg p-4 space-y-4",
|
|
@@ -164,7 +164,7 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
164
164
|
className: "text-sm font-semibold text-text-primary",
|
|
165
165
|
children: t.name
|
|
166
166
|
}),
|
|
167
|
-
/* @__PURE__ */ Y(
|
|
167
|
+
/* @__PURE__ */ Y(m, {
|
|
168
168
|
variant: "outline",
|
|
169
169
|
className: "bg-accent-indigo-subtle text-accent-indigo text-xs",
|
|
170
170
|
children: $(t.roundType)
|
|
@@ -172,30 +172,30 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
172
172
|
/* @__PURE__ */ Y("select", {
|
|
173
173
|
"aria-label": "Round status",
|
|
174
174
|
value: t.status,
|
|
175
|
-
onChange: (e) =>
|
|
176
|
-
disabled:
|
|
177
|
-
className: `text-xs font-medium rounded-full pl-2 pr-1.5 py-0.5 border-0 focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 ${
|
|
178
|
-
children:
|
|
175
|
+
onChange: (e) => ke(e.target.value),
|
|
176
|
+
disabled: B,
|
|
177
|
+
className: `text-xs font-medium rounded-full pl-2 pr-1.5 py-0.5 border-0 focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 ${we.className}`,
|
|
178
|
+
children: de.map((e) => /* @__PURE__ */ Y("option", {
|
|
179
179
|
value: e,
|
|
180
|
-
children:
|
|
180
|
+
children: p[e].label
|
|
181
181
|
}, e))
|
|
182
182
|
})
|
|
183
183
|
]
|
|
184
184
|
}), t.scheduledAt && /* @__PURE__ */ X("p", {
|
|
185
185
|
className: "text-xs text-text-secondary flex items-center gap-1",
|
|
186
|
-
children: [/* @__PURE__ */ Y(
|
|
186
|
+
children: [/* @__PURE__ */ Y(Se, { size: 12 }), Q(t.scheduledAt)]
|
|
187
187
|
})] }), /* @__PURE__ */ X("div", {
|
|
188
188
|
className: "flex items-center gap-2",
|
|
189
|
-
children: [/* @__PURE__ */ X(
|
|
189
|
+
children: [/* @__PURE__ */ X(h, {
|
|
190
190
|
variant: "outline",
|
|
191
191
|
size: "sm",
|
|
192
|
-
onClick:
|
|
193
|
-
children: [/* @__PURE__ */ Y(
|
|
194
|
-
}), /* @__PURE__ */ X(
|
|
192
|
+
onClick: ee,
|
|
193
|
+
children: [/* @__PURE__ */ Y(Pe, { size: 14 }), "Assign"]
|
|
194
|
+
}), /* @__PURE__ */ X(h, {
|
|
195
195
|
variant: "outline",
|
|
196
196
|
size: "sm",
|
|
197
|
-
onClick:
|
|
198
|
-
children: [/* @__PURE__ */ Y(
|
|
197
|
+
onClick: ne,
|
|
198
|
+
children: [/* @__PURE__ */ Y(De, { size: 14 }), "Message"]
|
|
199
199
|
})]
|
|
200
200
|
})]
|
|
201
201
|
}),
|
|
@@ -213,17 +213,17 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
213
213
|
className: "font-medium",
|
|
214
214
|
children: e.interviewer.name
|
|
215
215
|
}),
|
|
216
|
-
/* @__PURE__ */ Y(
|
|
216
|
+
/* @__PURE__ */ Y(m, {
|
|
217
217
|
variant: "outline",
|
|
218
218
|
className: "text-[10px] px-1.5 py-0",
|
|
219
219
|
children: $(e.role)
|
|
220
220
|
}),
|
|
221
221
|
/* @__PURE__ */ Y("button", {
|
|
222
222
|
type: "button",
|
|
223
|
-
onClick: () =>
|
|
223
|
+
onClick: () => te(t.id, e.interviewer.id),
|
|
224
224
|
className: "p-0.5 rounded-full hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
|
|
225
225
|
title: "Remove interviewer",
|
|
226
|
-
children: /* @__PURE__ */ Y(
|
|
226
|
+
children: /* @__PURE__ */ Y(Fe, { size: 12 })
|
|
227
227
|
})
|
|
228
228
|
]
|
|
229
229
|
}, e.id))
|
|
@@ -242,14 +242,14 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
242
242
|
onChange: (e) => N(e.target.value),
|
|
243
243
|
placeholder: "Remarks for later evaluation — not visible to the candidate.",
|
|
244
244
|
rows: 2,
|
|
245
|
-
disabled:
|
|
245
|
+
disabled: B,
|
|
246
246
|
className: "w-full px-3 py-2 bg-bg-surface border border-border-default rounded-lg text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 resize-none"
|
|
247
247
|
}),
|
|
248
|
-
M.trim() !== (t.notes ?? "") && /* @__PURE__ */ Y(
|
|
248
|
+
M.trim() !== (t.notes ?? "") && /* @__PURE__ */ Y(h, {
|
|
249
249
|
variant: "outline",
|
|
250
250
|
size: "sm",
|
|
251
|
-
onClick:
|
|
252
|
-
disabled:
|
|
251
|
+
onClick: Ne,
|
|
252
|
+
disabled: B,
|
|
253
253
|
children: "Save notes"
|
|
254
254
|
}),
|
|
255
255
|
P && /* @__PURE__ */ Y("p", {
|
|
@@ -275,27 +275,27 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
275
275
|
})
|
|
276
276
|
]
|
|
277
277
|
}),
|
|
278
|
-
|
|
278
|
+
V && /* @__PURE__ */ X(he, {
|
|
279
279
|
className: "border border-border-default bg-bg-surface",
|
|
280
|
-
children: [/* @__PURE__ */ Y(
|
|
280
|
+
children: [/* @__PURE__ */ Y(ge, {
|
|
281
281
|
className: "pb-2",
|
|
282
|
-
children: /* @__PURE__ */ X(
|
|
282
|
+
children: /* @__PURE__ */ X(_e, {
|
|
283
283
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
284
|
-
children: [/* @__PURE__ */ Y(
|
|
284
|
+
children: [/* @__PURE__ */ Y(W, { size: 14 }), "Assignment"]
|
|
285
285
|
})
|
|
286
|
-
}), /* @__PURE__ */ X(
|
|
286
|
+
}), /* @__PURE__ */ X(g, {
|
|
287
287
|
className: "space-y-3",
|
|
288
|
-
children: [
|
|
288
|
+
children: [k && /* @__PURE__ */ X("div", {
|
|
289
289
|
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",
|
|
290
|
-
children: [/* @__PURE__ */ Y(
|
|
291
|
-
}), !
|
|
290
|
+
children: [/* @__PURE__ */ Y(be, { size: 14 }), k]
|
|
291
|
+
}), !Ce && !U ? /* @__PURE__ */ X(h, {
|
|
292
292
|
size: "sm",
|
|
293
|
-
onClick:
|
|
293
|
+
onClick: Ee,
|
|
294
294
|
disabled: L,
|
|
295
|
-
children: [L ? /* @__PURE__ */ Y(
|
|
295
|
+
children: [L ? /* @__PURE__ */ Y(q, {
|
|
296
296
|
size: 14,
|
|
297
297
|
className: "animate-spin mr-1"
|
|
298
|
-
}) : /* @__PURE__ */ Y(
|
|
298
|
+
}) : /* @__PURE__ */ Y(je, { size: 14 }), "Randomize & Send Assignment"]
|
|
299
299
|
}) : /* @__PURE__ */ X("div", {
|
|
300
300
|
className: "space-y-4",
|
|
301
301
|
children: [t.assignment && /* @__PURE__ */ X("div", {
|
|
@@ -309,49 +309,49 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
309
309
|
className: "support-richtext text-sm text-text-secondary",
|
|
310
310
|
dangerouslySetInnerHTML: { __html: e.sanitize(t.assignment.description) }
|
|
311
311
|
}),
|
|
312
|
-
|
|
312
|
+
K && /* @__PURE__ */ X("p", {
|
|
313
313
|
className: "text-[11px] text-text-secondary",
|
|
314
|
-
children: ["Sent ", Q(
|
|
314
|
+
children: ["Sent ", Q(K)]
|
|
315
315
|
})
|
|
316
316
|
]
|
|
317
|
-
}),
|
|
317
|
+
}), G && /* @__PURE__ */ X("div", {
|
|
318
318
|
className: "space-y-3",
|
|
319
319
|
children: [
|
|
320
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
320
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
321
321
|
htmlFor: `assignment-repo-${t.id}`,
|
|
322
322
|
children: "GitHub Repo URL"
|
|
323
|
-
}), /* @__PURE__ */ Y(
|
|
323
|
+
}), /* @__PURE__ */ Y(S, {
|
|
324
324
|
id: `assignment-repo-${t.id}`,
|
|
325
|
-
value:
|
|
326
|
-
onChange: (e) =>
|
|
325
|
+
value: _,
|
|
326
|
+
onChange: (e) => v(e.target.value),
|
|
327
327
|
placeholder: "https://github.com/…"
|
|
328
328
|
})] }),
|
|
329
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
329
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
330
330
|
htmlFor: `assignment-video-${t.id}`,
|
|
331
331
|
children: "Jam Video URL"
|
|
332
|
-
}), /* @__PURE__ */ Y(
|
|
332
|
+
}), /* @__PURE__ */ Y(S, {
|
|
333
333
|
id: `assignment-video-${t.id}`,
|
|
334
334
|
value: y,
|
|
335
|
-
onChange: (e) =>
|
|
335
|
+
onChange: (e) => b(e.target.value),
|
|
336
336
|
placeholder: "https://jam.dev/…"
|
|
337
337
|
})] }),
|
|
338
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
338
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
339
339
|
htmlFor: `assignment-notes-${t.id}`,
|
|
340
340
|
children: "Notes"
|
|
341
|
-
}), /* @__PURE__ */ Y(
|
|
341
|
+
}), /* @__PURE__ */ Y(ye, {
|
|
342
342
|
id: `assignment-notes-${t.id}`,
|
|
343
|
-
value:
|
|
344
|
-
onChange: (e) =>
|
|
343
|
+
value: x,
|
|
344
|
+
onChange: (e) => ve(e.target.value),
|
|
345
345
|
placeholder: "Add submission notes…",
|
|
346
346
|
rows: 3
|
|
347
347
|
})] }),
|
|
348
348
|
/* @__PURE__ */ Y("div", {
|
|
349
349
|
className: "flex items-center justify-end",
|
|
350
|
-
children: /* @__PURE__ */ X(
|
|
350
|
+
children: /* @__PURE__ */ X(h, {
|
|
351
351
|
size: "sm",
|
|
352
|
-
onClick:
|
|
353
|
-
disabled:
|
|
354
|
-
children: [
|
|
352
|
+
onClick: Oe,
|
|
353
|
+
disabled: R || !_.trim() && !y.trim() && !x.trim(),
|
|
354
|
+
children: [R ? /* @__PURE__ */ Y(q, {
|
|
355
355
|
size: 14,
|
|
356
356
|
className: "animate-spin mr-1"
|
|
357
357
|
}) : null, "Record Submission"]
|
|
@@ -370,11 +370,11 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
370
370
|
children: [/* @__PURE__ */ Y("p", {
|
|
371
371
|
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
372
372
|
children: "Feedback"
|
|
373
|
-
}), !
|
|
373
|
+
}), !se && /* @__PURE__ */ X(h, {
|
|
374
374
|
variant: "ghost",
|
|
375
375
|
size: "sm",
|
|
376
|
-
onClick:
|
|
377
|
-
children: [/* @__PURE__ */ Y(
|
|
376
|
+
onClick: J,
|
|
377
|
+
children: [/* @__PURE__ */ Y(Ae, { size: 14 }), "Add Feedback"]
|
|
378
378
|
})]
|
|
379
379
|
}),
|
|
380
380
|
t.feedback.length > 0 && /* @__PURE__ */ Y("div", {
|
|
@@ -390,19 +390,19 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
390
390
|
className: "flex items-center gap-2 mt-1",
|
|
391
391
|
children: [e.rating && /* @__PURE__ */ Y("span", {
|
|
392
392
|
className: "inline-flex items-center gap-0.5 text-xs text-status-warning-text",
|
|
393
|
-
children: Array.from({ length: e.rating }).map((e, t) => /* @__PURE__ */ Y(
|
|
393
|
+
children: Array.from({ length: e.rating }).map((e, t) => /* @__PURE__ */ Y(Me, {
|
|
394
394
|
size: 12,
|
|
395
395
|
fill: "currentColor"
|
|
396
396
|
}, t))
|
|
397
|
-
}), e.verdict && /* @__PURE__ */ Y(
|
|
397
|
+
}), e.verdict && /* @__PURE__ */ Y(m, {
|
|
398
398
|
className: `${Ge(e.verdict)} text-xs`,
|
|
399
399
|
children: $(e.verdict)
|
|
400
400
|
})]
|
|
401
|
-
})] }), /* @__PURE__ */ Y(
|
|
401
|
+
})] }), /* @__PURE__ */ Y(h, {
|
|
402
402
|
variant: "ghost",
|
|
403
403
|
size: "sm",
|
|
404
404
|
onClick: () => Ie(e),
|
|
405
|
-
children: /* @__PURE__ */ Y(
|
|
405
|
+
children: /* @__PURE__ */ Y(H, { size: 14 })
|
|
406
406
|
})]
|
|
407
407
|
}), e.internalNotes && /* @__PURE__ */ Y("p", {
|
|
408
408
|
className: "mt-2 text-sm text-text-secondary whitespace-pre-wrap",
|
|
@@ -410,104 +410,104 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
410
410
|
})]
|
|
411
411
|
}, e.id))
|
|
412
412
|
}),
|
|
413
|
-
|
|
413
|
+
se && /* @__PURE__ */ X("div", {
|
|
414
414
|
className: "p-3 rounded-lg border border-border-default bg-bg-surface space-y-3",
|
|
415
415
|
children: [
|
|
416
|
-
!
|
|
416
|
+
!o && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
417
417
|
htmlFor: `feedback-interviewer-${t.id}`,
|
|
418
418
|
children: "Interviewer"
|
|
419
|
-
}), /* @__PURE__ */ X(
|
|
420
|
-
value:
|
|
421
|
-
onValueChange:
|
|
422
|
-
children: [/* @__PURE__ */ Y(
|
|
419
|
+
}), /* @__PURE__ */ X(w, {
|
|
420
|
+
value: c,
|
|
421
|
+
onValueChange: l,
|
|
422
|
+
children: [/* @__PURE__ */ Y(D, {
|
|
423
423
|
id: `feedback-interviewer-${t.id}`,
|
|
424
|
-
children: /* @__PURE__ */ Y(
|
|
425
|
-
}), /* @__PURE__ */ Y(
|
|
424
|
+
children: /* @__PURE__ */ Y(O, { placeholder: "Select interviewer" })
|
|
425
|
+
}), /* @__PURE__ */ Y(T, { children: i ? /* @__PURE__ */ Y(E, {
|
|
426
426
|
value: "loading",
|
|
427
427
|
disabled: !0,
|
|
428
428
|
children: "Loading…"
|
|
429
|
-
}) : r.map((e) => /* @__PURE__ */ Y(
|
|
429
|
+
}) : r.map((e) => /* @__PURE__ */ Y(E, {
|
|
430
430
|
value: e.id,
|
|
431
431
|
children: e.name
|
|
432
432
|
}, e.id)) })]
|
|
433
433
|
})] }),
|
|
434
434
|
/* @__PURE__ */ X("div", {
|
|
435
435
|
className: "grid grid-cols-2 gap-3",
|
|
436
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
436
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
437
437
|
htmlFor: `feedback-rating-${t.id}`,
|
|
438
438
|
children: "Rating"
|
|
439
|
-
}), /* @__PURE__ */ X(
|
|
440
|
-
value:
|
|
441
|
-
onValueChange:
|
|
442
|
-
children: [/* @__PURE__ */ Y(
|
|
439
|
+
}), /* @__PURE__ */ X(w, {
|
|
440
|
+
value: d,
|
|
441
|
+
onValueChange: f,
|
|
442
|
+
children: [/* @__PURE__ */ Y(D, {
|
|
443
443
|
id: `feedback-rating-${t.id}`,
|
|
444
|
-
children: /* @__PURE__ */ Y(
|
|
445
|
-
}), /* @__PURE__ */ Y(
|
|
444
|
+
children: /* @__PURE__ */ Y(O, { placeholder: "1–5" })
|
|
445
|
+
}), /* @__PURE__ */ Y(T, { children: [
|
|
446
446
|
1,
|
|
447
447
|
2,
|
|
448
448
|
3,
|
|
449
449
|
4,
|
|
450
450
|
5
|
|
451
|
-
].map((e) => /* @__PURE__ */ Y(
|
|
451
|
+
].map((e) => /* @__PURE__ */ Y(E, {
|
|
452
452
|
value: String(e),
|
|
453
453
|
children: e
|
|
454
454
|
}, e)) })]
|
|
455
|
-
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
455
|
+
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
456
456
|
htmlFor: `feedback-verdict-${t.id}`,
|
|
457
457
|
children: "Verdict"
|
|
458
|
-
}), /* @__PURE__ */ X(
|
|
459
|
-
value:
|
|
460
|
-
onValueChange: (e) =>
|
|
461
|
-
children: [/* @__PURE__ */ Y(
|
|
458
|
+
}), /* @__PURE__ */ X(w, {
|
|
459
|
+
value: ue,
|
|
460
|
+
onValueChange: (e) => fe(e),
|
|
461
|
+
children: [/* @__PURE__ */ Y(D, {
|
|
462
462
|
id: `feedback-verdict-${t.id}`,
|
|
463
|
-
children: /* @__PURE__ */ Y(
|
|
464
|
-
}), /* @__PURE__ */ Y(
|
|
463
|
+
children: /* @__PURE__ */ Y(O, { placeholder: "Verdict" })
|
|
464
|
+
}), /* @__PURE__ */ Y(T, { children: Object.values(le).map((e) => /* @__PURE__ */ Y(E, {
|
|
465
465
|
value: e,
|
|
466
466
|
children: $(e)
|
|
467
467
|
}, e)) })]
|
|
468
468
|
})] })]
|
|
469
469
|
}),
|
|
470
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
470
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
471
471
|
htmlFor: `feedback-notes-${t.id}`,
|
|
472
472
|
children: "Internal Notes"
|
|
473
|
-
}), /* @__PURE__ */ Y(
|
|
473
|
+
}), /* @__PURE__ */ Y(ye, {
|
|
474
474
|
id: `feedback-notes-${t.id}`,
|
|
475
|
-
value:
|
|
476
|
-
onChange: (e) =>
|
|
475
|
+
value: pe,
|
|
476
|
+
onChange: (e) => me(e.target.value),
|
|
477
477
|
placeholder: "Add private notes about this round…",
|
|
478
478
|
rows: 3
|
|
479
479
|
})] }),
|
|
480
480
|
/* @__PURE__ */ X("div", {
|
|
481
481
|
className: "flex items-center justify-end gap-2",
|
|
482
|
-
children: [/* @__PURE__ */ Y(
|
|
482
|
+
children: [/* @__PURE__ */ Y(h, {
|
|
483
483
|
variant: "outline",
|
|
484
484
|
size: "sm",
|
|
485
485
|
onClick: () => {
|
|
486
|
-
|
|
486
|
+
Te(), a(!1);
|
|
487
487
|
},
|
|
488
488
|
children: "Cancel"
|
|
489
|
-
}), /* @__PURE__ */ Y(
|
|
489
|
+
}), /* @__PURE__ */ Y(h, {
|
|
490
490
|
size: "sm",
|
|
491
491
|
onClick: async () => {
|
|
492
|
-
let e =
|
|
493
|
-
if (
|
|
492
|
+
let e = d ? parseInt(d, 10) : void 0, n = ue || void 0, r = pe.trim() || void 0;
|
|
493
|
+
if (o) await oe(o.id, {
|
|
494
494
|
rating: e,
|
|
495
495
|
verdict: n,
|
|
496
496
|
internalNotes: r
|
|
497
497
|
});
|
|
498
498
|
else {
|
|
499
|
-
if (!
|
|
500
|
-
await
|
|
501
|
-
interviewerId:
|
|
499
|
+
if (!c) return;
|
|
500
|
+
await re(t.id, {
|
|
501
|
+
interviewerId: c,
|
|
502
502
|
rating: e,
|
|
503
503
|
verdict: n,
|
|
504
504
|
internalNotes: r
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
|
-
|
|
507
|
+
Te(), a(!1);
|
|
508
508
|
},
|
|
509
|
-
disabled: !
|
|
510
|
-
children:
|
|
509
|
+
disabled: !o && !c,
|
|
510
|
+
children: o ? "Update Feedback" : "Submit Feedback"
|
|
511
511
|
})]
|
|
512
512
|
})
|
|
513
513
|
]
|
|
@@ -517,23 +517,23 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
|
|
|
517
517
|
]
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function Je({ applicationId: e, jobPostingId:
|
|
521
|
-
let { data:
|
|
522
|
-
variables: { id:
|
|
523
|
-
skip: !
|
|
524
|
-
}), { data:
|
|
520
|
+
function Je({ applicationId: e, jobPostingId: ee }) {
|
|
521
|
+
let { data: te, loading: ne, error: ie } = i({ variables: { applicationId: e } }), { data: ae, loading: se } = re({
|
|
522
|
+
variables: { id: ee ?? "" },
|
|
523
|
+
skip: !ee
|
|
524
|
+
}), { data: ce, loading: c } = r({ variables: { limit: 200 } }), [le, { loading: f }] = n({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [ue, { loading: p }] = t({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [de] = oe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [fe, { loading: pe }] = a({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [me] = o({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [m] = s({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), he = te?.jobApplicationInterviewRounds ?? [], g = ce?.interviewers.items ?? [], ge = ae?.jobPosting?.rounds ?? [], [_e, k] = A(!1), [j, M] = A(Z), [N, P] = A({
|
|
525
525
|
name: "",
|
|
526
|
-
roundType:
|
|
527
|
-
status:
|
|
526
|
+
roundType: u.PhoneScreen,
|
|
527
|
+
status: l.Scheduled,
|
|
528
528
|
scheduledAt: ""
|
|
529
|
-
}), [
|
|
529
|
+
}), [F, I] = A(null), [L, xe] = A([]), [Se, R] = A(d.Panel), [z, B] = A(null), [V, H] = A(""), [Ce, U] = A(null), W = ge.filter((e) => !he.some((t) => t.roundConfigId === e.id)), G = () => {
|
|
530
530
|
M(Z), P({
|
|
531
531
|
name: "",
|
|
532
|
-
roundType:
|
|
533
|
-
status:
|
|
532
|
+
roundType: u.PhoneScreen,
|
|
533
|
+
status: l.Scheduled,
|
|
534
534
|
scheduledAt: ""
|
|
535
535
|
});
|
|
536
|
-
},
|
|
536
|
+
}, K = (e) => {
|
|
537
537
|
if (M(e), e === Z) {
|
|
538
538
|
P((e) => ({
|
|
539
539
|
...e,
|
|
@@ -541,92 +541,92 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
541
541
|
}));
|
|
542
542
|
return;
|
|
543
543
|
}
|
|
544
|
-
let t =
|
|
544
|
+
let t = ge.find((t) => t.id === e);
|
|
545
545
|
t && P((e) => ({
|
|
546
546
|
...e,
|
|
547
547
|
name: t.name,
|
|
548
548
|
roundType: t.roundType
|
|
549
549
|
}));
|
|
550
|
-
},
|
|
551
|
-
let e =
|
|
550
|
+
}, we = () => {
|
|
551
|
+
let e = W[0];
|
|
552
552
|
e ? (M(e.id), P({
|
|
553
553
|
name: e.name,
|
|
554
554
|
roundType: e.roundType,
|
|
555
|
-
status:
|
|
555
|
+
status: l.Scheduled,
|
|
556
556
|
scheduledAt: ""
|
|
557
|
-
})) :
|
|
558
|
-
},
|
|
557
|
+
})) : G(), k(!0);
|
|
558
|
+
}, Te = async () => {
|
|
559
559
|
if (N.name.trim()) {
|
|
560
|
-
|
|
560
|
+
U(null);
|
|
561
561
|
try {
|
|
562
|
-
await
|
|
562
|
+
await le({ variables: { input: {
|
|
563
563
|
applicationId: e,
|
|
564
564
|
roundConfigId: j === Z ? void 0 : j,
|
|
565
565
|
name: N.name.trim(),
|
|
566
566
|
roundType: N.roundType,
|
|
567
567
|
status: N.status,
|
|
568
568
|
scheduledAt: N.scheduledAt || void 0
|
|
569
|
-
} } }),
|
|
569
|
+
} } }), G(), k(!1);
|
|
570
570
|
} catch (e) {
|
|
571
|
-
console.error("Failed to create interview round:", e),
|
|
571
|
+
console.error("Failed to create interview round:", e), U("Failed to create interview round.");
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
},
|
|
575
|
-
if (
|
|
576
|
-
|
|
574
|
+
}, Ee = async () => {
|
|
575
|
+
if (F && L.length !== 0) {
|
|
576
|
+
U(null);
|
|
577
577
|
try {
|
|
578
|
-
await
|
|
579
|
-
roundId:
|
|
580
|
-
assignments:
|
|
578
|
+
await ue({ variables: { input: {
|
|
579
|
+
roundId: F,
|
|
580
|
+
assignments: L.map((e) => ({
|
|
581
581
|
interviewerId: e,
|
|
582
582
|
role: Se
|
|
583
583
|
}))
|
|
584
|
-
} } }),
|
|
584
|
+
} } }), xe([]), R(d.Panel), I(null);
|
|
585
585
|
} catch (e) {
|
|
586
|
-
console.error("Failed to assign interviewers:", e),
|
|
586
|
+
console.error("Failed to assign interviewers:", e), U("Failed to assign interviewers.");
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
},
|
|
590
|
-
|
|
589
|
+
}, De = async (e, t) => {
|
|
590
|
+
U(null);
|
|
591
591
|
try {
|
|
592
|
-
await
|
|
592
|
+
await de({ variables: {
|
|
593
593
|
roundId: e,
|
|
594
594
|
interviewerId: t
|
|
595
595
|
} });
|
|
596
596
|
} catch (e) {
|
|
597
|
-
console.error("Failed to remove interviewer:", e),
|
|
597
|
+
console.error("Failed to remove interviewer:", e), U("Failed to remove interviewer.");
|
|
598
598
|
}
|
|
599
|
-
},
|
|
599
|
+
}, Oe = async () => {
|
|
600
600
|
if (z && V.trim()) {
|
|
601
|
-
|
|
601
|
+
U(null);
|
|
602
602
|
try {
|
|
603
|
-
await
|
|
603
|
+
await fe({ variables: { input: {
|
|
604
604
|
roundId: z,
|
|
605
605
|
message: V.trim()
|
|
606
606
|
} } }), H(""), B(null);
|
|
607
607
|
} catch (e) {
|
|
608
|
-
console.error("Failed to send candidate message:", e),
|
|
608
|
+
console.error("Failed to send candidate message:", e), U("Failed to send candidate message.");
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
},
|
|
612
|
-
|
|
611
|
+
}, ke = async (e, t) => {
|
|
612
|
+
U(null);
|
|
613
613
|
try {
|
|
614
|
-
await
|
|
614
|
+
await me({ variables: { input: {
|
|
615
615
|
roundId: e,
|
|
616
616
|
...t
|
|
617
617
|
} } });
|
|
618
618
|
} catch (e) {
|
|
619
|
-
throw console.error("Failed to submit feedback:", e),
|
|
619
|
+
throw console.error("Failed to submit feedback:", e), U("Failed to submit feedback."), e;
|
|
620
620
|
}
|
|
621
621
|
}, je = async (e, t) => {
|
|
622
|
-
|
|
622
|
+
U(null);
|
|
623
623
|
try {
|
|
624
|
-
await
|
|
624
|
+
await m({ variables: {
|
|
625
625
|
id: e,
|
|
626
626
|
input: t
|
|
627
627
|
} });
|
|
628
628
|
} catch (e) {
|
|
629
|
-
throw console.error("Failed to update feedback:", e),
|
|
629
|
+
throw console.error("Failed to update feedback:", e), U("Failed to update feedback."), e;
|
|
630
630
|
}
|
|
631
631
|
};
|
|
632
632
|
return /* @__PURE__ */ X("div", {
|
|
@@ -637,73 +637,73 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
637
637
|
children: [/* @__PURE__ */ X("h2", {
|
|
638
638
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
639
639
|
children: [/* @__PURE__ */ Y(J, { size: 14 }), "Interview Rounds"]
|
|
640
|
-
}), /* @__PURE__ */ X(
|
|
640
|
+
}), /* @__PURE__ */ X(h, {
|
|
641
641
|
size: "sm",
|
|
642
|
-
onClick:
|
|
643
|
-
children: [/* @__PURE__ */ Y(
|
|
642
|
+
onClick: we,
|
|
643
|
+
children: [/* @__PURE__ */ Y(Ae, { size: 14 }), "Add Round"]
|
|
644
644
|
})]
|
|
645
645
|
}),
|
|
646
646
|
/* @__PURE__ */ X("div", {
|
|
647
647
|
className: "p-5",
|
|
648
|
-
children: [
|
|
648
|
+
children: [Ce && /* @__PURE__ */ X("div", {
|
|
649
649
|
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",
|
|
650
|
-
children: [/* @__PURE__ */ Y(
|
|
651
|
-
}),
|
|
650
|
+
children: [/* @__PURE__ */ Y(be, { size: 16 }), Ce]
|
|
651
|
+
}), ne ? /* @__PURE__ */ X("div", {
|
|
652
652
|
className: "flex items-center gap-2 text-sm text-text-secondary py-4",
|
|
653
|
-
children: [/* @__PURE__ */ Y(
|
|
653
|
+
children: [/* @__PURE__ */ Y(q, {
|
|
654
654
|
size: 16,
|
|
655
655
|
className: "animate-spin"
|
|
656
656
|
}), "Loading interview rounds…"]
|
|
657
|
-
}) :
|
|
657
|
+
}) : ie ? /* @__PURE__ */ X("div", {
|
|
658
658
|
className: "p-3 rounded-lg bg-status-error-bg-subtle text-status-error-text text-sm flex items-center gap-2",
|
|
659
|
-
children: [/* @__PURE__ */ Y(
|
|
660
|
-
}) :
|
|
659
|
+
children: [/* @__PURE__ */ Y(be, { size: 16 }), "Could not load interview rounds."]
|
|
660
|
+
}) : he.length === 0 ? /* @__PURE__ */ Y("p", {
|
|
661
661
|
className: "text-sm text-text-secondary",
|
|
662
662
|
children: "No interview rounds yet."
|
|
663
663
|
}) : /* @__PURE__ */ Y("div", {
|
|
664
664
|
className: "space-y-5",
|
|
665
|
-
children:
|
|
665
|
+
children: he.map((t) => /* @__PURE__ */ Y(qe, {
|
|
666
666
|
round: t,
|
|
667
667
|
applicationId: e,
|
|
668
|
-
interviewers:
|
|
669
|
-
interviewersLoading:
|
|
668
|
+
interviewers: g,
|
|
669
|
+
interviewersLoading: c,
|
|
670
670
|
onAssign: () => {
|
|
671
|
-
|
|
671
|
+
I(t.id), xe([]), R(d.Panel);
|
|
672
672
|
},
|
|
673
|
-
onRemoveInterviewer:
|
|
673
|
+
onRemoveInterviewer: De,
|
|
674
674
|
onSendMessage: () => {
|
|
675
675
|
B(t.id), H("");
|
|
676
676
|
},
|
|
677
|
-
onSubmitFeedback:
|
|
677
|
+
onSubmitFeedback: ke,
|
|
678
678
|
onUpdateFeedback: je
|
|
679
679
|
}, t.id))
|
|
680
680
|
})]
|
|
681
681
|
}),
|
|
682
|
-
/* @__PURE__ */ Y(
|
|
683
|
-
open:
|
|
682
|
+
/* @__PURE__ */ Y(_, {
|
|
683
|
+
open: _e,
|
|
684
684
|
onOpenChange: (e) => {
|
|
685
|
-
|
|
685
|
+
k(e), e || G();
|
|
686
686
|
},
|
|
687
|
-
children: /* @__PURE__ */ X(
|
|
687
|
+
children: /* @__PURE__ */ X(v, {
|
|
688
688
|
className: "sm:max-w-md",
|
|
689
689
|
children: [
|
|
690
|
-
/* @__PURE__ */ X(
|
|
690
|
+
/* @__PURE__ */ X(x, { children: [/* @__PURE__ */ Y(ve, { children: "Add Interview Round" }), /* @__PURE__ */ Y(y, { children: "Schedule a new round for this candidate." })] }),
|
|
691
691
|
/* @__PURE__ */ X("div", {
|
|
692
692
|
className: "space-y-4 py-2",
|
|
693
693
|
children: [
|
|
694
|
-
|
|
695
|
-
/* @__PURE__ */ Y(
|
|
694
|
+
ee && /* @__PURE__ */ X("div", { children: [
|
|
695
|
+
/* @__PURE__ */ Y(C, {
|
|
696
696
|
htmlFor: "round-config",
|
|
697
697
|
children: "Posting round"
|
|
698
698
|
}),
|
|
699
|
-
/* @__PURE__ */ X(
|
|
699
|
+
/* @__PURE__ */ X(w, {
|
|
700
700
|
value: j,
|
|
701
|
-
onValueChange:
|
|
702
|
-
disabled:
|
|
703
|
-
children: [/* @__PURE__ */ Y(
|
|
701
|
+
onValueChange: K,
|
|
702
|
+
disabled: se,
|
|
703
|
+
children: [/* @__PURE__ */ Y(D, {
|
|
704
704
|
id: "round-config",
|
|
705
|
-
children: /* @__PURE__ */ Y(
|
|
706
|
-
}), /* @__PURE__ */ X(
|
|
705
|
+
children: /* @__PURE__ */ Y(O, { placeholder: "Select a configured round" })
|
|
706
|
+
}), /* @__PURE__ */ X(T, { children: [W.map((e) => /* @__PURE__ */ X(E, {
|
|
707
707
|
value: e.id,
|
|
708
708
|
children: [
|
|
709
709
|
"Round ",
|
|
@@ -711,7 +711,7 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
711
711
|
" — ",
|
|
712
712
|
e.name
|
|
713
713
|
]
|
|
714
|
-
}, e.id)), /* @__PURE__ */ Y(
|
|
714
|
+
}, e.id)), /* @__PURE__ */ Y(E, {
|
|
715
715
|
value: Z,
|
|
716
716
|
children: "Custom round"
|
|
717
717
|
})] })]
|
|
@@ -721,10 +721,10 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
721
721
|
children: "Configured rounds stay linked to posting-level bulk actions."
|
|
722
722
|
})
|
|
723
723
|
] }),
|
|
724
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
724
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
725
725
|
htmlFor: "round-name",
|
|
726
726
|
children: "Name"
|
|
727
|
-
}), /* @__PURE__ */ Y(
|
|
727
|
+
}), /* @__PURE__ */ Y(S, {
|
|
728
728
|
id: "round-name",
|
|
729
729
|
value: N.name,
|
|
730
730
|
onChange: (e) => P((t) => ({
|
|
@@ -734,45 +734,45 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
734
734
|
placeholder: "e.g. Technical Interview",
|
|
735
735
|
disabled: j !== Z
|
|
736
736
|
})] }),
|
|
737
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
737
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
738
738
|
htmlFor: "round-type",
|
|
739
739
|
children: "Round Type"
|
|
740
|
-
}), /* @__PURE__ */ X(
|
|
740
|
+
}), /* @__PURE__ */ X(w, {
|
|
741
741
|
value: N.roundType,
|
|
742
742
|
onValueChange: (e) => P((t) => ({
|
|
743
743
|
...t,
|
|
744
744
|
roundType: e
|
|
745
745
|
})),
|
|
746
746
|
disabled: j !== Z,
|
|
747
|
-
children: [/* @__PURE__ */ Y(
|
|
747
|
+
children: [/* @__PURE__ */ Y(D, {
|
|
748
748
|
id: "round-type",
|
|
749
|
-
children: /* @__PURE__ */ Y(
|
|
750
|
-
}), /* @__PURE__ */ Y(
|
|
749
|
+
children: /* @__PURE__ */ Y(O, {})
|
|
750
|
+
}), /* @__PURE__ */ Y(T, { children: Object.values(u).map((e) => /* @__PURE__ */ Y(E, {
|
|
751
751
|
value: e,
|
|
752
752
|
children: $(e)
|
|
753
753
|
}, e)) })]
|
|
754
754
|
})] }),
|
|
755
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
755
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
756
756
|
htmlFor: "round-status",
|
|
757
757
|
children: "Status"
|
|
758
|
-
}), /* @__PURE__ */ X(
|
|
758
|
+
}), /* @__PURE__ */ X(w, {
|
|
759
759
|
value: N.status,
|
|
760
760
|
onValueChange: (e) => P((t) => ({
|
|
761
761
|
...t,
|
|
762
762
|
status: e
|
|
763
763
|
})),
|
|
764
|
-
children: [/* @__PURE__ */ Y(
|
|
764
|
+
children: [/* @__PURE__ */ Y(D, {
|
|
765
765
|
id: "round-status",
|
|
766
|
-
children: /* @__PURE__ */ Y(
|
|
767
|
-
}), /* @__PURE__ */ Y(
|
|
766
|
+
children: /* @__PURE__ */ Y(O, {})
|
|
767
|
+
}), /* @__PURE__ */ Y(T, { children: Object.values(l).map((e) => /* @__PURE__ */ Y(E, {
|
|
768
768
|
value: e,
|
|
769
769
|
children: $(e)
|
|
770
770
|
}, e)) })]
|
|
771
771
|
})] }),
|
|
772
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
772
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
773
773
|
htmlFor: "round-scheduled",
|
|
774
774
|
children: "Scheduled At"
|
|
775
|
-
}), /* @__PURE__ */ Y(
|
|
775
|
+
}), /* @__PURE__ */ Y(S, {
|
|
776
776
|
id: "round-scheduled",
|
|
777
777
|
type: "datetime-local",
|
|
778
778
|
value: N.scheduledAt,
|
|
@@ -783,16 +783,16 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
783
783
|
})] })
|
|
784
784
|
]
|
|
785
785
|
}),
|
|
786
|
-
/* @__PURE__ */ X(
|
|
786
|
+
/* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(h, {
|
|
787
787
|
variant: "outline",
|
|
788
788
|
onClick: () => {
|
|
789
|
-
|
|
789
|
+
k(!1), G();
|
|
790
790
|
},
|
|
791
791
|
children: "Cancel"
|
|
792
|
-
}), /* @__PURE__ */ X(
|
|
793
|
-
onClick:
|
|
794
|
-
disabled:
|
|
795
|
-
children: [
|
|
792
|
+
}), /* @__PURE__ */ X(h, {
|
|
793
|
+
onClick: Te,
|
|
794
|
+
disabled: f || !N.name.trim(),
|
|
795
|
+
children: [f ? /* @__PURE__ */ Y(q, {
|
|
796
796
|
size: 14,
|
|
797
797
|
className: "animate-spin mr-1"
|
|
798
798
|
}) : null, "Create Round"]
|
|
@@ -800,47 +800,47 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
800
800
|
]
|
|
801
801
|
})
|
|
802
802
|
}),
|
|
803
|
-
/* @__PURE__ */ Y(
|
|
804
|
-
open: !!
|
|
805
|
-
onOpenChange: (e) => !e &&
|
|
806
|
-
children: /* @__PURE__ */ X(
|
|
803
|
+
/* @__PURE__ */ Y(_, {
|
|
804
|
+
open: !!F,
|
|
805
|
+
onOpenChange: (e) => !e && I(null),
|
|
806
|
+
children: /* @__PURE__ */ X(v, {
|
|
807
807
|
className: "sm:max-w-md",
|
|
808
808
|
children: [
|
|
809
|
-
/* @__PURE__ */ X(
|
|
809
|
+
/* @__PURE__ */ X(x, { children: [/* @__PURE__ */ Y(ve, { children: "Assign Interviewers" }), /* @__PURE__ */ Y(y, { children: "Choose interviewers and a role for this round." })] }),
|
|
810
810
|
/* @__PURE__ */ X("div", {
|
|
811
811
|
className: "space-y-4 py-2",
|
|
812
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
812
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
|
|
813
813
|
htmlFor: "assign-role",
|
|
814
814
|
children: "Role"
|
|
815
|
-
}), /* @__PURE__ */ X(
|
|
815
|
+
}), /* @__PURE__ */ X(w, {
|
|
816
816
|
value: Se,
|
|
817
817
|
onValueChange: (e) => R(e),
|
|
818
|
-
children: [/* @__PURE__ */ Y(
|
|
818
|
+
children: [/* @__PURE__ */ Y(D, {
|
|
819
819
|
id: "assign-role",
|
|
820
|
-
children: /* @__PURE__ */ Y(
|
|
821
|
-
}), /* @__PURE__ */ Y(
|
|
820
|
+
children: /* @__PURE__ */ Y(O, {})
|
|
821
|
+
}), /* @__PURE__ */ Y(T, { children: Object.values(d).map((e) => /* @__PURE__ */ Y(E, {
|
|
822
822
|
value: e,
|
|
823
823
|
children: $(e)
|
|
824
824
|
}, e)) })]
|
|
825
|
-
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
825
|
+
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, { children: "Interviewers" }), /* @__PURE__ */ Y("div", {
|
|
826
826
|
className: "mt-1.5 max-h-60 overflow-y-auto border border-border-default rounded-lg p-2 space-y-1",
|
|
827
|
-
children:
|
|
827
|
+
children: c ? /* @__PURE__ */ X("div", {
|
|
828
828
|
className: "flex items-center gap-2 text-sm text-text-secondary py-2",
|
|
829
|
-
children: [/* @__PURE__ */ Y(
|
|
829
|
+
children: [/* @__PURE__ */ Y(q, {
|
|
830
830
|
size: 14,
|
|
831
831
|
className: "animate-spin"
|
|
832
832
|
}), "Loading…"]
|
|
833
|
-
}) :
|
|
833
|
+
}) : g.length === 0 ? /* @__PURE__ */ Y("p", {
|
|
834
834
|
className: "text-sm text-text-secondary py-2",
|
|
835
835
|
children: "No interviewers found."
|
|
836
|
-
}) :
|
|
836
|
+
}) : g.map((e) => /* @__PURE__ */ X("label", {
|
|
837
837
|
className: "flex items-start gap-2 p-2 rounded-md hover:bg-bg-muted cursor-pointer",
|
|
838
838
|
children: [/* @__PURE__ */ Y("input", {
|
|
839
839
|
type: "checkbox",
|
|
840
840
|
className: "mt-1",
|
|
841
|
-
checked:
|
|
841
|
+
checked: L.includes(e.id),
|
|
842
842
|
onChange: (t) => {
|
|
843
|
-
|
|
843
|
+
xe((n) => t.target.checked ? [...n, e.id] : n.filter((t) => t !== e.id));
|
|
844
844
|
}
|
|
845
845
|
}), /* @__PURE__ */ X("div", {
|
|
846
846
|
className: "text-sm",
|
|
@@ -855,14 +855,14 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
855
855
|
}, e.id))
|
|
856
856
|
})] })]
|
|
857
857
|
}),
|
|
858
|
-
/* @__PURE__ */ X(
|
|
858
|
+
/* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(h, {
|
|
859
859
|
variant: "outline",
|
|
860
|
-
onClick: () =>
|
|
860
|
+
onClick: () => I(null),
|
|
861
861
|
children: "Cancel"
|
|
862
|
-
}), /* @__PURE__ */ X(
|
|
863
|
-
onClick:
|
|
864
|
-
disabled:
|
|
865
|
-
children: [
|
|
862
|
+
}), /* @__PURE__ */ X(h, {
|
|
863
|
+
onClick: Ee,
|
|
864
|
+
disabled: p || L.length === 0,
|
|
865
|
+
children: [p ? /* @__PURE__ */ Y(q, {
|
|
866
866
|
size: 14,
|
|
867
867
|
className: "animate-spin mr-1"
|
|
868
868
|
}) : null, "Assign"]
|
|
@@ -870,30 +870,30 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
870
870
|
]
|
|
871
871
|
})
|
|
872
872
|
}),
|
|
873
|
-
/* @__PURE__ */ Y(
|
|
873
|
+
/* @__PURE__ */ Y(_, {
|
|
874
874
|
open: !!z,
|
|
875
875
|
onOpenChange: (e) => !e && B(null),
|
|
876
|
-
children: /* @__PURE__ */ X(
|
|
876
|
+
children: /* @__PURE__ */ X(v, {
|
|
877
877
|
className: "sm:max-w-md",
|
|
878
878
|
children: [
|
|
879
|
-
/* @__PURE__ */ X(
|
|
879
|
+
/* @__PURE__ */ X(x, { children: [/* @__PURE__ */ Y(ve, { children: "Send Candidate Message" }), /* @__PURE__ */ Y(y, { children: "This message will be emailed to the candidate for this round." })] }),
|
|
880
880
|
/* @__PURE__ */ Y("div", {
|
|
881
881
|
className: "py-2",
|
|
882
|
-
children: /* @__PURE__ */ Y(
|
|
882
|
+
children: /* @__PURE__ */ Y(ye, {
|
|
883
883
|
value: V,
|
|
884
884
|
onChange: (e) => H(e.target.value),
|
|
885
885
|
placeholder: "Type the message to send…",
|
|
886
886
|
rows: 5
|
|
887
887
|
})
|
|
888
888
|
}),
|
|
889
|
-
/* @__PURE__ */ X(
|
|
889
|
+
/* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(h, {
|
|
890
890
|
variant: "outline",
|
|
891
891
|
onClick: () => B(null),
|
|
892
892
|
children: "Cancel"
|
|
893
|
-
}), /* @__PURE__ */ X(
|
|
894
|
-
onClick:
|
|
895
|
-
disabled:
|
|
896
|
-
children: [
|
|
893
|
+
}), /* @__PURE__ */ X(h, {
|
|
894
|
+
onClick: Oe,
|
|
895
|
+
disabled: pe || !V.trim(),
|
|
896
|
+
children: [pe ? /* @__PURE__ */ Y(q, {
|
|
897
897
|
size: 14,
|
|
898
898
|
className: "animate-spin mr-1"
|
|
899
899
|
}) : null, "Send Message"]
|
|
@@ -905,77 +905,77 @@ function Je({ applicationId: e, jobPostingId: a }) {
|
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
907
|
function Ye() {
|
|
908
|
-
let { id: e } =
|
|
908
|
+
let { id: e } = ze(), t = Re(), n = Le().search, [r, i] = A(!1), [re, ie] = A(!1), [ae, oe] = A(!1), [a, o] = A(!1), [s, ce] = A(""), [l, u] = A(!1), [le, d] = A(null), { data: p, loading: de, error: m } = ee({
|
|
909
909
|
variables: { id: e },
|
|
910
910
|
skip: !e
|
|
911
|
-
}),
|
|
912
|
-
|
|
913
|
-
if (!
|
|
914
|
-
|
|
911
|
+
}), h = p?.jobApplication?.productId ?? null;
|
|
912
|
+
k(() => {
|
|
913
|
+
if (!h) {
|
|
914
|
+
d(null);
|
|
915
915
|
return;
|
|
916
916
|
}
|
|
917
917
|
let e = !1;
|
|
918
|
-
return
|
|
918
|
+
return Be({
|
|
919
919
|
gateway: "global",
|
|
920
920
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
921
|
-
variables: { id:
|
|
921
|
+
variables: { id: h }
|
|
922
922
|
}).then((t) => {
|
|
923
923
|
if (e) return;
|
|
924
924
|
let n = t.data?.platformProduct?.name;
|
|
925
|
-
n &&
|
|
925
|
+
n && d(n);
|
|
926
926
|
}).catch(() => {}), () => {
|
|
927
927
|
e = !0;
|
|
928
928
|
};
|
|
929
|
-
}, [
|
|
930
|
-
let [
|
|
931
|
-
if (
|
|
932
|
-
(await
|
|
929
|
+
}, [h]);
|
|
930
|
+
let [he, { loading: g }] = c({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [ge, { loading: _e }] = ne({ fetchPolicy: "no-cache" }), [b, S] = A(!1), [C, w] = A(null), [T, E] = A(!1), [D, { loading: O }] = te({ fetchPolicy: "no-cache" }), [ye, { loading: H }] = se(), K = p?.jobApplication, De = async () => {
|
|
931
|
+
if (s.trim() && e) try {
|
|
932
|
+
(await ye({ variables: {
|
|
933
933
|
id: e,
|
|
934
|
-
message:
|
|
935
|
-
} })).data?.replyToJobApplication.success && (
|
|
934
|
+
message: s.trim()
|
|
935
|
+
} })).data?.replyToJobApplication.success && (u(!0), ce(""), setTimeout(() => u(!1), 3e3));
|
|
936
936
|
} catch (e) {
|
|
937
937
|
console.error("Failed to send reply:", e);
|
|
938
938
|
}
|
|
939
|
-
},
|
|
939
|
+
}, Ae = async (t) => {
|
|
940
940
|
if (e) {
|
|
941
|
-
|
|
941
|
+
ie(!1);
|
|
942
942
|
try {
|
|
943
|
-
await
|
|
943
|
+
await he({ variables: {
|
|
944
944
|
id: e,
|
|
945
945
|
input: { status: t }
|
|
946
946
|
} }), i(!0), setTimeout(() => i(!1), 3e3);
|
|
947
947
|
} catch (e) {
|
|
948
|
-
console.error("Failed to update status:", e),
|
|
948
|
+
console.error("Failed to update status:", e), ie(!0), setTimeout(() => ie(!1), 4e3);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
},
|
|
951
|
+
}, Me = async () => {
|
|
952
952
|
if (e) {
|
|
953
|
-
|
|
953
|
+
o(!1);
|
|
954
954
|
try {
|
|
955
|
-
let t = (await
|
|
956
|
-
t ? window.open(t, "_blank", "noopener,noreferrer") :
|
|
955
|
+
let t = (await ge({ variables: { id: e } })).data?.jobApplicationResumeUrl;
|
|
956
|
+
t ? window.open(t, "_blank", "noopener,noreferrer") : o(!0);
|
|
957
957
|
} catch (e) {
|
|
958
|
-
console.error("Failed to get resume URL:", e),
|
|
958
|
+
console.error("Failed to get resume URL:", e), o(!0);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
},
|
|
961
|
+
}, Pe = async () => {
|
|
962
962
|
if (e) {
|
|
963
|
-
|
|
963
|
+
E(!1), w(null), S(!0);
|
|
964
964
|
try {
|
|
965
|
-
let t = (await
|
|
966
|
-
t ?
|
|
965
|
+
let t = (await D({ variables: { id: e } })).data?.jobApplicationResumePreviewUrl;
|
|
966
|
+
t ? w(t) : E(!0);
|
|
967
967
|
} catch (e) {
|
|
968
|
-
console.error("Failed to get resume preview URL:", e),
|
|
968
|
+
console.error("Failed to get resume preview URL:", e), E(!0);
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
|
-
},
|
|
972
|
-
|
|
971
|
+
}, Fe = async () => {
|
|
972
|
+
K?.email && (ue("light"), await f(K.email), oe(!0), setTimeout(() => oe(!1), 2e3));
|
|
973
973
|
};
|
|
974
|
-
if (
|
|
974
|
+
if (de) return /* @__PURE__ */ Y("div", {
|
|
975
975
|
className: "min-h-full flex items-center justify-center py-20",
|
|
976
976
|
children: /* @__PURE__ */ X("div", {
|
|
977
977
|
className: "text-center",
|
|
978
|
-
children: [/* @__PURE__ */ Y(
|
|
978
|
+
children: [/* @__PURE__ */ Y(q, {
|
|
979
979
|
size: 36,
|
|
980
980
|
className: "animate-spin text-[var(--color-text-secondary)] mx-auto mb-3"
|
|
981
981
|
}), /* @__PURE__ */ Y("p", {
|
|
@@ -984,21 +984,21 @@ function Ye() {
|
|
|
984
984
|
})]
|
|
985
985
|
})
|
|
986
986
|
});
|
|
987
|
-
if (
|
|
987
|
+
if (m || !K) return /* @__PURE__ */ Y("div", {
|
|
988
988
|
className: "p-6",
|
|
989
|
-
children: /* @__PURE__ */ Y(
|
|
989
|
+
children: /* @__PURE__ */ Y(M, {
|
|
990
990
|
illustration: "empty-search",
|
|
991
991
|
title: "Application not found",
|
|
992
|
-
description:
|
|
992
|
+
description: m?.message || "This application may have been deleted or you don't have access.",
|
|
993
993
|
action: /* @__PURE__ */ X("button", {
|
|
994
994
|
type: "button",
|
|
995
995
|
onClick: () => t(`/support/applications${n}`),
|
|
996
996
|
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",
|
|
997
|
-
children: [/* @__PURE__ */ Y(
|
|
997
|
+
children: [/* @__PURE__ */ Y(I, { size: 16 }), "Back to Applications"]
|
|
998
998
|
})
|
|
999
999
|
})
|
|
1000
1000
|
});
|
|
1001
|
-
let J = He[
|
|
1001
|
+
let J = He[K.status] || He.NEW, Ie = J.icon, Z = `${K.firstName} ${K.lastName}`.trim(), $ = We(K.resumeFileSize), Ge = Ke(K.linkedinUrl), qe = Ke(K.portfolioUrl);
|
|
1002
1002
|
return /* @__PURE__ */ X("div", {
|
|
1003
1003
|
className: "p-6 animate-in fade-in duration-200",
|
|
1004
1004
|
children: [
|
|
@@ -1008,37 +1008,37 @@ function Ye() {
|
|
|
1008
1008
|
type: "button",
|
|
1009
1009
|
onClick: () => t(`/support/applications${n}`),
|
|
1010
1010
|
className: "inline-flex items-center gap-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
1011
|
-
children: [/* @__PURE__ */ Y(
|
|
1011
|
+
children: [/* @__PURE__ */ Y(I, { size: 18 }), /* @__PURE__ */ Y("span", {
|
|
1012
1012
|
className: "text-sm font-medium",
|
|
1013
1013
|
children: "Back to Applications"
|
|
1014
1014
|
})]
|
|
1015
1015
|
}), /* @__PURE__ */ X("div", {
|
|
1016
1016
|
className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
|
|
1017
|
-
children: [/* @__PURE__ */ Y(
|
|
1017
|
+
children: [/* @__PURE__ */ Y(z, { size: 12 }), Ue(K.createdAt)]
|
|
1018
1018
|
})]
|
|
1019
1019
|
}),
|
|
1020
1020
|
r && /* @__PURE__ */ X("div", {
|
|
1021
1021
|
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",
|
|
1022
|
-
children: [/* @__PURE__ */ Y(
|
|
1022
|
+
children: [/* @__PURE__ */ Y(R, { size: 18 }), "Status updated successfully"]
|
|
1023
1023
|
}),
|
|
1024
|
-
|
|
1024
|
+
re && /* @__PURE__ */ X("div", {
|
|
1025
1025
|
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",
|
|
1026
|
-
children: [/* @__PURE__ */ Y(
|
|
1026
|
+
children: [/* @__PURE__ */ Y(be, { size: 18 }), "Couldn't update the status. Please try again."]
|
|
1027
1027
|
}),
|
|
1028
|
-
/* @__PURE__ */ Y(
|
|
1028
|
+
/* @__PURE__ */ Y(P, {
|
|
1029
1029
|
className: "mb-6",
|
|
1030
1030
|
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."
|
|
1031
1031
|
}),
|
|
1032
|
-
/* @__PURE__ */ Y(
|
|
1032
|
+
/* @__PURE__ */ Y(N, {
|
|
1033
1033
|
storageKey: "support-application-detail",
|
|
1034
1034
|
title: "Move this candidate forward",
|
|
1035
1035
|
className: "mb-6",
|
|
1036
1036
|
steps: [
|
|
1037
|
-
...
|
|
1037
|
+
...K.resumeFileName ? [{
|
|
1038
1038
|
id: "resume",
|
|
1039
1039
|
label: "Review the resume",
|
|
1040
1040
|
description: "Download and read the candidate's resume.",
|
|
1041
|
-
onClick: () => void
|
|
1041
|
+
onClick: () => void Me()
|
|
1042
1042
|
}] : [],
|
|
1043
1043
|
{
|
|
1044
1044
|
id: "advance",
|
|
@@ -1068,7 +1068,7 @@ function Ye() {
|
|
|
1068
1068
|
className: "flex items-start gap-4",
|
|
1069
1069
|
children: [/* @__PURE__ */ Y("div", {
|
|
1070
1070
|
className: "size-12 rounded-xl bg-bg-surface/80 dark:bg-bg-surface/10 flex items-center justify-center shadow-sm",
|
|
1071
|
-
children: /* @__PURE__ */ Y(
|
|
1071
|
+
children: /* @__PURE__ */ Y(Ie, {
|
|
1072
1072
|
size: 24,
|
|
1073
1073
|
className: J.color
|
|
1074
1074
|
})
|
|
@@ -1082,7 +1082,7 @@ function Ye() {
|
|
|
1082
1082
|
className: "flex items-center gap-3 text-sm flex-wrap",
|
|
1083
1083
|
children: [/* @__PURE__ */ X("span", {
|
|
1084
1084
|
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${J.color} bg-bg-surface/60 dark:bg-bg-surface/10`,
|
|
1085
|
-
children: [/* @__PURE__ */ Y(
|
|
1085
|
+
children: [/* @__PURE__ */ Y(Ie, { size: 12 }), J.label]
|
|
1086
1086
|
}), /* @__PURE__ */ X("span", {
|
|
1087
1087
|
className: "text-[var(--color-text-secondary)]",
|
|
1088
1088
|
children: [
|
|
@@ -1090,7 +1090,7 @@ function Ye() {
|
|
|
1090
1090
|
" ",
|
|
1091
1091
|
/* @__PURE__ */ Y("strong", {
|
|
1092
1092
|
className: "text-[var(--color-text-primary)]",
|
|
1093
|
-
children:
|
|
1093
|
+
children: K.position
|
|
1094
1094
|
})
|
|
1095
1095
|
]
|
|
1096
1096
|
})]
|
|
@@ -1109,7 +1109,7 @@ function Ye() {
|
|
|
1109
1109
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1110
1110
|
children: /* @__PURE__ */ X("h2", {
|
|
1111
1111
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1112
|
-
children: [/* @__PURE__ */ Y(
|
|
1112
|
+
children: [/* @__PURE__ */ Y(Ne, { size: 14 }), "Applicant Information"]
|
|
1113
1113
|
})
|
|
1114
1114
|
}), /* @__PURE__ */ Y("div", {
|
|
1115
1115
|
className: "p-5",
|
|
@@ -1120,7 +1120,7 @@ function Ye() {
|
|
|
1120
1120
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1121
1121
|
children: [/* @__PURE__ */ Y("div", {
|
|
1122
1122
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
1123
|
-
children: /* @__PURE__ */ Y(
|
|
1123
|
+
children: /* @__PURE__ */ Y(Ne, {
|
|
1124
1124
|
size: 16,
|
|
1125
1125
|
className: "text-accent-blue"
|
|
1126
1126
|
})
|
|
@@ -1136,7 +1136,7 @@ function Ye() {
|
|
|
1136
1136
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1137
1137
|
children: [/* @__PURE__ */ Y("div", {
|
|
1138
1138
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
1139
|
-
children: /* @__PURE__ */ Y(
|
|
1139
|
+
children: /* @__PURE__ */ Y(Ee, {
|
|
1140
1140
|
size: 16,
|
|
1141
1141
|
className: "text-accent-indigo"
|
|
1142
1142
|
})
|
|
@@ -1148,18 +1148,18 @@ function Ye() {
|
|
|
1148
1148
|
}), /* @__PURE__ */ X("div", {
|
|
1149
1149
|
className: "flex items-center gap-1.5",
|
|
1150
1150
|
children: [/* @__PURE__ */ Y("a", {
|
|
1151
|
-
href: `mailto:${
|
|
1151
|
+
href: `mailto:${K.email}`,
|
|
1152
1152
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate",
|
|
1153
|
-
children:
|
|
1153
|
+
children: K.email
|
|
1154
1154
|
}), /* @__PURE__ */ Y("button", {
|
|
1155
1155
|
type: "button",
|
|
1156
|
-
onClick:
|
|
1156
|
+
onClick: Fe,
|
|
1157
1157
|
className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
|
|
1158
1158
|
title: "Copy email",
|
|
1159
|
-
children:
|
|
1159
|
+
children: ae ? /* @__PURE__ */ Y(R, {
|
|
1160
1160
|
size: 12,
|
|
1161
1161
|
className: "text-status-success-text"
|
|
1162
|
-
}) : /* @__PURE__ */ Y(
|
|
1162
|
+
}) : /* @__PURE__ */ Y(B, {
|
|
1163
1163
|
size: 12,
|
|
1164
1164
|
className: "text-[var(--color-text-secondary)]"
|
|
1165
1165
|
})
|
|
@@ -1167,11 +1167,11 @@ function Ye() {
|
|
|
1167
1167
|
})]
|
|
1168
1168
|
})]
|
|
1169
1169
|
}),
|
|
1170
|
-
|
|
1170
|
+
K.phone && /* @__PURE__ */ X("div", {
|
|
1171
1171
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1172
1172
|
children: [/* @__PURE__ */ Y("div", {
|
|
1173
1173
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
1174
|
-
children: /* @__PURE__ */ Y(
|
|
1174
|
+
children: /* @__PURE__ */ Y(ke, {
|
|
1175
1175
|
size: 16,
|
|
1176
1176
|
className: "text-status-success-text"
|
|
1177
1177
|
})
|
|
@@ -1179,16 +1179,16 @@ function Ye() {
|
|
|
1179
1179
|
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
1180
1180
|
children: "Phone"
|
|
1181
1181
|
}), /* @__PURE__ */ Y("a", {
|
|
1182
|
-
href: `tel:${
|
|
1182
|
+
href: `tel:${K.phone}`,
|
|
1183
1183
|
className: "text-sm font-semibold text-[var(--color-text-primary)] hover:underline",
|
|
1184
|
-
children:
|
|
1184
|
+
children: K.phone
|
|
1185
1185
|
})] })]
|
|
1186
1186
|
}),
|
|
1187
1187
|
/* @__PURE__ */ X("div", {
|
|
1188
1188
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1189
1189
|
children: [/* @__PURE__ */ Y("div", {
|
|
1190
1190
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
|
|
1191
|
-
children: /* @__PURE__ */ Y(
|
|
1191
|
+
children: /* @__PURE__ */ Y(L, {
|
|
1192
1192
|
size: 16,
|
|
1193
1193
|
className: "text-accent-blue"
|
|
1194
1194
|
})
|
|
@@ -1197,14 +1197,14 @@ function Ye() {
|
|
|
1197
1197
|
children: "Position"
|
|
1198
1198
|
}), /* @__PURE__ */ Y("p", {
|
|
1199
1199
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1200
|
-
children:
|
|
1200
|
+
children: K.position
|
|
1201
1201
|
})] })]
|
|
1202
1202
|
}),
|
|
1203
|
-
|
|
1203
|
+
K.department && /* @__PURE__ */ X("div", {
|
|
1204
1204
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1205
1205
|
children: [/* @__PURE__ */ Y("div", {
|
|
1206
1206
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
1207
|
-
children: /* @__PURE__ */ Y(
|
|
1207
|
+
children: /* @__PURE__ */ Y(xe, {
|
|
1208
1208
|
size: 16,
|
|
1209
1209
|
className: "text-accent-purple"
|
|
1210
1210
|
})
|
|
@@ -1213,14 +1213,14 @@ function Ye() {
|
|
|
1213
1213
|
children: "Department"
|
|
1214
1214
|
}), /* @__PURE__ */ Y("p", {
|
|
1215
1215
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1216
|
-
children:
|
|
1216
|
+
children: K.department
|
|
1217
1217
|
})] })]
|
|
1218
1218
|
}),
|
|
1219
|
-
|
|
1219
|
+
K.linkedinUrl && /* @__PURE__ */ X("div", {
|
|
1220
1220
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1221
1221
|
children: [/* @__PURE__ */ Y("div", {
|
|
1222
1222
|
className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
1223
|
-
children: /* @__PURE__ */ Y(
|
|
1223
|
+
children: /* @__PURE__ */ Y(Te, {
|
|
1224
1224
|
size: 16,
|
|
1225
1225
|
className: "text-accent-blue"
|
|
1226
1226
|
})
|
|
@@ -1234,18 +1234,18 @@ function Ye() {
|
|
|
1234
1234
|
target: "_blank",
|
|
1235
1235
|
rel: "noopener noreferrer",
|
|
1236
1236
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
1237
|
-
children:
|
|
1237
|
+
children: K.linkedinUrl
|
|
1238
1238
|
}) : /* @__PURE__ */ Y("span", {
|
|
1239
1239
|
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
1240
|
-
children:
|
|
1240
|
+
children: K.linkedinUrl
|
|
1241
1241
|
})]
|
|
1242
1242
|
})]
|
|
1243
1243
|
}),
|
|
1244
|
-
|
|
1244
|
+
K.portfolioUrl && /* @__PURE__ */ X("div", {
|
|
1245
1245
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1246
1246
|
children: [/* @__PURE__ */ Y("div", {
|
|
1247
1247
|
className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
1248
|
-
children: /* @__PURE__ */ Y(
|
|
1248
|
+
children: /* @__PURE__ */ Y(we, {
|
|
1249
1249
|
size: 16,
|
|
1250
1250
|
className: "text-accent-indigo"
|
|
1251
1251
|
})
|
|
@@ -1259,18 +1259,18 @@ function Ye() {
|
|
|
1259
1259
|
target: "_blank",
|
|
1260
1260
|
rel: "noopener noreferrer",
|
|
1261
1261
|
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
1262
|
-
children:
|
|
1262
|
+
children: K.portfolioUrl
|
|
1263
1263
|
}) : /* @__PURE__ */ Y("span", {
|
|
1264
1264
|
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
1265
|
-
children:
|
|
1265
|
+
children: K.portfolioUrl
|
|
1266
1266
|
})]
|
|
1267
1267
|
})]
|
|
1268
1268
|
}),
|
|
1269
|
-
|
|
1269
|
+
K.productId && le && /* @__PURE__ */ X("div", {
|
|
1270
1270
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1271
1271
|
children: [/* @__PURE__ */ Y("div", {
|
|
1272
1272
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
1273
|
-
children: /* @__PURE__ */ Y(
|
|
1273
|
+
children: /* @__PURE__ */ Y(Oe, {
|
|
1274
1274
|
size: 16,
|
|
1275
1275
|
className: "text-accent-purple"
|
|
1276
1276
|
})
|
|
@@ -1279,14 +1279,14 @@ function Ye() {
|
|
|
1279
1279
|
children: "Product"
|
|
1280
1280
|
}), /* @__PURE__ */ Y("p", {
|
|
1281
1281
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1282
|
-
children:
|
|
1282
|
+
children: le
|
|
1283
1283
|
})] })]
|
|
1284
1284
|
}),
|
|
1285
1285
|
/* @__PURE__ */ X("div", {
|
|
1286
1286
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1287
1287
|
children: [/* @__PURE__ */ Y("div", {
|
|
1288
1288
|
className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
1289
|
-
children: /* @__PURE__ */ Y(
|
|
1289
|
+
children: /* @__PURE__ */ Y(G, {
|
|
1290
1290
|
size: 16,
|
|
1291
1291
|
className: "text-status-success-text"
|
|
1292
1292
|
})
|
|
@@ -1295,7 +1295,7 @@ function Ye() {
|
|
|
1295
1295
|
children: "Source"
|
|
1296
1296
|
}), /* @__PURE__ */ Y("p", {
|
|
1297
1297
|
className: "text-sm font-semibold text-[var(--color-text-primary)] capitalize",
|
|
1298
|
-
children:
|
|
1298
|
+
children: K.source.toLowerCase()
|
|
1299
1299
|
})] })]
|
|
1300
1300
|
})
|
|
1301
1301
|
]
|
|
@@ -1304,37 +1304,37 @@ function Ye() {
|
|
|
1304
1304
|
}),
|
|
1305
1305
|
e && /* @__PURE__ */ Y(Je, {
|
|
1306
1306
|
applicationId: e,
|
|
1307
|
-
jobPostingId:
|
|
1307
|
+
jobPostingId: p.jobApplication.jobPostingId
|
|
1308
1308
|
}),
|
|
1309
|
-
|
|
1309
|
+
K.coverLetter && /* @__PURE__ */ X("div", {
|
|
1310
1310
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
1311
1311
|
children: [/* @__PURE__ */ Y("div", {
|
|
1312
1312
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1313
1313
|
children: /* @__PURE__ */ X("h2", {
|
|
1314
1314
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1315
|
-
children: [/* @__PURE__ */ Y(
|
|
1315
|
+
children: [/* @__PURE__ */ Y(W, { size: 14 }), "Cover Letter"]
|
|
1316
1316
|
})
|
|
1317
1317
|
}), /* @__PURE__ */ Y("div", {
|
|
1318
1318
|
className: "p-5",
|
|
1319
1319
|
children: /* @__PURE__ */ Y("p", {
|
|
1320
1320
|
className: "text-sm text-[var(--color-text-primary)] leading-relaxed whitespace-pre-wrap",
|
|
1321
|
-
children:
|
|
1321
|
+
children: K.coverLetter
|
|
1322
1322
|
})
|
|
1323
1323
|
})]
|
|
1324
1324
|
}),
|
|
1325
|
-
|
|
1325
|
+
K.metadata && Object.keys(K.metadata).length > 0 && /* @__PURE__ */ X("div", {
|
|
1326
1326
|
className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
|
|
1327
1327
|
children: [/* @__PURE__ */ Y("div", {
|
|
1328
1328
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1329
1329
|
children: /* @__PURE__ */ X("h2", {
|
|
1330
1330
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1331
|
-
children: [/* @__PURE__ */ Y(
|
|
1331
|
+
children: [/* @__PURE__ */ Y(Ce, { size: 14 }), "Additional Data"]
|
|
1332
1332
|
})
|
|
1333
1333
|
}), /* @__PURE__ */ Y("div", {
|
|
1334
1334
|
className: "p-5",
|
|
1335
1335
|
children: /* @__PURE__ */ Y("div", {
|
|
1336
1336
|
className: "space-y-2.5",
|
|
1337
|
-
children: Object.entries(
|
|
1337
|
+
children: Object.entries(K.metadata).map(([e, t]) => /* @__PURE__ */ X("div", {
|
|
1338
1338
|
className: "flex items-start gap-3 py-1.5 border-b border-[var(--color-border-default)] last:border-0",
|
|
1339
1339
|
children: [/* @__PURE__ */ Y("span", {
|
|
1340
1340
|
className: "text-xs font-medium text-[var(--color-text-secondary)] min-w-[120px] uppercase tracking-wider",
|
|
@@ -1357,16 +1357,16 @@ function Ye() {
|
|
|
1357
1357
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1358
1358
|
children: /* @__PURE__ */ X("h2", {
|
|
1359
1359
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1360
|
-
children: [/* @__PURE__ */ Y(
|
|
1360
|
+
children: [/* @__PURE__ */ Y(W, { size: 14 }), "Resume"]
|
|
1361
1361
|
})
|
|
1362
1362
|
}), /* @__PURE__ */ Y("div", {
|
|
1363
1363
|
className: "p-5",
|
|
1364
|
-
children:
|
|
1364
|
+
children: K.resumeFileName ? /* @__PURE__ */ X(Ve, { children: [
|
|
1365
1365
|
/* @__PURE__ */ X("div", {
|
|
1366
1366
|
className: "flex items-center gap-3 mb-3",
|
|
1367
1367
|
children: [/* @__PURE__ */ Y("div", {
|
|
1368
1368
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center flex-shrink-0",
|
|
1369
|
-
children: /* @__PURE__ */ Y(
|
|
1369
|
+
children: /* @__PURE__ */ Y(W, {
|
|
1370
1370
|
size: 16,
|
|
1371
1371
|
className: "text-accent-blue"
|
|
1372
1372
|
})
|
|
@@ -1374,7 +1374,7 @@ function Ye() {
|
|
|
1374
1374
|
className: "min-w-0",
|
|
1375
1375
|
children: [/* @__PURE__ */ Y("p", {
|
|
1376
1376
|
className: "text-sm font-medium text-[var(--color-text-primary)] truncate",
|
|
1377
|
-
children:
|
|
1377
|
+
children: K.resumeFileName
|
|
1378
1378
|
}), $ ? /* @__PURE__ */ Y("p", {
|
|
1379
1379
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
1380
1380
|
children: $
|
|
@@ -1383,25 +1383,25 @@ function Ye() {
|
|
|
1383
1383
|
}),
|
|
1384
1384
|
/* @__PURE__ */ X("button", {
|
|
1385
1385
|
type: "button",
|
|
1386
|
-
onClick:
|
|
1387
|
-
disabled:
|
|
1386
|
+
onClick: Me,
|
|
1387
|
+
disabled: _e,
|
|
1388
1388
|
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",
|
|
1389
|
-
children: [
|
|
1389
|
+
children: [_e ? /* @__PURE__ */ Y(q, {
|
|
1390
1390
|
size: 15,
|
|
1391
1391
|
className: "animate-spin"
|
|
1392
|
-
}) : /* @__PURE__ */ Y(
|
|
1392
|
+
}) : /* @__PURE__ */ Y(V, { size: 15 }), "Download Resume"]
|
|
1393
1393
|
}),
|
|
1394
1394
|
/* @__PURE__ */ X("button", {
|
|
1395
1395
|
type: "button",
|
|
1396
|
-
onClick:
|
|
1397
|
-
disabled:
|
|
1396
|
+
onClick: Pe,
|
|
1397
|
+
disabled: O,
|
|
1398
1398
|
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",
|
|
1399
|
-
children: [
|
|
1399
|
+
children: [O ? /* @__PURE__ */ Y(q, {
|
|
1400
1400
|
size: 15,
|
|
1401
1401
|
className: "animate-spin"
|
|
1402
|
-
}) : /* @__PURE__ */ Y(
|
|
1402
|
+
}) : /* @__PURE__ */ Y(U, { size: 15 }), "Preview Resume"]
|
|
1403
1403
|
}),
|
|
1404
|
-
|
|
1404
|
+
a && /* @__PURE__ */ Y("p", {
|
|
1405
1405
|
className: "mt-2 text-xs text-status-error-text",
|
|
1406
1406
|
children: "Could not generate a download link. Please try again."
|
|
1407
1407
|
})
|
|
@@ -1417,7 +1417,7 @@ function Ye() {
|
|
|
1417
1417
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1418
1418
|
children: /* @__PURE__ */ X("h2", {
|
|
1419
1419
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1420
|
-
children: [/* @__PURE__ */ Y(
|
|
1420
|
+
children: [/* @__PURE__ */ Y(Se, { size: 14 }), "Timeline"]
|
|
1421
1421
|
})
|
|
1422
1422
|
}), /* @__PURE__ */ X("div", {
|
|
1423
1423
|
className: "p-5 space-y-4",
|
|
@@ -1428,51 +1428,51 @@ function Ye() {
|
|
|
1428
1428
|
children: "Applied"
|
|
1429
1429
|
}), /* @__PURE__ */ Y("p", {
|
|
1430
1430
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
1431
|
-
children: Q(
|
|
1431
|
+
children: Q(K.createdAt)
|
|
1432
1432
|
})] })]
|
|
1433
|
-
}),
|
|
1433
|
+
}), K.updatedAt !== K.createdAt && /* @__PURE__ */ X("div", {
|
|
1434
1434
|
className: "flex items-start gap-3",
|
|
1435
1435
|
children: [/* @__PURE__ */ Y("div", { className: "size-2 rounded-full bg-status-warning-bg mt-1.5 flex-shrink-0" }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
|
|
1436
1436
|
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
1437
1437
|
children: "Last Updated"
|
|
1438
1438
|
}), /* @__PURE__ */ Y("p", {
|
|
1439
1439
|
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
1440
|
-
children: Q(
|
|
1440
|
+
children: Q(K.updatedAt)
|
|
1441
1441
|
})] })]
|
|
1442
1442
|
})]
|
|
1443
1443
|
})]
|
|
1444
1444
|
}),
|
|
1445
|
-
/* @__PURE__ */ X(
|
|
1445
|
+
/* @__PURE__ */ X(j, {
|
|
1446
1446
|
"data-tour": "support-application-reply",
|
|
1447
1447
|
className: "overflow-hidden p-0",
|
|
1448
1448
|
children: [/* @__PURE__ */ Y("div", {
|
|
1449
1449
|
className: "px-5 py-3.5 border-b border-border-seam",
|
|
1450
1450
|
children: /* @__PURE__ */ X("h2", {
|
|
1451
1451
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
|
|
1452
|
-
children: [/* @__PURE__ */ Y(
|
|
1452
|
+
children: [/* @__PURE__ */ Y(je, { size: 12 }), "Reply"]
|
|
1453
1453
|
})
|
|
1454
1454
|
}), /* @__PURE__ */ X("div", {
|
|
1455
1455
|
className: "p-5",
|
|
1456
1456
|
children: [
|
|
1457
|
-
|
|
1457
|
+
l && /* @__PURE__ */ X("div", {
|
|
1458
1458
|
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",
|
|
1459
|
-
children: [/* @__PURE__ */ Y(
|
|
1459
|
+
children: [/* @__PURE__ */ Y(R, { size: 14 }), "Reply sent to the applicant!"]
|
|
1460
1460
|
}),
|
|
1461
|
-
/* @__PURE__ */ Y(
|
|
1461
|
+
/* @__PURE__ */ Y(me, {
|
|
1462
1462
|
id: "reply-message",
|
|
1463
|
-
value:
|
|
1464
|
-
onChange:
|
|
1463
|
+
value: s,
|
|
1464
|
+
onChange: ce,
|
|
1465
1465
|
placeholder: "Type your reply… This will be sent as a branded email to the applicant."
|
|
1466
1466
|
}),
|
|
1467
1467
|
/* @__PURE__ */ X("button", {
|
|
1468
1468
|
type: "button",
|
|
1469
|
-
onClick:
|
|
1470
|
-
disabled:
|
|
1469
|
+
onClick: De,
|
|
1470
|
+
disabled: H || !s.trim(),
|
|
1471
1471
|
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",
|
|
1472
|
-
children: [
|
|
1472
|
+
children: [H ? /* @__PURE__ */ Y(q, {
|
|
1473
1473
|
size: 15,
|
|
1474
1474
|
className: "animate-spin"
|
|
1475
|
-
}) : /* @__PURE__ */ Y(
|
|
1475
|
+
}) : /* @__PURE__ */ Y(je, { size: 15 }), "Send Reply"]
|
|
1476
1476
|
})
|
|
1477
1477
|
]
|
|
1478
1478
|
})]
|
|
@@ -1494,26 +1494,26 @@ function Ye() {
|
|
|
1494
1494
|
children: "Status"
|
|
1495
1495
|
}), /* @__PURE__ */ Y("select", {
|
|
1496
1496
|
id: "jobapplicationdetailpage-status-0",
|
|
1497
|
-
value:
|
|
1498
|
-
onChange: (e) =>
|
|
1499
|
-
disabled:
|
|
1497
|
+
value: K.status,
|
|
1498
|
+
onChange: (e) => Ae(e.target.value),
|
|
1499
|
+
disabled: g,
|
|
1500
1500
|
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",
|
|
1501
|
-
children:
|
|
1501
|
+
children: pe.map((e) => /* @__PURE__ */ Y("option", {
|
|
1502
1502
|
value: e,
|
|
1503
|
-
children:
|
|
1503
|
+
children: fe[e] || e
|
|
1504
1504
|
}, e))
|
|
1505
1505
|
})] }), /* @__PURE__ */ X("div", {
|
|
1506
1506
|
className: "space-y-2",
|
|
1507
1507
|
children: [/* @__PURE__ */ X("a", {
|
|
1508
|
-
href: `mailto:${
|
|
1508
|
+
href: `mailto:${K.email}?subject=${encodeURIComponent(`Your application for ${K.position}`)}`,
|
|
1509
1509
|
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-primary)] rounded-lg text-sm font-medium hover:bg-[var(--color-bg-muted)] transition-all",
|
|
1510
|
-
children: [/* @__PURE__ */ Y(
|
|
1511
|
-
}),
|
|
1510
|
+
children: [/* @__PURE__ */ Y(Ee, { size: 15 }), "Email Applicant"]
|
|
1511
|
+
}), K.status !== "ARCHIVED" && /* @__PURE__ */ X("button", {
|
|
1512
1512
|
type: "button",
|
|
1513
|
-
onClick: () =>
|
|
1514
|
-
disabled:
|
|
1513
|
+
onClick: () => Ae("ARCHIVED"),
|
|
1514
|
+
disabled: g,
|
|
1515
1515
|
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",
|
|
1516
|
-
children: [/* @__PURE__ */ Y(
|
|
1516
|
+
children: [/* @__PURE__ */ Y(F, { size: 15 }), "Archive"]
|
|
1517
1517
|
})]
|
|
1518
1518
|
})]
|
|
1519
1519
|
})]
|
|
@@ -1521,25 +1521,25 @@ function Ye() {
|
|
|
1521
1521
|
]
|
|
1522
1522
|
})]
|
|
1523
1523
|
}),
|
|
1524
|
-
/* @__PURE__ */ Y(
|
|
1525
|
-
open:
|
|
1526
|
-
onOpenChange:
|
|
1527
|
-
children: /* @__PURE__ */ X(
|
|
1524
|
+
/* @__PURE__ */ Y(_, {
|
|
1525
|
+
open: b,
|
|
1526
|
+
onOpenChange: S,
|
|
1527
|
+
children: /* @__PURE__ */ X(v, {
|
|
1528
1528
|
className: "sm:max-w-4xl",
|
|
1529
|
-
children: [/* @__PURE__ */ X(
|
|
1529
|
+
children: [/* @__PURE__ */ X(x, { children: [/* @__PURE__ */ Y(ve, { children: "Resume Preview" }), /* @__PURE__ */ Y(y, { children: K.resumeFileName ?? "Candidate resume" })] }), /* @__PURE__ */ Y("div", {
|
|
1530
1530
|
className: "h-[70vh] w-full rounded-lg border border-border-seam bg-bg-sunken/30 overflow-hidden",
|
|
1531
|
-
children:
|
|
1531
|
+
children: O ? /* @__PURE__ */ X("div", {
|
|
1532
1532
|
className: "h-full flex flex-col items-center justify-center gap-3",
|
|
1533
|
-
children: [/* @__PURE__ */ Y(
|
|
1533
|
+
children: [/* @__PURE__ */ Y(q, {
|
|
1534
1534
|
size: 28,
|
|
1535
1535
|
className: "animate-spin text-text-secondary"
|
|
1536
1536
|
}), /* @__PURE__ */ Y("p", {
|
|
1537
1537
|
className: "text-sm text-text-secondary",
|
|
1538
1538
|
children: "Loading preview…"
|
|
1539
1539
|
})]
|
|
1540
|
-
}) :
|
|
1540
|
+
}) : T || !C ? /* @__PURE__ */ X("div", {
|
|
1541
1541
|
className: "h-full flex flex-col items-center justify-center gap-3",
|
|
1542
|
-
children: [/* @__PURE__ */ Y(
|
|
1542
|
+
children: [/* @__PURE__ */ Y(be, {
|
|
1543
1543
|
size: 28,
|
|
1544
1544
|
className: "text-status-error-text"
|
|
1545
1545
|
}), /* @__PURE__ */ Y("p", {
|
|
@@ -1547,7 +1547,7 @@ function Ye() {
|
|
|
1547
1547
|
children: "Could not load the resume preview. Try downloading instead."
|
|
1548
1548
|
})]
|
|
1549
1549
|
}) : /* @__PURE__ */ Y("iframe", {
|
|
1550
|
-
src:
|
|
1550
|
+
src: C,
|
|
1551
1551
|
title: `Resume preview — ${Z}`,
|
|
1552
1552
|
className: "h-full w-full"
|
|
1553
1553
|
})
|