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antity.ts","webpack://_N_E/./src/components/AZCustomComponent/InfoToolTip/index.tsx","webpack://_N_E/./src/components/Dialog/DialogTitle.tsx","webpack://_N_E/./src/components/AZCustomComponent/Popper/Popper.tsx","webpack://_N_E/./src/components/AZCustomComponent/Title/index.tsx","webpack://_N_E/./src/components/FulfillmentOptionsV2/EstDeliveryDate.tsx","webpack://_N_E/./src/components/FulfillmentOptionsV2/CountDownV2.tsx","webpack://_N_E/./src/components/FulfillmentOptionsV2/FulfillmentCutoff.tsx","webpack://_N_E/./src/constants/images/infoIcon.ts","webpack://_N_E/./src/constants/shippingMethods.ts","webpack://_N_E/./src/features/orders/adaptors.ts","webpack://_N_E/./src/features/orders/api/getAvailabilityInfo.ts","webpack://_N_E/./src/features/orders/api/getShipmentOptions.ts","webpack://_N_E/./src/features/product/api/getProductDeals.ts","webpack://_N_E/./src/features/shelf/utils/checkIfDateIsTomorrow.ts","webpack://_N_E/./src/utils/errorsHandling/getErrorCodeDescription.ts","webpack://_N_E/./src/utils/errorsHandling/getErrorStatus.ts","webpack://_N_E/./src/utils/errorsHandling/toErrorWithTitle.ts","webpack://_N_E/./src/utils/errorsHandling/getErrorTitle.ts","webpack://_N_E/./src/utils/itemHelpers/fulfillmentHelpers/createItemFulfillmentAvailabilityString.ts","webpack://_N_E/./src/utils/itemHelpers/fulfillmentHelpers/getFormattedAmPmShort.ts","webpack://_N_E/./src/utils/itemHelpers/fulfillmentHelpers/getMaxAvailQtyFromOptions.ts","webpack://_N_E/./src/utils/itemHelpers/fulfillmentHelpers/mergeDefaultWithState.ts","webpack://_N_E/./src/utils/itemHelpers/orderHelpers/mapGrandOrderDiscountListFromState.ts","webpack://_N_E/./src/utils/itemHelpers/orderHelpers/mapOrderItemsFromState.ts","webpack://_N_E/./src/components/AZCustomComponent/InfoToolTip/styles.module.scss","webpack://_N_E/./src/components/AZCustomComponent/Popper/styles.module.scss","webpack://_N_E/./src/components/AZCustomComponent/Title/styles.module.scss","webpack://_N_E/./src/components/FulfillmentOptionsV2/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 SvgExpandMore = 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: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n})));\nexport default SvgExpandMore;","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport type { AxiosInstance } from 'axios';\nimport type { Dispatch, GetState, ThunkAction } from '../types';\nimport azURL, { postATGData } from '../config/serviceAPI';\nimport actionConstants from '../types/action';\nimport { fetchOrderDetails } from './details';\nimport { cartConstants } from '../constants/cart';\nimport { type QueryClient } from '@tanstack/react-query';\nimport { shipmentOptionsQuery } from '@/features/orders/api/getShipmentOptions';\nimport type { PageName } from '@/types/analytics';\n\nexport const API_URL3: string = azURL('promoCodeApply');\n\nexport const API_URL4: string = azURL('promoCodeRemove');\n\nexport const emptyCartPageData = (): ThunkAction => (dispatch: Dispatch) =>\n dispatch({\n type: actionConstants.CLEAR_CART_PAGE_DATA,\n });\n\nexport type DiscountDispatchData = {\n id: string;\n fromPage: PageName;\n discountTypeId: number;\n};\n\nexport const applyDiscountCodeCall =\n (\n data: DiscountDispatchData,\n checkoutPage: boolean,\n queryClient: QueryClient,\n URL: string = API_URL3,\n hideInStorePurchase = true\n ): ThunkAction =>\n async (dispatch: Dispatch, getState: GetState, axios: AxiosInstance) => {\n dispatch({ type: actionConstants.PROMOCODE_APPLY_REQUESTING });\n\n try {\n const { id: promotionId, fromPage } = data;\n const response = await postATGData(axios, URL, {\n promotionId,\n fromPage,\n }); // if the request was made from the checkout page, request shipment\n // options but only if shippingAddressAvailable\n\n const shippingAddressAvailable = getState().orders.addressDetails.shippingAddressAvailable;\n const orderItems = getState().orders.details.orderItems;\n const onlyBOPUSItems = orderItems.filter(\n (item: { orderType: string }) => item.orderType === cartConstants.STOREORDER\n );\n const orderIsOnlyBOPUS = orderItems.length === onlyBOPUSItems.length;\n if (checkoutPage && shippingAddressAvailable && !orderIsOnlyBOPUS) {\n try {\n await queryClient.fetchQuery({\n queryKey: shipmentOptionsQuery.getFullKey({}),\n staleTime: 0,\n });\n } catch (err) {\n dispatch({\n type: actionConstants.ORDER_DETAILS_FAILURE,\n err: err,\n });\n }\n }\n\n // this boolean controls whether url params are sent on the order details call. They should not be sent when on cart page.\n if (!checkoutPage) {\n hideInStorePurchase = false;\n }\n\n await dispatch(fetchOrderDetails(hideInStorePurchase, queryClient));\n dispatch({\n type: actionConstants.PROMOCODE_APPLY_SUCCESS,\n data: response.data,\n value: data.id,\n });\n } catch (err: any) {\n dispatch({\n type: actionConstants.PROMOCODE_APPLY_FAILURE,\n err: err.response,\n value: data.id,\n errorLog: err,\n data: data,\n });\n }\n };\n\nexport const removeDiscountCodeCall =\n (data: DiscountDispatchData, URL: string = API_URL4, queryClient: QueryClient): ThunkAction =>\n async (dispatch: Dispatch, getState: GetState, axios: AxiosInstance) => {\n dispatch({ type: actionConstants.PROMOCODE_REMOVE_REQUESTING });\n\n try {\n const removeCouponDiscountData = {\n couponId: data.id,\n fromPage: data.fromPage,\n };\n const removeDealDiscountData = {\n promotionId: data.id,\n fromPage: data.fromPage,\n };\n const requestData =\n data.discountTypeId === 1 ? removeCouponDiscountData : removeDealDiscountData;\n const response = await postATGData(axios, URL, requestData);\n dispatch({\n type: actionConstants.PROMOCODE_REMOVE_SUCCESS,\n data: response.data,\n values: data.id,\n });\n dispatch(fetchOrderDetails(undefined, queryClient));\n } catch (err: any) {\n dispatch({\n type: actionConstants.PROMOCODE_REMOVE_FAILURE,\n err: err.message,\n values: data.id,\n errorLog: err,\n data: data,\n });\n }\n };\n\nexport const resetDiscounts = (): ThunkAction => (dispatch: Dispatch) =>\n dispatch({\n type: actionConstants.RESET_PROMO_CART,\n });\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, { useState, useRef, useEffect, useCallback } from 'react';\nimport cx from 'classnames';\nimport { Popper, PopperHeader, PopperBody } from '../Popper/Popper';\nimport Image from '@/components/NextImage';\nimport { infoIcon } from '../../../constants/images';\nimport { eventConstants } from '../../../constants/event';\nimport { Button } from '@/components/Button';\nimport azCommonStyles from '../../../theme/globals.module.scss';\nimport type { InfoToolTipProps } from './types';\nimport styles from './styles.module.scss';\nimport { Icon, View } from '@az/starc-ui';\nimport { InfoCircle } from '@az/starc-ui-icons';\n\nfunction TooltipIcon({\n iconSizePx,\n iconSrc,\n}: {\n iconSizePx?: number;\n iconSrc?: { alt: string; src: string };\n}) {\n if (iconSizePx) {\n return (\n \n \n \n );\n }\n return (\n \n );\n}\n\nconst InfoToolTip = ({\n header,\n body,\n bodyComponent,\n isCorePricePadding = false,\n placement = 'bottom',\n classes = {},\n hideCloseIcon = false,\n isCustomElement = false,\n variant = 'ghost',\n customElement,\n 'data-testid': dataTestId,\n setInfoToolTipIsOpen,\n iconSrc,\n divStyle,\n iconSizePx,\n}: InfoToolTipProps) => {\n const [isOpen, setIsOpen] = useState(false);\n const infoIconRef = useRef(null);\n\n const openTooltip = () => {\n setIsOpen(true);\n if (setInfoToolTipIsOpen !== undefined) {\n setInfoToolTipIsOpen(true);\n }\n };\n\n const closeTooltip = useCallback(() => {\n setIsOpen(false);\n if (setInfoToolTipIsOpen !== undefined) {\n setInfoToolTipIsOpen(false);\n }\n }, [setInfoToolTipIsOpen]);\n\n const handleOnMouseClick = () => {\n isOpen ? closeTooltip() : openTooltip();\n };\n\n useEffect(() => {\n function handleClickOutside(event: MouseEvent) {\n if (infoIconRef.current && !infoIconRef.current.contains(event.target)) {\n closeTooltip();\n }\n }\n\n function handleKeyDown(e: KeyboardEvent) {\n if (e) {\n if (e.keyCode === eventConstants.enterKeyCode || e.keyCode === eventConstants.escKeyCode) {\n closeTooltip();\n }\n }\n }\n\n document.addEventListener('mousedown', handleClickOutside);\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [closeTooltip]);\n\n return (\n <>\n \n \n {isCustomElement ? (\n customElement\n ) : (\n \n )}\n \n \n \n

