{"version":3,"sources":["webpack:///./src/views/News.vue?54d9","webpack:///./src/views/News.vue","webpack:///./src/views/News.vue?b3e4","webpack:///./src/views/News.vue?25dd"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","_l","news","index","key","attrs","on","$event","onClickNews","picture","class","twoTextColor","_v","_s","title","firstTextColor","_f","created","pagination","pageCount","disabled","isDisablePrev","onClickPrevious","page","currentPage","onPaginate","isDisableNext","onClickNext","_e","staticRenderFns","firstColor","text","twoColor","document","ready","animate","scrollTop","$router","push","name","params","id","toString","subpath","newPage","actionPaginationNews","namespace","filters","directives","components","NavbarComponent","Navbar","TopFooterComponent","TopFooter","FooterComponent","Footer","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,oBAAoBJ,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaN,EAAIQ,GAAIR,EAAc,YAAE,SAASS,EAAKC,GAAO,OAAON,EAAG,MAAM,CAACO,IAAID,EAAMJ,YAAY,kBAAkBM,MAAM,CAAC,WAAW,UAAU,oBAAoB,OAAOC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOd,EAAIe,YAAYN,MAAS,CAAEA,EAAY,QAAEL,EAAG,MAAM,CAACE,YAAY,mBAAmBM,MAAM,CAAC,IAAMH,EAAKO,QAAQ,IAAM,WAAWZ,EAAG,MAAM,CAACE,YAAY,gCAAgC,CAACF,EAAG,UAAU,CAACE,YAAY,YAAYM,MAAM,CAAC,KAAO,oBAAoB,GAAGR,EAAG,MAAM,CAACE,YAAY,mBAAmBF,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,KAAK,CAACE,YAAY,mBAAmBW,MAAM,CAACjB,EAAIkB,eAAe,CAACl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,EAAA,SAGiB,WC3G0W,I,YCO3XC,EAAY,eACd,EACAhE,EACAqC,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"js/chunk-2d20813a.0b2f27f2.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"news-page\"},[_c('navbar-component'),_vm._m(0),_c('div',{staticClass:\"main-container\"},[_c('div',{staticClass:\"news-list\"},_vm._l((_vm.array_news),function(news,index){return _c('div',{key:index,staticClass:\"news-list__item\",attrs:{\"data-aos\":\"fade-up\",\"data-aos-duration\":\"600\"},on:{\"click\":function($event){return _vm.onClickNews(news)}}},[(news.picture)?_c('img',{staticClass:\"news-item__image\",attrs:{\"src\":news.picture,\"alt\":\"Image\"}}):_c('div',{staticClass:\"news-item__image placeholder\"},[_c('iconify',{staticClass:\"w-20 h-20\",attrs:{\"icon\":\"bxs:image-alt\"}})],1),_c('div',{staticClass:\"news__bg-image\"}),_c('div',{staticClass:\"news-item__content\"},[_c('h5',{staticClass:\"news-item__title\",class:[_vm.twoTextColor]},[_vm._v(\" \"+_vm._s(news.title)+\" \")]),_c('span',{staticClass:\"news-item__date\",class:[_vm.firstTextColor]},[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(news.created,\"DD MMMM YYYY\"))+\" \")])])])}),0),(_vm.pagination.pageCount > 1)?_c('div',{staticClass:\"news-pagination\",attrs:{\"data-aos\":\"fade-up\",\"data-aos-duration\":\"600\"}},[_c('nav',{attrs:{\"aria-label\":\"Pagination News\"}},[_c('ul',{staticClass:\"inline-flex -space-x-px\"},[_c('li',[_c('a',{class:{ disabled: _vm.isDisablePrev },on:{\"click\":_vm.onClickPrevious}},[_vm._v(\" Previous \")])]),_vm._l((_vm.pagination.pageCount),function(page,index){return _c('li',{key:'pagination' + index},[(page === _vm.pagination.currentPage)?_c('a',{staticClass:\"active\",attrs:{\"aria-current\":\"page\"}},[_vm._v(\" \"+_vm._s(page)+\" \")]):_c('a',{on:{\"click\":function($event){return _vm.onPaginate(page)}}},[_vm._v(\" \"+_vm._s(page)+\" \")])])}),_c('li',[_c('a',{class:{ disabled: _vm.isDisableNext },on:{\"click\":_vm.onClickNext}},[_vm._v(\" Next \")])])],2)])]):_vm._e(),_c('top-footer-component')],1),_c('footer-component')],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"news-heading\"},[_c('h2',[_vm._v(\"Berita\")])])}]\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\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 directives from \"@/directives\";\r\nimport Component from \"vue-class-component\";\r\nimport { Action, Getter, State } from \"vuex-class\";\r\n\r\nimport { SUBPATH } from \"@/constants/portal.constant\";\r\n// eslint-disable-next-line prettier/prettier\r\nimport { NewsModel, NewsPaginationModel } from \"@/models/information/information.model\";\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 directives,\r\n components: {\r\n NavbarComponent,\r\n TopFooterComponent,\r\n FooterComponent,\r\n },\r\n})\r\nexport default class News extends Vue {\r\n /* VUEX */\r\n\r\n /* ACTION */\r\n @Action(\"actionPaginationNews\", { namespace: \"information\" })\r\n private actionPaginationNews: any;\r\n\r\n /* STATE */\r\n @State(\"array_news\", { namespace: \"information\" })\r\n private array_news!: Array;\r\n @State(\"pagination_news\", { namespace: \"information\" })\r\n private pagination!: NewsPaginationModel;\r\n\r\n /* GETTERS */\r\n @Getter(\"firstColor\")\r\n private firstColor!: { text: string; bg: string; border: string };\r\n @Getter(\"twoColor\")\r\n private twoColor!: { text: string; bg: string; border: string };\r\n\r\n /* INITIALIZATION */\r\n private get firstTextColor() {\r\n return this.firstColor.text;\r\n }\r\n\r\n private get twoTextColor() {\r\n return this.twoColor.text;\r\n }\r\n\r\n private get isDisablePrev() {\r\n return this.pagination.currentPage === 1;\r\n }\r\n\r\n private get isDisableNext() {\r\n return this.pagination.pageCount === this.pagination.currentPage;\r\n }\r\n\r\n private mounted() {\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 onClickNews(news: NewsModel) {\r\n this.$router.push({\r\n name: \"newsDetail\",\r\n params: { id: news.id.toString(), subpath: SUBPATH },\r\n });\r\n }\r\n\r\n private onClickPrevious() {\r\n if (this.isDisablePrev) return;\r\n\r\n const newPage = this.pagination.currentPage - 1;\r\n this.onPaginate(newPage);\r\n }\r\n\r\n private onClickNext() {\r\n if (this.isDisableNext) return;\r\n\r\n const newPage = this.pagination.currentPage + 1;\r\n this.onPaginate(newPage);\r\n }\r\n\r\n private onPaginate(newPage: number) {\r\n this.pagination.currentPage = newPage;\r\n this.actionPaginationNews({\r\n params: { page: this.pagination.currentPage },\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!./News.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!./News.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./News.vue?vue&type=template&id=7ddab2b4&\"\nimport script from \"./News.vue?vue&type=script&lang=ts&\"\nexport * from \"./News.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":""}