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A,SAAAA,EAAU,KACR,GAAI,CAAC4C,EAAM,OAGX,IAAMyD,EAAUlG,OAAOkG,OAAO,CAQ9B,OALAC,SAASC,IAAI,CAACC,KAAK,CAACC,QAAQ,CAAG,QAC/BH,SAASC,IAAI,CAACC,KAAK,CAACE,GAAG,CAAG,IAAYzB,MAAA,CAARoB,EAAQ,MACtCC,SAASC,IAAI,CAACC,KAAK,CAACG,KAAK,CAAG,OAGrB,KACLL,SAASC,IAAI,CAACC,KAAK,CAACC,QAAQ,CAAG,GAC/BH,SAASC,IAAI,CAACC,KAAK,CAACE,GAAG,CAAG,GAC1BJ,SAASC,IAAI,CAACC,KAAK,CAACG,KAAK,CAAG,GAG5BxG,OAAOyG,QAAQ,CAAC,EAAGP,EACrB,CACF,EAAG,CAACzD,EAAK,EACTwC,CAAAA,EAAAA,EAAAA,EAAAA,EAAuB,QAASjB,IAE9B,GAAIA,WAAAA,EAAEkB,GAAG,EAGT,GAAIiB,SAASO,aAAa,YAAYC,iBAAkB,CACtDR,SAASO,aAAa,CAACE,IAAI,GAC3B,MACF,CAGAlE,MAAAA,GAAAA,IACF,GAMKD,GACE,GAAAhB,EAAAG,GAAA,EAACC,MAAAA,CAAIE,UAAU,6EAA6EO,QAN/E,IACd0B,EAAE6C,aAAa,GAAK7C,EAAEsB,MAAM,EAC9B5C,CAAAA,MAAAA,GAAAA,GAAAA,CAEJ,EAEyHa,wBAAsB,kBAAkBrB,0BAAwB,+BACrL,GAAAT,EAAAG,GAAA,EAACC,MAAAA,CAAIE,UAAU,yGACZuC,MAHW,IAMpB","sources":["webpack://_N_E/?c179","webpack://_N_E/./src/app/(v2)/Header.tsx","webpack://_N_E/./src/components/common/DropdownMenu.tsx","webpack://_N_E/./src/components/common/FullScreenModal.tsx","webpack://_N_E/./src/app/(v2)/layout.css"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/node_modules/@next/third-parties/dist/google/ga.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/node_modules/@next/third-parties/dist/google/gtm.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/node_modules/@next/third-parties/dist/ThirdPartyScriptEmbed.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/node_modules/next/dist/client/script.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/node_modules/next/dist/shared/lib/lazy-dynamic/dynamic-bailout-to-csr.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/node_modules/next/dist/shared/lib/lazy-dynamic/preload-css.js\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"__esModule\",\"default\"] */ \"/codebuild/output/src2478514152/src/athletifi-website/node_modules/nextjs-toploader/dist/index.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/node_modules/react-loading-skeleton/dist/index.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/src/app/(v2)/(auth)/Auth.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"Header\"] */ \"/codebuild/output/src2478514152/src/athletifi-website/src/app/(v2)/Header.tsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2478514152/src/athletifi-website/src/app/(v2)/layout.css\");\n","'use client';\n\nimport __middleware_dnlbel__ from \"@/middleware.client-action\";\nimport { faUser } from '@fortawesome/free-regular-svg-icons';\nimport { faBars, faXmark } from '@fortawesome/free-solid-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport Link from 'next/link';\nimport React, { type MouseEventHandler, type ReactNode, useContext, useEffect, useRef, useState } from 'react';\nimport { signOut } from '@/actions/authActions';\nimport { AuthContext } from '@/app/(v2)/(auth)/Auth';\nimport { DropdownMenu, type MenuOption } from '@/components/common/DropdownMenu';\nimport { FullScreenModal } from '@/components/common/FullScreenModal';\nimport { PageLogo } from '@/components/common/Icon';\nimport { type UserData } from '@/types/User';\nimport { LoginRegister } from './LoginRegister';\nexport function Header() {\n const auth = useContext(AuthContext);\n const [showAuthModal, setShowAuthModal] = useState(false);\n const [authMode, setAuthMode] = useState<'login' | 'register'>('login');\n const [mobileMenuOpen, setMobileMenuOpen] = useState(false);\n const elHeader = useRef(null);\n const elAnchor = useRef(null);\n const handleAuthSuccess = () => {\n setShowAuthModal(false);\n auth.reload();\n };\n const openAuthModal = (mode: 'login' | 'register') => {\n setAuthMode(mode);\n setShowAuthModal(true);\n };\n const mobileCloseMenu = () => setMobileMenuOpen(false);\n\n // Add a border to
when the user scrolls down\n useEffect(() => {\n if (!elHeader.current || !elAnchor.current ||\n // Are observers supported?\n !('IntersectionObserver' in window && 'IntersectionObserverEntry' in window && 'intersectionRatio' in window.IntersectionObserverEntry.prototype)) {\n return;\n }\n const header = elHeader.current;\n let prev: number;\n const observer = new IntersectionObserver(([entry]) => {\n if (!entry) return;\n if (typeof prev !== 'number' || prev > entry.boundingClientRect.y) {\n if (entry.boundingClientRect.y < 0) {\n header.classList.add('border-b-1');\n } else {\n header.classList.remove('border-b-1');\n }\n } /* prev is number && prev < entry.boundingClientRect.y */else {\n // When scrolling up we use -10 as a buffer to handle smooth scrolling\n // because that doesn't always perfectly scroll back to 0.\n if (entry.boundingClientRect.y < -10) {\n header.classList.add('border-b-1');\n } else {\n header.classList.remove('border-b-1');\n }\n }\n prev = entry.boundingClientRect.y;\n });\n observer.observe(elAnchor.current);\n return () => observer.disconnect();\n }, [elHeader.current, elAnchor.current]);\n const navProps: NavProps = {\n user: auth.user,\n logout: async () => {\n await __middleware_dnlbel__({\n path: \"@/actions/authActions\",\n name: \"signOut\"\n }, signOut)();\n auth.reload();\n },\n login: () => openAuthModal('login'),\n signup: () => openAuthModal('register')\n };\n return <>\n {/* This element allows us to efficiently detect when the window has been scrolled */}\n
\n\n\n
\n\n {/* Desktop navigation */}\n
\n \n
\n\n {/* Mobile navigation */}\n
\n \n\n {/* Mobile Menu - Overlay */}\n {mobileMenuOpen &&
\n
\n \n Home\n \n \n About Us\n \n \n News\n \n \n Contact\n \n\n {auth.user ? <>\n \n Profile\n \n \n :
\n \n \n
}\n
\n
}\n
\n
\n\n setShowAuthModal(false)} data-sentry-element=\"FullScreenModal\" data-sentry-source-file=\"Header.tsx\">\n\n setShowAuthModal(false)} data-sentry-element=\"LoginRegister\" data-sentry-source-file=\"Header.tsx\" />\n\n \n ;\n}\ntype NavProps = {\n user?: UserData;\n logout: () => void | Promise;\n login: () => void | Promise;\n signup: () => void | Promise;\n};\n\n//hidden sm:flex\nconst DesktopNav = ({\n user,\n login,\n logout,\n signup\n}: NavProps) => {\n const [showUserMenu, setShowUserMenu] = useState(false);\n const userMenu: MenuOption[] = [{\n label: Profile\n }, {\n label: 'Logout',\n onSelect: logout\n }];\n return ;\n};\nconst DesktopLink = ({\n href,\n children,\n onClick\n}: {\n href: string;\n children: ReactNode;\n onClick?: React.MouseEventHandler;\n}) => \n\n {children}\n ;\nconst MobileNav = ({\n user,\n login,\n logout\n}: NavProps) => {\n // TODO Make the menus slide\n const [showMenu, setShowMenu] = useState<'nav' | 'user'>();\n const closeMenu = () => setShowMenu(undefined);\n return <>\n \n\n \n\n
\n \n \n \n
\n \n Home\n \n \n About Us\n \n \n News\n \n \n Contact\n \n
\n\n \n\n
\n \n \n \n
\n \n Profile\n \n {\n await logout();\n closeMenu();\n }} data-sentry-element=\"NavButton\" data-sentry-source-file=\"Header.tsx\">\n\n Logout\n \n
\n ;\n};\nconst MobileLink = ({\n href,\n children,\n onClick\n}: {\n href: string;\n children: ReactNode;\n onClick?: React.MouseEventHandler;\n}) => \n\n {children}\n ;\nconst NavButton = ({\n onClick,\n children,\n small = false,\n primary = false,\n round = false\n}: {\n onClick: MouseEventHandler;\n children: ReactNode;\n small?: boolean;\n primary?: boolean;\n round?: boolean;\n}) => ;","'use client';\n\nimport { type ReactNode, useEffect, useRef, useState } from 'react';\nimport { useWindowEventListener } from '@/lib/client-utils';\nexport type MenuOption = {\n value?: Value;\n label: ReactNode;\n onSelect?: (this: MenuOption) => void;\n};\nexport function DropdownMenu({\n size = 'small',\n show = false,\n options,\n onSelect,\n onDismiss\n}: {\n size?: 'small' | 'large';\n show?: boolean;\n options: MenuOption[];\n onSelect: (i: number, v: Value | undefined) => void;\n onDismiss?: () => void;\n}) {\n const elMenu = useRef(null);\n\n // Dismiss the menu if the user hits Escape\n useWindowEventListener('keyup', e => {\n if (e.key === 'Escape') {\n onDismiss?.();\n }\n });\n\n // Use a delayed version of `show` to work around the race that happens if the\n // menu is opened with a click\n const [delayedShow, setDelayedShow] = useState(show);\n useEffect(() => {\n setTimeout(() => setDelayedShow(show), 1);\n }, [show]);\n\n // Dismiss the menu if the user clicks somewhere else (but only if the menu is\n // visible)\n useWindowEventListener('click', e => {\n if (delayedShow && e.target instanceof Node && e.target !== elMenu.current && !elMenu.current?.contains(e.target)) {\n onDismiss?.();\n }\n });\n let menuClass = '';\n let itemClass = '';\n switch (size) {\n case 'small':\n menuClass = 'min-w-[5em]';\n break;\n case 'large':\n menuClass = 'min-w-[10em] rounded-lg py-[0.5em]';\n itemClass = 'p-[0.5em]';\n break;\n }\n return
    \n {options.map((x, i) =>
  • {\n x.onSelect?.call(x);\n onSelect(i, x.value);\n }}>\n {x.label}\n
  • )}\n
