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B,WAAW,KACrBzgB,EAAUA,EAAQoa,MAAM,IAEnBpa,K","sources":["webpack://StravaModern/./node_modules/@strava/react-hooks/src/use-window-scroll-top/useWindowScrollTop.hook.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/ui/clsx/clsx.ts","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/state/FrontDoorsPageContainerContext.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/ui/StravaLogo/StravaLogo.tsx","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/ui/Button/styles.module.scss?ddea","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/ui/Button/Button.tsx","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/ui/Button/LinkButton.tsx","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/components/DesktopNav/DesktopNav.module.scss?1042","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/IconButton/IconButton.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/shared/pageUtils.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/components/DesktopNav/DesktopNav.js","webpack://StravaModern/../src/observe.ts","webpack://StravaModern/../src/InView.tsx","webpack://StravaModern/./node_modules/@strava/smart-banner-ui/node_modules/@strava/ui/Button/styles.module.scss?db9d","webpack://StravaModern/./node_modules/@strava/smart-banner-ui/node_modules/@strava/ui/Button/Button.tsx","webpack://StravaModern/./node_modules/@strava/smart-banner-ui/node_modules/@strava/ui/Button/LinkButton.tsx","webpack://StravaModern/./node_modules/@strava/smart-banner-ui/node_modules/@strava/ui/clsx/clsx.ts","webpack://StravaModern/./node_modules/@strava/smart-banner-ui/node_modules/@strava/icons/dist/ActionsCancelNormalXsmall.js","webpack://StravaModern/./node_modules/@strava/smart-banner-ui/SmartBanner.module.scss?b4e9","webpack://StravaModern/./node_modules/@strava/smart-banner-ui/SmartBanner.js","webpack://StravaModern/../src/useInView.tsx","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/CallToAction/CallToAction.module.scss?5e00","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/CallToAction/CallToAction.js","webpack://StravaModern/./node_modules/react-modern-drawer/dist/index.modern.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/components/MobileNav/components/MenuDrawer/MenuDrawer.module.scss?36bf","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/components/MobileNav/components/MenuDrawer/MenuDrawer.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/components/MobileNav/components/MenuIcon/MenuIcon.module.scss?d1f8","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/components/MobileNav/components/MenuIcon/MenuIcon.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/components/MobileNav/MobileNav.module.scss?e3fc","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/components/MobileNav/MobileNav.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/Header.module.scss?a94b","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Header/Header.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/ui/clsx/clsx.ts","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/icons/dist/ActionsCancelNormalXsmall.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/ui/Button/styles.module.scss?7856","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/ui/Button/Button.tsx","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/ui/Modal/Modal.module.scss?5143","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/ui/Modal/Modal.tsx","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/ui/Button/LinkButton.tsx","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/api/lib/base-url-staging.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/api/lib/base-url.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/api/lib/axios-client.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/api/lib/csrf.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/constants/src/httpStatusCodes.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/constants/src/followingConstants.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/api/microfrontends/athlete/athlete.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/react-hooks/src/use-safe-state/useSafeState.hook.ts","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/node_modules/@strava/constants/src/appConstants.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/lodash-es/isNil.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/src/components/CPRAComplianceModal/CPRAComplianceModal.module.scss?5b4f","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/src/components/CPRAComplianceModal/CPRAComplianceModal.tsx","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/src/CPRAComplianceCTA.module.scss?0c64","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/@strava/cpra-compliance-cta/src/CPRAComplianceCTA.tsx","webpack://StravaModern/./node_modules/@strava/react-hooks/src/use-localized-images/constants.js","webpack://StravaModern/./node_modules/@strava/react-hooks/src/use-localized-images/helpers.js","webpack://StravaModern/./node_modules/@strava/react-hooks/src/use-localized-images/useLocalizedImages.hook.js","webpack://StravaModern/./node_modules/@strava/shared-ui/src/AppStoreBadges/components/Badge/Badge.js","webpack://StravaModern/./node_modules/@strava/shared-ui/src/AppStoreBadges/constants.js","webpack://StravaModern/./node_modules/@strava/shared-ui/node_modules/@strava/constants/src/appConstants.js","webpack://StravaModern/./node_modules/@strava/shared-ui/src/AppStoreBadges/AppStoreBadges.js","webpack://StravaModern/./node_modules/@strava/shared-ui/src/AppStoreBadges/helpers.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Footer/components/SocialLink/SocialLink.module.scss?d34c","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Footer/components/SocialLink/SocialLink.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Footer/Footer.module.scss?33d7","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/components/Footer/Footer.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/state/FrontDoorsPageContainer.actions.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/state/FrontDoorsPageContainer.reducer.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/constants/themes.ts","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/FrontDoorsPageContainer.module.scss?3c7e","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/FrontDoorsPageContainer.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/helpers/getDefaultEventHandlers.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/index.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/adapters/xhr.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/axios.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/cancel/Cancel.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/cancel/CancelToken.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/cancel/isCancel.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/Axios.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/InterceptorManager.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/buildFullPath.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/createError.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/dispatchRequest.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/enhanceError.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/mergeConfig.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/settle.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/core/transformData.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/defaults.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/bind.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/buildURL.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/combineURLs.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/cookies.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/isAxiosError.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/parseHeaders.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/spread.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/helpers/validator.js","webpack://StravaModern/./node_modules/@strava/front-doors-page-container-ui/node_modules/axios/lib/utils.js"],"sourcesContent":["import { useState, useEffect, useCallback } from 'react';\n\nexport const useWindowScrollTop = () => {\n const [windowScrollTop, setWindowScrollTop] = useState(0);\n\n const onScroll = useCallback(() => {\n setWindowScrollTop(window.scrollY);\n }, []);\n\n useEffect(() => {\n window?.addEventListener('scroll', onScroll);\n return () => {\n window?.removeEventListener('scroll', onScroll);\n };\n }, [onScroll]);\n\n return [windowScrollTop, onScroll];\n};\n\nexport default useWindowScrollTop;\n","type Value = string | number | boolean | undefined | null;\ntype MixObject = {\n [key: string]: boolean | Mix | undefined | null;\n};\ntype MixArray = Array;\ntype Mix = Value | MixObject | MixArray;\n\nfunction toVal(mix: Mix): string {\n let k,\n y,\n str = '';\n\n if (typeof mix === 'string' || typeof mix === 'number') {\n str += mix;\n } else if (typeof mix === 'object') {\n if (Array.isArray(mix)) {\n for (k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if ((y = toVal(mix[k]))) {\n str && (str += ' ');\n str += y;\n }\n }\n }\n } else {\n for (k in mix) {\n if (!mix || mix[k]) {\n str && (str += ' ');\n str += k;\n }\n }\n }\n }\n\n return str;\n}\n\nexport function clsx(..._args: Mix[]): string {\n let i = 0,\n tmp,\n x,\n str = '';\n\n while (i < arguments.length) {\n if ((tmp = arguments[i++])) {\n if ((x = toVal(tmp))) {\n str && (str += ' ');\n str += x;\n }\n }\n }\n return str;\n}\n\nexport default clsx;\n","import React, { createContext, useContext } from 'react';\n\nconst FrontDoorsPageContainerContext = createContext();\nFrontDoorsPageContainerContext.displayName = 'FrontDoorsPageContainerContext';\n\nexport const useFrontDoorsPageContainerContext = () => {\n const context = useContext(FrontDoorsPageContainerContext);\n if (!context) {\n throw new Error(\n 'useFrontDoorsPageContainerContext must be used within the FrontDoorsPageContainerContext.Provider'\n );\n }\n return context;\n};\n\nexport const FrontDoorsPageContainerContextProvider = (props) => (\n \n);\n\nexport default FrontDoorsPageContainerContext;\n","import React from 'react';\nimport { color } from '@strava/ui-tokens/js';\nimport clsx from '../clsx';\n\nexport interface StravaLogoProps {\n id?: string;\n alt?: string;\n className?: string;\n width?: string | number;\n height?: string | number;\n fill?: string;\n style?: React.CSSProperties;\n}\n\nfunction StravaLogo({\n className,\n id = 'stravalogo',\n alt = 'Strava',\n width = 'auto',\n height = 'auto',\n fill = color.colorCoreO3,\n style,\n ...props\n}: StravaLogoProps) {\n return (\n \n {alt}\n \n \n );\n}\n\nexport default StravaLogo;\n","// extracted by mini-css-extract-plugin\nexport default {\"btn\":\"Button--btn--uCOMP\",\"default\":\"Button--default--LDTwy\",\"primary\":\"Button--primary--uxskA\",\"primaryOutline\":\"Button--primaryOutline--Igbur\",\"secondary\":\"Button--secondary--KXL9Y\",\"icon\":\"Button--icon--tz2va\",\"text\":\"Button--text--y7f7I\"};","import React from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.module.scss';\n\nexport type ButtonVariant =\n | 'default'\n | 'text'\n | 'icon'\n | 'primaryOutline'\n | 'primary'\n | 'secondary'\n | undefined;\n\nexport interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {\n children: React.ReactNode;\n variant?: ButtonVariant;\n className?: string;\n}\n\nconst Button = React.forwardRef(\n ({ children, className, variant = 'default', ...props }, ref) => (\n \n {children}\n \n )\n);\n\nexport default Button;\n","import clsx from 'clsx';\nimport React, { ComponentPropsWithoutRef, forwardRef } from 'react';\n\nimport styles from './styles.module.scss';\nimport { ButtonProps } from './Button';\n\nexport type LinkButtonProps = ButtonProps & ComponentPropsWithoutRef<'a'>;\n\nconst LinkButton = forwardRef(\n ({ href, children, className, variant = 'default', ...otherProps }, ref) => {\n return (\n \n {children}\n \n );\n }\n);\n\nexport default LinkButton;\n","// extracted by mini-css-extract-plugin\nexport default {\"dark\":\"DesktopNav--dark--MWTP-\",\"light\":\"DesktopNav--light--D-XPx\",\"container\":\"DesktopNav--container--c+Nru\",\"logoAndLinks\":\"DesktopNav--logoAndLinks--Hrn2Y\",\"navLinks\":\"DesktopNav--navLinks--bGpYY\",\"loginBtn\":\"DesktopNav--loginBtn--mOl73\",\"signupBtn\":\"DesktopNav--signupBtn--eUI6+\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '@strava/ui/Button';\n\nconst IconButton = ({\n children,\n onClick,\n ariaLabel,\n className,\n ...options\n}) => {\n return (\n \n {children}\n \n );\n};\n\nIconButton.defaultProps = {\n className: null\n};\n\nIconButton.propTypes = {\n children: PropTypes.node.isRequired,\n onClick: PropTypes.func.isRequired,\n ariaLabel: PropTypes.string.isRequired,\n className: PropTypes.string\n};\n\nexport default IconButton;\n","import { EXPERIMENT_COHORTS } from '@strava/constants';\n\nexport const isNavSignUpVariantA = (experiment) =>\n experiment?.name === 'logged-out-navigation-signup-modals' &&\n experiment?.cohort === EXPERIMENT_COHORTS.variantA;\n\nexport default { isNavSignUpVariantA };\n","import React, { useMemo } from 'react';\nimport { useStravaExperiment } from '@strava/container-context';\nimport StravaLogo from '@strava/ui/StravaLogo';\nimport Button from '@strava/ui/Button';\nimport { useSignUpModalContext } from '@strava/authentication-ui';\nimport { useFrontDoorsPageContainerContext } from '../../../../state/FrontDoorsPageContainerContext';\nimport styles from './DesktopNav.module.scss';\nimport IconButton from '../../../IconButton';\nimport { isNavSignUpVariantA } from '../../../../shared/pageUtils';\n\nconst DesktopNav = () => {\n const {\n t,\n state,\n track,\n onDesktopHeaderLoginBtnClick,\n onDesktopHeaderSignupBtnClick,\n onDesktopHeaderLogoClick\n } = useFrontDoorsPageContainerContext();\n const { openSignUpModal } = useSignUpModalContext();\n const { experiment } = useStravaExperiment();\n const { menuConfig } = state;\n const { showLoginOptionOnly } = menuConfig;\n\n const handleLoginBtnClick = () => {\n onDesktopHeaderLoginBtnClick();\n window.location.href = '/login';\n };\n\n const handleSignupBtnClick = () => {\n onDesktopHeaderSignupBtnClick();\n /**\n * [ACQN-1233] Add Signup Modal to Top Nav\n * TODO: delete this code once the experiment is over\n * https://strava.atlassian.net/wiki/spaces/TG/pages/2350186497/WIP+Add+Sign+up+Modal+to+Top+Nav\n */\n if (isNavSignUpVariantA(experiment)) {\n openSignUpModal('generic');\n } else {\n // control and fallback\n window.location.href = '/register';\n }\n };\n\n const handleLogoClick = () => {\n onDesktopHeaderLogoClick();\n window.location.href = '/';\n };\n\n const navLinks = useMemo(\n () => [\n {\n key: 'features',\n name: t('header.menu.features'),\n href: '/features'\n },\n {\n key: 'challenges',\n name: t('header.menu.challenges'),\n href: '/challenges'\n },\n {\n key: 'subscription',\n name: t('header.menu.subscription'),\n href: '/subscribe?origin=website_header'\n }\n ],\n [t]\n );\n\n const trackNavLink = (element) => {\n track({ action: 'click', element });\n };\n\n return (\n
\n
\n \n \n \n \n
\n
\n \n {t('header.log_in')}\n \n {!showLoginOptionOnly && (\n \n {t(`header.join_us`)}\n \n )}\n
\n
\n );\n};\n\nexport default DesktopNav;\n","import type { ObserverInstanceCallback } from \"./index\";\n\nconst observerMap = new Map<\n string,\n {\n id: string;\n observer: IntersectionObserver;\n elements: Map>;\n }\n>();\n\nconst RootIds: WeakMap = new WeakMap();\nlet rootId = 0;\n\nlet unsupportedValue: boolean | undefined = undefined;\n\n/**\n * What should be the default behavior if the IntersectionObserver is unsupported?\n * Ideally the polyfill has been loaded, you can have the following happen:\n * - `undefined`: Throw an error\n * - `true` or `false`: Set the `inView` value to this regardless of intersection state\n * **/\nexport function defaultFallbackInView(inView: boolean | undefined) {\n unsupportedValue = inView;\n}\n\n/**\n * Generate a unique ID for the root element\n * @param root\n */\nfunction getRootId(root: IntersectionObserverInit[\"root\"]) {\n if (!root) return \"0\";\n if (RootIds.has(root)) return RootIds.get(root);\n rootId += 1;\n RootIds.set(root, rootId.toString());\n return RootIds.get(root);\n}\n\n/**\n * Convert the options to a string Id, based on the values.\n * Ensures we can reuse the same observer when observing elements with the same options.\n * @param options\n */\nexport function optionsToId(options: IntersectionObserverInit) {\n return Object.keys(options)\n .sort()\n .filter(\n (key) => options[key as keyof IntersectionObserverInit] !== undefined,\n )\n .map((key) => {\n return `${key}_${\n key === \"root\"\n ? getRootId(options.root)\n : options[key as keyof IntersectionObserverInit]\n }`;\n })\n .toString();\n}\n\nfunction createObserver(options: IntersectionObserverInit) {\n // Create a unique ID for this observer instance, based on the root, root margin and threshold.\n const id = optionsToId(options);\n let instance = observerMap.get(id);\n\n if (!instance) {\n // Create a map of elements this observer is going to observe. Each element has a list of callbacks that should be triggered, once it comes into view.\n const elements = new Map>();\n // biome-ignore lint/style/useConst: It's fine to use let here, as we are going to assign it later\n let thresholds: number[] | readonly number[];\n\n const observer = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n // While it would be nice if you could just look at isIntersecting to determine if the component is inside the viewport, browsers can't agree on how to use it.\n // -Firefox ignores `threshold` when considering `isIntersecting`, so it will never be false again if `threshold` is > 0\n const inView =\n entry.isIntersecting &&\n thresholds.some((threshold) => entry.intersectionRatio >= threshold);\n\n // @ts-ignore support IntersectionObserver v2\n if (options.trackVisibility && typeof entry.isVisible === \"undefined\") {\n // The browser doesn't support Intersection Observer v2, falling back to v1 behavior.\n // @ts-ignore\n entry.isVisible = inView;\n }\n\n elements.get(entry.target)?.forEach((callback) => {\n callback(inView, entry);\n });\n });\n }, options);\n\n // Ensure we have a valid thresholds array. If not, use the threshold from the options\n thresholds =\n observer.thresholds ||\n (Array.isArray(options.threshold)\n ? options.threshold\n : [options.threshold || 0]);\n\n instance = {\n id,\n observer,\n elements,\n };\n\n observerMap.set(id, instance);\n }\n\n return instance;\n}\n\n/**\n * @param element - DOM Element to observe\n * @param callback - Callback function to trigger when intersection status changes\n * @param options - Intersection Observer options\n * @param fallbackInView - Fallback inView value.\n * @return Function - Cleanup function that should be triggered to unregister the observer\n */\nexport function observe(\n element: Element,\n callback: ObserverInstanceCallback,\n options: IntersectionObserverInit = {},\n fallbackInView = unsupportedValue,\n) {\n if (\n typeof window.IntersectionObserver === \"undefined\" &&\n fallbackInView !== undefined\n ) {\n const bounds = element.getBoundingClientRect();\n callback(fallbackInView, {\n isIntersecting: fallbackInView,\n target: element,\n intersectionRatio:\n typeof options.threshold === \"number\" ? options.threshold : 0,\n time: 0,\n boundingClientRect: bounds,\n intersectionRect: bounds,\n rootBounds: bounds,\n });\n return () => {\n // Nothing to cleanup\n };\n }\n // An observer with the same options can be reused, so lets use this fact\n const { id, observer, elements } = createObserver(options);\n\n // Register the callback listener for this element\n const callbacks = elements.get(element) || [];\n if (!elements.has(element)) {\n elements.set(element, callbacks);\n }\n\n callbacks.push(callback);\n observer.observe(element);\n\n return function unobserve() {\n // Remove the callback from the callback list\n callbacks.splice(callbacks.indexOf(callback), 1);\n\n if (callbacks.length === 0) {\n // No more callback exists for element, so destroy it\n elements.delete(element);\n observer.unobserve(element);\n }\n\n if (elements.size === 0) {\n // No more elements are being observer by this instance, so destroy it\n observer.disconnect();\n observerMap.delete(id);\n }\n };\n}\n","import * as React from \"react\";\nimport type { IntersectionObserverProps, PlainChildrenProps } from \"./index\";\nimport { observe } from \"./observe\";\n\ntype State = {\n inView: boolean;\n entry?: IntersectionObserverEntry;\n};\n\nfunction isPlainChildren(\n props: IntersectionObserverProps | PlainChildrenProps,\n): props is PlainChildrenProps {\n return typeof props.children !== \"function\";\n}\n\n/**\n ## Render props\n\n To use the `` component, you pass it a function. It will be called\n whenever the state changes, with the new value of `inView`. In addition to the\n `inView` prop, children also receive a `ref` that should be set on the\n containing DOM element. This is the element that the IntersectionObserver will\n monitor.\n\n If you need it, you can also access the\n [`IntersectionObserverEntry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry)\n on `entry`, giving you access to all the details about the current intersection\n state.\n\n ```jsx\n import { InView } from 'react-intersection-observer';\n\n const Component = () => (\n \n {({ inView, ref, entry }) => (\n
\n

