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