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AA,YAAM,wBAkEV,MA9D2BiD,IAMpB,IANqB,OAC1BF,EAAM,SACNiD,EAAQ,UACRC,EAAS,cACTC,GAAgB,EAAI,eACpBC,GAAiB,GAClBlD,EACC,MAAMmD,GAAcC,EAAAA,EAAAA,mBAAkBhH,EAAAA,GAAOwF,UACvC,EAACS,IAAYgB,EAAAA,EAAAA,YAAWL,GAC9B,OACEjG,EAAAA,cAACsB,EAAoB,KAClB6E,GACCnG,EAAAA,cAACsB,EAA0B,KACzBtB,EAAAA,cAAC2F,EAAU,OAGf3F,EAAAA,cAACsB,EAAyB,KACxBtB,EAAAA,cAACsB,EAA2B,KAC1BtB,EAAAA,cAACuG,EAAAA,GAAkB,OAErBvG,EAAAA,cAACsB,EAAiB,KAChBtB,EAAAA,cAACsB,EAAgB,CAAC6D,UAAU,GACzBe,EAAgB,iBAAmB,KAEtClG,EAAAA,cAACsB,EAAqB,MAClB8E,IACCd,EACCtF,EAAAA,cAACsB,EAAgB,CACfkF,MAAO,IACPC,OAAQ,IACRhE,IAAKwD,EAAUtD,WAAW+D,OAAO7D,IACjCC,IAAKmD,EAAUnD,MAGjB9C,EAAAA,cAAA,OAAK2G,MAAO,CAAEH,MAAO,MAAOC,OAAQ,YAExCzG,EAAAA,cAACsB,EAAyB,CAACgE,SAAUA,GACnCtF,EAAAA,cAACsB,EAAgB,CAAC6D,UAAU,GACzBe,EAAgB,iBAAmB,KAEtClG,EAAAA,cAACsB,EAAgB,KACftB,EAAAA,cAAC4G,EAAAA,GAAe,CAACC,MAAO9D,EAAO+D,YAEjC9G,EAAAA,cAACsB,EAAe,KACdtB,EAAAA,cAAC4G,EAAAA,GAAe,CAACC,MAAOb,EAASc,aAGpCxB,GAAYc,GACXpG,EAAAA,cAACsB,EAAgB,CACfkF,MAAO,IACPC,OAAQ,IACRhE,IAAKwD,EAAUpD,IACfC,IAAKmD,EAAUnD,SAMJ,C","sources":["webpack://npf-website/./src/components/ContentBlocks/styles/RecentAdvanceArticles.styles.js","webpack://npf-website/./src/components/ContentBlocks/RecentAdvanceArticles.jsx","webpack://npf-website/./src/images/logo-over-blue-70x70.png","webpack://npf-website/./src/components/DfpSlotsScript.jsx","webpack://npf-website/./src/components/AdHead.jsx","webpack://npf-website/./src/components/Heroes/styles/AdvanceArticleHero.styles.js","webpack://npf-website/./src/components/Heroes/AdvanceArticleHero.jsx"],"sourcesContent":["import styled from 'styled-components'\nimport { DEVICE } from '../../../util/constants'\nimport { Link } from 'gatsby'\n\nexport const RecentArticlesColumn = styled.div`\n display: none;\n\n @media ${DEVICE.laptopG} {\n margin-bottom: 24px;\n display: flex;\n flex-direction: column;\n }\n`\n\nexport const SectionTitle = styled.span`\n font-style: normal;\n font-weight: bold;\n font-size: 1.4rem;\n line-height: 2.29;\n text-transform: uppercase;\n color: var(--highlight-blue);\n padding-bottom: 14px;\n`\n\nexport const ArticleLink = styled(Link)`\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-bottom: 24px;\n text-decoration-line: none;\n\n :hover {\n text-decoration-line: underline;\n }\n\n :last-of-type {\n padding-bottom: 0;\n }\n`\n\nexport const ArticleCircleImage = styled.img`\n width: 70px;\n height: 70px;\n border-radius: 50%;\n`\n\nexport const ArticleHeading = styled.h5`\n font-style: normal;\n font-weight: normal;\n font-size: 1.8rem;\n line-height: 1.375;\n color: var(--content-background-dark-blue);\n padding-left: 24px;\n text-decoration-line: none;\n`\n","import React from 'react'\n\nimport { StaticQuery, graphql } from 'gatsby'\n\nimport * as Styled from './styles/RecentAdvanceArticles.styles'\nimport { linkResolver } from '../../util/linkResolver'\nimport DEFAULT_THUMBNAIL from '../../images/logo-over-blue-70x70.png'\n\nconst RECENT_ARTICLES_QUERY = graphql`\n {\n prismicAdvanceLandingPage {\n id\n data {\n recent_advance_articles {\n recent_advanced_article {\n url\n uid\n id\n document {\n ... on PrismicAdvanceArticle {\n id\n last_publication_date\n type\n uid\n url\n first_publication_date\n data {\n publish_date\n hero_image {\n alt\n url\n thumbnails {\n recent_article_list {\n url\n }\n }\n }\n header {\n text\n }\n }\n }\n }\n }\n }\n }\n }\n }\n`\n\nconst RecentAdvanceArticles = () => (\n {\n const nodes =\n data.prismicAdvanceLandingPage?.data?.recent_advance_articles?.map(\n r => r.recent_advanced_article\n ) ?? null\n\n nodes\n .sort((a, b) => {\n const dateA = new Date(a.document.data.publish_date)\n const dateB = new Date(b.document.data.publish_date)\n return dateA - dateB\n })\n .slice(0, 3)\n\n if (!nodes) {\n return null\n }\n\n return (\n \n Recent Advance Articles\n {/*
{ JSON.stringify(nodes, false, 2)}
*/}\n {nodes.map(node => (\n \n \n \n {node.document?.data?.header?.text ?? ''}\n \n \n ))}\n
\n )\n }}\n />\n)\n\nexport default RecentAdvanceArticles\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAMAElEQVR4nO1cd3CT5x1+JC95y/LexnhhPGLwwNgQCDMQRmgTMkly19Be0uOattzlkmua5Li2fzRNR+7S9ApZZLAJgQIBg1lmGfDC4L0ky0u2ZctDlm31fq+tz5alz0sS0h9+7nT6xvu9fr/nfu9vywJx+O+0mIMBhHOUGMccMTyYI4YHc8TwYI4YHtgUMb6LYiCODrGBldgQMX6pcfCICERnhdQGVmMjxEgWhCNiQyZqTly1gdWMwOrEOPuKkfDLrag6kovhwSFrL4eDVYkRCIVI2LkZPfI2KO7XWHMpBrAqMWFr0+AeHoD6s7esuQyjsBoxDm7OiNiYicH+AShKqrnrq0NsQ3KsRgxJi52TIxTFVXq6JdxdiU0RFdZaFgerECOwEyIwK4kdd1U36t071xCJv2WdQ6hblzWWxsEqxIijQ+Ho7sKO+9qUevfqVR4oaAvAoXVH4emotsbyGCxGDElFyBOLsPD1TZi/7XE4erpx97ziwrjjof4Bg2c/LkxHrFiBI+sPw8NK5FiMmIW/2ISY51bDP20BwtdnIO3dHZyUuAZ4c+McPVwMns1rCsGxmlgs9m3C0fWH4e5gSJ6lYRFiXIN84Lc4Vu+ak9gNQctG9ApZJB3c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QDOXNU/6aPNWATxFAak7xlHSiZTZam4sAFq63J5n4sSs6af0Y8an7Ms6hynQo2R0zkpizm+dadvm7VddgUMdSWRn2/Jf8+bnIy21RYxcEzBvrtUuTmLBR9cgSDfWpWH6eWV3tnJ3ZOv4JTyVpnPvEsYTPEiGNCcH/vKQz2jiS9KCRouVMGe5EjCxQH+/jzxZbA3L9J4cHcvzDgwRwxPJgjhgdzxPBgjhgezBFjDAD+Dzr4ryp6XTpjAAAAAElFTkSuQmCC\"","import React from 'react'\n\nconst DfpSlotsScript = ({\n adsData = [],\n targets = {},\n suppressAds = false,\n}) => {\n // Added check to clear all ad slots when suppressAds is true.\n if (suppressAds) {\n const clearScript = `\n if (typeof window !== 'undefined' && window.googletag && typeof window.googletag.destroySlots === 'function') {\n window.googletag.destroySlots();\n }\n // ...any other clean up...\n `\n return typeof window !== 'undefined' ? (\n \n \n \n )\n}\n\nexport default AdHead\n","import styled from 'styled-components'\n\nimport { DEVICE, BLOCK_MARGIN_TOP } from '../../../util/constants'\nimport { GriddedContentBlock } from '../../styles/Utility.styles'\n\nexport const GridContainer = styled(GriddedContentBlock)`\n padding-bottom: 0;\n @media ${DEVICE.tabletL} {\n margin-top: ${BLOCK_MARGIN_TOP}px;\n padding-bottom: ${BLOCK_MARGIN_TOP}px;\n }\n`\n\nexport const AdvanceArticleHero = styled.div`\n grid-column: 2 / 12;\n display: grid;\n grid-template-columns: 1fr 186px 12px;\n grid-template-rows: max-content;\n\n @media ${DEVICE.tabletL} {\n grid-template-columns: 7fr 150px 150px;\n }\n`\n\nexport const HeroGraphicContainer = styled.div`\n grid-column: 2 / 3;\n grid-row: 1;\n width: 100%;\n\n @media ${DEVICE.tabletL} {\n grid-column: 2 / 4;\n padding-top: unset;\n }\n`\n\nexport const TextColumn = styled.div`\n grid-row: 1;\n grid-column: 1 / 4;\n\n @media ${DEVICE.tabletL} {\n grid-row: 1;\n grid-column: 1 /3;\n }\n`\n\nexport const PageTitle = styled.span`\n display: ${({ isMobile }) => (isMobile ? 'block' : 'none')};\n font-weight: bold;\n font-size: 1.4rem;\n line-height: 1.7;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n color: var(--content-background-dark-blue);\n\n @media ${DEVICE.tabletL} {\n display: ${({ isMobile }) => (isMobile ? 'none' : 'block')};\n font-size: 2rem;\n line-height: 1.2;\n margin-bottom: 37px;\n }\n`\n\nexport const HeroTextRegion = styled.div`\n display: flex;\n flex-direction: column;\n max-height: max-content;\n border-radius: 5px;\n margin-top: 60px;\n\n @media ${DEVICE.tabletL} {\n flex-direction: row;\n margin-top: 37px;\n min-height: calc(100% - 2rem * 1.2 - 37px);\n }\n`\n\nexport const CenteredTextColumn = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 14px 0 30px;\n width: 100%;\n\n @media ${DEVICE.tabletL} {\n padding: ${({ hasImage }) => (hasImage ? '0 30px 0 0' : '0 275px 0 0')};\n }\n`\n\nexport const HeroTitle = styled.div`\n h1 {\n font-weight: 300;\n font-size: 2.8rem;\n line-height: 1.35;\n padding-bottom: 5px;\n margin-bottom: 0;\n color: var(--highlight-blue);\n\n @media ${DEVICE.tabletL} {\n padding-bottom: 10px;\n font-size: 4.8rem;\n }\n }\n`\n\nexport const HeroText = styled.div`\n font-size: 1.4rem;\n line-height: 1.6;\n padding-top: 5px;\n margin-top: 0;\n color: var(--content-background-dark-blue);\n\n @media ${DEVICE.tabletL} {\n padding-top: 10px;\n font-size: 2rem;\n }\n`\n\nexport const HeroImage = styled.img`\n width: 100%;\n @media ${DEVICE.tabletL} {\n height: 300px;\n width: 367px;\n min-height: 300px;\n min-width: 367px;\n }\n`\n\nexport const BackButtonContainer = styled.div`\n grid-column: 2 / 12;\n margin-bottom: 30px;\n\n @media ${DEVICE.tabletL} {\n margin-bottom: 20px;\n }\n`\n\nexport const BackButton = styled.button`\n display: flex;\n flex-direction: row;\n align-items: center;\n text-decoration-line: none;\n outline: none;\n background: 0;\n\n svg {\n margin-right: 20px;\n }\n\n span {\n font-family: 'Open Sans', sans-serif;\n font-style: normal;\n font-weight: 600;\n font-size: 1.2rem;\n line-height: 1.357;\n text-transform: uppercase;\n color: var(--content-background-dark-blue);\n }\n\n @media ${DEVICE.tabletL} {\n span {\n font-size: 1.4rem;\n }\n }\n`\n","import React, { useState } from 'react'\nimport { useMediaPredicate } from 'react-media-hook'\nimport { navigate } from 'gatsby'\nimport { PrismicRichText } from '@prismicio/react'\n\nimport { DEVICE } from '../../util/constants'\nimport * as Styled from './styles/AdvanceArticleHero.styles'\nimport { HeroGraphicAdvance, HcpdBackArrow } from '../Icons'\n\nconst BackButton = () => (\n navigate('/advance')}>\n \n Read Advance Online\n \n)\n\nconst AdvanceArticleHero = ({\n header,\n heroText,\n heroImage,\n showPageTitle = true,\n showBackButton = true,\n}) => {\n const tabletAndUp = useMediaPredicate(DEVICE.tabletL)\n const [hasImage] = useState(!!heroImage)\n return (\n \n {showBackButton && (\n \n \n \n )}\n \n \n \n \n \n \n {showPageTitle ? 'Advance Online' : '\\u00A0'}\n \n \n {!tabletAndUp &&\n (hasImage ? (\n \n ) : (\n
\n ))}\n \n \n {showPageTitle ? 'Advance Online' : '\\u00A0'}\n \n \n \n \n \n \n \n \n {hasImage && tabletAndUp && (\n \n )}\n \n \n \n \n )\n}\n\nexport default AdvanceArticleHero\n"],"names":["RecentArticlesColumn","styled","div","withConfig","displayName","componentId","DEVICE","laptopG","SectionTitle","span","ArticleLink","Link","ArticleCircleImage","img","ArticleHeading","h5","RecentAdvanceArticles","React","StaticQuery","query","render","data","_data$prismicAdvanceL","_data$prismicAdvanceL2","_data$prismicAdvanceL3","_data$prismicAdvanceL4","nodes","prismicAdvanceLandingPage","recent_advance_articles","map","r","recent_advanced_article","sort","a","b","Date","document","publish_date","slice","Styled","node","_node$document","_node$document$data","_node$document$data$h","_node$document$data$h2","_node$document$data$h3","_node$document2","_node$document2$data","_node$document2$data$","_node$document2$data$2","_node$document$data$h4","_node$document3","_node$document3$data","_node$document3$data$","key","id","to","linkResolver","src","hero_image","thumbnails","recent_article_list","url","alt","header","text","_ref","adsData","targets","suppressAds","clearScript","window","dangerouslySetInnerHTML","__html","scriptContent","Object","entries","_ref2","value","join","ad","sizeMapping","_ref3","viewportWidth","size","slotId","JSON","stringify","sizes","divId","async","DfpSlotsScript","GridContainer","GriddedContentBlock","tabletL","BLOCK_MARGIN_TOP","AdvanceArticleHero","HeroGraphicContainer","TextColumn","PageTitle","isMobile","HeroTextRegion","CenteredTextColumn","hasImage","HeroTitle","HeroText","HeroImage","BackButtonContainer","BackButton","button","onClick","navigate","HcpdBackArrow","heroText","heroImage","showPageTitle","showBackButton","tabletAndUp","useMediaPredicate","useState","HeroGraphicAdvance","width","height","mobile","style","PrismicRichText","field","richText"],"sourceRoot":""}