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,QADA,IACAA,EAAAA,GAAAA,EAAAA,EAAAA,SAAsBH,MAAAA,OAAtB,EAAsBA,EAASE,QAC/B,OAACO,EAAAA,QAAD,IAACA,EAAAA,IAAAA,EAAAA,EAAAA,SAAoBT,MAAAA,OAApB,EAAoBA,EAASE,OAC9B,CACA,IAAME,GAAmBC,EAAAA,EAAAA,SAAS,CAAD,uDAETL,MAAAA,OAFS,EAETA,EAASE,MAFA,KAEQF,MAAAA,OAFR,EAEQA,EAASE,OAFjB,uIAAC,kBAChC,cACsBF,EAASE,KAD/B,IACuCF,EAASE,OAFjB,8OAAC,sBAEVF,EAASE,KAFA,IAEQF,EAASE,SAGlD,OACE,gBAAC,WAAD,CACEZ,IAAKW,EACLK,GAAI,GACJC,IAAE,EACFC,UAAU,QAEV,gBAACJ,EAAD,CAAkBd,IAAKW,EAAOpC,YAAamC,KAIjD,OAAO,eA0D3B","sources":["webpack://commercial-ultramar/./src/components/blueContentListColumn/blueContentListColumnStyles.js","webpack://commercial-ultramar/./src/components/greyCardWithBlueContentList/greyCardWithBlueContentList.js"],"sourcesContent":["import { Col } from 'react-bootstrap';\nimport styled from 'styled-components';\nimport { Body } from '../../styles';\n\nexport const BodyContainer = styled(Body)`\n padding: 40px 110px;\n @media (max-width: 767px) {\n padding: 35px;\n }\n`;\n\nexport const BodyStyle = styled.div`\n padding: 40px 110px 0 110px;\n\n @media (max-width: 1200px) {\n padding: 50px 50px 0 50px;\n }\n @media (max-width: 767px) {\n padding: 35px 35px 0 35px;\n }\n`;\nexport const CallOut = styled.div`\n width: 100%;\n padding-top: 30px;\n padding-left: 60px;\n background: rgb(0, 166, 232);\n background: -moz-linear-gradient(\n top,\n rgba(0, 166, 232, 1) 0%,\n rgba(0, 83, 157, 1) 100%\n );\n background: -webkit-linear-gradient(\n top,\n rgba(0, 166, 232, 1) 0%,\n rgba(0, 83, 157, 1) 100%\n );\n background: linear-gradient(\n to bottom,\n rgba(0, 166, 232, 1) 0%,\n rgba(0, 83, 157, 1) 100%\n );\n border-radius: 20px;\n @media (max-width: 1199px) {\n padding: 50px 30px 0 30px;\n text-align: center;\n }\n ::after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: ' ';\n clear: both;\n height: 0;\n }\n a {\n color: white;\n margin: 0px;\n }\n p {\n margin: 0px;\n }\n img {\n margin: 0px;\n }\n\n @media (max-width: 991px) {\n a {\n color: white;\n margin-bottom: 30px;\n }\n p {\n margin-bottom: 30px;\n }\n img {\n margin-bottom: 30px;\n }\n } ;\n`;\n\nexport const LeftSection = styled.div`\n float: left;\n width: 55%;\n height: 170px;\n padding-top: 30px;\n padding-left: 60px;\n font-family: 'MrAlex', arial, sans-serif;\n font-size: 5vw;\n line-height: 5vw;\n color: #fff;\n @media (max-width: 1830px) {\n width: 47%;\n height: 150px;\n font-size: 4vw;\n line-height: 4vw;\n }\n @media (max-width: 1300px) {\n float: none;\n width: 100%;\n height: auto;\n padding-top: 0;\n padding-left: 0;\n margin-bottom: 30px;\n font-size: 80px;\n line-height: 80px;\n }\n @media (max-width: 767px) {\n font-size: 50px;\n line-height: 50px;\n }\n`;\n\nexport const MiddleSection = styled.div`\n position: relative;\n float: left;\n width: 22%;\n height: 170px;\n @media (max-width: 1830px) {\n width: 22%;\n height: 150px;\n }\n @media (max-width: 1300px) {\n float: none;\n width: 100%;\n height: auto;\n }\n`;\n\nexport const RightSection = styled.div`\n float: right;\n width: 23%;\n height: 170px;\n padding-top: 45px;\n text-align: center;\n @media (max-width: 1830px) {\n width: 28%;\n height: 150px;\n padding-top: 30px;\n }\n @media (max-width: 1439px) {\n width: 22%;\n }\n @media (max-width: 1300px) {\n float: none;\n width: 100%;\n height: auto;\n padding-top: 0;\n margin-bottom: 30px;\n }\n`;\n\nexport const ImageStyle = styled.img`\n border: 0;\n vertical-align: top;\n position: relative;\n bottom: 0;\n width: auto;\n height: 170px;\n @media (max-width: 1830px) {\n height: 150px;\n }\n @media (max-width: 1300px) {\n height: 150px;\n }\n @media (max-width: 767px) {\n width: 80%;\n height: auto;\n }\n`;\n\nexport const ButtonStyle = styled.a`\n display: inline-block;\n position: relative;\n top: 0;\n padding: 15px 35px;\n margin-right: 10px;\n font-family: 'MrAlex', sans-serif;\n font-size: 24px;\n line-height: 28px;\n color: #00a6e8;\n border: 2px solid #00a6e8;\n box-shadow: 0 0 0 2px rgb(255 255 255 / 0%);\n border-radius: 100px;\n text-decoration: none;\n\n transition: 0.25s ease-out;\n cursor: pointer;\n @media (max-width: 1439px) {\n font-size: 20px;\n line-height: 24px;\n }\n @media (max-width: 1300px) {\n font-size: 25px;\n line-height: 25px;\n }\n @media (max-width: 767px) {\n font-size: 22px;\n line-height: 25px;\n }\n`;\n\nexport const ColStyle = styled(Col)`\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const BlueMainContainer = styled.div`\n width: 100%;\n background: linear-gradient(\n to bottom,\n rgba(237, 237, 237, 1) 0%,\n rgba(255, 255, 255, 1) 50%,\n rgba(237, 237, 237, 1) 100%\n );\n font-family: 'HelveticaNeue-Light', arial, sans-serif;\n font-size: 20px;\n line-height: 32px;\n color: rgba(0, 0, 0, 0.6);\n @media (max-width: 1399px) {\n font-size: 20px;\n line-height: 32px;\n }\n @media (max-width: 767px) {\n font-size: 16px;\n line-height: 24px;\n }\n`;\n","import React from 'react';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { Row } from 'react-bootstrap';\nimport { FormTypes, sectionList } from '../../constants/queryFragments';\nimport loadable from '@loadable/component';\nimport {\n Columns,\n HeaderH2,\n HeaderH3,\n ParaText,\n HeadingH4,\n UnorderedList,\n LinkStyle,\n ListItem,\n} from '../../styles';\nimport * as Styled from '../blueContentListColumn/blueContentListColumnStyles';\nimport isExternalUrl, { addTrailingSlash, isExternalUrlHref } from '../../utils';\n\nconst BlueContentListColumn = ({ sectionData = { list: [] } }) => {\n const [loaded, setLoaded] = React.useState(false);\n\n React.useEffect(() => {\n setLoaded(true);\n }, []);\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) => {children},\n [BLOCKS.PARAGRAPH]: (node, children) => {children},\n [BLOCKS.UL_LIST]: (node, children) => (\n {children}\n ),\n [BLOCKS.LIST_ITEM]: (node, children) => {children},\n [INLINES.HYPERLINK]: (node, children) => (\n \n {children}\n \n ),\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n return !loaded ? (\n \n \n \n {sectionData?.header?.trim() && (\n {sectionData?.header}\n )}\n {sectionData?.subtext?.trim() && (\n {sectionData?.subtext}\n )}\n {sectionData?.listDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.listDetails?.raw),\n optionsMainStyle\n )}\n {sectionData && (\n \n \n {sectionData?.list &&\n sectionData?.list?.map((section, index) => {\n if (\n section?.type &&\n sectionList?.includes(section?.type) &&\n !FormTypes?.includes(section?.type)\n ) {\n const SectionComponent = loadable(() =>\n import(\n `../../components/${section?.type}/${section?.type}`\n )\n );\n return (\n \n \n \n );\n }\n return null;\n })}\n
\n \n )}\n \n \n \n ) : (\n \n \n \n {sectionData?.header?.trim() && (\n {sectionData?.header}\n )}\n {sectionData?.subtext?.trim() && (\n {sectionData?.subtext}\n )}\n {sectionData?.listDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.listDetails?.raw),\n optionsMainStyle\n )}\n {sectionData && (\n \n \n {sectionData?.list &&\n sectionData?.list?.map((section, index) => {\n if (\n section?.type &&\n sectionList?.includes(section?.type)\n ) {\n const SectionComponent = loadable(() =>\n import(\n `../../components/${section?.type}/${section?.type}`\n )\n );\n return (\n \n \n \n );\n }\n return null;\n })}\n
\n \n )}\n \n \n \n );\n};\nexport default BlueContentListColumn;\n"],"names":["BodyContainer","styled","Body","BodyStyle","CallOut","LeftSection","MiddleSection","RightSection","ImageStyle","ButtonStyle","ColStyle","Col","BlueMainContainer","BlueContentListColumn","sectionData","list","React","loaded","setLoaded","optionsMainStyle","renderNode","BLOCKS","node","children","textAlign","INLINES","href","isExternalUrlHref","data","uri","addTrailingSlash","process","target","isExternalUrl","renderText","text","split","flatMap","i","key","header","trim","subtext","listDetails","documentToReactComponents","JSON","parse","raw","map","section","index","type","sectionList","SectionComponent","loadable","xs","xl","className","FormTypes"],"sourceRoot":""}