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C,EACNK,YAAanB,IAAAA,MAAAA,CACboB,SAAUpB,IAAAA,MAAAA,CACVqB,gBAAiBrB,IAAAA,KAAAA,CACjBnG,UAAW0G,EACXe,SAAUtB,IAAAA,MAAAA,CACVxC,MAAOwC,IAAAA,MAAAA,CACPrC,YAAaqC,IAAAA,MAAAA,CACbuB,iBAAkBvB,IAAAA,MAAAA,CAClBwB,eAAgBxB,IAAAA,MAAAA,CAChByB,YAAaR,EACbS,gBAAiB1B,IAAAA,IAAAA,EAEzB,GAEgCA,IAAAA,KAAe,CAAC,CAC5C7G,OAAQ6G,IAAAA,KAAe,CAAC,CACpBC,YAAaD,IAAAA,KAAe,CAAC,CAAC,kBAAkB,EAChDE,KAAMF,IAAAA,MAAAA,CACNnB,KAAMiC,EAAUL,UAAU,CAC1BU,YAAanB,IAAAA,MAAAA,CACbxC,MAAOwC,IAAAA,MAAAA,CACPrC,YAAaqC,IAAAA,MAAAA,CACb2B,SAAU3B,IAAAA,MAAAA,CACV4B,iBAAkB5B,IAAAA,MAAAA,CAClB6B,eAAgBtB,EAChBuB,gBAAiBvB,CACrB,EACJ","sources":["webpack://_N_E/./adapters/helpers/Hooks.js","webpack://_N_E/./components/SeriesSelector/SeriesSelector.js","webpack://_N_E/./types/index.js"],"sourcesContent":["import React, { useState, useEffect, useLayoutEffect } from 'react';\n\n// https://github.com/streamich/react-use/blob/master/docs/useIsomorphicLayoutEffect.md\nexport const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\n\nexport function useMatchMedia(mediaQueryString, initialValue = null) {\n const [match, setMatch] = useState(initialValue);\n\n useEffect(\n () => {\n if (!window.matchMedia) {\n return;\n }\n\n function handleMatch(event) {\n setMatch(event.matches);\n }\n\n const matchMedia = window.matchMedia(mediaQueryString);\n\n setMatch(matchMedia.matches);\n matchMedia.addListener(handleMatch);\n\n return () => {\n matchMedia.removeListener(handleMatch);\n };\n },\n [mediaQueryString]\n );\n return match;\n}\n\nexport const mediaQueryHOC = (Component) => {\n function MediaQueryHOC(props) {\n const isXSmall = useMatchMedia('(max-width: 375px)');\n const isSmall = useMatchMedia('(max-width: 479px)');\n const isMedium = useMatchMedia('(max-width: 767px)');\n const isLarge = useMatchMedia('(max-width: 991px)');\n const isXLarge = useMatchMedia('(max-width: 1023px)');\n return (\n \n );\n }\n return MediaQueryHOC;\n};\n\nlet listeners = [];\nlet state = { currentProductIndex: 0 };\n\nconst setState = (newState) => {\n state = { ...state, ...newState };\n listeners.forEach((listener) => {\n listener(state);\n });\n};\n\nexport const updateCurrentProductIndex = () => {\n const newListener = useState()[1];\n useEffect(() => {\n listeners.push(newListener);\n }, []);\n return [state, setState];\n};\n","import PropTypes from 'prop-types';\nimport React, { Suspense, useEffect, useLayoutEffect, useMemo } from 'react';\nimport dynamic from 'next/dynamic';\nimport ImageFactory from '../../adapters/cloudinary/ImageFactory';\nimport { findIndexByAnchorId } from '../../adapters/helpers/Anchor';\nimport Backdrop from '../Backdrop/Backdrop';\nimport { SeriesSelectorConstants } from '../../adapters/helpers/Constants';\nimport Block from '../../adapters/helpers/Block';\nimport LazyLoad from 'react-lazy-load';\nimport { stripHtml, smoothVerticalScroll } from '../../adapters/helpers/Utils';\nimport { optimizeImage } from '../../adapters/helpers/pagespeedHelper';\nconst SeriesTabs = dynamic(() => import('./SeriesTabs'));\nconst BuySeries = dynamic(() => import('./BuySeries'));\nconst SeriesComparison = dynamic(() => import('./SeriesComparison'));\nconst MarkdownText = dynamic(() => import('../MarkdownText/MarkdownText'));\nconst RichText = dynamic(() => import('../RichText/RichText'));\nconst Disclaimer = dynamic(() => import('../Disclaimer/Disclaimer'));\nimport { mediaQueryHOC } from '../../adapters/helpers/Hooks';\nimport Loader from '../../adapters/helpers/Loader';\n\nfunction Series(props) {\n const { document: doc, extraAttributes, isXSmall, isSmall } = props;\n const isMobile = isXSmall || isSmall;\n const { entity: collection, query, slug: basePath } = extraAttributes;\n const selectedSeriesId = query?.series\n const seriesArray = collection.series;\n const selectedSeriesIndex = useMemo(\n () => findIndexByAnchorId(seriesArray, selectedSeriesId) || 0,\n [selectedSeriesId, seriesArray],\n );\n const selectedSeries = seriesArray?.[selectedSeriesIndex];\n const selectedSeriesProducts = selectedSeries?.fields?.products;\n useEffect(() => {\n if (typeof (window.dataLayer) !== 'undefined') {\n window.dataLayer.push({\n 'event': 'VirtualPageview',\n 'title': `${stripHtml(selectedSeries?.fields?.shortTitle)}`,\n 'url': `${selectedSeries?.fields?.virtualPageViewUrl}`\n });\n }\n }, [selectedSeriesIndex]);\n const selectedSeriesRelatedBlocks = selectedSeries?.fields?.relatedBlocks || null;\n const discoverIOBlock = selectedSeries?.fields?.discoverIOBlock || null;\n\n return (\n }>\n
\n \n \n {discoverIOBlock &&\n discoverIOBlock.map((block, index) => {\n return new Block(block).renderBlockFromDocument({}, () => { }, {}, index);\n })\n }\n {!!(selectedSeriesProducts && selectedSeriesProducts.length > 1) && (\n \n )}\n {selectedSeriesRelatedBlocks &&\n selectedSeriesRelatedBlocks.map((block, index) => {\n return new Block(block).renderBlockFromDocument({}, () => { }, {}, index);\n })\n }\n \n
\n
\n );\n}\n\nSeries.propTypes = {\n document: PropTypes.object,\n extraAttributes: PropTypes.object,\n selectedSeries: PropTypes.object,\n onClickCallback: PropTypes.func.isRequired,\n selectedSeriesId: PropTypes.string,\n}\n\nfunction SeriesSelector(props) {\n const { document: doc, collection, onClickCallback, isMobile } = props;\n const { seriesArray, selectedSeries, selectedSeriesId, selectedSeriesIndex, basePath, isXLarge, isLarge } = props;\n const blockSubtitleLabel = doc.fields.blockSubtitleLabel;\n const optionsLabel = doc.fields.optionsLabel;\n const disclaimer = collection?.disclaimer;\n const featuredProduct = selectedSeries?.fields?.featuredProduct;\n const selectedSeriesBackground = selectedSeries?.fields?.backgroundAsset;\n const mobileBackgroundAsset = selectedSeries?.fields?.mobileBackgroundAsset;\n const selectedSeriesOptions = selectedSeries?.fields?.options;\n const selectedSeriesImage = selectedSeries?.fields?.mainAsset;\n const selectedSeriesMobileImage = selectedSeries?.fields?.mobileAsset || featuredProduct?.fields?.mobileAsset;\n const shortTitle = collection.shortTitle;\n const seriesHeading = selectedSeries?.fields?.seriesHeading ? selectedSeries?.fields?.seriesHeading : collection.shortTitle;\n\n const style = {\n backgroundColor: selectedSeries?.fields?.backgroundColor,\n };\n\n const scrollToFeatures = event => {\n const currentElemHref = event.currentTarget.getAttribute('href');\n if (currentElemHref.charAt(0) === '#') {\n event.preventDefault();\n const targetElem = document.querySelector(currentElemHref);\n if (targetElem) {\n smoothVerticalScroll(targetElem, 'top');\n }\n }\n };\n\n useLayoutEffect(() => {\n if (document) {\n const exploreMoreAnchorLink = document.querySelectorAll('.series-explore-all-features a');\n if (exploreMoreAnchorLink) {\n exploreMoreAnchorLink.forEach(anchorLink => {\n anchorLink.addEventListener('click', scrollToFeatures);\n return () => anchorLink.removeEventListener('click', scrollToFeatures);\n })\n }\n }\n });\n\n // Master Product id containing the reviews of all the product in his family\n const reviewAndRatingMasterProductId = SeriesSelectorConstants.master + featuredProduct?.fields?.reviewAndRatingFamilyId;\n\n return (\n \n }>\n \n \n \n
\n {selectedSeriesId ?

:

}\n {disclaimer &&\n \n }\n
\n
\n {!!blockSubtitleLabel && (\n

\n {blockSubtitleLabel.fields.text}\n

\n )}\n \n
\n {!!selectedSeries && (\n
\n
\n
\n {!!selectedSeriesImage && (\n
\n \n \n {!!selectedSeriesMobileImage && (\n \n )}\n {selectedSeriesImage.fields.alternateText\n \n
\n )}\n
\n
\n
\n

\n

\n {featuredProduct?.fields?.reviewAndRatingFamilyId && (\n
\n )}\n \n {(selectedSeries.fields.highlights && selectedSeries.fields.highlights.length > 0) && (\n
    \n {selectedSeries.fields.highlights.map((serieHightlight, i) => {\n if (serieHightlight?.fields?.highlight && serieHightlight?.fields?.iconName) {\n return (\n
  • \n \n\n \n \n \n
  • \n )\n } else if (serieHightlight?.fields?.highlight) {\n return (\n
  • \n \n \n \n \n
  • \n )\n }\n })}\n
\n )}\n {!!(selectedSeriesOptions) && (\n
\n {!!optionsLabel && (\n

\n {optionsLabel.fields.text}\n

\n )}\n \n
\n )}\n {!isMobile && }\n
\n
\n {isMobile && }\n
\n )}\n \n \n \n \n );\n}\nexport default mediaQueryHOC(Series);\nSeriesSelector.propTypes = {\n document: PropTypes.object,\n collection: PropTypes.any,\n seriesArray: PropTypes.any,\n selectedSeries: PropTypes.object,\n selectedSeriesId: PropTypes.string,\n selectedSeriesIndex: PropTypes.any,\n onClickCallback: PropTypes.func.isRequired,\n basePath: PropTypes.any,\n}\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"],"names":["useIsomorphicLayoutEffect","useLayoutEffect","useMatchMedia","mediaQueryString","initialValue","arguments","length","undefined","_useState","useState","match","setMatch","useEffect","window","matchMedia","matches","addListener","handleMatch","removeListener","event","mediaQueryHOC","Component","props","isXSmall","isSmall","isMedium","isLarge","isXLarge","_jsx","_objectSpread","listeners","state","currentProductIndex","setState","newState","forEach","listener","updateCurrentProductIndex","newListener","push","SeriesTabs","dynamic","Promise","all","__webpack_require__","e","then","bind","loadableGenerated","webpack","BuySeries","SeriesComparison","MarkdownText","RichText","Disclaimer","SeriesSelector","_selectedSeries$field6","_selectedSeries$field7","_selectedSeries$field8","_selectedSeries$field9","_selectedSeries$field10","_selectedSeries$field11","_featuredProduct$fiel","_selectedSeries$field12","_selectedSeries$field13","_selectedSeries$field14","_featuredProduct$fiel2","_selectedSeries$field15","_doc$fields","_doc$fields2","_featuredProduct$fiel3","doc","document","collection","onClickCallback","isMobile","seriesArray","selectedSeries","selectedSeriesId","selectedSeriesIndex","basePath","blockSubtitleLabel","fields","optionsLabel","disclaimer","featuredProduct","selectedSeriesBackground","backgroundAsset","mobileBackgroundAsset","selectedSeriesOptions","options","selectedSeriesImage","mainAsset","selectedSeriesMobileImage","mobileAsset","shortTitle","seriesHeading","style","backgroundColor","scrollToFeatures","currentElemHref","currentTarget","getAttribute","charAt","preventDefault","targetElem","querySelector","smoothVerticalScroll","exploreMoreAnchorLink","querySelectorAll","anchorLink","addEventListener","removeEventListener","reviewAndRatingMasterProductId","SeriesSelectorConstants","master","reviewAndRatingFamilyId","LazyLoad","offset","unmountIfInvisible","children","Suspense","fallback","Loader","_jsxs","Backdrop","className","concat","anchorId","classNames","Image","image","mobileImage","Content","dangerouslySetInnerHTML","__html","text","items","selectedItem","selectedIndex","media","srcSet","optimizeImage","ImageFactory","dpr","alt","alternateText","empty","src","maxHeight","assetHeight","title","ratingSummary","value","description","highlights","map","serieHightlight","i","_serieHightlight$fiel","_serieHightlight$fiel2","_serieHightlight$fiel3","highlight","iconName","series","__webpack_exports__","_selectedSeries$field","_selectedSeries$field4","_selectedSeries$field5","extraAttributes","entity","query","slug","useMemo","findIndexByAnchorId","selectedSeriesProducts","products","dataLayer","_selectedSeries$field2","_selectedSeries$field3","stripHtml","virtualPageViewUrl","selectedSeriesRelatedBlocks","relatedBlocks","discoverIOBlock","React","block","index","Block","renderBlockFromDocument","IImageRendition","PropTypes","contentType","name","aspectRatio","width","height","transformations","ICloudinaryImage","assetId","isRequired","forcedFormat","imageRendition","isPreload","isBannerImage","IPagePath","disabled","searchable","ILabel","IProductOverview","pageMapping","uniqueId","productVariants","surtitle","shortDescription","productBenefit","buyNowLabel","isFullSizeImage","readTime","twitterShareText","thumbnailImage","mobileThumbnail"],"sourceRoot":""}