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,kGASnBW,EAAWX,EAAAA,QAAOY,GAAEV,WAAA,CAAAC,YAAA,8CAAAC,YAAA,gBAATJ,CAAS,8PAgBpBa,EAAgBb,EAAAA,QAAOc,GAAEZ,WAAA,CAAAC,YAAA,mDAAAC,YAAA,gBAATJ,CAAS,kCAKzBe,EAAWf,EAAAA,QAAOgB,GAAEd,WAAA,CAAAC,YAAA,8CAAAC,YAAA,gBAATJ,CAAS,+HAIbiB,EAAAA,GAMPC,EAAYlB,EAAAA,QAAOmB,EAACjB,WAAA,CAAAC,YAAA,+CAAAC,YAAA,gBAARJ,CAAQ,iGASpBoB,EAAapB,EAAAA,QAAOqB,IAAGnB,WAAA,CAAAC,YAAA,gDAAAC,YAAA,gBAAVJ,CAAU,oLAcvBsB,EAAkBtB,EAAAA,QAAOuB,GAAErB,WAAA,CAAAC,YAAA,qDAAAC,YAAA,gBAATJ,CAAS,0H","sources":["webpack://islandpetro/./src/components/headerWithParagraphImageLeft/headerWithParagraphImageLeft.js","webpack://islandpetro/./src/components/headerWithParagraphImageLeft/headerWithParagraphImageLeftStyle.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './headerWithParagraphImageLeftStyle';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { useContentfulImages } from '../../hooks/useContentfulImages';\nimport isExternalUrl, { isExternalUrlhref,addTrailingSlash } from '../../utils';\n\nconst HeaderWithParagraphImageLeft = ({ sectionData }) => {\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.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 [BLOCKS.EMBEDDED_ASSET]: (node) => {\n const asset = useContentfulImages(node.data.target.sys.id);\n return asset.node.file.url.includes('image') ? (\n \n ) : (\n <>>\n );\n },\n [BLOCKS.HR]: () => ,\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n return (\n \n {sectionData?.header?.trim() && (\n {sectionData.header}\n )}\n {sectionData?.subText?.trim() && (\n {sectionData.subText}\n )}\n {sectionData?.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsMainStyle\n )}\n \n );\n};\n\nexport default HeaderWithParagraphImageLeft;\n","import styled from 'styled-components';\nimport LinkArrowImage from '../../images/icon-home-arrow-orange.png';\n\nexport const MainDiv = styled.div`\n color: #666;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-size: 15px;\n line-height: 24px;\n letter-spacing: 0.02em;\n @media (max-width: 767px) {\n font-size: 15px;\n line-height: 22px;\n }\n`;\nexport const HeaderH1 = styled.h1`\n margin: 0 0 35px 0;\n padding: 0;\n font-family: 'Figtree-Light', arial, sans-serif;\n font-weight: normal !important;\n color: #00483a;\n font-size: 45px;\n line-height: 50px;\n letter-spacing: 0.02em;\n @media (max-width: 767px) {\n font-size: 35px;\n line-height: 40px;\n }\n`;\nexport const HeaderH2 = styled.h2`\n margin: 0 0 35px 0;\n padding: 0;\n font-family: 'Figtree-Light', arial, sans-serif;\n font-weight: normal !important;\n color: #008268;\n font-size: 32px;\n line-height: 38px;\n letter-spacing: 0.02em;\n @media (max-width: 767px) {\n font-size: 25px;\n line-height: 30px;\n margin-bottom: 20px;\n }\n`;\n\nexport const ParaText = styled.p`\n margin: 0 0 30px 0;\n padding: 0;\n b {\n font-family: 'Figtree-Bold', arial, sans-serif;\n font-weight: bold;\n }\n`;\n\nexport const HeaderH3 = styled.h3`\n margin: 0 0 35px 0;\n padding: 0;\n font-family: 'Figtree-Light', arial, sans-serif;\n font-weight: normal !important;\n color: #008168;\n font-size: 26px;\n line-height: 35px;\n letter-spacing: 0.02em;\n @media (max-width: 767px) {\n font-size: 18px;\n line-height: 23px;\n margin-bottom: 20px;\n }\n`;\n\nexport const UnorderedList = styled.ul`\n margin: 0 0 30px 0;\n padding: 0;\n`;\n\nexport const ListItem = styled.li`\n margin: 0;\n padding: 4px 0 4px 25px;\n list-style: none;\n background: url(${LinkArrowImage}) no-repeat 0 10px;\n background-size: 7px auto;\n p {\n margin: 0;\n }\n`;\nexport const LinkStyle = styled.a`\n text-decoration: none;\n color: #eea200;\n :hover {\n text-decoration: none;\n color: #008268;\n outline: none;\n }\n`;\nexport const ImageStyle = styled.img`\n float: left;\n height: auto !important;\n width: auto;\n border: 0;\n vertical-align: top;\n margin: 0 30px 30px 0;\n @media (max-width: 767px) {\n display: block;\n float: none;\n margin: 0 0 30px 0 !important;\n }\n`;\n\nexport const HorizontalBreak = styled.hr`\n height: 1px;\n border: none;\n background: #e5e5e5;\n margin: 50px 0;\n clear: both;\n opacity: 1;\n @media (max-width: 767px) {\n margin: 30px 0;\n }\n`;\n"],"names":["_ref","_sectionData$header","_sectionData$subText","_sectionData$contentD","sectionData","optionsMainStyle","renderNode","BLOCKS","HEADING_2","node","children","React","Styled","HEADING_3","PARAGRAPH","UL_LIST","LIST_ITEM","INLINES","HYPERLINK","_node$data","_node$data2","_node$data3","_node$data4","href","isExternalUrlhref","data","uri","addTrailingSlash","process","target","isExternalUrl","EMBEDDED_ASSET","asset","useContentfulImages","sys","id","file","url","includes","src","alt","title","HR","renderText","text","split","flatMap","i","key","header","trim","subText","contentDetails","documentToReactComponents","JSON","parse","raw","MainDiv","styled","div","withConfig","displayName","componentId","HeaderH1","h1","HeaderH2","h2","ParaText","p","HeaderH3","h3","UnorderedList","ul","ListItem","li","LinkArrowImage","LinkStyle","a","ImageStyle","img","HorizontalBreak","hr"],"sourceRoot":""}