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AAS,8EAATA,CAAS,6DAOnBW,EAAUX,EAAAA,QAAAA,GAAAA,WAAS,8EAATA,CAAS,2QAoBnBY,EAAUZ,EAAAA,QAAAA,EAAAA,WAAQ,8EAARA,CAAQ,qQ","sources":["webpack://sol-ecolution/./src/components/paragraphWithImage/paragraphWithImage.js","webpack://sol-ecolution/./src/components/paragraphWithImage/paragraphWithImageStyles.js"],"sourcesContent":["import React from \"react\";\nimport * as Styled from \"./paragraphWithImageStyles\";\nimport { documentToReactComponents } from \"@contentful/rich-text-react-renderer\";\nimport { BLOCKS } from \"@contentful/rich-text-types\";\nimport Blueline from \"../blueLine/blueLine\";\nimport ContentfulAssets from \"../../hooks/useContentfulAssets\";\n\nconst paragraphWithImage = (sectionData) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n [BLOCKS.EMBEDDED_ASSET]: (node) => {\n const asset = ContentfulAssets(node?.data?.target?.sys?.id);\n if (asset) {\n return (\n \n Learn More\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 {sectionData?.sectionData?.listOfImagesWithPath?.map((item, index) => {\n if (item != null) {\n if (item?.type === \"leftSideImage\") {\n return (\n \n \n \n \n \n \n {item?.title}\n {item?.richText?.raw &&\n documentToReactComponents(\n JSON.parse(item?.richText?.raw),\n optionsMainStyle\n )}\n \n \n );\n } else {\n return (\n \n \n \n {item?.title}\n {item?.richText?.raw &&\n documentToReactComponents(\n JSON.parse(item?.richText?.raw),\n optionsMainStyle\n )}\n \n \n \n \n \n );\n }\n }\n return <>>;\n })}\n \n );\n};\n\nexport default paragraphWithImage;\n","import styled from \"styled-components\";\n\nexport const MainDiv = styled.div`\n margin: 1% 8% 0% 8%;\n padding: 0;\n display: grid;\n \n @media (max-width: 768px) {\n margin: 10% 5% 0% 5%;\n }\n @media (max-width: 600px) {\n margin: 18% 5% 0% 5%;\n }\n @media (max-width: 393px) {\n margin-top: 22%;\n }\n @media (max-width: 390px) {\n margin-top: 20%;\n }\n @media (max-width: 320px) {\n margin-top: 23%;\n }\n`;\n\nexport const GridRowLeft = styled.div`\n display: grid;\n grid-template-columns: 53% 50%;\n @media (max-width: 768px) {\n display: block;\n margin-top: 0%;\n }\n`;\n\nexport const GridRowRight = styled.div`\n display: grid;\n grid-template-columns: 50% 53%;\n @media (max-width: 768px) {\n //display: block;\n margin-top: 14%;\n display: flex;\n flex-direction: column-reverse;\n }\n`;\n\nexport const TextContainer = styled.div`\n padding: 50px;\n @media (max-width: 768px) {\n display: flex;\n padding: 30px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n }\n`;\n\nexport const ImageContainer = styled.div`\n padding: 50px;\n display: grid;\n justify-items: center;\n @media (max-width: 768px) {\n padding: 10px;\n }\n`;\n\nexport const IconContainer = styled.div`\n margin: 0;\n padding: 0;\n display: grid;\n grid-template-columns: 33% 33% 33%;\n width: 90%;\n`;\n\nexport const IconSubContainer = styled.div`\n display: block;\n text-align: center;\n`;\n\nexport const Icon = styled.img`\n display: inline;\n width: 70%;\n @media (max-width: 768px) {\n width: 140px;\n }\n`;\n\nexport const Image = styled.img`\n width: 100%;\n @media (max-width: 768px) {\n width: 100%;\n }\n`;\n\nexport const Paragraph = styled.p`\n margin-top: 50px;\n font-size: 24px;\n color:var(--font-color);\n opacity: 0.8;\n @media (max-width: 1440px) {\n font-size: 16px;\n margin-top: 30px;\n }\n @media (max-width: 768px) {\n margin-top: 0;\n text-align: center;\n padding-bottom: 10px;\n padding-top: 10px;\n }\n`;\n\nexport const Header5 = styled.h5`\n @media (max-width: 768px) {\n color: #007dc3;\n font-size: 18px;\n }\n`;\n\nexport const Header1 = styled.h1`\n font-size: 46px;\n font-weight: bold;\n color:var(--font-color);\n @media (max-width: 1440px) {\n font-size: 34px;\n }\n @media (max-width: 1024px) {\n font-size: 28px;\n }\n @media (max-width: 768px) {\n text-align: center;\n font-weight: bold;\n margin-bottom: 20px;\n }\n @media (max-width: 425px) {\n font-size: 26px;\n }\n`;\n\nexport const PDFLink = styled.a`\n text-decoration: none;\n color: inherit;\n font-size: 24px;\n border: 1px solid;\n padding: 5px;\n opacity: 0.8;\n background: #00ae4f;\n color: #fff;\n border-radius: 5px;\n padding: 10px;\n &:hover {\n color: #fff;\n }\n @media (max-width: 1440px) {\n font-size: 16px;\n }\n\n @media (max-width: 1024px) {\n font-size: 14px;\n }\n`;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","asset","ContentfulAssets","data","target","sys","id","href","file","url","renderText","text","split","flatMap","i","listOfImagesWithPath","map","item","index","type","src","image","alt","title","richText","raw","documentToReactComponents","JSON","parse","MainDiv","styled","GridRowLeft","GridRowRight","TextContainer","ImageContainer","IconContainer","IconSubContainer","Icon","Image","Paragraph","Header5","Header1","PDFLink"],"sourceRoot":""}