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A,GAAApE,CAAAA,EAAAoE,MAAA,CAAAD,eAAA,CAAAC,MAAA,CAAAiD,cAAA,CAAAjD,MAAA,CAAAkD,aAAA,KAAA9H,EAAA4B,MAAA,WAAA2E,QAAA/F,CAAA,4BAAAR,EAAA6B,IAAA,KAAA7B,EAAA,aAAAA,CAAA,SAAAC,GAAA6B,KAAA,MAAAC,UAAA,MAAA1B,CAAA,EAAAkC,EAAAwF,SAAA,CAAA9H,CAAAA,EAAAgH,OAAA,CAAArD,CAAA,iBAAA5D,CAAA,CAAAC,CAAA,CAAAC,CAAA,GAAA8H,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAlI,IAAA,+BAAAG,EAAA,qBAAAF,CAAA,EAAAA,EAAA0C,CAAA,uEAAA1C,EAAAA,EAAAM,CAAA,UAAA4H,KAAAlI,EAAA0C,CAAA","sources":["webpack://_N_E/./adapters/model/ContentfulClient.js","webpack://_N_E/./pages/article.js","webpack://_N_E/?8b27","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 dynamic from 'next/dynamic';\nimport Router from 'next/router';\nimport Block from '../adapters/helpers/Block';\nimport contentfulClient from '../adapters/model/ContentfulClient';\nconst Meta = dynamic(()=>import('../components/Meta/Meta'))\nconst GTMScriptFunction = dynamic(()=>import('../components/GTMScriptFunction'))\n\nclass Article extends React.Component {\n\n componentDidMount() {\n Router.beforePopState(({as}) => {\n location.href = as;\n });\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 const 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 article = undefined;\n\n // Errors pages doesn't have a page entry in Contentful CMS\n if (slug) {\n const { default: articleDao } = await import('Model/dao/ArticleDao');\n article = await articleDao.getActiveArticleBySlug(slug);\n }\n if(article?.fields?.articleOverview?.fields?.thumbnailImage?.fields){\n article.fields.articleOverview.fields.thumbnailImage.fields.isBannerImage = true\n }\n return {'article' : article};\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 article = this.getArticle();\n let pagePath = article && article.articleOverview && article.articleOverview.fields && article.articleOverview.fields.slug && article.articleOverview.fields.slug.fields && article.articleOverview.fields.slug.fields.slug;\n let metaData = this.getMetadata()\n if(metaData){\n metaData.pageType = 'article'\n }\n return (\n \n