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,OAAA,CAAAjI,KAAAiI,OAAA,CAAA7H,EAAA8H,OAAA,CAAAlI,KAAAkI,OAAA,CAAA9H,EAAA+H,QAAA,CAAAnI,KAAAmI,QAAA,CAAA/H,EAAAG,KAAA,CAAAP,KAAAO,KAAA","sources":["webpack://_N_E/./node_modules/isomorphic-fetch/fetch-npm-browserify.js","webpack://_N_E/./adapters/helpers/Path.js","webpack://_N_E/./components/ProductsOverview/ProductsOverview.js","webpack://_N_E/./components/RecentlyViewedProductsBlock/RecentlyViewedProductsBlock.js","webpack://_N_E/./persistence/localStorage.js","webpack://_N_E/./persistence/recentlyViewed.js","webpack://_N_E/./node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js","webpack://_N_E/"],"sourcesContent":["// the whatwg-fetch polyfill installs the fetch() function\n// on the global object (window or self)\n//\n// Return that as the export for use in Webpack, Browserify etc.\nrequire('whatwg-fetch');\nmodule.exports = self.fetch.bind(self);\n","function standardizePath(path) {\n if (typeof path === 'string') {\n return path.replace(/\\/{1,}/g, '/')\n .replace(/\\/{1,}$/g, '');\n }\n}\nconst customJsonstringify = str => JSON.stringify(str) && JSON.stringify(str).replace(/([&\"'<>])/g, (char) => {\n switch (char) {\n case '&':\n return '\\u0026'\n case '<':\n return '\\u003c'\n case '>':\n return '\\u003e'\n case '\"':\n return '\\u0022'\n case \"'\":\n return '\\u0027'\n default:\n return char\n }\n})\n\nmodule.exports = {\n customJsonstringify,\n standardizePath,\n};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport dynamic from 'next/dynamic';\nconst StackedProductsOverView = dynamic(()=>import('./mobile/StackedProductsOverview'))\nconst CarrouselProductsOverView = dynamic(()=>import('./mobile/CarrouselProductsOverview'))\nconst CollapsibleProductsOverview = dynamic(()=>import('./desktop/CollapsibleProductsOverview'))\nimport { mediaQueryHOC } from '../../adapters/helpers/Hooks'\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","import React, { useState, useEffect, useRef, useMemo } from 'react';\nimport ProductsOverview from '../ProductsOverview/ProductsOverview';\nimport { getProducts, removeProduct } from '../../persistence/recentlyViewed';\nimport 'isomorphic-fetch';\nimport dynamic from 'next/dynamic';\nimport Block from '../../adapters/helpers/Block';\nconst Heading = dynamic(()=>import('../Heading/Heading'))\nimport { Waypoint } from 'react-waypoint';\nimport { RecentlyViewedProductsBlockConstants } from '../../adapters/helpers/Constants'\n\nexport default function RecentlyViewedProductsBlock(props) {\n\n const standardizePath = require('../../adapters/helpers/Path').standardizePath;\n\n const block = new Block(props);\n const {document, extraAttributes} = props;\n\n const productsToLoad = useRef(\n getProducts()\n .map(({id}) => id)\n .filter(id => id !== extraAttributes?.slug)\n );\n\n const [products, setProducts] = useState(\n productsToLoad.current.map(() => undefined)\n );\n\n const [isShown, setIsShown] = useState(false);\n\n const anchorId = block.getAnchorId();\n\n const title = document?.fields?.title;\n const seeLessLabel = document?.fields?.seeLessLabel?.fields?.text;\n const seeMoreLabel = document?.fields?.seeMoreLabel?.fields?.text;\n\n const _handleWaypointEnter = () => {\n // Trigger by waypoint enter\n setIsShown(true);\n }\n\n const propsClassnames = document?.fields?.classNames;\n\n const classNames = useMemo(() => {\n const _classNames = [\n 'ob-recently-viewed-block',\n ];\n\n if(propsClassnames) {\n _classNames.push(propsClassnames);\n }\n\n if(isShown) {\n _classNames.push(RecentlyViewedProductsBlockConstants.show);\n }\n\n return _classNames;\n\n }, [propsClassnames, isShown])\n\n useEffect(() => {\n if(isShown) {\n for(let i = 0; i < productsToLoad.current.length; i++) {\n const productId = productsToLoad.current[i];\n (async () => {\n try {\n const loadedProduct = await (\n await (fetch(RecentlyViewedProductsBlockConstants.fetch + btoa(standardizePath(productId)) + RecentlyViewedProductsBlockConstants.json).then((response) => {\n const statusCategory = response.status.toString()[0];\n if(statusCategory === RecentlyViewedProductsBlockConstants.four) {\n removeProduct(productId);\n }\n return response;\n }))\n ).json();\n\n setProducts(prevState => {\n const products = prevState.slice();\n products[i] = loadedProduct;\n return products;\n });\n } catch(e) {\n //Log error or do something\n }\n })();\n }\n }\n }, [isShown]);\n\n return (\n <>\n {products.length > 0 &&
\n
\n {!!title && {title}}\n
\n \n \n
\n
\n
}\n \n );\n}\n","\nconst LOCAL_STORAGE_KEYS = {\n RECENTLY_VIEWED_PRODUCTS: 'RECENTLY_VIEWED_PRODUCTS',\n}\n\nexport { LOCAL_STORAGE_KEYS };","import { LOCAL_STORAGE_KEYS } from './localStorage';\nimport { first } from '../adapters/helpers/functions';\nimport { customJsonstringify, customSuperJsonParse, customSuperJsonStringify } from '../adapters/helpers/Utils';\n\nconst PRODUCT_PERSISTENCE_LIFESPAN_MILLISECONDS = 30 * 24 * 60 * 60 * 1000;\n\nfunction findProductIndex(products, id) {\n for(let i = 0; i < products.length; i++) {\n const product = products[i];\n\n if(product.id === id) {\n return i;\n }\n }\n\n return undefined;\n}\n\nfunction filterExpiredProducts(products) {\n return products.filter(({expiral}) =>\n new Date(expiral).getTime() > new Date().getTime())\n}\n\n\n// TODO: Remove in prod (Used for data consistency between changes)\nfunction isProductsDataValid(products) {\n if(!Array.isArray(products)) { return false; }\n\n for(let i = 0; i < products.length; i++) {\n const product = products[i];\n\n if(!product) { return false; }\n\n if(!product.hasOwnProperty('id')) { return false; }\n if(!product.hasOwnProperty('expiral')) { return false; }\n\n if(!(typeof product.id === 'string')) { return false; }\n if(!(typeof product.expiral === 'number')) { return false; }\n }\n return true;\n}\n\nexport function setViewed(id) {\n if((typeof localStorage !== 'undefined') && localStorage.setItem) {\n const products = getProducts();\n\n // Remove already viewed product\n const productsWithoutCurrentProduct = products.slice();\n const currentProductIndex = findProductIndex(products, id);\n\n if(currentProductIndex !== undefined) {\n productsWithoutCurrentProduct.splice(currentProductIndex, 1);\n }\n\n // Filter expirered products\n const expiralFilteredProduct = filterExpiredProducts(productsWithoutCurrentProduct);\n\n // Add id to first place\n const nextProducts = first([\n { id, expiral: (new Date().getTime() + PRODUCT_PERSISTENCE_LIFESPAN_MILLISECONDS)},\n ...expiralFilteredProduct\n ], 3);\n\n localStorage.setItem(LOCAL_STORAGE_KEYS.RECENTLY_VIEWED_PRODUCTS, customSuperJsonStringify(nextProducts));\n }\n}\n\nexport function getProducts() {\n if((typeof localStorage !== 'undefined') && localStorage.getItem) {\n const json = localStorage.getItem(LOCAL_STORAGE_KEYS.RECENTLY_VIEWED_PRODUCTS);\n\n if(json !== null) {\n try {\n const products = customSuperJsonParse (json);\n\n // TODO: Remove in prod\n if(!isProductsDataValid(products)) { return [];}\n\n return filterExpiredProducts(products);\n } catch(_e) {\n // Do nothing or log error\n }\n }\n }\n\n return [];\n}\n\nexport function removeProduct(id) {\n if((typeof localStorage !== 'undefined') && localStorage.setItem) {\n const products = getProducts();\n\n // Remove product\n const productsWithoutCurrentProduct = products.slice();\n const currentProductIndex = findProductIndex(products, id);\n\n if(currentProductIndex !== undefined) {\n productsWithoutCurrentProduct.splice(currentProductIndex, 1);\n }\n\n // Filter expirered products\n const expiralFilteredProduct = filterExpiredProducts(productsWithoutCurrentProduct);\n\n localStorage.setItem(LOCAL_STORAGE_KEYS.RECENTLY_VIEWED_PRODUCTS, customSuperJsonStringify(expiralFilteredProduct));\n }\n}\n","\"use strict\";\n/* globals self */ exports.Headers = self.Headers;\nexports.Request = self.Request;\nexports.Response = self.Response;\nexports.fetch = self.fetch;\n\n//# sourceMappingURL=whatwg-fetch.js.map","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5205,9899],{94301:function(e,t,r){r(66477),e.exports=self.fetch.bind(self)},57646:function(e){e.exports={customJsonstringify:function(e){return JSON.stringify(e)&&JSON.stringify(e).replace(/([&\"'<>])/g,(function(e){switch(e){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return'\"';case\"'\":return\"'\";default:return e}}))},standardizePath:function(e){if(\"string\"==typeof e)return e.replace(/\\/{1,}/g,\"/\").replace(/\\/{1,}$/g,\"\")}}},79899:function(e,t,r){\"use strict\";r.r(t);r(67294);var n=r(5152),i=r.n(n),s=r(71357),o=r(85893),u=i()((function(){return Promise.all([r.e(3824),r.e(3217)]).then(r.bind(r,23217))}),{loadableGenerated:{webpack:function(){return[23217]}}}),a=i()((function(){return Promise.all([r.e(3824),r.e(3002)]).then(r.bind(r,93002))}),{loadableGenerated:{webpack:function(){return[93002]}}}),c=i()((function(){return Promise.all([r.e(3824),r.e(9985)]).then(r.bind(r,39985))}),{loadableGenerated:{webpack:function(){return[39985]}}});function l(e){var t=e.products,r=e.seeMoreProductsText,n=e.seeLessProductsText,i=e.itemsPerLine,s=e.whiteText,l=e.isCarrousel,d=e.isMedium,f=e.onClickCallback,p=e.productOverview,v=e.removeLazyLoad,h=e.isRecentlyViewed;return(0,o.jsx)(\"div\",{children:d?l?(0,o.jsx)(a,{products:t,whiteText:s,onClickCallback:f,productOverview:p,isMedium:d,removeLazyLoad:v}):(0,o.jsx)(u,{products:t,whiteText:s,onClickCallback:f,productOverview:p,isMedium:d,removeLazyLoad:v}):(0,o.jsx)(c,{products:t,seeMoreProductsText:r,seeLessProductsText:n,whiteText:s,isRecentlyViewed:h,itemsPerRow:i,onClickCallback:f,productOverview:p,removeLazyLoad:v})})}t.default=(0,s.Ui)(l),l.defaultProps={itemsPerLine:3,products:[],isCarrousel:!1,isRecentlyViewed:!1,removeLazyLoad:!1}},15205:function(e,t,r){\"use strict\";r.r(t),r.d(t,{default:function(){return m}});var n=r(49376),i=r.n(n),s=r(87794),o=r.n(s),u=r(67294),a=r(79899),c=r(27952),l=(r(94301),r(5152)),d=r.n(l),f=r(40483),p=r(83824),v=r(24036),h=r(85893),x=d()((function(){return Promise.resolve().then(r.bind(r,92116))}),{loadableGenerated:{webpack:function(){return[92116]}}});function m(e){var t,n,s,l,d,m,b,w,g=r(57646).standardizePath,k=new f.Z(e),y=e.document,C=e.extraAttributes,P=(0,u.useRef)((0,c.Xp)().map((function(e){return e.id})).filter((function(e){return e!==(null==C?void 0:C.slug)}))),L=(0,u.useState)(P.current.map((function(){}))),S=L[0],T=L[1],j=(0,u.useState)(!1),R=j[0],N=j[1],O=k.getAnchorId(),_=null==y||null==(t=y.fields)?void 0:t.title,E=null==y||null==(n=y.fields)||null==(s=n.seeLessLabel)||null==(l=s.fields)?void 0:l.text,I=null==y||null==(d=y.fields)||null==(m=d.seeMoreLabel)||null==(b=m.fields)?void 0:b.text,M=null==y||null==(w=y.fields)?void 0:w.classNames,z=(0,u.useMemo)((function(){var e=[\"ob-recently-viewed-block\"];return M&&e.push(M),R&&e.push(v.dx.show),e}),[M,R]);return(0,u.useEffect)((function(){if(R)for(var e=function(e){var t=P.current[e];i()(o().mark((function r(){var n;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,fetch(v.dx.fetch+btoa(g(t))+v.dx.json).then((function(e){return e.status.toString()[0]===v.dx.four&&(0,c.kh)(t),e}));case 3:return r.next=5,r.sent.json();case 5:n=r.sent,T((function(t){var r=t.slice();return r[e]=n,r})),r.next=11;break;case 9:r.prev=9,r.t0=r.catch(0);case 11:case\"end\":return r.stop()}}),r,null,[[0,9]])})))()},t=0;t0&&(0,h.jsx)(\"div\",{className:z.join(\" \"),id:O,children:(0,h.jsxs)(\"div\",{className:\"ob-recently-viewed-block-wrapper\",children:[!!_&&(0,h.jsx)(x,{className:\"ob-recently-viewed-block__heading\",children:_}),(0,h.jsxs)(\"div\",{className:\"ob-recently-viewed-block__product-grid-wrapper\",children:[(0,h.jsx)(p.h,{onEnter:function(){N(!0)}}),(0,h.jsx)(a.default,{seeMoreProductsText:I,seeLessProductsText:E,products:S,isRecentlyViewed:!0,isCarrousel:!0,onClickCallback:e.onClickCallback})]})]})})})}},27952:function(e,t,r){\"use strict\";r.d(t,{Xp:function(){return d},kh:function(){return f},OS:function(){return l}});var n=r(7980),i=r.n(n),s=\"RECENTLY_VIEWED_PRODUCTS\",o=r(61986),u=r(8996);function a(e,t){for(var r=0;r(new Date).getTime()}))}function l(e){if(\"undefined\"!=typeof localStorage&&localStorage.setItem){var t=d(),r=t.slice(),n=a(t,e);void 0!==n&&r.splice(n,1);var l=c(r),f=(0,o.Ps)([{id:e,expiral:(new Date).getTime()+2592e6}].concat(i()(l)),3);localStorage.setItem(s,(0,u.hD)(f))}}function d(){if(\"undefined\"!=typeof localStorage&&localStorage.getItem){var e=localStorage.getItem(s);if(null!==e)try{var t=(0,u.Cp)(e);return function(e){if(!Array.isArray(e))return!1;for(var t=0;t