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A,IAAAvH,GAAAA,EAAAoG,MAAA,IAAA7G,CAAAA,CAAA,CAAAF,EAAA4E,MAAA,CAAAuD,IAAA,EAAAxH,CAAAA,CAAA,0BAAAZ,EAAA6B,IAAA,KAAA7B,EAAA,aAAAA,CAAA,CAAAE,CAAA,SAAAD,GAAA6B,KAAA,MAAAC,UAAA,MAAAxB,CAAA,EAAAgC,EAAAkG,SAAA,CAAAxI,CAAAA,EAAAyG,OAAA,CAAA7C,CAAA,iBAAA7D,CAAA,CAAAC,CAAA,CAAAC,CAAA,GAAAwI,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAA5I,IAAA,uCAAAG,EAAA,qBAAAF,CAAA,EAAAA,EAAA4C,CAAA,wEAAA5C,EAAAA,EAAAI,CAAA,UAAAwI,KAAA5I,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, Suspense, lazy} from 'react'\nimport Router from 'next/router';\nimport Block from '../adapters/helpers/Block';\nimport { campaignOverlayStatus } from '../adapters/helpers/Utils';\nimport PropTypes from 'prop-types'\nimport {asyncForEach} from '../adapters/helpers/Utils';\nimport contentfulClient from '../adapters/model/ContentfulClient';\nimport dynamic from 'next/dynamic';\nconst GTMScriptFunction = lazy(() => import('../components/GTMScriptFunction'));\nconst Meta = lazy(() => import('../components/Meta/Meta'));\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 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 campaignOverlayStatus(this.props?.page?.fields?.isEnableCampaignOverlay);\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),l=t(33227),i=t.n(l),u=t(88361),a=t.n(u),c=t(87794),o=t.n(c),d=t(45432),f=function(){function e(){i()(this,e),this.personalAccessToken=\"\",this.deliveryAccessToken=\"ydTdiTeUGqC5eg4DjFQk7Rq349D7Oy8-FrYexXqTGLc\",this.spaceId=\"d2fkcyq0dak0\",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=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 f},18163:function(e,n,t){\"use strict\";t.r(n);var r=t(930),s=t.n(r),l=t(49376),i=t.n(l),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(11163),x=t.n(m),A=t(40483),w=t(8996),O=t(57503),j=(t(5152),t(85893));function P(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,w.ML)(null==d||null==(f=d.fields)?void 0:f.categories,i,this.fetchArticles);case 16:return(null==(r=l)||null==(s=r.fields)?void 0:s.series)?null==(p=l)||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=l)||null==(h=g.fields)||null==(y=h.blocks[0])||null==(b=y.fields)||null==(m=b.blocks[1])||null==(x=m.fields)||null==(A=x.blocks)||A.map((function(e){var n,t,r,s,l,i,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==(l=e.fields)?void 0:l.mobileBackgroundAsset)&&(null==e||null==(i=e.fields)||null==(u=i.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}})),l.fields.categories=[],e.abrupt(\"return\",{page:l,articles:i});case 19:case\"end\":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:\"fetchArticles\",value:(n=i()(k().mark((function e(n,r){var s,l,i,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 i=e.sent,u=i.default,a=[],c=n.sys.id,(o=null==n||null==(s=n.fields)||null==(l=s.subcategories)?void 0:l.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=_},45605:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/article-landing\",function(){return t(18163)}])}},function(e){e.O(0,[4885,7115,8411,5314,5432,5609,2856,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","l","i","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","x","A","w","O","j","P","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","T","lazy","then","bind","I","S","Promise","resolve","_","Reflect","construct","sham","Proxy","Boolean","prototype","valueOf","call","constructor","beforePopState","as","location","href","getPage","slug","fields","getMetadata","pageType","jsx","Suspense","fallback","children","jsxs","Fragment","metadata","pagePath","className","renderBody","languageCode","props","countryCode","page","articles","q8","isEnableCampaignOverlay","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":""}