{`Header inside viewport ${inView}.`}

\n
\n )}\n
\n );\n\n export default Component;\n ```\n\n ## Plain children\n\n You can pass any element to the ``, and it will handle creating the\n wrapping DOM element. Add a handler to the `onChange` method, and control the\n state in your own component. Any extra props you add to `` will be\n passed to the HTML element, allowing you set the `className`, `style`, etc.\n\n ```jsx\n import { InView } from 'react-intersection-observer';\n\n const Component = () => (\n console.log('Inview:', inView)}>\n

Plain children are always rendered. Use onChange to monitor state.

\n
\n );\n\n export default Component;\n ```\n */\nexport class InView extends React.Component<\n IntersectionObserverProps | PlainChildrenProps,\n State\n> {\n node: Element | null = null;\n _unobserveCb: (() => void) | null = null;\n\n constructor(props: IntersectionObserverProps | PlainChildrenProps) {\n super(props);\n this.state = {\n inView: !!props.initialInView,\n entry: undefined,\n };\n }\n\n componentDidMount() {\n this.unobserve();\n this.observeNode();\n }\n\n componentDidUpdate(prevProps: IntersectionObserverProps) {\n // If a IntersectionObserver option changed, reinit the observer\n if (\n prevProps.rootMargin !== this.props.rootMargin ||\n prevProps.root !== this.props.root ||\n prevProps.threshold !== this.props.threshold ||\n prevProps.skip !== this.props.skip ||\n prevProps.trackVisibility !== this.props.trackVisibility ||\n prevProps.delay !== this.props.delay\n ) {\n this.unobserve();\n this.observeNode();\n }\n }\n\n componentWillUnmount() {\n this.unobserve();\n }\n\n observeNode() {\n if (!this.node || this.props.skip) return;\n const {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n fallbackInView,\n } = this.props;\n\n this._unobserveCb = observe(\n this.node,\n this.handleChange,\n {\n threshold,\n root,\n rootMargin,\n // @ts-ignore\n trackVisibility,\n // @ts-ignore\n delay,\n },\n fallbackInView,\n );\n }\n\n unobserve() {\n if (this._unobserveCb) {\n this._unobserveCb();\n this._unobserveCb = null;\n }\n }\n\n handleNode = (node?: Element | null) => {\n if (this.node) {\n // Clear the old observer, before we start observing a new element\n this.unobserve();\n\n if (!node && !this.props.triggerOnce && !this.props.skip) {\n // Reset the state if we get a new node, and we aren't ignoring updates\n this.setState({ inView: !!this.props.initialInView, entry: undefined });\n }\n }\n\n this.node = node ? node : null;\n this.observeNode();\n };\n\n handleChange = (inView: boolean, entry: IntersectionObserverEntry) => {\n if (inView && this.props.triggerOnce) {\n // If `triggerOnce` is true, we should stop observing the element.\n this.unobserve();\n }\n if (!isPlainChildren(this.props)) {\n // Store the current State, so we can pass it to the children in the next render update\n // There's no reason to update the state for plain children, since it's not used in the rendering.\n this.setState({ inView, entry });\n }\n if (this.props.onChange) {\n // If the user is actively listening for onChange, always trigger it\n this.props.onChange(inView, entry);\n }\n };\n\n render() {\n const { children } = this.props;\n if (typeof children === \"function\") {\n const { inView, entry } = this.state;\n return children({ inView, entry, ref: this.handleNode });\n }\n\n const {\n as,\n triggerOnce,\n threshold,\n root,\n rootMargin,\n onChange,\n skip,\n trackVisibility,\n delay,\n initialInView,\n fallbackInView,\n ...props\n } = this.props as PlainChildrenProps;\n\n return React.createElement(\n as || \"div\",\n { ref: this.handleNode, ...props },\n children,\n );\n }\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"btn\":\"Button--btn--ioOdD\",\"default\":\"Button--default--BRVHD\",\"primary\":\"Button--primary--i3WKp\",\"primaryOutline\":\"Button--primaryOutline--0VEUP\",\"secondary\":\"Button--secondary--Hqzix\",\"icon\":\"Button--icon--M+ZI8\",\"text\":\"Button--text--dGDlJ\"};","import React from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.module.scss';\n\nexport type ButtonVariant =\n | 'default'\n | 'text'\n | 'icon'\n | 'primaryOutline'\n | 'primary'\n | 'secondary'\n | undefined;\n\nexport interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {\n children: React.ReactNode;\n variant?: ButtonVariant;\n className?: string;\n}\n\nconst Button = React.forwardRef(\n ({ children, className, variant = 'default', ...props }, ref) => (\n \n {children}\n \n )\n);\n\nexport default Button;\n","import clsx from 'clsx';\nimport React, { ComponentPropsWithoutRef, forwardRef } from 'react';\n\nimport styles from './styles.module.scss';\nimport { ButtonProps } from './Button';\n\nexport type LinkButtonProps = ButtonProps & ComponentPropsWithoutRef<'a'>;\n\nconst LinkButton = forwardRef(\n ({ href, children, className, variant = 'default', ...otherProps }, ref) => {\n return (\n \n {children}\n \n );\n }\n);\n\nexport default LinkButton;\n","type Value = string | number | boolean | undefined | null;\ntype MixObject = {\n [key: string]: boolean | Mix | undefined | null;\n};\ntype MixArray = Array;\ntype Mix = Value | MixObject | MixArray;\n\nfunction toVal(mix: Mix): string {\n let k,\n y,\n str = '';\n\n if (typeof mix === 'string' || typeof mix === 'number') {\n str += mix;\n } else if (typeof mix === 'object') {\n if (Array.isArray(mix)) {\n for (k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if ((y = toVal(mix[k]))) {\n str && (str += ' ');\n str += y;\n }\n }\n }\n } else {\n for (k in mix) {\n if (!mix || mix[k]) {\n str && (str += ' ');\n str += k;\n }\n }\n }\n }\n\n return str;\n}\n\nexport function clsx(..._args: Mix[]): string {\n let i = 0,\n tmp,\n x,\n str = '';\n\n while (i < arguments.length) {\n if ((tmp = arguments[i++])) {\n if ((x = toVal(tmp))) {\n str && (str += ' ');\n str += x;\n }\n }\n }\n return str;\n}\n\nexport default clsx;\n","import * as React from \"react\";\nimport PropTypes from \"prop-types\";\nconst SvgActionsCancelNormalXsmall = React.forwardRef(\n ({ color, size, title, titleId, ...props }, ref) => (\n \n {title ? {title} : null}\n \n \n )\n);\nSvgActionsCancelNormalXsmall.defaultProps = {\n color: \"currentColor\",\n size: 16,\n title: undefined,\n titleId: undefined,\n};\nSvgActionsCancelNormalXsmall.propTypes = {\n color: PropTypes.string,\n size: PropTypes.number,\n title: PropTypes.string,\n titleId: PropTypes.string,\n};\nexport default SvgActionsCancelNormalXsmall;\n","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"smart-banner-ui--wrapper--8LVP-\",\"smartBanner\":\"smart-banner-ui--smartBanner--a9rNI\",\"appInfo\":\"smart-banner-ui--appInfo--5Nk-F\",\"btn\":\"smart-banner-ui--btn--JwtOK\",\"closeBtn\":\"smart-banner-ui--closeBtn--kuyi3\"};","import React, {\n useEffect,\n useState,\n useCallback,\n useMemo,\n forwardRef\n} from 'react';\nimport PropTypes from 'prop-types';\nimport { useInView } from 'react-intersection-observer';\nimport Button, { LinkButton } from '@strava/ui/Button';\nimport clsx from '@strava/ui/clsx';\nimport {\n useStravaAnalytics,\n useStravaExperiment,\n useStravaTranslations,\n useStravaBranch\n} from '@strava/container-context';\nimport { EXPERIMENT_COHORTS } from '@strava/constants';\nimport ActionsCancelNormalXsmall from '@strava/icons/ActionsCancelNormalXsmall';\nimport { color } from '@strava/ui-tokens/js';\nimport { MOBILE_OS } from '@strava/constants/src/appConstants';\nimport { isLocalStorageAvailable } from '@strava/utils/src/utils';\nimport styles from './SmartBanner.module.scss';\n\nimport iOSIcon from './assets/icon-ios-app.svg';\nimport androidIcon from './assets/icon-android-app.svg';\n\nexport const I18N_PREFIX = 'microfrontends.mobile_app_download_banner';\nexport const HIDE_BANNER_STORAGE_KEY = 'hide-mobile-app-download-banner';\n\nconst SmartBanner = forwardRef(\n ({ page, category, mobileOS, showCloseBtn, className }, ref) => {\n const { hasApp, appLink, isProcessing } = useStravaBranch();\n const { experiment } = useStravaExperiment();\n const { track: _track } = useStravaAnalytics();\n const { t: _t } = useStravaTranslations();\n\n const isSmartbannerExperiment =\n experiment?.name === 'logged-out-smart-banner-copy-test';\n\n const smartbannerCtaVariants = {\n [EXPERIMENT_COHORTS.control]: 'download',\n [EXPERIMENT_COHORTS.variantA]: 'install',\n [EXPERIMENT_COHORTS.variantB]: 'get_app'\n };\n\n // Select ctaVariant based on experiment variant.\n // if !isSmartbannerExperiment, default to control\n const ctaVariant =\n smartbannerCtaVariants[\n (isSmartbannerExperiment && experiment?.cohort) ||\n EXPERIMENT_COHORTS.control\n ];\n\n const [inViewRef, inView] = useInView({ threshold: 0 });\n\n const [hideBanner, setHideBanner] = useState(false);\n\n const track = useCallback(\n (fields = {}) => {\n _track({\n category,\n page,\n ...fields,\n properties: {\n ...fields.properties\n }\n });\n },\n [_track, category, page]\n );\n\n const t = useMemo(\n () => (key, params) => _t(`${I18N_PREFIX}.${key}`, { ...params }),\n [_t]\n );\n\n const getAppInfoCopy = () => {\n if (\n [MOBILE_OS.iPhone, MOBILE_OS.android].includes(mobileOS?.toLowerCase())\n ) {\n return t(`app.${mobileOS.toLowerCase()}`);\n }\n return t('no_app');\n };\n\n useEffect(() => {\n let hide = false;\n if (isLocalStorageAvailable()) {\n hide = localStorage?.getItem(HIDE_BANNER_STORAGE_KEY) === 'true';\n }\n\n if (!hide && inView) {\n track({ element: 'smartbanner', action: 'screen_enter' });\n }\n setHideBanner(hide);\n }, [track, inView]);\n\n const handleCloseBanner = () => {\n track({\n element: 'dismiss_smartbanner',\n action: 'click'\n });\n setHideBanner(true);\n if (isLocalStorageAvailable()) {\n localStorage?.setItem(HIDE_BANNER_STORAGE_KEY, true);\n }\n\n // allows active to remove placeholder spacing when smartbanner is hidden\n document.dispatchEvent(new Event('removeSmartbanner'));\n };\n\n if (hideBanner) {\n return null;\n }\n\n return (\n \n
\n {showCloseBtn && (\n \n \n \n )}\n\n \n\n
\n
Strava
\n
{getAppInfoCopy()}
\n
\n \n track({\n element: hasApp ? 'open_app' : 'download_app',\n action: 'click',\n properties: {\n url: appLink\n }\n })\n }\n >\n {hasApp ? t('open') : t(ctaVariant)}\n \n
\n \n );\n }\n);\n\nSmartBanner.defaultProps = {\n mobileOS: null,\n className: null,\n showCloseBtn: true\n};\n\nSmartBanner.propTypes = {\n page: PropTypes.string.isRequired,\n category: PropTypes.string.isRequired,\n mobileOS: PropTypes.string,\n className: PropTypes.string,\n showCloseBtn: PropTypes.bool\n};\n\nexport default SmartBanner;\n","import * as React from \"react\";\nimport type { InViewHookResponse, IntersectionOptions } from \"./index\";\nimport { observe } from \"./observe\";\n\ntype State = {\n inView: boolean;\n entry?: IntersectionObserverEntry;\n};\n\n/**\n * React Hooks make it easy to monitor the `inView` state of your components. Call\n * the `useInView` hook with the (optional) [options](#options) you need. It will\n * return an array containing a `ref`, the `inView` status and the current\n * [`entry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry).\n * Assign the `ref` to the DOM element you want to monitor, and the hook will\n * report the status.\n *\n * @example\n * ```jsx\n * import React from 'react';\n * import { useInView } from 'react-intersection-observer';\n *\n * const Component = () => {\n * const { ref, inView, entry } = useInView({\n * threshold: 0,\n * });\n *\n * return (\n *
\n *

{`Header inside viewport ${inView}.`}

\n *
\n * );\n * };\n * ```\n */\nexport function useInView({\n threshold,\n delay,\n trackVisibility,\n rootMargin,\n root,\n triggerOnce,\n skip,\n initialInView,\n fallbackInView,\n onChange,\n}: IntersectionOptions = {}): InViewHookResponse {\n const [ref, setRef] = React.useState(null);\n const callback = React.useRef();\n const [state, setState] = React.useState({\n inView: !!initialInView,\n entry: undefined,\n });\n\n // Store the onChange callback in a `ref`, so we can access the latest instance\n // inside the `useEffect`, but without triggering a rerender.\n callback.current = onChange;\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: threshold is not correctly detected as a dependency\n React.useEffect(\n () => {\n // Ensure we have node ref, and that we shouldn't skip observing\n if (skip || !ref) return;\n\n let unobserve: (() => void) | undefined;\n unobserve = observe(\n ref,\n (inView, entry) => {\n setState({\n inView,\n entry,\n });\n if (callback.current) callback.current(inView, entry);\n\n if (entry.isIntersecting && triggerOnce && unobserve) {\n // If it should only trigger once, unobserve the element after it's inView\n unobserve();\n unobserve = undefined;\n }\n },\n {\n root,\n rootMargin,\n threshold,\n // @ts-ignore\n trackVisibility,\n // @ts-ignore\n delay,\n },\n fallbackInView,\n );\n\n return () => {\n if (unobserve) {\n unobserve();\n }\n };\n },\n // We break the rule here, because we aren't including the actual `threshold` variable\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n // If the threshold is an array, convert it to a string, so it won't change between renders.\n Array.isArray(threshold) ? threshold.toString() : threshold,\n ref,\n root,\n rootMargin,\n triggerOnce,\n skip,\n trackVisibility,\n fallbackInView,\n delay,\n ],\n );\n\n const entryTarget = state.entry?.target;\n const previousEntryTarget = React.useRef();\n if (\n !ref &&\n entryTarget &&\n !triggerOnce &&\n !skip &&\n previousEntryTarget.current !== entryTarget\n ) {\n // If we don't have a node ref, then reset the state (unless the hook is set to only `triggerOnce` or `skip`)\n // This ensures we correctly reflect the current state - If you aren't observing anything, then nothing is inView\n previousEntryTarget.current = entryTarget;\n setState({\n inView: !!initialInView,\n entry: undefined,\n });\n }\n\n const result = [setRef, state.inView, state.entry] as InViewHookResponse;\n\n // Support object destructuring, by adding the specific values.\n result.ref = result[0];\n result.inView = result[1];\n result.entry = result[2];\n\n return result;\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"callToAction\":\"CallToAction--callToAction--zDaZ8\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from '@strava/ui/clsx';\nimport { LinkButton } from '@strava/ui/Button';\n\nimport styles from './CallToAction.module.scss';\n\nconst CallToAction = ({\n label,\n href,\n isProcessing,\n className,\n dataCy,\n onClick\n}) => {\n return (\n \n {label}\n \n );\n};\n\nCallToAction.propTypes = {\n label: PropTypes.string.isRequired,\n className: PropTypes.string,\n dataCy: PropTypes.string,\n onClick: PropTypes.func,\n href: PropTypes.string,\n isProcessing: PropTypes.bool\n};\n\nCallToAction.defaultProps = {\n className: undefined,\n dataCy: undefined,\n onClick: () => {},\n isProcessing: false,\n href: '/register/free'\n};\n\nexport default CallToAction;\n","import React, { useRef, useEffect, useMemo } from 'react';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nvar getDirectionStyle = function getDirectionStyle(dir, size) {\n switch (dir) {\n case 'left':\n return {\n top: 0,\n left: 0,\n transform: 'translate3d(-100%, 0, 0)',\n width: size,\n height: '100vh'\n };\n\n case 'right':\n return {\n top: 0,\n right: 0,\n transform: 'translate3d(100%, 0, 0)',\n width: size,\n height: '100vh'\n };\n\n case 'bottom':\n return {\n left: 0,\n right: 0,\n bottom: 0,\n transform: 'translate3d(0, 100%, 0)',\n width: '100%',\n height: size\n };\n\n case 'top':\n return {\n left: 0,\n right: 0,\n top: 0,\n transform: 'translate3d(0, -100%, 0)',\n width: '100%',\n height: size\n };\n\n default:\n return {};\n }\n};\n\nvar EZDrawer = function EZDrawer(props) {\n var open = props.open,\n _props$onClose = props.onClose,\n onClose = _props$onClose === void 0 ? function () {} : _props$onClose,\n children = props.children,\n style = props.style,\n _props$enableOverlay = props.enableOverlay,\n enableOverlay = _props$enableOverlay === void 0 ? true : _props$enableOverlay,\n _props$overlayColor = props.overlayColor,\n overlayColor = _props$overlayColor === void 0 ? '#000' : _props$overlayColor,\n _props$overlayOpacity = props.overlayOpacity,\n overlayOpacity = _props$overlayOpacity === void 0 ? 0.4 : _props$overlayOpacity,\n _props$zIndex = props.zIndex,\n zIndex = _props$zIndex === void 0 ? 100 : _props$zIndex,\n _props$duration = props.duration,\n duration = _props$duration === void 0 ? 500 : _props$duration,\n direction = props.direction,\n _props$size = props.size,\n size = _props$size === void 0 ? 250 : _props$size,\n className = props.className,\n customIdSuffix = props.customIdSuffix,\n _props$lockBackground = props.lockBackgroundScroll,\n lockBackgroundScroll = _props$lockBackground === void 0 ? false : _props$lockBackground,\n _props$overlayClassNa = props.overlayClassName,\n overlayClassName = _props$overlayClassNa === void 0 ? '' : _props$overlayClassNa;\n var bodyRef = useRef(null);\n useEffect(function () {\n var updatePageScroll = function updatePageScroll() {\n bodyRef.current = window.document.querySelector('body');\n\n if (bodyRef.current && lockBackgroundScroll) {\n if (open) {\n bodyRef.current.style.overflow = 'hidden';\n } else {\n bodyRef.current.style.overflow = '';\n }\n }\n };\n\n updatePageScroll();\n }, [open]);\n var idSuffix = useMemo(function () {\n return customIdSuffix || (Math.random() + 1).toString(36).substring(7);\n }, [customIdSuffix]);\n var overlayStyles = {\n backgroundColor: \"\" + overlayColor,\n opacity: \"\" + overlayOpacity,\n zIndex: zIndex\n };\n\n var drawerStyles = _extends({\n zIndex: zIndex + 1,\n transitionDuration: duration + \"ms\"\n }, getDirectionStyle(direction, size), style);\n\n return React.createElement(\"div\", {\n id: 'EZDrawer' + idSuffix,\n className: 'EZDrawer'\n }, React.createElement(\"input\", {\n type: 'checkbox',\n id: 'EZDrawer__checkbox' + idSuffix,\n className: 'EZDrawer__checkbox',\n onChange: onClose,\n checked: open\n }), React.createElement(\"nav\", {\n role: 'navigation',\n id: 'EZDrawer__container' + idSuffix,\n style: drawerStyles,\n className: 'EZDrawer__container ' + className\n }, children), enableOverlay && React.createElement(\"label\", {\n htmlFor: 'EZDrawer__checkbox' + idSuffix,\n id: 'EZDrawer__overlay' + idSuffix,\n className: 'EZDrawer__overlay ' + overlayClassName,\n style: overlayStyles\n }));\n};\n\nexport default EZDrawer;\n//# sourceMappingURL=index.modern.js.map\n","// extracted by mini-css-extract-plugin\nexport default {\"menuDrawer\":\"MenuDrawer--menuDrawer--CJkiH\",\"primaryOptions\":\"MenuDrawer--primaryOptions--8uuVp\",\"secondaryOptions\":\"MenuDrawer--secondaryOptions--F+rWl\",\"menuDrawerBtn\":\"MenuDrawer--menuDrawerBtn--tl4yt\",\"drawerCallToAction\":\"MenuDrawer--drawerCallToAction--ztlzL\"};","import React from 'react';\nimport Drawer from 'react-modern-drawer';\nimport Button from '@strava/ui/Button';\nimport PropTypes from 'prop-types';\nimport { useStravaBranch } from '@strava/container-context';\nimport { useFrontDoorsPageContainerContext } from '../../../../../../state/FrontDoorsPageContainerContext';\nimport CallToAction from '../../../../../CallToAction';\n\nimport 'react-modern-drawer/dist/index.css';\nimport styles from './MenuDrawer.module.scss';\n\nconst MenuDrawer = ({ isOpen, top, onClose }) => {\n const {\n t,\n onMobileHeaderMenuSignupBtnClick,\n onMobileHeaderMenuLoginBtnClick,\n onMobileHeaderMenuNavItemClick\n } = useFrontDoorsPageContainerContext();\n\n const PRIMARY_OPTIONS = [\n { key: 'home', destination: '/' },\n { key: 'features', destination: '/features' },\n { key: 'challenges', destination: '/challenges' }\n ];\n\n const SECONDARY_OPTIONS = [\n {\n key: 'subscription',\n destination: '/subscribe?origin=website_header'\n },\n {\n key: 'support',\n destination: 'https://support.strava.com/'\n },\n {\n key: 'sign_up',\n destination:\n '/register/free?cta=sign-up&element=mobile-nav&source=website_show'\n }\n ];\n\n const { appLink, isProcessing } = useStravaBranch();\n\n const handleLoginBtnClick = () => {\n onMobileHeaderMenuLoginBtnClick();\n window.location.href = '/login';\n };\n\n const generateLinkProps = ({ key, destination }) => {\n return {\n 'data-cy': `primary_option_${key}`,\n href: destination,\n onClick: () => onMobileHeaderMenuNavItemClick(key)\n };\n };\n\n return (\n \n \n\n \n\n
    \n
  • \n \n {t('header.log_in')}\n \n
  • \n\n
  • \n \n
  • \n
\n \n );\n};\n\nMenuDrawer.defaultProps = {\n top: 0\n};\n\nMenuDrawer.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n top: PropTypes.number\n};\n\nexport default MenuDrawer;\n","// extracted by mini-css-extract-plugin\nexport default {\"dark\":\"MenuIcon--dark--WpTa0\",\"light\":\"MenuIcon--light--hAAv3\",\"menuIcon\":\"MenuIcon--menuIcon--UdFXM\",\"bar\":\"MenuIcon--bar--9aQEM\",\"isOpen\":\"MenuIcon--isOpen--b+nwr\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from '@strava/ui/clsx';\nimport styles from './MenuIcon.module.scss';\n\nconst MenuIcon = ({ isOpen }) => {\n return (\n
\n \n \n \n
\n );\n};\n\nMenuIcon.propTypes = {\n isOpen: PropTypes.bool.isRequired\n};\n\nexport default MenuIcon;\n","// extracted by mini-css-extract-plugin\nexport default {\"dark\":\"MobileNav--dark--ewtbW\",\"light\":\"MobileNav--light--Ik9Z4\",\"container\":\"MobileNav--container--JdlQg\",\"left\":\"MobileNav--left--6QiY+\",\"right\":\"MobileNav--right--GmFUF\",\"logo\":\"MobileNav--logo--jj2HY\",\"headerCallToAction\":\"MobileNav--headerCallToAction--GhNOg\",\"menuBtn\":\"MobileNav--menuBtn--405MM\"};","import React, { useState, useRef, useMemo } from 'react';\nimport StravaLogo from '@strava/ui/StravaLogo';\nimport {\n getBrowser,\n getMobileOS,\n getParamFromURL,\n isUniversalLinkPage\n} from '@strava/utils';\nimport SmartBanner from '@strava/smart-banner-ui';\nimport { EXPERIMENT_COHORTS, SUPPORTED_BROWSERS } from '@strava/constants';\nimport {\n useStravaBranch,\n useStravaExperiment\n} from '@strava/container-context';\nimport { useSignUpModalContext } from '@strava/authentication-ui';\nimport Button from '@strava/ui/Button';\nimport { useFrontDoorsPageContainerContext } from '../../../../state/FrontDoorsPageContainerContext';\nimport IconButton from '../../../IconButton';\nimport CallToAction from '../../../CallToAction';\nimport MenuDrawer from './components/MenuDrawer';\nimport MenuIcon from './components/MenuIcon';\n\nimport styles from './MobileNav.module.scss';\nimport { isNavSignUpVariantA } from '../../../../shared/pageUtils';\n\nconst MobileNav = () => {\n const [isMenuOpen, toggleMenu] = useState(false);\n const mobileAppDownloadBannerRef = useRef();\n const {\n t,\n state,\n onMobileHeaderLogoClick,\n onMobileHeaderMenuOpen,\n onMobileHeaderMenuClose,\n onMobileHeaderSignupBtnClick\n } = useFrontDoorsPageContainerContext();\n const { openSignUpModal } = useSignUpModalContext();\n\n const { page, category, userAgent, showSmartBanner, branch, url } = state;\n\n const { hasApp, appLink, isProcessing } = useStravaBranch();\n const { experiment } = useStravaExperiment();\n\n // https://strava.atlassian.net/wiki/spaces/TG/pages/2194506285/16+LOH+Mobile+Web+Sign+Up+vs+Get+App+Mobile\n const isWebAppExpVariant = (variantList) =>\n experiment?.name === 'loh-signup-vs-get-app' &&\n variantList.includes(experiment?.cohort);\n\n const handleLogoClick = () => {\n onMobileHeaderLogoClick();\n window.location.href = '/';\n };\n\n const handleMenuToggle = () => {\n if (isMenuOpen) {\n onMobileHeaderMenuClose();\n } else {\n onMobileHeaderMenuOpen();\n }\n toggleMenu(!isMenuOpen);\n };\n\n // For development only - use query param to force the smartbanner to show\n // on a page.\n const forceSmartBanner = useMemo(\n () => !!getParamFromURL(url, 'force_smartbanner'),\n [url]\n );\n\n // mobile safari only: do not show smartbanner if athlete has app (as best as branch can tell)\n // and is on a page that matches an apple app link path (pages that match this path automatically get\n // the native ios smartbanner if the user has the app installed. https://developer.apple.com/forums/thread/105129)\n const showOnSafari = useMemo(() => {\n if (getBrowser(userAgent) === SUPPORTED_BROWSERS.safari && hasApp) {\n const { pathname } = new URL(url);\n return !isUniversalLinkPage(pathname);\n }\n return true;\n }, [hasApp, url, userAgent]);\n\n return (\n <>\n {((showSmartBanner &&\n showOnSafari &&\n !isWebAppExpVariant([EXPERIMENT_COHORTS.variantA])) ||\n forceSmartBanner) && (\n \n )}\n
\n
\n \n \n \n
\n \n \n \n
\n
\n\n
\n {isNavSignUpVariantA(experiment) ? (\n openSignUpModal('generic')}\n data-cy=\"signup_btn\"\n variant=\"primary\"\n >\n {t(`header.join_us`)}\n \n ) : (\n \n )}\n
\n toggleMenu(!isMenuOpen)}\n top={\n mobileAppDownloadBannerRef.current?.getBoundingClientRect().height\n }\n />\n
\n \n );\n};\n\nexport default MobileNav;\n","// extracted by mini-css-extract-plugin\nexport default {\"dark\":\"Header--dark--8tbCg\",\"light\":\"Header--light--Eo-8g\",\"container\":\"Header--container--R-v2A\",\"isScrolling\":\"Header--isScrolling--LW5RU\",\"menu\":\"Header--menu--CaRj2\",\"items\":\"Header--items--ZjIvC\"};","import React, { forwardRef } from 'react';\nimport clsx from '@strava/ui/clsx';\nimport { useFrontDoorsPageContainerContext } from '../../state/FrontDoorsPageContainerContext';\nimport DesktopNav from './components/DesktopNav';\nimport MobileNav from './components/MobileNav';\n\nimport styles from './Header.module.scss';\n\nconst Header = forwardRef((_, ref) => {\n const { state } = useFrontDoorsPageContainerContext();\n\n const isScrolling = state.windowScrollTop > 0;\n\n return (\n \n \n \n );\n});\n\nexport default Header;\n","type Value = string | number | boolean | undefined | null;\ntype MixObject = {\n [key: string]: boolean | Mix | undefined | null;\n};\ntype MixArray = Array;\ntype Mix = Value | MixObject | MixArray;\n\nfunction toVal(mix: Mix): string {\n let k,\n y,\n str = '';\n\n if (typeof mix === 'string' || typeof mix === 'number') {\n str += mix;\n } else if (typeof mix === 'object') {\n if (Array.isArray(mix)) {\n for (k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if ((y = toVal(mix[k]))) {\n str && (str += ' ');\n str += y;\n }\n }\n }\n } else {\n for (k in mix) {\n if (!mix || mix[k]) {\n str && (str += ' ');\n str += k;\n }\n }\n }\n }\n\n return str;\n}\n\nexport function clsx(..._args: Mix[]): string {\n let i = 0,\n tmp,\n x,\n str = '';\n\n while (i < arguments.length) {\n if ((tmp = arguments[i++])) {\n if ((x = toVal(tmp))) {\n str && (str += ' ');\n str += x;\n }\n }\n }\n return str;\n}\n\nexport default clsx;\n","import * as React from \"react\";\nimport PropTypes from \"prop-types\";\nconst SvgActionsCancelNormalXsmall = React.forwardRef(\n ({ color, size, title, titleId, ...props }, ref) => (\n \n {title ? {title} : null}\n \n \n )\n);\nSvgActionsCancelNormalXsmall.defaultProps = {\n color: \"currentColor\",\n size: 16,\n title: undefined,\n titleId: undefined,\n};\nSvgActionsCancelNormalXsmall.propTypes = {\n color: PropTypes.string,\n size: PropTypes.number,\n title: PropTypes.string,\n titleId: PropTypes.string,\n};\nexport default SvgActionsCancelNormalXsmall;\n","// extracted by mini-css-extract-plugin\nexport default {\"btn\":\"Button--btn--uYzrp\",\"default\":\"Button--default--i0Bn2\",\"primary\":\"Button--primary--ZnrGe\",\"primaryOutline\":\"Button--primaryOutline--ZdZDx\",\"secondary\":\"Button--secondary--gmJvy\",\"icon\":\"Button--icon---svpb\",\"text\":\"Button--text--qAOmK\"};","import React from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.module.scss';\n\nexport interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {\n children: React.ReactNode;\n variant?:\n | 'default'\n | 'primary'\n | 'primaryOutline'\n | 'secondary'\n | 'icon'\n | 'text';\n className?: string;\n}\n\nconst Button = React.forwardRef(\n ({ children, className, variant = 'default', ...props }, ref) => (\n \n {children}\n \n )\n);\n\nexport default Button;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"Modal--overlay--xlKkC\",\"dialog\":\"Modal--dialog--WjVXH\",\"closeButton\":\"Modal--closeButton--K8Kt1\",\"title\":\"Modal--title--R7mfz\",\"heroImage\":\"Modal--heroImage--jWk1S\",\"body\":\"Modal--body--kFZnP\",\"actions\":\"Modal--actions--1MMQZ\"};","import React from 'react';\nimport {\n DialogOverlay,\n DialogOverlayProps,\n DialogContent,\n DialogContentProps\n} from '@reach/dialog';\nimport ActionsCancelNormalXsmall from '@strava/icons/ActionsCancelNormalXsmall';\nimport clsx from '../clsx';\nimport { color as colors } from '@strava/ui-tokens/js';\nimport Button from '../Button/Button';\n\nimport styles from './Modal.module.scss';\nimport './ReachUI.css';\n\n//\n// ModalOverlay\n//\n// Reach UI docs: https://reach.tech/dialog/#dialogoverlay\n// --------------------\n\nexport interface ModalOverlayProps\n extends DialogOverlayProps,\n React.ComponentPropsWithoutRef<'div'> {\n className?: string;\n}\n\nexport function ModalOverlay({\n className,\n children,\n ...otherProps\n}: ModalOverlayProps) {\n return (\n \n {children}\n \n );\n}\n\n//\n// ModalContent\n//\n// Reach UI docs: https://reach.tech/dialog/#dialogcontent\n// --------------------\n\nexport interface ModalContentProps\n extends DialogContentProps,\n React.ComponentPropsWithoutRef<'div'> {\n children: React.ReactNode;\n className?: string;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n}\n\nexport function ModalContent({\n className,\n children,\n ...otherProps\n}: ModalContentProps) {\n return (\n \n {children}\n \n );\n}\n\n//\n// ModalTitle\n// --------------------\n\nexport interface ModalTitleProps extends React.ComponentPropsWithoutRef<'div'> {\n children: React.ReactNode;\n className?: string;\n}\n\nexport function ModalTitle({\n className,\n children,\n ...otherProps\n}: ModalTitleProps) {\n return (\n

