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AC,YAAA,yCAAAC,YAAA,gBAATJ,CAAS,kCAKzBmB,EAAWnB,EAAAA,QAAOoB,GAAElB,WAAA,CAAAC,YAAA,oCAAAC,YAAA,gBAATJ,CAAS,+HAIbqB,EAAAA,GAMPC,EAAYtB,EAAAA,QAAOuB,EAACrB,WAAA,CAAAC,YAAA,qCAAAC,YAAA,gBAARJ,CAAQ,iGAUpBwB,EAAcxB,EAAAA,QAAOuB,EAACrB,WAAA,CAAAC,YAAA,uCAAAC,YAAA,iBAARJ,CAAQ,ya","sources":["webpack://islandpetro/./src/components/slpTitleContainer/slpTitleContainer.js","webpack://islandpetro/./src/components/slpTitleContainer/slpTitleContainerStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './slpTitleContainerStyles';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { useContentfulImages } from '../../hooks/useContentfulImages';\nimport isExternalUrl, {\n addTrailingSlash,\n isExternalUrlhref,\n} from '../../utils';\n\nexport default function SlpTitleContainer({ 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 },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n return (\n \n {sectionData?.textWithPaths[0] && (\n \n {sectionData?.textWithPaths[0].text}\n \n )}\n \n {sectionData?.assets && sectionData?.assets[0]?.file?.url && (\n
\n )}\n
\n {sectionData?.headerWithText?.headerText && (\n \n {sectionData?.headerWithText?.headerText}\n \n )}\n
\n {sectionData?.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsMainStyle\n )}\n \n \n );\n}\n","import styled from 'styled-components';\nimport LinkArrowImage from '../../images/icon-home-arrow-orange.png';\n\nexport const Container = styled.div`\n background: center/cover no-repeat url(${(props) => props.$background});\n padding-top: 80px;\n padding-bottom: 20px;\n text-align: center !important;\n width: 100%;\n @media (max-width: 800px) {\n padding-top: 40px;\n }\n`;\n\nexport const InnerDiv = styled.div`\n padding-left: 6.5rem;\n padding-right: 6.5rem;\n text-align: center;\n margin-left: auto;\n margin-right: auto;\n max-width: 1140px;\n width: 100%;\n @media (max-width: 1399px) {\n max-width: 920px;\n }\n @media (max-width: 767px) {\n padding-left: 1rem;\n padding-right: 1rem;\n }\n`;\n\nexport const ImageStyle = styled.img`\n border: 0;\n border-radius: 0.125rem;\n height: auto;\n max-width: 100%;\n margin-bottom: 30px;\n @media (max-width: 800px) {\n width: 650px;\n }\n`;\n\nexport const HeaderH1 = styled.h1`\n margin: 0 0 35px 0;\n padding: 0;\n font-size: 3rem;\n line-height: 3rem;\n color: #1a4538;\n font-family: 'Figtree-Bold', arial, sans-serif;\n font-weight: bold !important;\n @media (max-width: 1399px) {\n font-size: 2.6rem;\n line-height: 2.6rem;\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`;\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`;\n\nexport const ButtonStyle = styled.a`\n text-transform: uppercase;\n position: absolute;\n top: 2vh;\n right: 2vh;\n background-color: #d9ece8;\n border: none;\n font-family: 'Helvetica Neue';\n z-index: 3;\n\n text-decoration: none;\n line-height: 100%;\n font-size: 1rem;\n font-weight: 500;\n justify-content: center;\n line-height: 1.5rem;\n margin: 0 1rem 1.2rem 0;\n padding: calc(0.4rem - 1px) 1rem;\n color: #111;\n :hover {\n background: linear-gradient(to bottom, #2b8265 5%, #41c464 100%);\n background-color: #2b8265;\n color: #111;\n }\n`;\n"],"names":["SlpTitleContainer","_ref","_sectionData$image","_sectionData$image$fi","_sectionData$textWith","_sectionData$textWith2","_sectionData$textWith3","_sectionData$assets$","_sectionData$assets$$","_sectionData$assets$2","_sectionData$assets$3","_sectionData$headerWi","_sectionData$headerWi2","_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","renderText","text","split","flatMap","i","key","$background","image","textWithPaths","path","assets","style","textAlign","headerWithText","headerText","contentDetails","documentToReactComponents","JSON","parse","raw","Container","styled","div","withConfig","displayName","componentId","props","InnerDiv","ImageStyle","img","HeaderH1","h1","HeaderH2","h2","ParaText","p","HeaderH3","h3","UnorderedList","ul","ListItem","li","LinkArrowImage","LinkStyle","a","ButtonStyle"],"sourceRoot":""}