@scalant/career-hub 9.1.0 → 9.2.0
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/career-hub.es.js +73 -66
- package/dist/career-hub.umd.js +2 -2
- package/package.json +2 -2
package/dist/career-hub.es.js
CHANGED
|
@@ -54893,53 +54893,54 @@ const jobPreviewApi = careerHubApi.injectEndpoints({
|
|
|
54893
54893
|
jobId: V,
|
|
54894
54894
|
currentTab: F,
|
|
54895
54895
|
defaultOpenedApplicationId: K,
|
|
54896
|
-
openMockInterviewModal: J = (
|
|
54897
|
-
console.log("Method not implemented. We should get it from MIT"), console.log(
|
|
54896
|
+
openMockInterviewModal: J = (oe, ie) => {
|
|
54897
|
+
console.log("Method not implemented. We should get it from MIT"), console.log(oe, ie);
|
|
54898
54898
|
},
|
|
54899
54899
|
openResume: ee = () => {
|
|
54900
54900
|
console.log("Method not implemented. We should get it from MIT");
|
|
54901
54901
|
},
|
|
54902
54902
|
skip: te = !1,
|
|
54903
54903
|
onCloseResumeBuilder: ne,
|
|
54904
|
-
|
|
54904
|
+
smartJobApplyEnabled: re,
|
|
54905
|
+
children: ae
|
|
54905
54906
|
}) => {
|
|
54906
|
-
const { data:
|
|
54907
|
+
const { data: oe, isLoading: ie, error: le, refetch: ce } = useGetJobPreviewQuery(V, {
|
|
54907
54908
|
skip: !V || te
|
|
54908
|
-
}), [
|
|
54909
|
-
var
|
|
54910
|
-
return !(
|
|
54911
|
-
}, [
|
|
54912
|
-
|
|
54913
|
-
tab:
|
|
54909
|
+
}), [ue, se] = useState(), [ve, fe] = useState(null), ge = useMemo$1(() => {
|
|
54910
|
+
var me;
|
|
54911
|
+
return !re || !(oe != null && oe.jobData) || !(oe != null && oe.eligibilityCriteria) ? !1 : ((me = determineJobTag(oe == null ? void 0 : oe.jobData, oe == null ? void 0 : oe.eligibilityCriteria)) == null ? void 0 : me.eligibleForSmartApply) || !1;
|
|
54912
|
+
}, [oe == null ? void 0 : oe.jobData, oe == null ? void 0 : oe.eligibilityCriteria, re]), pe = (me) => {
|
|
54913
|
+
se(me), C == null || C.click("Job Preview - Active Tab Changed", "Jobs Page V2", {
|
|
54914
|
+
tab: me,
|
|
54914
54915
|
jobId: V
|
|
54915
54916
|
});
|
|
54916
54917
|
};
|
|
54917
54918
|
useEffect(() => {
|
|
54918
|
-
K &&
|
|
54919
|
+
K && fe(K);
|
|
54919
54920
|
}, [K]);
|
|
54920
|
-
const
|
|
54921
|
+
const de = {
|
|
54921
54922
|
analytics: C,
|
|
54922
|
-
activeApplicationId:
|
|
54923
|
-
setActiveApplicationId:
|
|
54924
|
-
activeTab:
|
|
54925
|
-
setActiveTab:
|
|
54923
|
+
activeApplicationId: ve,
|
|
54924
|
+
setActiveApplicationId: fe,
|
|
54925
|
+
activeTab: ue,
|
|
54926
|
+
setActiveTab: pe,
|
|
54926
54927
|
country: $,
|
|
54927
54928
|
jobId: V,
|
|
54928
|
-
data:
|
|
54929
|
-
isLoading:
|
|
54930
|
-
error:
|
|
54931
|
-
refetch:
|
|
54929
|
+
data: oe,
|
|
54930
|
+
isLoading: ie,
|
|
54931
|
+
error: le,
|
|
54932
|
+
refetch: ce,
|
|
54932
54933
|
openMockInterviewModal: J,
|
|
54933
54934
|
openResume: ee,
|
|
54934
|
-
jobData:
|
|
54935
|
-
companyData:
|
|
54936
|
-
highlights:
|
|
54937
|
-
eligibilityCriteria:
|
|
54935
|
+
jobData: oe == null ? void 0 : oe.jobData,
|
|
54936
|
+
companyData: oe == null ? void 0 : oe.companyData,
|
|
54937
|
+
highlights: oe == null ? void 0 : oe.highlights,
|
|
54938
|
+
eligibilityCriteria: oe == null ? void 0 : oe.eligibilityCriteria,
|
|
54938
54939
|
currentTab: F,
|
|
54939
54940
|
onCloseResumeBuilder: ne,
|
|
54940
|
-
isEligibleForSmartApply:
|
|
54941
|
+
isEligibleForSmartApply: ge
|
|
54941
54942
|
};
|
|
54942
|
-
return /* @__PURE__ */ React__default.createElement(JobPreviewContext.Provider, { value:
|
|
54943
|
+
return /* @__PURE__ */ React__default.createElement(JobPreviewContext.Provider, { value: de }, ae);
|
|
54943
54944
|
}, useJobPreview = () => {
|
|
54944
54945
|
const C = useContext$1(JobPreviewContext);
|
|
54945
54946
|
if (!C)
|
|
@@ -76785,21 +76786,22 @@ const JobApplicationForm = ({
|
|
|
76785
76786
|
onAddResume: re,
|
|
76786
76787
|
onCloseResumeBuilder: ae,
|
|
76787
76788
|
fitmentCheckEnabled: oe,
|
|
76788
|
-
|
|
76789
|
+
smartJobApplyEnabled: ie,
|
|
76790
|
+
defaultOpenedApplicationId: le
|
|
76789
76791
|
}) => {
|
|
76790
|
-
var
|
|
76791
|
-
const { data:
|
|
76792
|
+
var fe;
|
|
76793
|
+
const { data: ce, isLoading: ue, isFetching: se, error: ve } = useGetJobPreviewQuery(K, {
|
|
76792
76794
|
skip: !K || !J
|
|
76793
76795
|
});
|
|
76794
|
-
return !J || !K ? null :
|
|
76796
|
+
return !J || !K ? null : ue || se ? /* @__PURE__ */ React__default.createElement(Card$1, { className: `${styles$f.expandedJobView} ${styles$f.loadingCard}` }, /* @__PURE__ */ React__default.createElement(Spin$1, { size: "large" })) : ve ? /* @__PURE__ */ React__default.createElement(Card$1, { className: styles$f.expandedJobView }, /* @__PURE__ */ React__default.createElement(
|
|
76795
76797
|
Alert$1,
|
|
76796
76798
|
{
|
|
76797
76799
|
type: "error",
|
|
76798
76800
|
message: "Failed to load job details",
|
|
76799
|
-
description: ((
|
|
76801
|
+
description: ((fe = ve == null ? void 0 : ve.data) == null ? void 0 : fe.message) || (ve == null ? void 0 : ve.message) || "Please try again later",
|
|
76800
76802
|
showIcon: !0
|
|
76801
76803
|
}
|
|
76802
|
-
)) :
|
|
76804
|
+
)) : ce ? /* @__PURE__ */ React__default.createElement(App$1, null, /* @__PURE__ */ React__default.createElement(
|
|
76803
76805
|
JobPreviewProvider,
|
|
76804
76806
|
{
|
|
76805
76807
|
analytics: C,
|
|
@@ -76810,7 +76812,8 @@ const JobApplicationForm = ({
|
|
|
76810
76812
|
skip: !J,
|
|
76811
76813
|
currentTab: ee,
|
|
76812
76814
|
onCloseResumeBuilder: ae,
|
|
76813
|
-
|
|
76815
|
+
smartJobApplyEnabled: ie,
|
|
76816
|
+
defaultOpenedApplicationId: le
|
|
76814
76817
|
},
|
|
76815
76818
|
/* @__PURE__ */ React__default.createElement(ExpandedJobViewContent, null),
|
|
76816
76819
|
/* @__PURE__ */ React__default.createElement(
|
|
@@ -76840,7 +76843,8 @@ function JobDetails({
|
|
|
76840
76843
|
onAddResume: re,
|
|
76841
76844
|
onCloseResumeBuilder: ae,
|
|
76842
76845
|
fitmentCheckEnabled: oe,
|
|
76843
|
-
|
|
76846
|
+
smartJobApplyEnabled: ie,
|
|
76847
|
+
defaultOpenedApplicationId: le
|
|
76844
76848
|
}) {
|
|
76845
76849
|
return useEffect(() => {
|
|
76846
76850
|
K && (C == null || C.view("Job Details - Render", PRODUCT_NAME, {
|
|
@@ -76862,7 +76866,8 @@ function JobDetails({
|
|
|
76862
76866
|
onAddResume: re,
|
|
76863
76867
|
onCloseResumeBuilder: ae,
|
|
76864
76868
|
fitmentCheckEnabled: oe,
|
|
76865
|
-
|
|
76869
|
+
smartJobApplyEnabled: ie,
|
|
76870
|
+
defaultOpenedApplicationId: le
|
|
76866
76871
|
}
|
|
76867
76872
|
)) : null;
|
|
76868
76873
|
}
|
|
@@ -78560,45 +78565,47 @@ function JobsPage({
|
|
|
78560
78565
|
onEditResume: re,
|
|
78561
78566
|
onAddResume: ae,
|
|
78562
78567
|
onCloseResumeBuilder: oe,
|
|
78563
|
-
fitmentCheckEnabled: ie = !1
|
|
78568
|
+
fitmentCheckEnabled: ie = !1,
|
|
78569
|
+
smartJobApplyEnabled: le = !1
|
|
78564
78570
|
}) {
|
|
78565
|
-
const
|
|
78566
|
-
(
|
|
78567
|
-
var
|
|
78568
|
-
return ((
|
|
78571
|
+
const ce = useDispatch(), ue = useSelector(
|
|
78572
|
+
(he) => {
|
|
78573
|
+
var be, _e;
|
|
78574
|
+
return ((_e = (be = he.scalantCareerHub) == null ? void 0 : be.filter) == null ? void 0 : _e.tab) || TAG_TO_TAB_MAPPING.relevant;
|
|
78569
78575
|
}
|
|
78570
|
-
),
|
|
78576
|
+
), se = useRef(!1), [ve, fe] = useState(!1), { selectedJobId: ge } = useJobQueryParams({
|
|
78571
78577
|
syncToURL: !0,
|
|
78572
78578
|
syncFromURL: !0
|
|
78573
78579
|
// Read from URL on mount
|
|
78574
|
-
}),
|
|
78575
|
-
|
|
78580
|
+
}), pe = (he) => {
|
|
78581
|
+
fe(he);
|
|
78576
78582
|
};
|
|
78577
78583
|
useLayoutEffect$2(() => {
|
|
78578
|
-
if (!
|
|
78579
|
-
const
|
|
78580
|
-
|
|
78581
|
-
}
|
|
78582
|
-
}, [
|
|
78583
|
-
|
|
78584
|
-
}, [K,
|
|
78585
|
-
J &&
|
|
78586
|
-
}, [J,
|
|
78587
|
-
const
|
|
78584
|
+
if (!se.current) {
|
|
78585
|
+
const he = getFiltersFromURL(), be = zn({}, he), Re = new URLSearchParams(window.location.search).get("job_ids");
|
|
78586
|
+
Re && (be.job_ids = [Re]), Object.keys(be).length > 0 && ce(updateFiltersFromForm(be)), se.current = !0;
|
|
78587
|
+
}
|
|
78588
|
+
}, [ce]), useEffect(() => {
|
|
78589
|
+
ce(setProcessCounts(K));
|
|
78590
|
+
}, [K, ce]), useEffect(() => {
|
|
78591
|
+
J && ce(setUserProfileData(J));
|
|
78592
|
+
}, [J, ce]);
|
|
78593
|
+
const de = /* @__PURE__ */ React__default.createElement(JobsHeader, { analytics: C }), me = ge ? /* @__PURE__ */ React__default.createElement(
|
|
78588
78594
|
JobDetails,
|
|
78589
78595
|
{
|
|
78590
78596
|
analytics: C,
|
|
78591
|
-
currentTab:
|
|
78597
|
+
currentTab: ue,
|
|
78592
78598
|
onUploadFile: ee,
|
|
78593
78599
|
country: $,
|
|
78594
78600
|
openMockInterviewModal: V,
|
|
78595
78601
|
openResume: F,
|
|
78596
|
-
jobId:
|
|
78602
|
+
jobId: ge,
|
|
78597
78603
|
onEditResume: re,
|
|
78598
78604
|
onAddResume: ae,
|
|
78599
78605
|
onCloseResumeBuilder: oe,
|
|
78600
78606
|
fitmentCheckEnabled: ie,
|
|
78601
|
-
|
|
78607
|
+
smartJobApplyEnabled: le,
|
|
78608
|
+
defaultOpenedApplicationId: ve === ge ? ge : null
|
|
78602
78609
|
}
|
|
78603
78610
|
) : /* @__PURE__ */ React__default.createElement(
|
|
78604
78611
|
ProfileDetails,
|
|
@@ -78607,14 +78614,14 @@ function JobsPage({
|
|
|
78607
78614
|
onViewResume: te,
|
|
78608
78615
|
onEditPreferences: ne
|
|
78609
78616
|
}
|
|
78610
|
-
),
|
|
78617
|
+
), ye = ge ? SIDER_WIDTH.JOB_DETAILS : SIDER_WIDTH.PROFILE_DETAILS;
|
|
78611
78618
|
useEffect(() => {
|
|
78612
78619
|
C && C.view("Jobs Page - Tab Rendered", PRODUCT_NAME, {
|
|
78613
|
-
currentTab:
|
|
78620
|
+
currentTab: ue
|
|
78614
78621
|
});
|
|
78615
|
-
}, [C,
|
|
78616
|
-
const
|
|
78617
|
-
switch (
|
|
78622
|
+
}, [C, ue]);
|
|
78623
|
+
const Se = () => {
|
|
78624
|
+
switch (ue) {
|
|
78618
78625
|
case TAG_TO_TAB_MAPPING.relevant:
|
|
78619
78626
|
return /* @__PURE__ */ React__default.createElement(RelevantJobsPage, { analytics: C });
|
|
78620
78627
|
case TAG_TO_TAB_MAPPING.saved:
|
|
@@ -78624,7 +78631,7 @@ function JobsPage({
|
|
|
78624
78631
|
AppliedJobsPage,
|
|
78625
78632
|
{
|
|
78626
78633
|
analytics: C,
|
|
78627
|
-
onOpenApplicationForm:
|
|
78634
|
+
onOpenApplicationForm: pe
|
|
78628
78635
|
}
|
|
78629
78636
|
);
|
|
78630
78637
|
case TAG_TO_TAB_MAPPING.all:
|
|
@@ -78636,12 +78643,12 @@ function JobsPage({
|
|
|
78636
78643
|
JobsLayout,
|
|
78637
78644
|
{
|
|
78638
78645
|
analytics: C,
|
|
78639
|
-
header:
|
|
78640
|
-
sider:
|
|
78641
|
-
siderWidth:
|
|
78646
|
+
header: de,
|
|
78647
|
+
sider: me,
|
|
78648
|
+
siderWidth: ye,
|
|
78642
78649
|
className: styles.jobsPage
|
|
78643
78650
|
},
|
|
78644
|
-
|
|
78651
|
+
Se()
|
|
78645
78652
|
), /* @__PURE__ */ React__default.createElement(FilterDrawer, { analytics: C }), /* @__PURE__ */ React__default.createElement(JobAlertModal, { analytics: C }), /* @__PURE__ */ React__default.createElement(Feedback, { analytics: C }));
|
|
78646
78653
|
}
|
|
78647
78654
|
JobsPage.propTypes = {
|