@burdenoff/microfe-support 2026.817.2 → 2026.817.3

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.
@@ -7,9 +7,9 @@ import { useEffect as ue, useRef as d, useState as f } from "react";
7
7
  import { AlertCircle as p, ArrowLeft as m, Briefcase as h, Building2 as de, Check as g, CheckCircle as fe, Clock as pe, Edit2 as _, FileText as me, Layers as he, Loader2 as v, MapPin as ge, Plus as y, Trash2 as _e, Users as ve, X as b } from "lucide-react";
8
8
  import { useNavigate as ye, useParams as be } from "react-router";
9
9
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
10
- import { AlertDialog as xe, AlertDialogAction as Se, AlertDialogCancel as Ce, AlertDialogContent as we, AlertDialogDescription as Te, AlertDialogFooter as w, AlertDialogHeader as T, AlertDialogTitle as E, ResponsiveDialog as D, ResponsiveDialogContent as O, ResponsiveDialogHeader as k, ResponsiveDialogTitle as A } from "@burdenoff/fe-libs/ui";
10
+ import { AlertDialog as xe, AlertDialogAction as Se, AlertDialogCancel as Ce, AlertDialogContent as we, AlertDialogDescription as Te, AlertDialogFooter as Ee, AlertDialogHeader as De, AlertDialogTitle as w, ResponsiveDialog as T, ResponsiveDialogContent as E, ResponsiveDialogHeader as D, ResponsiveDialogTitle as O } from "@burdenoff/fe-libs/ui";
11
11
  //#region src/support/pages/JobPostingDetailPage.tsx
