{"version":3,"file":"components-slpStickyNote-slpStickyNote-87e34e9627e6408fbf68.js","mappings":"gNAuCA,UAjCsB,SAAC,GAAqB,IAAD,IAAlBA,EAAkB,EAAlBA,YACjBC,EAAmB,CACvBC,YAAU,OACPC,EAAAA,OAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,WAAD,KAAkBA,IAFZ,EAIPC,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,KACZC,EAAAA,EAAAA,IAAiBC,kCAAgCR,MAAAA,GAAhC,UAAgCA,EAAMK,YAAtC,aAAgC,EAAYC,MAEnEG,QAAQC,EAAAA,EAAAA,IAAcV,MAAAA,GAAD,UAACA,EAAMK,YAAP,aAAC,EAAYC,KAAO,SAAW,SAEnDL,IAbG,GAkBVU,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,oHChCGyB,EAAcC,EAAAA,QAAAA,EAAAA,WAAH,0EAAGA,CAAH,utBA4CXC,EAAWD,EAAAA,QAAAA,EAAAA,WAAH,uEAAGA,CAAH","sources":["webpack://commercial-ultramar/./src/components/slpStickyNote/slpStickyNote.js","webpack://commercial-ultramar/./src/components/slpStickyNote/slpStickyNoteStyle.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './slpStickyNoteStyle';\nimport { BLOCKS, INLINES } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport isExternalUrl, { addTrailingSlash, isExternalUrlHref } 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: 320px;\n right: 0;\n z-index: 999999;\n padding: 13px 23px 15px 23px;\n background: #fec119;\n font-family: 'MrAlex', arial, sans-serif;\n font-size: 18px;\n line-height: 18px;\n text-transform: uppercase;\n color: #00539f;\n border-bottom-right-radius: 7px;\n border-bottom-left-radius: 7px;\n transform: rotate(90deg);\n transform-origin: 100% 0;\n :hover {\n background: #00539f;\n color: #fff;\n padding-top: 20px;\n text-decoration: none;\n }\n @media (max-width: 870px) {\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 color: #00539f;\n height: auto;\n line-height: 16px;\n text-transform: uppercase;\n :hover {\n padding: 10px 15px;\n }\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","contentDetails","documentToReactComponents","JSON","parse","raw","ButtonStyle","styled","ParaText"],"sourceRoot":""}