(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[7],{

/***/ "./src/composables/usePatient.js":
/*!***************************************!*\
  !*** ./src/composables/usePatient.js ***!
  \***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ \"./node_modules/regenerator-runtime/runtime.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/core-js/modules/es.number.constructor.js\");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ \"./node_modules/core-js/modules/es.string.split.js\");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _vue_composition_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @vue/composition-api */ \"./node_modules/@vue/composition-api/dist/vue-composition-api.mjs\");\n/* harmony import */ var vue_toastification_composition__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue-toastification/composition */ \"./node_modules/vue-toastification/composition/index.js\");\n/* harmony import */ var vue_toastification_composition__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue_toastification_composition__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @core/components/toastification/ToastificationContent.vue */ \"./src/@core/components/toastification/ToastificationContent.vue\");\n/* harmony import */ var _services_PatientService__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/services/PatientService */ \"./src/services/PatientService.js\");\n/* harmony import */ var bootstrap_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! bootstrap-vue */ \"./node_modules/bootstrap-vue/esm/index.js\");\n\n\n\n\n\n\n // Notification\n\n\n\n\n\n\nvar usePatient = function usePatient() {\n  var perPage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;\n  // Use toast\n  var toast = Object(vue_toastification_composition__WEBPACK_IMPORTED_MODULE_7__[\"useToast\"])();\n  var loading = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])(false);\n  var perPageOptions = [10, 25, 50];\n  var statusFilter = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])(null);\n  var modalCuestionario = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])(false);\n  var personalData = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    id: \"\",\n    folio: \"\",\n    nombre: \"\",\n    apellido1: \"\",\n    apellido2: \"\",\n    cat_sexo_id: \"\",\n    curp: \"\",\n    fecha_nacimiento: \"01-01-1990\",\n    edad: \"\",\n    nacionalidad: \"\",\n    cat_pais_nacimiento_id: \"\",\n    cat_grupo_etnico_id: \"\",\n    cat_religion_id: \"\",\n    tipo_edad: \"\",\n    foto: \"\",\n    file: null\n  });\n  var contactData = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    id: \"\",\n    //domicilio\n    calle_principal: \"\",\n    numero_exterior: \"\",\n    numero_interior: \"\",\n    numero_interior_depto: \"\",\n    manzana: \"\",\n    calle_1: \"\",\n    calle_2: \"\",\n    codigo_postal: \"\",\n    cat_entidad_federativa_id: \"\",\n    cat_municipio_id: \"\",\n    cat_colonia_id: \"\" //contacto\n    //telefono_casa: \"\",\n    //telefono_oficina: \"\",\n    //telefono_celular: \"\",\n    //correo: \"\",\n\n  });\n  var contactDataFactura = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    id: \"\",\n    //domicilio\n    calle_principal: \"\",\n    numero_exterior: \"\",\n    numero_interior: \"\",\n    numero_interior_depto: \"\",\n    manzana: \"\",\n    calle_1: \"\",\n    calle_2: \"\",\n    codigo_postal: \"\",\n    cat_entidad_federativa_id: \"\",\n    cat_municipio_id: \"\",\n    cat_colonia_id: \"\",\n    indicaciones_adicionales: \"\",\n    telefono_contacto: \"\",\n    //contacto\n    razon_social: \"\",\n    rfc: \"\",\n    copiar_direccion: \"\" //correo: \"\",\n\n  });\n  var contactDataTelefono = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    id: \"\",\n    telefono_casa: \"\",\n    telefono_oficina: \"\",\n    telefono_celular: \"\",\n    correo: \"\"\n  });\n  var dataPassword = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    id: '',\n    password: '',\n    namePatient: ''\n  });\n  var statesPassword = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    password: {\n      status: null,\n      mensaje: ''\n    }\n  });\n  var isSavingPassword = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])(false);\n  var patients = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])([]);\n  var numMe = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])([]);\n  var mostrar = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])(false);\n  var listQuery = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    total: 0,\n    per_page: perPage,\n    page: 1,\n    totalPages: 1,\n    query: '',\n    statusFilter: '',\n    deviceTypeFilter: '',\n    sort: 'asc',\n    sortBy: 'id',\n    from: 0,\n    to: 0\n  });\n  Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"watch\"])(function () {\n    return listQuery.per_page;\n  }, function (currentValue, oldValue) {\n    return fetchList();\n  });\n  Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"watch\"])(function () {\n    return listQuery.page;\n  }, function (currentValue, oldValue) {\n    return fetchList();\n  });\n  Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"watch\"])(function () {\n    return listQuery.query;\n  }, function (currentValue, oldValue) {\n    return fetchList();\n  });\n  Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"watch\"])(function () {\n    return listQuery.deviceTypeFilter;\n  }, function (n, old) {\n    return fetchList();\n  });\n  Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"watch\"])(function () {\n    return listQuery.statusFilter;\n  }, function (n, old) {\n    return fetchList();\n  });\n\n  var fetchList = function fetchList() {\n    loading.value = true;\n    _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].fetchList(listQuery).then(function (response) {\n      var _response$data = response.data,\n          data = _response$data.data,\n          total = _response$data.total,\n          from = _response$data.from,\n          to = _response$data.to,\n          last_page = _response$data.last_page,\n          per_page = _response$data.per_page;\n      listQuery.total = Number(total);\n      listQuery.from = Number(from);\n      listQuery.to = Number(to);\n      listQuery.totalPages = Number(last_page);\n      listQuery.per_page = Number(per_page);\n      patients.value = data;\n      loading.value = false; //callback(response.data)\n    }).catch(function (e) {\n      loading.value = false;\n      toast({\n        component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n        props: {\n          title: \"Error al cargar Pacientes\",\n          icon: 'AlertTriangleIcon',\n          variant: 'danger'\n        }\n      });\n    });\n  };\n\n  var saveNutriologPatient = /*#__PURE__*/function () {\n    var _ref = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee(data) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee$(_context) {\n        while (1) {\n          switch (_context.prev = _context.next) {\n            case 0:\n              _context.prev = 0;\n              _context.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerNutriologPatient(data);\n\n            case 3:\n              response = _context.sent;\n              return _context.abrupt(\"return\", response.data);\n\n            case 7:\n              _context.prev = 7;\n              _context.t0 = _context[\"catch\"](0);\n\n              if (_context.t0.response.status == 422) {\n                toast({\n                  component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                  props: {\n                    title: \"Error el correo del paciente ya esta registrado intenta con otro\",\n                    icon: 'AlertTriangleIcon',\n                    variant: 'danger'\n                  }\n                });\n              } else {\n                toast({\n                  component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                  props: {\n                    title: \"Error al registrar paciente\",\n                    icon: 'AlertTriangleIcon',\n                    variant: 'danger'\n                  }\n                });\n              }\n\n            case 10:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee, null, [[0, 7]]);\n    }));\n\n    return function saveNutriologPatient(_x) {\n      return _ref.apply(this, arguments);\n    };\n  }();\n\n  var saveAdmin = /*#__PURE__*/function () {\n    var _ref2 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(data) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee2$(_context2) {\n        while (1) {\n          switch (_context2.prev = _context2.next) {\n            case 0:\n              _context2.prev = 0;\n              _context2.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].saveAdminS(data);\n\n            case 3:\n              response = _context2.sent;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Administrador creado correctamente\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              return _context2.abrupt(\"return\", response.data);\n\n            case 8:\n              _context2.prev = 8;\n              _context2.t0 = _context2[\"catch\"](0);\n\n              if (_context2.t0.response.status == 422) {\n                toast({\n                  component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                  props: {\n                    title: \"Error el correo del paciente ya está registrado, intenta con otro\",\n                    icon: 'AlertTriangleIcon',\n                    variant: 'danger'\n                  }\n                });\n              } else {\n                toast({\n                  component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                  props: {\n                    title: \"Error al registrar Administrador\",\n                    icon: 'AlertTriangleIcon',\n                    variant: 'danger'\n                  }\n                });\n              }\n\n            case 11:\n            case \"end\":\n              return _context2.stop();\n          }\n        }\n      }, _callee2, null, [[0, 8]]);\n    }));\n\n    return function saveAdmin(_x2) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n\n  var verMensajeNo = /*#__PURE__*/function () {\n    var _ref3 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(verM) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee3$(_context3) {\n        while (1) {\n          switch (_context3.prev = _context3.next) {\n            case 0:\n              _context3.prev = 0;\n              _context3.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getMensajesNo();\n\n            case 3:\n              response = _context3.sent;\n              numMe.value = response.data.cuerpo;\n\n              if (response.data.cuerpo === '0') {\n                mostrar.value = false;\n              } else {\n                mostrar.value = true;\n\n                if (verM != 0) {} else {\n                  toast({\n                    component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                    props: {\n                      title: \"tienes \" + numMe.value + \" mensajes sin leer\",\n                      icon: 'CheckCircleIcon',\n                      variant: 'success'\n                    }\n                  });\n                }\n              }\n\n              return _context3.abrupt(\"return\", response.data);\n\n            case 9:\n              _context3.prev = 9;\n              _context3.t0 = _context3[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al obtener mensajes no leidos\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 12:\n            case \"end\":\n              return _context3.stop();\n          }\n        }\n      }, _callee3, null, [[0, 9]]);\n    }));\n\n    return function verMensajeNo(_x3) {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n\n  var verMensajeNoFromUser = /*#__PURE__*/function () {\n    var _ref4 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(type, user) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee4$(_context4) {\n        while (1) {\n          switch (_context4.prev = _context4.next) {\n            case 0:\n              _context4.prev = 0;\n              _context4.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getMensajesNoFromUser(type, user);\n\n            case 3:\n              response = _context4.sent;\n              return _context4.abrupt(\"return\", response.data.cuerpo);\n\n            case 7:\n              _context4.prev = 7;\n              _context4.t0 = _context4[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al obtener mensajes no leidos\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 10:\n            case \"end\":\n              return _context4.stop();\n          }\n        }\n      }, _callee4, null, [[0, 7]]);\n    }));\n\n    return function verMensajeNoFromUser(_x4, _x5) {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n\n  var leermensaje = /*#__PURE__*/function () {\n    var _ref5 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {\n      var response;\n      return regeneratorRuntime.wrap(function _callee5$(_context5) {\n        while (1) {\n          switch (_context5.prev = _context5.next) {\n            case 0:\n              _context5.prev = 0;\n              _context5.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getMensajesNo();\n\n            case 3:\n              response = _context5.sent;\n              return _context5.abrupt(\"return\", response.data);\n\n            case 7:\n              _context5.prev = 7;\n              _context5.t0 = _context5[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al obtener mensajes no leidos\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 10:\n            case \"end\":\n              return _context5.stop();\n          }\n        }\n      }, _callee5, null, [[0, 7]]);\n    }));\n\n    return function leermensaje() {\n      return _ref5.apply(this, arguments);\n    };\n  }();\n\n  var getPersonalData = /*#__PURE__*/function () {\n    var _ref6 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(id) {\n      var response, cuerpo, fechaNac, arrayFechaNac;\n      return regeneratorRuntime.wrap(function _callee6$(_context6) {\n        while (1) {\n          switch (_context6.prev = _context6.next) {\n            case 0:\n              _context6.prev = 0;\n              _context6.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getPersonalData(id);\n\n            case 3:\n              response = _context6.sent;\n              cuerpo = response.data.cuerpo;\n              fechaNac = \"\";\n\n              if (cuerpo.fecha_nacimiento != '' && cuerpo.fecha_nacimiento != null) {\n                arrayFechaNac = cuerpo.fecha_nacimiento.split('-');\n                fechaNac = \"\".concat(arrayFechaNac[2], \"-\").concat(arrayFechaNac[1], \"-\").concat(arrayFechaNac[0]);\n              }\n\n              personalData.id = cuerpo.id;\n              personalData.folio = cuerpo.folio;\n              personalData.nombre = cuerpo.nombre;\n              personalData.apellido1 = cuerpo.apellido1;\n              personalData.apellido2 = cuerpo.apellido2;\n              personalData.cat_sexo_id = cuerpo.cat_sexo_id;\n              personalData.curp = cuerpo.curp;\n              personalData.fecha_nacimiento = fechaNac;\n              personalData.edad = cuerpo.edad;\n              personalData.tipo_edad = cuerpo.tipo_edad;\n              personalData.nacionalidad = cuerpo.nacionalidad;\n              personalData.cat_pais_nacimiento_id = cuerpo.cat_pais_nacimiento_id;\n              personalData.cat_grupo_etnico_id = cuerpo.cat_grupo_etnico_id;\n              personalData.cat_religion_id = cuerpo.cat_religion_id;\n              personalData.foto = cuerpo.foto;\n              modalCuestionario.value = cuerpo.modal_inicial == 1;\n              localStorage.setItem('fechaNa', fechaNac); //personalData.foto                   = \"https://tania-backend.smart-develop.mx/storage/perfil/foto/1-121QWAQWSWQAWSERTY/1-Paciente.jpg\"; \n\n              _context6.next = 30;\n              break;\n\n            case 26:\n              _context6.prev = 26;\n              _context6.t0 = _context6[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al obtener datos personales del paciente\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              return _context6.abrupt(\"return\", 'Mal');\n\n            case 30:\n            case \"end\":\n              return _context6.stop();\n          }\n        }\n      }, _callee6, null, [[0, 26]]);\n    }));\n\n    return function getPersonalData(_x6) {\n      return _ref6.apply(this, arguments);\n    };\n  }();\n\n  var getDireccionFactura = /*#__PURE__*/function () {\n    var _ref7 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(id) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee7$(_context7) {\n        while (1) {\n          switch (_context7.prev = _context7.next) {\n            case 0:\n              _context7.prev = 0;\n              _context7.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getDireccionFactura(id);\n\n            case 3:\n              response = _context7.sent;\n\n              if (response.data.cuerpo == null) {} else {\n                contactDataFactura.id = response.data.cuerpo.id; //docmicilio\n\n                contactDataFactura.calle_principal = response.data.cuerpo.calle_principal;\n                contactDataFactura.numero_exterior = response.data.cuerpo.numero_exterior;\n                contactDataFactura.numero_interior = response.data.cuerpo.numero_interior;\n                contactDataFactura.numero_interior_depto = response.data.cuerpo.numero_interior_depto;\n                contactDataFactura.manzana = response.data.cuerpo.manzana;\n                contactDataFactura.calle_1 = response.data.cuerpo.calle_1;\n                contactDataFactura.calle_2 = response.data.cuerpo.calle_2;\n                contactDataFactura.codigo_postal = response.data.cuerpo.codigo_postal;\n                contactDataFactura.cat_entidad_federativa_id = response.data.cuerpo.cat_entidad_federativa_id;\n                contactDataFactura.cat_municipio_id = response.data.cuerpo.cat_municipio_id;\n                contactDataFactura.cat_colonia_id = response.data.cuerpo.cat_colonia_id;\n                contactDataFactura.indicaciones_adicionales = response.data.cuerpo.indicaciones_adicionales; //contacto\n\n                contactDataFactura.telefono_contacto = response.data.cuerpo.telefono_contacto;\n                contactDataFactura.razon_social = response.data.cuerpo.razon_social;\n                contactDataFactura.rfc = response.data.cuerpo.rfc;\n                contactDataFactura.copiar_direccion = response.data.cuerpo.copiar_direccion;\n              }\n\n              _context7.next = 10;\n              break;\n\n            case 7:\n              _context7.prev = 7;\n              _context7.t0 = _context7[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al obtener datos de direccion de facturacion\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 10:\n            case \"end\":\n              return _context7.stop();\n          }\n        }\n      }, _callee7, null, [[0, 7]]);\n    }));\n\n    return function getDireccionFactura(_x7) {\n      return _ref7.apply(this, arguments);\n    };\n  }();\n\n  var postDireccionFactura = /*#__PURE__*/function () {\n    var _ref8 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(form) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee8$(_context8) {\n        while (1) {\n          switch (_context8.prev = _context8.next) {\n            case 0:\n              _context8.prev = 0;\n              _context8.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].postDireccionFactura(form);\n\n            case 3:\n              response = _context8.sent;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Datos guardados correctamente!!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              return _context8.abrupt(\"return\", response.data);\n\n            case 8:\n              _context8.prev = 8;\n              _context8.t0 = _context8[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al guardar datos de dirección de facturación\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 11:\n            case \"end\":\n              return _context8.stop();\n          }\n        }\n      }, _callee8, null, [[0, 8]]);\n    }));\n\n    return function postDireccionFactura(_x8) {\n      return _ref8.apply(this, arguments);\n    };\n  }();\n\n  var putDireccionFactura = /*#__PURE__*/function () {\n    var _ref9 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(id, form) {\n      return regeneratorRuntime.wrap(function _callee9$(_context9) {\n        while (1) {\n          switch (_context9.prev = _context9.next) {\n            case 0:\n              _context9.prev = 0;\n              _context9.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].putDireccionFactura(id, form);\n\n            case 3:\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Datos actualizados correctamente!!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              _context9.next = 10;\n              break;\n\n            case 6:\n              _context9.prev = 6;\n              _context9.t0 = _context9[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al actualizar los datos\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context9.t0;\n\n            case 10:\n            case \"end\":\n              return _context9.stop();\n          }\n        }\n      }, _callee9, null, [[0, 6]]);\n    }));\n\n    return function putDireccionFactura(_x9, _x10) {\n      return _ref9.apply(this, arguments);\n    };\n  }();\n\n  var gurdaContacto = /*#__PURE__*/function () {\n    var _ref10 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(personalData) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee10$(_context10) {\n        while (1) {\n          switch (_context10.prev = _context10.next) {\n            case 0:\n              _context10.prev = 0;\n              _context10.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].actualizarDomicilio(personalData.id, personalData);\n\n            case 3:\n              response = _context10.sent;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Datos de contacto actualizados correctamente!!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              _context10.next = 10;\n              break;\n\n            case 7:\n              _context10.prev = 7;\n              _context10.t0 = _context10[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al obtener datos de contacto del paciente\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 10:\n            case \"end\":\n              return _context10.stop();\n          }\n        }\n      }, _callee10, null, [[0, 7]]);\n    }));\n\n    return function gurdaContacto(_x11) {\n      return _ref10.apply(this, arguments);\n    };\n  }();\n\n  var gurdaTelefonos = /*#__PURE__*/function () {\n    var _ref11 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(personalData) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee11$(_context11) {\n        while (1) {\n          switch (_context11.prev = _context11.next) {\n            case 0:\n              _context11.prev = 0;\n              _context11.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].actualizarTelefonos(personalData.id, personalData);\n\n            case 3:\n              response = _context11.sent;\n              _context11.next = 9;\n              break;\n\n            case 6:\n              _context11.prev = 6;\n              _context11.t0 = _context11[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al obtener datos personales del paciente\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 9:\n            case \"end\":\n              return _context11.stop();\n          }\n        }\n      }, _callee11, null, [[0, 6]]);\n    }));\n\n    return function gurdaTelefonos(_x12) {\n      return _ref11.apply(this, arguments);\n    };\n  }();\n\n  var getContact = /*#__PURE__*/function () {\n    var _ref12 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(id) {\n      var response, _response$data$cuerpo, contacto, domicilio;\n\n      return regeneratorRuntime.wrap(function _callee12$(_context12) {\n        while (1) {\n          switch (_context12.prev = _context12.next) {\n            case 0:\n              _context12.prev = 0;\n              _context12.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getContact(id);\n\n            case 3:\n              response = _context12.sent;\n              _response$data$cuerpo = response.data.cuerpo, contacto = _response$data$cuerpo.contacto, domicilio = _response$data$cuerpo.domicilio;\n              contactData.id = contacto.id; //docmicilio\n\n              contactData.calle_principal = domicilio.calle_principal;\n              contactData.numero_exterior = domicilio.numero_exterior;\n              contactData.numero_interior = domicilio.numero_interior;\n              contactData.numero_interior_depto = domicilio.numero_interior_depto;\n              contactData.manzana = domicilio.manzana;\n              contactData.calle_1 = domicilio.calle_1;\n              contactData.calle_2 = domicilio.calle_2;\n              contactData.codigo_postal = domicilio.codigo_postal;\n              contactData.cat_entidad_federativa_id = domicilio.cat_entidad_federativa_id;\n              contactData.cat_municipio_id = domicilio.cat_municipio_id;\n              contactData.cat_colonia_id = domicilio.cat_colonia_id; //contacto\n\n              contactData.telefono_casa = contacto.telefono_casa;\n              contactData.telefono_oficina = contacto.telefono_oficina;\n              contactData.telefono_celular = contacto.telefono_celular;\n              contactData.correo = contacto.correo;\n              contactDataTelefono.telefono_casa = contacto.telefono_casa;\n              contactDataTelefono.telefono_oficina = contacto.telefono_oficina;\n              contactDataTelefono.telefono_celular = contacto.telefono_celular;\n              contactDataTelefono.correo = contacto.correo;\n              _context12.next = 30;\n              break;\n\n            case 27:\n              _context12.prev = 27;\n              _context12.t0 = _context12[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al obtener datos de contacto del paciente telefono\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 30:\n            case \"end\":\n              return _context12.stop();\n          }\n        }\n      }, _callee12, null, [[0, 27]]);\n    }));\n\n    return function getContact(_x13) {\n      return _ref12.apply(this, arguments);\n    };\n  }();\n\n  var updatePhoto = /*#__PURE__*/function () {\n    var _ref13 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(id, personalData) {\n      var form;\n      return regeneratorRuntime.wrap(function _callee13$(_context13) {\n        while (1) {\n          switch (_context13.prev = _context13.next) {\n            case 0:\n              form = new FormData();\n              form.append('foto', personalData.file);\n              _context13.prev = 2;\n              _context13.next = 5;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].updatePhoto(personalData.id, form);\n\n            case 5:\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Foto actualizada Correctamente!!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              _context13.next = 12;\n              break;\n\n            case 8:\n              _context13.prev = 8;\n              _context13.t0 = _context13[\"catch\"](2);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al actualizar Foto del paciente\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context13.t0;\n\n            case 12:\n            case \"end\":\n              return _context13.stop();\n          }\n        }\n      }, _callee13, null, [[2, 8]]);\n    }));\n\n    return function updatePhoto(_x14, _x15) {\n      return _ref13.apply(this, arguments);\n    };\n  }();\n\n  var updatePersonalData = /*#__PURE__*/function () {\n    var _ref14 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(personalData) {\n      return regeneratorRuntime.wrap(function _callee14$(_context14) {\n        while (1) {\n          switch (_context14.prev = _context14.next) {\n            case 0:\n              _context14.prev = 0;\n              _context14.next = 3;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].updatePersonalData(personalData.id, personalData);\n\n            case 3:\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Información personal actualizada correctamente!!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              _context14.next = 10;\n              break;\n\n            case 6:\n              _context14.prev = 6;\n              _context14.t0 = _context14[\"catch\"](0);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al actualizar información personal\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context14.t0;\n\n            case 10:\n            case \"end\":\n              return _context14.stop();\n          }\n        }\n      }, _callee14, null, [[0, 6]]);\n    }));\n\n    return function updatePersonalData(_x16) {\n      return _ref14.apply(this, arguments);\n    };\n  }();\n\n  var changePassword = /*#__PURE__*/function () {\n    var _ref15 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(idPaciente, data) {\n      return regeneratorRuntime.wrap(function _callee15$(_context15) {\n        while (1) {\n          switch (_context15.prev = _context15.next) {\n            case 0:\n              isSavingPassword.value = true;\n              _context15.prev = 1;\n              loading.value = true;\n              _context15.next = 5;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].updatePassword(idPaciente, data);\n\n            case 5:\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Contraseña actualizada correctamente!!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              isSavingPassword.value = false;\n              loading.value = false;\n              _context15.next = 15;\n              break;\n\n            case 10:\n              _context15.prev = 10;\n              _context15.t0 = _context15[\"catch\"](1);\n              isSavingPassword.value = false;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al actualizar contraseña\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context15.t0;\n\n            case 15:\n            case \"end\":\n              return _context15.stop();\n          }\n        }\n      }, _callee15, null, [[1, 10]]);\n    }));\n\n    return function changePassword(_x17, _x18) {\n      return _ref15.apply(this, arguments);\n    };\n  }();\n\n  var resetDataPassword = function resetDataPassword() {\n    dataPassword.id = '';\n    dataPassword.password = '';\n    statesPassword.password.status = null;\n    statesPassword.password.mensaje = '';\n  };\n\n  var resolveStatus = function resolveStatus(status) {\n    return status ? 'success' : 'danger';\n  };\n\n  var changing = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])(false);\n\n  var changeStatus = /*#__PURE__*/function () {\n    var _ref16 = Object(_Users_ruben_Development_nutrifull_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(idPaciente) {\n      return regeneratorRuntime.wrap(function _callee16$(_context16) {\n        while (1) {\n          switch (_context16.prev = _context16.next) {\n            case 0:\n              changing.value = true;\n              _context16.prev = 1;\n              _context16.next = 4;\n              return _services_PatientService__WEBPACK_IMPORTED_MODULE_9__[\"default\"].changeStatus(idPaciente);\n\n            case 4:\n              changing.value = false;\n              _context16.next = 11;\n              break;\n\n            case 7:\n              _context16.prev = 7;\n              _context16.t0 = _context16[\"catch\"](1);\n              changing.value = false;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n                props: {\n                  title: \"Error al Cambiar estatus\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n\n            case 11:\n            case \"end\":\n              return _context16.stop();\n          }\n        }\n      }, _callee16, null, [[1, 7]]);\n    }));\n\n    return function changeStatus(_x19) {\n      return _ref16.apply(this, arguments);\n    };\n  }();\n\n  return {\n    changing: changing,\n    changeStatus: changeStatus,\n    saveAdmin: saveAdmin,\n    mostrar: mostrar,\n    numMe: numMe,\n    verMensajeNo: verMensajeNo,\n    loading: loading,\n    listQuery: listQuery,\n    perPageOptions: perPageOptions,\n    fetchList: fetchList,\n    patients: patients,\n    resolveStatus: resolveStatus,\n    saveNutriologPatient: saveNutriologPatient,\n    personalData: personalData,\n    getPersonalData: getPersonalData,\n    getDireccionFactura: getDireccionFactura,\n    postDireccionFactura: postDireccionFactura,\n    putDireccionFactura: putDireccionFactura,\n    updatePersonalData: updatePersonalData,\n    getContact: getContact,\n    contactData: contactData,\n    contactDataTelefono: contactDataTelefono,\n    contactDataFactura: contactDataFactura,\n    gurdaContacto: gurdaContacto,\n    gurdaTelefonos: gurdaTelefonos,\n    updatePhoto: updatePhoto,\n    dataPassword: dataPassword,\n    statesPassword: statesPassword,\n    isSavingPassword: isSavingPassword,\n    resetDataPassword: resetDataPassword,\n    changePassword: changePassword,\n    verMensajeNoFromUser: verMensajeNoFromUser,\n    modalCuestionario: modalCuestionario\n  };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (usePatient);\n\n//# sourceURL=webpack:///./src/composables/usePatient.js?");

/***/ }),