12
- var Ee = {
12
+ var Oe = {
13
13
  [s.Draft]: {
14
14
  label: "Draft",
15
15
  variant: "secondary"
@@ -26,19 +26,19 @@ var Ee = {
26
26
  label: "Archived",
27
27
  variant: "destructive"
28
28
  }
29
- }, De = {
29
+ }, ke = {
30
30
  [a.FullTime]: "Full-time",
31
31
  [a.PartTime]: "Part-time",
32
32
  [a.Contract]: "Contract",
33
33
  [a.Internship]: "Internship"
34
- }, Oe = {
34
+ }, Ae = {
35
35
  [o.PhoneScreen]: "Phone Screen",
36
36
  [o.Technical]: "Technical",
37
37
  [o.CultureFit]: "Culture Fit",
38
38
  [o.Hr]: "HR",
39
39
  [o.TakeHome]: "Take-home",
40
40
  [o.Final]: "Final"
41
- }, j = {
41
+ }, je = {
42
42
  NEW: "bg-status-info-bg-subtle text-status-info-text",
43
43
  SCREENING: "bg-status-warning-bg-subtle text-status-warning-text",
44
44
  SHORTLISTED: "bg-accent-purple-subtle text-accent-purple",
@@ -46,7 +46,7 @@ var Ee = {
46
46
  HIRED: "bg-status-success-bg-subtle text-status-success-text",
47
47
  REJECTED: "bg-status-error-bg-subtle text-status-error-text",
48
48
  ARCHIVED: "bg-bg-sunken text-text-secondary"
49
- }, ke = {
49
+ }, Me = {
50
50
  NEW: "New",
51
51
  SCREENING: "Screening",
52
52
  SHORTLISTED: "Shortlisted",
@@ -55,14 +55,20 @@ var Ee = {
55
55
  REJECTED: "Rejected",
56
56
  ARCHIVED: "Archived"
57
57
  };
58
- function Ae(e) {
58
+ function Ne(e) {
59
59
  return new Date(e).toLocaleDateString("en-US", {
60
60
  month: "short",
61
61
  day: "numeric",
62
62
  year: "numeric"
63
63
  });
64
64
  }
65
- function je() {
65
+ function k(e) {
66
+ return e.split("\n").map((e) => e.trim()).filter(Boolean);
67
+ }
68
+ function A(e) {
69
+ return (e ?? []).join("\n");
70
+ }
71
+ function Pe() {
66
72
  let [e, t] = f(null), n = d(null);
67
73
  return ue(() => () => {
68
74
  n.current && clearTimeout(n.current);
@@ -76,166 +82,186 @@ function je() {
76
82
  }
77
83
  };
78
84
  }
79
- function M() {
80
- let { id: d } = be(), M = ye(), { notification: N, show: P } = je(), [Me, Ne] = f("rounds"), [Pe, F] = f(!1), [Fe, I] = f(!1), [L, R] = f(null), [z, B] = f({
85
+ function j() {
86
+ let { id: d } = be(), j = ye(), { notification: M, show: N } = Pe(), [Fe, Ie] = f("rounds"), [Le, P] = f(!1), [Re, F] = f(!1), [I, L] = f(null), [R, z] = f({
81
87
  name: "",
82
88
  roundType: o.Technical,
83
89
  description: "",
84
90
  isAssignmentRound: !1,
85
91
  isRequired: !0
86
- }), [Ie, V] = f(!1), [H, U] = f(null), [W, G] = f({
92
+ }), [ze, B] = f(!1), [V, H] = f(null), [U, W] = f({
87
93
  title: "",
88
94
  description: "",
89
95
  problemStatement: "",
90
96
  difficulty: "",
91
97
  isActive: !0
92
- }), [K, q] = f(null), [J, Y] = f(null), { data: Le, loading: Re, error: ze } = ae({
98
+ }), [G, K] = f(null), [q, J] = f(null), { data: Be, loading: Ve, error: He } = ae({
93
99
  variables: { id: d },
94
100
  skip: !d
95
- }), X = Le?.jobPosting, [Be, { loading: Ve }] = ce({ refetchQueries: ["GetJobPosting"] }), [He, { loading: Ue }] = te({ refetchQueries: ["GetJobPosting"] }), [We, { loading: Ge }] = oe({ refetchQueries: ["GetJobPosting"] }), [Ke, { loading: qe }] = re({ refetchQueries: ["GetJobPosting"] }), [Je, { loading: Ye }] = ne({ refetchQueries: ["GetJobPosting"] }), [Xe, { loading: Ze }] = se({ refetchQueries: ["GetJobPosting"] }), [Qe, { loading: $e }] = ie({ refetchQueries: ["GetJobPosting"] }), [Z, Q] = f({
101
+ }), Y = Be?.jobPosting, [Ue, { loading: We }] = ce({ refetchQueries: ["GetJobPosting"] }), [Ge, { loading: Ke }] = te({ refetchQueries: ["GetJobPosting"] }), [qe, { loading: Je }] = oe({ refetchQueries: ["GetJobPosting"] }), [Ye, { loading: Xe }] = re({ refetchQueries: ["GetJobPosting"] }), [Ze, { loading: Qe }] = ne({ refetchQueries: ["GetJobPosting"] }), [$e, { loading: et }] = se({ refetchQueries: ["GetJobPosting"] }), [tt, { loading: nt }] = ie({ refetchQueries: ["GetJobPosting"] }), [X, Z] = f({
96
102
  title: "",
97
103
  department: "",
98
104
  location: "",
99
105
  employmentType: "",
100
106
  description: "",
101
107
  productId: "",
102
- status: s.Draft
108
+ status: s.Draft,
109
+ slug: "",
110
+ openings: "",
111
+ overview: "",
112
+ responsibilities: "",
113
+ learnings: "",
114
+ qualifications: ""
103
115
  });
104
116
  if (ue(() => {
105
- X && Q({
106
- title: X.title,
107
- department: X.department ?? "",
108
- location: X.location ?? "",
109
- employmentType: X.employmentType ?? "",
110
- description: X.description ?? "",
111
- productId: X.productId ?? "",
112
- status: X.status
117
+ Y && Z({
118
+ title: Y.title,
119
+ department: Y.department ?? "",
120
+ location: Y.location ?? "",
121
+ employmentType: Y.employmentType ?? "",
122
+ description: Y.description ?? "",
123
+ productId: Y.productId ?? "",
124
+ status: Y.status,
125
+ slug: Y.slug ?? "",
126
+ openings: Y.openings == null ? "" : String(Y.openings),
127
+ overview: Y.overview ?? "",
128
+ responsibilities: A(Y.responsibilities),
129
+ learnings: A(Y.learnings),
130
+ qualifications: A(Y.qualifications)
113
131
  });
114
- }, [X]), Re) return /* @__PURE__ */ S(u, {
132
+ }, [Y]), Ve) return /* @__PURE__ */ S(u, {
115
133
  title: "Job Posting",
116
134
  subtitle: "Loading posting details…",
117
135
  icon: /* @__PURE__ */ S(h, { size: 24 }),
118
136
  children: /* @__PURE__ */ S(le, { message: "Loading job posting…" })
119
137
  });
120
- if (ze || !X) return /* @__PURE__ */ S(u, {
138
+ if (He || !Y) return /* @__PURE__ */ S(u, {
121
139
  title: "Job Posting",
122
140
  icon: /* @__PURE__ */ S(h, { size: 24 }),
123
141
  children: /* @__PURE__ */ S(l, {
124
142
  icon: /* @__PURE__ */ S(p, { size: 48 }),
125
143
  title: "Posting not found",
126
- description: ze?.message || "This job posting may have been deleted or you don't have access.",
144
+ description: He?.message || "This job posting may have been deleted or you don't have access.",
127
145
  action: /* @__PURE__ */ C(t, {
128
- onClick: () => M("/support/applications/postings"),
146
+ onClick: () => j("/support/applications/postings"),
129
147
  children: [/* @__PURE__ */ S(m, { size: 16 }), "Back to Postings"]
130
148
  })
131
149
  })
132
150
  });
133
- let et = Ee[X.status], $ = [...X.rounds].sort((e, t) => e.roundNumber - t.roundNumber), tt = async (e) => {
134
- if (e.preventDefault(), !(!d || !Z.title.trim())) try {
135
- await Be({ variables: {
151
+ let Q = Oe[Y.status], $ = [...Y.rounds].sort((e, t) => e.roundNumber - t.roundNumber), rt = async (e) => {
152
+ if (e.preventDefault(), !d || !X.title.trim()) return;
153
+ let t = X.openings.trim() ? parseInt(X.openings.trim(), 10) : void 0;
154
+ try {
155
+ await Ue({ variables: {
136
156
  id: d,
137
157
  input: {
138
- title: Z.title,
139
- department: Z.department || void 0,
140
- location: Z.location || void 0,
141
- employmentType: Z.employmentType || void 0,
142
- description: Z.description || void 0,
143
- productId: Z.productId || void 0,
144
- status: Z.status
158
+ title: X.title,
159
+ department: X.department || void 0,
160
+ location: X.location || void 0,
161
+ employmentType: X.employmentType || void 0,
162
+ description: X.description || void 0,
163
+ productId: X.productId || void 0,
164
+ status: X.status,
165
+ slug: X.slug.trim() || void 0,
166
+ openings: t && !Number.isNaN(t) ? t : void 0,
167
+ overview: X.overview.trim() || void 0,
168
+ responsibilities: k(X.responsibilities),
169
+ learnings: k(X.learnings),
170
+ qualifications: k(X.qualifications)
145
171
  }
146
- } }), P("success", "Job posting updated."), F(!1);
172
+ } }), N("success", "Job posting updated."), P(!1);
147
173
  } catch {
148
- P("error", "Failed to update job posting.");
174
+ N("error", "Failed to update job posting.");
149
175
  }
150
- }, nt = () => {
151
- R(null), B({
176
+ }, it = () => {
177
+ L(null), z({
152
178
  name: "",
153
179
  roundType: o.Technical,
154
180
  description: "",
155
181
  isAssignmentRound: !1,
156
182
  isRequired: !0
157
- }), I(!0);
158
- }, rt = (e) => {
159
- R(e), B({
183
+ }), F(!0);
184
+ }, at = (e) => {
185
+ L(e), z({
160
186
  name: e.name,
161
187
  roundType: e.roundType,
162
188
  description: e.description ?? "",
163
189
  isAssignmentRound: e.isAssignmentRound,
164
190
  isRequired: e.isRequired
165
- }), I(!0);
166
- }, it = () => {
167
- I(!1), R(null);
168
- }, at = async (e) => {
169
- if (e.preventDefault(), !(!d || !z.name.trim())) try {
170
- L ? (await We({ variables: {
171
- id: L.id,
191
+ }), F(!0);
192
+ }, ot = () => {
193
+ F(!1), L(null);
194
+ }, st = async (e) => {
195
+ if (e.preventDefault(), !(!d || !R.name.trim())) try {
196
+ I ? (await qe({ variables: {
197
+ id: I.id,
172
198
  input: {
173
- name: z.name,
174
- roundType: z.roundType,
175
- description: z.description || void 0,
176
- isAssignmentRound: z.isAssignmentRound,
177
- isRequired: z.isRequired
199
+ name: R.name,
200
+ roundType: R.roundType,
201
+ description: R.description || void 0,
202
+ isAssignmentRound: R.isAssignmentRound,
203
+ isRequired: R.isRequired
178
204
  }
179
- } }), P("success", "Round config updated.")) : (await He({ variables: { input: {
205
+ } }), N("success", "Round config updated.")) : (await Ge({ variables: { input: {
180
206
  jobPostingId: d,
181
- name: z.name,
182
- roundType: z.roundType,
183
- description: z.description || void 0,
207
+ name: R.name,
208
+ roundType: R.roundType,
209
+ description: R.description || void 0,
184
210
  roundNumber: $.length + 1,
185
- isAssignmentRound: z.isAssignmentRound,
186
- isRequired: z.isRequired
187
- } } }), P("success", "Round config created.")), it();
211
+ isAssignmentRound: R.isAssignmentRound,
212
+ isRequired: R.isRequired
213
+ } } }), N("success", "Round config created.")), ot();
188
214
  } catch {
189
- P("error", `Failed to ${L ? "update" : "create"} round config.`);
215
+ N("error", `Failed to ${I ? "update" : "create"} round config.`);
190
216
  }
191
- }, ot = async () => {
192
- let e = K;
217
+ }, ct = async () => {
218
+ let e = G;
193
219
  if (e) {
194
- q(null);
220
+ K(null);
195
221
  try {
196
- await Ke({ variables: { id: e } }), P("success", "Round config deleted.");
222
+ await Ye({ variables: { id: e } }), N("success", "Round config deleted.");
197
223
  } catch {
198
- P("error", "Failed to delete round config.");
224
+ N("error", "Failed to delete round config.");
199
225
  }
200
226
  }
201
- }, st = () => {
202
- U(null), G({
227
+ }, lt = () => {
228
+ H(null), W({
203
229
  title: "",
204
230
  description: "",
205
231
  problemStatement: "",
206
232
  difficulty: "",
207
233
  isActive: !0
208
- }), V(!0);
209
- }, ct = (e) => {
210
- U(e), G({
234
+ }), B(!0);
235
+ }, ut = (e) => {
236
+ H(e), W({
211
237
  title: e.title,
212
238
  description: e.description,
213
239
  problemStatement: e.problemStatement ?? "",
214
240
  difficulty: e.difficulty ?? "",
215
241
  isActive: e.isActive
216
- }), V(!0);
217
- }, lt = () => {
218
- V(!1), U(null);
242
+ }), B(!0);
243
+ }, dt = () => {
244
+ B(!1), H(null);
219
245
  };
220
246
  return /* @__PURE__ */ C(u, {
221
- title: X.title,
247
+ title: Y.title,
222
248
  subtitle: "Manage interview rounds, take-home assignments and applications for this posting.",
223
249
  icon: /* @__PURE__ */ S(h, { size: 24 }),
224
250
  headerActions: /* @__PURE__ */ C("div", {
225
251
  className: "flex items-center gap-2",
226
252
  children: [/* @__PURE__ */ C(t, {
227
253
  variant: "outline",
228
- onClick: () => M("/support/applications/postings"),
254
+ onClick: () => j("/support/applications/postings"),
229
255
  children: [/* @__PURE__ */ S(m, { size: 16 }), "Back"]
230
256
  }), /* @__PURE__ */ C(t, {
231
- onClick: () => F(!0),
257
+ onClick: () => P(!0),
232
258
  children: [/* @__PURE__ */ S(_, { size: 16 }), "Edit Posting"]
233
259
  })]
234
260
  }),
235
261
  children: [
236
- N && /* @__PURE__ */ C("div", {
237
- 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", 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"),
238
- children: [N.type === "success" ? /* @__PURE__ */ S(fe, {
262
+ M && /* @__PURE__ */ C("div", {
263
+ 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"),
264
+ children: [M.type === "success" ? /* @__PURE__ */ S(fe, {
239
265
  size: 20,
240
266
  className: "text-status-success-text"
241
267
  }) : /* @__PURE__ */ S(p, {
@@ -243,7 +269,7 @@ function M() {
243
269
  className: "text-status-error-text"
244
270
  }), /* @__PURE__ */ S("span", {
245
271
  className: "font-medium",
246
- children: N.message
272
+ children: M.message
247
273
  })]
248
274
  }),
249
275
  /* @__PURE__ */ C("div", {
@@ -254,40 +280,40 @@ function M() {
254
280
  className: "flex items-center gap-3 mb-2 flex-wrap",
255
281
  children: [/* @__PURE__ */ S("h1", {
256
282
  className: "text-xl font-bold text-text-primary",
257
- children: X.title
283
+ children: Y.title
258
284
  }), /* @__PURE__ */ S(e, {
259
- variant: et.variant,
260
- children: et.label
285
+ variant: Q.variant,
286
+ children: Q.label
261
287
  })]
262
288
  }), /* @__PURE__ */ C("div", {
263
289
  className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-text-secondary",
264
290
  children: [
265
- X.department && /* @__PURE__ */ C("span", {
291
+ Y.department && /* @__PURE__ */ C("span", {
266
292
  className: "flex items-center gap-1.5",
267
- children: [/* @__PURE__ */ S(de, { size: 14 }), X.department]
293
+ children: [/* @__PURE__ */ S(de, { size: 14 }), Y.department]
268
294
  }),
269
- X.location && /* @__PURE__ */ C("span", {
295
+ Y.location && /* @__PURE__ */ C("span", {
270
296
  className: "flex items-center gap-1.5",
271
- children: [/* @__PURE__ */ S(ge, { size: 14 }), X.location]
297
+ children: [/* @__PURE__ */ S(ge, { size: 14 }), Y.location]
272
298
  }),
273
- X.employmentType && /* @__PURE__ */ C("span", {
299
+ Y.employmentType && /* @__PURE__ */ C("span", {
274
300
  className: "flex items-center gap-1.5",
275
- children: [/* @__PURE__ */ S(pe, { size: 14 }), De[X.employmentType]]
301
+ children: [/* @__PURE__ */ S(pe, { size: 14 }), ke[Y.employmentType]]
276
302
  }),
277
- X.productId && /* @__PURE__ */ C("span", {
303
+ Y.productId && /* @__PURE__ */ C("span", {
278
304
  className: "flex items-center gap-1.5",
279
- children: [/* @__PURE__ */ S(he, { size: 14 }), X.productId]
305
+ children: [/* @__PURE__ */ S(he, { size: 14 }), Y.productId]
280
306
  })
281
307
  ]
282
308
  })] })
283
- }), X.description && /* @__PURE__ */ S("p", {
309
+ }), Y.description && /* @__PURE__ */ S("p", {
284
310
  className: "mt-4 text-sm text-text-primary leading-relaxed whitespace-pre-wrap",
285
- children: X.description
311
+ children: Y.description
286
312
  })]
287
313
  }),
288
314
  /* @__PURE__ */ C(n, {
289
- value: Me,
290
- onValueChange: Ne,
315
+ value: Fe,
316
+ onValueChange: Ie,
291
317
  children: [
292
318
  /* @__PURE__ */ C(ee, {
293
319
  className: "mb-6",
@@ -300,7 +326,7 @@ function M() {
300
326
  "Interview Rounds",
301
327
  /* @__PURE__ */ S("span", {
302
328
  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",
303
- children: X.rounds.length
329
+ children: Y.rounds.length
304
330
  })
305
331
  ]
306
332
  }),
@@ -312,7 +338,7 @@ function M() {
312
338
  "Assignments",
313
339
  /* @__PURE__ */ S("span", {
314
340
  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",
315
- children: X.assignments.length
341
+ children: Y.assignments.length
316
342
  })
317
343
  ]
318
344
  }),
@@ -324,7 +350,7 @@ function M() {
324
350
  "Applications",
325
351
  /* @__PURE__ */ S("span", {
326
352
  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",
327
- children: X.applications.length
353
+ children: Y.applications.length
328
354
  })
329
355
  ]
330
356
  })
@@ -339,7 +365,7 @@ function M() {
339
365
  className: "text-lg font-semibold text-text-primary",
340
366
  children: "Interview Rounds"
341
367
  }), /* @__PURE__ */ C(t, {
342
- onClick: nt,
368
+ onClick: it,
343
369
  children: [/* @__PURE__ */ S(y, { size: 16 }), "Add Round"]
344
370
  })]
345
371
  }), $.length === 0 ? /* @__PURE__ */ S(l, {
@@ -347,7 +373,7 @@ function M() {
347
373
  title: "No rounds configured",
348
374
  description: "Add interview rounds to define your hiring pipeline for this posting.",
349
375
  action: /* @__PURE__ */ C(t, {
350
- onClick: nt,
376
+ onClick: it,
351
377
  children: [/* @__PURE__ */ S(y, { size: 16 }), "Add Round"]
352
378
  })
353
379
  }) : /* @__PURE__ */ S("div", {
@@ -370,7 +396,7 @@ function M() {
370
396
  }),
371
397
  /* @__PURE__ */ S(e, {
372
398
  variant: "secondary",
373
- children: Oe[t.roundType]
399
+ children: Ae[t.roundType]
374
400
  }),
375
401
  t.isAssignmentRound && /* @__PURE__ */ S(e, {
376
402
  variant: "outline",
@@ -390,19 +416,19 @@ function M() {
390
416
  className: "flex items-center gap-1",
391
417
  children: [/* @__PURE__ */ S("button", {
392
418
  type: "button",
393
- onClick: () => rt(t),
419
+ onClick: () => at(t),
394
420
  className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors",
395
421
  "aria-label": "Edit round config",
396
422
  title: "Edit round config",
397
423
  children: /* @__PURE__ */ S(_, { size: 16 })
398
424
  }), /* @__PURE__ */ S("button", {
399
425
  type: "button",
400
- onClick: () => q(t.id),
401
- disabled: qe,
426
+ onClick: () => K(t.id),
427
+ disabled: Xe,
402
428
  className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50",
403
429
  "aria-label": "Delete round config",
404
430
  title: "Delete round config",
405
- children: qe && K === t.id ? /* @__PURE__ */ S(v, {
431
+ children: Xe && G === t.id ? /* @__PURE__ */ S(v, {
406
432
  size: 16,
407
433
  className: "animate-spin"
408
434
  }) : /* @__PURE__ */ S(_e, { size: 16 })
@@ -421,20 +447,20 @@ function M() {
421
447
  className: "text-lg font-semibold text-text-primary",
422
448
  children: "Take-home Assignments"
423
449
  }), /* @__PURE__ */ C(t, {
424
- onClick: st,
450
+ onClick: lt,
425
451
  children: [/* @__PURE__ */ S(y, { size: 16 }), "Add Assignment"]
426
452
  })]
427
- }), X.assignments.length === 0 ? /* @__PURE__ */ S(l, {
453
+ }), Y.assignments.length === 0 ? /* @__PURE__ */ S(l, {
428
454
  icon: /* @__PURE__ */ S(me, { size: 48 }),
429
455
  title: "No assignments configured",
430
456
  description: "Add take-home assignments for candidates to complete during the hiring process.",
431
457
  action: /* @__PURE__ */ C(t, {
432
- onClick: st,
458
+ onClick: lt,
433
459
  children: [/* @__PURE__ */ S(y, { size: 16 }), "Add Assignment"]
434
460
  })
435
461
  }) : /* @__PURE__ */ S("div", {
436
462
  className: "space-y-3",
437
- children: X.assignments.map((t) => /* @__PURE__ */ C("div", {
463
+ children: Y.assignments.map((t) => /* @__PURE__ */ C("div", {
438
464
  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"),
439
465
  children: [/* @__PURE__ */ C("div", {
440
466
  className: "flex-1 min-w-0",
@@ -469,19 +495,19 @@ function M() {
469
495
  className: "flex items-center gap-1",
470
496
  children: [/* @__PURE__ */ S("button", {
471
497
  type: "button",
472
- onClick: () => ct(t),
498
+ onClick: () => ut(t),
473
499
  className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-text-secondary transition-colors",
474
500
  "aria-label": "Edit assignment",
475
501
  title: "Edit assignment",
476
502
  children: /* @__PURE__ */ S(_, { size: 16 })
477
503
  }), /* @__PURE__ */ S("button", {
478
504
  type: "button",
479
- onClick: () => Y(t.id),
480
- disabled: $e,
505
+ onClick: () => J(t.id),
506
+ disabled: nt,
481
507
  className: "min-h-10 min-w-10 p-2 rounded-lg hover:bg-bg-sunken text-status-error-text transition-colors disabled:opacity-50",
482
508
  "aria-label": "Delete assignment",
483
509
  title: "Delete assignment",
484
- children: $e && J === t.id ? /* @__PURE__ */ S(v, {
510
+ children: nt && q === t.id ? /* @__PURE__ */ S(v, {
485
511
  size: 16,
486
512
  className: "animate-spin"
487
513
  }) : /* @__PURE__ */ S(_e, { size: 16 })
@@ -499,15 +525,15 @@ function M() {
499
525
  className: "text-lg font-semibold text-text-primary",
500
526
  children: "Applications"
501
527
  })
502
- }), X.applications.length === 0 ? /* @__PURE__ */ S(l, {
528
+ }), Y.applications.length === 0 ? /* @__PURE__ */ S(l, {
503
529
  icon: /* @__PURE__ */ S(h, { size: 48 }),
504
530
  title: "No applications yet",
505
531
  description: "Candidates who apply for this posting will appear here."
506
532
  }) : /* @__PURE__ */ S("div", {
507
533
  className: "space-y-3",
508
- children: X.applications.map((e) => /* @__PURE__ */ S("button", {
534
+ children: Y.applications.map((e) => /* @__PURE__ */ S("button", {
509
535
  type: "button",
510
- onClick: () => M(`/support/applications/${e.id}`),
536
+ onClick: () => j(`/support/applications/${e.id}`),
511
537
  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",
512
538
  children: /* @__PURE__ */ C("div", {
513
539
  className: "flex items-start justify-between gap-4",
@@ -523,8 +549,8 @@ function M() {
523
549
  e.lastName
524
550
  ]
525
551
  }), /* @__PURE__ */ S("span", {
526
- className: c("inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium", j[e.status] || j.NEW),
527
- children: ke[e.status] || e.status
552
+ className: c("inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium", je[e.status] || je.NEW),
553
+ children: Me[e.status] || e.status
528
554
  })]
529
555
  }), /* @__PURE__ */ S("p", {
530
556
  className: "text-xs text-text-secondary truncate",
@@ -532,7 +558,7 @@ function M() {
532
558
  })]
533
559
  }), /* @__PURE__ */ S("div", {
534
560
  className: "text-xs text-text-secondary whitespace-nowrap",
535
- children: Ae(e.createdAt)
561
+ children: Ne(e.createdAt)
536
562
  })]
537
563
  })
538
564
  }, e.id))
@@ -540,13 +566,13 @@ function M() {
540
566
  })
541
567
  ]
542
568
  }),
543
- /* @__PURE__ */ S(D, {
544
- open: Pe,
545
- onOpenChange: F,
546
- children: /* @__PURE__ */ C(O, {
569
+ /* @__PURE__ */ S(T, {
570
+ open: Le,
571
+ onOpenChange: P,
572
+ children: /* @__PURE__ */ C(E, {
547
573
  className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
548
- children: [/* @__PURE__ */ S(k, { children: /* @__PURE__ */ S(A, { children: "Edit Job Posting" }) }), /* @__PURE__ */ C("form", {
549
- onSubmit: tt,
574
+ children: [/* @__PURE__ */ S(D, { children: /* @__PURE__ */ S(O, { children: "Edit Job Posting" }) }), /* @__PURE__ */ C("form", {
575
+ onSubmit: rt,
550
576
  className: "space-y-5",
551
577
  children: [
552
578
  /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C("label", {
@@ -559,14 +585,47 @@ function M() {
559
585
  }), /* @__PURE__ */ S("input", {
560
586
  id: "posting-title",
561
587
  type: "text",
562
- value: Z.title,
563
- onChange: (e) => Q({
564
- ...Z,
588
+ value: X.title,
589
+ onChange: (e) => Z({
590
+ ...X,
565
591
  title: e.target.value
566
592
  }),
567
593
  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",
568
594
  required: !0
569
595
  })] }),
596
+ /* @__PURE__ */ C("div", {
597
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
598
+ children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
599
+ htmlFor: "posting-slug",
600
+ className: "block text-sm font-medium text-text-primary mb-2",
601
+ children: "Slug"
602
+ }), /* @__PURE__ */ S("input", {
603
+ id: "posting-slug",
604
+ type: "text",
605
+ value: X.slug,
606
+ onChange: (e) => Z({
607
+ ...X,
608
+ slug: e.target.value
609
+ }),
610
+ placeholder: "e.g., product-engineering-intern-full-stack",
611
+ 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"
612
+ })] }), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
613
+ htmlFor: "posting-openings",
614
+ className: "block text-sm font-medium text-text-primary mb-2",
615
+ children: "Openings"
616
+ }), /* @__PURE__ */ S("input", {
617
+ id: "posting-openings",
618
+ type: "number",
619
+ min: 1,
620
+ value: X.openings,
621
+ onChange: (e) => Z({
622
+ ...X,
623
+ openings: e.target.value
624
+ }),
625
+ placeholder: "e.g., 2",
626
+ 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"
627
+ })] })]
628
+ }),
570
629
  /* @__PURE__ */ C("div", {
571
630
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
572
631
  children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
@@ -576,9 +635,9 @@ function M() {
576
635
  }), /* @__PURE__ */ S("input", {
577
636
  id: "posting-department",
578
637
  type: "text",
579
- value: Z.department,
580
- onChange: (e) => Q({
581
- ...Z,
638
+ value: X.department,
639
+ onChange: (e) => Z({
640
+ ...X,
582
641
  department: e.target.value
583
642
  }),
584
643
  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"
@@ -589,9 +648,9 @@ function M() {
589
648
  }), /* @__PURE__ */ S("input", {
590
649
  id: "posting-location",
591
650
  type: "text",
592
- value: Z.location,
593
- onChange: (e) => Q({
594
- ...Z,
651
+ value: X.location,
652
+ onChange: (e) => Z({
653
+ ...X,
595
654
  location: e.target.value
596
655
  }),
597
656
  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"
@@ -605,9 +664,9 @@ function M() {
605
664
  children: "Employment Type"
606
665
  }), /* @__PURE__ */ C("select", {
607
666
  id: "posting-employment-type",
608
- value: Z.employmentType,
609
- onChange: (e) => Q({
610
- ...Z,
667
+ value: X.employmentType,
668
+ onChange: (e) => Z({
669
+ ...X,
611
670
  employmentType: e.target.value
612
671
  }),
613
672
  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",
@@ -639,9 +698,9 @@ function M() {
639
698
  children: "Status"
640
699
  }), /* @__PURE__ */ C("select", {
641
700
  id: "posting-status",
642
- value: Z.status,
643
- onChange: (e) => Q({
644
- ...Z,
701
+ value: X.status,
702
+ onChange: (e) => Z({
703
+ ...X,
645
704
  status: e.target.value
646
705
  }),
647
706
  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",
@@ -672,9 +731,9 @@ function M() {
672
731
  }), /* @__PURE__ */ S("input", {
673
732
  id: "posting-product-id",
674
733
  type: "text",
675
- value: Z.productId,
676
- onChange: (e) => Q({
677
- ...Z,
734
+ value: X.productId,
735
+ onChange: (e) => Z({
736
+ ...X,
678
737
  productId: e.target.value
679
738
  }),
680
739
  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"
@@ -685,28 +744,109 @@ function M() {
685
744
  children: "Description"
686
745
  }), /* @__PURE__ */ S("textarea", {
687
746
  id: "posting-description",
688
- value: Z.description,
689
- onChange: (e) => Q({
690
- ...Z,
747
+ value: X.description,
748
+ onChange: (e) => Z({
749
+ ...X,
691
750
  description: e.target.value
692
751
  }),
693
752
  rows: 4,
694
753
  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"
695
754
  })] }),
755
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
756
+ htmlFor: "posting-overview",
757
+ className: "block text-sm font-medium text-text-primary mb-2",
758
+ children: "Overview"
759
+ }), /* @__PURE__ */ S("textarea", {
760
+ id: "posting-overview",
761
+ value: X.overview,
762
+ onChange: (e) => Z({
763
+ ...X,
764
+ overview: e.target.value
765
+ }),
766
+ rows: 3,
767
+ placeholder: "Short pitch shown at the top of the careers page…",
768
+ 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"
769
+ })] }),
770
+ /* @__PURE__ */ C("div", { children: [
771
+ /* @__PURE__ */ S("label", {
772
+ htmlFor: "posting-responsibilities",
773
+ className: "block text-sm font-medium text-text-primary mb-2",
774
+ children: "Responsibilities"
775
+ }),
776
+ /* @__PURE__ */ S("textarea", {
777
+ id: "posting-responsibilities",
778
+ value: X.responsibilities,
779
+ onChange: (e) => Z({
780
+ ...X,
781
+ responsibilities: e.target.value
782
+ }),
783
+ rows: 4,
784
+ placeholder: "One responsibility per line",
785
+ 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"
786
+ }),
787
+ /* @__PURE__ */ S("p", {
788
+ className: "mt-1 text-xs text-text-secondary",
789
+ children: "Enter one item per line."
790
+ })
791
+ ] }),
792
+ /* @__PURE__ */ C("div", { children: [
793
+ /* @__PURE__ */ S("label", {
794
+ htmlFor: "posting-learnings",
795
+ className: "block text-sm font-medium text-text-primary mb-2",
796
+ children: "Learnings"
797
+ }),
798
+ /* @__PURE__ */ S("textarea", {
799
+ id: "posting-learnings",
800
+ value: X.learnings,
801
+ onChange: (e) => Z({
802
+ ...X,
803
+ learnings: e.target.value
804
+ }),
805
+ rows: 4,
806
+ placeholder: "One learning per line",
807
+ 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"
808
+ }),
809
+ /* @__PURE__ */ S("p", {
810
+ className: "mt-1 text-xs text-text-secondary",
811
+ children: "Enter one item per line."
812
+ })
813
+ ] }),
814
+ /* @__PURE__ */ C("div", { children: [
815
+ /* @__PURE__ */ S("label", {
816
+ htmlFor: "posting-qualifications",
817
+ className: "block text-sm font-medium text-text-primary mb-2",
818
+ children: "Qualifications"
819
+ }),
820
+ /* @__PURE__ */ S("textarea", {
821
+ id: "posting-qualifications",
822
+ value: X.qualifications,
823
+ onChange: (e) => Z({
824
+ ...X,
825
+ qualifications: e.target.value
826
+ }),
827
+ rows: 4,
828
+ placeholder: "One qualification per line",
829
+ 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"
830
+ }),
831
+ /* @__PURE__ */ S("p", {
832
+ className: "mt-1 text-xs text-text-secondary",
833
+ children: "Enter one item per line."
834
+ })
835
+ ] }),
696
836
  /* @__PURE__ */ C("div", {
697
837
  className: "flex flex-col gap-3 pt-2 sm:flex-row",
698
838
  children: [/* @__PURE__ */ S(t, {
699
839
  type: "submit",
700
- disabled: Ve || !Z.title.trim(),
840
+ disabled: We || !X.title.trim(),
701
841
  className: "flex-1",
702
- children: Ve ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(v, {
842
+ children: We ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(v, {
703
843
  size: 16,
704
844
  className: "animate-spin"
705
845
  }), "Saving…"] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(g, { size: 16 }), "Save Changes"] })
706
846
  }), /* @__PURE__ */ C(t, {
707
847
  type: "button",
708
848
  variant: "outline",
709
- onClick: () => F(!1),
849
+ onClick: () => P(!1),
710
850
  children: [/* @__PURE__ */ S(b, { size: 16 }), "Cancel"]
711
851
  })]
712
852
  })
@@ -714,13 +854,13 @@ function M() {
714
854
  })]
715
855
  })
716
856
  }),
717
- /* @__PURE__ */ S(D, {
718
- open: Fe,
719
- onOpenChange: I,
720
- children: /* @__PURE__ */ C(O, {
857
+ /* @__PURE__ */ S(T, {
858
+ open: Re,
859
+ onOpenChange: F,
860
+ children: /* @__PURE__ */ C(E, {
721
861
  className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
722
- children: [/* @__PURE__ */ S(k, { children: /* @__PURE__ */ S(A, { children: L ? "Edit Round Config" : "Add Round Config" }) }), /* @__PURE__ */ C("form", {
723
- onSubmit: at,
862
+ children: [/* @__PURE__ */ S(D, { children: /* @__PURE__ */ S(O, { children: I ? "Edit Round Config" : "Add Round Config" }) }), /* @__PURE__ */ C("form", {
863
+ onSubmit: st,
724
864
  className: "space-y-5",
725
865
  children: [
726
866
  /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C("label", {
@@ -733,9 +873,9 @@ function M() {
733
873
  }), /* @__PURE__ */ S("input", {
734
874
  id: "round-name",
735
875
  type: "text",
736
- value: z.name,
737
- onChange: (e) => B({
738
- ...z,
876
+ value: R.name,
877
+ onChange: (e) => z({
878
+ ...R,
739
879
  name: e.target.value
740
880
  }),
741
881
  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",
@@ -747,15 +887,15 @@ function M() {
747
887
  children: "Round Type"
748
888
  }), /* @__PURE__ */ S("select", {
749
889
  id: "round-type",
750
- value: z.roundType,
751
- onChange: (e) => B({
752
- ...z,
890
+ value: R.roundType,
891
+ onChange: (e) => z({
892
+ ...R,
753
893
  roundType: e.target.value
754
894
  }),
755
895
  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",
756
896
  children: Object.values(o).map((e) => /* @__PURE__ */ S("option", {
757
897
  value: e,
758
- children: Oe[e]
898
+ children: Ae[e]
759
899
  }, e))
760
900
  })] }),
761
901
  /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
@@ -764,9 +904,9 @@ function M() {
764
904
  children: "Description"
765
905
  }), /* @__PURE__ */ S("textarea", {
766
906
  id: "round-description",
767
- value: z.description,
768
- onChange: (e) => B({
769
- ...z,
907
+ value: R.description,
908
+ onChange: (e) => z({
909
+ ...R,
770
910
  description: e.target.value
771
911
  }),
772
912
  rows: 3,
@@ -778,9 +918,9 @@ function M() {
778
918
  className: "flex items-center gap-3 cursor-pointer",
779
919
  children: [/* @__PURE__ */ S("input", {
780
920
  type: "checkbox",
781
- checked: z.isAssignmentRound,
782
- onChange: (e) => B({
783
- ...z,
921
+ checked: R.isAssignmentRound,
922
+ onChange: (e) => z({
923
+ ...R,
784
924
  isAssignmentRound: e.target.checked
785
925
  }),
786
926
  className: "size-4 rounded border-border-default text-primary focus:ring-primary"
@@ -792,9 +932,9 @@ function M() {
792
932
  className: "flex items-center gap-3 cursor-pointer",
793
933
  children: [/* @__PURE__ */ S("input", {
794
934
  type: "checkbox",
795
- checked: z.isRequired,
796
- onChange: (e) => B({
797
- ...z,
935
+ checked: R.isRequired,
936
+ onChange: (e) => z({
937
+ ...R,
798
938
  isRequired: e.target.checked
799
939
  }),
800
940
  className: "size-4 rounded border-border-default text-primary focus:ring-primary"
@@ -808,16 +948,16 @@ function M() {
808
948
  className: "flex flex-col gap-3 pt-2 sm:flex-row",
809
949
  children: [/* @__PURE__ */ S(t, {
810
950
  type: "submit",
811
- disabled: Ue || Ge || !z.name.trim(),
951
+ disabled: Ke || Je || !R.name.trim(),
812
952
  className: "flex-1",
813
- children: Ue || Ge ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(v, {
953
+ children: Ke || Je ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(v, {
814
954
  size: 16,
815
955
  className: "animate-spin"
816
- }), L ? "Saving…" : "Creating…"] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(g, { size: 16 }), L ? "Update Round" : "Create Round"] })
956
+ }), I ? "Saving…" : "Creating…"] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(g, { size: 16 }), I ? "Update Round" : "Create Round"] })
817
957
  }), /* @__PURE__ */ C(t, {
818
958
  type: "button",
819
959
  variant: "outline",
820
- onClick: it,
960
+ onClick: ot,
821
961
  children: [/* @__PURE__ */ S(b, { size: 16 }), "Cancel"]
822
962
  })]
823
963
  })
@@ -825,33 +965,33 @@ function M() {
825
965
  })]
826
966
  })
827
967
  }),
828
- /* @__PURE__ */ S(D, {
829
- open: Ie,
830
- onOpenChange: V,
831
- children: /* @__PURE__ */ C(O, {
968
+ /* @__PURE__ */ S(T, {
969
+ open: ze,
970
+ onOpenChange: B,
971
+ children: /* @__PURE__ */ C(E, {
832
972
  className: "w-full max-w-lg max-h-[90vh] overflow-y-auto",
833
- children: [/* @__PURE__ */ S(k, { children: /* @__PURE__ */ S(A, { children: H ? "Edit Assignment" : "Add Assignment" }) }), /* @__PURE__ */ C("form", {
973
+ children: [/* @__PURE__ */ S(D, { children: /* @__PURE__ */ S(O, { children: V ? "Edit Assignment" : "Add Assignment" }) }), /* @__PURE__ */ C("form", {
834
974
  onSubmit: async (e) => {
835
- if (e.preventDefault(), !(!d || !W.title.trim() || !W.description.trim())) try {
836
- H ? (await Xe({ variables: {
837
- id: H.id,
975
+ if (e.preventDefault(), !(!d || !U.title.trim() || !U.description.trim())) try {
976
+ V ? (await $e({ variables: {
977
+ id: V.id,
838
978
  input: {
839
- title: W.title,
840
- description: W.description,
841
- problemStatement: W.problemStatement || void 0,
842
- difficulty: W.difficulty || void 0,
843
- isActive: W.isActive
979
+ title: U.title,
980
+ description: U.description,
981
+ problemStatement: U.problemStatement || void 0,
982
+ difficulty: U.difficulty || void 0,
983
+ isActive: U.isActive
844
984
  }
845
- } }), P("success", "Assignment updated.")) : (await Je({ variables: { input: {
985
+ } }), N("success", "Assignment updated.")) : (await Ze({ variables: { input: {
846
986
  jobPostingId: d,
847
- title: W.title,
848
- description: W.description,
849
- problemStatement: W.problemStatement || void 0,
850
- difficulty: W.difficulty || void 0,
851
- isActive: W.isActive
852
- } } }), P("success", "Assignment created.")), lt();
987
+ title: U.title,
988
+ description: U.description,
989
+ problemStatement: U.problemStatement || void 0,
990
+ difficulty: U.difficulty || void 0,
991
+ isActive: U.isActive
992
+ } } }), N("success", "Assignment created.")), dt();
853
993
  } catch {
854
- P("error", `Failed to ${H ? "update" : "create"} assignment.`);
994
+ N("error", `Failed to ${V ? "update" : "create"} assignment.`);
855
995
  }
856
996
  },
857
997
  className: "space-y-5",
@@ -866,9 +1006,9 @@ function M() {
866
1006
  }), /* @__PURE__ */ S("input", {
867
1007
  id: "assignment-title",
868
1008
  type: "text",
869
- value: W.title,
870
- onChange: (e) => G({
871
- ...W,
1009
+ value: U.title,
1010
+ onChange: (e) => W({
1011
+ ...U,
872
1012
  title: e.target.value
873
1013
  }),
874
1014
  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",
@@ -881,9 +1021,9 @@ function M() {
881
1021
  }), /* @__PURE__ */ S("input", {
882
1022
  id: "assignment-difficulty",
883
1023
  type: "text",
884
- value: W.difficulty,
885
- onChange: (e) => G({
886
- ...W,
1024
+ value: U.difficulty,
1025
+ onChange: (e) => W({
1026
+ ...U,
887
1027
  difficulty: e.target.value
888
1028
  }),
889
1029
  placeholder: "e.g., Easy, Medium, Hard",
@@ -898,9 +1038,9 @@ function M() {
898
1038
  })]
899
1039
  }), /* @__PURE__ */ S("textarea", {
900
1040
  id: "assignment-description",
901
- value: W.description,
902
- onChange: (e) => G({
903
- ...W,
1041
+ value: U.description,
1042
+ onChange: (e) => W({
1043
+ ...U,
904
1044
  description: e.target.value
905
1045
  }),
906
1046
  rows: 3,
@@ -913,9 +1053,9 @@ function M() {
913
1053
  children: "Problem Statement"
914
1054
  }), /* @__PURE__ */ S("textarea", {
915
1055
  id: "assignment-problem-statement",
916
- value: W.problemStatement,
917
- onChange: (e) => G({
918
- ...W,
1056
+ value: U.problemStatement,
1057
+ onChange: (e) => W({
1058
+ ...U,
919
1059
  problemStatement: e.target.value
920
1060
  }),
921
1061
  rows: 4,
@@ -925,9 +1065,9 @@ function M() {
925
1065
  className: "flex items-center gap-3 cursor-pointer",
926
1066
  children: [/* @__PURE__ */ S("input", {
927
1067
  type: "checkbox",
928
- checked: W.isActive,
929
- onChange: (e) => G({
930
- ...W,
1068
+ checked: U.isActive,
1069
+ onChange: (e) => W({
1070
+ ...U,
931
1071
  isActive: e.target.checked
932
1072
  }),
933
1073
  className: "size-4 rounded border-border-default text-primary focus:ring-primary"
@@ -940,16 +1080,16 @@ function M() {
940
1080
  className: "flex flex-col gap-3 pt-2 sm:flex-row",
941
1081
  children: [/* @__PURE__ */ S(t, {
942
1082
  type: "submit",
943
- disabled: Ye || Ze || !W.title.trim() || !W.description.trim(),
1083
+ disabled: Qe || et || !U.title.trim() || !U.description.trim(),
944
1084
  className: "flex-1",
945
- children: Ye || Ze ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(v, {
1085
+ children: Qe || et ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(v, {
946
1086
  size: 16,
947
1087
  className: "animate-spin"
948
- }), H ? "Saving…" : "Creating…"] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(g, { size: 16 }), H ? "Update Assignment" : "Create Assignment"] })
1088
+ }), V ? "Saving…" : "Creating…"] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(g, { size: 16 }), V ? "Update Assignment" : "Create Assignment"] })
949
1089
  }), /* @__PURE__ */ C(t, {
950
1090
  type: "button",
951
1091
  variant: "outline",
952
- onClick: lt,
1092
+ onClick: dt,
953
1093
  children: [/* @__PURE__ */ S(b, { size: 16 }), "Cancel"]
954
1094
  })]
955
1095
  })
@@ -958,29 +1098,29 @@ function M() {
958
1098
  })
959
1099
  }),
960
1100
  /* @__PURE__ */ S(xe, {
961
- open: K !== null,
1101
+ open: G !== null,
962
1102
  onOpenChange: (e) => {
963
- e || q(null);
1103
+ e || K(null);
964
1104
  },
965
- children: /* @__PURE__ */ C(we, { children: [/* @__PURE__ */ C(T, { children: [/* @__PURE__ */ S(E, { children: "Delete round config?" }), /* @__PURE__ */ S(Te, { children: "Are you sure you want to delete this interview round config? This action cannot be undone." })] }), /* @__PURE__ */ C(w, { children: [/* @__PURE__ */ S(Ce, { children: "Cancel" }), /* @__PURE__ */ S(Se, {
966
- onClick: ot,
1105
+ children: /* @__PURE__ */ C(we, { children: [/* @__PURE__ */ C(De, { children: [/* @__PURE__ */ S(w, { children: "Delete round config?" }), /* @__PURE__ */ S(Te, { children: "Are you sure you want to delete this interview round config? This action cannot be undone." })] }), /* @__PURE__ */ C(Ee, { children: [/* @__PURE__ */ S(Ce, { children: "Cancel" }), /* @__PURE__ */ S(Se, {
1106
+ onClick: ct,
967
1107
  children: "Delete"
968
1108
  })] })] })
969
1109
  }),
970
1110
  /* @__PURE__ */ S(xe, {
971
- open: J !== null,
1111
+ open: q !== null,
972
1112
  onOpenChange: (e) => {
973
- e || Y(null);
1113
+ e || J(null);
974
1114
  },
975
- children: /* @__PURE__ */ C(we, { children: [/* @__PURE__ */ C(T, { children: [/* @__PURE__ */ S(E, { children: "Delete assignment?" }), /* @__PURE__ */ S(Te, { children: "Are you sure you want to delete this assignment? This action cannot be undone." })] }), /* @__PURE__ */ C(w, { children: [/* @__PURE__ */ S(Ce, { children: "Cancel" }), /* @__PURE__ */ S(Se, {
1115
+ children: /* @__PURE__ */ C(we, { children: [/* @__PURE__ */ C(De, { children: [/* @__PURE__ */ S(w, { children: "Delete assignment?" }), /* @__PURE__ */ S(Te, { children: "Are you sure you want to delete this assignment? This action cannot be undone." })] }), /* @__PURE__ */ C(Ee, { children: [/* @__PURE__ */ S(Ce, { children: "Cancel" }), /* @__PURE__ */ S(Se, {
976
1116
  onClick: async () => {
977
- let e = J;
1117
+ let e = q;
978
1118
  if (e) {
979
- Y(null);
1119
+ J(null);
980
1120
  try {
981
- await Qe({ variables: { id: e } }), P("success", "Assignment deleted.");
1121
+ await tt({ variables: { id: e } }), N("success", "Assignment deleted.");
982
1122
  } catch {
983
- P("error", "Failed to delete assignment.");
1123
+ N("error", "Failed to delete assignment.");
984
1124
  }
985
1125
  }
986
1126
  },
@@ -991,6 +1131,6 @@ function M() {
991
1131
  });
992
1132
  }
993
1133
  //#endregion
994
- export { M as JobPostingDetailPage };
1134
+ export { j as JobPostingDetailPage };
995
1135
 
996
1136
  //# sourceMappingURL=JobPostingDetailPage.js.map