@burdenoff/microfe-support 2026.522.1 → 2026.523.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.
- package/dist/generated/global-operations.js +174 -72
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/support/SupportAdminRoot.js +34 -26
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportAdminRoutes.js +17 -9
- package/dist/support/SupportAdminRoutes.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +1 -0
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +3 -0
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketSidebar.js +1 -0
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +6 -0
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +680 -0
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -0
- package/dist/support/pages/JobApplicationsPage.js +331 -0
- package/dist/support/pages/JobApplicationsPage.js.map +1 -0
- package/dist/support/pages/KnowledgeBaseUserPage.js +94 -85
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +3 -0
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +6 -0
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,680 @@
|
|
|
1
|
+
import { useGetJobApplicationQuery as e, useGetJobApplicationResumeUrlLazyQuery as t, useReplyToJobApplicationMutation as n, useUpdateJobApplicationStatusMutation as r } from "../../generated/global-operations.js";
|
|
2
|
+
import { nativeCopyText as i, nativeImpact as ee } from "../../utils/nativeBridge.js";
|
|
3
|
+
import { useEffect as te, useState as a } from "react";
|
|
4
|
+
import { AlertCircle as o, Archive as s, ArrowLeft as c, Briefcase as ne, Building2 as l, Calendar as re, CheckCircle as u, Clock as ie, Copy as ae, Download as d, ExternalLink as f, Eye as p, FileText as m, Globe as oe, Inbox as h, Link2 as se, Linkedin as ce, Loader2 as g, Mail as _, Package as le, Phone as ue, Send as v, Star as y, User as b, Users as x, XCircle as S } from "lucide-react";
|
|
5
|
+
import { useLocation as C, useNavigate as de, useParams as fe } from "react-router-dom";
|
|
6
|
+
import { graphqlFetch as pe } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
7
|
+
import { Fragment as me, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
8
|
+
//#region src/support/pages/JobApplicationDetailPage.tsx
|
|
9
|
+
var E = {
|
|
10
|
+
NEW: {
|
|
11
|
+
label: "New",
|
|
12
|
+
color: "text-accent-blue",
|
|
13
|
+
icon: h,
|
|
14
|
+
bg: "bg-status-info-bg-subtle border-border-subtle"
|
|
15
|
+
},
|
|
16
|
+
SCREENING: {
|
|
17
|
+
label: "Screening",
|
|
18
|
+
color: "text-status-warning-text",
|
|
19
|
+
icon: p,
|
|
20
|
+
bg: "bg-status-warning-bg-subtle border-border-subtle"
|
|
21
|
+
},
|
|
22
|
+
SHORTLISTED: {
|
|
23
|
+
label: "Shortlisted",
|
|
24
|
+
color: "text-accent-purple",
|
|
25
|
+
icon: y,
|
|
26
|
+
bg: "bg-accent-purple-subtle border-border-subtle"
|
|
27
|
+
},
|
|
28
|
+
INTERVIEW: {
|
|
29
|
+
label: "Interview",
|
|
30
|
+
color: "text-accent-blue",
|
|
31
|
+
icon: x,
|
|
32
|
+
bg: "bg-accent-blue-subtle border-border-subtle"
|
|
33
|
+
},
|
|
34
|
+
HIRED: {
|
|
35
|
+
label: "Hired",
|
|
36
|
+
color: "text-status-success-text",
|
|
37
|
+
icon: u,
|
|
38
|
+
bg: "bg-status-success-bg-subtle border-border-subtle"
|
|
39
|
+
},
|
|
40
|
+
REJECTED: {
|
|
41
|
+
label: "Rejected",
|
|
42
|
+
color: "text-status-error-text",
|
|
43
|
+
icon: S,
|
|
44
|
+
bg: "bg-status-error-bg-subtle border-border-subtle"
|
|
45
|
+
},
|
|
46
|
+
ARCHIVED: {
|
|
47
|
+
label: "Archived",
|
|
48
|
+
color: "text-text-secondary",
|
|
49
|
+
icon: s,
|
|
50
|
+
bg: "bg-bg-canvas border-border-subtle"
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
function D(e) {
|
|
54
|
+
return new Date(e).toLocaleDateString("en-US", {
|
|
55
|
+
weekday: "short",
|
|
56
|
+
month: "short",
|
|
57
|
+
day: "numeric",
|
|
58
|
+
year: "numeric",
|
|
59
|
+
hour: "2-digit",
|
|
60
|
+
minute: "2-digit"
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function he(e) {
|
|
64
|
+
let t = Date.now() - new Date(e).getTime(), n = Math.floor(t / 6e4);
|
|
65
|
+
if (n < 60) return `${n}m ago`;
|
|
66
|
+
let r = Math.floor(n / 60);
|
|
67
|
+
if (r < 24) return `${r}h ago`;
|
|
68
|
+
let i = Math.floor(r / 24);
|
|
69
|
+
return i < 30 ? `${i}d ago` : D(e);
|
|
70
|
+
}
|
|
71
|
+
function ge(e) {
|
|
72
|
+
return !e || e <= 0 ? null : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(0)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
73
|
+
}
|
|
74
|
+
function O(e) {
|
|
75
|
+
if (!e) return null;
|
|
76
|
+
try {
|
|
77
|
+
let t = new URL(e);
|
|
78
|
+
return t.protocol === "http:" || t.protocol === "https:" ? e : null;
|
|
79
|
+
} catch {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function k() {
|
|
84
|
+
let { id: p } = fe(), h = de(), y = C().search, [x, S] = a(!1), [k, A] = a(!1), [j, M] = a(!1), [N, P] = a(!1), [F, I] = a(""), [_e, L] = a(!1), [R, z] = a(null), { data: B, loading: ve, error: V } = e({
|
|
85
|
+
variables: { id: p },
|
|
86
|
+
skip: !p
|
|
87
|
+
}), H = B?.jobApplication?.productId ?? null;
|
|
88
|
+
te(() => {
|
|
89
|
+
if (!H) {
|
|
90
|
+
z(null);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
let e = !1;
|
|
94
|
+
return pe({
|
|
95
|
+
gateway: "global",
|
|
96
|
+
query: "query($id: ID!) { platformProduct(id: $id) { name } }",
|
|
97
|
+
variables: { id: H }
|
|
98
|
+
}).then((t) => {
|
|
99
|
+
if (e) return;
|
|
100
|
+
let n = t.data?.platformProduct?.name;
|
|
101
|
+
n && z(n);
|
|
102
|
+
}).catch(() => {}), () => {
|
|
103
|
+
e = !0;
|
|
104
|
+
};
|
|
105
|
+
}, [H]);
|
|
106
|
+
let [ye, { loading: U }] = r({ refetchQueries: ["GetJobApplication", "GetJobApplications"] }), [be, { loading: W }] = t({ fetchPolicy: "no-cache" }), [xe, { loading: G }] = n(), K = B?.jobApplication, Se = async () => {
|
|
107
|
+
if (!(!F.trim() || !p)) try {
|
|
108
|
+
(await xe({ variables: {
|
|
109
|
+
id: p,
|
|
110
|
+
message: F.trim()
|
|
111
|
+
} })).data?.replyToJobApplication.success && (L(!0), I(""), setTimeout(() => L(!1), 3e3));
|
|
112
|
+
} catch (e) {
|
|
113
|
+
console.error("Failed to send reply:", e);
|
|
114
|
+
}
|
|
115
|
+
}, q = async (e) => {
|
|
116
|
+
if (p) {
|
|
117
|
+
A(!1);
|
|
118
|
+
try {
|
|
119
|
+
await ye({ variables: {
|
|
120
|
+
id: p,
|
|
121
|
+
input: { status: e }
|
|
122
|
+
} }), S(!0), setTimeout(() => S(!1), 3e3);
|
|
123
|
+
} catch (e) {
|
|
124
|
+
console.error("Failed to update status:", e), A(!0), setTimeout(() => A(!1), 4e3);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}, Ce = async () => {
|
|
128
|
+
if (p) {
|
|
129
|
+
P(!1);
|
|
130
|
+
try {
|
|
131
|
+
let e = (await be({ variables: { id: p } })).data?.jobApplicationResumeUrl;
|
|
132
|
+
e ? window.open(e, "_blank", "noopener,noreferrer") : P(!0);
|
|
133
|
+
} catch (e) {
|
|
134
|
+
console.error("Failed to get resume URL:", e), P(!0);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}, we = async () => {
|
|
138
|
+
K?.email && (ee("light"), await i(K.email), M(!0), setTimeout(() => M(!1), 2e3));
|
|
139
|
+
};
|
|
140
|
+
if (ve) return /* @__PURE__ */ w("div", {
|
|
141
|
+
className: "min-h-full flex items-center justify-center py-20",
|
|
142
|
+
children: /* @__PURE__ */ T("div", {
|
|
143
|
+
className: "text-center",
|
|
144
|
+
children: [/* @__PURE__ */ w(g, {
|
|
145
|
+
size: 36,
|
|
146
|
+
className: "animate-spin text-[var(--color-text-secondary)] mx-auto mb-3"
|
|
147
|
+
}), /* @__PURE__ */ w("p", {
|
|
148
|
+
className: "text-sm text-[var(--color-text-secondary)]",
|
|
149
|
+
children: "Loading application details..."
|
|
150
|
+
})]
|
|
151
|
+
})
|
|
152
|
+
});
|
|
153
|
+
if (V || !K) return /* @__PURE__ */ w("div", {
|
|
154
|
+
className: "min-h-full flex items-center justify-center py-20",
|
|
155
|
+
children: /* @__PURE__ */ T("div", {
|
|
156
|
+
className: "text-center max-w-sm",
|
|
157
|
+
children: [
|
|
158
|
+
/* @__PURE__ */ w("div", {
|
|
159
|
+
className: "w-16 h-16 mx-auto mb-4 rounded-2xl bg-status-error-bg-subtle flex items-center justify-center",
|
|
160
|
+
children: /* @__PURE__ */ w(o, {
|
|
161
|
+
size: 32,
|
|
162
|
+
className: "text-status-error-text"
|
|
163
|
+
})
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ w("h3", {
|
|
166
|
+
className: "text-lg font-semibold text-[var(--color-text-primary)] mb-2",
|
|
167
|
+
children: "Application not found"
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ w("p", {
|
|
170
|
+
className: "text-sm text-[var(--color-text-secondary)] mb-6",
|
|
171
|
+
children: V?.message || "This application may have been deleted or you don't have access."
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ T("button", {
|
|
174
|
+
onClick: () => h(`/support/applications${y}`),
|
|
175
|
+
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",
|
|
176
|
+
children: [/* @__PURE__ */ w(c, { size: 16 }), "Back to Applications"]
|
|
177
|
+
})
|
|
178
|
+
]
|
|
179
|
+
})
|
|
180
|
+
});
|
|
181
|
+
let J = E[K.status] || E.NEW, Y = J.icon, X = `${K.firstName} ${K.lastName}`.trim(), Z = ge(K.resumeFileSize), Q = O(K.linkedinUrl), $ = O(K.portfolioUrl);
|
|
182
|
+
return /* @__PURE__ */ T("div", {
|
|
183
|
+
className: "p-6 animate-in fade-in duration-300",
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ T("div", {
|
|
186
|
+
className: "flex items-center justify-between mb-6",
|
|
187
|
+
children: [/* @__PURE__ */ T("button", {
|
|
188
|
+
onClick: () => h(`/support/applications${y}`),
|
|
189
|
+
className: "inline-flex items-center gap-2 text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
190
|
+
children: [/* @__PURE__ */ w(c, { size: 18 }), /* @__PURE__ */ w("span", {
|
|
191
|
+
className: "text-sm font-medium",
|
|
192
|
+
children: "Back to Applications"
|
|
193
|
+
})]
|
|
194
|
+
}), /* @__PURE__ */ T("div", {
|
|
195
|
+
className: "flex items-center gap-2 text-xs text-[var(--color-text-secondary)]",
|
|
196
|
+
children: [/* @__PURE__ */ w(ie, { size: 12 }), he(K.createdAt)]
|
|
197
|
+
})]
|
|
198
|
+
}),
|
|
199
|
+
x && /* @__PURE__ */ T("div", {
|
|
200
|
+
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-300",
|
|
201
|
+
children: [/* @__PURE__ */ w(u, { size: 18 }), "Status updated successfully"]
|
|
202
|
+
}),
|
|
203
|
+
k && /* @__PURE__ */ T("div", {
|
|
204
|
+
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-300",
|
|
205
|
+
children: [/* @__PURE__ */ w(o, { size: 18 }), "Couldn't update the status. Please try again."]
|
|
206
|
+
}),
|
|
207
|
+
/* @__PURE__ */ w("div", {
|
|
208
|
+
className: `rounded-xl border p-6 mb-6 ${J.bg}`,
|
|
209
|
+
children: /* @__PURE__ */ w("div", {
|
|
210
|
+
className: "flex items-start justify-between",
|
|
211
|
+
children: /* @__PURE__ */ T("div", {
|
|
212
|
+
className: "flex items-start gap-4",
|
|
213
|
+
children: [/* @__PURE__ */ w("div", {
|
|
214
|
+
className: "w-12 h-12 rounded-xl bg-white/80 dark:bg-white/10 flex items-center justify-center shadow-sm",
|
|
215
|
+
children: /* @__PURE__ */ w(Y, {
|
|
216
|
+
size: 24,
|
|
217
|
+
className: J.color
|
|
218
|
+
})
|
|
219
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("div", {
|
|
220
|
+
className: "flex items-center gap-3 mb-1.5",
|
|
221
|
+
children: /* @__PURE__ */ w("h1", {
|
|
222
|
+
className: "text-xl font-bold text-[var(--color-text-primary)]",
|
|
223
|
+
children: X
|
|
224
|
+
})
|
|
225
|
+
}), /* @__PURE__ */ T("div", {
|
|
226
|
+
className: "flex items-center gap-3 text-sm flex-wrap",
|
|
227
|
+
children: [/* @__PURE__ */ T("span", {
|
|
228
|
+
className: `inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold ${J.color} bg-white/60 dark:bg-white/10`,
|
|
229
|
+
children: [/* @__PURE__ */ w(Y, { size: 12 }), J.label]
|
|
230
|
+
}), /* @__PURE__ */ T("span", {
|
|
231
|
+
className: "text-[var(--color-text-secondary)]",
|
|
232
|
+
children: [
|
|
233
|
+
"applying for",
|
|
234
|
+
" ",
|
|
235
|
+
/* @__PURE__ */ w("strong", {
|
|
236
|
+
className: "text-[var(--color-text-primary)]",
|
|
237
|
+
children: K.position
|
|
238
|
+
})
|
|
239
|
+
]
|
|
240
|
+
})]
|
|
241
|
+
})] })]
|
|
242
|
+
})
|
|
243
|
+
})
|
|
244
|
+
}),
|
|
245
|
+
/* @__PURE__ */ T("div", {
|
|
246
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
247
|
+
children: [/* @__PURE__ */ T("div", {
|
|
248
|
+
className: "lg:col-span-2 space-y-5",
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ T("div", {
|
|
251
|
+
className: "bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-xl overflow-hidden shadow-sm",
|
|
252
|
+
children: [/* @__PURE__ */ w("div", {
|
|
253
|
+
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
254
|
+
children: /* @__PURE__ */ T("h2", {
|
|
255
|
+
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
256
|
+
children: [/* @__PURE__ */ w(b, { size: 14 }), "Applicant Information"]
|
|
257
|
+
})
|
|
258
|
+
}), /* @__PURE__ */ w("div", {
|
|
259
|
+
className: "p-5",
|
|
260
|
+
children: /* @__PURE__ */ T("div", {
|
|
261
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ T("div", {
|
|
264
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
265
|
+
children: [/* @__PURE__ */ w("div", {
|
|
266
|
+
className: "w-9 h-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
267
|
+
children: /* @__PURE__ */ w(b, {
|
|
268
|
+
size: 16,
|
|
269
|
+
className: "text-accent-blue"
|
|
270
|
+
})
|
|
271
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
272
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
273
|
+
children: "Name"
|
|
274
|
+
}), /* @__PURE__ */ w("p", {
|
|
275
|
+
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
276
|
+
children: X
|
|
277
|
+
})] })]
|
|
278
|
+
}),
|
|
279
|
+
/* @__PURE__ */ T("div", {
|
|
280
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
281
|
+
children: [/* @__PURE__ */ w("div", {
|
|
282
|
+
className: "w-9 h-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
283
|
+
children: /* @__PURE__ */ w(_, {
|
|
284
|
+
size: 16,
|
|
285
|
+
className: "text-accent-indigo"
|
|
286
|
+
})
|
|
287
|
+
}), /* @__PURE__ */ T("div", {
|
|
288
|
+
className: "flex-1 min-w-0",
|
|
289
|
+
children: [/* @__PURE__ */ w("p", {
|
|
290
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
291
|
+
children: "Email"
|
|
292
|
+
}), /* @__PURE__ */ T("div", {
|
|
293
|
+
className: "flex items-center gap-1.5",
|
|
294
|
+
children: [/* @__PURE__ */ w("a", {
|
|
295
|
+
href: `mailto:${K.email}`,
|
|
296
|
+
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate",
|
|
297
|
+
children: K.email
|
|
298
|
+
}), /* @__PURE__ */ w("button", {
|
|
299
|
+
onClick: we,
|
|
300
|
+
className: "flex-shrink-0 p-0.5 rounded hover:bg-[var(--color-bg-muted)] transition-colors",
|
|
301
|
+
title: "Copy email",
|
|
302
|
+
children: j ? /* @__PURE__ */ w(u, {
|
|
303
|
+
size: 12,
|
|
304
|
+
className: "text-status-success-text"
|
|
305
|
+
}) : /* @__PURE__ */ w(ae, {
|
|
306
|
+
size: 12,
|
|
307
|
+
className: "text-[var(--color-text-secondary)]"
|
|
308
|
+
})
|
|
309
|
+
})]
|
|
310
|
+
})]
|
|
311
|
+
})]
|
|
312
|
+
}),
|
|
313
|
+
K.phone && /* @__PURE__ */ T("div", {
|
|
314
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
315
|
+
children: [/* @__PURE__ */ w("div", {
|
|
316
|
+
className: "w-9 h-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
317
|
+
children: /* @__PURE__ */ w(ue, {
|
|
318
|
+
size: 16,
|
|
319
|
+
className: "text-status-success-text"
|
|
320
|
+
})
|
|
321
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
322
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
323
|
+
children: "Phone"
|
|
324
|
+
}), /* @__PURE__ */ w("a", {
|
|
325
|
+
href: `tel:${K.phone}`,
|
|
326
|
+
className: "text-sm font-semibold text-[var(--color-text-primary)] hover:underline",
|
|
327
|
+
children: K.phone
|
|
328
|
+
})] })]
|
|
329
|
+
}),
|
|
330
|
+
/* @__PURE__ */ T("div", {
|
|
331
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
332
|
+
children: [/* @__PURE__ */ w("div", {
|
|
333
|
+
className: "w-9 h-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center",
|
|
334
|
+
children: /* @__PURE__ */ w(ne, {
|
|
335
|
+
size: 16,
|
|
336
|
+
className: "text-accent-blue"
|
|
337
|
+
})
|
|
338
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
339
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
340
|
+
children: "Position"
|
|
341
|
+
}), /* @__PURE__ */ w("p", {
|
|
342
|
+
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
343
|
+
children: K.position
|
|
344
|
+
})] })]
|
|
345
|
+
}),
|
|
346
|
+
K.department && /* @__PURE__ */ T("div", {
|
|
347
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
348
|
+
children: [/* @__PURE__ */ w("div", {
|
|
349
|
+
className: "w-9 h-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
350
|
+
children: /* @__PURE__ */ w(l, {
|
|
351
|
+
size: 16,
|
|
352
|
+
className: "text-accent-purple"
|
|
353
|
+
})
|
|
354
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
355
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
356
|
+
children: "Department"
|
|
357
|
+
}), /* @__PURE__ */ w("p", {
|
|
358
|
+
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
359
|
+
children: K.department
|
|
360
|
+
})] })]
|
|
361
|
+
}),
|
|
362
|
+
K.linkedinUrl && /* @__PURE__ */ T("div", {
|
|
363
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
364
|
+
children: [/* @__PURE__ */ w("div", {
|
|
365
|
+
className: "w-9 h-9 rounded-lg bg-status-info-bg-subtle flex items-center justify-center",
|
|
366
|
+
children: /* @__PURE__ */ w(ce, {
|
|
367
|
+
size: 16,
|
|
368
|
+
className: "text-accent-blue"
|
|
369
|
+
})
|
|
370
|
+
}), /* @__PURE__ */ T("div", {
|
|
371
|
+
className: "flex-1 min-w-0",
|
|
372
|
+
children: [/* @__PURE__ */ w("p", {
|
|
373
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
374
|
+
children: "LinkedIn"
|
|
375
|
+
}), Q ? /* @__PURE__ */ w("a", {
|
|
376
|
+
href: Q,
|
|
377
|
+
target: "_blank",
|
|
378
|
+
rel: "noopener noreferrer",
|
|
379
|
+
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
380
|
+
children: K.linkedinUrl
|
|
381
|
+
}) : /* @__PURE__ */ w("span", {
|
|
382
|
+
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
383
|
+
children: K.linkedinUrl
|
|
384
|
+
})]
|
|
385
|
+
})]
|
|
386
|
+
}),
|
|
387
|
+
K.portfolioUrl && /* @__PURE__ */ T("div", {
|
|
388
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
389
|
+
children: [/* @__PURE__ */ w("div", {
|
|
390
|
+
className: "w-9 h-9 rounded-lg bg-accent-indigo-subtle flex items-center justify-center",
|
|
391
|
+
children: /* @__PURE__ */ w(se, {
|
|
392
|
+
size: 16,
|
|
393
|
+
className: "text-accent-indigo"
|
|
394
|
+
})
|
|
395
|
+
}), /* @__PURE__ */ T("div", {
|
|
396
|
+
className: "flex-1 min-w-0",
|
|
397
|
+
children: [/* @__PURE__ */ w("p", {
|
|
398
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
399
|
+
children: "Portfolio"
|
|
400
|
+
}), $ ? /* @__PURE__ */ w("a", {
|
|
401
|
+
href: $,
|
|
402
|
+
target: "_blank",
|
|
403
|
+
rel: "noopener noreferrer",
|
|
404
|
+
className: "text-sm font-semibold text-[var(--color-text-link)] hover:underline truncate block",
|
|
405
|
+
children: K.portfolioUrl
|
|
406
|
+
}) : /* @__PURE__ */ w("span", {
|
|
407
|
+
className: "text-sm font-semibold text-[var(--color-text-primary)] truncate block",
|
|
408
|
+
children: K.portfolioUrl
|
|
409
|
+
})]
|
|
410
|
+
})]
|
|
411
|
+
}),
|
|
412
|
+
K.productId && R && /* @__PURE__ */ T("div", {
|
|
413
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
414
|
+
children: [/* @__PURE__ */ w("div", {
|
|
415
|
+
className: "w-9 h-9 rounded-lg bg-accent-purple-subtle flex items-center justify-center",
|
|
416
|
+
children: /* @__PURE__ */ w(le, {
|
|
417
|
+
size: 16,
|
|
418
|
+
className: "text-accent-purple"
|
|
419
|
+
})
|
|
420
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
421
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
422
|
+
children: "Product"
|
|
423
|
+
}), /* @__PURE__ */ w("p", {
|
|
424
|
+
className: "text-sm font-semibold text-[var(--color-text-primary)]",
|
|
425
|
+
children: R
|
|
426
|
+
})] })]
|
|
427
|
+
}),
|
|
428
|
+
/* @__PURE__ */ T("div", {
|
|
429
|
+
className: "flex items-center gap-3 p-3 rounded-lg bg-[var(--color-bg-muted)]/30",
|
|
430
|
+
children: [/* @__PURE__ */ w("div", {
|
|
431
|
+
className: "w-9 h-9 rounded-lg bg-status-success-bg-subtle flex items-center justify-center",
|
|
432
|
+
children: /* @__PURE__ */ w(oe, {
|
|
433
|
+
size: 16,
|
|
434
|
+
className: "text-status-success-text"
|
|
435
|
+
})
|
|
436
|
+
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
437
|
+
className: "text-[10px] font-medium text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
438
|
+
children: "Source"
|
|
439
|
+
}), /* @__PURE__ */ w("p", {
|
|
440
|
+
className: "text-sm font-semibold text-[var(--color-text-primary)] capitalize",
|
|
441
|
+
children: K.source.toLowerCase()
|
|
442
|
+
})] })]
|
|
443
|
+
})
|
|
444
|
+
]
|
|
445
|
+
})
|
|
446
|
+
})]
|
|
447
|
+
}),
|
|
448
|
+
K.coverLetter && /* @__PURE__ */ T("div", {
|
|
449
|
+
className: "bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-xl overflow-hidden shadow-sm",
|
|
450
|
+
children: [/* @__PURE__ */ w("div", {
|
|
451
|
+
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
452
|
+
children: /* @__PURE__ */ T("h2", {
|
|
453
|
+
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
454
|
+
children: [/* @__PURE__ */ w(m, { size: 14 }), "Cover Letter"]
|
|
455
|
+
})
|
|
456
|
+
}), /* @__PURE__ */ w("div", {
|
|
457
|
+
className: "p-5",
|
|
458
|
+
children: /* @__PURE__ */ w("p", {
|
|
459
|
+
className: "text-sm text-[var(--color-text-primary)] leading-relaxed whitespace-pre-wrap",
|
|
460
|
+
children: K.coverLetter
|
|
461
|
+
})
|
|
462
|
+
})]
|
|
463
|
+
}),
|
|
464
|
+
K.metadata && Object.keys(K.metadata).length > 0 && /* @__PURE__ */ T("div", {
|
|
465
|
+
className: "bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-xl overflow-hidden shadow-sm",
|
|
466
|
+
children: [/* @__PURE__ */ w("div", {
|
|
467
|
+
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
468
|
+
children: /* @__PURE__ */ T("h2", {
|
|
469
|
+
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
470
|
+
children: [/* @__PURE__ */ w(f, { size: 14 }), "Additional Data"]
|
|
471
|
+
})
|
|
472
|
+
}), /* @__PURE__ */ w("div", {
|
|
473
|
+
className: "p-5",
|
|
474
|
+
children: /* @__PURE__ */ w("div", {
|
|
475
|
+
className: "space-y-2.5",
|
|
476
|
+
children: Object.entries(K.metadata).map(([e, t]) => /* @__PURE__ */ T("div", {
|
|
477
|
+
className: "flex items-start gap-3 py-1.5 border-b border-[var(--color-border-default)] last:border-0",
|
|
478
|
+
children: [/* @__PURE__ */ w("span", {
|
|
479
|
+
className: "text-xs font-medium text-[var(--color-text-secondary)] min-w-[120px] uppercase tracking-wider",
|
|
480
|
+
children: e
|
|
481
|
+
}), /* @__PURE__ */ w("span", {
|
|
482
|
+
className: "text-xs text-[var(--color-text-primary)] font-mono break-all",
|
|
483
|
+
children: typeof t == "object" && t ? JSON.stringify(t) : String(t)
|
|
484
|
+
})]
|
|
485
|
+
}, e))
|
|
486
|
+
})
|
|
487
|
+
})]
|
|
488
|
+
})
|
|
489
|
+
]
|
|
490
|
+
}), /* @__PURE__ */ T("div", {
|
|
491
|
+
className: "space-y-5",
|
|
492
|
+
children: [
|
|
493
|
+
/* @__PURE__ */ T("div", {
|
|
494
|
+
className: "bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-xl overflow-hidden shadow-sm",
|
|
495
|
+
children: [/* @__PURE__ */ w("div", {
|
|
496
|
+
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
497
|
+
children: /* @__PURE__ */ T("h2", {
|
|
498
|
+
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
499
|
+
children: [/* @__PURE__ */ w(m, { size: 14 }), "Resume"]
|
|
500
|
+
})
|
|
501
|
+
}), /* @__PURE__ */ w("div", {
|
|
502
|
+
className: "p-5",
|
|
503
|
+
children: K.resumeFileName ? /* @__PURE__ */ T(me, { children: [
|
|
504
|
+
/* @__PURE__ */ T("div", {
|
|
505
|
+
className: "flex items-center gap-3 mb-3",
|
|
506
|
+
children: [/* @__PURE__ */ w("div", {
|
|
507
|
+
className: "w-9 h-9 rounded-lg bg-accent-blue-subtle flex items-center justify-center flex-shrink-0",
|
|
508
|
+
children: /* @__PURE__ */ w(m, {
|
|
509
|
+
size: 16,
|
|
510
|
+
className: "text-accent-blue"
|
|
511
|
+
})
|
|
512
|
+
}), /* @__PURE__ */ T("div", {
|
|
513
|
+
className: "min-w-0",
|
|
514
|
+
children: [/* @__PURE__ */ w("p", {
|
|
515
|
+
className: "text-sm font-medium text-[var(--color-text-primary)] truncate",
|
|
516
|
+
children: K.resumeFileName
|
|
517
|
+
}), Z && /* @__PURE__ */ w("p", {
|
|
518
|
+
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
519
|
+
children: Z
|
|
520
|
+
})]
|
|
521
|
+
})]
|
|
522
|
+
}),
|
|
523
|
+
/* @__PURE__ */ T("button", {
|
|
524
|
+
onClick: Ce,
|
|
525
|
+
disabled: W,
|
|
526
|
+
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",
|
|
527
|
+
children: [W ? /* @__PURE__ */ w(g, {
|
|
528
|
+
size: 15,
|
|
529
|
+
className: "animate-spin"
|
|
530
|
+
}) : /* @__PURE__ */ w(d, { size: 15 }), "Download Resume"]
|
|
531
|
+
}),
|
|
532
|
+
N && /* @__PURE__ */ w("p", {
|
|
533
|
+
className: "mt-2 text-xs text-status-error-text",
|
|
534
|
+
children: "Could not generate a download link. Please try again."
|
|
535
|
+
})
|
|
536
|
+
] }) : /* @__PURE__ */ w("p", {
|
|
537
|
+
className: "text-sm text-[var(--color-text-secondary)]",
|
|
538
|
+
children: "No resume on file."
|
|
539
|
+
})
|
|
540
|
+
})]
|
|
541
|
+
}),
|
|
542
|
+
/* @__PURE__ */ T("div", {
|
|
543
|
+
className: "bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-xl overflow-hidden shadow-sm",
|
|
544
|
+
children: [/* @__PURE__ */ w("div", {
|
|
545
|
+
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
546
|
+
children: /* @__PURE__ */ T("h2", {
|
|
547
|
+
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-2",
|
|
548
|
+
children: [/* @__PURE__ */ w(re, { size: 14 }), "Timeline"]
|
|
549
|
+
})
|
|
550
|
+
}), /* @__PURE__ */ T("div", {
|
|
551
|
+
className: "p-5 space-y-4",
|
|
552
|
+
children: [/* @__PURE__ */ T("div", {
|
|
553
|
+
className: "flex items-start gap-3",
|
|
554
|
+
children: [/* @__PURE__ */ w("div", { className: "w-2 h-2 rounded-full bg-accent-blue mt-1.5 flex-shrink-0" }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
555
|
+
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
556
|
+
children: "Applied"
|
|
557
|
+
}), /* @__PURE__ */ w("p", {
|
|
558
|
+
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
559
|
+
children: D(K.createdAt)
|
|
560
|
+
})] })]
|
|
561
|
+
}), K.updatedAt !== K.createdAt && /* @__PURE__ */ T("div", {
|
|
562
|
+
className: "flex items-start gap-3",
|
|
563
|
+
children: [/* @__PURE__ */ w("div", { className: "w-2 h-2 rounded-full bg-status-warning-bg mt-1.5 flex-shrink-0" }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
564
|
+
className: "text-xs font-medium text-[var(--color-text-primary)]",
|
|
565
|
+
children: "Last Updated"
|
|
566
|
+
}), /* @__PURE__ */ w("p", {
|
|
567
|
+
className: "text-[11px] text-[var(--color-text-secondary)]",
|
|
568
|
+
children: D(K.updatedAt)
|
|
569
|
+
})] })]
|
|
570
|
+
})]
|
|
571
|
+
})]
|
|
572
|
+
}),
|
|
573
|
+
/* @__PURE__ */ T("div", {
|
|
574
|
+
className: "bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-xl overflow-hidden shadow-sm",
|
|
575
|
+
children: [/* @__PURE__ */ w("div", {
|
|
576
|
+
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
577
|
+
children: /* @__PURE__ */ T("h2", {
|
|
578
|
+
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider flex items-center gap-1.5",
|
|
579
|
+
children: [/* @__PURE__ */ w(v, { size: 12 }), "Reply"]
|
|
580
|
+
})
|
|
581
|
+
}), /* @__PURE__ */ T("div", {
|
|
582
|
+
className: "p-5",
|
|
583
|
+
children: [
|
|
584
|
+
_e && /* @__PURE__ */ T("div", {
|
|
585
|
+
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",
|
|
586
|
+
children: [/* @__PURE__ */ w(u, { size: 14 }), "Reply sent to the applicant!"]
|
|
587
|
+
}),
|
|
588
|
+
/* @__PURE__ */ w("textarea", {
|
|
589
|
+
value: F,
|
|
590
|
+
onChange: (e) => I(e.target.value),
|
|
591
|
+
placeholder: "Type your reply… This will be sent as a branded email to the applicant.",
|
|
592
|
+
rows: 4,
|
|
593
|
+
disabled: G,
|
|
594
|
+
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)] placeholder:text-[var(--color-text-secondary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-border-accent)]/50 disabled:opacity-50 resize-none transition-all"
|
|
595
|
+
}),
|
|
596
|
+
/* @__PURE__ */ T("button", {
|
|
597
|
+
onClick: Se,
|
|
598
|
+
disabled: G || !F.trim(),
|
|
599
|
+
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",
|
|
600
|
+
children: [G ? /* @__PURE__ */ w(g, {
|
|
601
|
+
size: 15,
|
|
602
|
+
className: "animate-spin"
|
|
603
|
+
}) : /* @__PURE__ */ w(v, { size: 15 }), "Send Reply"]
|
|
604
|
+
})
|
|
605
|
+
]
|
|
606
|
+
})]
|
|
607
|
+
}),
|
|
608
|
+
/* @__PURE__ */ T("div", {
|
|
609
|
+
className: "bg-[var(--color-bg-surface)] border border-[var(--color-border-default)] rounded-xl overflow-hidden shadow-sm",
|
|
610
|
+
children: [/* @__PURE__ */ w("div", {
|
|
611
|
+
className: "px-5 py-3.5 border-b border-[var(--color-border-default)] bg-[var(--color-bg-muted)]/50",
|
|
612
|
+
children: /* @__PURE__ */ w("h2", {
|
|
613
|
+
className: "text-xs font-semibold text-[var(--color-text-secondary)] uppercase tracking-wider",
|
|
614
|
+
children: "Actions"
|
|
615
|
+
})
|
|
616
|
+
}), /* @__PURE__ */ T("div", {
|
|
617
|
+
className: "p-5 space-y-4",
|
|
618
|
+
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("label", {
|
|
619
|
+
className: "block text-xs font-medium text-[var(--color-text-secondary)] mb-1.5",
|
|
620
|
+
children: "Status"
|
|
621
|
+
}), /* @__PURE__ */ T("select", {
|
|
622
|
+
value: K.status,
|
|
623
|
+
onChange: (e) => q(e.target.value),
|
|
624
|
+
disabled: U,
|
|
625
|
+
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",
|
|
626
|
+
children: [
|
|
627
|
+
/* @__PURE__ */ w("option", {
|
|
628
|
+
value: "NEW",
|
|
629
|
+
children: "New"
|
|
630
|
+
}),
|
|
631
|
+
/* @__PURE__ */ w("option", {
|
|
632
|
+
value: "SCREENING",
|
|
633
|
+
children: "Screening"
|
|
634
|
+
}),
|
|
635
|
+
/* @__PURE__ */ w("option", {
|
|
636
|
+
value: "SHORTLISTED",
|
|
637
|
+
children: "Shortlisted"
|
|
638
|
+
}),
|
|
639
|
+
/* @__PURE__ */ w("option", {
|
|
640
|
+
value: "INTERVIEW",
|
|
641
|
+
children: "Interview"
|
|
642
|
+
}),
|
|
643
|
+
/* @__PURE__ */ w("option", {
|
|
644
|
+
value: "HIRED",
|
|
645
|
+
children: "Hired"
|
|
646
|
+
}),
|
|
647
|
+
/* @__PURE__ */ w("option", {
|
|
648
|
+
value: "REJECTED",
|
|
649
|
+
children: "Rejected"
|
|
650
|
+
}),
|
|
651
|
+
/* @__PURE__ */ w("option", {
|
|
652
|
+
value: "ARCHIVED",
|
|
653
|
+
children: "Archived"
|
|
654
|
+
})
|
|
655
|
+
]
|
|
656
|
+
})] }), /* @__PURE__ */ T("div", {
|
|
657
|
+
className: "space-y-2",
|
|
658
|
+
children: [/* @__PURE__ */ T("a", {
|
|
659
|
+
href: `mailto:${K.email}?subject=${encodeURIComponent(`Your application for ${K.position}`)}`,
|
|
660
|
+
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",
|
|
661
|
+
children: [/* @__PURE__ */ w(_, { size: 15 }), "Email Applicant"]
|
|
662
|
+
}), K.status !== "ARCHIVED" && /* @__PURE__ */ T("button", {
|
|
663
|
+
onClick: () => q("ARCHIVED"),
|
|
664
|
+
disabled: U,
|
|
665
|
+
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",
|
|
666
|
+
children: [/* @__PURE__ */ w(s, { size: 15 }), "Archive"]
|
|
667
|
+
})]
|
|
668
|
+
})]
|
|
669
|
+
})]
|
|
670
|
+
})
|
|
671
|
+
]
|
|
672
|
+
})]
|
|
673
|
+
})
|
|
674
|
+
]
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
//#endregion
|
|
678
|
+
export { k as JobApplicationDetailPage };
|
|
679
|
+
|
|
680
|
+
//# sourceMappingURL=JobApplicationDetailPage.js.map
|