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2B,QAAhB,EAAXA,EAAa2B,sBAAc,WAAhB,EAAX,EAA6BC,aAE/B5B,aAAW,EAAXA,EAAa6B,iBAAiB7B,aAAW,EAAXA,EAAa6B,cAAc,KACxD,gBAAC,mBAAuB,KACtB,gBAAC,UAAc,KACZ7B,SAA6B,QAAlB,EAAXA,EAAa6B,cAAc,UAAE,WAAlB,EAAX,EAA+BpB,QAIrCT,aAAW,EAAXA,EAAa8B,YACZC,EAAAA,EAAAA,GACEC,KAAKC,MAAMjC,SAAqB,QAAV,EAAXA,EAAa8B,gBAAQ,WAAV,EAAX,EAAuBI,KAClCjC,IAKZ,C,2PC3DakC,EAAiBC,EAAAA,QAAAA,IAAAA,WAAU,6EAAVA,CAAU,qPAKpB,SAACC,GAAK,OAAKA,EAAMvB,WAAW,IAWnCwB,EAAYF,EAAAA,QAAAA,EAAAA,WAAQ,wEAARA,CAAQ,0CAKpBG,EAAaH,EAAAA,QAAAA,IAAAA,WAAU,yEAAVA,CAAU,8JAavBI,EAAmBJ,EAAAA,QAAAA,IAAAA,WAAU,+EAAVA,CAAU,6IAY7BK,EAAUL,EAAAA,QAAAA,GAAAA,WAAS,sEAATA,CAAS,uYAwBnBM,EAAWN,EAAAA,QAAAA,EAAAA,WAAQ,uEAARA,CAAQ,2S","sources":["webpack://bluewave-energy/./src/dynamicComponents/slpTopTitle/slpTopTitle.js","webpack://bluewave-energy/./src/dynamicComponents/slpTopTitle/slpTopTitleStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './slpTopTitleStyles';\nimport { BLOCKS, MARKS } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport isExternalUrl, { addTrailingSlash, isExternalUrlhref } from '../../utils';\n\nconst SlpTopTitle = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.HEADING_1]: (node, children) => (\n {children}\n ),\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n },\n renderMark: {\n [MARKS.Code]: (node) =>
{node}
,\n },\n renderText: (text) =>\n text?.split('\\n').flatMap((text, i) => [i > 0 &&
]),\n };\n\n return (\n <>\n \n \n \n \n \n {sectionData?.headerWithText?.headerText}\n \n {sectionData?.textWithPaths && sectionData?.textWithPaths[0] && (\n \n \n {sectionData?.textWithPaths[0]?.text}\n \n \n )}\n {sectionData?.richText &&\n documentToReactComponents(\n JSON.parse(sectionData?.richText?.raw),\n optionsMainStyle\n )}\n \n \n );\n};\nexport default SlpTopTitle;\n","import styled from 'styled-components';\n\nexport const TitleContainer = styled.div`\n width: 100%;\n height: 855px;\n margin: 0 auto;\n padding: 65px 0px 0px 0px;\n background: url(${(props) => props.$background}) repeat-x bottom center;\n text-align: center;\n @media (max-width: 991px) {\n width: 100%;\n padding: 45px 35px 0 35px;\n text-align: center;\n background-size: cover;\n height: 510px;\n }\n`;\n\nexport const LinkStyle = styled.a`\n text-decoration: none;\n cursor: pointer;\n`;\n\nexport const ImageStyle = styled.img`\n width: 100%;\n height: auto;\n max-width: 400px;\n height: auto;\n margin-bottom: 40px;\n @media (max-width: 991px) {\n display: block;\n max-width: 300px;\n height: auto;\n margin: 0 auto;\n }\n`;\nexport const HeadingContainer = styled.div`\n width: 650px;\n margin: 0 auto;\n text-align: center;\n @media (max-width: 991px) {\n width: 450px;\n }\n @media (max-width: 767px) {\n width: 100%;\n max-width: 330px;\n }\n`;\nexport const Heading = styled.h1`\n text-align: center;\n position: relative;\n font-size: 60px;\n line-height: 65px;\n margin-bottom: 30px;\n color: #fff;\n margin: 0 0 35px 0;\n padding: 0;\n font-family: 'Figtree-Black', arial, sans-serif;\n font-weight: bold !important;\n code {\n color: #ffc905;\n font-family: 'Figtree-Black', arial, sans-serif;\n font-size: 4vw;\n line-height: 4vw;\n }\n @media (max-width: 991px) {\n line-height: 100%;\n font-size: 30px;\n margin-top: 20px;\n font-weight: bold;\n }\n`;\nexport const ParaText = styled.p`\n margin-bottom: 40px;\n font-family: 'Figtree-Black', arial, sans-serif;\n font-size: 24px;\n line-height: 25px;\n letter-spacing: 3px;\n text-transform: uppercase;\n color: #ffbd18;\n font-weight: bold;\n a {\n i {\n font-size: inherit;\n line-height: inherit;\n }\n }\n @media (max-width: 991px) {\n font-size: 12px;\n margin-bottom: 20px;\n letter-spacing: 1px;\n }\n`;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","renderMark","MARKS","renderText","text","split","flatMap","i","key","$background","image","file","url","href","isExternalUrlhref","assets","description","addTrailingSlash","process","target","isExternalUrl","src","headerWithText","headerText","textWithPaths","richText","documentToReactComponents","JSON","parse","raw","TitleContainer","styled","props","LinkStyle","ImageStyle","HeadingContainer","Heading","ParaText"],"sourceRoot":""}