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

/***/ "./src/@core/comp-functions/forms/form-validation.js":
/*!***********************************************************!*\
  !*** ./src/@core/comp-functions/forms/form-validation.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return formValidation; });\n/* harmony import */ var _vue_composition_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/composition-api */ \"./node_modules/@vue/composition-api/dist/vue-composition-api.mjs\");\n // ===========================================================\n// ! This is coupled with \"veeValidate\" plugin\n// ===========================================================\n\nfunction formValidation(resetFormData) {\n  var clearFormData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};\n  // ------------------------------------------------\n  // refFormObserver\n  // ! This is for veeValidate Observer\n  // * Used for veeValidate form observer\n  // ------------------------------------------------\n  var refFormObserver = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_0__[\"ref\"])(null); // ------------------------------------------------\n  // resetObserver\n  // ! This function is coupled with veeValidate\n  // * It resets form observer\n  // ------------------------------------------------\n\n  var resetObserver = function resetObserver() {\n    refFormObserver.value.reset();\n  }; // ------------------------------------------------\n  // getValidationState\n  // ! This function is coupled with veeValidate\n  // * It returns true/false based on validation\n  // ------------------------------------------------\n  // eslint-disable-next-line object-curly-newline\n\n\n  var getValidationState = function getValidationState(_ref) {\n    var dirty = _ref.dirty,\n        validated = _ref.validated,\n        fieldRequired = _ref.required,\n        changed = _ref.changed,\n        _ref$valid = _ref.valid,\n        valid = _ref$valid === void 0 ? null : _ref$valid;\n    var result = dirty || validated ? valid : null;\n    return !fieldRequired && !changed ? null : result;\n  }; // ------------------------------------------------\n  // resetForm\n  // ! This function is coupled with veeValidate\n  // * This uses resetFormData arg to reset form data\n  // ------------------------------------------------\n\n\n  var resetForm = function resetForm() {\n    resetFormData();\n    Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_0__[\"nextTick\"])(function () {\n      resetObserver();\n    });\n  }; // ------------------------------------------------\n  // clearForm\n  // ! This function is coupled with veeValidate\n  // * This uses clearFormData arg to reset form data\n  // ------------------------------------------------\n\n\n  var clearForm = function clearForm() {\n    clearFormData();\n    Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_0__[\"nextTick\"])(function () {\n      resetObserver();\n    });\n  };\n\n  return {\n    refFormObserver: refFormObserver,\n    resetObserver: resetObserver,\n    getValidationState: getValidationState,\n    resetForm: resetForm,\n    clearForm: clearForm\n  };\n}\n\n//# sourceURL=webpack:///./src/@core/comp-functions/forms/form-validation.js?");

/***/ }),

/***/ "./src/services/AlimentosDietaService.js":
/*!***********************************************!*\
  !*** ./src/services/AlimentosDietaService.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/nutricional/dietas/alimentos';\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  fetchGrupoAlimentos: function fetchGrupoAlimentos() {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/lista\"));\n  },\n  fetchAlimentosByGrupo: function fetchAlimentosByGrupo(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/\").concat(id)); //return Api().get(`informacion/nutricional/dietas/paciente/alimentos/${id}`)\n  },\n  fetchAlimentosByGrupo2: function fetchAlimentosByGrupo2(id) {\n    //return Api().get(`${resource}/${id}`)\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"informacion/nutricional/dietas/paciente/alimentos/\".concat(id));\n  },\n  alimentosReceta: function alimentosReceta(id) {\n    //return Api().get(`${resource}/${id}`)\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"informacion/nutricional/dietas/menus/obtener/alimento/\".concat(id));\n  },\n  todosAlimentos: function todosAlimentos(listQuery, perPage, page) {\n    //return Api().get(`${resource}/${id}`)\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/catalogo/por-usuario/smae/\".concat(perPage, \"/\").concat(page), listQuery);\n  },\n  guardartodosAlimentos: function guardartodosAlimentos(id_alimento, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/catalogo/por/usuario/smae/actualizar/\".concat(id_alimento), form);\n  },\n  deleteAlimento: function deleteAlimento(id_alimento, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/catalogo/eliminar/smae/\".concat(id_alimento), form);\n  },\n  todosAlimentosSMAE: function todosAlimentosSMAE() {\n    //return Api().get(`${resource}/${id}`)\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/catalogo/completo/smae\");\n  },\n  recetas: function recetas(listQuery, perPage, page) {\n    //return Api().get(`${resource}/${id}`)\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/informacion/nutricional/dietas/lista/paginada/nutriologo/\".concat(perPage, \"/\").concat(page), listQuery);\n  },\n  activarReceta: function activarReceta(id_dieta, estatus) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"informacion/nutricional/dietas/nutriologo/\".concat(id_dieta, \"/guardar/\").concat(estatus));\n  },\n  sintomas: function sintomas(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dieteticos/sintomas/\".concat(id));\n  },\n  sintomasExtras: function sintomasExtras(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dieteticos/sintomas/extras/\".concat(id));\n  },\n  postSintomas: function postSintomas(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/informacion/nutricional/dieteticos/sintomas/guardar/\".concat(id), form);\n  },\n  postSintomasExtra: function postSintomasExtra(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/informacion/nutricional/dieteticos/sintomas/guardar/extra/\".concat(id), form);\n  },\n  deleteSintomaExtra: function deleteSintomaExtra(monitoreo, id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/informacion/nutricional/dieteticos/sintomas/delete/extra/\".concat(monitoreo, \"/\").concat(id));\n  }\n});\n\n//# sourceURL=webpack:///./src/services/AlimentosDietaService.js?");

/***/ }),

