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IACnB,MAAOD,QAAAA,CACT,qBCTAE,EAAAC,OAAA,EAAkB,goBCAlBD,EAAAC,OAAA,EAAkB,gqBCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/features/contentstack/components/CMSImageContentCard/CMSImageContentCard.tsx","webpack://_N_E/./src/features/contentstack/components/CMSBlogGrid/CMSBlogGrid.tsx","webpack://_N_E/./src/features/prefooter/components/PreFooter/DesktopLinkColumn.tsx","webpack://_N_E/./src/features/prefooter/components/PreFooter/MobileLinkColumn.tsx","webpack://_N_E/./src/features/prefooter/components/PreFooter/PreFooterLink.tsx","webpack://_N_E/./src/features/prefooter/components/PreFooter/utils.ts","webpack://_N_E/./src/features/prefooter/hooks/useExpandableLinks.ts","webpack://_N_E/./src/utils/analytics/getAnalyticsRelativeComplementOf.ts","webpack://_N_E/./src/utils/useIsBot.ts","webpack://_N_E/./src/features/contentstack/components/CMSBlogGrid/CMSBlogGrid.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSImageContentCard/CMSImageContentCard.module.scss","webpack://_N_E/./src/features/prefooter/components/PreFooter/styles.module.scss","webpack://_N_E/"],"sourcesContent":["/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { forwardRef } from 'react';\nimport { Text, View, ArrowRight, type TextProps, Button, Icon } from '@az/starc-ui';\nimport type { ContentStackBlogtypeGrid, ContentStackFeaturedContent } from '../../interface';\nimport styles from './CMSImageContentCard.module.scss';\nimport cx from 'classnames';\nimport { CMSImage } from '../CMSImage/CMSImage';\nimport { isModalLink } from '../../utils/isModalLink';\nimport { ModalLink } from '@/components/ModalLink/ModalLink';\nimport { CMSLink } from '../CMSLink/CMSLink';\n\ntype Props =\n | NonNullable[0]\n | (NonNullable[0] & {\n withBackground?: boolean;\n textColor?: TextProps['color'];\n });\n\nexport const CMSImageContentCard = forwardRef(function CMSImageContentCard(\n { image, heading, description, ...optionalProps },\n ref\n) {\n const imageLink = optionalProps.link;\n const ctaLink = 'link_cta' in optionalProps ? optionalProps.link_cta : undefined;\n const withBackground =\n 'withBackground' in optionalProps ? optionalProps.withBackground : undefined;\n const linkTarget = 'target' in optionalProps ? optionalProps.target ?? '_self' : '_self';\n\n const textColor = 'textColor' in optionalProps ? optionalProps.textColor : undefined;\n\n const hasModalLink = isModalLink(ctaLink?.href ?? '');\n\n return (\n \n {image && (\n \n {!!imageLink ? (\n \n \n \n ) : (\n \n )}\n {withBackground && }\n \n )}\n \n {heading && (\n \n {heading}\n \n )}\n {description && (\n \n {description}\n \n )}\n {hasModalLink && ctaLink?.title && (\n \n \n {ctaLink.title}\n \n \n \n )}\n {!hasModalLink && ctaLink?.href && ctaLink.title && (\n \n {ctaLink.title}\n \n )}\n \n \n );\n});\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { View } from '@az/starc-ui';\nimport cx from 'classnames';\nimport { Legal } from '@/components/AZCustomComponent/Legal';\nimport { mapContentstackLegalValues } from '@/utils/mapContentstackLegalValues';\nimport { type ContentStackBlogtypeGrid } from '../../interface';\nimport styles from './CMSBlogGrid.module.scss';\nimport { CMSHeadline } from '../CMSHeadline/CMSHeadline';\nimport { CMSImageContentCard } from '../CMSImageContentCard/CMSImageContentCard';\nimport { useEffect, useRef, useState } from 'react';\nimport { isLegalDefined } from '../../utils/isLegalDefined';\n\ntype Props = {\n content: ContentStackBlogtypeGrid;\n};\n\nexport const CMSBlogGrid = ({ content }: Props) => {\n const { headline, blog_content, background_color, legal } = content;\n const imgRefs = useRef>([]);\n const [imageHeight, setImageHeight] = useState(0);\n\n const findHighestImage = () => {\n if (imgRefs.current.length) {\n const highestImageSize = imgRefs.current.reduce(\n (maxHeight, imgHeight) => {\n const imageHeight = imgHeight?.clientHeight ?? 0;\n\n return maxHeight > imageHeight ? maxHeight : imageHeight;\n },\n\n 0\n );\n\n setImageHeight(highestImageSize);\n }\n };\n\n useEffect(() => {\n findHighestImage();\n window.addEventListener('resize', findHighestImage);\n imgRefs.current.forEach((imgRef) => imgRef?.addEventListener('load', findHighestImage));\n const imageReferences = imgRefs.current;\n\n return () => {\n imageReferences.forEach((imgRef) => imgRef?.removeEventListener('load', findHighestImage));\n window.removeEventListener('resize', findHighestImage);\n };\n }, [imgRefs]);\n\n return (\n \n {headline}\n \n \n {blog_content?.map((content, index) => (\n (imgRefs.current[index] = img)}\n />\n ))}\n \n\n {background_color && (\n \n )}\n \n {legal && isLegalDefined(legal) && (\n \n \n \n )}\n \n );\n};\n","/**\n * Copyright 2020 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport cx from 'classnames';\nimport { useLabels } from '@/hooks/useLabels';\nimport { Button } from '@/components/Button';\nimport { PreFooterLink } from './PreFooterLink';\nimport { useExpandableLinks, MIN_LINKS } from '../../hooks/useExpandableLinks';\nimport { getLinkTitle, getLinkHref } from './utils';\nimport type { PreFooterLinkColumnProps } from '../../interface';\nimport styles from './styles.module.scss';\n\nconst labelsMap = {\n showLess: 'label_Show_Less',\n showAll: 'label_Show_All',\n};\n\nexport function DesktopLinkColumn({\n title,\n links,\n className,\n LinkComponent,\n}: PreFooterLinkColumnProps) {\n const labels = useLabels(labelsMap);\n\n const { isExpanded, visibleLinks, shouldFocus, toggleExpanded } = useExpandableLinks(links);\n\n const ariaLabel = isExpanded ? `${labels.showLess} ${title}` : `${labels.showAll} ${title}`;\n\n return (\n
\n

