@scalant/career-hub 8.0.3 → 8.0.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/career-hub.es.js +41 -40
- package/dist/career-hub.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/career-hub.es.js
CHANGED
|
@@ -52288,6 +52288,8 @@ const JOB_CARD_CONFIG = {
|
|
|
52288
52288
|
[C == null ? void 0 : C.companiesMap]
|
|
52289
52289
|
), ie = useMemo$1(() => F || null, [F]), le = useMemo$1(() => typeof (C == null ? void 0 : C.totalEntries) == "number" ? C.totalEntries : ie ? J[ie] || 0 : null, [ie, J, C == null ? void 0 : C.totalEntries]);
|
|
52290
52290
|
useEffect(() => {
|
|
52291
|
+
te([]), re({});
|
|
52292
|
+
}, [F]), useEffect(() => {
|
|
52291
52293
|
K === 1 ? (te(ae), re(oe)) : ae.length > 0 && (te((se) => accumulateJobs(se, ae)), re(
|
|
52292
52294
|
(se) => accumulateCompaniesMap(se, oe)
|
|
52293
52295
|
));
|
|
@@ -77197,7 +77199,7 @@ JobCard.defaultProps = {
|
|
|
77197
77199
|
userCountry: "IN",
|
|
77198
77200
|
className: ""
|
|
77199
77201
|
};
|
|
77200
|
-
const heading = "
|
|
77202
|
+
const heading = "_heading_mxb02_1", spinner = "_spinner_mxb02_8", alert = "_alert_mxb02_14", header = "_header_mxb02_18", sentinel = "_sentinel_mxb02_23", loadingMore = "_loadingMore_mxb02_30", jobsList = "_jobsList_mxb02_39", noJobsContainer = "_noJobsContainer_mxb02_46", noJobsImage = "_noJobsImage_mxb02_56", noJobsHeading = "_noJobsHeading_mxb02_60", jobsListContainer = "_jobsListContainer_mxb02_64", styles$8 = {
|
|
77201
77203
|
heading,
|
|
77202
77204
|
spinner,
|
|
77203
77205
|
alert,
|
|
@@ -77419,7 +77421,7 @@ function SavedJobsPage({ analytics: C }) {
|
|
|
77419
77421
|
}
|
|
77420
77422
|
));
|
|
77421
77423
|
}
|
|
77422
|
-
const appliedJobsPage = "
|
|
77424
|
+
const appliedJobsPage = "_appliedJobsPage_1n6xk_1", fixedHeader = "_fixedHeader_1n6xk_9", headerSection = "_headerSection_1n6xk_17", sectionTitle = "_sectionTitle_1n6xk_22", headerRow = "_headerRow_1n6xk_29", divider = "_divider_1n6xk_33", contentSection = "_contentSection_1n6xk_39", filterTags = "_filterTags_1n6xk_50", filterTag = "_filterTag_1n6xk_50", active = "_active_1n6xk_75", tagIcon = "_tagIcon_1n6xk_82", styles$4 = {
|
|
77423
77425
|
appliedJobsPage,
|
|
77424
77426
|
fixedHeader,
|
|
77425
77427
|
headerSection,
|
|
@@ -77427,7 +77429,6 @@ const appliedJobsPage = "_appliedJobsPage_1nxps_1", fixedHeader = "_fixedHeader_
|
|
|
77427
77429
|
headerRow,
|
|
77428
77430
|
divider,
|
|
77429
77431
|
contentSection,
|
|
77430
|
-
scrollableContent,
|
|
77431
77432
|
filterTags,
|
|
77432
77433
|
filterTag,
|
|
77433
77434
|
active,
|
|
@@ -77437,67 +77438,67 @@ AppliedJobsHeader.propTypes = {
|
|
|
77437
77438
|
activeTab: PropTypes.string
|
|
77438
77439
|
};
|
|
77439
77440
|
function AppliedJobsPage({ analytics: C, onOpenApplicationForm: $ }) {
|
|
77440
|
-
const
|
|
77441
|
-
tab:
|
|
77442
|
-
})), { data:
|
|
77441
|
+
const V = useDispatch(), [F, K] = useState(null), J = useJobFilters(), { data: ee, isLoading: te, error: ne, isFetching: re } = useFetchPipelineJobsQuery(mr(zn({}, J), {
|
|
77442
|
+
tab: F || "applications"
|
|
77443
|
+
})), { data: ae } = useFetchPipelineJobsQuery({
|
|
77443
77444
|
tab: APPLIED_JOB_TABS.pending.key,
|
|
77444
77445
|
return_only_count: !0
|
|
77445
|
-
}), { data:
|
|
77446
|
+
}), { data: oe } = useFetchPipelineJobsQuery({
|
|
77446
77447
|
tab: APPLIED_JOB_TABS.underReview.key,
|
|
77447
77448
|
return_only_count: !0
|
|
77448
|
-
}),
|
|
77449
|
-
const
|
|
77450
|
-
(
|
|
77449
|
+
}), ie = (ge) => {
|
|
77450
|
+
const pe = Object.values(APPLIED_JOB_TABS).find(
|
|
77451
|
+
(me) => me.key === ge
|
|
77451
77452
|
);
|
|
77452
|
-
if (!
|
|
77453
|
+
if (!pe)
|
|
77453
77454
|
return "";
|
|
77454
|
-
let
|
|
77455
|
-
return
|
|
77456
|
-
},
|
|
77457
|
-
|
|
77455
|
+
let de = null;
|
|
77456
|
+
return ge === APPLIED_JOB_TABS.pending.key ? de = ae == null ? void 0 : ae.totalEntries : ge === APPLIED_JOB_TABS.underReview.key && (de = oe == null ? void 0 : oe.totalEntries), de != null ? `${pe.label} (${de})` : pe.label;
|
|
77457
|
+
}, le = (ge) => {
|
|
77458
|
+
K((pe) => pe === ge ? null : ge), V(setPageNumber(1)), C && C.track("Applied Jobs Tab Clicked", { tab: ge });
|
|
77458
77459
|
}, {
|
|
77459
|
-
accumulatedJobs:
|
|
77460
|
-
accumulatedCompaniesMap:
|
|
77461
|
-
hasMore:
|
|
77462
|
-
isFetchingMore:
|
|
77463
|
-
isLoading:
|
|
77464
|
-
} = useAccumulatedJobs(
|
|
77460
|
+
accumulatedJobs: ce,
|
|
77461
|
+
accumulatedCompaniesMap: ue,
|
|
77462
|
+
hasMore: se,
|
|
77463
|
+
isFetchingMore: ve,
|
|
77464
|
+
isLoading: fe
|
|
77465
|
+
} = useAccumulatedJobs(ee, re, te, F);
|
|
77465
77466
|
return useEffect(() => {
|
|
77466
|
-
C && !
|
|
77467
|
-
jobsCount: (
|
|
77467
|
+
C && !te && C.view("Applied Jobs Page - Render", PRODUCT_NAME, {
|
|
77468
|
+
jobsCount: (ce == null ? void 0 : ce.length) || 0
|
|
77468
77469
|
});
|
|
77469
|
-
}, [C,
|
|
77470
|
-
const
|
|
77470
|
+
}, [C, te, ce == null ? void 0 : ce.length]), /* @__PURE__ */ React__default.createElement("div", { className: styles$4.appliedJobsPage }, /* @__PURE__ */ React__default.createElement("div", { className: styles$4.fixedHeader }, /* @__PURE__ */ React__default.createElement(AppliedJobsHeader, { activeTab: F }), /* @__PURE__ */ React__default.createElement(Flex$1, { gap: 8, wrap: "wrap", className: styles$4.filterTags }, Object.values(APPLIED_JOB_TABS).map((ge) => {
|
|
77471
|
+
const pe = {
|
|
77471
77472
|
CheckCircleOutlined: CheckCircleOutlined$1,
|
|
77472
77473
|
SyncOutlined: SyncOutlined$1,
|
|
77473
77474
|
CloseCircleOutlined: CloseCircleOutlined$1,
|
|
77474
77475
|
ClockCircleOutlined: ClockCircleOutlined$1
|
|
77475
|
-
}[
|
|
77476
|
+
}[ge.icon];
|
|
77476
77477
|
return /* @__PURE__ */ React__default.createElement(
|
|
77477
77478
|
"div",
|
|
77478
77479
|
{
|
|
77479
|
-
key:
|
|
77480
|
-
className: `${styles$4.filterTag} ${
|
|
77481
|
-
onClick: () =>
|
|
77480
|
+
key: ge.key,
|
|
77481
|
+
className: `${styles$4.filterTag} ${F === ge.key ? styles$4.active : ""}`,
|
|
77482
|
+
onClick: () => le(ge.key)
|
|
77482
77483
|
},
|
|
77483
|
-
|
|
77484
|
-
|
|
77484
|
+
pe && /* @__PURE__ */ React__default.createElement(pe, { className: styles$4.tagIcon }),
|
|
77485
|
+
ie(ge.key)
|
|
77485
77486
|
);
|
|
77486
|
-
}))), /* @__PURE__ */ React__default.createElement("div", { className: styles$4.contentSection }, /* @__PURE__ */ React__default.createElement(
|
|
77487
|
+
}))), /* @__PURE__ */ React__default.createElement("div", { className: styles$4.contentSection }, /* @__PURE__ */ React__default.createElement(
|
|
77487
77488
|
JobsList,
|
|
77488
77489
|
{
|
|
77489
77490
|
analytics: C,
|
|
77490
|
-
currentTab:
|
|
77491
|
-
jobs:
|
|
77492
|
-
companiesMap:
|
|
77493
|
-
isLoading:
|
|
77494
|
-
error:
|
|
77495
|
-
isFetchingMore:
|
|
77496
|
-
hasMore:
|
|
77491
|
+
currentTab: F || "applications",
|
|
77492
|
+
jobs: ce,
|
|
77493
|
+
companiesMap: ue,
|
|
77494
|
+
isLoading: fe,
|
|
77495
|
+
error: ne,
|
|
77496
|
+
isFetchingMore: ve,
|
|
77497
|
+
hasMore: se,
|
|
77497
77498
|
onOpenApplicationForm: $,
|
|
77498
77499
|
hideHeader: !0
|
|
77499
77500
|
}
|
|
77500
|
-
)))
|
|
77501
|
+
)));
|
|
77501
77502
|
}
|
|
77502
77503
|
const ExpertMbeRating = ({ fieldName: C, subjectOptions: $, ratingOptions: V }) => {
|
|
77503
77504
|
const F = useDispatch(), J = useSelector((ue) => ue.scalantCareerHub.filterForm)[C], ee = useMemo$1(() => J || {}, [J]), te = useMemo$1(() => typeof ee == "object" && !Array.isArray(ee) ? ee : {}, [ee]);
|