"dist/js/dist/js/chunk-25ddca3c.46908e4b.js" did not exist on "e924781a1c46ed80374d43a42f7ec0df8bff08e9"
chunk-25ddca3c.46908e4b.js 22.7 KB
Newer Older
1 2
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25ddca3c"],{"1f00":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("base-section",{attrs:{id:"admit",space:"0"}},[n("patient-file")],1)},r=[],i=n("80a5"),s={name:"SectionAdmit",components:{PatientFile:i["a"]},provide:{heading:{align:"center"}}},c=s,o=n("2877"),u=Object(o["a"])(c,a,r,!1,null,null,null);e["default"]=u.exports},"39f4":function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return d})),n.d(e,"b",(function(){return v})),n.d(e,"f",(function(){return g})),n.d(e,"a",(function(){return _}));var a=n("1da1"),r=(n("99af"),n("96cf"),n("bc3a")),i=n.n(r),s=n("c9d9"),c=n("4e40");function o(t){return u.apply(this,arguments)}function u(){return u=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="".concat(s["d"],"pacientes"),t.next=3,i.a.get(n,Object(c["b"])(e));case 3:return a=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)}))),u.apply(this,arguments)}function p(t){return l.apply(this,arguments)}function l(){return l=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="".concat(s["d"],"pacientes/").concat(e),t.next=3,i.a.get(n,Object(c["b"])());case 3:return a=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}function d(t){return m.apply(this,arguments)}function m(){return m=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="".concat(s["d"],"pacientes"),t.next=3,i.a.post(n,e,Object(c["b"])());case 3:return a=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}function v(t){return b.apply(this,arguments)}function b(){return b=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="".concat(s["d"],"pacientes/").concat(e),t.next=3,i.a.delete(n,Object(c["b"])());case 3:return a=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function g(t){return h.apply(this,arguments)}function h(){return h=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="".concat(s["d"],"pacientes/").concat(e.id_paciente),t.next=3,i.a.put(n,e,Object(c["b"])());case 3:return a=t.sent,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)}))),h.apply(this,arguments)}function _(t){return f.apply(this,arguments)}function f(){return f=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.estado_sistema=3,n="".concat(s["d"],"pacientes/").concat(e.id_paciente),t.next=4,i.a.put(n,e,Object(c["b"])());case 4:return a=t.sent,t.abrupt("return",a);case 6:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}},"80a5":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{staticStyle:{padding:"8px"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"12",sm:"2"}},[n("v-avatar",{attrs:{size:"100",color:t.iconColor(t.patient.estado_salud)}},[n("v-icon",{attrs:{"x-large":"",color:"white"}},[t._v(" mdi-account ")])],1)],1),n("v-col",{attrs:{cols:"12",sm:"10",md:"10"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"12"}},[n("v-row",{attrs:{"no-gutters":""}},[n("div",{staticClass:"text-h5"},[t._v(" "+t._s(t.patient.nombre)+" "+t._s(t.patient.apellidos)+" ")]),n("v-spacer"),n("v-btn",{attrs:{icon:""},on:{click:t.sendClose}},[n("v-icon",[t._v("mdi-close")])],1)],1)],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-card-account-details ")]),t._v(" CI: ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},[t._v(" "+t._s(t.patient.ci)+" ")]),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-timer-sand-full ")]),t._v(" Edad: ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},[t._v(" "+t._s(t.patient.edad)+" años ")]),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-gender-male-female ")]),t._v(" Sexo: ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},["M"==t.patient.sexo?n("span",{domProps:{textContent:t._s("MASCULINO")}}):"F"==t.patient.sexo?n("span",{domProps:{textContent:t._s("FEMENINO")}}):t._e()]),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-map-marker ")]),t._v(" Dirección: ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},[t._v(" "+t._s(t.patient.direccion)+" => "+t._s(t.municipality)+" / "+t._s(t.province)+" ")]),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-hospital-building ")]),t._v(" A.S.: ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},[t._v(" "+t._s(t.healthArea)+" ")]),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-domain ")]),t._v(" C.M.F. ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},[t._v(" "+t._s(t.patient.cmf)+" ")]),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-directions ")]),t._v(" Remite: ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},[t._v(" "+t._s(t.patient.remite_caso)+" ")]),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-list-status ")]),t._v(" Estado: ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},[t._v(" "+t._s(t.estadoSistema)+" ")]),n("v-col",{attrs:{cols:"12",sm:"5",md:"2"}},[n("v-icon",{attrs:{sty:""}},[t._v(" mdi-test-tube ")]),t._v("Antígeno: ")],1),n("v-col",{attrs:{cols:"12",sm:"5",md:"10"}},[2==t.patient.test_antigeno?n("span",{domProps:{textContent:t._s("NEGATIVO")}}):3==t.patient.test_antigeno?n("span",{domProps:{textContent:t._s("NO REALIZADO")}}):1==t.patient.test_antigeno?n("span",{domProps:{textContent:t._s("POSITIVO")}}):n("span",{domProps:{textContent:t._s("no realizado")}})]),n("v-col",{attrs:{cols:"12"}},[n("v-card",{staticStyle:{"margin-top":"4px"}},[n("v-card-subtitle",[n("b",[t._v("Sintomatología")])]),t.asymptomatic?n("v-card-text",[n("span",[t._v("Asintomático")])]):n("v-card-text",[t.patient.fecha_sintomas?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.fecha_sintomas))]):t._e(),t.patient.fiebre?n("span",{staticStyle:{margin:"4px"}},[t._v("Fiebre >38°C")]):t._e(),t.patient.rinorrea?n("span",{staticStyle:{margin:"4px"}},[t._v("Rinorrea")]):t._e(),t.patient.congestion_nasal?n("span",{staticStyle:{margin:"4px"}},[t._v("Congestión Nasal")]):t._e(),t.patient.tos?n("span",{staticStyle:{margin:"4px"}},[t._v("Tos")]):t._e(),t.patient.expectoracion?n("span",{staticStyle:{margin:"4px"}},[t._v("Expectoración")]):t._e(),t.patient.dificultad_respiratoria?n("span",{staticStyle:{margin:"4px"}},[t._v("Dificultad Respiratoria")]):t._e(),t.patient.cefalea?n("span",{staticStyle:{margin:"4px"}},[t._v("Cefalea")]):t._e(),t.patient.dolor_garganta?n("span",{staticStyle:{margin:"4px"}},[t._v("Dolor de Garganta")]):t._e(),t.patient.otros_sint?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.patient.otros_sint))]):t._e()])],1)],1),n("v-col",{attrs:{cols:"12"}},[n("v-card",{staticStyle:{"margin-top":"4px"}},[n("v-card-subtitle",[n("b",[t._v("APP")])]),t.noApp?n("v-card-text",[n("span",[t._v("No Refiere")])]):n("v-card-text",[t.patient.hipertension?n("span",{staticStyle:{margin:"4px"}},[t._v("HTA")]):t._e(),t.patient.diabetes?n("span",{staticStyle:{margin:"4px"}},[t._v("Diabetes")]):t._e(),t.patient.asma?n("span",{staticStyle:{margin:"4px"}},[t._v("Asma")]):t._e(),t.patient.obesidad?n("span",{staticStyle:{margin:"4px"}},[t._v("Obesidad")]):t._e(),t.patient.insuficiencia_renal?n("span",{staticStyle:{margin:"4px"}},[t._v("Insuficiencia Renal")]):t._e(),t.patient.oncologia?n("span",{staticStyle:{margin:"4px"}},[t._v("Oncología")]):t._e(),""===!t.patient.otros_apps?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.patient.otros_apps))]):t._e()])],1)],1),t.arrived?n("v-col",{attrs:{cols:"12"}},[n("v-card",{staticStyle:{"margin-top":"4px"}},[n("v-card-subtitle",[n("b",[t._v("Arribado")])]),n("v-card-text",[t.patient.pais_procedencia?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.patient.pais_procedencia))]):t._e(),t.patient.lugar_estancia?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.patient.lugar_estancia))]):t._e(),t.patient.fecha_arribo?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.patient.fecha_arribo))]):t._e()])],1)],1):t._e(),t.contact?n("v-col",{attrs:{cols:"12"}},[n("v-card",{staticStyle:{"margin-top":"4px"}},[n("v-card-subtitle",[n("b",[t._v("Contacto")])]),n("v-card-text",[t.patient.fecha_contacto?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.patient.fecha_contacto))]):t._e(),t.patient.lugar_contacto?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.patient.lugar_contacto))]):t._e(),t.patient.tipo_contacto?n("span",{staticStyle:{margin:"4px"}},[t._v(t._s(t.patient.tipo_contacto))]):t._e()])],1)],1):t._e(),n("v-col",{attrs:{cols:"12"}},[n("v-card",{staticStyle:{"margin-top":"4px"}},[n("v-card-subtitle",[n("b",[t._v("Otros Datos")])]),n("v-card-text",[t.patient.trabajador_salud?n("span",{staticStyle:{margin:"4px"}},[n("v-icon",[t._v("mdi-bottle-tonic-plus")]),t._v(" Trabajador de Salud")],1):t._e(),t.patient.ninho?n("span",{staticStyle:{margin:"4px"}},[n("v-icon",[t._v("mdi-baby-face")]),t._v(" Niño")],1):t._e(),t.patient.embarazada?n("span",{staticStyle:{margin:"4px"}},[n("v-icon",[t._v("mdi-human-pregnant")]),t._v(" Embarazada")],1):t._e(),t.patient.vacunado?n("span",{staticStyle:{margin:"4px"}},[n("v-icon",[t._v("mdi-needle")]),t._v(" Vacunado")],1):t._e(),n("span",{staticStyle:{margin:"4px"}},[t._v("ESTADO DE SALUD: "),n("b",[t._v(t._s(t.estadoSalud))])])])],1)],1)],1)],1)],1),n("v-card-actions",[n("v-spacer"),t.editable?n("v-btn",{attrs:{color:"orange darken-1",text:""},on:{click:t.sendEdit}},[n("v-icon",[t._v("mdi-pencil")]),t._v(" Editar ")],1):t._e(),t.verified||"MCPREV"!==t.role?t._e():n("v-spacer"),t.verified||"MCPREV"!==t.role?t._e():n("v-btn",{attrs:{color:"blue darken-1",text:""},on:{click:t.dataVerified}},[n("v-icon",[t._v("mdi-account-check")]),t._v(" Verificar ")],1),n("v-spacer"),n("v-btn",{attrs:{color:"green darken-1",dark:""},on:{click:t.sendClose}},[t._v(" OK ")]),n("v-spacer")],1)],1)},r=[],i=n("1da1"),s=n("5530"),c=(n("96cf"),n("159b"),n("d3b7"),n("25f0"),n("db53")),o=n("2f62"),u=n("e11b"),p=n("39f4"),l={name:"PatientFile",props:{},data:function(){return{loadingData:!0,editable:!0,formTitle:"Datos del Paciente",healthAreas:[],healthArea:null,municipality:null}},computed:Object(s["a"])(Object(s["a"])({},Object(o["b"])(["patient","healthStatuses"])),{},{role:function(){return localStorage.getItem("role")},verified:function(){return this.patient.estado_sistema>2},estadoSalud:function(){var t=this,e=this.healthStatuses,n=null;return e.forEach((function(e){e.id===t.patient.estado_salud&&(n=e.nombre)})),n},estadoSistema:function(){var t=this,e=this.systemStatuses,n=null;return e.forEach((function(e){e.id===t.patient.estado_sistema&&(n=e.nombre)})),n},province:function(){var t=this,e=this.provinces,n=null;return e.forEach((function(e){e.id===t.patient.provincia&&(n=e.nombre)})),n},noApp:function(){return this.patient.hipertension||this.patient.diabetes||this.patient.asma||this.patient.obesidad||this.patient.insuficiencia_renal||this.patient.oncologia||""!==this.patient.otros_apps},asymptomatic:function(){return!(this.patient.fecha_sintomas||this.patient.fiebre||this.patient.rinorrea||this.patient.congestion_nasal||this.patient.tos||this.patient.expectoracion||this.patient.dificultad_respiratoria||this.patient.cefalea||this.patient.dolor_garganta||this.patient.otros_sint)},arrived:function(){return this.patient.pais_procedencia||this.patient.lugar_estancia||this.patient.fecha_arribo},contact:function(){return this.patient.fecha_contacto||this.patient.lugar_contacto||this.patient.tipo_contacto},systemStatuses:function(){return this.$store.getters.systemStatuses},provinces:function(){return this.$store.getters.provinces},municipalities:function(){return this.$store.getters.municipalities}}),created:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n,a,r,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.loadingData=!0,0!==t.$store.getters.categories.length){e.next=10;break}return e.prev=2,e.next=5,Object(c["c"])();case 5:e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](2),console.log(e.t0.toString()+"CAT");case 10:if(0!==t.$store.getters.provinces.length){e.next=19;break}return e.prev=11,e.next=14,Object(c["h"])();case 14:e.next=19;break;case 16:e.prev=16,e.t1=e["catch"](11),console.log(e.t1.toString()+"PROV");case 19:if(""===t.patient.provincia){e.next=28;break}return e.prev=20,e.next=23,Object(c["g"])(t.patient.provincia);case 23:e.next=28;break;case 25:e.prev=25,e.t2=e["catch"](20),console.log(e.t2.toString()+"MUN");case 28:if(""===t.patient.municipio||0!==t.$store.getters.healthAreas.length){e.next=37;break}return e.prev=29,e.next=32,Object(c["e"])(t.patient.municipio);case 32:e.next=37;break;case 34:e.prev=34,e.t3=e["catch"](29),console.log(e.t3.toString()+"HEATL AREA");case 37:if(""===t.$store.getters.healthStatuses){e.next=46;break}return e.prev=38,e.next=41,Object(c["f"])();case 41:e.next=46;break;case 43:e.prev=43,e.t4=e["catch"](38),console.log(e.t4.toString()+"HEALTH STATUS");case 46:if(0!==t.$store.getters.clasifications.length){e.next=55;break}return e.prev=47,e.next=50,Object(c["d"])();case 50:e.next=55;break;case 52:e.prev=52,e.t5=e["catch"](47),console.log(e.t5.toString()+"CLASIFICATIONS");case 55:if(0!==t.$store.getters.antigens.length){e.next=65;break}return e.prev=56,e.next=59,Object(c["a"])();case 59:e.next=64;break;case 61:e.prev=61,e.t6=e["catch"](56),console.log(e.t6.toString()+"ANTIGENS");case 64:t.loadingData=!1;case 65:return e.next=67,Object(c["e"])(t.patient.municipio);case 67:return n=e.sent,t.healthAreas=n.data,e.next=71,Object(c["g"])(t.patient.provincia);case 71:if(a=t.municipalities,r=null,a.forEach((function(e){e.id===t.patient.municipio&&(r=e.nombre)})),t.municipality=r,i=null,s=t.healthAreas,s.forEach((function(e){e.id===t.patient.area_salud&&(i=e.nombre)})),t.healthArea=i,0!==t.healthStatuses.length){e.next=89;break}return e.prev=80,e.next=83,Object(c["f"])();case 83:console.log(t.healthStatuses),e.next=89;break;case 86:e.prev=86,e.t7=e["catch"](80),Object(u["a"])(e.t7);case 89:case"end":return e.stop()}}),e,null,[[2,7],[11,16],[20,25],[29,34],[38,43],[47,52],[56,61],[80,86]])})))()},methods:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["setEditFromFile","setPIndex"])),{},{iconColor:function(t){switch(t){case 1:return"green";case 2:return"yellow";case 3:return"warning";case 4:return"red";case 5:return"grey";default:return"warning"}},getHealthAreasData:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["e"])(t.patient.municipio);case 3:n=e.sent,t.healthAreas=n.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),Object(u["a"])(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},sendClose:function(){this.$emit("close-click")},sendEdit:function(){this.setEditFromFile(!0),this.setPIndex(1),this.$emit("edit-click")},dataVerified:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(p["a"])(t.patient);case 3:t.$toast.success("Se ha verificado los datos correctamente",{position:"top-center",timeout:5e3,closeOnClick:!0,pauseOnFocusLoss:!1,pauseOnHover:!1,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:"button",icon:!0,rtl:!1}),t.patient.estado_sistema=3,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),Object(u["a"])(e.t0);case 10:t.$emit("ok-click");case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))()}})},d=l,m=n("2877"),v=n("6544"),b=n.n(v),g=n("8212"),h=n("8336"),_=n("b0af"),f=n("99d9"),x=n("62ad"),O=n("132d"),y=n("0fd9"),S=n("2fa4"),w=Object(m["a"])(d,a,r,!1,null,null,null);e["a"]=w.exports;b()(w,{VAvatar:g["a"],VBtn:h["a"],VCard:_["a"],VCardActions:f["a"],VCardSubtitle:f["b"],VCardText:f["c"],VCol:x["a"],VIcon:O["a"],VRow:y["a"],VSpacer:S["a"]})},"99d9":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return o}));var a=n("b0af"),r=n("80d2"),i=Object(r["i"])("v-card__actions"),s=Object(r["i"])("v-card__subtitle"),c=Object(r["i"])("v-card__text"),o=Object(r["i"])("v-card__title");a["a"]},db53:function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"i",(function(){return m})),n.d(e,"f",(function(){return b})),n.d(e,"h",(function(){return h})),n.d(e,"g",(function(){return f})),n.d(e,"d",(function(){return O})),n.d(e,"e",(function(){return S})),n.d(e,"b",(function(){return k}));var a=n("1da1"),r=(n("99af"),n("96cf"),n("bc3a")),i=n.n(r),s=n("4360"),c=n("c9d9"),o=n("4e40");function u(){return p.apply(this,arguments)}function p(){return p=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e="".concat(c["d"],"nomenclador/categoria"),t.next=3,i.a.get(e,Object(o["b"])());case 3:return n=t.sent,a=n.data,s["a"].commit("setCategories",a),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)}))),p.apply(this,arguments)}function l(){return d.apply(this,arguments)}function d(){return d=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e="".concat(c["d"],"nomenclador/antigeno"),t.next=3,i.a.get(e,Object(o["b"])());case 3:return n=t.sent,a=n.data,s["a"].commit("setAntigens",a),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)}))),d.apply(this,arguments)}function m(){return v.apply(this,arguments)}function v(){return v=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e="".concat(c["d"],"nomenclador/sistema"),t.next=3,i.a.get(e,Object(o["b"])());case 3:return n=t.sent,s["a"].commit("setSystemStatuses",n.data),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)}))),v.apply(this,arguments)}function b(){return g.apply(this,arguments)}function g(){return g=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e="".concat(c["d"],"nomenclador/salud"),t.next=3,i.a.get(e,Object(o["b"])());case 3:return n=t.sent,a=n.data,s["a"].commit("setHealthStatuses",a),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)}))),g.apply(this,arguments)}function h(){return _.apply(this,arguments)}function _(){return _=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e="".concat(c["d"],"nomenclador/provincia"),t.next=3,i.a.get(e,Object(o["b"])());case 3:return n=t.sent,a=n.data,s["a"].commit("setProvinces",a),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)}))),_.apply(this,arguments)}function f(){return x.apply(this,arguments)}function x(){return x=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a,r,u=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:6,n="".concat(c["d"],"nomenclador/municipio/").concat(e),t.next=4,i.a.get(n,Object(o["b"])());case 4:return a=t.sent,r=a.data,s["a"].commit("setMunicipalities",r),t.abrupt("return",a);case 8:case"end":return t.stop()}}),t)}))),x.apply(this,arguments)}function O(){return y.apply(this,arguments)}function y(){return y=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e="".concat(c["d"],"nomenclador/riesgo-categoria"),t.next=3,i.a.get(e,Object(o["b"])());case 3:return n=t.sent,a=n.data,s["a"].commit("setClasifications",a),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)}))),y.apply(this,arguments)}function S(){return w.apply(this,arguments)}function w(){return w=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a,r,u=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:1,n="".concat(c["d"],"nomenclador/salud/").concat(e),t.next=4,i.a.get(n,Object(o["b"])());case 4:return a=t.sent,r=a.data,s["a"].commit("setHealthAreas",r),t.abrupt("return",a);case 8:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}function k(){return j.apply(this,arguments)}function j(){return j=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e="".concat(c["d"],"nomenclador/organismo"),t.next=3,i.a.get(e,Object(o["b"])());case 3:return n=t.sent,a=n.data,s["a"].commit("setAssociation",a),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)}))),j.apply(this,arguments)}},e11b:function(t,e,n){"use strict";n("d3b7"),n("25f0");var a=n("2b0e");e["a"]=function(t){var e=0;if("Error: Network Error"===t.toString()&&this.$toast.error("Error de Red, revise su conexión",{position:"bottom-center",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!1,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:"button",icon:!0,rtl:!1}),void 0!==t.response)switch(t.response.status){case 500:a["a"].$toast.error("Error interno del servidor, inténtelo más tarde",{position:"bottom-center",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!1,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:"button",icon:!0,rtl:!1});break;case 401:a["a"].$toast.error("No autorizado",{position:"bottom-center",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!1,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:"button",icon:!0,rtl:!1}),e=-1;break;default:a["a"].$toast.error("No autorizado",{position:"bottom-center",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!1,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:"button",icon:!0,rtl:!1}),e=-1;break}-1===e&&(localStorage.setItem("tkn",null),localStorage.setItem("userData",null),localStorage.setItem("role",null),a["a"].$router.push({name:"Login"}))}}}]);
//# sourceMappingURL=chunk-25ddca3c.46908e4b.js.map