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IL,GAAIH,EAAYQ,QAAQ,CAACL,GAAY,CACnCL,EAAoBE,EAAYS,OAAO,CAACN,GAAa,GACrD,MACF,CAIAF,EADsB,CAACE,KAAc,IAAItD,IAAImD,GAAa,EAE1DF,EAAoBE,EAAYhC,MAAM,CAAG,GAC3C,EAAG,CACD3F,EACA0H,EACAC,EACAH,EACAC,EACD,EACM,GAAAtI,EAAAC,GAAA,EAACiJ,MAAAA,UAAKb,GACf,iFClBAc,CAAAA,EAAAC,CAAA,CAhBc,OAAC,CAAEjJ,KAAAA,CAAI,CAAEC,MAAAA,CAAK,CAAEiJ,SAAAA,CAAQ,CAAE,CAAA5H,EACtC,MACE,GAAAzB,EAAAC,GAAA,EAAAD,EAAAc,QAAA,WACGX,GACC,GAAAH,EAAAC,GAAA,EAACI,MAAAA,CACCiJ,GAAG,iBACHhJ,UAAWC,IAAAA,cAAAA,CACXG,QAAS,IAAMN,aAEf,GAAAJ,EAAAC,GAAA,EAACI,MAAAA,CAAIK,QAAS,GAAO8G,EAAE+B,eAAe,YAAKF,OAKrD,oBChBAG,EAAAC,OAAA,EAAkB,mtBCAlBD,EAAAC,OAAA,EAAkB,isDCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/base/v1/Inactivity Modal/index.js","webpack://_N_E/./src/components/shared/AddressFormBrand/index.js","webpack://_N_E/./src/components/shared/LegalAnnotation/index.js","webpack://_N_E/./src/components/shared/Modal/index.js","webpack://_N_E/./src/components/base/v1/Inactivity Modal/Modal.module.scss","webpack://_N_E/./src/components/shared/AddressFormBrand/AddressForm.module.scss","webpack://_N_E/./src/components/shared/Modal/Modal.module.scss"],"sourcesContent":["import { useState, useContext, useRef, useEffect } from 'react';\nimport Modal from '~/components/shared/Modal';\nimport Button from '~/components/shared/Button';\nimport styles from './Modal.module.scss';\nimport AddressForm from '~/components/shared/AddressFormBrand';\nimport { CallCenterContext } from '~/providers/CallCenterProvider';\nimport { XCircle } from '~/components/icons';\nimport { useMedia } from '~/helpers/hooks';\nimport LegalAnnotation from '~/components/shared/LegalAnnotation';\nimport { useMonarchSlotContext } from '@redventures/cohesion-utils-react';\n\nexport default function InactivityModal() {\n const BASE_DATA = {\n promoHeadline1: 'Shop plans with faster speeds and unlimited data!',\n promoHeadlineLegal1: 'data-limit',\n promoHeadlineLegal1Toggle: true,\n promoHeadline2:\n 'Order now to receive a $100 prepaid Mastercard via Rebate. Offer ends 7/15/24',\n promoHeadline2Toggle: false,\n promoHeadlineLegal2: 'data-limit',\n promoHeadlineLegal2Toggle: true,\n callCTACopy: 'Call now',\n addressDisclaimer:\n 'Fusion plans available only in select areas. Speeds based on coverage and clear satellite access',\n timer: 1,\n mobileOnly: false,\n addressCTACopy: 'Shop Plans',\n addressLabelColor: '#333',\n };\n const { data: monarchData } = useMonarchSlotContext();\n const data = { ...BASE_DATA, ...monarchData };\n const callCenterOpen = useContext(CallCenterContext);\n const isMedia = useMedia();\n const {\n promoHeadline1,\n promoHeadlineLegal1,\n promoHeadlineLegal1Toggle,\n promoHeadline2,\n promoHeadline2Toggle,\n promoHeadlineLegal2,\n promoHeadlineLegal2Toggle,\n callCTACopy,\n timer,\n addressDisclaimer,\n mobileOnly,\n addressCTACopy,\n addressLabelColor,\n } = data;\n\n const minuteTimer = timer * 60000;\n const minuteTimerString = minuteTimer?.toString();\n const inactivityTimerRef = useRef(null);\n const [visible, setVisible] = useState(false);\n const [triggered, setTriggered] = useState(false);\n\n const resetInactivityTimer = () => {\n //reset timer if event listener is triggered\n clearTimeout(inactivityTimerRef.current);\n inactivityTimerRef.current = setTimeout(() => {\n // User is inactive, therefore setVisible to true\n setVisible(true);\n setTriggered(true);\n }, minuteTimerString);\n };\n\n useEffect(() => {\n if (!triggered) {\n resetInactivityTimer();\n // Set up event listeners\n window.addEventListener('mousemove', resetInactivityTimer);\n window.addEventListener('keydown', resetInactivityTimer);\n window.addEventListener('scroll', resetInactivityTimer);\n }\n return () => {\n // Clean up event listeners and clear the inactivity timer\n window.removeEventListener('mousemove', resetInactivityTimer);\n window.removeEventListener('keydown', resetInactivityTimer);\n window.removeEventListener('scroll', resetInactivityTimer);\n clearTimeout(inactivityTimerRef.current);\n };\n }, [triggered]);\n\n const handleClose = () => {\n tagular('beam', 'ElementClicked', {\n '@type': 'redventures.usertracking.v3.ElementClicked',\n webElement: {\n location: 'Hero Modal',\n position: 'Hero Modal',\n elementType: 'Modal',\n text: 'Close Modal',\n },\n });\n setVisible(false);\n };\n if (mobileOnly && !isMedia.mobile) return null;\n if (!mobileOnly && isMedia.mobile) return null;\n return (\n