/***/ "./src/services/PatientService.js":
/*!****************************************!*\
  !*** ./src/services/PatientService.js ***!
  \****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _services_Api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/services/Api */ \"./src/services/Api.js\");\n\n\nvar resource = 'informacion/paciente';\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  fetchListGeneral: function fetchListGeneral(listQuery) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"informacion/paciente/lista/general/pacientes\", {\n      params: listQuery\n    });\n  },\n  changeStatus: function changeStatus(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"administrador/habilitar-deshabilitar/paciente/\".concat(id));\n  },\n  fetchList: function fetchList(listQuery) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(resource, {\n      params: listQuery\n    });\n  },\n  create: function create(form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(resource, form);\n  },\n  getById: function getById(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/\").concat(id));\n  },\n  update: function update(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"\".concat(resource, \"/\").concat(id), form);\n  },\n  registerNutriologPatient: function registerNutriologPatient(form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"informacion/paciente/nutriologo\", form);\n  },\n  saveAdminS: function saveAdminS(form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"register/administrador\", form);\n  },\n  getPersonalData: function getPersonalData(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"informacion-personal-paciente/\".concat(id));\n  },\n  updatePersonalData: function updatePersonalData(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"informacion/paciente/update/info/\".concat(id), form);\n  },\n  getContact: function getContact(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"informacion/paciente/obtener/contacto/\".concat(id));\n  },\n  updateContacto: function updateContacto(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"informacion/paciente/update/contacto/\".concat(id), form);\n  },\n  updatePhoto: function updatePhoto(id, form) {\n    var config = {\n      headers: {\n        'Content-Type': 'multipart/form-data'\n      }\n    };\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"informacion/paciente/subir-foto/\".concat(id), form, config);\n  },\n  getMyPatients: function getMyPatients(listQuery) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"informacion/paciente/lista/pacientes\", {\n      params: listQuery\n    });\n  },\n  getMyNutriologos: function getMyNutriologos(listQuery) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"nutriologo/lista/admin\");\n  },\n  getNutriologos: function getNutriologos(listQuery) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"nutriologo/lista/general\", {\n      params: listQuery\n    });\n  },\n  getPatientsByNutritionist: function getPatientsByNutritionist(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"nutriologo/lista/pacientes/nutriologo/\".concat(id));\n  },\n  getMyPatientsCatalog: function getMyPatientsCatalog() {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"cita/lista/pacientes\");\n  },\n  // actualizarDomicilio(id, form) {\n  //     return Api().put(`domicilio-paciente/${id}`, form);\n  // },\n  actualizarDomicilio: function actualizarDomicilio(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"informacion/paciente/update/contacto/\".concat(id), form);\n  },\n  actualizarTelefonos: function actualizarTelefonos(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"contacto-paciente/\".concat(id), form);\n  },\n  getDireccionFactura: function getDireccionFactura(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"direccion-facturacion/\".concat(id));\n  },\n  postDireccionFactura: function postDireccionFactura(form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"direccion-facturacion\", form);\n  },\n  putDireccionFactura: function putDireccionFactura(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"direccion-facturacion/\".concat(id), form);\n  },\n  updatePassword: function updatePassword(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"\".concat(resource, \"/actulizar/password/pacientes/\").concat(id), form);\n  },\n  getMensajesNo: function getMensajesNo() {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"chat/comment/unreaded?noRefresh=1\");\n  },\n  getMensajesNoFromUser: function getMensajesNoFromUser(type, id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"chat/comment/unreaded/from/\".concat(type, \"/\").concat(id));\n  },\n  mensajeLeido: function mensajeLeido(userType, idUsuario) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"chat/comment/unreaded/\".concat(userType, \"/\").concat(idUsuario));\n  },\n  deletePatientAdmin: function deletePatientAdmin(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().delete(\"administrador/eliminar/paciente/\".concat(id));\n  }\n});\n\n//# sourceURL=webpack:///./src/services/PatientService.js?");

/***/ })

}]);