@burdenoff/microfe-support 2026.1114.1 → 2026.1115.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/generated/global-operations.d.ts +62 -0
  2. package/dist/generated/global-operations.js +104 -69
  3. package/dist/generated/global-operations.js.map +1 -1
  4. package/dist/generated/global-types.js +17 -15
  5. package/dist/generated/global-types.js.map +1 -1
  6. package/dist/support/SupportUserRoot.js +32 -28
  7. package/dist/support/SupportUserRoot.js.map +1 -1
  8. package/dist/support/SupportUserRoutes.d.ts +1 -0
  9. package/dist/support/SupportUserRoutes.js +31 -28
  10. package/dist/support/SupportUserRoutes.js.map +1 -1
  11. package/dist/support/components/PageLayout.js +35 -35
  12. package/dist/support/components/RouteHelpers.d.ts +2 -1
  13. package/dist/support/components/RouteHelpers.js +3 -3
  14. package/dist/support/components/RouteHelpers.js.map +1 -1
  15. package/dist/support/components/help/RelatedArticles.d.ts +12 -0
  16. package/dist/support/components/help/RelatedArticles.js +55 -0
  17. package/dist/support/components/help/RelatedArticles.js.map +1 -0
  18. package/dist/support/components/help/RequestDetailHeader.d.ts +18 -0
  19. package/dist/support/components/help/RequestDetailHeader.js +129 -0
  20. package/dist/support/components/help/RequestDetailHeader.js.map +1 -0
  21. package/dist/support/components/help/SatisfactionReview.d.ts +18 -0
  22. package/dist/support/components/help/SatisfactionReview.js +103 -0
  23. package/dist/support/components/help/SatisfactionReview.js.map +1 -0
  24. package/dist/support/components/help/StarRating.d.ts +16 -0
  25. package/dist/support/components/help/StarRating.js +63 -0
  26. package/dist/support/components/help/StarRating.js.map +1 -0
  27. package/dist/support/components/help/StatusGroupPill.d.ts +11 -0
  28. package/dist/support/components/help/StatusGroupPill.js +19 -0
  29. package/dist/support/components/help/StatusGroupPill.js.map +1 -0
  30. package/dist/support/components/settings/TicketCategoriesSettings.js +69 -69
  31. package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
  32. package/dist/support/components/tickets/MessageComposer.js +7 -7
  33. package/dist/support/components/tickets/MessageComposer.js.map +1 -1
  34. package/dist/support/components/tickets/TicketDetailHeader.js +54 -60
  35. package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
  36. package/dist/support/components/ui.js +1 -1
  37. package/dist/support/constants.d.ts +23 -0
  38. package/dist/support/constants.js +2 -2
  39. package/dist/support/constants.js.map +1 -1
  40. package/dist/support/hooks/useDebouncedValue.d.ts +6 -0
  41. package/dist/support/hooks/useDebouncedValue.js +12 -0
  42. package/dist/support/hooks/useDebouncedValue.js.map +1 -0
  43. package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +8 -1
  44. package/dist/support/hooks/useKnowledgeBaseOperations.js +86 -81
  45. package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
  46. package/dist/support/hooks/useSupportVariant.d.ts +11 -0
  47. package/dist/support/hooks/useSupportVariant.js +11 -0
  48. package/dist/support/hooks/useSupportVariant.js.map +1 -0
  49. package/dist/support/hooks/useTicketCreatedToast.d.ts +16 -0
  50. package/dist/support/hooks/useTicketCreatedToast.js +25 -0
  51. package/dist/support/hooks/useTicketCreatedToast.js.map +1 -0
  52. package/dist/support/hooks/useTicketLabels.d.ts +22 -0
  53. package/dist/support/hooks/useTicketLabels.js +40 -0
  54. package/dist/support/hooks/useTicketLabels.js.map +1 -0
  55. package/dist/support/index.d.ts +1 -1
  56. package/dist/support/pages/ArticleDetailAdminPage.js +84 -84
  57. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  58. package/dist/support/pages/ArticleDetailUserPage.d.ts +5 -0
  59. package/dist/support/pages/ArticleDetailUserPage.js +133 -69
  60. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  61. package/dist/support/pages/AskForHelpPage.d.ts +11 -0
  62. package/dist/support/pages/AskForHelpPage.js +396 -0
  63. package/dist/support/pages/AskForHelpPage.js.map +1 -0
  64. package/dist/support/pages/ContactInquiriesPage.js +73 -73
  65. package/dist/support/pages/ContactInquiryDetailPage.js +47 -47
  66. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  67. package/dist/support/pages/CreateTicketPage.d.ts +4 -0
  68. package/dist/support/pages/CreateTicketPage.js +121 -117
  69. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  70. package/dist/support/pages/HelpHubPage.d.ts +9 -0
  71. package/dist/support/pages/HelpHubPage.js +272 -0
  72. package/dist/support/pages/HelpHubPage.js.map +1 -0
  73. package/dist/support/pages/JobApplicationDetailPage.js +388 -388
  74. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  75. package/dist/support/pages/JobApplicationsPage.js +35 -35
  76. package/dist/support/pages/JobPostingDetailPage.js +236 -236
  77. package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
  78. package/dist/support/pages/KnowledgeBaseUserPage.d.ts +6 -1
  79. package/dist/support/pages/KnowledgeBaseUserPage.js +188 -137
  80. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  81. package/dist/support/pages/MyRequestsPage.d.ts +16 -0
  82. package/dist/support/pages/MyRequestsPage.js +389 -0
  83. package/dist/support/pages/MyRequestsPage.js.map +1 -0
  84. package/dist/support/pages/TicketDetailUserPage.d.ts +5 -0
  85. package/dist/support/pages/TicketDetailUserPage.js +285 -192
  86. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  87. package/dist/support/pages/TicketListPage.d.ts +7 -0
  88. package/dist/support/pages/TicketListPage.js +150 -153
  89. package/dist/support/pages/TicketListPage.js.map +1 -1
  90. package/dist/support/providers/SupportProvider.js +8 -7
  91. package/dist/support/providers/SupportProvider.js.map +1 -1
  92. package/dist/support/store/supportStore.d.ts +5 -0
  93. package/dist/support/store/supportStore.js +1 -0
  94. package/dist/support/store/supportStore.js.map +1 -1
  95. package/dist/support/translations/en.d.ts +279 -0
  96. package/dist/support/translations/en.js +270 -1
  97. package/dist/support/translations/en.js.map +1 -1
  98. package/dist/support/types/index.d.ts +13 -0
  99. package/dist/support/utils/cameFrom.d.ts +16 -0
  100. package/dist/support/utils/cameFrom.js +22 -0
  101. package/dist/support/utils/cameFrom.js.map +1 -0
  102. package/dist/support/utils/dates.d.ts +15 -0
  103. package/dist/support/utils/dates.js +35 -0
  104. package/dist/support/utils/dates.js.map +1 -0
  105. package/dist/support/utils/reopen.d.ts +27 -0
  106. package/dist/support/utils/reopen.js +27 -0
  107. package/dist/support/utils/reopen.js.map +1 -0
  108. package/dist/support/utils/requestTechnicalDetails.d.ts +13 -0
  109. package/dist/support/utils/requestTechnicalDetails.js +38 -0
  110. package/dist/support/utils/requestTechnicalDetails.js.map +1 -0
  111. package/dist/support/utils/ticketFilters.d.ts +16 -0
  112. package/dist/support/utils/ticketFilters.js +24 -12
  113. package/dist/support/utils/ticketFilters.js.map +1 -1
  114. package/dist/support/utils/ticketStatusGroups.d.ts +20 -0
  115. package/dist/support/utils/ticketStatusGroups.js +39 -0
  116. package/dist/support/utils/ticketStatusGroups.js.map +1 -0
  117. package/package.json +2 -2
@@ -1,35 +1,35 @@
1
1
  import e from "../../node_modules/dompurify/dist/purify.es.js";
2
2
  /* empty css */
3
- import { useAssignInterviewersToRoundMutation as t, useCreateInterviewRoundMutation as n, useGetInterviewersQuery as r, useGetJobApplicationInterviewRoundsQuery as i, useGetJobApplicationQuery as a, useGetJobApplicationResumePreviewUrlLazyQuery as ee, useGetJobApplicationResumeUrlLazyQuery as te, useGetJobPostingQuery as ne, useRandomizeAndSendAssignmentMutation as re, useRecordAssignmentSubmissionMutation as ie, useRemoveInterviewerFromRoundMutation as ae, useReplyToJobApplicationMutation as oe, useSendRoundMessageToCandidateMutation as o, useSubmitInterviewFeedbackMutation as s, useUpdateInterviewFeedbackMutation as c, useUpdateInterviewRoundMutation as se, useUpdateJobApplicationStatusMutation as l } from "../../generated/global-operations.js";
4
- import { InterviewRoundStatus as u, InterviewRoundType as d, InterviewVerdict as ce, InterviewerRole as f } from "../../generated/global-types.js";
5
- import { nativeCopyText as p, nativeImpact as le } from "../../utils/nativeBridge.js";
6
- import { roundStatusConfig as m, roundStatusOrder as ue, statusLabels as de, statusOrder as fe } from "../constants/pipeline.js";
7
- import { RichTextEditor as pe } from "../components/careers/RichTextEditor.js";
8
- import { Badge as h, Button as g, Card as me, CardContent as _, CardHeader as he, CardTitle as ge, Dialog as v, DialogContent as _e, DialogDescription as y, DialogFooter as ve, DialogHeader as b, DialogTitle as ye, Input as x, Label as S, Select as C, SelectContent as w, SelectItem as T, SelectTrigger as E, SelectValue as D, Textarea as be } from "../components/ui.js";
9
- import { useEffect as O, useState as k } from "react";
10
- import { AlertCircle as A, Archive as j, ArrowLeft as M, Briefcase as N, Building2 as P, Calendar as xe, CheckCircle as F, Clock as I, Copy as L, Download as Se, Edit3 as R, ExternalLink as z, Eye as B, FileText as V, Globe as H, Inbox as U, Link2 as W, Linkedin as Ce, Loader2 as G, Mail as K, MessageSquare as we, Package as Te, Phone as Ee, Plus as De, Send as Oe, Star as ke, User as q, UserPlus as Ae, UserX as je, Users as J, XCircle as Me } from "lucide-react";
11
- import { useLocation as Ne, useNavigate as Pe, useParams as Fe } from "react-router";
12
- import { graphqlFetch as Ie } from "@burdenoff/fe-libs/shared/graphql/fetch";
13
- import { Fragment as Le, jsx as Y, jsxs as X } from "react/jsx-runtime";
14
- import { EmphasisPanel as Re, IllustratedEmptyState as ze, NextSteps as Be, PagePurpose as Ve } from "@burdenoff/fe-libs/ui";
3
+ import { useAssignInterviewersToRoundMutation as t, useCreateInterviewRoundMutation as n, useGetInterviewersQuery as r, useGetJobApplicationInterviewRoundsQuery as i, useGetJobApplicationQuery as ee, useGetJobApplicationResumePreviewUrlLazyQuery as te, useGetJobApplicationResumeUrlLazyQuery as ne, useGetJobPostingQuery as re, useRandomizeAndSendAssignmentMutation as ie, useRecordAssignmentSubmissionMutation as ae, useRemoveInterviewerFromRoundMutation as oe, useReplyToJobApplicationMutation as se, useSendRoundMessageToCandidateMutation as a, useSubmitInterviewFeedbackMutation as o, useUpdateInterviewFeedbackMutation as s, useUpdateInterviewRoundMutation as ce, useUpdateJobApplicationStatusMutation as c } from "../../generated/global-operations.js";
4
+ import { InterviewRoundStatus as l, InterviewRoundType as u, InterviewVerdict as le, InterviewerRole as d } from "../../generated/global-types.js";
5
+ import { nativeCopyText as f, nativeImpact as ue } from "../../utils/nativeBridge.js";
6
+ import { roundStatusConfig as p, roundStatusOrder as de, statusLabels as fe, statusOrder as pe } from "../constants/pipeline.js";
7
+ import { RichTextEditor as me } from "../components/careers/RichTextEditor.js";
8
+ import { Badge as m, Button as h, Card as he, CardContent as g, CardHeader as ge, CardTitle as _e, Dialog as _, DialogContent as v, DialogDescription as y, DialogFooter as b, DialogHeader as x, DialogTitle as ve, Input as S, Label as C, Select as w, SelectContent as T, SelectItem as E, SelectTrigger as D, SelectValue as O, Textarea as ye } from "../components/ui.js";
9
+ import { useEffect as k, useState as A } from "react";
10
+ import { EmphasisPanel as j, IllustratedEmptyState as M, NextSteps as N, PagePurpose as P } from "@burdenoff/fe-libs/ui";
11
+ import { AlertCircle as be, Archive as F, ArrowLeft as I, Briefcase as L, Building2 as xe, Calendar as Se, CheckCircle as R, Clock as z, Copy as B, Download as V, Edit3 as H, ExternalLink as Ce, Eye as U, FileText as W, Globe as G, Inbox as K, Link2 as we, Linkedin as Te, Loader2 as q, Mail as Ee, MessageSquare as De, Package as Oe, Phone as ke, Plus as Ae, Send as je, Star as Me, User as Ne, UserPlus as Pe, UserX as Fe, Users as J, XCircle as Ie } from "lucide-react";
12
+ import { useLocation as Le, useNavigate as Re, useParams as ze } from "react-router";
13
+ import { graphqlFetch as Be } from "@burdenoff/fe-libs/shared/graphql/fetch";
14
+ import { Fragment as Ve, jsx as Y, jsxs as X } from "react/jsx-runtime";
15
15
  // src/support/pages/JobApplicationDetailPage.tsx
