@burdenoff/microfe-support 2026.1029.3 → 2026.1031.2

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