{"version":3,"sources":["webpack:///./src/views/NewsDetail.vue?be00","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","attrs","picture","_e","_v","_s","title","class","firstTextColor","school","name","_f","created","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","JoinComponent","Join","FooterComponent","Footer","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,oBAAoBA,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAAEN,EAAIO,KAAY,QAAEH,EAAG,MAAM,CAACE,YAAY,qBAAqBE,MAAM,CAAC,IAAMR,EAAIO,KAAKE,QAAQ,IAAM,SAAST,EAAIU,KAAKN,EAAG,KAAK,CAACE,YAAY,sBAAsB,CAACN,EAAIW,GAAGX,EAAIY,GAAGZ,EAAIO,KAAKM,OAAS,QAAQT,EAAG,OAAO,CAACE,YAAY,wBAAwBQ,MAAM,CAACd,EAAIe,iBAAiB,CAACf,EAAIW,GAAG,IAAIX,EAAIY,GAAGZ,EAAIgB,OAAOC,MAAQ,KAAK,KAAKb,EAAG,UAAU,CAACE,YAAY,iBAAiBE,MAAM,CAAC,KAAO,4BAA4BR,EAAIW,GAAG,IAAIX,EAAIY,GAAGZ,EAAIkB,GAAG,OAAPlB,CAAeA,EAAIO,KAAKY,QAAQ,iBAAiB,MAAM,GAAGf,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACE,YAAY,cAAcE,MAAM,CAAC,WAAW,UAAU,oBAAoB,OAAOY,SAAS,CAAC,UAAYpB,EA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h;return _c('div',{staticClass:\"news-detail\"},[_c('navbar-component'),_c('div',{staticClass:\"main-container\"},[(_vm.news.picture)?_c('img',{staticClass:\"news-detail__image\",attrs:{\"src\":_vm.news.picture,\"alt\":\"img\"}}):_vm._e(),_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:\"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-rounded-small 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('join-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\r\n/**\r\n * TASK JIRA LINK (copy & paste here)\r\n *\r\n * Created at : 20 Sep 2022 Updated at : 20 Sep 2022\r\n * Created by : Risman Abdilah Updated by : Risman Abdilah\r\n */\r\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\nimport { NewsModel } from \"@/models/information/information.model\";\r\nimport { SchoolModel } from \"@/models/academy/academy.model\";\r\n\r\n/**\r\n * Components imports\r\n */\r\nimport NavbarComponent from \"@/components/landing/Navbar.vue\";\r\nimport JoinComponent from \"@/components/landing/Join.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 JoinComponent,\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=0b8038f8&\"\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":""}