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AAA4C,CAAA,4EAAA5C,EAAAA,EAAAI,CAAA,UAAAsI,KAAA1I,EAAA4C,CAAA","sources":["webpack://_N_E/./adapters/model/ContentfulClient.js","webpack://_N_E/./pages/article-landing.js","webpack://_N_E/?ea9a","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, lazy, Suspense } from 'react'\nimport dynamic from 'next/dynamic';\nimport Router from 'next/router';\nimport PropTypes from 'prop-types'\nimport Block from '../adapters/helpers/Block';\nimport { asyncForEach } from '../adapters/helpers/Utils';\nimport contentfulClient from '../adapters/model/ContentfulClient';\nconst Meta = lazy(() => import('../components/Meta/Meta'));\nconst GTMScriptFunction = lazy(() => import('../components/GTMScriptFunction'));\nconst Loader = lazy(() => import('../adapters/helpers/Loader'));\n\nclass Page 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 page = {};\n let groupedArticles = {};\n\n if (slug) {\n const { default: pageDao } = await import('Model/dao/PageDao');\n page = await pageDao.getActivePageBySlug(slug);\n const pageWithSys = await pageDao.getActivePageBySlugWithSysFields(slug);\n\n if (pageWithSys?.fields?.categories && pageWithSys?.fields?.categories.length > 0) {\n // Fetch article for every categories assign to the page\n // Those are assign to an object by name and passed globally to every block in the page\n // { \"category-1\" : [{article object}], \"category-2\" : [{article object}] }\n await asyncForEach(pageWithSys?.fields?.categories, groupedArticles, this.fetchArticles);\n }\n }\n\n if (page?.fields?.series) {\n page?.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 page?.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?.fields) {\n devices.fields.backgroundAsset.fields.isBannerImage = true\n }\n })\n }\n\n if (blocksArr?.fields?.backgroundAsset && blocksArr?.fields?.backgroundAsset?.fields) {\n blocksArr.fields.backgroundAsset.fields.isBannerImage = true;\n }\n\n if (blocksArr?.fields?.mobileBackgroundAsset && blocksArr?.fields?.mobileBackgroundAsset?.fields) {\n blocksArr.fields.mobileBackgroundAsset.fields.isBannerImage = true;\n }\n if (blocksArr?.fields?.contentType == \"articleListBlock\" && blocksArr?.fields?.articleList) {\n let newArticleLists = []\n blocksArr?.fields?.articleList.map((articleLists) => {\n let articlesObj = {\n \"fields\": {\n \"articleOverview\": articleLists.fields.articleOverview,\n \"name\": articleLists.fields.name,\n \"contentType\": articleLists.fields.contentType,\n },\n \"metadata\": articleLists.metadata\n };\n newArticleLists.push(articlesObj)\n })\n blocksArr.fields.articleList = newArticleLists\n }\n })\n }\n\n page.fields.categories = []\n\n return { 'page': page, 'articles': groupedArticles };\n }\n\n static async fetchArticles(category, container) {\n const { default: articleDao } = await import('Model/dao/ArticleDao');\n let idsToSearch = [];\n\n let categoryId = category.sys.id;\n let subCategoriesIds = category?.fields?.subcategories?.map(subcategory => subcategory.sys?.id);\n\n if (subCategoriesIds) {\n subCategoriesIds.forEach(subCategoryId => idsToSearch.push(subCategoryId));\n } else {\n idsToSearch.push(categoryId)\n }\n\n const categoryArticles = await articleDao.getLatestArticleBySubcategories(idsToSearch);\n let finalCategoryArticles = [];\n for (let i = 0; i < categoryArticles.length; i++) {\n let tempobj = categoryArticles[i]\n finalCategoryArticles.push({\n \"metadata\": tempobj[\"metadata\"],\n \"sys\": tempobj[\"sys\"],\n \"fields\": {\n \"name\": tempobj.fields[\"name\"],\n \"articleOverview\": tempobj.fields[\"articleOverview\"]\n }\n })\n }\n\n if (finalCategoryArticles && finalCategoryArticles.length > 0) {\n container[category.fields.name] = finalCategoryArticles;\n }\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 page = this.getPage();\n const pagePath = page.slug.fields.slug;\n let metaData = this.getMetadata()\n if (metaData) {\n metaData.pageType = 'page'\n }\n return (\n \n }>\n \n \n
\n }>\n {this.renderBody()}\n \n
\n }>\n \n \n
\n )\n }\n\n getPage() {\n return this.props.page.fields;\n }\n\n getArticles() {\n return this.props.articles;\n }\n\n getMetadata() {\n return this.props.page.fields.metadata.fields\n }\n\n /**\n * By default, the page will render the modules of the page.\n * Can be overridden on the child class to do specific rendering.\n * @returns {*|void}\n */\n renderBody() {\n return new Block(this.props.page).renderChildBlocks({ extraAttributes: { articles: this.getArticles() } });\n }\n}\n\nPage.propTypes = {\n page: PropTypes.object,\n languageCode: PropTypes.string,\n countryCode: PropTypes.string,\n articles: PropTypes.array\n};\n\nexport default Page\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/article-landing\",\n function () {\n return require(\"private-next-pages/article-landing.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/article-landing\"])\n });\n }\n ","(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5173],{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),a=t.n(u),c=t(87794),o=t.n(c),f=t(45432),d=function(){function e(){l()(this,e),this.personalAccessToken=\"\",this.deliveryAccessToken=\"MhQ3riC3Q_iaqXLRhT5gX5HHlTmM0SvgzvnSUz_QD6g\",this.spaceId=\"lps8cfk1xj50\",this.environmentId=\"master\",this.deliveryAccessToken&&\"\"!==this.deliveryAccessToken&&(this.contentfulClient=f.createClient({space:this.spaceId,accessToken:this.deliveryAccessToken,environment:this.environmentId}))}var n;return a()(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()(o().mark((function e(){return o().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},18163: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),a=t.n(u),c=t(88361),o=t.n(c),f=t(85971),d=t.n(f),p=t(52715),v=t.n(p),g=t(91193),h=t.n(g),y=t(87794),k=t.n(y),b=(t(26981),t(67294)),m=(t(5152),t(11163)),A=t.n(m),w=t(40483),x=t(8996),O=t(57503),P=t(85893);function j(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 B(e){for(var n=1;n0)){e.next=16;break}return e.next=16,(0,x.ML)(null==f||null==(d=f.fields)?void 0:d.categories,l,this.fetchArticles);case 16:return(null==(r=i)||null==(s=r.fields)?void 0:s.series)?null==(p=i)||null==(v=p.fields)||v.series.map((function(e){var n,t,r,s;(null==e||null==(n=e.fields)||null==(t=n.backgroundAsset)?void 0:t.fields)&&(e.fields.backgroundAsset.fields.isBannerImage=!0),(null==e||null==(r=e.fields)||null==(s=r.mobileBackgroundAsset)?void 0:s.fields)&&(e.fields.mobileBackgroundAsset.fields.isBannerImage=!0)})):null==(g=i)||null==(h=g.fields)||null==(y=h.blocks[0])||null==(b=y.fields)||null==(m=b.blocks[1])||null==(A=m.fields)||null==(w=A.blocks)||w.map((function(e){var n,t,r,s,i,l,u,a,c,o;if((null==e||null==(n=e.fields)?void 0:n.devicesConfigurations)&&(null==e||null==(o=e.fields)||o.devicesConfigurations.map((function(e){var n,t;(null==e||null==(n=e.fields)||null==(t=n.backgroundAsset)?void 0:t.fields)&&(e.fields.backgroundAsset.fields.isBannerImage=!0)}))),(null==e||null==(t=e.fields)?void 0:t.backgroundAsset)&&(null==e||null==(r=e.fields)||null==(s=r.backgroundAsset)?void 0:s.fields)&&(e.fields.backgroundAsset.fields.isBannerImage=!0),(null==e||null==(i=e.fields)?void 0:i.mobileBackgroundAsset)&&(null==e||null==(l=e.fields)||null==(u=l.mobileBackgroundAsset)?void 0:u.fields)&&(e.fields.mobileBackgroundAsset.fields.isBannerImage=!0),\"articleListBlock\"==(null==e||null==(a=e.fields)?void 0:a.contentType)&&(null==e||null==(c=e.fields)?void 0:c.articleList)){var f,d=[];null==e||null==(f=e.fields)||f.articleList.map((function(e){var n={fields:{articleOverview:e.fields.articleOverview,name:e.fields.name,contentType:e.fields.contentType},metadata:e.metadata};d.push(n)})),e.fields.articleList=d}})),i.fields.categories=[],e.abrupt(\"return\",{page:i,articles:l});case 19:case\"end\":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:\"fetchArticles\",value:(n=l()(k().mark((function e(n,r){var s,i,l,u,a,c,o,f,d,p,v;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(6381).then(t.bind(t,76381));case 2:return l=e.sent,u=l.default,a=[],c=n.sys.id,(o=null==n||null==(s=n.fields)||null==(i=s.subcategories)?void 0:i.map((function(e){var n;return null==(n=e.sys)?void 0:n.id})))?o.forEach((function(e){return a.push(e)})):a.push(c),e.next=10,u.getLatestArticleBySubcategories(a);case 10:for(f=e.sent,d=[],p=0;p0&&(r[n.fields.name]=d);case 14:case\"end\":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})}]),u}(b.Component);n.default=S},45605:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/article-landing\",function(){return t(18163)}])}},function(e){e.O(0,[4446,4885,7115,7268,9250,5432,5609,811,9774,2888,179],(function(){return n=45605,e(e.s=n);var n}));var n=e.O();_N_E=n}]);"],"names":["self","webpackChunk_N_E","push","e","n","t","r","s","i","l","u","a","c","o","f","d","personalAccessToken","deliveryAccessToken","spaceId","environmentId","contentfulClient","createClient","space","accessToken","environment","key","value","mark","wrap","prev","next","abrupt","stop","apply","arguments","Z","p","v","g","h","y","k","b","m","A","w","x","O","P","j","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","T","lazy","then","bind","I","_","Promise","resolve","S","Reflect","construct","sham","Proxy","Boolean","prototype","valueOf","call","constructor","beforePopState","as","location","href","getPage","slug","fields","getMetadata","pageType","jsxs","Fragment","children","jsx","Suspense","fallback","metadata","pagePath","className","renderBody","languageCode","props","countryCode","page","articles","renderChildBlocks","extraAttributes","getArticles","asPath","getClient","sent","getLocales","items","find","default","code","slice","substring","initPage","B","length","forEach","getOwnPropertyDescriptors","defineProperties","defineProperty","getActivePageBySlug","getActivePageBySlugWithSysFields","categories","ML","fetchArticles","series","map","backgroundAsset","isBannerImage","mobileBackgroundAsset","blocks","devicesConfigurations","contentType","articleList","articleOverview","name","sys","id","subcategories","getLatestArticleBySubcategories","Component","window","__NEXT_P","_N_E"],"sourceRoot":""}