@scalant/resume-builder 19.0.11 → 19.0.13
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/resume-builder.es.js +36 -26
- package/dist/resume-builder.umd.js +2 -2
- package/package.json +2 -2
|
@@ -62087,14 +62087,14 @@ const header$1 = "_header_1hji7_1", logo = "_logo_1hji7_15", left = "_left_1hji7
|
|
|
62087
62087
|
negotiable: "no"
|
|
62088
62088
|
}, useBasicQuestionsForm = (C, $ = [], F = null) => {
|
|
62089
62089
|
const V = useDispatch(), K = useSelector(
|
|
62090
|
-
(
|
|
62091
|
-
), J = useMemo$1(() => {
|
|
62092
|
-
var
|
|
62090
|
+
(te) => te.scalantResumeBuilder.formStore.initializedForms[FORM_ID]
|
|
62091
|
+
), J = useRef(!1), ee = useMemo$1(() => {
|
|
62092
|
+
var ne, ae, oe;
|
|
62093
62093
|
if (!C)
|
|
62094
62094
|
return initialFormData;
|
|
62095
|
-
const
|
|
62096
|
-
(
|
|
62097
|
-
),
|
|
62095
|
+
const te = $.some(
|
|
62096
|
+
(ie) => ie.value === (C == null ? void 0 : C.job_title)
|
|
62097
|
+
), re = {
|
|
62098
62098
|
totalWorkExperience: {
|
|
62099
62099
|
yearsExperience: Math.floor((C == null ? void 0 : C.total_experience) / 12),
|
|
62100
62100
|
monthsExperience: (C == null ? void 0 : C.total_experience) % 12
|
|
@@ -62103,23 +62103,30 @@ const header$1 = "_header_1hji7_1", logo = "_logo_1hji7_15", left = "_left_1hji7
|
|
|
62103
62103
|
yearsExperienceInTech: Math.floor((C == null ? void 0 : C.experience) / 12),
|
|
62104
62104
|
monthsExperienceInTech: (C == null ? void 0 : C.experience) % 12
|
|
62105
62105
|
},
|
|
62106
|
-
currentJobRole:
|
|
62106
|
+
currentJobRole: te ? C == null ? void 0 : C.job_title : ""
|
|
62107
62107
|
};
|
|
62108
|
-
return F ? Rr(ar({},
|
|
62109
|
-
currentCtc: (
|
|
62110
|
-
expectedCtc: (
|
|
62111
|
-
notice: (
|
|
62108
|
+
return F ? Rr(ar({}, re), {
|
|
62109
|
+
currentCtc: (ne = F == null ? void 0 : F.current_ctc) != null ? ne : "",
|
|
62110
|
+
expectedCtc: (ae = F == null ? void 0 : F.expected_ctc) != null ? ae : "",
|
|
62111
|
+
notice: (oe = F == null ? void 0 : F.notice_period) != null ? oe : "",
|
|
62112
62112
|
negotiable: F != null && F.buyout_notice ? "yes" : "no"
|
|
62113
|
-
}) : ar(ar({}, initialFormData),
|
|
62113
|
+
}) : ar(ar({}, initialFormData), re);
|
|
62114
62114
|
}, [C, $, F]);
|
|
62115
62115
|
return useEffect(() => {
|
|
62116
|
-
|
|
62116
|
+
const te = !!(C || F);
|
|
62117
|
+
(!K || te && !J.current) && (te && (J.current = !0), V(
|
|
62117
62118
|
initializeForm({
|
|
62118
62119
|
formId: FORM_ID,
|
|
62119
|
-
initialData:
|
|
62120
|
+
initialData: ee
|
|
62120
62121
|
})
|
|
62121
|
-
);
|
|
62122
|
-
}, [
|
|
62122
|
+
));
|
|
62123
|
+
}, [
|
|
62124
|
+
V,
|
|
62125
|
+
K,
|
|
62126
|
+
ee,
|
|
62127
|
+
C,
|
|
62128
|
+
F
|
|
62129
|
+
]), { initialValues: ee, FORM_ID };
|
|
62123
62130
|
}, { Text: Text$4 } = Typography, getJobRoles = (C) => PROGRAM_JOB_ROLES[C] || [], ResumeBasicQuestions = ({ isLastStep: C = !1 }) => {
|
|
62124
62131
|
const $ = useDispatch(), [F] = Form.useForm(), [V, K] = useState(null), J = useSelector(
|
|
62125
62132
|
(he) => he.scalantResumeBuilder.resumeBuilder.resumeData
|
|
@@ -83449,31 +83456,34 @@ const initialState$1 = {
|
|
|
83449
83456
|
pdfExports.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfExports.version}/pdf.worker.min.js`;
|
|
83450
83457
|
const MAX_RETRY_COUNT = 6;
|
|
83451
83458
|
function Preview({ resumeId: C }) {
|
|
83452
|
-
const [$, F] = useState(0), { data:
|
|
83459
|
+
const [$, F] = useState(0), [V, K] = useState(null), { data: J, isFetching: ee } = useGetResumeLinkQuery(
|
|
83453
83460
|
{ resumeId: C },
|
|
83454
83461
|
{ skip: !C }
|
|
83455
|
-
),
|
|
83462
|
+
), te = useAnalytics(), re = ({ numPages: ae }) => {
|
|
83463
|
+
K(ae);
|
|
83464
|
+
};
|
|
83456
83465
|
useEffect(() => {
|
|
83457
|
-
|
|
83466
|
+
te && C && (J != null && J.link) && !ee && te.view("Resume Repository - Preview Render", PRODUCT_NAME, {
|
|
83458
83467
|
resumeId: C
|
|
83459
83468
|
});
|
|
83460
|
-
}, [
|
|
83461
|
-
const
|
|
83469
|
+
}, [te, C, J == null ? void 0 : J.link, ee]);
|
|
83470
|
+
const ne = (ae) => {
|
|
83462
83471
|
$ < MAX_RETRY_COUNT ? setTimeout(() => {
|
|
83463
83472
|
F($ + 1);
|
|
83464
|
-
}, 1e3) : console.error("Error while loading pdf! ",
|
|
83473
|
+
}, 1e3) : console.error("Error while loading pdf! ", ae.message);
|
|
83465
83474
|
};
|
|
83466
|
-
return !(
|
|
83475
|
+
return !(J != null && J.link) || ee ? /* @__PURE__ */ React__default.createElement(Skeleton, { active: !0 }) : /* @__PURE__ */ React__default.createElement(
|
|
83467
83476
|
Document$1,
|
|
83468
83477
|
{
|
|
83469
83478
|
className: styles.resumePreview,
|
|
83470
|
-
file:
|
|
83479
|
+
file: J == null ? void 0 : J.link,
|
|
83471
83480
|
loading: /* @__PURE__ */ React__default.createElement(Skeleton, { active: !0 }),
|
|
83472
|
-
|
|
83481
|
+
onLoadSuccess: re,
|
|
83482
|
+
onLoadError: ne,
|
|
83473
83483
|
error: /* @__PURE__ */ React__default.createElement(Skeleton, { active: !0 }),
|
|
83474
83484
|
key: $
|
|
83475
83485
|
},
|
|
83476
|
-
/* @__PURE__ */ React__default.createElement(Page$1, { pageNumber: 1 })
|
|
83486
|
+
V && Array.from({ length: V }, (ae, oe) => /* @__PURE__ */ React__default.createElement(Page$1, { key: oe, pageNumber: oe + 1 }))
|
|
83477
83487
|
);
|
|
83478
83488
|
}
|
|
83479
83489
|
const toDDMMYY = (C) => {
|