{"version":3,"sources":["webpack:///./src/views/NewsDetail.vue?c977","webpack:///./src/views/NewsDetail.vue","webpack:///./src/views/NewsDetail.vue?724a","webpack:///./src/views/NewsDetail.vue?2f2a"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","news","_v","_s","title","class","firstTextColor","school","name","attrs","_f","created","picture","_e","domProps","description","firstBgColor","on","onDownload","custom_button","staticRenderFns","firstColor","text","bg","params","$route","id","actionSelectNewsById","document","ready","animate","scrollTop","url","attachment","namespace","filters","components","NavbarComponent","Navbar","TopFooterComponent","TopFooter","FooterComponent","Footer","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACF,EAAG,oBAAqBJ,EAAIO,KAAY,QAAEH,EAAG,MAAM,CAACE,YAAY,iBAAiBF,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,KAAK,CAACE,YAAY,sBAAsB,CAACN,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIO,KAAKG,OAAS,QAAQN,EAAG,OAAO,CAACE,YAAY,wBAAwBK,MAAM,CAACX,EAAIY,iBAAiB,CAACZ,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIa,OAAOC,MAAQ,KAAK,KAAKV,EAAG,UAAU,CAACE,YAAY,iBAAiBS,MAAM,CAAC,KAAO,4BAA4Bf,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIgB,GAAG,OAAPhB,CAAeA,EAAIO,KAAKU,QAAQ,iBAAiB,MAAM,KAAKb,EAAG,MAAM,CAACE,YAAY,iBAAiBK,MAAM,CAAE,UAAWX,EAAIO,KAAKW,UAAW,CAAElB,EAAIO,KAAY,QAAEH,EAAG,MAAM,CAACA,EAAG,KAAK,CAACE,YAAY,sBAAsB,CAACN,EAAIQ,GAAGR,EAAIS,GAAGT,EAA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EAAOE,KAEzC,IAAEE,UAAUC,OAAM,WAChB,IAAE,aAAaC,QAAQ,CAAEC,UAAW,GAAK,UAlC/C,wBAuCU,WACN,IAAMC,EAAMrC,KAAKM,KAAKgC,WAElBD,GACF,eAASA,OA3Cf,GAAwC,QAKtC,gBADC,eAAO,uBAAwB,CAAEE,UAAW,iB,2CAK7C,gBADC,eAAM,SAAU,CAAEA,UAAW,a,6BAG9B,gBADC,eAAM,OAAQ,CAAEA,UAAW,iB,2BAK5B,gBADC,eAAO,e,iCAdW,EAAU,gBAR9B,eAAU,CACTC,UAAA,KACAC,WAAY,CACVC,gBAAAC,EAAA,KACAC,mBAAAC,EAAA,KACAC,gBAAAC,EAAA,SAGiB,WCzFgX,I,YCOjYC,EAAY,eACd,EACAlD,EACA2B,GACA,EACA,KACA,KACA,MAIa,aAAAuB,E","file":"js/chunk-2d0f0423.7810823f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"news-detail-page\"},[_c('navbar-component'),(_vm.news.picture)?_c('div',{staticClass:\"news-heading\"}):_c('div',{staticClass:\"news-heading no-img\"},[_c('h2',{staticClass:\"news-detail__title\"},[_vm._v(_vm._s(_vm.news.title || \"-\"))]),_c('span',{staticClass:\"news-detail__subtitle\",class:[_vm.firstTextColor]},[_vm._v(\" \"+_vm._s(_vm.school.name || \"-\")+\" \"),_c('iconify',{staticClass:\"w-1 h-1 mx-1.5\",attrs:{\"icon\":\"akar-icons:circle-fill\"}}),_vm._v(\" \"+_vm._s(_vm._f(\"date\")(_vm.news.created,\"DD MMMM YYYY\"))+\" \")],1)]),_c('div',{staticClass:\"main-container\",class:{ 'no-img': !_vm.news.picture }},[(_vm.news.picture)?_c('div',[_c('h2',{staticClass:\"news-detail__title\"},[_vm._v(_vm._s(_vm.news.title || \"-\"))]),_c('span',{staticClass:\"news-detail__subtitle\",class:[_vm.firstTextColor]},[_vm._v(\" \"+_vm._s(_vm.school.name || \"-\")+\" \"),_c('iconify',{staticClass:\"w-1 h-1 mx-1.5\",attrs:{\"icon\":\"akar-icons:circle-fill\"}}),_vm._v(\" \"+_vm._s(_vm._f(\"date\")(_vm.news.created,\"DD MMMM YYYY\"))+\" \")],1),(_vm.news.picture)?_c('img',{staticClass:\"news-detail__image\",attrs:{\"src\":_vm.news.picture,\"alt\":\"img\"}}):_vm._e()]):_vm._e(),_c('div',{staticClass:\"news-detail__card\"},[_c('pre',{staticClass:\"description\",attrs:{\"data-aos\":\"fade-up\",\"data-aos-duration\":\"600\"},domProps:{\"innerHTML\":_vm._s(_vm.news.description)}}),(_vm.news.attachment)?_c('a',{staticClass:\"btn-circle w-auto text-white\",class:[_vm.firstBgColor],attrs:{\"data-aos\":\"fade-up\",\"data-aos-duration\":\"600\"},on:{\"click\":_vm.onDownload}},[_c('iconify',{staticClass:\"w-5 h-auto mr-2.5\",attrs:{\"icon\":\"bi:file-earmark-text-fill\"}}),_vm._v(\" \"+_vm._s(_vm.news.custom_button || \"Attachment\")+\" \")],1):_vm._e()]),_c('top-footer-component')],1),_c('footer-component')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport $ from \"jquery\";\r\nimport filters from \"@/filters\";\r\nimport Component from \"vue-class-component\";\r\nimport { Action, Getter, State } from \"vuex-class\";\r\n\r\nimport { download } from \"@/functions/global.function\";\r\n\r\n/**\r\n * Model imports\r\n */\r\nimport { SchoolModel } from \"@/models/academy/academy.model\";\r\nimport { NewsModel } from \"@/models/information/information.model\";\r\n\r\n/**\r\n * Component imports\r\n */\r\nimport NavbarComponent from \"@/components/landing/Navbar.vue\";\r\nimport TopFooterComponent from \"@/components/landing/TopFooter.vue\";\r\nimport FooterComponent from \"@/components/landing/Footer.vue\";\r\n\r\n@Component({\r\n filters,\r\n components: {\r\n NavbarComponent,\r\n TopFooterComponent,\r\n FooterComponent,\r\n },\r\n})\r\nexport default class NewsDetail extends Vue {\r\n /* VUEX */\r\n\r\n /* ACTIONS */\r\n @Action(\"actionSelectNewsById\", { namespace: \"information\" })\r\n private actionSelectNewsById: any;\r\n\r\n /* STATE */\r\n @State(\"school\", { namespace: \"academy\" })\r\n private school!: SchoolModel;\r\n @State(\"news\", { namespace: \"information\" })\r\n private news!: NewsModel;\r\n\r\n /* GETTERS */\r\n @Getter(\"firstColor\")\r\n private firstColor!: { text: string; bg: string; border: string };\r\n\r\n /* INITIALIZATION */\r\n\r\n private get firstTextColor() {\r\n return this.firstColor.text;\r\n }\r\n\r\n private get firstBgColor() {\r\n return this.firstColor.bg;\r\n }\r\n\r\n private mounted() {\r\n const { params } = this.$route;\r\n\r\n if (params && params.id) {\r\n this.actionSelectNewsById({ id: params.id });\r\n }\r\n $(document).ready(function () {\r\n $(\"html,body\").animate({ scrollTop: 0 }, 800);\r\n });\r\n }\r\n\r\n /* METHODS */\r\n private onDownload() {\r\n const url = this.news.attachment;\r\n\r\n if (url) {\r\n download(url);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewsDetail.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewsDetail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NewsDetail.vue?vue&type=template&id=d8606086&\"\nimport script from \"./NewsDetail.vue?vue&type=script&lang=ts&\"\nexport * from \"./NewsDetail.vue?vue&type=script&lang=ts&\"\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"],"sourceRoot":""}