@burdenoff/microfe-support 2026.1029.3 → 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.js +57 -58
- 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,46 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useCreateInterviewRoundConfigMutation as
|
|
3
|
-
import { EmploymentType as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { useEffect as
|
|
9
|
-
import { AlertCircle as
|
|
10
|
-
import { useNavigate as
|
|
11
|
-
import { Fragment as
|
|
12
|
-
import { AlertDialog as
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
[
|
|
1
|
+
import e from "../../node_modules/dompurify/dist/purify.es.js";
|
|
2
|
+
import { useCreateInterviewRoundConfigMutation as t, useCreateJobAssignmentMutation as n, useDeleteInterviewRoundConfigMutation as ee, useDeleteJobAssignmentMutation as te, useGetJobPostingQuery as ne, useUpdateInterviewRoundConfigMutation as re, useUpdateJobAssignmentMutation as ie, useUpdateJobPostingMutation as ae } from "../../generated/global-operations.js";
|
|
3
|
+
import { EmploymentType as r, InterviewRoundType as i, JobPostingStatus as a } from "../../generated/global-types.js";
|
|
4
|
+
import { EmptyState as o, LoadingState as oe, PageLayout as s } from "../components/PageLayout.js";
|
|
5
|
+
import { Badge as c, Button as l, Tabs as se, TabsContent as u, TabsList as ce, TabsTrigger as d } from "../components/ui.js";
|
|
6
|
+
import { RichTextEditor as le } from "../components/careers/RichTextEditor.js";
|
|
7
|
+
import { cn as f } from "../utils/cn.js";
|
|
8
|
+
import { useEffect as p, useRef as m, useState as h } from "react";
|
|
9
|
+
import { AlertCircle as ue, ArrowLeft as de, Briefcase as g, Building2 as fe, Check as _, CheckCircle as pe, Clock as me, Edit2 as v, FileText as he, Layers as ge, Loader2 as y, MapPin as _e, Plus as b, Trash2 as ve, Users as ye, X as x } from "lucide-react";
|
|
10
|
+
import { useNavigate as be, useParams as xe } from "react-router";
|
|
11
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
12
|
+
import { AlertDialog as Se, AlertDialogAction as Ce, AlertDialogCancel as we, AlertDialogContent as Te, AlertDialogDescription as T, AlertDialogFooter as Ee, AlertDialogHeader as De, AlertDialogTitle as Oe, ResponsiveDialog as E, ResponsiveDialogContent as D, ResponsiveDialogHeader as O, ResponsiveDialogTitle as k } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
// src/support/pages/JobPostingDetailPage.tsx
|
|
14
|
+
var ke = {
|
|
15
|
+
[a.Draft]: {
|
|
16
16
|
label: "Draft",
|
|
17
17
|
variant: "secondary"
|
|
18
18
|
},
|
|
19
|
-
[
|
|
19
|
+
[a.Open]: {
|
|
20
20
|
label: "Open",
|
|
21
21
|
variant: "success"
|
|
22
22
|
},
|
|
23
|
-
[
|
|
23
|
+
[a.Closed]: {
|
|
24
24
|
label: "Closed",
|
|
25
25
|
variant: "warning"
|
|
26
26
|
},
|
|
27
|
-
[
|
|
27
|
+
[a.Archived]: {
|
|
28
28
|
label: "Archived",
|
|
29
29
|
variant: "destructive"
|
|
30
30
|
}
|
|
31
|
+
}, Ae = {
|
|
32
|
+
[r.FullTime]: "Full-time",
|
|
33
|
+
[r.PartTime]: "Part-time",
|
|
34
|
+
[r.Contract]: "Contract",
|
|
35
|
+
[r.Internship]: "Internship"
|
|
36
|
+
}, je = {
|
|
37
|
+
[i.PhoneScreen]: "Phone Screen",
|
|
38
|
+
[i.Technical]: "Technical",
|
|
39
|
+
[i.CultureFit]: "Culture Fit",
|
|
40
|
+
[i.Hr]: "HR",
|
|
41
|
+
[i.TakeHome]: "Take-home",
|
|
42
|
+
[i.Final]: "Final"
|
|
31
43
|
}, Me = {
|
|
32
|
-
[a.FullTime]: "Full-time",
|
|
33
|
-
[a.PartTime]: "Part-time",
|
|
34
|
-
[a.Contract]: "Contract",
|
|
35
|
-
[a.Internship]: "Internship"
|
|
36
|
-
}, Ne = {
|
|
37
|
-
[o.PhoneScreen]: "Phone Screen",
|
|
38
|
-
[o.Technical]: "Technical",
|
|
39
|
-
[o.CultureFit]: "Culture Fit",
|
|
40
|
-
[o.Hr]: "HR",
|
|
41
|
-
[o.TakeHome]: "Take-home",
|
|
42
|
-
[o.Final]: "Final"
|
|
43
|
-
}, O = {
|
|
44
44
|
NEW: "bg-status-info-bg-subtle text-status-info-text",
|
|
45
45
|
SCREENING: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
46
46
|
SHORTLISTED: "bg-accent-purple-subtle text-accent-purple",
|
|
@@ -48,7 +48,7 @@ var je = {
|
|
|
48
48
|
HIRED: "bg-status-success-bg-subtle text-status-success-text",
|
|
49
49
|
REJECTED: "bg-status-error-bg-subtle text-status-error-text",
|
|
50
50
|
ARCHIVED: "bg-bg-sunken text-text-secondary"
|
|
51
|
-
},
|
|
51
|
+
}, Ne = {
|
|
52
52
|
NEW: "New",
|
|
53
53
|
SCREENING: "Screening",
|
|
54
54
|
SHORTLISTED: "Shortlisted",
|
|
@@ -57,58 +57,58 @@ var je = {
|
|
|
57
57
|
REJECTED: "Rejected",
|
|
58
58
|
ARCHIVED: "Archived"
|
|
59
59
|
};
|
|
60
|
-
function
|
|
60
|
+
function Pe(e) {
|
|
61
61
|
return new Date(e).toLocaleDateString("en-US", {
|
|
62
62
|
month: "short",
|
|
63
63
|
day: "numeric",
|
|
64
64
|
year: "numeric"
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function A(e) {
|
|
68
68
|
return e.split("\n").map((e) => e.trim()).filter(Boolean);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function j(e) {
|
|
71
71
|
return (e ?? []).join("\n");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
let [e, t] =
|
|
75
|
-
return
|
|
73
|
+
function Fe() {
|
|
74
|
+
let [e, t] = h(null), n = m(null);
|
|
75
|
+
return p(() => () => {
|
|
76
76
|
n.current && clearTimeout(n.current);
|
|
77
77
|
}, []), {
|
|
78
78
|
notification: e,
|
|
79
|
-
show: (e,
|
|
79
|
+
show: (e, ee) => {
|
|
80
80
|
t({
|
|
81
81
|
type: e,
|
|
82
|
-
message:
|
|
82
|
+
message: ee
|
|
83
83
|
}), n.current && clearTimeout(n.current), n.current = setTimeout(() => t(null), 3e3);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
let { id:
|
|
87
|
+
function M() {
|
|
88
|
+
let { id: m } = xe(), M = be(), { notification: N, show: P } = Fe(), [Ie, Le] = h("rounds"), [Re, F] = h(!1), [ze, I] = h(!1), [L, R] = h(null), [z, B] = h({
|
|
89
89
|
name: "",
|
|
90
|
-
roundType:
|
|
90
|
+
roundType: i.Technical,
|
|
91
91
|
description: "",
|
|
92
92
|
isAssignmentRound: !1,
|
|
93
93
|
isRequired: !0
|
|
94
|
-
}), [
|
|
94
|
+
}), [Be, V] = h(!1), [H, U] = h(null), [W, G] = h({
|
|
95
95
|
title: "",
|
|
96
96
|
description: "",
|
|
97
97
|
problemStatement: "",
|
|
98
98
|
difficulty: "",
|
|
99
99
|
isActive: !0,
|
|
100
100
|
ownerEmail: ""
|
|
101
|
-
}), [
|
|
102
|
-
variables: { id:
|
|
103
|
-
skip: !
|
|
104
|
-
}),
|
|
101
|
+
}), [K, q] = h(null), [J, Y] = h(null), { data: Ve, loading: He, error: Ue } = ne({
|
|
102
|
+
variables: { id: m },
|
|
103
|
+
skip: !m
|
|
104
|
+
}), X = Ve?.jobPosting, [We, { loading: Ge }] = ae({ refetchQueries: ["GetJobPosting"] }), [Ke, { loading: qe }] = t({ refetchQueries: ["GetJobPosting"] }), [Je, { loading: Ye }] = re({ refetchQueries: ["GetJobPosting"] }), [Xe, { loading: Ze }] = ee({ refetchQueries: ["GetJobPosting"] }), [Qe, { loading: $e }] = n({ refetchQueries: ["GetJobPosting"] }), [et, { loading: tt }] = ie({ refetchQueries: ["GetJobPosting"] }), [nt, { loading: rt }] = te({ refetchQueries: ["GetJobPosting"] }), [Z, Q] = h({
|
|
105
105
|
title: "",
|
|
106
106
|
department: "",
|
|
107
107
|
location: "",
|
|
108
108
|
employmentType: "",
|
|
109
109
|
description: "",
|
|
110
110
|
productId: "",
|
|
111
|
-
status:
|
|
111
|
+
status: a.Draft,
|
|
112
112
|
slug: "",
|
|
113
113
|
openings: "",
|
|
114
114
|
overview: "",
|
|
@@ -116,461 +116,461 @@ function j() {
|
|
|
116
116
|
learnings: "",
|
|
117
117
|
qualifications: ""
|
|
118
118
|
});
|
|
119
|
-
if (
|
|
120
|
-
|
|
121
|
-
title:
|
|
122
|
-
department:
|
|
123
|
-
location:
|
|
124
|
-
employmentType:
|
|
125
|
-
description:
|
|
126
|
-
productId:
|
|
127
|
-
status:
|
|
128
|
-
slug:
|
|
129
|
-
openings:
|
|
130
|
-
overview:
|
|
131
|
-
responsibilities:
|
|
132
|
-
learnings:
|
|
133
|
-
qualifications:
|
|
119
|
+
if (p(() => {
|
|
120
|
+
X && Q({
|
|
121
|
+
title: X.title,
|
|
122
|
+
department: X.department ?? "",
|
|
123
|
+
location: X.location ?? "",
|
|
124
|
+
employmentType: X.employmentType ?? "",
|
|
125
|
+
description: X.description ?? "",
|
|
126
|
+
productId: X.productId ?? "",
|
|
127
|
+
status: X.status,
|
|
128
|
+
slug: X.slug ?? "",
|
|
129
|
+
openings: X.openings == null ? "" : String(X.openings),
|
|
130
|
+
overview: X.overview ?? "",
|
|
131
|
+
responsibilities: j(X.responsibilities),
|
|
132
|
+
learnings: j(X.learnings),
|
|
133
|
+
qualifications: j(X.qualifications)
|
|
134
134
|
});
|
|
135
|
-
}, [
|
|
135
|
+
}, [X]), He) return /* @__PURE__ */ C(s, {
|
|
136
136
|
title: "Job Posting",
|
|
137
137
|
subtitle: "Loading posting details…",
|
|
138
|
-
icon: /* @__PURE__ */
|
|
139
|
-
children: /* @__PURE__ */
|
|
138
|
+
icon: /* @__PURE__ */ C(g, { size: 24 }),
|
|
139
|
+
children: /* @__PURE__ */ C(oe, { message: "Loading job posting…" })
|
|
140
140
|
});
|
|
141
|
-
if (
|
|
141
|
+
if (Ue || !X) return /* @__PURE__ */ C(s, {
|
|
142
142
|
title: "Job Posting",
|
|
143
|
-
icon: /* @__PURE__ */
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
-
icon: /* @__PURE__ */
|
|
143
|
+
icon: /* @__PURE__ */ C(g, { size: 24 }),
|
|
144
|
+
children: /* @__PURE__ */ C(o, {
|
|
145
|
+
icon: /* @__PURE__ */ C(ue, { size: 48 }),
|
|
146
146
|
title: "Posting not found",
|
|
147
|
-
description:
|
|
148
|
-
action: /* @__PURE__ */
|
|
149
|
-
onClick: () =>
|
|
150
|
-
children: [/* @__PURE__ */
|
|
147
|
+
description: Ue?.message || "This job posting may have been deleted or you don't have access.",
|
|
148
|
+
action: /* @__PURE__ */ w(l, {
|
|
149
|
+
onClick: () => M("/support/applications/postings"),
|
|
150
|
+
children: [/* @__PURE__ */ C(de, { size: 16 }), "Back to Postings"]
|
|
151
151
|
})
|
|
152
152
|
})
|
|
153
153
|
});
|
|
154
|
-
let
|
|
155
|
-
if (e.preventDefault(), !
|
|
156
|
-
let t =
|
|
154
|
+
let it = ke[X.status], $ = [...X.rounds].sort((e, t) => e.roundNumber - t.roundNumber), at = async (e) => {
|
|
155
|
+
if (e.preventDefault(), !m || !Z.title.trim()) return;
|
|
156
|
+
let t = Z.openings.trim() ? parseInt(Z.openings.trim(), 10) : void 0;
|
|
157
157
|
try {
|
|
158
|
-
await
|
|
159
|
-
id:
|
|
158
|
+
await We({ variables: {
|
|
159
|
+
id: m,
|
|
160
160
|
input: {
|
|
161
|
-
title:
|
|
162
|
-
department:
|
|
163
|
-
location:
|
|
164
|
-
employmentType:
|
|
165
|
-
description:
|
|
166
|
-
productId:
|
|
167
|
-
status:
|
|
168
|
-
slug:
|
|
161
|
+
title: Z.title,
|
|
162
|
+
department: Z.department || void 0,
|
|
163
|
+
location: Z.location || void 0,
|
|
164
|
+
employmentType: Z.employmentType || void 0,
|
|
165
|
+
description: Z.description || void 0,
|
|
166
|
+
productId: Z.productId || void 0,
|
|
167
|
+
status: Z.status,
|
|
168
|
+
slug: Z.slug.trim() || void 0,
|
|
169
169
|
openings: t && !Number.isNaN(t) ? t : void 0,
|
|
170
|
-
overview:
|
|
171
|
-
responsibilities:
|
|
172
|
-
learnings:
|
|
173
|
-
qualifications:
|
|
170
|
+
overview: Z.overview.trim() || void 0,
|
|
171
|
+
responsibilities: A(Z.responsibilities),
|
|
172
|
+
learnings: A(Z.learnings),
|
|
173
|
+
qualifications: A(Z.qualifications)
|
|
174
174
|
}
|
|
175
|
-
} }),
|
|
175
|
+
} }), P("success", "Job posting updated."), F(!1);
|
|
176
176
|
} catch {
|
|
177
|
-
|
|
177
|
+
P("error", "Failed to update job posting.");
|
|
178
178
|
}
|
|
179
179
|
}, ot = () => {
|
|
180
|
-
|
|
180
|
+
R(null), B({
|
|
181
181
|
name: "",
|
|
182
|
-
roundType:
|
|
182
|
+
roundType: i.Technical,
|
|
183
183
|
description: "",
|
|
184
184
|
isAssignmentRound: !1,
|
|
185
185
|
isRequired: !0
|
|
186
|
-
}),
|
|
186
|
+
}), I(!0);
|
|
187
187
|
}, st = (e) => {
|
|
188
|
-
|
|
188
|
+
R(e), B({
|
|
189
189
|
name: e.name,
|
|
190
190
|
roundType: e.roundType,
|
|
191
191
|
description: e.description ?? "",
|
|
192
192
|
isAssignmentRound: e.isAssignmentRound,
|
|
193
193
|
isRequired: e.isRequired
|
|
194
|
-
}),
|
|
194
|
+
}), I(!0);
|
|
195
195
|
}, ct = () => {
|
|
196
|
-
|
|
196
|
+
I(!1), R(null);
|
|
197
197
|
}, lt = async (e) => {
|
|
198
|
-
if (e.preventDefault(),
|
|
199
|
-
|
|
200
|
-
id:
|
|
198
|
+
if (e.preventDefault(), m && z.name.trim()) try {
|
|
199
|
+
L ? (await Je({ variables: {
|
|
200
|
+
id: L.id,
|
|
201
201
|
input: {
|
|
202
|
-
name:
|
|
203
|
-
roundType:
|
|
204
|
-
description:
|
|
205
|
-
isAssignmentRound:
|
|
206
|
-
isRequired:
|
|
202
|
+
name: z.name,
|
|
203
|
+
roundType: z.roundType,
|
|
204
|
+
description: z.description || void 0,
|
|
205
|
+
isAssignmentRound: z.isAssignmentRound,
|
|
206
|
+
isRequired: z.isRequired
|
|
207
207
|
}
|
|
208
|
-
} }),
|
|
209
|
-
jobPostingId:
|
|
210
|
-
name:
|
|
211
|
-
roundType:
|
|
212
|
-
description:
|
|
208
|
+
} }), P("success", "Round config updated.")) : (await Ke({ variables: { input: {
|
|
209
|
+
jobPostingId: m,
|
|
210
|
+
name: z.name,
|
|
211
|
+
roundType: z.roundType,
|
|
212
|
+
description: z.description || void 0,
|
|
213
213
|
roundNumber: $.length + 1,
|
|
214
|
-
isAssignmentRound:
|
|
215
|
-
isRequired:
|
|
216
|
-
} } }),
|
|
214
|
+
isAssignmentRound: z.isAssignmentRound,
|
|
215
|
+
isRequired: z.isRequired
|
|
216
|
+
} } }), P("success", "Round config created.")), ct();
|
|
217
217
|
} catch {
|
|
218
|
-
|
|
218
|
+
P("error", `Failed to ${L ? "update" : "create"} round config.`);
|
|
219
219
|
}
|
|
220
220
|
}, ut = async () => {
|
|
221
|
-
let e =
|
|
221
|
+
let e = K;
|
|
222
222
|
if (e) {
|
|
223
|
-
|
|
223
|
+
q(null);
|
|
224
224
|
try {
|
|
225
|
-
await
|
|
225
|
+
await Xe({ variables: { id: e } }), P("success", "Round config deleted.");
|
|
226
226
|
} catch {
|
|
227
|
-
|
|
227
|
+
P("error", "Failed to delete round config.");
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
}, dt = () => {
|
|
231
|
-
|
|
231
|
+
U(null), G({
|
|
232
232
|
title: "",
|
|
233
233
|
description: "",
|
|
234
234
|
problemStatement: "",
|
|
235
235
|
difficulty: "",
|
|
236
236
|
isActive: !0,
|
|
237
237
|
ownerEmail: ""
|
|
238
|
-
}),
|
|
238
|
+
}), V(!0);
|
|
239
239
|
}, ft = (e) => {
|
|
240
|
-
|
|
240
|
+
U(e), G({
|
|
241
241
|
title: e.title,
|
|
242
242
|
description: e.description,
|
|
243
243
|
problemStatement: e.problemStatement ?? "",
|
|
244
244
|
difficulty: e.difficulty ?? "",
|
|
245
245
|
isActive: e.isActive,
|
|
246
246
|
ownerEmail: e.ownerEmail ?? ""
|
|
247
|
-
}),
|
|
247
|
+
}), V(!0);
|
|
248
248
|
}, pt = () => {
|
|
249
|
-
|
|
249
|
+
V(!1), U(null);
|
|
250
250
|
};
|
|
251
|
-
return /* @__PURE__ */
|
|
252
|
-
title:
|
|
251
|
+
return /* @__PURE__ */ w(s, {
|
|
252
|
+
title: X.title,
|
|
253
253
|
subtitle: "Manage interview rounds, take-home assignments and applications for this posting.",
|
|
254
|
-
icon: /* @__PURE__ */
|
|
255
|
-
headerActions: /* @__PURE__ */
|
|
254
|
+
icon: /* @__PURE__ */ C(g, { size: 24 }),
|
|
255
|
+
headerActions: /* @__PURE__ */ w("div", {
|
|
256
256
|
className: "flex items-center gap-2",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ w(l, {
|
|
258
258
|
variant: "outline",
|
|
259
|
-
onClick: () =>
|
|
260
|
-
children: [/* @__PURE__ */
|
|
261
|
-
}), /* @__PURE__ */
|
|
262
|
-
onClick: () =>
|
|
263
|
-
children: [/* @__PURE__ */
|
|
259
|
+
onClick: () => M("/support/applications/postings"),
|
|
260
|
+
children: [/* @__PURE__ */ C(de, { size: 16 }), "Back"]
|
|
261
|
+
}), /* @__PURE__ */ w(l, {
|
|
262
|
+
onClick: () => F(!0),
|
|
263
|
+
children: [/* @__PURE__ */ C(v, { size: 16 }), "Edit Posting"]
|
|
264
264
|
})]
|
|
265
265
|
}),
|
|
266
266
|
children: [
|
|
267
|
-
|
|
268
|
-
className:
|
|
269
|
-
children: [
|
|
267
|
+
N && /* @__PURE__ */ w("div", {
|
|
268
|
+
className: f("fixed right-4 top-[calc(var(--header-height,4rem)+1rem)] z-[200] flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200", N.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-subtle" : "bg-status-error-bg-subtle text-status-error-text border-border-subtle"),
|
|
269
|
+
children: [N.type === "success" ? /* @__PURE__ */ C(pe, {
|
|
270
270
|
size: 20,
|
|
271
271
|
className: "text-status-success-text"
|
|
272
|
-
}) : /* @__PURE__ */
|
|
272
|
+
}) : /* @__PURE__ */ C(ue, {
|
|
273
273
|
size: 20,
|
|
274
274
|
className: "text-status-error-text"
|
|
275
|
-
}), /* @__PURE__ */
|
|
275
|
+
}), /* @__PURE__ */ C("span", {
|
|
276
276
|
className: "font-medium",
|
|
277
|
-
children:
|
|
277
|
+
children: N.message
|
|
278
278
|
})]
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ w("div", {
|
|
281
281
|
className: "rounded-xl border border-border-seam bg-bg-surface p-6 shadow-[var(--shadow-pop)]",
|
|
282
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ C("div", {
|
|
283
283
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
284
|
-
children: /* @__PURE__ */
|
|
284
|
+
children: /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
285
285
|
className: "flex items-center gap-3 mb-2 flex-wrap",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
286
|
+
children: [/* @__PURE__ */ C("h1", {
|
|
287
287
|
className: "text-xl font-bold text-text-primary",
|
|
288
|
-
children:
|
|
289
|
-
}), /* @__PURE__ */
|
|
290
|
-
variant:
|
|
291
|
-
children:
|
|
288
|
+
children: X.title
|
|
289
|
+
}), /* @__PURE__ */ C(c, {
|
|
290
|
+
variant: it.variant,
|
|
291
|
+
children: it.label
|
|
292
292
|
})]
|
|
293
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ w("div", {
|
|
294
294
|
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-text-secondary",
|
|
295
295
|
children: [
|
|
296
|
-
|
|
296
|
+
X.department && /* @__PURE__ */ w("span", {
|
|
297
297
|
className: "flex items-center gap-1.5",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ C(fe, { size: 14 }), X.department]
|
|
299
299
|
}),
|
|
300
|
-
|
|
300
|
+
X.location && /* @__PURE__ */ w("span", {
|
|
301
301
|
className: "flex items-center gap-1.5",
|
|
302
|
-
children: [/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ C(_e, { size: 14 }), X.location]
|
|
303
303
|
}),
|
|
304
|
-
|
|
304
|
+
X.employmentType && /* @__PURE__ */ w("span", {
|
|
305
305
|
className: "flex items-center gap-1.5",
|
|
306
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ C(me, { size: 14 }), Ae[X.employmentType]]
|
|
307
307
|
}),
|
|
308
|
-
|
|
308
|
+
X.productId && /* @__PURE__ */ w("span", {
|
|
309
309
|
className: "flex items-center gap-1.5",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ C(ge, { size: 14 }), X.productId]
|
|
311
311
|
})
|
|
312
312
|
]
|
|
313
313
|
})] })
|
|
314
|
-
}),
|
|
314
|
+
}), X.description && /* @__PURE__ */ C("p", {
|
|
315
315
|
className: "mt-4 text-sm text-text-primary leading-relaxed whitespace-pre-wrap",
|
|
316
|
-
children:
|
|
316
|
+
children: X.description
|
|
317
317
|
})]
|
|
318
318
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
value:
|
|
321
|
-
onValueChange:
|
|
319
|
+
/* @__PURE__ */ w(se, {
|
|
320
|
+
value: Ie,
|
|
321
|
+
onValueChange: Le,
|
|
322
322
|
children: [
|
|
323
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ w(ce, {
|
|
324
324
|
className: "mb-6",
|
|
325
325
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ w(d, {
|
|
327
327
|
value: "rounds",
|
|
328
328
|
className: "flex items-center gap-1.5",
|
|
329
329
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ C(ye, { size: 14 }),
|
|
331
331
|
"Interview Rounds",
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ C("span", {
|
|
333
333
|
className: "ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary",
|
|
334
|
-
children:
|
|
334
|
+
children: X.rounds.length
|
|
335
335
|
})
|
|
336
336
|
]
|
|
337
337
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ w(d, {
|
|
339
339
|
value: "assignments",
|
|
340
340
|
className: "flex items-center gap-1.5",
|
|
341
341
|
children: [
|
|
342
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ C(he, { size: 14 }),
|
|
343
343
|
"Assignments",
|
|
344
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ C("span", {
|
|
345
345
|
className: "ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary",
|
|
346
|
-
children:
|
|
346
|
+
children: X.assignments.length
|
|
347
347
|
})
|
|
348
348
|
]
|
|
349
349
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ w(d, {
|
|
351
351
|
value: "applications",
|
|
352
352
|
className: "flex items-center gap-1.5",
|
|
353
353
|
children: [
|
|
354
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ C(g, { size: 14 }),
|
|
355
355
|
"Applications",
|
|
356
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ C("span", {
|
|
357
357
|
className: "ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary",
|
|
358
|
-
children:
|
|
358
|
+
children: X.applications.length
|
|
359
359
|
})
|
|
360
360
|
]
|
|
361
361
|
})
|
|
362
362
|
]
|
|
363
363
|
}),
|
|
364
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ w(u, {
|
|
365
365
|
value: "rounds",
|
|
366
366
|
className: "space-y-4",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ w("div", {
|
|
368
368
|
className: "flex items-center justify-between",
|
|
369
|
-
children: [/* @__PURE__ */
|
|
369
|
+
children: [/* @__PURE__ */ C("h2", {
|
|
370
370
|
className: "text-lg font-semibold text-text-primary",
|
|
371
371
|
children: "Interview Rounds"
|
|
372
|
-
}), /* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ w(l, {
|
|
373
373
|
onClick: ot,
|
|
374
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ C(b, { size: 16 }), "Add Round"]
|
|
375
375
|
})]
|
|
376
|
-
}), $.length === 0 ? /* @__PURE__ */
|
|
377
|
-
icon: /* @__PURE__ */
|
|
376
|
+
}), $.length === 0 ? /* @__PURE__ */ C(o, {
|
|
377
|
+
icon: /* @__PURE__ */ C(ye, { size: 48 }),
|
|
378
378
|
title: "No rounds configured",
|
|
379
379
|
description: "Add interview rounds to define your hiring pipeline for this posting.",
|
|
380
|
-
action: /* @__PURE__ */
|
|
380
|
+
action: /* @__PURE__ */ w(l, {
|
|
381
381
|
onClick: ot,
|
|
382
|
-
children: [/* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ C(b, { size: 16 }), "Add Round"]
|
|
383
383
|
})
|
|
384
|
-
}) : /* @__PURE__ */
|
|
384
|
+
}) : /* @__PURE__ */ C("div", {
|
|
385
385
|
className: "space-y-3",
|
|
386
|
-
children: $.map((
|
|
386
|
+
children: $.map((e, t) => /* @__PURE__ */ w("div", {
|
|
387
387
|
className: "p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] flex flex-col sm:flex-row sm:items-center gap-4",
|
|
388
388
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ C("div", {
|
|
390
390
|
className: "flex-shrink-0 size-10 rounded-full bg-bg-sunken flex items-center justify-center text-sm font-bold text-text-secondary",
|
|
391
|
-
children:
|
|
391
|
+
children: t + 1
|
|
392
392
|
}),
|
|
393
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ w("div", {
|
|
394
394
|
className: "flex-1 min-w-0",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ w("div", {
|
|
396
396
|
className: "flex items-center gap-2 flex-wrap",
|
|
397
397
|
children: [
|
|
398
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ C("h3", {
|
|
399
399
|
className: "font-semibold text-text-primary",
|
|
400
|
-
children:
|
|
400
|
+
children: e.name
|
|
401
401
|
}),
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ C(c, {
|
|
403
403
|
variant: "secondary",
|
|
404
|
-
children:
|
|
404
|
+
children: je[e.roundType]
|
|
405
405
|
}),
|
|
406
|
-
|
|
406
|
+
e.isAssignmentRound && /* @__PURE__ */ C(c, {
|
|
407
407
|
variant: "outline",
|
|
408
408
|
children: "Assignment"
|
|
409
409
|
}),
|
|
410
|
-
|
|
410
|
+
e.isRequired && /* @__PURE__ */ w("span", {
|
|
411
411
|
className: "inline-flex items-center gap-1 text-xs text-status-success-text",
|
|
412
|
-
children: [/* @__PURE__ */
|
|
412
|
+
children: [/* @__PURE__ */ C(_, { size: 12 }), "Required"]
|
|
413
413
|
})
|
|
414
414
|
]
|
|
415
|
-
}),
|
|
415
|
+
}), e.description && /* @__PURE__ */ C("p", {
|
|
416
416
|
className: "text-sm text-text-secondary mt-1 line-clamp-2",
|
|
417
|
-
children:
|
|
417
|
+
children: e.description
|
|
418
418
|
})]
|
|
419
419
|
}),
|
|
420
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ w("div", {
|
|
421
421
|
className: "flex items-center gap-1",
|
|
422
|
-
children: [/* @__PURE__ */
|
|
422
|
+
children: [/* @__PURE__ */ C("button", {
|
|
423
423
|
type: "button",
|
|
424
|
-
onClick: () => st(
|
|
424
|
+
onClick: () => st(e),
|
|
425
425
|
className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors",
|
|
426
426
|
"aria-label": "Edit round config",
|
|
427
427
|
title: "Edit round config",
|
|
428
|
-
children: /* @__PURE__ */
|
|
429
|
-
}), /* @__PURE__ */
|
|
428
|
+
children: /* @__PURE__ */ C(v, { size: 16 })
|
|
429
|
+
}), /* @__PURE__ */ C("button", {
|
|
430
430
|
type: "button",
|
|
431
|
-
onClick: () =>
|
|
432
|
-
disabled:
|
|
431
|
+
onClick: () => q(e.id),
|
|
432
|
+
disabled: Ze,
|
|
433
433
|
className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50",
|
|
434
434
|
"aria-label": "Delete round config",
|
|
435
435
|
title: "Delete round config",
|
|
436
|
-
children:
|
|
436
|
+
children: Ze && K === e.id ? /* @__PURE__ */ C(y, {
|
|
437
437
|
size: 16,
|
|
438
438
|
className: "animate-spin"
|
|
439
|
-
}) : /* @__PURE__ */
|
|
439
|
+
}) : /* @__PURE__ */ C(ve, { size: 16 })
|
|
440
440
|
})]
|
|
441
441
|
})
|
|
442
442
|
]
|
|
443
|
-
},
|
|
443
|
+
}, e.id))
|
|
444
444
|
})]
|
|
445
445
|
}),
|
|
446
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ w(u, {
|
|
447
447
|
value: "assignments",
|
|
448
448
|
className: "space-y-4",
|
|
449
|
-
children: [/* @__PURE__ */
|
|
449
|
+
children: [/* @__PURE__ */ w("div", {
|
|
450
450
|
className: "flex items-center justify-between",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ C("h2", {
|
|
452
452
|
className: "text-lg font-semibold text-text-primary",
|
|
453
453
|
children: "Take-home Assignments"
|
|
454
|
-
}), /* @__PURE__ */
|
|
454
|
+
}), /* @__PURE__ */ w(l, {
|
|
455
455
|
onClick: dt,
|
|
456
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ C(b, { size: 16 }), "Add Assignment"]
|
|
457
457
|
})]
|
|
458
|
-
}),
|
|
459
|
-
icon: /* @__PURE__ */
|
|
458
|
+
}), X.assignments.length === 0 ? /* @__PURE__ */ C(o, {
|
|
459
|
+
icon: /* @__PURE__ */ C(he, { size: 48 }),
|
|
460
460
|
title: "No assignments configured",
|
|
461
461
|
description: "Add take-home assignments for candidates to complete during the hiring process.",
|
|
462
|
-
action: /* @__PURE__ */
|
|
462
|
+
action: /* @__PURE__ */ w(l, {
|
|
463
463
|
onClick: dt,
|
|
464
|
-
children: [/* @__PURE__ */
|
|
464
|
+
children: [/* @__PURE__ */ C(b, { size: 16 }), "Add Assignment"]
|
|
465
465
|
})
|
|
466
|
-
}) : /* @__PURE__ */
|
|
466
|
+
}) : /* @__PURE__ */ C("div", {
|
|
467
467
|
className: "space-y-3",
|
|
468
|
-
children:
|
|
469
|
-
className:
|
|
470
|
-
children: [/* @__PURE__ */
|
|
468
|
+
children: X.assignments.map((t) => /* @__PURE__ */ w("div", {
|
|
469
|
+
className: f("p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] flex flex-col sm:flex-row sm:items-start gap-4", !t.isActive && "opacity-60"),
|
|
470
|
+
children: [/* @__PURE__ */ w("div", {
|
|
471
471
|
className: "flex-1 min-w-0",
|
|
472
472
|
children: [
|
|
473
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ w("div", {
|
|
474
474
|
className: "flex items-center gap-2 flex-wrap",
|
|
475
475
|
children: [
|
|
476
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ C("h3", {
|
|
477
477
|
className: "font-semibold text-text-primary",
|
|
478
478
|
children: t.title
|
|
479
479
|
}),
|
|
480
|
-
!t.isActive && /* @__PURE__ */
|
|
480
|
+
!t.isActive && /* @__PURE__ */ C(c, {
|
|
481
481
|
variant: "secondary",
|
|
482
482
|
children: "Inactive"
|
|
483
483
|
}),
|
|
484
|
-
t.difficulty && /* @__PURE__ */
|
|
484
|
+
t.difficulty && /* @__PURE__ */ C(c, {
|
|
485
485
|
variant: "outline",
|
|
486
486
|
children: t.difficulty
|
|
487
487
|
})
|
|
488
488
|
]
|
|
489
489
|
}),
|
|
490
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ C("div", {
|
|
491
491
|
className: "support-richtext text-sm text-text-secondary mt-1 line-clamp-2",
|
|
492
|
-
dangerouslySetInnerHTML: { __html:
|
|
492
|
+
dangerouslySetInnerHTML: { __html: e.sanitize(t.description) }
|
|
493
493
|
}),
|
|
494
|
-
t.problemStatement && /* @__PURE__ */
|
|
494
|
+
t.problemStatement && /* @__PURE__ */ C("div", {
|
|
495
495
|
className: "support-richtext mt-3 p-3 rounded-lg bg-bg-sunken text-sm font-semibold text-text-primary",
|
|
496
|
-
dangerouslySetInnerHTML: { __html:
|
|
496
|
+
dangerouslySetInnerHTML: { __html: e.sanitize(t.problemStatement) }
|
|
497
497
|
}),
|
|
498
|
-
t.ownerEmail && /* @__PURE__ */
|
|
498
|
+
t.ownerEmail && /* @__PURE__ */ w("p", {
|
|
499
499
|
className: "mt-2 text-xs text-text-secondary",
|
|
500
|
-
children: ["Owner: ", /* @__PURE__ */
|
|
500
|
+
children: ["Owner: ", /* @__PURE__ */ C("span", {
|
|
501
501
|
className: "text-text-primary",
|
|
502
502
|
children: t.ownerEmail
|
|
503
503
|
})]
|
|
504
504
|
})
|
|
505
505
|
]
|
|
506
|
-
}), /* @__PURE__ */
|
|
506
|
+
}), /* @__PURE__ */ w("div", {
|
|
507
507
|
className: "flex items-center gap-1",
|
|
508
|
-
children: [/* @__PURE__ */
|
|
508
|
+
children: [/* @__PURE__ */ C("button", {
|
|
509
509
|
type: "button",
|
|
510
510
|
onClick: () => ft(t),
|
|
511
511
|
className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors",
|
|
512
512
|
"aria-label": "Edit assignment",
|
|
513
513
|
title: "Edit assignment",
|
|
514
|
-
children: /* @__PURE__ */
|
|
515
|
-
}), /* @__PURE__ */
|
|
514
|
+
children: /* @__PURE__ */ C(v, { size: 16 })
|
|
515
|
+
}), /* @__PURE__ */ C("button", {
|
|
516
516
|
type: "button",
|
|
517
|
-
onClick: () =>
|
|
518
|
-
disabled:
|
|
517
|
+
onClick: () => Y(t.id),
|
|
518
|
+
disabled: rt,
|
|
519
519
|
className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50",
|
|
520
520
|
"aria-label": "Delete assignment",
|
|
521
521
|
title: "Delete assignment",
|
|
522
|
-
children:
|
|
522
|
+
children: rt && J === t.id ? /* @__PURE__ */ C(y, {
|
|
523
523
|
size: 16,
|
|
524
524
|
className: "animate-spin"
|
|
525
|
-
}) : /* @__PURE__ */
|
|
525
|
+
}) : /* @__PURE__ */ C(ve, { size: 16 })
|
|
526
526
|
})]
|
|
527
527
|
})]
|
|
528
528
|
}, t.id))
|
|
529
529
|
})]
|
|
530
530
|
}),
|
|
531
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ w(u, {
|
|
532
532
|
value: "applications",
|
|
533
533
|
className: "space-y-4",
|
|
534
|
-
children: [/* @__PURE__ */
|
|
534
|
+
children: [/* @__PURE__ */ C("div", {
|
|
535
535
|
className: "flex items-center justify-between",
|
|
536
|
-
children: /* @__PURE__ */
|
|
536
|
+
children: /* @__PURE__ */ C("h2", {
|
|
537
537
|
className: "text-lg font-semibold text-text-primary",
|
|
538
538
|
children: "Applications"
|
|
539
539
|
})
|
|
540
|
-
}),
|
|
541
|
-
icon: /* @__PURE__ */
|
|
540
|
+
}), X.applications.length === 0 ? /* @__PURE__ */ C(o, {
|
|
541
|
+
icon: /* @__PURE__ */ C(g, { size: 48 }),
|
|
542
542
|
title: "No applications yet",
|
|
543
543
|
description: "Candidates who apply for this posting will appear here."
|
|
544
|
-
}) : /* @__PURE__ */
|
|
544
|
+
}) : /* @__PURE__ */ C("div", {
|
|
545
545
|
className: "space-y-3",
|
|
546
|
-
children:
|
|
546
|
+
children: X.applications.map((e) => /* @__PURE__ */ C("button", {
|
|
547
547
|
type: "button",
|
|
548
|
-
onClick: () =>
|
|
548
|
+
onClick: () => M(`/support/applications/${e.id}`),
|
|
549
549
|
className: "w-full text-left p-4 bg-bg-surface border border-border-seam rounded-xl shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] transition-[box-shadow,border-color] duration-200 group",
|
|
550
|
-
children: /* @__PURE__ */
|
|
550
|
+
children: /* @__PURE__ */ w("div", {
|
|
551
551
|
className: "flex items-start justify-between gap-4",
|
|
552
|
-
children: [/* @__PURE__ */
|
|
552
|
+
children: [/* @__PURE__ */ w("div", {
|
|
553
553
|
className: "flex-1 min-w-0",
|
|
554
|
-
children: [/* @__PURE__ */
|
|
554
|
+
children: [/* @__PURE__ */ w("div", {
|
|
555
555
|
className: "flex items-center gap-2 mb-1 flex-wrap",
|
|
556
|
-
children: [/* @__PURE__ */
|
|
556
|
+
children: [/* @__PURE__ */ w("h3", {
|
|
557
557
|
className: "text-sm font-semibold text-text-primary group-hover:text-primary transition-colors",
|
|
558
558
|
children: [
|
|
559
559
|
e.firstName,
|
|
560
560
|
" ",
|
|
561
561
|
e.lastName
|
|
562
562
|
]
|
|
563
|
-
}), /* @__PURE__ */
|
|
564
|
-
className:
|
|
565
|
-
children:
|
|
563
|
+
}), /* @__PURE__ */ C("span", {
|
|
564
|
+
className: f("inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium", Me[e.status] || Me.NEW),
|
|
565
|
+
children: Ne[e.status] || e.status
|
|
566
566
|
})]
|
|
567
|
-
}), /* @__PURE__ */
|
|
567
|
+
}), /* @__PURE__ */ C("p", {
|
|
568
568
|
className: "text-xs text-text-secondary truncate",
|
|
569
569
|
children: e.email
|
|
570
570
|
})]
|
|
571
|
-
}), /* @__PURE__ */
|
|
571
|
+
}), /* @__PURE__ */ C("div", {
|
|
572
572
|
className: "text-xs text-text-secondary whitespace-nowrap",
|
|
573
|
-
children:
|
|
573
|
+
children: Pe(e.createdAt)
|
|
574
574
|
})]
|
|
575
575
|
})
|
|
576
576
|
}, e.id))
|
|
@@ -578,593 +578,593 @@ function j() {
|
|
|
578
578
|
})
|
|
579
579
|
]
|
|
580
580
|
}),
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
-
open:
|
|
583
|
-
onOpenChange:
|
|
584
|
-
children: /* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ C(E, {
|
|
582
|
+
open: Re,
|
|
583
|
+
onOpenChange: F,
|
|
584
|
+
children: /* @__PURE__ */ w(D, {
|
|
585
585
|
className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
|
|
586
|
-
children: [/* @__PURE__ */
|
|
586
|
+
children: [/* @__PURE__ */ C(O, { children: /* @__PURE__ */ C(k, { children: "Edit Job Posting" }) }), /* @__PURE__ */ w("form", {
|
|
587
587
|
onSubmit: at,
|
|
588
588
|
className: "space-y-5",
|
|
589
589
|
children: [
|
|
590
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("label", {
|
|
591
591
|
htmlFor: "posting-title",
|
|
592
592
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
593
|
-
children: ["Title ", /* @__PURE__ */
|
|
593
|
+
children: ["Title ", /* @__PURE__ */ C("span", {
|
|
594
594
|
className: "text-status-error-text",
|
|
595
595
|
children: "*"
|
|
596
596
|
})]
|
|
597
|
-
}), /* @__PURE__ */
|
|
597
|
+
}), /* @__PURE__ */ C("input", {
|
|
598
598
|
id: "posting-title",
|
|
599
599
|
type: "text",
|
|
600
|
-
value:
|
|
601
|
-
onChange: (e) =>
|
|
602
|
-
...
|
|
600
|
+
value: Z.title,
|
|
601
|
+
onChange: (e) => Q({
|
|
602
|
+
...Z,
|
|
603
603
|
title: e.target.value
|
|
604
604
|
}),
|
|
605
605
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
|
|
606
606
|
required: !0
|
|
607
607
|
})] }),
|
|
608
|
-
/* @__PURE__ */
|
|
608
|
+
/* @__PURE__ */ w("div", {
|
|
609
609
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
610
|
-
children: [/* @__PURE__ */
|
|
610
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
611
611
|
htmlFor: "posting-slug",
|
|
612
612
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
613
613
|
children: "Slug"
|
|
614
|
-
}), /* @__PURE__ */
|
|
614
|
+
}), /* @__PURE__ */ C("input", {
|
|
615
615
|
id: "posting-slug",
|
|
616
616
|
type: "text",
|
|
617
|
-
value:
|
|
618
|
-
onChange: (e) =>
|
|
619
|
-
...
|
|
617
|
+
value: Z.slug,
|
|
618
|
+
onChange: (e) => Q({
|
|
619
|
+
...Z,
|
|
620
620
|
slug: e.target.value
|
|
621
621
|
}),
|
|
622
622
|
placeholder: "e.g., product-engineering-intern-full-stack",
|
|
623
623
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
624
|
-
})] }), /* @__PURE__ */
|
|
624
|
+
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
625
625
|
htmlFor: "posting-openings",
|
|
626
626
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
627
627
|
children: "Openings"
|
|
628
|
-
}), /* @__PURE__ */
|
|
628
|
+
}), /* @__PURE__ */ C("input", {
|
|
629
629
|
id: "posting-openings",
|
|
630
630
|
type: "number",
|
|
631
631
|
min: 1,
|
|
632
|
-
value:
|
|
633
|
-
onChange: (e) =>
|
|
634
|
-
...
|
|
632
|
+
value: Z.openings,
|
|
633
|
+
onChange: (e) => Q({
|
|
634
|
+
...Z,
|
|
635
635
|
openings: e.target.value
|
|
636
636
|
}),
|
|
637
637
|
placeholder: "e.g., 2",
|
|
638
638
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
639
639
|
})] })]
|
|
640
640
|
}),
|
|
641
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ w("div", {
|
|
642
642
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
643
|
-
children: [/* @__PURE__ */
|
|
643
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
644
644
|
htmlFor: "posting-department",
|
|
645
645
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
646
646
|
children: "Department"
|
|
647
|
-
}), /* @__PURE__ */
|
|
647
|
+
}), /* @__PURE__ */ C("input", {
|
|
648
648
|
id: "posting-department",
|
|
649
649
|
type: "text",
|
|
650
|
-
value:
|
|
651
|
-
onChange: (e) =>
|
|
652
|
-
...
|
|
650
|
+
value: Z.department,
|
|
651
|
+
onChange: (e) => Q({
|
|
652
|
+
...Z,
|
|
653
653
|
department: e.target.value
|
|
654
654
|
}),
|
|
655
655
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
656
|
-
})] }), /* @__PURE__ */
|
|
656
|
+
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
657
657
|
htmlFor: "posting-location",
|
|
658
658
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
659
659
|
children: "Location"
|
|
660
|
-
}), /* @__PURE__ */
|
|
660
|
+
}), /* @__PURE__ */ C("input", {
|
|
661
661
|
id: "posting-location",
|
|
662
662
|
type: "text",
|
|
663
|
-
value:
|
|
664
|
-
onChange: (e) =>
|
|
665
|
-
...
|
|
663
|
+
value: Z.location,
|
|
664
|
+
onChange: (e) => Q({
|
|
665
|
+
...Z,
|
|
666
666
|
location: e.target.value
|
|
667
667
|
}),
|
|
668
668
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
669
669
|
})] })]
|
|
670
670
|
}),
|
|
671
|
-
/* @__PURE__ */
|
|
671
|
+
/* @__PURE__ */ w("div", {
|
|
672
672
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
673
|
-
children: [/* @__PURE__ */
|
|
673
|
+
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
674
674
|
htmlFor: "posting-employment-type",
|
|
675
675
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
676
676
|
children: "Employment Type"
|
|
677
|
-
}), /* @__PURE__ */
|
|
677
|
+
}), /* @__PURE__ */ w("select", {
|
|
678
678
|
id: "posting-employment-type",
|
|
679
|
-
value:
|
|
680
|
-
onChange: (e) =>
|
|
681
|
-
...
|
|
679
|
+
value: Z.employmentType,
|
|
680
|
+
onChange: (e) => Q({
|
|
681
|
+
...Z,
|
|
682
682
|
employmentType: e.target.value
|
|
683
683
|
}),
|
|
684
684
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
685
685
|
children: [
|
|
686
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ C("option", {
|
|
687
687
|
value: "",
|
|
688
688
|
children: "Select type"
|
|
689
689
|
}),
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
value:
|
|
690
|
+
/* @__PURE__ */ C("option", {
|
|
691
|
+
value: r.FullTime,
|
|
692
692
|
children: "Full-time"
|
|
693
693
|
}),
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
value:
|
|
694
|
+
/* @__PURE__ */ C("option", {
|
|
695
|
+
value: r.PartTime,
|
|
696
696
|
children: "Part-time"
|
|
697
697
|
}),
|
|
698
|
-
/* @__PURE__ */
|
|
699
|
-
value:
|
|
698
|
+
/* @__PURE__ */ C("option", {
|
|
699
|
+
value: r.Contract,
|
|
700
700
|
children: "Contract"
|
|
701
701
|
}),
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
value:
|
|
702
|
+
/* @__PURE__ */ C("option", {
|
|
703
|
+
value: r.Internship,
|
|
704
704
|
children: "Internship"
|
|
705
705
|
})
|
|
706
706
|
]
|
|
707
|
-
})] }), /* @__PURE__ */
|
|
707
|
+
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
708
708
|
htmlFor: "posting-status",
|
|
709
709
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
710
710
|
children: "Status"
|
|
711
|
-
}), /* @__PURE__ */
|
|
711
|
+
}), /* @__PURE__ */ w("select", {
|
|
712
712
|
id: "posting-status",
|
|
713
|
-
value:
|
|
714
|
-
onChange: (e) =>
|
|
715
|
-
...
|
|
713
|
+
value: Z.status,
|
|
714
|
+
onChange: (e) => Q({
|
|
715
|
+
...Z,
|
|
716
716
|
status: e.target.value
|
|
717
717
|
}),
|
|
718
718
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
719
719
|
children: [
|
|
720
|
-
/* @__PURE__ */
|
|
721
|
-
value:
|
|
720
|
+
/* @__PURE__ */ C("option", {
|
|
721
|
+
value: a.Draft,
|
|
722
722
|
children: "Draft"
|
|
723
723
|
}),
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
value:
|
|
724
|
+
/* @__PURE__ */ C("option", {
|
|
725
|
+
value: a.Open,
|
|
726
726
|
children: "Open"
|
|
727
727
|
}),
|
|
728
|
-
/* @__PURE__ */
|
|
729
|
-
value:
|
|
728
|
+
/* @__PURE__ */ C("option", {
|
|
729
|
+
value: a.Closed,
|
|
730
730
|
children: "Closed"
|
|
731
731
|
}),
|
|
732
|
-
/* @__PURE__ */
|
|
733
|
-
value:
|
|
732
|
+
/* @__PURE__ */ C("option", {
|
|
733
|
+
value: a.Archived,
|
|
734
734
|
children: "Archived"
|
|
735
735
|
})
|
|
736
736
|
]
|
|
737
737
|
})] })]
|
|
738
738
|
}),
|
|
739
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
740
740
|
htmlFor: "posting-product-id",
|
|
741
741
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
742
742
|
children: "Product ID"
|
|
743
|
-
}), /* @__PURE__ */
|
|
743
|
+
}), /* @__PURE__ */ C("input", {
|
|
744
744
|
id: "posting-product-id",
|
|
745
745
|
type: "text",
|
|
746
|
-
value:
|
|
747
|
-
onChange: (e) =>
|
|
748
|
-
...
|
|
746
|
+
value: Z.productId,
|
|
747
|
+
onChange: (e) => Q({
|
|
748
|
+
...Z,
|
|
749
749
|
productId: e.target.value
|
|
750
750
|
}),
|
|
751
751
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
752
752
|
})] }),
|
|
753
|
-
/* @__PURE__ */
|
|
753
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
754
754
|
htmlFor: "posting-description",
|
|
755
755
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
756
756
|
children: "Description"
|
|
757
|
-
}), /* @__PURE__ */
|
|
757
|
+
}), /* @__PURE__ */ C("textarea", {
|
|
758
758
|
id: "posting-description",
|
|
759
|
-
value:
|
|
760
|
-
onChange: (e) =>
|
|
761
|
-
...
|
|
759
|
+
value: Z.description,
|
|
760
|
+
onChange: (e) => Q({
|
|
761
|
+
...Z,
|
|
762
762
|
description: e.target.value
|
|
763
763
|
}),
|
|
764
764
|
rows: 4,
|
|
765
765
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
766
766
|
})] }),
|
|
767
|
-
/* @__PURE__ */
|
|
767
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
768
768
|
htmlFor: "posting-overview",
|
|
769
769
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
770
770
|
children: "Overview"
|
|
771
|
-
}), /* @__PURE__ */
|
|
771
|
+
}), /* @__PURE__ */ C("textarea", {
|
|
772
772
|
id: "posting-overview",
|
|
773
|
-
value:
|
|
774
|
-
onChange: (e) =>
|
|
775
|
-
...
|
|
773
|
+
value: Z.overview,
|
|
774
|
+
onChange: (e) => Q({
|
|
775
|
+
...Z,
|
|
776
776
|
overview: e.target.value
|
|
777
777
|
}),
|
|
778
778
|
rows: 3,
|
|
779
779
|
placeholder: "Short pitch shown at the top of the careers page…",
|
|
780
780
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
781
781
|
})] }),
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ w("div", { children: [
|
|
783
|
+
/* @__PURE__ */ C("label", {
|
|
784
784
|
htmlFor: "posting-responsibilities",
|
|
785
785
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
786
786
|
children: "Responsibilities"
|
|
787
787
|
}),
|
|
788
|
-
/* @__PURE__ */
|
|
788
|
+
/* @__PURE__ */ C("textarea", {
|
|
789
789
|
id: "posting-responsibilities",
|
|
790
|
-
value:
|
|
791
|
-
onChange: (e) =>
|
|
792
|
-
...
|
|
790
|
+
value: Z.responsibilities,
|
|
791
|
+
onChange: (e) => Q({
|
|
792
|
+
...Z,
|
|
793
793
|
responsibilities: e.target.value
|
|
794
794
|
}),
|
|
795
795
|
rows: 4,
|
|
796
796
|
placeholder: "One responsibility per line",
|
|
797
797
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
798
798
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ C("p", {
|
|
800
800
|
className: "mt-1 text-xs text-text-secondary",
|
|
801
801
|
children: "Enter one item per line."
|
|
802
802
|
})
|
|
803
803
|
] }),
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ w("div", { children: [
|
|
805
|
+
/* @__PURE__ */ C("label", {
|
|
806
806
|
htmlFor: "posting-learnings",
|
|
807
807
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
808
808
|
children: "Learnings"
|
|
809
809
|
}),
|
|
810
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ C("textarea", {
|
|
811
811
|
id: "posting-learnings",
|
|
812
|
-
value:
|
|
813
|
-
onChange: (e) =>
|
|
814
|
-
...
|
|
812
|
+
value: Z.learnings,
|
|
813
|
+
onChange: (e) => Q({
|
|
814
|
+
...Z,
|
|
815
815
|
learnings: e.target.value
|
|
816
816
|
}),
|
|
817
817
|
rows: 4,
|
|
818
818
|
placeholder: "One learning per line",
|
|
819
819
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
820
820
|
}),
|
|
821
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ C("p", {
|
|
822
822
|
className: "mt-1 text-xs text-text-secondary",
|
|
823
823
|
children: "Enter one item per line."
|
|
824
824
|
})
|
|
825
825
|
] }),
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ w("div", { children: [
|
|
827
|
+
/* @__PURE__ */ C("label", {
|
|
828
828
|
htmlFor: "posting-qualifications",
|
|
829
829
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
830
830
|
children: "Qualifications"
|
|
831
831
|
}),
|
|
832
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ C("textarea", {
|
|
833
833
|
id: "posting-qualifications",
|
|
834
|
-
value:
|
|
835
|
-
onChange: (e) =>
|
|
836
|
-
...
|
|
834
|
+
value: Z.qualifications,
|
|
835
|
+
onChange: (e) => Q({
|
|
836
|
+
...Z,
|
|
837
837
|
qualifications: e.target.value
|
|
838
838
|
}),
|
|
839
839
|
rows: 4,
|
|
840
840
|
placeholder: "One qualification per line",
|
|
841
841
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
842
842
|
}),
|
|
843
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ C("p", {
|
|
844
844
|
className: "mt-1 text-xs text-text-secondary",
|
|
845
845
|
children: "Enter one item per line."
|
|
846
846
|
})
|
|
847
847
|
] }),
|
|
848
|
-
/* @__PURE__ */
|
|
848
|
+
/* @__PURE__ */ w("div", {
|
|
849
849
|
className: "flex flex-col gap-3 pt-2 sm:flex-row",
|
|
850
|
-
children: [/* @__PURE__ */
|
|
850
|
+
children: [/* @__PURE__ */ C(l, {
|
|
851
851
|
type: "submit",
|
|
852
|
-
disabled:
|
|
852
|
+
disabled: Ge || !Z.title.trim(),
|
|
853
853
|
className: "flex-1",
|
|
854
|
-
children:
|
|
854
|
+
children: Ge ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(y, {
|
|
855
855
|
size: 16,
|
|
856
856
|
className: "animate-spin"
|
|
857
|
-
}), "Saving…"] }) : /* @__PURE__ */ S
|
|
858
|
-
}), /* @__PURE__ */
|
|
857
|
+
}), "Saving…"] }) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(_, { size: 16 }), "Save Changes"] })
|
|
858
|
+
}), /* @__PURE__ */ w(l, {
|
|
859
859
|
type: "button",
|
|
860
860
|
variant: "outline",
|
|
861
|
-
onClick: () =>
|
|
862
|
-
children: [/* @__PURE__ */ x
|
|
861
|
+
onClick: () => F(!1),
|
|
862
|
+
children: [/* @__PURE__ */ C(x, { size: 16 }), "Cancel"]
|
|
863
863
|
})]
|
|
864
864
|
})
|
|
865
865
|
]
|
|
866
866
|
})]
|
|
867
867
|
})
|
|
868
868
|
}),
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
open:
|
|
871
|
-
onOpenChange:
|
|
872
|
-
children: /* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ C(E, {
|
|
870
|
+
open: ze,
|
|
871
|
+
onOpenChange: I,
|
|
872
|
+
children: /* @__PURE__ */ w(D, {
|
|
873
873
|
className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
|
|
874
|
-
children: [/* @__PURE__ */
|
|
874
|
+
children: [/* @__PURE__ */ C(O, { children: /* @__PURE__ */ C(k, { children: L ? "Edit Round Config" : "Add Round Config" }) }), /* @__PURE__ */ w("form", {
|
|
875
875
|
onSubmit: lt,
|
|
876
876
|
className: "space-y-5",
|
|
877
877
|
children: [
|
|
878
|
-
/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("label", {
|
|
879
879
|
htmlFor: "round-name",
|
|
880
880
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
881
|
-
children: ["Name ", /* @__PURE__ */
|
|
881
|
+
children: ["Name ", /* @__PURE__ */ C("span", {
|
|
882
882
|
className: "text-status-error-text",
|
|
883
883
|
children: "*"
|
|
884
884
|
})]
|
|
885
|
-
}), /* @__PURE__ */
|
|
885
|
+
}), /* @__PURE__ */ C("input", {
|
|
886
886
|
id: "round-name",
|
|
887
887
|
type: "text",
|
|
888
|
-
value:
|
|
889
|
-
onChange: (e) =>
|
|
890
|
-
...
|
|
888
|
+
value: z.name,
|
|
889
|
+
onChange: (e) => B({
|
|
890
|
+
...z,
|
|
891
891
|
name: e.target.value
|
|
892
892
|
}),
|
|
893
893
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
|
|
894
894
|
required: !0
|
|
895
895
|
})] }),
|
|
896
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
897
897
|
htmlFor: "round-type",
|
|
898
898
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
899
899
|
children: "Round Type"
|
|
900
|
-
}), /* @__PURE__ */
|
|
900
|
+
}), /* @__PURE__ */ C("select", {
|
|
901
901
|
id: "round-type",
|
|
902
|
-
value:
|
|
903
|
-
onChange: (e) =>
|
|
904
|
-
...
|
|
902
|
+
value: z.roundType,
|
|
903
|
+
onChange: (e) => B({
|
|
904
|
+
...z,
|
|
905
905
|
roundType: e.target.value
|
|
906
906
|
}),
|
|
907
907
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
908
|
-
children: Object.values(
|
|
908
|
+
children: Object.values(i).map((e) => /* @__PURE__ */ C("option", {
|
|
909
909
|
value: e,
|
|
910
|
-
children:
|
|
910
|
+
children: je[e]
|
|
911
911
|
}, e))
|
|
912
912
|
})] }),
|
|
913
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
914
914
|
htmlFor: "round-description",
|
|
915
915
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
916
916
|
children: "Description"
|
|
917
|
-
}), /* @__PURE__ */
|
|
917
|
+
}), /* @__PURE__ */ C("textarea", {
|
|
918
918
|
id: "round-description",
|
|
919
|
-
value:
|
|
920
|
-
onChange: (e) =>
|
|
921
|
-
...
|
|
919
|
+
value: z.description,
|
|
920
|
+
onChange: (e) => B({
|
|
921
|
+
...z,
|
|
922
922
|
description: e.target.value
|
|
923
923
|
}),
|
|
924
924
|
rows: 3,
|
|
925
925
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
926
926
|
})] }),
|
|
927
|
-
/* @__PURE__ */
|
|
927
|
+
/* @__PURE__ */ w("div", {
|
|
928
928
|
className: "flex flex-col gap-3",
|
|
929
|
-
children: [/* @__PURE__ */
|
|
929
|
+
children: [/* @__PURE__ */ w("label", {
|
|
930
930
|
className: "flex items-center gap-3 cursor-pointer",
|
|
931
|
-
children: [/* @__PURE__ */
|
|
931
|
+
children: [/* @__PURE__ */ C("input", {
|
|
932
932
|
type: "checkbox",
|
|
933
|
-
checked:
|
|
934
|
-
onChange: (e) =>
|
|
935
|
-
...
|
|
933
|
+
checked: z.isAssignmentRound,
|
|
934
|
+
onChange: (e) => B({
|
|
935
|
+
...z,
|
|
936
936
|
isAssignmentRound: e.target.checked
|
|
937
937
|
}),
|
|
938
938
|
className: "size-4 rounded border-border-default text-primary focus:ring-primary"
|
|
939
|
-
}), /* @__PURE__ */
|
|
939
|
+
}), /* @__PURE__ */ C("span", {
|
|
940
940
|
className: "text-sm text-text-primary",
|
|
941
941
|
children: "Assignment round"
|
|
942
942
|
})]
|
|
943
|
-
}), /* @__PURE__ */
|
|
943
|
+
}), /* @__PURE__ */ w("label", {
|
|
944
944
|
className: "flex items-center gap-3 cursor-pointer",
|
|
945
|
-
children: [/* @__PURE__ */
|
|
945
|
+
children: [/* @__PURE__ */ C("input", {
|
|
946
946
|
type: "checkbox",
|
|
947
|
-
checked:
|
|
948
|
-
onChange: (e) =>
|
|
949
|
-
...
|
|
947
|
+
checked: z.isRequired,
|
|
948
|
+
onChange: (e) => B({
|
|
949
|
+
...z,
|
|
950
950
|
isRequired: e.target.checked
|
|
951
951
|
}),
|
|
952
952
|
className: "size-4 rounded border-border-default text-primary focus:ring-primary"
|
|
953
|
-
}), /* @__PURE__ */
|
|
953
|
+
}), /* @__PURE__ */ C("span", {
|
|
954
954
|
className: "text-sm text-text-primary",
|
|
955
955
|
children: "Required"
|
|
956
956
|
})]
|
|
957
957
|
})]
|
|
958
958
|
}),
|
|
959
|
-
/* @__PURE__ */
|
|
959
|
+
/* @__PURE__ */ w("div", {
|
|
960
960
|
className: "flex flex-col gap-3 pt-2 sm:flex-row",
|
|
961
|
-
children: [/* @__PURE__ */
|
|
961
|
+
children: [/* @__PURE__ */ C(l, {
|
|
962
962
|
type: "submit",
|
|
963
|
-
disabled:
|
|
963
|
+
disabled: qe || Ye || !z.name.trim(),
|
|
964
964
|
className: "flex-1",
|
|
965
|
-
children:
|
|
965
|
+
children: qe || Ye ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(y, {
|
|
966
966
|
size: 16,
|
|
967
967
|
className: "animate-spin"
|
|
968
|
-
}),
|
|
969
|
-
}), /* @__PURE__ */
|
|
968
|
+
}), L ? "Saving…" : "Creating…"] }) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(_, { size: 16 }), L ? "Update Round" : "Create Round"] })
|
|
969
|
+
}), /* @__PURE__ */ w(l, {
|
|
970
970
|
type: "button",
|
|
971
971
|
variant: "outline",
|
|
972
972
|
onClick: ct,
|
|
973
|
-
children: [/* @__PURE__ */ x
|
|
973
|
+
children: [/* @__PURE__ */ C(x, { size: 16 }), "Cancel"]
|
|
974
974
|
})]
|
|
975
975
|
})
|
|
976
976
|
]
|
|
977
977
|
})]
|
|
978
978
|
})
|
|
979
979
|
}),
|
|
980
|
-
/* @__PURE__ */
|
|
981
|
-
open:
|
|
982
|
-
onOpenChange:
|
|
983
|
-
children: /* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ C(E, {
|
|
981
|
+
open: Be,
|
|
982
|
+
onOpenChange: V,
|
|
983
|
+
children: /* @__PURE__ */ w(D, {
|
|
984
984
|
className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
|
|
985
|
-
children: [/* @__PURE__ */
|
|
985
|
+
children: [/* @__PURE__ */ C(O, { children: /* @__PURE__ */ C(k, { children: H ? "Edit Assignment" : "Add Assignment" }) }), /* @__PURE__ */ w("form", {
|
|
986
986
|
onSubmit: async (e) => {
|
|
987
|
-
if (e.preventDefault(),
|
|
988
|
-
|
|
989
|
-
id:
|
|
987
|
+
if (e.preventDefault(), m && W.title.trim() && W.description.trim()) try {
|
|
988
|
+
H ? (await et({ variables: {
|
|
989
|
+
id: H.id,
|
|
990
990
|
input: {
|
|
991
|
-
title:
|
|
992
|
-
description:
|
|
993
|
-
problemStatement:
|
|
994
|
-
difficulty:
|
|
995
|
-
isActive:
|
|
996
|
-
ownerEmail:
|
|
991
|
+
title: W.title,
|
|
992
|
+
description: W.description,
|
|
993
|
+
problemStatement: W.problemStatement || void 0,
|
|
994
|
+
difficulty: W.difficulty || void 0,
|
|
995
|
+
isActive: W.isActive,
|
|
996
|
+
ownerEmail: W.ownerEmail.trim()
|
|
997
997
|
}
|
|
998
|
-
} }),
|
|
999
|
-
jobPostingId:
|
|
1000
|
-
title:
|
|
1001
|
-
description:
|
|
1002
|
-
problemStatement:
|
|
1003
|
-
difficulty:
|
|
1004
|
-
isActive:
|
|
1005
|
-
ownerEmail:
|
|
1006
|
-
} } }),
|
|
998
|
+
} }), P("success", "Assignment updated.")) : (await Qe({ variables: { input: {
|
|
999
|
+
jobPostingId: m,
|
|
1000
|
+
title: W.title,
|
|
1001
|
+
description: W.description,
|
|
1002
|
+
problemStatement: W.problemStatement || void 0,
|
|
1003
|
+
difficulty: W.difficulty || void 0,
|
|
1004
|
+
isActive: W.isActive,
|
|
1005
|
+
ownerEmail: W.ownerEmail.trim() || void 0
|
|
1006
|
+
} } }), P("success", "Assignment created.")), pt();
|
|
1007
1007
|
} catch {
|
|
1008
|
-
|
|
1008
|
+
P("error", `Failed to ${H ? "update" : "create"} assignment.`);
|
|
1009
1009
|
}
|
|
1010
1010
|
},
|
|
1011
1011
|
className: "space-y-5",
|
|
1012
1012
|
children: [
|
|
1013
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("label", {
|
|
1014
1014
|
htmlFor: "assignment-title",
|
|
1015
1015
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1016
|
-
children: ["Title ", /* @__PURE__ */
|
|
1016
|
+
children: ["Title ", /* @__PURE__ */ C("span", {
|
|
1017
1017
|
className: "text-status-error-text",
|
|
1018
1018
|
children: "*"
|
|
1019
1019
|
})]
|
|
1020
|
-
}), /* @__PURE__ */
|
|
1020
|
+
}), /* @__PURE__ */ C("input", {
|
|
1021
1021
|
id: "assignment-title",
|
|
1022
1022
|
type: "text",
|
|
1023
|
-
value:
|
|
1024
|
-
onChange: (e) =>
|
|
1025
|
-
...
|
|
1023
|
+
value: W.title,
|
|
1024
|
+
onChange: (e) => G({
|
|
1025
|
+
...W,
|
|
1026
1026
|
title: e.target.value
|
|
1027
1027
|
}),
|
|
1028
1028
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
|
|
1029
1029
|
required: !0
|
|
1030
1030
|
})] }),
|
|
1031
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
1032
1032
|
htmlFor: "assignment-difficulty",
|
|
1033
1033
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1034
1034
|
children: "Difficulty"
|
|
1035
|
-
}), /* @__PURE__ */
|
|
1035
|
+
}), /* @__PURE__ */ C("input", {
|
|
1036
1036
|
id: "assignment-difficulty",
|
|
1037
1037
|
type: "text",
|
|
1038
|
-
value:
|
|
1039
|
-
onChange: (e) =>
|
|
1040
|
-
...
|
|
1038
|
+
value: W.difficulty,
|
|
1039
|
+
onChange: (e) => G({
|
|
1040
|
+
...W,
|
|
1041
1041
|
difficulty: e.target.value
|
|
1042
1042
|
}),
|
|
1043
1043
|
placeholder: "e.g., Easy, Medium, Hard",
|
|
1044
1044
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
1045
1045
|
})] }),
|
|
1046
|
-
/* @__PURE__ */
|
|
1047
|
-
/* @__PURE__ */
|
|
1046
|
+
/* @__PURE__ */ w("div", { children: [
|
|
1047
|
+
/* @__PURE__ */ w("label", {
|
|
1048
1048
|
htmlFor: "assignment-owner-email",
|
|
1049
1049
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1050
|
-
children: ["Owner email ", /* @__PURE__ */
|
|
1050
|
+
children: ["Owner email ", /* @__PURE__ */ C("span", {
|
|
1051
1051
|
className: "text-text-secondary font-normal",
|
|
1052
1052
|
children: "(optional)"
|
|
1053
1053
|
})]
|
|
1054
1054
|
}),
|
|
1055
|
-
/* @__PURE__ */
|
|
1055
|
+
/* @__PURE__ */ C("input", {
|
|
1056
1056
|
id: "assignment-owner-email",
|
|
1057
1057
|
type: "email",
|
|
1058
|
-
value:
|
|
1059
|
-
onChange: (e) =>
|
|
1060
|
-
...
|
|
1058
|
+
value: W.ownerEmail,
|
|
1059
|
+
onChange: (e) => G({
|
|
1060
|
+
...W,
|
|
1061
1061
|
ownerEmail: e.target.value
|
|
1062
1062
|
}),
|
|
1063
1063
|
placeholder: "whoever authored this assignment",
|
|
1064
1064
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
1065
1065
|
}),
|
|
1066
|
-
/* @__PURE__ */
|
|
1066
|
+
/* @__PURE__ */ C("p", {
|
|
1067
1067
|
className: "mt-1.5 text-xs text-text-secondary",
|
|
1068
1068
|
children: "So you know who to ask if a candidate has questions about it."
|
|
1069
1069
|
})
|
|
1070
1070
|
] }),
|
|
1071
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("label", {
|
|
1072
1072
|
htmlFor: "assignment-description",
|
|
1073
1073
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1074
|
-
children: ["Description ", /* @__PURE__ */
|
|
1074
|
+
children: ["Description ", /* @__PURE__ */ C("span", {
|
|
1075
1075
|
className: "text-status-error-text",
|
|
1076
1076
|
children: "*"
|
|
1077
1077
|
})]
|
|
1078
|
-
}), /* @__PURE__ */
|
|
1078
|
+
}), /* @__PURE__ */ C(le, {
|
|
1079
1079
|
id: "assignment-description",
|
|
1080
|
-
value:
|
|
1081
|
-
onChange: (e) =>
|
|
1082
|
-
...
|
|
1080
|
+
value: W.description,
|
|
1081
|
+
onChange: (e) => G({
|
|
1082
|
+
...W,
|
|
1083
1083
|
description: e
|
|
1084
1084
|
}),
|
|
1085
1085
|
placeholder: "What is this assignment about?",
|
|
1086
1086
|
"aria-required": !0
|
|
1087
1087
|
})] }),
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1088
|
+
/* @__PURE__ */ w("div", { children: [
|
|
1089
|
+
/* @__PURE__ */ C("label", {
|
|
1090
1090
|
htmlFor: "assignment-problem-statement",
|
|
1091
1091
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1092
1092
|
children: "Problem Statement"
|
|
1093
1093
|
}),
|
|
1094
|
-
/* @__PURE__ */
|
|
1094
|
+
/* @__PURE__ */ C("p", {
|
|
1095
1095
|
className: "mb-2 text-xs text-text-secondary",
|
|
1096
1096
|
children: "Shown to the candidate in bold, called out from the rest of the email — this is what they need to solve."
|
|
1097
1097
|
}),
|
|
1098
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ C(le, {
|
|
1099
1099
|
id: "assignment-problem-statement",
|
|
1100
|
-
value:
|
|
1101
|
-
onChange: (e) =>
|
|
1102
|
-
...
|
|
1100
|
+
value: W.problemStatement,
|
|
1101
|
+
onChange: (e) => G({
|
|
1102
|
+
...W,
|
|
1103
1103
|
problemStatement: e
|
|
1104
1104
|
}),
|
|
1105
1105
|
placeholder: "Describe exactly what the candidate needs to build or solve. Use bullet points to break down requirements."
|
|
1106
1106
|
})
|
|
1107
1107
|
] }),
|
|
1108
|
-
/* @__PURE__ */
|
|
1108
|
+
/* @__PURE__ */ w("label", {
|
|
1109
1109
|
className: "flex items-center gap-3 cursor-pointer",
|
|
1110
|
-
children: [/* @__PURE__ */
|
|
1110
|
+
children: [/* @__PURE__ */ C("input", {
|
|
1111
1111
|
type: "checkbox",
|
|
1112
|
-
checked:
|
|
1113
|
-
onChange: (e) =>
|
|
1114
|
-
...
|
|
1112
|
+
checked: W.isActive,
|
|
1113
|
+
onChange: (e) => G({
|
|
1114
|
+
...W,
|
|
1115
1115
|
isActive: e.target.checked
|
|
1116
1116
|
}),
|
|
1117
1117
|
className: "size-4 rounded border-border-default text-primary focus:ring-primary"
|
|
1118
|
-
}), /* @__PURE__ */
|
|
1118
|
+
}), /* @__PURE__ */ C("span", {
|
|
1119
1119
|
className: "text-sm text-text-primary",
|
|
1120
1120
|
children: "Active"
|
|
1121
1121
|
})]
|
|
1122
1122
|
}),
|
|
1123
|
-
/* @__PURE__ */
|
|
1123
|
+
/* @__PURE__ */ w("div", {
|
|
1124
1124
|
className: "flex flex-col gap-3 pt-2 sm:flex-row",
|
|
1125
|
-
children: [/* @__PURE__ */
|
|
1125
|
+
children: [/* @__PURE__ */ C(l, {
|
|
1126
1126
|
type: "submit",
|
|
1127
|
-
disabled:
|
|
1127
|
+
disabled: $e || tt || !W.title.trim() || !W.description.trim(),
|
|
1128
1128
|
className: "flex-1",
|
|
1129
|
-
children:
|
|
1129
|
+
children: $e || tt ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(y, {
|
|
1130
1130
|
size: 16,
|
|
1131
1131
|
className: "animate-spin"
|
|
1132
|
-
}),
|
|
1133
|
-
}), /* @__PURE__ */
|
|
1132
|
+
}), H ? "Saving…" : "Creating…"] }) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(_, { size: 16 }), H ? "Update Assignment" : "Create Assignment"] })
|
|
1133
|
+
}), /* @__PURE__ */ w(l, {
|
|
1134
1134
|
type: "button",
|
|
1135
1135
|
variant: "outline",
|
|
1136
1136
|
onClick: pt,
|
|
1137
|
-
children: [/* @__PURE__ */ x
|
|
1137
|
+
children: [/* @__PURE__ */ C(x, { size: 16 }), "Cancel"]
|
|
1138
1138
|
})]
|
|
1139
1139
|
})
|
|
1140
1140
|
]
|
|
1141
1141
|
})]
|
|
1142
1142
|
})
|
|
1143
1143
|
}),
|
|
1144
|
-
/* @__PURE__ */
|
|
1145
|
-
open:
|
|
1144
|
+
/* @__PURE__ */ C(Se, {
|
|
1145
|
+
open: K !== null,
|
|
1146
1146
|
onOpenChange: (e) => {
|
|
1147
|
-
e ||
|
|
1147
|
+
e || q(null);
|
|
1148
1148
|
},
|
|
1149
|
-
children: /* @__PURE__ */
|
|
1149
|
+
children: /* @__PURE__ */ w(Te, { children: [/* @__PURE__ */ w(De, { children: [/* @__PURE__ */ C(Oe, { children: "Delete round config?" }), /* @__PURE__ */ C(T, { children: "Are you sure you want to delete this interview round config? This action cannot be undone." })] }), /* @__PURE__ */ w(Ee, { children: [/* @__PURE__ */ C(we, { children: "Cancel" }), /* @__PURE__ */ C(Ce, {
|
|
1150
1150
|
onClick: ut,
|
|
1151
1151
|
children: "Delete"
|
|
1152
1152
|
})] })] })
|
|
1153
1153
|
}),
|
|
1154
|
-
/* @__PURE__ */
|
|
1155
|
-
open:
|
|
1154
|
+
/* @__PURE__ */ C(Se, {
|
|
1155
|
+
open: J !== null,
|
|
1156
1156
|
onOpenChange: (e) => {
|
|
1157
|
-
e ||
|
|
1157
|
+
e || Y(null);
|
|
1158
1158
|
},
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1159
|
+
children: /* @__PURE__ */ w(Te, { children: [/* @__PURE__ */ w(De, { children: [/* @__PURE__ */ C(Oe, { children: "Delete assignment?" }), /* @__PURE__ */ C(T, { children: "Are you sure you want to delete this assignment? This action cannot be undone." })] }), /* @__PURE__ */ w(Ee, { children: [/* @__PURE__ */ C(we, { children: "Cancel" }), /* @__PURE__ */ C(Ce, {
|
|
1160
1160
|
onClick: async () => {
|
|
1161
|
-
let e =
|
|
1161
|
+
let e = J;
|
|
1162
1162
|
if (e) {
|
|
1163
|
-
|
|
1163
|
+
Y(null);
|
|
1164
1164
|
try {
|
|
1165
|
-
await
|
|
1165
|
+
await nt({ variables: { id: e } }), P("success", "Assignment deleted.");
|
|
1166
1166
|
} catch {
|
|
1167
|
-
|
|
1167
|
+
P("error", "Failed to delete assignment.");
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
},
|
|
@@ -1174,7 +1174,6 @@ function j() {
|
|
|
1174
1174
|
]
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
|
-
|
|
1178
|
-
export { j as JobPostingDetailPage };
|
|
1177
|
+
export { M as JobPostingDetailPage };
|
|
1179
1178
|
|
|
1180
1179
|
//# sourceMappingURL=JobPostingDetailPage.js.map
|