{"version":3,"sources":["webpack:///static-appopensalud/js/63.5fac6c7932f2327e452b.js","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuiz.vue","webpack:///./src/mixins/clinicHistory.mixin.js","webpack:///src/components/views/clinicHistory/quiz/ClinicHistoryQuiz.vue","webpack:///src/components/views/clinicHistory/quiz/ClinicHistoryQuizBlock.vue","webpack:///src/components/views/clinicHistory/quiz/ClinicHistoryQuizForm.vue","webpack:///src/components/views/clinicHistory/quiz/ClinicHistoryQuizAnswer.vue","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuiz.vue?0e06","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuiz.vue?8cdf","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizBlock.vue","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizBlock.vue?c070","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizBlock.vue?32a5","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizBlock.vue?4e5f","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizForm.vue","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizForm.vue?2639","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizForm.vue?c77f","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizAnswer.vue","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizAnswer.vue?f796","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizAnswer.vue?6633","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizAnswer.vue?2b37","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuizForm.vue?0f2a","webpack:///./src/components/views/clinicHistory/quiz/ClinicHistoryQuiz.vue?d229"],"names":["webpackJsonp","2357","module","__webpack_exports__","__webpack_require__","injectStyle","ssrContext","disposed","normalizeComponent","__vue_styles__","Component","options","__file","2443","__WEBPACK_IMPORTED_MODULE_0__constants_sessionStorage__","__WEBPACK_IMPORTED_MODULE_1__constants_clinicHistory__","methods","goToSection","path","needsPatientId","this","$store","getters","$route","query","patientId","route","HISTORY_BASE_PATH","HISTORY_MENU_PATH","petId","$router","push","catch","data","historyReadOnly","sessionStorage","getItem","READ_ONLY_TOKEN_SESSION_STORAGE_KEY","2899","__WEBPACK_IMPORTED_MODULE_0__components_views_clinicHistory_quiz_ClinicHistoryQuizBlock__","__WEBPACK_IMPORTED_MODULE_1__components_views_clinicHistory_quiz_ClinicHistoryQuizForm__","__WEBPACK_IMPORTED_MODULE_2__components_base_buttons_BaseButton__","__WEBPACK_IMPORTED_MODULE_3__repositories_ClinicHistoryRepository__","__WEBPACK_IMPORTED_MODULE_4__components_base_BaseDialog__","__WEBPACK_IMPORTED_MODULE_5__mixins_clinicHistory_mixin__","__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__","components","ClinicHistoryQuizBlock","ClinicHistoryQuizForm","BaseButton","BaseDialog","props","blockIdSelected","questionsAndAnswers","nextBlock","healthVars","feedingHabits","moodAndHabits","historyAndDiseases","medicalEvaluation","completedQuizs","showDialogMedicalEvaluation","HEALTH_VARS_PATH","mixins","created","processElementSelected","item","multipleAnswers","elementSelected","emptyValue","answersSelected","filter","some","getQuizAnswersColumnsAnchor","answerName","saveQuizData","dispatch","$t","response","processQuizToSave","presureVars","length","values","concat","map","quizTypeId","loadClinicBlock","setTimeout","window","scrollTo","top","scrollIntoAnswers","document","getElementsByClassName","offsetTop","behavior","showDontKnowAnswer","currentBlockIsCompleted","answers","healthVarValue","answerVarName","dontKnowAnswerTitle","isCompleted","quizCompleted","backAction","blockSelected","blockId","computed","saveQuizBtnText","readOnly","blocks","2900","__WEBPACK_IMPORTED_MODULE_0__constants_colours__","iconSize","$uiHelpers","isMobile","completedBlockSelected","completed","id","blockOpacity","titleColor","String","title","type","required","action","Function","Boolean","2901","__WEBPACK_IMPORTED_MODULE_0__components_base_forms_BaseInput__","__WEBPACK_IMPORTED_MODULE_1__components_views_clinicHistory_quiz_ClinicHistoryQuizAnswer__","__WEBPACK_IMPORTED_MODULE_2__constants_clinicHistory__","__WEBPACK_IMPORTED_MODULE_3__mixins_clinicHistory_mixin__","BaseInput","ClinicHistoryQuizAnswer","question","questionId","Array","inputType","default","Number","quizAnswersColumnsAnchor","defaultAnswer","name","value","VAR_UNITS","$emit","2902","answer","itemSelected","3046","exports","content","i","locals","3047","3048","3049","3050","3051","render","_vm","_h","$createElement","_c","_self","class","attrs","cols","lg","on","click","$event","staticClass","gray","style","color","_v","_s","_e","staticRenderFns","_withStripped","esExports","3052","3053","3054","3055","3056","3057","3058","white","3059","domProps","innerHTML","sm","disabled","zeroMarginBottom","min","placeholder","input","scopedSlots","_u","key","fn","proxy","_l","$i18nHelpers","normalize","answerId","clinicHistoryValue","3060","block","inputSelected","okBtnText","cancelBtnText","okFn","cancelFn","model","callback","$$v","expression"],"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,kBAEU,KAShCC,GAAUC,QAAQC,OAAS,gEAkBZ,UAAAF,EAAiB,SDe1BG,KACA,SAAUX,EAAQC,EAAqBC,GAE7C,YACqB,IAAIU,GAA0DV,EAAoB,KAC9EW,EAAyDX,EAAoB,KE7DvF,MACbY,SACEC,YADO,SACMC,GACX,GAAMC,IAAkBC,KAAKC,OAAOC,QAAQ,0BAA4BF,KAAKG,OAAOC,MAAMC,UACtFC,GAAUR,KAASS,KAAoBT,IAASU,IAAT,IAAiCV,EAAS,IAAMM,SACvFL,KAAgBO,EAAMF,MAAMC,UAAYL,KAAKG,OAAOC,MAAMC,WAC1DL,KAAKG,OAAOC,MAAMK,QAAOH,EAAMF,MAAMK,MAAQT,KAAKG,OAAOC,MAAMK,OACnET,KA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ACE,OACES,YAAa,uBAEZZ,EAAIpD,SAIDoD,EAAIkB,KAHJf,EAAG,eAAiBM,IAAMC,MAAOV,EAAItF,gBACnCsF,EAAIgB,GAAGhB,EAAIiB,GAAGjB,EAAIrD,qBAI1B,GAEFqD,EAAIkB,KACRlB,EAAIgB,GAAG,KACPb,EAAG,eACDG,OACEf,QAASS,EAAIpF,GAAG,wCAChBwI,UAAWpD,EAAIpF,GAAG,OAClByI,cAAerD,EAAIpF,GAAG,MACtB0I,KAAM,WACJtD,EAAIpG,6BAA8B,EAClCoG,EAAI7G,gBAAkB6G,EAAI3G,UAAU2G,EAAI7G,iBACxC6G,EAAI3E,iBAAgB,IAEtBkI,SAAU,WACRvD,EAAIpG,6BAA8B,EAClCoG,EAAI1D,kBAGRkH,OACEzE,MAAOiB,EAAIpG,4BACX6J,SAAU,SAASC,GACjB1D,EAAIpG,4BAA8B8J,GAEpCC,WAAY,kCAIlB,MAIFxC,IACJpB,GAAOqB,eAAgB,CACvB,IAAIC,IAActB,OAAQA,EAAQoB,gBAAiBA,EACpC","file":"static-appopensalud/js/63.5fac6c7932f2327e452b.js","sourcesContent":["webpackJsonp([63],{\n\n/***/ 2357:\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_ClinicHistoryQuiz_vue__ = __webpack_require__(2899);\n/* empty harmony namespace reexport */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_546e481b_hasScoped_true_transformToRequire_video_src_poster_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ClinicHistoryQuiz_vue__ = __webpack_require__(3060);\nvar disposed = false\nfunction injectStyle (ssrContext) {\n if (disposed) return\n __webpack_require__(3046)\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__ = \"data-v-546e481b\"\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_ClinicHistoryQuiz_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_546e481b_hasScoped_true_transformToRequire_video_src_poster_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_ClinicHistoryQuiz_vue__[\"a\" /* default */],\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\nComponent.options.__file = \"src/components/views/clinicHistory/quiz/ClinicHistoryQuiz.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-546e481b\", Component.options)\n } else {\n hotAPI.reload(\"data-v-546e481b\", 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/***/ 2443:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constants_sessionStorage__ = __webpack_require__(285);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constants_clinicHistory__ = __webpack_require__(1246);\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n methods: {\n goToSection: function goToSection(path) {\n var needsPatientId = !this.$store.getters['session/userIsPatient'] && this.$route.query.patientId;\n var route = { path: '' + __WEBPACK_IMPORTED_MODULE_1__constants_clinicHistory__[\"d\" /* BASE_PATH */] + (path !== __WEBPACK_IMPORTED_MODULE_1__constants_clinicHistory__[\"O\" /* MENU_PATH */] ? '/' + path : ''), query: {} };\n if (needsPatientId) route.query.patientId = this.$route.query.patientId;\n if (this.$route.query.petId) route.query.petId = this.$route.query.petId;\n this.$router.push(route).catch(function () {});\n }\n },\n data: function data() {\n return {\n historyReadOnly: !!sessionStorage.getItem(__WEBPACK_IMPORTED_MODULE_0__constants_sessionStorage__[\"a\" /* READ_ONLY_TOKEN_SESSION_STORAGE_KEY */])\n };\n }\n});\n\n/***/ }),\n\n/***/ 2899:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_views_clinicHistory_quiz_ClinicHistoryQuizBlock__ = __webpack_require__(3048);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_views_clinicHistory_quiz_ClinicHistoryQuizForm__ = __webpack_require__(3052);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_base_buttons_BaseButton__ = __webpack_require__(124);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__repositories_ClinicHistoryRepository__ = __webpack_require__(507);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_base_BaseDialog__ = __webpack_require__(109);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mixins_clinicHistory_mixin__ = __webpack_require__(2443);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__ = __webpack_require__(1246);\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/* harmony default export */ __webpack_exports__[\"a\"] = ({\n components: {\n ClinicHistoryQuizBlock: __WEBPACK_IMPORTED_MODULE_0__components_views_clinicHistory_quiz_ClinicHistoryQuizBlock__[\"a\" /* default */],\n ClinicHistoryQuizForm: __WEBPACK_IMPORTED_MODULE_1__components_views_clinicHistory_quiz_ClinicHistoryQuizForm__[\"a\" /* default */],\n BaseButton: __WEBPACK_IMPORTED_MODULE_2__components_base_buttons_BaseButton__[\"default\"],\n BaseDialog: __WEBPACK_IMPORTED_MODULE_4__components_base_BaseDialog__[\"default\"]\n },\n props: {},\n data: function data() {\n return {\n blockIdSelected: null,\n questionsAndAnswers: [],\n nextBlock: {\n healthVars: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"r\" /* FEEDING_HABITS */],\n feedingHabits: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"P\" /* MOOD_AND_HABITS */],\n moodAndHabits: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"J\" /* HISTORY_AND_DISEASES */],\n historyAndDiseases: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"N\" /* MEDICAL_EVALUATION */]\n },\n healthVars: [],\n feedingHabits: [],\n moodAndHabits: [],\n historyAndDiseases: [],\n medicalEvaluation: [],\n completedQuizs: [],\n showDialogMedicalEvaluation: false,\n HEALTH_VARS_PATH: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"D\" /* HEALTH_VARS_PATH */]\n };\n },\n\n mixins: [__WEBPACK_IMPORTED_MODULE_5__mixins_clinicHistory_mixin__[\"a\" /* default */]],\n created: function created() {\n var _this2 = this;\n\n Object(__WEBPACK_IMPORTED_MODULE_3__repositories_ClinicHistoryRepository__[\"a\" /* default */])().getCompletedQuizIds().then(function (response) {\n _this2.completedQuizs = response.data.data.map(function (id) {\n return Object(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"_6\" /* getQuizNameByType */])(id);\n });\n var startBlock = _this2.completedQuizs.length === 5 || _this2.completedQuizs.length === 0 ? __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"C\" /* HEALTH_VARS */] : Object(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"_6\" /* getQuizNameByType */])(Object(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"_5\" /* getAllQuizTypesIds */])().filter(function (id) {\n return response.data.data.indexOf(id) < 0;\n })[0]);\n _this2.blockIdSelected = startBlock;\n _this2.loadClinicBlock();\n });\n },\n\n methods: {\n processElementSelected: function processElementSelected(item, elementSelected) {\n if (!item.multipleAnswers) {\n var defaultValue = [{ answerId: elementSelected.answerId, clinicHistoryValue: elementSelected.clinicHistoryValue, emptyValue: elementSelected.emptyValue }];\n item.answersSelected = item.answersSelected.some(function (answer) {\n return answer.emptyValue === true;\n }) ? defaultValue : item.answersSelected.some(function (answer) {\n return answer.answerId === elementSelected.answerId;\n }) ? item.answersSelected.filter(function (answer) {\n return answer.answerId !== elementSelected.answerId;\n }) : defaultValue;\n } else {\n if (elementSelected.emptyValue) {\n item.answersSelected = [{ answerId: elementSelected.answerId, clinicHistoryValue: null, emptyValue: elementSelected.emptyValue }];\n } else if (item.answersSelected.some(function (answer) {\n return answer.answerId === elementSelected.answerId;\n })) {\n item.answersSelected = item.answersSelected.filter(function (answer) {\n return answer.answerId !== elementSelected.answerId;\n });\n } else {\n item.answersSelected = item.answersSelected.filter(function (answer) {\n return !answer.emptyValue;\n });\n item.answersSelected.push(elementSelected);\n }\n }\n },\n getQuizAnswersColumnsAnchor: function getQuizAnswersColumnsAnchor(answerName) {\n return answerName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"g\" /* BLOOD_TYPE */] ? 1 : answerName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"Q\" /* MOOD_LEVEL */] ? 2 : null;\n },\n saveQuizData: function saveQuizData() {\n var _this3 = this;\n\n if (this.questionsAndAnswers.some(function (item) {\n return item.answers.length > 0 ? item.answersSelected.length === 0 : !item.answersSelected.some(function (answer) {\n return answer.emptyValue;\n }) && !item.healthVarValue;\n })) {\n this.$store.dispatch('showInfoAlert', this.$t('mustFillAllData'));\n return;\n } else if (this.blockIdSelected === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"N\" /* MEDICAL_EVALUATION */] && this.questionsAndAnswers.some(function (item) {\n return (item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"H\" /* HIGH_BLOOD_PRESSURE */] || item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"M\" /* LOW_BLOOD_PRESSURE */]) && item.healthVarValue;\n }) && this.questionsAndAnswers.some(function (item) {\n return (item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"H\" /* HIGH_BLOOD_PRESSURE */] || item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"M\" /* LOW_BLOOD_PRESSURE */]) && !item.healthVarValue;\n })) {\n this.$store.dispatch('showInfoAlert', this.$t('mustFillQuizPressureData'));\n return;\n }\n Object(__WEBPACK_IMPORTED_MODULE_3__repositories_ClinicHistoryRepository__[\"a\" /* default */])().saveQuiz(this.processQuizToSave()).then(function (response) {\n if (!response.data.data) {\n _this3.$store.dispatch('showDangerAlert', _this3.$t('httpRequestDefaultError'));\n return;\n }\n if (!_this3.completedQuizs.some(function (item) {\n return item === _this3.blockIdSelected;\n })) {\n _this3.completedQuizs.push(_this3.blockIdSelected);\n }\n _this3.blocks.find(function (item) {\n return item.id === _this3.blockIdSelected;\n }).completed = true;\n if (_this3.blockIdSelected === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"J\" /* HISTORY_AND_DISEASES */]) {\n _this3.showDialogMedicalEvaluation = true;\n } else if (_this3.blockIdSelected === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"N\" /* MEDICAL_EVALUATION */]) {\n _this3.quizCompleted();\n } else {\n _this3.blockIdSelected = _this3.nextBlock[_this3.blockIdSelected];\n _this3.loadClinicBlock();\n }\n });\n },\n processQuizToSave: function processQuizToSave() {\n var values = [];\n var presureVars = this.questionsAndAnswers.filter(function (item) {\n return item.answerVarName && item.answerVarName.indexOf(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"f\" /* BLOOD_PRESSURE_QUIZ */]) > -1 && item.healthVarValue;\n });\n if (presureVars.length > 0) {\n this.questionsAndAnswers = this.questionsAndAnswers.filter(function (item) {\n return item.answerVarName.indexOf(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"f\" /* BLOOD_PRESSURE_QUIZ */]) === -1;\n });\n var highBloodPresure = presureVars.find(function (item) {\n return item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"H\" /* HIGH_BLOOD_PRESSURE */];\n }).healthVarValue;\n var lowBloodPresure = presureVars.find(function (item) {\n return item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"M\" /* LOW_BLOOD_PRESSURE */];\n }).healthVarValue;\n values.push({ answerVarName: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"e\" /* BLOOD_PRESSURE */], answersSelected: null, historyVarValue: highBloodPresure + '/' + lowBloodPresure, questionId: null });\n }\n values = values.concat(this.questionsAndAnswers.map(function (item) {\n return { answerVarName: item.answerVarName, answersSelected: item.answers.length > 0 && item.answersSelected.some(function (answer) {\n return !answer.emptyValue;\n }) ? item.answersSelected.filter(function (answer) {\n return !answer.emptyValue;\n }) : null, historyVarValue: item.answers.length === 0 ? item.healthVarValue : null, questionId: item.id };\n }));\n return { quizTypeId: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"T\" /* QUIZ_TYPES */][this.blockIdSelected], data: values };\n },\n loadClinicBlock: function loadClinicBlock(scrollIntoAnswers) {\n var _this4 = this;\n\n if (this[this.blockIdSelected].length > 0) {\n this.questionsAndAnswers = this[this.blockIdSelected];\n setTimeout(function () {\n window.scrollTo({ top: scrollIntoAnswers ? document.getElementsByClassName('neu-card-questions-and-answers')[0].offsetTop : 0, behavior: 'smooth' });\n }, 100);\n } else {\n Object(__WEBPACK_IMPORTED_MODULE_3__repositories_ClinicHistoryRepository__[\"a\" /* default */])().getQuiz(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"T\" /* QUIZ_TYPES */][this.blockIdSelected]).then(function (response) {\n _this4.questionsAndAnswers = response.data.data.map(function (item) {\n return { id: item.question.value, question: _this4.$i18nHelpers.normalize(item.question.name), answerVarName: item.answerVarName, answers: item.answers, healthVarValue: item.healthVarValue ? item.healthVarValue : undefined, answersSelected: item.answersSelected, multipleAnswers: item.multipleAnswer };\n });\n _this4[_this4.blockIdSelected] = _this4.questionsAndAnswers;\n setTimeout(function () {\n window.scrollTo({ top: scrollIntoAnswers ? document.getElementsByClassName('neu-card-questions-and-answers')[0].offsetTop : 0, behavior: 'smooth' });\n }, 100);\n });\n }\n },\n showDontKnowAnswer: function showDontKnowAnswer(item) {\n if (this.currentBlockIsCompleted && item.answers.length === 0 && !item.healthVarValue) {\n return true;\n }\n return item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"g\" /* BLOOD_TYPE */] || item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"Q\" /* MOOD_LEVEL */] || Object(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"_10\" /* showDontKnowAnswerByQuestionId */])(item.id) ? item.answersSelected.length === 0 || item.answersSelected.length === 1 && item.answersSelected.some(function (answer) {\n return answer.emptyValue === true;\n }) : item.answers.length === 0 && !item.healthVarValue;\n },\n dontKnowAnswerTitle: function dontKnowAnswerTitle(item) {\n return item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"l\" /* CHRONIC_DISEASE_QUIZ */] || item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"m\" /* DISEASES_RELATIONSHIP_QUIZ */] || item.answerVarName === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"Q\" /* MOOD_LEVEL */] || item.id === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"c\" /* ANALYTICS_HIGH_LEVEL */] ? this.$t('noneOfTheAbove') : undefined;\n },\n isCompleted: function isCompleted(blockId) {\n return this.completedQuizs.some(function (item) {\n return item === blockId;\n });\n },\n quizCompleted: function quizCompleted() {\n this.$router.push({ name: 'clinicHistoryMenu' });\n },\n backAction: function backAction() {\n this.goToSection(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"D\" /* HEALTH_VARS_PATH */]);\n },\n blockSelected: function blockSelected(blockId) {\n this.blockIdSelected = blockId;\n this.loadClinicBlock(true);\n }\n },\n computed: {\n currentBlockIsCompleted: function currentBlockIsCompleted() {\n var _this5 = this;\n\n return this.completedQuizs.some(function (item) {\n return item === _this5.blockIdSelected;\n });\n },\n saveQuizBtnText: function saveQuizBtnText() {\n return this.blockIdSelected === __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"N\" /* MEDICAL_EVALUATION */] ? this.$t('finish') : this.$t('continue');\n },\n readOnly: function readOnly() {\n return !this.$store.getters['session/userIsPatient'] || this.historyReadOnly;\n },\n blocks: function blocks() {\n var _this = this;\n return [{\n id: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"C\" /* HEALTH_VARS */],\n title: '' + this.$t('healthyVars'),\n action: function action() {\n _this.blockSelected(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"C\" /* HEALTH_VARS */]);\n }\n }, {\n id: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"r\" /* FEEDING_HABITS */],\n title: '' + this.$t('feedingHabits'),\n action: function action() {\n _this.blockSelected(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"r\" /* FEEDING_HABITS */]);\n }\n }, {\n id: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"P\" /* MOOD_AND_HABITS */],\n title: '' + this.$t('moodAndHabits'),\n action: function action() {\n _this.blockSelected(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"P\" /* MOOD_AND_HABITS */]);\n }\n }, {\n id: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"J\" /* HISTORY_AND_DISEASES */],\n title: '' + (this.$uiHelpers.isMobile ? this.$t('historyAndDiseasesReduced') : this.$t('historyAndDiseases')),\n action: function action() {\n _this.blockSelected(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"J\" /* HISTORY_AND_DISEASES */]);\n }\n }, {\n id: __WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"N\" /* MEDICAL_EVALUATION */],\n title: '' + this.$t('medicalEvaluation'),\n action: function action() {\n _this.blockSelected(__WEBPACK_IMPORTED_MODULE_6__constants_clinicHistory__[\"N\" /* MEDICAL_EVALUATION */]);\n }\n }];\n }\n }\n});\n\n/***/ }),\n\n/***/ 2900:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constants_colours__ = __webpack_require__(46);\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n computed: {\n iconSize: function iconSize() {\n return this.$uiHelpers.isMobile ? '30' : '40';\n },\n completedBlockSelected: function completedBlockSelected() {\n return this.completed && this.id === this.blockIdSelected;\n },\n blockSelected: function blockSelected() {\n return !this.completed && this.id === this.blockIdSelected;\n },\n blockOpacity: function blockOpacity() {\n return this.blockIdSelected && this.id !== this.blockIdSelected;\n },\n titleColor: function titleColor() {\n return this.completed ? __WEBPACK_IMPORTED_MODULE_0__constants_colours__[\"b\" /* BLACK_COLOUR */] : '';\n }\n },\n components: {},\n props: {\n id: String,\n title: {\n type: String,\n required: true\n },\n action: {\n type: Function,\n required: true\n },\n completed: Boolean,\n blockIdSelected: String\n },\n data: function data() {\n return {};\n },\n created: function created() {},\n\n methods: {}\n});\n\n/***/ }),\n\n/***/ 2901:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_base_forms_BaseInput__ = __webpack_require__(218);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_views_clinicHistory_quiz_ClinicHistoryQuizAnswer__ = __webpack_require__(3055);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constants_clinicHistory__ = __webpack_require__(1246);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mixins_clinicHistory_mixin__ = __webpack_require__(2443);\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 components: {\n BaseInput: __WEBPACK_IMPORTED_MODULE_0__components_base_forms_BaseInput__[\"default\"],\n ClinicHistoryQuizAnswer: __WEBPACK_IMPORTED_MODULE_1__components_views_clinicHistory_quiz_ClinicHistoryQuizAnswer__[\"a\" /* default */]\n },\n props: {\n question: {\n type: String,\n required: true\n },\n questionId: String,\n answers: Array,\n answerVarName: String,\n inputType: {\n type: String,\n default: function _default() {\n return 'number';\n }\n },\n healthVarValue: [String, Number],\n answersSelected: [Array],\n quizAnswersColumnsAnchor: Number,\n showDontKnowAnswer: Boolean,\n isCompleted: Boolean,\n dontKnowAnswerTitle: {\n type: String,\n default: function _default() {\n return this.$t('dontKnow');\n }\n }\n },\n mixins: [__WEBPACK_IMPORTED_MODULE_3__mixins_clinicHistory_mixin__[\"a\" /* default */]],\n data: function data() {\n return {\n defaultAnswer: {\n id: this.questionId + '-answer',\n name: this.dontKnowAnswerTitle,\n value: null\n },\n VAR_UNITS: __WEBPACK_IMPORTED_MODULE_2__constants_clinicHistory__[\"_1\" /* VAR_UNITS */]\n };\n },\n created: function created() {\n if (this.isCompleted && (this.answers.length > 0 && this.answersSelected.length === 0 || this.answers.length === 0 && !this.healthVarValue)) {\n this.$emit('elementSelected', { answerId: this.defaultAnswer.id, emptyValue: true });\n }\n },\n\n methods: {},\n computed: {\n readOnly: function readOnly() {\n return !this.$store.getters['session/userIsPatient'] || this.historyReadOnly;\n }\n }\n});\n\n/***/ }),\n\n/***/ 2902:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_base_forms_BaseInput__ = __webpack_require__(218);\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n components: {\n BaseInput: __WEBPACK_IMPORTED_MODULE_0__components_base_forms_BaseInput__[\"default\"]\n },\n props: {\n id: {\n type: String,\n required: true\n },\n answer: {\n type: String,\n required: true\n },\n answersSelected: Array,\n quizAnswersColumnsAnchor: Number,\n readOnly: Boolean\n },\n data: function data() {\n return {};\n },\n created: function created() {},\n\n methods: {},\n computed: {\n itemSelected: function itemSelected() {\n var _this = this;\n\n return this.answersSelected.some(function (item) {\n return item.answerId === _this.id;\n });\n }\n }\n});\n\n/***/ }),\n\n/***/ 3046:\n/***/ (function(module, exports, __webpack_require__) {\n\n// style-loader: Adds some css to the DOM by adding a \r\n\n\n\n// WEBPACK FOOTER //\n// src/components/views/clinicHistory/quiz/ClinicHistoryQuiz.vue","\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/components/views/clinicHistory/quiz/ClinicHistoryQuizBlock.vue","\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/components/views/clinicHistory/quiz/ClinicHistoryQuizForm.vue","\r\n\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/components/views/clinicHistory/quiz/ClinicHistoryQuizAnswer.vue","// style-loader: Adds some css to the DOM by adding a