@burdenoff/microfe-support 2026.818.1 → 2026.819.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/global-operations.d.ts +110 -0
- package/dist/generated/global-operations.js +259 -225
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +42 -16
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +7 -5
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +399 -304
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js +23 -17
- package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +130 -130
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/support/SupportAdminRoot.js +4 -2
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportAdminRoutes.js +2 -2
- package/dist/support/SupportAdminRoutes.js.map +1 -1
- package/dist/support/SupportUserRoot.js +4 -2
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.js +2 -2
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/NotificationToast.js.map +1 -1
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/MetricCard.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +5 -5
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateActionGuidance.d.ts +6 -0
- package/dist/support/components/careers/BulkCandidateActionGuidance.js +28 -0
- package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -0
- package/dist/support/components/careers/BulkCandidateDialogs.d.ts +18 -0
- package/dist/support/components/careers/BulkCandidateDialogs.js +441 -0
- package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -0
- package/dist/support/components/careers/BulkOperationFeedback.d.ts +21 -0
- package/dist/support/components/careers/BulkOperationFeedback.js +194 -0
- package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -0
- package/dist/support/components/careers/BulkSelectionSummary.d.ts +6 -0
- package/dist/support/components/careers/BulkSelectionSummary.js +15 -0
- package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -0
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +2 -2
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/MessageThread.js +1 -1
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/constants/pipeline.js.map +1 -1
- package/dist/support/events/rybbit.js.map +1 -1
- package/dist/support/hooks/index.js +6 -5
- package/dist/support/hooks/useAnalyticsOperations.js +1 -1
- package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
- package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
- package/dist/support/hooks/useChatOperations.js +7 -7
- package/dist/support/hooks/useChatOperations.js.map +1 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useNotification.js.map +1 -1
- package/dist/support/hooks/useRegisterFooter.js.map +1 -1
- package/dist/support/hooks/useSettingsOperations.js.map +1 -1
- package/dist/support/hooks/useSupportAttachments.js.map +1 -1
- package/dist/support/hooks/useTicketListOperations.js.map +1 -1
- package/dist/support/hooks/useTicketOperations.js +76 -75
- package/dist/support/hooks/useTicketOperations.js.map +1 -1
- package/dist/support/index.js +11 -10
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +4 -1
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +4 -3
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/InterviewersPage.js +127 -127
- package/dist/support/pages/InterviewersPage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +532 -631
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/JobPostingsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +4 -1
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +4 -1
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/utils/attachments.js +3 -3
- package/dist/support/utils/attachments.js.map +1 -1
- package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
- package/dist/support/utils/bulkCandidateOperations.d.ts +174 -0
- package/dist/support/utils/bulkCandidateOperations.js +265 -0
- package/dist/support/utils/bulkCandidateOperations.js.map +1 -0
- package/dist/support/utils/categoryColors.js.map +1 -1
- package/dist/support/utils/cn.js +1 -1
- package/dist/support/utils/cn.js.map +1 -1
- package/dist/support/utils/context.js.map +1 -1
- package/dist/support/utils/errors.js.map +1 -1
- package/dist/support/utils/i18n.js.map +1 -1
- package/dist/support/utils/index.js +1 -1
- package/dist/support/utils/index.js.map +1 -1
- package/dist/support/utils/markdown.js +2 -2
- package/dist/support/utils/markdown.js.map +1 -1
- package/dist/support/utils/supportFiles.js.map +1 -1
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/uiTokens.js.map +1 -1
- package/package.json +22 -12
|
@@ -4,10 +4,10 @@ import { cn as g } from "../utils/cn.js";
|
|
|
4
4
|
import { EmptyState as _, LoadingState as re, PageLayout as v } from "../components/PageLayout.js";
|
|
5
5
|
import { nativeNotify as y } from "../../utils/nativeBridge.js";
|
|
6
6
|
import { useEffect as ie, useMemo as ae, useState as b } from "react";
|
|
7
|
-
import { Check as oe, Loader2 as x, MoreHorizontal as se, Pencil as
|
|
8
|
-
import { Fragment as
|
|
7
|
+
import { Check as oe, Loader2 as x, MoreHorizontal as se, Pencil as S, Plus as C, Search as w, Trash2 as T, Users as E, X as D } from "lucide-react";
|
|
8
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
9
9
|
//#region src/support/pages/InterviewersPage.tsx
|
|
10
|
-
var
|
|
10
|
+
var j = {
|
|
11
11
|
name: "",
|
|
12
12
|
email: "",
|
|
13
13
|
userId: "",
|
|
@@ -16,7 +16,7 @@ var A = {
|
|
|
16
16
|
isActive: !0,
|
|
17
17
|
notes: ""
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function ce(e) {
|
|
20
20
|
return {
|
|
21
21
|
name: e.name.trim(),
|
|
22
22
|
email: e.email.trim(),
|
|
@@ -27,44 +27,44 @@ function le(e) {
|
|
|
27
27
|
notes: e.notes.trim() || void 0
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function le(e) {
|
|
31
31
|
return new Date(e).toLocaleDateString("en-US", {
|
|
32
32
|
month: "short",
|
|
33
33
|
day: "numeric",
|
|
34
34
|
year: "numeric"
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
let [
|
|
37
|
+
function M() {
|
|
38
|
+
let [M, ue] = b(""), [N, de] = b(""), [fe, P] = b(!1), [F, I] = b(null), [L, R] = b(j), [z, B] = b({}), [V, H] = b(!1), [U, W] = b(null);
|
|
39
39
|
ie(() => {
|
|
40
|
-
let e = setTimeout(() =>
|
|
40
|
+
let e = setTimeout(() => de(M.trim()), 300);
|
|
41
41
|
return () => clearTimeout(e);
|
|
42
|
-
}, [
|
|
43
|
-
let
|
|
42
|
+
}, [M]);
|
|
43
|
+
let pe = ae(() => {
|
|
44
|
+
let e = {};
|
|
45
|
+
return N && (e.search = N), e;
|
|
46
|
+
}, [N]), { data: G, loading: me, error: K, refetch: q } = m({
|
|
44
47
|
variables: {
|
|
45
|
-
filter:
|
|
46
|
-
let e = {};
|
|
47
|
-
return M && (e.search = M), e;
|
|
48
|
-
}, [M]),
|
|
48
|
+
filter: pe,
|
|
49
49
|
limit: 50,
|
|
50
50
|
offset: 0
|
|
51
51
|
},
|
|
52
52
|
fetchPolicy: "cache-and-network"
|
|
53
|
-
}), J = G?.interviewers?.items ?? [], Y = G?.interviewers?.total ?? 0, [
|
|
53
|
+
}), J = G?.interviewers?.items ?? [], Y = G?.interviewers?.total ?? 0, [he, { loading: ge }] = f({
|
|
54
54
|
onCompleted: () => {
|
|
55
55
|
y("success"), Q(), q();
|
|
56
56
|
},
|
|
57
57
|
onError: () => {
|
|
58
58
|
y("error");
|
|
59
59
|
}
|
|
60
|
-
}), [
|
|
60
|
+
}), [_e, { loading: ve }] = h({
|
|
61
61
|
onCompleted: () => {
|
|
62
62
|
y("success"), Q(), q();
|
|
63
63
|
},
|
|
64
64
|
onError: () => {
|
|
65
65
|
y("error");
|
|
66
66
|
}
|
|
67
|
-
}), [
|
|
67
|
+
}), [ye, { loading: X }] = p({
|
|
68
68
|
onCompleted: () => {
|
|
69
69
|
y("success"), H(!1), W(null), q();
|
|
70
70
|
},
|
|
@@ -72,8 +72,8 @@ function j() {
|
|
|
72
72
|
y("error"), H(!1), W(null);
|
|
73
73
|
}
|
|
74
74
|
}), Z = () => {
|
|
75
|
-
I(null), R(
|
|
76
|
-
},
|
|
75
|
+
I(null), R(j), B({}), P(!0);
|
|
76
|
+
}, be = (e) => {
|
|
77
77
|
I(e), R({
|
|
78
78
|
name: e.name,
|
|
79
79
|
email: e.email,
|
|
@@ -84,148 +84,148 @@ function j() {
|
|
|
84
84
|
notes: e.notes ?? ""
|
|
85
85
|
}), B({}), P(!0);
|
|
86
86
|
}, Q = () => {
|
|
87
|
-
P(!1), I(null), R(
|
|
88
|
-
},
|
|
87
|
+
P(!1), I(null), R(j), B({});
|
|
88
|
+
}, xe = () => {
|
|
89
89
|
let e = {};
|
|
90
90
|
return L.name.trim() || (e.name = "Name is required"), L.email.trim() ? /^\S+@\S+\.\S+$/.test(L.email.trim()) || (e.email = "Enter a valid email") : e.email = "Email is required", B(e), Object.keys(e).length === 0;
|
|
91
|
-
},
|
|
92
|
-
if (e.preventDefault(), !
|
|
93
|
-
let t =
|
|
94
|
-
F ?
|
|
91
|
+
}, Se = (e) => {
|
|
92
|
+
if (e.preventDefault(), !xe()) return;
|
|
93
|
+
let t = ce(L);
|
|
94
|
+
F ? _e({ variables: {
|
|
95
95
|
id: F.id,
|
|
96
96
|
input: t
|
|
97
|
-
} }) :
|
|
98
|
-
},
|
|
97
|
+
} }) : he({ variables: { input: t } });
|
|
98
|
+
}, Ce = (e) => {
|
|
99
99
|
W(e), H(!0);
|
|
100
|
-
},
|
|
101
|
-
U &&
|
|
102
|
-
}, $ =
|
|
103
|
-
return K ? /* @__PURE__ */
|
|
100
|
+
}, we = () => {
|
|
101
|
+
U && ye({ variables: { id: U.id } });
|
|
102
|
+
}, $ = ge || ve;
|
|
103
|
+
return K ? /* @__PURE__ */ k(v, {
|
|
104
104
|
title: "Interviewers",
|
|
105
105
|
subtitle: "Manage interview panel members",
|
|
106
|
-
icon: /* @__PURE__ */
|
|
107
|
-
children: /* @__PURE__ */
|
|
108
|
-
icon: /* @__PURE__ */
|
|
106
|
+
icon: /* @__PURE__ */ k(E, { size: 24 }),
|
|
107
|
+
children: /* @__PURE__ */ k(_, {
|
|
108
|
+
icon: /* @__PURE__ */ k(D, { size: 48 }),
|
|
109
109
|
title: "Failed to load interviewers",
|
|
110
110
|
description: K.message,
|
|
111
|
-
action: /* @__PURE__ */
|
|
111
|
+
action: /* @__PURE__ */ k(t, {
|
|
112
112
|
variant: "outline",
|
|
113
113
|
onClick: () => void q(),
|
|
114
114
|
children: "Retry"
|
|
115
115
|
})
|
|
116
116
|
})
|
|
117
|
-
}) : /* @__PURE__ */
|
|
117
|
+
}) : /* @__PURE__ */ A(v, {
|
|
118
118
|
title: "Interviewers",
|
|
119
119
|
subtitle: "Manage interview panel members",
|
|
120
|
-
icon: /* @__PURE__ */
|
|
121
|
-
headerActions: /* @__PURE__ */
|
|
120
|
+
icon: /* @__PURE__ */ k(E, { size: 24 }),
|
|
121
|
+
headerActions: /* @__PURE__ */ A(t, {
|
|
122
122
|
onClick: Z,
|
|
123
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ k(C, { size: 18 }), "New Interviewer"]
|
|
124
124
|
}),
|
|
125
125
|
children: [
|
|
126
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ k("div", {
|
|
127
127
|
className: "flex flex-col sm:flex-row gap-3",
|
|
128
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ A("div", {
|
|
129
129
|
className: "relative flex-1",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ k(w, {
|
|
131
131
|
size: 16,
|
|
132
132
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
|
|
133
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ k(l, {
|
|
134
134
|
type: "text",
|
|
135
135
|
"aria-label": "Search interviewers",
|
|
136
136
|
placeholder: "Search by name, email, department, or title...",
|
|
137
|
-
value:
|
|
138
|
-
onChange: (e) =>
|
|
137
|
+
value: M,
|
|
138
|
+
onChange: (e) => ue(e.target.value),
|
|
139
139
|
className: "pl-9"
|
|
140
140
|
})]
|
|
141
141
|
})
|
|
142
142
|
}),
|
|
143
|
-
|
|
143
|
+
me && J.length === 0 ? /* @__PURE__ */ k(re, { message: "Loading interviewers…" }) : J.length === 0 ? /* @__PURE__ */ k(_, {
|
|
144
144
|
illustration: "empty-people",
|
|
145
|
-
title:
|
|
146
|
-
description:
|
|
147
|
-
action:
|
|
145
|
+
title: N ? "No interviewers found" : "No interviewers yet",
|
|
146
|
+
description: N ? "Try adjusting your search terms." : "Add interviewers so you can assign them to interview rounds.",
|
|
147
|
+
action: N ? void 0 : /* @__PURE__ */ A(t, {
|
|
148
148
|
onClick: Z,
|
|
149
|
-
children: [/* @__PURE__ */
|
|
149
|
+
children: [/* @__PURE__ */ k(C, { size: 18 }), "Add Interviewer"]
|
|
150
150
|
})
|
|
151
|
-
}) : /* @__PURE__ */
|
|
151
|
+
}) : /* @__PURE__ */ k("div", {
|
|
152
152
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
153
|
-
children: J.map((n) => /* @__PURE__ */
|
|
153
|
+
children: J.map((n) => /* @__PURE__ */ A("div", {
|
|
154
154
|
className: "p-4 rounded-xl border border-border-seam bg-bg-surface shadow-[var(--shadow-pop)] hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong transition-[box-shadow,border-color] duration-200",
|
|
155
155
|
children: [
|
|
156
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ A("div", {
|
|
157
157
|
className: "flex items-start justify-between gap-3 mb-3",
|
|
158
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ A("div", {
|
|
159
159
|
className: "min-w-0",
|
|
160
|
-
children: [/* @__PURE__ */
|
|
160
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
161
161
|
className: "font-semibold text-text-primary truncate",
|
|
162
162
|
children: n.name
|
|
163
|
-
}), /* @__PURE__ */
|
|
163
|
+
}), /* @__PURE__ */ k("p", {
|
|
164
164
|
className: "text-sm text-text-secondary truncate",
|
|
165
165
|
children: n.email
|
|
166
166
|
})]
|
|
167
|
-
}), /* @__PURE__ */
|
|
167
|
+
}), /* @__PURE__ */ A(ee, { children: [/* @__PURE__ */ k(ne, {
|
|
168
168
|
asChild: !0,
|
|
169
|
-
children: /* @__PURE__ */
|
|
169
|
+
children: /* @__PURE__ */ k(t, {
|
|
170
170
|
variant: "ghost",
|
|
171
171
|
size: "sm",
|
|
172
172
|
className: "h-8 w-8 p-0 flex-shrink-0",
|
|
173
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ k(se, { size: 16 })
|
|
174
174
|
})
|
|
175
|
-
}), /* @__PURE__ */
|
|
175
|
+
}), /* @__PURE__ */ A(te, {
|
|
176
176
|
align: "end",
|
|
177
|
-
children: [/* @__PURE__ */
|
|
178
|
-
onClick: () =>
|
|
179
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ A(c, {
|
|
178
|
+
onClick: () => be(n),
|
|
179
|
+
children: [/* @__PURE__ */ k(S, {
|
|
180
180
|
size: 14,
|
|
181
181
|
className: "mr-2"
|
|
182
182
|
}), "Edit"]
|
|
183
|
-
}), /* @__PURE__ */
|
|
184
|
-
onClick: () =>
|
|
183
|
+
}), /* @__PURE__ */ A(c, {
|
|
184
|
+
onClick: () => Ce(n),
|
|
185
185
|
className: "text-status-error-text focus:text-status-error-text",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ k(T, {
|
|
187
187
|
size: 14,
|
|
188
188
|
className: "mr-2"
|
|
189
189
|
}), "Delete"]
|
|
190
190
|
})]
|
|
191
191
|
})] })]
|
|
192
192
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ A("div", {
|
|
194
194
|
className: "flex flex-wrap items-center gap-2 mb-3",
|
|
195
|
-
children: [n.isActive ? /* @__PURE__ */
|
|
195
|
+
children: [n.isActive ? /* @__PURE__ */ A(e, {
|
|
196
196
|
className: "bg-status-success-bg-subtle text-status-success-text text-xs",
|
|
197
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ k(oe, {
|
|
198
198
|
size: 10,
|
|
199
199
|
className: "mr-1"
|
|
200
200
|
}), "Active"]
|
|
201
|
-
}) : /* @__PURE__ */
|
|
201
|
+
}) : /* @__PURE__ */ A(e, {
|
|
202
202
|
className: "bg-bg-sunken text-text-secondary text-xs",
|
|
203
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ k(D, {
|
|
204
204
|
size: 10,
|
|
205
205
|
className: "mr-1"
|
|
206
206
|
}), "Inactive"]
|
|
207
|
-
}), n.department && /* @__PURE__ */
|
|
207
|
+
}), n.department && /* @__PURE__ */ k(e, {
|
|
208
208
|
variant: "outline",
|
|
209
209
|
className: "text-xs",
|
|
210
210
|
children: n.department
|
|
211
211
|
})]
|
|
212
212
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ A("div", {
|
|
214
214
|
className: "space-y-1 text-sm",
|
|
215
|
-
children: [n.title && /* @__PURE__ */
|
|
215
|
+
children: [n.title && /* @__PURE__ */ A("p", {
|
|
216
216
|
className: "text-text-secondary",
|
|
217
217
|
children: [
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ k("span", {
|
|
219
219
|
className: "font-medium text-text-primary",
|
|
220
220
|
children: "Title:"
|
|
221
221
|
}),
|
|
222
222
|
" ",
|
|
223
223
|
n.title
|
|
224
224
|
]
|
|
225
|
-
}), n.userId && /* @__PURE__ */
|
|
225
|
+
}), n.userId && /* @__PURE__ */ A("p", {
|
|
226
226
|
className: "text-text-secondary",
|
|
227
227
|
children: [
|
|
228
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ k("span", {
|
|
229
229
|
className: "font-medium text-text-primary",
|
|
230
230
|
children: "User ID:"
|
|
231
231
|
}),
|
|
@@ -234,14 +234,14 @@ function j() {
|
|
|
234
234
|
]
|
|
235
235
|
})]
|
|
236
236
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ A("p", {
|
|
238
238
|
className: "mt-3 text-xs text-text-secondary",
|
|
239
|
-
children: ["Added ",
|
|
239
|
+
children: ["Added ", le(n.createdAt)]
|
|
240
240
|
})
|
|
241
241
|
]
|
|
242
242
|
}, n.id))
|
|
243
243
|
}),
|
|
244
|
-
Y > 0 && /* @__PURE__ */
|
|
244
|
+
Y > 0 && /* @__PURE__ */ A("p", {
|
|
245
245
|
className: "text-xs text-text-secondary",
|
|
246
246
|
children: [
|
|
247
247
|
Y,
|
|
@@ -249,31 +249,31 @@ function j() {
|
|
|
249
249
|
Y === 1 ? "" : "s"
|
|
250
250
|
]
|
|
251
251
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
open:
|
|
252
|
+
/* @__PURE__ */ k(n, {
|
|
253
|
+
open: fe,
|
|
254
254
|
onOpenChange: P,
|
|
255
|
-
children: /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ A(r, {
|
|
256
256
|
className: "sm:max-w-lg",
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ A(o, { children: [/* @__PURE__ */ k(s, { children: F ? "Edit Interviewer" : "New Interviewer" }), /* @__PURE__ */ k(i, { children: F ? "Update the interviewer details below." : "Add a new person to the interviewer pool." })] }),
|
|
259
|
+
/* @__PURE__ */ A("form", {
|
|
260
260
|
id: "interviewer-form",
|
|
261
|
-
onSubmit:
|
|
261
|
+
onSubmit: Se,
|
|
262
262
|
className: "space-y-4",
|
|
263
263
|
children: [
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ A("div", {
|
|
265
265
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ A("div", {
|
|
267
267
|
className: "space-y-1.5",
|
|
268
268
|
children: [
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ A(u, {
|
|
270
270
|
htmlFor: "interviewer-name",
|
|
271
|
-
children: ["Name ", /* @__PURE__ */
|
|
271
|
+
children: ["Name ", /* @__PURE__ */ k("span", {
|
|
272
272
|
className: "text-status-error-text",
|
|
273
273
|
children: "*"
|
|
274
274
|
})]
|
|
275
275
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ k(l, {
|
|
277
277
|
id: "interviewer-name",
|
|
278
278
|
value: L.name,
|
|
279
279
|
onChange: (e) => R((t) => ({
|
|
@@ -283,22 +283,22 @@ function j() {
|
|
|
283
283
|
placeholder: "Full name",
|
|
284
284
|
"aria-invalid": !!z.name
|
|
285
285
|
}),
|
|
286
|
-
z.name && /* @__PURE__ */
|
|
286
|
+
z.name && /* @__PURE__ */ k("p", {
|
|
287
287
|
className: "text-xs text-status-error-text",
|
|
288
288
|
children: z.name
|
|
289
289
|
})
|
|
290
290
|
]
|
|
291
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ A("div", {
|
|
292
292
|
className: "space-y-1.5",
|
|
293
293
|
children: [
|
|
294
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ A(u, {
|
|
295
295
|
htmlFor: "interviewer-email",
|
|
296
|
-
children: ["Email ", /* @__PURE__ */
|
|
296
|
+
children: ["Email ", /* @__PURE__ */ k("span", {
|
|
297
297
|
className: "text-status-error-text",
|
|
298
298
|
children: "*"
|
|
299
299
|
})]
|
|
300
300
|
}),
|
|
301
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ k(l, {
|
|
302
302
|
id: "interviewer-email",
|
|
303
303
|
type: "email",
|
|
304
304
|
value: L.email,
|
|
@@ -309,21 +309,21 @@ function j() {
|
|
|
309
309
|
placeholder: "email@example.com",
|
|
310
310
|
"aria-invalid": !!z.email
|
|
311
311
|
}),
|
|
312
|
-
z.email && /* @__PURE__ */
|
|
312
|
+
z.email && /* @__PURE__ */ k("p", {
|
|
313
313
|
className: "text-xs text-status-error-text",
|
|
314
314
|
children: z.email
|
|
315
315
|
})
|
|
316
316
|
]
|
|
317
317
|
})]
|
|
318
318
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ A("div", {
|
|
320
320
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
321
|
+
children: [/* @__PURE__ */ A("div", {
|
|
322
322
|
className: "space-y-1.5",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
323
|
+
children: [/* @__PURE__ */ k(u, {
|
|
324
324
|
htmlFor: "interviewer-userid",
|
|
325
325
|
children: "User ID"
|
|
326
|
-
}), /* @__PURE__ */
|
|
326
|
+
}), /* @__PURE__ */ k(l, {
|
|
327
327
|
id: "interviewer-userid",
|
|
328
328
|
value: L.userId,
|
|
329
329
|
onChange: (e) => R((t) => ({
|
|
@@ -332,12 +332,12 @@ function j() {
|
|
|
332
332
|
})),
|
|
333
333
|
placeholder: "Platform user ID (optional)"
|
|
334
334
|
})]
|
|
335
|
-
}), /* @__PURE__ */
|
|
335
|
+
}), /* @__PURE__ */ A("div", {
|
|
336
336
|
className: "space-y-1.5",
|
|
337
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ k(u, {
|
|
338
338
|
htmlFor: "interviewer-department",
|
|
339
339
|
children: "Department"
|
|
340
|
-
}), /* @__PURE__ */
|
|
340
|
+
}), /* @__PURE__ */ k(l, {
|
|
341
341
|
id: "interviewer-department",
|
|
342
342
|
value: L.department,
|
|
343
343
|
onChange: (e) => R((t) => ({
|
|
@@ -348,12 +348,12 @@ function j() {
|
|
|
348
348
|
})]
|
|
349
349
|
})]
|
|
350
350
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ A("div", {
|
|
352
352
|
className: "space-y-1.5",
|
|
353
|
-
children: [/* @__PURE__ */
|
|
353
|
+
children: [/* @__PURE__ */ k(u, {
|
|
354
354
|
htmlFor: "interviewer-title",
|
|
355
355
|
children: "Title"
|
|
356
|
-
}), /* @__PURE__ */
|
|
356
|
+
}), /* @__PURE__ */ k(l, {
|
|
357
357
|
id: "interviewer-title",
|
|
358
358
|
value: L.title,
|
|
359
359
|
onChange: (e) => R((t) => ({
|
|
@@ -363,12 +363,12 @@ function j() {
|
|
|
363
363
|
placeholder: "e.g. Senior Engineer"
|
|
364
364
|
})]
|
|
365
365
|
}),
|
|
366
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ A("div", {
|
|
367
367
|
className: "space-y-1.5",
|
|
368
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ k(u, {
|
|
369
369
|
htmlFor: "interviewer-notes",
|
|
370
370
|
children: "Notes"
|
|
371
|
-
}), /* @__PURE__ */
|
|
371
|
+
}), /* @__PURE__ */ k(d, {
|
|
372
372
|
id: "interviewer-notes",
|
|
373
373
|
value: L.notes,
|
|
374
374
|
onChange: (e) => R((t) => ({
|
|
@@ -379,9 +379,9 @@ function j() {
|
|
|
379
379
|
rows: 3
|
|
380
380
|
})]
|
|
381
381
|
}),
|
|
382
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ A("div", {
|
|
383
383
|
className: "flex items-center gap-3 rounded-lg border border-border-seam p-3",
|
|
384
|
-
children: [/* @__PURE__ */
|
|
384
|
+
children: [/* @__PURE__ */ k("input", {
|
|
385
385
|
id: "interviewer-active",
|
|
386
386
|
type: "checkbox",
|
|
387
387
|
checked: L.isActive,
|
|
@@ -390,13 +390,13 @@ function j() {
|
|
|
390
390
|
isActive: e.target.checked
|
|
391
391
|
})),
|
|
392
392
|
className: g("h-4 w-4 rounded border-border-strong text-action-primary-bg", "focus:ring-2 focus:ring-action-primary-bg/50")
|
|
393
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ A("div", {
|
|
394
394
|
className: "space-y-0.5",
|
|
395
|
-
children: [/* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ k(u, {
|
|
396
396
|
htmlFor: "interviewer-active",
|
|
397
397
|
className: "cursor-pointer",
|
|
398
398
|
children: "Active interviewer"
|
|
399
|
-
}), /* @__PURE__ */
|
|
399
|
+
}), /* @__PURE__ */ k("p", {
|
|
400
400
|
className: "text-xs text-text-secondary",
|
|
401
401
|
children: "Inactive interviewers cannot be assigned to new rounds."
|
|
402
402
|
})]
|
|
@@ -404,17 +404,17 @@ function j() {
|
|
|
404
404
|
})
|
|
405
405
|
]
|
|
406
406
|
}),
|
|
407
|
-
/* @__PURE__ */
|
|
407
|
+
/* @__PURE__ */ A(a, { children: [/* @__PURE__ */ k(t, {
|
|
408
408
|
type: "button",
|
|
409
409
|
variant: "outline",
|
|
410
410
|
onClick: Q,
|
|
411
411
|
disabled: $,
|
|
412
412
|
children: "Cancel"
|
|
413
|
-
}), /* @__PURE__ */
|
|
413
|
+
}), /* @__PURE__ */ k(t, {
|
|
414
414
|
type: "submit",
|
|
415
415
|
form: "interviewer-form",
|
|
416
416
|
disabled: $,
|
|
417
|
-
children: $ ? /* @__PURE__ */
|
|
417
|
+
children: $ ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(x, {
|
|
418
418
|
size: 16,
|
|
419
419
|
className: "animate-spin mr-2"
|
|
420
420
|
}), "Saving…"] }) : F ? "Save Changes" : "Create Interviewer"
|
|
@@ -422,28 +422,28 @@ function j() {
|
|
|
422
422
|
]
|
|
423
423
|
})
|
|
424
424
|
}),
|
|
425
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ k(n, {
|
|
426
426
|
open: V,
|
|
427
427
|
onOpenChange: H,
|
|
428
|
-
children: /* @__PURE__ */
|
|
428
|
+
children: /* @__PURE__ */ A(r, {
|
|
429
429
|
className: "sm:max-w-md",
|
|
430
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ A(o, { children: [/* @__PURE__ */ k(s, { children: "Delete Interviewer?" }), /* @__PURE__ */ A(i, { children: [
|
|
431
431
|
"Are you sure you want to delete \"",
|
|
432
432
|
U?.name,
|
|
433
433
|
"\"? This action cannot be undone."
|
|
434
|
-
] })] }), /* @__PURE__ */
|
|
434
|
+
] })] }), /* @__PURE__ */ A(a, { children: [/* @__PURE__ */ k(t, {
|
|
435
435
|
variant: "outline",
|
|
436
436
|
onClick: () => H(!1),
|
|
437
437
|
disabled: X,
|
|
438
438
|
children: "Cancel"
|
|
439
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ k(t, {
|
|
440
440
|
variant: "destructive",
|
|
441
|
-
onClick:
|
|
441
|
+
onClick: we,
|
|
442
442
|
disabled: X,
|
|
443
|
-
children: X ? /* @__PURE__ */
|
|
443
|
+
children: X ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(x, {
|
|
444
444
|
size: 16,
|
|
445
445
|
className: "animate-spin mr-2"
|
|
446
|
-
}), "Deleting…"] }) : /* @__PURE__ */
|
|
446
|
+
}), "Deleting…"] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(T, {
|
|
447
447
|
size: 16,
|
|
448
448
|
className: "mr-2"
|
|
449
449
|
}), "Delete"] })
|
|
@@ -454,6 +454,6 @@ function j() {
|
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
//#endregion
|
|
457
|
-
export {
|
|
457
|
+
export { M as InterviewersPage };
|
|
458
458
|
|
|
459
459
|
//# sourceMappingURL=InterviewersPage.js.map
|