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,iF","sources":["webpack://islandpetro/./src/components/slpCRPRichText/slpCRPRichText.js","webpack://islandpetro/./src/components/slpCRPRichText/slpCRPRichTextStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './slpCRPRichTextStyles';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS } from '@contentful/rich-text-types';\n\nexport default function SlpCRPRichText({ sectionData }) {\n const optionsHeaderMainStyle = {\n renderNode: {\n [BLOCKS.HEADING_1]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_2]: (node, children) => (\n {children}\n ),\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n return (\n \n {sectionData?.subText && (\n {sectionData?.subText}\n )}\n {sectionData?.contentDetails?.raw &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsHeaderMainStyle\n )}\n \n );\n}\n","import styled from 'styled-components';\n\nexport const Body = styled.div`\n width: 840px;\n margin: 0 auto;\n padding: 8.5vw 0;\n\n text-align: left;\n @media (max-width: 870px) {\n width: 100%;\n padding: 35px;\n padding-bottom: 0;\n }\n`;\n\nexport const Header = styled.h1`\n font-size: 30px;\n padding: 0;\n margin: 0 0 25px 0;\n text-align: center;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-weight: normal !important;\n color: #00493b;\n @media (max-width: 870px) {\n font-size: 30px;\n line-height: 35px;\n }\n`;\n\nexport const Header2 = styled.h2`\n display: inline-block;\n margin: 0 0 35px 0;\n font-family: 'Figtree-Bold', arial, sans-serif;\n font-weight: bold !important;\n text-align: center;\n color: #00493b;\n font-size: 18px;\n line-height: 20px;\n @media (max-width: 870px) {\n font-size: 20px;\n line-height: 25px;\n }\n`;\n\nexport const Paragraph = styled.p`\n color: #00493b;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-size: 18px;\n`;\n"],"names":["SlpCRPRichText","_ref","_sectionData$contentD","_sectionData$contentD2","sectionData","optionsHeaderMainStyle","renderNode","BLOCKS","HEADING_1","node","children","React","Styled","HEADING_2","PARAGRAPH","renderText","text","split","flatMap","i","key","subText","contentDetails","raw","documentToReactComponents","JSON","parse","Body","styled","div","withConfig","displayName","componentId","Header","h1","Header2","h2","Paragraph","p"],"sourceRoot":""}