{"version":3,"file":"components-stickyButton-stickyButton-5364a74dde8502116c8a.js","mappings":"wMAyCA,UAhCqB,SAAHA,GAAyB,IAADC,EAAAC,EAAlBC,EAAWH,EAAXG,YAChBC,EAAmB,CACvBC,YAAUJ,EAAA,GAAAA,EACPK,EAAAA,QAAAA,WAAoB,SAACC,EAAMC,GAAQ,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAClCC,EAAAA,cAACC,EAAAA,kBAAwB,CACvBC,MACEC,EAAAA,EAAAA,IAAkBT,SAAU,QAANE,EAAJF,EAAMU,YAAI,IAAAR,OAAN,EAAJA,EAAYS,KAC1BX,SAAU,QAANG,EAAJH,EAAMU,YAAI,IAAAP,OAAN,EAAJA,EAAYQ,KACZC,EAAAA,EAAAA,IACEC,6CAAgCb,SAAU,QAANI,EAAJJ,EAAMU,YAAI,IAAAN,OAAN,EAAJA,EAAYO,MAGpDG,QAAQC,EAAAA,EAAAA,IAAcf,SAAU,QAANK,EAAJL,EAAMU,YAAI,IAAAL,OAAN,EAAJA,EAAYM,KAAO,SAAW,SAEnDV,EACwB,EAC5BP,GAEHsB,WAAY,SAACC,GAAI,OACfA,EAAKC,MAAM,MAAMC,SAAQ,SAACF,EAAMG,GAAC,MAAK,CAACA,EAAI,GAAKd,EAAAA,cAAA,MAAIe,IAAKD,IAAOH,EAAK,GAAC,GAG1E,OACEX,EAAAA,cAACA,EAAAA,SAAc,MACZV,aAAW,EAAXA,EAAa0B,kBACZC,EAAAA,EAAAA,GACEC,KAAKC,MAAM7B,SAA2B,QAAhBD,EAAXC,EAAa0B,sBAAc,IAAA3B,OAAhB,EAAXA,EAA6B+B,KACxC7B,GAIV,C,kFCtCa8B,E,QAAoBC,QAAAA,EAAAA,WAAQ,CAAAC,YAAA,uCAAAC,YAAA,gBAARF,CAAQ,gX","sources":["webpack://chevronParkland/./src/components/stickyButton/stickyButton.js","webpack://chevronParkland/./src/components/stickyButton/stickyButtonStyle.js"],"sourcesContent":["import { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { INLINES } from '@contentful/rich-text-types';\nimport * as React from 'react';\nimport isExternalUrl, {\n addTrailingSlash,\n isExternalUrlhref,\n} from '../../utils';\nimport * as Styled from './stickyButtonStyle';\n\nconst StickyButton = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\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 {sectionData?.contentDetails &&\n documentToReactComponents(\n JSON.parse(sectionData?.contentDetails?.raw),\n optionsMainStyle\n )}\n \n );\n};\nexport default StickyButton;\n","import styled from 'styled-components';\n\nexport const StickyButtonStyle = styled.a`\n display: block;\n position: fixed;\n top: 300px;\n right: 0;\n z-index: 99;\n height: auto;\n padding: 20px;\n font-family: 'Gotham-Bold', arial, sans-serif;\n font-size: 14px;\n line-height: 14px;\n text-transform: uppercase;\n color: #fff;\n background: #1fb25a;\n border-top-left-radius: 7px;\n border-bottom-left-radius: 7px;\n text-decoration: none;\n writing-mode: tb-rl;\n cursor: pointer;\n :hover {\n background: #24a0df;\n color: #fff;\n }\n`;\n"],"names":["_ref","_renderNode","_sectionData$contentD","sectionData","optionsMainStyle","renderNode","INLINES","node","children","_node$data","_node$data2","_node$data3","_node$data4","React","Styled","href","isExternalUrlhref","data","uri","addTrailingSlash","process","target","isExternalUrl","renderText","text","split","flatMap","i","key","contentDetails","documentToReactComponents","JSON","parse","raw","StickyButtonStyle","styled","displayName","componentId"],"sourceRoot":""}