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FAAGA,CAAH,kCAIbQ,EAAWR,EAAAA,QAAAA,GAAAA,WAAH,kFAAGA,CAAH,qMAKjBI,GAUSK,EAAWT,EAAAA,QAAAA,GAAAA,WAAH,kFAAGA,CAAH,uRAkBRU,GAAiBV,EAAAA,EAAAA,SAAOI,GAAV,mGAAGJ,CAAH,wBAIdW,EAAiBX,EAAAA,QAAAA,IAAAA,WAAH,yFAAGA,CAAH,2EAOdY,EAASZ,EAAAA,QAAAA,OAAAA,WAAH,iFAAGA,CAAH,0GAUNa,EAASb,EAAAA,QAAAA,GAAAA,WAAH,iFAAGA,CAAH,8P","sources":["webpack://the-burnaby-refinery/./src/components/dynamic/richTextImageParagraph/richTextImageParagraph.js","webpack://the-burnaby-refinery/./src/components/dynamic/richTextImageParagraph/richTextImageParagraphStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './richTextImageParagraphStyles';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS, INLINES, MARKS } from '@contentful/rich-text-types';\nimport {useContentfulAssets} from '../../../hooks/useContentfulAssets';\nimport isExternalUrl, { addTrailingSlash, isExternalUrlHref } from '../../../utils';\n\nconst RichTextImageParagraph = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_2]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_3]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_4]: (node, children) => (\n {children}\n ),\n [BLOCKS.UL_LIST]: (node, children) => (\n {children}\n ),\n [BLOCKS.LIST_ITEM]: (node, children) => (\n {children}\n ),\n [INLINES.HYPERLINK]: (node, children) => (\n \n {children}\n \n ),\n [MARKS.ITALIC]: (node, children) => (\n {children}\n ),\n [INLINES.ASSET_HYPERLINK]: (node, children) => (\n \n {children}\n \n ),\n\n [BLOCKS.EMBEDDED_ASSET]: (node) => {\n const asset = useContentfulAssets(node.data.target.sys.id);\n if (asset) {\n return (\n \n );\n }\n },\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n return (\n \n {sectionData.header && sectionData?.header?.trim() && (\n {sectionData.header}\n )}\n {sectionData.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData.contentDetails.raw),\n optionsMainStyle\n )}\n \n );\n};\nexport default RichTextImageParagraph;\n","import styled from 'styled-components';\nimport AppColors from '../../../styles/colors';\nexport const Body = styled.div`\n text-align: center;\n @media (max-width: 991px) {\n padding: 15px;\n }\n`;\nexport const ImageStyle = styled.img`\n width: auto;\n height: 120px;\n border: 0;\n vertical-align: top;\n margin: 0 0 30px 0;\n @media (max-width: 991px) {\n height: 120px;\n }\n`;\n\nexport const LinkStyle = styled.a`\n font-family: 'Adelle-Bold', sans-serif;\n font-size: 20px;\n line-height: 32px;\n color: rgba(0, 0, 0, 0.6);\n text-decoration: none;\n color: #0e4c80;\n transition: 0.25s ease-out;\n code {\n display: inline-block;\n position: relative;\n padding: 16px 60px 14px;\n font-family: interstate, sans-serif;\n font-weight: 700;\n font-style: normal;\n font-size: 16px;\n line-height: 24px;\n text-transform: uppercase;\n margin-right: 0px;\n color: rgb(255, 255, 255);\n background-color: rgb(31, 178, 90);\n border-bottom: 4px solid rgb(0, 135, 82);\n text-decoration: none;\n }\n :hover {\n background-color: #55aa4c;\n }\n`;\nexport const Header3 = styled.h3`\n position: relative;\n margin: 0px 0px 40px;\n font-family: interstate, sans-serif;\n font-weight: 400;\n font-style: normal;\n font-size: 35px;\n line-height: 40px;\n color: rgb(0, 105, 170);\n text-align: center;\n @media (max-width: 767px) {\n margin: 0px 0px 30px;\n font-size: 20px;\n line-height: 22px;\n }\n`;\nexport const ParaText = styled.p`\n margin: 0 0 40px 0;\n padding: 0;\n font-family: 'Gotham-Regular', arial, sans-serif !important;\n font-size: 17px !important;\n line-height: 32px !important;\n color: rgba(0, 0, 0, 0.8) !important;\n a > code {\n display: inline-block;\n position: relative;\n padding: 16px 60px 14px;\n font-family: interstate, sans-serif;\n font-weight: 700;\n font-style: normal;\n font-size: 16px;\n line-height: 24px;\n text-transform: uppercase;\n margin-right: 0px;\n color: rgb(255, 255, 255);\n background-color: rgb(31, 178, 90);\n border-bottom: 4px solid rgb(0, 135, 82);\n text-decoration: none;\n :hover {\n background-color: #0397d6;\n border-bottom: 4px solid ${AppColors.BrightBlue};\n }\n @media (max-width: 767px) {\n display: block;\n text-align: center;\n font-size: 15px;\n line-height: 18px;\n margin-bottom: 0px;\n margin-right: 0px !important;\n }\n }\n @media (max-width: 1399px) {\n margin: 0 0 30px 0;\n }\n`;\nexport const Header4 = styled.h4`\n width: 70%;\n font-family: 'Gotham-Light', arial, sans-serif;\n font-size: 24px;\n line-height: 38px;\n text-align: center;\n margin-left: auto !important;\n margin-right: auto !important;\n @media (max-width: 991px){\n width: 100%;\n }\n @media (max-width: 767px) {\n font-size: 19px;\n line-height: 27px;\n }\n`;\nexport const ListContainer = styled.ul`\n padding: 0;\n margin: 0 0 30px 0;\n`;\nexport const ListText = styled.li`\n padding: 0 0 15px 30px;\n background-size: 10px auto;\n list-style: none;\n margin: 0;\n ${ParaText} {\n margin: 0;\n }\n @media (max-width: 1399px) {\n background-position: 0 9px;\n }\n @media (max-width: 767px) {\n background-position: 0 5px;\n }\n`;\nexport const HeaderH2 = styled.h2`\n text-align: center;\n position: relative;\n margin: 0 0 35px 0;\n font-family: 'Adelle-Bold', sans-serif;\n font-size: 45px;\n line-height: 50px;\n color: #0e4c80;\n @media (max-width: 1399px) {\n font-size: 40px;\n line-height: 45px;\n margin-bottom: 30px;\n }\n @media (max-width: 767px) {\n font-size: 30px;\n line-height: 35px;\n }\n`;\nexport const ItalicParaText = styled(ParaText)`\n font-style: italic;\n`;\n\nexport const VideoContainer = styled.div`\n position: relative;\n width: 100%;\n padding-bottom: 56%;\n margin: 40px 0 40px 0;\n`;\n\nexport const Iframe = styled.iframe`\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n box-shadow: 0 1px 3px #969696;\n`;\nexport const Header = styled.h1`\n font-family: 'Adelle-Bold', sans-serif;\n font-weight: normal !important;\n color: #0e4c80;\n font-size: 45px;\n line-height: 50px;\n margin-bottom: 10px;\n @media (max-width: 1399px) {\n font-size: 40px;\n line-height: 45px;\n }\n @media (max-width: 767px) {\n font-size: 30px;\n line-height: 35px;\n }\n`;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","INLINES","href","isExternalUrlHref","data","uri","addTrailingSlash","process","target","isExternalUrl","MARKS","asset","useContentfulAssets","sys","id","src","file","url","alt","title","renderText","text","split","flatMap","i","header","trim","contentDetails","documentToReactComponents","JSON","parse","raw","Body","styled","ImageStyle","LinkStyle","Header3","ParaText","AppColors","Header4","ListContainer","ListText","HeaderH2","ItalicParaText","VideoContainer","Iframe","Header"],"sourceRoot":""}