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rJ,CAAAA,EAAAA,EAAAA,CAAAA,EAAesJ,GAE9CC,EACJT,GAAeU,SAlBaC,CAAkB,CAAEC,CAAkB,EACpE,IAAMC,EAA0BC,IAAAA,KAAY,CAACA,IAAAA,MAAa,CAACH,IACrDI,EAA8BD,IAAAA,KAAY,CAACA,IAAAA,MAAa,CAACF,IAE/D,OACEC,GACAE,GACAD,IAAAA,GAAU,CAACD,EAAyBE,EAExC,EASmCT,EAAmBC,GACpD,OAAOE,CACT,mJCnBO,IAAMjJ,oBAAsB,KACjC,IAAMmI,EAA0BC,CAAAA,EAAAA,EAAAA,CAAAA,EAA2B,uCACrD,CAAEI,YAAAA,CAAW,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,EAAAA,IAAcC,KAAK,CACrCpB,EAAW1H,CAAAA,EAAAA,EAAAA,CAAAA,MAAgBC,EAAAA,EAAYA,CAACC,EAAE,CAE1C0J,EAAwB9J,SAAAA,CAAAA,EAAAA,EAAAA,CAAAA,EAAe,4BACvCD,EAAmBC,SAAAA,CAAAA,EAAAA,EAAAA,CAAAA,EAAe,8BAExC,EACS8J,GAAyB,CAAC,CAACrB,EAG7BqB,GAA0B,EAAClC,GAAY7H,CAAAA,CAChD,qBCxBAgK,EAAAC,OAAA,EAAkB,ofCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/AZCustomComponent/LoadingIndicator/index.tsx","webpack://_N_E/./src/components/SignInModalV2/index.tsx","webpack://_N_E/./src/features/account/context/account_view_context.tsx","webpack://_N_E/./src/features/account/context/create_account_context.tsx","webpack://_N_E/./src/features/account/context/notification_context.tsx","webpack://_N_E/./src/features/account/context/rewards_context.tsx","webpack://_N_E/./src/hooks/useIsOtpFeatureEnabled.tsx","webpack://_N_E/./src/hooks/useIsValidMobileAppVersion.tsx","webpack://_N_E/./src/hooks/useStreamLineSignIn.tsx","webpack://_N_E/./src/components/AZCustomComponent/LoadingIndicator/styles.module.scss","webpack://_N_E/./src/components/SignInModalV2/styles.module.scss","webpack://_N_E/"],"sourcesContent":["/**\n * Copyright 2019 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport React from 'react';\nimport styles from './styles.module.scss';\nimport { Spinner } from '../Spinner';\n\ntype LoadingIndicatorProps = {\n size?: number;\n};\n\nexport const LoadingIndicator = ({ size }: LoadingIndicatorProps) => {\n return ;\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 { useContext, useEffect, useRef, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { Modal, type ModalProps, View } from '@az/starc-ui';\nimport { type ReduxState } from '../../types';\nimport { localStorage } from '@/utils/localStorage';\nimport { useMediaQuery } from '@/hooks/useMediaQuery';\nimport styles from './styles.module.scss';\nimport { SignInFlowTypeContext } from '../SignInFlowTypeContext';\nimport { useLabels } from '@/hooks/useLabels';\nimport { useIsOtpFeatureEnabled } from '@/hooks/useIsOtpFeatureEnabled';\nimport { useHeaderData } from '@/features/header/api/getHeader';\nimport { useRouter } from 'next/router';\nimport dynamic from 'next/dynamic';\nimport { LoadingIndicator } from '@/components/AZCustomComponent/LoadingIndicator';\nimport {\n AccountViewProvider,\n AccountNotificationProvider,\n CreateAccountProvider,\n CreateAccountContext,\n RewardsProvider,\n AccountNotificationContext,\n} from '@/features/account';\nimport { AccountViewContext } from '@/features/account/context/account_view_context';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { routePaths } from '@/constants/routePaths';\nimport type { TabIndexes } from './interface';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { useStreamLineSignIn } from '@/hooks/useStreamLineSignIn';\nimport { sessionStorage } from '@/utils/sessionStorage';\n\nexport default function SignInModalV2({\n isOpen,\n onClose,\n activeTab,\n setActiveTab,\n autoSubmitEmail,\n id,\n showHeaderAndFooter,\n}: Props) {\n const router = useRouter();\n return (\n \n \n \n \n \n \n \n );\n}\n\nconst LazyModalBody = dynamic(\n () => import('./components/ModalBody/ModalBody').then((mod) => mod.ModalBody),\n {\n ssr: false,\n loading: () => (\n \n \n \n ),\n }\n);\n\ntype Props = {\n isOpen: boolean;\n showHeaderAndFooter?: boolean;\n onClose(): void;\n activeTab: TabIndexes;\n setActiveTab: (a: TabIndexes) => void;\n id?: string;\n autoSubmitEmail?: string;\n};\n\ntype Size = ModalProps['size'];\n\nconst LABEL_KEYS = {\n forgotPassword: 'label_forgot_password_capitalized',\n label_MyAccountLanding_Rewards_Welcome: 'label_MyAccountLanding_Rewards_Welcome',\n label_streamline_signin_create_rewards_account: 'label_streamline_signin_create_rewards_account',\n label_streamline_signin_join_az_rewards: 'label_streamline_signin_join_az_rewards',\n label_close_modal: 'label_close_streamline_modal',\n label_back: 'label_back',\n} as const;\n\nfunction SignInModalV2Inner({\n isOpen,\n onClose,\n activeTab,\n setActiveTab,\n id,\n showHeaderAndFooter,\n autoSubmitEmail,\n}: Props) {\n const { flowType, setFlowTypeFn, setRewardsStateFn } = useContext(SignInFlowTypeContext);\n const { view, setView, reset, setUserName, setAutoSubmitEmail } = useContext(AccountViewContext);\n const { reset: resetCreateAccount } = useContext(CreateAccountContext);\n const { onClose: onCloseNotification } = useContext(AccountNotificationContext);\n const isMobile = useMediaQuery((theme) => theme.breakpoints.down('sm'));\n const isTablet = useMediaQuery((theme) => theme.breakpoints.down('md'));\n const [changeFlowType, setChangeFlowType] = useState();\n const modalWidth = isTablet ? '542px' : '540px';\n const [closeButtonTitle, setCloseButtonTitle] = useState();\n const labels = useLabels(LABEL_KEYS);\n const CLOSE_BUTTON_TEXT = 'modal dialog close';\n const isTabletRewards = flowType === 'rewardsEnterId' && isTablet;\n const isFullScreenModal = isMobile || isTabletRewards;\n const deviceType = useSelector(({ appData }: ReduxState) => appData.deviceType);\n const otpFeatureEnabled = useIsOtpFeatureEnabled(); // TODO: update override in definition\n const [showModalBody, setShowModalBody] = useState(isOpen);\n const newSignInEnabled = useFeatureFlag('NEW_SIGN_IN_ENABLED') === 'true';\n const isMX = useLocale() === countryCodes.mx;\n const isStreamLineSignInEnabled = useStreamLineSignIn();\n const switchType = newSignInEnabled ? view : flowType;\n const tabletHorizontalPadding = otpFeatureEnabled ? 45 / 4 : 103 / 4;\n const { refetch: refetchHeaderData } = useHeaderData();\n const router = useRouter();\n const autoSubmittedEmail = useRef(false);\n\n if (autoSubmitEmail && !autoSubmittedEmail.current) {\n setAutoSubmitEmail(true);\n autoSubmittedEmail.current = true;\n setUserName(autoSubmitEmail);\n }\n\n const paddingBottom = () => {\n const starcModalContentPaddingPixels = 8;\n const mobileBrowserNavigationPixels = 54;\n const isPhone = deviceType === 'phone';\n\n if (isPhone) {\n return `${40 + mobileBrowserNavigationPixels - starcModalContentPaddingPixels}px`;\n } else {\n return '0px';\n }\n };\n\n useEffect(() => {\n switch (flowType) {\n case 'password':\n setCloseButtonTitle(\n `${labels.label_MyAccountLanding_Rewards_Welcome} ${CLOSE_BUTTON_TEXT}`\n );\n return;\n case 'forgotPassword':\n case 'resetPasswordEmailSent':\n setCloseButtonTitle(`${labels.forgotPassword} ${CLOSE_BUTTON_TEXT}`);\n return;\n case 'manualCreateAccount':\n setCloseButtonTitle(\n `${labels.label_streamline_signin_create_rewards_account} ${CLOSE_BUTTON_TEXT}`\n );\n return;\n case 'rewardsEnterId':\n setCloseButtonTitle(\n `${labels.label_streamline_signin_join_az_rewards} ${CLOSE_BUTTON_TEXT}`\n );\n return;\n default:\n setCloseButtonTitle(\n isMX && isStreamLineSignInEnabled\n ? labels.label_close_modal\n : `${labels.label_streamline_signin_join_az_rewards} ${CLOSE_BUTTON_TEXT}`\n );\n return;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [flowType]);\n\n useEffect(() => {\n let timeout: NodeJS.Timeout | undefined;\n const MODAL_HIDE_DELAY = 300;\n\n if (isOpen) {\n localStorage.setItem('signInModalSelectedTab', ['signIn', 'createAccount'][activeTab]);\n sessionStorage.setItem('signInModalOpened', 'true');\n setShowModalBody(true);\n } else {\n timeout = setTimeout(() => setShowModalBody(false), MODAL_HIDE_DELAY);\n }\n\n return () => {\n clearTimeout(timeout);\n };\n }, [isOpen, activeTab]);\n\n const handleChangeTab = (activeTabIndex: TabIndexes) => setActiveTab(activeTabIndex);\n\n const flowTypeRef = useRef('login');\n useEffect(() => {\n flowTypeRef.current = flowType;\n }, [flowType]);\n\n const triggerDelayedSnackBar = () => {\n document.dispatchEvent(new CustomEvent('delayedSignInSnackBar', {}));\n localStorage.removeItem('delaySignInSnackBar');\n };\n\n const handleCloseModal = async () => {\n triggerDelayedSnackBar();\n if (\n flowTypeRef.current === 'signInOrCreateNewPW' ||\n ['keep_current_password', 'create_new_password'].includes(view)\n ) {\n if ([routePaths.cart, routePaths.rewardsLandingPage].includes(router.route)) {\n router.reload();\n return;\n }\n await refetchHeaderData();\n }\n onClose();\n setTimeout(() => {\n setView('login');\n reset();\n onCloseNotification();\n resetCreateAccount();\n setRewardsStateFn('initial');\n setChangeFlowType('login');\n setFlowTypeFn('login');\n resetFlagsHandler();\n }, 500);\n };\n\n const headerColorValue = isMobile && flowType !== 'rewardsEnterId' ? 'primary' : 'secondary';\n\n const resetFlagsHandler = () => setChangeFlowType(undefined);\n\n const handleOnClick = () => {\n onCloseNotification();\n switch (switchType) {\n case 'login':\n return (window.location.href = '/');\n case 'password':\n case 'sms_otp_code':\n case 'auto_sms_otp_code':\n case 'auto_email_otp_code':\n case 'email_otp_code':\n setFlowTypeFn('login');\n setView('login');\n reset();\n setChangeFlowType('login');\n break;\n case 'validate_otp_code_sms':\n setView('sms_otp_code');\n break;\n case 'validate_otp_code':\n setView('email_otp_code');\n break;\n case 'auto_validate_sms_otp_code':\n setView('auto_sms_otp_code');\n break;\n case 'auto_validate_email_otp_code':\n setView('auto_email_otp_code');\n break;\n case 'forgotPassword':\n setFlowTypeFn('password');\n break;\n case 'forgot_password':\n setView('password');\n break;\n case 'forgot_password_sms':\n setView('password');\n break;\n case 'validate_forgot_password':\n setView('forgot_password');\n break;\n case 'validate_forgot_password_sms':\n setView('forgot_password_sms');\n break;\n case 'resetPassword':\n setFlowTypeFn('password');\n break;\n case 'manualCreateAccount':\n setFlowTypeFn('login');\n setChangeFlowType('login');\n break;\n case 'create_account':\n setView('login');\n reset();\n resetCreateAccount();\n break;\n case 'rewardsEnterId':\n setFlowTypeFn('manualCreateAccount');\n setChangeFlowType('manualCreateAccount');\n setRewardsStateFn('initial');\n break;\n default:\n window.location.href = '/';\n break;\n }\n };\n\n const showBackButton = () => {\n if (newSignInEnabled) {\n switch (view) {\n case 'login':\n case 'create_new_password':\n case 'auto_create_new_password':\n case 'keep_current_password':\n return false;\n default:\n return true;\n }\n }\n return (\n isFullScreenModal &&\n ((flowType === 'password' && !otpFeatureEnabled) ||\n flowType === 'manualCreateAccount' ||\n flowType === 'rewardsEnterId')\n );\n };\n\n const [modalSize, setModalSize] = useState();\n\n useEffect(() => {\n let s: Size, m: Size, l: Size;\n s = 'full';\n m = undefined;\n l = undefined;\n if (flowType === 'rewardsEnterId') {\n m = 'full';\n }\n setModalSize({ s, m, l });\n }, [flowType]);\n\n return (\n \n \n \n {isOpen || showModalBody ? (\n \n ) : null}\n \n \n \n );\n}\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { SignInFlowTypeContext } from '@/components/SignInFlowTypeContext';\nimport {\n type Dispatch,\n type ReactNode,\n type SetStateAction,\n createContext,\n useContext,\n useState,\n} from 'react';\n\nexport type Views =\n | 'login'\n | 'password'\n | 'create_account'\n | 'email_otp_code'\n | 'sms_otp_code'\n | 'validate_otp_code'\n | 'validate_otp_code_sms'\n | 'forgot_password'\n | 'forgot_password_sms'\n | 'validate_forgot_password'\n | 'validate_forgot_password_sms'\n | 'keep_current_password'\n | 'auto_sms_otp_code'\n | 'auto_email_otp_code'\n | 'auto_validate_email_otp_code'\n | 'auto_validate_sms_otp_code'\n | 'auto_create_new_password'\n | 'create_new_password';\n\ntype AccountViewProviderType = {\n view: Views;\n userName: string;\n autoSubmitEmail: boolean;\n maskedEmail: string;\n userMaskedPhoneNumber: string;\n loading: boolean;\n disableSignIn: boolean;\n showHeaderAndFooter: boolean;\n openEmailSent: boolean;\n isModal: boolean;\n loginFlow: string;\n rememberMe: boolean;\n showFieldLevelValidation: boolean;\n isResendCode: boolean;\n setView: Dispatch>;\n setUserName: Dispatch>;\n setAutoSubmitEmail: Dispatch>;\n setUserMaskedPhoneNumber: Dispatch>;\n setLoading: Dispatch>;\n setDisableSignIn: Dispatch>;\n setShowHeaderAndFooter: Dispatch>;\n setOpenEmailSent: Dispatch>;\n setIsModal: Dispatch>;\n setLoginFlow: Dispatch>;\n setRememberMe: Dispatch>;\n setShowFieldLevelValidation: Dispatch>;\n setMaskedEmail: Dispatch>;\n onCloseModal: VoidFunction | undefined;\n setIsResendCode: Dispatch>;\n\n reset: () => void;\n};\n\nexport const AccountViewContext = createContext(\n {} as AccountViewProviderType\n);\n\ntype AccountViewProviderProps = {\n showHeaderAndFooterProp: boolean;\n onCloseModal: VoidFunction | undefined;\n children: ReactNode;\n};\n\nexport function AccountViewProvider({\n onCloseModal,\n showHeaderAndFooterProp,\n children,\n}: AccountViewProviderProps) {\n const { onCloseNotification } = useContext(SignInFlowTypeContext);\n\n const [view, setView] = useState('login');\n const [userName, setUserName] = useState('');\n const [autoSubmitEmail, setAutoSubmitEmail] = useState(false);\n const [maskedEmail, setMaskedEmail] = useState('');\n const [userMaskedPhoneNumber, setUserMaskedPhoneNumber] = useState('');\n const [loading, setLoading] = useState(false);\n const [disableSignIn, setDisableSignIn] = useState(true);\n const [showHeaderAndFooter, setShowHeaderAndFooter] = useState(showHeaderAndFooterProp);\n const [openEmailSent, setOpenEmailSent] = useState(false);\n const [isModal, setIsModal] = useState(false);\n const [showFieldLevelValidation, setShowFieldLevelValidation] = useState(false);\n const [loginFlow, setLoginFlow] = useState('');\n const [rememberMe, setRememberMe] = useState(true);\n const [isResendCode, setIsResendCode] = useState(false);\n\n function reset() {\n onCloseNotification();\n setAutoSubmitEmail(false);\n setLoading(false);\n setDisableSignIn(true);\n setIsResendCode(false);\n }\n\n return (\n \n {children}\n \n );\n}\n\nexport default AccountViewProvider;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type Dispatch, type ReactNode, type SetStateAction, createContext, useState } from 'react';\n\ntype Errors = {\n first_name: boolean;\n last_name: boolean;\n zip_code: boolean;\n phone_number: boolean;\n password: boolean;\n};\n\ntype CreateAccountProviderType = {\n firstName: string;\n lastName: string;\n zipCode: string;\n phoneNumber: string;\n password: string;\n errors: Errors;\n rewardsId: string;\n maskedRewardsId: string;\n rewardsLinkingId: string;\n setFirstName: Dispatch>;\n setLastName: Dispatch>;\n setZipCode: Dispatch>;\n setPhoneNumber: Dispatch>;\n setPassword: Dispatch>;\n setErrors: Dispatch>;\n setRewardsId: Dispatch>;\n setMaskedRewardsId: Dispatch>;\n setRewardsLinkingId: Dispatch>;\n reset: () => void;\n};\n\nexport const CreateAccountContext = createContext(\n {} as CreateAccountProviderType\n);\n\ntype AccountViewProviderProps = {\n children: ReactNode;\n};\n\nexport function CreateAccountProvider({ children }: AccountViewProviderProps) {\n const [firstName, setFirstName] = useState('');\n const [lastName, setLastName] = useState('');\n const [zipCode, setZipCode] = useState('');\n const [phoneNumber, setPhoneNumber] = useState('');\n const [password, setPassword] = useState('');\n const [errors, setErrors] = useState({\n first_name: false,\n last_name: false,\n zip_code: false,\n phone_number: false,\n password: false,\n });\n const [rewardsId, setRewardsId] = useState('');\n const [maskedRewardsId, setMaskedRewardsId] = useState('');\n const [rewardsLinkingId, setRewardsLinkingId] = useState('');\n\n function reset() {\n setFirstName('');\n setLastName('');\n setZipCode('');\n setPhoneNumber('');\n setRewardsId('');\n setMaskedRewardsId('');\n setRewardsLinkingId('');\n }\n\n return (\n \n {children}\n \n );\n}\n\nexport default CreateAccountProvider;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport { type Dispatch, type ReactNode, type SetStateAction, createContext, useState } from 'react';\n\ntype AccountNotificationProviderType = {\n show: boolean;\n setShow: Dispatch>;\n title: string;\n setTitle: Dispatch>;\n text: string;\n setText: Dispatch>;\n type: NotificationType;\n setType: Dispatch>;\n onClose: () => void;\n};\n\nexport const AccountNotificationContext = createContext(\n {} as AccountNotificationProviderType\n);\n\ntype AccountNotificationProviderProps = {\n children: ReactNode;\n};\n\ntype NotificationType =\n | 'info'\n | 'success'\n | 'error'\n | 'warning'\n | 'high-alert'\n | 'snack-bar'\n | 'custom';\n\nexport function AccountNotificationProvider({ children }: AccountNotificationProviderProps) {\n const [show, setShow] = useState(false);\n const [title, setTitle] = useState('');\n const [text, setText] = useState('');\n const [type, setType] = useState('info');\n\n function onClose() {\n setShow(false);\n setTitle('');\n setText('');\n setType('info');\n }\n\n return (\n \n {children}\n \n );\n}\n\nexport default AccountNotificationProvider;\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\nimport {\n type Dispatch,\n type ReactNode,\n type SetStateAction,\n createContext,\n useState,\n useContext,\n} from 'react';\nimport { CreateAccountContext } from './create_account_context';\nimport { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\n\ntype SelectedCustomer = {\n maskedRewardsId: string;\n rewardsLinkingId: string;\n custLookupRewardsLinkingId: string;\n emailAddress: string;\n};\n\ntype RewardsProviderType = {\n openRewardsFindId: boolean;\n openRewardsEnterId: boolean;\n ready: boolean;\n selectedCustomer: SelectedCustomer;\n showRewardsOptions: boolean;\n showRewardsId: boolean;\n setOpenRewardsFindId: Dispatch>;\n setOpenRewardsEnterId: Dispatch>;\n setReady: Dispatch>;\n setSelectedCustomer: Dispatch>;\n onClose: () => void;\n};\n\nexport const RewardsContext = createContext({} as RewardsProviderType);\n\ntype RewardsProviderProps = {\n children: ReactNode;\n};\n\nexport function RewardsProvider({ children }: RewardsProviderProps) {\n const isMxSite = useLocale() === countryCodes.mx;\n const [openRewardsFindId, setOpenRewardsFindId] = useState(false);\n const [openRewardsEnterId, setOpenRewardsEnterId] = useState(false);\n const [ready, setReady] = useState(false);\n const { rewardsId, maskedRewardsId } = useContext(CreateAccountContext);\n const showRewardsOptions = isMxSite || !!maskedRewardsId || !!rewardsId;\n const showRewardsId = !maskedRewardsId && !rewardsId;\n const [selectedCustomer, setSelectedCustomer] = useState({\n maskedRewardsId: '',\n rewardsLinkingId: '',\n custLookupRewardsLinkingId: '',\n emailAddress: '',\n });\n\n function onClose() {\n setOpenRewardsFindId(false);\n setReady(false);\n }\n\n return (\n \n {children}\n \n );\n}\n\nexport default RewardsProvider;\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 { useLocale } from '@/hooks/useLocale';\nimport { countryCodes } from '@/constants/locale';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useAppState } from '@/stores/AppState';\nimport { useIsValidMobileAppVersion } from '@/hooks/useIsValidMobileAppVersion';\nimport { useStreamLineSignIn } from './useStreamLineSignIn';\n\n/**Returns a single value to enable or disable OTP feature(s):\n *- Feature is enabled by `OTP_ENABLED` global config\n *- If DIY App and OTP is enabled for DIY App by `OTP_ENABLED_APP` global config\n *- US Only by locale\n *\n *This function always returns true IFF the server is running in development environment\n *\n * TODO: Remove the if block once OTP feature is delivered\n *\n * @returns boolean value of the conditions above\n */\nexport const useIsOtpFeatureEnabled = () => {\n const isValidMobileAppVersion = useIsValidMobileAppVersion('MOBILE_APP_STREAMLINED_FLOW_VERSION');\n const locale = useLocale();\n const isUS = locale === countryCodes.enUS;\n const isMX = locale === countryCodes.mx;\n const { isMobileApp } = useAppState().state;\n\n const isOtpFeatureEnabled = useFeatureFlag('OTP_ENABLED') === 'true';\n\n const isOtpFeatureEnabledForMobileApp = useFeatureFlag('OTP_ENABLED_APP') === 'true';\n const isStreamlineSigninEnabled = useStreamLineSignIn();\n\n // Note: this is experimental and we may revert this in the future\n if (process.env.NODE_ENV === 'development') {\n return true;\n }\n\n return (\n isOtpFeatureEnabled &&\n (isUS || (isStreamlineSigninEnabled && isMX)) &&\n ((isMobileApp && isOtpFeatureEnabledForMobileApp && !!isValidMobileAppVersion) || !isMobileApp)\n );\n};\n","/**\n * Copyright 2024 AutoZone, Inc.\n * Content is confidential to and proprietary information of AutoZone, Inc., its\n * subsidiaries and affiliates.\n */\n\nimport semver from 'semver';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useAppState } from '@/stores/AppState';\nimport { type GlobalConfig } from '@/features/globalConfig';\n\nexport function compareVersions(appVersion: string, minVersion: string): boolean | string | null {\n const isMobileAppVersionValid = semver.valid(semver.coerce(appVersion)); // x.x.x format only\n const isMinimumMobileVersionValid = semver.valid(semver.coerce(minVersion)); // x.x.x format only\n // Use semver's gte function to check if isMobileAppVersionValid is greater than or equal to isMinimumMobileVersionValid\n return (\n isMobileAppVersionValid &&\n isMinimumMobileVersionValid &&\n semver.gte(isMobileAppVersionValid, isMinimumMobileVersionValid)\n );\n}\n\nexport const useIsValidMobileAppVersion = (\n flagWithVersionNumber: keyof GlobalConfig\n): boolean | string | null => {\n let { mobileAppVersion, isMobileApp } = useAppState().state;\n let mobileAppStreamlineFlowVersion = useFeatureFlag(flagWithVersionNumber);\n\n const isValid =\n isMobileApp && compareVersions(mobileAppVersion!, mobileAppStreamlineFlowVersion as string);\n return isValid;\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 { countryCodes } from '@/constants/locale';\nimport { useFeatureFlag } from '@/features/globalConfig';\nimport { useLocale } from '@/hooks/useLocale';\nimport { useAppState } from '@/stores/AppState';\nimport { useIsValidMobileAppVersion } from '@/hooks/useIsValidMobileAppVersion';\n\nexport const useStreamLineSignIn = () => {\n const isValidMobileAppVersion = useIsValidMobileAppVersion('MOBILE_APP_STREAMLINED_FLOW_VERSION');\n const { isMobileApp } = useAppState().state;\n const isMxSite = useLocale() === countryCodes.mx;\n\n const isSignInV2EnabledFlag = useFeatureFlag('ENABLE_STREAMLINE_SIGNIN') === 'true';\n const newSignInEnabled = useFeatureFlag('NEW_SIGN_IN_ENABLED') === 'true';\n\n if (isMobileApp) {\n return isSignInV2EnabledFlag && !!isValidMobileAppVersion;\n }\n\n return isSignInV2EnabledFlag && (!isMxSite || newSignInEnabled);\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\",\"loadingIndicator\":\"az_TJ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"signInModalV2\":\"az_yw\"};"],"names":["LoadingIndicator","size","param","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Spinner","className","styles","SignInModalV2","isOpen","onClose","activeTab","setActiveTab","autoSubmitEmail","id","showHeaderAndFooter","router","useRouter","AccountViewProvider","showHeaderAndFooterProp","route","onCloseModal","AccountNotificationProvider","CreateAccountProvider","SignInModalV2Inner","LazyModalBody","dynamic","Promise","all","__webpack_require__","e","then","bind","mod","ModalBody","ssr","loading","View","direction","align","justify","attributes","style","flex","LABEL_KEYS","forgotPassword","label_MyAccountLanding_Rewards_Welcome","label_streamline_signin_create_rewards_account","label_streamline_signin_join_az_rewards","label_close_modal","label_back","flowType","setFlowTypeFn","setRewardsStateFn","useContext","SignInFlowTypeContext","view","setView","reset","setUserName","setAutoSubmitEmail","AccountViewContext","resetCreateAccount","CreateAccountContext","onCloseNotification","AccountNotificationContext","isMobile","useMediaQuery","theme","breakpoints","down","isTablet","changeFlowType","setChangeFlowType","useState","closeButtonTitle","setCloseButtonTitle","labels","useLabels","CLOSE_BUTTON_TEXT","isTabletRewards","isFullScreenModal","deviceType","useSelector","appData","otpFeatureEnabled","useIsOtpFeatureEnabled","showModalBody","setShowModalBody","newSignInEnabled","useFeatureFlag","isMX","useLocale","countryCodes","mx","isStreamLineSignInEnabled","useStreamLineSignIn","switchType","tabletHorizontalPadding","refetch","refetchHeaderData","useHeaderData","autoSubmittedEmail","useRef","current","useEffect","concat","timeout","localStorage","setItem","sessionStorage","setTimeout","clearTimeout","flowTypeRef","triggerDelayedSnackBar","document","dispatchEvent","CustomEvent","removeItem","handleCloseModal","includes","routePaths","cart","rewardsLandingPage","reload","resetFlagsHandler","headerColorValue","undefined","modalSize","setModalSize","m","s","l","RewardsProvider","Modal","headerColor","maxWidth","maxHeight","overflowY","height","margin","paddingBottom","open","hasCloseButton","hasHeaderBackButton","showBackButton","backButtonTitle","onBackClick","window","location","href","width","padding","onChangeTab","activeTabIndex","resetFlags","createContext","children","userName","maskedEmail","setMaskedEmail","userMaskedPhoneNumber","setUserMaskedPhoneNumber","setLoading","disableSignIn","setDisableSignIn","setShowHeaderAndFooter","openEmailSent","setOpenEmailSent","isModal","setIsModal","showFieldLevelValidation","setShowFieldLevelValidation","loginFlow","setLoginFlow","rememberMe","setRememberMe","isResendCode","setIsResendCode","Provider","value","__webpack_exports__","ZP","firstName","setFirstName","lastName","setLastName","zipCode","setZipCode","phoneNumber","setPhoneNumber","password","setPassword","errors","setErrors","first_name","last_name","zip_code","phone_number","rewardsId","setRewardsId","maskedRewardsId","setMaskedRewardsId","rewardsLinkingId","setRewardsLinkingId","show","setShow","title","setTitle","text","setText","type","setType","RewardsContext","isMxSite","openRewardsFindId","setOpenRewardsFindId","openRewardsEnterId","setOpenRewardsEnterId","ready","setReady","selectedCustomer","setSelectedCustomer","custLookupRewardsLinkingId","emailAddress","showRewardsOptions","showRewardsId","isValidMobileAppVersion","useIsValidMobileAppVersion","locale","isUS","enUS","isMobileApp","useAppState","state","isOtpFeatureEnabled","isOtpFeatureEnabledForMobileApp","isStreamlineSigninEnabled","mobileAppVersion","mobileAppStreamlineFlowVersion","flagWithVersionNumber","isValid","compareVersions","appVersion","minVersion","isMobileAppVersionValid","semver","isMinimumMobileVersionValid","isSignInV2EnabledFlag","module","exports"],"sourceRoot":""}