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