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ACtBa,IAAKH,SAAc,QAAP,EAAPA,EAASI,aAAK,OAAM,QAAN,EAAd,EAAgBC,YAAI,WAAb,EAAP,EAAsBC,IAC3BC,IAAKP,EAAQQ,MACbA,MAAOR,EAAQQ,MACfC,OACET,EAAQU,OACRC,EAAAA,GAAAA,MAAAA,OAAAA,aAAAA,iBAGHX,aAAO,EAAPA,EAASY,YACRC,EAAAA,EAAAA,GACEC,KAAKC,MAAMf,SAAiB,QAAV,EAAPA,EAASY,gBAAQ,WAAV,EAAP,EAAmBI,KAC9BvC,IAKZ,MAKV,C,0WCpEawC,EAAuBC,EAAAA,QAAAA,IAAAA,WAAU,0FAAVA,CAAU,wCAIjCC,EAAcD,EAAAA,QAAAA,IAAAA,WAAU,iFAAVA,CAAU,oIAYxBE,EAA2BF,EAAAA,QAAAA,GAAAA,WAAS,8FAATA,CAAS,yDAOpCG,EAAsBH,EAAAA,QAAAA,GAAAA,WAAS,yFAATA,CAAS,uIAEjC,SAACI,GAAK,OAAMA,EAAMC,SAAW,MAAQ,KAAK,IAMxC,SAACD,GAAK,OAAMA,EAAMC,SAAW,OAAS,MAAM,IAC5C,SAACD,GAAK,OAAMA,EAAMC,SAAW,MAAQ,MAAM,IAC1C,SAACD,GAAK,OAAMA,EAAMC,SAAW,IAAM,YAAY,IAIhDC,EAAoBN,EAAAA,QAAAA,EAAAA,WAAQ,uFAARA,CAAQ,0RAqB5BO,EAAmBP,EAAAA,QAAAA,IAAAA,WAAU,sFAAVA,CAAU,yJAE/B,SAACI,GAAK,OAAMA,EAAMb,OAAS,OAAS,MAAM,IASxCiB,EAAkBR,EAAAA,QAAAA,KAAAA,WAAW,qFAAXA,CAAW,yGAM7BS,EAAYT,EAAAA,QAAAA,GAAAA,WAAS,+EAATA,CAAS,4C","sources":["webpack://bluewave-energy/./src/dynamicComponents/lordcoImageWithLink/lordcoImageWithLink.js","webpack://bluewave-energy/./src/dynamicComponents/lordcoImageWithLink/lordcoImageWithLinkStyle.js"],"sourcesContent":["import { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport React from 'react';\nimport isExternalUrl, {\n addTrailingSlash,\n isExternalUrlhref,\n} from '../../utils';\nimport constants from '../../utils/utils';\nimport * as Styled from './lordcoImageWithLinkStyle';\n\nconst LordcoImageWithLink = ({ sectionData }) => {\n const optionsBottomLinksStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) =>

{children}

,\n [BLOCKS.HEADING_6]: (node, children) => (\n {children}\n ),\n [INLINES.HYPERLINK]: (node, children) => {\n return (\n \n {children}\n \n );\n },\n },\n renderText: (text) =>\n text\n .split('\\n')\n .flatMap((text, i) => [i > 0 && , text]),\n };\n\n return (\n \n \n \n {sectionData?.listOfImagesWithPath?.map((section, index) => {\n return (\n \n \n \n {section?.richText &&\n documentToReactComponents(\n JSON.parse(section?.richText?.raw),\n optionsBottomLinksStyle\n )}\n \n \n );\n })}\n \n \n \n );\n};\n\nexport default LordcoImageWithLink;\n","import styled from 'styled-components';\n\nexport const BottomLinksContainer = styled.div`\n background: rgba(255, 255, 255, 0.75);\n`;\n\nexport const BottomLinks = styled.div`\n width: 800px;\n margin: 0 auto;\n text-align: center;\n font-size: 17px;\n line-height: 18px;\n padding: 50px;\n @media (max-width: 991px) {\n width: 100%;\n }\n`;\n\nexport const BottomLinksUnorderedList = styled.ul`\n display: inline-block;\n width: 100%;\n margin: 0;\n padding: 0;\n`;\n\nexport const BottomLinksListItem = styled.li`\n float: left;\n width: ${(props) => (props.$catalog ? '50%' : '20%')};\n margin: 0;\n padding: 0;\n list-style: none;\n background: none;\n @media (max-width: 767px) {\n float: ${(props) => (props.$catalog ? 'left' : 'none')};\n width: ${(props) => (props.$catalog ? '50%' : '100%')};\n margin: ${(props) => (props.$catalog ? '0' : '0 0 25px 0')};\n }\n`;\n\nexport const BottomLinksAnchor = styled.a`\n display: block;\n padding: 0 0 0 0;\n margin: 0 0 0 0;\n color: #6f9397;\n font-family: 'Figtree-Bold', arial, sans-serif;\n font-size: 13px;\n line-height: 16px;\n text-transform: uppercase;\n text-align: center;\n color: #11467b;\n text-decoration: none;\n :hover {\n color: #455560;\n text-decoration: none;\n }\n p {\n line-height: 16px;\n }\n`;\n\nexport const BottomLinksImage = styled.img`\n display: inline-block;\n width: ${(props) => (props.$width ? '62px' : '67px')};\n height: auto;\n margin: 0 0 20px 0 !important;\n @media (max-width: 767px) {\n display: block;\n margin: 0 auto 20px auto !important;\n }\n`;\n\nexport const BottomLinksSpan = styled.span`\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-size: 13px;\n line-height: 16px;\n text-transform: none;\n`;\nexport const DesktopBR = styled.br`\n @media (max-width: 767px) {\n display: none;\n }\n`;\n"],"names":["sectionData","optionsBottomLinksStyle","renderNode","BLOCKS","node","children","className","INLINES","href","isExternalUrlhref","data","uri","addTrailingSlash","process","target","isExternalUrl","renderText","text","split","flatMap","i","key","listOfImagesWithPath","map","section","index","path","src","image","file","url","alt","title","$width","type","constants","richText","documentToReactComponents","JSON","parse","raw","BottomLinksContainer","styled","BottomLinks","BottomLinksUnorderedList","BottomLinksListItem","props","$catalog","BottomLinksAnchor","BottomLinksImage","BottomLinksSpan","DesktopBR"],"sourceRoot":""}