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I,OAAOmI,SAASC,eAAiBF,CAAxC,EAIWG,EAAS,CACpBC,KAAM,CACJC,cAAe,WAEjBC,OAAQ,CACND,cAAe,YAINE,EAAcC,IACzB,IACE,MAAMC,EAAc,IAAIC,KAAKF,IACtBG,EAAMC,EAAOC,GAAOJ,EACxBK,cACAC,MAAM,KAAK,GACXA,MAAM,KACT,MAAQ,GAAEF,KAAOD,KAASD,GAC3B,CAAC,MACA,OAAOH,CACR,E","sources":["webpack:///./Scripts/Actions/Navigation.action.js","webpack:///./Scripts/Actions/Overlay.action.js","webpack:///./Scripts/Components/LanguageSelect.js","webpack:///./Scripts/Components/Navigation/ui/MobileNavigationItem.js","webpack:///./Scripts/Components/Navigation/ui/MobileNavigationDropdown.js","webpack:///./Scripts/Components/Navigation/NavigationMobile.js","webpack:///./Scripts/Components/SideMenu.js","webpack:///./Scripts/Hooks/useEcommerceDisabled.js","webpack:///./Scripts/Hooks/useIsAuthenticated.js","webpack:///./Scripts/Utils/utils.js"],"sourcesContent":["import { get } from '../Services/http';\nimport { catchError } from './Error.action';\nimport { NAVIGATION_LOAD_ERROR, NAVIGATION_RECEIVE } from '../constants';\n\nexport const load = () => (dispatch, getState) => {\n return get('/api/navigation')\n .then((response) => response.json())\n .then((data) => dispatch(receive(data)))\n .catch((ex) => dispatch(catchError(ex, (error) => loadError(error))));\n};\n\nexport const loadError = (error) => ({\n type: NAVIGATION_LOAD_ERROR,\n payload: {\n error,\n },\n});\n\nexport const receive = (data) => ({\n type: NAVIGATION_RECEIVE,\n payload: {\n contentLinks: data.contentLinks,\n },\n});\n\nexport const setMobileMenuOpen = (mobileMenuOpen) => ({\n type: NAVIGATION_RECEIVE,\n payload: {\n mobileMenuOpen,\n },\n});\n","import {\n OVERLAY_ADD_OVERLAY,\n OVERLAY_CLOSE_OVERLAY,\n OVERLAY_REMOVE_OVERLAY,\n OVERLAY_UPDATE_OVERLAY,\n} from '../constants';\n\nexport const addOverlay = (\n componentName,\n onOverlayClick,\n zIndexClass = null\n) => ({\n type: OVERLAY_ADD_OVERLAY,\n payload: {\n componentName,\n onOverlayClick,\n zIndexClass,\n },\n});\n\nexport const updateOverlay = (componentName, onOverlayClick, zIndexClass) => ({\n type: OVERLAY_UPDATE_OVERLAY,\n payload: {\n componentName,\n onOverlayClick,\n zIndexClass,\n },\n});\n\nexport const removeOverlay = (componentName) => ({\n type: OVERLAY_REMOVE_OVERLAY,\n payload: {\n componentName,\n },\n});\n\nexport const closeOverlay = () => ({\n type: OVERLAY_CLOSE_OVERLAY,\n payload: {\n activeOverlays: [],\n },\n});\n","import React from 'react';\nimport Icon from './Icon';\nimport { useSelector } from 'react-redux';\n\nconst LanguageListItem = ({ label, url, value, selected, onClick }) => {\n return (\n
  • \n {selected ? (\n
    \n \n {label}\n
    \n ) : (\n onClick(url)}\n >\n {label}\n \n )}\n
  • \n );\n};\n\nconst LanguageSelect = () => {\n const channelPicker = useSelector((state) => state.site.channelPicker);\n function handleRetailSelectClick(\n url\n ) {\n window.location.href = `${url}`;\n }\n return channelPicker ? (\n \n ) : null;\n};\n\nexport default LanguageSelect;\n","import React from 'react';\nimport Icon from '../../Icon';\nimport clsx from 'clsx';\n\nconst MobileNavigationItem = ({\n link,\n name,\n url,\n onLinkClick,\n className,\n icon,\n}) => {\n return (\n
  • \n {onLinkClick && link && link.links?.length > 0 ? (\n onLinkClick(link)}\n >\n {name}\n \n \n ) : (\n \n {icon && (\n \n )}\n {name}\n \n )}\n
  • \n );\n};\nexport default MobileNavigationItem;\n","import React, { useState } from 'react';\nimport useIsAuthenticated from '../../../Hooks/useIsAuthenticated';\nimport Icon from '../../Icon';\nimport { translate } from '../../../Services/translation';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { setLoginModalOpen, signOut, setLoginMode, setOrganizations } from '../../../Actions/Login.action';\nimport { setMobileMenuOpen } from '../../../Actions/Navigation.action';\nimport clsx from 'clsx';\nimport { LoginModes } from '../../../constants';\n\nconst MobileNavigationDropdown = () => {\n const [dropdownOpen, setDropdownOpen] = useState(false);\n const isAuthenticated = useIsAuthenticated();\n const dispatch = useDispatch();\n const { person, pageUrl, links, organizations } = useSelector((state) => state.myPage.menu);\n\n const handleSignInClick = () => {\n dispatch(setMobileMenuOpen(false));\n dispatch(setLoginModalOpen(true));\n };\n\n const handleSignOutClick = () => {\n signOut();\n dispatch(setMobileMenuOpen(false));\n };\n\n const onChangeOrgClick = () => {\n dispatch(setMobileMenuOpen(false));\n dispatch(setOrganizations(organizations));\n dispatch(setLoginMode(LoginModes.SelectOrganization));\n dispatch(setLoginModalOpen(true));\n };\n\n return (\n \n {!isAuthenticated ? (\n handleSignInClick()}\n >\n \n {translate('general.sign-in')}\n \n ) : (\n <>\n setDropdownOpen(!dropdownOpen)}\n >\n \n {person.name && person.name}\n \n \n
    \n {organizations && organizations.length > 1 && (\n <>\n onChangeOrgClick()}\n >\n \n \n {translate('mypages.changeorg')}\n \n \n
    \n \n )}\n {links &&\n !!links.length &&\n links.map(\n (link) =>\n !link.isDivider && (\n dispatch(setMobileMenuOpen(false))}\n >\n {link.icon && (\n \n )}\n {link.label && (\n \n {link.label}\n \n )}\n \n )\n )}\n handleSignOutClick()}\n >\n \n \n {translate('general.sign-out')}\n \n \n
    \n \n )}\n \n );\n};\n\nexport default MobileNavigationDropdown;\n","import React, { useEffect, useMemo, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { setMobileMenuOpen } from '../../Actions/Navigation.action';\nimport Icon from '../Icon';\nimport SideMenu from '../SideMenu';\nimport { translate } from '../../Services/translation';\nimport MobileNavigationItem from './ui/MobileNavigationItem';\nimport MobileNavigationDropdown from './ui/MobileNavigationDropdown';\nimport useEcommerceDisabled from '../../Hooks/useEcommerceDisabled';\nimport LanguageSelect from '../LanguageSelect';\n\nconst NavigationMobile = () => {\n const dispatch = useDispatch();\n const ecommerceDisabled = useEcommerceDisabled();\n const {\n mobileMenuOpen,\n logoUrl,\n contentLinks,\n startPageUrl,\n languageSelectEnabled,\n } = useSelector((state) => state.navigation);\n const [currentLink, setCurrentLink] = useState();\n const [previousLink, setPreviousLink] = useState();\n const [languageSelectOpen, setLanguageSelectOpen] = useState(false);\n\n const links = useMemo(() => currentLink?.links ?? contentLinks, [\n contentLinks,\n currentLink,\n ]);\n\n const Header = () => (\n <>\n {currentLink || languageSelectOpen ? (\n <>\n \n \n {translate('general.back')}\n \n dispatch(setMobileMenuOpen(false))}\n >\n \n \n \n ) : (\n <>\n {logoUrl && (\n \n \n \n )}\n dispatch(setMobileMenuOpen(false))}\n aria-label={translate('megamenu.close')}\n >\n \n \n \n )}\n \n );\n\n const Content = () => (\n <>\n {languageSelectOpen ? (\n \n ) : (\n
      \n {!currentLink && !ecommerceDisabled && }\n {currentLink?.url && (\n \n )}\n {links.map((link) => (\n \n ))}\n {!currentLink && languageSelectEnabled && (\n setLanguageSelectOpen(true)}\n >\n \n {translate('general.language')}\n \n )}\n
    \n )}\n \n );\n\n const onLinkClick = (link) => {\n link.previousLink = previousLink ?? currentLink;\n setPreviousLink(currentLink);\n setCurrentLink(link);\n };\n\n const onBackClick = () => {\n if (languageSelectOpen) {\n setLanguageSelectOpen(false);\n } else {\n setPreviousLink(previousLink?.previousLink);\n setCurrentLink(previousLink);\n }\n };\n\n useEffect(() => {\n if (mobileMenuOpen) {\n setCurrentLink(null);\n }\n }, [mobileMenuOpen]);\n\n return (\n {\n dispatch(setMobileMenuOpen(false));\n setLanguageSelectOpen(false);\n }}\n components={{ Header, Content }}\n showCloseButton={false}\n />\n );\n};\nexport default NavigationMobile;\n","import React, {\n cloneElement,\n forwardRef,\n useCallback,\n useEffect,\n useMemo,\n useState,\n useRef,\n} from 'react';\nimport ReactDOM from 'react-dom';\nimport { useDispatch } from 'react-redux';\nimport {\n addOverlay,\n removeOverlay,\n updateOverlay,\n} from '../Actions/Overlay.action';\nimport Icon from './Icon';\nimport clsx from 'clsx';\nimport { translate } from '../Services/translation';\nimport { lockFocusToModal } from '../Utils/utils';\n\nconst SideMenu = forwardRef(\n (\n {\n id,\n duration = '0.2s',\n from = 'right',\n className,\n contentClassName,\n open = false,\n onClosed,\n showCloseButton = true,\n children,\n title,\n disableClosing = false,\n closeButton = null,\n components = {},\n zIndex,\n },\n ref\n ) => {\n const [ready, setReady] = useState(false);\n const [slideIn, setSlideIn] = useState(open);\n const [renderSideMenu, setRenderSideMenu] = useState(open);\n const [timeoutId, setTimeoutId] = useState();\n const dispatch = useDispatch();\n\n if (!id || id == '') {\n throw new Error(\n 'A unique side-menu \"id\" must be passed to side menu component'\n );\n }\n\n useEffect(() => {\n setReady(true);\n }, []);\n\n const close = useCallback(() => {\n if (!disableClosing) {\n // Just sets \"slideIn\" to false, which triggers the animation to close it\n setSlideIn(false);\n return true;\n }\n\n // False disables overlay click\n return false;\n }, [disableClosing]);\n\n useEffect(() => {\n dispatch(updateOverlay(id, close));\n }, [dispatch, close, id]);\n\n useEffect(() => {\n if (!ready) return;\n\n if (!slideIn && ready) {\n // If not slide in, slide out :^)\n if (timeoutId) {\n // Clear previous timeout to avoid animation delay bug\n clearTimeout(timeoutId);\n }\n\n var newTimeoutId = setTimeout(() => {\n setTimeoutId(undefined);\n onClosed && onClosed();\n setRenderSideMenu(false);\n }, parseFloat(duration) * 1000);\n\n setTimeoutId(newTimeoutId);\n dispatch(removeOverlay(id));\n }\n }, [slideIn]);\n\n useEffect(() => {\n if (!ready) return;\n\n // Triggered every time \"open\" is changed, initially as well\n // Timeout to not trigger on the same frame as the render, to enable the slide-in\n setTimeout(() => setSlideIn(open), 1);\n\n if (open) {\n setRenderSideMenu(true);\n dispatch(addOverlay(id, close));\n }\n }, [open, close]);\n\n useEffect(() => {\n if (renderSideMenu) {\n const modal = document.getElementById(id);\n lockFocusToModal(modal, close, true);\n };\n }, [renderSideMenu]);\n\n const CloseIcon = () => (\n \n );\n\n const slideInClasses = useMemo(() => {\n switch (from) {\n case 'bottom':\n return slideIn\n ? 'sidemenu--slide-bottom'\n : 'sidemenu--slide-bottom-full';\n case 'left':\n return slideIn ? 'sidemenu--slide-left' : 'sidemenu--slide-left-full';\n case 'right':\n default:\n return slideIn\n ? 'sidemenu--slide-right'\n : 'sidemenu--slide-right-full';\n }\n }, [slideIn, from]);\n\n return renderSideMenu\n ? ReactDOM.createPortal(\n \n
    \n {title &&

    {title}

    }\n {components.Header && (\n <>\n {showCloseButton &&\n !disableClosing &&\n (!closeButton ? (\n \n ) : (\n cloneElement(closeButton, {\n onClick: close,\n })\n ))}\n \n \n )}\n {!components.Header &&\n showCloseButton &&\n !disableClosing &&\n (!closeButton ? (\n \n ) : (\n cloneElement(closeButton, {\n onClick: close,\n })\n ))}\n
    \n {components?.Content && (\n {children}\n )}\n {!components?.Content && (\n
    \n {children}\n
    \n )}\n {components.Footer != null && (\n
    \n \n
    \n )}\n ,\n document.body\n )\n : null;\n }\n);\n\nSideMenu.displayName = 'SideMenu';\n\nexport default SideMenu;\n","import { useSelector } from 'react-redux';\n\nconst useEcommerceDisabled = () => {\n const { ecommerceDisabled } = useSelector((state) => state.site);\n return ecommerceDisabled;\n};\n\nexport default useEcommerceDisabled;\n","import { useSelector } from 'react-redux';\n\nconst useIsAuthenticated = () => {\n const { authenticated } = useSelector((state) => state.userInfo);\n return authenticated;\n};\n\nexport default useIsAuthenticated;\n","export const lockFocusToModal = (\n containerElement,\n onClose,\n focusFirstElement = false\n) => {\n if (!containerElement) return;\n const focusableElements = Array.from(\n containerElement?.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n )\n ).filter(\n (el) =>\n !el.hasAttribute('disabled') &&\n el.offsetParent !== null &&\n el.offsetParent !== undefined\n );\n if (!focusableElements) return; // To prevent error when focusableElements is null\n const firstElement = focusableElements[0];\n const lastElement = focusableElements[focusableElements.length - 1];\n const prevActiveElement = document.activeElement;\n\n if (focusFirstElement && firstElement) {\n firstElement.focus();\n }\n\n const handleTabKeyPress = (event) => {\n if (event.key === 'Tab') {\n if (event.shiftKey && document.activeElement === firstElement) {\n event.preventDefault();\n lastElement.focus();\n } else if (!event.shiftKey && document.activeElement === lastElement) {\n event.preventDefault();\n firstElement.focus();\n }\n }\n if (event.key === 'Escape' && onClose) {\n onClose();\n prevActiveElement.focus();\n }\n };\n\n containerElement?.addEventListener('keydown', handleTabKeyPress);\n return () => {\n containerElement?.removeEventListener('keydown', handleTabKeyPress);\n };\n};\n\nexport const GetSearchUrl = (q) => {\n const queryParams = q && q.length > 0 ? `?q=${q}` : '';\n return window.__litium.quickSearchUrl + queryParams;\n};\n\n//Colors used in js\nexport const colors = {\n apex: {\n infoBoxBorder: '#5F5F60',\n },\n bendix: {\n infoBoxBorder: '#6E7072',\n },\n};\n\nexport const formatDate = (date) => {\n try {\n const updatedDate = new Date(date);\n const [year, month, day] = updatedDate\n .toISOString()\n .split('T')[0]\n .split('-');\n return `${day}-${month}-${year}`;\n } catch {\n return date;\n }\n};\n"],"names":["setMobileMenuOpen","mobileMenuOpen","type","NAVIGATION_RECEIVE","payload","addOverlay","componentName","onOverlayClick","zIndexClass","OVERLAY_ADD_OVERLAY","updateOverlay","OVERLAY_UPDATE_OVERLAY","removeOverlay","OVERLAY_REMOVE_OVERLAY","LanguageListItem","label","url","value","selected","onClick","className","name","size","channelPicker","useSelector","state","site","handleRetailSelectClick","window","location","href","channelPickerItems","map","channelPickerItem","i","key","channelSystemId","currentChannel","link","onLinkClick","icon","clsx","links","length","Icon","dropdownOpen","setDropdownOpen","useState","isAuthenticated","useIsAuthenticated","dispatch","useDispatch","person","pageUrl","organizations","myPage","menu","setOrganizations","setLoginMode","LoginModes","SelectOrganization","setLoginModalOpen","translate","isDivider","urlParam","signOut","ecommerceDisabled","useEcommerceDisabled","logoUrl","contentLinks","startPageUrl","languageSelectEnabled","navigation","currentLink","setCurrentLink","previousLink","setPreviousLink","languageSelectOpen","setLanguageSelectOpen","useMemo","onBackClick","useEffect","SideMenu","from","id","zIndex","open","onClosed","components","Header","src","alt","Content","LanguageSelect","mobileIconName","showCloseButton","forwardRef","duration","contentClassName","children","title","disableClosing","closeButton","ref","ready","setReady","slideIn","setSlideIn","renderSideMenu","setRenderSideMenu","timeoutId","setTimeoutId","Error","close","useCallback","clearTimeout","newTimeoutId","setTimeout","undefined","parseFloat","modal","document","getElementById","lockFocusToModal","CloseIcon","slideInClasses","ReactDOM","style","transitionDuration","cloneElement","Footer","body","displayName","authenticated","userInfo","containerElement","onClose","focusFirstElement","focusableElements","Array","querySelectorAll","filter","el","hasAttribute","offsetParent","firstElement","lastElement","prevActiveElement","activeElement","focus","handleTabKeyPress","event","shiftKey","preventDefault","addEventListener","removeEventListener","GetSearchUrl","q","queryParams","__litium","quickSearchUrl","colors","apex","infoBoxBorder","bendix","formatDate","date","updatedDate","Date","year","month","day","toISOString","split"],"sourceRoot":""}