@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.
- package/dist/generated/global-operations.d.ts +62 -0
- package/dist/generated/global-operations.js +104 -69
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js +17 -15
- package/dist/generated/global-types.js.map +1 -1
- package/dist/support/SupportUserRoot.js +32 -28
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.d.ts +1 -0
- package/dist/support/SupportUserRoutes.js +31 -28
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/PageLayout.js +35 -35
- package/dist/support/components/RouteHelpers.d.ts +2 -1
- package/dist/support/components/RouteHelpers.js +3 -3
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/help/RelatedArticles.d.ts +12 -0
- package/dist/support/components/help/RelatedArticles.js +55 -0
- package/dist/support/components/help/RelatedArticles.js.map +1 -0
- package/dist/support/components/help/RequestDetailHeader.d.ts +18 -0
- package/dist/support/components/help/RequestDetailHeader.js +129 -0
- package/dist/support/components/help/RequestDetailHeader.js.map +1 -0
- package/dist/support/components/help/SatisfactionReview.d.ts +18 -0
- package/dist/support/components/help/SatisfactionReview.js +103 -0
- package/dist/support/components/help/SatisfactionReview.js.map +1 -0
- package/dist/support/components/help/StarRating.d.ts +16 -0
- package/dist/support/components/help/StarRating.js +63 -0
- package/dist/support/components/help/StarRating.js.map +1 -0
- package/dist/support/components/help/StatusGroupPill.d.ts +11 -0
- package/dist/support/components/help/StatusGroupPill.js +19 -0
- package/dist/support/components/help/StatusGroupPill.js.map +1 -0
- package/dist/support/components/settings/TicketCategoriesSettings.js +69 -69
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +7 -7
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +54 -60
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/ui.js +1 -1
- package/dist/support/constants.d.ts +23 -0
- package/dist/support/constants.js +2 -2
- package/dist/support/constants.js.map +1 -1
- package/dist/support/hooks/useDebouncedValue.d.ts +6 -0
- package/dist/support/hooks/useDebouncedValue.js +12 -0
- package/dist/support/hooks/useDebouncedValue.js.map +1 -0
- package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +8 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js +86 -81
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useSupportVariant.d.ts +11 -0
- package/dist/support/hooks/useSupportVariant.js +11 -0
- package/dist/support/hooks/useSupportVariant.js.map +1 -0
- package/dist/support/hooks/useTicketCreatedToast.d.ts +16 -0
- package/dist/support/hooks/useTicketCreatedToast.js +25 -0
- package/dist/support/hooks/useTicketCreatedToast.js.map +1 -0
- package/dist/support/hooks/useTicketLabels.d.ts +22 -0
- package/dist/support/hooks/useTicketLabels.js +40 -0
- package/dist/support/hooks/useTicketLabels.js.map +1 -0
- package/dist/support/index.d.ts +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +84 -84
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.d.ts +5 -0
- package/dist/support/pages/ArticleDetailUserPage.js +133 -69
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/AskForHelpPage.d.ts +11 -0
- package/dist/support/pages/AskForHelpPage.js +396 -0
- package/dist/support/pages/AskForHelpPage.js.map +1 -0
- package/dist/support/pages/ContactInquiriesPage.js +73 -73
- package/dist/support/pages/ContactInquiryDetailPage.js +47 -47
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.d.ts +4 -0
- package/dist/support/pages/CreateTicketPage.js +121 -117
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/HelpHubPage.d.ts +9 -0
- package/dist/support/pages/HelpHubPage.js +272 -0
- package/dist/support/pages/HelpHubPage.js.map +1 -0
- package/dist/support/pages/JobApplicationDetailPage.js +388 -388
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +35 -35
- package/dist/support/pages/JobPostingDetailPage.js +236 -236
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.d.ts +6 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +188 -137
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/MyRequestsPage.d.ts +16 -0
- package/dist/support/pages/MyRequestsPage.js +389 -0
- package/dist/support/pages/MyRequestsPage.js.map +1 -0
- package/dist/support/pages/TicketDetailUserPage.d.ts +5 -0
- package/dist/support/pages/TicketDetailUserPage.js +285 -192
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.d.ts +7 -0
- package/dist/support/pages/TicketListPage.js +150 -153
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js +8 -7
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.d.ts +5 -0
- package/dist/support/store/supportStore.js +1 -0
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/translations/en.d.ts +279 -0
- package/dist/support/translations/en.js +270 -1
- package/dist/support/translations/en.js.map +1 -1
- package/dist/support/types/index.d.ts +13 -0
- package/dist/support/utils/cameFrom.d.ts +16 -0
- package/dist/support/utils/cameFrom.js +22 -0
- package/dist/support/utils/cameFrom.js.map +1 -0
- package/dist/support/utils/dates.d.ts +15 -0
- package/dist/support/utils/dates.js +35 -0
- package/dist/support/utils/dates.js.map +1 -0
- package/dist/support/utils/reopen.d.ts +27 -0
- package/dist/support/utils/reopen.js +27 -0
- package/dist/support/utils/reopen.js.map +1 -0
- package/dist/support/utils/requestTechnicalDetails.d.ts +13 -0
- package/dist/support/utils/requestTechnicalDetails.js +38 -0
- package/dist/support/utils/requestTechnicalDetails.js.map +1 -0
- package/dist/support/utils/ticketFilters.d.ts +16 -0
- package/dist/support/utils/ticketFilters.js +24 -12
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/ticketStatusGroups.d.ts +20 -0
- package/dist/support/utils/ticketStatusGroups.js +39 -0
- package/dist/support/utils/ticketStatusGroups.js.map +1 -0
- package/package.json +2 -2
|
@@ -3,13 +3,13 @@ import { useCreateInterviewRoundConfigMutation as t, useCreateJobAssignmentMutat
|
|
|
3
3
|
import { EmploymentType as r, InterviewRoundType as i, JobPostingStatus as a } from "../../generated/global-types.js";
|
|
4
4
|
import { EmptyState as o, LoadingState as oe, PageLayout as s } from "../components/PageLayout.js";
|
|
5
5
|
import { Badge as c, Button as l, Tabs as se, TabsContent as u, TabsList as ce, TabsTrigger as d } from "../components/ui.js";
|
|
6
|
-
import { RichTextEditor as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { useEffect as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
6
|
+
import { RichTextEditor as f } from "../components/careers/RichTextEditor.js";
|
|
7
|
+
import { cn as p } from "../utils/cn.js";
|
|
8
|
+
import { useEffect as le, useRef as m, useState as h } from "react";
|
|
9
|
+
import { AlertDialog as ue, AlertDialogAction as de, AlertDialogCancel as fe, AlertDialogContent as pe, AlertDialogDescription as me, AlertDialogFooter as he, AlertDialogHeader as ge, AlertDialogTitle as g, ResponsiveDialog as _, ResponsiveDialogContent as v, ResponsiveDialogHeader as y, ResponsiveDialogTitle as b } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
import { AlertCircle as _e, ArrowLeft as ve, Briefcase as x, Building2 as ye, Check as S, CheckCircle as be, Clock as xe, Edit2 as C, FileText as Se, Layers as Ce, Loader2 as w, MapPin as we, Plus as T, Trash2 as Te, Users as Ee, X as E } from "lucide-react";
|
|
11
|
+
import { useNavigate as De, useParams as Oe } from "react-router";
|
|
12
|
+
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
13
13
|
// src/support/pages/JobPostingDetailPage.tsx
|
|
14
14
|
var ke = {
|
|
15
15
|
[a.Draft]: {
|
|
@@ -72,7 +72,7 @@ function j(e) {
|
|
|
72
72
|
}
|
|
73
73
|
function Fe() {
|
|
74
74
|
let [e, t] = h(null), n = m(null);
|
|
75
|
-
return
|
|
75
|
+
return le(() => () => {
|
|
76
76
|
n.current && clearTimeout(n.current);
|
|
77
77
|
}, []), {
|
|
78
78
|
notification: e,
|
|
@@ -85,7 +85,7 @@ function Fe() {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
function M() {
|
|
88
|
-
let { id: m } =
|
|
88
|
+
let { id: m } = Oe(), M = De(), { notification: N, show: P } = Fe(), [Ie, Le] = h("rounds"), [Re, F] = h(!1), [ze, I] = h(!1), [L, R] = h(null), [z, B] = h({
|
|
89
89
|
name: "",
|
|
90
90
|
roundType: i.Technical,
|
|
91
91
|
description: "",
|
|
@@ -116,7 +116,7 @@ function M() {
|
|
|
116
116
|
learnings: "",
|
|
117
117
|
qualifications: ""
|
|
118
118
|
});
|
|
119
|
-
if (
|
|
119
|
+
if (le(() => {
|
|
120
120
|
X && Q({
|
|
121
121
|
title: X.title,
|
|
122
122
|
department: X.department ?? "",
|
|
@@ -132,22 +132,22 @@ function M() {
|
|
|
132
132
|
learnings: j(X.learnings),
|
|
133
133
|
qualifications: j(X.qualifications)
|
|
134
134
|
});
|
|
135
|
-
}, [X]), He) return /* @__PURE__ */
|
|
135
|
+
}, [X]), He) return /* @__PURE__ */ O(s, {
|
|
136
136
|
title: "Job Posting",
|
|
137
137
|
subtitle: "Loading posting details…",
|
|
138
|
-
icon: /* @__PURE__ */
|
|
139
|
-
children: /* @__PURE__ */
|
|
138
|
+
icon: /* @__PURE__ */ O(x, { size: 24 }),
|
|
139
|
+
children: /* @__PURE__ */ O(oe, { message: "Loading job posting…" })
|
|
140
140
|
});
|
|
141
|
-
if (Ue || !X) return /* @__PURE__ */
|
|
141
|
+
if (Ue || !X) return /* @__PURE__ */ O(s, {
|
|
142
142
|
title: "Job Posting",
|
|
143
|
-
icon: /* @__PURE__ */
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
-
icon: /* @__PURE__ */
|
|
143
|
+
icon: /* @__PURE__ */ O(x, { size: 24 }),
|
|
144
|
+
children: /* @__PURE__ */ O(o, {
|
|
145
|
+
icon: /* @__PURE__ */ O(_e, { size: 48 }),
|
|
146
146
|
title: "Posting not found",
|
|
147
147
|
description: Ue?.message || "This job posting may have been deleted or you don't have access.",
|
|
148
|
-
action: /* @__PURE__ */
|
|
148
|
+
action: /* @__PURE__ */ k(l, {
|
|
149
149
|
onClick: () => M("/support/applications/postings"),
|
|
150
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ O(ve, { size: 16 }), "Back to Postings"]
|
|
151
151
|
})
|
|
152
152
|
})
|
|
153
153
|
});
|
|
@@ -248,112 +248,112 @@ function M() {
|
|
|
248
248
|
}, pt = () => {
|
|
249
249
|
V(!1), U(null);
|
|
250
250
|
};
|
|
251
|
-
return /* @__PURE__ */
|
|
251
|
+
return /* @__PURE__ */ k(s, {
|
|
252
252
|
title: X.title,
|
|
253
253
|
subtitle: "Manage interview rounds, take-home assignments and applications for this posting.",
|
|
254
|
-
icon: /* @__PURE__ */
|
|
255
|
-
headerActions: /* @__PURE__ */
|
|
254
|
+
icon: /* @__PURE__ */ O(x, { size: 24 }),
|
|
255
|
+
headerActions: /* @__PURE__ */ k("div", {
|
|
256
256
|
className: "flex items-center gap-2",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ k(l, {
|
|
258
258
|
variant: "outline",
|
|
259
259
|
onClick: () => M("/support/applications/postings"),
|
|
260
|
-
children: [/* @__PURE__ */
|
|
261
|
-
}), /* @__PURE__ */
|
|
260
|
+
children: [/* @__PURE__ */ O(ve, { size: 16 }), "Back"]
|
|
261
|
+
}), /* @__PURE__ */ k(l, {
|
|
262
262
|
onClick: () => F(!0),
|
|
263
|
-
children: [/* @__PURE__ */ C
|
|
263
|
+
children: [/* @__PURE__ */ O(C, { size: 16 }), "Edit Posting"]
|
|
264
264
|
})]
|
|
265
265
|
}),
|
|
266
266
|
children: [
|
|
267
|
-
N && /* @__PURE__ */
|
|
268
|
-
className:
|
|
269
|
-
children: [N.type === "success" ? /* @__PURE__ */
|
|
267
|
+
N && /* @__PURE__ */ k("div", {
|
|
268
|
+
className: p("fixed right-4 top-[calc(var(--header-height,4rem)+1rem)] z-[200] flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200", N.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-subtle" : "bg-status-error-bg-subtle text-status-error-text border-border-subtle"),
|
|
269
|
+
children: [N.type === "success" ? /* @__PURE__ */ O(be, {
|
|
270
270
|
size: 20,
|
|
271
271
|
className: "text-status-success-text"
|
|
272
|
-
}) : /* @__PURE__ */
|
|
272
|
+
}) : /* @__PURE__ */ O(_e, {
|
|
273
273
|
size: 20,
|
|
274
274
|
className: "text-status-error-text"
|
|
275
|
-
}), /* @__PURE__ */
|
|
275
|
+
}), /* @__PURE__ */ O("span", {
|
|
276
276
|
className: "font-medium",
|
|
277
277
|
children: N.message
|
|
278
278
|
})]
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ k("div", {
|
|
281
281
|
className: "rounded-xl border border-border-seam bg-bg-surface p-6 shadow-[var(--shadow-pop)]",
|
|
282
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ O("div", {
|
|
283
283
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
284
|
-
children: /* @__PURE__ */
|
|
284
|
+
children: /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("div", {
|
|
285
285
|
className: "flex items-center gap-3 mb-2 flex-wrap",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
286
|
+
children: [/* @__PURE__ */ O("h1", {
|
|
287
287
|
className: "text-xl font-bold text-text-primary",
|
|
288
288
|
children: X.title
|
|
289
|
-
}), /* @__PURE__ */
|
|
289
|
+
}), /* @__PURE__ */ O(c, {
|
|
290
290
|
variant: it.variant,
|
|
291
291
|
children: it.label
|
|
292
292
|
})]
|
|
293
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ k("div", {
|
|
294
294
|
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-text-secondary",
|
|
295
295
|
children: [
|
|
296
|
-
X.department && /* @__PURE__ */
|
|
296
|
+
X.department && /* @__PURE__ */ k("span", {
|
|
297
297
|
className: "flex items-center gap-1.5",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ O(ye, { size: 14 }), X.department]
|
|
299
299
|
}),
|
|
300
|
-
X.location && /* @__PURE__ */
|
|
300
|
+
X.location && /* @__PURE__ */ k("span", {
|
|
301
301
|
className: "flex items-center gap-1.5",
|
|
302
|
-
children: [/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ O(we, { size: 14 }), X.location]
|
|
303
303
|
}),
|
|
304
|
-
X.employmentType && /* @__PURE__ */
|
|
304
|
+
X.employmentType && /* @__PURE__ */ k("span", {
|
|
305
305
|
className: "flex items-center gap-1.5",
|
|
306
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ O(xe, { size: 14 }), Ae[X.employmentType]]
|
|
307
307
|
}),
|
|
308
|
-
X.productId && /* @__PURE__ */
|
|
308
|
+
X.productId && /* @__PURE__ */ k("span", {
|
|
309
309
|
className: "flex items-center gap-1.5",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ O(Ce, { size: 14 }), X.productId]
|
|
311
311
|
})
|
|
312
312
|
]
|
|
313
313
|
})] })
|
|
314
|
-
}), X.description && /* @__PURE__ */
|
|
314
|
+
}), X.description && /* @__PURE__ */ O("p", {
|
|
315
315
|
className: "mt-4 text-sm text-text-primary leading-relaxed whitespace-pre-wrap",
|
|
316
316
|
children: X.description
|
|
317
317
|
})]
|
|
318
318
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ k(se, {
|
|
320
320
|
value: Ie,
|
|
321
321
|
onValueChange: Le,
|
|
322
322
|
children: [
|
|
323
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ k(ce, {
|
|
324
324
|
className: "mb-6",
|
|
325
325
|
children: [
|
|
326
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ k(d, {
|
|
327
327
|
value: "rounds",
|
|
328
328
|
className: "flex items-center gap-1.5",
|
|
329
329
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ O(Ee, { size: 14 }),
|
|
331
331
|
"Interview Rounds",
|
|
332
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ O("span", {
|
|
333
333
|
className: "ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary",
|
|
334
334
|
children: X.rounds.length
|
|
335
335
|
})
|
|
336
336
|
]
|
|
337
337
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ k(d, {
|
|
339
339
|
value: "assignments",
|
|
340
340
|
className: "flex items-center gap-1.5",
|
|
341
341
|
children: [
|
|
342
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ O(Se, { size: 14 }),
|
|
343
343
|
"Assignments",
|
|
344
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ O("span", {
|
|
345
345
|
className: "ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary",
|
|
346
346
|
children: X.assignments.length
|
|
347
347
|
})
|
|
348
348
|
]
|
|
349
349
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ k(d, {
|
|
351
351
|
value: "applications",
|
|
352
352
|
className: "flex items-center gap-1.5",
|
|
353
353
|
children: [
|
|
354
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ O(x, { size: 14 }),
|
|
355
355
|
"Applications",
|
|
356
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ O("span", {
|
|
357
357
|
className: "ml-1 inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-bg-sunken text-text-secondary",
|
|
358
358
|
children: X.applications.length
|
|
359
359
|
})
|
|
@@ -361,214 +361,214 @@ function M() {
|
|
|
361
361
|
})
|
|
362
362
|
]
|
|
363
363
|
}),
|
|
364
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ k(u, {
|
|
365
365
|
value: "rounds",
|
|
366
366
|
className: "space-y-4",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ k("div", {
|
|
368
368
|
className: "flex items-center justify-between",
|
|
369
|
-
children: [/* @__PURE__ */
|
|
369
|
+
children: [/* @__PURE__ */ O("h2", {
|
|
370
370
|
className: "text-lg font-semibold text-text-primary",
|
|
371
371
|
children: "Interview Rounds"
|
|
372
|
-
}), /* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ k(l, {
|
|
373
373
|
onClick: ot,
|
|
374
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ O(T, { size: 16 }), "Add Round"]
|
|
375
375
|
})]
|
|
376
|
-
}), $.length === 0 ? /* @__PURE__ */
|
|
377
|
-
icon: /* @__PURE__ */
|
|
376
|
+
}), $.length === 0 ? /* @__PURE__ */ O(o, {
|
|
377
|
+
icon: /* @__PURE__ */ O(Ee, { size: 48 }),
|
|
378
378
|
title: "No rounds configured",
|
|
379
379
|
description: "Add interview rounds to define your hiring pipeline for this posting.",
|
|
380
|
-
action: /* @__PURE__ */
|
|
380
|
+
action: /* @__PURE__ */ k(l, {
|
|
381
381
|
onClick: ot,
|
|
382
|
-
children: [/* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ O(T, { size: 16 }), "Add Round"]
|
|
383
383
|
})
|
|
384
|
-
}) : /* @__PURE__ */
|
|
384
|
+
}) : /* @__PURE__ */ O("div", {
|
|
385
385
|
className: "space-y-3",
|
|
386
|
-
children: $.map((e, t) => /* @__PURE__ */
|
|
386
|
+
children: $.map((e, t) => /* @__PURE__ */ k("div", {
|
|
387
387
|
className: "p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] flex flex-col sm:flex-row sm:items-center gap-4",
|
|
388
388
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ O("div", {
|
|
390
390
|
className: "flex-shrink-0 size-10 rounded-full bg-bg-sunken flex items-center justify-center text-sm font-bold text-text-secondary",
|
|
391
391
|
children: t + 1
|
|
392
392
|
}),
|
|
393
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ k("div", {
|
|
394
394
|
className: "flex-1 min-w-0",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ k("div", {
|
|
396
396
|
className: "flex items-center gap-2 flex-wrap",
|
|
397
397
|
children: [
|
|
398
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ O("h3", {
|
|
399
399
|
className: "font-semibold text-text-primary",
|
|
400
400
|
children: e.name
|
|
401
401
|
}),
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ O(c, {
|
|
403
403
|
variant: "secondary",
|
|
404
404
|
children: je[e.roundType]
|
|
405
405
|
}),
|
|
406
|
-
e.isAssignmentRound && /* @__PURE__ */
|
|
406
|
+
e.isAssignmentRound && /* @__PURE__ */ O(c, {
|
|
407
407
|
variant: "outline",
|
|
408
408
|
children: "Assignment"
|
|
409
409
|
}),
|
|
410
|
-
e.isRequired && /* @__PURE__ */
|
|
410
|
+
e.isRequired && /* @__PURE__ */ k("span", {
|
|
411
411
|
className: "inline-flex items-center gap-1 text-xs text-status-success-text",
|
|
412
|
-
children: [/* @__PURE__ */
|
|
412
|
+
children: [/* @__PURE__ */ O(S, { size: 12 }), "Required"]
|
|
413
413
|
})
|
|
414
414
|
]
|
|
415
|
-
}), e.description && /* @__PURE__ */
|
|
415
|
+
}), e.description && /* @__PURE__ */ O("p", {
|
|
416
416
|
className: "text-sm text-text-secondary mt-1 line-clamp-2",
|
|
417
417
|
children: e.description
|
|
418
418
|
})]
|
|
419
419
|
}),
|
|
420
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ k("div", {
|
|
421
421
|
className: "flex items-center gap-1",
|
|
422
|
-
children: [/* @__PURE__ */
|
|
422
|
+
children: [/* @__PURE__ */ O("button", {
|
|
423
423
|
type: "button",
|
|
424
424
|
onClick: () => st(e),
|
|
425
425
|
className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors",
|
|
426
426
|
"aria-label": "Edit round config",
|
|
427
427
|
title: "Edit round config",
|
|
428
|
-
children: /* @__PURE__ */ C
|
|
429
|
-
}), /* @__PURE__ */
|
|
428
|
+
children: /* @__PURE__ */ O(C, { size: 16 })
|
|
429
|
+
}), /* @__PURE__ */ O("button", {
|
|
430
430
|
type: "button",
|
|
431
431
|
onClick: () => q(e.id),
|
|
432
432
|
disabled: Ze,
|
|
433
433
|
className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50",
|
|
434
434
|
"aria-label": "Delete round config",
|
|
435
435
|
title: "Delete round config",
|
|
436
|
-
children: Ze && K === e.id ? /* @__PURE__ */
|
|
436
|
+
children: Ze && K === e.id ? /* @__PURE__ */ O(w, {
|
|
437
437
|
size: 16,
|
|
438
438
|
className: "animate-spin"
|
|
439
|
-
}) : /* @__PURE__ */
|
|
439
|
+
}) : /* @__PURE__ */ O(Te, { size: 16 })
|
|
440
440
|
})]
|
|
441
441
|
})
|
|
442
442
|
]
|
|
443
443
|
}, e.id))
|
|
444
444
|
})]
|
|
445
445
|
}),
|
|
446
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ k(u, {
|
|
447
447
|
value: "assignments",
|
|
448
448
|
className: "space-y-4",
|
|
449
|
-
children: [/* @__PURE__ */
|
|
449
|
+
children: [/* @__PURE__ */ k("div", {
|
|
450
450
|
className: "flex items-center justify-between",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ O("h2", {
|
|
452
452
|
className: "text-lg font-semibold text-text-primary",
|
|
453
453
|
children: "Take-home Assignments"
|
|
454
|
-
}), /* @__PURE__ */
|
|
454
|
+
}), /* @__PURE__ */ k(l, {
|
|
455
455
|
onClick: dt,
|
|
456
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ O(T, { size: 16 }), "Add Assignment"]
|
|
457
457
|
})]
|
|
458
|
-
}), X.assignments.length === 0 ? /* @__PURE__ */
|
|
459
|
-
icon: /* @__PURE__ */
|
|
458
|
+
}), X.assignments.length === 0 ? /* @__PURE__ */ O(o, {
|
|
459
|
+
icon: /* @__PURE__ */ O(Se, { size: 48 }),
|
|
460
460
|
title: "No assignments configured",
|
|
461
461
|
description: "Add take-home assignments for candidates to complete during the hiring process.",
|
|
462
|
-
action: /* @__PURE__ */
|
|
462
|
+
action: /* @__PURE__ */ k(l, {
|
|
463
463
|
onClick: dt,
|
|
464
|
-
children: [/* @__PURE__ */
|
|
464
|
+
children: [/* @__PURE__ */ O(T, { size: 16 }), "Add Assignment"]
|
|
465
465
|
})
|
|
466
|
-
}) : /* @__PURE__ */
|
|
466
|
+
}) : /* @__PURE__ */ O("div", {
|
|
467
467
|
className: "space-y-3",
|
|
468
|
-
children: X.assignments.map((t) => /* @__PURE__ */
|
|
469
|
-
className:
|
|
470
|
-
children: [/* @__PURE__ */
|
|
468
|
+
children: X.assignments.map((t) => /* @__PURE__ */ k("div", {
|
|
469
|
+
className: p("p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] flex flex-col sm:flex-row sm:items-start gap-4", !t.isActive && "opacity-60"),
|
|
470
|
+
children: [/* @__PURE__ */ k("div", {
|
|
471
471
|
className: "flex-1 min-w-0",
|
|
472
472
|
children: [
|
|
473
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ k("div", {
|
|
474
474
|
className: "flex items-center gap-2 flex-wrap",
|
|
475
475
|
children: [
|
|
476
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ O("h3", {
|
|
477
477
|
className: "font-semibold text-text-primary",
|
|
478
478
|
children: t.title
|
|
479
479
|
}),
|
|
480
|
-
!t.isActive && /* @__PURE__ */
|
|
480
|
+
!t.isActive && /* @__PURE__ */ O(c, {
|
|
481
481
|
variant: "secondary",
|
|
482
482
|
children: "Inactive"
|
|
483
483
|
}),
|
|
484
|
-
t.difficulty && /* @__PURE__ */
|
|
484
|
+
t.difficulty && /* @__PURE__ */ O(c, {
|
|
485
485
|
variant: "outline",
|
|
486
486
|
children: t.difficulty
|
|
487
487
|
})
|
|
488
488
|
]
|
|
489
489
|
}),
|
|
490
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ O("div", {
|
|
491
491
|
className: "support-richtext text-sm text-text-secondary mt-1 line-clamp-2",
|
|
492
492
|
dangerouslySetInnerHTML: { __html: e.sanitize(t.description) }
|
|
493
493
|
}),
|
|
494
|
-
t.problemStatement && /* @__PURE__ */
|
|
494
|
+
t.problemStatement && /* @__PURE__ */ O("div", {
|
|
495
495
|
className: "support-richtext mt-3 p-3 rounded-lg bg-bg-sunken text-sm font-semibold text-text-primary",
|
|
496
496
|
dangerouslySetInnerHTML: { __html: e.sanitize(t.problemStatement) }
|
|
497
497
|
}),
|
|
498
|
-
t.ownerEmail && /* @__PURE__ */
|
|
498
|
+
t.ownerEmail && /* @__PURE__ */ k("p", {
|
|
499
499
|
className: "mt-2 text-xs text-text-secondary",
|
|
500
|
-
children: ["Owner: ", /* @__PURE__ */
|
|
500
|
+
children: ["Owner: ", /* @__PURE__ */ O("span", {
|
|
501
501
|
className: "text-text-primary",
|
|
502
502
|
children: t.ownerEmail
|
|
503
503
|
})]
|
|
504
504
|
})
|
|
505
505
|
]
|
|
506
|
-
}), /* @__PURE__ */
|
|
506
|
+
}), /* @__PURE__ */ k("div", {
|
|
507
507
|
className: "flex items-center gap-1",
|
|
508
|
-
children: [/* @__PURE__ */
|
|
508
|
+
children: [/* @__PURE__ */ O("button", {
|
|
509
509
|
type: "button",
|
|
510
510
|
onClick: () => ft(t),
|
|
511
511
|
className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors",
|
|
512
512
|
"aria-label": "Edit assignment",
|
|
513
513
|
title: "Edit assignment",
|
|
514
|
-
children: /* @__PURE__ */ C
|
|
515
|
-
}), /* @__PURE__ */
|
|
514
|
+
children: /* @__PURE__ */ O(C, { size: 16 })
|
|
515
|
+
}), /* @__PURE__ */ O("button", {
|
|
516
516
|
type: "button",
|
|
517
517
|
onClick: () => Y(t.id),
|
|
518
518
|
disabled: rt,
|
|
519
519
|
className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50",
|
|
520
520
|
"aria-label": "Delete assignment",
|
|
521
521
|
title: "Delete assignment",
|
|
522
|
-
children: rt && J === t.id ? /* @__PURE__ */
|
|
522
|
+
children: rt && J === t.id ? /* @__PURE__ */ O(w, {
|
|
523
523
|
size: 16,
|
|
524
524
|
className: "animate-spin"
|
|
525
|
-
}) : /* @__PURE__ */
|
|
525
|
+
}) : /* @__PURE__ */ O(Te, { size: 16 })
|
|
526
526
|
})]
|
|
527
527
|
})]
|
|
528
528
|
}, t.id))
|
|
529
529
|
})]
|
|
530
530
|
}),
|
|
531
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ k(u, {
|
|
532
532
|
value: "applications",
|
|
533
533
|
className: "space-y-4",
|
|
534
|
-
children: [/* @__PURE__ */
|
|
534
|
+
children: [/* @__PURE__ */ O("div", {
|
|
535
535
|
className: "flex items-center justify-between",
|
|
536
|
-
children: /* @__PURE__ */
|
|
536
|
+
children: /* @__PURE__ */ O("h2", {
|
|
537
537
|
className: "text-lg font-semibold text-text-primary",
|
|
538
538
|
children: "Applications"
|
|
539
539
|
})
|
|
540
|
-
}), X.applications.length === 0 ? /* @__PURE__ */
|
|
541
|
-
icon: /* @__PURE__ */
|
|
540
|
+
}), X.applications.length === 0 ? /* @__PURE__ */ O(o, {
|
|
541
|
+
icon: /* @__PURE__ */ O(x, { size: 48 }),
|
|
542
542
|
title: "No applications yet",
|
|
543
543
|
description: "Candidates who apply for this posting will appear here."
|
|
544
|
-
}) : /* @__PURE__ */
|
|
544
|
+
}) : /* @__PURE__ */ O("div", {
|
|
545
545
|
className: "space-y-3",
|
|
546
|
-
children: X.applications.map((e) => /* @__PURE__ */
|
|
546
|
+
children: X.applications.map((e) => /* @__PURE__ */ O("button", {
|
|
547
547
|
type: "button",
|
|
548
548
|
onClick: () => M(`/support/applications/${e.id}`),
|
|
549
549
|
className: "w-full text-left p-4 bg-bg-surface border border-border-seam rounded-xl shadow-[var(--shadow-pop)] hover:border-border-strong hover:shadow-[var(--shadow-pop-hover)] transition-[box-shadow,border-color] duration-200 group",
|
|
550
|
-
children: /* @__PURE__ */
|
|
550
|
+
children: /* @__PURE__ */ k("div", {
|
|
551
551
|
className: "flex items-start justify-between gap-4",
|
|
552
|
-
children: [/* @__PURE__ */
|
|
552
|
+
children: [/* @__PURE__ */ k("div", {
|
|
553
553
|
className: "flex-1 min-w-0",
|
|
554
|
-
children: [/* @__PURE__ */
|
|
554
|
+
children: [/* @__PURE__ */ k("div", {
|
|
555
555
|
className: "flex items-center gap-2 mb-1 flex-wrap",
|
|
556
|
-
children: [/* @__PURE__ */
|
|
556
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
557
557
|
className: "text-sm font-semibold text-text-primary group-hover:text-primary transition-colors",
|
|
558
558
|
children: [
|
|
559
559
|
e.firstName,
|
|
560
560
|
" ",
|
|
561
561
|
e.lastName
|
|
562
562
|
]
|
|
563
|
-
}), /* @__PURE__ */
|
|
564
|
-
className:
|
|
563
|
+
}), /* @__PURE__ */ O("span", {
|
|
564
|
+
className: p("inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium", Me[e.status] || Me.NEW),
|
|
565
565
|
children: Ne[e.status] || e.status
|
|
566
566
|
})]
|
|
567
|
-
}), /* @__PURE__ */
|
|
567
|
+
}), /* @__PURE__ */ O("p", {
|
|
568
568
|
className: "text-xs text-text-secondary truncate",
|
|
569
569
|
children: e.email
|
|
570
570
|
})]
|
|
571
|
-
}), /* @__PURE__ */
|
|
571
|
+
}), /* @__PURE__ */ O("div", {
|
|
572
572
|
className: "text-xs text-text-secondary whitespace-nowrap",
|
|
573
573
|
children: Pe(e.createdAt)
|
|
574
574
|
})]
|
|
@@ -578,23 +578,23 @@ function M() {
|
|
|
578
578
|
})
|
|
579
579
|
]
|
|
580
580
|
}),
|
|
581
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ O(_, {
|
|
582
582
|
open: Re,
|
|
583
583
|
onOpenChange: F,
|
|
584
|
-
children: /* @__PURE__ */
|
|
584
|
+
children: /* @__PURE__ */ k(v, {
|
|
585
585
|
className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
|
|
586
|
-
children: [/* @__PURE__ */
|
|
586
|
+
children: [/* @__PURE__ */ O(y, { children: /* @__PURE__ */ O(b, { children: "Edit Job Posting" }) }), /* @__PURE__ */ k("form", {
|
|
587
587
|
onSubmit: at,
|
|
588
588
|
className: "space-y-5",
|
|
589
589
|
children: [
|
|
590
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
|
|
591
591
|
htmlFor: "posting-title",
|
|
592
592
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
593
|
-
children: ["Title ", /* @__PURE__ */
|
|
593
|
+
children: ["Title ", /* @__PURE__ */ O("span", {
|
|
594
594
|
className: "text-status-error-text",
|
|
595
595
|
children: "*"
|
|
596
596
|
})]
|
|
597
|
-
}), /* @__PURE__ */
|
|
597
|
+
}), /* @__PURE__ */ O("input", {
|
|
598
598
|
id: "posting-title",
|
|
599
599
|
type: "text",
|
|
600
600
|
value: Z.title,
|
|
@@ -605,13 +605,13 @@ function M() {
|
|
|
605
605
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
|
|
606
606
|
required: !0
|
|
607
607
|
})] }),
|
|
608
|
-
/* @__PURE__ */
|
|
608
|
+
/* @__PURE__ */ k("div", {
|
|
609
609
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
610
|
-
children: [/* @__PURE__ */
|
|
610
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
611
611
|
htmlFor: "posting-slug",
|
|
612
612
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
613
613
|
children: "Slug"
|
|
614
|
-
}), /* @__PURE__ */
|
|
614
|
+
}), /* @__PURE__ */ O("input", {
|
|
615
615
|
id: "posting-slug",
|
|
616
616
|
type: "text",
|
|
617
617
|
value: Z.slug,
|
|
@@ -621,11 +621,11 @@ function M() {
|
|
|
621
621
|
}),
|
|
622
622
|
placeholder: "e.g., product-engineering-intern-full-stack",
|
|
623
623
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
624
|
-
})] }), /* @__PURE__ */
|
|
624
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
625
625
|
htmlFor: "posting-openings",
|
|
626
626
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
627
627
|
children: "Openings"
|
|
628
|
-
}), /* @__PURE__ */
|
|
628
|
+
}), /* @__PURE__ */ O("input", {
|
|
629
629
|
id: "posting-openings",
|
|
630
630
|
type: "number",
|
|
631
631
|
min: 1,
|
|
@@ -638,13 +638,13 @@ function M() {
|
|
|
638
638
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
639
639
|
})] })]
|
|
640
640
|
}),
|
|
641
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ k("div", {
|
|
642
642
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
643
|
-
children: [/* @__PURE__ */
|
|
643
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
644
644
|
htmlFor: "posting-department",
|
|
645
645
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
646
646
|
children: "Department"
|
|
647
|
-
}), /* @__PURE__ */
|
|
647
|
+
}), /* @__PURE__ */ O("input", {
|
|
648
648
|
id: "posting-department",
|
|
649
649
|
type: "text",
|
|
650
650
|
value: Z.department,
|
|
@@ -653,11 +653,11 @@ function M() {
|
|
|
653
653
|
department: e.target.value
|
|
654
654
|
}),
|
|
655
655
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
656
|
-
})] }), /* @__PURE__ */
|
|
656
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
657
657
|
htmlFor: "posting-location",
|
|
658
658
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
659
659
|
children: "Location"
|
|
660
|
-
}), /* @__PURE__ */
|
|
660
|
+
}), /* @__PURE__ */ O("input", {
|
|
661
661
|
id: "posting-location",
|
|
662
662
|
type: "text",
|
|
663
663
|
value: Z.location,
|
|
@@ -668,13 +668,13 @@ function M() {
|
|
|
668
668
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
669
669
|
})] })]
|
|
670
670
|
}),
|
|
671
|
-
/* @__PURE__ */
|
|
671
|
+
/* @__PURE__ */ k("div", {
|
|
672
672
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
673
|
-
children: [/* @__PURE__ */
|
|
673
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
674
674
|
htmlFor: "posting-employment-type",
|
|
675
675
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
676
676
|
children: "Employment Type"
|
|
677
|
-
}), /* @__PURE__ */
|
|
677
|
+
}), /* @__PURE__ */ k("select", {
|
|
678
678
|
id: "posting-employment-type",
|
|
679
679
|
value: Z.employmentType,
|
|
680
680
|
onChange: (e) => Q({
|
|
@@ -683,32 +683,32 @@ function M() {
|
|
|
683
683
|
}),
|
|
684
684
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
685
685
|
children: [
|
|
686
|
-
/* @__PURE__ */
|
|
686
|
+
/* @__PURE__ */ O("option", {
|
|
687
687
|
value: "",
|
|
688
688
|
children: "Select type"
|
|
689
689
|
}),
|
|
690
|
-
/* @__PURE__ */
|
|
690
|
+
/* @__PURE__ */ O("option", {
|
|
691
691
|
value: r.FullTime,
|
|
692
692
|
children: "Full-time"
|
|
693
693
|
}),
|
|
694
|
-
/* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ O("option", {
|
|
695
695
|
value: r.PartTime,
|
|
696
696
|
children: "Part-time"
|
|
697
697
|
}),
|
|
698
|
-
/* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ O("option", {
|
|
699
699
|
value: r.Contract,
|
|
700
700
|
children: "Contract"
|
|
701
701
|
}),
|
|
702
|
-
/* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ O("option", {
|
|
703
703
|
value: r.Internship,
|
|
704
704
|
children: "Internship"
|
|
705
705
|
})
|
|
706
706
|
]
|
|
707
|
-
})] }), /* @__PURE__ */
|
|
707
|
+
})] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
708
708
|
htmlFor: "posting-status",
|
|
709
709
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
710
710
|
children: "Status"
|
|
711
|
-
}), /* @__PURE__ */
|
|
711
|
+
}), /* @__PURE__ */ k("select", {
|
|
712
712
|
id: "posting-status",
|
|
713
713
|
value: Z.status,
|
|
714
714
|
onChange: (e) => Q({
|
|
@@ -717,30 +717,30 @@ function M() {
|
|
|
717
717
|
}),
|
|
718
718
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
719
719
|
children: [
|
|
720
|
-
/* @__PURE__ */
|
|
720
|
+
/* @__PURE__ */ O("option", {
|
|
721
721
|
value: a.Draft,
|
|
722
722
|
children: "Draft"
|
|
723
723
|
}),
|
|
724
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ O("option", {
|
|
725
725
|
value: a.Open,
|
|
726
726
|
children: "Open"
|
|
727
727
|
}),
|
|
728
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ O("option", {
|
|
729
729
|
value: a.Closed,
|
|
730
730
|
children: "Closed"
|
|
731
731
|
}),
|
|
732
|
-
/* @__PURE__ */
|
|
732
|
+
/* @__PURE__ */ O("option", {
|
|
733
733
|
value: a.Archived,
|
|
734
734
|
children: "Archived"
|
|
735
735
|
})
|
|
736
736
|
]
|
|
737
737
|
})] })]
|
|
738
738
|
}),
|
|
739
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
740
740
|
htmlFor: "posting-product-id",
|
|
741
741
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
742
742
|
children: "Product ID"
|
|
743
|
-
}), /* @__PURE__ */
|
|
743
|
+
}), /* @__PURE__ */ O("input", {
|
|
744
744
|
id: "posting-product-id",
|
|
745
745
|
type: "text",
|
|
746
746
|
value: Z.productId,
|
|
@@ -750,11 +750,11 @@ function M() {
|
|
|
750
750
|
}),
|
|
751
751
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
752
752
|
})] }),
|
|
753
|
-
/* @__PURE__ */
|
|
753
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
754
754
|
htmlFor: "posting-description",
|
|
755
755
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
756
756
|
children: "Description"
|
|
757
|
-
}), /* @__PURE__ */
|
|
757
|
+
}), /* @__PURE__ */ O("textarea", {
|
|
758
758
|
id: "posting-description",
|
|
759
759
|
value: Z.description,
|
|
760
760
|
onChange: (e) => Q({
|
|
@@ -764,11 +764,11 @@ function M() {
|
|
|
764
764
|
rows: 4,
|
|
765
765
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
766
766
|
})] }),
|
|
767
|
-
/* @__PURE__ */
|
|
767
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
768
768
|
htmlFor: "posting-overview",
|
|
769
769
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
770
770
|
children: "Overview"
|
|
771
|
-
}), /* @__PURE__ */
|
|
771
|
+
}), /* @__PURE__ */ O("textarea", {
|
|
772
772
|
id: "posting-overview",
|
|
773
773
|
value: Z.overview,
|
|
774
774
|
onChange: (e) => Q({
|
|
@@ -779,13 +779,13 @@ function M() {
|
|
|
779
779
|
placeholder: "Short pitch shown at the top of the careers page…",
|
|
780
780
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
781
781
|
})] }),
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ k("div", { children: [
|
|
783
|
+
/* @__PURE__ */ O("label", {
|
|
784
784
|
htmlFor: "posting-responsibilities",
|
|
785
785
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
786
786
|
children: "Responsibilities"
|
|
787
787
|
}),
|
|
788
|
-
/* @__PURE__ */
|
|
788
|
+
/* @__PURE__ */ O("textarea", {
|
|
789
789
|
id: "posting-responsibilities",
|
|
790
790
|
value: Z.responsibilities,
|
|
791
791
|
onChange: (e) => Q({
|
|
@@ -796,18 +796,18 @@ function M() {
|
|
|
796
796
|
placeholder: "One responsibility per line",
|
|
797
797
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
798
798
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ O("p", {
|
|
800
800
|
className: "mt-1 text-xs text-text-secondary",
|
|
801
801
|
children: "Enter one item per line."
|
|
802
802
|
})
|
|
803
803
|
] }),
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ k("div", { children: [
|
|
805
|
+
/* @__PURE__ */ O("label", {
|
|
806
806
|
htmlFor: "posting-learnings",
|
|
807
807
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
808
808
|
children: "Learnings"
|
|
809
809
|
}),
|
|
810
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ O("textarea", {
|
|
811
811
|
id: "posting-learnings",
|
|
812
812
|
value: Z.learnings,
|
|
813
813
|
onChange: (e) => Q({
|
|
@@ -818,18 +818,18 @@ function M() {
|
|
|
818
818
|
placeholder: "One learning per line",
|
|
819
819
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
820
820
|
}),
|
|
821
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ O("p", {
|
|
822
822
|
className: "mt-1 text-xs text-text-secondary",
|
|
823
823
|
children: "Enter one item per line."
|
|
824
824
|
})
|
|
825
825
|
] }),
|
|
826
|
-
/* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ k("div", { children: [
|
|
827
|
+
/* @__PURE__ */ O("label", {
|
|
828
828
|
htmlFor: "posting-qualifications",
|
|
829
829
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
830
830
|
children: "Qualifications"
|
|
831
831
|
}),
|
|
832
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ O("textarea", {
|
|
833
833
|
id: "posting-qualifications",
|
|
834
834
|
value: Z.qualifications,
|
|
835
835
|
onChange: (e) => Q({
|
|
@@ -840,49 +840,49 @@ function M() {
|
|
|
840
840
|
placeholder: "One qualification per line",
|
|
841
841
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
842
842
|
}),
|
|
843
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ O("p", {
|
|
844
844
|
className: "mt-1 text-xs text-text-secondary",
|
|
845
845
|
children: "Enter one item per line."
|
|
846
846
|
})
|
|
847
847
|
] }),
|
|
848
|
-
/* @__PURE__ */
|
|
848
|
+
/* @__PURE__ */ k("div", {
|
|
849
849
|
className: "flex flex-col gap-3 pt-2 sm:flex-row",
|
|
850
|
-
children: [/* @__PURE__ */
|
|
850
|
+
children: [/* @__PURE__ */ O(l, {
|
|
851
851
|
type: "submit",
|
|
852
852
|
disabled: Ge || !Z.title.trim(),
|
|
853
853
|
className: "flex-1",
|
|
854
|
-
children: Ge ? /* @__PURE__ */
|
|
854
|
+
children: Ge ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(w, {
|
|
855
855
|
size: 16,
|
|
856
856
|
className: "animate-spin"
|
|
857
|
-
}), "Saving…"] }) : /* @__PURE__ */
|
|
858
|
-
}), /* @__PURE__ */
|
|
857
|
+
}), "Saving…"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(S, { size: 16 }), "Save Changes"] })
|
|
858
|
+
}), /* @__PURE__ */ k(l, {
|
|
859
859
|
type: "button",
|
|
860
860
|
variant: "outline",
|
|
861
861
|
onClick: () => F(!1),
|
|
862
|
-
children: [/* @__PURE__ */
|
|
862
|
+
children: [/* @__PURE__ */ O(E, { size: 16 }), "Cancel"]
|
|
863
863
|
})]
|
|
864
864
|
})
|
|
865
865
|
]
|
|
866
866
|
})]
|
|
867
867
|
})
|
|
868
868
|
}),
|
|
869
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ O(_, {
|
|
870
870
|
open: ze,
|
|
871
871
|
onOpenChange: I,
|
|
872
|
-
children: /* @__PURE__ */
|
|
872
|
+
children: /* @__PURE__ */ k(v, {
|
|
873
873
|
className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
|
|
874
|
-
children: [/* @__PURE__ */
|
|
874
|
+
children: [/* @__PURE__ */ O(y, { children: /* @__PURE__ */ O(b, { children: L ? "Edit Round Config" : "Add Round Config" }) }), /* @__PURE__ */ k("form", {
|
|
875
875
|
onSubmit: lt,
|
|
876
876
|
className: "space-y-5",
|
|
877
877
|
children: [
|
|
878
|
-
/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
|
|
879
879
|
htmlFor: "round-name",
|
|
880
880
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
881
|
-
children: ["Name ", /* @__PURE__ */
|
|
881
|
+
children: ["Name ", /* @__PURE__ */ O("span", {
|
|
882
882
|
className: "text-status-error-text",
|
|
883
883
|
children: "*"
|
|
884
884
|
})]
|
|
885
|
-
}), /* @__PURE__ */
|
|
885
|
+
}), /* @__PURE__ */ O("input", {
|
|
886
886
|
id: "round-name",
|
|
887
887
|
type: "text",
|
|
888
888
|
value: z.name,
|
|
@@ -893,11 +893,11 @@ function M() {
|
|
|
893
893
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
|
|
894
894
|
required: !0
|
|
895
895
|
})] }),
|
|
896
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
897
897
|
htmlFor: "round-type",
|
|
898
898
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
899
899
|
children: "Round Type"
|
|
900
|
-
}), /* @__PURE__ */
|
|
900
|
+
}), /* @__PURE__ */ O("select", {
|
|
901
901
|
id: "round-type",
|
|
902
902
|
value: z.roundType,
|
|
903
903
|
onChange: (e) => B({
|
|
@@ -905,16 +905,16 @@ function M() {
|
|
|
905
905
|
roundType: e.target.value
|
|
906
906
|
}),
|
|
907
907
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
908
|
-
children: Object.values(i).map((e) => /* @__PURE__ */
|
|
908
|
+
children: Object.values(i).map((e) => /* @__PURE__ */ O("option", {
|
|
909
909
|
value: e,
|
|
910
910
|
children: je[e]
|
|
911
911
|
}, e))
|
|
912
912
|
})] }),
|
|
913
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
914
914
|
htmlFor: "round-description",
|
|
915
915
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
916
916
|
children: "Description"
|
|
917
|
-
}), /* @__PURE__ */
|
|
917
|
+
}), /* @__PURE__ */ O("textarea", {
|
|
918
918
|
id: "round-description",
|
|
919
919
|
value: z.description,
|
|
920
920
|
onChange: (e) => B({
|
|
@@ -924,11 +924,11 @@ function M() {
|
|
|
924
924
|
rows: 3,
|
|
925
925
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary resize-none"
|
|
926
926
|
})] }),
|
|
927
|
-
/* @__PURE__ */
|
|
927
|
+
/* @__PURE__ */ k("div", {
|
|
928
928
|
className: "flex flex-col gap-3",
|
|
929
|
-
children: [/* @__PURE__ */
|
|
929
|
+
children: [/* @__PURE__ */ k("label", {
|
|
930
930
|
className: "flex items-center gap-3 cursor-pointer",
|
|
931
|
-
children: [/* @__PURE__ */
|
|
931
|
+
children: [/* @__PURE__ */ O("input", {
|
|
932
932
|
type: "checkbox",
|
|
933
933
|
checked: z.isAssignmentRound,
|
|
934
934
|
onChange: (e) => B({
|
|
@@ -936,13 +936,13 @@ function M() {
|
|
|
936
936
|
isAssignmentRound: e.target.checked
|
|
937
937
|
}),
|
|
938
938
|
className: "size-4 rounded border-border-default text-primary focus:ring-primary"
|
|
939
|
-
}), /* @__PURE__ */
|
|
939
|
+
}), /* @__PURE__ */ O("span", {
|
|
940
940
|
className: "text-sm text-text-primary",
|
|
941
941
|
children: "Assignment round"
|
|
942
942
|
})]
|
|
943
|
-
}), /* @__PURE__ */
|
|
943
|
+
}), /* @__PURE__ */ k("label", {
|
|
944
944
|
className: "flex items-center gap-3 cursor-pointer",
|
|
945
|
-
children: [/* @__PURE__ */
|
|
945
|
+
children: [/* @__PURE__ */ O("input", {
|
|
946
946
|
type: "checkbox",
|
|
947
947
|
checked: z.isRequired,
|
|
948
948
|
onChange: (e) => B({
|
|
@@ -950,39 +950,39 @@ function M() {
|
|
|
950
950
|
isRequired: e.target.checked
|
|
951
951
|
}),
|
|
952
952
|
className: "size-4 rounded border-border-default text-primary focus:ring-primary"
|
|
953
|
-
}), /* @__PURE__ */
|
|
953
|
+
}), /* @__PURE__ */ O("span", {
|
|
954
954
|
className: "text-sm text-text-primary",
|
|
955
955
|
children: "Required"
|
|
956
956
|
})]
|
|
957
957
|
})]
|
|
958
958
|
}),
|
|
959
|
-
/* @__PURE__ */
|
|
959
|
+
/* @__PURE__ */ k("div", {
|
|
960
960
|
className: "flex flex-col gap-3 pt-2 sm:flex-row",
|
|
961
|
-
children: [/* @__PURE__ */
|
|
961
|
+
children: [/* @__PURE__ */ O(l, {
|
|
962
962
|
type: "submit",
|
|
963
963
|
disabled: qe || Ye || !z.name.trim(),
|
|
964
964
|
className: "flex-1",
|
|
965
|
-
children: qe || Ye ? /* @__PURE__ */
|
|
965
|
+
children: qe || Ye ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(w, {
|
|
966
966
|
size: 16,
|
|
967
967
|
className: "animate-spin"
|
|
968
|
-
}), L ? "Saving…" : "Creating…"] }) : /* @__PURE__ */
|
|
969
|
-
}), /* @__PURE__ */
|
|
968
|
+
}), L ? "Saving…" : "Creating…"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(S, { size: 16 }), L ? "Update Round" : "Create Round"] })
|
|
969
|
+
}), /* @__PURE__ */ k(l, {
|
|
970
970
|
type: "button",
|
|
971
971
|
variant: "outline",
|
|
972
972
|
onClick: ct,
|
|
973
|
-
children: [/* @__PURE__ */
|
|
973
|
+
children: [/* @__PURE__ */ O(E, { size: 16 }), "Cancel"]
|
|
974
974
|
})]
|
|
975
975
|
})
|
|
976
976
|
]
|
|
977
977
|
})]
|
|
978
978
|
})
|
|
979
979
|
}),
|
|
980
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ O(_, {
|
|
981
981
|
open: Be,
|
|
982
982
|
onOpenChange: V,
|
|
983
|
-
children: /* @__PURE__ */
|
|
983
|
+
children: /* @__PURE__ */ k(v, {
|
|
984
984
|
className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
|
|
985
|
-
children: [/* @__PURE__ */
|
|
985
|
+
children: [/* @__PURE__ */ O(y, { children: /* @__PURE__ */ O(b, { children: H ? "Edit Assignment" : "Add Assignment" }) }), /* @__PURE__ */ k("form", {
|
|
986
986
|
onSubmit: async (e) => {
|
|
987
987
|
if (e.preventDefault(), m && W.title.trim() && W.description.trim()) try {
|
|
988
988
|
H ? (await et({ variables: {
|
|
@@ -1010,14 +1010,14 @@ function M() {
|
|
|
1010
1010
|
},
|
|
1011
1011
|
className: "space-y-5",
|
|
1012
1012
|
children: [
|
|
1013
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
|
|
1014
1014
|
htmlFor: "assignment-title",
|
|
1015
1015
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1016
|
-
children: ["Title ", /* @__PURE__ */
|
|
1016
|
+
children: ["Title ", /* @__PURE__ */ O("span", {
|
|
1017
1017
|
className: "text-status-error-text",
|
|
1018
1018
|
children: "*"
|
|
1019
1019
|
})]
|
|
1020
|
-
}), /* @__PURE__ */
|
|
1020
|
+
}), /* @__PURE__ */ O("input", {
|
|
1021
1021
|
id: "assignment-title",
|
|
1022
1022
|
type: "text",
|
|
1023
1023
|
value: W.title,
|
|
@@ -1028,11 +1028,11 @@ function M() {
|
|
|
1028
1028
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary",
|
|
1029
1029
|
required: !0
|
|
1030
1030
|
})] }),
|
|
1031
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
|
|
1032
1032
|
htmlFor: "assignment-difficulty",
|
|
1033
1033
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1034
1034
|
children: "Difficulty"
|
|
1035
|
-
}), /* @__PURE__ */
|
|
1035
|
+
}), /* @__PURE__ */ O("input", {
|
|
1036
1036
|
id: "assignment-difficulty",
|
|
1037
1037
|
type: "text",
|
|
1038
1038
|
value: W.difficulty,
|
|
@@ -1043,16 +1043,16 @@ function M() {
|
|
|
1043
1043
|
placeholder: "e.g., Easy, Medium, Hard",
|
|
1044
1044
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
1045
1045
|
})] }),
|
|
1046
|
-
/* @__PURE__ */
|
|
1047
|
-
/* @__PURE__ */
|
|
1046
|
+
/* @__PURE__ */ k("div", { children: [
|
|
1047
|
+
/* @__PURE__ */ k("label", {
|
|
1048
1048
|
htmlFor: "assignment-owner-email",
|
|
1049
1049
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1050
|
-
children: ["Owner email ", /* @__PURE__ */
|
|
1050
|
+
children: ["Owner email ", /* @__PURE__ */ O("span", {
|
|
1051
1051
|
className: "text-text-secondary font-normal",
|
|
1052
1052
|
children: "(optional)"
|
|
1053
1053
|
})]
|
|
1054
1054
|
}),
|
|
1055
|
-
/* @__PURE__ */
|
|
1055
|
+
/* @__PURE__ */ O("input", {
|
|
1056
1056
|
id: "assignment-owner-email",
|
|
1057
1057
|
type: "email",
|
|
1058
1058
|
value: W.ownerEmail,
|
|
@@ -1063,19 +1063,19 @@ function M() {
|
|
|
1063
1063
|
placeholder: "whoever authored this assignment",
|
|
1064
1064
|
className: "w-full px-4 py-2.5 rounded-lg border border-border-default bg-bg-surface text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
1065
1065
|
}),
|
|
1066
|
-
/* @__PURE__ */
|
|
1066
|
+
/* @__PURE__ */ O("p", {
|
|
1067
1067
|
className: "mt-1.5 text-xs text-text-secondary",
|
|
1068
1068
|
children: "So you know who to ask if a candidate has questions about it."
|
|
1069
1069
|
})
|
|
1070
1070
|
] }),
|
|
1071
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
|
|
1072
1072
|
htmlFor: "assignment-description",
|
|
1073
1073
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1074
|
-
children: ["Description ", /* @__PURE__ */
|
|
1074
|
+
children: ["Description ", /* @__PURE__ */ O("span", {
|
|
1075
1075
|
className: "text-status-error-text",
|
|
1076
1076
|
children: "*"
|
|
1077
1077
|
})]
|
|
1078
|
-
}), /* @__PURE__ */
|
|
1078
|
+
}), /* @__PURE__ */ O(f, {
|
|
1079
1079
|
id: "assignment-description",
|
|
1080
1080
|
value: W.description,
|
|
1081
1081
|
onChange: (e) => G({
|
|
@@ -1085,17 +1085,17 @@ function M() {
|
|
|
1085
1085
|
placeholder: "What is this assignment about?",
|
|
1086
1086
|
"aria-required": !0
|
|
1087
1087
|
})] }),
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1088
|
+
/* @__PURE__ */ k("div", { children: [
|
|
1089
|
+
/* @__PURE__ */ O("label", {
|
|
1090
1090
|
htmlFor: "assignment-problem-statement",
|
|
1091
1091
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
1092
1092
|
children: "Problem Statement"
|
|
1093
1093
|
}),
|
|
1094
|
-
/* @__PURE__ */
|
|
1094
|
+
/* @__PURE__ */ O("p", {
|
|
1095
1095
|
className: "mb-2 text-xs text-text-secondary",
|
|
1096
1096
|
children: "Shown to the candidate in bold, called out from the rest of the email — this is what they need to solve."
|
|
1097
1097
|
}),
|
|
1098
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ O(f, {
|
|
1099
1099
|
id: "assignment-problem-statement",
|
|
1100
1100
|
value: W.problemStatement,
|
|
1101
1101
|
onChange: (e) => G({
|
|
@@ -1105,9 +1105,9 @@ function M() {
|
|
|
1105
1105
|
placeholder: "Describe exactly what the candidate needs to build or solve. Use bullet points to break down requirements."
|
|
1106
1106
|
})
|
|
1107
1107
|
] }),
|
|
1108
|
-
/* @__PURE__ */
|
|
1108
|
+
/* @__PURE__ */ k("label", {
|
|
1109
1109
|
className: "flex items-center gap-3 cursor-pointer",
|
|
1110
|
-
children: [/* @__PURE__ */
|
|
1110
|
+
children: [/* @__PURE__ */ O("input", {
|
|
1111
1111
|
type: "checkbox",
|
|
1112
1112
|
checked: W.isActive,
|
|
1113
1113
|
onChange: (e) => G({
|
|
@@ -1115,48 +1115,48 @@ function M() {
|
|
|
1115
1115
|
isActive: e.target.checked
|
|
1116
1116
|
}),
|
|
1117
1117
|
className: "size-4 rounded border-border-default text-primary focus:ring-primary"
|
|
1118
|
-
}), /* @__PURE__ */
|
|
1118
|
+
}), /* @__PURE__ */ O("span", {
|
|
1119
1119
|
className: "text-sm text-text-primary",
|
|
1120
1120
|
children: "Active"
|
|
1121
1121
|
})]
|
|
1122
1122
|
}),
|
|
1123
|
-
/* @__PURE__ */
|
|
1123
|
+
/* @__PURE__ */ k("div", {
|
|
1124
1124
|
className: "flex flex-col gap-3 pt-2 sm:flex-row",
|
|
1125
|
-
children: [/* @__PURE__ */
|
|
1125
|
+
children: [/* @__PURE__ */ O(l, {
|
|
1126
1126
|
type: "submit",
|
|
1127
1127
|
disabled: $e || tt || !W.title.trim() || !W.description.trim(),
|
|
1128
1128
|
className: "flex-1",
|
|
1129
|
-
children: $e || tt ? /* @__PURE__ */
|
|
1129
|
+
children: $e || tt ? /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(w, {
|
|
1130
1130
|
size: 16,
|
|
1131
1131
|
className: "animate-spin"
|
|
1132
|
-
}), H ? "Saving…" : "Creating…"] }) : /* @__PURE__ */
|
|
1133
|
-
}), /* @__PURE__ */
|
|
1132
|
+
}), H ? "Saving…" : "Creating…"] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(S, { size: 16 }), H ? "Update Assignment" : "Create Assignment"] })
|
|
1133
|
+
}), /* @__PURE__ */ k(l, {
|
|
1134
1134
|
type: "button",
|
|
1135
1135
|
variant: "outline",
|
|
1136
1136
|
onClick: pt,
|
|
1137
|
-
children: [/* @__PURE__ */
|
|
1137
|
+
children: [/* @__PURE__ */ O(E, { size: 16 }), "Cancel"]
|
|
1138
1138
|
})]
|
|
1139
1139
|
})
|
|
1140
1140
|
]
|
|
1141
1141
|
})]
|
|
1142
1142
|
})
|
|
1143
1143
|
}),
|
|
1144
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ O(ue, {
|
|
1145
1145
|
open: K !== null,
|
|
1146
1146
|
onOpenChange: (e) => {
|
|
1147
1147
|
e || q(null);
|
|
1148
1148
|
},
|
|
1149
|
-
children: /* @__PURE__ */
|
|
1149
|
+
children: /* @__PURE__ */ k(pe, { children: [/* @__PURE__ */ k(ge, { children: [/* @__PURE__ */ O(g, { children: "Delete round config?" }), /* @__PURE__ */ O(me, { children: "Are you sure you want to delete this interview round config? This action cannot be undone." })] }), /* @__PURE__ */ k(he, { children: [/* @__PURE__ */ O(fe, { children: "Cancel" }), /* @__PURE__ */ O(de, {
|
|
1150
1150
|
onClick: ut,
|
|
1151
1151
|
children: "Delete"
|
|
1152
1152
|
})] })] })
|
|
1153
1153
|
}),
|
|
1154
|
-
/* @__PURE__ */
|
|
1154
|
+
/* @__PURE__ */ O(ue, {
|
|
1155
1155
|
open: J !== null,
|
|
1156
1156
|
onOpenChange: (e) => {
|
|
1157
1157
|
e || Y(null);
|
|
1158
1158
|
},
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1159
|
+
children: /* @__PURE__ */ k(pe, { children: [/* @__PURE__ */ k(ge, { children: [/* @__PURE__ */ O(g, { children: "Delete assignment?" }), /* @__PURE__ */ O(me, { children: "Are you sure you want to delete this assignment? This action cannot be undone." })] }), /* @__PURE__ */ k(he, { children: [/* @__PURE__ */ O(fe, { children: "Cancel" }), /* @__PURE__ */ O(de, {
|
|
1160
1160
|
onClick: async () => {
|
|
1161
1161
|
let e = J;
|
|
1162
1162
|
if (e) {
|