@scalant/career-hub 4.1.1 → 4.1.3
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 +68 -31
- package/dist/career-hub.umd.js +2 -2
- package/package.json +2 -2
package/dist/career-hub.es.js
CHANGED
|
@@ -54279,31 +54279,34 @@ function JobAlert({ analytics: C }) {
|
|
|
54279
54279
|
return /* @__PURE__ */ React__default.createElement("div", { className: styles$H.jobAlert, onClick: V }, /* @__PURE__ */ React__default.createElement(AlertFilled$1, { className: styles$H.icon }), "Job Alerts");
|
|
54280
54280
|
}
|
|
54281
54281
|
const styles$G = {};
|
|
54282
|
-
function Sorting() {
|
|
54283
|
-
const
|
|
54284
|
-
(
|
|
54285
|
-
var
|
|
54286
|
-
return ((
|
|
54287
|
-
}
|
|
54288
|
-
),
|
|
54289
|
-
const
|
|
54290
|
-
|
|
54291
|
-
|
|
54292
|
-
|
|
54293
|
-
|
|
54294
|
-
}
|
|
54295
|
-
|
|
54296
|
-
|
|
54282
|
+
function Sorting({ analytics: C }) {
|
|
54283
|
+
const $ = useDispatch(), V = useSelector(
|
|
54284
|
+
(te) => {
|
|
54285
|
+
var ne, re;
|
|
54286
|
+
return ((re = (ne = te.scalantCareerHub) == null ? void 0 : ne.filter) == null ? void 0 : re.sortings) || [];
|
|
54287
|
+
}
|
|
54288
|
+
), F = useMemo$1(() => getCurrentSortingValue(V), [V]), K = (te) => {
|
|
54289
|
+
const ne = SORTING_OPTIONS[te];
|
|
54290
|
+
ne && (C == null || C.click("Sorting - Change", PRODUCT_NAME, {
|
|
54291
|
+
sortingValue: te,
|
|
54292
|
+
sortingLabel: ne.label
|
|
54293
|
+
}), $(setSortings([ne.mapping])));
|
|
54294
|
+
}, J = Object.values(SORTING_OPTIONS).map((te) => ({
|
|
54295
|
+
value: te.value,
|
|
54296
|
+
label: te.value === F ? `Sorted By: ${te.label}` : te.label
|
|
54297
|
+
})), ee = (te) => {
|
|
54298
|
+
const ne = SORTING_OPTIONS[te.value];
|
|
54299
|
+
return ne ? ne.label : te.label;
|
|
54297
54300
|
};
|
|
54298
54301
|
return /* @__PURE__ */ React__default.createElement(
|
|
54299
54302
|
Select$1,
|
|
54300
54303
|
{
|
|
54301
54304
|
className: styles$G.sorting,
|
|
54302
|
-
value:
|
|
54303
|
-
onChange:
|
|
54305
|
+
value: F,
|
|
54306
|
+
onChange: K,
|
|
54304
54307
|
suffixIcon: /* @__PURE__ */ React__default.createElement(DownOutlined$1, null),
|
|
54305
|
-
options:
|
|
54306
|
-
optionRender:
|
|
54308
|
+
options: J,
|
|
54309
|
+
optionRender: ee
|
|
54307
54310
|
}
|
|
54308
54311
|
);
|
|
54309
54312
|
}
|
|
@@ -54361,7 +54364,7 @@ const actions$1 = "_actions_nxp1u_1", styles$D = {
|
|
|
54361
54364
|
actions: actions$1
|
|
54362
54365
|
};
|
|
54363
54366
|
function Actions$1({ analytics: C }) {
|
|
54364
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: styles$D.actions }, /* @__PURE__ */ React__default.createElement(JobAlert, { analytics: C }), /* @__PURE__ */ React__default.createElement(Sorting,
|
|
54367
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: styles$D.actions }, /* @__PURE__ */ React__default.createElement(JobAlert, { analytics: C }), /* @__PURE__ */ React__default.createElement(Sorting, { analytics: C }), /* @__PURE__ */ React__default.createElement(Filter, { analytics: C }), /* @__PURE__ */ React__default.createElement(Search, { analytics: C }));
|
|
54365
54368
|
}
|
|
54366
54369
|
Actions$1.propTypes = {
|
|
54367
54370
|
analytics: PropTypes.object
|
|
@@ -55115,9 +55118,23 @@ const useApplicationFormContext = () => {
|
|
|
55115
55118
|
bodyContainer,
|
|
55116
55119
|
tabs
|
|
55117
55120
|
}, ExpandedJobViewBody = () => {
|
|
55118
|
-
var
|
|
55119
|
-
const { activeTab: C, setActiveTab: $, jobData: V, currentTab: F } = useJobPreview(), { applicationTimeline:
|
|
55120
|
-
|
|
55121
|
+
var re;
|
|
55122
|
+
const { activeTab: C, setActiveTab: $, jobData: V, currentTab: F, analytics: K, jobId: J } = useJobPreview(), { applicationTimeline: ee } = V || {}, te = ((re = ee == null ? void 0 : ee.timeline) == null ? void 0 : re.length) > 0 && F === TAG_TO_TAB_MAPPING.applied;
|
|
55123
|
+
useEffect(() => {
|
|
55124
|
+
if (K && C) {
|
|
55125
|
+
const oe = {
|
|
55126
|
+
[JOB_BODY_TABS.APPLICATION_TIMELINE.key]: "Application Timeline Tab",
|
|
55127
|
+
[JOB_BODY_TABS.ABOUT_ROLE.key]: "Job Description Tab",
|
|
55128
|
+
[JOB_BODY_TABS.REQUIREMENTS.key]: "Skills Required Tab"
|
|
55129
|
+
}[C] || "Unknown Tab";
|
|
55130
|
+
K.view(`Expanded Job View - ${oe}`, PRODUCT_NAME, {
|
|
55131
|
+
tab: C,
|
|
55132
|
+
jobId: J
|
|
55133
|
+
});
|
|
55134
|
+
}
|
|
55135
|
+
}, [K, C, J]);
|
|
55136
|
+
const ne = [
|
|
55137
|
+
te && {
|
|
55121
55138
|
key: JOB_BODY_TABS.APPLICATION_TIMELINE.key,
|
|
55122
55139
|
label: JOB_BODY_TABS.APPLICATION_TIMELINE.label,
|
|
55123
55140
|
children: /* @__PURE__ */ React__default.createElement(ApplicationTimelineTab, null)
|
|
@@ -55138,7 +55155,7 @@ const useApplicationFormContext = () => {
|
|
|
55138
55155
|
{
|
|
55139
55156
|
activeKey: C,
|
|
55140
55157
|
className: styles$s.tabs,
|
|
55141
|
-
items:
|
|
55158
|
+
items: ne,
|
|
55142
55159
|
onChange: $
|
|
55143
55160
|
}
|
|
55144
55161
|
));
|
|
@@ -76803,7 +76820,11 @@ function RelevantJobsPage({ analytics: C }) {
|
|
|
76803
76820
|
F,
|
|
76804
76821
|
TAG_TO_TAB_MAPPING.relevant
|
|
76805
76822
|
);
|
|
76806
|
-
return
|
|
76823
|
+
return useEffect(() => {
|
|
76824
|
+
C && !F && C.view("Relevant Jobs Page - Render", PRODUCT_NAME, {
|
|
76825
|
+
jobsCount: (ee == null ? void 0 : ee.length) || 0
|
|
76826
|
+
});
|
|
76827
|
+
}, [C, F, ee == null ? void 0 : ee.length]), /* @__PURE__ */ React__default.createElement("div", { className: styles$7.relevantJobsPage }, /* @__PURE__ */ React__default.createElement(
|
|
76807
76828
|
JobsList,
|
|
76808
76829
|
{
|
|
76809
76830
|
analytics: C,
|
|
@@ -76828,7 +76849,11 @@ function AllJobsPage({ analytics: C }) {
|
|
|
76828
76849
|
isFetchingMore: re,
|
|
76829
76850
|
isLoading: ae
|
|
76830
76851
|
} = useAccumulatedJobs(V, J, F, TAG_TO_TAB_MAPPING.all);
|
|
76831
|
-
return
|
|
76852
|
+
return useEffect(() => {
|
|
76853
|
+
C && !F && C.view("All Jobs Page - Render", PRODUCT_NAME, {
|
|
76854
|
+
jobsCount: (ee == null ? void 0 : ee.length) || 0
|
|
76855
|
+
});
|
|
76856
|
+
}, [C, F, ee == null ? void 0 : ee.length]), /* @__PURE__ */ React__default.createElement("div", { className: styles$6.allJobsPage }, /* @__PURE__ */ React__default.createElement(
|
|
76832
76857
|
JobsList,
|
|
76833
76858
|
{
|
|
76834
76859
|
analytics: C,
|
|
@@ -76855,7 +76880,11 @@ function SavedJobsPage({ analytics: C }) {
|
|
|
76855
76880
|
isFetchingMore: re,
|
|
76856
76881
|
isLoading: ae
|
|
76857
76882
|
} = useAccumulatedJobs(V, J, F, TAG_TO_TAB_MAPPING.saved);
|
|
76858
|
-
return
|
|
76883
|
+
return useEffect(() => {
|
|
76884
|
+
C && !F && C.view("Saved Jobs Page - Render", PRODUCT_NAME, {
|
|
76885
|
+
jobsCount: (ee == null ? void 0 : ee.length) || 0
|
|
76886
|
+
});
|
|
76887
|
+
}, [C, F, ee == null ? void 0 : ee.length]), /* @__PURE__ */ React__default.createElement("div", { className: styles$5.savedJobsPage }, /* @__PURE__ */ React__default.createElement(
|
|
76859
76888
|
JobsList,
|
|
76860
76889
|
{
|
|
76861
76890
|
analytics: C,
|
|
@@ -76887,7 +76916,11 @@ function AppliedJobsPage({ analytics: C }) {
|
|
|
76887
76916
|
F,
|
|
76888
76917
|
TAG_TO_TAB_MAPPING.applied
|
|
76889
76918
|
);
|
|
76890
|
-
return
|
|
76919
|
+
return useEffect(() => {
|
|
76920
|
+
C && !F && C.view("Applied Jobs Page - Render", PRODUCT_NAME, {
|
|
76921
|
+
jobsCount: (ee == null ? void 0 : ee.length) || 0
|
|
76922
|
+
});
|
|
76923
|
+
}, [C, F, ee == null ? void 0 : ee.length]), /* @__PURE__ */ React__default.createElement("div", { className: styles$4.appliedJobsPage }, /* @__PURE__ */ React__default.createElement(
|
|
76891
76924
|
JobsList,
|
|
76892
76925
|
{
|
|
76893
76926
|
analytics: C,
|
|
@@ -77239,7 +77272,11 @@ function FilterDrawerTitle({ onClose: C }) {
|
|
|
77239
77272
|
function FilterDrawer({ analytics: C }) {
|
|
77240
77273
|
const $ = useDispatch(), V = useSelector(
|
|
77241
77274
|
(te) => te.scalantCareerHub.dashboard.filterModalOpen
|
|
77242
|
-
), F = useSelector((te) => te.scalantCareerHub.filterForm)
|
|
77275
|
+
), F = useSelector((te) => te.scalantCareerHub.filterForm);
|
|
77276
|
+
useEffect(() => {
|
|
77277
|
+
C && V && C.view("Filter Drawer - Open", PRODUCT_NAME);
|
|
77278
|
+
}, [C, V]);
|
|
77279
|
+
const K = () => {
|
|
77243
77280
|
C == null || C.click("Filter Drawer - Close", PRODUCT_NAME), $(closeFilterModal());
|
|
77244
77281
|
}, J = () => {
|
|
77245
77282
|
var re, ae, oe, ie, le, ce, de;
|
|
@@ -77615,8 +77652,8 @@ function JobAlertModal({ analytics: C }) {
|
|
|
77615
77652
|
(de) => de.scalantCareerHub.dashboard.jobAlertModalOpen
|
|
77616
77653
|
), [F, K] = useState("create"), [J] = Form$1.useForm(), [ee, { isLoading: te }] = useCreateAlertMutation();
|
|
77617
77654
|
useEffect(() => {
|
|
77618
|
-
V
|
|
77619
|
-
}, [V, J]);
|
|
77655
|
+
V ? C && V && C.view("Job Alert Modal - Open", PRODUCT_NAME) : (J.resetFields(), K("create"));
|
|
77656
|
+
}, [V, J, C]);
|
|
77620
77657
|
const ne = () => {
|
|
77621
77658
|
C == null || C.click("Job Alert Modal - Close", PRODUCT_NAME), $(closeJobAlertModal());
|
|
77622
77659
|
}, re = () => {
|