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AiB,SAAAlG,IAAAiF,MAAA,CAAAkB,gBAAAnG,IAAAoG,KAAA,CAAAC,UAAA5G,EAAA6G,SAAAtG,IAAAiF,MAAA,CAAA3C,MAAAtC,IAAAiF,MAAA,CAAAsB,YAAAvG,IAAAiF,MAAA,CAAAuB,iBAAAxG,IAAAiF,MAAA,CAAAwB,eAAAzG,IAAAiF,MAAA,CAAAyB,YAAAhH,EAAAiH,gBAAA3G,IAAA4F,IAAA,KAAA5F,IAAA6E,KAAA,EAAApC,OAAAzC,IAAA8E,KAAA,EAAAC,YAAA/E,IAAAgF,KAAA,sBAAAnC,KAAA7C,IAAAiF,MAAA,CAAAvC,KAAAxC,EAAAqF,UAAA,CAAAU,YAAAjG,IAAAiF,MAAA,CAAA3C,MAAAtC,IAAAiF,MAAA,CAAAsB,YAAAvG,IAAAiF,MAAA,CAAAP,SAAA1E,IAAAmF,MAAA,CAAAyB,iBAAA5G,IAAAiF,MAAA,CAAAzB,eAAA/D,EAAAoH,gBAAApH,CAAA","sources":["webpack://_N_E/./components/AdditionalReadingBlock/AdditionalReadingBlock.js","webpack://_N_E/./types/index.js","webpack://_N_E/"],"sourcesContent":["import React from 'react';\nimport LazyLoad from 'react-lazyload';\nimport PropTypes from 'prop-types';\nimport ImageFactory from '../../adapters/cloudinary/ImageFactory';\nimport Block from '../../adapters/helpers/Block';\nimport { IArticleOverview } from '../../types';\nimport { AdditionalReadingBlockConstants } from '../../adapters/helpers/Constants'\nimport dynamic from 'next/dynamic';\nimport { optimizeImage } from '../../adapters/helpers/pagespeedHelper';\nconst Heading = dynamic(() => import('../Heading/Heading'))\n\nconst IAdditionalReadingProps = {\n contentType: PropTypes.oneOf([AdditionalReadingBlockConstants.additionalReadingBlock]),\n className: PropTypes.string,\n classNames: PropTypes.string, // contentful misspelling\n name: PropTypes.string,\n title: PropTypes.string,\n anchorId: PropTypes.string,\n isLegacyLayout: PropTypes.bool,\n articles: PropTypes.arrayOf(IArticleOverview),\n};\n\nexport default function AdditionalReadingBlock(props) {\n const { extraAttributes } = props;\n\n const block = new Block(props);\n const fields = block.getFields();\n\n return (\n \n );\n}\n\nAdditionalReadingBlock.propTypes = {\n document: PropTypes.shape({\n fields: PropTypes.exact(IAdditionalReadingProps),\n }),\n extraAttributes: PropTypes.shape({\n entity: PropTypes.shape({\n relatedArticles: PropTypes.arrayOf(IArticleOverview),\n }),\n }),\n};\n\nexport function AdditionalReading(props) {\n const { classNames, className = classNames } = props;\n const { title, anchorId, articles, isLegacyLayout} = props;\n\n if (!articles || articles.length === 0) {\n return null;\n }\n\n const variationB = (articles.length <= 2);\n articles.map((article) => {\n if (article.fields?.slug == null) {\n console.info('SLUG IS NULL FOR ', article?.fields?.name);\n }\n });\n return (\n
\n \n {title}\n \n\n
\n \n
\n
\n );\n}\n\nAdditionalReading.propTypes = IAdditionalReadingProps;\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([[2175],{22175:function(e,i,n){n.r(i),n.d(i,{AdditionalReading:function(){return b},default:function(){return h}});var t=n(930),a=n.n(t),l=(n(67294),n(1216)),r=n(42456),s=n(40483),d=(n(22714),n(24036)),o=n(5152),c=n.n(o),u=n(19271),g=n(85893);function f(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);i&&(t=t.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,t)}return n}function m(e){for(var i=1;i