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"sourcesContent":["import React from 'react';\nimport Block from '../../adapters/helpers/Block';\nimport dynamic from 'next/dynamic';\nconst Button = dynamic(()=>import('../Button/Button'))\nconst ObLink = dynamic(()=>import('../ObLink/ObLink'))\nconst Icon = dynamic(()=>import('../Icon/Icon'))\nimport Backdrop from '../Backdrop/Backdrop';\nconst Heading = dynamic(()=>import('../Heading/Heading'))\nimport {ArticleCategoryHeroBlockConstants, ContentConstants} from '../../adapters/helpers/Constants'\nconst Disclaimer = dynamic(()=>import('../Disclaimer/Disclaimer'))\nconst Image = dynamic(()=>import('../Image/Image'))\nimport { mediaQueryHOC } from '../../adapters/helpers/Hooks';\nimport DOMPurify from 'isomorphic-dompurify';\n\nfunction ArticleCategoryHeroBlock(props) {\n    const block = new Block(props);\n\n    const className = block.getFieldValue(ArticleCategoryHeroBlockConstants.classNames);\n    const anchorId = block.getAnchorId();\n\n    const title = block.getFieldValue(ArticleCategoryHeroBlockConstants.title);\n    const titleLevel = block.getFieldValue(ArticleCategoryHeroBlockConstants.titleLevel);\n    const body = block.getFieldValue(ArticleCategoryHeroBlockConstants.body);\n    const backgroundAsset = block.getFieldValue(ArticleCategoryHeroBlockConstants.backgroundAsset);\n    const mobileBackgroundAsset = block.getFieldValue(ArticleCategoryHeroBlockConstants.mobileBackgroundAsset);\n    const ctas = block.getFieldValue(ArticleCategoryHeroBlockConstants.ctas);\n    const disclaimer = block.getFieldValue(ArticleCategoryHeroBlockConstants.disclaimer);\n\n    const mainAsset = block.getFieldValue(ArticleCategoryHeroBlockConstants.mainAsset);\n    const mobileAsset = block.getFieldValue(ArticleCategoryHeroBlockConstants.mobileAsset);\n    const textToTheRight = block.getFieldValue(ArticleCategoryHeroBlockConstants.textToTheRight);\n    const backgroundColor = block.getFieldValue(ArticleCategoryHeroBlockConstants.backgroundColor);\n    const ariaLabel = block.getFieldValue(ArticleCategoryHeroBlockConstants.callToActionAriaLabel);\n\n    const mainCtaIsALink = block.getFieldValue(ContentConstants.callToActionIsALink);\n    const mainCtaBackgroundColor = block.getFieldValue(ContentConstants.ctaBackgroundColor);\n    const mainCtaLabel = block.getFieldValue(ContentConstants.callToActionLabel);\n    const mainCtaLink = block.getFieldValue(ContentConstants.callToActionLink);\n\n    const isWhiteText = false;\n    const isMedium = props?.isMedium;\n\n    return (\n        <div className={`ob-article-category-hero ${className}`} id={anchorId} style={{backgroundColor: backgroundColor || null}}>\n            <Backdrop>\n                <Backdrop.Image image={backgroundAsset} mobileImage={mobileBackgroundAsset}/>\n                <Backdrop.Content className='ob-article-category-hero-content'>\n                    <div className='ob-article-category-hero-wrapper'>\n                        {textToTheRight && !isMedium && (\n                            <Image image={mainAsset} />\n                        )}\n\n                        {isMedium && (\n                            <Image image={mobileAsset} />\n                        )}\n\n                        <div className='ob-article-category-hero-inner'>\n                            <Heading className='ob-article-category-hero-heading' tag={`h${titleLevel}`}>\n                                {title}\n                            </Heading>\n\n                            <p className='ob-article-category-hero-text'>\n                                {body}\n                            </p>\n\n                            <ul className='ob-article-category-hero-cta-list'>\n                                {ctas && ctas.map((cta, ctaIndex) => (\n                                    <li className='ob-article-category-hero-cta-item' key={ctaIndex}>\n                                        <a className='ob-article-category-hero-cta-link ob-link primaryGrey'\n                                            aria-label={cta?.fields?.linkAriaLabel}\n                                            title={cta?.fields?.linkAriaLabel}                                        \n                                            href={cta.fields.url}>\n                                            <Icon className='ob-article-category-hero-cta-icon'\n                                                name={ArticleCategoryHeroBlockConstants.chevronRight}\n                                                roundedIcon={ArticleCategoryHeroBlockConstants.blue} size={1.4}/>\n\n                                            {cta.fields.title}\n                                        </a>\n                                    </li>\n                                ))}\n                            </ul>\n                            {mainCtaLink &&\n                                <div className='ob-article-category-hero-obLink-container'>\n                                    {mainCtaIsALink ? (\n                                        <ObLink href={`${mainCtaLink}`}\n                                                className={`event_external_link ${mainCtaBackgroundColor === ContentConstants.White ? ContentConstants.white : ContentConstants.primaryGrey} ${isWhiteText ? ContentConstants.white : ContentConstants.primaryGrey}`}\n                                                dataActionDetail={mainCtaLink}\n                                                ariaLabel={title ? `${title}-${mainCtaLabel}-${ContentConstants.ctaName}` : mainCtaLabel}\n                                                title={title ? `${title}-${mainCtaLabel}-${ContentConstants.ctaName}` : mainCtaLabel}\n                                                icon={ContentConstants.chevronRight}>\n                                            <Icon name={ContentConstants.chevronRight} roundedIcon={isWhiteText ? ContentConstants.white : ContentConstants.blue} />\n                                            <span dangerouslySetInnerHTML={{__html: DOMPurify.sanitize(mainCtaLabel)}}></span>\n                                        </ObLink>\n                                    ) : (\n                                        <Button\n                                            whiteTheme={isWhiteText || mainCtaBackgroundColor === ContentConstants.White}\n                                            borderTheme={!isWhiteText && mainCtaBackgroundColor === ContentConstants.transparentWithBorder}\n                                            invertedTheme={isWhiteText && mainCtaBackgroundColor === ContentConstants.transparentWithBorder}\n                                            tag='a'\n                                            className={'event_external_link'}\n                                            ariaLabel={ariaLabel ? `${ariaLabel}` : mainCtaLabel}\n                                            title={ariaLabel ? `${ariaLabel}`: mainCtaLabel}\n                                            dataActionDetail={mainCtaLink}\n                                            href={mainCtaLink}>\n                                            {mainCtaLabel}\n                                        </Button>\n                                    )}\n                                </div>\n                            }\n                            {disclaimer &&\n                                <Disclaimer document={disclaimer} />\n                            }\n                        </div>\n                        {!textToTheRight && !isMedium && (\n                            <Image image={mainAsset} />\n                        )}\n                    </div>\n                </Backdrop.Content>\n            </Backdrop>\n        </div>\n    );\n}\n\nexport default mediaQueryHOC(ArticleCategoryHeroBlock);\n// This export is for unit testing (do not remove) :\nexport const ArticleCategoryHeroBlockTest = ArticleCategoryHeroBlock;\n","import PropTypes from 'prop-types';\n\nexport const IImageRendition = PropTypes.shape({\n    fields: PropTypes.exact({\n        contentType: PropTypes.oneOf(['imageRendition']),\n        name: PropTypes.string,\n        aspectRatio: PropTypes.number,\n        width: PropTypes.number,\n        height: PropTypes.number,\n        transformations: PropTypes.string,\n    }),\n});\n\nexport const ICloudinaryImage = PropTypes.shape({\n    fields: PropTypes.exact({\n        contentType: PropTypes.oneOf(['cloudinaryImage']),\n        name: PropTypes.string,\n        assetId: PropTypes.string.isRequired,\n        alternateText: PropTypes.string,\n        classNames: PropTypes.string,\n        forcedFormat: PropTypes.string,\n        imageRendition: IImageRendition,\n        isPreload: PropTypes.bool,\n        isBannerImage : PropTypes.bool\n    }),\n});\n\nexport const IPagePath = PropTypes.shape({\n    fields: PropTypes.exact({\n        contentType: PropTypes.oneOf(['pagePath']),\n        slug: PropTypes.string.isRequired,\n        disabled: PropTypes.bool,\n        searchable: PropTypes.bool,\n    }),\n});\n\nexport const ILabel = PropTypes.shape({\n    fields: PropTypes.exact({\n        contentType: PropTypes.oneOf(['label']),\n        text: PropTypes.string,\n    }),\n});\n\nexport const IProductOverview = PropTypes.shape({\n    fields: PropTypes.exact({\n        contentType: PropTypes.oneOf(['productOverview']),\n        name: PropTypes.string,\n        slug: IPagePath,\n        pageMapping: PropTypes.string,\n        uniqueId: PropTypes.string,\n        productVariants: PropTypes.array,\n        mainAsset: ICloudinaryImage,\n        surtitle: PropTypes.string,\n        title: PropTypes.string,\n        description: PropTypes.string,\n        shortDescription: PropTypes.string,\n        productBenefit: PropTypes.string,\n        buyNowLabel: ILabel,\n        isFullSizeImage: PropTypes.bool,\n    }),\n});\n\nexport const IArticleOverview = PropTypes.shape({\n    fields: PropTypes.exact({\n        contentType: PropTypes.oneOf(['articleOverview']),\n        name: PropTypes.string,\n        slug: IPagePath.isRequired,\n        pageMapping: PropTypes.string,\n        title: PropTypes.string,\n        description: PropTypes.string,\n        readTime: PropTypes.number,\n        twitterShareText: PropTypes.string,\n        thumbnailImage: ICloudinaryImage,\n        mobileThumbnail: ICloudinaryImage,\n    }),\n});\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8916],{8541:function(e,t,a){a.r(t),a.d(t,{ArticleCategoryHeroBlockTest:function(){return y}});a(67294);var n=a(40483),i=a(5152),r=a.n(i),l=a(99832),o=a(24036),c=a(71357),s=a(29238),d=a.n(s),u=a(85893),g=r()((function(){return a.e(9246).then(a.bind(a,99246))}),{loadableGenerated:{webpack:function(){return[99246]}}}),h=r()((function(){return a.e(1769).then(a.bind(a,61769))}),{loadableGenerated:{webpack:function(){return[61769]}}}),b=r()((function(){return Promise.resolve().then(a.bind(a,80713))}),{loadableGenerated:{webpack:function(){return[80713]}}}),m=r()((function(){return Promise.resolve().then(a.bind(a,92116))}),{loadableGenerated:{webpack:function(){return[92116]}}}),f=r()((function(){return a.e(7770).then(a.bind(a,77770))}),{loadableGenerated:{webpack:function(){return[77770]}}}),p=r()((function(){return Promise.resolve().then(a.bind(a,48084))}),{loadableGenerated:{webpack:function(){return[48084]}}});function x(e){var t=new n.Z(e),a=t.getFieldValue(o.DI.classNames),i=t.getAnchorId(),r=t.getFieldValue(o.DI.title),c=t.getFieldValue(o.DI.titleLevel),s=t.getFieldValue(o.DI.body),x=t.getFieldValue(o.DI.backgroundAsset),y=t.getFieldValue(o.DI.mobileBackgroundAsset),I=t.getFieldValue(o.DI.ctas),v=t.getFieldValue(o.DI.disclaimer),k=t.getFieldValue(o.DI.mainAsset),j=t.getFieldValue(o.DI.mobileAsset),T=t.getFieldValue(o.DI.textToTheRight),N=t.getFieldValue(o.DI.backgroundColor),F=t.getFieldValue(o.DI.callToActionAriaLabel),D=t.getFieldValue(o.Kd.callToActionIsALink),V=t.getFieldValue(o.Kd.ctaBackgroundColor),w=t.getFieldValue(o.Kd.callToActionLabel),A=t.getFieldValue(o.Kd.callToActionLink),K=null==e?void 0:e.isMedium;return(0,u.jsx)(\"div\",{className:\"ob-article-category-hero \".concat(a),id:i,style:{backgroundColor:N||null},children:(0,u.jsxs)(l.Z,{children:[(0,u.jsx)(l.Z.Image,{image:x,mobileImage:y}),(0,u.jsx)(l.Z.Content,{className:\"ob-article-category-hero-content\",children:(0,u.jsxs)(\"div\",{className:\"ob-article-category-hero-wrapper\",children:[T&&!K&&(0,u.jsx)(p,{image:k}),K&&(0,u.jsx)(p,{image:j}),(0,u.jsxs)(\"div\",{className:\"ob-article-category-hero-inner\",children:[(0,u.jsx)(m,{className:\"ob-article-category-hero-heading\",tag:\"h\".concat(c),children:r}),(0,u.jsx)(\"p\",{className:\"ob-article-category-hero-text\",children:s}),(0,u.jsx)(\"ul\",{className:\"ob-article-category-hero-cta-list\",children:I&&I.map((function(e,t){var a,n;return(0,u.jsx)(\"li\",{className:\"ob-article-category-hero-cta-item\",children:(0,u.jsxs)(\"a\",{className:\"ob-article-category-hero-cta-link ob-link primaryGrey\",\"aria-label\":null==e||null==(a=e.fields)?void 0:a.linkAriaLabel,title:null==e||null==(n=e.fields)?void 0:n.linkAriaLabel,href:e.fields.url,children:[(0,u.jsx)(b,{className:\"ob-article-category-hero-cta-icon\",name:o.DI.chevronRight,roundedIcon:o.DI.blue,size:1.4}),e.fields.title]})},t)}))}),A&&(0,u.jsx)(\"div\",{className:\"ob-article-category-hero-obLink-container\",children:D?(0,u.jsxs)(h,{href:\"\".concat(A),className:\"event_external_link \".concat(V===o.Kd.White?o.Kd.white:o.Kd.primaryGrey,\" \").concat(o.Kd.primaryGrey),dataActionDetail:A,ariaLabel:r?\"\".concat(r,\"-\").concat(w,\"-\").concat(o.Kd.ctaName):w,title:r?\"\".concat(r,\"-\").concat(w,\"-\").concat(o.Kd.ctaName):w,icon:o.Kd.chevronRight,children:[(0,u.jsx)(b,{name:o.Kd.chevronRight,roundedIcon:o.Kd.blue}),(0,u.jsx)(\"span\",{dangerouslySetInnerHTML:{__html:d().sanitize(w)}})]}):(0,u.jsx)(g,{whiteTheme:V===o.Kd.White,borderTheme:V===o.Kd.transparentWithBorder,invertedTheme:!1,tag:\"a\",className:\"event_external_link\",ariaLabel:F?\"\".concat(F):w,title:F?\"\".concat(F):w,dataActionDetail:A,href:A,children:w})}),v&&(0,u.jsx)(f,{document:v})]}),!T&&!K&&(0,u.jsx)(p,{image:k})]})})]})})}t.default=(0,c.Ui)(x);var y=x},22714:function(e,t,a){a.d(t,{Pd:function(){return l},v9:function(){return s}});var n=a(45697),i=a.n(n),r=i().shape({fields:i().exact({contentType:i().oneOf([\"imageRendition\"]),name:i().string,aspectRatio:i().number,width:i().number,height:i().number,transformations:i().string})}),l=i().shape({fields:i().exact({contentType:i().oneOf([\"cloudinaryImage\"]),name:i().string,assetId:i().string.isRequired,alternateText:i().string,classNames:i().string,forcedFormat:i().string,imageRendition:r,isPreload:i().bool,isBannerImage:i().bool})}),o=i().shape({fields:i().exact({contentType:i().oneOf([\"pagePath\"]),slug:i().string.isRequired,disabled:i().bool,searchable:i().bool})}),c=i().shape({fields:i().exact({contentType:i().oneOf([\"label\"]),text:i().string})}),s=i().shape({fields:i().exact({contentType:i().oneOf([\"productOverview\"]),name:i().string,slug:o,pageMapping:i().string,uniqueId:i().string,productVariants:i().array,mainAsset:l,surtitle:i().string,title:i().string,description:i().string,shortDescription:i().string,productBenefit:i().string,buyNowLabel:c,isFullSizeImage:i().bool})});i().shape({fields:i().exact({contentType:i().oneOf([\"articleOverview\"]),name:i().string,slug:o.isRequired,pageMapping:i().string,title:i().string,description:i().string,readTime:i().number,twitterShareText:i().string,thumbnailImage:l,mobileThumbnail:l})})}}]);"],"names":["self","webpackChunk_N_E","push","e","t","a","r","d","ArticleCategoryHeroBlockTest","y","n","i","l","o","c","s","u","g","then","bind","loadableGenerated","webpack","h","b","Promise","resolve","m","f","p","x","Z","getFieldValue","DI","classNames","getAnchorId","title","titleLevel","body","backgroundAsset","mobileBackgroundAsset","I","ctas","v","disclaimer","k","mainAsset","j","mobileAsset","T","textToTheRight","N","backgroundColor","F","callToActionAriaLabel","D","Kd","callToActionIsALink","V","ctaBackgroundColor","w","callToActionLabel","A","callToActionLink","K","isMedium","jsx","className","concat","id","style","children","jsxs","Image","image","mobileImage","Content","tag","map","fields","linkAriaLabel","href","url","name","chevronRight","roundedIcon","blue","size","White","white","primaryGrey","dataActionDetail","ariaLabel","ctaName","icon","dangerouslySetInnerHTML","__html","sanitize","whiteTheme","borderTheme","transparentWithBorder","invertedTheme","document","default","Ui","Pd","v9","shape","exact","contentType","oneOf","string","aspectRatio","number","width","height","transformations","assetId","isRequired","alternateText","forcedFormat","imageRendition","isPreload","bool","isBannerImage","slug","disabled","searchable","text","pageMapping","uniqueId","productVariants","array","surtitle","description","shortDescription","productBenefit","buyNowLabel","isFullSizeImage","readTime","twitterShareText","thumbnailImage","mobileThumbnail"],"sourceRoot":""}