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AA,oCAAAC,YAAA,gBAAXJ,CAAW,mOAiBzBgB,EAAYhB,EAAAA,QAAOiB,GAAEf,WAAA,CAAAC,YAAA,kCAAAC,YAAA,gBAATJ,CAAS,+VAoBrBkB,EAAWlB,EAAAA,QAAOmB,EAACjB,WAAA,CAAAC,YAAA,iCAAAC,YAAA,gBAARJ,CAAQ,+RAuBnBoB,EAAcpB,EAAAA,QAAOqB,GAAEnB,WAAA,CAAAC,YAAA,oCAAAC,YAAA,gBAATJ,CAAS,sFAMvBsB,EAAWtB,EAAAA,QAAOuB,GAAErB,WAAA,CAAAC,YAAA,iCAAAC,YAAA,iBAATJ,CAAS,6LAapBwB,EAAYxB,EAAAA,QAAOyB,EAACvB,WAAA,CAAAC,YAAA,kCAAAC,YAAA,iBAARJ,CAAQ,mEAKpB0B,EAAgB1B,EAAAA,QAAO2B,GAAEzB,WAAA,CAAAC,YAAA,sCAAAC,YAAA,iBAATJ,CAAS,kCAKzB4B,EAAmB5B,EAAAA,QAAOC,IAAGC,WAAA,CAAAC,YAAA,yCAAAC,YAAA,iBAAVJ,CAAU,4G","sources":["webpack://islandpetro/./src/components/slpSectionList/slpSectionList.js","webpack://islandpetro/./src/components/slpSectionList/slpSectionListStyles.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 './slpSectionListStyles';\nimport { addTrailingSlash, isExternalUrlhref } from '../../utils';\n\nconst SlpSectionList = ({ 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 {sectionData && (\n <>\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 `../../components/${section?.type}/${section?.type}`\n )\n );\n return (\n \n \n \n );\n }\n })}\n \n \n \n \n )}\n \n \n );\n};\nexport default SlpSectionList;\n","import styled from 'styled-components';\nimport { Col } from 'react-bootstrap';\n\nexport const SLPMainContainer = styled.div`\n position: relative;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-size: 20px;\n line-height: 32px;\n margin: 0 auto;\n padding: 0;\n justify-content: center;\n text-align: center;\n color: rgba(0, 0, 0, 0.6);\n @media (max-width: 1399px) {\n font-size: 20px;\n line-height: 32px;\n }\n @media (max-width: 767px) {\n font-size: 16px;\n line-height: 24px;\n }\n`;\n\nexport const Body = styled.div`\n padding: 40px 110px 0px;\n @media (max-width: 991px) {\n padding: 20px;\n }\n`;\nexport const HeaderH2 = styled.h2`\n text-align: ${(props) => (props?.$textAlign ? 'left' : 'center')};\n position: relative;\n color: #00493b;\n font-size: 36px;\n line-height: 46px;\n padding: 50px 0 0 0;\n margin: 0 0 25px 0;\n font-weight: normal !important;\n @media (max-width: 991px) {\n font-size: 30px;\n line-height: 35px;\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 position: relative;\n padding-right: 50px !important;\n :last-child {\n padding-right: 0px !important;\n }\n @media (max-width: 991px) {\n width: 100%;\n padding: 0px !important;\n margin-bottom: 0 !important;\n\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: 40px;\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`;\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: 600px;\n margin: 0 auto;\n text-align: center;\n letter-spacing: 0.02em;\n @media (max-width: 991px) {\n width: 100%;\n }\n`;\n"],"names":["SlpSectionList","_ref","_sectionData$header","_sectionData$subtext","_sectionData$listDeta","_sectionData$list","sectionData","optionsMainStyle","renderNode","BLOCKS","HEADING_2","node","children","React","Styled","textAlign","HEADING_3","HEADING_4","PARAGRAPH","UL_LIST","LIST_ITEM","INLINES","HYPERLINK","_node$data","_node$data2","_node$data3","href","isExternalUrlhref","data","uri","addTrailingSlash","process","renderText","text","split","flatMap","i","key","header","trim","subtext","listDetails","documentToReactComponents","JSON","parse","raw","Row","className","list","map","section","index","type","sectionList","includes","SectionComponent","loadable","resolved","chunkName","replace","isReady","props","resolve","__webpack_modules__","importAsync","requireAsync","then","requireSync","id","__webpack_require__","lg","SLPMainContainer","styled","div","withConfig","displayName","componentId","Body","HeaderH2","h2","$textAlign","HeaderH3","h3","Columns","HorizontalBreak","hr","ColumnThird","Col","HeadingH4","h4","ParaText","p","OrderedList","ol","ListItem","li","LinkStyle","a","UnorderedList","ul","HeadingContainer"],"sourceRoot":""}