/***/ "./src/services/DietService.js":
/*!*************************************!*\
  !*** ./src/services/DietService.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/nutricional/dietas';\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  fetchList: function fetchList(listQuery) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(resource, {\n      params: listQuery\n    });\n  },\n  fetchListAlimentos: function fetchListAlimentos() {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(resource);\n  },\n  // create (idPaciente, form) {\n  //   const config = { headers: {'Content-Type': 'multipart/form-data'}};\n  //   return Api().post(`${resource}/nutriologo/${idPaciente}`, form, config);\n  // },\n  //DIETAS POR ALIMENTOS\n  getDietaPaciente: function getDietaPaciente(idPaciente) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/nutriologo/get/\").concat(idPaciente));\n  },\n  fetchDietaPorAlimentosDia: function fetchDietaPorAlimentosDia(idDietaPaciente, dia) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/obtener/dieta/alimentos/\").concat(idDietaPaciente, \"/\").concat(dia));\n  },\n  saveAlimento: function saveAlimento(idColumna, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"\".concat(resource, \"/alimentos/agregar/\").concat(idColumna), form);\n  },\n  updateAlimento: function updateAlimento(idAlimento, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"\".concat(resource, \"/alimento/actualizar/\").concat(idAlimento), form);\n  },\n  deleteAlimento: function deleteAlimento(idAlimento) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().delete(\"\".concat(resource, \"/por-dia/elimina/alimento/\").concat(idAlimento));\n  },\n  deleteA: function deleteA(idAlimento) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().delete(\"\".concat(resource, \"/eliminar/alimento/menus/\").concat(idAlimento));\n  },\n  /////////////END DIETAS POR ALIMENTOS////////////////////////////////////\n  //DIETAS POR DÍA\n  fetchDietaPorDia: function fetchDietaPorDia(idDietaPaciente) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/por-dia/\").concat(idDietaPaciente)); //return Api().get(`${resource}/alimentos/${idDietaPaciente}`);\n  },\n  updateDietaPorDia: function updateDietaPorDia(idDietaPaciente, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"\".concat(resource, \"/por-dia/\").concat(idDietaPaciente), form);\n  },\n  /////////////END DIETAS POR DíA////////////////////////////////////\n  //DIETAS POR COMIDA\n  fetchDietaPorComida: function fetchDietaPorComida(idDietaPaciente) {\n    //ocutar select\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/obtener/dieta/comida/\").concat(idDietaPaciente));\n  },\n  fetchDietaPorComida2: function fetchDietaPorComida2(idDietaPaciente, dia) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/obtener/equivalente/menu/\").concat(idDietaPaciente, \"/\").concat(dia));\n  },\n  updateDietaPorComida: function updateDietaPorComida(idDietaPaciente, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"\".concat(resource, \"/actualizar/dieta/\").concat(idDietaPaciente), form);\n  },\n  updateDietaPorComida2: function updateDietaPorComida2(idDietaPaciente, dia, form, x) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"\".concat(resource, \"/actualizar/equivalente/menu/\").concat(idDietaPaciente, \"/\").concat(dia, \"/\").concat(x), form);\n  },\n  /////////////END DIETAS POR COMIDA////////////////////////////////////\n  ///////////DIETAS POR MENUS///////////////\n  fetchDietaPorMenusDia: function fetchDietaPorMenusDia(idDietaPaciente, dia) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/obtener/dieta/menus/\").concat(idDietaPaciente, \"/\").concat(dia));\n  },\n  fetchDietaPorMenusDia2: function fetchDietaPorMenusDia2(idDietaPaciente, dia) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/obtener/equivalente/menu/\").concat(idDietaPaciente, \"/\").concat(dia));\n  },\n  //////////////DIETAS POR MENUS////////////////////\n  updateDietaPaciente: function updateDietaPaciente(idDieta, 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(\"\".concat(resource, \"/nutriologo/\").concat(idDieta), form, config);\n  },\n  saveDietaPorMenu: function saveDietaPorMenu(idColumna, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"\".concat(resource, \"/menus/agregar/receta/\").concat(idColumna), form);\n  },\n  updateDietaPorMenu: function updateDietaPorMenu(idColumna, id_receta, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"\".concat(resource, \"/menu/actualizar/cantidades/\").concat(id_receta, \"/\").concat(idColumna), form);\n  },\n  deleteDietaPorMenu: function deleteDietaPorMenu(idColumna, data) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().delete(\"\".concat(resource, \"/menus/eliminar/receta/\").concat(idColumna), {\n      data: data\n    });\n  },\n  //////////////END DIETAS POR MENUS////////////////\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  fetchAllTipos: function fetchAllTipos() {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/tipo\"));\n  },\n  getTipoById: function getTipoById(idTipo, idDieta) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/getTipo/\").concat(idDieta, \"/\").concat(idTipo));\n  },\n  getTipoDietaEquivalente: function getTipoDietaEquivalente(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"\".concat(resource, \"/tipo/equivalente/\").concat(id));\n  },\n  getTipoDietas: function getTipoDietas() {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"catalogos/tipos/dietas\");\n  },\n  agregarDia: function agregarDia(id, dia, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"\".concat(resource, \"/alimentos/agregar/dia/\").concat(id, \"/\").concat(dia), form);\n  },\n  agregarDiaMenu: function agregarDiaMenu(id, dia, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"\".concat(resource, \"/menu/agregar/dia/\").concat(id, \"/\").concat(dia), form);\n  },\n  agregarDiaM: function agregarDiaM(id, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"\".concat(resource, \"/dieta/comida/agregar/dia/\").concat(id), form);\n  },\n  agregarDiaM2: function agregarDiaM2(id, dia, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"\".concat(resource, \"/equivalente/menu/agregar/comida/\").concat(id, \"/\").concat(dia), form);\n  },\n  getCategorias: function getCategorias() {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dietas/trae/cat/recetas\");\n  },\n  getReceta: function getReceta(id) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dietas/trae/recetas/por-tipo/\".concat(id));\n  },\n  getIngestas: function getIngestas() {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dietas/trae/cat/recetas/comidas\");\n  },\n  ////guarda seleccion\n  guardaSeleccion: function guardaSeleccion(idMonitoreo, opcion) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"\".concat(resource, \"/seleccionada/get/\").concat(idMonitoreo, \"/\").concat(opcion));\n  },\n  eliminarC: function eliminarC(id, posicion) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().delete(\"\".concat(resource, \"/dieta/comida/eliminar/dia/\").concat(id, \"/\").concat(posicion));\n  },\n  eliminarC2: function eliminarC2(id, posicion, dia) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().delete(\"\".concat(resource, \"/equivalente/menu/eliminar/comida/\").concat(id, \"/\").concat(dia, \"/\").concat(posicion));\n  },\n  editarC: function editarC(id, posicion, nombre) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"\".concat(resource, \"/dieta/comida/editar/nombre/dia/\").concat(id, \"/\").concat(posicion, \"/\").concat(nombre));\n  },\n  editarC2: function editarC2(id, dia, nombre, form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().put(\"\".concat(resource, \"/equivalente/menu/editar/etiqueta/comida/\").concat(id, \"/\").concat(dia, \"/\").concat(nombre, \"/\").concat(form));\n  },\n  saveAlimentoSmae: function saveAlimentoSmae(form) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/catalogo/crear/smae\", form);\n  },\n  descargarPDF: function descargarPDF(id_monitoreo, form) {\n    var config = {\n      headers: {\n        'Content-Type': 'application/pdf'\n      },\n      'responseType': 'blob'\n    };\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/informacion/nutricional/dietas/por-dia/\".concat(id_monitoreo, \"/descarga/pdf\"), form, config);\n  },\n  descargarPDFEquivalentes: function descargarPDFEquivalentes(id_monitoreo, form) {\n    var config = {\n      headers: {\n        'Content-Type': 'application/pdf'\n      },\n      'responseType': 'blob'\n    };\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/informacion/nutricional/dietas/por-dia/\".concat(id_monitoreo, \"/descarga/pdf/equivalentes\"), form, config);\n  },\n  descargarPDFMenu: function descargarPDFMenu(id_monitoreo, form) {\n    var config = {\n      headers: {\n        'Content-Type': 'application/pdf'\n      },\n      'responseType': 'blob'\n    };\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().post(\"/informacion/nutricional/dietas/por-dia/\".concat(id_monitoreo, \"/descarga/pdf/menu\"), form, config);\n  },\n  descargarPDFLista: function descargarPDFLista(id_monitoreo) {\n    var day = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n    var config = {\n      headers: {\n        'Content-Type': 'application/pdf'\n      },\n      'responseType': 'blob'\n    };\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dietas/por-dia/\".concat(id_monitoreo, \"/descarga/pdf/lista/\").concat(day), config);\n  },\n  enviarCorreo: function enviarCorreo(id_monitoreo) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dietas/por-dia/\".concat(id_monitoreo, \"/enviar/pdf\"));\n  },\n  enviarCorreoEquivalentes: function enviarCorreoEquivalentes(id_monitoreo) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dietas/por-dia/\".concat(id_monitoreo, \"/enviar/pdf/equivalentes\"));\n  },\n  enviarCorreoMenu: function enviarCorreoMenu(id_monitoreo) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dietas/por-dia/\".concat(id_monitoreo, \"/enviar/pdf/menu\"));\n  },\n  getDeficiencias: function getDeficiencias(id_monitoreo) {\n    return Object(_services_Api__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().get(\"/informacion/nutricional/dieteticos/deficiencias/\".concat(id_monitoreo));\n  }\n});\n\n//# sourceURL=webpack:///./src/services/DietService.js?");

/***/ }),

