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BAAGC,UAAU,OAAOD,EAAa,IACxEE,EAAAA,QAAAA,iBAA0B,SAACH,EAAMC,GAChC,IAAMG,GAAQC,EAAAA,EAAAA,GAAoBL,EAAKM,KAAKC,OAAOC,IAAIC,IACvD,GAAIL,EACF,OAAOR,EACL,gBAAC,EAAwB,CACvBc,KAAMN,EAAMJ,KAAKnB,KAAKC,IACtByB,OAAO,UAEP,gBAAC,EAAuB,CAACI,IAAKhC,IAC7BsB,GAGH,qBAAGS,KAAMN,EAAMJ,KAAKnB,KAAKC,IAAKyB,OAAO,UACnC,gBAAC,EAAe,CAACI,IAAKhC,IAI9B,EAAE,GAEJiC,WAAY,SAACC,GAAI,OACfA,EAAKC,MAAM,MAAMC,SAAQ,SAACF,EAAMG,GAAC,MAAK,CAACA,EAAI,GAAK,2BAAQH,EAAK,GAAC,GAGlE,OACE,gCACG9B,IAAWkC,EAAAA,EAAAA,GAA0BC,KAAKC,MAAMpC,GAAUc,GAGjE,C","sources":["webpack://bluewave-energy/./src/dynamicComponents/lordcoPromotions/lordcoPromotions.js","webpack://bluewave-energy/./src/dynamicComponents/lordcoPromotions/lordcoPromotionsStyle.js","webpack://bluewave-energy/./src/pageSections/blp/lordcoPDFWithImageStyle.js","webpack://bluewave-energy/./src/pageSections/blp/lordcoPDFWithImage.js"],"sourcesContent":["import React from 'react';\nimport LordcoPDFWithImageSection from '../../pageSections/blp/lordcoPDFWithImage';\nimport * as Styled from './lordcoPromotionsStyle';\n\nconst LordcoPromotions = ({ sectionData }) => {\n return (\n \n \n \n {sectionData?.title && sectionData?.title}\n \n\n {sectionData?.listOfImagesWithPath?.map((section, index) => (\n \n \n \n ))}\n \n \n );\n};\nexport default LordcoPromotions;\n","import styled from 'styled-components';\n\nexport const PromotionsContainer = styled.div`\n background: #fff;\n height: auto;\n padding-bottom: 30px;\n`;\n\nexport const PromotionsWrap = styled.div`\n margin: 0 auto;\n width: 900px;\n padding: 20px;\n text-align: center;\n h2 {\n color: #1d9cd7;\n }\n @media (max-width: 1000px) {\n width: 100%;\n }\n`;\n\nexport const HeaderH1 = styled.h1`\n font-family: Figtree-Light, arial, sans-serif;\n color: rgb(17, 70, 123);\n font-size: 34px;\n line-height: 36px;\n letter-spacing: 0.02em;\n margin: 0.67em 0px;\n font-weight: normal !important;\n`;\n\nexport const Promotions = styled.div`\n text-align: center;\n margin: 0 auto;\n display: inline-block;\n padding: 15px;\n @media (max-width: 1000px) {\n padding-top: 20px;\n display: block;\n }\n`;\n","import styled from 'styled-components';\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 text-decoration: none;\n color: #455560;\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: 650px) {\n display: block;\n margin: 0 auto 20px auto !important;\n }\n`;\n\nexport const PdfImage = styled.img`\n width: 150px;\n height: auto;\n box-shadow: 1px 1px 10px 0px rgba(0, 0, 0, 0.3);\n`;\n","import * as React from 'react';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport * as Styled from './lordcoPDFWithImageStyle';\nimport { useContentfulImages } from '../../hooks/useContentfulImages';\n\nconst LordcoPDFWithImageSection = ({ imageUrl, rawText, catalog }) => {\n const optionsStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) =>

{children}

,\n [INLINES.ASSET_HYPERLINK]: (node, children) => {\n const asset = useContentfulImages(node.data.target.sys.id);\n if (asset) {\n return catalog ? (\n \n \n {children}\n \n ) : (\n \n \n \n );\n }\n },\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n\n return (\n <>\n {rawText && documentToReactComponents(JSON.parse(rawText), optionsStyle)}\n \n );\n};\nexport default LordcoPDFWithImageSection;\n"],"names":["sectionData","title","listOfImagesWithPath","map","section","index","key","imageUrl","image","file","url","rawText","richText","raw","PromotionsContainer","styled","PromotionsWrap","HeaderH1","Promotions","BottomLinksAnchor","BottomLinksImage","props","$width","PdfImage","catalog","optionsStyle","renderNode","BLOCKS","node","children","className","INLINES","asset","useContentfulImages","data","target","sys","id","href","src","renderText","text","split","flatMap","i","documentToReactComponents","JSON","parse"],"sourceRoot":""}