@burdenoff/microfe-support 2026.1029.2 → 2026.1031.1

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