{"version":3,"sources":["webpack:///./src/shared/dtos/collaborative-area-member.ts","webpack:///./node_modules/core-js/modules/es.number.parse-int.js","webpack:///./src/shared/dtos/collaborative-area-type.ts","webpack:///./src/store/modules/post.module.ts","webpack:///./src/views/forum/forum-layout/forum-layout.component.html","webpack:///./src/components/forum/post/post.component.html","webpack:///./src/components/forum/post/post.component.ts","webpack:///./src/components/forum/post/post.component.ts?fc61","webpack:///./src/components/forum/post/post.component.vue","webpack:///./src/components/forum/search-bar/search-bar.component.html","webpack:///./src/components/forum/search-bar/search-bar.component.ts","webpack:///./src/components/forum/search-bar/search-bar.component.ts?c023","webpack:///./src/components/forum/search-bar/search-bar.component.vue","webpack:///./src/views/forum/forum-layout/forum-layout.component.ts","webpack:///./src/views/forum/forum-layout/forum-layout.component.ts?0aea","webpack:///./src/views/forum/forum-layout/forum-layout.component.vue","webpack:///./src/shared/dtos/collaborative-area.ts","webpack:///./src/store/modules/collaborative-area.module.ts","webpack:///./node_modules/core-js/internals/number-parse-int.js","webpack:///./src/shared/dtos/post.ts"],"names":["CollaborativeAreaMember","$","parseInt","target","stat","forced","Number","CollaborativeAreaType","id","name","PostModule","posts","postsSearched","postsResume","editPost","this","get","res","context","commit","post","push","toJson","text","postsSearch","filter","title","toLowerCase","includes","content","splice","findIndex","delete","put","namespaced","store","dynamic","render","_vm","_h","$createElement","_c","_self","staticStyle","staticClass","on","$event","goToAreaHome","_v","_s","collaborativeArea","attrs","addPost","_l","i","key","staticRenderFns","openPost","$t","creationDate","substring","userName","numberOfReplys","userNameOfLastReply","creationDateOfLastReply","_e","$router","ambitId","components","component","onChange","model","value","callback","$$v","search","expression","document","getElementById","addEventListener","filterPosts","DxTextBox","collaborativeName","getPosts","getCollaborativeAreaById","toString","params","selectedCollaborativeArea","Post","SearchBar","VBtn","VCardText","VCard","VIcon","VToolbar","VToolbarTitle","CollaborativeArea","CollaborativeAreaModule","collaborativeAreasInfo","nameUsersByCollaborativeAreas","collaborativeAreaTypes","usersAndRolesArea","collaborativeAreaMember","myId","areaEditMode","users","active","collaborativeAreaDB","userId","roleId","state","chat","catch","error","toast","TypeError","then","type","usersAndRoles","editar","global","fails","uncurryThis","trim","whitespaces","$parseInt","Symbol","ITERATOR","iterator","hex","exec","FORCED","Object","module","exports","string","radix","S"],"mappings":"kNAKaA,EAAb,qJAA6C,S,uBCL7C,IAAIC,EAAI,EAAQ,QACZC,EAAW,EAAQ,QAKvBD,EAAE,CAAEE,OAAQ,SAAUC,MAAM,EAAMC,OAAQC,OAAOJ,UAAYA,GAAY,CACvEA,SAAUA,K,gJCLCK,EAAb,wDAGI,WAAYC,EAAYC,GAAY,oCAChC,eACA,EAAKD,GAAKA,EACV,EAAKC,KAAOA,EAHoB,EAHxC,0BAA2C,S,wOCSrCC,EAAN,yG,0BAEW,EAAAC,MAAgB,GAChB,EAAAC,cAAwB,GACxB,EAAAC,YAAsB,GAEtB,EAAAC,SAAiB,IAAI,OANhC,iDASW,SAASH,GACZI,KAAKJ,MAAQA,EACbI,KAAKH,cAAgBD,IAX7B,+EAeW,WAAeH,GAAf,uGACe,OAAeQ,IAAI,OAAIL,MAAQ,gBAAkBH,GADhE,OACGS,EADH,OAEHF,KAAKG,QAAQC,OAAO,WAAYF,GAF7B,gDAfX,+EAqBW,SAAQG,GACXL,KAAKK,KAAOA,IAtBpB,8EA0BW,WAAcZ,GAAd,iGACU,OAAeQ,IAAI,OAAIL,MAAQ,eAAiBH,GAD1D,mFA1BX,yIA+BW,WAAeY,GAAf,wFACHA,EAAKZ,GAAK,EACVO,KAAKJ,MAAMU,KAAKD,GAFb,SAGU,OAAeA,KAAK,OAAIT,MAAOS,EAAKE,UAH9C,wFA/BX,wFAsCW,SAAiBX,GACpBI,KAAKH,cAAgBD,IAvC7B,kFA2CW,WAAkBY,GAAlB,uFACCC,EAAcT,KAAKJ,MAAMc,QAAO,SAACL,GAAD,OAChCA,EAAKM,MAAMC,cAAcC,SAASL,EAAKI,gBACpCP,EAAKS,QAAQF,cAAcC,SAAS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EAAc,EAAQ,QAEtBC,EAAYL,EAAOtH,SACnB4H,EAASN,EAAOM,OAChBC,EAAWD,GAAUA,EAAOE,SAC5BC,EAAM,YACNC,EAAOR,EAAYO,EAAIC,MACvBC,EAA2C,IAAlCN,EAAUD,EAAc,OAAmD,KAApCC,EAAUD,EAAc,SAEtEG,IAAaN,GAAM,WAAcI,EAAUO,OAAOL,OAIxDM,EAAOC,QAAUH,EAAS,SAAkBI,EAAQC,GAClD,IAAIC,EAAId,EAAKtC,EAASkD,IACtB,OAAOV,EAAUY,EAAID,IAAU,IAAON,EAAKD,EAAKQ,GAAK,GAAK,MACxDZ,G,oICnBSrC,EAAb,qJAA0B","file":"js/chunk-bccf9314.a749d51c.js","sourcesContent":["import { ItiBaseDto } from '@/iti-core-vue';\nimport { Rol } from './rol';\nimport { User } from './user';\n\n\nexport class CollaborativeAreaMember extends ItiBaseDto {\n public roleId !: number;\n // public role !: Rol;\n public roleInAmbit !: Rol;\n public userId !: number;\n public user !: User;\n public ambitId !: number; \n}","var $ = require('../internals/export');\nvar parseInt = require('../internals/number-parse-int');\n\n// `Number.parseInt` method\n// https://tc39.es/ecma262/#sec-number.parseint\n// eslint-disable-next-line es/no-number-parseint -- required for testing\n$({ target: 'Number', stat: true, forced: Number.parseInt != parseInt }, {\n parseInt: parseInt\n});\n","import { ItiBaseDto } from '@/iti-core-vue';\n\nexport class CollaborativeAreaType extends ItiBaseDto {\n public name !: string;\n\n constructor(id: number, name: string) {\n super();\n this.id = id;\n this.name = name;\n }\n}","import { store, itiHttpService} from '@/iti-core-vue';\nimport { Action, getModule, Module, Mutation, VuexModule } from 'vuex-module-decorators';\nimport { API } from '@/shared/api';\nimport { Post } from '@/shared/dtos/post';\n\n@Module({\n namespaced: true,\n name: 'PostModule',\n store,\n dynamic: true,\n})\nclass PostModule extends VuexModule {\n\n public posts: Post[] = [];\n public postsSearched: Post[] = [];\n public postsResume: Post[] = [];\n public post!: Post; \n public editPost: Post = new Post();\n\n @Mutation\n public setPosts(posts: Post[]) {\n this.posts = posts;\n this.postsSearched = posts;\n }\n\n @Action\n public async getPosts(id: number) {\n const res = await itiHttpService.get(API.posts + '/Get?ambitId=' + id);\n this.context.commit('setPosts', res);\n }\n\n @Mutation\n public setPost(post: Post) {\n this.post = post;\n }\n\n @Action\n public async getPost(id: number) {\n return await itiHttpService.get(API.posts + '/GetPost?id=' + id);\n }\n\n @Action\n public async savePost(post: Post) {\n post.id = 0;\n this.posts.push(post);\n return await itiHttpService.post(API.posts, post.toJson());\n }\n\n @Mutation\n public setPostsSearched(posts: Post[]) {\n this.postsSearched = posts;\n }\n\n @Action\n public async filterPosts(text: string) {\n var postsSearch = this.posts.filter((post: Post) => \n post.title.toLowerCase().includes(text.toLowerCase()) \n || post.content.toLowerCase().includes(text.toLowerCase()));\n this.context.commit('setPostsSearched', postsSearch);\n }\n\n @Action\n public async deletePost(id: number) {\n this.posts.splice(this.posts.findIndex((post: Post) => post.id == id), 1);\n return await itiHttpService.delete(API.posts + '/Delete?id=' + id,'');\n }\n\n @Mutation\n public setEditPost(posts: Post) {\n this.editPost = posts;\n }\n\n @Action\n public async postToEdit(post: Post) {\n this.context.commit('setEditPost', post);\n }\n\n @Action\n public async updatePost(post: Post) {\n return await itiHttpService.put(API.posts,post.toJson());\n }\n\n @Mutation\n public setPostResume(posts: Post[]) {\n this.postsResume = posts;\n }\n\n @Action\n public async getPostResume(id: number) {\n var res = await itiHttpService.get(API.posts + '/GetResume?ambitId=' + id);\n this.context.commit('setPostResume', res);\n }\n\n}\nexport default getModule(PostModule);\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticStyle:{\"width\":\"100%\"}},[_c('v-card-text',{staticClass:\"form-template\"},[_c('v-toolbar',{staticClass:\"toolbar-devExtreme-table\",staticStyle:{\"margin-top\":\"-10px\",\"margin-bottom\":\"-10px\"}},[_c('v-toolbar-title',{staticStyle:{\"cursor\":\"pointer\"},on:{\"click\":function($event){return _vm.goToAreaHome()}}},[_c('h3',[_vm._v(\" \"+_vm._s(_vm.collaborativeArea.name)+\" \")])]),_c('v-btn',{staticStyle:{\"width\":\"50px\",\"height\":\"50px\"},attrs:{\"fab\":\"\",\"dark\":\"\",\"absolute\":\"\",\"right\":\"\"},on:{\"click\":function($event){return _vm.goToAreaHome()}}},[_c('v-icon',[_vm._v(\"mdi-arrow-left\")])],1)],1)],1)],1),_c('div',{staticClass:\"forum-layout-top\"},[_c('div',{staticStyle:{\"margin-top\":\"-8px\",\"margin-right\":\"25px\"}},[_c('v-btn',{attrs:{\"fab\":\"\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.addPost()}}},[_c('v-icon',[_vm._v(\"add\")])],1)],1),_c('div',{staticStyle:{\"width\":\"40%\",\"margin-right\":\"70px\",\"margin-top\":\"6px\"}},[_c('SearchBar')],1)]),_vm._l((_vm.posts),function(post,i){return _c('Post',{key:i,attrs:{\"post\":post}})})],2)}\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:\"post-wrapper\"},[_c('div',{staticClass:\"post-container\",on:{\"click\":function($event){return _vm.openPost()}}},[_c('div',{staticClass:\"post-title fuente\"},[_vm._v(\" \"+_vm._s(_vm.post.title)+\" \")]),_c('div',{staticClass:\"post-date fuente\"},[_vm._v(\" \"+_vm._s(_vm.$t('foro.foro-date-creation'))+\" \"+_vm._s(_vm.post.creationDate.substring(11,19))+\" \"+_vm._s(_vm.post.creationDate.substring(0,10))+\" | Usuario: \"+_vm._s(_vm.post.userName)+\" \")]),_c('div',{staticClass:\"post-content fuente\"},[_vm._v(\" \"+_vm._s(_vm.post.content)+\" \")])]),_c('div',{staticClass:\"post-container-resume\"},[_c('div',{staticClass:\"post-resume-numberReplys\"},[_c('label',[_vm._v(_vm._s(_vm.post.numberOfReplys))]),_c('label',[_vm._v(_vm._s(_vm.$t('foro.replys')))])]),(_vm.post.numberOfReplys != 0)?_c('div',{staticClass:\"post-resume-lastReply\"},[_c('label',[_vm._v(_vm._s(_vm.$t('foro.last-reply')))]),_c('label',[_vm._v(_vm._s(_vm.post.userNameOfLastReply))]),_c('label',[_vm._v(_vm._s(_vm.post.creationDateOfLastReply.substring(0,10)))]),_c('label',[_vm._v(_vm._s(_vm.post.creationDateOfLastReply.substring(11,19)))])]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\nimport Component from 'vue-class-component';\nimport { Prop } from 'vue-property-decorator';\nimport { Post } from '../../../shared/dtos/post';\n\n@Component({\n components: {\n },\n})\nexport default class PostComponent extends Vue {\n @Prop() public post!: Post;\n\n public openPost() {\n this.$router.push(this.post.ambitId + '/post/' + this.post.id);\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!./post.component.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!./post.component.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./post.component.html?vue&type=template&id=95475ae4&\"\nimport script from \"./post.component.ts?vue&type=script&lang=ts&\"\nexport * from \"./post.component.ts?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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"forum-sarch-bar-container\"},[_c('DxTextBox',{staticClass:\"forum-sarch-bar\",attrs:{\"id\":\"search-bar\",\"mode\":\"search\",\"placeholder\":\"Buscar\"},on:{\"value-changed\":_vm.onChange},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\nimport Component from 'vue-class-component';\nimport DxTextBox from 'devextreme-vue/text-box';\nimport postModule from '../../../store/modules/post.module';\n\n@Component({\n components: {\n DxTextBox, \n },\n})\nexport default class SearchBarComponent extends Vue {\n public search: string = '';\n\n public created() {\n document.getElementById('searchButton')?.addEventListener(\"change\", () => this.onChange());\n }\n\n public onChange() {\n postModule.filterPosts(this.search);\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!./search-bar.component.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!./search-bar.component.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./search-bar.component.html?vue&type=template&id=5abb41ac&\"\nimport script from \"./search-bar.component.ts?vue&type=script&lang=ts&\"\nexport * from \"./search-bar.component.ts?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","import { Component, Prop, Vue } from \"vue-property-decorator\";\nimport { itiHttpService} from '@/iti-core-vue';\nimport Post from '../../../components/forum/post/post.component.vue'; \nimport postModule from '../../../store/modules/post.module';\nimport SearchBar from '../../../components/forum/search-bar/search-bar.component.vue'\nimport { API } from \"@/shared/api\";\nimport collaborativeAreaModule from \"@/store/modules/collaborative-area.module\";\n\n@Component({\n components: {\n Post,\n SearchBar,\n }\n})\nexport default class ForumLayout extends Vue {\n @Prop() public ambitId!: number;\n public collaborativeName: string = '';\n\n public created() {\n postModule.getPosts(this.ambitId);\n collaborativeAreaModule.getCollaborativeAreaById(Number.parseInt(this.ambitId.toString()));\n }\n\n public get posts() {\n return postModule.postsSearched;\n }\n\n public addPost() {\n this.$router.push('/main/foro/' + this.ambitId + '/form');\n }\n\n public goToAreaHome() {\n this.$router.push({ name: 'CollaborativeAreaDetails', params: { id: this.collaborativeArea.id.toString() } });\n } \n\n public get collaborativeArea() {\n return collaborativeAreaModule.selectedCollaborativeArea;\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!./forum-layout.component.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!./forum-layout.component.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./forum-layout.component.html?vue&type=template&id=67e232f0&\"\nimport script from \"./forum-layout.component.ts?vue&type=script&lang=ts&\"\nexport * from \"./forum-layout.component.ts?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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCardText,VIcon,VToolbar,VToolbarTitle})\n","import { ItiBaseDto } from '@/iti-core-vue';\nimport { CollaborativeAreaMember } from './collaborative-area-member';\nimport { CollaborativeAreaType } from './collaborative-area-type';\n\nexport class CollaborativeArea extends ItiBaseDto {\n public name !: string;\n public description !: string;\n public active !: boolean;\n public type !: any; //CollaborativeAreaType || number;\n public users !: CollaborativeAreaMember[];\n public numberUsers !: number;\n public numberFiles !: number;\n public lastFileDate !: Date;\n public lastFileName !: string;\n public lastFileId!: number;\n public numberChatMessages !: number;\n public lastMessageDate !: Date;\n public lastMessage !: string;\n public roomId !: number;\n public lastPostId !: number\n public lastPostTitle !: string;\n public lastPostDate !: Date;\n public numberEvents !: number;\n public nextEventDate !: Date;\n public nameNextEvent !: string;\n public allDay !: boolean;\n public nameUsers !: string[];\n\n}","import { store, itiHttpService, itiMessageService, itiSignalRService, ItiString } from '@/iti-core-vue';\nimport { Action, getModule, Module, Mutation, VuexModule } from 'vuex-module-decorators';\nimport { API } from '@/shared/api';\nimport { CollaborativeArea } from '@/shared/dtos/collaborative-area';\nimport { CollaborativeAreaType } from '@/shared/dtos/collaborative-area-type';\nimport { CollaborativeAreaMember } from '@/shared/dtos/collaborative-area-member';\nimport { Rol } from '@/shared/dtos/rol';\n\n@Module({\n namespaced: true,\n name: 'CollaborativeAreaModule',\n store,\n dynamic: true,\n})\nclass CollaborativeAreaModule extends VuexModule {\n\n public collaborativeAreasInfo: CollaborativeArea[] = [];\n public nameUsersByCollaborativeAreas: CollaborativeArea[] = [];\n public selectedCollaborativeArea: CollaborativeArea = new CollaborativeArea();\n public collaborativeAreaTypes: CollaborativeAreaType[] = [];\n public usersAndRolesArea: CollaborativeAreaMember[] = [];\n public collaborativeAreaMember: CollaborativeAreaMember = new CollaborativeAreaMember();\n public myId: number = 0;\n public areaEditMode: boolean = false;\n\n @Mutation\n public newCollaborativeArea() {\n this.selectedCollaborativeArea = new CollaborativeArea();\n this.selectedCollaborativeArea.users = [];\n }\n\n @Action\n public async saveCollaborativeArea(collaborativeArea: CollaborativeArea) {\n let res = null;\n if (collaborativeArea.id == null) {\n collaborativeArea.id = 0;\n collaborativeArea.active = true;\n res = await itiHttpService.post(API.collaborativeArea + \"/Create_CollaborativeArea\", collaborativeArea.toJson());\n } else {\n const collaborativeAreaDB: CollaborativeArea = new CollaborativeArea(collaborativeArea);\n res = await itiHttpService.put(API.collaborativeArea + \"/Put\", collaborativeAreaDB.toJson());\n }\n this.context.commit('setCollaborativeAreaById', res);\n }\n\n @Action\n public async asociateUserToCollaborativeArea() {\n await itiHttpService.post(API.collaborativeArea + \"/AsociateUserToCollaborativeArea?userId=\" + this.collaborativeAreaMember.userId + \"&collaborativeAreaId=\" + this.collaborativeAreaMember.ambitId + \"&roleId=\" + this.collaborativeAreaMember.roleId, \"\");\n }\n\n @Action\n public async disassociateUserToCollaborativeArea() {\n await itiHttpService.post(API.collaborativeArea + \"/DisassociateUserToCollaborativeArea?userId=\" + this.collaborativeAreaMember.userId + \"&collaborativeAreaId=\" + this.collaborativeAreaMember.ambitId, \"\");\n }\n\n @Action\n public async changeStateCollaborativeArea(state: boolean) {\n this.selectedCollaborativeArea.active = state;\n await itiHttpService.post(API.collaborativeArea + \"/ChangeStateCollaborativeArea\", this.selectedCollaborativeArea);\n }\n\n @Mutation\n public setMyId(myId: number) {\n this.myId = myId;\n }\n\n @Action\n public async fetchId() {\n await itiHttpService.get(API.chat + '/id', null, false)\n .catch((error) => { itiMessageService.toast(error, itiMessageService.TypeError); })\n .then((value) => this.context.commit('setMyId', Number.parseInt(value)));\n }\n\n @Mutation\n public setCollaborativeAreaById(collaborativeArea: CollaborativeArea) {\n this.selectedCollaborativeArea = collaborativeArea;\n }\n\n @Action\n public async getCollaborativeAreaById(ambitId: number) {\n const res = await itiHttpService.get(API.collaborativeArea + '/(' + ambitId + ')');\n this.context.commit('setCollaborativeAreaById', res);\n }\n\n @Mutation\n public setCollaborativeAreasInfo(collaborativeAreasInfo: CollaborativeArea[]) {\n this.collaborativeAreasInfo = collaborativeAreasInfo;\n }\n\n @Action\n public async getCollaborativeAreasInfo() {\n const res = await itiHttpService.get(API.collaborativeArea + '/GetCollaborativeAreasInfo');\n this.context.commit('setCollaborativeAreasInfo', res);\n }\n\n @Action\n public async getActiveCollaborativeAreasInfoByType(type: number) {\n const res = await itiHttpService.get(API.collaborativeArea + '/GetActiveCollaborativeAreasInfoByType?typeId=' + type);\n this.context.commit('setCollaborativeAreasInfo', res);\n }\n\n @Action\n public async getInactiveCollaborativeAreasInfoByType(type: number) {\n const res = await itiHttpService.get(API.collaborativeArea + '/GetInactiveCollaborativeAreasInfoByType?typeId=' + type);\n this.context.commit('setCollaborativeAreasInfo', res);\n }\n\n @Mutation\n public setNameUsersByCollaborativesAreas(nameUsersByCollaborativeAreas: CollaborativeArea[]) {\n this.nameUsersByCollaborativeAreas = nameUsersByCollaborativeAreas;\n }\n\n @Action\n public async getNameUsersByCollaborativesAreas() {\n const res = await itiHttpService.get(API.collaborativeArea + '/GetNameUsersByCollaborativeAreas');\n this.context.commit('setNameUsersByCollaborativesAreas', res);\n }\n\n @Mutation\n public setCollaborativeAreaTypes() {\n this.collaborativeAreaTypes = [];\n this.collaborativeAreaTypes[0] = new CollaborativeAreaType(0, \"PublicArea\");\n this.collaborativeAreaTypes[1] = new CollaborativeAreaType(1, \"WorkGroups\");\n //this.collaborativeAreaTypes[2] = new CollaborativeAreaType(2, \"PrivateArea\"); \n }\n\n @Mutation\n public setUsersAndRolesByAmbitId(usersAndRoles: CollaborativeAreaMember[]) {\n this.usersAndRolesArea = usersAndRoles;\n }\n\n @Action\n public async getUsersAndRolesByAmbitId(ambitId: number) {\n const res = await itiHttpService.get(API.collaborativeArea + '/GetUsersAndRolesByAmbitId?ambitId=' + ambitId);\n this.context.commit('setUsersAndRolesByAmbitId', res);\n }\n\n // @Action\n // public async getUsersAndRolesByAmbitIdExceptPublicArea(ambitId: number) { \n // const res = await itiHttpService.get(API.collaborativeArea + '/GetUsersAndRolesByAmbitIdExceptPublicArea?ambitId=' + ambitId);\n // this.context.commit('setUsersAndRolesByAmbitId', res);\n // }\n\n @Mutation\n public setAreaEditMode(editar: boolean) {\n this.areaEditMode = editar;\n }\n\n @Mutation\n public setNewCollaborativeAreaMember() {\n this.collaborativeAreaMember = new CollaborativeAreaMember();\n }\n\n}\nexport default getModule(CollaborativeAreaModule);\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseInt = global.parseInt;\nvar Symbol = global.Symbol;\nvar ITERATOR = Symbol && Symbol.iterator;\nvar hex = /^[+-]?0x/i;\nvar exec = uncurryThis(hex.exec);\nvar FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\nmodule.exports = FORCED ? function parseInt(string, radix) {\n var S = trim(toString(string));\n return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));\n} : $parseInt;\n","import { ItiBaseDto } from '@/iti-core-vue';\n\nexport class Post extends ItiBaseDto {\n public id!: number;\n public title!: string;\n public content!: string;\n public ambitId!: number;\n public userId!: number;\n public numberOfReplys!: number;\n public lastModificationDate!: Date;\n public creationDate!: Date;\n public userName!: string;\n public userNameOfLastReply!: string;\n public creationDateOfLastReply!: Date;\n public canEdit!: boolean;\n public canDelete!: boolean;\n}\n"],"sourceRoot":""}