{"version":3,"sources":["webpack:///./src/api/appointmentsEndpoints.js","webpack:///./src/views/AppointmentCancelView.vue?0208","webpack:///./src/views/AppointmentCancelView.vue?a43f","webpack:///src/views/AppointmentCancelView.vue","webpack:///./src/views/AppointmentCancelView.vue?e186","webpack:///./src/views/AppointmentCancelView.vue"],"names":["getCoberturas","axios","get","then","response","data","coberturas","catch","err","console","log","getSucursales","sucursales","getEspecialidades","especialidades","getPrestaciones","especialidad","especialidadQuery","concat","prestaciones","getProfesionales","profesionales","getTurnosCalendario","params","obraSocial","plan","sucursal","prestacion","profesional","baseURL","obraSocialQuery","planQuery","sucursalQuery","prestacionQuery","profesionalQuery","calendario","getTurnosLibres","date","dateQuery","replace","turnos","getTurnosPendientes","pacienteId","pacienteIdQuery","verificarTurno","patient","turno","turnoQuery","reservarTurno","post","Object","C_dev_LogimedAPP_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","anularTurno","enviarMail","confirmarTurno","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_index_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_9_oneOf_1_3_node_modules_vuetify_loader_lib_loader_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AppointmentCancelView_vue_vue_type_style_index_0_id_b44be0b6_scoped_true_lang_sass___WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_index_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_9_oneOf_1_3_node_modules_vuetify_loader_lib_loader_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AppointmentCancelView_vue_vue_type_style_index_0_id_b44be0b6_scoped_true_lang_sass___WEBPACK_IMPORTED_MODULE_0___default","n","render","_vm","this","_h","$createElement","_c","_self","attrs","row","wrap","fill-height","staticClass","color","elevation-1","hover","width","_v","disabled","loading","on","click","cancelAppointment","cancelar","staticRenderFns","AppointmentCancelViewvue_type_script_lang_js_","name","menu","methods","_cancelAppointment","asyncToGenerator","regeneratorRuntime","mark","_callee","prepareObject","removeAppointment","_context","prev","next","$route","query","pacienteid","appointmentsEndpoints","sent","respuesta","$createAlert","message","mensaje","type","duration","$router","push","stop","apply","arguments","views_AppointmentCancelViewvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__","installComponents_default","VBtn","VCard","VCardTitle","VLayout"],"mappings":"0jBAEaA,EAAgB,WAC3B,OAAOC,OAAMC,IAAI,eAAeC,KAAK,SAAAC,GAAQ,OAAIA,EAASC,KAAKC,aAAYC,MAAM,SAAAC,GAAG,OAAIC,QAAQC,IAAIF,MAGzFG,EAAgB,WAC3B,OAAOV,OAAMC,IAAI,eAAeC,KAAK,SAAAC,GAAQ,OAAIA,EAASC,KAAKO,aAAYL,MAAM,SAAAC,GAAG,OAAIC,QAAQC,IAAIF,MAGzFK,EAAoB,WAC/B,OAAOZ,OAAMC,IAAI,mBAAmBC,KAAK,SAAAC,GAAQ,OAAIA,EAASC,KAAKS,iBAAgBP,MAAM,SAAAC,GAAG,OAAIC,QAAQC,IAAIF,MAGjGO,EAAkB,SAACC,GAC9B,IAAMC,EAAiB,iBAAAC,OAAoBF,GAC3C,OAAOf,OAAMC,IAAN,gBAAAgB,OAA0BD,IAAqBd,KAAK,SAAAC,GAAQ,OAAIA,EAASC,KAAKc,eAAcZ,MAAM,SAAAC,GAAG,OAAIC,QAAQC,IAAIF,MAGjHY,EAAmB,SAACJ,GAC/B,IAAMC,EAAiB,iBAAAC,OAAoBF,GAC3C,OAAOf,OAAMC,IAAN,iBAAAg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,6CACvtBO,EAAA,uCCyCAC,EAAA,CACAC,KAAA,wBACA/E,KAFA,WAGA,OACAwE,SAAA,EACAQ,MAAA,IAGAC,QAAA,CACAN,kBADA,eAAAO,EAAArC,OAAAsC,EAAA,KAAAtC,CAAAuC,mBAAAC,KAAA,SAAAC,IAAA,IAAAC,EAAAC,EAAA,OAAAJ,mBAAArB,KAAA,SAAA0B,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,cAEAJ,EAAA,CACAlD,WAAAmB,KAAAoC,OAAAC,MAAAC,WACArD,MAAAe,KAAAoC,OAAAC,MAAApD,OAEAe,KAAAgB,SAAA,EANAiB,EAAAE,KAAA,EAOA9C,OAAAkD,EAAA,KAAAlD,CAAA0C,GAPA,OAOAC,EAPAC,EAAAO,KAQAxC,KAAAoB,WACApB,KAAAgB,SAAA,EACA,UAAAgB,EAAAS,UACAzC,KAAA0C,aAAA,CACAC,QAAAX,EAAAY,QACAC,KAAA,QACAC,SAAA,MAGA9C,KAAA0C,aAAA,CACAC,QAAA,gBACAE,KAAA,UACAC,SAAA,MAGA9C,KAAA+C,QAAAC,KAAA,cAvBA,wBAAAf,EAAAgB,SAAAnB,EAAA9B,SAAA,SAAAmB,IAAA,OAAAO,EAAAwB,MAAAlD,KAAAmD,WAAA,OAAAhC,EAAA,GAyBAC,SAzBA,WA0BApB,KAAA+C,QAAAC,KAAA,iBC5E+YI,EAAA,+FCQ/YC,EAAgBhE,OAAAiE,EAAA,KAAAjE,CACd+D,EACAtD,EACAuB,GACF,EACA,KACA,WACA,MAIekC,EAAA,WAAAF,EAAiB,QAQhCG,IAAiBH,EAAA,CAAaI,OAAA,KAAKC,QAAA,KAAMC,aAAA,KAAWC,UAAA","file":"js/chunk-8ce21e4e.0cfaa2bf.js","sourcesContent":["import axios from '../config/axiosConfig'\r\n\r\nexport const getCoberturas = () => {\r\n return axios.get('/coberturas').then(response => response.data.coberturas).catch(err => console.log(err))\r\n}\r\n\r\nexport const getSucursales = () => {\r\n return axios.get('/sucursales').then(response => response.data.sucursales).catch(err => console.log(err))\r\n}\r\n\r\nexport const getEspecialidades = () => {\r\n return axios.get('/especialidades').then(response => response.data.especialidades).catch(err => console.log(err))\r\n}\r\n\r\nexport const getPrestaciones = (especialidad) => {\r\n const especialidadQuery = `?especialidad=${especialidad}`\r\n return axios.get(`/prestaciones${especialidadQuery}`).then(response => response.data.prestaciones).catch(err => console.log(err))\r\n}\r\n\r\nexport const getProfesionales = (especialidad) => {\r\n const especialidadQuery = `?especialidad=${especialidad}`\r\n return axios.get(`/profesionales${especialidadQuery}`).then(response => response.data.profesionales).catch(err => console.log(err))\r\n}\r\n\r\nexport const getTurnosCalendario = (params) => {\r\n const { obraSocial, plan, sucursal, especialidad, prestacion, profesional } = params\r\n const baseURL = '/turnoscalendario'\r\n const obraSocialQuery = `?obraSocial=${obraSocial}`\r\n const planQuery = `&plan=${plan}`\r\n const sucursalQuery = `&sucursal=${sucursal}`\r\n const especialidadQuery = `&especialidad=${especialidad}`\r\n const prestacionQuery = `&prestacion=${prestacion}`\r\n const profesionalQuery = `&profesional=${profesional}`\r\n return axios\r\n .get(`${baseURL}${obraSocialQuery}${planQuery}${sucursalQuery}${especialidadQuery}${prestacionQuery}${profesionalQuery}`)\r\n .then(response => response.data.calendario)\r\n .catch(err => console.log(err))\r\n}\r\n\r\nexport const getTurnosLibres = (params, date) => {\r\n const { obraSocial, plan, sucursal, especialidad, prestacion, profesional } = params\r\n const baseURL = '/turnoslibres'\r\n const dateQuery = `?fecha=${date.replace(/-/g, '')}`\r\n const obraSocialQuery = `&obraSocial=${obraSocial}`\r\n const planQuery = `&plan=${plan}`\r\n const sucursalQuery = `&sucursal=${sucursal}`\r\n const especialidadQuery = `&especialidad=${especialidad}`\r\n const prestacionQuery = `&prestacion=${prestacion}`\r\n const profesionalQuery = `&profesional=${profesional}`\r\n return axios\r\n .get(`${baseURL}${dateQuery}${obraSocialQuery}${planQuery}${sucursalQuery}${especialidadQuery}${prestacionQuery}${profesionalQuery}`)\r\n .then(response => response.data.turnos)\r\n .catch(err => console.log(err))\r\n}\r\n\r\nexport const getTurnosPendientes = (pacienteId) => {\r\n const baseURL = '/turnospendientes'\r\n const pacienteIdQuery = `?pacienteId=${pacienteId}`\r\n return axios\r\n .get(`${baseURL}${pacienteIdQuery}`)\r\n .then(response => response.data.turnos)\r\n .catch(err => console.log(err))\r\n}\r\n\r\nexport const verificarTurno = (patient, turno) => {\r\n const baseURL = '/verificarturno'\r\n const pacienteIdQuery = `?pacienteId=${patient.pacienteId}`\r\n const obraSocialQuery = `&obraSocial=${patient.obraSocial}`\r\n const planQuery = `&plan=${patient.plan}`\r\n const prestacionQuery = `&prestacion=${patient.prestacion}`\r\n const turnoQuery = `&turno=${turno}`\r\n return axios\r\n .get(`${baseURL}${pacienteIdQuery}${obraSocialQuery}${planQuery}${prestacionQuery}${turnoQuery}`)\r\n .then(response => response.data)\r\n .catch(err => console.log(err))\r\n}\r\n\r\nexport const reservarTurno = (turno) => {\r\n const baseURL = '/reservarturno'\r\n return axios\r\n .post(`${baseURL}`, { ...turno })\r\n .then(response => response.data)\r\n .catch(err => console.log(err))\r\n}\r\n\r\nexport const anularTurno = (patient) => {\r\n const baseURL = '/anularturno'\r\n return axios\r\n .post(`${baseURL}`, { ...patient })\r\n .then(response => response.data)\r\n .catch(err => console.log(err))\r\n}\r\n\r\nexport const enviarMail = (pacienteId) => {\r\n const baseURL = '/enviarmail'\r\n const pacienteIdQuery = `?pacienteId=${pacienteId}`\r\n return axios\r\n .get(`${baseURL}${pacienteIdQuery}`)\r\n .then(response => response.data)\r\n .catch(err => console.log(err))\r\n}\r\n\r\nexport const confirmarTurno = (patient) => {\r\n const baseURL = '/confirmarturno'\r\n return axios\r\n .post(`${baseURL}`, { ...patient })\r\n .then(response => response.data)\r\n .catch(err => console.log(err))\r\n}\r\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/index.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/lib/loader.js??ref--9-oneOf-1-3!../../node_modules/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppointmentCancelView.vue?vue&type=style&index=0&id=b44be0b6&scoped=true&lang=sass&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/index.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/lib/loader.js??ref--9-oneOf-1-3!../../node_modules/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppointmentCancelView.vue?vue&type=style&index=0&id=b44be0b6&scoped=true&lang=sass&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\",\"fill-height\":\"\"}},[_c('v-card',{staticClass:\"mx-auto align-self-center\",attrs:{\"color\":\"white\",\"elevation-1\":\"\",\"hover\":\"\",\"width\":\"400\"}},[_c('v-card-title',[_c('h2',{staticClass:\"primary--text font-weight-regular mx-auto\"},[_vm._v(\"\\n ¿ Confirma la anulacion del turno ?\\n \")])]),_c('div',{staticClass:\"text-xs-right mt-4\"},[_c('v-btn',{staticClass:\"error\",attrs:{\"disabled\":_vm.loading,\"loading\":_vm.loading},on:{\"click\":_vm.cancelAppointment}},[_vm._v(\"\\n Anular\\n \")]),_c('v-btn',{staticClass:\"primary\",attrs:{\"disabled\":_vm.loading},on:{\"click\":_vm.cancelar}},[_vm._v(\"\\n Cancelar\\n \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppointmentCancelView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppointmentCancelView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppointmentCancelView.vue?vue&type=template&id=b44be0b6&scoped=true&\"\nimport script from \"./AppointmentCancelView.vue?vue&type=script&lang=js&\"\nexport * from \"./AppointmentCancelView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AppointmentCancelView.vue?vue&type=style&index=0&id=b44be0b6&scoped=true&lang=sass&\"\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 \"b44be0b6\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!C:/dev/LogimedAPP/node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib'\nimport { VCard } from 'vuetify/lib'\nimport { VCardTitle } from 'vuetify/lib'\nimport { VLayout } from 'vuetify/lib'\ninstallComponents(component, {VBtn,VCard,VCardTitle,VLayout})\n"],"sourceRoot":""}