{title}

\n
    \n {visibleLinks.map((content, index) => (\n
  • \n \n
  • \n ))}\n
\n {links.length > MIN_LINKS && (\n \n {isExpanded ? labels.showLess : labels.showAll}\n \n )}\n
\n );\n}\n","/**\n * Copyright 2020 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { KeyboardEvent } from 'react';\nimport cx from 'classnames';\nimport type { PreFooterLinkColumnProps } from '../../interface';\nimport { PreFooterLink } from './PreFooterLink';\nimport styles from './styles.module.scss';\nimport { Button } from '@/components/Button';\nimport NextImage from '@/components/NextImage';\nimport { useLabels } from '@/hooks/useLabels';\nimport usePrevious from '@/utils/usePrevious';\nimport { eventConstants } from '@/constants/event';\nimport { useExpandableLinks, MIN_LINKS } from '../../hooks/useExpandableLinks';\nimport { getLinkHref, getLinkTitle } from './utils';\n\nconst CHEVRON_ICON = '/images/footer/footer_down_arrow.svg';\n\nconst labelsMap = {\n showLess: 'label_Show_Less',\n showAll: 'label_Show_All',\n expansiblePanel: 'label_ShelfPage_leftSideBar_ExpansiblePanel',\n};\n\nexport function MobileLinkColumn({\n title,\n links,\n LinkComponent,\n className,\n}: PreFooterLinkColumnProps) {\n const labels = useLabels(labelsMap);\n\n const {\n shouldFocus,\n isExpanded,\n visibleLinks,\n toggleExpanded,\n isColumnExpanded,\n toggleColumnExpanded,\n } = useExpandableLinks(links, { isMobile: true });\n\n const previousItemToShow = usePrevious(visibleLinks.length);\n\n const handleColumnKeyPress = (event: KeyboardEvent) => {\n if (event.key === eventConstants.enterKeyType || event.key === eventConstants.spaceKeyType) {\n toggleColumnExpanded();\n }\n };\n\n const ariaLabel = isExpanded ? `${labels.showLess} ${title}` : `${labels.showAll} ${title}`;\n\n return (\n
\n \n

{title}

\n \n
\n \n
    \n {visibleLinks.map((content, index) => (\n
  • \n \n
  • \n ))}\n
\n {links.length > MIN_LINKS && (\n \n {isExpanded ? labels.showLess : labels.showAll}\n \n )}\n \n {!isColumnExpanded &&
}\n \n );\n}\n","/**\n * Copyright 2020-2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { type ComponentType, useEffect, useState } from 'react';\nimport { SmartLink as Link, type SmartLinkProps } from '@/utils/smartLink';\n\ntype PreFooterLinkProps = {\n href: string;\n title: string;\n className?: string;\n isLinkToFocus?: boolean;\n isAutoFocus?: boolean;\n LinkComponent?: ComponentType;\n};\n\nexport const PreFooterLink = ({\n href,\n title,\n className,\n isLinkToFocus,\n isAutoFocus,\n LinkComponent = Link,\n}: PreFooterLinkProps) => {\n const [shouldFocusTop, setShouldFocusTop] = useState(false);\n\n useEffect(() => {\n if (shouldFocusTop) {\n const azLogoFixed = document.getElementById('azLogoLinkFixed');\n azLogoFixed?.focus();\n setShouldFocusTop(false);\n }\n }, [shouldFocusTop]);\n\n return (\n {\n setShouldFocusTop(true);\n }}\n setFocusToAnchorTag={isAutoFocus && isLinkToFocus}\n >\n {title}\n \n );\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { ContentStackLink } from '@/features/contentstack/interface';\nimport type { PreFooterColumnContent } from '../../interface';\n\nexport const getLinkHref = (content: PreFooterColumnContent | ContentStackLink) =>\n 'CTALink' in content ? content.CTALink : content.href;\n\nexport const getLinkTitle = (content: PreFooterColumnContent | ContentStackLink) =>\n 'CTALink' in content ? content.name : content.title;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useState, useMemo, useEffect } from 'react';\nimport type { PreFooterColumnContent } from '../interface';\nimport type { ContentStackLink } from '@/features/contentstack/interface';\nimport { useIsBot } from '@/utils/useIsBot';\n\ntype UseExpandableLinksOptions = {\n isMobile?: boolean;\n minLinks?: number;\n maxLinks?: number;\n};\n\ntype BaseExpandableLinks = {\n isExpanded: boolean;\n visibleLinks: PreFooterColumnContent[] | ContentStackLink[];\n toggleExpanded: () => void;\n shouldFocus: boolean;\n};\n\ntype DesktopExpandableLinks = BaseExpandableLinks;\n\ntype MobileExpandableLinks = BaseExpandableLinks & {\n isColumnExpanded: boolean;\n toggleColumnExpanded: () => void;\n};\n\nexport const MIN_LINKS = 5;\n\nexport const MAX_LINKS = 10;\n\nexport function useExpandableLinks(\n links: PreFooterColumnContent[] | ContentStackLink[],\n options: T = {} as T\n): T['isMobile'] extends true ? MobileExpandableLinks : DesktopExpandableLinks {\n const isBot = useIsBot();\n const { isMobile = false, minLinks = MIN_LINKS, maxLinks = MAX_LINKS } = options;\n\n const [isExpanded, setIsExpanded] = useState(true);\n const [isColumnExpanded, setIsColumnExpanded] = useState(true);\n const [shouldFocus, setShouldFocus] = useState(false);\n\n // Reset to collapsed state after initial render for JS users\n useEffect(() => {\n if (isBot) {\n return;\n }\n\n setIsExpanded(false);\n if (isMobile) {\n setIsColumnExpanded(false);\n }\n }, [isBot, isMobile]);\n\n const visibleLinks = useMemo(() => {\n const limit = isExpanded ? Math.min(links.length, maxLinks) : Math.min(links.length, minLinks);\n return links.slice(0, limit);\n }, [links, isExpanded, maxLinks, minLinks]);\n\n const toggleExpanded = () => {\n setIsExpanded((prev) => !prev);\n setShouldFocus((prev) => !prev);\n };\n const toggleColumnExpanded = () => setIsColumnExpanded((prev) => !prev);\n\n const baseReturn: BaseExpandableLinks = {\n isExpanded,\n visibleLinks,\n toggleExpanded,\n shouldFocus,\n };\n\n if (isMobile) {\n return {\n ...baseReturn,\n isColumnExpanded,\n toggleColumnExpanded,\n } as T['isMobile'] extends true ? MobileExpandableLinks : DesktopExpandableLinks;\n }\n\n return baseReturn as T['isMobile'] extends true ? MobileExpandableLinks : DesktopExpandableLinks;\n}\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport type { PageSpecificAnalyticsDataType } from '@/types/analytics';\n\n/**\n * The set difference of A and B is the set B without all the elements of A\n * @param A a `PageSpecificAnalyticsData` object consisting of key-value pairs\n * @param B a set of keys as an array of strings. Defaults to `searchAnalyticsKeys`\n * @returns the relative complement as an array of strings\n */\nexport function getAnalyticsRelativeComplementOf(\n A: PageSpecificAnalyticsDataType,\n B: string[] | undefined = searchAnalyticsKeys\n) {\n return B.filter((key) => !Object.keys(A).includes(key));\n}\n\nconst searchAnalyticsKeys = [\n 'prodView',\n 'productBrandList',\n 'productCorePriceList',\n 'productDealMessage',\n 'productFilterSelection',\n 'productFindingMethod',\n 'productFitmentBanner',\n 'productFitmentCheckMessage',\n 'productGuide',\n 'productIdList',\n 'productNotAvailableList',\n 'productPart',\n 'productPartList',\n 'productPartNumberList',\n 'productPrice',\n 'productRecommendationTypeList',\n 'productRepositoryIdList',\n 'productStrikeThroughPricing',\n 'productToastNotification',\n];\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useDeviceType } from './useDeviceType';\n\nexport function useIsBot() {\n const deviceType = useDeviceType();\n return deviceType === 'bot';\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"outerContainer\":\"az_fgb\",\"container\":\"az_ggb\",\"blogContent\":\"az_hgb\",\"background\":\"az_igb\",\"legalContainer\":\"az_jgb\",\"legalContainerWithBackground\":\"az_kgb\",\"legalText\":\"az_lgb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"container\":\"az_hXb\",\"imgContainer\":\"az_iXb\",\"imgBackground\":\"az_jXb\",\"contentContainer\":\"az_kXb\",\"linkButton\":\"az_lXb\",\"modalLinkButton\":\"az_mXb\",\"heading\":\"az_nXb\",\"description\":\"az_oXb\",\"withBackground\":\"az_pXb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"preFooterContainer\":\"az_rNb\",\"preFooterInnerContainer\":\"az_sNb\",\"linkColumnContainer\":\"az_tNb\",\"linkColumnTitle\":\"az_uNb\",\"linkContainer\":\"az_vNb\",\"linkItem\":\"az_wNb\",\"horizontalLine\":\"az_xNb\",\"linksColumnTitleContainer\":\"az_yNb\",\"linksContainer\":\"az_zNb\",\"chevron\":\"az_ANb\",\"chevronDown\":\"az_BNb\",\"chevronUp\":\"az_CNb\",\"showLinks\":\"az_DNb\",\"hideLinks\":\"az_ENb\",\"allOrLess\":\"az_FNb\",\"mobileLinkContainer\":\"az_GNb\",\"addMargin\":\"az_HNb\"};"],"names":["CMSImageContentCard","forwardRef","_param","ref","optionalProps","ctaLink","image","heading","description","imageLink","link","link_cta","undefined","withBackground","linkTarget","target","textColor","hasModalLink","isModalLink","href","jsx_runtime","jsxs","View","className","styles","jsx","CMSLink","to","CMSImage","cx","Text","size","weight","color","title","ModalLink","modalId","fontFamily","textCase","Icon","svg","ArrowRight","Button","attributes","variant","endIcon","CMSBlogGrid","content","param","headline","blog_content","background_color","legal","imgRefs","useRef","imageHeight","setImageHeight","useState","findHighestImage","current","length","highestImageSize","reduce","maxHeight","imgHeight","clientHeight","useEffect","window","addEventListener","forEach","imgRef","imageReferences","removeEventListener","CMSHeadline","fullWidth","map","index","img","style","concat","isLegalDefined","Legal","mapContentstackLegalValues","overrideClassName","labelsMap","showLess","showAll","DesktopLinkColumn","links","LinkComponent","labels","useLabels","isExpanded","visibleLinks","shouldFocus","toggleExpanded","useExpandableLinks","ariaLabel","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","div","h2","ul","li","PreFooterLink","getLinkHref","getLinkTitle","isLinkToFocus","MIN_LINKS","isAutoFocus","data-testid","onClick","customClass","ariaExpanded","expansiblePanel","MobileLinkColumn","isColumnExpanded","toggleColumnExpanded","isMobile","previousItemToShow","usePrevious","onKeyPress","event","key","eventConstants","enterKeyType","spaceKeyType","role","tabIndex","NextImage","width","height","aria-expanded","alt","src","loading","hr","Link","shouldFocusTop","setShouldFocusTop","azLogoFixed","document","getElementById","focus","setFocusToAnchorTag","span","CTALink","name","options","isBot","useIsBot","minLinks","maxLinks","setIsExpanded","setIsColumnExpanded","setShouldFocus","useMemo","limit","Math","min","slice","baseReturn","prev","_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__","_","_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__","getAnalyticsRelativeComplementOf","A","B","searchAnalyticsKeys","filter","Object","keys","includes","deviceType","useDeviceType","module","exports"],"sourceRoot":""}