@scalant/career-hub 7.7.2 → 7.7.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 +64 -37
- 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
|
@@ -49271,7 +49271,7 @@ const Upload$1 = Upload, APPLICATION_STATUS$1 = {
|
|
|
49271
49271
|
pending: {
|
|
49272
49272
|
key: "pending_applications",
|
|
49273
49273
|
label: "Pending Applications",
|
|
49274
|
-
icon: "
|
|
49274
|
+
icon: "ClockCircleOutlined"
|
|
49275
49275
|
},
|
|
49276
49276
|
underReview: {
|
|
49277
49277
|
key: "under_review",
|
|
@@ -49391,11 +49391,11 @@ const Upload$1 = Upload, APPLICATION_STATUS$1 = {
|
|
|
49391
49391
|
"Application Archived": "Application Archived"
|
|
49392
49392
|
}, APPLICATION_STATUS_JOB_TAG_MAPPING = {
|
|
49393
49393
|
Draft: "Application Pending",
|
|
49394
|
-
"In Review": "
|
|
49395
|
-
"Resume Sent": "
|
|
49396
|
-
"Resume Shortlisted": "
|
|
49397
|
-
Interviewing: "
|
|
49398
|
-
"To Be Offered": "
|
|
49394
|
+
"In Review": "Under Review",
|
|
49395
|
+
"Resume Sent": "Under Review",
|
|
49396
|
+
"Resume Shortlisted": "Under Review",
|
|
49397
|
+
Interviewing: "Under Review",
|
|
49398
|
+
"To Be Offered": "Under Review",
|
|
49399
49399
|
Rejected: "Rejected",
|
|
49400
49400
|
"Offer Received": "Job Offered",
|
|
49401
49401
|
"Offer Withdrawn": "Offer Withdrawn",
|
|
@@ -49408,10 +49408,18 @@ const Upload$1 = Upload, APPLICATION_STATUS$1 = {
|
|
|
49408
49408
|
"Application Withdrawn": "Application Withdrawn",
|
|
49409
49409
|
"Application Archived": "Application Archived"
|
|
49410
49410
|
}, APPLICATION_STATUS_JOB_TAG_TEXT_MAPPING = {
|
|
49411
|
-
Draft: "Application Pending"
|
|
49411
|
+
Draft: "Application Pending",
|
|
49412
|
+
"Under Review": "Under Review",
|
|
49413
|
+
"In Review": "Under Review",
|
|
49414
|
+
"Resume Sent": "Under Review",
|
|
49415
|
+
"Resume Shortlisted": "Under Review",
|
|
49416
|
+
Interviewing: "Under Review",
|
|
49417
|
+
"To Be Offered": "Under Review",
|
|
49418
|
+
"On Hold": "On Hold"
|
|
49412
49419
|
}, JOB_TAG_ICON_MAPPING = {
|
|
49413
49420
|
"Application Pending": ClockCircleOutlined$1,
|
|
49414
49421
|
Applied: CheckCircleOutlined$1,
|
|
49422
|
+
"Under Review": SyncOutlined$1,
|
|
49415
49423
|
"Job Offered": CheckCircleOutlined$1,
|
|
49416
49424
|
Rejected: CloseCircleOutlined$1,
|
|
49417
49425
|
"Status Pending": SyncOutlined$1
|
|
@@ -49424,13 +49432,17 @@ const Upload$1 = Upload, APPLICATION_STATUS$1 = {
|
|
|
49424
49432
|
primary: "#20A164",
|
|
49425
49433
|
secondary: "#E6F7ED"
|
|
49426
49434
|
},
|
|
49435
|
+
"Under Review": {
|
|
49436
|
+
primary: "#1890FF",
|
|
49437
|
+
secondary: "#e6f7ff"
|
|
49438
|
+
},
|
|
49427
49439
|
"Job Offered": {
|
|
49428
49440
|
primary: "#20A164",
|
|
49429
49441
|
secondary: "#E6F7ED"
|
|
49430
49442
|
},
|
|
49431
49443
|
Rejected: {
|
|
49432
|
-
primary: "#
|
|
49433
|
-
secondary: "#
|
|
49444
|
+
primary: "#F5222D",
|
|
49445
|
+
secondary: "#FFF1F0"
|
|
49434
49446
|
},
|
|
49435
49447
|
"Status Pending": {
|
|
49436
49448
|
primary: "#7DCFFF",
|
|
@@ -76628,37 +76640,50 @@ JobDetails.defaultProps = {
|
|
|
76628
76640
|
jobId: null,
|
|
76629
76641
|
className: ""
|
|
76630
76642
|
};
|
|
76631
|
-
const header$1 = "
|
|
76643
|
+
const header$1 = "_header_t5dcb_1", jobTitle = "_jobTitle_t5dcb_6", titleContainer = "_titleContainer_t5dcb_14", titleContainerExpanded = "_titleContainerExpanded_t5dcb_19", titleContainerCollapsed = "_titleContainerCollapsed_t5dcb_23", companyName = "_companyName_t5dcb_27", postedDate = "_postedDate_t5dcb_32", separatorDot = "_separatorDot_t5dcb_37", actions = "_actions_t5dcb_47", styles$d = {
|
|
76632
76644
|
header: header$1,
|
|
76633
76645
|
jobTitle,
|
|
76634
76646
|
titleContainer,
|
|
76635
76647
|
titleContainerExpanded,
|
|
76636
76648
|
titleContainerCollapsed,
|
|
76637
76649
|
companyName,
|
|
76650
|
+
postedDate,
|
|
76651
|
+
separatorDot,
|
|
76638
76652
|
actions
|
|
76639
76653
|
}, { Title: Title$1, Text: Text$3 } = Typography$1, JobTitleAndCompany = ({
|
|
76640
76654
|
title: C,
|
|
76641
76655
|
companyName: $,
|
|
76642
76656
|
isExpanded: V,
|
|
76643
|
-
isInternship: F
|
|
76644
|
-
|
|
76645
|
-
|
|
76646
|
-
{
|
|
76647
|
-
|
|
76648
|
-
|
|
76649
|
-
|
|
76650
|
-
|
|
76651
|
-
|
|
76652
|
-
|
|
76653
|
-
},
|
|
76654
|
-
|
|
76655
|
-
|
|
76656
|
-
|
|
76657
|
+
isInternship: F,
|
|
76658
|
+
createdAt: K
|
|
76659
|
+
}) => {
|
|
76660
|
+
const ee = ((ne) => {
|
|
76661
|
+
if (!ne)
|
|
76662
|
+
return null;
|
|
76663
|
+
const re = new Date(ne), oe = /* @__PURE__ */ new Date() - re;
|
|
76664
|
+
return Math.floor(oe / (1e3 * 60 * 60 * 24));
|
|
76665
|
+
})(K);
|
|
76666
|
+
let te = "";
|
|
76667
|
+
return ee !== null && (ee === 0 ? te = "Posted Today" : ee === 1 ? te = "Posted Yesterday" : te = `Posted ${ee}d ago`), /* @__PURE__ */ React__default.createElement(
|
|
76668
|
+
Space$1,
|
|
76669
|
+
{
|
|
76670
|
+
direction: "vertical",
|
|
76671
|
+
size: 4,
|
|
76672
|
+
className: classNames(styles$d.titleContainer, {
|
|
76673
|
+
[styles$d.titleContainerExpanded]: V,
|
|
76674
|
+
[styles$d.titleContainerCollapsed]: !V
|
|
76675
|
+
})
|
|
76676
|
+
},
|
|
76677
|
+
/* @__PURE__ */ React__default.createElement(Flex$1, { align: "center", gap: 8 }, /* @__PURE__ */ React__default.createElement(Title$1, { level: 5, className: styles$d.jobTitle, ellipsis: { rows: 1 } }, C), F && /* @__PURE__ */ React__default.createElement(Tag$1, { color: "purple" }, "Experience Builder")),
|
|
76678
|
+
/* @__PURE__ */ React__default.createElement(Text$3, { ellipsis: !0, className: styles$d.companyName }, $, ee !== null && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: styles$d.separatorDot }), /* @__PURE__ */ React__default.createElement("span", { className: styles$d.postedDate }, te)))
|
|
76679
|
+
);
|
|
76680
|
+
};
|
|
76657
76681
|
JobTitleAndCompany.propTypes = {
|
|
76658
76682
|
title: PropTypes.string.isRequired,
|
|
76659
76683
|
companyName: PropTypes.string.isRequired,
|
|
76660
76684
|
isExpanded: PropTypes.bool,
|
|
76661
|
-
isInternship: PropTypes.bool
|
|
76685
|
+
isInternship: PropTypes.bool,
|
|
76686
|
+
createdAt: PropTypes.string
|
|
76662
76687
|
};
|
|
76663
76688
|
JobTitleAndCompany.defaultProps = {
|
|
76664
76689
|
isExpanded: !1
|
|
@@ -76704,7 +76729,7 @@ const tag = "_tag_5fhgn_1", styles$c = {
|
|
|
76704
76729
|
) : null;
|
|
76705
76730
|
}, EligibilityTag = ({ jobData: C, currentTab: $, tagData: V }) => {
|
|
76706
76731
|
const { applicationStatus: F, jobProfileStatus: K } = C || {};
|
|
76707
|
-
if ($ === TAG_TO_TAB_MAPPING.applied)
|
|
76732
|
+
if ($ === TAG_TO_TAB_MAPPING.applied || Object.values(APPLIED_JOB_TABS).some((ee) => ee.key === $))
|
|
76708
76733
|
return /* @__PURE__ */ React__default.createElement(
|
|
76709
76734
|
PipelineJobTag,
|
|
76710
76735
|
{
|
|
@@ -76788,7 +76813,8 @@ const JobCardHeader = ({
|
|
|
76788
76813
|
title: C.title,
|
|
76789
76814
|
companyName: ee,
|
|
76790
76815
|
isExpanded: F,
|
|
76791
|
-
isInternship: J
|
|
76816
|
+
isInternship: J,
|
|
76817
|
+
createdAt: C.createdAt
|
|
76792
76818
|
}
|
|
76793
76819
|
)))), /* @__PURE__ */ React__default.createElement(Flex$1, null, /* @__PURE__ */ React__default.createElement(
|
|
76794
76820
|
JobCardActions,
|
|
@@ -76877,7 +76903,7 @@ SaveButton.defaultProps = {
|
|
|
76877
76903
|
applicationLastUpdatedAt: null,
|
|
76878
76904
|
disabled: !1
|
|
76879
76905
|
};
|
|
76880
|
-
const body = "
|
|
76906
|
+
const body = "_body_1d5d8_1", detailsRowContainer = "_detailsRowContainer_1d5d8_6", detailsRow = "_detailsRow_1d5d8_6", detailText = "_detailText_1d5d8_22", saveButtonWrapper = "_saveButtonWrapper_1d5d8_28", inActiveJobError = "_inActiveJobError_1d5d8_33", inActiveJobErrorText = "_inActiveJobErrorText_1d5d8_39", styles$a = {
|
|
76881
76907
|
body,
|
|
76882
76908
|
detailsRowContainer,
|
|
76883
76909
|
detailsRow,
|
|
@@ -76923,7 +76949,7 @@ const JobDetailsRow = ({
|
|
|
76923
76949
|
pe && { text: pe },
|
|
76924
76950
|
de && { text: de },
|
|
76925
76951
|
me && { text: me }
|
|
76926
|
-
].filter(Boolean), Se = F !== TAG_TO_TAB_MAPPING.applied, he = F === TAG_TO_TAB_MAPPING.applied && re === APPLICATION_STATUS_MAP.Draft, be = (_e) => {
|
|
76952
|
+
].filter(Boolean), Se = F !== TAG_TO_TAB_MAPPING.applied, he = (F === TAG_TO_TAB_MAPPING.applied || Object.values(APPLIED_JOB_TABS).some((_e) => _e.key === F)) && re === APPLICATION_STATUS_MAP.Draft, be = (_e) => {
|
|
76927
76953
|
_e.stopPropagation(), te($.id, !0), C == null || C.click("Job Card - Complete Application", PRODUCT_NAME);
|
|
76928
76954
|
};
|
|
76929
76955
|
return /* @__PURE__ */ React__default.createElement("div", { className: styles$a.detailsRowContainer }, ye.length > 0 && /* @__PURE__ */ React__default.createElement(
|
|
@@ -77382,13 +77408,13 @@ const appliedJobsPage = "_appliedJobsPage_1jofn_1", headerSection = "_headerSect
|
|
|
77382
77408
|
[APPLIED_JOB_TABS.offers.key]: "Applications with Offer"
|
|
77383
77409
|
};
|
|
77384
77410
|
function AppliedJobsPage({ analytics: C, onOpenApplicationForm: $ }) {
|
|
77385
|
-
const [V, F] = useState(
|
|
77386
|
-
|
|
77387
|
-
}
|
|
77388
|
-
|
|
77411
|
+
const [V, F] = useState(null), K = useJobFilters(), { data: J, isLoading: ee, error: te, isFetching: ne } = useFetchPipelineJobsQuery(mr(zn({}, K), {
|
|
77412
|
+
tab: V || "applications"
|
|
77413
|
+
})), { data: re } = useFetchPipelineJobsQuery({
|
|
77414
|
+
tab: APPLIED_JOB_TABS.pending.key,
|
|
77389
77415
|
return_only_count: !0
|
|
77390
77416
|
}), { data: ae } = useFetchPipelineJobsQuery({
|
|
77391
|
-
|
|
77417
|
+
tab: APPLIED_JOB_TABS.underReview.key,
|
|
77392
77418
|
return_only_count: !0
|
|
77393
77419
|
}), oe = (fe) => {
|
|
77394
77420
|
const ge = Object.values(APPLIED_JOB_TABS).find(
|
|
@@ -77399,7 +77425,7 @@ function AppliedJobsPage({ analytics: C, onOpenApplicationForm: $ }) {
|
|
|
77399
77425
|
let pe = null;
|
|
77400
77426
|
return fe === APPLIED_JOB_TABS.pending.key ? pe = re == null ? void 0 : re.totalEntries : fe === APPLIED_JOB_TABS.underReview.key && (pe = ae == null ? void 0 : ae.totalEntries), pe != null ? `${ge.label} (${pe})` : ge.label;
|
|
77401
77427
|
}, ie = (fe) => {
|
|
77402
|
-
F(fe), C && C.track("Applied Jobs Tab Clicked", { tab: fe });
|
|
77428
|
+
F((ge) => ge === fe ? null : fe), C && C.track("Applied Jobs Tab Clicked", { tab: fe });
|
|
77403
77429
|
}, {
|
|
77404
77430
|
accumulatedJobs: le,
|
|
77405
77431
|
accumulatedCompaniesMap: ce,
|
|
@@ -77415,7 +77441,8 @@ function AppliedJobsPage({ analytics: C, onOpenApplicationForm: $ }) {
|
|
|
77415
77441
|
const ge = {
|
|
77416
77442
|
CheckCircleOutlined: CheckCircleOutlined$1,
|
|
77417
77443
|
SyncOutlined: SyncOutlined$1,
|
|
77418
|
-
CloseCircleOutlined: CloseCircleOutlined$1
|
|
77444
|
+
CloseCircleOutlined: CloseCircleOutlined$1,
|
|
77445
|
+
ClockCircleOutlined: ClockCircleOutlined$1
|
|
77419
77446
|
}[fe.icon];
|
|
77420
77447
|
return /* @__PURE__ */ React__default.createElement(
|
|
77421
77448
|
Tag$1,
|
|
@@ -77431,7 +77458,7 @@ function AppliedJobsPage({ analytics: C, onOpenApplicationForm: $ }) {
|
|
|
77431
77458
|
JobsList,
|
|
77432
77459
|
{
|
|
77433
77460
|
analytics: C,
|
|
77434
|
-
currentTab: V,
|
|
77461
|
+
currentTab: V || "applications",
|
|
77435
77462
|
jobs: le,
|
|
77436
77463
|
companiesMap: ce,
|
|
77437
77464
|
isLoading: ve,
|