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A,CAC7C,EACAhb,GAEFS,IAAKA,EACLS,GAAIA,EACJkD,aAAYR,GACR/B,GAGV,uEC3KK,IAAM+a,EAAa,CACxBC,SAAU,CACRpT,IAAK,+BACLC,IAAK,cACP,EACAoT,SAAU,CACRrT,IAAK,uBACP,EACAsT,MAAO,CACLtT,IAAK,4BACLC,IAAK,gBACP,EACAsT,IAAK,CACHvT,IAAK,0BACLC,IAAK,cACP,EACAuT,KAAM,CACJxT,IAAK,mBACLC,IAAK,MACP,EACAwT,UAAW,CACTzT,IAAK,yBACLC,IAAK,QACP,CACF,oBC5BAyT,EAAAC,OAAA,EAAkB,siBCAlBD,EAAAC,OAAA,EAAkB,qECAlBD,EAAAC,OAAA,EAAkB,yJCAlBD,EAAAC,OAAA,EAAkB,iqECAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/AZCustomComponent/MaxQuantityNotificationBlock/index.tsx","webpack://_N_E/./src/hooks/useControlled.tsx","webpack://_N_E/./src/components/Checkbox/SwitchBase.tsx","webpack://_N_E/./src/components/FormControlLabel/FormControlLabel.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/CountDown.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/FulfillmentCutoff.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/NextDayOption.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/SameDayOption.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/FulfillmentControlStoreModalV2.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/StorePickupOption.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/StandardOption.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/SubgroupText.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/StorePickupTime.tsx","webpack://_N_E/./src/components/FulfillmentOptionButtons/FulfillmentOptionButtonsV2.tsx","webpack://_N_E/./src/components/Typography/index.tsx","webpack://_N_E/./src/constants/images/itemDetail.ts","webpack://_N_E/./src/components/AZCustomComponent/MaxQuantityNotificationBlock/styles.module.scss","webpack://_N_E/./src/components/Checkbox/SwitchBase.module.scss","webpack://_N_E/./src/components/FormControlLabel/FormControlLabel.module.scss","webpack://_N_E/./src/components/FulfillmentOptionButtons/styles.module.scss","webpack://_N_E/./src/components/Typography/Typography.module.scss","webpack://_N_E/"],"sourcesContent":["/**\n * Copyright 2023 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport styles from './styles.module.scss';\nimport { Warning, Icon } from '@az/starc-ui';\nimport { FULFILLMENT_METHODS } from '@/constants/fulfillmentConstants';\nimport NotificationBlock from '../NotificationBlock';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\nimport usePrevious from '@/utils/usePrevious';\nimport { useLabels } from '@/hooks/useLabels';\n\nexport type Props = {\n selectedFulfillmentID: number;\n availableQuantity: number | undefined;\n selectedQuantity: number;\n nddQuantity: number | undefined;\n sddQuantity: number | undefined;\n messageIsNotification?: boolean;\n};\nconst labelMap = {\n label_max_quantity_sdd: 'label_max_quantity_sdd',\n label_max_quantity_ndd: 'label_max_quantity_ndd',\n label_max_quantity_hd: 'label_max_quantity_hd',\n label_quantity_exceeded_ndd: 'label_quantity_exceeded_ndd',\n label_max_quantity_bopus: 'label_max_quantity_bopus',\n label_deliverymethod_unavailable: 'label_deliverymethod_unavailable',\n};\n\nexport function MaxQuantityNotificationBlock(props: Props) {\n const labels = useLabels(labelMap);\n const { data: storeDetails } = useStoreDetailsData();\n const previousStoreNumber = usePrevious(storeDetails?.storeNumber);\n const {\n selectedFulfillmentID,\n nddQuantity = 0,\n sddQuantity = 0,\n selectedQuantity,\n availableQuantity = 0,\n messageIsNotification = false,\n } = props;\n\n const checkAvailability = () => {\n if (availableQuantity > selectedQuantity) {\n return true;\n }\n };\n let message = '';\n if (selectedFulfillmentID == FULFILLMENT_METHODS.SAMEDAY) {\n storeDetails?.storeNumber !== previousStoreNumber && sddQuantity != null && sddQuantity <= 0\n ? (message = labels.label_deliverymethod_unavailable)\n : !checkAvailability()\n ? (message = labels.label_max_quantity_sdd)\n : null;\n } else if (selectedFulfillmentID == FULFILLMENT_METHODS.NEXTDAY) {\n if (availableQuantity <= selectedQuantity) {\n message = labels.label_max_quantity_ndd;\n }\n } else if (selectedFulfillmentID == FULFILLMENT_METHODS.ONLINEORDER) {\n if (\n nddQuantity &&\n nddQuantity > 0 &&\n nddQuantity < selectedQuantity &&\n availableQuantity > selectedQuantity\n ) {\n message = labels.label_quantity_exceeded_ndd;\n } else if (availableQuantity <= selectedQuantity) {\n message = labels.label_max_quantity_hd;\n }\n } else if (selectedFulfillmentID == FULFILLMENT_METHODS.STOREORDER) {\n if (!checkAvailability()) {\n message = labels.label_max_quantity_bopus;\n }\n }\n\n if (messageIsNotification && message) {\n return (\n \n );\n } else if (message) {\n return (\n
\n \n

{message}

