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MAAAY,MAAAC,OAAA,CAAAb,GAAA,iBAAAC,EAAA,EAAAA,EAAAD,EAAAQ,MAAA,CAAAP,IAAA,KAAAC,EAAAF,CAAA,CAAAC,EAAA,KAAAC,GAAA,CAAAA,EAAA+N,cAAA,SAAA/N,EAAA+N,cAAA,8BAAA/N,EAAAwK,EAAA,mBAAAxK,EAAA2N,OAAA,oBAAA5N,GAAA,GAAAwB,EAAAxB,EAAA,OAAAD,GAAA,qBAAA2B,EAAA3B,CAAA,yBAAAuN,cAAAA,aAAAG,OAAA,MAAAzN,EAAAmC,IAAAlC,EAAAD,EAAAiB,KAAA,GAAAf,EAAAqB,EAAAvB,EAAAD,EAAA,UAAAG,GAAAD,EAAA6N,MAAA,CAAA5N,EAAA,OAAAa,EAAAS,EAAAvB,GAAAqN,aAAAG,OAAA,CAAAzM,EAAAmM,EAAA,CAAAE,wBAAA,IAAAjM,EAAAuJ,EAAA,EAAA5J,GAAA,mBAAAhB,CAAA,CAAAC,CAAA,CAAAC,CAAA,GAAAgO,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAApO,IAAA,+BAAAG,EAAA,yBAAAF,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAF,EAAAoO,OAAA,CAAAlO,EAAA,kBAAAF,CAAA,EAAAA,EAAAwE,CAAA,qFAAAxE,EAAAA,EAAAyB,CAAA,UAAA4M,KAAArO,EAAAwE,CAAA","sources":["webpack://_N_E/./adapters/cloudinary/ImageFactory.js","webpack://_N_E/./adapters/helpers/functions.js","webpack://_N_E/./adapters/model/ContentfulClient.js","webpack://_N_E/./pages/product.js","webpack://_N_E/./persistence/localStorage.js","webpack://_N_E/./persistence/recentlyViewed.js","webpack://_N_E/?4c9c","webpack://_N_E/./node_modules/next/head.js","webpack://_N_E/"],"sourcesContent":["export function buildContentfullImageUrl(assetUrl, transformations) {\n if (transformations) {\n return 'https:'+ assetUrl + \"?\" + transformations + \"&fm=webp\" + \"&q=75\"; \n } else {\n return 'https:'+ assetUrl + \"?fm=webp\" + \"&q=75\"; \n }\n}\n\nexport function buildContentfullImageUrlByHeight(assetUrl, height = 'auto', transformations = 'c_limit', format = 'auto') {\n return 'https:'+ assetUrl + \"?h=\"+ height + \"&fm=webp\" + \"&q=75\";\n}\n\nexport function buildContentfullImageUrlByWidth(assetUrl, width = 'auto', transformations = 'c_limit', format = 'auto') {\n return 'https:'+ assetUrl + \"?w=\"+ width + \"&fm=webp\" + \"&q=75\"; \n}\n\nexport function imageContentfullSrc(assetUrl, transformations) {\n return buildContentfullImageUrl(assetUrl, transformations);\n}\n\nexport function imageContentfullDpr(assetUrl, transformations = '') {\n if (!transformations) {\n return buildContentfullImageUrl(assetUrl);\n }\n\n return buildContentfullImageUrl(assetUrl, transformations)\n}\n\n\nexport default {\n buildContentfullImageUrl,\n buildContentfullImageUrlByHeight,\n buildContentfullImageUrlByWidth,\n imageContentfullDpr,\n imageContentfullSrc,\n};\n","export function chunk(items, size) {\n if(!Array.isArray(items)\n || items.length === 0\n || !Number.isInteger(size)\n || size === 0) {\n return [];\n }\n\n const chunks = [];\n let chunk = [];\n\n for(let i = 0; i < items.length; i++) {\n chunk.push(items[i]);\n if((i + 1) % size === 0) {\n chunks.push(chunk);\n chunk = [];\n }\n }\n\n if(chunk.length > 0) {\n chunks.push(chunk);\n }\n\n return chunks;\n}\n\nexport function flatten(array) {\n if (!Array.isArray(array)) {\n return [];\n }\n\n return array.reduce((previous, current) => {\n if (Array.isArray(current)){\n return previous.concat(current);\n } else {\n previous.push(current);\n return previous;\n }\n }, []);\n}\n\nexport function minimum(array) {\n if (!Array.isArray(array)) {\n return undefined;\n }\n\n let minimum = undefined;\n\n for(let i = 0; i < array.length; i++) {\n const value = array[i];\n if(typeof value === 'number') {\n if(minimum === undefined || value < minimum) {\n minimum = value;\n }\n }\n }\n\n return minimum;\n}\n\n// function to return N given of items in an Array\nexport function first(array, n) {\n // if passed array is not an array, return empty array\n if (!Array.isArray(array)\n || n <= 0) {\n return [];\n }\n\n //if N number is bigger or equal slice up the entire thing\n if(n >= array.length) {\n return array.slice();\n } else {\n // otherwise return only N numbers of array items\n return array.slice(0, n);\n }\n}\n\nexport function isLater(value) {\n // Return true if today is after the value date\n let result = false\n\n if (value && value instanceof Date) {\n result = new Date() > value;\n } else if (value) {\n result = new Date() > new Date(value)\n }\n\n return result;\n}\n\nexport function isObject(value) {\n return (!!value) && (value.constructor === Object);\n}\n\nexport function findIndex(array, fn) {\n if (!Array.isArray(array)\n || !(typeof fn === 'function')) {\n return undefined;\n }\n for(let i = 0; i < array.length; i++) {\n const element = array[i];\n\n if(fn(element)) {\n return i;\n }\n }\n\n return undefined;\n}\n\nexport function escapeHtml(unsafe) {\n return unsafe\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n","const contentful = require('contentful');\n\nclass ContentfulClient {\n\n constructor() {\n this.personalAccessToken = process.env.CF_PERSONAL_ACCESS_TOKEN;\n this.deliveryAccessToken = process.env.CF_DELIVERY_ACCESS_TOKEN;\n this.spaceId = process.env.CF_SPACE_ID;\n this.environmentId = process.env.CF_ENVIRONMENT;\n\n if(this.deliveryAccessToken && this.deliveryAccessToken !== '') {\n this.contentfulClient = contentful.createClient({\n space: this.spaceId,\n accessToken: this.deliveryAccessToken,\n environment: this.environmentId\n });\n }\n\n }\n\n static create() {\n return new ContentfulClient();\n }\n getPersonalAccessToken() {\n return this.personalAccessToken;\n }\n getDeliveryAccessToken() {\n return this.deliveryAccessToken;\n }\n getSpaceId() {\n return this.spaceId;\n }\n getEnvironmentId() {\n return this.environmentId;\n }\n\n async getClient() {\n return this.contentfulClient;\n }\n}\n\nexport default new ContentfulClient();","import '@babel/polyfill';\nimport React, {Fragment, lazy, Suspense} from 'react'\nimport PropTypes from 'prop-types'\nimport Router from 'next/router';\nimport Head from 'next/head';\nimport Block from '../adapters/helpers/Block';\nimport { customSuperJsonStringify, getCanonicalURL } from '../adapters/helpers/Utils';\nimport ImageFactory from '../adapters/cloudinary/ImageFactory';\nimport { setViewed } from '../persistence/recentlyViewed'\nimport contentfulClient from '../adapters/model/ContentfulClient';\nimport { MetaConstants } from '../adapters/helpers/Constants';\nimport { BazaarVoiceConstants } from '../adapters/helpers/Constants';\nimport { OrganizationConstants, ComponentFactoryConstants } from '../adapters/helpers/Constants';\nimport { addBVScript, addBVProductPageCallback, handleClickToScrollToRnR } from '../adapters/helpers/Utils';\nconst Loader = lazy(() => import('../adapters/helpers/Loader'));\nimport DOMPurify from 'isomorphic-dompurify';\nconst Meta = lazy(() => import('../components/Meta/Meta'));\nconst GTMScriptFunction = lazy(() => import('../components/GTMScriptFunction'));\n\nclass Product extends React.Component {\n\n componentDidMount() {\n const slug = this.props?.slug;\n const product = this.getProduct();\n\n if(slug) {\n setViewed(slug);\n }\n\n Router.beforePopState(({as}) => {\n location.href = as;\n });\n\n addBVScript();\n addBVProductPageCallback(product?.name);\n handleClickToScrollToRnR();\n }\n\n static async getInitialProps({ asPath }) {\n const client = await contentfulClient.getClient();\n const locales = await client.getLocales();\n const defaultLocale = locales.items.find(locale => locale.default);\n const countryCode = defaultLocale.code.slice(-2);\n const languageCode = defaultLocale.code.substring(0, 2);\n\n let baseProps = await this.initPage(asPath);\n baseProps.countryCode = countryCode;\n baseProps.languageCode = languageCode;\n return {\n ...baseProps\n }\n }\n\n static async initPage(slug) {\n let product = undefined;\n\n // Errors pages doesn't have a page entry in Contentful CMS\n\n if (slug) {\n const { default: productDao } = await import('Model/dao/ProductDao');\n product = await productDao.getActiveProductBySlug(slug);\n }\n let newProducts = product;\n newProducts?.fields?.blocks[0]?.fields?.blocks[1]?.fields?.blocks.map((blocksArr)=>{\n if(blocksArr?.fields?.contentType == ComponentFactoryConstants.ProductHighlights && blocksArr?.fields?.background?.fields){\n blocksArr.fields.background.fields.isBannerImage = true;\n }else if(blocksArr.fields.devicesConfigurations){\n blocksArr.fields.devicesConfigurations.map((devices)=>{\n if(devices.fields.backgroundAsset && devices.fields.backgroundAsset.fields){\n devices.fields.backgroundAsset.fields.isBannerImage = true;\n }\n })\n }\n })\n if(newProducts?.fields?.productOverview?.fields?.mainAsset?.fields){\n newProducts.fields.productOverview.fields.mainAsset.fields.isBannerImage = true;\n }\n\n return {'product' : newProducts, 'slug' : slug};\n }\n\n constructor(props) {\n super(props);\n }\n\n /**\n * Rendering of the page. This always render the page using a common layout.\n *\n * Override the render method to do otherwise.\n *\n * @returns {*}\n */\n render() {\n let product = this.getProduct();\n let pagePath = product.productOverview.fields.slug.fields.slug;\n let productVariants = product.productOverview.fields.productVariants;\n let productVariant = {}\n if (productVariants) {\n productVariant = productVariants[0];\n }\n let metaData = this.getMetadata()\n if(metaData){\n metaData.pageType = 'product'\n }\n return (\n }>\n \n }>\n \n {this.renderBazaarVoiceDynamicCatalogCollectionScript()}\n \n
\n }>{this.renderBody()}\n
\n }>\n \n \n
\n
\n )\n }\n\n getProduct() {\n return this.props.product.fields;\n }\n\n getMetadata() {\n return this.props.product.fields.metadata.fields\n }\n\n /**\n * By default, the page will render the modules of the Product.\n * Can be overridden on the child class to do specific rendering.\n * @returns {*|void}\n */\n renderBody() {\n return new Block(this.props.product).renderChildBlocks({ extraAttributes : {entity: this.getProduct(), slug: this.props.slug}});\n }\n\n getImageUrl(image) {\n let contentImageId = image?.fields?.asset?.fields?.file?.url;\n let url = contentImageId && ImageFactory.buildContentfullImageUrl(contentImageId);\n return url;\n }\n\n renderBazaarVoiceDynamicCatalogCollectionScript() {\n let product = this.getProduct();\n\n let countryCode = this.props.countryCode;\n\n let imageUrl = this.getImageUrl(product.productOverview.fields.mainAsset);\n let productPageUrl = getCanonicalURL(product.productOverview.fields.slug.fields.slug, MetaConstants.https);\n\n let productVariants = product.productOverview.fields.productVariants;\n let skus = [];\n let eans = [];\n let reviewAndRatingId;\n if (productVariants) {\n for (let i = 0; i < productVariants.length; i++) {\n let productVariant = productVariants[i];\n\n let sku = productVariant?.fields?.sku;\n let ean = productVariant?.fields?.ean;\n\n if (ean) {\n if(this.isValidBarcode(ean)) {\n if (ean.length == 13) {\n eans.push(ean);\n }\n }\n }\n\n if(sku) {\n if(this.isValidBarcode(sku)) {\n if (sku.length == 12) {\n skus.push(sku);\n }\n // EANs have been put in the SKU fields of product variant in contentful\n // add sku to ean list if sku is a ean code(length of 13).\n if (sku.length == 13) {\n if (!eans.includes(sku)) {\n eans.push(sku);\n }\n }\n }\n }\n\n if (productVariant.fields.isBazaarVoiceIdentifier) {\n reviewAndRatingId = productVariant?.fields?.bazaarVoiceId;\n // if reviewAndRatingId is null use sku/ean\n if (reviewAndRatingId === undefined) {\n if (sku) {\n reviewAndRatingId = sku;\n } else if (sku === undefined) {\n reviewAndRatingId = ean;\n }\n if (reviewAndRatingId === undefined) {\n console.error('No reviewAndRatingId specified for product variant Bazaar Voice identifier:',\n productVariant?.fields?.name);\n }\n }\n }\n }\n }\n\n // product\n let dccProduct = {\n 'productId': reviewAndRatingId,\n 'productName': product.name,\n 'productDescription': product.productOverview.fields.description,\n 'productImageURL': imageUrl,\n 'productPageURL': productPageUrl,\n 'brandName': OrganizationConstants.brand,\n 'upcs' : skus,\n 'eans': eans\n }\n\n if(product.productOverview.fields.reviewAndRatingCategory) {\n dccProduct.categoryPath = [\n {\n 'Name' : product.productOverview.fields.reviewAndRatingCategory\n }\n ]\n }\n\n // Catalog\n let catalogProducts = [];\n catalogProducts.push(dccProduct);\n\n\n // Family and Bazaar voice master product values\n let reviewAndRatingFamilyId = product.productOverview.fields.reviewAndRatingFamilyId;\n\n if (reviewAndRatingFamilyId) {\n let familyJson = [{\n 'id': reviewAndRatingFamilyId,\n 'expand': false\n }];\n dccProduct.families = familyJson;\n // Master product\n let masterProductId = getBazaarVoiceMasterProductId(reviewAndRatingFamilyId);\n let masterProductName = getBazaarVoiceMasterProductName(reviewAndRatingFamilyId);\n\n let masterProductJson = {\n 'productId': masterProductId,\n 'productName': masterProductName,\n 'productPageURL': productPageUrl,\n 'upcs' : skus,\n 'eans': eans,\n 'families': [{\n 'id': reviewAndRatingFamilyId,\n 'expand': true\n }]\n }\n catalogProducts.push(masterProductJson)\n }\n\n let languageCode = this.props.languageCode;\n let bazaarVoiceLocale = languageCode + '_' + countryCode;\n let catalogProductsString = customSuperJsonStringify(catalogProducts);\n\n let render;\n // do not render if we no productID\n if(reviewAndRatingId) {\n render = \n \n ;\n }\n\n return render;\n }\n\n isValidBarcode(barcode) {\n // check length\n if (barcode.length != 12 && barcode.length != 13) {\n return false;\n }\n\n let lastDigit = Number(barcode.substring(barcode.length - 1));\n let checkSum;\n if (isNaN(lastDigit)) { return false; } // not a valid upc/ean\n\n let arr = barcode.substring(0,barcode.length - 1).split('').reverse();\n let oddTotal = 0, evenTotal = 0;\n\n for (let i=0; i\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","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/product\",\n function () {\n return require(\"private-next-pages/product.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/product\"])\n });\n }\n ","module.exports = require('./dist/shared/lib/head')\n","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5345],{42456:function(e,t,n){\"use strict\";function r(e,t){return t?\"https:\"+e+\"?\"+t+\"&fm=webp&q=75\":\"https:\"+e+\"?fm=webp&q=75\"}t.ZP={buildContentfullImageUrl:r,buildContentfullImageUrlByHeight:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"auto\";return\"https:\"+e+\"?h=\"+t+\"&fm=webp&q=75\"},buildContentfullImageUrlByWidth:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"auto\";return\"https:\"+e+\"?w=\"+t+\"&fm=webp&q=75\"},imageContentfullDpr:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";return t?r(e,t):r(e)},imageContentfullSrc:function(e,t){return r(e,t)}}},61986:function(e,t,n){\"use strict\";function r(e,t){if(!Array.isArray(e)||0===e.length||!Number.isInteger(t)||0===t)return[];for(var n=[],r=[],i=0;i0&&n.push(r),n}function i(e){if(Array.isArray(e)){for(var t=void 0,n=0;n=e.length?e.slice():e.slice(0,t)}function o(e){var t=!1;return e&&e instanceof Date?t=new Date>e:e&&(t=new Date>new Date(e)),t}function a(e){return!!e&&e.constructor===Object}function c(e,t){if(Array.isArray(e)&&\"function\"==typeof t)for(var n=0;n/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}n.d(t,{Kn:function(){return a},LT:function(){return i},Ps:function(){return u},Xv:function(){return s},cx:function(){return c},en:function(){return o},yo:function(){return r}})},57503:function(e,t,n){\"use strict\";var r=n(49376),i=n.n(r),u=n(33227),o=n.n(u),a=n(88361),c=n.n(a),s=n(87794),l=n.n(s),f=n(27244),d=function(){function e(){o()(this,e),this.personalAccessToken=\"\",this.deliveryAccessToken=\"1OzLXs6MtVzVfBebWxfGpSa7OyzoAfvN8xsoIOYWt_k\",this.spaceId=\"3xxmjv2iej73\",this.environmentId=\"master\",this.deliveryAccessToken&&\"\"!==this.deliveryAccessToken&&(this.contentfulClient=f.createClient({space:this.spaceId,accessToken:this.deliveryAccessToken,environment:this.environmentId}))}var t;return c()(e,[{key:\"getPersonalAccessToken\",value:function(){return this.personalAccessToken}},{key:\"getDeliveryAccessToken\",value:function(){return this.deliveryAccessToken}},{key:\"getSpaceId\",value:function(){return this.spaceId}},{key:\"getEnvironmentId\",value:function(){return this.environmentId}},{key:\"getClient\",value:(t=i()(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt(\"return\",this.contentfulClient);case 1:case\"end\":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:\"create\",value:function(){return new e}}]),e}();t.Z=new d},77331:function(e,t,n){\"use strict\";n.r(t),n.d(t,{getBazaarVoiceMasterProductId:function(){return L},getBazaarVoiceMasterProductName:function(){return W}});var r=n(930),i=n.n(r),u=n(49376),o=n.n(u),a=n(33227),c=n.n(a),s=n(88361),l=n.n(s),f=n(85971),d=n.n(f),p=n(52715),v=n.n(p),g=n(91193),h=n.n(g),y=n(87794),m=n.n(y),b=(n(26981),n(67294)),w=n(11163),k=n.n(w),C=n(9008),P=n.n(C),I=n(40483),O=n(8996),x=n(42456),A=n(88755),D=n(57503),S=n(24036),j=n(29238),E=n.n(j),T=n(85893);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t(new Date).getTime()}))}function l(e){if(\"undefined\"!=typeof localStorage&&localStorage.setItem){var t=f(),n=t.slice(),r=c(t,e);void 0!==r&&n.splice(r,1);var l=s(n),d=(0,o.Ps)([{id:e,expiral:(new Date).getTime()+2592e6}].concat(i()(l)),3);localStorage.setItem(u.dA.RECENTLY_VIEWED_PRODUCTS,(0,a.hD)(d))}}function f(){if(\"undefined\"!=typeof localStorage&&localStorage.getItem){var e=localStorage.getItem(u.dA.RECENTLY_VIEWED_PRODUCTS);if(null!==e)try{var t=(0,a.Cp)(e);return function(e){if(!Array.isArray(e))return!1;for(var t=0;t