{"version":3,"sources":["webpack:///static-appopensalud/js/9.a32e44485c194ee7883f.js","webpack:///src/components/views/healthy-community/forum/Forum.vue","webpack:///./src/components/views/healthy-community/forum/Forum.vue?2d4f","webpack:///./src/components/views/healthy-community/forum/Forum.vue?7fc2","webpack:///./src/components/views/healthy-community/forum/Forum.vue?1cb3","webpack:///./src/components/views/healthy-community/forum/Forum.vue"],"names":["webpackJsonp","3428","module","__webpack_exports__","__webpack_require__","__WEBPACK_IMPORTED_MODULE_0_bootstrap_vue__","__WEBPACK_IMPORTED_MODULE_1__mixins_forum_mixin__","__WEBPACK_IMPORTED_MODULE_2__repositories_ForumRepository__","__WEBPACK_IMPORTED_MODULE_3__components_base_buttons_BaseButton__","name","components","BFormSelect","BBadge","BaseButton","props","mixins","data","activitySource","sortOptions","created","this","$store","state","forum","hideSearcher","getForumData","inWhoInSection","getters","getActivities","computed","methods","forumFormSended","loadMoreEntries","entriesPageNumber","loadForumEntries","sortSelect","resetWhoInFilters","commit","searchActivity","activityFilterSelected","activityId","response","entryData","length","4186","exports","content","i","locals","4187","push","4188","render","_vm","_h","$createElement","_c","_self","Object","keys","activityFilters","attrs","white","on","click","_v","_s","$t","_e","staticClass","options","input","model","value","searchSort","callback","$$v","$set","expression","_l","item","key","id","class","$event","createdByUser","normalizeForumProp","staticStyle","hideForumDescriptionMobile","staticRenderFns","_withStripped","esExports","554","injectStyle","ssrContext","disposed","normalizeComponent","__vue_styles__","Component","__file"],"mappings":"AAAAA,cAAc,IAERC,KACA,SAAUC,EAAQC,EAAqBC,GAE7C,YACqB,IAAIC,GAA8CD,EAAoB,IAClEE,EAAoDF,EAAoB,KACxEG,EAA8DH,EAAoB,KAClFI,EAAoEJ,EAAoB,ICYjH,MACEK,KAAM,QACNC,YACEC,YAAJ,IACIC,OAAJ,IACIC,WAAJ,UACI,sBAAuB,WAA3B,kGACI,cAAe,WAAnB,iGACI,UAAa,WAAjB,mGAEEC,SAEAC,QAAS,EAAX,GACEC,KAbF,WAcI,OAC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A,SAAU1F,EAAQC,EAAqBC,GAE7C,YKjQA,SAASyF,GAAaC,GAChBC,GACJ,EAAQ,MAHV,yEAAIA,GAAW,EAKXC,EAAqB,EAAQ,GAS7BC,EAAiBJ,EAKjBK,EAAYF,EACd,IACA,KATgC,EAWhCC,EAPoB,KAEU,KAShCC,GAAU5B,QAAQ6B,OAAS,yDAkBZ,UAAAD,EAAiB","file":"static-appopensalud/js/9.a32e44485c194ee7883f.js","sourcesContent":["webpackJsonp([9],{\n\n/***/ 3428:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_bootstrap_vue__ = __webpack_require__(18);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_forum_mixin__ = __webpack_require__(160);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__repositories_ForumRepository__ = __webpack_require__(544);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_base_buttons_BaseButton__ = __webpack_require__(124);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'forum',\n components: {\n BFormSelect: __WEBPACK_IMPORTED_MODULE_0_bootstrap_vue__[\"x\" /* BFormSelect */],\n BBadge: __WEBPACK_IMPORTED_MODULE_0_bootstrap_vue__[\"b\" /* BBadge */],\n BaseButton: __WEBPACK_IMPORTED_MODULE_3__components_base_buttons_BaseButton__[\"default\"],\n 'forum-article-block': function forumArticleBlock() {\n return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 1284)).then(function (m) {\n return m.default;\n });\n },\n 'base-button': function baseButton() {\n return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 124)).then(function (m) {\n return m.default;\n });\n },\n 'LoginForm': function LoginForm() {\n return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 1263)).then(function (m) {\n return m.default;\n });\n }\n },\n props: {},\n mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_forum_mixin__[\"a\" /* default */]],\n data: function data() {\n return {\n activitySource: [],\n sortOptions: [{ value: 0, text: this.$t('orderBy') }, { value: 1, text: this.$t('moreRecent') }, { value: 2, text: this.$t('featured') }]\n };\n },\n created: function created() {\n this.$store.state.forum.hideSearcher = false;\n this.getForumData();\n if (this.inWhoInSection && this.$store.getters['session/healthyCommunityActive']) {\n this.getActivities();\n }\n },\n\n computed: {},\n methods: {\n forumFormSended: function forumFormSended() {\n this.getForumData();\n },\n loadMoreEntries: function loadMoreEntries() {\n this.$store.state.forum.entriesPageNumber += 1;\n this.getForumData();\n },\n getForumData: function getForumData() {\n this.loadForumEntries();\n },\n sortSelect: function sortSelect() {\n this.$store.state.forum.entriesPageNumber = 0;\n this.getForumData();\n },\n resetWhoInFilters: function resetWhoInFilters() {\n this.$store.commit('forum/setActivityFilterSelected', null);\n this.$store.commit('forum/setActivityFilters', {});\n this.getForumData();\n },\n getActivities: function getActivities() {\n var _this = this;\n\n __WEBPACK_IMPORTED_MODULE_2__repositories_ForumRepository__[\"a\" /* default */].getActivities(true, true).then(function (response) {\n _this.activitySource = response.data;\n });\n },\n searchActivity: function searchActivity(activityId, createdByUser) {\n var _this2 = this;\n\n if (this.$store.state.forum.activityFilterSelected === activityId) {\n this.$store.commit('forum/setActivityFilterSelected', null);\n this.resetWhoInFilters();\n } else {\n this.$store.commit('forum/setActivityFilterSelected', activityId);\n var filter = createdByUser ? { otherActivities: true } : { activity: activityId };\n __WEBPACK_IMPORTED_MODULE_2__repositories_ForumRepository__[\"a\" /* default */].searchActivity(filter).then(function (response) {\n if (response.data && response.data.entryData.length > 0) {\n _this2.processForumEntry(response.data);\n } else {\n _this2.$store.dispatch('showInfoAlert', _this2.$t('emptyActivitiesSearch'));\n }\n });\n }\n }\n }\n});\n\n/***/ }),\n\n/***/ 4186:\n/***/ (function(module, exports, __webpack_require__) {\n\n// style-loader: Adds some css to the DOM by adding a \n\n\n// WEBPACK FOOTER //\n// src/components/views/healthy-community/forum/Forum.vue","// style-loader: Adds some css to the DOM by adding a