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AA,EAAAD,EAAAiI,GAAA,SAAAhI,EAAAiI,EAAA,IAAAxH,EAAAmG,OAAA,UAAA7G,CAAA,SAAAQ,EAAAT,IAAA,CAAAC,EAAA,GAAAQ,EAAAT,IAAA,CAAAU,EAAA,CAAAT,EAAA2B,IAAA,IAAApB,EAAA6H,+BAAA,CAAA5H,EAAA,aAAAG,EAAAX,EAAAkG,IAAA,CAAAtF,EAAA,GAAAqB,EAAA,EAAAA,EAAAtB,EAAAiG,MAAA,CAAA3E,IAAAC,EAAAvB,CAAA,CAAAsB,EAAA,CAAArB,EAAAb,IAAA,EAAAqF,SAAAlD,EAAAkD,QAAA,CAAA6C,IAAA/F,EAAA+F,GAAA,CAAApD,OAAA,CAAAmD,KAAA,MAAA9F,EAAA,OAAAA,EAAA2C,MAAA,CAAAmD,IAAA,CAAAD,gBAAA,MAAA7F,EAAA,OAAAA,EAAA2C,MAAA,CAAAkD,eAAA,IAAAnH,GAAAA,EAAAgG,MAAA,IAAAzG,CAAAA,CAAA,CAAAF,EAAA4E,MAAA,CAAAmD,IAAA,EAAApH,CAAAA,CAAA,0BAAAZ,EAAA6B,IAAA,KAAA7B,EAAA,aAAAA,CAAA,CAAAE,CAAA,SAAAD,GAAA6B,KAAA,MAAAC,UAAA,MAAAxB,CAAA,EAAAgC,EAAA8F,SAAA,CAAApI,CAAAA,EAAAqG,OAAA,CAAAzC,CAAA,iBAAA7D,CAAA,CAAAC,CAAA,CAAAC,CAAA,GAAAoI,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAxI,IAAA,uCAAAG,EAAA,qBAAAF,CAAA,EAAAA,EAAA2C,CAAA,uEAAA3C,EAAAA,EAAAK,CAAA,UAAAmI,KAAAxI,EAAA2C,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'))\nimport {asyncForEach} from '../adapters/helpers/Utils';\nconst GTMScriptFunction = dynamic(()=>import('../components/GTMScriptFunction'))\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),i=t.n(r),s=t(33227),l=t.n(s),u=t(88361),a=t.n(u),c=t(87794),o=t.n(c),d=t(45432),f=function(){function e(){l()(this,e),this.personalAccessToken=\"\",this.deliveryAccessToken=\"lRnkNzAfphZD5EmIvd-Sscv45GEkW5bUwS4FN1SHcZE\",this.spaceId=\"xwl2qgknr5qo\",this.environmentId=\"master\",this.deliveryAccessToken&&\"\"!==this.deliveryAccessToken&&(this.contentfulClient=d.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=i()(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 f},18163:function(e,n,t){\"use strict\";t.r(n);var r=t(930),i=t.n(r),s=t(49376),l=t.n(s),u=t(33227),a=t.n(u),c=t(88361),o=t.n(c),d=t(85971),f=t.n(d),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),O=t.n(A),x=t(40483),P=t(8996),B=t(57503),C=t(85893);function T(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==d||null==(f=d.fields)?void 0:f.categories,l,this.fetchArticles);case 16:return(null==(r=s)||null==(i=r.fields)?void 0:i.series)?null==(p=s)||null==(v=p.fields)||v.series.map((function(e){var n,t,r,i;(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==(i=r.mobileBackgroundAsset)?void 0:i.fields)&&(e.fields.mobileBackgroundAsset.fields.isBannerImage=!0)})):null==(g=s)||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,i,s,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==(i=r.backgroundAsset)?void 0:i.fields)&&(e.fields.backgroundAsset.fields.isBannerImage=!0),(null==e||null==(s=e.fields)?void 0:s.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 d,f=[];null==e||null==(d=e.fields)||d.articleList.map((function(e){var n={fields:{articleOverview:e.fields.articleOverview,name:e.fields.name,contentType:e.fields.contentType},metadata:e.metadata};f.push(n)})),e.fields.articleList=f}})),s.fields.categories=[],e.abrupt(\"return\",{page:s,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 i,s,l,u,a,c,o,d,f,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==(i=n.fields)||null==(s=i.subcategories)?void 0:s.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(d=e.sent,f=[],p=0;p0&&(r[n.fields.name]=f);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,[9636,7749,4885,8759,5432,5609,483,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","i","s","l","u","a","c","o","d","f","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","O","x","P","B","C","T","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","E","then","bind","loadableGenerated","webpack","_","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":""}