/***/ "./src/views/SMAE/useAlimentosDieta.js":
/*!*********************************************!*\
  !*** ./src/views/SMAE/useAlimentosDieta.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 vue_toastification_composition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-toastification/composition */ \"./node_modules/vue-toastification/composition/index.js\");\n/* harmony import */ var vue_toastification_composition__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_toastification_composition__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @core/components/toastification/ToastificationContent.vue */ \"./src/@core/components/toastification/ToastificationContent.vue\");\n/* harmony import */ var _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/services/AlimentosDietaService */ \"./src/services/AlimentosDietaService.js\");\n/* harmony import */ var _services_DietService__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/services/DietService */ \"./src/services/DietService.js\");\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 _store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/store */ \"./src/store/index.js\");\n/* harmony import */ var _fullcalendar_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @fullcalendar/vue */ \"./node_modules/@fullcalendar/vue/dist/main.js\");\n\n\n// import {ref, watch, reactive} from '@vue/composition-api';\n// Notification\n\n\n\n\n\n\n\n\nvar useAlimentosDieta = function useAlimentosDieta() {\n  // Use toast\n  var toast = Object(vue_toastification_composition__WEBPACK_IMPORTED_MODULE_2__[\"useToast\"])();\n  var alimentos = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])([]);\n  var todosLosAlimentos = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])([]);\n  var allAlimentos = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])([]);\n  var palabraB = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    value: null\n  });\n  var listQuery = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    total: 0,\n    per_page: 10,\n    page: 1,\n    totalPages: 1,\n    buscar: '',\n    statusFilter: '',\n    deviceTypeFilter: '',\n    sort: 'asc',\n    sortBy: 'id',\n    from: 0,\n    to: 0\n  });\n  var pagina = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    value: 1\n  });\n  var cantidad = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    value: 10\n  });\n  var paginador = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    value: 1\n  });\n  var getTotalPages = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    value: null\n  });\n  var currentPage = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"reactive\"])({\n    value: 1\n  });\n  Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"watch\"])(function () {\n    return listQuery.buscar;\n  }, function (currentValue, oldValue) {\n    getAlimentosSME(listQuery, cantidad.value, pagina.value);\n  });\n  Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"watch\"])(function () {\n    return currentPage.value;\n  }, function (currentValue, oldValue) {\n    pagina.value = currentPage.value;\n    getAlimentosSME(listQuery, cantidad.value, pagina.value);\n  });\n\n  var getGrupoAlimentos = function getGrupoAlimentos() {\n    _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].fetchGrupoAlimentos().then(function (response) {\n      _store__WEBPACK_IMPORTED_MODULE_7__[\"default\"].commit('intervencion/setGrupoAlimentos', response.data.cuerpo);\n    }).catch(function (e) {\n      toast({\n        component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n        props: {\n          title: \"Error al cargar Grupo de alimentos\",\n          icon: 'AlertTriangleIcon',\n          variant: 'danger'\n        }\n      });\n    });\n  };\n\n  var getAlimentosByGrupo = function getAlimentosByGrupo(idGrupo) {\n    _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].fetchAlimentosByGrupo2(idGrupo).then(function (response) {\n      _store__WEBPACK_IMPORTED_MODULE_7__[\"default\"].commit('intervencion/setAlimentos', response.data.cuerpo);\n    }).catch(function (e) {\n      loading.value = false;\n      toast({\n        component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n        props: {\n          title: \"Error al cargar alimentos\",\n          icon: 'AlertTriangleIcon',\n          variant: 'danger'\n        }\n      });\n    });\n  };\n\n  var getAlimentosByGrupo2 = function getAlimentosByGrupo2(idGrupo) {\n    _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].fetchAlimentosByGrupo(idGrupo).then(function (response) {\n      _store__WEBPACK_IMPORTED_MODULE_7__[\"default\"].commit('intervencion/setAlimentos', response.data.cuerpo);\n    }).catch(function (e) {\n      loading.value = false;\n      toast({\n        component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n        props: {\n          title: \"Error al cargar alimentos\",\n          icon: 'AlertTriangleIcon',\n          variant: 'danger'\n        }\n      });\n    });\n  };\n\n  var saving = Object(_vue_composition_api__WEBPACK_IMPORTED_MODULE_6__[\"ref\"])(false);\n\n  var saveAlimento = /*#__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              saving.value = true;\n              _context.prev = 1;\n              _context.next = 4;\n              return _services_DietService__WEBPACK_IMPORTED_MODULE_5__[\"default\"].saveAlimentoSmae(data);\n\n            case 4:\n              response = _context.sent;\n              saving.value = false;\n              alimentos.value = response.data.cuerpo.adecuacion;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n                props: {\n                  title: \"Se agrego el alimento correctamente!!!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              return _context.abrupt(\"return\", response);\n\n            case 11:\n              _context.prev = 11;\n              _context.t0 = _context[\"catch\"](1);\n              saving.value = false;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n                props: {\n                  title: \"Error al guardar alimento\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context.t0;\n\n            case 16:\n            case \"end\":\n              return _context.stop();\n          }\n        }\n      }, _callee, null, [[1, 11]]);\n    }));\n\n    return function saveAlimento(_x) {\n      return _ref.apply(this, arguments);\n    };\n  }();\n\n  var updateAlimento = /*#__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(idAlimento, data) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee2$(_context2) {\n        while (1) {\n          switch (_context2.prev = _context2.next) {\n            case 0:\n              saving.value = true;\n              _context2.prev = 1;\n              _context2.next = 4;\n              return _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].guardartodosAlimentos(idAlimento, data);\n\n            case 4:\n              response = _context2.sent;\n              saving.value = false;\n              getAlimentosSME(listQuery, cantidad.value, pagina.value);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n                props: {\n                  title: \"Datos actualizados Correctamente!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              return _context2.abrupt(\"return\", response);\n\n            case 11:\n              _context2.prev = 11;\n              _context2.t0 = _context2[\"catch\"](1);\n              saving.value = false;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n                props: {\n                  title: \"Error al actualizar alimento\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context2.t0;\n\n            case 16:\n            case \"end\":\n              return _context2.stop();\n          }\n        }\n      }, _callee2, null, [[1, 11]]);\n    }));\n\n    return function updateAlimento(_x2, _x3) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n\n  var deleteAlimentoS = /*#__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(idAlimento, data) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee3$(_context3) {\n        while (1) {\n          switch (_context3.prev = _context3.next) {\n            case 0:\n              saving.value = true;\n              _context3.prev = 1;\n              _context3.next = 4;\n              return _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].deleteAlimento(idAlimento, data);\n\n            case 4:\n              response = _context3.sent;\n              saving.value = false;\n              getAlimentosSME(listQuery, cantidad.value, pagina.value);\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n                props: {\n                  title: \"Datos actualizados Correctamente!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              return _context3.abrupt(\"return\", response);\n\n            case 11:\n              _context3.prev = 11;\n              _context3.t0 = _context3[\"catch\"](1);\n              saving.value = false;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n                props: {\n                  title: \"Error al actualizar alimento\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context3.t0;\n\n            case 16:\n            case \"end\":\n              return _context3.stop();\n          }\n        }\n      }, _callee3, null, [[1, 11]]);\n    }));\n\n    return function deleteAlimentoS(_x4, _x5) {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n\n  var deleteAlimento = /*#__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(idAlimento) {\n      var response;\n      return regeneratorRuntime.wrap(function _callee4$(_context4) {\n        while (1) {\n          switch (_context4.prev = _context4.next) {\n            case 0:\n              saving.value = true;\n              _context4.prev = 1;\n              _context4.next = 4;\n              return _services_DietService__WEBPACK_IMPORTED_MODULE_5__[\"default\"].deleteAlimento(idAlimento);\n\n            case 4:\n              response = _context4.sent;\n              saving.value = false;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n                props: {\n                  title: \"Alimento eliminado Correctamente!\",\n                  icon: 'CheckCircleIcon',\n                  variant: 'success'\n                }\n              });\n              return _context4.abrupt(\"return\", response);\n\n            case 10:\n              _context4.prev = 10;\n              _context4.t0 = _context4[\"catch\"](1);\n              saving.value = false;\n              toast({\n                component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n                props: {\n                  title: \"Error al eliminar alimento\",\n                  icon: 'AlertTriangleIcon',\n                  variant: 'danger'\n                }\n              });\n              throw _context4.t0;\n\n            case 15:\n            case \"end\":\n              return _context4.stop();\n          }\n        }\n      }, _callee4, null, [[1, 10]]);\n    }));\n\n    return function deleteAlimento(_x6) {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n\n  var getAllAlimentos = function getAllAlimentos() {\n    //loading.value = true;\n    _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].todosAlimentos('', 20, 0).then(function (response) {\n      todosLosAlimentos.value = response.data.cuerpo; //loading.value = false;\n    }).catch(function (e) {\n      //loading.value = false;\n      toast({\n        component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n        props: {\n          title: \"Error al cargar todos los alimentos\",\n          icon: 'AlertTriangleIcon',\n          variant: 'danger'\n        }\n      });\n    });\n  };\n\n  var getAlimentosSME = function getAlimentosSME(listQuery, perPage, page) {\n    _services_AlimentosDietaService__WEBPACK_IMPORTED_MODULE_4__[\"default\"].todosAlimentos(listQuery, perPage, page).then(function (response) {\n      allAlimentos.value = response.data.cuerpo.data;\n      paginador.value = response.data.cuerpo.total;\n      getTotalPages.value = Math.ceil(paginador.value / cantidad.value) * 20;\n    }).catch(function (e) {\n      toast({\n        component: _core_components_toastification_ToastificationContent_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n        props: {\n          title: \"Error al cargar alimentos\",\n          icon: 'AlertTriangleIcon',\n          variant: 'danger'\n        }\n      });\n    });\n  };\n\n  return {\n    currentPage: currentPage,\n    getTotalPages: getTotalPages,\n    paginador: paginador,\n    pagina: pagina,\n    cantidad: cantidad,\n    listQuery: listQuery,\n    deleteAlimentoS: deleteAlimentoS,\n    palabraB: palabraB,\n    getAlimentosSME: getAlimentosSME,\n    allAlimentos: allAlimentos,\n    alimentos: alimentos,\n    getGrupoAlimentos: getGrupoAlimentos,\n    getAlimentosByGrupo2: getAlimentosByGrupo2,\n    getAlimentosByGrupo: getAlimentosByGrupo,\n    saveAlimento: saveAlimento,\n    updateAlimento: updateAlimento,\n    deleteAlimento: deleteAlimento,\n    todosLosAlimentos: todosLosAlimentos,\n    getAllAlimentos: getAllAlimentos\n  };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (useAlimentosDieta);\n\n//# sourceURL=webpack:///./src/views/SMAE/useAlimentosDieta.js?");

/***/ })

}]);