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sources":["webpack://_N_E/./public/images/360_Icon.svg","webpack://_N_E/./src/components/Carousel/ThumbnailComponent/ThumbnailOverlay.tsx","webpack://_N_E/./public/images/play-arrow.svg","webpack://_N_E/./src/constants/images/defaultVideoThumbnail.ts","webpack://_N_E/./src/components/Carousel/ThumbnailComponent/index.tsx","webpack://_N_E/./src/components/Carousel/constants.ts","webpack://_N_E/./src/components/Carousel/CarouselDots.tsx","webpack://_N_E/./src/components/Carousel/index.tsx","webpack://_N_E/./src/components/Carousel/ThumbnailComponent/styles.module.scss","webpack://_N_E/./src/components/Carousel/styles.module.scss","webpack://_N_E/"],"sourcesContent":["var _path;\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 Svg360Icon = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n \"data-name\": \"Layer 1\",\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 192 146.36\"\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M96 77.38c53 0 96 11.56 96 25.82 0 12.33-32.17 22.64-75.17 25.2l7.37-7.17-8.69-8.66c30.14-1.12 52.29-4.88 52.29-9.34 0-5.3-31.15-9.6-69.82-9.68h-1.17c-39.21 0-71 4.33-71 9.68 0 5 27.6 9.08 63.08 9.62l.12-17.09 25.5 25.5-25.84 25.11.12-17.43C39.14 127.94 0 116.8 0 103.2c0-14.26 43-25.82 96-25.82ZM49.07 61.86c11.64 0 22.09-7.06 22.09-19.54 0-6.63-4-12.07-10.53-13.51v-.17c5.52-1.53 8.33-6.55 8.33-12.15C68.96 5.87 58.51 0 48.96 0 36.72 0 28.82 8.41 28.4 20.56h11.47c-.09-6.11 3.14-10.62 9.17-10.62 4.42 0 8.42 2.89 8.42 7.91 0 6.79-7.48 7.81-12.66 7.39v8.49c5.89 0 13.79-.16 13.79 8.84 0 5.61-4.25 9.35-9.69 9.35-7 0-10.19-5.27-10.45-11.73H26.98c-.25 13.68 8.75 21.67 22.09 21.67Zm47.16 0c12.4 0 20.82-9.6 20.82-21.75a20.5 20.5 0 0 0-4.59-13.26 19 19 0 0 0-13.68-6.12c-5.78 0-10.11 2-13.43 6.63l-.17-.17c.34-6.63 2.64-18.1 11.39-18.1 4.16 0 7.22 3.4 8 7.4h11.47C114.68 6.04 107.04 0 96.75 0 79.84 0 73.38 16.57 73.38 31.1c0 15 4.85 30.76 22.86 30.76Zm-.34-9.94c-6 0-9.6-5.53-9.6-11 0-5.86 3.14-11 9.6-11 6.2 0 9.09 5.6 9.09 11.21 0 5.35-3.31 10.88-9.09 10.88Zm45.37 9.94c11.9 0 21.92-7.48 21.92-31.19 0-23.19-10-30.67-21.92-30.67-11.73 0-21.75 7.48-21.75 30.67 0 23.71 10 31.19 21.75 31.19Zm0-9.94c-9.36 0-9.67-13.56-9.69-20.54v-1.36c0-6.52.33-20.08 9.69-20.08s9.83 13.09 9.85 19.73v2.09c0 7.07-.5 20.16-9.85 20.16ZM173.98 19.69c5.61 0 9.23-3.65 9.23-9.2s-3.62-9.24-9.23-9.24-9.21 3.66-9.21 9.24 3.62 9.2 9.21 9.2Zm0-4.1c-2.35 0-3.06-2.57-3.06-5.1s.71-5.14 3.06-5.14 3.09 2.57 3.09 5.14-.71 5.1-3.09 5.1Z\"\n})));\nexport default Svg360Icon;","/**\n * Copyright 2022 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 cx from 'classnames';\nimport iconStyles from '@/theme/iconStyles.module.scss';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport styles from './styles.module.scss';\n\ntype Props = {\n image?: React.ElementType;\n text?: string;\n};\n\nconst ThumbnailOverlay = ({ image: Image, text }: Props) => {\n return (\n
\n {/* eslint-disable-next-line jsx-a11y/alt-text */}\n {!!Image && }\n {!!text && text}\n
\n );\n};\n\nexport default ThumbnailOverlay;\n","var _path;\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 SvgPlayArrow = props => /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n width: 24,\n height: 24\n}, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 5v14l11-7z\"\n})));\nexport default SvgPlayArrow;","/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport const defaultVideoThumbnail = {\n src: '/images/video-default-thumbnail-gray.svg',\n alt: 'defaultVideoThumbnail',\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 Image from '@/components/NextImage';\nimport { useLabel } from '@/hooks/useLabels';\nimport ThreeSixtyIcon from '@/public/images/360_Icon.svg';\nimport PlayArrowIcon from '@/public/images/play-arrow.svg';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport cx from 'classnames';\nimport React, { useEffect, useRef, useState } from 'react';\nimport Skeleton from '../../Skeleton/Skeleton';\nimport { MAX_VISIBLE_THUMBNAILS } from '../constants';\nimport styles from './styles.module.scss';\nimport ThumbnailOverlay from './ThumbnailOverlay';\nimport type { CarouselItem, CarouselItemTypes, ThumbnailProps } from './types';\nimport { defaultVideoThumbnail } from '@/constants/images/defaultVideoThumbnail';\n\nconst ThumbnailComponent = (props: ThumbnailProps) => {\n const {\n classes = {},\n verticalLayout,\n handleSeeMoreClick,\n handleThumbnailClick,\n groupedLayout,\n showAllThumbnails,\n selectedThumbnailIndex,\n snapToThumbnails,\n hoverEnabled,\n loading,\n onImageChange,\n items = [],\n } = props;\n const seeMoreLabel = useLabel('hyperlink_label_shelf_See_More');\n const imagesHeader = useLabel('label_Thumbnails_header_Images');\n const videoHeader = useLabel('label_Thumbnails_header_Videos');\n const label_thumbnail_image = useLabel('label_thumbnail_image');\n const thumbnailListRef = useRef({});\n const thumbnailRefs = useRef({});\n const justMounted = useRef(true);\n const [selectedThumbnail, setSelectedThumbnail] = useState(0);\n const { thumbnailGroup: thumbnailGroupClass = '', thumbnailList: thumbnailListClass } = classes;\n const thumbnails = items;\n const totalThumbnailLength = thumbnails.length;\n\n const getThumbnailsByType = (type: CarouselItemTypes): Array => {\n return thumbnails.filter((thumbnail: CarouselItem) => thumbnail.type === type);\n };\n\n const imageThumbnails = getThumbnailsByType('image');\n const getTrimmedThumbnails: () => Array = () => {\n return verticalLayout && !showAllThumbnails\n ? thumbnails.slice(0, MAX_VISIBLE_THUMBNAILS)\n : thumbnails;\n };\n\n const showExpandedImg = (carouselItem: CarouselItem) => {\n const { enlargedMediaUrl } = carouselItem;\n const index = thumbnails.findIndex((img) => img.enlargedMediaUrl === enlargedMediaUrl);\n\n if (onImageChange) {\n onImageChange(index, carouselItem);\n }\n\n setSelectedThumbnail(index);\n };\n\n const handleClick = (thumbnailItem: CarouselItem) => {\n showExpandedImg(thumbnailItem);\n handleThumbnailClick?.(thumbnailItem);\n };\n\n useEffect(() => {\n if (\n !!thumbnailRefs &&\n !!thumbnailListRef &&\n snapToThumbnails &&\n selectedThumbnailIndex !== undefined\n ) {\n // @ts-expect-error fix type\n const thumbnailRef = thumbnailRefs.current[selectedThumbnailIndex] || {};\n const listRef: { scroll?: (scrollObj: any) => void } = thumbnailListRef.current || {};\n const thumbnailOffsetLeft = thumbnailRef.offsetLeft;\n const thumbnailWidth = thumbnailRef.offsetWidth;\n // @ts-expect-error fix type\n const thumbnailListCenter = listRef.offsetWidth / 2;\n const thumbnailFromLeftDistance = thumbnailOffsetLeft + thumbnailWidth / 2;\n const toCenter = thumbnailFromLeftDistance - thumbnailListCenter;\n const scrollBehavior = justMounted.current ? 'auto' : 'smooth';\n if (listRef.scroll) {\n listRef.scroll({\n left: toCenter,\n top: 0,\n behavior: scrollBehavior,\n });\n }\n justMounted.current = false;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedThumbnailIndex]);\n const thumbnailStyle = verticalLayout\n ? styles.thumbnailBox\n : `${styles.thumbnailBox} ${styles.inlineThumbnailBox}`;\n const thumbnailContainerStyle = verticalLayout\n ? styles.thumbnailsContainer\n : `${styles.thumbnailsContainer} ${styles.thumbnailsContainerHorizontal}`;\n const shouldShowSeeMore =\n verticalLayout && !showAllThumbnails && totalThumbnailLength >= MAX_VISIBLE_THUMBNAILS;\n\n const renderThumbnail = (thumbnailItem: CarouselItem, thumbIndex: number) => {\n const { type, thumbnail } = thumbnailItem;\n const isVideo = type === 'video';\n const is360 = type === 'spin360';\n const isLastVisible = thumbIndex + 1 === MAX_VISIBLE_THUMBNAILS;\n const isSeeMoreButton = isLastVisible && shouldShowSeeMore;\n const actualThumbnailIndex =\n isVideo && groupedLayout ? thumbIndex + imageThumbnails.length : thumbIndex;\n const isInvalidVideoThumbnail = isVideo && (!thumbnail || thumbnail === 'null');\n\n const onMouseEnter =\n hoverEnabled && !isSeeMoreButton\n ? () => {\n showExpandedImg(thumbnailItem);\n }\n : () => {};\n const onClick = isSeeMoreButton\n ? () => handleSeeMoreClick?.()\n : () => handleClick(thumbnailItem);\n return (\n (thumbnailRefs.current[actualThumbnailIndex] = element)}\n className={thumbnailStyle}\n key={`${thumbnail}-${thumbIndex}`}\n >\n \n <>\n \n {(isVideo || is360) && !isSeeMoreButton && (\n \n )}\n {isSeeMoreButton && }\n \n {`${label_thumbnail_image} ${thumbIndex + 1}`}\n \n \n );\n };\n\n const renderThumbnailList = (thumbnails: Array) => {\n return (\n \n {!loading && thumbnails?.map(renderThumbnail)}\n {loading &&\n thumbnails?.map((thumbnail, index) => (\n
  • \n \n
  • \n ))}\n \n );\n };\n\n const renderThumbnailGroup = (thumbnails: Array = [], header: string) => {\n return (\n
    \n {!!header && !!thumbnails.length && (\n
    \n {header}\n
    \n )}\n {renderThumbnailList(thumbnails)}\n
    \n );\n };\n\n if (groupedLayout) {\n const videoThumbnails = getThumbnailsByType('video');\n return (\n
    \n {renderThumbnailGroup(imageThumbnails, imagesHeader)}\n {renderThumbnailGroup(videoThumbnails, videoHeader)}\n
    \n );\n }\n\n return renderThumbnailList(getTrimmedThumbnails());\n};\n\nexport default ThumbnailComponent;\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nexport const NEXT = 'NEXT';\n\nexport const PREV = 'PREV';\n\nexport const MAX_VISIBLE_THUMBNAILS = 6;\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React from 'react';\nimport styles from './styles.module.scss';\nimport { useLabel } from '@/hooks/useLabels';\nimport cx from 'classnames';\nimport { eventConstants } from '@/constants/event';\nimport { ButtonBase } from '../ButtonBase/ButtonBase';\n\ntype Props = {\n numberOfDots: number;\n currentSlide: number;\n handleDotClick?: (index: number, setFocusOnAnchor: boolean) => void;\n};\n\nfunction CarouselDotsComponent({ numberOfDots, currentSlide, handleDotClick }: Props) {\n const goToSlideLabel = useLabel('label_go_to_slide');\n\n if (numberOfDots <= 1) {\n return null;\n }\n const onKeyUpHandler = (e: React.KeyboardEvent, index: number) => {\n if (e.key === eventConstants.enterKeyType || e.key === eventConstants.spaceKeyType) {\n handleDotClick?.(index, true);\n }\n };\n\n const onClickHandler = (e: React.MouseEvent, index: number) => {\n e.preventDefault();\n e.stopPropagation();\n handleDotClick?.(index, false);\n };\n\n const createDots = () => {\n return Array.from(\n {\n length: numberOfDots,\n },\n (_, index) => {\n return (\n
  • \n ) => onClickHandler(e, index)}\n onKeyUp={(e: React.KeyboardEvent) => onKeyUpHandler(e, index)}\n />\n
  • \n );\n }\n );\n };\n\n return (\n
    \n
      {createDots()}
    \n
    \n );\n}\n\nexport const CarouselDots = React.memo(CarouselDotsComponent);\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React, { useEffect, useRef } from 'react';\nimport { useSwipeable } from 'react-swipeable';\nimport cx from 'classnames';\nimport { type SwipeEventData } from 'react-swipeable';\nimport usePrevious from '../../utils/usePrevious';\nimport ThumbnailComponent from './ThumbnailComponent';\nimport Image from '@/components/NextImage';\nimport azCommonStyles from '@/theme/globals.module.scss';\nimport { LoadingIndicatorDots } from '@/components/LoadingIndicatorDots';\nimport { CarouselDots } from './CarouselDots';\nimport type { CarouselProps, Direction, CarouselState, CarouselAction } from './types';\nimport { NEXT, PREV } from './constants';\nimport styles from './styles.module.scss';\nimport { Button } from '@/components/Button';\nimport { useLabel } from '@/hooks/useLabels';\n\nconst sliderControls = {\n leftArrow: {\n src: '/images/arrow-left-grey-shadow-white.svg',\n alt: 'Previous slide',\n },\n rightArrow: {\n src: '/images/arrow-right-grey-shadow-white.svg',\n alt: 'Next slide',\n },\n};\n\nconst getOrder = (index: number, pos: number, numItems: number) => {\n return index - pos < 0 ? numItems - Math.abs(index - pos) : index - pos;\n};\n\nconst initialState: CarouselState = {\n pos: 0,\n sliding: false,\n dir: NEXT,\n updateType: NEXT,\n};\n\nconst Carousel = (props: CarouselProps) => {\n const {\n children,\n imgTitle,\n items = [],\n selectedThumbnailIndex,\n groupedLayout,\n showAllThumbnails = true,\n verticalLayout,\n classes = {},\n thumbnailClasses = {},\n carouselCaption,\n keepCaptionPlaceholder = false,\n controlled,\n autoRotationEnabled,\n autoRotationSpeed = 7000,\n showCarouselDots = false,\n isLoadingCarouselDots = false,\n showArrows: showArrowsProp = false,\n handleDotClick,\n handleThumbnailClick,\n handleSeeMoreClick,\n onImageChange,\n onSlide,\n leftArrowImage,\n rightArrowImage,\n slideToImage,\n } = props;\n const [state, dispatch] = React.useReducer(reducer, {\n ...initialState,\n pos: selectedThumbnailIndex || 0,\n });\n const justMounted = useRef(true);\n const carouselWithLabel = useLabel('label_carousel_with');\n const itemsLabel = useLabel('label_items');\n const slideLabel = useLabel('label_slide');\n const ofLabel = useLabel('label_of');\n const showArrows = showArrowsProp || items.length > 1;\n const { sliding, dir, pos: statePos, updateType } = state;\n const pos =\n controlled && typeof selectedThumbnailIndex !== 'undefined' ? selectedThumbnailIndex : statePos;\n const numItems = React.Children.count(children);\n const reactChildren = React.Children.toArray(children);\n const childrenLength = reactChildren.length;\n const lastItem = reactChildren.pop();\n if (lastItem) {\n reactChildren.unshift(lastItem);\n }\n const previousStatePos = usePrevious(statePos);\n const intervalRef = useRef();\n\n const dispatchStopSliding = () => {\n setTimeout(() => {\n dispatch({\n type: 'stopSliding',\n });\n }, 50);\n };\n\n const resetInterval = () => {\n if (intervalRef.current) {\n clearInterval(intervalRef.current);\n }\n };\n\n useEffect(() => {\n const selectedThumbnail = items[statePos] || {};\n\n if (justMounted.current) {\n justMounted.current = false;\n } else if (updateType !== 'updatePos' && onImageChange) {\n onImageChange(statePos, selectedThumbnail, previousStatePos);\n controlled &&\n updateType !== 'slideToIndex' &&\n dispatch({\n type: 'startSliding',\n });\n controlled && dispatchStopSliding();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [statePos]);\n\n useEffect(() => {\n if (controlled && typeof selectedThumbnailIndex !== 'undefined') {\n dispatch({\n type: 'updatePos',\n index: selectedThumbnailIndex,\n });\n }\n }, [controlled, selectedThumbnailIndex]);\n\n useEffect(() => {\n resetInterval();\n if (autoRotationEnabled) {\n intervalRef.current = setInterval(() => {\n slide(NEXT);\n }, autoRotationSpeed);\n }\n return () => {\n resetInterval();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [autoRotationEnabled, onImageChange]);\n\n useEffect(() => {\n if (slideToImage === 'PREV') {\n slide(PREV);\n } else if (slideToImage === 'NEXT') {\n slide(NEXT);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [slideToImage]);\n\n const slide = (dir: Direction, data?: SwipeEventData) => {\n onSlide?.(dir);\n\n if (!data || data.velocity > 0.08) {\n dispatch({\n type: dir,\n numItems,\n controlled,\n });\n\n if (!controlled) {\n dispatchStopSliding();\n }\n }\n };\n\n const slideToIndex = (index: number) => {\n dispatch({\n type: 'slideToIndex',\n index,\n numItems,\n });\n };\n\n const handleCarouselDotClick = (index: number, setFocusOnAnchor: boolean) => {\n handleDotClick?.(index, setFocusOnAnchor);\n slideToIndex(index);\n };\n\n const handlers = useSwipeable({\n onSwipedLeft: (data) => {\n slide(NEXT, data);\n },\n onSwipedRight: (data) => {\n slide(PREV, data);\n },\n preventDefaultTouchmoveEvent: true,\n });\n\n const renderLeftControl = () => (\n slide(PREV)}\n >\n
    \n \n
    \n \n );\n\n const renderRightControl = () => (\n slide(NEXT)}\n >\n
    \n \n
    \n \n );\n\n return (\n \n
    \n \n {!!showArrows && renderLeftControl()}\n \n \n {reactChildren.map((child, index) => {\n const slideIndex = index === 0 ? childrenLength : index;\n return (\n \n {child}\n
    \n );\n })}\n \n \n {!!showArrows && renderRightControl()}\n {showCarouselDots ? (\n \n ) : isLoadingCarouselDots && childrenLength > 1 ? (\n \n
      \n \n
    \n \n ) : null}\n \n {carouselCaption ? (\n \n {carouselCaption}\n \n ) : (\n keepCaptionPlaceholder &&
    \n )}\n
    \n {items.length > 0 && (\n \n )}\n \n );\n};\n\nfunction reducer(state: CarouselState, action: CarouselAction): CarouselState {\n switch (action.type) {\n case 'reset':\n return initialState;\n\n case PREV:\n return {\n ...state,\n dir: PREV,\n sliding: !action.controlled,\n pos: state.pos === 0 ? action.numItems - 1 : state.pos - 1,\n updateType: PREV,\n };\n\n case NEXT:\n return {\n ...state,\n dir: NEXT,\n sliding: !action.controlled,\n pos: state.pos === action.numItems - 1 ? 0 : state.pos + 1,\n updateType: NEXT,\n };\n\n case 'slideToIndex':\n return {\n ...state,\n pos: action.index,\n updateType: 'slideToIndex',\n };\n\n case 'updatePos':\n return { ...state, pos: action.index, updateType: 'updatePos' };\n\n case 'startSliding':\n return { ...state, sliding: true, updateType: 'startSliding' };\n\n case 'stopSliding':\n return { ...state, sliding: false, updateType: 'stopSliding' };\n\n default:\n return state;\n }\n}\n\nexport default Carousel;\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\",\"thumbnailButton\":\"az_Okc\",\"thumbnailButtonSelected\":\"az_Pkc\",\"thumbnailButtonVideo\":\"az_Qkc\",\"thumbnailBox\":\"az_Rkc\",\"thumbnailGroup\":\"az_Skc\",\"thumbnailOverlay\":\"az_Tkc\",\"inlineThumbnailBox\":\"az_Ukc\",\"thumbnailsContainer\":\"az_Vkc\",\"thumbnailsContainerHorizontal\":\"az_Wkc\",\"noScroll\":\"az_Xkc\",\"thumbnailHeading\":\"az_Ykc\",\"thumbnailImage\":\"az_Zkc\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"videoTransitionTimeMilliseconds\":\"300\",\"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\",\"carouselAndCaptionContainer\":\"az_G3b\",\"carouselContainer\":\"az_H3b\",\"carouselControl\":\"az_I3b\",\"carouselImageContainer\":\"az_J3b\",\"carouselControlLeft\":\"az_K3b\",\"carouselControlRight\":\"az_L3b\",\"controlImage\":\"az_M3b\",\"carouselSlidesContainer\":\"az_N3b\",\"carouselContainerSliding\":\"az_O3b\",\"carouselContainerPrev\":\"az_P3b\",\"oneChild\":\"az_Q3b\",\"carouselItem\":\"az_R3b\",\"carouselCaption\":\"az_S3b\",\"captionSpacer\":\"az_T3b\",\"carouselDot\":\"az_U3b\",\"active\":\"az_V3b\",\"carouselDotListItem\":\"az_W3b\",\"carouselDotsCenter\":\"az_X3b\",\"carouselDotsList\":\"az_Y3b\"};"],"names":["_path","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","__webpack_exports__","Z","props","react__WEBPACK_IMPORTED_MODULE_0__","createElement","xmlns","viewBox","d","image","Image","text","param","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","className","cx","styles","azCommonStyles","jsx","iconStyles","play_arrow","react","width","height","defaultVideoThumbnail","src","Carousel_ThumbnailComponent","classes","verticalLayout","handleSeeMoreClick","handleThumbnailClick","groupedLayout","showAllThumbnails","selectedThumbnailIndex","snapToThumbnails","hoverEnabled","loading","onImageChange","items","seeMoreLabel","useLabel","imagesHeader","videoHeader","label_thumbnail_image","thumbnailListRef","useRef","thumbnailRefs","justMounted","selectedThumbnail","setSelectedThumbnail","useState","thumbnailGroup","thumbnailGroupClass","thumbnailList","thumbnailListClass","totalThumbnailLength","thumbnails","getThumbnailsByType","filter","thumbnail","type","imageThumbnails","showExpandedImg","enlargedMediaUrl","carouselItem","index","findIndex","img","handleClick","thumbnailItem","useEffect","undefined","thumbnailRef","current","listRef","thumbnailOffsetLeft","offsetLeft","thumbnailWidth","offsetWidth","thumbnailListCenter","scrollBehavior","scroll","left","thumbnailFromLeftDistance","top","behavior","thumbnailStyle","concat","thumbnailContainerStyle","shouldShowSeeMore","MAX_VISIBLE_THUMBNAILS","renderThumbnail","thumbIndex","isVideo","isLastVisible","isSeeMoreButton","actualThumbnailIndex","onMouseEnter","onClick","jsx_runtime","li","ref","element","button","Fragment","isInvalidVideoThumbnail","alt","data-testid","itemProp","is360","ThumbnailOverlay","PlayArrowIcon","ThreeSixtyIcon","span","renderThumbnailList","ul","thumbnailContainer","map","Skeleton","animation","variant","renderThumbnailGroup","header","videoThumbnails","slice","NEXT","PREV","CarouselDots","React","numberOfDots","currentSlide","handleDotClick","goToSlideLabel","onKeyUpHandler","e","eventConstants","enterKeyType","spaceKeyType","onClickHandler","preventDefault","stopPropagation","Array","from","_","ButtonBase","aria-label","onKeyUp","sliderControls","leftArrow","rightArrow","getOrder","pos","numItems","Math","abs","initialState","sliding","dir","updateType","reducer","state","action","_object_spread_props","_object_spread","controlled","components_Carousel","children","imgTitle","thumbnailClasses","carouselCaption","keepCaptionPlaceholder","autoRotationEnabled","autoRotationSpeed","showCarouselDots","isLoadingCarouselDots","showArrows","showArrowsProp","onSlide","leftArrowImage","rightArrowImage","slideToImage","dispatch","carouselWithLabel","itemsLabel","slideLabel","ofLabel","statePos","count","reactChildren","toArray","childrenLength","lastItem","pop","unshift","previousStatePos","usePrevious","intervalRef","dispatchStopSliding","setTimeout","resetInterval","clearInterval","setInterval","slide","data","velocity","slideToIndex","handlers","useSwipeable","onSwipedLeft","onSwipedRight","preventDefaultTouchmoveEvent","section","root","customCarouselContainer","Button","customClass","carouselControl","carouselItemContainer","id","child","slideIndex","role","style","order","setFocusOnAnchor","LoadingIndicatorDots","color","size","caption","ThumbnailComponent","module","exports"],"sourceRoot":""}