\n {children}\n

\n );\n}\n\n//\n// ModalActions\n// --------------------\n\nexport interface ModalActionsProps\n extends React.ComponentPropsWithoutRef<'div'> {\n children: React.ReactNode;\n className?: string;\n}\n\nexport function ModalActions({\n className,\n children,\n ...otherProps\n}: ModalActionsProps) {\n return (\n
\n {children}\n
\n );\n}\n\n//\n// ModalHeroImage\n// --------------------\n\nexport interface ModalHeroImageProps\n extends React.ComponentPropsWithoutRef<'img'> {\n children: React.ReactNode;\n className?: string;\n}\n\nexport function ModalHeroImage({\n className,\n src,\n alt,\n ...otherProps\n}: ModalHeroImageProps) {\n return (\n \n );\n}\n\n//\n// ModalBody\n// --------------------\n\nexport interface ModalBodyProps extends React.ComponentPropsWithoutRef<'div'> {\n children: React.ReactNode;\n className?: string;\n}\n\nexport function ModalBody({ className, ...otherProps }: ModalBodyProps) {\n return
;\n}\n\n//\n// ModalCloseButton\n// --------------------\n\nexport interface ModalCloseButtonProps\n extends React.ComponentPropsWithoutRef<'button'> {\n className?: string;\n color?: string;\n}\n\nexport function ModalCloseButton({\n className,\n color,\n ...otherProps\n}: ModalCloseButtonProps) {\n return (\n \n );\n}\n\n//\n// Modal\n// --------------------\n\nexport interface ModalProps extends React.ComponentPropsWithoutRef<'div'> {\n className?: string;\n isOpen?: boolean;\n onDismiss?: () => void;\n hasClose?: boolean;\n children: React.ReactNode;\n initialFocusRef?: React.RefObject;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n}\n\nfunction Modal({\n className,\n isOpen = false,\n onDismiss,\n hasClose,\n children,\n initialFocusRef,\n ...otherProps\n}: ModalProps) {\n return (\n \n \n {hasClose && (\n \n )}\n {children}\n \n \n );\n}\n\n// Adding support to use the compound component pattern and have backwards\n// compatibility with the existing pattern. To learn more read,\n// https://www.smashingmagazine.com/2021/08/compound-components-react/\nModal.Overlay = ModalOverlay;\nModal.Content = ModalContent;\nModal.Title = ModalTitle;\nModal.Actions = ModalActions;\nModal.HeroImage = ModalHeroImage;\nModal.Body = ModalBody;\nModal.CloseButton = ModalCloseButton;\n\nexport default Modal;\n","import clsx from 'clsx';\nimport React, { ComponentPropsWithoutRef, forwardRef } from 'react';\n\nimport styles from './styles.module.scss';\nimport { ButtonProps } from './Button';\n\ntype LinkButtonProps = ButtonProps & ComponentPropsWithoutRef<'a'>;\n\nconst LinkButton = forwardRef(\n ({ href, children, className, variant = 'default', ...otherProps }, ref) => {\n return (\n \n {children}\n \n );\n }\n);\n\nexport default LinkButton;\n","// At times, we will be developing the app using different hostnames and ports.\n// On docker-compose, the origin might be http://webapp:3001.\n// Or, you might be running it on your machine at http://localhost:3000\n//\n// If the incoming request doesn't include '/dev-api',\n// we want it to be for /dev-api on this same server,\n// so it can be modified and re-sent, from the server, with appropriate auth cookies,\n// to the staging api.\n\nexport function stagingBaseUrlFromReq(req) {\n // When using the staging api, we will toggle the '/dev-api' depending on the state of the request.\n // If the incoming request is for localhost:3000/dev-api,\n // then we will strip out '/dev-api' and forward the request to to staging.strava.com.\n // See next-server/src/utils.js #proxyToStaging\n\n return `${req.protocol}://${req.headers.host}/dev-api`;\n}\n\nexport function stagingBaseUrlFromWindow() {\n const { location } = window;\n const { protocol, hostname, port } = location;\n\n return `${protocol}//${hostname}:${port}/dev-api`;\n}\n","// We serve active from different domains depending\n// on the environment. We need to know which URL\n// to use for a given environment (development, staging, prod).\n// https://www.strava.com\n// https://www.staging.strava.com\n// http://localhost + port\n// http://127.0.0.1 + port\n\n// Note: When developing locally, we will serve this web app\n// on a different port than active\nconst LOCALHOST_ACTIVE_PORT = 3000;\n\nexport function extractUrlFromReq(req) {\n let fullHost = req.headers['x-forwarded-host'] || req.headers.host;\n let protocol = 'https';\n\n // If we are developing locally, we will be running\n // active on some other port, so we set it here:.\n if (fullHost.includes('localhost')) {\n fullHost = `localhost:${LOCALHOST_ACTIVE_PORT}`;\n protocol = 'http';\n }\n\n return `${protocol}://${fullHost}`;\n}\n\nexport function baseUrlFromWindow() {\n const { location } = window;\n\n // If we are on the browser, and have included a port in the location URL, then\n // we are running locally, and the api client should use active's port.\n const port = location.port === '' ? '' : `:${LOCALHOST_ACTIVE_PORT}`;\n\n return `${location.protocol}//${location.hostname}${port}`;\n}\n","import axios from 'axios';\nimport { stagingBaseUrlFromWindow } from './base-url-staging';\nimport { baseUrlFromWindow } from './base-url';\nimport getCsrfToken from './csrf';\n\n/**\n * nextjs apps can be run locally but be configured to call active staging rather than active localhost.\n * If client is called by a microfrontend mounted by a nextjs app, `useStagingApi` can be passed in to\n * the mfe's props from `process.env.USE_STAGING_API` so it uses the same baseurl as the nextjs app's other\n * api requests.\n */\n\nconst apiClient = ({\n useStagingApi = typeof process !== 'undefined'\n ? process?.env?.USE_STAGING_API\n : false,\n currentLanguage = 'en-US',\n options = {}\n} = {}) => {\n const { headers: optionalHeaders, ...moreOptions } = options;\n const config = {\n baseURL: useStagingApi ? stagingBaseUrlFromWindow() : baseUrlFromWindow(),\n withCredentials: true,\n timeout: 30000, // 30 seconds\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Accept-Language': currentLanguage,\n ...optionalHeaders\n },\n ...moreOptions\n };\n\n const csrfToken = getCsrfToken();\n if (csrfToken) {\n config.headers = { 'x-csrf-token': csrfToken, ...config.headers };\n }\n\n return axios.create(config);\n};\n\nexport default apiClient;\n","export default function getCsrfToken() {\n const metaCsrfTag =\n document.head.querySelector('meta[name=\"csrf\"]') ||\n document.head.querySelector('meta[name=\"csrf-token\"]');\n\n return metaCsrfTag ? metaCsrfTag.content : null;\n}\n","export const StatusCodes = Object.freeze({\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1\n *\n * This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished.\n */\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1\n *\n * This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished.\n */\n CONTINUE: 100,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.2\n *\n * This code is sent in response to an Upgrade request header by the client, and indicates the protocol the server is switching too.\n */\n SWITCHING_PROTOCOLS: 101,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.1\n *\n * This code indicates that the server has received and is processing the request, but no response is available yet.\n */\n PROCESSING: 102,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.1\n *\n * The request has succeeded. The meaning of a success varies depending on the HTTP method:\n * GET: The resource has been fetched and is transmitted in the message body.\n * HEAD: The entity headers are in the message body.\n * POST: The resource describing the result of the action is transmitted in the message body.\n * TRACE: The message body contains the request message as received by the server\n */\n OK: 200,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.2\n *\n * The request has succeeded and a new resource has been created as a result of it. This is typically the response sent after a PUT request.\n */\n CREATED: 201,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.3\n *\n * The request has been received but not yet acted upon. It is non-committal, meaning that there is no way in HTTP to later send an asynchronous response indicating the outcome of processing the request. It is intended for cases where another process or server handles the request, or for batch processing.\n */\n ACCEPTED: 202,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.4\n *\n * This response code means returned meta-information set is not exact set as available from the origin server, but collected from a local or a third party copy. Except this condition, 200 OK response should be preferred instead of this response.\n */\n NON_AUTHORITATIVE_INFORMATION: 203,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.5\n *\n * There is no content to send for this request, but the headers may be useful. The user-agent may update its cached headers for this resource with the new ones.\n */\n NO_CONTENT: 204,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.6\n *\n * This response code is sent after accomplishing request to tell user agent reset document view which sent this request.\n */\n RESET_CONTENT: 205,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.1\n *\n * This response code is used because of range header sent by the client to separate download into multiple streams.\n */\n PARTIAL_CONTENT: 206,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.2\n *\n * A Multi-Status response conveys information about multiple resources in situations where multiple status codes might be appropriate.\n */\n MULTI_STATUS: 207,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.1\n *\n * The request has more than one possible responses. User-agent or user should choose one of them. There is no standardized way to choose one of the responses.\n */\n MULTIPLE_CHOICES: 300,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.2\n *\n * This response code means that URI of requested resource has been changed. Probably, new URI would be given in the response.\n */\n MOVED_PERMANENTLY: 301,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.3\n *\n * This response code means that URI of requested resource has been changed temporarily. New changes in the URI might be made in the future. Therefore, this same URI should be used by the client in future requests.\n */\n MOVED_TEMPORARILY: 302,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.4\n *\n * Server sent this response to directing client to get requested resource to another URI with an GET request.\n */\n SEE_OTHER: 303,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.1\n *\n * This is used for caching purposes. It is telling to client that response has not been modified. So, client can continue to use same cached version of response.\n */\n NOT_MODIFIED: 304,\n /**\n * @deprecated\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.6\n *\n * Was defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy. It has been deprecated due to security concerns regarding in-band configuration of a proxy.\n */\n USE_PROXY: 305,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.7\n *\n * Server sent this response to directing client to get requested resource to another URI with same method that used prior request. This has the same semantic than the 302 Found HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.\n */\n TEMPORARY_REDIRECT: 307,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7538#section-3\n *\n * This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header. This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.\n */\n PERMANENT_REDIRECT: 308,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.1\n *\n * This response means that server could not understand the request due to invalid syntax.\n */\n BAD_REQUEST: 400,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.1\n *\n * Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.\n */\n UNAUTHORIZED: 401,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.2\n *\n * This response code is reserved for future use. Initial aim for creating this code was using it for digital payment systems however this is not used currently.\n */\n PAYMENT_REQUIRED: 402,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.3\n *\n * The client does not have access rights to the content, i.e. they are unauthorized, so server is rejecting to give proper response. Unlike 401, the client's identity is known to the server.\n */\n FORBIDDEN: 403,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.4\n *\n * The server can not find requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 to hide the existence of a resource from an unauthorized client. This response code is probably the most famous one due to its frequent occurence on the web.\n */\n NOT_FOUND: 404,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.5\n *\n * The request method is known by the server but has been disabled and cannot be used. For example, an API may forbid DELETE-ing a resource. The two mandatory methods, GET and HEAD, must never be disabled and should not return this error code.\n */\n METHOD_NOT_ALLOWED: 405,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.6\n *\n * This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content following the criteria given by the user agent.\n */\n NOT_ACCEPTABLE: 406,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.2\n *\n * This is similar to 401 but authentication is needed to be done by a proxy.\n */\n PROXY_AUTHENTICATION_REQUIRED: 407,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.7\n *\n * This response is sent on an idle connection by some servers, even without any previous request by the client. It means that the server would like to shut down this unused connection. This response is used much more since some browsers, like Chrome, Firefox 27+, or IE9, use HTTP pre-connection mechanisms to speed up surfing. Also note that some servers merely shut down the connection without sending this message.\n */\n REQUEST_TIMEOUT: 408,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.8\n *\n * This response is sent when a request conflicts with the current state of the server.\n */\n CONFLICT: 409,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.9\n *\n * This response would be sent when the requested content has been permenantly deleted from server, with no forwarding address. Clients are expected to remove their caches and links to the resource. The HTTP specification intends this status code to be used for \"limited-time, promotional services\". APIs should not feel compelled to indicate resources that have been deleted with this status code.\n */\n GONE: 410,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.10\n *\n * The server rejected the request because the Content-Length header field is not defined and the server requires it.\n */\n LENGTH_REQUIRED: 411,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.2\n *\n * The client has indicated preconditions in its headers which the server does not meet.\n */\n PRECONDITION_FAILED: 412,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.11\n *\n * Request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field.\n */\n REQUEST_TOO_LONG: 413,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.12\n *\n * The URI requested by the client is longer than the server is willing to interpret.\n */\n REQUEST_URI_TOO_LONG: 414,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.13\n *\n * The media format of the requested data is not supported by the server, so the server is rejecting the request.\n */\n UNSUPPORTED_MEDIA_TYPE: 415,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.4\n *\n * The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target URI's data.\n */\n REQUESTED_RANGE_NOT_SATISFIABLE: 416,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.14\n *\n * This response code means the expectation indicated by the Expect request header field can't be met by the server.\n */\n EXPECTATION_FAILED: 417,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2324#section-2.3.2\n *\n * Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.\n */\n IM_A_TEAPOT: 418,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6\n *\n * The 507 (Insufficient Storage) status code means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. This condition is considered to be temporary. If the request which received this status code was the result of a user action, the request MUST NOT be repeated until it is requested by a separate user action.\n */\n INSUFFICIENT_SPACE_ON_RESOURCE: 419,\n /**\n * @deprecated\n * Official Documentation @ https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt\n *\n * A deprecated response used by the Spring Framework when a method has failed.\n */\n METHOD_FAILURE: 420,\n /**\n * Official Documentation @ https://datatracker.ietf.org/doc/html/rfc7540#section-9.1.2\n *\n * Defined in the specification of HTTP/2 to indicate that a server is not able to produce a response for the combination of scheme and authority that are included in the request URI.\n */\n MISDIRECTED_REQUEST: 421,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3\n *\n * The request was well-formed but was unable to be followed due to semantic errors.\n */\n UNPROCESSABLE_ENTITY: 422,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.4\n *\n * The resource that is being accessed is locked.\n */\n LOCKED: 423,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.5\n *\n * The request failed due to failure of a previous request.\n */\n FAILED_DEPENDENCY: 424,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-3\n *\n * The origin server requires the request to be conditional. Intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.\n */\n PRECONDITION_REQUIRED: 428,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-4\n *\n * The user has sent too many requests in a given amount of time (\"rate limiting\").\n */\n TOO_MANY_REQUESTS: 429,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-5\n *\n * The server is unwilling to process the request because its header fields are too large. The request MAY be resubmitted after reducing the size of the request header fields.\n */\n REQUEST_HEADER_FIELDS_TOO_LARGE: 431,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7725\n *\n * The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.\n */\n UNAVAILABLE_FOR_LEGAL_REASONS: 451,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.1\n *\n * The server encountered an unexpected condition that prevented it from fulfilling the request.\n */\n INTERNAL_SERVER_ERROR: 500,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.2\n *\n * The request method is not supported by the server and cannot be handled. The only methods that servers are required to support (and therefore that must not return this code) are GET and HEAD.\n */\n NOT_IMPLEMENTED: 501,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.3\n *\n * This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.\n */\n BAD_GATEWAY: 502,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.4\n *\n * The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. This responses should be used for temporary conditions and the Retry-After: HTTP header should, if possible, contain the estimated time before the recovery of the service. The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached.\n */\n SERVICE_UNAVAILABLE: 503,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.5\n *\n * This error response is given when the server is acting as a gateway and cannot get a response in time.\n */\n GATEWAY_TIMEOUT: 504,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.6\n *\n * The HTTP version used in the request is not supported by the server.\n */\n HTTP_VERSION_NOT_SUPPORTED: 505,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6\n *\n * The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.\n */\n INSUFFICIENT_STORAGE: 507,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-6\n *\n * The 511 status code indicates that the client needs to authenticate to gain network access.\n */\n NETWORK_AUTHENTICATION_REQUIRED: 511\n});\n\nexport default { StatusCodes };\n","export const FOLLOWING_STATUS = Object.freeze({\n following: 'following',\n pending: 'pending',\n error: 'error',\n canFollow: 'can_follow',\n canRequest: 'can_request'\n});\n\nexport const FOLLOW_ACTIONS = Object.freeze({\n add: 'add',\n followRequested: 'follow_requested',\n following: 'following',\n requestToFollow: 'request_to_follow',\n follow: 'follow'\n});\n\nexport default { FOLLOWING_STATUS, FOLLOW_ACTIONS };\n","import apiClient from '@strava/api/lib/axios-client';\nimport { StatusCodes } from '@strava/constants/src/httpStatusCodes';\nimport { FOLLOWING_STATUS } from '@strava/constants/src/followingConstants';\nimport { convertKeysToCamel } from '@strava/utils';\n\n/**\n * @typedef {Object} CurrentAthlete\n *\n * @property {number} id\n * @property {string} firstname\n * @property {string} lastname\n * @property {number} athleteType\n * @property {boolean} isSubscriber\n * @property {boolean} isSuperUser\n * @property {string} profileMedium\n * @property {string} profileLarge\n * @property {string} measurementUnits\n * @property {string} datePreference\n * @property {string} chartPreference\n * @property {string} viewPreference\n * @property {Object} features\n * @property {Object} experiments\n * @property {Object} preferences\n * @property {boolean} inPreview\n * @property {number} numDaysRemainingInPreview\n * */\n\n/**\n * @description Fetches the current logged in athlete.\n *\n * @returns {Promise.} currentAthlete\n * */\nexport const getCurrentAthlete = async () => {\n const currentAthlete = await apiClient().get(`/frontend/athletes/current`);\n return convertKeysToCamel(currentAthlete.data.currentAthlete);\n};\n\n/**\n * Follows an athlete on strava.\n *\n * @param {Object} param\n * @param {string} param.followerId - id for the athlete who is requesting the follow\n * @param {string} param.followingId - id for the athlete to be followed\n * @returns {Promise} - enum value PENDING or FOLLOWING\n */\nexport const followAthlete = ({ followerId, followingId, logError }) => {\n return new Promise((resolve) => {\n apiClient()\n .post(`/athletes/${followerId}/follows`, {\n follow: {\n follower_id: followerId,\n following_id: followingId\n }\n })\n .then((response) => {\n if (response?.status === StatusCodes.OK) {\n const { data } = response;\n if (data.approved) {\n resolve(FOLLOWING_STATUS.following);\n } else {\n resolve(FOLLOWING_STATUS.pending);\n }\n } else {\n resolve(FOLLOWING_STATUS.error);\n logError(response.error);\n }\n })\n .catch((e) => {\n resolve(FOLLOWING_STATUS.error);\n logError(e);\n });\n });\n};\n\nexport const bulkFollow = ({ followeeIds, logError }) => {\n return new Promise((resolve) => {\n apiClient()\n .post('/athlete/bulk_follow', {\n followee_ids: followeeIds\n })\n .then((response) => {\n const { success, followed_athlete_ids: ids } = response.data;\n resolve({ success, followedAthleteIds: ids || [] });\n })\n .catch((e) => {\n logError(e);\n resolve({ success: false });\n });\n });\n};\n\nexport const unfollowAthlete = ({ followerId, followingId, logError }) => {\n return new Promise((resolve) => {\n apiClient()\n .delete(\n `/athletes/${followerId}/follows/${followingId}`,\n {\n data: {\n follow: {\n follower_id: followerId,\n following_id: followingId\n }\n }\n },\n { headers: { Accept: 'text/javascript' } }\n )\n .then((response) => {\n if (response?.status === StatusCodes.NO_CONTENT) {\n resolve(true);\n } else {\n logError(response);\n resolve(false);\n }\n })\n .catch((e) => {\n logError(e);\n resolve(false);\n });\n });\n};\n\n/**\n * Gets suggested follow list\n *\n * @param {Object} param\n * @param {string} param.callsite - source making the get request\n * @returns {Promise} - list of suggested friends to follow\n */\nexport const getSuggestedFollows = ({ callsite, logError }) => {\n return new Promise((resolve, reject) => {\n apiClient()\n .get('/athlete/suggested_follows', {\n params: { callsite }\n })\n .then((response) => {\n if (response?.status === StatusCodes.OK) {\n const { data } = response;\n resolve(data);\n } else {\n logError(response.error);\n resolve(response.error);\n }\n })\n .catch((e) => {\n logError(e);\n reject(e);\n });\n });\n};\n\nexport const postEmailContactsOnStrava = ({ importedEmails, logError }) => {\n return new Promise((resolve, reject) => {\n apiClient()\n .post('/athletes/email_contacts_on_strava', {\n emails: importedEmails\n })\n .then((response) => {\n if (response?.status === StatusCodes.OK) {\n resolve(response);\n } else {\n logError(response.error);\n resolve(response);\n }\n })\n .catch((e) => {\n logError(e);\n reject(e);\n });\n });\n};\n\nexport const deleteUnderageAthlete = ({ logError, locale }) => {\n return new Promise((resolve, reject) => {\n apiClient({ currentLanguage: locale })\n .delete('/athlete/destroy_u13')\n .then((response) => {\n if (response?.status === StatusCodes.OK) {\n resolve(response);\n } else {\n logError(response.error);\n resolve(response);\n }\n })\n .catch((e) => {\n logError(e);\n reject(e);\n });\n });\n};\n\n/**\n * @param {Object} params\n * @param {string} params.viewingAthleteId\n * @param {string} params.followingId\n * @param {string} params.followerId\n *\n * @return {Promise}\n * */\nexport const postAthleteFollow = ({\n viewingAthleteId,\n followingId,\n followerId\n}) => {\n return apiClient().post(`/athletes/${viewingAthleteId}/follows`, {\n follow: {\n following_id: followingId,\n follower_id: followerId\n }\n });\n};\n\n/**\n * @param {Object} params\n * @param {string} params.viewingAthleteId\n * @param {string} params.followId\n *\n * @return {Promise}\n * */\nexport const deleteAthleteFollow = ({ viewingAthleteId, followId }) =>\n apiClient().delete(`/athletes/${viewingAthleteId}/follows/${followId}`);\n\n/**\n * @param {Object} params\n * @param {string} [params.entity]\n * @param {string} [params.entityId]\n * @param {string} [params.surfaceType]\n *\n * @return {Promise}\n * */\nexport const fetchMentionableEntities = async ({\n entity,\n entityId,\n surfaceType\n}) => {\n let url = '/athlete/mentionable_entities';\n\n const params = new URLSearchParams();\n if (entity && entityId) {\n params.append('parent_type', entity);\n params.append('parent_id', entityId);\n }\n if (surfaceType) {\n params.append('surface_type', surfaceType);\n }\n\n const queryString = params.toString();\n if (queryString) {\n url += `?${queryString}`;\n }\n\n return apiClient().get(url);\n};\n\nexport const putAthleteAttributes = ({ athleteId, attributes, logError }) => {\n return new Promise((resolve) => {\n apiClient({\n options: {\n headers: { accept: 'text/javascript, application/javascript' }\n }\n })\n .put(`/athletes/${athleteId}`, { athlete: attributes })\n .then((response) => {\n if (response?.error) {\n logError(response.error);\n }\n resolve(response);\n })\n .catch((e) => {\n logError(e);\n resolve(e);\n });\n });\n};\n\nexport const updateAthleteSettings = ({ settings, logError }) => {\n return new Promise((resolve, reject) => {\n apiClient()\n .put('/athlete_settings', { settings })\n .then((response) => {\n if (response?.error) {\n logError(response.error);\n }\n resolve(response);\n })\n .catch((e) => {\n logError(e);\n reject(e);\n });\n });\n};\n\nexport const getDataSharingOptOut = ({ logError }) => {\n return new Promise((resolve) => {\n apiClient()\n .get('/athlete_settings/data_sharing')\n .then((response) => {\n if (response?.error) {\n logError(response.error);\n }\n resolve(response);\n })\n .catch((e) => {\n logError(e);\n resolve(e);\n });\n });\n};\n\nexport default {\n postEmailContactsOnStrava,\n followAthlete,\n unfollowAthlete,\n getSuggestedFollows,\n deleteUnderageAthlete,\n putAthleteAttributes,\n updateAthleteSettings,\n getDataSharingOptOut\n};\n","import {\n Dispatch,\n SetStateAction,\n useRef,\n useCallback,\n useEffect,\n useState\n} from 'react';\n\n/**\n * The `useSafeState` hook acts the same as React's `useState`,\n * where we can set the initial state, and it returns (1) the current state,\n * and (2) the state setter.\n *\n * But with `useSafeState`, it will only set the state when the component is mounted\n * in order to prevent memory leaks and avoid this warning:\n * \"Warning: Can’t perform a React state update on an unmounted component.\"\n * When a component is unmounted, we don't want to set the state.\n *\n * This helps when we have async behavior where we call an async API call,\n * then based on the async response, we set the state. But if the component\n * unmounts before the API call resolves, we don't want to set the state.\n * */\n// eslint-disable-next-line import/prefer-default-export\nexport const useSafeState = (\n initialState: S | (() => S)\n): [S, Dispatch>] => {\n const mountedRef = useRef(false);\n const [state, setState] = useState(initialState);\n\n useEffect(() => {\n mountedRef.current = true;\n return () => {\n mountedRef.current = false;\n };\n }, []);\n\n const setSafeState = useCallback(\n (args) => (mountedRef.current ? setState(args) : () => {}),\n []\n );\n\n return [state, setSafeState];\n};\n","export const YOUNGEST_AGE_ON_PLATFORM = 13;\n\nexport const YOUNGEST_AGE_FOR_HEALTH_AND_PROMO = 16;\n\nexport const GENDER = Object.freeze({\n man: 'man',\n woman: 'woman',\n preferNotSay: 'prefer_not_say',\n nonBinary: 'nonbinary'\n});\n\nexport const LOCALE = Object.freeze({\n deDE: 'de-DE',\n enUS: 'en-US',\n enGB: 'en-GB',\n esES: 'es-ES',\n es419: 'es-419',\n frFR: 'fr-FR',\n itIT: 'it-IT',\n jaJP: 'ja-JP',\n koKR: 'ko-KR',\n nlNL: 'nl-NL',\n ptBR: 'pt-BR',\n ptPT: 'pt-PT',\n ruRU: 'ru-RU',\n zhCN: 'zh-CN',\n zhTW: 'zh-TW'\n});\n\n// If a language has more than one locale, the first in the list is the default\nexport const LANGUAGE_LOCALES = Object.freeze({\n de: [LOCALE.deDE],\n // en is intentionally omitted here since English is the global default\n es: [LOCALE.esES, LOCALE.es419],\n fr: [LOCALE.frFR],\n it: [LOCALE.itIT],\n ja: [LOCALE.jaJP],\n ko: [LOCALE.koKR],\n nl: [LOCALE.nlNL],\n pt: [LOCALE.ptPT, LOCALE.ptBR],\n ru: [LOCALE.ruRU],\n zh: [LOCALE.zhCN, LOCALE.zhTW]\n});\n\nexport const EXPERIMENT_COHORTS = Object.freeze({\n control: 'control',\n variantA: 'variant-a',\n variantB: 'variant-b'\n});\n\nexport const MOBILE_OS = Object.freeze({\n android: 'android',\n iPhone: 'iphone',\n iPad: 'ipad'\n});\n\nexport const SUPPORTED_BROWSERS = Object.freeze({\n chrome: 'chrome',\n firefox: 'firefox',\n safari: 'safari'\n});\n\n// universal link paths from 'apple-app-site-association' file in active\nexport const APPLE_APP_LINK_PATHS = [\n '/dashboard',\n '/activities/*',\n '/athletes/*',\n '/segments/*',\n '/challenges/*',\n '/videos/*',\n '/routes/*',\n '/premium/*',\n '/settings/*',\n '/shop/*',\n '/athlete/*',\n '/clubs/*',\n '/summit/join',\n '/summit/perks',\n '/oauth/mobile/authorize'\n];\n\nexport const ATHLETES_VISIBILITY = Object.freeze({\n optedOut: 'opted_out' // Strava::Athletes::Visibility::OPTED_OUT\n});\n\nexport default {\n YOUNGEST_AGE_ON_PLATFORM,\n YOUNGEST_AGE_FOR_HEALTH_AND_PROMO,\n GENDER,\n LOCALE,\n EXPERIMENT_COHORTS,\n MOBILE_OS,\n SUPPORTED_BROWSERS,\n APPLE_APP_LINK_PATHS,\n ATHLETES_VISIBILITY\n};\n","/**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\nfunction isNil(value) {\n return value == null;\n}\n\nexport default isNil;\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"CPRAComplianceModal--modal--NHq85\",\"modalTitle\":\"CPRAComplianceModal--modalTitle--uIFxT\",\"modalBody\":\"CPRAComplianceModal--modalBody--vlLxS\",\"modalActions\":\"CPRAComplianceModal--modalActions--BMmFs\"};","import React, { useEffect } from 'react';\nimport { Markup } from 'interweave';\nimport Modal, { ModalTitle, ModalBody, ModalActions } from '@strava/ui/Modal';\nimport Button from '@strava/ui/Button';\nimport {\n getDataSharingOptOut,\n updateAthleteSettings\n} from '@strava/api/microfrontends/athlete';\nimport {\n useStravaAnalytics,\n useStravaErrorLogging\n} from '@strava/container-context';\nimport { useSafeState } from '@strava/react-hooks/src/use-safe-state';\nimport { ATHLETES_VISIBILITY } from '@strava/constants/src/appConstants';\nimport { isNil } from 'lodash-es';\n\nimport styles from './CPRAComplianceModal.module.scss';\n\ninterface Props {\n onDismiss: () => void;\n isLoggedIn: boolean;\n t: (\n key: string,\n params?: Record\n ) => string;\n dataSharingOptedOut?: boolean;\n}\n\nconst CPRAComplianceModal = ({\n onDismiss,\n isLoggedIn = false,\n t,\n dataSharingOptedOut\n}: Props) => {\n const { logError } = useStravaErrorLogging();\n const { track } = useStravaAnalytics();\n const [isProcessing, setIsProcessing] = useSafeState(false);\n const [isOptedOut, setIsOptedOut] = useSafeState(\n dataSharingOptedOut || false\n );\n\n useEffect(() => {\n // retrieve data sharing opt out status if its not provided as a prop\n if (isNil(dataSharingOptedOut)) {\n setIsProcessing(true);\n (async () => {\n const response = await getDataSharingOptOut({ logError });\n if (response?.data?.['opted_out']) {\n setIsOptedOut(true);\n } else {\n setIsProcessing(false);\n }\n })();\n }\n }, [logError, setIsProcessing, setIsOptedOut, dataSharingOptedOut]);\n\n useEffect(() => {\n track({\n category: 'privacy_compliance',\n page: 'do_not_share_info',\n action: 'screen_enter',\n element: 'modal',\n properties: {\n page_url: window.location.href\n }\n });\n }, [track]);\n\n const handleOptOut = async () => {\n setIsProcessing(true);\n if (isLoggedIn) {\n try {\n await updateAthleteSettings({\n settings: { data_sharing: ATHLETES_VISIBILITY.optedOut },\n logError\n });\n setIsOptedOut(true);\n } catch (error) {\n // let user try again\n setIsProcessing(false);\n }\n } else {\n // domain and cookie expiration logic copied from the cookie banner logic in active\n let domain;\n if (/localhost/.test(window.location.hostname)) {\n domain = 'localhost';\n } else if (/staging\\./.test(window.location.hostname)) {\n domain = '.staging.strava.com';\n } else {\n domain = '.strava.com';\n }\n\n const cookieExpiration = new Date();\n cookieExpiration.setFullYear(cookieExpiration.getFullYear() + 1);\n\n document.cookie =\n `_strava_cpra=${ATHLETES_VISIBILITY.optedOut};` +\n `expires=${cookieExpiration.toUTCString()};` +\n `domain=${domain};` +\n 'path=/;';\n\n setIsOptedOut(true);\n }\n\n track({\n category: 'privacy_compliance',\n page: 'do_not_share_info',\n action: 'click',\n element: 'opt_out'\n });\n };\n\n return (\n \n {t('modal.title')}\n \n \n \n \n \n \n \n {isOptedOut ? t('modal.opted_out') : t('modal.opt_out')}\n \n \n \n );\n};\n\nexport default CPRAComplianceModal;\n","// extracted by mini-css-extract-plugin\nexport default {\"cpraButton\":\"src--cpraButton--ZlVoD\"};","import React, { useCallback, useState } from 'react';\nimport { useStravaTranslations } from '@strava/container-context';\nimport clsx from '@strava/ui/clsx';\nimport CPRAComplianceModal from './components/CPRAComplianceModal';\n\nimport styles from './CPRAComplianceCTA.module.scss';\n\nexport interface CPRAComplianceCTAProps {\n isLoggedIn?: boolean;\n className?: string;\n i18nPrefix?: string;\n dataSharingOptedOut?: boolean;\n}\n\nconst CPRAComplianceCTA = ({\n isLoggedIn = false,\n className = '',\n i18nPrefix = '',\n dataSharingOptedOut\n}: CPRAComplianceCTAProps) => {\n const [showModal, setShowModal] = useState(false);\n\n const { t: _t } = useStravaTranslations();\n\n const t = useCallback(\n (\n key: string,\n params?: Record\n ) => _t(`${i18nPrefix}.cpra_compliance_cta.${key}`, { ...params }),\n [_t, i18nPrefix]\n );\n\n return (\n <>\n setShowModal(true)}\n >\n {t('cta')}\n \n {showModal && (\n setShowModal(false)}\n isLoggedIn={isLoggedIn}\n t={t}\n dataSharingOptedOut={dataSharingOptedOut}\n />\n )}\n \n );\n};\n\nexport default CPRAComplianceCTA;\n","export const DEFAULT_LOCALIZED_IMAGES_SIZES = [\n { id: 'lg', value: 'large', minVw: '1200px' },\n { id: 'md', value: 'medium', minVw: '992px' },\n { id: 'sm', value: 'small', minVw: '768px' },\n { id: 'xs', value: 'xsmall', minVw: '0px' }\n];\n\nexport const DEFAULT_LOCALIZED_IMAGES_FORMATS = ['webp', 'png'];\n\nexport const DEFAULT_LOCALIZED_IMAGES_RESOLUTIONS = ['1x', '2x'];\n\nexport const DEFAULT_LOCALIZED_IMAGES_DIRECTORY = 'shared';\n\nexport const DEFAULT_LOCALIZED_IMAGES_SIZES_ORDER = [\n 'xl',\n 'lg',\n 'md',\n 'sm',\n 'xs'\n];\n\nexport const DEFAULT_LOCALIZED_IMAGES_FORMATS_ORDER = ['webp', 'png', 'jpg'];\n","import { LOCALE } from '@strava/constants/src/appConstants';\n\nexport const sortImagesBySizeAndFormat =\n (sizeOrder, formatOrder) => (image1, image2) => {\n const { size: image1Size, format: image1Format } = image1;\n const { size: image2Size, format: image2Format } = image2;\n\n // Sort images by size\n if (sizeOrder.indexOf(image1Size?.id) > sizeOrder.indexOf(image2Size?.id)) {\n return 1;\n }\n\n if (sizeOrder.indexOf(image1Size?.id) < sizeOrder.indexOf(image2Size?.id)) {\n return -1;\n }\n\n // Sort images by format\n if (formatOrder.indexOf(image1Format) > formatOrder.indexOf(image2Format)) {\n return 1;\n }\n\n if (formatOrder.indexOf(image1Format) < formatOrder.indexOf(image2Format)) {\n return -1;\n }\n\n return 0;\n };\n\nexport const getImageLocaleDirectory = (locale, defaultDirectory) => {\n if (!locale) {\n return defaultDirectory;\n }\n\n return Object.values(LOCALE).includes(locale) ? locale : LOCALE.enUS;\n};\n\nexport const getImageLocale = (locale) => {\n if (!locale) {\n return null;\n }\n\n return Object.values(LOCALE).includes(locale) ? locale : LOCALE.enUS;\n};\n\nexport default {\n getImageLocaleDirectory,\n getImageLocale,\n sortImagesBySizeAndFormat\n};\n","import { useEffect } from 'react';\nimport { useSafeState } from '../use-safe-state';\nimport {\n DEFAULT_LOCALIZED_IMAGES_SIZES,\n DEFAULT_LOCALIZED_IMAGES_FORMATS,\n DEFAULT_LOCALIZED_IMAGES_RESOLUTIONS,\n DEFAULT_LOCALIZED_IMAGES_DIRECTORY,\n DEFAULT_LOCALIZED_IMAGES_SIZES_ORDER,\n DEFAULT_LOCALIZED_IMAGES_FORMATS_ORDER\n} from './constants';\nimport {\n getImageLocale,\n getImageLocaleDirectory,\n sortImagesBySizeAndFormat\n} from './helpers';\n\n/**\n * This hook accepts a 'key' and additional optional params and returns an array of localized image assets.\n * For each image asset a callback is called to load the asset.\n * @param {Object} params\n * @param {string} params.key - string representing collection of image files e.g. 'Strava.com-Home-Screen1'\n * @param {string} params.locale - locale to use in filename / filepath e.g. 'de-DE' (optional, if none provided, defaults to 'defaultDirectory')\n * @param {Array=} params.sizes - sizes to use for a given asset. e.g. [{ id: 'lg', value: 'large', minVw: '1200px' }, { id: 'md', value: 'medium', minVw: '992px' }]\n * @param {Array=} params.formats - formats to use for a given asset. e.g. ['webp', 'png']\n * @param {Array=} params.resolutions - resolutions to use for a given asset e.g. ['1x', '2x']\n * @param {string=} params.defaultDirectory - directory to use if no locale provided. Defaults to 'shared'\n * @param {Function=} params.imageImportCallback - Callback function; called for each image instance. Params passed: imageLocaleDirectory, imageKey, imageSize, imageFormat, imageResolution, imageLocale\n * @param {Function=} params.logError - Error handling function\n * @returns {Array} images\n */\n\nexport const useLocalizedImages = ({\n key,\n locale,\n sizes = DEFAULT_LOCALIZED_IMAGES_SIZES,\n formats = DEFAULT_LOCALIZED_IMAGES_FORMATS,\n resolutions = DEFAULT_LOCALIZED_IMAGES_RESOLUTIONS,\n defaultDirectory = DEFAULT_LOCALIZED_IMAGES_DIRECTORY,\n imageImportCallback = () => {},\n logError\n}) => {\n const [images, setImages] = useSafeState([]);\n\n useEffect(() => {\n // Import asset from dynamic filepath\n const importImage = async (imageData) => {\n try {\n return imageImportCallback(imageData);\n } catch (error) {\n logError(new Error(`Error in imageImportCallback, Error: ${error}`));\n return null;\n }\n };\n\n const initImages = async () => {\n sizes.forEach((size) => {\n formats.forEach((format) => {\n resolutions.forEach(async (resolution) => {\n // Import file\n const file = await importImage({\n imageLocaleDirectory: getImageLocaleDirectory(\n locale,\n defaultDirectory\n ),\n imageKey: key,\n imageSize: size,\n imageFormat: format,\n imageResolution: resolution,\n imageLocale: getImageLocale(locale)\n });\n\n if (file) {\n // Update state with new image\n setImages((prevImages) => [\n ...prevImages,\n { size, format, resolution, file }\n ]);\n }\n });\n });\n });\n };\n\n initImages();\n }, [\n key,\n locale,\n formats,\n sizes,\n resolutions,\n imageImportCallback,\n logError,\n defaultDirectory,\n setImages\n ]);\n\n // Note: Sorting the images before returning as the order is not guranteed due to async import operations.\n // Order is important for use cases such as tags within elements\n return images.sort(\n sortImagesBySizeAndFormat(\n DEFAULT_LOCALIZED_IMAGES_SIZES_ORDER,\n DEFAULT_LOCALIZED_IMAGES_FORMATS_ORDER\n )\n );\n};\n\nexport default useLocalizedImages;\n","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nconst Badge = ({\n badge,\n imgTagFallbackConfig = { size: 'md', format: 'png', resolution: '1x' },\n onClick\n}) => {\n const [sources, setSources] = useState({});\n const [fallbackImgSrc, setFallbackImgSrc] = useState(null);\n const { id, url, images, isLazy, alt } = badge;\n\n useEffect(() => {\n const getSourceData = () => {\n const imgWebp1x = images.find(\n (image) => image.resolution === '1x' && image.format === 'webp'\n )?.file;\n const imgWebp2x = images.find(\n (image) => image.resolution === '2x' && image.format === 'webp'\n )?.file;\n const imgPng1x = images.find(\n (image) => image.resolution === '1x' && image.format === 'png'\n )?.file;\n const imgPng2x = images.find(\n (image) => image.resolution === '2x' && image.format === 'png'\n )?.file;\n\n return {\n ...((imgWebp1x || imgWebp2x) && {\n webp: [\n ...(imgWebp1x ? [`${imgWebp1x} 1x`] : []),\n ...(imgWebp2x ? [`${imgWebp2x} 2x`] : [])\n ].join(', ')\n }),\n ...((imgPng1x || imgPng2x) && {\n png: [\n ...(imgPng1x ? [`${imgPng1x} 1x`] : []),\n ...(imgPng2x ? [`${imgPng2x} 2x`] : [])\n ].join(', ')\n })\n };\n };\n\n const sourceData = getSourceData();\n\n setSources(sourceData);\n }, [images]);\n\n useEffect(() => {\n if (!fallbackImgSrc) {\n const defaultImage = images.find(\n (image) =>\n image.resolution === imgTagFallbackConfig.resolution &&\n image.format === imgTagFallbackConfig.format &&\n image.size.id === imgTagFallbackConfig.size\n );\n\n if (defaultImage?.file) {\n setFallbackImgSrc(defaultImage.file);\n }\n }\n }, [images, imgTagFallbackConfig, fallbackImgSrc]);\n\n return (\n onClick(id)} data-cy={id}>\n \n {Object.entries(sources).map(([key, value]) => (\n \n ))}\n \n \n \n );\n};\n\nBadge.propTypes = {\n badge: PropTypes.shape({\n id: PropTypes.string.isRequired,\n url: PropTypes.string,\n images: PropTypes.arrayOf(\n PropTypes.shape({\n file: PropTypes.string,\n format: PropTypes.string,\n resolution: PropTypes.string,\n size: PropTypes.shape({\n id: PropTypes.string,\n value: PropTypes.string,\n minVw: PropTypes.string\n })\n })\n ),\n isLazy: PropTypes.bool,\n alt: PropTypes.string\n }).isRequired,\n imgTagFallbackConfig: PropTypes.shape({\n size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg']),\n format: PropTypes.oneOf(['png', 'webp']),\n resolution: PropTypes.oneOf(['1x', '2x'])\n }),\n onClick: PropTypes.func.isRequired\n};\n\nBadge.defaultProps = {\n imgTagFallbackConfig: undefined\n};\n\nexport default Badge;\n","export const APP_STORE_BADGE_SIZES = [{ id: 'md', value: '', minVw: '0px' }];\n\nexport const APP_STORES = Object.freeze({\n google: 'google',\n apple: 'apple',\n unknown: 'unknown'\n});\n","export const YOUNGEST_AGE_ON_PLATFORM = 13;\n\nexport const YOUNGEST_AGE_FOR_HEALTH_AND_PROMO = 16;\n\nexport const GENDER = Object.freeze({\n man: 'man',\n woman: 'woman',\n preferNotSay: 'prefer_not_say',\n nonBinary: 'nonbinary'\n});\n\nexport const LOCALE = Object.freeze({\n deDE: 'de-DE',\n enUS: 'en-US',\n enGB: 'en-GB',\n esES: 'es-ES',\n es419: 'es-419',\n frFR: 'fr-FR',\n itIT: 'it-IT',\n jaJP: 'ja-JP',\n koKR: 'ko-KR',\n nlNL: 'nl-NL',\n ptBR: 'pt-BR',\n ptPT: 'pt-PT',\n ruRU: 'ru-RU',\n zhCN: 'zh-CN',\n zhTW: 'zh-TW'\n});\n\n// If a language has more than one locale, the first in the list is the default\nexport const LANGUAGE_LOCALES = Object.freeze({\n de: [LOCALE.deDE],\n // en is intentionally omitted here since English is the global default\n es: [LOCALE.esES, LOCALE.es419],\n fr: [LOCALE.frFR],\n it: [LOCALE.itIT],\n ja: [LOCALE.jaJP],\n ko: [LOCALE.koKR],\n nl: [LOCALE.nlNL],\n pt: [LOCALE.ptPT, LOCALE.ptBR],\n ru: [LOCALE.ruRU],\n zh: [LOCALE.zhCN, LOCALE.zhTW]\n});\n\nexport const EXPERIMENT_COHORTS = Object.freeze({\n control: 'control',\n variantA: 'variant-a',\n variantB: 'variant-b'\n});\n\nexport const MOBILE_OS = Object.freeze({\n android: 'android',\n iPhone: 'iphone',\n iPad: 'ipad'\n});\n\nexport const SUPPORTED_BROWSERS = Object.freeze({\n chrome: 'chrome',\n firefox: 'firefox',\n safari: 'safari'\n});\n\n// universal link paths from 'apple-app-site-association' file in active\nexport const APPLE_APP_LINK_PATHS = [\n '/dashboard',\n '/activities/*',\n '/athletes/*',\n '/segments/*',\n '/challenges/*',\n '/videos/*',\n '/routes/*',\n '/premium/*',\n '/settings/*',\n '/shop/*',\n '/athlete/*',\n '/clubs/*',\n '/summit/join',\n '/summit/perks',\n '/oauth/mobile/authorize'\n];\n\nexport const ATHLETES_VISIBILITY = Object.freeze({\n optedOut: 'opted_out' // Strava::Athletes::Visibility::OPTED_OUT\n});\n\nexport default {\n YOUNGEST_AGE_ON_PLATFORM,\n YOUNGEST_AGE_FOR_HEALTH_AND_PROMO,\n GENDER,\n LOCALE,\n EXPERIMENT_COHORTS,\n MOBILE_OS,\n SUPPORTED_BROWSERS,\n APPLE_APP_LINK_PATHS,\n ATHLETES_VISIBILITY\n};\n","import React, { useCallback } from 'react';\nimport { useLocalizedImages } from '@strava/react-hooks/src/use-localized-images';\nimport { useStravaBranch } from '@strava/container-context';\nimport Badge from './components/Badge';\nimport { APP_STORES, APP_STORE_BADGE_SIZES } from './constants';\nimport { mobileOsToAppStore } from './helpers';\n\nimport {\n useStravaErrorLogging,\n useStravaTranslations\n} from '@strava/container-context';\n\nconst AppStoreBadges = ({ onBadgeClick, className, userAgent }) => {\n const { t, getLanguage } = useStravaTranslations();\n const locale = getLanguage();\n\n const { logError } = useStravaErrorLogging();\n const { appLink } = useStravaBranch();\n\n // Note: Example path (locale provided) - './media/de-DE/app-store-de-DE@1x.png`\n const importBadgeImage = useCallback(\n async ({\n imageLocaleDirectory,\n imageKey,\n imageFormat,\n imageResolution,\n imageLocale\n }) => {\n // Create dynamic path to file\n const path = `${imageLocaleDirectory}/${imageKey}-${\n imageLocale ? `${imageLocale}` : ''\n }@${imageResolution}.${imageFormat}`;\n\n try {\n // Import file\n return (\n await import(\n /* webpackMode: \"eager\" */\n /* webpackExports: [\"default\", \"named\"] */\n `./media/${path}`\n )\n ).default;\n } catch (error) {\n logError(error);\n return null;\n }\n },\n [logError]\n );\n\n const appleBadgeImages = useLocalizedImages({\n key: 'app-store',\n locale,\n imageImportCallback: importBadgeImage,\n logError,\n sizes: APP_STORE_BADGE_SIZES\n });\n\n const googleBadgeImages = useLocalizedImages({\n key: 'play-store',\n locale,\n imageImportCallback: importBadgeImage,\n logError,\n sizes: APP_STORE_BADGE_SIZES\n });\n\n const appStore = mobileOsToAppStore(userAgent);\n\n return (\n
    \n {[APP_STORES.apple, APP_STORES.unknown].includes(appStore) && (\n
  • \n \n
  • \n )}\n {[APP_STORES.google, APP_STORES.unknown].includes(appStore) && (\n
  • \n \n
  • \n )}\n
