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AAAA,IAAAA,WAAU,wFAAVA,CAAU,6KAY7BC,EAAYD,EAAAA,QAAAA,IAAAA,WAAU,iFAAVA,CAAU,iGAStBE,EAAWF,EAAAA,QAAAA,GAAAA,WAAS,gFAATA,CAAS,oRAgBpBG,EAAWH,EAAAA,QAAAA,GAAAA,WAAS,gFAATA,CAAS,8OACjB,SAACI,GAAK,OAAKA,EAAMxC,SAAS,IAc7ByC,EAAUL,EAAAA,QAAAA,IAAAA,WAAU,+EAAVA,CAAU,0FAWpBM,EAAkBN,EAAAA,QAAAA,GAAAA,WAAS,uFAATA,CAAS,0HAU3BO,GAAcP,EAAAA,EAAAA,SAAOQ,EAAAA,GAAI,8FAAXR,CAAW,6VAyBzBS,EAAYT,EAAAA,QAAAA,GAAAA,WAAS,iFAATA,CAAS,+VAoBrBU,EAAWV,EAAAA,QAAAA,EAAAA,WAAQ,gFAARA,CAAQ,2SA0BnBW,EAAcX,EAAAA,QAAAA,GAAAA,WAAS,mFAATA,CAAS,sFAMvBY,EAAWZ,EAAAA,QAAAA,GAAAA,WAAS,iFAATA,CAAS,6LAapBa,EAAYb,EAAAA,QAAAA,EAAAA,WAAQ,kFAARA,CAAQ,mEAKpBc,EAAgBd,EAAAA,QAAAA,GAAAA,WAAS,sFAATA,CAAS,kCAKzBe,EAAmBf,EAAAA,QAAAA,IAAAA,WAAU,yFAAVA,CAAU,6GAU7BgB,GAAWhB,EAAAA,EAAAA,SAAOiB,EAAAA,GAAI,4FAAXjB,CAAW,uI","sources":["webpack://bluewave-energy/./src/dynamicComponents/slpWelcomeSectionList/slpWelcomeSectionList.js","webpack://bluewave-energy/./src/dynamicComponents/slpWelcomeSectionList/slpWelcomeSectionListStyles.js"],"sourcesContent":["import React from 'react';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { Row } from 'react-bootstrap';\nimport { sectionList } from '../../constants/queryFragments';\nimport loadable from '@loadable/component';\nimport * as Styled from './slpWelcomeSectionListStyles';\nimport { addTrailingSlash, isExternalUrlhref } from '../../utils';\n\nconst SlpWelcomeSectionList = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.HEADING_2]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_3]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_4]: (node, children) => (\n {children}\n ),\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n [BLOCKS.UL_LIST]: (node, children) => (\n {children}\n ),\n [BLOCKS.LIST_ITEM]: (node, children) => (\n {children}\n ),\n [INLINES.HYPERLINK]: (node, children) => (\n \n {children}\n \n ),\n },\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n\n return (\n \n \n \n {sectionData?.header?.trim() && (\n \n {sectionData?.header}\n \n )}\n {sectionData?.subtext?.trim() && (\n \n {sectionData?.subtext}\n \n )}\n \n {sectionData?.listDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.listDetails?.raw),\n optionsMainStyle\n )}\n\n {sectionData && (\n <>\n \n {sectionData?.list &&\n sectionData?.list?.map((section, index) => {\n if (section?.type && sectionList?.includes(section?.type)) {\n // const sectionData = sectionData.list[section.type];\n const SectionComponent = loadable(() =>\n import(\n `../../dynamicComponents/${section?.type}/${section?.type}`\n )\n );\n return (\n \n \n \n );\n }\n })}\n \n \n )}\n \n \n );\n};\nexport default SlpWelcomeSectionList;\n","import styled from 'styled-components';\nimport { Col, Row } from 'react-bootstrap';\n\nexport const SLPMainContainer = styled.div`\n color: #00483b;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-size: 18px;\n line-height: 130%;\n letter-spacing: 0.02em;\n width: 100%;\n @media (max-width: 991px) {\n font-size: 16px;\n }\n`;\n\nexport const InnerBody = styled.div`\n width: 700px;\n margin: 0 auto;\n padding: 60px 0;\n @media (max-width: 991px) {\n width: 100%;\n padding: 35px;\n }\n`;\nexport const HeaderH2 = styled.h2`\n text-align: center;\n position: relative;\n color: rgb(0, 69, 124);\n font-size: 36px;\n line-height: 46px;\n margin: 0 0 35px 0;\n padding: 0;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-weight: normal !important;\n @media (max-width: 991px) {\n margin-bottom: 20px;\n font-size: 26px;\n line-height: 33px;\n }\n`;\nexport const HeaderH3 = styled.h3`\n text-align: ${(props) => props.textAlign};\n position: relative;\n margin: 0 0 35px 0;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-size: 32px;\n line-height: 37px;\n font-weight: normal !important;\n color: #00a6e8;\n @media (max-width: 991px) {\n font-size: 25px;\n line-height: 30px;\n }\n`;\n\nexport const Columns = styled.div`\n :after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: ' ';\n clear: both;\n height: 0;\n }\n`;\n\nexport const HorizontalBreak = styled.hr`\n height: 1px;\n border: none;\n background: rgba(0, 0, 0, 0.15);\n margin: 30px 0;\n clear: both;\n @media (max-width: 991px) {\n margin: 25px 0;\n }\n`;\nexport const ColumnThird = styled(Col)`\n width: 30%;\n text-align: center;\n position: relative;\n border-right: 1px solid #ededed;\n padding: 7px 25px 3px 25px !important;\n :last-child {\n border: none;\n }\n p {\n margin: 0 !important;\n }\n @media (max-width: 991px) {\n padding: 15px 0 !important;\n width: 100%;\n max-width: 320px;\n margin: 0 auto;\n border: none;\n border-bottom: 1px solid #ededed;\n ul:first-child {\n margin-top: -30px !important;\n }\n }\n`;\n\nexport const HeadingH4 = styled.h4`\n padding: 0 0 15px 0;\n margin: 0 0 35px 0;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-size: 24px;\n line-height: 29px;\n color: rgba(0, 0, 0, 0.6);\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n font-weight: normal !important;\n @media (max-width: 1399px) {\n font-size: 22px;\n line-height: 27px;\n margin-bottom: 30px;\n }\n @media (max-width: 767px) {\n font-size: 20px;\n line-height: 25px;\n }\n`;\n\nexport const ParaText = styled.p`\n margin-bottom: 0;\n @media (max-width: 1399px) {\n margin-bottom: 30px;\n }\n i {\n font-style: italic;\n margin-bottom: 0;\n font-size: 16px;\n line-height: 24px;\n @media (max-width: 1399px) {\n font-size: 15px;\n line-height: 22px;\n }\n @media (max-width: 767px) {\n font-size: 13px;\n line-height: 20px;\n }\n }\n a {\n margin-bottom: 0 !important;\n }\n code {\n margin: 0;\n }\n`;\nexport const OrderedList = styled.ol`\n margin: 0 0 30px 0;\n padding: 0;\n list-style-type: none;\n counter-reset: standard-counter;\n`;\nexport const ListItem = styled.li`\n padding: 0 0 15px 50px;\n\n background-size: 30px auto;\n list-style: none;\n margin: 0;\n @media (max-width: 767px) {\n padding-top: 1px;\n padding-left: 40px;\n background-position: 0 0;\n background-size: 25px auto;\n }\n`;\nexport const LinkStyle = styled.a`\n text-decoration: none;\n color: #00a6e8;\n transition: 0.25s ease-out;\n`;\nexport const UnorderedList = styled.ul`\n margin: 0 0 30px 0;\n padding: 0;\n`;\n\nexport const HeadingContainer = styled.div`\n width: 580px;\n margin: 0 auto;\n text-align: center;\n letter-spacing: 0.02em;\n @media (max-width: 991px) {\n width: 100%;\n }\n`;\n\nexport const RowStyle = styled(Row)`\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: center;\n align-items: stretch;\n @media (max-width: 991px) {\n display: block;\n }\n`;\n"],"names":["SlpWelcomeSectionList","sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","textAlign","INLINES","href","isExternalUrlhref","data","uri","addTrailingSlash","process","target","isExternalUrl","renderText","text","split","flatMap","i","key","header","trim","subtext","listDetails","documentToReactComponents","JSON","parse","raw","className","list","map","section","index","type","sectionList","SectionComponent","loadable","xs","lg","SLPMainContainer","styled","InnerBody","HeaderH2","HeaderH3","props","Columns","HorizontalBreak","ColumnThird","Col","HeadingH4","ParaText","OrderedList","ListItem","LinkStyle","UnorderedList","HeadingContainer","RowStyle","Row"],"sourceRoot":""}