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A,IAAA1H,EAAAqG,OAAA,UAAA/G,CAAA,SAAAQ,EAAAT,IAAA,CAAAC,EAAA,GAAAQ,EAAAT,IAAA,CAAAU,EAAA,CAAAT,EAAA2B,IAAA,IAAApB,EAAA+H,+BAAA,CAAA9H,EAAA,aAAAG,EAAAX,EAAAoG,IAAA,CAAAxF,EAAA,GAAAqB,EAAA,EAAAA,EAAAtB,EAAAmG,MAAA,CAAA7E,IAAAC,EAAAvB,CAAA,CAAAsB,EAAA,CAAArB,EAAAb,IAAA,EAAAuF,SAAApD,EAAAoD,QAAA,CAAA6C,IAAAjG,EAAAiG,GAAA,CAAApD,OAAA,CAAAmD,KAAAhG,EAAA6C,MAAA,CAAAmD,IAAA,CAAAD,gBAAA/F,EAAA6C,MAAA,CAAAkD,eAAA,IAAArH,GAAAA,EAAAkG,MAAA,IAAA3G,CAAAA,CAAA,CAAAF,EAAA8E,MAAA,CAAAmD,IAAA,EAAAtH,CAAAA,CAAA,0BAAAZ,EAAA6B,IAAA,KAAA7B,EAAA,aAAAA,CAAA,CAAAE,CAAA,SAAAD,GAAA6B,KAAA,MAAAC,UAAA,MAAAxB,CAAA,EAAAgC,EAAAgG,SAAA,CAAAtI,CAAAA,EAAAuG,OAAA,CAAAzC,CAAA,iBAAA/D,CAAA,CAAAC,CAAA,CAAAC,CAAA,GAAAsI,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAA1I,IAAA,uCAAAG,EAAA,qBAAAF,CAAA,EAAAA,EAAA4C,CAAA,oDAAA5C,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} from 'react'\nimport dynamic from 'next/dynamic';\nimport Router from 'next/router';\nimport Block from '../adapters/helpers/Block';\nimport PropTypes from 'prop-types'\nconst Meta = dynamic(()=>import('../components/Meta/Meta'))\nconst GTMScriptFunction = dynamic(()=>import('../components/GTMScriptFunction'))\nimport {asyncForEach} from '../adapters/helpers/Utils';\nimport contentfulClient from '../adapters/model/ContentfulClient';\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 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 {this.renderBody()}\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(96454),d=function(){function e(){l()(this,e),this.personalAccessToken=\"\",this.deliveryAccessToken=\"98n-XsE3-TWhr-b_aHbb9og3-bxgKT5Upq7lyXO1Mxs\",this.spaceId=\"2gbekol4uxxy\",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),w=t.n(m),A=t(11163),x=t.n(A),O=t(40483),P=t(8996),B=t(57503),T=t(85893);function C(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 j(e){for(var n=1;n0)){e.next=16;break}return e.next=16,(0,P.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==(w=m.fields)||null==(A=w.blocks)||A.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,[1876,6454,5609,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","w","A","x","O","P","B","T","C","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","_","then","bind","loadableGenerated","webpack","E","Promise","all","S","Reflect","construct","sham","Proxy","Boolean","prototype","valueOf","call","constructor","beforePopState","as","location","href","getPage","slug","fields","getMetadata","pageType","jsxs","Fragment","children","jsx","metadata","pagePath","className","renderBody","languageCode","props","countryCode","page","articles","renderChildBlocks","extraAttributes","getArticles","asPath","getClient","sent","getLocales","items","find","default","code","slice","substring","initPage","j","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":""}