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W,CACTI,UAAW,uBACXqZ,eAAgB,wBAA0BG,EAC1CE,SAAUD,EACVznB,SAAUwnB,EACVI,YAAaD,EACbE,6BAAAA,CACF,EACF,+FChBO,IAAMte,2BAA6B,OAAC,CAAEvC,KAAAA,CAAI,CAAE+gB,UAAAA,CAAS,CAAEC,KAAAA,CAAI,CAAEntB,KAAAA,CAAI,CAAqB,CAAA7K,QAAM,CACjGa,UAAWmW,EACXlW,cAAei3B,EACfh3B,UAAWi3B,EACXt3B,UAAWmK,CACb,sBCZA+rB,EAAAqB,OAAA,EAAkB,q+BCAlBrB,EAAAqB,OAAA,EAAkB,whBCAlBrB,EAAAqB,OAAA,EAAkB,ofCAlBrB,EAAAqB,OAAA,EAAkB,6pBCAlBrB,EAAAqB,OAAA,EAAkB,oxBCAlBrB,EAAAqB,OAAA,EAAkB,2qBCAlBrB,EAAAqB,OAAA,EAAkB,2eCAlBrB,EAAAqB,OAAA,EAAkB,ihBCAlBrB,EAAAqB,OAAA,EAAkB,yzBCAlBrB,EAAAqB,OAAA,EAAkB,whBCAlBrB,EAAAqB,OAAA,EAAkB,4iBCAlBrB,EAAAqB,OAAA,EAAkB,smBCAlBrB,EAAAqB,OAAA,EAAkB,gnBCAlBrB,EAAAqB,OAAA,EAAkB,u/BCAlBrB,EAAAqB,OAAA,EAAkB,2lBCAlBrB,EAAAqB,OAAA,EAAkB,goBCAlBrB,EAAAqB,OAAA,EAAkB,szBCAlBrB,EAAAqB,OAAA,EAAkB,oqBCAlBrB,EAAAqB,OAAA,EAAkB,o3BCAlBrB,EAAAqB,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/AZCustomComponent/Legal/index.tsx","webpack://_N_E/./src/components/Headline/Headline.tsx","webpack://_N_E/./src/components/ModalLink/ModalLink.tsx","webpack://_N_E/./src/components/Picture/Picture.tsx","webpack://_N_E/./src/components/STARCTypography/STARCTypography.tsx","webpack://_N_E/./src/components/STARCTypography/index.ts","webpack://_N_E/./src/constants/selectors.ts","webpack://_N_E/./src/features/category/api/getCategoryModels.ts","webpack://_N_E/./public/images/certonaskeletonimg.svg","webpack://_N_E/./src/features/certona/components/ScrolledPartCardSkeleton/index.tsx","webpack://_N_E/./src/features/citrus/api/getCitrusHomepageData.ts","webpack://_N_E/./src/features/citrus/utils/getCitrusCatalogId.ts","webpack://_N_E/./src/features/citrus/utils/getCitrusContentStandardId.ts","webpack://_N_E/./src/features/citrus/utils/isCitrusBannerWithLink.ts","webpack://_N_E/./src/features/citrus/utils/mapCitrusBannerToContentStackBanner.ts","webpack://_N_E/./src/features/contentstack/components/CMSBanner/CMSBanner.tsx","webpack://_N_E/./src/features/contentstack/components/CMSBannerSplit/CMSBannerSplit.tsx","webpack://_N_E/./src/features/contentstack/components/CMSButton/CMSButton.tsx","webpack://_N_E/./src/features/contentstack/hooks/useResponsiveCertonaContainerStyle.ts","webpack://_N_E/./src/features/contentstack/components/CMSCertona/CMSCertona.tsx","webpack://_N_E/./src/features/contentstack/components/CMSGrid/CMSGridItem/CMSGridItem.tsx","webpack://_N_E/./src/features/contentstack/components/CMSGrid/CMSGrid.tsx","webpack://_N_E/./src/features/contentstack/components/CMSGridBanner/GridBannerItem/GridBannerItem.tsx","webpack://_N_E/./src/features/contentstack/components/CMSGridBanner/CMSGridBanner.tsx","webpack://_N_E/./src/features/contentstack/components/CMSHeadline/CMSHeadline.tsx","webpack://_N_E/./src/features/contentstack/components/CMSImage/CMSImage.tsx","webpack://_N_E/./src/features/contentstack/components/CMSLink/CMSLink.tsx","webpack://_N_E/./src/features/contentstack/components/CMSSpacer/CMSSpacer.tsx","webpack://_N_E/./src/features/contentstack/components/CMSTarget/CMSTarget.tsx","webpack://_N_E/./src/features/contentstack/components/CMSYmme/CMSYmme.tsx","webpack://_N_E/./src/features/contentstack/hooks/useResponsiveImageData.ts","webpack://_N_E/./src/features/contentstack/utils/isLegalDefined.ts","webpack://_N_E/./src/features/contentstack/utils/isModalLink.ts","webpack://_N_E/./src/features/home/components/HomepageHero/CarouselImage.tsx","webpack://_N_E/./src/features/home/components/SuperDuperHero/SuperDuperHelpers.ts","webpack://_N_E/./src/features/home/components/SuperDuperHero/CarouselTopSection.tsx","webpack://_N_E/./src/features/home/components/SuperDuperHero/HorizontalCard.tsx","webpack://_N_E/./src/features/home/components/SuperDuperHero/HorizontalCards.tsx","webpack://_N_E/./src/features/home/components/SuperDuperHero/SuperDuperHero.tsx","webpack://_N_E/./src/features/ymme/api/deleteDefaultVehicle.ts","webpack://_N_E/./src/features/ymme/components/AltYMMEContentBlock/VehicleSelectedYMME.tsx","webpack://_N_E/./src/features/ymme/components/AltYMMEContentBlock/NonVehicleYMME.tsx","webpack://_N_E/./src/features/ymme/components/AltYMMEContentBlock/index.tsx","webpack://_N_E/./src/features/ymme/components/HomePagePreferredVehicle.tsx","webpack://_N_E/./src/features/ymme/components/SlimMobileInlineYMME/index.tsx","webpack://_N_E/./src/features/ymme/components/YMMEContentBlock.tsx","webpack://_N_E/./src/hooks/useContentStackLivePreview.ts","webpack://_N_E/./src/utils/analytics/track/trackHomeCarouselInteraction.ts","webpack://_N_E/./src/utils/analytics/track/trackShopWithoutVehicle.ts","webpack://_N_E/./src/utils/mapContentstackLegalValues.ts","webpack://_N_E/./src/components/AZCustomComponent/Legal/styles.module.scss","webpack://_N_E/./src/components/Headline/Headline.module.scss","webpack://_N_E/./src/components/STARCTypography/STARCTypography.module.scss","webpack://_N_E/./src/features/certona/components/ScrolledPartCardSkeleton/styles.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSBanner/CMSBanner.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSBannerSplit/CMSBannerSplit.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSButton/CMSButton.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSCertona/CMSCertona.styles.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSGrid/CMSGridItem/styles.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSGrid/styles.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSGridBanner/GridBannerItem/styles.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSGridBanner/styles.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSHeadline/CMSHeadline.module.scss","webpack://_N_E/./src/features/contentstack/components/CMSSpacer/CMSSpacer.module.scss","webpack://_N_E/./src/features/home/components/HomepageHero/CarouselImage.module.scss","webpack://_N_E/./src/features/home/components/SuperDuperHero/CarouselTopSection.module.scss","webpack://_N_E/./src/features/home/components/SuperDuperHero/HorizontalCard.module.scss","webpack://_N_E/./src/features/home/components/SuperDuperHero/SuperDuperHero.module.scss","webpack://_N_E/./src/features/ymme/components/AltYMMEContentBlock/AltYMMEContentBlock.module.scss","webpack://_N_E/./src/features/ymme/components/SlimMobileInlineYMME/styles.module.scss","webpack://_N_E/"],"sourcesContent":["/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React, { useState } from 'react';\nimport cx from 'classnames';\nimport Hidden from '@/components/Hidden';\nimport { Button } from '@/components/Button';\nimport { SmartLink as Link } from '../../../utils/smartLink';\nimport azCommonStyles from '../../../theme/globals.module.scss';\nimport Modal from '@/components/Modal';\nimport styles from './styles.module.scss';\nimport { useLabels } from '@/hooks/useLabels';\n\ntype Props = {\n content: any;\n overrideClassName?: string;\n handleToggleLegalModal?: (isModalOpened: boolean) => void;\n isLightBackGround?: boolean;\n isQuotient?: boolean;\n isWithLegalText?: boolean;\n isCatBanner?: boolean;\n isSecondBanner?: boolean;\n isHeroCarouselBanner?: boolean;\n isCMSHeroBanner?: boolean;\n isCMSSuperDuperHero?: boolean;\n singleLine?: boolean;\n linkColor?: string;\n};\n\nconst labelMap = {\n label_ShelfPage_sponsored: 'label_ShelfPage_sponsored',\n};\n\nexport const Legal = ({\n content,\n overrideClassName = '',\n handleToggleLegalModal,\n isLightBackGround,\n isQuotient,\n isWithLegalText,\n isCatBanner,\n isSecondBanner,\n isHeroCarouselBanner = false,\n isCMSHeroBanner = false,\n isCMSSuperDuperHero = false,\n singleLine = false,\n linkColor,\n}: Props) => {\n const labels = useLabels(labelMap);\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [isPDFModalOpen, setIsPDFModalOpen] = useState(false);\n const [PDFLink, setPDFLink] = useState('');\n\n const openPDFModal = (legalLink: string) => {\n setIsPDFModalOpen(true);\n setPDFLink(legalLink);\n };\n\n const closePDFModal = () => {\n setIsPDFModalOpen(false);\n };\n\n const openModal = () => {\n setIsModalOpen(true);\n handleToggleLegalModal?.(true);\n };\n\n const closeModal = () => {\n setIsModalOpen(false);\n handleToggleLegalModal?.(false);\n };\n\n const { legalText, legalLinkName, legalCopy, legalLink, imageLink } = content || {};\n\n const hasPdf = legalLink?.endsWith('.pdf');\n\n const isLegalTextAvailable = legalText && legalLinkName;\n\n const firstPartyDataNoLegal =\n !legalText && !legalLinkName && !legalCopy && !legalLink && !isQuotient;\n\n //fix Brazil phase one issue\n const sponsoredLabel = labels.label_ShelfPage_sponsored?.toLowerCase();\n\n const pdfBody = ;\n\n return (\n <>\n {!firstPartyDataNoLegal && !!content && (\n \n
\n {legalText && (\n \n {legalText}\n

\n )}\n {legalCopy && legalLinkName ? (\n \n {legalLinkName}\n \n ) : legalLinkName ? (\n openPDFModal(legalLink) : undefined}\n >\n {legalLinkName}\n \n ) : null}\n
\n {!isHeroCarouselBanner && isQuotient && (\n
\n \n {(isWithLegalText || legalLinkName) && (\n \n |\n \n )}\n {sponsoredLabel}\n
\n \n )}\n \n )}\n \n ({\n __html: legalCopy,\n }))()}\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 React from 'react';\nimport styles from './Headline.module.scss';\nimport { Grid } from '../Grid';\nimport { Text, type TextProps } from '@az/starc-ui';\n\nexport type Props = {\n underline?: boolean;\n children?: string;\n className?: string;\n color?: TextProps['color'];\n emphasize?: 'all' | 'last';\n size?: TextProps['size'];\n};\n\nexport function Headline({ underline = true, children, className, color, emphasize, size }: Props) {\n if (!children) {\n return null;\n }\n\n const headlineSize: NonNullable = size ? size : '200';\n let title = children;\n let emphasized = '';\n\n if (emphasize === 'last') {\n const headlineParts = children.split(' ');\n emphasized = headlineParts.pop() ?? '';\n title = headlineParts.join(' ');\n } else if (emphasize === 'all') {\n emphasized = children;\n title = '';\n }\n\n return (\n \n \n \n {title}\n {emphasized && (\n \n {emphasized}\n \n )}\n \n \n {underline && (\n \n
\n \n )}\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 */\n\nimport { countryCodes, defaultStoreUS } from '@/constants/locale';\nimport { useLocale } from '@/hooks/useLocale';\nimport { useContext, useState, type ReactNode } from 'react';\nimport { type TabIndexes } from '../SignInModalV2/interface';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { SignInFlowTypeContext } from '../SignInFlowTypeContext';\nimport { Actionable } from '@az/starc-ui';\nimport { useSelector } from 'react-redux';\nimport { getUserAuthenticated } from '@/constants/selectors';\nimport dynamic from 'next/dynamic';\nimport ProgressModal from '../AZCustomComponent/ProgressModal';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\n\nconst LazySignInModalV2 = dynamic(() => import('@/components/SignInModalV2'), {\n loading: () => ,\n});\n\nconst LazySignInModal = dynamic(() => import('@/components/SignInModal'), {\n loading: () => ,\n});\n\nconst LazySearchStoreModal = dynamic(\n () =>\n import('@/components/Store/StoreModal/SearchStoreModal').then((mod) => mod.SearchStoreModal),\n {\n loading: () => ,\n }\n);\n\nconst LazyMyStoreModal = dynamic(\n () => import('@/components/Store/StoreModal/MyStoreModal').then((mod) => mod.MyStoreModal),\n {\n loading: () => ,\n }\n);\n\ntype ModalLinkProps = {\n modalId: string;\n className?: string;\n children: ReactNode;\n};\n\nexport const ModalLink = ({ modalId, className, children }: ModalLinkProps) => {\n const locale = useLocale();\n const [storeModalOpen, setStoreModalOpen] = useState(false);\n\n const { data: storeData } = useStoreDetailsData();\n const storeNumber = storeData?.storeNumber ?? defaultStoreUS;\n\n const [signInModalOpen, setSignInModalOpen] = useState(false);\n const isMxSite = locale === countryCodes.mx;\n const isSignInV2Enabled = useFeatureFlag('ENABLE_STREAMLINE_SIGNIN') === 'true' && !isMxSite;\n const [activeTab, setActiveTab] = useState(0);\n const { setFlowTypeFn } = useContext(SignInFlowTypeContext);\n const isLoggedIn = useSelector(getUserAuthenticated);\n\n const handleModalOpen = (id: string) => {\n switch (id) {\n case '[search_store_modal]':\n setStoreModalOpen(true);\n break;\n case '[sign_in_modal]':\n case '[create_account_modal]':\n if (isLoggedIn) {\n break;\n }\n\n if (isSignInV2Enabled) {\n setFlowTypeFn('login');\n }\n setActiveTab(id === '[sign_in_modal]' ? 0 : 1);\n setSignInModalOpen(true);\n break;\n case '[cookie_preference_center_modal]':\n window.OneTrust?.ToggleInfoDisplay();\n break;\n }\n };\n\n const isSignInModal = modalId === '[sign_in_modal]' || modalId === '[create_account_modal]';\n const SignInModal = isSignInV2Enabled ? LazySignInModalV2 : LazySignInModal;\n const StoreModal = storeNumber !== defaultStoreUS ? LazyMyStoreModal : LazySearchStoreModal;\n\n return (\n <>\n handleModalOpen(modalId)}>\n {children}\n \n {isSignInModal && (\n setSignInModalOpen(false)}\n activeTab={activeTab}\n setActiveTab={setActiveTab}\n />\n )}\n {storeModalOpen && setStoreModalOpen(false)} />}\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 */\nimport Head from 'next/head';\nimport {\n forwardRef,\n type CSSProperties,\n type ImgHTMLAttributes,\n type ReactEventHandler,\n} from 'react';\nimport { BREAKPOINTS } from '@/constants/screen';\n\ntype ImageConfiguration = {\n src: string;\n width: CSSProperties['width'];\n height: CSSProperties['height'];\n};\n\nexport type PictureProps = {\n altText: string;\n loading?: ImgHTMLAttributes['loading'];\n fetchPriority?: ImgHTMLAttributes['fetchPriority'];\n priority?: boolean;\n imageClassName?: string;\n mobile: ImageConfiguration;\n tablet: ImageConfiguration;\n desktop: ImageConfiguration;\n tabIndex?: number | undefined;\n 'data-testid'?: string;\n onError?: ReactEventHandler;\n};\n\nexport const Picture = forwardRef(function PictureComponent(\n {\n mobile,\n tablet,\n desktop,\n loading = 'lazy',\n fetchPriority,\n imageClassName,\n altText,\n priority = false,\n tabIndex,\n 'data-testid': dataTestId,\n onError,\n }: PictureProps,\n ref\n) {\n const mobileMedia = `(max-width: ${BREAKPOINTS.MOBILE_MAX}px)`;\n const tabletMedia = `(min-width: ${BREAKPOINTS.TABLET_MIN}px) and (max-width: ${BREAKPOINTS.TABLET_MAX}px)`;\n const desktopMedia = `(min-width: ${BREAKPOINTS.DESKTOP_MIN}px)`;\n return (\n <>\n \n \n \n \n \n {priority && (\n \n \n \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 */\nimport { View } from '@az/starc-ui';\nimport styles from './STARCTypography.module.scss';\n\ntype Props = {\n children: React.ReactNode;\n};\n\nexport const STARCTypography = ({ children }: Props) => {\n return {children};\n};\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport { STARCTypography } from './STARCTypography';\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { ReduxState, PaymentOptionList, AddressDetails } from '@/types';\nimport type {\n OrdersDetailsOrderSummaryFromState,\n OrdersDetailsFromState,\n OrderItemsFromState,\n OrdersDetailsPaymentInfoList,\n} from '@/types/reduxStore/orders';\nimport environmentConfig from '../config/environment';\nimport logger from '../utils/logger';\nimport type { Locale } from '@/types/i18n';\nimport { countryCodes } from './locale';\n// we do not have an object for the whole state\n\n// appData\nexport const getUserAuthenticated = (state: ReduxState): boolean => state.appData.userAuthenticated;\n\nexport const getMetrixUrl = (): string => {\n const metrix_url = environmentConfig.METRIX_URL ?? '';\n if (metrix_url === '') {\n logger.error({ message: 'METRIX_URL missing in .env variables' });\n }\n return metrix_url;\n};\n\nexport const getMerchantId = (locale: Locale): string => {\n const merchantId =\n (locale === countryCodes.enUS\n ? environmentConfig.CYBERSOURCE_MERCHANT_ID\n : environmentConfig.CYBERSOURCE_MERCHANT_ID_MX) ?? '';\n if (merchantId === '') {\n logger.error({\n message: 'CYBERSOURCE_MERCHANT_ID missing in .env variables',\n });\n }\n return merchantId;\n};\n\nexport const getLoqateKey = (locale: Locale): string => {\n const loqateId =\n (locale === countryCodes.enUS\n ? environmentConfig.LOQATE_KEY\n : environmentConfig.LOQATE_KEY_MX) ?? '';\n if (loqateId === '') {\n logger.error({\n message: 'LOQATE_KEY or LOQATE_KEY_MX missing in .env variables',\n });\n }\n return loqateId;\n};\n\nexport const getWorldPayPublicKey = (): string => {\n const publicKey = environmentConfig.WORLD_PAY_PUBLIC_KEY ?? '';\n if (publicKey === '') {\n logger.error({\n message: 'WORLD_PAY_PUBLIC_KEY missing in .env variables',\n });\n }\n return publicKey;\n};\n\nexport const getOrgId = (): string => {\n const orgId = environmentConfig.CYBERSOURCE_ORG_ID ?? '';\n if (orgId === '') {\n logger.error({ message: 'CYBERSOURCE_ORG_ID missing in .env variables' });\n }\n return orgId;\n};\n\n// checkout\nexport const getCheckoutSubscriptionTextMessage = (state: ReduxState): boolean =>\n state.checkout?.checkoutSubscriptions?.receiveTextMessage;\n\nexport const getCheckoutSubscriptionSpecialEvents = (state: ReduxState): boolean =>\n state.checkout?.checkoutSubscriptions?.receivePromoAndSpecialEvents;\n\nexport const getCheckoutPaymentStatus = (state: ReduxState): boolean =>\n state.checkout?.paymentStatus;\n\nexport const getCheckoutCheckPaymentStatus = (state: ReduxState): boolean =>\n state.checkout?.checkPaymentStatus;\n\n// orders\nexport const selectOrderDetailsFromState = (state: ReduxState): OrdersDetailsFromState =>\n state.orders?.details;\n\nexport const selectOrdersDetailsOrderSummary = (\n state: ReduxState\n): OrdersDetailsOrderSummaryFromState | null => state.orders.details.orderSummary;\n\nexport const selectOrdersDetailsOrderItems = (state: ReduxState): OrderItemsFromState =>\n state.orders?.details?.orderItems;\n\nexport const getOrdersDetailsPaymentInfoList = (state: ReduxState): OrdersDetailsPaymentInfoList =>\n state.orders.details?.paymentInfoList;\n\nexport const selectOrdersAddressDetails = (state: ReduxState): AddressDetails =>\n state.orders.addressDetails;\n\nexport const selectOrdersDetailsReadyStatus = (state: ReduxState): string =>\n state.orders.details?.readyStatus;\n\n// paymentOption\nexport const getPaymentOptionList = (state: ReduxState): PaymentOptionList =>\n state.paymentOption?.paymentOptionList;\n\nexport const getPaymentOptionReadyStatus = (state: ReduxState): string =>\n state.paymentOption?.readyStatus;\n\n// cartUpdate\nexport const selectCartUpdate = (state: ReduxState) => state.cartUpdate;\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { getAxios } from '@/lib/axios';\nimport { requestBaseURL } from '@/config/serviceAPI';\nimport { type AxiosInstance } from 'axios';\nimport { createQuery } from '@/utils/createReactQuery';\nimport { getCountryFromLocale } from '@/utils/getCountryFromLocale';\nimport { useLocale } from '@/hooks/useLocale';\nimport type { Locale } from '@/types/i18n';\nimport { type CategoryByModelData, type CategoryByModelResponse } from '../interface';\nimport { type GetShopByMakeUsingGetParamsModel } from '@/api/types/browse-search-types';\nimport { showXMPreviewDate } from '@/utils/showXMPreviewDate';\n\nconst URL = `${requestBaseURL}/external/product-discovery/browse-search/v1/category-models`;\n\ntype Options = {\n seoUrl: string;\n locale: Locale;\n enabled?: boolean;\n preview: boolean;\n};\n\ntype OptionsQuery = {\n seoUrl: string;\n enabled?: boolean;\n};\n\nconst getCategoryModels = async (\n { seoUrl, locale, preview }: Options,\n axiosInstance?: AxiosInstance\n) => {\n const country = getCountryFromLocale(locale);\n const customerType = 'B2C';\n const salesChannel = 'ECOMM';\n\n const params: GetShopByMakeUsingGetParamsModel = {\n country,\n customerType,\n salesChannel,\n preview,\n seoUrl,\n };\n const response = await getAxios(axiosInstance).get(URL, {\n params,\n });\n return selector(response.data);\n};\n\nconst selector = (data: CategoryByModelResponse): CategoryByModelData => {\n const response = data.modelRanges.map((item) => ({\n name: item.linkDisplayText,\n seoUrl: item.seoUrl,\n makeModelYearPath: item.makeModelYearPath,\n }));\n\n return {\n shopByMMYList: response,\n title: data.title,\n canonicalPath: data.canonicalPath,\n taxonomyPath: data.taxonomyPath,\n pageType: data.pageType,\n };\n};\n\nconst { useData: useCategoryByModelData } = createQuery(\n 'categoryModels',\n getCategoryModels\n);\n\nconst useCategoryByModel = ({ enabled = true, ...rest }: OptionsQuery) => {\n const locale = useLocale();\n\n const options: Options = {\n ...rest,\n locale,\n preview: showXMPreviewDate(),\n };\n return useCategoryByModelData({\n enabled: enabled,\n ...options,\n });\n};\n\nexport { useCategoryByModel };\n","var _path, _path2, _path3, _path4;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nconst SvgCertonaskeletonimg = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 134,\n height: 93,\n viewBox: \"0 0 134 93\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#D6D6D6\",\n d: \"M.5.5h133v92H.5z\"\n})), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M51.892 18 20 73.496h24.847L76.748 18H51.892Z\",\n fill: \"#D6D6D6\"\n})), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M82.65 18 50.748 73.496h14.69L97.377 18H82.649Z\",\n fill: \"#E6E6E6\"\n})), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M113.883 18h-10.614L71.377 73.496h10.604L113.883 18Z\",\n fill: \"#F2F2F2\"\n})));\nexport default SvgCertonaskeletonimg;","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React from 'react';\nimport { View, Skeleton } from '@az/starc-ui';\nimport styles from './styles.module.scss';\nimport Hidden from '@/components/Hidden';\nimport cx from 'classnames';\nimport SkeletonImg from '@/public/images/certonaskeletonimg.svg';\nimport NextImage from '@/components/NextImage';\n\nconst PartCard = () => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport const ScrolledPartCardSkeleton = () => {\n return (\n \n \n \n \n \n \n \n {new Array(10).fill(1).map((_, i) => (\n \n ))}\n \n \n \n \n \n \n
\n \n \n \n );\n};\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { getAxiosForClient } from '@/lib/axios';\nimport { useQuery } from '@tanstack/react-query';\nimport type { CitrusBannerResponse } from '../interface';\nimport { useAppState } from '@/stores/AppState';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { getDecodedCookies } from '@/utils/cookie';\nimport { getCitrusCatalogId } from '../utils/getCitrusCatalogId';\nimport { getCitrusContentStandardId } from '../utils/getCitrusContentStandardId';\nimport environmentConfig from '@/config/environment';\nimport { getCitrusProxyConfiguration } from '../lib/getCitrusProxyConfiguration';\n\nconst URL = `/api/citrus/home`;\nconst PROXY_URL = '/v1/ads/bannerx';\n\nconst getCitrusHomepageDataWithProxy = async () => {\n const cookies = getDecodedCookies(['eCookieId', 'rewardsId', 'forceCitrusProd']);\n const rewardsId = cookies.get('rewardsId');\n const eCookieId = cookies.get('eCookieId');\n const forceCitrusProd = !!cookies.get('forceCitrusProd');\n const { baseURL, axiosConfig } = getCitrusProxyConfiguration();\n const response = await getAxiosForClient().post(\n `${baseURL}${PROXY_URL}`,\n {\n customerId: rewardsId || null,\n sessionId: rewardsId || eCookieId,\n placement: 'homepage-banner-x',\n catalogId: getCitrusCatalogId(forceCitrusProd),\n contentStandardId: getCitrusContentStandardId(forceCitrusProd),\n options: {\n filterMode: 'AndOr',\n },\n productFilters: [],\n bannerSlotIds: [\n {\n slotId: 'carousel-banner',\n maxNumberOfAds: 5,\n },\n {\n slotId: 'below-carousel-banner',\n maxNumberOfAds: 1,\n },\n {\n slotId: 'midpage-banner',\n maxNumberOfAds: 1,\n },\n ],\n },\n axiosConfig\n );\n return selector(response.data);\n};\n\nconst getCitrusHomepageData = async (eCookieId: string) => {\n const response = await getAxiosForClient().get(URL, {\n params: {\n eCookieId,\n },\n });\n return selector(response.data);\n};\n\nconst selector = (data: CitrusBannerResponse): CitrusBannerResponse => data;\n\nconst getCitrusHomepageKey = () => ['citrus', 'home'] as const;\n\ntype Options = {\n enabled?: boolean;\n};\n\nexport const useCitrusHomepageData = (options: Options) => {\n const citrusEnabled = useFeatureFlag('IS_CITRUS_ENABLED') === 'true';\n const { eCookieId } = useAppState().state;\n const CITRUS_PROXY_DISABLED = environmentConfig.CITRUS_PROXY_DISABLED;\n return useQuery({\n enabled: citrusEnabled && (options.enabled ?? true),\n queryKey: getCitrusHomepageKey(),\n queryFn: () =>\n !CITRUS_PROXY_DISABLED ? getCitrusHomepageDataWithProxy() : getCitrusHomepageData(eCookieId),\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 */\nimport environment from '@/config/environment';\n\nexport function getCitrusCatalogId(forceProd: boolean) {\n return environment.TARGET_ENV === 'production' || forceProd\n ? '86e0cbcb-cb7f-4b20-801f-def2165dccea'\n : '5cd5f0d0-332e-4c23-b8d0-db983d3dd61c';\n}\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport environment from '@/config/environment';\n\nexport function getCitrusContentStandardId(forceProd: boolean) {\n return environment.TARGET_ENV === 'production' || forceProd\n ? 'b45d0eba-b209-440c-9325-d3302fb9b861'\n : '54d24de1-b8a0-4d1f-a355-ed586f40023a';\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 { CitrusBanner } from '../interface';\n\nexport function isCitrusBannerWithLink(\n item: CitrusBanner\n): item is CitrusBanner & { ctaLink: string } {\n return !!item.ctaLink;\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 { CitrusBanner } from '../interface';\nimport type { ContentStackBanner } from '@/features/contentstack/interface';\n\nexport const mapCitrusBannerToContentStackBanner = (\n citrusBanner: CitrusBanner & { ctaLink: string }\n): ContentStackBanner => {\n let ctaLink = citrusBanner.ctaLink ?? '';\n\n if (ctaLink.includes('://')) {\n const link = new URL(ctaLink);\n ctaLink = `${link.pathname}${link.search}`;\n }\n\n return {\n title: '',\n asset_size: 'Medium', //it's not used in CMSBanner but is required in ContentStackBanner type\n image: {\n image_alt_text: citrusBanner.heroImageAltText,\n image_url: citrusBanner.backgroundImage,\n attributes: [\n {\n device: 'Tablet',\n device_image: citrusBanner.secondaryBackgroundImage,\n },\n {\n device: 'Mobile',\n device_image: citrusBanner.heroImage,\n },\n ],\n },\n legal: {\n text:\n citrusBanner.additionalFields?.find((field) => field.id === 'disclaimer-text')?.value ?? '',\n },\n link: ctaLink,\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 React, { useEffect, useRef } from 'react';\nimport type { ContentStackBanner, ContentStackBannerSplit, SizePerDevice } from '../../interface';\nimport { Legal } from '@/components/AZCustomComponent/Legal';\nimport styles from './CMSBanner.module.scss';\nimport { mapContentstackLegalValues } from '@/utils/mapContentstackLegalValues';\nimport cx from 'classnames';\nimport { CMSImage } from '../CMSImage/CMSImage';\nimport { reportCitrusClick } from '@/features/citrus/utils/reportCitrusClick';\nimport { reportCitrusImpression } from '@/features/citrus/utils/reportCitrusImpression';\nimport { CMSLink } from '../CMSLink/CMSLink';\nimport { CMSHeadline } from '../CMSHeadline/CMSHeadline';\n\nexport type CMSBannerProps = {\n content: ContentStackBanner;\n dropShadowSize?: ContentStackBannerSplit['drop_shadow'];\n sponsored?: boolean;\n citrusInfo?: {\n citrusAdId: string;\n };\n legalPadding?:\n | boolean\n | {\n s?: boolean;\n m?: boolean;\n l?: boolean;\n };\n priority?: boolean;\n sizePerDevice?: SizePerDevice;\n loading?: 'lazy' | 'eager';\n};\n\nconst defaultSizePerDevice = {\n mobile: {\n width: 1376,\n height: 550,\n },\n tablet: {\n width: 2220,\n height: 275,\n },\n desktop: {\n width: 2332,\n height: 270,\n },\n};\n\nexport function CMSBanner({\n content,\n dropShadowSize,\n sponsored,\n citrusInfo,\n legalPadding,\n priority,\n sizePerDevice,\n loading,\n}: CMSBannerProps) {\n const { image, legal, link, asset_size, heading, heading_underline } = content;\n const imageRef = useRef(null);\n useEffect(() => {\n if (!sponsored) return;\n const currentImageRef = imageRef.current;\n const observer = new IntersectionObserver(([entry]) => {\n if (entry.isIntersecting && citrusInfo?.citrusAdId) {\n void reportCitrusImpression(citrusInfo.citrusAdId);\n }\n }, {});\n\n if (currentImageRef) {\n observer.observe(currentImageRef);\n }\n\n return () => {\n currentImageRef && observer.unobserve(currentImageRef);\n };\n }, [sponsored, citrusInfo?.citrusAdId]);\n\n return (\n <>\n {heading && (\n \n {heading}\n \n )}\n {image &&\n (link ? (\n {\n if (citrusInfo?.citrusAdId) {\n void reportCitrusClick(citrusInfo.citrusAdId);\n }\n }}\n onAuxClick={(e) => {\n if (e.button === 1 && citrusInfo?.citrusAdId) {\n void reportCitrusClick(citrusInfo.citrusAdId);\n }\n }}\n >\n \n \n ) : (\n \n ))}\n {legal && (\n \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 React from 'react';\nimport { type ContentStackBanner, type ContentStackBannerSplit } from '../../interface';\nimport { CMSBanner, type CMSBannerProps } from '../CMSBanner/CMSBanner';\nimport { Grid } from '@/components/Grid';\nimport { type Props as HeadlineProps } from '@/components/Headline/Headline';\nimport { CMSHeadline } from '../CMSHeadline/CMSHeadline';\nimport styles from './CMSBannerSplit.module.scss';\n\ntype Props = {\n content: ContentStackBannerSplit;\n headlineOptions?: HeadlineProps;\n cmsBannerOptions?: Partial;\n priority?: boolean;\n};\n\nexport function CMSBannerSplit({\n content,\n headlineOptions,\n cmsBannerOptions,\n priority = false,\n}: Props) {\n const { banner_split, headline, drop_shadow, layout, asset_size } = content;\n if (!banner_split) return null;\n\n return (\n \n {headline && {headline}}\n \n {banner_split.map((banner, i) => (\n \n \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 */\nimport { useContext, useState } from 'react';\nimport { type ContentStackButton } from '../../interface';\nimport { Button, View, Text, type ButtonProps, type ViewProps } from '@az/starc-ui';\nimport { CMSLink } from '../CMSLink/CMSLink';\nimport styles from './CMSButton.module.scss';\nimport type { TabIndexes } from '@/components/SignInModalV2/interface';\nimport { countryCodes, defaultStoreUS } from '@/constants/locale';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useLocale } from '@/hooks/useLocale';\nimport { SignInFlowTypeContext } from '@/components/SignInFlowTypeContext';\nimport { isModalLink } from '../../utils/isModalLink';\nimport { useSelector } from 'react-redux';\nimport { getUserAuthenticated } from '@/constants/selectors';\nimport dynamic from 'next/dynamic';\nimport ProgressModal from '@/components/AZCustomComponent/ProgressModal';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\nimport { useMyProfile } from '@/features/myProfile/api/getMyProfile';\nimport { LinkRewardsContext } from '@/components/LinkRewardsContext';\nimport actionConstants from '@/types/action';\n\nconst LazySignInModalV2 = dynamic(() => import('@/components/SignInModalV2'), {\n loading: () => ,\n});\n\nconst LazySignInModal = dynamic(() => import('@/components/SignInModal'), {\n loading: () => ,\n});\n\nconst LazySearchStoreModal = dynamic(\n () =>\n import('@/components/Store/StoreModal/SearchStoreModal').then((mod) => mod.SearchStoreModal),\n {\n loading: () => ,\n }\n);\n\nconst LazyMyStoreModal = dynamic(\n () => import('@/components/Store/StoreModal/MyStoreModal').then((mod) => mod.MyStoreModal),\n {\n loading: () => ,\n }\n);\n\ntype ButtonVariant = Exclude<\n Lowercase>,\n 'chevron' | 'pill' // TODO: remove `Exclude` after updating STARC version\n>;\n\ntype Props = {\n options: ContentStackButton;\n size?: ButtonProps['size'];\n justify?: ViewProps<'div'>['justify'];\n ariaLabel?: string;\n};\n\nexport function CMSButton({ justify = 'center', options, size, ariaLabel }: Props) {\n const isMxSite = useLocale() === countryCodes.mx;\n const [storeModalOpen, setStoreModalOpen] = useState(false);\n const toggleStoreModal = () => {\n setStoreModalOpen((s) => !s);\n };\n const { data: storeData } = useStoreDetailsData();\n const storeNumber = storeData?.storeNumber ?? defaultStoreUS;\n\n const isSignInV2Enabled = useFeatureFlag('ENABLE_STREAMLINE_SIGNIN') === 'true' && !isMxSite;\n\n const [open, setOpen] = useState(false);\n const [activeTab, setActiveTab] = useState(0);\n const { setFlowTypeFn } = useContext(SignInFlowTypeContext);\n const isLoggedIn = useSelector(getUserAuthenticated);\n\n const { setModalReadyStatus, showRewardSigninView } = useContext(LinkRewardsContext);\n\n const { data: userData } = useMyProfile();\n\n const handleStandaloneRewards = (id: string) => {\n const isJoinFlow = id.includes('Join');\n\n showRewardSigninView(true);\n setModalReadyStatus(\n isJoinFlow ? actionConstants.SIGN_ME_UP_FORM : actionConstants.LINK_REWARDS_ACC\n );\n };\n\n const handleModalOpen = (id: string) => {\n const isStandaloneRewards =\n (id.includes('/create') || id.includes('/signin')) && userData?.userType === 4;\n if (isStandaloneRewards) {\n handleStandaloneRewards(id);\n return;\n }\n\n switch (id) {\n case '[search_store_modal]':\n toggleStoreModal();\n break;\n case '[sign_in_modal]':\n case '[create_account_modal]':\n if (isLoggedIn) {\n break;\n }\n\n if (isSignInV2Enabled) {\n setFlowTypeFn('login');\n }\n setActiveTab(id === '[sign_in_modal]' ? 0 : 1);\n setOpen(true);\n break;\n case '[cookie_preference_center_modal]':\n window.OneTrust?.ToggleInfoDisplay();\n break;\n }\n };\n\n const isModalButton = isModalLink(options.link?.href ?? '');\n const isStandaloneSignInModal =\n (options.link?.href.includes('/create') || options.link?.href.includes('/signin')) &&\n userData?.userType === 4;\n const isSignInModal =\n options.link?.href === '[sign_in_modal]' || options.link?.href === '[create_account_modal]';\n const isModalButtonDisabled = isSignInModal && isLoggedIn;\n const SignInModal = isSignInV2Enabled ? LazySignInModalV2 : LazySignInModal;\n const StoreModal = storeNumber !== defaultStoreUS ? LazyMyStoreModal : LazySearchStoreModal;\n return (\n <>\n \n {isModalButton || isStandaloneSignInModal ? (\n {\n handleModalOpen(options.link?.href ?? '');\n }}\n disabled={isModalButtonDisabled}\n >\n {options.link?.title}\n \n ) : (\n \n \n {options.link?.title}\n \n \n )}\n \n {isSignInModal && (\n setOpen(false)}\n activeTab={activeTab}\n setActiveTab={setActiveTab}\n />\n )}\n {storeModalOpen && }\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 { useMemo } from 'react';\nimport { useDeviceTypeByMediaQuery } from '@/hooks/useDeviceTypeByMediaQuery';\nimport type { ContentStackCertona } from '../interface';\n\n/**\n * Hook to get the responsive container style for a Certona component based on the current device type.\n *\n * @param containerStyles - The container styles object from the ContentStackCertona data.\n * @returns The responsive container style string for the current device type.\n */\nconst useResponsiveCertonaContainerStyle = (\n containerStyles: ContentStackCertona['container_style']\n) => {\n const deviceType = useDeviceTypeByMediaQuery();\n\n return useMemo(() => {\n return (\n containerStyles?.device_specific_overrides?.find(\n (override) => override.device?.toLowerCase() === deviceType\n )?.container_style ??\n containerStyles?.default_container_style ??\n ''\n );\n }, [containerStyles, deviceType]);\n};\n\nexport { useResponsiveCertonaContainerStyle };\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 React from 'react';\nimport { type ContentStackCertona } from '../../interface';\nimport { CertonaBlock, type CertonaBlockProps } from '@/features/certona';\nimport styles from './CMSCertona.styles.module.scss';\nimport cx from 'classnames';\nimport { useResponsiveCertonaContainerStyle } from '../../hooks/useResponsiveCertonaContainerStyle';\nimport { useRouter } from 'next/router';\n\ntype Props = {\n content: ContentStackCertona;\n} & CertonaBlockProps;\n\ntype Theme = 'white' | 'dark';\ntype CertonaTheme = 'white' | 'grey';\n\nconst responsiveTargets = { tablet: true, desktop: true, mobile: true };\n\nexport function CMSCertona({ content, certonaRecommendations, ...certonaProps }: Props) {\n const { pathname } = useRouter();\n const isShelfSkinnyRecommendations = pathname === '/[...seoUrlPath]' && !!certonaProps.subtitle;\n const { container_id, theme, title, container_style } = content;\n const currentTheme = theme as Theme;\n const customContainerStyle = useResponsiveCertonaContainerStyle(container_style);\n\n const mapThemeToCertonaTheme = (theme: Theme): CertonaTheme =>\n theme === 'dark' ? 'grey' : 'white';\n\n const contentItem = {\n name: title,\n containerID: container_id,\n themeCode: mapThemeToCertonaTheme(currentTheme),\n ...responsiveTargets,\n };\n\n return (\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 { CMSLink } from '../../CMSLink/CMSLink';\nimport type { ContentStackParttypeGrid } from '../../../interface';\nimport styles from './styles.module.scss';\nimport { CMSImage } from '../../CMSImage/CMSImage';\nimport cx from 'classnames';\n\ntype GridItemProps = {\n item: NonNullable[number];\n onLinkClick: (linkLabel: string, link: string) => void;\n layout: ContentStackParttypeGrid['layout'];\n gridLines?: boolean;\n};\n\nconst imgSizesForGridLines = {\n desktop: {\n width: 106,\n height: 106,\n },\n mobile: {\n width: 100,\n height: 100,\n },\n tablet: {\n width: 85,\n height: 95,\n },\n};\n\nexport const CMSGridItem = ({ item, onLinkClick, layout, gridLines }: GridItemProps) => {\n const { link, image, label } = item;\n\n return (\n {\n onLinkClick(label ?? link, link);\n }}\n samePage={true}\n className={cx(\n styles.link,\n gridLines ? styles.linkLines : null,\n styles[`grid-items-${layout.toLowerCase()}${gridLines ? '-lines' : ''}`],\n gridLines ? styles.gridItemLines : null\n )}\n >\n
\n {image && (\n \n )}\n
\n {label && (\n
\n {label}\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 { Grid } from '@/components/Grid';\nimport { clickTrack } from '@/utils/analytics/clickTrack';\nimport styles from './styles.module.scss';\nimport type { ContentStackParttypeGrid } from '../../interface';\nimport { type Props as HeadlineProps } from '@/components/Headline/Headline';\nimport { CMSGridItem } from './CMSGridItem/CMSGridItem';\nimport cx from 'classnames';\nimport { CMSHeadline } from '../CMSHeadline/CMSHeadline';\n\ntype Props = {\n content: ContentStackParttypeGrid;\n headlineOptions?: HeadlineProps;\n};\n\nconst trackHomeLinkInteractionBySection = (linkName: string, section: string, id: string) => {\n clickTrack({\n homeLinkName: linkName,\n linkBySection: section,\n clickedProductId: id,\n eventType: 'homeInteractionsBySection',\n });\n};\n\nexport const CMSGrid = ({ content, headlineOptions }: Props) => {\n const { headline, grid_content: gridContent, layout, grid_lines: gridLines } = content;\n\n const handleLinkClick = (linkName: string | undefined, link: string) => {\n const sectionName =\n (headline ?? '')\n .replace(/<[^>]+>/gi, '')\n .replace(/ /gi, '')\n .trim() || '';\n trackHomeLinkInteractionBySection(linkName ?? link, sectionName, '');\n };\n\n return (\n \n \n {headline}\n \n \n {gridContent?.map((item, i) => (\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 */\nimport { Picture } from '@/components/Picture/Picture';\nimport { CMSLink } from '../../CMSLink/CMSLink';\nimport cx from 'classnames';\nimport { Text, View } from '@az/starc-ui';\nimport { useResponsiveImageData } from '../../../hooks/useResponsiveImageData';\nimport { type ContentStackGridBanner } from '../../../interface';\nimport styles from './styles.module.scss';\n\nconst sizePerDeviceForSixItems = {\n mobile: {\n width: 320,\n height: 246,\n },\n tablet: {\n width: 156,\n height: 174,\n },\n desktop: {\n width: 242,\n height: 209,\n },\n};\n\nconst sizePerDeviceForFourItems = {\n mobile: {\n width: 320,\n height: 377,\n },\n tablet: {\n width: 242,\n height: 179,\n },\n desktop: {\n width: 320,\n height: 377,\n },\n};\n\ntype Props = {\n item: NonNullable[0];\n layout: 'Four' | 'Six';\n};\n\nexport const GridBannerItem = ({ item, layout }: Props) => {\n const { image, link, heading, sub_heading } = item;\n const sizePerDevice = layout === 'Four' ? sizePerDeviceForFourItems : sizePerDeviceForSixItems;\n const imageData = useResponsiveImageData({ image, sizePerDevice });\n const fourProductsLayout = layout === 'Four';\n\n return (\n \n \n \n \n \n {heading && (\n \n {heading}\n \n )}\n {sub_heading && (\n \n {sub_heading}\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 */\nimport { useResponsiveImageData } from '../../hooks/useResponsiveImageData';\nimport { type ContentStackGridBanner } from '../../interface';\nimport { Picture } from '@/components/Picture/Picture';\nimport styles from './styles.module.scss';\nimport cx from 'classnames';\nimport { GridBannerItem } from './GridBannerItem/GridBannerItem';\nimport { CMSLink } from '../CMSLink/CMSLink';\nimport { View } from '@az/starc-ui';\n\ntype Props = {\n content: ContentStackGridBanner;\n};\n\nconst sizePerDevice = {\n desktop: {\n width: 1560,\n height: 466,\n },\n mobile: {\n width: 688,\n height: 755,\n },\n tablet: {\n width: 1110,\n height: 396,\n },\n};\n\ntype PropsGridContent = {\n gridContent: Props['content']['grid_content'];\n layout: Props['content']['layout'];\n backgroundColor: string | undefined;\n};\n\nconst GridContent = ({ gridContent, layout, backgroundColor }: PropsGridContent) => {\n const fourItemsGrid = layout === 'Four';\n const customStyles: React.CSSProperties = {\n '--mobile-background-color': backgroundColor,\n } as React.CSSProperties;\n\n return (\n \n {gridContent?.map((item, index) => (\n \n ))}\n \n );\n};\n\nexport const CMSGridBanner = ({ content }: Props) => {\n const {\n layout,\n grid_content: gridContent,\n link,\n mobile_background_color: backgroundColor,\n image,\n } = content;\n const imageData = useResponsiveImageData({ image: image, sizePerDevice });\n\n return (\n \n \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 */\nimport { View, Text } from '@az/starc-ui';\nimport cx from 'classnames';\nimport React from 'react';\nimport styles from './CMSHeadline.module.scss';\nimport { Headline, type Props as HeadlineProps } from '@/components/Headline/Headline';\n\ntype Props = {\n children: React.ReactNode;\n nested?: boolean;\n fullWidth?: boolean;\n subHeading?: string;\n noGutter?: boolean;\n isBannerHeadline?: boolean;\n} & HeadlineProps;\n\nexport const CMSHeadline = ({\n children,\n isBannerHeadline = false,\n nested = false,\n fullWidth = false,\n noGutter = false,\n subHeading,\n ...headlineProps\n}: Props) => {\n return (\n \n {children}\n {subHeading && (\n \n {subHeading}\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 */\nimport { forwardRef } from 'react';\nimport type { ContentStackImage, SizePerDevice } from '../../interface';\nimport { useResponsiveImageData } from '../../hooks/useResponsiveImageData';\nimport { Picture } from '@/components/Picture/Picture';\n\ntype Props = {\n image: ContentStackImage;\n sizePerDevice?: SizePerDevice;\n className?: string;\n priority?: boolean;\n loading?: 'lazy' | 'eager';\n};\n\nconst defaultSizePerDevice: SizePerDevice = {\n desktop: {\n width: '100%',\n height: '100%',\n },\n mobile: {\n width: '100%',\n height: '100%',\n },\n tablet: {\n width: '100%',\n height: '100%',\n },\n};\n\nexport const CMSImage = forwardRef(function CMSImageComponent(\n { image, loading, sizePerDevice = {}, className, priority }: Props,\n ref\n) {\n const imageData = useResponsiveImageData({\n image,\n sizePerDevice: { ...defaultSizePerDevice, ...sizePerDevice },\n });\n\n return (\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 */\n\nimport { ModalLink } from '@/components/ModalLink/ModalLink';\nimport { SmartLink as Link, getPath } from '@/utils/smartLink';\nimport { isModalLink } from '../../utils/isModalLink';\n\ntype CMSLinkProps = React.ComponentProps;\n\nexport function CMSLink(props: CMSLinkProps) {\n const path = getPath(props.to);\n\n if (isModalLink(path)) {\n return {props.children};\n }\n\n return ;\n}\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport cx from 'classnames';\nimport SpacerStyles from './CMSSpacer.module.scss';\n\nexport type CMSSpacerProps = {\n children: React.ReactNode;\n id?: string;\n shouldIgnoreCarouselSpacing?: boolean;\n removeImagePadding?: boolean | { s?: boolean; m?: boolean; l?: boolean };\n shouldReduceSpacing?: boolean;\n removeHorizontalSpacing?: boolean | { s?: boolean; m?: boolean; l?: boolean };\n removeVerticalSpacing?: boolean | { s?: boolean; m?: boolean; l?: boolean };\n className?: string;\n homePage?: boolean;\n landingPage?: boolean;\n shelfPage?: boolean;\n shouldUseTitleSpacing?: boolean;\n shouldUseTopCategorySpacing?: boolean;\n};\n\nexport function CMSSpacer({\n children,\n id,\n shouldIgnoreCarouselSpacing,\n removeImagePadding,\n shouldReduceSpacing,\n shouldUseTitleSpacing,\n removeHorizontalSpacing,\n removeVerticalSpacing,\n shouldUseTopCategorySpacing,\n className,\n homePage,\n landingPage,\n shelfPage,\n}: CMSSpacerProps) {\n return (\n \n {children}\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 { ContentStackTargetDiv } from '../../interface';\ntype Props = {\n content: ContentStackTargetDiv;\n};\n\nexport function CMSTarget({ content }: Props) {\n return
;\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 {\n YMMEContentBlock,\n type YMMEContentBlockProps,\n} from '@/features/ymme/components/YMMEContentBlock';\nimport AltYMMEContentBlock from '@/features/ymme/components/AltYMMEContentBlock';\nimport { type ContentStackYmme } from '../../interface';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\nimport { pageTypes } from '@/constants/page';\n\ntype Props = {\n content: Omit;\n redirectAfterVehicleChanged?: YMMEContentBlockProps['onUpdateVehicleSuccess'];\n removeBottomMargin?: boolean;\n removeMargins?: boolean;\n withPadding?: boolean;\n classes?: YMMEContentBlockProps['classes'];\n isProductFinderDisplayed?: boolean;\n nonShopPage?: boolean;\n pageType?: string;\n};\n\nexport function CMSYmme({\n classes,\n content,\n redirectAfterVehicleChanged,\n removeBottomMargin,\n removeMargins,\n withPadding,\n isProductFinderDisplayed,\n pageType,\n nonShopPage = false,\n}: Props) {\n const { layout, text, sub_text } = content;\n const altYMMEContentBlock = useMonetateDecisionFlag('alternativeYMMEContentBlock');\n\n const layoutType = layout?.toLowerCase() as Lowercase>;\n\n return (\n <>\n {altYMMEContentBlock ? (\n \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 */\nimport type { ContentStackFile, ContentStackImage, SizePerDevice } from '../interface';\nimport { type ImageSize } from '../interface/models';\n\ntype Props = {\n image?:\n | ContentStackImage\n | {\n image_alt_text: NonNullable;\n\n image_url: ContentStackFile['url'];\n\n attributes: undefined;\n };\n sizePerDevice: SizePerDevice;\n};\n\ntype Image = {\n src: string;\n width: ImageSize['width'];\n height: ImageSize['height'];\n};\n\nconst useResponsiveImageData = ({ image, sizePerDevice }: Props) => {\n const imgSrcs = image?.attributes?.reduce>>(\n (acc, { device, device_image }) => {\n const deviceType = device?.toLowerCase() ?? '';\n return { ...acc, [deviceType]: { src: device_image ?? '' } };\n },\n {}\n );\n\n return Object.keys(sizePerDevice).reduce>((acc, key) => {\n const src = imgSrcs?.[key]?.src ?? image?.image_url ?? '';\n return { ...acc, [key]: { ...sizePerDevice[key], src } };\n }, {});\n};\n\nexport { useResponsiveImageData };\n","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { ContentStackLegal } from '../interface/content-types';\n\nexport const isLegalDefined = (legal: ContentStackLegal | unknown | undefined) => {\n if (!legal) {\n return false;\n }\n\n const fields = ['copy', 'link', 'link_name', 'text'];\n\n return fields.some(\n (field) => typeof legal === 'object' && field in legal && legal[field as keyof typeof legal]\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 */\nconst modalLinkRegex = new RegExp(/\\[[A-Za-z-_]+\\]/);\n\n/**\n * Checks if the given URL is a modal link.\n * Modal links should be enclosed in square brackets and can only have letters, \"-\" and \"_\" characters.\n *\n * @example\n * isModalLink('[search_store_modal]') // true\n * @param {string} url - The URL to check.\n * @returns {boolean} True if the URL is a modal link, false otherwise.\n */\nexport function isModalLink(url: string): boolean {\n return modalLinkRegex.test(url);\n}\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { memo } from 'react';\nimport type { CarouselItem } from '../../interface';\nimport { CMSLink } from '@/features/contentstack/components/CMSLink/CMSLink';\nimport carouselImageStyles from './CarouselImage.module.scss';\nimport { trackHomeCarouselInteraction } from '@/utils/analytics/track/trackHomeCarouselInteraction';\nimport { useResponsiveImageData } from '@/features/contentstack/hooks/useResponsiveImageData';\nimport { Picture } from '@/components/Picture/Picture';\nimport { reportCitrusClick } from '@/features/citrus/utils/reportCitrusClick';\nimport cx from 'classnames';\n\ntype Props = {\n blockItem: CarouselItem;\n itemIndex?: number;\n isCurrentSlide: boolean;\n tabindex?: number;\n setFocusToAnchorTag?: boolean;\n carouselImageClassName?: string;\n};\n\nconst sizePerDevice = {\n mobile: {\n width: '100%',\n height: '100%',\n },\n tablet: {\n width: '100%',\n height: '100%',\n },\n desktop: {\n width: '100%',\n height: '100%',\n },\n};\n\nexport const CarouselImage = memo(function CarouselImage(props: Props) {\n const { setFocusToAnchorTag, blockItem, itemIndex = 0, tabindex } = props;\n const imageData = useResponsiveImageData({\n image: blockItem.image,\n sizePerDevice,\n });\n\n const onBannerBtnClick = (bannerName: string, slideNumber: number) => {\n if ('citrusInfo' in blockItem && blockItem.citrusInfo?.citrusAdId) {\n void reportCitrusClick(blockItem.citrusInfo.citrusAdId);\n } else {\n trackHomeCarouselInteraction(\n bannerName,\n slideNumber,\n `Home Hero Banner: Rank ${slideNumber}`\n );\n }\n };\n\n const bannerStyle = {\n width: '100%',\n display: 'block',\n backgroundRepeat: 'no-repeat',\n backgroundSize: 'contain',\n };\n\n const bannerImg = (\n
\n \n
\n );\n return (\n
\n onBannerBtnClick(blockItem.image?.image_alt_text ?? '', itemIndex)}\n onAuxClick={(e) => {\n if (e.button === 1 && 'citrusInfo' in blockItem && blockItem.citrusInfo?.citrusAdId) {\n void reportCitrusClick(blockItem.citrusInfo.citrusAdId);\n }\n }}\n >\n {blockItem.link ? (\n \n {bannerImg}\n \n ) : (\n bannerImg\n )}\n
\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 */\n\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport type { CarouselItem } from '../../interface';\n\n/**\n * @param part index of current item\n * @param whole amount of total items\n * @returns `${part} of ${whole}`\n */\nexport const partOfWholeToString = (part: number, whole: number) => {\n return `${part} of ${whole}`;\n};\n\n/**\n * @param altText image alt-text for banner\n * @param part index of current item\n * @param whole amount of total items\n * @returns `${altText} ${part} of ${whole}`\n */\nexport const ariaLabelForCurrentSlide = ({\n part,\n whole,\n altText,\n}: {\n part: number;\n whole: number;\n altText?: string;\n}) => {\n return `${!!altText && altText} ${partOfWholeToString(part, whole)}`.trim();\n};\n\n/** Determines color set in ContentStack with optional responsive color\n * overrides for mobile, tablet, and desktop\n * @param carouselItem current banner displayed in Super Duper Hero\n * @returns color hex value as a string, either '#FFFFFF' or '#202124'\n */\nexport const useLegalLinkColor = (carouselItem: CarouselItem) => {\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n const isTablet = useMediaQuery((theme) => theme.breakpoints.only('md'));\n\n const getLegalLinkColor = () => {\n const sizeToString = () => {\n switch (true) {\n case isMobile:\n return 'Mobile';\n case isTablet:\n return 'Tablet';\n default:\n return 'Desktop';\n }\n };\n const hexColor = (color?: string): string => {\n switch (color) {\n case 'White':\n return 'var(--st-color-secondary)';\n case 'Black':\n default:\n return 'var(--st-color-primary)';\n }\n };\n\n if (!('legal_link_color' in carouselItem)) {\n return 'var(--st-color-primary)';\n }\n\n const { ...legal_link_color } = carouselItem.legal_link_color;\n let hex =\n legal_link_color.default_color && typeof legal_link_color.default_color === 'string'\n ? hexColor(legal_link_color.default_color)\n : '#202124';\n legal_link_color.group?.forEach((element) => {\n if (element.device === sizeToString()) {\n hex = hexColor(element.color);\n }\n });\n return hex;\n };\n const legalLinkColor = getLegalLinkColor();\n return legalLinkColor;\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 { Legal } from '@/components/AZCustomComponent/Legal';\nimport { mapContentstackLegalValues } from '@/utils/mapContentstackLegalValues';\nimport { Button } from '@/components/Button';\nimport Image from '@/components/NextImage';\nimport { type CarouselItem } from '../../interface';\nimport styles from './CarouselTopSection.module.scss';\nimport type { ContentStackLegal } from '@/features/contentstack/interface';\nimport { isLegalDefined } from '@/features/contentstack/utils/isLegalDefined';\nimport { Text } from '@az/starc-ui';\nimport { type Dispatch, type SetStateAction, useEffect, useRef, useState } from 'react';\nimport { ariaLabelForCurrentSlide, useLegalLinkColor } from './SuperDuperHelpers';\nimport root from 'window-or-global';\nimport cx from 'classnames';\n\ntype Props = {\n carouselItems: CarouselItem[];\n carouselItemCount: number;\n currentSlide: number;\n autoRotationEnabled: boolean;\n setCurrentSlide: Dispatch>;\n setAutoRotationEnabled: Dispatch>;\n heroBanner: boolean;\n};\nconst CarouselTopSection = (props: Props) => {\n const {\n carouselItems,\n carouselItemCount,\n currentSlide,\n autoRotationEnabled,\n setCurrentSlide,\n setAutoRotationEnabled,\n heroBanner,\n } = props;\n const carouselItem = carouselItems[currentSlide];\n const isWithLegalText =\n !!carouselItem?.legal && ('text' in carouselItem.legal || 'legalText' in carouselItem.legal);\n const [nextButtonFocused, setNextButtonFocused] = useState(false);\n const [previousButtonFocused, setPreviousButtonFocused] = useState(false);\n const [announceCurrentSlide, setAnnounceCurrentSlide] = useState(false);\n const legalLinkColor = useLegalLinkColor(carouselItem);\n const slideRef = useRef(currentSlide);\n\n const slideNext = () => {\n setCurrentSlide('NEXT');\n setAnnounceCurrentSlide(false);\n };\n const slidePrev = () => {\n setCurrentSlide('PREV');\n setAnnounceCurrentSlide(false);\n };\n const pauseSlider = () => void setAutoRotationEnabled(false);\n const playSlider = () => void setAutoRotationEnabled(true);\n\n const currentSlideAriaLabel = () => {\n if (\n (nextButtonFocused || previousButtonFocused) &&\n announceCurrentSlide &&\n slideRef.current === currentSlide\n ) {\n return ariaLabelForCurrentSlide({\n part: currentSlide + 1,\n whole: carouselItems.length,\n altText: carouselItems[currentSlide].image?.image_alt_text,\n });\n }\n };\n\n useEffect(() => {\n if (nextButtonFocused || previousButtonFocused) {\n slideRef.current = currentSlide;\n root.addEventListener('click', () => {\n setAnnounceCurrentSlide(true);\n });\n }\n return () => {\n setAnnounceCurrentSlide(false);\n root.removeEventListener('click', () => {});\n };\n }, [nextButtonFocused, previousButtonFocused, currentSlide]);\n\n return (\n <>\n setPreviousButtonFocused(true)}\n onBlur={() => setPreviousButtonFocused(false)}\n aria-label={currentSlideAriaLabel()}\n >\n \n \n\n setNextButtonFocused(true)}\n onBlur={() => setNextButtonFocused(false)}\n aria-label={currentSlideAriaLabel()}\n >\n \n \n\n
\n {carouselItem?.legal && isLegalDefined(carouselItem.legal) ? (\n \n {\n isModalOpened ? pauseSlider() : playSlider();\n }}\n isWithLegalText={isWithLegalText}\n isHeroCarouselBanner\n isCMSHeroBanner\n isCMSSuperDuperHero={true}\n singleLine\n linkColor={legalLinkColor}\n />\n
\n ) : null}\n
\n \n {currentSlide + 1} of {carouselItemCount}\n \n {autoRotationEnabled ? (\n \n ) : (\n \n )}\n
\n \n \n );\n};\n\nexport default CarouselTopSection;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { CMSImage } from '@/features/contentstack/components/CMSImage/CMSImage';\nimport { CMSLink } from '@/features/contentstack/components/CMSLink/CMSLink';\nimport styles from './HorizontalCard.module.scss';\nimport { partOfWholeToString } from './SuperDuperHelpers';\nimport { type ContentStackHorizontalScrollCard } from '@/features/contentstack/interface';\nimport { Text } from '@az/starc-ui';\n\ntype Props = {\n index: number;\n card: ContentStackHorizontalScrollCard;\n numberOfCards: number;\n};\n\nconst TITLE_CHARS_PER_LINE = 25;\n\nconst defaultSizePerDevice = {\n mobile: {\n width: 140,\n height: 102,\n },\n tablet: {\n width: 188,\n height: 148,\n },\n desktop: {\n width: 220,\n height: 148,\n },\n};\n\nconst HorizontalCard = (props: Props) => {\n const { index, card, numberOfCards } = props;\n\n return (\n
\n \n
\n
\n \n {card.heading}\n \n TITLE_CHARS_PER_LINE ? 1 : 2\n }\n className={styles.subheading}\n >\n {card.sub_heading}\n \n
\n {card.image && (\n
\n \n
\n )}\n
\n {`Horizontal Card ${partOfWholeToString(index + 1, numberOfCards)}`}\n
\n
\n \n
\n );\n};\n\nexport default HorizontalCard;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React, { useState, useEffect, useRef, useCallback } from 'react';\nimport styles from './HorizontalCard.module.scss';\nimport Image from '@/components/NextImage';\nimport { useSwipeable } from 'react-swipeable';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport type { ContentStackHorizontalScrollCards } from '@/features/contentstack/interface';\nimport HorizontalCard from './HorizontalCard';\n\ntype HorizontalCardsProps = {\n horizontalCardsData: ContentStackHorizontalScrollCards['card_content'];\n};\n\nconst HorizontalCards: React.FC = ({ horizontalCardsData }) => {\n const cardContainerRef = useRef(null);\n const [hideLeftArrow, setHideLeftArrow] = useState(true);\n const [hideRightArrow, setHideRightArrow] = useState(false);\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n\n const handleScrollForward = () => {\n if (!cardContainerRef.current) return;\n\n const lastCard = cardContainerRef.current.lastElementChild;\n if (\n !lastCard ||\n lastCard.getBoundingClientRect().right <=\n cardContainerRef.current.getBoundingClientRect().right\n ) {\n return;\n }\n\n const containerRight = cardContainerRef.current.getBoundingClientRect().right;\n const lastCardRight = lastCard.getBoundingClientRect().right;\n const remainingScroll = lastCardRight - containerRight + 20;\n const cardWidth =\n cardContainerRef.current.firstElementChild?.clientWidth !== undefined\n ? cardContainerRef.current.firstElementChild?.clientWidth + 11\n : 231;\n cardContainerRef.current.scrollBy({\n left: Math.min(remainingScroll, cardWidth),\n behavior: 'smooth',\n });\n };\n\n const handleScrollBackward = () => {\n if (!cardContainerRef.current) return;\n\n const firstCard = cardContainerRef.current.firstElementChild;\n if (\n !firstCard ||\n firstCard.getBoundingClientRect().left >=\n cardContainerRef.current.getBoundingClientRect().left\n ) {\n return;\n }\n\n const containerLeft = cardContainerRef.current.getBoundingClientRect().left;\n const firstCardLeft = firstCard.getBoundingClientRect().left;\n const remainingScroll = containerLeft - firstCardLeft + 20;\n const cardWidth =\n cardContainerRef.current.firstElementChild?.clientWidth !== undefined\n ? cardContainerRef.current.firstElementChild?.clientWidth + 11\n : 231;\n cardContainerRef.current.scrollBy({\n left: -Math.min(remainingScroll, cardWidth),\n behavior: 'smooth',\n });\n };\n\n const checkArrowsVisibility = useCallback(() => {\n if (cardContainerRef.current) {\n const container = cardContainerRef.current;\n const firstChild = container.firstElementChild as HTMLElement;\n const lastChild = container.lastElementChild as HTMLElement;\n\n if (lastChild && firstChild) {\n setHideRightArrow(\n lastChild.getBoundingClientRect().right <= container.getBoundingClientRect().right\n );\n setHideLeftArrow(\n firstChild.getBoundingClientRect().left >= container.getBoundingClientRect().left\n );\n }\n if (isMobile) {\n setHideLeftArrow(true);\n setHideRightArrow(true);\n }\n }\n }, [isMobile]);\n\n useEffect(() => {\n const container = cardContainerRef.current;\n if (container) {\n container.addEventListener('scroll', checkArrowsVisibility);\n window.addEventListener('resize', checkArrowsVisibility);\n checkArrowsVisibility();\n }\n return () => {\n if (container) {\n container.removeEventListener('scroll', checkArrowsVisibility);\n window.removeEventListener('resize', checkArrowsVisibility);\n }\n };\n }, [cardContainerRef, checkArrowsVisibility]);\n\n const swipeableHandlers = useSwipeable({\n onSwipedLeft: handleScrollForward,\n onSwipedRight: handleScrollBackward,\n preventDefaultTouchmoveEvent: true,\n trackMouse: true,\n });\n\n return (\n
\n
\n {\n if ((e || window.event).keyCode === 13) {\n handleScrollBackward();\n }\n }}\n >\n \n \n
\n \n {horizontalCardsData?.map((card, index: number) => (\n \n ))}\n
\n {\n if ((e || window.event).keyCode === 13) {\n handleScrollForward();\n }\n }}\n >\n \n \n \n \n \n );\n};\n\nexport default HorizontalCards;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport Carousel from '@/components/Carousel';\nimport type {\n ContentStackSuperDuperHero,\n ContentStackHorizontalScrollCards,\n} from '@/features/contentstack/interface';\nimport { useMemo, useState } from 'react';\nimport type { CarouselItem } from '../../interface';\nimport { CarouselImage } from '../HomepageHero/CarouselImage';\nimport { useCitrusHomepageData } from '@/features/citrus/api/getCitrusHomepageData';\nimport { reportCitrusImpression } from '@/features/citrus/utils/reportCitrusImpression';\nimport { mapCitrusBannerToContentStackBanner } from '@/features/citrus/utils/mapCitrusBannerToContentStackBanner';\nimport styles from './SuperDuperHero.module.scss';\nimport cx from 'classnames';\nimport CarouselTopSection from './CarouselTopSection';\nimport HorizontalCards from './HorizontalCards';\nimport { ariaLabelForCurrentSlide } from './SuperDuperHelpers';\nimport { isCitrusBannerWithLink } from '@/features/citrus/utils/isCitrusBannerWithLink';\nimport { useFeatureFlag } from '@/features/globalConfig';\n\nconst DEFAULT_ROTATION_SPEED_SECS = 5;\n\nexport type SuperDuperHeroProps = {\n options: ContentStackSuperDuperHero;\n horizontalCards?: ContentStackHorizontalScrollCards['card_content'];\n};\n\nexport const SuperDuperHero = ({ options, horizontalCards }: SuperDuperHeroProps) => {\n const [currentSlide, setCurrentSlide] = useState(0);\n const [slideToImage, setSlideToImage] = useState('');\n const [autoRotationEnabled, setAutoRotationEnabled] = useState(true);\n const citrusHeroEnabled = useFeatureFlag('IS_CITRUS_HERO_ENABLED') === 'true';\n const { data: citrusData } = useCitrusHomepageData({\n enabled: citrusHeroEnabled,\n });\n\n const [carouselItems, carouselItemCount]: [CarouselItem[], number] = useMemo(() => {\n const carouselBanner =\n citrusData?.ads.find((item) => item.slotId === 'carousel-banner')?.banners ?? [];\n\n const citrusCarouselBanners = carouselBanner\n .map((item) => {\n if (!isCitrusBannerWithLink(item)) {\n return null;\n }\n\n const cmsBanner = mapCitrusBannerToContentStackBanner(item);\n return {\n image: cmsBanner.image,\n link: cmsBanner.link,\n legal: cmsBanner.legal,\n citrusInfo: {\n citrusAdId: item.citrusAdId,\n },\n };\n })\n .filter(Boolean) as CarouselItem[];\n\n const cmsCarouselBanners = options?.carousel_content ?? [];\n\n const items = [\n ...cmsCarouselBanners.slice(0, 1),\n ...(citrusHeroEnabled && !options?.hero_banner ? citrusCarouselBanners.slice(0, 5) : []),\n ...cmsCarouselBanners.slice(1),\n ];\n return [items, items.length];\n }, [citrusData?.ads, options?.carousel_content, options?.hero_banner, citrusHeroEnabled]);\n\n const handleImageChange = (index: number) => {\n if (index !== currentSlide) {\n setCurrentSlide(index);\n setSlideToImage('');\n }\n const currentItem = carouselItems[index];\n if ('citrusInfo' in currentItem && currentItem.citrusInfo?.citrusAdId) {\n void reportCitrusImpression(currentItem.citrusInfo.citrusAdId);\n }\n };\n\n const superDuperHeroBannerAriaLabel = ariaLabelForCurrentSlide({\n part: currentSlide + 1,\n whole: carouselItemCount,\n altText: carouselItems[currentSlide].image?.image_alt_text,\n });\n\n return (\n \n
\n \n {carouselItems?.map((colItem, index) => (\n \n ))}\n \n \n {horizontalCards && }\n
\n \n );\n};\n","/**\n * Copyright 2022 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { HEADER_PRIMARY_KEY } from '@/features/header/api/getHeader';\nimport { getAxiosForClient } from '@/lib/axios';\nimport { useMutation, useQueryClient } from '@tanstack/react-query';\nimport { deletePreferredVehicleCookies } from '@/utils/analytics/dataLayer/preferredVehicleCookies';\nimport { getKey as getVehiclesKey, selector as getVehiclesSelector } from './getVehicles';\nimport { dispatchEvent } from '@/utils/eventPublisher';\nimport { usePreferredVehicle } from '@/features/header/hooks/usePreferredVehicle';\nimport { sessionStorage } from '@/utils/sessionStorage';\n\nconst deleteDefaultVehicle = async (previousVehicleID: string) => {\n const response = await getAxiosForClient().delete(\n `/ecomm/b2c/v1/currentUser/vehicles/defaultVehicle`\n );\n sessionStorage.setItem('previousPreferredVehicleId', previousVehicleID);\n // we're not able to type delete() function from axios due to old version that we're using\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n return getVehiclesSelector(response.data);\n};\n\nconst getKey = () => ['deleteDefaultVehicle'];\n\nexport const useDeleteDefaultVehicleMutation = () => {\n const queryClient = useQueryClient();\n const previousPreferredVehicle = usePreferredVehicle();\n const catalogVehicleId = previousPreferredVehicle?.catalogVehicleId ?? '0';\n\n return useMutation({\n mutationFn: () => deleteDefaultVehicle(catalogVehicleId),\n mutationKey: getKey(),\n onSuccess: async (data) => {\n deletePreferredVehicleCookies();\n queryClient.setQueryData(getVehiclesKey(), data);\n await queryClient.refetchQueries([HEADER_PRIMARY_KEY]);\n dispatchEvent('preferredVehicleUpdated', { vehicleSet: false });\n },\n });\n};\n","/**\n * Copyright 2025 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type VehicleSummary } from '@/types';\nimport styles from './AltYMMEContentBlock.module.scss';\nimport cx from 'classnames';\nimport NextImage from '@/components/NextImage';\nimport { useLabels } from '@/hooks/useLabels';\n\ntype Props = {\n preferredVehicle: VehicleSummary;\n setShowYmme: (open: boolean) => void;\n handleShopWithoutVehicle: () => void;\n};\n\nconst labelMap = {\n lblCurrentlyShoppingFor: 'label_CurrentlyShoppingFor',\n lblSubModel: 'label_SubModel',\n lblEngine: 'label_Engine',\n lblChangeVehicle: 'button_YMME_Body_ChangeVehicle',\n lblShopWithoutVehicle: 'button_YMME_Body_ShopWithoutVehicle',\n};\n\nexport const VehicleSelectedYMME = ({\n preferredVehicle,\n setShowYmme,\n handleShopWithoutVehicle,\n}: Props) => {\n const vehicleIconOrange = {\n src: '/images/vehicle-new-orange.svg',\n alt: 'car-icon',\n };\n\n const vehicleImage =\n preferredVehicle && !!preferredVehicle.vehicleImageURL ? (\n \n ) : (\n \n );\n\n const labels = useLabels(labelMap);\n\n return (\n
\n
\n

{labels.lblCurrentlyShoppingFor}:

\n \n
\n
\n
\n \n {vehicleImage}\n \n
\n

\n {preferredVehicle.year} {preferredVehicle.make} {preferredVehicle.model}\n

\n

\n {labels.lblEngine}: {preferredVehicle.engine}\n

\n
\n
\n
\n \n \n {labels.lblShopWithoutVehicle}\n \n
\n
\n
\n );\n};\n","/**\n * Copyright 2025 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport styles from './AltYMMEContentBlock.module.scss';\nimport cx from 'classnames';\nimport NextImage from '@/components/NextImage';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useRouter } from 'next/router';\nimport { useEffect, useState } from 'react';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport { type CategoryByModelData } from '../../../category/interface';\n\ntype Props = {\n onOpenYMME: (method: string) => void;\n nonShopPage?: boolean;\n categoryModelData?: CategoryByModelData;\n};\n\nconst labelMap = {\n lblInlineEntryPointTitle: 'label_InlineEntryPointTitle',\n lblInlineEntryPointSubtitle: 'label_InlineEntryPointSubtitle',\n lblAddVehicle: 'button_YMME_Body_AddVehicle',\n lblAddMakeModel: 'add_make_model',\n lblAddLicensePlate: 'button_YMME_Body_AddLicensePlate',\n lblAddVIN: 'button_YMME_Body_AddVIN',\n lblMakeModel: 'label_MakeModel',\n lblLicensePlate: 'label_LicensePlate',\n lblVin: 'label_Vin',\n lblGetExactFit: 'label_YMME_GetAnExactFitForYour',\n};\n\nexport const NonVehicleYMME = ({ onOpenYMME, categoryModelData, nonShopPage = false }: Props) => {\n const [modelName, setModelName] = useState('');\n const labels = useLabels(labelMap);\n const router = useRouter();\n const locale = useLocale();\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n const isMX = locale === countryCodes.mx;\n const isBR = locale === countryCodes.ptBr;\n\n const plusSignBlack = {\n src: '/images/plus-sign-black.svg',\n alt: 'plus-sign',\n };\n const ymmeCarIcon = {\n src: '/images/vehicle/ymme-car.svg',\n alt: 'car-icon',\n };\n\n const isPartsRoute =\n router.asPath.startsWith('/parts') || router.asPath.startsWith('/refacciones');\n const seoUrlPathLength = router.query.seoUrlPath?.length ?? 0;\n const isCategoryPage = isPartsRoute && seoUrlPathLength >= 2;\n\n useEffect(() => {\n if (categoryModelData) {\n if (categoryModelData.title && seoUrlPathLength === 2) {\n const titleParts = categoryModelData.title.split(' by ');\n if (titleParts.length > 1) {\n setModelName(titleParts[1].split(' by')[0]);\n }\n }\n\n if (categoryModelData.shopByMMYList && seoUrlPathLength === 3) {\n const foundModel = categoryModelData.shopByMMYList.find(\n (model) => model.seoUrl === router.asPath\n );\n setModelName(foundModel?.name || '');\n }\n }\n }, [categoryModelData, seoUrlPathLength, router.asPath]);\n\n const vehicleAddLabel = isMobile ? labels.lblAddVehicle : labels.lblAddMakeModel;\n\n const shouldShowDesktopIcon = (!isMobile && nonShopPage) || !nonShopPage;\n const shouldShowMobileIcon = isMobile && nonShopPage;\n\n return (\n
\n \n
\n {shouldShowDesktopIcon && (\n \n )}\n

\n {shouldShowMobileIcon && (\n \n )}\n {labels.lblInlineEntryPointTitle}\n

\n
\n {isCategoryPage && modelName ? (\n

\n {labels.lblGetExactFit} {modelName}\n

\n ) : (\n

{labels.lblInlineEntryPointSubtitle}

\n )}\n
\n
\n \n {!isMX && !isBR && (\n \n )}\n \n
\n \n );\n};\n","/**\n * Copyright 2025 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport styles from './AltYMMEContentBlock.module.scss';\nimport cx from 'classnames';\nimport { useRouter } from 'next/router';\nimport logger from '@/utils/logger';\nimport { YMMEModal } from '../YMMEModal';\nimport { useContext, useEffect, useState } from 'react';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { useLabels } from '@/hooks/useLabels';\nimport { SnackBarContext } from '@/components/SnackBarContext';\nimport { usePreferredVehicle } from '../../../header/hooks/usePreferredVehicle';\nimport { trackShopWithoutVehicle } from '@/utils/analytics/track/trackShopWithoutVehicle';\nimport { useDeleteDefaultVehicleMutation } from '../../api/deleteDefaultVehicle';\nimport { setInteractionLocation } from '../../utils/ymmeLocationHelper';\nimport type { InteractionLocation } from '@/types/analytics';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport { useCategoryByModel } from '@/features/category/api/getCategoryModels';\nimport { useRedirectAfterVehicleChanged } from '@/features/category/hooks/useRedirectAfterVehicleChanged';\nimport { Skeleton, View } from '@az/starc-ui';\nimport { VehicleSelectedYMME } from './VehicleSelectedYMME';\nimport { NonVehicleYMME } from './NonVehicleYMME';\nimport ContentContainer from '@/components/AZCustomComponent/ContentContainer';\nimport { useProductList } from '@/features/shelf/context/useProductList';\n\ntype Props = {\n pageType?: string;\n onUpdateVehicleSuccess?: (() => void) | undefined;\n nonShopPage?: boolean;\n removeMargins?: boolean;\n};\n\nconst labelMap = {\n lblAddVehicle: 'button_YMME_Body_AddVehicle',\n lblAddMakeModel: 'add_make_model',\n yourLabel: 'label_MyAccountMyProfile_landing_RewardYour',\n hasBeenMovedLabel: 'label_YMME_Body_HasBeenMovedTo',\n lblMakeModel: 'label_MakeModel',\n lblAddYear: 'label_Add_Year',\n};\n\nexport default function AltYMMEContentBlock({\n pageType,\n onUpdateVehicleSuccess,\n nonShopPage = false,\n removeMargins = false,\n}: Props) {\n const router = useRouter();\n const [showYmme, setShowYmme] = useState(false);\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n\n const { data: shelfData } = useProductList();\n const productFinderData = shelfData?.productFinderData;\n const productFilterData = shelfData?.productFilterData;\n const productRefinementIsAfterYMME = productFinderData?.isAfterYmme || !!productFilterData;\n\n const isPartsRoute =\n router.asPath.startsWith('/parts') || router.asPath.startsWith('/refacciones');\n const isCategoryPage = isPartsRoute && (router.query.seoUrlPath?.length || 0) >= 2;\n const [isLoading, setIsLoading] = useState(isCategoryPage);\n\n const preferredVehicle = usePreferredVehicle();\n const redirectAfterVehicleChanged = useRedirectAfterVehicleChanged();\n const isBrowsePageType = router.route === '/[...seoUrlPath]';\n\n const { data: categoryModelData } = useCategoryByModel({\n enabled: isCategoryPage,\n seoUrl: router.asPath,\n });\n\n const labels = useLabels(labelMap);\n\n const [selectedMethod, setSelectedMethod] = useState(labels.lblMakeModel);\n\n const locale = useLocale();\n const isMX = locale === countryCodes.mx;\n const isBR = locale === countryCodes.ptBr;\n\n const handleOpenYmme = (method: string) => {\n setSelectedMethod(method);\n setShowYmme(true);\n setInteractionLocation(pageType as InteractionLocation);\n };\n\n const closeYmme = () => {\n setShowYmme(false);\n };\n\n const { mutateAsync: removeDefaultVehicle } = useDeleteDefaultVehicleMutation();\n const { showSnackBar } = useContext(SnackBarContext);\n\n const removeVehicle = () => {\n try {\n void removeDefaultVehicle();\n } catch (err) {\n logger.error({\n message: 'Error when removing default vehicle',\n meta: {\n error: err,\n },\n });\n } finally {\n onUpdateVehicleSuccess?.();\n }\n };\n\n const handleShopWithoutVehicle = () => {\n setInteractionLocation(pageType as InteractionLocation);\n removeVehicle();\n const snackMessage = preferredVehicle?.vehicleName\n ? `${labels.yourLabel} ${preferredVehicle.vehicleName} ${labels.hasBeenMovedLabel}`\n : '';\n showSnackBar(snackMessage);\n trackShopWithoutVehicle();\n };\n\n const vehicleAddLabel = isMobile ? labels.lblAddVehicle : labels.lblAddMakeModel;\n\n useEffect(() => {\n if (categoryModelData) {\n setIsLoading(false);\n }\n }, [categoryModelData]);\n\n if (isLoading) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n {!!preferredVehicle ? (\n \n ) : (\n \n )}\n {\n isBrowsePageType && void redirectAfterVehicleChanged();\n closeYmme();\n }}\n showYmme={showYmme}\n closeYmmeWidget={closeYmme}\n pageType={pageType}\n selectedMethod={\n isMobile && !vehicleAddLabel.includes(labels.lblAddYear) ? '' : selectedMethod\n }\n />\n \n \n );\n}\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { Button } from '@/components/Button';\nimport { Grid } from '@/components/Grid';\nimport Hidden from '@/components/Hidden';\nimport NextImage from '@/components/NextImage';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { getPreferredVehicle } from '@/features/header/utils/getPreferredVehicle';\nimport { Label } from '@/features/i18n';\nimport { useLabel } from '@/hooks/useLabels';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport cx from 'classnames';\nimport { useContext } from 'react';\nimport { setInteractionLocation } from '../utils/ymmeLocationHelper';\nimport styles from './YMMEContentBlock.module.scss';\nimport { trackShopWithoutVehicle } from '@/utils/analytics/track/trackShopWithoutVehicle';\nimport { SnackBarContext } from '@/components/SnackBarContext';\n\ntype Props = {\n pageType: string;\n removeDefaultVehicle: () => void;\n showYmmeWidget: () => void;\n};\n\nconst HomePagePreferredVehicle = ({ removeDefaultVehicle, showYmmeWidget, pageType }: Props) => {\n const { showSnackBar } = useContext(SnackBarContext);\n const { data: headerData } = useHeaderData();\n const vehicle = getPreferredVehicle(headerData);\n const yourLabel = useLabel('label_MyAccountMyProfile_landing_RewardYour');\n const hasBeenMovedLabel = useLabel('label_YMME_Body_HasBeenMovedTo');\n\n const handleShopWithoutVehicle = () => {\n setInteractionLocation(pageType);\n removeDefaultVehicle();\n const snackMessage = vehicle?.vehicleName\n ? `${yourLabel} ${vehicle.vehicleName} ${hasBeenMovedLabel}`\n : '';\n showSnackBar(snackMessage);\n trackShopWithoutVehicle();\n };\n const vehicleImage =\n vehicle && !!vehicle.vehicleImageURL ? (\n
\n \n
\n ) : (\n
\n \n
\n );\n\n const vehicleName = vehicle ? (\n vehicle.vehicleName\n ) : (\n