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AA,QAAAA,IAAAA,WAAU,wEAAVA,CAAU,kEAOrBC,EAAQD,EAAAA,QAAAA,IAAAA,WAAU,qEAAVA,CAAU,2KAelBE,EAAYF,EAAAA,QAAAA,EAAAA,WAAQ,yEAARA,CAAQ,8GAQpBG,EAAWH,EAAAA,QAAAA,IAAAA,WAAU,wEAAVA,CAAU,yMAcrBI,EAASJ,EAAAA,QAAAA,GAAAA,WAAS,sEAATA,CAAS,mMAYlBK,EAAUL,EAAAA,QAAAA,GAAAA,WAAS,uEAATA,CAAS,uKAUnBM,EAAmBN,EAAAA,QAAAA,IAAAA,WAAU,gFAAVA,CAAU,8RAkB7BO,EAAmBP,EAAAA,QAAAA,IAAAA,WAAU,gFAAVA,CAAU,oIAY7BQ,EAAiBR,EAAAA,QAAAA,IAAAA,WAAU,8EAAVA,CAAU,iC","sources":["webpack://bluewave-energy/./src/dynamicComponents/slpGreyFooter/slpGreyFooter.js","webpack://bluewave-energy/./src/dynamicComponents/slpGreyFooter/slpGreyFooterStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './slpGreyFooterStyles';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS } from '@contentful/rich-text-types';\nimport useContentfulAssets from '../../hooks/useContentfulAssets'\nconst SlpGreyFooter = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_1]: (node, children) => (\n {children} \n ),\n [BLOCKS.HEADING_2]: (node, children) => (\n {children} \n ),\n [BLOCKS.EMBEDDED_ASSET]: (node) => {\n const asset = useContentfulAssets(node.data.target.sys.id);\n return asset?.node?.file?.url?.includes('image') ? (\n \n ) : (\n <>\n );\n \n },\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n return (\n \n \n {sectionData?.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsMainStyle\n )}\n \n \n );\n};\n\nexport default SlpGreyFooter;\n","import styled from 'styled-components';\n\nexport const TermsBar = styled.div`\n background: #ededed;\n width: 100%;\n height: auto;\n text-align: center;\n`;\n\nexport const Terms = styled.div`\n width: 70%;\n margin: 0 auto;\n padding: 30px;\n text-align: center;\n font-size: 12px;\n line-height: 130%;\n color: #9a9a9a;\n @media (max-width: 991px) {\n width: 100%;\n margin: 0;\n padding: 40px 20px;\n }\n`;\n\nexport const NoteStyle = styled.p`\n font-size: 12px;\n color: #9a9a9a;\n font-family: 'Figtree-Regular', arial, sans-serif;\n margin: 0 0 20px 0;\n padding: 0;\n`;\n\nexport const ParaText = styled.div`\ncolor: #666;\nwhite-space: pre-wrap;\nfont-family: 'Figtree-Regular', arial, sans-serif;\nfont-size: 15px;\nline-height: 24px;\nletter-spacing: 0.02em;\nmargin-bottom: 20px;\n@media (max-width: 767px) {\n line-height: 22px;\n}\n`;\n\n\nexport const Header = styled.h1`\nmargin: 0 0 20px 0;\nfont-size: 34px;\nline-height: 40px;\npadding: 0;\nfont-family: 'Figtree-Light', arial, sans-serif;\nfont-weight: normal !important;\ncolor: #11467b;\nletter-spacing: 0.02em;\ntext-align: center;\n`;\n\nexport const Header2 = styled.h2`\npadding: 0px;\nfont-family: Figtree-Light, arial, sans-serif;\ncolor: rgb(17, 70, 123);\nletter-spacing: 0.02em;\ntext-align: center;\nfont-weight: normal !important;\nfont-size: 34px;\n`\n\nexport const ContentContainer = styled.div`\n position: relative;\n width: 850px;\n margin: 0 auto;\n padding: 50px 30px 30px 30px;\n color: #9a9a9a;\n text-align: center;\n white-space: pre-wrap;\n font-family: Figtree-Regular, arial, sans-serif;\n font-size: 15px;\n line-height: 24px;\n letter-spacing: 0.02em;\n margin-bottom: 20px;\n @media (max-width: 991px) {\n width: 100%;\n }\n`;\n\nexport const ImageStyleFooter = styled.img`\n display: block;\n width: 454px;\n height: auto;\n margin: 0 auto 20px auto;\n border: 0;\n vertical-align: top;\n @media (max-width: 767px) {\n width: 75%;\n }\n`;\n\nexport const ContentWrapper = styled.div`\nbackground: rgb(245, 245, 245);\n`\n "],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","asset","useContentfulAssets","data","target","sys","id","file","url","includes","src","alt","title","renderText","text","split","flatMap","i","key","contentDetails","documentToReactComponents","JSON","parse","raw","TermsBar","styled","Terms","NoteStyle","ParaText","Header","Header2","ContentContainer","ImageStyleFooter","ContentWrapper"],"sourceRoot":""}