\n {header}\n

\n \n {bodyComponent ? (\n \n {bodyComponent}\n \n ) : (\n \n ({ __html: body }))()}\n />\n \n )}\n \n \n \n );\n};\n\nexport default InfoToolTip;\n","/**\n * Copyright 2021 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\n/**\n * Ported from @material-ui/core@4.11.3\n */\n\nimport cx from 'classnames';\nimport * as React from 'react';\nimport styles from './Dialog.module.scss';\nimport { Typography } from '@/components/Typography';\n\ntype Props = {\n className: string;\n ariaLabel?: string;\n id?: string;\n children: React.ReactNode;\n typographyComponent?: React.ElementType;\n};\n\nexport const DialogTitle = (props: Props) => {\n const { children, className, id, ariaLabel, typographyComponent } = props;\n\n return (\n \n {children}\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 React, { useCallback, useRef, useState } from 'react';\nimport { createPopper, type VirtualElement } from '@popperjs/core';\nimport ReactDOM from 'react-dom';\nimport cx from 'classnames';\nimport { useSelector } from 'react-redux';\nimport { DialogTitle } from '@/components/Dialog/DialogTitle';\nimport { DialogContent } from '@/components/Dialog/DialogContent';\nimport { IconButton } from '../../IconButton/IconButton';\nimport { Paper } from '../../Paper';\nimport type { ReduxState } from '../../../types';\nimport CloseIcon from '../../../../public/images/close.svg';\nimport iconStyles from '../../../theme/iconStyles.module.scss';\nimport styles from './styles.module.scss';\n\ntype Modifiers = {\n flip?: {\n enabled: boolean;\n };\n preventOverflow?: {\n enabled: boolean;\n boundariesElement: string;\n };\n arrow?: {\n enabled: boolean;\n element?: React.ReactNode;\n };\n};\n\ntype AnchorEl = Function | HTMLElement | React.RefObject;\n\nexport type PopperProps = {\n id?: string;\n classes?: {\n paper?: string;\n popper?: string;\n root?: string;\n arrow?: string;\n };\n isOpen: boolean;\n anchorEl: AnchorEl;\n modifiers?: Modifiers;\n strategy?: 'absolute' | 'fixed';\n placement?:\n | 'auto-end'\n | 'auto-start'\n | 'auto'\n | 'bottom-end'\n | 'bottom-start'\n | 'bottom'\n | 'left-end'\n | 'left-start'\n | 'left'\n | 'right-end'\n | 'right-start'\n | 'right'\n | 'top-end'\n | 'top-start'\n | 'top';\n children: React.ReactNode;\n disablePortal?: boolean;\n isCorePricePadding?: boolean;\n elevation?: number;\n role?: string;\n ariaLabel?: string;\n ariaLabelledByID?: string;\n popperAriaLabelledByID?: string;\n ariaDescribedByID?: string;\n popperRole?: string;\n popperAriaModal?: boolean;\n popperId?: string;\n hideForBots?: boolean;\n};\n\nexport type PopperHeaderProps = {\n classes?: {\n heading?: string;\n title?: string;\n };\n children: React.ReactNode;\n handleClose?: (e: React.MouseEvent) => void;\n focusToCloseButton?: boolean;\n ariaLabel?: string;\n ariaLabelledByID?: string;\n hideCloseIcon?: boolean;\n isBorder?: boolean;\n typographyComponent?: React.ElementType;\n};\n\nexport type PopperBodyProps = {\n children: React.ReactNode;\n ariaDescribedByID?: string;\n classes?: {\n body?: string;\n };\n};\n\nexport const PopperHeader = ({\n classes = {},\n children,\n handleClose,\n focusToCloseButton,\n ariaLabel,\n ariaLabelledByID,\n hideCloseIcon,\n isBorder = false,\n typographyComponent = 'h2',\n}: PopperHeaderProps) => {\n const closeRef = React.useRef(null);\n\n React.useEffect(() => {\n focusToCloseButton && closeRef.current?.focus();\n }, [focusToCloseButton]);\n\n return (\n \n \n {children || `\\u00A0`}\n \n {!hideCloseIcon ? (\n \n \n \n ) : null}\n \n );\n};\n\nexport const PopperBody = (props: PopperBodyProps) => (\n \n {props.children}\n \n);\n\nfunction getAnchorEl(anchorEl: AnchorEl): Element | VirtualElement {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\n\nexport function Popper({\n isOpen,\n anchorEl,\n placement: initialPlacement = 'bottom',\n children,\n classes = {},\n modifiers = {},\n strategy = 'absolute',\n disablePortal = false,\n elevation,\n isCorePricePadding,\n role = 'alertdialog',\n ariaLabelledByID,\n ariaDescribedByID,\n popperRole = 'tooltip',\n popperAriaModal = false,\n popperAriaLabelledByID,\n popperId,\n hideForBots = false,\n}: PopperProps) {\n const [arrowRef, setArrowRef] = useState(null);\n const id = isOpen ? 'simple-popper' : undefined;\n const tooltipRef = useRef(null);\n const isABot = useSelector(({ appData }: ReduxState) => appData.deviceType === 'bot');\n\n const { root = '' } = classes;\n const {\n flip = {\n enabled: true,\n },\n arrow = {\n enabled: true,\n },\n } = modifiers;\n const handleOpen = useCallback(() => {\n if (!tooltipRef.current || !anchorEl || !isOpen) {\n return;\n }\n\n const popperModifiers = [\n {\n name: 'flip',\n enabled: flip.enabled,\n options: {\n altBoundary: disablePortal,\n ...(isCorePricePadding && { padding: 100 }),\n },\n },\n {\n name: 'arrow',\n enabled: arrow.enabled,\n options: {\n element: arrowRef,\n },\n },\n {\n name: 'preventOverflow',\n enabled: true,\n options: {\n boundariesElement: 'scrollParent',\n altBoundary: disablePortal,\n },\n },\n ];\n createPopper(getAnchorEl(anchorEl), tooltipRef.current, {\n placement: initialPlacement,\n modifiers: popperModifiers,\n strategy,\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [anchorEl, isOpen, arrowRef, initialPlacement]);\n\n const handleRef = useCallback(\n (node: HTMLDivElement) => {\n tooltipRef.current = node;\n handleOpen();\n },\n [tooltipRef, handleOpen]\n );\n\n if (!isOpen || (isABot && hideForBots)) {\n return null;\n }\n\n const popper = (\n \n {arrow.enabled && }\n \n {children}\n \n \n );\n\n if (disablePortal) {\n return popper;\n }\n\n return ReactDOM.createPortal(popper, document.body);\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 * as React from 'react';\nimport azCommonStyles from '../../../theme/globals.module.scss';\nimport styles from './styles.module.scss';\nimport cx from 'classnames';\n\ntype Props = {\n firstText?: React.ReactNode;\n secondText?: React.ReactNode;\n underline?: boolean;\n swapStyle?: boolean;\n headerType?: React.ElementType;\n overRuleH1?: React.ElementType;\n variant?: string;\n center?: boolean;\n stylesClass?: any | string;\n firstTextClass?: any | string;\n secondTextClass?: any | string;\n id?: string;\n inline?: boolean;\n dataTestIdContainer?: string;\n dataTestIdFirstText?: string;\n dataTestIdSecondText?: string;\n isSameTitleTag?: boolean;\n isNextLine?: boolean;\n toOverrideHeaderTag?: boolean;\n usesWrapperTags?: boolean;\n};\n\nconst Title = ({\n firstText,\n secondText = '',\n underline = false,\n swapStyle = false,\n headerType,\n center = false,\n stylesClass,\n firstTextClass,\n secondTextClass,\n overRuleH1,\n id = undefined,\n variant = 'lg',\n inline,\n dataTestIdContainer = '',\n dataTestIdFirstText = '',\n dataTestIdSecondText = '',\n isSameTitleTag = false,\n isNextLine = false,\n toOverrideHeaderTag = false,\n usesWrapperTags = false,\n}: Props) => {\n let primaryClass;\n let secondaryClass;\n\n switch (variant) {\n case 'xl':\n // $font-size-xl: 2.074rem\n primaryClass = azCommonStyles['az-display-1-heavy'];\n secondaryClass = azCommonStyles['az-display-1-regular'];\n break;\n case 'lg':\n // $font-size-lg: 1.728rem\n primaryClass = azCommonStyles['az-title-1-heavy'];\n secondaryClass = azCommonStyles['az-title-1-regular'];\n break;\n case 'md':\n // $font-size-md: 1.44rem\n primaryClass = azCommonStyles['az-title-2-heavy'];\n secondaryClass = azCommonStyles['az-title-2-regular'];\n break;\n case 'sm':\n // $font-size-sm: 1.2rem\n primaryClass = azCommonStyles['az-title-3-heavy'];\n secondaryClass = azCommonStyles['az-title-3-regular'];\n break;\n case 'xs':\n // $font-size-base: 1rem\n primaryClass = azCommonStyles['az-title-4-heavy'];\n secondaryClass = azCommonStyles['az-title-4-regular'];\n break;\n case 'xxs':\n primaryClass = azCommonStyles['az-title-5-heavy'];\n secondaryClass = azCommonStyles['az-title-5-regular'];\n break;\n case 'azTitleMedium':\n primaryClass = azCommonStyles['az-title-5-medium'];\n secondaryClass = secondTextClass ? secondTextClass : '';\n break;\n case 'azTableTitle':\n primaryClass = azCommonStyles['az-body-1-heavy'];\n secondaryClass = secondTextClass ? secondTextClass : '';\n break;\n default:\n // FONT-SIZE: 20px\n primaryClass = azCommonStyles['az-title-5-heavy'];\n secondaryClass = azCommonStyles['az-title-5-regular'];\n break;\n }\n\n if (swapStyle) {\n const temp = primaryClass;\n primaryClass = secondaryClass;\n secondaryClass = temp;\n }\n\n const CustomHeader = headerType || 'div';\n const H1OrH2 = overRuleH1 || 'h2';\n const H2OrH3 = !toOverrideHeaderTag\n ? (overRuleH1 === 'h1' && 'h2') ||\n (overRuleH1 === 'h2' && 'h3') ||\n (overRuleH1 === 'h3' && 'h4') ||\n (overRuleH1 === 'h4' && 'h5') ||\n (overRuleH1 === 'h5' && 'h6') ||\n 'h3'\n : 'span';\n const SpanOrH2 = usesWrapperTags ? 'h2' : 'span';\n return (\n \n {firstText && (\n \n {usesWrapperTags ?

{firstText}

: firstText}\n {inline ? '' : ' '}\n {secondText && isSameTitleTag && (\n <>\n {isNextLine &&
}\n \n {secondText}\n \n \n )}\n \n )}\n {secondText && !isSameTitleTag && (\n \n {secondText}\n \n )}\n \n );\n};\n\nexport default Title;\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport { useMemo } from 'react';\nimport dayjs from 'dayjs';\nimport isToday from 'dayjs/plugin/isToday';\nimport isTommorow from 'dayjs/plugin/isTomorrow';\nimport { fulfillmentLabels } from '../../constants/fulfillmentConstants';\nimport {\n dayjsFormats,\n dateFormatterForSTH,\n dateFormatterForSTHCheckout,\n} from '../../constants/date';\nimport { useLabel } from '@/hooks/useLabels';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useRouter } from 'next/router';\ndayjs.extend(isToday);\ndayjs.extend(isTommorow);\n\nconst EstDeliveryDate = ({\n estimatedDeliveryDate,\n lowerCaseWeekdays = false,\n}: {\n estimatedDeliveryDate: string;\n lowerCaseWeekdays?: boolean;\n}): any | string => {\n const router = useRouter();\n const isCheckoutV3Applicable = useFeatureFlag('CHECKOUT_V3_ENABLED_US') === 'true';\n const labelToday = useLabel(fulfillmentLabels.label_shipping_Today);\n const labelTomorrow = useLabel(fulfillmentLabels.label_shipping_Tomorrow);\n const isCheckout = router.pathname === '/checkout';\n\n const formattedArrivesLabel = useMemo(() => {\n const estDeliveryDateTime = dayjs(estimatedDeliveryDate.split(/[T ]/i, 1)[0]);\n if (estDeliveryDateTime.isValid()) {\n if (estDeliveryDateTime.isToday()) {\n return lowerCaseWeekdays ? labelToday.toLocaleLowerCase() : labelToday;\n }\n\n if (estDeliveryDateTime.isTomorrow()) {\n return lowerCaseWeekdays ? labelTomorrow.toLocaleLowerCase() : labelTomorrow;\n }\n\n return estDeliveryDateTime.format(\n isCheckoutV3Applicable\n ? isCheckout\n ? dateFormatterForSTHCheckout.weekDayMonthAndDay\n : dateFormatterForSTH.weekDayMonthAndDay\n : dayjsFormats.weekDayMonthAndDay\n );\n }\n\n return estDeliveryDateTime.toString();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [estimatedDeliveryDate]);\n return formattedArrivesLabel;\n};\n\nexport default EstDeliveryDate;\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, { useState, useEffect } from 'react';\nimport duration from 'dayjs/plugin/duration';\nimport dayjs from 'dayjs';\nimport { fulfillmentLabels } from '../../constants/fulfillmentConstants';\nimport { dayjsFormats } from '../../constants/date';\nimport { useLabel } from '@/hooks/useLabels';\nimport { useFeatureFlag } from '@/features/globalConfig';\n\ndayjs.extend(duration);\n\ntype Props = {\n toDate: Date;\n amPm?: boolean;\n isCheckoutPage?: boolean;\n};\n\nconst generateRemainingTime = (toDate: Date) => {\n return dayjs.duration(dayjs(toDate).diff(dayjs()));\n};\n\nconst CountDownV2 = ({ toDate, amPm, isCheckoutPage }: Props) => {\n const labelHrs = useLabel(fulfillmentLabels.label_shipping_hrs);\n const labelMinutes = useLabel(fulfillmentLabels.label_shipping_min);\n const labelAnd = useLabel(fulfillmentLabels.label_shipping_and);\n const checkoutV3US = useFeatureFlag('CHECKOUT_V3_ENABLED_US') === 'true';\n const [timeRemaining, setTimeRemaining] = useState(() => generateRemainingTime(toDate));\n\n useEffect(() => {\n const id = setInterval(() => setTimeRemaining(generateRemainingTime(toDate)), 10000);\n return () => clearInterval(id);\n }, [toDate]);\n\n const formattedAmPmShort = dayjs(toDate).format(dayjsFormats.timeOnly);\n const days = timeRemaining.days();\n const hours = timeRemaining.hours();\n const minutes = timeRemaining.minutes();\n const sumHours = days > 0 ? Math.floor(days * 24) + (hours ?? 0) : hours;\n const hoursRemainingMessage =\n sumHours > 0\n ? checkoutV3US && isCheckoutPage\n ? `${sumHours}${` `}${labelHrs}`\n : `${sumHours}${labelHrs}`\n : ``;\n const minutesRemainingMessage =\n minutes > 0\n ? checkoutV3US && isCheckoutPage\n ? `${minutes}${` `}${labelMinutes}`\n : `${minutes}${labelMinutes}`\n : `1${labelMinutes}`;\n const hoursMinutesRemainingMessage =\n hours > 0\n ? `${hoursRemainingMessage} ${labelAnd} ${minutesRemainingMessage}`\n : minutesRemainingMessage;\n const defaultMessage =\n minutes === 0\n ? hoursRemainingMessage\n : dayjs().isAfter(dayjs(toDate))\n ? `0${labelMinutes}`\n : hoursMinutesRemainingMessage;\n\n return !amPm ? (\n {defaultMessage}\n ) : (\n {formattedAmPmShort.toLowerCase()}\n );\n};\n\nexport default CountDownV2;\n","/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport * as React from 'react';\nimport dayjs from 'dayjs';\nimport { useLabel } from '@/hooks/useLabels';\nimport styles from './styles.module.scss';\nimport CountDownV2 from './CountDownV2';\nimport EstDeliveryDate from './EstDeliveryDate';\nimport { useFeatureFlag } from '@/features/globalConfig';\ntype Props = {\n estDeliveryDateString?: string;\n cutOffDateString: string;\n orderByLabel: string;\n arrivesByLabel: string;\n displayAmPmFormat: boolean;\n shippingArriveBy?: string;\n // hrs mins if false or null\n styleOverride?: any;\n isCheckoutPage?: boolean;\n};\n\nexport function OrderWithinHrsMinArrivesMessage({\n estDeliveryDateString,\n cutOffDateString,\n orderByLabel,\n arrivesByLabel,\n displayAmPmFormat,\n styleOverride,\n shippingArriveBy,\n isCheckoutPage,\n}: Props) {\n const labelOrderBy = useLabel(orderByLabel);\n const labelArrives = useLabel(arrivesByLabel);\n const cutOffDateTime = dayjs(cutOffDateString);\n const labelShippingArriveBy = useLabel(shippingArriveBy!);\n const arriveByLabelV3 = useFeatureFlag('CHECKOUT_V3_ENABLED_US') === 'true';\n\n if (!cutOffDateTime.isValid()) {\n return null;\n }\n\n return (\n \n {labelOrderBy} \n \n \n {' '}\n {!!estDeliveryDateString && (\n <>\n \n {arriveByLabelV3 ? labelShippingArriveBy : labelArrives}{' '}\n \n \n \n
\n \n )}\n \n );\n}\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 infoIcon = {\n src: '/images/info.svg',\n alt: 'info',\n};\n\nexport const whiteInfoIcon = {\n src: '/images/info-white.svg',\n alt: 'info-white',\n};\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 SHIPPING_METHODS = {\n NEXTDAY: '206',\n SAMEDAY: '207',\n GROUND: '201',\n FREIGHT: '208',\n EXPRESS: '203',\n USPS_GROUND: '205',\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 { FULFILLMENT_METHODS } from '@/constants/fulfillmentConstants';\nimport type { FulfillmentGroup } from '@/types/reduxStore/skuDetails';\nimport { getFulfillmentOptionsByGroup } from '@/utils/itemHelpers/fulfillmentHelpers/getFulfillmentOptionsByGroup';\nimport type { LineItemFulfillmentOptionsFromAPI } from './interface';\n\nexport const mapCommerceIdToFulfillmentOptions = (\n lineItemFulfillmentOptions: LineItemFulfillmentOptionsFromAPI[]\n) => {\n const availabilityInfo: Record = {};\n lineItemFulfillmentOptions.map((option) => {\n const fullfillmentGroup = getFulfillmentOptionsByGroup(option.fulfillmentOptions);\n availabilityInfo[option.commerceItemId] = fullfillmentGroup;\n });\n return availabilityInfo;\n};\n\nexport function checkContainsSddEligibleItem(\n lineItemFulfillmentOptions: LineItemFulfillmentOptionsFromAPI[]\n): boolean {\n const foundSddItem = lineItemFulfillmentOptions.some((option) => {\n const { fulfillmentOptions } = option;\n const sddEligible = fulfillmentOptions.some((fulfillmentOption) => {\n return (\n fulfillmentOption.fulfillmentTypeId === FULFILLMENT_METHODS.SAMEDAY &&\n fulfillmentOption.available\n );\n });\n return sddEligible;\n });\n return foundSddItem;\n}\n\nexport function mapLineItemFulfillmentOptionGroupsFromAPI(\n lineItemFulfillmentOptions: LineItemFulfillmentOptionsFromAPI[]\n) {\n const mappedItemAvailByGroupArr: Array<{\n fulfillmentGroups: FulfillmentGroup[];\n lineItemId: string;\n skuId: string;\n dealConfigurableLabel: string | null | undefined;\n }> = [];\n const mapThisArr = lineItemFulfillmentOptions && Array.from(lineItemFulfillmentOptions);\n\n if (mapThisArr && mapThisArr.length > 0) {\n mapThisArr.map((item) => {\n const { commerceItemId: lineItemId, skuId, fulfillmentOptions, dealConfigurableLabel } = item;\n const fulfillmentGroups = getFulfillmentOptionsByGroup(fulfillmentOptions);\n const mappedItem = {\n lineItemId,\n skuId,\n fulfillmentGroups,\n dealConfigurableLabel,\n };\n mappedItemAvailByGroupArr.push(mappedItem);\n });\n return mappedItemAvailByGroupArr;\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 { type AxiosInstance } from 'axios';\nimport {\n mapCommerceIdToFulfillmentOptions,\n checkContainsSddEligibleItem,\n mapLineItemFulfillmentOptionGroupsFromAPI,\n} from '../adaptors';\nimport { requestBaseURL } from '@/config/serviceAPI';\nimport { getAxios } from '@/lib/axios';\nimport type { AvailabilityInfoResponse, AvailabilityInfoData } from '../interface';\nimport { createQuery } from '@/utils/createReactQuery';\n\nconst URL = `${requestBaseURL}/ecomm/b2c/order/v4/availability`;\n\nexport const getAvailabilityInfoKey = () => ['availabilityInfo'] as const;\n\nconst getAvailabilityInfoData = async (axiosInstance?: AxiosInstance) => {\n const response = await getAxios(axiosInstance).get(URL);\n\n return selector(response.data);\n};\n\nconst { useData: useAvailabilityInfo } = createQuery(\n 'availabilityInfo',\n async (_options: object, axiosInstance?: AxiosInstance) => getAvailabilityInfoData(axiosInstance)\n);\n\nconst selector = (data: AvailabilityInfoResponse): AvailabilityInfoData => {\n const { lineItemFulfillmentOptions, oneFulfillment } = data;\n const availabilityData = mapCommerceIdToFulfillmentOptions(lineItemFulfillmentOptions);\n const containsSddEligible = checkContainsSddEligibleItem(lineItemFulfillmentOptions);\n const itemAvailability = mapLineItemFulfillmentOptionGroupsFromAPI(lineItemFulfillmentOptions);\n\n const parsedAvailabilityInfo = {\n availabilityData,\n containsSddEligible,\n itemAvailability,\n oneFulfillment,\n };\n return parsedAvailabilityInfo;\n};\n\nexport const useAvailabilityInfoData = () => {\n return useAvailabilityInfo();\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 { requestBaseURL } from '@/config/serviceAPI';\nimport { SHIPPING_METHODS } from '@/constants/shippingMethods';\nimport { getAxios } from '@/lib/axios';\nimport { createQuery } from '@/utils/createReactQuery';\nimport { type AxiosInstance, type AxiosResponse } from 'axios';\nimport type {\n ShipmentOptionsData,\n ShipmentOptionsOptions,\n ShipmentOptionsResponse,\n} from '../interface';\n\nconst URL = `${requestBaseURL}/ecomm/b2c/order/v2/shipment/options`;\n\nconst getShipmentOptions = async (\n _options: ShipmentOptionsOptions,\n axiosInstance?: AxiosInstance\n) => {\n const response = await getAxios(axiosInstance).get(URL);\n\n return selector(response);\n};\n\nexport const selector = (response: AxiosResponse): ShipmentOptionsData => {\n const shippingIsSddEligible =\n response.data.orderSipmentOptionList?.some((shipmentOption) => {\n const { availableShippingMethods = [] } = shipmentOption;\n return availableShippingMethods.some((shippingMethod) => {\n return shippingMethod.shippingMethodId === SHIPPING_METHODS.SAMEDAY;\n });\n }) ?? false;\n\n const noAvailableShippingMethod =\n response.data.orderSipmentOptionList?.some(\n (option) => option.selectedShippingMethodId == null\n ) ?? false;\n\n return {\n ...response.data,\n shippingIsSddEligible,\n noAvailableShippingMethod,\n };\n};\n\nconst { useData: useShipmentOptionsData, query: shipmentOptionsQuery } = createQuery<\n ShipmentOptionsData,\n ShipmentOptionsOptions\n>('shipmentOptions', getShipmentOptions);\n\nconst useShipmentOptions = () => {\n return useShipmentOptionsData({\n enabled: false,\n staleTime: Infinity,\n });\n};\n\nexport { useShipmentOptions, shipmentOptionsQuery };\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 AxiosInstance } from 'axios';\nimport type { SkuDealsResponse } from '../interface';\nimport type { SkuDealsFromAPI } from '@/types/availability';\nimport { getAxios } from '@/lib/axios';\nimport { createQuery } from '@/utils/createReactQuery';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { getPreferredVehicle } from '@/features/header/utils/getPreferredVehicle';\nimport { requestBaseURL } from '@/config/serviceAPI';\nimport { countryCodes } from '@/constants/locale';\nimport { useLocale } from '@/hooks/useLocale';\nimport { type QueryClient } from '@tanstack/react-query';\n\ntype ProductDealsQueryOptions = {\n skuIds: Array | null;\n vehicleId: string | undefined;\n storeNumber: string | undefined;\n};\n\nconst URL = `${requestBaseURL}/ecomm/b2c/browse/v3/deal/details`;\n\nconst getProductSkuDeals = async (\n options: ProductDealsQueryOptions,\n axiosInstance?: AxiosInstance\n) => {\n const { skuIds } = options;\n\n if (!skuIds) {\n throw new Error('skuIds is required');\n }\n\n const response = await getAxios(axiosInstance).get(\n `${URL}/${skuIds.join(',')}`\n );\n return response.data;\n};\n\nconst { useData: useProdSkuDeals, prefetch: prefetchProdSkuDealsData } = createQuery<\n SkuDealsFromAPI[],\n ProductDealsQueryOptions\n>('productSkuDeals', getProductSkuDeals);\n\nexport const useProductSkuDeals = ({\n skuIds,\n enabled = Boolean(skuIds?.length),\n}: {\n skuIds: string[] | null | undefined;\n enabled?: boolean;\n}) => {\n const headerResult = useHeaderData();\n const locale = useLocale();\n const storeNumber = headerResult.data?.storeNumber;\n const vehicleId = getPreferredVehicle(headerResult.data)?.catalogVehicleId;\n const isEnabled = headerResult.isSuccess && enabled && !!skuIds;\n\n return useProdSkuDeals({\n enabled: locale === countryCodes.ptBr ? false : isEnabled,\n skuIds: skuIds?.length ? skuIds : null,\n storeNumber: storeNumber ?? '',\n // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing\n vehicleId: vehicleId || '0',\n cacheTime: 0,\n });\n};\n\nexport const prefetchProductSkuDeals = async (\n options: ProductDealsQueryOptions,\n queryClient: QueryClient,\n axiosInstance: AxiosInstance\n) => {\n return prefetchProdSkuDealsData(queryClient, options, axiosInstance);\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 dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport isTomorrow from 'dayjs/plugin/isTomorrow';\n\ndayjs.extend(customParseFormat);\ndayjs.extend(isTomorrow);\n\nexport const checkIfDateIsTomorrow = (date: string) => {\n // Convert the input to title case to handle lowercase month abbreviations\n const formattedDate = date?.replace(/\\b\\w/g, (c) => c.toUpperCase());\n\n let dateToCheck = dayjs(formattedDate);\n\n // If parsing fails, try some common formats\n if (!dateToCheck.isValid()) {\n const commonFormats = ['MMM D', 'MMM DD', 'MMM. D', 'MMM. DD', 'MMM D YYYY', 'MMM DD YYYY'];\n for (const format of commonFormats) {\n dateToCheck = dayjs(formattedDate, format, false);\n if (dateToCheck.isValid()) break;\n }\n }\n\n if (!dateToCheck.isValid()) {\n return false;\n }\n\n if (!formattedDate?.includes(dateToCheck.year().toString())) {\n const currentDate = dayjs();\n const isEndOfDecember = currentDate.month() === 11 && currentDate.date() >= 31;\n dateToCheck = dateToCheck.year(isEndOfDecember ? currentDate.year() + 1 : currentDate.year());\n }\n\n return dateToCheck.isTomorrow();\n};\n\nexport const getTomorrowOrDate = (date: string, tomorrowLabel: string) => {\n const isTomorrowDate = checkIfDateIsTomorrow(date);\n return isTomorrowDate ? tomorrowLabel : date;\n};\n\ntype GenerateGetItTimePhraseInput = {\n labels: {\n lblTomorrow: string;\n lblGetItBy: string;\n lblGetIt: string;\n };\n estimatedDeliveryDate: string;\n config?: {\n dateFormat: string;\n };\n};\n\ntype ReturnOfGenerateGetItPhrase = {\n prepositional: string;\n getItPhrase: string;\n formattedDate: string;\n};\n\nexport const generateGetItTimePhrase = ({\n labels,\n estimatedDeliveryDate,\n config,\n}: GenerateGetItTimePhraseInput): ReturnOfGenerateGetItPhrase => {\n if (!dayjs(estimatedDeliveryDate).isValid()) {\n return {\n prepositional: '',\n getItPhrase: '',\n formattedDate: '',\n };\n }\n\n if (checkIfDateIsTomorrow(estimatedDeliveryDate)) {\n return {\n prepositional: '',\n getItPhrase: labels.lblGetIt,\n formattedDate: labels.lblTomorrow.toLocaleLowerCase(),\n };\n }\n return {\n prepositional: 'by',\n getItPhrase: labels.lblGetItBy,\n formattedDate: dayjs(estimatedDeliveryDate)\n .format(config?.dateFormat ?? 'MMM D')\n .replace(/^\\w/, (c) => c.toUpperCase()),\n };\n};\n\ntype ReturnOfGenerateDeliveryTimePhrase = {\n prepositional: string;\n formattedDate: string;\n};\n\ntype GenerateDeliveryTimePhraseInput = {\n labels: {\n lblBy?: string;\n lblTomorrow: string;\n };\n estimatedDeliveryDate: string;\n config?: {\n dateFormat: string;\n };\n};\n\nexport const generateDeliveryTimePhrase = ({\n labels,\n estimatedDeliveryDate,\n config,\n}: GenerateDeliveryTimePhraseInput): ReturnOfGenerateDeliveryTimePhrase => {\n if (!dayjs(estimatedDeliveryDate).isValid()) {\n return {\n prepositional: '',\n formattedDate: '',\n };\n }\n\n const isTomorrow = checkIfDateIsTomorrow(estimatedDeliveryDate);\n const formattedDate = isTomorrow\n ? labels.lblTomorrow.toLowerCase()\n : dayjs(estimatedDeliveryDate)\n .format(config?.dateFormat ?? 'MMM D')\n .replace(/^\\w/, (c) => c.toUpperCase());\n\n return {\n prepositional: labels.lblBy ?? 'by',\n formattedDate,\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 { isAxiosError } from './isAxiosError';\n\nexport function getErrorCodeDescription(error: unknown): string | undefined {\n if (isAxiosError(error)) {\n return error.response?.data.errorCodeDescription;\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 { isAxiosError } from './isAxiosError';\n\nexport function getErrorStatus(error: unknown): number | undefined {\n if (isAxiosError(error)) {\n return error.response?.status;\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 { isAxiosError } from './isAxiosError';\n\ntype ErrorWithTitle = {\n message: string;\n};\n\nexport function toErrorWithTitle(maybeError: unknown): ErrorWithTitle {\n if (isAxiosError(maybeError)) {\n return new Error(maybeError.response?.data.title);\n }\n\n try {\n return new Error(JSON.stringify(maybeError));\n } catch {\n // fallback in case there's an error stringifying the maybeError\n // like with circular references for example.\n return new Error(String(maybeError));\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 { toErrorWithTitle } from './toErrorWithTitle';\n\nexport function getErrorTitle(error: unknown): string | undefined {\n if (error) {\n return toErrorWithTitle(error).message || undefined;\n } else {\n return undefined;\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 { mergeDefaultWithState } from './mergeDefaultWithState';\nimport type { MergedFulfillmentOption } from '../types';\n\nexport function createItemFulfillmentAvailabilityString(\n inputFulfillmentOptions: MergedFulfillmentOption[]\n): string {\n const allOptions = mergeDefaultWithState(inputFulfillmentOptions);\n return allOptions\n .map((option) => `${option.fulfillmentTypeId}-${option.available ? 'true' : 'false'}`)\n .join(':');\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 dayjs from 'dayjs';\nimport { dayjsFormats } from '@/constants/date';\n\nexport function getFormattedAmPmShort(date: string): string {\n const estDeliveryDateTime = dayjs(date);\n\n if (estDeliveryDateTime.isValid()) {\n const formattedDate = estDeliveryDateTime.format(dayjsFormats.timeOnly);\n return formattedDate.toLowerCase();\n }\n\n return date.toString();\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 type {\n FulfillmentOption,\n FulfillmentOptionSkuDetailsFromState,\n} from '@/types/reduxStore/skuDetails';\nimport type { FulfillmentOptionUpdated, MergedFulfillmentOption } from '../types';\n\nexport function getMaxAvailQtyFromOptions(\n fulfillmentOptions:\n | FulfillmentOptionUpdated[]\n | FulfillmentOption[]\n | FulfillmentOptionSkuDetailsFromState[]\n | MergedFulfillmentOption[]\n): number {\n const maxAvailableQty = Math.max(...fulfillmentOptions.map((o) => o.availableQty));\n\n return maxAvailableQty;\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 type { DefaultOption, MergedFulfillmentOption } from '../types';\n\nexport const mergeDefaultWithState = (\n inputFulfillmentOptions: MergedFulfillmentOption[] | undefined,\n defaultList = DEFAULT_FULFILLMENT_OPTIONS\n): MergedFulfillmentOption[] => {\n const defaultListSorted = defaultList.sort((a, b) => b.fulfillmentTypeId - a.fulfillmentTypeId);\n const inputValuesSorted = inputFulfillmentOptions?.sort(\n (a, b) => b.fulfillmentTypeId - a.fulfillmentTypeId\n );\n\n const mergedArray: MergedFulfillmentOption[] = defaultListSorted.map((element) => {\n const _element = inputValuesSorted?.find((e) => {\n return element.fulfillmentTypeId === e.fulfillmentTypeId;\n });\n\n return _element ?? element;\n });\n\n return mergedArray.sort((a, b) => b.fulfillmentTypeId - a.fulfillmentTypeId);\n};\n\nexport const DEFAULT_FULFILLMENT_OPTIONS: DefaultOption[] = [\n {\n fulfillmentTypeId: 108,\n available: false,\n availableQty: 0,\n availableAtSelectedQuantity: false,\n fulfillmentTypeLabel: 'Free In-Store or Curbside Pick Up',\n groupId: 108,\n },\n {\n fulfillmentTypeId: 107,\n available: false,\n availableQty: 0,\n availableAtSelectedQuantity: false,\n fulfillmentTypeLabel: 'Next Day Delivery',\n groupId: 101,\n },\n {\n fulfillmentTypeId: 106,\n available: false,\n availableQty: 0,\n availableAtSelectedQuantity: false,\n fulfillmentTypeLabel: 'Same Day Delivery',\n groupId: 101,\n },\n {\n fulfillmentTypeId: 101,\n available: false,\n availableQty: 0,\n availableAtSelectedQuantity: false,\n fulfillmentTypeLabel: 'Standard Delivery',\n groupId: 101,\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 { GrandOrderDiscountList, MappedDiscount } from '../types';\nimport type {\n CouponInfoFromState,\n LineItemFromState,\n OrderItemFromState,\n PromotionInfoFromState,\n ShipmentInfoFromState,\n} from '@/types/reduxStore/orders';\n\ntype OverrideProperties = Omit & T2;\n\nexport type OptionalOrderItemFromState = OverrideProperties<\n OrderItemFromState,\n {\n shipmentInfoList:\n | Array<\n | OverrideProperties<\n ShipmentInfoFromState,\n {\n lineItemList: LineItemFromState[] | undefined;\n }\n >\n | undefined\n >\n | undefined;\n }\n>;\n\nexport function mapGrandOrderDiscountListFromState(\n orderItems: OptionalOrderItemFromState[] | undefined\n): GrandOrderDiscountList | undefined {\n const containsPromosAndCoupons = orderItems?.some(\n (order) => order.promotionInfoList && order.couponInfoList\n );\n\n if (containsPromosAndCoupons) {\n return orderItems\n ?.map>(\n ({ promotionInfoList, couponInfoList }) => [\n ...(couponInfoList || []),\n ...(promotionInfoList || []),\n ]\n )\n .reduce((accumulator, currentArray) => [...accumulator, ...currentArray], [])\n .map((discount) => {\n const _discount = { ...discount };\n\n if ('couponPromotion' in discount && discount.couponPromotion) {\n _discount.discountTypeId = 1;\n } else if ('inStoreDeal' in discount && discount.inStoreDeal) {\n _discount.discountTypeId = 2;\n } else if ('onlineOnlyDeal' in discount && discount.onlineOnlyDeal) {\n _discount.discountTypeId = 3;\n }\n\n return _discount;\n })\n .reduce((accumulator: Array, curr) => {\n const promoIndex = accumulator.findIndex((promotion) => promotion.code === curr.code);\n\n if (promoIndex >= 0) {\n const currentPromoInstance = { ...accumulator[promoIndex] };\n currentPromoInstance.applied = currentPromoInstance.applied || curr.applied;\n accumulator[promoIndex] = currentPromoInstance;\n return accumulator;\n } else {\n return [...accumulator, curr];\n }\n }, [])\n .map((discount) => {\n return {\n id: discount.code,\n applied: discount.applied,\n amount: discount.amount,\n discountTypeId: discount.discountTypeId,\n description: 'description' in discount ? discount.description : undefined,\n name: 'name' in discount ? discount.name : undefined,\n couponPromotion: 'couponPromotion' in discount ? discount.couponPromotion : undefined,\n inStoreDeal: 'inStoreDeal' in discount ? discount.inStoreDeal : undefined,\n discountMessage: 'discountMessage' in discount ? discount.discountMessage : undefined,\n } as MappedDiscount;\n });\n } else {\n return [];\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 {\n type OptionalOrderItemFromState,\n mapGrandOrderDiscountListFromState,\n} from './mapGrandOrderDiscountListFromState';\nimport type { MappedOrderLineItem, MappedGrandOrder } from '../types';\n\nexport function mapOrderItemsFromState(\n orderItems: OptionalOrderItemFromState[] | undefined\n): MappedGrandOrder {\n const grandOrderDiscountList = mapGrandOrderDiscountListFromState(orderItems);\n const grandOrderDeals = grandOrderDiscountList?.filter(\n (discount) => discount.discountTypeId === 2 || discount.discountTypeId === 3\n );\n const grandOrderPromotions = grandOrderDiscountList?.filter(\n (discount) => discount.discountTypeId === 1\n );\n const promotionCountOnOrder = grandOrderPromotions?.length ?? 0;\n const dealCountOnOrder = grandOrderDeals?.length ?? 0;\n const orderLineItems: MappedOrderLineItem[] = [];\n const orders = orderItems?.map((order) => order.orderId);\n orderItems?.forEach((order) => {\n const orderType = order.orderType ?? null;\n order.shipmentInfoList?.filter((shipment) => {\n shipment?.lineItemList?.map((orderLineItem) => {\n const {\n lineItemId,\n productInfo,\n itemQuantity,\n lineItemPriceInfo,\n couponApplied,\n dealApplied,\n discountsExcluded,\n } = orderLineItem;\n const selectedFulfillmentType = orderLineItem.selectedFulfillmentType;\n const { corePrice, listPrice, dealAppliedAmount, unitPrice, discounted } =\n lineItemPriceInfo;\n const { skuId, brand, originalPartType, productId, clearanceItem, partNumber } =\n productInfo;\n const promotionsAppliedToItem = couponApplied\n ? order.couponInfoList.filter((promo) => promo.applied).map((promo) => promo.code)\n : [];\n const dealsAppliedToItem = dealApplied\n ? order.promotionInfoList.filter((deal) => deal.applied).map((deal) => deal.code)\n : [];\n const orderId = order.orderId;\n const mappedItem: MappedOrderLineItem = {\n lineItemId,\n skuId,\n productPartNumber: partNumber,\n brand,\n itemQuantity,\n corePrice,\n listPrice,\n selectedFulfillmentType,\n orderType,\n dealAppliedAmount,\n originalPartType,\n couponApplied,\n promotionsAppliedToItem,\n dealsAppliedToItem,\n dealApplied,\n discountsExcluded,\n orderId,\n productId,\n unitPrice,\n discounted,\n clearanceItem,\n };\n orderLineItems.push(mappedItem);\n });\n });\n });\n orderLineItems.sort((a, b) =>\n a.lineItemId > b.lineItemId ? 1 : b.lineItemId > a.lineItemId ? -1 : 0\n );\n const combinedData: MappedGrandOrder = {\n promotionCountOnOrder: promotionCountOnOrder,\n dealCountOnOrder: dealCountOnOrder,\n grandOrderPromotions,\n grandOrderDeals,\n orders,\n orderLineItems,\n grandOrderDiscountList,\n };\n return combinedData;\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"azwhite\":\"#fff\",\"azgrey1\":\"#f2f2f2\",\"azgrey2\":\"#e6e6e6\",\"azgrey3\":\"#a9aaa8\",\"azgrey4\":\"#787878\",\"azgrey5\":\"#5b5d5b\",\"azgrey6\":\"#484848\",\"azgrey7\":\"#5b5c5d\",\"azgrey8\":\"#7c7c7c\",\"azblack\":\"#202124\",\"azlightorange\":\"#f37f00\",\"azmediumorange\":\"#f26100\",\"azmediumgrey\":\"#949494\",\"azdarkorange\":\"#f23f00\",\"azlightred\":\"#f52c1c\",\"azmediumred\":\"#d52b1e\",\"azdarkred\":\"#971e15\",\"azcolorsuccess\":\"#1f7400\",\"azcolorinfo\":\"#0050b3\",\"azcolorinfoalt\":\"#0081b2\",\"azcolorerror\":\"#b30000\",\"azcolorcaution\":\"#ffc600\",\"toolTipContainer\":\"az_xqb\",\"toolTipPopperContainer\":\"az_yqb\",\"toolTipPopperPaper\":\"az_zqb\",\"toolTipPopperTitle\":\"az_Aqb\",\"toolTipPopperHeading\":\"az_Bqb\",\"toolTipIcon\":\"az_Cqb\",\"tooltipImage\":\"az_Dqb\",\"popperPadding\":\"az_Eqb\",\"hasIconSizePxOverride\":\"az_Fqb\"};","// 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\",\"arrow\":\"az_WDb\",\"popper\":\"az_XDb\",\"popperTitle\":\"az_YDb\",\"popperContent\":\"az_ZDb\",\"paper\":\"az__Db\",\"popperTitleText\":\"az_aEb\",\"popperTitleWithoutBorder\":\"az_bEb\",\"popperTitleCloseButton\":\"az_cEb\"};","// 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\",\"underline\":\"az_oI\",\"nextUnderline\":\"az_pI\",\"center\":\"az_qI\",\"inlineheader\":\"az_rI\",\"centerInline\":\"az_sI\",\"inlineH2orH3\":\"az_tI\",\"firstText\":\"az_uI\"};","// 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\",\"sisterStoreStatus\":\"az_JRb\",\"storePickupAvailability\":\"az_KRb\",\"inStockSisterStoreContainer\":\"az_LRb\",\"bold\":\"az_MRb\",\"toggleListItemContainer\":\"az_NRb\",\"skeletonLoading\":\"az_ORb\",\"toggleContainer\":\"az_PRb\",\"segmentedToggleContainer\":\"az_QRb\",\"segmentedToggle\":\"az_RRb\",\"rootToggleButton\":\"az_SRb\",\"selectedToggleButton\":\"az_TRb\",\"labelToggleButton\":\"az_URb\",\"inlineToggleContainer\":\"az_VRb\",\"inlineToggle\":\"az_WRb\",\"notAvailable\":\"az_XRb\",\"notAvailablePreferredStore\":\"az_YRb\",\"storeLink\":\"az_ZRb\",\"selectStore\":\"az__Rb\",\"storeDetails\":\"az_aSb\",\"sisterStoreDetails\":\"az_bSb\",\"deliveryGroupLabel\":\"az_cSb\",\"listItemContainer\":\"az_dSb\",\"listItemIcon\":\"az_eSb\",\"listItemDetails\":\"az_fSb\",\"listItemHeader\":\"az_gSb\",\"nextDayHeader\":\"az_hSb\",\"sameDayHeader\":\"az_iSb\",\"infoPopperIcon\":\"az_jSb\",\"nddPopper\":\"az_kSb\",\"shippingOptionDetail\":\"az_lSb\",\"shippingOptionDetailV3\":\"az_mSb\",\"inStock\":\"az_nSb\",\"deliveryMessage\":\"az_oSb\",\"deliveryMessageV3\":\"az_pSb\",\"divider\":\"az_qSb\",\"orderWithIn\":\"az_rSb\",\"fullWidth\":\"az_sSb\",\"searchStoreButton\":\"az_tSb\"};"],"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","width","height","d","API_URL3","azURL","API_URL4","emptyCartPageData","dispatch","type","actionConstants","CLEAR_CART_PAGE_DATA","applyDiscountCodeCall","data","checkoutPage","queryClient","URL","hideInStorePurchase","getState","axios","PROMOCODE_APPLY_REQUESTING","id","promotionId","fromPage","response","postATGData","shippingAddressAvailable","orders","addressDetails","orderItems","details","onlyBOPUSItems","filter","item","orderType","cartConstants","STOREORDER","orderIsOnlyBOPUS","fetchQuery","queryKey","shipmentOptionsQuery","getFullKey","staleTime","err","ORDER_DETAILS_FAILURE","fetchOrderDetails","PROMOCODE_APPLY_SUCCESS","value","PROMOCODE_APPLY_FAILURE","errorLog","removeDiscountCodeCall","PROMOCODE_REMOVE_REQUESTING","removeCouponDiscountData","couponId","removeDealDiscountData","requestData","discountTypeId","PROMOCODE_REMOVE_SUCCESS","values","undefined","PROMOCODE_REMOVE_FAILURE","message","resetDiscounts","RESET_PROMO_CART","TooltipIcon","param","iconSizePx","iconSrc","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","View","concat","align","justify","Icon","svg","InfoCircle","size","attributes","style","color","Image","className","styles","src","infoIcon","alt","header","body","bodyComponent","isCorePricePadding","placement","classes","hideCloseIcon","isCustomElement","variant","customElement","dataTestId","setInfoToolTipIsOpen","divStyle","isOpen","setIsOpen","useState","infoIconRef","useRef","openTooltip","closeTooltip","useCallback","useEffect","handleClickOutside","event","current","contains","handleKeyDown","e","keyCode","eventConstants","enterKeyCode","escKeyCode","document","addEventListener","removeEventListener","Fragment","jsxs","div","ref","cx","container","Button","data-testid","aria-haspopup","onFocus","onBlur","onMouseDown","customClass","icon","Popper","anchorEl","popper","paper","elevation","PopperHeader","title","heading","handleClose","h1","azCommonStyles","strong","PopperBody","dangerouslySetInnerHTML","__html","DialogTitle","children","ariaLabel","typographyComponent","jsx_runtime","Typography","component","focusToCloseButton","ariaLabelledByID","isBorder","closeRef","React","focus","IconButton","aria-label","onClick","CloseIcon","iconStyles","DialogContent","ariaDescribedByID","initialPlacement","modifiers","strategy","disablePortal","role","popperRole","popperAriaModal","popperAriaLabelledByID","popperId","hideForBots","arrowRef","setArrowRef","tooltipRef","isABot","useSelector","appData","deviceType","root","flip","enabled","arrow","handleOpen","popperModifiers","name","options","_object_spread","_","altBoundary","padding","element","boundariesElement","createPopper","handleRef","node","aria-modal","aria-labelledby","position","top","left","display","span","Paper","aria-describedby","ReactDOM","primaryClass","secondaryClass","firstText","secondText","underline","swapStyle","headerType","center","stylesClass","firstTextClass","secondTextClass","overRuleH1","inline","dataTestIdContainer","dataTestIdFirstText","dataTestIdSecondText","isSameTitleTag","isNextLine","toOverrideHeaderTag","usesWrapperTags","temp","CustomHeader","H1OrH2","H2OrH3","String","p","br","SpanOrH2","dayjs","isToday","isTommorow","estimatedDeliveryDate","lowerCaseWeekdays","router","useRouter","isCheckoutV3Applicable","useFeatureFlag","labelToday","useLabel","fulfillmentLabels","label_shipping_Today","labelTomorrow","label_shipping_Tomorrow","isCheckout","pathname","formattedArrivesLabel","useMemo","estDeliveryDateTime","split","isValid","toLocaleLowerCase","isTomorrow","format","dateFormatterForSTHCheckout","weekDayMonthAndDay","dateFormatterForSTH","dayjsFormats","toString","duration","generateRemainingTime","toDate","diff","FulfillmentOptionsV2_CountDownV2","amPm","isCheckoutPage","labelHrs","label_shipping_hrs","labelMinutes","label_shipping_min","labelAnd","label_shipping_and","checkoutV3US","timeRemaining","setTimeRemaining","setInterval","clearInterval","formattedAmPmShort","timeOnly","days","hours","minutes","sumHours","Math","floor","hoursRemainingMessage","minutesRemainingMessage","hoursMinutesRemainingMessage","defaultMessage","isAfter","toLowerCase","OrderWithinHrsMinArrivesMessage","estDeliveryDateString","cutOffDateString","orderByLabel","arrivesByLabel","displayAmPmFormat","styleOverride","shippingArriveBy","labelOrderBy","labelArrives","cutOffDateTime","labelShippingArriveBy","arriveByLabelV3","CountDownV2","EstDeliveryDate","whiteInfoIcon","SHIPPING_METHODS","NEXTDAY","SAMEDAY","GROUND","FREIGHT","EXPRESS","USPS_GROUND","mapCommerceIdToFulfillmentOptions","availabilityInfo","lineItemFulfillmentOptions","map","fullfillmentGroup","getFulfillmentOptionsByGroup","option","fulfillmentOptions","commerceItemId","requestBaseURL","getAvailabilityInfoKey","getAvailabilityInfoData","axiosInstance","getAxios","get","selector","useData","useAvailabilityInfo","createQuery","_options","oneFulfillment","availabilityData","containsSddEligible","checkContainsSddEligibleItem","foundSddItem","some","sddEligible","fulfillmentOption","fulfillmentTypeId","FULFILLMENT_METHODS","available","itemAvailability","mapLineItemFulfillmentOptionGroupsFromAPI","mappedItemAvailByGroupArr","mapThisArr","Array","from","lineItemId","skuId","dealConfigurableLabel","fulfillmentGroups","push","useAvailabilityInfoData","getShipmentOptions","shippingIsSddEligible","orderSipmentOptionList","availableShippingMethods","shipmentOption","shippingMethod","shippingMethodId","noAvailableShippingMethod","selectedShippingMethodId","_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_3__","_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_4__","useShipmentOptionsData","query","useShipmentOptions","Infinity","getProductSkuDeals","skuIds","join","useProdSkuDeals","prefetch","prefetchProdSkuDealsData","useProductSkuDeals","headerResult","getPreferredVehicle","Boolean","useHeaderData","locale","useLocale","storeNumber","vehicleId","catalogVehicleId","isEnabled","isSuccess","countryCodes","ptBr","cacheTime","customParseFormat","checkIfDateIsTomorrow","formattedDate","date","replace","c","toUpperCase","dateToCheck","includes","year","currentDate","isEndOfDecember","month","getTomorrowOrDate","tomorrowLabel","isTomorrowDate","generateGetItTimePhrase","config","labels","prepositional","getItPhrase","lblGetIt","lblTomorrow","lblGetItBy","dateFormat","generateDeliveryTimePhrase","lblBy","getErrorCodeDescription","error","isAxiosError","errorCodeDescription","getErrorStatus","status","getErrorTitle","toErrorWithTitle","maybeError","Error","JSON","stringify","createItemFulfillmentAvailabilityString","inputFulfillmentOptions","allOptions","mergeDefaultWithState","getFormattedAmPmShort","getMaxAvailQtyFromOptions","maxAvailableQty","max","o","availableQty","defaultList","DEFAULT_FULFILLMENT_OPTIONS","defaultListSorted","sort","a","b","inputValuesSorted","mergedArray","_element","find","availableAtSelectedQuantity","fulfillmentTypeLabel","groupId","mapGrandOrderDiscountListFromState","containsPromosAndCoupons","order","promotionInfoList","couponInfoList","reduce","accumulator","currentArray","_discount","_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__","discount","couponPromotion","inStoreDeal","onlineOnlyDeal","curr","promoIndex","findIndex","promotion","code","currentPromoInstance","applied","amount","description","discountMessage","mapOrderItemsFromState","grandOrderPromotions","grandOrderDeals","grandOrderDiscountList","promotionCountOnOrder","dealCountOnOrder","orderLineItems","orderId","forEach","shipmentInfoList","shipment","lineItemList","productInfo","itemQuantity","lineItemPriceInfo","couponApplied","dealApplied","discountsExcluded","orderLineItem","selectedFulfillmentType","corePrice","listPrice","dealAppliedAmount","unitPrice","discounted","brand","originalPartType","productId","clearanceItem","partNumber","promotionsAppliedToItem","promo","dealsAppliedToItem","deal","productPartNumber","module","exports"],"sourceRoot":""}