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ropTypes from 'prop-types';\nimport React,{Suspense} from 'react';\nimport {ICloudinaryImage, IProductOverview} from '../../types';\nimport dynamic from 'next/dynamic';\nconst ProductRecommenderManager = dynamic(() => import('./ProductRecommenderManager'));\nimport Loader from '../../adapters/helpers/Loader';\n\nexport const IProductRecommenderProps = {\n className: PropTypes.string,\n classNames: PropTypes.string, // contentful misspelling\n contentType: PropTypes.oneOf(['productRecommenderBlock']),\n name: PropTypes.string,\n eyebrow: PropTypes.string,\n headline: PropTypes.string,\n bodyCopy: PropTypes.string,\n disclaimer: PropTypes.object,\n anchorId: PropTypes.string,\n switchTextAndProduct: PropTypes.bool,\n hasDivider: PropTypes.bool,\n cta: PropTypes.string,\n ctaLink: PropTypes.string,\n singleColorBackground: PropTypes.string,\n whiteText: PropTypes.bool,\n backgroundAsset: ICloudinaryImage,\n mobileBackgroundAsset: ICloudinaryImage,\n productList: PropTypes.arrayOf(IProductOverview),\n productGroup: PropTypes.object,\n seeMoreLabel: PropTypes.object,\n seeLessLabel: PropTypes.object,\n revision: PropTypes.number,\n};\n\nexport default function ProductRecommenderBlock(props) {\n const fields = props.document.fields;\n const entity = props.extraAttributes?.entity;\n const onClickCallback = props.onClickCallback;\n\n if (!fields) {\n return null;\n }\n\n let { productList, productGroup } = fields;\n\n if (!productList && !productGroup && entity) {\n const { relatedProducts, relatedProductGroup } = entity;\n\n if(relatedProductGroup) {\n const relatedGroupProducts = relatedProductGroup.fields.productList;\n\n productList = relatedGroupProducts;\n }\n\n if (!relatedProductGroup && relatedProducts) {\n productList = relatedProducts;\n }\n }\n\n if(!productList && productGroup) {\n const groupProducts = productGroup.fields.productList;\n\n if (groupProducts) {\n productList = groupProducts;\n }\n }\n\n return (\n <Suspense fallback={<Loader />}>\n <ProductRecommenderManager\n productList={productList}\n onClickCallback={onClickCallback}\n {...fields}\n />\n </Suspense>\n );\n}\n\nProductRecommenderBlock.propTypes = {\n document: PropTypes.shape({\n fields: PropTypes.exact(IProductRecommenderProps),\n }),\n onClickCallback: PropTypes.func\n};\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","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[157],{50157:function(e,t,r){r.r(t),r.d(t,{IProductRecommenderProps:function(){return m},default:function(){return h}});var n=r(930),i=r.n(n),s=r(45697),o=r.n(s),a=r(67294),c=r(22714),u=r(5152),l=r.n(u),d=r(47322),p=r(85893);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=l()((function(){return r.e(6221).then(r.bind(r,6221))}),{loadableGenerated:{webpack:function(){return[6221]}}}),m={className:o().string,classNames:o().string,contentType:o().oneOf([\"productRecommenderBlock\"]),name:o().string,eyebrow:o().string,headline:o().string,bodyCopy:o().string,disclaimer:o().object,anchorId:o().string,switchTextAndProduct:o().bool,hasDivider:o().bool,cta:o().string,ctaLink:o().string,singleColorBackground:o().string,whiteText:o().bool,backgroundAsset:c.Pd,mobileBackgroundAsset:c.Pd,productList:o().arrayOf(c.v9),productGroup:o().object,seeMoreLabel:o().object,seeLessLabel:o().object,revision:o().number};function h(e){var t,r=e.document.fields,n=null==(t=e.extraAttributes)?void 0:t.entity,i=e.onClickCallback;if(!r)return null;var s=r.productList,o=r.productGroup;if(!s&&!o&&n){var c=n.relatedProducts,u=n.relatedProductGroup;if(u)s=u.fields.productList;!u&&c&&(s=c)}if(!s&&o){var l=o.fields.productList;l&&(s=l)}return(0,p.jsx)(a.Suspense,{fallback:(0,p.jsx)(d.default,{}),children:(0,p.jsx)(f,b({productList:s,onClickCallback:i},r))})}},22714:function(e,t,r){r.d(t,{Pd:function(){return o},v9:function(){return u}});var n=r(45697),i=r.n(n),s=i().shape({fields:i().exact({contentType:i().oneOf([\"imageRendition\"]),name:i().string,aspectRatio:i().number,width:i().number,height:i().number,transformations:i().string})}),o=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:s,isPreload:i().bool,isBannerImage:i().bool})}),a=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})}),u=i().shape({fields:i().exact({contentType:i().oneOf([\"productOverview\"]),name:i().string,slug:a,pageMapping:i().string,uniqueId:i().string,productVariants:i().array,mainAsset:o,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:a.isRequired,pageMapping:i().string,title:i().string,description:i().string,readTime:i().number,twitterShareText:i().string,thumbnailImage:o,mobileThumbnail:o})})}}]);"],"names":["self","webpackChunk_N_E","push","e","t","r","d","IProductRecommenderProps","m","default","h","n","i","s","o","a","c","u","l","p","g","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","apply","f","then","bind","loadableGenerated","webpack","className","string","classNames","contentType","oneOf","name","eyebrow","headline","bodyCopy","disclaimer","object","anchorId","switchTextAndProduct","bool","hasDivider","cta","ctaLink","singleColorBackground","whiteText","backgroundAsset","Pd","mobileBackgroundAsset","productList","arrayOf","v9","productGroup","seeMoreLabel","seeLessLabel","revision","number","document","fields","extraAttributes","entity","onClickCallback","relatedProducts","relatedProductGroup","jsx","Suspense","fallback","children","b","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","defineProperty","shape","exact","aspectRatio","width","height","transformations","assetId","isRequired","alternateText","forcedFormat","imageRendition","isPreload","isBannerImage","slug","disabled","searchable","text","pageMapping","uniqueId","productVariants","array","mainAsset","surtitle","title","description","shortDescription","productBenefit","buyNowLabel","isFullSizeImage","readTime","twitterShareText","thumbnailImage","mobileThumbnail"],"sourceRoot":""}