\n
\n );\n }\n return null;\n}\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\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\n\nexport function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value',\n}: {\n controlled: boolean | undefined | null;\n default: boolean;\n name: string;\n state?: string;\n}) {\n const { current: isControlled } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n // eslint-disable-next-line no-console\n console.error(\n [\n `A component is changing the ${\n isControlled ? '' : 'un'\n }controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`,\n 'Elements should not switch from uncontrolled to controlled (or vice versa).',\n `Decide between using a controlled or uncontrolled ${name} ` +\n 'element for the lifetime of the component.',\n \"The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.\",\n 'More info: https://fb.me/react-controlled-components',\n ].join('\\n')\n );\n }\n }, [controlled]);\n\n const { current: defaultValue } = React.useRef(defaultProp);\n\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n // eslint-disable-next-line no-console\n console.error(\n [\n `A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` +\n `To suppress this warning opt to use a controlled ${name}.`,\n ].join('\\n')\n );\n }\n }, [JSON.stringify(defaultProp)]);\n }\n\n const setValueIfUncontrolled = React.useCallback((newValue: boolean) => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n\n return [value, setValueIfUncontrolled];\n}\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 * as React from 'react';\nimport cx from 'classnames';\nimport { useControlled } from '../../hooks/useControlled';\nimport { useFormControl } from '../FormControl/FormControlContext';\nimport { IconButton } from '../IconButton/IconButton';\nimport styles from './SwitchBase.module.scss';\n\ntype Props = React.InputHTMLAttributes & {\n /**\n * If `true`, the `input` element will be focused during the first mount.\n */\n autoFocus?: boolean;\n /**\n * If `true`, the component is checked.\n */\n checked?: boolean;\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: React.ReactElement;\n /**\n * @ignore\n */\n className?: string;\n /**\n * @ignore\n */\n defaultChecked?: boolean;\n /**\n * If `true`, the switch will be disabled.\n */\n disabled?: boolean;\n /**\n * The icon to display when the component is unchecked.\n */\n icon: React.ReactElement;\n /**\n * The id of the `input` element.\n */\n id?: string;\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps?: any;\n /**\n * Pass a ref to the `input` element.\n */\n inputRef?: Function | any;\n /**\n * @ignore\n */\n name?: string;\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n */\n readOnly?: boolean;\n};\n/**\n * @ignore - internal component.\n */\n\nexport const SwitchBase = React.forwardRef(function SwitchBase(props, ref) {\n const {\n autoFocus,\n checked: checkedProp,\n checkedIcon,\n className,\n defaultChecked,\n disabled: disabledProp,\n icon,\n id,\n inputProps,\n inputRef,\n name,\n onBlur,\n onChange,\n onFocus,\n readOnly,\n required,\n tabIndex,\n type,\n value,\n ...other\n } = props;\n const [checked, setCheckedState] = useControlled({\n controlled: checkedProp,\n default: Boolean(defaultChecked),\n name: 'SwitchBase',\n state: 'checked',\n });\n const muiFormControl = useFormControl();\n\n const handleFocus = (event: React.FocusEvent) => {\n if (onFocus) {\n onFocus(event);\n }\n\n if (muiFormControl?.onFocus) {\n muiFormControl.onFocus(event);\n }\n };\n\n const handleBlur = (event: React.FocusEvent) => {\n if (onBlur) {\n onBlur(event);\n }\n\n if (muiFormControl?.onBlur) {\n muiFormControl.onBlur(event);\n }\n };\n\n const handleInputChange = (event: React.ChangeEvent) => {\n const newChecked = event.target.checked;\n // @ts-expect-error refine\n setCheckedState(newChecked);\n\n if (onChange) {\n // @ts-expect-error investigate second argument\n onChange(event, newChecked);\n }\n };\n\n let disabled = disabledProp;\n\n if (muiFormControl) {\n if (typeof disabled === 'undefined') {\n disabled = muiFormControl.disabled;\n }\n }\n\n const hasLabelFor = type === 'checkbox' || type === 'radio';\n return (\n \n \n
\n {checked ? checkedIcon : icon}\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 */\n\n/**\n * Ported from @material-ui/core@4.11.3\n */\n\nimport * as React from 'react';\nimport cx from 'classnames';\nimport { Typography } from '../Typography';\nimport { pascalCase } from '../../utils/pascalCase';\nimport { useFormControl } from '../FormControl/FormControlContext';\nimport styles from './FormControlLabel.module.scss';\n\ntype Props = React.HTMLAttributes & {\n /**\n * If `true`, the component appears selected.\n */\n checked?: boolean;\n /**\n * @ignore\n */\n className?: string;\n /**\n * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.\n */\n control: React.ReactElement;\n /**\n * If `true`, the control will be disabled.\n */\n disabled?: boolean;\n /**\n * Pass a ref to the `input` element.\n */\n inputRef?: React.Ref;\n /**\n * The text to be used in an enclosing label element.\n */\n label?: React.ReactNode;\n /**\n * a11y text needed for screen readers.\n */\n ariaLabel?: string;\n /**\n * The position of the label.\n */\n labelPlacement?: 'bottom' | 'end' | 'start' | 'top';\n /**\n * @ignore\n */\n name?: string;\n /**\n * Callback fired when the state is changed.\n *\n * @param {object} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange?: (event: React.ChangeEvent, checked: boolean) => unknown;\n /**\n * The value of the component.\n */\n value?: any;\n htmlFor?: string;\n};\n\n/**\n * Drop in replacement of the `Radio`, `Switch` and `Checkbox` component.\n * Use this component if you want to display an extra label.\n */\nexport const FormControlLabel = React.forwardRef(function FormControlLabel(\n props,\n ref\n) {\n const {\n checked,\n className,\n control,\n disabled: disabledProp,\n inputRef,\n label,\n ariaLabel,\n labelPlacement = 'end',\n name,\n onChange,\n value,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n let disabled = disabledProp;\n\n if (typeof disabled === 'undefined' && typeof control.props.disabled !== 'undefined') {\n disabled = control.props.disabled;\n }\n\n if (typeof disabled === 'undefined' && muiFormControl) {\n disabled = muiFormControl.disabled;\n }\n\n const controlProps = {};\n Object.keys({\n checked,\n name,\n onChange,\n value,\n inputRef,\n }).forEach((key) => {\n if (\n typeof control.props[key] === 'undefined' &&\n // @ts-expect-error refine type\n typeof props[key] !== 'undefined'\n ) {\n // @ts-expect-error refine type\n controlProps[key] = props[key];\n }\n });\n return (\n // eslint-disable-next-line jsx-a11y/label-has-for -- TODO investigate\n \n {React.cloneElement(control, {\n disabled,\n ...controlProps,\n })}\n \n {label}\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 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';\nimport styles from './styles.module.scss';\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 CountDown = ({ 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 \n {defaultMessage}\n \n ) : (\n \n {' '}\n {formattedAmPmShort.toLowerCase()}\n \n );\n};\n\nexport default CountDown;\n","/**\n * Copyright 2023 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 { useLabels } from '@/hooks/useLabels';\nimport { SmartLink as Link } from '@/utils/smartLink';\nimport styles from './styles.module.scss';\nimport cx from 'classnames';\nimport CountDownV2 from './CountDown';\nimport EstDeliveryDate from '../FulfillmentOptionsV2/EstDeliveryDate';\nimport isToday from 'dayjs/plugin/isToday';\nimport isTommorow from 'dayjs/plugin/isTomorrow';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\ndayjs.extend(isToday);\ndayjs.extend(isTommorow);\n\ntype Props = {\n estDeliveryDateString?: string;\n cutOffDateString: string;\n arrivesByLabel: string;\n displayAmPmFormat: boolean;\n shippingArriveBy?: string;\n // hrs mins if false or null\n styleOverride?: any;\n isCheckoutPage?: boolean;\n isCartPage?: boolean;\n orderByLabel?: string;\n isNdd: boolean;\n};\nconst labels = {\n labels_item_free_delivey: 'label_fulfillment_options_free_delivery',\n label_today: 'label_fulfilment_options_today',\n label_tomorrow: 'label_fulfilment_options_tomorrow',\n label_to_receive_by: 'label_fulfilment_options_to_receive_by',\n label_by: 'label_fulfilment_options_by',\n label_to_receive: 'label_fulfilment_options_to_receive',\n label_order: 'label_fulfilment_options_order',\n label_ndd: 'label_shipping_next_day_delivery',\n label_free_for_orders: 'label_fulfillment_options_free_orders_over_35',\n label_order_within: 'labels_order_within',\n label_learn_more: 'label_learn_more',\n};\n\nexport function OrderWithinHrsMinArrivesMessage({\n estDeliveryDateString,\n cutOffDateString,\n displayAmPmFormat,\n styleOverride,\n isCheckoutPage,\n isCartPage,\n isNdd,\n}: Props) {\n const labelMap = useLabels(labels);\n const cutOffDateTime = dayjs(cutOffDateString);\n const estDeliveryDateTime = dayjs(estDeliveryDateString);\n const showNewFfmText = useMonetateDecisionFlag('displayNewFulfillmentText');\n if (!cutOffDateTime.isValid()) {\n return null;\n }\n const getOrderByNddLabel = () => {\n return (\n \n {labelMap.label_order_within} \n \n \n {' '}\n {!!estDeliveryDateString && (\n \n \n {labelMap.label_to_receive_by}{' '}\n \n \n .\n \n \n )}\n {!showNewFfmText && (\n \n {' '}\n \n {labelMap.label_learn_more}\n \n \n )}\n \n );\n };\n const getOrderBySddLabel = () => {\n return (\n \n {labelMap.label_order}{' '}\n {labelMap.label_by}\n {' '}\n \n {labelMap.label_to_receive}{' '}\n \n \n {estDeliveryDateTime.isToday() && labelMap.label_today}\n {estDeliveryDateTime.isTomorrow() && labelMap.label_tomorrow}\n {'. '}\n \n {(!isCartPage || showNewFfmText) && (\n \n \n {labelMap.label_learn_more}\n \n {'.'}\n \n )}\n \n );\n };\n\n return (\n \n {isNdd && getOrderByNddLabel()}\n {!isNdd && getOrderBySddLabel()}\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 { fulfillmentLabels } from '../../constants/fulfillmentConstants';\nimport type { FulfillmentOption } from '@/types/reduxStore/skuDetails';\nimport styles from './styles.module.scss';\nimport { OrderWithinHrsMinArrivesMessage } from './FulfillmentCutoff';\nimport { Label } from '@/features/i18n';\nimport { useLabel } from '@/hooks/useLabels';\nimport NextImage from '@/components/NextImage';\nimport { nddIcon } from '../../constants/images/nddIcon';\nimport cx from 'classnames';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\n\nexport default function NextDayOption({ option }: { option: FulfillmentOption }) {\n const nddLabel = useLabel('label_ndd_eligible');\n const inStockLabel = useLabel('label_cart_lineItem_InStock');\n const showNewFfmText = useMonetateDecisionFlag('displayNewFulfillmentText');\n\n return (\n <>\n \n {showNewFfmText ? (\n
\n
\n
\n \"\"{' '}\n
\n \n {inStockLabel}\n | \n {option.available &&\n option.estimatedDeliveryDate &&\n option.fullfillmentCutOffDate ? (\n \n ) : (\n {option.availableLabel}\n )}\n \n
\n
\n ) : (\n <>\n
\n \n
\n
\n
\n \n \n
\n {option.available && option.estimatedDeliveryDate && option.fullfillmentCutOffDate ? (\n \n ) : (\n {option.availableLabel}\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 { fulfillmentLabels } from '../../constants/fulfillmentConstants';\nimport styles from './styles.module.scss';\nimport type { FulfillmentOption } from '@/types/reduxStore/skuDetails';\nimport cx from 'classnames';\nimport { useLabels } from '@/hooks/useLabels';\nimport { OrderWithinHrsMinArrivesMessage } from './FulfillmentCutoff';\nimport { SmartLink as Link } from '@/utils/smartLink';\nimport { useRouter } from 'next/router';\nimport { routePaths } from '@/constants/routePaths';\nimport NextImage from '@/components/NextImage';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\n\nconst sddIcon = {\n src: '/images/sddIcon-19-17.svg',\n alt: '',\n};\n\nconst labels = {\n label_sdd_shipping_price: 'label_fulfilment_options_sdd_shipping_price',\n label_today: 'label_fulfilment_options_today',\n label_sdd_promos: 'label_shipping_infoPopper_sdd_promos',\n in_stock_label: 'label_cart_lineItem_InStock',\n};\n\nexport default function SameDayOption({\n option,\n}: {\n option: FulfillmentOption;\n skuId: string | undefined;\n productName: string;\n}) {\n const router = useRouter();\n const labelMap = useLabels(labels);\n const showNewFfmText = useMonetateDecisionFlag('displayNewFulfillmentText');\n const sddText = labelMap.label_sdd_promos.match(/same day delivery/gi)?.[0];\n const isCartPage = router.asPath.includes(routePaths.cart);\n\n return (\n <>\n \n {showNewFfmText ? (\n
\n
\n
\n
\n \"\"{' '}\n
\n \n {labelMap.in_stock_label}\n | \n \n {isCartPage && (\n
\n \n {sddText ? (\n <>\n {labelMap.label_sdd_promos.split(/same day delivery/gi)[0]} {sddText}\n {labelMap.label_sdd_promos.split(/same day delivery/gi)[1]}\n \n ) : (\n {labelMap.label_sdd_promos}\n )}\n \n
\n )}\n
\n
\n
\n
\n ) : (\n <>\n
\n \n
\n
\n
\n \n {option.availableLabel}\n {' '}\n
\n \n {isCartPage && (\n
\n \n {sddText ? (\n <>\n {labelMap.label_sdd_promos.split(/same day delivery/gi)[0]}{' '}\n \n {sddText}\n {' '}\n {labelMap.label_sdd_promos.split(/same day delivery/gi)[1]}\n \n ) : (\n {labelMap.label_sdd_promos}\n )}\n \n
\n )}\n
\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 { storeModalType } from '../../constants/storeModal';\nimport { useLabels } from '@/hooks/useLabels';\nimport styles from './styles.module.scss';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\nimport { useState } from 'react';\nimport { SearchStoreModal } from '../Store/StoreModal/SearchStoreModal';\nimport { MyStoreModal } from '../Store/StoreModal/MyStoreModal';\nimport cx from 'classnames';\nimport logger from '@/utils/logger';\n\ntype ParentProps = {\n available: boolean;\n renderType:\n | typeof storeModalType.myStore\n | typeof storeModalType.searchStore\n | typeof storeModalType.nearByStore;\n skuId?: string;\n productName?: string;\n handleInstockAnalytics?: () => any;\n numberOfSisterStoreAvailable?: number;\n};\ntype ChildProps = {\n isDealDrawer?: boolean;\n itemPresentInCart?: boolean;\n toggleSisterStoreFlyout?: () => void;\n} & ParentProps;\nconst labelMap = {\n lblSelectStore: 'label_DetailsPage_body_SelectStore',\n lblAtNearByStores: 'Label_AtNearByStores',\n lblAtNearByStore: 'Label_AtNearByStore',\n label_AvailableNearYou_SisterStores: 'label_AvailableNearYou_SisterStores',\n label_InStockAt_SisterStores: 'label_fulfilment_options_instock_sister_stores',\n label_PickUpAt_SisterStores: 'label.common.storepickup.instock',\n};\n\nexport default function FulfillmentControlStoreModalV2({\n available,\n renderType,\n handleInstockAnalytics,\n numberOfSisterStoreAvailable,\n toggleSisterStoreFlyout,\n}: ChildProps) {\n const [storeModalOpen, setStoreModalOpen] = useState(false);\n const toggleStoreModal = () => {\n if (renderType === storeModalType.nearByStore) {\n logger.error({\n message: 'NearbyStoreModal was removed',\n meta: {\n source: 'FulfillmentOptionButtonsV2',\n },\n });\n } else {\n setStoreModalOpen((state) => !state);\n }\n };\n\n const { data: storeData } = useStoreDetailsData();\n const storeAddress = storeData?.address1;\n const labels = useLabels(labelMap);\n\n const sisterStores = numberOfSisterStoreAvailable ?? 0;\n const atNearByStoreLabel = sisterStores > 1 ? labels.lblAtNearByStores : labels.lblAtNearByStore;\n const isMyStoreModal = renderType === storeModalType.myStore;\n const isSearchStoreModal = renderType === storeModalType.searchStore;\n const myOrSearchStoreLabel = isMyStoreModal ? storeAddress : labels.lblSelectStore;\n const storeAddressorModalType =\n isMyStoreModal || isSearchStoreModal ? myOrSearchStoreLabel : atNearByStoreLabel;\n\n const availableAtNearbyStores = !available && renderType === storeModalType.nearByStore;\n const label = storeAddressorModalType?.includes('At')\n ? storeAddressorModalType?.replace('At', `${sisterStores}`)\n : storeAddressorModalType;\n return (\n
\n
\n {availableAtNearbyStores && (\n
\n \n {labels.label_PickUpAt_SisterStores.replace(/\\sat\\s*/gi, '')}\n \n {` ${labels.label_PickUpAt_SisterStores.match(/at/gi)}`}\n
\n )}\n {availableAtNearbyStores && ' '}\n {\n e.stopPropagation();\n e.preventDefault();\n e.nativeEvent.stopImmediatePropagation();\n\n if (availableAtNearbyStores) {\n toggleSisterStoreFlyout?.();\n } else {\n toggleStoreModal();\n }\n\n if (handleInstockAnalytics && typeof handleInstockAnalytics == 'function') {\n handleInstockAnalytics();\n }\n }}\n aria-label={storeAddressorModalType as any}\n >\n {label?.toLowerCase()}\n \n\n {storeModalOpen ? (\n <>\n {renderType === storeModalType.searchStore ? (\n \n ) : null}\n {renderType === storeModalType.myStore ? (\n \n ) : null}\n \n ) : null}\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 { useState } from 'react';\nimport { storeModalType } from '../../constants/storeModal';\nimport styles from './styles.module.scss';\nimport FulfillmentControlStoreModalV2 from './FulfillmentControlStoreModalV2';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\nimport { defaultStoreUS } from '@/constants/locale';\nimport type { FulfillmentOption } from '@/types/reduxStore/skuDetails';\nimport { SearchStoreModal } from '../Store/StoreModal/SearchStoreModal';\n\nexport function StorePickupOption({\n option,\n skuId,\n productName,\n handleInstockAnalytics,\n isDealDrawer,\n itemPresentInCart,\n toggleSisterStoreFlyout,\n}: {\n option: FulfillmentOption;\n skuId: string | undefined;\n productName: string;\n handleInstockAnalytics?: () => any;\n isDealDrawer?: boolean;\n itemPresentInCart?: boolean;\n toggleSisterStoreFlyout?: () => void;\n}) {\n const { data: storeData } = useStoreDetailsData();\n const [storeModalOpen, setStoreModalOpen] = useState(false);\n const toggleStoreModal = () => setStoreModalOpen((state: any) => !state);\n const isStoreSet = storeData?.storeNumber !== defaultStoreUS;\n const storeAddress = storeData?.address1;\n if (!isStoreSet) {\n return (\n \n );\n }\n\n const notAvailableClass = option?.sisterStoreAvailable\n ? styles.notAvailablePreferredStore\n : styles.notAvailable;\n const availabilityClass = !option.available ? notAvailableClass : styles.inStock;\n\n const availableLabel = (\n <>\n {option.availableLabel.replace(/\\sat\\s*/gi, '')}\n {` ${option.availableLabel.match(/at/gi)}`}\n {!option.available && (\n {storeAddress?.toLowerCase()}\n )}\n \n );\n\n return (\n <>\n
\n
\n {option.available && (\n
\n \"\"{' '}\n
\n )}\n {\n \n {availableLabel}\n \n }\n
\n\n {option.available && (\n \n <>\n \n \n \n )}\n
\n {option.sisterStoreAvailable && (\n \n )}\n {storeModalOpen ? : null}\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 { FulfillmentOption } from '@/types/reduxStore/skuDetails';\nimport styles from './styles.module.scss';\nimport cx from 'classnames';\nimport NextImage from '@/components/NextImage';\nimport { useLabel, useLabels } from '@/hooks/useLabels';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\nimport {\n checkIfDateIsTomorrow,\n getTomorrowOrDate,\n} from '@/features/shelf/utils/checkIfDateIsTomorrow';\nimport { createFreeGroundDateRange } from '@/features/shelf';\n\nconst stdIcon = {\n src: '/images/stdDeliveryIcon-16-16.svg',\n alt: '',\n};\n\nexport function StandardOption({\n option,\n nddAvailable,\n}: {\n option: FulfillmentOption;\n nddAvailable: boolean | undefined;\n}) {\n const estDeliveryStrings: string[] = option.estimatedDeliveryDate?.split(':');\n const inStockLabel = useLabel('label_cart_lineItem_InStock');\n const showNewFfmText = useMonetateDecisionFlag('displayNewFulfillmentText');\n const labels = useLabels({\n lblTomorrow: 'label_fulfilment_options_tomorrow',\n });\n const isVdpDsUniqueDisplayEnabled = useMonetateDecisionFlag('enableVdpDsUniqueDisplay');\n const showVpdDsAsRange = useMonetateDecisionFlag('showVpdDsAsRange');\n const dateIsARange =\n isVdpDsUniqueDisplayEnabled && showVpdDsAsRange && option.fulfillmentTypeIdOriginal === 103;\n\n if (option.fulfillmentTypeLabel || option.estimatedDeliveryDate) {\n return showNewFfmText ? (\n <>\n {!nddAvailable ? (\n
\n
\n
\n
\n \"\"{' '}\n
\n \n {inStockLabel}\n | \n {estDeliveryStrings && (\n \n \n {estDeliveryStrings[0]}\n {' '}\n \n {dateIsARange\n ? createFreeGroundDateRange(estDeliveryStrings[1])\n : getTomorrowOrDate(\n estDeliveryStrings[1]?.replace(/\\b0/g, ''),\n labels.lblTomorrow\n )}\n \n \n )}\n \n
\n
\n
\n ) : null}\n \n ) : (\n \n
\n \n
\n
\n
\n {option.fulfillmentTypeLabel}\n
\n {estDeliveryStrings && (\n
\n \n {estDeliveryStrings[0]}\n {' '}\n \n {dateIsARange\n ? createFreeGroundDateRange(estDeliveryStrings[1])\n : getTomorrowOrDate(\n estDeliveryStrings[1]?.replace(/\\b0/g, ''),\n labels.lblTomorrow\n )}\n \n
\n )}\n
\n \n );\n }\n\n return null;\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 { useMemo, forwardRef } from 'react';\nimport cx from 'classnames';\nimport azCommonStyles from '../../theme/globals.module.scss';\nimport ContentContainer from '../AZCustomComponent/ContentContainer';\nimport { FULFILLMENT_METHODS } from '../../constants/fulfillmentConstants';\nimport { defaultStoreUS } from '@/constants/locale';\nimport styles from './styles.module.scss';\nimport NextDayOption from './NextDayOption';\nimport SameDayOption from './SameDayOption';\nimport { StorePickupOption } from './StorePickupOption';\nimport { StandardOption } from './StandardOption';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\nimport type { FulfillmentGroup, FulfillmentOption } from '@/types/reduxStore/skuDetails';\nimport { useLabels } from '@/hooks/useLabels';\nimport { ExclamationTriangle, Icon } from '@az/starc-ui';\n\ntype Props = {\n fulfillmentOptionsGroupList: Array;\n itemData?: ItemData;\n skuId: string | undefined;\n productName: string;\n groupId: number;\n handleInstockAnalytics?: () => any;\n isDealDrawer?: boolean;\n itemPresentInCart?: boolean;\n toggleSisterStoreFlyout?: () => void;\n nddOptionAvailable?: boolean;\n nextDayDeliverySelected?: boolean;\n sameDayDeliverySelected?: boolean;\n storePickUpSelected?: boolean;\n};\n\ntype ItemData = {\n shipToHome: boolean;\n itemQuantity: number;\n};\n\nconst labels = {\n label_item_currently_available: 'label_fulfilment_options_item_currently_unavailable',\n};\n\nexport const SubGroupText = forwardRef(function SubGroupText(\n {\n fulfillmentOptionsGroupList,\n itemData,\n skuId,\n productName,\n groupId,\n handleInstockAnalytics,\n isDealDrawer,\n itemPresentInCart,\n toggleSisterStoreFlyout,\n nddOptionAvailable,\n nextDayDeliverySelected,\n sameDayDeliverySelected,\n storePickUpSelected,\n }: Props,\n ref: React.Ref\n) {\n const labelMap = useLabels(labels);\n const { data: storeDetailsData } = useStoreDetailsData();\n const isStoreSet = storeDetailsData?.storeNumber !== defaultStoreUS;\n const isAvailableAtSelectedQty = (option: FulfillmentOption) => {\n // currently itemData will only exists when mounted in mini-cart/cart\n if (itemData?.shipToHome && itemData?.itemQuantity) {\n if (itemData?.itemQuantity > option.availableQty || !option.available) {\n return false;\n }\n }\n\n return option.available;\n };\n\n const homeDeliveryAvailable = (groupFulfillmentOptions: FulfillmentOption[]) => {\n return groupFulfillmentOptions.some(\n (option) => !!option.available && option.fulfillmentTypeId !== FULFILLMENT_METHODS.SAMEDAY\n );\n };\n\n const allFulfillmentOptions = fulfillmentOptionsGroupList.flatMap(\n (group) => group.groupFulfillmentOptions\n );\n\n const optionsToDisplay = getOptionsToDisplay(allFulfillmentOptions);\n\n function getOptionsToDisplay(groupFulfillmentOptions: FulfillmentOption[]) {\n const arrayOfSubGroupOptions: FulfillmentOption[] = [];\n groupFulfillmentOptions.forEach((option) => {\n if (option.fulfillmentTypeId === FULFILLMENT_METHODS.STOREORDER) {\n arrayOfSubGroupOptions.push(option);\n return;\n }\n if (!isAvailableAtSelectedQty(option)) {\n return;\n }\n\n const isSameDayDelivery =\n option.fulfillmentTypeId === FULFILLMENT_METHODS.SAMEDAY &&\n isStoreSet &&\n sameDayDeliverySelected;\n if (isSameDayDelivery || (!sameDayDeliverySelected && !storePickUpSelected)) {\n arrayOfSubGroupOptions.push(option);\n }\n });\n return arrayOfSubGroupOptions;\n }\n\n const renderSwitch = (option: FulfillmentOption) => {\n switch (option.fulfillmentTypeId) {\n case FULFILLMENT_METHODS.STOREORDER:\n return (\n storePickUpSelected &&\n isStoreSet && (\n \n )\n );\n\n case FULFILLMENT_METHODS.NEXTDAY:\n return (nddOptionAvailable || nextDayDeliverySelected) && ;\n\n case FULFILLMENT_METHODS.SAMEDAY:\n return (\n sameDayDeliverySelected && (\n \n )\n );\n\n default:\n return ;\n }\n };\n\n const sisterStoreAvailable = useMemo(() => {\n return allFulfillmentOptions.some((option) => option.sisterStoreAvailable);\n }, [allFulfillmentOptions]);\n\n if (\n groupId === FULFILLMENT_METHODS.ONLINEORDER &&\n !homeDeliveryAvailable(allFulfillmentOptions) &&\n !sameDayDeliverySelected &&\n !storePickUpSelected &&\n !sisterStoreAvailable\n ) {\n return (\n
\n
\n \n
\n {labelMap.label_item_currently_available}\n
\n );\n }\n\n return (\n
\n {optionsToDisplay.map((option: FulfillmentOption) => {\n return (\n \n {renderSwitch(option)}\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 { StoreDetails } from '@/types';\nimport dayjs from 'dayjs';\nimport { useLabels } from '@/hooks/useLabels';\n\ntype Props = {\n storeDetails: StoreDetails | undefined;\n};\n\nconst labelMap = {\n lable_shipping_option_tomorrow: 'label_shipping_Tomorrow',\n label_shipping_option_today: 'label_checkout_bopus_today',\n} as const;\n\nexport default function StorePickupTime({ storeDetails }: Props) {\n const labels = useLabels(labelMap);\n const today = new Date();\n const getWeekDay = today.toLocaleString('default', { weekday: 'long' }) as\n | 'Monday'\n | 'Tuesday'\n | 'Wednesday'\n | 'Thursday'\n | 'Friday'\n | 'Saturday'\n | 'Sunday';\n const storeCloseHour = storeDetails?.storeFullHours[getWeekDay];\n\n const yextClosingTimeFormat = '0:00 pm';\n\n const is24HourStore =\n storeCloseHour?.close === 'Midnight' || storeCloseHour?.close === yextClosingTimeFormat; // 24 hour store for ATG or Yext\n\n const twoHourBefore = new Date().getTime() - 3600000 * 2;\n\n const now = dayjs();\n\n const twoHoursFromNow = dayjs().add(2, 'hour');\n\n const midNightIsInTwoHours = !twoHoursFromNow.isSame(now, 'day');\n\n const shouldShowTodayFor24HourStore = is24HourStore && !midNightIsInTwoHours;\n\n const twoHourBeforeTime = new Date(twoHourBefore)?.toLocaleString('en-US', {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n });\n const getHourAMorPM = today.toLocaleString('default', { hour12: true });\n const closeTime = dayjs(\n new Date(\n `${twoHourBeforeTime} ${\n storeCloseHour?.close === 'Midnight' ? '11:59 PM' : storeCloseHour?.close || ''\n }`\n )\n ).diff(today, 'm');\n\n return shouldShowTodayFor24HourStore ? (\n

\n {labels.label_shipping_option_today}\n

\n ) : getHourAMorPM?.includes('PM') ? (\n String(closeTime).includes('-') ? (\n

{labels.lable_shipping_option_tomorrow}

\n ) : closeTime <= 120 ? (\n

{labels.lable_shipping_option_tomorrow}

\n ) : (\n

{labels.label_shipping_option_today}

\n )\n ) : (\n

{labels.label_shipping_option_today}

\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, { Fragment, useContext, useEffect, useRef, useState } from 'react';\nimport cx from 'classnames';\nimport styles from './styles.module.scss';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useRouter } from 'next/router';\nimport { routePaths } from '@/constants/routePaths';\nimport { cartConstants } from '@/constants/cart';\nimport { FULFILLMENT_METHODS } from '@/constants/fulfillmentConstants';\nimport { Button } from '../Button';\nimport type { FulfillmentGroup, FulfillmentOption } from '@/types/reduxStore/skuDetails';\nimport { SubGroupText } from './SubgroupText';\nimport { useLabels } from '@/hooks/useLabels';\nimport StorePickupTime from './StorePickupTime';\nimport { useIsStoreSelected } from '@/features/header/hooks/useIsStoreSelected';\nimport { useStoreDetailsData } from '@/features/header/api/getStoreDetails';\nimport {\n type FlyoutDataState,\n SisterStoreContext,\n} from '@/features/fulfillment/context/SisterStoreContext';\nimport dayjs from 'dayjs';\nimport { dateFormatterForSTH } from '@/constants/date';\nimport { Text } from '@az/starc-ui';\nimport { SearchStoreModal } from '../Store/StoreModal/SearchStoreModal';\nimport { useMonetateDecisionFlag } from '@/features/kibo/api/getKiboDecision';\nimport { useDeviceDetector } from '@/hooks/useDeviceDetector';\nimport {\n checkIfDateIsTomorrow,\n generateGetItTimePhrase,\n getTomorrowOrDate,\n} from '@/features/shelf/utils/checkIfDateIsTomorrow';\nimport { createFreeGroundDateRange } from '@/features/shelf';\nimport { type ShippingType } from '@/features/fulfillment';\nimport { determineOptionsToDisplayButtons } from '@/features/fulfillment/api/optionsToDisplay';\n\nexport type FulfillmentOptionButtonsV2Props = {\n itemData?: ItemData;\n fulfillmentOptionsGroupList: Array;\n changeShippingType: (\n shippingType: typeof cartConstants.STOREORDER | typeof cartConstants.ONLINEORDER,\n groupId: typeof FULFILLMENT_METHODS.STOREORDER | typeof FULFILLMENT_METHODS.ONLINEORDER,\n maxAvailableQty: number,\n sisterStoreAvailable: boolean,\n fulfillmentTypeId?: number,\n fulfillmentTypeIdOriginal?: number\n ) => void;\n shippingType: ShippingType;\n skuId: string | undefined;\n productName: string;\n sisterStoreAvailable?: boolean;\n handleInstockAnalytics?: () => any;\n isDealDrawer?: boolean;\n itemPresentInCart?: boolean;\n quantityInCart: number;\n price?: number;\n isCart?: boolean;\n count?: number;\n fulfillmentId: number;\n sddQuantity?: number;\n nddQuantity?: number;\n disableRemoveButton?: boolean;\n productId?: string;\n};\ntype ItemData = {\n shipToHome: boolean;\n itemQuantity: number;\n};\n\nconst labelMap = {\n label_next_day: 'label_fulfilment_options_next_day',\n label_same_Day: 'label_fulfilment_options_same_day',\n label_get_it: 'label_fulfilment_options_get_it',\n label_tomorrow: 'label_fulfilment_options_tomorrow',\n label_today: 'label_fulfilment_options_today',\n label_sdd_shipping_price: 'label_fulfilment_options_sdd_shipping_price',\n label_free: 'label_fulfilment_options_free',\n label_free_over_35: 'label_fulfillment_options_free_over_35_v2',\n label_home_delivery: 'label_fulfilment_options_home_delivery',\n label_not_available: 'label_fulfilment_options_not_available',\n label_not_available_near_you: 'label_fulfilment_options_not_available_near_you',\n label_ready: 'label_fulfilment_options_ready',\n label_available_near_you: 'label_fulfilment_options_available_near_you',\n label_instore_pickup: 'label_fulfilment_options_instore_pickup',\n label_get_it_by: 'label_fulfilment_options_get_it_by',\n label_fulfillment_options_over_35: 'label_fulfillment_options_over_35',\n label_fulfillment_select_store: 'label_fulfillment_select_store',\n label_fulfillment_availability: 'label_fulfillment_availability',\n label_shipping_express_delivery: 'label_shipping_express_delivery',\n label_shipping_ground_delivery: 'label_shipping_ground_delivery',\n label_fulfilment_options_get_it_by: 'label_fulfilment_options_get_it_by',\n label_fulfilment_options_get_it: 'label_fulfilment_options_get_it',\n};\n\nexport function FulfillmentOptionButtonsV2({\n changeShippingType,\n fulfillmentOptionsGroupList,\n productName,\n shippingType,\n skuId,\n itemData,\n handleInstockAnalytics,\n isDealDrawer,\n itemPresentInCart,\n isCart = false,\n quantityInCart,\n count = 0,\n fulfillmentId,\n sddQuantity,\n nddQuantity,\n disableRemoveButton,\n productId,\n}: FulfillmentOptionButtonsV2Props) {\n const labels = useLabels(labelMap);\n const { platform } = useDeviceDetector();\n const subGroupRefs = fulfillmentOptionsGroupList?.map(() => ({ ref: React.createRef() }));\n const isBopusNewMsgApplicable = useFeatureFlag('IS_BOPUS_MSG_AVAILABLE_US') === 'true';\n const router = useRouter();\n const showNewFfmText = useMonetateDecisionFlag('displayNewFulfillmentText');\n const [storeModalOpen, setStoreModalOpen] = useState(false);\n const toggleStoreModal = () => setStoreModalOpen((state) => !state);\n const isStoreSelected = useIsStoreSelected();\n const [storePickUpSelected, setStorePickUpSelected] = useState(\n shippingType === cartConstants.STOREORDER\n );\n const [homeDeliverySelected, setHomeDeliverySelected] = useState(\n shippingType === cartConstants.ONLINEORDER && fulfillmentId !== FULFILLMENT_METHODS.SAMEDAY\n );\n const homeDeliveryButtonRef = useRef(null);\n const [sameDayDeliverySelected, setSameDayDeliverySelected] = useState(\n shippingType === cartConstants.ONLINEORDER && fulfillmentId === FULFILLMENT_METHODS.SAMEDAY\n );\n const { data: storeDetails } = useStoreDetailsData();\n const refAriaLiveTag = useRef(null);\n const { toggleSisterStoreFlyout: toggleFlyout, isSisterStoreFlyoutOpen } =\n useContext(SisterStoreContext);\n\n const toggleSisterStoreFlyout = () => {\n const flyoutData: FlyoutDataState = {\n skuId: skuId ?? '',\n shippingType: shippingType,\n quantityInCart: quantityInCart,\n productDetails: itemData,\n };\n if (productId) {\n flyoutData.productDetails = {\n ...itemData,\n productInfo: {\n productId,\n },\n };\n }\n toggleFlyout(flyoutData);\n };\n\n const isVdpDsUniqueDisplayEnabled = useMonetateDecisionFlag('enableVdpDsUniqueDisplay');\n const showVdpDsShippingCost = useMonetateDecisionFlag('showVdpDsShippingCost');\n const showVpdDsAsRange = useMonetateDecisionFlag('showVpdDsAsRange');\n\n const [firstButton, secondButton, thirdButton] = determineOptionsToDisplayButtons(\n fulfillmentOptionsGroupList\n );\n\n const addAriaLiveText = () => {\n if (refAriaLiveTag.current) {\n if (refAriaLiveTag.current.textContent === 'selected') {\n setTimeout(() => {\n if (refAriaLiveTag.current) {\n refAriaLiveTag.current.innerHTML = 'selected.';\n }\n }, 50);\n } else {\n setTimeout(() => {\n if (refAriaLiveTag.current) {\n refAriaLiveTag.current.innerHTML = 'selected';\n }\n }, 50);\n }\n }\n };\n\n const sisterStoreAvailable = (item: FulfillmentGroup) =>\n item.groupFulfillmentOptions.find((group) => group.groupId === FULFILLMENT_METHODS.STOREORDER)\n ?.sisterStoreAvailable ?? false;\n\n const handleClickStoreOrder = (item: FulfillmentGroup) => {\n const isSisterStoreAvailable = sisterStoreAvailable(item);\n if (!isStoreSelected) {\n toggleStoreModal();\n return null;\n }\n if (\n (optionChecked(FULFILLMENT_METHODS.STOREORDER) && !isSisterStoreAvailable) ||\n disableRemoveButton\n ) {\n return null;\n }\n if (item.available || (router.pathname === '/products/[...slug]' && isSisterStoreAvailable)) {\n addAriaLiveText();\n if (!isSisterStoreFlyoutOpen) {\n changeShippingType(\n cartConstants.STOREORDER,\n item.groupId,\n item.maxAvailableQty,\n sisterStoreAvailable(item),\n FULFILLMENT_METHODS.STOREORDER,\n firstButton?.fulfillmentTypeIdOriginal\n );\n\n setStorePickUpSelected(true);\n setHomeDeliverySelected(false);\n setSameDayDeliverySelected(false);\n }\n } else if (isSisterStoreAvailable) {\n addAriaLiveText();\n if (item.groupId === FULFILLMENT_METHODS.STOREORDER && router.pathname === routePaths.cart) {\n toggleSisterStoreFlyout();\n }\n }\n };\n\n const handleClickHomeDelivery = (item: FulfillmentGroup) => {\n if (\n fulfillmentId === FULFILLMENT_METHODS.NEXTDAY ||\n fulfillmentId === FULFILLMENT_METHODS.ONLINEORDER ||\n disableRemoveButton\n ) {\n return null;\n }\n if (item.available) {\n addAriaLiveText();\n const fulfillmentId = nddOptionAvailable(item.groupFulfillmentOptions)\n ? FULFILLMENT_METHODS.NEXTDAY\n : FULFILLMENT_METHODS.ONLINEORDER;\n\n changeShippingType(\n cartConstants.ONLINEORDER,\n item.groupId,\n fulfillmentId && fulfillmentId === FULFILLMENT_METHODS.NEXTDAY\n ? nddQuantity!\n : item.maxAvailableQty,\n sisterStoreAvailable(item),\n fulfillmentId,\n secondButton?.fulfillmentTypeIdOriginal\n );\n\n setStorePickUpSelected(false);\n setHomeDeliverySelected(true);\n setSameDayDeliverySelected(false);\n }\n };\n\n const handleClickSameDayDelivery = (item: FulfillmentGroup) => {\n if (fulfillmentId === FULFILLMENT_METHODS.SAMEDAY || disableRemoveButton) {\n return null;\n }\n\n if (item.available) {\n addAriaLiveText();\n changeShippingType(\n cartConstants.ONLINEORDER,\n item.groupId,\n sddQuantity!,\n sisterStoreAvailable(item),\n FULFILLMENT_METHODS.SAMEDAY,\n thirdButton?.fulfillmentTypeIdOriginal\n );\n\n setStorePickUpSelected(false);\n setHomeDeliverySelected(false);\n setSameDayDeliverySelected(true);\n }\n };\n\n const nddOptionAvailable = (groupFulfillmentOptions: FulfillmentOption[]) => {\n return groupFulfillmentOptions.some((option) => {\n if (option.fulfillmentTypeId === FULFILLMENT_METHODS.NEXTDAY && option.available) {\n return isCart ? option.availableQty >= quantityInCart : option.availableQty >= count;\n }\n return false;\n });\n };\n const isNddAvailable = nddOptionAvailable(\n fulfillmentOptionsGroupList.flatMap((group) => group.groupFulfillmentOptions)\n );\n\n const sddOptionAvailable = (groupFulfillmentOptions: FulfillmentOption[]) => {\n return groupFulfillmentOptions.some((option) => {\n if (option.fulfillmentTypeId === FULFILLMENT_METHODS.SAMEDAY && option.available) {\n return isCart ? option.availableQty >= quantityInCart : option.availableQty >= count;\n }\n return false;\n });\n };\n\n const standardDeliveryAvailable = (groupFulfillmentOptions: FulfillmentOption[]) => {\n return groupFulfillmentOptions.some((option) => {\n if (\n (option.fulfillmentTypeId === FULFILLMENT_METHODS.ONLINEORDER ||\n option.fulfillmentTypeId === FULFILLMENT_METHODS.CUSTOMIZEDSKU) &&\n option.available\n ) {\n return isCart ? option.availableQty >= quantityInCart : option.availableQty >= count;\n }\n return false;\n });\n };\n\n const getEstimatedDeliveryText = (fulFillmentOptions: FulfillmentOption[]) => {\n return fulFillmentOptions\n .map((option) => {\n if (\n option.fulfillmentTypeId === FULFILLMENT_METHODS.ONLINEORDER ||\n option.fulfillmentTypeId === FULFILLMENT_METHODS.CUSTOMIZEDSKU\n ) {\n return option.estimatedDeliveryDate?.split(':');\n }\n })\n .filter((item) => {\n return item !== undefined;\n });\n };\n\n const checkIfVdpDsFulfillmentIsAvailable = (groupFulfillmentOptions: FulfillmentOption[]) => {\n const isAvailable = groupFulfillmentOptions.some((option) => {\n if (option.fulfillmentTypeIdOriginal === 103 && option.available) {\n return true;\n }\n return false;\n });\n return isAvailable;\n };\n\n const findVdpDsFulfillmentOption = (groupFulfillmentOptions: FulfillmentOption[]) => {\n const fulfillment = groupFulfillmentOptions.find(\n (option) => option.fulfillmentTypeIdOriginal === 103\n );\n return fulfillment;\n };\n\n const getHomeDeliveryButtonTopContent = (item: {\n groupLabel: any;\n groupFulfillmentOptions: FulfillmentOption[];\n }) => {\n const vdpDsIsAvailable = checkIfVdpDsFulfillmentIsAvailable(item.groupFulfillmentOptions);\n\n if (vdpDsIsAvailable && isVdpDsUniqueDisplayEnabled && !isNddAvailable) {\n const vdpDsType = showVpdDsAsRange ? 'ground' : 'express';\n\n if (vdpDsType === 'ground') {\n const [, delivery] = labels.label_shipping_ground_delivery.split(' ');\n return delivery;\n }\n return labels.label_shipping_express_delivery;\n }\n return labels.label_home_delivery;\n };\n const getHomeDeliveryButtonSubContent = (\n item: {\n groupLabel: any;\n groupFulfillmentOptions: FulfillmentOption[];\n },\n hideButton: boolean\n ) => {\n const prioritizeNddMessage = nddOptionAvailable(item.groupFulfillmentOptions);\n const prioritizeStandardDeliveryMessage =\n !nddOptionAvailable(item.groupFulfillmentOptions) &&\n standardDeliveryAvailable(item.groupFulfillmentOptions);\n const vdpDsFulfillmentIsAvailable = checkIfVdpDsFulfillmentIsAvailable(\n item.groupFulfillmentOptions\n );\n\n if (isVdpDsUniqueDisplayEnabled && vdpDsFulfillmentIsAvailable && !isNddAvailable) {\n const vdpDsOption = findVdpDsFulfillmentOption(item.groupFulfillmentOptions);\n const vdpDsType = showVpdDsAsRange ? 'ground' : 'express';\n if (vdpDsType === 'ground') {\n return (\n \n \n {`${labels.label_fulfilment_options_get_it} `}\n \n {`${createFreeGroundDateRange(vdpDsOption?.estimatedDeliveryDate)} `}\n \n \n \n {labels.label_free}\n \n \n );\n }\n\n if (vdpDsType === 'express') {\n const { getItPhrase, formattedDate } = generateGetItTimePhrase({\n labels: {\n lblTomorrow: labels.label_tomorrow,\n lblGetIt: labels.label_fulfilment_options_get_it,\n lblGetItBy: labels.label_get_it_by,\n },\n estimatedDeliveryDate: String(vdpDsOption?.estimatedDeliveryDate),\n });\n\n if (showVdpDsShippingCost) {\n return (\n <>\n \n {getItPhrase}\n {formattedDate}\n \n\n \n {'$4.99'} \n \n \n );\n } else {\n return (\n <>\n \n {getItPhrase}\n \n

{formattedDate}

\n
\n \n \n );\n }\n }\n }\n\n switch (true) {\n case prioritizeNddMessage:\n const nddEstDeliveryDateString = item.groupFulfillmentOptions.find(\n (option) => option.fulfillmentTypeId === FULFILLMENT_METHODS.NEXTDAY\n )?.estimatedDeliveryDate;\n const estDeliveryDateTime = dayjs(nddEstDeliveryDateString);\n return (\n <>\n \n {labels.label_get_it}\n \n {checkIfDateIsTomorrow(nddEstDeliveryDateString ?? '') ? (\n

{labels.label_tomorrow}

\n ) : (\n

\n {estDeliveryDateTime.format(dateFormatterForSTH.weekDayMonthAndDay)}\n

\n )}\n
\n \n\n \n \n {labels.label_free}{' '}\n \n \n {labels.label_fulfillment_options_over_35}\n \n \n \n );\n\n case prioritizeStandardDeliveryMessage:\n const estDeliveryDate = getEstimatedDeliveryText(item.groupFulfillmentOptions);\n const hasDateRange =\n estDeliveryDate?.[0]?.[1]?.includes('-') || estDeliveryDate?.[1]?.[1]?.includes('-');\n const estimatedDeliveryDateDisplay =\n estDeliveryDate?.[0]?.[1]?.replace(/\\b0/g, '') ||\n estDeliveryDate?.[1]?.[1]?.replace(/\\b0/g, '');\n\n return (\n <>\n \n {hasDateRange ? labels.label_get_it : labels.label_get_it_by}\n \n

\n {getTomorrowOrDate(estimatedDeliveryDateDisplay ?? '', labels.label_tomorrow)}\n

\n \n \n \n );\n default:\n return (\n <>\n \n {labels.label_not_available}\n \n \n );\n }\n };\n\n const optionChecked = (id: number) => {\n return fulfillmentId === id;\n };\n\n const getSameDayDeliveryButtonSubContent = (\n item: {\n groupFulfillmentOptions: FulfillmentOption[];\n },\n disabledButton: boolean\n ) => {\n const startingAt = labels.label_sdd_shipping_price.match(/starting at/i)?.[0] ?? '';\n const price = labels.label_sdd_shipping_price.substring(startingAt.length);\n return sddOptionAvailable(item.groupFulfillmentOptions) ? (\n <>\n \n {labels.label_get_it}\n \n

{labels.label_today}

\n \n \n \n {startingAt}\n {price}\n \n \n ) : (\n <>\n \n {labels.label_not_available}\n \n \n );\n };\n\n const getStorePickupButtonSubContent = (\n item: { available: boolean; groupFulfillmentOptions: FulfillmentOption[] },\n disableButton: boolean\n ) => {\n const availableInSisterStores =\n !item.available &&\n Array.isArray(item.groupFulfillmentOptions) &&\n item.groupFulfillmentOptions[0]?.sisterStoreAvailable;\n const availableinSetStore = item.available;\n const notAvailable = !item.available && Array.isArray(item.groupFulfillmentOptions);\n const notAvailableatSisterStores =\n !item.available &&\n Array.isArray(item.groupFulfillmentOptions) &&\n !item.groupFulfillmentOptions[0]?.sisterStoreAvailable;\n switch (true) {\n case !isStoreSelected:\n return (\n \n \n {labels.label_fulfillment_select_store}\n \n {labels.label_fulfillment_availability} \n \n );\n case availableinSetStore:\n return (\n \n \n {labels.label_ready}\n \n \n \n \n \n {labels.label_free}\n \n \n );\n case availableInSisterStores:\n return (\n <>\n \n {showNewFfmText\n ? `${item.groupFulfillmentOptions[0].numberOfSisterStoreAvailable} nearby store${\n item.groupFulfillmentOptions[0].numberOfSisterStoreAvailable! > 1 ? 's' : ''\n }`\n : labels.label_available_near_you}\n \n \n {labels.label_free}\n \n \n );\n case notAvailable:\n return (\n \n {notAvailableatSisterStores\n ? labels.label_not_available_near_you\n : labels.label_not_available}\n \n );\n }\n };\n\n useEffect(() => {\n const homeDeliveryButton = homeDeliveryButtonRef.current;\n if (platform !== 'ios' || !homeDeliveryButton) {\n return;\n }\n\n // trigger a reflow whenever the count updates to avoid button content glitching\n homeDeliveryButton.style.display = 'inline-flex';\n const timeoutId = setTimeout(() => {\n homeDeliveryButton.style.display = '';\n }, 0);\n\n return () => clearTimeout(timeoutId);\n }, [count, platform]);\n\n return (\n
\n
\n
\n {fulfillmentOptionsGroupList.map((item) => {\n const optionChecked = (id: number) => {\n return router.route === '/cart'\n ? fulfillmentId === id && item.selected\n : fulfillmentId === id;\n };\n const sisterStoreAvailable =\n Array.isArray(item.groupFulfillmentOptions) &&\n item.groupFulfillmentOptions[0]?.sisterStoreAvailable;\n\n const disabled =\n item.groupId === FULFILLMENT_METHODS.ONLINEORDER\n ? (!nddOptionAvailable(item.groupFulfillmentOptions) &&\n !standardDeliveryAvailable(item.groupFulfillmentOptions)) ||\n !item.available\n : !sisterStoreAvailable && !item.available;\n let disableButton = isBopusNewMsgApplicable\n ? disabled && (item.groupId !== FULFILLMENT_METHODS.STOREORDER || isStoreSelected)\n : !item.available &&\n (item.groupId !== FULFILLMENT_METHODS.STOREORDER || isStoreSelected);\n let disabledSameDayButton = isBopusNewMsgApplicable\n ? !sddOptionAvailable(item.groupFulfillmentOptions)\n : true;\n if (item.groupId === FULFILLMENT_METHODS.ONLINEORDER) {\n return (\n \n handleClickHomeDelivery(item)}\n reference={homeDeliveryButtonRef}\n >\n \n {getHomeDeliveryButtonTopContent(item)}\n \n {getHomeDeliveryButtonSubContent(item, disableButton)}\n \n\n handleClickSameDayDelivery(item)}\n >\n \n {labels.label_same_Day}\n \n {getSameDayDeliveryButtonSubContent(item, disabledSameDayButton)}\n \n \n );\n }\n\n if (item.groupId === FULFILLMENT_METHODS.STOREORDER) {\n const isButtonSelected = isCart\n ? optionChecked(FULFILLMENT_METHODS.STOREORDER) && !sisterStoreAvailable\n : optionChecked(FULFILLMENT_METHODS.STOREORDER);\n return (\n handleClickStoreOrder(item)}\n >\n \n {labels.label_instore_pickup}\n \n {getStorePickupButtonSubContent(item, disableButton)}\n \n );\n }\n })}\n
\n\n {fulfillmentOptionsGroupList.map((item, buttonIndex) => {\n const defaultCheckedGroup =\n shippingType === cartConstants.STOREORDER\n ? FULFILLMENT_METHODS.STOREORDER\n : FULFILLMENT_METHODS.ONLINEORDER;\n return (\n item.groupFulfillmentOptions &&\n item.groupId === defaultCheckedGroup && (\n \n group.groupFulfillmentOptions)\n )}\n nextDayDeliverySelected={optionChecked(FULFILLMENT_METHODS.NEXTDAY)}\n sameDayDeliverySelected={optionChecked(FULFILLMENT_METHODS.SAMEDAY)}\n storePickUpSelected={optionChecked(FULFILLMENT_METHODS.STOREORDER)}\n />\n
\n )\n );\n })}\n {storeModalOpen && !isStoreSelected && (\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 */\n\n/**\n * Ported from @material-ui/core@4.11.3\n */\n\nimport * as React from 'react';\nimport cx from 'classnames';\nimport { pascalCase } from '../../utils/pascalCase';\nimport styles from './Typography.module.scss';\n\ntype Variant =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'subtitle1'\n | 'subtitle2'\n | 'body1'\n | 'body2'\n | 'caption'\n | 'button'\n | 'overline'\n | 'srOnly'\n | 'inherit';\n\ntype Props1 = {\n onBlur: (event: React.FocusEvent) => void;\n onFocus: (event: React.FocusEvent) => void;\n onMouseEnter: (event: React.MouseEvent) => void;\n onMouseLeave?: (event: React.MouseEvent) => void;\n} & Props;\n\ntype Props2 = {\n onBlur: (event: React.FocusEvent) => void;\n onMouseLeave: (event: React.MouseEvent) => void;\n} & Props;\n\ntype Props3 = {\n onFocus: (event: React.FocusEvent) => void;\n onMouseEnter: (event: React.MouseEvent) => void;\n} & Props;\n\ntype Props = {\n /**\n * Set the text-align on the component.\n */\n align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n /**\n * @ignore\n */\n className?: string;\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color?:\n | 'initial'\n | 'inherit'\n | 'primary'\n | 'secondary'\n | 'textPrimary'\n | 'textSecondary'\n | 'error';\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n * Overrides the behavior of the `variantMapping` prop.\n */\n component?: React.ElementType;\n /**\n * Controls the display type\n */\n display?: 'initial' | 'block' | 'inline';\n /**\n * If `true`, the text will have a bottom margin.\n */\n gutterBottom?: boolean;\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n */\n noWrap?: boolean;\n /**\n * If `true`, the text will have a bottom margin.\n */\n paragraph?: boolean;\n /**\n * Label for screen readers.\n */\n ariaLabel?: string;\n /**\n * Applies the theme typography styles.\n */\n variant?: Variant;\n /**\n * The component maps the variant prop to a range of different HTML element types.\n * For instance, subtitle1 to `
`.\n * If you wish to change that mapping, you can provide your own.\n * Alternatively, you can use the `component` prop.\n */\n variantMapping?: { [key in Variant]: string };\n id?: string;\n 'aria-haspopup'?: string;\n onKeyDown?: (event: React.KeyboardEvent) => void;\n onClick?: (event: React.MouseEvent) => void;\n tabIndex?: string;\n};\n\n// @ts-expect-error refine type\nconst defaultVariantMapping: { [key in Variant]: string } = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n subtitle1: 'h6',\n subtitle2: 'h6',\n body1: 'p',\n body2: 'p',\n};\n\nexport const Typography = React.forwardRef(\n function Typography(props, ref) {\n const {\n align = 'inherit',\n className,\n color = 'initial',\n component,\n display = 'initial',\n gutterBottom = false,\n noWrap = false,\n paragraph = false,\n variant = 'body1',\n variantMapping = defaultVariantMapping,\n id,\n ariaLabel,\n ...other\n } = props;\n const Component =\n component ||\n (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) ||\n 'span';\n return (\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 itemDetail = {\n dealIcon: {\n src: '/images/dealAppliedCheck.svg',\n alt: 'deal applied',\n },\n giftCard: {\n src: '/images/gift-card.svg',\n },\n green: {\n src: '/images/vehicle/green.svg',\n alt: 'green car icon',\n },\n red: {\n src: '/images/vehicle/red.svg',\n alt: 'red car icon',\n },\n info: {\n src: '/images/info.svg',\n alt: 'info',\n },\n downArrow: {\n src: '/images/down-arrow.svg',\n alt: 'expand',\n },\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\",\"warningMessage\":\"az_wUb\",\"warningTextStyles\":\"az_xUb\",\"warningTextCart\":\"az_yUb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"root\":\"az_I0b\",\"inputFocus\":\"az_J0b\",\"input\":\"az_K0b\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"root\":\"az_Kmb\",\"disabled\":\"az_Lmb\",\"labelPlacementStart\":\"az_Mmb\",\"labelPlacementTop\":\"az_Nmb\",\"labelPlacementBottom\":\"az_Omb\",\"label\":\"az_Pmb\"};","// 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\",\"fulfilmentGroup\":\"az_ZNb\",\"fulfillmentOptionCardsContainer\":\"az__Nb\",\"subgroup\":\"az_aOb\",\"bopusCard\":\"az_bOb\",\"sthCard\":\"az_cOb\",\"buttonSubtextStyles\":\"az_dOb\",\"selectStoreStyles\":\"az_eOb\",\"estDeliveryTextContainerStyles\":\"az_fOb\",\"homeDeliveryUnavailable\":\"az_gOb\",\"homeDeliveryAvailable\":\"az_hOb\",\"bopusAvailableTextContainer\":\"az_iOb\",\"readyToday\":\"az_jOb\",\"successText\":\"az_kOb\",\"deliveryTodayOrTomorrow\":\"az_lOb\",\"deliveryMessageCapitalized\":\"az_mOb\",\"storeTimeMargin\":\"az_nOb\",\"freeText\":\"az_oOb\",\"freeTextUppercase\":\"az_pOb\",\"nddFree\":\"az_qOb\",\"threeSplit\":\"az_rOb\",\"activeButtonStyles\":\"az_sOb\",\"disabledText\":\"az_tOb\",\"disabledStyles\":\"az_uOb\",\"buttonCommonStyles\":\"az_vOb\",\"v2ButtonStyles\":\"az_wOb\",\"v2ButtonShadow\":\"az_xOb\",\"cartButtonPadding\":\"az_yOb\",\"hiddenAriaLiveTag\":\"az_zOb\",\"applyMargins\":\"az_AOb\",\"subgroupContainer\":\"az_BOb\",\"searchStoreButton\":\"az_COb\",\"subTextBold\":\"az_DOb\",\"subtext\":\"az_EOb\",\"shippingOptionDetailV3\":\"az_FOb\",\"cartAdditionalMessageText\":\"az_GOb\",\"sddOrderByLabel\":\"az_HOb\",\"nddOrderByLabel\":\"az_IOb\",\"deliveryMessage\":\"az_JOb\",\"successBoldedMessage\":\"az_KOb\",\"estDeliveryText\":\"az_LOb\",\"listItemContainer\":\"az_MOb\",\"unsetHeight\":\"az_NOb\",\"listItemDetails\":\"az_OOb\",\"listItemHeader\":\"az_POb\",\"nextDayHeader\":\"az_QOb\",\"sameDayHeader\":\"az_ROb\",\"inStockLabel\":\"az_SOb\",\"tickmarkContainer\":\"az_TOb\",\"inStockLabelContainer\":\"az_UOb\",\"NextDaylistItemContainer\":\"az_VOb\",\"storePickUpContainer\":\"az_WOb\",\"divider\":\"az_XOb\",\"notAvailable\":\"az_YOb\",\"notAvailableIconContainer\":\"az_ZOb\",\"selectStoreBtn\":\"az__Ob\",\"storePickupAvailability\":\"az_aPb\",\"storeLink\":\"az_bPb\",\"notAvailablePreferredStore\":\"az_cPb\",\"storeDetails\":\"az_dPb\",\"sisterStoreDetails\":\"az_ePb\",\"lowercase\":\"az_fPb\",\"inStock\":\"az_gPb\",\"inStockSisterStoreContainer\":\"az_hPb\",\"greenText\":\"az_iPb\",\"capitalize\":\"az_jPb\",\"skeletonLoading\":\"az_kPb\",\"desktopBoldText\":\"az_lPb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"root\":\"az_NXb\",\"body2\":\"az_OXb\",\"body1\":\"az_PXb\",\"caption\":\"az_QXb\",\"button\":\"az_RXb\",\"h1\":\"az_SXb\",\"h2\":\"az_TXb\",\"h3\":\"az_UXb\",\"h4\":\"az_VXb\",\"h5\":\"az_WXb\",\"h6\":\"az_XXb\",\"subtitle1\":\"az_YXb\",\"subtitle2\":\"az_ZXb\",\"overline\":\"az__Xb\",\"srOnly\":\"az_aYb\",\"alignLeft\":\"az_bYb\",\"alignCenter\":\"az_cYb\",\"alignRight\":\"az_dYb\",\"alignJustify\":\"az_eYb\",\"noWrap\":\"az_fYb\",\"gutterBottom\":\"az_gYb\",\"paragraph\":\"az_hYb\",\"colorInherit\":\"az_iYb\",\"colorPrimary\":\"az_jYb\",\"colorSecondary\":\"az_kYb\",\"colorTextPrimary\":\"az_lYb\",\"colorTextSecondary\":\"az_mYb\",\"colorError\":\"az_nYb\",\"displayInline\":\"az_oYb\",\"displayBlock\":\"az_pYb\"};"],"names":["labelMap","label_max_quantity_sdd","label_max_quantity_ndd","label_max_quantity_hd","label_quantity_exceeded_ndd","label_max_quantity_bopus","label_deliverymethod_unavailable","MaxQuantityNotificationBlock","props","labels","useLabels","data","storeDetails","useStoreDetailsData","previousStoreNumber","usePrevious","storeNumber","selectedFulfillmentID","nddQuantity","sddQuantity","selectedQuantity","availableQuantity","messageIsNotification","checkAvailability","message","FULFILLMENT_METHODS","SAMEDAY","NEXTDAY","ONLINEORDER","STOREORDER","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","NotificationBlock","customClasses","styles","type","itemLevel","jsxs","div","className","Icon","svg","Warning","color","size","p","SwitchBase","React","ref","autoFocus","checked","checkedProp","checkedIcon","defaultChecked","disabled","disabledProp","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","value","other","setCheckedState","useControlled","param","controlled","default","defaultProp","state","current","isControlled","undefined","valueState","setValue","setValueIfUncontrolled","newValue","Boolean","muiFormControl","useFormControl","jsx_runtime","IconButton","component","cx","role","event","input","hasLabelFor","newChecked","target","FormControlLabel","control","label","ariaLabel","labelPlacement","controlProps","Object","forEach","key","concat","pascalCase","aria-label","_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_7__","_","Typography","dayjs","duration","generateRemainingTime","toDate","diff","FulfillmentOptionButtons_CountDown","amPm","isCheckoutPage","labelHrs","useLabel","fulfillmentLabels","label_shipping_hrs","labelMinutes","label_shipping_min","labelAnd","label_shipping_and","checkoutV3US","useFeatureFlag","timeRemaining","setTimeRemaining","useState","useEffect","setInterval","clearInterval","formattedAmPmShort","format","dayjsFormats","timeOnly","days","hours","minutes","sumHours","Math","floor","hoursRemainingMessage","minutesRemainingMessage","hoursMinutesRemainingMessage","defaultMessage","isAfter","span","data-testid","toLowerCase","isToday","isTommorow","labels_item_free_delivey","label_today","label_tomorrow","label_to_receive_by","label_by","label_to_receive","label_order","label_ndd","label_free_for_orders","label_order_within","label_learn_more","OrderWithinHrsMinArrivesMessage","estDeliveryDateString","cutOffDateString","displayAmPmFormat","styleOverride","isCartPage","isNdd","cutOffDateTime","estDeliveryDateTime","showNewFfmText","useMonetateDecisionFlag","isValid","style","strong","CountDownV2","isTomorrow","EstDeliveryDate","estimatedDeliveryDate","Link","to","NextDayOption","option","nddLabel","inStockLabel","Fragment","img","src","alt","available","fullfillmentCutOffDate","arrivesByLabel","label_shipping_cutoff_hrsmin_tail","shippingArriveBy","label_shipping_arriveBy","availableLabel","NextImage","nddIcon","height","width","Label","sddIcon","label_sdd_shipping_price","label_sdd_promos","in_stock_label","SameDayOption","router","useRouter","sddText","match","asPath","includes","routePaths","cart","orderByLabel","label_shipping_cutoff_ampm_head","label_shipping_cutoff_ampm_tail","split","lblSelectStore","lblAtNearByStores","lblAtNearByStore","label_AvailableNearYou_SisterStores","label_InStockAt_SisterStores","label_PickUpAt_SisterStores","FulfillmentControlStoreModalV2","renderType","handleInstockAnalytics","numberOfSisterStoreAvailable","toggleSisterStoreFlyout","storeModalOpen","setStoreModalOpen","toggleStoreModal","storeModalType","nearByStore","logger","error","meta","source","storeData","storeAddress","address1","sisterStores","atNearByStoreLabel","isMyStoreModal","myStore","isSearchStoreModal","searchStore","myOrSearchStoreLabel","storeAddressorModalType","availableAtNearbyStores","replace","Button","variant","customClass","onClick","e","stopPropagation","preventDefault","nativeEvent","stopImmediatePropagation","SearchStoreModal","closeStoreModal","MyStoreModal","StorePickupOption","skuId","productName","isDealDrawer","itemPresentInCart","isStoreSet","defaultStoreUS","notAvailableClass","sisterStoreAvailable","availabilityClass","stdIcon","StandardOption","estDeliveryStrings","nddAvailable","lblTomorrow","isVdpDsUniqueDisplayEnabled","showVpdDsAsRange","dateIsARange","fulfillmentTypeIdOriginal","fulfillmentTypeLabel","checkIfDateIsTomorrow","createFreeGroundDateRange","getTomorrowOrDate","label_item_currently_available","SubGroupText","forwardRef","fulfillmentOptionsGroupList","itemData","groupId","nddOptionAvailable","nextDayDeliverySelected","sameDayDeliverySelected","storePickUpSelected","storeDetailsData","isAvailableAtSelectedQty","shipToHome","itemQuantity","availableQty","allFulfillmentOptions","flatMap","group","groupFulfillmentOptions","optionsToDisplay","getOptionsToDisplay","arrayOfSubGroupOptions","fulfillmentTypeId","push","isSameDayDelivery","renderSwitch","useMemo","some","map","ContentContainer","azCommonStyles","ExclamationTriangle","lable_shipping_option_tomorrow","label_shipping_option_today","StorePickupTime","today","Date","getWeekDay","toLocaleString","weekday","storeCloseHour","storeFullHours","is24HourStore","close","twoHourBefore","getTime","now","twoHoursFromNow","add","midNightIsInTwoHours","isSame","twoHourBeforeTime","_this","year","month","day","getHourAMorPM","hour12","closeTime","shouldShowTodayFor24HourStore","String","label_next_day","label_same_Day","label_get_it","label_free","label_free_over_35","label_home_delivery","label_not_available","label_not_available_near_you","label_ready","label_available_near_you","label_instore_pickup","label_get_it_by","label_fulfillment_options_over_35","label_fulfillment_select_store","label_fulfillment_availability","label_shipping_express_delivery","label_shipping_ground_delivery","label_fulfilment_options_get_it_by","label_fulfilment_options_get_it","FulfillmentOptionButtonsV2","changeShippingType","shippingType","isCart","quantityInCart","count","fulfillmentId","disableRemoveButton","productId","platform","useDeviceDetector","subGroupRefs","isBopusNewMsgApplicable","isStoreSelected","useIsStoreSelected","setStorePickUpSelected","cartConstants","homeDeliverySelected","setHomeDeliverySelected","homeDeliveryButtonRef","useRef","setSameDayDeliverySelected","refAriaLiveTag","toggleFlyout","isSisterStoreFlyoutOpen","useContext","SisterStoreContext","flyoutData","productDetails","_object_spread_props","_object_spread","productInfo","showVdpDsShippingCost","firstButton","secondButton","thirdButton","determineOptionsToDisplayButtons","addAriaLiveText","textContent","setTimeout","innerHTML","item","find","handleClickStoreOrder","isSisterStoreAvailable","optionChecked","pathname","maxAvailableQty","handleClickHomeDelivery","handleClickSameDayDelivery","isNddAvailable","sddOptionAvailable","standardDeliveryAvailable","CUSTOMIZEDSKU","getEstimatedDeliveryText","fulFillmentOptions","filter","checkIfVdpDsFulfillmentIsAvailable","isAvailable","findVdpDsFulfillmentOption","fulfillment","getHomeDeliveryButtonTopContent","vdpDsIsAvailable","vdpDsType","delivery","getHomeDeliveryButtonSubContent","hideButton","estDeliveryDate","prioritizeNddMessage","prioritizeStandardDeliveryMessage","vdpDsFulfillmentIsAvailable","vdpDsOption","getItPhrase","formattedDate","generateGetItTimePhrase","lblGetIt","lblGetItBy","nddEstDeliveryDateString","dateFormatterForSTH","weekDayMonthAndDay","hasDateRange","estimatedDeliveryDateDisplay","getSameDayDeliveryButtonSubContent","disabledButton","startingAt","price","substring","length","getStorePickupButtonSubContent","disableButton","availableInSisterStores","Array","isArray","availableinSetStore","notAvailable","notAvailableatSisterStores","Text","decoration","attributes","homeDeliveryButton","display","timeoutId","clearTimeout","route","selected","disabledSameDayButton","aria-roledescription","reference","isButtonSelected","buttonIndex","defaultCheckedGroup","defaultVariantMapping","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","align","gutterBottom","noWrap","paragraph","variantMapping","Component","itemDetail","dealIcon","giftCard","green","red","info","downArrow","module","exports"],"sourceRoot":""}