\n );\n};\n\nexport default AppStoreBadges;\n","import { getMobileOS } from '@strava/utils';\nimport { MOBILE_OS } from '@strava/constants/src/appConstants';\nimport { APP_STORES } from './constants';\n\nexport const mobileOsToAppStore = (userAgent) => {\n switch (getMobileOS(userAgent)) {\n case MOBILE_OS.android:\n return APP_STORES.google;\n case MOBILE_OS.iPhone:\n case MOBILE_OS.iPad:\n return APP_STORES.apple;\n default:\n return APP_STORES.unknown;\n }\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"socialLink\":\"SocialLink--socialLink--HOKPx\"};","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport styles from './SocialLink.module.scss';\n\nconst SocialLink = ({ url, image, altText, target, rel }) => {\n return (\n \n {altText}\n \n );\n};\n\nSocialLink.propTypes = {\n url: PropTypes.string.isRequired,\n image: PropTypes.string.isRequired,\n altText: PropTypes.string.isRequired,\n target: PropTypes.string,\n rel: PropTypes.string\n};\n\nSocialLink.defaultProps = {\n target: '_blank',\n rel: 'noopener noreferrer'\n};\n\nexport default SocialLink;\n","// extracted by mini-css-extract-plugin\nexport default {\"footer\":\"Footer--footer--PjFQL\",\"cpraComplianceCta\":\"Footer--cpraComplianceCta--QQWeV\",\"container\":\"Footer--container--1gwsQ\",\"privacySocial\":\"Footer--privacySocial--FpGo3\",\"social\":\"Footer--social--54oRo\",\"links\":\"Footer--links--OtNG1\",\"highlight\":\"Footer--highlight--s9hb0\"};","import React, { useMemo } from 'react';\nimport StravaLogo from '@strava/ui/StravaLogo';\nimport CPRAComplianceCTA from '@strava/cpra-compliance-cta';\nimport clsx from '@strava/ui/clsx';\nimport AppStoreBadges from '@strava/shared-ui/src/AppStoreBadges';\nimport SocialLink from './components/SocialLink';\nimport { useFrontDoorsPageContainerContext } from '../../state/FrontDoorsPageContainerContext';\n\nimport socialTwitterImage from '../../media/social_tw.svg';\nimport socialYouTubeImage from '../../media/social_yt.svg';\nimport socialInstagramImage from '../../media/social_ig.svg';\nimport socialLinkedInImage from '../../media/social_li.svg';\nimport socialFacebookImage from '../../media/social_fb.svg';\n\nimport styles from './Footer.module.scss';\n\nconst Footer = () => {\n const { t, state, onFooterAppStoreBadgeClick } =\n useFrontDoorsPageContainerContext();\n const { dataSharingOptedOut, cpraI18nPrefix, menuConfig, userAgent } = state;\n const { showLoginOptionOnly } = menuConfig;\n\n const socialLinks = useMemo(\n () => [\n {\n id: 1,\n url: 'https://twitter.com/strava',\n image: socialTwitterImage,\n altText: t('footer.social.alt.twitter')\n },\n {\n id: 2,\n url: 'https://www.youtube.com/stravainc',\n image: socialYouTubeImage,\n altText: t('footer.social.alt.youtube')\n },\n {\n id: 3,\n url: 'https://www.instagram.com/strava/',\n image: socialInstagramImage,\n altText: t('footer.social.alt.instagram')\n },\n {\n id: 4,\n url: 'https://www.linkedin.com/company/strava-inc.',\n image: socialLinkedInImage,\n altText: t('footer.social.alt.linkedin')\n },\n {\n id: 5,\n url: 'https://www.facebook.com/Strava',\n image: socialFacebookImage,\n altText: t('footer.social.alt.facebook')\n }\n ],\n [t]\n );\n\n return (\n
\n \n );\n};\n\nexport default Footer;\n","export const UPDATE_WINDOW_SCROLL_TOP = 'UPDATE_WINDOW_SCROLL_TOP';\n\nexport default {\n UPDATE_WINDOW_SCROLL_TOP\n};\n","import { UPDATE_WINDOW_SCROLL_TOP } from './FrontDoorsPageContainer.actions';\n\nexport const reducer = (state, action) => {\n switch (action.type) {\n case UPDATE_WINDOW_SCROLL_TOP: {\n const { windowScrollTop } = action.payload;\n return {\n ...state,\n windowScrollTop\n };\n }\n default: {\n return { ...state };\n }\n }\n};\n\nexport default { reducer };\n","const THEMES = Object.freeze({\n dark: 'dark',\n light: 'light'\n});\n\nexport default THEMES;\n","// extracted by mini-css-extract-plugin\nexport default {\"dark\":\"front-doors-page-container-ui--dark--t9iO4\",\"light\":\"front-doors-page-container-ui--light--FZ3G5\",\"body\":\"front-doors-page-container-ui--body--0zUDy\"};","import React, {\n useCallback,\n useEffect,\n useMemo,\n useReducer,\n useRef\n} from 'react';\nimport PropTypes from 'prop-types';\nimport {\n useStravaAnalytics,\n useStravaErrorLogging,\n useStravaExperiment,\n useStravaTranslations\n} from '@strava/container-context';\nimport { useWindowScrollTop } from '@strava/react-hooks';\nimport clsx from '@strava/ui/clsx';\nimport {\n SignUpModal,\n SignUpModalContextProvider\n} from '@strava/authentication-ui';\nimport Header from './components/Header';\nimport Footer from './components/Footer';\nimport { FrontDoorsPageContainerContextProvider } from './state/FrontDoorsPageContainerContext';\nimport { reducer } from './state/FrontDoorsPageContainer.reducer';\nimport { UPDATE_WINDOW_SCROLL_TOP } from './state/FrontDoorsPageContainer.actions';\nimport THEMES from './constants/themes';\n\nimport styles from './FrontDoorsPageContainer.module.scss';\nimport { isNavSignUpVariantA } from './shared/pageUtils';\n\n/**\n *\n * @param {object} authorizationUrls - (optional) urls to be used for facebook, google, apple and email sign-up\n * options\n *\n * @param {boolean} showSmartBanner - Controls whether the smartbanner should be shown on the mobile-web version of the page.\n * Default is false (hide).\n *\n * @param {string} userAgent - Request user agent. This is required for SSR (nextJS apps).\n *\n * @param {string} cpraI18nPrefix - (optional) path to 'cpra_compliance_cta' translations, if different from just `legal` (as is the\n * case for when the FrontDoorsPageContainer is used in active instead of a nextjs app)\n *\n * @param {boolean} menuConfig.showLoginOptionOnly - (optional) true if we want to hide the `register` options, such as on the `/register` page.\n * Will also adjust styling for the login option so it gets primary/highlighted styling. Defaults to false.\n *\n * @param {string} theme - Theme to apply to FDPC. Currently can be either 'light' or 'dark'\n *\n * @param {function} onScreenEnter - (optional) Callback function, called on screen enter\n *\n * @param {function} onDesktopHeaderLogoClick - (optional) Callback function, called when athlete clicks on Strava logo on desktop header\n *\n * @param {function} onDesktopHeaderLoginBtnClick - (optional) Callback function, called when athlete clicks on 'Login' on desktop header\n *\n * @param {function} onDesktopHeaderSignupBtnClick - (optional) Callback function, called when athlete clicks on 'Join for Free' on desktop header\n *\n * @param {function} onMobileHeaderLogoClick - (optional) Callback function, called when athlete clicks on Strava logo on mobile header\n *\n * @param {function} onMobileHeaderSignupBtnClick - (optional) Callback function, called when athlete clicks on 'Get the App' on mobile header\n *\n * @param {function} onMobileHeaderMenuOpen - (optional) Callback function, called when athlete opens the menu on mobile header\n *\n * @param {function} onMobileHeaderMenuClose - (optional) Callback function, called when athlete closes the menu on mobile header\n *\n * @param {function} onMobileHeaderMenuLoginBtnClick - (optional) Callback function, called when athlete clicks on 'Login' in the menu on mobile header\n *\n * @param {function} onMobileHeaderMenuSignupBtnClick - (optional) Callback function, called when athlete clicks on 'Get the App' in the menu on mobile header\n *\n * @param {function} onMobileHeaderMenuNavItemClick - (optional) Callback function, called when athlete clicks on nav item in the menu on mobile header\n *\n * @param {function} onFooterAppStoreBadgeClick - (optional) Callback function, called when athlete clicks on App store badges on footer\n *\n */\nconst FrontDoorsPageContainer = ({\n appleState,\n authorizationUrls,\n category,\n children,\n className,\n cpraI18nPrefix,\n dataSharingOptedOut,\n footer,\n header,\n honeyPot,\n locale,\n menuConfig,\n onDesktopHeaderLoginBtnClick,\n onDesktopHeaderLogoClick,\n onDesktopHeaderSignupBtnClick,\n onFooterAppStoreBadgeClick,\n onMobileHeaderLogoClick,\n onMobileHeaderMenuClose,\n onMobileHeaderMenuLoginBtnClick,\n onMobileHeaderMenuNavItemClick,\n onMobileHeaderMenuOpen,\n onMobileHeaderMenuSignupBtnClick,\n onMobileHeaderSignupBtnClick,\n onScreenEnter,\n page,\n reCaptchaSiteKey,\n showSmartBanner,\n theme,\n url,\n userAgent\n}) => {\n const { track: _track } = useStravaAnalytics();\n const { t: _t } = useStravaTranslations();\n const { experiment } = useStravaExperiment();\n const noop = () => {};\n\n const { showHeader } = header;\n const { showFooter } = footer;\n\n const {\n logError,\n setTags = noop,\n setContext = noop\n } = useStravaErrorLogging();\n\n const [windowScrollTop] = useWindowScrollTop();\n\n // override translations helper function\n const t = useMemo(\n () => (key, params) =>\n _t(`front_doors_page_container_ui.${key}`, { ...params }),\n [_t]\n );\n\n const headerRef = useRef();\n\n // override analytics helper function\n const track = useCallback(\n (fields = {}) => {\n _track({\n category,\n page,\n ...fields,\n properties: {\n ...fields.properties\n }\n });\n },\n [_track, category, page]\n );\n\n const [state, dispatch] = useReducer(reducer, {\n category,\n headerRef,\n locale,\n page,\n userAgent,\n windowScrollTop,\n dataSharingOptedOut,\n cpraI18nPrefix,\n header,\n footer,\n menuConfig,\n showSmartBanner,\n theme,\n url\n });\n\n const providerState = useMemo(\n () => ({\n state,\n dispatch,\n track,\n t,\n logError,\n onScreenEnter,\n onDesktopHeaderLogoClick,\n onDesktopHeaderLoginBtnClick,\n onDesktopHeaderSignupBtnClick,\n onMobileHeaderLogoClick,\n onMobileHeaderSignupBtnClick,\n onMobileHeaderMenuOpen,\n onMobileHeaderMenuClose,\n onMobileHeaderMenuLoginBtnClick,\n onMobileHeaderMenuSignupBtnClick,\n onMobileHeaderMenuNavItemClick,\n onFooterAppStoreBadgeClick\n }),\n [\n logError,\n state,\n t,\n track,\n onScreenEnter,\n onDesktopHeaderLogoClick,\n onDesktopHeaderLoginBtnClick,\n onDesktopHeaderSignupBtnClick,\n onMobileHeaderLogoClick,\n onMobileHeaderSignupBtnClick,\n onMobileHeaderMenuOpen,\n onMobileHeaderMenuClose,\n onMobileHeaderMenuLoginBtnClick,\n onMobileHeaderMenuSignupBtnClick,\n onMobileHeaderMenuNavItemClick,\n onFooterAppStoreBadgeClick\n ]\n );\n\n // screen enter\n // - track analytics\n // - set container-level tags and context for sentry error tracking and performance monitoring\n useEffect(() => {\n setContext('frontDoorsPageContainer', {\n showSmartBanner,\n category\n });\n }, [category, locale, showSmartBanner, page, setContext, setTags, userAgent]);\n\n useEffect(() => {\n onScreenEnter();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []); // Note: Empty [] required to ensure that `onScreenEnter` only runs once\n\n useEffect(() => {\n dispatch({ type: UPDATE_WINDOW_SCROLL_TOP, payload: { windowScrollTop } });\n }, [windowScrollTop]);\n\n return (\n \n \n {isNavSignUpVariantA(experiment) && (\n \n )}\n \n {showHeader &&
}\n {children}\n {showFooter &&