@scalant/career-hub 3.14.0-alpha.0 → 3.14.1-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.
@@ -50271,7 +50271,7 @@ const JOB_CARD_CONFIG = {
50271
50271
  applications: 0,
50272
50272
  saved: 0,
50273
50273
  archived: 0
50274
- }, HYDRATION_KEY = "__CAREERS_HUB__", MAX_RESUMES = 5, getCurrentSortingValue = (C = []) => {
50274
+ }, HYDRATION_KEY = "__CAREERS_HUB__", getCurrentSortingValue = (C = []) => {
50275
50275
  if (!C || C.length === 0)
50276
50276
  return "eligibility";
50277
50277
  const $ = C[0];
@@ -73571,28 +73571,19 @@ function ResumePreview() {
73571
73571
  );
73572
73572
  }
73573
73573
  function ResumeChoiceSelect() {
73574
- const { setSelectedResume: C, onAddResume: $ } = useApplicationFormContext(), { jobProfileId: F } = useApplicationFormContext(), { data: V, isLoading: K } = useGetResumesEligibilityQuery({ jobProfileId: F });
73574
+ const { setSelectedResume: C } = useApplicationFormContext(), { jobProfileId: $ } = useApplicationFormContext(), { data: F, isLoading: V } = useGetResumesEligibilityQuery({ jobProfileId: $ });
73575
73575
  return useEffect(() => {
73576
- var ee, te;
73577
- if (!V)
73576
+ var J, ee;
73577
+ if (!F)
73578
73578
  return;
73579
- const J = (te = (ee = Object.values(V).find(
73580
- (ne) => {
73581
- var re;
73582
- return ((re = ne == null ? void 0 : ne.resume_details) == null ? void 0 : re.default) && !(ne != null && ne.is_blocker);
73583
- }
73584
- )) == null ? void 0 : ee.resume_details) == null ? void 0 : te.id;
73585
- C(J);
73586
- }, [V, C]), K || !V ? /* @__PURE__ */ React__default.createElement(Skeleton$1, { active: !0 }) : /* @__PURE__ */ React__default.createElement(Flex$1, { className: styles$j.container }, /* @__PURE__ */ React__default.createElement(Flex$1, { flex: 1, vertical: !0, gap: 16 }, Object.entries(V).map(([J, ee]) => /* @__PURE__ */ React__default.createElement(ResumeChoiceOptionLabel, { key: J, value: ee })), Object.keys(V).length < MAX_RESUMES && /* @__PURE__ */ React__default.createElement(
73587
- Button$2,
73588
- {
73589
- type: "link",
73590
- onClick: $,
73591
- className: styles$j.createNewResumeButton
73592
- },
73593
- /* @__PURE__ */ React__default.createElement(PlusOutlined$1, null),
73594
- "Create New Resume"
73595
- )), /* @__PURE__ */ React__default.createElement(Flex$1, { className: styles$j.resumePreviewContainer, flex: 1 }, /* @__PURE__ */ React__default.createElement(ResumePreview, null)));
73579
+ const K = (ee = (J = Object.values(F).find(
73580
+ (te) => {
73581
+ var ne;
73582
+ return ((ne = te == null ? void 0 : te.resume_details) == null ? void 0 : ne.default) && !(te != null && te.is_blocker);
73583
+ }
73584
+ )) == null ? void 0 : J.resume_details) == null ? void 0 : ee.id;
73585
+ C(K);
73586
+ }, [F, C]), V || !F ? /* @__PURE__ */ React__default.createElement(Skeleton$1, { active: !0 }) : /* @__PURE__ */ React__default.createElement(Flex$1, { className: styles$j.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$j.resumePreviewContainer, flex: 1 }, /* @__PURE__ */ React__default.createElement(ResumePreview, null)));
73596
73587
  }
73597
73588
  const screeningCallService = careerHubApi.injectEndpoints({
73598
73589
  endpoints: (C) => ({