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,EAAAA,QAAAA,IAAAA,WAAH,2EAAGA,CAAH,wLAePI,EAAaJ,EAAAA,QAAAA,IAAAA,WAAH,8EAAGA,CAAH,iEAOVK,EAASL,EAAAA,QAAAA,OAAAA,WAAH,0EAAGA,CAAH,8HAQNM,EAAYN,EAAAA,QAAAA,IAAAA,WAAH,6EAAGA,CAAH,2UAsBTO,EAAUP,EAAAA,QAAAA,IAAAA,WAAH,2EAAGA,CAAH,oEAOPQ,EAAWR,EAAAA,QAAAA,EAAAA,WAAH,4EAAGA,CAAH,kCAIRS,EAAaT,EAAAA,QAAAA,IAAAA,WAAH,8EAAGA,CAAH,4GAWVU,EAAcV,EAAAA,QAAAA,EAAAA,WAAH,gFAAGA,CAAH","sources":["webpack://commercial-ultramar/./src/components/slpUltramarOffers/slpUltramarOffers.js","webpack://commercial-ultramar/./src/components/slpUltramarOffers/slpUltramarOffersStyles.js"],"sourcesContent":["import React from 'react';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS } from '@contentful/rich-text-types';\nimport * as Styled from './slpUltramarOffersStyles';\nimport useContentfulAssets from '../../hooks/useContentfulAssets';\n\nexport default function slpUltramarOffers({ sectionData }) {\n const optionsListMainStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n [BLOCKS.EMBEDDED_ASSET]: (node) => {\n const asset = useContentfulAssets(node.data.target.sys.id);\n return asset.node.file.url.includes('image') ? (\n \n ) : (\n <>>\n );\n },\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n\n return (\n \n {sectionData?.header}\n {sectionData?.list?.map((item, index) => (\n \n {documentToReactComponents(\n JSON.parse(item?.contentDetails?.raw),\n optionsListMainStyle\n )}\n {item.subText}\n \n ))}\n
\n \n );\n}\n","import styled from 'styled-components';\n\nexport const BodyContainer = styled.div`\n background: #fff;\n`;\nexport const Body = styled.div`\n padding-bottom: 30px;\n width: 860px;\n margin: 0 auto;\n padding: 0;\n padding-top: 35px;\n text-align: center;\n @media (max-width: 991px) {\n width: 100%;\n margin: 0;\n height: auto;\n padding-top: 20px;\n padding-left: 20px;\n padding-right: 20px;\n }\n`;\n\nexport const HeaderH1 = styled.h1`\n font-size: 40px;\n line-height: 46px;\n padding: 15px 0 0 0;\n margin: 0 0 25px 0;\n @media (max-width: 991px) {\n font-size: 40px;\n line-height: 47px;\n padding-top: 20px;\n }\n`;\n\nexport const IconDiv = styled.div`\n vertical-align: top;\n display: inline-block;\n width: 34%;\n text-align: center;\n color: #00539f;\n font-size: 21px;\n line-height: 24px;\n @media (max-width: 991px) {\n display: block;\n width: 100%;\n padding: 25px;\n }\n`;\n\nexport const ImageStyle = styled.img`\n height: auto;\n border: 0;\n vertical-align: top;\n margin-bottom: 20px;\n`;\n\nexport const Header = styled.strong`\n font-family: 'MrAlex', arial, sans-serif;\n font-weight: bold;\n font-size: 22px;\n line-height: 28px;\n display: block;\n margin-bottom: 20px;\n`;\nexport const TextStyle = styled.div`\n margin-bottom: 25px;\n display: block;\n font-size: 14px;\n line-height: 18px;\n margin-top: 10px;\n b {\n font-family: 'MrAlex', arial, sans-serif;\n font-weight: bold;\n font-size: 22px;\n line-height: 28px;\n display: block;\n margin-bottom: 20px;\n }\n code {\n font-family: 'Helvetica-Condensed', arial, sans-serif;\n text-align: center;\n color: #00539f;\n font-size: 21px;\n line-height: 24px;\n }\n`;\nexport const SubText = styled.div`\n display: block;\n font-size: 14px;\n line-height: 18px;\n margin-top: 10px;\n`;\n\nexport const ParaText = styled.p`\n margin: 0 0 20px 0;\n padding: 0;\n`;\nexport const MarketoDiv = styled.div`\n width: 520px;\n margin: 0 auto;\n padding: 25px 0;\n @media (max-width: 991px) {\n width: 100%;\n margin: 0;\n padding: 0 20px;\n }\n`;\n\nexport const AnchorStyle = styled.a`\n text-decoration: none;\n color: #00a6e8;\n`;\n"],"names":["slpUltramarOffers","sectionData","optionsListMainStyle","renderNode","BLOCKS","node","children","asset","useContentfulAssets","data","target","sys","id","file","url","includes","src","alt","title","renderText","text","split","flatMap","i","key","header","list","map","item","index","documentToReactComponents","JSON","parse","contentDetails","raw","subText","BodyContainer","styled","Body","HeaderH1","IconDiv","ImageStyle","Header","TextStyle","SubText","ParaText","MarketoDiv","AnchorStyle"],"sourceRoot":""}