@burdenoff/microfe-support 2026.1029.2 → 2026.1031.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.js +1 -2
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +701 -712
- package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +1 -2
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +1 -2
- package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +15 -16
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +25 -26
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +16 -17
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +71 -80
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +77 -90
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extensions/dist/index.js +112 -113
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +5 -10
- package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +1 -2
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +357 -347
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +1 -2
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/node_modules/linkifyjs/dist/linkify.js +1 -2
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js +10 -70
- package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
- package/dist/node_modules/orderedmap/dist/index.js +1 -2
- package/dist/node_modules/orderedmap/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +107 -108
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +12 -13
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +42 -47
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +47 -49
- package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +15 -16
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +37 -41
- package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +36 -37
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +1 -2
- package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +1 -2
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +302 -304
- package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
- package/dist/node_modules/rope-sequence/dist/index.js +1 -2
- package/dist/node_modules/rope-sequence/dist/index.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/w3c-keyname/index.js +0 -1
- package/dist/node_modules/w3c-keyname/index.js.map +1 -1
- package/dist/support/SupportAdminRoot.js +14 -15
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportAdminRoutes.js +5 -6
- package/dist/support/SupportAdminRoutes.js.map +1 -1
- package/dist/support/SupportUserRoot.js +10 -11
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.js +1 -2
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/NotificationToast.js +1 -2
- package/dist/support/components/NotificationToast.js.map +1 -1
- package/dist/support/components/PageLayout.js +15 -16
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/RouteHelpers.js +1 -2
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js +9 -10
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/MetricCard.js +1 -2
- package/dist/support/components/analytics/MetricCard.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js +9 -10
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js +5 -6
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js +5 -6
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js +5 -6
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +5 -6
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateActionGuidance.js +1 -2
- package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateDialogs.js +321 -322
- package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -1
- package/dist/support/components/careers/BulkOperationFeedback.js +1 -2
- package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -1
- package/dist/support/components/careers/BulkSelectionSummary.js +1 -2
- package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -1
- package/dist/support/components/careers/JobApplicationFilterContextGuard.js +1 -2
- package/dist/support/components/careers/JobApplicationFilterContextGuard.js.map +1 -1
- package/dist/support/components/careers/RichTextEditor.js +17 -18
- package/dist/support/components/careers/RichTextEditor.js.map +1 -1
- package/dist/support/components/kb/ArticleForm.js +10 -11
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js +2 -3
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js +1 -2
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js +3 -8
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js +4 -5
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MarkdownContent.js +1 -2
- package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +1 -2
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/MessageThread.js +13 -14
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +13 -14
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js +1 -2
- package/dist/support/components/tickets/TicketHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketSidebar.js +6 -7
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/components/tickets/TriagePanel.js +25 -26
- package/dist/support/components/tickets/TriagePanel.js.map +1 -1
- package/dist/support/components/ui.js +1 -2
- package/dist/support/constants/pipeline.js +1 -2
- package/dist/support/constants/pipeline.js.map +1 -1
- package/dist/support/constants.js +1 -2
- package/dist/support/constants.js.map +1 -1
- package/dist/support/events/rybbit.js +1 -2
- package/dist/support/events/rybbit.js.map +1 -1
- package/dist/support/hooks/index.js +6 -6
- package/dist/support/hooks/useAnalyticsOperations.js +1 -2
- package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
- package/dist/support/hooks/useAttachmentsFailedToast.js +1 -2
- package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
- package/dist/support/hooks/useChatOperations.js +14 -15
- package/dist/support/hooks/useChatOperations.js.map +1 -1
- package/dist/support/hooks/useDebouncedUrlText.js +1 -2
- package/dist/support/hooks/useDebouncedUrlText.js.map +1 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js +62 -63
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useNotification.js +1 -2
- package/dist/support/hooks/useNotification.js.map +1 -1
- package/dist/support/hooks/useRegisterFooter.js +1 -2
- package/dist/support/hooks/useRegisterFooter.js.map +1 -1
- package/dist/support/hooks/useSettingsOperations.js +1 -2
- package/dist/support/hooks/useSettingsOperations.js.map +1 -1
- package/dist/support/hooks/useSupportAttachments.js +1 -2
- package/dist/support/hooks/useSupportAttachments.js.map +1 -1
- package/dist/support/hooks/useTicketListOperations.js +9 -10
- package/dist/support/hooks/useTicketListOperations.js.map +1 -1
- package/dist/support/hooks/useTicketOperations.d.ts +8 -0
- package/dist/support/hooks/useTicketOperations.js +92 -93
- package/dist/support/hooks/useTicketOperations.js.map +1 -1
- package/dist/support/hooks/useTr.js +1 -2
- package/dist/support/hooks/useTr.js.map +1 -1
- package/dist/support/index.js +4 -4
- package/dist/support/pages/AnalyticsPage.js +34 -35
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +33 -38
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +22 -23
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +5 -6
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +13 -14
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js +15 -16
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +37 -44
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js +20 -21
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/InterviewersPage.js +121 -122
- package/dist/support/pages/InterviewersPage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +322 -332
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +556 -561
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/JobPostingDetailPage.js +489 -490
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/JobPostingsPage.js +279 -280
- package/dist/support/pages/JobPostingsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js +26 -27
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +23 -24
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js +43 -44
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +54 -55
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +61 -62
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +77 -78
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js +1 -2
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.js +1 -2
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/translations/en.js +1 -2
- package/dist/support/translations/en.js.map +1 -1
- package/dist/support/utils/attachments.js +1 -2
- package/dist/support/utils/attachments.js.map +1 -1
- package/dist/support/utils/breadcrumbRegistry.js +3 -4
- package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
- package/dist/support/utils/bulkCandidateOperations.js +0 -1
- package/dist/support/utils/bulkCandidateOperations.js.map +1 -1
- package/dist/support/utils/bulkCandidateTargetQuery.js +1 -2
- package/dist/support/utils/bulkCandidateTargetQuery.js.map +1 -1
- package/dist/support/utils/categoryColors.js +1 -2
- package/dist/support/utils/categoryColors.js.map +1 -1
- package/dist/support/utils/cn.js +1 -2
- package/dist/support/utils/cn.js.map +1 -1
- package/dist/support/utils/context.js +3 -4
- package/dist/support/utils/context.js.map +1 -1
- package/dist/support/utils/errors.js +1 -2
- package/dist/support/utils/errors.js.map +1 -1
- package/dist/support/utils/i18n.js +1 -2
- package/dist/support/utils/i18n.js.map +1 -1
- package/dist/support/utils/index.js +1 -2
- package/dist/support/utils/index.js.map +1 -1
- package/dist/support/utils/jobApplicationFilterParams.js +1 -2
- package/dist/support/utils/jobApplicationFilterParams.js.map +1 -1
- package/dist/support/utils/markdown.js +1 -2
- package/dist/support/utils/markdown.js.map +1 -1
- package/dist/support/utils/supportFiles.js +2 -11
- package/dist/support/utils/supportFiles.js.map +1 -1
- package/dist/support/utils/ticketFilters.js +1 -2
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/uiTokens.js +1 -2
- package/dist/support/utils/uiTokens.js.map +1 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +21 -14
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useAssignInterviewersToRoundMutation as oe, useCreateInterviewRoundMutation as se, useGetInterviewersQuery as m, useGetJobApplicationInterviewRoundsQuery as ce, useGetJobApplicationQuery as h, useGetJobApplicationResumePreviewUrlLazyQuery as g, useGetJobApplicationResumeUrlLazyQuery as le, useGetJobPostingQuery as _, useRandomizeAndSendAssignmentMutation as v, useRecordAssignmentSubmissionMutation as ue, useRemoveInterviewerFromRoundMutation as y, useReplyToJobApplicationMutation as b, useSendRoundMessageToCandidateMutation as de, useSubmitInterviewFeedbackMutation as fe, useUpdateInterviewFeedbackMutation as pe, useUpdateInterviewRoundMutation as me, useUpdateJobApplicationStatusMutation as x } from "../../generated/global-operations.js";
|
|
3
|
-
import { InterviewRoundStatus as S, InterviewRoundType as C, InterviewVerdict as he, InterviewerRole as w } from "../../generated/global-types.js";
|
|
4
|
-
import { roundStatusConfig as ge, roundStatusOrder as T, statusLabels as _e, statusOrder as ve } from "../constants/pipeline.js";
|
|
5
|
-
import E from "../../node_modules/dompurify/dist/purify.es.js";
|
|
6
|
-
import { nativeCopyText as ye, nativeImpact as D } from "../../utils/nativeBridge.js";
|
|
1
|
+
import e from "../../node_modules/dompurify/dist/purify.es.js";
|
|
7
2
|
/* empty css */
|
|
8
|
-
import {
|
|
3
|
+
import { useAssignInterviewersToRoundMutation as t, useCreateInterviewRoundMutation as n, useGetInterviewersQuery as r, useGetJobApplicationInterviewRoundsQuery as i, useGetJobApplicationQuery as a, useGetJobApplicationResumePreviewUrlLazyQuery as ee, useGetJobApplicationResumeUrlLazyQuery as te, useGetJobPostingQuery as ne, useRandomizeAndSendAssignmentMutation as re, useRecordAssignmentSubmissionMutation as ie, useRemoveInterviewerFromRoundMutation as ae, useReplyToJobApplicationMutation as oe, useSendRoundMessageToCandidateMutation as o, useSubmitInterviewFeedbackMutation as s, useUpdateInterviewFeedbackMutation as c, useUpdateInterviewRoundMutation as se, useUpdateJobApplicationStatusMutation as l } from "../../generated/global-operations.js";
|
|
4
|
+
import { InterviewRoundStatus as u, InterviewRoundType as d, InterviewVerdict as ce, InterviewerRole as f } from "../../generated/global-types.js";
|
|
5
|
+
import { nativeCopyText as p, nativeImpact as le } from "../../utils/nativeBridge.js";
|
|
6
|
+
import { roundStatusConfig as m, roundStatusOrder as ue, statusLabels as de, statusOrder as fe } from "../constants/pipeline.js";
|
|
7
|
+
import { RichTextEditor as pe } from "../components/careers/RichTextEditor.js";
|
|
8
|
+
import { Badge as h, Button as g, Card as me, CardContent as _, CardHeader as he, CardTitle as ge, Dialog as v, DialogContent as _e, DialogDescription as y, DialogFooter as ve, DialogHeader as b, DialogTitle as ye, Input as x, Label as S, Select as C, SelectContent as w, SelectItem as T, SelectTrigger as E, SelectValue as D, Textarea as be } from "../components/ui.js";
|
|
9
9
|
import { useEffect as O, useState as k } from "react";
|
|
10
|
-
import { AlertCircle as
|
|
10
|
+
import { AlertCircle as A, Archive as j, ArrowLeft as M, Briefcase as N, Building2 as P, Calendar as xe, CheckCircle as F, Clock as I, Copy as L, Download as Se, Edit3 as R, ExternalLink as z, Eye as B, FileText as V, Globe as H, Inbox as U, Link2 as W, Linkedin as Ce, Loader2 as G, Mail as K, MessageSquare as we, Package as Te, Phone as Ee, Plus as De, Send as Oe, Star as ke, User as q, UserPlus as Ae, UserX as je, Users as J, XCircle as Me } from "lucide-react";
|
|
11
11
|
import { useLocation as Ne, useNavigate as Pe, useParams as Fe } from "react-router";
|
|
12
12
|
import { graphqlFetch as Ie } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
13
13
|
import { Fragment as Le, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
14
14
|
import { EmphasisPanel as Re, IllustratedEmptyState as ze, NextSteps as Be, PagePurpose as Ve } from "@burdenoff/fe-libs/ui";
|
|
15
|
-
|
|
15
|
+
// src/support/pages/JobApplicationDetailPage.tsx
|
|
16
16
|
var Z = "__custom__", He = {
|
|
17
17
|
NEW: {
|
|
18
18
|
label: "New",
|
|
@@ -53,7 +53,7 @@ var Z = "__custom__", He = {
|
|
|
53
53
|
ARCHIVED: {
|
|
54
54
|
label: "Archived",
|
|
55
55
|
color: "text-text-secondary",
|
|
56
|
-
icon:
|
|
56
|
+
icon: j,
|
|
57
57
|
bg: "bg-bg-canvas border-border-subtle"
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -100,48 +100,39 @@ function Ke(e) {
|
|
|
100
100
|
return null;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function qe({ round:
|
|
104
|
-
let [
|
|
105
|
-
|
|
103
|
+
function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading: i, onAssign: a, onRemoveInterviewer: ee, onSendMessage: te, onSubmitFeedback: ne, onUpdateFeedback: ae }) {
|
|
104
|
+
let [oe, o] = k(!1), [s, c] = k(null), [l, u] = k(""), [f, p] = k(""), [le, de] = k(""), [fe, pe] = k(""), [v, _e] = k(t.submittedRepoUrl ?? ""), [y, ve] = k(t.submittedVideoUrl ?? ""), [b, ye] = k(t.submittedNotes ?? ""), [O, j] = k(null), [M, N] = k(t.notes ?? ""), [P, F] = k(!1), [I, { loading: L }] = re({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [Se, { loading: z }] = ie({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [B, { loading: H }] = se({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplications"] }), U = t.roundType === d.TakeHome || !!t.roundConfig?.isAssignmentRound, W = !!t.assignment, Ce = !!(t.submittedRepoUrl || t.submittedVideoUrl || t.submittedAt), K = W || Ce, Te = t.emailLogs.find((e) => e.emailType === "ASSIGNMENT")?.sentAt, Ee = m[t.status] ?? m.SCHEDULED, q = () => {
|
|
105
|
+
c(null), u(""), p(""), de(""), pe("");
|
|
106
106
|
}, J = async () => {
|
|
107
|
-
|
|
107
|
+
j(null);
|
|
108
108
|
try {
|
|
109
109
|
await I({ variables: { input: {
|
|
110
|
-
applicationId:
|
|
111
|
-
roundId:
|
|
110
|
+
applicationId: n,
|
|
111
|
+
roundId: t.id
|
|
112
112
|
} } });
|
|
113
113
|
} catch (e) {
|
|
114
|
-
console.error("Failed to randomize and send assignment:", e),
|
|
114
|
+
console.error("Failed to randomize and send assignment:", e), j("Failed to randomize and send assignment.");
|
|
115
115
|
}
|
|
116
116
|
}, Me = async () => {
|
|
117
|
-
|
|
118
|
-
let e =
|
|
119
|
-
if (e && !Ke(e))
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (t && !Ke(t)) {
|
|
124
|
-
A("Jam video URL must start with http:// or https://.");
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
if (!e && !t && !n) {
|
|
128
|
-
A("Please provide at least a repo URL, video URL, or notes.");
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
try {
|
|
117
|
+
j(null);
|
|
118
|
+
let e = v.trim() || void 0, n = y.trim() || void 0, r = b.trim() || void 0;
|
|
119
|
+
if (e && !Ke(e)) j("GitHub repo URL must start with http:// or https://.");
|
|
120
|
+
else if (n && !Ke(n)) j("Jam video URL must start with http:// or https://.");
|
|
121
|
+
else if (!e && !n && !r) j("Please provide at least a repo URL, video URL, or notes.");
|
|
122
|
+
else try {
|
|
132
123
|
await Se({ variables: { input: {
|
|
133
|
-
roundId:
|
|
124
|
+
roundId: t.id,
|
|
134
125
|
repoUrl: e,
|
|
135
|
-
videoUrl:
|
|
136
|
-
notes:
|
|
126
|
+
videoUrl: n,
|
|
127
|
+
notes: r
|
|
137
128
|
} } });
|
|
138
129
|
} catch (e) {
|
|
139
|
-
console.error("Failed to record assignment submission:", e),
|
|
130
|
+
console.error("Failed to record assignment submission:", e), j("Failed to record submission.");
|
|
140
131
|
}
|
|
141
132
|
}, Ne = async (e) => {
|
|
142
|
-
if (e !==
|
|
133
|
+
if (e !== t.status) try {
|
|
143
134
|
await B({ variables: {
|
|
144
|
-
id:
|
|
135
|
+
id: t.id,
|
|
145
136
|
input: { status: e }
|
|
146
137
|
} });
|
|
147
138
|
} catch (e) {
|
|
@@ -150,16 +141,16 @@ function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading
|
|
|
150
141
|
}, Pe = async () => {
|
|
151
142
|
try {
|
|
152
143
|
await B({ variables: {
|
|
153
|
-
id:
|
|
154
|
-
input: { notes:
|
|
144
|
+
id: t.id,
|
|
145
|
+
input: { notes: M.trim() || null }
|
|
155
146
|
} }), F(!0), setTimeout(() => F(!1), 2e3);
|
|
156
147
|
} catch (e) {
|
|
157
148
|
console.error("Failed to save round notes:", e);
|
|
158
149
|
}
|
|
159
150
|
}, Fe = () => {
|
|
160
|
-
q(),
|
|
151
|
+
q(), o(!0);
|
|
161
152
|
}, Ie = (e) => {
|
|
162
|
-
|
|
153
|
+
c(e), u(e.interviewerId), p(e.rating?.toString() ?? ""), de(e.verdict ?? ""), pe(e.internalNotes ?? ""), o(!0);
|
|
163
154
|
};
|
|
164
155
|
return /* @__PURE__ */ X("div", {
|
|
165
156
|
className: "border border-border-default rounded-lg p-4 space-y-4",
|
|
@@ -171,71 +162,71 @@ function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading
|
|
|
171
162
|
children: [
|
|
172
163
|
/* @__PURE__ */ Y("h3", {
|
|
173
164
|
className: "text-sm font-semibold text-text-primary",
|
|
174
|
-
children:
|
|
165
|
+
children: t.name
|
|
175
166
|
}),
|
|
176
|
-
/* @__PURE__ */ Y(
|
|
167
|
+
/* @__PURE__ */ Y(h, {
|
|
177
168
|
variant: "outline",
|
|
178
169
|
className: "bg-accent-indigo-subtle text-accent-indigo text-xs",
|
|
179
|
-
children: $(
|
|
170
|
+
children: $(t.roundType)
|
|
180
171
|
}),
|
|
181
172
|
/* @__PURE__ */ Y("select", {
|
|
182
173
|
"aria-label": "Round status",
|
|
183
|
-
value:
|
|
174
|
+
value: t.status,
|
|
184
175
|
onChange: (e) => Ne(e.target.value),
|
|
185
176
|
disabled: H,
|
|
186
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 ${Ee.className}`,
|
|
187
|
-
children:
|
|
178
|
+
children: ue.map((e) => /* @__PURE__ */ Y("option", {
|
|
188
179
|
value: e,
|
|
189
|
-
children:
|
|
180
|
+
children: m[e].label
|
|
190
181
|
}, e))
|
|
191
182
|
})
|
|
192
183
|
]
|
|
193
|
-
}),
|
|
184
|
+
}), t.scheduledAt && /* @__PURE__ */ X("p", {
|
|
194
185
|
className: "text-xs text-text-secondary flex items-center gap-1",
|
|
195
|
-
children: [/* @__PURE__ */ Y(
|
|
186
|
+
children: [/* @__PURE__ */ Y(xe, { size: 12 }), Q(t.scheduledAt)]
|
|
196
187
|
})] }), /* @__PURE__ */ X("div", {
|
|
197
188
|
className: "flex items-center gap-2",
|
|
198
|
-
children: [/* @__PURE__ */ X(
|
|
189
|
+
children: [/* @__PURE__ */ X(g, {
|
|
199
190
|
variant: "outline",
|
|
200
191
|
size: "sm",
|
|
201
|
-
onClick:
|
|
192
|
+
onClick: a,
|
|
202
193
|
children: [/* @__PURE__ */ Y(Ae, { size: 14 }), "Assign"]
|
|
203
|
-
}), /* @__PURE__ */ X(
|
|
194
|
+
}), /* @__PURE__ */ X(g, {
|
|
204
195
|
variant: "outline",
|
|
205
196
|
size: "sm",
|
|
206
|
-
onClick:
|
|
197
|
+
onClick: te,
|
|
207
198
|
children: [/* @__PURE__ */ Y(we, { size: 14 }), "Message"]
|
|
208
199
|
})]
|
|
209
200
|
})]
|
|
210
201
|
}),
|
|
211
|
-
|
|
202
|
+
t.interviewers.length > 0 && /* @__PURE__ */ X("div", {
|
|
212
203
|
className: "space-y-2",
|
|
213
204
|
children: [/* @__PURE__ */ Y("p", {
|
|
214
205
|
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
215
206
|
children: "Interviewers"
|
|
216
207
|
}), /* @__PURE__ */ Y("div", {
|
|
217
208
|
className: "flex flex-wrap gap-2",
|
|
218
|
-
children:
|
|
209
|
+
children: t.interviewers.map((e) => /* @__PURE__ */ X("div", {
|
|
219
210
|
className: "inline-flex items-center gap-2 pl-2 pr-1 py-1 rounded-full bg-bg-muted text-text-primary text-xs",
|
|
220
211
|
children: [
|
|
221
212
|
/* @__PURE__ */ Y("span", {
|
|
222
213
|
className: "font-medium",
|
|
223
|
-
children:
|
|
214
|
+
children: e.interviewer.name
|
|
224
215
|
}),
|
|
225
|
-
/* @__PURE__ */ Y(
|
|
216
|
+
/* @__PURE__ */ Y(h, {
|
|
226
217
|
variant: "outline",
|
|
227
218
|
className: "text-[10px] px-1.5 py-0",
|
|
228
|
-
children: $(
|
|
219
|
+
children: $(e.role)
|
|
229
220
|
}),
|
|
230
221
|
/* @__PURE__ */ Y("button", {
|
|
231
222
|
type: "button",
|
|
232
|
-
onClick: () =>
|
|
223
|
+
onClick: () => ee(t.id, e.interviewer.id),
|
|
233
224
|
className: "p-0.5 rounded-full hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
|
|
234
225
|
title: "Remove interviewer",
|
|
235
226
|
children: /* @__PURE__ */ Y(je, { size: 12 })
|
|
236
227
|
})
|
|
237
228
|
]
|
|
238
|
-
},
|
|
229
|
+
}, e.id))
|
|
239
230
|
})]
|
|
240
231
|
}),
|
|
241
232
|
/* @__PURE__ */ X("div", {
|
|
@@ -247,27 +238,27 @@ function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading
|
|
|
247
238
|
}),
|
|
248
239
|
/* @__PURE__ */ Y("textarea", {
|
|
249
240
|
"aria-label": "Round internal notes",
|
|
250
|
-
value:
|
|
251
|
-
onChange: (e) =>
|
|
241
|
+
value: M,
|
|
242
|
+
onChange: (e) => N(e.target.value),
|
|
252
243
|
placeholder: "Remarks for later evaluation — not visible to the candidate.",
|
|
253
244
|
rows: 2,
|
|
254
245
|
disabled: H,
|
|
255
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"
|
|
256
247
|
}),
|
|
257
|
-
|
|
248
|
+
M.trim() !== (t.notes ?? "") && /* @__PURE__ */ Y(g, {
|
|
258
249
|
variant: "outline",
|
|
259
250
|
size: "sm",
|
|
260
251
|
onClick: Pe,
|
|
261
252
|
disabled: H,
|
|
262
253
|
children: "Save notes"
|
|
263
254
|
}),
|
|
264
|
-
|
|
255
|
+
P && /* @__PURE__ */ Y("p", {
|
|
265
256
|
className: "text-xs text-status-success-text",
|
|
266
257
|
children: "Saved."
|
|
267
258
|
})
|
|
268
259
|
]
|
|
269
260
|
}),
|
|
270
|
-
|
|
261
|
+
t.candidateMessage && /* @__PURE__ */ X("div", {
|
|
271
262
|
className: "p-3 rounded-lg bg-status-info-bg-subtle border border-border-subtle",
|
|
272
263
|
children: [
|
|
273
264
|
/* @__PURE__ */ Y("p", {
|
|
@@ -276,28 +267,28 @@ function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading
|
|
|
276
267
|
}),
|
|
277
268
|
/* @__PURE__ */ Y("p", {
|
|
278
269
|
className: "text-sm text-text-primary whitespace-pre-wrap",
|
|
279
|
-
children:
|
|
270
|
+
children: t.candidateMessage
|
|
280
271
|
}),
|
|
281
|
-
|
|
272
|
+
t.candidateMessageSentAt && /* @__PURE__ */ X("p", {
|
|
282
273
|
className: "text-[11px] text-text-secondary mt-1",
|
|
283
|
-
children: ["Sent ", Q(
|
|
274
|
+
children: ["Sent ", Q(t.candidateMessageSentAt)]
|
|
284
275
|
})
|
|
285
276
|
]
|
|
286
277
|
}),
|
|
287
|
-
U && /* @__PURE__ */ X(
|
|
278
|
+
U && /* @__PURE__ */ X(me, {
|
|
288
279
|
className: "border border-border-default bg-bg-surface",
|
|
289
|
-
children: [/* @__PURE__ */ Y(
|
|
280
|
+
children: [/* @__PURE__ */ Y(he, {
|
|
290
281
|
className: "pb-2",
|
|
291
|
-
children: /* @__PURE__ */ X(
|
|
282
|
+
children: /* @__PURE__ */ X(ge, {
|
|
292
283
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
293
284
|
children: [/* @__PURE__ */ Y(V, { size: 14 }), "Assignment"]
|
|
294
285
|
})
|
|
295
|
-
}), /* @__PURE__ */ X(
|
|
286
|
+
}), /* @__PURE__ */ X(_, {
|
|
296
287
|
className: "space-y-3",
|
|
297
288
|
children: [O && /* @__PURE__ */ X("div", {
|
|
298
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",
|
|
299
|
-
children: [/* @__PURE__ */ Y(
|
|
300
|
-
}), !W && !Ce ? /* @__PURE__ */ X(
|
|
290
|
+
children: [/* @__PURE__ */ Y(A, { size: 14 }), O]
|
|
291
|
+
}), !W && !Ce ? /* @__PURE__ */ X(g, {
|
|
301
292
|
size: "sm",
|
|
302
293
|
onClick: J,
|
|
303
294
|
disabled: L,
|
|
@@ -307,16 +298,16 @@ function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading
|
|
|
307
298
|
}) : /* @__PURE__ */ Y(Oe, { size: 14 }), "Randomize & Send Assignment"]
|
|
308
299
|
}) : /* @__PURE__ */ X("div", {
|
|
309
300
|
className: "space-y-4",
|
|
310
|
-
children: [
|
|
301
|
+
children: [t.assignment && /* @__PURE__ */ X("div", {
|
|
311
302
|
className: "space-y-1",
|
|
312
303
|
children: [
|
|
313
304
|
/* @__PURE__ */ Y("p", {
|
|
314
305
|
className: "text-sm font-semibold text-text-primary",
|
|
315
|
-
children:
|
|
306
|
+
children: t.assignment.title
|
|
316
307
|
}),
|
|
317
308
|
/* @__PURE__ */ Y("div", {
|
|
318
309
|
className: "support-richtext text-sm text-text-secondary",
|
|
319
|
-
dangerouslySetInnerHTML: { __html:
|
|
310
|
+
dangerouslySetInnerHTML: { __html: e.sanitize(t.assignment.description) }
|
|
320
311
|
}),
|
|
321
312
|
Te && /* @__PURE__ */ X("p", {
|
|
322
313
|
className: "text-[11px] text-text-secondary",
|
|
@@ -326,40 +317,40 @@ function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading
|
|
|
326
317
|
}), K && /* @__PURE__ */ X("div", {
|
|
327
318
|
className: "space-y-3",
|
|
328
319
|
children: [
|
|
329
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
330
|
-
htmlFor: `assignment-repo-${
|
|
320
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
321
|
+
htmlFor: `assignment-repo-${t.id}`,
|
|
331
322
|
children: "GitHub Repo URL"
|
|
332
|
-
}), /* @__PURE__ */ Y(
|
|
333
|
-
id: `assignment-repo-${
|
|
334
|
-
value:
|
|
323
|
+
}), /* @__PURE__ */ Y(x, {
|
|
324
|
+
id: `assignment-repo-${t.id}`,
|
|
325
|
+
value: v,
|
|
335
326
|
onChange: (e) => _e(e.target.value),
|
|
336
327
|
placeholder: "https://github.com/…"
|
|
337
328
|
})] }),
|
|
338
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
339
|
-
htmlFor: `assignment-video-${
|
|
329
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
330
|
+
htmlFor: `assignment-video-${t.id}`,
|
|
340
331
|
children: "Jam Video URL"
|
|
341
|
-
}), /* @__PURE__ */ Y(
|
|
342
|
-
id: `assignment-video-${
|
|
343
|
-
value:
|
|
344
|
-
onChange: (e) =>
|
|
332
|
+
}), /* @__PURE__ */ Y(x, {
|
|
333
|
+
id: `assignment-video-${t.id}`,
|
|
334
|
+
value: y,
|
|
335
|
+
onChange: (e) => ve(e.target.value),
|
|
345
336
|
placeholder: "https://jam.dev/…"
|
|
346
337
|
})] }),
|
|
347
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
348
|
-
htmlFor: `assignment-notes-${
|
|
338
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
339
|
+
htmlFor: `assignment-notes-${t.id}`,
|
|
349
340
|
children: "Notes"
|
|
350
|
-
}), /* @__PURE__ */ Y(
|
|
351
|
-
id: `assignment-notes-${
|
|
352
|
-
value:
|
|
353
|
-
onChange: (e) =>
|
|
341
|
+
}), /* @__PURE__ */ Y(be, {
|
|
342
|
+
id: `assignment-notes-${t.id}`,
|
|
343
|
+
value: b,
|
|
344
|
+
onChange: (e) => ye(e.target.value),
|
|
354
345
|
placeholder: "Add submission notes…",
|
|
355
346
|
rows: 3
|
|
356
347
|
})] }),
|
|
357
348
|
/* @__PURE__ */ Y("div", {
|
|
358
349
|
className: "flex items-center justify-end",
|
|
359
|
-
children: /* @__PURE__ */ X(
|
|
350
|
+
children: /* @__PURE__ */ X(g, {
|
|
360
351
|
size: "sm",
|
|
361
352
|
onClick: Me,
|
|
362
|
-
disabled: z || !
|
|
353
|
+
disabled: z || !v.trim() && !y.trim() && !b.trim(),
|
|
363
354
|
children: [z ? /* @__PURE__ */ Y(G, {
|
|
364
355
|
size: 14,
|
|
365
356
|
className: "animate-spin mr-1"
|
|
@@ -379,144 +370,144 @@ function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading
|
|
|
379
370
|
children: [/* @__PURE__ */ Y("p", {
|
|
380
371
|
className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
381
372
|
children: "Feedback"
|
|
382
|
-
}), !
|
|
373
|
+
}), !oe && /* @__PURE__ */ X(g, {
|
|
383
374
|
variant: "ghost",
|
|
384
375
|
size: "sm",
|
|
385
376
|
onClick: Fe,
|
|
386
377
|
children: [/* @__PURE__ */ Y(De, { size: 14 }), "Add Feedback"]
|
|
387
378
|
})]
|
|
388
379
|
}),
|
|
389
|
-
|
|
380
|
+
t.feedback.length > 0 && /* @__PURE__ */ Y("div", {
|
|
390
381
|
className: "space-y-2",
|
|
391
|
-
children:
|
|
382
|
+
children: t.feedback.map((e) => /* @__PURE__ */ X("div", {
|
|
392
383
|
className: "p-3 rounded-lg bg-bg-muted/30 border border-border-default",
|
|
393
384
|
children: [/* @__PURE__ */ X("div", {
|
|
394
385
|
className: "flex items-start justify-between gap-3",
|
|
395
386
|
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
|
|
396
387
|
className: "text-sm font-medium text-text-primary",
|
|
397
|
-
children:
|
|
388
|
+
children: e.interviewer.name
|
|
398
389
|
}), /* @__PURE__ */ X("div", {
|
|
399
390
|
className: "flex items-center gap-2 mt-1",
|
|
400
|
-
children: [
|
|
391
|
+
children: [e.rating && /* @__PURE__ */ Y("span", {
|
|
401
392
|
className: "inline-flex items-center gap-0.5 text-xs text-status-warning-text",
|
|
402
|
-
children: Array.from({ length:
|
|
393
|
+
children: Array.from({ length: e.rating }).map((e, t) => /* @__PURE__ */ Y(ke, {
|
|
403
394
|
size: 12,
|
|
404
395
|
fill: "currentColor"
|
|
405
396
|
}, t))
|
|
406
|
-
}),
|
|
407
|
-
className: `${Ge(
|
|
408
|
-
children: $(
|
|
397
|
+
}), e.verdict && /* @__PURE__ */ Y(h, {
|
|
398
|
+
className: `${Ge(e.verdict)} text-xs`,
|
|
399
|
+
children: $(e.verdict)
|
|
409
400
|
})]
|
|
410
|
-
})] }), /* @__PURE__ */ Y(
|
|
401
|
+
})] }), /* @__PURE__ */ Y(g, {
|
|
411
402
|
variant: "ghost",
|
|
412
403
|
size: "sm",
|
|
413
|
-
onClick: () => Ie(
|
|
404
|
+
onClick: () => Ie(e),
|
|
414
405
|
children: /* @__PURE__ */ Y(R, { size: 14 })
|
|
415
406
|
})]
|
|
416
|
-
}),
|
|
407
|
+
}), e.internalNotes && /* @__PURE__ */ Y("p", {
|
|
417
408
|
className: "mt-2 text-sm text-text-secondary whitespace-pre-wrap",
|
|
418
|
-
children:
|
|
409
|
+
children: e.internalNotes
|
|
419
410
|
})]
|
|
420
|
-
},
|
|
411
|
+
}, e.id))
|
|
421
412
|
}),
|
|
422
|
-
|
|
413
|
+
oe && /* @__PURE__ */ X("div", {
|
|
423
414
|
className: "p-3 rounded-lg border border-border-default bg-bg-surface space-y-3",
|
|
424
415
|
children: [
|
|
425
|
-
!
|
|
426
|
-
htmlFor: `feedback-interviewer-${
|
|
416
|
+
!s && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
417
|
+
htmlFor: `feedback-interviewer-${t.id}`,
|
|
427
418
|
children: "Interviewer"
|
|
428
|
-
}), /* @__PURE__ */ X(
|
|
429
|
-
value:
|
|
430
|
-
onValueChange:
|
|
431
|
-
children: [/* @__PURE__ */ Y(
|
|
432
|
-
id: `feedback-interviewer-${
|
|
433
|
-
children: /* @__PURE__ */ Y(
|
|
434
|
-
}), /* @__PURE__ */ Y(
|
|
419
|
+
}), /* @__PURE__ */ X(C, {
|
|
420
|
+
value: l,
|
|
421
|
+
onValueChange: u,
|
|
422
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
423
|
+
id: `feedback-interviewer-${t.id}`,
|
|
424
|
+
children: /* @__PURE__ */ Y(D, { placeholder: "Select interviewer" })
|
|
425
|
+
}), /* @__PURE__ */ Y(w, { children: i ? /* @__PURE__ */ Y(T, {
|
|
435
426
|
value: "loading",
|
|
436
427
|
disabled: !0,
|
|
437
428
|
children: "Loading…"
|
|
438
|
-
}) :
|
|
429
|
+
}) : r.map((e) => /* @__PURE__ */ Y(T, {
|
|
439
430
|
value: e.id,
|
|
440
431
|
children: e.name
|
|
441
432
|
}, e.id)) })]
|
|
442
433
|
})] }),
|
|
443
434
|
/* @__PURE__ */ X("div", {
|
|
444
435
|
className: "grid grid-cols-2 gap-3",
|
|
445
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
446
|
-
htmlFor: `feedback-rating-${
|
|
436
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
437
|
+
htmlFor: `feedback-rating-${t.id}`,
|
|
447
438
|
children: "Rating"
|
|
448
|
-
}), /* @__PURE__ */ X(
|
|
449
|
-
value:
|
|
450
|
-
onValueChange:
|
|
451
|
-
children: [/* @__PURE__ */ Y(
|
|
452
|
-
id: `feedback-rating-${
|
|
453
|
-
children: /* @__PURE__ */ Y(
|
|
454
|
-
}), /* @__PURE__ */ Y(
|
|
439
|
+
}), /* @__PURE__ */ X(C, {
|
|
440
|
+
value: f,
|
|
441
|
+
onValueChange: p,
|
|
442
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
443
|
+
id: `feedback-rating-${t.id}`,
|
|
444
|
+
children: /* @__PURE__ */ Y(D, { placeholder: "1–5" })
|
|
445
|
+
}), /* @__PURE__ */ Y(w, { children: [
|
|
455
446
|
1,
|
|
456
447
|
2,
|
|
457
448
|
3,
|
|
458
449
|
4,
|
|
459
450
|
5
|
|
460
|
-
].map((e) => /* @__PURE__ */ Y(
|
|
451
|
+
].map((e) => /* @__PURE__ */ Y(T, {
|
|
461
452
|
value: String(e),
|
|
462
453
|
children: e
|
|
463
454
|
}, e)) })]
|
|
464
|
-
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
465
|
-
htmlFor: `feedback-verdict-${
|
|
455
|
+
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
456
|
+
htmlFor: `feedback-verdict-${t.id}`,
|
|
466
457
|
children: "Verdict"
|
|
467
|
-
}), /* @__PURE__ */ X(
|
|
468
|
-
value:
|
|
469
|
-
onValueChange: (e) =>
|
|
470
|
-
children: [/* @__PURE__ */ Y(
|
|
471
|
-
id: `feedback-verdict-${
|
|
472
|
-
children: /* @__PURE__ */ Y(
|
|
473
|
-
}), /* @__PURE__ */ Y(
|
|
458
|
+
}), /* @__PURE__ */ X(C, {
|
|
459
|
+
value: le,
|
|
460
|
+
onValueChange: (e) => de(e),
|
|
461
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
462
|
+
id: `feedback-verdict-${t.id}`,
|
|
463
|
+
children: /* @__PURE__ */ Y(D, { placeholder: "Verdict" })
|
|
464
|
+
}), /* @__PURE__ */ Y(w, { children: Object.values(ce).map((e) => /* @__PURE__ */ Y(T, {
|
|
474
465
|
value: e,
|
|
475
466
|
children: $(e)
|
|
476
467
|
}, e)) })]
|
|
477
468
|
})] })]
|
|
478
469
|
}),
|
|
479
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
480
|
-
htmlFor: `feedback-notes-${
|
|
470
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
471
|
+
htmlFor: `feedback-notes-${t.id}`,
|
|
481
472
|
children: "Internal Notes"
|
|
482
|
-
}), /* @__PURE__ */ Y(
|
|
483
|
-
id: `feedback-notes-${
|
|
484
|
-
value:
|
|
485
|
-
onChange: (e) =>
|
|
473
|
+
}), /* @__PURE__ */ Y(be, {
|
|
474
|
+
id: `feedback-notes-${t.id}`,
|
|
475
|
+
value: fe,
|
|
476
|
+
onChange: (e) => pe(e.target.value),
|
|
486
477
|
placeholder: "Add private notes about this round…",
|
|
487
478
|
rows: 3
|
|
488
479
|
})] }),
|
|
489
480
|
/* @__PURE__ */ X("div", {
|
|
490
481
|
className: "flex items-center justify-end gap-2",
|
|
491
|
-
children: [/* @__PURE__ */ Y(
|
|
482
|
+
children: [/* @__PURE__ */ Y(g, {
|
|
492
483
|
variant: "outline",
|
|
493
484
|
size: "sm",
|
|
494
485
|
onClick: () => {
|
|
495
|
-
q(),
|
|
486
|
+
q(), o(!1);
|
|
496
487
|
},
|
|
497
488
|
children: "Cancel"
|
|
498
|
-
}), /* @__PURE__ */ Y(
|
|
489
|
+
}), /* @__PURE__ */ Y(g, {
|
|
499
490
|
size: "sm",
|
|
500
491
|
onClick: async () => {
|
|
501
|
-
let e =
|
|
502
|
-
if (
|
|
492
|
+
let e = f ? parseInt(f, 10) : void 0, n = le || void 0, r = fe.trim() || void 0;
|
|
493
|
+
if (s) await ae(s.id, {
|
|
503
494
|
rating: e,
|
|
504
|
-
verdict:
|
|
505
|
-
internalNotes:
|
|
495
|
+
verdict: n,
|
|
496
|
+
internalNotes: r
|
|
506
497
|
});
|
|
507
498
|
else {
|
|
508
|
-
if (!
|
|
509
|
-
await
|
|
510
|
-
interviewerId:
|
|
499
|
+
if (!l) return;
|
|
500
|
+
await ne(t.id, {
|
|
501
|
+
interviewerId: l,
|
|
511
502
|
rating: e,
|
|
512
|
-
verdict:
|
|
513
|
-
internalNotes:
|
|
503
|
+
verdict: n,
|
|
504
|
+
internalNotes: r
|
|
514
505
|
});
|
|
515
506
|
}
|
|
516
|
-
q(),
|
|
507
|
+
q(), o(!1);
|
|
517
508
|
},
|
|
518
|
-
disabled: !
|
|
519
|
-
children:
|
|
509
|
+
disabled: !s && !l,
|
|
510
|
+
children: s ? "Update Feedback" : "Submit Feedback"
|
|
520
511
|
})]
|
|
521
512
|
})
|
|
522
513
|
]
|
|
@@ -526,71 +517,71 @@ function qe({ round: a, applicationId: te, interviewers: ne, interviewersLoading
|
|
|
526
517
|
]
|
|
527
518
|
});
|
|
528
519
|
}
|
|
529
|
-
function Je({ applicationId: e, jobPostingId:
|
|
530
|
-
let { data:
|
|
531
|
-
variables: { id:
|
|
532
|
-
skip: !
|
|
533
|
-
}), { data:
|
|
520
|
+
function Je({ applicationId: e, jobPostingId: a }) {
|
|
521
|
+
let { data: ee, loading: te, error: re } = i({ variables: { applicationId: e } }), { data: ie, loading: oe } = ne({
|
|
522
|
+
variables: { id: a ?? "" },
|
|
523
|
+
skip: !a
|
|
524
|
+
}), { data: se, loading: l } = r({ variables: { limit: 200 } }), [ce, { loading: p }] = n({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [le, { loading: m }] = t({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ue] = ae({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [de, { loading: fe }] = o({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [pe] = s({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [h] = c({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), me = ee?.jobApplicationInterviewRounds ?? [], _ = se?.interviewers.items ?? [], he = ie?.jobPosting?.rounds ?? [], [ge, O] = k(!1), [j, M] = k(Z), [N, P] = k({
|
|
534
525
|
name: "",
|
|
535
|
-
roundType:
|
|
536
|
-
status:
|
|
526
|
+
roundType: d.PhoneScreen,
|
|
527
|
+
status: u.Scheduled,
|
|
537
528
|
scheduledAt: ""
|
|
538
|
-
}), [
|
|
539
|
-
|
|
529
|
+
}), [xe, F] = k(null), [I, L] = k([]), [Se, R] = k(f.Panel), [z, B] = k(null), [V, H] = k(""), [U, W] = k(null), Ce = he.filter((e) => !me.some((t) => t.roundConfigId === e.id)), K = () => {
|
|
530
|
+
M(Z), P({
|
|
540
531
|
name: "",
|
|
541
|
-
roundType:
|
|
542
|
-
status:
|
|
532
|
+
roundType: d.PhoneScreen,
|
|
533
|
+
status: u.Scheduled,
|
|
543
534
|
scheduledAt: ""
|
|
544
535
|
});
|
|
545
536
|
}, we = (e) => {
|
|
546
|
-
if (
|
|
547
|
-
|
|
537
|
+
if (M(e), e === Z) {
|
|
538
|
+
P((e) => ({
|
|
548
539
|
...e,
|
|
549
540
|
name: ""
|
|
550
541
|
}));
|
|
551
542
|
return;
|
|
552
543
|
}
|
|
553
|
-
let t =
|
|
554
|
-
t &&
|
|
544
|
+
let t = he.find((t) => t.id === e);
|
|
545
|
+
t && P((e) => ({
|
|
555
546
|
...e,
|
|
556
547
|
name: t.name,
|
|
557
548
|
roundType: t.roundType
|
|
558
549
|
}));
|
|
559
550
|
}, Te = () => {
|
|
560
551
|
let e = Ce[0];
|
|
561
|
-
e ? (
|
|
552
|
+
e ? (M(e.id), P({
|
|
562
553
|
name: e.name,
|
|
563
554
|
roundType: e.roundType,
|
|
564
|
-
status:
|
|
555
|
+
status: u.Scheduled,
|
|
565
556
|
scheduledAt: ""
|
|
566
557
|
})) : K(), O(!0);
|
|
567
558
|
}, Ee = async () => {
|
|
568
|
-
if (
|
|
559
|
+
if (N.name.trim()) {
|
|
569
560
|
W(null);
|
|
570
561
|
try {
|
|
571
|
-
await
|
|
562
|
+
await ce({ variables: { input: {
|
|
572
563
|
applicationId: e,
|
|
573
|
-
roundConfigId:
|
|
574
|
-
name:
|
|
575
|
-
roundType:
|
|
576
|
-
status:
|
|
577
|
-
scheduledAt:
|
|
564
|
+
roundConfigId: j === Z ? void 0 : j,
|
|
565
|
+
name: N.name.trim(),
|
|
566
|
+
roundType: N.roundType,
|
|
567
|
+
status: N.status,
|
|
568
|
+
scheduledAt: N.scheduledAt || void 0
|
|
578
569
|
} } }), K(), O(!1);
|
|
579
570
|
} catch (e) {
|
|
580
571
|
console.error("Failed to create interview round:", e), W("Failed to create interview round.");
|
|
581
572
|
}
|
|
582
573
|
}
|
|
583
574
|
}, Oe = async () => {
|
|
584
|
-
if (
|
|
575
|
+
if (xe && I.length !== 0) {
|
|
585
576
|
W(null);
|
|
586
577
|
try {
|
|
587
|
-
await
|
|
588
|
-
roundId:
|
|
578
|
+
await le({ variables: { input: {
|
|
579
|
+
roundId: xe,
|
|
589
580
|
assignments: I.map((e) => ({
|
|
590
581
|
interviewerId: e,
|
|
591
582
|
role: Se
|
|
592
583
|
}))
|
|
593
|
-
} } }), L([]), R(
|
|
584
|
+
} } }), L([]), R(f.Panel), F(null);
|
|
594
585
|
} catch (e) {
|
|
595
586
|
console.error("Failed to assign interviewers:", e), W("Failed to assign interviewers.");
|
|
596
587
|
}
|
|
@@ -598,7 +589,7 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
598
589
|
}, ke = async (e, t) => {
|
|
599
590
|
W(null);
|
|
600
591
|
try {
|
|
601
|
-
await
|
|
592
|
+
await ue({ variables: {
|
|
602
593
|
roundId: e,
|
|
603
594
|
interviewerId: t
|
|
604
595
|
} });
|
|
@@ -606,10 +597,10 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
606
597
|
console.error("Failed to remove interviewer:", e), W("Failed to remove interviewer.");
|
|
607
598
|
}
|
|
608
599
|
}, q = async () => {
|
|
609
|
-
if (
|
|
600
|
+
if (z && V.trim()) {
|
|
610
601
|
W(null);
|
|
611
602
|
try {
|
|
612
|
-
await
|
|
603
|
+
await de({ variables: { input: {
|
|
613
604
|
roundId: z,
|
|
614
605
|
message: V.trim()
|
|
615
606
|
} } }), H(""), B(null);
|
|
@@ -620,7 +611,7 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
620
611
|
}, Ae = async (e, t) => {
|
|
621
612
|
W(null);
|
|
622
613
|
try {
|
|
623
|
-
await
|
|
614
|
+
await pe({ variables: { input: {
|
|
624
615
|
roundId: e,
|
|
625
616
|
...t
|
|
626
617
|
} } });
|
|
@@ -630,7 +621,7 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
630
621
|
}, je = async (e, t) => {
|
|
631
622
|
W(null);
|
|
632
623
|
try {
|
|
633
|
-
await
|
|
624
|
+
await h({ variables: {
|
|
634
625
|
id: e,
|
|
635
626
|
input: t
|
|
636
627
|
} });
|
|
@@ -646,7 +637,7 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
646
637
|
children: [/* @__PURE__ */ X("h2", {
|
|
647
638
|
className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
|
|
648
639
|
children: [/* @__PURE__ */ Y(J, { size: 14 }), "Interview Rounds"]
|
|
649
|
-
}), /* @__PURE__ */ X(
|
|
640
|
+
}), /* @__PURE__ */ X(g, {
|
|
650
641
|
size: "sm",
|
|
651
642
|
onClick: Te,
|
|
652
643
|
children: [/* @__PURE__ */ Y(De, { size: 14 }), "Add Round"]
|
|
@@ -656,28 +647,28 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
656
647
|
className: "p-5",
|
|
657
648
|
children: [U && /* @__PURE__ */ X("div", {
|
|
658
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",
|
|
659
|
-
children: [/* @__PURE__ */ Y(
|
|
660
|
-
}),
|
|
650
|
+
children: [/* @__PURE__ */ Y(A, { size: 16 }), U]
|
|
651
|
+
}), te ? /* @__PURE__ */ X("div", {
|
|
661
652
|
className: "flex items-center gap-2 text-sm text-text-secondary py-4",
|
|
662
653
|
children: [/* @__PURE__ */ Y(G, {
|
|
663
654
|
size: 16,
|
|
664
655
|
className: "animate-spin"
|
|
665
656
|
}), "Loading interview rounds…"]
|
|
666
|
-
}) :
|
|
657
|
+
}) : re ? /* @__PURE__ */ X("div", {
|
|
667
658
|
className: "p-3 rounded-lg bg-status-error-bg-subtle text-status-error-text text-sm flex items-center gap-2",
|
|
668
|
-
children: [/* @__PURE__ */ Y(
|
|
669
|
-
}) :
|
|
659
|
+
children: [/* @__PURE__ */ Y(A, { size: 16 }), "Could not load interview rounds."]
|
|
660
|
+
}) : me.length === 0 ? /* @__PURE__ */ Y("p", {
|
|
670
661
|
className: "text-sm text-text-secondary",
|
|
671
662
|
children: "No interview rounds yet."
|
|
672
663
|
}) : /* @__PURE__ */ Y("div", {
|
|
673
664
|
className: "space-y-5",
|
|
674
|
-
children:
|
|
665
|
+
children: me.map((t) => /* @__PURE__ */ Y(qe, {
|
|
675
666
|
round: t,
|
|
676
667
|
applicationId: e,
|
|
677
|
-
interviewers:
|
|
678
|
-
interviewersLoading:
|
|
668
|
+
interviewers: _,
|
|
669
|
+
interviewersLoading: l,
|
|
679
670
|
onAssign: () => {
|
|
680
|
-
F(t.id), L([]), R(
|
|
671
|
+
F(t.id), L([]), R(f.Panel);
|
|
681
672
|
},
|
|
682
673
|
onRemoveInterviewer: ke,
|
|
683
674
|
onSendMessage: () => {
|
|
@@ -688,31 +679,31 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
688
679
|
}, t.id))
|
|
689
680
|
})]
|
|
690
681
|
}),
|
|
691
|
-
/* @__PURE__ */ Y(
|
|
692
|
-
open:
|
|
682
|
+
/* @__PURE__ */ Y(v, {
|
|
683
|
+
open: ge,
|
|
693
684
|
onOpenChange: (e) => {
|
|
694
685
|
O(e), e || K();
|
|
695
686
|
},
|
|
696
|
-
children: /* @__PURE__ */ X(
|
|
687
|
+
children: /* @__PURE__ */ X(_e, {
|
|
697
688
|
className: "sm:max-w-md",
|
|
698
689
|
children: [
|
|
699
|
-
/* @__PURE__ */ X(
|
|
690
|
+
/* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(ye, { children: "Add Interview Round" }), /* @__PURE__ */ Y(y, { children: "Schedule a new round for this candidate." })] }),
|
|
700
691
|
/* @__PURE__ */ X("div", {
|
|
701
692
|
className: "space-y-4 py-2",
|
|
702
693
|
children: [
|
|
703
|
-
|
|
704
|
-
/* @__PURE__ */ Y(
|
|
694
|
+
a && /* @__PURE__ */ X("div", { children: [
|
|
695
|
+
/* @__PURE__ */ Y(S, {
|
|
705
696
|
htmlFor: "round-config",
|
|
706
697
|
children: "Posting round"
|
|
707
698
|
}),
|
|
708
|
-
/* @__PURE__ */ X(
|
|
709
|
-
value:
|
|
699
|
+
/* @__PURE__ */ X(C, {
|
|
700
|
+
value: j,
|
|
710
701
|
onValueChange: we,
|
|
711
|
-
disabled:
|
|
712
|
-
children: [/* @__PURE__ */ Y(
|
|
702
|
+
disabled: oe,
|
|
703
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
713
704
|
id: "round-config",
|
|
714
|
-
children: /* @__PURE__ */ Y(
|
|
715
|
-
}), /* @__PURE__ */ X(
|
|
705
|
+
children: /* @__PURE__ */ Y(D, { placeholder: "Select a configured round" })
|
|
706
|
+
}), /* @__PURE__ */ X(w, { children: [Ce.map((e) => /* @__PURE__ */ X(T, {
|
|
716
707
|
value: e.id,
|
|
717
708
|
children: [
|
|
718
709
|
"Round ",
|
|
@@ -720,7 +711,7 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
720
711
|
" — ",
|
|
721
712
|
e.name
|
|
722
713
|
]
|
|
723
|
-
}, e.id)), /* @__PURE__ */ Y(
|
|
714
|
+
}, e.id)), /* @__PURE__ */ Y(T, {
|
|
724
715
|
value: Z,
|
|
725
716
|
children: "Custom round"
|
|
726
717
|
})] })]
|
|
@@ -730,78 +721,78 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
730
721
|
children: "Configured rounds stay linked to posting-level bulk actions."
|
|
731
722
|
})
|
|
732
723
|
] }),
|
|
733
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
724
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
734
725
|
htmlFor: "round-name",
|
|
735
726
|
children: "Name"
|
|
736
|
-
}), /* @__PURE__ */ Y(
|
|
727
|
+
}), /* @__PURE__ */ Y(x, {
|
|
737
728
|
id: "round-name",
|
|
738
|
-
value:
|
|
739
|
-
onChange: (e) =>
|
|
729
|
+
value: N.name,
|
|
730
|
+
onChange: (e) => P((t) => ({
|
|
740
731
|
...t,
|
|
741
732
|
name: e.target.value
|
|
742
733
|
})),
|
|
743
734
|
placeholder: "e.g. Technical Interview",
|
|
744
|
-
disabled:
|
|
735
|
+
disabled: j !== Z
|
|
745
736
|
})] }),
|
|
746
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
737
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
747
738
|
htmlFor: "round-type",
|
|
748
739
|
children: "Round Type"
|
|
749
|
-
}), /* @__PURE__ */ X(
|
|
750
|
-
value:
|
|
751
|
-
onValueChange: (e) =>
|
|
740
|
+
}), /* @__PURE__ */ X(C, {
|
|
741
|
+
value: N.roundType,
|
|
742
|
+
onValueChange: (e) => P((t) => ({
|
|
752
743
|
...t,
|
|
753
744
|
roundType: e
|
|
754
745
|
})),
|
|
755
|
-
disabled:
|
|
756
|
-
children: [/* @__PURE__ */ Y(
|
|
746
|
+
disabled: j !== Z,
|
|
747
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
757
748
|
id: "round-type",
|
|
758
|
-
children: /* @__PURE__ */ Y(
|
|
759
|
-
}), /* @__PURE__ */ Y(
|
|
749
|
+
children: /* @__PURE__ */ Y(D, {})
|
|
750
|
+
}), /* @__PURE__ */ Y(w, { children: Object.values(d).map((e) => /* @__PURE__ */ Y(T, {
|
|
760
751
|
value: e,
|
|
761
752
|
children: $(e)
|
|
762
753
|
}, e)) })]
|
|
763
754
|
})] }),
|
|
764
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
755
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
765
756
|
htmlFor: "round-status",
|
|
766
757
|
children: "Status"
|
|
767
|
-
}), /* @__PURE__ */ X(
|
|
768
|
-
value:
|
|
769
|
-
onValueChange: (e) =>
|
|
758
|
+
}), /* @__PURE__ */ X(C, {
|
|
759
|
+
value: N.status,
|
|
760
|
+
onValueChange: (e) => P((t) => ({
|
|
770
761
|
...t,
|
|
771
762
|
status: e
|
|
772
763
|
})),
|
|
773
|
-
children: [/* @__PURE__ */ Y(
|
|
764
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
774
765
|
id: "round-status",
|
|
775
|
-
children: /* @__PURE__ */ Y(
|
|
776
|
-
}), /* @__PURE__ */ Y(
|
|
766
|
+
children: /* @__PURE__ */ Y(D, {})
|
|
767
|
+
}), /* @__PURE__ */ Y(w, { children: Object.values(u).map((e) => /* @__PURE__ */ Y(T, {
|
|
777
768
|
value: e,
|
|
778
769
|
children: $(e)
|
|
779
770
|
}, e)) })]
|
|
780
771
|
})] }),
|
|
781
|
-
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
772
|
+
/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
782
773
|
htmlFor: "round-scheduled",
|
|
783
774
|
children: "Scheduled At"
|
|
784
|
-
}), /* @__PURE__ */ Y(
|
|
775
|
+
}), /* @__PURE__ */ Y(x, {
|
|
785
776
|
id: "round-scheduled",
|
|
786
777
|
type: "datetime-local",
|
|
787
|
-
value:
|
|
788
|
-
onChange: (e) =>
|
|
778
|
+
value: N.scheduledAt,
|
|
779
|
+
onChange: (e) => P((t) => ({
|
|
789
780
|
...t,
|
|
790
781
|
scheduledAt: e.target.value
|
|
791
782
|
}))
|
|
792
783
|
})] })
|
|
793
784
|
]
|
|
794
785
|
}),
|
|
795
|
-
/* @__PURE__ */ X(
|
|
786
|
+
/* @__PURE__ */ X(ve, { children: [/* @__PURE__ */ Y(g, {
|
|
796
787
|
variant: "outline",
|
|
797
788
|
onClick: () => {
|
|
798
789
|
O(!1), K();
|
|
799
790
|
},
|
|
800
791
|
children: "Cancel"
|
|
801
|
-
}), /* @__PURE__ */ X(
|
|
792
|
+
}), /* @__PURE__ */ X(g, {
|
|
802
793
|
onClick: Ee,
|
|
803
|
-
disabled:
|
|
804
|
-
children: [
|
|
794
|
+
disabled: p || !N.name.trim(),
|
|
795
|
+
children: [p ? /* @__PURE__ */ Y(G, {
|
|
805
796
|
size: 14,
|
|
806
797
|
className: "animate-spin mr-1"
|
|
807
798
|
}) : null, "Create Round"]
|
|
@@ -809,40 +800,40 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
809
800
|
]
|
|
810
801
|
})
|
|
811
802
|
}),
|
|
812
|
-
/* @__PURE__ */ Y(
|
|
813
|
-
open: !!
|
|
803
|
+
/* @__PURE__ */ Y(v, {
|
|
804
|
+
open: !!xe,
|
|
814
805
|
onOpenChange: (e) => !e && F(null),
|
|
815
|
-
children: /* @__PURE__ */ X(
|
|
806
|
+
children: /* @__PURE__ */ X(_e, {
|
|
816
807
|
className: "sm:max-w-md",
|
|
817
808
|
children: [
|
|
818
|
-
/* @__PURE__ */ X(
|
|
809
|
+
/* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(ye, { children: "Assign Interviewers" }), /* @__PURE__ */ Y(y, { children: "Choose interviewers and a role for this round." })] }),
|
|
819
810
|
/* @__PURE__ */ X("div", {
|
|
820
811
|
className: "space-y-4 py-2",
|
|
821
|
-
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
812
|
+
children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
|
|
822
813
|
htmlFor: "assign-role",
|
|
823
814
|
children: "Role"
|
|
824
|
-
}), /* @__PURE__ */ X(
|
|
815
|
+
}), /* @__PURE__ */ X(C, {
|
|
825
816
|
value: Se,
|
|
826
817
|
onValueChange: (e) => R(e),
|
|
827
|
-
children: [/* @__PURE__ */ Y(
|
|
818
|
+
children: [/* @__PURE__ */ Y(E, {
|
|
828
819
|
id: "assign-role",
|
|
829
|
-
children: /* @__PURE__ */ Y(
|
|
830
|
-
}), /* @__PURE__ */ Y(
|
|
820
|
+
children: /* @__PURE__ */ Y(D, {})
|
|
821
|
+
}), /* @__PURE__ */ Y(w, { children: Object.values(f).map((e) => /* @__PURE__ */ Y(T, {
|
|
831
822
|
value: e,
|
|
832
823
|
children: $(e)
|
|
833
824
|
}, e)) })]
|
|
834
|
-
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(
|
|
825
|
+
})] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, { children: "Interviewers" }), /* @__PURE__ */ Y("div", {
|
|
835
826
|
className: "mt-1.5 max-h-60 overflow-y-auto border border-border-default rounded-lg p-2 space-y-1",
|
|
836
|
-
children:
|
|
827
|
+
children: l ? /* @__PURE__ */ X("div", {
|
|
837
828
|
className: "flex items-center gap-2 text-sm text-text-secondary py-2",
|
|
838
829
|
children: [/* @__PURE__ */ Y(G, {
|
|
839
830
|
size: 14,
|
|
840
831
|
className: "animate-spin"
|
|
841
832
|
}), "Loading…"]
|
|
842
|
-
}) :
|
|
833
|
+
}) : _.length === 0 ? /* @__PURE__ */ Y("p", {
|
|
843
834
|
className: "text-sm text-text-secondary py-2",
|
|
844
835
|
children: "No interviewers found."
|
|
845
|
-
}) :
|
|
836
|
+
}) : _.map((e) => /* @__PURE__ */ X("label", {
|
|
846
837
|
className: "flex items-start gap-2 p-2 rounded-md hover:bg-bg-muted cursor-pointer",
|
|
847
838
|
children: [/* @__PURE__ */ Y("input", {
|
|
848
839
|
type: "checkbox",
|
|
@@ -864,14 +855,14 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
864
855
|
}, e.id))
|
|
865
856
|
})] })]
|
|
866
857
|
}),
|
|
867
|
-
/* @__PURE__ */ X(
|
|
858
|
+
/* @__PURE__ */ X(ve, { children: [/* @__PURE__ */ Y(g, {
|
|
868
859
|
variant: "outline",
|
|
869
860
|
onClick: () => F(null),
|
|
870
861
|
children: "Cancel"
|
|
871
|
-
}), /* @__PURE__ */ X(
|
|
862
|
+
}), /* @__PURE__ */ X(g, {
|
|
872
863
|
onClick: Oe,
|
|
873
|
-
disabled:
|
|
874
|
-
children: [
|
|
864
|
+
disabled: m || I.length === 0,
|
|
865
|
+
children: [m ? /* @__PURE__ */ Y(G, {
|
|
875
866
|
size: 14,
|
|
876
867
|
className: "animate-spin mr-1"
|
|
877
868
|
}) : null, "Assign"]
|
|
@@ -879,30 +870,30 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
879
870
|
]
|
|
880
871
|
})
|
|
881
872
|
}),
|
|
882
|
-
/* @__PURE__ */ Y(
|
|
873
|
+
/* @__PURE__ */ Y(v, {
|
|
883
874
|
open: !!z,
|
|
884
875
|
onOpenChange: (e) => !e && B(null),
|
|
885
|
-
children: /* @__PURE__ */ X(
|
|
876
|
+
children: /* @__PURE__ */ X(_e, {
|
|
886
877
|
className: "sm:max-w-md",
|
|
887
878
|
children: [
|
|
888
|
-
/* @__PURE__ */ X(
|
|
879
|
+
/* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(ye, { children: "Send Candidate Message" }), /* @__PURE__ */ Y(y, { children: "This message will be emailed to the candidate for this round." })] }),
|
|
889
880
|
/* @__PURE__ */ Y("div", {
|
|
890
881
|
className: "py-2",
|
|
891
|
-
children: /* @__PURE__ */ Y(
|
|
882
|
+
children: /* @__PURE__ */ Y(be, {
|
|
892
883
|
value: V,
|
|
893
884
|
onChange: (e) => H(e.target.value),
|
|
894
885
|
placeholder: "Type the message to send…",
|
|
895
886
|
rows: 5
|
|
896
887
|
})
|
|
897
888
|
}),
|
|
898
|
-
/* @__PURE__ */ X(
|
|
889
|
+
/* @__PURE__ */ X(ve, { children: [/* @__PURE__ */ Y(g, {
|
|
899
890
|
variant: "outline",
|
|
900
891
|
onClick: () => B(null),
|
|
901
892
|
children: "Cancel"
|
|
902
|
-
}), /* @__PURE__ */ X(
|
|
893
|
+
}), /* @__PURE__ */ X(g, {
|
|
903
894
|
onClick: q,
|
|
904
|
-
disabled:
|
|
905
|
-
children: [
|
|
895
|
+
disabled: fe || !V.trim(),
|
|
896
|
+
children: [fe ? /* @__PURE__ */ Y(G, {
|
|
906
897
|
size: 14,
|
|
907
898
|
className: "animate-spin mr-1"
|
|
908
899
|
}) : null, "Send Message"]
|
|
@@ -914,73 +905,73 @@ function Je({ applicationId: e, jobPostingId: n }) {
|
|
|
914
905
|
});
|
|
915
906
|
}
|
|
916
907
|
function Ye() {
|
|
917
|
-
let { id: e } = Fe(), t = Pe(), n = Ne().search, [r, i] = k(!1), [
|
|
908
|
+
let { id: e } = Fe(), t = Pe(), n = Ne().search, [r, i] = k(!1), [ne, re] = k(!1), [ie, ae] = k(!1), [o, s] = k(!1), [c, se] = k(""), [u, d] = k(!1), [ce, f] = k(null), { data: m, loading: ue, error: h } = a({
|
|
918
909
|
variables: { id: e },
|
|
919
910
|
skip: !e
|
|
920
|
-
}),
|
|
911
|
+
}), g = m?.jobApplication?.productId ?? null;
|
|
921
912
|
O(() => {
|
|
922
|
-
if (!
|
|
923
|
-
|
|
913
|
+
if (!g) {
|
|
914
|
+
f(null);
|
|
924
915
|
return;
|
|
925
916
|
}
|
|
926
917
|
let e = !1;
|
|
927
918
|
return Ie({
|
|
928
919
|
gateway: "global",
|
|
929
920
|
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
930
|
-
variables: { id:
|
|
921
|
+
variables: { id: g }
|
|
931
922
|
}).then((t) => {
|
|
932
923
|
if (e) return;
|
|
933
924
|
let n = t.data?.platformProduct?.name;
|
|
934
|
-
n &&
|
|
925
|
+
n && f(n);
|
|
935
926
|
}).catch(() => {}), () => {
|
|
936
927
|
e = !0;
|
|
937
928
|
};
|
|
938
|
-
}, [
|
|
939
|
-
let [
|
|
940
|
-
if (
|
|
941
|
-
(await
|
|
929
|
+
}, [g]);
|
|
930
|
+
let [me, { loading: _ }] = l({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [he, { loading: ge }] = te({ fetchPolicy: "no-cache" }), [ve, x] = k(!1), [S, C] = k(null), [w, T] = k(!1), [E, { loading: D }] = ee({ fetchPolicy: "no-cache" }), [be, { loading: R }] = oe(), U = m?.jobApplication, we = async () => {
|
|
931
|
+
if (c.trim() && e) try {
|
|
932
|
+
(await be({ variables: {
|
|
942
933
|
id: e,
|
|
943
|
-
message:
|
|
944
|
-
} })).data?.replyToJobApplication.success && (
|
|
934
|
+
message: c.trim()
|
|
935
|
+
} })).data?.replyToJobApplication.success && (d(!0), se(""), setTimeout(() => d(!1), 3e3));
|
|
945
936
|
} catch (e) {
|
|
946
937
|
console.error("Failed to send reply:", e);
|
|
947
938
|
}
|
|
948
939
|
}, De = async (t) => {
|
|
949
940
|
if (e) {
|
|
950
|
-
|
|
941
|
+
re(!1);
|
|
951
942
|
try {
|
|
952
|
-
await
|
|
943
|
+
await me({ variables: {
|
|
953
944
|
id: e,
|
|
954
945
|
input: { status: t }
|
|
955
946
|
} }), i(!0), setTimeout(() => i(!1), 3e3);
|
|
956
947
|
} catch (e) {
|
|
957
|
-
console.error("Failed to update status:", e),
|
|
948
|
+
console.error("Failed to update status:", e), re(!0), setTimeout(() => re(!1), 4e3);
|
|
958
949
|
}
|
|
959
950
|
}
|
|
960
951
|
}, ke = async () => {
|
|
961
952
|
if (e) {
|
|
962
|
-
|
|
953
|
+
s(!1);
|
|
963
954
|
try {
|
|
964
|
-
let t = (await
|
|
965
|
-
t ? window.open(t, "_blank", "noopener,noreferrer") :
|
|
955
|
+
let t = (await he({ variables: { id: e } })).data?.jobApplicationResumeUrl;
|
|
956
|
+
t ? window.open(t, "_blank", "noopener,noreferrer") : s(!0);
|
|
966
957
|
} catch (e) {
|
|
967
|
-
console.error("Failed to get resume URL:", e),
|
|
958
|
+
console.error("Failed to get resume URL:", e), s(!0);
|
|
968
959
|
}
|
|
969
960
|
}
|
|
970
961
|
}, Ae = async () => {
|
|
971
962
|
if (e) {
|
|
972
|
-
|
|
963
|
+
T(!1), C(null), x(!0);
|
|
973
964
|
try {
|
|
974
|
-
let t = (await
|
|
975
|
-
t ? C(t) :
|
|
965
|
+
let t = (await E({ variables: { id: e } })).data?.jobApplicationResumePreviewUrl;
|
|
966
|
+
t ? C(t) : T(!0);
|
|
976
967
|
} catch (e) {
|
|
977
|
-
console.error("Failed to get resume preview URL:", e),
|
|
968
|
+
console.error("Failed to get resume preview URL:", e), T(!0);
|
|
978
969
|
}
|
|
979
970
|
}
|
|
980
971
|
}, je = async () => {
|
|
981
|
-
U?.email && (
|
|
972
|
+
U?.email && (le("light"), await p(U.email), ae(!0), setTimeout(() => ae(!1), 2e3));
|
|
982
973
|
};
|
|
983
|
-
if (
|
|
974
|
+
if (ue) return /* @__PURE__ */ Y("div", {
|
|
984
975
|
className: "min-h-full flex items-center justify-center py-20",
|
|
985
976
|
children: /* @__PURE__ */ X("div", {
|
|
986
977
|
className: "text-center",
|
|
@@ -993,17 +984,17 @@ function Ye() {
|
|
|
993
984
|
})]
|
|
994
985
|
})
|
|
995
986
|
});
|
|
996
|
-
if (
|
|
987
|
+
if (h || !U) return /* @__PURE__ */ Y("div", {
|
|
997
988
|
className: "p-6",
|
|
998
989
|
children: /* @__PURE__ */ Y(ze, {
|
|
999
990
|
illustration: "empty-search",
|
|
1000
991
|
title: "Application not found",
|
|
1001
|
-
description:
|
|
992
|
+
description: h?.message || "This application may have been deleted or you don't have access.",
|
|
1002
993
|
action: /* @__PURE__ */ X("button", {
|
|
1003
994
|
type: "button",
|
|
1004
995
|
onClick: () => t(`/support/applications${n}`),
|
|
1005
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",
|
|
1006
|
-
children: [/* @__PURE__ */ Y(
|
|
997
|
+
children: [/* @__PURE__ */ Y(M, { size: 16 }), "Back to Applications"]
|
|
1007
998
|
})
|
|
1008
999
|
})
|
|
1009
1000
|
});
|
|
@@ -1017,7 +1008,7 @@ function Ye() {
|
|
|
1017
1008
|
type: "button",
|
|
1018
1009
|
onClick: () => t(`/support/applications${n}`),
|
|
1019
1010
|
className: "inline-flex items-center gap-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
1020
|
-
children: [/* @__PURE__ */ Y(
|
|
1011
|
+
children: [/* @__PURE__ */ Y(M, { size: 18 }), /* @__PURE__ */ Y("span", {
|
|
1021
1012
|
className: "text-sm font-medium",
|
|
1022
1013
|
children: "Back to Applications"
|
|
1023
1014
|
})]
|
|
@@ -1030,9 +1021,9 @@ function Ye() {
|
|
|
1030
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",
|
|
1031
1022
|
children: [/* @__PURE__ */ Y(F, { size: 18 }), "Status updated successfully"]
|
|
1032
1023
|
}),
|
|
1033
|
-
|
|
1024
|
+
ne && /* @__PURE__ */ X("div", {
|
|
1034
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",
|
|
1035
|
-
children: [/* @__PURE__ */ Y(
|
|
1026
|
+
children: [/* @__PURE__ */ Y(A, { size: 18 }), "Couldn't update the status. Please try again."]
|
|
1036
1027
|
}),
|
|
1037
1028
|
/* @__PURE__ */ Y(Ve, {
|
|
1038
1029
|
className: "mb-6",
|
|
@@ -1165,7 +1156,7 @@ function Ye() {
|
|
|
1165
1156
|
onClick: je,
|
|
1166
1157
|
className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
|
|
1167
1158
|
title: "Copy email",
|
|
1168
|
-
children:
|
|
1159
|
+
children: ie ? /* @__PURE__ */ Y(F, {
|
|
1169
1160
|
size: 12,
|
|
1170
1161
|
className: "text-status-success-text"
|
|
1171
1162
|
}) : /* @__PURE__ */ Y(L, {
|
|
@@ -1197,7 +1188,7 @@ function Ye() {
|
|
|
1197
1188
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1198
1189
|
children: [/* @__PURE__ */ Y("div", {
|
|
1199
1190
|
className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
|
|
1200
|
-
children: /* @__PURE__ */ Y(
|
|
1191
|
+
children: /* @__PURE__ */ Y(N, {
|
|
1201
1192
|
size: 16,
|
|
1202
1193
|
className: "text-accent-blue"
|
|
1203
1194
|
})
|
|
@@ -1213,7 +1204,7 @@ function Ye() {
|
|
|
1213
1204
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1214
1205
|
children: [/* @__PURE__ */ Y("div", {
|
|
1215
1206
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
1216
|
-
children: /* @__PURE__ */ Y(
|
|
1207
|
+
children: /* @__PURE__ */ Y(P, {
|
|
1217
1208
|
size: 16,
|
|
1218
1209
|
className: "text-accent-purple"
|
|
1219
1210
|
})
|
|
@@ -1275,7 +1266,7 @@ function Ye() {
|
|
|
1275
1266
|
})]
|
|
1276
1267
|
})]
|
|
1277
1268
|
}),
|
|
1278
|
-
U.productId &&
|
|
1269
|
+
U.productId && ce && /* @__PURE__ */ X("div", {
|
|
1279
1270
|
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
1280
1271
|
children: [/* @__PURE__ */ Y("div", {
|
|
1281
1272
|
className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
@@ -1288,7 +1279,7 @@ function Ye() {
|
|
|
1288
1279
|
children: "Product"
|
|
1289
1280
|
}), /* @__PURE__ */ Y("p", {
|
|
1290
1281
|
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
1291
|
-
children:
|
|
1282
|
+
children: ce
|
|
1292
1283
|
})] })]
|
|
1293
1284
|
}),
|
|
1294
1285
|
/* @__PURE__ */ X("div", {
|
|
@@ -1393,9 +1384,9 @@ function Ye() {
|
|
|
1393
1384
|
/* @__PURE__ */ X("button", {
|
|
1394
1385
|
type: "button",
|
|
1395
1386
|
onClick: ke,
|
|
1396
|
-
disabled:
|
|
1387
|
+
disabled: ge,
|
|
1397
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",
|
|
1398
|
-
children: [
|
|
1389
|
+
children: [ge ? /* @__PURE__ */ Y(G, {
|
|
1399
1390
|
size: 15,
|
|
1400
1391
|
className: "animate-spin"
|
|
1401
1392
|
}) : /* @__PURE__ */ Y(Se, { size: 15 }), "Download Resume"]
|
|
@@ -1403,14 +1394,14 @@ function Ye() {
|
|
|
1403
1394
|
/* @__PURE__ */ X("button", {
|
|
1404
1395
|
type: "button",
|
|
1405
1396
|
onClick: Ae,
|
|
1406
|
-
disabled:
|
|
1397
|
+
disabled: D,
|
|
1407
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",
|
|
1408
|
-
children: [
|
|
1399
|
+
children: [D ? /* @__PURE__ */ Y(G, {
|
|
1409
1400
|
size: 15,
|
|
1410
1401
|
className: "animate-spin"
|
|
1411
1402
|
}) : /* @__PURE__ */ Y(B, { size: 15 }), "Preview Resume"]
|
|
1412
1403
|
}),
|
|
1413
|
-
|
|
1404
|
+
o && /* @__PURE__ */ Y("p", {
|
|
1414
1405
|
className: "mt-2 text-xs text-status-error-text",
|
|
1415
1406
|
children: "Could not generate a download link. Please try again."
|
|
1416
1407
|
})
|
|
@@ -1426,7 +1417,7 @@ function Ye() {
|
|
|
1426
1417
|
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
1427
1418
|
children: /* @__PURE__ */ X("h2", {
|
|
1428
1419
|
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
1429
|
-
children: [/* @__PURE__ */ Y(
|
|
1420
|
+
children: [/* @__PURE__ */ Y(xe, { size: 14 }), "Timeline"]
|
|
1430
1421
|
})
|
|
1431
1422
|
}), /* @__PURE__ */ X("div", {
|
|
1432
1423
|
className: "p-5 space-y-4",
|
|
@@ -1463,20 +1454,20 @@ function Ye() {
|
|
|
1463
1454
|
}), /* @__PURE__ */ X("div", {
|
|
1464
1455
|
className: "p-5",
|
|
1465
1456
|
children: [
|
|
1466
|
-
|
|
1457
|
+
u && /* @__PURE__ */ X("div", {
|
|
1467
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",
|
|
1468
1459
|
children: [/* @__PURE__ */ Y(F, { size: 14 }), "Reply sent to the applicant!"]
|
|
1469
1460
|
}),
|
|
1470
|
-
/* @__PURE__ */ Y(
|
|
1461
|
+
/* @__PURE__ */ Y(pe, {
|
|
1471
1462
|
id: "reply-message",
|
|
1472
|
-
value:
|
|
1473
|
-
onChange:
|
|
1463
|
+
value: c,
|
|
1464
|
+
onChange: se,
|
|
1474
1465
|
placeholder: "Type your reply… This will be sent as a branded email to the applicant."
|
|
1475
1466
|
}),
|
|
1476
1467
|
/* @__PURE__ */ X("button", {
|
|
1477
1468
|
type: "button",
|
|
1478
1469
|
onClick: we,
|
|
1479
|
-
disabled: R || !
|
|
1470
|
+
disabled: R || !c.trim(),
|
|
1480
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",
|
|
1481
1472
|
children: [R ? /* @__PURE__ */ Y(G, {
|
|
1482
1473
|
size: 15,
|
|
@@ -1505,11 +1496,11 @@ function Ye() {
|
|
|
1505
1496
|
id: "jobapplicationdetailpage-status-0",
|
|
1506
1497
|
value: U.status,
|
|
1507
1498
|
onChange: (e) => De(e.target.value),
|
|
1508
|
-
disabled:
|
|
1499
|
+
disabled: _,
|
|
1509
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",
|
|
1510
|
-
children:
|
|
1501
|
+
children: fe.map((e) => /* @__PURE__ */ Y("option", {
|
|
1511
1502
|
value: e,
|
|
1512
|
-
children:
|
|
1503
|
+
children: de[e] || e
|
|
1513
1504
|
}, e))
|
|
1514
1505
|
})] }), /* @__PURE__ */ X("div", {
|
|
1515
1506
|
className: "space-y-2",
|
|
@@ -1520,9 +1511,9 @@ function Ye() {
|
|
|
1520
1511
|
}), U.status !== "ARCHIVED" && /* @__PURE__ */ X("button", {
|
|
1521
1512
|
type: "button",
|
|
1522
1513
|
onClick: () => De("ARCHIVED"),
|
|
1523
|
-
disabled:
|
|
1514
|
+
disabled: _,
|
|
1524
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",
|
|
1525
|
-
children: [/* @__PURE__ */ Y(
|
|
1516
|
+
children: [/* @__PURE__ */ Y(j, { size: 15 }), "Archive"]
|
|
1526
1517
|
})]
|
|
1527
1518
|
})]
|
|
1528
1519
|
})]
|
|
@@ -1530,14 +1521,14 @@ function Ye() {
|
|
|
1530
1521
|
]
|
|
1531
1522
|
})]
|
|
1532
1523
|
}),
|
|
1533
|
-
/* @__PURE__ */ Y(
|
|
1534
|
-
open:
|
|
1535
|
-
onOpenChange:
|
|
1536
|
-
children: /* @__PURE__ */ X(
|
|
1524
|
+
/* @__PURE__ */ Y(v, {
|
|
1525
|
+
open: ve,
|
|
1526
|
+
onOpenChange: x,
|
|
1527
|
+
children: /* @__PURE__ */ X(_e, {
|
|
1537
1528
|
className: "sm:max-w-4xl",
|
|
1538
|
-
children: [/* @__PURE__ */ X(
|
|
1529
|
+
children: [/* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(ye, { children: "Resume Preview" }), /* @__PURE__ */ Y(y, { children: U.resumeFileName ?? "Candidate resume" })] }), /* @__PURE__ */ Y("div", {
|
|
1539
1530
|
className: "h-[70vh] w-full rounded-lg border border-border-seam bg-bg-sunken/30 overflow-hidden",
|
|
1540
|
-
children:
|
|
1531
|
+
children: D ? /* @__PURE__ */ X("div", {
|
|
1541
1532
|
className: "h-full flex flex-col items-center justify-center gap-3",
|
|
1542
1533
|
children: [/* @__PURE__ */ Y(G, {
|
|
1543
1534
|
size: 28,
|
|
@@ -1546,9 +1537,9 @@ function Ye() {
|
|
|
1546
1537
|
className: "text-sm text-text-secondary",
|
|
1547
1538
|
children: "Loading preview…"
|
|
1548
1539
|
})]
|
|
1549
|
-
}) :
|
|
1540
|
+
}) : w || !S ? /* @__PURE__ */ X("div", {
|
|
1550
1541
|
className: "h-full flex flex-col items-center justify-center gap-3",
|
|
1551
|
-
children: [/* @__PURE__ */ Y(
|
|
1542
|
+
children: [/* @__PURE__ */ Y(A, {
|
|
1552
1543
|
size: 28,
|
|
1553
1544
|
className: "text-status-error-text"
|
|
1554
1545
|
}), /* @__PURE__ */ Y("p", {
|
|
@@ -1566,7 +1557,6 @@ function Ye() {
|
|
|
1566
1557
|
]
|
|
1567
1558
|
});
|
|
1568
1559
|
}
|
|
1569
|
-
//#endregion
|
|
1570
1560
|
export { Ye as JobApplicationDetailPage };
|
|
1571
1561
|
|
|
1572
1562
|
//# sourceMappingURL=JobApplicationDetailPage.js.map
|