{"version":3,"sources":["webpack:///static-appopensalud/js/81.632dbd482de88ef3749d.js","webpack:///./src/components/views/errors/UnauthorizedTravelErrorPage.vue","webpack:///./src/repositories/CompaniesRepository.js","webpack:///src/components/views/errors/UnauthorizedTravelErrorPage.vue","webpack:///./src/components/views/errors/UnauthorizedTravelErrorPage.vue?b610","webpack:///./src/components/views/errors/UnauthorizedTravelErrorPage.vue?4344","webpack:///./src/components/views/errors/UnauthorizedTravelErrorPage.vue?ec6c"],"names":["webpackJsonp","2313","module","__webpack_exports__","__webpack_require__","injectStyle","ssrContext","disposed","normalizeComponent","__vue_styles__","Component","options","__file","2511","client","Vue","prototype","$api","getCode","code","get","path","showGroupDialog","codeGroup","getSpecialties","getSpecialtiesInfo","getConsultationTypes","specialty","params","specialtyId","getLanguages","resetCode","reservationNumber","startDate","endDate","post","3048","__WEBPACK_IMPORTED_MODULE_0__repositories_CompaniesRepository__","data","isGenericCode","submitError","computed","routeText","this","$store","state","errorPageMessage","watch","methods","send","$t","response","mounted","$route","query","t","$router","push","3358","exports","content","i","locals","3359","3360","render","_vm","_h","$createElement","_c","_self","domProps","innerHTML","_s","_v","attrs","show","variant","_e","directives","name","rawName","value","expression","staticClass","type","placeholder","on","input","$event","target","composing","model","callback","$$v","cols","click","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,8DAkBZ,UAAAF,EAAiB,SDe1BG,KACA,SAAUX,EAAQC,EAAqBC,GAE7C,YE/DA,sBAGMU,EAAS,iBAAMC,WAAIC,UAAUC,KAEpB,MACbC,QADa,SACJC,GACP,MAAOL,KAASM,IAAIC,YAAKA,mBAAmBF,KAE9C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AASoB,KAAM,OAEf1B,EAAG,mBACDM,OACEW,YAAapB,EAAIhB,GACf,0DAGJ0C,OACEV,MAAOhB,EAAIhC,QACX2D,SAAU,SAASC,GACjB5B,EAAIhC,QAAU4D,GAEhBX,WAAY,cAIlB,IAGJ,IAGJ,GAEFjB,EAAIY,KACRZ,EAAIQ,GAAG,KACPL,EAAG,eAAiBkB,IAAMS,MAAO9B,EAAIjB,QACnCiB,EAAIQ,GAAGR,EAAIO,GAAGP,EAAIhB,GAAG,iBAGzB,IAGA+C,IACJhC,GAAOiC,eAAgB,CACvB,IAAIC,IAAclC,OAAQA,EAAQgC,gBAAiBA,EACpC","file":"static-appopensalud/js/81.632dbd482de88ef3749d.js","sourcesContent":["webpackJsonp([81],{\n\n/***/ 2313:\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_UnauthorizedTravelErrorPage_vue__ = __webpack_require__(3048);\n/* empty harmony namespace reexport */\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_778daab6_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_UnauthorizedTravelErrorPage_vue__ = __webpack_require__(3360);\nvar disposed = false\nfunction injectStyle (ssrContext) {\n if (disposed) return\n __webpack_require__(3358)\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_UnauthorizedTravelErrorPage_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_778daab6_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_UnauthorizedTravelErrorPage_vue__[\"a\" /* default */],\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\nComponent.options.__file = \"src/components/views/errors/UnauthorizedTravelErrorPage.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-778daab6\", Component.options)\n } else {\n hotAPI.reload(\"data-v-778daab6\", 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/***/ 2511:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(29);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helpers__ = __webpack_require__(277);\n\n\n\nvar client = function client() {\n return __WEBPACK_IMPORTED_MODULE_0_vue__[\"default\"].prototype.$api;\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n getCode: function getCode(code) {\n return client().get(Object(__WEBPACK_IMPORTED_MODULE_1__helpers__[\"a\" /* path */])('companies/codes/' + code));\n },\n showGroupDialog: function showGroupDialog(codeGroup) {\n return client().get(Object(__WEBPACK_IMPORTED_MODULE_1__helpers__[\"a\" /* path */])('companies/group/' + codeGroup));\n },\n getSpecialties: function getSpecialties() {\n return client().get(Object(__WEBPACK_IMPORTED_MODULE_1__helpers__[\"a\" /* path */])('companies/specialties'));\n },\n getSpecialtiesInfo: function getSpecialtiesInfo() {\n return client().get(Object(__WEBPACK_IMPORTED_MODULE_1__helpers__[\"a\" /* path */])('companies/specialties/info'));\n },\n getConsultationTypes: function getConsultationTypes(specialty) {\n return client().get(Object(__WEBPACK_IMPORTED_MODULE_1__helpers__[\"a\" /* path */])('companies/consultation-types'), { params: { specialtyId: specialty } });\n },\n getLanguages: function getLanguages(specialty) {\n return client().get(Object(__WEBPACK_IMPORTED_MODULE_1__helpers__[\"a\" /* path */])('companies/languages'), { params: { specialtyId: specialty } });\n },\n resetCode: function resetCode(code, reservationNumber, startDate, endDate) {\n return client().post(Object(__WEBPACK_IMPORTED_MODULE_1__helpers__[\"a\" /* path */])('companies/code-resets', {\n code: code,\n reservationNumber: reservationNumber,\n startDate: startDate,\n endDate: endDate\n }));\n }\n});\n\n/***/ }),\n\n/***/ 3048:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__repositories_CompaniesRepository__ = __webpack_require__(2511);\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 data: function data() {\n return {\n code: null,\n isGenericCode: false,\n reservationNumber: null,\n startDate: null,\n endDate: null,\n submitError: null\n };\n },\n\n computed: {\n routeText: function routeText() {\n return this.$store.state.errorPageMessage;\n }\n },\n watch: {\n code: function code(val) {\n var _this = this;\n\n __WEBPACK_IMPORTED_MODULE_0__repositories_CompaniesRepository__[\"a\" /* default */].getCode(val).then(function (response) {\n _this.isGenericCode = response.data.generic;\n });\n }\n },\n methods: {\n send: function send() {\n var _this2 = this;\n\n // Check fields\n if (!this.code) {\n this.submitError = this.$t('base.errors.unauthozed-travel-error-page.code-required');\n } else if (this.genericCode && !this.reservationNumber) {\n this.submitError = this.$t('base.errors.unauthozed-travel-error-page.reservation-number-required');\n } else if (this.genericCode && (!this.startDate || !this.endDate || this.startDate > this.endDate)) {\n this.submitError = this.$t('base.errors.unauthozed-travel-error-page.start-date-required');\n } else {\n this.submitError = null;\n __WEBPACK_IMPORTED_MODULE_0__repositories_CompaniesRepository__[\"a\" /* default */].resetCode(this.code, this.reservationNumber, this.startDate, this.endDate).then(function (response) {\n if (response) {\n _this2.$router.push('/patient');\n } else {\n _this2.submitError = _this2.$t('base.errors.unauthozed-travel-error-page.server-error');\n }\n });\n }\n }\n },\n mounted: function mounted() {\n if (!this.$route.query.t) {\n this.$router.push('/error/unauthorized');\n }\n }\n});\n\n/***/ }),\n\n/***/ 3358:\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/errors/UnauthorizedTravelErrorPage.vue","// style-loader: Adds some css to the DOM by adding a