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MAAAjC,EAAAwB,GAAA,EAAAvB,EAAA,CAAAuC,SAAArD,EAAAyD,UAAA7C,EAAA+C,gBAAAhB,EAAAiB,gBAAAhB,EAAAJ,SAAAlC,EAAAuD,eAAAf,CAAA,MAAAjC,EAAAwB,GAAA,EAAAjC,EAAA,CAAAiD,SAAArD,EAAAsD,oBAAArD,EAAAsD,oBAAA7C,EAAA+C,UAAA7C,EAAAkD,iBAAArD,EAAAuD,YAAArD,EAAAgD,gBAAAhB,EAAAiB,gBAAAhB,EAAAiB,eAAAf,CAAA,KAAA9C,EAAAiE,OAAA,IAAArD,EAAAP,EAAA,EAAAH,GAAAA,EAAAgE,YAAA,EAAAV,aAAA,EAAAH,SAAA,GAAAK,YAAA,GAAAI,iBAAA,GAAAD,eAAA","sources":["webpack://_N_E/./adapters/helpers/Hooks.js","webpack://_N_E/./components/ProductsOverview/ProductsOverview.js","webpack://_N_E/"],"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\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\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 React from 'react';\nimport PropTypes from 'prop-types';\nimport dynamic from 'next/dynamic';\nimport { mediaQueryHOC } from '../../adapters/helpers/Hooks'\n\nconst StackedProductsOverView = dynamic(() => import('./mobile/StackedProductsOverview'));\nconst CarrouselProductsOverView = dynamic(() => import('./mobile/CarrouselProductsOverview'));\nconst CollapsibleProductsOverview = dynamic(() => import('./desktop/CollapsibleProductsOverview'));\n\nfunction ProductsOverview({\n products,\n seeMoreProductsText,\n seeLessProductsText,\n itemsPerLine,\n whiteText,\n isCarrousel,\n isMedium,\n onClickCallback,\n productOverview,\n removeLazyLoad,\n isRecentlyViewed}) {\n return (\n
\n {isMedium ?\n (isCarrousel ?\n :\n ) :\n \n }\n
\n );\n}\n\nexport default mediaQueryHOC(ProductsOverview);\n\nProductsOverview.defaultProps = {\n itemsPerLine: 3,\n products: [],\n isCarrousel: false,\n isRecentlyViewed: false,\n removeLazyLoad: false,\n}\n\nProductsOverview.propTypes = {\n itemsPerLine: PropTypes.number,\n children: PropTypes.any,\n seeMoreProductsText: PropTypes.string,\n seeLessProductsText: PropTypes.string,\n products: PropTypes.any,\n whiteText: PropTypes.any,\n isMedium: PropTypes.bool,\n isCarrousel: PropTypes.bool,\n isRecentlyViewed: PropTypes.bool,\n removeLazyLoad: PropTypes.bool,\n onClickCallback: PropTypes.func.isRequired,\n productOverview: PropTypes.any\n}\n","\"use strict\";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9899],{71357:function(e,t,r){r.d(t,{LI:function(){return s},Ui:function(){return l},ag:function(){return d},y3:function(){return m}});var n=r(930),i=r.n(n),o=r(67294),c=r(85893);function u(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 a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,r=(0,o.useState)(t),n=r[0],i=r[1];return(0,o.useEffect)((function(){if(window.matchMedia){var t=window.matchMedia(e);return i(t.matches),t.addListener(r),function(){t.removeListener(r)}}function r(e){i(e.matches)}}),[e]),n}var l=function(e){return function(t){var r=d(\"(max-width: 375px)\"),n=d(\"(max-width: 479px)\"),i=d(\"(max-width: 767px)\"),o=d(\"(max-width: 991px)\"),u=d(\"(max-width: 1023px)\");return(0,c.jsx)(e,a({isXSmall:r,isSmall:n,isMedium:i,isLarge:o,isXLarge:u},t))}},f=[],p={currentProductIndex:0},w=function(e){p=a(a({},p),e),f.forEach((function(e){e(p)}))},m=function(){var e=(0,o.useState)()[1];return(0,o.useEffect)((function(){f.push(e)}),[]),[p,w]}},79899:function(e,t,r){r.r(t);r(67294);var n=r(5152),i=r.n(n),o=r(71357),c=r(85893),u=i()((function(){return Promise.all([r.e(4885),r.e(4419),r.e(9238),r.e(3824),r.e(8996),r.e(3217)]).then(r.bind(r,23217))}),{loadableGenerated:{webpack:function(){return[23217]}}}),a=i()((function(){return Promise.all([r.e(4885),r.e(4419),r.e(9238),r.e(3824),r.e(8996),r.e(3002)]).then(r.bind(r,93002))}),{loadableGenerated:{webpack:function(){return[93002]}}}),s=i()((function(){return Promise.all([r.e(3824),r.e(8665),r.e(9985)]).then(r.bind(r,39985))}),{loadableGenerated:{webpack:function(){return[39985]}}});function d(e){var t=e.products,r=e.seeMoreProductsText,n=e.seeLessProductsText,i=e.itemsPerLine,o=e.whiteText,d=e.isCarrousel,l=e.isMedium,f=e.onClickCallback,p=e.productOverview,w=e.removeLazyLoad,m=e.isRecentlyViewed;return(0,c.jsx)(\"div\",{children:l?d?(0,c.jsx)(a,{products:t,whiteText:o,onClickCallback:f,productOverview:p,isMedium:l,removeLazyLoad:w}):(0,c.jsx)(u,{products:t,whiteText:o,onClickCallback:f,productOverview:p,isMedium:l,removeLazyLoad:w}):(0,c.jsx)(s,{products:t,seeMoreProductsText:r,seeLessProductsText:n,whiteText:o,isRecentlyViewed:m,itemsPerRow:i,onClickCallback:f,productOverview:p,removeLazyLoad:w})})}t.default=(0,o.Ui)(d),d.defaultProps={itemsPerLine:3,products:[],isCarrousel:!1,isRecentlyViewed:!1,removeLazyLoad:!1}}}]);"],"names":["self","webpackChunk_N_E","push","e","t","r","d","LI","s","Ui","l","ag","y3","m","n","i","o","c","u","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","apply","a","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","defineProperty","useLayoutEffect","useState","useEffect","window","matchMedia","matches","addListener","removeListener","jsx","isXSmall","isSmall","isMedium","isLarge","isXLarge","f","p","currentProductIndex","w","Promise","all","then","bind","loadableGenerated","webpack","products","seeMoreProductsText","seeLessProductsText","itemsPerLine","whiteText","isCarrousel","onClickCallback","productOverview","removeLazyLoad","isRecentlyViewed","children","itemsPerRow","default","defaultProps"],"sourceRoot":""}