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AC,KAAI,GACJxB,UAAWC,IAAAA,GAAAA,WAEX,GAAAJ,EAAAC,GAAA,EAAC2B,EAAAA,EAAYA,CAAAA,CAACjB,MAAO,SAAU,IAAEjC,EAAa,IAC9C,GAAAsB,EAAAC,GAAA,EAAC4B,EAAAA,CAAWA,CAAAA,CAAAA,qBAWlC,uGCjJe,SAASd,EAAgBe,CAAc,KAAd,CAAEd,WAAAA,CAAU,CAAE,CAAdc,EAChC,CAACC,EAAkBC,EAAoB,CAAGC,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,IACnD,CAAEC,YAAAA,CAAW,CAAEC,YAAAA,CAAW,CAAEC,eAAAA,CAAc,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,UAAAA,EAAWC,EAAAA,CAAYA,EA+B5E,MA7BAC,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KACRH,EAAe,EAAE,CACnB,EAAG,EAAE,EAELG,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,SACUL,EAAlB,IAAMM,EAAAA,OAAYN,CAAAA,EAAAA,EAAYO,IAAI,CAChC,GAAgBC,EAAWC,MAAM,GAAK3B,EAAAA,GADtBkB,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAEfU,SAAS,CAEZ,GAAKJ,GAIL,GAAIL,EAAYU,QAAQ,CAACL,GAAY,CACnCR,EAAoBG,EAAYW,OAAO,CAACN,GAAa,GACrD,MACF,CAIAJ,EADsB,CAACI,KAAc,IAAIO,IAAIZ,GAAa,EAE1DH,EAAoBG,EAAYa,MAAM,CAAG,GAC3C,EAAG,CACDhC,EACAkB,EACAC,EACAJ,EACAC,EACD,EACM,GAAAhC,EAAAC,GAAA,EAACgD,MAAAA,UAAKlB,GACf,oBCpCAmB,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/components/base/v1/ACP Banner/index.js","webpack://_N_E/./src/components/shared/LegalAnnotation/index.js","webpack://_N_E/./src/components/base/v1/ACP Banner/Banner.module.scss"],"sourcesContent":["import React, { useRef } from 'react';\nimport styles from './Banner.module.scss';\nimport PhoneNumber from '~/components/shared/Fuse/PhoneNumber';\nimport Button from '~/components/shared/Button';\nimport LegalAnnotation from '~/components/shared/LegalAnnotation';\nimport useIntersectionObserver from '~/helpers/hooks/useIntersectionObserver';\nimport { fireElementViewedEvent } from '~/helpers/utils/fireTagular';\nimport { PhoneRebrand } from '~/components/icons';\nimport { useMonarchSlotContext } from '@redventures/cohesion-utils-react';\n\nconst BASE_DATA = {\n backgroundImage: 'acp-banner',\n borderColor: 'white',\n callCTA: true,\n callCTACopy: 'CALL',\n epqCopy: 'CHECK AVAILABILITY',\n epqShow: true,\n headerCopy:\n 'You may be eligible to receive a $30 monthly credit through the FCC Affordable Connectivity Program',\n headerLegalToggle: false,\n headerFontColor: '#fff',\n iconColor: '#ffffff',\n showSubhead: false,\n subheadLegalToggle: false,\n subheadCopy1:\n 'Hughes® is proud to participate in the Affordable Connectivity Program.',\n subheadCopy2:\n 'Find out if you can get a discounted rate on your Internet plan.',\n subheadFontColor: '#fff',\n};\n\nexport default function ACP_Banner() {\n const { data: monarchData } = useMonarchSlotContext();\n const acpBanner = useRef();\n\n const observeSections = useIntersectionObserver(\n [acpBanner],\n (el) =>\n fireElementViewedEvent(\n 'ACP Banner',\n 'ACP Banner Section',\n 'ACP Banner',\n headerCopy\n ),\n undefined,\n // Fire tagular only when the full element is visible\n { threshold: 1.0 }\n );\n\n const {\n headerFontColor,\n headerCopy,\n headerLegalToggle,\n subheadCopy1,\n subheadLegalToggle,\n subheadCopy2,\n subheadFontColor,\n callCTA,\n epqCopy,\n epqShow,\n callCTACopy,\n backgroundImage,\n showSubhead,\n } = { ...BASE_DATA, ...monarchData };\n\n const bgImage = backgroundImage\n ? `/images/section/${backgroundImage}.jpg`\n : `/images/section/acp-banner.jpg`;\n return (\n \n
\n
\n
\n
\n
\n \n \n {headerLegalToggle && (\n \n )}\n \n {showSubhead && (\n \n {subheadCopy1}\n {subheadLegalToggle && (\n \n )}{' '}\n {subheadCopy2}\n \n )}\n
\n
\n {epqShow && (\n <>\n \n {epqCopy}\n \n \n )}\n {callCTA && (\n <>\n \n {callCTACopy}{' '}\n \n \n \n )}\n
\n
\n
\n
\n
\n \n );\n}\n","import React, { useEffect, useState, useContext } from 'react';\nimport { LegalContext } from '~/providers/LegalProvider';\n\nexport default function LegalAnnotation({ annotation }) {\n const [annotationNumber, setAnnotationNumber] = useState('');\n const { disclosures, activeLegal, setActiveLegal } = useContext(LegalContext);\n\n useEffect(() => {\n setActiveLegal([]);\n }, []);\n\n useEffect(() => {\n const legalText = disclosures.find(\n (disclosure) => disclosure.handle === annotation\n )?.statement;\n\n if (!legalText) {\n return;\n }\n\n if (activeLegal.includes(legalText)) {\n setAnnotationNumber(activeLegal.indexOf(legalText) + 1);\n return;\n }\n\n // Using Set to get rid of duplicates\n const filteredArray = [legalText, ...new Set(activeLegal)];\n setActiveLegal(filteredArray);\n setAnnotationNumber(activeLegal.length + 1);\n }, [\n annotation,\n disclosures,\n activeLegal,\n annotationNumber,\n setAnnotationNumber,\n ]);\n return {annotationNumber};\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"tippy-touch\":\"Banner_tippy-touch__AOpyz\",\"tooltip-btn\":\"Banner_tooltip-btn__uE3NP\",\"tooltip-icon\":\"Banner_tooltip-icon__0QRgt\",\"tooltip-content--legal\":\"Banner_tooltip-content--legal__2hm5Q\",\"tippy-box\":\"Banner_tippy-box__xFfex\",\"tippy-arrow\":\"Banner_tippy-arrow__qR_5i\",\"custom-dots\":\"Banner_custom-dots__0h1_U\",\"custom-dot\":\"Banner_custom-dot__iou4f\",\"slick-active\":\"Banner_slick-active___tVeF\",\"container\":\"Banner_container__fB0I4\",\"gridContainer\":\"Banner_gridContainer__hMYJo\",\"btn\":\"Banner_btn__x5Tce\",\"epqBtn\":\"Banner_epqBtn__ygdRa\",\"content\":\"Banner_content__EFRf8\",\"phoneButton\":\"Banner_phoneButton__mtfWC\",\"heroContentWrapper\":\"Banner_heroContentWrapper__Jd892\",\"headline\":\"Banner_headline__6H_gl\",\"subHeadline\":\"Banner_subHeadline__Eky8f\",\"ctaLink\":\"Banner_ctaLink__MMRxY\",\"ring\":\"Banner_ring__DKR05\"};"],"names":["BASE_DATA","backgroundImage","borderColor","callCTA","callCTACopy","epqCopy","epqShow","headerCopy","headerLegalToggle","headerFontColor","iconColor","showSubhead","subheadLegalToggle","subheadCopy1","subheadCopy2","subheadFontColor","ACP_Banner","data","monarchData","useMonarchSlotContext","acpBanner","useRef","useIntersectionObserver","fireElementViewedEvent","undefined","threshold","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","styles","style","concat","ref","jsxs","h1","marginBottom","color","span","dangerouslySetInnerHTML","__html","LegalAnnotation","annotation","h2","Fragment","Button","href","tracking","position","location","elementType","text","actionOutcome","fuse","PhoneRebrand","PhoneNumber","param","annotationNumber","setAnnotationNumber","useState","disclosures","activeLegal","setActiveLegal","useContext","LegalContext","useEffect","legalText","find","disclosure","handle","statement","includes","indexOf","Set","length","sup","module","exports"],"sourceRoot":""}