@burdenoff/microfe-support 2026.1029.3 → 2026.1031.2
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,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useEffect as
|
|
8
|
-
import { AlertCircle as
|
|
9
|
-
import { useNavigate as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
1
|
+
import { useCreateJobPostingMutation as e, useDeleteJobPostingMutation as t, useGetJobPostingsQuery as n, useUpdateJobPostingMutation as ee } from "../../generated/global-operations.js";
|
|
2
|
+
import { EmploymentType as r, JobPostingStatus as i } from "../../generated/global-types.js";
|
|
3
|
+
import { EmptyState as a, LoadingState as te, PageLayout as o } from "../components/PageLayout.js";
|
|
4
|
+
import { Badge as s, Button as c, Card as ne, CardContent as re, Dialog as l, DialogContent as u, DialogFooter as d, DialogHeader as ie, DialogTitle as f, Input as p, Label as m, PagePurpose as ae, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y, Textarea as b } from "../components/ui.js";
|
|
5
|
+
import { useSupport as oe } from "../providers/SupportProvider.js";
|
|
6
|
+
import { cn as x } from "../utils/cn.js";
|
|
7
|
+
import { useEffect as se, useState as S } from "react";
|
|
8
|
+
import { AlertCircle as C, Briefcase as w, Building2 as ce, Edit2 as le, Loader2 as T, MapPin as ue, Plus as E, Search as de, Trash2 as fe, Users as pe } from "lucide-react";
|
|
9
|
+
import { useNavigate as me } from "react-router";
|
|
10
|
+
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
11
|
+
// src/support/pages/JobPostingsPage.tsx
|
|
12
|
+
var he = {
|
|
13
|
+
[i.Open]: "bg-status-success-bg-subtle text-status-success-text",
|
|
14
|
+
[i.Draft]: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
15
|
+
[i.Closed]: "bg-status-error-bg-subtle text-status-error-text",
|
|
16
|
+
[i.Archived]: "bg-bg-sunken text-text-secondary"
|
|
17
|
+
}, ge = {
|
|
18
|
+
[i.Open]: "Open",
|
|
19
|
+
[i.Draft]: "Draft",
|
|
20
|
+
[i.Closed]: "Closed",
|
|
21
|
+
[i.Archived]: "Archived"
|
|
17
22
|
}, _e = {
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
}, ve = {
|
|
23
|
-
[g.FullTime]: "Full-time",
|
|
24
|
-
[g.PartTime]: "Part-time",
|
|
25
|
-
[g.Contract]: "Contract",
|
|
26
|
-
[g.Internship]: "Internship"
|
|
23
|
+
[r.FullTime]: "Full-time",
|
|
24
|
+
[r.PartTime]: "Part-time",
|
|
25
|
+
[r.Contract]: "Contract",
|
|
26
|
+
[r.Internship]: "Internship"
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function ve(e) {
|
|
29
29
|
return new Date(e).toLocaleDateString("en-US", {
|
|
30
30
|
month: "short",
|
|
31
31
|
day: "numeric",
|
|
32
32
|
year: "numeric"
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var A = "ALL", j = {
|
|
36
36
|
title: "",
|
|
37
37
|
department: "",
|
|
38
38
|
location: "",
|
|
@@ -47,49 +47,49 @@ var k = "ALL", A = {
|
|
|
47
47
|
learnings: "",
|
|
48
48
|
qualifications: ""
|
|
49
49
|
};
|
|
50
|
-
function
|
|
50
|
+
function M(e) {
|
|
51
51
|
return e.split("\n").map((e) => e.trim()).filter(Boolean);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function N(e) {
|
|
54
54
|
return (e ?? []).join("\n");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
let e = setTimeout(() =>
|
|
56
|
+
function P() {
|
|
57
|
+
let P = me(), { basePath: ye = "" } = oe(), [F, be] = S(""), [I, xe] = S(""), [L, Se] = S(A), [Ce, R] = S(!1), [z, B] = S(null), [V, H] = S(j), [we, U] = S(!1), [W, G] = S(null), [K, q] = S(null);
|
|
58
|
+
se(() => {
|
|
59
|
+
let e = setTimeout(() => xe(F), 300);
|
|
60
60
|
return () => clearTimeout(e);
|
|
61
|
-
}, [
|
|
62
|
-
let
|
|
63
|
-
|
|
64
|
-
let { data:
|
|
61
|
+
}, [F]);
|
|
62
|
+
let J = {};
|
|
63
|
+
I && (J.search = I), L !== A && (J.status = L);
|
|
64
|
+
let { data: Y, loading: X, error: Te, fetchMore: Ee, refetch: De } = n({
|
|
65
65
|
variables: {
|
|
66
|
-
filter:
|
|
66
|
+
filter: J,
|
|
67
67
|
limit: 50,
|
|
68
68
|
offset: 0
|
|
69
69
|
},
|
|
70
70
|
fetchPolicy: "cache-and-network"
|
|
71
|
-
}), Z =
|
|
71
|
+
}), Z = Y?.jobPostings?.items ?? [], Oe = Y?.jobPostings?.total ?? 0, ke = Y?.jobPostings?.hasMore ?? !1, [Ae, { loading: je }] = e({
|
|
72
72
|
refetchQueries: ["GetJobPostings"],
|
|
73
73
|
awaitRefetchQueries: !0
|
|
74
|
-
}), [Me, { loading:
|
|
74
|
+
}), [Me, { loading: Q }] = ee({
|
|
75
75
|
refetchQueries: ["GetJobPostings"],
|
|
76
76
|
awaitRefetchQueries: !0
|
|
77
|
-
}), [
|
|
77
|
+
}), [Ne, { loading: Pe }] = t({
|
|
78
78
|
refetchQueries: ["GetJobPostings"],
|
|
79
79
|
awaitRefetchQueries: !0
|
|
80
|
-
}),
|
|
81
|
-
|
|
80
|
+
}), $ = (e, t) => {
|
|
81
|
+
q({
|
|
82
82
|
type: e,
|
|
83
83
|
message: t
|
|
84
|
-
}), setTimeout(() =>
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
...
|
|
88
|
-
status:
|
|
89
|
-
employmentType:
|
|
90
|
-
}),
|
|
91
|
-
},
|
|
92
|
-
|
|
84
|
+
}), setTimeout(() => q(null), 4e3);
|
|
85
|
+
}, Fe = () => {
|
|
86
|
+
B(null), H({
|
|
87
|
+
...j,
|
|
88
|
+
status: i.Open,
|
|
89
|
+
employmentType: r.FullTime
|
|
90
|
+
}), R(!0);
|
|
91
|
+
}, Ie = (e) => {
|
|
92
|
+
B(e), H({
|
|
93
93
|
title: e.title,
|
|
94
94
|
department: e.department ?? "",
|
|
95
95
|
location: e.location ?? "",
|
|
@@ -100,136 +100,136 @@ function N() {
|
|
|
100
100
|
slug: e.slug ?? "",
|
|
101
101
|
openings: e.openings == null ? "" : String(e.openings),
|
|
102
102
|
overview: e.overview ?? "",
|
|
103
|
-
responsibilities:
|
|
104
|
-
learnings:
|
|
105
|
-
qualifications:
|
|
106
|
-
}),
|
|
107
|
-
},
|
|
108
|
-
|
|
103
|
+
responsibilities: N(e.responsibilities),
|
|
104
|
+
learnings: N(e.learnings),
|
|
105
|
+
qualifications: N(e.qualifications)
|
|
106
|
+
}), R(!0);
|
|
107
|
+
}, Le = () => {
|
|
108
|
+
R(!1), B(null), H(j);
|
|
109
109
|
}, Re = async (e) => {
|
|
110
|
-
if (e.preventDefault(), !
|
|
111
|
-
let t =
|
|
112
|
-
slug:
|
|
110
|
+
if (e.preventDefault(), !V.title.trim()) return;
|
|
111
|
+
let t = V.openings.trim() ? parseInt(V.openings.trim(), 10) : void 0, n = {
|
|
112
|
+
slug: V.slug.trim() || void 0,
|
|
113
113
|
openings: t && !Number.isNaN(t) ? t : void 0,
|
|
114
|
-
overview:
|
|
115
|
-
responsibilities:
|
|
116
|
-
learnings:
|
|
117
|
-
qualifications:
|
|
114
|
+
overview: V.overview.trim() || void 0,
|
|
115
|
+
responsibilities: M(V.responsibilities),
|
|
116
|
+
learnings: M(V.learnings),
|
|
117
|
+
qualifications: M(V.qualifications)
|
|
118
118
|
};
|
|
119
119
|
try {
|
|
120
|
-
|
|
121
|
-
id:
|
|
120
|
+
z ? (await Me({ variables: {
|
|
121
|
+
id: z.id,
|
|
122
122
|
input: {
|
|
123
|
-
title:
|
|
124
|
-
department:
|
|
125
|
-
location:
|
|
126
|
-
employmentType:
|
|
127
|
-
description:
|
|
128
|
-
status:
|
|
129
|
-
productId:
|
|
123
|
+
title: V.title,
|
|
124
|
+
department: V.department || void 0,
|
|
125
|
+
location: V.location || void 0,
|
|
126
|
+
employmentType: V.employmentType || void 0,
|
|
127
|
+
description: V.description || void 0,
|
|
128
|
+
status: V.status || void 0,
|
|
129
|
+
productId: V.productId || void 0,
|
|
130
130
|
...n
|
|
131
131
|
}
|
|
132
|
-
} }),
|
|
133
|
-
title:
|
|
134
|
-
department:
|
|
135
|
-
location:
|
|
136
|
-
employmentType:
|
|
137
|
-
description:
|
|
138
|
-
status:
|
|
139
|
-
productId:
|
|
132
|
+
} }), $("success", "Job posting updated.")) : (await Ae({ variables: { input: {
|
|
133
|
+
title: V.title,
|
|
134
|
+
department: V.department || void 0,
|
|
135
|
+
location: V.location || void 0,
|
|
136
|
+
employmentType: V.employmentType || void 0,
|
|
137
|
+
description: V.description || void 0,
|
|
138
|
+
status: V.status || i.Open,
|
|
139
|
+
productId: V.productId || void 0,
|
|
140
140
|
...n
|
|
141
|
-
} } }),
|
|
141
|
+
} } }), $("success", "Job posting created.")), Le();
|
|
142
142
|
} catch (e) {
|
|
143
|
-
|
|
143
|
+
$("error", e instanceof Error ? e.message : "Something went wrong.");
|
|
144
144
|
}
|
|
145
145
|
}, ze = (e) => {
|
|
146
|
-
|
|
146
|
+
G(e), U(!0);
|
|
147
147
|
};
|
|
148
|
-
return
|
|
148
|
+
return X && Z.length === 0 ? /* @__PURE__ */ O(o, {
|
|
149
149
|
title: "Job Postings",
|
|
150
150
|
subtitle: "Manage open roles and hiring pipelines",
|
|
151
|
-
icon: /* @__PURE__ */
|
|
152
|
-
children: /* @__PURE__ */
|
|
153
|
-
}) :
|
|
151
|
+
icon: /* @__PURE__ */ O(w, { size: 24 }),
|
|
152
|
+
children: /* @__PURE__ */ O(te, { message: "Loading job postings…" })
|
|
153
|
+
}) : Te ? /* @__PURE__ */ O(o, {
|
|
154
154
|
title: "Job Postings",
|
|
155
155
|
subtitle: "Manage open roles and hiring pipelines",
|
|
156
|
-
icon: /* @__PURE__ */
|
|
157
|
-
children: /* @__PURE__ */
|
|
158
|
-
icon: /* @__PURE__ */
|
|
156
|
+
icon: /* @__PURE__ */ O(w, { size: 24 }),
|
|
157
|
+
children: /* @__PURE__ */ O(a, {
|
|
158
|
+
icon: /* @__PURE__ */ O(C, { size: 48 }),
|
|
159
159
|
title: "Failed to load job postings",
|
|
160
|
-
description:
|
|
161
|
-
action: /* @__PURE__ */
|
|
160
|
+
description: Te.message,
|
|
161
|
+
action: /* @__PURE__ */ O(c, {
|
|
162
162
|
variant: "outline",
|
|
163
163
|
onClick: () => De(),
|
|
164
164
|
children: "Retry"
|
|
165
165
|
})
|
|
166
166
|
})
|
|
167
|
-
}) : /* @__PURE__ */
|
|
167
|
+
}) : /* @__PURE__ */ k(o, {
|
|
168
168
|
title: "Job Postings",
|
|
169
169
|
subtitle: "Manage open roles and hiring pipelines",
|
|
170
|
-
icon: /* @__PURE__ */
|
|
171
|
-
headerActions: /* @__PURE__ */
|
|
172
|
-
onClick:
|
|
173
|
-
children: [/* @__PURE__ */
|
|
170
|
+
icon: /* @__PURE__ */ O(w, { size: 24 }),
|
|
171
|
+
headerActions: /* @__PURE__ */ k(c, {
|
|
172
|
+
onClick: Fe,
|
|
173
|
+
children: [/* @__PURE__ */ O(E, { size: 18 }), "New Job Posting"]
|
|
174
174
|
}),
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
|
|
178
|
-
className:
|
|
179
|
-
children:
|
|
176
|
+
/* @__PURE__ */ O(ae, { children: "Create and manage job postings across your products. Each posting drives your careers page and collects applications that you can review, screen, and move through interviews." }),
|
|
177
|
+
K && /* @__PURE__ */ O("div", {
|
|
178
|
+
className: x("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 border-border-subtle animate-in slide-in-from-top-4 duration-200", K.type === "success" ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-error-bg-subtle text-status-error-text"),
|
|
179
|
+
children: K.type === "success" ? /* @__PURE__ */ O("span", {
|
|
180
180
|
className: "font-medium",
|
|
181
|
-
children:
|
|
182
|
-
}) : /* @__PURE__ */
|
|
181
|
+
children: K.message
|
|
182
|
+
}) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(C, { size: 18 }), /* @__PURE__ */ O("span", {
|
|
183
183
|
className: "font-medium",
|
|
184
|
-
children:
|
|
184
|
+
children: K.message
|
|
185
185
|
})] })
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ k("div", {
|
|
188
188
|
className: "flex flex-col sm:flex-row gap-3",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ k("div", {
|
|
190
190
|
className: "relative flex-1",
|
|
191
|
-
children: [/* @__PURE__ */
|
|
191
|
+
children: [/* @__PURE__ */ O(de, {
|
|
192
192
|
size: 16,
|
|
193
193
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
|
|
194
|
-
}), /* @__PURE__ */
|
|
194
|
+
}), /* @__PURE__ */ O(p, {
|
|
195
195
|
type: "text",
|
|
196
196
|
"aria-label": "Search job postings",
|
|
197
197
|
placeholder: "Search by title, department, or location…",
|
|
198
|
-
value:
|
|
199
|
-
onChange: (e) =>
|
|
198
|
+
value: F,
|
|
199
|
+
onChange: (e) => be(e.target.value),
|
|
200
200
|
className: "pl-9"
|
|
201
201
|
})]
|
|
202
|
-
}), /* @__PURE__ */
|
|
203
|
-
value:
|
|
204
|
-
onValueChange: (e) =>
|
|
205
|
-
children: [/* @__PURE__ */
|
|
202
|
+
}), /* @__PURE__ */ k(h, {
|
|
203
|
+
value: L,
|
|
204
|
+
onValueChange: (e) => Se(e),
|
|
205
|
+
children: [/* @__PURE__ */ O(v, {
|
|
206
206
|
className: "w-full sm:w-[180px]",
|
|
207
|
-
children: /* @__PURE__ */
|
|
208
|
-
}), /* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
value:
|
|
207
|
+
children: /* @__PURE__ */ O(y, { placeholder: "All statuses" })
|
|
208
|
+
}), /* @__PURE__ */ k(g, { children: [
|
|
209
|
+
/* @__PURE__ */ O(_, {
|
|
210
|
+
value: A,
|
|
211
211
|
children: "All statuses"
|
|
212
212
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
value:
|
|
213
|
+
/* @__PURE__ */ O(_, {
|
|
214
|
+
value: i.Open,
|
|
215
215
|
children: "Open"
|
|
216
216
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
value:
|
|
217
|
+
/* @__PURE__ */ O(_, {
|
|
218
|
+
value: i.Draft,
|
|
219
219
|
children: "Draft"
|
|
220
220
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
value:
|
|
221
|
+
/* @__PURE__ */ O(_, {
|
|
222
|
+
value: i.Closed,
|
|
223
223
|
children: "Closed"
|
|
224
224
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
value:
|
|
225
|
+
/* @__PURE__ */ O(_, {
|
|
226
|
+
value: i.Archived,
|
|
227
227
|
children: "Archived"
|
|
228
228
|
})
|
|
229
229
|
] })]
|
|
230
230
|
})]
|
|
231
231
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ k("p", {
|
|
233
233
|
className: "text-sm text-text-secondary",
|
|
234
234
|
children: [
|
|
235
235
|
Oe,
|
|
@@ -237,91 +237,91 @@ function N() {
|
|
|
237
237
|
Oe === 1 ? "" : "s"
|
|
238
238
|
]
|
|
239
239
|
}),
|
|
240
|
-
Z.length === 0 ? /* @__PURE__ */
|
|
240
|
+
Z.length === 0 ? /* @__PURE__ */ O(a, {
|
|
241
241
|
illustration: "empty-files",
|
|
242
242
|
title: "No job postings yet",
|
|
243
243
|
description: "Create your first job posting to start collecting applications.",
|
|
244
|
-
action: /* @__PURE__ */
|
|
245
|
-
onClick:
|
|
246
|
-
children: [/* @__PURE__ */
|
|
244
|
+
action: /* @__PURE__ */ k(c, {
|
|
245
|
+
onClick: Fe,
|
|
246
|
+
children: [/* @__PURE__ */ O(E, { size: 18 }), "New Job Posting"]
|
|
247
247
|
})
|
|
248
|
-
}) : /* @__PURE__ */
|
|
248
|
+
}) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
|
|
249
249
|
className: "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",
|
|
250
|
-
children: Z.map((e) => /* @__PURE__ */
|
|
250
|
+
children: Z.map((e) => /* @__PURE__ */ k(ne, {
|
|
251
251
|
className: "group cursor-pointer transition-[box-shadow,border-color] duration-200 hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong",
|
|
252
|
-
onClick: () =>
|
|
253
|
-
children: [/* @__PURE__ */
|
|
252
|
+
onClick: () => P(`${ye}/applications/postings/${e.id}`),
|
|
253
|
+
children: [/* @__PURE__ */ k(re, {
|
|
254
254
|
className: "p-5",
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ k("div", {
|
|
257
257
|
className: "flex items-start justify-between gap-3 mb-3",
|
|
258
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ k("div", {
|
|
259
259
|
className: "flex-1 min-w-0",
|
|
260
|
-
children: [/* @__PURE__ */
|
|
260
|
+
children: [/* @__PURE__ */ O("h3", {
|
|
261
261
|
className: "font-semibold text-text-primary truncate group-hover:text-primary transition-colors",
|
|
262
262
|
children: e.title
|
|
263
|
-
}), e.department && /* @__PURE__ */
|
|
263
|
+
}), e.department && /* @__PURE__ */ k("p", {
|
|
264
264
|
className: "text-sm text-text-secondary flex items-center gap-1 mt-0.5",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ O(ce, { size: 12 }), e.department]
|
|
266
266
|
})]
|
|
267
|
-
}), /* @__PURE__ */
|
|
268
|
-
className:
|
|
269
|
-
children:
|
|
267
|
+
}), /* @__PURE__ */ O(s, {
|
|
268
|
+
className: x("text-xs", he[e.status]),
|
|
269
|
+
children: ge[e.status]
|
|
270
270
|
})]
|
|
271
271
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ k("div", {
|
|
273
273
|
className: "flex flex-wrap items-center gap-2 mb-4",
|
|
274
274
|
children: [
|
|
275
|
-
e.location && /* @__PURE__ */
|
|
275
|
+
e.location && /* @__PURE__ */ k(s, {
|
|
276
276
|
variant: "outline",
|
|
277
277
|
className: "text-xs font-normal",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ O(ue, {
|
|
279
279
|
size: 10,
|
|
280
280
|
className: "mr-1"
|
|
281
281
|
}), e.location]
|
|
282
282
|
}),
|
|
283
|
-
e.employmentType && /* @__PURE__ */
|
|
283
|
+
e.employmentType && /* @__PURE__ */ O(s, {
|
|
284
284
|
variant: "outline",
|
|
285
285
|
className: "text-xs font-normal",
|
|
286
|
-
children:
|
|
286
|
+
children: _e[e.employmentType]
|
|
287
287
|
}),
|
|
288
|
-
e.productId && /* @__PURE__ */
|
|
288
|
+
e.productId && /* @__PURE__ */ O(s, {
|
|
289
289
|
variant: "outline",
|
|
290
290
|
className: "text-xs font-normal",
|
|
291
291
|
children: e.productId
|
|
292
292
|
})
|
|
293
293
|
]
|
|
294
294
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ k("div", {
|
|
296
296
|
className: "flex items-center justify-between text-sm",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ k("span", {
|
|
298
298
|
className: "text-text-secondary flex items-center gap-1.5",
|
|
299
299
|
children: [
|
|
300
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ O(pe, { size: 14 }),
|
|
301
301
|
e.applications.length,
|
|
302
302
|
" application",
|
|
303
303
|
e.applications.length === 1 ? "" : "s"
|
|
304
304
|
]
|
|
305
|
-
}), /* @__PURE__ */
|
|
305
|
+
}), /* @__PURE__ */ k("span", {
|
|
306
306
|
className: "text-xs text-text-secondary",
|
|
307
|
-
children: ["Updated ",
|
|
307
|
+
children: ["Updated ", ve(e.updatedAt)]
|
|
308
308
|
})]
|
|
309
309
|
})
|
|
310
310
|
]
|
|
311
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ k("div", {
|
|
312
312
|
className: "px-5 pb-4 pt-0 flex items-center justify-end gap-2 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ k(c, {
|
|
314
314
|
type: "button",
|
|
315
315
|
variant: "outline",
|
|
316
316
|
size: "sm",
|
|
317
317
|
onClick: (t) => {
|
|
318
|
-
t.stopPropagation(),
|
|
318
|
+
t.stopPropagation(), Ie(e);
|
|
319
319
|
},
|
|
320
|
-
children: [/* @__PURE__ */
|
|
320
|
+
children: [/* @__PURE__ */ O(le, {
|
|
321
321
|
size: 14,
|
|
322
322
|
className: "mr-1"
|
|
323
323
|
}), "Edit"]
|
|
324
|
-
}), /* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ k(c, {
|
|
325
325
|
type: "button",
|
|
326
326
|
variant: "outline",
|
|
327
327
|
size: "sm",
|
|
@@ -329,16 +329,16 @@ function N() {
|
|
|
329
329
|
onClick: (t) => {
|
|
330
330
|
t.stopPropagation(), ze(e);
|
|
331
331
|
},
|
|
332
|
-
children: [/* @__PURE__ */
|
|
332
|
+
children: [/* @__PURE__ */ O(fe, {
|
|
333
333
|
size: 14,
|
|
334
334
|
className: "mr-1"
|
|
335
335
|
}), "Delete"]
|
|
336
336
|
})]
|
|
337
337
|
})]
|
|
338
338
|
}, e.id))
|
|
339
|
-
}), ke && /* @__PURE__ */
|
|
339
|
+
}), ke && /* @__PURE__ */ O("div", {
|
|
340
340
|
className: "flex justify-center mt-6",
|
|
341
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ k(c, {
|
|
342
342
|
variant: "outline",
|
|
343
343
|
onClick: () => {
|
|
344
344
|
ke && Ee({
|
|
@@ -349,32 +349,32 @@ function N() {
|
|
|
349
349
|
} } : e
|
|
350
350
|
});
|
|
351
351
|
},
|
|
352
|
-
disabled:
|
|
353
|
-
children: [
|
|
352
|
+
disabled: X,
|
|
353
|
+
children: [X ? /* @__PURE__ */ O(T, {
|
|
354
354
|
size: 14,
|
|
355
355
|
className: "animate-spin mr-2"
|
|
356
356
|
}) : null, "Load more"]
|
|
357
357
|
})
|
|
358
358
|
})] }),
|
|
359
|
-
/* @__PURE__ */
|
|
360
|
-
open:
|
|
361
|
-
onOpenChange:
|
|
362
|
-
children: /* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ O(l, {
|
|
360
|
+
open: Ce,
|
|
361
|
+
onOpenChange: R,
|
|
362
|
+
children: /* @__PURE__ */ k(u, {
|
|
363
363
|
className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
|
|
364
|
-
children: [/* @__PURE__ */
|
|
364
|
+
children: [/* @__PURE__ */ O(ie, { children: /* @__PURE__ */ O(f, { children: z ? "Edit Job Posting" : "New Job Posting" }) }), /* @__PURE__ */ k("form", {
|
|
365
365
|
onSubmit: Re,
|
|
366
366
|
className: "space-y-5",
|
|
367
367
|
children: [
|
|
368
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k(m, {
|
|
369
369
|
htmlFor: "job-posting-title",
|
|
370
|
-
children: ["Title ", /* @__PURE__ */
|
|
370
|
+
children: ["Title ", /* @__PURE__ */ O("span", {
|
|
371
371
|
className: "text-status-error-text",
|
|
372
372
|
children: "*"
|
|
373
373
|
})]
|
|
374
|
-
}), /* @__PURE__ */
|
|
374
|
+
}), /* @__PURE__ */ O(p, {
|
|
375
375
|
id: "job-posting-title",
|
|
376
|
-
value:
|
|
377
|
-
onChange: (e) =>
|
|
376
|
+
value: V.title,
|
|
377
|
+
onChange: (e) => H((t) => ({
|
|
378
378
|
...t,
|
|
379
379
|
title: e.target.value
|
|
380
380
|
})),
|
|
@@ -382,29 +382,29 @@ function N() {
|
|
|
382
382
|
required: !0,
|
|
383
383
|
className: "mt-1.5"
|
|
384
384
|
})] }),
|
|
385
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ k("div", {
|
|
386
386
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
387
|
-
children: [/* @__PURE__ */
|
|
387
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
388
388
|
htmlFor: "job-posting-slug",
|
|
389
389
|
children: "Slug"
|
|
390
|
-
}), /* @__PURE__ */
|
|
390
|
+
}), /* @__PURE__ */ O(p, {
|
|
391
391
|
id: "job-posting-slug",
|
|
392
|
-
value:
|
|
393
|
-
onChange: (e) =>
|
|
392
|
+
value: V.slug,
|
|
393
|
+
onChange: (e) => H((t) => ({
|
|
394
394
|
...t,
|
|
395
395
|
slug: e.target.value
|
|
396
396
|
})),
|
|
397
397
|
placeholder: "e.g., product-engineering-intern-full-stack",
|
|
398
398
|
className: "mt-1.5"
|
|
399
|
-
})] }), /* @__PURE__ */
|
|
399
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
400
400
|
htmlFor: "job-posting-openings",
|
|
401
401
|
children: "Openings"
|
|
402
|
-
}), /* @__PURE__ */
|
|
402
|
+
}), /* @__PURE__ */ O(p, {
|
|
403
403
|
id: "job-posting-openings",
|
|
404
404
|
type: "number",
|
|
405
405
|
min: 1,
|
|
406
|
-
value:
|
|
407
|
-
onChange: (e) =>
|
|
406
|
+
value: V.openings,
|
|
407
|
+
onChange: (e) => H((t) => ({
|
|
408
408
|
...t,
|
|
409
409
|
openings: e.target.value
|
|
410
410
|
})),
|
|
@@ -412,27 +412,27 @@ function N() {
|
|
|
412
412
|
className: "mt-1.5"
|
|
413
413
|
})] })]
|
|
414
414
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ k("div", {
|
|
416
416
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
417
|
-
children: [/* @__PURE__ */
|
|
417
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
418
418
|
htmlFor: "job-posting-department",
|
|
419
419
|
children: "Department"
|
|
420
|
-
}), /* @__PURE__ */
|
|
420
|
+
}), /* @__PURE__ */ O(p, {
|
|
421
421
|
id: "job-posting-department",
|
|
422
|
-
value:
|
|
423
|
-
onChange: (e) =>
|
|
422
|
+
value: V.department,
|
|
423
|
+
onChange: (e) => H((t) => ({
|
|
424
424
|
...t,
|
|
425
425
|
department: e.target.value
|
|
426
426
|
})),
|
|
427
427
|
placeholder: "e.g., Engineering",
|
|
428
428
|
className: "mt-1.5"
|
|
429
|
-
})] }), /* @__PURE__ */
|
|
429
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
430
430
|
htmlFor: "job-posting-location",
|
|
431
431
|
children: "Location"
|
|
432
|
-
}), /* @__PURE__ */
|
|
432
|
+
}), /* @__PURE__ */ O(p, {
|
|
433
433
|
id: "job-posting-location",
|
|
434
|
-
value:
|
|
435
|
-
onChange: (e) =>
|
|
434
|
+
value: V.location,
|
|
435
|
+
onChange: (e) => H((t) => ({
|
|
436
436
|
...t,
|
|
437
437
|
location: e.target.value
|
|
438
438
|
})),
|
|
@@ -440,92 +440,92 @@ function N() {
|
|
|
440
440
|
className: "mt-1.5"
|
|
441
441
|
})] })]
|
|
442
442
|
}),
|
|
443
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ k("div", {
|
|
444
444
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
445
|
-
children: [/* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
446
446
|
htmlFor: "job-posting-employment-type",
|
|
447
447
|
children: "Employment Type"
|
|
448
|
-
}), /* @__PURE__ */
|
|
449
|
-
value:
|
|
450
|
-
onValueChange: (e) =>
|
|
448
|
+
}), /* @__PURE__ */ k(h, {
|
|
449
|
+
value: V.employmentType,
|
|
450
|
+
onValueChange: (e) => H((t) => ({
|
|
451
451
|
...t,
|
|
452
452
|
employmentType: e
|
|
453
453
|
})),
|
|
454
|
-
children: [/* @__PURE__ */
|
|
454
|
+
children: [/* @__PURE__ */ O(v, {
|
|
455
455
|
id: "job-posting-employment-type",
|
|
456
456
|
className: "mt-1.5",
|
|
457
|
-
children: /* @__PURE__ */
|
|
458
|
-
}), /* @__PURE__ */
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
-
value:
|
|
457
|
+
children: /* @__PURE__ */ O(y, { placeholder: "Select type" })
|
|
458
|
+
}), /* @__PURE__ */ k(g, { children: [
|
|
459
|
+
/* @__PURE__ */ O(_, {
|
|
460
|
+
value: r.FullTime,
|
|
461
461
|
children: "Full-time"
|
|
462
462
|
}),
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
value:
|
|
463
|
+
/* @__PURE__ */ O(_, {
|
|
464
|
+
value: r.PartTime,
|
|
465
465
|
children: "Part-time"
|
|
466
466
|
}),
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
value:
|
|
467
|
+
/* @__PURE__ */ O(_, {
|
|
468
|
+
value: r.Contract,
|
|
469
469
|
children: "Contract"
|
|
470
470
|
}),
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
value:
|
|
471
|
+
/* @__PURE__ */ O(_, {
|
|
472
|
+
value: r.Internship,
|
|
473
473
|
children: "Internship"
|
|
474
474
|
})
|
|
475
475
|
] })]
|
|
476
|
-
})] }), /* @__PURE__ */
|
|
476
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
477
477
|
htmlFor: "job-posting-status",
|
|
478
478
|
children: "Status"
|
|
479
|
-
}), /* @__PURE__ */
|
|
480
|
-
value:
|
|
481
|
-
onValueChange: (e) =>
|
|
479
|
+
}), /* @__PURE__ */ k(h, {
|
|
480
|
+
value: V.status,
|
|
481
|
+
onValueChange: (e) => H((t) => ({
|
|
482
482
|
...t,
|
|
483
483
|
status: e
|
|
484
484
|
})),
|
|
485
|
-
children: [/* @__PURE__ */
|
|
485
|
+
children: [/* @__PURE__ */ O(v, {
|
|
486
486
|
id: "job-posting-status",
|
|
487
487
|
className: "mt-1.5",
|
|
488
|
-
children: /* @__PURE__ */
|
|
489
|
-
}), /* @__PURE__ */
|
|
490
|
-
/* @__PURE__ */
|
|
491
|
-
value:
|
|
488
|
+
children: /* @__PURE__ */ O(y, { placeholder: "Select status" })
|
|
489
|
+
}), /* @__PURE__ */ k(g, { children: [
|
|
490
|
+
/* @__PURE__ */ O(_, {
|
|
491
|
+
value: i.Open,
|
|
492
492
|
children: "Open"
|
|
493
493
|
}),
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
value:
|
|
494
|
+
/* @__PURE__ */ O(_, {
|
|
495
|
+
value: i.Draft,
|
|
496
496
|
children: "Draft"
|
|
497
497
|
}),
|
|
498
|
-
/* @__PURE__ */
|
|
499
|
-
value:
|
|
498
|
+
/* @__PURE__ */ O(_, {
|
|
499
|
+
value: i.Closed,
|
|
500
500
|
children: "Closed"
|
|
501
501
|
}),
|
|
502
|
-
/* @__PURE__ */
|
|
503
|
-
value:
|
|
502
|
+
/* @__PURE__ */ O(_, {
|
|
503
|
+
value: i.Archived,
|
|
504
504
|
children: "Archived"
|
|
505
505
|
})
|
|
506
506
|
] })]
|
|
507
507
|
})] })]
|
|
508
508
|
}),
|
|
509
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
510
510
|
htmlFor: "job-posting-product-id",
|
|
511
511
|
children: "Product ID"
|
|
512
|
-
}), /* @__PURE__ */
|
|
512
|
+
}), /* @__PURE__ */ O(p, {
|
|
513
513
|
id: "job-posting-product-id",
|
|
514
|
-
value:
|
|
515
|
-
onChange: (e) =>
|
|
514
|
+
value: V.productId,
|
|
515
|
+
onChange: (e) => H((t) => ({
|
|
516
516
|
...t,
|
|
517
517
|
productId: e.target.value
|
|
518
518
|
})),
|
|
519
519
|
placeholder: "Optional product identifier",
|
|
520
520
|
className: "mt-1.5"
|
|
521
521
|
})] }),
|
|
522
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
523
523
|
htmlFor: "job-posting-description",
|
|
524
524
|
children: "Description"
|
|
525
|
-
}), /* @__PURE__ */
|
|
525
|
+
}), /* @__PURE__ */ O(b, {
|
|
526
526
|
id: "job-posting-description",
|
|
527
|
-
value:
|
|
528
|
-
onChange: (e) =>
|
|
527
|
+
value: V.description,
|
|
528
|
+
onChange: (e) => H((t) => ({
|
|
529
529
|
...t,
|
|
530
530
|
description: e.target.value
|
|
531
531
|
})),
|
|
@@ -533,13 +533,13 @@ function N() {
|
|
|
533
533
|
rows: 5,
|
|
534
534
|
className: "mt-1.5 resize-none"
|
|
535
535
|
})] }),
|
|
536
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O(m, {
|
|
537
537
|
htmlFor: "job-posting-overview",
|
|
538
538
|
children: "Overview"
|
|
539
|
-
}), /* @__PURE__ */
|
|
539
|
+
}), /* @__PURE__ */ O(b, {
|
|
540
540
|
id: "job-posting-overview",
|
|
541
|
-
value:
|
|
542
|
-
onChange: (e) =>
|
|
541
|
+
value: V.overview,
|
|
542
|
+
onChange: (e) => H((t) => ({
|
|
543
543
|
...t,
|
|
544
544
|
overview: e.target.value
|
|
545
545
|
})),
|
|
@@ -547,15 +547,15 @@ function N() {
|
|
|
547
547
|
rows: 3,
|
|
548
548
|
className: "mt-1.5 resize-none"
|
|
549
549
|
})] }),
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ k("div", { children: [
|
|
551
|
+
/* @__PURE__ */ O(m, {
|
|
552
552
|
htmlFor: "job-posting-responsibilities",
|
|
553
553
|
children: "Responsibilities"
|
|
554
554
|
}),
|
|
555
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ O(b, {
|
|
556
556
|
id: "job-posting-responsibilities",
|
|
557
|
-
value:
|
|
558
|
-
onChange: (e) =>
|
|
557
|
+
value: V.responsibilities,
|
|
558
|
+
onChange: (e) => H((t) => ({
|
|
559
559
|
...t,
|
|
560
560
|
responsibilities: e.target.value
|
|
561
561
|
})),
|
|
@@ -563,20 +563,20 @@ function N() {
|
|
|
563
563
|
rows: 4,
|
|
564
564
|
className: "mt-1.5 resize-none"
|
|
565
565
|
}),
|
|
566
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ O("p", {
|
|
567
567
|
className: "mt-1 text-xs text-text-secondary",
|
|
568
568
|
children: "Enter one item per line."
|
|
569
569
|
})
|
|
570
570
|
] }),
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
-
/* @__PURE__ */
|
|
571
|
+
/* @__PURE__ */ k("div", { children: [
|
|
572
|
+
/* @__PURE__ */ O(m, {
|
|
573
573
|
htmlFor: "job-posting-learnings",
|
|
574
574
|
children: "Learnings"
|
|
575
575
|
}),
|
|
576
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ O(b, {
|
|
577
577
|
id: "job-posting-learnings",
|
|
578
|
-
value:
|
|
579
|
-
onChange: (e) =>
|
|
578
|
+
value: V.learnings,
|
|
579
|
+
onChange: (e) => H((t) => ({
|
|
580
580
|
...t,
|
|
581
581
|
learnings: e.target.value
|
|
582
582
|
})),
|
|
@@ -584,20 +584,20 @@ function N() {
|
|
|
584
584
|
rows: 4,
|
|
585
585
|
className: "mt-1.5 resize-none"
|
|
586
586
|
}),
|
|
587
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ O("p", {
|
|
588
588
|
className: "mt-1 text-xs text-text-secondary",
|
|
589
589
|
children: "Enter one item per line."
|
|
590
590
|
})
|
|
591
591
|
] }),
|
|
592
|
-
/* @__PURE__ */
|
|
593
|
-
/* @__PURE__ */
|
|
592
|
+
/* @__PURE__ */ k("div", { children: [
|
|
593
|
+
/* @__PURE__ */ O(m, {
|
|
594
594
|
htmlFor: "job-posting-qualifications",
|
|
595
595
|
children: "Qualifications"
|
|
596
596
|
}),
|
|
597
|
-
/* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ O(b, {
|
|
598
598
|
id: "job-posting-qualifications",
|
|
599
|
-
value:
|
|
600
|
-
onChange: (e) =>
|
|
599
|
+
value: V.qualifications,
|
|
600
|
+
onChange: (e) => H((t) => ({
|
|
601
601
|
...t,
|
|
602
602
|
qualifications: e.target.value
|
|
603
603
|
})),
|
|
@@ -605,66 +605,66 @@ function N() {
|
|
|
605
605
|
rows: 4,
|
|
606
606
|
className: "mt-1.5 resize-none"
|
|
607
607
|
}),
|
|
608
|
-
/* @__PURE__ */
|
|
608
|
+
/* @__PURE__ */ O("p", {
|
|
609
609
|
className: "mt-1 text-xs text-text-secondary",
|
|
610
610
|
children: "Enter one item per line."
|
|
611
611
|
})
|
|
612
612
|
] }),
|
|
613
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ k(d, { children: [/* @__PURE__ */ O(c, {
|
|
614
614
|
type: "button",
|
|
615
615
|
variant: "outline",
|
|
616
|
-
onClick:
|
|
616
|
+
onClick: Le,
|
|
617
617
|
children: "Cancel"
|
|
618
|
-
}), /* @__PURE__ */
|
|
618
|
+
}), /* @__PURE__ */ k(c, {
|
|
619
619
|
type: "submit",
|
|
620
|
-
disabled: je ||
|
|
621
|
-
children: [je ||
|
|
620
|
+
disabled: je || Q,
|
|
621
|
+
children: [je || Q ? /* @__PURE__ */ O(T, {
|
|
622
622
|
size: 16,
|
|
623
623
|
className: "animate-spin mr-2"
|
|
624
|
-
}) : null,
|
|
624
|
+
}) : null, z ? "Save Changes" : "Create Posting"]
|
|
625
625
|
})] })
|
|
626
626
|
]
|
|
627
627
|
})]
|
|
628
628
|
})
|
|
629
629
|
}),
|
|
630
|
-
/* @__PURE__ */
|
|
631
|
-
open:
|
|
632
|
-
onOpenChange:
|
|
633
|
-
children: /* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ O(l, {
|
|
631
|
+
open: we,
|
|
632
|
+
onOpenChange: U,
|
|
633
|
+
children: /* @__PURE__ */ k(u, {
|
|
634
634
|
className: "w-full max-w-md",
|
|
635
635
|
children: [
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ O(ie, { children: /* @__PURE__ */ O(f, { children: "Delete job posting?" }) }),
|
|
637
|
+
/* @__PURE__ */ k("p", {
|
|
638
638
|
className: "text-sm text-text-secondary",
|
|
639
639
|
children: [
|
|
640
640
|
"This will permanently remove",
|
|
641
641
|
" ",
|
|
642
|
-
/* @__PURE__ */
|
|
642
|
+
/* @__PURE__ */ O("strong", {
|
|
643
643
|
className: "text-text-primary",
|
|
644
|
-
children:
|
|
644
|
+
children: W?.title
|
|
645
645
|
}),
|
|
646
646
|
" and cannot be undone."
|
|
647
647
|
]
|
|
648
648
|
}),
|
|
649
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ k(d, { children: [/* @__PURE__ */ O(c, {
|
|
650
650
|
type: "button",
|
|
651
651
|
variant: "outline",
|
|
652
|
-
onClick: () =>
|
|
652
|
+
onClick: () => U(!1),
|
|
653
653
|
children: "Cancel"
|
|
654
|
-
}), /* @__PURE__ */
|
|
654
|
+
}), /* @__PURE__ */ k(c, {
|
|
655
655
|
type: "button",
|
|
656
656
|
variant: "destructive",
|
|
657
657
|
onClick: async () => {
|
|
658
|
-
if (
|
|
659
|
-
await
|
|
658
|
+
if (W) try {
|
|
659
|
+
await Ne({ variables: { id: W.id } }), $("success", "Job posting deleted.");
|
|
660
660
|
} catch (e) {
|
|
661
|
-
|
|
661
|
+
$("error", e instanceof Error ? e.message : "Failed to delete posting.");
|
|
662
662
|
} finally {
|
|
663
|
-
|
|
663
|
+
U(!1), G(null);
|
|
664
664
|
}
|
|
665
665
|
},
|
|
666
|
-
disabled:
|
|
667
|
-
children: [
|
|
666
|
+
disabled: Pe,
|
|
667
|
+
children: [Pe ? /* @__PURE__ */ O(T, {
|
|
668
668
|
size: 16,
|
|
669
669
|
className: "animate-spin mr-2"
|
|
670
670
|
}) : null, "Delete"]
|
|
@@ -675,7 +675,6 @@ function N() {
|
|
|
675
675
|
]
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
|
|
679
|
-
export { N as JobPostingsPage };
|
|
678
|
+
export { P as JobPostingsPage };
|
|
680
679
|
|
|
681
680
|
//# sourceMappingURL=JobPostingsPage.js.map
|