{"version":3,"file":"components-dynamic-richTextWithGreyCardRightWithoutAnimation-richTextWithGreyCardRightWithoutAnimation-c678582b4a4e4e92f7a8.js","mappings":"wNAsFA,UA1EkD,SAAC,GAAqB,IAAD,MAAlBA,EAAkB,EAAlBA,YAC7CC,EAAmB,CACvBC,YAAU,OACPC,EAAAA,GAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,WAAD,KAAkBA,EADA,EADZ,EAIPF,EAAAA,GAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,WAAD,KAAkBA,EADA,EAJZ,EAOPF,EAAAA,GAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,YAAD,KAAmBA,EADD,EAPZ,EAUPF,EAAAA,GAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,WAAD,KAAkBA,EADA,EAVZ,EAaPF,EAAAA,GAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,WAAD,KAAkBA,EADA,EAbZ,EAgBPF,EAAAA,GAAAA,SAAiB,SAACC,EAAMC,GAAP,OAChB,gBAAC,gBAAD,KAAuBA,EADP,EAhBV,EAmBPF,EAAAA,GAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,WAAD,KAAkBA,EADA,EAnBZ,EAsBPF,EAAAA,GAAAA,OAAe,SAACC,EAAMC,GAAP,OACd,gBAAC,cAAD,KACGA,EAFW,EAtBR,EA2BPC,EAAAA,GAAAA,WAAoB,SAACF,EAAMC,GAAP,mBACnB,gBAAC,uBAAD,CACEE,MACEC,EAAAA,EAAAA,IAAkBJ,SAAD,UAACA,EAAMK,YAAP,aAAC,EAAYC,KAC1BN,SADJ,UACIA,EAAMK,YADV,aACI,EAAYC,KACZC,EAAAA,EAAAA,IACCC,kCAAgCR,SAAhC,UAAgCA,EAAMK,YAAtC,aAAgC,EAAYC,MAGnDG,QAAQC,EAAAA,EAAAA,IAAcV,SAAD,UAACA,EAAMK,YAAP,aAAC,EA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,wGAAGA,CAAH,8eA4BXU,EAAcV,EAAAA,QAAAA,WAAAA,WAAH,yGAAGA,CAAH,8kCA0BJW,EAAAA,EAAAA,iBA8CPC,EAAaZ,EAAAA,QAAAA,IAAAA,WAAH,wGAAGA,CAAH,mFASVa,EAAuBb,EAAAA,QAAAA,WAAAA,WAAH,kHAAGA,CAAH,igBAUtBW,EAAAA,EAAAA,WAaOA,EAAAA,EAAAA,iB","sources":["webpack://the-burnaby-refinery/./src/components/dynamic/richTextWithGreyCardRightWithoutAnimation/richTextWithGreyCardRightWithoutAnimation.js","webpack://the-burnaby-refinery/./src/components/dynamic/richTextWithGreyCardRightWithoutAnimation/richTextWithGreyCardRightWithoutAnimationStyles.js"],"sourcesContent":["import React from 'react';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport * as Styled from './richTextWithGreyCardRightWithoutAnimationStyles';\nimport { useContentfulAssets } from '../../../hooks/useContentfulAssets';\nimport isExternalUrl, { addTrailingSlash, isExternalUrlHref } from '../../../utils';\nimport {\n ColumnsOneQuarterLeftImg,\n ColumnsOneQuartersLeft,\n ColumnsThreeQuarterRight,\n} from '../../../styles';\n\nconst RichTextWithGreyCardRightWithoutAnimation = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\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.HEADING_6]: (node, children) => (\n {children}\n ),\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n [BLOCKS.UL_LIST]: (node, children) => (\n {children}\n ),\n [BLOCKS.LIST_ITEM]: (node, children) => (\n {children}\n ),\n [BLOCKS.QUOTE]: (node, children) => (\n \n {children}\n \n ),\n [INLINES.HYPERLINK]: (node, children) => (\n \n {children}\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?.trim() && (\n \n {sectionData?.header}\n \n )}\n\n {sectionData?.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsMainStyle\n )}\n \n );\n};\nexport default RichTextWithGreyCardRightWithoutAnimation;\n","import styled from 'styled-components';\nimport AppColors from '../../../styles/colors';\nexport const HeaderH2 = styled.h2`\n position: relative;\n margin-right: 0px;\n margin-bottom: 40px;\n margin-left: 0px;\n padding: 0px 0px 20px;\n font-family: interstate, sans-serif;\n font-weight: 400;\n font-style: normal;\n font-size: 42px;\n line-height: 45px;\n width: 70%;\n float: right;\n color: rgb(31, 178, 90);\n margin-top: 0px !important;\n @media (max-width: 1399px) {\n margin-top: 0px !important;\n }\n @media (max-width: 767px) {\n margin: 0px 0px 30px;\n font-size: 25px;\n line-height: 27px;\n }\n`;\n\nexport const HeaderH6 = styled.h6`\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 color: rgba(0, 0, 0, 0.8) !important;\n width: 70%;\n float: right;\n @media (max-width: 767px) {\n font-size: 15px !important;\n line-height: 23px !important;\n }\n`;\nexport const HeaderH3 = 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: left;\n float: right;\n width: 70%;\n @media (max-width: 991px) {\n width: 100%;\n }\n @media (max-width: 767px) {\n width: 100%;\n margin: 0px 0px 30px;\n font-size: 20px;\n line-height: 22px;\n }\n`;\nexport const HeadingH4 = styled.h4`\n padding: 0 0 15px 0;\n margin: 0 0 35px 0;\n font-family: 'HelveticaNeue-Light', sans-serif;\n font-size: 24px;\n line-height: 29px;\n color: rgba(0, 0, 0, 0.6);\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n font-weight: normal;\n @media (max-width: 1399px) {\n font-size: 22px;\n line-height: 27px;\n margin-bottom: 30px;\n }\n @media (max-width: 767px) {\n font-size: 20px;\n line-height: 25px;\n }\n`;\n\nexport const ParaText = styled.p`\n font-family: 'Gotham-Light', arial, sans-serif;\n font-size: 24px;\n line-height: 38px;\n width: 70%;\n float: right;\n @media (max-width: 991px) {\n width: 100%;\n }\n @media (max-width: 767px) {\n \n font-size: 19px !important;\n line-height: 27px !important;\n }\n i {\n font-style: italic;\n margin-bottom: 0;\n font-size: 16px;\n line-height: 24px;\n @media (max-width: 1399px) {\n font-size: 15px;\n line-height: 22px;\n }\n @media (max-width: 767px) {\n font-size: 13px;\n line-height: 20px;\n }\n }\n`;\n\nexport const LinkStyle = styled.a`\n text-decoration: none;\n color: #00a6e8;\n transition: 0.25s ease-out;\n font-family: 'HelveticaNeue-Light', arial, sans-serif;\n font-size: 20px;\n line-height: 32px;\n`;\nexport const UnorderedList = styled.ul`\n margin: 0 0 30px 0;\n padding: 0;\n`;\nexport const OrderedList = styled.ol`\n margin: 0 0 30px 0;\n padding: 0;\n list-style-type: none;\n counter-reset: standard-counter;\n`;\nexport const ListItem = styled.li`\n padding: 0 0 15px 50px;\n background-size: 30px auto;\n list-style: none;\n margin: 0;\n font-family: 'HelveticaNeue-Light', arial, sans-serif;\n font-size: 20px;\n line-height: 32px;\n @media (max-width: 767px) {\n padding-top: 1px;\n padding-left: 40px;\n background-position: 0 0;\n background-size: 25px auto;\n }\n`;\nexport const ButtonStyle = styled.a`\n display: inline-block;\n position: relative;\n top: 0;\n padding: 17px 35px 13px 35px;\n margin: 0 5px 5px 0;\n font-family: 'Adelle-Bold', sans-serif;\n font-size: 18px;\n line-height: 22px;\n text-transform: uppercase;\n color: #55aa4c;\n border: 2px solid #55aa4c;\n box-shadow: 0 0 0 2px rgb(255 255 255 / 0%);\n border-radius: 100px;\n cursor: pointer;\n @media (max-width: 767px) {\n padding: 10px 20px 6px 20px;\n font-size: 16px;\n line-height: 20px;\n border-radius: 10px;\n }\n :hover {\n top: -5px;\n color: #55aa4c;\n border-color: #55aa4c;\n box-shadow: 0 5px 0 0 #55aa4c;\n }\n`;\nexport const BlockQuotes = styled.blockquote`\n position: relative;\n width: 70%;\n margin: 0 0 80px 0;\n float: right;\n padding: 40px;\n margin: 0px 0px 40px;\n background: rgba(0, 0, 0, 0.05);\n @media (max-width: 991px) {\n width: 100%;\n margin: 0px 0px 40px;\n }\n @media (max-width: 767px) {\n padding: 30px;\n margin: 0 0 30px 0;\n }\n :after {\n content: '';\n display: block;\n position: absolute;\n bottom: -12px;\n left: 0;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 12px 18px 0 0px;\n border-color: ${AppColors.backgroundBlack} transparent transparent\n transparent;\n }\n p {\n font-family: Gotham-Light, arial, sans-serif;\n font-size: 24px;\n line-height: 38px;\n width: 100%;\n @media (max-width: 1399px) {\n margin-bottom: 30px;\n }\n i {\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 width: 100%;\n @media (max-width: 1399px) {\n font-size: 15px;\n line-height: 22px;\n }\n @media (max-width: 767px) {\n font-size: 13px;\n line-height: 20px;\n }\n }\n }\n h3 {\n width: 100%;\n position: relative;\n margin-bottom: 0px;\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: left;\n @media (max-width: 767px) {\n margin: 0px 0px 30px;\n font-size: 20px;\n line-height: 22px;\n }\n }\n`;\n\nexport const ImageStyle = styled.img`\n float: left;\n width: 25%;\n @media (max-width: 991px) {\n width: 100%;\n margin-bottom: 30px;\n }\n`;\n\nexport const BlockQuotesLinkStyle = styled.blockquote`\n position: relative;\n margin: 0 0 0 0;\n padding: 0 0 20px;\n font-family: interstate, sans-serif;\n font-weight: 400;\n font-style: normal;\n font-size: 42px;\n line-height: 45px;\n margin-top: 0 !important;\n color: ${AppColors.LightGreen};\n &.lessMargin {\n margin-bottom: 15px;\n }\n ::after {\n content: '';\n display: inline-block;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 200px;\n height: 4px;\n transition: all 0.2s ease-out;\n background: ${AppColors.backgroundBlack1};\n }\n @media (max-width: 1399px) {\n margin-top: 0 !important;\n }\n @media (max-width: 767px) {\n margin: 0 0 30px 0;\n font-size: 25px;\n line-height: 27px;\n }\n :hover {\n color: #55aa4c;\n }\n`;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","INLINES","href","isExternalUrlHref","data","uri","addTrailingSlash","process","target","isExternalUrl","asset","useContentfulAssets","sys","id","src","file","url","alt","title","renderText","text","split","flatMap","i","key","header","trim","className","contentDetails","documentToReactComponents","JSON","parse","raw","HeaderH2","styled","HeaderH6","HeaderH3","HeadingH4","ParaText","LinkStyle","UnorderedList","OrderedList","ListItem","ButtonStyle","BlockQuotes","AppColors","ImageStyle","BlockQuotesLinkStyle"],"sourceRoot":""}