{"version":3,"file":"components-bottomStickyNote-bottomStickyNote-303d4414a5485dbc0208.js","mappings":"+MA0CA,UApC6B,SAAC,GAAqB,IAAD,IAAlBA,EAAkB,EAAlBA,YACxBC,EAAmB,CACvBC,YAAU,OACPC,EAAAA,OAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,WAAD,KAAkBA,IAFZ,EAKPC,EAAAA,QAAAA,WAAoB,SAACF,EAAMC,GAAP,mBACnB,gBAAC,cAAD,CACEE,MACEC,EAAAA,EAAAA,IAAkBJ,MAAAA,GAAD,UAACA,EAAMK,YAAP,aAAC,EAAYC,KAC1BN,MAAAA,GADJ,UACIA,EAAMK,YADV,aACI,EAAYC,KACbC,EAAAA,EAAAA,IACEC,4CAAgCR,MAAAA,GAAhC,UAAgCA,EAAMK,YAAtC,aAAgC,EAAYC,MAGnDG,QAAQC,EAAAA,EAAAA,IAAcV,MAAAA,GAAD,UAACA,EAAMK,YAAP,aAAC,EAAYC,KAAO,SAAW,SAEnDL,IAhBG,GAqBVU,WAAY,SAACC,GAAD,OACVA,EAAKC,MAAM,MAAMC,SAAQ,SAACF,EAAMG,GAAP,MAAa,CAACA,EAAI,GAAK,sBAAIC,IAAKD,IAAOH,QAEpE,OACE,4BACGhB,MAAAA,OAAA,EAAAA,EAAaqB,kBACZC,EAAAA,EAAAA,GACEC,KAAKC,MAAMxB,MAAAA,GAAX,UAAWA,EAAaqB,sBAAxB,aAAW,EAA6BI,KACxCxB,M,oHCnCGyB,EAAcC,EAAAA,QAAAA,EAAAA,WAAH,6EAAGA,CAAH,yYAyBXC,EAAWD,EAAAA,QAAAA,EAAAA,WAAH,0EAAGA,CAAH","sources":["webpack://commercial-ultramar/./src/components/bottomStickyNote/bottomStickyNote.js","webpack://commercial-ultramar/./src/components/bottomStickyNote/bottomStickyNoteStyle.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './bottomStickyNoteStyle';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport isExternalUrl, { addTrailingSlash, isExternalUrlHref } from '../../utils';\n\nconst OrderFuelOnlinePopup = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\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 OrderFuelOnlinePopup;\n","import styled from 'styled-components';\n\nexport const ButtonStyle = styled.a`\n display: block;\n position: fixed;\n z-index: 99;\n bottom: 0;\n left: 0;\n padding: 18px 25px 12px 25px;\n font-family: 'MrAlex', arial, sans-serif;\n font-size: 20px;\n line-height: 20px;\n text-transform: uppercase;\n color: #00539d;\n background: #ffc905;\n border-top-right-radius: 10px;\n transition: all 0.25s ease-out;\n :hover {\n padding-bottom: 18px;\n color: #fff;\n background: #00a6e8;\n }\n @media (max-width: 767px) {\n font-size: 16px;\n line-height: 16px;\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`;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","INLINES","href","isExternalUrlHref","data","uri","addTrailingSlash","process","target","isExternalUrl","renderText","text","split","flatMap","i","key","contentDetails","documentToReactComponents","JSON","parse","raw","ButtonStyle","styled","ParaText"],"sourceRoot":""}