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AAAG,OAAA,CAAA5F,EAAAsF,EAAA,CAAAE,wBAAA,IAAAtF,EAAAkG,EAAA,EAAArG,GAAA,mBAAAf,CAAA,CAAAC,CAAA,cAAAA,CAAAA,EAAAwH,OAAA,CAAA5H,KAAA4H,OAAA,CAAAxH,EAAAyH,OAAA,CAAA7H,KAAA6H,OAAA,CAAAzH,EAAA0H,QAAA,CAAA9H,KAAA8H,QAAA,CAAA1H,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/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, { useState, useEffect, useRef, useMemo } from 'react';\nimport dynamic from 'next/dynamic';\nconst ProductsOverview = dynamic(() => import('../ProductsOverview/ProductsOverview'));\nimport { getProducts, removeProduct } from '../../persistence/recentlyViewed';\nimport 'isomorphic-fetch';\nconst Heading = dynamic(() => import('../Heading/Heading'));\nimport Block from '../../adapters/helpers/Block';\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}\nexport function localStorageRemoveItem(item) {\n return localStorage.removeItem(item)\n}\n\nexport function localStorageGetItem(item) {\n return localStorage.getItem(item)\n}\n\nexport function localStorageSetItem(item,itemType) {\n return localStorage.setItem(item, itemType);\n}\n\nexport { LOCAL_STORAGE_KEYS };","import { LOCAL_STORAGE_KEYS } from './localStorage';\nimport { first } from '../adapters/helpers/functions';\nimport { customSuperJsonParse, customSuperJsonStringify } from '../adapters/helpers/Utils';\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],{94301:function(e,t,n){n(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,\"\")}}},15205:function(e,t,n){\"use strict\";n.r(t),n.d(t,{default:function(){return m}});var r=n(49376),u=n.n(r),i=n(87794),c=n.n(i),o=n(67294),a=n(5152),l=n.n(a),s=n(88755),f=(n(94301),n(40483)),d=n(83824),p=n(24036),h=n(85893),v=l()((function(){return n.e(9899).then(n.bind(n,79899))}),{loadableGenerated:{webpack:function(){return[79899]}}}),g=l()((function(){return n.e(2116).then(n.bind(n,92116))}),{loadableGenerated:{webpack:function(){return[92116]}}});function m(e){var t,r,i,a,l,m,x,b,E=n(57646).standardizePath,S=new f.Z(e),w=e.document,y=e.extraAttributes,k=(0,o.useRef)((0,s.Xp)().map((function(e){return e.id})).filter((function(e){return e!==(null==y?void 0:y.slug)}))),C=(0,o.useState)(k.current.map((function(){}))),_=C[0],R=C[1],D=(0,o.useState)(!1),I=D[0],T=D[1],N=S.getAnchorId(),P=null==w||null==(t=w.fields)?void 0:t.title,j=null==w||null==(r=w.fields)||null==(i=r.seeLessLabel)||null==(a=i.fields)?void 0:a.text,O=null==w||null==(l=w.fields)||null==(m=l.seeMoreLabel)||null==(x=m.fields)?void 0:x.text,A=null==w||null==(b=w.fields)?void 0:b.classNames,L=(0,o.useMemo)((function(){var e=[\"ob-recently-viewed-block\"];return A&&e.push(A),I&&e.push(p.dx.show),e}),[A,I]);return(0,o.useEffect)((function(){if(I)for(var e=function(e){var t=k.current[e];u()(c().mark((function n(){var r;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,fetch(p.dx.fetch+btoa(E(t))+p.dx.json).then((function(e){return e.status.toString()[0]===p.dx.four&&(0,s.kh)(t),e}));case 3:return n.next=5,n.sent.json();case 5:r=n.sent,R((function(t){var n=t.slice();return n[e]=r,n})),n.next=11;break;case 9:n.prev=9,n.t0=n.catch(0);case 11:case\"end\":return n.stop()}}),n,null,[[0,9]])})))()},t=0;t0&&(0,h.jsx)(\"div\",{className:L.join(\" \"),id:N,children:(0,h.jsxs)(\"div\",{className:\"ob-recently-viewed-block-wrapper\",children:[!!P&&(0,h.jsx)(g,{className:\"ob-recently-viewed-block__heading\",children:P}),(0,h.jsxs)(\"div\",{className:\"ob-recently-viewed-block__product-grid-wrapper\",children:[(0,h.jsx)(d.h,{onEnter:function(){T(!0)}}),(0,h.jsx)(v,{seeMoreProductsText:O,seeLessProductsText:j,products:_,isRecentlyViewed:!0,isCarrousel:!0,onClickCallback:e.onClickCallback})]})]})})})}},77005:function(e,t,n){\"use strict\";n.d(t,{A6:function(){return c},GQ:function(){return i},dA:function(){return r},q:function(){return u}});var r={RECENTLY_VIEWED_PRODUCTS:\"RECENTLY_VIEWED_PRODUCTS\"};function u(e){return localStorage.removeItem(e)}function i(e){return localStorage.getItem(e)}function c(e,t){return localStorage.setItem(e,t)}},88755:function(e,t,n){\"use strict\";n.d(t,{OS:function(){return s},Xp:function(){return f},kh:function(){return d}});var r=n(7980),u=n.n(r),i=n(77005),c=n(61986),o=n(8996);function a(e,t){for(var n=0;n(new Date).getTime()}))}function s(e){if(\"undefined\"!=typeof localStorage&&localStorage.setItem){var t=f(),n=t.slice(),r=a(t,e);void 0!==r&&n.splice(r,1);var s=l(n),d=(0,c.Ps)([{id:e,expiral:(new Date).getTime()+2592e6}].concat(u()(s)),3);localStorage.setItem(i.dA.RECENTLY_VIEWED_PRODUCTS,(0,o.hD)(d))}}function f(){if(\"undefined\"!=typeof localStorage&&localStorage.getItem){var e=localStorage.getItem(i.dA.RECENTLY_VIEWED_PRODUCTS);if(null!==e)try{var t=(0,o.Cp)(e);return function(e){if(!Array.isArray(e))return!1;for(var t=0;t