{"version":3,"sources":["webpack:///static-appopensalud/js/23.d5322fc975f0842899a9.js","webpack:///./src/components/views/healthy-community/forum/ForumThread.vue","webpack:///src/components/views/healthy-community/forum/ForumThread.vue","webpack:///./src/components/views/healthy-community/forum/ForumThread.vue?5d64","webpack:///./src/components/views/healthy-community/forum/ForumThread.vue?8bdc","webpack:///./src/components/views/healthy-community/forum/ForumThread.vue?4290"],"names":["webpackJsonp","1262","module","__webpack_exports__","__webpack_require__","injectStyle","ssrContext","disposed","normalizeComponent","__vue_styles__","Component","options","__file","3282","__WEBPACK_IMPORTED_MODULE_0__components_base_buttons_BackButton__","__WEBPACK_IMPORTED_MODULE_1__mixins_forum_mixin__","__WEBPACK_IMPORTED_MODULE_2_vue2_editor__","name","components","BackBtn","VueEditor","props","mixins","data","entryId","numReplies","viewRestricted","created","this","$store","state","session","logged","forum","editingEntry","showMainAnswerBlock","$route","params","id","getForumEntry","computed","methods","updatePostData","messagesPageNumber","getForumMessages","article","totalMessages","sendMessage","wysiwygEntryAnswer","dispatch","$t","$api","put","description","then","response","post","goBack","4004","exports","content","i","locals","4005","push","4006","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","action","goRoot","_v","staticStyle","hideFooter","showImage","disableClick","showAnswerBtn","useCustomImageHandler","on","handleImageAdded","model","value","callback","$$v","$set","expression","margin","click","_s","gray","outline","_e","logIn","src","color","numPrincipalReplies","entryReferenceId","staticRenderFns","_withStripped","esExports"],"mappings":"AAAAA,cAAc,KAERC,KACA,SAAUC,EAAQC,EAAqBC,GAE7C,YCJA,SAASC,GAAaC,GAChBC,GACJ,EAAQ,MAHV,yEAAIA,GAAW,EAKXC,EAAqB,EAAQ,GAS7BC,EAAiBJ,EAKjBK,EAAYF,EACd,IACA,KATgC,EAWhCC,EAPoB,KAEU,KAShCC,GAAUC,QAAQC,OAAS,+DAkBZ,UAAAF,EAAiB,SDe1BG,KACA,SAAUX,EAAQC,EAAqBC,GAE7C,YACqB,IAAIU,GAAoEV,EAAoB,MACxF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zDE,WAAY,2CAGhBvB,EAAIS,GAAG,KACPN,EACE,eAEEE,YAAa,kBACbK,aAAec,OAAQ,QACvBR,IAAMS,MAAOzB,EAAIpB,eAElBoB,EAAIS,GAAGT,EAAI0B,GAAG1B,EAAIjB,GAAG,YAExBiB,EAAIS,GAAG,KACPN,EACE,eAEEO,aAAec,OAAQ,QACvBlB,OAASqB,KAAM,GAAIC,QAAS,IAC5BZ,IAAMS,MAAOzB,EAAIV,UAElBU,EAAIS,GAAGT,EAAI0B,GAAG1B,EAAIjB,GAAG,eAG1B,GAEFiB,EAAI6B,KACR7B,EAAIS,GAAG,KACPT,EAAIzC,eACA4C,EAAG,OAASE,YAAa,mBACvBF,EACE,OAEEE,YAAa,eACbK,aAAe,gBAAiB,QAGhCP,EACE,KACEO,aAAec,OAAQ,YAEvBxB,EAAIS,GAAGT,EAAI0B,GAAG1B,EAAIjB,GAAG,qBAAuB,cAC5CoB,EACE,eAEEE,YAAa,0CACbW,IAAMS,MAAOzB,EAAI8B,SAGjB3B,EAAG,QAASH,EAAIS,GAAGT,EAAI0B,GAAG1B,EAAIjB,GAAG,iBACjCiB,EAAIS,GAAG,KACPN,EAAG,aACDG,OACEyB,IACE,sEACFC,MAAO,YAIb,IAGJ,OAKR7B,EAAG,uBACDG,OACE2B,oBAAqBjC,EAAI1C,WACzB4E,iBAAkBlC,EAAI3C,YAIhC,IAGA8E,IACJpC,GAAOqC,eAAgB,CACvB,IAAIC,IAActC,OAAQA,EAAQoC,gBAAiBA,EACpC","file":"static-appopensalud/js/23.d5322fc975f0842899a9.js","sourcesContent":["webpackJsonp([23],{\n\n/***/ 1262:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ForumThread_vue__ = __webpack_require__(3282);\n/* empty harmony namespace reexport */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_08b6bfa6_hasScoped_false_transformToRequire_video_src_poster_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ForumThread_vue__ = __webpack_require__(4006);\nvar disposed = false\nfunction injectStyle (ssrContext) {\n if (disposed) return\n __webpack_require__(4004)\n}\nvar normalizeComponent = __webpack_require__(6)\n/* script */\n\n\n/* template */\n\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ForumThread_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_08b6bfa6_hasScoped_false_transformToRequire_video_src_poster_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ForumThread_vue__[\"a\" /* default */],\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\nComponent.options.__file = \"src/components/views/healthy-community/forum/ForumThread.vue\"\n\n/* hot reload */\nif (false) {(function () {\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), false)\n if (!hotAPI.compatible) return\n module.hot.accept()\n if (!module.hot.data) {\n hotAPI.createRecord(\"data-v-08b6bfa6\", Component.options)\n } else {\n hotAPI.reload(\"data-v-08b6bfa6\", Component.options)\n }\n module.hot.dispose(function (data) {\n disposed = true\n })\n})()}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ 3282:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_base_buttons_BackButton__ = __webpack_require__(1211);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_forum_mixin__ = __webpack_require__(156);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue2_editor__ = __webpack_require__(530);\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// import _ from 'lodash'\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'forum-thread',\n components: {\n BackBtn: __WEBPACK_IMPORTED_MODULE_0__components_base_buttons_BackButton__[\"a\" /* default */],\n 'base-button': function baseButton() {\n return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 105)).then(function (m) {\n return m.default;\n });\n },\n 'forum-article-block': function forumArticleBlock() {\n return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 1239)).then(function (m) {\n return m.default;\n });\n },\n 'forum-message-block': function forumMessageBlock() {\n return new Promise(function(resolve) { resolve(); }).then(__webpack_require__.bind(null, 1261)).then(function (m) {\n return m.default;\n });\n },\n VueEditor: __WEBPACK_IMPORTED_MODULE_2_vue2_editor__[\"a\" /* VueEditor */]\n },\n props: {},\n mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_forum_mixin__[\"a\" /* default */]],\n data: function data() {\n return {\n entryId: null,\n numReplies: null,\n viewRestricted: false\n };\n },\n created: function created() {\n if (!this.$store.state.session.logged) {\n this.viewRestricted = true;\n }\n if (!this.$store.state.forum.editingEntry) {\n this.$store.state.forum.showMainAnswerBlock = false;\n }\n this.entryId = this.$route.params.id;\n this.getForumEntry();\n },\n\n computed: {},\n methods: {\n getForumEntry: function getForumEntry() {\n var _this = this;\n\n this.$api.get('/Forum/GetEntry', { params: { entryId: this.entryId, sectionId: this.$store.state.forum.sectionId } }).then(function (response) {\n if (response.data) {\n _this.$store.state.forum.entriesCreatedByUser = response.data.entriesCreatedByUser;\n _this.$store.state.forum.numEntries = response.data.numEntries;\n _this.$store.state.forum.articleData = response.data.entryData;\n _this.numReplies = response.data.entryData[0].numReplies;\n _this.$store.state.forum.messagesPageNumber = [];\n if (!_this.viewRestricted) {\n _this.getForumMessages(_this.entryId);\n }\n } else {\n _this.$store.dispatch('showDangerAlert', _this.$t('defaultErrorMessage'));\n }\n });\n },\n updatePostData: function updatePostData() {\n var _this2 = this;\n\n this.$store.state.forum.messagesPageNumber = [];\n this.getForumMessages(this.entryId);\n var article = this.$store.state.forum.articleData.find(function (item) {\n return item.id === _this2.entryId;\n });\n article.totalMessages = !article.totalMessages ? 1 : ++article.totalMessages;\n },\n sendMessage: function sendMessage() {\n var _this3 = this;\n\n if (!this.$store.state.forum.wysiwygEntryAnswer) {\n this.$store.dispatch('showDangerAlert', this.$t('emptyMessageError'));\n return;\n }\n\n if (this.$store.state.forum.editingEntry) {\n this.$api.put('/Forum/EditEntry', null, { params: { entryId: this.entryId, description: this.$store.state.forum.wysiwygEntryAnswer } }).then(function (response) {\n if (response.data) {\n _this3.$store.state.forum.wysiwygEntryAnswer = null;\n _this3.$store.state.forum.editingEntry = false;\n _this3.$store.state.forum.showMainAnswerBlock = false;\n _this3.$store.dispatch('showSuccessAlert', _this3.$t('changesPerformedCorrectly'));\n _this3.getForumEntry();\n _this3.updateLastInteractionDate(_this3.entryId);\n } else {\n _this3.$store.dispatch('showDangerAlert', _this3.$t('defaultErrorMessage'));\n }\n });\n } else {\n this.$api.post('/Forum/SendEntryMessage', { entryReferenceId: this.entryId, message: this.$store.state.forum.wysiwygEntryAnswer, sectionId: this.$store.state.forum.sectionId }).then(function (response) {\n if (response.data) {\n _this3.updatePostData();\n _this3.$store.state.forum.wysiwygEntryAnswer = null;\n _this3.$store.state.forum.showMainAnswerBlock = false;\n if (_this3.$store.getters['forum/forumMessageWithoutValidation']) {\n _this3.updateLastInteractionDate(_this3.entryId);\n _this3.$store.dispatch('showSuccessAlert', _this3.$t('messagePublishedSuccessfully'));\n } else {\n _this3.$store.dispatch('showSuccessAlert', _this3.$t('messagePendingValidation'));\n }\n } else {\n _this3.$store.dispatch('showDangerAlert', _this3.$t('defaultErrorMessage'));\n }\n });\n }\n },\n goBack: function goBack() {\n this.$store.state.forum.wysiwygEntryAnswer = null;\n this.$store.state.forum.editingEntry = false;\n this.$store.state.forum.showMainAnswerBlock = false;\n }\n }\n});\n\n/***/ }),\n\n/***/ 4004:\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/ForumThread.vue","// style-loader: Adds some css to the DOM by adding a