@scalant/career-hub 7.4.1 → 7.4.2

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.
@@ -55231,6 +55231,11 @@ const useApplicationFormContext = () => {
55231
55231
  diversity: () => "Female Candidates Only",
55232
55232
  experience: ({ minExperience: C, maxExperience: $ }) => getExperienceText(C, $),
55233
55233
  notice_period: ({ preferredNoticePeriod: C }) => `${getNoticePeriodText(C)} Notice Period`
55234
+ }, ADDITIONAL_ELIGIBILITY_MAPPING_INELIGIBLE_REASONS = {
55235
+ experience: "Unfortunately! Your profile does not have the relevant years of experience for this role",
55236
+ notice_period: "Unfortunately! Your notice period is not compatible with the notice period required for this role",
55237
+ placed_mentee: "You are ineligible to apply to this job since the CTC offered is less than 1.6x CTC of your previous accepted job offer",
55238
+ diversity: "Unfortunately! Your gender does not match the gender criteria for this role"
55234
55239
  }, STATUS_MAP = {
55235
55240
  eligible: "Eligible",
55236
55241
  ineligible: "Ineligible"
@@ -76187,11 +76192,16 @@ const JobApplicationForm = ({
76187
76192
  exception,
76188
76193
  exceptionItem,
76189
76194
  exceptionsList
76195
+ }, InEligibleReason = () => {
76196
+ const { jobData: C } = useJobPreview(), { eligibilityCriteria: $ } = C || {}, { reasons: V } = $ || {}, F = V == null ? void 0 : V.find(
76197
+ (J) => J.label !== "skills" && J.showText && !J.isEligible
76198
+ ), K = ADDITIONAL_ELIGIBILITY_MAPPING_INELIGIBLE_REASONS[F == null ? void 0 : F.label];
76199
+ return K ? /* @__PURE__ */ React__default.createElement("div", { className: classNames(styles$g.actionAlert, styles$g.ineligible) }, /* @__PURE__ */ React__default.createElement(ExclamationCircleOutlined$1, null), /* @__PURE__ */ React__default.createElement("span", { className: styles$g.actionAlertTitle }, K)) : null;
76190
76200
  }, ActionAlert = ({ eligibilityStatus: C, metric: $, onScrollToEnd: V }) => {
76191
76201
  const { analytics: F, setActiveTab: K } = useJobPreview(), J = () => {
76192
76202
  K(JOB_BODY_TABS.REQUIREMENTS.key), V(), F == null || F.click("Job Highlights - Complete Tasks", PRODUCT_NAME);
76193
76203
  };
76194
- return C === ELIGIBILITY_TYPES.ineligible ? /* @__PURE__ */ React__default.createElement("div", { className: classNames(styles$g.actionAlert, styles$g.ineligible) }, /* @__PURE__ */ React__default.createElement(ExclamationCircleOutlined$1, null), /* @__PURE__ */ React__default.createElement("span", { className: styles$g.actionAlertTitle }, "Unfortunately! Your profile does not have the relevant years of experience for this role")) : C === ELIGIBILITY_TYPES.steps_to_apply ? /* @__PURE__ */ React__default.createElement(
76204
+ return C === ELIGIBILITY_TYPES.ineligible ? /* @__PURE__ */ React__default.createElement(InEligibleReason, null) : C === ELIGIBILITY_TYPES.steps_to_apply ? /* @__PURE__ */ React__default.createElement(
76195
76205
  ActionBanner,
76196
76206
  {
76197
76207
  icon: /* @__PURE__ */ React__default.createElement(ClockCircleTwoTone$1, { className: styles$g.actionAlertIcon }),
@@ -78016,7 +78026,7 @@ const { Text } = Typography$1, STORAGE_KEY_PREFIX = "CAREERS_HUB_JOBS_V2_FEEDBAC
78016
78026
  TIME_SPENT: `${STORAGE_KEY_PREFIX}#feedback_time_spent`,
78017
78027
  SUBMITTED: `${STORAGE_KEY_PREFIX}#feedback_submitted`,
78018
78028
  SHOWN_COUNT: `${STORAGE_KEY_PREFIX}#feedback_shown_count`
78019
- }, TIME_THRESHOLD = 1 * 60, MAX_SHOW_COUNT = 3, Feedback = ({ analytics: C }) => {
78029
+ }, TIME_THRESHOLD = 7.5 * 60, MAX_SHOW_COUNT = 3, Feedback = ({ analytics: C }) => {
78020
78030
  const [$, V] = useState(!1), F = useRef(null), K = useRef(Date.now()), J = useRef(!1), ee = useRef(!1);
78021
78031
  useEffect(() => {
78022
78032
  const re = parseInt(
@@ -78082,7 +78092,8 @@ const { Text } = Typography$1, STORAGE_KEY_PREFIX = "CAREERS_HUB_JOBS_V2_FEEDBAC
78082
78092
  href: "https://www.google.com",
78083
78093
  target: "_blank"
78084
78094
  },
78085
- onOk: ne
78095
+ onOk: ne,
78096
+ centered: !0
78086
78097
  },
78087
78098
  /* @__PURE__ */ React__default.createElement(Text, null, "We recently made some changes to the careers hub and would love to hear your feedback!")
78088
78099
  );