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,CAACA,EAAI,GAAK,sBAAIC,IAAKD,IAAOH,EAAK,GAAC,GAE5E,OACE,gCACE,gBAAC,UAAc,MACZ3B,aAAW,EAAXA,EAAagC,kBACZC,EAAAA,EAAAA,GACEC,KAAKC,MAAMnC,SAA2B,QAAhB,EAAXA,EAAagC,sBAAc,WAAhB,EAAX,EAA6BI,KACxCvB,IAKZ,C,iJCvDawB,EAAUC,EAAAA,QAAAA,IAAAA,WAAU,wEAAVA,CAAU,sHAOpBC,EAAYD,EAAAA,QAAAA,EAAAA,WAAQ,0EAARA,CAAQ,gHAUpBE,EAAWF,EAAAA,QAAAA,EAAAA,WAAQ,yEAARA,CAAQ,se","sources":["webpack://bluewave-energy/./src/dynamicComponents/faqDisclaimer/faqDisclaimer.js","webpack://bluewave-energy/./src/dynamicComponents/faqDisclaimer/faqDisclaimerStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './faqDisclaimerStyles';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { useEffect } from 'react';\nimport isExternalUrl, {\n addTrailingSlash,\n isExternalUrlhref,\n} from '../../utils';\n\nconst FaqDisclaimer = ({ sectionData, location }) => {\n useEffect(async () => {\n if (sectionData?.elementId === location?.hash?.replace('#', '')) {\n const waitedID = await new Promise((resolve) => {\n document?.getElementById(sectionData?.elementId) && resolve(true);\n });\n if (waitedID) {\n setTimeout(() => {\n window.location.href = `#${sectionData?.elementId}`;\n }, 500);\n }\n }\n }, [sectionData?.elementId]);\n\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (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 return (\n <>\n \n {sectionData?.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsMainStyle\n )}\n \n \n );\n};\nexport default FaqDisclaimer;\n","import styled from 'styled-components';\nimport LinkArrowImage from '../../images/arrow-blue.png';\n\nexport const MainDiv = styled.div`\n color: #666;\n font-family: 'Figtree-Regular', arial, sans-serif;\n font-size: 12px;\n line-height: 18px;\n letter-spacing: 0.02em;\n`;\nexport const LinkStyle = styled.a`\n cursor: pointer;\n text-decoration: none;\n color: #9fb577;\n :hover {\n text-decoration: none;\n color: #037ec4;\n outline: none;\n }\n`;\nexport const ParaText = styled.p`\n margin: 0 0 30px 0;\n padding: 0;\n b {\n font-family: 'Figtree-Bold', arial, sans-serif;\n font-weight: bold;\n }\n a {\n cursor: pointer;\n text-decoration: none;\n text-decoration: none;\n code {\n color: #9fb577 !important;\n }\n }\n code {\n font-size: 12px;\n line-height: 18px;\n color: #666;\n font-family: 'Figtree-Regular', arial, sans-serif;\n }\n\n i {\n font-size: 19px;\n line-height: 28px;\n color: #666;\n font-family: 'Figtree-Regular', arial, sans-serif;\n letter-spacing: 0.02em;\n font-style: normal !important;\n @media (max-width: 767px) {\n font-size: 18px;\n line-height: 25px;\n }\n }\n`;\n"],"names":["sectionData","location","useEffect","elementId","hash","replace","Promise","resolve","document","getElementById","setTimeout","window","href","optionsMainStyle","renderNode","BLOCKS","node","children","INLINES","isExternalUrlhref","data","uri","addTrailingSlash","process","target","isExternalUrl","renderText","text","split","flatMap","i","key","contentDetails","documentToReactComponents","JSON","parse","raw","MainDiv","styled","LinkStyle","ParaText"],"sourceRoot":""}