{"version":3,"sources":["webpack:///./src/components/noticia/noticiasComponente.scss?b9c3","webpack:///./src/store/modules/noticias.module.ts","webpack:///./src/views/publico/noticias/noticias-web.scss?ccd6","webpack:///./src/views/publico/noticias/noticias-web.html","webpack:///./src/components/noticia/noticiasComponente.html","webpack:///./src/components/noticia/noticiasComponente.ts","webpack:///./src/components/noticia/noticiasComponente.ts?9cee","webpack:///./src/components/noticia/noticiasComponente.vue","webpack:///./src/views/publico/noticias/noticias-web.ts","webpack:///./src/views/publico/noticias/noticias-web.ts?4e69","webpack:///./src/views/publico/noticias/noticias-web.vue","webpack:///./src/shared/dtos/noticia.ts"],"names":["NoticiasModule","noticias","selectedNoticia","this","get","res","context","commit","id","forEach","element","toast","TypeError","noticia","namespaced","name","store","dynamic","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","staticRenderFns","_v","_s","titular","autor","fecha","instituto","categoria","domProps","mancheta","_e","contenido","staticStyle","on","$event","back","undefined","fechaDePublicacion","toString","substring","$router","components","component","VBtn","VIcon","noticiaSeleccionada","indice","paginasMostradas","listaNoticias","length","getNoticias","getNoticiaById","document","documentElement","scrollTop","indiceNoticia","path","push","catch","err","NoticiaComponente","Noticia"],"mappings":"kHAAA,W,gMCcMA,EAAN,yG,0BACW,EAAAC,SAAsB,GACtB,EAAAC,gBAA2B,IAAI,OAF1C,oDAMW,SAAYD,GACfE,KAAKF,SAAWA,IAPxB,kFAWW,oHACe,OAAeG,IAAI,OAAIH,UADtC,OACGI,EADH,OAEHF,KAAKG,QAAQC,OAAO,cAAeF,GAFhC,gDAXX,8IAiBW,WAAqBG,GAArB,+FACO,MAANA,EADD,gBAECL,KAAKF,SAASQ,SAAQ,SAAAC,GACdA,EAAQF,IAAMA,GACd,EAAKF,QAAQC,OAAO,iBAAkBG,MAJ/C,+CASQ,OAAkBC,MAAM,6BAA8B,OAAkBC,UAAW,MAT3F,gDAjBX,sFA8BW,SAAeC,GAClBV,KAAKD,gBAAkB,IAAI,OAAQW,OA/B3C,GA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KmD,cAAgB,GACrBnD,KAAKmD,cAAgB,OAAerD,SACpCE,KAAKgD,oBAAsB,OAAejD,gBACT,GAA7BC,KAAKmD,cAAcC,OAJpB,iCAKO,OAAeC,cALtB,cAMCrD,KAAKmD,cAAgB,OAAerD,SANrC,SAOO,OAAewD,eAAetD,KAAKK,IAP1C,OAQCL,KAAKgD,oBAAsB,OAAejD,gBAR3C,QAUHwD,SAASC,gBAAgBC,UACzBzD,KAAKiD,OAASjD,KAAKgD,oBAAoB3C,GAAK,EAXzC,iDARX,4EAsBI,WACI,OAAOL,KAAKgD,sBAvBpB,kBA0BW,WACHhD,KAAKiD,SACLjD,KAAKgD,oBAAsBhD,KAAKmD,cAAcnD,KAAKiD,QACnDM,SAASC,gBAAgBC,UAAY,IA7B7C,sBAgCW,WACHzD,KAAKiD,SACLjD,KAAKgD,oBAAsBhD,KAAKmD,cAAcnD,KAAKiD,QACnDM,SAASC,gBAAgBC,UAAY,IAnC7C,4BAsCW,WACHzD,KAAKkD,kBAAoBlD,KAAKkD,mBAvCtC,sBA0CW,SAASD,GACZjD,KAAKiD,OAASA,EACdjD,KAAKgD,oBAAsBhD,KAAKmD,cAAcnD,KAAKiD,QACnD,IAAIS,EAAgB1D,KAAKiD,OAAS,EAC9BU,EAAO,oBAAsBD,EAAcjB,WAC/CzC,KAAK2C,QAAQiB,KAAKD,GAAME,OAAM,SAAAC,WA/CtC,GAAyC,cAM7B,gBAAP,kB,yBANgB,EAAW,gBAN/B,eAAU,CACPlB,WAAY,CACRmB,kBAAA,MAIa,WCd+U,ICQhW,G,UAAY,eACd,EACAhD,EACAQ,GACA,EACA,KACA,WACA,OAIa,e,6ICjBFyC,EAAb,qJAA6B","file":"js/chunk-1f66d2b0.97190665.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./noticiasComponente.scss?vue&type=style&index=0&id=7fe2f173&scoped=true&lang=scss&\"","import { Noticia } from './../../shared/dtos/noticia';\nimport { getModule, Module, VuexModule, Mutation, Action } from 'vuex-module-decorators';\nimport { store } from '@/iti-core-vue';\nimport { API } from '@/shared/api';\nimport { ItiString, itiHttpService, itiMessageService } from '@/iti-core-vue';\n\n\n@Module({\n namespaced: true,\n name: 'NoticiasModule',\n store,\n dynamic: true,\n})\n\nclass NoticiasModule extends VuexModule {\n public noticias: Noticia[] = [];\n public selectedNoticia: Noticia = new Noticia();\n\n\n @Mutation\n public setNoticias(noticias: Noticia[]) {\n this.noticias = noticias;\n }\n\n @Action\n public async getNoticias() {\n const res = await itiHttpService.get(API.noticias);\n this.context.commit('setNoticias', res);\n }\n\n @Action\n public async getNoticiaById(id: number) {\n if (id != null) {\n this.noticias.forEach(element => {\n if (element.id == id) {\n this.context.commit('setNoticiaById', element);\n return;\n }\n });\n } else {\n return itiMessageService.toast('Error al cargar la notícia', itiMessageService.TypeError, 3000);\n }\n }\n @Mutation\n public setNoticiaById(noticia: Noticia) {\n this.selectedNoticia = new Noticia(noticia);\n }\n}\n\nexport default getModule(NoticiasModule);","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./noticias-web.scss?vue&type=style&index=0&id=e2c9cb2c&scoped=true&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"noticia-container\"},[_c('NoticiaComponente',{attrs:{\"noticia\":_vm.noticia,\"mancheta\":true,\"contenido\":true}})],1),_c('br'),_c('br'),_c('br'),_c('br'),_c('br'),_c('br')])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"titular\"},[_c('h1',{staticClass:\"fuente\"},[_vm._v(_vm._s(_vm.noticia.titular))])]),_c('div',[_c('div',{staticClass:\"iconos\"},[_c('div',[_c('v-icon',[_vm._v(\"person\")]),_c('label',{staticClass:\"autor\"},[_vm._v(_vm._s(_vm.noticia.autor))])],1),_c('div',[_c('v-icon',[_vm._v(\"calendar_today\")]),_c('label',[_vm._v(\" \"+_vm._s(_vm.fecha)+\" \")])],1),_c('div',[_c('label',{staticClass:\"tag\"},[_vm._v(\" \"+_vm._s(_vm.noticia.instituto)+\" \")])]),_c('div',[_c('label',{staticClass:\"tag\"},[_vm._v(\" \"+_vm._s(_vm.noticia.categoria)+\" \")])])])]),(_vm.mancheta)?_c('div',{staticClass:\"mancheta fuente\",domProps:{\"innerHTML\":_vm._s(_vm.noticia.mancheta)}}):_vm._e(),(_vm.contenido)?_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.noticia.contenido)}}):_vm._e(),_c('v-btn',{staticStyle:{\"display\":\"flex\",\"margin-left\":\"auto\",\"margin-top\":\"20px\"},attrs:{\"fab\":\"\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.back()}}},[_c('v-icon',[_vm._v(\"mdi-arrow-left\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Noticia } from './../../shared/dtos/noticia';\nimport { Component, Prop } from 'vue-property-decorator';\nimport Vue from 'vue';\n\n@Component({\n components: {\n\n },\n})\nexport default class NoticiasComponente extends Vue {\n @Prop() public noticia!: Noticia;\n @Prop() public mancheta!: boolean;\n @Prop() public contenido!: boolean;\n\n public get fecha() {\n if(this.noticia.fechaDePublicacion != undefined)\n return this.noticia.fechaDePublicacion.toString().substring(0,10) + \" \" + this.noticia.fechaDePublicacion.toString().substring(12,19);\n }\n\n public back() {\n this.$router.back();\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/eslint-loader/index.js??ref--13-0!./noticiasComponente.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/eslint-loader/index.js??ref--13-0!./noticiasComponente.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./noticiasComponente.html?vue&type=template&id=7fe2f173&scoped=true&\"\nimport script from \"./noticiasComponente.ts?vue&type=script&lang=ts&\"\nexport * from \"./noticiasComponente.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./noticiasComponente.scss?vue&type=style&index=0&id=7fe2f173&scoped=true&lang=scss&\"\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 \"7fe2f173\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VBtn,VIcon})\n","import Vue from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { API } from '@/shared/api';\nimport { Noticia } from '@/shared/dtos/noticia';\nimport NoticiaComponente from './../../../components/noticia/noticiasComponente.vue';\nimport { itiHttpService } from '@/iti-core-vue/services/iti-http-service';\nimport noticiasModule from '@/store/modules/noticias.module'\n\n@Component({\n components: {\n NoticiaComponente,\n },\n})\n\nexport default class NoticiasWeb extends Vue {\n\n public listaNoticias!: Noticia[];\n public noticiaSeleccionada: Noticia = new Noticia();\n public indice: number = 0;\n public paginasMostradas: boolean = false;\n @Prop() id !: number;\n\n public async created() {\n this.listaNoticias = [];\n this.listaNoticias = noticiasModule.noticias;//await itiHttpService.get(API.noticias).then();\n this.noticiaSeleccionada = noticiasModule.selectedNoticia; //this.listaNoticias[this.indice];\n if (this.listaNoticias.length == 0) {\n await noticiasModule.getNoticias();\n this.listaNoticias = noticiasModule.noticias;\n await noticiasModule.getNoticiaById(this.id);\n this.noticiaSeleccionada = noticiasModule.selectedNoticia;\n }\n document.documentElement.scrollTop;\n this.indice = this.noticiaSeleccionada.id - 1;\n }\n\n public get noticia() {\n return this.noticiaSeleccionada;\n }\n\n public next() {\n this.indice++;\n this.noticiaSeleccionada = this.listaNoticias[this.indice];\n document.documentElement.scrollTop = 0;\n }\n\n public previous() {\n this.indice--;\n this.noticiaSeleccionada = this.listaNoticias[this.indice];\n document.documentElement.scrollTop = 0;\n }\n\n public mostrarPaginas() {\n this.paginasMostradas = !this.paginasMostradas;\n }\n\n public irPagina(indice: number) {\n this.indice = indice;\n this.noticiaSeleccionada = this.listaNoticias[this.indice];\n let indiceNoticia = this.indice + 1;\n let path = '/NoticiaCompleta/' + indiceNoticia.toString();\n this.$router.push(path).catch(err => { });\n }\n}","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/eslint-loader/index.js??ref--13-0!./noticias-web.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/eslint-loader/index.js??ref--13-0!./noticias-web.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./noticias-web.html?vue&type=template&id=e2c9cb2c&scoped=true&\"\nimport script from \"./noticias-web.ts?vue&type=script&lang=ts&\"\nexport * from \"./noticias-web.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./noticias-web.scss?vue&type=style&index=0&id=e2c9cb2c&scoped=true&lang=scss&\"\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 \"e2c9cb2c\",\n null\n \n)\n\nexport default component.exports","import { ItiBaseDto } from '@/iti-core-vue';\n\nexport class Noticia extends ItiBaseDto {\n public titular!: string;\n public mancheta!: string;\n public autor!: string;\n public contenido!: string;\n public categoria!: string;\n public instituto!: string;\n public fechaDePublicacion!: Date;\n}\n"],"sourceRoot":""}