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,EAAAA,QAAAA,GAAAA,WAAH,yFAAGA,CAAH,kCAIbG,EAAcH,EAAAA,QAAAA,GAAAA,WAAH,uFAAGA,CAAH,sFAMXI,EAAWJ,EAAAA,QAAAA,GAAAA,WAAH,oFAAGA,CAAH,8OAEDK,EAAAA,EAIhBJ,GAUSK,EAAgBN,EAAAA,QAAAA,GAAAA,WAAH,yFAAGA,CAAH,2NAENO,EAAAA","sources":["webpack://commercial-ultramar/./src/components/paragraphWithButtonLinks/paragraphWithButtonLinks.js","webpack://commercial-ultramar/./src/components/paragraphWithButtonLinks/paragraphWithButtonLinksStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './paragraphWithButtonLinksStyles';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport isExternalUrl, { addTrailingSlash, isExternalUrlHref } from '../../utils';\n\nconst ParagraphWithButtonLinks = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\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 [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 (\n <>\n {sectionData?.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsMainStyle\n )}\n \n );\n};\n\nexport default ParagraphWithButtonLinks;\n","import styled from 'styled-components';\nimport IconCheck from '../../images/icon-check.png';\nimport IconArrowYellowRight from '../../images/icon-arrow-yellow-right.png';\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 margin-bottom: 40px;\n font-family: 'MrAlex', sans-serif;\n font-size: 24px;\n line-height: 28px;\n text-transform: uppercase;\n font-weight: bold;\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 cursor: pointer;\n text-decoration: none;\n @media (max-width: 1399px) {\n font-size: 20px;\n line-height: 24px;\n margin-bottom: 30px;\n }\n @media (max-width: 1199px) {\n font-size: 25px;\n line-height: 25px;\n }\n\n @media (max-width: 767px) {\n font-size: 22px;\n line-height: 25px;\n }\n :hover {\n top: -5px;\n color: #f7991c;\n border-color: #f7991c;\n box-shadow: 0 5px 0 0 #f7991c;\n }\n`;\nexport const ParaText = styled.p`\n margin-bottom: 40px;\n @media (max-width: 1399px) {\n margin-bottom: 30px;\n }\n ${ButtonStyle} {\n margin: 0;\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`;\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: url(${IconCheck}) no-repeat 0 1px;\n background-size: 30px auto;\n list-style: none;\n margin: 0;\n ${ParaText} {\n margin: 0;\n }\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 ListItemArrow = styled.li`\n padding: 0 0 15px 30px;\n background: url(${IconArrowYellowRight}) no-repeat 0 1px;\n background-size: 10px auto;\n list-style: none;\n margin: 0;\n @media (max-width: 1399px) {\n background-position: 0 9px;\n }\n @media (max-width: 767px) {\n background-position: 0 5px;\n }\n`;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","INLINES","href","isExternalUrlHref","data","uri","addTrailingSlash","process","target","isExternalUrl","renderText","text","split","flatMap","i","key","contentDetails","documentToReactComponents","JSON","parse","raw","ButtonStyle","styled","ParaText","UnorderedList","OrderedList","ListItem","IconCheck","ListItemArrow","IconArrowYellowRight"],"sourceRoot":""}