@scalant/career-hub 4.0.3-alpha.0 → 4.0.5-alpha.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 +140 -136
- package/dist/career-hub.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/career-hub.es.js
CHANGED
|
@@ -47578,18 +47578,117 @@ process.env.NODE_ENV !== "production" && (Dragger.displayName = "Dragger");
|
|
|
47578
47578
|
const Dragger$1 = Dragger, Upload = InternalUpload$1;
|
|
47579
47579
|
Upload.Dragger = Dragger$1;
|
|
47580
47580
|
Upload.LIST_IGNORE = LIST_IGNORE;
|
|
47581
|
-
const Upload$1 = Upload,
|
|
47581
|
+
const Upload$1 = Upload, APPLICATION_STATUS$1 = {
|
|
47582
|
+
APPLICATION_FORM: "application_form",
|
|
47583
|
+
RESUME_FITMENT_CHECK: "resume_fitment_check",
|
|
47584
|
+
RESUME_CHOICE_SELECT: "resume_choice_select",
|
|
47585
|
+
SAVED: "Saved",
|
|
47586
|
+
WITHDRAWN: "Application Withdrawn",
|
|
47587
|
+
SUCCESSFULLY_APPLIED: "successfully_applied"
|
|
47588
|
+
}, SIDER_WIDTH = {
|
|
47589
|
+
PROFILE_DETAILS: "25%",
|
|
47590
|
+
JOB_DETAILS: "60%"
|
|
47591
|
+
}, JOB_FILTER_TAGS = {
|
|
47592
|
+
relevant: {
|
|
47593
|
+
label: "Preferred Jobs",
|
|
47594
|
+
icon: UnlockOutlined$1
|
|
47595
|
+
},
|
|
47596
|
+
all: {
|
|
47597
|
+
label: "All Jobs",
|
|
47598
|
+
icon: RiseOutlined$1
|
|
47599
|
+
},
|
|
47600
|
+
saved: {
|
|
47601
|
+
label: "Saved",
|
|
47602
|
+
icon: DownloadOutlined$1
|
|
47603
|
+
},
|
|
47604
|
+
applied: {
|
|
47605
|
+
label: "Applied",
|
|
47606
|
+
icon: CheckCircleOutlined$1
|
|
47607
|
+
}
|
|
47608
|
+
}, TAG_TO_TAB_MAPPING = {
|
|
47609
|
+
relevant: "relevant",
|
|
47610
|
+
all: "all",
|
|
47611
|
+
saved: "saved",
|
|
47612
|
+
applied: "applications"
|
|
47613
|
+
}, COUNT_TO_TAB_MAPPING = {
|
|
47614
|
+
relevant: "relevant",
|
|
47615
|
+
all: "all",
|
|
47616
|
+
saved: "saved",
|
|
47617
|
+
applied: "applications"
|
|
47618
|
+
}, SORTING_OPTIONS = {
|
|
47619
|
+
default: {
|
|
47620
|
+
label: "Default",
|
|
47621
|
+
value: "default",
|
|
47622
|
+
mapping: { property: "default", direction: "DESC" }
|
|
47623
|
+
},
|
|
47624
|
+
eligibility: {
|
|
47625
|
+
label: "Eligibility",
|
|
47626
|
+
value: "eligibility",
|
|
47627
|
+
mapping: { property: "eligibility", direction: "DESC" }
|
|
47628
|
+
},
|
|
47629
|
+
popularity: {
|
|
47630
|
+
label: "Popularity",
|
|
47631
|
+
value: "popularity",
|
|
47632
|
+
mapping: { property: "popularity", direction: "DESC" }
|
|
47633
|
+
},
|
|
47634
|
+
leastApplied: {
|
|
47635
|
+
label: "Least Applied",
|
|
47636
|
+
value: "leastApplied",
|
|
47637
|
+
mapping: { property: "popularity", direction: "ASC" }
|
|
47638
|
+
},
|
|
47639
|
+
mostRecent: {
|
|
47640
|
+
label: "Most Recent",
|
|
47641
|
+
value: "mostRecent",
|
|
47642
|
+
mapping: { property: "date_posted_on", direction: "DESC" }
|
|
47643
|
+
}
|
|
47644
|
+
}, JOB_BODY_TABS = {
|
|
47645
|
+
ABOUT_ROLE: {
|
|
47646
|
+
key: "about-role",
|
|
47647
|
+
label: "About Role"
|
|
47648
|
+
},
|
|
47649
|
+
REQUIREMENTS: {
|
|
47650
|
+
key: "requirements",
|
|
47651
|
+
label: "Requirements"
|
|
47652
|
+
},
|
|
47653
|
+
APPLICATION_TIMELINE: {
|
|
47654
|
+
key: "application-timeline",
|
|
47655
|
+
label: "Application Timeline"
|
|
47656
|
+
}
|
|
47657
|
+
}, ALERT_FREQUENCY = {
|
|
47658
|
+
REALTIME: 0,
|
|
47659
|
+
DAILY: 1,
|
|
47660
|
+
ALTERNATE_DAY: 2,
|
|
47661
|
+
WEEKLY: 7
|
|
47662
|
+
}, ALERT_FREQUENCY_LABELS = {
|
|
47663
|
+
[ALERT_FREQUENCY.REALTIME]: "Realtime",
|
|
47664
|
+
[ALERT_FREQUENCY.DAILY]: "Daily",
|
|
47665
|
+
[ALERT_FREQUENCY.ALTERNATE_DAY]: "Every alternate day",
|
|
47666
|
+
[ALERT_FREQUENCY.WEEKLY]: "Weekly"
|
|
47667
|
+
}, ALERT_NOTIFICATION_TYPE = {
|
|
47668
|
+
EMAIL: "email",
|
|
47669
|
+
WHATSAPP: "whatsapp",
|
|
47670
|
+
BOTH: "both"
|
|
47671
|
+
}, ALERT_NOTIFICATION_LABELS = {
|
|
47672
|
+
[ALERT_NOTIFICATION_TYPE.EMAIL]: "On Email",
|
|
47673
|
+
[ALERT_NOTIFICATION_TYPE.WHATSAPP]: "On Whatsapp",
|
|
47674
|
+
[ALERT_NOTIFICATION_TYPE.BOTH]: "On Email & Whatsapp"
|
|
47675
|
+
}, ALERT_STATUS = {
|
|
47676
|
+
ACTIVE: "active",
|
|
47677
|
+
INACTIVE: "inactive"
|
|
47678
|
+
}, DEFAULT_PROCESS_COUNTS = {
|
|
47679
|
+
all: 0,
|
|
47680
|
+
relevant: 0,
|
|
47681
|
+
draft: 0,
|
|
47682
|
+
applications: 0,
|
|
47683
|
+
saved: 0,
|
|
47684
|
+
archived: 0
|
|
47685
|
+
}, HYDRATION_KEY = "__CAREERS_HUB__", initialState$9 = {
|
|
47582
47686
|
per_page: 18,
|
|
47583
47687
|
tab: "relevant",
|
|
47584
47688
|
filters: {
|
|
47585
47689
|
keyword: ""
|
|
47586
47690
|
},
|
|
47587
|
-
sortings: [
|
|
47588
|
-
{
|
|
47589
|
-
property: "eligibility",
|
|
47590
|
-
direction: "DESC"
|
|
47591
|
-
}
|
|
47592
|
-
],
|
|
47691
|
+
sortings: [SORTING_OPTIONS.default.mapping],
|
|
47593
47692
|
page_number: 1,
|
|
47594
47693
|
skip_expired_jobs: !1
|
|
47595
47694
|
}, filterSlice = createSlice({
|
|
@@ -50248,7 +50347,7 @@ const JOB_CARD_CONFIG = {
|
|
|
50248
50347
|
isArchivedStatusAvailable: !0,
|
|
50249
50348
|
isApplicationStatusAvailable: !1
|
|
50250
50349
|
}
|
|
50251
|
-
}, APPLICATION_STATUS
|
|
50350
|
+
}, APPLICATION_STATUS = {
|
|
50252
50351
|
NOT_APPLIED: "Not Applied",
|
|
50253
50352
|
SAVED: "Saved",
|
|
50254
50353
|
APPLIED: "Applied",
|
|
@@ -50355,106 +50454,7 @@ const JOB_CARD_CONFIG = {
|
|
|
50355
50454
|
},
|
|
50356
50455
|
[re, C, $, F, V, K]
|
|
50357
50456
|
) };
|
|
50358
|
-
},
|
|
50359
|
-
APPLICATION_FORM: "application_form",
|
|
50360
|
-
RESUME_FITMENT_CHECK: "resume_fitment_check",
|
|
50361
|
-
RESUME_CHOICE_SELECT: "resume_choice_select",
|
|
50362
|
-
SAVED: "Saved",
|
|
50363
|
-
WITHDRAWN: "Application Withdrawn",
|
|
50364
|
-
SUCCESSFULLY_APPLIED: "successfully_applied"
|
|
50365
|
-
}, SIDER_WIDTH = {
|
|
50366
|
-
PROFILE_DETAILS: "25%",
|
|
50367
|
-
JOB_DETAILS: "60%"
|
|
50368
|
-
}, JOB_FILTER_TAGS = {
|
|
50369
|
-
relevant: {
|
|
50370
|
-
label: "Preferred Jobs",
|
|
50371
|
-
icon: UnlockOutlined$1
|
|
50372
|
-
},
|
|
50373
|
-
all: {
|
|
50374
|
-
label: "All Jobs",
|
|
50375
|
-
icon: RiseOutlined$1
|
|
50376
|
-
},
|
|
50377
|
-
saved: {
|
|
50378
|
-
label: "Saved",
|
|
50379
|
-
icon: DownloadOutlined$1
|
|
50380
|
-
},
|
|
50381
|
-
applied: {
|
|
50382
|
-
label: "Applied",
|
|
50383
|
-
icon: CheckCircleOutlined$1
|
|
50384
|
-
}
|
|
50385
|
-
}, TAG_TO_TAB_MAPPING = {
|
|
50386
|
-
relevant: "relevant",
|
|
50387
|
-
all: "all",
|
|
50388
|
-
saved: "saved",
|
|
50389
|
-
applied: "applications"
|
|
50390
|
-
}, COUNT_TO_TAB_MAPPING = {
|
|
50391
|
-
relevant: "relevant",
|
|
50392
|
-
all: "all",
|
|
50393
|
-
saved: "saved",
|
|
50394
|
-
applied: "applications"
|
|
50395
|
-
}, SORTING_OPTIONS = {
|
|
50396
|
-
eligibility: {
|
|
50397
|
-
label: "Eligibility",
|
|
50398
|
-
value: "eligibility",
|
|
50399
|
-
mapping: { property: "eligibility", direction: "DESC" }
|
|
50400
|
-
},
|
|
50401
|
-
popularity: {
|
|
50402
|
-
label: "Popularity",
|
|
50403
|
-
value: "popularity",
|
|
50404
|
-
mapping: { property: "popularity", direction: "DESC" }
|
|
50405
|
-
},
|
|
50406
|
-
leastApplied: {
|
|
50407
|
-
label: "Least Applied",
|
|
50408
|
-
value: "leastApplied",
|
|
50409
|
-
mapping: { property: "popularity", direction: "ASC" }
|
|
50410
|
-
},
|
|
50411
|
-
mostRecent: {
|
|
50412
|
-
label: "Most Recent",
|
|
50413
|
-
value: "mostRecent",
|
|
50414
|
-
mapping: { property: "date_posted_on", direction: "DESC" }
|
|
50415
|
-
}
|
|
50416
|
-
}, JOB_BODY_TABS = {
|
|
50417
|
-
ABOUT_ROLE: {
|
|
50418
|
-
key: "about-role",
|
|
50419
|
-
label: "About Role"
|
|
50420
|
-
},
|
|
50421
|
-
REQUIREMENTS: {
|
|
50422
|
-
key: "requirements",
|
|
50423
|
-
label: "Requirements"
|
|
50424
|
-
},
|
|
50425
|
-
APPLICATION_TIMELINE: {
|
|
50426
|
-
key: "application-timeline",
|
|
50427
|
-
label: "Application Timeline"
|
|
50428
|
-
}
|
|
50429
|
-
}, ALERT_FREQUENCY = {
|
|
50430
|
-
REALTIME: 0,
|
|
50431
|
-
DAILY: 1,
|
|
50432
|
-
ALTERNATE_DAY: 2,
|
|
50433
|
-
WEEKLY: 7
|
|
50434
|
-
}, ALERT_FREQUENCY_LABELS = {
|
|
50435
|
-
[ALERT_FREQUENCY.REALTIME]: "Realtime",
|
|
50436
|
-
[ALERT_FREQUENCY.DAILY]: "Daily",
|
|
50437
|
-
[ALERT_FREQUENCY.ALTERNATE_DAY]: "Every alternate day",
|
|
50438
|
-
[ALERT_FREQUENCY.WEEKLY]: "Weekly"
|
|
50439
|
-
}, ALERT_NOTIFICATION_TYPE = {
|
|
50440
|
-
EMAIL: "email",
|
|
50441
|
-
WHATSAPP: "whatsapp",
|
|
50442
|
-
BOTH: "both"
|
|
50443
|
-
}, ALERT_NOTIFICATION_LABELS = {
|
|
50444
|
-
[ALERT_NOTIFICATION_TYPE.EMAIL]: "On Email",
|
|
50445
|
-
[ALERT_NOTIFICATION_TYPE.WHATSAPP]: "On Whatsapp",
|
|
50446
|
-
[ALERT_NOTIFICATION_TYPE.BOTH]: "On Email & Whatsapp"
|
|
50447
|
-
}, ALERT_STATUS = {
|
|
50448
|
-
ACTIVE: "active",
|
|
50449
|
-
INACTIVE: "inactive"
|
|
50450
|
-
}, DEFAULT_PROCESS_COUNTS = {
|
|
50451
|
-
all: 0,
|
|
50452
|
-
relevant: 0,
|
|
50453
|
-
draft: 0,
|
|
50454
|
-
applications: 0,
|
|
50455
|
-
saved: 0,
|
|
50456
|
-
archived: 0
|
|
50457
|
-
}, HYDRATION_KEY = "__CAREERS_HUB__", getCurrentSortingValue = (C = []) => {
|
|
50457
|
+
}, getCurrentSortingValue = (C = []) => {
|
|
50458
50458
|
if (!C || C.length === 0)
|
|
50459
50459
|
return "eligibility";
|
|
50460
50460
|
const $ = C[0];
|
|
@@ -52678,9 +52678,9 @@ function Filter({ analytics: C }) {
|
|
|
52678
52678
|
};
|
|
52679
52679
|
return /* @__PURE__ */ React__default.createElement(Button$2, { type: "primary", className: styles$F.filter, onClick: F }, "Filters ", /* @__PURE__ */ React__default.createElement(DownOutlined$1, null));
|
|
52680
52680
|
}
|
|
52681
|
-
const search = "_search_hhvxj_1", iconContainer = "_iconContainer_hhvxj_7", input = "_input_hhvxj_20", slideIn = "_slideIn_hhvxj_1", styles$E = {
|
|
52681
|
+
const search = "_search_hhvxj_1", iconContainer$1 = "_iconContainer_hhvxj_7", input = "_input_hhvxj_20", slideIn = "_slideIn_hhvxj_1", styles$E = {
|
|
52682
52682
|
search,
|
|
52683
|
-
iconContainer,
|
|
52683
|
+
iconContainer: iconContainer$1,
|
|
52684
52684
|
input,
|
|
52685
52685
|
slideIn
|
|
52686
52686
|
};
|
|
@@ -53074,7 +53074,7 @@ const useApplicationFormContext = () => {
|
|
|
53074
53074
|
var oe;
|
|
53075
53075
|
const C = useSelector(
|
|
53076
53076
|
(ie) => ie.scalantCareerHub.dashboard.userProfileData
|
|
53077
|
-
), $ = (oe = C == null ? void 0 : C.hasCompletedScreeningCall) != null ? oe : !1, { analytics: F, jobData: V, companyData: K, currentTab: J } = useJobPreview(), { title: ee, applicationStatus: te } = V || {}, ne = te === APPLICATION_STATUS.WITHDRAWN, { name: re } = K || {}, ae = useCallback(() => {
|
|
53077
|
+
), $ = (oe = C == null ? void 0 : C.hasCompletedScreeningCall) != null ? oe : !1, { analytics: F, jobData: V, companyData: K, currentTab: J } = useJobPreview(), { title: ee, applicationStatus: te } = V || {}, ne = te === APPLICATION_STATUS$1.WITHDRAWN, { name: re } = K || {}, ae = useCallback(() => {
|
|
53078
53078
|
globalThis.open(
|
|
53079
53079
|
`${INTERVIEW_QUESTIONS_URL}?company=${encodeURIComponent(
|
|
53080
53080
|
re
|
|
@@ -53579,7 +53579,7 @@ const useApplicationFormContext = () => {
|
|
|
53579
53579
|
jobId: $
|
|
53580
53580
|
});
|
|
53581
53581
|
};
|
|
53582
|
-
return J === APPLICATION_STATUS.WITHDRAWN ? /* @__PURE__ */ React__default.createElement("div", { className: styles$r.withdrawnText }, /* @__PURE__ */ React__default.createElement(CheckCircleFilled$1, null), "Your Application has been Withdrawn") : K === TAG_TO_TAB_MAPPING.applied && !NON_WITHDRAW_STATUSES.includes(J) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
53582
|
+
return J === APPLICATION_STATUS$1.WITHDRAWN ? /* @__PURE__ */ React__default.createElement("div", { className: styles$r.withdrawnText }, /* @__PURE__ */ React__default.createElement(CheckCircleFilled$1, null), "Your Application has been Withdrawn") : K === TAG_TO_TAB_MAPPING.applied && !NON_WITHDRAW_STATUSES.includes(J) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
53583
53583
|
Button$2,
|
|
53584
53584
|
{
|
|
53585
53585
|
icon: /* @__PURE__ */ React__default.createElement("img", { src: ICONS.exit, alt: "exit" }),
|
|
@@ -53609,7 +53609,7 @@ const useApplicationFormContext = () => {
|
|
|
53609
53609
|
)
|
|
53610
53610
|
)) : null;
|
|
53611
53611
|
}, SaveButton$1 = () => {
|
|
53612
|
-
const { analytics: C, jobId: $, jobData: F, refetch: V, currentTab: K } = useJobPreview(), [J, { isLoading: ee }] = useUpdateApplicationStatusMutation(), { applicationStatus: te } = F || {}, ne = te === APPLICATION_STATUS.SAVED, re = () => or(void 0, null, function* () {
|
|
53612
|
+
const { analytics: C, jobId: $, jobData: F, refetch: V, currentTab: K } = useJobPreview(), [J, { isLoading: ee }] = useUpdateApplicationStatusMutation(), { applicationStatus: te } = F || {}, ne = te === APPLICATION_STATUS$1.SAVED, re = () => or(void 0, null, function* () {
|
|
53613
53613
|
var oe;
|
|
53614
53614
|
const ae = yield J({
|
|
53615
53615
|
job_profile_id: $,
|
|
@@ -53649,7 +53649,7 @@ const useApplicationFormContext = () => {
|
|
|
53649
53649
|
jobId: V,
|
|
53650
53650
|
currentTab: K,
|
|
53651
53651
|
analytics: J
|
|
53652
|
-
} = useJobPreview(), { applicationStatus: ee } = C || {}, { isEligible: te } = $ || {}, ne = ee === APPLICATION_STATUS.WITHDRAWN, re = () => {
|
|
53652
|
+
} = useJobPreview(), { applicationStatus: ee } = C || {}, { isEligible: te } = $ || {}, ne = ee === APPLICATION_STATUS$1.WITHDRAWN, re = () => {
|
|
53653
53653
|
F(V), J == null || J.click("Expanded View - Apply Now", "Jobs Page V2", {
|
|
53654
53654
|
currentTab: K,
|
|
53655
53655
|
jobId: V
|
|
@@ -54320,7 +54320,7 @@ const applicationFormFooterContainer = "_applicationFormFooterContainer_6f2h5_1"
|
|
|
54320
54320
|
applicationId: V,
|
|
54321
54321
|
payload: ue
|
|
54322
54322
|
});
|
|
54323
|
-
(le = de == null ? void 0 : de.data) != null && le.success ? te(APPLICATION_STATUS.RESUME_FITMENT_CHECK) : message$1.error("Failed to update application");
|
|
54323
|
+
(le = de == null ? void 0 : de.data) != null && le.success ? te(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK) : message$1.error("Failed to update application");
|
|
54324
54324
|
} catch (ue) {
|
|
54325
54325
|
message$1.error("Failed to update application");
|
|
54326
54326
|
}
|
|
@@ -54330,7 +54330,7 @@ const applicationFormFooterContainer = "_applicationFormFooterContainer_6f2h5_1"
|
|
|
54330
54330
|
return /* @__PURE__ */ React__default.createElement(Space$1, { className: styles$n.applicationFormFooterContainer }, /* @__PURE__ */ React__default.createElement(Button$2, { onClick: ie }, "Cancel"), /* @__PURE__ */ React__default.createElement(Button$2, { loading: ae, type: "primary", onClick: oe }, "Next"));
|
|
54331
54331
|
}, ResumeChoiceSelectFooter = () => {
|
|
54332
54332
|
const { applicationId: C, selectedResume: $, jobProfileId: F, stepName: V, setStepName: K } = useApplicationFormContext(), { analytics: J } = useJobPreview(), [ee, { isLoading: te }] = useUpdateApplicationMutation(), ne = () => {
|
|
54333
|
-
J == null || J.click("Resume Choice - Go Back", PRODUCT_NAME), K(APPLICATION_STATUS.APPLICATION_FORM);
|
|
54333
|
+
J == null || J.click("Resume Choice - Go Back", PRODUCT_NAME), K(APPLICATION_STATUS$1.APPLICATION_FORM);
|
|
54334
54334
|
}, re = () => or(void 0, null, function* () {
|
|
54335
54335
|
var ae;
|
|
54336
54336
|
J == null || J.click("Resume Choice - Proceed to Apply", PRODUCT_NAME);
|
|
@@ -54343,7 +54343,7 @@ const applicationFormFooterContainer = "_applicationFormFooterContainer_6f2h5_1"
|
|
|
54343
54343
|
resume_id: $
|
|
54344
54344
|
}
|
|
54345
54345
|
});
|
|
54346
|
-
(ae = ie == null ? void 0 : ie.data) != null && ae.success ? K(APPLICATION_STATUS.SUCCESSFULLY_APPLIED) : message$1.error("Failed to update application");
|
|
54346
|
+
(ae = ie == null ? void 0 : ie.data) != null && ae.success ? K(APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED) : message$1.error("Failed to update application");
|
|
54347
54347
|
} catch (oe) {
|
|
54348
54348
|
message$1.error("Failed to update application");
|
|
54349
54349
|
}
|
|
@@ -54362,9 +54362,9 @@ const applicationFormFooterContainer = "_applicationFormFooterContainer_6f2h5_1"
|
|
|
54362
54362
|
function Footer$1({ onCancel: C }) {
|
|
54363
54363
|
const { stepName: $ } = useApplicationFormContext();
|
|
54364
54364
|
switch ($) {
|
|
54365
|
-
case APPLICATION_STATUS.APPLICATION_FORM:
|
|
54365
|
+
case APPLICATION_STATUS$1.APPLICATION_FORM:
|
|
54366
54366
|
return /* @__PURE__ */ React__default.createElement(ApplicationFormFooter, { onCancel: C });
|
|
54367
|
-
case APPLICATION_STATUS.RESUME_CHOICE_SELECT:
|
|
54367
|
+
case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:
|
|
54368
54368
|
return /* @__PURE__ */ React__default.createElement(ResumeChoiceSelectFooter, null);
|
|
54369
54369
|
default:
|
|
54370
54370
|
return null;
|
|
@@ -54376,25 +54376,25 @@ const stepText = "_stepText_14qm3_1", titleContainer$1 = "_titleContainer_14qm3_
|
|
|
54376
54376
|
titleIcon,
|
|
54377
54377
|
titleText
|
|
54378
54378
|
}, { Text: Text$3 } = Typography$1, STEP_MAP = {
|
|
54379
|
-
[APPLICATION_STATUS.APPLICATION_FORM]: {
|
|
54379
|
+
[APPLICATION_STATUS$1.APPLICATION_FORM]: {
|
|
54380
54380
|
currentStep: 1,
|
|
54381
54381
|
icon: InfoCircleFilled$1,
|
|
54382
54382
|
title: "Required Details",
|
|
54383
54383
|
totalSteps: 2
|
|
54384
54384
|
},
|
|
54385
|
-
[APPLICATION_STATUS.RESUME_FITMENT_CHECK]: {
|
|
54385
|
+
[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK]: {
|
|
54386
54386
|
currentStep: 2,
|
|
54387
54387
|
icon: FileTextTwoTone$1,
|
|
54388
54388
|
title: "Select which Resume to share for this job application",
|
|
54389
54389
|
totalSteps: 2
|
|
54390
54390
|
},
|
|
54391
|
-
[APPLICATION_STATUS.RESUME_CHOICE_SELECT]: {
|
|
54391
|
+
[APPLICATION_STATUS$1.RESUME_CHOICE_SELECT]: {
|
|
54392
54392
|
currentStep: 2,
|
|
54393
54393
|
icon: FileTextTwoTone$1,
|
|
54394
54394
|
title: "Select which Resume to share for this job application",
|
|
54395
54395
|
totalSteps: 2
|
|
54396
54396
|
},
|
|
54397
|
-
[APPLICATION_STATUS.SUCCESSFULLY_APPLIED]: {
|
|
54397
|
+
[APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED]: {
|
|
54398
54398
|
currentStep: 2,
|
|
54399
54399
|
icon: FileTextTwoTone$1,
|
|
54400
54400
|
title: "Select which Resume to share for this job application",
|
|
@@ -54416,7 +54416,7 @@ function FormHeader({ onClose: C }) {
|
|
|
54416
54416
|
title: ne,
|
|
54417
54417
|
totalSteps: re
|
|
54418
54418
|
} = STEP_MAP[$] || {}, ae = () => {
|
|
54419
|
-
V == null || V.click("Application Form - Close", PRODUCT_NAME), $ === APPLICATION_STATUS.SUCCESSFULLY_APPLIED && (K(TAG_TO_TAB_MAPPING.applied), J()), C == null || C();
|
|
54419
|
+
V == null || V.click("Application Form - Close", PRODUCT_NAME), $ === APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED && (K(TAG_TO_TAB_MAPPING.applied), J()), C == null || C();
|
|
54420
54420
|
};
|
|
54421
54421
|
return /* @__PURE__ */ React__default.createElement(Flex$1, { justify: "space-between" }, /* @__PURE__ */ React__default.createElement(Space$1, { className: styles$m.container, direction: "vertical" }, /* @__PURE__ */ React__default.createElement(Text$3, { className: styles$m.stepText }, "Step ", ee, "/", re), /* @__PURE__ */ React__default.createElement(Space$1, { className: styles$m.titleContainer }, /* @__PURE__ */ React__default.createElement(te, { className: styles$m.titleIcon }), /* @__PURE__ */ React__default.createElement(Text$3, { className: styles$m.titleText }, ne))), /* @__PURE__ */ React__default.createElement(Button$2, { icon: /* @__PURE__ */ React__default.createElement(CloseOutlined$1, null), type: "text", onClick: ae }));
|
|
54422
54422
|
}
|
|
@@ -74071,11 +74071,15 @@ function ResumeChoiceSelect() {
|
|
|
74071
74071
|
C(K);
|
|
74072
74072
|
}, [F, C]), V || !F ? /* @__PURE__ */ React__default.createElement(Skeleton$1, { active: !0 }) : /* @__PURE__ */ React__default.createElement(Flex$1, { className: styles$l.container }, /* @__PURE__ */ React__default.createElement(Flex$1, { flex: 1, vertical: !0, gap: 16 }, Object.entries(F).map(([K, J]) => /* @__PURE__ */ React__default.createElement(ResumeChoiceOptionLabel, { key: K, value: J }))), /* @__PURE__ */ React__default.createElement(Flex$1, { className: styles$l.resumePreviewContainer, flex: 1 }, /* @__PURE__ */ React__default.createElement(ResumePreview, null)));
|
|
74073
74073
|
}
|
|
74074
|
-
const container$3 = "
|
|
74074
|
+
const container$3 = "_container_1k535_1", icon = "_icon_1k535_6", title$1 = "_title_1k535_11", description$1 = "_description_1k535_17", iconContainer = "_iconContainer_1k535_23", pulse = "_pulse_1k535_1", iconScannerLine = "_iconScannerLine_1k535_34", scan = "_scan_1k535_1", styles$k = {
|
|
74075
74075
|
container: container$3,
|
|
74076
74076
|
icon,
|
|
74077
74077
|
title: title$1,
|
|
74078
|
-
description: description$1
|
|
74078
|
+
description: description$1,
|
|
74079
|
+
iconContainer,
|
|
74080
|
+
pulse,
|
|
74081
|
+
iconScannerLine,
|
|
74082
|
+
scan
|
|
74079
74083
|
}, EVALUATION_COMPLETION_TIMEOUT = 6e4;
|
|
74080
74084
|
function ResumeFitmentCheck() {
|
|
74081
74085
|
const { jobProfileId: C, setStepName: $ } = useApplicationFormContext(), {
|
|
@@ -74088,14 +74092,14 @@ function ResumeFitmentCheck() {
|
|
|
74088
74092
|
}), { fitmentScore: K } = useSelector((J) => J.scalantCareerHub.resumeFitment) || {};
|
|
74089
74093
|
return useEffect(() => {
|
|
74090
74094
|
const J = Object.keys(V || {});
|
|
74091
|
-
J.length > 0 && Object.keys((K == null ? void 0 : K[C]) || {}).length === J.length && $(APPLICATION_STATUS.RESUME_CHOICE_SELECT);
|
|
74095
|
+
J.length > 0 && Object.keys((K == null ? void 0 : K[C]) || {}).length === J.length && $(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT);
|
|
74092
74096
|
}, [K, C, V, $]), useEffect(() => {
|
|
74093
74097
|
const J = setTimeout(() => {
|
|
74094
|
-
$(APPLICATION_STATUS.RESUME_CHOICE_SELECT);
|
|
74098
|
+
$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT);
|
|
74095
74099
|
}, EVALUATION_COMPLETION_TIMEOUT);
|
|
74096
74100
|
return () => clearTimeout(J);
|
|
74097
74101
|
}, [$]), useEffect(() => {
|
|
74098
|
-
F && (message$1.error("Failed to evaluate job fitment"), $(APPLICATION_STATUS.RESUME_CHOICE_SELECT));
|
|
74102
|
+
F && (message$1.error("Failed to evaluate job fitment"), $(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT));
|
|
74099
74103
|
}, [F, $]), /* @__PURE__ */ React__default.createElement(
|
|
74100
74104
|
Flex$1,
|
|
74101
74105
|
{
|
|
@@ -74105,7 +74109,7 @@ function ResumeFitmentCheck() {
|
|
|
74105
74109
|
justify: "center",
|
|
74106
74110
|
align: "center"
|
|
74107
74111
|
},
|
|
74108
|
-
/* @__PURE__ */ React__default.createElement(
|
|
74112
|
+
/* @__PURE__ */ React__default.createElement("div", { className: styles$k.iconContainer }, /* @__PURE__ */ React__default.createElement("div", { className: styles$k.iconScannerLine })),
|
|
74109
74113
|
/* @__PURE__ */ React__default.createElement(Typography$1.Text, { className: styles$k.title, strong: !0 }, "Analysing the Right Resume for you to Apply!"),
|
|
74110
74114
|
/* @__PURE__ */ React__default.createElement(Typography$1.Text, { className: styles$k.description }, "Receive instant insights and a fitment score to know which resume works best. Fix key gaps and boost your chances of getting noticed by top companies")
|
|
74111
74115
|
);
|
|
@@ -74168,7 +74172,7 @@ const screeningCallService = careerHubApi.injectEndpoints({
|
|
|
74168
74172
|
var oe;
|
|
74169
74173
|
const $ = useSelector(
|
|
74170
74174
|
(ie) => ie.scalantCareerHub.dashboard.userProfileData
|
|
74171
|
-
), F = (oe = $ == null ? void 0 : $.hasCompletedScreeningCall) != null ? oe : !1, { analytics: V, jobData: K, currentTab: J } = useJobPreview(), { applicationStatus: ee } = K || {}, te = ee === APPLICATION_STATUS.WITHDRAWN, [ne, { isLoading: re }] = useIssueScreeningCallMutation(), ae = useCallback(() => or(void 0, null, function* () {
|
|
74175
|
+
), F = (oe = $ == null ? void 0 : $.hasCompletedScreeningCall) != null ? oe : !1, { analytics: V, jobData: K, currentTab: J } = useJobPreview(), { applicationStatus: ee } = K || {}, te = ee === APPLICATION_STATUS$1.WITHDRAWN, [ne, { isLoading: re }] = useIssueScreeningCallMutation(), ae = useCallback(() => or(void 0, null, function* () {
|
|
74172
74176
|
var le;
|
|
74173
74177
|
const ie = yield ne();
|
|
74174
74178
|
(le = ie == null ? void 0 : ie.data) != null && le.url ? globalThis.open(ie.data.url, "_blank") : message$1.error("Failed to initiate screening call. Please try again."), V == null || V.click("Screening Call - Take Call", PRODUCT_NAME);
|
|
@@ -74201,13 +74205,13 @@ const screeningCallService = careerHubApi.injectEndpoints({
|
|
|
74201
74205
|
function FormStep() {
|
|
74202
74206
|
const { stepName: C } = useApplicationFormContext();
|
|
74203
74207
|
switch (C) {
|
|
74204
|
-
case APPLICATION_STATUS.APPLICATION_FORM:
|
|
74208
|
+
case APPLICATION_STATUS$1.APPLICATION_FORM:
|
|
74205
74209
|
return /* @__PURE__ */ React__default.createElement(ApplicationForm, null);
|
|
74206
|
-
case APPLICATION_STATUS.RESUME_FITMENT_CHECK:
|
|
74210
|
+
case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK:
|
|
74207
74211
|
return /* @__PURE__ */ React__default.createElement(ResumeFitmentCheck, null);
|
|
74208
|
-
case APPLICATION_STATUS.RESUME_CHOICE_SELECT:
|
|
74212
|
+
case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:
|
|
74209
74213
|
return /* @__PURE__ */ React__default.createElement(ResumeChoiceSelect, null);
|
|
74210
|
-
case APPLICATION_STATUS.SUCCESSFULLY_APPLIED:
|
|
74214
|
+
case APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED:
|
|
74211
74215
|
return /* @__PURE__ */ React__default.createElement(SuccessScreen, null);
|
|
74212
74216
|
default:
|
|
74213
74217
|
return null;
|
|
@@ -76138,7 +76142,7 @@ JobsPage.propTypes = {
|
|
|
76138
76142
|
userProfileData: PropTypes.object
|
|
76139
76143
|
};
|
|
76140
76144
|
export {
|
|
76141
|
-
APPLICATION_STATUS
|
|
76145
|
+
APPLICATION_STATUS,
|
|
76142
76146
|
JOB_CARD_CONFIG,
|
|
76143
76147
|
JOB_PROFILE_STATUS,
|
|
76144
76148
|
JobsLayout,
|