{"version":3,"file":"components-blueCardHeader-blueCardHeader-8fdab256cdad40bf6d19.js","mappings":"+LA6BA,UAxBuB,SAAC,GAAqB,IAAD,IAAlBA,EAAkB,EAAlBA,YAClBC,EAAmB,CACvBC,YAAU,OACPC,EAAAA,OAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,KAAD,KAAkBA,IAFZ,EAIPF,EAAAA,OAAAA,WAAmB,SAACC,EAAMC,GAAP,OAClB,gBAAC,KAAD,KAAmBA,IALb,GAQVC,WAAY,SAACC,GAAD,OACVA,EAAKC,MAAM,MAAMC,SAAQ,SAACF,EAAMG,GAAP,MAAa,CAACA,EAAI,GAAK,sBAAIC,IAAKD,IAAOH,QAGpE,OACE,gBAAC,WAAD,MACGP,MAAAA,OAAA,EAAAA,EAAaY,kBACZC,EAAAA,EAAAA,GACEC,KAAKC,MAAMf,MAAAA,GAAX,UAAWA,EAAaY,sBAAxB,aAAW,EAA6BI,KACxCf","sources":["webpack://commercial-ultramar/./src/components/blueCardHeader/blueCardHeader.js"],"sourcesContent":["import React from 'react';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport { BLOCKS } from '@contentful/rich-text-types';\nimport { BlueCardHeading, BlueCardHeading3 } from '../../styles';\n\nconst BlueCardHeader = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.HEADING_1]: (node, children) => (\n {children}\n ),\n [BLOCKS.HEADING_3]: (node, children) => (\n {children}\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 BlueCardHeader;\n"],"names":["sectionData","optionsMainStyle","renderNode","BLOCKS","node","children","renderText","text","split","flatMap","i","key","contentDetails","documentToReactComponents","JSON","parse","raw"],"sourceRoot":""}