{"version":3,"sources":["webpack:///./src/views/FrontendPages/News/ArticlePage.vue?26e8","webpack:///./src/views/FrontendPages/Components/NLSE/Share/ShareButton.vue?f89a","webpack:///./src/assets/images/newsroom/thumbnail/newsThumbnail_header.jpg","webpack:///./src/views/FrontendPages/News/ArticlePage.vue","webpack:///./src/services/newsUtils/newsArticleService.js","webpack:///./src/services/newsUtils/similarArticlesService.js","webpack:///./src/views/FrontendPages/Components/NLSE/Share/ShareButton.vue","webpack:///src/views/FrontendPages/Components/NLSE/Share/ShareButton.vue","webpack:///./src/views/FrontendPages/Components/NLSE/Share/ShareButton.vue?828f","webpack:///./src/views/FrontendPages/Components/NLSE/Share/ShareButton.vue?75ff","webpack:///src/views/FrontendPages/News/ArticlePage.vue","webpack:///./src/views/FrontendPages/News/ArticlePage.vue?2de3","webpack:///./src/views/FrontendPages/News/ArticlePage.vue?c3d9","webpack:///./src/assets/svgs/Share-08.svg"],"names":["module","exports","render","_vm$article","_vm$article2","_vm$article3","_vm$article4","_vm$article5","_vm$article6","_vm","this","_c","_self","article","staticClass","isLoading","attrs","image","imageLoaded","defaultHeader","title","on","$event","staticStyle","_v","_e","_s","getTimeAgo","createdAt","shareLink","_l","tags","tag","key","author","fullName","designation","text","domProps","similarArticles","length","slice","similarArticle","id","imageFilename","nlse_icon","staticRenderFns","getNewsDetailById","async","newsDetail","API","graphql","graphqlOperation","getNewsArticle","newsId","authMode","GRAPHQL_AUTH_MODE","API_KEY","news","data","newsImage","getAWSStorageAsset","authorImage","error","console","fetchSimilarArticles","excludeArticleId","limit","variables","filter","match","ne","sort","field","direction","result","query","searchNewsArticles","items","Promise","all","map","articleImage","ref","toggleDropdown","shareIcon","isOpen","copyLink","showCopy","props","link","type","String","required","require","methods","handleClickOutside","event","$refs","dropdown","contains","target","navigator","clipboard","writeText","setTimeout","mounted","document","addEventListener","component","components","NewsCard","ShareButton","date","formattedDate","moment","format","getBackgroundImageStyle","backgroundImage","articleId","$route","params"],"mappings":"kHAAA,W,oFCA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sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ArticlePage.vue?vue&type=style&index=0&id=2e8342fc&prod&lang=css&\"","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ShareButton.vue?vue&type=style&index=0&id=a6d63afe&prod&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/newsThumbnail_header.95c8685d.jpg\";","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.article)?_c('div',{staticClass:\"news-article\"},[(_vm.isLoading)?_c('v-row',{attrs:{\"justify\":\"center\",\"align\":\"center\"}},[_c('v-col',{staticClass:\"text-center\",attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"spinner-grow spinner-border\"})])],1):_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[(_vm.article.image && _vm.article.image !== '')?_c('div',{staticClass:\"header-image\"},[_c('img',{staticClass:\"header-img\",attrs:{\"src\":_vm.imageLoaded ? _vm.article.image : _vm.defaultHeader,\"alt\":_vm.article.title},on:{\"load\":function($event){_vm.imageLoaded = true},\"error\":function($event){_vm.imageLoaded = false}}}),_c('div',{staticClass:\"head-image-text\",staticStyle:{\"opacity\":\"80%\"}},[_vm._v(\" NEXT LEVEL NEWS \")])]):_vm._e()]),_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"context-container\"},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"8\"}},[(_vm.article.title && _vm.article.title !== '')?_c('h2',{staticClass:\"context-title\"},[_vm._v(\" \"+_vm._s(_vm.article.title)+\" \")]):_vm._e()])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"line-yellow\"})])],1),_c('v-row',{staticClass:\"pt-0 mt-0 d-flex align-items-center justify-space-between\"},[_c('v-col',{staticClass:\"d-flex align-items-center\",attrs:{\"cols\":\"auto\"}},[_c('p',{staticClass:\"date-created\"},[_vm._v(\" \"+_vm._s(_vm.getTimeAgo(_vm.article.createdAt))+\" \")])]),_c('v-spacer'),(_vm.shareLink)?_c('v-col',{staticClass:\"d-flex justify-end\",attrs:{\"cols\":\"auto\"}},[_c('ShareButton',{attrs:{\"link\":_vm.shareLink}})],1):_vm._e()],1),_c('v-row',[_c('v-col',{staticClass:\"d-flex justify-content-end\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[_c('div',{staticClass:\"tags\"},_vm._l((_vm.article.tags),function(tag){return _c('span',{key:tag,staticClass:\"tag\"},[_vm._v(_vm._s(tag))])}),0)])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[(_vm.article.author)?_c('div',{staticClass:\"author-container\"},[(_vm.article.author.image && _vm.article.author.image !== '')?_c('div',{staticClass:\"profile-picture-container\"},[_c('img',{staticClass:\"profile-picture\",attrs:{\"src\":_vm.article.author.image,\"alt\":\"Author's Name\"}})]):_vm._e(),_c('div',{staticClass:\"information\"},[(\n\t\t\t\t\t\t\t\t\t\t_vm.article?.author.fullName &&\n\t\t\t\t\t\t\t\t\t\t_vm.article?.author.fullName !== ''\n\t\t\t\t\t\t\t\t\t)?_c('p',{staticClass:\"auth-name\"},[_vm._v(\" \"+_vm._s(_vm.article?.author?.fullName)+\" \")]):_vm._e(),(\n\t\t\t\t\t\t\t\t\t\t_vm.article?.author?.designation &&\n\t\t\t\t\t\t\t\t\t\t_vm.article?.author?.designation !== ''\n\t\t\t\t\t\t\t\t\t)?_c('p',{staticClass:\"auth-designation\"},[_vm._v(\" \"+_vm._s(_vm.article?.author?.designation)+\" \")]):_vm._e()])]):_vm._e()])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[(_vm.article.text && _vm.article.text !== '')?_c('div',{staticClass:\"mt-5\"},[_c('p',{staticClass:\"context-desc\",domProps:{\"innerHTML\":_vm._s(_vm.article.text)}})]):_vm._e()])],1),_c('v-row',[(_vm.similarArticles.length > 0)?_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('h2',{staticClass:\"similar-news-heading mb-2\"},[_vm._v(\"Similar News Articles\")]),_c('v-row',{staticClass:\"news-items similar-news\"},_vm._l((_vm.similarArticles.slice(0, 4)),function(similarArticle){return _c('v-col',{key:similarArticle.id,attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"3\"}},[_c('news-card',{key:similarArticle.id,attrs:{\"image\":similarArticle.imageFilename[0],\"title\":similarArticle.title,\"icon\":_vm.nlse_icon,\"link\":similarArticle.id,\"recommendedNewsArticle\":true}})],1)}),1)],1):_vm._e()],1)],1)])],1)],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { API, graphqlOperation, GRAPHQL_AUTH_MODE } from '@aws-amplify/api';\nimport { getNewsArticle } from '@/graphql/queries'; // Define the appropriate query for getting a single news article\nimport { getAWSStorageAsset } from '../storage.js';\n\nexport const getNewsDetailById = async (newsId) => {\n try {\n const newsDetail = await API.graphql({\n ...graphqlOperation(getNewsArticle, { id: newsId }),\n authMode: GRAPHQL_AUTH_MODE.API_KEY\n });\n const news = newsDetail.data.getNewsArticle;\n if (news) {\n if(news.imageFilename != \" \" && news.imageFilename.length > 0 ) {\n const newsImage = await getAWSStorageAsset(`NewsArticle/${news.imageFilename[0]}`);\n news.image = newsImage;\n }\n if(news.author && news.author.imageFilename != \" \" && news.author.imageFilename.length > 0 ) {\n\n let authorImage = null;\n if (news.author && news.author.id) {\n authorImage = await getAWSStorageAsset(`Author/${news.author.imageFilename[0]}`);\n }\n \n if (authorImage) {\n news.author.image = authorImage;\n }\n }\n return news;\n } else {\n return null; // Return null if no news article is found\n }\n } catch (error) {\n console.error(\"An error occurred while fetching news detail:\", error);\n return null; // Return null on error\n }\n};","// Import the searchNewsArticles query\nimport { API, graphqlOperation, GRAPHQL_AUTH_MODE } from '@aws-amplify/api';\nimport { searchNewsArticles } from \"@/graphql/queries\";\nimport { getAWSStorageAsset } from '@/services/storage';\n\nexport const fetchSimilarArticles = async (tags, excludeArticleId,limit = 4) => {\n try {\n const variables = {\n filter: {\n tags: {\n match: tags,\n },\n id: {\n ne: excludeArticleId,\n },\n },\n limit, // Limit the number of articles to 4\n sort: [\n {\n field: \"publishedAt\",\n direction: \"desc\", // Sort by 'publishedAt' in descending order\n },\n ],\n };\n const result = await API.graphql({ query: searchNewsArticles, variables , authMode: GRAPHQL_AUTH_MODE.API_KEY\n });\n \n let similarArticles = result.data.searchNewsArticles.items;\n similarArticles = await Promise.all(\n similarArticles.map(async (article) => {\n const articleImage = await getAWSStorageAsset(`NewsArticle/${article.id}`);\n article.image = articleImage;\n return article;\n })\n );\n return similarArticles;\n } catch (error) {\n console.error(\"An error occurred while fetching similar articles:\", error);\n return [];\n }\n };","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"dropdown\",staticClass:\"dropdown\"},[_c('v-btn',{staticClass:\"ma-2 share-button\",attrs:{\"id\":\"share-button\",\"text\":\"\"},on:{\"click\":_vm.toggleDropdown}},[_c('v-img',{staticClass:\"mr-2 icon\",staticStyle:{\"width\":\"14px\",\"height\":\"14px\"},attrs:{\"src\":_vm.shareIcon}}),_vm._v(\" Share \")],1),(_vm.isOpen)?_c('div',{staticClass:\"dropdown-content mt-1\"},[_c('ul',[_c('li',{on:{\"click\":_vm.copyLink}},[(_vm.showCopy)?_c('p',{staticClass:\"d-inline\",attrs:{\"id\":\"copy-link\"}},[_vm._v(\" Copy Link \"),_c('v-icon',{staticClass:\"pl-1 icon\"},[_vm._v(\"mdi-content-copy\")])],1):_vm._e(),(!_vm.showCopy)?_c('p',{staticClass:\"d-inline\",staticStyle:{\"color\":\"green\"}},[_vm._v(\" Copied! \"),_c('v-icon',{staticClass:\"pl-1 icon\",staticStyle:{\"color\":\"green\"}},[_vm._v(\"mdi-check-circle\")])],1):_vm._e()])])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\tShare\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tCopy Link mdi-content-copy\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tCopied!\n\t\t\t\t\t\tmdi-check-circle\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ShareButton.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ShareButton.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ShareButton.vue?vue&type=template&id=a6d63afe&scoped=true&\"\nimport script from \"./ShareButton.vue?vue&type=script&lang=js&\"\nexport * from \"./ShareButton.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ShareButton.vue?vue&type=style&index=0&id=a6d63afe&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a6d63afe\",\n null\n \n)\n\nexport default component.exports","\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tNEXT LEVEL NEWS\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{ article.title }}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{{ getTimeAgo(article.createdAt) }}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{\n\t\t\t\t\t\t\t\t\ttag\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{{ article?.author?.fullName }}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{{ article?.author?.designation }}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t 0\">\n\t\t\t\t\t\t\tSimilar News Articles\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ArticlePage.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ArticlePage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ArticlePage.vue?vue&type=template&id=2e8342fc&\"\nimport script from \"./ArticlePage.vue?vue&type=script&lang=js&\"\nexport * from \"./ArticlePage.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ArticlePage.vue?vue&type=style&index=0&id=2e8342fc&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/Share-08.c034c069.svg\";"],"sourceRoot":""}
\n\t\t\t\t\t\tCopy Link mdi-content-copy\n\t\t\t\t\t
\n\t\t\t\t\t\tCopied!\n\t\t\t\t\t\tmdi-check-circle\n\t\t\t\t\t
\n\t\t\t\t\t\t\t{{ getTimeAgo(article.createdAt) }}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t{{ article?.author?.fullName }}\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t{{ article?.author?.designation }}\n\t\t\t\t\t\t\t\t\t