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lordcoTextWithImage/lordcoTextWithImage.js","webpack://bluewave-energy/./src/dynamicComponents/lordcoTextWithImage/lordcoTextWithImageStyle.js"],"sourcesContent":["import { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS } from '@contentful/rich-text-types';\nimport React from 'react';\nimport { useContentfulImages } from '../../hooks/useContentfulImages';\nimport * as Styled from './lordcoTextWithImageStyle';\n\nconst LordcoTextWithImage = ({ sectionData }) => {\n const optionsHeadingStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) =>

{children}

,\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n const optionsRepsImageStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) =>

,\n\n [BLOCKS.EMBEDDED_ASSET]: (node, children) => {\n const asset = useContentfulImages(node.data.target.sys.id);\n if (asset) {\n return (\n \n );\n }\n },\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n const optionsRepsStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) =>

{children}

,\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n const repsIntroTextWithImage = sectionData?.list?.filter(\n (section) => section.type === 'centerAllignedText'\n )[0];\n const repsContact = sectionData?.list?.filter(\n (section) => section.type === 'centerAlignedtextWithEmailAndContact'\n )[0];\n return (\n \n \n \n {repsIntroTextWithImage?.contentDetails &&\n documentToReactComponents(\n JSON.parse(repsIntroTextWithImage?.contentDetails?.raw),\n optionsHeadingStyle\n )}\n \n\n {repsIntroTextWithImage?.contentDetails &&\n documentToReactComponents(\n JSON.parse(repsIntroTextWithImage?.contentDetails?.raw),\n optionsRepsImageStyle\n )}\n\n \n \n {repsContact?.contentDetails &&\n documentToReactComponents(\n JSON.parse(repsContact?.contentDetails?.raw),\n optionsRepsStyle\n )}\n \n \n \n \n );\n};\n\nexport default LordcoTextWithImage;\n","import styled from 'styled-components';\n\nexport const RepsContainer = styled.div`\n width: 100%;\n height: auto;\n background: #00447c;\n`;\n\nexport const Reps = styled.div`\n width: 850px;\n height: auto;\n margin: 0 auto;\n padding-top: 17px;\n padding-bottom: 17px;\n @media (max-width: 1199px) {\n margin: 0 auto;\n width: 90%;\n text-align: center;\n }\n`;\n\nexport const RepsIntro = styled.div`\n font-family: 'Figtree-Regular', arial, sans-serif;\n display: inline-block;\n width: 275px;\n color: rgb(29, 156, 215);\n padding: 20px;\n padding-top: 70px;\n font-size: 17px;\n line-height: 28px;\n vertical-align: top;\n text-align: center;\n @media (max-width: 1199px) {\n padding-top: 30px;\n padding-bottom: 0px;\n padding-left: 0px;\n padding-right: 0px;\n width: 100%;\n }\n`;\n\nexport const RepsCol2 = styled.div`\n display: inline-block;\n padding: 20px;\n text-align: center;\n padding-top: 80px;\n h3 {\n text-align: center;\n }\n a {\n color: rgb(29, 156, 215);\n text-decoration: none;\n :hover {\n text-decoration: none;\n color: rgb(159, 181, 119);\n }\n }\n @media (max-width: 1199px) {\n display: block;\n padding: 0;\n }\n`;\n\nexport const RepUnorderedList = styled.ul`\n font-family: Figtree-Regular, arial, sans-serif;\n line-height: 130%;\n letter-spacing: 0.02em;\n color: #fff;\n font-size: 14px;\n list-style-type: none;\n text-align: center;\n padding: 0px;\n margin: 0px;\n padding-bottom: 20px;\n @media (max-width: 1199px) {\n text-align: center;\n font-size: 16px;\n line-height: 20px;\n }\n`;\n\nexport const RepListItem = styled.div`\n background: rgba(255, 255, 255, 0.75);\n`;\n\nexport const RepsImage = styled.img`\n width: 250px;\n height: auto;\n margin: 0 auto;\n margin: 20px;\n`;\n"],"names":["sectionData","optionsHeadingStyle","renderNode","BLOCKS","node","children","className","renderText","text","split","flatMap","i","key","optionsRepsImageStyle","asset","useContentfulImages","data","target","sys","id","src","file","url","alt","title","optionsRepsStyle","repsIntroTextWithImage","list","filter","section","type","repsContact","contentDetails","documentToReactComponents","JSON","parse","raw","RepsContainer","styled","Reps","RepsIntro","RepsCol2","RepUnorderedList","RepListItem","RepsImage"],"sourceRoot":""}