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AAA,IAAAA,WAAH,qEAAGA,CAAH,kEAMTG,EAASH,EAAAA,QAAAA,GAAAA,WAAH,kEAAGA,CAAH,uhBAwCNI,EAAmBJ,EAAAA,QAAAA,IAAAA,WAAH,4EAAGA,CAAH,4IACH,SAACK,GAAD,OAAWA,EAAMhB,mBAQ9BiB,EAAkBN,EAAAA,QAAAA,IAAAA,WAAH,2EAAGA,CAAH,gPAcfO,EAAqBP,EAAAA,QAAAA,IAAAA,WAAH,8EAAGA,CAAH,mBAIlBQ,EAAWR,EAAAA,QAAAA,GAAAA,WAAH,oEAAGA,CAAH,4RACL,SAACK,GAAD,OAAWA,EAAMI,aAkBpBC,EAAWV,EAAAA,QAAAA,EAAAA,WAAH,oEAAGA,CAAH,iRAmBRW,EAAOX,EAAAA,QAAAA,IAAAA,WAAH,gEAAGA,CAAH,wGAUJY,EAAaZ,EAAAA,QAAAA,EAAAA,WAAH,sEAAGA,CAAH,6fAoBjBM,EAGAE","sources":["webpack://commercial-ultramar/./src/components/blogCard/blogCard.js","webpack://commercial-ultramar/./src/components/blogCard/blogCardStyles.js"],"sourcesContent":["import React from 'react';\nimport { Row } from 'react-bootstrap';\nimport * as Styled from './blogCardStyles';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS } from '@contentful/rich-text-types';\nimport isExternalUrl, { addTrailingSlash, isExternalUrlHref } from '../../utils';\n\nconst BlogCard = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_3]: (node, children) => (\n {children}\n ),\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n return (\n \n \n {sectionData?.listOfImagesWithPath &&\n sectionData?.listOfImagesWithPath?.map((blogCard, index) => {\n return (\n \n \n \n \n \n {blogCard?.title}\n \n \n {blogCard.richText &&\n documentToReactComponents(\n JSON.parse(blogCard.richText.raw),\n optionsMainStyle\n )}\n \n \n \n \n );\n })}\n
\n \n );\n};\n\nexport default BlogCard;\n","import { Col } from 'react-bootstrap';\nimport styled from 'styled-components';\n\nexport const Columns = styled(Col)`\n :after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: ' ';\n clear: both;\n height: 0;\n }\n`;\n\nexport const HeaderDiv = styled.div`\n display: inline-block;\n vertical-align: middle;\n line-height: 80px;\n`;\n\nexport const Header = styled.h1`\n position: relative;\n margin: 0;\n padding: 0;\n font-family: 'MrAlex', sans-serif;\n font-size: 55px;\n line-height: 55px;\n text-transform: uppercase;\n color: #fff;\n @media (max-width: 1399px) {\n font-size: 50px;\n line-height: 50px;\n }\n @media (max-width: 1199px) {\n font-size: 45px;\n line-height: 45px;\n }\n @media (max-width: 991px) {\n font-size: 40px;\n line-height: 40px;\n }\n @media (max-width: 767px) {\n font-size: 30px;\n line-height: 33px;\n }\n :after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: -20px;\n width: 75%;\n height: 4px;\n margin-left: auto;\n margin-right: auto;\n background: #ffc905;\n border-radius: 4px;\n }\n`;\n\nexport const ListingGridImage = styled.div`\n background-image: url(${(props) => props.backgroundImage});\n width: 100%;\n height: 250px;\n background-position: center center;\n background-repeat: no-repeat;\n background-size: cover;\n`;\n\nexport const ListingGridDate = styled.div`\n width: 80%;\n margin: -23px auto 0 auto;\n padding: 15px;\n font-family: 'HelveticaNeue-Bold', arial, sans-serif;\n font-size: 16px;\n line-height: 16px;\n text-transform: uppercase;\n letter-spacing: 2px;\n color: #fff;\n background: #00a6e8;\n transition: all 0.25s ease-out;\n`;\n\nexport const ListingGridDetails = styled.div`\n padding: 40px;\n`;\n\nexport const HeaderH3 = styled.h3`\n text-align: ${(props) => props.textAlign};\n position: relative;\n margin: 0 0 35px 0;\n font-family: 'HelveticaNeue-Light', sans-serif;\n font-size: 32px;\n line-height: 37px;\n color: #00a6e8;\n @media (max-width: 1399px) {\n font-size: 28px;\n line-height: 32px;\n margin-bottom: 30px;\n }\n @media (max-width: 767px) {\n font-size: 25px;\n line-height: 30px;\n }\n`;\n\nexport const ParaText = styled.p`\n font-size: 18px;\n line-height: 28px;\n font-family: 'HelveticaNeue-Light', arial, sans-serif;\n color: rgba(0, 0, 0, 0.6);\n margin: 0 0 40px 0;\n padding: 0;\n text-align: center;\n :last-of-type {\n margin-bottom: 0;\n }\n @media (max-width: 1399px) {\n margin-bottom: 30px;\n }\n @media (max-width: 767px) {\n display: none;\n }\n`;\n\nexport const Body = styled.div`\n padding: 80px 110px;\n @media (max-width: 1200px) {\n padding: 50px;\n }\n @media (max-width: 767px) {\n padding: 35px;\n }\n`;\n\nexport const BlogAnchor = styled.a`\n height: 95%;\n display: block;\n position: relative;\n flex-basis: 31%;\n flex-grow: 0;\n flex-shrink: 0;\n margin: 0 15px 35px 15px;\n padding: 0;\n text-align: center;\n background: #fff;\n overflow: hidden;\n box-shadow: 2px 2px 25px rgb(0 0 0 / 10%);\n text-decoration: none;\n color: #00a6e8;\n transition: 0.25s ease-out;\n :hover {\n transform: scale(1.05);\n text-decoration: none;\n color: #f7991c;\n ${ListingGridDate} {\n background: #f7991c;\n }\n ${HeaderH3} {\n color: #f7991c;\n }\n }\n\n @media (max-width: 1799px) {\n flex-basis: 30%;\n }\n @media (max-width: 1199px) {\n flex-basis: 45%;\n }\n @media (max-width: 767px) {\n flex-basis: 100%;\n }\n`;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","renderText","text","split","flatMap","i","className","listOfImagesWithPath","map","blogCard","index","key","xl","href","isExternalUrlHref","path","addTrailingSlash","process","backgroundImage","image","file","url","title","richText","documentToReactComponents","JSON","parse","raw","Columns","styled","Col","HeaderDiv","Header","ListingGridImage","props","ListingGridDate","ListingGridDetails","HeaderH3","textAlign","ParaText","Body","BlogAnchor"],"sourceRoot":""}