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