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