@scalant/career-hub 7.4.2 → 7.4.4

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.
@@ -55227,7 +55227,6 @@ const useApplicationFormContext = () => {
55227
55227
  const J = `${Math.floor($ / 12)}y`, ee = $ % 12 === 0 ? "" : `${$ % 12}m`;
55228
55228
  return `${K} - ${J} ${ee} Experience`;
55229
55229
  }, getNoticePeriodText = (C) => C === 0 ? "Immediate" : C == null ? "NA" : `${C} days`, ADDITIONAL_ELIGIBILITY_MAPPING = {
55230
- placed_mentee: () => "CTC greater than 1.6x of current offer",
55231
55230
  diversity: () => "Female Candidates Only",
55232
55231
  experience: ({ minExperience: C, maxExperience: $ }) => getExperienceText(C, $),
55233
55232
  notice_period: ({ preferredNoticePeriod: C }) => `${getNoticePeriodText(C)} Notice Period`
@@ -55258,7 +55257,7 @@ const useApplicationFormContext = () => {
55258
55257
  );
55259
55258
  if (!F)
55260
55259
  return null;
55261
- const K = F.map((J) => {
55260
+ const K = F.filter((J) => ADDITIONAL_ELIGIBILITY_MAPPING[J.label]).map((J) => {
55262
55261
  const ee = J.isEligible ? STATUS_MAP.eligible : STATUS_MAP.ineligible;
55263
55262
  return {
55264
55263
  requirement: toTitleCase(J.label),
@@ -78022,38 +78021,40 @@ function JobAlertModal({ analytics: C }) {
78022
78021
  )
78023
78022
  );
78024
78023
  }
78025
- const { Text } = Typography$1, STORAGE_KEY_PREFIX = "CAREERS_HUB_JOBS_V2_FEEDBACK", STORAGE_KEYS = {
78024
+ const { Text } = Typography$1, FEEDBACK_URL = "https://interviewbit.typeform.com/to/LONfH7DT", STORAGE_KEY_PREFIX = "CAREERS_HUB_JOBS_V2_FEEDBACK", STORAGE_KEYS = {
78026
78025
  TIME_SPENT: `${STORAGE_KEY_PREFIX}#feedback_time_spent`,
78027
78026
  SUBMITTED: `${STORAGE_KEY_PREFIX}#feedback_submitted`,
78028
78027
  SHOWN_COUNT: `${STORAGE_KEY_PREFIX}#feedback_shown_count`
78029
78028
  }, TIME_THRESHOLD = 7.5 * 60, MAX_SHOW_COUNT = 3, Feedback = ({ analytics: C }) => {
78030
- const [$, V] = useState(!1), F = useRef(null), K = useRef(Date.now()), J = useRef(!1), ee = useRef(!1);
78029
+ const [$, V] = useState(!1), F = useRef(null), K = useRef(Date.now()), J = useRef(!1), ee = useRef(!1), te = useSelector(
78030
+ (oe) => oe.scalantCareerHub.dashboard.userProfileData
78031
+ ), { email: ne } = te || {};
78031
78032
  useEffect(() => {
78032
- const re = parseInt(
78033
+ const oe = parseInt(
78033
78034
  localStorage.getItem(STORAGE_KEYS.TIME_SPENT) || "0",
78034
78035
  10
78035
- ), ae = localStorage.getItem(STORAGE_KEYS.SUBMITTED) === "true", oe = parseInt(
78036
+ ), ie = localStorage.getItem(STORAGE_KEYS.SUBMITTED) === "true", le = parseInt(
78036
78037
  localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT) || "0",
78037
78038
  10
78038
78039
  );
78039
- ae || oe >= MAX_SHOW_COUNT || re >= TIME_THRESHOLD && (V(!0), ee.current = !0, localStorage.setItem(STORAGE_KEYS.SHOWN_COUNT, String(oe + 1)), C == null || C.click("Feedback - Auto Open Feedback Modal", PRODUCT_NAME));
78040
+ ie || le >= MAX_SHOW_COUNT || oe >= TIME_THRESHOLD && (V(!0), ee.current = !0, localStorage.setItem(STORAGE_KEYS.SHOWN_COUNT, String(le + 1)), C == null || C.click("Feedback - Auto Open Feedback Modal", PRODUCT_NAME));
78040
78041
  }, [C]), useEffect(() => {
78041
- const re = localStorage.getItem(STORAGE_KEYS.SUBMITTED) === "true", ae = parseInt(
78042
+ const oe = localStorage.getItem(STORAGE_KEYS.SUBMITTED) === "true", ie = parseInt(
78042
78043
  localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT) || "0",
78043
78044
  10
78044
78045
  );
78045
- if (!(re || ae >= MAX_SHOW_COUNT))
78046
+ if (!(oe || ie >= MAX_SHOW_COUNT))
78046
78047
  return K.current = Date.now(), F.current = setInterval(() => {
78047
- const ie = parseInt(
78048
+ const ce = parseInt(
78048
78049
  localStorage.getItem(STORAGE_KEYS.TIME_SPENT) || "0",
78049
78050
  10
78050
- ) + 1, le = parseInt(
78051
+ ) + 1, ue = parseInt(
78051
78052
  localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT) || "0",
78052
78053
  10
78053
78054
  );
78054
- localStorage.setItem(STORAGE_KEYS.TIME_SPENT, String(ie)), ie >= TIME_THRESHOLD && !ee.current && !J.current && le < MAX_SHOW_COUNT && (V(!0), ee.current = !0, localStorage.setItem(
78055
+ localStorage.setItem(STORAGE_KEYS.TIME_SPENT, String(ce)), ce >= TIME_THRESHOLD && !ee.current && !J.current && ue < MAX_SHOW_COUNT && (V(!0), ee.current = !0, localStorage.setItem(
78055
78056
  STORAGE_KEYS.SHOWN_COUNT,
78056
- String(le + 1)
78057
+ String(ue + 1)
78057
78058
  ), C == null || C.click(
78058
78059
  "Feedback - Auto Open Feedback Modal - Interval",
78059
78060
  PRODUCT_NAME
@@ -78061,23 +78062,23 @@ const { Text } = Typography$1, STORAGE_KEY_PREFIX = "CAREERS_HUB_JOBS_V2_FEEDBAC
78061
78062
  }, 1e3), () => {
78062
78063
  if (F.current) {
78063
78064
  clearInterval(F.current);
78064
- const oe = Math.floor((Date.now() - K.current) / 1e3);
78065
- if (oe > 0) {
78066
- const ie = parseInt(
78065
+ const le = Math.floor((Date.now() - K.current) / 1e3);
78066
+ if (le > 0) {
78067
+ const ce = parseInt(
78067
78068
  localStorage.getItem(STORAGE_KEYS.TIME_SPENT) || "0",
78068
78069
  10
78069
78070
  );
78070
78071
  localStorage.setItem(
78071
78072
  STORAGE_KEYS.TIME_SPENT,
78072
- String(ie + oe)
78073
+ String(ce + le)
78073
78074
  );
78074
78075
  }
78075
78076
  }
78076
78077
  };
78077
78078
  }, [C]);
78078
- const te = () => {
78079
+ const re = () => {
78079
78080
  V(!1), J.current = !0, C == null || C.click("Feedback - Cancel Feedback", PRODUCT_NAME);
78080
- }, ne = () => {
78081
+ }, ae = () => {
78081
78082
  localStorage.setItem(STORAGE_KEYS.SUBMITTED, "true"), V(!1), C == null || C.click("Feedback - Submit Feedback", PRODUCT_NAME);
78082
78083
  };
78083
78084
  return /* @__PURE__ */ React__default.createElement(
@@ -78085,14 +78086,14 @@ const { Text } = Typography$1, STORAGE_KEY_PREFIX = "CAREERS_HUB_JOBS_V2_FEEDBAC
78085
78086
  {
78086
78087
  title: /* @__PURE__ */ React__default.createElement(Flex$1, { align: "center", gap: 8 }, /* @__PURE__ */ React__default.createElement(SmileTwoTone$1, null), /* @__PURE__ */ React__default.createElement(Text, null, "Your feedback is important to us!")),
78087
78088
  open: $,
78088
- onCancel: te,
78089
+ onCancel: re,
78089
78090
  cancelText: "Go Back",
78090
78091
  okText: "Submit Feedback",
78091
78092
  okButtonProps: {
78092
- href: "https://www.google.com",
78093
+ href: `${FEEDBACK_URL}#email=${ne}`,
78093
78094
  target: "_blank"
78094
78095
  },
78095
- onOk: ne,
78096
+ onOk: ae,
78096
78097
  centered: !0
78097
78098
  },
78098
78099
  /* @__PURE__ */ React__default.createElement(Text, null, "We recently made some changes to the careers hub and would love to hear your feedback!")