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AAA,GACEC,KAAKC,MAAM3C,SAA2B,QAAhB,EAAXA,EAAawC,sBAAc,WAAhB,EAAX,EAA6BI,KACxC3C,IAKZ,C,wZCjFa4C,EAAYC,EAAAA,QAAAA,IAAAA,WAAU,8EAAVA,CAAU,+KACQ,SAACC,GAAK,OAAKA,EAAMhB,WAAW,IAc1DiB,EAAWF,EAAAA,QAAAA,IAAAA,WAAU,6EAAVA,CAAU,0OAiBrBG,EAAaH,EAAAA,QAAAA,IAAAA,WAAU,+EAAVA,CAAU,yHAWvBI,EAAWJ,EAAAA,QAAAA,GAAAA,WAAS,6EAATA,CAAS,uNAapBK,EAAWL,EAAAA,QAAAA,GAAAA,WAAS,6EAATA,CAAS,8PAgBpBM,EAAWN,EAAAA,QAAAA,EAAAA,WAAQ,6EAARA,CAAQ,kCAKnBO,EAAWP,EAAAA,QAAAA,GAAAA,WAAS,6EAATA,CAAS,8PAgBpBQ,EAAgBR,EAAAA,QAAAA,GAAAA,WAAS,kFAATA,CAAS,kCAKzBS,EAAWT,EAAAA,QAAAA,GAAAA,WAAS,6EAATA,CAAS,+HAIbU,EAAAA,GAMPC,EAAYX,EAAAA,QAAAA,EAAAA,WAAQ,8EAARA,CAAQ,iGAUpBY,EAAcZ,EAAAA,QAAAA,EAAAA,WAAQ,iFAARA,CAAQ,ic","sources":["webpack://bluewave-energy/./src/dynamicComponents/slpTitleContainer/slpTitleContainer.js","webpack://bluewave-energy/./src/dynamicComponents/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, { addTrailingSlash, isExternalUrlhref } 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/arrow-blue.png';\n\nexport const Container = styled.div`\n background: center/cover no-repeat url(${(props) => props.$background});\n padding-top: 80px;\n height:425px;\n// ^Exclusively used for avenir agreement. No idea how this container is sizing. \n// Without absolute height, there's weird stuff occuring on bottom of container I can't locate-DY\n text-align: center !important;\n width: 100%;\n @media (max-width: 800px) {\n padding-top: 40px;\nheight:235px;\n // ^This is pretty exclusive to the avenir agreement graphic. Other sizing mechanism in place make desiging elements for this friggin' impossible.\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: 0px;\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: #037ec4;\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: #48b4f1;\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: #9fb577;\n :hover {\n text-decoration: none;\n color: #037ec4;\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 display: none !important;\n :hover {\n background: linear-gradient(to bottom, #2b8265 5%, #41c464 100%);\n background-color: #2b8265;\n color: #111;\n }\n`;\n"],"names":["SlpTitleContainer","sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","INLINES","href","isExternalUrlhref","data","uri","addTrailingSlash","process","target","isExternalUrl","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","props","InnerDiv","ImageStyle","HeaderH1","HeaderH2","ParaText","HeaderH3","UnorderedList","ListItem","LinkArrowImage","LinkStyle","ButtonStyle"],"sourceRoot":""}