16
16
  var Z = "__custom__", He = {
17
17
  NEW: {
18
18
  label: "New",
19
19
  color: "text-accent-blue",
20
- icon: U,
20
+ icon: K,
21
21
  bg: "bg-status-info-bg-subtle border-border-subtle"
22
22
  },
23
23
  SCREENING: {
24
24
  label: "Screening",
25
25
  color: "text-status-warning-text",
26
- icon: B,
26
+ icon: U,
27
27
  bg: "bg-status-warning-bg-subtle border-border-subtle"
28
28
  },
29
29
  SHORTLISTED: {
30
30
  label: "Shortlisted",
31
31
  color: "text-accent-purple",
32
- icon: ke,
32
+ icon: Me,
33
33
  bg: "bg-accent-purple-subtle border-border-subtle"
34
34
  },
35
35
  INTERVIEW: {
@@ -41,19 +41,19 @@ var Z = "__custom__", He = {
41
41
  HIRED: {
42
42
  label: "Hired",
43
43
  color: "text-status-success-text",
44
- icon: F,
44
+ icon: R,
45
45
  bg: "bg-status-success-bg-subtle border-border-subtle"
46
46
  },
47
47
  REJECTED: {
48
48
  label: "Rejected",
49
49
  color: "text-status-error-text",
50
- icon: Me,
50
+ icon: Ie,
51
51
  bg: "bg-status-error-bg-subtle border-border-subtle"
52
52
  },
53
53
  ARCHIVED: {
54
54
  label: "Archived",
55
55
  color: "text-text-secondary",
56
- icon: j,
56
+ icon: F,
57
57
  bg: "bg-bg-canvas border-border-subtle"
58
58
  }
59
59
  };
@@ -100,10 +100,10 @@ function Ke(e) {
100
100
  return null;
101
101
  }
102
102
  }
103
- function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading: i, onAssign: a, onRemoveInterviewer: ee, onSendMessage: te, onSubmitFeedback: ne, onUpdateFeedback: ae }) {
104
- let [oe, o] = k(!1), [s, c] = k(null), [l, u] = k(""), [f, p] = k(""), [le, de] = k(""), [fe, pe] = k(""), [v, _e] = k(t.submittedRepoUrl ?? ""), [y, ve] = k(t.submittedVideoUrl ?? ""), [b, ye] = k(t.submittedNotes ?? ""), [O, j] = k(null), [M, N] = k(t.notes ?? ""), [P, F] = k(!1), [I, { loading: L }] = re({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [Se, { loading: z }] = ie({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [B, { loading: H }] = se({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplications"] }), U = t.roundType === d.TakeHome || !!t.roundConfig?.isAssignmentRound, W = !!t.assignment, Ce = !!(t.submittedRepoUrl || t.submittedVideoUrl || t.submittedAt), K = W || Ce, Te = t.emailLogs.find((e) => e.emailType === "ASSIGNMENT")?.sentAt, Ee = m[t.status] ?? m.SCHEDULED, q = () => {
105
- c(null), u(""), p(""), de(""), pe("");
106
- }, J = async () => {
103
+ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading: i, onAssign: ee, onRemoveInterviewer: te, onSendMessage: ne, onSubmitFeedback: re, onUpdateFeedback: oe }) {
104
+ let [se, a] = A(!1), [o, s] = A(null), [c, l] = A(""), [d, f] = A(""), [ue, fe] = A(""), [pe, me] = A(""), [_, v] = A(t.submittedRepoUrl ?? ""), [y, b] = A(t.submittedVideoUrl ?? ""), [x, ve] = A(t.submittedNotes ?? ""), [k, j] = A(null), [M, N] = A(t.notes ?? ""), [P, F] = A(!1), [I, { loading: L }] = ie({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [xe, { loading: R }] = ae({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [z, { loading: B }] = ce({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplications"] }), V = t.roundType === u.TakeHome || !!t.roundConfig?.isAssignmentRound, Ce = !!t.assignment, U = !!(t.submittedRepoUrl || t.submittedVideoUrl || t.submittedAt), G = Ce || U, K = t.emailLogs.find((e) => e.emailType === "ASSIGNMENT")?.sentAt, we = p[t.status] ?? p.SCHEDULED, Te = () => {
105
+ s(null), l(""), f(""), fe(""), me("");
106
+ }, Ee = async () => {
107
107
  j(null);
108
108
  try {
109
109
  await I({ variables: { input: {
@@ -113,14 +113,14 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
113
113
  } catch (e) {
114
114
  console.error("Failed to randomize and send assignment:", e), j("Failed to randomize and send assignment.");
115
115
  }
116
- }, Me = async () => {
116
+ }, Oe = async () => {
117
117
  j(null);
118
- let e = v.trim() || void 0, n = y.trim() || void 0, r = b.trim() || void 0;
118
+ let e = _.trim() || void 0, n = y.trim() || void 0, r = x.trim() || void 0;
119
119
  if (e && !Ke(e)) j("GitHub repo URL must start with http:// or https://.");
120
120
  else if (n && !Ke(n)) j("Jam video URL must start with http:// or https://.");
121
121
  else if (!e && !n && !r) j("Please provide at least a repo URL, video URL, or notes.");
122
122
  else try {
123
- await Se({ variables: { input: {
123
+ await xe({ variables: { input: {
124
124
  roundId: t.id,
125
125
  repoUrl: e,
126
126
  videoUrl: n,
@@ -129,28 +129,28 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
129
129
  } catch (e) {
130
130
  console.error("Failed to record assignment submission:", e), j("Failed to record submission.");
131
131
  }
132
- }, Ne = async (e) => {
132
+ }, ke = async (e) => {
133
133
  if (e !== t.status) try {
134
- await B({ variables: {
134
+ await z({ variables: {
135
135
  id: t.id,
136
136
  input: { status: e }
137
137
  } });
138
138
  } catch (e) {
139
139
  console.error("Failed to update round status:", e);
140
140
  }
141
- }, Pe = async () => {
141
+ }, Ne = async () => {
142
142
  try {
143
- await B({ variables: {
143
+ await z({ variables: {
144
144
  id: t.id,
145
145
  input: { notes: M.trim() || null }
146
146
  } }), F(!0), setTimeout(() => F(!1), 2e3);
147
147
  } catch (e) {
148
148
  console.error("Failed to save round notes:", e);
149
149
  }
150
- }, Fe = () => {
151
- q(), o(!0);
150
+ }, J = () => {
151
+ Te(), a(!0);
152
152
  }, Ie = (e) => {
153
- c(e), u(e.interviewerId), p(e.rating?.toString() ?? ""), de(e.verdict ?? ""), pe(e.internalNotes ?? ""), o(!0);
153
+ s(e), l(e.interviewerId), f(e.rating?.toString() ?? ""), fe(e.verdict ?? ""), me(e.internalNotes ?? ""), a(!0);
154
154
  };
155
155
  return /* @__PURE__ */ X("div", {
156
156
  className: "border border-border-default rounded-lg p-4 space-y-4",
@@ -164,7 +164,7 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
164
164
  className: "text-sm font-semibold text-text-primary",
165
165
  children: t.name
166
166
  }),
167
- /* @__PURE__ */ Y(h, {
167
+ /* @__PURE__ */ Y(m, {
168
168
  variant: "outline",
169
169
  className: "bg-accent-indigo-subtle text-accent-indigo text-xs",
170
170
  children: $(t.roundType)
@@ -172,30 +172,30 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
172
172
  /* @__PURE__ */ Y("select", {
173
173
  "aria-label": "Round status",
174
174
  value: t.status,
175
- onChange: (e) => Ne(e.target.value),
176
- disabled: H,
177
- className: `text-xs font-medium rounded-full pl-2 pr-1.5 py-0.5 border-0 focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 ${Ee.className}`,
178
- children: ue.map((e) => /* @__PURE__ */ Y("option", {
175
+ onChange: (e) => ke(e.target.value),
176
+ disabled: B,
177
+ className: `text-xs font-medium rounded-full pl-2 pr-1.5 py-0.5 border-0 focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 ${we.className}`,
178
+ children: de.map((e) => /* @__PURE__ */ Y("option", {
179
179
  value: e,
180
- children: m[e].label
180
+ children: p[e].label
181
181
  }, e))
182
182
  })
183
183
  ]
184
184
  }), t.scheduledAt && /* @__PURE__ */ X("p", {
185
185
  className: "text-xs text-text-secondary flex items-center gap-1",
186
- children: [/* @__PURE__ */ Y(xe, { size: 12 }), Q(t.scheduledAt)]
186
+ children: [/* @__PURE__ */ Y(Se, { size: 12 }), Q(t.scheduledAt)]
187
187
  })] }), /* @__PURE__ */ X("div", {
188
188
  className: "flex items-center gap-2",
189
- children: [/* @__PURE__ */ X(g, {
189
+ children: [/* @__PURE__ */ X(h, {
190
190
  variant: "outline",
191
191
  size: "sm",
192
- onClick: a,
193
- children: [/* @__PURE__ */ Y(Ae, { size: 14 }), "Assign"]
194
- }), /* @__PURE__ */ X(g, {
192
+ onClick: ee,
193
+ children: [/* @__PURE__ */ Y(Pe, { size: 14 }), "Assign"]
194
+ }), /* @__PURE__ */ X(h, {
195
195
  variant: "outline",
196
196
  size: "sm",
197
- onClick: te,
198
- children: [/* @__PURE__ */ Y(we, { size: 14 }), "Message"]
197
+ onClick: ne,
198
+ children: [/* @__PURE__ */ Y(De, { size: 14 }), "Message"]
199
199
  })]
200
200
  })]
201
201
  }),
@@ -213,17 +213,17 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
213
213
  className: "font-medium",
214
214
  children: e.interviewer.name
215
215
  }),
216
- /* @__PURE__ */ Y(h, {
216
+ /* @__PURE__ */ Y(m, {
217
217
  variant: "outline",
218
218
  className: "text-[10px] px-1.5 py-0",
219
219
  children: $(e.role)
220
220
  }),
221
221
  /* @__PURE__ */ Y("button", {
222
222
  type: "button",
223
- onClick: () => ee(t.id, e.interviewer.id),
223
+ onClick: () => te(t.id, e.interviewer.id),
224
224
  className: "p-0.5 rounded-full hover:bg-status-error-bg-subtle hover:text-status-error-text transition-colors",
225
225
  title: "Remove interviewer",
226
- children: /* @__PURE__ */ Y(je, { size: 12 })
226
+ children: /* @__PURE__ */ Y(Fe, { size: 12 })
227
227
  })
228
228
  ]
229
229
  }, e.id))
@@ -242,14 +242,14 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
242
242
  onChange: (e) => N(e.target.value),
243
243
  placeholder: "Remarks for later evaluation — not visible to the candidate.",
244
244
  rows: 2,
245
- disabled: H,
245
+ disabled: B,
246
246
  className: "w-full px-3 py-2 bg-bg-surface border border-border-default rounded-lg text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/30 disabled:opacity-50 resize-none"
247
247
  }),
248
- M.trim() !== (t.notes ?? "") && /* @__PURE__ */ Y(g, {
248
+ M.trim() !== (t.notes ?? "") && /* @__PURE__ */ Y(h, {
249
249
  variant: "outline",
250
250
  size: "sm",
251
- onClick: Pe,
252
- disabled: H,
251
+ onClick: Ne,
252
+ disabled: B,
253
253
  children: "Save notes"
254
254
  }),
255
255
  P && /* @__PURE__ */ Y("p", {
@@ -275,27 +275,27 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
275
275
  })
276
276
  ]
277
277
  }),
278
- U && /* @__PURE__ */ X(me, {
278
+ V && /* @__PURE__ */ X(he, {
279
279
  className: "border border-border-default bg-bg-surface",
280
- children: [/* @__PURE__ */ Y(he, {
280
+ children: [/* @__PURE__ */ Y(ge, {
281
281
  className: "pb-2",
282
- children: /* @__PURE__ */ X(ge, {
282
+ children: /* @__PURE__ */ X(_e, {
283
283
  className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
284
- children: [/* @__PURE__ */ Y(V, { size: 14 }), "Assignment"]
284
+ children: [/* @__PURE__ */ Y(W, { size: 14 }), "Assignment"]
285
285
  })
286
- }), /* @__PURE__ */ X(_, {
286
+ }), /* @__PURE__ */ X(g, {
287
287
  className: "space-y-3",
288
- children: [O && /* @__PURE__ */ X("div", {
288
+ children: [k && /* @__PURE__ */ X("div", {
289
289
  className: "p-2.5 rounded-lg bg-status-error-bg-subtle border border-border-subtle text-sm text-status-error-text flex items-center gap-2",
290
- children: [/* @__PURE__ */ Y(A, { size: 14 }), O]
291
- }), !W && !Ce ? /* @__PURE__ */ X(g, {
290
+ children: [/* @__PURE__ */ Y(be, { size: 14 }), k]
291
+ }), !Ce && !U ? /* @__PURE__ */ X(h, {
292
292
  size: "sm",
293
- onClick: J,
293
+ onClick: Ee,
294
294
  disabled: L,
295
- children: [L ? /* @__PURE__ */ Y(G, {
295
+ children: [L ? /* @__PURE__ */ Y(q, {
296
296
  size: 14,
297
297
  className: "animate-spin mr-1"
298
- }) : /* @__PURE__ */ Y(Oe, { size: 14 }), "Randomize & Send Assignment"]
298
+ }) : /* @__PURE__ */ Y(je, { size: 14 }), "Randomize & Send Assignment"]
299
299
  }) : /* @__PURE__ */ X("div", {
300
300
  className: "space-y-4",
301
301
  children: [t.assignment && /* @__PURE__ */ X("div", {
@@ -309,49 +309,49 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
309
309
  className: "support-richtext text-sm text-text-secondary",
310
310
  dangerouslySetInnerHTML: { __html: e.sanitize(t.assignment.description) }
311
311
  }),
312
- Te && /* @__PURE__ */ X("p", {
312
+ K && /* @__PURE__ */ X("p", {
313
313
  className: "text-[11px] text-text-secondary",
314
- children: ["Sent ", Q(Te)]
314
+ children: ["Sent ", Q(K)]
315
315
  })
316
316
  ]
317
- }), K && /* @__PURE__ */ X("div", {
317
+ }), G && /* @__PURE__ */ X("div", {
318
318
  className: "space-y-3",
319
319
  children: [
320
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
320
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
321
321
  htmlFor: `assignment-repo-${t.id}`,
322
322
  children: "GitHub Repo URL"
323
- }), /* @__PURE__ */ Y(x, {
323
+ }), /* @__PURE__ */ Y(S, {
324
324
  id: `assignment-repo-${t.id}`,
325
- value: v,
326
- onChange: (e) => _e(e.target.value),
325
+ value: _,
326
+ onChange: (e) => v(e.target.value),
327
327
  placeholder: "https://github.com/…"
328
328
  })] }),
329
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
329
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
330
330
  htmlFor: `assignment-video-${t.id}`,
331
331
  children: "Jam Video URL"
332
- }), /* @__PURE__ */ Y(x, {
332
+ }), /* @__PURE__ */ Y(S, {
333
333
  id: `assignment-video-${t.id}`,
334
334
  value: y,
335
- onChange: (e) => ve(e.target.value),
335
+ onChange: (e) => b(e.target.value),
336
336
  placeholder: "https://jam.dev/…"
337
337
  })] }),
338
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
338
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
339
339
  htmlFor: `assignment-notes-${t.id}`,
340
340
  children: "Notes"
341
- }), /* @__PURE__ */ Y(be, {
341
+ }), /* @__PURE__ */ Y(ye, {
342
342
  id: `assignment-notes-${t.id}`,
343
- value: b,
344
- onChange: (e) => ye(e.target.value),
343
+ value: x,
344
+ onChange: (e) => ve(e.target.value),
345
345
  placeholder: "Add submission notes…",
346
346
  rows: 3
347
347
  })] }),
348
348
  /* @__PURE__ */ Y("div", {
349
349
  className: "flex items-center justify-end",
350
- children: /* @__PURE__ */ X(g, {
350
+ children: /* @__PURE__ */ X(h, {
351
351
  size: "sm",
352
- onClick: Me,
353
- disabled: z || !v.trim() && !y.trim() && !b.trim(),
354
- children: [z ? /* @__PURE__ */ Y(G, {
352
+ onClick: Oe,
353
+ disabled: R || !_.trim() && !y.trim() && !x.trim(),
354
+ children: [R ? /* @__PURE__ */ Y(q, {
355
355
  size: 14,
356
356
  className: "animate-spin mr-1"
357
357
  }) : null, "Record Submission"]
@@ -370,11 +370,11 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
370
370
  children: [/* @__PURE__ */ Y("p", {
371
371
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
372
372
  children: "Feedback"
373
- }), !oe && /* @__PURE__ */ X(g, {
373
+ }), !se && /* @__PURE__ */ X(h, {
374
374
  variant: "ghost",
375
375
  size: "sm",
376
- onClick: Fe,
377
- children: [/* @__PURE__ */ Y(De, { size: 14 }), "Add Feedback"]
376
+ onClick: J,
377
+ children: [/* @__PURE__ */ Y(Ae, { size: 14 }), "Add Feedback"]
378
378
  })]
379
379
  }),
380
380
  t.feedback.length > 0 && /* @__PURE__ */ Y("div", {
@@ -390,19 +390,19 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
390
390
  className: "flex items-center gap-2 mt-1",
391
391
  children: [e.rating && /* @__PURE__ */ Y("span", {
392
392
  className: "inline-flex items-center gap-0.5 text-xs text-status-warning-text",
393
- children: Array.from({ length: e.rating }).map((e, t) => /* @__PURE__ */ Y(ke, {
393
+ children: Array.from({ length: e.rating }).map((e, t) => /* @__PURE__ */ Y(Me, {
394
394
  size: 12,
395
395
  fill: "currentColor"
396
396
  }, t))
397
- }), e.verdict && /* @__PURE__ */ Y(h, {
397
+ }), e.verdict && /* @__PURE__ */ Y(m, {
398
398
  className: `${Ge(e.verdict)} text-xs`,
399
399
  children: $(e.verdict)
400
400
  })]
401
- })] }), /* @__PURE__ */ Y(g, {
401
+ })] }), /* @__PURE__ */ Y(h, {
402
402
  variant: "ghost",
403
403
  size: "sm",
404
404
  onClick: () => Ie(e),
405
- children: /* @__PURE__ */ Y(R, { size: 14 })
405
+ children: /* @__PURE__ */ Y(H, { size: 14 })
406
406
  })]
407
407
  }), e.internalNotes && /* @__PURE__ */ Y("p", {
408
408
  className: "mt-2 text-sm text-text-secondary whitespace-pre-wrap",
@@ -410,104 +410,104 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
410
410
  })]
411
411
  }, e.id))
412
412
  }),
413
- oe && /* @__PURE__ */ X("div", {
413
+ se && /* @__PURE__ */ X("div", {
414
414
  className: "p-3 rounded-lg border border-border-default bg-bg-surface space-y-3",
415
415
  children: [
416
- !s && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
416
+ !o && /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
417
417
  htmlFor: `feedback-interviewer-${t.id}`,
418
418
  children: "Interviewer"
419
- }), /* @__PURE__ */ X(C, {
420
- value: l,
421
- onValueChange: u,
422
- children: [/* @__PURE__ */ Y(E, {
419
+ }), /* @__PURE__ */ X(w, {
420
+ value: c,
421
+ onValueChange: l,
422
+ children: [/* @__PURE__ */ Y(D, {
423
423
  id: `feedback-interviewer-${t.id}`,
424
- children: /* @__PURE__ */ Y(D, { placeholder: "Select interviewer" })
425
- }), /* @__PURE__ */ Y(w, { children: i ? /* @__PURE__ */ Y(T, {
424
+ children: /* @__PURE__ */ Y(O, { placeholder: "Select interviewer" })
425
+ }), /* @__PURE__ */ Y(T, { children: i ? /* @__PURE__ */ Y(E, {
426
426
  value: "loading",
427
427
  disabled: !0,
428
428
  children: "Loading…"
429
- }) : r.map((e) => /* @__PURE__ */ Y(T, {
429
+ }) : r.map((e) => /* @__PURE__ */ Y(E, {
430
430
  value: e.id,
431
431
  children: e.name
432
432
  }, e.id)) })]
433
433
  })] }),
434
434
  /* @__PURE__ */ X("div", {
435
435
  className: "grid grid-cols-2 gap-3",
436
- children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
436
+ children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
437
437
  htmlFor: `feedback-rating-${t.id}`,
438
438
  children: "Rating"
439
- }), /* @__PURE__ */ X(C, {
440
- value: f,
441
- onValueChange: p,
442
- children: [/* @__PURE__ */ Y(E, {
439
+ }), /* @__PURE__ */ X(w, {
440
+ value: d,
441
+ onValueChange: f,
442
+ children: [/* @__PURE__ */ Y(D, {
443
443
  id: `feedback-rating-${t.id}`,
444
- children: /* @__PURE__ */ Y(D, { placeholder: "1–5" })
445
- }), /* @__PURE__ */ Y(w, { children: [
444
+ children: /* @__PURE__ */ Y(O, { placeholder: "1–5" })
445
+ }), /* @__PURE__ */ Y(T, { children: [
446
446
  1,
447
447
  2,
448
448
  3,
449
449
  4,
450
450
  5
451
- ].map((e) => /* @__PURE__ */ Y(T, {
451
+ ].map((e) => /* @__PURE__ */ Y(E, {
452
452
  value: String(e),
453
453
  children: e
454
454
  }, e)) })]
455
- })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
455
+ })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
456
456
  htmlFor: `feedback-verdict-${t.id}`,
457
457
  children: "Verdict"
458
- }), /* @__PURE__ */ X(C, {
459
- value: le,
460
- onValueChange: (e) => de(e),
461
- children: [/* @__PURE__ */ Y(E, {
458
+ }), /* @__PURE__ */ X(w, {
459
+ value: ue,
460
+ onValueChange: (e) => fe(e),
461
+ children: [/* @__PURE__ */ Y(D, {
462
462
  id: `feedback-verdict-${t.id}`,
463
- children: /* @__PURE__ */ Y(D, { placeholder: "Verdict" })
464
- }), /* @__PURE__ */ Y(w, { children: Object.values(ce).map((e) => /* @__PURE__ */ Y(T, {
463
+ children: /* @__PURE__ */ Y(O, { placeholder: "Verdict" })
464
+ }), /* @__PURE__ */ Y(T, { children: Object.values(le).map((e) => /* @__PURE__ */ Y(E, {
465
465
  value: e,
466
466
  children: $(e)
467
467
  }, e)) })]
468
468
  })] })]
469
469
  }),
470
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
470
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
471
471
  htmlFor: `feedback-notes-${t.id}`,
472
472
  children: "Internal Notes"
473
- }), /* @__PURE__ */ Y(be, {
473
+ }), /* @__PURE__ */ Y(ye, {
474
474
  id: `feedback-notes-${t.id}`,
475
- value: fe,
476
- onChange: (e) => pe(e.target.value),
475
+ value: pe,
476
+ onChange: (e) => me(e.target.value),
477
477
  placeholder: "Add private notes about this round…",
478
478
  rows: 3
479
479
  })] }),
480
480
  /* @__PURE__ */ X("div", {
481
481
  className: "flex items-center justify-end gap-2",
482
- children: [/* @__PURE__ */ Y(g, {
482
+ children: [/* @__PURE__ */ Y(h, {
483
483
  variant: "outline",
484
484
  size: "sm",
485
485
  onClick: () => {
486
- q(), o(!1);
486
+ Te(), a(!1);
487
487
  },
488
488
  children: "Cancel"
489
- }), /* @__PURE__ */ Y(g, {
489
+ }), /* @__PURE__ */ Y(h, {
490
490
  size: "sm",
491
491
  onClick: async () => {
492
- let e = f ? parseInt(f, 10) : void 0, n = le || void 0, r = fe.trim() || void 0;
493
- if (s) await ae(s.id, {
492
+ let e = d ? parseInt(d, 10) : void 0, n = ue || void 0, r = pe.trim() || void 0;
493
+ if (o) await oe(o.id, {
494
494
  rating: e,
495
495
  verdict: n,
496
496
  internalNotes: r
497
497
  });
498
498
  else {
499
- if (!l) return;
500
- await ne(t.id, {
501
- interviewerId: l,
499
+ if (!c) return;
500
+ await re(t.id, {
501
+ interviewerId: c,
502
502
  rating: e,
503
503
  verdict: n,
504
504
  internalNotes: r
505
505
  });
506
506
  }
507
- q(), o(!1);
507
+ Te(), a(!1);
508
508
  },
509
- disabled: !s && !l,
510
- children: s ? "Update Feedback" : "Submit Feedback"
509
+ disabled: !o && !c,
510
+ children: o ? "Update Feedback" : "Submit Feedback"
511
511
  })]
512
512
  })
513
513
  ]
@@ -517,23 +517,23 @@ function qe({ round: t, applicationId: n, interviewers: r, interviewersLoading:
517
517
  ]
518
518
  });
519
519
  }
520
- function Je({ applicationId: e, jobPostingId: a }) {
521
- let { data: ee, loading: te, error: re } = i({ variables: { applicationId: e } }), { data: ie, loading: oe } = ne({
522
- variables: { id: a ?? "" },
523
- skip: !a
524
- }), { data: se, loading: l } = r({ variables: { limit: 200 } }), [ce, { loading: p }] = n({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [le, { loading: m }] = t({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [ue] = ae({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [de, { loading: fe }] = o({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [pe] = s({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [h] = c({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), me = ee?.jobApplicationInterviewRounds ?? [], _ = se?.interviewers.items ?? [], he = ie?.jobPosting?.rounds ?? [], [ge, O] = k(!1), [j, M] = k(Z), [N, P] = k({
520
+ function Je({ applicationId: e, jobPostingId: ee }) {
521
+ let { data: te, loading: ne, error: ie } = i({ variables: { applicationId: e } }), { data: ae, loading: se } = re({
522
+ variables: { id: ee ?? "" },
523
+ skip: !ee
524
+ }), { data: ce, loading: c } = r({ variables: { limit: 200 } }), [le, { loading: f }] = n({ refetchQueries: ["GetJobApplicationInterviewRounds", "GetJobApplication"] }), [ue, { loading: p }] = t({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [de] = oe({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [fe, { loading: pe }] = a({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [me] = o({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), [m] = s({ refetchQueries: ["GetJobApplicationInterviewRounds"] }), he = te?.jobApplicationInterviewRounds ?? [], g = ce?.interviewers.items ?? [], ge = ae?.jobPosting?.rounds ?? [], [_e, k] = A(!1), [j, M] = A(Z), [N, P] = A({
525
525
  name: "",
526
- roundType: d.PhoneScreen,
527
- status: u.Scheduled,
526
+ roundType: u.PhoneScreen,
527
+ status: l.Scheduled,
528
528
  scheduledAt: ""
529
- }), [xe, F] = k(null), [I, L] = k([]), [Se, R] = k(f.Panel), [z, B] = k(null), [V, H] = k(""), [U, W] = k(null), Ce = he.filter((e) => !me.some((t) => t.roundConfigId === e.id)), K = () => {
529
+ }), [F, I] = A(null), [L, xe] = A([]), [Se, R] = A(d.Panel), [z, B] = A(null), [V, H] = A(""), [Ce, U] = A(null), W = ge.filter((e) => !he.some((t) => t.roundConfigId === e.id)), G = () => {
530
530
  M(Z), P({
531
531
  name: "",
532
- roundType: d.PhoneScreen,
533
- status: u.Scheduled,
532
+ roundType: u.PhoneScreen,
533
+ status: l.Scheduled,
534
534
  scheduledAt: ""
535
535
  });
536
- }, we = (e) => {
536
+ }, K = (e) => {
537
537
  if (M(e), e === Z) {
538
538
  P((e) => ({
539
539
  ...e,
@@ -541,92 +541,92 @@ function Je({ applicationId: e, jobPostingId: a }) {
541
541
  }));
542
542
  return;
543
543
  }
544
- let t = he.find((t) => t.id === e);
544
+ let t = ge.find((t) => t.id === e);
545
545
  t && P((e) => ({
546
546
  ...e,
547
547
  name: t.name,
548
548
  roundType: t.roundType
549
549
  }));
550
- }, Te = () => {
551
- let e = Ce[0];
550
+ }, we = () => {
551
+ let e = W[0];
552
552
  e ? (M(e.id), P({
553
553
  name: e.name,
554
554
  roundType: e.roundType,
555
- status: u.Scheduled,
555
+ status: l.Scheduled,
556
556
  scheduledAt: ""
557
- })) : K(), O(!0);
558
- }, Ee = async () => {
557
+ })) : G(), k(!0);
558
+ }, Te = async () => {
559
559
  if (N.name.trim()) {
560
- W(null);
560
+ U(null);
561
561
  try {
562
- await ce({ variables: { input: {
562
+ await le({ variables: { input: {
563
563
  applicationId: e,
564
564
  roundConfigId: j === Z ? void 0 : j,
565
565
  name: N.name.trim(),
566
566
  roundType: N.roundType,
567
567
  status: N.status,
568
568
  scheduledAt: N.scheduledAt || void 0
569
- } } }), K(), O(!1);
569
+ } } }), G(), k(!1);
570
570
  } catch (e) {
571
- console.error("Failed to create interview round:", e), W("Failed to create interview round.");
571
+ console.error("Failed to create interview round:", e), U("Failed to create interview round.");
572
572
  }
573
573
  }
574
- }, Oe = async () => {
575
- if (xe && I.length !== 0) {
576
- W(null);
574
+ }, Ee = async () => {
575
+ if (F && L.length !== 0) {
576
+ U(null);
577
577
  try {
578
- await le({ variables: { input: {
579
- roundId: xe,
580
- assignments: I.map((e) => ({
578
+ await ue({ variables: { input: {
579
+ roundId: F,
580
+ assignments: L.map((e) => ({
581
581
  interviewerId: e,
582
582
  role: Se
583
583
  }))
584
- } } }), L([]), R(f.Panel), F(null);
584
+ } } }), xe([]), R(d.Panel), I(null);
585
585
  } catch (e) {
586
- console.error("Failed to assign interviewers:", e), W("Failed to assign interviewers.");
586
+ console.error("Failed to assign interviewers:", e), U("Failed to assign interviewers.");
587
587
  }
588
588
  }
589
- }, ke = async (e, t) => {
590
- W(null);
589
+ }, De = async (e, t) => {
590
+ U(null);
591
591
  try {
592
- await ue({ variables: {
592
+ await de({ variables: {
593
593
  roundId: e,
594
594
  interviewerId: t
595
595
  } });
596
596
  } catch (e) {
597
- console.error("Failed to remove interviewer:", e), W("Failed to remove interviewer.");
597
+ console.error("Failed to remove interviewer:", e), U("Failed to remove interviewer.");
598
598
  }
599
- }, q = async () => {
599
+ }, Oe = async () => {
600
600
  if (z && V.trim()) {
601
- W(null);
601
+ U(null);
602
602
  try {
603
- await de({ variables: { input: {
603
+ await fe({ variables: { input: {
604
604
  roundId: z,
605
605
  message: V.trim()
606
606
  } } }), H(""), B(null);
607
607
  } catch (e) {
608
- console.error("Failed to send candidate message:", e), W("Failed to send candidate message.");
608
+ console.error("Failed to send candidate message:", e), U("Failed to send candidate message.");
609
609
  }
610
610
  }
611
- }, Ae = async (e, t) => {
612
- W(null);
611
+ }, ke = async (e, t) => {
612
+ U(null);
613
613
  try {
614
- await pe({ variables: { input: {
614
+ await me({ variables: { input: {
615
615
  roundId: e,
616
616
  ...t
617
617
  } } });
618
618
  } catch (e) {
619
- throw console.error("Failed to submit feedback:", e), W("Failed to submit feedback."), e;
619
+ throw console.error("Failed to submit feedback:", e), U("Failed to submit feedback."), e;
620
620
  }
621
621
  }, je = async (e, t) => {
622
- W(null);
622
+ U(null);
623
623
  try {
624
- await h({ variables: {
624
+ await m({ variables: {
625
625
  id: e,
626
626
  input: t
627
627
  } });
628
628
  } catch (e) {
629
- throw console.error("Failed to update feedback:", e), W("Failed to update feedback."), e;
629
+ throw console.error("Failed to update feedback:", e), U("Failed to update feedback."), e;
630
630
  }
631
631
  };
632
632
  return /* @__PURE__ */ X("div", {
@@ -637,73 +637,73 @@ function Je({ applicationId: e, jobPostingId: a }) {
637
637
  children: [/* @__PURE__ */ X("h2", {
638
638
  className: "text-xs font-semibold text-text-secondary uppercase tracking-wider flex items-center gap-2",
639
639
  children: [/* @__PURE__ */ Y(J, { size: 14 }), "Interview Rounds"]
640
- }), /* @__PURE__ */ X(g, {
640
+ }), /* @__PURE__ */ X(h, {
641
641
  size: "sm",
642
- onClick: Te,
643
- children: [/* @__PURE__ */ Y(De, { size: 14 }), "Add Round"]
642
+ onClick: we,
643
+ children: [/* @__PURE__ */ Y(Ae, { size: 14 }), "Add Round"]
644
644
  })]
645
645
  }),
646
646
  /* @__PURE__ */ X("div", {
647
647
  className: "p-5",
648
- children: [U && /* @__PURE__ */ X("div", {
648
+ children: [Ce && /* @__PURE__ */ X("div", {
649
649
  className: "mb-4 p-3 rounded-lg bg-status-error-bg-subtle border border-border-subtle text-sm text-status-error-text flex items-center gap-2",
650
- children: [/* @__PURE__ */ Y(A, { size: 16 }), U]
651
- }), te ? /* @__PURE__ */ X("div", {
650
+ children: [/* @__PURE__ */ Y(be, { size: 16 }), Ce]
651
+ }), ne ? /* @__PURE__ */ X("div", {
652
652
  className: "flex items-center gap-2 text-sm text-text-secondary py-4",
653
- children: [/* @__PURE__ */ Y(G, {
653
+ children: [/* @__PURE__ */ Y(q, {
654
654
  size: 16,
655
655
  className: "animate-spin"
656
656
  }), "Loading interview rounds…"]
657
- }) : re ? /* @__PURE__ */ X("div", {
657
+ }) : ie ? /* @__PURE__ */ X("div", {
658
658
  className: "p-3 rounded-lg bg-status-error-bg-subtle text-status-error-text text-sm flex items-center gap-2",
659
- children: [/* @__PURE__ */ Y(A, { size: 16 }), "Could not load interview rounds."]
660
- }) : me.length === 0 ? /* @__PURE__ */ Y("p", {
659
+ children: [/* @__PURE__ */ Y(be, { size: 16 }), "Could not load interview rounds."]
660
+ }) : he.length === 0 ? /* @__PURE__ */ Y("p", {
661
661
  className: "text-sm text-text-secondary",
662
662
  children: "No interview rounds yet."
663
663
  }) : /* @__PURE__ */ Y("div", {
664
664
  className: "space-y-5",
665
- children: me.map((t) => /* @__PURE__ */ Y(qe, {
665
+ children: he.map((t) => /* @__PURE__ */ Y(qe, {
666
666
  round: t,
667
667
  applicationId: e,
668
- interviewers: _,
669
- interviewersLoading: l,
668
+ interviewers: g,
669
+ interviewersLoading: c,
670
670
  onAssign: () => {
671
- F(t.id), L([]), R(f.Panel);
671
+ I(t.id), xe([]), R(d.Panel);
672
672
  },
673
- onRemoveInterviewer: ke,
673
+ onRemoveInterviewer: De,
674
674
  onSendMessage: () => {
675
675
  B(t.id), H("");
676
676
  },
677
- onSubmitFeedback: Ae,
677
+ onSubmitFeedback: ke,
678
678
  onUpdateFeedback: je
679
679
  }, t.id))
680
680
  })]
681
681
  }),
682
- /* @__PURE__ */ Y(v, {
683
- open: ge,
682
+ /* @__PURE__ */ Y(_, {
683
+ open: _e,
684
684
  onOpenChange: (e) => {
685
- O(e), e || K();
685
+ k(e), e || G();
686
686
  },
687
- children: /* @__PURE__ */ X(_e, {
687
+ children: /* @__PURE__ */ X(v, {
688
688
  className: "sm:max-w-md",
689
689
  children: [
690
- /* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(ye, { children: "Add Interview Round" }), /* @__PURE__ */ Y(y, { children: "Schedule a new round for this candidate." })] }),
690
+ /* @__PURE__ */ X(x, { children: [/* @__PURE__ */ Y(ve, { children: "Add Interview Round" }), /* @__PURE__ */ Y(y, { children: "Schedule a new round for this candidate." })] }),
691
691
  /* @__PURE__ */ X("div", {
692
692
  className: "space-y-4 py-2",
693
693
  children: [
694
- a && /* @__PURE__ */ X("div", { children: [
695
- /* @__PURE__ */ Y(S, {
694
+ ee && /* @__PURE__ */ X("div", { children: [
695
+ /* @__PURE__ */ Y(C, {
696
696
  htmlFor: "round-config",
697
697
  children: "Posting round"
698
698
  }),
699
- /* @__PURE__ */ X(C, {
699
+ /* @__PURE__ */ X(w, {
700
700
  value: j,
701
- onValueChange: we,
702
- disabled: oe,
703
- children: [/* @__PURE__ */ Y(E, {
701
+ onValueChange: K,
702
+ disabled: se,
703
+ children: [/* @__PURE__ */ Y(D, {
704
704
  id: "round-config",
705
- children: /* @__PURE__ */ Y(D, { placeholder: "Select a configured round" })
706
- }), /* @__PURE__ */ X(w, { children: [Ce.map((e) => /* @__PURE__ */ X(T, {
705
+ children: /* @__PURE__ */ Y(O, { placeholder: "Select a configured round" })
706
+ }), /* @__PURE__ */ X(T, { children: [W.map((e) => /* @__PURE__ */ X(E, {
707
707
  value: e.id,
708
708
  children: [
709
709
  "Round ",
@@ -711,7 +711,7 @@ function Je({ applicationId: e, jobPostingId: a }) {
711
711
  " — ",
712
712
  e.name
713
713
  ]
714
- }, e.id)), /* @__PURE__ */ Y(T, {
714
+ }, e.id)), /* @__PURE__ */ Y(E, {
715
715
  value: Z,
716
716
  children: "Custom round"
717
717
  })] })]
@@ -721,10 +721,10 @@ function Je({ applicationId: e, jobPostingId: a }) {
721
721
  children: "Configured rounds stay linked to posting-level bulk actions."
722
722
  })
723
723
  ] }),
724
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
724
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
725
725
  htmlFor: "round-name",
726
726
  children: "Name"
727
- }), /* @__PURE__ */ Y(x, {
727
+ }), /* @__PURE__ */ Y(S, {
728
728
  id: "round-name",
729
729
  value: N.name,
730
730
  onChange: (e) => P((t) => ({
@@ -734,45 +734,45 @@ function Je({ applicationId: e, jobPostingId: a }) {
734
734
  placeholder: "e.g. Technical Interview",
735
735
  disabled: j !== Z
736
736
  })] }),
737
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
737
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
738
738
  htmlFor: "round-type",
739
739
  children: "Round Type"
740
- }), /* @__PURE__ */ X(C, {
740
+ }), /* @__PURE__ */ X(w, {
741
741
  value: N.roundType,
742
742
  onValueChange: (e) => P((t) => ({
743
743
  ...t,
744
744
  roundType: e
745
745
  })),
746
746
  disabled: j !== Z,
747
- children: [/* @__PURE__ */ Y(E, {
747
+ children: [/* @__PURE__ */ Y(D, {
748
748
  id: "round-type",
749
- children: /* @__PURE__ */ Y(D, {})
750
- }), /* @__PURE__ */ Y(w, { children: Object.values(d).map((e) => /* @__PURE__ */ Y(T, {
749
+ children: /* @__PURE__ */ Y(O, {})
750
+ }), /* @__PURE__ */ Y(T, { children: Object.values(u).map((e) => /* @__PURE__ */ Y(E, {
751
751
  value: e,
752
752
  children: $(e)
753
753
  }, e)) })]
754
754
  })] }),
755
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
755
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
756
756
  htmlFor: "round-status",
757
757
  children: "Status"
758
- }), /* @__PURE__ */ X(C, {
758
+ }), /* @__PURE__ */ X(w, {
759
759
  value: N.status,
760
760
  onValueChange: (e) => P((t) => ({
761
761
  ...t,
762
762
  status: e
763
763
  })),
764
- children: [/* @__PURE__ */ Y(E, {
764
+ children: [/* @__PURE__ */ Y(D, {
765
765
  id: "round-status",
766
- children: /* @__PURE__ */ Y(D, {})
767
- }), /* @__PURE__ */ Y(w, { children: Object.values(u).map((e) => /* @__PURE__ */ Y(T, {
766
+ children: /* @__PURE__ */ Y(O, {})
767
+ }), /* @__PURE__ */ Y(T, { children: Object.values(l).map((e) => /* @__PURE__ */ Y(E, {
768
768
  value: e,
769
769
  children: $(e)
770
770
  }, e)) })]
771
771
  })] }),
772
- /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
772
+ /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
773
773
  htmlFor: "round-scheduled",
774
774
  children: "Scheduled At"
775
- }), /* @__PURE__ */ Y(x, {
775
+ }), /* @__PURE__ */ Y(S, {
776
776
  id: "round-scheduled",
777
777
  type: "datetime-local",
778
778
  value: N.scheduledAt,
@@ -783,16 +783,16 @@ function Je({ applicationId: e, jobPostingId: a }) {
783
783
  })] })
784
784
  ]
785
785
  }),
786
- /* @__PURE__ */ X(ve, { children: [/* @__PURE__ */ Y(g, {
786
+ /* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(h, {
787
787
  variant: "outline",
788
788
  onClick: () => {
789
- O(!1), K();
789
+ k(!1), G();
790
790
  },
791
791
  children: "Cancel"
792
- }), /* @__PURE__ */ X(g, {
793
- onClick: Ee,
794
- disabled: p || !N.name.trim(),
795
- children: [p ? /* @__PURE__ */ Y(G, {
792
+ }), /* @__PURE__ */ X(h, {
793
+ onClick: Te,
794
+ disabled: f || !N.name.trim(),
795
+ children: [f ? /* @__PURE__ */ Y(q, {
796
796
  size: 14,
797
797
  className: "animate-spin mr-1"
798
798
  }) : null, "Create Round"]
@@ -800,47 +800,47 @@ function Je({ applicationId: e, jobPostingId: a }) {
800
800
  ]
801
801
  })
802
802
  }),
803
- /* @__PURE__ */ Y(v, {
804
- open: !!xe,
805
- onOpenChange: (e) => !e && F(null),
806
- children: /* @__PURE__ */ X(_e, {
803
+ /* @__PURE__ */ Y(_, {
804
+ open: !!F,
805
+ onOpenChange: (e) => !e && I(null),
806
+ children: /* @__PURE__ */ X(v, {
807
807
  className: "sm:max-w-md",
808
808
  children: [
809
- /* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(ye, { children: "Assign Interviewers" }), /* @__PURE__ */ Y(y, { children: "Choose interviewers and a role for this round." })] }),
809
+ /* @__PURE__ */ X(x, { children: [/* @__PURE__ */ Y(ve, { children: "Assign Interviewers" }), /* @__PURE__ */ Y(y, { children: "Choose interviewers and a role for this round." })] }),
810
810
  /* @__PURE__ */ X("div", {
811
811
  className: "space-y-4 py-2",
812
- children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, {
812
+ children: [/* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, {
813
813
  htmlFor: "assign-role",
814
814
  children: "Role"
815
- }), /* @__PURE__ */ X(C, {
815
+ }), /* @__PURE__ */ X(w, {
816
816
  value: Se,
817
817
  onValueChange: (e) => R(e),
818
- children: [/* @__PURE__ */ Y(E, {
818
+ children: [/* @__PURE__ */ Y(D, {
819
819
  id: "assign-role",
820
- children: /* @__PURE__ */ Y(D, {})
821
- }), /* @__PURE__ */ Y(w, { children: Object.values(f).map((e) => /* @__PURE__ */ Y(T, {
820
+ children: /* @__PURE__ */ Y(O, {})
821
+ }), /* @__PURE__ */ Y(T, { children: Object.values(d).map((e) => /* @__PURE__ */ Y(E, {
822
822
  value: e,
823
823
  children: $(e)
824
824
  }, e)) })]
825
- })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(S, { children: "Interviewers" }), /* @__PURE__ */ Y("div", {
825
+ })] }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y(C, { children: "Interviewers" }), /* @__PURE__ */ Y("div", {
826
826
  className: "mt-1.5 max-h-60 overflow-y-auto border border-border-default rounded-lg p-2 space-y-1",
827
- children: l ? /* @__PURE__ */ X("div", {
827
+ children: c ? /* @__PURE__ */ X("div", {
828
828
  className: "flex items-center gap-2 text-sm text-text-secondary py-2",
829
- children: [/* @__PURE__ */ Y(G, {
829
+ children: [/* @__PURE__ */ Y(q, {
830
830
  size: 14,
831
831
  className: "animate-spin"
832
832
  }), "Loading…"]
833
- }) : _.length === 0 ? /* @__PURE__ */ Y("p", {
833
+ }) : g.length === 0 ? /* @__PURE__ */ Y("p", {
834
834
  className: "text-sm text-text-secondary py-2",
835
835
  children: "No interviewers found."
836
- }) : _.map((e) => /* @__PURE__ */ X("label", {
836
+ }) : g.map((e) => /* @__PURE__ */ X("label", {
837
837
  className: "flex items-start gap-2 p-2 rounded-md hover:bg-bg-muted cursor-pointer",
838
838
  children: [/* @__PURE__ */ Y("input", {
839
839
  type: "checkbox",
840
840
  className: "mt-1",
841
- checked: I.includes(e.id),
841
+ checked: L.includes(e.id),
842
842
  onChange: (t) => {
843
- L((n) => t.target.checked ? [...n, e.id] : n.filter((t) => t !== e.id));
843
+ xe((n) => t.target.checked ? [...n, e.id] : n.filter((t) => t !== e.id));
844
844
  }
845
845
  }), /* @__PURE__ */ X("div", {
846
846
  className: "text-sm",
@@ -855,14 +855,14 @@ function Je({ applicationId: e, jobPostingId: a }) {
855
855
  }, e.id))
856
856
  })] })]
857
857
  }),
858
- /* @__PURE__ */ X(ve, { children: [/* @__PURE__ */ Y(g, {
858
+ /* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(h, {
859
859
  variant: "outline",
860
- onClick: () => F(null),
860
+ onClick: () => I(null),
861
861
  children: "Cancel"
862
- }), /* @__PURE__ */ X(g, {
863
- onClick: Oe,
864
- disabled: m || I.length === 0,
865
- children: [m ? /* @__PURE__ */ Y(G, {
862
+ }), /* @__PURE__ */ X(h, {
863
+ onClick: Ee,
864
+ disabled: p || L.length === 0,
865
+ children: [p ? /* @__PURE__ */ Y(q, {
866
866
  size: 14,
867
867
  className: "animate-spin mr-1"
868
868
  }) : null, "Assign"]
@@ -870,30 +870,30 @@ function Je({ applicationId: e, jobPostingId: a }) {
870
870
  ]
871
871
  })
872
872
  }),
873
- /* @__PURE__ */ Y(v, {
873
+ /* @__PURE__ */ Y(_, {
874
874
  open: !!z,
875
875
  onOpenChange: (e) => !e && B(null),
876
- children: /* @__PURE__ */ X(_e, {
876
+ children: /* @__PURE__ */ X(v, {
877
877
  className: "sm:max-w-md",
878
878
  children: [
879
- /* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(ye, { children: "Send Candidate Message" }), /* @__PURE__ */ Y(y, { children: "This message will be emailed to the candidate for this round." })] }),
879
+ /* @__PURE__ */ X(x, { children: [/* @__PURE__ */ Y(ve, { children: "Send Candidate Message" }), /* @__PURE__ */ Y(y, { children: "This message will be emailed to the candidate for this round." })] }),
880
880
  /* @__PURE__ */ Y("div", {
881
881
  className: "py-2",
882
- children: /* @__PURE__ */ Y(be, {
882
+ children: /* @__PURE__ */ Y(ye, {
883
883
  value: V,
884
884
  onChange: (e) => H(e.target.value),
885
885
  placeholder: "Type the message to send…",
886
886
  rows: 5
887
887
  })
888
888
  }),
889
- /* @__PURE__ */ X(ve, { children: [/* @__PURE__ */ Y(g, {
889
+ /* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(h, {
890
890
  variant: "outline",
891
891
  onClick: () => B(null),
892
892
  children: "Cancel"
893
- }), /* @__PURE__ */ X(g, {
894
- onClick: q,
895
- disabled: fe || !V.trim(),
896
- children: [fe ? /* @__PURE__ */ Y(G, {
893
+ }), /* @__PURE__ */ X(h, {
894
+ onClick: Oe,
895
+ disabled: pe || !V.trim(),
896
+ children: [pe ? /* @__PURE__ */ Y(q, {
897
897
  size: 14,
898
898
  className: "animate-spin mr-1"
899
899
  }) : null, "Send Message"]
@@ -905,77 +905,77 @@ function Je({ applicationId: e, jobPostingId: a }) {
905
905
  });
906
906
  }
907
907
  function Ye() {
908
- let { id: e } = Fe(), t = Pe(), n = Ne().search, [r, i] = k(!1), [ne, re] = k(!1), [ie, ae] = k(!1), [o, s] = k(!1), [c, se] = k(""), [u, d] = k(!1), [ce, f] = k(null), { data: m, loading: ue, error: h } = a({
908
+ let { id: e } = ze(), t = Re(), n = Le().search, [r, i] = A(!1), [re, ie] = A(!1), [ae, oe] = A(!1), [a, o] = A(!1), [s, ce] = A(""), [l, u] = A(!1), [le, d] = A(null), { data: p, loading: de, error: m } = ee({
909
909
  variables: { id: e },
910
910
  skip: !e
911
- }), g = m?.jobApplication?.productId ?? null;
912
- O(() => {
913
- if (!g) {
914
- f(null);
911
+ }), h = p?.jobApplication?.productId ?? null;
912
+ k(() => {
913
+ if (!h) {
914
+ d(null);
915
915
  return;
916
916
  }
917
917
  let e = !1;
918
- return Ie({
918
+ return Be({
919
919
  gateway: "global",
920
920
  query: "query($id: ID!) { platformProduct(id: $id) { name } }",
921
- variables: { id: g }
921
+ variables: { id: h }
922
922
  }).then((t) => {
923
923
  if (e) return;
924
924
  let n = t.data?.platformProduct?.name;
925
- n && f(n);
925
+ n && d(n);
926
926
  }).catch(() => {}), () => {
927
927
  e = !0;
928
928
  };
929
- }, [g]);
930
- let [me, { loading: _ }] = l({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [he, { loading: ge }] = te({ fetchPolicy: "no-cache" }), [ve, x] = k(!1), [S, C] = k(null), [w, T] = k(!1), [E, { loading: D }] = ee({ fetchPolicy: "no-cache" }), [be, { loading: R }] = oe(), U = m?.jobApplication, we = async () => {
931
- if (c.trim() && e) try {
932
- (await be({ variables: {
929
+ }, [h]);
930
+ let [he, { loading: g }] = c({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [ge, { loading: _e }] = ne({ fetchPolicy: "no-cache" }), [b, S] = A(!1), [C, w] = A(null), [T, E] = A(!1), [D, { loading: O }] = te({ fetchPolicy: "no-cache" }), [ye, { loading: H }] = se(), K = p?.jobApplication, De = async () => {
931
+ if (s.trim() && e) try {
932
+ (await ye({ variables: {
933
933
  id: e,
934
- message: c.trim()
935
- } })).data?.replyToJobApplication.success && (d(!0), se(""), setTimeout(() => d(!1), 3e3));
934
+ message: s.trim()
935
+ } })).data?.replyToJobApplication.success && (u(!0), ce(""), setTimeout(() => u(!1), 3e3));
936
936
  } catch (e) {
937
937
  console.error("Failed to send reply:", e);
938
938
  }
939
- }, De = async (t) => {
939
+ }, Ae = async (t) => {
940
940
  if (e) {
941
- re(!1);
941
+ ie(!1);
942
942
  try {
943
- await me({ variables: {
943
+ await he({ variables: {
944
944
  id: e,
945
945
  input: { status: t }
946
946
  } }), i(!0), setTimeout(() => i(!1), 3e3);
947
947
  } catch (e) {
948
- console.error("Failed to update status:", e), re(!0), setTimeout(() => re(!1), 4e3);
948
+ console.error("Failed to update status:", e), ie(!0), setTimeout(() => ie(!1), 4e3);
949
949
  }
950
950
  }
951
- }, ke = async () => {
951
+ }, Me = async () => {
952
952
  if (e) {
953
- s(!1);
953
+ o(!1);
954
954
  try {
955
- let t = (await he({ variables: { id: e } })).data?.jobApplicationResumeUrl;
956
- t ? window.open(t, "_blank", "noopener,noreferrer") : s(!0);
955
+ let t = (await ge({ variables: { id: e } })).data?.jobApplicationResumeUrl;
956
+ t ? window.open(t, "_blank", "noopener,noreferrer") : o(!0);
957
957
  } catch (e) {
958
- console.error("Failed to get resume URL:", e), s(!0);
958
+ console.error("Failed to get resume URL:", e), o(!0);
959
959
  }
960
960
  }
961
- }, Ae = async () => {
961
+ }, Pe = async () => {
962
962
  if (e) {
963
- T(!1), C(null), x(!0);
963
+ E(!1), w(null), S(!0);
964
964
  try {
965
- let t = (await E({ variables: { id: e } })).data?.jobApplicationResumePreviewUrl;
966
- t ? C(t) : T(!0);
965
+ let t = (await D({ variables: { id: e } })).data?.jobApplicationResumePreviewUrl;
966
+ t ? w(t) : E(!0);
967
967
  } catch (e) {
968
- console.error("Failed to get resume preview URL:", e), T(!0);
968
+ console.error("Failed to get resume preview URL:", e), E(!0);
969
969
  }
970
970
  }
971
- }, je = async () => {
972
- U?.email && (le("light"), await p(U.email), ae(!0), setTimeout(() => ae(!1), 2e3));
971
+ }, Fe = async () => {
972
+ K?.email && (ue("light"), await f(K.email), oe(!0), setTimeout(() => oe(!1), 2e3));
973
973
  };
974
- if (ue) return /* @__PURE__ */ Y("div", {
974
+ if (de) return /* @__PURE__ */ Y("div", {
975
975
  className: "min-h-full flex items-center justify-center py-20",
976
976
  children: /* @__PURE__ */ X("div", {
977
977
  className: "text-center",
978
- children: [/* @__PURE__ */ Y(G, {
978
+ children: [/* @__PURE__ */ Y(q, {
979
979
  size: 36,
980
980
  className: "animate-spin text-[var(--color-text-secondary)] mx-auto mb-3"
981
981
  }), /* @__PURE__ */ Y("p", {
@@ -984,21 +984,21 @@ function Ye() {
984
984
  })]
985
985
  })
986
986
  });
987
- if (h || !U) return /* @__PURE__ */ Y("div", {
987
+ if (m || !K) return /* @__PURE__ */ Y("div", {
988
988
  className: "p-6",
989
- children: /* @__PURE__ */ Y(ze, {
989
+ children: /* @__PURE__ */ Y(M, {
990
990
  illustration: "empty-search",
991
991
  title: "Application not found",
992
- description: h?.message || "This application may have been deleted or you don't have access.",
992
+ description: m?.message || "This application may have been deleted or you don't have access.",
993
993
  action: /* @__PURE__ */ X("button", {
994
994
  type: "button",
995
995
  onClick: () => t(`/support/applications${n}`),
996
996
  className: "inline-flex items-center gap-2 px-5 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all",
997
- children: [/* @__PURE__ */ Y(M, { size: 16 }), "Back to Applications"]
997
+ children: [/* @__PURE__ */ Y(I, { size: 16 }), "Back to Applications"]
998
998
  })
999
999
  })
1000
1000
  });
1001
- let J = He[U.status] || He.NEW, Me = J.icon, Z = `${U.firstName} ${U.lastName}`.trim(), $ = We(U.resumeFileSize), Ge = Ke(U.linkedinUrl), qe = Ke(U.portfolioUrl);
1001
+ let J = He[K.status] || He.NEW, Ie = J.icon, Z = `${K.firstName} ${K.lastName}`.trim(), $ = We(K.resumeFileSize), Ge = Ke(K.linkedinUrl), qe = Ke(K.portfolioUrl);
1002
1002
  return /* @__PURE__ */ X("div", {
1003
1003
  className: "p-6 animate-in fade-in duration-200",
1004
1004
  children: [
@@ -1008,37 +1008,37 @@ function Ye() {
1008
1008
  type: "button",
1009
1009
  onClick: () => t(`/support/applications${n}`),
1010
1010
  className: "inline-flex items-center gap-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
1011
- children: [/* @__PURE__ */ Y(M, { size: 18 }), /* @__PURE__ */ Y("span", {
1011
+ children: [/* @__PURE__ */ Y(I, { size: 18 }), /* @__PURE__ */ Y("span", {
1012
1012
  className: "text-sm font-medium",
1013
1013
  children: "Back to Applications"
1014
1014
  })]
1015
1015
  }), /* @__PURE__ */ X("div", {
1016
1016
  className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
1017
- children: [/* @__PURE__ */ Y(I, { size: 12 }), Ue(U.createdAt)]
1017
+ children: [/* @__PURE__ */ Y(z, { size: 12 }), Ue(K.createdAt)]
1018
1018
  })]
1019
1019
  }),
1020
1020
  r && /* @__PURE__ */ X("div", {
1021
1021
  className: "mb-5 p-3.5 bg-status-success-bg-subtle border border-border-subtle rounded-xl flex items-center gap-2.5 text-status-success-text text-sm font-medium animate-in slide-in-from-top-2 duration-200",
1022
- children: [/* @__PURE__ */ Y(F, { size: 18 }), "Status updated successfully"]
1022
+ children: [/* @__PURE__ */ Y(R, { size: 18 }), "Status updated successfully"]
1023
1023
  }),
1024
- ne && /* @__PURE__ */ X("div", {
1024
+ re && /* @__PURE__ */ X("div", {
1025
1025
  className: "mb-5 p-3.5 bg-status-error-bg-subtle border border-border-subtle rounded-xl flex items-center gap-2.5 text-status-error-text text-sm font-medium animate-in slide-in-from-top-2 duration-200",
1026
- children: [/* @__PURE__ */ Y(A, { size: 18 }), "Couldn't update the status. Please try again."]
1026
+ children: [/* @__PURE__ */ Y(be, { size: 18 }), "Couldn't update the status. Please try again."]
1027
1027
  }),
1028
- /* @__PURE__ */ Y(Ve, {
1028
+ /* @__PURE__ */ Y(P, {
1029
1029
  className: "mb-6",
1030
1030
  children: "A single candidate's full application — contact details, resume, cover letter and links. Review their background, download the resume, and move them through your hiring pipeline from new to screening, interview, hire or rejection. Reply by branded email to keep the candidate informed at every stage."
1031
1031
  }),
1032
- /* @__PURE__ */ Y(Be, {
1032
+ /* @__PURE__ */ Y(N, {
1033
1033
  storageKey: "support-application-detail",
1034
1034
  title: "Move this candidate forward",
1035
1035
  className: "mb-6",
1036
1036
  steps: [
1037
- ...U.resumeFileName ? [{
1037
+ ...K.resumeFileName ? [{
1038
1038
  id: "resume",
1039
1039
  label: "Review the resume",
1040
1040
  description: "Download and read the candidate's resume.",
1041
- onClick: () => void ke()
1041
+ onClick: () => void Me()
1042
1042
  }] : [],
1043
1043
  {
1044
1044
  id: "advance",
@@ -1068,7 +1068,7 @@ function Ye() {
1068
1068
  className: "flex items-start gap-4",
1069
1069
  children: [/* @__PURE__ */ Y("div", {
1070
1070
  className: "size-12 rounded-xl bg-bg-surface/80 dark:bg-bg-surface/10 flex items-center justify-center shadow-sm",
1071
- children: /* @__PURE__ */ Y(Me, {
1071
+ children: /* @__PURE__ */ Y(Ie, {
1072
1072
  size: 24,
1073
1073
  className: J.color
1074
1074
  })
@@ -1082,7 +1082,7 @@ function Ye() {
1082
1082
  className: "flex items-center gap-3 text-sm flex-wrap",
1083
1083
  children: [/* @__PURE__ */ X("span", {
1084
1084
  className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${J.color} bg-bg-surface/60 dark:bg-bg-surface/10`,
1085
- children: [/* @__PURE__ */ Y(Me, { size: 12 }), J.label]
1085
+ children: [/* @__PURE__ */ Y(Ie, { size: 12 }), J.label]
1086
1086
  }), /* @__PURE__ */ X("span", {
1087
1087
  className: "text-[var(--color-text-secondary)]",
1088
1088
  children: [
@@ -1090,7 +1090,7 @@ function Ye() {
1090
1090
  " ",
1091
1091
  /* @__PURE__ */ Y("strong", {
1092
1092
  className: "text-[var(--color-text-primary)]",
1093
- children: U.position
1093
+ children: K.position
1094
1094
  })
1095
1095
  ]
1096
1096
  })]
@@ -1109,7 +1109,7 @@ function Ye() {
1109
1109
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1110
1110
  children: /* @__PURE__ */ X("h2", {
1111
1111
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1112
- children: [/* @__PURE__ */ Y(q, { size: 14 }), "Applicant Information"]
1112
+ children: [/* @__PURE__ */ Y(Ne, { size: 14 }), "Applicant Information"]
1113
1113
  })
1114
1114
  }), /* @__PURE__ */ Y("div", {
1115
1115
  className: "p-5",
@@ -1120,7 +1120,7 @@ function Ye() {
1120
1120
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1121
1121
  children: [/* @__PURE__ */ Y("div", {
1122
1122
  className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
1123
- children: /* @__PURE__ */ Y(q, {
1123
+ children: /* @__PURE__ */ Y(Ne, {
1124
1124
  size: 16,
1125
1125
  className: "text-accent-blue"
1126
1126
  })
@@ -1136,7 +1136,7 @@ function Ye() {
1136
1136
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1137
1137
  children: [/* @__PURE__ */ Y("div", {
1138
1138
  className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
1139
- children: /* @__PURE__ */ Y(K, {
1139
+ children: /* @__PURE__ */ Y(Ee, {
1140
1140
  size: 16,
1141
1141
  className: "text-accent-indigo"
1142
1142
  })
@@ -1148,18 +1148,18 @@ function Ye() {
1148
1148
  }), /* @__PURE__ */ X("div", {
1149
1149
  className: "flex items-center gap-1.5",
1150
1150
  children: [/* @__PURE__ */ Y("a", {
1151
- href: `mailto:${U.email}`,
1151
+ href: `mailto:${K.email}`,
1152
1152
  className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate",
1153
- children: U.email
1153
+ children: K.email
1154
1154
  }), /* @__PURE__ */ Y("button", {
1155
1155
  type: "button",
1156
- onClick: je,
1156
+ onClick: Fe,
1157
1157
  className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
1158
1158
  title: "Copy email",
1159
- children: ie ? /* @__PURE__ */ Y(F, {
1159
+ children: ae ? /* @__PURE__ */ Y(R, {
1160
1160
  size: 12,
1161
1161
  className: "text-status-success-text"
1162
- }) : /* @__PURE__ */ Y(L, {
1162
+ }) : /* @__PURE__ */ Y(B, {
1163
1163
  size: 12,
1164
1164
  className: "text-[var(--color-text-secondary)]"
1165
1165
  })
@@ -1167,11 +1167,11 @@ function Ye() {
1167
1167
  })]
1168
1168
  })]
1169
1169
  }),
1170
- U.phone && /* @__PURE__ */ X("div", {
1170
+ K.phone && /* @__PURE__ */ X("div", {
1171
1171
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1172
1172
  children: [/* @__PURE__ */ Y("div", {
1173
1173
  className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
1174
- children: /* @__PURE__ */ Y(Ee, {
1174
+ children: /* @__PURE__ */ Y(ke, {
1175
1175
  size: 16,
1176
1176
  className: "text-status-success-text"
1177
1177
  })
@@ -1179,16 +1179,16 @@ function Ye() {
1179
1179
  className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
1180
1180
  children: "Phone"
1181
1181
  }), /* @__PURE__ */ Y("a", {
1182
- href: `tel:${U.phone}`,
1182
+ href: `tel:${K.phone}`,
1183
1183
  className: "text-sm font-semibold text-[var(--color-text-primary)] hover:underline",
1184
- children: U.phone
1184
+ children: K.phone
1185
1185
  })] })]
1186
1186
  }),
1187
1187
  /* @__PURE__ */ X("div", {
1188
1188
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1189
1189
  children: [/* @__PURE__ */ Y("div", {
1190
1190
  className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
1191
- children: /* @__PURE__ */ Y(N, {
1191
+ children: /* @__PURE__ */ Y(L, {
1192
1192
  size: 16,
1193
1193
  className: "text-accent-blue"
1194
1194
  })
@@ -1197,14 +1197,14 @@ function Ye() {
1197
1197
  children: "Position"
1198
1198
  }), /* @__PURE__ */ Y("p", {
1199
1199
  className: "text-sm font-semibold text-[var(--color-text-primary)]",
1200
- children: U.position
1200
+ children: K.position
1201
1201
  })] })]
1202
1202
  }),
1203
- U.department && /* @__PURE__ */ X("div", {
1203
+ K.department && /* @__PURE__ */ X("div", {
1204
1204
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1205
1205
  children: [/* @__PURE__ */ Y("div", {
1206
1206
  className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
1207
- children: /* @__PURE__ */ Y(P, {
1207
+ children: /* @__PURE__ */ Y(xe, {
1208
1208
  size: 16,
1209
1209
  className: "text-accent-purple"
1210
1210
  })
@@ -1213,14 +1213,14 @@ function Ye() {
1213
1213
  children: "Department"
1214
1214
  }), /* @__PURE__ */ Y("p", {
1215
1215
  className: "text-sm font-semibold text-[var(--color-text-primary)]",
1216
- children: U.department
1216
+ children: K.department
1217
1217
  })] })]
1218
1218
  }),
1219
- U.linkedinUrl && /* @__PURE__ */ X("div", {
1219
+ K.linkedinUrl && /* @__PURE__ */ X("div", {
1220
1220
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1221
1221
  children: [/* @__PURE__ */ Y("div", {
1222
1222
  className: "size-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
1223
- children: /* @__PURE__ */ Y(Ce, {
1223
+ children: /* @__PURE__ */ Y(Te, {
1224
1224
  size: 16,
1225
1225
  className: "text-accent-blue"
1226
1226
  })
@@ -1234,18 +1234,18 @@ function Ye() {
1234
1234
  target: "_blank",
1235
1235
  rel: "noopener noreferrer",
1236
1236
  className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
1237
- children: U.linkedinUrl
1237
+ children: K.linkedinUrl
1238
1238
  }) : /* @__PURE__ */ Y("span", {
1239
1239
  className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
1240
- children: U.linkedinUrl
1240
+ children: K.linkedinUrl
1241
1241
  })]
1242
1242
  })]
1243
1243
  }),
1244
- U.portfolioUrl && /* @__PURE__ */ X("div", {
1244
+ K.portfolioUrl && /* @__PURE__ */ X("div", {
1245
1245
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1246
1246
  children: [/* @__PURE__ */ Y("div", {
1247
1247
  className: "size-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
1248
- children: /* @__PURE__ */ Y(W, {
1248
+ children: /* @__PURE__ */ Y(we, {
1249
1249
  size: 16,
1250
1250
  className: "text-accent-indigo"
1251
1251
  })
@@ -1259,18 +1259,18 @@ function Ye() {
1259
1259
  target: "_blank",
1260
1260
  rel: "noopener noreferrer",
1261
1261
  className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
1262
- children: U.portfolioUrl
1262
+ children: K.portfolioUrl
1263
1263
  }) : /* @__PURE__ */ Y("span", {
1264
1264
  className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
1265
- children: U.portfolioUrl
1265
+ children: K.portfolioUrl
1266
1266
  })]
1267
1267
  })]
1268
1268
  }),
1269
- U.productId && ce && /* @__PURE__ */ X("div", {
1269
+ K.productId && le && /* @__PURE__ */ X("div", {
1270
1270
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1271
1271
  children: [/* @__PURE__ */ Y("div", {
1272
1272
  className: "size-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
1273
- children: /* @__PURE__ */ Y(Te, {
1273
+ children: /* @__PURE__ */ Y(Oe, {
1274
1274
  size: 16,
1275
1275
  className: "text-accent-purple"
1276
1276
  })
@@ -1279,14 +1279,14 @@ function Ye() {
1279
1279
  children: "Product"
1280
1280
  }), /* @__PURE__ */ Y("p", {
1281
1281
  className: "text-sm font-semibold text-[var(--color-text-primary)]",
1282
- children: ce
1282
+ children: le
1283
1283
  })] })]
1284
1284
  }),
1285
1285
  /* @__PURE__ */ X("div", {
1286
1286
  className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
1287
1287
  children: [/* @__PURE__ */ Y("div", {
1288
1288
  className: "size-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
1289
- children: /* @__PURE__ */ Y(H, {
1289
+ children: /* @__PURE__ */ Y(G, {
1290
1290
  size: 16,
1291
1291
  className: "text-status-success-text"
1292
1292
  })
@@ -1295,7 +1295,7 @@ function Ye() {
1295
1295
  children: "Source"
1296
1296
  }), /* @__PURE__ */ Y("p", {
1297
1297
  className: "text-sm font-semibold text-[var(--color-text-primary)] capitalize",
1298
- children: U.source.toLowerCase()
1298
+ children: K.source.toLowerCase()
1299
1299
  })] })]
1300
1300
  })
1301
1301
  ]
@@ -1304,37 +1304,37 @@ function Ye() {
1304
1304
  }),
1305
1305
  e && /* @__PURE__ */ Y(Je, {
1306
1306
  applicationId: e,
1307
- jobPostingId: m.jobApplication.jobPostingId
1307
+ jobPostingId: p.jobApplication.jobPostingId
1308
1308
  }),
1309
- U.coverLetter && /* @__PURE__ */ X("div", {
1309
+ K.coverLetter && /* @__PURE__ */ X("div", {
1310
1310
  className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
1311
1311
  children: [/* @__PURE__ */ Y("div", {
1312
1312
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1313
1313
  children: /* @__PURE__ */ X("h2", {
1314
1314
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1315
- children: [/* @__PURE__ */ Y(V, { size: 14 }), "Cover Letter"]
1315
+ children: [/* @__PURE__ */ Y(W, { size: 14 }), "Cover Letter"]
1316
1316
  })
1317
1317
  }), /* @__PURE__ */ Y("div", {
1318
1318
  className: "p-5",
1319
1319
  children: /* @__PURE__ */ Y("p", {
1320
1320
  className: "text-sm text-[var(--color-text-primary)] leading-relaxed whitespace-pre-wrap",
1321
- children: U.coverLetter
1321
+ children: K.coverLetter
1322
1322
  })
1323
1323
  })]
1324
1324
  }),
1325
- U.metadata && Object.keys(U.metadata).length > 0 && /* @__PURE__ */ X("div", {
1325
+ K.metadata && Object.keys(K.metadata).length > 0 && /* @__PURE__ */ X("div", {
1326
1326
  className: "bg-[var(--color-bg-surface)] border border-border-seam rounded-xl overflow-hidden shadow-[var(--shadow-pop)]",
1327
1327
  children: [/* @__PURE__ */ Y("div", {
1328
1328
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1329
1329
  children: /* @__PURE__ */ X("h2", {
1330
1330
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1331
- children: [/* @__PURE__ */ Y(z, { size: 14 }), "Additional Data"]
1331
+ children: [/* @__PURE__ */ Y(Ce, { size: 14 }), "Additional Data"]
1332
1332
  })
1333
1333
  }), /* @__PURE__ */ Y("div", {
1334
1334
  className: "p-5",
1335
1335
  children: /* @__PURE__ */ Y("div", {
1336
1336
  className: "space-y-2.5",
1337
- children: Object.entries(U.metadata).map(([e, t]) => /* @__PURE__ */ X("div", {
1337
+ children: Object.entries(K.metadata).map(([e, t]) => /* @__PURE__ */ X("div", {
1338
1338
  className: "flex items-start gap-3 py-1.5 border-b border-[var(--color-border-default)] last:border-0",
1339
1339
  children: [/* @__PURE__ */ Y("span", {
1340
1340
  className: "text-xs font-medium text-[var(--color-text-secondary)] min-w-[120px] uppercase tracking-wider",
@@ -1357,16 +1357,16 @@ function Ye() {
1357
1357
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1358
1358
  children: /* @__PURE__ */ X("h2", {
1359
1359
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1360
- children: [/* @__PURE__ */ Y(V, { size: 14 }), "Resume"]
1360
+ children: [/* @__PURE__ */ Y(W, { size: 14 }), "Resume"]
1361
1361
  })
1362
1362
  }), /* @__PURE__ */ Y("div", {
1363
1363
  className: "p-5",
1364
- children: U.resumeFileName ? /* @__PURE__ */ X(Le, { children: [
1364
+ children: K.resumeFileName ? /* @__PURE__ */ X(Ve, { children: [
1365
1365
  /* @__PURE__ */ X("div", {
1366
1366
  className: "flex items-center gap-3 mb-3",
1367
1367
  children: [/* @__PURE__ */ Y("div", {
1368
1368
  className: "size-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center flex-shrink-0",
1369
- children: /* @__PURE__ */ Y(V, {
1369
+ children: /* @__PURE__ */ Y(W, {
1370
1370
  size: 16,
1371
1371
  className: "text-accent-blue"
1372
1372
  })
@@ -1374,7 +1374,7 @@ function Ye() {
1374
1374
  className: "min-w-0",
1375
1375
  children: [/* @__PURE__ */ Y("p", {
1376
1376
  className: "text-sm font-medium text-[var(--color-text-primary)] truncate",
1377
- children: U.resumeFileName
1377
+ children: K.resumeFileName
1378
1378
  }), $ ? /* @__PURE__ */ Y("p", {
1379
1379
  className: "text-[11px] text-[var(--color-text-secondary)]",
1380
1380
  children: $
@@ -1383,25 +1383,25 @@ function Ye() {
1383
1383
  }),
1384
1384
  /* @__PURE__ */ X("button", {
1385
1385
  type: "button",
1386
- onClick: ke,
1387
- disabled: ge,
1386
+ onClick: Me,
1387
+ disabled: _e,
1388
1388
  className: "w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all disabled:opacity-50",
1389
- children: [ge ? /* @__PURE__ */ Y(G, {
1389
+ children: [_e ? /* @__PURE__ */ Y(q, {
1390
1390
  size: 15,
1391
1391
  className: "animate-spin"
1392
- }) : /* @__PURE__ */ Y(Se, { size: 15 }), "Download Resume"]
1392
+ }) : /* @__PURE__ */ Y(V, { size: 15 }), "Download Resume"]
1393
1393
  }),
1394
1394
  /* @__PURE__ */ X("button", {
1395
1395
  type: "button",
1396
- onClick: Ae,
1397
- disabled: D,
1396
+ onClick: Pe,
1397
+ disabled: O,
1398
1398
  className: "mt-2 w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] text-[var(--color-text-primary)] rounded-lg text-sm font-medium hover:bg-[var(--color-bg-muted)] transition-all disabled:opacity-50",
1399
- children: [D ? /* @__PURE__ */ Y(G, {
1399
+ children: [O ? /* @__PURE__ */ Y(q, {
1400
1400
  size: 15,
1401
1401
  className: "animate-spin"
1402
- }) : /* @__PURE__ */ Y(B, { size: 15 }), "Preview Resume"]
1402
+ }) : /* @__PURE__ */ Y(U, { size: 15 }), "Preview Resume"]
1403
1403
  }),
1404
- o && /* @__PURE__ */ Y("p", {
1404
+ a && /* @__PURE__ */ Y("p", {
1405
1405
  className: "mt-2 text-xs text-status-error-text",
1406
1406
  children: "Could not generate a download link. Please try again."
1407
1407
  })
@@ -1417,7 +1417,7 @@ function Ye() {
1417
1417
  className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
1418
1418
  children: /* @__PURE__ */ X("h2", {
1419
1419
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
1420
- children: [/* @__PURE__ */ Y(xe, { size: 14 }), "Timeline"]
1420
+ children: [/* @__PURE__ */ Y(Se, { size: 14 }), "Timeline"]
1421
1421
  })
1422
1422
  }), /* @__PURE__ */ X("div", {
1423
1423
  className: "p-5 space-y-4",
@@ -1428,51 +1428,51 @@ function Ye() {
1428
1428
  children: "Applied"
1429
1429
  }), /* @__PURE__ */ Y("p", {
1430
1430
  className: "text-[11px] text-[var(--color-text-secondary)]",
1431
- children: Q(U.createdAt)
1431
+ children: Q(K.createdAt)
1432
1432
  })] })]
1433
- }), U.updatedAt !== U.createdAt && /* @__PURE__ */ X("div", {
1433
+ }), K.updatedAt !== K.createdAt && /* @__PURE__ */ X("div", {
1434
1434
  className: "flex items-start gap-3",
1435
1435
  children: [/* @__PURE__ */ Y("div", { className: "size-2 rounded-full bg-status-warning-bg mt-1.5 flex-shrink-0" }), /* @__PURE__ */ X("div", { children: [/* @__PURE__ */ Y("p", {
1436
1436
  className: "text-xs font-medium text-[var(--color-text-primary)]",
1437
1437
  children: "Last Updated"
1438
1438
  }), /* @__PURE__ */ Y("p", {
1439
1439
  className: "text-[11px] text-[var(--color-text-secondary)]",
1440
- children: Q(U.updatedAt)
1440
+ children: Q(K.updatedAt)
1441
1441
  })] })]
1442
1442
  })]
1443
1443
  })]
1444
1444
  }),
1445
- /* @__PURE__ */ X(Re, {
1445
+ /* @__PURE__ */ X(j, {
1446
1446
  "data-tour": "support-application-reply",
1447
1447
  className: "overflow-hidden p-0",
1448
1448
  children: [/* @__PURE__ */ Y("div", {
1449
1449
  className: "px-5 py-3.5 border-b border-border-seam",
1450
1450
  children: /* @__PURE__ */ X("h2", {
1451
1451
  className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
1452
- children: [/* @__PURE__ */ Y(Oe, { size: 12 }), "Reply"]
1452
+ children: [/* @__PURE__ */ Y(je, { size: 12 }), "Reply"]
1453
1453
  })
1454
1454
  }), /* @__PURE__ */ X("div", {
1455
1455
  className: "p-5",
1456
1456
  children: [
1457
- u && /* @__PURE__ */ X("div", {
1457
+ l && /* @__PURE__ */ X("div", {
1458
1458
  className: "mb-3 p-2.5 rounded-lg bg-status-success-bg-subtle border border-border-subtle text-sm text-status-success-text flex items-center gap-2",
1459
- children: [/* @__PURE__ */ Y(F, { size: 14 }), "Reply sent to the applicant!"]
1459
+ children: [/* @__PURE__ */ Y(R, { size: 14 }), "Reply sent to the applicant!"]
1460
1460
  }),
1461
- /* @__PURE__ */ Y(pe, {
1461
+ /* @__PURE__ */ Y(me, {
1462
1462
  id: "reply-message",
1463
- value: c,
1464
- onChange: se,
1463
+ value: s,
1464
+ onChange: ce,
1465
1465
  placeholder: "Type your reply… This will be sent as a branded email to the applicant."
1466
1466
  }),
1467
1467
  /* @__PURE__ */ X("button", {
1468
1468
  type: "button",
1469
- onClick: we,
1470
- disabled: R || !c.trim(),
1469
+ onClick: De,
1470
+ disabled: H || !s.trim(),
1471
1471
  className: "mt-2 w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-accent)] text-on-accent rounded-lg text-sm font-medium hover:opacity-90 transition-all disabled:opacity-50",
1472
- children: [R ? /* @__PURE__ */ Y(G, {
1472
+ children: [H ? /* @__PURE__ */ Y(q, {
1473
1473
  size: 15,
1474
1474
  className: "animate-spin"
1475
- }) : /* @__PURE__ */ Y(Oe, { size: 15 }), "Send Reply"]
1475
+ }) : /* @__PURE__ */ Y(je, { size: 15 }), "Send Reply"]
1476
1476
  })
1477
1477
  ]
1478
1478
  })]
@@ -1494,26 +1494,26 @@ function Ye() {
1494
1494
  children: "Status"
1495
1495
  }), /* @__PURE__ */ Y("select", {
1496
1496
  id: "jobapplicationdetailpage-status-0",
1497
- value: U.status,
1498
- onChange: (e) => De(e.target.value),
1499
- disabled: _,
1497
+ value: K.status,
1498
+ onChange: (e) => Ae(e.target.value),
1499
+ disabled: g,
1500
1500
  className: "w-full px-3 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-lg text-sm text-[var(--color-text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-border-accent)]/50 disabled:opacity-50 transition-all",
1501
- children: fe.map((e) => /* @__PURE__ */ Y("option", {
1501
+ children: pe.map((e) => /* @__PURE__ */ Y("option", {
1502
1502
  value: e,
1503
- children: de[e] || e
1503
+ children: fe[e] || e
1504
1504
  }, e))
1505
1505
  })] }), /* @__PURE__ */ X("div", {
1506
1506
  className: "space-y-2",
1507
1507
  children: [/* @__PURE__ */ X("a", {
1508
- href: `mailto:${U.email}?subject=${encodeURIComponent(`Your application for ${U.position}`)}`,
1508
+ href: `mailto:${K.email}?subject=${encodeURIComponent(`Your application for ${K.position}`)}`,
1509
1509
  className: "w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] text-[var(--color-text-primary)] rounded-lg text-sm font-medium hover:bg-[var(--color-bg-muted)] transition-all",
1510
- children: [/* @__PURE__ */ Y(K, { size: 15 }), "Email Applicant"]
1511
- }), U.status !== "ARCHIVED" && /* @__PURE__ */ X("button", {
1510
+ children: [/* @__PURE__ */ Y(Ee, { size: 15 }), "Email Applicant"]
1511
+ }), K.status !== "ARCHIVED" && /* @__PURE__ */ X("button", {
1512
1512
  type: "button",
1513
- onClick: () => De("ARCHIVED"),
1514
- disabled: _,
1513
+ onClick: () => Ae("ARCHIVED"),
1514
+ disabled: g,
1515
1515
  className: "w-full inline-flex items-center justify-center gap-2 px-4 py-2.5 bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] text-[var(--color-text-secondary)] rounded-lg text-sm font-medium hover:bg-[var(--color-bg-muted)] transition-all disabled:opacity-50",
1516
- children: [/* @__PURE__ */ Y(j, { size: 15 }), "Archive"]
1516
+ children: [/* @__PURE__ */ Y(F, { size: 15 }), "Archive"]
1517
1517
  })]
1518
1518
  })]
1519
1519
  })]
@@ -1521,25 +1521,25 @@ function Ye() {
1521
1521
  ]
1522
1522
  })]
1523
1523
  }),
1524
- /* @__PURE__ */ Y(v, {
1525
- open: ve,
1526
- onOpenChange: x,
1527
- children: /* @__PURE__ */ X(_e, {
1524
+ /* @__PURE__ */ Y(_, {
1525
+ open: b,
1526
+ onOpenChange: S,
1527
+ children: /* @__PURE__ */ X(v, {
1528
1528
  className: "sm:max-w-4xl",
1529
- children: [/* @__PURE__ */ X(b, { children: [/* @__PURE__ */ Y(ye, { children: "Resume Preview" }), /* @__PURE__ */ Y(y, { children: U.resumeFileName ?? "Candidate resume" })] }), /* @__PURE__ */ Y("div", {
1529
+ children: [/* @__PURE__ */ X(x, { children: [/* @__PURE__ */ Y(ve, { children: "Resume Preview" }), /* @__PURE__ */ Y(y, { children: K.resumeFileName ?? "Candidate resume" })] }), /* @__PURE__ */ Y("div", {
1530
1530
  className: "h-[70vh] w-full rounded-lg border border-border-seam bg-bg-sunken/30 overflow-hidden",
1531
- children: D ? /* @__PURE__ */ X("div", {
1531
+ children: O ? /* @__PURE__ */ X("div", {
1532
1532
  className: "h-full flex flex-col items-center justify-center gap-3",
1533
- children: [/* @__PURE__ */ Y(G, {
1533
+ children: [/* @__PURE__ */ Y(q, {
1534
1534
  size: 28,
1535
1535
  className: "animate-spin text-text-secondary"
1536
1536
  }), /* @__PURE__ */ Y("p", {
1537
1537
  className: "text-sm text-text-secondary",
1538
1538
  children: "Loading preview…"
1539
1539
  })]
1540
- }) : w || !S ? /* @__PURE__ */ X("div", {
1540
+ }) : T || !C ? /* @__PURE__ */ X("div", {
1541
1541
  className: "h-full flex flex-col items-center justify-center gap-3",
1542
- children: [/* @__PURE__ */ Y(A, {
1542
+ children: [/* @__PURE__ */ Y(be, {
1543
1543
  size: 28,
1544
1544
  className: "text-status-error-text"
1545
1545
  }), /* @__PURE__ */ Y("p", {
@@ -1547,7 +1547,7 @@ function Ye() {
1547
1547
  children: "Could not load the resume preview. Try downloading instead."
1548
1548
  })]
1549
1549
  }) : /* @__PURE__ */ Y("iframe", {
1550
- src: S,
1550
+ src: C,
1551
1551
  title: `Resume preview — ${Z}`,
1552
1552
  className: "h-full w-full"
1553
1553
  })