{"version":3,"file":"dynamicComponents-slpStickyNote-slpStickyNote-1edde6a8f6131dd65ed1.js","mappings":"gNA0CA,UAjCsB,SAAH,GAAyB,IAAD,IAAlBA,EAAW,EAAXA,YACjBC,EAAmB,CACvBC,YAAU,OACPC,EAAAA,OAAAA,WAAmB,SAACC,EAAMC,GAAQ,OACjC,gBAAC,WAAe,KAAEA,EAA2B,EAC7C,EACDC,EAAAA,QAAAA,WAAoB,SAACF,EAAMC,GAAQ,mBAClC,gBAAC,cAAkB,CACnBE,MACEC,EAAAA,EAAAA,IAAkBJ,SAAU,QAAN,EAAJA,EAAMK,YAAI,WAAN,EAAJ,EAAYC,KAC1BN,SAAU,QAAN,EAAJA,EAAMK,YAAI,WAAN,EAAJ,EAAYC,KACZC,EAAAA,EAAAA,IAAiBC,iCAAgCR,SAAU,QAAN,EAAJA,EAAMK,YAAI,WAAN,EAAJ,EAAYC,MAEnEG,QAAQC,EAAAA,EAAAA,IAAcV,SAAU,QAAN,EAAJA,EAAMK,YAAI,WAAN,EAAJ,EAAYC,KAAO,SAAW,SAEjDL,EACkB,EACrB,GAGJU,WAAY,SAACC,GAAI,OACfA,EAAKC,MAAM,MAAMC,SAAQ,SAACF,EAAMG,GAAC,MAAK,CAACA,EAAI,GAAK,sBAAIC,IAAKD,IAAOH,EAAK,GAAC,GAE1E,OACE,uBAAKK,GAAIrB,aAAW,EAAXA,EAAasB,YACnBtB,aAAW,EAAXA,EAAauB,kBACZC,EAAAA,EAAAA,GACEC,KAAKC,MAAM1B,SAA2B,QAAhB,EAAXA,EAAauB,sBAAc,WAAhB,EAAX,EAA6BI,KACxC1B,GAIV,C,sHCvCa2B,EAAcC,EAAAA,QAAAA,EAAAA,WAAQ,4EAARA,CAAQ,6rBAuCtBC,EAAWD,EAAAA,QAAAA,EAAAA,WAAQ,yEAARA,CAAQ,0M","sources":["webpack://bluewave-energy/./src/dynamicComponents/slpStickyNote/slpStickyNote.js","webpack://bluewave-energy/./src/dynamicComponents/slpStickyNote/slpStickyNoteStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './slpStickyNoteStyles';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport isExternalUrl, {\n addTrailingSlash,\n isExternalUrlhref,\n } from '../../utils';\n\nconst SlpStickyNote = ({ sectionData }) => {\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\n renderText: (text) =>\n text.split('\\n').flatMap((text, i) => [i > 0 &&
, text]),\n };\n return (\n
\n {sectionData?.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsMainStyle\n )}\n
\n );\n};\nexport default SlpStickyNote;\n","import styled from 'styled-components';\n\nexport const ButtonStyle = styled.a`\n text-decoration: none;\n display: block;\n position: fixed;\n top: 280px;\n right: 0;\n z-index: 999999;\n padding: 13px 23px 15px 23px;\n background: rgb(0, 166, 232);\n font-family: 'Figtree-Bold', arial, sans-serif;\n font-size: 14px;\n line-height: 14px;\n text-transform: uppercase;\n color: #fff;\n font-weight: bold !important;\n border-bottom-right-radius: 7px;\n border-bottom-left-radius: 7px;\n transform: rotate(90deg);\n transform-origin: 100% 0;\n letter-spacing: 0.02em;\n :hover {\n background: rgb(237, 123, 34);\n color: #fff;\n padding-top: 20px;\n text-decoration: none;\n }\n @media (max-width: 767px) {\n top: auto;\n bottom: 0;\n right: 10px;\n padding: 10px 15px;\n font-size: 14px;\n border-radius: 0;\n border-top-left-radius: 7px;\n border-top-right-radius: 7px;\n transform: rotate(0);\n transform-origin: 100% 0;\n }\n`;\nexport const ParaText = styled.p`\n margin: 0px;\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`;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","INLINES","href","isExternalUrlhref","data","uri","addTrailingSlash","process","target","isExternalUrl","renderText","text","split","flatMap","i","key","id","elementId","contentDetails","documentToReactComponents","JSON","parse","raw","ButtonStyle","styled","ParaText"],"sourceRoot":""}