@scalant/career-hub 4.0.1-alpha.0 → 4.0.3-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.
@@ -52538,7 +52538,11 @@ const metaDataReducer = metaDataSlice.reducer, initialState$2 = {
52538
52538
  C.savedJobs = {};
52539
52539
  }
52540
52540
  }
52541
- }), { setJobSavedStatus, initializeSavedJobs, clearSavedJobs } = savedJobsSlice.actions, savedJobsReducer = savedJobsSlice.reducer, initialState = {
52541
+ }), { setJobSavedStatus, initializeSavedJobs, clearSavedJobs } = savedJobsSlice.actions, savedJobsReducer = savedJobsSlice.reducer;
52542
+ function isNullOrUndefined(C) {
52543
+ return C == null;
52544
+ }
52545
+ const initialState = {
52542
52546
  fitmentScore: {},
52543
52547
  activeResumeId: null,
52544
52548
  activeResumeName: null,
@@ -52552,7 +52556,7 @@ const metaDataReducer = metaDataSlice.reducer, initialState$2 = {
52552
52556
  setFitmentScore: (C, $) => {
52553
52557
  var ee, te, ne, re;
52554
52558
  const F = (ee = $.payload) == null ? void 0 : ee.job_profile_id, V = (te = $.payload) == null ? void 0 : te.user_resume_id, K = (ne = $.payload) == null ? void 0 : ne.score, J = (re = $.payload) == null ? void 0 : re.remarks;
52555
- F && V && K && (C.fitmentScore[F] = hr(Hn({}, C.fitmentScore[F]), {
52559
+ F && V && !isNullOrUndefined(K) && (C.fitmentScore[F] = hr(Hn({}, C.fitmentScore[F]), {
52556
52560
  [V]: { score: K, remarks: J }
52557
52561
  }));
52558
52562
  },
@@ -73873,7 +73877,19 @@ pdfExports.GlobalWorkerOptions.workerSrc = "pdf.worker.js";
73873
73877
  const toDDMMYY = (C) => {
73874
73878
  const $ = new Date(C), F = String($.getMonth() + 1).padStart(2, "0"), V = String($.getDate()).padStart(2, "0"), K = $.getFullYear().toString().slice(2);
73875
73879
  return [V, F, K].join("/");
73876
- }, resumeService = careerHubApi.injectEndpoints({
73880
+ }, fitmentService = careerHubApi.injectEndpoints({
73881
+ endpoints: (C) => ({
73882
+ getFitment: C.query({
73883
+ query: ({ jobProfileId: $ }) => ({
73884
+ url: "/api/v3/user-resumes/job-fitment-evaluation",
73885
+ params: {
73886
+ job_profile_id: $
73887
+ },
73888
+ method: "POST"
73889
+ })
73890
+ })
73891
+ })
73892
+ }), { useGetFitmentQuery } = fitmentService, resumeService = careerHubApi.injectEndpoints({
73877
73893
  endpoints: (C) => ({
73878
73894
  getResumesEligibility: C.query({
73879
73895
  query: ({ jobProfileId: $ }) => ({
@@ -73915,7 +73931,7 @@ function FitmentScore({ score: C }) {
73915
73931
  }, F = "#FC910033"), Number(C) >= 80 && ($ = {
73916
73932
  "0%": "#03522D",
73917
73933
  "100%": "#22C477"
73918
- }, F = "#1A845233"), /* @__PURE__ */ React__default.createElement(Flex$1, { vertical: !0, gap: 4, className: styles$l.fitmentScore }, /* @__PURE__ */ React__default.createElement(Typography$1.Text, { className: styles$l.fitmentScoreTitle }, "Your Resume Fit Score:"), /* @__PURE__ */ React__default.createElement(
73934
+ }, F = "#1A845233"), isNullOrUndefined(C) ? null : /* @__PURE__ */ React__default.createElement(Flex$1, { vertical: !0, gap: 4, className: styles$l.fitmentScore }, /* @__PURE__ */ React__default.createElement(Typography$1.Text, { className: styles$l.fitmentScoreTitle }, "Your Resume Fit Score:"), /* @__PURE__ */ React__default.createElement(
73919
73935
  Progress$1,
73920
73936
  {
73921
73937
  size: ["default", 12],
@@ -74042,7 +74058,7 @@ function ResumePreview() {
74042
74058
  }
74043
74059
  function ResumeChoiceSelect() {
74044
74060
  const { setSelectedResume: C } = useApplicationFormContext(), { jobProfileId: $ } = useApplicationFormContext(), { data: F, isLoading: V } = useGetResumesEligibilityQuery({ jobProfileId: $ });
74045
- return useEffect(() => {
74061
+ return useGetFitmentQuery({ jobProfileId: $ }, { skip: !$ }), useEffect(() => {
74046
74062
  var J, ee;
74047
74063
  if (!F)
74048
74064
  return;
@@ -74055,24 +74071,12 @@ function ResumeChoiceSelect() {
74055
74071
  C(K);
74056
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)));
74057
74073
  }
74058
- const fitmentService = careerHubApi.injectEndpoints({
74059
- endpoints: (C) => ({
74060
- getFitment: C.query({
74061
- query: ({ jobProfileId: $ }) => ({
74062
- url: "/api/v3/user-resumes/job-fitment-evaluation",
74063
- params: {
74064
- job_profile_id: $
74065
- },
74066
- method: "POST"
74067
- })
74068
- })
74069
- })
74070
- }), { useGetFitmentQuery } = fitmentService, container$3 = "_container_12d5d_1", icon = "_icon_12d5d_6", title$1 = "_title_12d5d_11", description$1 = "_description_12d5d_17", styles$k = {
74074
+ const container$3 = "_container_12d5d_1", icon = "_icon_12d5d_6", title$1 = "_title_12d5d_11", description$1 = "_description_12d5d_17", styles$k = {
74071
74075
  container: container$3,
74072
74076
  icon,
74073
74077
  title: title$1,
74074
74078
  description: description$1
74075
- }, EVALUATION_COMPLETION_TIMEOUT = 3e4;
74079
+ }, EVALUATION_COMPLETION_TIMEOUT = 6e4;
74076
74080
  function ResumeFitmentCheck() {
74077
74081
  const { jobProfileId: C, setStepName: $ } = useApplicationFormContext(), {
74078
74082
  // data,