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C,CAAAA,EAAAD,EAAAwF,MAAA,YAAAtF,CAAAA,EAAAD,EAAA6C,MAAA,SAAA3C,CAAAA,EAAAD,EAAAsF,MAAA,YAAApF,CAAAA,EAAAD,EAAA2C,MAAA,GAAA1C,EAAAoF,MAAA,CAAAJ,GAAA,UAAArH,CAAA,MAAAC,EAAAC,CAAA,QAAAF,GAAA,MAAAC,CAAAA,EAAAD,EAAA+E,MAAA,SAAA9E,EAAAyH,qBAAA,UAAA1H,GAAA,MAAAE,CAAAA,EAAAF,EAAA+E,MAAA,GAAA7E,EAAAwH,qBAAA,CAAAL,GAAA,UAAArH,CAAA,EAAAA,EAAA+E,MAAA,CAAAuC,eAAA,EAAAtH,CAAAA,EAAA+E,MAAA,CAAAuC,eAAA,CAAAC,aAAA,IAAAvH,EAAA+E,MAAA,CAAAuC,eAAA,CAAAvC,MAAA,EAAA/E,CAAAA,EAAA+E,MAAA,CAAAuC,eAAA,CAAAvC,MAAA,CAAAwC,aAAA,WAAAvH,EAAA4B,MAAA,WAAAmE,WAAAzF,EAAAwE,KAAA7E,EAAAgF,MAAA9E,CAAA,4BAAAH,EAAA6B,IAAA,KAAA7B,EAAA,aAAAA,CAAA,CAAAE,CAAA,SAAAD,GAAA6B,KAAA,MAAAC,UAAA,MAAA1B,CAAA,EAAAkC,EAAAoF,SAAA,CAAA1H,CAAAA,EAAAwG,OAAA,CAAA5C,CAAA,iBAAA7D,CAAA,CAAAC,CAAA,CAAAC,CAAA,GAAA0H,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAA9H,IAAA,kCAAAG,EAAA,qBAAAF,CAAA,EAAAA,EAAA4C,CAAA,uEAAA5C,EAAAA,EAAAI,CAAA,UAAA0H,KAAA9H,EAAA4C,CAAA","sources":["webpack://_N_E/./adapters/model/ContentfulClient.js","webpack://_N_E/./pages/collection.js","webpack://_N_E/?3470","webpack://_N_E/"],"sourcesContent":["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} from 'react'\nimport PropTypes from 'prop-types'\nimport Router from 'next/router';\nimport Block from '../adapters/helpers/Block';\nimport dynamic from 'next/dynamic';\nconst Meta = dynamic(()=>import('../components/Meta/Meta'))\nimport { addBVScript } from '../adapters/helpers/Utils';\nimport { addBVCollectionPageCallback } from '../adapters/helpers/Utils';\nimport contentfulClient from '../adapters/model/ContentfulClient';\nconst GTMScriptFunction = dynamic(()=>import('../components/GTMScriptFunction'))\n\nclass Collection extends React.Component {\n\n componentDidMount() {\n Router.beforePopState(({as}) => {\n location.href = as;\n });\n\n addBVScript();\n addBVCollectionPageCallback();\n }\n\n static async getInitialProps({ asPath, query }) {\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 const path = query.slug || asPath;\n const baseProps = await this.initPage(path, query);\n baseProps.countryCode = countryCode;\n baseProps.languageCode = languageCode;\n\n return {\n ...baseProps\n }\n }\n\n static async initPage(slug, query) {\n let collection = undefined;\n\n if (slug) {\n const { default: collectionDao } = await import('Model/dao/CollectionDao');\n collection = await collectionDao.getActiveCollectionBySlug(slug);\n }\n\n if(collection?.fields?.series){\n collection?.fields?.series?.map((allSeries)=>{\n if(allSeries?.fields?.backgroundAsset?.fields){\n allSeries.fields.backgroundAsset.fields.isBannerImage = true;\n }\n if(allSeries?.fields?.mobileBackgroundAsset?.fields){\n allSeries.fields.mobileBackgroundAsset.fields.isBannerImage = true;\n }\n })\n }\n else{\n collection?.fields?.blocks[0]?.fields?.blocks[1]?.fields?.blocks.map((blocksArr)=>{\n if(blocksArr?.fields?.devicesConfigurations){\n blocksArr?.fields?.devicesConfigurations.map((devices)=>{\n if(devices.fields.backgroundAsset){\n devices.fields.backgroundAsset.isBannerImage = true;\n if(devices.fields.backgroundAsset.fields){\n devices.fields.backgroundAsset.fields.isBannerImage = true;\n }\n }\n })\n }\n })\n }\n\n return {'collection' : collection, 'slug' : slug, 'query' : query};\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 collection = this.getCollection();\n let pagePath = collection?.slug?.fields?.slug;\n const query = this?.props?.query;\n const selectedSeriesId = query?.series;\n\n let metaData = this.getMetadata()\n if(metaData){\n metaData.pageType = 'collection'\n }\n return (\n \n { !selectedSeriesId ? : null }\n
\n {this.renderBody()}\n
\n \n
\n )\n }\n\n getCollection() {\n return this.props?.collection?.fields;\n }\n\n getMetadata() {\n return this.props?.collection?.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.collection).renderChildBlocks({ extraAttributes : {entity: this.getCollection(), slug: this.props.slug, query: this.props.query} });\n }\n\n}\n\nCollection.propTypes = {\n collection: PropTypes.object,\n slug: PropTypes.any,\n query: PropTypes.object,\n languageCode: PropTypes.string,\n countryCode: PropTypes.string\n}\n\nexport default Collection\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/collection\",\n function () {\n return require(\"private-next-pages/collection.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/collection\"])\n });\n }\n ","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5186],{57503:function(e,n,t){\"use strict\";var r=t(49376),s=t.n(r),i=t(33227),l=t.n(i),u=t(88361),o=t.n(u),c=t(87794),a=t.n(c),f=t(45432),d=function(){function e(){l()(this,e),this.personalAccessToken=\"\",this.deliveryAccessToken=\"lRnkNzAfphZD5EmIvd-Sscv45GEkW5bUwS4FN1SHcZE\",this.spaceId=\"xwl2qgknr5qo\",this.environmentId=\"master\",this.deliveryAccessToken&&\"\"!==this.deliveryAccessToken&&(this.contentfulClient=f.createClient({space:this.spaceId,accessToken:this.deliveryAccessToken,environment:this.environmentId}))}var n;return o()(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:(n=s()(a().mark((function e(){return a().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 n.apply(this,arguments)})}],[{key:\"create\",value:function(){return new e}}]),e}();n.Z=new d},43921:function(e,n,t){\"use strict\";t.r(n);var r=t(930),s=t.n(r),i=t(49376),l=t.n(i),u=t(33227),o=t.n(u),c=t(88361),a=t.n(c),f=t(85971),d=t.n(f),p=t(52715),v=t.n(p),h=t(91193),g=t.n(h),y=t(87794),k=t.n(y),b=(t(26981),t(67294)),m=t(11163),w=t.n(m),A=t(40483),C=t(5152),O=t.n(C),P=t(8996),x=t(57503),j=t(85893);function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function T(e){for(var n=1;n