;\n}","'use client';\n\nimport React, { type ReactNode, useEffect } from 'react';\nimport { useWindowEventListener } from '@/lib/client-utils';\nexport function FullScreenModal({\n children,\n show,\n onDismiss\n}: {\n children: ReactNode;\n show: boolean;\n onDismiss?: () => void;\n}) {\n // prevent the body from scrolling\n useEffect(() => {\n if (!show) return;\n\n // Save the current scroll position\n const scrollY = window.scrollY;\n\n // Add styles to prevent body scrolling\n document.body.style.position = 'fixed';\n document.body.style.top = `-${scrollY}px`;\n document.body.style.width = '100%';\n\n // Cleanup function to restore scrolling when modal closes\n return () => {\n document.body.style.position = '';\n document.body.style.top = '';\n document.body.style.width = '';\n\n // Restore scroll position\n window.scrollTo(0, scrollY);\n };\n }, [show]);\n useWindowEventListener('keyup', e => {\n // If the user hits Escape\n if (e.key !== 'Escape') return;\n\n // If an input is focused, unfocus it\n if (document.activeElement instanceof HTMLInputElement) {\n document.activeElement.blur();\n return;\n }\n\n // Otherwise dismiss the modal\n onDismiss?.();\n });\n const handleClick = (e: React.MouseEvent) => {\n if (e.currentTarget === e.target) {\n onDismiss?.();\n }\n };\n if (!show) return null;\n return
\n
\n {children}\n
\n
;\n}","// extracted by mini-css-extract-plugin"],"names":["Promise","resolve","then","__webpack_require__","bind","t","Header","auth","useContext","AuthContext","showAuthModal","setShowAuthModal","useState","authMode","setAuthMode","mobileMenuOpen","setMobileMenuOpen","elHeader","useRef","elAnchor","openAuthModal","mode","mobileCloseMenu","useEffect","prev","current","window","IntersectionObserverEntry","prototype","header","observer","IntersectionObserver","entry","param","boundingClientRect","y","classList","add","remove","observe","disconnect","navProps","user","logout","__middleware_dnlbel__","path","name","signOut","reload","login","signup","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","Fragment","jsx","div","ref","className","DesktopNav","data-sentry-element","data-sentry-source-file","MobileNav","MobileLink","href","onClick","button","FullScreenModal","show","onDismiss","LoginRegister","onSuccess","initialMode","isPopup","onClose","showUserMenu","setShowUserMenu","userMenu","label","Link","onSelect","nav","data-sentry-component","PageLogo","scale","DesktopLink","NavButton","round","FontAwesomeIcon","icon","faUser","e","stopPropagation","DropdownMenu","size","options","primary","children","showMenu","setShowMenu","closeMenu","undefined","small","faBars","menu","concat","faXmark","elMenu","useWindowEventListener","key","delayedShow","setDelayedShow","setTimeout","target","Node","contains","menuClass","itemClass","ul","map","x","i","li","call","value","scrollY","document","body","style","position","top","width","scrollTo","activeElement","HTMLInputElement","blur","currentTarget"],"sourceRoot":""}